water-ldht/dist/static/js/chunk-76ecd770.b15806fc.js

12 lines
3.1 MiB
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

/*!
* build: vue-admin-beautiful
* vue-admin-beautiful author: chuzhixin 1204505056@qq.com
* vue-admin-beautiful QQ Group(QQ群): 972435319、1139183756
* time: 2024-10-10 11:14:28
*/
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-76ecd770","chunk-276dfce0","chunk-40e12ffc","chunk-5c5c6b9c","chunk-3b34cfc4","chunk-3f9d2274","chunk-52d2dee3","chunk-fd7ff1a2","chunk-033ce6e9","chunk-35cc19a7","chunk-41874cb1","chunk-3941f644","chunk-e9e88bd2","chunk-086e387f","chunk-2357f74e","chunk-09175966","chunk-5b2f191c","chunk-6d960dc8","chunk-5f7d4f74","chunk-d015f394","chunk-7cf2a163","chunk-75dd10a7","chunk-91f4ec3a","chunk-c06b4442","chunk-ea003b22","chunk-ad5f2248","chunk-05a4b689","chunk-247b739a","chunk-125d17c4","chunk-67393c5e","chunk-7077ad62","chunk-acab14c2","chunk-fd74f6e2","chunk-2aaffe1a","chunk-3f7c38b6","chunk-73a8bff0","chunk-500f0008","chunk-3210efee","chunk-452b7002","chunk-acaf5abe","chunk-43badfb4","chunk-e25b1548","chunk-738dd5d9","chunk-49ca18e8","chunk-dd32715e","chunk-e37e09fe","chunk-4c11cb1e","chunk-69fa66d1","chunk-53cb758a","chunk-14a5cdb3","chunk-1e0a8456","chunk-569de63b","chunk-cc2e5332","chunk-9446ee82","chunk-396c801a","chunk-b095864c","chunk-394d53d0","chunk-0f18247c","chunk-7e9aa500","chunk-f25163ce","chunk-41b819c6","chunk-0e005dee","chunk-b611959e","chunk-3b34cfc4","chunk-77d9f2d0","chunk-876627d0","chunk-a2381a1e","chunk-086e387f","chunk-46b34ca8","chunk-51d44212","chunk-44656b7a","chunk-497a5110","chunk-50c240e4","chunk-36ec3fc0","chunk-60aa2378","chunk-687c35ea","chunk-305c4638","chunk-3f9d2274","chunk-1234077c","chunk-adb32d7e","chunk-e5755540","chunk-60bcfd2b","chunk-472d11c4","chunk-d9c0ac3c","chunk-3b3c789f","chunk-950b1a12","chunk-94236884","chunk-7342f3cc","chunk-73d404b5","chunk-406b3993","chunk-2a99e37c","chunk-581bcd92","chunk-6e59efde","chunk-6599e299","chunk-d2ca8a60","chunk-1fc6425a","chunk-7d2766ba","chunk-70c50d06","chunk-35974028","chunk-0df4e93c","chunk-e40cad72","chunk-45a5820c","chunk-82b0b916","chunk-05000e52","chunk-782abb7a","chunk-99b5b480","chunk-3c65a26a","chunk-3a8d87ce","chunk-5d018cc8","chunk-1ac25454","chunk-22607269","chunk-fa6ffa12","chunk-64441951","chunk-d8dbd3f2","chunk-787eb5ca","chunk-147e2056","chunk-a278f102","chunk-7f47872b","chunk-a616fb1c","chunk-0f297f6b","chunk-1a849a5b","chunk-db260b2c","chunk-396a61ee","chunk-582b17d0","chunk-22beb414","chunk-97ea8d1a","chunk-114c1de2","chunk-4a51f5a0","chunk-1f6df400","chunk-15074f29","chunk-1b2637bc","chunk-f73ee5b4","chunk-1e9c537e","chunk-795c1891","chunk-9845575a","chunk-8dad70e6","chunk-421868f4","chunk-0b4b4904","chunk-a76972a0","chunk-10cd1e97","chunk-5548ca58","chunk-27f31964","chunk-5f36413b","chunk-40e12ffc","chunk-492fe9c4","chunk-7f8e8923","chunk-6847bb58","chunk-f264060c","chunk-70755472","chunk-3f0865a4","chunk-2d628da2","chunk-7e7ae898","chunk-4089bf29","chunk-21ec3e04","chunk-e8aab798","chunk-2bf01e02","chunk-45d93e90","chunk-684d88ea","chunk-5eb283b0","chunk-2175747c","chunk-5f75bf80","chunk-360af37b","chunk-6e463b5d","chunk-ab8992be","chunk-1fea64bb","chunk-72b3b472","chunk-26157c5b","chunk-1562cb68","chunk-fd58e646","chunk-07132e86","chunk-bb1e21f4","chunk-10386b32","chunk-4f39d204","chunk-48e7d566","chunk-b162de44","chunk-cd0d8448","chunk-c64d6900","chunk-4b345358","chunk-1023fa33","chunk-15d00139","chunk-7da3f232","chunk-9187e936","chunk-7ec0d2c9","chunk-1d6f67c3","chunk-087d292f","chunk-7b89f47a","chunk-c6a7ae24","chunk-244d441e","chunk-3541f7e5","chunk-83671cd2","chunk-4ef4f776","chunk-2d22cc95","chunk-2d0cc4a5","chunk-2d0ba569","chunk-2d0b1ff5","chunk-2d0e93e3","chunk-2d0afdef","chunk-2d0dd0ad","chunk-2d0c4332","chunk-2d21b82c","chunk-2d20914c","chunk-2d0b6975","chunk-2d237708","chunk-2d0d43e8","chunk-2d0d660c","chunk-2d21b278","chunk-2d210a9a","chunk-2d0dd0bc","chunk-2d224962"],{"0018":function(e,t,o){e.exports={"menu-color":"hsla(0,0%,27%,.95)","menu-color-active":"hsla(208,100%,55%,.95)","menu-background":"#fff","gallery-second-menu-background":"#fff"}},"0023":function(e,t,o){"use strict";o.r(t);var n=o("f2bf");const a={class:"manage-container"},r={class:"manage-input"},i={class:"manage-button"};function l(e,t,o,l,s,c){const d=Object(n["resolveComponent"])("el-input"),u=Object(n["resolveComponent"])("el-form-item"),m=Object(n["resolveComponent"])("el-option"),h=Object(n["resolveComponent"])("el-select"),p=Object(n["resolveComponent"])("vab-query-form"),b=Object(n["resolveComponent"])("el-form"),g=Object(n["resolveComponent"])("el-button"),f=Object(n["resolveComponent"])("el-table-column"),v=Object(n["resolveComponent"])("el-image"),w=Object(n["resolveComponent"])("el-table"),k=Object(n["resolveComponent"])("el-pagination"),C=Object(n["resolveComponent"])("alarm-add"),y=Object(n["resolveComponent"])("feedback");return Object(n["openBlock"])(),Object(n["createElementBlock"])(n["Fragment"],null,[Object(n["createElementVNode"])("div",a,[Object(n["createElementVNode"])("div",r,[Object(n["createVNode"])(b,{ref:"queryForm",model:s.queryForm,"label-width":"80px"},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(p,null,{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(u,{width:"100",prop:"deviceName",label:e.$t("dataEnquiry.zdmc")},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(d,{modelValue:s.queryForm.deviceName,"onUpdate:modelValue":t[0]||(t[0]=e=>s.queryForm.deviceName=e),size:"small",placeholder:e.$t("dataEnquiry.qsrzdmc")},null,8,["modelValue","placeholder"])]),_:1},8,["label"]),Object(n["createVNode"])(u,{width:"100",prop:"month",label:e.$t("defalult.sj")},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(h,{modelValue:s.queryForm.status,"onUpdate:modelValue":t[1]||(t[1]=e=>s.queryForm.status=e),size:"small",placeholder:e.$t("task.qxzrwzt")},{default:Object(n["withCtx"])(()=>[(Object(n["openBlock"])(!0),Object(n["createElementBlock"])(n["Fragment"],null,Object(n["renderList"])(s.statusData,e=>(Object(n["openBlock"])(),Object(n["createBlock"])(m,{key:e.value,label:e.label,value:e.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue","placeholder"])]),_:1},8,["label"])]),_:1})]),_:1},8,["model"])]),Object(n["createElementVNode"])("div",i,[Object(n["createVNode"])(g,{size:"small",onClick:t[2]||(t[2]=e=>c.resetForm())},{default:Object(n["withCtx"])(()=>[Object(n["createTextVNode"])(Object(n["toDisplayString"])(e.$t("defalult.chongz")),1)]),_:1}),Object(n["createVNode"])(g,{type:"primary",size:"small",plain:"",onClick:c.handleAdd},{default:Object(n["withCtx"])(()=>[Object(n["createTextVNode"])(Object(n["toDisplayString"])(e.$t("defalult.xj")),1)]),_:1},8,["onClick"]),Object(n["createVNode"])(g,{type:"primary",size:"small",onClick:c.search},{default:Object(n["withCtx"])(()=>[Object(n["createTextVNode"])(Object(n["toDisplayString"])(e.$t("defalult.cx")),1)]),_:1},8,["onClick"]),Object(n["createVNode"])(g,{type:"primary",size:"small",onClick:c.exportData},{default:Object(n["withCtx"])(()=>[Object(n["createTextVNode"])(Object(n["toDisplayString"])(e.$t("defalult.dc")),1)]),_:1},8,["onClick"]),Object(n["createVNode"])(g,{type:"primary",size:"small",onClick:c.deletes},{default:Object(n["withCtx"])(()=>[Object(n["createTextVNode"])(Object(n["toDisplayString"])(e.$t("defalult.plsc")),1)]),_:1},8,["onClick"])])]),Object(n["createVNode"])(w,{data:s.tableData,stripe:"",border:"",style:{width:"100%"},onSelectionChange:c.handleSelectionChange},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(f,{fixed:"",type:"selection",width:"40",align:"center"}),Object(n["createVNode"])(f,{fixed:"",prop:"device.name",label:e.$t("dataEnquiry.zdmc"),width:"120",align:"center"},null,8,["label"]),Object(n["createVNode"])(f,{prop:"type",label:e.$t("task.rwlx"),width:"180",align:"center"},null,8,["label"]),Object(n["createVNode"])(f,{prop:"taskContent",label:e.$t("task.rwnr"),width:"250",align:"center"},null,8,["label"]),Object(n["createVNode"])(f,{prop:"handler.name",label:e.$t("task.clr"),width:"120",align:"center"},null,8,["label"]),Object(n["createVNode"])(f,{prop:"handler.contact",label:e.$t("task.clrlxfs"),width:"120",align:"center"},null,8,["label"]),Object(n["createVNode"])(f,{prop:"completeTime",label:e.$t("task.wcsj"),width:"180",align:"center"},null,8,["label"]),Object(n["createVNode"])(f,{prop:"status",label:e.$t("dataEnquiry.zt"),width:"120",align:"center"},null,8,["label"]),Object(n["createVNode"])(f,{prop:"feedbackText",label:e.$t("task.fknr"),width:"250",align:"center"},null,8,["label"]),Object(n["createVNode"])(f,{prop:"feedbackImg",label:e.$t("task.fltp"),width:"140",align:"center"},{default:Object(n["withCtx"])(({row:e})=>[(Object(n["openBlock"])(!0),Object(n["createElementBlock"])(n["Fragment"],null,Object(n["renderList"])(e.fileList,(t,o)=>(Object(n["openBlock"])(),Object(n["createElementBlock"])("div",{key:o},[Object(n["createVNode"])(v,{style:{width:"100px",height:"100px"},src:e.url,"preview-src-list":t},null,8,["src","preview-src-list"])]))),128))]),_:1},8,["label"]),Object(n["createVNode"])(f,{label:e.$t("defalult.cz"),align:"center",width:"180"},{default:Object(n["withCtx"])(({row:t})=>[Object(n["createVNode"])(g,{type:"text",onClick:e=>c.feedbackShow(t)},{default:Object(n["withCtx"])(()=>[Object(n["createTextVNode"])(Object(n["toDisplayString"])(e.$t("task.fk")),1)]),_:2},1032,["onClick"]),Object(n["createVNode"])(g,{type:"text",onClick:e=>c.handleEdit(t)},{default:Object(n["withCtx"])(()=>[Object(n["createTextVNode"])(Object(n["toDisplayString"])(e.$t("defalult.bj")),1)]),_:2},1032,["onClick"]),Object(n["createVNode"])(g,{type:"text",onClick:e=>c.handleDelete(t)},{default:Object(n["withCtx"])(()=>[Object(n["createTextVNode"])(Object(n["toDisplayString"])(e.$t("defalult.sc")),1)]),_:2},1032,["onClick"])]),_:1},8,["label"])]),_:1},8,["data","onSelectionChange"]),Object(n["createVNode"])(k,{background:s.background,"current-page":s.queryForm.page,layout:s.layout,"page-size":s.queryForm.size,total:s.total,style:{"text-align":"right"},onCurrentChange:c.handleCurrentChange,onSizeChange:c.handleSizeChange},null,8,["background","current-page","layout","page-size","total","onCurrentChange","onSizeChange"]),Object(n["createVNode"])(C,{ref:"add"},null,512),Object(n["createVNode"])(y,{ref:"feedback"},null,512)],64)}o("14d9");var s=o("b199"),c=o("3038"),d=o("8816"),u=o("e67e"),m=o("11f4"),h={components:{alarmAdd:d["default"],feedback:u["default"]},data(){return{tableData:[],lazy:!0,layout:"total, sizes, prev, pager, next, jumper",total:0,background:!0,listLoading:!1,elementLoadingText:"正在加载...",queryForm:{page:1,size:20,status:3,projectId:"",type:2},statusData:[{label:"all",value:3},{label:"未处理",value:0},{label:"已处理",value:1}],ids:[]}},created(){this.queryForm.projectId=sessionStorage.getItem("projectId")},methods:{otherIndex(){this.fetchData()},async fetchData(){const{data:e}=await Object(s["getList"])(this.queryForm);this.tableData=Object(m["imgReplacePath"])(e.items,"feedbackImg"),this.total=e.total},resetForm(){this.$refs.queryForm.resetFields()},handleAdd(){this.$refs["add"].showEdit()},handleEdit(e){this.$refs["add"].showEdit(e)},feedbackShow(e){this.$refs["feedback"].feedbackIndex(e)},search(){this.fetchData()},async exportData(){const e=await Object(s["taskExport"])(this.queryForm);c["default"].downloadFile(e,{fileName:"任务.xls"})},handleSelectionChange(e){const t=[];e.forEach(e=>{t.push(e.id)}),this.ids=t},deletes(){const e=this.ids;if(0==e.length)return this.$message({type:"info",message:"没有选中任何项"}),!1;this.deleteData(e)},deleteData(e){const t=this;this.$confirm("你确定要删除当前项吗?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(()=>{const{msg:o}=Object(s["doDelete"])(e);this.$message({type:"success",message:void 0==o?"删除成功":o}),setTimeout((function(){t.fetchData()}),1e3)}).catch(()=>{this.$message({type:"info",message:"已取消删除"})})},handleDelete(e){const t=this;t.deleteData([e.id])},handleQuery(){this.queryForm.page=1,this.fetchData()},handleSizeChange(e){this.queryForm.size=e,this.fetchData()},handleCurrentChange(e){this.queryForm.page=e,this.fetchData()}}},p=(o("804f"),o("d959")),b=o.n(p);const g=b()(h,[["render",l],["__scopeId","data-v-67ad5ba6"]]);t["default"]=g},"0072":function(e,t,o){"use strict";o.r(t);var n=o("f2bf");const a={class:"manage-container"};function r(e,t,o,r,i,l){const s=Object(n["resolveComponent"])("el-table-column"),c=Object(n["resolveComponent"])("el-table"),d=Object(n["resolveComponent"])("el-pagination"),u=Object(n["resolveComponent"])("vab-query-form-right-panel"),m=Object(n["resolveComponent"])("vab-query-form");return Object(n["openBlock"])(),Object(n["createElementBlock"])("div",a,[Object(n["createVNode"])(c,{data:i.roleData,border:"",stripe:"",style:{width:"100%"}},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(s,{prop:"id",label:"ID",width:"60",align:"center"}),Object(n["createVNode"])(s,{prop:"name",label:e.$t("staff.yhm"),width:"120",align:"center"},null,8,["label"]),Object(n["createVNode"])(s,{prop:"key",label:"key",width:"120",align:"center"}),Object(n["createVNode"])(s,{prop:"createTime",label:e.$t("grouping.cjsj"),width:"200",align:"center"},null,8,["label"]),Object(n["createVNode"])(s,{prop:"updateTime",label:e.$t("grouping.gxsj"),width:"200",align:"center"},null,8,["label"])]),_:1},8,["data"]),Object(n["createVNode"])(m,null,{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(u,null,{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(d,{background:i.background,"current-page":i.queryForm.page,layout:i.layout,"page-size":i.queryForm.size,total:i.total,onCurrentChange:l.handleCurrentChange,onSizeChange:l.handleSizeChange},null,8,["background","current-page","layout","page-size","total","onCurrentChange","onSizeChange"])]),_:1})]),_:1})])}var i=o("cc5e"),l={components:{},data(){return{roleData:[],lazy:!0,activeName:"first",layout:"total, sizes, prev, pager, next, jumper",total:0,background:!0,listLoading:!0,elementLoadingText:"正在加载...",queryForm:{page:1,size:20,name:""}}},computed:{height(){return 500}},created(){},methods:{realIndex(){this.fetchData()},async fetchData(){this.listLoading=!0;const{data:e}=await Object(i["miniRoleSelect"])(this.queryForm);this.roleData=e.items,this.total=e.total,setTimeout(()=>{this.listLoading=!1},500)},handleQuery(){this.queryForm.page=1,this.fetchData()},handleSizeChange(e){this.queryForm.size=e,this.fetchData()},handleCurrentChange(e){this.queryForm.page=e,this.fetchData()}}},s=(o("9530"),o("d959")),c=o.n(s);const d=c()(l,[["render",r],["__scopeId","data-v-af4fc26c"]]);t["default"]=d},"00a5":function(e,t,o){"use strict";o.r(t);var n=o("f2bf");const a={class:"error-container"},r={class:"error-content"},i={class:"pic-error"},l={class:"bullshit"},s={class:"bullshit-oops"},c={class:"bullshit-headline"},d={class:"bullshit-info"};function u(e,t,u,m,h,p){const b=Object(n["resolveComponent"])("el-image"),g=Object(n["resolveComponent"])("el-col"),f=Object(n["resolveComponent"])("router-link"),v=Object(n["resolveComponent"])("el-row");return Object(n["openBlock"])(),Object(n["createElementBlock"])("div",a,[Object(n["createElementVNode"])("div",r,[Object(n["createVNode"])(v,{gutter:20},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(g,{lg:12,md:12,sm:24,xl:12,xs:24},{default:Object(n["withCtx"])(()=>[Object(n["createElementVNode"])("div",i,[Object(n["createVNode"])(b,{src:o("4f51"),class:"pic-error-parent"},null,8,["src"]),Object(n["createVNode"])(b,{src:o("7ca1"),class:"pic-error-child left"},null,8,["src"])])]),_:1}),Object(n["createVNode"])(g,{lg:12,md:12,sm:24,xl:12,xs:24},{default:Object(n["withCtx"])(()=>[Object(n["createElementVNode"])("div",l,[Object(n["createElementVNode"])("div",s,Object(n["toDisplayString"])(h.oops),1),Object(n["createElementVNode"])("div",c,Object(n["toDisplayString"])(h.headline),1),Object(n["createElementVNode"])("div",d,Object(n["toDisplayString"])(h.info),1),Object(n["createVNode"])(f,{class:"bullshit-return-home",to:"/"},{default:Object(n["withCtx"])(()=>[Object(n["createTextVNode"])(Object(n["toDisplayString"])(h.jumpTime)+"s "+Object(n["toDisplayString"])(h.btn),1)]),_:1})])]),_:1})]),_:1})])])}o("14d9");var m=o("5502"),h={name:"Page403",beforeRouteLeave(e,t,o){this.delVisitedRoute(this.$route.path),clearInterval(this.timer),o()},data(){return{jumpTime:5,oops:"抱歉!",headline:"您没有操作角色...",info:"当前帐号没有操作角色,请联系管理员。",btn:"返回",timer:0}},computed:{...Object(m["c"])({visitedRoutes:"tabsBar/visitedRoutes"})},mounted(){this.timeChange()},methods:{...Object(m["b"])({delVisitedRoute:"tabsBar/delVisitedRoute"}),timeChange(){this.timer=setInterval(()=>{this.jumpTime?this.jumpTime--:(this.delVisitedRoute(this.$route.path),this.$router.push("/"),clearInterval(this.timer))},1e3)}}},p=(o("28d0"),o("d959")),b=o.n(p);const g=b()(h,[["render",u],["__scopeId","data-v-059fc81a"]]);t["default"]=g},"00ef":function(e,t,o){"use strict";o("1443")},"017f":function(e,t,o){"use strict";o("8b17")},"0182":function(e,t,o){"use strict";o.r(t);var n=o("f2bf");const a={class:"manage-input"},r={class:"manage-button"};function i(e,t,o,i,l,s){const c=Object(n["resolveComponent"])("el-date-picker"),d=Object(n["resolveComponent"])("el-form-item"),u=Object(n["resolveComponent"])("vab-query-form"),m=Object(n["resolveComponent"])("el-form"),h=Object(n["resolveComponent"])("el-button"),p=Object(n["resolveComponent"])("el-dialog");return Object(n["openBlock"])(),Object(n["createBlock"])(p,{modelValue:l.dialogFormVisible,"onUpdate:modelValue":t[2]||(t[2]=e=>l.dialogFormVisible=e),title:l.title,width:"1500px",onClose:e.close},{default:Object(n["withCtx"])(()=>[Object(n["createElementVNode"])("div",a,[Object(n["createVNode"])(m,{ref:"queryForm",model:l.queryForm,"label-width":"80px"},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(u,null,{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(d,{width:"100",prop:"time",label:e.$t("defalult.rq")},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(c,{modelValue:l.queryForm.time,"onUpdate:modelValue":t[0]||(t[0]=e=>l.queryForm.time=e),size:"small",type:"daterange",align:"right","start-placeholder":"开始时间","end-placeholder":"结束时间",onChange:s.changeTime},null,8,["modelValue","onChange"])]),_:1},8,["label"])]),_:1})]),_:1},8,["model"])]),Object(n["createElementVNode"])("div",r,[Object(n["createVNode"])(d,{width:"100"},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(h,{size:"small",onClick:t[1]||(t[1]=e=>s.resetForm())},{default:Object(n["withCtx"])(()=>[Object(n["createTextVNode"])(Object(n["toDisplayString"])(e.$t("defalult.chongz")),1)]),_:1}),Object(n["createVNode"])(h,{type:"primary",size:"small",onClick:s.search},{default:Object(n["withCtx"])(()=>[Object(n["createTextVNode"])(Object(n["toDisplayString"])(e.$t("defalult.cx")),1)]),_:1},8,["onClick"])]),_:1})]),t[3]||(t[3]=Object(n["createElementVNode"])("div",{id:"mapContainer",style:{height:"500px"}},null,-1))]),_:1},8,["modelValue","title","onClose"])}o("14d9");var l=o("6f56"),s=o("5f99"),c={data(){return{dialogFormVisible:!1,title:"轨迹图",map:{},coords:[],queryForm:{start:"",end:"",time:"",userId:""},coordinate:[],polyline:"",trajectoryData:[]}},mounted(){},methods:{resetForm(){this.$refs.queryForm.resetFields()},search(){this.getData(),setTimeout(()=>{this.setTrajectory()},1e3)},changeTime(){this.queryForm.start=Object(s["getDate"])(this.queryForm.time[0]),this.queryForm.end=Object(s["getDate"])(this.queryForm.time[1])},setDefaultTime(){this.queryForm.time=Object(s["getPastTime1"])(),this.queryForm.start=Object(s["getDate"])(this.queryForm.time[0]),this.queryForm.end=Object(s["getDate"])(this.queryForm.time[1])},loadScript(e){this.dialogFormVisible=!0,this.queryForm=e,this.setDefaultTime(),this.getData(),setTimeout(()=>{this.setTrajectory()},1e3)},async getData(){const{data:e}=await Object(l["getTrajectory"])(this.queryForm);if(this.coordinate=[],this.coordinate.push(e[0]),this.trajectoryData=e,0!=e.length){this.coords=[];for(let t=0;t<e.length;t++)this.coords.push(new qq.maps.LatLng(e[t].latitude,e[t].longitude))}},setTrajectory(){this.map=new qq.maps.Map(document.getElementById("mapContainer"),{center:new qq.maps.LatLng(this.coordinate[0].latitude,this.coordinate[0].longitude),zoom:12});var e=this.trajectoryData;const t=e.length;var o="";if(t>1){o=new qq.maps.LatLng(e[0].latitude,e[0].longitude);var n=new qq.maps.LatLng(e[t-1].latitude,e[t-1].longitude)}else o=new qq.maps.LatLng(e[0].latitude,e[0].longitude);const a=this.map;new qq.maps.Marker({position:o,map:a});if(void 0!==n){new qq.maps.Marker({position:n,map:a}),new qq.maps.Label({position:n,map:a,content:"终点",style:{color:"#fff",backgroundColor:"#00f",padding:"5px"}})}new qq.maps.Label({position:o,map:a,content:"起点",style:{color:"#fff",backgroundColor:"#f00",padding:"5px"}});this.polyline=new qq.maps.Polyline({path:this.coords,strokeColor:"#FF0000",strokeWeight:3,map:this.map}),this.showBox()},showBox(){var e=this.map,t=this.trajectoryData;t.forEach(t=>{console.log(111,t.latitude);const o=new qq.maps.Marker({position:new qq.maps.LatLng(t.latitude,t.longitude),map:e});qq.maps.event.addListener(o,"click",o=>{console.log(t);const n=new qq.maps.InfoWindow({map:e});n.open(),n.setContent(t.time),n.setPosition(o.latLng)})})}}},d=(o("a4c1"),o("d959")),u=o.n(d);const m=u()(c,[["render",i]]);t["default"]=m},"0210":function(e,t,o){},"030f":function(e,t){(function(){"use strict";const e=Object.getPrototypeOf,t=(e,t,o)=>{var n;return!!o(e,t.prototype)||(null===(n=e.constructor)||void 0===n?void 0:n.name)===t.name},o=e=>{const o=typeof e;return null===e?"null":"object"===o&&Array.isArray(e)?"array":"object"===o&&t(e,String,(e,t)=>t.isPrototypeOf(e))?"string":o},n=e=>t=>o(t)===e,a=e=>t=>typeof t===e,r=e=>t=>e===t,i=(o,n)=>s(o)&&t(o,n,(t,o)=>e(t)===o),l=n("string"),s=n("object"),c=e=>i(e,Object),d=n("array"),u=r(null),m=a("boolean"),h=r(void 0),p=e=>null===e||void 0===e,b=e=>!p(e),g=a("function"),f=a("number"),v=(e,t)=>{if(d(e)){for(let o=0,n=e.length;o<n;++o)if(!t(e[o]))return!1;return!0}return!1},w=()=>{},k=e=>()=>e(),C=(e,t)=>(...o)=>e(t.apply(null,o)),y=(e,t)=>o=>e(t(o)),O=e=>()=>e,j=e=>e,x=(e,t)=>e===t;function _(e,...t){return(...o)=>{const n=t.concat(o);return e.apply(null,n)}}const V=e=>t=>!e(t),A=e=>()=>{throw new Error(e)},N=e=>e(),D=O(!1),E=O(!0);class T{constructor(e,t){this.tag=e,this.value=t}static some(e){return new T(!0,e)}static none(){return T.singletonNone}fold(e,t){return this.tag?t(this.value):e()}isSome(){return this.tag}isNone(){return!this.tag}map(e){return this.tag?T.some(e(this.value)):T.none()}bind(e){return this.tag?e(this.value):T.none()}exists(e){return this.tag&&e(this.value)}forall(e){return!this.tag||e(this.value)}filter(e){return!this.tag||e(this.value)?this:T.none()}getOr(e){return this.tag?this.value:e}or(e){return this.tag?this:e}getOrThunk(e){return this.tag?this.value:e()}orThunk(e){return this.tag?this:e()}getOrDie(e){if(this.tag)return this.value;throw new Error(null!==e&&void 0!==e?e:"Called getOrDie on None")}static from(e){return b(e)?T.some(e):T.none()}getOrNull(){return this.tag?this.value:null}getOrUndefined(){return this.value}each(e){this.tag&&e(this.value)}toArray(){return this.tag?[this.value]:[]}toString(){return this.tag?`some(${this.value})`:"none()"}}T.singletonNone=new T(!1);const S=Array.prototype.slice,B=Array.prototype.indexOf,I=Array.prototype.push,z=(e,t)=>B.call(e,t),F=(e,t)=>{const o=z(e,t);return-1===o?T.none():T.some(o)},M=(e,t)=>z(e,t)>-1,L=(e,t)=>{for(let o=0,n=e.length;o<n;o++){const n=e[o];if(t(n,o))return!0}return!1},P=(e,t)=>{const o=[];for(let n=0;n<e;n++)o.push(t(n));return o},R=(e,t)=>{const o=[];for(let n=0;n<e.length;n+=t){const a=S.call(e,n,n+t);o.push(a)}return o},q=(e,t)=>{const o=e.length,n=new Array(o);for(let a=0;a<o;a++){const o=e[a];n[a]=t(o,a)}return n},$=(e,t)=>{for(let o=0,n=e.length;o<n;o++){const n=e[o];t(n,o)}},U=(e,t)=>{for(let o=e.length-1;o>=0;o--){const n=e[o];t(n,o)}},H=(e,t)=>{const o=[],n=[];for(let a=0,r=e.length;a<r;a++){const r=e[a],i=t(r,a)?o:n;i.push(r)}return{pass:o,fail:n}},W=(e,t)=>{const o=[];for(let n=0,a=e.length;n<a;n++){const a=e[n];t(a,n)&&o.push(a)}return o},G=(e,t,o)=>(U(e,(e,n)=>{o=t(o,e,n)}),o),K=(e,t,o)=>($(e,(e,n)=>{o=t(o,e,n)}),o),Y=(e,t,o)=>{for(let n=0,a=e.length;n<a;n++){const a=e[n];if(t(a,n))return T.some(a);if(o(a,n))break}return T.none()},Q=(e,t)=>Y(e,t,D),J=(e,t)=>{for(let o=0,n=e.length;o<n;o++){const n=e[o];if(t(n,o))return T.some(o)}return T.none()},Z=e=>{const t=[];for(let o=0,n=e.length;o<n;++o){if(!d(e[o]))throw new Error("Arr.flatten item "+o+" was not an array, input: "+e);I.apply(t,e[o])}return t},X=(e,t)=>Z(q(e,t)),ee=(e,t)=>{for(let o=0,n=e.length;o<n;++o){const n=e[o];if(!0!==t(n,o))return!1}return!0},te=e=>{const t=S.call(e,0);return t.reverse(),t},oe=(e,t)=>W(e,e=>!M(t,e)),ne=(e,t)=>{const o={};for(let n=0,a=e.length;n<a;n++){const a=e[n];o[String(a)]=t(a,n)}return o},ae=e=>[e],re=(e,t)=>{const o=S.call(e,0);return o.sort(t),o},ie=(e,t)=>t>=0&&t<e.length?T.some(e[t]):T.none(),le=e=>ie(e,0),se=e=>ie(e,e.length-1),ce=g(Array.from)?Array.from:e=>S.call(e),de=(e,t)=>{for(let o=0;o<e.length;o++){const n=t(e[o],o);if(n.isSome())return n}return T.none()},ue=Object.keys,me=Object.hasOwnProperty,he=(e,t)=>{const o=ue(e);for(let n=0,a=o.length;n<a;n++){const a=o[n],r=e[a];t(r,a)}},pe=(e,t)=>be(e,(e,o)=>({k:o,v:t(e,o)})),be=(e,t)=>{const o={};return he(e,(e,n)=>{const a=t(e,n);o[a.k]=a.v}),o},ge=e=>(t,o)=>{e[o]=t},fe=(e,t,o,n)=>{he(e,(e,a)=>{(t(e,a)?o:n)(e,a)})},ve=(e,t)=>{const o={},n={};return fe(e,t,ge(o),ge(n)),{t:o,f:n}},we=(e,t)=>{const o={};return fe(e,t,ge(o),w),o},ke=(e,t)=>{const o=[];return he(e,(e,n)=>{o.push(t(e,n))}),o},Ce=(e,t)=>{const o=ue(e);for(let n=0,a=o.length;n<a;n++){const a=o[n],r=e[a];if(t(r,a,e))return T.some(r)}return T.none()},ye=e=>ke(e,j),Oe=(e,t)=>je(e,t)?T.from(e[t]):T.none(),je=(e,t)=>me.call(e,t),xe=(e,t)=>je(e,t)&&void 0!==e[t]&&null!==e[t],_e=(e,t,o=x)=>e.exists(e=>o(e,t)),Ve=(e,t,o=x)=>De(e,t,o).getOr(e.isNone()&&t.isNone()),Ae=e=>{const t=[],o=e=>{t.push(e)};for(let n=0;n<e.length;n++)e[n].each(o);return t},Ne=e=>{const t=[];for(let o=0;o<e.length;o++){const n=e[o];if(!n.isSome())return T.none();t.push(n.getOrDie())}return T.some(t)},De=(e,t,o)=>e.isSome()&&t.isSome()?T.some(o(e.getOrDie(),t.getOrDie())):T.none(),Ee=(e,t,o,n)=>e.isSome()&&t.isSome()&&o.isSome()?T.some(n(e.getOrDie(),t.getOrDie(),o.getOrDie())):T.none(),Te=(e,t)=>void 0!==e&&null!==e?T.some(t(e)):T.none(),Se=(e,t)=>e?T.some(t):T.none(),Be=(e,t)=>e+t,Ie=(e,t)=>e.substring(t),ze=(e,t,o)=>""===t||e.length>=t.length&&e.substr(o,o+t.length)===t,Fe=(e,t)=>Pe(e,t)?Ie(e,t.length):e,Me=(e,t)=>Re(e,t)?e:Be(e,t),Le=(e,t,o=0,n)=>{const a=e.indexOf(t,o);return-1!==a&&(!!h(n)||a+t.length<=n)},Pe=(e,t)=>ze(e,t,0),Re=(e,t)=>ze(e,t,e.length-t.length),qe=e=>t=>t.replace(e,""),$e=qe(/^\s+|\s+$/g),Ue=e=>e.length>0,He=e=>!Ue(e),We=e=>void 0!==e.style&&g(e.style.getPropertyValue),Ge=(e,t)=>{const o=t||document,n=o.createElement("div");if(n.innerHTML=e,!n.hasChildNodes()||n.childNodes.length>1){const t="HTML does not have a single root node";throw console.error(t,e),new Error(t)}return Qe(n.childNodes[0])},Ke=(e,t)=>{const o=t||document,n=o.createElement(e);return Qe(n)},Ye=(e,t)=>{const o=t||document,n=o.createTextNode(e);return Qe(n)},Qe=e=>{if(null===e||void 0===e)throw new Error("Node cannot be null or undefined");return{dom:e}},Je=(e,t,o)=>T.from(e.dom.elementFromPoint(t,o)).map(Qe),Ze={fromHtml:Ge,fromTag:Ke,fromText:Ye,fromDom:Qe,fromPoint:Je},Xe="undefined"!==typeof window?window:Function("return this;")(),et=(e,t)=>{let o=void 0!==t&&null!==t?t:Xe;for(let n=0;n<e.length&&void 0!==o&&null!==o;++n)o=o[e[n]];return o},tt=(e,t)=>{const o=e.split(".");return et(o,t)},ot=(e,t)=>tt(e,t),nt=(e,t)=>{const o=ot(e,t);if(void 0===o||null===o)throw new Error(e+" not available on this browser");return o},at=Object.getPrototypeOf,rt=e=>nt("HTMLElement",e),it=e=>{const t=tt("ownerDocument.defaultView",e);return s(e)&&(rt(t).prototype.isPrototypeOf(e)||/^HTML\w*Element$/.test(at(e).constructor.name))},lt=9,st=11,ct=1,dt=3,ut=e=>{const t=e.dom.nodeName;return t.toLowerCase()},mt=e=>e.dom.nodeType,ht=e=>t=>mt(t)===e,pt=e=>bt(e)&&it(e.dom),bt=ht(ct),gt=ht(dt),ft=ht(lt),vt=ht(st),wt=e=>t=>bt(t)&&ut(t)===e,kt=(e,t)=>{const o=e.dom;if(o.nodeType!==ct)return!1;{const e=o;if(void 0!==e.matches)return e.matches(t);if(void 0!==e.msMatchesSelector)return e.msMatchesSelector(t);if(void 0!==e.webkitMatchesSelector)return e.webkitMatchesSelector(t);if(void 0!==e.mozMatchesSelector)return e.mozMatchesSelector(t);throw new Error("Browser lacks native selectors")}},Ct=e=>e.nodeType!==ct&&e.nodeType!==lt&&e.nodeType!==st||0===e.childElementCount,yt=(e,t)=>{const o=void 0===t?document:t.dom;return Ct(o)?[]:q(o.querySelectorAll(e),Ze.fromDom)},Ot=(e,t)=>{const o=void 0===t?document:t.dom;return Ct(o)?T.none():T.from(o.querySelector(e)).map(Ze.fromDom)},jt=(e,t)=>e.dom===t.dom,xt=(e,t)=>{const o=e.dom,n=t.dom;return o!==n&&o.contains(n)},_t=e=>Ze.fromDom(e.dom.ownerDocument),Vt=e=>ft(e)?e:_t(e),At=e=>Ze.fromDom(Vt(e).dom.documentElement),Nt=e=>Ze.fromDom(Vt(e).dom.defaultView),Dt=e=>T.from(e.dom.parentNode).map(Ze.fromDom),Et=e=>Dt(e),Tt=e=>T.from(e.dom.parentElement).map(Ze.fromDom),St=(e,t)=>{const o=g(t)?t:D;let n=e.dom;const a=[];while(null!==n.parentNode&&void 0!==n.parentNode){const e=n.parentNode,t=Ze.fromDom(e);if(a.push(t),!0===o(t))break;n=e}return a},Bt=e=>T.from(e.dom.offsetParent).map(Ze.fromDom),It=e=>T.from(e.dom.nextSibling).map(Ze.fromDom),zt=e=>q(e.dom.childNodes,Ze.fromDom),Ft=(e,t)=>{const o=e.dom.childNodes;return T.from(o[t]).map(Ze.fromDom)},Mt=e=>Ft(e,0),Lt=(e,t)=>({element:e,offset:t}),Pt=(e,t)=>{const o=zt(e);return o.length>0&&t<o.length?Lt(o[t],0):Lt(e,t)},Rt=e=>vt(e)&&b(e.dom.host),qt=g(Element.prototype.attachShadow)&&g(Node.prototype.getRootNode),$t=O(qt),Ut=qt?e=>Ze.fromDom(e.dom.getRootNode()):Vt,Ht=e=>Rt(e)?e:Ze.fromDom(Vt(e).dom.body),Wt=e=>Gt(e).isSome(),Gt=e=>{const t=Ut(e);return Rt(t)?T.some(t):T.none()},Kt=e=>Ze.fromDom(e.dom.host),Yt=e=>{if($t()&&b(e.target)){const t=Ze.fromDom(e.target);if(bt(t)&&Qt(t)&&e.composed&&e.composedPath){const t=e.composedPath();if(t)return le(t)}}return T.from(e.target)},Qt=e=>b(e.dom.shadowRoot),Jt=e=>{const t=gt(e)?e.dom.parentNode:e.dom;if(void 0===t||null===t||null===t.ownerDocument)return!1;const o=t.ownerDocument;return Gt(Ze.fromDom(t)).fold(()=>o.body.contains(t),y(Jt,Kt))},Zt=()=>Xt(Ze.fromDom(document)),Xt=e=>{const t=e.dom.body;if(null===t||void 0===t)throw new Error("Body is not available yet");return Ze.fromDom(t)},eo=(e,t,o)=>{if(!(l(o)||m(o)||f(o)))throw console.error("Invalid call to Attribute.set. Key ",t,":: Value ",o,":: Element ",e),new Error("Attribute value was not simple");e.setAttribute(t,o+"")},to=(e,t,o)=>{eo(e.dom,t,o)},oo=(e,t)=>{const o=e.dom;he(t,(e,t)=>{eo(o,t,e)})},no=(e,t)=>{const o=e.dom.getAttribute(t);return null===o?void 0:o},ao=(e,t)=>T.from(no(e,t)),ro=(e,t)=>{const o=e.dom;return!(!o||!o.hasAttribute)&&o.hasAttribute(t)},io=(e,t)=>{e.dom.removeAttribute(t)},lo=e=>K(e.dom.attributes,(e,t)=>(e[t.name]=t.value,e),{}),so=(e,t,o)=>{if(!l(o))throw console.error("Invalid call to CSS.set. Property ",t,":: Value ",o,":: Element ",e),new Error("CSS value must be a string: "+o);We(e)&&e.style.setProperty(t,o)},co=(e,t)=>{We(e)&&e.style.removeProperty(t)},uo=(e,t,o)=>{const n=e.dom;so(n,t,o)},mo=(e,t)=>{const o=e.dom;he(t,(e,t)=>{so(o,t,e)})},ho=(e,t)=>{const o=e.dom;he(t,(e,t)=>{e.fold(()=>{co(o,t)},e=>{so(o,t,e)})})},po=(e,t)=>{const o=e.dom,n=window.getComputedStyle(o),a=n.getPropertyValue(t);return""!==a||Jt(e)?a:bo(o,t)},bo=(e,t)=>We(e)?e.style.getPropertyValue(t):"",go=(e,t)=>{const o=e.dom,n=bo(o,t);return T.from(n).filter(e=>e.length>0)},fo=e=>{const t={},o=e.dom;if(We(o))for(let n=0;n<o.style.length;n++){const e=o.style.item(n);t[e]=o.style[e]}return t},vo=(e,t,o)=>{const n=Ze.fromTag(e);uo(n,t,o);const a=go(n,t);return a.isSome()},wo=(e,t)=>{const o=e.dom;co(o,t),_e(ao(e,"style").map($e),"")&&io(e,"style")},ko=e=>e.dom.offsetWidth,Co=(e,t)=>{const o=(t,o)=>{if(!f(o)&&!o.match(/^[0-9]+$/))throw new Error(e+".set accepts only positive integer values. Value was "+o);const n=t.dom;We(n)&&(n.style[e]=o+"px")},n=o=>{const n=t(o);if(n<=0||null===n){const t=po(o,e);return parseFloat(t)||0}return n},a=n,r=(e,t)=>K(t,(t,o)=>{const n=po(e,o),a=void 0===n?0:parseInt(n,10);return isNaN(a)?t:t+a},0),i=(e,t,o)=>{const n=r(e,o),a=t>n?t-n:0;return a};return{set:o,get:n,getOuter:a,aggregate:r,max:i}},yo=Co("height",e=>{const t=e.dom;return Jt(e)?t.getBoundingClientRect().height:t.offsetHeight}),Oo=e=>yo.get(e),jo=e=>yo.getOuter(e),xo=(e,t)=>{const o=["margin-top","border-top-width","padding-top","padding-bottom","border-bottom-width","margin-bottom"],n=yo.max(e,t,o);uo(e,"max-height",n+"px")},_o=(e,t)=>{const o=(o,n)=>_o(e+o,t+n);return{left:e,top:t,translate:o}},Vo=_o,Ao=e=>{const t=e.getBoundingClientRect();return Vo(t.left,t.top)},No=(e,t)=>void 0!==e?e:void 0!==t?t:0,Do=e=>{const t=e.dom.ownerDocument,o=t.body,n=t.defaultView,a=t.documentElement;if(o===e.dom)return Vo(o.offsetLeft,o.offsetTop);const r=No(null===n||void 0===n?void 0:n.pageYOffset,a.scrollTop),i=No(null===n||void 0===n?void 0:n.pageXOffset,a.scrollLeft),l=No(a.clientTop,o.clientTop),s=No(a.clientLeft,o.clientLeft);return Eo(e).translate(i-s,r-l)},Eo=e=>{const t=e.dom,o=t.ownerDocument,n=o.body;return n===t?Vo(n.offsetLeft,n.offsetTop):Jt(e)?Ao(t):Vo(0,0)},To=Co("width",e=>e.dom.offsetWidth),So=(e,t)=>To.set(e,t),Bo=e=>To.get(e),Io=e=>To.getOuter(e),zo=(e,t)=>{const o=["margin-left","border-left-width","padding-left","padding-right","border-right-width","margin-right"],n=To.max(e,t,o);uo(e,"max-width",n+"px")},Fo=e=>{let t,o=!1;return(...n)=>(o||(o=!0,t=e.apply(null,n)),t)},Mo=(e,t,o,n)=>{const a=e.isiOS()&&!0===/ipad/i.test(o),r=e.isiOS()&&!a,i=e.isiOS()||e.isAndroid(),l=i||n("(pointer:coarse)"),s=a||!r&&i&&n("(min-device-width:768px)"),c=r||i&&!s,d=t.isSafari()&&e.isiOS()&&!1===/safari/i.test(o),u=!c&&!s&&!d;return{isiPad:O(a),isiPhone:O(r),isTablet:O(s),isPhone:O(c),isTouch:O(l),isAndroid:e.isAndroid,isiOS:e.isiOS,isWebView:O(d),isDesktop:O(u)}},Lo=(e,t)=>{for(let o=0;o<e.length;o++){const n=e[o];if(n.test(t))return n}},Po=(e,t)=>{const o=Lo(e,t);if(!o)return{major:0,minor:0};const n=e=>Number(t.replace(o,"$"+e));return $o(n(1),n(2))},Ro=(e,t)=>{const o=String(t).toLowerCase();return 0===e.length?qo():Po(e,o)},qo=()=>$o(0,0),$o=(e,t)=>({major:e,minor:t}),Uo={nu:$o,detect:Ro,unknown:qo},Ho=(e,t)=>de(t.brands,t=>{const o=t.brand.toLowerCase();return Q(e,e=>{var t;return o===(null===(t=e.brand)||void 0===t?void 0:t.toLowerCase())}).map(e=>({current:e.name,version:Uo.nu(parseInt(t.version,10),0)}))}),Wo=(e,t)=>{const o=String(t).toLowerCase();return Q(e,e=>e.search(o))},Go=(e,t)=>Wo(e,t).map(e=>{const o=Uo.detect(e.versionRegexes,t);return{current:e.name,version:o}}),Ko=(e,t)=>Wo(e,t).map(e=>{const o=Uo.detect(e.versionRegexes,t);return{current:e.name,version:o}}),Yo=/.*?version\/\ ?([0-9]+)\.([0-9]+).*/,Qo=e=>t=>Le(t,e),Jo=[{name:"Edge",versionRegexes:[/.*?edge\/ ?([0-9]+)\.([0-9]+)$/],search:e=>Le(e,"edge/")&&Le(e,"chrome")&&Le(e,"safari")&&Le(e,"applewebkit")},{name:"Chromium",brand:"Chromium",versionRegexes:[/.*?chrome\/([0-9]+)\.([0-9]+).*/,Yo],search:e=>Le(e,"chrome")&&!Le(e,"chromeframe")},{name:"IE",versionRegexes:[/.*?msie\ ?([0-9]+)\.([0-9]+).*/,/.*?rv:([0-9]+)\.([0-9]+).*/],search:e=>Le(e,"msie")||Le(e,"trident")},{name:"Opera",versionRegexes:[Yo,/.*?opera\/([0-9]+)\.([0-9]+).*/],search:Qo("opera")},{name:"Firefox",versionRegexes:[/.*?firefox\/\ ?([0-9]+)\.([0-9]+).*/],search:Qo("firefox")},{name:"Safari",versionRegexes:[Yo,/.*?cpu os ([0-9]+)_([0-9]+).*/],search:e=>(Le(e,"safari")||Le(e,"mobile/"))&&Le(e,"applewebkit")}],Zo=[{name:"Windows",search:Qo("win"),versionRegexes:[/.*?windows\ nt\ ?([0-9]+)\.([0-9]+).*/]},{name:"iOS",search:e=>Le(e,"iphone")||Le(e,"ipad"),versionRegexes:[/.*?version\/\ ?([0-9]+)\.([0-9]+).*/,/.*cpu os ([0-9]+)_([0-9]+).*/,/.*cpu iphone os ([0-9]+)_([0-9]+).*/]},{name:"Android",search:Qo("android"),versionRegexes:[/.*?android\ ?([0-9]+)\.([0-9]+).*/]},{name:"macOS",search:Qo("mac os x"),versionRegexes:[/.*?mac\ os\ x\ ?([0-9]+)_([0-9]+).*/]},{name:"Linux",search:Qo("linux"),versionRegexes:[]},{name:"Solaris",search:Qo("sunos"),versionRegexes:[]},{name:"FreeBSD",search:Qo("freebsd"),versionRegexes:[]},{name:"ChromeOS",search:Qo("cros"),versionRegexes:[/.*?chrome\/([0-9]+)\.([0-9]+).*/]}],Xo={browsers:O(Jo),oses:O(Zo)},en="Edge",tn="Chromium",on="IE",nn="Opera",an="Firefox",rn="Safari",ln=()=>sn({current:void 0,version:Uo.unknown()}),sn=e=>{const t=e.current,o=e.version,n=e=>()=>t===e;return{current:t,version:o,isEdge:n(en),isChromium:n(tn),isIE:n(on),isOpera:n(nn),isFirefox:n(an),isSafari:n(rn)}},cn={unknown:ln,nu:sn,edge:O(en),chromium:O(tn),ie:O(on),opera:O(nn),firefox:O(an),safari:O(rn)},dn="Windows",un="iOS",mn="Android",hn="Linux",pn="macOS",bn="Solaris",gn="FreeBSD",fn="ChromeOS",vn=()=>wn({current:void 0,version:Uo.unknown()}),wn=e=>{const t=e.current,o=e.version,n=e=>()=>t===e;return{current:t,version:o,isWindows:n(dn),isiOS:n(un),isAndroid:n(mn),isMacOS:n(pn),isLinux:n(hn),isSolaris:n(bn),isFreeBSD:n(gn),isChromeOS:n(fn)}},kn={unknown:vn,nu:wn,windows:O(dn),ios:O(un),android:O(mn),linux:O(hn),macos:O(pn),solaris:O(bn),freebsd:O(gn),chromeos:O(fn)},Cn=(e,t,o)=>{const n=Xo.browsers(),a=Xo.oses(),r=t.bind(e=>Ho(n,e)).orThunk(()=>Go(n,e)).fold(cn.unknown,cn.nu),i=Ko(a,e).fold(kn.unknown,kn.nu),l=Mo(i,r,e,o);return{browser:r,os:i,deviceType:l}},yn={detect:Cn},On=e=>window.matchMedia(e).matches;let jn=Fo(()=>yn.detect(navigator.userAgent,T.from(navigator.userAgentData),On));const xn=()=>jn(),_n=(e,t,o,n,a,r,i)=>({target:e,x:t,y:o,stop:n,prevent:a,kill:r,raw:i}),Vn=e=>{const t=Ze.fromDom(Yt(e).getOr(e.target)),o=()=>e.stopPropagation(),n=()=>e.preventDefault(),a=C(n,o);return _n(t,e.clientX,e.clientY,o,n,a,e)},An=(e,t)=>o=>{e(o)&&t(Vn(o))},Nn=(e,t,o,n,a)=>{const r=An(o,n);return e.dom.addEventListener(t,r,a),{unbind:_(Tn,e,t,r,a)}},Dn=(e,t,o,n)=>Nn(e,t,o,n,!1),En=(e,t,o,n)=>Nn(e,t,o,n,!0),Tn=(e,t,o,n)=>{e.dom.removeEventListener(t,o,n)},Sn=(e,t)=>{const o=Dt(e);o.each(o=>{o.dom.insertBefore(t.dom,e.dom)})},Bn=(e,t)=>{const o=It(e);o.fold(()=>{const o=Dt(e);o.each(e=>{zn(e,t)})},e=>{Sn(e,t)})},In=(e,t)=>{const o=Mt(e);o.fold(()=>{zn(e,t)},o=>{e.dom.insertBefore(t.dom,o.dom)})},zn=(e,t)=>{e.dom.appendChild(t.dom)},Fn=(e,t,o)=>{Ft(e,o).fold(()=>{zn(e,t)},e=>{Sn(e,t)})},Mn=(e,t)=>{$(t,t=>{zn(e,t)})},Ln=e=>{e.dom.textContent="",$(zt(e),e=>{Pn(e)})},Pn=e=>{const t=e.dom;null!==t.parentNode&&t.parentNode.removeChild(t)},Rn=e=>{const t=void 0!==e?e.dom:document,o=t.body.scrollLeft||t.documentElement.scrollLeft,n=t.body.scrollTop||t.documentElement.scrollTop;return Vo(o,n)},qn=(e,t,o)=>{const n=void 0!==o?o.dom:document,a=n.defaultView;a&&a.scrollTo(e,t)},$n=e=>{const t=void 0===e?window:e;return xn().browser.isFirefox()?T.none():T.from(t.visualViewport)},Un=(e,t,o,n)=>({x:e,y:t,width:o,height:n,right:e+o,bottom:t+n}),Hn=e=>{const t=void 0===e?window:e,o=t.document,n=Rn(Ze.fromDom(o));return $n(t).fold(()=>{const e=t.document.documentElement,o=e.clientWidth,a=e.clientHeight;return Un(n.left,n.top,o,a)},e=>Un(Math.max(e.pageLeft,n.left),Math.max(e.pageTop,n.top),e.width,e.height))},Wn=()=>Ze.fromDom(document),Gn=(e,t)=>{const o=e.view(t);return o.fold(O([]),t=>{const o=e.owner(t),n=Gn(e,o);return[t].concat(n)})},Kn=(e,t)=>{const o=t.owner(e),n=Gn(t,o);return T.some(n)},Yn=e=>{var t;const o=e.dom===document?T.none():T.from(null===(t=e.dom.defaultView)||void 0===t?void 0:t.frameElement);return o.map(Ze.fromDom)},Qn=e=>_t(e);var Jn=Object.freeze({__proto__:null,view:Yn,owner:Qn});const Zn=e=>{const t=Wn(),o=Rn(t),n=Kn(e,Jn);return n.fold(_(Do,e),t=>{const n=Eo(e),a=G(t,(e,t)=>{const o=Eo(t);return{left:e.left+o.left,top:e.top+o.top}},{left:0,top:0});return Vo(a.left+n.left+o.left,a.top+n.top+o.top)})},Xn=(e,t,o)=>({point:e,width:t,height:o}),ea=(e,t,o,n)=>({x:e,y:t,width:o,height:n}),ta=(e,t,o,n)=>({x:e,y:t,width:o,height:n,right:e+o,bottom:t+n}),oa=e=>{const t=Do(e),o=Io(e),n=jo(e);return ta(t.left,t.top,o,n)},na=e=>{const t=Zn(e),o=Io(e),n=jo(e);return ta(t.left,t.top,o,n)},aa=(e,t)=>{const o=Math.max(e.x,t.x),n=Math.max(e.y,t.y),a=Math.min(e.right,t.right),r=Math.min(e.bottom,t.bottom),i=a-o,l=r-n;return ta(o,n,i,l)},ra=(e,t)=>K(t,(e,t)=>aa(e,t),e),ia=()=>Hn(window);var la=tinymce.util.Tools.resolve("tinymce.ThemeManager");const sa=e=>{const t=t=>t(e),o=O(e),n=()=>a,a={tag:!0,inner:e,fold:(t,o)=>o(e),isValue:E,isError:D,map:t=>ua.value(t(e)),mapError:n,bind:t,exists:t,forall:t,getOr:o,or:n,getOrThunk:o,orThunk:n,getOrDie:o,each:t=>{t(e)},toOptional:()=>T.some(e)};return a},ca=e=>{const t=()=>o,o={tag:!1,inner:e,fold:(t,o)=>t(e),isValue:D,isError:E,map:t,mapError:t=>ua.error(t(e)),bind:t,exists:D,forall:E,getOr:j,or:j,getOrThunk:N,orThunk:N,getOrDie:A(String(e)),each:w,toOptional:T.none};return o},da=(e,t)=>e.fold(()=>ca(t),sa),ua={value:sa,error:ca,fromOption:da};var ma;(function(e){e[e["Error"]=0]="Error",e[e["Value"]=1]="Value"})(ma||(ma={}));const ha=(e,t,o)=>e.stype===ma.Error?t(e.serror):o(e.svalue),pa=e=>{const t=[],o=[];return $(e,e=>{ha(e,e=>o.push(e),e=>t.push(e))}),{values:t,errors:o}},ba=(e,t)=>e.stype===ma.Error?{stype:ma.Error,serror:t(e.serror)}:e,ga=(e,t)=>e.stype===ma.Value?{stype:ma.Value,svalue:t(e.svalue)}:e,fa=(e,t)=>e.stype===ma.Value?t(e.svalue):e,va=(e,t)=>e.stype===ma.Error?t(e.serror):e,wa=e=>({stype:ma.Value,svalue:e}),ka=e=>({stype:ma.Error,serror:e}),Ca=e=>ha(e,ua.error,ua.value),ya=e=>e.fold(ka,wa),Oa={fromResult:ya,toResult:Ca,svalue:wa,partition:pa,serror:ka,bind:fa,bindError:va,map:ga,mapError:ba,fold:ha},ja=(e,t,o,n)=>({tag:"field",key:e,newKey:t,presence:o,prop:n}),xa=(e,t)=>({tag:"custom",newKey:e,instantiator:t}),_a=(e,t,o)=>{switch(e.tag){case"field":return t(e.key,e.newKey,e.presence,e.prop);case"custom":return o(e.newKey,e.instantiator)}},Va=(e,t)=>t,Aa=(e,t)=>{const o=c(e)&&c(t);return o?Da(e,t):t},Na=e=>(...t)=>{if(0===t.length)throw new Error("Can't merge zero objects");const o={};for(let n=0;n<t.length;n++){const a=t[n];for(const t in a)je(a,t)&&(o[t]=e(o[t],a[t]))}return o},Da=Na(Aa),Ea=Na(Va),Ta=()=>({tag:"required",process:{}}),Sa=e=>({tag:"defaultedThunk",process:e}),Ba=e=>Sa(O(e)),Ia=()=>({tag:"option",process:{}}),za=e=>({tag:"mergeWithThunk",process:e}),Fa=e=>za(O(e)),Ma=(e,t)=>e.length>0?Oa.svalue(Da(t,Ea.apply(void 0,e))):Oa.svalue(t),La=e=>C(Oa.serror,Z)(e),Pa=(e,t)=>{const o=Oa.partition(e);return o.errors.length>0?La(o.errors):Ma(o.values,t)},Ra=e=>{const t=Oa.partition(e);return t.errors.length>0?La(t.errors):Oa.svalue(t.values)},qa={consolidateObj:Pa,consolidateArr:Ra},$a=e=>s(e)&&ue(e).length>100?" removed due to size":JSON.stringify(e,null,2),Ua=e=>{const t=e.length>10?e.slice(0,10).concat([{path:[],getErrorInfo:O("... (only showing first ten failures)")}]):e;return q(t,e=>"Failed path: ("+e.path.join(" > ")+")\n"+e.getErrorInfo())},Ha=(e,t)=>Oa.serror([{path:e,getErrorInfo:t}]),Wa=(e,t,o)=>Ha(e,()=>'Could not find valid *required* value for "'+t+'" in '+$a(o)),Ga=(e,t)=>Ha(e,()=>'Choice schema did not contain choice key: "'+t+'"'),Ka=(e,t,o)=>Ha(e,()=>'The chosen schema: "'+o+'" did not exist in branches: '+$a(t)),Ya=(e,t)=>Ha(e,()=>"There are unsupported fields: ["+t.join(", ")+"] specified"),Qa=(e,t)=>Ha(e,O(t)),Ja=e=>{const t=(t,o)=>Oa.bindError(e(o),e=>Qa(t,e)),o=O("val");return{extract:t,toString:o}},Za=Ja(Oa.svalue),Xa=(e,t,o,n)=>Oe(t,o).fold(()=>Wa(e,o,t),n),er=(e,t,o,n)=>{const a=Oe(e,t).getOrThunk(()=>o(e));return n(a)},tr=(e,t,o)=>o(Oe(e,t)),or=(e,t,o,n)=>{const a=Oe(e,t).map(t=>!0===t?o(e):t);return n(a)},nr=(e,t,o,n,a)=>{const r=e=>a.extract(t.concat([n]),e),i=e=>e.fold(()=>Oa.svalue(T.none()),e=>{const o=a.extract(t.concat([n]),e);return Oa.map(o,T.some)});switch(e.tag){case"required":return Xa(t,o,n,r);case"defaultedThunk":return er(o,n,e.process,r);case"option":return tr(o,n,i);case"defaultedOptionThunk":return or(o,n,e.process,i);case"mergeWithThunk":return er(o,n,O({}),t=>{const n=Da(e.process(o),t);return r(n)})}},ar=(e,t,o)=>{const n={},a=[];for(const r of o)_a(r,(o,r,i,l)=>{const s=nr(i,e,t,o,l);Oa.fold(s,e=>{a.push(...e)},e=>{n[r]=e})},(e,o)=>{n[e]=o(t)});return a.length>0?Oa.serror(a):Oa.svalue(n)},rr=e=>{const t=(t,o)=>e().extract(t,o),o=()=>e().toString();return{extract:t,toString:o}},ir=e=>ue(we(e,b)),lr=e=>{const t=sr(e),o=G(e,(e,t)=>_a(t,t=>Da(e,{[t]:!0}),O(e)),{}),n=(e,n)=>{const a=m(n)?[]:ir(n),r=W(a,e=>!xe(o,e));return 0===r.length?t.extract(e,n):Ya(e,r)};return{extract:n,toString:t.toString}},sr=e=>{const t=(t,o)=>ar(t,o,e),o=()=>{const t=q(e,e=>_a(e,(e,t,o,n)=>e+" -> "+n.toString(),(e,t)=>"state("+e+")"));return"obj{\n"+t.join("\n")+"}"};return{extract:t,toString:o}},cr=e=>{const t=(t,o)=>{const n=q(o,(o,n)=>e.extract(t.concat(["["+n+"]"]),o));return qa.consolidateArr(n)},o=()=>"array("+e.toString()+")";return{extract:t,toString:o}},dr=(e,t)=>{const o=void 0!==t?t:j,n=(t,n)=>{const a=[];for(const r of e){const e=r.extract(t,n);if(e.stype===ma.Value)return{stype:ma.Value,svalue:o(e.svalue)};a.push(e)}return qa.consolidateArr(a)},a=()=>"oneOf("+q(e,e=>e.toString()).join(", ")+")";return{extract:n,toString:a}},ur=(e,t)=>{const o=(t,o)=>cr(Ja(e)).extract(t,o),n=(e,n)=>{const a=ue(n),r=o(e,a);return Oa.bind(r,o=>{const a=q(o,e=>ja(e,e,Ta(),t));return sr(a).extract(e,n)})},a=()=>"setOf("+t.toString()+")";return{extract:n,toString:a}},mr=(e,t)=>{const o=Fo(t),n=(e,t)=>o().extract(e,t),a=()=>o().toString();return{extract:n,toString:a}},hr=C(cr,sr),pr=O(Za),br=(e,t)=>Ja(o=>{const n=typeof o;return e(o)?Oa.svalue(o):Oa.serror(`Expected type: ${t} but got: ${n}`)}),gr=br(f,"number"),fr=br(l,"string"),vr=br(m,"boolean"),wr=br(g,"function"),kr=e=>{if(Object(e)!==e)return!0;switch({}.toString.call(e).slice(8,-1)){case"Boolean":case"Number":case"String":case"Date":case"RegExp":case"Blob":case"FileList":case"ImageData":case"ImageBitmap":case"ArrayBuffer":return!0;case"Array":case"Object":return Object.keys(e).every(t=>kr(e[t]));default:return!1}},Cr=Ja(e=>kr(e)?Oa.svalue(e):Oa.serror("Expected value to be acceptable for sending via postMessage")),yr=(e,t,o,n)=>{const a=Oe(o,n);return a.fold(()=>Ka(e,o,n),o=>o.extract(e.concat(["branch: "+n]),t))},Or=(e,t)=>{const o=(o,n)=>{const a=Oe(n,e);return a.fold(()=>Ga(o,e),e=>yr(o,n,t,e))},n=()=>"chooseOn("+e+"). Possible values: "+ue(t);return{extract:o,toString:n}},jr=()=>cr(Za),xr=e=>Ja(t=>e(t).fold(Oa.serror,Oa.svalue)),_r=(e,t)=>ur(t=>Oa.fromResult(e(t)),t),Vr=(e,t,o)=>{const n=t.extract([e],o);return Oa.mapError(n,e=>({input:o,errors:e}))},Ar=(e,t,o)=>Oa.toResult(Vr(e,t,o)),Nr=e=>e.fold(e=>{throw new Error(Er(e))},j),Dr=(e,t,o)=>Nr(Ar(e,t,o)),Er=e=>"Errors: \n"+Ua(e.errors).join("\n")+"\n\nInput object: "+$a(e.input),Tr=(e,t)=>Or(e,pe(t,sr)),Sr=(e,t)=>mr(e,t),Br=ja,Ir=xa,zr=e=>xr(t=>M(e,t)?ua.value(t):ua.error(`Unsupported value: "${t}", choose one of "${e.join(", ")}".`)),Fr=e=>Br(e,e,Ta(),pr()),Mr=(e,t)=>Br(e,e,Ta(),t),Lr=e=>Mr(e,gr),Pr=e=>Mr(e,fr),Rr=(e,t)=>Br(e,e,Ta(),zr(t)),qr=e=>Mr(e,vr),$r=e=>Mr(e,wr),Ur=(e,t)=>Br(e,e,Ia(),Ja(o=>Oa.serror("The field: "+e+" is forbidden. "+t))),Hr=(e,t)=>Br(e,e,Ta(),sr(t)),Wr=(e,t)=>Br(e,e,Ta(),hr(t)),Gr=(e,t)=>Br(e,e,Ta(),cr(t)),Kr=e=>Br(e,e,Ia(),pr()),Yr=(e,t)=>Br(e,e,Ia(),t),Qr=e=>Yr(e,gr),Jr=e=>Yr(e,fr),Zr=(e,t)=>Yr(e,zr(t)),Xr=e=>Yr(e,wr),ei=(e,t)=>Yr(e,cr(t)),ti=(e,t)=>Yr(e,sr(t)),oi=(e,t)=>Yr(e,lr(t)),ni=(e,t)=>Br(e,e,Ba(t),pr()),ai=(e,t,o)=>Br(e,e,Ba(t),o),ri=(e,t)=>ai(e,t,gr),ii=(e,t)=>ai(e,t,fr),li=(e,t,o)=>ai(e,t,zr(o)),si=(e,t)=>ai(e,t,vr),ci=(e,t)=>ai(e,t,wr),di=(e,t)=>ai(e,t,Cr),ui=(e,t,o)=>ai(e,t,cr(o)),mi=(e,t,o)=>ai(e,t,sr(o)),hi=e=>{let t=e;const o=()=>t,n=e=>{t=e};return{get:o,set:n}},pi=e=>{if(!d(e))throw new Error("cases must be an array");if(0===e.length)throw new Error("there must be at least one case");const t=[],o={};return $(e,(n,a)=>{const r=ue(n);if(1!==r.length)throw new Error("one and only one name per case");const i=r[0],l=n[i];if(void 0!==o[i])throw new Error("duplicate key detected:"+i);if("cata"===i)throw new Error("cannot have a case named cata (sorry)");if(!d(l))throw new Error("case arguments must be an array");t.push(i),o[i]=(...o)=>{const n=o.length;if(n!==l.length)throw new Error("Wrong number of arguments to case "+i+". Expected "+l.length+" ("+l+"), got "+n);const r=e=>{const n=ue(e);if(t.length!==n.length)throw new Error("Wrong number of arguments to match. Expected: "+t.join(",")+"\nActual: "+n.join(","));const a=ee(t,e=>M(n,e));if(!a)throw new Error("Not all branches were specified when using match. Specified: "+n.join(", ")+"\nRequired: "+t.join(", "));return e[i].apply(null,o)};return{fold:(...t)=>{if(t.length!==e.length)throw new Error("Wrong number of arguments to fold. Expected "+e.length+", got "+t.length);const n=t[a];return n.apply(null,o)},match:r,log:e=>{console.log(e,{constructors:t,constructor:i,params:o})}}}}),o},bi={generate:pi};bi.generate([{bothErrors:["error1","error2"]},{firstError:["error1","value2"]},{secondError:["value1","error2"]},{bothValues:["value1","value2"]}]);const gi=e=>{const t=[],o=[];return $(e,e=>{e.fold(e=>{t.push(e)},e=>{o.push(e)})}),{errors:t,values:o}},fi=(e,t)=>{const o={};return he(e,(e,n)=>{M(t,n)||(o[n]=e)}),o},vi=(e,t)=>({[e]:t}),wi=e=>{const t={};return $(e,e=>{t[e.key]=e.value}),t},ki=(e,t)=>fi(e,t),Ci=(e,t)=>vi(e,t),yi=e=>wi(e),Oi=(e,t)=>0===e.length?ua.value(t):ua.value(Da(t,Ea.apply(void 0,e))),ji=e=>ua.error(Z(e)),xi=(e,t)=>{const o=gi(e);return o.errors.length>0?ji(o.errors):Oi(o.values,t)},_i=e=>g(e)?e:D,Vi=(e,t,o)=>{let n=e.dom;const a=_i(o);while(n.parentNode){n=n.parentNode;const e=Ze.fromDom(n),o=t(e);if(o.isSome())return o;if(a(e))break}return T.none()},Ai=(e,t,o)=>{const n=t(e),a=_i(o);return n.orThunk(()=>a(e)?T.none():Vi(e,t,a))},Ni=(e,t)=>jt(e.element,t.event.target),Di={can:E,abort:D,run:w},Ei=e=>{if(!xe(e,"can")&&!xe(e,"abort")&&!xe(e,"run"))throw new Error("EventHandler defined by: "+JSON.stringify(e,null,2)+" does not have can, abort, or run!");return{...Di,...e}},Ti=(e,t)=>(...o)=>K(e,(e,n)=>e&&t(n).apply(void 0,o),!0),Si=(e,t)=>(...o)=>K(e,(e,n)=>e||t(n).apply(void 0,o),!1),Bi=e=>g(e)?{can:E,abort:D,run:e}:e,Ii=e=>{const t=Ti(e,e=>e.can),o=Si(e,e=>e.abort),n=(...t)=>{$(e,e=>{e.run.apply(void 0,t)})};return{can:t,abort:o,run:n}},zi=O,Fi=zi("touchstart"),Mi=zi("touchmove"),Li=zi("touchend"),Pi=zi("touchcancel"),Ri=zi("mousedown"),qi=zi("mousemove"),$i=zi("mouseout"),Ui=zi("mouseup"),Hi=zi("mouseover"),Wi=zi("focusin"),Gi=zi("focusout"),Ki=zi("keydown"),Yi=zi("keyup"),Qi=zi("input"),Ji=zi("change"),Zi=zi("click"),Xi=zi("transitioncancel"),el=zi("transitionend"),tl=zi("transitionstart"),ol=zi("selectstart"),nl=e=>O("alloy."+e),al={tap:nl("tap")},rl=nl("focus"),il=nl("blur.post"),ll=nl("paste.post"),sl=nl("receive"),cl=nl("execute"),dl=nl("focus.item"),ul=al.tap,ml=nl("longpress"),hl=nl("sandbox.close"),pl=nl("typeahead.cancel"),bl=nl("system.init"),gl=nl("system.touchmove"),fl=nl("system.touchend"),vl=nl("system.scroll"),wl=nl("system.resize"),kl=nl("system.attached"),Cl=nl("system.detached"),yl=nl("system.dismissRequested"),Ol=nl("system.repositionRequested"),jl=nl("focusmanager.shifted"),xl=nl("slotcontainer.visibility"),_l=nl("system.external.element.scroll"),Vl=nl("change.tab"),Al=nl("dismiss.tab"),Nl=nl("highlight"),Dl=nl("dehighlight"),El=(e,t)=>{Il(e,e.element,t,{})},Tl=(e,t,o)=>{Il(e,e.element,t,o)},Sl=e=>{El(e,cl())},Bl=(e,t,o)=>{Il(e,t,o,{})},Il=(e,t,o,n)=>{const a={target:t,...n};e.getSystem().triggerEvent(o,t,a)},zl=(e,t,o,n)=>{const a={...n,target:t};e.getSystem().triggerEvent(o,t,a)},Fl=(e,t,o,n)=>{e.getSystem().triggerEvent(o,t,n.event)},Ml=e=>yi(e),Ll=(e,t)=>({key:e,value:Ei({abort:t})}),Pl=(e,t)=>({key:e,value:Ei({can:t})}),Rl=e=>({key:e,value:Ei({run:(e,t)=>{t.event.prevent()}})}),ql=(e,t)=>({key:e,value:Ei({run:t})}),$l=(e,t,o)=>({key:e,value:Ei({run:(e,n)=>{t.apply(void 0,[e,n].concat(o))}})}),Ul=e=>t=>ql(e,t),Hl=e=>t=>({key:e,value:Ei({run:(e,o)=>{Ni(e,o)&&t(e,o)}})}),Wl=(e,t)=>ql(e,(o,n)=>{o.getSystem().getByUid(t).each(t=>{Fl(t,t.element,e,n)})}),Gl=(e,t,o)=>{const n=t.partUids[o];return Wl(e,n)},Kl=(e,t)=>ql(e,(e,o)=>{const n=o.event,a=e.getSystem().getByDom(n.target).getOrThunk(()=>{const t=Ai(n.target,t=>e.getSystem().getByDom(t).toOptional(),D);return t.getOr(e)});t(e,a,o)}),Yl=e=>ql(e,(e,t)=>{t.cut()}),Ql=e=>ql(e,(e,t)=>{t.stop()}),Jl=(e,t)=>Hl(e)(t),Zl=Hl(kl()),Xl=Hl(Cl()),es=Hl(bl()),ts=Ul(cl()),os=(e,t)=>{const o=t||document,n=o.createElement("div");return n.innerHTML=e,zt(Ze.fromDom(n))},ns=e=>e.dom.innerHTML,as=(e,t)=>{const o=_t(e),n=o.dom,a=Ze.fromDom(n.createDocumentFragment()),r=os(t,n);Mn(a,r),Ln(e),zn(e,a)},rs=e=>{const t=Ze.fromTag("div"),o=Ze.fromDom(e.dom.cloneNode(!0));return zn(t,o),ns(t)},is=(e,t)=>Ze.fromDom(e.dom.cloneNode(t)),ls=e=>is(e,!1),ss=e=>is(e,!0),cs=e=>{if(Rt(e))return"#shadow-root";{const t=ls(e);return rs(t)}},ds=e=>cs(e),us=(e,t,o)=>jt(t,e.element)&&!jt(t,o),ms=Ml([Pl(rl(),(e,t)=>{const o=t.event,n=o.originator,a=o.target;return!us(e,n,a)||(console.warn(rl()+" did not get interpreted by the desired target. \nOriginator: "+ds(n)+"\nTarget: "+ds(a)+"\nCheck the "+rl()+" event handlers"),!1)})]);var hs=Object.freeze({__proto__:null,events:ms});let ps=0;const bs=e=>{const t=new Date,o=t.getTime(),n=Math.floor(1e9*Math.random());return ps++,e+"_"+n+ps+String(o)},gs=O("alloy-id-"),fs=O("data-alloy-id"),vs=gs(),ws=fs(),ks=(e,t)=>{const o=bs(vs+e);return Cs(t,o),o},Cs=(e,t)=>{Object.defineProperty(e.dom,ws,{value:t,writable:!0})},ys=e=>{const t=bt(e)?e.dom[ws]:null;return T.from(t)},Os=e=>bs(e),js=j,xs=e=>{const t=t=>"The component must be in a context to execute: "+t+(e?"\n"+ds(e().element)+" is not in context.":""),o=e=>()=>{throw new Error(t(e))},n=e=>()=>{console.warn(t(e))};return{debugInfo:O("fake"),triggerEvent:n("triggerEvent"),triggerFocus:n("triggerFocus"),triggerEscape:n("triggerEscape"),broadcast:n("broadcast"),broadcastOn:n("broadcastOn"),broadcastEvent:n("broadcastEvent"),build:o("build"),buildOrPatch:o("buildOrPatch"),addToWorld:o("addToWorld"),removeFromWorld:o("removeFromWorld"),addToGui:o("addToGui"),removeFromGui:o("removeFromGui"),getByUid:o("getByUid"),getByDom:o("getByDom"),isConnected:D}},_s=xs(),Vs=(e,t,o)=>{const n=o.toString(),a=n.indexOf(")")+1,r=n.indexOf("("),i=n.substring(r+1,a-1).split(/,\s*/);return e.toFunctionAnnotation=()=>({name:t,parameters:As(i.slice(0,1).concat(i.slice(3)))}),e},As=e=>q(e,e=>Re(e,"/*")?e.substring(0,e.length-"/*".length):e),Ns=(e,t)=>{const o=e.toString(),n=o.indexOf(")")+1,a=o.indexOf("("),r=o.substring(a+1,n-1).split(/,\s*/);return e.toFunctionAnnotation=()=>({name:t,parameters:As(r)}),e},Ds=(e,t)=>{const o=t.toString(),n=o.indexOf(")")+1,a=o.indexOf("("),r=o.substring(a+1,n-1).split(/,\s*/);return e.toFunctionAnnotation=()=>({name:"OVERRIDE",parameters:As(r.slice(1))}),e},Es=bs("alloy-premade"),Ts=e=>(Object.defineProperty(e.element.dom,Es,{value:e.uid,writable:!0}),Ci(Es,e)),Ss=e=>je(e.dom,Es),Bs=e=>Oe(e,Es),Is=e=>Ds((t,...o)=>e(t.getApis(),t,...o),e),zs={init:()=>Fs({readState:O("No State required")})},Fs=e=>e,Ms=(e,t)=>{const o=q(t,e=>ti(e.name(),[Fr("config"),ni("state",zs)])),n=Ar("component.behaviours",sr(o),e.behaviours).fold(t=>{throw new Error(Er(t)+"\nComplete spec:\n"+JSON.stringify(e,null,2))},j);return{list:t,data:pe(n,e=>{const t=e.map(e=>({config:e.config,state:e.state.init(e.config)}));return O(t)})}},Ls=e=>e.list,Ps=e=>e.data,Rs=(e,t)=>{const o={};return he(e,(e,n)=>{he(e,(e,a)=>{const r=Oe(o,a).getOr([]);o[a]=r.concat([t(n,e)])})}),o},qs=e=>({classes:h(e.classes)?[]:e.classes,attributes:h(e.attributes)?{}:e.attributes,styles:h(e.styles)?{}:e.styles}),$s=(e,t)=>({...e,attributes:{...e.attributes,...t.attributes},styles:{...e.styles,...t.styles},classes:e.classes.concat(t.classes)}),Us=(e,t,o,n)=>{const a={...t};$(o,t=>{a[t.name()]=t.exhibit(e,n)});const r=Rs(a,(e,t)=>({name:e,modification:t})),i=e=>G(e,(e,t)=>({...t.modification,...e}),{}),l=G(r.classes,(e,t)=>t.modification.concat(e),[]),s=i(r.attributes),c=i(r.styles);return qs({classes:l,attributes:s,styles:c})},Hs=(e,t,o,n)=>{try{const a=re(o,(o,a)=>{const r=o[t],i=a[t],l=n.indexOf(r),s=n.indexOf(i);if(-1===l)throw new Error("The ordering for "+e+" does not have an entry for "+r+".\nOrder specified: "+JSON.stringify(n,null,2));if(-1===s)throw new Error("The ordering for "+e+" does not have an entry for "+i+".\nOrder specified: "+JSON.stringify(n,null,2));return l<s?-1:s<l?1:0});return ua.value(a)}catch(a){return ua.error([a])}},Ws=(e,t)=>({handler:e,purpose:t}),Gs=(e,t)=>({cHandler:e,purpose:t}),Ks=(e,t)=>Gs(_.apply(void 0,[e.handler].concat(t)),e.purpose),Ys=e=>e.cHandler,Qs=(e,t)=>({name:e,handler:t}),Js=(e,t)=>{const o={};return $(e,e=>{o[e.name()]=e.handlers(t)}),o},Zs=(e,t,o)=>{const n={...o,...Js(t,e)};return Rs(n,Qs)},Xs=(e,t,o,n)=>{const a=Zs(e,o,n);return nc(a,t)},ec=e=>{const t=Bi(e);return(e,o,...n)=>{const a=[e,o].concat(n);t.abort.apply(void 0,a)?o.stop():t.can.apply(void 0,a)&&t.run.apply(void 0,a)}},tc=(e,t)=>ua.error(["The event ("+e+') has more than one behaviour that listens to it.\nWhen this occurs, you must specify an event ordering for the behaviours in your spec (e.g. [ "listing", "toggling" ]).\nThe behaviours that can trigger it are: '+JSON.stringify(q(t,e=>e.name),null,2)]),oc=(e,t,o)=>{const n=t[o];return n?Hs("Event: "+o,"name",e,n).map(e=>{const t=q(e,e=>e.handler);return Ii(t)}):tc(o,e)},nc=(e,t)=>{const o=ke(e,(e,o)=>{const n=1===e.length?ua.value(e[0].handler):oc(e,t,o);return n.map(n=>{const a=ec(n),r=e.length>1?W(t[o],t=>L(e,e=>e.name===t)).join(" > "):e[0].name;return Ci(o,Ws(a,r))})});return xi(o,{})},ac="alloy.base.behaviour",rc=sr([Br("dom","dom",Ta(),sr([Fr("tag"),ni("styles",{}),ni("classes",[]),ni("attributes",{}),Kr("value"),Kr("innerHtml")])),Fr("components"),Fr("uid"),ni("events",{}),ni("apis",{}),Br("eventOrder","eventOrder",Fa({[cl()]:["disabling",ac,"toggling","typeaheadevents"],[rl()]:[ac,"focusing","keying"],[bl()]:[ac,"disabling","toggling","representing"],[Qi()]:[ac,"representing","streaming","invalidating"],[Cl()]:[ac,"representing","item-events","tooltipping"],[Ri()]:["focusing",ac,"item-type-events"],[Fi()]:["focusing",ac,"item-type-events"],[Hi()]:["item-type-events","tooltipping"],[sl()]:["receiving","reflecting","tooltipping"]}),pr()),Kr("domModification")]),ic=e=>Ar("custom.definition",rc,e),lc=e=>({...e.dom,uid:e.uid,domChildren:q(e.components,e=>e.element)}),sc=e=>e.domModification.fold(()=>qs({}),qs),cc=e=>e.events,dc=(e,t)=>{const o=no(e,t);return void 0===o||""===o?[]:o.split(" ")},uc=(e,t,o)=>{const n=dc(e,t),a=n.concat([o]);return to(e,t,a.join(" ")),!0},mc=(e,t,o)=>{const n=W(dc(e,t),e=>e!==o);return n.length>0?to(e,t,n.join(" ")):io(e,t),!1},hc=e=>void 0!==e.dom.classList,pc=e=>dc(e,"class"),bc=(e,t)=>uc(e,"class",t),gc=(e,t)=>mc(e,"class",t),fc=(e,t)=>M(pc(e),t)?gc(e,t):bc(e,t),vc=(e,t)=>{hc(e)?e.dom.classList.add(t):bc(e,t)},wc=e=>{const t=hc(e)?e.dom.classList:pc(e);0===t.length&&io(e,"class")},kc=(e,t)=>{if(hc(e)){const o=e.dom.classList;o.remove(t)}else gc(e,t);wc(e)},Cc=(e,t)=>{const o=hc(e)?e.dom.classList.toggle(t):fc(e,t);return wc(e),o},yc=(e,t)=>hc(e)&&e.dom.classList.contains(t),Oc=(e,t)=>{$(t,t=>{vc(e,t)})},jc=(e,t)=>{$(t,t=>{kc(e,t)})},xc=(e,t)=>{$(t,t=>{Cc(e,t)})},_c=(e,t)=>ee(t,t=>yc(e,t)),Vc=e=>{const t=e.dom.classList,o=new Array(t.length);for(let n=0;n<t.length;n++){const e=t.item(n);null!==e&&(o[n]=e)}return o},Ac=e=>hc(e)?Vc(e):pc(e),Nc=e=>e.dom.value,Dc=(e,t)=>{if(void 0===t)throw new Error("Value.set was undefined");e.dom.value=t},Ec=(e,t,o)=>{const n=Ft(e,t);return n.map(e=>{const t=o.exists(t=>!jt(t,e));if(t){const t=o.map(ut).getOr("span"),n=Ze.fromTag(t);return Sn(e,n),n}return e})},Tc=(e,t,o)=>{o.fold(()=>zn(e,t),e=>{jt(e,t)||(Sn(e,t),Pn(e))})},Sc=(e,t,o)=>{const n=q(t,o),a=zt(e);return $(a.slice(n.length),Pn),n},Bc=(e,t,o,n)=>{const a=Ft(e,t),r=n(o,a),i=Ec(e,t,a);return Tc(e,r.element,i),r},Ic=(e,t,o)=>Sc(e,t,(t,n)=>Bc(e,n,t,o)),zc=(e,t)=>Sc(e,t,(t,o)=>{const n=Ft(e,o);return Tc(e,t,n),t}),Fc=(e,t)=>{const o=ue(e),n=ue(t),a=oe(n,o),r=ve(e,(e,o)=>!je(t,o)||e!==t[o]).t;return{toRemove:a,toSet:r}},Mc=(e,t)=>{const{class:o,style:n,...a}=lo(t),{toSet:r,toRemove:i}=Fc(e.attributes,a),l=()=>{$(i,e=>io(t,e)),oo(t,r)},s=fo(t),{toSet:c,toRemove:d}=Fc(e.styles,s),u=()=>{$(d,e=>wo(t,e)),mo(t,c)},m=Ac(t),h=oe(m,e.classes),p=oe(e.classes,m),b=()=>{Oc(t,p),jc(t,h)},g=e=>{as(t,e)},f=()=>{const o=e.domChildren;zc(t,o)},v=()=>{const o=t,n=e.value.getOrUndefined();n!==Nc(o)&&Dc(o,null!==n&&void 0!==n?n:"")};return l(),b(),u(),e.innerHtml.fold(f,g),v(),t},Lc=e=>{const t=Ze.fromTag(e.tag);oo(t,e.attributes),Oc(t,e.classes),mo(t,e.styles),e.innerHtml.each(e=>as(t,e));const o=e.domChildren;return Mn(t,o),e.value.each(e=>{Dc(t,e)}),t},Pc=(e,t)=>{try{const o=Mc(e,t);return T.some(o)}catch(o){return T.none()}},Rc=e=>e.innerHtml.isSome()&&e.domChildren.length>0,qc=(e,t)=>{const o=t=>ut(t)===e.tag&&!Rc(e)&&!Ss(t),n=t.filter(o).bind(t=>Pc(e,t)).getOrThunk(()=>Lc(e));return Cs(n,e.uid),n},$c=e=>{const t=Oe(e,"behaviours").getOr({});return X(ue(t),e=>{const o=t[e];return b(o)?[o.me]:[]})},Uc=(e,t)=>Ms(e,t),Hc=e=>{const t=$c(e);return Uc(e,t)},Wc=(e,t,o)=>{const n=lc(e),a=sc(e),r={"alloy.base.modification":a},i=t.length>0?Us(o,r,t,n):a;return $s(n,i)},Gc=(e,t,o)=>{const n={"alloy.base.behaviour":cc(e)};return Xs(o,e.eventOrder,t,n).getOrDie()},Kc=(e,t)=>{const o=()=>k,n=hi(_s),a=Nr(ic(e)),r=Hc(e),i=Ls(r),l=Ps(r),s=Wc(a,i,l),c=qc(s,t),d=Gc(a,i,l),u=hi(a.components),m=e=>{n.set(e)},h=()=>{n.set(xs(o))},p=()=>{const e=zt(c),t=X(e,e=>n.get().getByDom(e).fold(()=>[],ae));u.set(t)},b=t=>{const o=l,n=g(o[t.name()])?o[t.name()]:()=>{throw new Error("Could not find "+t.name()+" in "+JSON.stringify(e,null,2))};return n()},f=e=>g(l[e.name()]),v=()=>a.apis,w=e=>l[e]().map(e=>e.state.readState()).getOr("not enabled"),k={uid:e.uid,getSystem:n.get,config:b,hasConfigured:f,spec:e,readState:w,getApis:v,connect:m,disconnect:h,element:c,syncComponents:p,components:u.get,events:d};return k},Yc=(e,t)=>{const o=Oe(e,"components").getOr([]);return t.fold(()=>q(o,od),e=>q(o,(t,o)=>td(t,Ft(e,o))))},Qc=(e,t)=>{const{events:o,...n}=js(e),a=Yc(n,t),r={...n,events:{...hs,...o},components:a};return ua.value(Kc(r,t))},Jc=e=>{const t=Ze.fromText(e);return Zc({element:t})},Zc=e=>{const t=Dr("external.component",lr([Fr("element"),Kr("uid")]),e),o=hi(xs()),n=e=>{o.set(e)},a=()=>{o.set(xs(()=>i))},r=t.uid.getOrThunk(()=>Os("external"));Cs(t.element,r);const i={uid:r,getSystem:o.get,config:T.none,hasConfigured:D,connect:n,disconnect:a,getApis:()=>({}),element:t.element,spec:e,readState:O("No state"),syncComponents:w,components:O([]),events:{}};return Ts(i)},Xc=Os,ed=e=>je(e,"uid"),td=(e,t)=>Bs(e).getOrThunk(()=>{const o=ed(e)?e:{uid:Xc(""),...e};return Qc(o,t).getOrDie()}),od=e=>td(e,T.none()),nd=Ts;var ad=(e,t,o,n,a)=>e(o,n)?T.some(o):g(a)&&a(o)?T.none():t(o,n,a);const rd=(e,t,o)=>{let n=e.dom;const a=g(o)?o:D;while(n.parentNode){n=n.parentNode;const e=Ze.fromDom(n);if(t(e))return T.some(e);if(a(e))break}return T.none()},id=(e,t,o)=>{const n=(e,t)=>t(e);return ad(n,rd,e,t,o)},ld=(e,t)=>{const o=e=>t(Ze.fromDom(e)),n=Q(e.dom.childNodes,o);return n.map(Ze.fromDom)},sd=(e,t)=>{const o=e=>{for(let n=0;n<e.childNodes.length;n++){const a=Ze.fromDom(e.childNodes[n]);if(t(a))return T.some(a);const r=o(e.childNodes[n]);if(r.isSome())return r}return T.none()};return o(e.dom)},cd=(e,t,o)=>id(e,t,o).isSome(),dd=(e,t,o)=>rd(e,e=>kt(e,t),o),ud=(e,t)=>ld(e,e=>kt(e,t)),md=(e,t)=>Ot(t,e),hd=(e,t,o)=>{const n=(e,t)=>kt(e,t);return ad(n,dd,e,t,o)},pd="aria-controls",bd=e=>{const t=id(e,e=>{if(!bt(e))return!1;const t=no(e,"id");return void 0!==t&&t.indexOf(pd)>-1});return t.bind(e=>{const t=no(e,"id"),o=Ut(e);return md(o,`[${pd}="${t}"]`)})},gd=()=>{const e=bs(pd),t=t=>{to(t,pd,e)},o=e=>{io(e,pd)};return{id:e,link:t,unlink:o}},fd=(e,t)=>bd(t).exists(t=>vd(e,t)),vd=(e,t)=>cd(t,t=>jt(t,e.element),D)||fd(e,t),wd="unknown";var kd;(function(e){e[e["STOP"]=0]="STOP",e[e["NORMAL"]=1]="NORMAL",e[e["LOGGING"]=2]="LOGGING"})(kd||(kd={}));const Cd=hi({}),yd=(e,t)=>{const o=[],n=(new Date).getTime();return{logEventCut:(e,t,n)=>{o.push({outcome:"cut",target:t,purpose:n})},logEventStopped:(e,t,n)=>{o.push({outcome:"stopped",target:t,purpose:n})},logNoParent:(e,t,n)=>{o.push({outcome:"no-parent",target:t,purpose:n})},logEventNoHandlers:(e,t)=>{o.push({outcome:"no-handlers-left",target:t})},logEventResponse:(e,t,n)=>{o.push({outcome:"response",purpose:n,target:t})},write:()=>{const a=(new Date).getTime();M(["mousemove","mouseover","mouseout",bl()],e)||console.log(e,{event:e,time:a-n,target:t.dom,sequence:q(o,e=>M(["cut","stopped","response"],e.outcome)?"{"+e.purpose+"} "+e.outcome+" at ("+ds(e.target)+")":e.outcome)})}}},Od=(e,t,o)=>{const n=Oe(Cd.get(),e).orThunk(()=>{const t=ue(Cd.get());return de(t,t=>e.indexOf(t)>-1?T.some(Cd.get()[t]):T.none())}).getOr(kd.NORMAL);switch(n){case kd.NORMAL:return o(Ad());case kd.LOGGING:{const n=yd(e,t),a=o(n);return n.write(),a}case kd.STOP:return!0}},jd=["alloy/data/Fields","alloy/debugging/Debugging"],xd=()=>{const e=new Error;if(void 0!==e.stack){const t=e.stack.split("\n");return Q(t,e=>e.indexOf("alloy")>0&&!L(jd,t=>e.indexOf(t)>-1)).getOr(wd)}return wd},_d={logEventCut:w,logEventStopped:w,logNoParent:w,logEventNoHandlers:w,logEventResponse:w,write:w},Vd=(e,t,o)=>Od(e,t,o),Ad=O(_d),Nd=O([Fr("menu"),Fr("selectedMenu")]),Dd=O([Fr("item"),Fr("selectedItem")]);O(sr(Dd().concat(Nd())));const Ed=O(sr(Dd())),Td=Hr("initSize",[Fr("numColumns"),Fr("numRows")]),Sd=()=>Mr("markers",Ed()),Bd=()=>Hr("markers",[Fr("backgroundMenu")].concat(Nd()).concat(Dd())),Id=e=>Hr("markers",q(e,Fr)),zd=(e,t,o)=>(xd(),Br(t,t,o,xr(e=>ua.value((...t)=>e.apply(void 0,t))))),Fd=e=>zd("onHandler",e,Ba(w)),Md=e=>zd("onKeyboardHandler",e,Ba(T.none)),Ld=e=>zd("onHandler",e,Ta()),Pd=e=>zd("onKeyboardHandler",e,Ta()),Rd=(e,t)=>Ir(e,O(t)),qd=e=>Ir(e,j),$d=O(Td),Ud=(e,t,o,n,a,r,i,l=!1)=>({x:e,y:t,bubble:o,direction:n,placement:a,restriction:r,label:`${i}-${a}`,alwaysFit:l}),Hd=bi.generate([{southeast:[]},{southwest:[]},{northeast:[]},{northwest:[]},{south:[]},{north:[]},{east:[]},{west:[]}]),Wd=(e,t,o,n,a,r,i,l,s)=>e.fold(t,o,n,a,r,i,l,s),Gd=(e,t,o,n)=>e.fold(t,t,n,n,t,n,o,o),Kd=(e,t,o,n)=>e.fold(t,n,t,n,o,o,t,n),Yd=Hd.southeast,Qd=Hd.southwest,Jd=Hd.northeast,Zd=Hd.northwest,Xd=Hd.south,eu=Hd.north,tu=Hd.east,ou=Hd.west,nu=(e,t,o,n)=>{const a=e+t;return a>n?o:a<o?n:a},au=(e,t,o)=>Math.min(Math.max(e,t),o),ru=(e,t)=>{switch(t){case 1:return e.x;case 0:return e.x+e.width;case 2:return e.y;case 3:return e.y+e.height}},iu=(e,t)=>ne(["left","right","top","bottom"],o=>Oe(t,o).map(t=>ru(e,t))),lu=(e,t,o)=>{const n=(n,a)=>t[n].map(t=>{const r="top"===n||"bottom"===n,i=r?o.top:o.left,l="left"===n||"top"===n?Math.max:Math.min,s=l(t,a)+i;return r?au(s,e.y,e.bottom):au(s,e.x,e.right)}).getOr(a),a=n("left",e.x),r=n("top",e.y),i=n("right",e.right),l=n("bottom",e.bottom);return ta(a,r,i-a,l-r)},su="layout",cu=e=>e.x,du=(e,t)=>e.x+e.width/2-t.width/2,uu=(e,t)=>e.x+e.width-t.width,mu=(e,t)=>e.y-t.height,hu=e=>e.y+e.height,pu=(e,t)=>e.y+e.height/2-t.height/2,bu=e=>e.x+e.width,gu=(e,t)=>e.x-t.width,fu=(e,t,o)=>Ud(cu(e),hu(e),o.southeast(),Yd(),"southeast",iu(e,{left:1,top:3}),su),vu=(e,t,o)=>Ud(uu(e,t),hu(e),o.southwest(),Qd(),"southwest",iu(e,{right:0,top:3}),su),wu=(e,t,o)=>Ud(cu(e),mu(e,t),o.northeast(),Jd(),"northeast",iu(e,{left:1,bottom:2}),su),ku=(e,t,o)=>Ud(uu(e,t),mu(e,t),o.northwest(),Zd(),"northwest",iu(e,{right:0,bottom:2}),su),Cu=(e,t,o)=>Ud(du(e,t),mu(e,t),o.north(),eu(),"north",iu(e,{bottom:2}),su),yu=(e,t,o)=>Ud(du(e,t),hu(e),o.south(),Xd(),"south",iu(e,{top:3}),su),Ou=(e,t,o)=>Ud(bu(e),pu(e,t),o.east(),tu(),"east",iu(e,{left:0}),su),ju=(e,t,o)=>Ud(gu(e,t),pu(e,t),o.west(),ou(),"west",iu(e,{right:1}),su),xu=()=>[fu,vu,wu,ku,yu,Cu,Ou,ju],_u=()=>[vu,fu,ku,wu,yu,Cu,Ou,ju],Vu=()=>[wu,ku,fu,vu,Cu,yu],Au=()=>[ku,wu,vu,fu,Cu,yu],Nu=()=>[fu,vu,wu,ku,yu,Cu],Du=()=>[vu,fu,ku,wu,yu,Cu],Eu=(e,t)=>t.universal?e:W(e,e=>M(t.channels,e)),Tu=e=>Ml([ql(sl(),(t,o)=>{const n=e.channels,a=ue(n),r=o,i=Eu(a,r);$(i,e=>{const o=n[e],a=o.schema,i=Dr("channel["+e+"] data\nReceiver: "+ds(t.element),a,r.data);o.onReceive(t,i)})})]);var Su=Object.freeze({__proto__:null,events:Tu}),Bu=[Mr("channels",_r(ua.value,lr([Ld("onReceive"),ni("schema",pr())])))];const Iu=(e,t,o)=>ts(n=>{o(n,e,t)}),zu=(e,t,o)=>es((n,a)=>{o(n,e,t)}),Fu=(e,t,o,n,a,r)=>{const i=lr(e),l=ti(t,[oi("config",e)]);return Ru(i,l,t,o,n,a,r)},Mu=(e,t,o,n,a,r)=>{const i=e,l=ti(t,[Yr("config",e)]);return Ru(i,l,t,o,n,a,r)},Lu=(e,t,o)=>{const n=(n,...a)=>{const r=[n].concat(a);return n.config({name:O(e)}).fold(()=>{throw new Error("We could not find any behaviour configuration for: "+e+". Using API: "+o)},e=>{const o=Array.prototype.slice.call(r,1);return t.apply(void 0,[n,e.config,e.state].concat(o))})};return Vs(n,o,t)},Pu=e=>({key:e,value:void 0}),Ru=(e,t,o,n,a,r,i)=>{const l=e=>xe(e,o)?e[o]():T.none(),s=pe(a,(e,t)=>Lu(o,e,t)),c=pe(r,(e,t)=>Ns(e,t)),d={...c,...s,revoke:_(Pu,o),config:t=>{const n=Dr(o+"-config",e,t);return{key:o,value:{config:n,me:d,configAsRaw:Fo(()=>Dr(o+"-config",e,t)),initialConfig:t,state:i}}},schema:O(t),exhibit:(e,t)=>De(l(e),Oe(n,"exhibit"),(e,o)=>o(t,e.config,e.state)).getOrThunk(()=>qs({})),name:O(o),handlers:e=>l(e).map(e=>{const t=Oe(n,"events").getOr(()=>({}));return t(e.config,e.state)}).getOr({})};return d},qu=e=>yi(e),$u=lr([Fr("fields"),Fr("name"),ni("active",{}),ni("apis",{}),ni("state",zs),ni("extra",{})]),Uu=e=>{const t=Dr("Creating behaviour: "+e.name,$u,e);return Fu(t.fields,t.name,t.active,t.apis,t.extra,t.state)},Hu=lr([Fr("branchKey"),Fr("branches"),Fr("name"),ni("active",{}),ni("apis",{}),ni("state",zs),ni("extra",{})]),Wu=e=>{const t=Dr("Creating behaviour: "+e.name,Hu,e);return Mu(Tr(t.branchKey,t.branches),t.name,t.active,t.apis,t.extra,t.state)},Gu=O(void 0),Ku=Uu({fields:Bu,name:"receiving",active:Su}),Yu=(e,t)=>qs({classes:[],styles:t.useFixed()?{}:{position:"relative"}});var Qu=Object.freeze({__proto__:null,exhibit:Yu});const Ju=(e,t=!1)=>e.dom.focus({preventScroll:t}),Zu=e=>e.dom.blur(),Xu=e=>{const t=Ut(e).dom;return e.dom===t.activeElement},em=(e=Wn())=>T.from(e.dom.activeElement).map(Ze.fromDom),tm=e=>em(Ut(e)).filter(t=>e.dom.contains(t.dom)),om=(e,t)=>{const o=Ut(t),n=em(o).bind(e=>{const o=t=>jt(e,t);return o(t)?T.some(t):sd(t,o)}),a=e(t);return n.each(e=>{em(o).filter(t=>jt(t,e)).fold(()=>{Ju(e)},w)}),a},nm=(e,t,o,n,a)=>{const r=e=>e+"px";return{position:e,left:t.map(r),top:o.map(r),right:n.map(r),bottom:a.map(r)}},am=e=>({...e,position:T.some(e.position)}),rm=(e,t)=>{ho(e,am(t))},im=bi.generate([{none:[]},{relative:["x","y","width","height"]},{fixed:["x","y","width","height"]}]),lm=(e,t,o,n,a,r)=>{const i=t.rect,l=i.x-o,s=i.y-n,c=i.width,d=i.height,u=a-(l+c),m=r-(s+d),h=T.some(l),p=T.some(s),b=T.some(u),g=T.some(m),f=T.none();return Wd(t.direction,()=>nm(e,h,p,f,f),()=>nm(e,f,p,b,f),()=>nm(e,h,f,f,g),()=>nm(e,f,f,b,g),()=>nm(e,h,p,f,f),()=>nm(e,h,f,f,g),()=>nm(e,h,p,f,f),()=>nm(e,f,p,b,f))},sm=(e,t)=>e.fold(()=>{const e=t.rect;return nm("absolute",T.some(e.x),T.some(e.y),T.none(),T.none())},(e,o,n,a)=>lm("absolute",t,e,o,n,a),(e,o,n,a)=>lm("fixed",t,e,o,n,a)),cm=(e,t)=>{const o=_(Zn,t),n=e.fold(o,o,()=>{const e=Rn();return Zn(t).translate(-e.left,-e.top)}),a=Io(t),r=jo(t);return ta(n.left,n.top,a,r)},dm=(e,t)=>t.fold(()=>e.fold(ia,ia,ta),t=>e.fold(O(t),O(t),()=>{const o=um(e,t.x,t.y);return ta(o.left,o.top,t.width,t.height)})),um=(e,t,o)=>{const n=Vo(t,o),a=()=>{const e=Rn();return n.translate(-e.left,-e.top)};return e.fold(O(n),O(n),a)},mm=(e,t,o,n)=>e.fold(t,o,n);im.none;const hm=im.relative,pm=im.fixed,bm=(e,t)=>({anchorBox:e,origin:t}),gm=(e,t)=>bm(e,t),fm="data-alloy-placement",vm=(e,t)=>{to(e,fm,t)},wm=e=>ao(e,fm),km=e=>io(e,fm),Cm=bi.generate([{fit:["reposition"]},{nofit:["reposition","visibleW","visibleH","isVisible"]}]),ym=(e,t)=>{const{x:o,y:n,right:a,bottom:r}=t,{x:i,y:l,right:s,bottom:c,width:d,height:u}=e,m=i>=o&&i<=a,h=l>=n&&l<=r,p=m&&h,b=s<=a&&s>=o,g=c<=r&&c>=n,f=b&&g,v=Math.min(d,i>=o?a-i:s-o),w=Math.min(u,l>=n?r-l:c-n);return{originInBounds:p,sizeInBounds:f,visibleW:v,visibleH:w}},Om=(e,t)=>{const{x:o,y:n,right:a,bottom:r}=t,{x:i,y:l,width:s,height:c}=e,d=Math.max(o,a-s),u=Math.max(n,r-c),m=au(i,o,d),h=au(l,n,u),p=Math.min(m+s,a)-m,b=Math.min(h+c,r)-h;return ta(m,h,p,b)},jm=(e,t,o)=>{const n=O(t.bottom-o.y),a=O(o.bottom-t.y),r=Gd(e,a,a,n),i=O(t.right-o.x),l=O(o.right-t.x),s=Kd(e,l,l,i);return{maxWidth:s,maxHeight:r}},xm=(e,t,o,n)=>{const a=e.bubble,r=a.offset,i=lu(n,e.restriction,r),l=e.x+r.left,s=e.y+r.top,c=ta(l,s,t,o),{originInBounds:d,sizeInBounds:u,visibleW:m,visibleH:h}=ym(c,i),p=d&&u,b=p?c:Om(c,i),g=b.width>0&&b.height>0,{maxWidth:f,maxHeight:v}=jm(e.direction,b,n),w={rect:b,maxHeight:v,maxWidth:f,direction:e.direction,placement:e.placement,classes:{on:a.classesOn,off:a.classesOff},layout:e.label,testY:s};return p||e.alwaysFit?Cm.fit(w):Cm.nofit(w,m,h,g)},_m=(e,t,o,n,a,r)=>{const i=n.width,l=n.height,s=(t,s,c,d,u)=>{const m=t(o,n,a,e,r),h=xm(m,i,l,r);return h.fold(O(h),(e,t,o,n)=>{const a=u===n?o>d||t>c:!u&&n;return a?h:Cm.nofit(s,c,d,u)})},c=K(t,(e,t)=>{const o=_(s,t);return e.fold(O(e),o)},Cm.nofit({rect:o,maxHeight:n.height,maxWidth:n.width,direction:Yd(),placement:"southeast",classes:{on:[],off:[]},layout:"none",testY:o.y},-1,-1,!1));return c.fold(j,j)},Vm=e=>{const t=hi(T.none()),o=()=>t.get().each(e),n=()=>{o(),t.set(T.none())},a=()=>t.get().isSome(),r=()=>t.get(),i=e=>{o(),t.set(T.some(e))};return{clear:n,isSet:a,get:r,set:i}},Am=()=>Vm(e=>e.destroy()),Nm=()=>Vm(e=>e.unbind()),Dm=()=>{const e=Vm(w),t=t=>e.get().each(t);return{...e,on:t}},Em=E,Tm=(e,t,o)=>Dn(e,t,Em,o),Sm=(e,t,o)=>En(e,t,Em,o),Bm=Vn,Im=["top","bottom","right","left"],zm="data-alloy-transition-timer",Fm=(e,t)=>_c(e,t.classes),Mm=(e,t,o)=>o.exists(o=>{const n=e.mode;return"all"===n||o[n]!==t[n]}),Lm=(e,t)=>{const o=e=>parseFloat(e).toFixed(3);return Ce(t,(t,n)=>{const a=e[n].map(o),r=t.map(o);return!Ve(a,r)}).isSome()},Pm=e=>{const t=t=>{const o=po(e,t),n=o.split(/\s*,\s*/);return W(n,Ue)},o=e=>{if(l(e)&&/^[\d.]+/.test(e)){const t=parseFloat(e);return Re(e,"ms")?t:1e3*t}return 0},n=t("transition-delay"),a=t("transition-duration");return K(a,(e,t,a)=>{const r=o(n[a])+o(t);return Math.max(e,r)},0)},Rm=(e,t)=>{const o=Nm(),n=Nm();let a;const r=t=>{var o;const n=null!==(o=t.raw.pseudoElement)&&void 0!==o?o:"";return jt(t.target,e)&&He(n)&&M(Im,t.raw.propertyName)},i=i=>{if(p(i)||r(i)){o.clear(),n.clear();const r=null===i||void 0===i?void 0:i.raw.type;(p(r)||r===el())&&(clearTimeout(a),io(e,zm),jc(e,t.classes))}},l=Tm(e,tl(),t=>{r(t)&&(l.unbind(),o.set(Tm(e,el(),i)),n.set(Tm(e,Xi(),i)))}),s=Pm(e);requestAnimationFrame(()=>{a=setTimeout(i,s+17),to(e,zm,a)})},qm=(e,t)=>{Oc(e,t.classes),ao(e,zm).each(t=>{clearTimeout(parseInt(t,10)),io(e,zm)}),Rm(e,t)},$m=(e,t,o,n,a,r)=>{const i=Mm(n,a,r);if(i||Fm(e,n)){uo(e,"position",o.position);const r=cm(t,e),l=sm(t,{...a,rect:r}),s=ne(Im,e=>l[e]);Lm(o,s)&&(ho(e,s),i&&qm(e,n),ko(e))}else jc(e,n.classes)},Um=e=>({width:Io(e),height:jo(e)}),Hm=(e,t,o,n)=>{wo(t,"max-height"),wo(t,"max-width");const a=Um(t);return _m(t,n.preference,e,a,o,n.bounds)},Wm=(e,t)=>{const o=t.classes;jc(e,o.off),Oc(e,o.on)},Gm=(e,t,o)=>{const n=o.maxHeightFunction;n(e,t.maxHeight)},Km=(e,t,o)=>{const n=o.maxWidthFunction;n(e,t.maxWidth)},Ym=(e,t,o)=>{const n=sm(o.origin,t);o.transition.each(a=>{$m(e,o.origin,n,a,t,o.lastPlacement)}),rm(e,n)},Qm=(e,t)=>{vm(e,t.placement)},Jm=(e,t)=>{xo(e,Math.floor(t))},Zm=O((e,t)=>{Jm(e,t),mo(e,{"overflow-x":"hidden","overflow-y":"auto"})}),Xm=O((e,t)=>{Jm(e,t)}),eh=(e,t,o)=>void 0===e[t]?o:e[t],th=(e,t,o,n,a,r,i,l)=>{const s=eh(i,"maxHeightFunction",Zm()),c=eh(i,"maxWidthFunction",w),d=e.anchorBox,u=e.origin,m={bounds:dm(u,r),origin:u,preference:n,maxHeightFunction:s,maxWidthFunction:c,lastPlacement:a,transition:l};return oh(d,t,o,m)},oh=(e,t,o,n)=>{const a=Hm(e,t,o,n);return Ym(t,a,n),Qm(t,a),Wm(t,a),Gm(t,a,n),Km(t,a,n),{layout:a.layout,placement:a.placement}},nh=["valignCentre","alignLeft","alignRight","alignCentre","top","bottom","left","right","inset"],ah=(e,t,o,n=1)=>{const a=e*n,r=t*n,i=e=>Oe(o,e).getOr([]),l=(e,t,o)=>{const n=oe(nh,o);return{offset:Vo(e,t),classesOn:X(o,i),classesOff:X(n,i)}};return{southeast:()=>l(-e,t,["top","alignLeft"]),southwest:()=>l(e,t,["top","alignRight"]),south:()=>l(-e/2,t,["top","alignCentre"]),northeast:()=>l(-e,-t,["bottom","alignLeft"]),northwest:()=>l(e,-t,["bottom","alignRight"]),north:()=>l(-e/2,-t,["bottom","alignCentre"]),east:()=>l(e,-t/2,["valignCentre","left"]),west:()=>l(-e,-t/2,["valignCentre","right"]),insetNortheast:()=>l(a,r,["top","alignLeft","inset"]),insetNorthwest:()=>l(-a,r,["top","alignRight","inset"]),insetNorth:()=>l(-a/2,r,["top","alignCentre","inset"]),insetSoutheast:()=>l(a,-r,["bottom","alignLeft","inset"]),insetSouthwest:()=>l(-a,-r,["bottom","alignRight","inset"]),insetSouth:()=>l(-a/2,-r,["bottom","alignCentre","inset"]),insetEast:()=>l(-a,-r/2,["valignCentre","right","inset"]),insetWest:()=>l(a,-r/2,["valignCentre","left","inset"])}},rh=()=>ah(0,0,{}),ih=j,lh=(e,t)=>o=>"rtl"===sh(o)?t:e,sh=e=>"rtl"===po(e,"direction")?"rtl":"ltr";var ch;(function(e){e["TopToBottom"]="toptobottom",e["BottomToTop"]="bottomtotop"})(ch||(ch={}));const dh="data-alloy-vertical-dir",uh=e=>cd(e,e=>bt(e)&&no(e,"data-alloy-vertical-dir")===ch.BottomToTop),mh=()=>ti("layouts",[Fr("onLtr"),Fr("onRtl"),Kr("onBottomLtr"),Kr("onBottomRtl")]),hh=(e,t,o,n,a,r,i)=>{const l=i.map(uh).getOr(!1),s=t.layouts.map(t=>t.onLtr(e)),c=t.layouts.map(t=>t.onRtl(e)),d=l?t.layouts.bind(t=>t.onBottomLtr.map(t=>t(e))).or(s).getOr(a):s.getOr(o),u=l?t.layouts.bind(t=>t.onBottomRtl.map(t=>t(e))).or(c).getOr(r):c.getOr(n),m=lh(d,u);return m(e)},ph=(e,t,o)=>{const n=t.hotspot,a=cm(o,n.element),r=hh(e.element,t,Nu(),Du(),Vu(),Au(),T.some(t.hotspot.element));return T.some(ih({anchorBox:a,bubble:t.bubble.getOr(rh()),overrides:t.overrides,layouts:r}))};var bh=[Fr("hotspot"),Kr("bubble"),ni("overrides",{}),mh(),Rd("placement",ph)];const gh=(e,t,o)=>{const n=um(o,t.x,t.y),a=ta(n.left,n.top,t.width,t.height),r=hh(e.element,t,xu(),_u(),xu(),_u(),T.none());return T.some(ih({anchorBox:a,bubble:t.bubble,overrides:t.overrides,layouts:r}))};var fh=[Fr("x"),Fr("y"),ni("height",0),ni("width",0),ni("bubble",rh()),ni("overrides",{}),mh(),Rd("placement",gh)];const vh=bi.generate([{screen:["point"]},{absolute:["point","scrollLeft","scrollTop"]}]),wh=e=>e.fold(j,(e,t,o)=>e.translate(-t,-o)),kh=e=>e.fold(j,j),Ch=e=>K(e,(e,t)=>e.translate(t.left,t.top),Vo(0,0)),yh=e=>{const t=q(e,wh);return Ch(t)},Oh=e=>{const t=q(e,kh);return Ch(t)},jh=vh.screen,xh=vh.absolute,_h=(e,t,o)=>{const n=Nt(o.root).dom,a=t=>{const o=_t(t),n=_t(e.element);return jt(o,n)};return T.from(n.frameElement).map(Ze.fromDom).filter(a).map(Do)},Vh=(e,t,o)=>{const n=_t(e.element),a=Rn(n),r=_h(e,t,o).getOr(a);return xh(r,a.left,a.top)},Ah=(e,t,o,n)=>{const a=jh(Vo(e,t));return T.some(Xn(a,o,n))},Nh=(e,t,o,n,a)=>e.map(e=>{const r=[t,e.point],i=mm(n,()=>Oh(r),()=>Oh(r),()=>yh(r)),l=ea(i.left,i.top,e.width,e.height),s=o.showAbove?Vu():Nu(),c=o.showAbove?Au():Du(),d=hh(a,o,s,c,s,c,T.none());return ih({anchorBox:l,bubble:o.bubble.getOr(rh()),overrides:o.overrides,layouts:d})}),Dh=(e,t,o)=>{const n=Vh(e,o,t);return t.node.filter(Jt).bind(a=>{const r=a.dom.getBoundingClientRect(),i=Ah(r.left,r.top,r.width,r.height),l=t.node.getOr(e.element);return Nh(i,n,t,o,l)})};var Eh=[Fr("node"),Fr("root"),Kr("bubble"),mh(),ni("overrides",{}),ni("showAbove",!1),Rd("placement",Dh)];const Th="\ufeff",Sh=" ",Bh=(e,t,o,n)=>({start:e,soffset:t,finish:o,foffset:n}),Ih={create:Bh},zh=bi.generate([{before:["element"]},{on:["element","offset"]},{after:["element"]}]),Fh=(e,t,o,n)=>e.fold(t,o,n),Mh=e=>e.fold(j,j,j),Lh=zh.before,Ph=zh.on,Rh=zh.after,qh={before:Lh,on:Ph,after:Rh,cata:Fh,getStart:Mh},$h=bi.generate([{domRange:["rng"]},{relative:["startSitu","finishSitu"]},{exact:["start","soffset","finish","foffset"]}]),Uh=e=>$h.exact(e.start,e.soffset,e.finish,e.foffset),Hh=e=>e.match({domRange:e=>Ze.fromDom(e.startContainer),relative:(e,t)=>qh.getStart(e),exact:(e,t,o,n)=>e}),Wh=$h.domRange,Gh=$h.relative,Kh=$h.exact,Yh=e=>{const t=Hh(e);return Nt(t)},Qh=Ih.create,Jh={domRange:Wh,relative:Gh,exact:Kh,exactFromRange:Uh,getWin:Yh,range:Qh},Zh=(e,t)=>{t.fold(t=>{e.setStartBefore(t.dom)},(t,o)=>{e.setStart(t.dom,o)},t=>{e.setStartAfter(t.dom)})},Xh=(e,t)=>{t.fold(t=>{e.setEndBefore(t.dom)},(t,o)=>{e.setEnd(t.dom,o)},t=>{e.setEndAfter(t.dom)})},ep=(e,t,o)=>{const n=e.document.createRange();return Zh(n,t),Xh(n,o),n},tp=(e,t,o,n,a)=>{const r=e.document.createRange();return r.setStart(t.dom,o),r.setEnd(n.dom,a),r},op=e=>({left:e.left,top:e.top,right:e.right,bottom:e.bottom,width:e.width,height:e.height}),np=e=>{const t=e.getClientRects(),o=t.length>0?t[0]:e.getBoundingClientRect();return o.width>0||o.height>0?T.some(o).map(op):T.none()},ap=e=>{const t=e.getBoundingClientRect();return t.width>0||t.height>0?T.some(t).map(op):T.none()},rp=bi.generate([{ltr:["start","soffset","finish","foffset"]},{rtl:["start","soffset","finish","foffset"]}]),ip=(e,t,o)=>t(Ze.fromDom(o.startContainer),o.startOffset,Ze.fromDom(o.endContainer),o.endOffset),lp=(e,t)=>t.match({domRange:e=>({ltr:O(e),rtl:T.none}),relative:(t,o)=>({ltr:Fo(()=>ep(e,t,o)),rtl:Fo(()=>T.some(ep(e,o,t)))}),exact:(t,o,n,a)=>({ltr:Fo(()=>tp(e,t,o,n,a)),rtl:Fo(()=>T.some(tp(e,n,a,t,o)))})}),sp=(e,t)=>{const o=t.ltr();if(o.collapsed){const n=t.rtl().filter(e=>!1===e.collapsed);return n.map(e=>rp.rtl(Ze.fromDom(e.endContainer),e.endOffset,Ze.fromDom(e.startContainer),e.startOffset)).getOrThunk(()=>ip(e,rp.ltr,o))}return ip(e,rp.ltr,o)},cp=(e,t)=>{const o=lp(e,t);return sp(e,o)},dp=(e,t)=>{const o=cp(e,t);return o.match({ltr:(t,o,n,a)=>{const r=e.document.createRange();return r.setStart(t.dom,o),r.setEnd(n.dom,a),r},rtl:(t,o,n,a)=>{const r=e.document.createRange();return r.setStart(n.dom,a),r.setEnd(t.dom,o),r}})};rp.ltr,rp.rtl;const up=(e,t,o)=>W(St(e,o),t),mp=(e,t)=>yt(t,e),hp=(e,t,o,n)=>{const a=_t(e),r=a.dom.createRange();return r.setStart(e.dom,t),r.setEnd(o.dom,n),r},pp=(e,t,o,n)=>{const a=hp(e,t,o,n),r=jt(e,o)&&t===n;return a.collapsed&&!r},bp=e=>T.from(e.getSelection()),gp=e=>{if(e.rangeCount>0){const t=e.getRangeAt(0),o=e.getRangeAt(e.rangeCount-1);return T.some(Ih.create(Ze.fromDom(t.startContainer),t.startOffset,Ze.fromDom(o.endContainer),o.endOffset))}return T.none()},fp=e=>{if(null===e.anchorNode||null===e.focusNode)return gp(e);{const t=Ze.fromDom(e.anchorNode),o=Ze.fromDom(e.focusNode);return pp(t,e.anchorOffset,o,e.focusOffset)?T.some(Ih.create(t,e.anchorOffset,o,e.focusOffset)):gp(e)}},vp=e=>bp(e).filter(e=>e.rangeCount>0).bind(fp),wp=(e,t)=>{const o=dp(e,t);return np(o)},kp=(e,t)=>{const o=dp(e,t);return ap(o)},Cp=(e,t)=>{const o=o=>{if(!e(o))throw new Error("Can only get "+t+" value of a "+t+" node");return n(o).getOr("")},n=t=>e(t)?T.from(t.dom.nodeValue):T.none(),a=(o,n)=>{if(!e(o))throw new Error("Can only set raw "+t+" value of a "+t+" node");o.dom.nodeValue=n};return{get:o,getOption:n,set:a}},yp=Cp(gt,"text"),Op=e=>yp.get(e),jp=(e,t)=>({element:e,offset:t}),xp=(e,t)=>{const o=zt(e);if(0===o.length)return jp(e,t);if(t<o.length)return jp(o[t],0);{const e=o[o.length-1],t=gt(e)?Op(e).length:zt(e).length;return jp(e,t)}},_p=(e,t)=>gt(e)?jp(e,t):xp(e,t),Vp=e=>void 0!==e.foffset,Ap=(e,t)=>{const o=t.getSelection.getOrThunk(()=>()=>vp(e));return o().map(e=>{if(Vp(e)){const t=_p(e.start,e.soffset),o=_p(e.finish,e.foffset);return Jh.range(t.element,t.offset,o.element,o.offset)}return e})},Np=(e,t,o)=>{const n=Nt(t.root).dom,a=Vh(e,o,t),r=Ap(n,t).bind(e=>{if(Vp(e)){const t=kp(n,Jh.exactFromRange(e)).orThunk(()=>{const t=Ze.fromText(Th);Sn(e.start,t);const o=wp(n,Jh.exact(t,0,t,1));return Pn(t),o});return t.bind(e=>Ah(e.left,e.top,e.width,e.height))}{const t=pe(e,e=>e.dom.getBoundingClientRect()),o={left:Math.min(t.firstCell.left,t.lastCell.left),right:Math.max(t.firstCell.right,t.lastCell.right),top:Math.min(t.firstCell.top,t.lastCell.top),bottom:Math.max(t.firstCell.bottom,t.lastCell.bottom)};return Ah(o.left,o.top,o.right-o.left,o.bottom-o.top)}}),i=Ap(n,t).bind(e=>Vp(e)?bt(e.start)?T.some(e.start):Tt(e.start):T.some(e.firstCell)),l=i.getOr(e.element);return Nh(r,a,t,o,l)};var Dp=[Kr("getSelection"),Fr("root"),Kr("bubble"),mh(),ni("overrides",{}),ni("showAbove",!1),Rd("placement",Np)];const Ep="link-layout",Tp=e=>e.x+e.width,Sp=(e,t)=>e.x-t.width,Bp=(e,t)=>e.y-t.height+e.height,Ip=e=>e.y,zp=(e,t,o)=>Ud(Tp(e),Ip(e),o.southeast(),Yd(),"southeast",iu(e,{left:0,top:2}),Ep),Fp=(e,t,o)=>Ud(Sp(e,t),Ip(e),o.southwest(),Qd(),"southwest",iu(e,{right:1,top:2}),Ep),Mp=(e,t,o)=>Ud(Tp(e),Bp(e,t),o.northeast(),Jd(),"northeast",iu(e,{left:0,bottom:3}),Ep),Lp=(e,t,o)=>Ud(Sp(e,t),Bp(e,t),o.northwest(),Zd(),"northwest",iu(e,{right:1,bottom:3}),Ep),Pp=()=>[zp,Fp,Mp,Lp],Rp=()=>[Fp,zp,Lp,Mp],qp=(e,t,o)=>{const n=cm(o,t.item.element),a=hh(e.element,t,Pp(),Rp(),Pp(),Rp(),T.none());return T.some(ih({anchorBox:n,bubble:rh(),overrides:t.overrides,layouts:a}))};var $p=[Fr("item"),mh(),ni("overrides",{}),Rd("placement",qp)],Up=Tr("type",{selection:Dp,node:Eh,hotspot:bh,submenu:$p,makeshift:fh});const Hp=[Gr("classes",fr),li("mode","all",["all","layout","placement"])],Wp=[ni("useFixed",D),Kr("getBounds")],Gp=[Mr("anchor",Up),ti("transition",Hp)],Kp=()=>{const e=document.documentElement;return pm(0,0,e.clientWidth,e.clientHeight)},Yp=e=>{const t=Do(e.element),o=e.element.dom.getBoundingClientRect();return hm(t.left,t.top,o.width,o.height)},Qp=(e,t,o,n,a,r)=>{const i=gm(t.anchorBox,e);return th(i,n.element,t.bubble,t.layouts,a,o,t.overrides,r)},Jp=(e,t,o,n,a)=>{const r=T.none();Zp(e,t,o,n,a,r)},Zp=(e,t,o,n,a,r)=>{const i=Dr("placement.info",sr(Gp),a),l=i.anchor,s=n.element,c=o.get(n.uid);om(()=>{uo(s,"position","fixed");const a=go(s,"visibility");uo(s,"visibility","hidden");const d=t.useFixed()?Kp():Yp(e);l.placement(e,l,d).each(e=>{const a=r.orThunk(()=>t.getBounds.map(N)),l=Qp(d,e,a,n,c,i.transition);o.set(n.uid,l)}),a.fold(()=>{wo(s,"visibility")},e=>{uo(s,"visibility",e)}),go(s,"left").isNone()&&go(s,"top").isNone()&&go(s,"right").isNone()&&go(s,"bottom").isNone()&&_e(go(s,"position"),"fixed")&&wo(s,"position")},s)},Xp=(e,t,o)=>t.useFixed()?"fixed":"absolute",eb=(e,t,o,n)=>{const a=n.element;$(["position","left","right","top","bottom"],e=>wo(a,e)),km(a),o.clear(n.uid)};var tb=Object.freeze({__proto__:null,position:Jp,positionWithinBounds:Zp,getMode:Xp,reset:eb});const ob=()=>{let e={};const t=(t,o)=>{e[t]=o},o=t=>Oe(e,t),n=t=>{b(t)?delete e[t]:e={}};return Fs({readState:()=>e,clear:n,set:t,get:o})};var nb=Object.freeze({__proto__:null,init:ob});const ab=Uu({fields:Wp,name:"positioning",active:Qu,apis:tb,state:nb}),rb=e=>e.getSystem().isConnected(),ib=e=>{El(e,Cl());const t=e.components();$(t,ib)},lb=e=>{const t=e.components();$(t,lb),El(e,kl())},sb=(e,t)=>{e.getSystem().addToWorld(t),Jt(e.element)&&lb(t)},cb=e=>{ib(e),e.getSystem().removeFromWorld(e)},db=(e,t)=>{zn(e.element,t.element)},ub=e=>{$(e.components(),e=>Pn(e.element)),Ln(e.element),e.syncComponents()},mb=(e,t,o)=>{const n=e.components();ub(e);const a=o(t),r=oe(n,a);$(r,t=>{ib(t),e.getSystem().removeFromWorld(t)}),$(a,t=>{rb(t)?db(e,t):(e.getSystem().addToWorld(t),db(e,t),Jt(e.element)&&lb(t))}),e.syncComponents()},hb=(e,t,o)=>{const n=e.components(),a=X(t,e=>Bs(e).toArray());$(n,e=>{M(a,e)||cb(e)});const r=o(t),i=oe(n,r);$(i,e=>{rb(e)&&cb(e)}),$(r,t=>{rb(t)||sb(e,t)}),e.syncComponents()},pb=(e,t)=>{bb(e,t,zn)},bb=(e,t,o)=>{e.getSystem().addToWorld(t),o(e.element,t.element),Jt(e.element)&&lb(t),e.syncComponents()},gb=e=>{ib(e),Pn(e.element),e.getSystem().removeFromWorld(e)},fb=e=>{const t=Dt(e.element).bind(t=>e.getSystem().getByDom(t).toOptional());gb(e),t.each(e=>{e.syncComponents()})},vb=e=>{const t=e.components();$(t,gb),Ln(e.element),e.syncComponents()},wb=(e,t)=>{Cb(e,t,zn)},kb=(e,t)=>{Cb(e,t,Bn)},Cb=(e,t,o)=>{o(e,t.element);const n=zt(t.element);$(n,e=>{t.getByDom(e).each(lb)})},yb=e=>{const t=zt(e.element);$(t,t=>{e.getByDom(t).each(ib)}),Pn(e.element)},Ob=(e,t,o,n)=>{o.get().each(t=>{vb(e)});const a=t.getAttachPoint(e);pb(a,e);const r=e.getSystem().build(n);return pb(e,r),o.set(r),r},jb=(e,t,o,n)=>{const a=Ob(e,t,o,n);return t.onOpen(e,a),a},xb=(e,t,o,n)=>o.get().map(()=>Ob(e,t,o,n)),_b=(e,t,o,n,a)=>{Sb(e,t),jb(e,t,o,n),a(),Ib(e,t)},Vb=(e,t,o)=>{o.get().each(n=>{vb(e),fb(e),t.onClose(e,n),o.clear()})},Ab=(e,t,o)=>o.isOpen(),Nb=(e,t,o,n)=>Ab(e,t,o)&&o.get().exists(o=>t.isPartOf(e,o,n)),Db=(e,t,o)=>o.get(),Eb=(e,t,o,n)=>{go(e.element,t).fold(()=>{io(e.element,o)},t=>{to(e.element,o,t)}),uo(e.element,t,n)},Tb=(e,t,o)=>{ao(e.element,o).fold(()=>wo(e.element,t),o=>uo(e.element,t,o))},Sb=(e,t,o)=>{const n=t.getAttachPoint(e);uo(e.element,"position",ab.getMode(n)),Eb(e,"visibility",t.cloakVisibilityAttr,"hidden")},Bb=e=>L(["top","left","right","bottom"],t=>go(e,t).isSome()),Ib=(e,t,o)=>{Bb(e.element)||wo(e.element,"position"),Tb(e,"visibility",t.cloakVisibilityAttr)};var zb=Object.freeze({__proto__:null,cloak:Sb,decloak:Ib,open:jb,openWhileCloaked:_b,close:Vb,isOpen:Ab,isPartOf:Nb,getState:Db,setContent:xb});const Fb=(e,t)=>Ml([ql(hl(),(o,n)=>{Vb(o,e,t)})]);var Mb=Object.freeze({__proto__:null,events:Fb}),Lb=[Fd("onOpen"),Fd("onClose"),Fr("isPartOf"),Fr("getAttachPoint"),ni("cloakVisibilityAttr","data-precloak-visibility")];const Pb=()=>{const e=Dm(),t=O("not-implemented");return Fs({readState:t,isOpen:e.isSet,clear:e.clear,set:e.set,get:e.get})};var Rb=Object.freeze({__proto__:null,init:Pb});const qb=Uu({fields:Lb,name:"sandboxing",active:Mb,apis:zb,state:Rb}),$b=O("dismiss.popups"),Ub=O("reposition.popups"),Hb=O("mouse.released"),Wb=lr([ni("isExtraPart",D),ti("fireEventInstead",[ni("event",yl())])]),Gb=e=>{const t=Dr("Dismissal",Wb,e);return{[$b()]:{schema:lr([Fr("target")]),onReceive:(e,o)=>{if(qb.isOpen(e)){const n=qb.isPartOf(e,o.target)||t.isExtraPart(e,o.target);n||t.fireEventInstead.fold(()=>qb.close(e),t=>El(e,t.event))}}}}},Kb=lr([ti("fireEventInstead",[ni("event",Ol())]),$r("doReposition")]),Yb=e=>{const t=Dr("Reposition",Kb,e);return{[Ub()]:{onReceive:e=>{qb.isOpen(e)&&t.fireEventInstead.fold(()=>t.doReposition(e),t=>El(e,t.event))}}}},Qb=(e,t,o)=>{t.store.manager.onLoad(e,t,o)},Jb=(e,t,o)=>{t.store.manager.onUnload(e,t,o)},Zb=(e,t,o,n)=>{t.store.manager.setValue(e,t,o,n)},Xb=(e,t,o)=>t.store.manager.getValue(e,t,o),eg=(e,t,o)=>o;var tg=Object.freeze({__proto__:null,onLoad:Qb,onUnload:Jb,setValue:Zb,getValue:Xb,getState:eg});const og=(e,t)=>{const o=e.resetOnDom?[Zl((o,n)=>{Qb(o,e,t)}),Xl((o,n)=>{Jb(o,e,t)})]:[zu(e,t,Qb)];return Ml(o)};var ng=Object.freeze({__proto__:null,events:og});const ag=()=>{const e=hi(null),t=()=>({mode:"memory",value:e.get()}),o=()=>null===e.get(),n=()=>{e.set(null)};return Fs({set:e.set,get:e.get,isNotSet:o,clear:n,readState:t})},rg=()=>{const e=w;return Fs({readState:e})},ig=()=>{const e=hi({}),t=hi({}),o=()=>({mode:"dataset",dataByValue:e.get(),dataByText:t.get()}),n=()=>{e.set({}),t.set({})},a=o=>Oe(e.get(),o).orThunk(()=>Oe(t.get(),o)),r=o=>{const n=e.get(),a=t.get(),r={},i={};$(o,e=>{r[e.value]=e,Oe(e,"meta").each(t=>{Oe(t,"text").each(t=>{i[t]=e})})}),e.set({...n,...r}),t.set({...a,...i})};return Fs({readState:o,lookup:a,update:r,clear:n})},lg=e=>e.store.manager.state(e);var sg=Object.freeze({__proto__:null,memory:ag,dataset:ig,manual:rg,init:lg});const cg=(e,t,o,n)=>{const a=t.store;o.update([n]),a.setValue(e,n),t.onSetValue(e,n)},dg=(e,t,o)=>{const n=t.store,a=n.getDataKey(e);return o.lookup(a).getOrThunk(()=>n.getFallbackEntry(a))},ug=(e,t,o)=>{const n=t.store;n.initialValue.each(n=>{cg(e,t,o,n)})},mg=(e,t,o)=>{o.clear()};var hg=[Kr("initialValue"),Fr("getFallbackEntry"),Fr("getDataKey"),Fr("setValue"),Rd("manager",{setValue:cg,getValue:dg,onLoad:ug,onUnload:mg,state:ig})];const pg=(e,t,o)=>t.store.getValue(e),bg=(e,t,o,n)=>{t.store.setValue(e,n),t.onSetValue(e,n)},gg=(e,t,o)=>{t.store.initialValue.each(o=>{t.store.setValue(e,o)})};var fg=[Fr("getValue"),ni("setValue",w),Kr("initialValue"),Rd("manager",{setValue:bg,getValue:pg,onLoad:gg,onUnload:w,state:zs.init})];const vg=(e,t,o,n)=>{o.set(n),t.onSetValue(e,n)},wg=(e,t,o)=>o.get(),kg=(e,t,o)=>{t.store.initialValue.each(e=>{o.isNotSet()&&o.set(e)})},Cg=(e,t,o)=>{o.clear()};var yg=[Kr("initialValue"),Rd("manager",{setValue:vg,getValue:wg,onLoad:kg,onUnload:Cg,state:ag})],Og=[ai("store",{mode:"memory"},Tr("mode",{memory:yg,manual:fg,dataset:hg})),Fd("onSetValue"),ni("resetOnDom",!1)];const jg=Uu({fields:Og,name:"representing",active:ng,apis:tg,extra:{setValueFrom:(e,t)=>{const o=jg.getValue(t);jg.setValue(e,o)}},state:sg}),xg=(e,t)=>mi(e,{},q(t,t=>Ur(t.name(),"Cannot configure "+t.name()+" for "+e)).concat([Ir("dump",j)])),_g=e=>e.dump,Vg=(e,t)=>({...qu(t),...e.dump}),Ag={field:xg,augment:Vg,get:_g},Ng="placeholder",Dg=bi.generate([{single:["required","valueThunk"]},{multiple:["required","valueThunks"]}]),Eg=e=>je(e,"uiType"),Tg=(e,t,o,n)=>e.exists(e=>e!==o.owner)?Dg.single(!0,O(o)):Oe(n,o.name).fold(()=>{throw new Error("Unknown placeholder component: "+o.name+"\nKnown: ["+ue(n)+"]\nNamespace: "+e.getOr("none")+"\nSpec: "+JSON.stringify(o,null,2))},e=>e.replace()),Sg=(e,t,o,n)=>Eg(o)&&o.uiType===Ng?Tg(e,t,o,n):Dg.single(!1,O(o)),Bg=(e,t,o,n)=>{const a=Sg(e,t,o,n);return a.fold((a,r)=>{const i=Eg(o)?r(t,o.config,o.validated):r(t),l=Oe(i,"components").getOr([]),s=X(l,o=>Bg(e,t,o,n));return[{...i,components:s}]},(e,n)=>{if(Eg(o)){const e=n(t,o.config,o.validated),a=o.validated.preprocess.getOr(j);return a(e)}return n(t)})},Ig=(e,t,o,n)=>X(o,o=>Bg(e,t,o,n)),zg=(e,t)=>{let o=!1;const n=()=>o,a=()=>{if(o)throw new Error("Trying to use the same placeholder more than once: "+e);return o=!0,t},r=()=>t.fold((e,t)=>e,(e,t)=>e);return{name:O(e),required:r,used:n,replace:a}},Fg=(e,t,o,n)=>{const a=pe(n,(e,t)=>zg(t,e)),r=Ig(e,t,o,a);return he(a,o=>{if(!1===o.used()&&o.required())throw new Error("Placeholder: "+o.name()+" was not found in components list\nNamespace: "+e.getOr("none")+"\nComponents: "+JSON.stringify(t.components,null,2))}),r},Mg=Dg.single,Lg=Dg.multiple,Pg=O(Ng),Rg=bi.generate([{required:["data"]},{external:["data"]},{optional:["data"]},{group:["data"]}]),qg=ni("factory",{sketch:j}),$g=ni("schema",[]),Ug=Fr("name"),Hg=Br("pname","pname",Sa(e=>"<alloy."+bs(e.name)+">"),pr()),Wg=Ir("schema",()=>[Kr("preprocess")]),Gg=ni("defaults",O({})),Kg=ni("overrides",O({})),Yg=sr([qg,$g,Ug,Hg,Gg,Kg]),Qg=sr([qg,$g,Ug,Gg,Kg]),Jg=sr([qg,$g,Ug,Hg,Gg,Kg]),Zg=sr([qg,Wg,Ug,Fr("unit"),Hg,Gg,Kg]),Xg=e=>e.fold(T.some,T.none,T.some,T.some),ef=e=>{const t=e=>e.name;return e.fold(t,t,t,t)},tf=e=>e.fold(j,j,j,j),of=(e,t)=>o=>{const n=Dr("Converting part type",t,o);return e(n)},nf=of(Rg.required,Yg),af=of(Rg.external,Qg),rf=of(Rg.optional,Jg),lf=of(Rg.group,Zg),sf=O("entirety");var cf=Object.freeze({__proto__:null,required:nf,external:af,optional:rf,group:lf,asNamedPart:Xg,name:ef,asCommon:tf,original:sf});const df=(e,t,o,n)=>Da(t.defaults(e,o,n),o,{uid:e.partUids[t.name]},t.overrides(e,o,n)),uf=(e,t,o)=>{const n={},a={};return $(o,e=>{e.fold(e=>{n[e.pname]=Mg(!0,(t,o,n)=>e.factory.sketch(df(t,e,o,n)))},e=>{const o=t.parts[e.name];a[e.name]=O(e.factory.sketch(df(t,e,o[sf()]),o))},e=>{n[e.pname]=Mg(!1,(t,o,n)=>e.factory.sketch(df(t,e,o,n)))},e=>{n[e.pname]=Lg(!0,(t,o,n)=>{const a=t[e.name];return q(a,o=>e.factory.sketch(Da(e.defaults(t,o,n),o,e.overrides(t,o))))})})}),{internals:O(n),externals:O(a)}},mf=(e,t)=>{const o={};return $(t,t=>{Xg(t).each(t=>{const n=hf(e,t.pname);o[t.name]=o=>{const a=Dr("Part: "+t.name+" in "+e,sr(t.schema),o);return{...n,config:o,validated:a}}})}),o},hf=(e,t)=>({uiType:Pg(),owner:e,name:t}),pf=(e,t,o)=>({uiType:Pg(),owner:e,name:t,config:o,validated:{}}),bf=e=>X(e,e=>e.fold(T.none,T.some,T.none,T.none).map(e=>Hr(e.name,e.schema.concat([qd(sf())]))).toArray()),gf=e=>q(e,ef),ff=(e,t,o)=>uf(e,t,o),vf=(e,t,o)=>Fg(T.some(e),t,t.components,o),wf=(e,t,o)=>{const n=t.partUids[o];return e.getSystem().getByUid(n).toOptional()},kf=(e,t,o)=>wf(e,t,o).getOrDie("Could not find part: "+o),Cf=(e,t,o)=>{const n={},a=t.partUids,r=e.getSystem();return $(o,e=>{n[e]=O(r.getByUid(a[e]))}),n},yf=(e,t)=>{const o=e.getSystem();return pe(t.partUids,(e,t)=>O(o.getByUid(e)))},Of=e=>ue(e.partUids),jf=(e,t,o)=>{const n={},a=t.partUids,r=e.getSystem();return $(o,e=>{n[e]=O(r.getByUid(a[e]).getOrDie())}),n},xf=(e,t)=>{const o=gf(t);return yi(q(o,t=>({key:t,value:e+"-"+t})))},_f=e=>Br("partUids","partUids",za(t=>xf(t.uid,e)),pr());var Vf=Object.freeze({__proto__:null,generate:mf,generateOne:pf,schemas:bf,names:gf,substitutes:ff,components:vf,defaultUids:xf,defaultUidsSchema:_f,getAllParts:yf,getAllPartNames:Of,getPart:wf,getPartOrDie:kf,getParts:Cf,getPartsOrDie:jf});const Af=(e,t)=>{const o=e.length>0?[Hr("parts",e)]:[];return o.concat([Fr("uid"),ni("dom",{}),ni("components",[]),qd("originalSpec"),ni("debug.sketcher",{})]).concat(t)},Nf=(e,t,o,n,a)=>{const r=Af(n,a);return Dr(e+" [SpecSchema]",lr(r.concat(t)),o)},Df=(e,t,o,n)=>{const a=Sf(n),r=Nf(e,t,a,[],[]);return o(r,a)},Ef=(e,t,o,n,a)=>{const r=Sf(a),i=bf(o),l=_f(o),s=Nf(e,t,r,i,[l]),c=ff(e,s,o),d=vf(e,s,c.internals());return n(s,d,r,c.externals())},Tf=e=>je(e,"uid"),Sf=e=>Tf(e)?e:{...e,uid:Os("uid")},Bf=e=>void 0!==e.uid,If=lr([Fr("name"),Fr("factory"),Fr("configFields"),ni("apis",{}),ni("extraApis",{})]),zf=lr([Fr("name"),Fr("factory"),Fr("configFields"),Fr("partFields"),ni("apis",{}),ni("extraApis",{})]),Ff=e=>{const t=Dr("Sketcher for "+e.name,If,e),o=e=>Df(t.name,t.configFields,t.factory,e),n=pe(t.apis,Is),a=pe(t.extraApis,(e,t)=>Ns(e,t));return{name:t.name,configFields:t.configFields,sketch:o,...n,...a}},Mf=e=>{const t=Dr("Sketcher for "+e.name,zf,e),o=e=>Ef(t.name,t.configFields,t.partFields,t.factory,e),n=mf(t.name,t.partFields),a=pe(t.apis,Is),r=pe(t.extraApis,(e,t)=>Ns(e,t));return{name:t.name,partFields:t.partFields,configFields:t.configFields,sketch:o,parts:n,...a,...r}},Lf=e=>wt("input")(e)&&"radio"!==no(e,"type")||wt("textarea")(e),Pf=(e,t,o)=>t.find(e);var Rf=Object.freeze({__proto__:null,getCurrent:Pf});const qf=[Fr("find")],$f=Uu({fields:qf,name:"composing",apis:Rf}),Uf=["input","button","textarea","select"],Hf=(e,t,o)=>{const n=t.disabled()?Xf:ev;n(e,t)},Wf=(e,t)=>!0===t.useNative&&M(Uf,ut(e.element)),Gf=e=>ro(e.element,"disabled"),Kf=e=>{to(e.element,"disabled","disabled")},Yf=e=>{io(e.element,"disabled")},Qf=e=>"true"===no(e.element,"aria-disabled"),Jf=e=>{to(e.element,"aria-disabled","true")},Zf=e=>{to(e.element,"aria-disabled","false")},Xf=(e,t,o)=>{t.disableClass.each(t=>{vc(e.element,t)});const n=Wf(e,t)?Kf:Jf;n(e),t.onDisabled(e)},ev=(e,t,o)=>{t.disableClass.each(t=>{kc(e.element,t)});const n=Wf(e,t)?Yf:Zf;n(e),t.onEnabled(e)},tv=(e,t)=>Wf(e,t)?Gf(e):Qf(e),ov=(e,t,o,n)=>{const a=n?Xf:ev;a(e,t)};var nv=Object.freeze({__proto__:null,enable:ev,disable:Xf,isDisabled:tv,onLoad:Hf,set:ov});const av=(e,t)=>qs({classes:t.disabled()?t.disableClass.toArray():[]}),rv=(e,t)=>Ml([Ll(cl(),(t,o)=>tv(t,e)),zu(e,t,Hf)]);var iv=Object.freeze({__proto__:null,exhibit:av,events:rv}),lv=[ci("disabled",D),ni("useNative",!0),Kr("disableClass"),Fd("onDisabled"),Fd("onEnabled")];const sv=Uu({fields:lv,name:"disabling",active:iv,apis:nv}),cv=(e,t,o,n)=>{const a=mp(e.element,"."+t.highlightClass);$(a,o=>{const a=L(n,e=>jt(e.element,o));a||(kc(o,t.highlightClass),e.getSystem().getByDom(o).each(o=>{t.onDehighlight(e,o),El(o,Dl())}))})},dv=(e,t,o)=>cv(e,t,o,[]),uv=(e,t,o,n)=>{fv(e,t,o,n)&&(kc(n.element,t.highlightClass),t.onDehighlight(e,n),El(n,Dl()))},mv=(e,t,o,n)=>{cv(e,t,o,[n]),fv(e,t,o,n)||(vc(n.element,t.highlightClass),t.onHighlight(e,n),El(n,Nl()))},hv=(e,t,o)=>{kv(e,t).each(n=>{mv(e,t,o,n)})},pv=(e,t,o)=>{Cv(e,t).each(n=>{mv(e,t,o,n)})},bv=(e,t,o,n)=>{wv(e,t,o,n).fold(e=>{throw e},n=>{mv(e,t,o,n)})},gv=(e,t,o,n)=>{const a=xv(e,t),r=Q(a,n);r.each(n=>{mv(e,t,o,n)})},fv=(e,t,o,n)=>yc(n.element,t.highlightClass),vv=(e,t,o)=>md(e.element,"."+t.highlightClass).bind(t=>e.getSystem().getByDom(t).toOptional()),wv=(e,t,o,n)=>{const a=mp(e.element,"."+t.itemClass);return T.from(a[n]).fold(()=>ua.error(new Error("No element found with index "+n)),e.getSystem().getByDom)},kv=(e,t,o)=>md(e.element,"."+t.itemClass).bind(t=>e.getSystem().getByDom(t).toOptional()),Cv=(e,t,o)=>{const n=mp(e.element,"."+t.itemClass),a=n.length>0?T.some(n[n.length-1]):T.none();return a.bind(t=>e.getSystem().getByDom(t).toOptional())},yv=(e,t,o,n)=>{const a=mp(e.element,"."+t.itemClass),r=J(a,e=>yc(e,t.highlightClass));return r.bind(t=>{const o=nu(t,n,0,a.length-1);return e.getSystem().getByDom(a[o]).toOptional()})},Ov=(e,t,o)=>yv(e,t,o,-1),jv=(e,t,o)=>yv(e,t,o,1),xv=(e,t,o)=>{const n=mp(e.element,"."+t.itemClass);return Ae(q(n,t=>e.getSystem().getByDom(t).toOptional()))};var _v=Object.freeze({__proto__:null,dehighlightAll:dv,dehighlight:uv,highlight:mv,highlightFirst:hv,highlightLast:pv,highlightAt:bv,highlightBy:gv,isHighlighted:fv,getHighlighted:vv,getFirst:kv,getLast:Cv,getPrevious:Ov,getNext:jv,getCandidates:xv}),Vv=[Fr("highlightClass"),Fr("itemClass"),Fd("onHighlight"),Fd("onDehighlight")];const Av=Uu({fields:Vv,name:"highlighting",apis:_v}),Nv=[8],Dv=[9],Ev=[13],Tv=[27],Sv=[32],Bv=[37],Iv=[38],zv=[39],Fv=[40],Mv=(e,t,o)=>{const n=te(e.slice(0,t)),a=te(e.slice(t+1));return Q(n.concat(a),o)},Lv=(e,t,o)=>{const n=te(e.slice(0,t));return Q(n,o)},Pv=(e,t,o)=>{const n=e.slice(0,t),a=e.slice(t+1);return Q(a.concat(n),o)},Rv=(e,t,o)=>{const n=e.slice(t+1);return Q(n,o)},qv=e=>t=>{const o=t.raw;return M(e,o.which)},$v=e=>t=>ee(e,e=>e(t)),Uv=e=>{const t=e.raw;return!0===t.shiftKey},Hv=e=>{const t=e.raw;return!0===t.ctrlKey},Wv=V(Uv),Gv=(e,t)=>({matches:e,classification:t}),Kv=(e,t)=>{const o=Q(e,e=>e.matches(t));return o.map(e=>e.classification)},Yv=(e,t,o)=>{const n=t.exists(e=>o.exists(t=>jt(t,e)));n||Tl(e,jl(),{prevFocus:t,newFocus:o})},Qv=()=>{const e=e=>tm(e.element),t=(t,o)=>{const n=e(t);t.getSystem().triggerFocus(o,t.element);const a=e(t);Yv(t,n,a)};return{get:e,set:t}},Jv=()=>{const e=e=>Av.getHighlighted(e).map(e=>e.element),t=(t,o)=>{const n=e(t);t.getSystem().getByDom(o).fold(w,e=>{Av.highlight(t,e)});const a=e(t);Yv(t,n,a)};return{get:e,set:t}};var Zv;(function(e){e["OnFocusMode"]="onFocus",e["OnEnterOrSpaceMode"]="onEnterOrSpace",e["OnApiMode"]="onApi"})(Zv||(Zv={}));const Xv=(e,t,o,n,a)=>{const r=()=>e.concat([ni("focusManager",Qv()),ai("focusInside","onFocus",xr(e=>M(["onFocus","onEnterOrSpace","onApi"],e)?ua.value(e):ua.error("Invalid value for focusInside"))),Rd("handler",s),Rd("state",t),Rd("sendFocusIn",a)]),i=(e,t,o,n,a)=>{const r=o(e,t,n,a);return Kv(r,t.event).bind(o=>o(e,t,n,a))},l=(e,t)=>{const r=e.focusInside!==Zv.OnFocusMode?T.none():a(e).map(o=>ql(rl(),(n,a)=>{o(n,e,t),a.stop()})),l=(o,n)=>{const r=qv(Sv.concat(Ev))(n.event);e.focusInside===Zv.OnEnterOrSpaceMode&&r&&Ni(o,n)&&a(e).each(a=>{a(o,e,t),n.stop()})},s=[ql(Ki(),(n,a)=>{i(n,a,o,e,t).fold(()=>{l(n,a)},e=>{a.stop()})}),ql(Yi(),(o,a)=>{i(o,a,n,e,t).each(e=>{a.stop()})})];return Ml(r.toArray().concat(s))},s={schema:r,processKey:i,toEvents:l};return s},ew=e=>{const t=[Kr("onEscape"),Kr("onEnter"),ni("selector",'[data-alloy-tabstop="true"]:not(:disabled)'),ni("firstTabstop",0),ni("useTabstopAt",E),Kr("visibilitySelector")].concat([e]),o=(e,t)=>{const o=e.visibilitySelector.bind(e=>hd(t,e)).getOr(t);return Oo(o)>0},n=(e,t)=>{const n=mp(e.element,t.selector),a=W(n,e=>o(t,e));return T.from(a[t.firstTabstop])},a=(e,t)=>t.focusManager.get(e).bind(e=>hd(e,t.selector)),r=(e,t)=>o(e,t)&&e.useTabstopAt(t),i=(e,t,o)=>{n(e,t).each(o=>{t.focusManager.set(e,o)})},l=(e,t,o,n,a)=>a(t,o,e=>r(n,e)).fold(()=>n.cyclic?T.some(!0):T.none(),t=>(n.focusManager.set(e,t),T.some(!0))),s=(e,t,o,n)=>{const r=mp(e.element,o.selector);return a(e,o).bind(t=>{const a=J(r,_(jt,t));return a.bind(t=>l(e,r,t,o,n))})},c=(e,t,o)=>{const n=o.cyclic?Mv:Lv;return s(e,t,o,n)},d=(e,t,o)=>{const n=o.cyclic?Pv:Rv;return s(e,t,o,n)},u=e=>Et(e).bind(Mt).exists(t=>jt(t,e)),m=(e,t,o)=>a(e,o).filter(e=>!o.useTabstopAt(e)).bind(n=>(u(n)?c:d)(e,t,o)),h=(e,t,o)=>o.onEnter.bind(o=>o(e,t)),p=(e,t,o)=>o.onEscape.bind(o=>o(e,t)),b=O([Gv($v([Uv,qv(Dv)]),c),Gv(qv(Dv),d),Gv($v([Wv,qv(Ev)]),h)]),g=O([Gv(qv(Tv),p),Gv(qv(Dv),m)]);return Xv(t,zs.init,b,g,()=>T.some(i))};var tw=ew(Ir("cyclic",D)),ow=ew(Ir("cyclic",E));const nw=(e,t,o)=>(Bl(e,o,cl()),T.some(!0)),aw=(e,t,o)=>{const n=Lf(o)&&qv(Sv)(t.event);return n?T.none():nw(e,t,o)},rw=(e,t)=>T.some(!0),iw=[ni("execute",aw),ni("useSpace",!1),ni("useEnter",!0),ni("useControlEnter",!1),ni("useDown",!1)],lw=(e,t,o)=>o.execute(e,t,e.element),sw=(e,t,o,n)=>{const a=o.useSpace&&!Lf(e.element)?Sv:[],r=o.useEnter?Ev:[],i=o.useDown?Fv:[],l=a.concat(r).concat(i);return[Gv(qv(l),lw)].concat(o.useControlEnter?[Gv($v([Hv,qv(Ev)]),lw)]:[])},cw=(e,t,o,n)=>o.useSpace&&!Lf(e.element)?[Gv(qv(Sv),rw)]:[];var dw=Xv(iw,zs.init,sw,cw,()=>T.none());const uw=()=>{const e=Dm(),t=(t,o)=>{e.set({numRows:t,numColumns:o})},o=()=>e.get().map(e=>e.numRows),n=()=>e.get().map(e=>e.numColumns);return Fs({readState:()=>e.get().map(e=>({numRows:String(e.numRows),numColumns:String(e.numColumns)})).getOr({numRows:"?",numColumns:"?"}),setGridSize:t,getNumRows:o,getNumColumns:n})},mw=e=>e.state(e);var hw=Object.freeze({__proto__:null,flatgrid:uw,init:mw});const pw=e=>(t,o,n,a)=>{const r=e(t.element);return vw(r,t,o,n,a)},bw=(e,t)=>{const o=lh(e,t);return pw(o)},gw=(e,t)=>{const o=lh(t,e);return pw(o)},fw=e=>(t,o,n,a)=>vw(e,t,o,n,a),vw=(e,t,o,n,a)=>{const r=n.focusManager.get(t).bind(o=>e(t.element,o,n,a));return r.map(e=>(n.focusManager.set(t,e),!0))},ww=fw,kw=fw,Cw=fw,yw=e=>e.offsetWidth<=0&&e.offsetHeight<=0,Ow=e=>!yw(e.dom),jw=(e,t)=>J(e,t).map(t=>({index:t,candidates:e})),xw=(e,t,o)=>{const n=e=>jt(e,t),a=mp(e,o),r=W(a,Ow);return jw(r,n)},_w=(e,t)=>J(e,e=>jt(t,e)),Vw=(e,t,o,n)=>{const a=Math.floor(t/o),r=t%o;return n(a,r).bind(t=>{const n=t.row*o+t.column;return n>=0&&n<e.length?T.some(e[n]):T.none()})},Aw=(e,t,o,n,a)=>Vw(e,t,n,(t,r)=>{const i=t===o-1,l=i?e.length-t*n:n,s=nu(r,a,0,l-1);return T.some({row:t,column:s})}),Nw=(e,t,o,n,a)=>Vw(e,t,n,(t,r)=>{const i=nu(t,a,0,o-1),l=i===o-1,s=l?e.length-i*n:n,c=au(r,0,s-1);return T.some({row:i,column:c})}),Dw=(e,t,o,n)=>Aw(e,t,o,n,1),Ew=(e,t,o,n)=>Aw(e,t,o,n,-1),Tw=(e,t,o,n)=>Nw(e,t,o,n,-1),Sw=(e,t,o,n)=>Nw(e,t,o,n,1),Bw=[Fr("selector"),ni("execute",aw),Md("onEscape"),ni("captureTab",!1),$d()],Iw=(e,t,o)=>{md(e.element,t.selector).each(o=>{t.focusManager.set(e,o)})},zw=(e,t)=>t.focusManager.get(e).bind(e=>hd(e,t.selector)),Fw=(e,t,o,n)=>zw(e,o).bind(n=>o.execute(e,t,n)),Mw=e=>(t,o,n,a)=>xw(t,o,n.selector).bind(t=>e(t.candidates,t.index,a.getNumRows().getOr(n.initSize.numRows),a.getNumColumns().getOr(n.initSize.numColumns))),Lw=(e,t,o)=>o.captureTab?T.some(!0):T.none(),Pw=(e,t,o)=>o.onEscape(e,t),Rw=Mw(Ew),qw=Mw(Dw),$w=Mw(Tw),Uw=Mw(Sw),Hw=O([Gv(qv(Bv),bw(Rw,qw)),Gv(qv(zv),gw(Rw,qw)),Gv(qv(Iv),ww($w)),Gv(qv(Fv),kw(Uw)),Gv($v([Uv,qv(Dv)]),Lw),Gv($v([Wv,qv(Dv)]),Lw),Gv(qv(Sv.concat(Ev)),Fw)]),Ww=O([Gv(qv(Tv),Pw),Gv(qv(Sv),rw)]);var Gw=Xv(Bw,uw,Hw,Ww,()=>T.some(Iw));const Kw=(e,t,o,n,a)=>{const r=e=>"button"===ut(e)&&"disabled"===no(e,"disabled"),i=(e,t,o)=>a(e,t,n,0,o.length-1,o[t],t=>r(o[t])?i(e,t,o):T.from(o[t]));return xw(e,o,t).bind(e=>{const t=e.index,o=e.candidates;return i(t,t,o)})},Yw=(e,t,o,n)=>Kw(e,t,o,n,(e,t,o,n,a,r,i)=>{const l=au(t+o,n,a);return l===e?T.from(r):i(l)}),Qw=(e,t,o,n)=>Kw(e,t,o,n,(e,t,o,n,a,r,i)=>{const l=nu(t,o,n,a);return l===e?T.none():i(l)}),Jw=[Fr("selector"),ni("getInitial",T.none),ni("execute",aw),Md("onEscape"),ni("executeOnMove",!1),ni("allowVertical",!0),ni("allowHorizontal",!0),ni("cycles",!0)],Zw=(e,t)=>t.focusManager.get(e).bind(e=>hd(e,t.selector)),Xw=(e,t,o)=>Zw(e,o).bind(n=>o.execute(e,t,n)),ek=(e,t,o)=>{t.getInitial(e).orThunk(()=>md(e.element,t.selector)).each(o=>{t.focusManager.set(e,o)})},tk=(e,t,o)=>(o.cycles?Qw:Yw)(e,o.selector,t,-1),ok=(e,t,o)=>(o.cycles?Qw:Yw)(e,o.selector,t,1),nk=e=>(t,o,n,a)=>e(t,o,n,a).bind(()=>n.executeOnMove?Xw(t,o,n):T.some(!0)),ak=(e,t,o)=>o.onEscape(e,t),rk=(e,t,o,n)=>{const a=[...o.allowHorizontal?Bv:[]].concat(o.allowVertical?Iv:[]),r=[...o.allowHorizontal?zv:[]].concat(o.allowVertical?Fv:[]);return[Gv(qv(a),nk(bw(tk,ok))),Gv(qv(r),nk(gw(tk,ok))),Gv(qv(Ev),Xw),Gv(qv(Sv),Xw)]},ik=O([Gv(qv(Sv),rw),Gv(qv(Tv),ak)]);var lk=Xv(Jw,zs.init,rk,ik,()=>T.some(ek));const sk=(e,t,o)=>T.from(e[t]).bind(e=>T.from(e[o]).map(e=>({rowIndex:t,columnIndex:o,cell:e}))),ck=(e,t,o,n)=>{const a=e[t],r=a.length,i=nu(o,n,0,r-1);return sk(e,t,i)},dk=(e,t,o,n)=>{const a=nu(o,n,0,e.length-1),r=e[a].length,i=au(t,0,r-1);return sk(e,a,i)},uk=(e,t,o,n)=>{const a=e[t],r=a.length,i=au(o+n,0,r-1);return sk(e,t,i)},mk=(e,t,o,n)=>{const a=au(o+n,0,e.length-1),r=e[a].length,i=au(t,0,r-1);return sk(e,a,i)},hk=(e,t,o)=>ck(e,t,o,1),pk=(e,t,o)=>ck(e,t,o,-1),bk=(e,t,o)=>dk(e,o,t,-1),gk=(e,t,o)=>dk(e,o,t,1),fk=(e,t,o)=>uk(e,t,o,-1),vk=(e,t,o)=>uk(e,t,o,1),wk=(e,t,o)=>mk(e,o,t,-1),kk=(e,t,o)=>mk(e,o,t,1),Ck=[Hr("selectors",[Fr("row"),Fr("cell")]),ni("cycles",!0),ni("previousSelector",T.none),ni("execute",aw)],yk=(e,t,o)=>{const n=t.previousSelector(e).orThunk(()=>{const o=t.selectors;return md(e.element,o.cell)});n.each(o=>{t.focusManager.set(e,o)})},Ok=(e,t,o)=>tm(e.element).bind(n=>o.execute(e,t,n)),jk=(e,t)=>q(e,e=>mp(e,t.selectors.cell)),xk=(e,t)=>(o,n,a)=>{const r=a.cycles?e:t;return hd(n,a.selectors.row).bind(e=>{const t=mp(e,a.selectors.cell);return _w(t,n).bind(t=>{const n=mp(o,a.selectors.row);return _w(n,e).bind(e=>{const o=jk(n,a);return r(o,e,t).map(e=>e.cell)})})})},_k=xk(pk,fk),Vk=xk(hk,vk),Ak=xk(bk,wk),Nk=xk(gk,kk),Dk=O([Gv(qv(Bv),bw(_k,Vk)),Gv(qv(zv),gw(_k,Vk)),Gv(qv(Iv),ww(Ak)),Gv(qv(Fv),kw(Nk)),Gv(qv(Sv.concat(Ev)),Ok)]),Ek=O([Gv(qv(Sv),rw)]);var Tk=Xv(Ck,zs.init,Dk,Ek,()=>T.some(yk));const Sk=[Fr("selector"),ni("execute",aw),ni("moveOnTab",!1)],Bk=(e,t,o)=>o.focusManager.get(e).bind(n=>o.execute(e,t,n)),Ik=(e,t,o)=>{md(e.element,t.selector).each(o=>{t.focusManager.set(e,o)})},zk=(e,t,o)=>Qw(e,o.selector,t,-1),Fk=(e,t,o)=>Qw(e,o.selector,t,1),Mk=(e,t,o,n)=>o.moveOnTab?Cw(zk)(e,t,o,n):T.none(),Lk=(e,t,o,n)=>o.moveOnTab?Cw(Fk)(e,t,o,n):T.none(),Pk=O([Gv(qv(Iv),Cw(zk)),Gv(qv(Fv),Cw(Fk)),Gv($v([Uv,qv(Dv)]),Mk),Gv($v([Wv,qv(Dv)]),Lk),Gv(qv(Ev),Bk),Gv(qv(Sv),Bk)]),Rk=O([Gv(qv(Sv),rw)]);var qk=Xv(Sk,zs.init,Pk,Rk,()=>T.some(Ik));const $k=[Md("onSpace"),Md("onEnter"),Md("onShiftEnter"),Md("onLeft"),Md("onRight"),Md("onTab"),Md("onShiftTab"),Md("onUp"),Md("onDown"),Md("onEscape"),ni("stopSpaceKeyup",!1),Kr("focusIn")],Uk=(e,t,o)=>[Gv(qv(Sv),o.onSpace),Gv($v([Wv,qv(Ev)]),o.onEnter),Gv($v([Uv,qv(Ev)]),o.onShiftEnter),Gv($v([Uv,qv(Dv)]),o.onShiftTab),Gv($v([Wv,qv(Dv)]),o.onTab),Gv(qv(Iv),o.onUp),Gv(qv(Fv),o.onDown),Gv(qv(Bv),o.onLeft),Gv(qv(zv),o.onRight),Gv(qv(Sv),o.onSpace)],Hk=(e,t,o)=>[...o.stopSpaceKeyup?[Gv(qv(Sv),rw)]:[],Gv(qv(Tv),o.onEscape)];var Wk=Xv($k,zs.init,Uk,Hk,e=>e.focusIn);const Gk=tw.schema(),Kk=ow.schema(),Yk=lk.schema(),Qk=Gw.schema(),Jk=Tk.schema(),Zk=dw.schema(),Xk=qk.schema(),eC=Wk.schema();var tC=Object.freeze({__proto__:null,acyclic:Gk,cyclic:Kk,flow:Yk,flatgrid:Qk,matrix:Jk,execution:Zk,menu:Xk,special:eC});const oC=e=>xe(e,"setGridSize"),nC=Wu({branchKey:"mode",branches:tC,name:"keying",active:{events:(e,t)=>{const o=e.handler;return o.toEvents(e,t)}},apis:{focusIn:(e,t,o)=>{t.sendFocusIn(t).fold(()=>{e.getSystem().triggerFocus(e.element,e.element)},n=>{n(e,t,o)})},setGridSize:(e,t,o,n,a)=>{oC(o)?o.setGridSize(n,a):console.error("Layout does not support setGridSize")}},state:hw}),aC=(e,t)=>{om(()=>{mb(e,t,()=>q(t,e.getSystem().build))},e.element)},rC=(e,t)=>{om(()=>{hb(e,t,()=>Ic(e.element,t,e.getSystem().buildOrPatch))},e.element)},iC=(e,t,o,n)=>{cb(t);const a=Bc(e.element,o,n,e.getSystem().buildOrPatch);sb(e,a),e.syncComponents()},lC=(e,t,o)=>{const n=e.getSystem().build(o);bb(e,n,t)},sC=(e,t,o,n)=>{fb(t),lC(e,(e,t)=>Fn(e,t,o),n)},cC=(e,t,o,n)=>{const a=t.reuseDom?rC:aC;return a(e,n)},dC=(e,t,o,n)=>{lC(e,zn,n)},uC=(e,t,o,n)=>{lC(e,In,n)},mC=(e,t,o,n)=>{const a=hC(e),r=Q(a,e=>jt(n.element,e.element));r.each(fb)},hC=(e,t)=>e.components(),pC=(e,t,o,n,a)=>{const r=hC(e);return T.from(r[n]).map(o=>(a.fold(()=>fb(o),a=>{const r=t.reuseDom?iC:sC;r(e,o,n,a)}),o))},bC=(e,t,o,n,a)=>{const r=hC(e);return J(r,n).bind(n=>pC(e,t,o,n,a))};var gC=Object.freeze({__proto__:null,append:dC,prepend:uC,remove:mC,replaceAt:pC,replaceBy:bC,set:cC,contents:hC});const fC=Uu({fields:[si("reuseDom",!0)],name:"replacing",apis:gC}),vC=(e,t)=>{const o=Ml(t);return Uu({fields:[Fr("enabled")],name:e,active:{events:O(o)}})},wC=(e,t)=>{const o=vC(e,t);return{key:e,value:{config:{},me:o,configAsRaw:O({}),initialConfig:{},state:zs}}},kC=(e,t)=>{t.ignore||(Ju(e.element),t.onFocus(e))},CC=(e,t)=>{t.ignore||Zu(e.element)},yC=e=>Xu(e.element);var OC=Object.freeze({__proto__:null,focus:kC,blur:CC,isFocused:yC});const jC=(e,t)=>{const o=t.ignore?{}:{attributes:{tabindex:"-1"}};return qs(o)},xC=e=>Ml([ql(rl(),(t,o)=>{kC(t,e),o.stop()})].concat(e.stopMousedown?[ql(Ri(),(e,t)=>{t.event.prevent()})]:[]));var _C=Object.freeze({__proto__:null,exhibit:jC,events:xC}),VC=[Fd("onFocus"),ni("stopMousedown",!1),ni("ignore",!1)];const AC=Uu({fields:VC,name:"focusing",active:_C,apis:OC}),NC=e=>{const t=()=>{const t=hi(e),o=()=>t.get(),n=e=>t.set(e),a=()=>t.set(e),r=()=>t.get();return{get:o,set:n,clear:a,readState:r}};return{init:t}},DC=(e,t,o)=>{const n=t.aria;n.update(e,n,o.get())},EC=(e,t,o)=>{t.toggleClass.each(t=>{o.get()?vc(e.element,t):kc(e.element,t)})},TC=(e,t,o,n)=>{const a=o.get();o.set(n),EC(e,t,o),DC(e,t,o),a!==n&&t.onToggled(e,n)},SC=(e,t,o)=>{TC(e,t,o,!o.get())},BC=(e,t,o)=>{TC(e,t,o,!0)},IC=(e,t,o)=>{TC(e,t,o,!1)},zC=(e,t,o)=>o.get(),FC=(e,t,o)=>{TC(e,t,o,t.selected)};var MC=Object.freeze({__proto__:null,onLoad:FC,toggle:SC,isOn:zC,on:BC,off:IC,set:TC});const LC=()=>qs({}),PC=(e,t)=>{const o=Iu(e,t,SC),n=zu(e,t,FC);return Ml(Z([e.toggleOnExecute?[o]:[],[n]]))};var RC=Object.freeze({__proto__:null,exhibit:LC,events:PC});const qC=(e,t,o)=>{to(e.element,"aria-pressed",o),t.syncWithExpanded&&HC(e,t,o)},$C=(e,t,o)=>{to(e.element,"aria-selected",o)},UC=(e,t,o)=>{to(e.element,"aria-checked",o)},HC=(e,t,o)=>{to(e.element,"aria-expanded",o)};var WC=[ni("selected",!1),Kr("toggleClass"),ni("toggleOnExecute",!0),Fd("onToggled"),ai("aria",{mode:"none"},Tr("mode",{pressed:[ni("syncWithExpanded",!1),Rd("update",qC)],checked:[Rd("update",UC)],expanded:[Rd("update",HC)],selected:[Rd("update",$C)],none:[Rd("update",w)]}))];const GC=Uu({fields:WC,name:"toggling",active:RC,apis:MC,state:NC(!1)}),KC=()=>{const e=(e,t)=>{t.stop(),Sl(e)};return[ql(Zi(),e),ql(ul(),e),Yl(Fi()),Yl(Ri())]},YC=e=>{const t=e=>ts((t,o)=>{e(t),o.stop()});return Ml(Z([e.map(t).toArray(),KC()]))},QC="alloy.item-hover",JC="alloy.item-focus",ZC="alloy.item-toggled",XC=e=>{(tm(e.element).isNone()||AC.isFocused(e))&&(AC.isFocused(e)||AC.focus(e),Tl(e,QC,{item:e}))},ey=e=>{Tl(e,JC,{item:e})},ty=(e,t)=>{Tl(e,ZC,{item:e,state:t})},oy=O(QC),ny=O(JC),ay=O(ZC),ry=e=>e.toggling.map(e=>e.exclusive?"menuitemradio":"menuitemcheckbox").getOr("menuitem"),iy=e=>({aria:{mode:"checked"},...we(e,(e,t)=>"exclusive"!==t),onToggled:(t,o)=>{g(e.onToggled)&&e.onToggled(t,o),ty(t,o)}}),ly=e=>({dom:e.dom,domModification:{...e.domModification,attributes:{role:ry(e),...e.domModification.attributes,"aria-haspopup":e.hasSubmenu,...e.hasSubmenu?{"aria-expanded":!1}:{}}},behaviours:Ag.augment(e.itemBehaviours,[e.toggling.fold(GC.revoke,e=>GC.config(iy(e))),AC.config({ignore:e.ignoreFocus,stopMousedown:e.ignoreFocus,onFocus:e=>{ey(e)}}),nC.config({mode:"execution"}),jg.config({store:{mode:"memory",initialValue:e.data}}),wC("item-type-events",[...KC(),ql(Hi(),XC),ql(dl(),AC.focus)])]),components:e.components,eventOrder:e.eventOrder}),sy=[Fr("data"),Fr("components"),Fr("dom"),ni("hasSubmenu",!1),Kr("toggling"),Ag.field("itemBehaviours",[GC,AC,nC,jg]),ni("ignoreFocus",!1),ni("domModification",{}),Rd("builder",ly),ni("eventOrder",{})],cy=e=>({dom:e.dom,components:e.components,events:Ml([Ql(dl())])}),dy=[Fr("dom"),Fr("components"),Rd("builder",cy)],uy=O("item-widget"),my=O([nf({name:"widget",overrides:e=>({behaviours:qu([jg.config({store:{mode:"manual",getValue:t=>e.data,setValue:w}})])})})]),hy=e=>{const t=ff(uy(),e,my()),o=vf(uy(),e,t.internals()),n=t=>wf(t,e,"widget").map(e=>(nC.focusIn(e),e)),a=(t,o)=>Lf(o.event.target)?T.none():(()=>e.autofocus?(o.setSource(t.element),T.none()):T.none())();return{dom:e.dom,components:o,domModification:e.domModification,events:Ml([ts((e,t)=>{n(e).each(e=>{t.stop()})}),ql(Hi(),XC),ql(dl(),(t,o)=>{e.autofocus?n(t):AC.focus(t)})]),behaviours:Ag.augment(e.widgetBehaviours,[jg.config({store:{mode:"memory",initialValue:e.data}}),AC.config({ignore:e.ignoreFocus,onFocus:e=>{ey(e)}}),nC.config({mode:"special",focusIn:e.autofocus?e=>{n(e)}:Gu(),onLeft:a,onRight:a,onEscape:(t,o)=>AC.isFocused(t)||e.autofocus?e.autofocus?(o.setSource(t.element),T.none()):T.none():(AC.focus(t),T.some(!0))})])}},py=[Fr("uid"),Fr("data"),Fr("components"),Fr("dom"),ni("autofocus",!1),ni("ignoreFocus",!1),Ag.field("widgetBehaviours",[jg,AC,nC]),ni("domModification",{}),_f(my()),Rd("builder",hy)],by=Tr("type",{widget:py,item:sy,separator:dy}),gy=(e,t)=>({mode:"flatgrid",selector:"."+e.markers.item,initSize:{numColumns:t.initSize.numColumns,numRows:t.initSize.numRows},focusManager:e.focusManager}),fy=(e,t)=>({mode:"matrix",selectors:{row:t.rowSelector,cell:"."+e.markers.item},previousSelector:t.previousSelector,focusManager:e.focusManager}),vy=(e,t)=>({mode:"menu",selector:"."+e.markers.item,moveOnTab:t.moveOnTab,focusManager:e.focusManager}),wy=O([lf({factory:{sketch:e=>{const t=Dr("menu.spec item",by,e);return t.builder(t)}},name:"items",unit:"item",defaults:(e,t)=>je(t,"uid")?t:{...t,uid:Os("item")},overrides:(e,t)=>({type:t.type,ignoreFocus:e.fakeFocus,domModification:{classes:[e.markers.item]}})})]),ky=O([Fr("value"),Fr("items"),Fr("dom"),Fr("components"),ni("eventOrder",{}),xg("menuBehaviours",[Av,jg,$f,nC]),ai("movement",{mode:"menu",moveOnTab:!0},Tr("mode",{grid:[$d(),Rd("config",gy)],matrix:[Rd("config",fy),Fr("rowSelector"),ni("previousSelector",T.none)],menu:[ni("moveOnTab",!0),Rd("config",vy)]})),Sd(),ni("fakeFocus",!1),ni("focusManager",Qv()),Fd("onHighlight"),Fd("onDehighlight")]),Cy=O("alloy.menu-focus"),yy=(e,t)=>{const o=mp(e.element,'[role="menuitemradio"][aria-checked="true"]');$(o,o=>{jt(o,t.element)||e.getSystem().getByDom(o).each(e=>{GC.off(e)})})},Oy=(e,t,o,n)=>({uid:e.uid,dom:e.dom,markers:e.markers,behaviours:Vg(e.menuBehaviours,[Av.config({highlightClass:e.markers.selectedItem,itemClass:e.markers.item,onHighlight:e.onHighlight,onDehighlight:e.onDehighlight}),jg.config({store:{mode:"memory",initialValue:e.value}}),$f.config({find:T.some}),nC.config(e.movement.config(e,e.movement))]),events:Ml([ql(ny(),(e,t)=>{const o=t.event;e.getSystem().getByDom(o.target).each(o=>{Av.highlight(e,o),t.stop(),Tl(e,Cy(),{menu:e,item:o})})}),ql(oy(),(e,t)=>{const o=t.event.item;Av.highlight(e,o)}),ql(ay(),(e,t)=>{const{item:o,state:n}=t.event;n&&"menuitemradio"===no(o.element,"role")&&yy(e,o)})]),components:t,eventOrder:e.eventOrder,domModification:{attributes:{role:"menu"}}}),jy=Mf({name:"Menu",configFields:ky(),partFields:wy(),factory:Oy}),xy=e=>be(e,(e,t)=>({k:e,v:t})),_y=(e,t,o,n)=>Oe(o,n).bind(n=>Oe(e,n).bind(n=>{const a=_y(e,t,o,n);return T.some([n].concat(a))})).getOr([]),Vy=(e,t)=>{const o={};he(e,(e,t)=>{$(e,e=>{o[e]=t})});const n=t,a=xy(t),r=pe(a,(e,t)=>[t].concat(_y(o,n,a,t)));return pe(o,e=>Oe(r,e).getOr([e]))},Ay=()=>{const e=hi({}),t=hi({}),o=hi({}),n=Dm(),a=hi({}),r=()=>{e.set({}),t.set({}),o.set({}),n.clear()},i=()=>n.get().isNone(),l=(e,o)=>{t.set({...t.get(),[e]:{type:"prepared",menu:o}})},s=(r,i,l,s)=>{n.set(r),e.set(l),t.set(i),a.set(s);const c=Vy(s,l);o.set(c)},c=t=>Ce(e.get(),(e,o)=>e===t),d=(e,t,o)=>b(e).bind(n=>c(e).bind(e=>t(e).map(e=>({triggeredMenu:n,triggeringItem:e,triggeringPath:o})))),u=(e,t)=>{const a=W(f(e).toArray(),e=>b(e).isSome());return Oe(o.get(),e).bind(e=>{const o=te(a.concat(e)),r=X(o,(e,a)=>d(e,t,o.slice(0,a+1)).fold(()=>_e(n.get(),e)?[]:[T.none()],e=>[T.some(e)]));return Ne(r)})},m=t=>Oe(e.get(),t).map(e=>{const n=Oe(o.get(),t).getOr([]);return[e].concat(n)}),h=e=>Oe(o.get(),e).bind(e=>e.length>1?T.some(e.slice(1)):T.none()),p=e=>Oe(o.get(),e),b=e=>g(e).bind(Ny),g=e=>Oe(t.get(),e),f=t=>Oe(e.get(),t),v=e=>{const t=a.get();return oe(ue(t),e)},w=()=>n.get().bind(b),k=()=>t.get();return{setMenuBuilt:l,setContents:s,expand:m,refresh:p,collapse:h,lookupMenu:g,lookupItem:f,otherMenus:v,getPrimary:w,getMenus:k,clear:r,isClear:i,getTriggeringPath:u}},Ny=e=>"prepared"===e.type?T.some(e.menu):T.none(),Dy={init:Ay,extractPreparedMenu:Ny},Ey=bs("tiered-menu-item-highlight"),Ty=bs("tiered-menu-item-dehighlight");var Sy;(function(e){e[e["HighlightMenuAndItem"]=0]="HighlightMenuAndItem",e[e["HighlightJustMenu"]=1]="HighlightJustMenu",e[e["HighlightNone"]=2]="HighlightNone"})(Sy||(Sy={}));const By=(e,t)=>{const o=Dm(),n=(t,o,n)=>pe(n,(n,a)=>{const r=()=>jy.sketch({...n,value:a,markers:e.markers,fakeFocus:e.fakeFocus,onHighlight:(e,t)=>{const o={menuComp:e,itemComp:t};Tl(e,Ey,o)},onDehighlight:(e,t)=>{const o={menuComp:e,itemComp:t};Tl(e,Ty,o)},focusManager:e.fakeFocus?Jv():Qv()});return a===o?{type:"prepared",menu:t.getSystem().build(r())}:{type:"notbuilt",nbMenu:r}}),a=Dy.init(),r=t=>{const o=n(t,e.data.primary,e.data.menus),r=s();return a.setContents(e.data.primary,o,e.data.expansions,r),a.getPrimary()},i=e=>jg.getValue(e).value,l=(e,t,o)=>de(t,e=>{if(!e.getSystem().isConnected())return T.none();const t=Av.getCandidates(e);return Q(t,e=>i(e)===o)}),s=t=>pe(e.data.menus,(e,t)=>X(e.items,e=>"separator"===e.type?[]:[e.data.value])),c=Av.highlight,d=(t,o)=>{c(t,o),Av.getHighlighted(o).orThunk(()=>Av.getFirst(o)).each(n=>{e.fakeFocus?Av.highlight(o,n):Bl(t,n.element,dl())})},u=(e,t)=>Ae(q(t,t=>e.lookupMenu(t).bind(e=>"prepared"===e.type?T.some(e.menu):T.none()))),m=(t,o,n)=>{const a=u(o,o.otherMenus(n));$(a,o=>{jc(o.element,[e.markers.backgroundMenu]),e.stayInDom||fC.remove(t,o)})},h=t=>o.get().getOrThunk(()=>{const n={},a=mp(t.element,"."+e.markers.item),r=W(a,e=>"true"===no(e,"aria-haspopup"));return $(r,e=>{t.getSystem().getByDom(e).each(e=>{const t=i(e);n[t]=e})}),o.set(n),n}),p=(e,t)=>{const o=h(e);he(o,(e,o)=>{const n=M(t,o);to(e.element,"aria-expanded",n)})},b=(t,o,n)=>T.from(n[0]).bind(a=>o.lookupMenu(a).bind(a=>{if("notbuilt"===a.type)return T.none();{const r=a.menu,i=u(o,n.slice(1));return $(i,t=>{vc(t.element,e.markers.backgroundMenu)}),Jt(r.element)||fC.append(t,nd(r)),jc(r.element,[e.markers.backgroundMenu]),d(t,r),m(t,o,n),T.some(r)}}));let g;(function(e){e[e["HighlightSubmenu"]=0]="HighlightSubmenu",e[e["HighlightParent"]=1]="HighlightParent"})(g||(g={}));const f=(e,t,o)=>{if("notbuilt"===o.type){const n=e.getSystem().build(o.nbMenu());return a.setMenuBuilt(t,n),n}return o.menu},v=(t,o,n=g.HighlightSubmenu)=>{if(o.hasConfigured(sv)&&sv.isDisabled(o))return T.some(o);{const r=i(o);return a.expand(r).bind(r=>(p(t,r),T.from(r[0]).bind(i=>a.lookupMenu(i).bind(l=>{const s=f(t,i,l);return Jt(s.element)||fC.append(t,nd(s)),e.onOpenSubmenu(t,o,s,te(r)),n===g.HighlightSubmenu?(Av.highlightFirst(s),b(t,a,r)):(Av.dehighlightAll(s),T.some(o))}))))}},k=(t,o)=>{const n=i(o);return a.collapse(n).bind(n=>(p(t,n),b(t,a,n).map(n=>(e.onCollapseMenu(t,o,n),n))))},C=(e,t)=>{const o=i(t);return a.refresh(o).bind(t=>(p(e,t),b(e,a,t)))},y=(e,t)=>Lf(t.element)?T.none():v(e,t,g.HighlightSubmenu),O=(e,t)=>Lf(t.element)?T.none():k(e,t),j=(t,o)=>k(t,o).orThunk(()=>e.onEscape(t,o).map(()=>t)),x=t=>(o,n)=>hd(n.getSource(),"."+e.markers.item).bind(e=>o.getSystem().getByDom(e).toOptional().bind(e=>t(o,e).map(E))),_=Ml([ql(Cy(),(e,t)=>{const o=t.event.item;a.lookupItem(i(o)).each(()=>{const o=t.event.menu;Av.highlight(e,o);const n=i(t.event.item);a.refresh(n).each(t=>m(e,a,t))})}),ts((t,o)=>{const n=o.event.target;t.getSystem().getByDom(n).each(o=>{const n=i(o);0===n.indexOf("collapse-item")&&k(t,o),v(t,o,g.HighlightSubmenu).fold(()=>{e.onExecute(t,o)},w)})}),Zl((t,o)=>{r(t).each(o=>{fC.append(t,nd(o)),e.onOpenMenu(t,o),e.highlightOnOpen===Sy.HighlightMenuAndItem?d(t,o):e.highlightOnOpen===Sy.HighlightJustMenu&&c(t,o)})}),ql(Ey,(t,o)=>{e.onHighlightItem(t,o.event.menuComp,o.event.itemComp)}),ql(Ty,(t,o)=>{e.onDehighlightItem(t,o.event.menuComp,o.event.itemComp)}),...e.navigateOnHover?[ql(oy(),(t,o)=>{const n=o.event.item;C(t,n),v(t,n,g.HighlightParent),e.onHover(t,n)})]:[]]),V=e=>Av.getHighlighted(e).bind(Av.getHighlighted),A=e=>{V(e).each(t=>{k(e,t)})},N=e=>{a.getPrimary().each(t=>{d(e,t)})},D=e=>T.from(e.components()[0]).filter(e=>"menu"===no(e.element,"role")),S=t=>{const o=a.getPrimary().bind(e=>V(t).bind(e=>{const o=i(e),n=ye(a.getMenus()),r=Ae(q(n,Dy.extractPreparedMenu));return a.getTriggeringPath(o,e=>l(t,r,e))}).map(t=>({primary:e,triggeringPath:t})));o.fold(()=>{D(t).each(o=>{e.onRepositionMenu(t,o,[])})},({primary:o,triggeringPath:n})=>{e.onRepositionMenu(t,o,n)})},B={collapseMenu:A,highlightPrimary:N,repositionMenus:S};return{uid:e.uid,dom:e.dom,markers:e.markers,behaviours:Vg(e.tmenuBehaviours,[nC.config({mode:"special",onRight:x(y),onLeft:x(O),onEscape:x(j),focusIn:(e,t)=>{a.getPrimary().each(t=>{Bl(e,t.element,dl())})}}),Av.config({highlightClass:e.markers.selectedMenu,itemClass:e.markers.menu}),$f.config({find:e=>Av.getHighlighted(e)}),fC.config({})]),eventOrder:e.eventOrder,apis:B,events:_}},Iy=O("collapse-item"),zy=(e,t,o)=>({primary:e,menus:t,expansions:o}),Fy=(e,t)=>({primary:e,menus:Ci(e,t),expansions:{}}),My=e=>({value:bs(Iy()),meta:{text:e}}),Ly=Ff({name:"TieredMenu",configFields:[Pd("onExecute"),Pd("onEscape"),Ld("onOpenMenu"),Ld("onOpenSubmenu"),Fd("onRepositionMenu"),Fd("onCollapseMenu"),ni("highlightOnOpen",Sy.HighlightMenuAndItem),Hr("data",[Fr("primary"),Fr("menus"),Fr("expansions")]),ni("fakeFocus",!1),Fd("onHighlightItem"),Fd("onDehighlightItem"),Fd("onHover"),Bd(),Fr("dom"),ni("navigateOnHover",!0),ni("stayInDom",!1),xg("tmenuBehaviours",[nC,Av,$f,fC]),ni("eventOrder",{})],apis:{collapseMenu:(e,t)=>{e.collapseMenu(t)},highlightPrimary:(e,t)=>{e.highlightPrimary(t)},repositionMenus:(e,t)=>{e.repositionMenus(t)}},factory:By,extraApis:{tieredData:zy,singleData:Fy,collapseItem:My}}),Py=(e,t,o,n,a)=>{const r=()=>e.lazySink(t),i="horizontal"===n.type?{layouts:{onLtr:()=>Nu(),onRtl:()=>Du()}}:{},l=e=>2===e.length,s=e=>l(e)?i:{};return Ly.sketch({dom:{tag:"div"},data:n.data,markers:n.menu.markers,highlightOnOpen:n.menu.highlightOnOpen,fakeFocus:n.menu.fakeFocus,onEscape:()=>(qb.close(t),e.onEscape.map(e=>e(t)),T.some(!0)),onExecute:()=>T.some(!0),onOpenMenu:(e,t)=>{ab.positionWithinBounds(r().getOrDie(),t,o,a())},onOpenSubmenu:(e,t,o,n)=>{const a=r().getOrDie();ab.position(a,o,{anchor:{type:"submenu",item:t,...s(n)}})},onRepositionMenu:(e,t,n)=>{const i=r().getOrDie();ab.positionWithinBounds(i,t,o,a()),$(n,e=>{const t=s(e.triggeringPath);ab.position(i,e.triggeredMenu,{anchor:{type:"submenu",item:e.triggeringItem,...t}})})}})},Ry=(e,t)=>{const o=(t,o)=>{const n=e.getRelated(t);return n.exists(e=>vd(e,o))},n=(e,t)=>{qb.setContent(e,t)},a=(e,t,o)=>{const n=T.none;r(e,t,o,n)},r=(t,o,n,a)=>{const r=e.lazySink(t).getOrDie();qb.openWhileCloaked(t,o,()=>ab.positionWithinBounds(r,t,n,a())),jg.setValue(t,T.some({mode:"position",config:n,getBounds:a}))},i=(e,t,o)=>{l(e,t,o,T.none)},l=(t,o,n,a)=>{const r=Py(e,t,o,n,a);qb.open(t,r),jg.setValue(t,T.some({mode:"menu",menu:r}))},s=e=>{qb.isOpen(e)&&(jg.setValue(e,T.none()),qb.close(e))},c=e=>qb.getState(e),d=t=>{qb.isOpen(t)&&jg.getValue(t).each(o=>{switch(o.mode){case"menu":qb.getState(t).each(Ly.repositionMenus);break;case"position":const n=e.lazySink(t).getOrDie();ab.positionWithinBounds(n,t,o.config,o.getBounds());break}})},u={setContent:n,showAt:a,showWithinBounds:r,showMenuAt:i,showMenuWithinBounds:l,hide:s,getContent:c,reposition:d,isOpen:qb.isOpen};return{uid:e.uid,dom:e.dom,behaviours:Vg(e.inlineBehaviours,[qb.config({isPartOf:(e,t,n)=>vd(t,n)||o(e,n),getAttachPoint:t=>e.lazySink(t).getOrDie(),onOpen:t=>{e.onShow(t)},onClose:t=>{e.onHide(t)}}),jg.config({store:{mode:"memory",initialValue:T.none()}}),Ku.config({channels:{...Gb({isExtraPart:t.isExtraPart,...e.fireDismissalEventInstead.map(e=>({fireEventInstead:{event:e.event}})).getOr({})}),...Yb({...e.fireRepositionEventInstead.map(e=>({fireEventInstead:{event:e.event}})).getOr({}),doReposition:d})}})]),eventOrder:e.eventOrder,apis:u}},qy=Ff({name:"InlineView",configFields:[Fr("lazySink"),Fd("onShow"),Fd("onHide"),Xr("onEscape"),xg("inlineBehaviours",[qb,jg,Ku]),ti("fireDismissalEventInstead",[ni("event",yl())]),ti("fireRepositionEventInstead",[ni("event",Ol())]),ni("getRelated",T.none),ni("isExtraPart",D),ni("eventOrder",T.none)],factory:Ry,apis:{showAt:(e,t,o,n)=>{e.showAt(t,o,n)},showWithinBounds:(e,t,o,n,a)=>{e.showWithinBounds(t,o,n,a)},showMenuAt:(e,t,o,n)=>{e.showMenuAt(t,o,n)},showMenuWithinBounds:(e,t,o,n,a)=>{e.showMenuWithinBounds(t,o,n,a)},hide:(e,t)=>{e.hide(t)},isOpen:(e,t)=>e.isOpen(t),getContent:(e,t)=>e.getContent(t),setContent:(e,t,o)=>{e.setContent(t,o)},reposition:(e,t)=>{e.reposition(t)}}});var $y=tinymce.util.Tools.resolve("tinymce.util.Delay");const Uy=e=>{const t=YC(e.action),o=e.dom.tag,n=t=>Oe(e.dom,"attributes").bind(e=>Oe(e,t)),a=()=>{if("button"===o){const e=n("type").getOr("button"),t=n("role").map(e=>({role:e})).getOr({});return{type:e,...t}}{const t=e.role.getOr(n("role").getOr("button"));return{role:t}}};return{uid:e.uid,dom:e.dom,components:e.components,events:t,behaviours:Ag.augment(e.buttonBehaviours,[AC.config({}),nC.config({mode:"execution",useSpace:!0,useEnter:!0})]),domModification:{attributes:a()},eventOrder:e.eventOrder}},Hy=Ff({name:"Button",factory:Uy,configFields:[ni("uid",void 0),Fr("dom"),ni("components",[]),Ag.field("buttonBehaviours",[AC,nC]),Kr("action"),Kr("role"),ni("eventOrder",{})]}),Wy=e=>{const t=void 0!==e.dom.attributes?e.dom.attributes:[];return K(t,(e,t)=>"class"===t.name?e:{...e,[t.name]:t.value},{})},Gy=e=>Array.prototype.slice.call(e.dom.classList,0),Ky=e=>{const t=Ze.fromHtml(e),o=zt(t),n=Wy(t),a=Gy(t),r=0===o.length?{}:{innerHtml:ns(t)};return{tag:ut(t),classes:a,attributes:n,...r}},Yy=e=>{const t=Bf(e)&&xe(e,"uid")?e.uid:Os("memento"),o=e=>e.getSystem().getByUid(t).getOrDie(),n=e=>e.getSystem().getByUid(t).toOptional(),a=()=>({...e,uid:t});return{get:o,getOpt:n,asSpec:a}},{entries:Qy,setPrototypeOf:Jy,isFrozen:Zy,getPrototypeOf:Xy,getOwnPropertyDescriptor:eO}=Object;let{freeze:tO,seal:oO,create:nO}=Object,{apply:aO,construct:rO}="undefined"!==typeof Reflect&&Reflect;aO||(aO=function(e,t,o){return e.apply(t,o)}),tO||(tO=function(e){return e}),oO||(oO=function(e){return e}),rO||(rO=function(e,t){return new e(...t)});const iO=fO(Array.prototype.forEach),lO=fO(Array.prototype.pop),sO=fO(Array.prototype.push),cO=fO(String.prototype.toLowerCase),dO=fO(String.prototype.toString),uO=fO(String.prototype.match),mO=fO(String.prototype.replace),hO=fO(String.prototype.indexOf),pO=fO(String.prototype.trim),bO=fO(RegExp.prototype.test),gO=vO(TypeError);function fO(e){return function(t){for(var o=arguments.length,n=new Array(o>1?o-1:0),a=1;a<o;a++)n[a-1]=arguments[a];return aO(e,t,n)}}function vO(e){return function(){for(var t=arguments.length,o=new Array(t),n=0;n<t;n++)o[n]=arguments[n];return rO(e,o)}}function wO(e,t,o){var n;o=null!==(n=o)&&void 0!==n?n:cO,Jy&&Jy(e,null);let a=t.length;while(a--){let n=t[a];if("string"===typeof n){const e=o(n);e!==n&&(Zy(t)||(t[a]=e),n=e)}e[n]=!0}return e}function kO(e){const t=nO(null);for(const[o,n]of Qy(e))t[o]=n;return t}function CO(e,t){while(null!==e){const o=eO(e,t);if(o){if(o.get)return fO(o.get);if("function"===typeof o.value)return fO(o.value)}e=Xy(e)}function o(e){return console.warn("fallback value for",e),null}return o}const yO=tO(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","section","select","shadow","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),OO=tO(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","filter","font","g","glyph","glyphref","hkern","image","line","lineargradient","marker","mask","metadata","mpath","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),jO=tO(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),xO=tO(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),_O=tO(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),VO=tO(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),AO=tO(["#text"]),NO=tO(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","face","for","headers","height","hidden","high","href","hreflang","id","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","pattern","placeholder","playsinline","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","xmlns","slot"]),DO=tO(["accent-height","accumulate","additive","alignment-baseline","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),EO=tO(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),TO=tO(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),SO=oO(/\{\{[\w\W]*|[\w\W]*\}\}/gm),BO=oO(/<%[\w\W]*|[\w\W]*%>/gm),IO=oO(/\${[\w\W]*}/gm),zO=oO(/^data-[\-\w.\u00B7-\uFFFF]/),FO=oO(/^aria-[\-\w]+$/),MO=oO(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),LO=oO(/^(?:\w+script|data):/i),PO=oO(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),RO=oO(/^html$/i);var qO=Object.freeze({__proto__:null,MUSTACHE_EXPR:SO,ERB_EXPR:BO,TMPLIT_EXPR:IO,DATA_ATTR:zO,ARIA_ATTR:FO,IS_ALLOWED_URI:MO,IS_SCRIPT_OR_DATA:LO,ATTR_WHITESPACE:PO,DOCTYPE_NAME:RO});const $O=()=>"undefined"===typeof window?null:window,UO=function(e,t){if("object"!==typeof e||"function"!==typeof e.createPolicy)return null;let o=null;const n="data-tt-policy-suffix";t&&t.hasAttribute(n)&&(o=t.getAttribute(n));const a="dompurify"+(o?"#"+o:"");try{return e.createPolicy(a,{createHTML(e){return e},createScriptURL(e){return e}})}catch(r){return console.warn("TrustedTypes policy "+a+" could not be created."),null}};function HO(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:$O();const t=e=>HO(e);if(t.version="3.0.5",t.removed=[],!e||!e.document||9!==e.document.nodeType)return t.isSupported=!1,t;const o=e.document,n=o.currentScript;let{document:a}=e;const{DocumentFragment:r,HTMLTemplateElement:i,Node:l,Element:s,NodeFilter:c,NamedNodeMap:d=e.NamedNodeMap||e.MozNamedAttrMap,HTMLFormElement:u,DOMParser:m,trustedTypes:h}=e,p=s.prototype,b=CO(p,"cloneNode"),g=CO(p,"nextSibling"),f=CO(p,"childNodes"),v=CO(p,"parentNode");if("function"===typeof i){const e=a.createElement("template");e.content&&e.content.ownerDocument&&(a=e.content.ownerDocument)}let w,k="";const{implementation:C,createNodeIterator:y,createDocumentFragment:O,getElementsByTagName:j}=a,{importNode:x}=o;let _={};t.isSupported="function"===typeof Qy&&"function"===typeof v&&C&&void 0!==C.createHTMLDocument;const{MUSTACHE_EXPR:V,ERB_EXPR:A,TMPLIT_EXPR:N,DATA_ATTR:D,ARIA_ATTR:E,IS_SCRIPT_OR_DATA:T,ATTR_WHITESPACE:S}=qO;let{IS_ALLOWED_URI:B}=qO,I=null;const z=wO({},[...yO,...OO,...jO,..._O,...AO]);let F=null;const M=wO({},[...NO,...DO,...EO,...TO]);let L=Object.seal(Object.create(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),P=null,R=null,q=!0,$=!0,U=!1,H=!0,W=!1,G=!1,K=!1,Y=!1,Q=!1,J=!1,Z=!1,X=!0,ee=!1;const te="user-content-";let oe=!0,ne=!1,ae={},re=null;const ie=wO({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]);let le=null;const se=wO({},["audio","video","img","source","image","track"]);let ce=null;const de=wO({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),ue="http://www.w3.org/1998/Math/MathML",me="http://www.w3.org/2000/svg",he="http://www.w3.org/1999/xhtml";let pe=he,be=!1,ge=null;const fe=wO({},[ue,me,he],dO);let ve;const we=["application/xhtml+xml","text/html"],ke="text/html";let Ce,ye=null;const Oe=a.createElement("form"),je=function(e){return e instanceof RegExp||e instanceof Function},xe=function(e){if(!ye||ye!==e){if(e&&"object"===typeof e||(e={}),e=kO(e),ve=ve=-1===we.indexOf(e.PARSER_MEDIA_TYPE)?ke:e.PARSER_MEDIA_TYPE,Ce="application/xhtml+xml"===ve?dO:cO,I="ALLOWED_TAGS"in e?wO({},e.ALLOWED_TAGS,Ce):z,F="ALLOWED_ATTR"in e?wO({},e.ALLOWED_ATTR,Ce):M,ge="ALLOWED_NAMESPACES"in e?wO({},e.ALLOWED_NAMESPACES,dO):fe,ce="ADD_URI_SAFE_ATTR"in e?wO(kO(de),e.ADD_URI_SAFE_ATTR,Ce):de,le="ADD_DATA_URI_TAGS"in e?wO(kO(se),e.ADD_DATA_URI_TAGS,Ce):se,re="FORBID_CONTENTS"in e?wO({},e.FORBID_CONTENTS,Ce):ie,P="FORBID_TAGS"in e?wO({},e.FORBID_TAGS,Ce):{},R="FORBID_ATTR"in e?wO({},e.FORBID_ATTR,Ce):{},ae="USE_PROFILES"in e&&e.USE_PROFILES,q=!1!==e.ALLOW_ARIA_ATTR,$=!1!==e.ALLOW_DATA_ATTR,U=e.ALLOW_UNKNOWN_PROTOCOLS||!1,H=!1!==e.ALLOW_SELF_CLOSE_IN_ATTR,W=e.SAFE_FOR_TEMPLATES||!1,G=e.WHOLE_DOCUMENT||!1,Q=e.RETURN_DOM||!1,J=e.RETURN_DOM_FRAGMENT||!1,Z=e.RETURN_TRUSTED_TYPE||!1,Y=e.FORCE_BODY||!1,X=!1!==e.SANITIZE_DOM,ee=e.SANITIZE_NAMED_PROPS||!1,oe=!1!==e.KEEP_CONTENT,ne=e.IN_PLACE||!1,B=e.ALLOWED_URI_REGEXP||MO,pe=e.NAMESPACE||he,L=e.CUSTOM_ELEMENT_HANDLING||{},e.CUSTOM_ELEMENT_HANDLING&&je(e.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(L.tagNameCheck=e.CUSTOM_ELEMENT_HANDLING.tagNameCheck),e.CUSTOM_ELEMENT_HANDLING&&je(e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(L.attributeNameCheck=e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),e.CUSTOM_ELEMENT_HANDLING&&"boolean"===typeof e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements&&(L.allowCustomizedBuiltInElements=e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),W&&($=!1),J&&(Q=!0),ae&&(I=wO({},[...AO]),F=[],!0===ae.html&&(wO(I,yO),wO(F,NO)),!0===ae.svg&&(wO(I,OO),wO(F,DO),wO(F,TO)),!0===ae.svgFilters&&(wO(I,jO),wO(F,DO),wO(F,TO)),!0===ae.mathMl&&(wO(I,_O),wO(F,EO),wO(F,TO))),e.ADD_TAGS&&(I===z&&(I=kO(I)),wO(I,e.ADD_TAGS,Ce)),e.ADD_ATTR&&(F===M&&(F=kO(F)),wO(F,e.ADD_ATTR,Ce)),e.ADD_URI_SAFE_ATTR&&wO(ce,e.ADD_URI_SAFE_ATTR,Ce),e.FORBID_CONTENTS&&(re===ie&&(re=kO(re)),wO(re,e.FORBID_CONTENTS,Ce)),oe&&(I["#text"]=!0),G&&wO(I,["html","head","body"]),I.table&&(wO(I,["tbody"]),delete P.tbody),e.TRUSTED_TYPES_POLICY){if("function"!==typeof e.TRUSTED_TYPES_POLICY.createHTML)throw gO('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if("function"!==typeof e.TRUSTED_TYPES_POLICY.createScriptURL)throw gO('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');w=e.TRUSTED_TYPES_POLICY,k=w.createHTML("")}else void 0===w&&(w=UO(h,n)),null!==w&&"string"===typeof k&&(k=w.createHTML(""));tO&&tO(e),ye=e}},_e=wO({},["mi","mo","mn","ms","mtext"]),Ve=wO({},["foreignobject","desc","title","annotation-xml"]),Ae=wO({},["title","style","font","a","script"]),Ne=wO({},OO);wO(Ne,jO),wO(Ne,xO);const De=wO({},_O);wO(De,VO);const Ee=function(e){let t=v(e);t&&t.tagName||(t={namespaceURI:pe,tagName:"template"});const o=cO(e.tagName),n=cO(t.tagName);return!!ge[e.namespaceURI]&&(e.namespaceURI===me?t.namespaceURI===he?"svg"===o:t.namespaceURI===ue?"svg"===o&&("annotation-xml"===n||_e[n]):Boolean(Ne[o]):e.namespaceURI===ue?t.namespaceURI===he?"math"===o:t.namespaceURI===me?"math"===o&&Ve[n]:Boolean(De[o]):e.namespaceURI===he?!(t.namespaceURI===me&&!Ve[n])&&(!(t.namespaceURI===ue&&!_e[n])&&(!De[o]&&(Ae[o]||!Ne[o]))):!("application/xhtml+xml"!==ve||!ge[e.namespaceURI]))},Te=function(e){sO(t.removed,{element:e});try{e.parentNode.removeChild(e)}catch(o){e.remove()}},Se=function(e,o){try{sO(t.removed,{attribute:o.getAttributeNode(e),from:o})}catch(n){sO(t.removed,{attribute:null,from:o})}if(o.removeAttribute(e),"is"===e&&!F[e])if(Q||J)try{Te(o)}catch(n){}else try{o.setAttribute(e,"")}catch(n){}},Be=function(e){let t,o;if(Y)e="<remove></remove>"+e;else{const t=uO(e,/^[\r\n\t ]+/);o=t&&t[0]}"application/xhtml+xml"===ve&&pe===he&&(e='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+e+"</body></html>");const n=w?w.createHTML(e):e;if(pe===he)try{t=(new m).parseFromString(n,ve)}catch(i){}if(!t||!t.documentElement){t=C.createDocument(pe,"template",null);try{t.documentElement.innerHTML=be?k:n}catch(i){}}const r=t.body||t.documentElement;return e&&o&&r.insertBefore(a.createTextNode(o),r.childNodes[0]||null),pe===he?j.call(t,G?"html":"body")[0]:G?t.documentElement:r},Ie=function(e){return y.call(e.ownerDocument||e,e,c.SHOW_ELEMENT|c.SHOW_COMMENT|c.SHOW_TEXT,null,!1)},ze=function(e){return e instanceof u&&("string"!==typeof e.nodeName||"string"!==typeof e.textContent||"function"!==typeof e.removeChild||!(e.attributes instanceof d)||"function"!==typeof e.removeAttribute||"function"!==typeof e.setAttribute||"string"!==typeof e.namespaceURI||"function"!==typeof e.insertBefore||"function"!==typeof e.hasChildNodes)},Fe=function(e){return"object"===typeof l?e instanceof l:e&&"object"===typeof e&&"number"===typeof e.nodeType&&"string"===typeof e.nodeName},Me=function(e,o,n){_[e]&&iO(_[e],e=>{e.call(t,o,n,ye)})},Le=function(e){let o;if(Me("beforeSanitizeElements",e,null),ze(e))return Te(e),!0;const n=Ce(e.nodeName);if(Me("uponSanitizeElement",e,{tagName:n,allowedTags:I}),e.hasChildNodes()&&!Fe(e.firstElementChild)&&(!Fe(e.content)||!Fe(e.content.firstElementChild))&&bO(/<[/\w]/g,e.innerHTML)&&bO(/<[/\w]/g,e.textContent))return Te(e),!0;if(!I[n]||P[n]){if(!P[n]&&Re(n)){if(L.tagNameCheck instanceof RegExp&&bO(L.tagNameCheck,n))return!1;if(L.tagNameCheck instanceof Function&&L.tagNameCheck(n))return!1}if(oe&&!re[n]){const t=v(e)||e.parentNode,o=f(e)||e.childNodes;if(o&&t){const n=o.length;for(let a=n-1;a>=0;--a)t.insertBefore(b(o[a],!0),g(e))}}return Te(e),!0}return e instanceof s&&!Ee(e)?(Te(e),!0):"noscript"!==n&&"noembed"!==n&&"noframes"!==n||!bO(/<\/no(script|embed|frames)/i,e.innerHTML)?(W&&3===e.nodeType&&(o=e.textContent,o=mO(o,V," "),o=mO(o,A," "),o=mO(o,N," "),e.textContent!==o&&(sO(t.removed,{element:e.cloneNode()}),e.textContent=o)),Me("afterSanitizeElements",e,null),!1):(Te(e),!0)},Pe=function(e,t,o){if(X&&("id"===t||"name"===t)&&(o in a||o in Oe))return!1;if($&&!R[t]&&bO(D,t));else if(q&&bO(E,t));else if(!F[t]||R[t]){if(!(Re(e)&&(L.tagNameCheck instanceof RegExp&&bO(L.tagNameCheck,e)||L.tagNameCheck instanceof Function&&L.tagNameCheck(e))&&(L.attributeNameCheck instanceof RegExp&&bO(L.attributeNameCheck,t)||L.attributeNameCheck instanceof Function&&L.attributeNameCheck(t))||"is"===t&&L.allowCustomizedBuiltInElements&&(L.tagNameCheck instanceof RegExp&&bO(L.tagNameCheck,o)||L.tagNameCheck instanceof Function&&L.tagNameCheck(o))))return!1}else if(ce[t]);else if(bO(B,mO(o,S,"")));else if("src"!==t&&"xlink:href"!==t&&"href"!==t||"script"===e||0!==hO(o,"data:")||!le[e]){if(U&&!bO(T,mO(o,S,"")));else if(o)return!1}else;return!0},Re=function(e){return e.indexOf("-")>0},qe=function(e){let t,o,n,a;Me("beforeSanitizeAttributes",e,null);const{attributes:r}=e;if(!r)return;const i={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:F};a=r.length;while(a--){t=r[a];const{name:s,namespaceURI:c}=t;o="value"===s?t.value:pO(t.value);const d=o;if(n=Ce(s),i.attrName=n,i.attrValue=o,i.keepAttr=!0,i.forceKeepAttr=void 0,Me("uponSanitizeAttribute",e,i),o=i.attrValue,i.forceKeepAttr)continue;if(!i.keepAttr){Se(s,e);continue}if(!H&&bO(/\/>/i,o)){Se(s,e);continue}W&&(o=mO(o,V," "),o=mO(o,A," "),o=mO(o,N," "));const u=Ce(e.nodeName);if(Pe(u,n,o)){if(!ee||"id"!==n&&"name"!==n||(Se(s,e),o=te+o),w&&"object"===typeof h&&"function"===typeof h.getAttributeType)if(c);else switch(h.getAttributeType(u,n)){case"TrustedHTML":o=w.createHTML(o);break;case"TrustedScriptURL":o=w.createScriptURL(o);break}if(o!==d)try{c?e.setAttributeNS(c,s,o):e.setAttribute(s,o)}catch(l){Se(s,e)}}else Se(s,e)}Me("afterSanitizeAttributes",e,null)},$e=function e(t){let o;const n=Ie(t);Me("beforeSanitizeShadowDOM",t,null);while(o=n.nextNode())Me("uponSanitizeShadowNode",o,null),Le(o)||(o.content instanceof r&&e(o.content),qe(o));Me("afterSanitizeShadowDOM",t,null)};return t.sanitize=function(e){let n,a,i,s,c=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(be=!e,be&&(e="\x3c!--\x3e"),"string"!==typeof e&&!Fe(e)){if("function"!==typeof e.toString)throw gO("toString is not a function");if(e=e.toString(),"string"!==typeof e)throw gO("dirty is not a string, aborting")}if(!t.isSupported)return e;if(K||xe(c),t.removed=[],"string"===typeof e&&(ne=!1),ne){if(e.nodeName){const t=Ce(e.nodeName);if(!I[t]||P[t])throw gO("root node is forbidden and cannot be sanitized in-place")}}else if(e instanceof l)n=Be("\x3c!----\x3e"),a=n.ownerDocument.importNode(e,!0),1===a.nodeType&&"BODY"===a.nodeName||"HTML"===a.nodeName?n=a:n.appendChild(a);else{if(!Q&&!W&&!G&&-1===e.indexOf("<"))return w&&Z?w.createHTML(e):e;if(n=Be(e),!n)return Q?null:Z?k:""}n&&Y&&Te(n.firstChild);const d=Ie(ne?e:n);while(i=d.nextNode())Le(i)||(i.content instanceof r&&$e(i.content),qe(i));if(ne)return e;if(Q){if(J){s=O.call(n.ownerDocument);while(n.firstChild)s.appendChild(n.firstChild)}else s=n;return(F.shadowroot||F.shadowrootmode)&&(s=x.call(o,s,!0)),s}let u=G?n.outerHTML:n.innerHTML;return G&&I["!doctype"]&&n.ownerDocument&&n.ownerDocument.doctype&&n.ownerDocument.doctype.name&&bO(RO,n.ownerDocument.doctype.name)&&(u="<!DOCTYPE "+n.ownerDocument.doctype.name+">\n"+u),W&&(u=mO(u,V," "),u=mO(u,A," "),u=mO(u,N," ")),w&&Z?w.createHTML(u):u},t.setConfig=function(e){xe(e),K=!0},t.clearConfig=function(){ye=null,K=!1},t.isValidAttribute=function(e,t,o){ye||xe({});const n=Ce(e),a=Ce(t);return Pe(n,a,o)},t.addHook=function(e,t){"function"===typeof t&&(_[e]=_[e]||[],sO(_[e],t))},t.removeHook=function(e){if(_[e])return lO(_[e])},t.removeHooks=function(e){_[e]&&(_[e]=[])},t.removeAllHooks=function(){_={}},t}var WO=HO();const GO=e=>WO().sanitize(e);var KO=tinymce.util.Tools.resolve("tinymce.util.I18n");const YO={indent:!0,outdent:!0,"table-insert-column-after":!0,"table-insert-column-before":!0,"paste-column-after":!0,"paste-column-before":!0,"unordered-list":!0,"list-bull-circle":!0,"list-bull-default":!0,"list-bull-square":!0},QO="temporary-placeholder",JO=e=>()=>Oe(e,QO).getOr("!not found!"),ZO=(e,t)=>{const o=e.toLowerCase();if(KO.isRtl()){const e=Me(o,"-rtl");return je(t,e)?e:o}return o},XO=(e,t)=>Oe(t,ZO(e,t)),ej=(e,t)=>{const o=t();return XO(e,o).getOrThunk(JO(o))},tj=(e,t,o)=>{const n=t();return XO(e,n).or(o).getOrThunk(JO(n))},oj=e=>!!KO.isRtl()&&je(YO,e),nj=()=>wC("add-focusable",[Zl(e=>{ud(e.element,"svg").each(e=>to(e,"focusable","false"))})]),aj=(e,t,o,n)=>{var a,r;const i=oj(t)?["tox-icon--flip"]:[],l=Oe(o,ZO(t,o)).or(n).getOrThunk(JO(o));return{dom:{tag:e.tag,attributes:null!==(a=e.attributes)&&void 0!==a?a:{},classes:e.classes.concat(i),innerHtml:l},behaviours:qu([...null!==(r=e.behaviours)&&void 0!==r?r:[],nj()])}},rj=(e,t,o,n=T.none())=>aj(t,e,o(),n),ij=(e,t,o)=>{const n=o(),a=Q(e,e=>je(n,ZO(e,n)));return aj(t,a.getOr(QO),n,T.none())},lj={success:"checkmark",error:"warning",err:"error",warning:"warning",warn:"warning",info:"info"},sj=e=>{const t=Yy({dom:Ky(`<p>${GO(e.translationProvider(e.text))}</p>`),behaviours:qu([fC.config({})])}),o=e=>({dom:{tag:"div",classes:["tox-bar"],styles:{width:e+"%"}}}),n=e=>({dom:{tag:"div",classes:["tox-text"],innerHtml:e+"%"}}),a=Yy({dom:{tag:"div",classes:e.progress?["tox-progress-bar","tox-progress-indicator"]:["tox-progress-bar"]},components:[{dom:{tag:"div",classes:["tox-bar-container"]},components:[o(0)]},n(0)],behaviours:qu([fC.config({})])}),r=(e,t)=>{e.getSystem().isConnected()&&a.getOpt(e).each(e=>{fC.set(e,[{dom:{tag:"div",classes:["tox-bar-container"]},components:[o(t)]},n(t)])})},i=(e,o)=>{if(e.getSystem().isConnected()){const n=t.get(e);fC.set(n,[Jc(o)])}},l={updateProgress:r,updateText:i},s=Z([e.icon.toArray(),e.level.toArray(),e.level.bind(e=>T.from(lj[e])).toArray()]),c=Yy(Hy.sketch({dom:{tag:"button",classes:["tox-notification__dismiss","tox-button","tox-button--naked","tox-button--icon"]},components:[rj("close",{tag:"span",classes:["tox-icon"],attributes:{"aria-label":e.translationProvider("Close")}},e.iconProvider)],action:t=>{e.onAction(t)}})),d=ij(s,{tag:"div",classes:["tox-notification__icon"]},e.iconProvider),u={dom:{tag:"div",classes:["tox-notification__body"]},components:[t.asSpec()],behaviours:qu([fC.config({})])},m=[d,u];return{uid:e.uid,dom:{tag:"div",attributes:{role:"alert"},classes:e.level.map(e=>["tox-notification","tox-notification--in","tox-notification--"+e]).getOr(["tox-notification","tox-notification--in"])},behaviours:qu([AC.config({}),wC("notification-events",[ql(Wi(),e=>{c.getOpt(e).each(AC.focus)})])]),components:m.concat(e.progress?[a.asSpec()]:[]).concat(e.closeButton?[c.asSpec()]:[]),apis:l}},cj=Ff({name:"Notification",factory:sj,configFields:[Kr("level"),Fr("progress"),Kr("icon"),Fr("onAction"),Fr("text"),Fr("iconProvider"),Fr("translationProvider"),si("closeButton",!0)],apis:{updateProgress:(e,t,o)=>{e.updateProgress(t,o)},updateText:(e,t,o)=>{e.updateText(t,o)}}});var dj,uj,mj=(e,t,o)=>{const n=t.backstage.shared,a=()=>{const t=oa(Ze.fromDom(e.getContentAreaContainer())),o=ia(),n=au(o.x,t.x,t.right),a=au(o.y,t.y,t.bottom),r=Math.max(t.right,o.right),i=Math.max(t.bottom,o.bottom);return T.some(ta(n,a,r-n,i-a))},r=(t,r)=>{const i=()=>{r(),qy.hide(s)},l=od(cj.sketch({text:t.text,level:M(["success","error","warning","warn","info"],t.type)?t.type:void 0,progress:!0===t.progressBar,icon:t.icon,closeButton:t.closeButton,onAction:i,iconProvider:n.providers.icons,translationProvider:n.providers.translate})),s=od(qy.sketch({dom:{tag:"div",classes:["tox-notifications-container"]},lazySink:n.getSink,fireDismissalEventInstead:{},...n.header.isPositionedAtTop()?{}:{fireRepositionEventInstead:{}}}));o.add(s),f(t.timeout)&&t.timeout>0&&$y.setEditorTimeout(e,()=>{i()},t.timeout);const c=()=>{const t=nd(l),o={maxHeightFunction:Xm()},r=e.notificationManager.getNotifications();if(r[0]===d){const e={...n.anchors.banner(),overrides:o};qy.showWithinBounds(s,t,{anchor:e},a)}else F(r,d).each(e=>{const n=r[e-1].getEl(),i={type:"node",root:Zt(),node:T.some(Ze.fromDom(n)),overrides:o,layouts:{onRtl:()=>[yu],onLtr:()=>[yu]}};qy.showWithinBounds(s,t,{anchor:i},a)})},d={close:i,reposition:c,text:e=>{cj.updateText(l,e)},settings:t,getEl:()=>l.element.dom,progressBar:{value:e=>{cj.updateProgress(l,e)}}};return d},i=e=>{e.close()},l=e=>e.settings;return{open:r,close:i,getArgs:l}},hj=tinymce.util.Tools.resolve("tinymce.dom.DOMUtils"),pj=tinymce.util.Tools.resolve("tinymce.EditorManager"),bj=tinymce.util.Tools.resolve("tinymce.Env");(function(e){e["default"]="wrap",e["floating"]="floating",e["sliding"]="sliding",e["scrolling"]="scrolling"})(dj||(dj={})),function(e){e["auto"]="auto",e["top"]="top",e["bottom"]="bottom"}(uj||(uj={}));const gj=e=>t=>t.options.get(e),fj=e=>t=>T.from(e(t)),vj=e=>{const t=bj.deviceType.isPhone(),o=bj.deviceType.isTablet()||t,n=e.options.register,a=e=>l(e)||!1===e,r=e=>l(e)||f(e);n("skin",{processor:e=>l(e)||!1===e,default:"oxide"}),n("skin_url",{processor:"string"}),n("height",{processor:r,default:Math.max(e.getElement().offsetHeight,400)}),n("width",{processor:r,default:hj.DOM.getStyle(e.getElement(),"width")}),n("min_height",{processor:"number",default:100}),n("min_width",{processor:"number"}),n("max_height",{processor:"number"}),n("max_width",{processor:"number"}),n("style_formats",{processor:"object[]"}),n("style_formats_merge",{processor:"boolean",default:!1}),n("style_formats_autohide",{processor:"boolean",default:!1}),n("line_height_formats",{processor:"string",default:"1 1.1 1.2 1.3 1.4 1.5 2"}),n("font_family_formats",{processor:"string",default:"Andale Mono=andale mono,monospace;Arial=arial,helvetica,sans-serif;Arial Black=arial black,sans-serif;Book Antiqua=book antiqua,palatino,serif;Comic Sans MS=comic sans ms,sans-serif;Courier New=courier new,courier,monospace;Georgia=georgia,palatino,serif;Helvetica=helvetica,arial,sans-serif;Impact=impact,sans-serif;Symbol=symbol;Tahoma=tahoma,arial,helvetica,sans-serif;Terminal=terminal,monaco,monospace;Times New Roman=times new roman,times,serif;Trebuchet MS=trebuchet ms,geneva,sans-serif;Verdana=verdana,geneva,sans-serif;Webdings=webdings;Wingdings=wingdings,zapf dingbats"}),n("font_size_formats",{processor:"string",default:"8pt 10pt 12pt 14pt 18pt 24pt 36pt"}),n("font_size_input_default_unit",{processor:"string",default:"pt"}),n("block_formats",{processor:"string",default:"Paragraph=p;Heading 1=h1;Heading 2=h2;Heading 3=h3;Heading 4=h4;Heading 5=h5;Heading 6=h6;Preformatted=pre"}),n("content_langs",{processor:"object[]"}),n("removed_menuitems",{processor:"string",default:""}),n("menubar",{processor:e=>l(e)||m(e),default:!t}),n("menu",{processor:"object",default:{}}),n("toolbar",{processor:e=>m(e)||l(e)||d(e)?{value:e,valid:!0}:{valid:!1,message:"Must be a boolean, string or array."},default:!0}),P(9,e=>{n("toolbar"+(e+1),{processor:"string"})}),n("toolbar_mode",{processor:"string",default:o?"scrolling":"floating"}),n("toolbar_groups",{processor:"object",default:{}}),n("toolbar_location",{processor:"string",default:uj.auto}),n("toolbar_persist",{processor:"boolean",default:!1}),n("toolbar_sticky",{processor:"boolean",default:e.inline}),n("toolbar_sticky_offset",{processor:"number",default:0}),n("fixed_toolbar_container",{processor:"string",default:""}),n("fixed_toolbar_container_target",{processor:"object"}),n("ui_mode",{processor:"string",default:"combined"}),n("file_picker_callback",{processor:"function"}),n("file_picker_validator_handler",{processor:"function"}),n("file_picker_types",{processor:"string"}),n("typeahead_urls",{processor:"boolean",default:!0}),n("anchor_top",{processor:a,default:"#top"}),n("anchor_bottom",{processor:a,default:"#bottom"}),n("draggable_modal",{processor:"boolean",default:!1}),n("statusbar",{processor:"boolean",default:!0}),n("elementpath",{processor:"boolean",default:!0}),n("branding",{processor:"boolean",default:!0}),n("promotion",{processor:"boolean",default:!0}),n("resize",{processor:e=>"both"===e||m(e),default:!bj.deviceType.isTouch()}),n("sidebar_show",{processor:"string"}),n("help_accessibility",{processor:"boolean",default:e.hasPlugin("help")}),n("default_font_stack",{processor:"string[]",default:[]})},wj=gj("readonly"),kj=gj("height"),Cj=gj("width"),yj=fj(gj("min_width")),Oj=fj(gj("min_height")),jj=fj(gj("max_width")),xj=fj(gj("max_height")),_j=fj(gj("style_formats")),Vj=gj("style_formats_merge"),Aj=gj("style_formats_autohide"),Nj=gj("content_langs"),Dj=gj("removed_menuitems"),Ej=gj("toolbar_mode"),Tj=gj("toolbar_groups"),Sj=gj("toolbar_location"),Bj=gj("fixed_toolbar_container"),Ij=gj("fixed_toolbar_container_target"),zj=gj("toolbar_persist"),Fj=gj("toolbar_sticky_offset"),Mj=gj("menubar"),Lj=gj("toolbar"),Pj=gj("file_picker_callback"),Rj=gj("file_picker_validator_handler"),qj=gj("font_size_input_default_unit"),$j=gj("file_picker_types"),Uj=gj("typeahead_urls"),Hj=gj("anchor_top"),Wj=gj("anchor_bottom"),Gj=gj("draggable_modal"),Kj=gj("statusbar"),Yj=gj("elementpath"),Qj=gj("branding"),Jj=gj("resize"),Zj=gj("paste_as_text"),Xj=gj("sidebar_show"),ex=gj("promotion"),tx=gj("help_accessibility"),ox=gj("default_font_stack"),nx=e=>!1===e.options.get("skin"),ax=e=>!1!==e.options.get("menubar"),rx=e=>{const t=e.options.get("skin_url");if(nx(e))return t;if(t)return e.documentBaseURI.toAbsolute(t);{const t=e.options.get("skin");return pj.baseURL+"/skins/ui/"+t}},ix=e=>T.from(e.options.get("skin_url")),lx=e=>e.options.get("line_height_formats").split(" "),sx=e=>{const t=Lj(e),o=l(t),n=d(t)&&t.length>0;return!dx(e)&&(n||o||!0===t)},cx=e=>{const t=P(9,t=>e.options.get("toolbar"+(t+1))),o=W(t,l);return Se(o.length>0,o)},dx=e=>cx(e).fold(()=>{const t=Lj(e);return v(t,l)&&t.length>0},E),ux=e=>Sj(e)===uj.bottom,mx=e=>{var t;if(!e.inline)return T.none();const o=null!==(t=Bj(e))&&void 0!==t?t:"";if(o.length>0)return md(Zt(),o);const n=Ij(e);return b(n)?T.some(Ze.fromDom(n)):T.none()},hx=e=>e.inline&&mx(e).isSome(),px=e=>{const t=mx(e);return t.getOrThunk(()=>Ht(Ut(Ze.fromDom(e.getElement()))))},bx=e=>e.inline&&!ax(e)&&!sx(e)&&!dx(e),gx=e=>{const t=e.options.get("toolbar_sticky");return(t||e.inline)&&!hx(e)&&!bx(e)},fx=e=>!hx(e)&&"split"===e.options.get("ui_mode"),vx=e=>{const t=e.options.get("menu");return pe(t,e=>({...e,items:e.items}))};var wx=Object.freeze({__proto__:null,get ToolbarMode(){return dj},get ToolbarLocation(){return uj},register:vj,getSkinUrl:rx,getSkinUrlOption:ix,isReadOnly:wj,isSkinDisabled:nx,getHeightOption:kj,getWidthOption:Cj,getMinWidthOption:yj,getMinHeightOption:Oj,getMaxWidthOption:jj,getMaxHeightOption:xj,getUserStyleFormats:_j,shouldMergeStyleFormats:Vj,shouldAutoHideStyleFormats:Aj,getLineHeightFormats:lx,getContentLanguages:Nj,getRemovedMenuItems:Dj,isMenubarEnabled:ax,isMultipleToolbars:dx,isToolbarEnabled:sx,isToolbarPersist:zj,getMultipleToolbarsOption:cx,getUiContainer:px,useFixedContainer:hx,isSplitUiMode:fx,getToolbarMode:Ej,isDraggableModal:Gj,isDistractionFree:bx,isStickyToolbar:gx,getStickyToolbarOffset:Fj,getToolbarLocation:Sj,isToolbarLocationBottom:ux,getToolbarGroups:Tj,getMenus:vx,getMenubar:Mj,getToolbar:Lj,getFilePickerCallback:Pj,getFilePickerTypes:$j,useTypeaheadUrls:Uj,getAnchorTop:Hj,getAnchorBottom:Wj,getFilePickerValidatorHandler:Rj,getFontSizeInputDefaultUnit:qj,useStatusBar:Kj,useElementPath:Yj,promotionEnabled:ex,useBranding:Qj,getResize:Jj,getPasteAsText:Zj,getSidebarShow:Xj,useHelpAccessibility:tx,getDefaultFontStack:ox});const kx="[data-mce-autocompleter]",Cx=e=>hd(e,kx),yx=e=>md(e,kx),Ox=(e,t)=>{const o=(e,t)=>{Tl(e,Ki(),{raw:t})},n=()=>e.getMenu().bind(Av.getHighlighted);t.on("keydown",t=>{const a=t.which;e.isActive()&&(e.isMenuOpen()?13===a?(n().each(Sl),t.preventDefault()):40===a?(n().fold(()=>{e.getMenu().each(Av.highlightFirst)},e=>{o(e,t)}),t.preventDefault(),t.stopImmediatePropagation()):37!==a&&38!==a&&39!==a||n().each(e=>{o(e,t),t.preventDefault(),t.stopImmediatePropagation()}):13!==a&&38!==a&&40!==a||e.cancelIfNecessary())}),t.on("NodeChange",t=>{e.isActive()&&!e.isProcessingAction()&&Cx(Ze.fromDom(t.element)).isNone()&&e.cancelIfNecessary()})},jx={setup:Ox};var xx;(function(e){e[e["CLOSE_ON_EXECUTE"]=0]="CLOSE_ON_EXECUTE",e[e["BUBBLE_TO_SANDBOX"]=1]="BUBBLE_TO_SANDBOX"})(xx||(xx={}));var _x=xx;const Vx="tox-menu-nav__js",Ax="tox-collection__item",Nx="tox-swatch",Dx={normal:Vx,color:Nx},Ex="tox-collection__item--enabled",Tx="tox-collection__group-heading",Sx="tox-collection__item-icon",Bx="tox-collection__item-label",Ix="tox-collection__item-accessory",zx="tox-collection__item-caret",Fx="tox-collection__item-checkmark",Mx="tox-collection__item--active",Lx="tox-collection__item-container",Px="tox-collection__item-container--column",Rx="tox-collection__item-container--row",qx="tox-collection__item-container--align-right",$x="tox-collection__item-container--align-left",Ux="tox-collection__item-container--valign-top",Hx="tox-collection__item-container--valign-middle",Wx="tox-collection__item-container--valign-bottom",Gx=e=>Oe(Dx,e).getOr(Vx),Kx=e=>"color"===e?"tox-swatches":"tox-menu",Yx=e=>({backgroundMenu:"tox-background-menu",selectedMenu:"tox-selected-menu",selectedItem:"tox-collection__item--active",hasIcons:"tox-menu--has-icons",menu:Kx(e),tieredMenu:"tox-tiered-menu"}),Qx=e=>{const t=Yx(e);return{backgroundMenu:t.backgroundMenu,selectedMenu:t.selectedMenu,menu:t.menu,selectedItem:t.selectedItem,item:Gx(e)}},Jx=(e,t,o)=>{const n=Yx(o);return{tag:"div",classes:Z([[n.menu,`tox-menu-${t}-column`],e?[n.hasIcons]:[]])}},Zx=[jy.parts.items({})],Xx=(e,t,o)=>{const n=Yx(o),a={tag:"div",classes:Z([[n.tieredMenu]])};return{dom:a,markers:Qx(o)}},e_=O([Kr("data"),ni("inputAttributes",{}),ni("inputStyles",{}),ni("tag","input"),ni("inputClasses",[]),Fd("onSetValue"),ni("styles",{}),ni("eventOrder",{}),xg("inputBehaviours",[jg,AC]),ni("selectOnFocus",!0)]),t_=e=>qu([AC.config({onFocus:e.selectOnFocus?e=>{const t=e.element,o=Nc(t);t.dom.setSelectionRange(0,o.length)}:w})]),o_=e=>({...t_(e),...Vg(e.inputBehaviours,[jg.config({store:{mode:"manual",...e.data.map(e=>({initialValue:e})).getOr({}),getValue:e=>Nc(e.element),setValue:(e,t)=>{const o=Nc(e.element);o!==t&&Dc(e.element,t)}},onSetValue:e.onSetValue})])}),n_=e=>({tag:e.tag,attributes:{type:"text",...e.inputAttributes},styles:e.inputStyles,classes:e.inputClasses}),a_=(e,t)=>({uid:e.uid,dom:n_(e),components:[],behaviours:o_(e),eventOrder:e.eventOrder}),r_=Ff({name:"Input",configFields:e_(),factory:a_}),i_=bs("refetch-trigger-event"),l_=bs("redirect-menu-item-interaction"),s_="tox-menu__searcher",c_=e=>md(e.element,"."+s_).bind(t=>e.getSystem().getByDom(t).toOptional()),d_=c_,u_=(e,t)=>{jg.setValue(e,t.fetchPattern),e.element.dom.selectionStart=t.selectionStart,e.element.dom.selectionEnd=t.selectionEnd},m_=e=>{const t=jg.getValue(e),o=e.element.dom.selectionStart,n=e.element.dom.selectionEnd;return{fetchPattern:t,selectionStart:o,selectionEnd:n}},h_=(e,t)=>{ao(t.element,"id").each(t=>to(e.element,"aria-activedescendant",t))},p_=e=>{const t=(e,t)=>(t.cut(),T.none()),o=(e,t)=>{const o={interactionEvent:t.event,eventType:t.event.raw.type};return Tl(e,l_,o),T.some(!0)},n="searcher-events";return{dom:{tag:"div",classes:[Ax]},components:[r_.sketch({inputClasses:[s_,"tox-textfield"],inputAttributes:{...e.placeholder.map(t=>({placeholder:e.i18n(t)})).getOr({}),type:"search","aria-autocomplete":"list"},inputBehaviours:qu([wC(n,[ql(Qi(),e=>{El(e,i_)}),ql(Ki(),(e,t)=>{"Escape"===t.event.raw.key&&t.stop()})]),nC.config({mode:"special",onLeft:t,onRight:t,onSpace:t,onEnter:o,onEscape:o,onUp:o,onDown:o})]),eventOrder:{keydown:[n,nC.name()]}})]}},b_="tox-collection--results__js",g_=e=>{var t;return e.dom?{...e,dom:{...e.dom,attributes:{...null!==(t=e.dom.attributes)&&void 0!==t?t:{},id:bs("aria-item-search-result-id"),"aria-selected":"false"}}}:e},f_=(e,t)=>o=>{const n=R(o,t);return q(n,t=>({dom:e,components:t}))},v_=e=>({dom:{tag:"div",classes:["tox-menu","tox-swatches-menu"]},components:[{dom:{tag:"div",classes:["tox-swatches"]},components:[jy.parts.items({preprocess:"auto"!==e?f_({tag:"div",classes:["tox-swatches__row"]},e):j})]}]}),w_=e=>({dom:{tag:"div",classes:["tox-menu","tox-collection","tox-collection--toolbar","tox-collection--toolbar-lg"]},components:[jy.parts.items({preprocess:f_({tag:"div",classes:["tox-collection__group"]},e)})]}),k_=(e,t)=>{const o=[];let n=[];return $(e,(e,a)=>{t(e,a)?(n.length>0&&o.push(n),n=[],(je(e.dom,"innerHtml")||e.components&&e.components.length>0)&&n.push(e)):n.push(e)}),n.length>0&&o.push(n),q(o,e=>({dom:{tag:"div",classes:["tox-collection__group"]},components:e}))},C_=(e,t,o)=>jy.parts.items({preprocess:n=>{const a=q(n,o);return"auto"!==e&&e>1?f_({tag:"div",classes:["tox-collection__group"]},e)(a):k_(a,(e,o)=>"separator"===t[o].type)}}),y_=(e,t,o=!0)=>({dom:{tag:"div",classes:["tox-menu","tox-collection"].concat(1===e?["tox-collection--list"]:["tox-collection--grid"])},components:[C_(e,t,j)]}),O_=(e,t,o=!0)=>{const n=bs("aria-controls-search-results");return{dom:{tag:"div",classes:["tox-menu","tox-collection",b_].concat(1===e?["tox-collection--list"]:["tox-collection--grid"]),attributes:{id:n}},components:[C_(e,t,g_)]}},j_=(e,t,o)=>{const n=bs("aria-controls-search-results");return{dom:{tag:"div",classes:["tox-menu","tox-collection"].concat(1===e?["tox-collection--list"]:["tox-collection--grid"])},components:[p_({i18n:KO.translate,placeholder:o.placeholder}),{dom:{tag:"div",classes:[...1===e?["tox-collection--list"]:["tox-collection--grid"],b_],attributes:{id:n}},components:[C_(e,t,g_)]}]}},x_=(e,t=!0)=>({dom:{tag:"div",classes:["tox-collection","tox-collection--horizontal"]},components:[jy.parts.items({preprocess:t=>k_(t,(t,o)=>"separator"===e[o].type)})]}),__=e=>L(e,e=>"icon"in e&&void 0!==e.icon),V_=e=>(console.error(Er(e)),console.log(e),T.none()),A_=(e,t,o,n,a)=>{const r=x_(o);return{value:e,dom:r.dom,components:r.components,items:o}},N_=(e,t,o,n,a)=>{const r=()=>"searchable"!==a.menuType?y_(n,o):"search-with-field"===a.searchMode.searchMode?j_(n,o,a.searchMode):O_(n,o);if("color"===a.menuType){const t=v_(n);return{value:e,dom:t.dom,components:t.components,items:o}}if("normal"===a.menuType&&"auto"===n){const t=y_(n,o);return{value:e,dom:t.dom,components:t.components,items:o}}if("normal"===a.menuType||"searchable"===a.menuType){const t=r();return{value:e,dom:t.dom,components:t.components,items:o}}if("listpreview"===a.menuType&&"auto"!==n){const t=w_(n);return{value:e,dom:t.dom,components:t.components,items:o}}return{value:e,dom:Jx(t,n,a.menuType),components:Zx,items:o}},D_=Pr("type"),E_=Pr("name"),T_=Pr("label"),S_=Pr("text"),B_=Pr("title"),I_=Pr("icon"),z_=Pr("value"),F_=$r("fetch"),M_=$r("getSubmenuItems"),L_=$r("onAction"),P_=$r("onItemAction"),R_=ci("onSetup",()=>w),q_=Jr("name"),$_=Jr("text"),U_=Jr("icon"),H_=Jr("tooltip"),W_=Jr("label"),G_=Jr("shortcut"),K_=Xr("select"),Y_=si("active",!1),Q_=si("borderless",!1),J_=si("enabled",!0),Z_=si("primary",!1),X_=e=>ni("columns",e),eV=ni("meta",{}),tV=ci("onAction",w),oV=e=>ii("type",e),nV=e=>Br("name","name",Sa(()=>bs(e+"-name")),fr),aV=e=>Br("value","value",Sa(()=>bs(e+"-value")),pr()),rV=sr([D_,$_]),iV=e=>Ar("separatormenuitem",rV,e),lV=sr([oV("autocompleteitem"),Y_,J_,eV,z_,$_,U_]),sV=e=>Ar("Autocompleter.Separator",rV,e),cV=e=>Ar("Autocompleter.Item",lV,e),dV=[J_,H_,U_,$_,R_],uV=sr([D_,L_].concat(dV)),mV=e=>Ar("toolbarbutton",uV,e),hV=[Y_].concat(dV),pV=sr(hV.concat([D_,L_])),bV=e=>Ar("ToggleButton",pV,e),gV=[ci("predicate",D),li("scope","node",["node","editor"]),li("position","selection",["node","selection","line"])],fV=dV.concat([oV("contextformbutton"),Z_,L_,Ir("original",j)]),vV=hV.concat([oV("contextformbutton"),Z_,L_,Ir("original",j)]),wV=dV.concat([oV("contextformbutton")]),kV=hV.concat([oV("contextformtogglebutton")]),CV=Tr("type",{contextformbutton:fV,contextformtogglebutton:vV}),yV=sr([oV("contextform"),ci("initValue",O("")),W_,Gr("commands",CV),Yr("launch",Tr("type",{contextformbutton:wV,contextformtogglebutton:kV}))].concat(gV)),OV=e=>Ar("ContextForm",yV,e),jV=sr([oV("contexttoolbar"),Pr("items")].concat(gV)),xV=e=>Ar("ContextToolbar",jV,e),_V=[D_,Pr("src"),Jr("alt"),ui("classes",[],fr)],VV=sr(_V),AV=[D_,S_,q_,ui("classes",["tox-collection__item-label"],fr)],NV=sr(AV),DV=rr(()=>Or("type",{cardimage:VV,cardtext:NV,cardcontainer:EV})),EV=sr([D_,ii("direction","horizontal"),ii("align","left"),ii("valign","middle"),Gr("items",DV)]),TV=[J_,$_,G_,aV("menuitem"),eV],SV=sr([D_,W_,Gr("items",DV),R_,tV].concat(TV)),BV=e=>Ar("cardmenuitem",SV,e),IV=sr([D_,Y_,U_].concat(TV)),zV=e=>Ar("choicemenuitem",IV,e),FV=[D_,Pr("fancytype"),tV],MV=[ni("initData",{})].concat(FV),LV=[Xr("select"),mi("initData",{},[si("allowCustomColors",!0),ii("storageKey","default"),ei("colors",pr())])].concat(FV),PV=Tr("fancytype",{inserttable:MV,colorswatch:LV}),RV=e=>Ar("fancymenuitem",PV,e),qV=sr([D_,R_,tV,U_].concat(TV)),$V=e=>Ar("menuitem",qV,e),UV=sr([D_,M_,R_,U_].concat(TV)),HV=e=>Ar("nestedmenuitem",UV,e),WV=sr([D_,U_,Y_,R_,L_].concat(TV)),GV=e=>Ar("togglemenuitem",WV,e),KV=(e,t,o)=>{const n=mp(e.element,"."+o);if(n.length>0){const e=J(n,e=>{const o=e.dom.getBoundingClientRect().top,a=n[0].dom.getBoundingClientRect().top;return Math.abs(o-a)>t}).getOr(n.length);return T.some({numColumns:e,numRows:Math.ceil(n.length/e)})}return T.none()},YV=(e,t)=>qu([wC(e,t)]),QV=e=>YV(bs("unnamed-events"),e),JV={namedEvents:YV,unnamedEvents:QV},ZV=bs("tooltip.exclusive"),XV=bs("tooltip.show"),eA=bs("tooltip.hide"),tA=(e,t,o)=>{e.getSystem().broadcastOn([ZV],{})},oA=(e,t,o,n)=>{o.getTooltip().each(e=>{e.getSystem().isConnected()&&fC.set(e,n)})};var nA=Object.freeze({__proto__:null,hideAllExclusive:tA,setComponents:oA});const aA=(e,t)=>{const o=o=>{t.getTooltip().each(n=>{fb(n),e.onHide(o,n),t.clearTooltip()}),t.clearTimer()},n=o=>{if(!t.isShowing()){tA(o);const n=e.lazySink(o).getOrDie(),a=o.getSystem().build({dom:e.tooltipDom,components:e.tooltipComponents,events:Ml("normal"===e.mode?[ql(Hi(),e=>{El(o,XV)}),ql($i(),e=>{El(o,eA)})]:[]),behaviours:qu([fC.config({})])});t.setTooltip(a),pb(n,a),e.onShow(o,a),ab.position(n,a,{anchor:e.anchor(o)})}};return Ml(Z([[ql(XV,o=>{t.resetTimer(()=>{n(o)},e.delay)}),ql(eA,n=>{t.resetTimer(()=>{o(n)},e.delay)}),ql(sl(),(e,t)=>{const n=t;n.universal||M(n.channels,ZV)&&o(e)}),Xl(e=>{o(e)})],"normal"===e.mode?[ql(Wi(),e=>{El(e,XV)}),ql(il(),e=>{El(e,eA)}),ql(Hi(),e=>{El(e,XV)}),ql($i(),e=>{El(e,eA)})]:[ql(Nl(),(e,t)=>{El(e,XV)}),ql(Dl(),e=>{El(e,eA)})]]))};var rA=Object.freeze({__proto__:null,events:aA}),iA=[Fr("lazySink"),Fr("tooltipDom"),ni("exclusive",!0),ni("tooltipComponents",[]),ni("delay",300),li("mode","normal",["normal","follow-highlight"]),ni("anchor",e=>({type:"hotspot",hotspot:e,layouts:{onLtr:O([yu,Cu,fu,wu,vu,ku]),onRtl:O([yu,Cu,fu,wu,vu,ku])}})),Fd("onHide"),Fd("onShow")];const lA=()=>{const e=Dm(),t=Dm(),o=()=>{e.on(clearTimeout)},n=(t,n)=>{o(),e.set(setTimeout(t,n))},a=O("not-implemented");return Fs({getTooltip:t.get,isShowing:t.isSet,setTooltip:t.set,clearTooltip:t.clear,clearTimer:o,resetTimer:n,readState:a})};var sA=Object.freeze({__proto__:null,init:lA});const cA=Uu({fields:iA,name:"tooltipping",active:rA,state:sA,apis:nA}),dA=e=>e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),uA="silver.readonly",mA=sr([qr("readonly")]),hA=(e,t)=>{const o=e.mainUi.outerContainer,n=o.element,a=[e.mainUi.mothership,...e.uiMotherships];t&&$(a,e=>{e.broadcastOn([$b()],{target:n})}),$(a,e=>{e.broadcastOn([uA],{readonly:t})})},pA=(e,t)=>{e.on("init",()=>{e.mode.isReadOnly()&&hA(t,!0)}),e.on("SwitchMode",()=>hA(t,e.mode.isReadOnly())),wj(e)&&e.mode.set("readonly")},bA=()=>Ku.config({channels:{[uA]:{schema:mA,onReceive:(e,t)=>{sv.set(e,t.readonly)}}}}),gA=e=>sv.config({disabled:e,disableClass:"tox-collection__item--state-disabled"}),fA=e=>sv.config({disabled:e}),vA=e=>sv.config({disabled:e,disableClass:"tox-tbtn--disabled"}),wA=e=>sv.config({disabled:e,disableClass:"tox-tbtn--disabled",useNative:!1}),kA={item:gA,button:fA,splitButton:vA,toolbarButton:wA},CA=(e,t)=>{const o=e.getApi(t);return e=>{e(o)}},yA=(e,t)=>Zl(o=>{const n=CA(e,o);n(o=>{const n=e.onSetup(o);g(n)&&t.set(n)})}),OA=(e,t)=>Xl(o=>CA(e,o)(t.get())),jA=(e,t)=>ts((o,n)=>{CA(e,o)(e.onAction),e.triggersSubmenu||t!==_x.CLOSE_ON_EXECUTE||(o.getSystem().isConnected()&&El(o,hl()),n.stop())}),xA={[cl()]:["disabling","alloy.base.behaviour","toggling","item-events"]},_A=Ae,VA=(e,t,o,n)=>{const a=hi(w);return{type:"item",dom:t.dom,components:_A(t.optComponents),data:e.data,eventOrder:xA,hasSubmenu:e.triggersSubmenu,itemBehaviours:qu([wC("item-events",[jA(e,o),yA(e,a),OA(e,a)]),kA.item(()=>!e.enabled||n.isDisabled()),bA(),fC.config({})].concat(e.itemBehaviours))}},AA=e=>({value:e.value,meta:{text:e.text.getOr(""),...e.meta}}),NA=e=>{const t=bj.os.isMacOS()||bj.os.isiOS(),o={alt:"⌥",ctrl:"⌃",shift:"⇧",meta:"⌘",access:"⌃⌥"},n={meta:"Ctrl",access:"Shift+Alt"},a=t?o:n,r=e.split("+"),i=q(r,e=>{const t=e.toLowerCase().trim();return je(a,t)?a[t]:e});return t?i.join(""):i.join("+")},DA=(e,t,o=[Sx])=>rj(e,{tag:"div",classes:o},t),EA=e=>({dom:{tag:"div",classes:[Bx]},components:[Jc(KO.translate(e))]}),TA=(e,t)=>({dom:{tag:"div",classes:t,innerHtml:e}}),SA=(e,t)=>({dom:{tag:"div",classes:[Bx]},components:[{dom:{tag:e.tag,styles:e.styles},components:[Jc(KO.translate(t))]}]}),BA=e=>({dom:{tag:"div",classes:[Ix]},components:[Jc(NA(e))]}),IA=e=>DA("checkmark",e,[Fx]),zA=e=>DA("chevron-right",e,[zx]),FA=e=>DA("chevron-down",e,[zx]),MA=(e,t)=>{const o="vertical"===e.direction?Px:Rx,n="left"===e.align?$x:qx,a=()=>{switch(e.valign){case"top":return Ux;case"middle":return Hx;case"bottom":return Wx}};return{dom:{tag:"div",classes:[Lx,o,n,a()]},components:t}},LA=(e,t,o)=>({dom:{tag:"img",classes:t,attributes:{src:e,alt:o.getOr("")}}}),PA=(e,t,o)=>{const n="custom",a="remove",r=e.ariaLabel,i=e.value,l=e.iconContent.map(e=>tj(e,t.icons,o)),s=()=>{const e=Nx,o=l.getOr(""),s=r.map(e=>({title:t.translate(e)})).getOr({}),c={tag:"div",attributes:s,classes:[e]};return i===n?{...c,tag:"button",classes:[...c.classes,"tox-swatches__picker-btn"],innerHtml:o}:i===a?{...c,classes:[...c.classes,"tox-swatch--remove"],innerHtml:o}:b(i)?{...c,attributes:{...c.attributes,"data-mce-color":i},styles:{"background-color":i},innerHtml:o}:c};return{dom:s(),optComponents:[]}},RA=e=>{const t=e.map(e=>({attributes:{title:KO.translate(e),id:bs("menu-item")}})).getOr({});return{tag:"div",classes:[Vx,Ax],...t}},qA=(e,t,o,n)=>{const a={tag:"div",classes:[Sx]},r=e=>rj(e,a,t.icons,n),i=()=>T.some({dom:a}),l=o?e.iconContent.map(r).orThunk(i):T.none(),s=e.checkMark,c=T.from(e.meta).fold(()=>EA,e=>je(e,"style")?_(SA,e.style):EA),d=e.htmlContent.fold(()=>e.textContent.map(c),e=>T.some(TA(e,[Bx]))),u={dom:RA(e.ariaLabel),optComponents:[l,d,e.shortcutContent.map(BA),s,e.caret]};return u},$A=(e,t,o,n=T.none())=>"color"===e.presets?PA(e,t,n):qA(e,t,o,n),UA=(e,t)=>Oe(e,"tooltipWorker").map(e=>[cA.config({lazySink:t.getSink,tooltipDom:{tag:"div",classes:["tox-tooltip-worker-container"]},tooltipComponents:[],anchor:e=>({type:"submenu",item:e,overrides:{maxHeightFunction:Xm}}),mode:"follow-highlight",onShow:(t,o)=>{e(e=>{cA.setComponents(t,[Zc({element:Ze.fromDom(e)})])})}})]).getOr([]),HA=e=>hj.DOM.encode(e),WA=(e,t)=>{const o=KO.translate(e),n=HA(o);if(t.length>0){const e=new RegExp(dA(t),"gi");return n.replace(e,e=>`<span class="tox-autocompleter-highlight">${e}</span>`)}return n},GA=(e,t,o,n,a,r,i,l=!0)=>{const s=$A({presets:n,textContent:T.none(),htmlContent:o?e.text.map(e=>WA(e,t)):T.none(),ariaLabel:e.text,iconContent:e.icon,shortcutContent:T.none(),checkMark:T.none(),caret:T.none(),value:e.value},i.providers,l,e.icon);return VA({data:AA(e),enabled:e.enabled,getApi:O({}),onAction:t=>a(e.value,e.meta),onSetup:O(w),triggersSubmenu:!1,itemBehaviours:UA(e.meta,i)},s,r,i.providers)},KA=(e,t)=>q(e,e=>{switch(e.type){case"cardcontainer":return MA(e,KA(e.items,t));case"cardimage":return LA(e.src,e.classes,e.alt);case"cardtext":const o=e.name.exists(e=>M(t.cardText.highlightOn,e)),n=o?T.from(t.cardText.matchText).getOr(""):"";return TA(WA(e.text,n),e.classes)}}),YA=(e,t,o,n)=>{const a=e=>({isEnabled:()=>!sv.isDisabled(e),setEnabled:t=>{sv.set(e,!t),$(mp(e.element,"*"),o=>{e.getSystem().getByDom(o).each(e=>{e.hasConfigured(sv)&&sv.set(e,!t)})})}}),r={dom:RA(e.label),optComponents:[T.some({dom:{tag:"div",classes:[Lx,Rx]},components:KA(e.items,n)})]};return VA({data:AA({text:T.none(),...e}),enabled:e.enabled,getApi:a,onAction:e.onAction,onSetup:e.onSetup,triggersSubmenu:!1,itemBehaviours:T.from(n.itemBehaviours).getOr([])},r,t,o.providers)},QA=(e,t,o,n,a,r,i,l=!0)=>{const s=e=>({setActive:t=>{GC.set(e,t)},isActive:()=>GC.isOn(e),isEnabled:()=>!sv.isDisabled(e),setEnabled:t=>sv.set(e,!t)}),c=$A({presets:o,textContent:t?e.text:T.none(),htmlContent:T.none(),ariaLabel:e.text,iconContent:e.icon,shortcutContent:t?e.shortcut:T.none(),checkMark:t?T.some(IA(i.icons)):T.none(),caret:T.none(),value:e.value},i,l);return Da(VA({data:AA(e),enabled:e.enabled,getApi:s,onAction:t=>n(e.value),onSetup:e=>(e.setActive(a),w),triggersSubmenu:!1,itemBehaviours:[]},c,r,i),{toggling:{toggleClass:Ex,toggleOnExecute:!1,selected:e.active,exclusive:!0}})},JA=mf(uy(),my()),ZA=e=>({value:oN(e)}),XA=/^#?([a-f\d])([a-f\d])([a-f\d])$/i,eN=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i,tN=e=>XA.test(e)||eN.test(e),oN=e=>Fe(e,"#").toUpperCase(),nN=e=>tN(e)?T.some({value:oN(e)}):T.none(),aN=e=>{const t=e.value.replace(XA,(e,t,o,n)=>t+t+o+o+n+n);return{value:t}},rN=e=>{const t=aN(e),o=eN.exec(t.value);return null===o?["FFFFFF","FF","FF","FF"]:o},iN=e=>{const t=e.toString(16);return(1===t.length?"0"+t:t).toUpperCase()},lN=e=>{const t=iN(e.red)+iN(e.green)+iN(e.blue);return ZA(t)},sN=Math.min,cN=Math.max,dN=Math.round,uN=/^\s*rgb\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*\)\s*$/i,mN=/^\s*rgba\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d?(?:\.\d+)?)\s*\)\s*$/i,hN=(e,t,o,n)=>({red:e,green:t,blue:o,alpha:n}),pN=e=>{const t=parseInt(e,10);return t.toString()===e&&t>=0&&t<=255},bN=e=>{let t,o,n;const a=(e.hue||0)%360;let r=e.saturation/100,i=e.value/100;if(r=cN(0,sN(r,1)),i=cN(0,sN(i,1)),0===r)return t=o=n=dN(255*i),hN(t,o,n,1);const l=a/60,s=i*r,c=s*(1-Math.abs(l%2-1)),d=i-s;switch(Math.floor(l)){case 0:t=s,o=c,n=0;break;case 1:t=c,o=s,n=0;break;case 2:t=0,o=s,n=c;break;case 3:t=0,o=c,n=s;break;case 4:t=c,o=0,n=s;break;case 5:t=s,o=0,n=c;break;default:t=o=n=0}return t=dN(255*(t+d)),o=dN(255*(o+d)),n=dN(255*(n+d)),hN(t,o,n,1)},gN=e=>{const t=rN(e),o=parseInt(t[1],16),n=parseInt(t[2],16),a=parseInt(t[3],16);return hN(o,n,a,1)},fN=(e,t,o,n)=>{const a=parseInt(e,10),r=parseInt(t,10),i=parseInt(o,10),l=parseFloat(n);return hN(a,r,i,l)},vN=e=>{if("transparent"===e)return T.some(hN(0,0,0,0));const t=uN.exec(e);if(null!==t)return T.some(fN(t[1],t[2],t[3],"1"));const o=mN.exec(e);return null!==o?T.some(fN(o[1],o[2],o[3],o[4])):T.none()},wN=e=>`rgba(${e.red},${e.green},${e.blue},${e.alpha})`,kN=hN(255,0,0,1),CN=e=>{e.dispatch("SkinLoaded")},yN=(e,t)=>{e.dispatch("SkinLoadError",t)},ON=e=>{e.dispatch("ResizeEditor")},jN=(e,t)=>{e.dispatch("ResizeContent",t)},xN=(e,t)=>{e.dispatch("ScrollContent",t)},_N=(e,t)=>{e.dispatch("TextColorChange",t)},VN=(e,t)=>{e.dispatch("AfterProgressState",{state:t})},AN=(e,t)=>e.dispatch("ResolveName",{name:t.nodeName.toLowerCase(),target:t}),NN=(e,t)=>{e.dispatch("ToggleToolbarDrawer",{state:t})},DN=(e,t)=>{e.dispatch("StylesTextUpdate",t)},EN=(e,t)=>{e.dispatch("AlignTextUpdate",t)},TN=(e,t)=>{e.dispatch("FontSizeTextUpdate",t)},SN=(e,t)=>{e.dispatch("FontSizeInputTextUpdate",t)},BN=(e,t)=>{e.dispatch("BlocksTextUpdate",t)},IN=(e,t)=>{e.dispatch("FontFamilyTextUpdate",t)},zN=(e,t)=>()=>{e(),t()},FN=e=>PN(e,"NodeChange",t=>{t.setEnabled(e.selection.isEditable())}),MN=(e,t)=>o=>{const n=Nm(),a=()=>{o.setActive(e.formatter.match(t));const a=e.formatter.formatChanged(t,o.setActive);n.set(a)};return e.initialized?a():e.once("init",a),()=>{e.off("init",a),n.clear()}},LN=(e,t)=>o=>{const n=FN(e)(o),a=MN(e,t)(o);return()=>{n(),a()}},PN=(e,t,o)=>n=>{const a=()=>o(n),r=()=>{o(n),e.on(t,a)};return e.initialized?r():e.once("init",r),()=>{e.off("init",r),e.off(t,a)}},RN=e=>t=>()=>{e.undoManager.transact(()=>{e.focus(),e.execCommand("mceToggleFormat",!1,t.format)})},qN=(e,t)=>()=>e.execCommand(t);var $N=tinymce.util.Tools.resolve("tinymce.util.LocalStorage");const UN={},HN=(e,t=10)=>{const o=$N.getItem(e),n=l(o)?JSON.parse(o):[],a=e=>{const o=t-e.length;return o<0?e.slice(0,t):e},r=a(n),i=o=>{F(r,o).each(s),r.unshift(o),r.length>t&&r.pop(),$N.setItem(e,JSON.stringify(r))},s=e=>{r.splice(e,1)},c=()=>r.slice(0);return{add:i,state:c}},WN=e=>Oe(UN,e).getOrThunk(()=>{const t="tinymce-custom-colors-"+e,o=$N.getItem(t);if(p(o)){const e=$N.getItem("tinymce-custom-colors");$N.setItem(t,b(e)?e:"[]")}const n=HN(t,10);return UN[e]=n,n}),GN=e=>q(WN(e).state(),e=>({type:"choiceitem",text:e,icon:"checkmark",value:e})),KN=(e,t)=>{WN(e).add(t)},YN=(e,t,o)=>({hue:e,saturation:t,value:o}),QN=e=>{let t=0,o=0,n=0;const a=e.red/255,r=e.green/255,i=e.blue/255,l=Math.min(a,Math.min(r,i)),s=Math.max(a,Math.max(r,i));if(l===s)return n=l,YN(0,0,100*n);const c=a===l?r-i:i===l?a-r:i-a;return t=a===l?3:i===l?1:5,t=60*(t-c/(s-l)),o=(s-l)/s,n=s,YN(Math.round(t),Math.round(100*o),Math.round(100*n))},JN=e=>QN(gN(e)),ZN=e=>lN(bN(e)),XN=e=>nN(e).orThunk(()=>vN(e).map(lN)).getOrThunk(()=>{const t=document.createElement("canvas");t.height=1,t.width=1;const o=t.getContext("2d");o.clearRect(0,0,t.width,t.height),o.fillStyle="#FFFFFF",o.fillStyle=e,o.fillRect(0,0,1,1);const n=o.getImageData(0,0,1,1).data,a=n[0],r=n[1],i=n[2],l=n[3];return lN(hN(a,r,i,l))}),eD="forecolor",tD="hilitecolor",oD=5,nD=e=>{const t=[];for(let o=0;o<e.length;o+=2)t.push({text:e[o+1],value:"#"+XN(e[o]).value,icon:"checkmark",type:"choiceitem"});return t},aD=e=>t=>t.options.get(e),rD="#000000",iD=e=>{const t=e.options.register,o=e=>v(e,l)?{value:nD(e),valid:!0}:{valid:!1,message:"Must be an array of strings."},n=e=>f(e)&&e>0?{value:e,valid:!0}:{valid:!1,message:"Must be a positive number."};t("color_map",{processor:o,default:["#BFEDD2","Light Green","#FBEEB8","Light Yellow","#F8CAC6","Light Red","#ECCAFA","Light Purple","#C2E0F4","Light Blue","#2DC26B","Green","#F1C40F","Yellow","#E03E2D","Red","#B96AD9","Purple","#3598DB","Blue","#169179","Dark Turquoise","#E67E23","Orange","#BA372A","Dark Red","#843FA1","Dark Purple","#236FA1","Dark Blue","#ECF0F1","Light Gray","#CED4D9","Medium Gray","#95A5A6","Gray","#7E8C8D","Dark Gray","#34495E","Navy Blue","#000000","Black","#ffffff","White"]}),t("color_map_background",{processor:o}),t("color_map_foreground",{processor:o}),t("color_cols",{processor:n,default:sD(e)}),t("color_cols_foreground",{processor:n,default:cD(e,eD)}),t("color_cols_background",{processor:n,default:cD(e,tD)}),t("custom_colors",{processor:"boolean",default:!0}),t("color_default_foreground",{processor:"string",default:rD}),t("color_default_background",{processor:"string",default:rD})},lD=(e,t)=>t===eD&&e.options.isSet("color_map_foreground")?aD("color_map_foreground")(e):t===tD&&e.options.isSet("color_map_background")?aD("color_map_background")(e):aD("color_map")(e),sD=(e,t="default")=>Math.max(oD,Math.ceil(Math.sqrt(lD(e,t).length))),cD=(e,t)=>{const o=aD("color_cols")(e),n=sD(e,t);return o===sD(e)?n:o},dD=(e,t="default")=>{const o=()=>t===eD?aD("color_cols_foreground")(e):t===tD?aD("color_cols_background")(e):aD("color_cols")(e);return Math.round(o())},uD=aD("custom_colors"),mD=aD("color_default_foreground"),hD=aD("color_default_background"),pD="rgba(0, 0, 0, 0)",bD=e=>vN(e).exists(e=>0!==e.alpha),gD=e=>Ai(e,e=>{if(bt(e)){const t=po(e,"background-color");return Se(bD(t),t)}return T.none()}).getOr(pD),fD=(e,t)=>{const o=Ze.fromDom(e.selection.getStart()),n="hilitecolor"===t?gD(o):po(o,"color");return vN(n).map(e=>"#"+lN(e).value)},vD=(e,t,o)=>{e.undoManager.transact(()=>{e.focus(),e.formatter.apply(t,{value:o}),e.nodeChanged()})},wD=(e,t)=>{e.undoManager.transact(()=>{e.focus(),e.formatter.remove(t,{value:null},void 0,!0),e.nodeChanged()})},kD=e=>{e.addCommand("mceApplyTextcolor",(t,o)=>{vD(e,t,o)}),e.addCommand("mceRemoveTextcolor",t=>{wD(e,t)})},CD=e=>{const t="choiceitem",o={type:t,text:"Remove color",icon:"color-swatch-remove-color",value:"remove"},n={type:t,text:"Custom color",icon:"color-picker",value:"custom"};return e?[o,n]:[o]},yD=(e,t,o,n)=>{if("custom"===o){const o=ED(e);o(o=>{o.each(o=>{KN(t,o),e.execCommand("mceApplyTextcolor",t,o),n(o)})},fD(e,t).getOr(rD))}else"remove"===o?(n(""),e.execCommand("mceRemoveTextcolor",t)):(n(o),e.execCommand("mceApplyTextcolor",t,o))},OD=(e,t,o)=>e.concat(GN(t).concat(CD(o))),jD=(e,t,o)=>n=>{n(OD(e,t,o))},xD=(e,t,o)=>{const n="forecolor"===t?"tox-icon-text-color__color":"tox-icon-highlight-bg-color__color";e.setIconFill(n,o)},_D=(e,t)=>{e.setTooltip(t)},VD=(e,t)=>o=>{const n=fD(e,t);return _e(n,o.toUpperCase())},AD=(e,t,o)=>{if(He(o))return"forecolor"===t?"Text color":"Background color";const n="forecolor"===t?"Text color {0}":"Background color {0}",a=OD(lD(e,t),t,!1),r=Q(a,e=>e.value===o).getOr({text:""}).text;return e.translate([n,e.translate(r)])},ND=(e,t,o,n)=>{e.ui.registry.addSplitButton(t,{tooltip:AD(e,o,n.get()),presets:"color",icon:"forecolor"===t?"text-color":"highlight-bg-color",select:VD(e,o),columns:dD(e,o),fetch:jD(lD(e,o),o,uD(e)),onAction:t=>{yD(e,o,n.get(),w)},onItemAction:(a,r)=>{yD(e,o,r,o=>{n.set(o),_N(e,{name:t,color:o})})},onSetup:a=>{xD(a,t,n.get());const r=n=>{n.name===t&&(xD(a,n.name,n.color),_D(a,AD(e,o,n.color)))};return e.on("TextColorChange",r),zN(FN(e)(a),()=>{e.off("TextColorChange",r)})}})},DD=(e,t,o,n,a)=>{e.ui.registry.addNestedMenuItem(t,{text:n,icon:"forecolor"===t?"text-color":"highlight-bg-color",onSetup:n=>(_D(n,AD(e,o,a.get())),xD(n,t,a.get()),FN(e)(n)),getSubmenuItems:()=>[{type:"fancymenuitem",fancytype:"colorswatch",select:VD(e,o),initData:{storageKey:o},onAction:n=>{yD(e,o,n.value,o=>{a.set(o),_N(e,{name:t,color:o})})}}]})},ED=e=>(t,o)=>{let n=!1;const a=o=>{const a=o.getData(),r=a.colorpicker;n?(t(T.from(r)),o.close()):e.windowManager.alert(e.translate(["Invalid hex color code: {0}",r]))},r=(e,t)=>{"hex-valid"===t.name&&(n=t.value)},i={colorpicker:o};e.windowManager.open({title:"Color Picker",size:"normal",body:{type:"panel",items:[{type:"colorpicker",name:"colorpicker",label:"Color"}]},buttons:[{type:"cancel",name:"cancel",text:"Cancel"},{type:"submit",name:"save",text:"Save",primary:!0}],initialData:i,onAction:r,onSubmit:a,onClose:w,onCancel:()=>{t(T.none())}})},TD=e=>{kD(e);const t=mD(e),o=hD(e),n=hi(t),a=hi(o);ND(e,"forecolor","forecolor",n),ND(e,"backcolor","hilitecolor",a),DD(e,"forecolor","forecolor","Text color",n),DD(e,"backcolor","hilitecolor","Background color",a)},SD=(e,t,o,n,a,r,i,l)=>{const s=__(t),c="color"!==a?"normal":"color",d=BD(t,o,n,c,r,i,l),u={menuType:a};return N_(e,s,d,n,u)},BD=(e,t,o,n,a,r,i)=>Ae(q(e,l=>"choiceitem"===l.type?zV(l).fold(V_,l=>T.some(QA(l,1===o,n,t,r(l.value),a,i,__(e)))):T.none())),ID=(e,t)=>{const o=Qx(t);if(1===e)return{mode:"menu",moveOnTab:!0};if("auto"===e)return{mode:"grid",selector:"."+o.item,initSize:{numColumns:1,numRows:1}};{const e="color"===t?"tox-swatches__row":"tox-collection__group";return{mode:"matrix",rowSelector:"."+e,previousSelector:e=>"color"===t?md(e.element,"[aria-checked=true]"):T.none()}}},zD=(e,t)=>1===e?{mode:"menu",moveOnTab:!1,selector:".tox-collection__item"}:"auto"===e?{mode:"flatgrid",selector:".tox-collection__item",initSize:{numColumns:1,numRows:1}}:{mode:"matrix",selectors:{row:"color"===t?".tox-swatches__row":".tox-collection__group",cell:"color"===t?"."+Nx:"."+Ax}},FD=(e,t)=>{const o=MD(e,t),n=t.colorinput.getColorCols(e.initData.storageKey),a="color",r=SD(bs("menu-value"),o,t=>{e.onAction({value:t})},n,a,_x.CLOSE_ON_EXECUTE,e.select.getOr(D),t.shared.providers),i={...r,markers:Qx(a),movement:ID(n,a)};return{type:"widget",data:{value:bs("widget-id")},dom:{tag:"div",classes:["tox-fancymenuitem"]},autofocus:!0,components:[JA.widget(jy.sketch(i))]}},MD=(e,t)=>{const o=e.initData.allowCustomColors&&t.colorinput.hasCustomColors();return e.initData.colors.fold(()=>OD(t.colorinput.getColors(e.initData.storageKey),e.initData.storageKey,o),e=>e.concat(CD(o)))},LD=bs("cell-over"),PD=bs("cell-execute"),RD=e=>(t,o)=>e.shared.providers.translate(["{0} columns, {1} rows",o,t]),qD=(e,t,o)=>{const n=o=>Tl(o,LD,{row:e,col:t}),a=o=>Tl(o,PD,{row:e,col:t}),r=(e,t)=>{t.stop(),a(e)};return od({dom:{tag:"div",attributes:{role:"button",["aria-label"]:o}},behaviours:qu([wC("insert-table-picker-cell",[ql(Hi(),AC.focus),ql(cl(),a),ql(Zi(),r),ql(ul(),r)]),GC.config({toggleClass:"tox-insert-table-picker__selected",toggleOnExecute:!1}),AC.config({onFocus:n})])})},$D=(e,t,o)=>{const n=[];for(let a=0;a<t;a++){const t=[];for(let n=0;n<o;n++){const o=e(a+1,n+1);t.push(qD(a,n,o))}n.push(t)}return n},UD=(e,t,o,n,a)=>{for(let r=0;r<n;r++)for(let n=0;n<a;n++)GC.set(e[r][n],r<=t&&n<=o)},HD=e=>X(e,e=>q(e,nd)),WD=(e,t)=>Jc(`${t}x${e}`),GD=(e,t)=>{const o=10,n=10,a=RD(t),r=$D(a,o,n),i=WD(0,0),l=Yy({dom:{tag:"span",classes:["tox-insert-table-picker__label"]},components:[i],behaviours:qu([fC.config({})])});return{type:"widget",data:{value:bs("widget-id")},dom:{tag:"div",classes:["tox-fancymenuitem"]},autofocus:!0,components:[JA.widget({dom:{tag:"div",classes:["tox-insert-table-picker"]},components:HD(r).concat(l.asSpec()),behaviours:qu([wC("insert-table-picker",[Zl(e=>{fC.set(l.get(e),[i])}),Kl(LD,(e,t,a)=>{const{row:i,col:s}=a.event;UD(r,i,s,o,n),fC.set(l.get(e),[WD(i+1,s+1)])}),Kl(PD,(t,o,n)=>{const{row:a,col:r}=n.event;e.onAction({numRows:a+1,numColumns:r+1}),El(t,hl())})]),nC.config({initSize:{numRows:o,numColumns:n},mode:"flatgrid",selector:'[role="button"]'})])})]}},KD={inserttable:GD,colorswatch:FD},YD=(e,t)=>Oe(KD,e.fancytype).map(o=>o(e,t)),QD=(e,t,o,n=!0,a=!1)=>{const r=a?FA(o.icons):zA(o.icons),i=e=>({isEnabled:()=>!sv.isDisabled(e),setEnabled:t=>sv.set(e,!t),setIconFill:(t,o)=>{md(e.element,`svg path[class="${t}"], rect[class="${t}"]`).each(e=>{to(e,"fill",o)})},setTooltip:t=>{const n=o.translate(t);oo(e.element,{"aria-label":n,title:n})}}),l=$A({presets:"normal",iconContent:e.icon,textContent:e.text,htmlContent:T.none(),ariaLabel:e.text,caret:T.some(r),checkMark:T.none(),shortcutContent:e.shortcut},o,n);return VA({data:AA(e),getApi:i,enabled:e.enabled,onAction:w,onSetup:e.onSetup,triggersSubmenu:!0,itemBehaviours:[]},l,t,o)},JD=(e,t,o,n=!0)=>{const a=e=>({isEnabled:()=>!sv.isDisabled(e),setEnabled:t=>sv.set(e,!t)}),r=$A({presets:"normal",iconContent:e.icon,textContent:e.text,htmlContent:T.none(),ariaLabel:e.text,caret:T.none(),checkMark:T.none(),shortcutContent:e.shortcut},o,n);return VA({data:AA(e),getApi:a,enabled:e.enabled,onAction:e.onAction,onSetup:e.onSetup,triggersSubmenu:!1,itemBehaviours:[]},r,t,o)},ZD=e=>({type:"separator",dom:{tag:"div",classes:[Ax,Tx]},components:e.text.map(Jc).toArray()}),XD=(e,t,o,n=!0)=>{const a=e=>({setActive:t=>{GC.set(e,t)},isActive:()=>GC.isOn(e),isEnabled:()=>!sv.isDisabled(e),setEnabled:t=>sv.set(e,!t)}),r=$A({iconContent:e.icon,textContent:e.text,htmlContent:T.none(),ariaLabel:e.text,checkMark:T.some(IA(o.icons)),caret:T.none(),shortcutContent:e.shortcut,presets:"normal",meta:e.meta},o,n);return Da(VA({data:AA(e),enabled:e.enabled,getApi:a,onAction:e.onAction,onSetup:e.onSetup,triggersSubmenu:!1,itemBehaviours:[]},r,t,o),{toggling:{toggleClass:Ex,toggleOnExecute:!1,selected:e.active}})},eE=GA,tE=ZD,oE=JD,nE=QD,aE=XD,rE=YD,iE=YA,lE=(e,t,o,n)=>o.getOrCreate(e,t,n),sE=(e,t,o,n)=>o.getExisting(e,t,n);var cE=Object.freeze({__proto__:null,getCoupled:lE,getExistingCoupled:sE}),dE=[Mr("others",_r(ua.value,pr()))];const uE=()=>{const e={},t=(t,o)=>{const n=ue(t.others);if(0===n.length)throw new Error("Cannot find any known coupled components");return Oe(e,o)},o=(o,n,a)=>t(n,a).getOrThunk(()=>{const t=Oe(n.others,a).getOrDie("No information found for coupled component: "+a),r=t(o),i=o.getSystem().build(r);return e[a]=i,i}),n=(e,o,n)=>t(o,n).orThunk(()=>(Oe(o.others,n).getOrDie("No information found for coupled component: "+n),T.none())),a=O({});return Fs({readState:a,getExisting:n,getOrCreate:o})};var mE=Object.freeze({__proto__:null,init:uE});const hE=Uu({fields:dE,name:"coupling",apis:cE,state:mE}),pE=e=>{let t=T.none(),o=[];const n=e=>pE(t=>{a(o=>{t(e(o))})}),a=e=>{i()?s(e):o.push(e)},r=e=>{i()||(t=T.some(e),l(o),o=[])},i=()=>t.isSome(),l=e=>{$(e,s)},s=e=>{t.each(t=>{setTimeout(()=>{e(t)},0)})};return e(r),{get:a,map:n,isReady:i}},bE=e=>pE(t=>{t(e)}),gE={nu:pE,pure:bE},fE=e=>{setTimeout(()=>{throw e},0)},vE=e=>{const t=t=>{e().then(t,fE)},o=t=>vE(()=>e().then(t)),n=t=>vE(()=>e().then(e=>t(e).toPromise())),a=t=>vE(()=>e().then(()=>t.toPromise())),r=()=>gE.nu(t),i=()=>{let t=null;return vE(()=>(null===t&&(t=e()),t))},l=e;return{map:o,bind:n,anonBind:a,toLazy:r,toCached:i,toPromise:l,get:t}},wE=e=>vE(()=>new Promise(e)),kE=e=>vE(()=>Promise.resolve(e)),CE={nu:wE,pure:kE},yE=O("sink"),OE=O(rf({name:yE(),overrides:O({dom:{tag:"div"},behaviours:qu([ab.config({useFixed:E})]),events:Ml([Yl(Ki()),Yl(Ri()),Yl(Zi())])})})),jE=(e,t)=>{const o=e.getHotspot(t).getOr(t),n="hotspot",a=e.getAnchorOverrides();return e.layouts.fold(()=>({type:n,hotspot:o,overrides:a}),e=>({type:n,hotspot:o,overrides:a,layouts:e}))},xE=(e,t,o)=>{const n=e.fetch;return n(o).map(t)},_E=(e,t,o,n,a,r,i)=>{const l=xE(e,t,n),s=EE(n,e);return l.map(e=>e.bind(e=>T.from(Ly.sketch({...r.menu(),uid:Os(""),data:e,highlightOnOpen:i,onOpenMenu:(e,t)=>{const n=s().getOrDie();ab.position(n,t,{anchor:o}),qb.decloak(a)},onOpenSubmenu:(e,t,o)=>{const n=s().getOrDie();ab.position(n,o,{anchor:{type:"submenu",item:t}}),qb.decloak(a)},onRepositionMenu:(e,t,n)=>{const a=s().getOrDie();ab.position(a,t,{anchor:o}),$(n,e=>{ab.position(a,e.triggeredMenu,{anchor:{type:"submenu",item:e.triggeringItem}})})},onEscape:()=>(AC.focus(n),qb.close(a),T.some(!0))}))))},VE=(e,t,o,n,a,r,i)=>{const l=jE(e,o),s=_E(e,t,l,o,n,a,i);return s.map(e=>(e.fold(()=>{qb.isOpen(n)&&qb.close(n)},e=>{qb.cloak(n),qb.open(n,e),r(n)}),n))},AE=(e,t,o,n,a,r,i)=>(qb.close(n),CE.pure(n)),NE=(e,t,o,n,a,r)=>{const i=hE.getCoupled(o,"sandbox"),l=qb.isOpen(i),s=l?AE:VE;return s(e,t,o,i,n,a,r)},DE=(e,t,o)=>{const n=$f.getCurrent(t).getOr(t),a=Bo(e.element);o?uo(n.element,"min-width",a+"px"):So(n.element,a)},EE=(e,t)=>e.getSystem().getByUid(t.uid+"-"+yE()).map(e=>()=>ua.value(e)).getOrThunk(()=>t.lazySink.fold(()=>()=>ua.error(new Error("No internal sink is specified, nor could an external sink be found")),t=>()=>t(e))),TE=e=>{qb.getState(e).each(e=>{Ly.repositionMenus(e)})},SE=(e,t,o)=>{const n=gd(),a=(a,r)=>{const i=jE(e,t);n.link(t.element),e.matchWidth&&DE(i.hotspot,r,e.useMinWidth),e.onOpen(i,a,r),void 0!==o&&void 0!==o.onOpen&&o.onOpen(a,r)},r=(e,a)=>{n.unlink(t.element),void 0!==o&&void 0!==o.onClose&&o.onClose(e,a)},i=EE(t,e);return{dom:{tag:"div",classes:e.sandboxClasses,attributes:{id:n.id,role:"listbox"}},behaviours:Ag.augment(e.sandboxBehaviours,[jg.config({store:{mode:"memory",initialValue:t}}),qb.config({onOpen:a,onClose:r,isPartOf:(e,o,n)=>vd(o,n)||vd(t,n),getAttachPoint:()=>i().getOrDie()}),$f.config({find:e=>qb.getState(e).bind(e=>$f.getCurrent(e))}),Ku.config({channels:{...Gb({isExtraPart:D}),...Yb({doReposition:TE})}})])}},BE=e=>{const t=hE.getCoupled(e,"sandbox");TE(t)},IE=()=>[ni("sandboxClasses",[]),Ag.field("sandboxBehaviours",[$f,Ku,qb,jg])],zE=O([Fr("dom"),Fr("fetch"),Fd("onOpen"),Md("onExecute"),ni("getHotspot",T.some),ni("getAnchorOverrides",O({})),mh(),xg("dropdownBehaviours",[GC,hE,nC,AC]),Fr("toggleClass"),ni("eventOrder",{}),Kr("lazySink"),ni("matchWidth",!1),ni("useMinWidth",!1),Kr("role")].concat(IE())),FE=O([af({schema:[Bd(),ni("fakeFocus",!1)],name:"menu",defaults:e=>({onExecute:e.onExecute})}),OE()]),ME=(e,t,o,n)=>{const a=t=>Oe(e.dom,"attributes").bind(e=>Oe(e,t)),r=e=>{qb.getState(e).each(e=>{Ly.highlightPrimary(e)})},i=(t,o,a)=>NE(e,j,t,n,o,a),l=e=>{const t=r;i(e,t,Sy.HighlightMenuAndItem).get(w)},s={expand:e=>{GC.isOn(e)||i(e,w,Sy.HighlightNone).get(w)},open:e=>{GC.isOn(e)||i(e,w,Sy.HighlightMenuAndItem).get(w)},refetch:t=>{const o=hE.getExistingCoupled(t,"sandbox");return o.fold(()=>i(t,w,Sy.HighlightMenuAndItem).map(w),o=>VE(e,j,t,o,n,w,Sy.HighlightMenuAndItem).map(w))},isOpen:GC.isOn,close:e=>{GC.isOn(e)&&i(e,w,Sy.HighlightMenuAndItem).get(w)},repositionMenus:e=>{GC.isOn(e)&&BE(e)}},c=(e,t)=>(Sl(e),T.some(!0));return{uid:e.uid,dom:e.dom,components:t,behaviours:Vg(e.dropdownBehaviours,[GC.config({toggleClass:e.toggleClass,aria:{mode:"expanded"}}),hE.config({others:{sandbox:t=>SE(e,t,{onOpen:()=>GC.on(t),onClose:()=>GC.off(t)})}}),nC.config({mode:"special",onSpace:c,onEnter:c,onDown:(e,t)=>{if(LE.isOpen(e)){const t=hE.getCoupled(e,"sandbox");r(t)}else LE.open(e);return T.some(!0)},onEscape:(e,t)=>LE.isOpen(e)?(LE.close(e),T.some(!0)):T.none()}),AC.config({})]),events:YC(T.some(l)),eventOrder:{...e.eventOrder,[cl()]:["disabling","toggling","alloy.base.behaviour"]},apis:s,domModification:{attributes:{"aria-haspopup":"true",...e.role.fold(()=>({}),e=>({role:e})),..."button"===e.dom.tag?{type:a("type").getOr("button")}:{}}}}},LE=Mf({name:"Dropdown",configFields:zE(),partFields:FE(),factory:ME,apis:{open:(e,t)=>e.open(t),refetch:(e,t)=>e.refetch(t),expand:(e,t)=>e.expand(t),close:(e,t)=>e.close(t),isOpen:(e,t)=>e.isOpen(t),repositionMenus:(e,t)=>e.repositionMenus(t)}}),PE=e=>{switch(e.searchMode){case"no-search":return{menuType:"normal"};default:return{menuType:"searchable",searchMode:e}}},RE=e=>{const t=jg.getValue(e),o=c_(e).map(m_);LE.refetch(t).get(()=>{const e=hE.getCoupled(t,"sandbox");o.each(t=>c_(e).each(e=>u_(e,t)))})},qE=(e,t)=>{$E(e).each(o=>{zl(e,o.element,t.event.eventType,t.event.interactionEvent)})},$E=e=>qb.getState(e).bind(Av.getHighlighted).bind(Av.getHighlighted),UE=e=>yc(e.element,b_)?T.some(e.element):md(e.element,"."+b_),HE=(e,t,o)=>{d_(e).each(e=>{h_(e,o);const n=UE(t);n.each(t=>{ao(t,"id").each(t=>to(e.element,"aria-controls",t))})}),to(o.element,"aria-selected","true")},WE=(e,t,o)=>{to(o.element,"aria-selected","false")},GE=e=>{d_(e).each(e=>AC.focus(e))},KE=e=>{const t=hE.getExistingCoupled(e,"sandbox");return t.bind(c_).map(m_).map(e=>e.fetchPattern).getOr("")};var YE;(function(e){e[e["ContentFocus"]=0]="ContentFocus",e[e["UiFocus"]=1]="UiFocus"})(YE||(YE={}));const QE=(e,t,o,n,a)=>{const r=o.shared.providers,i=e=>a?{...e,shortcut:T.none(),icon:e.text.isSome()?T.none():e.icon}:e;switch(e.type){case"menuitem":return $V(e).fold(V_,e=>T.some(oE(i(e),t,r,n)));case"nestedmenuitem":return HV(e).fold(V_,e=>T.some(nE(i(e),t,r,n,a)));case"togglemenuitem":return GV(e).fold(V_,e=>T.some(aE(i(e),t,r,n)));case"separator":return iV(e).fold(V_,e=>T.some(tE(e)));case"fancymenuitem":return RV(e).fold(V_,e=>rE(e,o));default:return console.error("Unknown item in general menu",e),T.none()}},JE=(e,t,o,n,a,r,i)=>{const l=1===n,s=!l||__(e);return Ae(q(e,e=>{switch(e.type){case"separator":return sV(e).fold(V_,e=>T.some(tE(e)));case"cardmenuitem":return BV(e).fold(V_,e=>T.some(iE({...e,onAction:t=>{e.onAction(t),o(e.value,e.meta)}},a,r,{itemBehaviours:UA(e.meta,r),cardText:{matchText:t,highlightOn:i}})));case"autocompleteitem":default:return cV(e).fold(V_,e=>T.some(eE(e,t,l,"normal",o,a,r,s)))}}))},ZE=(e,t,o,n,a,r)=>{const i=__(t),l=Ae(q(t,e=>{const t=e=>a?!je(e,"text"):i,r=e=>QE(e,o,n,t(e),a);return"nestedmenuitem"===e.type&&e.getSubmenuItems().length<=0?r({...e,enabled:!1}):r(e)})),s=PE(r),c=a?A_:N_;return c(e,i,l,1,s)},XE=e=>Ly.singleData(e.value,e),eT=(e,t,o,n)=>{const a=ID(t,n),r=Qx(n);return{data:XE({...e,movement:a,menuBehaviours:JV.unnamedEvents("auto"!==t?[]:[Zl((e,t)=>{KV(e,4,r.item).each(({numColumns:t,numRows:o})=>{nC.setGridSize(e,o,t)})})])}),menu:{markers:Qx(n),fakeFocus:o===YE.ContentFocus}}},tT=(e,t)=>Cx(Ze.fromDom(t.startContainer)).map(t=>{const o=e.createRng();return o.selectNode(t.dom),o}),oT=(e,t)=>{const o=bs("autocompleter"),n=hi(!1),a=hi(!1),r=od(qy.sketch({dom:{tag:"div",classes:["tox-autocompleter"],attributes:{id:o}},components:[],fireDismissalEventInstead:{},inlineBehaviours:qu([wC("dismissAutocompleter",[ql(yl(),()=>d()),ql(Nl(),(t,o)=>{ao(o.event.target,"id").each(t=>to(Ze.fromDom(e.getBody()),"aria-activedescendant",t))})])]),lazySink:t.getSink})),i=()=>qy.isOpen(r),l=a.get,s=()=>{if(i()){qy.hide(r),e.dom.remove(o,!1);const t=Ze.fromDom(e.getBody());ao(t,"aria-owns").filter(e=>e===o).each(()=>{io(t,"aria-owns"),io(t,"aria-activedescendant")})}},c=()=>qy.getContent(r).bind(e=>ie(e.components(),0)),d=()=>e.execCommand("mceAutocompleterClose"),u=o=>{const a=de(o,e=>T.from(e.columns)).getOr(1);return X(o,o=>{const r=o.items;return JE(r,o.matchText,(t,a)=>{const r=e.selection.getRng();tT(e.dom,r).each(r=>{const i={hide:()=>d(),reload:t=>{s(),e.execCommand("mceAutocompleterReload",!1,{fetchOptions:t})}};n.set(!0),o.onAction(i,r,t,a),n.set(!1)})},a,_x.BUBBLE_TO_SANDBOX,t,o.highlightOn)})},m=(t,o)=>{yx(Ze.fromDom(e.getBody())).each(n=>{const a=de(t,e=>T.from(e.columns)).getOr(1);qy.showMenuAt(r,{anchor:{type:"node",root:Ze.fromDom(e.getBody()),node:T.from(n)}},eT(N_("autocompleter-value",!0,o,a,{menuType:"normal"}),a,YE.ContentFocus,"normal"))}),c().each(Av.highlightFirst)},h=t=>{const n=u(t);n.length>0?(m(t,n),to(Ze.fromDom(e.getBody()),"aria-owns",o),e.inline||p()):s()},p=()=>{e.dom.get(o)&&e.dom.remove(o,!1);const t=e.getDoc().documentElement,n=e.selection.getNode(),a=ss(r.element);mo(a,{border:"0",clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:"0",position:"absolute",width:"1px",top:n.offsetTop+"px",left:n.offsetLeft+"px"}),e.dom.add(t,a.dom),md(a,'[role="menu"]').each(e=>{wo(e,"position"),wo(e,"max-height")})};e.on("AutocompleterStart",({lookupData:e})=>{a.set(!0),n.set(!1),h(e)}),e.on("AutocompleterUpdate",({lookupData:e})=>h(e)),e.on("AutocompleterEnd",()=>{s(),a.set(!1),n.set(!1)});const b={cancelIfNecessary:d,isMenuOpen:i,isActive:l,isProcessingAction:n.get,getMenu:c};jx.setup(b,e)},nT={register:oT},aT=["visible","hidden","clip"],rT=e=>$e(e).length>0&&!M(aT,e),iT=e=>{if(pt(e)){const t=po(e,"overflow-x"),o=po(e,"overflow-y");return rT(t)||rT(o)}return!1},lT=e=>{const t=up(e,iT),o=0===t.length?Gt(e).map(Kt).map(e=>up(e,iT)).getOr([]):t;return le(o).map(e=>({element:e,others:o.slice(1)}))},sT=(e,t)=>fx(e)?lT(t):T.none(),cT=e=>{const t=[...q(e.others,oa),ia()];return ra(oa(e.element),t)},dT=(e,t,o)=>hd(e,t,o).isSome(),uT=(e,t)=>{let o=null;const n=(...n)=>{o=setTimeout(()=>{e.apply(null,n),o=null},t)},a=()=>{null!==o&&(clearTimeout(o),o=null)};return{cancel:a,schedule:n}},mT=5,hT=400,pT=e=>{const t=e.raw;return void 0===t.touches||1!==t.touches.length?T.none():T.some(t.touches[0])},bT=(e,t)=>{const o=Math.abs(e.clientX-t.x),n=Math.abs(e.clientY-t.y);return o>mT||n>mT},gT=e=>{const t=Dm(),o=hi(!1),n=uT(t=>{e.triggerEvent(ml(),t),o.set(!0)},hT),a=e=>(pT(e).each(a=>{n.cancel();const r={x:a.clientX,y:a.clientY,target:e.target};n.schedule(e),o.set(!1),t.set(r)}),T.none()),r=e=>(n.cancel(),pT(e).each(e=>{t.on(o=>{bT(e,o)&&t.clear()})}),T.none()),i=a=>{n.cancel();const r=e=>jt(e.target,a.target);return t.get().filter(r).map(t=>o.get()?(a.prevent(),!1):e.triggerEvent(ul(),a))},l=yi([{key:Fi(),value:a},{key:Mi(),value:r},{key:Li(),value:i}]),s=(e,t)=>Oe(l,t).bind(t=>t(e));return{fireIfReady:s}},fT=e=>{const t=e.raw;return t.which===Nv[0]&&!M(["input","textarea"],ut(e.target))&&!dT(e.target,'[contenteditable="true"]')},vT=(e,t)=>{const o={stopBackspace:!0,...t},n=["touchstart","touchmove","touchend","touchcancel","gesturestart","mousedown","mouseup","mouseover","mousemove","mouseout","click"],a=gT(o),r=q(n.concat(["selectstart","input","contextmenu","change","transitionend","transitioncancel","drag","dragstart","dragend","dragenter","dragleave","dragover","drop","keyup"]),t=>Tm(e,t,e=>{a.fireIfReady(e,t).each(t=>{t&&e.kill()});const n=o.triggerEvent(t,e);n&&e.kill()})),i=Dm(),l=Tm(e,"paste",e=>{a.fireIfReady(e,"paste").each(t=>{t&&e.kill()});const t=o.triggerEvent("paste",e);t&&e.kill(),i.set(setTimeout(()=>{o.triggerEvent(ll(),e)},0))}),s=Tm(e,"keydown",e=>{const t=o.triggerEvent("keydown",e);t?e.kill():o.stopBackspace&&fT(e)&&e.prevent()}),c=Tm(e,"focusin",e=>{const t=o.triggerEvent("focusin",e);t&&e.kill()}),d=Dm(),u=Tm(e,"focusout",e=>{const t=o.triggerEvent("focusout",e);t&&e.kill(),d.set(setTimeout(()=>{o.triggerEvent(il(),e)},0))}),m=()=>{$(r,e=>{e.unbind()}),s.unbind(),c.unbind(),u.unbind(),l.unbind(),i.on(clearTimeout),d.on(clearTimeout)};return{unbind:m}},wT=(e,t)=>{const o=Oe(e,"target").getOr(t);return hi(o)},kT=(e,t)=>{const o=hi(!1),n=hi(!1),a=()=>{o.set(!0)},r=()=>{n.set(!0)};return{stop:a,cut:r,isStopped:o.get,isCut:n.get,event:e,setSource:t.set,getSource:t.get}},CT=e=>{const t=hi(!1),o=()=>{t.set(!0)};return{stop:o,cut:w,isStopped:t.get,isCut:D,event:e,setSource:A("Cannot set source of a broadcasted event"),getSource:A("Cannot get source of a broadcasted event")}},yT=bi.generate([{stopped:[]},{resume:["element"]},{complete:[]}]),OT=(e,t,o,n,a,r)=>{const i=e(t,n),l=kT(o,a);return i.fold(()=>(r.logEventNoHandlers(t,n),yT.complete()),e=>{const o=e.descHandler,n=Ys(o);return n(l),l.isStopped()?(r.logEventStopped(t,e.element,o.purpose),yT.stopped()):l.isCut()?(r.logEventCut(t,e.element,o.purpose),yT.complete()):Dt(e.element).fold(()=>(r.logNoParent(t,e.element,o.purpose),yT.complete()),n=>(r.logEventResponse(t,e.element,o.purpose),yT.resume(n)))})},jT=(e,t,o,n,a,r)=>OT(e,t,o,n,a,r).fold(E,n=>jT(e,t,o,n,a,r),D),xT=(e,t,o,n,a)=>{const r=wT(o,n);return OT(e,t,o,n,r,a)},_T=(e,t,o)=>{const n=CT(t);return $(e,e=>{const t=e.descHandler,o=Ys(t);o(n)}),n.isStopped()},VT=(e,t,o,n)=>AT(e,t,o,o.target,n),AT=(e,t,o,n,a)=>{const r=wT(o,n);return jT(e,t,o,n,r,a)},NT=(e,t)=>({element:e,descHandler:t}),DT=(e,t)=>({id:e,descHandler:t}),ET=()=>{const e={},t=(t,o,n)=>{he(n,(n,a)=>{const r=void 0!==e[a]?e[a]:{};r[o]=Ks(n,t),e[a]=r})},o=(e,t)=>ys(t).bind(t=>Oe(e,t)).map(e=>NT(t,e)),n=t=>Oe(e,t).map(e=>ke(e,(e,t)=>DT(t,e))).getOr([]),a=(t,n,a)=>Oe(e,n).bind(e=>Ai(a,t=>o(e,t),t)),r=t=>{he(e,(e,o)=>{je(e,t)&&delete e[t]})};return{registerId:t,unregisterId:r,filterByType:n,find:a}},TT=()=>{const e=ET(),t={},o=e=>{const t=e.element;return ys(t).getOrThunk(()=>ks("uid-",e.element))},n=(e,o)=>{const n=t[o];if(n!==e)throw new Error('The tagId "'+o+'" is already used by: '+ds(n.element)+"\nCannot use it for: "+ds(e.element)+"\nThe conflicting element is"+(Jt(n.element)?" ":" not ")+"already in the DOM");r(e)},a=a=>{const r=o(a);xe(t,r)&&n(a,r);const i=[a];e.registerId(i,r,a.events),t[r]=a},r=o=>{ys(o.element).each(o=>{delete t[o],e.unregisterId(o)})},i=t=>e.filterByType(t),l=(t,o,n)=>e.find(t,o,n),s=e=>Oe(t,e);return{find:l,filter:i,register:a,unregister:r,getById:s}},ST=e=>{const{attributes:t,...o}=e.dom;return{uid:e.uid,dom:{tag:"div",attributes:{role:"presentation",...t},...o},components:e.components,behaviours:_g(e.containerBehaviours),events:e.events,domModification:e.domModification,eventOrder:e.eventOrder}},BT=Ff({name:"Container",factory:ST,configFields:[ni("components",[]),xg("containerBehaviours",[]),ni("events",{}),ni("domModification",{}),ni("eventOrder",{})]}),IT=e=>{const t=t=>Dt(e.element).fold(E,e=>jt(t,e)),o=TT(),n=(e,n)=>o.find(t,e,n),a=vT(e.element,{triggerEvent:(e,t)=>Vd(e,t.target,o=>VT(n,e,t,o))}),r={debugInfo:O("real"),triggerEvent:(e,t,o)=>{Vd(e,t,a=>AT(n,e,o,t,a))},triggerFocus:(e,t)=>{ys(e).fold(()=>{Ju(e)},o=>{Vd(rl(),e,o=>(xT(n,rl(),{originator:t,kill:w,prevent:w,target:e},e,o),!1))})},triggerEscape:(e,t)=>{r.triggerEvent("keydown",e.element,t.event)},getByUid:e=>b(e),getByDom:e=>g(e),build:od,buildOrPatch:td,addToGui:e=>{s(e)},removeFromGui:e=>{c(e)},addToWorld:e=>{i(e)},removeFromWorld:e=>{l(e)},broadcast:e=>{m(e)},broadcastOn:(e,t)=>{h(e,t)},broadcastEvent:(e,t)=>{p(e,t)},isConnected:E},i=e=>{e.connect(r),gt(e.element)||(o.register(e),$(e.components(),i),r.triggerEvent(bl(),e.element,{target:e.element}))},l=e=>{gt(e.element)||($(e.components(),l),o.unregister(e)),e.disconnect()},s=t=>{pb(e,t)},c=e=>{fb(e)},d=()=>{a.unbind(),Pn(e.element)},u=e=>{const t=o.filter(sl());$(t,t=>{const o=t.descHandler,n=Ys(o);n(e)})},m=e=>{u({universal:!0,data:e})},h=(e,t)=>{u({universal:!1,channels:e,data:t})},p=(e,t)=>{const n=o.filter(e);return _T(n,t)},b=e=>o.getById(e).fold(()=>ua.error(new Error('Could not find component with uid: "'+e+'" in system.')),ua.value),g=e=>{const t=ys(e).getOr("not found");return b(t)};return i(e),{root:e,element:e.element,destroy:d,add:s,remove:c,getByUid:b,getByDom:g,addToWorld:i,removeFromWorld:l,broadcast:m,broadcastOn:h,broadcastEvent:p}},zT=(e,t)=>({dom:{tag:"div",classes:["tox-bar","tox-form__controls-h-stack"]},components:q(e.items,t.interpreter)}),FT=O([ni("prefix","form-field"),xg("fieldBehaviours",[$f,jg])]),MT=O([rf({schema:[Fr("dom")],name:"label"}),rf({factory:{sketch:e=>({uid:e.uid,dom:{tag:"span",styles:{display:"none"},attributes:{"aria-hidden":"true"},innerHtml:e.text}})},schema:[Fr("text")],name:"aria-descriptor"}),nf({factory:{sketch:e=>{const t=ki(e,["factory"]);return e.factory.sketch(t)}},schema:[Fr("factory")],name:"field"})]),LT=(e,t,o,n)=>{const a=Vg(e.fieldBehaviours,[$f.config({find:t=>wf(t,e,"field")}),jg.config({store:{mode:"manual",getValue:e=>$f.getCurrent(e).bind(jg.getValue),setValue:(e,t)=>{$f.getCurrent(e).each(e=>{jg.setValue(e,t)})}}})]),r=Ml([Zl((t,o)=>{const n=Cf(t,e,["label","field","aria-descriptor"]);n.field().each(t=>{const o=bs(e.prefix);n.label().each(e=>{to(e.element,"for",o),to(t.element,"id",o)}),n["aria-descriptor"]().each(o=>{const n=bs(e.prefix);to(o.element,"id",n),to(t.element,"aria-describedby",n)})})})]),i={getField:t=>wf(t,e,"field"),getLabel:t=>wf(t,e,"label")};return{uid:e.uid,dom:e.dom,components:t,behaviours:a,events:r,apis:i}},PT=Mf({name:"FormField",configFields:FT(),partFields:MT(),factory:LT,apis:{getField:(e,t)=>e.getField(t),getLabel:(e,t)=>e.getLabel(t)}}),RT=(e,t)=>qs({attributes:yi([{key:t.tabAttr,value:"true"}])});var qT=Object.freeze({__proto__:null,exhibit:RT}),$T=[ni("tabAttr","data-alloy-tabstop")];const UT=Uu({fields:$T,name:"tabstopping",active:qT});var HT=tinymce.util.Tools.resolve("tinymce.html.Entities");const WT=(e,t,o,n)=>{const a=KT(e,t,o,n);return PT.sketch(a)},GT=(e,t)=>WT(e,t,[],[]),KT=(e,t,o,n)=>({dom:QT(o),components:e.toArray().concat([t]),fieldBehaviours:qu(n)}),YT=()=>QT([]),QT=e=>({tag:"div",classes:["tox-form__group"].concat(e)}),JT=(e,t)=>PT.parts.label({dom:{tag:"label",classes:["tox-label"]},components:[Jc(t.translate(e))]}),ZT=bs("form-component-change"),XT=bs("form-close"),eS=bs("form-cancel"),tS=bs("form-action"),oS=bs("form-submit"),nS=bs("form-block"),aS=bs("form-unblock"),rS=bs("form-tabchange"),iS=bs("form-resize"),lS=(e,t,o)=>{const n=e.label.map(e=>JT(e,t)),a=t.icons(),r=e=>{var t;return null!==(t=a[e])&&void 0!==t?t:e},i=e=>(t,o)=>{hd(o.event.target,"[data-collection-item-value]").each(n=>{e(t,o,n,no(n,"data-collection-item-value"))})},l=(o,n)=>{const a=q(n,o=>{const n=KO.translate(o.text),a=1===e.columns?`<div class="tox-collection__item-label">${n}</div>`:"",i=`<div class="tox-collection__item-icon">${r(o.icon)}</div>`,l={_:" "," - ":" ","-":" "},s=n.replace(/\_| \- |\-/g,e=>l[e]),c=t.isDisabled()?" tox-collection__item--state-disabled":"";return`<div class="tox-collection__item${c}" tabindex="-1" data-collection-item-value="${HT.encodeAllRaw(o.value)}" title="${s}" aria-label="${s}">${i}${a}</div>`}),i="auto"!==e.columns&&e.columns>1?R(a,e.columns):[a],l=q(i,e=>`<div class="tox-collection__group">${e.join("")}</div>`);as(o.element,l.join(""))},s=i((o,n,a,r)=>{n.stop(),t.isDisabled()||Tl(o,tS,{name:e.name,value:r})}),c=[ql(Hi(),i((e,t,o)=>{Ju(o)})),ql(Zi(),s),ql(ul(),s),ql(Wi(),i((e,t,o)=>{md(e.element,"."+Mx).each(e=>{kc(e,Mx)}),vc(o,Mx)})),ql(Gi(),i(e=>{md(e.element,"."+Mx).each(e=>{kc(e,Mx)})})),ts(i((t,o,n,a)=>{Tl(t,tS,{name:e.name,value:a})}))],d=(e,t)=>q(mp(e.element,".tox-collection__item"),t),u=PT.parts.field({dom:{tag:"div",classes:["tox-collection"].concat(1!==e.columns?["tox-collection--grid"]:["tox-collection--list"])},components:[],factory:{sketch:j},behaviours:qu([sv.config({disabled:t.isDisabled,onDisabled:e=>{d(e,e=>{vc(e,"tox-collection__item--state-disabled"),to(e,"aria-disabled",!0)})},onEnabled:e=>{d(e,e=>{kc(e,"tox-collection__item--state-disabled"),io(e,"aria-disabled")})}}),bA(),fC.config({}),jg.config({store:{mode:"memory",initialValue:o.getOr([])},onSetValue:(t,o)=>{l(t,o),"auto"===e.columns&&KV(t,5,"tox-collection__item").each(({numRows:e,numColumns:o})=>{nC.setGridSize(t,e,o)}),El(t,iS)}}),UT.config({}),nC.config(zD(e.columns,"normal")),wC("collection-events",c)]),eventOrder:{[cl()]:["disabling","alloy.base.behaviour","collection-events"]}}),m=["tox-form__group--collection"];return WT(n,u,m,[])},sS=["input","textarea"],cS=e=>{const t=ut(e);return M(sS,t)},dS=(e,t)=>{const o=t.getRoot(e).getOr(e.element);kc(o,t.invalidClass),t.notify.each(t=>{cS(e.element)&&to(e.element,"aria-invalid",!1),t.getContainer(e).each(e=>{as(e,t.validHtml)}),t.onValid(e)})},uS=(e,t,o,n)=>{const a=t.getRoot(e).getOr(e.element);vc(a,t.invalidClass),t.notify.each(t=>{cS(e.element)&&to(e.element,"aria-invalid",!0),t.getContainer(e).each(e=>{as(e,n)}),t.onInvalid(e,n)})},mS=(e,t,o)=>t.validator.fold(()=>CE.pure(ua.value(!0)),t=>t.validate(e)),hS=(e,t,o)=>(t.notify.each(t=>{t.onValidate(e)}),mS(e,t).map(n=>e.getSystem().isConnected()?n.fold(n=>(uS(e,t,o,n),ua.error(n)),o=>(dS(e,t),ua.value(o))):ua.error("No longer in system"))),pS=(e,t)=>{const o=t.getRoot(e).getOr(e.element);return yc(o,t.invalidClass)};var bS=Object.freeze({__proto__:null,markValid:dS,markInvalid:uS,query:mS,run:hS,isInvalid:pS});const gS=(e,t)=>e.validator.map(o=>Ml([ql(o.onEvent,o=>{hS(o,e,t).get(j)})].concat(o.validateOnLoad?[Zl(o=>{hS(o,e,t).get(w)})]:[]))).getOr({});var fS=Object.freeze({__proto__:null,events:gS}),vS=[Fr("invalidClass"),ni("getRoot",T.none),ti("notify",[ni("aria","alert"),ni("getContainer",T.none),ni("validHtml",""),Fd("onValid"),Fd("onInvalid"),Fd("onValidate")]),ti("validator",[Fr("validate"),ni("onEvent","input"),ni("validateOnLoad",!0)])];const wS=Uu({fields:vS,name:"invalidating",active:fS,apis:bS,extra:{validation:e=>t=>{const o=jg.getValue(t);return CE.pure(e(o))}}}),kS=()=>qs({styles:{"-webkit-user-select":"none","user-select":"none","-ms-user-select":"none","-moz-user-select":"-moz-none"},attributes:{unselectable:"on"}}),CS=()=>Ml([Ll(ol(),E)]);var yS=Object.freeze({__proto__:null,events:CS,exhibit:kS});const OS=Uu({fields:[],name:"unselecting",active:yS}),jS=(e,t)=>LE.sketch({dom:e.dom,components:e.components,toggleClass:"mce-active",dropdownBehaviours:qu([kA.button(t.providers.isDisabled),bA(),OS.config({}),UT.config({})]),layouts:e.layouts,sandboxClasses:["tox-dialog__popups"],lazySink:t.getSink,fetch:o=>CE.nu(t=>e.fetch(t)).map(n=>T.from(XE(Da(SD(bs("menu-value"),n,t=>{e.onItemAction(o,t)},e.columns,e.presets,_x.CLOSE_ON_EXECUTE,D,t.providers),{movement:ID(e.columns,e.presets)})))),parts:{menu:Xx(!1,1,e.presets)}}),xS=bs("color-input-change"),_S=bs("color-swatch-change"),VS=bs("color-picker-cancel"),AS=(e,t,o,n)=>{const a=PT.parts.field({factory:r_,inputClasses:["tox-textfield"],data:n,onSetValue:e=>wS.run(e).get(w),inputBehaviours:qu([sv.config({disabled:t.providers.isDisabled}),bA(),UT.config({}),wS.config({invalidClass:"tox-textbox-field-invalid",getRoot:e=>Tt(e.element),notify:{onValid:e=>{const t=jg.getValue(e);Tl(e,xS,{color:t})}},validator:{validateOnLoad:!1,validate:e=>{const t=jg.getValue(e);if(0===t.length)return CE.pure(ua.value(!0));{const e=Ze.fromTag("span");uo(e,"background-color",t);const o=go(e,"background-color").fold(()=>ua.error("blah"),e=>ua.value(t));return CE.pure(o)}}}})]),selectOnFocus:!1}),r=e.label.map(e=>JT(e,t.providers)),i=(e,t)=>{Tl(e,_S,{value:t})},l=(t,n)=>{s.getOpt(t).each(t=>{"custom"===n?o.colorPicker(o=>{o.fold(()=>El(t,VS),o=>{i(t,o),KN(e.storageKey,o)})},"#ffffff"):i(t,"remove"===n?"":n)})},s=Yy(jS({dom:{tag:"span",attributes:{"aria-label":t.providers.translate("Color swatch")}},layouts:{onRtl:()=>[vu,fu,yu],onLtr:()=>[fu,vu,yu]},components:[],fetch:jD(o.getColors(e.storageKey),e.storageKey,o.hasCustomColors()),columns:o.getColorCols(e.storageKey),presets:"color",onItemAction:l},t));return PT.sketch({dom:{tag:"div",classes:["tox-form__group"]},components:r.toArray().concat([{dom:{tag:"div",classes:["tox-color-input"]},components:[a,s.asSpec()]}]),fieldBehaviours:qu([wC("form-field-events",[ql(xS,(t,o)=>{s.getOpt(t).each(e=>{uo(e.element,"background-color",o.event.color)}),Tl(t,ZT,{name:e.name})}),ql(_S,(e,t)=>{PT.getField(e).each(o=>{jg.setValue(o,t.event.value),$f.getCurrent(e).each(AC.focus)})}),ql(VS,(e,t)=>{PT.getField(e).each(t=>{$f.getCurrent(e).each(AC.focus)})})])])})},NS=rf({schema:[Fr("dom")],name:"label"}),DS=e=>rf({name:e+"-edge",overrides:t=>{const o=t.model.manager.edgeActions[e];return o.fold(()=>({}),e=>({events:Ml([$l(Fi(),(t,o,n)=>e(t,n),[t]),$l(Ri(),(t,o,n)=>e(t,n),[t]),$l(qi(),(t,o,n)=>{n.mouseIsDown.get()&&e(t,n)},[t])])}))}}),ES=DS("top-left"),TS=DS("top"),SS=DS("top-right"),BS=DS("right"),IS=DS("bottom-right"),zS=DS("bottom"),FS=DS("bottom-left"),MS=DS("left"),LS=nf({name:"thumb",defaults:O({dom:{styles:{position:"absolute"}}}),overrides:e=>({events:Ml([Gl(Fi(),e,"spectrum"),Gl(Mi(),e,"spectrum"),Gl(Li(),e,"spectrum"),Gl(Ri(),e,"spectrum"),Gl(qi(),e,"spectrum"),Gl(Ui(),e,"spectrum")])})}),PS=e=>Uv(e.event),RS=nf({schema:[Ir("mouseIsDown",()=>hi(!1))],name:"spectrum",overrides:e=>{const t=e.model,o=t.manager,n=(t,n)=>o.getValueFromEvent(n).map(n=>o.setValueFrom(t,e,n));return{behaviours:qu([nC.config({mode:"special",onLeft:(t,n)=>o.onLeft(t,e,PS(n)),onRight:(t,n)=>o.onRight(t,e,PS(n)),onUp:(t,n)=>o.onUp(t,e,PS(n)),onDown:(t,n)=>o.onDown(t,e,PS(n))}),UT.config({}),AC.config({})]),events:Ml([ql(Fi(),n),ql(Mi(),n),ql(Ri(),n),ql(qi(),(t,o)=>{e.mouseIsDown.get()&&n(t,o)})])}}});var qS=[NS,MS,BS,TS,zS,ES,SS,FS,IS,LS,RS];const $S="slider.change.value",US=O($S),HS=e=>-1!==e.type.indexOf("touch"),WS=e=>{const t=e.event.raw;if(HS(t)){const e=t;return void 0!==e.touches&&1===e.touches.length?T.some(e.touches[0]).map(e=>Vo(e.clientX,e.clientY)):T.none()}{const e=t;return void 0!==e.clientX?T.some(e).map(e=>Vo(e.clientX,e.clientY)):T.none()}},GS="top",KS="right",YS="bottom",QS="left",JS=e=>e.model.minX,ZS=e=>e.model.minY,XS=e=>e.model.minX-1,eB=e=>e.model.minY-1,tB=e=>e.model.maxX,oB=e=>e.model.maxY,nB=e=>e.model.maxX+1,aB=e=>e.model.maxY+1,rB=(e,t,o)=>t(e)-o(e),iB=e=>rB(e,tB,JS),lB=e=>rB(e,oB,ZS),sB=e=>iB(e)/2,cB=e=>lB(e)/2,dB=(e,t)=>t?e.stepSize*e.speedMultiplier:e.stepSize,uB=e=>e.snapToGrid,mB=e=>e.snapStart,hB=e=>e.rounded,pB=(e,t)=>void 0!==e[t+"-edge"],bB=e=>pB(e,QS),gB=e=>pB(e,KS),fB=e=>pB(e,GS),vB=e=>pB(e,YS),wB=e=>e.model.value.get(),kB=(e,t)=>({x:e,y:t}),CB=(e,t)=>{Tl(e,US(),{value:t})},yB=(e,t)=>{CB(e,kB(XS(t),eB(t)))},OB=(e,t)=>{CB(e,eB(t))},jB=(e,t)=>{CB(e,kB(sB(t),eB(t)))},xB=(e,t)=>{CB(e,kB(nB(t),eB(t)))},_B=(e,t)=>{CB(e,nB(t))},VB=(e,t)=>{CB(e,kB(nB(t),cB(t)))},AB=(e,t)=>{CB(e,kB(nB(t),aB(t)))},NB=(e,t)=>{CB(e,aB(t))},DB=(e,t)=>{CB(e,kB(sB(t),aB(t)))},EB=(e,t)=>{CB(e,kB(XS(t),aB(t)))},TB=(e,t)=>{CB(e,XS(t))},SB=(e,t)=>{CB(e,kB(XS(t),cB(t)))},BB=(e,t,o,n)=>e<t?e:e>o?o:e===t?t-1:Math.max(t,e-n),IB=(e,t,o,n)=>e>o?e:e<t?t:e===o?o+1:Math.min(o,e+n),zB=(e,t,o)=>Math.max(t,Math.min(o,e)),FB=(e,t,o,n,a)=>a.fold(()=>{const a=e-t,r=Math.round(a/n)*n;return zB(t+r,t-1,o+1)},t=>{const a=(e-t)%n,r=Math.round(a/n),i=Math.floor((e-t)/n),l=Math.floor((o-t)/n),s=Math.min(l,i+r),c=t+s*n;return Math.max(t,c)}),MB=(e,t,o)=>Math.min(o,Math.max(e,t))-t,LB=e=>{const{min:t,max:o,range:n,value:a,step:r,snap:i,snapStart:l,rounded:s,hasMinEdge:c,hasMaxEdge:d,minBound:u,maxBound:m,screenRange:h}=e,p=c?t-1:t,b=d?o+1:o;if(a<u)return p;if(a>m)return b;{const e=MB(a,u,m),c=zB(e/h*n+t,p,b);return i&&c>=t&&c<=o?FB(c,t,o,r,l):s?Math.round(c):c}},PB=e=>{const{min:t,max:o,range:n,value:a,hasMinEdge:r,hasMaxEdge:i,maxBound:l,maxOffset:s,centerMinEdge:c,centerMaxEdge:d}=e;return a<t?r?0:c:a>o?i?l:d:(a-t)/n*s},RB="top",qB="right",$B="bottom",UB="left",HB="width",WB="height",GB=e=>e.element.dom.getBoundingClientRect(),KB=(e,t)=>e[t],YB=e=>{const t=GB(e);return KB(t,UB)},QB=e=>{const t=GB(e);return KB(t,qB)},JB=e=>{const t=GB(e);return KB(t,RB)},ZB=e=>{const t=GB(e);return KB(t,$B)},XB=e=>{const t=GB(e);return KB(t,HB)},eI=e=>{const t=GB(e);return KB(t,WB)},tI=(e,t,o)=>(e+t)/2-o,oI=(e,t)=>{const o=GB(e),n=GB(t),a=KB(o,UB),r=KB(o,qB),i=KB(n,UB);return tI(a,r,i)},nI=(e,t)=>{const o=GB(e),n=GB(t),a=KB(o,RB),r=KB(o,$B),i=KB(n,RB);return tI(a,r,i)},aI=(e,t)=>{Tl(e,US(),{value:t})},rI=(e,t,o)=>{const n={min:JS(t),max:tB(t),range:iB(t),value:o,step:dB(t),snap:uB(t),snapStart:mB(t),rounded:hB(t),hasMinEdge:bB(t),hasMaxEdge:gB(t),minBound:YB(e),maxBound:QB(e),screenRange:XB(e)};return LB(n)},iI=(e,t,o)=>{const n=rI(e,t,o),a=n;return aI(e,a),n},lI=(e,t)=>{const o=JS(t);aI(e,o)},sI=(e,t)=>{const o=tB(t);aI(e,o)},cI=(e,t,o,n)=>{const a=e>0?IB:BB,r=a(wB(o),JS(o),tB(o),dB(o,n));return aI(t,r),T.some(r)},dI=e=>(t,o,n)=>cI(e,t,o,n).map(E),uI=e=>{const t=WS(e);return t.map(e=>e.left)},mI=(e,t,o,n,a)=>{const r=0,i=XB(e),l=n.bind(t=>T.some(oI(t,e))).getOr(r),s=a.bind(t=>T.some(oI(t,e))).getOr(i),c={min:JS(t),max:tB(t),range:iB(t),value:o,hasMinEdge:bB(t),hasMaxEdge:gB(t),minBound:YB(e),minOffset:r,maxBound:QB(e),maxOffset:i,centerMinEdge:l,centerMaxEdge:s};return PB(c)},hI=(e,t,o,n,a,r)=>{const i=mI(t,r,o,n,a);return YB(t)-YB(e)+i},pI=(e,t,o,n)=>{const a=wB(o),r=hI(e,n.getSpectrum(e),a,n.getLeftEdge(e),n.getRightEdge(e),o),i=Bo(t.element)/2;uo(t.element,"left",r-i+"px")},bI=dI(-1),gI=dI(1),fI=T.none,vI=T.none,wI={"top-left":T.none(),top:T.none(),"top-right":T.none(),right:T.some(_B),"bottom-right":T.none(),bottom:T.none(),"bottom-left":T.none(),left:T.some(TB)};var kI=Object.freeze({__proto__:null,setValueFrom:iI,setToMin:lI,setToMax:sI,findValueOfOffset:rI,getValueFromEvent:uI,findPositionOfValue:hI,setPositionFromValue:pI,onLeft:bI,onRight:gI,onUp:fI,onDown:vI,edgeActions:wI});const CI=(e,t)=>{Tl(e,US(),{value:t})},yI=(e,t,o)=>{const n={min:ZS(t),max:oB(t),range:lB(t),value:o,step:dB(t),snap:uB(t),snapStart:mB(t),rounded:hB(t),hasMinEdge:fB(t),hasMaxEdge:vB(t),minBound:JB(e),maxBound:ZB(e),screenRange:eI(e)};return LB(n)},OI=(e,t,o)=>{const n=yI(e,t,o),a=n;return CI(e,a),n},jI=(e,t)=>{const o=ZS(t);CI(e,o)},xI=(e,t)=>{const o=oB(t);CI(e,o)},_I=(e,t,o,n)=>{const a=e>0?IB:BB,r=a(wB(o),ZS(o),oB(o),dB(o,n));return CI(t,r),T.some(r)},VI=e=>(t,o,n)=>_I(e,t,o,n).map(E),AI=e=>{const t=WS(e);return t.map(e=>e.top)},NI=(e,t,o,n,a)=>{const r=0,i=eI(e),l=n.bind(t=>T.some(nI(t,e))).getOr(r),s=a.bind(t=>T.some(nI(t,e))).getOr(i),c={min:ZS(t),max:oB(t),range:lB(t),value:o,hasMinEdge:fB(t),hasMaxEdge:vB(t),minBound:JB(e),minOffset:r,maxBound:ZB(e),maxOffset:i,centerMinEdge:l,centerMaxEdge:s};return PB(c)},DI=(e,t,o,n,a,r)=>{const i=NI(t,r,o,n,a);return JB(t)-JB(e)+i},EI=(e,t,o,n)=>{const a=wB(o),r=DI(e,n.getSpectrum(e),a,n.getTopEdge(e),n.getBottomEdge(e),o),i=Oo(t.element)/2;uo(t.element,"top",r-i+"px")},TI=T.none,SI=T.none,BI=VI(-1),II=VI(1),zI={"top-left":T.none(),top:T.some(OB),"top-right":T.none(),right:T.none(),"bottom-right":T.none(),bottom:T.some(NB),"bottom-left":T.none(),left:T.none()};var FI=Object.freeze({__proto__:null,setValueFrom:OI,setToMin:jI,setToMax:xI,findValueOfOffset:yI,getValueFromEvent:AI,findPositionOfValue:DI,setPositionFromValue:EI,onLeft:TI,onRight:SI,onUp:BI,onDown:II,edgeActions:zI});const MI=(e,t)=>{Tl(e,US(),{value:t})},LI=(e,t)=>({x:e,y:t}),PI=(e,t,o)=>{const n=rI(e,t,o.left),a=yI(e,t,o.top),r=LI(n,a);return MI(e,r),r},RI=(e,t,o,n,a)=>{const r=e>0?IB:BB,i=t?wB(n).x:r(wB(n).x,JS(n),tB(n),dB(n,a)),l=t?r(wB(n).y,ZS(n),oB(n),dB(n,a)):wB(n).y;return MI(o,LI(i,l)),T.some(i)},qI=(e,t)=>(o,n,a)=>RI(e,t,o,n,a).map(E),$I=(e,t)=>{const o=JS(t),n=ZS(t);MI(e,LI(o,n))},UI=(e,t)=>{const o=tB(t),n=oB(t);MI(e,LI(o,n))},HI=e=>WS(e),WI=(e,t,o,n)=>{const a=wB(o),r=hI(e,n.getSpectrum(e),a.x,n.getLeftEdge(e),n.getRightEdge(e),o),i=DI(e,n.getSpectrum(e),a.y,n.getTopEdge(e),n.getBottomEdge(e),o),l=Bo(t.element)/2,s=Oo(t.element)/2;uo(t.element,"left",r-l+"px"),uo(t.element,"top",i-s+"px")},GI=qI(-1,!1),KI=qI(1,!1),YI=qI(-1,!0),QI=qI(1,!0),JI={"top-left":T.some(yB),top:T.some(jB),"top-right":T.some(xB),right:T.some(VB),"bottom-right":T.some(AB),bottom:T.some(DB),"bottom-left":T.some(EB),left:T.some(SB)};var ZI=Object.freeze({__proto__:null,setValueFrom:PI,setToMin:$I,setToMax:UI,getValueFromEvent:HI,setPositionFromValue:WI,onLeft:GI,onRight:KI,onUp:YI,onDown:QI,edgeActions:JI});const XI=[ni("stepSize",1),ni("speedMultiplier",10),ni("onChange",w),ni("onChoose",w),ni("onInit",w),ni("onDragStart",w),ni("onDragEnd",w),ni("snapToGrid",!1),ni("rounded",!0),Kr("snapStart"),Mr("model",Tr("mode",{x:[ni("minX",0),ni("maxX",100),Ir("value",e=>hi(e.mode.minX)),Fr("getInitialValue"),Rd("manager",kI)],y:[ni("minY",0),ni("maxY",100),Ir("value",e=>hi(e.mode.minY)),Fr("getInitialValue"),Rd("manager",FI)],xy:[ni("minX",0),ni("maxX",100),ni("minY",0),ni("maxY",100),Ir("value",e=>hi({x:e.mode.minX,y:e.mode.minY})),Fr("getInitialValue"),Rd("manager",ZI)]})),xg("sliderBehaviours",[nC,jg]),Ir("mouseIsDown",()=>hi(!1))],ez=(e,t,o,n)=>{const a=t=>kf(t,e,"thumb"),r=t=>kf(t,e,"spectrum"),i=t=>wf(t,e,"left-edge"),l=t=>wf(t,e,"right-edge"),s=t=>wf(t,e,"top-edge"),c=t=>wf(t,e,"bottom-edge"),d=e.model,u=d.manager,m=(t,o)=>{u.setPositionFromValue(t,o,e,{getLeftEdge:i,getRightEdge:l,getTopEdge:s,getBottomEdge:c,getSpectrum:r})},h=(e,t)=>{d.value.set(t);const o=a(e);m(e,o)},p=(t,o)=>{h(t,o);const n=a(t);return e.onChange(t,n,o),T.some(!0)},b=t=>{u.setToMin(t,e)},g=t=>{u.setToMax(t,e)},f=t=>{const o=()=>{wf(t,e,"thumb").each(o=>{const n=d.value.get();e.onChoose(t,o,n)})},n=e.mouseIsDown.get();e.mouseIsDown.set(!1),n&&o()},v=(t,o)=>{o.stop(),e.mouseIsDown.set(!0),e.onDragStart(t,a(t))},w=(t,o)=>{o.stop(),e.onDragEnd(t,a(t)),f(t)},k=t=>{wf(t,e,"spectrum").map(nC.focusIn)};return{uid:e.uid,dom:e.dom,components:t,behaviours:Vg(e.sliderBehaviours,[nC.config({mode:"special",focusIn:k}),jg.config({store:{mode:"manual",getValue:e=>d.value.get(),setValue:h}}),Ku.config({channels:{[Hb()]:{onReceive:f}}})]),events:Ml([ql(US(),(e,t)=>{p(e,t.event.value)}),Zl((t,o)=>{const n=d.getInitialValue();d.value.set(n);const i=a(t);m(t,i);const l=r(t);e.onInit(t,i,l,d.value.get())}),ql(Fi(),v),ql(Li(),w),ql(Ri(),(e,t)=>{k(e),v(e,t)}),ql(Ui(),w)]),apis:{resetToMin:b,resetToMax:g,setValue:h,refresh:m},domModification:{styles:{position:"relative"}}}},tz=Mf({name:"Slider",configFields:XI,partFields:qS,factory:ez,apis:{setValue:(e,t,o)=>{e.setValue(t,o)},resetToMin:(e,t)=>{e.resetToMin(t)},resetToMax:(e,t)=>{e.resetToMax(t)},refresh:(e,t)=>{e.refresh(t)}}}),oz=bs("rgb-hex-update"),nz=bs("slider-update"),az=bs("palette-update"),rz=(e,t)=>{const o=tz.parts.spectrum({dom:{tag:"div",classes:[t("hue-slider-spectrum")],attributes:{role:"presentation"}}}),n=tz.parts.thumb({dom:{tag:"div",classes:[t("hue-slider-thumb")],attributes:{role:"presentation"}}});return tz.sketch({dom:{tag:"div",classes:[t("hue-slider")],attributes:{role:"slider","aria-valuemin":0,"aria-valuemax":360,"aria-valuenow":120}},rounded:!1,model:{mode:"y",getInitialValue:O(0)},components:[o,n],sliderBehaviours:qu([AC.config({})]),onChange:(e,t,o)=>{to(e.element,"aria-valuenow",Math.floor(360-3.6*o)),Tl(e,nz,{value:o})}})},iz="form",lz=[xg("formBehaviours",[jg])],sz=e=>"<alloy.field."+e+">",cz=e=>{const t=(()=>{const e=[],t=(t,o)=>(e.push(t),pf(iz,sz(t),o));return{field:t,record:O(e)}})(),o=e(t),n=t.record(),a=q(n,e=>nf({name:e,pname:sz(e)}));return Ef(iz,lz,a,uz,o)},dz=(e,t)=>e.fold(()=>ua.error(t),ua.value),uz=(e,t)=>({uid:e.uid,dom:e.dom,components:t,behaviours:Vg(e.formBehaviours,[jg.config({store:{mode:"manual",getValue:t=>{const o=yf(t,e);return pe(o,(e,t)=>e().bind(e=>{const o=$f.getCurrent(e);return dz(o,new Error(`Cannot find a current component to extract the value from for form part '${t}': `+ds(e.element)))}).map(jg.getValue))},setValue:(t,o)=>{he(o,(o,n)=>{wf(t,e,n).each(e=>{$f.getCurrent(e).each(e=>{jg.setValue(e,o)})})})}}})]),apis:{getField:(t,o)=>wf(t,e,o).bind($f.getCurrent)}}),mz={getField:Is((e,t,o)=>e.getField(t,o)),sketch:cz},hz=bs("valid-input"),pz=bs("invalid-input"),bz=bs("validating-input"),gz="colorcustom.rgb.",fz=(e,t,o,n)=>{const a=(o,n)=>wS.config({invalidClass:t("invalid"),notify:{onValidate:e=>{Tl(e,bz,{type:o})},onValid:e=>{Tl(e,hz,{type:o,value:jg.getValue(e)})},onInvalid:e=>{Tl(e,pz,{type:o,value:jg.getValue(e)})}},validator:{validate:t=>{const o=jg.getValue(t),a=n(o)?ua.value(!0):ua.error(e("aria.input.invalid"));return CE.pure(a)},validateOnLoad:!1}}),r=(o,n,r,i,l)=>{const s=e(gz+"range"),c=PT.parts.label({dom:{tag:"label",attributes:{"aria-label":i}},components:[Jc(r)]}),d=PT.parts.field({data:l,factory:r_,inputAttributes:{type:"text",..."hex"===n?{"aria-live":"polite"}:{}},inputClasses:[t("textfield")],inputBehaviours:qu([a(n,o),UT.config({})]),onSetValue:e=>{if(wS.isInvalid(e)){const t=wS.run(e);t.get(w)}}}),u=[c,d],m="hex"!==n?[PT.parts["aria-descriptor"]({text:s})]:[],h=u.concat(m);return{dom:{tag:"div",attributes:{role:"presentation"}},components:h}},i=(e,t)=>{const o=lN(t);return mz.getField(e,"hex").each(t=>{AC.isFocused(t)||jg.setValue(e,{hex:o.value})}),o},l=(e,t)=>{const o=t.red,n=t.green,a=t.blue;jg.setValue(e,{red:o,green:n,blue:a})},s=Yy({dom:{tag:"div",classes:[t("rgba-preview")],styles:{"background-color":"white"},attributes:{role:"presentation"}}}),c=(e,t)=>{s.getOpt(e).each(e=>{uo(e.element,"background-color","#"+t.value)})},d=()=>{const a={red:hi(T.some(255)),green:hi(T.some(255)),blue:hi(T.some(255)),hex:hi(T.some("ffffff"))},d=(e,t)=>{const o=gN(t);l(e,o),p(o)},u=e=>a[e].get(),m=(e,t)=>{a[e].set(t)},h=()=>u("red").bind(e=>u("green").bind(t=>u("blue").map(o=>hN(e,t,o,1)))),p=e=>{const t=e.red,o=e.green,n=e.blue;m("red",T.some(t)),m("green",T.some(o)),m("blue",T.some(n))},b=(e,t)=>{const o=t.event;"hex"!==o.type?m(o.type,T.none()):n(e)},g=(e,t)=>{o(e);const n=ZA(t);m("hex",T.some(n.value));const a=gN(n);l(e,a),p(a),Tl(e,oz,{hex:n}),c(e,n)},f=(e,t,o)=>{const n=parseInt(o,10);m(t,T.some(n)),h().each(t=>{const o=i(e,t);Tl(e,oz,{hex:o}),c(e,o)})},v=e=>"hex"===e.type,w=(e,t)=>{const o=t.event;v(o)?g(e,o.value):f(e,o.type,o.value)},k=t=>({label:e(gz+t+".label"),description:e(gz+t+".description")}),C=k("red"),y=k("green"),O=k("blue"),j=k("hex");return Da(mz.sketch(o=>({dom:{tag:"form",classes:[t("rgb-form")],attributes:{"aria-label":e("aria.color.picker")}},components:[o.field("red",PT.sketch(r(pN,"red",C.label,C.description,255))),o.field("green",PT.sketch(r(pN,"green",y.label,y.description,255))),o.field("blue",PT.sketch(r(pN,"blue",O.label,O.description,255))),o.field("hex",PT.sketch(r(tN,"hex",j.label,j.description,"ffffff"))),s.asSpec()],formBehaviours:qu([wS.config({invalidClass:t("form-invalid")}),wC("rgb-form-events",[ql(hz,w),ql(pz,b),ql(bz,b)])])})),{apis:{updateHex:(e,t)=>{jg.setValue(e,{hex:t.value}),d(e,t),c(e,t)}}})},u=Ff({factory:d,name:"RgbForm",configFields:[],apis:{updateHex:(e,t,o)=>{e.updateHex(t,o)}},extraApis:{}});return u},vz=(e,t)=>{const o=tz.parts.spectrum({dom:{tag:"canvas",attributes:{role:"presentation"},classes:[t("sv-palette-spectrum")]}}),n=tz.parts.thumb({dom:{tag:"div",attributes:{role:"presentation"},classes:[t("sv-palette-thumb")],innerHtml:`<div class=${t("sv-palette-inner-thumb")} role="presentation"></div>`}}),a=(e,t)=>{const{width:o,height:n}=e,a=e.getContext("2d");if(null===a)return;a.fillStyle=t,a.fillRect(0,0,o,n);const r=a.createLinearGradient(0,0,o,0);r.addColorStop(0,"rgba(255,255,255,1)"),r.addColorStop(1,"rgba(255,255,255,0)"),a.fillStyle=r,a.fillRect(0,0,o,n);const i=a.createLinearGradient(0,0,0,n);i.addColorStop(0,"rgba(0,0,0,0)"),i.addColorStop(1,"rgba(0,0,0,1)"),a.fillStyle=i,a.fillRect(0,0,o,n)},r=(e,t)=>{const o=e.components()[0].element.dom,n=YN(t,100,100),r=bN(n);a(o,wN(r))},i=(t,o)=>{const n=QN(gN(o));tz.setValue(t,{x:n.saturation,y:100-n.value}),to(t.element,"aria-valuetext",e(["Saturation {0}%, Brightness {1}%",n.saturation,n.value]))},l=r=>{const i=O({x:0,y:0}),l=(t,o,n)=>{f(n)||to(t.element,"aria-valuetext",e(["Saturation {0}%, Brightness {1}%",Math.floor(n.x),Math.floor(100-n.y)])),Tl(t,az,{value:n})},s=(e,t,o,n)=>{a(o.element.dom,wN(kN))},c=qu([$f.config({find:T.some}),AC.config({})]);return tz.sketch({dom:{tag:"div",attributes:{role:"slider","aria-valuetext":e(["Saturation {0}%, Brightness {1}%",0,0])},classes:[t("sv-palette")]},model:{mode:"xy",getInitialValue:i},rounded:!1,components:[o,n],onChange:l,onInit:s,sliderBehaviours:c})},s=Ff({factory:l,name:"SaturationBrightnessPalette",configFields:[],apis:{setHue:(e,t,o)=>{r(t,o)},setThumb:(e,t,o)=>{i(t,o)}},extraApis:{}});return s},wz=(e,t)=>{const o=o=>{const n=fz(e,t,o.onValidHex,o.onInvalidHex),a=vz(e,t),r=e=>(100-e)/100*360,i=e=>100-e/360*100,l={paletteRgba:hi(kN),paletteHue:hi(0)},s=Yy(rz(e,t)),c=Yy(a.sketch({})),d=Yy(n.sketch({})),u=(e,t,o)=>{c.getOpt(e).each(e=>{a.setHue(e,o)})},m=(e,t)=>{d.getOpt(e).each(e=>{n.updateHex(e,t)})},h=(e,t,o)=>{s.getOpt(e).each(e=>{tz.setValue(e,i(o))})},p=(e,t)=>{c.getOpt(e).each(e=>{a.setThumb(e,t)})},b=(e,t)=>{const o=gN(e);l.paletteRgba.set(o),l.paletteHue.set(t)},g=(e,t,o,n)=>{b(t,o),$(n,n=>{n(e,t,o)})},f=()=>{const e=[m];return(t,o)=>{const n=o.event.value,a=l.paletteHue.get(),r=YN(a,n.x,100-n.y),i=ZN(r);g(t,i,a,e)}},v=()=>{const e=[u,m];return(t,o)=>{const n=r(o.event.value),a=l.paletteRgba.get(),i=QN(a),s=YN(n,i.saturation,i.value),c=ZN(s);g(t,c,n,e)}},w=()=>{const e=[u,h,p];return(t,o)=>{const n=o.event.hex,a=JN(n);g(t,n,a.hue,e)}};return{uid:o.uid,dom:o.dom,components:[c.asSpec(),s.asSpec(),d.asSpec()],behaviours:qu([wC("colour-picker-events",[ql(oz,w()),ql(az,f()),ql(nz,v())]),$f.config({find:e=>d.getOpt(e)}),nC.config({mode:"acyclic"})])}},n=Ff({name:"ColourPicker",configFields:[Fr("dom"),ni("onValidHex",w),ni("onInvalidHex",w)],factory:o});return n},kz=()=>$f.config({find:T.some}),Cz=e=>$f.config({find:e.getOpt}),yz=e=>$f.config({find:t=>Ft(t.element,e).bind(e=>t.getSystem().getByDom(e).toOptional())}),Oz={self:kz,memento:Cz,childAt:yz},jz=sr([ni("preprocess",j),ni("postprocess",j)]),xz=(e,t)=>{const o=Dr("RepresentingConfigs.memento processors",jz,t);return jg.config({store:{mode:"manual",getValue:t=>{const n=e.get(t),a=jg.getValue(n);return o.postprocess(a)},setValue:(t,n)=>{const a=o.preprocess(n),r=e.get(t);jg.setValue(r,a)}}})},_z=(e,t,o)=>jg.config({store:{mode:"manual",...e.map(e=>({initialValue:e})).getOr({}),getValue:t,setValue:o}}),Vz=(e,t,o)=>_z(e,e=>t(e.element),(e,t)=>o(e.element,t)),Az=e=>Vz(e,ns,as),Nz=e=>jg.config({store:{mode:"memory",initialValue:e}}),Dz={"colorcustom.rgb.red.label":"R","colorcustom.rgb.red.description":"Red component","colorcustom.rgb.green.label":"G","colorcustom.rgb.green.description":"Green component","colorcustom.rgb.blue.label":"B","colorcustom.rgb.blue.description":"Blue component","colorcustom.rgb.hex.label":"#","colorcustom.rgb.hex.description":"Hex color code","colorcustom.rgb.range":"Range 0 to 255","aria.color.picker":"Color Picker","aria.input.invalid":"Invalid input"},Ez=e=>t=>l(t)?e.translate(Dz[t]):e.translate(t),Tz=(e,t,o)=>{const n=e=>"tox-"+e,a=wz(Ez(t),n),r=e=>{Tl(e,tS,{name:"hex-valid",value:!0})},i=e=>{Tl(e,tS,{name:"hex-valid",value:!1})},l=Yy(a.sketch({dom:{tag:"div",classes:[n("color-picker-container")],attributes:{role:"presentation"}},onValidHex:r,onInvalidHex:i}));return{dom:{tag:"div"},components:[l.asSpec()],behaviours:qu([_z(o,e=>{const t=l.get(e),o=$f.getCurrent(t),n=o.bind(e=>{const t=jg.getValue(e);return t.hex});return n.map(e=>"#"+Fe(e,"#")).getOr("")},(e,t)=>{const o=/^#([a-fA-F0-9]{3}(?:[a-fA-F0-9]{3})?)/,n=T.from(o.exec(t)).bind(e=>ie(e,1)),a=l.get(e),r=$f.getCurrent(a);r.fold(()=>{console.log("Can not find form")},e=>{jg.setValue(e,{hex:n.getOr("")}),mz.getField(e,"hex").each(e=>{El(e,Qi())})})}),Oz.self()])}};var Sz=tinymce.util.Tools.resolve("tinymce.Resource");const Bz=e=>je(e,"init"),Iz=e=>{const t=Dm(),o=Yy({dom:{tag:e.tag}}),n=Dm();return{dom:{tag:"div",classes:["tox-custom-editor"]},behaviours:qu([wC("custom-editor-events",[Zl(a=>{o.getOpt(a).each(o=>{(Bz(e)?e.init(o.element.dom):Sz.load(e.scriptId,e.scriptUrl).then(t=>t(o.element.dom,e.settings))).then(e=>{n.on(t=>{e.setValue(t)}),n.clear(),t.set(e)})})})]),_z(T.none(),()=>t.get().fold(()=>n.get().getOr(""),e=>e.getValue()),(e,o)=>{t.get().fold(()=>n.set(o),e=>e.setValue(o))}),Oz.self()]),components:[o.asSpec()]}};var zz=tinymce.util.Tools.resolve("tinymce.util.Tools");const Fz=(e,t)=>{const o=zz.explode(t.getOption("images_file_types")),n=e=>L(o,t=>Re(e.name.toLowerCase(),"."+t.toLowerCase()));return W(ce(e),n)},Mz=(e,t,o)=>{const n=(e,t)=>{t.stop()},a=e=>(t,o)=>{$(e,e=>{e(t,o)})},r=(e,t)=>{var o;if(!sv.isDisabled(e)){const n=t.event.raw;l(e,null===(o=n.dataTransfer)||void 0===o?void 0:o.files)}},i=(e,t)=>{const o=t.event.raw.target;l(e,o.files)},l=(o,n)=>{n&&(jg.setValue(o,Fz(n,t)),Tl(o,ZT,{name:e.name}))},s=Yy({dom:{tag:"input",attributes:{type:"file",accept:"image/*"},styles:{display:"none"}},behaviours:qu([wC("input-file-events",[Yl(Zi()),Yl(ul())])])}),c=e=>({uid:e.uid,dom:{tag:"div",classes:["tox-dropzone-container"]},behaviours:qu([Nz(o.getOr([])),Oz.self(),sv.config({}),GC.config({toggleClass:"dragenter",toggleOnExecute:!1}),wC("dropzone-events",[ql("dragenter",a([n,GC.toggle])),ql("dragleave",a([n,GC.toggle])),ql("dragover",n),ql("drop",a([n,r])),ql(Ji(),i)])]),components:[{dom:{tag:"div",classes:["tox-dropzone"],styles:{}},components:[{dom:{tag:"p"},components:[Jc(t.translate("Drop an image here"))]},Hy.sketch({dom:{tag:"button",styles:{position:"relative"},classes:["tox-button","tox-button--secondary"]},components:[Jc(t.translate("Browse for an image")),s.asSpec()],action:e=>{const t=s.get(e);t.element.dom.click()},buttonBehaviours:qu([UT.config({}),kA.button(t.isDisabled),bA()])})]}]}),d=e.label.map(e=>JT(e,t)),u=PT.parts.field({factory:{sketch:c}});return WT(d,u,["tox-form__group--stretched"],[])},Lz=(e,t)=>({dom:{tag:"div",classes:["tox-form__grid",`tox-form__grid--${e.columns}col`]},components:q(e.items,t.interpreter)}),Pz=(e,t)=>{let o=null,n=null;const a=()=>{u(o)||(clearTimeout(o),o=null,n=null)},r=(...a)=>{n=a,u(o)&&(o=setTimeout(()=>{const t=n;o=null,n=null,e.apply(null,t)},t))};return{cancel:a,throttle:r}},Rz=(e,t)=>{let o=null;const n=()=>{u(o)||(clearTimeout(o),o=null)},a=(...n)=>{u(o)&&(o=setTimeout(()=>{o=null,e.apply(null,n)},t))};return{cancel:n,throttle:a}},qz=(e,t)=>{let o=null;const n=()=>{u(o)||(clearTimeout(o),o=null)},a=(...a)=>{n(),o=setTimeout(()=>{o=null,e.apply(null,a)},t)};return{cancel:n,throttle:a}},$z=bs("alloy-fake-before-tabstop"),Uz=bs("alloy-fake-after-tabstop"),Hz=e=>({dom:{tag:"div",styles:{width:"1px",height:"1px",outline:"none"},attributes:{tabindex:"0"},classes:e},behaviours:qu([AC.config({ignore:!0}),UT.config({})])}),Wz=(e,t)=>({dom:{tag:"div",classes:["tox-navobj",...e.getOr([])]},components:[Hz([$z]),t,Hz([Uz])],behaviours:qu([Oz.childAt(1)])}),Gz=(e,t)=>{Tl(e,Ki(),{raw:{which:9,shiftKey:t}})},Kz=(e,t)=>{const o=t.element;yc(o,$z)?Gz(e,!0):yc(o,Uz)&&Gz(e,!1)},Yz=e=>dT(e,["."+$z,"."+Uz].join(","),D),Qz=bs("update-dialog"),Jz=bs("update-title"),Zz=bs("update-body"),Xz=bs("update-footer"),eF=bs("body-send-message"),tF=bs("dialog-focus-shifted"),oF=xn().browser,nF=oF.isSafari(),aF=oF.isFirefox(),rF=nF||aF,iF=oF.isChromium(),lF=({scrollTop:e,scrollHeight:t,clientHeight:o})=>Math.ceil(e)+o>=t,sF=(e,t)=>e.scrollTo(0,"bottom"===t?99999999:t),cF=(e,t)=>{const o=e.body;return T.from(!/^<!DOCTYPE (html|HTML)/.test(t)&&(!iF&&!nF||b(o)&&(0!==o.scrollTop||Math.abs(o.scrollHeight-o.clientHeight)>1))?o:e.documentElement)},dF=(e,t,o)=>{const n=e.dom;T.from(n.contentDocument).fold(o,e=>{let o=0;const a=cF(e,t).map(e=>(o=e.scrollTop,e)).forall(lF),r=()=>{const e=n.contentWindow;b(e)&&(a?sF(e,"bottom"):!a&&rF&&0!==o&&sF(e,o))};nF&&n.addEventListener("load",r,{once:!0}),e.open(),e.write(t),e.close(),nF||r()})},uF=Se(rF,nF?500:200),mF=uF.map(e=>Pz(dF,e)),hF=(e,t)=>{const o=hi(e.getOr(""));return{getValue:e=>o.get(),setValue:(e,n)=>{if(o.get()!==n){const o=e.element,a=()=>to(o,"srcdoc",n);t?mF.fold(O(dF),e=>e.throttle)(o,n,a):a()}o.set(n)}}},pF=(e,t,o)=>{const n="tox-dialog__iframe",a=e.transparent?[]:[n+"--opaque"],r=e.border?["tox-navobj-bordered"]:[],i={...e.label.map(e=>({title:e})).getOr({}),...o.map(e=>({srcdoc:e})).getOr({}),...e.sandboxed?{sandbox:"allow-scripts allow-same-origin"}:{}},l=hF(o,e.streamContent),s=e.label.map(e=>JT(e,t)),c=e=>Wz(T.from(r),{uid:e.uid,dom:{tag:"iframe",attributes:i,classes:[n,...a]},behaviours:qu([UT.config({}),AC.config({}),_z(o,l.getValue,l.setValue),Ku.config({channels:{[tF]:{onReceive:(e,t)=>{t.newFocus.each(t=>{Tt(e.element).each(o=>{const n=jt(e.element,t)?vc:kc;n(o,"tox-navobj-bordered-focus")})})}}}})])}),d=PT.parts.field({factory:{sketch:c}});return WT(s,d,["tox-form__group--stretched"],[])},bF=e=>new Promise((t,o)=>{const n=()=>{r(),t(e)},a=[Tm(e,"load",n),Tm(e,"error",()=>{r(),o("Unable to load data from image: "+e.dom.src)})],r=()=>$(a,e=>e.unbind());e.dom.complete&&n()}),gF=(e,t,o,n,a)=>{const r=o*a,i=n*a,l=Math.max(0,e/2-r/2),s=Math.max(0,t/2-i/2);return{left:l.toString()+"px",top:s.toString()+"px",width:r.toString()+"px",height:i.toString()+"px"}},fF=(e,t,o)=>{const n=Bo(e),a=Oo(e);return Math.min(n/t,a/o,1)},vF=(e,t)=>{const o=hi(t.getOr({url:""})),n=Yy({dom:{tag:"img",classes:["tox-imagepreview__image"],attributes:t.map(e=>({src:e.url})).getOr({})}}),a=Yy({dom:{tag:"div",classes:["tox-imagepreview__container"],attributes:{role:"presentation"}},components:[n.asSpec()]}),r=(e,t)=>{const r={url:t.url};t.zoom.each(e=>r.zoom=e),t.cachedWidth.each(e=>r.cachedWidth=e),t.cachedHeight.each(e=>r.cachedHeight=e),o.set(r);const i=()=>{const{cachedWidth:t,cachedHeight:o,zoom:n}=r;if(!h(t)&&!h(o)){if(h(n)){const n=fF(e.element,t,o);r.zoom=n}const i=gF(Bo(e.element),Oo(e.element),t,o,r.zoom);a.getOpt(e).each(e=>{mo(e.element,i)})}};n.getOpt(e).each(o=>{const n=o.element;t.url!==no(n,"src")&&(to(n,"src",t.url),kc(e.element,"tox-imagepreview__loaded")),i(),bF(n).then(t=>{e.getSystem().isConnected()&&(vc(e.element,"tox-imagepreview__loaded"),r.cachedWidth=t.dom.naturalWidth,r.cachedHeight=t.dom.naturalHeight,i())})})},i={};e.height.each(e=>i.height=e);const l=t.map(e=>({url:e.url,zoom:T.from(e.zoom),cachedWidth:T.from(e.cachedWidth),cachedHeight:T.from(e.cachedHeight)}));return{dom:{tag:"div",classes:["tox-imagepreview"],styles:i,attributes:{role:"presentation"}},components:[a.asSpec()],behaviours:qu([Oz.self(),_z(l,()=>o.get(),r)])}},wF=(e,t)=>{const o="tox-label",n="center"===e.align?[o+"--center"]:[],a="end"===e.align?[o+"--end"]:[],r={dom:{tag:"label",classes:[o,...n,...a]},components:[Jc(t.providers.translate(e.label))]},i=q(e.items,t.interpreter);return{dom:{tag:"div",classes:["tox-form__group"]},components:[r,...i],behaviours:qu([Oz.self(),fC.config({}),Az(T.none()),nC.config({mode:"acyclic"})])}},kF=bs("toolbar.button.execute"),CF=e=>ts((t,o)=>{CA(e,t)(o=>{Tl(t,kF,{buttonApi:o}),e.onAction(o)})}),yF=bs("common-button-display-events"),OF={[cl()]:["disabling","alloy.base.behaviour","toggling","toolbar-button-events"],[kl()]:["toolbar-button-events",yF],[Ri()]:["focusing","alloy.base.behaviour",yF]},jF=e=>uo(e.element,"width",po(e.element,"width")),xF=(e,t,o)=>rj(e,{tag:"span",classes:["tox-icon","tox-tbtn__icon-wrap"],behaviours:o},t),_F=(e,t)=>xF(e,t,[]),VF=(e,t)=>xF(e,t,[fC.config({})]),AF=(e,t,o)=>({dom:{tag:"span",classes:[t+"__select-label"]},components:[Jc(o.translate(e))],behaviours:qu([fC.config({})])}),NF=bs("update-menu-text"),DF=bs("update-menu-icon"),EF=(e,t,o)=>{const n=hi(w),a=e.text.map(e=>Yy(AF(e,t,o.providers))),r=e.icon.map(e=>Yy(VF(e,o.providers.icons))),i=(e,t)=>{const o=jg.getValue(e);return AC.focus(o),Tl(o,"keydown",{raw:t.event.raw}),LE.close(o),T.some(!0)},l=e.role.fold(()=>({}),e=>({role:e})),s=e.tooltip.fold(()=>({}),e=>{const t=o.providers.translate(e);return{title:t,"aria-label":t}}),c=rj("chevron-down",{tag:"div",classes:[t+"__select-chevron"]},o.providers.icons),d=bs("common-button-display-events"),u=Yy(LE.sketch({...e.uid?{uid:e.uid}:{},...l,dom:{tag:"button",classes:[t,t+"--select"].concat(q(e.classes,e=>`${t}--${e}`)),attributes:{...s}},components:_A([r.map(e=>e.asSpec()),a.map(e=>e.asSpec()),T.some(c)]),matchWidth:!0,useMinWidth:!0,onOpen:(t,o,n)=>{e.searchable&&GE(n)},dropdownBehaviours:qu([...e.dropdownBehaviours,kA.button(()=>e.disabled||o.providers.isDisabled()),bA(),OS.config({}),fC.config({}),wC("dropdown-events",[yA(e,n),OA(e,n)]),wC(d,[Zl((e,t)=>jF(e))]),wC("menubutton-update-display-text",[ql(NF,(e,t)=>{a.bind(t=>t.getOpt(e)).each(e=>{fC.set(e,[Jc(o.providers.translate(t.event.text))])})}),ql(DF,(e,t)=>{r.bind(t=>t.getOpt(e)).each(e=>{fC.set(e,[VF(t.event.icon,o.providers.icons)])})})])]),eventOrder:Da(OF,{mousedown:["focusing","alloy.base.behaviour","item-type-events","normal-dropdown-events"],[kl()]:["toolbar-button-events","dropdown-events",d]}),sandboxBehaviours:qu([nC.config({mode:"special",onLeft:i,onRight:i}),wC("dropdown-sandbox-events",[ql(i_,(e,t)=>{RE(e),t.stop()}),ql(l_,(e,t)=>{qE(e,t),t.stop()})])]),lazySink:o.getSink,toggleClass:t+"--active",parts:{menu:{...Xx(!1,e.columns,e.presets),fakeFocus:e.searchable,onHighlightItem:HE,onCollapseMenu:(e,t,o)=>{Av.getHighlighted(o).each(t=>{HE(e,o,t)})},onDehighlightItem:WE}},getAnchorOverrides:()=>({maxHeightFunction:(e,t)=>{Zm()(e,t-10)}}),fetch:t=>CE.nu(_(e.fetch,t))}));return u.asSpec()},TF=e=>l(e),SF=e=>"separator"===e.type,BF=e=>je(e,"getSubmenuItems"),IF={type:"separator"},zF=(e,t)=>{const o=K(e,(e,o)=>TF(o)?""===o?e:"|"===o?e.length>0&&!SF(e[e.length-1])?e.concat([IF]):e:je(t,o.toLowerCase())?e.concat([t[o.toLowerCase()]]):e:e.concat([o]),[]);return o.length>0&&SF(o[o.length-1])&&o.pop(),o},FF=(e,t)=>{const o=e.getSubmenuItems(),n=LF(o,t),a=Da(n.menus,{[e.value]:n.items}),r=Da(n.expansions,{[e.value]:e.value});return{item:e,menus:a,expansions:r}},MF=e=>{const t=Oe(e,"value").getOrThunk(()=>bs("generated-menu-item"));return Da({value:t},e)},LF=(e,t)=>{const o=zF(l(e)?e.split(" "):e,t);return G(o,(e,o)=>{if(BF(o)){const n=MF(o),a=FF(n,t);return{menus:Da(e.menus,a.menus),items:[a.item,...e.items],expansions:Da(e.expansions,a.expansions)}}return{...e,items:[o,...e.items]}},{menus:{},expansions:{},items:[]})},PF=e=>e.search.fold(()=>({searchMode:"no-search"}),e=>({searchMode:"search-with-field",placeholder:e.placeholder})),RF=e=>e.search.fold(()=>({searchMode:"no-search"}),e=>({searchMode:"search-with-results"})),qF=(e,t,o,n)=>{const a=bs("primary-menu"),r=LF(e,o.shared.providers.menuItems());if(0===r.items.length)return T.none();const i=PF(n),l=ZE(a,r.items,t,o,n.isHorizontalMenu,i),s=RF(n),c=pe(r.menus,(e,n)=>ZE(n,e,t,o,!1,s)),d=Da(c,Ci(a,l));return T.from(Ly.tieredData(a,d,r.expansions))},$F=e=>!je(e,"items"),UF="data-value",HF=(e,t,o,n)=>q(o,o=>$F(o)?{type:"togglemenuitem",text:o.text,value:o.value,active:o.value===n,onAction:()=>{jg.setValue(e,o.value),Tl(e,ZT,{name:t}),AC.focus(e)}}:{type:"nestedmenuitem",text:o.text,getSubmenuItems:()=>HF(e,t,o.items,n)}),WF=(e,t)=>de(e,e=>$F(e)?Se(e.value===t,e):WF(e.items,t)),GF=(e,t,o)=>{const n=t.shared.providers,a=o.bind(t=>WF(e.items,t)).orThunk(()=>le(e.items).filter($F)),r=e.label.map(e=>JT(e,n)),i=PT.parts.field({dom:{},factory:{sketch:o=>EF({uid:o.uid,text:a.map(e=>e.text),icon:T.none(),tooltip:e.label,role:T.none(),fetch:(o,n)=>{const a=HF(o,e.name,e.items,jg.getValue(o));n(qF(a,_x.CLOSE_ON_EXECUTE,t,{isHorizontalMenu:!1,search:T.none()}))},onSetup:O(w),getApi:O({}),columns:1,presets:"normal",classes:[],dropdownBehaviours:[UT.config({}),_z(a.map(e=>e.value),e=>no(e.element,UF),(t,o)=>{WF(e.items,o).each(e=>{to(t.element,UF,e.value),Tl(t,NF,{text:e.text})})})]},"tox-listbox",t.shared)}}),l={dom:{tag:"div",classes:["tox-listboxfield"]},components:[i]};return PT.sketch({dom:{tag:"div",classes:["tox-form__group"]},components:Z([r.toArray(),[l]]),fieldBehaviours:qu([sv.config({disabled:O(!e.enabled),onDisabled:e=>{PT.getField(e).each(sv.disable)},onEnabled:e=>{PT.getField(e).each(sv.enable)}})])})},KF=(e,t)=>({dom:{tag:"div",classes:e.classes},components:q(e.items,t.shared.interpreter)}),YF=(e,t)=>{const o=q(e.options,e=>({dom:{tag:"option",value:e.value,innerHtml:e.text}})),n=e.data.map(e=>Ci("initialValue",e)).getOr({});return{uid:e.uid,dom:{tag:"select",classes:e.selectClasses,attributes:e.selectAttributes},components:o,behaviours:Vg(e.selectBehaviours,[AC.config({}),jg.config({store:{mode:"manual",getValue:e=>Nc(e.element),setValue:(t,o)=>{const n=le(e.options),a=Q(e.options,e=>e.value===o);a.isSome()?Dc(t.element,o):-1===t.element.dom.selectedIndex&&""===o&&n.each(e=>Dc(t.element,e.value))},...n}})])}},QF=Ff({name:"HtmlSelect",configFields:[Fr("options"),xg("selectBehaviours",[AC,jg]),ni("selectClasses",[]),ni("selectAttributes",{}),Kr("data")],factory:YF}),JF=(e,t,o)=>{const n=q(e.items,e=>({text:t.translate(e.text),value:e.value})),a=e.label.map(e=>JT(e,t)),r=PT.parts.field({dom:{},...o.map(e=>({data:e})).getOr({}),selectAttributes:{size:e.size},options:n,factory:QF,selectBehaviours:qu([sv.config({disabled:()=>!e.enabled||t.isDisabled()}),UT.config({}),wC("selectbox-change",[ql(Ji(),(t,o)=>{Tl(t,ZT,{name:e.name})})])])}),i=e.size>1?T.none():T.some(rj("chevron-down",{tag:"div",classes:["tox-selectfield__icon-js"]},t.icons)),l={dom:{tag:"div",classes:["tox-selectfield"]},components:Z([[r],i.toArray()])};return PT.sketch({dom:{tag:"div",classes:["tox-form__group"]},components:Z([a.toArray(),[l]]),fieldBehaviours:qu([sv.config({disabled:()=>!e.enabled||t.isDisabled(),onDisabled:e=>{PT.getField(e).each(sv.disable)},onEnabled:e=>{PT.getField(e).each(sv.enable)}}),bA()])})},ZF=O([ni("field1Name","field1"),ni("field2Name","field2"),Ld("onLockedChange"),Id(["lockClass"]),ni("locked",!1),Ag.field("coupledFieldBehaviours",[$f,jg])]),XF=(e,t,o)=>wf(e,t,o).bind($f.getCurrent),eM=(e,t)=>nf({factory:PT,name:e,overrides:e=>({fieldBehaviours:qu([wC("coupled-input-behaviour",[ql(Qi(),o=>{XF(o,e,t).each(t=>{wf(o,e,"lock").each(n=>{GC.isOn(n)&&e.onLockedChange(o,t,n)})})})])])})}),tM=O([eM("field1","field2"),eM("field2","field1"),nf({factory:Hy,schema:[Fr("dom")],name:"lock",overrides:e=>({buttonBehaviours:qu([GC.config({selected:e.locked,toggleClass:e.markers.lockClass,aria:{mode:"pressed"}})])})})]),oM=(e,t,o,n)=>({uid:e.uid,dom:e.dom,components:t,behaviours:Ag.augment(e.coupledFieldBehaviours,[$f.config({find:T.some}),jg.config({store:{mode:"manual",getValue:t=>{const o=jf(t,e,["field1","field2"]);return{[e.field1Name]:jg.getValue(o.field1()),[e.field2Name]:jg.getValue(o.field2())}},setValue:(t,o)=>{const n=jf(t,e,["field1","field2"]);xe(o,e.field1Name)&&jg.setValue(n.field1(),o[e.field1Name]),xe(o,e.field2Name)&&jg.setValue(n.field2(),o[e.field2Name])}}})]),apis:{getField1:t=>wf(t,e,"field1"),getField2:t=>wf(t,e,"field2"),getLock:t=>wf(t,e,"lock")}}),nM=Mf({name:"FormCoupledInputs",configFields:ZF(),partFields:tM(),factory:oM,apis:{getField1:(e,t)=>e.getField1(t),getField2:(e,t)=>e.getField2(t),getLock:(e,t)=>e.getLock(t)}}),aM=e=>{const t={"":0,px:0,pt:1,mm:1,pc:2,ex:2,em:2,ch:2,rem:2,cm:3,in:4,"%":4},o=e=>e in t?t[e]:1;let n=e.value.toFixed(o(e.unit));return-1!==n.indexOf(".")&&(n=n.replace(/\.?0*$/,"")),n+e.unit},rM=e=>{const t=/^\s*(\d+(?:\.\d+)?)\s*(|cm|mm|in|px|pt|pc|em|ex|ch|rem|vw|vh|vmin|vmax|%)\s*$/,o=t.exec(e);if(null!==o){const e=parseFloat(o[1]),t=o[2];return ua.value({value:e,unit:t})}return ua.error(e)},iM=(e,t)=>{const o={"":96,px:96,pt:72,cm:2.54,pc:12,mm:25.4,in:1},n=e=>je(o,e);return e.unit===t?T.some(e.value):n(e.unit)&&n(t)?o[e.unit]===o[t]?T.some(e.value):T.some(e.value/o[e.unit]*o[t]):T.none()},lM=e=>T.none(),sM=(e,t)=>o=>iM(o,t).map(o=>({value:o*e,unit:t})),cM=(e,t)=>{const o=rM(e).toOptional(),n=rM(t).toOptional();return De(o,n,(e,t)=>iM(e,t.unit).map(e=>t.value/e).map(e=>sM(e,t.unit)).getOr(lM)).getOr(lM)},dM=(e,t)=>{let o=lM;const n=bs("ratio-event"),a=e=>rj(e,{tag:"span",classes:["tox-icon","tox-lock-icon__"+e]},t.icons),r=nM.parts.lock({dom:{tag:"button",classes:["tox-lock","tox-button","tox-button--naked","tox-button--icon"],attributes:{title:t.translate(e.label.getOr("Constrain proportions"))}},components:[a("lock"),a("unlock")],buttonBehaviours:qu([sv.config({disabled:()=>!e.enabled||t.isDisabled()}),bA(),UT.config({})])}),i=e=>({dom:{tag:"div",classes:["tox-form__group"]},components:e}),l=o=>PT.parts.field({factory:r_,inputClasses:["tox-textfield"],inputBehaviours:qu([sv.config({disabled:()=>!e.enabled||t.isDisabled()}),bA(),UT.config({}),wC("size-input-events",[ql(Wi(),(e,t)=>{Tl(e,n,{isField1:o})}),ql(Ji(),(t,o)=>{Tl(t,ZT,{name:e.name})})])]),selectOnFocus:!1}),s=e=>({dom:{tag:"label",classes:["tox-label"]},components:[Jc(t.translate(e))]}),c=nM.parts.field1(i([PT.parts.label(s("Width")),l(!0)])),d=nM.parts.field2(i([PT.parts.label(s("Height")),l(!1)]));return nM.sketch({dom:{tag:"div",classes:["tox-form__group"]},components:[{dom:{tag:"div",classes:["tox-form__controls-h-stack"]},components:[c,d,i([s(Sh),r])]}],field1Name:"width",field2Name:"height",locked:!0,markers:{lockClass:"tox-locked"},onLockedChange:(e,t,n)=>{rM(jg.getValue(e)).each(e=>{o(e).each(e=>{jg.setValue(t,aM(e))})})},coupledFieldBehaviours:qu([sv.config({disabled:()=>!e.enabled||t.isDisabled(),onDisabled:e=>{nM.getField1(e).bind(PT.getField).each(sv.disable),nM.getField2(e).bind(PT.getField).each(sv.disable),nM.getLock(e).each(sv.disable)},onEnabled:e=>{nM.getField1(e).bind(PT.getField).each(sv.enable),nM.getField2(e).bind(PT.getField).each(sv.enable),nM.getLock(e).each(sv.enable)}}),bA(),wC("size-input-events2",[ql(n,(e,t)=>{const n=t.event.isField1,a=n?nM.getField1(e):nM.getField2(e),r=n?nM.getField2(e):nM.getField1(e),i=a.map(jg.getValue).getOr(""),l=r.map(jg.getValue).getOr("");o=cM(i,l)})])])})},uM=(e,t,o)=>{const n=tz.parts.label({dom:{tag:"label",classes:["tox-label"]},components:[Jc(t.translate(e.label))]}),a=tz.parts.spectrum({dom:{tag:"div",classes:["tox-slider__rail"],attributes:{role:"presentation"}}}),r=tz.parts.thumb({dom:{tag:"div",classes:["tox-slider__handle"],attributes:{role:"presentation"}}});return tz.sketch({dom:{tag:"div",classes:["tox-slider"],attributes:{role:"presentation"}},model:{mode:"x",minX:e.min,maxX:e.max,getInitialValue:O(o.getOrThunk(()=>(Math.abs(e.max)-Math.abs(e.min))/2))},components:[n,a,r],sliderBehaviours:qu([Oz.self(),AC.config({})]),onChoose:(t,o,n)=>{Tl(t,ZT,{name:e.name,value:n})}})},mM=(e,t)=>{const o=e=>({dom:{tag:"th",innerHtml:t.translate(e)}}),n=e=>({dom:{tag:"thead"},components:[{dom:{tag:"tr"},components:q(e,o)}]}),a=e=>({dom:{tag:"td",innerHtml:t.translate(e)}}),r=e=>({dom:{tag:"tr"},components:q(e,a)}),i=e=>({dom:{tag:"tbody"},components:q(e,r)});return{dom:{tag:"table",classes:["tox-dialog__table"]},components:[n(e.header),i(e.cells)],behaviours:qu([UT.config({}),AC.config({})])}},hM=(e,t)=>{const o=e.label.map(e=>JT(e,t)),n=[sv.config({disabled:()=>e.disabled||t.isDisabled()}),bA(),nC.config({mode:"execution",useEnter:!0!==e.multiline,useControlEnter:!0===e.multiline,execute:e=>(El(e,oS),T.some(!0))}),wC("textfield-change",[ql(Qi(),(t,o)=>{Tl(t,ZT,{name:e.name})}),ql(ll(),(t,o)=>{Tl(t,ZT,{name:e.name})})]),UT.config({})],a=e.validation.map(e=>wS.config({getRoot:e=>Tt(e.element),invalidClass:"tox-invalid",validator:{validate:t=>{const o=jg.getValue(t),n=e.validator(o);return CE.pure(!0===n?ua.value(o):ua.error(n))},validateOnLoad:e.validateOnLoad}})).toArray(),r=e.placeholder.fold(O({}),e=>({placeholder:t.translate(e)})),i=e.inputMode.fold(O({}),e=>({inputmode:e})),l={...r,...i},s=PT.parts.field({tag:!0===e.multiline?"textarea":"input",...e.data.map(e=>({data:e})).getOr({}),inputAttributes:l,inputClasses:[e.classname],inputBehaviours:qu(Z([n,a])),selectOnFocus:!1,factory:r_}),c=e.multiline?{dom:{tag:"div",classes:["tox-textarea-wrap"]},components:[s]}:s,d=e.flex?["tox-form__group--stretched"]:[],u=d.concat(e.maximized?["tox-form-group--maximize"]:[]),m=[sv.config({disabled:()=>e.disabled||t.isDisabled(),onDisabled:e=>{PT.getField(e).each(sv.disable)},onEnabled:e=>{PT.getField(e).each(sv.enable)}}),bA()];return WT(o,c,u,m)},pM=(e,t,o)=>hM({name:e.name,multiline:!1,label:e.label,inputMode:e.inputMode,placeholder:e.placeholder,flex:!1,disabled:!e.enabled,classname:"tox-textfield",validation:T.none(),maximized:e.maximized,data:o},t),bM=(e,t,o)=>hM({name:e.name,multiline:!0,label:e.label,inputMode:T.none(),placeholder:e.placeholder,flex:!0,disabled:!e.enabled,classname:"tox-textarea",validation:T.none(),maximized:e.maximized,data:o},t),gM=(e,t)=>t.getAnimationRoot.fold(()=>e.element,t=>t(e)),fM=e=>e.dimension.property,vM=(e,t)=>e.dimension.getDimension(t),wM=(e,t)=>{const o=gM(e,t);jc(o,[t.shrinkingClass,t.growingClass])},kM=(e,t)=>{kc(e.element,t.openClass),vc(e.element,t.closedClass),uo(e.element,fM(t),"0px"),ko(e.element)},CM=(e,t)=>{kc(e.element,t.closedClass),vc(e.element,t.openClass),wo(e.element,fM(t))},yM=(e,t,o,n)=>{o.setCollapsed(),uo(e.element,fM(t),vM(t,e.element)),wM(e,t),kM(e,t),t.onStartShrink(e),t.onShrunk(e)},OM=(e,t,o,n)=>{const a=n.getOrThunk(()=>vM(t,e.element));o.setCollapsed(),uo(e.element,fM(t),a),ko(e.element);const r=gM(e,t);kc(r,t.growingClass),vc(r,t.shrinkingClass),kM(e,t),t.onStartShrink(e)},jM=(e,t,o)=>{const n=vM(t,e.element),a="0px"===n?yM:OM;a(e,t,o,T.some(n))},xM=(e,t,o)=>{const n=gM(e,t),a=yc(n,t.shrinkingClass),r=vM(t,e.element);CM(e,t);const i=vM(t,e.element),l=()=>{uo(e.element,fM(t),r),ko(e.element)},s=()=>{kM(e,t)},c=a?l:s;c(),kc(n,t.shrinkingClass),vc(n,t.growingClass),CM(e,t),uo(e.element,fM(t),i),o.setExpanded(),t.onStartGrow(e)},_M=(e,t,o)=>{if(o.isExpanded()){wo(e.element,fM(t));const o=vM(t,e.element);uo(e.element,fM(t),o)}},VM=(e,t,o)=>{o.isExpanded()||xM(e,t,o)},AM=(e,t,o)=>{o.isExpanded()&&jM(e,t,o)},NM=(e,t,o)=>{o.isExpanded()&&yM(e,t,o)},DM=(e,t,o)=>o.isExpanded(),EM=(e,t,o)=>o.isCollapsed(),TM=(e,t,o)=>{const n=gM(e,t);return!0===yc(n,t.growingClass)},SM=(e,t,o)=>{const n=gM(e,t);return!0===yc(n,t.shrinkingClass)},BM=(e,t,o)=>TM(e,t)||SM(e,t),IM=(e,t,o)=>{const n=o.isExpanded()?jM:xM;n(e,t,o)},zM=(e,t,o)=>{o.isExpanded()||(CM(e,t),uo(e.element,fM(t),vM(t,e.element)),wM(e,t),o.setExpanded(),t.onStartGrow(e),t.onGrown(e))};var FM=Object.freeze({__proto__:null,refresh:_M,grow:VM,shrink:AM,immediateShrink:NM,hasGrown:DM,hasShrunk:EM,isGrowing:TM,isShrinking:SM,isTransitioning:BM,toggleGrow:IM,disableTransitions:wM,immediateGrow:zM});const MM=(e,t,o)=>{const n=t.expanded;return qs(n?{classes:[t.openClass],styles:{}}:{classes:[t.closedClass],styles:Ci(t.dimension.property,"0px")})},LM=(e,t)=>Ml([Jl(el(),(o,n)=>{const a=n.event.raw;if(a.propertyName===e.dimension.property){wM(o,e),t.isExpanded()&&wo(o.element,e.dimension.property);const n=t.isExpanded()?e.onGrown:e.onShrunk;n(o)}})]);var PM=Object.freeze({__proto__:null,exhibit:MM,events:LM}),RM=[Fr("closedClass"),Fr("openClass"),Fr("shrinkingClass"),Fr("growingClass"),Kr("getAnimationRoot"),Fd("onShrunk"),Fd("onStartShrink"),Fd("onGrown"),Fd("onStartGrow"),ni("expanded",!1),Mr("dimension",Tr("property",{width:[Rd("property","width"),Rd("getDimension",e=>Bo(e)+"px")],height:[Rd("property","height"),Rd("getDimension",e=>Oo(e)+"px")]}))];const qM=e=>{const t=hi(e.expanded),o=()=>"expanded: "+t.get();return Fs({isExpanded:()=>!0===t.get(),isCollapsed:()=>!1===t.get(),setCollapsed:_(t.set,!1),setExpanded:_(t.set,!0),readState:o})};var $M=Object.freeze({__proto__:null,init:qM});const UM=Uu({fields:RM,name:"sliding",active:PM,apis:FM,state:$M}),HM=e=>({isEnabled:()=>!sv.isDisabled(e),setEnabled:t=>sv.set(e,!t),setActive:t=>{const o=e.element;t?(vc(o,"tox-tbtn--enabled"),to(o,"aria-pressed",!0)):(kc(o,"tox-tbtn--enabled"),io(o,"aria-pressed"))},isActive:()=>yc(e.element,"tox-tbtn--enabled"),setText:t=>{Tl(e,NF,{text:t})},setIcon:t=>Tl(e,DF,{icon:t})}),WM=(e,t,o,n,a=!0)=>EF({text:e.text,icon:e.icon,tooltip:e.tooltip,searchable:e.search.isSome(),role:n,fetch:(t,n)=>{const a={pattern:e.search.isSome()?KE(t):""};e.fetch(t=>{n(qF(t,_x.CLOSE_ON_EXECUTE,o,{isHorizontalMenu:!1,search:e.search}))},a,HM(t))},onSetup:e.onSetup,getApi:HM,columns:1,presets:"normal",classes:[],dropdownBehaviours:[...a?[UT.config({})]:[]]},t,o.shared),GM=(e,t,o)=>{const n=e=>n=>{const a=!n.isActive();n.setActive(a),e.storage.set(a),o.shared.getSink().each(o=>{t().getOpt(o).each(t=>{Ju(t.element),Tl(t,tS,{name:e.name,value:e.storage.get()})})})},a=e=>t=>{t.setActive(e.storage.get())};return t=>{t(q(e,e=>{const t=e.text.fold(()=>({}),e=>({text:e}));return{type:e.type,active:!1,...t,onAction:n(e),onSetup:a(e)}}))}},KM=e=>({dom:{tag:"span",classes:["tox-tree__label"],attributes:{title:e,"aria-label":e}},components:[Jc(e)]}),YM=bs("leaf-label-event-id"),QM=({leaf:e,onLeafAction:t,visible:o,treeId:n,selectedId:a,backstage:r})=>{const i=e.menu.map(e=>WM(e,"tox-mbtn",r,T.none(),o)),l=[KM(e.title)];return i.each(e=>l.push(e)),Hy.sketch({dom:{tag:"div",classes:["tox-tree--leaf__label","tox-trbtn"].concat(o?["tox-tree--leaf__label--visible"]:[])},components:l,role:"treeitem",action:o=>{t(e.id),o.getSystem().broadcastOn(["update-active-item-"+n],{value:e.id})},eventOrder:{[Ki()]:[YM,"keying"]},buttonBehaviours:qu([...o?[UT.config({})]:[],GC.config({toggleClass:"tox-trbtn--enabled",toggleOnExecute:!1,aria:{mode:"selected"}}),Ku.config({channels:{["update-active-item-"+n]:{onReceive:(t,o)=>{(o.value===e.id?GC.on:GC.off)(t)}}}}),wC(YM,[Zl((t,o)=>{a.each(o=>{const n=o===e.id?GC.on:GC.off;n(t)})}),ql(Ki(),(e,t)=>{const o="ArrowLeft"===t.event.raw.code,n="ArrowRight"===t.event.raw.code;o?(dd(e.element,".tox-tree--directory").each(t=>{e.getSystem().getByDom(t).each(e=>{ud(t,".tox-tree--directory__label").each(t=>{e.getSystem().getByDom(t).each(AC.focus)})})}),t.stop()):n&&t.stop()})])])})},JM=(e,t,o)=>rj(e,{tag:"span",classes:["tox-tree__icon-wrap","tox-icon"],behaviours:o},t),ZM=(e,t)=>JM(e,t,[]),XM=bs("directory-label-event-id"),eL=({directory:e,visible:t,noChildren:o,backstage:n})=>{const a=e.menu.map(e=>WM(e,"tox-mbtn",n,T.none())),r=[{dom:{tag:"div",classes:["tox-chevron"]},components:[ZM("chevron-right",n.shared.providers.icons)]},KM(e.title)];a.each(e=>{r.push(e)});const i=t=>{dd(t.element,".tox-tree--directory").each(o=>{t.getSystem().getByDom(o).each(o=>{const n=!GC.isOn(o);GC.toggle(o),Tl(t,"expand-tree-node",{expanded:n,node:e.id})})})};return Hy.sketch({dom:{tag:"div",classes:["tox-tree--directory__label","tox-trbtn"].concat(t?["tox-tree--directory__label--visible"]:[])},components:r,action:i,eventOrder:{[Ki()]:[XM,"keying"]},buttonBehaviours:qu([...t?[UT.config({})]:[],wC(XM,[ql(Ki(),(e,t)=>{const n="ArrowRight"===t.event.raw.code,a="ArrowLeft"===t.event.raw.code;n&&o&&t.stop(),(n||a)&&dd(e.element,".tox-tree--directory").each(o=>{e.getSystem().getByDom(o).each(o=>{!GC.isOn(o)&&n||GC.isOn(o)&&a?(i(e),t.stop()):a&&!GC.isOn(o)&&(dd(o.element,".tox-tree--directory").each(e=>{ud(e,".tox-tree--directory__label").each(e=>{o.getSystem().getByDom(e).each(AC.focus)})}),t.stop())})})})])])})},tL=({children:e,onLeafAction:t,visible:o,treeId:n,expandedIds:a,selectedId:r,backstage:i})=>({dom:{tag:"div",classes:["tox-tree--directory__children"]},components:e.map(e=>"leaf"===e.type?QM({leaf:e,selectedId:r,onLeafAction:t,visible:o,treeId:n,backstage:i}):nL({directory:e,expandedIds:a,selectedId:r,onLeafAction:t,labelTabstopping:o,treeId:n,backstage:i})),behaviours:qu([UM.config({dimension:{property:"height"},closedClass:"tox-tree--directory__children--closed",openClass:"tox-tree--directory__children--open",growingClass:"tox-tree--directory__children--growing",shrinkingClass:"tox-tree--directory__children--shrinking",expanded:o}),fC.config({})])}),oL=bs("directory-event-id"),nL=({directory:e,onLeafAction:t,labelTabstopping:o,treeId:n,backstage:a,expandedIds:r,selectedId:i})=>{const{children:l}=e,s=hi(r),c=e=>l.map(o=>"leaf"===o.type?QM({leaf:o,selectedId:i,onLeafAction:t,visible:e,treeId:n,backstage:a}):nL({directory:o,expandedIds:s.get(),selectedId:i,onLeafAction:t,labelTabstopping:e,treeId:n,backstage:a})),d=r.includes(e.id);return{dom:{tag:"div",classes:["tox-tree--directory"],attributes:{role:"treeitem"}},components:[eL({directory:e,visible:o,noChildren:0===e.children.length,backstage:a}),tL({children:l,expandedIds:r,selectedId:i,onLeafAction:t,visible:d,treeId:n,backstage:a})],behaviours:qu([wC(oL,[Zl((e,t)=>{GC.set(e,d)}),ql("expand-tree-node",(e,t)=>{const{expanded:o,node:n}=t.event;s.set(o?[...s.get(),n]:s.get().filter(e=>e!==n))})]),GC.config({...e.children.length>0?{aria:{mode:"expanded"}}:{},toggleClass:"tox-tree--directory--expanded",onToggled:(e,t)=>{const o=e.components()[1],n=c(t);t?UM.grow(o):UM.shrink(o),fC.set(o,n)}})])}},aL=bs("tree-event-id"),rL=(e,t)=>{const o=e.onLeafAction.getOr(w),n=e.onToggleExpand.getOr(w),a=e.defaultExpandedIds,r=hi(a),i=hi(e.defaultSelectedId),l=bs("tree-id"),s=(n,a)=>e.items.map(e=>"leaf"===e.type?QM({leaf:e,selectedId:n,onLeafAction:o,visible:!0,treeId:l,backstage:t}):nL({directory:e,selectedId:n,onLeafAction:o,expandedIds:a,labelTabstopping:!0,treeId:l,backstage:t}));return{dom:{tag:"div",classes:["tox-tree"],attributes:{role:"tree"}},components:s(i.get(),r.get()),behaviours:qu([nC.config({mode:"flow",selector:".tox-tree--leaf__label--visible, .tox-tree--directory__label--visible",cycles:!1}),wC(aL,[ql("expand-tree-node",(e,t)=>{const{expanded:o,node:a}=t.event;r.set(o?[...r.get(),a]:r.get().filter(e=>e!==a)),n(r.get(),{expanded:o,node:a})})]),Ku.config({channels:{["update-active-item-"+l]:{onReceive:(e,t)=>{i.set(T.some(t.value)),fC.set(e,s(T.some(t.value),r.get()))}}}}),fC.config({})])}},iL=(e,t)=>{const o=e.stream.streams,n=o.setup(e,t);return Ml([ql(e.event,n),Xl(()=>t.cancel())].concat(e.cancelEvent.map(e=>[ql(e,()=>t.cancel())]).getOr([])))};var lL=Object.freeze({__proto__:null,events:iL});const sL=e=>{const t=hi(null),o=()=>({timer:null!==t.get()?"set":"unset"}),n=e=>{t.set(e)},a=()=>{const e=t.get();null!==e&&e.cancel()};return Fs({readState:o,setTimer:n,cancel:a})},cL=e=>e.stream.streams.state(e);var dL=Object.freeze({__proto__:null,throttle:sL,init:cL});const uL=(e,t)=>{const o=e.stream,n=qz(e.onStream,o.delay);return t.setTimer(n),(e,t)=>{n.throttle(e,t),o.stopEvent&&t.stop()}};var mL=[Mr("stream",Tr("mode",{throttle:[Fr("delay"),ni("stopEvent",!0),Rd("streams",{setup:uL,state:sL})]})),ni("event","input"),Kr("cancelEvent"),Ld("onStream")];const hL=Uu({fields:mL,name:"streaming",active:lL,state:dL}),pL=(e,t,o)=>{const n=jg.getValue(o);jg.setValue(t,n),gL(t)},bL=(e,t)=>{const o=e.element,n=Nc(o),a=o.dom;"number"!==no(o,"type")&&t(a,n)},gL=e=>{bL(e,(e,t)=>e.setSelectionRange(t.length,t.length))},fL=(e,t)=>{bL(e,(e,o)=>e.setSelectionRange(t,o.length))},vL=(e,t,o)=>{if(e.selectsOver){const n=jg.getValue(t),a=e.getDisplayText(n),r=jg.getValue(o),i=e.getDisplayText(r);return 0===i.indexOf(a)?T.some(()=>{pL(e,t,o),fL(t,a.length)}):T.none()}return T.none()},wL=O("alloy.typeahead.itemexecute"),kL=(e,t,o,n)=>{const a=(t,o,a)=>{e.previewing.set(!1);const r=hE.getCoupled(t,"sandbox");if(qb.isOpen(r))$f.getCurrent(r).each(e=>{Av.getHighlighted(e).fold(()=>{a(e)},()=>{Fl(r,e.element,"keydown",o)})});else{const o=e=>{$f.getCurrent(e).each(a)};VE(e,i(t),t,r,n,o,Sy.HighlightMenuAndItem).get(w)}},r=t_(e),i=e=>t=>t.map(t=>{const o=ye(t.menus),n=X(o,e=>W(e.items,e=>"item"===e.type)),a=jg.getState(e);return a.update(q(n,e=>e.data)),t}),l=e=>$f.getCurrent(e),s="typeaheadevents",c=[AC.config({}),jg.config({onSetValue:e.onSetValue,store:{mode:"dataset",getDataKey:e=>Nc(e.element),getFallbackEntry:e=>({value:e,meta:{}}),setValue:(t,o)=>{Dc(t.element,e.model.getDisplayText(o))},...e.initialData.map(e=>Ci("initialValue",e)).getOr({})}}),hL.config({stream:{mode:"throttle",delay:e.responseTime,stopEvent:!1},onStream:(t,o)=>{const a=hE.getCoupled(t,"sandbox"),r=AC.isFocused(t);if(r&&Nc(t.element).length>=e.minChars){const o=l(a).bind(e=>Av.getHighlighted(e).map(jg.getValue));e.previewing.set(!0);const r=t=>{l(a).each(t=>{o.fold(()=>{e.model.selectsOver&&Av.highlightFirst(t)},e=>{Av.highlightBy(t,t=>{const o=jg.getValue(t);return o.value===e.value}),Av.getHighlighted(t).orThunk(()=>(Av.highlightFirst(t),T.none()))})})};VE(e,i(t),t,a,n,r,Sy.HighlightJustMenu).get(w)}},cancelEvent:pl()}),nC.config({mode:"special",onDown:(e,t)=>(a(e,t,Av.highlightFirst),T.some(!0)),onEscape:e=>{const t=hE.getCoupled(e,"sandbox");return qb.isOpen(t)?(qb.close(t),T.some(!0)):T.none()},onUp:(e,t)=>(a(e,t,Av.highlightLast),T.some(!0)),onEnter:t=>{const o=hE.getCoupled(t,"sandbox"),n=qb.isOpen(o);if(n&&!e.previewing.get())return l(o).bind(e=>Av.getHighlighted(e)).map(e=>(Tl(t,wL(),{item:e}),!0));{const a=jg.getValue(t);return El(t,pl()),e.onExecute(o,t,a),n&&qb.close(o),T.some(!0)}}}),GC.config({toggleClass:e.markers.openClass,aria:{mode:"expanded"}}),hE.config({others:{sandbox:t=>SE(e,t,{onOpen:()=>GC.on(t),onClose:()=>{e.lazyTypeaheadComp.get().each(e=>io(e.element,"aria-activedescendant")),GC.off(t)}})}}),wC(s,[Zl(t=>{e.lazyTypeaheadComp.set(T.some(t))}),Xl(t=>{e.lazyTypeaheadComp.set(T.none())}),ts(t=>{const o=w;NE(e,i(t),t,n,o,Sy.HighlightMenuAndItem).get(w)}),ql(wL(),(t,o)=>{const n=hE.getCoupled(t,"sandbox");pL(e.model,t,o.event.item),El(t,pl()),e.onItemExecute(t,n,o.event.item,jg.getValue(t)),qb.close(n),gL(t)})].concat(e.dismissOnBlur?[ql(il(),e=>{const t=hE.getCoupled(e,"sandbox");tm(t.element).isNone()&&qb.close(t)})]:[]))],d={[Cl()]:[jg.name(),hL.name(),s],...e.eventOrder};return{uid:e.uid,dom:n_(Da(e,{inputAttributes:{role:"combobox","aria-autocomplete":"list","aria-haspopup":"true"}})),behaviours:{...r,...Vg(e.typeaheadBehaviours,c)},eventOrder:d}},CL=O([Kr("lazySink"),Fr("fetch"),ni("minChars",5),ni("responseTime",1e3),Fd("onOpen"),ni("getHotspot",T.some),ni("getAnchorOverrides",O({})),ni("layouts",T.none()),ni("eventOrder",{}),mi("model",{},[ni("getDisplayText",e=>void 0!==e.meta&&void 0!==e.meta.text?e.meta.text:e.value),ni("selectsOver",!0),ni("populateFromBrowse",!0)]),Fd("onSetValue"),Md("onExecute"),Fd("onItemExecute"),ni("inputClasses",[]),ni("inputAttributes",{}),ni("inputStyles",{}),ni("matchWidth",!0),ni("useMinWidth",!1),ni("dismissOnBlur",!0),Id(["openClass"]),Kr("initialData"),xg("typeaheadBehaviours",[AC,jg,hL,nC,GC,hE]),Ir("lazyTypeaheadComp",()=>hi(T.none)),Ir("previewing",()=>hi(!0))].concat(e_()).concat(IE())),yL=O([af({schema:[Bd()],name:"menu",overrides:e=>({fakeFocus:!0,onHighlightItem:(t,o,n)=>{e.previewing.get()?e.lazyTypeaheadComp.get().each(t=>{vL(e.model,t,n).fold(()=>{e.model.selectsOver?(Av.dehighlight(o,n),e.previewing.set(!0)):e.previewing.set(!1)},t=>{t(),e.previewing.set(!1)})}):e.lazyTypeaheadComp.get().each(t=>{e.model.populateFromBrowse&&pL(e.model,t,n),ao(n.element,"id").each(e=>to(t.element,"aria-activedescendant",e))})},onExecute:(t,o)=>e.lazyTypeaheadComp.get().map(e=>(Tl(e,wL(),{item:o}),!0)),onHover:(t,o)=>{e.previewing.set(!1),e.lazyTypeaheadComp.get().each(t=>{e.model.populateFromBrowse&&pL(e.model,t,o)})}})})]),OL=Mf({name:"Typeahead",configFields:CL(),partFields:yL(),factory:kL}),jL=e=>{const t=()=>jL(e.toCached()),o=t=>jL(e.bind(e=>e.fold(e=>CE.pure(ua.error(e)),e=>t(e)))),n=t=>jL(e.map(e=>e.bind(t))),a=t=>jL(e.map(e=>e.map(t))),r=t=>jL(e.map(e=>e.mapError(t))),i=(t,o)=>e.map(e=>e.fold(t,o)),l=(t,o)=>jL(CE.nu(n=>{let a=!1;const r=setTimeout(()=>{a=!0,n(ua.error(o()))},t);e.get(e=>{a||(clearTimeout(r),n(e))})}));return{...e,toCached:t,bindFuture:o,bindResult:n,mapResult:a,mapError:r,foldResult:i,withTimeout:l}},xL=e=>jL(CE.nu(e)),_L=e=>jL(CE.pure(ua.value(e))),VL=e=>jL(CE.pure(ua.error(e))),AL=e=>jL(CE.pure(e)),NL=e=>jL(e.map(ua.value)),DL=e=>xL(t=>{e.then(e=>{t(ua.value(e))},e=>{t(ua.error(e))})}),EL={nu:xL,wrap:jL,pure:_L,value:_L,error:VL,fromResult:AL,fromFuture:NL,fromPromise:DL},TL=(e,t,o=[],n,a,r)=>{const i=t.fold(()=>({}),e=>({action:e})),l={buttonBehaviours:qu([kA.button(()=>!e.enabled||r.isDisabled()),bA(),UT.config({}),wC("button press",[Rl("click"),Rl("mousedown")])].concat(o)),eventOrder:{click:["button press","alloy.base.behaviour"],mousedown:["button press","alloy.base.behaviour"]},...i},s=Da(l,{dom:n});return Da(s,{components:a})},SL=(e,t,o,n=[])=>{const a=e.tooltip.map(e=>({"aria-label":o.translate(e),title:o.translate(e)})).getOr({}),r={tag:"button",classes:["tox-tbtn"],attributes:a},i=e.icon.map(e=>_F(e,o.icons)),l=_A([i]);return TL(e,t,n,r,l,o)},BL=e=>{switch(e){case"primary":return["tox-button"];case"toolbar":return["tox-tbtn"];case"secondary":default:return["tox-button","tox-button--secondary"]}},IL=(e,t,o,n=[],a=[])=>{const r=o.translate(e.text),i=e.icon.map(e=>_F(e,o.icons)),l=[i.getOrThunk(()=>Jc(r))],s=e.buttonType.getOr(e.primary||e.borderless?"primary":"secondary"),c=BL(s),d=[...c,...i.isSome()?["tox-button--icon"]:[],...e.borderless?["tox-button--naked"]:[],...a],u={tag:"button",classes:d,attributes:{title:r}};return TL(e,t,n,u,l,o)},zL=(e,t,o,n=[],a=[])=>{const r=IL(e,T.some(t),o,n,a);return Hy.sketch(r)},FL=(e,t)=>o=>{"custom"===t?Tl(o,tS,{name:e,value:{}}):"submit"===t?El(o,oS):"cancel"===t?El(o,eS):console.error("Unknown button type: ",t)},ML=(e,t)=>"menu"===t,LL=(e,t)=>"custom"===t||"cancel"===t||"submit"===t,PL=(e,t)=>"togglebutton"===t,RL=(e,t)=>{var o,n;const a=e.icon.map(e=>VF(e,t.icons)).map(Yy),r=o=>{Tl(o,tS,{name:e.name,value:{setIcon:e=>{a.map(n=>n.getOpt(o).each(o=>{fC.set(o,[VF(e,t.icons)])}))}}})},i=e.buttonType.getOr(e.primary?"primary":"secondary"),l={...e,name:null!==(o=e.name)&&void 0!==o?o:"",primary:"primary"===i,tooltip:T.from(e.tooltip),enabled:null!==(n=e.enabled)&&void 0!==n&&n,borderless:!1},s=l.tooltip.map(e=>({"aria-label":t.translate(e),title:t.translate(e)})).getOr({}),c=BL(null!==i&&void 0!==i?i:"secondary"),d=e.icon.isSome()&&e.text.isSome(),u={tag:"button",classes:[...c.concat(e.icon.isSome()?["tox-button--icon"]:[]),...e.active?["tox-button--enabled"]:[],...d?["tox-button--icon-and-text"]:[]],attributes:s},m=[],h=t.translate(e.text.getOr("")),p=Jc(h),b=_A([a.map(e=>e.asSpec())]),g=[...b,...e.text.isSome()?[p]:[]],f=TL(l,T.some(r),m,u,g,t);return Hy.sketch(f)},qL=(e,t,o)=>{if(ML(e,t)){const t=()=>r,n=e,a={...e,type:"menubutton",search:T.none(),onSetup:t=>(t.setEnabled(e.enabled),w),fetch:GM(n.items,t,o)},r=Yy(WM(a,"tox-tbtn",o,T.none()));return r.asSpec()}if(LL(e,t)){const n=FL(e.name,t),a={...e,borderless:!1};return zL(a,n,o.shared.providers,[])}if(PL(e,t))return RL(e,o.shared.providers);throw console.error("Unknown footer button type: ",t),new Error("Unknown footer button type")},$L=(e,t)=>{const o=FL(e.name,"custom");return GT(T.none(),PT.parts.field({factory:Hy,...IL(e,T.some(o),t,[Nz(""),Oz.self()])}))},UL={type:"separator"},HL=e=>({type:"menuitem",value:e.url,text:e.title,meta:{attach:e.attach},onAction:w}),WL=(e,t)=>({type:"menuitem",value:t,text:e,meta:{attach:void 0},onAction:w}),GL=e=>q(e,HL),KL=(e,t)=>W(t,t=>t.type===e),YL=(e,t)=>GL(KL(e,t)),QL=e=>YL("header",e.targets),JL=e=>YL("anchor",e.targets),ZL=e=>T.from(e.anchorTop).map(e=>WL("<top>",e)).toArray(),XL=e=>T.from(e.anchorBottom).map(e=>WL("<bottom>",e)).toArray(),eP=e=>q(e,e=>WL(e,e)),tP=e=>K(e,(e,t)=>{const o=0===e.length||0===t.length;return o?e.concat(t):e.concat(UL,t)},[]),oP=(e,t)=>{const o=e.toLowerCase();return W(t,e=>{var t;const n=void 0!==e.meta&&void 0!==e.meta.text?e.meta.text:e.text,a=null!==(t=e.value)&&void 0!==t?t:"";return Le(n.toLowerCase(),o)||Le(a.toLowerCase(),o)})},nP=(e,t,o)=>{var n,a;const r=jg.getValue(t),i=null!==(a=null===(n=null===r||void 0===r?void 0:r.meta)||void 0===n?void 0:n.text)&&void 0!==a?a:r.value,l=o.getLinkInformation();return l.fold(()=>[],t=>{const n=oP(i,eP(o.getHistory(e)));return"file"===e?tP([n,oP(i,QL(t)),oP(i,Z([ZL(t),JL(t),XL(t)]))]):n})},aP=bs("aria-invalid"),rP=(e,t,o,n)=>{const a=t.shared.providers,r=t=>{const n=jg.getValue(t);o.addToHistory(n.value,e.filetype)},i={...n.map(e=>({initialData:e})).getOr({}),dismissOnBlur:!0,inputClasses:["tox-textfield"],sandboxClasses:["tox-dialog__popups"],inputAttributes:{"aria-errormessage":aP,type:"url"},minChars:0,responseTime:0,fetch:n=>{const a=nP(e.filetype,n,o),r=qF(a,_x.BUBBLE_TO_SANDBOX,t,{isHorizontalMenu:!1,search:T.none()});return CE.pure(r)},getHotspot:e=>p.getOpt(e),onSetValue:(e,t)=>{e.hasConfigured(wS)&&wS.run(e).get(w)},typeaheadBehaviours:qu([...o.getValidationHandler().map(t=>wS.config({getRoot:e=>Tt(e.element),invalidClass:"tox-control-wrap--status-invalid",notify:{onInvalid:(e,t)=>{d.getOpt(e).each(e=>{to(e.element,"title",a.translate(t))})}},validator:{validate:o=>{const n=jg.getValue(o);return EL.nu(o=>{t({type:e.filetype,url:n.value},e=>{if("invalid"===e.status){const t=ua.error(e.message);o(t)}else{const t=ua.value(e.message);o(t)}})})},validateOnLoad:!1}})).toArray(),sv.config({disabled:()=>!e.enabled||a.isDisabled()}),UT.config({}),wC("urlinput-events",[ql(Qi(),t=>{const o=Nc(t.element),n=o.trim();n!==o&&Dc(t.element,n),"file"===e.filetype&&Tl(t,ZT,{name:e.name})}),ql(Ji(),t=>{Tl(t,ZT,{name:e.name}),r(t)}),ql(ll(),t=>{Tl(t,ZT,{name:e.name}),r(t)})])]),eventOrder:{[Qi()]:["streaming","urlinput-events","invalidating"]},model:{getDisplayText:e=>e.value,selectsOver:!1,populateFromBrowse:!1},markers:{openClass:"tox-textfield--popup-open"},lazySink:t.shared.getSink,parts:{menu:Xx(!1,1,"normal")},onExecute:(e,t,o)=>{Tl(t,oS,{})},onItemExecute:(t,o,n,a)=>{r(t),Tl(t,ZT,{name:e.name})}},l=PT.parts.field({...i,factory:OL}),s=e.label.map(e=>JT(e,a)),c=(e,t,o=e,n=e)=>rj(o,{tag:"div",classes:["tox-icon","tox-control-wrap__status-icon-"+e],attributes:{title:a.translate(n),"aria-live":"polite",...t.fold(()=>({}),e=>({id:e}))}},a.icons),d=Yy(c("invalid",T.some(aP),"warning")),u=Yy({dom:{tag:"div",classes:["tox-control-wrap__status-icon-wrap"]},components:[d.asSpec()]}),m=o.getUrlPicker(e.filetype),h=bs("browser.url.event"),p=Yy({dom:{tag:"div",classes:["tox-control-wrap"]},components:[l,u.asSpec()],behaviours:qu([sv.config({disabled:()=>!e.enabled||a.isDisabled()})])}),b=Yy(zL({name:e.name,icon:T.some("browse"),text:e.picker_text.or(e.label).getOr(""),enabled:e.enabled,primary:!1,buttonType:T.none(),borderless:!0},e=>El(e,h),a,[],["tox-browse-url"])),g=()=>({dom:{tag:"div",classes:["tox-form__controls-h-stack"]},components:Z([[p.asSpec()],m.map(()=>b.asSpec()).toArray()])}),f=t=>{$f.getCurrent(t).each(o=>{const n=jg.getValue(o),a={fieldname:e.name,...n};m.each(n=>{n(a).get(n=>{jg.setValue(o,n),Tl(t,ZT,{name:e.name})})})})};return PT.sketch({dom:YT(),components:s.toArray().concat([g()]),fieldBehaviours:qu([sv.config({disabled:()=>!e.enabled||a.isDisabled(),onDisabled:e=>{PT.getField(e).each(sv.disable),b.getOpt(e).each(sv.disable)},onEnabled:e=>{PT.getField(e).each(sv.enable),b.getOpt(e).each(sv.enable)}}),bA(),wC("url-input-events",[ql(h,f)])])})},iP=(e,t)=>{const o=ej(e.icon,t.icons);return BT.sketch({dom:{tag:"div",attributes:{role:"alert"},classes:["tox-notification","tox-notification--in","tox-notification--"+e.level]},components:[{dom:{tag:"div",classes:["tox-notification__icon"],innerHtml:e.url?void 0:o},components:e.url?[Hy.sketch({dom:{tag:"button",classes:["tox-button","tox-button--naked","tox-button--icon"],innerHtml:o,attributes:{title:t.translate(e.iconTooltip)}},action:t=>Tl(t,tS,{name:"alert-banner",value:e.url}),buttonBehaviours:qu([nj()])})]:void 0},{dom:{tag:"div",classes:["tox-notification__body"],innerHtml:t.translate(e.text)}}]})},lP=(e,t)=>{e.dom.checked=t},sP=e=>e.dom.checked,cP=(e,t,o)=>{const n=e=>(e.element.dom.click(),T.some(!0)),a=PT.parts.field({factory:{sketch:j},dom:{tag:"input",classes:["tox-checkbox__input"],attributes:{type:"checkbox"}},behaviours:qu([Oz.self(),sv.config({disabled:()=>!e.enabled||t.isDisabled(),onDisabled:e=>{Tt(e.element).each(e=>vc(e,"tox-checkbox--disabled"))},onEnabled:e=>{Tt(e.element).each(e=>kc(e,"tox-checkbox--disabled"))}}),UT.config({}),AC.config({}),Vz(o,sP,lP),nC.config({mode:"special",onEnter:n,onSpace:n,stopSpaceKeyup:!0}),wC("checkbox-events",[ql(Ji(),(t,o)=>{Tl(t,ZT,{name:e.name})})])])}),r=PT.parts.label({dom:{tag:"span",classes:["tox-checkbox__label"]},components:[Jc(t.translate(e.label))],behaviours:qu([OS.config({})])}),i=e=>{const o="checked"===e?"selected":"unselected";return rj(o,{tag:"span",classes:["tox-icon","tox-checkbox-icon__"+e]},t.icons)},l=Yy({dom:{tag:"div",classes:["tox-checkbox__icons"]},components:[i("checked"),i("unchecked")]});return PT.sketch({dom:{tag:"label",classes:["tox-checkbox"]},components:[a,l.asSpec(),r],fieldBehaviours:qu([sv.config({disabled:()=>!e.enabled||t.isDisabled()}),bA()])})},dP=e=>"presentation"===e.presets?BT.sketch({dom:{tag:"div",classes:["tox-form__group"],innerHtml:e.html}}):BT.sketch({dom:{tag:"div",classes:["tox-form__group"],innerHtml:e.html,attributes:{role:"document"}},containerBehaviours:qu([UT.config({}),AC.config({})])}),uP=e=>(t,o,n,a)=>Oe(o,"name").fold(()=>e(o,a,T.none()),r=>t.field(r,e(o,a,Oe(n,r)))),mP=e=>(t,o,n,a)=>{const r=Da(o,{source:"dynamic"});return uP(e)(t,r,n,a)},hP={bar:uP((e,t)=>zT(e,t.shared)),collection:uP((e,t,o)=>lS(e,t.shared.providers,o)),alertbanner:uP((e,t)=>iP(e,t.shared.providers)),input:uP((e,t,o)=>pM(e,t.shared.providers,o)),textarea:uP((e,t,o)=>bM(e,t.shared.providers,o)),label:uP((e,t)=>wF(e,t.shared)),iframe:mP((e,t,o)=>pF(e,t.shared.providers,o)),button:uP((e,t)=>$L(e,t.shared.providers)),checkbox:uP((e,t,o)=>cP(e,t.shared.providers,o)),colorinput:uP((e,t,o)=>AS(e,t.shared,t.colorinput,o)),colorpicker:uP((e,t,o)=>Tz(e,t.shared.providers,o)),dropzone:uP((e,t,o)=>Mz(e,t.shared.providers,o)),grid:uP((e,t)=>Lz(e,t.shared)),listbox:uP((e,t,o)=>GF(e,t,o)),selectbox:uP((e,t,o)=>JF(e,t.shared.providers,o)),sizeinput:uP((e,t)=>dM(e,t.shared.providers)),slider:uP((e,t,o)=>uM(e,t.shared.providers,o)),urlinput:uP((e,t,o)=>rP(e,t,t.urlinput,o)),customeditor:uP(Iz),htmlpanel:uP(dP),imagepreview:uP((e,t,o)=>vF(e,o)),table:uP((e,t)=>mM(e,t.shared.providers)),tree:uP((e,t)=>rL(e,t)),panel:uP((e,t)=>KF(e,t))},pP={field:(e,t)=>t,record:O([])},bP=(e,t,o,n)=>{const a=Da(n,{shared:{interpreter:t=>gP(e,t,o,a)}});return gP(e,t,o,a)},gP=(e,t,o,n)=>Oe(hP,t.type).fold(()=>(console.error(`Unknown factory type "${t.type}", defaulting to container: `,t),t),a=>a(e,t,o,n)),fP=(e,t,o)=>gP(pP,e,t,o),vP="layout-inset",wP=e=>e.x,kP=(e,t)=>e.x+e.width/2-t.width/2,CP=(e,t)=>e.x+e.width-t.width,yP=e=>e.y,OP=(e,t)=>e.y+e.height-t.height,jP=(e,t)=>e.y+e.height/2-t.height/2,xP=(e,t,o)=>Ud(CP(e,t),OP(e,t),o.insetSouthwest(),Zd(),"southwest",iu(e,{right:0,bottom:3}),vP),_P=(e,t,o)=>Ud(wP(e),OP(e,t),o.insetSoutheast(),Jd(),"southeast",iu(e,{left:1,bottom:3}),vP),VP=(e,t,o)=>Ud(CP(e,t),yP(e),o.insetNorthwest(),Qd(),"northwest",iu(e,{right:0,top:2}),vP),AP=(e,t,o)=>Ud(wP(e),yP(e),o.insetNortheast(),Yd(),"northeast",iu(e,{left:1,top:2}),vP),NP=(e,t,o)=>Ud(kP(e,t),yP(e),o.insetNorth(),Xd(),"north",iu(e,{top:2}),vP),DP=(e,t,o)=>Ud(kP(e,t),OP(e,t),o.insetSouth(),eu(),"south",iu(e,{bottom:3}),vP),EP=(e,t,o)=>Ud(CP(e,t),jP(e,t),o.insetEast(),ou(),"east",iu(e,{right:0}),vP),TP=(e,t,o)=>Ud(wP(e),jP(e,t),o.insetWest(),tu(),"west",iu(e,{left:1}),vP),SP=e=>{switch(e){case"north":return NP;case"northeast":return AP;case"northwest":return VP;case"south":return DP;case"southeast":return _P;case"southwest":return xP;case"east":return EP;case"west":return TP}},BP=(e,t,o,n,a)=>{const r=wm(n).map(SP).getOr(NP);return r(e,t,o,n,a)},IP=e=>{switch(e){case"north":return DP;case"northeast":return _P;case"northwest":return xP;case"south":return NP;case"southeast":return AP;case"southwest":return VP;case"east":return TP;case"west":return EP}},zP=(e,t,o,n,a)=>{const r=wm(n).map(IP).getOr(NP);return r(e,t,o,n,a)},FP={valignCentre:[],alignCentre:[],alignLeft:[],alignRight:[],right:[],left:[],bottom:[],top:[]},MP=(e,t,o)=>{const n=12,a={maxHeightFunction:Xm()},r=()=>({type:"node",root:Ht(Ut(e())),node:T.from(e()),bubble:ah(n,n,FP),layouts:{onRtl:()=>[AP],onLtr:()=>[VP]},overrides:a}),i=()=>({type:"hotspot",hotspot:t(),bubble:ah(-n,n,FP),layouts:{onRtl:()=>[fu,vu,yu],onLtr:()=>[vu,fu,yu]},overrides:a});return()=>o()?r():i()},LP=(e,t,o,n)=>{const a=12,r={maxHeightFunction:Xm()},i=()=>({type:"node",root:Ht(Ut(t())),node:T.from(t()),bubble:ah(a,a,FP),layouts:{onRtl:()=>[NP],onLtr:()=>[NP]},overrides:r}),l=()=>e?{type:"node",root:Ht(Ut(t())),node:T.from(t()),bubble:ah(0,-jo(t()),FP),layouts:{onRtl:()=>[Cu],onLtr:()=>[Cu]},overrides:r}:{type:"hotspot",hotspot:o(),bubble:ah(0,0,FP),layouts:{onRtl:()=>[Cu],onLtr:()=>[Cu]},overrides:r};return()=>n()?i():l()},PP=(e,t,o)=>{const n=()=>({type:"node",root:Ht(Ut(e())),node:T.from(e()),layouts:{onRtl:()=>[NP],onLtr:()=>[NP]}}),a=()=>({type:"hotspot",hotspot:t(),layouts:{onRtl:()=>[yu],onLtr:()=>[yu]}});return()=>o()?n():a()},RP=(e,t)=>()=>({type:"selection",root:t(),getSelection:()=>{const t=e.selection.getRng(),o=e.model.table.getSelectedCells();if(o.length>1){const e=o[0],t=o[o.length-1],n={firstCell:Ze.fromDom(e),lastCell:Ze.fromDom(t)};return T.some(n)}return T.some(Jh.range(Ze.fromDom(t.startContainer),t.startOffset,Ze.fromDom(t.endContainer),t.endOffset))}}),qP=e=>t=>({type:"node",root:e(),node:t}),$P=(e,t,o,n)=>{const a=hx(e),r=()=>Ze.fromDom(e.getBody()),i=()=>Ze.fromDom(e.getContentAreaContainer()),l=()=>a||!n();return{inlineDialog:MP(i,t,l),inlineBottomDialog:LP(e.inline,i,o,l),banner:PP(i,t,l),cursor:RP(e,r),node:qP(r)}},UP=e=>(t,o)=>{const n=ED(e);n(t,o)},HP=e=>()=>uD(e),WP=e=>t=>lD(e,t),GP=e=>t=>dD(e,t),KP=e=>({colorPicker:UP(e),hasCustomColors:HP(e),getColors:WP(e),getColorCols:GP(e)}),YP=e=>()=>Gj(e),QP=e=>({isDraggableModal:YP(e)}),JP=e=>{const t=hi(ux(e)?"bottom":"top");return{isPositionedAtTop:()=>"top"===t.get(),getDockingMode:t.get,setDockingMode:t.set}},ZP=e=>xe(e,"items"),XP=e=>xe(e,"format"),eR=[{title:"Headings",items:[{title:"Heading 1",format:"h1"},{title:"Heading 2",format:"h2"},{title:"Heading 3",format:"h3"},{title:"Heading 4",format:"h4"},{title:"Heading 5",format:"h5"},{title:"Heading 6",format:"h6"}]},{title:"Inline",items:[{title:"Bold",format:"bold"},{title:"Italic",format:"italic"},{title:"Underline",format:"underline"},{title:"Strikethrough",format:"strikethrough"},{title:"Superscript",format:"superscript"},{title:"Subscript",format:"subscript"},{title:"Code",format:"code"}]},{title:"Blocks",items:[{title:"Paragraph",format:"p"},{title:"Blockquote",format:"blockquote"},{title:"Div",format:"div"},{title:"Pre",format:"pre"}]},{title:"Align",items:[{title:"Left",format:"alignleft"},{title:"Center",format:"aligncenter"},{title:"Right",format:"alignright"},{title:"Justify",format:"alignjustify"}]}],tR=e=>je(e,"items"),oR=e=>je(e,"block"),nR=e=>je(e,"inline"),aR=e=>je(e,"selector"),rR=e=>K(e,(e,t)=>{if(tR(t)){const o=rR(t.items);return{customFormats:e.customFormats.concat(o.customFormats),formats:e.formats.concat([{title:t.title,items:o.formats}])}}if(nR(t)||oR(t)||aR(t)){const o=l(t.name)?t.name:t.title.toLowerCase(),n="custom-"+o;return{customFormats:e.customFormats.concat([{name:n,format:t}]),formats:e.formats.concat([{title:t.title,format:n,icon:t.icon}])}}return{...e,formats:e.formats.concat(t)}},{customFormats:[],formats:[]}),iR=(e,t)=>{const o=rR(t),n=t=>{$(t,t=>{e.formatter.has(t.name)||e.formatter.register(t.name,t.format)})};return e.formatter?n(o.customFormats):e.on("init",()=>{n(o.customFormats)}),o.formats},lR=e=>_j(e).map(t=>{const o=iR(e,t);return Vj(e)?eR.concat(o):o}).getOr(eR),sR=e=>{const t=ue(e);return 1===t.length&&M(t,"title")},cR=(e,t,o)=>({...e,type:"formatter",isSelected:t(e.format),getStylePreview:o(e.format)}),dR=(e,t,o,n)=>{const a=e=>cR(e,o,n),r=e=>{const t=s(e.items);return{...e,type:"submenu",getStyleItems:O(t)}},i=t=>{const a=l(t.name)?t.name:bs(t.title),r="custom-"+a,i={...t,type:"formatter",format:r,isSelected:o(r),getStylePreview:n(r)};return e.formatter.register(a,i),i},s=e=>q(e,e=>ZP(e)?r(e):XP(e)?a(e):sR(e)?{...e,type:"separator"}:i(e));return s(t)},uR=e=>{const t=t=>()=>e.formatter.match(t),o=t=>()=>{const o=e.formatter.get(t);return void 0!==o?T.some({tag:o.length>0&&(o[0].inline||o[0].block)||"div",styles:e.dom.parseStyle(e.formatter.getCssText(t))}):T.none()},n=hi([]),a=hi([]),r=hi(!1);e.on("PreInit",a=>{const r=lR(e),i=dR(e,r,t,o);n.set(i)}),e.on("addStyleModifications",n=>{const i=dR(e,n.items,t,o);a.set(i),r.set(n.replace)});const i=()=>{const e=r.get()?[]:n.get(),t=a.get();return e.concat(t)};return{getData:i}},mR=e=>b(e)&&1===e.nodeType,hR=zz.trim,pR=e=>t=>{if(mR(t)){if(t.contentEditable===e)return!0;if(t.getAttribute("data-mce-contenteditable")===e)return!0}return!1},bR=pR("true"),gR=pR("false"),fR=(e,t,o,n,a)=>({type:e,title:t,url:o,level:n,attach:a}),vR=e=>{let t=e;while(t=t.parentNode){const e=t.contentEditable;if(e&&"inherit"!==e)return bR(t)}return!1},wR=(e,t)=>q(mp(Ze.fromDom(t),e),e=>e.dom),kR=e=>e.innerText||e.textContent,CR=e=>e.id?e.id:bs("h"),yR=e=>e&&"A"===e.nodeName&&void 0!==(e.id||e.name),OR=e=>yR(e)&&xR(e),jR=e=>e&&/^(H[1-6])$/.test(e.nodeName),xR=e=>vR(e)&&!gR(e),_R=e=>jR(e)&&xR(e),VR=e=>jR(e)?parseInt(e.nodeName.substr(1),10):0,AR=e=>{var t;const o=CR(e),n=()=>{e.id=o};return fR("header",null!==(t=kR(e))&&void 0!==t?t:"","#"+o,VR(e),n)},NR=e=>{const t=e.id||e.name,o=kR(e);return fR("anchor",o||"#"+t,"#"+t,0,w)},DR=e=>q(W(e,_R),AR),ER=e=>q(W(e,OR),NR),TR=e=>{const t=wR("h1,h2,h3,h4,h5,h6,a:not([href])",e);return t},SR=e=>hR(e.title).length>0,BR=e=>{const t=TR(e);return W(DR(t).concat(ER(t)),SR)},IR={find:BR},zR="tinymce-url-history",FR=5,MR=e=>l(e)&&/^https?/.test(e),LR=e=>d(e)&&e.length<=FR&&ee(e,MR),PR=e=>s(e)&&Ce(e,e=>!LR(e)).isNone(),RR=()=>{const e=$N.getItem(zR);if(null===e)return{};let t;try{t=JSON.parse(e)}catch(o){if(o instanceof SyntaxError)return console.log("Local storage "+zR+" was not valid JSON",o),{};throw o}return PR(t)?t:(console.log("Local storage "+zR+" was not valid format",t),{})},qR=e=>{if(!PR(e))throw new Error("Bad format for history:\n"+JSON.stringify(e));$N.setItem(zR,JSON.stringify(e))},$R=e=>{const t=RR();return Oe(t,e).getOr([])},UR=(e,t)=>{if(!MR(e))return;const o=RR(),n=Oe(o,t).getOr([]),a=W(n,t=>t!==e);o[t]=[e].concat(a).slice(0,FR),qR(o)},HR=e=>!!e,WR=e=>pe(zz.makeMap(e,/[, ]/),HR),GR=e=>T.from(Pj(e)),KR=e=>{const t=T.from($j(e)).filter(HR).map(WR);return GR(e).fold(D,e=>t.fold(E,e=>ue(e).length>0&&e))},YR=(e,t)=>{const o=KR(e);return m(o)?o?GR(e):T.none():o[t]?GR(e):T.none()},QR=(e,t)=>YR(e,t).map(o=>n=>CE.nu(a=>{const r=(e,t)=>{if(!l(e))throw new Error("Expected value to be string");if(void 0!==t&&!s(t))throw new Error("Expected meta to be a object");const o={value:e,meta:t};a(o)},i={filetype:t,fieldname:n.fieldname,...T.from(n.meta).getOr({})};o.call(e,r,n.value,i)})),JR=e=>T.from(e).filter(l).getOrUndefined(),ZR=e=>Uj(e)?T.some({targets:IR.find(e.getBody()),anchorTop:JR(Hj(e)),anchorBottom:JR(Wj(e))}):T.none(),XR=e=>T.from(Rj(e)),eq=e=>({getHistory:$R,addToHistory:UR,getLinkInformation:()=>ZR(e),getValidationHandler:()=>XR(e),getUrlPicker:t=>QR(e,t)}),tq=(e,t,o,n)=>{const a=hi(!1),r=JP(t),i={icons:()=>t.ui.registry.getAll().icons,menuItems:()=>t.ui.registry.getAll().menuItems,translate:KO.translate,isDisabled:()=>t.mode.isReadOnly()||!t.ui.isEnabled(),getOption:t.options.get},l=eq(t),s=uR(t),c=KP(t),d=QP(t),u=()=>a.get(),m=e=>a.set(e),h={shared:{providers:i,anchors:$P(t,o,n,r.isPositionedAtTop),header:r},urlinput:l,styles:s,colorinput:c,dialog:d,isContextMenuOpen:u,setContextMenuState:m},p={...h,shared:{...h.shared,interpreter:e=>fP(e,{},p),getSink:e.popup}},b={...h,shared:{...h.shared,interpreter:e=>fP(e,{},b),getSink:e.dialog}};return{popup:p,dialog:b}},oq=(e,t,o)=>{const n=(e,n)=>{$([t,...o],t=>{t.broadcastEvent(e,n)})},a=(e,n)=>{$([t,...o],t=>{t.broadcastOn([e],n)})},r=e=>a($b(),{target:e.target}),i=Wn(),l=Tm(i,"touchstart",r),s=Tm(i,"touchmove",e=>n(gl(),e)),c=Tm(i,"touchend",e=>n(fl(),e)),d=Tm(i,"mousedown",r),u=Tm(i,"mouseup",e=>{0===e.raw.button&&a(Hb(),{target:e.target})}),m=e=>a($b(),{target:Ze.fromDom(e.target)}),h=e=>{0===e.button&&a(Hb(),{target:Ze.fromDom(e.target)})},p=()=>{$(e.editorManager.get(),t=>{e!==t&&t.dispatch("DismissPopups",{relatedTarget:e})})},b=e=>n(vl(),Bm(e)),g=e=>{a(Ub(),{}),n(wl(),Bm(e))},f=Ut(Ze.fromDom(e.getElement())),v=Sm(f,"scroll",o=>{requestAnimationFrame(()=>{const a=e.getContainer();if(void 0!==a&&null!==a){const a=sT(e,t.element),r=a.map(e=>[e.element,...e.others]).getOr([]);L(r,e=>jt(e,o.target))&&(e.dispatch("ElementScroll",{target:o.target.dom}),n(_l(),o))}})}),w=()=>a(Ub(),{}),k=t=>{t.state&&a($b(),{target:Ze.fromDom(e.getContainer())})},C=e=>{a($b(),{target:Ze.fromDom(e.relatedTarget.getContainer())})};e.on("PostRender",()=>{e.on("click",m),e.on("tap",m),e.on("mouseup",h),e.on("mousedown",p),e.on("ScrollWindow",b),e.on("ResizeWindow",g),e.on("ResizeEditor",w),e.on("AfterProgressState",k),e.on("DismissPopups",C)}),e.on("remove",()=>{e.off("click",m),e.off("tap",m),e.off("mouseup",h),e.off("mousedown",p),e.off("ScrollWindow",b),e.off("ResizeWindow",g),e.off("ResizeEditor",w),e.off("AfterProgressState",k),e.off("DismissPopups",C),d.unbind(),l.unbind(),s.unbind(),c.unbind(),u.unbind(),v.unbind()}),e.on("detach",()=>{$([t,...o],yb),$([t,...o],e=>e.destroy())})},nq=Vf,aq=cf,rq=O([ni("shell",!1),Fr("makeItem"),ni("setupItem",w),Ag.field("listBehaviours",[fC])]),iq=()=>({behaviours:qu([fC.config({})])}),lq=rf({name:"items",overrides:iq}),sq=O([lq]),cq=O("CustomList"),dq=(e,t,o,n)=>{const a=(t,o)=>{i(t).fold(()=>{throw console.error("Custom List was defined to not be a shell, but no item container was specified in components"),new Error("Custom List was defined to not be a shell, but no item container was specified in components")},n=>{const a=fC.contents(n),r=o.length,i=r-a.length,l=i>0?P(i,()=>e.makeItem()):[],s=a.slice(r);$(s,e=>fC.remove(n,e)),$(l,e=>fC.append(n,e));const c=fC.contents(n);$(c,(n,a)=>{e.setupItem(t,n,o[a],a)})})},r=e.shell?{behaviours:[fC.config({})],components:[]}:{behaviours:[],components:t},i=t=>e.shell?T.some(t):wf(t,e,"items");return{uid:e.uid,dom:e.dom,components:r.components,behaviours:Vg(e.listBehaviours,r.behaviours),apis:{setItems:a}}},uq=Mf({name:cq(),configFields:rq(),partFields:sq(),factory:dq,apis:{setItems:(e,t,o)=>{e.setItems(t,o)}}}),mq=O([Fr("dom"),ni("shell",!0),xg("toolbarBehaviours",[fC])]),hq=()=>({behaviours:qu([fC.config({})])}),pq=O([rf({name:"groups",overrides:hq})]),bq=(e,t,o,n)=>{const a=(e,t)=>{r(e).fold(()=>{throw console.error("Toolbar was defined to not be a shell, but no groups container was specified in components"),new Error("Toolbar was defined to not be a shell, but no groups container was specified in components")},e=>{fC.set(e,t)})},r=t=>e.shell?T.some(t):wf(t,e,"groups"),i=e.shell?{behaviours:[fC.config({})],components:[]}:{behaviours:[],components:t};return{uid:e.uid,dom:e.dom,components:i.components,behaviours:Vg(e.toolbarBehaviours,i.behaviours),apis:{setGroups:a,refresh:w},domModification:{attributes:{role:"group"}}}},gq=Mf({name:"Toolbar",configFields:mq(),partFields:pq(),factory:bq,apis:{setGroups:(e,t,o)=>{e.setGroups(t,o)}}}),fq=w,vq=D,wq=O([]);var kq=Object.freeze({__proto__:null,setup:fq,isDocked:vq,getBehaviours:wq});const Cq=e=>{const t=_e(go(e,"position"),"fixed"),o=t?T.none():Bt(e);return o.orThunk(()=>{const t=Ze.fromTag("span");return Dt(e).bind(e=>{zn(e,t);const o=Bt(t);return Pn(t),o})})},yq=e=>Cq(e).map(Do).getOrThunk(()=>Vo(0,0)),Oq=(e,t)=>{const o=e.element;vc(o,t.transitionClass),kc(o,t.fadeOutClass),vc(o,t.fadeInClass),t.onShow(e)},jq=(e,t)=>{const o=e.element;vc(o,t.transitionClass),kc(o,t.fadeInClass),vc(o,t.fadeOutClass),t.onHide(e)},xq=(e,t)=>e.y<t.bottom&&e.bottom>t.y,_q=(e,t)=>e.y>=t.y,Vq=(e,t)=>e.bottom<=t.bottom,Aq=(e,t,o)=>({location:"top",leftX:t,topY:o.bounds.y-e.y}),Nq=(e,t,o)=>({location:"bottom",leftX:t,bottomY:e.bottom-o.bounds.bottom}),Dq=e=>e.box.x-e.win.x,Eq=(e,t,o)=>{const n=t.win,a=t.box,r=Dq(t);return de(e,e=>{switch(e){case"bottom":return Vq(a,o.bounds)?T.none():T.some(Nq(n,r,o));case"top":return _q(a,o.bounds)?T.none():T.some(Aq(n,r,o));default:return T.none()}}).getOr({location:"no-dock"})},Tq=(e,t,o)=>ee(e,e=>{switch(e){case"bottom":return Vq(t,o.bounds);case"top":return _q(t,o.bounds)}}),Sq=(e,t)=>{const o=t.optScrollEnv.fold(O(e.bounds.y),t=>t.scrollElmTop+(e.bounds.y-t.currentScrollTop));return Vo(e.bounds.x,o)},Bq=(e,t)=>{const o=t.optScrollEnv.fold(O(e.y),t=>e.y+t.currentScrollTop-t.scrollElmTop);return Vo(e.x,o)},Iq=(e,t,o)=>o.getInitialPos().map(o=>{const n=Sq(o,t);return{box:ta(n.left,n.top,Bo(e),Oo(e)),location:o.location}}),zq=(e,t,o,n,a)=>{const r=Bq(t,o),i=ta(r.left,r.top,t.width,t.height);n.setInitialPos({style:fo(e),position:po(e,"position")||"static",bounds:i,location:a.location})},Fq=(e,t,o,n,a)=>{n.getInitialPos().fold(()=>zq(e,t,o,n,a),()=>w)},Mq=(e,t,o)=>o.getInitialPos().bind(n=>{var a;switch(o.clearInitialPos(),n.position){case"static":return T.some({morph:"static"});case"absolute":const o=Cq(e).getOr(Zt()),r=oa(o),i=null!==(a=o.dom.scrollTop)&&void 0!==a?a:0;return T.some({morph:"absolute",positionCss:nm("absolute",Oe(n.style,"left").map(e=>t.x-r.x),Oe(n.style,"top").map(e=>t.y-r.y+i),Oe(n.style,"right").map(e=>r.right-t.right),Oe(n.style,"bottom").map(e=>r.bottom-t.bottom))});default:return T.none()}}),Lq=(e,t,o)=>Iq(e,t,o).filter(({box:e})=>Tq(o.getModes(),e,t)).bind(({box:t})=>Mq(e,t,o)),Pq=e=>{switch(e.location){case"top":return T.some({morph:"fixed",positionCss:nm("fixed",T.some(e.leftX),T.some(e.topY),T.none(),T.none())});case"bottom":return T.some({morph:"fixed",positionCss:nm("fixed",T.some(e.leftX),T.none(),T.none(),T.some(e.bottomY))});default:return T.none()}},Rq=(e,t,o)=>{const n=oa(e),a=ia(),r=Eq(o.getModes(),{win:a,box:n},t);return"top"===r.location||"bottom"===r.location?(zq(e,n,t,o,r),Pq(r)):T.none()},qq=(e,t,o)=>Lq(e,t,o).orThunk(()=>t.optScrollEnv.bind(n=>Iq(e,t,o)).bind(({box:e,location:o})=>{const n=ia(),a=Dq({win:n,box:e}),r="top"===o?Aq(n,a,t):Nq(n,a,t);return Pq(r)})),$q=(e,t,o)=>{const n=e.element,a=_e(go(n,"position"),"fixed");return a?qq(n,t,o):Rq(n,t,o)},Uq=(e,t,o)=>{const n=e.element;return Iq(n,t,o).bind(({box:e})=>Mq(n,e,o))},Hq=(e,t,o,n)=>{const a=oa(e),r=ia(),i=Dq({win:r,box:a}),l=n(r,i,t);return"bottom"===l.location||"top"===l.location?(Fq(e,a,t,o,l),Pq(l)):T.none()},Wq=(e,t,o)=>{o.setDocked(!1),$(["left","right","top","bottom","position"],t=>wo(e.element,t)),t.onUndocked(e)},Gq=(e,t,o,n)=>{const a="fixed"===n.position;o.setDocked(a),rm(e.element,n);const r=a?t.onDocked:t.onUndocked;r(e)},Kq=(e,t,o,n,a=!1)=>{t.contextual.each(t=>{t.lazyContext(e).each(r=>{const i=xq(r,n.bounds);if(i!==o.isVisible())if(o.setVisible(i),a&&!i)Oc(e.element,[t.fadeOutClass]),t.onHide(e);else{const o=i?Oq:jq;o(e,t)}})})},Yq=(e,t,o,n,a)=>{Kq(e,t,o,n,!0),Gq(e,t,o,a.positionCss)},Qq=(e,t,o,n,a)=>{switch(a.morph){case"static":return Wq(e,t,o);case"absolute":return Gq(e,t,o,a.positionCss);case"fixed":return Yq(e,t,o,n,a)}},Jq=(e,t,o)=>{const n=t.lazyViewport(e);Kq(e,t,o,n),$q(e,n,o).each(a=>{Qq(e,t,o,n,a)})},Zq=(e,t,o)=>{const n=e.element;o.setDocked(!1);const a=t.lazyViewport(e);Uq(e,a,o).each(n=>{switch(n.morph){case"static":Wq(e,t,o);break;case"absolute":Gq(e,t,o,n.positionCss);break}}),o.setVisible(!0),t.contextual.each(t=>{jc(n,[t.fadeInClass,t.fadeOutClass,t.transitionClass]),t.onShow(e)}),Xq(e,t,o)},Xq=(e,t,o)=>{e.getSystem().isConnected()&&Jq(e,t,o)},e$=(e,t,o)=>{o.isDocked()&&Zq(e,t,o)},t$=e=>(t,o,n)=>{const a=o.lazyViewport(t),r=Hq(t.element,a,n,e);r.each(e=>{Yq(t,o,n,a,e)})},o$=t$(Aq),n$=t$(Nq),a$=(e,t,o)=>o.isDocked(),r$=(e,t,o,n)=>o.setModes(n),i$=(e,t,o)=>o.getModes();var l$=Object.freeze({__proto__:null,refresh:Xq,reset:e$,isDocked:a$,getModes:i$,setModes:r$,forceDockToTop:o$,forceDockToBottom:n$});const s$=(e,t)=>Ml([Jl(el(),(o,n)=>{e.contextual.each(e=>{if(yc(o.element,e.transitionClass)){jc(o.element,[e.transitionClass,e.fadeInClass]);const n=t.isVisible()?e.onShown:e.onHidden;n(o)}n.stop()})}),ql(vl(),(o,n)=>{Xq(o,e,t)}),ql(_l(),(o,n)=>{Xq(o,e,t)}),ql(wl(),(o,n)=>{e$(o,e,t)})]);var c$=Object.freeze({__proto__:null,events:s$}),d$=[ti("contextual",[Pr("fadeInClass"),Pr("fadeOutClass"),Pr("transitionClass"),$r("lazyContext"),Fd("onShow"),Fd("onShown"),Fd("onHide"),Fd("onHidden")]),ci("lazyViewport",()=>({bounds:ia(),optScrollEnv:T.none()})),ui("modes",["top","bottom"],fr),Fd("onDocked"),Fd("onUndocked")];const u$=e=>{const t=hi(!1),o=hi(!0),n=Dm(),a=hi(e.modes),r=()=>`docked: ${t.get()}, visible: ${o.get()}, modes: ${a.get().join(",")}`;return Fs({isDocked:t.get,setDocked:t.set,getInitialPos:n.get,setInitialPos:n.set,clearInitialPos:n.clear,isVisible:o.get,setVisible:o.set,getModes:a.get,setModes:a.set,readState:r})};var m$=Object.freeze({__proto__:null,init:u$});const h$=Uu({fields:d$,name:"docking",active:c$,apis:l$,state:m$}),p$=O(bs("toolbar-height-change")),b$={fadeInClass:"tox-editor-dock-fadein",fadeOutClass:"tox-editor-dock-fadeout",transitionClass:"tox-editor-dock-transition"},g$="tox-tinymce--toolbar-sticky-on",f$="tox-tinymce--toolbar-sticky-off",v$=(e,t)=>{const o=_t(t),n=Nt(t),a=n.dom.innerHeight,r=Rn(o),i=Ze.fromDom(e.elm),l=na(i),s=Oo(i),c=l.y,d=c+s,u=Do(t),m=Oo(t),h=u.top,p=h+m,b=Math.abs(h-r.top)<2,g=Math.abs(p-(r.top+a))<2;if(b&&c<p)qn(r.left,c-m,o);else if(g&&d>h){const e=c-a+s+m;qn(r.left,e,o)}},w$=(e,t)=>M(h$.getModes(e),t),k$=e=>{const t=e=>jo(e)+(parseInt(po(e,"margin-top"),10)||0)+(parseInt(po(e,"margin-bottom"),10)||0),o=e.element;Tt(o).each(n=>{const a="padding-"+h$.getModes(e)[0];if(h$.isDocked(e)){const e=Bo(n);uo(o,"width",e+"px"),uo(n,a,t(o)+"px")}else wo(o,"width"),wo(n,a)})},C$=(e,t)=>{t?(kc(e,b$.fadeOutClass),Oc(e,[b$.transitionClass,b$.fadeInClass])):(kc(e,b$.fadeInClass),Oc(e,[b$.fadeOutClass,b$.transitionClass]))},y$=(e,t)=>{const o=Ze.fromDom(e.getContainer());t?(vc(o,g$),kc(o,f$)):(vc(o,f$),kc(o,g$))},O$=(e,t)=>{const o=_t(t);em(o).filter(e=>!jt(t,e)).filter(t=>jt(t,Ze.fromDom(o.dom.body))||xt(e,t)).each(()=>Ju(t))},j$=(e,t)=>tm(e).orThunk(()=>t().toOptional().bind(e=>tm(e.element))),x$=(e,t,o)=>{e.inline||(t.header.isPositionedAtTop()||e.on("ResizeEditor",()=>{o().each(h$.reset)}),e.on("ResizeWindow ResizeEditor",()=>{o().each(k$)}),e.on("SkinLoaded",()=>{o().each(e=>{h$.isDocked(e)?h$.reset(e):h$.refresh(e)})}),e.on("FullscreenStateChanged",()=>{o().each(h$.reset)})),e.on("AfterScrollIntoView",e=>{o().each(t=>{h$.refresh(t);const o=t.element;Ow(o)&&v$(e,o)})}),e.on("PostRender",()=>{y$(e,!1)})},_$=e=>e().map(h$.isDocked).getOr(!1),V$=()=>[Ku.config({channels:{[p$()]:{onReceive:k$}}})],A$=(e,t)=>{const o=Dm(),n=t.getSink,a=e=>{n().each(t=>e(t.element))},r=t=>{e.inline||k$(t),y$(e,h$.isDocked(t)),t.getSystem().broadcastOn([Ub()],{}),n().each(e=>e.getSystem().broadcastOn([Ub()],{}))},i=e.inline?[]:V$();return[AC.config({}),h$.config({contextual:{lazyContext:t=>{const o=jo(t.element),n=e.inline?e.getContentAreaContainer():e.getContainer();return T.from(n).map(n=>{const a=oa(Ze.fromDom(n)),r=sT(e,t.element);return r.fold(()=>{const e=a.height-o,n=a.y+(w$(t,"top")?0:o);return ta(a.x,n,a.width,e)},e=>{const n=aa(a,cT(e)),r=w$(t,"top")?n.y:n.y+o;return ta(n.x,r,n.width,n.height-o)})})},onShow:()=>{a(e=>C$(e,!0))},onShown:e=>{a(e=>jc(e,[b$.transitionClass,b$.fadeInClass])),o.get().each(t=>{O$(e.element,t),o.clear()})},onHide:e=>{j$(e.element,n).fold(o.clear,o.set),a(e=>C$(e,!1))},onHidden:()=>{a(e=>jc(e,[b$.transitionClass]))},...b$},lazyViewport:t=>{const o=sT(e,t.element);return o.fold(()=>{const o=ia(),n=Fj(e),a=o.y+(w$(t,"top")?n:0),r=o.height-(w$(t,"bottom")?n:0);return{bounds:ta(o.x,a,o.width,r),optScrollEnv:T.none()}},e=>{const t=cT(e);return{bounds:t,optScrollEnv:T.some({currentScrollTop:e.element.dom.scrollTop,scrollElmTop:Do(e.element).top})}})},modes:[t.header.getDockingMode()],onDocked:r,onUndocked:r}),...i]};var N$=Object.freeze({__proto__:null,setup:x$,isDocked:_$,getBehaviours:A$});const D$=e=>{const t=e.editor,o=e.sticky?A$:wq;return{uid:e.uid,dom:e.dom,components:e.components,behaviours:qu(o(t,e.sharedBackstage))}},E$=sr([D_,Mr("items",dr([hr([E_,Gr("items",fr)]),fr]))].concat(dV)),T$=e=>Ar("GroupToolbarButton",E$,e),S$=[Jr("text"),Jr("tooltip"),Jr("icon"),ai("search",!1,dr([vr,sr([Jr("placeholder")])],e=>m(e)?e?T.some({placeholder:T.none()}):T.none():T.some(e))),$r("fetch"),ci("onSetup",()=>w)],B$=sr([D_,...S$]),I$=e=>Ar("menubutton",B$,e),z$=sr([D_,H_,U_,$_,K_,F_,R_,li("presets","normal",["normal","color","listpreview"]),X_(1),L_,P_]),F$=e=>Ar("SplitButton",z$,e),M$=(e,t)=>{const o=(e,o)=>{const n=q(o,e=>{const o={type:"menubutton",text:e.text,fetch:t=>{t(e.getItems())}},n=I$(o).mapError(e=>Er(e)).getOrDie();return WM(n,"tox-mbtn",t.backstage,T.some("menuitem"))});fC.set(e,n)},n={focus:nC.focusIn,setMenus:o};return{uid:e.uid,dom:e.dom,components:[],behaviours:qu([fC.config({}),wC("menubar-events",[Zl(t=>{e.onSetup(t)}),ql(Hi(),(e,t)=>{md(e.element,".tox-mbtn--active").each(o=>{hd(t.event.target,".tox-mbtn").each(t=>{jt(o,t)||e.getSystem().getByDom(o).each(o=>{e.getSystem().getByDom(t).each(e=>{LE.expand(e),LE.close(o),AC.focus(e)})})})})}),ql(jl(),(e,t)=>{t.event.prevFocus.bind(t=>e.getSystem().getByDom(t).toOptional()).each(o=>{t.event.newFocus.bind(t=>e.getSystem().getByDom(t).toOptional()).each(e=>{LE.isOpen(o)&&(LE.expand(e),LE.close(o))})})})]),nC.config({mode:"flow",selector:".tox-mbtn",onEscape:t=>(e.onEscape(t),T.some(!0))}),UT.config({})]),apis:n,domModification:{attributes:{role:"menubar"}}}};var L$=Ff({factory:M$,name:"silver.Menubar",configFields:[Fr("dom"),Fr("uid"),Fr("onEscape"),Fr("backstage"),ni("onSetup",w)],apis:{focus:(e,t)=>{e.focus(t)},setMenus:(e,t,o)=>{e.setMenus(t,o)}}});const P$="⚡Upgrade",R$="https://www.tiny.cloud/tinymce-self-hosted-premium-features/?utm_campaign=self_hosted_upgrade_promo&utm_source=tiny&utm_medium=referral",q$=e=>({uid:e.uid,dom:e.dom,components:[{dom:{tag:"a",attributes:{href:R$,rel:"noopener",target:"_blank","aria-hidden":"true"},classes:["tox-promotion-link"],innerHtml:P$}}]}),$$="container",U$=[xg("slotBehaviours",[])],H$=e=>"<alloy.field."+e+">",W$=e=>{const t=(()=>{const e=[],t=(t,o)=>(e.push(t),pf($$,H$(t),o));return{slot:t,record:O(e)}})(),o=e(t),n=t.record(),a=q(n,e=>nf({name:e,pname:H$(e)}));return Ef($$,U$,a,G$,o)},G$=(e,t)=>{const o=t=>Of(e),n=(t,o)=>wf(t,e,o),a=(t,o)=>(n,a)=>wf(n,e,a).map(e=>t(e,a)).getOr(o),r=e=>(t,o)=>{$(o,o=>e(t,o))},i=(e,t)=>"true"!==no(e.element,"aria-hidden"),l=(e,t)=>{if(!i(e)){const o=e.element;wo(o,"display"),io(o,"aria-hidden"),Tl(e,xl(),{name:t,visible:!0})}},s=(e,t)=>{if(i(e)){const o=e.element;uo(o,"display","none"),to(o,"aria-hidden","true"),Tl(e,xl(),{name:t,visible:!1})}},c=a(i,!1),d=a(s),u=r(d),m=e=>u(e,o()),h=a(l),p={getSlotNames:o,getSlot:n,isShowing:c,hideSlot:d,hideAllSlots:m,showSlot:h};return{uid:e.uid,dom:e.dom,components:t,behaviours:_g(e.slotBehaviours),apis:p}},K$=pe({getSlotNames:(e,t)=>e.getSlotNames(t),getSlot:(e,t,o)=>e.getSlot(t,o),isShowing:(e,t,o)=>e.isShowing(t,o),hideSlot:(e,t,o)=>e.hideSlot(t,o),hideAllSlots:(e,t)=>e.hideAllSlots(t),showSlot:(e,t,o)=>e.showSlot(t,o)},e=>Is(e)),Y$={...K$,sketch:W$},Q$=sr([U_,H_,ci("onShow",w),ci("onHide",w),R_]),J$=e=>Ar("sidebar",Q$,e),Z$=e=>{const{sidebars:t}=e.ui.registry.getAll();$(ue(t),o=>{const n=t[o],a=()=>_e(T.from(e.queryCommandValue("ToggleSidebar")),o);e.ui.registry.addToggleButton(o,{icon:n.icon,tooltip:n.tooltip,onAction:t=>{e.execCommand("ToggleSidebar",!1,o),t.setActive(a())},onSetup:t=>{t.setActive(a());const o=()=>t.setActive(a());return e.on("ToggleSidebar",o),()=>{e.off("ToggleSidebar",o)}}})})},X$=e=>({element:()=>e.element.dom}),eU=(e,t)=>{const o=q(ue(t),e=>{const o=t[e],n=Nr(J$(o));return{name:e,getApi:X$,onSetup:n.onSetup,onShow:n.onShow,onHide:n.onHide}});return q(o,t=>{const n=hi(w);return e.slot(t.name,{dom:{tag:"div",classes:["tox-sidebar__pane"]},behaviours:JV.unnamedEvents([yA(t,n),OA(t,n),ql(xl(),(e,t)=>{const n=t.event,a=Q(o,e=>e.name===n.name);a.each(t=>{const o=n.visible?t.onShow:t.onHide;o(t.getApi(e))})})])})})},tU=e=>Y$.sketch(t=>({dom:{tag:"div",classes:["tox-sidebar__pane-container"]},components:eU(t,e),slotBehaviours:JV.unnamedEvents([Zl(e=>Y$.hideAllSlots(e))])})),oU=(e,t,o)=>{const n=$f.getCurrent(e);n.each(n=>{fC.set(n,[tU(t)]);const a=null===o||void 0===o?void 0:o.toLowerCase();l(a)&&je(t,a)&&$f.getCurrent(n).each(t=>{Y$.showSlot(t,a),UM.immediateGrow(n),wo(n.element,"width"),nU(e.element,"region")})})},nU=(e,t)=>{to(e,"role",t)},aU=(e,t)=>{const o=$f.getCurrent(e);o.each(o=>{const n=$f.getCurrent(o);n.each(n=>{UM.hasGrown(o)?Y$.isShowing(n,t)?(UM.shrink(o),nU(e.element,"presentation")):(Y$.hideAllSlots(n),Y$.showSlot(n,t),nU(e.element,"region")):(Y$.hideAllSlots(n),Y$.showSlot(n,t),UM.grow(o),nU(e.element,"region"))})})},rU=e=>{const t=$f.getCurrent(e);return t.bind(e=>{const t=UM.isGrowing(e)||UM.hasGrown(e);if(t){const t=$f.getCurrent(e);return t.bind(e=>Q(Y$.getSlotNames(e),t=>Y$.isShowing(e,t)))}return T.none()})},iU=bs("FixSizeEvent"),lU=bs("AutoSizeEvent"),sU=e=>({uid:e.uid,dom:{tag:"div",classes:["tox-sidebar"],attributes:{role:"presentation"}},components:[{dom:{tag:"div",classes:["tox-sidebar__slider"]},components:[],behaviours:qu([UT.config({}),AC.config({}),UM.config({dimension:{property:"width"},closedClass:"tox-sidebar--sliding-closed",openClass:"tox-sidebar--sliding-open",shrinkingClass:"tox-sidebar--sliding-shrinking",growingClass:"tox-sidebar--sliding-growing",onShrunk:e=>{const t=$f.getCurrent(e);t.each(Y$.hideAllSlots),El(e,lU)},onGrown:e=>{El(e,lU)},onStartGrow:e=>{Tl(e,iU,{width:go(e.element,"width").getOr("")})},onStartShrink:e=>{Tl(e,iU,{width:Bo(e.element)+"px"})}}),fC.config({}),$f.config({find:e=>{const t=fC.contents(e);return le(t)}})])}],behaviours:qu([Oz.childAt(0),wC("sidebar-sliding-events",[ql(iU,(e,t)=>{uo(e.element,"width",t.event.width)}),ql(lU,(e,t)=>{wo(e.element,"width")})])])}),cU=(e,t,o,n)=>{to(e.element,"aria-busy",!0);const a=t.getRoot(e).getOr(e),r=qu([nC.config({mode:"special",onTab:()=>T.some(!0),onShiftTab:()=>T.some(!0)}),AC.config({})]),i=n(a,r),l=a.getSystem().build(i);fC.append(a,nd(l)),l.hasConfigured(nC)&&t.focus&&nC.focusIn(l),o.isBlocked()||t.onBlock(e),o.blockWith(()=>fC.remove(a,l))},dU=(e,t,o)=>{io(e.element,"aria-busy"),o.isBlocked()&&t.onUnblock(e),o.clear()},uU=(e,t,o)=>o.isBlocked();var mU=Object.freeze({__proto__:null,block:cU,unblock:dU,isBlocked:uU}),hU=[ci("getRoot",T.none),si("focus",!0),Fd("onBlock"),Fd("onUnblock")];const pU=()=>{const e=Am(),t=t=>{e.set({destroy:t})};return Fs({readState:e.isSet,blockWith:t,clear:e.clear,isBlocked:e.isSet})};var bU=Object.freeze({__proto__:null,init:pU});const gU=Uu({fields:hU,name:"blocking",apis:mU,state:bU}),fU=e=>(t,o)=>({dom:{tag:"div",attributes:{"aria-label":e.translate("Loading..."),tabindex:"0"},classes:["tox-throbber__busy-spinner"]},components:[{dom:Ky('<div class="tox-spinner"><div></div><div></div><div></div></div>')}]}),vU=e=>$f.getCurrent(e).each(e=>Ju(e.element,!0)),wU=(e,t)=>{const o="tabindex",n="data-mce-"+o;T.from(e.iframeElement).map(Ze.fromDom).each(e=>{t?(ao(e,o).each(t=>to(e,n,t)),to(e,o,-1)):(io(e,o),ao(e,n).each(t=>{to(e,o,t),io(e,n)}))})},kU=(e,t,o,n)=>{const a=t.element;if(wU(e,o),o)gU.block(t,fU(n)),wo(a,"display"),io(a,"aria-hidden"),e.hasFocus()&&vU(t);else{const o=$f.getCurrent(t).exists(e=>Xu(e.element));gU.unblock(t),uo(a,"display","none"),to(a,"aria-hidden","true"),o&&e.focus()}},CU=e=>({uid:e.uid,dom:{tag:"div",attributes:{"aria-hidden":"true"},classes:["tox-throbber"],styles:{display:"none"}},behaviours:qu([fC.config({}),gU.config({focus:!1}),$f.config({find:e=>le(e.components())})]),components:[]}),yU=e=>"focusin"===e.type,OU=e=>{if(yU(e)){const t=e.composed?le(e.composedPath()):T.from(e.target);return t.map(Ze.fromDom).filter(bt).exists(e=>yc(e,"mce-pastebin"))}return!1},jU=(e,t,o)=>{const n=hi(!1),a=Dm(),r=o=>{n.get()&&!OU(o)&&(o.preventDefault(),vU(t()),e.editorManager.setActive(e))};e.inline||e.on("PreInit",()=>{e.dom.bind(e.getWin(),"focusin",r),e.on("BeforeExecCommand",e=>{"mcefocus"===e.command.toLowerCase()&&!0!==e.value&&r(e)})});const i=a=>{a!==n.get()&&(n.set(a),kU(e,t(),a,o.providers),VN(e,a))};e.on("ProgressState",t=>{if(a.on(clearTimeout),f(t.time)){const o=$y.setEditorTimeout(e,()=>i(t.state),t.time);a.set(o)}else i(t.state),a.clear()})},xU=(e,t)=>{const o={len:0,list:[]},n=K(e,(e,o)=>{const n=t(o,e.len);return n.fold(O(e),t=>({len:t.finish,list:e.list.concat([t])}))},o);return n.list},_U=(e,t,o)=>({within:e,extra:t,withinWidth:o}),VU=(e,t,o)=>{const n=xU(e,(e,t)=>{const n=o(e);return T.some({element:e,start:t,finish:t+n,width:n})}),a=W(n,e=>e.finish<=t),r=G(a,(e,t)=>e+t.width,0),i=n.slice(a.length);return{within:a,extra:i,withinWidth:r}},AU=e=>q(e,e=>e.element),NU=(e,t,o)=>{const n=AU(e.concat(t));return _U(n,[],o)},DU=(e,t,o,n)=>{const a=AU(e).concat([o]);return _U(a,AU(t),n)},EU=(e,t,o)=>_U(AU(e),[],o),TU=(e,t,o)=>{const n=VU(t,e,o);return 0===n.extra.length?T.some(n):T.none()},SU=(e,t,o,n)=>{const a=TU(e,t,o).getOrThunk(()=>VU(t,e-o(n),o)),r=a.within,i=a.extra,l=a.withinWidth;return 1===i.length&&i[0].width<=o(n)?NU(r,i,l):i.length>=1?DU(r,i,n,l):EU(r,i,l)},BU=(e,t)=>{const o=q(t,e=>nd(e));gq.setGroups(e,o)},IU=e=>de(e,e=>tm(e.element).bind(t=>e.getSystem().getByDom(t).toOptional())),zU=(e,t,o)=>{const n=t.builtGroups.get();if(0===n.length)return;const a=kf(e,t,"primary"),r=hE.getCoupled(e,"overflowGroup");uo(a.element,"visibility","hidden");const i=n.concat([r]),l=IU(i);o([]),BU(a,i);const s=Bo(a.element),c=SU(s,t.builtGroups.get(),e=>Bo(e.element),r);0===c.extra.length?(fC.remove(a,r),o([])):(BU(a,c.within),o(c.extra)),wo(a.element,"visibility"),ko(a.element),l.each(AC.focus)},FU=O([xg("splitToolbarBehaviours",[hE]),Ir("builtGroups",()=>hi([]))]),MU=O([Id(["overflowToggledClass"]),Xr("getOverflowBounds"),Fr("lazySink"),Ir("overflowGroups",()=>hi([])),Fd("onOpened"),Fd("onClosed")].concat(FU())),LU=O([nf({factory:gq,schema:mq(),name:"primary"}),af({schema:mq(),name:"overflow"}),af({name:"overflow-button"}),af({name:"overflow-group"})]),PU=O((e,t)=>{zo(e,Math.floor(t))}),RU=O([Id(["toggledClass"]),Fr("lazySink"),$r("fetch"),Xr("getBounds"),ti("fireDismissalEventInstead",[ni("event",yl())]),mh(),Fd("onToggled")]),qU=O([af({name:"button",overrides:e=>({dom:{attributes:{"aria-haspopup":"true"}},buttonBehaviours:qu([GC.config({toggleClass:e.markers.toggledClass,aria:{mode:"expanded"},toggleOnExecute:!1,onToggled:e.onToggled})])})}),af({factory:gq,schema:mq(),name:"toolbar",overrides:e=>({toolbarBehaviours:qu([nC.config({mode:"cyclic",onEscape:t=>(wf(t,e,"button").each(AC.focus),T.none())})])})})]),$U=Dm(),UU=(e,t)=>{$U.set(!0),HU(e,t),$U.clear()},HU=(e,t)=>{const o=hE.getCoupled(e,"toolbarSandbox");qb.isOpen(o)?qb.close(o):qb.open(o,t.toolbar())},WU=(e,t,o,n)=>{const a=o.getBounds.map(e=>e()),r=o.lazySink(e).getOrDie();ab.positionWithinBounds(r,t,{anchor:{type:"hotspot",hotspot:e,layouts:n,overrides:{maxWidthFunction:PU()}}},a)},GU=(e,t,o,n,a)=>{gq.setGroups(t,a),WU(e,t,o,n),GC.on(e)},KU=(e,t,o)=>{const n=gd(),a=(a,r)=>{const i=$U.get().getOr(!1);o.fetch().get(a=>{GU(e,r,o,t.layouts,a),n.link(e.element),i||nC.focusIn(r)})},r=()=>{GC.off(e),$U.get().getOr(!1)||AC.focus(e),n.unlink(e.element)};return{dom:{tag:"div",attributes:{id:n.id}},behaviours:qu([nC.config({mode:"special",onEscape:e=>(qb.close(e),T.some(!0))}),qb.config({onOpen:a,onClose:r,isPartOf:(t,o,n)=>vd(o,n)||vd(e,n),getAttachPoint:()=>o.lazySink(e).getOrDie()}),Ku.config({channels:{...Gb({isExtraPart:D,...o.fireDismissalEventInstead.map(e=>({fireEventInstead:{event:e.event}})).getOr({})}),...Yb({doReposition:()=>{qb.getState(hE.getCoupled(e,"toolbarSandbox")).each(n=>{WU(e,n,o,t.layouts)})}})}})])}},YU=(e,t,o,n)=>({...Hy.sketch({...n.button(),action:e=>{HU(e,n)},buttonBehaviours:Ag.augment({dump:n.button().buttonBehaviours},[hE.config({others:{toolbarSandbox:t=>KU(t,o,e)}})])}),apis:{setGroups:(t,n)=>{qb.getState(hE.getCoupled(t,"toolbarSandbox")).each(a=>{GU(t,a,e,o.layouts,n)})},reposition:t=>{qb.getState(hE.getCoupled(t,"toolbarSandbox")).each(n=>{WU(t,n,e,o.layouts)})},toggle:e=>{HU(e,n)},toggleWithoutFocusing:e=>{UU(e,n)},getToolbar:e=>qb.getState(hE.getCoupled(e,"toolbarSandbox")),isOpen:e=>qb.isOpen(hE.getCoupled(e,"toolbarSandbox"))}}),QU=Mf({name:"FloatingToolbarButton",factory:YU,configFields:RU(),partFields:qU(),apis:{setGroups:(e,t,o)=>{e.setGroups(t,o)},reposition:(e,t)=>{e.reposition(t)},toggle:(e,t)=>{e.toggle(t)},toggleWithoutFocusing:(e,t)=>{e.toggleWithoutFocusing(t)},getToolbar:(e,t)=>e.getToolbar(t),isOpen:(e,t)=>e.isOpen(t)}}),JU=O([Fr("items"),Id(["itemSelector"]),xg("tgroupBehaviours",[nC])]),ZU=O([lf({name:"items",unit:"item"})]),XU=(e,t,o,n)=>({uid:e.uid,dom:e.dom,components:t,behaviours:Vg(e.tgroupBehaviours,[nC.config({mode:"flow",selector:e.markers.itemSelector})]),domModification:{attributes:{role:"toolbar"}}}),eH=Mf({name:"ToolbarGroup",configFields:JU(),partFields:ZU(),factory:XU}),tH=e=>q(e,e=>nd(e)),oH=(e,t,o)=>{zU(e,o,n=>{o.overflowGroups.set(n),t.getOpt(e).each(e=>{QU.setGroups(e,tH(n))})})},nH=(e,t,o,n)=>{const a=Yy(QU.sketch({fetch:()=>CE.nu(t=>{t(tH(e.overflowGroups.get()))}),layouts:{onLtr:()=>[vu,fu],onRtl:()=>[fu,vu],onBottomLtr:()=>[ku,wu],onBottomRtl:()=>[wu,ku]},getBounds:o.getOverflowBounds,lazySink:e.lazySink,fireDismissalEventInstead:{},markers:{toggledClass:e.markers.overflowToggledClass},parts:{button:n["overflow-button"](),toolbar:n.overflow()},onToggled:(t,o)=>e[o?"onOpened":"onClosed"](t)}));return{uid:e.uid,dom:e.dom,components:t,behaviours:Vg(e.splitToolbarBehaviours,[hE.config({others:{overflowGroup:()=>eH.sketch({...n["overflow-group"](),items:[a.asSpec()]})}})]),apis:{setGroups:(t,o)=>{e.builtGroups.set(q(o,t.getSystem().build)),oH(t,a,e)},refresh:t=>oH(t,a,e),toggle:e=>{a.getOpt(e).each(e=>{QU.toggle(e)})},toggleWithoutFocusing:e=>{a.getOpt(e).each(QU.toggleWithoutFocusing)},isOpen:e=>a.getOpt(e).map(QU.isOpen).getOr(!1),reposition:e=>{a.getOpt(e).each(e=>{QU.reposition(e)})},getOverflow:e=>a.getOpt(e).bind(QU.getToolbar)},domModification:{attributes:{role:"group"}}}},aH=Mf({name:"SplitFloatingToolbar",configFields:MU(),partFields:LU(),factory:nH,apis:{setGroups:(e,t,o)=>{e.setGroups(t,o)},refresh:(e,t)=>{e.refresh(t)},reposition:(e,t)=>{e.reposition(t)},toggle:(e,t)=>{e.toggle(t)},toggleWithoutFocusing:(e,t)=>{e.toggle(t)},isOpen:(e,t)=>e.isOpen(t),getOverflow:(e,t)=>e.getOverflow(t)}}),rH=O([Id(["closedClass","openClass","shrinkingClass","growingClass","overflowToggledClass"]),Fd("onOpened"),Fd("onClosed")].concat(FU())),iH=O([nf({factory:gq,schema:mq(),name:"primary"}),nf({factory:gq,schema:mq(),name:"overflow",overrides:e=>({toolbarBehaviours:qu([UM.config({dimension:{property:"height"},closedClass:e.markers.closedClass,openClass:e.markers.openClass,shrinkingClass:e.markers.shrinkingClass,growingClass:e.markers.growingClass,onShrunk:t=>{wf(t,e,"overflow-button").each(e=>{GC.off(e),AC.focus(e)}),e.onClosed(t)},onGrown:t=>{nC.focusIn(t),e.onOpened(t)},onStartGrow:t=>{wf(t,e,"overflow-button").each(GC.on)}}),nC.config({mode:"acyclic",onEscape:t=>(wf(t,e,"overflow-button").each(AC.focus),T.some(!0))})])})}),af({name:"overflow-button",overrides:e=>({buttonBehaviours:qu([GC.config({toggleClass:e.markers.overflowToggledClass,aria:{mode:"pressed"},toggleOnExecute:!1})])})}),af({name:"overflow-group"})]),lH=(e,t)=>wf(e,t,"overflow").map(UM.hasGrown).getOr(!1),sH=(e,t)=>{wf(e,t,"overflow-button").bind(()=>wf(e,t,"overflow")).each(o=>{cH(e,t),UM.toggleGrow(o)})},cH=(e,t)=>{wf(e,t,"overflow").each(o=>{zU(e,t,e=>{const t=q(e,e=>nd(e));gq.setGroups(o,t)}),wf(e,t,"overflow-button").each(e=>{UM.hasGrown(o)&&GC.on(e)}),UM.refresh(o)})},dH=(e,t,o,n)=>{const a="alloy.toolbar.toggle",r=(t,o)=>{const n=q(o,t.getSystem().build);e.builtGroups.set(n)};return{uid:e.uid,dom:e.dom,components:t,behaviours:Vg(e.splitToolbarBehaviours,[hE.config({others:{overflowGroup:e=>eH.sketch({...n["overflow-group"](),items:[Hy.sketch({...n["overflow-button"](),action:t=>{El(e,a)}})]})}}),wC("toolbar-toggle-events",[ql(a,t=>{sH(t,e)})])]),apis:{setGroups:(t,o)=>{r(t,o),cH(t,e)},refresh:t=>cH(t,e),toggle:t=>sH(t,e),isOpen:t=>lH(t,e)},domModification:{attributes:{role:"group"}}}},uH=Mf({name:"SplitSlidingToolbar",configFields:rH(),partFields:iH(),factory:dH,apis:{setGroups:(e,t,o)=>{e.setGroups(t,o)},refresh:(e,t)=>{e.refresh(t)},toggle:(e,t)=>{e.toggle(t)},isOpen:(e,t)=>e.isOpen(t)}}),mH=e=>{const t=e.title.fold(()=>({}),e=>({attributes:{title:e}}));return{dom:{tag:"div",classes:["tox-toolbar__group"],...t},components:[eH.parts.items({})],items:e.items,markers:{itemSelector:"*:not(.tox-split-button) > .tox-tbtn:not([disabled]), .tox-split-button:not([disabled]), .tox-toolbar-nav-js:not([disabled]), .tox-number-input:not([disabled])"},tgroupBehaviours:qu([UT.config({}),AC.config({})])}},hH=e=>eH.sketch(mH(e)),pH=(e,t)=>{const o=Zl(t=>{const o=q(e.initGroups,hH);gq.setGroups(t,o)});return qu([kA.toolbarButton(e.providers.isDisabled),bA(),nC.config({mode:t,onEscape:e.onEscape,selector:".tox-toolbar__group"}),wC("toolbar-events",[o])])},bH=e=>{const t=e.cyclicKeying?"cyclic":"acyclic";return{uid:e.uid,dom:{tag:"div",classes:["tox-toolbar-overlord"]},parts:{"overflow-group":mH({title:T.none(),items:[]}),"overflow-button":SL({name:"more",icon:T.some("more-drawer"),enabled:!0,tooltip:T.some("Reveal or hide additional toolbar items"),primary:!1,buttonType:T.none(),borderless:!1},T.none(),e.providers)},splitToolbarBehaviours:pH(e,t)}},gH=e=>{const t=bH(e),o=4,n=aH.parts.primary({dom:{tag:"div",classes:["tox-toolbar__primary"]}});return aH.sketch({...t,lazySink:e.getSink,getOverflowBounds:()=>{const t=e.moreDrawerData.lazyHeader().element,n=na(t),a=At(t),r=na(a),i=Math.max(a.dom.scrollHeight,r.height);return ta(n.x+o,r.y,n.width-2*o,i)},parts:{...t.parts,overflow:{dom:{tag:"div",classes:["tox-toolbar__overflow"],attributes:e.attributes}}},components:[n],markers:{overflowToggledClass:"tox-tbtn--enabled"},onOpened:t=>e.onToggled(t,!0),onClosed:t=>e.onToggled(t,!1)})},fH=e=>{const t=uH.parts.primary({dom:{tag:"div",classes:["tox-toolbar__primary"]}}),o=uH.parts.overflow({dom:{tag:"div",classes:["tox-toolbar__overflow"]}}),n=bH(e);return uH.sketch({...n,components:[t,o],markers:{openClass:"tox-toolbar__overflow--open",closedClass:"tox-toolbar__overflow--closed",growingClass:"tox-toolbar__overflow--growing",shrinkingClass:"tox-toolbar__overflow--shrinking",overflowToggledClass:"tox-tbtn--enabled"},onOpened:t=>{t.getSystem().broadcastOn([p$()],{type:"opened"}),e.onToggled(t,!0)},onClosed:t=>{t.getSystem().broadcastOn([p$()],{type:"closed"}),e.onToggled(t,!1)}})},vH=e=>{const t=e.cyclicKeying?"cyclic":"acyclic";return gq.sketch({uid:e.uid,dom:{tag:"div",classes:["tox-toolbar"].concat(e.type===dj.scrolling?["tox-toolbar--scrolling"]:[])},components:[gq.parts.groups({})],toolbarBehaviours:pH(e,t)})},wH=[$_,U_,Jr("tooltip"),li("buttonType","secondary",["primary","secondary"]),si("borderless",!1),$r("onAction")],kH=[...wH,S_,Rr("type",["button"])],CH=[...wH,si("active",!1),Rr("type",["togglebutton"])],yH={button:kH,togglebutton:CH},OH=[Rr("type",["group"]),ui("buttons",[],Tr("type",yH))],jH=Tr("type",{...yH,group:OH}),xH=sr([ui("buttons",[],jH),$r("onShow"),$r("onHide")]),_H=e=>Ar("view",xH,e),VH=(e,t)=>{var o,n;const a="togglebutton"===e.type,r=e.icon.map(e=>VF(e,t.icons)).map(Yy),i=()=>o=>{const n=e=>{r.map(n=>n.getOpt(o).each(o=>{fC.set(o,[VF(e,t.icons)])}))},i=e=>{const t=o.element;e?(vc(t,"tox-button--enabled"),to(t,"aria-pressed",!0)):(kc(t,"tox-button--enabled"),io(t,"aria-pressed"))},l=()=>yc(o.element,"tox-button--enabled");return a?e.onAction({setIcon:n,setActive:i,isActive:l}):"button"===e.type?e.onAction({setIcon:n}):void 0},l=i(),s={...e,name:a?e.text.getOr(e.icon.getOr("")):null!==(o=e.text)&&void 0!==o?o:e.icon.getOr(""),primary:"primary"===e.buttonType,buttonType:T.from(e.buttonType),tooltip:e.tooltip,icon:e.icon,enabled:!0,borderless:e.borderless},c=BL(null!==(n=e.buttonType)&&void 0!==n?n:"secondary"),d=a?e.text.map(t.translate):T.some(t.translate(e.text)),u=d.map(Jc),m=s.tooltip.or(d).map(e=>({"aria-label":t.translate(e),title:t.translate(e)})).getOr({}),h=r.map(e=>e.asSpec()),p=_A([h,u]),b=e.icon.isSome()&&u.isSome(),g={tag:"button",classes:c.concat(...e.icon.isSome()&&!b?["tox-button--icon"]:[]).concat(...b?["tox-button--icon-and-text"]:[]).concat(...e.borderless?["tox-button--naked"]:[]).concat(..."togglebutton"===e.type&&e.active?["tox-button--enabled"]:[]),attributes:m},f=[],v=TL(s,T.some(l),f,g,p,t);return Hy.sketch(v)},AH=(e,t)=>VH(e,t),NH=(e,t)=>({dom:{tag:"div",classes:["tox-view__toolbar__group"]},components:q(e.buttons,e=>AH(e,t))}),DH=xn().deviceType,EH=DH.isPhone(),TH=DH.isTablet(),SH=e=>{let t=!1;const o=q(e.buttons,o=>"group"===o.type?(t=!0,NH(o,e.providers)):AH(o,e.providers));return{uid:e.uid,dom:{tag:"div",classes:[t?"tox-view__toolbar":"tox-view__header",...EH||TH?["tox-view--mobile","tox-view--scrolling"]:[]]},behaviours:qu([AC.config({}),nC.config({mode:"flow",selector:"button, .tox-button",focusInside:Zv.OnEnterOrSpaceMode})]),components:t?o:[BT.sketch({dom:{tag:"div",classes:["tox-view__header-start"]},components:[]}),BT.sketch({dom:{tag:"div",classes:["tox-view__header-end"]},components:o})]}},BH=e=>({uid:e.uid,dom:{tag:"div",classes:["tox-view__pane"]}}),IH=(e,t,o,n)=>{const a={getPane:t=>nq.getPart(t,e,"pane"),getOnShow:t=>e.viewConfig.onShow,getOnHide:t=>e.viewConfig.onHide};return{uid:e.uid,dom:e.dom,components:t,apis:a}};var zH=Mf({name:"silver.View",configFields:[Fr("viewConfig")],partFields:[rf({factory:{sketch:SH},schema:[Fr("buttons"),Fr("providers")],name:"header"}),rf({factory:{sketch:BH},schema:[],name:"pane"})],factory:IH,apis:{getPane:(e,t)=>e.getPane(t),getOnShow:(e,t)=>e.getOnShow(t),getOnHide:(e,t)=>e.getOnHide(t)}});const FH=(e,t,o)=>ke(t,(t,n)=>{const a=Nr(_H(t));return e.slot(n,zH.sketch({dom:{tag:"div",classes:["tox-view"]},viewConfig:a,components:[...a.buttons.length>0?[zH.parts.header({buttons:a.buttons,providers:o})]:[],zH.parts.pane({})]}))}),MH=(e,t)=>Y$.sketch(o=>({dom:{tag:"div",classes:["tox-view-wrap__slot-container"]},components:FH(o,e,t),slotBehaviours:JV.unnamedEvents([Zl(e=>Y$.hideAllSlots(e))])})),LH=e=>Q(Y$.getSlotNames(e),t=>Y$.isShowing(e,t)),PH=e=>{const t=e.element;uo(t,"display","none"),to(t,"aria-hidden","true")},RH=e=>{const t=e.element;wo(t,"display"),io(t,"aria-hidden")},qH=e=>({getContainer:O(e)}),$H=(e,t,o)=>{Y$.getSlot(e,t).each(e=>{zH.getPane(e).each(t=>{const n=o(e);n(qH(t.element.dom))})})},UH=(e,t)=>$H(e,t,zH.getOnShow),HH=(e,t)=>$H(e,t,zH.getOnHide),WH=(e,t)=>{const o=(e,o)=>{fC.set(e,[MH(o,t.backstage.shared.providers)])},n=e=>$f.getCurrent(e).bind(LH),a=(e,t,o,n)=>$f.getCurrent(e).exists(a=>{const r=LH(a),i=r.exists(e=>n===e),l=Y$.getSlot(a,n).isSome();return l&&(Y$.hideAllSlots(a),i?(PH(e),t()):(o(),RH(e),Y$.showSlot(a,n),UH(a,n)),r.each(e=>HH(a,e))),l}),r={setViews:o,whichView:n,toggleView:a};return{uid:e.uid,dom:{tag:"div",classes:["tox-view-wrap"],attributes:{"aria-hidden":"true"},styles:{display:"none"}},components:[],behaviours:qu([fC.config({}),$f.config({find:e=>{const t=fC.contents(e);return le(t)}})]),apis:r}};var GH=Ff({factory:WH,name:"silver.ViewWrapper",configFields:[Fr("backstage")],apis:{setViews:(e,t,o)=>e.setViews(t,o),toggleView:(e,t,o,n,a)=>e.toggleView(t,o,n,a),whichView:(e,t)=>e.whichView(t)}});const KH=(e,t,o)=>{let n=!1;const a={getSocket:t=>nq.getPart(t,e,"socket"),setSidebar:(t,o,n)=>{nq.getPart(t,e,"sidebar").each(e=>oU(e,o,n))},toggleSidebar:(t,o)=>{nq.getPart(t,e,"sidebar").each(e=>aU(e,o))},whichSidebar:t=>nq.getPart(t,e,"sidebar").bind(rU).getOrNull(),getHeader:t=>nq.getPart(t,e,"header"),getToolbar:t=>nq.getPart(t,e,"toolbar"),setToolbar:(t,o)=>{nq.getPart(t,e,"toolbar").each(e=>{const t=q(o,hH);e.getApis().setGroups(e,t)})},setToolbars:(t,o)=>{nq.getPart(t,e,"multiple-toolbar").each(e=>{const t=q(o,e=>q(e,hH));uq.setItems(e,t)})},refreshToolbar:t=>{const o=nq.getPart(t,e,"toolbar");o.each(e=>e.getApis().refresh(e))},toggleToolbarDrawer:t=>{nq.getPart(t,e,"toolbar").each(e=>{Te(e.getApis().toggle,t=>t(e))})},toggleToolbarDrawerWithoutFocusing:t=>{nq.getPart(t,e,"toolbar").each(e=>{Te(e.getApis().toggleWithoutFocusing,t=>t(e))})},isToolbarDrawerToggled:t=>nq.getPart(t,e,"toolbar").bind(e=>T.from(e.getApis().isOpen).map(t=>t(e))).getOr(!1),getThrobber:t=>nq.getPart(t,e,"throbber"),focusToolbar:t=>{const o=nq.getPart(t,e,"toolbar").orThunk(()=>nq.getPart(t,e,"multiple-toolbar"));o.each(e=>{nC.focusIn(e)})},setMenubar:(t,o)=>{nq.getPart(t,e,"menubar").each(e=>{L$.setMenus(e,o)})},focusMenubar:t=>{nq.getPart(t,e,"menubar").each(e=>{L$.focus(e)})},setViews:(t,o)=>{nq.getPart(t,e,"viewWrapper").each(e=>{GH.setViews(e,o)})},toggleView:(t,o)=>nq.getPart(t,e,"viewWrapper").exists(e=>GH.toggleView(e,()=>a.showMainView(t),()=>a.hideMainView(t),o)),whichView:t=>nq.getPart(t,e,"viewWrapper").bind(GH.whichView).getOrNull(),hideMainView:t=>{n=a.isToolbarDrawerToggled(t),n&&a.toggleToolbarDrawer(t),nq.getPart(t,e,"editorContainer").each(e=>{const t=e.element;uo(t,"display","none"),to(t,"aria-hidden","true")})},showMainView:t=>{n&&a.toggleToolbarDrawer(t),nq.getPart(t,e,"editorContainer").each(e=>{const t=e.element;wo(t,"display"),io(t,"aria-hidden")})}};return{uid:e.uid,dom:e.dom,components:t,apis:a,behaviours:e.behaviours}},YH=aq.optional({factory:L$,name:"menubar",schema:[Fr("backstage")]}),QH=e=>e.type===dj.sliding?fH:e.type===dj.floating?gH:vH,JH=aq.optional({factory:{sketch:e=>uq.sketch({uid:e.uid,dom:e.dom,listBehaviours:qu([nC.config({mode:"acyclic",selector:".tox-toolbar"})]),makeItem:()=>vH({type:e.type,uid:bs("multiple-toolbar-item"),cyclicKeying:!1,initGroups:[],providers:e.providers,onEscape:()=>(e.onEscape(),T.some(!0))}),setupItem:(e,t,o,n)=>{gq.setGroups(t,o)},shell:!0})},name:"multiple-toolbar",schema:[Fr("dom"),Fr("onEscape")]}),ZH=aq.optional({factory:{sketch:e=>{const t=QH(e),o={type:e.type,uid:e.uid,onEscape:()=>(e.onEscape(),T.some(!0)),onToggled:(t,o)=>e.onToolbarToggled(o),cyclicKeying:!1,initGroups:[],getSink:e.getSink,providers:e.providers,moreDrawerData:{lazyToolbar:e.lazyToolbar,lazyMoreButton:e.lazyMoreButton,lazyHeader:e.lazyHeader},attributes:e.attributes};return t(o)}},name:"toolbar",schema:[Fr("dom"),Fr("onEscape"),Fr("getSink")]}),XH=aq.optional({factory:{sketch:D$},name:"header",schema:[Fr("dom")]}),eW=aq.optional({factory:{sketch:q$},name:"promotion",schema:[Fr("dom")]}),tW=aq.optional({name:"socket",schema:[Fr("dom")]}),oW=aq.optional({factory:{sketch:sU},name:"sidebar",schema:[Fr("dom")]}),nW=aq.optional({factory:{sketch:CU},name:"throbber",schema:[Fr("dom")]}),aW=aq.optional({factory:GH,name:"viewWrapper",schema:[Fr("backstage")]}),rW=e=>({uid:e.uid,dom:{tag:"div",classes:["tox-editor-container"]},components:e.components}),iW=aq.optional({factory:{sketch:rW},name:"editorContainer",schema:[]});var lW=Mf({name:"OuterContainer",factory:KH,configFields:[Fr("dom"),Fr("behaviours")],partFields:[XH,YH,ZH,JH,tW,oW,eW,nW,aW,iW],apis:{getSocket:(e,t)=>e.getSocket(t),setSidebar:(e,t,o,n)=>{e.setSidebar(t,o,n)},toggleSidebar:(e,t,o)=>{e.toggleSidebar(t,o)},whichSidebar:(e,t)=>e.whichSidebar(t),getHeader:(e,t)=>e.getHeader(t),getToolbar:(e,t)=>e.getToolbar(t),setToolbar:(e,t,o)=>{e.setToolbar(t,o)},setToolbars:(e,t,o)=>{e.setToolbars(t,o)},refreshToolbar:(e,t)=>e.refreshToolbar(t),toggleToolbarDrawer:(e,t)=>{e.toggleToolbarDrawer(t)},toggleToolbarDrawerWithoutFocusing:(e,t)=>{e.toggleToolbarDrawerWithoutFocusing(t)},isToolbarDrawerToggled:(e,t)=>e.isToolbarDrawerToggled(t),getThrobber:(e,t)=>e.getThrobber(t),setMenubar:(e,t,o)=>{e.setMenubar(t,o)},focusMenubar:(e,t)=>{e.focusMenubar(t)},focusToolbar:(e,t)=>{e.focusToolbar(t)},setViews:(e,t,o)=>{e.setViews(t,o)},toggleView:(e,t,o)=>e.toggleView(t,o),whichView:(e,t)=>e.whichView(t)}});const sW="file edit view insert format tools table help",cW={file:{title:"File",items:"newdocument restoredraft | preview | export print | deleteallconversations"},edit:{title:"Edit",items:"undo redo | cut copy paste pastetext | selectall | searchreplace"},view:{title:"View",items:"code | visualaid visualchars visualblocks | spellchecker | preview fullscreen | showcomments"},insert:{title:"Insert",items:"image link media addcomment pageembed template inserttemplate codesample inserttable accordion | charmap emoticons hr | pagebreak nonbreaking anchor tableofcontents footnotes | mergetags | insertdatetime"},format:{title:"Format",items:"bold italic underline strikethrough superscript subscript codeformat | styles blocks fontfamily fontsize align lineheight | forecolor backcolor | language | removeformat"},tools:{title:"Tools",items:"aidialog aishortcuts | spellchecker spellcheckerlanguage | autocorrect capitalization | a11ycheck code typography wordcount addtemplate"},table:{title:"Table",items:"inserttable | cell row column | advtablesort | tableprops deletetable"},help:{title:"Help",items:"help"}},dW=(e,t,o)=>{const n=Dj(o).split(/[ ,]/);return{text:e.title,getItems:()=>X(e.items,e=>{const o=e.toLowerCase();return 0===o.trim().length||L(n,e=>e===o)?[]:"separator"===o||"|"===o?[{type:"separator"}]:t.menuItems[o]?[t.menuItems[o]]:[]})}},uW=e=>e.split(" "),mW=(e,t)=>{const o={...cW,...t.menus},n=ue(t.menus).length>0,a=void 0===t.menubar||!0===t.menubar?uW(sW):uW(!1===t.menubar?"":t.menubar),r=W(a,e=>{const o=je(cW,e);return n?o||Oe(t.menus,e).exists(e=>je(e,"items")):o}),i=q(r,n=>{const a=o[n];return dW({title:a.title,items:uW(a.items)},t,e)});return W(i,e=>{const t=e=>l(e)||"separator"!==e.type;return e.getItems().length>0&&L(e.getItems(),t)})},hW=e=>{const t=()=>{e._skinLoaded=!0,CN(e)};return()=>{e.initialized?t():e.on("init",t)}},pW=(e,t)=>()=>yN(e,{message:t}),bW=(e,t,o)=>(e.on("remove",()=>o.unload(t)),o.load(t)),gW=(e,t,o,n)=>(e.on("remove",()=>n.unloadRawCss(t)),n.loadRawCss(t,o)),fW=async(e,t)=>{const o=ix(e).getOr("default"),n="ui/"+o+"/skin.css",a=tinymce.Resource.get(n);if(l(a))return Promise.resolve(gW(e,n,a,e.ui.styleSheetLoader));{const o=t+"/skin.min.css";return bW(e,o,e.ui.styleSheetLoader)}},vW=async(e,t)=>{const o=Wt(Ze.fromDom(e.getElement()));if(o){const o=ix(e).getOr("default"),n="ui/"+o+"/skin.shadowdom.css",a=tinymce.Resource.get(n);if(l(a))return gW(e,n,a,hj.DOM.styleSheetLoader),Promise.resolve();{const o=t+"/skin.shadowdom.min.css";return bW(e,o,hj.DOM.styleSheetLoader)}}},wW=async(e,t)=>{ix(t).fold(()=>{const o=rx(t);o&&t.contentCSS.push(o+(e?"/content.inline":"/content")+".min.css")},o=>{const n="ui/"+o+(e?"/content.inline":"/content")+".css",a=tinymce.Resource.get(n);if(l(a))gW(t,n,a,t.ui.styleSheetLoader);else{const o=rx(t);o&&t.contentCSS.push(o+(e?"/content.inline":"/content")+".min.css")}});const o=rx(t);if(!nx(t)&&l(o))return Promise.all([fW(t,o),vW(t,o)]).then()},kW=(e,t)=>wW(e,t).then(hW(t),pW(t,"Skin could not be loaded")),CW=_(kW,!1),yW=_(kW,!0),OW=(e,t,o)=>e.translate([t,e.translate(o)]),jW=(e,t)=>{const o=(o,a,r,i)=>{const l=e.shared.providers.translate(o.title);if("separator"===o.type)return T.some({type:"separator",text:l});if("submenu"===o.type){const e=X(o.getStyleItems(),e=>n(e,a,i));return 0===a&&e.length<=0?T.none():T.some({type:"nestedmenuitem",text:l,enabled:e.length>0,getSubmenuItems:()=>X(o.getStyleItems(),e=>n(e,a,i))})}return T.some({type:"togglemenuitem",text:l,icon:o.icon,active:o.isSelected(i),enabled:!r,onAction:t.onAction(o),...o.getStylePreview().fold(()=>({}),e=>({meta:{style:e}}))})},n=(e,n,a)=>{const r="formatter"===e.type&&t.isInvalid(e);return 0===n?r?[]:o(e,n,!1,a).toArray():o(e,n,r,a).toArray()},a=e=>{const o=t.getCurrentValue(),a=t.shouldHide?0:1;return X(e,e=>n(e,a,o))},r=(e,t)=>(o,n)=>{const r=t(),i=a(r),l=qF(i,_x.CLOSE_ON_EXECUTE,e,{isHorizontalMenu:!1,search:T.none()});n(l)};return{validateItems:a,getFetch:r}},xW=(e,t,o)=>{const n=o.dataset,a="basic"===n.type?()=>q(n.data,e=>cR(e,o.isSelectedFor,o.getPreviewFor)):n.getData;return{items:jW(t,o),getStyleItems:a}},_W=(e,t,o,n,a)=>{const{items:r,getStyleItems:i}=xW(e,t,o),l=e=>({getComponent:O(e),setTooltip:o=>{const n=t.shared.providers.translate(o);oo(e.element,{"aria-label":n,title:n})}}),s=t=>{const r=o=>t.setTooltip(OW(e,n,o.value));return e.on(a,r),zN(PN(e,"NodeChange",t=>{const n=t.getComponent();o.updateText(n),sv.set(t.getComponent(),!e.selection.isEditable())})(t),()=>e.off(a,r))};return EF({text:o.icon.isSome()?T.none():o.text,icon:o.icon,tooltip:T.from(o.tooltip),role:T.none(),fetch:r.getFetch(t,i),onSetup:s,getApi:l,columns:1,presets:"normal",classes:o.icon.isSome()?[]:["bespoke"],dropdownBehaviours:[]},"tox-tbtn",t.shared)},VW=e=>q(e,e=>{let t=e,o=e;const n=e.split("=");return n.length>1&&(t=n[0],o=n[1]),{title:t,format:o}}),AW=e=>({type:"basic",data:e});var NW;(function(e){e[e["SemiColon"]=0]="SemiColon",e[e["Space"]=1]="Space"})(NW||(NW={}));const DW=(e,t)=>t===NW.SemiColon?e.replace(/;$/,"").split(";"):e.split(" "),EW=(e,t,o)=>{const n=e.options.get(t),a=VW(DW(n,o));return{type:"basic",data:a}},TW="Align",SW="Alignment {0}",BW="left",IW=[{title:"Left",icon:"align-left",format:"alignleft",command:"JustifyLeft"},{title:"Center",icon:"align-center",format:"aligncenter",command:"JustifyCenter"},{title:"Right",icon:"align-right",format:"alignright",command:"JustifyRight"},{title:"Justify",icon:"align-justify",format:"alignjustify",command:"JustifyFull"}],zW=e=>{const t=()=>Q(IW,t=>e.formatter.match(t.format)),o=t=>()=>e.formatter.match(t),n=e=>T.none,a=o=>{const n=t(),a=n.fold(O(BW),e=>e.title.toLowerCase());Tl(o,DF,{icon:"align-"+a}),EN(e,{value:a})},r=AW(IW),i=t=>()=>Q(IW,e=>e.format===t.format).each(t=>e.execCommand(t.command));return{tooltip:OW(e,SW,BW),text:T.none(),icon:T.some("align-left"),isSelectedFor:o,getCurrentValue:T.none,getPreviewFor:n,onAction:i,updateText:a,dataset:r,shouldHide:!1,isInvalid:t=>!e.formatter.canApply(t.format)}},FW=(e,t)=>_W(e,t,zW(e),SW,"AlignTextUpdate"),MW=(e,t)=>{const o=xW(e,t,zW(e));e.ui.registry.addNestedMenuItem("align",{text:t.shared.providers.translate(TW),onSetup:FN(e),getSubmenuItems:()=>o.items.validateItems(o.getStyleItems())})},LW=(e,t)=>{const o=t(),n=q(o,e=>e.format);return T.from(e.formatter.closest(n)).bind(e=>Q(o,t=>t.format===e)).orThunk(()=>Se(e.formatter.match("p"),{title:"Paragraph",format:"p"}))},PW="Blocks",RW="Block {0}",qW="Paragraph",$W=e=>{const t=t=>()=>e.formatter.match(t),o=t=>()=>{const o=e.formatter.get(t);return o?T.some({tag:o.length>0&&(o[0].inline||o[0].block)||"div",styles:e.dom.parseStyle(e.formatter.getCssText(t))}):T.none()},n=t=>{const o=LW(e,()=>a.data),n=o.fold(O(qW),e=>e.title);Tl(t,NF,{text:n}),BN(e,{value:n})},a=EW(e,"block_formats",NW.SemiColon);return{tooltip:OW(e,RW,qW),text:T.some(qW),icon:T.none(),isSelectedFor:t,getCurrentValue:T.none,getPreviewFor:o,onAction:RN(e),updateText:n,dataset:a,shouldHide:!1,isInvalid:t=>!e.formatter.canApply(t.format)}},UW=(e,t)=>_W(e,t,$W(e),RW,"BlocksTextUpdate"),HW=(e,t)=>{const o=xW(e,t,$W(e));e.ui.registry.addNestedMenuItem("blocks",{text:PW,onSetup:FN(e),getSubmenuItems:()=>o.items.validateItems(o.getStyleItems())})},WW="Fonts",GW="Font {0}",KW="System Font",YW=["-apple-system","Segoe UI","Roboto","Helvetica Neue","sans-serif"],QW=e=>{const t=e.split(/\s*,\s*/);return q(t,e=>e.replace(/^['"]+|['"]+$/g,""))},JW=(e,t)=>t.length>0&&ee(t,t=>e.indexOf(t.toLowerCase())>-1),ZW=(e,t)=>{if(0===e.indexOf("-apple-system")||t.length>0){const o=QW(e.toLowerCase());return JW(o,YW)||JW(o,t)}return!1},XW=e=>{const t=()=>{const t=e=>e?QW(e)[0]:"",o=e.queryCommandValue("FontName"),n=l.data,a=o?o.toLowerCase():"",r=ox(e),i=Q(n,e=>{const o=e.format;return o.toLowerCase()===a||t(o).toLowerCase()===t(a).toLowerCase()}).orThunk(()=>Se(ZW(a,r),{title:KW,format:a}));return{matchOpt:i,font:o}},o=e=>t=>t.exists(t=>t.format===e),n=()=>{const{matchOpt:e}=t();return e},a=e=>()=>T.some({tag:"div",styles:-1===e.indexOf("dings")?{"font-family":e}:{}}),r=t=>()=>{e.undoManager.transact(()=>{e.focus(),e.execCommand("FontName",!1,t.format)})},i=o=>{const{matchOpt:n,font:a}=t(),r=n.fold(O(a),e=>e.title);Tl(o,NF,{text:r}),IN(e,{value:r})},l=EW(e,"font_family_formats",NW.SemiColon);return{tooltip:OW(e,GW,KW),text:T.some(KW),icon:T.none(),isSelectedFor:o,getCurrentValue:n,getPreviewFor:a,onAction:r,updateText:i,dataset:l,shouldHide:!1,isInvalid:D}},eG=(e,t)=>_W(e,t,XW(e),GW,"FontFamilyTextUpdate"),tG=(e,t)=>{const o=xW(e,t,XW(e));e.ui.registry.addNestedMenuItem("fontfamily",{text:t.shared.providers.translate(WW),onSetup:FN(e),getSubmenuItems:()=>o.items.validateItems(o.getStyleItems())})},oG={unsupportedLength:["em","ex","cap","ch","ic","rem","lh","rlh","vw","vh","vi","vb","vmin","vmax","cm","mm","Q","in","pc","pt","px"],fixed:["px","pt"],relative:["%"],empty:[""]},nG=(()=>{const e="[0-9]+",t="[+-]?"+e,o="[eE]"+t,n="\\.",a=e=>`(?:${e})?`,r=["Infinity",e+n+a(e)+a(o),n+e+a(o),e+a(o)].join("|"),i=`[+-]?(?:${r})`;return new RegExp(`^(${i})(.*)$`)})(),aG=(e,t)=>L(t,t=>L(oG[t],t=>e===t)),rG=(e,t)=>{const o=T.from(nG.exec(e));return o.bind(e=>{const o=Number(e[1]),n=e[2];return aG(n,t)?T.some({value:o,unit:n}):T.none()})},iG=(e,t)=>rG(e,t).map(({value:e,unit:t})=>e+t),lG={tab:O(9),escape:O(27),enter:O(13),backspace:O(8),delete:O(46),left:O(37),up:O(38),right:O(39),down:O(40),space:O(32),home:O(36),end:O(35),pageUp:O(33),pageDown:O(34)},sG=(e,t,o)=>{let n=T.none();const a=e=>e.map(e=>jg.getValue(e)).getOr(""),r=PN(e,"NodeChange SwitchMode",t=>{const a=t.getComponent();n=T.some(a),o.updateInputValue(a),sv.set(a,!e.selection.isEditable())}),i=e=>({getComponent:O(e)}),l=hi(w),s=bs("custom-number-input-events"),c=(e,t,r)=>{const i=a(n),l=o.getNewValue(i,e),s=i.length-(""+l).length,c=n.map(e=>e.element.dom.selectionStart-s),d=n.map(e=>e.element.dom.selectionEnd-s);o.onAction(l,r),n.each(e=>{jg.setValue(e,l),t&&(c.each(t=>e.element.dom.selectionStart=t),d.each(t=>e.element.dom.selectionEnd=t))})},d=(e,t)=>c((e,t)=>e-t,e,t),u=(e,t)=>c((e,t)=>e+t,e,t),m=e=>Tt(e.element).fold(T.none,e=>(Ju(e),T.some(!0))),h=e=>Xu(e.element)?(Mt(e.element).each(e=>Ju(e)),T.some(!0)):T.none(),p=(o,n,a,r)=>{const l=hi(w),s=t.shared.providers.translate(a),c=bs("altExecuting"),d=PN(e,"NodeChange SwitchMode",t=>{sv.set(t.getComponent(),!e.selection.isEditable())}),u=e=>{sv.isDisabled(e)||o(!0)};return Hy.sketch({dom:{tag:"button",attributes:{title:s,"aria-label":s},classes:r.concat(n)},components:[_F(n,t.shared.providers.icons)],buttonBehaviours:qu([sv.config({}),wC(c,[yA({onSetup:d,getApi:i},l),OA({getApi:i},l),ql(Ki(),(e,t)=>{t.event.raw.keyCode!==lG.space()&&t.event.raw.keyCode!==lG.enter()||sv.isDisabled(e)||o(!1)}),ql(Zi(),u),ql(Li(),u)])]),eventOrder:{[Ki()]:[c,"keying"],[Zi()]:[c,"alloy.base.behaviour"],[Li()]:[c,"alloy.base.behaviour"]}})},b=Yy(p(e=>d(!1,e),"minus","Decrease font size",[])),g=Yy(p(e=>u(!1,e),"plus","Increase font size",[])),f=Yy({dom:{tag:"div",classes:["tox-input-wrapper"]},components:[r_.sketch({inputBehaviours:qu([sv.config({}),wC(s,[yA({onSetup:r,getApi:i},l),OA({getApi:i},l)]),wC("input-update-display-text",[ql(NF,(e,t)=>{jg.setValue(e,t.event.text)}),ql(Gi(),e=>{o.onAction(jg.getValue(e))}),ql(Ji(),e=>{o.onAction(jg.getValue(e))})]),nC.config({mode:"special",onEnter:e=>(c(j,!0,!0),T.some(!0)),onEscape:m,onUp:e=>(u(!0,!1),T.some(!0)),onDown:e=>(d(!0,!1),T.some(!0)),onLeft:(e,t)=>(t.cut(),T.none()),onRight:(e,t)=>(t.cut(),T.none())})])})],behaviours:qu([AC.config({}),nC.config({mode:"special",onEnter:h,onSpace:h,onEscape:m}),wC("input-wrapper-events",[ql(Hi(),e=>{$([b,g],t=>{const o=Ze.fromDom(t.get(e).element.dom);Xu(o)&&Zu(o)})})])])});return{dom:{tag:"div",classes:["tox-number-input"]},components:[b.asSpec(),f.asSpec(),g.asSpec()],behaviours:qu([AC.config({}),nC.config({mode:"flow",focusInside:Zv.OnEnterOrSpaceMode,cycles:!1,selector:"button, .tox-input-wrapper",onEscape:e=>Xu(e.element)?T.none():(Ju(e.element),T.some(!0))})])}},cG="Font sizes",dG="Font size {0}",uG="12pt",mG={"8pt":"1","10pt":"2","12pt":"3","14pt":"4","18pt":"5","24pt":"6","36pt":"7"},hG={"xx-small":"7pt","x-small":"8pt",small:"10pt",medium:"12pt",large:"14pt","x-large":"18pt","xx-large":"24pt"},pG=(e,t)=>{const o=Math.pow(10,t);return Math.round(e*o)/o},bG=(e,t)=>/[0-9.]+px$/.test(e)?pG(72*parseInt(e,10)/96,t||0)+"pt":Oe(hG,e).getOr(e),gG=e=>Oe(mG,e).getOr(""),fG=e=>{const t=()=>{let t=T.none();const o=l.data,n=e.queryCommandValue("FontSize");if(n)for(let e=3;t.isNone()&&e>=0;e--){const a=bG(n,e),r=gG(a);t=Q(o,e=>e.format===n||e.format===a||e.format===r)}return{matchOpt:t,size:n}},o=e=>t=>t.exists(t=>t.format===e),n=()=>{const{matchOpt:e}=t();return e},a=O(T.none),r=t=>()=>{e.undoManager.transact(()=>{e.focus(),e.execCommand("FontSize",!1,t.format)})},i=o=>{const{matchOpt:n,size:a}=t(),r=n.fold(O(a),e=>e.title);Tl(o,NF,{text:r}),TN(e,{value:r})},l=EW(e,"font_size_formats",NW.Space);return{tooltip:OW(e,dG,uG),text:T.some(uG),icon:T.none(),isSelectedFor:o,getPreviewFor:a,getCurrentValue:n,onAction:r,updateText:i,dataset:l,shouldHide:!1,isInvalid:D}},vG=(e,t)=>_W(e,t,fG(e),dG,"FontSizeTextUpdate"),wG=e=>{var t;const o={step:1},n={em:{step:.1},cm:{step:.1},in:{step:.1},pc:{step:.1},ch:{step:.1},rem:{step:.1}};return null!==(t=n[e])&&void 0!==t?t:o},kG=16,CG=e=>e>=0,yG=e=>{const t=()=>e.queryCommandValue("FontSize"),o=e=>Tl(e,NF,{text:t()});return{updateInputValue:o,onAction:(t,o)=>e.execCommand("FontSize",!1,t,{skip_focus:!o}),getNewValue:(o,n)=>{rG(o,["unsupportedLength","empty"]);const a=t(),r=rG(o,["unsupportedLength","empty"]).or(rG(a,["unsupportedLength","empty"])),i=r.map(e=>e.value).getOr(kG),l=qj(e),s=r.map(e=>e.unit).filter(e=>""!==e).getOr(l),c=n(i,wG(s).step),d=`${CG(c)?c:i}${s}`;return d!==a&&SN(e,{value:d}),d}}},OG=(e,t)=>sG(e,t,yG(e)),jG=(e,t)=>{const o=xW(e,t,fG(e));e.ui.registry.addNestedMenuItem("fontsize",{text:cG,onSetup:FN(e),getSubmenuItems:()=>o.items.validateItems(o.getStyleItems())})},xG="Formats",_G="Format {0}",VG=(e,t)=>{const o="Paragraph",n=t=>()=>e.formatter.match(t),a=t=>()=>{const o=e.formatter.get(t);return void 0!==o?T.some({tag:o.length>0&&(o[0].inline||o[0].block)||"div",styles:e.dom.parseStyle(e.formatter.getCssText(t))}):T.none()},r=t=>{const n=e=>ZP(e)?X(e.items,n):XP(e)?[{title:e.title,format:e.format}]:[],a=X(lR(e),n),r=LW(e,O(a)),i=r.fold(O(o),e=>e.title);Tl(t,NF,{text:i}),DN(e,{value:i})};return{tooltip:OW(e,_G,o),text:T.some(o),icon:T.none(),isSelectedFor:n,getCurrentValue:T.none,getPreviewFor:a,onAction:RN(e),updateText:r,shouldHide:Aj(e),isInvalid:t=>!e.formatter.canApply(t.format),dataset:t}},AG=(e,t)=>{const o={type:"advanced",...t.styles};return _W(e,t,VG(e,o),_G,"StylesTextUpdate")},NG=(e,t)=>{const o={type:"advanced",...t.styles},n=xW(e,t,VG(e,o));e.ui.registry.addNestedMenuItem("styles",{text:xG,onSetup:FN(e),getSubmenuItems:()=>n.items.validateItems(n.getStyleItems())})},DG=O([Fr("toggleClass"),Fr("fetch"),Ld("onExecute"),ni("getHotspot",T.some),ni("getAnchorOverrides",O({})),mh(),Ld("onItemExecute"),Kr("lazySink"),Fr("dom"),Fd("onOpen"),xg("splitDropdownBehaviours",[hE,nC,AC]),ni("matchWidth",!1),ni("useMinWidth",!1),ni("eventOrder",{}),Kr("role")].concat(IE())),EG=nf({factory:Hy,schema:[Fr("dom")],name:"arrow",defaults:()=>({buttonBehaviours:qu([AC.revoke()])}),overrides:e=>({dom:{tag:"span",attributes:{role:"presentation"}},action:t=>{t.getSystem().getByUid(e.uid).each(Sl)},buttonBehaviours:qu([GC.config({toggleOnExecute:!1,toggleClass:e.toggleClass})])})}),TG=nf({factory:Hy,schema:[Fr("dom")],name:"button",defaults:()=>({buttonBehaviours:qu([AC.revoke()])}),overrides:e=>({dom:{tag:"span",attributes:{role:"presentation"}},action:t=>{t.getSystem().getByUid(e.uid).each(o=>{e.onExecute(o,t)})}})}),SG=O([EG,TG,rf({factory:{sketch:e=>({uid:e.uid,dom:{tag:"span",styles:{display:"none"},attributes:{"aria-hidden":"true"},innerHtml:e.text}})},schema:[Fr("text")],name:"aria-descriptor"}),af({schema:[Bd()],name:"menu",defaults:e=>({onExecute:(t,o)=>{t.getSystem().getByUid(e.uid).each(n=>{e.onItemExecute(n,t,o)})}})}),OE()]),BG=(e,t,o,n)=>{const a=e=>{$f.getCurrent(e).each(e=>{Av.highlightFirst(e),nC.focusIn(e)})},r=t=>{const o=a;NE(e,j,t,n,o,Sy.HighlightMenuAndItem).get(w)},i=e=>(r(e),T.some(!0)),l=t=>{const o=kf(t,e,"button");return Sl(o),T.some(!0)},s={...Ml([Zl((t,o)=>{const n=wf(t,e,"aria-descriptor");n.each(e=>{const o=bs("aria");to(e.element,"id",o),to(t.element,"aria-describedby",o)})})]),...YC(T.some(r))},c={repositionMenus:e=>{GC.isOn(e)&&BE(e)}};return{uid:e.uid,dom:e.dom,components:t,apis:c,eventOrder:{...e.eventOrder,[cl()]:["disabling","toggling","alloy.base.behaviour"]},events:s,behaviours:Vg(e.splitDropdownBehaviours,[hE.config({others:{sandbox:t=>{const o=kf(t,e,"arrow"),n={onOpen:()=>{GC.on(o),GC.on(t)},onClose:()=>{GC.off(o),GC.off(t)}};return SE(e,t,n)}}}),nC.config({mode:"special",onSpace:l,onEnter:l,onDown:i}),AC.config({}),GC.config({toggleOnExecute:!1,aria:{mode:"expanded"}})]),domModification:{attributes:{role:e.role.getOr("button"),"aria-haspopup":!0}}}},IG=Mf({name:"SplitDropdown",configFields:DG(),partFields:SG(),factory:BG,apis:{repositionMenus:(e,t)=>e.repositionMenus(t)}}),zG=e=>({isEnabled:()=>!sv.isDisabled(e),setEnabled:t=>sv.set(e,!t),setText:t=>Tl(e,NF,{text:t}),setIcon:t=>Tl(e,DF,{icon:t})}),FG=e=>({setActive:t=>{GC.set(e,t)},isActive:()=>GC.isOn(e),isEnabled:()=>!sv.isDisabled(e),setEnabled:t=>sv.set(e,!t),setText:t=>Tl(e,NF,{text:t}),setIcon:t=>Tl(e,DF,{icon:t})}),MG=(e,t)=>e.map(e=>({"aria-label":t.translate(e),title:t.translate(e)})).getOr({}),LG=bs("focus-button"),PG=(e,t,o,n,a)=>{const r=t.map(e=>Yy(AF(e,"tox-tbtn",a))),i=e.map(e=>Yy(VF(e,a.icons)));return{dom:{tag:"button",classes:["tox-tbtn"].concat(t.isSome()?["tox-tbtn--select"]:[]),attributes:MG(o,a)},components:_A([i.map(e=>e.asSpec()),r.map(e=>e.asSpec())]),eventOrder:{[Ri()]:["focusing","alloy.base.behaviour",yF],[kl()]:[yF,"toolbar-group-button-events"]},buttonBehaviours:qu([kA.toolbarButton(a.isDisabled),bA(),wC(yF,[Zl((e,t)=>jF(e)),ql(NF,(e,t)=>{r.bind(t=>t.getOpt(e)).each(e=>{fC.set(e,[Jc(a.translate(t.event.text))])})}),ql(DF,(e,t)=>{i.bind(t=>t.getOpt(e)).each(e=>{fC.set(e,[VF(t.event.icon,a.icons)])})}),ql(Ri(),(e,t)=>{t.event.prevent(),El(e,LG)})])].concat(n.getOr([])))}},RG=(e,t,o,n)=>{const a=t.shared,r=hi(w),i={toolbarButtonBehaviours:[],getApi:zG,onSetup:e.onSetup},l=[wC("toolbar-group-button-events",[yA(i,r),OA(i,r)])];return QU.sketch({lazySink:a.getSink,fetch:()=>CE.nu(t=>{t(q(o(e.items),hH))}),markers:{toggledClass:"tox-tbtn--enabled"},parts:{button:PG(e.icon,e.text,e.tooltip,T.some(l),a.providers),toolbar:{dom:{tag:"div",classes:["tox-toolbar__overflow"],attributes:n}}}})},qG=(e,t,o)=>{var n;const a=hi(w),r=PG(e.icon,e.text,e.tooltip,T.none(),o);return Hy.sketch({dom:r.dom,components:r.components,eventOrder:OF,buttonBehaviours:{...qu([wC("toolbar-button-events",[CF({onAction:e.onAction,getApi:t.getApi}),yA(t,a),OA(t,a)]),kA.toolbarButton(()=>!e.enabled||o.isDisabled()),bA()].concat(t.toolbarButtonBehaviours)),[yF]:null===(n=r.buttonBehaviours)||void 0===n?void 0:n[yF]}})},$G=(e,t)=>UG(e,t,[]),UG=(e,t,o)=>qG(e,{toolbarButtonBehaviours:o.length>0?[wC("toolbarButtonWith",o)]:[],getApi:zG,onSetup:e.onSetup},t),HG=(e,t)=>WG(e,t,[]),WG=(e,t,o)=>qG(e,{toolbarButtonBehaviours:[fC.config({}),GC.config({toggleClass:"tox-tbtn--enabled",aria:{mode:"pressed"},toggleOnExecute:!1})].concat(o.length>0?[wC("toolbarToggleButtonWith",o)]:[]),getApi:FG,onSetup:e.onSetup},t),GG=(e,t,o)=>n=>CE.nu(e=>t.fetch(e)).map(a=>T.from(XE(Da(SD(bs("menu-value"),a,o=>{t.onItemAction(e(n),o)},t.columns,t.presets,_x.CLOSE_ON_EXECUTE,t.select.getOr(D),o),{movement:ID(t.columns,t.presets),menuBehaviours:JV.unnamedEvents("auto"!==t.columns?[]:[Zl((e,o)=>{KV(e,4,Gx(t.presets)).each(({numRows:t,numColumns:o})=>{nC.setGridSize(e,t,o)})})])})))),KG=(e,t)=>{const o=e=>({isEnabled:()=>!sv.isDisabled(e),setEnabled:t=>sv.set(e,!t),setIconFill:(t,o)=>{md(e.element,`svg path[class="${t}"], rect[class="${t}"]`).each(e=>{to(e,"fill",o)})},setActive:t=>{to(e.element,"aria-pressed",t),md(e.element,"span").each(o=>{e.getSystem().getByDom(o).each(e=>GC.set(e,t))})},isActive:()=>md(e.element,"span").exists(t=>e.getSystem().getByDom(t).exists(GC.isOn)),setText:t=>md(e.element,"span").each(o=>e.getSystem().getByDom(o).each(e=>Tl(e,NF,{text:t}))),setIcon:t=>md(e.element,"span").each(o=>e.getSystem().getByDom(o).each(e=>Tl(e,DF,{icon:t}))),setTooltip:o=>{const n=t.providers.translate(o);oo(e.element,{"aria-label":n,title:n})}}),n=hi(w),a={getApi:o,onSetup:e.onSetup};return IG.sketch({dom:{tag:"div",classes:["tox-split-button"],attributes:{"aria-pressed":!1,...MG(e.tooltip,t.providers)}},onExecute:t=>{const n=o(t);n.isEnabled()&&e.onAction(n)},onItemExecute:(e,t,o)=>{},splitDropdownBehaviours:qu([kA.splitButton(t.providers.isDisabled),bA(),wC("split-dropdown-events",[Zl((e,t)=>jF(e)),ql(LG,AC.focus),yA(a,n),OA(a,n)]),OS.config({})]),eventOrder:{[kl()]:["alloy.base.behaviour","split-dropdown-events"]},toggleClass:"tox-tbtn--enabled",lazySink:t.getSink,fetch:GG(o,e,t.providers),parts:{menu:Xx(!1,e.columns,e.presets)},components:[IG.parts.button(PG(e.icon,e.text,T.none(),T.some([GC.config({toggleClass:"tox-tbtn--enabled",toggleOnExecute:!1})]),t.providers)),IG.parts.arrow({dom:{tag:"button",classes:["tox-tbtn","tox-split-button__chevron"],innerHtml:ej("chevron-down",t.providers.icons)},buttonBehaviours:qu([kA.splitButton(t.providers.isDisabled),bA(),nj()])}),IG.parts["aria-descriptor"]({text:t.providers.translate("To open the popup, press Shift+Enter")})]})},YG=[{name:"history",items:["undo","redo"]},{name:"ai",items:["aidialog","aishortcuts"]},{name:"styles",items:["styles"]},{name:"formatting",items:["bold","italic"]},{name:"alignment",items:["alignleft","aligncenter","alignright","alignjustify"]},{name:"indentation",items:["outdent","indent"]},{name:"permanent pen",items:["permanentpen"]},{name:"comments",items:["addcomment"]}],QG=(e,t)=>(o,n,a)=>{const r=e(o).mapError(e=>Er(e)).getOrDie();return t(r,n,a)},JG={button:QG(mV,(e,t)=>$G(e,t.shared.providers)),togglebutton:QG(bV,(e,t)=>HG(e,t.shared.providers)),menubutton:QG(I$,(e,t)=>WM(e,"tox-tbtn",t,T.none(),!1)),splitbutton:QG(F$,(e,t)=>KG(e,t.shared)),grouptoolbarbutton:QG(T$,(e,t,o)=>{const n=o.ui.registry.getAll().buttons,a=e=>rK(o,{buttons:n,toolbar:e,allowToolbarGroups:!1},t,T.none()),r={[dh]:t.shared.header.isPositionedAtTop()?ch.TopToBottom:ch.BottomToTop};switch(Ej(o)){case dj.floating:return RG(e,t,a,r);default:throw new Error("Toolbar groups are only supported when using floating toolbar mode")}})},ZG=(e,t,o)=>Oe(JG,e.type).fold(()=>(console.error("skipping button defined by",e),T.none()),n=>T.some(n(e,t,o))),XG={styles:AG,fontsize:vG,fontsizeinput:OG,fontfamily:eG,blocks:UW,align:FW},eK=e=>{const t=q(YG,t=>{const o=W(t.items,t=>je(e,t)||je(XG,t));return{name:t.name,items:o}});return W(t,e=>e.items.length>0)},tK=e=>{const t=e.split("|");return q(t,e=>({items:e.trim().split(" ")}))},oK=e=>v(e,e=>je(e,"name")&&je(e,"items")),nK=e=>{const t=e.toolbar,o=e.buttons;return!1===t?[]:void 0===t||!0===t?eK(o):l(t)?tK(t):oK(t)?t:(console.error("Toolbar type should be string, string[], boolean or ToolbarGroup[]"),[])},aK=(e,t,o,n,a,r)=>Oe(t,o.toLowerCase()).orThunk(()=>r.bind(e=>de(e,e=>Oe(t,e+o.toLowerCase())))).fold(()=>Oe(XG,o.toLowerCase()).map(t=>t(e,a)),t=>"grouptoolbarbutton"!==t.type||n?ZG(t,a,e):(console.warn(`Ignoring the '${o}' toolbar button. Group toolbar buttons are only supported when using floating toolbar mode and cannot be nested.`),T.none())),rK=(e,t,o,n)=>{const a=nK(t),r=q(a,a=>{const r=X(a.items,a=>0===a.trim().length?[]:aK(e,t.buttons,a,t.allowToolbarGroups,o,n).toArray());return{title:T.from(e.translate(a.name)),items:r}});return W(r,e=>e.items.length>0)},iK=(e,t,o,n)=>{const a=t.mainUi.outerContainer,r=o.toolbar,i=o.buttons;if(v(r,l)){const t=r.map(t=>{const a={toolbar:t,buttons:i,allowToolbarGroups:o.allowToolbarGroups};return rK(e,a,n,T.none())});lW.setToolbars(a,t)}else lW.setToolbar(a,rK(e,o,n,T.none()))},lK=xn(),sK=lK.os.isiOS()&&lK.os.version.major<=12,cK=(e,t)=>{const{uiMotherships:o}=t,n=e.dom;let a=e.getWin();const r=e.getDoc().documentElement,i=hi(Vo(a.innerWidth,a.innerHeight)),l=hi(Vo(r.offsetWidth,r.offsetHeight)),s=()=>{const t=i.get();t.left===a.innerWidth&&t.top===a.innerHeight||(i.set(Vo(a.innerWidth,a.innerHeight)),jN(e))},c=()=>{const t=e.getDoc().documentElement,o=l.get();o.left===t.offsetWidth&&o.top===t.offsetHeight||(l.set(Vo(t.offsetWidth,t.offsetHeight)),jN(e))},d=t=>{xN(e,t)};n.bind(a,"resize",s),n.bind(a,"scroll",d);const u=Sm(Ze.fromDom(e.getBody()),"load",c);e.on("hide",()=>{$(o,e=>{uo(e.element,"display","none")})}),e.on("show",()=>{$(o,e=>{wo(e.element,"display")})}),e.on("NodeChange",c),e.on("remove",()=>{u.unbind(),n.unbind(a,"resize",s),n.unbind(a,"scroll",d),a=null})},dK=(e,t,o)=>{fx(e)&&kb(o.mainUi.mothership.element,o.popupUi.mothership),wb(t,o.dialogUi.mothership)},uK=(e,t,o,n,a)=>{const{mainUi:r,uiMotherships:i}=t,l=hi(0),s=r.outerContainer;CW(e);const c=Ze.fromDom(a.targetNode),d=Ht(Ut(c));kb(c,r.mothership),dK(e,d,t),e.on("SkinLoaded",()=>{lW.setSidebar(s,o.sidebar,Xj(e)),iK(e,t,o,n),l.set(e.getWin().innerWidth),lW.setMenubar(s,mW(e,o)),lW.setViews(s,o.views),cK(e,t)});const m=lW.getSocket(s).getOrDie("Could not find expected socket element");if(sK){mo(m.element,{overflow:"scroll","-webkit-overflow-scrolling":"touch"});const t=Rz(()=>{e.dispatch("ScrollContent")},20),o=Tm(m.element,"scroll",t.throttle);e.on("remove",o.unbind)}pA(e,t),e.addCommand("ToggleSidebar",(t,o)=>{lW.toggleSidebar(s,o),e.dispatch("ToggleSidebar")}),e.addQueryValueHandler("ToggleSidebar",()=>{var e;return null!==(e=lW.whichSidebar(s))&&void 0!==e?e:""}),e.addCommand("ToggleView",(t,o)=>{if(lW.toggleView(s,o)){const t=s.element;r.mothership.broadcastOn([$b()],{target:t}),$(i,e=>{e.broadcastOn([$b()],{target:t})}),u(lW.whichView(s))&&(e.focus(),e.nodeChanged(),lW.refreshToolbar(s))}}),e.addQueryValueHandler("ToggleView",()=>{var e;return null!==(e=lW.whichView(s))&&void 0!==e?e:""});const h=Ej(e),p=()=>{lW.refreshToolbar(t.mainUi.outerContainer)};h!==dj.sliding&&h!==dj.floating||e.on("ResizeWindow ResizeEditor ResizeContent",()=>{const t=e.getWin().innerWidth;t!==l.get()&&(p(),l.set(t))});const b={setEnabled:e=>{hA(t,!e)},isEnabled:()=>!sv.isDisabled(s)};return{iframeContainer:m.element.dom,editorContainer:s.element.dom,api:b}};var mK=Object.freeze({__proto__:null,render:uK});const hK=e=>{const t=/^[0-9\.]+(|px)$/i;return t.test(""+e)?T.some(parseInt(""+e,10)):T.none()},pK=e=>f(e)?e+"px":e,bK=(e,t,o)=>{const n=t.filter(t=>e<t),a=o.filter(t=>e>t);return n.or(a).getOr(e)},gK=e=>{const t=kj(e),o=Oj(e),n=xj(e);return hK(t).map(e=>bK(e,o,n))},fK=e=>{const t=gK(e);return t.getOr(kj(e))},vK=e=>{const t=Cj(e),o=yj(e),n=jj(e);return hK(t).map(e=>bK(e,o,n))},wK=e=>{const t=vK(e);return t.getOr(Cj(e))},{ToolbarLocation:kK,ToolbarMode:CK}=wx,yK=40,OK=(e,t,o,n,a)=>{const{mainUi:r,uiMotherships:i}=o,l=hj.DOM,s=hx(e),c=gx(e),d=jj(e).or(vK(e)),u=n.shared.header,m=u.isPositionedAtTop,h=Ej(e),p=h===CK.sliding||h===CK.floating,b=hi(!1),g=()=>b.get()&&!e.removed,f=e=>p?e.fold(O(0),e=>e.components().length>1?Oo(e.components()[1].element):0):0,v=o=>{switch(Sj(e)){case kK.auto:const e=lW.getToolbar(r.outerContainer),n=f(e),a=Oo(o.element)-n,i=oa(t),l=i.y>a;if(l)return"top";{const e=At(t),o=Math.max(e.dom.scrollHeight,Oo(e)),n=i.bottom<o-a;if(n)return"bottom";{const e=ia(),t=e.bottom<i.bottom-a;return t?"bottom":"top"}}case kK.bottom:return"bottom";case kK.top:default:return"top"}},w=e=>{a.on(t=>{h$.setModes(t,[e]),u.setDockingMode(e);const o=m()?ch.TopToBottom:ch.BottomToTop;to(t.element,dh,o)})},k=()=>{a.on(e=>{const o=d.getOrThunk(()=>{const e=hK(po(Zt(),"margin-left")).getOr(0);return Bo(Zt())-Do(t).left+e});uo(e.element,"max-width",o+"px")})},C=o=>{a.on(n=>{const a=lW.getToolbar(r.outerContainer),i=f(a),l=oa(t),{top:s,left:c}=y(e,r.outerContainer.element).fold(()=>({top:m()?Math.max(l.y-Oo(n.element)+i,0):l.bottom,left:l.x}),e=>{var t;const o=oa(e),a=null!==(t=e.dom.scrollTop)&&void 0!==t?t:0,r=jt(e,Zt()),s=r?Math.max(l.y-Oo(n.element)+i,0):l.y-o.y+a-Oo(n.element)+i;return{top:m()?s:l.bottom,left:r?l.x:l.x-o.x}}),d={position:"absolute",left:Math.round(c)+"px",top:Math.round(s)+"px"},u=o.map(e=>{const t=Rn(),o=150,n=window.innerWidth-(c-t.left),a=Math.max(Math.min(e,n),o);return{width:a+"px"}}).getOr({});mo(r.outerContainer.element,{...d,...u})})},y=(e,t)=>fx(e)?Cq(t):T.none(),j=()=>{$(i,e=>{e.broadcastOn([Ub()],{})})},x=()=>{if(s)return T.none();{const e=Do(r.outerContainer.element).left+Io(r.outerContainer.element);if(e>=window.innerWidth-yK||go(r.outerContainer.element,"width").isSome()){uo(r.outerContainer.element,"position","absolute"),uo(r.outerContainer.element,"left","0px"),wo(r.outerContainer.element,"width");const e=Io(r.outerContainer.element);return T.some(e)}return T.none()}},_=e=>{if(!g())return;s||k();const t=s?T.none():x();p&&lW.refreshToolbar(r.outerContainer),s||C(t),c&&a.on(e),j()},V=()=>!(s||!c||!g())&&a.get().exists(e=>{const t=u.getDockingMode(),o=v(e);return o!==t&&(w(o),!0)}),A=()=>{b.set(!0),uo(r.outerContainer.element,"display","flex"),l.addClass(e.getBody(),"mce-edit-focus"),$(i,e=>{wo(e.element,"display")}),V(),fx(e)?_(e=>h$.isDocked(e)?h$.reset(e):h$.refresh(e)):_(h$.refresh)},N=()=>{b.set(!1),uo(r.outerContainer.element,"display","none"),l.removeClass(e.getBody(),"mce-edit-focus"),$(i,e=>{uo(e.element,"display","none")})},D=()=>{const e=V();e&&_(h$.reset)};return{isVisible:g,isPositionedAtTop:m,show:A,hide:N,update:_,updateMode:D,repositionPopups:j}},jK=(e,t)=>{const o=oa(e);return{pos:t?o.y:o.bottom,bounds:o}},xK=(e,t,o,n)=>{const a=hi(jK(t,o.isPositionedAtTop())),r=n=>{const{pos:r,bounds:i}=jK(t,o.isPositionedAtTop()),{pos:l,bounds:s}=a.get(),c=i.height!==s.height||i.width!==s.width;a.set({pos:r,bounds:i}),c&&jN(e,n),o.isVisible()&&(l!==r?o.update(h$.reset):c&&(o.updateMode(),o.repositionPopups()))};n||(e.on("activate",o.show),e.on("deactivate",o.hide)),e.on("SkinLoaded ResizeWindow",()=>o.update(h$.reset)),e.on("NodeChange keydown",e=>{requestAnimationFrame(()=>r(e))});let i=0;const l=qz(()=>o.update(h$.refresh),33);e.on("ScrollWindow",()=>{const e=Rn().left;e!==i&&(i=e,l.throttle()),o.updateMode()}),fx(e)&&e.on("ElementScroll",e=>{o.update(h$.refresh)});const s=Nm();s.set(Sm(Ze.fromDom(e.getBody()),"load",e=>r(e.raw))),e.on("remove",()=>{s.clear()})},_K=(e,t,o,n,a)=>{const{mainUi:r}=t,i=Dm(),l=Ze.fromDom(a.targetNode),s=OK(e,l,t,n,i),c=zj(e);yW(e);const d=()=>{if(i.isSet())return void s.show();i.set(lW.getHeader(r.outerContainer).getOrDie());const a=px(e);fx(e)?(kb(l,r.mothership),kb(l,t.popupUi.mothership)):wb(a,r.mothership),wb(a,t.dialogUi.mothership),iK(e,t,o,n),lW.setMenubar(r.outerContainer,mW(e,o)),s.show(),xK(e,l,s,c),e.nodeChanged()};e.on("show",d),e.on("hide",s.hide),c||(e.on("focus",d),e.on("blur",s.hide)),e.on("init",()=>{(e.hasFocus()||c)&&d()}),pA(e,t);const u={show:d,hide:s.hide,setEnabled:e=>{hA(t,!e)},isEnabled:()=>!sv.isDisabled(r.outerContainer)};return{editorContainer:r.outerContainer.element.dom,api:u}};var VK=Object.freeze({__proto__:null,render:_K});const AK=()=>{const e=Dm(),t=Dm(),o=Dm(),n=(e,t)=>()=>o.get().bind(e=>t(e.outerContainer)).getOrDie(`Could not find ${e} element in OuterContainer`),a=()=>{const o=e.get().map(e=>e.mothership),n=t.get().map(e=>e.mothership);return o.fold(()=>n.toArray(),e=>n.fold(()=>[e],t=>jt(e.element,t.element)?[e]:[e,t]))};return{dialogUi:e,popupUi:t,mainUi:o,getUiMotherships:a,lazyGetInOuterOrDie:n}},NK="contexttoolbar-show",DK="contexttoolbar-hide",EK=e=>({hide:()=>El(e,hl()),getValue:()=>jg.getValue(e)}),TK=(e,t)=>ql(kF,(o,n)=>{const a=e.get(o),r=EK(a);t.onAction(r,n.event.buttonApi)}),SK=(e,t,o)=>{const{primary:n,...a}=t.original,r=Nr(mV({...a,type:"button",onAction:w}));return UG(r,o,[TK(e,t)])},BK=(e,t,o)=>{const{primary:n,...a}=t.original,r=Nr(bV({...a,type:"togglebutton",onAction:w}));return WG(r,o,[TK(e,t)])},IK=e=>"contextformtogglebutton"===e.type,zK=(e,t,o)=>IK(t)?BK(e,t,o):SK(e,t,o),FK=(e,t,o)=>{const n=q(t,t=>Yy(zK(e,t,o))),a=()=>q(n,e=>e.asSpec()),r=e=>de(t,(t,o)=>t.primary?T.from(n[o]).bind(t=>t.getOpt(e)).filter(V(sv.isDisabled)):T.none());return{asSpecs:a,findPrimary:r}},MK=(e,t)=>{const o=e.label.fold(()=>({}),e=>({"aria-label":e})),n=Yy(r_.sketch({inputClasses:["tox-toolbar-textfield","tox-toolbar-nav-js"],data:e.initValue(),inputAttributes:o,selectOnFocus:!0,inputBehaviours:qu([nC.config({mode:"special",onEnter:e=>a.findPrimary(e).map(e=>(Sl(e),!0)),onLeft:(e,t)=>(t.cut(),T.none()),onRight:(e,t)=>(t.cut(),T.none())})])})),a=FK(n,e.commands,t);return[{title:T.none(),items:[n.asSpec()]},{title:T.none(),items:a.asSpecs()}]},LK=(e,t,o)=>vH({type:e,uid:bs("context-toolbar"),initGroups:MK(t,o),onEscape:T.none,cyclicKeying:!0,providers:o}),PK={renderContextForm:LK,buildInitGroups:MK},RK=(e,t,o)=>t.bottom-e.y>=o&&e.bottom-t.y>=o,qK=e=>{const t=e.getBoundingClientRect();if(t.height<=0&&t.width<=0){const o=Pt(Ze.fromDom(e.startContainer),e.startOffset).element,n=gt(o)?Dt(o):T.some(o);return n.filter(bt).map(e=>e.dom.getBoundingClientRect()).getOr(t)}return t},$K=e=>{const t=e.selection.getRng(),o=qK(t);if(e.inline){const e=Rn();return ta(e.left+o.left,e.top+o.top,o.width,o.height)}{const t=na(Ze.fromDom(e.getBody()));return ta(t.x+o.left,t.y+o.top,o.width,o.height)}},UK=(e,t)=>t.filter(e=>Jt(e)&&pt(e)).map(na).getOrThunk(()=>$K(e)),HK=(e,t,o)=>{const n=Math.max(e.x+o,t.x),a=Math.min(e.right-o,t.right);return{x:n,width:a-n}},WK=(e,t,o,n,a,r)=>{const i=Ze.fromDom(e.getContainer()),l=md(i,".tox-editor-header").getOr(i),s=oa(l),c=s.y>=t.bottom,d=n&&!c;if(e.inline&&d)return{y:Math.max(s.bottom+r,o.y),bottom:o.bottom};if(e.inline&&!d)return{y:o.y,bottom:Math.min(s.y-r,o.bottom)};const u="line"===a?oa(i):t;return d?{y:Math.max(s.bottom+r,o.y),bottom:Math.min(u.bottom-r,o.bottom)}:{y:Math.max(u.y+r,o.y),bottom:Math.min(s.y-r,o.bottom)}},GK=(e,t,o,n=0)=>{const a=Hn(window),r=oa(Ze.fromDom(e.getContentAreaContainer())),i=ax(e)||sx(e)||dx(e),{x:l,width:s}=HK(r,a,n);if(e.inline&&!i)return ta(l,a.y,s,a.height);{const i=t.header.isPositionedAtTop(),{y:c,bottom:d}=WK(e,r,a,i,o,n);return ta(l,c,s,d-c)}},KK=12,YK={valignCentre:[],alignCentre:[],alignLeft:["tox-pop--align-left"],alignRight:["tox-pop--align-right"],right:["tox-pop--right"],left:["tox-pop--left"],bottom:["tox-pop--bottom"],top:["tox-pop--top"],inset:["tox-pop--inset"]},QK={maxHeightFunction:Xm(),maxWidthFunction:PU()},JK=(e,t)=>{const o=e.selection.getRng(),n=Pt(Ze.fromDom(o.startContainer),o.startOffset);return o.startContainer===o.endContainer&&o.startOffset===o.endOffset-1&&jt(n.element,t)},ZK=(e,t,o)=>{const n=go(e,"position");uo(e,"position",t);const a=o(e);return n.each(t=>uo(e,"position",t)),a},XK=e=>"node"===e,eY=(e,t,o,n,a)=>{const r=$K(e),i=n.lastElement().exists(e=>jt(o,e));if(JK(e,o))return i?BP:NP;if(i)return ZK(t,n.getMode(),()=>{const e=RK(r,oa(t),-20);return e&&!n.isReposition()?zP:BP});{const e="fixed"===n.getMode()?a.y+Rn().top:a.y,o=Oo(t)+KK;return e+o<=r.y?NP:DP}},tY=(e,t,o,n)=>{const a=t=>(n,a,r,i,l)=>{const s=eY(e,i,t,o,l),c={...n,y:l.y,height:l.height};return{...s(c,a,r,i,l),alwaysFit:!0}},r=e=>XK(n)?[a(e)]:[],i={onLtr:e=>[Cu,yu,wu,fu,ku,vu].concat(r(e)),onRtl:e=>[Cu,yu,ku,vu,wu,fu].concat(r(e))},l={onLtr:e=>[yu,fu,vu,wu,ku,Cu].concat(r(e)),onRtl:e=>[yu,vu,fu,ku,wu,Cu].concat(r(e))};return t?l:i},oY=(e,t,o,n)=>"line"===t?{bubble:ah(KK,0,YK),layouts:{onLtr:()=>[Ou],onRtl:()=>[ju]},overrides:QK}:{bubble:ah(0,KK,YK,1/KK),layouts:tY(e,o,n,t),overrides:QK},nY=(e,t)=>{const o=W(t,t=>t.predicate(e.dom)),{pass:n,fail:a}=H(o,e=>"contexttoolbar"===e.type);return{contextToolbars:n,contextForms:a}},aY=e=>{if(e.length<=1)return e;{const t=t=>L(e,e=>e.position===t),o=t=>W(e,e=>e.position===t),n=t("selection"),a=t("node");if(n||a){if(a&&n){const e=o("node"),t=q(o("selection"),e=>({...e,position:"node"}));return e.concat(t)}return o(n?"selection":"node")}return o("line")}},rY=e=>{if(e.length<=1)return e;{const t=t=>Q(e,e=>e.position===t),o=t("selection").orThunk(()=>t("node")).orThunk(()=>t("line")).map(e=>e.position);return o.fold(()=>[],t=>W(e,e=>e.position===t))}},iY=(e,t,o)=>{const n=nY(e,t);if(n.contextForms.length>0)return T.some({elem:e,toolbars:[n.contextForms[0]]});{const t=nY(e,o);if(t.contextForms.length>0)return T.some({elem:e,toolbars:[t.contextForms[0]]});if(n.contextToolbars.length>0||t.contextToolbars.length>0){const o=aY(n.contextToolbars.concat(t.contextToolbars));return T.some({elem:e,toolbars:o})}return T.none()}},lY=(e,t,o)=>e(t)?T.none():Vi(t,e=>{if(bt(e)){const{contextToolbars:t,contextForms:n}=nY(e,o.inNodeScope),a=n.length>0?n:rY(t);return a.length>0?T.some({elem:e,toolbars:a}):T.none()}return T.none()},e),sY=(e,t)=>{const o=Ze.fromDom(t.getBody()),n=e=>jt(e,o),a=e=>!n(e)&&!xt(o,e),r=Ze.fromDom(t.selection.getNode());return a(r)?T.none():iY(r,e.inNodeScope,e.inEditorScope).orThunk(()=>lY(n,r,e))},cY=(e,t)=>{const o={},n=[],a=[],r={},i={},l=(e,l)=>{const s=Nr(OV(l));o[e]=s,s.launch.map(o=>{r["form:"+e]={...l.launch,type:"contextformtogglebutton"===o.type?"togglebutton":"button",onAction:()=>{t(s)}}}),"editor"===s.scope?a.push(s):n.push(s),i[e]=s},s=(e,t)=>{xV(t).each(o=>{"editor"===t.scope?a.push(o):n.push(o),i[e]=o})},c=ue(e);return $(c,t=>{const o=e[t];"contextform"===o.type?l(t,o):"contexttoolbar"===o.type&&s(t,o)}),{forms:o,inNodeScope:n,inEditorScope:a,lookupTable:i,formNavigators:r}},dY=bs("forward-slide"),uY=bs("backward-slide"),mY=bs("change-slide-event"),hY="tox-pop--resizing",pY=e=>{const t=hi([]);return qy.sketch({dom:{tag:"div",classes:["tox-pop"]},fireDismissalEventInstead:{event:"doNotDismissYet"},onShow:e=>{t.set([]),qy.getContent(e).each(e=>{wo(e.element,"visibility")}),kc(e.element,hY),wo(e.element,"width")},inlineBehaviours:qu([wC("context-toolbar-events",[Jl(el(),(e,t)=>{"width"===t.event.raw.propertyName&&(kc(e.element,hY),wo(e.element,"width"))}),ql(mY,(e,t)=>{const o=e.element;wo(o,"width");const n=Bo(o);qy.setContent(e,t.event.contents),vc(o,hY);const a=Bo(o);uo(o,"width",n+"px"),qy.getContent(e).each(e=>{t.event.focus.bind(e=>(Ju(e),tm(o))).orThunk(()=>(nC.focusIn(e),em(Ut(o))))}),setTimeout(()=>{uo(e.element,"width",a+"px")},0)}),ql(dY,(e,o)=>{qy.getContent(e).each(o=>{t.set(t.get().concat([{bar:o,focus:em(Ut(e.element))}]))}),Tl(e,mY,{contents:o.event.forwardContents,focus:T.none()})}),ql(uY,(e,o)=>{se(t.get()).each(o=>{t.set(t.get().slice(0,t.get().length-1)),Tl(e,mY,{contents:nd(o.bar),focus:o.focus})})})]),nC.config({mode:"special",onEscape:o=>se(t.get()).fold(()=>e.onEscape(),e=>(El(o,uY),T.some(!0)))})]),lazySink:()=>ua.value(e.sink)})},bY="tox-pop--transition",gY=(e,t,o,n)=>{const a=n.backstage,r=a.shared,i=xn().deviceType.isTouch,l=Dm(),s=Dm(),c=Dm(),d=od(pY({sink:o,onEscape:()=>(e.focus(),T.some(!0))})),u=()=>{const t=c.get().getOr("node"),o=XK(t)?1:0;return GK(e,r,t,o)},m=()=>!e.removed&&!(i()&&a.isContextMenuOpen()),h=e=>_e(De(e,l.get(),jt),!0),p=()=>{if(m()){const t=u(),o=_e(c.get(),"node")?UK(e,l.get()):$K(e);return t.height<=0||!RK(o,t,.01)}return!0},b=()=>{l.clear(),s.clear(),c.clear(),qy.hide(d)},g=()=>{if(qy.isOpen(d)){const e=d.element;wo(e,"display"),p()?uo(e,"display","none"):(s.set(0),qy.reposition(d))}},f=t=>({dom:{tag:"div",classes:["tox-pop__dialog"]},components:[t],behaviours:qu([nC.config({mode:"acyclic"}),wC("pop-dialog-wrap-events",[Zl(t=>{e.shortcuts.add("ctrl+F9","focus statusbar",()=>nC.focusIn(t))}),Xl(t=>{e.shortcuts.remove("ctrl+F9")})])])}),v=Fo(()=>cY(t,e=>{const t=y([e]);Tl(d,dY,{forwardContents:f(t)})})),k=(t,o)=>rK(e,{buttons:t,toolbar:o.items,allowToolbarGroups:!1},n.backstage,T.some(["form:"])),C=(e,t)=>PK.buildInitGroups(e,t),y=t=>{const{buttons:o}=e.ui.registry.getAll(),n=v(),a={...o,...n.formNavigators},i=Ej(e)===dj.scrolling?dj.scrolling:dj.default,l=Z(q(t,e=>"contexttoolbar"===e.type?k(a,e):C(e,r.providers)));return vH({type:i,uid:bs("context-toolbar"),initGroups:l,onEscape:T.none,cyclicKeying:!0,providers:r.providers})},O=(t,n)=>{const a="node"===t?r.anchors.node(n):r.anchors.cursor(),c=oY(e,t,i(),{lastElement:l.get,isReposition:()=>_e(s.get(),0),getMode:()=>ab.getMode(o)});return Da(a,c)},j=(e,t)=>{if(_.cancel(),!m())return;const n=y(e),a=e[0].position,r=O(a,t);c.set(a),s.set(1);const i=d.element;wo(i,"display"),h(t)||(kc(i,bY),ab.reset(o,d)),qy.showWithinBounds(d,f(n),{anchor:r,transition:{classes:[bY],mode:"placement"}},()=>T.some(u())),t.fold(l.clear,l.set),p()&&uo(i,"display","none")};let x=!1;const _=qz(()=>{if(e.hasFocus()&&!e.removed&&!x)if(yc(d.element,bY))_.throttle();else{const t=v();sY(t,e).fold(b,e=>{j(e.toolbars,T.some(e.elem))})}},17);e.on("init",()=>{e.on("remove",b),e.on("ScrollContent ScrollWindow ObjectResized ResizeEditor longpress",g),e.on("click keyup focus SetContent",_.throttle),e.on(DK,b),e.on(NK,t=>{const o=v();Oe(o.lookupTable,t.toolbarKey).each(o=>{j([o],Se(t.target!==e,t.target)),qy.getContent(d).each(nC.focusIn)})}),e.on("focusout",t=>{$y.setEditorTimeout(e,()=>{tm(o.element).isNone()&&tm(d.element).isNone()&&b()},0)}),e.on("SwitchMode",()=>{e.mode.isReadOnly()&&b()}),e.on("AfterProgressState",t=>{t.state?b():e.hasFocus()&&_.throttle()}),e.on("dragstart",()=>{x=!0}),e.on("dragend drop",()=>{x=!1}),e.on("NodeChange",e=>{tm(d.element).fold(_.throttle,w)})})},fY=e=>{const t=[{name:"alignleft",text:"Align left",cmd:"JustifyLeft",icon:"align-left"},{name:"aligncenter",text:"Align center",cmd:"JustifyCenter",icon:"align-center"},{name:"alignright",text:"Align right",cmd:"JustifyRight",icon:"align-right"},{name:"alignjustify",text:"Justify",cmd:"JustifyFull",icon:"align-justify"}];$(t,t=>{e.ui.registry.addToggleButton(t.name,{tooltip:t.text,icon:t.icon,onAction:qN(e,t.cmd),onSetup:LN(e,t.name)})}),e.ui.registry.addButton("alignnone",{tooltip:"No alignment",icon:"align-none",onSetup:FN(e),onAction:qN(e,"JustifyNone")})},vY=(e,t)=>{const o=()=>{const o=t.getOptions(e),n=t.getCurrent(e).map(t.hash),a=Dm();return q(o,o=>({type:"togglemenuitem",text:t.display(o),onSetup:r=>{const i=e=>{e&&(a.on(e=>e.setActive(!1)),a.set(r)),r.setActive(e)};i(_e(n,t.hash(o)));const l=t.watcher(e,o,i);return()=>{a.clear(),l()}},onAction:()=>t.setCurrent(e,o)}))};e.ui.registry.addMenuButton(t.name,{tooltip:t.text,icon:t.icon,fetch:e=>e(o()),onSetup:t.onToolbarSetup}),e.ui.registry.addNestedMenuItem(t.name,{type:"nestedmenuitem",text:t.text,getSubmenuItems:o,onSetup:t.onMenuSetup})},wY=e=>({name:"lineheight",text:"Line height",icon:"line-height",getOptions:lx,hash:e=>iG(e,["fixed","relative","empty"]).getOr(e),display:j,watcher:(e,t,o)=>e.formatter.formatChanged("lineheight",o,!1,{value:t}).unbind,getCurrent:e=>T.from(e.queryCommandValue("LineHeight")),setCurrent:(e,t)=>e.execCommand("LineHeight",!1,t),onToolbarSetup:FN(e),onMenuSetup:FN(e)}),kY=e=>{const t=T.from(Nj(e));return t.map(t=>({name:"language",text:"Language",icon:"language",getOptions:O(t),hash:e=>h(e.customCode)?e.code:`${e.code}/${e.customCode}`,display:e=>e.title,watcher:(e,t,o)=>{var n;return e.formatter.formatChanged("lang",o,!1,{value:t.code,customValue:null!==(n=t.customCode)&&void 0!==n?n:null}).unbind},getCurrent:e=>{const t=Ze.fromDom(e.selection.getNode());return Ai(t,e=>T.some(e).filter(bt).bind(e=>{const t=ao(e,"lang");return t.map(t=>{const o=ao(e,"data-mce-lang").getOrUndefined();return{code:t,customCode:o,title:""}})}))},setCurrent:(e,t)=>e.execCommand("Lang",!1,t),onToolbarSetup:t=>{const o=Nm();return t.setActive(e.formatter.match("lang",{},void 0,!0)),o.set(e.formatter.formatChanged("lang",t.setActive,!0)),zN(o.clear,FN(e)(t))},onMenuSetup:FN(e)}))},CY=e=>{vY(e,wY(e)),kY(e).each(t=>vY(e,t))},yY=(e,t)=>{MW(e,t),tG(e,t),NG(e,t),HW(e,t),jG(e,t)},OY=e=>PN(e,"NodeChange",t=>{t.setEnabled(e.queryCommandState("outdent")&&e.selection.isEditable())}),jY=e=>{e.ui.registry.addButton("outdent",{tooltip:"Decrease indent",icon:"outdent",onSetup:OY(e),onAction:qN(e,"outdent")}),e.ui.registry.addButton("indent",{tooltip:"Increase indent",icon:"indent",onSetup:FN(e),onAction:qN(e,"indent")})},xY=e=>{jY(e)},_Y=(e,t)=>o=>{o.setActive(t.get());const n=e=>{t.set(e.state),o.setActive(e.state)};return e.on("PastePlainTextToggle",n),zN(()=>e.off("PastePlainTextToggle",n),FN(e)(o))},VY=e=>{const t=hi(Zj(e)),o=()=>e.execCommand("mceTogglePlainTextPaste");e.ui.registry.addToggleButton("pastetext",{active:!1,icon:"paste-text",tooltip:"Paste as text",onAction:o,onSetup:_Y(e,t)}),e.ui.registry.addToggleMenuItem("pastetext",{text:"Paste as text",icon:"paste-text",onAction:o,onSetup:_Y(e,t)})},AY=(e,t)=>()=>{e.execCommand("mceToggleFormat",!1,t)},NY=e=>{zz.each([{name:"bold",text:"Bold",icon:"bold"},{name:"italic",text:"Italic",icon:"italic"},{name:"underline",text:"Underline",icon:"underline"},{name:"strikethrough",text:"Strikethrough",icon:"strike-through"},{name:"subscript",text:"Subscript",icon:"subscript"},{name:"superscript",text:"Superscript",icon:"superscript"}],(t,o)=>{e.ui.registry.addToggleButton(t.name,{tooltip:t.text,icon:t.icon,onSetup:LN(e,t.name),onAction:AY(e,t.name)})});for(let t=1;t<=6;t++){const o="h"+t;e.ui.registry.addToggleButton(o,{text:o.toUpperCase(),tooltip:"Heading "+t,onSetup:LN(e,o),onAction:AY(e,o)})}},DY=e=>{zz.each([{name:"copy",text:"Copy",action:"Copy",icon:"copy"},{name:"help",text:"Help",action:"mceHelp",icon:"help"},{name:"selectall",text:"Select all",action:"SelectAll",icon:"select-all"},{name:"newdocument",text:"New document",action:"mceNewDocument",icon:"new-document"},{name:"print",text:"Print",action:"mcePrint",icon:"print"}],t=>{e.ui.registry.addButton(t.name,{tooltip:t.text,icon:t.icon,onAction:qN(e,t.action)})}),zz.each([{name:"cut",text:"Cut",action:"Cut",icon:"cut"},{name:"paste",text:"Paste",action:"Paste",icon:"paste"},{name:"removeformat",text:"Clear formatting",action:"RemoveFormat",icon:"remove-formatting"},{name:"remove",text:"Remove",action:"Delete",icon:"remove"},{name:"hr",text:"Horizontal line",action:"InsertHorizontalRule",icon:"horizontal-rule"}],t=>{e.ui.registry.addButton(t.name,{tooltip:t.text,icon:t.icon,onSetup:FN(e),onAction:qN(e,t.action)})})},EY=e=>{zz.each([{name:"blockquote",text:"Blockquote",action:"mceBlockQuote",icon:"quote"}],t=>{e.ui.registry.addToggleButton(t.name,{tooltip:t.text,icon:t.icon,onAction:qN(e,t.action),onSetup:LN(e,t.name)})})},TY=e=>{NY(e),DY(e),EY(e)},SY=e=>{zz.each([{name:"newdocument",text:"New document",action:"mceNewDocument",icon:"new-document"},{name:"copy",text:"Copy",action:"Copy",icon:"copy",shortcut:"Meta+C"},{name:"selectall",text:"Select all",action:"SelectAll",icon:"select-all",shortcut:"Meta+A"},{name:"print",text:"Print...",action:"mcePrint",icon:"print",shortcut:"Meta+P"}],t=>{e.ui.registry.addMenuItem(t.name,{text:t.text,icon:t.icon,shortcut:t.shortcut,onAction:qN(e,t.action)})}),zz.each([{name:"bold",text:"Bold",action:"Bold",icon:"bold",shortcut:"Meta+B"},{name:"italic",text:"Italic",action:"Italic",icon:"italic",shortcut:"Meta+I"},{name:"underline",text:"Underline",action:"Underline",icon:"underline",shortcut:"Meta+U"},{name:"strikethrough",text:"Strikethrough",action:"Strikethrough",icon:"strike-through"},{name:"subscript",text:"Subscript",action:"Subscript",icon:"subscript"},{name:"superscript",text:"Superscript",action:"Superscript",icon:"superscript"},{name:"removeformat",text:"Clear formatting",action:"RemoveFormat",icon:"remove-formatting"},{name:"cut",text:"Cut",action:"Cut",icon:"cut",shortcut:"Meta+X"},{name:"paste",text:"Paste",action:"Paste",icon:"paste",shortcut:"Meta+V"},{name:"hr",text:"Horizontal line",action:"InsertHorizontalRule",icon:"horizontal-rule"}],t=>{e.ui.registry.addMenuItem(t.name,{text:t.text,icon:t.icon,shortcut:t.shortcut,onSetup:FN(e),onAction:qN(e,t.action)})}),e.ui.registry.addMenuItem("codeformat",{text:"Code",icon:"sourcecode",onSetup:FN(e),onAction:AY(e,"code")})},BY=e=>{TY(e),SY(e)},IY=(e,t)=>PN(e,"Undo Redo AddUndo TypingUndo ClearUndos SwitchMode",o=>{o.setEnabled(!e.mode.isReadOnly()&&e.undoManager[t]())}),zY=e=>{e.ui.registry.addMenuItem("undo",{text:"Undo",icon:"undo",shortcut:"Meta+Z",onSetup:IY(e,"hasUndo"),onAction:qN(e,"undo")}),e.ui.registry.addMenuItem("redo",{text:"Redo",icon:"redo",shortcut:"Meta+Y",onSetup:IY(e,"hasRedo"),onAction:qN(e,"redo")})},FY=e=>{e.ui.registry.addButton("undo",{tooltip:"Undo",icon:"undo",enabled:!1,onSetup:IY(e,"hasUndo"),onAction:qN(e,"undo")}),e.ui.registry.addButton("redo",{tooltip:"Redo",icon:"redo",enabled:!1,onSetup:IY(e,"hasRedo"),onAction:qN(e,"redo")})},MY=e=>{zY(e),FY(e)},LY=e=>PN(e,"VisualAid",t=>{t.setActive(e.hasVisual)}),PY=e=>{e.ui.registry.addToggleMenuItem("visualaid",{text:"Visual aids",onSetup:LY(e),onAction:qN(e,"mceToggleVisualAid")})},RY=e=>{e.ui.registry.addButton("visualaid",{tooltip:"Visual aids",text:"Visual aids",onAction:qN(e,"mceToggleVisualAid")})},qY=e=>{RY(e),PY(e)},$Y=(e,t)=>{fY(e),BY(e),yY(e,t),MY(e),TD(e),qY(e),xY(e),CY(e),VY(e)},UY=e=>l(e)?e.split(/[ ,]/):e,HY=e=>t=>t.options.get(e),WY=e=>{const t=e.options.register;t("contextmenu_avoid_overlap",{processor:"string",default:""}),t("contextmenu_never_use_native",{processor:"boolean",default:!1}),t("contextmenu",{processor:e=>!1===e?{value:[],valid:!0}:l(e)||v(e,l)?{value:UY(e),valid:!0}:{valid:!1,message:"Must be false or a string."},default:"link linkchecker image editimage table spellchecker configurepermanentpen"})},GY=HY("contextmenu_never_use_native"),KY=HY("contextmenu_avoid_overlap"),YY=e=>0===QY(e).length,QY=e=>{const t=e.ui.registry.getAll().contextMenus,o=e.options.get("contextmenu");return e.options.isSet("contextmenu")?o:W(o,e=>je(t,e))},JY=(e,t)=>({type:"makeshift",x:e,y:t}),ZY=(e,t,o)=>JY(e.x+t,e.y+o),XY=e=>"longpress"===e.type||0===e.type.indexOf("touch"),eQ=e=>{if(XY(e)){const t=e.touches[0];return JY(t.pageX,t.pageY)}return JY(e.pageX,e.pageY)},tQ=e=>{if(XY(e)){const t=e.touches[0];return JY(t.clientX,t.clientY)}return JY(e.clientX,e.clientY)},oQ=(e,t)=>{const o=hj.DOM.getPos(e);return ZY(t,o.x,o.y)},nQ=(e,t)=>"contextmenu"===t.type||"longpress"===t.type?e.inline?eQ(t):oQ(e.getContentAreaContainer(),tQ(t)):aQ(e),aQ=e=>({type:"selection",root:Ze.fromDom(e.selection.getNode())}),rQ=e=>({type:"node",node:T.some(Ze.fromDom(e.selection.getNode())),root:Ze.fromDom(e.getBody())}),iQ=(e,t,o)=>{switch(o){case"node":return rQ(e);case"point":return nQ(e,t);case"selection":return aQ(e)}},lQ=(e,t,o,n,a,r)=>{const i=o(),l=iQ(e,t,r);qF(i,_x.CLOSE_ON_EXECUTE,n,{isHorizontalMenu:!1,search:T.none()}).map(e=>{t.preventDefault(),qy.showMenuAt(a,{anchor:l},{menu:{markers:Qx("normal")},data:e})})},sQ={onLtr:()=>[yu,fu,vu,wu,ku,Cu,NP,DP,AP,_P,VP,xP],onRtl:()=>[yu,vu,fu,ku,wu,Cu,NP,DP,VP,xP,AP,_P]},cQ=12,dQ={valignCentre:[],alignCentre:[],alignLeft:["tox-pop--align-left"],alignRight:["tox-pop--align-right"],right:["tox-pop--right"],left:["tox-pop--left"],bottom:["tox-pop--bottom"],top:["tox-pop--top"]},uQ=(e,t)=>{const o=e.selection;if(o.isCollapsed()||t.touches.length<1)return!1;{const n=t.touches[0],a=o.getRng(),r=wp(e.getWin(),Jh.domRange(a));return r.exists(e=>e.left<=n.clientX&&e.right>=n.clientX&&e.top<=n.clientY&&e.bottom>=n.clientY)}},mQ=e=>{const t=e.selection.getRng(),o=()=>{$y.setEditorTimeout(e,()=>{e.selection.setRng(t)},10),r()};e.once("touchend",o);const n=e=>{e.preventDefault(),e.stopImmediatePropagation()};e.on("mousedown",n,!0);const a=()=>r();e.once("longpresscancel",a);const r=()=>{e.off("touchend",o),e.off("longpresscancel",a),e.off("mousedown",n)}},hQ=(e,t,o)=>{const n=iQ(e,t,o),a="point"===o?cQ:0;return{bubble:ah(0,a,dQ),layouts:sQ,overrides:{maxWidthFunction:PU(),maxHeightFunction:Xm()},...n}},pQ=(e,t,o,n,a,r,i)=>{const l=hQ(e,t,r);qF(o,_x.CLOSE_ON_EXECUTE,n,{isHorizontalMenu:!0,search:T.none()}).map(o=>{t.preventDefault();const s=i?Sy.HighlightMenuAndItem:Sy.HighlightNone;qy.showMenuWithinBounds(a,{anchor:l},{menu:{markers:Qx("normal"),highlightOnOpen:s},data:o,type:"horizontal"},()=>T.some(GK(e,n.shared,"node"===r?"node":"selection"))),e.dispatch(DK)})},bQ=(e,t,o,n,a,r)=>{const i=xn(),l=i.os.isiOS(),s=i.os.isMacOS(),c=i.os.isAndroid(),d=i.deviceType.isTouch(),u=()=>!(c||l||s&&d),m=()=>{const i=o();pQ(e,t,i,n,a,r,u())};if((s||l)&&"node"!==r){const o=()=>{mQ(e),m()};uQ(e,t)?o():(e.once("selectionchange",o),e.once("touchend",()=>e.off("selectionchange",o)))}else m()},gQ=e=>l(e)?"|"===e:"separator"===e.type,fQ={type:"separator"},vQ=e=>{const t=e=>({text:e.text,icon:e.icon,enabled:e.enabled,shortcut:e.shortcut});if(l(e))return e;switch(e.type){case"separator":return fQ;case"submenu":return{type:"nestedmenuitem",...t(e),getSubmenuItems:()=>{const t=e.getSubmenuItems();return l(t)?t:q(t,vQ)}};default:const o=e;return{type:"menuitem",...t(o),onAction:k(o.onAction)}}},wQ=(e,t)=>{if(0===t.length)return e;const o=se(e).filter(e=>!gQ(e)),n=o.fold(()=>[],e=>[fQ]);return e.concat(n).concat(t).concat([fQ])},kQ=(e,t,o)=>{const n=K(t,(t,n)=>Oe(e,n.toLowerCase()).map(e=>{const n=e.update(o);if(l(n)&&Ue($e(n)))return wQ(t,n.split(" "));if(d(n)&&n.length>0){const e=q(n,vQ);return wQ(t,e)}return t}).getOrThunk(()=>t.concat([n])),[]);return n.length>0&&gQ(n[n.length-1])&&n.pop(),n},CQ=(e,t)=>t.ctrlKey&&!GY(e),yQ=e=>"longpress"===e.type||je(e,"touches"),OQ=(e,t)=>!yQ(t)&&(2!==t.button||t.target===e.getBody()&&""===t.pointerType),jQ=(e,t)=>OQ(e,t)?e.selection.getStart(!0):t.target,xQ=(e,t)=>{const o=KY(e),n=OQ(e,t)?"selection":"point";if(Ue(o)){const a=jQ(e,t),r=dT(Ze.fromDom(a),o);return r?"node":n}return n},_Q=(e,t,o)=>{const n=xn(),a=n.deviceType.isTouch,r=od(qy.sketch({dom:{tag:"div"},lazySink:t,onEscape:()=>e.focus(),onShow:()=>o.setContextMenuState(!0),onHide:()=>o.setContextMenuState(!1),fireDismissalEventInstead:{},inlineBehaviours:qu([wC("dismissContextMenu",[ql(yl(),(t,o)=>{qb.close(t),e.focus()})])])})),i=()=>qy.hide(r),l=t=>{if(GY(e)&&t.preventDefault(),CQ(e,t)||YY(e))return;const n=xQ(e,t),i=()=>{const o=jQ(e,t),n=e.ui.registry.getAll(),a=QY(e);return kQ(n.contextMenus,a,o)},l=a()?bQ:lQ;l(e,t,i,o,r,n)};e.on("init",()=>{const t="ResizeEditor ScrollContent ScrollWindow longpresscancel"+(a()?"":" ResizeWindow");e.on(t,i),e.on("longpress contextmenu",l)})},VQ=bi.generate([{offset:["x","y"]},{absolute:["x","y"]},{fixed:["x","y"]}]),AQ=e=>t=>t.translate(-e.left,-e.top),NQ=e=>t=>t.translate(e.left,e.top),DQ=e=>(t,o)=>K(e,(e,t)=>t(e),Vo(t,o)),EQ=(e,t,o)=>e.fold(DQ([NQ(o),AQ(t)]),DQ([AQ(t)]),DQ([])),TQ=(e,t,o)=>e.fold(DQ([NQ(o)]),DQ([]),DQ([NQ(t)])),SQ=(e,t,o)=>e.fold(DQ([]),DQ([AQ(o)]),DQ([NQ(t),AQ(o)])),BQ=(e,t,o,n,a,r)=>{const i=TQ(e,a,r),l=TQ(t,a,r);return Math.abs(i.left-l.left)<=o&&Math.abs(i.top-l.top)<=n},IQ=(e,t,o,n,a,r)=>{const i=TQ(e,a,r),l=TQ(t,a,r),s=Math.abs(i.left-l.left),c=Math.abs(i.top-l.top);return Vo(s,c)},zQ=(e,t,o)=>{const n=e.fold((e,t)=>({position:T.some("absolute"),left:T.some(e+"px"),top:T.some(t+"px")}),(e,t)=>({position:T.some("absolute"),left:T.some(e-o.left+"px"),top:T.some(t-o.top+"px")}),(e,t)=>({position:T.some("fixed"),left:T.some(e+"px"),top:T.some(t+"px")}));return{right:T.none(),bottom:T.none(),...n}},FQ=(e,t,o)=>e.fold((e,n)=>LQ(e+t,n+o),(e,n)=>PQ(e+t,n+o),(e,n)=>RQ(e+t,n+o)),MQ=(e,t,o,n)=>{const a=(e,a)=>(r,i)=>{const l=e(t,o,n);return a(r.getOr(l.left),i.getOr(l.top))};return e.fold(a(SQ,LQ),a(TQ,PQ),a(EQ,RQ))},LQ=VQ.offset,PQ=VQ.absolute,RQ=VQ.fixed,qQ=(e,t)=>{const o=no(e,t);return h(o)?NaN:parseInt(o,10)},$Q=(e,t)=>{const o=e.element,n=qQ(o,t.leftAttr),a=qQ(o,t.topAttr);return isNaN(n)||isNaN(a)?T.none():T.some(Vo(n,a))},UQ=(e,t,o)=>{const n=e.element;to(n,t.leftAttr,o.left+"px"),to(n,t.topAttr,o.top+"px")},HQ=(e,t)=>{const o=e.element;io(o,t.leftAttr),io(o,t.topAttr)},WQ=(e,t,o,n)=>$Q(e,t).fold(()=>o,e=>RQ(e.left+n.left,e.top+n.top)),GQ=(e,t,o,n,a,r)=>{const i=WQ(e,t,o,n),l=t.mustSnap?QQ(e,t,i,a,r):JQ(e,t,i,a,r),s=EQ(i,a,r);return UQ(e,t,s),l.fold(()=>({coord:RQ(s.left,s.top),extra:T.none()}),e=>({coord:e.output,extra:e.extra}))},KQ=(e,t)=>{HQ(e,t)},YQ=(e,t,o,n)=>de(e,e=>{const a=e.sensor,r=BQ(t,a,e.range.left,e.range.top,o,n);return r?T.some({output:MQ(e.output,t,o,n),extra:e.extra}):T.none()}),QQ=(e,t,o,n,a)=>{const r=t.getSnapPoints(e),i=YQ(r,o,n,a);return i.orThunk(()=>{const e=K(r,(e,t)=>{const r=t.sensor,i=IQ(o,r,t.range.left,t.range.top,n,a);return e.deltas.fold(()=>({deltas:T.some(i),snap:T.some(t)}),o=>{const n=(i.left+i.top)/2,a=(o.left+o.top)/2;return n<=a?{deltas:T.some(i),snap:T.some(t)}:e})},{deltas:T.none(),snap:T.none()});return e.snap.map(e=>({output:MQ(e.output,o,n,a),extra:e.extra}))})},JQ=(e,t,o,n,a)=>{const r=t.getSnapPoints(e);return YQ(r,o,n,a)},ZQ=(e,t,o)=>({coord:MQ(e.output,e.output,t,o),extra:e.extra}),XQ=(e,t,o,n)=>{const a=t.getTarget(e.element);if(t.repositionTarget){const t=_t(e.element),o=Rn(t),r=yq(a),i=ZQ(n,o,r),l=zQ(i.coord,o,r);ho(a,l)}};var eJ=Object.freeze({__proto__:null,snapTo:XQ});const tJ="data-initial-z-index",oJ=e=>{Dt(e.element).filter(bt).each(e=>{ao(e,tJ).fold(()=>wo(e,"z-index"),t=>uo(e,"z-index",t)),io(e,tJ)})},nJ=e=>{Dt(e.element).filter(bt).each(t=>{go(t,"z-index").each(e=>{to(t,tJ,e)}),uo(t,"z-index",po(e.element,"z-index"))})},aJ=(e,t)=>{e.getSystem().addToGui(t),nJ(t)},rJ=e=>{oJ(e),e.getSystem().removeFromGui(e)},iJ=(e,t,o)=>e.getSystem().build(BT.sketch({dom:{styles:{left:"0px",top:"0px",width:"100%",height:"100%",position:"fixed","z-index":"1000000000000000"},classes:[t]},events:o}));var lJ=ti("snaps",[Fr("getSnapPoints"),Fd("onSensor"),Fr("leftAttr"),Fr("topAttr"),ni("lazyViewport",ia),ni("mustSnap",!1)]);const sJ=[ni("useFixed",D),Fr("blockerClass"),ni("getTarget",j),ni("onDrag",w),ni("repositionTarget",!0),ni("onDrop",w),ci("getBounds",ia),lJ],cJ=e=>Ee(go(e,"left"),go(e,"top"),go(e,"position"),(e,t,o)=>{const n="fixed"===o?RQ:LQ;return n(parseInt(e,10),parseInt(t,10))}).getOrThunk(()=>{const t=Do(e);return PQ(t.left,t.top)}),dJ=(e,t,o,n,a)=>{const r=a.bounds,i=TQ(t,o,n),l=au(i.left,r.x,r.x+r.width-a.width),s=au(i.top,r.y,r.y+r.height-a.height),c=PQ(l,s);return t.fold(()=>{const e=SQ(c,o,n);return LQ(e.left,e.top)},O(c),()=>{const e=EQ(c,o,n);return RQ(e.left,e.top)})},uJ=(e,t,o,n,a,r,i)=>{const l=t.fold(()=>{const e=FQ(o,r.left,r.top),t=EQ(e,n,a);return RQ(t.left,t.top)},t=>{const i=GQ(e,t,o,r,n,a);return i.extra.each(o=>{t.onSensor(e,o)}),i.coord});return dJ(e,l,n,a,i)},mJ=(e,t,o,n)=>{const a=t.getTarget(e.element);if(t.repositionTarget){const r=_t(e.element),i=Rn(r),l=yq(a),s=cJ(a),c=uJ(e,t.snaps,s,i,l,n,o),d=zQ(c,i,l);ho(a,d)}t.onDrag(e,a,n)},hJ=(e,t)=>({bounds:e.getBounds(),height:jo(t.element),width:Io(t.element)}),pJ=(e,t,o,n,a)=>{const r=o.update(n,a),i=o.getStartData().getOrThunk(()=>hJ(t,e));r.each(o=>{mJ(e,t,i,o)})},bJ=(e,t,o,n)=>{t.each(rJ),o.snaps.each(t=>{KQ(e,t)});const a=o.getTarget(e.element);n.reset(),o.onDrop(e,a)},gJ=e=>(t,o)=>{const n=e=>{o.setStartData(hJ(t,e))};return Ml([ql(vl(),e=>{o.getStartData().each(()=>n(e))}),...e(t,o,n)])},fJ=e=>Ml([ql(Ri(),e.forceDrop),ql(Ui(),e.drop),ql(qi(),(t,o)=>{e.move(o.event)}),ql($i(),e.delayDrop)]),vJ=e=>T.from(Vo(e.x,e.y)),wJ=(e,t)=>Vo(t.left-e.left,t.top-e.top);var kJ=Object.freeze({__proto__:null,getData:vJ,getDelta:wJ});const CJ=(e,t,o)=>[ql(Ri(),(n,a)=>{const r=a.event.raw;if(0!==r.button)return;a.stop();const i=()=>bJ(n,T.some(c),e,t),l=uT(i,200),s={drop:i,delayDrop:l.schedule,forceDrop:i,move:o=>{l.cancel(),pJ(n,e,t,kJ,o)}},c=iJ(n,e.blockerClass,fJ(s)),d=()=>{o(n),aJ(n,c)};d()})],yJ=[...sJ,Rd("dragger",{handlers:gJ(CJ)})],OJ=e=>Ml([ql(Fi(),e.forceDrop),ql(Li(),e.drop),ql(Pi(),e.drop),ql(Mi(),(t,o)=>{e.move(o.event)})]),jJ=e=>{const t=e[0];return T.some(Vo(t.clientX,t.clientY))},xJ=e=>{const t=e.raw,o=t.touches;return 1===o.length?jJ(o):T.none()},_J=(e,t)=>Vo(t.left-e.left,t.top-e.top);var VJ=Object.freeze({__proto__:null,getData:xJ,getDelta:_J});const AJ=(e,t,o)=>{const n=Dm(),a=o=>{bJ(o,n.get(),e,t),n.clear()};return[ql(Fi(),(r,i)=>{i.stop();const l=()=>a(r),s={drop:l,delayDrop:w,forceDrop:l,move:o=>{pJ(r,e,t,VJ,o)}},c=iJ(r,e.blockerClass,OJ(s));n.set(c);const d=()=>{o(r),aJ(r,c)};d()}),ql(Mi(),(o,n)=>{n.stop(),pJ(o,e,t,VJ,n.event)}),ql(Li(),(e,t)=>{t.stop(),a(e)}),ql(Pi(),a)]},NJ=[...sJ,Rd("dragger",{handlers:gJ(AJ)})],DJ=(e,t,o)=>[...CJ(e,t,o),...AJ(e,t,o)],EJ=[...sJ,Rd("dragger",{handlers:gJ(DJ)})],TJ=yJ,SJ=NJ,BJ=EJ;var IJ=Object.freeze({__proto__:null,mouse:TJ,touch:SJ,mouseOrTouch:BJ});const zJ=()=>{let e=T.none(),t=T.none();const o=()=>{e=T.none(),t=T.none()},n=(t,o)=>{const n=e.map(e=>t.getDelta(e,o));return e=T.some(o),n},a=(e,t)=>e.getData(t).bind(t=>n(e,t)),r=e=>{t=T.some(e)},i=()=>t,l=O({});return Fs({readState:l,reset:o,update:a,getStartData:i,setStartData:r})};var FJ=Object.freeze({__proto__:null,init:zJ});const MJ=Wu({branchKey:"mode",branches:IJ,name:"dragging",active:{events:(e,t)=>{const o=e.dragger;return o.handlers(e,t)}},extra:{snap:e=>({sensor:e.sensor,range:e.range,output:e.output,extra:T.from(e.extra)})},state:FJ,apis:eJ}),LJ=40,PJ=LJ/2,RJ=(e,t,o,n,a,r)=>e.fold(()=>MJ.snap({sensor:PQ(o-PJ,n-PJ),range:Vo(a,r),output:PQ(T.some(o),T.some(n)),extra:{td:t}}),e=>{const a=o-PJ,r=n-PJ,i=LJ,l=LJ,s=e.element.dom.getBoundingClientRect();return MJ.snap({sensor:PQ(a,r),range:Vo(i,l),output:PQ(T.some(o-s.width/2),T.some(n-s.height/2)),extra:{td:t}})}),qJ=(e,t,o)=>{const n=(e,t)=>e.exists(e=>jt(e,t));return{getSnapPoints:e,leftAttr:"data-drag-left",topAttr:"data-drag-top",onSensor:(e,a)=>{const r=a.td;n(t.get(),r)||(t.set(r),o(r))},mustSnap:!0}},$J=e=>Yy(Hy.sketch({dom:{tag:"div",classes:["tox-selector"]},buttonBehaviours:qu([MJ.config({mode:"mouseOrTouch",blockerClass:"blocker",snaps:e}),OS.config({})]),eventOrder:{mousedown:["dragging","alloy.base.behaviour"],touchstart:["dragging","alloy.base.behaviour"]}})),UJ=(e,t)=>{const o=hi([]),n=hi([]),a=hi(!1),r=Dm(),i=Dm(),l=e=>{const o=na(e);return RJ(h.getOpt(t),e,o.x,o.y,o.width,o.height)},s=()=>q(o.get(),e=>l(e)),c=e=>{const o=na(e);return RJ(p.getOpt(t),e,o.right,o.bottom,o.width,o.height)},d=()=>q(n.get(),e=>c(e)),u=qJ(s,r,t=>{i.get().each(o=>{e.dispatch("TableSelectorChange",{start:t,finish:o})})}),m=qJ(d,i,t=>{r.get().each(o=>{e.dispatch("TableSelectorChange",{start:o,finish:t})})}),h=$J(u),p=$J(m),b=od(h.asSpec()),g=od(p.asSpec()),f=(t,o,n,a)=>{const r=o.dom.getBoundingClientRect();wo(t.element,"display");const i=Nt(Ze.fromDom(e.getBody())).dom.innerHeight,l=n(r),s=a(r,i);(l||s)&&uo(t.element,"display","none")},v=(e,t,o,n)=>{const a=o(t);MJ.snapTo(e,a);const r=e=>e[n]<0,i=(e,t)=>e[n]>t;f(e,t,r,i)},w=e=>v(b,e,l,"top"),k=()=>r.get().each(w),C=e=>v(g,e,c,"bottom"),y=()=>i.get().each(C);xn().deviceType.isTouch()&&(e.on("TableSelectionChange",e=>{a.get()||(pb(t,b),pb(t,g),a.set(!0)),r.set(e.start),i.set(e.finish),e.otherCells.each(t=>{o.set(t.upOrLeftCells),n.set(t.downOrRightCells),w(e.start),C(e.finish)})}),e.on("ResizeEditor ResizeWindow ScrollContent",()=>{k(),y()}),e.on("TableSelectionClear",()=>{a.get()&&(fb(b),fb(g),a.set(!1)),r.clear(),i.clear()}))};var HJ='<svg width="50px" height="16px" viewBox="0 0 50 16" xmlns="http://www.w3.org/2000/svg">\n <path fill-rule="evenodd" clip-rule="evenodd" d="M10.143 0c2.608.015 5.186 2.178 5.186 5.331 0 0 .077 3.812-.084 4.87-.361 2.41-2.164 4.074-4.65 4.496-1.453.284-2.523.49-3.212.623-.373.071-.634.122-.785.152-.184.038-.997.145-1.35.145-2.732 0-5.21-2.04-5.248-5.33 0 0 0-3.514.03-4.442.093-2.4 1.758-4.342 4.926-4.963 0 0 3.875-.752 4.036-.782.368-.07.775-.1 1.15-.1Zm1.826 2.8L5.83 3.989v2.393l-2.455.475v5.968l6.137-1.189V9.243l2.456-.476V2.8ZM5.83 6.382l3.682-.713v3.574l-3.682.713V6.382Zm27.173-1.64-.084-1.066h-2.226v9.132h2.456V7.743c-.008-1.151.998-2.064 2.149-2.072 1.15-.008 1.987.92 1.995 2.072v5.065h2.455V7.359c-.015-2.18-1.657-3.929-3.837-3.913a3.993 3.993 0 0 0-2.908 1.296Zm-6.3-4.266L29.16 0v2.387l-2.456.475V.476Zm0 3.2v9.132h2.456V3.676h-2.456Zm18.179 11.787L49.11 3.676H46.58l-1.612 4.527-.46 1.382-.384-1.382-1.611-4.527H39.98l3.3 9.132L42.15 16l2.732-.537ZM22.867 9.738c0 .752.568 1.075.921 1.075.353 0 .668-.047.998-.154l.537 1.765c-.23.154-.92.537-2.225.537-1.305 0-2.655-.997-2.686-2.686a136.877 136.877 0 0 1 0-4.374H18.8V3.676h1.612v-1.98l2.455-.476v2.456h2.302V5.9h-2.302v3.837Z"/>\n</svg>\n';const WJ=e=>"BR"===e.nodeName||!!e.getAttribute("data-mce-bogus")||"bookmark"===e.getAttribute("data-mce-type"),GJ=(e,t,o)=>{var n;const a=null!==(n=t.delimiter)&&void 0!==n?n:"",r=(t,n,a)=>Hy.sketch({dom:{tag:"div",classes:["tox-statusbar__path-item"],attributes:{"data-index":a,"aria-level":a+1}},components:[Jc(t)],action:t=>{e.focus(),e.selection.select(n),e.nodeChanged()},buttonBehaviours:qu([kA.button(o.isDisabled),bA()])}),i=()=>({dom:{tag:"div",classes:["tox-statusbar__path-divider"],attributes:{"aria-hidden":!0}},components:[Jc(` ${a} `)]}),l=e=>K(e,(e,t,o)=>{const n=r(t.name,t.element,o);return 0===o?e.concat([n]):e.concat([i(),n])},[]),s=t=>{const o=[];let n=t.length;while(n-- >0){const a=t[n];if(1===a.nodeType&&!WJ(a)){const t=AN(e,a);if(t.isDefaultPrevented()||o.push({name:t.name,element:a}),t.isPropagationStopped())break}}return o};return{dom:{tag:"div",classes:["tox-statusbar__path"],attributes:{role:"navigation"}},behaviours:qu([nC.config({mode:"flow",selector:"div[role=button]"}),sv.config({disabled:o.isDisabled}),bA(),UT.config({}),fC.config({}),wC("elementPathEvents",[Zl((t,o)=>{e.shortcuts.add("alt+F11","focus statusbar elementpath",()=>nC.focusIn(t)),e.on("NodeChange",e=>{const o=s(e.parents),n=o.length>0?l(o):[];fC.set(t,n)})})])]),components:[]}};var KJ;(function(e){e[e["None"]=0]="None",e[e["Both"]=1]="Both",e[e["Vertical"]=2]="Vertical"})(KJ||(KJ={}));const YJ=(e,t,o,n,a)=>{const r={height:bK(n+t.top,Oj(e),xj(e))};return o===KJ.Both&&(r.width=bK(a+t.left,yj(e),jj(e))),r},QJ=(e,t,o)=>{const n=Ze.fromDom(e.getContainer()),a=YJ(e,t,o,Oo(n),Bo(n));he(a,(e,t)=>{f(e)&&uo(n,t,pK(e))}),ON(e)},JJ=e=>{const t=Jj(e);return!1===t?KJ.None:"both"===t?KJ.Both:KJ.Vertical},ZJ=(e,t,o,n)=>{const a=20,r=Vo(o*a,n*a);return QJ(e,r,t),T.some(!0)},XJ=(e,t)=>{const o=JJ(e);if(o===KJ.None)return T.none();const n=o===KJ.Both?"Press the arrow keys to resize the editor.":"Press the Up and Down arrow keys to resize the editor.";return T.some(rj("resize-handle",{tag:"div",classes:["tox-statusbar__resize-handle"],attributes:{title:t.translate("Resize"),"aria-label":t.translate(n)},behaviours:[MJ.config({mode:"mouse",repositionTarget:!1,onDrag:(t,n,a)=>QJ(e,a,o),blockerClass:"tox-blocker"}),nC.config({mode:"special",onLeft:()=>ZJ(e,o,-1,0),onRight:()=>ZJ(e,o,1,0),onUp:()=>ZJ(e,o,0,-1),onDown:()=>ZJ(e,o,0,1)}),UT.config({}),AC.config({})]},t.icons))},eZ=(e,t)=>{const o=(e,o,n)=>fC.set(e,[Jc(t.translate(["{0} "+n,o[n]]))]);return Hy.sketch({dom:{tag:"button",classes:["tox-statusbar__wordcount"]},components:[],buttonBehaviours:qu([kA.button(t.isDisabled),bA(),UT.config({}),fC.config({}),jg.config({store:{mode:"memory",initialValue:{mode:"words",count:{words:0,characters:0}}}}),wC("wordcount-events",[ts(e=>{const t=jg.getValue(e),n="words"===t.mode?"characters":"words";jg.setValue(e,{mode:n,count:t.count}),o(e,t.count,n)}),Zl(t=>{e.on("wordCountUpdate",e=>{const{mode:n}=jg.getValue(t);jg.setValue(t,{mode:n,count:e.wordCount}),o(t,e.wordCount,n)})})])]),eventOrder:{[cl()]:["disabling","alloy.base.behaviour","wordcount-events"]}})},tZ=(e,t)=>{const o=()=>({dom:{tag:"span",classes:["tox-statusbar__branding"]},components:[{dom:{tag:"a",attributes:{href:"https://www.tiny.cloud/powered-by-tiny?utm_campaign=poweredby&utm_source=tiny&utm_medium=referral&utm_content=v6",rel:"noopener",target:"_blank","aria-label":KO.translate(["Powered by {0}","Tiny"])},innerHtml:HJ.trim()},behaviours:qu([AC.config({})])}]}),n=()=>{const e=NA("Alt+0"),t="Press {0} for help";return{dom:{tag:"div",classes:["tox-statusbar__help-text"]},components:[Jc(KO.translate([t,e]))]}},a=()=>{const n=[];return e.hasPlugin("wordcount")&&n.push(eZ(e,t)),Qj(e)&&n.push(o()),{dom:{tag:"div",classes:["tox-statusbar__right-container"]},components:n}},r=()=>{const o=[],r=tx(e),i=Yj(e),l=Qj(e)||e.hasPlugin("wordcount"),s=()=>{const e="tox-statusbar__text-container--flex-start",t="tox-statusbar__text-container--flex-end",o="tox-statusbar__text-container--space-around";if(r){const n="tox-statusbar__text-container-3-cols";return l||i?l&&!i?[n,t]:[n,e]:[n,o]}return[l&&!i?t:e]};return i&&o.push(GJ(e,{},t)),r&&o.push(n()),l&&o.push(a()),o.length>0?[{dom:{tag:"div",classes:["tox-statusbar__text-container",...s()]},components:o}]:[]},i=()=>{const o=r(),n=XJ(e,t);return o.concat(n.toArray())};return{dom:{tag:"div",classes:["tox-statusbar"]},components:i()}},oZ=(e,t)=>t.get().getOrDie(`UI for ${e} has not been rendered`),nZ=(e,t)=>{const o=e.inline,n=o?VK:mK,a=gx(e)?N$:kq,r=AK(),i=Dm(),l=Dm(),s=Dm(),c=xn(),d=c.deviceType.isTouch(),u="tox-platform-touch",m=d?[u]:[],h=ux(e),p=Ej(e),b=Yy({dom:{tag:"div",classes:["tox-anchorbar"]}}),g=Yy({dom:{tag:"div",classes:["tox-bottom-anchorbar"]}}),f=()=>r.mainUi.get().map(e=>e.outerContainer).bind(lW.getHeader),v=()=>ua.fromOption(r.dialogUi.get().map(e=>e.sink),"UI has not been rendered"),w=()=>ua.fromOption(r.popupUi.get().map(e=>e.sink),"(popup) UI has not been rendered"),k=r.lazyGetInOuterOrDie("anchor bar",b.getOpt),C=r.lazyGetInOuterOrDie("bottom anchor bar",g.getOpt),y=r.lazyGetInOuterOrDie("toolbar",lW.getToolbar),O=r.lazyGetInOuterOrDie("throbber",lW.getThrobber),j=tq({popup:w,dialog:v},e,k,C),x=()=>{const t={attributes:{[dh]:h?ch.BottomToTop:ch.TopToBottom}},o=lW.parts.menubar({dom:{tag:"div",classes:["tox-menubar"]},backstage:j.popup,onEscape:()=>{e.focus()}}),n=lW.parts.toolbar({dom:{tag:"div",classes:["tox-toolbar"]},getSink:j.popup.shared.getSink,providers:j.popup.shared.providers,onEscape:()=>{e.focus()},onToolbarToggled:t=>{NN(e,t)},type:p,lazyToolbar:y,lazyHeader:()=>f().getOrDie("Could not find header element"),...t}),a=lW.parts["multiple-toolbar"]({dom:{tag:"div",classes:["tox-toolbar-overlord"]},providers:j.popup.shared.providers,onEscape:()=>{e.focus()},type:p}),r=dx(e),i=sx(e),l=ax(e),s=ex(e),c=_(),d=r||i||l,u=()=>r?[a]:i?[n]:[],m=s?[c,o]:[o];return lW.parts.header({dom:{tag:"div",classes:["tox-editor-header"].concat(d?[]:["tox-editor-header--empty"]),...t},components:Z([l?m:[],u(),hx(e)?[]:[b.asSpec()]]),sticky:gx(e),editor:e,sharedBackstage:j.popup.shared})},_=()=>lW.parts.promotion({dom:{tag:"div",classes:["tox-promotion"]}}),V=()=>{const e=lW.parts.socket({dom:{tag:"div",classes:["tox-edit-area"]}}),t=lW.parts.sidebar({dom:{tag:"div",classes:["tox-sidebar"]}});return{dom:{tag:"div",classes:["tox-sidebar-wrap"]},components:[e,t]}},A=()=>{const t=px(e),o=jt(Zt(),t)&&"grid"===po(t,"display"),n={dom:{tag:"div",classes:["tox","tox-silver-sink","tox-tinymce-aux"].concat(m),attributes:{...KO.isRtl()?{dir:"rtl"}:{}}},behaviours:qu([ab.config({useFixed:()=>a.isDocked(f)})])},r={dom:{styles:{width:document.body.clientWidth+"px"}},events:Ml([ql(wl(),e=>{uo(e.element,"width",document.body.clientWidth+"px")})])},i=od(Da(n,o?r:{})),s=IT(i);return l.set(s),{sink:i,mothership:s}},N=()=>{const e={dom:{tag:"div",classes:["tox","tox-silver-sink","tox-silver-popup-sink","tox-tinymce-aux"].concat(m),attributes:{...KO.isRtl()?{dir:"rtl"}:{}}},behaviours:qu([ab.config({useFixed:()=>a.isDocked(f),getBounds:()=>t.getPopupSinkBounds()})])},o=od(e),n=IT(o);return s.set(n),{sink:o,mothership:n}},D=()=>{const t=x(),n=V(),a=lW.parts.throbber({dom:{tag:"div",classes:["tox-throbber"]},backstage:j.popup}),r=lW.parts.viewWrapper({backstage:j.popup}),l=Kj(e)&&!o?T.some(tZ(e,j.popup.shared.providers)):T.none(),s=Z([h?[]:[t],o?[]:[n],h?[t]:[]]),c=lW.parts.editorContainer({components:Z([s,o?[]:[g.asSpec(),...l.toArray()]])}),d=bx(e),u={role:"application",...KO.isRtl()?{dir:"rtl"}:{},...d?{"aria-hidden":"true"}:{}},p=od(lW.sketch({dom:{tag:"div",classes:["tox","tox-tinymce"].concat(o?["tox-tinymce-inline"]:[]).concat(h?["tox-tinymce--toolbar-bottom"]:[]).concat(m),styles:{visibility:"hidden",...d?{opacity:"0",border:"0"}:{}},attributes:u},components:[c,...o?[]:[r],a],behaviours:qu([bA(),sv.config({disableClass:"tox-tinymce--disabled"}),nC.config({mode:"cyclic",selector:".tox-menubar, .tox-toolbar, .tox-toolbar__primary, .tox-toolbar__overflow--open, .tox-sidebar__overflow--open, .tox-statusbar__path, .tox-statusbar__wordcount, .tox-statusbar__branding a, .tox-statusbar__resize-handle"})])})),b=IT(p);return i.set(b),{mothership:b,outerContainer:p}},E=t=>{const o=pK(fK(e)),n=pK(wK(e));return e.inline||(vo("div","width",n)&&uo(t.element,"width",n),vo("div","height",o)?uo(t.element,"height",o):uo(t.element,"height","400px")),o},S=t=>{e.addShortcut("alt+F9","focus menubar",()=>{lW.focusMenubar(t)}),e.addShortcut("alt+F10","focus toolbar",()=>{lW.focusToolbar(t)}),e.addCommand("ToggleToolbarDrawer",(e,o)=>{(null===o||void 0===o?void 0:o.skipFocus)?lW.toggleToolbarDrawerWithoutFocusing(t):lW.toggleToolbarDrawer(t)}),e.addQueryStateHandler("ToggleToolbarDrawer",()=>lW.isToolbarDrawerToggled(t))},B=t=>{const{mainUi:o,popupUi:r,uiMotherships:i}=t;pe(Tj(e),(t,o)=>{e.ui.registry.addGroupToolbarButton(o,t)});const{buttons:l,menuItems:s,contextToolbars:c,sidebars:d,views:u}=e.ui.registry.getAll(),m=cx(e),h={menuItems:s,menus:vx(e),menubar:Mj(e),toolbar:m.getOrThunk(()=>Lj(e)),allowToolbarGroups:p===dj.floating,buttons:l,sidebar:d,views:u};S(o.outerContainer),oq(e,o.mothership,i),a.setup(e,j.popup.shared,f),$Y(e,j.popup),_Q(e,j.popup.shared.getSink,j.popup),Z$(e),jU(e,O,j.popup.shared),gY(e,c,r.sink,{backstage:j.popup}),UJ(e,r.sink);const b=e.getElement(),g=E(o.outerContainer),v={targetNode:b,height:g};return n.render(e,t,h,j.popup,v)},I=e=>(s.set(e.mothership),e),z=()=>{const t=D(),o=A(),n=fx(e)?N():I(o);r.dialogUi.set(o),r.popupUi.set(n),r.mainUi.set(t);const a={popupUi:n,dialogUi:o,mainUi:t,uiMotherships:r.getUiMotherships()};return B(a)};return{popups:{backstage:j.popup,getMothership:()=>oZ("popups",s)},dialogs:{backstage:j.dialog,getMothership:()=>oZ("dialogs",l)},renderUI:z}},aZ=(e,t)=>{const o=ao(e,"id").fold(()=>{const e=bs("dialog-label");return to(t,"id",e),e},j);to(e,"aria-labelledby",o)},rZ=O([Fr("lazySink"),Kr("dragBlockClass"),ci("getBounds",ia),ni("useTabstopAt",E),ni("firstTabstop",0),ni("eventOrder",{}),xg("modalBehaviours",[nC]),Md("onExecute"),Pd("onEscape")]),iZ={sketch:j},lZ=O([rf({name:"draghandle",overrides:(e,t)=>({behaviours:qu([MJ.config({mode:"mouse",getTarget:e=>dd(e,'[role="dialog"]').getOr(e),blockerClass:e.dragBlockClass.getOrDie(new Error("The drag blocker class was not specified for a dialog with a drag handle: \n"+JSON.stringify(t,null,2)).message),getBounds:e.getDragBounds})])})}),nf({schema:[Fr("dom")],name:"title"}),nf({factory:iZ,schema:[Fr("dom")],name:"close"}),nf({factory:iZ,schema:[Fr("dom")],name:"body"}),rf({factory:iZ,schema:[Fr("dom")],name:"footer"}),af({factory:{sketch:(e,t)=>({...e,dom:t.dom,components:t.components})},schema:[ni("dom",{tag:"div",styles:{position:"fixed",left:"0px",top:"0px",right:"0px",bottom:"0px"}}),ni("components",[])],name:"blocker"})]),sZ=(e,t,o,n)=>{const a=Dm(),r=t=>{a.set(t);const o=e.lazySink(t).getOrDie(),r=n.blocker(),i=o.getSystem().build({...r,components:r.components.concat([nd(t)]),behaviours:qu([AC.config({}),wC("dialog-blocker-events",[Jl(Wi(),()=>{gU.isBlocked(t)?w():nC.focusIn(t)})])])});pb(o,i),nC.focusIn(t)},i=e=>{a.clear(),Dt(e.element).each(t=>{e.getSystem().getByDom(t).each(e=>{fb(e)})})},l=t=>kf(t,e,"body"),s=t=>wf(t,e,"footer"),c=(e,t)=>{gU.block(e,t)},d=e=>{gU.unblock(e)},u=bs("modal-events"),m={...e.eventOrder,[kl()]:[u].concat(e.eventOrder["alloy.system.attached"]||[])};return{uid:e.uid,dom:e.dom,components:t,apis:{show:r,hide:i,getBody:l,getFooter:s,setIdle:d,setBusy:c},eventOrder:m,domModification:{attributes:{role:"dialog","aria-modal":"true"}},behaviours:Vg(e.modalBehaviours,[fC.config({}),nC.config({mode:"cyclic",onEnter:e.onExecute,onEscape:e.onEscape,useTabstopAt:e.useTabstopAt,firstTabstop:e.firstTabstop}),gU.config({getRoot:a.get}),wC(u,[Zl(t=>{aZ(t.element,kf(t,e,"title").element)})])])}},cZ=Mf({name:"ModalDialog",configFields:rZ(),partFields:lZ(),factory:sZ,apis:{show:(e,t)=>{e.show(t)},hide:(e,t)=>{e.hide(t)},getBody:(e,t)=>e.getBody(t),getFooter:(e,t)=>e.getFooter(t),setBusy:(e,t,o)=>{e.setBusy(t,o)},setIdle:(e,t)=>{e.setIdle(t)}}}),dZ=sr([D_,E_].concat(TV)),uZ=vr,mZ=[nV("button"),U_,li("align","end",["start","end"]),Z_,J_,Zr("buttonType",["primary","secondary"])],hZ=[...mZ,S_],pZ=[Rr("type",["submit","cancel","custom"]),...hZ],bZ=[Rr("type",["menu"]),$_,H_,U_,Gr("items",dZ),...mZ],gZ=[...mZ,Rr("type",["togglebutton"]),Pr("tooltip"),U_,$_,si("active",!1)],fZ=Tr("type",{submit:pZ,cancel:pZ,custom:pZ,menu:bZ,togglebutton:gZ}),vZ=[D_,S_,Rr("level",["info","warn","error","success"]),I_,ni("url","")],wZ=sr(vZ),kZ=e=>[D_,e],CZ=[D_,S_,J_,nV("button"),U_,Q_,Zr("buttonType",["primary","secondary","toolbar"]),Z_],yZ=sr(CZ),OZ=[D_,E_],jZ=OZ.concat([W_]),xZ=OZ.concat([T_,J_]),_Z=sr(xZ),VZ=vr,AZ=jZ.concat([X_("auto")]),NZ=sr(AZ),DZ=hr([z_,S_,I_]),EZ=jZ.concat([ii("storageKey","default")]),TZ=sr(EZ),SZ=fr,BZ=jZ,IZ=sr(BZ),zZ=fr,FZ=OZ.concat([ii("tag","textarea"),Pr("scriptId"),Pr("scriptUrl"),di("settings",void 0)]),MZ=OZ.concat([ii("tag","textarea"),$r("init")]),LZ=xr(e=>Ar("customeditor.old",lr(MZ),e).orThunk(()=>Ar("customeditor.new",lr(FZ),e))),PZ=fr,RZ=jZ,qZ=sr(RZ),$Z=jr(),UZ=e=>[D_,Lr("columns"),e],HZ=[D_,Pr("html"),li("presets","presentation",["presentation","document"])],WZ=sr(HZ),GZ=jZ.concat([si("border",!1),si("sandboxed",!0),si("streamContent",!1),si("transparent",!0)]),KZ=sr(GZ),YZ=fr,QZ=sr(OZ.concat([Jr("height")])),JZ=sr([Pr("url"),Qr("zoom"),Qr("cachedWidth"),Qr("cachedHeight")]),ZZ=jZ.concat([Jr("inputMode"),Jr("placeholder"),si("maximized",!1),J_]),XZ=sr(ZZ),eX=fr,tX=e=>[D_,T_,e,li("align","start",["start","center","end"])],oX=[S_,z_],nX=[S_,Gr("items",Sr("items",()=>aX))],aX=dr([sr(oX),sr(nX)]),rX=jZ.concat([Gr("items",aX),J_]),iX=sr(rX),lX=fr,sX=jZ.concat([Wr("items",[S_,z_]),ri("size",1),J_]),cX=sr(sX),dX=fr,uX=jZ.concat([si("constrain",!0),J_]),mX=sr(uX),hX=sr([Pr("width"),Pr("height")]),pX=OZ.concat([T_,ri("min",0),ri("max",0)]),bX=sr(pX),gX=gr,fX=[D_,Gr("header",fr),Gr("cells",cr(fr))],vX=sr(fX),wX=jZ.concat([Jr("placeholder"),si("maximized",!1),J_]),kX=sr(wX),CX=fr,yX=[Rr("type",["directory","leaf"]),B_,Pr("id"),Yr("menu",B$)],OX=yX,jX=sr(OX),xX=yX.concat([Gr("children",Sr("children",()=>Or("type",{directory:_X,leaf:jX})))]),_X=sr(xX),VX=Or("type",{directory:_X,leaf:jX}),AX=[D_,Gr("items",VX),Xr("onLeafAction"),Xr("onToggleExpand"),ui("defaultExpandedIds",[],fr),Jr("defaultSelectedId")],NX=sr(AX),DX=jZ.concat([li("filetype","file",["image","media","file"]),J_,Jr("picker_text")]),EX=sr(DX),TX=sr([z_,eV]),SX=e=>Br("items","items",Ta(),cr(xr(t=>Ar("Checking item of "+e,BX,t).fold(e=>ua.error(Er(e)),e=>ua.value(e))))),BX=rr(()=>Or("type",{alertbanner:wZ,bar:sr(kZ(SX("bar"))),button:yZ,checkbox:_Z,colorinput:TZ,colorpicker:IZ,dropzone:qZ,grid:sr(UZ(SX("grid"))),iframe:KZ,input:XZ,listbox:iX,selectbox:cX,sizeinput:mX,slider:bX,textarea:kX,urlinput:EX,customeditor:LZ,htmlpanel:WZ,imagepreview:QZ,collection:NZ,label:sr(tX(SX("label"))),table:vX,tree:NX,panel:zX})),IX=[D_,ni("classes",[]),Gr("items",BX)],zX=sr(IX),FX=[nV("tab"),B_,Gr("items",BX)],MX=[D_,Wr("tabs",FX)],LX=sr(MX),PX=hZ,RX=fZ,qX=sr([Pr("title"),Mr("body",Or("type",{panel:zX,tabpanel:LX})),ii("size","normal"),ui("buttons",[],RX),ni("initialData",{}),ci("onAction",w),ci("onChange",w),ci("onSubmit",w),ci("onClose",w),ci("onCancel",w),ci("onTabChange",w)]),$X=e=>Ar("dialog",qX,e),UX=sr([Rr("type",["cancel","custom"]),...PX]),HX=sr([Pr("title"),Pr("url"),Qr("height"),Qr("width"),ei("buttons",UX),ci("onAction",w),ci("onCancel",w),ci("onClose",w),ci("onMessage",w)]),WX=e=>Ar("dialog",HX,e),GX=e=>s(e)?[e].concat(X(ye(e),GX)):d(e)?X(e,GX):[],KX=e=>l(e.type)&&l(e.name),YX={checkbox:VZ,colorinput:SZ,colorpicker:zZ,dropzone:$Z,input:eX,iframe:YZ,imagepreview:JZ,selectbox:dX,sizeinput:hX,slider:gX,listbox:lX,size:hX,textarea:CX,urlinput:TX,customeditor:PZ,collection:DZ,togglemenuitem:uZ},QX=e=>T.from(YX[e.type]),JX=e=>W(GX(e),KX),ZX=e=>{const t=JX(e),o=X(t,e=>QX(e).fold(()=>[],t=>[Mr(e.name,t)]));return sr(o)},XX=e=>{var t;const o=Nr($X(e)),n=ZX(e),a=null!==(t=e.initialData)&&void 0!==t?t:{};return{internalDialog:o,dataValidator:n,initialData:a}},e0={open:(e,t)=>{const o=XX(t);return e(o.internalDialog,o.initialData,o.dataValidator)},openUrl:(e,t)=>{const o=Nr(WX(t));return e(o)},redial:e=>XX(e)},t0=(e,t)=>{const o=(o,n)=>{e.updateState.each(e=>{const a=e(o,n);t.set(a)}),e.renderComponents.each(a=>{const r=a(n,t.get()),i=e.reuseDom?rC:aC;i(o,r)})};return Ml([ql(sl(),(t,n)=>{const a=n;if(!a.universal){const n=e.channel;M(a.channels,n)&&o(t,a.data)}}),Zl((t,n)=>{e.initialData.each(e=>{o(t,e)})})])};var o0=Object.freeze({__proto__:null,events:t0});const n0=(e,t,o)=>o;var a0=Object.freeze({__proto__:null,getState:n0}),r0=[Fr("channel"),Kr("renderComponents"),Kr("updateState"),Kr("initialData"),si("reuseDom",!0)];const i0=()=>{const e=hi(T.none()),t=()=>e.set(T.none()),o=()=>e.get().getOr("none");return{readState:o,get:e.get,set:e.set,clear:t}};var l0=Object.freeze({__proto__:null,init:i0});const s0=Uu({fields:r0,name:"reflecting",active:o0,apis:a0,state:l0}),c0=e=>{const t=[],o={};return he(e,(e,n)=>{e.fold(()=>{t.push(n)},e=>{o[n]=e})}),t.length>0?ua.error(t):ua.value(o)},d0=(e,t,o)=>{const n=Yy(mz.sketch(n=>({dom:{tag:"div",classes:["tox-form"].concat(e.classes)},components:q(e.items,e=>bP(n,e,t,o))})));return{dom:{tag:"div",classes:["tox-dialog__body"]},components:[{dom:{tag:"div",classes:["tox-dialog__body-content"]},components:[n.asSpec()]}],behaviours:qu([nC.config({mode:"acyclic",useTabstopAt:V(Yz)}),Oz.memento(n),xz(n,{postprocess:e=>c0(e).fold(e=>(console.error(e),{}),j)}),wC("dialog-body-panel",[ql(Wi(),(e,t)=>{e.getSystem().broadcastOn([tF],{newFocus:T.some(t.event.target)})})])])}},u0=(e,t)=>({uid:e.uid,dom:e.dom,components:e.components,events:YC(e.action),behaviours:Vg(e.tabButtonBehaviours,[AC.config({}),nC.config({mode:"execution",useSpace:!0,useEnter:!0}),jg.config({store:{mode:"memory",initialValue:e.value}})]),domModification:e.domModification}),m0=Ff({name:"TabButton",configFields:[ni("uid",void 0),Fr("value"),Br("dom","dom",za(()=>({attributes:{role:"tab",id:bs("aria"),"aria-selected":"false"}})),pr()),Kr("action"),ni("domModification",{}),xg("tabButtonBehaviours",[AC,nC,jg]),Fr("view")],factory:u0}),h0=O([Fr("tabs"),Fr("dom"),ni("clickToDismiss",!1),xg("tabbarBehaviours",[Av,nC]),Id(["tabClass","selectedClass"])]),p0=lf({factory:m0,name:"tabs",unit:"tab",overrides:e=>{const t=(e,t)=>{Av.dehighlight(e,t),Tl(e,Al(),{tabbar:e,button:t})},o=(e,t)=>{Av.highlight(e,t),Tl(e,Vl(),{tabbar:e,button:t})};return{action:n=>{const a=n.getSystem().getByUid(e.uid).getOrDie(),r=Av.isHighlighted(a,n),i=(()=>r&&e.clickToDismiss?t:r?w:o)();i(a,n)},domModification:{classes:[e.markers.tabClass]}}}}),b0=O([p0]),g0=(e,t,o,n)=>({uid:e.uid,dom:e.dom,components:t,"debug.sketcher":"Tabbar",domModification:{attributes:{role:"tablist"}},behaviours:Vg(e.tabbarBehaviours,[Av.config({highlightClass:e.markers.selectedClass,itemClass:e.markers.tabClass,onHighlight:(e,t)=>{to(t.element,"aria-selected","true")},onDehighlight:(e,t)=>{to(t.element,"aria-selected","false")}}),nC.config({mode:"flow",getInitial:e=>Av.getHighlighted(e).map(e=>e.element),selector:"."+e.markers.tabClass,executeOnMove:!0})])}),f0=Mf({name:"Tabbar",configFields:h0(),partFields:b0(),factory:g0}),v0=(e,t)=>({uid:e.uid,dom:e.dom,behaviours:Vg(e.tabviewBehaviours,[fC.config({})]),domModification:{attributes:{role:"tabpanel"}}}),w0=Ff({name:"Tabview",configFields:[xg("tabviewBehaviours",[fC])],factory:v0}),k0=O([ni("selectFirst",!0),Fd("onChangeTab"),Fd("onDismissTab"),ni("tabs",[]),xg("tabSectionBehaviours",[])]),C0=nf({factory:f0,schema:[Fr("dom"),Hr("markers",[Fr("tabClass"),Fr("selectedClass")])],name:"tabbar",defaults:e=>({tabs:e.tabs})}),y0=nf({factory:w0,name:"tabview"}),O0=O([C0,y0]),j0=(e,t,o,n)=>{const a=t=>{const o=jg.getValue(t);wf(t,e,"tabview").each(n=>{const a=Q(e.tabs,e=>e.value===o);a.each(o=>{const a=o.view();ao(t.element,"id").each(e=>{to(n.element,"aria-labelledby",e)}),fC.set(n,a),e.onChangeTab(n,t,a)})})},r=(t,o)=>{wf(t,e,"tabbar").each(e=>{o(e).each(Sl)})};return{uid:e.uid,dom:e.dom,components:t,behaviours:_g(e.tabSectionBehaviours),events:Ml(Z([e.selectFirst?[Zl((e,t)=>{r(e,Av.getFirst)})]:[],[ql(Vl(),(e,t)=>{const o=t.event.button;a(o)}),ql(Al(),(t,o)=>{const n=o.event.button;e.onDismissTab(t,n)})]])),apis:{getViewItems:t=>wf(t,e,"tabview").map(e=>fC.contents(e)).getOr([]),showTab:(e,t)=>{const o=e=>{const o=Av.getCandidates(e),n=Q(o,e=>jg.getValue(e)===t);return n.filter(t=>!Av.isHighlighted(e,t))};r(e,o)}}}},x0=Mf({name:"TabSection",configFields:k0(),partFields:O0(),factory:j0,apis:{getViewItems:(e,t)=>e.getViewItems(t),showTab:(e,t,o)=>{e.showTab(t,o)}}}),_0=(e,t,o)=>q(e,(n,a)=>{fC.set(o,e[a].view());const r=t.dom.getBoundingClientRect();return fC.set(o,[]),r.height}),V0=e=>le(re(e,(e,t)=>e>t?-1:e<t?1:0)),A0=(e,t,o)=>{const n=At(e).dom,a=dd(e,".tox-dialog-wrap").getOr(e),r="fixed"===po(a,"position");let i;i=r?Math.max(n.clientHeight,window.innerHeight):Math.max(n.offsetHeight,n.scrollHeight);const l=Oo(t),s=t.dom.offsetLeft>=o.dom.offsetLeft+Bo(o),c=s?Math.max(Oo(o),l):l,d=parseInt(po(e,"margin-top"),10)||0,u=parseInt(po(e,"margin-bottom"),10)||0,m=Oo(e)+d+u,h=m-c;return i-h},N0=(e,t)=>{le(e).each(e=>x0.showTab(t,e.value))},D0=(e,t)=>{uo(e,"height",t+"px"),uo(e,"flex-basis",t+"px")},E0=(e,t,o)=>{dd(e,'[role="dialog"]').each(e=>{md(e,'[role="tablist"]').each(n=>{o.get().map(o=>(uo(t,"height","0"),uo(t,"flex-basis","0"),Math.min(o,A0(e,t,n)))).each(e=>{D0(t,e)})})})},T0=e=>md(e,'[role="tabpanel"]'),S0=e=>{const t=Dm(),o=[Zl(o=>{const n=o.element;T0(n).each(a=>{uo(a,"visibility","hidden"),o.getSystem().getByDom(a).toOptional().each(o=>{const n=_0(e,a,o),r=V0(n);r.fold(t.clear,t.set)}),E0(n,a,t),wo(a,"visibility"),N0(e,o),requestAnimationFrame(()=>{E0(n,a,t)})})}),ql(wl(),e=>{const o=e.element;T0(o).each(e=>{E0(o,e,t)})}),ql(iS,(e,o)=>{const n=e.element;T0(n).each(e=>{const o=em(Ut(e));uo(e,"visibility","hidden");const a=go(e,"height").map(e=>parseInt(e,10));wo(e,"height"),wo(e,"flex-basis");const r=e.dom.getBoundingClientRect().height,i=a.forall(e=>r>e);i?(t.set(r),E0(n,e,t)):a.each(t=>{D0(e,t)}),wo(e,"visibility"),o.each(Ju)})})],n=!1;return{extraEvents:o,selectFirst:n}},B0="send-data-to-section",I0="send-data-to-view",z0=(e,t,o)=>{const n=hi({}),a=e=>{const t=jg.getValue(e),o=c0(t).getOr({}),a=n.get(),r=Da(a,o);n.set(r)},r=e=>{const t=n.get();jg.setValue(e,t)},i=hi(null),l=q(e.tabs,e=>({value:e.name,dom:{tag:"div",classes:["tox-dialog__body-nav-item"]},components:[Jc(o.shared.providers.translate(e.title))],view:()=>[mz.sketch(n=>({dom:{tag:"div",classes:["tox-form"]},components:q(e.items,e=>bP(n,e,t,o)),formBehaviours:qu([nC.config({mode:"acyclic",useTabstopAt:V(Yz)}),wC("TabView.form.events",[Zl(r),Xl(a)]),Ku.config({channels:yi([{key:B0,value:{onReceive:a}},{key:I0,value:{onReceive:r}}])})])}))]})),s=S0(l);return x0.sketch({dom:{tag:"div",classes:["tox-dialog__body"]},onChangeTab:(e,t,o)=>{const n=jg.getValue(t);Tl(e,rS,{name:n,oldName:i.get()}),i.set(n)},tabs:l,components:[x0.parts.tabbar({dom:{tag:"div",classes:["tox-dialog__body-nav"]},components:[f0.parts.tabs({})],markers:{tabClass:"tox-tab",selectedClass:"tox-dialog__body-nav-item--active"},tabbarBehaviours:qu([UT.config({})])}),x0.parts.tabview({dom:{tag:"div",classes:["tox-dialog__body-content"]}})],selectFirst:s.selectFirst,tabSectionBehaviours:qu([wC("tabpanel",s.extraEvents),nC.config({mode:"acyclic"}),$f.config({find:e=>le(x0.getViewItems(e))}),_z(T.none(),e=>(e.getSystem().broadcastOn([B0],{}),n.get()),(e,t)=>{n.set(t),e.getSystem().broadcastOn([I0],{})})])})},F0=(e,t,o,n,a)=>{const r=e=>{const t=e.body;switch(t.type){case"tabpanel":return[z0(t,e.initialData,n)];default:return[d0(t,e.initialData,n)]}},i=(e,t)=>T.some({isTabPanel:()=>"tabpanel"===t.body.type}),l={"aria-live":"polite"};return{dom:{tag:"div",classes:["tox-dialog__content-js"],attributes:{...o.map(e=>({id:e})).getOr({}),...a?l:{}}},components:[],behaviours:qu([Oz.childAt(0),s0.config({channel:`${Zz}-${t}`,updateState:i,renderComponents:r,initialData:e})])}},M0=(e,t,o,n,a)=>F0(e,t,T.some(o),n,a),L0=(e,t,o)=>{const n=F0(e,t,T.none(),o,!1);return cZ.parts.body(n)},P0=e=>{const t={dom:{tag:"div",classes:["tox-dialog__content-js"]},components:[{dom:{tag:"div",classes:["tox-dialog__body-iframe"]},components:[Wz(T.none(),{dom:{tag:"iframe",attributes:{src:e.url}},behaviours:qu([UT.config({}),AC.config({})])})]}],behaviours:qu([nC.config({mode:"acyclic",useTabstopAt:V(Yz)})])};return cZ.parts.body(t)},R0=bj.deviceType.isTouch(),q0=(e,t)=>({dom:{tag:"div",styles:{display:"none"},classes:["tox-dialog__header"]},components:[e,t]}),$0=(e,t)=>cZ.parts.close(Hy.sketch({dom:{tag:"button",classes:["tox-button","tox-button--icon","tox-button--naked"],attributes:{type:"button","aria-label":t.translate("Close")}},action:e,buttonBehaviours:qu([UT.config({})])})),U0=()=>cZ.parts.title({dom:{tag:"div",classes:["tox-dialog__title"],innerHtml:"",styles:{display:"none"}}}),H0=(e,t)=>cZ.parts.body({dom:{tag:"div",classes:["tox-dialog__body"]},components:[{dom:{tag:"div",classes:["tox-dialog__body-content"]},components:[{dom:Ky(`<p>${GO(t.translate(e))}</p>`)}]}]}),W0=e=>cZ.parts.footer({dom:{tag:"div",classes:["tox-dialog__footer"]},components:e}),G0=(e,t)=>[BT.sketch({dom:{tag:"div",classes:["tox-dialog__footer-start"]},components:e}),BT.sketch({dom:{tag:"div",classes:["tox-dialog__footer-end"]},components:t})],K0=e=>{const t="tox-dialog",o=t+"-wrap",n=o+"__backdrop",a=t+"__disable-scroll";return cZ.sketch({lazySink:e.lazySink,onEscape:t=>(e.onEscape(t),T.some(!0)),useTabstopAt:e=>!Yz(e),firstTabstop:e.firstTabstop,dom:{tag:"div",classes:[t].concat(e.extraClasses),styles:{position:"relative",...e.extraStyles}},components:[e.header,e.body,...e.footer.toArray()],parts:{blocker:{dom:Ky(`<div class="${o}"></div>`),components:[{dom:{tag:"div",classes:R0?[n,n+"--opaque"]:[n]}}]}},dragBlockClass:o,modalBehaviours:qu([AC.config({}),wC("dialog-events",e.dialogEvents.concat([Jl(Wi(),(e,t)=>{gU.isBlocked(e)?w():nC.focusIn(e)}),ql(jl(),(e,t)=>{e.getSystem().broadcastOn([tF],{newFocus:t.event.newFocus})})])),wC("scroll-lock",[Zl(()=>{vc(Zt(),a)}),Xl(()=>{kc(Zt(),a)})]),...e.extraBehaviours]),eventOrder:{[cl()]:["dialog-events"],[kl()]:["scroll-lock","dialog-events","alloy.base.behaviour"],[Cl()]:["alloy.base.behaviour","dialog-events","scroll-lock"],...e.eventOrder}})},Y0=e=>Hy.sketch({dom:{tag:"button",classes:["tox-button","tox-button--icon","tox-button--naked"],attributes:{type:"button","aria-label":e.translate("Close"),title:e.translate("Close")}},buttonBehaviours:qu([UT.config({})]),components:[rj("close",{tag:"span",classes:["tox-icon"]},e.icons)],action:e=>{El(e,eS)}}),Q0=(e,t,o,n)=>{const a=e=>[Jc(n.translate(e.title))];return{dom:{tag:"div",classes:["tox-dialog__title"],attributes:{...o.map(e=>({id:e})).getOr({})}},components:[],behaviours:qu([s0.config({channel:`${Jz}-${t}`,initialData:e,renderComponents:a})])}},J0=()=>({dom:Ky('<div class="tox-dialog__draghandle"></div>')}),Z0=(e,t,o,n)=>BT.sketch({dom:Ky('<div class="tox-dialog__header"></div>'),components:[Q0(e,t,T.some(o),n),J0(),Y0(n)],containerBehaviours:qu([MJ.config({mode:"mouse",blockerClass:"blocker",getTarget:e=>hd(e,'[role="dialog"]').getOrDie(),snaps:{getSnapPoints:()=>[],leftAttr:"data-drag-left",topAttr:"data-drag-top"}})])}),X0=(e,t,o)=>{const n=cZ.parts.title(Q0(e,t,T.none(),o)),a=cZ.parts.draghandle(J0()),r=cZ.parts.close(Y0(o)),i=[n].concat(e.draggable?[a]:[]).concat([r]);return BT.sketch({dom:Ky('<div class="tox-dialog__header"></div>'),components:i})},e1=(e,t,o)=>X0({title:o.shared.providers.translate(e),draggable:o.dialog.isDraggableModal()},t,o.shared.providers),t1=(e,t,o,n)=>({dom:{tag:"div",classes:["tox-dialog__busy-spinner"],attributes:{"aria-label":o.translate(e)},styles:{left:"0px",right:"0px",bottom:"0px",top:n.getOr(0)+"px",position:"absolute"}},behaviours:t,components:[{dom:Ky('<div class="tox-spinner"><div></div><div></div><div></div></div>')}]}),o1=(e,t,o)=>({onClose:()=>o.closeWindow(),onBlock:o=>{const n=md(e().element,".tox-dialog__header").map(e=>Oo(e));cZ.setBusy(e(),(e,a)=>t1(o.message,a,t,n))},onUnblock:()=>{cZ.setIdle(e())}}),n1="tox-dialog--fullscreen",a1="tox-dialog--width-lg",r1="tox-dialog--width-md",i1=e=>{switch(e){case"large":return T.some(a1);case"medium":return T.some(r1);default:return T.none()}},l1=(e,t)=>{const o=Ze.fromDom(t.element.dom);yc(o,n1)||(jc(o,[a1,r1]),i1(e).each(e=>vc(o,e)))},s1=(e,t)=>{const o=Ze.fromDom(e.element.dom),n=Ac(o),a=Q(n,e=>e===a1||e===r1).or(i1(t));xc(o,[n1,...a.toArray()])},c1=(e,t,o)=>od(K0({...e,firstTabstop:1,lazySink:o.shared.getSink,extraBehaviours:[Nz({}),...e.extraBehaviours],onEscape:e=>{El(e,eS)},dialogEvents:t,eventOrder:{[sl()]:[s0.name(),Ku.name()],[kl()]:["scroll-lock",s0.name(),"messages","dialog-events","alloy.base.behaviour"],[Cl()]:["alloy.base.behaviour","dialog-events","messages",s0.name(),"scroll-lock"]}})),d1=(e,t={})=>{const o=e=>{const o=q(e.items,e=>{const o=Oe(t,e.name).getOr(hi(!1));return{...e,storage:o}});return{...e,items:o}};return q(e,e=>"menu"===e.type?o(e):e)},u1=e=>K(e,(e,t)=>{if("menu"===t.type){const o=t;return K(o.items,(e,t)=>(e[t.name]=t.storage,e),e)}return e},{}),m1=(e,t)=>[Kl(Wi(),Kz),e(XT,(e,o,n,a)=>{em(Ut(a.element)).fold(w,Zu),t.onClose(),o.onClose()}),e(eS,(e,t,o,n)=>{t.onCancel(e),El(n,XT)}),ql(aS,(e,o)=>t.onUnblock()),ql(nS,(e,o)=>t.onBlock(o.event))],h1=(e,t)=>{const o=(t,o)=>ql(t,(t,a)=>{n(t,(n,r)=>{o(e(),n,a.event,t)})}),n=(e,t)=>{s0.getState(e).get().each(o=>{t(o,e)})};return[...m1(o,t),o(tS,(e,t,o)=>{t.onAction(e,{name:o.name})})]},p1=(e,t,o)=>{const n=(t,o)=>ql(t,(t,n)=>{a(t,(a,r)=>{o(e(),a,n.event,t)})}),a=(e,t)=>{s0.getState(e).get().each(o=>{t(o.internalDialog,e)})};return[...m1(n,t),n(oS,(e,t)=>t.onSubmit(e)),n(ZT,(e,t,o)=>{t.onChange(e,{name:o.name})}),n(tS,(e,t,n,a)=>{const r=()=>a.getSystem().isConnected()?nC.focusIn(a):void 0,i=e=>ro(e,"disabled")||ao(e,"aria-disabled").exists(e=>"true"===e),l=Ut(a.element),s=em(l);t.onAction(e,{name:n.name,value:n.value}),em(l).fold(r,e=>{i(e)||s.exists(t=>xt(e,t)&&i(t))?r():o().toOptional().filter(t=>!xt(t.element,e)).each(r)})}),n(rS,(e,t,o)=>{t.onTabChange(e,{newTabName:o.name,oldTabName:o.oldName})}),Xl(t=>{const o=e();jg.setValue(t,o.getData())})]},b1=(e,t)=>qL(e,e.type,t),g1=(e,t,o)=>Q(t,e=>e.name===o).bind(t=>t.memento.getOpt(e)),f1=(e,t)=>{const o=t.map(e=>e.footerButtons).getOr([]),n=H(o,e=>"start"===e.align),a=(e,t)=>BT.sketch({dom:{tag:"div",classes:["tox-dialog__footer-"+e]},components:q(t,e=>e.memento.asSpec())}),r=a("start",n.pass),i=a("end",n.fail);return[r,i]},v1=(e,t,o)=>{const n=(e,t)=>{const n=q(t.buttons,e=>{const t=Yy(b1(e,o));return{name:e.name,align:e.align,memento:t}}),a=t=>g1(e,n,t);return T.some({lookupByName:a,footerButtons:n})};return{dom:Ky('<div class="tox-dialog__footer"></div>'),components:[],behaviours:qu([s0.config({channel:`${Xz}-${t}`,initialData:e,updateState:n,renderComponents:f1})])}},w1=(e,t,o)=>v1(e,t,o),k1=(e,t,o)=>cZ.parts.footer(v1(e,t,o)),C1=(e,t)=>{const o=e.getRoot();if(o.getSystem().isConnected()){const o=$f.getCurrent(e.getFormWrapper()).getOr(e.getFormWrapper());return mz.getField(o,t).orThunk(()=>{const o=e.getFooter(),n=o.bind(e=>s0.getState(e).get());return n.bind(e=>e.lookupByName(t))})}return T.none()},y1=(e,t)=>{const o=e.getRoot();return s0.getState(o).get().map(e=>Nr(Ar("data",e.dataValidator,t))).getOr(t)},O1=(e,t,o)=>{const n=t=>{const o=e.getRoot();o.getSystem().isConnected()&&t(o)},a=()=>{const t=e.getRoot(),n=t.getSystem().isConnected()?e.getFormWrapper():t,a=jg.getValue(n),r=pe(o,e=>e.get());return{...a,...r}},r=t=>{n(n=>{const a=p.getData(),r=Da(a,t),i=y1(e,r),l=e.getFormWrapper();jg.setValue(l,i),he(o,(e,t)=>{je(r,t)&&e.set(r[t])})})},i=(t,o)=>{C1(e,t).each(o?sv.enable:sv.disable)},s=t=>{C1(e,t).each(AC.focus)},c=e=>{if(!l(e))throw new Error("The dialogInstanceAPI.block function should be passed a blocking message of type string as an argument");n(t=>{Tl(t,nS,{message:e})})},d=()=>{n(e=>{El(e,aS)})},u=t=>{n(o=>{const n=e.getBody(),a=s0.getState(n);a.get().exists(e=>e.isTabPanel())&&$f.getCurrent(n).each(e=>{x0.showTab(e,t)})})},m=a=>{n(n=>{const r=e.getId(),i=t(a),l=d1(i.internalDialog.buttons,o);n.getSystem().broadcastOn([`${Qz}-${r}`],i),n.getSystem().broadcastOn([`${Jz}-${r}`],i.internalDialog),n.getSystem().broadcastOn([`${Zz}-${r}`],i.internalDialog),n.getSystem().broadcastOn([`${Xz}-${r}`],{...i.internalDialog,buttons:l}),p.setData(i.initialData)})},h=()=>{n(e=>{El(e,XT)})},p={getData:a,setData:r,setEnabled:i,focus:s,block:c,unblock:d,showTab:u,redial:m,close:h,toggleFullscreen:e.toggleFullscreen};return p},j1=(e,t,o)=>{const n=bs("dialog"),a=e.internalDialog,r=e1(a.title,n,o),i=hi(a.size),l=i1(i.get()).toArray(),s=(e,t)=>(i.set(t.internalDialog.size),l1(t.internalDialog.size,e),T.some(t)),c=L0({body:a.body,initialData:a.initialData},n,o),d=d1(a.buttons),u=u1(d),m=Se(0!==d.length,k1({buttons:d},n,o)),h=p1(()=>f,o1(()=>b,o.shared.providers,t),o.shared.getSink),p={id:n,header:r,body:c,footer:m,extraClasses:l,extraBehaviours:[s0.config({channel:`${Qz}-${n}`,updateState:s,initialData:e})],extraStyles:{}},b=c1(p,h,o),g=(()=>{const e=()=>{const e=cZ.getBody(b);return $f.getCurrent(e).getOr(e)},t=()=>{s1(b,i.get())};return{getId:O(n),getRoot:O(b),getBody:()=>cZ.getBody(b),getFooter:()=>cZ.getFooter(b),getFormWrapper:e,toggleFullscreen:t}})(),f=O1(g,t.redial,u);return{dialog:b,instanceApi:f}},x1=(e,t,o,n=!1,a)=>{const r=bs("dialog"),i=bs("dialog-label"),l=bs("dialog-content"),s=e.internalDialog,c=hi(s.size),d=i1(c.get()).toArray(),u=(e,t)=>(c.set(t.internalDialog.size),l1(t.internalDialog.size,e),a(),T.some(t)),m=Yy(Z0({title:s.title,draggable:!0},r,i,o.shared.providers)),h=Yy(M0({body:s.body,initialData:s.initialData},r,l,o,n)),p=d1(s.buttons),b=u1(p),g=Se(0!==p.length,Yy(w1({buttons:p},r,o))),f=p1(()=>C,{onBlock:e=>{gU.block(w,(t,n)=>{const a=m.getOpt(w).map(e=>Oo(e.element));return t1(e.message,n,o.shared.providers,a)})},onUnblock:()=>{gU.unblock(w)},onClose:()=>t.closeWindow()},o.shared.getSink),v="tox-dialog-inline",w=od({dom:{tag:"div",classes:["tox-dialog",v,...d],attributes:{role:"dialog",["aria-labelledby"]:i}},eventOrder:{[sl()]:[s0.name(),Ku.name()],[cl()]:["execute-on-form"],[kl()]:["reflecting","execute-on-form"]},behaviours:qu([nC.config({mode:"cyclic",onEscape:e=>(El(e,XT),T.some(!0)),useTabstopAt:e=>!Yz(e)&&("button"!==ut(e)||"disabled"!==no(e,"disabled")),firstTabstop:1}),s0.config({channel:`${Qz}-${r}`,updateState:u,initialData:e}),AC.config({}),wC("execute-on-form",f.concat([Jl(Wi(),(e,t)=>{nC.focusIn(e)}),ql(jl(),(e,t)=>{e.getSystem().broadcastOn([tF],{newFocus:t.event.newFocus})})])),gU.config({getRoot:()=>T.some(w)}),fC.config({}),Nz({})]),components:[m.asSpec(),h.asSpec(),...g.map(e=>e.asSpec()).toArray()]}),k=()=>{s1(w,c.get())},C=O1({getId:O(r),getRoot:O(w),getFooter:()=>g.map(e=>e.get(w)),getBody:()=>h.get(w),getFormWrapper:()=>{const e=h.get(w);return $f.getCurrent(e).getOr(e)},toggleFullscreen:k},t.redial,b);return{dialog:w,instanceApi:C}};var _1=tinymce.util.Tools.resolve("tinymce.util.URI");const V1=e=>{const t=t=>{e.getSystem().isConnected()&&t(e)},o=e=>{if(!l(e))throw new Error("The urlDialogInstanceAPI.block function should be passed a blocking message of type string as an argument");t(t=>{Tl(t,nS,{message:e})})},n=()=>{t(e=>{El(e,aS)})},a=()=>{t(e=>{El(e,XT)})},r=e=>{t(t=>{t.getSystem().broadcastOn([eF],e)})};return{block:o,unblock:n,close:a,sendMessage:r}},A1=["insertContent","setContent","execCommand","close","block","unblock"],N1=e=>s(e)&&-1!==A1.indexOf(e.mceAction),D1=e=>!N1(e)&&s(e)&&je(e,"mceAction"),E1=(e,t,o)=>{switch(o.mceAction){case"insertContent":e.insertContent(o.content);break;case"setContent":e.setContent(o.content);break;case"execCommand":const n=!!m(o.ui)&&o.ui;e.execCommand(o.cmd,n,o.value);break;case"close":t.close();break;case"block":t.block(o.message);break;case"unblock":t.unblock();break}},T1=(e,t,o,n)=>{const a=bs("dialog"),r=e1(e.title,a,n),i=P0(e),l=e.buttons.bind(e=>0===e.length?T.none():T.some(k1({buttons:e},a,n))),s=h1(()=>w,o1(()=>v,n.shared.providers,t)),c={...e.height.fold(()=>({}),e=>({height:e+"px","max-height":e+"px"})),...e.width.fold(()=>({}),e=>({width:e+"px","max-width":e+"px"}))},d=e.width.isNone()&&e.height.isNone()?["tox-dialog--width-lg"]:[],u=new _1(e.url,{base_uri:new _1(window.location.href)}),m=`${u.protocol}://${u.host}${u.port?":"+u.port:""}`,h=Nm(),p=(e,t)=>T.some(t),g=[s0.config({channel:`${Qz}-${a}`,updateState:p,initialData:e}),wC("messages",[Zl(()=>{const t=Tm(Ze.fromDom(window),"message",t=>{if(u.isSameOrigin(new _1(t.raw.origin))){const n=t.raw.data;N1(n)?E1(o,w,n):D1(n)&&e.onMessage(w,n)}});h.set(t)}),Xl(h.clear)]),Ku.config({channels:{[eF]:{onReceive:(e,t)=>{md(e.element,"iframe").each(e=>{const o=e.dom.contentWindow;b(o)&&o.postMessage(t,m)})}}}})],f={id:a,header:r,body:i,footer:l,extraClasses:d,extraBehaviours:g,extraStyles:c},v=c1(f,s,n),w=V1(v);return{dialog:v,instanceApi:w}},S1=e=>{const t=e.shared,o=(o,n)=>{const a=()=>{cZ.hide(s),n()},r=Yy(qL({name:"close-alert",text:"OK",primary:!0,buttonType:T.some("primary"),align:"end",enabled:!0,icon:T.none()},"cancel",e)),i=U0(),l=$0(a,t.providers),s=od(K0({lazySink:()=>t.getSink(),header:q0(i,l),body:H0(o,t.providers),footer:T.some(W0(G0([],[r.asSpec()]))),onEscape:a,extraClasses:["tox-alert-dialog"],extraBehaviours:[],extraStyles:{},dialogEvents:[ql(eS,a)],eventOrder:{}}));cZ.show(s);const c=r.get(s);AC.focus(c)};return{open:o}},B1=e=>{const t=e.shared,o=(o,n)=>{const a=e=>{cZ.hide(c),n(e)},r=Yy(qL({name:"yes",text:"Yes",primary:!0,buttonType:T.some("primary"),align:"end",enabled:!0,icon:T.none()},"submit",e)),i=qL({name:"no",text:"No",primary:!1,buttonType:T.some("secondary"),align:"end",enabled:!0,icon:T.none()},"cancel",e),l=U0(),s=$0(()=>a(!1),t.providers),c=od(K0({lazySink:()=>t.getSink(),header:q0(l,s),body:H0(o,t.providers),footer:T.some(W0(G0([],[i,r.asSpec()]))),onEscape:()=>a(!1),extraClasses:["tox-confirm-dialog"],extraBehaviours:[],extraStyles:{},dialogEvents:[ql(eS,()=>a(!1)),ql(oS,()=>a(!0))],eventOrder:{}}));cZ.show(c);const d=r.get(c);AC.focus(d)};return{open:o}},I1=(e,t)=>Nr(Ar("data",t,e)),z1=e=>dT(e,".tox-alert-dialog")||dT(e,".tox-confirm-dialog"),F1=(e,t,o)=>t&&o?[]:[h$.config({contextual:{lazyContext:()=>T.some(oa(Ze.fromDom(e.getContentAreaContainer()))),fadeInClass:"tox-dialog-dock-fadein",fadeOutClass:"tox-dialog-dock-fadeout",transitionClass:"tox-dialog-dock-transition"},modes:["top"],lazyViewport:t=>{const o=sT(e,t.element);return o.map(e=>{const t=cT(e);return{bounds:t,optScrollEnv:T.some({currentScrollTop:e.element.dom.scrollTop,scrollElmTop:Do(e.element).top})}}).getOrThunk(()=>({bounds:ia(),optScrollEnv:T.none()}))}})],M1=e=>{const t=e.editor,o=gx(t),n=S1(e.backstages.dialog),a=B1(e.backstages.dialog),r=(t,o,n)=>{if(!h(o)){if("toolbar"===o.inline)return c(t,e.backstages.popup.shared.anchors.inlineDialog(),n,o);if("bottom"===o.inline)return d(t,e.backstages.popup.shared.anchors.inlineBottomDialog(),n,o);if("cursor"===o.inline)return c(t,e.backstages.popup.shared.anchors.cursor(),n,o)}return s(t,n)},i=(e,t)=>l(e,t),l=(o,n)=>{const a=o=>{const a=T1(o,{closeWindow:()=>{cZ.hide(a.dialog),n(a.instanceApi)}},t,e.backstages.dialog);return cZ.show(a.dialog),a.instanceApi};return e0.openUrl(a,o)},s=(t,o)=>{const n=(t,n,a)=>{const r=n,i={dataValidator:a,initialData:r,internalDialog:t},l=j1(i,{redial:e0.redial,closeWindow:()=>{cZ.hide(l.dialog),o(l.instanceApi)}},e.backstages.dialog);return cZ.show(l.dialog),l.instanceApi.setData(r),l.instanceApi};return e0.open(n,t)},c=(n,a,r,i)=>{const l=(n,l,s)=>{const c=I1(l,s),d=Dm(),u=e.backstages.popup.shared.header.isPositionedAtTop(),m={dataValidator:s,initialData:c,internalDialog:n},h=()=>d.on(e=>{qy.reposition(e),o&&u||h$.refresh(e)}),p=x1(m,{redial:e0.redial,closeWindow:()=>{d.on(qy.hide),t.off("ResizeEditor",h),d.clear(),r(p.instanceApi)}},e.backstages.popup,i.ariaAttrs,h),b=od(qy.sketch({lazySink:e.backstages.popup.shared.getSink,dom:{tag:"div",classes:[]},fireDismissalEventInstead:i.persistent?{event:"doNotDismissYet"}:{},...u?{}:{fireRepositionEventInstead:{}},inlineBehaviours:qu([wC("window-manager-inline-events",[ql(yl(),(e,t)=>{El(p.dialog,eS)})]),...F1(t,o,u)]),isExtraPart:(e,t)=>z1(t)}));d.set(b);const g=()=>{const e=t.inline?Zt():Ze.fromDom(t.getContainer()),o=oa(e);return T.some(o)};return qy.showWithinBounds(b,nd(p.dialog),{anchor:a},g),o&&u||(h$.refresh(b),t.on("ResizeEditor",h)),p.instanceApi.setData(c),nC.focusIn(p.dialog),p.instanceApi};return e0.open(l,n)},d=(o,n,a,r)=>{const i=(o,i,l)=>{const s=I1(i,l),c=Dm(),d=e.backstages.popup.shared.header.isPositionedAtTop(),u={dataValidator:l,initialData:s,internalDialog:o},m=()=>c.on(e=>{qy.reposition(e),h$.refresh(e)}),h=x1(u,{redial:e0.redial,closeWindow:()=>{c.on(qy.hide),t.off("ResizeEditor ScrollWindow ElementScroll",m),c.clear(),a(h.instanceApi)}},e.backstages.popup,r.ariaAttrs,m),p=od(qy.sketch({lazySink:e.backstages.popup.shared.getSink,dom:{tag:"div",classes:[]},fireDismissalEventInstead:r.persistent?{event:"doNotDismissYet"}:{},...d?{}:{fireRepositionEventInstead:{}},inlineBehaviours:qu([wC("window-manager-inline-events",[ql(yl(),(e,t)=>{El(h.dialog,eS)})]),h$.config({contextual:{lazyContext:()=>T.some(oa(Ze.fromDom(t.getContentAreaContainer()))),fadeInClass:"tox-dialog-dock-fadein",fadeOutClass:"tox-dialog-dock-fadeout",transitionClass:"tox-dialog-dock-transition"},modes:["top","bottom"],lazyViewport:e=>{const o=sT(t,e.element);return o.map(e=>{const t=cT(e);return{bounds:t,optScrollEnv:T.some({currentScrollTop:e.element.dom.scrollTop,scrollElmTop:Do(e.element).top})}}).getOrThunk(()=>({bounds:ia(),optScrollEnv:T.none()}))}})]),isExtraPart:(e,t)=>z1(t)}));c.set(p);const b=()=>e.backstages.popup.shared.getSink().toOptional().bind(e=>{const o=sT(t,e.element),n=15,a=o.map(e=>cT(e)).getOr(ia()),r=oa(Ze.fromDom(t.getContentAreaContainer())),i=aa(r,a);return T.some(ta(i.x,i.y,i.width,i.height-n))});return qy.showWithinBounds(p,nd(h.dialog),{anchor:n},b),h$.refresh(p),t.on("ResizeEditor ScrollWindow ElementScroll ResizeWindow",m),h.instanceApi.setData(s),nC.focusIn(h.dialog),h.instanceApi};return e0.open(i,o)},u=(e,t)=>{a.open(e,t)},m=(e,t)=>{n.open(e,t)},p=e=>{e.close()};return{open:r,openUrl:i,alert:m,close:p,confirm:u}},L1=e=>{vj(e),iD(e),WY(e)};var P1=()=>{la.add("silver",e=>{L1(e);let t=()=>ia();const{dialogs:o,popups:n,renderUI:a}=nZ(e,{getPopupSinkBounds:()=>t()}),r=()=>{const o=a(),r=sT(e,n.getMothership().element);return r.each(e=>{t=()=>cT(e)}),o};nT.register(e,n.backstage.shared);const i=M1({editor:e,backstages:{popup:n.backstage,dialog:o.backstage}}),l=()=>mj(e,{backstage:n.backstage},n.getMothership());return{renderUI:r,getWindowManagerImpl:O(i),getNotificationManagerImpl:l}})};P1()})()},"034c":function(e,t,o){},"03d8":function(e,t,o){"use strict";o.r(t);var n=o("f2bf");const a={class:"manage-container"},r={class:"manage-wrap"},i={class:"manage-input"},l={class:"manage-button"};function s(e,t,o,s,c,d){const u=Object(n["resolveComponent"])("el-option"),m=Object(n["resolveComponent"])("el-select"),h=Object(n["resolveComponent"])("el-form-item"),p=Object(n["resolveComponent"])("vab-query-form"),b=Object(n["resolveComponent"])("el-form"),g=Object(n["resolveComponent"])("el-button"),f=Object(n["resolveComponent"])("el-table-column"),v=Object(n["resolveComponent"])("el-switch"),w=Object(n["resolveComponent"])("el-table"),k=Object(n["resolveComponent"])("el-pagination"),C=Object(n["resolveComponent"])("vab-query-form-right-panel"),y=Object(n["resolveComponent"])("sensor-add"),O=Object(n["resolveDirective"])("loading");return Object(n["openBlock"])(),Object(n["createElementBlock"])("div",a,[Object(n["createElementVNode"])("div",r,[Object(n["createElementVNode"])("div",i,[Object(n["createVNode"])(b,{ref:"queryForm",model:c.queryForm,"label-width":"100px"},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(p,null,{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(h,{width:"130",prop:"sensorName",label:e.$t("sensor.cgqmc")},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(m,{modelValue:c.queryForm.sensorName,"onUpdate:modelValue":t[0]||(t[0]=e=>c.queryForm.sensorName=e),filterable:"",placeholder:e.$t("defalult.qxz")},{default:Object(n["withCtx"])(()=>[(Object(n["openBlock"])(!0),Object(n["createElementBlock"])(n["Fragment"],null,Object(n["renderList"])(c.sensorData,e=>(Object(n["openBlock"])(),Object(n["createBlock"])(u,{key:e.name,label:e.name,value:e.name},null,8,["label","value"]))),128))]),_:1},8,["modelValue","placeholder"])]),_:1},8,["label"])]),_:1})]),_:1},8,["model"])]),Object(n["createElementVNode"])("div",l,[Object(n["createVNode"])(g,{size:"small",onClick:t[1]||(t[1]=e=>d.resetForm())},{default:Object(n["withCtx"])(()=>[Object(n["createTextVNode"])(Object(n["toDisplayString"])(e.$t("defalult.chongz")),1)]),_:1}),Object(n["createVNode"])(g,{type:"primary",size:"small",onClick:d.search},{default:Object(n["withCtx"])(()=>[Object(n["createTextVNode"])(Object(n["toDisplayString"])(e.$t("defalult.cx")),1)]),_:1},8,["onClick"]),Object(n["createVNode"])(g,{type:"primary",size:"small",onClick:t[2]||(t[2]=e=>d.handleAdd())},{default:Object(n["withCtx"])(()=>[Object(n["createTextVNode"])(Object(n["toDisplayString"])(e.$t("sensor.tjcgq")),1)]),_:1})])]),Object(n["withDirectives"])((Object(n["openBlock"])(),Object(n["createBlock"])(w,{data:c.sensorData,border:"",stripe:"",style:{width:"100%"}},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(f,{prop:"id",label:"ID",width:"60",align:"center"}),Object(n["createVNode"])(f,{prop:"name",label:e.$t("sensor.cgqmc"),width:"120",align:"center"},null,8,["label"]),Object(n["createVNode"])(f,{prop:"transferId",label:e.$t("sensor.csid"),width:"120",align:"center"},null,8,["label"]),Object(n["createVNode"])(f,{prop:"addressId",label:e.$t("sensor.dz"),width:"120",align:"center"},null,8,["label"]),Object(n["createVNode"])(f,{prop:"offset",label:e.$t("sensor.jcqh"),width:"200",align:"center"},null,8,["label"]),Object(n["createVNode"])(f,{prop:"unit.dataValue",label:e.$t("sensor.dw"),width:"200",align:"center"},null,8,["label"]),Object(n["createVNode"])(f,{prop:"readWrite.dataValue",label:e.$t("sensor.dxqx"),width:"200",align:"center"},null,8,["label"]),Object(n["createVNode"])(f,{prop:"dataFormat.dataValue",label:e.$t("sensor.sjgs"),width:"200",align:"center"},null,8,["label"]),Object(n["createVNode"])(f,{prop:"status",label:e.$t("sensor.sfdtxs"),width:"120",align:"center"},{default:Object(n["withCtx"])(e=>[Object(n["createVNode"])(v,{modelValue:e.row.homeShowFlag,"onUpdate:modelValue":t=>e.row.homeShowFlag=t,"active-value":"1","inactive-value":"0",onClick:t=>d.soreStatus(e.row.homeShowFlag,e.row.id)},null,8,["modelValue","onUpdate:modelValue","onClick"])]),_:1},8,["label"]),Object(n["createVNode"])(f,{prop:"formulaUp",label:e.$t("sensor.sxgs"),width:"200",align:"center"},null,8,["label"]),Object(n["createVNode"])(f,{prop:"formulaDown",label:e.$t("sensor.xsgs"),width:"200",align:"center"},null,8,["label"]),Object(n["createVNode"])(f,{fixed:"right",label:e.$t("defalult.cz"),align:"center"},{default:Object(n["withCtx"])(({row:t})=>[Object(n["createVNode"])(g,{type:"text",onClick:e=>d.handleEdit(t)},{default:Object(n["withCtx"])(()=>[Object(n["createTextVNode"])(Object(n["toDisplayString"])(e.$t("defalult.bj")),1)]),_:2},1032,["onClick"]),Object(n["createVNode"])(g,{type:"text",onClick:e=>d.handleDelete(t)},{default:Object(n["withCtx"])(()=>[Object(n["createTextVNode"])(Object(n["toDisplayString"])(e.$t("defalult.sc")),1)]),_:2},1032,["onClick"])]),_:1},8,["label"])]),_:1},8,["data"])),[[O,c.listLoading]]),Object(n["createVNode"])(p,null,{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(C,null,{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(k,{background:c.background,"current-page":c.queryForm.page,layout:c.layout,"page-size":c.queryForm.size,total:c.total,onCurrentChange:d.handleCurrentChange,onSizeChange:d.handleSizeChange},null,8,["background","current-page","layout","page-size","total","onCurrentChange","onSizeChange"])]),_:1})]),_:1}),Object(n["createVNode"])(y,{ref:"edit"},null,512)])}var c=o("669c"),d=o("7a86"),u={name:"Index",components:{sensorAdd:d["default"]},data(){return{sensorData:[],deviceId:"",projectId:"",lazy:!0,layout:"total, sizes, prev, pager, next, jumper",total:0,background:!0,listLoading:!0,elementLoadingText:"正在加载...",queryForm:{page:1,size:20,deviceId:"",sensorName:""}}},computed:{height(){return 500}},created(){this.queryForm.deviceId=this.$route.query.deviceId,this.projectId=this.$route.query.projectId,this.fetchData()},methods:{async fetchData(){this.listLoading=!0;const{data:e}=await Object(c["getList"])(this.queryForm);this.sensorData=e.items,this.total=e.total,setTimeout(()=>{this.listLoading=!1},500)},resetForm(){this.$refs.queryForm.resetFields()},search(){this.fetchData()},async soreStatus(e,t){const{code:o,msg:n}=await Object(c["doEdit"])({homeShowFlag:e,id:t});0==o?this.$notify({title:n,type:"success"}):this.$notify.error({title:n}),this.fetchData()},handleAdd(){this.$refs["edit"].showEdit(this.queryForm.deviceId,0)},handleEdit(e){e.deviceId=this.queryForm.deviceId,this.$refs["edit"].showEdit(e,1)},handleQuery(){this.queryForm.page=1,this.fetchData()},handleSizeChange(e){this.queryForm.size=e,this.fetchData()},handleCurrentChange(e){this.queryForm.page=e,this.fetchData()},handleDelete(e){const t=this;e.id&&this.$confirm("你确定要删除当前项吗?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(()=>{const{msg:o}=Object(c["doDelete"])([e.id]);this.$message({type:"success",message:void 0==o?"删除成功":o}),setTimeout((function(){t.fetchData()}),1e3)}).catch(()=>{this.$message({type:"info",message:"已取消删除"})})}}},m=(o("1eea"),o("d959")),h=o.n(m);const p=h()(u,[["render",s],["__scopeId","data-v-6124ffa9"]]);t["default"]=p},"044c":function(e,t,o){"use strict";o("2808")},"05fe":function(e,t,o){},"06dc":function(e,t,o){"use strict";o("b1f6")},"074c":function(e,t,o){},"08cc":function(e,t,o){"use strict";o.r(t);var n=o("f2bf");const a={class:"manage-container"},r={class:"manage-wrap"},i={class:"manage-input"},l={class:"manage-button"};function s(e,t,o,s,c,d){const u=Object(n["resolveComponent"])("el-input"),m=Object(n["resolveComponent"])("el-form-item"),h=Object(n["resolveComponent"])("el-date-picker"),p=Object(n["resolveComponent"])("vab-query-form"),b=Object(n["resolveComponent"])("el-form"),g=Object(n["resolveComponent"])("el-button"),f=Object(n["resolveComponent"])("el-table-column"),v=Object(n["resolveComponent"])("el-table"),w=Object(n["resolveComponent"])("el-pagination"),k=Object(n["resolveComponent"])("vab-query-form-right-panel");return Object(n["openBlock"])(),Object(n["createElementBlock"])("div",a,[Object(n["createElementVNode"])("div",r,[Object(n["createElementVNode"])("div",i,[Object(n["createVNode"])(b,{ref:"queryForm",model:c.queryForm,"label-width":"80px"},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(p,null,{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(m,{width:"100",prop:"month",label:e.$t("dataEnquiry.zdmc")},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(u,{modelValue:c.queryForm.deviceName,"onUpdate:modelValue":t[0]||(t[0]=e=>c.queryForm.deviceName=e),size:"small",placeholder:e.$t("dataEnquiry.qsrzdmc")},null,8,["modelValue","placeholder"])]),_:1},8,["label"]),Object(n["createVNode"])(m,{width:"100",prop:"month",label:e.$t("defalult.sj")},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(h,{modelValue:c.queryForm.month,"onUpdate:modelValue":t[1]||(t[1]=e=>c.queryForm.month=e),size:"small",type:"month",placeholder:e.$t("defalult.xzrq"),onChange:d.standardToTime},null,8,["modelValue","placeholder","onChange"])]),_:1},8,["label"])]),_:1})]),_:1},8,["model"])]),Object(n["createElementVNode"])("div",l,[Object(n["createVNode"])(g,{size:"small",onClick:t[2]||(t[2]=e=>d.resetForm())},{default:Object(n["withCtx"])(()=>[Object(n["createTextVNode"])(Object(n["toDisplayString"])(e.$t("defalult.chongz")),1)]),_:1}),Object(n["createVNode"])(g,{type:"primary",size:"small",onClick:d.search},{default:Object(n["withCtx"])(()=>[Object(n["createTextVNode"])(Object(n["toDisplayString"])(e.$t("defalult.cx")),1)]),_:1},8,["onClick"])])]),Object(n["createVNode"])(v,{ref:"multipleTable",data:c.reportData,border:"","tooltip-effect":"light"},{default:Object(n["withCtx"])(()=>[(Object(n["openBlock"])(!0),Object(n["createElementBlock"])(n["Fragment"],null,Object(n["renderList"])(c.headerData,(e,t)=>(Object(n["openBlock"])(),Object(n["createBlock"])(f,{key:Math.random(t),label:e,prop:e,align:"center",width:"150"},null,8,["label","prop"]))),128))]),_:1},8,["data"]),Object(n["createVNode"])(p,null,{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(k,null,{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(w,{background:c.background,"current-page":c.queryForm.page,layout:c.layout,"page-size":c.queryForm.size,total:c.total,onCurrentChange:d.handleCurrentChange,onSizeChange:d.handleSizeChange},null,8,["background","current-page","layout","page-size","total","onCurrentChange","onSizeChange"])]),_:1})]),_:1})])}o("14d9");var c=o("94b0"),d={name:"Index",components:{},data(){return{reportData:[],headerData:{},lazy:!0,activeName:"first",layout:"total, sizes, prev, pager, next, jumper",total:0,input:"",textarea:"",background:!0,listLoading:!0,elementLoadingText:"正在加载...",queryForm:{page:1,size:20,month:"",projectId:"",deviceName:""}}},computed:{height(){return 500}},created(){this.setDefaultTime(),this.queryForm.projectId=sessionStorage.getItem("projectId"),setTimeout(()=>{this.fetchData()},1e3)},methods:{getDate(e=""){var t=new Date;""!=e&&(t=new Date(e));const o=t.getFullYear();let n=t.getMonth();return n+=1,n=n.toString().padStart(2,"0"),`${o}-${n}`},standardToTime(){this.queryForm.month=this.getDate(this.queryForm.month)},setDefaultTime(){this.queryForm.month=this.getDate()},async fetchData(){this.listLoading=!0;const{data:e}=await Object(c["monthlyReport"])(this.queryForm),t=e.items;for(var o=[],n=0;n<t.length;n++)o.push(t[n]);this.reportData=e.items,this.headerData=Object.keys(o[0]),this.total=e.total,setTimeout(()=>{this.listLoading=!1},500)},showData(){this.setDefaultTime(),this.queryForm.projectId=sessionStorage.getItem("projectId"),setTimeout(()=>{this.fetchData()},1e3)},search(){this.fetchData()},resetForm(){this.$refs.queryForm.resetFields()},handleAdd(){this.$refs["edit"].showEdit()},handleEdit(e){this.$refs["edit"].showEdit(e)},handleQuery(){this.queryForm.page=1,this.fetchData()},handleSizeChange(e){this.queryForm.size=e,this.fetchData()},handleCurrentChange(e){this.queryForm.page=e,this.fetchData()}}},u=(o("413f"),o("d959")),m=o.n(u);const h=m()(d,[["render",s],["__scopeId","data-v-85131cfc"]]);t["default"]=h},"092a":function(e,t,o){"use strict";o("5972")},"093a":function(e,t,o){"use strict";o.r(t),o.d(t,"getList",(function(){return a})),o.d(t,"getLiveAddr",(function(){return r}));var n=o("b775");function a(e){return Object(n["default"])({url:"/video/devices?projectId="+e.projectId,method:"get",data:e})}function r(e){return Object(n["default"])({url:"/video/getLiveAddr?account="+e.account+"&deviceSerial="+e.deviceSerial,method:"get",data:e})}},"09de":function(e,t,o){"use strict";o.r(t);var n=o("f2bf");const a={class:"manage-container"};function r(e,t,o,r,i,l){const s=Object(n["resolveComponent"])("current-data"),c=Object(n["resolveComponent"])("el-tab-pane"),d=Object(n["resolveComponent"])("history-data"),u=Object(n["resolveComponent"])("el-tabs");return Object(n["openBlock"])(),Object(n["createElementBlock"])("div",a,[Object(n["createVNode"])(u,{modelValue:i.activeName,"onUpdate:modelValue":t[0]||(t[0]=e=>i.activeName=e),onTabClick:l.handleClick},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(c,{label:"当前数据",name:"first"},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(s,{ref:"current"},null,512)]),_:1}),Object(n["createVNode"])(c,{label:"历史数据",name:"second"},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(d,{ref:"history"},null,512)]),_:1})]),_:1},8,["modelValue","onTabClick"])])}var i=o("1134"),l=o("3f8d"),s={components:{currentData:i["default"],historyData:l["default"]},data(){return{activeName:"first",dataKey:"",startDate:"",queryForm:{page:1,size:200,dataKey:"",deviceCode:"",start:"",end:""}}},computed:{height(){return 500}},created(){this.queryForm.dataKey=this.$route.query.dataKey,this.queryForm.deviceCode=this.$route.query.deviceCode},methods:{handleClick(e,t){console.log(e,t),"second"==e.paneName?this.$refs["history"].showData({dataKey:this.queryForm.dataKey,deviceCode:this.queryForm.deviceCode}):this.$refs["current"].showData({dataKey:this.queryForm.dataKey,deviceCode:this.queryForm.deviceCode})}}},c=(o("d9ff"),o("d959")),d=o.n(c);const u=d()(s,[["render",r],["__scopeId","data-v-7cc180e4"]]);t["default"]=u},"0a11":function(e,t,o){"use strict";o("6d3a")},"0a9d":function(e,t,o){o("69a4")},"0add":function(e,t,o){"use strict";o("d4fe")},"0b6a":function(e,t,o){"use strict";o("65bf")},"0b9b":function(e,t,o){"use strict";o.r(t);var n=o("f2bf");const a={class:"dialog-footer"};function r(e,t,o,r,i,l){const s=Object(n["resolveComponent"])("el-input"),c=Object(n["resolveComponent"])("el-form-item"),d=Object(n["resolveComponent"])("el-option"),u=Object(n["resolveComponent"])("el-select"),m=Object(n["resolveComponent"])("ckeditor"),h=Object(n["resolveComponent"])("el-button"),p=Object(n["resolveComponent"])("el-form"),b=Object(n["resolveComponent"])("select-data"),g=Object(n["resolveComponent"])("el-dialog");return Object(n["openBlock"])(),Object(n["createBlock"])(g,{modelValue:i.dialogFormVisible,"onUpdate:modelValue":t[6]||(t[6]=e=>i.dialogFormVisible=e),title:i.title,width:"500px",onClose:l.close},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(p,{ref:"form",model:i.form,"label-width":"80px","label-position":"left"},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(c,{label:"关键词",prop:"keyword"},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(s,{modelValue:i.form.keyword,"onUpdate:modelValue":t[0]||(t[0]=e=>i.form.keyword=e),size:"small",placeholder:"关键词"},null,8,["modelValue"])]),_:1}),Object(n["createVNode"])(c,{label:"匹配类型"},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(u,{modelValue:i.form.matchType,"onUpdate:modelValue":t[1]||(t[1]=e=>i.form.matchType=e),filterable:"",placeholder:"匹配类型"},{default:Object(n["withCtx"])(()=>[(Object(n["openBlock"])(!0),Object(n["createElementBlock"])(n["Fragment"],null,Object(n["renderList"])(i.matchTypeData,e=>(Object(n["openBlock"])(),Object(n["createBlock"])(d,{key:e.dataCode,label:e.dataValue,value:e.dataCode},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),Object(n["createVNode"])(c,{label:"消息类型"},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(u,{modelValue:i.form.msgType,"onUpdate:modelValue":t[2]||(t[2]=e=>i.form.msgType=e),size:"small",filterable:"",placeholder:"消息类型",onChange:l.changeMsgType},{default:Object(n["withCtx"])(()=>[(Object(n["openBlock"])(!0),Object(n["createElementBlock"])(n["Fragment"],null,Object(n["renderList"])(i.msgTypeData,e=>(Object(n["openBlock"])(),Object(n["createBlock"])(d,{key:e.dataCode,label:e.dataValue,value:e.dataCode},null,8,["label","value"]))),128))]),_:1},8,["modelValue","onChange"])]),_:1}),i.isMaterial?(Object(n["openBlock"])(),Object(n["createBlock"])(c,{key:0,label:"素材类型",prop:"materialType"},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(u,{modelValue:i.form.materialType,"onUpdate:modelValue":t[3]||(t[3]=e=>i.form.materialType=e),size:"small",filterable:"",placeholder:"素材类型"},{default:Object(n["withCtx"])(()=>[(Object(n["openBlock"])(!0),Object(n["createElementBlock"])(n["Fragment"],null,Object(n["renderList"])(i.typeData,e=>(Object(n["openBlock"])(),Object(n["createBlock"])(d,{key:e.dataCode,label:e.dataValue,value:e.dataCode},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1})):Object(n["createCommentVNode"])("",!0),i.isText?(Object(n["openBlock"])(),Object(n["createBlock"])(c,{key:1,label:"文本内容",prop:"textContent"},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(m,{modelValue:i.form.textContent,"onUpdate:modelValue":t[4]||(t[4]=e=>i.form.textContent=e),size:"small",editor:i.editor,config:i.editorConfig},null,8,["modelValue","editor","config"])]),_:1})):Object(n["createCommentVNode"])("",!0),i.isMaterial?(Object(n["openBlock"])(),Object(n["createBlock"])(c,{key:2,label:"选择素材",prop:"mediaId"},{default:Object(n["withCtx"])(()=>[Object(n["createElementVNode"])("p",null,"已选择素材:"+Object(n["toDisplayString"])(i.form.mediaId),1),Object(n["createVNode"])(h,{type:"primary",size:"mini",onClick:t[5]||(t[5]=e=>l.showData())},{default:Object(n["withCtx"])(()=>t[7]||(t[7]=[Object(n["createTextVNode"])(" 选择素材 ")])),_:1})]),_:1})):Object(n["createCommentVNode"])("",!0)]),_:1},8,["model"]),Object(n["createElementVNode"])("div",a,[Object(n["createVNode"])(h,{type:"primary",size:"small",onClick:l.save},{default:Object(n["withCtx"])(()=>t[8]||(t[8]=[Object(n["createTextVNode"])("确 定")])),_:1},8,["onClick"]),Object(n["createVNode"])(h,{size:"small",onClick:l.close},{default:Object(n["withCtx"])(()=>t[9]||(t[9]=[Object(n["createTextVNode"])("取 消")])),_:1},8,["onClick"])]),Object(n["createVNode"])(b,{ref:"select",onGetMaterialId:l.getMaterialId},null,8,["onGetMaterialId"])]),_:1},8,["modelValue","title","onClose"])}var i=o("4cfb"),l=o("3cf5"),s=o("c471"),c=o.n(s),d=(o("cd6d"),o("5847")),u=o("cf45"),m={components:{selectData:l["default"]},data(){return{form:{id:"",keyword:"",matchType:"",msgType:"",textContent:"",materialType:"",mediaId:""},clearable:!0,title:"",dialogFormVisible:!1,isText:!1,isMaterial:!1,matchTypeData:[],msgTypeData:[],typeData:[],editor:c.a,editorConfig:d["knowledgeEditorConfig"]}},created(){},methods:{showEdit(e){if(e){this.title="编辑关键词回复";const t=Object.assign({},e);this.form.id=t.id,this.form.keyword=t.keyword,""!=t.matchType&&null!=t.matchType&&(this.form.matchType=t.matchType.dataCode),""!=t.msgType&&null!=t.msgType&&(this.form.msgType=t.msgType.dataCode,this.MaterialOrText(this.form.msgType)),null!=t.materialType&&""!=t.materialType&&(this.form.materialType=t.materialType.dataCode),this.form.textContent=t.textContent}else this.title="添加关键词回复";this.dialogFormVisible=!0,this.getMaterialMsgTypeData(),this.getMaterialTypeData(),this.getMatchTypeData()},getMaterialId(e){this.form.mediaId=e},showData(){this.$refs["select"].selectData()},changeMsgType(){this.$refs["form"].resetFields(),this.MaterialOrText(this.form.msgType)},MaterialOrText(e){"material"==e?(this.isMaterial=!0,this.isText=!1):(this.isMaterial=!1,this.isText=!0)},async getMaterialMsgTypeData(){const{data:e}=await Object(i["getMaterialMsgType"])();this.msgTypeData=e},async getMatchTypeData(){const{data:e}=await Object(i["getMatchType"])();this.matchTypeData=e},async getMaterialTypeData(){const{data:e}=await Object(i["getMaterialType"])();this.typeData=e},close(){this.$refs["form"].resetFields(),this.form=this.$options.data().form,this.dialogFormVisible=!1,this.$emit("fetch-data")},save(){this.$refs["form"].validate(async e=>{if(!e)return!1;if(this.form.id){this.form.textContent=Object(u["delHtmlTag"])(this.form.textContent);const{msg:e}=await Object(i["keywordReplyEdit"])(this.form);this.$notify({title:e,type:"success"})}else{delete this.form.id;const{msg:e}=await Object(i["keywordReplyAdd"])(this.form);this.$notify({title:e,type:"success"})}this.$refs["form"].resetFields(),this.$parent.fetchData(),this.dialogFormVisible=!1})}}},h=(o("8718"),o("d959")),p=o.n(h);const b=p()(m,[["render",r]]);t["default"]=b},"0d10":function(e,t,o){"use strict";o("7943")},"0d18":function(e,t,o){"use strict";o("a5da")},"0d68":function(e,t,o){o("030f")},"0da4":function(e,t,o){"use strict";o.r(t);var n=o("f2bf");const a={class:"dialog-footer"};function r(e,t,o,r,i,l){const s=Object(n["resolveComponent"])("el-option"),c=Object(n["resolveComponent"])("el-select"),d=Object(n["resolveComponent"])("el-form-item"),u=Object(n["resolveComponent"])("ckeditor"),m=Object(n["resolveComponent"])("el-button"),h=Object(n["resolveComponent"])("el-form"),p=Object(n["resolveComponent"])("select-data"),b=Object(n["resolveComponent"])("el-dialog");return Object(n["openBlock"])(),Object(n["createBlock"])(b,{modelValue:i.dialogFormVisible,"onUpdate:modelValue":t[4]||(t[4]=e=>i.dialogFormVisible=e),title:i.title,width:"1500px",onClose:l.close},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(h,{ref:"form",model:i.form,"label-width":"80px","label-position":"left"},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(d,{label:"消息类型"},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(c,{modelValue:i.form.msgType,"onUpdate:modelValue":t[0]||(t[0]=e=>i.form.msgType=e),filterable:"",placeholder:"消息类型",onChange:l.changeMsgType},{default:Object(n["withCtx"])(()=>[(Object(n["openBlock"])(!0),Object(n["createElementBlock"])(n["Fragment"],null,Object(n["renderList"])(i.msgTypeData,e=>(Object(n["openBlock"])(),Object(n["createBlock"])(s,{key:e.dataCode,label:e.dataValue,value:e.dataCode},null,8,["label","value"]))),128))]),_:1},8,["modelValue","onChange"])]),_:1}),i.isMaterial?(Object(n["openBlock"])(),Object(n["createBlock"])(d,{key:0,label:"素材类型",prop:"materialType"},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(c,{modelValue:i.form.materialType,"onUpdate:modelValue":t[1]||(t[1]=e=>i.form.materialType=e),filterable:"",placeholder:"素材类型"},{default:Object(n["withCtx"])(()=>[(Object(n["openBlock"])(!0),Object(n["createElementBlock"])(n["Fragment"],null,Object(n["renderList"])(i.typeData,e=>(Object(n["openBlock"])(),Object(n["createBlock"])(s,{key:e.dataCode,label:e.dataValue,value:e.dataCode},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1})):Object(n["createCommentVNode"])("",!0),i.isText?(Object(n["openBlock"])(),Object(n["createBlock"])(d,{key:1,label:"文本内容",prop:"textContent"},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(u,{modelValue:i.form.textContent,"onUpdate:modelValue":t[2]||(t[2]=e=>i.form.textContent=e),size:"small",editor:i.editor,config:i.editorConfig},null,8,["modelValue","editor","config"])]),_:1})):Object(n["createCommentVNode"])("",!0),i.isMaterial?(Object(n["openBlock"])(),Object(n["createBlock"])(d,{key:2,label:"选择素材",prop:"mediaId"},{default:Object(n["withCtx"])(()=>[Object(n["createElementVNode"])("p",null,"已选择素材:"+Object(n["toDisplayString"])(i.form.mediaId),1),Object(n["createVNode"])(m,{type:"primary",size:"mini",onClick:t[3]||(t[3]=e=>l.showData())},{default:Object(n["withCtx"])(()=>t[5]||(t[5]=[Object(n["createTextVNode"])(" 选择素材 ")])),_:1})]),_:1})):Object(n["createCommentVNode"])("",!0)]),_:1},8,["model"]),Object(n["createElementVNode"])("div",a,[Object(n["createVNode"])(m,{onClick:l.close},{default:Object(n["withCtx"])(()=>t[6]||(t[6]=[Object(n["createTextVNode"])("取 消")])),_:1},8,["onClick"]),Object(n["createVNode"])(m,{type:"primary",onClick:l.save},{default:Object(n["withCtx"])(()=>t[7]||(t[7]=[Object(n["createTextVNode"])("确 定")])),_:1},8,["onClick"])]),Object(n["createVNode"])(p,{ref:"select",onGetMaterialId:l.getMaterialId},null,8,["onGetMaterialId"])]),_:1},8,["modelValue","title","onClose"])}var i=o("3cf5"),l=o("4cfb"),s=o("c471"),c=o.n(s),d=(o("cd6d"),o("5847")),u={components:{selectData:i["default"]},data(){return{form:{id:"",mediaId:"",msgType:"",textContent:"",materialType:""},clearable:!0,title:"",editor:c.a,editorConfig:d["knowledgeEditorConfig"],dialogFormVisible:!1,msgTypeData:[],typeData:[],isMaterial:!1,isText:!1}},created(){},methods:{showEdit(e){if(e){this.title="编辑";const t=Object.assign({},e);this.form=t}else this.title="添加";this.dialogFormVisible=!0,this.projectId=sessionStorage.getItem("projectId"),this.getMaterialTypeData(),this.getMaterialMsgTypeData()},changeMsgType(){this.$refs["form"].resetFields(),"material"==this.form.msgType?(this.isMaterial=!0,this.isText=!1):(this.isMaterial=!1,this.isText=!0)},showData(){this.$refs["select"].selectData()},async getMaterialMsgTypeData(){const{data:e}=await Object(l["getMaterialMsgType"])();this.msgTypeData=e},async getMaterialTypeData(){const{data:e}=await Object(l["getMaterialType"])();this.typeData=e},close(){this.$refs["form"].resetFields(),this.form=this.$options.data().form,this.dialogFormVisible=!1,this.$emit("fetch-data")},getMaterialId(e){this.form.mediaId=e},save(){this.$refs["form"].validate(async e=>{if(!e)return!1;{const{msg:e}=await Object(l["materialSaveOrUpdate"])(this.form);this.$notify({title:e,type:"success"}),this.$refs["form"].resetFields(),this.$parent.fetchData(),this.dialogFormVisible=!1}})}}},m=(o("45a7"),o("d959")),h=o.n(m);const p=h()(u,[["render",r]]);t["default"]=p},"0dbc":function(e,t,o){"use strict";o.r(t);var n=o("f2bf");const a={class:"manage-container"};function r(e,t,o,r,i,l){const s=Object(n["resolveComponent"])("apply"),c=Object(n["resolveComponent"])("el-tab-pane"),d=Object(n["resolveComponent"])("testing"),u=Object(n["resolveComponent"])("el-tabs");return Object(n["openBlock"])(),Object(n["createElementBlock"])("div",a,[Object(n["createVNode"])(u,{modelValue:i.activeName,"onUpdate:modelValue":t[0]||(t[0]=e=>i.activeName=e),onTabClick:l.handleClick},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(c,{label:e.$t("apply.szsq"),name:"first"},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(s,{ref:"apply"},null,512)]),_:1},8,["label"]),Object(n["createVNode"])(c,{label:e.$t("apply.szqc"),name:"second"},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(d,{ref:"testing"},null,512)]),_:1},8,["label"])]),_:1},8,["modelValue","onTabClick"])])}var i=o("e3da"),l=o("1688"),s={components:{apply:i["default"],testing:l["default"]},data(){return{activeName:"first"}},methods:{handleClick(e,t){"first"==e.paneName?this.$refs["apply"].applyIndex():"second"==e.paneName&&this.$refs["testing"].testingIndex()}}},c=(o("959f"),o("d959")),d=o.n(c);const u=d()(s,[["render",r]]);t["default"]=u},"0ddc":function(e,t,o){"use strict";o.r(t),o.d(t,"getList",(function(){return a})),o.d(t,"doEdit",(function(){return r})),o.d(t,"doDelete",(function(){return i})),o.d(t,"doAdd",(function(){return l})),o.d(t,"selectDeviceInfo",(function(){return s})),o.d(t,"insertDictData",(function(){return c})),o.d(t,"updateDictData",(function(){return d})),o.d(t,"removeDictData",(function(){return u}));var n=o("b775");function a(e){const t="?page="+e.page+"&size="+e.size;return Object(n["default"])({url:"/sysDict/select"+t,method:"get",data:e})}function r(e){return Object(n["default"])({url:"/sysDict/updateDictType",method:"post",data:e})}function i(e){return Object(n["default"])({url:"/sysDict/removeDictType?dictTypeId="+e.dictTypeId,method:"post",data:e})}function l(e){return Object(n["default"])({url:"/sysDict/insertDictType",method:"post",data:e})}function s(e){return Object(n["default"])({url:"/iot/device/selectDeviceInfo?deviceId="+e.deviceId,method:"post",data:e})}function c(e){return Object(n["default"])({url:"/sysDict/insertDictData",method:"post",data:e})}function d(e){return Object(n["default"])({url:"/sysDict/updateDictData",method:"post",data:e})}function u(e){return Object(n["default"])({url:"/sysDict/removeDictData?dictDataId="+e.dictDataId,method:"post",data:e})}},"0e0f":function(e,t,o){},"0e2e":function(e,t,o){"use strict";o("cc25")},"0f0e":function(e,t,o){e.exports=o.p+"static/img/position.604162ba.gif"},"0f8a":function(e,t,o){"use strict";o.r(t);var n=o("f2bf");const a={class:"manage-container"},r={class:"manage-wrap"},i={class:"manage-input"},l={class:"manage-button"};function s(e,t,o,s,c,d){const u=Object(n["resolveComponent"])("el-input"),m=Object(n["resolveComponent"])("el-form-item"),h=Object(n["resolveComponent"])("el-date-picker"),p=Object(n["resolveComponent"])("vab-query-form"),b=Object(n["resolveComponent"])("el-form"),g=Object(n["resolveComponent"])("el-button"),f=Object(n["resolveComponent"])("el-table-column"),v=Object(n["resolveComponent"])("el-table"),w=Object(n["resolveComponent"])("el-pagination"),k=Object(n["resolveComponent"])("water-graph"),C=Object(n["resolveDirective"])("loading");return Object(n["openBlock"])(),Object(n["createElementBlock"])("div",a,[Object(n["createElementVNode"])("div",r,[Object(n["createElementVNode"])("div",i,[Object(n["createVNode"])(b,{ref:"queryForm",model:c.queryForm,"label-width":"80px"},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(p,null,{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(m,{width:"100",prop:"deviceName",label:e.$t("dataEnquiry.zdmc")},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(u,{modelValue:c.queryForm.deviceName,"onUpdate:modelValue":t[0]||(t[0]=e=>c.queryForm.deviceName=e),size:"small",placeholder:e.$t("dataEnquiry.qsrzdmc")},null,8,["modelValue","placeholder"])]),_:1},8,["label"]),Object(n["createVNode"])(m,{width:"100",prop:"year",label:e.$t("dfunction.xzsj")},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(h,{modelValue:c.queryForm.year,"onUpdate:modelValue":t[1]||(t[1]=e=>c.queryForm.year=e),size:"small",type:"year",placeholder:e.$t("dfunction.xzsj"),onChange:d.standardToTime},null,8,["modelValue","placeholder","onChange"])]),_:1},8,["label"])]),_:1})]),_:1},8,["model"])]),Object(n["createElementVNode"])("div",l,[Object(n["createVNode"])(g,{size:"small",onClick:t[2]||(t[2]=e=>d.resetForm())},{default:Object(n["withCtx"])(()=>[Object(n["createTextVNode"])(Object(n["toDisplayString"])(e.$t("defalult.chongz")),1)]),_:1}),Object(n["createVNode"])(g,{type:"primary",size:"small",onClick:d.search},{default:Object(n["withCtx"])(()=>[Object(n["createTextVNode"])(Object(n["toDisplayString"])(e.$t("defalult.cx")),1)]),_:1},8,["onClick"]),Object(n["createVNode"])(g,{type:"primary",size:"small",onClick:d.exportData},{default:Object(n["withCtx"])(()=>[Object(n["createTextVNode"])(Object(n["toDisplayString"])(e.$t("defalult.dc")),1)]),_:1},8,["onClick"])])]),Object(n["withDirectives"])((Object(n["openBlock"])(),Object(n["createBlock"])(v,{ref:"multipleTable",data:c.reportData,border:"","tooltip-effect":"light",style:{width:"100%"}},{default:Object(n["withCtx"])(()=>[(Object(n["openBlock"])(!0),Object(n["createElementBlock"])(n["Fragment"],null,Object(n["renderList"])(c.headerData,(e,t)=>(Object(n["openBlock"])(),Object(n["createBlock"])(f,{key:t,label:e,prop:e,fixed:"站点名称"==e,align:"center",width:"150"},null,8,["label","prop","fixed"]))),128)),Object(n["createVNode"])(f,{fixed:"right",label:e.$t("defalult.cz"),align:"center"},{default:Object(n["withCtx"])(({row:t})=>[Object(n["createVNode"])(g,{type:"text",onClick:e=>d.graph(t)},{default:Object(n["withCtx"])(()=>[Object(n["createTextVNode"])(Object(n["toDisplayString"])(e.$t("dfunction.qxt")),1)]),_:2},1032,["onClick"])]),_:1},8,["label"])]),_:1},8,["data"])),[[C,c.listLoading]]),Object(n["createVNode"])(w,{background:c.background,"current-page":c.queryForm.page,layout:c.layout,"page-size":c.queryForm.size,total:c.total,style:{"text-align":"right"},onCurrentChange:d.handleCurrentChange,onSizeChange:d.handleSizeChange},null,8,["background","current-page","layout","page-size","total","onCurrentChange","onSizeChange"]),Object(n["createVNode"])(k,{ref:"water"},null,512)])}o("14d9");var c=o("94b0"),d=o("3038"),u=o("5f99"),m=o("4b95"),h={name:"Index",components:{waterGraph:m["default"]},data(){return{reportData:[],headerData:{},lazy:!0,activeName:"first",layout:"total, sizes, prev, pager, next, jumper",total:0,input:"",textarea:"",background:!0,listLoading:!0,elementLoadingText:"正在加载...",queryForm:{page:1,size:20,year:"",projectId:"",deviceName:""}}},computed:{height(){return 500}},created(){},methods:{graph(e){this.$refs["water"].showData(e)},standardToTime(){this.queryForm.year=Object(u["getDate2"])(this.queryForm.year)},setDefaultTime(){this.queryForm.year=Object(u["getDate2"])()},async exportData(){const e=await Object(c["elecMonthExport"])(this.queryForm);d["default"].downloadFile(e,{fileName:"电量月报.xls"})},async fetchData(){this.listLoading=!0;const{data:e}=await Object(c["elecMonth"])(this.queryForm),t=e.items;for(var o=[],n=0;n<t.length;n++)o.push(t[n]);this.reportData=e.items,this.headerData=Object.keys(o[0]),this.total=e.total,setTimeout(()=>{this.listLoading=!1},500)},showData(){this.setDefaultTime(),this.queryForm.projectId=sessionStorage.getItem("projectId"),setTimeout(()=>{this.fetchData()},1e3)},search(){this.fetchData()},resetForm(){this.$refs.queryForm.resetFields()},handleAdd(){this.$refs["edit"].showEdit()},handleEdit(e){this.$refs["edit"].showEdit(e)},handleQuery(){this.queryForm.page=1,this.fetchData()},handleSizeChange(e){this.queryForm.size=e,this.fetchData()},handleCurrentChange(e){this.queryForm.page=e,this.fetchData()}}},p=(o("1554"),o("d959")),b=o.n(p);const g=b()(h,[["render",s],["__scopeId","data-v-610231d2"]]);t["default"]=g},"0fbe":function(e,t,o){"use strict";o.r(t);var n=o("f2bf");const a=["id"];function r(e,t,o,r,i,l){return Object(n["openBlock"])(),Object(n["createElementBlock"])("div",{id:o.perfectId,style:{width:"100%",height:"230px"}},null,8,a)}var i=o("313e"),l={props:{rate:{type:Number},all:{type:Number},name:{type:String},perfectId:{type:String},color:{type:String}},data(){return{chartPie:null,data:[]}},watch:{rate(e){this.drawCharts()}},mounted:function(){this.drawCharts()},methods:{drawPieChart(){const e=[{value:8,perfect:0,name:"Perfect",title:{offsetCenter:["0%","-16%"]},detail:{valueAnimation:!0,offsetCenter:["0%","20%"]}}];let t={series:[{type:"gauge",startAngle:90,endAngle:-270,pointer:{show:!1},color:this.color,progress:{show:!0,overlap:!1,roundCap:!0,clip:!1,itemStyle:{borderWidth:1,borderColor:this.color}},axisLine:{lineStyle:{width:10}},splitLine:{show:!1,distance:0,length:10},axisTick:{show:!1},axisLabel:{show:!1,distance:50},data:e,title:{fontSize:14},detail:{width:50,height:14,fontSize:14,color:"inherit",borderColor:"inherit",borderRadius:20,borderWidth:1,formatter:"{value}%"}}]};e[0].value=parseFloat((this.rate/this.all*100).toFixed(2)),e[0].name=this.name+""+this.rate,this.chartPie=i["a"](document.getElementById(this.perfectId)),this.chartPie.setOption({series:[{data:e,pointer:{show:!1}}]}),t&&this.chartPie.setOption(t)},drawCharts(){this.drawPieChart()}}},s=o("d959"),c=o.n(s);const d=c()(l,[["render",r]]);t["default"]=d},"0fea":function(e,t,o){"use strict";o.r(t),o.d(t,"getList",(function(){return r})),o.d(t,"doEdit",(function(){return i})),o.d(t,"doDelete",(function(){return l})),o.d(t,"doAdd",(function(){return s})),o.d(t,"getProjectIdByUserId",(function(){return c})),o.d(t,"assignRole",(function(){return d})),o.d(t,"assignProject",(function(){return u})),o.d(t,"assignMiniRole",(function(){return m})),o.d(t,"getAllProjects",(function(){return h}));var n=o("b775"),a=o("7d92");function r(e){let t="?page="+e.page+"&size="+e.size;return""!=e.userName&&(t+="&userName="+e.userName),""!=e.nickName&&(t+="&nickName="+e.nickName),""!=e.phone&&(t+="&phone="+e.phone),""!=e.email&&(t+="&email="+e.email),""!=e.deptId&&(t+="&deptId="+e.deptId),Object(n["default"])({url:"/sysUser/select"+t,method:"get",data:e})}async function i(e){return null!=e.password&&(e.password=await Object(a["encrypt"])(e.password)),Object(n["default"])({url:"/sysUser/update",method:"post",data:e})}function l(e){return Object(n["default"])({url:"/sysUser/remove",method:"post",data:e})}async function s(e){return""!=e.password&&(e.password=await Object(a["encrypt"])(e.password)),Object(n["default"])({url:"/sysUser/insert",method:"post",data:e})}function c(e){return Object(n["default"])({url:"/sysUser/getProjectIdByUserId?userId="+e.userId,method:"get",data:e})}function d(e){return Object(n["default"])({url:"/sysUser/assignRole",method:"post",data:e})}function u(e){return Object(n["default"])({url:"/sysUser/assignProject",method:"post",data:e})}function m(e){return Object(n["default"])({url:"/sysUser/assignMiniRole",method:"post",data:e})}function h(e){return Object(n["default"])({url:"/sysUser/getAllProjects",method:"get"})}},"0ff1":function(e,t,o){"use strict";o.r(t);var n=o("f2bf");const a={class:"manage-container"},r={class:"manage-input"},i={class:"manage-button"};function l(e,t,o,l,s,c){const d=Object(n["resolveComponent"])("el-input"),u=Object(n["resolveComponent"])("el-form-item"),m=Object(n["resolveComponent"])("el-date-picker"),h=Object(n["resolveComponent"])("vab-query-form"),p=Object(n["resolveComponent"])("el-form"),b=Object(n["resolveComponent"])("el-button"),g=Object(n["resolveComponent"])("el-table-column"),f=Object(n["resolveComponent"])("el-table"),v=Object(n["resolveComponent"])("el-pagination"),w=Object(n["resolveComponent"])("filling-detail");return Object(n["openBlock"])(),Object(n["createElementBlock"])("div",a,[Object(n["createElementVNode"])("div",r,[Object(n["createVNode"])(p,{ref:"queryForm",model:s.queryForm,"label-width":"80px"},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(h,null,{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(u,{width:"100",prop:"deviceName",label:e.$t("dataEnquiry.zdmc")},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(d,{modelValue:s.queryForm.deviceName,"onUpdate:modelValue":t[0]||(t[0]=e=>s.queryForm.deviceName=e),size:"small",placeholder:e.$t("dataEnquiry.qsrzdmc")},null,8,["modelValue","placeholder"])]),_:1},8,["label"]),Object(n["createVNode"])(u,{width:"100",prop:"inspectorName",label:e.$t("filling.xjr")},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(d,{modelValue:s.queryForm.inspectorName,"onUpdate:modelValue":t[1]||(t[1]=e=>s.queryForm.inspectorName=e),size:"small",placeholder:"请输入巡检人姓名"},null,8,["modelValue"])]),_:1},8,["label"]),Object(n["createVNode"])(u,{width:"100",prop:"date",label:e.$t("defalult.rq")},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(m,{modelValue:s.queryForm.date,"onUpdate:modelValue":t[2]||(t[2]=e=>s.queryForm.date=e),size:"small",type:"date",placeholder:e.$t("defalult.xzrq")},null,8,["modelValue","placeholder"])]),_:1},8,["label"])]),_:1})]),_:1},8,["model"])]),Object(n["createElementVNode"])("div",i,[Object(n["createVNode"])(b,{size:"small",onClick:t[3]||(t[3]=e=>c.resetForm())},{default:Object(n["withCtx"])(()=>[Object(n["createTextVNode"])(Object(n["toDisplayString"])(e.$t("defalult.chongz")),1)]),_:1}),Object(n["createVNode"])(b,{type:"primary",size:"small",onClick:c.search},{default:Object(n["withCtx"])(()=>[Object(n["createTextVNode"])(Object(n["toDisplayString"])(e.$t("defalult.cx")),1)]),_:1},8,["onClick"]),Object(n["createVNode"])(b,{type:"primary",size:"small",onClick:c.exportData},{default:Object(n["withCtx"])(()=>[Object(n["createTextVNode"])(Object(n["toDisplayString"])(e.$t("defalult.dc")),1)]),_:1},8,["onClick"]),Object(n["createVNode"])(b,{type:"primary",size:"small",onClick:c.deletes},{default:Object(n["withCtx"])(()=>[Object(n["createTextVNode"])(Object(n["toDisplayString"])(e.$t("defalult.plsc")),1)]),_:1},8,["onClick"])]),Object(n["createVNode"])(f,{data:s.tableData,stripe:"",border:"",style:{width:"100%"},onSelectionChange:c.handleSelectionChange},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(g,{fixed:"",type:"selection",width:"60",align:"center"}),Object(n["createVNode"])(g,{fixed:"",prop:"deviceName",label:e.$t("dataEnquiry.zdmc"),width:"350",align:"center"},null,8,["label"]),Object(n["createVNode"])(g,{fixed:"",prop:"time",label:e.$t("filling.xjsj"),width:"250",align:"center"},null,8,["label"]),Object(n["createVNode"])(g,{prop:"inspector",label:e.$t("filling.xjr"),width:"150",align:"center"},null,8,["label"]),Object(n["createVNode"])(g,{label:e.$t("defalult.cz"),align:"center"},{default:Object(n["withCtx"])(({row:t})=>[Object(n["createVNode"])(b,{type:"text",onClick:e=>c.showDetail(t)},{default:Object(n["withCtx"])(()=>[Object(n["createTextVNode"])(Object(n["toDisplayString"])(e.$t("defalult.xq")),1)]),_:2},1032,["onClick"]),Object(n["createVNode"])(b,{type:"text",onClick:e=>c.handleDelete(t)},{default:Object(n["withCtx"])(()=>[Object(n["createTextVNode"])(Object(n["toDisplayString"])(e.$t("defalult.sc")),1)]),_:2},1032,["onClick"])]),_:1},8,["label"])]),_:1},8,["data","onSelectionChange"]),Object(n["createVNode"])(v,{background:s.background,"current-page":s.queryForm.page,layout:s.layout,"page-size":s.queryForm.size,total:s.total,style:{"text-align":"right"},onCurrentChange:c.handleCurrentChange,onSizeChange:c.handleSizeChange},null,8,["background","current-page","layout","page-size","total","onCurrentChange","onSizeChange"]),Object(n["createVNode"])(w,{ref:"detail"},null,512)])}o("14d9");var s=o("1b0a"),c=o("4579"),d=o("3038"),u={components:{fillingDetail:c["default"]},data(){return{tableData:[],gridData:[],dictData:[],dialogTableVisible:!0,dialogFormVisible:!1,ids:[],lazy:!0,layout:"total, sizes, prev, pager, next, jumper",total:0,background:!0,listLoading:!1,elementLoadingText:"正在加载...",queryForm:{page:1,size:20,deviceName:"",inspectorName:"",date:"",projectId:""}}},created(){this.queryForm.projectId=sessionStorage.getItem("projectId"),this.fetchData()},methods:{search(){this.fetchData()},async fetchData(){this.listLoading=!0;const{data:e}=await Object(s["getList"])(this.queryForm);this.tableData=e.items,this.total=e.total,this.getDictData(),setTimeout(()=>{this.listLoading=!1},500)},async getDictData(){const{data:e}=await Object(s["dict"])();this.dictData=e},showDetail(e){this.$refs["detail"].showDetail(e)},async exportData(){const e=await Object(s["doExport"])(this.queryForm);d["default"].downloadFile(e,{fileName:"巡检填报.xls"})},handleSelectionChange(e){const t=[];e.forEach(e=>{t.push(e.id)}),this.ids=t},resetForm(){this.$refs.queryForm.resetFields()},objectSpanMethod({rowIndex:e,columnIndex:t}){if(0===t)return e%4===0?{rowspan:4,colspan:1}:{rowspan:0,colspan:0}},deletes(){const e=this.ids;if(console.log(e),0==e.length)return this.$message({type:"info",message:"没有选中任何项"}),!1;this.deleteData(e)},deleteData(e){const t=this;this.$confirm("你确定要删除当前项吗?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(()=>{const{msg:o}=Object(s["doDelete"])(e);this.$message({type:"success",message:void 0==o?"删除成功":o}),setTimeout((function(){t.fetchData()}),1e3)}).catch(()=>{this.$message({type:"info",message:"已取消删除"})})},handleDelete(e){const t=this;t.deleteData([e.id])},handleQuery(){this.queryForm.page=1,this.fetchData()},handleSizeChange(e){this.queryForm.size=e,this.fetchData()},handleCurrentChange(e){this.queryForm.page=e,this.fetchData()}}},m=(o("4f5f"),o("afc2"),o("d959")),h=o.n(m);const p=h()(u,[["render",l],["__scopeId","data-v-2b1e56e9"]]);t["default"]=p},"10d8":function(e,t,o){"use strict";o.r(t);var n=o("f2bf");const a={class:"dialog-footer"};function r(e,t,o,r,i,l){const s=Object(n["resolveComponent"])("el-date-picker"),c=Object(n["resolveComponent"])("el-form-item"),d=Object(n["resolveComponent"])("el-input"),u=Object(n["resolveComponent"])("el-option"),m=Object(n["resolveComponent"])("el-select"),h=Object(n["resolveComponent"])("el-form"),p=Object(n["resolveComponent"])("el-button"),b=Object(n["resolveComponent"])("el-dialog");return Object(n["openBlock"])(),Object(n["createBlock"])(b,{modelValue:i.dialogFormVisible,"onUpdate:modelValue":t[5]||(t[5]=e=>i.dialogFormVisible=e),title:i.title,width:"500px",onClose:l.close},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(h,{ref:"form",model:i.form,"label-width":"80px","label-position":"left"},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(c,{width:"100",prop:"shelfLife",label:e.$t("defalult.sj")},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(s,{modelValue:i.form.completeTime,"onUpdate:modelValue":t[0]||(t[0]=e=>i.form.completeTime=e),type:"datetime",placeholder:e.$t("defalult.xzrq"),onChange:l.standardToTime},null,8,["modelValue","placeholder","onChange"])]),_:1},8,["label"]),Object(n["createVNode"])(c,{label:e.$t("task.rwnr"),prop:"taskContent"},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(d,{modelValue:i.form.taskContent,"onUpdate:modelValue":t[1]||(t[1]=e=>i.form.taskContent=e),modelModifiers:{trim:!0},type:"textarea",autocomplete:"off"},null,8,["modelValue"])]),_:1},8,["label"]),Object(n["createVNode"])(c,{prop:"handler",label:e.$t("task.clr")},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(m,{modelValue:i.form.handler,"onUpdate:modelValue":t[2]||(t[2]=e=>i.form.handler=e),style:{width:"100%"},filterable:"",placeholder:"处理人"},{default:Object(n["withCtx"])(()=>[(Object(n["openBlock"])(!0),Object(n["createElementBlock"])(n["Fragment"],null,Object(n["renderList"])(i.handlerData,e=>(Object(n["openBlock"])(),Object(n["createBlock"])(u,{key:e.id,style:{width:"100%"},label:e.name,value:e.id},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1},8,["label"]),Object(n["createVNode"])(c,{prop:"handler",label:"紧急程度"},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(m,{modelValue:i.form.taskLevel,"onUpdate:modelValue":t[3]||(t[3]=e=>i.form.taskLevel=e),style:{width:"100%"},filterable:"",placeholder:"紧急程度"},{default:Object(n["withCtx"])(()=>[(Object(n["openBlock"])(!0),Object(n["createElementBlock"])(n["Fragment"],null,Object(n["renderList"])(i.levelData,e=>(Object(n["openBlock"])(),Object(n["createBlock"])(u,{key:e.dataCode,style:{width:"100%"},label:e.dataValue,value:e.dataCode},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),Object(n["createVNode"])(c,{prop:"handler",label:"指派车辆"},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(m,{modelValue:i.form.tqImei,"onUpdate:modelValue":t[4]||(t[4]=e=>i.form.tqImei=e),style:{width:"100%"},filterable:"",placeholder:"指派车辆"},{default:Object(n["withCtx"])(()=>[(Object(n["openBlock"])(!0),Object(n["createElementBlock"])(n["Fragment"],null,Object(n["renderList"])(i.tpData,e=>(Object(n["openBlock"])(),Object(n["createBlock"])(u,{key:e.imei,label:e.num,value:e.imei},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1})]),_:1},8,["model"]),Object(n["createElementVNode"])("div",a,[Object(n["createVNode"])(p,{onClick:l.close},{default:Object(n["withCtx"])(()=>t[6]||(t[6]=[Object(n["createTextVNode"])("取 消")])),_:1},8,["onClick"]),Object(n["createVNode"])(p,{type:"primary",onClick:l.save},{default:Object(n["withCtx"])(()=>t[7]||(t[7]=[Object(n["createTextVNode"])("确 定")])),_:1},8,["onClick"])])]),_:1},8,["modelValue","title","onClose"])}var i=o("c3be"),l=o("5f99"),s=o("b199"),c=o("9e04"),d={data(){return{form:{repairId:"",taskContent:"",handler:"",completeTime:"",deviceCode:"",tqImei:"",taskLevel:""},title:"",handlerData:[],levelData:[],tpData:[],dialogFormVisible:!1}},created(){},methods:{standardToTime(){this.form.completeTime=Object(l["formatDateTime"])(this.form.completeTime)},showTask(e){const t=Object.assign({},e);this.form.repairId=t.id,this.form.deviceCode=t.device.code,this.dialogFormVisible=!0,this.getHandlersData(),this.getTaskLevelData(),this.getTqDevicesData()},close(){this.$refs["form"].resetFields(),this.form=this.$options.data().form,this.dialogFormVisible=!1,this.$emit("fetch-data")},async getHandlersData(){const{data:e}=await Object(s["getHandlers"])({deviceCode:this.form.deviceCode});this.handlerData=e},async getTaskLevelData(){const{data:e}=await Object(s["getTaskLevel"])();this.levelData=e},async getTqDevicesData(){const{data:e}=await Object(c["tqDevices"])({projectId:sessionStorage.getItem("projectId")});this.tpData=e},save(){this.$refs["form"].validate(async e=>{if(!e)return!1;{const{msg:e}=await Object(i["toTask"])(this.form);this.$notify({title:e,type:"success"}),this.$refs["form"].resetFields(),this.$parent.fetchData(),this.dialogFormVisible=!1}})}}},u=(o("e2b3"),o("d959")),m=o.n(u);const h=m()(d,[["render",r]]);t["default"]=h},"111a":function(e,t,o){"use strict";o.r(t);var n=o("f2bf");function a(e,t,o,a,r,i){const l=Object(n["resolveComponent"])("el-date-picker"),s=Object(n["resolveComponent"])("el-button"),c=Object(n["resolveComponent"])("vab-query-form-left-panel"),d=Object(n["resolveComponent"])("vab-query-form"),u=Object(n["resolveComponent"])("el-descriptions-item"),m=Object(n["resolveComponent"])("el-descriptions"),h=Object(n["resolveComponent"])("el-dialog"),p=Object(n["resolveDirective"])("loading");return Object(n["openBlock"])(),Object(n["createBlock"])(h,{modelValue:r.dialogFormVisible,"onUpdate:modelValue":t[1]||(t[1]=e=>r.dialogFormVisible=e),title:r.title,width:"1000px",onClose:i.close},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(d,null,{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(c,null,{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(l,{modelValue:r.queryForm.defaultTime,"onUpdate:modelValue":t[0]||(t[0]=e=>r.queryForm.defaultTime=e),type:"month",size:"small",placeholder:e.$t("defalult.xzrq")},null,8,["modelValue","placeholder"]),Object(n["createVNode"])(s,{type:"primary",size:"small",onClick:i.search},{default:Object(n["withCtx"])(()=>[Object(n["createTextVNode"])(Object(n["toDisplayString"])(e.$t("defalult.cx")),1)]),_:1},8,["onClick"])]),_:1})]),_:1}),Object(n["withDirectives"])((Object(n["openBlock"])(),Object(n["createBlock"])(m,{direction:"vertical",column:4,title:r.title,border:""},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(u,{label:"主套餐"},{default:Object(n["withCtx"])(()=>[Object(n["createTextVNode"])(Object(n["toDisplayString"])(r.simData.prodOfferName),1)]),_:1}),Object(n["createVNode"])(u,{label:"账期"},{default:Object(n["withCtx"])(()=>[Object(n["createTextVNode"])(Object(n["toDisplayString"])(r.simData.billingCycleID),1)]),_:1}),Object(n["createVNode"])(u,{label:"量池当月可用量"},{default:Object(n["withCtx"])(()=>[Object(n["createTextVNode"])(Object(n["toDisplayString"])(r.simData.balanceAvailable),1)]),_:1}),Object(n["createVNode"])(u,{label:"量池当月已用量"},{default:Object(n["withCtx"])(()=>[Object(n["createTextVNode"])(Object(n["toDisplayString"])(r.simData.balanceUsed),1)]),_:1}),Object(n["createVNode"])(u,{label:"量池当月剩余用量"},{default:Object(n["withCtx"])(()=>[Object(n["createTextVNode"])(Object(n["toDisplayString"])(r.simData.balanceAmount),1)]),_:1}),Object(n["createVNode"])(u,{label:"此卡用量"},{default:Object(n["withCtx"])(()=>[Object(n["createTextVNode"])(Object(n["toDisplayString"])(r.simData.ratableAmount),1)]),_:1}),Object(n["createVNode"])(u,{label:"生效时间"},{default:Object(n["withCtx"])(()=>[Object(n["createTextVNode"])(Object(n["toDisplayString"])(r.simData.startDt),1)]),_:1}),Object(n["createVNode"])(u,{label:"失效时间"},{default:Object(n["withCtx"])(()=>[Object(n["createTextVNode"])(Object(n["toDisplayString"])(r.simData.endDt),1)]),_:1})]),_:1},8,["title"])),[[p,r.listLoading]])]),_:1},8,["modelValue","title","onClose"])}var r=o("4bf8"),i={name:"ShowDetail",data(){return{title:"",dialogFormVisible:!1,listLoading:!0,simData:{prodOfferName:"",billingCycleID:"",balanceAvailable:0,balanceUsed:0,balanceAmount:0,ratableAmount:0,startDt:"",endDt:""},queryForm:{accessNum:"",billingCycleID:"",defaultTime:""}}},created(){this.getCurrentTime("")},mounted(){},methods:{getCurrentTime(e){const t=this,o=e?new Date(e):new Date,n=o.getFullYear()+"-",a=(o.getMonth()+1<10?"0"+(o.getMonth()+1):o.getMonth()+1)+"",r=t.replaceStr(n+a);t.queryForm.defaultTime=n+a,t.queryForm.billingCycleID=r},replaceStr(e){const t=new RegExp("-","g");return e.replace(t,"")},showDetail(e){this.title="流量卡详情",this.queryForm.accessNum=e,this.dialogFormVisible=!0,this.fetchData()},search(){const e=this.queryForm.defaultTime;console.log("defaultTime===="+e),this.getCurrentTime(e),this.simData=[],this.fetchData()},close(){this.dialogFormVisible=!1,this.$emit("fetch-data")},async fetchData(){this.listLoading=!0;const{data:e}=await Object(r["getTrafficBySim"])(this.queryForm);this.simData=e,console.log("simData==="+this.simData.prodOfferName),setTimeout(()=>{this.listLoading=!1},500)}}},l=(o("6fe0"),o("d959")),s=o.n(l);const c=s()(i,[["render",a]]);t["default"]=c},1134:function(e,t,o){"use strict";o.r(t);var n=o("f2bf");const a={class:"manage-container"},r={id:"main2",ref:"echarts",style:{height:"380px"}};function i(e,t,o,i,l,s){const c=Object(n["resolveComponent"])("el-date-picker"),d=Object(n["resolveComponent"])("el-form-item"),u=Object(n["resolveComponent"])("el-button"),m=Object(n["resolveComponent"])("vab-query-form"),h=Object(n["resolveComponent"])("el-form"),p=Object(n["resolveComponent"])("el-card"),b=Object(n["resolveComponent"])("el-table-column"),g=Object(n["resolveComponent"])("el-table"),f=Object(n["resolveDirective"])("loading");return Object(n["openBlock"])(),Object(n["createElementBlock"])("div",a,[Object(n["createVNode"])(h,{ref:"queryForm",model:l.queryForm,"label-width":"80px"},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(m,null,{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(d,{width:"100",label:e.$t("defalult.sj")},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(c,{modelValue:l.startDate,"onUpdate:modelValue":t[0]||(t[0]=e=>l.startDate=e),type:"daterange","range-separator":"-","start-placeholder":"开始日期","end-placeholder":"结束日期",onChange:s.handleStartDateChange},null,8,["modelValue","onChange"])]),_:1},8,["label"]),Object(n["createVNode"])(d,{width:"100"},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(u,{onClick:t[1]||(t[1]=e=>s.resetForm())},{default:Object(n["withCtx"])(()=>[Object(n["createTextVNode"])(Object(n["toDisplayString"])(e.$t("defalult.chongz")),1)]),_:1}),Object(n["createVNode"])(u,{type:"primary",size:"medium",onClick:s.search},{default:Object(n["withCtx"])(()=>[Object(n["createTextVNode"])(Object(n["toDisplayString"])(e.$t("defalult.cx")),1)]),_:1},8,["onClick"]),Object(n["createVNode"])(u,{type:"primary",size:"medium",onClick:s.exportData},{default:Object(n["withCtx"])(()=>[Object(n["createTextVNode"])(Object(n["toDisplayString"])(e.$t("defalult.dc")),1)]),_:1},8,["onClick"])]),_:1})]),_:1})]),_:1},8,["model"]),Object(n["createVNode"])(p,{style:{height:"380px"}},{default:Object(n["withCtx"])(()=>[Object(n["createElementVNode"])("div",r,null,512)]),_:1}),Object(n["withDirectives"])((Object(n["openBlock"])(),Object(n["createBlock"])(g,{data:l.data,border:"",stripe:"",style:{width:"100%"}},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(b,{prop:"name",label:e.$t("sensor.cgqmc"),width:"200",align:"center"},null,8,["label"]),Object(n["createVNode"])(b,{prop:"type",label:"传感器类型",width:"120",align:"center"}),Object(n["createVNode"])(b,{prop:"dataKey",label:"传输id",width:"120",align:"center"}),Object(n["createVNode"])(b,{prop:"dataValue",label:"值",width:"120",align:"center"}),Object(n["createVNode"])(b,{prop:"unit",label:e.$t("sensor.dw"),width:"120",align:"center"},null,8,["label"])]),_:1},8,["data"])),[[f,l.listLoading]])])}var l=o("aa98"),s=o("5f99"),c=o("313e"),d=o("3038"),u={components:{},data(){return{newTableData1:[],data:[],deviceCode:"",projectId:"",lazy:!0,layout:"total, sizes, prev, pager, next, jumper",total:0,background:!0,listLoading:!0,elementLoadingText:"正在加载...",deviceId:"",historyData:[],queryForm:{sensorName:"",deviceCode:""},startDate:""}},computed:{height(){return 500}},created(){this.queryForm.end=this.queryForm.start=Object(s["getFMdate"])(-1),this.queryForm.dataKey=this.$route.query.dataKey,this.queryForm.deviceCode=this.$route.query.deviceCode,this.setDefaultTime(),this.fetchData()},methods:{async fetchData(){this.listLoading=!0;const{data:e}=await Object(l["getLatestDataByDevices"])(this.queryForm);this.data=e,this.total=e.length,this.handleCurrentChange(1),setTimeout(()=>{this.listLoading=!1,this.getHistoryData()},500)},handleStartDateChange(){if(this.startDate&&this.startDate.length>0){const e=+new Date(this.startDate[0]),t=+new Date(this.startDate[1]);t>e+2592e6?this.$alert("日期的起止时间跨度不能超过30天","提示",{confirmButtonText:"确定",type:"warning"}).then(()=>this.startDate=null).catch(()=>this.startDate=null):(this.queryForm.end=Object(s["getDate"])(this.startDate[1]),this.queryForm.start=Object(s["getDate"])(this.startDate[0]))}},async getHistoryData(){var e,t=c["a"](document.getElementById("main2"));const{data:o}=await Object(l["getHistoryData"])(this.queryForm);e={tooltip:{trigger:"axis",position:function(e){return[e[0],"10%"]}},title:{left:"center",text:"折线图"},toolbox:{feature:{dataZoom:{yAxisIndex:"none"},restore:{},saveAsImage:{}}},xAxis:{type:"time",boundaryGap:!1},yAxis:{type:"value",boundaryGap:[0,"100%"]},dataZoom:[{type:"inside",start:0,end:20},{start:0,end:20}],series:[{name:"数据",type:"line",smooth:!0,symbol:"none",areaStyle:{},data:o}]},console.log(e),e&&t.setOption(e)},setDefaultTime(){this.queryForm.end=Object(s["getFMdate"])(0),this.queryForm.start=Object(s["getFMdate"])(-1),this.startDate=[Object(s["getFMdate"])(-1),Object(s["getFMdate"])(0)]},async exportData(){const e=await Object(l["exportData"])(this.queryForm);d["default"].downloadFile(e,{fileName:"站点最新数据.xls"})},search(){this.getHistoryData()},resetForm(){this.$refs.queryForm.resetFields()},showData(e){this.queryForm.dataKey=e.dataKey},handleQuery(){this.queryForm.page=1},handleSizeChange(e){this.queryForm.size=e},handleCurrentChange(e){this.queryForm.page=e;const t=this.queryForm.size;this.newTableData1=this.data.slice((e-1)*t,e*t)}}},m=(o("311d"),o("d959")),h=o.n(m);const p=h()(u,[["render",i],["__scopeId","data-v-88b40b3e"]]);t["default"]=p},"11f4":function(e,t,o){"use strict";o.r(t),o.d(t,"imgReplacePath",(function(){return a}));o("14d9");var n=o("f121");function a(e,t){for(var o=n["baseURL"]+"/static/img/",a=0;a<e.length;a++)if(null!=e[a][t]){var r=e[a][t].split(",");if(0!=r.length){for(var i=[],l=0;l<r.length;l++)r[l]&&i.push([o+r[l]]);e[a].url=o+r[0],e[a].fileList=i}else e[a].url="",e[a].fileList=""}return e}},"11fa":function(e,t,o){"use strict";o("dd47")},"120b":function(e,t,o){"use strict";o("cf5f")},1269:function(e,t,o){"use strict";o("b036")},"12fa":function(e,t,o){"use strict";o("a9cd")},"12fe":function(e,t,o){"use strict";o("9169")},"135d":function(e,t,o){"use strict";o("c8e3")},1400:function(e,t,o){"use strict";o.r(t);var n=o("f2bf");const a={class:"manage-container"},r={class:"manage-button"},i={class:"manage-input"},l={key:0},s={key:1},c={key:0},d={key:0},u={key:1},m={key:0},h={key:1},p={key:0},b={key:1},g={key:0},f={key:1},v={key:0},w={key:1};function k(e,t,o,k,C,y){const O=Object(n["resolveComponent"])("el-button"),j=Object(n["resolveComponent"])("el-input"),x=Object(n["resolveComponent"])("el-table-column"),_=Object(n["resolveComponent"])("el-option"),V=Object(n["resolveComponent"])("el-select"),A=Object(n["resolveComponent"])("el-table"),N=Object(n["resolveComponent"])("add-menu"),D=Object(n["resolveDirective"])("loading");return Object(n["openBlock"])(),Object(n["createElementBlock"])("div",a,[Object(n["createElementVNode"])("div",r,[Object(n["createVNode"])(O,{type:"primary",size:"small",onClick:t[0]||(t[0]=e=>y.handleAdd())},{default:Object(n["withCtx"])(()=>t[3]||(t[3]=[Object(n["createTextVNode"])(" 添加 ")])),_:1}),Object(n["createVNode"])(O,{type:"primary",size:"small",onClick:t[1]||(t[1]=e=>y.handleRelease())},{default:Object(n["withCtx"])(()=>t[4]||(t[4]=[Object(n["createTextVNode"])(" 发布 ")])),_:1}),Object(n["createVNode"])(O,{type:"primary",size:"small",onClick:t[2]||(t[2]=e=>y.allDel())},{default:Object(n["withCtx"])(()=>t[5]||(t[5]=[Object(n["createTextVNode"])(" 全部删除 ")])),_:1})]),Object(n["createElementVNode"])("div",i,[Object(n["withDirectives"])((Object(n["openBlock"])(),Object(n["createBlock"])(A,{data:C.tableData,stripe:"",border:"","row-key":"name","expand-row-keys":C.expands,style:{width:"100%"}},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(x,{type:"expand"},{default:Object(n["withCtx"])(({row:o})=>[Object(n["createVNode"])(A,{data:o.sub_button,stripe:"",border:"",style:{width:"100%"}},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(x,{label:"二级菜单名称",prop:"name"},{default:Object(n["withCtx"])(e=>[e.row.isEdit?(Object(n["openBlock"])(),Object(n["createElementBlock"])("div",s,[Object(n["createVNode"])(j,{modelValue:e.row.name,"onUpdate:modelValue":t=>e.row.name=t},null,8,["modelValue","onUpdate:modelValue"])])):(Object(n["openBlock"])(),Object(n["createElementBlock"])("div",l,Object(n["toDisplayString"])(e.row.name),1))]),_:2},1024),Object(n["createVNode"])(x,{label:"二级菜单类型",prop:"type"},{default:Object(n["withCtx"])(e=>[e.row.isEdit?(Object(n["openBlock"])(),Object(n["createElementBlock"])("div",u,[Object(n["createVNode"])(V,{modelValue:e.row.type,"onUpdate:modelValue":t=>e.row.type=t,filterable:"",placeholder:"菜单类型"},{default:Object(n["withCtx"])(()=>[(Object(n["openBlock"])(!0),Object(n["createElementBlock"])(n["Fragment"],null,Object(n["renderList"])(C.typeData,e=>(Object(n["openBlock"])(),Object(n["createBlock"])(_,{key:e.dataCode,label:e.dataValue,value:e.dataCode},null,8,["label","value"]))),128))]),_:2},1032,["modelValue","onUpdate:modelValue"])])):(Object(n["openBlock"])(),Object(n["createElementBlock"])("div",c,[(Object(n["openBlock"])(!0),Object(n["createElementBlock"])(n["Fragment"],null,Object(n["renderList"])(C.typeData,(t,o)=>(Object(n["openBlock"])(),Object(n["createElementBlock"])("div",{key:o},[t.dataCode==e.row.type?(Object(n["openBlock"])(),Object(n["createElementBlock"])("span",d,Object(n["toDisplayString"])(t.dataValue),1)):Object(n["createCommentVNode"])("",!0)]))),128))]))]),_:2},1024),Object(n["createVNode"])(x,{label:"appid",prop:"appid"},{default:Object(n["withCtx"])(e=>[e.row.isEdit?Object(n["createCommentVNode"])("",!0):(Object(n["openBlock"])(),Object(n["createElementBlock"])("div",m,Object(n["toDisplayString"])(e.row.appid),1)),e.row.isEdit&&"miniprogram"==e.row.type?(Object(n["openBlock"])(),Object(n["createElementBlock"])("div",h,[Object(n["createVNode"])(j,{modelValue:e.row.appid,"onUpdate:modelValue":t=>e.row.appid=t},null,8,["modelValue","onUpdate:modelValue"])])):Object(n["createCommentVNode"])("",!0)]),_:2},1024),Object(n["createVNode"])(x,{label:"小程序路径",prop:"path"},{default:Object(n["withCtx"])(e=>[e.row.isEdit?Object(n["createCommentVNode"])("",!0):(Object(n["openBlock"])(),Object(n["createElementBlock"])("div",p,Object(n["toDisplayString"])(e.row.pagepath),1)),e.row.isEdit&&"miniprogram"==e.row.type?(Object(n["openBlock"])(),Object(n["createElementBlock"])("div",b,[Object(n["createVNode"])(j,{modelValue:e.row.pagepath,"onUpdate:modelValue":t=>e.row.pagepath=t},null,8,["modelValue","onUpdate:modelValue"])])):Object(n["createCommentVNode"])("",!0)]),_:2},1024),Object(n["createVNode"])(x,{label:"二级菜单url",prop:"url"},{default:Object(n["withCtx"])(e=>[e.row.isEdit?(Object(n["openBlock"])(),Object(n["createElementBlock"])("div",f,[Object(n["createVNode"])(j,{modelValue:e.row.url,"onUpdate:modelValue":t=>e.row.url=t},null,8,["modelValue","onUpdate:modelValue"])])):(Object(n["openBlock"])(),Object(n["createElementBlock"])("div",g,Object(n["toDisplayString"])(e.row.url),1))]),_:2},1024),Object(n["createVNode"])(x,{label:e.$t("defalult.cz"),align:"center"},{default:Object(n["withCtx"])(e=>[Object(n["createVNode"])(O,{type:"text",onClick:Object(n["withModifiers"])(t=>y.handleEdit(e.row,o.name),["stop"])},{default:Object(n["withCtx"])(()=>[Object(n["createTextVNode"])(Object(n["toDisplayString"])(e.row.isEdit?"完成":"编辑"),1)]),_:2},1032,["onClick"]),Object(n["createVNode"])(O,{type:"text",onClick:t=>y.handleDelete(e.row.name)},{default:Object(n["withCtx"])(()=>t[6]||(t[6]=[Object(n["createTextVNode"])(" 删除 ")])),_:2},1032,["onClick"])]),_:2},1032,["label"])]),_:2},1032,["data"])]),_:1}),Object(n["createVNode"])(x,{label:"一级菜单名称",prop:"name"},{default:Object(n["withCtx"])(({row:e})=>[e.isEdit?(Object(n["openBlock"])(),Object(n["createElementBlock"])("div",w,[Object(n["createVNode"])(j,{modelValue:e.name,"onUpdate:modelValue":t=>e.name=t},null,8,["modelValue","onUpdate:modelValue"])])):(Object(n["openBlock"])(),Object(n["createElementBlock"])("div",v,Object(n["toDisplayString"])(e.name),1))]),_:1}),Object(n["createVNode"])(x,{prop:"details",label:e.$t("defalult.cz"),align:"center"},{default:Object(n["withCtx"])(({row:e})=>[Object(n["createVNode"])(O,{type:"text",onClick:Object(n["withModifiers"])(t=>y.handleEdit(e,""),["stop"])},{default:Object(n["withCtx"])(()=>[Object(n["createTextVNode"])(Object(n["toDisplayString"])(e.isEdit?"完成":"编辑"),1)]),_:2},1032,["onClick"]),Object(n["createVNode"])(O,{type:"text",onClick:t=>y.handleDelete(e.name,1)},{default:Object(n["withCtx"])(()=>t[7]||(t[7]=[Object(n["createTextVNode"])(" 删除 ")])),_:2},1032,["onClick"]),Object(n["createVNode"])(O,{type:"text",onClick:t=>y.handleTwoAdd(e.name,1)},{default:Object(n["withCtx"])(()=>t[8]||(t[8]=[Object(n["createTextVNode"])(" 添加 ")])),_:2},1032,["onClick"])]),_:1},8,["label"])]),_:1},8,["data","expand-row-keys"])),[[D,C.listLoading]]),Object(n["createVNode"])(N,{ref:"add"},null,512)])])}o("14d9");var C=o("4cfb"),y=o("5b79"),O={components:{addMenu:y["default"]},data(){return{tableData:[],typeData:[],dialogTableVisible:!1,lazy:!0,listLoading:!0,elementLoadingText:"正在加载...",queryForm:{},expands:[],isDel:!1}},created(){this.fetchData(),this.getMenuTypeData()},methods:{handleEdit(e,t){e.isEdit=!e.isEdit,this.expands=[],""!=t&&this.expands.push(t)},async getMenuTypeData(){const{data:e}=await Object(C["getMenuType"])();this.typeData=e},async fetchData(){const{data:e}=await Object(C["getMenuList"])();for(let t=0;t<e.length;t++){e[t].isEdit=!1;for(let o=0;o<e[t]["sub_button"].length;o++)e[t]["sub_button"][o].isEdit=!1}this.tableData=e,this.listLoading=!1},handleRelease(){this.tableData.forEach((function(e,t){delete e.isEdit,e.sub_button.forEach((function(e,t){delete e.isEdit}))}));const{msg:e,code:t}=Object(C["addMenuPub"])(this.tableData);t?this.$message({type:"error",message:void 0==e?"修改失败":e}):this.$message({type:"success",message:void 0==e?"修改成功":e})},handleTwoAdd(e,t){const o=this.tableData;for(let n=0;n<o.length;n++)o[n].name==e&&o[n].sub_button.push({name:"",type:"",url:"",isEdit:!0});this.tableData=o,this.expands.push(e)},handleDelete(e,t){this.$confirm("你确定要删除当前项吗?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(()=>{const o=this.tableData;var n=o.findIndex(o=>{if(1==t){if(o.name==e)return!0}else{var n=o.sub_button.findIndex(t=>{if(t.name==e)return!0});o.sub_button.splice(n,1)}});1==t&&o.splice(n,1),this.isDel=!0,this.tableData=o}).catch(()=>{this.$message({type:"info",message:"已取消删除"})})},allDel(){this.$confirm("你确定要全部删除吗?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(()=>{const{msg:e}=Object(C["delMenuRemove"])();this.$message({type:"success",message:void 0==e?"删除成功":e})}).catch(()=>{this.$message({type:"info",message:"已取消删除"})})},handleAdd(){this.$refs["add"].showEdit()},deletes(){const e=this.ids;if(0==e.length)return this.$message({type:"info",message:"没有选中任何项"}),!1;this.deleteData(e)},deleteData(e){const t=this;this.$confirm("你确定要删除当前项吗?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(()=>{const{msg:o}=Object(C["delMenuRemove"])(e);this.$message({type:"success",message:void 0==o?"删除成功":o}),setTimeout((function(){t.fetchData()}),1e3)}).catch(()=>{this.$message({type:"info",message:"已取消删除"})})}}},j=(o("1b23"),o("2d64"),o("d959")),x=o.n(j);const _=x()(O,[["render",k],["__scopeId","data-v-e9bf3226"]]);t["default"]=_},1443:function(e,t,o){},"14f1":function(e,t,o){"use strict";o.r(t);var n=o("f2bf");const a={class:"manage-container"},r={class:"manage-wrap"},i={class:"manage-input"},l={class:"manage-button"};function s(e,t,o,s,c,d){const u=Object(n["resolveComponent"])("el-option"),m=Object(n["resolveComponent"])("el-select"),h=Object(n["resolveComponent"])("el-form-item"),p=Object(n["resolveComponent"])("el-form"),b=Object(n["resolveComponent"])("vab-query-form"),g=Object(n["resolveComponent"])("el-button"),f=Object(n["resolveComponent"])("el-table-column"),v=Object(n["resolveComponent"])("el-tag"),w=Object(n["resolveComponent"])("el-table"),k=Object(n["resolveComponent"])("el-pagination"),C=Object(n["resolveComponent"])("trigger-edit"),y=Object(n["resolveDirective"])("loading");return Object(n["openBlock"])(),Object(n["createElementBlock"])("div",a,[Object(n["createElementVNode"])("div",r,[Object(n["createElementVNode"])("div",i,[Object(n["createVNode"])(b,null,{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(p,{ref:"queryForm",inline:!0,model:c.queryForm},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(h,{label:e.$t("maintenance.sb"),prop:"deviceId"},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(m,{modelValue:c.queryForm.deviceId,"onUpdate:modelValue":t[0]||(t[0]=e=>c.queryForm.deviceId=e),size:"small",placeholder:e.$t("trigger.qxzsb")},{default:Object(n["withCtx"])(()=>[(Object(n["openBlock"])(!0),Object(n["createElementBlock"])(n["Fragment"],null,Object(n["renderList"])(c.deviceData,e=>(Object(n["openBlock"])(),Object(n["createBlock"])(u,{key:e.id,label:e.name,value:e.id},null,8,["label","value"]))),128))]),_:1},8,["modelValue","placeholder"])]),_:1},8,["label"])]),_:1},8,["model"])]),_:1})]),Object(n["createElementVNode"])("div",l,[Object(n["createVNode"])(g,{size:"small",onClick:t[1]||(t[1]=e=>d.resetForm())},{default:Object(n["withCtx"])(()=>[Object(n["createTextVNode"])(Object(n["toDisplayString"])(e.$t("defalult.chongz")),1)]),_:1}),Object(n["createVNode"])(g,{type:"primary",size:"small",onClick:d.search},{default:Object(n["withCtx"])(()=>[Object(n["createTextVNode"])(Object(n["toDisplayString"])(e.$t("defalult.cx")),1)]),_:1},8,["onClick"]),Object(n["createVNode"])(g,{type:"primary",size:"small",onClick:d.handleAdd},{default:Object(n["withCtx"])(()=>[Object(n["createTextVNode"])(Object(n["toDisplayString"])(e.$t("trigger.tjcfq")),1)]),_:1},8,["onClick"])])]),Object(n["withDirectives"])((Object(n["openBlock"])(),Object(n["createBlock"])(w,{data:c.triggerData,stripe:"",border:"",style:{width:"100%"}},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(f,{prop:"id",label:e.$t("trigger.xh"),align:"center"},null,8,["label"]),Object(n["createVNode"])(f,{prop:"device.name",label:e.$t("dataEnquiry.zdmc"),align:"center"},null,8,["label"]),Object(n["createVNode"])(f,{prop:"name",label:e.$t("trigger.mc"),align:"center"},null,8,["label"]),Object(n["createVNode"])(f,{prop:"triggerCondition.dataValue",label:e.$t("trigger.cftjlx"),align:"center"},null,8,["label"]),Object(n["createVNode"])(f,{prop:"triggerConditionParams",label:e.$t("trigger.cs"),align:"center"},null,8,["label"]),Object(n["createVNode"])(f,{prop:"triggerCycle",label:e.$t("trigger.cfzq"),align:"center"},null,8,["label"]),Object(n["createVNode"])(f,{prop:"alarmFlag",label:e.$t("trigger.sffsbj"),align:"center"},{default:Object(n["withCtx"])(({row:t})=>[1==t.alarmFlag?(Object(n["openBlock"])(),Object(n["createBlock"])(v,{key:"是",effect:"dark",type:"success",size:"mini"},{default:Object(n["withCtx"])(()=>[Object(n["createTextVNode"])(Object(n["toDisplayString"])(e.$t("trigger.s")),1)]),_:1})):Object(n["createCommentVNode"])("",!0),0==t.alarmFlag?(Object(n["openBlock"])(),Object(n["createBlock"])(v,{key:"否",effect:"dark",type:"danger",size:"mini"},{default:Object(n["withCtx"])(()=>[Object(n["createTextVNode"])(Object(n["toDisplayString"])(e.$t("trigger.f")),1)]),_:1})):Object(n["createCommentVNode"])("",!0)]),_:1},8,["label"]),Object(n["createVNode"])(f,{prop:"alarmLevel.dataValue",label:e.$t("alarm.bjjb"),align:"center"},null,8,["label"]),Object(n["createVNode"])(f,{fixed:"right",label:e.$t("defalult.cz"),width:"160",align:"center"},{default:Object(n["withCtx"])(({row:t})=>[Object(n["createVNode"])(g,{type:"text",onClick:e=>d.handleEdit(t)},{default:Object(n["withCtx"])(()=>[Object(n["createTextVNode"])(Object(n["toDisplayString"])(e.$t("defalult.bj")),1)]),_:2},1032,["onClick"]),Object(n["createVNode"])(g,{type:"text",onClick:e=>d.handleDelete(t)},{default:Object(n["withCtx"])(()=>[Object(n["createTextVNode"])(Object(n["toDisplayString"])(e.$t("defalult.sc")),1)]),_:2},1032,["onClick"])]),_:1},8,["label"])]),_:1},8,["data"])),[[y,c.listLoading]]),Object(n["createVNode"])(k,{background:c.background,"current-page":c.queryForm.page,layout:c.layout,"page-size":c.queryForm.size,total:c.total,style:{"text-align":"right"},onCurrentChange:d.handleCurrentChange,onSizeChange:d.handleSizeChange},null,8,["background","current-page","layout","page-size","total","onCurrentChange","onSizeChange"]),Object(n["createVNode"])(C,{ref:"edit"},null,512)])}o("14d9");var c=o("4303"),d=o("ffbb"),u={name:"TriggerTable",components:{triggerEdit:d["default"]},props:{projectId:{type:String,default:"projectId"}},data(){return{groupData:[],lazy:!0,layout:"total, sizes, prev, pager, next, jumper",total:0,background:!0,listLoading:!0,triggerData:[],deviceData:[],elementLoadingText:"正在加载...",queryForm:{page:1,size:20,projectId:"",deviceId:""}}},computed:{height(){return 500}},created(){this.queryForm.projectId=sessionStorage.getItem("projectId"),this.fetchData(),this.getDeviceData()},methods:{showData(){this.fetchData(),this.getDeviceData()},async soreStatus(e,t){const{code:o,msg:n}=await Object(c["doEdit"])({status:e,id:t});0==o?this.$notify({title:n,type:"success"}):this.$notify.error({title:n}),this.fetchData()},async fetchData(){this.listLoading=!0,this.triggerData=[];const{data:e}=await Object(c["getList"])(this.queryForm);this.triggerData=e.items,this.total=e.total,setTimeout(()=>{this.listLoading=!1},500)},async getDeviceData(){const{data:e}=await Object(c["selectDeviceByProjectId"])({projectId:this.queryForm.projectId});this.deviceData=e},search(){this.fetchData()},resetForm(){this.$refs.queryForm.resetFields()},handleAdd(){this.$refs["edit"].showEdit(this.queryForm.projectId,1)},handleEdit(e){this.$refs["edit"].showEdit(e,2)},details(e){this.$router.push({path:"/triggerdetail",name:"触发器详情",query:{triggerId:e.id}})},handleQuery(){this.queryForm.page=1,this.fetchData()},handleSizeChange(e){this.queryForm.size=e,this.fetchData()},handleCurrentChange(e){this.queryForm.page=e,this.fetchData()},handleDelete(e){var t=this;e.id&&this.$confirm("你确定要删除当前项吗?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(()=>{const{msg:o}=Object(c["doDelete"])([e.id]);this.$message({type:"success",message:void 0==o?"删除成功":o}),setTimeout((function(){t.fetchData()}),1e3)}).catch(()=>{this.$message({type:"info",message:"已取消删除"})})}}},m=(o("3cb3"),o("d959")),h=o.n(m);const p=h()(u,[["render",s],["__scopeId","data-v-917767ac"]]);t["default"]=p},"150a":function(e,t,o){"use strict";o("cee7")},1550:function(e,t,o){e.exports={"menu-color":"hsla(0,0%,27%,.95)","menu-color-active":"hsla(208,100%,55%,.95)","menu-background":"#fff","gallery-second-menu-background":"#fff"}},1554:function(e,t,o){"use strict";o("3626")},1566:function(e,t,o){},1573:function(e,t,o){"use strict";o.r(t);var n=o("f2bf");const a={class:"manage-container"};function r(e,t,o,r,i,l){const s=Object(n["resolveComponent"])("el-table-column"),c=Object(n["resolveComponent"])("el-button"),d=Object(n["resolveComponent"])("el-table"),u=Object(n["resolveComponent"])("el-pagination"),m=Object(n["resolveComponent"])("bind-device"),h=Object(n["resolveDirective"])("loading");return Object(n["openBlock"])(),Object(n["createElementBlock"])("div",a,[Object(n["withDirectives"])((Object(n["openBlock"])(),Object(n["createBlock"])(d,{data:i.userData,border:"",stripe:"",style:{width:"100%"}},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(s,{prop:"userId",label:"ID",width:"60",align:"center"}),Object(n["createVNode"])(s,{prop:"nickName",label:e.$t("staff.xm"),width:"250",align:"center"},null,8,["label"]),Object(n["createVNode"])(s,{prop:"phone",label:e.$t("project.lxfs"),width:"250",align:"center"},null,8,["label"]),Object(n["createVNode"])(s,{prop:"email",label:e.$t("staff.yx"),width:"300",align:"center"},null,8,["label"]),Object(n["createVNode"])(s,{fixed:"right",label:e.$t("defalult.cz"),align:"center"},{default:Object(n["withCtx"])(({row:t})=>[Object(n["createVNode"])(c,{type:"text",onClick:e=>l.bindDevice(t)},{default:Object(n["withCtx"])(()=>[Object(n["createTextVNode"])(Object(n["toDisplayString"])(e.$t("staff.bdxm")),1)]),_:2},1032,["onClick"])]),_:1},8,["label"])]),_:1},8,["data"])),[[h,i.listLoading]]),Object(n["createVNode"])(u,{background:i.background,"current-page":i.queryForm.page,layout:i.layout,"page-size":i.queryForm.size,total:i.total,style:{"text-align":"right"},onCurrentChange:l.handleCurrentChange,onSizeChange:l.handleSizeChange},null,8,["background","current-page","layout","page-size","total","onCurrentChange","onSizeChange"]),Object(n["createVNode"])(m,{ref:"bind"},null,512)])}var i=o("f547"),l=o("a5f3"),s={name:"Index",components:{bindDevice:l["default"]},data(){return{userData:[],lazy:!0,layout:"total, sizes, prev, pager, next, jumper",total:0,background:!0,listLoading:!0,elementLoadingText:"正在加载...",queryForm:{page:1,size:20}}},computed:{height(){return 500}},created(){this.fetchData()},methods:{async fetchData(){this.listLoading=!0;const{data:e}=await Object(i["getList"])(this.queryForm);this.userData=e.items,this.total=e.total,setTimeout(()=>{this.listLoading=!1},500)},search(){this.fetchData()},resetForm(){this.$refs.queryForm.resetFields()},handleAdd(){this.$refs["edit"].showEdit()},bindDevice(e){this.$refs["bind"].bindDevice(e)},handleQuery(){this.queryForm.page=1,this.fetchData()},handleSizeChange(e){this.queryForm.size=e,this.fetchData()},handleCurrentChange(e){this.queryForm.page=e,this.fetchData()},handleDelete(e){const t=this;e.id&&this.$confirm("你确定要删除当前项吗?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(()=>{const{msg:o}=Object(i["doDelete"])({userId:e.id});this.$message({type:"success",message:void 0==o?"删除成功":o}),setTimeout((function(){t.fetchData()}),1e3)}).catch(()=>{this.$message({type:"info",message:"已取消删除"})})}}},c=(o("71ce"),o("d959")),d=o.n(c);const u=d()(s,[["render",r]]);t["default"]=u},"15ba":function(e,t,o){"use strict";o("b1b6")},"163d":function(e,t,o){"use strict";o.r(t);var n=o("f2bf");const a={class:"manage-container"},r={class:"manage-button"};function i(e,t,o,i,l,s){const c=Object(n["resolveComponent"])("el-button"),d=Object(n["resolveComponent"])("el-table-column"),u=Object(n["resolveComponent"])("el-switch"),m=Object(n["resolveComponent"])("el-table"),h=Object(n["resolveComponent"])("el-pagination"),p=Object(n["resolveComponent"])("role-edit"),b=Object(n["resolveComponent"])("role-grant");return Object(n["openBlock"])(),Object(n["createElementBlock"])("div",a,[Object(n["createElementVNode"])("div",r,[Object(n["createVNode"])(c,{type:"primary",size:"small",onClick:s.handleAdd},{default:Object(n["withCtx"])(()=>t[0]||(t[0]=[Object(n["createTextVNode"])(" 添加角色 ")])),_:1},8,["onClick"])]),Object(n["createVNode"])(m,{data:l.roleData,border:"",stripe:"",style:{width:"100%"}},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(d,{prop:"id",label:"ID",width:"60",align:"center"}),Object(n["createVNode"])(d,{prop:"name",label:e.$t("staff.yhm"),width:"150",align:"center"},null,8,["label"]),Object(n["createVNode"])(d,{prop:"key",label:"key",width:"150",align:"center"}),Object(n["createVNode"])(d,{prop:"status",label:e.$t("dataEnquiry.zt"),align:"center",width:"120"},{default:Object(n["withCtx"])(e=>[Object(n["createVNode"])(u,{modelValue:e.row.status,"onUpdate:modelValue":t=>e.row.status=t,"active-value":"0","inactive-value":"1",onClick:t=>s.soreStatus(e.row.status,e.row.id)},null,8,["modelValue","onUpdate:modelValue","onClick"])]),_:1},8,["label"]),Object(n["createVNode"])(d,{prop:"createTime",label:e.$t("grouping.cjsj"),width:"220",align:"center"},null,8,["label"]),Object(n["createVNode"])(d,{prop:"updateTime",label:e.$t("grouping.gxsj"),width:"220",align:"center"},null,8,["label"]),Object(n["createVNode"])(d,{fixed:"right",label:e.$t("defalult.cz"),align:"center"},{default:Object(n["withCtx"])(({row:o})=>[Object(n["createVNode"])(c,{type:"text",onClick:e=>s.handleEdit(o)},{default:Object(n["withCtx"])(()=>[Object(n["createTextVNode"])(Object(n["toDisplayString"])(e.$t("defalult.bj")),1)]),_:2},1032,["onClick"]),Object(n["createVNode"])(c,{type:"text",onClick:e=>s.handleDelete(o)},{default:Object(n["withCtx"])(()=>[Object(n["createTextVNode"])(Object(n["toDisplayString"])(e.$t("defalult.sc")),1)]),_:2},1032,["onClick"]),Object(n["createVNode"])(c,{type:"text",onClick:e=>s.handleauthorization(o)},{default:Object(n["withCtx"])(()=>t[1]||(t[1]=[Object(n["createTextVNode"])(" 角色授权 ")])),_:2},1032,["onClick"])]),_:1},8,["label"])]),_:1},8,["data"]),Object(n["createVNode"])(h,{background:l.background,"current-page":l.queryForm.page,layout:l.layout,"page-size":l.queryForm.size,total:l.total,style:{"text-align":"right"},onCurrentChange:s.handleCurrentChange,onSizeChange:s.handleSizeChange},null,8,["background","current-page","layout","page-size","total","onCurrentChange","onSizeChange"]),Object(n["createVNode"])(p,{ref:"edit"},null,512),Object(n["createVNode"])(b,{ref:"grant"},null,512)])}var l=o("cc5e"),s=o("9520b"),c=o("e3f1"),d={name:"RoleIndex",components:{roleGrant:s["default"],roleEdit:c["default"]},data(){return{roleData:[],lazy:!0,activeName:"first",layout:"total, sizes, prev, pager, next, jumper",total:0,input:"",textarea:"",list:[],background:!0,listLoading:!0,elementLoadingText:"正在加载...",queryForm:{page:1,size:20,name:""}}},computed:{height(){return 500}},created(){},methods:{appletsIndex(){this.fetchData()},async soreStatus(e,t){const{code:o,msg:n}=await Object(l["miniRoleUpdate"])({status:e,id:t});0==o?this.$notify({title:n,type:"success"}):this.$notify.error({title:n}),this.fetchData()},async fetchData(){this.listLoading=!0;const{data:e}=await Object(l["miniRoleSelect"])(this.queryForm);this.roleData=e.items,this.total=e.total,setTimeout(()=>{this.listLoading=!1},500)},handleAdd(){this.$refs["edit"].showEdit()},handleEdit(e){this.$refs["edit"].showEdit(e)},handleauthorization(e){this.$refs["grant"].roleGrant(e)},handleQuery(){this.queryForm.page=1,this.fetchData()},handleSizeChange(e){this.queryForm.size=e,this.fetchData()},handleCurrentChange(e){this.queryForm.page=e,this.fetchData()},handleDelete(e){const t=this;e.id&&this.$confirm("你确定要删除当前项吗?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(()=>{const{msg:o}=Object(l["miniRoleRemove"])({roleId:e.id});this.$message({type:"success",message:void 0==o?"删除成功":o}),setTimeout((function(){t.fetchData()}),1e3)}).catch(()=>{this.$message({type:"info",message:"已取消删除"})})}}},u=(o("eb37"),o("d959")),m=o.n(u);const h=m()(d,[["render",i],["__scopeId","data-v-d246d92a"]]);t["default"]=h},1656:function(e,t,o){"use strict";o("b709")},1688:function(e,t,o){"use strict";o.r(t);var n=o("f2bf");const a={class:"vab-base"};function r(e,t,o,r,i,l){const s=Object(n["resolveComponent"])("el-option"),c=Object(n["resolveComponent"])("el-select"),d=Object(n["resolveComponent"])("el-form-item"),u=Object(n["resolveComponent"])("el-date-picker"),m=Object(n["resolveComponent"])("el-button"),h=Object(n["resolveComponent"])("vab-query-form"),p=Object(n["resolveComponent"])("el-upload"),b=Object(n["resolveComponent"])("el-form"),g=Object(n["resolveComponent"])("el-table-column"),f=Object(n["resolveComponent"])("el-table"),v=Object(n["resolveComponent"])("el-input"),w=Object(n["resolveComponent"])("el-pagination"),k=Object(n["resolveComponent"])("testing-add"),C=Object(n["resolveDirective"])("loading");return Object(n["openBlock"])(),Object(n["createElementBlock"])(n["Fragment"],null,[Object(n["createElementVNode"])("div",a,[Object(n["createVNode"])(b,{ref:"queryForm",model:i.queryForm,"label-width":"80px"},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(h,null,{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(d,{width:"100",prop:"code",label:e.$t("dataEnquiry.zdmc")},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(c,{modelValue:i.queryForm.code,"onUpdate:modelValue":t[0]||(t[0]=e=>i.queryForm.code=e),placeholder:e.$t("dataEnquiry.zdmc")},{default:Object(n["withCtx"])(()=>[(Object(n["openBlock"])(!0),Object(n["createElementBlock"])(n["Fragment"],null,Object(n["renderList"])(i.devicesData,e=>(Object(n["openBlock"])(),Object(n["createBlock"])(s,{key:e.code,label:e.name,value:e.code},null,8,["label","value"]))),128))]),_:1},8,["modelValue","placeholder"])]),_:1},8,["label"]),Object(n["createVNode"])(d,{width:"100",prop:"date",label:e.$t("defalult.rq")},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(u,{modelValue:i.queryForm.date,"onUpdate:modelValue":t[1]||(t[1]=e=>i.queryForm.date=e),size:"medium",type:"month",placeholder:e.$t("defalult.xzrq"),onChange:l.standardToTime},null,8,["modelValue","placeholder","onChange"])]),_:1},8,["label"]),Object(n["createVNode"])(d,{width:"100"},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(m,{onClick:t[2]||(t[2]=e=>l.resetForm())},{default:Object(n["withCtx"])(()=>[Object(n["createTextVNode"])(Object(n["toDisplayString"])(e.$t("defalult.chongz")),1)]),_:1}),Object(n["createVNode"])(m,{type:"primary",size:"medium",onClick:l.search},{default:Object(n["withCtx"])(()=>[Object(n["createTextVNode"])(Object(n["toDisplayString"])(e.$t("defalult.cx")),1)]),_:1},8,["onClick"])]),_:1})]),_:1}),Object(n["createVNode"])(h,null,{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(d,{width:"100"},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(m,{size:"small",type:"primary",plain:"",onClick:l.handleAdd},{default:Object(n["withCtx"])(()=>[Object(n["createTextVNode"])(Object(n["toDisplayString"])(e.$t("defalult.xj")),1)]),_:1},8,["onClick"]),Object(n["createVNode"])(m,{type:"small",size:"medium",onClick:l.exportData},{default:Object(n["withCtx"])(()=>[Object(n["createTextVNode"])(Object(n["toDisplayString"])(e.$t("defalult.dc")),1)]),_:1},8,["onClick"]),Object(n["createVNode"])(m,{type:"small",onClick:l.deletes},{default:Object(n["withCtx"])(()=>[Object(n["createTextVNode"])(Object(n["toDisplayString"])(e.$t("defalult.plsc")),1)]),_:1},8,["onClick"]),Object(n["createVNode"])(p,{class:"upload-demo",action:i.action,headers:i.headers,"on-preview":l.handlePreview,"on-remove":l.handleRemove,"list-type":"picture"},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(m,{size:"small",type:"primary"},{default:Object(n["withCtx"])(()=>[Object(n["createTextVNode"])(Object(n["toDisplayString"])(e.$t("defalult.djsc")),1)]),_:1})]),_:1},8,["action","headers","on-preview","on-remove"])]),_:1})]),_:1})]),_:1},8,["model"])]),Object(n["withDirectives"])((Object(n["openBlock"])(),Object(n["createBlock"])(f,{data:i.rateData,border:"",stripe:"",style:{width:"100%"}},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(g,{prop:"codRate",label:"COD",width:"120",align:"center"}),Object(n["createVNode"])(g,{prop:"phRate",label:"PH",width:"200",align:"center"}),Object(n["createVNode"])(g,{prop:"tnRate",label:e.$t("apply.zd"),width:"200",align:"center"},null,8,["label"]),Object(n["createVNode"])(g,{prop:"anRate",label:e.$t("apply.ad"),width:"200",align:"center"},null,8,["label"]),Object(n["createVNode"])(g,{prop:"tpRate",label:e.$t("apply.zl"),width:"200",align:"center"},null,8,["label"])]),_:1},8,["data"])),[[C,i.listLoading]]),Object(n["createVNode"])(f,{data:i.tableData,stripe:"",border:"",style:{width:"100%"},onSelectionChange:l.handleSelectionChange},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(g,{fixed:"",type:"selection",width:"40",align:"center"}),Object(n["createVNode"])(g,{fixed:"",prop:"device.name",label:e.$t("dataEnquiry.zdmc"),width:"150",align:"center"},null,8,["label"]),Object(n["createVNode"])(g,{prop:"date",label:e.$t("apply.jcrq"),width:"100",align:"center"},null,8,["label"]),Object(n["createVNode"])(g,{label:e.$t("apply.js"),align:"center"},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(g,{prop:"inCod",label:"COD",width:"70",align:"center"},{default:Object(n["withCtx"])(e=>[Object(n["createVNode"])(v,{modelValue:e.row.inCod,"onUpdate:modelValue":t=>e.row.inCod=t,size:"medium",onBlur:t=>l.editData(e.row.id,e.row.inCod,"inCod")},null,8,["modelValue","onUpdate:modelValue","onBlur"])]),_:1}),Object(n["createVNode"])(g,{prop:"inAn",label:e.$t("apply.ad"),width:"70",align:"center"},{default:Object(n["withCtx"])(e=>[Object(n["createVNode"])(v,{modelValue:e.row.inAn,"onUpdate:modelValue":t=>e.row.inAn=t,size:"medium",onBlur:t=>l.editData(e.row.id,e.row.inAn,"inAn")},null,8,["modelValue","onUpdate:modelValue","onBlur"])]),_:1},8,["label"]),Object(n["createVNode"])(g,{prop:"inTp",label:e.$t("apply.zl"),width:"70",align:"center"},{default:Object(n["withCtx"])(e=>[Object(n["createVNode"])(v,{modelValue:e.row.inTp,"onUpdate:modelValue":t=>e.row.inTp=t,size:"medium",onBlur:t=>l.editData(e.row.id,e.row.inTp,"inTp")},null,8,["modelValue","onUpdate:modelValue","onBlur"])]),_:1},8,["label"]),Object(n["createVNode"])(g,{prop:"inTn",label:e.$t("apply.zd"),width:"70",align:"center"},{default:Object(n["withCtx"])(e=>[Object(n["createVNode"])(v,{modelValue:e.row.inTn,"onUpdate:modelValue":t=>e.row.inTn=t,size:"medium",onBlur:t=>l.editData(e.row.id,e.row.inTn,"inTn")},null,8,["modelValue","onUpdate:modelValue","onBlur"])]),_:1},8,["label"]),Object(n["createVNode"])(g,{prop:"inPh",label:"PH",width:"70",align:"center"},{default:Object(n["withCtx"])(e=>[Object(n["createVNode"])(v,{modelValue:e.row.inPh,"onUpdate:modelValue":t=>e.row.inPh=t,size:"medium",onBlur:t=>l.editData(e.row.id,e.row.inPh,"inPh")},null,8,["modelValue","onUpdate:modelValue","onBlur"])]),_:1})]),_:1},8,["label"]),Object(n["createVNode"])(g,{label:e.$t("apply.cs"),align:"center"},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(g,{prop:"outCod",label:"COD",width:"70",align:"center"},{default:Object(n["withCtx"])(e=>[Object(n["createVNode"])(v,{modelValue:e.row.outCod,"onUpdate:modelValue":t=>e.row.outCod=t,size:"medium",onBlur:t=>l.editData(e.row.id,e.row.outCod,"outCod")},null,8,["modelValue","onUpdate:modelValue","onBlur"])]),_:1}),Object(n["createVNode"])(g,{prop:"outAn",label:e.$t("apply.ad"),width:"70",align:"center"},{default:Object(n["withCtx"])(e=>[Object(n["createVNode"])(v,{modelValue:e.row.outAn,"onUpdate:modelValue":t=>e.row.outAn=t,size:"medium",onBlur:t=>l.editData(e.row.id,e.row.outAn,"outAn")},null,8,["modelValue","onUpdate:modelValue","onBlur"])]),_:1},8,["label"]),Object(n["createVNode"])(g,{prop:"outTp",label:e.$t("apply.zl"),width:"70",align:"center"},{default:Object(n["withCtx"])(e=>[Object(n["createVNode"])(v,{modelValue:e.row.outTp,"onUpdate:modelValue":t=>e.row.outTp=t,size:"medium",onBlur:t=>l.editData(e.row.id,e.row.outTp,"outTp")},null,8,["modelValue","onUpdate:modelValue","onBlur"])]),_:1},8,["label"]),Object(n["createVNode"])(g,{prop:"outTn",label:e.$t("apply.zd"),width:"70",align:"center"},{default:Object(n["withCtx"])(e=>[Object(n["createVNode"])(v,{modelValue:e.row.outTn,"onUpdate:modelValue":t=>e.row.outTn=t,size:"medium",onBlur:t=>l.editData(e.row.id,e.row.outTn,"outTn")},null,8,["modelValue","onUpdate:modelValue","onBlur"])]),_:1},8,["label"]),Object(n["createVNode"])(g,{prop:"outPh",label:"PH",width:"70",align:"center"},{default:Object(n["withCtx"])(e=>[Object(n["createVNode"])(v,{modelValue:e.row.outPh,"onUpdate:modelValue":t=>e.row.outPh=t,size:"medium",onBlur:t=>l.editData(e.row.id,e.row.outPh,"outPh")},null,8,["modelValue","onUpdate:modelValue","onBlur"])]),_:1})]),_:1},8,["label"]),Object(n["createVNode"])(g,{label:e.$t("defalult.cz"),align:"center",width:"100"},{default:Object(n["withCtx"])(({row:t})=>[Object(n["createVNode"])(m,{type:"text",onClick:e=>l.handleDelete(t)},{default:Object(n["withCtx"])(()=>[Object(n["createTextVNode"])(Object(n["toDisplayString"])(e.$t("defalult.sc")),1)]),_:2},1032,["onClick"])]),_:1},8,["label"])]),_:1},8,["data","onSelectionChange"]),Object(n["createVNode"])(w,{background:i.background,"current-page":i.queryForm.page,layout:i.layout,"page-size":i.queryForm.size,total:i.total,style:{"text-align":"right"},onCurrentChange:l.handleCurrentChange,onSizeChange:l.handleSizeChange},null,8,["background","current-page","layout","page-size","total","onCurrentChange","onSizeChange"]),Object(n["createVNode"])(k,{ref:"add"},null,512)],64)}o("14d9");var i=o("35db"),l=o("b199"),s=o("5f99"),c=o("1695"),d=o("3038"),u=o("f121"),m=o("4360"),h={components:{testingAdd:c["default"]},data(){return{tableData:[],devicesData:[],rateData:[],action:u["baseURL"]+"/waterDetection/import",lazy:!0,layout:"total, sizes, prev, pager, next, jumper",total:0,background:!0,listLoading:!1,elementLoadingText:"正在加载...",queryForm:{page:1,size:20,code:"",date:"",projectId:""},ids:[],headers:{token:m["default"].getters["user/token"]}}},created(){this.queryForm.projectId=sessionStorage.getItem("projectId"),this.getDevices()},methods:{testingIndex(){this.setDefaultTime(),setTimeout(()=>{this.fetchData()},1e3)},async getDevices(){const{data:e}=await Object(l["getDevices"])(this.queryForm);this.devicesData=e},async editData(e,t,o){var n={};n.id=e,n[o]=t;const{msg:a}=await Object(i["doEdit"])(n);this.$notify({title:a,type:"success"}),this.fetchData()},standardToTime(){this.queryForm.date=Object(s["getDate1"])(this.queryForm.date),console.log(this.queryForm.date)},setDefaultTime(){this.queryForm.date=Object(s["getDate1"])()},async fetchData(){const{data:e}=await Object(i["getList"])(this.queryForm);this.tableData=e.items,this.total=e.total,this.waterRate()},async waterRate(){const{data:e}=await Object(i["waterRate"])(this.queryForm);this.rateData[0]=e},handleAdd(){this.$refs["add"].showEdit()},handleRemove(e,t){console.log(e,t)},handlePreview(e){console.log(e)},search(){this.fetchData()},resetForm(){this.$refs.queryForm.resetFields()},async exportData(){const e=await Object(i["exportWaterDetection"])(this.queryForm);d["default"].downloadFile(e,{fileName:"水质检测.xls"})},handleSelectionChange(e){const t=[];e.forEach(e=>{t.push(e.id)}),this.ids=t},deletes(){const e=this.ids;if(0==e.length)return this.$message({type:"info",message:"没有选中任何项"}),!1;this.deleteData(e)},deleteData(e){const t=this;this.$confirm("你确定要删除当前项吗?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(()=>{const{msg:o}=Object(i["doDelete"])(e);this.$message({type:"success",message:void 0==o?"删除成功":o}),setTimeout((function(){t.fetchData()}),1e3)}).catch(()=>{this.$message({type:"info",message:"已取消删除"})})},handleDelete(e){const t=this;t.deleteData([e.id])},handleQuery(){this.queryForm.page=1,this.fetchData()},handleSizeChange(e){this.queryForm.size=e,this.fetchData()},handleCurrentChange(e){this.queryForm.page=e,this.fetchData()}}},p=o("d959"),b=o.n(p);const g=b()(h,[["render",r]]);t["default"]=g},1692:function(e,t,o){"use strict";o("ea53")},1695:function(e,t,o){"use strict";o.r(t);var n=o("f2bf");const a={class:"dialog-footer"};function r(e,t,o,r,i,l){const s=Object(n["resolveComponent"])("el-option"),c=Object(n["resolveComponent"])("el-select"),d=Object(n["resolveComponent"])("el-form-item"),u=Object(n["resolveComponent"])("el-date-picker"),m=Object(n["resolveComponent"])("el-input"),h=Object(n["resolveComponent"])("el-form"),p=Object(n["resolveComponent"])("el-button"),b=Object(n["resolveComponent"])("el-dialog");return Object(n["openBlock"])(),Object(n["createBlock"])(b,{modelValue:i.dialogFormVisible,"onUpdate:modelValue":t[12]||(t[12]=e=>i.dialogFormVisible=e),title:"水质检测",width:"500px"},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(h,{ref:"form",model:i.form,rules:i.rules,"label-width":"80px","label-position":"left"},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(d,{label:"选择站点",prop:"deviceCode"},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(c,{modelValue:i.form.deviceCode,"onUpdate:modelValue":t[0]||(t[0]=e=>i.form.deviceCode=e),filterable:"",placeholder:"选择站点"},{default:Object(n["withCtx"])(()=>[(Object(n["openBlock"])(!0),Object(n["createElementBlock"])(n["Fragment"],null,Object(n["renderList"])(i.deviceData,e=>(Object(n["openBlock"])(),Object(n["createBlock"])(s,{key:e.code,label:e.name,value:e.code},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),Object(n["createVNode"])(d,{label:e.$t("apply.jcrq"),prop:"date"},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(u,{modelValue:i.form.date,"onUpdate:modelValue":t[1]||(t[1]=e=>i.form.date=e),type:"date",placeholder:e.$t("defalult.xzrq"),onChange:l.standardToTime},null,8,["modelValue","placeholder","onChange"])]),_:1},8,["label"]),t[13]||(t[13]=Object(n["createElementVNode"])("h2",null,"进水",-1)),Object(n["createVNode"])(d,{label:"COD",prop:"inCod"},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(m,{modelValue:i.form.inCod,"onUpdate:modelValue":t[2]||(t[2]=e=>i.form.inCod=e)},null,8,["modelValue"])]),_:1}),Object(n["createVNode"])(d,{label:e.$t("apply.ad"),prop:"inAn"},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(m,{modelValue:i.form.inAn,"onUpdate:modelValue":t[3]||(t[3]=e=>i.form.inAn=e)},null,8,["modelValue"])]),_:1},8,["label"]),Object(n["createVNode"])(d,{label:e.$t("apply.zl"),prop:"inTp"},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(m,{modelValue:i.form.inTp,"onUpdate:modelValue":t[4]||(t[4]=e=>i.form.inTp=e)},null,8,["modelValue"])]),_:1},8,["label"]),Object(n["createVNode"])(d,{label:e.$t("apply.zd"),prop:"inTn"},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(m,{modelValue:i.form.inTn,"onUpdate:modelValue":t[5]||(t[5]=e=>i.form.inTn=e)},null,8,["modelValue"])]),_:1},8,["label"]),Object(n["createVNode"])(d,{label:"PH",prop:"inPh"},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(m,{modelValue:i.form.inPh,"onUpdate:modelValue":t[6]||(t[6]=e=>i.form.inPh=e)},null,8,["modelValue"])]),_:1}),t[14]||(t[14]=Object(n["createElementVNode"])("h2",null,"出水",-1)),Object(n["createVNode"])(d,{label:"COD",prop:"outCod"},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(m,{modelValue:i.form.outCod,"onUpdate:modelValue":t[7]||(t[7]=e=>i.form.outCod=e)},null,8,["modelValue"])]),_:1}),Object(n["createVNode"])(d,{label:e.$t("apply.ad"),prop:"outAn"},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(m,{modelValue:i.form.outAn,"onUpdate:modelValue":t[8]||(t[8]=e=>i.form.outAn=e)},null,8,["modelValue"])]),_:1},8,["label"]),Object(n["createVNode"])(d,{label:e.$t("apply.zl"),prop:"outTp"},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(m,{modelValue:i.form.outTp,"onUpdate:modelValue":t[9]||(t[9]=e=>i.form.outTp=e)},null,8,["modelValue"])]),_:1},8,["label"]),Object(n["createVNode"])(d,{label:e.$t("apply.zd"),prop:"outTn"},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(m,{modelValue:i.form.outTn,"onUpdate:modelValue":t[10]||(t[10]=e=>i.form.outTn=e)},null,8,["modelValue"])]),_:1},8,["label"]),Object(n["createVNode"])(d,{label:"PH",prop:"outPh"},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(m,{modelValue:i.form.outPh,"onUpdate:modelValue":t[11]||(t[11]=e=>i.form.outPh=e)},null,8,["modelValue"])]),_:1})]),_:1},8,["model","rules"]),Object(n["createElementVNode"])("div",a,[Object(n["createVNode"])(p,{size:"medium",type:"primary",onClick:l.save},{default:Object(n["withCtx"])(()=>t[15]||(t[15]=[Object(n["createTextVNode"])("确 定")])),_:1},8,["onClick"]),Object(n["createVNode"])(p,{size:"medium",onClick:l.close},{default:Object(n["withCtx"])(()=>t[16]||(t[16]=[Object(n["createTextVNode"])("取 消")])),_:1},8,["onClick"])])]),_:1},8,["modelValue"])}var i=o("35db"),l=o("1b0a"),s=o("5f99"),c={data(){return{form:{id:"",deviceCode:"",inCod:"",inAn:"",inTp:"",inTn:"",inPh:"",outCod:"",outAn:"",outTp:"",outTn:"",outPh:"",date:""},rules:{deviceCode:[{required:!0,trigger:"change",message:"请选择站点"}],date:[{required:!0,trigger:"change",message:"请选择检测时间"}],inCod:[{required:!0,trigger:"blur",message:"请输入COD"}],inAn:[{required:!0,trigger:"blur",message:"请输入氨氮"}],inTp:[{required:!0,trigger:"blur",message:"请输入总磷"}],inTn:[{required:!0,trigger:"blur",message:"请输入总氮"}],inPh:[{required:!0,trigger:"blur",message:"请输入PH"}],outCod:[{required:!0,trigger:"blur",message:"请输入COD"}],outAn:[{required:!0,trigger:"blur",message:"请输入氨氮"}],outTp:[{required:!0,trigger:"blur",message:"请输入总磷"}],outTn:[{required:!0,trigger:"blur",message:"请输入总氮"}],outPh:[{required:!0,trigger:"blur",message:"请输入PH"}]},title:"",dialogFormVisible:!1,deviceData:[]}},created(){},methods:{async getDevicesData(){var e={projectId:sessionStorage.getItem("projectId")};const{data:t}=await Object(l["getDevices"])(e);this.deviceData=t},standardToTime(){this.form.date=Object(s["getDate"])(this.form.date)},setDefaultTime(){this.form.date=Object(s["getDate"])()},showEdit(e){this.getDevicesData(),e?(this.title="编辑",this.menuId=e.id,this.ruleForm=Object.assign({},e),this.form=Object.assign({},e)):this.title="添加",this.dialogFormVisible=!0},close(){this.$refs["form"].resetFields(),this.form=this.$options.data().form,this.dialogFormVisible=!1,this.$emit("fetch-data")},save(){this.$refs["form"].validate(async e=>{if(!e)return!1;if(this.form.id){const{msg:e}=await Object(i["doEdit"])(this.form);this.$notify({title:e,type:"success"})}else{const{msg:e}=await Object(i["doAdd"])(this.form);this.$notify({title:e,type:"success"})}this.$refs["form"].resetFields(),this.dialogFormVisible=!1,this.$parent.fetchData()})}}},d=o("d959"),u=o.n(d);const m=u()(c,[["render",r]]);t["default"]=m},"173f":function(e,t,o){"use strict";o.r(t);var n=o("f2bf");const a={class:"dialog-footer"};function r(e,t,o,r,i,l){const s=Object(n["resolveComponent"])("el-option"),c=Object(n["resolveComponent"])("el-select"),d=Object(n["resolveComponent"])("el-form-item"),u=Object(n["resolveComponent"])("el-input"),m=Object(n["resolveComponent"])("el-form"),h=Object(n["resolveComponent"])("el-button"),p=Object(n["resolveComponent"])("el-dialog");return Object(n["openBlock"])(),Object(n["createBlock"])(p,{modelValue:i.dialogFormVisible,"onUpdate:modelValue":t[7]||(t[7]=e=>i.dialogFormVisible=e),title:i.title,width:"500px",onClose:l.close},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(m,{ref:"form",model:i.form,rules:i.rules,"label-width":"80px"},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(d,{label:"部门",prop:"deptId"},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(c,{modelValue:i.form.deptId,"onUpdate:modelValue":t[0]||(t[0]=e=>i.form.deptId=e),placeholder:"请选择部门"},{default:Object(n["withCtx"])(()=>[(Object(n["openBlock"])(!0),Object(n["createElementBlock"])(n["Fragment"],null,Object(n["renderList"])(i.deptData,e=>(Object(n["openBlock"])(),Object(n["createBlock"])(s,{key:e.deptId,label:e.deptName,value:e.deptId},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),Object(n["createVNode"])(d,{label:e.$t("staff.yhm"),prop:"userName"},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(u,{modelValue:i.form.userName,"onUpdate:modelValue":t[1]||(t[1]=e=>i.form.userName=e),modelModifiers:{trim:!0},size:"small",autocomplete:"off"},null,8,["modelValue"])]),_:1},8,["label"]),Object(n["createVNode"])(d,{label:"密码",prop:"password"},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(u,{modelValue:i.form.password,"onUpdate:modelValue":t[2]||(t[2]=e=>i.form.password=e),modelModifiers:{trim:!0},size:"small",autocomplete:"off"},null,8,["modelValue"])]),_:1}),Object(n["createVNode"])(d,{label:e.$t("staff.xm"),prop:"nickName"},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(u,{modelValue:i.form.nickName,"onUpdate:modelValue":t[3]||(t[3]=e=>i.form.nickName=e),modelModifiers:{trim:!0},size:"small",autocomplete:"off"},null,8,["modelValue"])]),_:1},8,["label"]),Object(n["createVNode"])(d,{label:"手机号",prop:"phone"},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(u,{modelValue:i.form.phone,"onUpdate:modelValue":t[4]||(t[4]=e=>i.form.phone=e),modelModifiers:{trim:!0},size:"small",autocomplete:"off"},null,8,["modelValue"])]),_:1}),Object(n["createVNode"])(d,{label:e.$t("staff.yx"),prop:"email"},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(u,{modelValue:i.form.email,"onUpdate:modelValue":t[5]||(t[5]=e=>i.form.email=e),modelModifiers:{trim:!0},size:"small",autocomplete:"off"},null,8,["modelValue"])]),_:1},8,["label"]),Object(n["createVNode"])(d,{label:"微信",prop:"wechat"},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(u,{modelValue:i.form.wechat,"onUpdate:modelValue":t[6]||(t[6]=e=>i.form.wechat=e),modelModifiers:{trim:!0},size:"small",autocomplete:"off"},null,8,["modelValue"])]),_:1})]),_:1},8,["model","rules"]),Object(n["createElementVNode"])("div",a,[Object(n["createVNode"])(h,{type:"primary",size:"small",onClick:l.save},{default:Object(n["withCtx"])(()=>t[8]||(t[8]=[Object(n["createTextVNode"])("确 定")])),_:1},8,["onClick"]),Object(n["createVNode"])(h,{size:"small",onClick:l.close},{default:Object(n["withCtx"])(()=>t[9]||(t[9]=[Object(n["createTextVNode"])("取 消")])),_:1},8,["onClick"])])]),_:1},8,["modelValue","title","onClose"])}var i=o("0fea"),l=o("cc5e"),s=o("fe05"),c={name:"ManageEdit",data(){return{form:{id:"",userName:"",nickName:"",password:"",phone:"",email:"",wechat:""},rules:{userName:[{required:!0,trigger:"blur",message:"请输入用户名"}],nickName:[{required:!0,trigger:"blur",message:"请输入姓名"}],phone:[{required:!0,trigger:"blur",message:"请输入手机号"}]},roleData:[],clearable:!0,roleId:"",parentData:[],title:"",dialogFormVisible:!1,diffData:{},ruleForm:[],deptData:[]}},created(){},methods:{async getDeptList(){const{data:e}=await Object(s["getDeptList"])();this.deptData=e},async getRoleData(){const e={page:1,size:10},{data:t}=await Object(l["getList"])(e);this.roleData=t.items},manageEdit(e){this.getRoleData(),this.getDeptList(),e?(this.title="编辑用户",this.roleId=e.id,this.form=Object.assign({},e),this.ruleForm=Object.assign({},e)):this.title="添加用户",this.dialogFormVisible=!0},close(){this.$refs["form"].resetFields(),this.form=this.$options.data().form,this.dialogFormVisible=!1,this.$emit("fetch-data")},getDiffData(){this.diffData={},Object.keys(this.form).forEach(e=>{this.form[e]!=this.ruleForm[e]&&(this.diffData[e]=this.form[e])})},save(){this.$refs["form"].validate(async e=>{if(!e)return!1;if(this.form.name=this.form.title,this.form.id){if(this.getDiffData(),0!=Object.keys(this.diffData).length){this.diffData.id=this.form.id;const{msg:e}=await Object(i["doEdit"])(this.diffData);this.$notify({title:e,type:"success"})}}else{delete this.form.id;const{msg:e}=await Object(i["doAdd"])(this.form);this.$notify({title:e,type:"success"})}this.$refs["form"].resetFields(),this.dialogFormVisible=!1,this.$parent.fetchData()})}}},d=(o("e444"),o("d959")),u=o.n(d);const m=u()(c,[["render",r]]);t["default"]=m},1745:function(e,t,o){"use strict";o("ca88")},"179a":function(e,t,o){"use strict";o.r(t);var n=o("f2bf");const a={class:"manage-container"},r={class:"manage-wrap"},i={class:"manage-input"},l={class:"manage-button"},s={class:"grid-content bg-purple"},c={class:"grid-content bg-purple"};function d(e,t,o,d,u,m){const h=Object(n["resolveComponent"])("el-form"),p=Object(n["resolveComponent"])("el-button"),b=Object(n["resolveComponent"])("el-form-item"),g=Object(n["resolveComponent"])("el-tree"),f=Object(n["resolveComponent"])("el-col"),v=Object(n["resolveComponent"])("el-table-column"),w=Object(n["resolveComponent"])("el-switch"),k=Object(n["resolveComponent"])("el-table"),C=Object(n["resolveComponent"])("el-row"),y=Object(n["resolveComponent"])("add-dept");return Object(n["openBlock"])(),Object(n["createElementBlock"])("div",a,[Object(n["createElementVNode"])("div",r,[Object(n["createElementVNode"])("div",i,[Object(n["createVNode"])(h,{ref:"form",model:u.form,"label-width":"80px","label-position":"left"},null,8,["model"])]),Object(n["createElementVNode"])("div",l,[Object(n["createVNode"])(b,{width:"100"},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(p,{type:"primary",size:"small",onClick:m.handleAdd},{default:Object(n["withCtx"])(()=>t[0]||(t[0]=[Object(n["createTextVNode"])(" 添加部门 ")])),_:1},8,["onClick"])]),_:1})])]),Object(n["createVNode"])(C,{gutter:20},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(f,{span:4},{default:Object(n["withCtx"])(()=>[Object(n["createElementVNode"])("div",s,[t[1]||(t[1]=Object(n["createElementVNode"])("h1",{style:{"margin-top":"0"}},"企业组织架构",-1)),Object(n["createVNode"])(g,{data:u.treeDeptData,props:u.defaultProps,"default-expand-all":!0},null,8,["data","props"])])]),_:1}),Object(n["createVNode"])(f,{span:20},{default:Object(n["withCtx"])(()=>[Object(n["createElementVNode"])("div",c,[Object(n["createVNode"])(k,{data:u.treeDeptData,style:{width:"100%","margin-bottom":"20px"},"row-key":"id",border:"","default-expand-all":"","tree-props":{children:"children",hasChildren:"hasChildren"}},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(v,{type:"selection",width:"40"}),Object(n["createVNode"])(v,{prop:"label",label:"部门名称",width:"300",align:"center"}),Object(n["createVNode"])(v,{prop:"weight",label:"排序",align:"center"}),Object(n["createVNode"])(v,{prop:"status",label:e.$t("dataEnquiry.zt"),align:"center",width:"100"},{default:Object(n["withCtx"])(({row:e})=>[Object(n["createVNode"])(w,{modelValue:e.status,"onUpdate:modelValue":t=>e.status=t,"active-value":"0","inactive-value":"1",onClick:t=>m.editStatus(e)},null,8,["modelValue","onUpdate:modelValue","onClick"])]),_:1},8,["label"]),Object(n["createVNode"])(v,{fixed:"right",label:e.$t("defalult.cz"),width:"280",align:"center"},{default:Object(n["withCtx"])(({row:o})=>[Object(n["createVNode"])(p,{type:"text",onClick:e=>m.handleEdit(o)},{default:Object(n["withCtx"])(()=>[Object(n["createTextVNode"])(Object(n["toDisplayString"])(e.$t("defalult.bj")),1)]),_:2},1032,["onClick"]),Object(n["createVNode"])(p,{type:"text",onClick:e=>m.handleDelete(o)},{default:Object(n["withCtx"])(()=>t[2]||(t[2]=[Object(n["createTextVNode"])(" 删除 ")])),_:2},1032,["onClick"])]),_:1},8,["label"])]),_:1},8,["data"])])]),_:1})]),_:1}),Object(n["createVNode"])(y,{ref:"add"},null,512)])}var u=o("fe05"),m=o("2f10"),h={components:{addDept:m["default"]},data(){return{currentPage1:5,currentPage2:5,currentPage3:5,currentPage4:4,form:{name:""},treeDeptData:[],deptData:[],defaultProps:{children:"children",label:"label"}}},created(){this.fetchData()},methods:{async fetchData(){this.listLoading=!0;const{data:e}=await Object(u["getDeptTreeList"])();this.treeDeptData=e,console.log(this.treeDeptData),setTimeout(()=>{this.listLoading=!1},500)},async editStatus(e){const{msg:t}=await Object(u["doDeptEdit"])({deptId:e.id,status:e.status,parentId:e.parentId});this.$message({type:"success",message:void 0==t?"修改成功":t});const o=this;setTimeout((function(){o.fetchData()}),1e3)},handleAdd(){this.$refs["add"].deptEdit()},handleEdit(e){this.$refs["add"].deptEdit(e)},handleDelete(e){this.$confirm("你确定要删除当前项吗?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(()=>{const{msg:t}=Object(u["doDeptDelete"])({deptId:e.deptId});this.$message({type:"success",message:void 0==t?"删除成功":t});const o=this;setTimeout((function(){o.fetchData()}),1e3)}).catch(()=>{this.$message({type:"info",message:"已取消删除"})})},handleQuery(){this.queryForm.page=1,this.fetchData()},handleSizeChange(e){this.queryForm.size=e,this.fetchData()},handleCurrentChange(e){this.queryForm.page=e,this.fetchData()}}},p=(o("a0c1"),o("d959")),b=o.n(p);const g=b()(h,[["render",d],["__scopeId","data-v-46f0413b"]]);t["default"]=g},"17ab":function(e,t,o){"use strict";o.r(t);var n=o("f2bf");const a={id:"personnel",style:{width:"100%",height:"300px"}};function r(e,t,o,r,i,l){return Object(n["openBlock"])(),Object(n["createElementBlock"])("div",a)}o("14d9");var i=o("313e"),l=o("365c"),s=o("5f99"),c={props:{time:{type:Array},all:{type:Boolean,default:!1}},data(){return{chartPie:null,yData:[],xData:[],maintenanceTime:"",isAllProject:!1}},watch:{time(e){this.maintenanceTime=e,this.getInspectionData(),setTimeout(()=>{this.drawCharts()},2e3)},all(e){this.isAllProject=e,this.getInspectionData(),setTimeout(()=>{this.drawCharts()},2e3)}},mounted:function(){},methods:{async getInspectionData(){var e=sessionStorage.getItem("projectId"),t={};t=0==this.isAllProject?{start:Object(s["getDate"])(this.maintenanceTime[0]),end:Object(s["getDate"])(this.maintenanceTime[1]),projectId:e}:{start:Object(s["getDate"])(this.maintenanceTime[0]),end:Object(s["getDate"])(this.maintenanceTime[1])};const{data:o}=await Object(l["getInspectionData"])(t);var n=[],a=[];o.byUser.forEach((function(e,t){t<10&&(n.push(e.key),a.push(e.data))})),this.xData=n,this.yData=a},drawPieChart(){this.chartPie=i["a"](document.getElementById("personnel")),this.chartPie.setOption({tooltip:{trigger:"item",axisPointer:{type:"shadow"}},title:{left:"center",text:"Statistics by personnel"},grid:{left:"3%",right:"4%",bottom:"3%",containLabel:!0},xAxis:[{type:"category",data:this.xData,axisTick:{alignWithLabel:!0}}],yAxis:[{type:"value"}],series:[{name:"Direct",type:"bar",barWidth:"60%",data:this.yData}]})},drawCharts(){this.drawPieChart()}}},d=o("d959"),u=o.n(d);const m=u()(c,[["render",r]]);t["default"]=m},"17be":function(e,t,o){"use strict";o.r(t);var n=o("f2bf");function a(e,t,o,a,r,i){return Object(n["openBlock"])(),Object(n["createElementBlock"])("div",null,t[0]||(t[0]=[Object(n["createElementVNode"])("div",{class:"form-layer"},[Object(n["createElementVNode"])("div",{id:"map"})],-1)]))}var r={name:"BdMap",emits:["getLatAndLng"],data(){return{map:null,local:null,mk:null,keyWords:"",longitude:"",latitude:""}},created(){""!=this.longitude&&""!=this.latitude||this.initMap()},methods:{initMap(){this.$nextTick(()=>{this.map=new BMap.Map("map");const e=""==this.longitude?"118.802":this.longitude,t=""==this.latitude?"32.064":this.latitude,o=new BMap.Point(e,t);this.map.centerAndZoom(o,18),this.map.enableScrollWheelZoom(!0),this.map.addControl(new window.BMap.NavigationControl),"118.802"!=e&&"32.064"!=t?this.handleMarker(this,o):(console.log("longitude="+e),console.log("latitude="+t),this.fixedPos())})},showMap(e){this.latitude=e.latitude,this.longitude=e.longitude,this.initMap()},fixedPos(){const e=this,t=new BMap.Geolocation;this.confirmLoading=!0,t.getCurrentPosition((function(t){if(this.getStatus()==window.BMAP_STATUS_SUCCESS){e.handleMarker(e,t.point),e.addListener(e);const o=new BMap.Geocoder;o.getLocation((function(t){e.confirmLoading=!1,t&&e.$emit("tellFatherName",t.point)}))}else e.$message.error("failed"+this.getStatus())}))},setPlace(e){this.keyWords=e,this.local=new BMap.LocalSearch(this.map,{onSearchComplete:this.searchPlace}),this.local.search(this.keyWords)},searchPlace(){if(void 0!=this.local.getResults())if(this.map.clearOverlays(),this.local.getResults().getPoi(0)){const e=this.local.getResults().getPoi(0).point;this.map.centerAndZoom(e,18),this.handleMarker(this,e),this.addListener(this,e),console.log("经度:"+e.lng+"--纬度"+e.lat),this.$emit("tellFatherName",e)}else this.$message.error("未匹配到地点!");else this.$message.error("未找到搜索结果!")},handleMarker(e,t){const o=this;e.mk=new BMap.Marker(t),e.map.addOverlay(e.mk),e.mk.enableDragging(),e.map.addEventListener("dragend",(function(e){o.$emit("tellFatherName",e.point)})),e.map.panTo(t)},addListener(e){const t=this;e.map.addEventListener("click",(function(e){t.$emit("tellFatherName",e.point),t.map.clearOverlays(),t.handleMarker(t,e.point)}))}}},i=(o("502f"),o("d959")),l=o.n(i);const s=l()(r,[["render",a],["__scopeId","data-v-702190e3"]]);t["default"]=s},"18af":function(e,t,o){"use strict";o("9504")},1911:function(e,t,o){"use strict";o.r(t);var n=o("f2bf");const a={class:"manage-container"};function r(e,t,o,r,i,l){const s=Object(n["resolveComponent"])("el-button"),c=Object(n["resolveComponent"])("vab-query-form"),d=Object(n["resolveComponent"])("el-input"),u=Object(n["resolveComponent"])("el-option"),m=Object(n["resolveComponent"])("el-select"),h=Object(n["resolveComponent"])("el-col"),p=Object(n["resolveComponent"])("el-row");return Object(n["openBlock"])(),Object(n["createElementBlock"])("div",a,[Object(n["createVNode"])(c,null,{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(s,{type:"primary"},{default:Object(n["withCtx"])(()=>t[20]||(t[20]=[Object(n["createTextVNode"])("追加")])),_:1}),Object(n["createVNode"])(s,{type:"primary",plain:""},{default:Object(n["withCtx"])(()=>t[21]||(t[21]=[Object(n["createTextVNode"])("批量追加")])),_:1})]),_:1}),Object(n["createVNode"])(p,null,{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(h,{span:24},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(d,{modelValue:i.input,"onUpdate:modelValue":t[0]||(t[0]=e=>i.input=e),placeholder:"传感器名称"},null,8,["modelValue"]),Object(n["createVNode"])(m,{modelValue:i.value1,"onUpdate:modelValue":t[1]||(t[1]=e=>i.value1=e),placeholder:"请选择"},{default:Object(n["withCtx"])(()=>[(Object(n["openBlock"])(!0),Object(n["createElementBlock"])(n["Fragment"],null,Object(n["renderList"])(i.options,e=>(Object(n["openBlock"])(),Object(n["createBlock"])(u,{key:e.value,label:e.label,value:e.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue"]),Object(n["createVNode"])(m,{modelValue:i.value2,"onUpdate:modelValue":t[2]||(t[2]=e=>i.value2=e),placeholder:"请选择"},{default:Object(n["withCtx"])(()=>[(Object(n["openBlock"])(!0),Object(n["createElementBlock"])(n["Fragment"],null,Object(n["renderList"])(i.options,e=>(Object(n["openBlock"])(),Object(n["createBlock"])(u,{key:e.value,label:e.label,value:e.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue"]),Object(n["createVNode"])(d,{modelValue:i.input,"onUpdate:modelValue":t[3]||(t[3]=e=>i.input=e),placeholder:"单位"},null,8,["modelValue"]),Object(n["createVNode"])(d,{modelValue:i.input,"onUpdate:modelValue":t[4]||(t[4]=e=>i.input=e),placeholder:"排序"},null,8,["modelValue"]),Object(n["createVNode"])(s,{type:"primary",plain:""},{default:Object(n["withCtx"])(()=>[Object(n["createTextVNode"])(Object(n["toDisplayString"])(e.$t("defalult.sc")),1)]),_:1})]),_:1})]),_:1}),Object(n["createVNode"])(p,{class:"add"},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(h,{span:16}),Object(n["createVNode"])(h,{span:8},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(s,{type:"primary"},{default:Object(n["withCtx"])(()=>t[22]||(t[22]=[Object(n["createTextVNode"])("添加上行映射")])),_:1}),Object(n["createVNode"])(s,{type:"primary",plain:""},{default:Object(n["withCtx"])(()=>t[23]||(t[23]=[Object(n["createTextVNode"])("添加下行映射")])),_:1})]),_:1}),Object(n["createVNode"])(h,{span:16},{default:Object(n["withCtx"])(()=>t[24]||(t[24]=[Object(n["createElementVNode"])("span",null,"下行映射 (2,2)=>(1,1)",-1)])),_:1}),Object(n["createVNode"])(h,{span:8},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(s,{type:"primary"},{default:Object(n["withCtx"])(()=>t[25]||(t[25]=[Object(n["createTextVNode"])("编辑映射")])),_:1}),Object(n["createVNode"])(s,{type:"primary",plain:""},{default:Object(n["withCtx"])(()=>t[26]||(t[26]=[Object(n["createTextVNode"])("删除映射")])),_:1})]),_:1})]),_:1}),Object(n["createVNode"])(p,null,{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(h,{span:24},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(d,{modelValue:i.input,"onUpdate:modelValue":t[5]||(t[5]=e=>i.input=e),placeholder:"传感器名称"},null,8,["modelValue"]),Object(n["createVNode"])(m,{modelValue:i.value1,"onUpdate:modelValue":t[6]||(t[6]=e=>i.value1=e),placeholder:"请选择"},{default:Object(n["withCtx"])(()=>[(Object(n["openBlock"])(!0),Object(n["createElementBlock"])(n["Fragment"],null,Object(n["renderList"])(i.options,e=>(Object(n["openBlock"])(),Object(n["createBlock"])(u,{key:e.value,label:e.label,value:e.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue"]),Object(n["createVNode"])(m,{modelValue:i.value2,"onUpdate:modelValue":t[7]||(t[7]=e=>i.value2=e),placeholder:"请选择"},{default:Object(n["withCtx"])(()=>[(Object(n["openBlock"])(!0),Object(n["createElementBlock"])(n["Fragment"],null,Object(n["renderList"])(i.options,e=>(Object(n["openBlock"])(),Object(n["createBlock"])(u,{key:e.value,label:e.label,value:e.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue"]),Object(n["createVNode"])(d,{modelValue:i.input,"onUpdate:modelValue":t[8]||(t[8]=e=>i.input=e),placeholder:"单位"},null,8,["modelValue"]),Object(n["createVNode"])(d,{modelValue:i.input,"onUpdate:modelValue":t[9]||(t[9]=e=>i.input=e),placeholder:"排序"},null,8,["modelValue"]),Object(n["createVNode"])(s,{type:"primary",plain:""},{default:Object(n["withCtx"])(()=>[Object(n["createTextVNode"])(Object(n["toDisplayString"])(e.$t("defalult.sc")),1)]),_:1})]),_:1}),Object(n["createVNode"])(h,{span:24},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(d,{modelValue:i.input,"onUpdate:modelValue":t[10]||(t[10]=e=>i.input=e),placeholder:"传感器名称"},null,8,["modelValue"]),Object(n["createVNode"])(m,{modelValue:i.value1,"onUpdate:modelValue":t[11]||(t[11]=e=>i.value1=e),placeholder:"请选择"},{default:Object(n["withCtx"])(()=>[(Object(n["openBlock"])(!0),Object(n["createElementBlock"])(n["Fragment"],null,Object(n["renderList"])(i.options,e=>(Object(n["openBlock"])(),Object(n["createBlock"])(u,{key:e.value,label:e.label,value:e.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue"]),Object(n["createVNode"])(m,{modelValue:i.value2,"onUpdate:modelValue":t[12]||(t[12]=e=>i.value2=e),placeholder:"请选择"},{default:Object(n["withCtx"])(()=>[(Object(n["openBlock"])(!0),Object(n["createElementBlock"])(n["Fragment"],null,Object(n["renderList"])(i.options,e=>(Object(n["openBlock"])(),Object(n["createBlock"])(u,{key:e.value,label:e.label,value:e.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue"]),Object(n["createVNode"])(d,{modelValue:i.input,"onUpdate:modelValue":t[13]||(t[13]=e=>i.input=e),placeholder:"单位"},null,8,["modelValue"]),Object(n["createVNode"])(d,{modelValue:i.input,"onUpdate:modelValue":t[14]||(t[14]=e=>i.input=e),placeholder:"排序"},null,8,["modelValue"]),Object(n["createVNode"])(s,{type:"primary",plain:""},{default:Object(n["withCtx"])(()=>[Object(n["createTextVNode"])(Object(n["toDisplayString"])(e.$t("defalult.sc")),1)]),_:1})]),_:1}),Object(n["createVNode"])(h,{span:24},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(d,{modelValue:i.input,"onUpdate:modelValue":t[15]||(t[15]=e=>i.input=e),placeholder:"传感器名称"},null,8,["modelValue"]),Object(n["createVNode"])(m,{modelValue:i.value1,"onUpdate:modelValue":t[16]||(t[16]=e=>i.value1=e),placeholder:"请选择"},{default:Object(n["withCtx"])(()=>[(Object(n["openBlock"])(!0),Object(n["createElementBlock"])(n["Fragment"],null,Object(n["renderList"])(i.options,e=>(Object(n["openBlock"])(),Object(n["createBlock"])(u,{key:e.value,label:e.label,value:e.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue"]),Object(n["createVNode"])(m,{modelValue:i.value2,"onUpdate:modelValue":t[17]||(t[17]=e=>i.value2=e),placeholder:"请选择"},{default:Object(n["withCtx"])(()=>[(Object(n["openBlock"])(!0),Object(n["createElementBlock"])(n["Fragment"],null,Object(n["renderList"])(i.options,e=>(Object(n["openBlock"])(),Object(n["createBlock"])(u,{key:e.value,label:e.label,value:e.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue"]),Object(n["createVNode"])(d,{modelValue:i.input,"onUpdate:modelValue":t[18]||(t[18]=e=>i.input=e),placeholder:"单位"},null,8,["modelValue"]),Object(n["createVNode"])(d,{modelValue:i.input,"onUpdate:modelValue":t[19]||(t[19]=e=>i.input=e),placeholder:"排序"},null,8,["modelValue"]),Object(n["createVNode"])(s,{type:"primary",plain:""},{default:Object(n["withCtx"])(()=>[Object(n["createTextVNode"])(Object(n["toDisplayString"])(e.$t("defalult.sc")),1)]),_:1})]),_:1})]),_:1}),Object(n["createVNode"])(c,null,{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(s,{type:"primary"},{default:Object(n["withCtx"])(()=>t[27]||(t[27]=[Object(n["createTextVNode"])("提交")])),_:1}),Object(n["createVNode"])(s,{type:"primary",plain:""},{default:Object(n["withCtx"])(()=>t[28]||(t[28]=[Object(n["createTextVNode"])("返回")])),_:1})]),_:1})])}var i={name:"Sensor",data(){return{input:"",value1:"",value2:"",options:[{value:"选项1",label:"所有设备"},{value:"选项2",label:"已连接设备"},{value:"选项3",label:"未连接设备"},{value:"选项4",label:"已禁用设备"},{value:"选项5",label:"已删除设备"}]}}},l=(o("4297"),o("d959")),s=o.n(l);const c=s()(i,[["render",r],["__scopeId","data-v-0306c667"]]);t["default"]=c},1941:function(e,t,o){"use strict";o.r(t);var n=o("f2bf");const a={class:"manage-container"};function r(e,t,o,r,i,l){const s=Object(n["resolveComponent"])("el-table-column"),c=Object(n["resolveComponent"])("el-tag"),d=Object(n["resolveComponent"])("el-button"),u=Object(n["resolveComponent"])("el-table"),m=Object(n["resolveDirective"])("loading");return Object(n["openBlock"])(),Object(n["createElementBlock"])("div",a,[Object(n["withDirectives"])((Object(n["openBlock"])(),Object(n["createBlock"])(u,{id:"table",data:i.tableData,border:"",stripe:"",style:{width:"100%"}},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(s,{prop:"id",label:e.$t("monitorVideo.sbid"),width:"220",align:"center"},null,8,["label"]),Object(n["createVNode"])(s,{prop:"account",label:e.$t("monitorVideo.zh"),width:"120",align:"center"},null,8,["label"]),Object(n["createVNode"])(s,{prop:"deviceSerial",label:e.$t("monitorVideo.sbxlh"),width:"100",align:"center"},null,8,["label"]),Object(n["createVNode"])(s,{prop:"deviceName",label:e.$t("monitorVideo.sbmc"),align:"center"},null,8,["label"]),Object(n["createVNode"])(s,{prop:"addTime",label:e.$t("monitorVideo.tjsj"),width:"180",align:"center"},null,8,["label"]),Object(n["createVNode"])(s,{prop:"ldDeviceName",label:e.$t("monitorVideo.sszd"),width:"100",align:"center"},null,8,["label"]),Object(n["createVNode"])(s,{prop:"status",label:e.$t("monitorVideo.ljzt"),width:"100",align:"center"},{default:Object(n["withCtx"])(({row:t})=>[1==t.status?(Object(n["openBlock"])(),Object(n["createBlock"])(c,{key:0,effect:"dark",type:"success",size:"mini"},{default:Object(n["withCtx"])(()=>[Object(n["createTextVNode"])(Object(n["toDisplayString"])(e.$t("defalult.zx")),1)]),_:1})):Object(n["createCommentVNode"])("",!0),0==t.status?(Object(n["openBlock"])(),Object(n["createBlock"])(c,{key:1,effect:"dark",type:"danger",size:"mini"},{default:Object(n["withCtx"])(()=>[Object(n["createTextVNode"])(Object(n["toDisplayString"])(e.$t("defalult.lx")),1)]),_:1})):Object(n["createCommentVNode"])("",!0)]),_:1},8,["label"]),Object(n["createVNode"])(s,{fixed:"right",label:e.$t("defalult.chongz"),width:"100",align:"center"},{default:Object(n["withCtx"])(({row:t})=>[Object(n["createVNode"])(d,{type:"text",onClick:e=>l.handleLive(t)},{default:Object(n["withCtx"])(()=>[Object(n["createTextVNode"])(Object(n["toDisplayString"])(e.$t("defalult.bf")),1)]),_:2},1032,["onClick"])]),_:1},8,["label"])]),_:1},8,["data"])),[[m,i.listLoading]])])}o("14d9");var i=o("093a"),l={data(){return{tableData:[],lazy:!0,layout:"total, sizes, prev, pager, next, jumper",total:0,background:!0,listLoading:!1,elementLoadingText:"正在加载...",queryForm:{projectId:""}}},created(){this.queryForm.projectId=sessionStorage.getItem("projectId"),this.fetchData()},methods:{async fetchData(){const{data:e}=await Object(i["getList"])(this.queryForm);this.tableData=e},handleLive(e){this.$router.push({path:"/fluoriteSensorData",name:"监控视频",query:{account:e.account,deviceSerial:e.deviceSerial}})}}},s=(o("6f35"),o("d959")),c=o.n(s);const d=c()(l,[["render",r]]);t["default"]=d},1967:function(e,t,o){"use strict";o.r(t);var n=o("f2bf");const a={class:"manage-container"};function r(e,t,o,r,i,l){const s=Object(n["resolveComponent"])("el-button"),c=Object(n["resolveComponent"])("vab-query-form"),d=Object(n["resolveComponent"])("el-table-column"),u=Object(n["resolveComponent"])("el-table"),m=Object(n["resolveComponent"])("el-pagination"),h=Object(n["resolveComponent"])("vab-query-form-right-panel"),p=Object(n["resolveDirective"])("loading");return Object(n["openBlock"])(),Object(n["createElementBlock"])("div",a,[Object(n["createVNode"])(c,null,{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(s,{type:"primary",onClick:l.handleAdd},{default:Object(n["withCtx"])(()=>t[0]||(t[0]=[Object(n["createTextVNode"])("添加组")])),_:1},8,["onClick"])]),_:1}),Object(n["withDirectives"])((Object(n["openBlock"])(),Object(n["createBlock"])(u,{data:i.groupData,border:"",stripe:"",style:{width:"100%"}},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(d,{prop:"id",label:"ID",width:"60",align:"center"}),Object(n["createVNode"])(d,{prop:"name",label:"组名称1",width:"120",align:"center"}),Object(n["createVNode"])(d,{prop:"createTime",label:e.$t("grouping.cjsj"),width:"200",align:"center"},null,8,["label"]),Object(n["createVNode"])(d,{prop:"updateTime",label:e.$t("grouping.gxsj"),width:"200",align:"center"},null,8,["label"]),Object(n["createVNode"])(d,{fixed:"right",label:e.$t("defalult.cz"),align:"center"},{default:Object(n["withCtx"])(({row:t})=>[Object(n["createVNode"])(s,{type:"text",onClick:e=>l.handleDelete(t)},{default:Object(n["withCtx"])(()=>[Object(n["createTextVNode"])(Object(n["toDisplayString"])(e.$t("defalult.sc")),1)]),_:2},1032,["onClick"])]),_:1},8,["label"])]),_:1},8,["data"])),[[p,i.listLoading]]),Object(n["createVNode"])(c,null,{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(h,null,{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(m,{background:i.background,"current-page":i.queryForm.page,layout:i.layout,"page-size":i.queryForm.size,total:i.total,onCurrentChange:l.handleCurrentChange,onSizeChange:l.handleSizeChange},null,8,["background","current-page","layout","page-size","total","onCurrentChange","onSizeChange"])]),_:1})]),_:1})])}var i=o("23ba"),l={name:"Index",components:{},data(){return{groupData:[],lazy:!0,activeName:"first",layout:"total, sizes, prev, pager, next, jumper",total:0,input:"",textarea:"",list:[],background:!0,listLoading:!0,elementLoadingText:"正在加载...",queryForm:{page:1,size:20,name:""}}},computed:{height(){return 500}},created(){this.fetchData()},methods:{async fetchData(){this.listLoading=!0;const{data:e,total:t}=await Object(i["getList"])(this.queryForm);this.projectData=e.items,this.total=t,setTimeout(()=>{this.listLoading=!1},500)},handleAdd(){this.$refs["edit"].showEdit()},handleEdit(e){this.$refs["edit"].showEdit(e)},handleQuery(){this.queryForm.page=1,this.fetchData()},handleSizeChange(e){this.queryForm.size=e,this.fetchData()},handleCurrentChange(e){this.queryForm.page=e,this.fetchData()},handleDelete(e){const t=this;e.id&&this.$confirm("你确定要删除当前项吗?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(()=>{const{msg:o}=Object(i["doDelete"])([e.id]);this.$message({type:"success",message:void 0==o?"删除成功":o}),setTimeout((function(){t.fetchData()}),1e3)}).catch(()=>{this.$message({type:"info",message:"已取消删除"})})}}},s=(o("a9a2"),o("d959")),c=o.n(s);const d=c()(l,[["render",r]]);t["default"]=d},"198a":function(e,t,o){"use strict";o.r(t);var n=o("f2bf");const a={class:"manage-container"},r={class:"manage-wrap"},i={class:"manage-input"},l={class:"manage-button"};function s(e,t,o,s,c,d){const u=Object(n["resolveComponent"])("el-input"),m=Object(n["resolveComponent"])("el-form-item"),h=Object(n["resolveComponent"])("el-date-picker"),p=Object(n["resolveComponent"])("vab-query-form"),b=Object(n["resolveComponent"])("el-form"),g=Object(n["resolveComponent"])("el-button"),f=Object(n["resolveComponent"])("el-table-column"),v=Object(n["resolveComponent"])("el-table"),w=Object(n["resolveComponent"])("el-pagination"),k=Object(n["resolveComponent"])("water-graph"),C=Object(n["resolveDirective"])("loading");return Object(n["openBlock"])(),Object(n["createElementBlock"])("div",a,[Object(n["createElementVNode"])("div",r,[Object(n["createElementVNode"])("div",i,[Object(n["createVNode"])(b,{ref:"queryForm",model:c.queryForm,"label-width":"80px"},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(p,null,{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(m,{width:"150",prop:"deviceName",label:e.$t("dataEnquiry.zdmc")},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(u,{modelValue:c.queryForm.deviceName,"onUpdate:modelValue":t[0]||(t[0]=e=>c.queryForm.deviceName=e),size:"small",placeholder:e.$t("dataEnquiry.qsrzdmc")},null,8,["modelValue","placeholder"])]),_:1},8,["label"]),Object(n["createVNode"])(m,{width:"100",prop:"month",label:e.$t("defalult.sj")},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(h,{modelValue:c.queryForm.month,"onUpdate:modelValue":t[1]||(t[1]=e=>c.queryForm.month=e),size:"small",type:"month",placeholder:e.$t("dfunction.xzsj"),onChange:d.standardToTime},null,8,["modelValue","placeholder","onChange"])]),_:1},8,["label"])]),_:1})]),_:1},8,["model"])]),Object(n["createElementVNode"])("div",l,[Object(n["createVNode"])(g,{size:"small",onClick:t[2]||(t[2]=e=>d.resetForm())},{default:Object(n["withCtx"])(()=>[Object(n["createTextVNode"])(Object(n["toDisplayString"])(e.$t("defalult.chongz")),1)]),_:1}),Object(n["createVNode"])(g,{type:"primary",size:"small",onClick:d.search},{default:Object(n["withCtx"])(()=>[Object(n["createTextVNode"])(Object(n["toDisplayString"])(e.$t("defalult.cx")),1)]),_:1},8,["onClick"]),Object(n["createVNode"])(g,{type:"primary",size:"small",onClick:d.exportData},{default:Object(n["withCtx"])(()=>[Object(n["createTextVNode"])(Object(n["toDisplayString"])(e.$t("defalult.dc")),1)]),_:1},8,["onClick"])])]),Object(n["withDirectives"])((Object(n["openBlock"])(),Object(n["createBlock"])(v,{ref:"multipleTable",data:c.reportData,border:"","tooltip-effect":"light",style:{width:"100%"}},{default:Object(n["withCtx"])(()=>[(Object(n["openBlock"])(!0),Object(n["createElementBlock"])(n["Fragment"],null,Object(n["renderList"])(c.headerData,(e,t)=>(Object(n["openBlock"])(),Object(n["createBlock"])(f,{key:t,label:e,prop:e,fixed:"站点名称"==e,align:"center",width:"150"},null,8,["label","prop","fixed"]))),128)),Object(n["createVNode"])(f,{fixed:"right",label:e.$t("defalult.cz"),align:"center"},{default:Object(n["withCtx"])(({row:t})=>[Object(n["createVNode"])(g,{type:"text",onClick:e=>d.graph(t)},{default:Object(n["withCtx"])(()=>[Object(n["createTextVNode"])(Object(n["toDisplayString"])(e.$t("dfunction.qxt")),1)]),_:2},1032,["onClick"])]),_:1},8,["label"])]),_:1},8,["data"])),[[C,c.listLoading]]),Object(n["createVNode"])(w,{background:c.background,"current-page":c.queryForm.page,layout:c.layout,"page-size":c.queryForm.size,total:c.total,style:{"text-align":"right"},onCurrentChange:d.handleCurrentChange,onSizeChange:d.handleSizeChange},null,8,["background","current-page","layout","page-size","total","onCurrentChange","onSizeChange"]),Object(n["createVNode"])(k,{ref:"water"},null,512)])}o("14d9");var c=o("94b0"),d=o("3038"),u=o("4b95"),m={name:"Index",components:{waterGraph:u["default"]},data(){return{reportData:[],headerData:{},lazy:!0,activeName:"first",layout:"total, sizes, prev, pager, next, jumper",total:0,input:"",textarea:"",background:!0,listLoading:!0,elementLoadingText:"正在加载...",queryForm:{page:1,size:20,month:"",projectId:"",deviceName:""}}},computed:{height(){return 500}},created(){this.setDefaultTime(),this.queryForm.projectId=sessionStorage.getItem("projectId"),setTimeout(()=>{this.fetchData()},1e3)},methods:{graph(e){this.$refs["water"].showData(e,"waterChar")},getDate(e=""){var t=new Date;""!=e&&(t=new Date(e));const o=t.getFullYear();let n=t.getMonth();return n+=1,n=n.toString().padStart(2,"0"),`${o}-${n}`},standardToTime(){this.queryForm.month=this.getDate(this.queryForm.month)},setDefaultTime(){this.queryForm.month=this.getDate()},async exportData(){const e=await Object(c["exportDevice"])(this.queryForm);d["default"].downloadFile(e,{fileName:"水量日报.xls"})},async fetchData(){this.listLoading=!0;const{data:e}=await Object(c["monthlyReport"])(this.queryForm),t=e.items;for(var o=[],n=0;n<t.length;n++)o.push(t[n]);this.reportData=e.items,this.headerData=Object.keys(o[0]),this.total=e.total,setTimeout(()=>{this.listLoading=!1},500)},showData(){this.setDefaultTime(),this.queryForm.projectId=sessionStorage.getItem("projectId"),setTimeout(()=>{this.fetchData()},1e3)},search(){this.fetchData()},resetForm(){this.$refs.queryForm.resetFields()},handleAdd(){this.$refs["edit"].showEdit()},handleEdit(e){this.$refs["edit"].showEdit(e)},handleQuery(){this.queryForm.page=1,this.fetchData()},handleSizeChange(e){this.queryForm.size=e,this.fetchData()},handleCurrentChange(e){this.queryForm.page=e,this.fetchData()}}},h=(o("3318"),o("d959")),p=o.n(h);const b=p()(m,[["render",s],["__scopeId","data-v-6cd72396"]]);t["default"]=b},"1a47":function(e,t,o){"use strict";o.r(t);var n=o("f2bf");const a=["src"],r={class:"dialog-footer"};function i(e,t,o,i,l,s){const c=Object(n["resolveComponent"])("el-option"),d=Object(n["resolveComponent"])("el-select"),u=Object(n["resolveComponent"])("el-form-item"),m=Object(n["resolveComponent"])("el-upload"),h=Object(n["resolveComponent"])("el-form"),p=Object(n["resolveComponent"])("el-button"),b=Object(n["resolveComponent"])("el-dialog");return Object(n["openBlock"])(),Object(n["createBlock"])(b,{modelValue:l.dialogFormVisible,"onUpdate:modelValue":t[3]||(t[3]=e=>l.dialogFormVisible=e),title:l.title,width:"500px",onClose:s.close},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(h,{ref:"form",model:l.form,"label-width":"80px","label-position":"left"},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(u,{label:"站点"},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(d,{modelValue:l.form.deviceCode,"onUpdate:modelValue":t[0]||(t[0]=e=>l.form.deviceCode=e),filterable:"",placeholder:"站点"},{default:Object(n["withCtx"])(()=>[(Object(n["openBlock"])(!0),Object(n["createElementBlock"])(n["Fragment"],null,Object(n["renderList"])(l.devicesData,e=>(Object(n["openBlock"])(),Object(n["createBlock"])(c,{key:e.code,label:e.name,value:e.code},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),Object(n["createVNode"])(u,{label:e.$t("maintenance.bxsbsj")},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(d,{modelValue:l.form.equipmentName,"onUpdate:modelValue":t[1]||(t[1]=e=>l.form.equipmentName=e),filterable:"",placeholder:"报修设备名称"},{default:Object(n["withCtx"])(()=>[(Object(n["openBlock"])(!0),Object(n["createElementBlock"])(n["Fragment"],null,Object(n["renderList"])(l.equipmentNameData,e=>(Object(n["openBlock"])(),Object(n["createBlock"])(c,{key:e.dataCode,label:e.dataValue,value:e.dataCode},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1},8,["label"]),Object(n["createVNode"])(u,{label:e.$t("maintenance.bxlx")},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(d,{modelValue:l.form.repairType,"onUpdate:modelValue":t[2]||(t[2]=e=>l.form.repairType=e),filterable:"",placeholder:"报修类型"},{default:Object(n["withCtx"])(()=>[(Object(n["openBlock"])(!0),Object(n["createElementBlock"])(n["Fragment"],null,Object(n["renderList"])(l.repairTypeData,e=>(Object(n["openBlock"])(),Object(n["createBlock"])(c,{key:e.dataCode,label:e.dataValue,value:e.dataCode},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1},8,["label"]),Object(n["createVNode"])(u,{label:"报修图片"},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(m,{class:"avatar-uploader",action:l.fileUpdateUrl,headers:{token:l.token},multiple:!0,"show-file-list":!1,"on-success":s.handleAvatarSuccess,"before-upload":s.beforeAvatarUpload},{default:Object(n["withCtx"])(()=>[(Object(n["openBlock"])(!0),Object(n["createElementBlock"])(n["Fragment"],null,Object(n["renderList"])(l.imageUrl,(e,t)=>(Object(n["openBlock"])(),Object(n["createElementBlock"])("div",{key:t},[e.filePath?(Object(n["openBlock"])(),Object(n["createElementBlock"])("img",{key:0,src:e.filePath,class:"avatar"},null,8,a)):Object(n["createCommentVNode"])("",!0)]))),128)),t[4]||(t[4]=Object(n["createElementVNode"])("i",{class:"el-icon-plus avatar-uploader-icon"},null,-1))]),_:1},8,["action","headers","on-success","before-upload"])]),_:1})]),_:1},8,["model"]),Object(n["createElementVNode"])("div",r,[Object(n["createVNode"])(p,{onClick:s.close},{default:Object(n["withCtx"])(()=>t[5]||(t[5]=[Object(n["createTextVNode"])("取 消")])),_:1},8,["onClick"]),Object(n["createVNode"])(p,{type:"primary",onClick:s.save},{default:Object(n["withCtx"])(()=>t[6]||(t[6]=[Object(n["createTextVNode"])("确 定")])),_:1},8,["onClick"])])]),_:1},8,["modelValue","title","onClose"])}o("14d9");var l=o("c3be"),s=o("b199"),c=o("f121"),d=o("4360"),u={data(){return{form:{id:"",deviceCode:"",equipmentName:"",repairType:"",repairImg:""},projectId:"",fileUpdateUrl:"",clearable:!0,title:"",token:"",imageUrl:[],dialogFormVisible:!1,devicesData:[],equipmentNameData:[],repairTypeData:[]}},created(){},methods:{showEdit(e){if(e){this.title="编辑在线保修";const o=Object.assign({},e),n=o.repairImg.split(",");for(let e=0;e<n.length;e++){var t="/static/img/"+n[e];this.imageUrl.push({filePath:t})}this.form.id=o.id,this.form.deviceCode=o.device.code,this.form.equipmentName=o.equipmentName.dataCode,this.form.repairType=o.repairType.dataCode,this.form.repairImg=o.repairImg}else this.title="添加在线保修";this.dialogFormVisible=!0,this.projectId=sessionStorage.getItem("projectId"),this.setUploadUrl(),this.getDevicesData(),this.getDictData()},async getDictData(){const{data:e}=await Object(l["getDictData"])();this.equipmentNameData=e.equipmentName,this.repairTypeData=e.repairType},async getDevicesData(){const{data:e}=await Object(s["getDevices"])({projectId:this.projectId});this.devicesData=e},setUploadUrl(){this.token=d["default"].getters["user/token"],this.fileUpdateUrl=c["baseURL"]+"/file/uploadImg"},handleAvatarSuccess(e,t){const o=this.imageUrl,n=this.form.repairImg;this.form.repairImg=""!=n?n+","+t.name:t.name;const a="/static/img/"+t.name;o.push({filePath:a}),this.imageUrl=o},beforeAvatarUpload(e){const t=e.size/1024/1024<2;return t||this.$message.error("上传头像图片大小不能超过 2MB!"),t},close(){this.$refs["form"].resetFields(),this.form=this.$options.data().form,this.dialogFormVisible=!1,this.$emit("fetch-data")},save(){this.$refs["form"].validate(async e=>{if(!e)return!1;if(this.form.id){const{msg:e}=await Object(l["doEdit"])(this.form);this.$notify({title:e,type:"success"})}else{delete this.form.id;const{msg:e}=await Object(l["doAdd"])(this.form);this.$notify({title:e,type:"success"})}this.$refs["form"].resetFields(),this.$parent.fetchData(),this.dialogFormVisible=!1})}}},m=(o("f3b9"),o("d959")),h=o.n(m);const p=h()(u,[["render",i]]);t["default"]=p},"1a51":function(e,t,o){"use strict";o("a332")},"1b0a":function(e,t,o){"use strict";o.r(t),o.d(t,"getList",(function(){return r})),o.d(t,"dict",(function(){return i})),o.d(t,"getDevices",(function(){return l})),o.d(t,"doAdd",(function(){return s})),o.d(t,"toEdit",(function(){return c})),o.d(t,"doDelete",(function(){return d})),o.d(t,"doExport",(function(){return u}));var n=o("b775"),a=o("f121");function r(e){var t="?page="+e.page+"&size="+e.size+"&projectId="+e.projectId;return""!=e.deviceName&&(t+="&deviceName="+e.deviceName),""!=e.inspectorName&&(t+="&inspectorName="+e.inspectorName),""!=e.date&&(t+="&date="+e.date),Object(n["default"])({url:"/inspection/list"+t,method:"get",data:e})}function i(e){return Object(n["default"])({url:"/inspection/dict",method:"get",data:e})}function l(e){return Object(n["default"])({url:"/task/devices?projectId="+e.projectId,method:"get",data:e})}function s(e){return Object(n["default"])({url:"/inspection/add",method:"post",data:e})}function c(e){return Object(n["default"])({url:"/inspection/update",method:"post",data:e})}function d(e){return Object(n["default"])({url:"/inspection/remove",method:"post",data:e})}function u(e){var t="?projectId="+e.projectId;return""!=e.projectId&&(t+="&projectId="+e.projectId),a["baseURL"]+"/taskReport/export"+t}},"1b19":function(e,t,o){"use strict";o.r(t);var n=o("f2bf");const a={class:"manage-container"};function r(e,t,o,r,i,l){const s=Object(n["resolveComponent"])("el-date-picker"),c=Object(n["resolveComponent"])("el-form-item"),d=Object(n["resolveComponent"])("el-input"),u=Object(n["resolveComponent"])("el-button"),m=Object(n["resolveComponent"])("vab-query-form"),h=Object(n["resolveComponent"])("el-form"),p=Object(n["resolveComponent"])("el-row"),b=Object(n["resolveComponent"])("el-table-column"),g=Object(n["resolveComponent"])("el-table"),f=Object(n["resolveComponent"])("el-pagination"),v=Object(n["resolveComponent"])("vab-query-form-right-panel"),w=Object(n["resolveDirective"])("loading");return Object(n["openBlock"])(),Object(n["createElementBlock"])("div",a,[Object(n["createVNode"])(p,null,{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(h,{ref:"form",model:e.form,"label-width":"80px"},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(m,null,{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(c,{label:e.$t("defalult.sj")},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(s,{modelValue:e.value1,"onUpdate:modelValue":t[0]||(t[0]=t=>e.value1=t),type:"daterange","range-separator":"至","start-placeholder":"开始日期","end-placeholder":"结束日期"},null,8,["modelValue"])]),_:1},8,["label"]),Object(n["createVNode"])(c,{label:"工单编号"},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(d,{modelValue:i.queryForm.name,"onUpdate:modelValue":t[1]||(t[1]=e=>i.queryForm.name=e),placeholder:"请输入工单编号"},null,8,["modelValue"])]),_:1}),Object(n["createVNode"])(c,{label:"关键字"},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(d,{modelValue:i.queryForm.name,"onUpdate:modelValue":t[2]||(t[2]=e=>i.queryForm.name=e),placeholder:"请输入关键字"},null,8,["modelValue"])]),_:1}),Object(n["createVNode"])(u,{type:"primary",onClick:e.search},{default:Object(n["withCtx"])(()=>[Object(n["createTextVNode"])(Object(n["toDisplayString"])(e.$t("defalult.cx")),1)]),_:1},8,["onClick"]),Object(n["createVNode"])(u,{type:"primary",onClick:e.search},{default:Object(n["withCtx"])(()=>[Object(n["createTextVNode"])(Object(n["toDisplayString"])(e.$t("defalult.dc")),1)]),_:1},8,["onClick"])]),_:1})]),_:1},8,["model"])]),_:1}),Object(n["withDirectives"])((Object(n["openBlock"])(),Object(n["createBlock"])(g,{data:i.data,border:"",stripe:"",style:{width:"100%"}},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(b,{prop:"id",label:e.$t("trigger.xh"),width:"60",align:"center"},null,8,["label"]),Object(n["createVNode"])(b,{prop:"jiedao",label:"工单编号",width:"120",align:"center"}),Object(n["createVNode"])(b,{prop:"shequ",label:"工单类型",width:"200",align:"center"}),Object(n["createVNode"])(b,{prop:"mingcheng",label:e.$t("maintenance.zdlx"),width:"200",align:"center"},null,8,["label"]),Object(n["createVNode"])(b,{prop:"guimo",label:"业务类型",width:"200",align:"center"}),Object(n["createVNode"])(b,{prop:"kaishi1",label:"站点",width:"200",align:"center"}),Object(n["createVNode"])(b,{prop:"jieshu1",label:"街道类型",width:"200",align:"center"}),Object(n["createVNode"])(b,{prop:"dangqian",label:"位置",width:"200",align:"center"}),Object(n["createVNode"])(b,{prop:"kaishi2",label:"工单描述",width:"200",align:"center"}),Object(n["createVNode"])(b,{prop:"jieshu2",label:e.$t("grouping.cjsj"),width:"200",align:"center"},null,8,["label"]),Object(n["createVNode"])(b,{fixed:"right",label:e.$t("defalult.cz"),align:"center"},{default:Object(n["withCtx"])(({row:t})=>[Object(n["createVNode"])(u,{type:"text",onClick:e=>l.handleDelete(t)},{default:Object(n["withCtx"])(()=>[Object(n["createTextVNode"])(Object(n["toDisplayString"])(e.$t("defalult.sc")),1)]),_:2},1032,["onClick"])]),_:1},8,["label"])]),_:1},8,["data"])),[[w,i.listLoading]]),Object(n["createVNode"])(m,null,{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(v,null,{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(f,{background:i.background,"current-page":i.queryForm.page,layout:i.layout,"page-size":i.queryForm.size,total:i.total,onCurrentChange:l.handleCurrentChange,onSizeChange:l.handleSizeChange},null,8,["background","current-page","layout","page-size","total","onCurrentChange","onSizeChange"])]),_:1})]),_:1})])}var i={name:"Index",components:{},data(){return{data:[{id:1,jiedao:"123456",shequ:"工单类型",mingcheng:"站点类型",guimo:"业务类型",kaishi1:"站点",jieshu1:"街道类型",dangqian:"位置",kaishi2:"工单描述",jieshu2:"2022-10-1"},{id:2,jiedao:"123456",shequ:"工单类型",mingcheng:"站点类型",guimo:"业务类型",kaishi1:"站点",jieshu1:"街道类型",dangqian:"位置",kaishi2:"工单描述",jieshu2:"2022-10-1"},{id:3,jiedao:"123456",shequ:"工单类型",mingcheng:"站点类型",guimo:"业务类型",kaishi1:"站点",jieshu1:"街道类型",dangqian:"位置",kaishi2:"工单描述",jieshu2:"2022-10-1"}],lazy:!0,activeName:"first",layout:"total, sizes, prev, pager, next, jumper",total:0,input:"",textarea:"",list:[],background:!0,listLoading:!0,elementLoadingText:"正在加载...",queryForm:{page:1,size:20,name:""}}},computed:{height(){return 500}},created(){this.fetchData()},methods:{async fetchData(){this.listLoading=!0,setTimeout(()=>{this.listLoading=!1},500)},handleAdd(){this.$refs["edit"].showEdit()},handleEdit(e){this.$refs["edit"].showEdit(e)},handleQuery(){this.queryForm.page=1,this.fetchData()},handleSizeChange(e){this.queryForm.size=e,this.fetchData()},handleCurrentChange(e){this.queryForm.page=e,this.fetchData()},handleDelete(e){e.id&&this.$confirm("你确定要删除当前项吗?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(()=>{this.$message({type:"success",message:"删除成功"})}).catch(()=>{this.$message({type:"info",message:"已取消删除"})})}}},l=(o("acc2"),o("d959")),s=o.n(l);const c=s()(i,[["render",r],["__scopeId","data-v-4168fa1a"]]);t["default"]=c},"1b23":function(e,t,o){"use strict";o("1566")},"1b26":function(e,t,o){e.exports={"menu-color":"hsla(0,0%,27%,.95)","menu-color-active":"hsla(208,100%,55%,.95)","menu-background":"#fff","gallery-second-menu-background":"#fff"}},"1bcb":function(e,t,o){"use strict";o("477e")},"1cfa":function(e,t,o){"use strict";o("0018")},"1d11":function(e,t,o){e.exports={"menu-color":"hsla(0,0%,27%,.95)","menu-color-active":"hsla(208,100%,55%,.95)","menu-background":"#fff","gallery-second-menu-background":"#fff"}},"1d25":function(e,t,o){"use strict";o("af55")},"1da8":function(e,t,o){},"1df0":function(e,t,o){},"1e8c":function(e,t,o){"use strict";o.r(t);var n=o("f2bf");const a=["src"];function r(e,t,o,r,i,l){const s=Object(n["resolveComponent"])("el-button"),c=Object(n["resolveDirective"])("loading");return Object(n["withDirectives"])((Object(n["openBlock"])(),Object(n["createElementBlock"])("div",null,[Object(n["createVNode"])(s,{type:"primary",size:"mini",style:{"margin-bottom":"10px"},onClick:l.dianji},{default:Object(n["withCtx"])(()=>[Object(n["createTextVNode"])(Object(n["toDisplayString"])(e.$t("defalult.qp")),1)]),_:1},8,["onClick"]),Object(n["createElementVNode"])("iframe",{id:"iframeId",ref:"iframe",src:i.src,style:{width:"100%",height:"495px"}},null,8,a)])),[[c,i.loading]])}var i={props:{deviceCode:{type:Number}},data(){return{technologyData:[],loading:!0,fullscreenLoading:!0,queryForm:{deviceCode:""},src:""}},watch:{deviceCode:function(e,t){const o=sessionStorage.getItem("projectId"),n=localStorage.getItem("userId");this.src="https://dp.lidinghb.com/chudy_visual/view/1698519723425271808?projectId="+o+"&userId="+n+"&id="+e}},created(){},mounted(){const{iframe:e}=this.$refs,t=this;e.attachEvent?e.attachEvent("onload",()=>{t.stateChange()}):e.onload=function(){t.stateChange()}},methods:{showData(e){console.log(e)},stateChange(){this.loading=!1},dianji(){const e=document.getElementById("iframeId");this.fullscreen?document.exitFullscreen?document.exitFullscreen():document.webkitCancelFullScreen?document.webkitCancelFullScreen():document.mozCancelFullScreen?document.mozCancelFullScreen():document.msExitFullscreen&&document.msExitFullscreen():e.requestFullscreen?e.requestFullscreen():e.webkitRequestFullScreen?e.webkitRequestFullScreen():e.mozRequestFullScreen?e.mozRequestFullScreen():e.msRequestFullscreen&&e.msRequestFullscreen()}}},l=o("d959"),s=o.n(l);const c=s()(i,[["render",r]]);t["default"]=c},"1e92":function(e,t,o){"use strict";o("6ec8")},"1e93":function(e,t,o){"use strict";o.r(t);var n=o("f2bf");const a={class:"manage-container"};function r(e,t,o,r,i,l){const s=Object(n["resolveComponent"])("current-index"),c=Object(n["resolveComponent"])("el-tab-pane"),d=Object(n["resolveComponent"])("history-index"),u=Object(n["resolveComponent"])("el-tabs");return Object(n["openBlock"])(),Object(n["createElementBlock"])("div",a,[Object(n["createVNode"])(u,{modelValue:i.activeName,"onUpdate:modelValue":t[0]||(t[0]=e=>i.activeName=e),onTabClick:l.handleClick},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(c,{label:"当前报警",name:"first"},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(s,{ref:"current"},null,512)]),_:1}),Object(n["createVNode"])(c,{label:"历史报警",name:"second"},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(d,{ref:"history"},null,512)]),_:1})]),_:1},8,["modelValue","onTabClick"])])}var i=o("d31e"),l=o("4a11"),s={name:"Index",components:{currentIndex:i["default"],historyIndex:l["default"]},data(){return{activeName:"first"}},computed:{height(){return 500}},mounted(){},methods:{handleClick(e){"first"==e.paneName?this.$refs["current"].showData():"second"==e.paneName&&this.$refs["history"].showData()},showData(){this.$refs["current"].showData()}}},c=(o("150a"),o("d959")),d=o.n(c);const u=d()(s,[["render",r]]);t["default"]=u},"1eea":function(e,t,o){"use strict";o("5256")},"1f33":function(e,t,o){"use strict";o.r(t);var n=o("f2bf");const a={class:"manage-container"};function r(e,t,o,r,i,l){const s=Object(n["resolveComponent"])("el-option"),c=Object(n["resolveComponent"])("el-select"),d=Object(n["resolveComponent"])("el-input"),u=Object(n["resolveComponent"])("el-button"),m=Object(n["resolveComponent"])("vab-query-form-left-panel"),h=Object(n["resolveComponent"])("vab-query-form-right-panel"),p=Object(n["resolveComponent"])("vab-query-form"),b=Object(n["resolveComponent"])("el-table-column"),g=Object(n["resolveComponent"])("el-table"),f=Object(n["resolveComponent"])("el-pagination");return Object(n["openBlock"])(),Object(n["createElementBlock"])("div",a,[Object(n["createVNode"])(p,null,{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(m,null,{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(c,{modelValue:i.value1,"onUpdate:modelValue":t[0]||(t[0]=e=>i.value1=e),placeholder:"请选择项目"},{default:Object(n["withCtx"])(()=>[(Object(n["openBlock"])(!0),Object(n["createElementBlock"])(n["Fragment"],null,Object(n["renderList"])(i.options,e=>(Object(n["openBlock"])(),Object(n["createBlock"])(s,{key:e.value,label:e.label,value:e.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue"]),Object(n["createVNode"])(c,{modelValue:i.value2,"onUpdate:modelValue":t[1]||(t[1]=e=>i.value2=e),placeholder:"请选择设备"},{default:Object(n["withCtx"])(()=>[(Object(n["openBlock"])(!0),Object(n["createElementBlock"])(n["Fragment"],null,Object(n["renderList"])(i.options,e=>(Object(n["openBlock"])(),Object(n["createBlock"])(s,{key:e.value,label:e.label,value:e.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue"]),Object(n["createVNode"])(d,{modelValue:i.input,"onUpdate:modelValue":t[2]||(t[2]=e=>i.input=e),placeholder:"请输入内容"},null,8,["modelValue"]),Object(n["createVNode"])(u,{type:"primary"},{default:Object(n["withCtx"])(()=>[Object(n["createTextVNode"])(Object(n["toDisplayString"])(e.$t("defalult.cx")),1)]),_:1})]),_:1}),Object(n["createVNode"])(h,null,{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(u,{type:"primary"},{default:Object(n["withCtx"])(()=>[Object(n["createTextVNode"])(Object(n["toDisplayString"])(e.$t("trigger.tjcfq")),1)]),_:1})]),_:1})]),_:1}),Object(n["createVNode"])(g,{data:i.tableData,stripe:"",border:"",style:{width:"100%"}},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(b,{prop:"id",label:e.$t("trigger.xh"),width:"80",align:"center"},null,8,["label"]),Object(n["createVNode"])(b,{prop:"name",label:e.$t("trigger.mc"),width:"180",align:"center"},null,8,["label"]),Object(n["createVNode"])(b,{prop:"relation",label:"关联传感器",width:"180",align:"center"}),Object(n["createVNode"])(b,{prop:"condition",label:e.$t("trigger.cftjlx"),width:"180",align:"center"},null,8,["label"]),Object(n["createVNode"])(b,{prop:"parameter",label:e.$t("trigger.cs"),width:"180",align:"center"},null,8,["label"]),Object(n["createVNode"])(b,{prop:"implement",label:"执行类型",width:"180",align:"center"}),Object(n["createVNode"])(b,{prop:"loop",label:"循环",width:"180",align:"center"}),Object(n["createVNode"])(b,{prop:"state",label:e.$t("dataEnquiry.zt"),width:"180",align:"center"},null,8,["label"]),Object(n["createVNode"])(b,{fixed:"right",label:e.$t("defalult.cz"),width:"160",align:"center"},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(u,{type:"text",size:"small"},{default:Object(n["withCtx"])(()=>[Object(n["createTextVNode"])(Object(n["toDisplayString"])(e.$t("defalult.bj")),1)]),_:1}),Object(n["createVNode"])(u,{type:"text",size:"small"},{default:Object(n["withCtx"])(()=>[Object(n["createTextVNode"])(Object(n["toDisplayString"])(e.$t("defalult.sc")),1)]),_:1})]),_:1},8,["label"])]),_:1},8,["data"]),Object(n["createVNode"])(p,null,{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(m),Object(n["createVNode"])(h,null,{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(f,{"current-page":i.currentPage4,"page-sizes":[100,200,300,400],"page-size":100,layout:"total, sizes, prev, pager, next, jumper",total:400,onSizeChange:e.handleSizeChange,onCurrentChange:e.handleCurrentChange},null,8,["current-page","onSizeChange","onCurrentChange"])]),_:1})]),_:1})])}var i={name:"Addproject",data(){return{input:"",value1:"",value2:"",currentPage1:5,currentPage2:5,currentPage3:5,currentPage4:4,options:[{value:"选项1",label:"所有设备"},{value:"选项2",label:"已连接设备"},{value:"选项3",label:"未连接设备"},{value:"选项4",label:"已禁用设备"},{value:"选项5",label:"已删除设备"}],tableData:[{id:"1",name:"太湖过滤装置",relation:"关联设置",condition:"数值高于{X}",parameter:"100",implement:"控制设备,微信通知",loop:"100",state:"正常"},{id:"2",name:"太湖过滤装置",relation:"关联设置",condition:"数值高于{X}",parameter:"100",implement:"控制设备,微信通知",loop:"100",state:"正常"},{id:"3",name:"太湖过滤装置",relation:"关联设置",condition:"数值高于{X}",parameter:"100",implement:"控制设备,微信通知",loop:"100",state:"正常"}]}}},l=(o("88f9"),o("d959")),s=o.n(l);const c=s()(i,[["render",r],["__scopeId","data-v-c2d2d662"]]);t["default"]=c},2062:function(e,t,o){},2161:function(e,t,o){"use strict";o.r(t);var n=o("f2bf");function a(e,t,o,a,r,i){const l=Object(n["resolveComponent"])("el-table-column"),s=Object(n["resolveComponent"])("el-tag"),c=Object(n["resolveComponent"])("el-button"),d=Object(n["resolveComponent"])("el-table"),u=Object(n["resolveComponent"])("el-pagination"),m=Object(n["resolveComponent"])("distribute"),h=Object(n["resolveDirective"])("loading");return Object(n["openBlock"])(),Object(n["createElementBlock"])(n["Fragment"],null,[Object(n["withDirectives"])((Object(n["openBlock"])(),Object(n["createBlock"])(d,{data:r.sensorData,border:"",stripe:"",style:{width:"100%"}},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(l,{prop:"name",label:e.$t("siteDetails.cgqmc"),align:"center"},null,8,["label"]),Object(n["createVNode"])(l,{prop:"dataKey",label:e.$t("siteDetails.csid"),align:"center"},null,8,["label"]),Object(n["createVNode"])(l,{prop:"dataValue",label:e.$t("siteDetails.zhi"),align:"center"},{default:Object(n["withCtx"])(({row:e})=>[Object(n["createVNode"])(s,{type:"success"},{default:Object(n["withCtx"])(()=>[Object(n["createTextVNode"])(Object(n["toDisplayString"])(e.dataValue),1)]),_:2},1024)]),_:1},8,["label"]),Object(n["createVNode"])(l,{prop:"unit",label:e.$t("siteDetails.dw"),align:"center"},null,8,["label"]),Object(n["createVNode"])(l,{label:e.$t("defalult.cz"),align:"center"},{default:Object(n["withCtx"])(({row:t})=>[t.readWrite==e.$t("defalult.zx")?(Object(n["openBlock"])(),Object(n["createBlock"])(c,{key:0,type:"text",onClick:e=>i.distribute(t)},{default:Object(n["withCtx"])(()=>[Object(n["createTextVNode"])(Object(n["toDisplayString"])(e.$t("siteDetails.xfzl")),1)]),_:2},1032,["onClick"])):Object(n["createCommentVNode"])("",!0)]),_:1},8,["label"])]),_:1},8,["data"])),[[h,r.listLoading]]),Object(n["createVNode"])(u,{background:r.background,"current-page":r.queryForm.page,layout:r.layout,"page-size":r.queryForm.size,total:r.total,style:{"text-align":"right"},onCurrentChange:i.handleCurrentChange,onSizeChange:i.handleSizeChange},null,8,["background","current-page","layout","page-size","total","onCurrentChange","onSizeChange"]),Object(n["createVNode"])(m,{ref:"distribute"},null,512)],64)}var r=o("7cf8"),i=o("ca6a"),l={components:{distribute:i["default"]},data(){return{sensorData:[],lazy:!0,activeName:"first",layout:"prev, pager, next",total:0,background:!0,listLoading:!0,elementLoadingText:"正在加载...",queryForm:{page:1,size:5,deviceCode:""}}},computed:{height(){return 500}},methods:{showData(e){this.queryForm.deviceCode=e.deviceCode,this.fetchData()},async fetchData(){this.listLoading=!0;const{data:e}=await Object(r["sensorsOfWrite"])(this.queryForm);this.sensorData=e.items,this.total=e.total,setTimeout(()=>{this.listLoading=!1},500)},distribute(e){const t=e.dataKey,o=this.queryForm.deviceCode;this.$refs["distribute"].showEdit({deviceCode:o,dataKey:t,unit:e.unit,convertFlag:e.convertFlag})},handleQuery(){this.queryForm.pageNo=1,this.fetchData()},handleSizeChange(e){this.queryForm.pageSize=e,this.fetchData()},handleCurrentChange(e){this.queryForm.pageNo=e,this.fetchData()}}},s=(o("f84e"),o("d959")),c=o.n(s);const d=c()(l,[["render",a],["__scopeId","data-v-34ea189e"]]);t["default"]=d},2182:function(e,t,o){"use strict";o("bf00")},2195:function(e,t,o){"use strict";o.r(t);var n=o("f2bf");const a={class:"manage-container"};function r(e,t,o,r,i,l){const s=Object(n["resolveComponent"])("el-option"),c=Object(n["resolveComponent"])("el-select"),d=Object(n["resolveComponent"])("el-form-item"),u=Object(n["resolveComponent"])("el-button"),m=Object(n["resolveComponent"])("vab-query-form"),h=Object(n["resolveComponent"])("el-form"),p=Object(n["resolveComponent"])("el-dialog");return Object(n["openBlock"])(),Object(n["createBlock"])(p,{modelValue:i.dialogFormVisible,"onUpdate:modelValue":t[1]||(t[1]=e=>i.dialogFormVisible=e),title:i.title,width:"500px",onClose:l.close},{default:Object(n["withCtx"])(()=>[Object(n["createElementVNode"])("div",a,[Object(n["createVNode"])(h,{ref:"form",model:i.form,"label-width":"80px","label-position":"left"},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(d,{label:"选择站点"},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(c,{modelValue:i.form.code,"onUpdate:modelValue":t[0]||(t[0]=e=>i.form.code=e),placeholder:"请选择站点"},{default:Object(n["withCtx"])(()=>[(Object(n["openBlock"])(!0),Object(n["createElementBlock"])(n["Fragment"],null,Object(n["renderList"])(i.deviceData,e=>(Object(n["openBlock"])(),Object(n["createBlock"])(s,{key:e.code,label:e.name,value:e.code},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),Object(n["createVNode"])(m,null,{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(u,{type:"primary",onClick:l.save},{default:Object(n["withCtx"])(()=>t[2]||(t[2]=[Object(n["createTextVNode"])("提交")])),_:1},8,["onClick"])]),_:1})]),_:1},8,["model"])])]),_:1},8,["modelValue","title","onClose"])}var i=o("acca"),l={data(){return{form:{ysSerial:"",code:"",account:""},deviceData:[],dialogFormVisible:!1,title:""}},methods:{bindDevice(e){this.form.ysSerial=e.deviceSerial,this.form.account=e.account,this.dialogFormVisible=!0,this.title="绑定设备",this.getDeviceData()},async getDeviceData(){const{data:e}=await Object(i["ldDeviceByProjectId"])({projectId:sessionStorage.getItem("projectId")});this.deviceData=e},close(){this.$refs["form"].resetFields(),this.form=this.$options.data().form,this.dialogFormVisible=!1,this.$emit("fetch-data")},save(){this.$refs["form"].validate(async e=>{if(!e)return!1;{const{msg:e}=await Object(i["ysBindDevice"])(this.form);this.$notify({title:e,type:"success"}),this.$refs["form"].resetFields(),this.dialogFormVisible=!1,this.$parent.fetchData()}})}}},s=o("d959"),c=o.n(s);const d=c()(l,[["render",r]]);t["default"]=d},"21dd":function(e,t,o){"use strict";o.r(t);var n=o("f2bf");const a={id:"charConsumption",style:{width:"100%",height:"260px"}};function r(e,t,o,r,i,l){return Object(n["openBlock"])(),Object(n["createElementBlock"])("div",a)}var i=o("313e"),l={props:{rates:{type:Number}},data(){return{chartPie:null,rate:""}},watch:{rates(e){this.rate=e,setTimeout(()=>{this.drawCharts()},2e3)}},mounted:function(){},methods:{drawPieChart(){var e=this;this.chartPie=i["a"](document.getElementById("charConsumption")),this.chartPie.setOption({series:[{type:"gauge",startAngle:180,radius:"100%",endAngle:0,min:0,max:240,splitNumber:12,itemStyle:{color:"#58D9F9",shadowColor:"rgba(0,138,255,0.45)",shadowBlur:10,shadowOffsetX:2,shadowOffsetY:2},progress:{show:!0,roundCap:!0,width:18},pointer:{icon:"path://M2090.36389,615.30999 L2090.36389,615.30999 C2091.48372,615.30999 2092.40383,616.194028 2092.44859,617.312956 L2096.90698,728.755929 C2097.05155,732.369577 2094.2393,735.416212 2090.62566,735.56078 C2090.53845,735.564269 2090.45117,735.566014 2090.36389,735.566014 L2090.36389,735.566014 C2086.74736,735.566014 2083.81557,732.63423 2083.81557,729.017692 C2083.81557,728.930412 2083.81732,728.84314 2083.82081,728.755929 L2088.2792,617.312956 C2088.32396,616.194028 2089.24407,615.30999 2090.36389,615.30999 Z",length:"75%",width:5,offsetCenter:[0,"5%"]},axisLine:{roundCap:!0,lineStyle:{width:10}},axisTick:{splitNumber:2,lineStyle:{width:2,color:"#999"}},splitLine:{length:12,lineStyle:{width:3,color:"#999"}},axisLabel:{distance:15,color:"#999",fontSize:10},title:{show:!1},detail:{backgroundColor:"#fff",borderColor:"#999",borderWidth:2,width:"100%",lineHeight:40,height:20,borderRadius:8,offsetCenter:[0,"35%"],valueAnimation:!0,formatter:function(e){return"{value|"+e.toFixed(2)+"}{unit|%}"},rich:{value:{fontSize:15,fontWeight:"bolder",color:"#777",padding:[0,0,15,0]},unit:{fontSize:15,color:"#999",padding:[0,0,15,10]}}},data:[{value:e.rate}]}]})},drawCharts(){this.drawPieChart()}}},s=o("d959"),c=o.n(s);const d=c()(l,[["render",r]]);t["default"]=d},2293:function(e,t,o){"use strict";o("33ec")},"22ba":function(e,t,o){e.exports={"menu-color":"hsla(0,0%,27%,.95)","menu-color-active":"hsla(208,100%,55%,.95)","menu-background":"#fff","gallery-second-menu-background":"#fff"}},"23ba":function(e,t,o){"use strict";o.r(t),o.d(t,"getList",(function(){return a})),o.d(t,"doDelete",(function(){return r})),o.d(t,"remove",(function(){return i})),o.d(t,"doAdd",(function(){return l}));var n=o("b775");function a(e){let t="?page="+e.page+"&size="+e.size;return void 0!=e.name&&""!=e.name&&(t+="&name="+e.name),Object(n["default"])({url:"/iot/project/group/select"+t,method:"get",data:e})}function r(e){return Object(n["default"])({url:"/iot/project/group/remove?groupId="+e.groupId,method:"post",data:e})}function i(e){return Object(n["default"])({url:"/iot/project/group/remove?groupId="+e.groupId,method:"post",data:e})}function l(e){return Object(n["default"])({url:"/iot/project/group/saveOrUpdate",method:"post",data:e})}},"23e2":function(e,t,o){"use strict";o("1da8")},"247a":function(e,t,o){"use strict";o("72f8")},"24d2":function(e,t,o){"use strict";o.r(t),o.d(t,"getList",(function(){return r})),o.d(t,"doEdit",(function(){return i})),o.d(t,"getProjectGroup",(function(){return l})),o.d(t,"selectAlarmTypeList",(function(){return s})),o.d(t,"getAlarmUser",(function(){return c})),o.d(t,"addAlarmUsers",(function(){return d})),o.d(t,"doDelete",(function(){return u})),o.d(t,"doAdd",(function(){return m})),o.d(t,"exportProject",(function(){return h}));var n=o("b775"),a=o("f121");function r(e){let t="?page="+e.page+"&size="+e.size;return e.regionCode&&(t+="&regionCode="+e.regionCode),e.name&&(t+="&name="+e.name),e.leader&&(t+="&leader="+e.leader),e.contact&&(t+="&contact="+e.contact),e.groupId&&(t+="&groupId="+e.groupId),Object(n["default"])({url:"/iot/project/select"+t,method:"get",data:e})}function i(e){return Object(n["default"])({url:"/iot/project/update",method:"post",data:e})}function l(e){return Object(n["default"])({url:"/iot/project/selectAllProjectGroup",method:"get",data:e})}function s(e){return Object(n["default"])({url:"/iot/project/selectAlarmTypeList",method:"get",data:e})}function c(e){return Object(n["default"])({url:"/iot/project/getAlarmUser?projectId="+e.projectId,method:"get",data:e})}function d(e){return Object(n["default"])({url:"/iot/project/addAlarmUsers",method:"post",data:e})}function u(e){return Object(n["default"])({url:"/iot/project/remove?",method:"post",data:e})}function m(e){return Object(n["default"])({url:"/iot/project/insert",method:"post",data:e})}function h(e){let t="?page="+e.page+"&size="+e.size;return e.regionCode&&(t+="&regionCode="+e.regionCode),e.name&&(t+="&name="+e.name),e.leader&&(t+="&leader="+e.leader),e.contact&&(t+="&contact="+e.contact),e.groupId&&(t+="&groupId="+e.groupId),a["baseURL"]+"/iot/project/export"+t}},"24d9":function(e,t,o){e.exports={"menu-color":"hsla(0,0%,27%,.95)","menu-color-active":"hsla(208,100%,55%,.95)","menu-background":"#fff","gallery-second-menu-background":"#fff"}},"265c":function(e,t,o){"use strict";o.r(t);var n=o("f2bf");const a={class:"manage-container"},r={class:"manage-wrap"},i={class:"manage-input"},l={class:"manage-input"};function s(e,t,o,s,c,d){const u=Object(n["resolveComponent"])("el-option"),m=Object(n["resolveComponent"])("el-select"),h=Object(n["resolveComponent"])("el-form-item"),p=Object(n["resolveComponent"])("el-form"),b=Object(n["resolveComponent"])("vab-query-form"),g=Object(n["resolveComponent"])("el-button"),f=Object(n["resolveComponent"])("el-table-column"),v=Object(n["resolveComponent"])("el-tag"),w=Object(n["resolveComponent"])("el-table"),k=Object(n["resolveComponent"])("el-pagination"),C=Object(n["resolveComponent"])("rule-edit"),y=Object(n["resolveDirective"])("loading");return Object(n["openBlock"])(),Object(n["createElementBlock"])("div",a,[Object(n["createElementVNode"])("div",r,[Object(n["createElementVNode"])("div",i,[Object(n["createVNode"])(b,null,{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(p,{ref:"queryForm",inline:!0,model:c.queryForm},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(h,{label:e.$t("dataEnquiry.cgq"),prop:"sensorName"},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(m,{modelValue:c.queryForm.sensorName,"onUpdate:modelValue":t[0]||(t[0]=e=>c.queryForm.sensorName=e),size:"small",placeholder:e.$t("sensor.qxzqgq")},{default:Object(n["withCtx"])(()=>[(Object(n["openBlock"])(!0),Object(n["createElementBlock"])(n["Fragment"],null,Object(n["renderList"])(c.sensorData,e=>(Object(n["openBlock"])(),Object(n["createBlock"])(u,{key:e,label:e,value:e},null,8,["label","value"]))),128))]),_:1},8,["modelValue","placeholder"])]),_:1},8,["label"])]),_:1},8,["model"])]),_:1})]),Object(n["createElementVNode"])("div",l,[Object(n["createVNode"])(g,{size:"small",onClick:t[1]||(t[1]=e=>d.resetForm())},{default:Object(n["withCtx"])(()=>[Object(n["createTextVNode"])(Object(n["toDisplayString"])(e.$t("defalult.chongz")),1)]),_:1}),Object(n["createVNode"])(g,{type:"primary",size:"small",onClick:d.search},{default:Object(n["withCtx"])(()=>[Object(n["createTextVNode"])(Object(n["toDisplayString"])(e.$t("defalult.cx")),1)]),_:1},8,["onClick"]),Object(n["createVNode"])(g,{type:"primary",size:"small",onClick:t[2]||(t[2]=e=>d.handleAdd())},{default:Object(n["withCtx"])(()=>[Object(n["createTextVNode"])(Object(n["toDisplayString"])(e.$t("trigger.tjcfqgz")),1)]),_:1}),Object(n["createVNode"])(g,{type:"primary",size:"small",onClick:d.deletes},{default:Object(n["withCtx"])(()=>[Object(n["createTextVNode"])(Object(n["toDisplayString"])(e.$t("defalult.plsc")),1)]),_:1},8,["onClick"]),Object(n["createVNode"])(g,{type:"primary",size:"small",onClick:d.triggerRuleUse},{default:Object(n["withCtx"])(()=>[Object(n["createTextVNode"])(Object(n["toDisplayString"])(e.$t("trigger.plyy")),1)]),_:1},8,["onClick"])])]),Object(n["withDirectives"])((Object(n["openBlock"])(),Object(n["createBlock"])(w,{data:c.ruleData,border:"",stripe:"",style:{width:"100%"},onSelectionChange:d.handleSelectionChange},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(f,{type:"selection",width:"55"}),Object(n["createVNode"])(f,{prop:"id",label:"ID",width:"60",align:"center"}),Object(n["createVNode"])(f,{prop:"sensorName",label:e.$t("sensor.cgqmc"),width:"120",align:"center"},null,8,["label"]),Object(n["createVNode"])(f,{prop:"triggerName",label:e.$t("trigger.cfqmc"),width:"120",align:"center"},null,8,["label"]),Object(n["createVNode"])(f,{prop:"triggerCycle",label:e.$t("trigger.cfzq"),width:"120",align:"center"},null,8,["label"]),Object(n["createVNode"])(f,{prop:"triggerCondition.dataValue",label:e.$t("trigger.cftj"),width:"120",align:"center"},null,8,["label"]),Object(n["createVNode"])(f,{prop:"triggerConditionParams",label:e.$t("trigger.cfcs"),width:"120",align:"center"},null,8,["label"]),Object(n["createVNode"])(f,{prop:"alarmFlag",label:e.$t("trigger.sffsbj"),width:"120",align:"center"},{default:Object(n["withCtx"])(({row:t})=>[1==t.alarmFlag?(Object(n["openBlock"])(),Object(n["createBlock"])(v,{key:"是",effect:"dark",type:"success",size:"mini"},{default:Object(n["withCtx"])(()=>[Object(n["createTextVNode"])(Object(n["toDisplayString"])(e.$t("trigger.s")),1)]),_:1})):Object(n["createCommentVNode"])("",!0),0==t.alarmFlag?(Object(n["openBlock"])(),Object(n["createBlock"])(v,{key:"否",effect:"dark",type:"danger",size:"mini"},{default:Object(n["withCtx"])(()=>[Object(n["createTextVNode"])(Object(n["toDisplayString"])(e.$t("trigger.f")),1)]),_:1})):Object(n["createCommentVNode"])("",!0)]),_:1},8,["label"]),Object(n["createVNode"])(f,{prop:"alarmLevel.dataValue",label:e.$t("alarm.bjjb"),width:"120",align:"center"},null,8,["label"]),Object(n["createVNode"])(f,{fixed:"right",label:e.$t("defalult.cz"),align:"center"},{default:Object(n["withCtx"])(({row:t})=>[Object(n["createVNode"])(g,{type:"text",onClick:e=>d.handleEdit(t)},{default:Object(n["withCtx"])(()=>[Object(n["createTextVNode"])(Object(n["toDisplayString"])(e.$t("defalult.bj")),1)]),_:2},1032,["onClick"]),Object(n["createVNode"])(g,{type:"text",onClick:e=>d.handleDelete(t)},{default:Object(n["withCtx"])(()=>[Object(n["createTextVNode"])(Object(n["toDisplayString"])(e.$t("defalult.sc")),1)]),_:2},1032,["onClick"])]),_:1},8,["label"])]),_:1},8,["data","onSelectionChange"])),[[y,c.listLoading]]),Object(n["createVNode"])(k,{background:c.background,"current-page":c.queryForm.page,layout:c.layout,"page-size":c.queryForm.size,total:c.total,style:{"text-align":"right"},onCurrentChange:d.handleCurrentChange,onSizeChange:d.handleSizeChange},null,8,["background","current-page","layout","page-size","total","onCurrentChange","onSizeChange"]),Object(n["createVNode"])(C,{ref:"edit"},null,512)])}o("14d9");var c=o("b681"),d=o("75c5"),u={name:"Index",components:{ruleEdit:d["default"]},data(){return{ruleData:[],deviceId:"",projectId:"",sensorData:[],lazy:!0,layout:"total, sizes, prev, pager, next, jumper",total:0,ids:[],background:!0,listLoading:!0,elementLoadingText:"正在加载...",queryForm:{page:1,size:20,projectId:"",sensorName:""}}},computed:{height(){return 500}},created(){this.queryForm.projectId=sessionStorage.getItem("projectId")},methods:{showData(){this.getSensorData()},async fetchData(){this.listLoading=!0;const{data:e}=await Object(c["getList"])(this.queryForm);this.ruleData=e.items,this.total=e.total,setTimeout(()=>{this.listLoading=!1},500)},async getSensorData(){const{data:e}=await Object(c["getSensorsData"])(this.queryForm);this.sensorData=e,this.fetchData()},handleSelectionChange(e){const t=[];e.forEach(e=>{t.push(e.id)}),this.ids=t},resetForm(){this.$refs.queryForm.resetFields()},async triggerRuleUse(){const e=this.ids;if(0==e.length)return this.$message({type:"info",message:"没有选中任何项"}),!1;this.$confirm("你确定应用触发器规则到整个项目吗?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(()=>{const{msg:t}=Object(c["triggerRuleUse"])(e);this.$message({type:"success",message:void 0==t?"应用成功":t});const o=this;setTimeout((function(){o.fetchData()}),1e3)}).catch(()=>{this.$message({type:"info",message:"已取消应用"})})},search(){this.fetchData()},deletes(){const e=this.ids;if(0==e.length)return this.$message({type:"info",message:"没有选中任何项"}),!1;this.deleteData(e)},handleAdd(){this.$refs["edit"].showEdit(this.queryForm.sensorName,0)},handleEdit(e){this.$refs["edit"].showEdit(e,1)},handleQuery(){this.queryForm.page=1,this.fetchData()},handleSizeChange(e){this.queryForm.size=e,this.fetchData()},handleCurrentChange(e){this.queryForm.page=e,this.fetchData()},deleteData(e){this.$confirm("你确定要删除当前项吗?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(()=>{const{msg:t}=Object(c["doDelete"])(e);this.$message({type:"success",message:void 0==t?"删除成功":t});const o=this;setTimeout((function(){o.fetchData()}),1e3)}).catch(()=>{this.$message({type:"info",message:"已取消删除"})})},handleDelete(e){e.id&&this.deleteData([e.id])}}},m=(o("fea6"),o("d959")),h=o.n(m);const p=h()(u,[["render",s],["__scopeId","data-v-5c5eca1e"]]);t["default"]=p},2680:function(e,t,o){"use strict";o("ea22")},2805:function(e,t,o){},2808:function(e,t,o){},"28d0":function(e,t,o){"use strict";o("05fe")},2905:function(e,t,o){"use strict";o("cc53")},"293b":function(e,t,o){"use strict";o.r(t);var n=o("f2bf");const a={class:"sys-container"},r=["src"],i={key:1,class:"el-icon-plus avatar-uploader-icon"};function l(e,t,o,l,s,c){const d=Object(n["resolveComponent"])("el-input"),u=Object(n["resolveComponent"])("el-form-item"),m=Object(n["resolveComponent"])("el-upload"),h=Object(n["resolveComponent"])("el-form"),p=Object(n["resolveComponent"])("el-button");return Object(n["openBlock"])(),Object(n["createElementBlock"])("div",a,[Object(n["createVNode"])(h,{ref:"form",model:s.form,"label-width":"80px"},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(u,{label:"网站名称"},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(d,{modelValue:s.form.name,"onUpdate:modelValue":t[0]||(t[0]=e=>s.form.name=e),size:"small",placeholder:"请输入网站名称"},null,8,["modelValue"])]),_:1}),Object(n["createVNode"])(u,{label:"联系电话"},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(d,{modelValue:s.form.phone,"onUpdate:modelValue":t[1]||(t[1]=e=>s.form.phone=e),size:"small",placeholder:"请输入联系电话"},null,8,["modelValue"])]),_:1}),Object(n["createVNode"])(u,{label:"LOGO"},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(m,{class:"avatar-uploader",action:s.fileUpdata,name:"files",headers:{token:s.token},"show-file-list":!1,"on-success":c.handleAvatarSuccess,"before-upload":c.beforeAvatarUpload},{default:Object(n["withCtx"])(()=>[s.form.logo1?(Object(n["openBlock"])(),Object(n["createElementBlock"])("img",{key:0,src:s.form.logo1,class:"avatar"},null,8,r)):(Object(n["openBlock"])(),Object(n["createElementBlock"])("i",i))]),_:1},8,["action","headers","on-success","before-upload"])]),_:1}),Object(n["createVNode"])(u,{label:"关键字"},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(d,{modelValue:s.form.keyword,"onUpdate:modelValue":t[2]||(t[2]=e=>s.form.keyword=e),type:"textarea",size:"small",placeholder:"请输入关键字"},null,8,["modelValue"])]),_:1}),Object(n["createVNode"])(u,{label:"统计代码"},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(d,{modelValue:s.form.statsCode,"onUpdate:modelValue":t[3]||(t[3]=e=>s.form.statsCode=e),type:"textarea",size:"small",placeholder:"请输入统计代码"},null,8,["modelValue"])]),_:1}),Object(n["createVNode"])(u,{label:"备案号"},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(d,{modelValue:s.form.record,"onUpdate:modelValue":t[4]||(t[4]=e=>s.form.record=e),type:"textarea",size:"small",placeholder:"请输入备案号"},null,8,["modelValue"])]),_:1}),Object(n["createVNode"])(u,{label:"版权"},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(d,{modelValue:s.form.copyright,"onUpdate:modelValue":t[5]||(t[5]=e=>s.form.copyright=e),size:"small",placeholder:"请输入版权"},null,8,["modelValue"])]),_:1})]),_:1},8,["model"]),Object(n["createVNode"])(p,{type:"primary",size:"small",onClick:c.save},{default:Object(n["withCtx"])(()=>t[6]||(t[6]=[Object(n["createTextVNode"])("保存")])),_:1},8,["onClick"])])}var s=o("6797"),c=o("f121"),d=o("5502"),u=o("4360"),m={name:"SysConfig",data(){return{form:{id:"",logo:"",logo1:"",name:"",phone:"",keyword:"",statsCode:"",record:"",copyright:""},rules:{name:[{required:!0,trigger:"blur",message:"请输入网站名称"}]},fileUpdata:"",token:"",sysData:[],clearable:!0,title:"",dialogFormVisible:!1}},computed:{...Object(d["c"])(["fileUpload"])},created(){this.showConfig(),this.getWebData()},methods:{async getWebData(){const{data:e}=await Object(s["getData"])();e&&(e.logo&&(this.form.logo1=c["baseURL"]+"/static/img/"+e.logo),this.form=e)},showConfig(){this.fileUpdata=c["baseURL"]+"/file/uploadImg",this.token=u["default"].getters["user/token"],console.log(this.token)},handleAvatarSuccess(e,t){this.form.logo1=c["baseURL"]+"/static/img/"+e.data,this.form.logo=e.data},beforeAvatarUpload(e){const t=e.size/1024/1024<2;return t||this.$message.error("上传头像图片大小不能超过 2MB!"),t},showEdit(e){this.form.id=e.id,this.form=Object.assign({},e),this.dialogFormVisible=!0},close(){this.$refs["form"].resetFields(),this.form=this.$options.data().form,this.dialogFormVisible=!1,this.$emit("fetch-data")},save(){this.$refs["form"].validate(async e=>{if(!e)return!1;if(delete this.form.logo1,this.form.id){const{msg:e}=await Object(s["doEdit"])(this.form);this.$notify({title:e,type:"success"})}else{delete this.form.id;const{msg:e}=await Object(s["doAdd"])(this.form);this.$notify({title:e,type:"success"})}this.$refs["form"].resetFields(),this.dialogFormVisible=!1})}}},h=(o("3145"),o("d959")),p=o.n(h);const b=p()(m,[["render",l],["__scopeId","data-v-4c5507f9"]]);t["default"]=b},"29d5":function(e,t,o){"use strict";o.r(t);var n=o("f2bf");const a=["src"],r={class:"dialog-footer"};function i(e,t,o,i,l,s){const c=Object(n["resolveComponent"])("el-input"),d=Object(n["resolveComponent"])("el-form-item"),u=Object(n["resolveComponent"])("el-upload"),m=Object(n["resolveComponent"])("el-form"),h=Object(n["resolveComponent"])("el-button"),p=Object(n["resolveComponent"])("el-dialog");return Object(n["openBlock"])(),Object(n["createBlock"])(p,{modelValue:l.dialogFormVisible,"onUpdate:modelValue":t[2]||(t[2]=e=>l.dialogFormVisible=e),title:l.title,width:"500px",onClose:s.close},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(m,{ref:"form",model:l.form,rules:e.rules,"label-width":"60px"},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(d,{label:"名字",prop:"name"},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(c,{modelValue:l.form.name,"onUpdate:modelValue":t[0]||(t[0]=e=>l.form.name=e),modelModifiers:{trim:!0},size:"small",autocomplete:"off"},null,8,["modelValue"])]),_:1}),Object(n["createVNode"])(d,{label:e.$t("alarm.bz"),prop:"remark"},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(c,{modelValue:l.form.remark,"onUpdate:modelValue":t[1]||(t[1]=e=>l.form.remark=e),modelModifiers:{trim:!0},size:"small",autocomplete:"off"},null,8,["modelValue"])]),_:1},8,["label"]),Object(n["createVNode"])(d,{label:e.$t("sensor.tp"),prop:"icon"},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(u,{class:"avatar-uploader",action:l.action,headers:l.headers,name:"files","show-file-list":!1,"on-success":s.handleAvatarSuccess,"before-upload":s.beforeAvatarUpload},{default:Object(n["withCtx"])(()=>[Object(n["createElementVNode"])("img",{src:l.filePath,class:"avatar"},null,8,a),t[3]||(t[3]=Object(n["createElementVNode"])("i",{class:"el-icon-plus avatar-uploader-icon"},null,-1))]),_:1},8,["action","headers","on-success","before-upload"])]),_:1},8,["label"])]),_:1},8,["model","rules"]),Object(n["createElementVNode"])("div",r,[Object(n["createVNode"])(h,{type:"primary",size:"small",onClick:s.save},{default:Object(n["withCtx"])(()=>t[4]||(t[4]=[Object(n["createTextVNode"])("确 定")])),_:1},8,["onClick"]),Object(n["createVNode"])(h,{size:"small",onClick:s.close},{default:Object(n["withCtx"])(()=>t[5]||(t[5]=[Object(n["createTextVNode"])("取 消")])),_:1},8,["onClick"])])]),_:1},8,["modelValue","title","onClose"])}var l=o("49de"),s=o("f121"),c=o("4360"),d={data(){return{form:{name:"",icon:"",remark:""},action:s["baseURL"]+"/file/uploadImg",headers:{token:c["default"].getters["user/token"]},filePath:"",clearable:!0,title:"",dialogFormVisible:!1}},created(){},methods:{materialEdit(e){e?(this.title="编辑图片",this.roleId=e.id,this.form=Object.assign({},e)):this.title="添加图片",this.dialogFormVisible=!0},handleAvatarSuccess(e,t){0==e.code?(this.form.icon=e.data,this.filePath=s["baseURL"]+"/static/img/"+e.data):this.$message.error(e.msg)},beforeAvatarUpload(e){const t=e.size/1024/1024<2;return t||this.$message.error("上传头像图片大小不能超过 2MB!"),t},close(){this.$refs["form"].resetFields(),this.form=this.$options.data().form,this.dialogFormVisible=!1,this.$emit("fetch-data")},save(){this.$refs["form"].validate(async e=>{if(!e)return!1;{const{msg:e}=await Object(l["doAdd"])(this.form);this.$notify({title:e,type:"success"}),this.$refs["form"].resetFields(),this.dialogFormVisible=!1,this.$parent.fetchData()}})}}},u=o("d959"),m=o.n(u);const h=m()(d,[["render",i]]);t["default"]=h},"29ea":function(e,t,o){e.exports={"menu-color":"hsla(0,0%,27%,.95)","menu-color-active":"hsla(208,100%,55%,.95)","menu-background":"#fff","gallery-second-menu-background":"#fff"}},"2a0c":function(e,t,o){"use strict";o.r(t);var n=o("f2bf");const a={class:"manage-container"},r={class:"manage-wrap"},i={class:"manage-input"},l={class:"manage-button"};function s(e,t,o,s,c,d){const u=Object(n["resolveComponent"])("el-date-picker"),m=Object(n["resolveComponent"])("el-form-item"),h=Object(n["resolveComponent"])("vab-query-form"),p=Object(n["resolveComponent"])("el-form"),b=Object(n["resolveComponent"])("el-button"),g=Object(n["resolveComponent"])("el-table-column"),f=Object(n["resolveComponent"])("el-table"),v=Object(n["resolveComponent"])("el-pagination"),w=Object(n["resolveDirective"])("loading");return Object(n["openBlock"])(),Object(n["createElementBlock"])("div",a,[Object(n["createElementVNode"])("div",r,[Object(n["createElementVNode"])("div",i,[Object(n["createVNode"])(p,{ref:"form",model:c.queryForm,"label-width":"80px"},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(h,null,{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(m,{width:"100",prop:"month",label:e.$t("dfunction.xzsj")},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(u,{modelValue:c.queryForm.month,"onUpdate:modelValue":t[0]||(t[0]=e=>c.queryForm.month=e),size:"small",type:"month",placeholder:e.$t("dfunction.xzsj"),onChange:d.standardToTime},null,8,["modelValue","placeholder","onChange"])]),_:1},8,["label"])]),_:1})]),_:1},8,["model"])]),Object(n["createElementVNode"])("div",l,[Object(n["createVNode"])(b,{size:"small",onClick:t[1]||(t[1]=e=>d.resetForm())},{default:Object(n["withCtx"])(()=>[Object(n["createTextVNode"])(Object(n["toDisplayString"])(e.$t("defalult.chongz")),1)]),_:1}),Object(n["createVNode"])(b,{type:"primary",size:"small",onClick:d.search},{default:Object(n["withCtx"])(()=>[Object(n["createTextVNode"])(Object(n["toDisplayString"])(e.$t("defalult.cx")),1)]),_:1},8,["onClick"]),Object(n["createVNode"])(b,{type:"primary",size:"small",onClick:d.exportData},{default:Object(n["withCtx"])(()=>[Object(n["createTextVNode"])(Object(n["toDisplayString"])(e.$t("defalult.dc")),1)]),_:1},8,["onClick"])])]),Object(n["withDirectives"])((Object(n["openBlock"])(),Object(n["createBlock"])(f,{ref:"multipleTable",data:c.reportData,border:"","tooltip-effect":"light",style:{width:"100%"}},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(g,{label:e.$t("dfunction.y"),prop:"month",align:"center"},null,8,["label"]),Object(n["createVNode"])(g,{label:e.$t("dfunction.xmmc"),prop:"projectName",align:"center"},null,8,["label"]),Object(n["createVNode"])(g,{label:e.$t("dfunction.zdzs"),prop:"deviceCount",align:"center"},null,8,["label"]),Object(n["createVNode"])(g,{label:e.$t("dfunction.gzcs"),prop:"deviceFaultNum",align:"center"},null,8,["label"]),Object(n["createVNode"])(g,{label:e.$t("dfunction.zyxsc"),prop:"totalDuration",align:"center"},null,8,["label"]),Object(n["createVNode"])(g,{label:e.$t("dfunction.byyxsc"),prop:"monthDuration",align:"center"},null,8,["label"]),Object(n["createVNode"])(g,{label:e.$t("dfunction.yxl"),prop:"runRatio",align:"center"},null,8,["label"]),Object(n["createVNode"])(g,{label:e.$t("dfunction.gzl"),prop:"faultRatio",align:"center"},null,8,["label"])]),_:1},8,["data"])),[[w,c.listLoading]]),Object(n["createVNode"])(v,{background:c.background,"current-page":c.queryForm.page,layout:c.layout,"page-size":c.queryForm.size,total:c.total,style:{"text-align":"right"},onCurrentChange:d.handleCurrentChange,onSizeChange:d.handleSizeChange},null,8,["background","current-page","layout","page-size","total","onCurrentChange","onSizeChange"])])}var c=o("94b0"),d=o("3038"),u={name:"Index",components:{},data(){return{reportData:[],lazy:!0,activeName:"first",layout:"total, sizes, prev, pager, next, jumper",total:0,input:"",textarea:"",background:!0,listLoading:!0,elementLoadingText:"正在加载...",queryForm:{page:1,size:20,month:"",projectId:"",projectName:""}}},computed:{height(){return 500}},created(){this.queryForm.projectId=sessionStorage.getItem("projectId"),this.setDefaultTime(),this.fetchData()},methods:{getDate(e=""){var t=new Date;""!=e&&(t=new Date(e));const o=t.getFullYear();let n=t.getMonth();return n+=1,n=n.toString().padStart(2,"0"),`${o}-${n}`},standardToTime(){this.queryForm.month=this.getDate(this.queryForm.month)},setDefaultTime(){this.queryForm.month=this.getDate()},async exportData(){const e=await Object(c["deviceMonthExport"])(this.queryForm);d["default"].downloadFile(e,{fileName:"月运行报表.xls"})},async fetchData(){this.listLoading=!0;const{data:e}=await Object(c["deviceMonth"])(this.queryForm);this.reportData=e.items,this.total=e.total,setTimeout(()=>{this.listLoading=!1},500)},showData(){this.setDefaultTime(),this.fetchData()},search(){this.fetchData()},resetForm(){this.$refs.queryForm.resetFields()},handleAdd(){this.$refs["edit"].showEdit()},handleEdit(e){this.$refs["edit"].showEdit(e)},handleQuery(){this.queryForm.page=1,this.fetchData()},handleSizeChange(e){this.queryForm.size=e,this.fetchData()},handleCurrentChange(e){this.queryForm.page=e,this.fetchData()}}},m=(o("f5cc"),o("d959")),h=o.n(m);const p=h()(u,[["render",s],["__scopeId","data-v-9b038ca8"]]);t["default"]=p},"2a73":function(e,t,o){e.exports={"menu-color":"hsla(0,0%,27%,.95)","menu-color-active":"hsla(208,100%,55%,.95)","menu-background":"#fff","gallery-second-menu-background":"#fff"}},"2adf":function(e,t,o){e.exports=o.p+"static/img/404.16bf7149.png"},"2b1c":function(e,t,o){"use strict";o("9d88")},"2b25":function(e,t,o){},"2b39":function(e,t,o){},"2b3f":function(e,t,o){"use strict";o.r(t);var n=o("f2bf");function a(e,t,o,a,r,i){const l=Object(n["resolveComponent"])("el-option"),s=Object(n["resolveComponent"])("el-select"),c=Object(n["resolveComponent"])("el-form-item"),d=Object(n["resolveComponent"])("el-button"),u=Object(n["resolveComponent"])("el-form"),m=Object(n["resolveComponent"])("vab-query-form-left-panel"),h=Object(n["resolveComponent"])("vab-query-form"),p=Object(n["resolveComponent"])("vab-query-form-right-panel"),b=Object(n["resolveComponent"])("el-table-column"),g=Object(n["resolveComponent"])("el-table"),f=Object(n["resolveComponent"])("el-pagination"),v=Object(n["resolveComponent"])("trigger-edit"),w=Object(n["resolveDirective"])("loading");return Object(n["openBlock"])(),Object(n["createElementBlock"])(n["Fragment"],null,[Object(n["createVNode"])(h,null,{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(m,null,{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(u,{ref:"queryForm",inline:!0,model:r.queryForm},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(c,{label:e.$t("maintenance.sb"),prop:"deviceId"},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(s,{modelValue:r.queryForm.deviceId,"onUpdate:modelValue":t[0]||(t[0]=e=>r.queryForm.deviceId=e),placeholder:"请选择设备"},{default:Object(n["withCtx"])(()=>[(Object(n["openBlock"])(!0),Object(n["createElementBlock"])(n["Fragment"],null,Object(n["renderList"])(r.deviceData,e=>(Object(n["openBlock"])(),Object(n["createBlock"])(l,{key:e.id,label:e.name,value:e.id},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1},8,["label"]),Object(n["createVNode"])(d,{type:"primary",onClick:i.search},{default:Object(n["withCtx"])(()=>[Object(n["createTextVNode"])(Object(n["toDisplayString"])(e.$t("defalult.cx")),1)]),_:1},8,["onClick"]),Object(n["createVNode"])(d,{onClick:t[1]||(t[1]=e=>i.resetForm())},{default:Object(n["withCtx"])(()=>[Object(n["createTextVNode"])(Object(n["toDisplayString"])(e.$t("defalult.chongz")),1)]),_:1})]),_:1},8,["model"])]),_:1}),Object(n["createVNode"])(p,null,{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(h,null,{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(d,{type:"primary",onClick:i.handleAdd},{default:Object(n["withCtx"])(()=>[Object(n["createTextVNode"])(Object(n["toDisplayString"])(e.$t("trigger.tjcfq")),1)]),_:1},8,["onClick"])]),_:1})]),_:1})]),_:1}),Object(n["withDirectives"])((Object(n["openBlock"])(),Object(n["createBlock"])(g,{data:r.triggerData,stripe:"",border:"",style:{width:"100%"}},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(b,{prop:"id",label:e.$t("trigger.xh"),width:"80",align:"center"},null,8,["label"]),Object(n["createVNode"])(b,{prop:"name",label:e.$t("trigger.mc"),width:"180",align:"center"},null,8,["label"]),Object(n["createVNode"])(b,{prop:"triggerCondition",label:e.$t("trigger.cftjlx"),width:"280",align:"center"},null,8,["label"]),Object(n["createVNode"])(b,{prop:"triggerConditionParams",label:e.$t("trigger.cs"),width:"180",align:"center"},null,8,["label"]),Object(n["createVNode"])(b,{fixed:"right",label:e.$t("defalult.cz"),width:"160",align:"center"},{default:Object(n["withCtx"])(({row:o})=>[Object(n["createVNode"])(d,{type:"text",onClick:e=>i.details(o)},{default:Object(n["withCtx"])(()=>t[2]||(t[2]=[Object(n["createTextVNode"])("详情")])),_:2},1032,["onClick"]),Object(n["createVNode"])(d,{type:"text",onClick:e=>i.handleEdit(o)},{default:Object(n["withCtx"])(()=>[Object(n["createTextVNode"])(Object(n["toDisplayString"])(e.$t("defalult.bj")),1)]),_:2},1032,["onClick"]),Object(n["createVNode"])(d,{type:"text",onClick:e=>i.handleDelete(o)},{default:Object(n["withCtx"])(()=>[Object(n["createTextVNode"])(Object(n["toDisplayString"])(e.$t("defalult.sc")),1)]),_:2},1032,["onClick"])]),_:1},8,["label"])]),_:1},8,["data"])),[[w,r.listLoading]]),Object(n["createVNode"])(h,null,{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(p,null,{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(f,{background:r.background,"current-page":r.queryForm.page,layout:r.layout,"page-size":r.queryForm.size,total:r.total,onCurrentChange:i.handleCurrentChange,onSizeChange:i.handleSizeChange},null,8,["background","current-page","layout","page-size","total","onCurrentChange","onSizeChange"])]),_:1})]),_:1}),Object(n["createVNode"])(v,{ref:"edit"},null,512)],64)}o("14d9");var r=o("4303"),i=o("ffbb"),l={name:"TriggerTable",components:{triggerEdit:i["default"]},props:{projectId:{type:String,default:"projectId"}},data(){return{groupData:[],lazy:!0,layout:"total, sizes, prev, pager, next, jumper",total:0,background:!0,listLoading:!0,triggerData:[],deviceData:[],elementLoadingText:"正在加载...",queryForm:{page:1,size:20,projectId:"",deviceId:""}}},computed:{height(){return 500}},mounted(){this.queryForm.projectId=this.projectId,this.fetchData(),this.getDeviceData()},methods:{async soreStatus(e,t){const{code:o,msg:n}=await Object(r["doEdit"])({status:e,id:t});0==o?this.$notify({title:n,type:"success"}):this.$notify.error({title:n}),this.fetchData()},async fetchData(){this.listLoading=!0,this.triggerData=[];const{data:e}=await Object(r["getList"])(this.queryForm);this.triggerData=e.items,this.total=e.total,setTimeout(()=>{this.listLoading=!1},500)},async getDeviceData(){const{data:e}=await Object(r["selectDeviceByProjectId"])({projectId:this.queryForm.projectId});this.deviceData=e},search(){this.fetchData()},resetForm(){this.$refs.queryForm.resetFields()},handleAdd(){this.$refs["edit"].showEdit(this.projectId,1)},handleEdit(e){e.projectId=this.projectId,this.$refs["edit"].showEdit(e,2)},details(e){this.$router.push({path:"/triggerdetail",name:"触发器详情",query:{triggerId:e.id}})},handleQuery(){this.queryForm.page=1,this.fetchData()},handleSizeChange(e){this.queryForm.size=e,this.fetchData()},handleCurrentChange(e){this.queryForm.page=e,this.fetchData()},handleDelete(e){var t=this;e.id&&this.$confirm("你确定要删除当前项吗?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(()=>{const{msg:o}=Object(r["doDelete"])([e.id]);this.$message({type:"success",message:void 0==o?"删除成功":o}),setTimeout((function(){t.fetchData()}),1e3)}).catch(()=>{this.$message({type:"info",message:"已取消删除"})})}}},s=(o("1656"),o("d959")),c=o.n(s);const d=c()(l,[["render",a],["__scopeId","data-v-3bf4e469"]]);t["default"]=d},"2b50":function(e,t,o){"use strict";o("a78c")},"2b60":function(e,t,o){},"2bfe":function(e,t,o){"use strict";o("a7df")},"2c20":function(e,t,o){"use strict";o.r(t);var n=o("f2bf");const a={class:"manage-container"},r={class:"manage-wrap"},i={class:"manage-input"},l={class:"manage-button"};function s(e,t,o,s,c,d){const u=Object(n["resolveComponent"])("el-input"),m=Object(n["resolveComponent"])("el-form-item"),h=Object(n["resolveComponent"])("el-date-picker"),p=Object(n["resolveComponent"])("vab-query-form"),b=Object(n["resolveComponent"])("el-form"),g=Object(n["resolveComponent"])("el-button"),f=Object(n["resolveComponent"])("el-table-column"),v=Object(n["resolveComponent"])("el-table"),w=Object(n["resolveComponent"])("el-pagination"),k=Object(n["resolveComponent"])("water-graph"),C=Object(n["resolveDirective"])("loading");return Object(n["openBlock"])(),Object(n["createElementBlock"])("div",a,[Object(n["createElementVNode"])("div",r,[Object(n["createElementVNode"])("div",i,[Object(n["createVNode"])(b,{ref:"form",model:c.queryForm,"label-width":"80px"},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(p,null,{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(m,{width:"100",prop:"deviceName",label:e.$t("dfunction.xzsj")},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(u,{modelValue:c.queryForm.deviceName,"onUpdate:modelValue":t[0]||(t[0]=e=>c.queryForm.deviceName=e),size:"small",placeholder:e.$t("dataEnquiry.qsrzdmc")},null,8,["modelValue","placeholder"])]),_:1},8,["label"]),Object(n["createVNode"])(m,{width:"100",prop:"year",label:e.$t("defalult.sj")},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(h,{modelValue:c.queryForm.year,"onUpdate:modelValue":t[1]||(t[1]=e=>c.queryForm.year=e),size:"small",type:"year",placeholder:e.$t("dfunction.xzsj"),onChange:d.standardToTime},null,8,["modelValue","placeholder","onChange"])]),_:1},8,["label"])]),_:1})]),_:1},8,["model"])]),Object(n["createElementVNode"])("div",l,[Object(n["createVNode"])(g,{size:"small",onClick:t[2]||(t[2]=e=>d.resetForm())},{default:Object(n["withCtx"])(()=>[Object(n["createTextVNode"])(Object(n["toDisplayString"])(e.$t("defalult.chongz")),1)]),_:1}),Object(n["createVNode"])(g,{type:"primary",size:"small",onClick:d.search},{default:Object(n["withCtx"])(()=>[Object(n["createTextVNode"])(Object(n["toDisplayString"])(e.$t("defalult.cx")),1)]),_:1},8,["onClick"]),Object(n["createVNode"])(g,{type:"primary",size:"small",onClick:d.exportData},{default:Object(n["withCtx"])(()=>[Object(n["createTextVNode"])(Object(n["toDisplayString"])(e.$t("defalult.dc")),1)]),_:1},8,["onClick"])])]),Object(n["withDirectives"])((Object(n["openBlock"])(),Object(n["createBlock"])(v,{ref:"multipleTable",data:c.reportData,border:"","tooltip-effect":"light",style:{width:"100%"}},{default:Object(n["withCtx"])(()=>[(Object(n["openBlock"])(!0),Object(n["createElementBlock"])(n["Fragment"],null,Object(n["renderList"])(c.headerData,(e,t)=>(Object(n["openBlock"])(),Object(n["createBlock"])(f,{key:t,label:e,prop:e,fixed:"站点名称"==e,align:"center",width:"150"},null,8,["label","prop","fixed"]))),128)),Object(n["createVNode"])(f,{fixed:"right",label:e.$t("defalult.cz"),align:"center"},{default:Object(n["withCtx"])(({row:t})=>[Object(n["createVNode"])(g,{type:"text",onClick:e=>d.graph(t)},{default:Object(n["withCtx"])(()=>[Object(n["createTextVNode"])(Object(n["toDisplayString"])(e.$t("dfunction.qxt")),1)]),_:2},1032,["onClick"])]),_:1},8,["label"])]),_:1},8,["data"])),[[C,c.listLoading]]),Object(n["createVNode"])(w,{background:c.background,"current-page":c.queryForm.page,layout:c.layout,"page-size":c.queryForm.size,total:c.total,style:{"text-align":"right"},onCurrentChange:d.handleCurrentChange,onSizeChange:d.handleSizeChange},null,8,["background","current-page","layout","page-size","total","onCurrentChange","onSizeChange"]),Object(n["createVNode"])(k,{ref:"water"},null,512)])}o("14d9");var c=o("94b0"),d=o("3038"),u=o("5f99"),m=o("4b95"),h={name:"Index",components:{waterGraph:m["default"]},data(){return{reportData:[],headerData:{},lazy:!0,activeName:"first",layout:"total, sizes, prev, pager, next, jumper",total:0,input:"",textarea:"",background:!0,listLoading:!0,elementLoadingText:"正在加载...",queryForm:{page:1,size:20,year:"",projectId:"",deviceName:""}}},computed:{height(){return 500}},created(){},methods:{graph(e){this.$refs["water"].showData(e)},standardToTime(){this.queryForm.year=Object(u["getDate2"])(this.queryForm.year),console.log(this.queryForm.year)},setDefaultTime(){this.queryForm.year=Object(u["getDate2"])(),console.log(this.queryForm.year)},async exportData(){const e=await Object(c["waterMonthExport"])(this.queryForm);d["default"].downloadFile(e,{fileName:"水量月报.xls"})},async fetchData(){this.listLoading=!0;const{data:e}=await Object(c["waterMonth"])(this.queryForm),t=e.items;for(var o=[],n=0;n<t.length;n++)o.push(t[n]);this.reportData=e.items,this.headerData=Object.keys(o[0]),this.total=e.total,setTimeout(()=>{this.listLoading=!1},500)},showData(){this.setDefaultTime(),this.queryForm.projectId=sessionStorage.getItem("projectId"),setTimeout(()=>{this.fetchData()},1e3)},search(){this.fetchData()},resetForm(){this.$refs.queryForm.resetFields()},handleAdd(){this.$refs["edit"].showEdit()},handleEdit(e){this.$refs["edit"].showEdit(e)},handleQuery(){this.queryForm.page=1,this.fetchData()},handleSizeChange(e){this.queryForm.size=e,this.fetchData()},handleCurrentChange(e){this.queryForm.page=e,this.fetchData()}}},p=(o("44b1"),o("d959")),b=o.n(p);const g=b()(h,[["render",s],["__scopeId","data-v-3da4c6c0"]]);t["default"]=g},"2c21":function(e,t,o){"use strict";o.r(t);var n=o("f2bf");const a={class:"dialog-footer"};function r(e,t,o,r,i,l){const s=Object(n["resolveComponent"])("el-input"),c=Object(n["resolveComponent"])("el-form-item"),d=Object(n["resolveComponent"])("el-option"),u=Object(n["resolveComponent"])("el-select"),m=Object(n["resolveComponent"])("el-date-picker"),h=Object(n["resolveComponent"])("el-form"),p=Object(n["resolveComponent"])("el-button"),b=Object(n["resolveComponent"])("el-dialog");return Object(n["openBlock"])(),Object(n["createBlock"])(b,{modelValue:i.dialogFormVisible,"onUpdate:modelValue":t[5]||(t[5]=e=>i.dialogFormVisible=e),title:i.title,width:"500px",onClose:l.close},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(h,{ref:"form",model:i.form,rules:i.rules,"label-width":"80px","label-position":"left"},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(c,{label:e.$t("task.rwnr"),prop:"taskContent"},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(s,{modelValue:i.form.taskContent,"onUpdate:modelValue":t[0]||(t[0]=e=>i.form.taskContent=e),type:"textarea",rows:2,placeholder:"任务内容"},null,8,["modelValue"])]),_:1},8,["label"]),Object(n["createVNode"])(c,{label:e.$t("task.clr"),prop:"handler"},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(u,{modelValue:i.form.handler,"onUpdate:modelValue":t[1]||(t[1]=e=>i.form.handler=e),style:{width:"100%"},filterable:"",placeholder:"处理人"},{default:Object(n["withCtx"])(()=>[(Object(n["openBlock"])(!0),Object(n["createElementBlock"])(n["Fragment"],null,Object(n["renderList"])(i.handlerData,e=>(Object(n["openBlock"])(),Object(n["createBlock"])(d,{key:e.id,label:e.name,value:e.id},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1},8,["label"]),Object(n["createVNode"])(c,{label:e.$t("task.wcsj"),prop:"completeTime"},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(m,{modelValue:i.form.completeTime,"onUpdate:modelValue":t[2]||(t[2]=e=>i.form.completeTime=e),type:"datetime",placeholder:"选择完成时间",align:"right",onChange:l.dateChange},null,8,["modelValue","onChange"])]),_:1},8,["label"]),Object(n["createVNode"])(c,{label:"指派车辆",prop:"tqImei"},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(u,{modelValue:i.form.tqImei,"onUpdate:modelValue":t[3]||(t[3]=e=>i.form.tqImei=e),style:{width:"100%"},filterable:"",placeholder:"指派车辆"},{default:Object(n["withCtx"])(()=>[(Object(n["openBlock"])(!0),Object(n["createElementBlock"])(n["Fragment"],null,Object(n["renderList"])(i.tqImeiData,e=>(Object(n["openBlock"])(),Object(n["createBlock"])(d,{key:e.imei,label:e.num,value:e.imei},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),Object(n["createVNode"])(c,{prop:"taskLevel",label:"紧急程度"},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(u,{modelValue:i.form.taskLevel,"onUpdate:modelValue":t[4]||(t[4]=e=>i.form.taskLevel=e),style:{width:"100%"},filterable:"",placeholder:"紧急程度"},{default:Object(n["withCtx"])(()=>[(Object(n["openBlock"])(!0),Object(n["createElementBlock"])(n["Fragment"],null,Object(n["renderList"])(i.levelData,e=>(Object(n["openBlock"])(),Object(n["createBlock"])(d,{key:e.dataCode,style:{width:"100%"},label:e.dataValue,value:e.dataCode},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1})]),_:1},8,["model","rules"]),Object(n["createElementVNode"])("div",a,[Object(n["createVNode"])(p,{onClick:l.close},{default:Object(n["withCtx"])(()=>t[6]||(t[6]=[Object(n["createTextVNode"])("取 消")])),_:1},8,["onClick"]),Object(n["createVNode"])(p,{type:"primary",onClick:l.save},{default:Object(n["withCtx"])(()=>t[7]||(t[7]=[Object(n["createTextVNode"])("确 定")])),_:1},8,["onClick"])])]),_:1},8,["modelValue","title","onClose"])}var i=o("9e04"),l=o("5f99"),s={data(){return{form:{deviceCode:"",alarmRecordId:"",taskContent:"",handler:"",completeTime:"",tqImei:"",taskLevel:""},rules:{taskContent:[{required:!0,trigger:"blur",message:"请输入任务内容"}],handler:[{required:!0,trigger:"change",message:"请选择处理人"}],completeTime:[{required:!0,trigger:"change",message:"请选择完成时间"}],tqImei:[{required:!0,trigger:"change",message:"请选择指派车辆"}],taskLevel:[{required:!0,trigger:"change",message:"请选择紧急程度"}]},projectId:"",title:"",tqImeiData:[],handlerData:[],levelData:[],dialogFormVisible:!1}},created(){},methods:{async getHandlersData(){const{data:e}=await Object(i["handlers"])({deviceCode:this.form.deviceCode});this.handlerData=e},async getTqDevices(){const{data:e}=await Object(i["tqDevices"])({projectId:this.projectId});this.tqImeiData=e},async getAlarmLevelDict(){const{data:e}=await Object(i["alarmLevelDict"])();this.levelData=e},dateChange(){var e=this.form.completeTime;this.form.completeTime=Object(l["formatDateTime"])(e)},showEdit(e){this.title="转工单",this.form.deviceCode=e.deviceCode,this.form.alarmRecordId=e.id,this.dialogFormVisible=!0,this.projectId=sessionStorage.getItem("projectId"),this.getHandlersData(),this.getTqDevices(),this.getAlarmLevelDict()},close(){this.$refs["form"].resetFields(),this.form=this.$options.data().form,this.dialogFormVisible=!1,this.$emit("fetch-data")},save(){this.$refs["form"].validate(async e=>{if(!e)return!1;{this.form.name=this.form.title;const{msg:e}=await Object(i["toTask"])(this.form);this.$notify({title:e,type:"success"}),this.$refs["form"].resetFields(),this.dialogFormVisible=!1,this.$parent.fetchData()}})}}},c=(o("1e92"),o("d959")),d=o.n(c);const u=d()(s,[["render",r]]);t["default"]=u},"2c34":function(e,t,o){"use strict";o.r(t);var n=o("f2bf");const a={class:"dialog-footer"};function r(e,t,o,r,i,l){const s=Object(n["resolveComponent"])("el-option"),c=Object(n["resolveComponent"])("el-select"),d=Object(n["resolveComponent"])("el-form-item"),u=Object(n["resolveComponent"])("el-input"),m=Object(n["resolveComponent"])("el-date-picker"),h=Object(n["resolveComponent"])("el-form"),p=Object(n["resolveComponent"])("el-button"),b=Object(n["resolveComponent"])("el-dialog");return Object(n["openBlock"])(),Object(n["createBlock"])(b,{modelValue:i.dialogFormVisible,"onUpdate:modelValue":t[5]||(t[5]=e=>i.dialogFormVisible=e),title:i.title,width:"500px"},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(h,{ref:"form",model:i.form,"label-width":"80px","label-position":"left"},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(d,{label:"选择站点"},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(c,{modelValue:i.form.deviceCode,"onUpdate:modelValue":t[0]||(t[0]=e=>i.form.deviceCode=e),filterable:"",placeholder:"选择站点",onChange:l.deviceChange},{default:Object(n["withCtx"])(()=>[(Object(n["openBlock"])(!0),Object(n["createElementBlock"])(n["Fragment"],null,Object(n["renderList"])(i.deviceData,e=>(Object(n["openBlock"])(),Object(n["createBlock"])(s,{key:e.code,label:e.name,value:e.code},null,8,["label","value"]))),128))]),_:1},8,["modelValue","onChange"])]),_:1}),Object(n["createVNode"])(d,{label:"紧急程度",prop:"taskLevel"},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(c,{modelValue:i.form.taskLevel,"onUpdate:modelValue":t[1]||(t[1]=e=>i.form.taskLevel=e),size:"small",filterable:"",placeholder:"选择紧急程度"},{default:Object(n["withCtx"])(()=>[(Object(n["openBlock"])(!0),Object(n["createElementBlock"])(n["Fragment"],null,Object(n["renderList"])(e.levelData,e=>(Object(n["openBlock"])(),Object(n["createBlock"])(s,{key:e.dataCode,label:e.dataValue,value:e.dataCode},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),Object(n["createVNode"])(d,{label:e.$t("task.rwnr")},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(u,{modelValue:i.form.taskContent,"onUpdate:modelValue":t[2]||(t[2]=e=>i.form.taskContent=e),type:"textarea"},null,8,["modelValue"])]),_:1},8,["label"]),Object(n["createVNode"])(d,{label:e.$t("task.clr")},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(c,{modelValue:i.form.handler,"onUpdate:modelValue":t[3]||(t[3]=e=>i.form.handler=e),filterable:"",placeholder:"选择处理人"},{default:Object(n["withCtx"])(()=>[(Object(n["openBlock"])(!0),Object(n["createElementBlock"])(n["Fragment"],null,Object(n["renderList"])(i.handlersData,e=>(Object(n["openBlock"])(),Object(n["createBlock"])(s,{key:e.id,label:e.name,value:e.id},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1},8,["label"]),Object(n["createVNode"])(d,{label:e.$t("task.wcsj")},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(m,{modelValue:i.form.completeTime,"onUpdate:modelValue":t[4]||(t[4]=e=>i.form.completeTime=e),type:"datetime",placeholder:e.$t("defalult.xzrq"),onChange:l.standardToTime},null,8,["modelValue","placeholder","onChange"])]),_:1},8,["label"])]),_:1},8,["model"]),Object(n["createElementVNode"])("div",a,[Object(n["createVNode"])(p,{type:"primary",onClick:l.save},{default:Object(n["withCtx"])(()=>t[6]||(t[6]=[Object(n["createTextVNode"])("确 定")])),_:1},8,["onClick"]),Object(n["createVNode"])(p,{onClick:l.close},{default:Object(n["withCtx"])(()=>t[7]||(t[7]=[Object(n["createTextVNode"])("取 消")])),_:1},8,["onClick"])])]),_:1},8,["modelValue","title"])}var i=o("b199"),l=o("1b0a"),s=o("5f99"),c={data(){return{form:{id:"",deviceCode:"",taskContent:"",handler:"",completeTime:"",taskLevel:"",type:1},title:"",dialogFormVisible:!1,deviceData:[],handlersData:[],queryForm:{projectId:""}}},created(){this.queryForm.projectId=sessionStorage.getItem("projectId")},methods:{async getDictData(){const{data:e}=await Object(l["getDevices"])(this.queryForm);this.deviceData=e},deviceChange(){this.getHandlersData()},async getHandlersData(){const{data:e}=await Object(i["getHandlers"])(this.form);this.handlersData=e},async getTaskLevelData(){const{data:e}=await Object(i["getTaskLevel"])(this.form);this.levelData=e},standardToTime(){this.form.completeTime=Object(s["formatDateTime"])(this.form.completeTime)},setDefaultTime(){this.form.completeTime=Object(s["formatDateTime"])()},showEdit(e){if(this.getDictData(),this.getTaskLevelData(),e){this.title="编辑",this.menuId=e.id;var t=Object.assign({},e);this.form.id=t.id,this.form.deviceCode=t.device.code,this.form.taskContent=t.taskContent,this.form.handler=t.handler.id,this.form.completeTime=t.completeTime,void 0!=t.taskLevel&&(this.form.taskLevel=t.taskLevel.dataCode),this.getHandlersData()}else this.title="添加",this.form.id="",this.form.deviceCode="",this.form.taskContent="",this.form.handler="",this.form.completeTime="";this.dialogFormVisible=!0},close(){this.$refs["form"].resetFields(),this.form=this.$options.data().form,this.dialogFormVisible=!1,this.$emit("fetch-data")},save(){this.$refs["form"].validate(async e=>{if(!e)return!1;if(""==this.form.taskContent&&delete this.form.taskContent,""==this.form.handler&&delete this.form.handler,""==this.form.completeTime&&delete this.form.completeTime,this.form.id){const{msg:e}=await Object(i["doEdit"])(this.form);this.$notify({title:e,type:"success"})}else{delete this.form.id;const{msg:e}=await Object(i["doAdd"])(this.form);this.$notify({title:e,type:"success"})}this.$refs["form"].resetFields(),this.dialogFormVisible=!1,this.$parent.fetchData()})}}},d=o("d959"),u=o.n(d);const m=u()(c,[["render",r]]);t["default"]=m},"2c87":function(e,t,o){"use strict";o.r(t);var n=o("f2bf");const a={class:"manage-container"};function r(e,t,o,r,i,l){const s=Object(n["resolveComponent"])("el-date-picker"),c=Object(n["resolveComponent"])("el-form-item"),d=Object(n["resolveComponent"])("el-input"),u=Object(n["resolveComponent"])("el-button"),m=Object(n["resolveComponent"])("vab-query-form"),h=Object(n["resolveComponent"])("el-form"),p=Object(n["resolveComponent"])("el-row"),b=Object(n["resolveComponent"])("el-table-column"),g=Object(n["resolveComponent"])("el-table"),f=Object(n["resolveComponent"])("el-pagination"),v=Object(n["resolveComponent"])("vab-query-form-right-panel"),w=Object(n["resolveDirective"])("loading");return Object(n["openBlock"])(),Object(n["createElementBlock"])("div",a,[Object(n["createVNode"])(p,null,{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(h,{ref:"form",model:e.form,"label-width":"80px"},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(m,null,{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(c,{label:e.$t("defalult.sj")},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(s,{modelValue:e.value1,"onUpdate:modelValue":t[0]||(t[0]=t=>e.value1=t),type:"daterange","range-separator":"至","start-placeholder":"开始日期","end-placeholder":"结束日期"},null,8,["modelValue"])]),_:1},8,["label"]),Object(n["createVNode"])(c,{label:"工单编号"},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(d,{modelValue:i.queryForm.name,"onUpdate:modelValue":t[1]||(t[1]=e=>i.queryForm.name=e),placeholder:"请输入工单编号"},null,8,["modelValue"])]),_:1}),Object(n["createVNode"])(c,{label:"关键字"},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(d,{modelValue:i.queryForm.name,"onUpdate:modelValue":t[2]||(t[2]=e=>i.queryForm.name=e),placeholder:"请输入关键字"},null,8,["modelValue"])]),_:1}),Object(n["createVNode"])(u,{type:"primary",onClick:e.search},{default:Object(n["withCtx"])(()=>[Object(n["createTextVNode"])(Object(n["toDisplayString"])(e.$t("defalult.cx")),1)]),_:1},8,["onClick"]),Object(n["createVNode"])(u,{type:"primary",onClick:e.search},{default:Object(n["withCtx"])(()=>[Object(n["createTextVNode"])(Object(n["toDisplayString"])(e.$t("defalult.dc")),1)]),_:1},8,["onClick"])]),_:1})]),_:1},8,["model"])]),_:1}),Object(n["withDirectives"])((Object(n["openBlock"])(),Object(n["createBlock"])(g,{data:i.data,border:"",stripe:"",style:{width:"100%"}},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(b,{prop:"id",label:e.$t("trigger.xh"),width:"60",align:"center"},null,8,["label"]),Object(n["createVNode"])(b,{prop:"jiedao",label:"工单编号",width:"120",align:"center"}),Object(n["createVNode"])(b,{prop:"shequ",label:"工单类型",width:"200",align:"center"}),Object(n["createVNode"])(b,{prop:"mingcheng",label:e.$t("maintenance.zdlx"),width:"200",align:"center"},null,8,["label"]),Object(n["createVNode"])(b,{prop:"guimo",label:"业务类型",width:"200",align:"center"}),Object(n["createVNode"])(b,{prop:"kaishi1",label:"站点",width:"200",align:"center"}),Object(n["createVNode"])(b,{prop:"jieshu1",label:"街道类型",width:"200",align:"center"}),Object(n["createVNode"])(b,{prop:"dangqian",label:"位置",width:"200",align:"center"}),Object(n["createVNode"])(b,{prop:"kaishi2",label:"工单描述",width:"200",align:"center"}),Object(n["createVNode"])(b,{prop:"jieshu2",label:e.$t("grouping.cjsj"),width:"200",align:"center"},null,8,["label"]),Object(n["createVNode"])(b,{fixed:"right",label:e.$t("defalult.cz"),align:"center"},{default:Object(n["withCtx"])(({row:t})=>[Object(n["createVNode"])(u,{type:"text",onClick:e=>l.handleDelete(t)},{default:Object(n["withCtx"])(()=>[Object(n["createTextVNode"])(Object(n["toDisplayString"])(e.$t("defalult.sc")),1)]),_:2},1032,["onClick"])]),_:1},8,["label"])]),_:1},8,["data"])),[[w,i.listLoading]]),Object(n["createVNode"])(m,null,{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(v,null,{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(f,{background:i.background,"current-page":i.queryForm.page,layout:i.layout,"page-size":i.queryForm.size,total:i.total,onCurrentChange:l.handleCurrentChange,onSizeChange:l.handleSizeChange},null,8,["background","current-page","layout","page-size","total","onCurrentChange","onSizeChange"])]),_:1})]),_:1})])}var i={name:"Index",components:{},data(){return{data:[{id:1,jiedao:"123456",shequ:"工单类型",mingcheng:"站点类型",guimo:"业务类型",kaishi1:"站点",jieshu1:"街道类型",dangqian:"位置",kaishi2:"工单描述",jieshu2:"2022-10-1"},{id:2,jiedao:"123456",shequ:"工单类型",mingcheng:"站点类型",guimo:"业务类型",kaishi1:"站点",jieshu1:"街道类型",dangqian:"位置",kaishi2:"工单描述",jieshu2:"2022-10-1"},{id:3,jiedao:"123456",shequ:"工单类型",mingcheng:"站点类型",guimo:"业务类型",kaishi1:"站点",jieshu1:"街道类型",dangqian:"位置",kaishi2:"工单描述",jieshu2:"2022-10-1"}],lazy:!0,activeName:"first",layout:"total, sizes, prev, pager, next, jumper",total:0,input:"",textarea:"",list:[],background:!0,listLoading:!0,elementLoadingText:"正在加载...",queryForm:{page:1,size:20,name:""}}},computed:{height(){return 500}},created(){this.fetchData()},methods:{async fetchData(){this.listLoading=!0,setTimeout(()=>{this.listLoading=!1},500)},handleAdd(){this.$refs["edit"].showEdit()},handleEdit(e){this.$refs["edit"].showEdit(e)},handleQuery(){this.queryForm.page=1,this.fetchData()},handleSizeChange(e){this.queryForm.size=e,this.fetchData()},handleCurrentChange(e){this.queryForm.page=e,this.fetchData()},handleDelete(e){e.id&&this.$confirm("你确定要删除当前项吗?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(()=>{this.$message({type:"success",message:"删除成功"})}).catch(()=>{this.$message({type:"info",message:"已取消删除"})})}}},l=(o("510b"),o("d959")),s=o.n(l);const c=s()(i,[["render",r],["__scopeId","data-v-dbe26910"]]);t["default"]=c},"2d64":function(e,t,o){"use strict";o("f616")},"2db2":function(e,t,o){"use strict";o("a5e0")},"2f10":function(e,t,o){"use strict";o.r(t);var n=o("f2bf");const a={class:"dialog-footer"};function r(e,t,o,r,i,l){const s=Object(n["resolveComponent"])("el-input"),c=Object(n["resolveComponent"])("el-form-item"),d=Object(n["resolveComponent"])("el-option"),u=Object(n["resolveComponent"])("el-select"),m=Object(n["resolveComponent"])("el-form"),h=Object(n["resolveComponent"])("el-button"),p=Object(n["resolveComponent"])("el-dialog");return Object(n["openBlock"])(),Object(n["createBlock"])(p,{modelValue:i.dialogFormVisible,"onUpdate:modelValue":t[2]||(t[2]=e=>i.dialogFormVisible=e),title:i.title,width:"500px",onClose:l.close},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(m,{ref:"form",model:i.form,rules:i.rules,"label-width":"80px"},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(c,{label:"部门名称",prop:"deptName"},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(s,{modelValue:i.form.deptName,"onUpdate:modelValue":t[0]||(t[0]=e=>i.form.deptName=e),modelModifiers:{trim:!0},autocomplete:"off"},null,8,["modelValue"])]),_:1}),Object(n["createVNode"])(c,{label:"上级部门",prop:"parentId"},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(u,{modelValue:i.form.parentId,"onUpdate:modelValue":t[1]||(t[1]=e=>i.form.parentId=e),placeholder:"请选择上级部门"},{default:Object(n["withCtx"])(()=>[(Object(n["openBlock"])(!0),Object(n["createElementBlock"])(n["Fragment"],null,Object(n["renderList"])(i.deptData,e=>(Object(n["openBlock"])(),Object(n["createBlock"])(d,{key:e.deptId,label:e.deptName,value:e.deptId},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1})]),_:1},8,["model","rules"]),Object(n["createElementVNode"])("div",a,[Object(n["createVNode"])(h,{type:"primary",size:"small",onClick:l.save},{default:Object(n["withCtx"])(()=>t[3]||(t[3]=[Object(n["createTextVNode"])("确 定")])),_:1},8,["onClick"]),Object(n["createVNode"])(h,{size:"small",onClick:l.close},{default:Object(n["withCtx"])(()=>t[4]||(t[4]=[Object(n["createTextVNode"])("取 消")])),_:1},8,["onClick"])])]),_:1},8,["modelValue","title","onClose"])}o("14d9");var i=o("fe05"),l={data(){return{form:{deptId:"",parentId:"",deptName:""},rules:{deptName:[{required:!0,trigger:"blur",message:"请输入部门名称"}]},clearable:!0,deptData:[],title:"",dialogFormVisible:!1}},created(){},methods:{async getDeptData(){const{data:e}=await Object(i["getDeptList"])();e.push({deptId:0,deptName:"顶级部门"}),this.deptData=e},deptEdit(e){this.getDeptData(),e?(this.title="编辑部门",this.form.deptId=e.id,this.form.parentId=e.parentId,this.form.deptName=e.label):this.title="添加部门",this.dialogFormVisible=!0},close(){this.$refs["form"].resetFields(),this.form=this.$options.data().form,this.dialogFormVisible=!1,this.$emit("fetch-data")},save(){this.$refs["form"].validate(async e=>{if(!e)return!1;if(this.form.name=this.form.title,this.form.deptId){const{msg:e}=await Object(i["doDeptEdit"])(this.form);this.$notify({title:e,type:"success"})}else{delete this.form.deptId;const{msg:e}=await Object(i["doDeptAdd"])(this.form);this.$notify({title:e,type:"success"})}this.$refs["form"].resetFields(),this.dialogFormVisible=!1,this.$parent.fetchData()})}}},s=(o("e463"),o("d959")),c=o.n(s);const d=c()(l,[["render",r]]);t["default"]=d},"2f47":function(e,t,o){},"2fc7":function(e,t,o){"use strict";o("29ea")},3038:function(e,t,o){"use strict";o.r(t);o("88a7"),o("271a"),o("5494");var n=o("bc3a"),a=o.n(n),r=o("4360");const i=a.a.create({baseURL:Object({NODE_ENV:"production",VUE_APP_AUTHOR:"Cc",VUE_APP_TITLE:"力鼎环保",VUE_APP_UPDATE_TIME:"2024-10-10 11:14:28",VUE_APP_VERSION:"1.0.0",BASE_URL:""}).VUE_APP_BASE_API,timeout:1e5}),l=r["default"].getters["user/token"];i.interceptors.request.use(e=>(e.headers={token:l},e),e=>Promise.reject(e));const s=async(e,t)=>{await i.get(e,{responseType:"arraybuffer"}).then(e=>u(e,t))},c=async(e,t)=>{await i.post(e,{responseType:"arraybuffer"}).then(e=>u(e,t))},d=async(e,t)=>{await i.get(e,{responseType:"blob"}).then(e=>u(e,t))},u=(e,t)=>{const o=new Blob([e.data],{type:t.fileType?t.fileType:"application/octet-binary"}),n=window.URL.createObjectURL(o);m(n,t.fileName)},m=(e,t,o)=>{const n=document.createElement("a");n.href=e,n.download=t,document.body.appendChild(n),n.click(),document.body.removeChild(n),(null==o||o)&&window.URL.revokeObjectURL(e)},h=async(e,t)=>{let o;return await i.get(e,{responseType:"blob"}).then(e=>{o=new Blob([e.data],{type:t||"application/octet-binary"})}),window.URL.createObjectURL(o)},p=async(e,t,o)=>{let n;return await i.post(e,t,{responseType:"blob"}).then(e=>{n=new Blob([e.data],{type:o||"application/octet-binary"})}),window.URL.createObjectURL(n)},b=async(e,t)=>{let o;return await i.get(e,{responseType:"blob"}).then(e=>{o=new Blob([e.data],{type:t||"application/octet-binary"})}),o};t["default"]={ajax:i,downloadFile:s,getFile:d,getDownloadFileUrl:h,downloadPostFile:c,getDownloadFileUrlByPost:p,getDownloadFileBlob:b,downloadBlob:m}},"307a":function(e,t,o){"use strict";o("6ba4")},"30bb":function(e,t,o){"use strict";o.r(t);var n=o("f2bf");const a={class:"manage-container"},r={class:"manage-button"};function i(e,t,o,i,l,s){const c=Object(n["resolveComponent"])("el-button"),d=Object(n["resolveComponent"])("el-table-column"),u=Object(n["resolveComponent"])("el-table"),m=Object(n["resolveComponent"])("el-pagination"),h=Object(n["resolveComponent"])("add-data"),p=Object(n["resolveDirective"])("loading");return Object(n["openBlock"])(),Object(n["createElementBlock"])("div",a,[Object(n["createElementVNode"])("div",r,[Object(n["createVNode"])(c,{type:"primary",size:"small",onClick:s.addData},{default:Object(n["withCtx"])(()=>[Object(n["createTextVNode"])(Object(n["toDisplayString"])(e.$t("defalult.tj")),1)]),_:1},8,["onClick"]),Object(n["createVNode"])(c,{type:"primary",size:"small",onClick:s.exportData},{default:Object(n["withCtx"])(()=>[Object(n["createTextVNode"])(Object(n["toDisplayString"])(e.$t("defalult.dc")),1)]),_:1},8,["onClick"])]),Object(n["withDirectives"])((Object(n["openBlock"])(),Object(n["createBlock"])(u,{data:l.flowData,border:"",stripe:"",style:{width:"100%"}},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(d,{prop:"name",label:e.$t("staff.xm"),width:"100",align:"center"},null,8,["label"]),Object(n["createVNode"])(d,{prop:"phone",label:"手机号",width:"150",align:"center"}),Object(n["createVNode"])(d,{prop:"company",label:"公司",width:"250",align:"center"}),Object(n["createVNode"])(d,{prop:"position",label:"职位",width:"120",align:"center"}),Object(n["createVNode"])(d,{prop:"email",label:e.$t("staff.yx"),width:"180",align:"center"},null,8,["label"]),Object(n["createVNode"])(d,{prop:"createTime",label:"添加时间",width:"180",align:"center"}),Object(n["createVNode"])(d,{fixed:"right",label:e.$t("defalult.cz"),align:"center"},{default:Object(n["withCtx"])(({row:t})=>[Object(n["createVNode"])(c,{type:"text",onClick:e=>s.editData(t)},{default:Object(n["withCtx"])(()=>[Object(n["createTextVNode"])(Object(n["toDisplayString"])(e.$t("defalult.bj")),1)]),_:2},1032,["onClick"]),Object(n["createVNode"])(c,{type:"text",onClick:e=>s.handleDelete(t)},{default:Object(n["withCtx"])(()=>[Object(n["createTextVNode"])(Object(n["toDisplayString"])(e.$t("defalult.sc")),1)]),_:2},1032,["onClick"])]),_:1},8,["label"])]),_:1},8,["data"])),[[p,l.listLoading]]),Object(n["createVNode"])(m,{background:l.background,"current-page":l.queryForm.pageIndex,layout:l.layout,"page-size":l.queryForm.size,total:l.total,style:{"text-align":"right"},onCurrentChange:s.handleCurrentChange,onSizeChange:s.handleSizeChange},null,8,["background","current-page","layout","page-size","total","onCurrentChange","onSizeChange"]),Object(n["createVNode"])(h,{ref:"data"},null,512)])}var l=o("fcd7"),s=o("ff4d"),c=o("3038"),d={name:"Index",components:{addData:s["default"]},data(){return{flowData:[],layout:"total, sizes, prev, pager, next, jumper",total:0,background:!0,listLoading:!0,elementLoadingText:"正在加载...",queryForm:{page:1,size:20}}},computed:{height(){return 500}},created(){this.fetchData()},methods:{async exportData(){const e=await Object(l["intentionExport"])([]);c["default"].downloadFile(e,{fileName:"意向用户.xlsx"})},async fetchData(){this.listLoading=!0;const{data:e}=await Object(l["getList"])(this.queryForm);this.flowData=e.items,this.total=e.total,setTimeout(()=>{this.listLoading=!1},500)},handleDelete(e){const t=this;e.id&&this.$confirm("你确定要删除当前项吗?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(()=>{const{msg:o}=Object(l["doDelete"])({customerId:e.id});this.$message({type:"success",message:void 0==o?"删除成功":o}),setTimeout((function(){t.fetchData()}),1e3)}).catch(()=>{this.$message({type:"info",message:"已取消删除"})})},search(){this.fetchData()},resetForm(){this.$refs.queryForm.resetFields()},editData(e){this.$refs["data"].showEdit(e)},addData(e){this.$refs["data"].showEdit(e)},handleQuery(){this.queryForm.pageIndex=1,this.fetchData()},handleSizeChange(e){this.queryForm.size=e,this.fetchData()},handleCurrentChange(e){this.queryForm.pageIndex=e,this.fetchData()}}},u=(o("c5a0"),o("2293"),o("d959")),m=o.n(u);const h=m()(d,[["render",i],["__scopeId","data-v-76b83eef"]]);t["default"]=h},"311d":function(e,t,o){"use strict";o("e139")},3141:function(e,t,o){},3145:function(e,t,o){"use strict";o("c209")},"31f8":function(e,t,o){"use strict";o("5717")},3243:function(e,t,o){},"32be":function(e,t,o){},3318:function(e,t,o){"use strict";o("82ae")},"33ec":function(e,t,o){e.exports={"menu-color":"hsla(0,0%,27%,.95)","menu-color-active":"hsla(208,100%,55%,.95)","menu-background":"#fff","gallery-second-menu-background":"#fff"}},3423:function(e,t,o){"use strict";o("bf9e")},3498:function(e,t,o){e.exports={"menu-color":"hsla(0,0%,27%,.95)","menu-color-active":"hsla(208,100%,55%,.95)","menu-background":"#fff","gallery-second-menu-background":"#fff"}},"34c9":function(e,t,o){e.exports={"menu-color":"hsla(0,0%,27%,.95)","menu-color-active":"hsla(208,100%,55%,.95)","menu-background":"#fff","gallery-second-menu-background":"#fff"}},"34d3":function(e,t,o){e.exports={"menu-color":"hsla(0,0%,27%,.95)","menu-color-active":"hsla(208,100%,55%,.95)","menu-background":"#fff","gallery-second-menu-background":"#fff"}},3508:function(e,t,o){"use strict";o.r(t);var n=o("f2bf");const a={class:"manage-input"},r={class:"dialog-footer",style:{"text-align":"right"}};function i(e,t,o,i,l,s){const c=Object(n["resolveComponent"])("el-option"),d=Object(n["resolveComponent"])("el-select"),u=Object(n["resolveComponent"])("el-form-item"),m=Object(n["resolveComponent"])("ckeditor"),h=Object(n["resolveComponent"])("el-button"),p=Object(n["resolveComponent"])("el-form"),b=Object(n["resolveComponent"])("select-data");return Object(n["openBlock"])(),Object(n["createElementBlock"])("div",a,[Object(n["createVNode"])(p,{ref:"form",model:l.form,"label-width":"80px","label-position":"left"},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(u,{label:"消息类型"},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(d,{modelValue:l.form.msgType,"onUpdate:modelValue":t[0]||(t[0]=e=>l.form.msgType=e),size:"small",filterable:"",placeholder:"消息类型",onChange:s.changeMsgType},{default:Object(n["withCtx"])(()=>[(Object(n["openBlock"])(!0),Object(n["createElementBlock"])(n["Fragment"],null,Object(n["renderList"])(l.msgTypeData,e=>(Object(n["openBlock"])(),Object(n["createBlock"])(c,{key:e.dataCode,label:e.dataValue,value:e.dataCode},null,8,["label","value"]))),128))]),_:1},8,["modelValue","onChange"])]),_:1}),l.isMaterial?(Object(n["openBlock"])(),Object(n["createBlock"])(u,{key:0,label:"素材类型",prop:"materialType"},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(d,{modelValue:l.form.materialType,"onUpdate:modelValue":t[1]||(t[1]=e=>l.form.materialType=e),size:"small",filterable:"",placeholder:"素材类型"},{default:Object(n["withCtx"])(()=>[(Object(n["openBlock"])(!0),Object(n["createElementBlock"])(n["Fragment"],null,Object(n["renderList"])(l.typeData,e=>(Object(n["openBlock"])(),Object(n["createBlock"])(c,{key:e.dataCode,label:e.dataValue,value:e.dataCode},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1})):Object(n["createCommentVNode"])("",!0),l.isText?(Object(n["openBlock"])(),Object(n["createBlock"])(u,{key:1,label:"文本内容",prop:"textContent"},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(m,{modelValue:l.form.textContent,"onUpdate:modelValue":t[2]||(t[2]=e=>l.form.textContent=e),size:"small",editor:l.editor,config:l.editorConfig},null,8,["modelValue","editor","config"])]),_:1})):Object(n["createCommentVNode"])("",!0),l.isMaterial?(Object(n["openBlock"])(),Object(n["createBlock"])(u,{key:2,label:"选择素材",prop:"mediaId"},{default:Object(n["withCtx"])(()=>[Object(n["createElementVNode"])("p",null,"已选择素材:"+Object(n["toDisplayString"])(l.form.mediaId),1),Object(n["createVNode"])(h,{type:"primary",size:"mini",onClick:t[3]||(t[3]=e=>s.showData())},{default:Object(n["withCtx"])(()=>t[4]||(t[4]=[Object(n["createTextVNode"])(" 选择素材 ")])),_:1})]),_:1})):Object(n["createCommentVNode"])("",!0)]),_:1},8,["model"]),Object(n["createElementVNode"])("div",r,[Object(n["createVNode"])(h,{type:"primary",size:"small",onClick:s.save},{default:Object(n["withCtx"])(()=>t[5]||(t[5]=[Object(n["createTextVNode"])("确 定")])),_:1},8,["onClick"])]),Object(n["createVNode"])(b,{ref:"select",onGetMaterialId:s.getMaterialId},null,8,["onGetMaterialId"])])}var l=o("3cf5"),s=o("4cfb"),c=o("c471"),d=o.n(c),u=(o("cd6d"),o("5847")),m=(o("cf45"),{components:{selectData:l["default"]},data(){return{form:{id:"",mediaId:"",msgType:"",textContent:"",materialType:""},clearable:!0,title:"",editor:d.a,editorConfig:u["knowledgeEditorConfig"],dialogFormVisible:!0,msgTypeData:[],typeData:[],isMaterial:!1,isText:!1}},created(){this.getSubscribeReplyData()},methods:{followIndex(){this.getSubscribeReplyData()},async getSubscribeReplyData(){const{data:e}=await Object(s["getSubscribeReply"])();this.form=e,this.materialOrText(this.form.msgType),this.getMaterialTypeData(),this.getMaterialMsgTypeData()},changeMsgType(){this.$refs["form"].resetFields(),this.materialOrText(this.form.msgType)},materialOrText(e){"material"==e?(this.isMaterial=!0,this.isText=!1):(this.isMaterial=!1,this.isText=!0)},showData(){this.$refs["select"].selectData()},async getMaterialMsgTypeData(){const{data:e}=await Object(s["getMaterialMsgType"])();this.msgTypeData=e},async getMaterialTypeData(){const{data:e}=await Object(s["getMaterialType"])();this.typeData=e},close(){this.$refs["form"].resetFields(),this.form=this.$options.data().form,this.dialogFormVisible=!1,this.$emit("fetch-data")},getMaterialId(e){this.form.mediaId=e},save(){this.$refs["form"].validate(async e=>{if(!e)return!1;{delete this.form.image,delete this.form.voice,delete this.form.video,delete this.form.news,this.form.textContent="面对全球普遍存在乡村、景区、民宿、营地、服务区等分散性场景,每天产生大量污水随意排放,受限厂网建设投资大和运营成本高等诸多现实因素,难以收集到集中式污水厂处理的严峻挑战。力鼎深知,污水问题不仅影响水环境的改善,更关乎人类的卫生需求和健康保障。我们有志成为全球领先的分散式场景污水处理解决方案服务商,通过科技创新和技术升级,为各类分散场景实现污水高效解决方案,为人类创造一个更加清洁、健康、宜居的生活环境。同时,我们也将积极履行社会责任,与各方携手合作,共同推动分散式污水处理行业的健康发展,为构建美好世界贡献力量。\n清道夫https://mp.weixin.qq.com/s/Xdgzc05iGKKIoIo7uXcHSg\n全球合伙人招募https://jinshuju.net/f/Ja8lek\n产品体验http://deepdragon.lidinghb.com/";const{msg:e}=await Object(s["materialSaveOrUpdate"])(this.form);this.$notify({title:e,type:"success"}),this.getSubscribeReplyData()}})}}}),h=(o("aada"),o("d959")),p=o.n(h);const b=p()(m,[["render",i]]);t["default"]=b},"351d":function(e,t,o){"use strict";o.r(t),o.d(t,"getList",(function(){return r})),o.d(t,"getDevices",(function(){return i})),o.d(t,"alarmCategoryDict",(function(){return l})),o.d(t,"doAdd",(function(){return s})),o.d(t,"doEdit",(function(){return c})),o.d(t,"doDelete",(function(){return d})),o.d(t,"doExport",(function(){return u}));var n=o("b775"),a=o("f121");function r(e){var t="?page="+e.page+"&size="+e.size+"&projectId="+e.projectId;return""!=e.deviceName&&(t+="&deviceName="+e.deviceName),""!=e.equipmentName&&(t+="&equipmentName="+e.equipmentName),Object(n["default"])({url:"/equipment/list"+t,method:"get",data:e})}function i(e){return Object(n["default"])({url:"/task/devices?projectId="+e.projectId,method:"get",data:e})}function l(e){return Object(n["default"])({url:"/equipment/dict",method:"get",data:e})}function s(e){return Object(n["default"])({url:"/equipment/add",method:"post",data:e})}function c(e){return Object(n["default"])({url:"/equipment/update",method:"post",data:e})}function d(e){return Object(n["default"])({url:"/alarmRecord/remove",method:"post",data:e})}function u(e){var t="?projectId="+e.projectId;return""!=e.deviceName&&(t+="&deviceName="+e.deviceName),""!=e.equipmentName&&(t+="&equipmentName="+e.equipmentName),a["baseURL"]+"equipment/export"+t}},3576:function(e,t,o){},"35db":function(e,t,o){"use strict";o.r(t),o.d(t,"getList",(function(){return r})),o.d(t,"doDelete",(function(){return i})),o.d(t,"doAdd",(function(){return l})),o.d(t,"doEdit",(function(){return s})),o.d(t,"exportWaterDetection",(function(){return c})),o.d(t,"waterRate",(function(){return d}));var n=o("b775"),a=o("f121");function r(e){var t="?page="+e.page+"&size="+e.size+"&projectId="+e.projectId;return""!=e.code&&(t+="&code="+e.code),""!=e.date&&(t+="&date="+e.date),Object(n["default"])({url:"/waterDetection/list"+t,method:"get",data:e})}function i(e){return Object(n["default"])({url:"/waterDetection/remove",method:"post",data:e})}function l(e){return Object(n["default"])({url:"/waterDetection/add",method:"post",data:e})}function s(e){return Object(n["default"])({url:"/waterDetection/update",method:"post",data:e})}function c(e){var t="?projectId="+e.projectId;return""!=e.deviceName&&(t+="&deviceName="+e.deviceName),""!=e.date&&(t+="&date="+e.date),a["baseURL"]+"/waterDetectionReport/export"+t}function d(e){var t="?projectId="+e.projectId;return""!=e.code&&(t+="&deviceCode="+e.code),""!=e.date&&(t+="&date="+e.date),Object(n["default"])({url:"/waterDetection/rate"+t,method:"get",data:e})}},"35e0":function(e,t,o){"use strict";o.r(t);var n=o("f2bf");const a={class:"image-list"},r={class:"page"};function i(e,t,o,i,l,s){const c=Object(n["resolveComponent"])("el-image"),d=Object(n["resolveComponent"])("el-pagination");return Object(n["openBlock"])(),Object(n["createElementBlock"])("div",a,[(Object(n["openBlock"])(!0),Object(n["createElementBlock"])(n["Fragment"],null,Object(n["renderList"])(l.imageData,e=>(Object(n["openBlock"])(),Object(n["createElementBlock"])("div",{key:e,class:"block"},[Object(n["createVNode"])(c,{style:{width:"200px",height:"200px"},src:e,fit:"cover","preview-src-list":l.imageData},null,8,["src","preview-src-list"])]))),128)),Object(n["createElementVNode"])("div",r,[Object(n["createVNode"])(d,{background:l.background,"current-page":l.queryForm.page,layout:l.layout,"page-size":l.queryForm.size,total:l.total,style:{"text-align":"right"},onCurrentChange:s.handleCurrentChange,onSizeChange:s.handleSizeChange},null,8,["background","current-page","layout","page-size","total","onCurrentChange","onSizeChange"])])])}var l=o("7cf8"),s=o("f121"),c={props:{deviceCode:{type:String,default:""}},data(){return{imageData:[],fileUrl:s["baseURL"]+"/static/capture/",background:!0,lazy:!0,layout:"total, sizes, prev, pager, next, jumper",total:0,queryForm:{deviceCode:"",page:1}}},watch:{deviceCode:function(e,t){this.queryForm.deviceCode=e,this.fetchData()}},created(){},methods:{showData(e){this.queryForm.deviceCode=e.deviceCode,this.fetchData()},async fetchData(){const{data:e}=await Object(l["getCaptureImg"])(this.queryForm);this.imageData=e.items,this.total=e.total},handleQuery(){this.queryForm.page=1,this.fetchData()},handleSizeChange(e){this.queryForm.size=e,this.fetchData()},handleCurrentChange(e){this.queryForm.page=e,this.fetchData()}}},d=(o("427d"),o("d959")),u=o.n(d);const m=u()(c,[["render",i],["__scopeId","data-v-75fd89ee"]]);t["default"]=m},"35ed":function(e,t,o){"use strict";o.r(t);var n=o("f2bf");const a={class:"dialog-footer"};function r(e,t,o,r,i,l){const s=Object(n["resolveComponent"])("el-option"),c=Object(n["resolveComponent"])("el-select"),d=Object(n["resolveComponent"])("el-form-item"),u=Object(n["resolveComponent"])("el-form"),m=Object(n["resolveComponent"])("el-button"),h=Object(n["resolveComponent"])("el-dialog");return Object(n["openBlock"])(),Object(n["createBlock"])(h,{modelValue:i.dialogFormVisible,"onUpdate:modelValue":t[1]||(t[1]=e=>i.dialogFormVisible=e),title:i.title,width:"500px",onClose:l.close},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(u,{ref:"form",model:i.form,rules:e.rules,"label-width":"80px"},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(d,{label:e.$t("maintenance.sb")},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(c,{modelValue:i.form.deviceCode,"onUpdate:modelValue":t[0]||(t[0]=e=>i.form.deviceCode=e),filterable:"",placeholder:"请选择设备"},{default:Object(n["withCtx"])(()=>[(Object(n["openBlock"])(!0),Object(n["createElementBlock"])(n["Fragment"],null,Object(n["renderList"])(i.deviceData,e=>(Object(n["openBlock"])(),Object(n["createBlock"])(s,{key:e.code,label:e.name,value:e.code},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1},8,["label"])]),_:1},8,["model","rules"]),Object(n["createElementVNode"])("div",a,[Object(n["createVNode"])(m,{onClick:l.close},{default:Object(n["withCtx"])(()=>t[2]||(t[2]=[Object(n["createTextVNode"])("取 消")])),_:1},8,["onClick"]),Object(n["createVNode"])(m,{type:"primary",onClick:l.save},{default:Object(n["withCtx"])(()=>t[3]||(t[3]=[Object(n["createTextVNode"])("确 定")])),_:1},8,["onClick"])])]),_:1},8,["modelValue","title","onClose"])}var i=o("4bf8"),l={name:"BindDevice",data(){return{form:{accessNum:"",deviceCode:""},projectId:"",deviceData:[],title:"",dialogFormVisible:!1}},created(){},methods:{handleCountryChange(e){if(e){const t=e.length-1;this.form.parentId=e[t]}else this.form.parentId=0},async getDevice(){const{data:e}=await Object(i["ldDeviceByProjectId"])({projectId:this.projectId});this.deviceData=e},showDetail(e){this.title="绑定设备",this.form.accessNum=e,this.projectId=sessionStorage.getItem("projectId"),this.dialogFormVisible=!0,this.getDevice()},close(){this.$refs["form"].resetFields(),this.form=this.$options.data().form,this.dialogFormVisible=!1,this.$emit("fetch-data")},save(){this.$refs["form"].validate(async e=>{if(!e)return!1;{const{msg:e}=await Object(i["simBindDevice"])(this.form);this.$notify({title:e,type:"success"}),this.$refs["form"].resetFields(),this.dialogFormVisible=!1,this.$parent.fetchData()}})}}},s=(o("7039"),o("d959")),c=o.n(s);const d=c()(l,[["render",r]]);t["default"]=d},3622:function(e,t,o){"use strict";o("a591")},3626:function(e,t,o){},"365c":function(e,t,o){"use strict";o.r(t),o.d(t,"getBasicData",(function(){return a})),o.d(t,"getConsumptionData",(function(){return r})),o.d(t,"getInspectionData",(function(){return i})),o.d(t,"getAlarmData",(function(){return l})),o.d(t,"getTaskData",(function(){return s})),o.d(t,"getAttendanceData",(function(){return c}));var n=o("b775");function a(e){var t="?month="+e.month;return void 0!=e.projectId&&(t+="&projectId="+e.projectId),Object(n["default"])({url:"/overview/basic"+t,method:"get",data:e})}function r(e){var t="?start="+e.start+"&end="+e.end;return void 0!=e.projectId&&(t+="&projectId="+e.projectId),Object(n["default"])({url:"/overview/energyConsumption"+t,method:"get",data:e})}function i(e){var t="?start="+e.start+"&end="+e.end;return void 0!=e.projectId&&(t+="&projectId="+e.projectId),Object(n["default"])({url:"/overview/inspection"+t,method:"get",data:e})}function l(e){var t="?start="+e.start+"&end="+e.end;return void 0!=e.projectId&&(t+="&projectId="+e.projectId),Object(n["default"])({url:"/overview/alarm"+t,method:"get",data:e})}function s(e){var t="?start="+e.start+"&end="+e.end;return void 0!=e.projectId&&(t+="&projectId="+e.projectId),Object(n["default"])({url:"/overview/task"+t,method:"get",data:e})}function c(e){var t="?start="+e.start+"&end="+e.end;return void 0!=e.projectId&&(t+="&projectId="+e.projectId),Object(n["default"])({url:"/overview/attendance"+t,method:"get",data:e})}},"377f":function(e,t,o){"use strict";o.r(t);var n=o("f2bf");const a={id:"clockIn",style:{width:"100%",height:"350px"}};function r(e,t,o,r,i,l){return Object(n["openBlock"])(),Object(n["createElementBlock"])("div",a)}var i=o("313e"),l={props:{rate:{type:Number}},data(){return{chartPie:null,data:[]}},watch:{rate(e){this.data=[{value:e}],setTimeout(()=>{this.drawCharts()},500)}},mounted:function(){},methods:{drawPieChart(){this.chartPie=i["a"](document.getElementById("clockIn")),this.chartPie.setOption({title:{left:"center",text:"考勤打卡"},series:[{type:"gauge",axisLine:{lineStyle:{width:25,color:[[.3,"#67e0e3"],[.7,"#37a2da"],[1,"#fd666d"]]}},pointer:{itemStyle:{color:"auto"}},axisTick:{distance:-20,length:8,lineStyle:{color:"#fff",width:1}},splitLine:{distance:-20,length:20,lineStyle:{color:"#fff",width:4}},axisLabel:{color:"inherit",distance:30,fontSize:14},detail:{valueAnimation:!0,formatter:"{value} %",color:"inherit",fontsize:24},data:this.data}]})},drawCharts(){this.drawPieChart()}}},s=o("d959"),c=o.n(s);const d=c()(l,[["render",r]]);t["default"]=d},"37f9":function(e,t,o){"use strict";o.r(t);var n=o("f2bf"),a=o("7205"),r=o.n(a),i=o("7825"),l=o.n(i),s=o("8fea"),c=o.n(s),d=o("69a7"),u=o.n(d),m=o("fe73"),h=o.n(m);const p={class:"container"},b={class:"echart-wrap"},g={class:"echart-item",style:{width:"100%"}},f={class:"echart-head"},v={class:"echart-title"},w={class:"echart-wrap"},k={class:"echart-item",style:{width:"calc(55% - 20px)"}},C={class:"echart-head"},y={class:"echart-title"},O={class:"wrap-content"},j={class:"wrap-content-item"},x={class:"wrap-content-item"},_={class:"wrap-content-item"},V={class:"echart-item",style:{width:"45%"}},A={class:"echart-head"},N={class:"echart-title"},D={class:"echart-wrap"},E={class:"echart-item",style:{width:"100%"}},T={class:"echart-head"},S={class:"echart-title"},B={class:"wrap-content-second"},I={class:"wrap-content-L"},z={class:"wrap-content-top"},F={class:"wrap-content-item"},M={class:"wrap-content-font"},L={class:"wrap-content-size",style:{"margin-bottom":"5px"}},P={class:"wrap-content-size",style:{color:"rgb(66, 147, 245)","font-weight":"600"}},R={class:"wrap-content-item"},q={class:"wrap-content-font"},$={class:"wrap-content-size",style:{"margin-bottom":"5px"}},U={class:"wrap-content-size",style:{color:"rgb(245, 124, 66)","font-weight":"600"}},H={class:"wrap-content-bottom"},W={class:"wrap-content-item"},G={class:"wrap-content-font"},K={class:"wrap-content-size",style:{"margin-bottom":"5px"}},Y={key:0},Q={key:1},J={class:"wrap-content-size",style:{color:"rgb(66, 245, 125)","font-weight":"600"}},Z={key:0},X={key:1},ee={class:"wrap-content-item"},te={class:"wrap-content-font"},oe={class:"wrap-content-size",style:{"margin-bottom":"5px"}},ne={key:0},ae={key:1},re={class:"wrap-content-size",style:{color:"rgb(245, 195, 66)","font-weight":"600"}},ie={key:0},le={key:1},se={key:0,class:"wrap-content-item"},ce={class:"wrap-content-font"},de={class:"wrap-content-size",style:{"margin-bottom":"5px"}},ue={class:"wrap-content-size",style:{color:"rgb(66, 188, 245)","font-weight":"600"}},me={class:"wrap-content-R"},he={class:"echart-wrap"},pe={class:"echart-item",style:{width:"100%"}},be={class:"echart-head"},ge={class:"echart-title"},fe={class:"echart-list"},ve={class:"personnel-content-item"},we={class:"personnel-content-item"},ke={class:"personnel-content-item"},Ce={class:"personnel-content-item"},ye={class:"echart-wrap"},Oe={class:"echart-item",style:{width:"calc(50% - 10px)"}},je={class:"echart-head"},xe={class:"echart-title"},_e={class:"personnel-content-item",style:{width:"100%"}},Ve={style:{display:"flex","justify-content":"center","align-items":"center"}},Ae={class:"wrap-content-item-h2",style:{"font-size":"14px","font-weight":"500"}},Ne={class:"wrap-content-item-h2",style:{"font-size":"14px","font-weight":"500","margin-left":"20px"}},De={class:"echart-item",style:{width:"calc(50% - 10px)"}},Ee={class:"echart-head"},Te={class:"echart-title"},Se={class:"personnel-content-item",style:{padding:"25px 15px 15px"}};function Be(e,t,o,a,i,s){const d=Object(n["resolveComponent"])("el-switch"),m=Object(n["resolveComponent"])("perfect"),Be=Object(n["resolveComponent"])("el-date-picker"),Ie=Object(n["resolveComponent"])("operating"),ze=Object(n["resolveComponent"])("consumption"),Fe=Object(n["resolveComponent"])("maintenance-personnel"),Me=Object(n["resolveComponent"])("maintenance-site"),Le=Object(n["resolveComponent"])("alarm"),Pe=Object(n["resolveComponent"])("work"),Re=Object(n["resolveComponent"])("clock-in"),qe=Object(n["resolveComponent"])("clock-fold");return Object(n["openBlock"])(),Object(n["createElementBlock"])("div",p,[Object(n["createElementVNode"])("div",b,[Object(n["createElementVNode"])("div",g,[Object(n["createElementVNode"])("div",f,[Object(n["createElementVNode"])("h1",v,Object(n["toDisplayString"])(e.$t("index.allTxt")),1),Object(n["createVNode"])(d,{modelValue:i.isAllProject,"onUpdate:modelValue":t[0]||(t[0]=e=>i.isAllProject=e),"active-value":!0,"inactive-value":!1,"active-color":"#13ce66","inactive-color":"#ff4949",onChange:s.changeSwitch},null,8,["modelValue","onChange"])])])]),Object(n["createElementVNode"])("div",w,[Object(n["createElementVNode"])("div",k,[Object(n["createElementVNode"])("div",C,[Object(n["createElementVNode"])("h1",y,Object(n["toDisplayString"])(e.$t("index.jjxx")),1)]),Object(n["createElementVNode"])("div",O,[Object(n["createElementVNode"])("div",j,[Object(n["createVNode"])(m,{perfectId:"all",name:e.$t("index.zzd"),color:"#58D9F8",rate:i.basicData.total,all:i.basicData.total},null,8,["name","rate","all"])]),Object(n["createElementVNode"])("div",x,[Object(n["createVNode"])(m,{perfectId:"yxzd",name:e.$t("index.yxzd"),color:"#46B330",rate:i.basicData.online,all:i.basicData.total},null,8,["name","rate","all"])]),Object(n["createElementVNode"])("div",_,[Object(n["createVNode"])(m,{perfectId:"lxzd",name:e.$t("index.lxzd"),color:"#F56F47",rate:i.basicData.offline,all:i.basicData.total},null,8,["name","rate","all"])])])]),Object(n["createElementVNode"])("div",V,[Object(n["createElementVNode"])("div",A,[Object(n["createElementVNode"])("h1",N,Object(n["toDisplayString"])(e.$t("index.syxmyxl")),1),Object(n["createVNode"])(Be,{modelValue:i.basicTime,"onUpdate:modelValue":t[1]||(t[1]=e=>i.basicTime=e),type:"month",placeholder:e.$t("defalult.xzrq"),onChange:s.searchBasic},null,8,["modelValue","placeholder","onChange"])]),Object(n["createVNode"])(Ie,{runRate:i.basicData.runRate},null,8,["runRate"])])]),Object(n["createElementVNode"])("div",D,[Object(n["createElementVNode"])("div",E,[Object(n["createElementVNode"])("div",T,[Object(n["createElementVNode"])("h1",S,Object(n["toDisplayString"])(e.$t("index.nhzb")),1),Object(n["createVNode"])(Be,{modelValue:i.consumptionTime,"onUpdate:modelValue":t[2]||(t[2]=e=>i.consumptionTime=e),type:"daterange","range-separator":e.$t("defalult.z"),"start-placeholder":e.$t("defalult.ksrq"),"end-placeholder":e.$t("defalult.jsrq"),onChange:s.searchConsumption},null,8,["modelValue","range-separator","start-placeholder","end-placeholder","onChange"])]),Object(n["createElementVNode"])("div",B,[Object(n["createElementVNode"])("div",I,[Object(n["createElementVNode"])("div",z,[Object(n["createElementVNode"])("div",F,[t[5]||(t[5]=Object(n["createElementVNode"])("div",{class:"wrap-content-img"},[Object(n["createElementVNode"])("img",{src:r.a,width:"82"})],-1)),Object(n["createElementVNode"])("div",M,[Object(n["createElementVNode"])("h2",L,Object(n["toDisplayString"])(e.$t("index.ljydl")),1),Object(n["createElementVNode"])("h1",P,Object(n["toDisplayString"])(i.consumptionData.elec)+"w/Kwh ",1)])]),Object(n["createElementVNode"])("div",R,[t[6]||(t[6]=Object(n["createElementVNode"])("div",{class:"wrap-content-img"},[Object(n["createElementVNode"])("img",{src:l.a,width:"82"})],-1)),Object(n["createElementVNode"])("div",q,[Object(n["createElementVNode"])("h2",$,Object(n["toDisplayString"])(e.$t("index.ljysl")),1),Object(n["createElementVNode"])("h1",U,Object(n["toDisplayString"])(i.consumptionData.water)+"m³/d ",1)])])]),Object(n["createElementVNode"])("div",H,[Object(n["createElementVNode"])("div",W,[t[7]||(t[7]=Object(n["createElementVNode"])("div",{class:"wrap-content-img"},[Object(n["createElementVNode"])("img",{src:c.a,width:"82"})],-1)),Object(n["createElementVNode"])("div",G,[Object(n["createElementVNode"])("h2",K,[i.isQDF?(Object(n["openBlock"])(),Object(n["createElementBlock"])("span",Y,Object(n["toDisplayString"])(e.$t("index.jd")),1)):(Object(n["openBlock"])(),Object(n["createElementBlock"])("span",Q,Object(n["toDisplayString"])(e.$t("index.yd")),1))]),Object(n["createElementVNode"])("h1",J,[i.isQDF?(Object(n["openBlock"])(),Object(n["createElementBlock"])("span",Z,Object(n["toDisplayString"])(i.consumptionData.conserveElec)+"Kwh ",1)):(Object(n["openBlock"])(),Object(n["createElementBlock"])("span",X,Object(n["toDisplayString"])(i.consumptionData.elecUse)+"Kwh",1))])])]),Object(n["createElementVNode"])("div",ee,[t[8]||(t[8]=Object(n["createElementVNode"])("div",{class:"wrap-content-img"},[Object(n["createElementVNode"])("img",{src:u.a,width:"82"})],-1)),Object(n["createElementVNode"])("div",te,[Object(n["createElementVNode"])("h2",oe,[i.isQDF?(Object(n["openBlock"])(),Object(n["createElementBlock"])("span",ne,Object(n["toDisplayString"])(e.$t("index.js")),1)):(Object(n["openBlock"])(),Object(n["createElementBlock"])("span",ae,Object(n["toDisplayString"])(e.$t("index.ys")),1))]),Object(n["createElementVNode"])("h1",re,[i.isQDF?(Object(n["openBlock"])(),Object(n["createElementBlock"])("span",ie,Object(n["toDisplayString"])(i.consumptionData.conserveWater)+"m³/d ",1)):(Object(n["openBlock"])(),Object(n["createElementBlock"])("span",le,Object(n["toDisplayString"])(i.consumptionData.waterUse)+"m³/d",1))])])]),i.isQDF?(Object(n["openBlock"])(),Object(n["createElementBlock"])("div",se,[t[9]||(t[9]=Object(n["createElementVNode"])("div",{class:"wrap-content-img"},[Object(n["createElementVNode"])("img",{src:h.a,width:"82"})],-1)),Object(n["createElementVNode"])("div",ce,[Object(n["createElementVNode"])("h2",de,Object(n["toDisplayString"])(e.$t("index.jt")),1),Object(n["createElementVNode"])("h1",ue,Object(n["toDisplayString"])(i.consumptionData.conserveCarbon)+"m³/d ",1)])])):Object(n["createCommentVNode"])("",!0)])]),Object(n["createElementVNode"])("div",me,[Object(n["createVNode"])(ze,{rates:i.consumptionData.rate},null,8,["rates"])])])])]),Object(n["createElementVNode"])("div",he,[Object(n["createElementVNode"])("div",pe,[Object(n["createElementVNode"])("div",be,[Object(n["createElementVNode"])("h1",ge,Object(n["toDisplayString"])(e.$t("index.xjtb")),1),Object(n["createVNode"])(Be,{modelValue:i.maintenanceTime,"onUpdate:modelValue":t[3]||(t[3]=e=>i.maintenanceTime=e),type:"daterange","range-separator":e.$t("defalult.z"),"start-placeholder":e.$t("defalult.ksrq"),"end-placeholder":e.$t("defalult.jsrq")},null,8,["modelValue","range-separator","start-placeholder","end-placeholder"])]),Object(n["createElementVNode"])("div",fe,[Object(n["createElementVNode"])("div",ve,[Object(n["createVNode"])(Fe,{time:i.maintenanceTime,all:i.isAllProject},null,8,["time","all"])]),t[10]||(t[10]=Object(n["createElementVNode"])("div",{class:"echart-line"},null,-1)),Object(n["createElementVNode"])("div",we,[Object(n["createVNode"])(Me,{time:i.maintenanceTime,all:i.isAllProject},null,8,["time","all"])]),t[11]||(t[11]=Object(n["createElementVNode"])("div",{class:"echart-line"},null,-1)),Object(n["createElementVNode"])("div",ke,[Object(n["createVNode"])(Le,{time:i.maintenanceTime,all:i.isAllProject},null,8,["time","all"])]),t[12]||(t[12]=Object(n["createElementVNode"])("div",{class:"echart-line"},null,-1)),Object(n["createElementVNode"])("div",Ce,[Object(n["createVNode"])(Pe,{time:i.maintenanceTime,all:i.isAllProject},null,8,["time","all"])])])])]),Object(n["createElementVNode"])("div",ye,[Object(n["createElementVNode"])("div",Oe,[Object(n["createElementVNode"])("div",je,[Object(n["createElementVNode"])("h1",xe,Object(n["toDisplayString"])(e.$t("index.kqdk")),1),Object(n["createVNode"])(Be,{modelValue:i.attendanceTime,"onUpdate:modelValue":t[4]||(t[4]=e=>i.attendanceTime=e),type:"daterange","range-separator":e.$t("defalult.z"),"start-placeholder":e.$t("defalult.ksrq"),"end-placeholder":e.$t("defalult.jsrq"),onChange:s.searchAttendance},null,8,["modelValue","range-separator","start-placeholder","end-placeholder","onChange"])]),Object(n["createElementVNode"])("div",_e,[Object(n["createElementVNode"])("div",Ve,[Object(n["createElementVNode"])("h2",Ae,Object(n["toDisplayString"])(e.$t("index.ydk"))+": "+Object(n["toDisplayString"])(i.attendanceData.sign),1),Object(n["createElementVNode"])("h2",Ne,Object(n["toDisplayString"])(e.$t("index.wdk"))+": "+Object(n["toDisplayString"])(i.attendanceData.unSign),1)]),Object(n["createVNode"])(Re,{rate:i.attendanceData.attendanceRate},null,8,["rate"])])]),Object(n["createElementVNode"])("div",De,[Object(n["createElementVNode"])("div",Ee,[Object(n["createElementVNode"])("h1",Te,Object(n["toDisplayString"])(e.$t("index.kqdkcstj")),1)]),Object(n["createElementVNode"])("div",Se,[Object(n["createVNode"])(qe,{details:i.attendanceData.details},null,8,["details"])])])])])}var Ie=o("8d67"),ze=o("21dd"),Fe=o("17ab"),Me=o("d400"),Le=o("a72c"),Pe=o("3ccd"),Re=o("377f"),qe=o("0fbe"),$e=o("cf49"),Ue=o("365c"),He=o("5f99"),We={components:{operating:Ie["default"],consumption:ze["default"],maintenancePersonnel:Fe["default"],maintenanceSite:Me["default"],alarm:Le["default"],work:Pe["default"],perfect:qe["default"],clockIn:Re["default"],clockFold:$e["default"]},data(){return{basicData:[],consumptionData:[],attendanceData:[],basicTime:"",consumptionTime:"",maintenanceTime:"",attendanceTime:"",isAllProject:!1,projectId:"",labelText:[],isQDF:!0}},created(){this.projectId=sessionStorage.getItem("projectId"),this.projectName=sessionStorage.getItem("projectName"),-1!=this.projectName.indexOf("清道夫")?this.isQDF=!0:(this.projectName.indexOf("一体化"),this.isQDF=!1),this.defaultTime(),this.getIndexData(),this.getConsumptionData(),this.getAttendanceData()},methods:{changeSwitch(){this.getConsumptionData(),this.getIndexData(),this.getAttendanceData()},defaultTime(){this.basicTime=Object(He["getDate1"])(),this.attendanceTime=this.consumptionTime=Object(He["getPastTime"])(1),setTimeout(()=>{this.maintenanceTime=Object(He["getPastTime"])(1)},500)},searchBasic(){this.getIndexData()},searchConsumption(){this.getConsumptionData()},searchAttendance(){this.getAttendanceData()},async getAttendanceData(){var e={};e=0==this.isAllProject?{start:Object(He["getDate"])(this.attendanceTime[0]),end:Object(He["getDate"])(this.attendanceTime[1]),projectId:this.projectId}:{start:Object(He["getDate"])(this.attendanceTime[0]),end:Object(He["getDate"])(this.attendanceTime[1])};const{data:t}=await Object(Ue["getAttendanceData"])(e);this.attendanceData=t},async getIndexData(){var e={};e=0==this.isAllProject?{month:Object(He["getDate1"])(this.basicTime),projectId:this.projectId}:{month:Object(He["getDate1"])(this.basicTime)};const{data:t}=await Object(Ue["getBasicData"])(e);this.basicData=t},async getConsumptionData(){var e={};e=0==this.isAllProject?{start:Object(He["getDate"])(this.consumptionTime[0]),end:Object(He["getDate"])(this.consumptionTime[1]),projectId:this.projectId}:{start:Object(He["getDate"])(this.consumptionTime[0]),end:Object(He["getDate"])(this.consumptionTime[1])};const{data:t}=await Object(Ue["getConsumptionData"])(e);this.consumptionData=t}}},Ge=(o("722a"),o("d959")),Ke=o.n(Ge);const Ye=Ke()(We,[["render",Be]]);t["default"]=Ye},3868:function(e,t,o){"use strict";o.r(t);var n=o("f2bf");const a={class:"dialog-footer"};function r(e,t,o,r,i,l){const s=Object(n["resolveComponent"])("el-input"),c=Object(n["resolveComponent"])("el-form-item"),d=Object(n["resolveComponent"])("el-form"),u=Object(n["resolveComponent"])("el-button"),m=Object(n["resolveComponent"])("el-dialog");return Object(n["openBlock"])(),Object(n["createBlock"])(m,{modelValue:i.dialogFormVisible,"onUpdate:modelValue":t[5]||(t[5]=e=>i.dialogFormVisible=e),title:i.title,width:"500px",onClose:l.close},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(d,{ref:"form",model:i.form,rules:i.rules,"label-width":"80px","label-position":"left"},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(c,{label:e.$t("staff.xm"),prop:"name"},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(s,{modelValue:i.form.name,"onUpdate:modelValue":t[0]||(t[0]=e=>i.form.name=e),modelModifiers:{trim:!0},autocomplete:"off"},null,8,["modelValue"])]),_:1},8,["label"]),Object(n["createVNode"])(c,{label:"手机号",prop:"phone"},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(s,{modelValue:i.form.phone,"onUpdate:modelValue":t[1]||(t[1]=e=>i.form.phone=e),modelModifiers:{trim:!0},autocomplete:"off"},null,8,["modelValue"])]),_:1}),Object(n["createVNode"])(c,{label:e.$t("staff.yx"),prop:"email"},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(s,{modelValue:i.form.email,"onUpdate:modelValue":t[2]||(t[2]=e=>i.form.email=e),modelModifiers:{trim:!0},autocomplete:"off"},null,8,["modelValue"])]),_:1},8,["label"]),Object(n["createVNode"])(c,{label:"微信",prop:"wechat"},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(s,{modelValue:i.form.wechat,"onUpdate:modelValue":t[3]||(t[3]=e=>i.form.wechat=e),modelModifiers:{trim:!0},autocomplete:"off"},null,8,["modelValue"])]),_:1}),Object(n["createVNode"])(c,{label:e.$t("alarm.bz"),prop:"remark"},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(s,{modelValue:i.form.remark,"onUpdate:modelValue":t[4]||(t[4]=e=>i.form.remark=e),modelModifiers:{trim:!0},type:"textarea",autocomplete:"off"},null,8,["modelValue"])]),_:1},8,["label"])]),_:1},8,["model","rules"]),Object(n["createElementVNode"])("div",a,[Object(n["createVNode"])(u,{onClick:l.close},{default:Object(n["withCtx"])(()=>t[6]||(t[6]=[Object(n["createTextVNode"])("取 消")])),_:1},8,["onClick"]),Object(n["createVNode"])(u,{type:"primary",onClick:l.save},{default:Object(n["withCtx"])(()=>t[7]||(t[7]=[Object(n["createTextVNode"])("确 定")])),_:1},8,["onClick"])])]),_:1},8,["modelValue","title","onClose"])}var i=o("f547"),l={name:"UserEdit",data(){return{form:{id:"",name:"",phone:"",email:"",wechat:"",remark:""},rules:{name:[{required:!0,trigger:"blur",message:"请输入姓名"}]},roleData:[],clearable:!0,roleId:"",parentData:[],title:"",dialogFormVisible:!1,diffData:{},ruleForm:[]}},created(){},methods:{showEdit(e){e?(this.title="编辑用户",this.form=Object.assign({},e),this.ruleForm=Object.assign({},e)):this.title="添加用户",this.dialogFormVisible=!0},close(){this.$refs["form"].resetFields(),this.form=this.$options.data().form,this.dialogFormVisible=!1,this.$emit("fetch-data")},getDiffData(){this.diffData={},Object.keys(this.form).forEach(e=>{this.form[e]!=this.ruleForm[e]&&(this.diffData[e]=this.form[e])})},save(){this.$refs["form"].validate(async e=>{if(!e)return!1;if(this.form.id){if(this.getDiffData(),0!=Object.keys(this.diffData).length){this.diffData.id=this.form.id;const{msg:e}=await Object(i["doEdit"])(this.diffData);this.$notify({title:e,type:"success"})}}else{const{msg:e}=await Object(i["doAdd"])(this.form);this.$notify({title:e,type:"success"})}this.$refs["form"].resetFields(),this.dialogFormVisible=!1,this.$parent.fetchData()})}}},s=(o("f3ae"),o("d959")),c=o.n(s);const d=c()(l,[["render",r]]);t["default"]=d},"38ac":function(e,t,o){},"38d44":function(e,t,o){"use strict";o.r(t);var n=o("f2bf");const a={class:"manage-container"};function r(e,t,o,r,i,l){const s=Object(n["resolveComponent"])("el-button"),c=Object(n["resolveComponent"])("vab-query-form"),d=Object(n["resolveComponent"])("el-table-column"),u=Object(n["resolveComponent"])("el-table"),m=Object(n["resolveComponent"])("dict-data");return Object(n["openBlock"])(),Object(n["createElementBlock"])("div",a,[Object(n["createVNode"])(c,null,{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(s,{type:"primary",size:"small",onClick:t[0]||(t[0]=e=>l.handleAdd())},{default:Object(n["withCtx"])(()=>t[1]||(t[1]=[Object(n["createTextVNode"])(" 添加数据 ")])),_:1})]),_:1}),Object(n["createVNode"])(u,{data:i.dictData,border:"",stripe:"",style:{width:"100%"}},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(d,{prop:"id",label:"数据ID",width:"200",align:"center"}),Object(n["createVNode"])(d,{prop:"dataCode",label:"键",width:"300",align:"center"}),Object(n["createVNode"])(d,{prop:"dataValue",label:"值",width:"400",align:"center"}),Object(n["createVNode"])(d,{fixed:"right",label:e.$t("defalult.cz"),align:"center"},{default:Object(n["withCtx"])(({row:t})=>[Object(n["createVNode"])(s,{type:"text",onClick:e=>l.handleEdit(t)},{default:Object(n["withCtx"])(()=>[Object(n["createTextVNode"])(Object(n["toDisplayString"])(e.$t("defalult.bj")),1)]),_:2},1032,["onClick"]),Object(n["createVNode"])(s,{type:"text",onClick:e=>l.handleDelete(t)},{default:Object(n["withCtx"])(()=>[Object(n["createTextVNode"])(Object(n["toDisplayString"])(e.$t("defalult.sc")),1)]),_:2},1032,["onClick"])]),_:1},8,["label"])]),_:1},8,["data"]),Object(n["createVNode"])(m,{ref:"edit"},null,512)])}var i=o("0ddc"),l=o("e1e0"),s={name:"Index",components:{dictData:l["default"]},data(){return{dictId:"",dictData:[],data:[],queryForm:{page:1,size:20}}},computed:{height(){return 500}},created(){this.dictId=this.$route.query.dictId,this.queryForm.page=this.$route.query.page,this.queryForm.size=this.$route.query.size,this.fetchData()},methods:{async fetchData(){const e=this;e.listLoading=!0;const{data:t}=await Object(i["getList"])(this.queryForm),o=t.items;o.forEach((function(t){t.id==e.dictId&&(e.dictData=t.dictData)})),setTimeout(()=>{e.listLoading=!1},500)},handleAdd(){this.$refs["edit"].showEdit({dictId:this.dictId},0)},handleEdit(e){this.$refs["edit"].showEdit({row:e,dictId:this.dictId},1)},handleDelete(e){const t=this;e.id&&this.$confirm("你确定要删除当前项吗?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(()=>{const{msg:o}=Object(i["removeDictData"])({dictDataId:e.id});this.$message({type:"success",message:void 0==o?"删除成功":o}),setTimeout((function(){t.fetchData()}),1e3)}).catch(()=>{this.$message({type:"info",message:"已取消删除"})})}}},c=(o("a4bd"),o("d959")),d=o.n(c);const u=d()(s,[["render",r]]);t["default"]=u},"394b":function(e,t,o){"use strict";o("c8ae")},"399b":function(e,t,o){"use strict";o.r(t);var n=o("f2bf");const a={class:"manage-container"},r={class:"dialog-footer"},i={class:"dialog-footer"};function l(e,t,o,l,s,c){const d=Object(n["resolveComponent"])("vab-query-form-left-panel"),u=Object(n["resolveComponent"])("el-button"),m=Object(n["resolveComponent"])("el-input"),h=Object(n["resolveComponent"])("el-form-item"),p=Object(n["resolveComponent"])("el-form"),b=Object(n["resolveComponent"])("el-dialog"),g=Object(n["resolveComponent"])("vab-query-form-right-panel"),f=Object(n["resolveComponent"])("vab-query-form"),v=Object(n["resolveComponent"])("el-table-column"),w=Object(n["resolveComponent"])("el-table"),k=Object(n["resolveComponent"])("el-pagination"),C=Object(n["resolveComponent"])("el-tab-pane"),y=Object(n["resolveComponent"])("el-link"),O=Object(n["resolveComponent"])("el-tabs");return Object(n["openBlock"])(),Object(n["createElementBlock"])("div",a,[Object(n["createVNode"])(O,{modelValue:s.activeName,"onUpdate:modelValue":t[22]||(t[22]=e=>s.activeName=e),onTabClick:c.handleClick},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(C,{label:"短信配置",name:"first"},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(f,null,{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(d),Object(n["createVNode"])(g,null,{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(u,{type:"primary",size:"small",onClick:t[0]||(t[0]=e=>s.dialogFormVisible=!0)},{default:Object(n["withCtx"])(()=>t[23]||(t[23]=[Object(n["createTextVNode"])(" 添加短信 ")])),_:1}),Object(n["createVNode"])(b,{modelValue:s.dialogFormVisible,"onUpdate:modelValue":t[6]||(t[6]=e=>s.dialogFormVisible=e),title:"添加顶级分类"},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(p,{model:s.form},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(h,{label:"上级分类","label-width":s.formLabelWidth},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(m,{modelValue:s.form.name,"onUpdate:modelValue":t[1]||(t[1]=e=>s.form.name=e),size:"small",autocomplete:"off"},null,8,["modelValue"])]),_:1},8,["label-width"]),Object(n["createVNode"])(h,{label:"分类名称","label-width":s.formLabelWidth},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(m,{modelValue:s.form.name,"onUpdate:modelValue":t[2]||(t[2]=e=>s.form.name=e),size:"small",autocomplete:"off"},null,8,["modelValue"])]),_:1},8,["label-width"]),Object(n["createVNode"])(h,{label:"分类排序","label-width":s.formLabelWidth},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(m,{modelValue:s.form.name,"onUpdate:modelValue":t[3]||(t[3]=e=>s.form.name=e),size:"small",autocomplete:"off"},null,8,["modelValue"])]),_:1},8,["label-width"])]),_:1},8,["model"]),Object(n["createElementVNode"])("div",r,[Object(n["createVNode"])(u,{type:"primary",size:"small",onClick:t[4]||(t[4]=e=>s.dialogFormVisible=!1)},{default:Object(n["withCtx"])(()=>t[24]||(t[24]=[Object(n["createTextVNode"])(" 确 定 ")])),_:1}),Object(n["createVNode"])(u,{size:"small",onClick:t[5]||(t[5]=e=>s.dialogFormVisible=!1)},{default:Object(n["withCtx"])(()=>t[25]||(t[25]=[Object(n["createTextVNode"])(" 取 消 ")])),_:1})])]),_:1},8,["modelValue"])]),_:1})]),_:1}),Object(n["createVNode"])(w,{data:s.tableData,border:"",stripe:"",style:{width:"100%"}},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(v,{prop:"name",label:"模板名称",width:"160",align:"center"}),Object(n["createVNode"])(v,{prop:"code",label:"模板编码",width:"160",align:"center"}),Object(n["createVNode"])(v,{prop:"date",label:e.$t("grouping.cjsj"),width:"160",align:"center"},null,8,["label"]),Object(n["createVNode"])(v,{prop:"content",label:"模板内容",width:"500",align:"center"}),Object(n["createVNode"])(v,{fixed:"right",label:e.$t("defalult.cz"),align:"center"},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(u,{type:"text",onClick:t[7]||(t[7]=e=>s.dialogFormEdit=!0)},{default:Object(n["withCtx"])(()=>[Object(n["createTextVNode"])(Object(n["toDisplayString"])(e.$t("defalult.bj")),1)]),_:1}),Object(n["createVNode"])(u,{type:"text"},{default:Object(n["withCtx"])(()=>[Object(n["createTextVNode"])(Object(n["toDisplayString"])(e.$t("defalult.sc")),1)]),_:1}),Object(n["createVNode"])(u,{type:"text"},{default:Object(n["withCtx"])(()=>t[26]||(t[26]=[Object(n["createTextVNode"])("群发")])),_:1}),Object(n["createVNode"])(b,{modelValue:s.dialogFormEdit,"onUpdate:modelValue":t[13]||(t[13]=e=>s.dialogFormEdit=e),title:"添加顶级分类"},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(p,{model:s.form},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(h,{label:"上级分类","label-width":s.formLabelWidth},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(m,{modelValue:s.form.name,"onUpdate:modelValue":t[8]||(t[8]=e=>s.form.name=e),size:"small",autocomplete:"off"},null,8,["modelValue"])]),_:1},8,["label-width"]),Object(n["createVNode"])(h,{label:"分类名称","label-width":s.formLabelWidth},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(m,{modelValue:s.form.name,"onUpdate:modelValue":t[9]||(t[9]=e=>s.form.name=e),size:"small",autocomplete:"off"},null,8,["modelValue"])]),_:1},8,["label-width"]),Object(n["createVNode"])(h,{label:"分类排序","label-width":s.formLabelWidth},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(m,{modelValue:s.form.name,"onUpdate:modelValue":t[10]||(t[10]=e=>s.form.name=e),size:"small",autocomplete:"off"},null,8,["modelValue"])]),_:1},8,["label-width"])]),_:1},8,["model"]),Object(n["createElementVNode"])("div",i,[Object(n["createVNode"])(u,{type:"primary",size:"small",onClick:t[11]||(t[11]=e=>s.dialogFormEdit=!1)},{default:Object(n["withCtx"])(()=>t[27]||(t[27]=[Object(n["createTextVNode"])(" 确 定 ")])),_:1}),Object(n["createVNode"])(u,{size:"small",onClick:t[12]||(t[12]=e=>s.dialogFormEdit=!1)},{default:Object(n["withCtx"])(()=>t[28]||(t[28]=[Object(n["createTextVNode"])(" 取 消 ")])),_:1})])]),_:1},8,["modelValue"])]),_:1},8,["label"])]),_:1},8,["data"]),Object(n["createVNode"])(f,null,{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(d),Object(n["createVNode"])(g,null,{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(k,{"current-page":s.currentPage4,"page-sizes":[100,200,300,400],"page-size":100,layout:"total, sizes, prev, pager, next, jumper",total:400,onSizeChange:c.handleSizeChange,onCurrentChange:c.handleCurrentChange},null,8,["current-page","onSizeChange","onCurrentChange"])]),_:1})]),_:1})]),_:1}),Object(n["createVNode"])(C,{label:"邮箱配置",name:"second"},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(p,{ref:"form",model:s.form,"label-position":"left","label-width":"120px"},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(h,{label:"邮箱地址"},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(m,{modelValue:s.input,"onUpdate:modelValue":t[14]||(t[14]=e=>s.input=e),size:"small",placeholder:"请输入内容"},null,8,["modelValue"])]),_:1}),Object(n["createVNode"])(h,{label:"邮箱授权码"},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(m,{modelValue:s.input,"onUpdate:modelValue":t[15]||(t[15]=e=>s.input=e),size:"small",placeholder:"请输入内容"},null,8,["modelValue"])]),_:1}),Object(n["createVNode"])(h,{label:"邮箱服务器地址"},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(m,{modelValue:s.input,"onUpdate:modelValue":t[16]||(t[16]=e=>s.input=e),size:"small",placeholder:"请输入内容"},null,8,["modelValue"])]),_:1}),Object(n["createVNode"])(h,{label:"协议"},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(m,{modelValue:s.input,"onUpdate:modelValue":t[17]||(t[17]=e=>s.input=e),size:"small",placeholder:"请输入内容"},null,8,["modelValue"])]),_:1}),Object(n["createVNode"])(h,{label:"端口"},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(m,{modelValue:s.input,"onUpdate:modelValue":t[18]||(t[18]=e=>s.input=e),size:"small",placeholder:"请输入内容"},null,8,["modelValue"])]),_:1})]),_:1},8,["model"]),Object(n["createElementVNode"])("div",null,[t[30]||(t[30]=Object(n["createElementVNode"])("span",null," QQ邮箱http://jingyan.baidu.com/article/fedf032148ajkas8978ea.html ",-1)),Object(n["createVNode"])(y,{href:"https://element.eleme.io",target:"_blank",type:"primary"},{default:Object(n["withCtx"])(()=>t[29]||(t[29]=[Object(n["createTextVNode"])(" 复制链接 ")])),_:1})]),Object(n["createElementVNode"])("div",null,[t[32]||(t[32]=Object(n["createElementVNode"])("span",null," 163邮箱http://jingyan.baidu.com/article/fedf032148ajkas8978ea.html ",-1)),Object(n["createVNode"])(y,{href:"https://element.eleme.io",target:"_blank",type:"primary"},{default:Object(n["withCtx"])(()=>t[31]||(t[31]=[Object(n["createTextVNode"])(" 复制链接 ")])),_:1})]),Object(n["createElementVNode"])("div",null,[t[34]||(t[34]=Object(n["createElementVNode"])("span",null," 腾讯企业邮箱http://jingyan.baidu.com/article/fedf032148ajkas8978ea.html ",-1)),Object(n["createVNode"])(y,{href:"https://element.eleme.io",target:"_blank",type:"primary"},{default:Object(n["withCtx"])(()=>t[33]||(t[33]=[Object(n["createTextVNode"])(" 复制链接 ")])),_:1})]),Object(n["createVNode"])(u,{type:"primary",size:"small"},{default:Object(n["withCtx"])(()=>t[35]||(t[35]=[Object(n["createTextVNode"])("保存")])),_:1}),Object(n["createVNode"])(u,{type:"primary",size:"small",plain:""},{default:Object(n["withCtx"])(()=>t[36]||(t[36]=[Object(n["createTextVNode"])("返回")])),_:1})]),_:1}),Object(n["createVNode"])(C,{label:"微信平台配置",name:"third"},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(p,{ref:"form",model:s.form,"label-position":"left","label-width":"140px"},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(h,{label:"微信appid"},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(m,{modelValue:s.input,"onUpdate:modelValue":t[19]||(t[19]=e=>s.input=e),size:"small",placeholder:"请输入内容"},null,8,["modelValue"])]),_:1}),Object(n["createVNode"])(h,{label:"微信appSecret"},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(m,{modelValue:s.input,"onUpdate:modelValue":t[20]||(t[20]=e=>s.input=e),size:"small",placeholder:"请输入内容"},null,8,["modelValue"])]),_:1}),Object(n["createVNode"])(h,{label:"公众号唯一标识参数"},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(m,{modelValue:s.input,"onUpdate:modelValue":t[21]||(t[21]=e=>s.input=e),size:"small",placeholder:"请输入内容"},null,8,["modelValue"])]),_:1})]),_:1},8,["model"]),Object(n["createVNode"])(u,{type:"primary",size:"small"},{default:Object(n["withCtx"])(()=>t[37]||(t[37]=[Object(n["createTextVNode"])("保存")])),_:1}),Object(n["createVNode"])(u,{type:"primary",plain:"",size:"small"},{default:Object(n["withCtx"])(()=>t[38]||(t[38]=[Object(n["createTextVNode"])("返回")])),_:1})]),_:1})]),_:1},8,["modelValue","onTabClick"])])}var s={name:"Setting",data(){return{input:"",activeName:"first",dialogFormVisible:!1,dialogFormEdit:!1,form:{name:"",region:"",date1:"",date2:"",delivery:!1,type:[],resource:"",desc:""},formLabelWidth:"120px",tableData:[{name:"设备报警通知模板1",code:"SMS_210085123",date:"2022-02-15 10:12:31",content:"设备${dname}报警:变量:${vdesc}当前值:${svalue}设定值:${lvalue}"},{name:"设备报警通知模板2",code:"SMS_210085123",date:"2022-02-15 10:12:31",content:"设备${dname}报警:变量:${vdesc}当前值:${svalue}设定值:${lvalue}"},{name:"设备报警通知模板3",code:"SMS_210085123",date:"2022-02-15 10:12:31",content:"设备${dname}报警:变量:${vdesc}当前值:${svalue}设定值:${lvalue}"}],currentPage1:5,currentPage2:5,currentPage3:5,currentPage4:4}},methods:{handleClick(e,t){console.log(e,t)},handleAdd(){this.$refs["edit"].showEdit()},handleSizeChange(e){console.log(`每页 ${e} 条`)},handleCurrentChange(e){console.log("当前页: "+e)}}},c=(o("2182"),o("092a"),o("d959")),d=o.n(c);const u=d()(s,[["render",l],["__scopeId","data-v-05e67d6c"]]);t["default"]=u},"39f5":function(e,t,o){"use strict";o("ee06")},"39fe":function(e,t,o){"use strict";o("a002")},"3a28":function(e,t,o){},"3a8f":function(e,t,o){"use strict";o.r(t);var n=o("f2bf");function a(e,t,o,a,r,i){return Object(n["openBlock"])(),Object(n["createElementBlock"])("p")}var r={name:"Index"},i=o("d959"),l=o.n(i);const s=l()(r,[["render",a]]);t["default"]=s},"3add":function(e,t,o){"use strict";o("87b4")},"3b57":function(e,t,o){"use strict";o("9e7a")},"3b84":function(e,t,o){e.exports=o.p+"static/img/marker.63219000.png"},"3cb3":function(e,t,o){"use strict";o("2b60")},"3ccd":function(e,t,o){"use strict";o.r(t);var n=o("f2bf");const a={id:"work",style:{width:"100%",height:"300px"}};function r(e,t,o,r,i,l){return Object(n["openBlock"])(),Object(n["createElementBlock"])("div",a)}var i=o("365c"),l=o("313e"),s=o("5f99"),c={props:{time:{type:Array},all:{type:Boolean,default:!1}},data(){return{chartPie:null,taskData:[],workTime:"",isAllProject:!1}},watch:{time(e){this.workTime=e,this.getTaskData(),setTimeout(()=>{this.drawCharts()},2e3)},all(e){this.isAllProject=e,this.getTaskData(),setTimeout(()=>{this.drawCharts()},2e3)}},mounted:function(){},methods:{async getTaskData(){var e=sessionStorage.getItem("projectId"),t={};t=0==this.isAllProject?{start:Object(s["getDate"])(this.workTime[0]),end:Object(s["getDate"])(this.workTime[1]),projectId:e}:{start:Object(s["getDate"])(this.workTime[0]),end:Object(s["getDate"])(this.workTime[1])};const{data:o}=await Object(i["getTaskData"])(t);this.taskData=[{value:o.handle,name:"processed"},{value:o.unHandle,name:"untreated"},{value:o.total,name:"total"}]},drawPieChart(){this.chartPie=l["a"](document.getElementById("work")),this.chartPie.setOption({title:{text:"Work order statistics",left:"center"},tooltip:{trigger:"item"},legend:{orient:"vertical",left:"bottom"},series:[{type:"pie",radius:"50%",data:this.taskData,emphasis:{itemStyle:{shadowBlur:10,shadowOffsetX:0,shadowColor:"rgba(0, 0, 0, 0.5)"}}}]})},drawCharts(){this.drawPieChart()}}},d=o("d959"),u=o.n(d);const m=u()(c,[["render",r]]);t["default"]=m},"3cdb":function(e,t,o){"use strict";o("42f5")},"3cf5":function(e,t,o){"use strict";o.r(t);var n=o("f2bf");const a={class:"manage-container"},r={class:"manage-input"},i={class:"manage-button"},l={key:0};function s(e,t,o,s,c,d){const u=Object(n["resolveComponent"])("el-option"),m=Object(n["resolveComponent"])("el-select"),h=Object(n["resolveComponent"])("el-form-item"),p=Object(n["resolveComponent"])("vab-query-form"),b=Object(n["resolveComponent"])("el-form"),g=Object(n["resolveComponent"])("el-button"),f=Object(n["resolveComponent"])("el-table-column"),v=Object(n["resolveComponent"])("el-link"),w=Object(n["resolveComponent"])("el-table"),k=Object(n["resolveComponent"])("el-pagination"),C=Object(n["resolveComponent"])("material-detail"),y=Object(n["resolveComponent"])("el-dialog"),O=Object(n["resolveDirective"])("loading");return Object(n["openBlock"])(),Object(n["createBlock"])(y,{modelValue:c.dialogFormVisible,"onUpdate:modelValue":t[2]||(t[2]=e=>c.dialogFormVisible=e),title:c.title,width:"1000px",onClose:e.close},{default:Object(n["withCtx"])(()=>[Object(n["createElementVNode"])("div",a,[Object(n["createElementVNode"])("div",r,[Object(n["createVNode"])(b,{ref:"queryForm",model:c.queryForm,"label-width":"80px"},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(p,null,{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(h,{width:"100",prop:"type",label:"素材类型"},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(m,{modelValue:c.queryForm.type,"onUpdate:modelValue":t[0]||(t[0]=e=>c.queryForm.type=e),size:"small",placeholder:"请选择素材类型"},{default:Object(n["withCtx"])(()=>[(Object(n["openBlock"])(!0),Object(n["createElementBlock"])(n["Fragment"],null,Object(n["renderList"])(c.typeData,e=>(Object(n["openBlock"])(),Object(n["createBlock"])(u,{key:e.dataCode,label:e.dataValue,value:e.dataCode},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1})]),_:1})]),_:1},8,["model"])]),Object(n["createElementVNode"])("div",i,[Object(n["createVNode"])(g,{size:"small",onClick:t[1]||(t[1]=e=>d.resetForm())},{default:Object(n["withCtx"])(()=>[Object(n["createTextVNode"])(Object(n["toDisplayString"])(e.$t("defalult.chongz")),1)]),_:1}),Object(n["createVNode"])(g,{type:"primary",size:"small",onClick:d.search},{default:Object(n["withCtx"])(()=>[Object(n["createTextVNode"])(Object(n["toDisplayString"])(e.$t("defalult.cx")),1)]),_:1},8,["onClick"])])]),Object(n["withDirectives"])((Object(n["openBlock"])(),Object(n["createBlock"])(w,{ref:"singleTable",data:c.tableData,"highlight-current-row":"",style:{width:"100%"},onCurrentChange:d.currentChange},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(f,{property:"media_id",label:"media_id"}),Object(n["createVNode"])(f,{property:"name",label:e.$t("trigger.mc")},null,8,["label"]),Object(n["createVNode"])(f,{property:"img",label:"素材"},{default:Object(n["withCtx"])(({row:e})=>["news"==c.queryForm.type?(Object(n["openBlock"])(),Object(n["createElementBlock"])("div",l,[(Object(n["openBlock"])(!0),Object(n["createElementBlock"])(n["Fragment"],null,Object(n["renderList"])(e.content.news_item,(e,o)=>(Object(n["openBlock"])(),Object(n["createElementBlock"])("div",{key:o},[Object(n["createElementVNode"])("p",null,"标题:"+Object(n["toDisplayString"])(e.title),1),Object(n["createVNode"])(v,{target:"_blank",href:e.url,type:"primary"},{default:Object(n["withCtx"])(()=>t[3]||(t[3]=[Object(n["createTextVNode"])(" 点击查看 ")])),_:2},1032,["href"])]))),128))])):Object(n["createCommentVNode"])("",!0)]),_:1}),Object(n["createVNode"])(f,{property:"img",label:"选择"},{default:Object(n["withCtx"])(({row:e})=>[Object(n["createVNode"])(g,{type:"primary",size:"mini",onClick:t=>d.currentChange(e)},{default:Object(n["withCtx"])(()=>t[4]||(t[4]=[Object(n["createTextVNode"])(" 选择 ")])),_:2},1032,["onClick"])]),_:1})]),_:1},8,["data","onCurrentChange"])),[[O,c.listLoading]]),Object(n["createVNode"])(k,{background:c.background,"current-page":c.queryForm.page,layout:c.layout,"page-size":c.queryForm.size,total:c.total,style:{"text-align":"right"},onCurrentChange:d.handleCurrentChange,onSizeChange:d.handleSizeChange},null,8,["background","current-page","layout","page-size","total","onCurrentChange","onSizeChange"]),Object(n["createVNode"])(C,{ref:"show"},null,512)]),_:1},8,["modelValue","title","onClose"])}var c=o("4cfb"),d=o("b99f"),u={components:{materialDetail:d["default"]},data(){return{tableData:[],typeData:[],dialogFormVisible:!1,listLoading:!1,title:"",currentRow:"",layout:"total, sizes, prev, pager, next, jumper",background:!0,total:0,queryForm:{page:1,size:20,type:""}}},methods:{showData(e){this.$refs["show"].showMaterialData(e,this.queryForm.type)},currentChange(e){this.currentRow=e,this.$emit("getMaterialId",e.media_id),this.dialogFormVisible=!1},search(){this.getMaterialListData()},resetForm(){this.$refs.queryForm.resetFields()},selectData(){this.getMaterialTypeData(),this.title="素材列表",this.dialogFormVisible=!0},async getMaterialListData(){const{data:e}=await Object(c["getMaterialList"])(this.queryForm);this.listLoading=!0,this.tableData=e.items,this.total=e.total,setTimeout(()=>{this.listLoading=!1},500)},async getMaterialTypeData(){const{data:e}=await Object(c["getMaterialType"])();this.typeData=e,this.queryForm.type=e[0].dataCode,this.getMaterialListData()},handleQuery(){this.queryForm.page=1,this.getMaterialListData()},handleSizeChange(e){this.queryForm.size=e,this.getMaterialListData()},handleCurrentChange(e){this.queryForm.page=e,this.getMaterialListData()}}},m=o("d959"),h=o.n(m);const p=h()(u,[["render",s]]);t["default"]=p},"3d5a8":function(e,t,o){"use strict";o("ae52")},"3e64":function(e,t,o){"use strict";o("6e4a")},"3e76":function(e,t,o){},"3ef5":function(e,t,o){},"3f02":function(e,t,o){"use strict";o.r(t);var n=o("f2bf");const a={class:"dialog-footer"};function r(e,t,o,r,i,l){const s=Object(n["resolveComponent"])("el-input"),c=Object(n["resolveComponent"])("el-form-item"),d=Object(n["resolveComponent"])("el-option"),u=Object(n["resolveComponent"])("el-select"),m=Object(n["resolveComponent"])("el-date-picker"),h=Object(n["resolveComponent"])("el-form"),p=Object(n["resolveComponent"])("el-button"),b=Object(n["resolveComponent"])("el-dialog");return Object(n["openBlock"])(),Object(n["createBlock"])(b,{modelValue:i.dialogFormVisible,"onUpdate:modelValue":t[5]||(t[5]=e=>i.dialogFormVisible=e),title:i.title,width:"500px",onClose:l.close},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(h,{ref:"form",model:i.form,rules:i.rules,"label-width":"80px","label-position":"left"},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(c,{label:e.$t("task.rwnr"),prop:"taskContent"},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(s,{modelValue:i.form.taskContent,"onUpdate:modelValue":t[0]||(t[0]=e=>i.form.taskContent=e),type:"textarea",rows:2,placeholder:"任务内容"},null,8,["modelValue"])]),_:1},8,["label"]),Object(n["createVNode"])(c,{label:e.$t("task.clr"),prop:"handler"},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(u,{modelValue:i.form.handler,"onUpdate:modelValue":t[1]||(t[1]=e=>i.form.handler=e),style:{width:"100%"},filterable:"",placeholder:"处理人"},{default:Object(n["withCtx"])(()=>[(Object(n["openBlock"])(!0),Object(n["createElementBlock"])(n["Fragment"],null,Object(n["renderList"])(i.handlerData,e=>(Object(n["openBlock"])(),Object(n["createBlock"])(d,{key:e.id,label:e.name,value:e.id},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1},8,["label"]),Object(n["createVNode"])(c,{label:e.$t("task.wcsj"),prop:"completeTime"},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(m,{modelValue:i.form.completeTime,"onUpdate:modelValue":t[2]||(t[2]=e=>i.form.completeTime=e),type:"datetime",placeholder:"选择完成时间",align:"right",onChange:l.dateChange},null,8,["modelValue","onChange"])]),_:1},8,["label"]),Object(n["createVNode"])(c,{label:"指派车辆",prop:"tqImei"},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(u,{modelValue:i.form.tqImei,"onUpdate:modelValue":t[3]||(t[3]=e=>i.form.tqImei=e),style:{width:"100%"},filterable:"",placeholder:"指派车辆"},{default:Object(n["withCtx"])(()=>[(Object(n["openBlock"])(!0),Object(n["createElementBlock"])(n["Fragment"],null,Object(n["renderList"])(i.tqImeiData,e=>(Object(n["openBlock"])(),Object(n["createBlock"])(d,{key:e.imei,label:e.num,value:e.imei},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),Object(n["createVNode"])(c,{prop:"taskLevel",label:"紧急程度"},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(u,{modelValue:i.form.taskLevel,"onUpdate:modelValue":t[4]||(t[4]=e=>i.form.taskLevel=e),style:{width:"100%"},filterable:"",placeholder:"紧急程度"},{default:Object(n["withCtx"])(()=>[(Object(n["openBlock"])(!0),Object(n["createElementBlock"])(n["Fragment"],null,Object(n["renderList"])(i.levelData,e=>(Object(n["openBlock"])(),Object(n["createBlock"])(d,{key:e.dataCode,style:{width:"100%"},label:e.dataValue,value:e.dataCode},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1})]),_:1},8,["model","rules"]),Object(n["createElementVNode"])("div",a,[Object(n["createVNode"])(p,{onClick:l.close},{default:Object(n["withCtx"])(()=>t[6]||(t[6]=[Object(n["createTextVNode"])("取 消")])),_:1},8,["onClick"]),Object(n["createVNode"])(p,{type:"primary",onClick:l.save},{default:Object(n["withCtx"])(()=>t[7]||(t[7]=[Object(n["createTextVNode"])("确 定")])),_:1},8,["onClick"])])]),_:1},8,["modelValue","title","onClose"])}var i=o("9e04"),l=o("5f99"),s={data(){return{form:{deviceCode:"",alarmRecordId:"",taskContent:"",handler:"",completeTime:"",tqImei:"",taskLevel:""},rules:{taskContent:[{required:!0,trigger:"blur",message:"请输入任务内容"}],handler:[{required:!0,trigger:"change",message:"请选择处理人"}],completeTime:[{required:!0,trigger:"change",message:"请选择完成时间"}],tqImei:[{required:!0,trigger:"change",message:"请选择指派车辆"}],taskLevel:[{required:!0,trigger:"change",message:"请选择紧急程度"}]},projectId:"",title:"",tqImeiData:[],handlerData:[],levelData:[],dialogFormVisible:!1}},created(){},methods:{async getHandlersData(){const{data:e}=await Object(i["handlers"])({deviceCode:this.form.deviceCode});this.handlerData=e},async getTqDevices(){const{data:e}=await Object(i["tqDevices"])({projectId:this.projectId});this.tqImeiData=e},async getAlarmLevelDict(){const{data:e}=await Object(i["alarmLevelDict"])();this.levelData=e},dateChange(){var e=this.form.completeTime;this.form.completeTime=Object(l["formatDateTime"])(e)},showEdit(e){this.title="转工单",this.form.deviceCode=e.deviceCode,this.form.alarmRecordId=e.id,this.dialogFormVisible=!0,this.projectId=sessionStorage.getItem("projectId"),this.getHandlersData(),this.getTqDevices(),this.getAlarmLevelDict()},close(){this.$refs["form"].resetFields(),this.form=this.$options.data().form,this.dialogFormVisible=!1,this.$emit("fetch-data")},save(){this.$refs["form"].validate(async e=>{if(!e)return!1;{this.form.name=this.form.title;const{msg:e}=await Object(i["toTask"])(this.form);this.$notify({title:e,type:"success"}),this.$refs["form"].resetFields(),this.dialogFormVisible=!1,this.$parent.fetchData()}})}}},c=(o("48ad"),o("d959")),d=o.n(c);const u=d()(s,[["render",r]]);t["default"]=u},"3f42":function(e,t,o){},"3f8d":function(e,t,o){"use strict";o.r(t);var n=o("f2bf");const a={class:"manage-container"},r={id:"main3",ref:"echarts",style:{height:"380px"}};function i(e,t,o,i,l,s){const c=Object(n["resolveComponent"])("el-date-picker"),d=Object(n["resolveComponent"])("el-form-item"),u=Object(n["resolveComponent"])("el-option"),m=Object(n["resolveComponent"])("el-select"),h=Object(n["resolveComponent"])("el-button"),p=Object(n["resolveComponent"])("vab-query-form"),b=Object(n["resolveComponent"])("el-form"),g=Object(n["resolveComponent"])("el-card"),f=Object(n["resolveComponent"])("el-table-column"),v=Object(n["resolveComponent"])("el-table"),w=Object(n["resolveComponent"])("el-pagination"),k=Object(n["resolveComponent"])("vab-query-form-right-panel"),C=Object(n["resolveDirective"])("loading");return Object(n["openBlock"])(),Object(n["createElementBlock"])("div",a,[Object(n["createVNode"])(b,{ref:"form",model:l.queryForm,"label-width":"80px"},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(p,null,{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(d,{width:"100",label:e.$t("defalult.sj")},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(c,{modelValue:l.startDate,"onUpdate:modelValue":t[0]||(t[0]=e=>l.startDate=e),type:"daterange","range-separator":"-","start-placeholder":"开始日期","end-placeholder":"结束日期",onChange:s.handleStartDateChange},null,8,["modelValue","onChange"])]),_:1},8,["label"]),Object(n["createVNode"])(d,{width:"100",prop:"deviceCode",label:e.$t("dataEnquiry.cgq")},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(m,{modelValue:l.queryForm.dataKey,"onUpdate:modelValue":t[1]||(t[1]=e=>l.queryForm.dataKey=e),placeholder:"请选择传感器"},{default:Object(n["withCtx"])(()=>[(Object(n["openBlock"])(!0),Object(n["createElementBlock"])(n["Fragment"],null,Object(n["renderList"])(l.sensorsData,e=>(Object(n["openBlock"])(),Object(n["createBlock"])(u,{key:e.transferId,label:e.name,value:e.transferId},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1},8,["label"]),Object(n["createVNode"])(d,{width:"100"},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(h,{type:"primary",size:"medium",onClick:s.search},{default:Object(n["withCtx"])(()=>[Object(n["createTextVNode"])(Object(n["toDisplayString"])(e.$t("defalult.cx")),1)]),_:1},8,["onClick"])]),_:1})]),_:1})]),_:1},8,["model"]),Object(n["createVNode"])(g,{style:{height:"380px"}},{default:Object(n["withCtx"])(()=>[Object(n["createElementVNode"])("div",r,null,512)]),_:1}),Object(n["withDirectives"])((Object(n["openBlock"])(),Object(n["createBlock"])(v,{data:l.newTableData,border:"",stripe:"",style:{width:"100%"}},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(f,{prop:"time",label:e.$t("defalult.sj"),width:"200",align:"center"},null,8,["label"]),Object(n["createVNode"])(f,{prop:"value",label:"数据",width:"120",align:"center"})]),_:1},8,["data"])),[[C,l.listLoading]]),Object(n["createVNode"])(p,null,{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(k,null,{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(w,{background:l.background,"current-page":l.queryForm.page,layout:l.layout,"page-size":l.queryForm.size,total:l.total,onCurrentChange:s.handleCurrentChange,onSizeChange:s.handleSizeChange},null,8,["background","current-page","layout","page-size","total","onCurrentChange","onSizeChange"])]),_:1})]),_:1})])}var l=o("aa98"),s=o("5f99"),c=o("313e"),d={components:{},data(){return{newTableData:[],data:[],deviceCode:"",projectId:"",lazy:!0,layout:"total, sizes, prev, pager, next, jumper",total:0,background:!0,listLoading:!0,elementLoadingText:"正在加载...",deviceId:"",historyData:[],sensorsData:[],startDate:"",queryForm:{page:1,size:10,dataKey:"",deviceCode:"",start:"",end:""}}},computed:{height(){return 500}},methods:{async fetchData(){this.listLoading=!0;const{data:e}=await Object(l["getHistoryData"])(this.queryForm);this.data=e,this.total=e.length,this.handleCurrentChange(1),setTimeout(()=>{this.listLoading=!1,this.getHistoryData()},500)},async getSensorsData(){const{data:e}=await Object(l["sensors"])(this.queryForm);this.sensorsData=e},showData(e){this.queryForm.dataKey=e.dataKey,this.queryForm.deviceCode=e.deviceCode,this.queryForm.end=Object(s["getFMdate"])(0),this.queryForm.start=Object(s["getFMdate"])(-1),this.startDate=[Object(s["getFMdate"])(-1),Object(s["getFMdate"])(0)],this.fetchData(),this.getSensorsData()},handleStartDateChange(){if(this.startDate&&this.startDate.length>0){const e=+new Date(this.startDate[0]),t=+new Date(this.startDate[1]);t>e+2592e6?this.$alert("日期的起止时间跨度不能超过30天","提示",{confirmButtonText:"确定",type:"warning"}).then(()=>this.startDate=null).catch(()=>this.startDate=null):(this.queryForm.end=Object(s["getDate"])(this.startDate[1]),this.queryForm.start=Object(s["getDate"])(this.startDate[0]))}},async getHistoryData(){var e,t=c["a"](document.getElementById("main3"));const{data:o}=await Object(l["getHistoryData"])(this.queryForm);e={tooltip:{trigger:"axis",position:function(e){return[e[0],"10%"]}},title:{left:"center",text:"折线图"},toolbox:{feature:{dataZoom:{yAxisIndex:"none"},restore:{},saveAsImage:{}}},xAxis:{type:"time",boundaryGap:!1},yAxis:{type:"value",boundaryGap:[0,"100%"]},dataZoom:[{type:"inside",start:0,end:20},{start:0,end:20}],series:[{name:"数据",type:"line",smooth:!0,symbol:"none",areaStyle:{},data:o}]},e&&t.setOption(e)},search(){this.fetchData()},timeToStr(){this.newTableData.forEach(e=>{e["time"]=Object(s["formatDateTime"])(e[0]),e["value"]=e[1]})},handleQuery(){this.queryForm.page=1},handleSizeChange(e){this.queryForm.size=e},handleCurrentChange(e){this.queryForm.page=e;const t=this.queryForm.size;this.newTableData=this.data.slice((e-1)*t,e*t),this.timeToStr()}}},u=(o("cfc6"),o("d959")),m=o.n(u);const h=m()(d,[["render",i],["__scopeId","data-v-19a0d4f1"]]);t["default"]=h},"3fc5":function(e,t,o){"use strict";o("1d11")},"40f2":function(e,t,o){"use strict";o("977f4")},4130:function(e,t,o){"use strict";o("853a")},"413f":function(e,t,o){"use strict";o("e23f")},4180:function(e,t,o){"use strict";o("b584")},4237:function(e,t,o){o("be7f")},"427d":function(e,t,o){"use strict";o("3243")},4297:function(e,t,o){"use strict";o("3141")},"42f5":function(e,t,o){e.exports={"menu-color":"hsla(0,0%,27%,.95)","menu-color-active":"hsla(208,100%,55%,.95)","menu-background":"#fff","gallery-second-menu-background":"#fff"}},4303:function(e,t,o){"use strict";o.r(t),o.d(t,"getList",(function(){return a})),o.d(t,"doEdit",(function(){return r})),o.d(t,"doDelete",(function(){return i})),o.d(t,"doAdd",(function(){return l})),o.d(t,"selectTriggerById",(function(){return s})),o.d(t,"selectAllAlarmLevel",(function(){return c})),o.d(t,"selectAllTriggerCondition",(function(){return d})),o.d(t,"selectAllAlarmUser",(function(){return u})),o.d(t,"selectAllAlarmType",(function(){return m})),o.d(t,"selectControlDevices",(function(){return h})),o.d(t,"selectSensorByDeviceId",(function(){return p})),o.d(t,"selectAllSmsConfig",(function(){return b})),o.d(t,"selectDeviceByProjectId",(function(){return g}));var n=o("b775");function a(e){let t="?page="+e.page+"&size="+e.size+"&projectId="+e.projectId;return""!=e.deviceId&&(t+="&deviceId="+e.deviceId),Object(n["default"])({url:"/iot/trigger/select"+t,method:"get",data:e})}function r(e){return Object(n["default"])({url:"/iot/trigger/update",method:"post",data:e})}function i(e){return Object(n["default"])({url:"/iot/trigger/remove",method:"post",data:e})}function l(e){return Object(n["default"])({url:"/iot/trigger/insert",method:"post",data:e})}function s(e){return Object(n["default"])({url:"/iot/trigger/selectTriggerById?triggerId="+e.triggerId,method:"get",data:e})}function c(e){return Object(n["default"])({url:"/iot/trigger/selectAllAlarmLevel",method:"get",data:e})}function d(e){return Object(n["default"])({url:"/iot/trigger/selectAllTriggerCondition",method:"get",data:e})}function u(e){return Object(n["default"])({url:"/iot/trigger/selectAllAlarmUser",method:"get",data:e})}function m(e){return Object(n["default"])({url:"/iot/trigger/selectAllAlarmType",method:"get",data:e})}function h(e){return Object(n["default"])({url:"/iot/trigger/selectDeviceByProjectId?projectId="+e.projectId,method:"get",data:e})}function p(e){return Object(n["default"])({url:"/iot/trigger/selectSensorByDeviceId?deviceId="+e.deviceId,method:"get",data:e})}function b(e){return Object(n["default"])({url:"/iot/trigger/selectAllSmsConfig",method:"get",data:e})}function g(e){return Object(n["default"])({url:"/iot/trigger/selectDeviceByProjectId?projectId="+e.projectId,method:"get",data:e})}},4382:function(e,t){e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAHAAAABwCAMAAADxPgR5AAABelBMVEUAAADvPRb5QxzrOxTmNxD7RR3+Rx/gNhD/SCD+Rx/8Rh75RBzbMAraMQrbMAz8SB3iNg/eMAvfMw39Rx//Rx/mOBHsPhT/QBneMQvtPBXZLwrxPxjaMAv1QhreMw37RR7xQBncMg37RR3oUC71QRr/SSD+SCDbMAvjNhDaMAz1QBnsOxXsOxXZMArhNA/ZLwr/SCDnORP7RB35RR3qOhT0QBrlNxDvPhfoOhPrOhPdMwr1WDb/SSH7Rh75RBzmNxH2QxznNxLlORPxQBjvPRb+SSHyQBnmNxH/RyDkNhD0Qx34RBz////jNQ/dMgz1QRrnOBLgMw36RR3hNA70QBnyQBj8Rh7sPBX2QhvwPhfuPRblNxH3QxvoORLtPBXxPxjrOxX4RBzkNxDqOhPpOhPbMArcMAvaLwr+SCDkNhD9Rx/+8u/+8/HfMgzpORP0ZETyYkPsXz/wYEHuX0DrXT//SSH7zsT+SSH7w7f3wLX0WDX//v7pUC/1WTa4+7J2AAAATHRSTlMA/v7+/v7+EP7fn0BgII8g3t6ej19fIBDu39/Pz46Af2BQT/7fz7+/QEAw7r+fjoB/f1/fz7+/n59PL/7v7u7e3c+QgH/v7u7Pz6CM12t4YgAACr9JREFUaN6sl1trE1EUhdOAbdI8+NCiiBSl2D5UH4oiRbwgeEFUCIReQ2jMW4iFFqEXKv531zr7Yzgz09bGds2Zfd9rzaQmYGMq3F9bXJ9fbbffjE9brTftldX59eW1xq0DscWFlVarddw6PT4+HreOx7pllKzML969bbXO+sp4LJnW6VhotcbGqU4Es+OVhc4tvtv6J7HOzsrIoSJ5QLXVXrid9+ysJsaJSO0Fu5RNcOrGE60u31hu8ctEvLyERYN8gooiHTcnUW4v3kyuvT3enkxEn8z22IEqpDIuzLqmx3J8I8nO6rZJzSur2JhgzG5vLVlHtg7a//e3vL8AEyBCTykhYCaeZ/4/JDvt7Srq/Jd22s+nf72LcQcPckEcWLg/jd7d9iX8PR3qBD6ADfyLKT7W52+1l7h7d3Qrkgug5KKalrvT01Be9LTX3177S/nISiGjS4QWlhFLdJQ5ctkzFkW3B9RT/uh6egvWSftCikwXCVwkRCSsGRSvpzjfKwNCvM8UmJ9Gr9mbBs3pFdFrenUko6N4pCwSiPOQGMudl5r/UnzUa46saDuSUyBJV3RGcLnh2CN+tpHQ03HCU3hNmZvfrtTzqgh0ZBTLihZQDasxh4zhmeMhcFf8y1kumGFjDdnByCaTHaDAShkDF9PS80t/X96pG8SD0WDQtMBAUlpVblnl5lFqZaTVoxKpICcOlx28u+Q3Z+6FJwytYpvylLTv1O/ChCq+I+Eob0aNHYcvLv5dXYq+sYuMK+Ql4SpQbu6ObAdygNGlC39AQ0pnVxYoIZbTPZJLhzFSxQQCPvR2Y7ZT17v3xEPZAiZUCYO46CIKqJYzpt7P1QS/VqZ0de1At85YrzAI0BqkylLtBRntdtNJEScyWzrcBtPO3O4OXGAqAsZqH+oTdWn6MryTKUUVS5+EoBIxC16W9R4XY9XBqhDSgIjYV73P0y1XX3DT9c26FkhdCnUwrgmdCii8L7+gJzc3acoCYhxT9r6xeB/3sNTsiB/nL7gpxALCEBTI4ogQi5SQGVzRhPRh9qNNJ+OPBAvi4Wu6vqsCjHCY7RSCL+HYwlTw+uTg+9mfrjtdBuBTTP7HM+e8KVBHPR1EXxbfwegGESOZPT/4LhwcakJHBXuTRJ6ywzTz87WqkJVkYZpDcEkleIiCB3tmLisWNRNEQmY94yRtR5NWmKh8QPAJPVtMjuBCEZSH0NMr5gP12c/8t4VqHcOtoSxsFUV3iKQHfm8Nh8No6tTRiU/UvJ7UzbjDwp+YCkUm1DNizHrgbIgQDPZ2lPhMH6IFBUBZOIcQRbfywUzv53lU2cfB4zh9Fe8N93Rl2NsLx4EyU6Rc11PT3CaE00ncWymf889aqsRlKgFSFSI7yhU9yNheVc9FBFGCEwz987bhTeRmomwDYzTK70jf7ijXU06PvjPYWFjyn7AohBxhvjhTUjyiXdE7ctW3H9yOrAT/EaNjEJGTsAk1iuAw15sxvwzbOrqjRN3RXGPNbZeGM4BCMv3YEsqKM5QyPRTgQMwpHIG1xqu9vgPbFMiFpRA7ciVFlcp6ffFC21dkWxAhlggfNz6qIcREAlrhye3KihW9BESISGHhET42Nvoz+/0aUEQNlBRzvV/9K8A60Ubj2f5+X1dR3hcI5Rlk4lemmOt50M9tb2MKQgpF9qzxUO2k4nrWJHfqE8gUM73UtYlJUrtyzfZB40GElBAmwJCjWNOLjfKSKzzDji5FaD9oPHUhHQFdlYziCdyM9R0Uc70g0G2z07eBMzmsvM/ThpnoRoMFGcdEzAsoFnqxCL2BEy8PTYlWY+cHYY48Z4AyirleFUhfjP5fQspgtY0gCKIDI/DVFwVyDL6YJAQMxti5GPsSAhHsXSwIjS5CIDAyBmN/fOr1ltazuyipGU93V3dXbUwSDGthwoqHvepj4Fb0RoZeMBjSrSQp3Ygsp0hcRebBnuR1E4x/pdHzgB1CPPfOg/Wcvq1yzqGdoxNvVqAoetQtlLGUp39p0O5Q7CI4YcmiXJ1v6XMJqCgsgKzVkouTYrH4OeA3cowVgW0pWUiE94oHCkH/DklUMWfr7lF99I8KNfwmjgftaoKRwg2PXopVp1nnOn3vSviguqKrNh9/+lg4jP9rsyPDzOYIWSDl4hwJEXxPt8iu8iaXzUYWQikUWqJWwtYGpdrvcKgd1dX6KjMvaFUreAfPsuoV33SbrsQgHijcyPdRxsGU4rCr/FRWjk+4yEcWtoz1jDYRpkTjKs2LxCVPCdoit5L3ouzrpPLbHVh5qh27+dK2tutXi6K1mLlLPzWzjx897b6NSLWH5YVpLW8/0drwJ9hRW6gQkEEjOCgJlM73azprR9hzAYu8nPapFkeQj+EjKlIYCLEHUBFaQkrpuh5qmraJ2BouhtLWaUafYTT1puUIxGsZPtpGr0KkrmOSYiTsAXqDRlM5OvSzJm5lOIcBxDiVbWAg+2zO3aGjSUdMCFxjLsOzZgpPGM9TP/qnP2YKnNn6lISH5t94PyU5dXz/j9RDAldDcjZOXod+M+6JX8CLWh6pBFzpeUzgUtUyqKUSGhz6S9HLZuwn0Foyvxw67mYQWvIcE+gxjMllCvyaMYeF+nR1eRrxOrvKj0aDirMl8cPxDZZdRHwZUMTxPnW4CqYaDWdEAy9Hv6WnDNpmjo6vFCadOF/z/LDhmcq1zfQqXUcpElzs7CeenxnRhaMddxdarNBXtv2UjBsMuQwJSilJOBevb7sXtGi6S8LLFHh//cPMcT+s6gHEbtIRl+stXPS2260qouou6RbNK4lRysVa0XpEZxwaWMaCXqi71OM35GK96CYFpZLbirCHulyXampGfc5Ci5rlA8QyKtIs+5C07tMH5gv0mERKieCIjg6plfwSSeh138brRXv0HPU8VTj3bP9xRvjYikDketbPx8tx20SQqJ+nGl/oTrAepqdhu1Ht1GGeBriZaHBPyE8apwareJ6GuPxbK7XrNggEwe1oABkXEULIEpXjwnaff8hJiG8gVPf/bXbWE98FgjHCmWNfw96MjPy5Cd3ixpuMcLlf6uxh0+nTGYMOQR6ZVTtGuNbFW1r2Mkayo1oAFtkE4+gNpXkPgYwTa1jeZTLBezeHdsJQaYZvJ6/xj5niMqPeTkgS7W/6wXQRYPpRW6whQmOhI1kOKGiMREFCtmqjHVK7RP5EVsY6VlvCRhaA0uzbGBHP7TKTGaTcDqAp8wQdA2kWXSOzOLTL6Ea916NgGgHUQR4g1xXnuamHTRCirEPx3CKH8Ij7nvP0e4C9d63tOfdj7JyGepgBCR01W/XI6D0vOS2gvb3fywL20FfQ0RnMAwk0mdB48zIfTGg0zNjDb9kR8hqUJe7eHjkmOZHw8SX4LeLgiLHYhGeeRy6ywnE7DvIkmvKhztdzdmUqTyMrqPyFpMEJNXb8zXCTRJHJCiQ59WhEnaBNOAvbi7bA5YmsQ1pA0C7ftfufhq1VElzkcnGS1cjOTuX63iH1EEY1YZvw0pG8PbYOhj9vvWXRUxDHEnqA+VYcWvTkj+t/Xviu/UAD5qhw4Mhp6ItGtiCtzHEY4GyN1tuAhnyIOpWtaI4DALlghykCB37MzcjyirI4qBOAra6JvAynvB7+Bt3r60lejCw9z5jWeZrIP+GjuZ6PdVXCp6yq4/mafqwz+waAr25xGUn/7gAAAABJRU5ErkJggg=="},"43d5":function(e,t,o){},"44b1":function(e,t,o){"use strict";o("a277")},4543:function(e,t,o){"use strict";o.r(t);var n=o("f2bf");const a={key:0,class:"play"},r={key:1,class:"hello-ezuikit-js"},i={key:2,class:"hello-ezuikit-js"},l={style:{"text-align":"center"}};function s(e,t,o,s,c,d){const u=Object(n["resolveComponent"])("el-button");return Object(n["openBlock"])(),Object(n["createElementBlock"])(n["Fragment"],null,[c.isplay?(Object(n["openBlock"])(),Object(n["createElementBlock"])("div",a,[Object(n["createVNode"])(u,{size:"mini",type:"primary",onClick:d.start},{default:Object(n["withCtx"])(()=>[Object(n["createTextVNode"])(Object(n["toDisplayString"])(e.$t("defalult.bf")),1)]),_:1},8,["onClick"])])):Object(n["createCommentVNode"])("",!0),c.showVideo?(Object(n["openBlock"])(),Object(n["createElementBlock"])("div",r,[t[0]||(t[0]=Object(n["createElementVNode"])("div",{id:"video-container",style:{width:"600px",height:"400px"}},null,-1)),Object(n["createElementVNode"])("div",null,[Object(n["createVNode"])(u,{size:"mini",type:"primary",onClick:d.stop},{default:Object(n["withCtx"])(()=>[Object(n["createTextVNode"])(Object(n["toDisplayString"])(e.$t("defalult.tz")),1)]),_:1},8,["onClick"]),Object(n["createVNode"])(u,{size:"mini",type:"primary",onClick:d.play},{default:Object(n["withCtx"])(()=>[Object(n["createTextVNode"])(Object(n["toDisplayString"])(e.$t("defalult.bf")),1)]),_:1},8,["onClick"]),Object(n["createVNode"])(u,{size:"mini",type:"primary",onClick:d.capturePicture},{default:Object(n["withCtx"])(()=>[Object(n["createTextVNode"])(Object(n["toDisplayString"])(e.$t("defalult.bhtp")),1)]),_:1},8,["onClick"]),Object(n["createVNode"])(u,{size:"mini",type:"primary",onClick:d.fullScreen},{default:Object(n["withCtx"])(()=>[Object(n["createTextVNode"])(Object(n["toDisplayString"])(e.$t("defalult.qpxs")),1)]),_:1},8,["onClick"])])])):Object(n["createCommentVNode"])("",!0),c.isplay||c.showVideo?Object(n["createCommentVNode"])("",!0):(Object(n["openBlock"])(),Object(n["createElementBlock"])("div",i,[Object(n["createElementVNode"])("p",l,Object(n["toDisplayString"])(c.msg),1)]))],64)}var c=o("7cf8"),d=o("c38d"),u=o.n(d);let m=null;var h={props:{deviceCode:{type:String,default:""}},data(){return{videoData:[],queryForm:{deviceCode:""},showVideo:!0,isplay:!0,msg:""}},watch:{deviceCode:function(e,t){this.queryForm.deviceCode=e,this.isplay=!0,this.showVideo=!0,this.getVideoPath()}},created(){},methods:{showData(e){this.queryForm.deviceCode=e.deviceCode,this.isplay=!0,this.showVideo=!0,this.getVideoPath()},start(){this.isplay=!1,this.showVideo=!0,this.getVideo()},async getVideoPath(){const{data:e,code:t,msg:o}=await Object(c["getLiveAddr"])(this.queryForm);-1==t?(this.showVideo=!1,this.isplay=!1,this.msg=o):(this.videoData=e,this.showVideo=!1,this.isplay=!0)},getVideo(){const e=this;m=new u.a.EZUIKitPlayer({id:"video-container",autoplay:!1,accessToken:e.videoData.accessToken,url:e.videoData.url,template:"simple",plugin:["talk"],width:700,height:400}),window.player=m},play(){const e=m.play();e.then(e=>{console.log("promise 获取 数据",e)})},stop(){const e=m.stop();e.then(e=>{console.log("promise 获取 数据",e)})},getOSDTime(){const e=m.getOSDTime();e.then(e=>{console.log("promise 获取 数据",e)})},capturePicture(){const e=m.capturePicture(""+(new Date).getTime());e.then(e=>{console.log("promise 获取 数据",e)})},openSound(){const e=m.openSound();e.then(e=>{console.log("promise 获取 数据",e)})},closeSound(){const e=m.closeSound();e.then(e=>{console.log("promise 获取 数据",e)})},startSave(){const e=m.startSave(""+(new Date).getTime());e.then(e=>{console.log("promise 获取 数据",e)})},stopSave(){const e=m.stopSave();e.then(e=>{console.log("promise 获取 数据",e)})},ezopenStartTalk(){m.startTalk()},ezopenStopTalk(){m.stopTalk()},fullScreen(){m.fullScreen()},destroy(){const e=m.destroy();e.then(e=>{console.log("promise 获取 数据",e)})}}},p=(o("4771"),o("d959")),b=o.n(p);const g=b()(h,[["render",s]]);t["default"]=g},"455b":function(e,t,o){"use strict";o.r(t);var n=o("f2bf");const a={class:"manage-container"},r={class:"manage-input",style:{padding:"0"}},i={class:"manage-button"};function l(e,t,o,l,s,c){const d=Object(n["resolveComponent"])("el-option"),u=Object(n["resolveComponent"])("el-select"),m=Object(n["resolveComponent"])("el-form-item"),h=Object(n["resolveComponent"])("vab-query-form"),p=Object(n["resolveComponent"])("el-form"),b=Object(n["resolveComponent"])("el-button"),g=Object(n["resolveComponent"])("el-table-column"),f=Object(n["resolveComponent"])("el-table"),v=Object(n["resolveComponent"])("el-pagination"),w=Object(n["resolveComponent"])("material-detail"),k=Object(n["resolveComponent"])("el-dialog"),C=Object(n["resolveDirective"])("loading");return Object(n["openBlock"])(),Object(n["createBlock"])(k,{modelValue:s.dialogFormVisible,"onUpdate:modelValue":t[2]||(t[2]=e=>s.dialogFormVisible=e),title:s.title,width:"1000px",onClose:e.close},{default:Object(n["withCtx"])(()=>[Object(n["createElementVNode"])("div",a,[Object(n["createElementVNode"])("div",r,[Object(n["createVNode"])(p,{ref:"queryForm",model:s.queryForm,"label-width":"80px"},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(h,null,{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(m,{width:"100",prop:"type",label:"素材类型"},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(u,{modelValue:s.queryForm.type,"onUpdate:modelValue":t[0]||(t[0]=e=>s.queryForm.type=e),size:"small",placeholder:"请选择素材类型"},{default:Object(n["withCtx"])(()=>[(Object(n["openBlock"])(!0),Object(n["createElementBlock"])(n["Fragment"],null,Object(n["renderList"])(s.typeData,e=>(Object(n["openBlock"])(),Object(n["createBlock"])(d,{key:e.dataCode,label:e.dataValue,value:e.dataCode},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1})]),_:1})]),_:1},8,["model"])]),Object(n["createElementVNode"])("div",i,[Object(n["createVNode"])(b,{size:"small",onClick:t[1]||(t[1]=e=>c.resetForm())},{default:Object(n["withCtx"])(()=>[Object(n["createTextVNode"])(Object(n["toDisplayString"])(e.$t("defalult.chongz")),1)]),_:1}),Object(n["createVNode"])(b,{type:"primary",size:"small",onClick:c.search},{default:Object(n["withCtx"])(()=>[Object(n["createTextVNode"])(Object(n["toDisplayString"])(e.$t("defalult.cx")),1)]),_:1},8,["onClick"])])]),Object(n["withDirectives"])((Object(n["openBlock"])(),Object(n["createBlock"])(f,{ref:"singleTable",data:s.tableData,"highlight-current-row":"",style:{width:"100%"},onCurrentChange:c.currentChange},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(g,{property:"media_id",label:"media_id"}),Object(n["createVNode"])(g,{property:"name",label:e.$t("trigger.mc")},null,8,["label"]),Object(n["createVNode"])(g,{property:"img",label:"选择"},{default:Object(n["withCtx"])(({row:e})=>[Object(n["createVNode"])(b,{type:"primary",size:"mini",onClick:t=>c.currentChange(e)},{default:Object(n["withCtx"])(()=>t[3]||(t[3]=[Object(n["createTextVNode"])(" 选择 ")])),_:2},1032,["onClick"])]),_:1})]),_:1},8,["data","onCurrentChange"])),[[C,s.listLoading]]),Object(n["createVNode"])(v,{background:s.background,"current-page":s.queryForm.page,layout:s.layout,"page-size":s.queryForm.size,total:s.total,style:{"text-align":"right"},onCurrentChange:c.handleCurrentChange,onSizeChange:c.handleSizeChange},null,8,["background","current-page","layout","page-size","total","onCurrentChange","onSizeChange"]),Object(n["createVNode"])(w,{ref:"show"},null,512)]),_:1},8,["modelValue","title","onClose"])}var s=o("4cfb"),c=o("71fb"),d={components:{materialDetail:c["default"]},data(){return{tableData:[],typeData:[],dialogFormVisible:!1,listLoading:!1,title:"",currentRow:"",layout:"total, sizes, prev, pager, next, jumper",background:!0,total:0,queryForm:{page:1,size:20,type:""}}},methods:{showData(e){this.$refs["show"].showMaterialData(e,this.queryForm.type)},currentChange(e){this.currentRow=e,this.$emit("getMaterialId",e.media_id),this.dialogFormVisible=!1},search(){this.getMaterialListData()},resetForm(){this.$refs.queryForm.resetFields()},selectData(){this.getMaterialTypeData(),this.title="素材列表",this.dialogFormVisible=!0},async getMaterialListData(){const{data:e}=await Object(s["getMaterialList"])(this.queryForm);this.listLoading=!0,this.tableData=e.items,this.total=e.total,setTimeout(()=>{this.listLoading=!1},500)},async getMaterialTypeData(){const{data:e}=await Object(s["getMaterialType"])();this.typeData=e,this.queryForm.type=e[0].dataCode,this.getMaterialListData()},handleQuery(){this.queryForm.page=1,this.getMaterialListData()},handleSizeChange(e){this.queryForm.size=e,this.getMaterialListData()},handleCurrentChange(e){this.queryForm.page=e,this.getMaterialListData()}}},u=(o("da48"),o("d959")),m=o.n(u);const h=m()(d,[["render",l],["__scopeId","data-v-40303fa6"]]);t["default"]=h},4579:function(e,t,o){"use strict";o.r(t);var n=o("f2bf");const a={class:"manage-container"};function r(e,t,o,r,i,l){const s=Object(n["resolveComponent"])("el-table-column"),c=Object(n["resolveComponent"])("el-image"),d=Object(n["resolveComponent"])("el-table"),u=Object(n["resolveComponent"])("el-dialog"),m=Object(n["resolveDirective"])("loading");return Object(n["openBlock"])(),Object(n["createElementBlock"])("div",a,[Object(n["createVNode"])(u,{modelValue:i.dialogFormVisible,"onUpdate:modelValue":t[0]||(t[0]=e=>i.dialogFormVisible=e),title:i.title,width:"1000px",onClose:e.close},{default:Object(n["withCtx"])(()=>[Object(n["withDirectives"])((Object(n["openBlock"])(),Object(n["createBlock"])(d,{id:"table",data:i.appearanceData,border:"",stripe:"",style:{width:"100%"}},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(s,{label:"站容站貌"},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(s,{label:"周边环境",align:"center"},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(s,{fixed:"",prop:"environment.exception",label:"是否异常",width:"80",align:"center"}),Object(n["createVNode"])(s,{fixed:"",prop:"environment.dispose",label:"是否处理",width:"80",align:"center"}),Object(n["createVNode"])(s,{prop:"img",label:e.$t("sensor.tp"),width:"100",align:"center"},{default:Object(n["withCtx"])(({row:e})=>[e.environment.url?(Object(n["openBlock"])(),Object(n["createBlock"])(c,{key:0,style:{width:"100px",height:"100px"},src:e.environment.url,"preview-src-list":e.environment.fileList},null,8,["src","preview-src-list"])):Object(n["createCommentVNode"])("",!0)]),_:1},8,["label"])]),_:1}),Object(n["createVNode"])(s,{label:"道路通畅",align:"center"},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(s,{fixed:"",prop:"road.exception",label:"是否异常",width:"80",align:"center"}),Object(n["createVNode"])(s,{fixed:"",prop:"road.dispose",label:"是否处理",width:"80",align:"center"}),Object(n["createVNode"])(s,{prop:"img",label:e.$t("sensor.tp"),width:"100",align:"center"},{default:Object(n["withCtx"])(({row:e})=>[e.road.url?(Object(n["openBlock"])(),Object(n["createBlock"])(c,{key:0,style:{width:"100px",height:"100px"},src:e.road.url,"preview-src-list":e.road.fileList},null,8,["src","preview-src-list"])):Object(n["createCommentVNode"])("",!0)]),_:1},8,["label"])]),_:1}),Object(n["createVNode"])(s,{label:"围栏状态",align:"center"},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(s,{fixed:"",prop:"fence.exception",label:"是否异常",width:"80",align:"center"}),Object(n["createVNode"])(s,{fixed:"",prop:"fence.dispose",label:"是否处理",width:"80",align:"center"}),Object(n["createVNode"])(s,{prop:"img",label:e.$t("sensor.tp"),width:"100",align:"center"},{default:Object(n["withCtx"])(({row:e})=>[e.fence.url?(Object(n["openBlock"])(),Object(n["createBlock"])(c,{key:0,style:{width:"100px",height:"100px"},src:e.fence.url,"preview-src-list":e.fence.fileList},null,8,["src","preview-src-list"])):Object(n["createCommentVNode"])("",!0)]),_:1},8,["label"])]),_:1}),Object(n["createVNode"])(s,{label:"绿化平整",align:"center"},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(s,{fixed:"",prop:"greening.exception",label:"是否异常",width:"80",align:"center"}),Object(n["createVNode"])(s,{fixed:"",prop:"greening.dispose",label:"是否处理",width:"80",align:"center"}),Object(n["createVNode"])(s,{prop:"img",label:e.$t("sensor.tp"),width:"100",align:"center"},{default:Object(n["withCtx"])(({row:e})=>[e.greening.url?(Object(n["openBlock"])(),Object(n["createBlock"])(c,{key:0,style:{width:"100px",height:"100px"},src:e.greening.url,"preview-src-list":e.greening.fileList},null,8,["src","preview-src-list"])):Object(n["createCommentVNode"])("",!0)]),_:1},8,["label"])]),_:1}),Object(n["createVNode"])(s,{label:"单元井盖",align:"center"},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(s,{fixed:"",prop:"manholeCover.exception",label:"是否异常",width:"80",align:"center"}),Object(n["createVNode"])(s,{fixed:"",prop:"manholeCover.dispose",label:"是否处理",width:"80",align:"center"}),Object(n["createVNode"])(s,{prop:"img",label:e.$t("sensor.tp"),width:"100",align:"center"},{default:Object(n["withCtx"])(({row:e})=>[e.manholeCover.url?(Object(n["openBlock"])(),Object(n["createBlock"])(c,{key:0,style:{width:"100px",height:"100px"},src:e.manholeCover.url,"preview-src-list":e.manholeCover.fileList},null,8,["src","preview-src-list"])):Object(n["createCommentVNode"])("",!0)]),_:1},8,["label"])]),_:1}),Object(n["createVNode"])(s,{label:"走道板",align:"center"},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(s,{fixed:"",prop:"aisleBoard.exception",label:"是否异常",width:"80",align:"center"}),Object(n["createVNode"])(s,{fixed:"",prop:"aisleBoard.dispose",label:"是否处理",width:"80",align:"center"}),Object(n["createVNode"])(s,{prop:"img",label:e.$t("sensor.tp"),width:"100",align:"center"},{default:Object(n["withCtx"])(({row:e})=>[e.aisleBoard.url?(Object(n["openBlock"])(),Object(n["createBlock"])(c,{key:0,style:{width:"100px",height:"100px"},src:e.aisleBoard.url,"preview-src-list":e.aisleBoard.fileList},null,8,["src","preview-src-list"])):Object(n["createCommentVNode"])("",!0)]),_:1},8,["label"])]),_:1}),Object(n["createVNode"])(s,{label:"工艺牌",align:"center"},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(s,{fixed:"",prop:"processCard.exception",label:"是否异常",width:"80",align:"center"}),Object(n["createVNode"])(s,{fixed:"",prop:"processCard.dispose",label:"是否处理",width:"80",align:"center"}),Object(n["createVNode"])(s,{prop:"img",label:e.$t("sensor.tp"),width:"100",align:"center"},{default:Object(n["withCtx"])(({row:e})=>[e.processCard.url?(Object(n["openBlock"])(),Object(n["createBlock"])(c,{key:0,style:{width:"100px",height:"100px"},src:e.processCard.url,"preview-src-list":e.processCard.fileList},null,8,["src","preview-src-list"])):Object(n["createCommentVNode"])("",!0)]),_:1},8,["label"])]),_:1}),Object(n["createVNode"])(s,{label:"广告牌",align:"center"},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(s,{fixed:"",prop:"billboard.exception",label:"是否异常",width:"80",align:"center"}),Object(n["createVNode"])(s,{fixed:"",prop:"billboard.dispose",label:"是否处理",width:"80",align:"center"}),Object(n["createVNode"])(s,{prop:"img",label:e.$t("sensor.tp"),width:"100",align:"center"},{default:Object(n["withCtx"])(({row:e})=>[e.billboard.url?(Object(n["openBlock"])(),Object(n["createBlock"])(c,{key:0,style:{width:"100px",height:"100px"},src:e.billboard.url,"preview-src-list":e.billboard.fileList},null,8,["src","preview-src-list"])):Object(n["createCommentVNode"])("",!0)]),_:1},8,["label"])]),_:1}),Object(n["createVNode"])(s,{label:"维修情况",align:"center"},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(s,{fixed:"",prop:"maintenance.exception",label:"是否异常",width:"80",align:"center"}),Object(n["createVNode"])(s,{fixed:"",prop:"maintenance.dispose",label:"是否处理",width:"80",align:"center"}),Object(n["createVNode"])(s,{prop:"img",label:e.$t("sensor.tp"),width:"100",align:"center"},{default:Object(n["withCtx"])(({row:e})=>[e.maintenance.url?(Object(n["openBlock"])(),Object(n["createBlock"])(c,{key:0,style:{width:"100px",height:"100px"},src:e.maintenance.url,"preview-src-list":e.maintenance.fileList},null,8,["src","preview-src-list"])):Object(n["createCommentVNode"])("",!0)]),_:1},8,["label"])]),_:1})]),_:1})]),_:1},8,["data"])),[[m,i.listLoading]]),Object(n["withDirectives"])((Object(n["openBlock"])(),Object(n["createBlock"])(d,{id:"table",data:i.equipmentWellData,border:"",stripe:"",style:{width:"100%"}},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(s,{label:"设备井检查"},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(s,{label:"提升泵",align:"center"},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(s,{fixed:"",prop:"liftPump.exception",label:"是否异常",width:"80",align:"center"}),Object(n["createVNode"])(s,{fixed:"",prop:"liftPump.dispose",label:"是否处理",width:"80",align:"center"}),Object(n["createVNode"])(s,{prop:"img",label:e.$t("sensor.tp"),width:"100",align:"center"},{default:Object(n["withCtx"])(({row:e})=>[e.liftPump.url?(Object(n["openBlock"])(),Object(n["createBlock"])(c,{key:0,style:{width:"100px",height:"100px"},src:e.liftPump.url,"preview-src-list":e.liftPump.fileList},null,8,["src","preview-src-list"])):Object(n["createCommentVNode"])("",!0)]),_:1},8,["label"])]),_:1}),Object(n["createVNode"])(s,{label:"阀门井",align:"center"},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(s,{fixed:"",prop:"valveShaft.exception",label:"是否异常",width:"80",align:"center"}),Object(n["createVNode"])(s,{fixed:"",prop:"valveShaft.dispose",label:"是否处理",width:"80",align:"center"}),Object(n["createVNode"])(s,{prop:"img",label:e.$t("sensor.tp"),width:"100",align:"center"},{default:Object(n["withCtx"])(({row:e})=>[e.valveShaft.url?(Object(n["openBlock"])(),Object(n["createBlock"])(c,{key:0,style:{width:"100px",height:"100px"},src:e.valveShaft.url,"preview-src-list":e.valveShaft.fileList},null,8,["src","preview-src-list"])):Object(n["createCommentVNode"])("",!0)]),_:1},8,["label"])]),_:1}),Object(n["createVNode"])(s,{label:"计量井",align:"center"},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(s,{fixed:"",prop:"measuringWell.exception",label:"是否异常",width:"80",align:"center"}),Object(n["createVNode"])(s,{fixed:"",prop:"measuringWell.dispose",label:"是否处理",width:"80",align:"center"}),Object(n["createVNode"])(s,{prop:"img",label:e.$t("sensor.tp"),width:"100",align:"center"},{default:Object(n["withCtx"])(({row:e})=>[e.measuringWell.url?(Object(n["openBlock"])(),Object(n["createBlock"])(c,{key:0,style:{width:"100px",height:"100px"},src:e.measuringWell.url,"preview-src-list":e.measuringWell.fileList},null,8,["src","preview-src-list"])):Object(n["createCommentVNode"])("",!0)]),_:1},8,["label"])]),_:1}),Object(n["createVNode"])(s,{label:"曝气量",align:"center"},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(s,{fixed:"",prop:"air.exception",label:"是否异常",width:"80",align:"center"}),Object(n["createVNode"])(s,{fixed:"",prop:"air.dispose",label:"是否处理",width:"80",align:"center"}),Object(n["createVNode"])(s,{prop:"img",label:e.$t("sensor.tp"),width:"100",align:"center"},{default:Object(n["withCtx"])(({row:e})=>[e.air.url?(Object(n["openBlock"])(),Object(n["createBlock"])(c,{key:0,style:{width:"100px",height:"100px"},src:e.air.url,"preview-src-list":e.air.fileList},null,8,["src","preview-src-list"])):Object(n["createCommentVNode"])("",!0)]),_:1},8,["label"])]),_:1}),Object(n["createVNode"])(s,{label:"消化液回流",align:"center"},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(s,{fixed:"",prop:"digestiveJuices.exception",label:"是否异常",width:"80",align:"center"}),Object(n["createVNode"])(s,{fixed:"",prop:"digestiveJuices.dispose",label:"是否处理",width:"80",align:"center"}),Object(n["createVNode"])(s,{prop:"img",label:e.$t("sensor.tp"),width:"100",align:"center"},{default:Object(n["withCtx"])(({row:e})=>[e.digestiveJuices.url?(Object(n["openBlock"])(),Object(n["createBlock"])(c,{key:0,style:{width:"100px",height:"100px"},src:e.digestiveJuices.url,"preview-src-list":e.digestiveJuices.fileList},null,8,["src","preview-src-list"])):Object(n["createCommentVNode"])("",!0)]),_:1},8,["label"])]),_:1}),Object(n["createVNode"])(s,{label:"污泥回流",align:"center"},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(s,{fixed:"",prop:"sludge.exception",label:"是否异常",width:"80",align:"center"}),Object(n["createVNode"])(s,{fixed:"",prop:"sludge.dispose",label:"是否处理",width:"80",align:"center"}),Object(n["createVNode"])(s,{prop:"img",label:e.$t("sensor.tp"),width:"100",align:"center"},{default:Object(n["withCtx"])(({row:e})=>[e.sludge.url?(Object(n["openBlock"])(),Object(n["createBlock"])(c,{key:0,style:{width:"100px",height:"100px"},src:e.sludge.url,"preview-src-list":e.sludge.fileList},null,8,["src","preview-src-list"])):Object(n["createCommentVNode"])("",!0)]),_:1},8,["label"])]),_:1}),Object(n["createVNode"])(s,{label:"载体微生物",align:"center"},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(s,{fixed:"",prop:"microbial.exception",label:"是否异常",width:"80",align:"center"}),Object(n["createVNode"])(s,{fixed:"",prop:"microbial.dispose",label:"是否处理",width:"80",align:"center"}),Object(n["createVNode"])(s,{prop:"img",label:e.$t("sensor.tp"),width:"100",align:"center"},{default:Object(n["withCtx"])(({row:e})=>[e.microbial.url?(Object(n["openBlock"])(),Object(n["createBlock"])(c,{key:0,style:{width:"100px",height:"100px"},src:e.microbial.url,"preview-src-list":e.microbial.fileList},null,8,["src","preview-src-list"])):Object(n["createCommentVNode"])("",!0)]),_:1},8,["label"])]),_:1}),Object(n["createVNode"])(s,{label:"沉淀池",align:"center"},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(s,{fixed:"",prop:"settlingBasin.exception",label:"是否异常",width:"80",align:"center"}),Object(n["createVNode"])(s,{fixed:"",prop:"settlingBasin.dispose",label:"是否处理",width:"80",align:"center"}),Object(n["createVNode"])(s,{prop:"img",label:e.$t("sensor.tp"),width:"100",align:"center"},{default:Object(n["withCtx"])(({row:e})=>[e.settlingBasin.url?(Object(n["openBlock"])(),Object(n["createBlock"])(c,{key:0,style:{width:"100px",height:"100px"},src:e.settlingBasin.url,"preview-src-list":e.settlingBasin.fileList},null,8,["src","preview-src-list"])):Object(n["createCommentVNode"])("",!0)]),_:1},8,["label"])]),_:1}),Object(n["createVNode"])(s,{label:"取样观察池",align:"center"},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(s,{fixed:"",prop:"samplingPool.exception",label:"是否异常",width:"80",align:"center"}),Object(n["createVNode"])(s,{fixed:"",prop:"samplingPool.dispose",label:"是否处理",width:"80",align:"center"}),Object(n["createVNode"])(s,{prop:"img",label:e.$t("sensor.tp"),width:"100",align:"center"},{default:Object(n["withCtx"])(({row:e})=>[e.samplingPool.url?(Object(n["openBlock"])(),Object(n["createBlock"])(c,{key:0,style:{width:"100px",height:"100px"},src:e.samplingPool.url,"preview-src-list":e.samplingPool.fileList},null,8,["src","preview-src-list"])):Object(n["createCommentVNode"])("",!0)]),_:1},8,["label"])]),_:1})]),_:1})]),_:1},8,["data"])),[[m,i.listLoading]]),Object(n["withDirectives"])((Object(n["openBlock"])(),Object(n["createBlock"])(d,{id:"table",data:i.controlCabinetData,border:"",stripe:"",style:{width:"100%"}},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(s,{label:"控制柜检查"},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(s,{label:"外观",align:"center"},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(s,{fixed:"",prop:"external.exception",label:"是否异常",width:"80",align:"center"}),Object(n["createVNode"])(s,{fixed:"",prop:"external.dispose",label:"是否处理",width:"80",align:"center"}),Object(n["createVNode"])(s,{prop:"img",label:e.$t("sensor.tp"),width:"100",align:"center"},{default:Object(n["withCtx"])(({row:e})=>[e.external.url?(Object(n["openBlock"])(),Object(n["createBlock"])(c,{key:0,style:{width:"100px",height:"100px"},src:e.external.url,"preview-src-list":e.external.fileList},null,8,["src","preview-src-list"])):Object(n["createCommentVNode"])("",!0)]),_:1},8,["label"])]),_:1}),Object(n["createVNode"])(s,{label:"内部",align:"center"},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(s,{fixed:"",prop:"internal.exception",label:"是否异常",width:"80",align:"center"}),Object(n["createVNode"])(s,{fixed:"",prop:"internal.dispose",label:"是否处理",width:"80",align:"center"}),Object(n["createVNode"])(s,{prop:"img",label:e.$t("sensor.tp"),width:"100",align:"center"},{default:Object(n["withCtx"])(({row:e})=>[e.internal.url?(Object(n["openBlock"])(),Object(n["createBlock"])(c,{key:0,style:{width:"100px",height:"100px"},src:e.internal.url,"preview-src-list":e.internal.fileList},null,8,["src","preview-src-list"])):Object(n["createCommentVNode"])("",!0)]),_:1},8,["label"])]),_:1}),Object(n["createVNode"])(s,{label:"电路系统",align:"center"},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(s,{fixed:"",prop:"circuitSystem.exception",label:"是否异常",width:"80",align:"center"}),Object(n["createVNode"])(s,{fixed:"",prop:"circuitSystem.dispose",label:"是否处理",width:"80",align:"center"}),Object(n["createVNode"])(s,{prop:"img",label:e.$t("sensor.tp"),width:"100",align:"center"},{default:Object(n["withCtx"])(({row:e})=>[e.circuitSystem.url?(Object(n["openBlock"])(),Object(n["createBlock"])(c,{key:0,style:{width:"100px",height:"100px"},src:e.circuitSystem.url,"preview-src-list":e.circuitSystem.fileList},null,8,["src","preview-src-list"])):Object(n["createCommentVNode"])("",!0)]),_:1},8,["label"])]),_:1}),Object(n["createVNode"])(s,{label:"继电器",align:"center"},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(s,{fixed:"",prop:"relay.exception",label:"是否异常",width:"80",align:"center"}),Object(n["createVNode"])(s,{fixed:"",prop:"relay.dispose",label:"是否处理",width:"80",align:"center"}),Object(n["createVNode"])(s,{prop:"img",label:e.$t("sensor.tp"),width:"100",align:"center"},{default:Object(n["withCtx"])(({row:e})=>[e.relay.url?(Object(n["openBlock"])(),Object(n["createBlock"])(c,{key:0,style:{width:"100px",height:"100px"},src:e.relay.url,"preview-src-list":e.relay.fileList},null,8,["src","preview-src-list"])):Object(n["createCommentVNode"])("",!0)]),_:1},8,["label"])]),_:1}),Object(n["createVNode"])(s,{label:"远程模块",align:"center"},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(s,{fixed:"",prop:"remoteModule.exception",label:"是否异常",width:"80",align:"center"}),Object(n["createVNode"])(s,{fixed:"",prop:"remoteModule.dispose",label:"是否处理",width:"80",align:"center"}),Object(n["createVNode"])(s,{prop:"img",label:e.$t("sensor.tp"),width:"100",align:"center"},{default:Object(n["withCtx"])(({row:e})=>[e.remoteModule.url?(Object(n["openBlock"])(),Object(n["createBlock"])(c,{key:0,style:{width:"100px",height:"100px"},src:e.remoteModule.url,"preview-src-list":e.remoteModule.fileList},null,8,["src","preview-src-list"])):Object(n["createCommentVNode"])("",!0)]),_:1},8,["label"])]),_:1}),Object(n["createVNode"])(s,{label:"显示屏",align:"center"},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(s,{fixed:"",prop:"display.exception",label:"是否异常",width:"80",align:"center"}),Object(n["createVNode"])(s,{fixed:"",prop:"display.dispose",label:"是否处理",width:"80",align:"center"}),Object(n["createVNode"])(s,{prop:"img",label:e.$t("sensor.tp"),width:"100",align:"center"},{default:Object(n["withCtx"])(({row:e})=>[e.display.url?(Object(n["openBlock"])(),Object(n["createBlock"])(c,{key:0,style:{width:"100px",height:"100px"},src:e.display.url,"preview-src-list":e.display.fileList},null,8,["src","preview-src-list"])):Object(n["createCommentVNode"])("",!0)]),_:1},8,["label"])]),_:1}),Object(n["createVNode"])(s,{label:"流量计",align:"center"},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(s,{fixed:"",prop:"flowMeter.exception",label:"是否异常",width:"80",align:"center"}),Object(n["createVNode"])(s,{fixed:"",prop:"flowMeter.dispose",label:"是否处理",width:"80",align:"center"}),Object(n["createVNode"])(s,{prop:"img",label:e.$t("sensor.tp"),width:"100",align:"center"},{default:Object(n["withCtx"])(({row:e})=>[e.flowMeter.url?(Object(n["openBlock"])(),Object(n["createBlock"])(c,{key:0,style:{width:"100px",height:"100px"},src:e.flowMeter.url,"preview-src-list":e.flowMeter.fileList},null,8,["src","preview-src-list"])):Object(n["createCommentVNode"])("",!0)]),_:1},8,["label"])]),_:1}),Object(n["createVNode"])(s,{label:"电表",align:"center"},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(s,{fixed:"",prop:"electricMeter.exception",label:"是否异常",width:"80",align:"center"}),Object(n["createVNode"])(s,{fixed:"",prop:"electricMeter.dispose",label:"是否处理",width:"80",align:"center"}),Object(n["createVNode"])(s,{prop:"img",label:e.$t("sensor.tp"),width:"100",align:"center"},{default:Object(n["withCtx"])(({row:e})=>[e.electricMeter.url?(Object(n["openBlock"])(),Object(n["createBlock"])(c,{key:0,style:{width:"100px",height:"100px"},src:e.electricMeter.url,"preview-src-list":e.electricMeter.fileList},null,8,["src","preview-src-list"])):Object(n["createCommentVNode"])("",!0)]),_:1},8,["label"])]),_:1}),Object(n["createVNode"])(s,{label:"管线",align:"center"},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(s,{fixed:"",prop:"pipeline.exception",label:"是否异常",width:"80",align:"center"}),Object(n["createVNode"])(s,{fixed:"",prop:"pipeline.dispose",label:"是否处理",width:"80",align:"center"}),Object(n["createVNode"])(s,{prop:"img",label:e.$t("sensor.tp"),width:"100",align:"center"},{default:Object(n["withCtx"])(({row:e})=>[e.pipeline.url?(Object(n["openBlock"])(),Object(n["createBlock"])(c,{key:0,style:{width:"100px",height:"100px"},src:e.pipeline.url,"preview-src-list":e.pipeline.fileList},null,8,["src","preview-src-list"])):Object(n["createCommentVNode"])("",!0)]),_:1},8,["label"])]),_:1}),Object(n["createVNode"])(s,{label:"风机",align:"center"},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(s,{fixed:"",prop:"fan.exception",label:"是否异常",width:"80",align:"center"}),Object(n["createVNode"])(s,{fixed:"",prop:"fan.dispose",label:"是否处理",width:"80",align:"center"}),Object(n["createVNode"])(s,{prop:"img",label:e.$t("sensor.tp"),width:"100",align:"center"},{default:Object(n["withCtx"])(({row:e})=>[e.fan.url?(Object(n["openBlock"])(),Object(n["createBlock"])(c,{key:0,style:{width:"100px",height:"100px"},src:e.fan.url,"preview-src-list":e.fan.fileList},null,8,["src","preview-src-list"])):Object(n["createCommentVNode"])("",!0)]),_:1},8,["label"])]),_:1}),Object(n["createVNode"])(s,{label:"液位状态",align:"center"},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(s,{fixed:"",prop:"liquidState.exception",label:"是否异常",width:"80",align:"center"}),Object(n["createVNode"])(s,{fixed:"",prop:"liquidState.dispose",label:"是否处理",width:"80",align:"center"}),Object(n["createVNode"])(s,{prop:"img",label:e.$t("sensor.tp"),width:"100",align:"center"},{default:Object(n["withCtx"])(({row:e})=>[e.liquidState.url?(Object(n["openBlock"])(),Object(n["createBlock"])(c,{key:0,style:{width:"100px",height:"100px"},src:e.liquidState.url,"preview-src-list":e.liquidState.fileList},null,8,["src","preview-src-list"])):Object(n["createCommentVNode"])("",!0)]),_:1},8,["label"])]),_:1})]),_:1})]),_:1},8,["data"])),[[m,i.listLoading]]),Object(n["withDirectives"])((Object(n["openBlock"])(),Object(n["createBlock"])(d,{id:"table",data:i.waterData,border:"",stripe:"",style:{width:"100%"}},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(s,{label:"水质水量"},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(s,{label:"进水量",align:"center"},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(s,{fixed:"",prop:"intoWater.exception",label:"是否异常",width:"80",align:"center"}),Object(n["createVNode"])(s,{fixed:"",prop:"intoWater.dispose",label:"是否处理",width:"80",align:"center"}),Object(n["createVNode"])(s,{prop:"img",label:e.$t("sensor.tp"),width:"100",align:"center"},{default:Object(n["withCtx"])(({row:e})=>[e.intoWater.url?(Object(n["openBlock"])(),Object(n["createBlock"])(c,{key:0,style:{width:"100px",height:"100px"},src:e.intoWater.url,"preview-src-list":e.intoWater.fileList},null,8,["src","preview-src-list"])):Object(n["createCommentVNode"])("",!0)]),_:1},8,["label"])]),_:1}),Object(n["createVNode"])(s,{label:"水流状况",align:"center"},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(s,{fixed:"",prop:"currentSituation.exception",label:"是否异常",width:"80",align:"center"}),Object(n["createVNode"])(s,{fixed:"",prop:"currentSituation.dispose",label:"是否处理",width:"80",align:"center"}),Object(n["createVNode"])(s,{prop:"img",label:e.$t("sensor.tp"),width:"100",align:"center"},{default:Object(n["withCtx"])(({row:e})=>[e.currentSituation.url?(Object(n["openBlock"])(),Object(n["createBlock"])(c,{key:0,style:{width:"100px",height:"100px"},src:e.currentSituation.url,"preview-src-list":e.currentSituation.fileList},null,8,["src","preview-src-list"])):Object(n["createCommentVNode"])("",!0)]),_:1},8,["label"])]),_:1}),Object(n["createVNode"])(s,{label:"进水水质",align:"center"},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(s,{fixed:"",prop:"waterQuality.exception",label:"是否异常",width:"80",align:"center"}),Object(n["createVNode"])(s,{fixed:"",prop:"waterQuality.dispose",label:"是否处理",width:"80",align:"center"}),Object(n["createVNode"])(s,{prop:"img",label:e.$t("sensor.tp"),width:"100",align:"center"},{default:Object(n["withCtx"])(({row:e})=>[e.waterQuality.url?(Object(n["openBlock"])(),Object(n["createBlock"])(c,{key:0,style:{width:"100px",height:"100px"},src:e.waterQuality.url,"preview-src-list":e.waterQuality.fileList},null,8,["src","preview-src-list"])):Object(n["createCommentVNode"])("",!0)]),_:1},8,["label"])]),_:1}),Object(n["createVNode"])(s,{label:"进水格栅",align:"center"},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(s,{fixed:"",prop:"intakeGrille.exception",label:"是否异常",width:"80",align:"center"}),Object(n["createVNode"])(s,{fixed:"",prop:"intakeGrille.dispose",label:"是否处理",width:"80",align:"center"}),Object(n["createVNode"])(s,{prop:"img",label:e.$t("sensor.tp"),width:"100",align:"center"},{default:Object(n["withCtx"])(({row:e})=>[e.intakeGrille.url?(Object(n["openBlock"])(),Object(n["createBlock"])(c,{key:0,style:{width:"100px",height:"100px"},src:e.intakeGrille.url,"preview-src-list":e.intakeGrille.fileList},null,8,["src","preview-src-list"])):Object(n["createCommentVNode"])("",!0)]),_:1},8,["label"])]),_:1}),Object(n["createVNode"])(s,{label:"水质检查",align:"center"},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(s,{fixed:"",prop:"waterQualityInspection.exception",label:"是否异常",width:"80",align:"center"}),Object(n["createVNode"])(s,{fixed:"",prop:"waterQualityInspection.dispose",label:"是否处理",width:"80",align:"center"}),Object(n["createVNode"])(s,{prop:"img",label:e.$t("sensor.tp"),width:"100",align:"center"},{default:Object(n["withCtx"])(({row:e})=>[e.waterQualityInspection.url?(Object(n["openBlock"])(),Object(n["createBlock"])(c,{key:0,style:{width:"100px",height:"100px"},src:e.waterQualityInspection.url,"preview-src-list":e.waterQualityInspection.fileList},null,8,["src","preview-src-list"])):Object(n["createCommentVNode"])("",!0)]),_:1},8,["label"])]),_:1}),Object(n["createVNode"])(s,{label:"排水情况",align:"center"},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(s,{fixed:"",prop:"drainage.exception",label:"是否异常",width:"80",align:"center"}),Object(n["createVNode"])(s,{fixed:"",prop:"drainage.dispose",label:"是否处理",width:"80",align:"center"}),Object(n["createVNode"])(s,{prop:"img",label:e.$t("sensor.tp"),width:"100",align:"center"},{default:Object(n["withCtx"])(({row:e})=>[e.drainage.url?(Object(n["openBlock"])(),Object(n["createBlock"])(c,{key:0,style:{width:"100px",height:"100px"},src:e.drainage.url,"preview-src-list":e.drainage.fileList},null,8,["src","preview-src-list"])):Object(n["createCommentVNode"])("",!0)]),_:1},8,["label"])]),_:1})]),_:1})]),_:1},8,["data"])),[[m,i.listLoading]])]),_:1},8,["modelValue","title","onClose"])])}o("14d9");var i=o("f121"),l={data(){return{background:!0,listLoading:!1,dialogFormVisible:!1,title:"",tableData:[],appearanceData:[],equipmentWellData:[],controlCabinetData:[],waterData:[],filePath:i["baseURL"]+"/static/img/"}},methods:{showDetail(e){const t=[];t.push({appearance:e.appearance,equipmentWell:e.equipmentWell,controlCabinet:e.controlCabinet,water:e.water}),Object.keys(t[0]).map(e=>{Object.keys(t[0][e]).map(o=>{var n=t[0][e][o].img;if(n){for(var a=n.substring(0,n.lastIndexOf(",")),r=a.split(","),i=[],l=0;l<r.length;l++)r[l]&&i.push([this.filePath+r[l]]);t[0][e][o].url=this.filePath+r[0],t[0][e][o].fileList=i}})}),this.appearanceData[0]=t[0].appearance,this.equipmentWellData[0]=t[0].equipmentWell,this.controlCabinetData[0]=t[0].controlCabinet,this.waterData[0]=t[0].water,this.title="巡检填报详情",this.dialogFormVisible=!0}}},s=(o("b843"),o("f0ca"),o("d959")),c=o.n(s);const d=c()(l,[["render",r],["__scopeId","data-v-746d33c6"]]);t["default"]=d},4592:function(e,t,o){"use strict";o.r(t);var n=o("f2bf");const a={class:"manage-container"};function r(e,t,o,r,i,l){const s=Object(n["resolveComponent"])("vab-query-form-left-panel"),c=Object(n["resolveComponent"])("el-button"),d=Object(n["resolveComponent"])("vab-query-form-right-panel"),u=Object(n["resolveComponent"])("vab-query-form"),m=Object(n["resolveComponent"])("el-table-column"),h=Object(n["resolveComponent"])("el-table"),p=Object(n["resolveComponent"])("el-pagination"),b=Object(n["resolveComponent"])("el-tab-pane"),g=Object(n["resolveComponent"])("el-input"),f=Object(n["resolveComponent"])("el-form-item"),v=Object(n["resolveComponent"])("el-form"),w=Object(n["resolveComponent"])("el-link"),k=Object(n["resolveComponent"])("el-tabs");return Object(n["openBlock"])(),Object(n["createElementBlock"])("div",a,[Object(n["createVNode"])(k,{modelValue:i.activeName,"onUpdate:modelValue":t[9]||(t[9]=e=>i.activeName=e),onTabClick:l.handleClick},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(b,{label:"短信配置",name:"first"},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(u,null,{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(s),Object(n["createVNode"])(d,null,{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(c,{type:"primary",onClick:l.handleAdd},{default:Object(n["withCtx"])(()=>t[10]||(t[10]=[Object(n["createTextVNode"])("添加短信")])),_:1},8,["onClick"])]),_:1})]),_:1}),Object(n["createVNode"])(h,{data:i.tableData,border:"",stripe:"",style:{width:"100%"}},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(m,{prop:"name",label:"模板名称",width:"160",align:"center"}),Object(n["createVNode"])(m,{prop:"code",label:"模板编码",width:"160",align:"center"}),Object(n["createVNode"])(m,{prop:"date",label:e.$t("grouping.cjsj"),width:"160",align:"center"},null,8,["label"]),Object(n["createVNode"])(m,{prop:"content",label:"模板内容",width:"500",align:"center"}),Object(n["createVNode"])(m,{fixed:"right",label:e.$t("defalult.cz"),align:"center"},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(c,{type:"text",size:"small",onClick:t[0]||(t[0]=t=>l.handleClick(e.scope.row))},{default:Object(n["withCtx"])(()=>[Object(n["createTextVNode"])(Object(n["toDisplayString"])(e.$t("defalult.bj")),1)]),_:1}),Object(n["createVNode"])(c,{type:"text",size:"small"},{default:Object(n["withCtx"])(()=>[Object(n["createTextVNode"])(Object(n["toDisplayString"])(e.$t("defalult.sc")),1)]),_:1}),Object(n["createVNode"])(c,{type:"text",size:"small"},{default:Object(n["withCtx"])(()=>t[11]||(t[11]=[Object(n["createTextVNode"])("群发")])),_:1})]),_:1},8,["label"])]),_:1},8,["data"]),Object(n["createVNode"])(u,null,{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(s),Object(n["createVNode"])(d,null,{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(p,{"current-page":i.currentPage4,"page-sizes":[100,200,300,400],"page-size":100,layout:"total, sizes, prev, pager, next, jumper",total:400,onSizeChange:l.handleSizeChange,onCurrentChange:l.handleCurrentChange},null,8,["current-page","onSizeChange","onCurrentChange"])]),_:1})]),_:1})]),_:1}),Object(n["createVNode"])(b,{label:"邮箱配置",name:"second"},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(v,{ref:"form",model:e.form,"label-position":"left","label-width":"120px"},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(f,{label:"邮箱地址"},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(g,{modelValue:i.input,"onUpdate:modelValue":t[1]||(t[1]=e=>i.input=e),placeholder:"请输入内容"},null,8,["modelValue"])]),_:1}),Object(n["createVNode"])(f,{label:"邮箱授权码"},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(g,{modelValue:i.input,"onUpdate:modelValue":t[2]||(t[2]=e=>i.input=e),placeholder:"请输入内容"},null,8,["modelValue"])]),_:1}),Object(n["createVNode"])(f,{label:"邮箱服务器地址"},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(g,{modelValue:i.input,"onUpdate:modelValue":t[3]||(t[3]=e=>i.input=e),placeholder:"请输入内容"},null,8,["modelValue"])]),_:1}),Object(n["createVNode"])(f,{label:"协议"},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(g,{modelValue:i.input,"onUpdate:modelValue":t[4]||(t[4]=e=>i.input=e),placeholder:"请输入内容"},null,8,["modelValue"])]),_:1}),Object(n["createVNode"])(f,{label:"端口"},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(g,{modelValue:i.input,"onUpdate:modelValue":t[5]||(t[5]=e=>i.input=e),placeholder:"请输入内容"},null,8,["modelValue"])]),_:1})]),_:1},8,["model"]),Object(n["createElementVNode"])("div",null,[t[13]||(t[13]=Object(n["createElementVNode"])("span",null," QQ邮箱http://jingyan.baidu.com/article/fedf032148ajkas8978ea.html ",-1)),Object(n["createVNode"])(w,{href:"https://element.eleme.io",target:"_blank",type:"primary"},{default:Object(n["withCtx"])(()=>t[12]||(t[12]=[Object(n["createTextVNode"])(" 复制链接 ")])),_:1})]),Object(n["createElementVNode"])("div",null,[t[15]||(t[15]=Object(n["createElementVNode"])("span",null," 163邮箱http://jingyan.baidu.com/article/fedf032148ajkas8978ea.html ",-1)),Object(n["createVNode"])(w,{href:"https://element.eleme.io",target:"_blank",type:"primary"},{default:Object(n["withCtx"])(()=>t[14]||(t[14]=[Object(n["createTextVNode"])(" 复制链接 ")])),_:1})]),Object(n["createElementVNode"])("div",null,[t[17]||(t[17]=Object(n["createElementVNode"])("span",null," 腾讯企业邮箱http://jingyan.baidu.com/article/fedf032148ajkas8978ea.html ",-1)),Object(n["createVNode"])(w,{href:"https://element.eleme.io",target:"_blank",type:"primary"},{default:Object(n["withCtx"])(()=>t[16]||(t[16]=[Object(n["createTextVNode"])(" 复制链接 ")])),_:1})]),Object(n["createVNode"])(c,{type:"primary"},{default:Object(n["withCtx"])(()=>t[18]||(t[18]=[Object(n["createTextVNode"])("保存")])),_:1}),Object(n["createVNode"])(c,{type:"primary",plain:""},{default:Object(n["withCtx"])(()=>t[19]||(t[19]=[Object(n["createTextVNode"])("返回")])),_:1})]),_:1}),Object(n["createVNode"])(b,{label:"微信平台配置",name:"third"},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(v,{ref:"form",model:e.form,"label-position":"left","label-width":"140px"},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(f,{label:"微信appid"},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(g,{modelValue:i.input,"onUpdate:modelValue":t[6]||(t[6]=e=>i.input=e),placeholder:"请输入内容"},null,8,["modelValue"])]),_:1}),Object(n["createVNode"])(f,{label:"微信appSecret"},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(g,{modelValue:i.input,"onUpdate:modelValue":t[7]||(t[7]=e=>i.input=e),placeholder:"请输入内容"},null,8,["modelValue"])]),_:1}),Object(n["createVNode"])(f,{label:"公众号唯一标识参数"},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(g,{modelValue:i.input,"onUpdate:modelValue":t[8]||(t[8]=e=>i.input=e),placeholder:"请输入内容"},null,8,["modelValue"])]),_:1})]),_:1},8,["model"]),Object(n["createVNode"])(c,{type:"primary"},{default:Object(n["withCtx"])(()=>t[20]||(t[20]=[Object(n["createTextVNode"])("保存")])),_:1}),Object(n["createVNode"])(c,{type:"primary",plain:""},{default:Object(n["withCtx"])(()=>t[21]||(t[21]=[Object(n["createTextVNode"])("返回")])),_:1})]),_:1})]),_:1},8,["modelValue","onTabClick"])])}var i={name:"Setting",data(){return{input:"",activeName:"first",tableData:[{name:"设备报警通知模板1",code:"SMS_210085123",date:"2022-02-15 10:12:31",content:"设备${dname}报警:变量:${vdesc}当前值:${svalue}设定值:${lvalue}"},{name:"设备报警通知模板2",code:"SMS_210085123",date:"2022-02-15 10:12:31",content:"设备${dname}报警:变量:${vdesc}当前值:${svalue}设定值:${lvalue}"},{name:"设备报警通知模板3",code:"SMS_210085123",date:"2022-02-15 10:12:31",content:"设备${dname}报警:变量:${vdesc}当前值:${svalue}设定值:${lvalue}"}],currentPage1:5,currentPage2:5,currentPage3:5,currentPage4:4}},methods:{handleClick(e,t){console.log(e,t)},handleAdd(){this.$refs["edit"].showEdit()},handleSizeChange(e){console.log(`每页 ${e} 条`)},handleCurrentChange(e){console.log("当前页: "+e)}}},l=(o("9330"),o("d959")),s=o.n(l);const c=s()(i,[["render",r],["__scopeId","data-v-9f31ac5c"]]);t["default"]=c},"45a7":function(e,t,o){"use strict";o("bc0e")},4771:function(e,t,o){"use strict";o("d93d")},"477e":function(e,t,o){},"486d":function(e,t,o){},"48ad":function(e,t,o){"use strict";o("811e")},"48e2":function(e,t,o){},"48fa":function(e,t,o){"use strict";o.r(t);var n=o("f2bf");const a={class:"dialog-footer"};function r(e,t,o,r,i,l){const s=Object(n["resolveComponent"])("el-input"),c=Object(n["resolveComponent"])("el-form-item"),d=Object(n["resolveComponent"])("el-cascader"),u=Object(n["resolveComponent"])("el-form"),m=Object(n["resolveComponent"])("el-button"),h=Object(n["resolveComponent"])("el-dialog");return Object(n["openBlock"])(),Object(n["createBlock"])(h,{modelValue:i.dialogFormVisible,"onUpdate:modelValue":t[6]||(t[6]=e=>i.dialogFormVisible=e),title:i.title,width:"500px",onClose:l.close},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(u,{ref:"form",model:i.form,rules:i.rules,"label-width":"80px"},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(c,{label:"菜单名称",prop:"title"},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(s,{modelValue:i.form.title,"onUpdate:modelValue":t[0]||(t[0]=e=>i.form.title=e),modelModifiers:{trim:!0},size:"small",autocomplete:"off"},null,8,["modelValue"])]),_:1}),Object(n["createVNode"])(c,{label:"菜单路径",prop:"path"},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(s,{modelValue:i.form.path,"onUpdate:modelValue":t[1]||(t[1]=e=>i.form.path=e),modelModifiers:{trim:!0},size:"small",autocomplete:"off"},null,8,["modelValue"])]),_:1}),Object(n["createVNode"])(c,{label:"菜单路由",prop:"component"},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(s,{modelValue:i.form.component,"onUpdate:modelValue":t[2]||(t[2]=e=>i.form.component=e),modelModifiers:{trim:!0},size:"small",autocomplete:"off"},null,8,["modelValue"])]),_:1}),Object(n["createVNode"])(c,{label:"菜单图标",prop:"icon"},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(s,{modelValue:i.form.icon,"onUpdate:modelValue":t[3]||(t[3]=e=>i.form.icon=e),modelModifiers:{trim:!0},size:"small",autocomplete:"off"},null,8,["modelValue"])]),_:1}),Object(n["createVNode"])(c,{label:"菜单排序",prop:"sort"},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(s,{modelValue:i.form.sort,"onUpdate:modelValue":t[4]||(t[4]=e=>i.form.sort=e),modelModifiers:{trim:!0},size:"small",type:"number",autocomplete:"off"},null,8,["modelValue"])]),_:1}),Object(n["createVNode"])(c,{label:"父级分类",prop:"parentId"},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(d,{modelValue:i.menuId,"onUpdate:modelValue":t[5]||(t[5]=e=>i.menuId=e),size:"small",placeholder:"请选择",class:"select",options:i.parentData,props:{checkStrictly:!0},clearable:i.clearable,onChange:l.handleCountryChange},null,8,["modelValue","options","clearable","onChange"])]),_:1})]),_:1},8,["model","rules"]),Object(n["createElementVNode"])("div",a,[Object(n["createVNode"])(m,{type:"primary",size:"small",onClick:l.save},{default:Object(n["withCtx"])(()=>t[7]||(t[7]=[Object(n["createTextVNode"])("确 定")])),_:1},8,["onClick"]),Object(n["createVNode"])(m,{size:"small",onClick:l.close},{default:Object(n["withCtx"])(()=>t[8]||(t[8]=[Object(n["createTextVNode"])("取 消")])),_:1},8,["onClick"])])]),_:1},8,["modelValue","title","onClose"])}var i=o("1f27"),l={name:"MenuEdit",data(){return{form:{id:"",title:"",name:"",path:"",component:"",icon:"",parentId:0},rules:{title:[{required:!0,trigger:"blur",message:"请输入菜单名称"}],path:[{required:!0,trigger:"blur",message:"请输入菜单路径"}]},clearable:!0,menuId:"",parentData:[],title:"",dialogFormVisible:!1,diffData:{},ruleForm:[]}},created(){this.getParentData()},methods:{async getParentData(){const{data:e}=await Object(i["getCustom"])();this.parentData=e},handleCountryChange(e){if(e){const t=e.length-1;this.form.parentId=e[t]}else this.form.parentId=0},showEdit(e){e?(this.title="编辑",this.menuId=e.id,this.form=Object.assign({},e),this.ruleForm=Object.assign({},e),this.form.title=e.name):this.title="添加",this.dialogFormVisible=!0},close(){this.$refs["form"].resetFields(),this.form=this.$options.data().form,this.dialogFormVisible=!1,this.$emit("fetch-data")},getDiffData(){this.diffData={},Object.keys(this.form).forEach(e=>{this.form[e]!=this.ruleForm[e]&&(this.diffData[e]=this.form[e])})},save(){this.$refs["form"].validate(async e=>{if(!e)return!1;if(this.form.name=this.form.title,this.form.id){if(this.getDiffData(),0!=Object.keys(this.diffData).length){this.diffData.id=this.form.id;const{msg:e}=await Object(i["doEdit"])(this.diffData);this.$notify({title:e,type:"success"})}}else{const{msg:e}=await Object(i["doAdd"])(this.form);this.$notify({title:e,type:"success"})}this.$refs["form"].resetFields(),this.dialogFormVisible=!1,this.$parent.fetchData()})}}},s=(o("9a69"),o("d959")),c=o.n(s);const d=c()(l,[["render",r]]);t["default"]=d},4904:function(e,t,o){"use strict";o.r(t);var n=o("f2bf");const a={class:"manage-container"};function r(e,t,o,r,i,l){const s=Object(n["resolveComponent"])("vab-query-form"),c=Object(n["resolveComponent"])("el-input"),d=Object(n["resolveComponent"])("el-form-item"),u=Object(n["resolveComponent"])("el-option"),m=Object(n["resolveComponent"])("el-select"),h=Object(n["resolveComponent"])("el-form"),p=Object(n["resolveComponent"])("el-checkbox"),b=Object(n["resolveComponent"])("el-button");return Object(n["openBlock"])(),Object(n["createElementBlock"])("div",a,[Object(n["createVNode"])(s,null,{default:Object(n["withCtx"])(()=>t[13]||(t[13]=[Object(n["createElementVNode"])("h1",{class:"tigger-title"},"添加触发器信息",-1)])),_:1}),Object(n["createVNode"])(h,{ref:"form",model:e.form,"label-width":"100px","label-position":"left"},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(d,{label:e.$t("trigger.cfqmc")},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(c,{modelValue:i.input,"onUpdate:modelValue":t[0]||(t[0]=e=>i.input=e),placeholder:"请输入内容"},null,8,["modelValue"])]),_:1},8,["label"]),Object(n["createVNode"])(d,{label:e.$t("maintenance.sb")},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(m,{modelValue:i.value1,"onUpdate:modelValue":t[1]||(t[1]=e=>i.value1=e),placeholder:"请选择项目"},{default:Object(n["withCtx"])(()=>[(Object(n["openBlock"])(!0),Object(n["createElementBlock"])(n["Fragment"],null,Object(n["renderList"])(i.options,e=>(Object(n["openBlock"])(),Object(n["createBlock"])(u,{key:e.value,label:e.label,value:e.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1},8,["label"]),Object(n["createVNode"])(d,{label:e.$t("dataEnquiry.cgq")},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(m,{modelValue:i.value2,"onUpdate:modelValue":t[2]||(t[2]=e=>i.value2=e),placeholder:"请选择设备"},{default:Object(n["withCtx"])(()=>[(Object(n["openBlock"])(!0),Object(n["createElementBlock"])(n["Fragment"],null,Object(n["renderList"])(i.options,e=>(Object(n["openBlock"])(),Object(n["createBlock"])(u,{key:e.value,label:e.label,value:e.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1},8,["label"])]),_:1},8,["model"]),Object(n["createVNode"])(s,null,{default:Object(n["withCtx"])(()=>t[14]||(t[14]=[Object(n["createElementVNode"])("h1",{class:"tigger-title"},"触发条件",-1)])),_:1}),Object(n["createVNode"])(h,{ref:"form",model:e.form,"label-width":"100px","label-position":"left"},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(d,{label:e.$t("dataEnquiry.cgq")},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(m,{modelValue:i.value3,"onUpdate:modelValue":t[3]||(t[3]=e=>i.value3=e),placeholder:"请选择触发器类型"},{default:Object(n["withCtx"])(()=>[(Object(n["openBlock"])(!0),Object(n["createElementBlock"])(n["Fragment"],null,Object(n["renderList"])(i.options,e=>(Object(n["openBlock"])(),Object(n["createBlock"])(u,{key:e.value,label:e.label,value:e.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1},8,["label"]),Object(n["createVNode"])(d,{label:"动作类型"},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(p,{modelValue:i.checked1,"onUpdate:modelValue":t[4]||(t[4]=e=>i.checked1=e),label:"控制谁被",border:""},null,8,["modelValue"]),Object(n["createVNode"])(p,{modelValue:i.checked2,"onUpdate:modelValue":t[5]||(t[5]=e=>i.checked2=e),label:"微信通知",border:""},null,8,["modelValue"]),Object(n["createVNode"])(p,{modelValue:i.checked3,"onUpdate:modelValue":t[6]||(t[6]=e=>i.checked3=e),label:"短信通知",border:""},null,8,["modelValue"]),Object(n["createVNode"])(p,{modelValue:i.checked4,"onUpdate:modelValue":t[7]||(t[7]=e=>i.checked4=e),label:"邮件通知",border:""},null,8,["modelValue"]),Object(n["createVNode"])(p,{modelValue:i.checked5,"onUpdate:modelValue":t[8]||(t[8]=e=>i.checked5=e),label:"语音通知",border:""},null,8,["modelValue"])]),_:1}),Object(n["createVNode"])(d,{label:"生成报警信息"},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(m,{modelValue:i.value4,"onUpdate:modelValue":t[9]||(t[9]=e=>i.value4=e),placeholder:"请选择"},{default:Object(n["withCtx"])(()=>[(Object(n["openBlock"])(!0),Object(n["createElementBlock"])(n["Fragment"],null,Object(n["renderList"])(i.options,e=>(Object(n["openBlock"])(),Object(n["createBlock"])(u,{key:e.value,label:e.label,value:e.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),Object(n["createVNode"])(d,{label:"触发循环间隔"},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(c,{modelValue:i.input,"onUpdate:modelValue":t[10]||(t[10]=e=>i.input=e),placeholder:"单位秒 0不循环触发"},null,8,["modelValue"])]),_:1}),Object(n["createVNode"])(d,{label:"是否开启"},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(m,{modelValue:i.value5,"onUpdate:modelValue":t[11]||(t[11]=e=>i.value5=e),placeholder:"请选择"},{default:Object(n["withCtx"])(()=>[(Object(n["openBlock"])(!0),Object(n["createElementBlock"])(n["Fragment"],null,Object(n["renderList"])(i.options,e=>(Object(n["openBlock"])(),Object(n["createBlock"])(u,{key:e.value,label:e.label,value:e.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),Object(n["createVNode"])(d,{label:"报警恢复触发"},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(m,{modelValue:i.value6,"onUpdate:modelValue":t[12]||(t[12]=e=>i.value6=e),placeholder:"请选择"},{default:Object(n["withCtx"])(()=>[(Object(n["openBlock"])(!0),Object(n["createElementBlock"])(n["Fragment"],null,Object(n["renderList"])(i.options,e=>(Object(n["openBlock"])(),Object(n["createBlock"])(u,{key:e.value,label:e.label,value:e.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1})]),_:1},8,["model"]),Object(n["createVNode"])(s,null,{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(b,{type:"primary"},{default:Object(n["withCtx"])(()=>t[15]||(t[15]=[Object(n["createTextVNode"])("保存")])),_:1}),Object(n["createVNode"])(b,{type:"primary",plain:""},{default:Object(n["withCtx"])(()=>t[16]||(t[16]=[Object(n["createTextVNode"])("返回")])),_:1})]),_:1})])}var i={name:"Trigger",data(){return{input:"",value1:"",value2:"",value3:"",value4:"",value5:"",value6:"",checked1:!1,checked2:!1,checked3:!1,checked4:!1,checked5:!1,options:[{value:"选项1",label:"所有设备"},{value:"选项2",label:"已连接设备"},{value:"选项3",label:"未连接设备"},{value:"选项4",label:"已禁用设备"},{value:"选项5",label:"已删除设备"}]}}},l=(o("ac68"),o("d959")),s=o.n(l);const c=s()(i,[["render",r],["__scopeId","data-v-3d524c89"]]);t["default"]=c},4986:function(e,t,o){},"49de":function(e,t,o){"use strict";o.r(t),o.d(t,"getList",(function(){return a})),o.d(t,"doAdd",(function(){return r})),o.d(t,"doDelete",(function(){return i}));var n=o("b775");o("7d92");function a(e){let t="?page="+e.page+"&size="+e.size;return""!=e.name&&(t+="&name="+e.name),Object(n["default"])({url:"/material/icon/list"+t,method:"get",data:e})}function r(e){return Object(n["default"])({url:"/material/icon/insert",method:"post",data:e})}function i(e){return Object(n["default"])({url:"/material/icon/remove",method:"post",data:e})}},"49e6":function(e,t,o){"use strict";o.r(t);var n=o("f2bf");const a={class:"dialog-footer"};function r(e,t,o,r,i,l){const s=Object(n["resolveComponent"])("el-option"),c=Object(n["resolveComponent"])("el-select"),d=Object(n["resolveComponent"])("el-form-item"),u=Object(n["resolveComponent"])("el-form"),m=Object(n["resolveComponent"])("el-button"),h=Object(n["resolveComponent"])("el-dialog");return Object(n["openBlock"])(),Object(n["createBlock"])(h,{modelValue:i.dialogFormVisible,"onUpdate:modelValue":t[1]||(t[1]=e=>i.dialogFormVisible=e),title:i.title,width:"500px",onClose:l.close},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(u,{ref:"form",model:i.form,rules:i.rules,"label-width":"80px","label-position":"left"},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(d,{label:"报警用户",prop:"userIds"},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(c,{modelValue:i.form.userIds,"onUpdate:modelValue":t[0]||(t[0]=e=>i.form.userIds=e),size:"small",filterable:"",multiple:"",placeholder:"选择报警用户"},{default:Object(n["withCtx"])(()=>[(Object(n["openBlock"])(!0),Object(n["createElementBlock"])(n["Fragment"],null,Object(n["renderList"])(i.areaData,e=>(Object(n["openBlock"])(),Object(n["createBlock"])(s,{key:e.id,label:e.name,value:e.id},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1})]),_:1},8,["model","rules"]),Object(n["createElementVNode"])("div",a,[Object(n["createVNode"])(m,{type:"primary",size:"small",onClick:l.save},{default:Object(n["withCtx"])(()=>t[2]||(t[2]=[Object(n["createTextVNode"])("确 定")])),_:1},8,["onClick"]),Object(n["createVNode"])(m,{size:"small",onClick:l.close},{default:Object(n["withCtx"])(()=>t[3]||(t[3]=[Object(n["createTextVNode"])("取 消")])),_:1},8,["onClick"])])]),_:1},8,["modelValue","title","onClose"])}var i=o("24d2"),l={data(){return{form:{userIds:"",projectId:""},areaData:[],rules:{userIds:[{required:!0,trigger:"blur",message:"请选择报警用户"}]},title:"",dialogFormVisible:!1}},created(){},methods:{handleCountryChange(e){if(e){const t=e.length-1;this.form.parentId=e[t]}else this.form.parentId=0},async getAlarmUser(){const{data:e}=await Object(i["getAlarmUser"])(this.form);this.areaData=e.all,this.form.userIds=e.select},showEdit(e){this.title="绑定报警用户",this.form.projectId=e,this.dialogFormVisible=!0,this.getAlarmUser()},close(){this.$refs["form"].resetFields(),this.form=this.$options.data().form,this.dialogFormVisible=!1,this.$emit("fetch-data")},save(){this.$refs["form"].validate(async e=>{if(!e)return!1;{this.form.name=this.form.title;const{msg:e}=await Object(i["addAlarmUsers"])(this.form);this.$notify({title:e,type:"success"}),this.$refs["form"].resetFields(),this.dialogFormVisible=!1,this.$emit("RefreshGroup",this.form.projectId)}})}}},s=o("d959"),c=o.n(s);const d=c()(l,[["render",r]]);t["default"]=d},"4a11":function(e,t,o){"use strict";o.r(t);var n=o("f2bf");const a={class:"manage-container"},r={class:"manage-input"},i={class:"manage-input"},l={class:"manage-button"};function s(e,t,o,s,c,d){const u=Object(n["resolveComponent"])("el-input"),m=Object(n["resolveComponent"])("el-form-item"),h=Object(n["resolveComponent"])("el-date-picker"),p=Object(n["resolveComponent"])("vab-query-form"),b=Object(n["resolveComponent"])("el-form"),g=Object(n["resolveComponent"])("el-option"),f=Object(n["resolveComponent"])("el-select"),v=Object(n["resolveComponent"])("el-button"),w=Object(n["resolveComponent"])("el-table-column"),k=Object(n["resolveComponent"])("el-tag"),C=Object(n["resolveComponent"])("el-table"),y=Object(n["resolveComponent"])("el-pagination"),O=Object(n["resolveComponent"])("to-task"),j=Object(n["resolveDirective"])("loading");return Object(n["openBlock"])(),Object(n["createElementBlock"])("div",a,[Object(n["createElementVNode"])("div",r,[Object(n["createVNode"])(b,{ref:"queryForm",model:c.queryForm,"label-width":"80px"},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(p,null,{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(m,{width:"100",prop:"deviceName",label:e.$t("dataEnquiry.zdmc")},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(u,{modelValue:c.queryForm.deviceName,"onUpdate:modelValue":t[0]||(t[0]=e=>c.queryForm.deviceName=e),size:"small",placeholder:e.$t("dataEnquiry.qsrzdmc")},null,8,["modelValue","placeholder"])]),_:1},8,["label"]),Object(n["createVNode"])(m,{width:"100",prop:"handlerName",label:e.$t("task.clr")},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(u,{modelValue:c.queryForm.handlerName,"onUpdate:modelValue":t[1]||(t[1]=e=>c.queryForm.handlerName=e),size:"small",placeholder:"请输入处理人"},null,8,["modelValue"])]),_:1},8,["label"]),Object(n["createVNode"])(m,{width:"100",prop:"time",label:e.$t("defalult.rq")},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(h,{modelValue:c.queryForm.date,"onUpdate:modelValue":t[2]||(t[2]=e=>c.queryForm.date=e),size:"small",type:"daterange",align:"right","start-placeholder":"开始时间","end-placeholder":"结束时间",onChange:d.changeTime},null,8,["modelValue","onChange"])]),_:1},8,["label"])]),_:1})]),_:1},8,["model"])]),Object(n["createElementVNode"])("div",i,[Object(n["createVNode"])(b,{ref:"queryForm",model:c.queryForm,"label-width":"80px"},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(p,null,{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(m,{width:"100",prop:"alarmLevel",label:"告警级别"},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(f,{modelValue:c.queryForm.alarmLevel,"onUpdate:modelValue":t[3]||(t[3]=e=>c.queryForm.alarmLevel=e),size:"small",placeholder:"告警级别"},{default:Object(n["withCtx"])(()=>[(Object(n["openBlock"])(!0),Object(n["createElementBlock"])(n["Fragment"],null,Object(n["renderList"])(c.levelData,e=>(Object(n["openBlock"])(),Object(n["createBlock"])(g,{key:e.dataCode,label:e.dataValue,value:e.dataCode},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),Object(n["createVNode"])(m,{width:"100",prop:"alarmCategory",label:"告警类别"},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(f,{modelValue:c.queryForm.alarmCategory,"onUpdate:modelValue":t[4]||(t[4]=e=>c.queryForm.alarmCategory=e),size:"small",placeholder:"告警类别"},{default:Object(n["withCtx"])(()=>[(Object(n["openBlock"])(!0),Object(n["createElementBlock"])(n["Fragment"],null,Object(n["renderList"])(c.categoryData,e=>(Object(n["openBlock"])(),Object(n["createBlock"])(g,{key:e.dataCode,label:e.dataValue,value:e.dataCode},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),Object(n["createVNode"])(m,{width:"100",prop:"date",label:e.$t("dataEnquiry.zt")},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(f,{modelValue:c.queryForm.status,"onUpdate:modelValue":t[5]||(t[5]=e=>c.queryForm.status=e),size:"small",placeholder:"状态"},{default:Object(n["withCtx"])(()=>[(Object(n["openBlock"])(!0),Object(n["createElementBlock"])(n["Fragment"],null,Object(n["renderList"])(c.statusData,e=>(Object(n["openBlock"])(),Object(n["createBlock"])(g,{key:e.value,label:e.label,value:e.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1},8,["label"])]),_:1})]),_:1},8,["model"])]),Object(n["createElementVNode"])("div",l,[Object(n["createVNode"])(v,{size:"small",onClick:t[6]||(t[6]=e=>d.resetForm())},{default:Object(n["withCtx"])(()=>[Object(n["createTextVNode"])(Object(n["toDisplayString"])(e.$t("defalult.chongz")),1)]),_:1}),Object(n["createVNode"])(v,{type:"primary",size:"small",onClick:d.search},{default:Object(n["withCtx"])(()=>[Object(n["createTextVNode"])(Object(n["toDisplayString"])(e.$t("defalult.cx")),1)]),_:1},8,["onClick"]),Object(n["createVNode"])(v,{type:"primary",size:"small",onClick:d.save},{default:Object(n["withCtx"])(()=>[Object(n["createTextVNode"])(Object(n["toDisplayString"])(e.$t("defalult.tj")),1)]),_:1},8,["onClick"]),Object(n["createVNode"])(v,{type:"primary",size:"small",onClick:d.exportData},{default:Object(n["withCtx"])(()=>[Object(n["createTextVNode"])(Object(n["toDisplayString"])(e.$t("defalult.dc")),1)]),_:1},8,["onClick"])]),Object(n["withDirectives"])((Object(n["openBlock"])(),Object(n["createBlock"])(C,{data:c.tableData,stripe:"",border:"",style:{width:"100%"}},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(w,{fixed:"",prop:"deviceName",label:e.$t("dataEnquiry.zdmc"),width:"150",align:"center"},null,8,["label"]),Object(n["createVNode"])(w,{fixed:"",prop:"sensorName",label:e.$t("sensor.cgqmc"),width:"150",align:"center"},null,8,["label"]),Object(n["createVNode"])(w,{prop:"alarmTime",label:"报警时间",width:"200",align:"center"}),Object(n["createVNode"])(w,{prop:"alarmLevel",label:e.$t("alarm.bjjb"),width:"200",align:"center"},null,8,["label"]),Object(n["createVNode"])(w,{prop:"alarmCategory",label:"报警类别",width:"200",align:"center"}),Object(n["createVNode"])(w,{prop:"alarmContent",label:"告警内容",width:"300",align:"center"}),Object(n["createVNode"])(w,{prop:"handlerName",label:e.$t("task.clr"),width:"120",align:"center"},null,8,["label"]),Object(n["createVNode"])(w,{prop:"status",label:e.$t("dataEnquiry.zt"),width:"120",align:"center"},{default:Object(n["withCtx"])(({row:e})=>["已派工"==e.status?(Object(n["openBlock"])(),Object(n["createBlock"])(k,{key:"已派工",effect:"dark",type:"success",size:"mini"},{default:Object(n["withCtx"])(()=>t[7]||(t[7]=[Object(n["createTextVNode"])(" 已派工 ")])),_:1})):Object(n["createCommentVNode"])("",!0),"未派工"==e.status?(Object(n["openBlock"])(),Object(n["createBlock"])(k,{key:"未派工",effect:"dark",type:"danger",size:"mini"},{default:Object(n["withCtx"])(()=>t[8]||(t[8]=[Object(n["createTextVNode"])(" 未派工 ")])),_:1})):Object(n["createCommentVNode"])("",!0)]),_:1},8,["label"]),Object(n["createVNode"])(w,{prop:"remark",label:e.$t("alarm.bz"),width:"120",align:"center"},null,8,["label"]),Object(n["createVNode"])(w,{fixed:"right",label:e.$t("defalult.cz"),align:"center"},{default:Object(n["withCtx"])(({row:o})=>[Object(n["createVNode"])(v,{type:"text",onClick:e=>d.handleDelete(o)},{default:Object(n["withCtx"])(()=>[Object(n["createTextVNode"])(Object(n["toDisplayString"])(e.$t("defalult.sc")),1)]),_:2},1032,["onClick"]),"未派工"==o.status?(Object(n["openBlock"])(),Object(n["createBlock"])(v,{key:0,type:"text",onClick:e=>d.handleTask(o)},{default:Object(n["withCtx"])(()=>t[9]||(t[9]=[Object(n["createTextVNode"])(" 转工单 ")])),_:2},1032,["onClick"])):Object(n["createCommentVNode"])("",!0)]),_:1},8,["label"])]),_:1},8,["data"])),[[j,c.listLoading]]),Object(n["createVNode"])(y,{background:c.background,"current-page":c.queryForm.page,layout:c.layout,"page-size":c.queryForm.size,total:c.total,style:{"text-align":"right"},onCurrentChange:d.handleCurrentChange,onSizeChange:d.handleSizeChange},null,8,["background","current-page","layout","page-size","total","onCurrentChange","onSizeChange"]),Object(n["createVNode"])(O,{ref:"toTask"},null,512)])}var c=o("5f99"),d=o("9e04"),u=o("2c21"),m=o("3038"),h={components:{toTask:u["default"]},data(){return{tableData:[],lazy:!0,layout:"total, sizes, prev, pager, next, jumper",total:0,background:!0,listLoading:!1,elementLoadingText:"正在加载...",levelData:[],categoryData:[],statusData:[{value:3,label:"all"},{value:0,label:"未派工"},{value:1,label:"已派工"}],queryForm:{page:1,size:20,projectId:"",deviceName:"",handlerName:"",alarmLevel:"",alarmCategory:"",date:"",start:"",end:"",status:3}}},created(){},methods:{showData(){this.setDefaultTime(),this.getLevel(),this.getCategory(),this.fetchData()},changeTime(){this.queryForm.start=Object(c["getDate"])(this.queryForm.date[0]),this.queryForm.end=Object(c["getDate"])(this.queryForm.date[1])},setDefaultTime(){this.queryForm.date=Object(c["getPastTime"])(1),this.queryForm.start=Object(c["getDate"])(this.queryForm.date[0]),this.queryForm.end=Object(c["getDate"])(this.queryForm.date[1])},async fetchData(){this.listLoading=!0;const{data:e}=await Object(d["getAlarm"])(this.queryForm);this.tableData=e.items,this.total=e.total,setTimeout(()=>{this.listLoading=!1},500)},save(){this.$refs["add"].showEdit()},async getLevel(){const{data:e}=await Object(d["alarmLevelDict"])();this.levelData=e},async getCategory(){const{data:e}=await Object(d["alarmCategoryDict"])();this.categoryData=e},async exportData(){const e=await Object(d["alarmExport"])(this.queryForm);m["default"].downloadFile(e,{fileName:"报警记录.xls"})},search(){this.fetchData()},resetForm(){this.$refs.queryForm.resetFields()},async handleTask(e){this.$refs["tack"].showEdit(e)},deletes(e){const t=this;this.$confirm("你确定要删除当前项吗?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(()=>{const{msg:o}=Object(d["doDelete"])(e);this.$message({type:"success",message:void 0==o?"删除成功":o}),setTimeout((function(){t.fetchData()}),1e3)}).catch(()=>{this.$message({type:"info",message:"已取消删除"})})},handleDelete(e){const t=this;t.deletes([e.id])},handleQuery(){this.queryForm.page=1,this.fetchData()},handleSizeChange(e){this.queryForm.size=e,this.fetchData()},handleCurrentChange(e){this.queryForm.page=e,this.fetchData()}}},p=(o("decf"),o("d959")),b=o.n(p);const g=b()(h,[["render",s],["__scopeId","data-v-58d301a8"]]);t["default"]=g},"4b0c":function(e,t,o){},"4b10":function(e,t,o){e.exports={"menu-color":"hsla(0,0%,27%,.95)","menu-color-active":"hsla(208,100%,55%,.95)","menu-background":"#fff","gallery-second-menu-background":"#fff"}},"4b2b":function(e,t,o){"use strict";o.r(t);var n=o("f2bf");const a={class:"manage-container"},r={class:"manage-wrap"},i={class:"manage-input"},l={class:"manage-button"};function s(e,t,o,s,c,d){const u=Object(n["resolveComponent"])("el-input"),m=Object(n["resolveComponent"])("el-form-item"),h=Object(n["resolveComponent"])("el-date-picker"),p=Object(n["resolveComponent"])("vab-query-form"),b=Object(n["resolveComponent"])("el-form"),g=Object(n["resolveComponent"])("el-button"),f=Object(n["resolveComponent"])("el-table-column"),v=Object(n["resolveComponent"])("el-table"),w=Object(n["resolveComponent"])("el-pagination"),k=Object(n["resolveDirective"])("loading");return Object(n["openBlock"])(),Object(n["createElementBlock"])("div",a,[Object(n["createElementVNode"])("div",r,[Object(n["createElementVNode"])("div",i,[Object(n["createVNode"])(b,{ref:"form",model:c.queryForm,"label-width":"80px"},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(p,null,{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(m,{width:"100",prop:"deviceName",label:e.$t("project.xmmc")},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(u,{modelValue:c.queryForm.projectName,"onUpdate:modelValue":t[0]||(t[0]=e=>c.queryForm.projectName=e),size:"small",placeholder:"请输入项目名称"},null,8,["modelValue"])]),_:1},8,["label"]),Object(n["createVNode"])(m,{width:"100",prop:"month",label:e.$t("defalult.sj")},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(h,{modelValue:c.queryForm.month,"onUpdate:modelValue":t[1]||(t[1]=e=>c.queryForm.month=e),size:"small",type:"month",placeholder:e.$t("defalult.xzrq"),onChange:d.standardToTime},null,8,["modelValue","placeholder","onChange"])]),_:1},8,["label"])]),_:1})]),_:1},8,["model"])]),Object(n["createElementVNode"])("div",l,[Object(n["createVNode"])(g,{size:"small",onClick:t[2]||(t[2]=e=>d.resetForm())},{default:Object(n["withCtx"])(()=>[Object(n["createTextVNode"])(Object(n["toDisplayString"])(e.$t("defalult.chongz")),1)]),_:1}),Object(n["createVNode"])(g,{type:"primary",size:"small",onClick:d.search},{default:Object(n["withCtx"])(()=>[Object(n["createTextVNode"])(Object(n["toDisplayString"])(e.$t("defalult.cx")),1)]),_:1},8,["onClick"]),Object(n["createVNode"])(g,{type:"primary",size:"small",onClick:d.exportData},{default:Object(n["withCtx"])(()=>[Object(n["createTextVNode"])(Object(n["toDisplayString"])(e.$t("defalult.dc")),1)]),_:1},8,["onClick"])])]),Object(n["withDirectives"])((Object(n["openBlock"])(),Object(n["createBlock"])(v,{ref:"multipleTable",data:c.reportData,border:"","tooltip-effect":"light",style:{width:"100%"}},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(f,{label:"月",prop:"month",align:"center",width:"120"}),Object(n["createVNode"])(f,{label:e.$t("project.xmmc"),prop:"projectName",align:"center"},null,8,["label"]),Object(n["createVNode"])(f,{label:"站点总数",prop:"deviceCount",align:"center",width:"100"}),Object(n["createVNode"])(f,{label:"故障次数",prop:"deviceFaultNum",align:"center",width:"100"}),Object(n["createVNode"])(f,{label:"总运行时长",prop:"totalDuration",align:"center",width:"120"}),Object(n["createVNode"])(f,{label:"本月运行时长",prop:"monthDuration",align:"center",width:"120"}),Object(n["createVNode"])(f,{label:"运行率",prop:"runRatio",align:"center",width:"120"}),Object(n["createVNode"])(f,{label:"故障率",prop:"faultRatio",align:"center",width:"120"})]),_:1},8,["data"])),[[k,c.listLoading]]),Object(n["createVNode"])(w,{background:c.background,"current-page":c.queryForm.page,layout:c.layout,"page-size":c.queryForm.size,total:c.total,style:{"text-align":"right"},onCurrentChange:d.handleCurrentChange,onSizeChange:d.handleSizeChange},null,8,["background","current-page","layout","page-size","total","onCurrentChange","onSizeChange"])])}var c=o("94b0"),d=o("3038"),u={name:"Index",components:{},data(){return{reportData:[],lazy:!0,activeName:"first",layout:"total, sizes, prev, pager, next, jumper",total:0,input:"",textarea:"",background:!0,listLoading:!0,elementLoadingText:"正在加载...",queryForm:{page:1,size:20,month:"",projectId:"",projectName:""}}},computed:{height(){return 500}},methods:{getDate(e=""){var t=new Date;""!=e&&(t=new Date(e));const o=t.getFullYear();let n=t.getMonth();return n+=1,n=n.toString().padStart(2,"0"),`${o}-${n}`},standardToTime(){this.queryForm.month=this.getDate(this.queryForm.month)},setDefaultTime(){this.queryForm.month=this.getDate()},async exportData(){const e=await Object(c["deviceMonthExport"])(this.queryForm);d["default"].downloadFile(e,{fileName:"电量月报.xls"})},async fetchData(){this.listLoading=!0;const{data:e}=await Object(c["deviceMonth"])(this.queryForm);this.reportData=e.items,this.total=e.total,setTimeout(()=>{this.listLoading=!1},500)},showData(){this.setDefaultTime(),this.fetchData()},search(){this.fetchData()},resetForm(){this.$refs.queryForm.resetFields()},handleAdd(){this.$refs["edit"].showEdit()},handleEdit(e){this.$refs["edit"].showEdit(e)},handleQuery(){this.queryForm.page=1,this.fetchData()},handleSizeChange(e){this.queryForm.size=e,this.fetchData()},handleCurrentChange(e){this.queryForm.page=e,this.fetchData()}}},m=(o("5fdc"),o("d959")),h=o.n(m);const p=h()(u,[["render",s],["__scopeId","data-v-8a337b9a"]]);t["default"]=p},"4b43":function(e,t,o){e.exports={"menu-color":"hsla(0,0%,27%,.95)","menu-color-active":"hsla(208,100%,55%,.95)","menu-background":"#fff","gallery-second-menu-background":"#fff"}},"4b70":function(e,t,o){},"4b95":function(e,t,o){"use strict";o.r(t);var n=o("f2bf");const a=["id"];function r(e,t,o,r,i,l){const s=Object(n["resolveComponent"])("el-card"),c=Object(n["resolveComponent"])("el-dialog"),d=Object(n["resolveDirective"])("loading");return Object(n["openBlock"])(),Object(n["createElementBlock"])("div",null,[Object(n["createVNode"])(c,{modelValue:i.dialogFormVisible,"onUpdate:modelValue":t[0]||(t[0]=e=>i.dialogFormVisible=e),title:i.title,width:"1500px",height:"400px",onClose:e.close},{default:Object(n["withCtx"])(()=>[Object(n["withDirectives"])((Object(n["openBlock"])(),Object(n["createBlock"])(s,{style:{height:"400px"}},{default:Object(n["withCtx"])(()=>[Object(n["createElementVNode"])("div",{id:i.divId,ref:"echarts",style:{height:"380px"}},null,8,a)]),_:1})),[[d,i.loading]])]),_:1},8,["modelValue","title","onClose"])])}o("14d9");var i=o("313e"),l=o("aa98"),s={name:"Watergraph",data(){return{title:"曲线图",dialogFormVisible:!1,chartData:[],loading:!0,divId:"waterChar"}},created(){},methods:{showData(e,t){this.divId=t,this.loading=!0,this.dialogFormVisible=!0,this.chartData=[],this.chartData=JSON.stringify(e),this.title=e["站点名称"]+" - 曲线图",setTimeout(()=>{this.chartIni(),this.loading=!1},3e3)},chartIni(){var e,t=i["a"](document.getElementById(""+this.divId)),o=JSON.parse(this.chartData),n=[],a=[];for(const i in o)"站点名称"!==i&&(n.push(o[i]),a.push([i,o[i]]));var r=Math.min.apply(null,n),l=Math.max.apply(null,n);e={tooltip:{trigger:"axis",position:function(e){return[e[0],"10%"]}},title:{left:"center",text:"折线图"},toolbox:{feature:{dataZoom:{yAxisIndex:"none"},restore:{},saveAsImage:{}}},xAxis:{type:"time",boundaryGap:!1},yAxis:{type:"value",boundaryGap:[0,"100%"],min:r,max:l},dataZoom:[{type:"inside",start:0,end:20},{start:0,end:20}],series:[{name:"数据",type:"line",smooth:!0,symbol:"none",areaStyle:{},data:a}]},e&&t.setOption(e)},async getReportHistory(){var e,t=i["a"](document.getElementById("main4"));const{data:o}=await Object(l["getReportHistoryData"])(this.queryForm);var n=[];for(let i=0;i<o.length;i++)n.push(o[i][1]);var a=Math.min.apply(null,n),r=Math.max.apply(null,n);e={tooltip:{trigger:"axis",position:function(e){return[e[0],"10%"]}},title:{left:"center",text:"折线图"},toolbox:{feature:{dataZoom:{yAxisIndex:"none"},restore:{},saveAsImage:{}}},xAxis:{type:"time",boundaryGap:!1},yAxis:{type:"value",boundaryGap:[0,"100%"],min:a,max:r},dataZoom:[{type:"inside",start:0,end:20},{start:0,end:20}],series:[{name:"数据",type:"line",smooth:!0,symbol:"none",areaStyle:{},data:o}]},e&&t.setOption(e)}}},c=o("d959"),d=o.n(c);const u=d()(s,[["render",r]]);t["default"]=u},"4bf8":function(e,t,o){"use strict";o.r(t),o.d(t,"getList",(function(){return a})),o.d(t,"getTrafficBySim",(function(){return r})),o.d(t,"simBindDevice",(function(){return i})),o.d(t,"getSimTotal",(function(){return l})),o.d(t,"rankCurrentMonth",(function(){return s})),o.d(t,"ldDeviceByProjectId",(function(){return c}));var n=o("b775");function a(e){let t="?pageIndex="+e.page+"&size="+e.size;return""!=e.iccid&&void 0!=e.iccid&&(t+="&iccid="+e.iccid),""!=e.status&&void 0!=e.status&&(t+="&status="+e.status),Object(n["default"])({url:"/telcom/api/getSimList"+t,method:"get",data:e})}function r(e){const t="?accessNum="+e.accessNum+"&billingCycleID="+e.billingCycleID;return Object(n["default"])({url:"/telcom/api/getTrafficBySim"+t,method:"get",data:e})}function i(e){const t="?accessNum="+e.accessNum+"&deviceCode="+e.deviceCode;return Object(n["default"])({url:"/telcom/api/simBindDevice"+t,method:"post",data:e})}function l(e){return Object(n["default"])({url:"/telcom/api/getSimTotal",method:"get",data:e})}function s(e){return Object(n["default"])({url:"/telcom/api/rankCurrentMonth",method:"post",data:e})}function c(e){return Object(n["default"])({url:"/telcom/api/ldDeviceByProjectId?projectId="+e.projectId,method:"get",data:e})}},"4c03":function(e,t,o){"use strict";o.r(t);var n=o("f2bf");const a={class:"manage-container"},r={class:"el-list"},i={class:"el-item"};function l(e,t,o,l,s,c){const d=Object(n["resolveComponent"])("el-button"),u=Object(n["resolveComponent"])("el-checkbox"),m=Object(n["resolveComponent"])("vab-query-form-left-panel"),h=Object(n["resolveComponent"])("vab-query-form-right-panel"),p=Object(n["resolveComponent"])("vab-query-form"),b=Object(n["resolveComponent"])("el-pagination");return Object(n["openBlock"])(),Object(n["createElementBlock"])("div",a,[Object(n["createVNode"])(d,{type:"primary"},{default:Object(n["withCtx"])(()=>t[2]||(t[2]=[Object(n["createTextVNode"])("裁剪上传")])),_:1}),Object(n["createVNode"])(d,{type:"primary"},{default:Object(n["withCtx"])(()=>t[3]||(t[3]=[Object(n["createTextVNode"])("原图上传")])),_:1}),Object(n["createElementVNode"])("div",r,[Object(n["createElementVNode"])("div",i,[t[4]||(t[4]=Object(n["createTextVNode"])(" 这是一段内容 ")),Object(n["createVNode"])(p,null,{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(m,null,{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(u,{modelValue:s.checkedform,"onUpdate:modelValue":t[0]||(t[0]=e=>s.checkedform=e)},null,8,["modelValue"])]),_:1}),Object(n["createVNode"])(h,null,{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(d,{type:"text",icon:"el-icon-view"})]),_:1})]),_:1})])]),Object(n["createVNode"])(p,null,{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(m,null,{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(u,{modelValue:s.checked,"onUpdate:modelValue":t[1]||(t[1]=e=>s.checked=e)},null,8,["modelValue"]),Object(n["createVNode"])(d,null,{default:Object(n["withCtx"])(()=>t[5]||(t[5]=[Object(n["createTextVNode"])("全部显示")])),_:1}),Object(n["createVNode"])(d,null,{default:Object(n["withCtx"])(()=>t[6]||(t[6]=[Object(n["createTextVNode"])("全部隐藏")])),_:1}),Object(n["createVNode"])(d,null,{default:Object(n["withCtx"])(()=>t[7]||(t[7]=[Object(n["createTextVNode"])("全部删除")])),_:1})]),_:1}),Object(n["createVNode"])(h,null,{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(b,{"current-page":s.currentPage4,"page-sizes":[100,200,300,400],"page-size":100,layout:"total, sizes, prev, pager, next, jumper",total:400,onSizeChange:c.handleSizeChange,onCurrentChange:c.handleCurrentChange},null,8,["current-page","onSizeChange","onCurrentChange"])]),_:1})]),_:1})])}var s={name:"Setting",data(){return{checked:!1,checkedform:!1,currentPage1:5,currentPage2:5,currentPage3:5,currentPage4:4}},methods:{handleSizeChange(e){console.log(`每页 ${e} 条`)},handleCurrentChange(e){console.log("当前页: "+e)}}},c=(o("0add"),o("d959")),d=o.n(c);const u=d()(s,[["render",l],["__scopeId","data-v-60718172"]]);t["default"]=u},"4c0a":function(e,t,o){"use strict";o.r(t);var n=o("f2bf");const a={class:"manage-container"},r={class:"manage-wrap"},i={class:"manage-input"},l={class:"manage-button"};function s(e,t,o,s,c,d){const u=Object(n["resolveComponent"])("el-input"),m=Object(n["resolveComponent"])("el-form-item"),h=Object(n["resolveComponent"])("el-option"),p=Object(n["resolveComponent"])("el-select"),b=Object(n["resolveComponent"])("vab-query-form"),g=Object(n["resolveComponent"])("el-form"),f=Object(n["resolveComponent"])("el-button"),v=Object(n["resolveComponent"])("el-table-column"),w=Object(n["resolveComponent"])("el-tag"),k=Object(n["resolveComponent"])("el-table"),C=Object(n["resolveComponent"])("el-pagination"),y=Object(n["resolveComponent"])("show-detail"),O=Object(n["resolveComponent"])("bind-device"),j=Object(n["resolveDirective"])("loading");return Object(n["openBlock"])(),Object(n["createElementBlock"])("div",a,[Object(n["createElementVNode"])("div",r,[Object(n["createElementVNode"])("div",i,[Object(n["createVNode"])(g,{ref:"queryForm",model:c.queryForm,"label-width":"80px"},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(b,null,{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(m,{width:"100",prop:"iccid",label:"iccid"},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(u,{modelValue:c.queryForm.iccid,"onUpdate:modelValue":t[0]||(t[0]=e=>c.queryForm.iccid=e),size:"small",placeholder:"请输入iccid"},null,8,["modelValue"])]),_:1}),Object(n["createVNode"])(m,{prop:"status",label:"选择状态"},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(p,{modelValue:c.queryForm.status,"onUpdate:modelValue":t[1]||(t[1]=e=>c.queryForm.status=e),size:"small",placeholder:"请选择状态"},{default:Object(n["withCtx"])(()=>[(Object(n["openBlock"])(!0),Object(n["createElementBlock"])(n["Fragment"],null,Object(n["renderList"])(c.statusData,e=>(Object(n["openBlock"])(),Object(n["createBlock"])(h,{key:e.value,label:e.label,value:e.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1})]),_:1})]),_:1},8,["model"])]),Object(n["createElementVNode"])("div",l,[Object(n["createVNode"])(f,{size:"small",onClick:t[2]||(t[2]=e=>d.resetForm())},{default:Object(n["withCtx"])(()=>[Object(n["createTextVNode"])(Object(n["toDisplayString"])(e.$t("defalult.chongz")),1)]),_:1}),Object(n["createVNode"])(f,{type:"primary",size:"small",onClick:d.search},{default:Object(n["withCtx"])(()=>[Object(n["createTextVNode"])(Object(n["toDisplayString"])(e.$t("defalult.cx")),1)]),_:1},8,["onClick"])])]),Object(n["withDirectives"])((Object(n["openBlock"])(),Object(n["createBlock"])(k,{data:c.flowData,border:"",stripe:"",style:{width:"100%"}},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(v,{prop:"iccid",label:"iccid",width:"200",align:"center"}),Object(n["createVNode"])(v,{prop:"accNumber",label:"接入号码",width:"150",align:"center"}),Object(n["createVNode"])(v,{prop:"deviceName",label:e.$t("maintenance.sb"),width:"150",align:"center"},null,8,["label"]),Object(n["createVNode"])(v,{prop:"activationTime",label:e.$t("vehicles.jhsj"),width:"200",align:"center"},null,8,["label"]),Object(n["createVNode"])(v,{prop:"createTime",label:"创建时间/开卡时间",width:"200",align:"center"}),Object(n["createVNode"])(v,{prop:"status",label:e.$t("dataEnquiry.ljzt"),width:"120",align:"center"},{default:Object(n["withCtx"])(({row:e})=>[1==e.simStatus?(Object(n["openBlock"])(),Object(n["createBlock"])(w,{key:"可激活",effect:"dark",type:"success",size:"mini"},{default:Object(n["withCtx"])(()=>t[3]||(t[3]=[Object(n["createTextVNode"])(" 可激活 ")])),_:1})):Object(n["createCommentVNode"])("",!0),2==e.simStatus?(Object(n["openBlock"])(),Object(n["createBlock"])(w,{key:"测试激活",effect:"dark",type:"success",size:"mini"},{default:Object(n["withCtx"])(()=>t[4]||(t[4]=[Object(n["createTextVNode"])(" 测试激活 ")])),_:1})):Object(n["createCommentVNode"])("",!0),3==e.simStatus?(Object(n["openBlock"])(),Object(n["createBlock"])(w,{key:"测试去激活",effect:"dark",type:"success",size:"mini"},{default:Object(n["withCtx"])(()=>t[5]||(t[5]=[Object(n["createTextVNode"])(" 测试去激活 ")])),_:1})):Object(n["createCommentVNode"])("",!0),4==e.simStatus?(Object(n["openBlock"])(),Object(n["createBlock"])(w,{key:"在用",effect:"dark",type:"success",size:"mini"},{default:Object(n["withCtx"])(()=>t[6]||(t[6]=[Object(n["createTextVNode"])(" 在用 ")])),_:1})):Object(n["createCommentVNode"])("",!0),5==e.simStatus?(Object(n["openBlock"])(),Object(n["createBlock"])(w,{key:"停机",effect:"dark",type:"danger",size:"mini"},{default:Object(n["withCtx"])(()=>t[7]||(t[7]=[Object(n["createTextVNode"])(" 停机 ")])),_:1})):Object(n["createCommentVNode"])("",!0),6==e.simStatus?(Object(n["openBlock"])(),Object(n["createBlock"])(w,{key:"运营商管理状态",effect:"dark",type:"success",size:"mini"},{default:Object(n["withCtx"])(()=>t[8]||(t[8]=[Object(n["createTextVNode"])(" 运营商管理状态 ")])),_:1})):Object(n["createCommentVNode"])("",!0)]),_:1},8,["label"]),Object(n["createVNode"])(v,{fixed:"right",label:e.$t("defalult.cz"),align:"center"},{default:Object(n["withCtx"])(({row:e})=>[Object(n["createVNode"])(f,{type:"text",onClick:t=>d.bindDevice(e)},{default:Object(n["withCtx"])(()=>t[9]||(t[9]=[Object(n["createTextVNode"])("绑定设备")])),_:2},1032,["onClick"]),Object(n["createVNode"])(f,{type:"text",onClick:t=>d.ShowDetail(e)},{default:Object(n["withCtx"])(()=>t[10]||(t[10]=[Object(n["createTextVNode"])("详情")])),_:2},1032,["onClick"])]),_:1},8,["label"])]),_:1},8,["data"])),[[j,c.listLoading]]),Object(n["createVNode"])(C,{background:c.background,"current-page":c.queryForm.pageIndex,layout:c.layout,"page-size":c.queryForm.size,total:c.total,style:{"text-align":"right"},onCurrentChange:d.handleCurrentChange,onSizeChange:d.handleSizeChange},null,8,["background","current-page","layout","page-size","total","onCurrentChange","onSizeChange"]),Object(n["createVNode"])(y,{ref:"details"},null,512),Object(n["createVNode"])(O,{ref:"device"},null,512)])}var c=o("4bf8"),d=o("111a"),u=o("35ed"),m={name:"Index",components:{bindDevice:u["default"],showDetail:d["default"]},data(){return{flowData:[],layout:"total, sizes, prev, pager, next, jumper",total:0,background:!0,listLoading:!0,elementLoadingText:"正在加载...",statusData:[{value:1,label:"可激活"},{value:2,label:"测试激活"},{value:3,label:"测试去激活"},{value:4,label:"在用"},{value:5,label:"停机"},{value:6,label:"运营商管理状态"}],queryForm:{page:1,size:20,iccid:"",status:""}}},computed:{height(){return 500}},created(){this.fetchData()},methods:{async fetchData(){this.listLoading=!0;const{data:e}=await Object(c["getList"])(this.queryForm);this.flowData=e.items,this.total=e.total,setTimeout(()=>{this.listLoading=!1},500)},search(){this.fetchData()},resetForm(){this.$refs.queryForm.resetFields()},bindDevice(e){this.$refs["device"].showDetail(e.accNumber)},ShowDetail(e){this.$refs["details"].showDetail(e.accNumber)},handleQuery(){this.queryForm.page=1,this.fetchData()},handleSizeChange(e){this.queryForm.size=e,this.fetchData()},handleCurrentChange(e){this.queryForm.page=e,this.fetchData()}}},h=(o("df16"),o("eae5"),o("d959")),p=o.n(h);const b=p()(m,[["render",s],["__scopeId","data-v-37795fca"]]);t["default"]=b},"4c21":function(e,t,o){"use strict";o.r(t);var n=o("f2bf");const a={class:"manage-container"},r={class:"manage-input"},i={class:"manage-input"},l={class:"manage-button"};function s(e,t,o,s,c,d){const u=Object(n["resolveComponent"])("el-input"),m=Object(n["resolveComponent"])("el-form-item"),h=Object(n["resolveComponent"])("vab-query-form"),p=Object(n["resolveComponent"])("el-form"),b=Object(n["resolveComponent"])("el-option"),g=Object(n["resolveComponent"])("el-select"),f=Object(n["resolveComponent"])("el-button"),v=Object(n["resolveComponent"])("el-table-column"),w=Object(n["resolveComponent"])("el-tag"),k=Object(n["resolveComponent"])("el-switch"),C=Object(n["resolveComponent"])("el-table"),y=Object(n["resolveComponent"])("el-pagination"),O=Object(n["resolveComponent"])("device-edit"),j=Object(n["resolveComponent"])("copy-device"),x=Object(n["resolveComponent"])("sync-device"),_=Object(n["resolveDirective"])("loading");return Object(n["openBlock"])(),Object(n["createElementBlock"])("div",a,[Object(n["createElementVNode"])("div",r,[Object(n["createVNode"])(p,{ref:"queryForm",model:c.queryForm,"label-width":"80px"},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(h,null,{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(m,{width:"100",prop:"name",label:e.$t("dataEnquiry.zdmc")},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(u,{modelValue:c.queryForm.name,"onUpdate:modelValue":t[0]||(t[0]=e=>c.queryForm.name=e),size:"small",placeholder:e.$t("dataEnquiry.qsrzdmc")},null,8,["modelValue","placeholder"])]),_:1},8,["label"]),Object(n["createVNode"])(m,{width:"100",prop:"serial",label:e.$t("dataEnquiry.xlh")},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(u,{modelValue:c.queryForm.serial,"onUpdate:modelValue":t[1]||(t[1]=e=>c.queryForm.serial=e),size:"small",placeholder:e.$t("dataEnquiry.qsrxlh")},null,8,["modelValue","placeholder"])]),_:1},8,["label"]),Object(n["createVNode"])(m,{width:"100",prop:"community",label:e.$t("dataEnquiry.sq")},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(u,{modelValue:c.queryForm.community,"onUpdate:modelValue":t[2]||(t[2]=e=>c.queryForm.community=e),size:"small",placeholder:e.$t("dataEnquiry.qsrsq")},null,8,["modelValue","placeholder"])]),_:1},8,["label"])]),_:1})]),_:1},8,["model"])]),Object(n["createElementVNode"])("div",i,[Object(n["createVNode"])(p,{ref:"queryForm",model:c.queryForm,"label-width":"80px"},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(h,null,{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(m,{width:"100",prop:"commPro",label:e.$t("dataEnquiry.txxy")},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(g,{modelValue:c.queryForm.commPro,"onUpdate:modelValue":t[3]||(t[3]=e=>c.queryForm.commPro=e),size:"small",placeholder:"请选择通信协议"},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(b,{value:"全部",label:e.$t("dataEnquiry.qb")},null,8,["label"]),(Object(n["openBlock"])(!0),Object(n["createElementBlock"])(n["Fragment"],null,Object(n["renderList"])(c.dictData,e=>(Object(n["openBlock"])(),Object(n["createBlock"])(b,{key:e.dataCode,label:e.dataValue,value:e.dataCode},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1},8,["label"]),Object(n["createVNode"])(m,{width:"100",prop:"townCode",label:e.$t("dataEnquiry.jd")},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(g,{modelValue:c.queryForm.townCode,"onUpdate:modelValue":t[4]||(t[4]=e=>c.queryForm.townCode=e),size:"small",placeholder:e.$t("dataEnquiry.qxzjd")},{default:Object(n["withCtx"])(()=>[(Object(n["openBlock"])(!0),Object(n["createElementBlock"])(n["Fragment"],null,Object(n["renderList"])(c.townData,e=>(Object(n["openBlock"])(),Object(n["createBlock"])(b,{key:e.townCode,label:e.townName,value:e.townCode},null,8,["label","value"]))),128))]),_:1},8,["modelValue","placeholder"])]),_:1},8,["label"]),Object(n["createVNode"])(m,{width:"100",prop:"status",label:e.$t("dataEnquiry.zt")},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(g,{modelValue:c.queryForm.status,"onUpdate:modelValue":t[5]||(t[5]=e=>c.queryForm.status=e),size:"small",placeholder:"请选择状态"},{default:Object(n["withCtx"])(()=>[(Object(n["openBlock"])(!0),Object(n["createElementBlock"])(n["Fragment"],null,Object(n["renderList"])(c.statusData,e=>(Object(n["openBlock"])(),Object(n["createBlock"])(b,{key:e.value,label:e.label,value:e.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1},8,["label"])]),_:1})]),_:1},8,["model"])]),Object(n["createElementVNode"])("div",l,[Object(n["createVNode"])(f,{size:"small",onClick:t[6]||(t[6]=e=>d.resetForm())},{default:Object(n["withCtx"])(()=>[Object(n["createTextVNode"])(Object(n["toDisplayString"])(e.$t("defalult.chongz")),1)]),_:1}),Object(n["createVNode"])(f,{type:"primary",size:"small",onClick:d.search},{default:Object(n["withCtx"])(()=>[Object(n["createTextVNode"])(Object(n["toDisplayString"])(e.$t("defalult.cx")),1)]),_:1},8,["onClick"]),Object(n["createVNode"])(f,{type:"primary",size:"small",onClick:d.handleAdd},{default:Object(n["withCtx"])(()=>t[7]||(t[7]=[Object(n["createTextVNode"])(" 添加站点 ")])),_:1},8,["onClick"]),Object(n["createVNode"])(f,{type:"primary",size:"small",onClick:d.deletes},{default:Object(n["withCtx"])(()=>[Object(n["createTextVNode"])(Object(n["toDisplayString"])(e.$t("defalult.plsc")),1)]),_:1},8,["onClick"]),Object(n["createVNode"])(f,{type:"primary",size:"small",onClick:d.exportData},{default:Object(n["withCtx"])(()=>[Object(n["createTextVNode"])(Object(n["toDisplayString"])(e.$t("defalult.dc")),1)]),_:1},8,["onClick"]),Object(n["createVNode"])(f,{type:"primary",size:"small",onClick:d.fboxSync},{default:Object(n["withCtx"])(()=>t[8]||(t[8]=[Object(n["createTextVNode"])(" 盒子同步 ")])),_:1},8,["onClick"])]),Object(n["withDirectives"])((Object(n["openBlock"])(),Object(n["createBlock"])(C,{id:"table",data:c.deviceData,border:"",stripe:"",style:{width:"100%"},onSelectionChange:d.handleSelectionChange},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(v,{type:"selection",width:"40"}),Object(n["createVNode"])(v,{prop:"id",label:"ID",width:"60",align:"center"}),Object(n["createVNode"])(v,{prop:"name",label:e.$t("dataEnquiry.zdmc"),width:"300",align:"center"},null,8,["label"]),Object(n["createVNode"])(v,{prop:"code",label:e.$t("dataEnquiry.zdbm"),width:"160",align:"center"},null,8,["label"]),Object(n["createVNode"])(v,{prop:"serial",label:e.$t("dataEnquiry.xlh"),width:"160",align:"center"},null,8,["label"]),Object(n["createVNode"])(v,{prop:"commPro.dataValue",label:e.$t("dataEnquiry.txxy"),width:"100",align:"center"},null,8,["label"]),Object(n["createVNode"])(v,{prop:"longitude",label:e.$t("project.jd"),width:"100",align:"center"},null,8,["label"]),Object(n["createVNode"])(v,{prop:"latitude",label:e.$t("project.wd"),width:"100",align:"center"},null,8,["label"]),Object(n["createVNode"])(v,{prop:"offlineDelay",label:e.$t("device.lxys"),width:"100",align:"center"},null,8,["label"]),Object(n["createVNode"])(v,{prop:"townName",label:e.$t("dataEnquiry.xzjdmc"),width:"120",align:"center"},null,8,["label"]),Object(n["createVNode"])(v,{prop:"community",label:e.$t("dataEnquiry.sq"),width:"120",align:"center"},null,8,["label"]),Object(n["createVNode"])(v,{prop:"specifications",label:e.$t("dataEnquiry.sbgg"),width:"100",align:"center"},null,8,["label"]),Object(n["createVNode"])(v,{prop:"status",label:e.$t("dataEnquiry.ljzt"),width:"120",align:"center"},{default:Object(n["withCtx"])(({row:e})=>["已连接"==e.status?(Object(n["openBlock"])(),Object(n["createBlock"])(w,{key:"已连接",effect:"dark",type:"success",size:"mini"},{default:Object(n["withCtx"])(()=>t[9]||(t[9]=[Object(n["createTextVNode"])(" 已连接 ")])),_:1})):Object(n["createCommentVNode"])("",!0),"未连接"==e.status?(Object(n["openBlock"])(),Object(n["createBlock"])(w,{key:"未连接",effect:"dark",type:"danger",size:"mini"},{default:Object(n["withCtx"])(()=>t[10]||(t[10]=[Object(n["createTextVNode"])(" 未连接 ")])),_:1})):Object(n["createCommentVNode"])("",!0)]),_:1},8,["label"]),Object(n["createVNode"])(v,{prop:"enableStatus",label:e.$t("dataEnquiry.zt"),align:"center"},{default:Object(n["withCtx"])(e=>[Object(n["createVNode"])(k,{modelValue:e.row.enableStatus,"onUpdate:modelValue":t=>e.row.enableStatus=t,"active-value":"1","inactive-value":"0",onClick:t=>d.updateStatus(e.row.enableStatus,e.row.id)},null,8,["modelValue","onUpdate:modelValue","onClick"])]),_:1},8,["label"]),Object(n["createVNode"])(v,{prop:"offlineDelay",label:e.$t("dataEnquiry.lxyzm"),width:"120",align:"center"},null,8,["label"]),Object(n["createVNode"])(v,{prop:"commPro.dataValue",label:e.$t("dataEnquiry.txxy"),width:"100",align:"center"},null,8,["label"]),Object(n["createVNode"])(v,{prop:"project.name",label:e.$t("dataEnquiry.xm"),width:"200",align:"center"},null,8,["label"]),Object(n["createVNode"])(v,{prop:"specifications",label:e.$t("dataEnquiry.sbggd"),width:"100",align:"center"},null,8,["label"]),Object(n["createVNode"])(v,{prop:"simNum",label:e.$t("dataEnquiry.skjjhm"),width:"150",align:"center"},null,8,["label"]),Object(n["createVNode"])(v,{prop:"technology.dataValue",label:e.$t("dataEnquiry.sbgy"),width:"200",align:"center"},null,8,["label"]),Object(n["createVNode"])(v,{prop:"material.dataValue",label:e.$t("dataEnquiry.sbcz"),width:"100",align:"center"},null,8,["label"]),Object(n["createVNode"])(v,{prop:"outStandard.dataValue",label:e.$t("dataEnquiry.csbz"),width:"100",align:"center"},null,8,["label"]),Object(n["createVNode"])(v,{prop:"leader",label:e.$t("dataEnquiry.ywry"),width:"100",align:"center"},null,8,["label"]),Object(n["createVNode"])(v,{prop:"contact",label:e.$t("project.lxfs"),width:"120",align:"center"},null,8,["label"]),Object(n["createVNode"])(v,{prop:"type.dataValue",label:e.$t("dataEnquiry.sblx"),width:"100",align:"center"},null,8,["label"]),Object(n["createVNode"])(v,{prop:"userNum",label:e.$t("dataEnquiry.fwyhs"),width:"100",align:"center"},null,8,["label"]),Object(n["createVNode"])(v,{prop:"onlineTime",label:e.$t("dataEnquiry.sxsj"),width:"180",align:"center"},null,8,["label"]),Object(n["createVNode"])(v,{prop:"offlineTime",label:e.$t("dataEnquiry.lxsj"),width:"180",align:"center"},null,8,["label"]),Object(n["createVNode"])(v,{prop:"offlineDuration",label:e.$t("dataEnquiry.lxsc"),width:"120",align:"center"},null,8,["label"]),Object(n["createVNode"])(v,{fixed:"right",label:e.$t("defalult.cz"),width:"250",align:"center"},{default:Object(n["withCtx"])(({row:t})=>[Object(n["createVNode"])(f,{type:"text",onClick:e=>d.sensorData(t)},{default:Object(n["withCtx"])(()=>[Object(n["createTextVNode"])(Object(n["toDisplayString"])(e.$t("device.sj")),1)]),_:2},1032,["onClick"]),Object(n["createVNode"])(f,{type:"text",onClick:e=>d.sensorEdit(t)},{default:Object(n["withCtx"])(()=>[Object(n["createTextVNode"])(Object(n["toDisplayString"])(e.$t("device.cgq")),1)]),_:2},1032,["onClick"]),Object(n["createVNode"])(f,{type:"text",onClick:e=>d.copyDevice(t)},{default:Object(n["withCtx"])(()=>[Object(n["createTextVNode"])(Object(n["toDisplayString"])(e.$t("device.fz")),1)]),_:2},1032,["onClick"]),Object(n["createVNode"])(f,{type:"text",onClick:e=>d.handleEdit(t)},{default:Object(n["withCtx"])(()=>[Object(n["createTextVNode"])(Object(n["toDisplayString"])(e.$t("defalult.bj")),1)]),_:2},1032,["onClick"]),Object(n["createVNode"])(f,{type:"text",onClick:e=>d.handleDelete(t)},{default:Object(n["withCtx"])(()=>[Object(n["createTextVNode"])(Object(n["toDisplayString"])(e.$t("defalult.sc")),1)]),_:2},1032,["onClick"])]),_:1},8,["label"])]),_:1},8,["data","onSelectionChange"])),[[_,c.listLoading]]),Object(n["createVNode"])(y,{background:c.background,"current-page":c.queryForm.page,layout:c.layout,"page-size":c.queryForm.size,total:c.total,style:{"text-align":"right"},onCurrentChange:d.handleCurrentChange,onSizeChange:d.handleSizeChange},null,8,["background","current-page","layout","page-size","total","onCurrentChange","onSizeChange"]),Object(n["createVNode"])(O,{ref:"edit"},null,512),Object(n["createVNode"])(j,{ref:"copy"},null,512),Object(n["createVNode"])(x,{ref:"sync"},null,512)])}o("14d9");var c=o("aa98"),d=o("3038"),u=o("a284"),m=o("a4c3"),h=o("6f3b"),p={name:"Index",components:{CopyDevice:m["default"],deviceEdit:u["default"],syncDevice:h["default"]},data(){return{deviceData:[],lazy:!0,activeName:"first",layout:"total, sizes, prev, pager, next, jumper",total:0,input:"",textarea:"",list:[],townData:[],dictData:[],background:!0,listLoading:!0,ids:[],elementLoadingText:"正在加载...",statusData:[{label:"all",value:3},{label:"离线",value:0},{label:"在线",value:1}],queryForm:{page:1,size:20,name:"",projectId:"",serial:"",community:"",townCode:"",commPro:"all",status:3}}},computed:{height(){return 500}},methods:{showData(){this.fetchData(),this.queryForm.projectId=sessionStorage.getItem("projectId"),this.getTownData(),this.getDictData()},async fetchData(){this.listLoading=!0,this.queryForm.projectId="";const{data:e}=await Object(c["getDeviceData"])(this.queryForm);this.deviceData=e.items,this.total=e.total,setTimeout(()=>{this.listLoading=!1},500)},async getTownData(){const{data:e}=await Object(c["getTownsByProject"])(this.queryForm);this.townData=e},async getDictData(){const{data:e}=await Object(c["getDictData"])(this.queryForm);this.dictData=e.communicationProtocol},resetForm(){this.$refs.queryForm.resetFields()},search(){this.fetchData()},async exportData(){const e=await Object(c["exportIotDevice"])(this.queryForm);d["default"].downloadFile(e,{fileName:"站点列表.xls"})},sensorData(e){this.$router.push({name:"传感器数据",path:"/sensorIotData",query:{deviceCode:e.code,deviceId:e.id}})},sensorEdit(e){this.$router.push({name:"传感器管理",path:"/sensor",query:{deviceId:e.id,projectId:this.queryForm.projectId}})},async updateStatus(e,t){console.log(e);const{code:o,msg:n}=await Object(c["doEdit"])({enableStatus:parseInt(e),id:t});0==o?this.$notify({title:n,type:"success"}):this.$notify.error({title:n}),this.fetchData()},handleAdd(){this.$refs["edit"].showEdit({projectId:this.queryForm.projectId},1)},handleEdit(e){this.$refs["edit"].showEdit(e,2)},async fboxSync(){this.$refs["sync"].showSync(this.queryForm)},copyDevice(e){this.$refs["copy"].showCopy(e)},handleQuery(){this.queryForm.page=1,this.fetchData()},handleSizeChange(e){this.queryForm.size=e,this.fetchData()},handleCurrentChange(e){this.queryForm.page=e,this.fetchData()},deletes(){const e=this.ids;if(0==e.length)return this.$message({type:"info",message:"没有选中任何项"}),!1;this.deleteData(e)},handleSelectionChange(e){const t=[];e.forEach(e=>{t.push(e.id)}),this.ids=t,console.log(this.ids)},deleteData(e){this.$confirm("你确定要删除当前项吗?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(()=>{const{msg:t}=Object(c["doDelete"])(e);this.$message({type:"success",message:void 0==t?"删除成功":t});const o=this;setTimeout((function(){o.fetchData()}),1e3)}).catch(()=>{this.$message({type:"info",message:"已取消删除"})})},handleDelete(e){e.id&&this.deleteData([e.id])}}},b=(o("865b"),o("d959")),g=o.n(b);const f=g()(p,[["render",s],["__scopeId","data-v-20fa0215"]]);t["default"]=f},"4cfb":function(e,t,o){"use strict";o.r(t),o.d(t,"getMenuList",(function(){return a})),o.d(t,"getMenuType",(function(){return r})),o.d(t,"addMenuPub",(function(){return i})),o.d(t,"delMenuRemove",(function(){return l})),o.d(t,"getSubscribeReply",(function(){return s})),o.d(t,"getMaterialList",(function(){return c})),o.d(t,"getMaterialType",(function(){return d})),o.d(t,"getMaterialMsgType",(function(){return u})),o.d(t,"materialSaveOrUpdate",(function(){return m})),o.d(t,"materialRemove",(function(){return h})),o.d(t,"getMatchType",(function(){return p})),o.d(t,"getKeywordReplyList",(function(){return b})),o.d(t,"keywordReplyAdd",(function(){return g})),o.d(t,"keywordReplyEdit",(function(){return f})),o.d(t,"keywordReplyRemove",(function(){return v})),o.d(t,"getReplyType",(function(){return w})),o.d(t,"getDefaultReplyType",(function(){return k})),o.d(t,"defaultReplySaveOrUpdate",(function(){return C})),o.d(t,"defaultReplyRemove",(function(){return y}));var n=o("b775");function a(e){return Object(n["default"])({url:"/wechatMp/menu/list",method:"get",data:e})}function r(e){return Object(n["default"])({url:"/wechatMp/menu/type",method:"get",data:e})}function i(e){return Object(n["default"])({url:"/wechatMp/menu/pub",method:"post",data:e})}function l(){return Object(n["default"])({url:"/wechatMp/menu/remove",method:"post"})}function s(e){return Object(n["default"])({url:"/wechatMp/subscribeReply/getReply",method:"get",data:e})}function c(e){null==e.page&&(e.page=1);const t="?page="+e.page+"&size="+e.size+"&type="+e.type;return Object(n["default"])({url:"/wechatMp/material/list"+t,method:"get",data:e})}function d(e){return Object(n["default"])({url:"/wechatMp/material/type",method:"get",data:e})}function u(e){return Object(n["default"])({url:"/wechatMp/subscribeReply/msgType",method:"get",data:e})}function m(e){return Object(n["default"])({url:"/wechatMp/subscribeReply/saveOrUpdate",method:"post",data:e})}function h(e){return Object(n["default"])({url:"/wechatMp/subscribeReply/remove?id="+e.id,method:"post",data:e})}function p(e){return Object(n["default"])({url:"/wechatMp/keywordReply/matchType",method:"get",data:e})}function b(e){const t="?page="+e.page+"&size="+e.size;return Object(n["default"])({url:"/wechatMp/keywordReply/list"+t,method:"get",data:e})}function g(e){return Object(n["default"])({url:"/wechatMp/keywordReply/insert",method:"post",data:e})}function f(e){return Object(n["default"])({url:"/wechatMp/keywordReply/update",method:"post",data:e})}function v(e){return Object(n["default"])({url:"/wechatMp/keywordReply/remove",method:"post",data:e})}function w(e){return Object(n["default"])({url:"/wechatMp/defaultReply/getReply",method:"get",data:e})}function k(e){return Object(n["default"])({url:"/wechatMp/defaultReply/getReply",method:"get",data:e})}function C(e){return Object(n["default"])({url:"/wechatMp/defaultReply/saveOrUpdate",method:"post",data:e})}function y(e){return Object(n["default"])({url:"/wechatMp/defaultReply/remove?id="+e.id,method:"post",data:e})}},"4cff":function(e,t,o){"use strict";o.r(t);var n=o("f2bf");function a(e,t,o,a,r,i){const l=Object(n["resolveComponent"])("el-table-column"),s=Object(n["resolveComponent"])("el-table"),c=Object(n["resolveComponent"])("el-dialog");return Object(n["openBlock"])(),Object(n["createBlock"])(c,{modelValue:r.dialogFormVisible,"onUpdate:modelValue":t[0]||(t[0]=e=>r.dialogFormVisible=e),title:r.title,width:"1000px",onClose:e.close},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(s,{data:r.tableData,stripe:"",border:"",style:{width:"100%"}},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(l,{fixed:"",property:"deviceName",label:e.$t("dataEnquiry.zdmc"),width:"200",align:"center"},null,8,["label"]),Object(n["createVNode"])(l,{property:"sampleQuantity",label:e.$t("apply.ypsl"),width:"100",align:"center"},null,8,["label"]),Object(n["createVNode"])(l,{property:"sampleBack.dataValue",label:e.$t("apply.ypqh"),width:"100",align:"center"},null,8,["label"]),Object(n["createVNode"])(l,{property:"sampleType.dataValue",label:e.$t("apply.yplx"),width:"100",align:"center"},null,8,["label"]),Object(n["createVNode"])(l,{property:"detectionItems",label:e.$t("apply.jcxm"),width:"100",align:"center"},{default:Object(n["withCtx"])(({row:e})=>[(Object(n["openBlock"])(!0),Object(n["createElementBlock"])(n["Fragment"],null,Object(n["renderList"])(e.detectionItems,(e,o)=>(Object(n["openBlock"])(),Object(n["createElementBlock"])("span",{key:o},[Object(n["createTextVNode"])(Object(n["toDisplayString"])(e.dataValue)+" ",1),t[1]||(t[1]=Object(n["createElementVNode"])("br",null,null,-1))]))),128))]),_:1},8,["label"]),Object(n["createVNode"])(l,{property:"detectionReport.dataValue",label:e.$t("apply.jcbg"),width:"150",align:"center"},null,8,["label"]),Object(n["createVNode"])(l,{property:"reportIssued.dataValue",label:e.$t("apply.bgcj"),width:"150",align:"center"},null,8,["label"]),Object(n["createVNode"])(l,{property:"reportUse.dataValue",label:e.$t("apply.bgyt"),width:"150",align:"center"},null,8,["label"]),Object(n["createVNode"])(l,{property:"asOfTime",label:e.$t("apply.jzsj"),width:"200",align:"center"},null,8,["label"]),Object(n["createVNode"])(l,{property:"remark",label:e.$t("alarm.bz"),width:"200",align:"center"},null,8,["label"])]),_:1},8,["data"])]),_:1},8,["modelValue","title","onClose"])}var r={data(){return{dialogFormVisible:!1,title:"",tableData:[]}},methods:{showDetail(e){this.title="水质申请",this.tableData[0]=e,this.dialogFormVisible=!0}},close(){this.$refs["form"].resetFields(),this.form=this.$options.data().form,this.dialogFormVisible=!1,this.$emit("fetch-data")}},i=o("d959"),l=o.n(i);const s=l()(r,[["render",a]]);t["default"]=s},"4ddc":function(e,t,o){e.exports={"menu-color":"hsla(0,0%,27%,.95)","menu-color-active":"hsla(208,100%,55%,.95)","menu-background":"#fff","gallery-second-menu-background":"#fff"}},"4e55":function(e,t,o){},"4ea8":function(e,t,o){o("cdd9")},"4ee8":function(e,t,o){"use strict";o("38ac")},"4f51":function(e,t,o){e.exports=o.p+"static/img/403.041048cd.png"},"4f5f":function(e,t,o){"use strict";o("acad")},"4f61":function(e,t,o){"use strict";o("90bf")},"502f":function(e,t,o){"use strict";o("486d")},"50bb":function(e,t,o){"use strict";o.r(t);var n=o("f2bf");const a={class:"manage-container"};function r(e,t,o,r,i,l){const s=Object(n["resolveComponent"])("el-input"),c=Object(n["resolveComponent"])("el-button"),d=Object(n["resolveComponent"])("vab-query-form"),u=Object(n["resolveComponent"])("el-col"),m=Object(n["resolveComponent"])("el-row"),h=Object(n["resolveComponent"])("el-tab-pane"),p=Object(n["resolveComponent"])("el-tabs");return Object(n["openBlock"])(),Object(n["createElementBlock"])("div",a,[Object(n["createVNode"])(d,null,{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(s,{modelValue:i.input,"onUpdate:modelValue":t[0]||(t[0]=e=>i.input=e),placeholder:"请输入内容"},null,8,["modelValue"]),Object(n["createVNode"])(c,{type:"primary",icon:"el-icon-search"}),Object(n["createVNode"])(c,{type:"primary"},{default:Object(n["withCtx"])(()=>t[2]||(t[2]=[Object(n["createTextVNode"])("创建组态")])),_:1})]),_:1}),Object(n["createVNode"])(p,{modelValue:i.activeName,"onUpdate:modelValue":t[1]||(t[1]=e=>i.activeName=e),onTabClick:l.handleClick},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(h,{label:"已发布组态",name:"first"},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(m,{gutter:20},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(u,{span:6},{default:Object(n["withCtx"])(()=>t[3]||(t[3]=[Object(n["createElementVNode"])("div",{class:"grid-content bg-purple"},null,-1)])),_:1})]),_:1})]),_:1}),Object(n["createVNode"])(h,{label:"待发布组态",name:"second"},{default:Object(n["withCtx"])(()=>t[4]||(t[4]=[Object(n["createTextVNode"])("配置管理")])),_:1}),Object(n["createVNode"])(h,{label:"组态素材库",name:"third"},{default:Object(n["withCtx"])(()=>t[5]||(t[5]=[Object(n["createTextVNode"])("角色管理")])),_:1})]),_:1},8,["modelValue","onTabClick"])])}var i={name:"Addproject",data(){return{input:"",activeName:"second"}},methods:{handleClick(e,t){console.log(e,t)}}},l=(o("c9ab"),o("d959")),s=o.n(l);const c=s()(i,[["render",r],["__scopeId","data-v-352375d1"]]);t["default"]=c},"50df":function(e,t,o){},5100:function(e,t,o){},"510b":function(e,t,o){"use strict";o("e0b2")},"51d3":function(e,t,o){"use strict";o("d29e")},"51da":function(e,t,o){"use strict";o("34d3")},5256:function(e,t,o){},5276:function(e,t,o){"use strict";o.r(t);var n=o("f2bf");const a={class:"dialog-footer"};function r(e,t,o,r,i,l){const s=Object(n["resolveComponent"])("el-option"),c=Object(n["resolveComponent"])("el-select"),d=Object(n["resolveComponent"])("el-form-item"),u=Object(n["resolveComponent"])("el-form"),m=Object(n["resolveComponent"])("el-button"),h=Object(n["resolveComponent"])("el-dialog");return Object(n["openBlock"])(),Object(n["createBlock"])(h,{modelValue:i.dialogFormVisible,"onUpdate:modelValue":t[1]||(t[1]=e=>i.dialogFormVisible=e),title:i.title,width:"500px",onClose:l.close},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(u,{ref:"form",model:i.form,rules:e.rules,"label-width":"80px"},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(d,{label:e.$t("dataEnquiry.xm"),prop:"projectIds"},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(c,{modelValue:i.form.projectIds,"onUpdate:modelValue":t[0]||(t[0]=e=>i.form.projectIds=e),size:"small",multiple:"",placeholder:"请选择"},{default:Object(n["withCtx"])(()=>[(Object(n["openBlock"])(!0),Object(n["createElementBlock"])(n["Fragment"],null,Object(n["renderList"])(i.projectData,e=>(Object(n["openBlock"])(),Object(n["createBlock"])(s,{key:e.id,label:e.name,value:e.id},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1},8,["label"])]),_:1},8,["model","rules"]),Object(n["createElementVNode"])("div",a,[Object(n["createVNode"])(m,{type:"primary",size:"small",onClick:l.save},{default:Object(n["withCtx"])(()=>t[2]||(t[2]=[Object(n["createTextVNode"])("确 定")])),_:1},8,["onClick"]),Object(n["createVNode"])(m,{size:"small",onClick:l.close},{default:Object(n["withCtx"])(()=>t[3]||(t[3]=[Object(n["createTextVNode"])("取 消")])),_:1},8,["onClick"])])]),_:1},8,["modelValue","title","onClose"])}o("14d9");var i=o("0fea"),l=(o("24d2"),o("c24f")),s={name:"ManageRole",data(){return{form:{userId:"",projectIds:[]},projectData:[],clearable:!0,title:"",dialogFormVisible:!1}},created(){},methods:{async getProjectData(){const{data:e}=await Object(i["getAllProjects"])();this.projectData=e},manageProduct(e){this.title="分配项目",this.form.userId=e.id,this.dialogFormVisible=!0,this.getProjectData(),this.getUserProject()},async getUserProject(){const{data:e}=await Object(l["getProjectsByUserId"])({userId:this.form.userId});for(const t in e)this.form.projectIds.push(e[t].id)},close(){this.$refs["form"].resetFields(),this.form=this.$options.data().form,this.dialogFormVisible=!1,this.$emit("fetch-data")},save(){console.log(this.form),this.$refs["form"].validate(async e=>{if(!e)return!1;{const{msg:e}=await Object(i["assignProject"])(this.form);this.$notify({title:e,type:"success"}),this.$refs["form"].resetFields(),this.dialogFormVisible=!1,this.$parent.fetchData()}})}}},c=(o("18af"),o("d959")),d=o.n(c);const u=d()(s,[["render",r]]);t["default"]=u},5284:function(e,t,o){e.exports={"menu-color":"hsla(0,0%,27%,.95)","menu-color-active":"hsla(208,100%,55%,.95)","menu-background":"#fff","gallery-second-menu-background":"#fff"}},5316:function(e,t,o){},"535d":function(e,t,o){e.exports={"menu-color":"hsla(0,0%,27%,.95)","menu-color-active":"hsla(208,100%,55%,.95)","menu-background":"#fff","gallery-second-menu-background":"#fff"}},"538e":function(e,t,o){e.exports={"menu-color":"hsla(0,0%,27%,.95)","menu-color-active":"hsla(208,100%,55%,.95)","menu-background":"#fff","gallery-second-menu-background":"#fff"}},5414:function(e,t,o){"use strict";o.r(t);var n=o("f2bf");function a(e,t,o,a,r,i){const l=Object(n["resolveComponent"])("vab-remix-icon"),s=Object(n["resolveComponent"])("el-input"),c=Object(n["resolveComponent"])("el-form-item"),d=Object(n["resolveComponent"])("el-button"),u=Object(n["resolveComponent"])("el-form"),m=Object(n["resolveDirective"])("focus");return Object(n["openBlock"])(),Object(n["createBlock"])(u,{ref:"form",model:r.form,rules:r.rules,class:"login-form","label-position":"left"},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(c,{prop:"username"},{default:Object(n["withCtx"])(()=>[Object(n["withDirectives"])((Object(n["openBlock"])(),Object(n["createBlock"])(s,{modelValue:r.form.userName,"onUpdate:modelValue":t[0]||(t[0]=e=>r.form.userName=e),modelModifiers:{trim:!0},placeholder:"请输入用户名/手机号",tabindex:"1",type:"text"},{prefix:Object(n["withCtx"])(()=>[Object(n["createVNode"])(l,{icon:"user-line"})]),_:1},8,["modelValue"])),[[m]])]),_:1}),Object(n["createVNode"])(c,{prop:"password"},{default:Object(n["withCtx"])(()=>[(Object(n["openBlock"])(),Object(n["createBlock"])(s,{key:r.passwordType,ref:"password",modelValue:r.form.passwords,"onUpdate:modelValue":t[1]||(t[1]=e=>r.form.passwords=e),modelModifiers:{trim:!0},placeholder:"请输入密码",type:r.passwordType,tabindex:"2",onKeyup:Object(n["withKeys"])(i.handleLogin,["enter"])},Object(n["createSlots"])({prefix:Object(n["withCtx"])(()=>[Object(n["createVNode"])(l,{icon:"lock-line"})]),_:2},["password"===r.passwordType?{name:"suffix",fn:Object(n["withCtx"])(()=>[Object(n["createVNode"])(l,{class:"show-password",icon:"eye-off-line",onClick:i.handlePassword},null,8,["onClick"])]),key:"0"}:{name:"suffix",fn:Object(n["withCtx"])(()=>[Object(n["createVNode"])(l,{class:"show-password",icon:"eye-line",onClick:i.handlePassword},null,8,["onClick"])]),key:"1"}]),1032,["modelValue","type","onKeyup"]))]),_:1}),Object(n["createVNode"])(d,{loading:r.loading,class:"login-btn",type:"primary",onClick:i.handleLogin},{default:Object(n["withCtx"])(()=>t[2]||(t[2]=[Object(n["createTextVNode"])(" 登录 ")])),_:1},8,["loading","onClick"])]),_:1},8,["model","rules"])}o("d9e2"),o("14d9");var r=o("5502"),i=o("61f7"),l={name:"SingIn",data(){const e=(e,t,o)=>{""===t?o(new Error("用户名不能为空")):o()},t=(e,t,o)=>{Object(i["isPassword"])(t)?o():o(new Error("密码不能少于6位"))};return{nodeEnv:"production",form:{userName:"",passwords:""},rules:{userName:[{required:!0,trigger:"blur",validator:e}],passwords:[{required:!0,trigger:"blur",validator:t}]},loading:!1,passwordType:"password",timer:0}},computed:{...Object(r["c"])({title:"settings/title"})},mounted(){this.form.userName="",this.form.passwords=""},methods:{...Object(r["b"])({login:"user/login"}),handleClick(e,t){console.log(e,t),"second"==e.paneName?this.$refs["wxCode"].roleIndex():"first"==e.paneName&&this.$refs["sing-in"].roleIndex()},dialogFormVisible(){this.$refs["trial"].showTrial()},handlePassword(){"password"===this.passwordType?this.passwordType="":this.passwordType="password",this.$nextTick(()=>{this.$refs.passwords.focus()})},handleLogin(){this.$refs.form.validate(async e=>{if(!e)return!1;try{this.loading=!0,await this.login(this.form),await this.$router.push("/")}finally{this.loading=!1}})}}},s=o("d959"),c=o.n(s);const d=c()(l,[["render",a]]);t["default"]=d},5422:function(e,t,o){"use strict";o("6773")},5431:function(e,t,o){"use strict";o.r(t);var n=o("f2bf");const a={class:"dialog-footer"};function r(e,t,o,r,i,l){const s=Object(n["resolveComponent"])("el-input"),c=Object(n["resolveComponent"])("el-form-item"),d=Object(n["resolveComponent"])("el-form"),u=Object(n["resolveComponent"])("el-button"),m=Object(n["resolveComponent"])("el-dialog");return Object(n["openBlock"])(),Object(n["createBlock"])(m,{modelValue:i.dialogFormVisible,"onUpdate:modelValue":t[4]||(t[4]=e=>i.dialogFormVisible=e),title:i.title,width:"500px",onClose:l.close},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(d,{ref:"form",model:i.form,rules:i.rules,"label-width":"80px"},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(c,{label:"菜单名称",prop:"title"},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(s,{modelValue:i.form.title,"onUpdate:modelValue":t[0]||(t[0]=e=>i.form.title=e),modelModifiers:{trim:!0},size:"small",autocomplete:"off"},null,8,["modelValue"])]),_:1}),Object(n["createVNode"])(c,{label:"菜单路径",prop:"path"},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(s,{modelValue:i.form.path,"onUpdate:modelValue":t[1]||(t[1]=e=>i.form.path=e),modelModifiers:{trim:!0},size:"small",autocomplete:"off"},null,8,["modelValue"])]),_:1}),Object(n["createVNode"])(c,{label:"菜单路由",prop:"component"},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(s,{modelValue:i.form.component,"onUpdate:modelValue":t[2]||(t[2]=e=>i.form.component=e),modelModifiers:{trim:!0},size:"small",autocomplete:"off"},null,8,["modelValue"])]),_:1}),Object(n["createVNode"])(c,{label:"排序",prop:"sort"},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(s,{modelValue:i.form.sort,"onUpdate:modelValue":t[3]||(t[3]=e=>i.form.sort=e),modelModifiers:{trim:!0},size:"small",type:"number",autocomplete:"off"},null,8,["modelValue"])]),_:1})]),_:1},8,["model","rules"]),Object(n["createElementVNode"])("div",a,[Object(n["createVNode"])(u,{type:"primary",size:"small",onClick:l.save},{default:Object(n["withCtx"])(()=>t[5]||(t[5]=[Object(n["createTextVNode"])("确 定")])),_:1},8,["onClick"]),Object(n["createVNode"])(u,{size:"small",onClick:l.close},{default:Object(n["withCtx"])(()=>t[6]||(t[6]=[Object(n["createTextVNode"])("取 消")])),_:1},8,["onClick"])])]),_:1},8,["modelValue","title","onClose"])}var i=o("1f27"),l={name:"MenuEdit",data(){return{form:{id:"",title:"",name:"",path:"",component:"",sort:0},rules:{title:[{required:!0,trigger:"blur",message:"请输入菜单名称"}],path:[{required:!0,trigger:"blur",message:"请输入菜单路径"}]},clearable:!0,menuId:"",parentData:[],title:"",dialogFormVisible:!1,diffData:{},ruleForm:[]}},created(){},methods:{handleCountryChange(e){if(e){const t=e.length-1;this.form.parentId=e[t]}else this.form.parentId=0},showEdit(e){e?(this.title="编辑",this.menuId=e.id,this.form=Object.assign({},e),this.ruleForm=Object.assign({},e),this.form.title=e.name):this.title="添加",this.dialogFormVisible=!0},close(){this.$refs["form"].resetFields(),this.form=this.$options.data().form,this.dialogFormVisible=!1,this.$emit("fetch-data")},getDiffData(){this.diffData={},Object.keys(this.form).forEach(e=>{this.form[e]!=this.ruleForm[e]&&(this.diffData[e]=this.form[e])})},save(){this.$refs["form"].validate(async e=>{if(!e)return!1;if(this.form.name=this.form.title,this.form.id){if(this.getDiffData(),0!=Object.keys(this.diffData).length){this.diffData.id=this.form.id;const{msg:e}=await Object(i["miniMenuUpdate"])(this.diffData);this.$notify({title:e,type:"success"})}}else{const{msg:e}=await Object(i["miniMenuInsert"])(this.form);this.$notify({title:e,type:"success"})}this.$refs["form"].resetFields(),this.dialogFormVisible=!1,this.$parent.fetchData()})}}},s=(o("aeae"),o("d959")),c=o.n(s);const d=c()(l,[["render",r]]);t["default"]=d},"54f7":function(e,t,o){"use strict";o.r(t);var n=o("f2bf");const a={class:"manage-container"};function r(e,t,o,r,i,l){const s=Object(n["resolveComponent"])("el-table-column"),c=Object(n["resolveComponent"])("el-table"),d=Object(n["resolveDirective"])("loading");return Object(n["openBlock"])(),Object(n["createElementBlock"])("div",a,[Object(n["withDirectives"])((Object(n["openBlock"])(),Object(n["createBlock"])(c,{id:"table",data:i.tableData,border:"","span-method":l.objectSpanMethod,stripe:"",style:{width:"100%"}},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(s,{prop:"cll",label:"处理量(m3/d)"}),Object(n["createVNode"])(s,{prop:"zydl",label:"主要动力(设备)"}),Object(n["createVNode"])(s,{label:"单台功率(kW)"},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(s,{prop:"daglA",label:"一体化设备运行能耗表(我方建议)"}),Object(n["createVNode"])(s,{prop:"daglB",label:"一体化设备运行能耗表(招标要求)"})]),_:1}),Object(n["createVNode"])(s,{prop:"date",label:"装机功率(kW)"},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(s,{prop:"zjglA",label:"一体化设备运行能耗表(我方建议)"}),Object(n["createVNode"])(s,{prop:"zjglB",label:"一体化设备运行能耗表(招标要求)"})]),_:1}),Object(n["createVNode"])(s,{prop:"date",label:"日均电耗(kW.h)"},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(s,{prop:"cjdhA",label:"一体化设备运行能耗表(我方建议)"}),Object(n["createVNode"])(s,{prop:"cjdhB",label:"一体化设备运行能耗表(招标要求)"})]),_:1}),Object(n["createVNode"])(s,{prop:"date",label:"日总电耗(kW.h)"},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(s,{prop:"rzdhA",label:"一体化设备运行能耗表(我方建议)"}),Object(n["createVNode"])(s,{prop:"rzdhB",label:"一体化设备运行能耗表(招标要求)"})]),_:1}),Object(n["createVNode"])(s,{prop:"date",label:"日吨水总电耗(kW.h/m3)"},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(s,{prop:"rdszdhA",label:"一体化设备运行能耗表(我方建议)"}),Object(n["createVNode"])(s,{prop:"rdszdhB",label:"一体化设备运行能耗表(招标要求)"})]),_:1}),Object(n["createVNode"])(s,{prop:"date",label:"吨水电费(元/m3)"},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(s,{prop:"ddsfA",label:"一体化设备运行能耗表(我方建议)"}),Object(n["createVNode"])(s,{prop:"ddsfB",label:"一体化设备运行能耗表(招标要求)"})]),_:1})]),_:1},8,["data","span-method"])),[[d,i.listLoading]]),t[0]||(t[0]=Object(n["createElementVNode"])("pre",null," 备注: (1)耗电系数取0.8电费按0.6元/度计;\n (2)整套设备中,主要耗电设备为水泵、风机;\n (3)加药计量泵功率16W、药剂投加投加费用仅为出水不达标时补充未计入能耗。\n\n\n ",-1))])}o("14d9"),o("093a");var i={data(){return{tableData:[],lazy:!0,layout:"total, sizes, prev, pager, next, jumper",total:0,background:!0,listLoading:!1,elementLoadingText:"正在加载...",queryForm:{projectId:""}}},created(){this.queryForm.projectId=sessionStorage.getItem("projectId"),this.fetchData()},methods:{objectSpanMethod(e){let{column:t,rowIndex:o,columnIndex:n}=e;if(0===n||n>=8)return o%3===0?{rowspan:3,colspan:1}:{rowspan:0,colspan:0}},async fetchData(){let e=[["68","风机","0.9","1.8","21.6","29.64","0.44 ","0.21 "],["68","搅拌器","0.85","0.85","2.04","","",""],["68","水泵","0.25","0.5","6","","",""],["100","风机","1.29","2.58","30.96","39","0.39 ","0.19 "],["100","搅拌器","0.85","0.85","2.04","","",""],["100","水泵","0.25","0.5","6","","",""],["20","风机","0.35","0.7","8.4","16.44","0.82 ","0.39 "],["20","搅拌器","0.85","0.85","2.04","","",""],["20","水泵","0.25","0.5","6","","",""],["93","风机","1.29","2.58","30.96","39","0.42 ","0.20 "],["93","搅拌器","0.85","0.85","2.04","","",""],["93","水泵","0.25","0.5","6","","",""],["45","风机","0.56","1.12","13.44","21.48","0.48 ","0.23 "],["45","搅拌器","0.85","0.85","2.04","","",""],["45","水泵","0.25","0.5","6","","",""],["135","1.8","3.6","43.2","51.24","0.38 ","0.18 "],["135","搅拌器","0.85","0.85","2.04","","",""],["135","水泵","0.25","0.5","6","","",""],["19","风机","0.35","0.7","8.4","16.44","0.87 ","0.42 "],["19","搅拌器","0.85","0.85","2.04","","",""],["19","水泵","0.25","0.5","6","","",""],["44","风机","0.56","1.12","13.44","21.48","0.49 ","0.23 "],["44","搅拌器","0.85","0.85","2.04","","",""],["44","水泵","0.25","0.5","6","","",""],["46","风机","0.56","1.12","13.44","21.48","0.47 ","0.22 "],["46","搅拌器","0.85","0.85","2.04","","",""],["46","水泵","0.25","0.5","6","","",""],["168","2.19","4.38","52.56","60.6","0.36 ","0.17 "],["168","搅拌器","0.85","0.85","2.04","","",""],["168","水泵","0.25","0.5","6","","",""],["23","风机","0.33","0.66","7.92","15.96","0.69 ","0.33 "],["23","搅拌器","0.85","0.85","2.04","","",""],["23","水泵","0.25","0.5","6","","",""],["136","风机","1.8","3.6","43.2","51.24","0.38 ","0.18 "],["136","搅拌器","0.85","0.85","2.04","","",""],["136","水泵","0.25","0.5","6","","",""],["59","风机","0.33","0.8","7.92","15.96","0.27 ","0.13 "],["59","搅拌器","0.85","0.85","2.04","","",""],["59","水泵","0.25","0.5","6","","",""]],t=[];e.forEach(e=>{let o={cll:e[0],zydl:e[1],daglA:e[2],zjglA:e[3],cjdhA:e[4],rzdhA:e[5],rdszdhA:e[6],ddsfA:e[7]};t.push(o)});let o=[["风机","0.95","1.9","22.8","35.16","0.52 ","0.25 "],["搅拌器","0.85","0.85","2.04","","",""],["水泵","0.43","0.86","10.32","","",""],["风机","2.05","4.1","49.2","60.12","0.60 ","0.29 "],["搅拌器","0.85","0.85","2.04","","",""],["水泵","0.37","0.74","8.88","","",""],["风机","0.83","1.66","19.92","26.76","1.34 ","0.64 "],["搅拌器","0.85","0.85","2.04","","",""],["水泵","0.2","0.4","4.8","","",""],["风机","2.05","4.1","49.2","64.44","0.69 ","0.33 "],["搅拌器","0.85","0.85","2.04","","",""],["水泵","0.55","1.1","13.2","","",""],["风机","0.95","1.9","22.8","38.04","0.85 ","0.41 "],["搅拌器","0.85","0.85","2.04","","",""],["水泵","0.55","1.1","13.2","","",""],["风机","2.2","4.4","52.8","68.04","0.50 ","0.24 "],["搅拌器","0.85","0.85","2.04","","",""],["水泵","0.55","1.1","13.2","","",""],["风机","0.83","1.66","19.92","35.16","1.85 ","0.89 "],["搅拌器","0.85","0.85","2.04","","",""],["水泵","0.55","1.1","13.2","","",""],["风机","0.95","1.9","22.8","38.04","0.86 ","0.41 "],["搅拌器","0.85","0.85","2.04","","",""],["水泵","0.55","1.1","13.2","","",""],["风机","0.95","1.9","22.8","38.04","0.83 ","0.40 "],["搅拌器","0.85","0.85","2.04","","",""],["水泵","0.55","1.1","13.2","","",""],["风机","2.55","5.1","61.2","76.44","0.46 ","0.22 "],["搅拌器","0.85","0.85","2.04","","",""],["水泵","0.55","1.1","13.2","","",""],["风机","0.83","1.66","19.92","35.16","1.53 ","0.73 "],["搅拌器","0.85","0.85","2.04","","",""],["水泵","0.55","1.1","13.2","","",""],["风机","2.2","4.4","52.8","68.04","0.50 ","0.24 "],["搅拌器","0.85","0.85","2.04","","",""],["水泵","0.55","1.1","13.2","","",""],["风机","0.95","0.8","22.8","38.04","0.64 ","0.31 "],["搅拌器","0.85","0.85","2.04","","",""],["水泵","0.55","1.1","13.2","","",""]];o.forEach((e,o)=>{let n={daglB:e[1],zjglB:e[2],cjdhB:e[3],rzdhB:e[4],rdszdhB:e[5],ddsfB:e[6],...t[o]};t[o]=n}),console.log(t),this.tableData=t},handleLive(e){this.$router.push({path:"/fluoriteSensorData",name:"监控视频",query:{account:e.account,deviceSerial:e.deviceSerial}})}}},l=(o("c4ac"),o("d959")),s=o.n(l);const c=s()(i,[["render",r]]);t["default"]=c},"55c3":function(e,t,o){},5607:function(e,t,o){},5663:function(e,t,o){"use strict";o.r(t);var n=o("f2bf");const a={class:"manage-container"},r={class:"manage-wrap",style:{height:"40px"}},i={class:"manage-input"},l={style:{padding:"10px",border:"1px solid #ebeef5",margin:"10px 0"}},s={class:"dialog-footer"};function c(e,t,o,c,d,u){const m=Object(n["resolveComponent"])("el-date-picker"),h=Object(n["resolveComponent"])("el-form-item"),p=Object(n["resolveComponent"])("vab-query-form"),b=Object(n["resolveComponent"])("el-form"),g=Object(n["resolveComponent"])("el-button"),f=Object(n["resolveComponent"])("el-checkbox"),v=Object(n["resolveComponent"])("el-checkbox-group"),w=Object(n["resolveComponent"])("el-table-column"),k=Object(n["resolveComponent"])("el-table"),C=Object(n["resolveComponent"])("el-pagination"),y=Object(n["resolveComponent"])("el-divider"),O=Object(n["resolveComponent"])("el-input"),j=Object(n["resolveComponent"])("el-col"),x=Object(n["resolveComponent"])("el-row"),_=Object(n["resolveComponent"])("el-dialog"),V=Object(n["resolveDirective"])("loading");return Object(n["openBlock"])(),Object(n["createElementBlock"])("div",a,[Object(n["createElementVNode"])("div",r,[Object(n["createElementVNode"])("div",i,[Object(n["createVNode"])(b,{ref:"form",model:d.queryForm,"label-width":"80px"},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(p,null,{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(h,{width:"100",prop:"month",label:"时间选择"},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(m,{modelValue:d.date,"onUpdate:modelValue":t[0]||(t[0]=e=>d.date=e),size:"small",type:"daterange","range-separator":"至","start-placeholder":"开始日期","end-placeholder":"结束日期",onChange:u.standardToTime},null,8,["modelValue","onChange"])]),_:1})]),_:1})]),_:1},8,["model"])]),Object(n["createElementVNode"])("div",null,[Object(n["createVNode"])(g,{type:"primary",size:"small",onClick:u.init},{default:Object(n["withCtx"])(()=>[Object(n["createTextVNode"])(Object(n["toDisplayString"])(e.$t("defalult.cx")),1)]),_:1},8,["onClick"])])]),Object(n["createElementVNode"])("div",l,[t[8]||(t[8]=Object(n["createElementVNode"])("div",{style:{float:"left","margin-right":"10px"}},"配置显示项:",-1)),Object(n["createVNode"])(v,{modelValue:d.checkList,"onUpdate:modelValue":t[1]||(t[1]=e=>d.checkList=e)},{default:Object(n["withCtx"])(()=>[(Object(n["openBlock"])(!0),Object(n["createElementBlock"])(n["Fragment"],null,Object(n["renderList"])(d.deviceList,e=>(Object(n["openBlock"])(),Object(n["createBlock"])(f,{label:e.deviceId},{default:Object(n["withCtx"])(()=>[Object(n["createTextVNode"])(Object(n["toDisplayString"])(e.deviceName),1)]),_:2},1032,["label"]))),256))]),_:1},8,["modelValue"])]),Object(n["createVNode"])(g,{type:"primary",onClick:u.add},{default:Object(n["withCtx"])(()=>t[9]||(t[9]=[Object(n["createTextVNode"])("新增")])),_:1},8,["onClick"]),Object(n["withDirectives"])((Object(n["openBlock"])(),Object(n["createBlock"])(k,{data:d.tableData,style:{width:"100%",margin:"10px 0"}},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(w,{align:"center",label:"基础项"},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(w,{label:e.$t("defalult.rq"),width:"120"},{default:Object(n["withCtx"])(({row:e})=>[Object(n["createTextVNode"])(Object(n["toDisplayString"])(e.basic["date"]),1)]),_:1},8,["label"]),Object(n["createVNode"])(w,{label:"进水COD",width:"100"},{default:Object(n["withCtx"])(({row:e})=>[Object(n["createTextVNode"])(Object(n["toDisplayString"])(e.basic["inCod"]),1)]),_:1}),Object(n["createVNode"])(w,{label:"进水氨氮",width:"100"},{default:Object(n["withCtx"])(({row:e})=>[Object(n["createTextVNode"])(Object(n["toDisplayString"])(e.basic["inAn"]),1)]),_:1}),Object(n["createVNode"])(w,{label:"进水TN",width:"100"},{default:Object(n["withCtx"])(({row:e})=>[Object(n["createTextVNode"])(Object(n["toDisplayString"])(e.basic["inTn"]),1)]),_:1}),Object(n["createVNode"])(w,{label:"进水TP",width:"100"},{default:Object(n["withCtx"])(({row:e})=>[Object(n["createTextVNode"])(Object(n["toDisplayString"])(e.basic["inTp"]),1)]),_:1})]),_:1}),(Object(n["openBlock"])(!0),Object(n["createElementBlock"])(n["Fragment"],null,Object(n["renderList"])(d.deviceList,e=>(Object(n["openBlock"])(),Object(n["createElementBlock"])(n["Fragment"],null,[d.checkList.includes(e.deviceId)?(Object(n["openBlock"])(),Object(n["createBlock"])(w,{key:0,align:"center",label:e.deviceName},{default:Object(n["withCtx"])(()=>[(Object(n["openBlock"])(!0),Object(n["createElementBlock"])(n["Fragment"],null,Object(n["renderList"])(e.configuration,t=>(Object(n["openBlock"])(),Object(n["createBlock"])(w,{label:t.value,key:t},{default:Object(n["withCtx"])(({row:o})=>[Object(n["createTextVNode"])(Object(n["toDisplayString"])(o[e.deviceId][t.name]),1)]),_:2},1032,["label"]))),128))]),_:2},1032,["label"])):Object(n["createCommentVNode"])("",!0)],64))),256)),Object(n["createVNode"])(w,{fixed:"right",width:"120",label:e.$t("defalult.cz"),align:"center"},{default:Object(n["withCtx"])(({row:t})=>[Object(n["createVNode"])(g,{type:"text",onClick:e=>u.handleClick(t)},{default:Object(n["withCtx"])(()=>[Object(n["createTextVNode"])(Object(n["toDisplayString"])(e.$t("defalult.bj")),1)]),_:2},1032,["onClick"]),Object(n["createVNode"])(g,{type:"text",onClick:e=>u.handleDelete(t)},{default:Object(n["withCtx"])(()=>[Object(n["createTextVNode"])(Object(n["toDisplayString"])(e.$t("defalult.sc")),1)]),_:2},1032,["onClick"])]),_:1},8,["label"])]),_:1},8,["data"])),[[V,d.listLoading]]),Object(n["createVNode"])(C,{background:d.background,"current-page":d.queryForm.page,layout:d.layout,"page-size":d.queryForm.size,total:d.total,style:{"text-align":"right"},onCurrentChange:u.handleCurrentChange,onSizeChange:u.handleSizeChange},null,8,["background","current-page","layout","page-size","total","onCurrentChange","onSizeChange"]),Object(n["createVNode"])(_,{modelValue:d.dialogFormVisible,"onUpdate:modelValue":t[7]||(t[7]=e=>d.dialogFormVisible=e),title:d.title,width:"90%",onClose:e.close},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(b,{ref:"form",model:d.form,rules:d.rules,"label-width":"80px"},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(x,null,{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(j,{span:24},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(y,{"content-position":"left"},{default:Object(n["withCtx"])(()=>t[10]||(t[10]=[Object(n["createTextVNode"])("基础项")])),_:1}),Object(n["createVNode"])(h,{label:e.$t("defalult.rq"),prop:"date"},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(m,{modelValue:d.form["basic"]["date"],"onUpdate:modelValue":t[2]||(t[2]=e=>d.form["basic"]["date"]=e),type:"date",placeholder:e.$t("defalult.xzrq")},null,8,["modelValue","placeholder"])]),_:1},8,["label"]),Object(n["createVNode"])(x,null,{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(j,{style:{display:"flex"}},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(h,{class:"",label:"进水COD",prop:"inCod"},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(O,{modelValue:d.form["basic"]["inCod"],"onUpdate:modelValue":t[3]||(t[3]=e=>d.form["basic"]["inCod"]=e),modelModifiers:{trim:!0},autocomplete:"off",class:"inputWith"},null,8,["modelValue"])]),_:1}),Object(n["createVNode"])(h,{label:"进水氨氮",prop:"inAn"},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(O,{modelValue:d.form["basic"]["inAn"],"onUpdate:modelValue":t[4]||(t[4]=e=>d.form["basic"]["inAn"]=e),modelModifiers:{trim:!0},autocomplete:"off",class:"inputWith"},null,8,["modelValue"])]),_:1}),Object(n["createVNode"])(h,{label:"进水TN",prop:"inTn"},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(O,{modelValue:d.form["basic"]["inTn"],"onUpdate:modelValue":t[5]||(t[5]=e=>d.form["basic"]["inTn"]=e),modelModifiers:{trim:!0},autocomplete:"off",class:"inputWith"},null,8,["modelValue"])]),_:1}),Object(n["createVNode"])(h,{label:"进水TP",prop:"inTp"},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(O,{modelValue:d.form["basic"]["inTp"],"onUpdate:modelValue":t[6]||(t[6]=e=>d.form["basic"]["inTp"]=e),modelModifiers:{trim:!0},autocomplete:"off",class:"inputWith"},null,8,["modelValue"])]),_:1})]),_:1})]),_:1})]),_:1}),(Object(n["openBlock"])(!0),Object(n["createElementBlock"])(n["Fragment"],null,Object(n["renderList"])(d.deviceList,e=>(Object(n["openBlock"])(),Object(n["createBlock"])(x,null,{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(y,{"content-position":"left"},{default:Object(n["withCtx"])(()=>[Object(n["createTextVNode"])(Object(n["toDisplayString"])(e.deviceName),1)]),_:2},1024),(Object(n["openBlock"])(!0),Object(n["createElementBlock"])(n["Fragment"],null,Object(n["renderList"])(e.configuration,t=>(Object(n["openBlock"])(),Object(n["createBlock"])(h,{label:t.value},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(O,{autocomplete:"off",modelValue:d.form[e.deviceId][t.name],"onUpdate:modelValue":o=>d.form[e.deviceId][t.name]=o,modelModifiers:{trim:!0},class:"inputWith"},null,8,["modelValue","onUpdate:modelValue"])]),_:2},1032,["label"]))),256))]),_:2},1024))),256))]),_:1})]),_:1},8,["model","rules"]),Object(n["createElementVNode"])("div",s,[Object(n["createVNode"])(g,{type:"primary",size:"small",onClick:u.save},{default:Object(n["withCtx"])(()=>t[11]||(t[11]=[Object(n["createTextVNode"])("保 存")])),_:1},8,["onClick"]),Object(n["createVNode"])(g,{size:"small",onClick:e.close},{default:Object(n["withCtx"])(()=>t[12]||(t[12]=[Object(n["createTextVNode"])("取 消")])),_:1},8,["onClick"])])]),_:1},8,["modelValue","title","onClose"])])}var d=o("94b0"),u={name:"Manage",components:{},data(){return{roleData:[],checkList:[],deviceList:[],tableData:[],rules:[],dialogFormVisible:!1,form:{},date:[],title:"",lazy:!0,activeName:"first",layout:"total, sizes, prev, pager, next, jumper",total:0,background:!0,listLoading:!1,elementLoadingText:"正在加载...",queryForm:{page:1,size:20,date:""}}},mounted(){this.initData()},computed:{height(){return 500},getLabel(e){return"fasdfd"}},methods:{handleSizeChange(e){this.queryForm.size=e,this.init()},handleCurrentChange(e){this.queryForm.page=e,this.init()},formatDate(e,t="YYYY-MM-DD HH:mm:ss"){const o=e.getFullYear(),n=("0"+(e.getMonth()+1)).slice(-2),a=("0"+e.getDate()).slice(-2),r=("0"+e.getHours()).slice(-2),i=("0"+e.getMinutes()).slice(-2),l=("0"+e.getSeconds()).slice(-2);return t.replace("YYYY",o).replace("MM",n).replace("DD",a).replace("HH",r).replace("mm",i).replace("ss",l)},standardToTime(e){e?(this.queryForm.startTime=this.formatDate(e[0],"YYYY-MM-DD"),this.queryForm.endTime=this.formatDate(e[1],"YYYY-MM-DD")):(this.queryForm.startTime=null,this.queryForm.endTime=null),this.init()},init(){Object(d["haianList"])(this.queryForm).then(e=>{console.log(e.data),this.tableData=e.data.items,this.total=e.data.total})},initData(){Object(d["HianDevice"])().then(e=>{this.deviceList=e.data,this.checkList=this.deviceList.map(e=>e.deviceId),this.init()})},add(){this.reSetForm(),this.title="新增",this.dialogFormVisible=!0},reSetForm(){this.form={basic:{date:null,inCod:null,inAn:null,inTn:null,inTp:null}},this.deviceList.forEach(e=>{this.form[e.deviceId]={},e.configuration.forEach(t=>{this.form[e.deviceId][t.name]=null})}),console.log(this.form)},save(){var e;console.log(this.form),null!=this.form.basic.date&&null!=this.form.basic.inCod&&null!=this.form.basic.inAn&&null!=this.form.basic.inTn&&null!=this.form.basic.inTp?null!==(e=this.form.basic)&&void 0!==e&&e.id?Object(d["saveHian"])(this.form).then(e=>{this.init(),this.$message.success("保存成功"),this.dialogFormVisible=!1}):Object(d["addHian"])(this.form).then(e=>{this.init(),this.$message.success("新增成功"),this.dialogFormVisible=!1}):this.$message.error("基础数据必填")},handleDelete(e){e.basic.id&&this.$confirm("你确定要删除当前项吗?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(()=>{Object(d["delHian"])(e.basic.id).then(e=>{this.init(),this.$message({type:"success",message:"删除成功"})})}).catch(()=>{this.$message({type:"info",message:"已取消删除"})})},handleClick(e){this.reSetForm(),this.title="修改",this.form=JSON.parse(JSON.stringify(e)),this.dialogFormVisible=!0}}},m=(o("06dc"),o("75bb"),o("d959")),h=o.n(m);const p=h()(u,[["render",c],["__scopeId","data-v-16282290"]]);t["default"]=p},5691:function(e,t,o){e.exports=o.p+"static/img/login_wrap.2259fb09.png"},"56c3":function(e,t,o){"use strict";o("32be")},5715:function(e,t,o){"use strict";o.r(t);var n=o("f2bf");const a={class:"manage-container"};function r(e,t,o,r,i,l){const s=Object(n["resolveComponent"])("basic-index"),c=Object(n["resolveComponent"])("el-tab-pane"),d=Object(n["resolveComponent"])("resetting-index"),u=Object(n["resolveComponent"])("el-tabs");return Object(n["openBlock"])(),Object(n["createElementBlock"])("div",a,[Object(n["createVNode"])(u,{modelValue:i.activeName,"onUpdate:modelValue":t[0]||(t[0]=e=>i.activeName=e),onTabClick:l.handleClick},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(c,{label:"基本资料",name:"first"},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(s,{ref:"basic"},null,512)]),_:1}),Object(n["createVNode"])(c,{label:"修改密码",name:"second"},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(d,{ref:"resetting"},null,512)]),_:1})]),_:1},8,["modelValue","onTabClick"])])}var i=o("b547"),l=o("5fcd"),s={components:{resettingIndex:i["default"],basicIndex:l["default"]},data(){return{activeName:"first",form:{name:"",gender:"",tel:"",mail:"",department:"",role:"",date:"",password1:"",password2:"",password3:""}}},methods:{handleClick(e,t){"first"==e.paneName?this.$refs["basic"].showData():"second"==e.paneName&&this.$refs["resetting"].showData()}}},c=(o("3cdb"),o("0d18"),o("d959")),d=o.n(c);const u=d()(s,[["render",r],["__scopeId","data-v-517500bc"]]);t["default"]=u},5717:function(e,t,o){},5766:function(e,t,o){},"57c5":function(e,t,o){"use strict";o("6593")},5847:function(e,t,o){"use strict";o.r(t),o.d(t,"knowledgeEditorConfig",(function(){return n}));const n={language:"zh-cn",fontFamily:{},fontSize:{options:[9,11,13,"default",17,19,21],supportAllValues:!0},toolbar:["heading","|","bold","italic","Link","bulletedList","numberedList","alignment","|","fontFamily","fontSize","fontColor","fontBackgroundColor","highlight","|","blockQuote","|","undo","redo"]}},5883:function(e,t,o){"use strict";o.r(t);var n=o("f2bf");const a={class:"manage-container"},r={class:"manage-wrap"},i={class:"manage-input"},l={class:"manage-button"};function s(e,t,o,s,c,d){const u=Object(n["resolveComponent"])("el-input"),m=Object(n["resolveComponent"])("el-form-item"),h=Object(n["resolveComponent"])("el-date-picker"),p=Object(n["resolveComponent"])("vab-query-form"),b=Object(n["resolveComponent"])("el-form"),g=Object(n["resolveComponent"])("el-button"),f=Object(n["resolveComponent"])("el-table-column"),v=Object(n["resolveComponent"])("el-table"),w=Object(n["resolveComponent"])("el-pagination"),k=Object(n["resolveComponent"])("water-graph"),C=Object(n["resolveDirective"])("loading");return Object(n["openBlock"])(),Object(n["createElementBlock"])("div",a,[Object(n["createElementVNode"])("div",r,[Object(n["createElementVNode"])("div",i,[Object(n["createVNode"])(b,{ref:"queryForm",model:c.queryForm,"label-width":"80px"},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(p,null,{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(m,{width:"100",prop:"deviceName",label:e.$t("dataEnquiry.zdmc")},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(u,{modelValue:c.queryForm.deviceName,"onUpdate:modelValue":t[0]||(t[0]=e=>c.queryForm.deviceName=e),size:"small",placeholder:e.$t("dataEnquiry.qsrzdmc")},null,8,["modelValue","placeholder"])]),_:1},8,["label"]),Object(n["createVNode"])(m,{width:"100",prop:"month",label:e.$t("defalult.sj")},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(h,{modelValue:c.queryForm.month,"onUpdate:modelValue":t[1]||(t[1]=e=>c.queryForm.month=e),size:"small",type:"month",placeholder:e.$t("dfunction.xzsj"),onChange:d.standardToTime},null,8,["modelValue","placeholder","onChange"])]),_:1},8,["label"])]),_:1})]),_:1},8,["model"])]),Object(n["createElementVNode"])("div",l,[Object(n["createVNode"])(g,{size:"small",onClick:t[2]||(t[2]=e=>d.resetForm())},{default:Object(n["withCtx"])(()=>[Object(n["createTextVNode"])(Object(n["toDisplayString"])(e.$t("defalult.chongz")),1)]),_:1}),Object(n["createVNode"])(g,{type:"primary",size:"small",onClick:d.search},{default:Object(n["withCtx"])(()=>[Object(n["createTextVNode"])(Object(n["toDisplayString"])(e.$t("defalult.cx")),1)]),_:1},8,["onClick"]),Object(n["createVNode"])(g,{type:"primary",size:"small",onClick:d.exportData},{default:Object(n["withCtx"])(()=>[Object(n["createTextVNode"])(Object(n["toDisplayString"])(e.$t("defalult.dc")),1)]),_:1},8,["onClick"])])]),Object(n["withDirectives"])((Object(n["openBlock"])(),Object(n["createBlock"])(v,{ref:"multipleTable",data:c.reportData,border:"","tooltip-effect":"light",style:{width:"100%"}},{default:Object(n["withCtx"])(()=>[(Object(n["openBlock"])(!0),Object(n["createElementBlock"])(n["Fragment"],null,Object(n["renderList"])(c.headerData,(e,t)=>(Object(n["openBlock"])(),Object(n["createBlock"])(f,{key:t,label:e,prop:e,fixed:"站点名称"==e,align:"center",width:"150"},null,8,["label","prop","fixed"]))),128)),Object(n["createVNode"])(f,{fixed:"right",label:e.$t("defalult.cz"),align:"center"},{default:Object(n["withCtx"])(({row:t})=>[Object(n["createVNode"])(g,{type:"text",onClick:e=>d.graph(t)},{default:Object(n["withCtx"])(()=>[Object(n["createTextVNode"])(Object(n["toDisplayString"])(e.$t("defalult.qxt")),1)]),_:2},1032,["onClick"])]),_:1},8,["label"])]),_:1},8,["data"])),[[C,c.listLoading]]),Object(n["createVNode"])(w,{background:c.background,"current-page":c.queryForm.page,layout:c.layout,"page-size":c.queryForm.size,total:c.total,style:{"text-align":"right"},onCurrentChange:d.handleCurrentChange,onSizeChange:d.handleSizeChange},null,8,["background","current-page","layout","page-size","total","onCurrentChange","onSizeChange"]),Object(n["createVNode"])(k,{ref:"water"},null,512)])}o("14d9");var c=o("94b0"),d=o("3038"),u=o("4b95"),m={components:{waterGraph:u["default"]},data(){return{reportData:[],headerData:{},lazy:!0,activeName:"first",layout:"total, sizes, prev, pager, next, jumper",total:0,input:"",textarea:"",background:!0,listLoading:!0,elementLoadingText:"正在加载...",queryForm:{page:1,size:20,month:"",projectId:"",deviceName:""}}},computed:{height(){return 500}},created(){},methods:{graph(e){console.log(e),this.$refs["water"].showData(e,"elecChar")},getDate(e=""){var t=new Date;""!=e&&(t=new Date(e));const o=t.getFullYear();let n=t.getMonth();return n+=1,n=n.toString().padStart(2,"0"),`${o}-${n}`},standardToTime(){this.queryForm.month=this.getDate(this.queryForm.month)},setDefaultTime(){this.queryForm.month=this.getDate()},async exportData(){const e=await Object(c["elecDayExport"])(this.queryForm);d["default"].downloadFile(e,{fileName:"电量日报.xls"})},async fetchData(){this.listLoading=!0;const{data:e}=await Object(c["elecDay"])(this.queryForm),t=e.items;for(var o=[],n=0;n<t.length;n++)o.push(t[n]);this.reportData=e.items,this.headerData=Object.keys(o[0]),this.total=e.total,setTimeout(()=>{this.listLoading=!1},500)},showData(){this.setDefaultTime(),this.queryForm.projectId=sessionStorage.getItem("projectId"),setTimeout(()=>{this.fetchData()},1e3)},search(){this.fetchData()},resetForm(){this.$refs.queryForm.resetFields()},handleAdd(){this.$refs["edit"].showEdit()},handleEdit(e){this.$refs["edit"].showEdit(e)},handleQuery(){this.queryForm.page=1,this.fetchData()},handleSizeChange(e){this.queryForm.size=e,this.fetchData()},handleCurrentChange(e){this.queryForm.page=e,this.fetchData()}}},h=(o("3d5a8"),o("d959")),p=o.n(h);const b=p()(m,[["render",s],["__scopeId","data-v-76b1b5a2"]]);t["default"]=b},5972:function(e,t,o){},"59a3":function(e,t,o){e.exports={"menu-color":"hsla(0,0%,27%,.95)","menu-color-active":"hsla(208,100%,55%,.95)","menu-background":"#fff","gallery-second-menu-background":"#fff"}},"59bb":function(e,t,o){},"5a04":function(e,t,o){"use strict";o("3e76")},"5abc":function(e,t,o){"use strict";o.r(t);var n=o("f2bf");const a={class:"manage-container"};function r(e,t,o,r,i,l){const s=Object(n["resolveComponent"])("alarm"),c=Object(n["resolveComponent"])("el-tab-pane"),d=Object(n["resolveComponent"])("mains"),u=Object(n["resolveComponent"])("other"),m=Object(n["resolveComponent"])("el-tabs");return Object(n["openBlock"])(),Object(n["createElementBlock"])("div",a,[Object(n["createVNode"])(m,{modelValue:i.activeName,"onUpdate:modelValue":t[0]||(t[0]=e=>i.activeName=e),onTabClick:l.handleClick},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(c,{label:e.$t("task.gjrw"),name:"first"},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(s,{ref:"alarm"},null,512)]),_:1},8,["label"]),Object(n["createVNode"])(c,{label:e.$t("task.wbrw"),name:"second"},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(d,{ref:"main"},null,512)]),_:1},8,["label"]),Object(n["createVNode"])(c,{label:e.$t("task.qtrw"),name:"third"},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(u,{ref:"other"},null,512)]),_:1},8,["label"])]),_:1},8,["modelValue","onTabClick"])])}var i=o("bccb"),l=o("63d2"),s=o("0023"),c={components:{alarm:i["default"],mains:l["default"],other:s["default"]},data(){return{activeName:"first"}},methods:{handleClick(e,t){"first"==e.paneName?this.$refs["alarm"].alarmIndex():"second"==e.paneName?this.$refs["main"].mainIndex():"third"==e.paneName&&this.$refs["other"].otherIndex()}}},d=(o("12fa"),o("d959")),u=o.n(d);const m=u()(c,[["render",r]]);t["default"]=m},"5b46":function(e,t,o){"use strict";o.r(t);var n=o("f2bf");const a={class:"manage-button"};function r(e,t,o,r,i,l){const s=Object(n["resolveComponent"])("el-button"),c=Object(n["resolveComponent"])("el-table-column"),d=Object(n["resolveComponent"])("el-switch"),u=Object(n["resolveComponent"])("el-table"),m=Object(n["resolveComponent"])("el-pagination"),h=Object(n["resolveComponent"])("menu-edit"),p=Object(n["resolveDirective"])("loading");return Object(n["openBlock"])(),Object(n["createElementBlock"])(n["Fragment"],null,[Object(n["createElementVNode"])("div",a,[Object(n["createVNode"])(s,{icon:"el-icon-plus",type:"primary",size:"small",onClick:t[0]||(t[0]=e=>l.handleAdd())},{default:Object(n["withCtx"])(()=>t[1]||(t[1]=[Object(n["createTextVNode"])(" 添加 ")])),_:1})]),Object(n["withDirectives"])((Object(n["openBlock"])(),Object(n["createBlock"])(u,{ref:"tableSort",data:i.list,"element-loading-text":i.elementLoadingText,height:l.height,"row-key":"id",lazy:i.lazy,"tree-props":{children:"children",hasChildren:"hasChildren"},onSelectionChange:l.setSelectRows},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(c,{prop:"id",label:"ID",width:"80",align:"center"}),Object(n["createVNode"])(c,{prop:"name",label:"菜单名称",width:"200",align:"center"}),Object(n["createVNode"])(c,{prop:"status",label:e.$t("dataEnquiry.zt"),align:"center"},{default:Object(n["withCtx"])(e=>[Object(n["createVNode"])(d,{modelValue:e.row.status,"onUpdate:modelValue":t=>e.row.status=t,"active-value":"0","inactive-value":"1",onClick:t=>l.menuStatus(e.row.status,e.row.id)},null,8,["modelValue","onUpdate:modelValue","onClick"])]),_:1},8,["label"]),Object(n["createVNode"])(c,{prop:"path",label:"路径",width:"200",align:"center"}),Object(n["createVNode"])(c,{prop:"component",label:"路由",width:"200",align:"center"}),Object(n["createVNode"])(c,{prop:"sort",label:"排序",width:"200",align:"center"}),Object(n["createVNode"])(c,{label:e.$t("defalult.cz"),align:"center"},{default:Object(n["withCtx"])(({row:t})=>[Object(n["createVNode"])(s,{type:"text",onClick:e=>l.handleEdit(t)},{default:Object(n["withCtx"])(()=>[Object(n["createTextVNode"])(Object(n["toDisplayString"])(e.$t("defalult.bj")),1)]),_:2},1032,["onClick"]),Object(n["createVNode"])(s,{type:"text",onClick:e=>l.handleDelete(t)},{default:Object(n["withCtx"])(()=>[Object(n["createTextVNode"])(Object(n["toDisplayString"])(e.$t("defalult.sc")),1)]),_:2},1032,["onClick"])]),_:1},8,["label"])]),_:1},8,["data","element-loading-text","height","lazy","onSelectionChange"])),[[p,i.listLoading]]),Object(n["createVNode"])(m,{background:i.background,"current-page":i.queryForm.pageNo,layout:i.layout,"page-size":i.queryForm.pageSize,total:i.total,style:{"text-align":"right"},onCurrentChange:l.handleCurrentChange,onSizeChange:l.handleSizeChange},null,8,["background","current-page","layout","page-size","total","onCurrentChange","onSizeChange"]),Object(n["createVNode"])(h,{ref:"edit"},null,512)],64)}var i=o("1f27"),l=o("48fa"),s={name:"ManageIndex",components:{menuEdit:l["default"]},data(){return{roleData:[],lazy:!0,activeName:"first",layout:"total, sizes, prev, pager, next, jumper",total:0,input:"",textarea:"",list:[],background:!0,listLoading:!0,elementLoadingText:"正在加载...",queryForm:{page:1,size:20,name:""}}},computed:{height(){return 500}},methods:{showMenu(){this.fetchData()},async menuStatus(e,t){const{code:o,msg:n}=await Object(i["doEdit"])({status:e,id:t});0==o?this.$notify({title:n,type:"success"}):this.$notify.error({title:n}),this.fetchData()},setSelectRows(e){this.selectRows=e},async fetchData(){this.listLoading=!0;const{data:e,totalCount:t}=await Object(i["getList"])(this.queryForm);console.log(e),this.list=e,this.total=t,setTimeout(()=>{this.listLoading=!1},500)},handleAdd(){this.$refs["edit"].showEdit()},handleEdit(e){this.$refs["edit"].showEdit(e)},handleQuery(){this.queryForm.pageNo=1,this.fetchData()},handleSizeChange(e){this.queryForm.pageSize=e,this.fetchData()},handleCurrentChange(e){this.queryForm.pageNo=e,this.fetchData()},handleDelete(e){const t=this;e.id&&this.$confirm("你确定要删除当前项吗?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(()=>{const{msg:o}=Object(i["doDelete"])({menuId:e.id});this.$message({type:"success",message:void 0==o?"删除成功":o}),setTimeout((function(){t.fetchData()}),1e3)}).catch(()=>{this.$message({type:"info",message:"已取消删除"})})}}},c=(o("3add"),o("d959")),d=o.n(c);const u=d()(s,[["render",r],["__scopeId","data-v-5879dcd8"]]);t["default"]=u},"5b79":function(e,t,o){"use strict";o.r(t);var n=o("f2bf");const a={class:"dialog-footer"};function r(e,t,o,r,i,l){const s=Object(n["resolveComponent"])("el-input"),c=Object(n["resolveComponent"])("el-form-item"),d=Object(n["resolveComponent"])("el-button"),u=Object(n["resolveComponent"])("el-option"),m=Object(n["resolveComponent"])("el-select"),h=Object(n["resolveComponent"])("el-form"),p=Object(n["resolveComponent"])("el-dialog");return Object(n["openBlock"])(),Object(n["createBlock"])(p,{modelValue:i.dialogFormVisible,"onUpdate:modelValue":t[1]||(t[1]=e=>i.dialogFormVisible=e),title:i.title,width:"500px",onClose:l.close},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(h,{ref:"form",model:i.form,rules:e.rules,"label-width":"80px","label-position":"left"},{default:Object(n["withCtx"])(()=>[Object(n["createElementVNode"])("div",null,[t[2]||(t[2]=Object(n["createElementVNode"])("h3",null,"一级菜单",-1)),Object(n["createVNode"])(c,{label:"菜单名字",prop:"first"},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(s,{modelValue:i.form.name,"onUpdate:modelValue":t[0]||(t[0]=e=>i.form.name=e),size:"small",rows:2,placeholder:"菜单名字"},null,8,["modelValue"])]),_:1})]),Object(n["createElementVNode"])("div",null,[t[5]||(t[5]=Object(n["createElementVNode"])("h3",null,"二级菜单",-1)),Object(n["createVNode"])(d,{type:"primary",size:"small",onClick:l.addField},{default:Object(n["withCtx"])(()=>t[3]||(t[3]=[Object(n["createTextVNode"])(" 添加二级菜单 ")])),_:1},8,["onClick"]),(Object(n["openBlock"])(!0),Object(n["createElementBlock"])(n["Fragment"],null,Object(n["renderList"])(i.form.sub_button,(e,o)=>(Object(n["openBlock"])(),Object(n["createElementBlock"])("div",{key:o},[Object(n["createVNode"])(c,{label:"菜单类型",prop:"type"},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(m,{modelValue:e.type,"onUpdate:modelValue":t=>e.type=t,size:"small",style:{width:"100%"},filterable:"",placeholder:"菜单类型"},{default:Object(n["withCtx"])(()=>[(Object(n["openBlock"])(!0),Object(n["createElementBlock"])(n["Fragment"],null,Object(n["renderList"])(i.typeData,e=>(Object(n["openBlock"])(),Object(n["createBlock"])(u,{key:e.dataCode,style:{width:"100%"},label:e.dataValue,value:e.dataCode},null,8,["label","value"]))),128))]),_:2},1032,["modelValue","onUpdate:modelValue"])]),_:2},1024),Object(n["createVNode"])(c,{label:"菜单名字",prop:"name"},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(s,{modelValue:e.name,"onUpdate:modelValue":t=>e.name=t,size:"small",rows:2,placeholder:"二级菜单名字"},null,8,["modelValue","onUpdate:modelValue"])]),_:2},1024),Object(n["createVNode"])(c,{label:"菜单url",prop:"url"},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(s,{modelValue:e.url,"onUpdate:modelValue":t=>e.url=t,size:"small",type:"textarea",rows:2,placeholder:"菜单url"},null,8,["modelValue","onUpdate:modelValue"])]),_:2},1024),Object(n["createVNode"])(c,null,{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(d,{type:"danger",plain:"",onClick:t=>l.deleteItem(e,o)},{default:Object(n["withCtx"])(()=>t[4]||(t[4]=[Object(n["createTextVNode"])(" 删除 ")])),_:2},1032,["onClick"])]),_:2},1024)]))),128))])]),_:1},8,["model","rules"]),Object(n["createElementVNode"])("div",a,[Object(n["createVNode"])(d,{size:"small",onClick:l.close},{default:Object(n["withCtx"])(()=>t[6]||(t[6]=[Object(n["createTextVNode"])("取 消")])),_:1},8,["onClick"]),Object(n["createVNode"])(d,{type:"primary",size:"small",onClick:l.save},{default:Object(n["withCtx"])(()=>t[7]||(t[7]=[Object(n["createTextVNode"])("确 定")])),_:1},8,["onClick"])])]),_:1},8,["modelValue","title","onClose"])}o("14d9");var i=o("4cfb"),l={data(){return{form:{name:"",sub_button:[]},isFirst:!1,typeData:[],menuData:[],title:"",dialogFormVisible:!1}},created(){},methods:{addField(){this.form.sub_button.push({name:"",type:"",url:""})},async getMenuList(){const{data:e}=await Object(i["getMenuList"])();this.menuData=e},deleteItem(e,t){this.form.sub_button.splice(t,1)},async getMenuTypeData(){const{data:e}=await Object(i["getMenuType"])();this.typeData=e},showEdit(){this.title="添加菜单",this.dialogFormVisible=!0,this.getMenuTypeData(),this.getMenuList()},close(){this.$refs["form"].resetFields(),this.form=this.$options.data().form,this.dialogFormVisible=!1,this.$emit("fetch-data")},save(){this.$refs["form"].validate(async e=>{if(!e)return!1;{this.menuData.push(this.form);const{msg:e}=await Object(i["addMenuPub"])(this.menuData);this.$notify({title:e,type:"success"}),this.$refs["form"].resetFields(),this.dialogFormVisible=!1,this.$parent.fetchData()}})}}},s=o("d959"),c=o.n(s);const d=c()(l,[["render",r]]);t["default"]=d},"5c08":function(e,t,o){},"5ce6":function(e,t,o){},"5e1c":function(e,t,o){"use strict";o.r(t);var n=o("f2bf");const a={class:"manage-container"};function r(e,t,o,r,i,l){const s=Object(n["resolveComponent"])("el-button"),c=Object(n["resolveComponent"])("vab-query-form"),d=Object(n["resolveComponent"])("el-table-column"),u=Object(n["resolveComponent"])("el-table"),m=Object(n["resolveComponent"])("group-edit"),h=Object(n["resolveComponent"])("el-dialog");return Object(n["openBlock"])(),Object(n["createBlock"])(h,{modelValue:i.dialogFormVisible,"onUpdate:modelValue":t[0]||(t[0]=e=>i.dialogFormVisible=e),title:i.title,width:"500px",onClose:l.close},{default:Object(n["withCtx"])(()=>[Object(n["createElementVNode"])("div",a,[Object(n["createVNode"])(c,null,{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(s,{type:"primary",onClick:l.handleAdd},{default:Object(n["withCtx"])(()=>t[1]||(t[1]=[Object(n["createTextVNode"])("添加组")])),_:1},8,["onClick"])]),_:1}),Object(n["createVNode"])(u,{data:i.groupData,border:"",stripe:"",style:{width:"100%"}},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(d,{prop:"id",label:"ID",width:"60",align:"center"}),Object(n["createVNode"])(d,{prop:"name",label:e.$t("grouping.zmc"),width:"120",align:"center"},null,8,["label"]),Object(n["createVNode"])(d,{fixed:"right",label:e.$t("defalult.cz"),align:"center"},{default:Object(n["withCtx"])(({row:t})=>[Object(n["createVNode"])(s,{type:"text",onClick:e=>l.handleDelete(t)},{default:Object(n["withCtx"])(()=>[Object(n["createTextVNode"])(Object(n["toDisplayString"])(e.$t("defalult.sc")),1)]),_:2},1032,["onClick"])]),_:1},8,["label"])]),_:1},8,["data"]),Object(n["createVNode"])(m,{ref:"edit",onRefreshGroup:l.RefreshGroup},null,8,["onRefreshGroup"])])]),_:1},8,["modelValue","title","onClose"])}var i=o("23ba"),l=o("9e4b"),s={name:"Group",components:{groupEdit:l["default"]},data(){return{groupData:[],lazy:!0,activeName:"first",layout:"total, sizes, prev, pager, next, jumper",title:"",dialogFormVisible:!1,total:0,input:"",textarea:"",projectId:"",list:[],background:!0,listLoading:!0,elementLoadingText:"正在加载..."}},computed:{height(){return 500}},created(){},methods:{async fetchData(){this.listLoading=!0;const e={projectId:this.projectId},{data:t}=await Object(i["getList"])(e);this.groupData=t,setTimeout(()=>{this.listLoading=!1},500)},showGroup(e){this.projectId=e.id,this.dialogFormVisible=!0,this.fetchData()},RefreshGroup(e){this.projectId=e,this.fetchData()},handleAdd(){this.$refs["edit"].showEdit(this.projectId)},handleEdit(e){this.$refs["edit"].showEdit(e)},handleQuery(){this.queryForm.page=1,this.fetchData()},handleSizeChange(e){this.queryForm.size=e,this.fetchData()},handleCurrentChange(e){this.queryForm.page=e,this.fetchData()},close(){this.dialogFormVisible=!1,this.$emit("fetch-data")},handleDelete(e){const t=this;e.id&&this.$confirm("你确定要删除当前项吗?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(()=>{const{msg:o}=Object(i["doDelete"])({groupId:e.id});this.$message({type:"success",message:void 0==o?"删除成功":o}),setTimeout((function(){t.fetchData()}),1e3)}).catch(()=>{this.$message({type:"info",message:"已取消删除"})})}}},c=o("d959"),d=o.n(c);const u=d()(s,[["render",r]]);t["default"]=u},"5e49":function(e,t,o){},"5ee6":function(e,t,o){"use strict";o("7370")},"5f07":function(e,t,o){"use strict";o.r(t);var n=o("f2bf");const a={class:"dialog-footer"};function r(e,t,o,r,i,l){const s=Object(n["resolveComponent"])("el-date-picker"),c=Object(n["resolveComponent"])("el-form-item"),d=Object(n["resolveComponent"])("el-option"),u=Object(n["resolveComponent"])("el-select"),m=Object(n["resolveComponent"])("el-input"),h=Object(n["resolveComponent"])("el-form"),p=Object(n["resolveComponent"])("el-button"),b=Object(n["resolveComponent"])("el-dialog");return Object(n["openBlock"])(),Object(n["createBlock"])(b,{modelValue:i.dialogFormVisible,"onUpdate:modelValue":t[10]||(t[10]=e=>i.dialogFormVisible=e),title:i.title,width:"500px",onClose:l.close},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(h,{ref:"form",model:i.form,rules:i.rules,"label-width":"80px","label-position":"left"},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(c,{width:"100",prop:"shelfLife",label:e.$t("maintenance.bzq")},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(s,{modelValue:i.form.shelfLife,"onUpdate:modelValue":t[0]||(t[0]=e=>i.form.shelfLife=e),size:"small",type:"date",placeholder:"选择质保期",onChange:l.standardToTime},null,8,["modelValue","onChange"])]),_:1},8,["label"]),Object(n["createVNode"])(c,{prop:"deviceCode",label:"站点"},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(u,{modelValue:i.form.deviceCode,"onUpdate:modelValue":t[1]||(t[1]=e=>i.form.deviceCode=e),size:"small",filterable:"",placeholder:"站点"},{default:Object(n["withCtx"])(()=>[(Object(n["openBlock"])(!0),Object(n["createElementBlock"])(n["Fragment"],null,Object(n["renderList"])(i.deviceData,e=>(Object(n["openBlock"])(),Object(n["createBlock"])(d,{key:e.code,label:e.name,value:e.code},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),Object(n["createVNode"])(c,{prop:"name",label:e.$t("maintenance.sbmc")},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(u,{modelValue:i.form.name,"onUpdate:modelValue":t[2]||(t[2]=e=>i.form.name=e),size:"small",filterable:"",placeholder:"设备名称"},{default:Object(n["withCtx"])(()=>[(Object(n["openBlock"])(!0),Object(n["createElementBlock"])(n["Fragment"],null,Object(n["renderList"])(i.nameData,e=>(Object(n["openBlock"])(),Object(n["createBlock"])(d,{key:e.dataCode,label:e.dataValue,value:e.dataCode},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1},8,["label"]),Object(n["createVNode"])(c,{prop:"brand",label:e.$t("maintenance.pp")},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(u,{modelValue:i.form.brand,"onUpdate:modelValue":t[3]||(t[3]=e=>i.form.brand=e),size:"small",filterable:"",placeholder:"品牌"},{default:Object(n["withCtx"])(()=>[(Object(n["openBlock"])(!0),Object(n["createElementBlock"])(n["Fragment"],null,Object(n["renderList"])(i.brandData,e=>(Object(n["openBlock"])(),Object(n["createBlock"])(d,{key:e.dataCode,label:e.dataValue,value:e.dataCode},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1},8,["label"]),Object(n["createVNode"])(c,{prop:"supplier",label:e.$t("maintenance.gys")},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(u,{modelValue:i.form.supplier,"onUpdate:modelValue":t[4]||(t[4]=e=>i.form.supplier=e),size:"small",filterable:"",placeholder:"供应商"},{default:Object(n["withCtx"])(()=>[(Object(n["openBlock"])(!0),Object(n["createElementBlock"])(n["Fragment"],null,Object(n["renderList"])(i.supplierData,e=>(Object(n["openBlock"])(),Object(n["createBlock"])(d,{key:e.dataCode,label:e.dataValue,value:e.dataCode},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1},8,["label"]),Object(n["createVNode"])(c,{prop:"status",label:e.$t("dataEnquiry.zt")},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(u,{modelValue:i.form.status,"onUpdate:modelValue":t[5]||(t[5]=e=>i.form.status=e),size:"small",filterable:"",placeholder:"状态"},{default:Object(n["withCtx"])(()=>[(Object(n["openBlock"])(!0),Object(n["createElementBlock"])(n["Fragment"],null,Object(n["renderList"])(i.statusData,e=>(Object(n["openBlock"])(),Object(n["createBlock"])(d,{key:e.dataCode,label:e.dataValue,value:e.dataCode},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1},8,["label"]),Object(n["createVNode"])(c,{prop:"unit",label:e.$t("sensor.dw")},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(u,{modelValue:i.form.unit,"onUpdate:modelValue":t[6]||(t[6]=e=>i.form.unit=e),size:"small",filterable:"",placeholder:"单位"},{default:Object(n["withCtx"])(()=>[(Object(n["openBlock"])(!0),Object(n["createElementBlock"])(n["Fragment"],null,Object(n["renderList"])(i.unitData,e=>(Object(n["openBlock"])(),Object(n["createBlock"])(d,{key:e.dataCode,label:e.dataValue,value:e.dataCode},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1},8,["label"]),Object(n["createVNode"])(c,{label:e.$t("maintenance.xh"),prop:"model"},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(m,{modelValue:i.form.model,"onUpdate:modelValue":t[7]||(t[7]=e=>i.form.model=e),modelModifiers:{trim:!0},size:"small",autocomplete:"off"},null,8,["modelValue"])]),_:1},8,["label"]),Object(n["createVNode"])(c,{label:e.$t("maintenance.bh"),prop:"code"},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(m,{modelValue:i.form.code,"onUpdate:modelValue":t[8]||(t[8]=e=>i.form.code=e),modelModifiers:{trim:!0},size:"small",autocomplete:"off"},null,8,["modelValue"])]),_:1},8,["label"]),Object(n["createVNode"])(c,{label:e.$t("maintenance.gl"),prop:"power"},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(m,{modelValue:i.form.power,"onUpdate:modelValue":t[9]||(t[9]=e=>i.form.power=e),modelModifiers:{trim:!0},size:"small",autocomplete:"off"},null,8,["modelValue"])]),_:1},8,["label"])]),_:1},8,["model","rules"]),Object(n["createElementVNode"])("div",a,[Object(n["createVNode"])(p,{size:"small",onClick:l.close},{default:Object(n["withCtx"])(()=>t[11]||(t[11]=[Object(n["createTextVNode"])("取 消")])),_:1},8,["onClick"]),Object(n["createVNode"])(p,{type:"primary",size:"small",onClick:l.save},{default:Object(n["withCtx"])(()=>t[12]||(t[12]=[Object(n["createTextVNode"])("确 定")])),_:1},8,["onClick"])])]),_:1},8,["modelValue","title","onClose"])}var i=o("351d"),l=o("5f99"),s={data(){return{form:{deviceCode:"",name:"",brand:"",supplier:"",status:"",unit:"",model:"",code:"",power:"",shelfLife:""},rules:{shelfLife:[{required:!0,trigger:"change",message:"请选择质保期"}],deviceCode:[{required:!0,trigger:"change",message:"请选择站点"}],name:[{required:!0,trigger:"change",message:"请选择设备"}],brand:[{required:!0,trigger:"change",message:"请选择品牌"}],supplier:[{required:!0,trigger:"change",message:"请选择供应商"}],status:[{required:!0,trigger:"change",message:"请选择状态"}],unit:[{required:!0,trigger:"change",message:"请选择单位"}],model:[{required:!0,trigger:"blur",message:"请输入型号"}],code:[{required:!0,trigger:"blur",message:"请输入状态"}],power:[{required:!0,trigger:"blur",message:"请输入功率"}]},projectId:"",title:"",deviceData:[],nameData:[],brandData:[],supplierData:[],statusData:[],unitData:[],dialogFormVisible:!1}},created(){},methods:{standardToTime(){this.form.shelfLife=Object(l["getDate"])(this.form.shelfLife)},async getDevicedData(){const{data:e}=await Object(i["getDevices"])({projectId:this.projectId});this.deviceData=e},async getAlarmCategoryDict(){const{data:e}=await Object(i["alarmCategoryDict"])();this.nameData=e.equipmentName,this.brandData=e.equipmentBrand,this.supplierData=e.equipmentSupplier,this.statusData=e.equipmentStatus,this.unitData=e.equipmentUnit},showEdit(e){if(e){this.title="编辑编辑";const t=Object.assign({},e);console.log(123,t),this.form.id=t.id,null!==t.device&&(this.form.deviceCode=t.device.code),null!==t.name&&(this.form.name=t.name.dataCode),null!==t.brand&&(this.form.brand=t.brand.dataCode),null!==t.supplier&&(this.form.supplier=t.supplier.dataCode),null!==t.status&&(this.form.status=t.status.dataCode),null!==t.unit&&(this.form.unit=t.unit.dataCode),this.form.model=t.model,this.form.code=t.code,this.form.power=t.power,this.form.shelfLife=t.shelfLife}else this.title="添加设备";this.projectId=sessionStorage.getItem("projectId"),this.getDevicedData(),this.getAlarmCategoryDict(),this.dialogFormVisible=!0},close(){this.$refs["form"].resetFields(),this.form=this.$options.data().form,this.dialogFormVisible=!1,this.$emit("fetch-data")},save(){this.$refs["form"].validate(async e=>{if(!e)return!1;if(this.form.id){const{msg:e}=await Object(i["doEdit"])(this.form);this.$notify({title:e,type:"success"})}else{delete this.form.id;const{msg:e}=await Object(i["doAdd"])(this.form);this.$notify({title:e,type:"success"})}this.$refs["form"].resetFields(),this.$parent.fetchData(),this.dialogFormVisible=!1})}}},c=(o("7f12"),o("d959")),d=o.n(c);const u=d()(s,[["render",r]]);t["default"]=u},"5f4b":function(e,t,o){"use strict";o.r(t);var n=o("f2bf");const a={class:"manage-container"};function r(e,t,o,r,i,l){const s=Object(n["resolveComponent"])("vab-query-form"),c=Object(n["resolveComponent"])("el-input"),d=Object(n["resolveComponent"])("el-form-item"),u=Object(n["resolveComponent"])("el-option"),m=Object(n["resolveComponent"])("el-select"),h=Object(n["resolveComponent"])("el-form"),p=Object(n["resolveComponent"])("el-button");return Object(n["openBlock"])(),Object(n["createElementBlock"])("div",a,[Object(n["createVNode"])(s,null,{default:Object(n["withCtx"])(()=>t[11]||(t[11]=[Object(n["createElementVNode"])("h1",{class:"sensor-title"},"添加传感器",-1)])),_:1}),Object(n["createVNode"])(h,{ref:"form",model:e.form,"label-width":"100px","label-position":"left"},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(d,{label:e.$t("sensor.cgqmc")},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(c,{modelValue:i.input,"onUpdate:modelValue":t[0]||(t[0]=e=>i.input=e),placeholder:"请输入传感器名称"},null,8,["modelValue"])]),_:1},8,["label"]),Object(n["createVNode"])(d,{label:"排序"},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(c,{modelValue:i.input,"onUpdate:modelValue":t[1]||(t[1]=e=>i.input=e),placeholder:"1"},null,8,["modelValue"])]),_:1}),Object(n["createVNode"])(d,{label:"地址号"},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(c,{modelValue:i.input,"onUpdate:modelValue":t[2]||(t[2]=e=>i.input=e),placeholder:"输入地址号,从机地址"},null,8,["modelValue"])]),_:1}),Object(n["createVNode"])(d,{label:"寄存器号"},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(c,{modelValue:i.input,"onUpdate:modelValue":t[3]||(t[3]=e=>i.input=e),placeholder:"偏移量"},null,8,["modelValue"])]),_:1}),Object(n["createVNode"])(d,{label:"准确精度"},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(m,{modelValue:i.value1,"onUpdate:modelValue":t[4]||(t[4]=e=>i.value1=e),placeholder:"请选择小数点位数"},{default:Object(n["withCtx"])(()=>[(Object(n["openBlock"])(!0),Object(n["createElementBlock"])(n["Fragment"],null,Object(n["renderList"])(i.options,e=>(Object(n["openBlock"])(),Object(n["createBlock"])(u,{key:e.value,label:e.label,value:e.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),Object(n["createVNode"])(d,{label:"传感点类型"},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(m,{modelValue:i.value2,"onUpdate:modelValue":t[5]||(t[5]=e=>i.value2=e),placeholder:"请选择传感点类型"},{default:Object(n["withCtx"])(()=>[(Object(n["openBlock"])(!0),Object(n["createElementBlock"])(n["Fragment"],null,Object(n["renderList"])(i.options,e=>(Object(n["openBlock"])(),Object(n["createBlock"])(u,{key:e.value,label:e.label,value:e.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),Object(n["createVNode"])(d,{label:e.$t("sensor.dw")},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(m,{modelValue:i.value3,"onUpdate:modelValue":t[6]||(t[6]=e=>i.value3=e),placeholder:"请选择传感点单位"},{default:Object(n["withCtx"])(()=>[(Object(n["openBlock"])(!0),Object(n["createElementBlock"])(n["Fragment"],null,Object(n["renderList"])(i.options,e=>(Object(n["openBlock"])(),Object(n["createBlock"])(u,{key:e.value,label:e.label,value:e.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1},8,["label"]),Object(n["createVNode"])(d,{label:"储存策略"},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(m,{modelValue:i.value4,"onUpdate:modelValue":t[7]||(t[7]=e=>i.value4=e),placeholder:"变化储存"},{default:Object(n["withCtx"])(()=>[(Object(n["openBlock"])(!0),Object(n["createElementBlock"])(n["Fragment"],null,Object(n["renderList"])(i.options,e=>(Object(n["openBlock"])(),Object(n["createBlock"])(u,{key:e.value,label:e.label,value:e.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),Object(n["createVNode"])(d,{label:"公示处理"},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(c,{modelValue:i.input,"onUpdate:modelValue":t[8]||(t[8]=e=>i.input=e),placeholder:"公式计算如x/100 可不填"},null,8,["modelValue"]),t[12]||(t[12]=Object(n["createElementVNode"])("span",{class:"notes"},"(设备->平台)",-1))]),_:1}),Object(n["createVNode"])(d,{label:"公示处理"},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(c,{modelValue:i.input,"onUpdate:modelValue":t[9]||(t[9]=e=>i.input=e),placeholder:"公式计算如x*100 可不填"},null,8,["modelValue"]),t[13]||(t[13]=Object(n["createElementVNode"])("span",{class:"notes"},"(平台->设备)",-1))]),_:1}),Object(n["createVNode"])(d,{label:"参数配置"},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(c,{modelValue:i.input,"onUpdate:modelValue":t[10]||(t[10]=e=>i.input=e),placeholder:"请输入参数配置"},null,8,["modelValue"])]),_:1})]),_:1},8,["model"]),Object(n["createVNode"])(s,null,{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(p,{type:"primary"},{default:Object(n["withCtx"])(()=>t[14]||(t[14]=[Object(n["createTextVNode"])("保存")])),_:1}),Object(n["createVNode"])(p,{type:"primary",plain:""},{default:Object(n["withCtx"])(()=>t[15]||(t[15]=[Object(n["createTextVNode"])("返回")])),_:1})]),_:1})])}var i={name:"Sensor",data(){return{input:"",value1:"",value2:"",value3:"",value4:"",value5:"",value6:"",checked1:!1,checked2:!1,checked3:!1,checked4:!1,checked5:!1,options:[{value:"选项1",label:"所有设备"},{value:"选项2",label:"已连接设备"},{value:"选项3",label:"未连接设备"},{value:"选项4",label:"已禁用设备"},{value:"选项5",label:"已删除设备"}]}}},l=(o("0d10"),o("d959")),s=o.n(l);const c=s()(i,[["render",r],["__scopeId","data-v-0b11b605"]]);t["default"]=c},"5f5a":function(e,t,o){"use strict";o.r(t);var n=o("f2bf");const a={class:"manage-container"};function r(e,t,o,r,i,l){const s=Object(n["resolveComponent"])("current-data"),c=Object(n["resolveComponent"])("el-tab-pane"),d=Object(n["resolveComponent"])("history-data"),u=Object(n["resolveComponent"])("el-tabs");return Object(n["openBlock"])(),Object(n["createElementBlock"])("div",a,[Object(n["createVNode"])(u,{modelValue:i.activeName,"onUpdate:modelValue":t[0]||(t[0]=e=>i.activeName=e),onTabClick:l.handleClick},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(c,{label:e.$t("sensor.dqsj"),name:"first"},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(s,{ref:"current"},null,512)]),_:1},8,["label"]),Object(n["createVNode"])(c,{label:e.$t("sensor.lssj"),name:"second"},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(d,{ref:"history"},null,512)]),_:1},8,["label"])]),_:1},8,["modelValue","onTabClick"])])}var i=o("ec65"),l=o("76c1"),s={components:{currentData:i["default"],historyData:l["default"]},data(){return{activeName:"first",dataKey:"",startDate:"",queryForm:{page:1,size:200,dataKey:"",deviceCode:"",start:"",end:""}}},computed:{height(){return 500}},created(){this.queryForm.dataKey=this.$route.query.dataKey,this.queryForm.deviceCode=this.$route.query.deviceCode},methods:{handleClick(e,t){console.log(e,t),"second"==e.paneName?this.$refs["history"].showData({dataKey:this.queryForm.dataKey,deviceCode:this.queryForm.deviceCode}):this.$refs["current"].showData({dataKey:this.queryForm.dataKey,deviceCode:this.queryForm.deviceCode})}}},c=(o("9456"),o("d959")),d=o.n(c);const u=d()(s,[["render",r],["__scopeId","data-v-3c3b0ef2"]]);t["default"]=u},"5f99":function(e,t,o){"use strict";function n(e,t){const o=parseInt(e),n=new Date,a=n.getDate(),r=new Date(n.setDate(a+o)),i=r.getFullYear(),l=r.getMonth()+1,s=r.getDate();let c,d;c=l<10?"0"+l:l,d=s<10?"0"+s:s;const u=t||"-";return i+u+c+u+d}function a(e=""){var t=new Date;""!=e&&(t=new Date(e));const o=t.getFullYear();let n=t.getMonth(),a=t.getDate();return n+=1,n=n.toString().padStart(2,"0"),a=a.toString().padStart(2,"0"),`${o}-${n}-${a}`}function r(e=""){var t=new Date;""!=e&&(t=new Date(e));const o=t.getFullYear();let n=t.getMonth();return n+=1,n=n.toString().padStart(2,"0"),`${o}-${n}`}function i(e=""){var t=new Date;""!=e&&(t=new Date(e));const o=t.getFullYear();return""+o}function l(e){const t=new Date,o=t.getFullYear(),n=t.getMonth()+1,a=t.getDate(),r=n-e,i=r<0?r+12:r>10?r:"0"+r,l=n>9?n:"0"+n,s=a>9?a:"0"+a,c=o+"-"+i+"-"+s,d=o+"-"+l+"-"+s;return[c,d]}function s(){const e=new Date,t=e.getFullYear(),o=e.getMonth()+1,n=e.getDate(),a=new Date(e);a.setDate(e.getDate()-1);const r=a.getFullYear(),i=(a.getMonth()+1).toString().padStart(2,"0"),l=a.getDate().toString().padStart(2,"0"),s=o>9?o:"0"+o,c=n>9?n:"0"+n,d=r+"-"+i+"-"+l,u=t+"-"+s+"-"+c;return[d,u]}function c(e){var t=new Date;""!=e&&(t=new Date(e));const o=t.getFullYear();let n=t.getMonth()+1;n=n<10?"0"+n:n;let a=t.getDate();a=a<10?"0"+a:a;let r=t.getHours();r=r<10?"0"+r:r;let i=t.getMinutes();i=i<10?"0"+i:i;let l=t.getSeconds();return l=l<10?"0"+l:l,o+"-"+n+"-"+a+" "+r+":"+i+":"+l}o.r(t),o.d(t,"getFMdate",(function(){return n})),o.d(t,"getDate",(function(){return a})),o.d(t,"getDate1",(function(){return r})),o.d(t,"getDate2",(function(){return i})),o.d(t,"getPastTime",(function(){return l})),o.d(t,"getPastTime1",(function(){return s})),o.d(t,"formatDateTime",(function(){return c}))},"5fcd":function(e,t,o){"use strict";o.r(t);var n=o("f2bf");function a(e,t,o,a,r,i){const l=Object(n["resolveComponent"])("el-input"),s=Object(n["resolveComponent"])("el-form-item"),c=Object(n["resolveComponent"])("el-option"),d=Object(n["resolveComponent"])("el-select"),u=Object(n["resolveComponent"])("el-form"),m=Object(n["resolveComponent"])("el-button");return Object(n["openBlock"])(),Object(n["createElementBlock"])(n["Fragment"],null,[Object(n["createVNode"])(u,{ref:"form",model:r.form,"label-width":"80px"},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(s,{label:"用户名称"},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(l,{modelValue:r.form.nickName,"onUpdate:modelValue":t[0]||(t[0]=e=>r.form.nickName=e),size:"small",placeholder:"请输入用户名称"},null,8,["modelValue"])]),_:1}),Object(n["createVNode"])(s,{label:"性别",style:{width:"100%"}},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(d,{modelValue:r.form.sex,"onUpdate:modelValue":t[1]||(t[1]=e=>r.form.sex=e),size:"small",placeholder:"请选择性别"},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(c,{label:"男",value:"0"}),Object(n["createVNode"])(c,{label:"女",value:"1"})]),_:1},8,["modelValue"])]),_:1}),Object(n["createVNode"])(s,{label:e.$t("staff.sjhm")},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(l,{modelValue:r.form.phone,"onUpdate:modelValue":t[2]||(t[2]=e=>r.form.phone=e),size:"small"},null,8,["modelValue"])]),_:1},8,["label"]),Object(n["createVNode"])(s,{label:"用户邮箱"},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(l,{modelValue:r.form.email,"onUpdate:modelValue":t[3]||(t[3]=e=>r.form.email=e),size:"small"},null,8,["modelValue"])]),_:1})]),_:1},8,["model"]),Object(n["createVNode"])(m,{type:"primary",size:"small",onClick:i.save},{default:Object(n["withCtx"])(()=>t[4]||(t[4]=[Object(n["createTextVNode"])("保存")])),_:1},8,["onClick"]),Object(n["createVNode"])(m,{type:"primary",size:"small",plain:""},{default:Object(n["withCtx"])(()=>t[5]||(t[5]=[Object(n["createTextVNode"])("返回")])),_:1})],64)}var r=o("c24f"),i={data(){return{form:{nickName:"",sex:"",phone:"",email:""},rawData:"",diffData:""}},created(){this.showData()},methods:{async showData(){const{data:e}=await Object(r["userInfo"])();this.form=e,this.rawData={...e}},diffFormData(){for(const e in this.rawData)this.rawData[e]!==this.form[e]&&(this.diffData||(this.diffData={}),this.diffData[e]=this.form[e])},save(){this.diffFormData(),this.diffData?this.$refs["form"].validate(async e=>{if(!e)return!1;{const{msg:e}=await Object(r["updateInfo"])(this.diffData);this.$notify({title:e,type:"success"}),this.showData()}}):this.$message.error("未修改任何数据,无需提交")}}},l=o("d959"),s=o.n(l);const c=s()(i,[["render",a]]);t["default"]=c},"5fd6":function(e,t,o){"use strict";o("c576")},"5fda":function(e,t,o){e.exports={"menu-color":"hsla(0,0%,27%,.95)","menu-color-active":"hsla(208,100%,55%,.95)","menu-background":"#fff","gallery-second-menu-background":"#fff"}},"5fdc":function(e,t,o){"use strict";o("3ef5")},"60bb":function(e,t,o){"use strict";o.r(t);var n=o("f2bf");const a={class:"manage-container"};function r(e,t,o,r,i,l){const s=Object(n["resolveComponent"])("role-index"),c=Object(n["resolveComponent"])("el-tab-pane"),d=Object(n["resolveComponent"])("applets-index"),u=Object(n["resolveComponent"])("el-tabs");return Object(n["openBlock"])(),Object(n["createElementBlock"])("div",a,[Object(n["createVNode"])(u,{modelValue:i.activeName,"onUpdate:modelValue":t[0]||(t[0]=e=>i.activeName=e),class:"tabRight",type:"card",onTabClick:l.handleClick},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(c,{label:"平台角色",name:"first"},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(s,{ref:"role"},null,512)]),_:1}),Object(n["createVNode"])(c,{label:"小程序角色",name:"second"},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(d,{ref:"applets"},null,512)]),_:1})]),_:1},8,["modelValue","onTabClick"])])}var i=o("7ad9"),l=o("163d"),s={name:"Manage",components:{roleIndex:i["default"],appletsIndex:l["default"]},data(){return{roleData:[],lazy:!0,activeName:"first",layout:"total, sizes, prev, pager, next, jumper",total:0,input:"",textarea:"",list:[],background:!0,listLoading:!0,elementLoadingText:"正在加载...",queryForm:{page:1,size:20,name:""}}},computed:{height(){return 500}},methods:{handleClick(e,t){console.log(e,t),"first"==e.paneName?this.$refs["role"].roleIndex():"second"==e.paneName&&this.$refs["applets"].appletsIndex()}}},c=(o("f9c2"),o("d959")),d=o.n(c);const u=d()(s,[["render",r]]);t["default"]=u},"60e9":function(e,t,o){"use strict";o("d32d")},6127:function(e,t,o){},"61d3":function(e,t,o){},6221:function(e,t,o){"use strict";o.r(t);var n=o("f2bf");const a={class:"title"},r={class:"body"},i={class:"body-item"},l={class:"base-item"},s={key:0,class:"item status"},c={key:1,class:"item status"},d={class:"item flow"},u={class:"flow-container"},m={class:"flow-value"},h={class:"contact-item"},p={class:"value"},b={class:"contact-item"},g={class:"value"},f={key:0,class:"body-item"},v={key:1,class:"body-item",style:{"text-align":"center"}},w={class:"body-item"},k={class:"name"},C={class:"data",style:{color:"#3281fd"}};function y(e,t,y,O,j,x){const _=Object(n["resolveComponent"])("el-image");return Object(n["openBlock"])(),Object(n["createElementBlock"])("div",{class:"site-detail",onClick:Object(n["withModifiers"])(e=>!1,["stop"])},[Object(n["createElementVNode"])("div",a,[Object(n["createVNode"])(_,{src:o("78a3"),class:"icon"},null,8,["src"]),Object(n["createElementVNode"])("span",null,Object(n["toDisplayString"])(j.deviceInfo.name),1)]),Object(n["createElementVNode"])("div",r,[Object(n["createElementVNode"])("div",i,[Object(n["createElementVNode"])("div",l,[1==j.deviceInfo.status?(Object(n["openBlock"])(),Object(n["createElementBlock"])("div",s,[Object(n["createVNode"])(_,{class:"tips-image",src:o("6582")},null,8,["src"]),t[0]||(t[0]=Object(n["createElementVNode"])("div",{class:"tips"},"通讯正常",-1))])):(Object(n["openBlock"])(),Object(n["createElementBlock"])("div",c,[Object(n["createVNode"])(_,{class:"tips-image",src:o("4382"),style:{width:"54px",height:"54px"}},null,8,["src"]),t[1]||(t[1]=Object(n["createElementVNode"])("div",{class:"tips"},"通讯中断",-1))])),Object(n["createElementVNode"])("div",d,[Object(n["createElementVNode"])("div",u,[Object(n["createElementVNode"])("div",m,Object(n["toDisplayString"])(j.todayWater),1),t[2]||(t[2]=Object(n["createElementVNode"])("div",{class:"flow-unit"},[Object(n["createElementVNode"])("span",null,"m"),Object(n["createElementVNode"])("sup",null,"3")],-1))]),t[3]||(t[3]=Object(n["createElementVNode"])("div",{class:"tips"},"今日水量",-1))])]),t[6]||(t[6]=Object(n["createElementVNode"])("div",{class:"line"},null,-1)),Object(n["createElementVNode"])("div",h,[t[4]||(t[4]=Object(n["createElementVNode"])("div",{class:"label"},"联系人",-1)),Object(n["createElementVNode"])("div",p,Object(n["toDisplayString"])(j.deviceInfo.leader),1)]),Object(n["createElementVNode"])("div",b,[t[5]||(t[5]=Object(n["createElementVNode"])("div",{class:"label"},"联系电话",-1)),Object(n["createElementVNode"])("div",g,Object(n["toDisplayString"])(j.deviceInfo.contact),1)])]),null!=j.deviceInfo.boardImg?(Object(n["openBlock"])(),Object(n["createElementBlock"])("div",f,[Object(n["createVNode"])(_,{src:j.filePath+j.deviceInfo.boardImg,fit:"cover",style:{width:"180px",height:"180px",display:"block"}},null,8,["src"])])):(Object(n["openBlock"])(),Object(n["createElementBlock"])("div",v,t[7]||(t[7]=[Object(n["createElementVNode"])("text",{style:{"line-height":"180px"}},"暂无公示牌",-1)]))),Object(n["createElementVNode"])("div",w,[(Object(n["openBlock"])(!0),Object(n["createElementBlock"])(n["Fragment"],null,Object(n["renderList"])(j.sensorData,(e,t)=>(Object(n["openBlock"])(),Object(n["createElementBlock"])("div",{key:t,class:"label-item"},[Object(n["createElementVNode"])("div",k,Object(n["toDisplayString"])(t),1),Object(n["createElementVNode"])("div",C,Object(n["toDisplayString"])(e),1)]))),128))])])])}var O=o("7cf8"),j=o("f121"),x={name:"SiteDetail",props:{markerSiteData:{type:Object,requied:!0,default:()=>({})}},data(){return{deviceInfo:[],filePath:j["baseURL"]+"/static/img/",sensorData:[],todayWater:""}},watch:{markerSiteData:{handler(e){this.getDeviceInfo({deviceCode:e.code})}}},methods:{async getDeviceInfo(e){const{data:t}=await Object(O["getDeviceInfo"])(e);this.deviceInfo=t.device,this.todayWater=t.todayWater,this.sensorData=t.sensorData}}},_=(o("f2b7"),o("d959")),V=o.n(_);const A=V()(x,[["render",y],["__scopeId","data-v-42aa481a"]]);t["default"]=A},6325:function(e,t,o){"use strict";o.r(t);var n=o("f2bf");const a=["src"],r={class:"dialog-footer"};function i(e,t,o,i,l,s){const c=Object(n["resolveComponent"])("el-input"),d=Object(n["resolveComponent"])("el-form-item"),u=Object(n["resolveComponent"])("el-option"),m=Object(n["resolveComponent"])("el-select"),h=Object(n["resolveComponent"])("el-upload"),p=Object(n["resolveComponent"])("el-dialog"),b=Object(n["resolveComponent"])("el-form"),g=Object(n["resolveComponent"])("el-button");return Object(n["openBlock"])(),Object(n["createBlock"])(p,{modelValue:l.dialogFormVisible,"onUpdate:modelValue":t[3]||(t[3]=e=>l.dialogFormVisible=e),title:l.title,width:"500px"},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(b,{ref:"form",model:l.form,rules:l.rules,"label-width":"80px","label-position":"left"},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(d,{label:e.$t("task.fknr"),prop:"feedbackText"},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(c,{modelValue:l.form.feedbackText,"onUpdate:modelValue":t[0]||(t[0]=e=>l.form.feedbackText=e),type:"textarea"},null,8,["modelValue"])]),_:1},8,["label"]),Object(n["createVNode"])(d,{label:"反馈状态",prop:"status"},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(m,{modelValue:l.form.status,"onUpdate:modelValue":t[1]||(t[1]=e=>l.form.status=e),filterable:"",placeholder:"状态"},{default:Object(n["withCtx"])(()=>[(Object(n["openBlock"])(!0),Object(n["createElementBlock"])(n["Fragment"],null,Object(n["renderList"])(l.statusData,e=>(Object(n["openBlock"])(),Object(n["createBlock"])(u,{key:e.value,label:e.label,value:e.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),Object(n["createVNode"])(d,{label:e.$t("task.fltp"),prop:"feedbackImg"},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(h,{action:l.updateAction,"list-type":"picture-card","on-preview":s.handlePictureCardPreview,"on-remove":s.handleRemove,"on-success":s.fileSuccess,headers:l.headerData,name:"files"},{default:Object(n["withCtx"])(()=>t[4]||(t[4]=[Object(n["createElementVNode"])("i",{class:"el-icon-plus"},null,-1)])),_:1},8,["action","on-preview","on-remove","on-success","headers"]),Object(n["createVNode"])(p,{modelValue:l.dialogVisible,"onUpdate:modelValue":t[2]||(t[2]=e=>l.dialogVisible=e)},{default:Object(n["withCtx"])(()=>[Object(n["createElementVNode"])("img",{width:"100%",src:l.dialogImageUrl,alt:""},null,8,a)]),_:1},8,["modelValue"])]),_:1},8,["label"])]),_:1},8,["model","rules"]),Object(n["createElementVNode"])("div",r,[Object(n["createVNode"])(g,{type:"primary",onClick:s.save},{default:Object(n["withCtx"])(()=>t[5]||(t[5]=[Object(n["createTextVNode"])("确 定")])),_:1},8,["onClick"]),Object(n["createVNode"])(g,{onClick:s.close},{default:Object(n["withCtx"])(()=>t[6]||(t[6]=[Object(n["createTextVNode"])("取 消")])),_:1},8,["onClick"])])]),_:1},8,["modelValue","title"])}var l=o("b199"),s=o("4360"),c=o("f121"),d={data(){return{form:{id:"",feedbackText:"",feedbackImg:"",status:""},rules:{feedbackText:[{required:!0,trigger:"blur",message:"请输入反馈内容"}],status:[{required:!0,trigger:"change",message:"请选择反馈状态"}],feedbackImg:[{required:!0,trigger:"blur",message:"请上传反馈图片"}]},title:"",dialogVisible:!1,dialogFormVisible:!1,deviceData:[],handlersData:[],dialogImageUrl:"",updateAction:"",headerData:"",statusData:[{label:"未处理",value:0},{label:"已处理",value:1}]}},created(){},methods:{handleRemove(e,t){console.log(e,t)},handlePictureCardPreview(e){console.log(e),this.dialogImageUrl=e.url,this.dialogVisible=!0},feedbackIndex(e){this.title="任务反馈",this.form.id=e.id,this.dialogFormVisible=!0,this.setUpdateData()},setUpdateData(){this.updateAction=c["baseURL"]+"/file/uploadImg",this.headerData={token:s["default"].getters["user/token"]}},fileSuccess(e,t,o){var n=this.form.feedbackImg;this.form.feedbackImg=""==n?e.data:this.form.feedbackImg+","+e.data,console.log(this.form)},close(){this.$refs["form"].resetFields(),this.form=this.$options.data().form,this.dialogFormVisible=!1,this.$emit("fetch-data")},save(){this.$refs["form"].validate(async e=>{if(!e)return!1;if(this.form.id){const{msg:e}=await Object(l["feedback"])(this.form);this.$notify({title:e,type:"success"})}this.$refs["form"].resetFields(),this.dialogFormVisible=!1,this.$parent.fetchData()})}}},u=o("d959"),m=o.n(u);const h=m()(d,[["render",i]]);t["default"]=h},"639a":function(e,t,o){"use strict";o("a1bd")},"63d2":function(e,t,o){"use strict";o.r(t);var n=o("f2bf");const a={class:"manage-container"},r={class:"manage-input"},i={class:"manage-button"};function l(e,t,o,l,s,c){const d=Object(n["resolveComponent"])("el-input"),u=Object(n["resolveComponent"])("el-form-item"),m=Object(n["resolveComponent"])("el-option"),h=Object(n["resolveComponent"])("el-select"),p=Object(n["resolveComponent"])("vab-query-form"),b=Object(n["resolveComponent"])("el-form"),g=Object(n["resolveComponent"])("el-button"),f=Object(n["resolveComponent"])("el-table-column"),v=Object(n["resolveComponent"])("el-image"),w=Object(n["resolveComponent"])("el-table"),k=Object(n["resolveComponent"])("el-pagination"),C=Object(n["resolveComponent"])("alarm-add"),y=Object(n["resolveComponent"])("feedback");return Object(n["openBlock"])(),Object(n["createElementBlock"])(n["Fragment"],null,[Object(n["createElementVNode"])("div",a,[Object(n["createElementVNode"])("div",r,[Object(n["createVNode"])(b,{ref:"queryForm",model:s.queryForm,"label-width":"80px"},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(p,null,{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(u,{width:"100",prop:"deviceName",label:e.$t("dataEnquiry.zdmc")},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(d,{modelValue:s.queryForm.deviceName,"onUpdate:modelValue":t[0]||(t[0]=e=>s.queryForm.deviceName=e),size:"small",placeholder:e.$t("dataEnquiry.qsrzdmc")},null,8,["modelValue","placeholder"])]),_:1},8,["label"]),Object(n["createVNode"])(u,{width:"100",prop:"month",label:e.$t("defalult.sj")},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(h,{modelValue:s.queryForm.status,"onUpdate:modelValue":t[1]||(t[1]=e=>s.queryForm.status=e),size:"small",placeholder:e.$t("task.qxzrwzt")},{default:Object(n["withCtx"])(()=>[(Object(n["openBlock"])(!0),Object(n["createElementBlock"])(n["Fragment"],null,Object(n["renderList"])(s.statusData,e=>(Object(n["openBlock"])(),Object(n["createBlock"])(m,{key:e.value,label:e.label,value:e.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue","placeholder"])]),_:1},8,["label"])]),_:1})]),_:1},8,["model"])]),Object(n["createElementVNode"])("div",i,[Object(n["createVNode"])(g,{size:"small",onClick:t[2]||(t[2]=e=>c.resetForm())},{default:Object(n["withCtx"])(()=>[Object(n["createTextVNode"])(Object(n["toDisplayString"])(e.$t("defalult.chongz")),1)]),_:1}),Object(n["createVNode"])(g,{type:"primary",size:"small",onClick:c.search},{default:Object(n["withCtx"])(()=>[Object(n["createTextVNode"])(Object(n["toDisplayString"])(e.$t("defalult.cx")),1)]),_:1},8,["onClick"]),Object(n["createVNode"])(g,{type:"primary",size:"small",onClick:c.exportData},{default:Object(n["withCtx"])(()=>[Object(n["createTextVNode"])(Object(n["toDisplayString"])(e.$t("defalult.dc")),1)]),_:1},8,["onClick"]),Object(n["createVNode"])(g,{type:"primary",size:"small",onClick:c.deletes},{default:Object(n["withCtx"])(()=>[Object(n["createTextVNode"])(Object(n["toDisplayString"])(e.$t("defalult.plsc")),1)]),_:1},8,["onClick"])])]),Object(n["createVNode"])(w,{data:s.tableData,stripe:"",border:"",style:{width:"100%"}},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(f,{fixed:"",type:"selection",width:"40",align:"center"}),Object(n["createVNode"])(f,{fixed:"",prop:"device.name",label:e.$t("dataEnquiry.zdmc"),width:"120",align:"center"},null,8,["label"]),Object(n["createVNode"])(f,{prop:"type",label:e.$t("task.rwlx"),width:"180",align:"center"},null,8,["label"]),Object(n["createVNode"])(f,{prop:"taskContent",label:e.$t("task.rwnr"),width:"250",align:"center"},null,8,["label"]),Object(n["createVNode"])(f,{prop:"handler.name",label:e.$t("task.clr"),width:"120",align:"center"},null,8,["label"]),Object(n["createVNode"])(f,{prop:"handler.contact",label:e.$t("task.clrlxfs"),width:"120",align:"center"},null,8,["label"]),Object(n["createVNode"])(f,{prop:"completeTime",label:e.$t("task.wcsj"),width:"180",align:"center"},null,8,["label"]),Object(n["createVNode"])(f,{prop:"status",label:e.$t("dataEnquiry.zt"),width:"120",align:"center"},null,8,["label"]),Object(n["createVNode"])(f,{prop:"feedbackText",label:e.$t("task.fknr"),width:"250",align:"center"},null,8,["label"]),Object(n["createVNode"])(f,{prop:"feedbackImg",label:e.$t("task.fltp"),width:"140",align:"center"},{default:Object(n["withCtx"])(({row:e})=>[(Object(n["openBlock"])(!0),Object(n["createElementBlock"])(n["Fragment"],null,Object(n["renderList"])(e.fileList,(t,o)=>(Object(n["openBlock"])(),Object(n["createElementBlock"])("div",{key:o},[Object(n["createVNode"])(v,{style:{width:"100px",height:"100px"},src:e.url,"preview-src-list":t},null,8,["src","preview-src-list"])]))),128))]),_:1},8,["label"]),Object(n["createVNode"])(f,{label:e.$t("defalult.cz"),align:"center",width:"180"},{default:Object(n["withCtx"])(({row:t})=>[Object(n["createVNode"])(g,{size:"mini",type:"primary",plain:"",onClick:e=>c.feedbackShow(t)},{default:Object(n["withCtx"])(()=>[Object(n["createTextVNode"])(Object(n["toDisplayString"])(e.$t("task.fk")),1)]),_:2},1032,["onClick"]),Object(n["createVNode"])(g,{size:"mini",type:"primary",plain:"",onClick:e=>c.handleEdit(t)},{default:Object(n["withCtx"])(()=>[Object(n["createTextVNode"])(Object(n["toDisplayString"])(e.$t("defalult.bj")),1)]),_:2},1032,["onClick"]),Object(n["createVNode"])(g,{type:"text",onClick:e=>c.handleDelete(t)},{default:Object(n["withCtx"])(()=>[Object(n["createTextVNode"])(Object(n["toDisplayString"])(e.$t("defalult.sc")),1)]),_:2},1032,["onClick"])]),_:1},8,["label"])]),_:1},8,["data"]),Object(n["createVNode"])(k,{background:s.background,"current-page":s.queryForm.page,layout:s.layout,"page-size":s.queryForm.size,total:s.total,style:{"text-align":"right"},onCurrentChange:c.handleCurrentChange,onSizeChange:c.handleSizeChange},null,8,["background","current-page","layout","page-size","total","onCurrentChange","onSizeChange"]),Object(n["createVNode"])(C,{ref:"add"},null,512),Object(n["createVNode"])(y,{ref:"feedback"},null,512)],64)}o("14d9");var s=o("b199"),c=o("3038"),d=o("2c34"),u=o("ab15"),m=o("11f4"),h={components:{alarmAdd:d["default"],feedback:u["default"]},data(){return{tableData:[],lazy:!0,layout:"total, sizes, prev, pager, next, jumper",total:0,background:!0,listLoading:!1,elementLoadingText:"正在加载...",queryForm:{page:1,size:20,status:3,projectId:"",type:1},statusData:[{label:"all",value:3},{label:"未处理",value:0},{label:"已处理",value:1}],ids:[]}},created(){this.queryForm.projectId=sessionStorage.getItem("projectId")},methods:{mainIndex(){this.fetchData()},async fetchData(){console.log(this.queryForm);const{data:e}=await Object(s["getList"])(this.queryForm);this.tableData=Object(m["imgReplacePath"])(e.items,"feedbackImg"),this.total=e.total},resetForm(){this.$refs.queryForm.resetFields()},handleAdd(){this.$refs["add"].showEdit()},handleEdit(e){this.$refs["add"].showEdit(e)},feedbackShow(e){this.$refs["feedback"].feedbackIndex(e)},search(){this.fetchData()},async exportData(){const e=await Object(s["taskExport"])(this.queryForm);c["default"].downloadFile(e,{fileName:"任务.xls"})},handleSelectionChange(e){const t=[];e.forEach(e=>{t.push(e.id)}),this.ids=t},deletes(){const e=this.ids;if(0==e.length)return this.$message({type:"info",message:"没有选中任何项"}),!1;this.deleteData(e)},deleteData(e){const t=this;this.$confirm("你确定要删除当前项吗?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(()=>{const{msg:o}=Object(s["doDelete"])(e);this.$message({type:"success",message:void 0==o?"删除成功":o}),setTimeout((function(){t.fetchData()}),1e3)}).catch(()=>{this.$message({type:"info",message:"已取消删除"})})},handleDelete(e){const t=this;t.deleteData([e.id])},handleQuery(){this.queryForm.page=1,this.fetchData()},handleSizeChange(e){this.queryForm.size=e,this.fetchData()},handleCurrentChange(e){this.queryForm.page=e,this.fetchData()}}},p=(o("12fe"),o("d959")),b=o.n(p);const g=b()(h,[["render",l],["__scopeId","data-v-1f51bf25"]]);t["default"]=g},"63ed":function(e,t,o){"use strict";o.r(t);var n=o("f2bf");const a={class:"manage-container"},r={id:"iframeId",ref:"iframe",src:"https://dp.lidinghb.com/chudy_visual/view/1646708782442479616",style:{width:"100%",height:"655px"}};function i(e,t,o,i,l,s){const c=Object(n["resolveComponent"])("el-button"),d=Object(n["resolveDirective"])("loading");return Object(n["withDirectives"])((Object(n["openBlock"])(),Object(n["createElementBlock"])("div",a,[Object(n["createVNode"])(c,{type:"primary",size:"mini",style:{"margin-bottom":"10px"},onClick:s.dianji},{default:Object(n["withCtx"])(()=>[Object(n["createTextVNode"])(Object(n["toDisplayString"])(e.$t("defalult.qp")),1)]),_:1},8,["onClick"]),Object(n["createElementVNode"])("iframe",r,null,512)])),[[d,l.loading]])}var l={name:"Index",data(){return{flowData:[],loading:!0,fullscreenLoading:!0,queryForm:{deviceCode:""},src:""}},computed:{height(){return 500}},created(){},mounted(){const{iframe:e}=this.$refs,t=this;e.attachEvent?e.attachEvent("onload",()=>{t.stateChange()}):e.onload=function(){t.stateChange()}},methods:{jump(){window.open("http://www.tuqiangol.com/index.jsp","_blank")},showData(e){console.log(e)},stateChange(){this.loading=!1},dianji(){const e=document.getElementById("iframeId");this.fullscreen?document.exitFullscreen?document.exitFullscreen():document.webkitCancelFullScreen?document.webkitCancelFullScreen():document.mozCancelFullScreen?document.mozCancelFullScreen():document.msExitFullscreen&&document.msExitFullscreen():e.requestFullscreen?e.requestFullscreen():e.webkitRequestFullScreen?e.webkitRequestFullScreen():e.mozRequestFullScreen?e.mozRequestFullScreen():e.msRequestFullscreen&&e.msRequestFullscreen()}}},s=(o("e4ea"),o("b090f"),o("d959")),c=o.n(s);const d=c()(l,[["render",i],["__scopeId","data-v-24cef6db"]]);t["default"]=d},6460:function(e,t,o){},"64d8":function(e,t,o){o("ef1f")},"650c":function(e,t,o){"use strict";o.r(t);var n=o("f2bf");const a={class:"manage-container"};function r(e,t,o,r,i,l){const s=Object(n["resolveComponent"])("el-date-picker"),c=Object(n["resolveComponent"])("el-form-item"),d=Object(n["resolveComponent"])("el-input"),u=Object(n["resolveComponent"])("el-option"),m=Object(n["resolveComponent"])("el-select"),h=Object(n["resolveComponent"])("el-button"),p=Object(n["resolveComponent"])("vab-query-form"),b=Object(n["resolveComponent"])("el-form"),g=Object(n["resolveComponent"])("el-row"),f=Object(n["resolveComponent"])("el-table-column"),v=Object(n["resolveComponent"])("el-table"),w=Object(n["resolveComponent"])("el-pagination"),k=Object(n["resolveComponent"])("vab-query-form-right-panel"),C=Object(n["resolveDirective"])("loading");return Object(n["openBlock"])(),Object(n["createElementBlock"])("div",a,[Object(n["createVNode"])(g,null,{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(b,{ref:"form",model:e.form,"label-width":"80px"},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(p,null,{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(c,{label:e.$t("defalult.sj")},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(s,{modelValue:e.value1,"onUpdate:modelValue":t[0]||(t[0]=t=>e.value1=t),type:"daterange","range-separator":"至","start-placeholder":"开始日期","end-placeholder":"结束日期"},null,8,["modelValue"])]),_:1},8,["label"]),Object(n["createVNode"])(c,{label:e.$t("dataEnquiry.zdmc")},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(d,{modelValue:i.queryForm.name,"onUpdate:modelValue":t[1]||(t[1]=e=>i.queryForm.name=e),placeholder:e.$t("dataEnquiry.qsrzdmc")},null,8,["modelValue","placeholder"])]),_:1},8,["label"]),Object(n["createVNode"])(c,{label:e.$t("maintenance.zdlx")},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(m,{modelValue:e.value,"onUpdate:modelValue":t[2]||(t[2]=t=>e.value=t),placeholder:"请选择站点类型"},{default:Object(n["withCtx"])(()=>[(Object(n["openBlock"])(!0),Object(n["createElementBlock"])(n["Fragment"],null,Object(n["renderList"])(e.options,e=>(Object(n["openBlock"])(),Object(n["createBlock"])(u,{key:e.value,label:e.label,value:e.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1},8,["label"]),Object(n["createVNode"])(c,{label:"问题描述"},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(d,{modelValue:i.queryForm.name,"onUpdate:modelValue":t[3]||(t[3]=e=>i.queryForm.name=e),placeholder:"请输入问题描述"},null,8,["modelValue"])]),_:1}),Object(n["createVNode"])(h,{type:"primary",onClick:e.search},{default:Object(n["withCtx"])(()=>[Object(n["createTextVNode"])(Object(n["toDisplayString"])(e.$t("defalult.cx")),1)]),_:1},8,["onClick"]),Object(n["createVNode"])(h,{type:"primary",onClick:e.search},{default:Object(n["withCtx"])(()=>[Object(n["createTextVNode"])(Object(n["toDisplayString"])(e.$t("defalult.dc")),1)]),_:1},8,["onClick"])]),_:1})]),_:1},8,["model"])]),_:1}),Object(n["withDirectives"])((Object(n["openBlock"])(),Object(n["createBlock"])(v,{data:i.data,border:"",stripe:"",style:{width:"100%"}},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(f,{prop:"id",label:e.$t("trigger.xh"),width:"60",align:"center"},null,8,["label"]),Object(n["createVNode"])(f,{prop:"jiedao",label:"上报时间",width:"120",align:"center"}),Object(n["createVNode"])(f,{prop:"shequ",label:"优先级",width:"200",align:"center"}),Object(n["createVNode"])(f,{prop:"mingcheng",label:"问题来源",width:"200",align:"center"}),Object(n["createVNode"])(f,{prop:"guimo",label:e.$t("maintenance.zdlx"),width:"200",align:"center"},null,8,["label"]),Object(n["createVNode"])(f,{prop:"kaishi1",label:e.$t("dataEnquiry.zdmc"),width:"200",align:"center"},null,8,["label"]),Object(n["createVNode"])(f,{prop:"jieshu1",label:"问题描述",width:"200",align:"center"}),Object(n["createVNode"])(f,{prop:"dangqian",label:"问题图片",width:"200",align:"center"}),Object(n["createVNode"])(f,{prop:"kaishi2",label:"上报人员",width:"200",align:"center"}),Object(n["createVNode"])(f,{prop:"jieshu2",label:e.$t("project.lxfs"),width:"200",align:"center"},null,8,["label"]),Object(n["createVNode"])(f,{prop:"jieshu3",label:"问题状态",width:"200",align:"center"}),Object(n["createVNode"])(f,{fixed:"right",label:e.$t("defalult.cz"),align:"center"},{default:Object(n["withCtx"])(({row:e})=>[Object(n["createVNode"])(h,{type:"text",onClick:t=>l.handleDelete(e)},{default:Object(n["withCtx"])(()=>t[4]||(t[4]=[Object(n["createTextVNode"])("工单进度")])),_:2},1032,["onClick"])]),_:1},8,["label"])]),_:1},8,["data"])),[[C,i.listLoading]]),Object(n["createVNode"])(p,null,{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(k,null,{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(w,{background:i.background,"current-page":i.queryForm.page,layout:i.layout,"page-size":i.queryForm.size,total:i.total,onCurrentChange:l.handleCurrentChange,onSizeChange:l.handleSizeChange},null,8,["background","current-page","layout","page-size","total","onCurrentChange","onSizeChange"])]),_:1})]),_:1})])}var i={name:"Index",components:{},data(){return{data:[{id:1,jiedao:"2022-10-01 12:00:00",shequ:"普通",mingcheng:"系统内部",guimo:"水环境监控",kaishi1:"站点名称",jieshu1:"问题描述",dangqian:"图片",kaishi2:"上报人员",jieshu2:"1555555555",jieshu3:"处理中"},{id:2,jiedao:"2022-10-01 12:00:00",shequ:"普通",mingcheng:"系统内部",guimo:"水环境监控",kaishi1:"站点名称",jieshu1:"问题描述",dangqian:"图片",kaishi2:"上报人员",jieshu2:"1555555555",jieshu3:"处理中"},{id:3,jiedao:"2022-10-01 12:00:00",shequ:"普通",mingcheng:"系统内部",guimo:"水环境监控",kaishi1:"站点名称",jieshu1:"问题描述",dangqian:"图片",kaishi2:"上报人员",jieshu2:"1555555555",jieshu3:"处理中"}],lazy:!0,activeName:"first",layout:"total, sizes, prev, pager, next, jumper",total:0,input:"",textarea:"",list:[],background:!0,listLoading:!0,elementLoadingText:"正在加载...",queryForm:{page:1,size:20,name:""}}},computed:{height(){return 500}},created(){this.fetchData()},methods:{async fetchData(){this.listLoading=!0,setTimeout(()=>{this.listLoading=!1},500)},handleAdd(){this.$refs["edit"].showEdit()},handleEdit(e){this.$refs["edit"].showEdit(e)},handleQuery(){this.queryForm.page=1,this.fetchData()},handleSizeChange(e){this.queryForm.size=e,this.fetchData()},handleCurrentChange(e){this.queryForm.page=e,this.fetchData()},handleDelete(e){e.id&&this.$confirm("你确定要删除当前项吗?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(()=>{this.$message({type:"success",message:"删除成功"})}).catch(()=>{this.$message({type:"info",message:"已取消删除"})})}}},l=(o("c60d"),o("d959")),s=o.n(l);const c=s()(i,[["render",r],["__scopeId","data-v-582373e9"]]);t["default"]=c},6582:function(e,t){e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADYAAAA2CAYAAACMRWrdAAAOqElEQVRoQ61aa4xV1RX+1pk7DsowD2a0UjWSWqiCOIM0TY0yDFF5S6GmUVNtk7YyrRa0BW3USLXGRwQaBqoVNTGp1kcbxaAMSDXDQyNNVMAHaqktjQ9QGGCG4TVz56xm773W3vvce9GBeP/MvWfO2Xuv17e+tdYhfF2fN2aV1x/cXQ/0DEn6ciM4wQUgPguMcwFUMTCIzF6ELgA7GfwFUdkWzqfvcJKsT9Ije3cd4r2YsurI13Eku9dxfxhUs3bGmTkyQuB7BFwE4GyAK82aDDAxCH4XAjMXb0fUy8AbCWMTiNcj7V23a3zbzuM+l9XfcX6+8dKEgWlFxQ2M5CcgDIGxiBHCWoWAWIDin0ZoIzoTiOx3ckpgcBeB/pMSnj6SSx7rvnD5F8dzxGMWrHrD1NryfO5yEOYDOL1QOWZBc1D310hnpHQHhwrur0f/9/c4kUXgDxh0T9pbvmLvpX/vPBYB+y9Ye3PuZKq+ICXcQMxTARogSpdDiwBGLPuVGUzODYOkwUesTEZUAtLIXWNPJYCYD4PRhoQW7+LO1zF+bb4/AvZPsPbmXB2qWwh8C0CniUojd9PTe59iu7CLL2cpE17GEkZYpxGwuJ/7LTY2cZkJEXediD5NGfd2oHNZf4T7SsFq2mfUlHH6q4TwewZVqINlQskcXk8GICEiBxJO5eZcesOXC1FgC4c1ekYjcA+lvLA3KVu4b/zz+77Mcl8qWE37jKFlSO8C42pvEyeEHrkkVqiVvBcKeMSYYr8LwhgrGutlDhoE8pdJrM+EJ/qQ3L5v/PPbjybcUQWzlkK6FIwrCcgJisk6WfBzIZUNJSccEzkJ/Ee/Rmaw9zlUVIR08envcXEr99m/fSB6ug/J7KNZrrRgJqbSQXcAuM0sXyyUBL7RqvOxgH4SPyKJ/681sdxeoIL4uqwTack86IAmeLseKeVbO5LuhaVirlgwCxSVLcTJImau6A8C+fPqzT6fOZ040NAc5/VUIg3EycM7f5Qmsqch4AgnydxSgFIkWO3aH4xNUn4SzCZHaawLABifSVx0RIimPlKoBBtDgvjFAOKx0SZpwUn33YKGVYezUxScJZD004TTq3ZdsnJDvH9GMJN8cz3JXwBMy7iSJFuXNCUgHIa7A3kHYk6QUMqpO4wuEhzVHNjGnYU7hwYOjCyAKBNxSGqTYHRCfcbt6cLBnonxbF9Fem3n2JV7gy0iMeteuewaMD/MhArPEkKIOVWaZdSQNtgl3qJrNiyUU4kL6rPeJeXEmuS8EiQ9KMWyQlj5BYUiBhPl/sNM6ew9F7c9WiRY5WszTznhYH4diM8udKmQfgMF0sybpUo+n3nCIWnaJevoE6cPxxGzbl8YBn6/gDxhNSfsx+V9PSM+n7jmgPUA/W/tK5f9LmHcl2HfAW9D+pUThTxkzRMDXsTmPZ0KKO8ov8V3xdOM8SKVR8JoQEY0IDq9cgHQbR0Xv3Cvc1EAJ6+ccmrfCbQKoEa7gnU/OYvlex5vizRfaF37nCUeEoPelQuYUvSgE9T6XEBKV/QUo7Z11XDdPmu9wdyafpjm00n7Jq/ebh8c/PK0K8D8CBiDhMC6baV8ckhlA9ojlQaw4FZkmggAMq4nMRLArlgnHqQijpnhkBZ15GzCAMzZgt73M3PL3gltTxHaJlfUlid/JNB19gkfRp7teeLgisZA4DKQbzXnqJFHT4krrbcyXuadMxSfRsunDKjl6rKBtL/vEO840pFxc93fFg6i+AAgjp9Syq176j+/iU5un3JqvhfLAfp+CRUG7pqpp/yd/v92A3eP45ERq9cY9CCRZcTeO5oGN9D8b/8UIyqHYtuBT/CbrUvxVte2zLGifUomeDKVeJqfTnX/mHpOyryFQOVKyMW0ohRNnuJtCjkheTkGrzGiMZCAbZ2lMZtpEWQKUWuVpsENWDxyNoaeeKoX5JWON/Gjt+b7As/BRdjL520rreZFdKdpfhzVrprSgoQeEiQpKjd8EvSOHILaLRyrXxYXIqWJWLikk13M5+Df6aOxahiWjZqHYQMD2THX2zs24fI3bw+VqgMx4acKIhHDVqBK+BqqXTPtT0B6nezhNFzKVUqG+ldcjEsRqZIVbqUisJZacM51RUIZV7zhvVZs3Lc19vsArZnQCJlWCtoHqXb11A0gNt0laStFnaVsheTRSCXXKtBArqFSEtJ6EGc3z5wk7oQQm2ea6hrROmIOxe5nnjFCtby7gDd1/tuSZ6VaAcXcFrH9XHaQ6jvlNVSzesqHAIbHCSOumXwBaA9o1JR6HufpVFQ7uVAThIxMn1mfmEcPGk7Lzit2v+2HduLG95ZgfccWKQ2c9zlQt1IKYVbM8aDlnMAl/8+odvWUTgZXxXGZIT+ep4mKFDxi0iRZ2atRAcMhR5R7XCoYO7gBC0eUdr+btj6I9XuMUJIPI27g9BS5Xaj2XFdLG0TAfqpZNVlrJqeLEiV5YSSdXz0ctw67BgkluP+jJ7Fxz3uOqQtgZUAjXo/ATYMbqXXkHAw9KaCfd793jPttk9abM5BTjYR+tlcpcsTJPJzUWMyscNRirlCoIQPq8Mz5d2JU1bfsv7Yd+Biz3l6IzZ3borZLgHmvSQCja4bxslE3USH6bT+40wKFcT9n5NDZcg0qT4GkfRDqV4U6LXG8cmtWTe4Eo6qoJ5xFcU+Xhw88A+suXIoByQleZhPs87Y+gPW7t4hHuyjVests2lTXQAtHXF+Mft3ybBBKcMzFqQjq8coTZ5MnpS4LLT05EqGLatomfwLgNCWvLj51UUkb6mKW8gzmJ8+fT2Oqv5MxptX6u07rWrMpOW2qb+DWkTdQkft1f4JZby8w1naUJfuJK2vvAv4WyaGZUiKE37+oum3SahAmKN3RG3Wj6LcHy3F1DWg998YScWLccgFv3rdN6yseXT2cHjboV3lGkSLmWEVsltzkq2lhTREtk8iPLSPns89avSfS5XLdiFepeuWkBwA4AqzpWelPcMegTomkpvpGLDLIVnBgE3Nz33Nu2VTXgEXn/rqk+83d+gCv79gUlSq+JR7ivTQ/dXgcn7XQ1sCDVNs24ccpJ08IMOsgwSVGbXjFXFAxnQijq4bRww03Y1hllgoZt3x2x1pcPqS52KrG/bbcD4N+wa1CH9FrMAIQHUW5iJC0rDVi4KwhEfThl1S9YuL5SLAORHamVfSJyhhpAGufz27TVNdIS0YVu2WppYzAc95ZjA1R8vV9y7h3GO8ZekYFERi1Mh1v0KK8p4/zjVS/euKQ3jyvYKIxodFSUsTii5J6x9U10qKR1xe5ZfzAtm510c3ush9SFPb1PbJ5whsSWkFPstQxiTbmkcwkvDGmvGpH/QIQ5vhml3bHCviwKyyjzlRUexm3fKTRuGUWJMzeRqhZm537hQIuqkDiAaBSBDdgco4vRUGY0/jWh+ci/j7Qn7sS+q19tmrFpKso4WVmKimzntAY9dRGFB0PGCTetGIeVzealpyXdcvtB3dgztutWNex2QV9aGLbX9Lb14Ik9Bldv9BRIe0/+lGA81uLiCK3Y5PYjzK+tnPKmmesYDXLJw1Nc7waYJecIn7oUkPUaIjzTVyWSDIdV9+Au0fMspZ7t+u/uPODx7C+Y1MoRNUGUWaKyXSYYIQRVKZr6p9XlxXZnA629CW5yQemtu1U0KTqFybeAsLdIVHGSd9jlQP7QHN8le2fI/CQinoalDsJnflu/vzwHjWU8teY6BcAgsKTx/Ko0PDZV0vbyFOla8x8S+f0Nfc528jHDMsPHcH7IJzu4yDOZ/ERpGGTGleKS37rZtL4iHNgPNmU3kjUvC7NU2NvEI/MVPMxh3Ru9kGa53HdP1xjh/EZ7VWvuPQXKWgJASf6mkqbjwok2nnKjFmjwZCnYwWQJXnJd7aUsMeTGI+WTitSeLk/0uu0V/UMIS0cIiQtXdNfelx3zQr24tTatK/nURBm6sDBKcvVRva7lMS6gMBSaJBG9/iusis+HFgEsPOSxxM9rQbioUbYK6rRPMm2Qf9c7sT053svfdm/WVDk74Oev3gsKHkKhG9qLKlwQRuZos5VtRoCOpCI2t7SD/QVsCvB436iuK8Cl4Kh1C9hqiIhJ24qSvgUVHbl/umrX81GS4HHoL05V9Vd3sIpFgGoKBg6CGiWPkjhUnKzIGLUitOYUUH8REaaa9KHkvXUL0vF4hFmzO2u7i16k6A0QrU35wZ15uaB6B7tlmWqCgUt6fJHAkhYRLWUpuQYw+LojqsVn82iQlN7+OIJxjuiOu/urqqeO/s3qhU11SxvrulLypcCuBKMXMgv1rlFe3E16swQXoGIBwrKjrQNXkLwAtR1P6WHKU3YUOdRHwhPl6W9s/fNXFvytYij5xQAA5Y3Dy1Pyu8C89U67g7ZTSJPJJYWkR/5+WGFJe7aancTUdeSka0zgxzXPpNEpaEYRNYIYPprL3pvPzxz7bG/DqGrGcullJuXAvOIUeF7dzqKsW4VoZ3CpEVAoTy+decYTDRoD0DrmxfZoYfgjLQN0QPgjjLOP3Q0SwWAKxnxBRfbm3OVneUtMK8csWkjSCLmNKKqgZG416j0bTa3VibErCKS0C6L3ijwgws/tUmVeH8CSu4rBRSlRPhSV8w8YAGl7AIwbk6ZLiFgQAzxwm4LR8pHV1tElgpviskTEw4R0EZMi/fX5jf25z2qWJH9sZu9p/rFqbX53p5pxHyrvHQpzwpU6oQx00LT13M80cwOM5RN2lgM1Qoj/TgB/SEpH/Bc57TwRkB/Dtt/ixWsVvnchFMI6c8YuALgswAa5KaecdWkLmspclT1q6Cq2+hNH5B5tfYzYn78pMqyVh2W90eYLLAe6xMF9w/8W/OplCtrToGLEmAMM8YQodzfpsN0ZSdSNEYDdpO0ug2JJabXQPzPPPVtPDxj7f+K3vg5hrMet8WK9mibXDGw+1At5XK1YG4CYVTKaEgIp4B5CBMqBeG62BSEoHeI8BGX4XXO8/tA+Y6DZ+7eje++2XsM5z/qrf8H3nEpOqbjUG8AAAAASUVORK5CYII="},6593:function(e,t,o){},"65bf":function(e,t,o){},"660d":function(e,t,o){"use strict";o("f359")},"669c":function(e,t,o){"use strict";o.r(t),o.d(t,"getList",(function(){return a})),o.d(t,"doEdit",(function(){return r})),o.d(t,"doDelete",(function(){return i})),o.d(t,"doAdd",(function(){return l})),o.d(t,"getDictData",(function(){return s})),o.d(t,"selectAttribute",(function(){return c})),o.d(t,"selectSensorType",(function(){return d})),o.d(t,"selectSensorUnit",(function(){return u})),o.d(t,"selectStoreStrategy",(function(){return m})),o.d(t,"selectFunctionCode",(function(){return h})),o.d(t,"selectDataFormat",(function(){return p})),o.d(t,"selectReadWrite",(function(){return b}));var n=o("b775");function a(e){let t="?page="+e.page+"&size="+e.size;return""!=e.deviceId&&(t+="&deviceId="+e.deviceId),""!=e.sensorName&&(t+="&sensorName="+e.sensorName),Object(n["default"])({url:"/iot/sensor/select"+t,method:"get",data:e})}function r(e){return Object(n["default"])({url:"/iot/sensor/update",method:"post",data:e})}function i(e){return Object(n["default"])({url:"/iot/sensor/remove",method:"post",data:e})}function l(e){return Object(n["default"])({url:"/iot/sensor/insert",method:"post",data:e})}function s(e){return Object(n["default"])({url:"/iot/sensor/dict",method:"get",data:e})}function c(e){return Object(n["default"])({url:"/iot/sensor/selectAttribute",method:"get",data:e})}function d(e){return Object(n["default"])({url:"/iot/sensor/selectSensorType",method:"get",data:e})}function u(e){return Object(n["default"])({url:"/iot/sensor/selectSensorUnit",method:"get",data:e})}function m(e){return Object(n["default"])({url:"/iot/sensor/selectStoreStrategy",method:"get",data:e})}function h(e){return Object(n["default"])({url:"/iot/sensor/selectFunctionCode",method:"get",data:e})}function p(e){return Object(n["default"])({url:"/iot/sensor/selectDataFormat",method:"get",data:e})}function b(e){return Object(n["default"])({url:"/iot/sensor/selectReadWrite",method:"get",data:e})}},6773:function(e,t,o){},6790:function(e,t,o){"use strict";o.r(t);var n=o("f2bf");const a={class:"manage-container"},r={class:"manage-input"},i={class:"manage-input"},l={class:"manage-button"};function s(e,t,o,s,c,d){const u=Object(n["resolveComponent"])("el-input"),m=Object(n["resolveComponent"])("el-form-item"),h=Object(n["resolveComponent"])("vab-query-form"),p=Object(n["resolveComponent"])("el-form"),b=Object(n["resolveComponent"])("el-cascader"),g=Object(n["resolveComponent"])("el-button"),f=Object(n["resolveComponent"])("el-table-column"),v=Object(n["resolveComponent"])("el-table"),w=Object(n["resolveComponent"])("el-pagination"),k=Object(n["resolveComponent"])("project-edit"),C=Object(n["resolveComponent"])("group"),y=Object(n["resolveComponent"])("alarm"),O=Object(n["resolveDirective"])("loading");return Object(n["openBlock"])(),Object(n["createElementBlock"])("div",a,[Object(n["createElementVNode"])("div",r,[Object(n["createVNode"])(p,{ref:"queryForm",model:c.queryForm,"label-width":"80px"},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(h,null,{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(m,{width:"100",prop:"name",label:e.$t("project.xmmc")},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(u,{modelValue:c.queryForm.name,"onUpdate:modelValue":t[0]||(t[0]=e=>c.queryForm.name=e),size:"small",placeholder:e.$t("project.qsrxmcm")},null,8,["modelValue","placeholder"])]),_:1},8,["label"]),Object(n["createVNode"])(m,{width:"100",prop:"leader",label:e.$t("project.rzr")},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(u,{modelValue:c.queryForm.leader,"onUpdate:modelValue":t[1]||(t[1]=e=>c.queryForm.leader=e),size:"small",placeholder:e.$t("project.qsrfzr")},null,8,["modelValue","placeholder"])]),_:1},8,["label"]),Object(n["createVNode"])(m,{width:"100",prop:"contact",label:e.$t("project.lxfs")},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(u,{modelValue:c.queryForm.contact,"onUpdate:modelValue":t[2]||(t[2]=e=>c.queryForm.contact=e),size:"small",placeholder:e.$t("project.qsrxmcm")},null,8,["modelValue","placeholder"])]),_:1},8,["label"])]),_:1})]),_:1},8,["model"])]),Object(n["createElementVNode"])("div",i,[Object(n["createVNode"])(p,{ref:"queryForm",model:c.queryForm,"label-width":"80px"},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(h,null,{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(m,{width:"100",prop:"regionCode",label:e.$t("project.dq")},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(b,{modelValue:c.queryForm.regionCode,"onUpdate:modelValue":t[3]||(t[3]=e=>c.queryForm.regionCode=e),size:"small",placeholder:e.$t("project.dq"),options:c.city,props:{value:"areaCode",label:"areaName",children:"children"},filterable:"",onChange:d.changeCity},null,8,["modelValue","placeholder","options","onChange"])]),_:1},8,["label"])]),_:1})]),_:1},8,["model"])]),Object(n["createElementVNode"])("div",l,[Object(n["createVNode"])(g,{size:"small",onClick:t[4]||(t[4]=e=>d.resetForm())},{default:Object(n["withCtx"])(()=>[Object(n["createTextVNode"])(Object(n["toDisplayString"])(e.$t("defalult.chongz")),1)]),_:1}),Object(n["createVNode"])(g,{type:"primary",size:"small",onClick:d.search},{default:Object(n["withCtx"])(()=>[Object(n["createTextVNode"])(Object(n["toDisplayString"])(e.$t("defalult.cx")),1)]),_:1},8,["onClick"]),Object(n["createVNode"])(g,{type:"primary",size:"small",onClick:d.handleAdd},{default:Object(n["withCtx"])(()=>[Object(n["createTextVNode"])(Object(n["toDisplayString"])(e.$t("project.tjxm")),1)]),_:1},8,["onClick"]),Object(n["createVNode"])(g,{type:"primary",size:"small",onClick:d.remove},{default:Object(n["withCtx"])(()=>[Object(n["createTextVNode"])(Object(n["toDisplayString"])(e.$t("defalult.plsc")),1)]),_:1},8,["onClick"]),Object(n["createVNode"])(g,{type:"primary",size:"small",onClick:d.exportData},{default:Object(n["withCtx"])(()=>[Object(n["createTextVNode"])(Object(n["toDisplayString"])(e.$t("defalult.dc")),1)]),_:1},8,["onClick"])]),Object(n["withDirectives"])((Object(n["openBlock"])(),Object(n["createBlock"])(v,{data:c.projectData,border:"",stripe:"",style:{width:"100%"},onSelectionChange:d.handleSelectionChange},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(f,{type:"selection",width:"40"}),Object(n["createVNode"])(f,{prop:"id",label:"ID",width:"60",align:"center"}),Object(n["createVNode"])(f,{prop:"name",label:e.$t("project.xmmc"),width:"250",align:"center"},null,8,["label"]),Object(n["createVNode"])(f,{prop:"longitude",label:e.$t("project.jd"),width:"100",align:"center"},null,8,["label"]),Object(n["createVNode"])(f,{prop:"latitude",label:e.$t("project.wd"),width:"100",align:"center"},null,8,["label"]),Object(n["createVNode"])(f,{prop:"provinceCode",label:e.$t("project.sbm"),width:"100",align:"center"},null,8,["label"]),Object(n["createVNode"])(f,{prop:"provinceName",label:e.$t("project.smc"),width:"150",align:"center"},null,8,["label"]),Object(n["createVNode"])(f,{prop:"cityCode",label:e.$t("project.sbma"),width:"100",align:"center"},null,8,["label"]),Object(n["createVNode"])(f,{prop:"cityName",label:e.$t("project.smcheng"),width:"150",align:"center"},null,8,["label"]),Object(n["createVNode"])(f,{prop:"areaCode",label:e.$t("project.qxbm"),width:"100",align:"center"},null,8,["label"]),Object(n["createVNode"])(f,{prop:"areaName",label:e.$t("project.qxmc"),width:"150",align:"center"},null,8,["label"]),Object(n["createVNode"])(f,{prop:"leader",label:e.$t("project.rzr"),width:"100",align:"center"},null,8,["label"]),Object(n["createVNode"])(f,{prop:"contact",label:e.$t("project.lxfs"),width:"120",align:"center"},null,8,["label"]),Object(n["createVNode"])(f,{prop:"approvalTime",label:e.$t("project.lxsj"),width:"180",align:"center"},null,8,["label"]),Object(n["createVNode"])(f,{prop:"projectGroup.name",label:e.$t("project.xmzmc"),width:"120",align:"center"},null,8,["label"]),Object(n["createVNode"])(f,{prop:"createTime",label:e.$t("grouping.cjsj"),width:"180",align:"center"},null,8,["label"]),Object(n["createVNode"])(f,{prop:"updateTime",label:e.$t("grouping.gxsj"),width:"180",align:"center"},null,8,["label"]),Object(n["createVNode"])(f,{fixed:"right",label:e.$t("defalult.cz"),width:"220",align:"center"},{default:Object(n["withCtx"])(({row:t})=>[Object(n["createVNode"])(g,{type:"text",onClick:e=>d.device(t)},{default:Object(n["withCtx"])(()=>[Object(n["createTextVNode"])(Object(n["toDisplayString"])(e.$t("project.zd")),1)]),_:2},1032,["onClick"]),Object(n["createVNode"])(g,{type:"text",onClick:e=>d.alarmUser(t)},{default:Object(n["withCtx"])(()=>[Object(n["createTextVNode"])(Object(n["toDisplayString"])(e.$t("project.bjyh")),1)]),_:2},1032,["onClick"]),Object(n["createVNode"])(g,{type:"text",onClick:e=>d.handleEdit(t)},{default:Object(n["withCtx"])(()=>[Object(n["createTextVNode"])(Object(n["toDisplayString"])(e.$t("defalult.bj")),1)]),_:2},1032,["onClick"]),Object(n["createVNode"])(g,{type:"text",onClick:e=>d.handleDelete(t)},{default:Object(n["withCtx"])(()=>[Object(n["createTextVNode"])(Object(n["toDisplayString"])(e.$t("defalult.sc")),1)]),_:2},1032,["onClick"])]),_:1},8,["label"])]),_:1},8,["data","onSelectionChange"])),[[O,c.listLoading]]),Object(n["createVNode"])(w,{background:c.background,"current-page":c.queryForm.page,layout:c.layout,"page-size":c.queryForm.size,total:c.total,style:{"text-align":"right"},onCurrentChange:d.handleCurrentChange,onSizeChange:d.handleSizeChange},null,8,["background","current-page","layout","page-size","total","onCurrentChange","onSizeChange"]),Object(n["createVNode"])(k,{ref:"edit"},null,512),Object(n["createVNode"])(C,{ref:"group"},null,512),Object(n["createVNode"])(y,{ref:"alarm"},null,512)])}o("14d9");var c=o("24d2"),d=o("c591"),u=o("3038"),m=o("aa4c"),h=o("5e1c"),p=o("49e6"),b={name:"Index",components:{Group:h["default"],projectEdit:m["default"],alarm:p["default"]},data(){return{projectData:[],lazy:!0,activeName:"first",layout:"total, sizes, prev, pager, next, jumper",total:0,input:"",textarea:"",list:[],background:!0,listLoading:!0,elementLoadingText:"正在加载...",ids:[],city:[],groupId:"",queryForm:{page:1,size:20,regionCode:"",name:"",leader:"",contact:"",groupId:""}}},computed:{height(){return 500}},created(){this.groupId=this.$route.query.groupId,this.queryForm.groupId=this.$route.query.groupId,this.fetchData(),this.getCity()},methods:{async getCity(){const{data:e}=await Object(d["getCity"])();this.city=this.getTreeData(e)},getTreeData(e){for(let t=0;t<e.length;t++)e[t].children.length<1?e[t].children=void 0:this.getTreeData(e[t].children);return e},alarmUser(e){this.$refs["alarm"].showEdit(e.id)},changeCity(){const e=this.queryForm.regionCode,t=e[e.length-1];this.queryForm.regionCode=t},async exportData(){const e=await Object(c["exportProject"])(this.queryForm);u["default"].downloadFile(e,{fileName:"项目.xls"})},resetForm(){this.$refs.queryForm.resetFields()},async soreStatus(e,t){const{code:o,msg:n}=await Object(c["doEdit"])({status:e,id:t});0==o?this.$notify({title:n,type:"success"}):this.$notify.error({title:n}),this.fetchData()},async fetchData(){this.listLoading=!0;const{data:e}=await Object(c["getList"])(this.queryForm);this.projectData=e.items,this.total=e.total,setTimeout(()=>{this.listLoading=!1},500)},device(e){this.$router.push({path:"/device",query:{projectId:e.id}})},search(){this.fetchData()},handleAdd(){this.$refs["edit"].showEdit({groupId:this.queryForm.groupId},1)},handleEdit(e){this.$refs["edit"].showEdit(e,2)},groupShow(e){this.$refs["group"].showGroup(e)},handleQuery(){this.queryForm.page=1,this.fetchData()},handleSizeChange(e){this.queryForm.size=e,this.fetchData()},handleCurrentChange(e){this.queryForm.page=e,this.fetchData()},remove(){const e=this.ids;this.deletes(e)},deletes(e){const t=this;this.$confirm("你确定要删除当前项吗?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(()=>{const{msg:o}=Object(c["doDelete"])(e);this.$message({type:"success",message:void 0==o?"删除成功":o}),setTimeout((function(){t.fetchData()}),1e3)}).catch(()=>{this.$message({type:"info",message:"已取消删除"})})},handleSelectionChange(e){const t=[];e.forEach(e=>{t.push(e.id)}),this.ids=t},handleDelete(e){const t=this;t.deletes([e.id])}}},g=(o("9990"),o("60e9"),o("d959")),f=o.n(g);const v=f()(b,[["render",s],["__scopeId","data-v-ee91371e"]]);t["default"]=v},6797:function(e,t,o){"use strict";o.r(t),o.d(t,"doEdit",(function(){return a})),o.d(t,"doAdd",(function(){return r})),o.d(t,"getData",(function(){return i}));var n=o("b775");async function a(e){return Object(n["default"])({url:"/webInfo/saveOrUpdate",method:"post",data:e})}async function r(e){return Object(n["default"])({url:"webInfo/saveOrUpdate",method:"post",data:e})}async function i(e){return Object(n["default"])({url:"/webInfo/select",method:"get",data:e})}},"67de":function(e,t,o){"use strict";o("22ba")},"691d":function(e,t,o){"use strict";o.r(t);var n=o("f2bf");const a={class:"manage-container"},r={class:"manage-input"},i={class:"manage-input"},l={class:"manage-button"};function s(e,t,o,s,c,d){const u=Object(n["resolveComponent"])("el-input"),m=Object(n["resolveComponent"])("el-form-item"),h=Object(n["resolveComponent"])("el-option"),p=Object(n["resolveComponent"])("el-select"),b=Object(n["resolveComponent"])("vab-query-form"),g=Object(n["resolveComponent"])("el-form"),f=Object(n["resolveComponent"])("el-date-picker"),v=Object(n["resolveComponent"])("el-button"),w=Object(n["resolveComponent"])("el-table-column"),k=Object(n["resolveComponent"])("el-table"),C=Object(n["resolveComponent"])("el-pagination"),y=Object(n["resolveComponent"])("trajectory"),O=Object(n["resolveDirective"])("loading");return Object(n["openBlock"])(),Object(n["createElementBlock"])("div",a,[Object(n["createElementVNode"])("div",r,[Object(n["createVNode"])(g,{ref:"queryForm",model:c.queryForm,"label-width":"80px"},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(b,null,{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(m,{width:"100",prop:"deviceName",label:e.$t("dataEnquiry.zdmc")},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(u,{modelValue:c.queryForm.deviceName,"onUpdate:modelValue":t[0]||(t[0]=e=>c.queryForm.deviceName=e),size:"small",placeholder:e.$t("dataEnquiry.qsrzdmc")},null,8,["modelValue","placeholder"])]),_:1},8,["label"]),Object(n["createVNode"])(m,{width:"100",prop:"signUser",label:e.$t("clock.dkr")},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(u,{modelValue:c.queryForm.signUser,"onUpdate:modelValue":t[1]||(t[1]=e=>c.queryForm.signUser=e),size:"small",placeholder:e.$t("clock.qsrdkr")},null,8,["modelValue","placeholder"])]),_:1},8,["label"]),Object(n["createVNode"])(m,{width:"130",prop:"type",label:e.$t("dataEnquiry.zt")},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(p,{modelValue:c.queryForm.type,"onUpdate:modelValue":t[2]||(t[2]=e=>c.queryForm.type=e),filterable:"",placeholder:e.$t("dataEnquiry.qxz")},{default:Object(n["withCtx"])(()=>[(Object(n["openBlock"])(!0),Object(n["createElementBlock"])(n["Fragment"],null,Object(n["renderList"])(c.typeData,e=>(Object(n["openBlock"])(),Object(n["createBlock"])(h,{key:e.value,label:e.label,value:e.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue","placeholder"])]),_:1},8,["label"])]),_:1})]),_:1},8,["model"])]),Object(n["createElementVNode"])("div",i,[Object(n["createVNode"])(g,{ref:"queryForm",model:c.queryForm,"label-width":"84px"},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(b,null,{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(m,{width:"100",prop:"time",label:e.$t("defalult.xzrq")},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(f,{modelValue:c.queryForm.time,"onUpdate:modelValue":t[3]||(t[3]=e=>c.queryForm.time=e),size:"small",type:"daterange",align:"right","start-placeholder":e.$t("defalult.ksrq"),"end-placeholder":e.$t("defalult.jsrq"),onChange:d.changeTime},null,8,["modelValue","start-placeholder","end-placeholder","onChange"])]),_:1},8,["label"])]),_:1})]),_:1},8,["model"])]),Object(n["createElementVNode"])("div",l,[Object(n["createVNode"])(m,{width:"100"},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(v,{size:"small",onClick:t[4]||(t[4]=e=>d.resetForm())},{default:Object(n["withCtx"])(()=>[Object(n["createTextVNode"])(Object(n["toDisplayString"])(e.$t("defalult.chongz")),1)]),_:1}),Object(n["createVNode"])(v,{type:"primary",size:"small",onClick:d.search},{default:Object(n["withCtx"])(()=>[Object(n["createTextVNode"])(Object(n["toDisplayString"])(e.$t("defalult.cx")),1)]),_:1},8,["onClick"]),Object(n["createVNode"])(v,{type:"primary",size:"small",onClick:d.exportData},{default:Object(n["withCtx"])(()=>[Object(n["createTextVNode"])(Object(n["toDisplayString"])(e.$t("defalult.dc")),1)]),_:1},8,["onClick"])]),_:1})]),Object(n["withDirectives"])((Object(n["openBlock"])(),Object(n["createBlock"])(k,{id:"table",data:c.tableData,border:"",stripe:"",style:{width:"100%"}},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(w,{fixed:"",prop:"deviceName",label:e.$t("dataEnquiry.zdmc"),width:"150",align:"center"},null,8,["label"]),Object(n["createVNode"])(w,{prop:"date",label:e.$t("defalult.rq"),width:"100",align:"center"},null,8,["label"]),Object(n["createVNode"])(w,{prop:"type",label:e.$t("clock.dklx"),width:"100",align:"center"},null,8,["label"]),Object(n["createVNode"])(w,{prop:"inTime",label:e.$t("clock.qdsj"),width:"120",align:"center"},null,8,["label"]),Object(n["createVNode"])(w,{prop:"outTime",label:e.$t("clock.qtsj"),width:"120",align:"center"},null,8,["label"]),Object(n["createVNode"])(w,{prop:"signUser",label:e.$t("clock.dkr"),width:"100",align:"center"},null,8,["label"]),Object(n["createVNode"])(w,{prop:"location",label:e.$t("clock.dkdd"),align:"center"},{default:Object(n["withCtx"])(e=>[Object(n["withDirectives"])(Object(n["createElementVNode"])("span",null,Object(n["toDisplayString"])(e.row.location),513),[[n["vShow"],!e.row.editFlag]]),Object(n["withDirectives"])(Object(n["createVNode"])(u,{modelValue:e.row.location,"onUpdate:modelValue":t=>e.row.location=t,onBlur:t=>d.editClock(e.row)},null,8,["modelValue","onUpdate:modelValue","onBlur"]),[[n["vShow"],e.row.editFlag]])]),_:1},8,["label"]),Object(n["createVNode"])(w,{fixed:"right",label:e.$t("defalult.cz"),align:"center",width:"150"},{default:Object(n["withCtx"])(({row:t})=>[Object(n["createVNode"])(v,{type:"text",onClick:e=>d.trajectory(t)},{default:Object(n["withCtx"])(()=>[Object(n["createTextVNode"])(Object(n["toDisplayString"])(e.$t("clock.gj")),1)]),_:2},1032,["onClick"]),Object(n["createVNode"])(v,{type:"text",onClick:e=>d.handleEdit(t)},{default:Object(n["withCtx"])(()=>[Object(n["createTextVNode"])(Object(n["toDisplayString"])(e.$t("defalult.bj")),1)]),_:2},1032,["onClick"]),Object(n["createVNode"])(v,{type:"text",onClick:e=>d.handleDelete(t)},{default:Object(n["withCtx"])(()=>[Object(n["createTextVNode"])(Object(n["toDisplayString"])(e.$t("defalult.sc")),1)]),_:2},1032,["onClick"])]),_:1},8,["label"])]),_:1},8,["data"])),[[O,c.listLoading]]),Object(n["createVNode"])(C,{background:c.background,"current-page":c.queryForm.page,layout:c.layout,"page-size":c.queryForm.size,total:c.total,style:{"text-align":"right"},onCurrentChange:d.handleCurrentChange,onSizeChange:d.handleSizeChange},null,8,["background","current-page","layout","page-size","total","onCurrentChange","onSizeChange"]),Object(n["createVNode"])(y,{ref:"trajectory"},null,512)])}var c=o("6f56"),d=o("5f99"),u=o("3038"),m=o("0182"),h={components:{trajectory:m["default"]},data(){return{tableData:[],lazy:!0,layout:"total, sizes, prev, pager, next, jumper",total:0,background:!0,listLoading:!1,elementLoadingText:"正在加载...",queryForm:{page:1,size:20,deviceName:"",signUser:"",start:"",end:"",time:"",projectId:"",type:2},typeData:[{label:"all",value:2},{label:"站点打卡",value:0},{label:"外出打卡",value:1}],form:{id:"",location:""}}},created(){this.queryForm.projectId=sessionStorage.getItem("projectId"),this.setDefaultTime(),setTimeout(()=>{this.fetchData()},1e3)},methods:{changeTime(){this.queryForm.start=Object(d["getDate"])(this.queryForm.time[0]),this.queryForm.end=Object(d["getDate"])(this.queryForm.time[1])},trajectory(e){console.log(e),this.$refs["trajectory"].loadScript({userId:e.userId})},setDefaultTime(){this.queryForm.time=Object(d["getPastTime"])(1),this.queryForm.start=Object(d["getDate"])(this.queryForm.time[0]),this.queryForm.end=Object(d["getDate"])(this.queryForm.time[1])},async fetchData(){const{data:e}=await Object(c["getClockData"])(this.queryForm);this.tableData=e.items,this.total=e.total},search(){this.fetchData()},handleEdit(e){e.editFlag=!0},async editClock(e){const t=this;this.$confirm("你确定要编辑当前项吗?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(()=>{this.form.id=e.id,this.form.location=e.location;const{msg:o}=Object(c["doEdit"])(this.form);this.$notify({title:"操作成功",type:"success"}),setTimeout((function(){t.fetchData()}),1e3)}).catch(()=>{this.$message({type:"info",message:"已取消编辑"})})},async exportData(){const e=await Object(c["doExport"])(this.queryForm);u["default"].downloadFile(e,{fileName:"打卡记录.xls"})},resetForm(){this.$refs.queryForm.resetFields()},deletes(e){const t=this;this.$confirm("你确定要删除当前项吗?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(()=>{const{msg:o}=Object(c["doDelete"])(e);this.$message({type:"success",message:void 0==o?"删除成功":o}),setTimeout((function(){t.fetchData()}),1e3)}).catch(()=>{this.$message({type:"info",message:"已取消删除"})})},handleDelete(e){const t=this;t.deletes([e.id])},handleQuery(){this.queryForm.page=1,this.fetchData()},handleSizeChange(e){this.queryForm.size=e,this.fetchData()},handleCurrentChange(e){this.queryForm.page=e,this.fetchData()}}},p=(o("1d25"),o("ebb2"),o("d959")),b=o.n(p);const g=b()(h,[["render",s],["__scopeId","data-v-3404fb6e"]]);t["default"]=g},"694d":function(e,t,o){"use strict";o.r(t);var n=o("f2bf");const a={class:"manage-container"},r={class:"manage-wrap"},i={class:"manage-input"},l={class:"manage-input"},s={class:"manage-button"};function c(e,t,o,c,d,u){const m=Object(n["resolveComponent"])("el-input"),h=Object(n["resolveComponent"])("el-form-item"),p=Object(n["resolveComponent"])("vab-query-form"),b=Object(n["resolveComponent"])("el-form"),g=Object(n["resolveComponent"])("el-option"),f=Object(n["resolveComponent"])("el-select"),v=Object(n["resolveComponent"])("el-button"),w=Object(n["resolveComponent"])("el-table-column"),k=Object(n["resolveComponent"])("el-tag"),C=Object(n["resolveComponent"])("el-table"),y=Object(n["resolveComponent"])("el-pagination"),O=Object(n["resolveDirective"])("loading");return Object(n["openBlock"])(),Object(n["createElementBlock"])("div",a,[Object(n["createElementVNode"])("div",r,[Object(n["createElementVNode"])("div",i,[Object(n["createVNode"])(b,{ref:"queryForm",model:d.queryForm,"label-width":"80px"},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(p,null,{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(h,{width:"100",prop:"name",label:e.$t("dataEnquiry.zdmc")},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(m,{modelValue:d.queryForm.name,"onUpdate:modelValue":t[0]||(t[0]=e=>d.queryForm.name=e),size:"small",placeholder:e.$t("dataEnquiry.qsrzdmc")},null,8,["modelValue","placeholder"])]),_:1},8,["label"]),Object(n["createVNode"])(h,{width:"100",prop:"code",label:e.$t("dataEnquiry.xlh")},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(m,{modelValue:d.queryForm.code,"onUpdate:modelValue":t[1]||(t[1]=e=>d.queryForm.code=e),size:"small",placeholder:e.$t("dataEnquiry.qsrxlh")},null,8,["modelValue","placeholder"])]),_:1},8,["label"]),Object(n["createVNode"])(h,{width:"100",prop:"community",label:e.$t("dataEnquiry.sq")},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(m,{modelValue:d.queryForm.community,"onUpdate:modelValue":t[2]||(t[2]=e=>d.queryForm.community=e),size:"small",placeholder:e.$t("dataEnquiry.qsrsq")},null,8,["modelValue","placeholder"])]),_:1},8,["label"])]),_:1})]),_:1},8,["model"])]),Object(n["createElementVNode"])("div",l,[Object(n["createVNode"])(b,{ref:"queryForm",model:d.queryForm,"label-width":"80px"},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(p,null,{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(h,{width:"100",prop:"commPro",label:e.$t("dataEnquiry.txxy")},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(f,{modelValue:d.queryForm.commPro,"onUpdate:modelValue":t[3]||(t[3]=e=>d.queryForm.commPro=e),size:"small",placeholder:e.$t("dataEnquiry.qxztxxy")},{default:Object(n["withCtx"])(()=>[(Object(n["openBlock"])(!0),Object(n["createElementBlock"])(n["Fragment"],null,Object(n["renderList"])(d.dictData,e=>(Object(n["openBlock"])(),Object(n["createBlock"])(g,{key:e.dataCode,label:e.dataValue,value:e.dataCode},null,8,["label","value"]))),128))]),_:1},8,["modelValue","placeholder"])]),_:1},8,["label"]),Object(n["createVNode"])(h,{width:"100",prop:"townCode",label:e.$t("dataEnquiry.jd")},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(f,{modelValue:d.queryForm.townCode,"onUpdate:modelValue":t[4]||(t[4]=e=>d.queryForm.townCode=e),size:"small",placeholder:e.$t("dataEnquiry.qxzjd")},{default:Object(n["withCtx"])(()=>[(Object(n["openBlock"])(!0),Object(n["createElementBlock"])(n["Fragment"],null,Object(n["renderList"])(d.townData,e=>(Object(n["openBlock"])(),Object(n["createBlock"])(g,{key:e.townCode,label:e.townName,value:e.townCode},null,8,["label","value"]))),128))]),_:1},8,["modelValue","placeholder"])]),_:1},8,["label"]),Object(n["createVNode"])(h,{width:"100",prop:"status",label:e.$t("dataEnquiry.zt")},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(f,{modelValue:d.queryForm.status,"onUpdate:modelValue":t[5]||(t[5]=e=>d.queryForm.status=e),size:"small",placeholder:e.$t("dataEnquiry.qxzzt")},{default:Object(n["withCtx"])(()=>[(Object(n["openBlock"])(!0),Object(n["createElementBlock"])(n["Fragment"],null,Object(n["renderList"])(d.statusData,e=>(Object(n["openBlock"])(),Object(n["createBlock"])(g,{key:e.value,label:e.label,value:e.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue","placeholder"])]),_:1},8,["label"])]),_:1})]),_:1},8,["model"])]),Object(n["createElementVNode"])("div",s,[Object(n["createVNode"])(v,{size:"small",onClick:t[6]||(t[6]=e=>u.resetForm())},{default:Object(n["withCtx"])(()=>[Object(n["createTextVNode"])(Object(n["toDisplayString"])(e.$t("defalult.chongz")),1)]),_:1}),Object(n["createVNode"])(v,{type:"primary",size:"small",onClick:u.search},{default:Object(n["withCtx"])(()=>[Object(n["createTextVNode"])(Object(n["toDisplayString"])(e.$t("defalult.cx")),1)]),_:1},8,["onClick"]),Object(n["createVNode"])(v,{type:"primary",size:"small",onClick:u.exportData},{default:Object(n["withCtx"])(()=>[Object(n["createTextVNode"])(Object(n["toDisplayString"])(e.$t("defalult.dc")),1)]),_:1},8,["onClick"])])]),Object(n["withDirectives"])((Object(n["openBlock"])(),Object(n["createBlock"])(C,{id:"table",data:d.deviceData,border:"",stripe:"",style:{width:"100%"},onSelectionChange:u.handleSelectionChange},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(w,{type:"selection",width:"55"}),Object(n["createVNode"])(w,{prop:"id",label:"ID",width:"60",align:"center"}),Object(n["createVNode"])(w,{prop:"name",label:e.$t("monitorVideo.sbmc"),width:"160",align:"center"},null,8,["label"]),Object(n["createVNode"])(w,{prop:"code",label:e.$t("dataEnquiry.zdbm"),width:"200",align:"center"},null,8,["label"]),Object(n["createVNode"])(w,{prop:"commPro.dataValue",label:e.$t("dataEnquiry.txxy"),width:"200",align:"center"},null,8,["label"]),Object(n["createVNode"])(w,{prop:"status",label:e.$t("dataEnquiry.ljzt"),width:"120",align:"center"},{default:Object(n["withCtx"])(({row:t})=>["已连接"==t.status?(Object(n["openBlock"])(),Object(n["createBlock"])(k,{key:"已连接",effect:"dark",type:"success",size:"mini"},{default:Object(n["withCtx"])(()=>[Object(n["createTextVNode"])(Object(n["toDisplayString"])(e.$t("dataEnquiry.ylj")),1)]),_:1})):Object(n["createCommentVNode"])("",!0),"未连接"==t.status?(Object(n["openBlock"])(),Object(n["createBlock"])(k,{key:"未连接",effect:"dark",type:"danger",size:"mini"},{default:Object(n["withCtx"])(()=>[Object(n["createTextVNode"])(Object(n["toDisplayString"])(e.$t("dataEnquiry.wlj")),1)]),_:1})):Object(n["createCommentVNode"])("",!0)]),_:1},8,["label"]),Object(n["createVNode"])(w,{prop:"enableStatus",label:e.$t("site.qyzt"),width:"120",align:"center"},{default:Object(n["withCtx"])(({row:t})=>[1==t.enableStatus?(Object(n["openBlock"])(),Object(n["createBlock"])(k,{key:"启用",effect:"dark",type:"success",size:"mini"},{default:Object(n["withCtx"])(()=>[Object(n["createTextVNode"])(Object(n["toDisplayString"])(e.$t("site.qy")),1)]),_:1})):Object(n["createCommentVNode"])("",!0),0==t.enableStatus?(Object(n["openBlock"])(),Object(n["createBlock"])(k,{key:"未启用",effect:"dark",type:"danger",size:"mini"},{default:Object(n["withCtx"])(()=>[Object(n["createTextVNode"])(Object(n["toDisplayString"])(e.$t("site.wqy")),1)]),_:1})):Object(n["createCommentVNode"])("",!0)]),_:1},8,["label"]),Object(n["createVNode"])(w,{prop:"offlineDelay",label:e.$t("dataEnquiry.lxyzm"),width:"100",align:"center"},null,8,["label"]),Object(n["createVNode"])(w,{prop:"commPro.dataValue",label:e.$t("dataEnquiry.txxy"),width:"100",align:"center"},null,8,["label"]),Object(n["createVNode"])(w,{prop:"project.name",label:e.$t("dataEnquiry.xm"),width:"220",align:"center"},null,8,["label"]),Object(n["createVNode"])(w,{prop:"longitude",label:e.$t("dataEnquiry.jd"),width:"200",align:"center"},null,8,["label"]),Object(n["createVNode"])(w,{prop:"latitude",label:e.$t("dataEnquiry.wd"),width:"200",align:"center"},null,8,["label"]),Object(n["createVNode"])(w,{prop:"offlineDelay",label:e.$t("dataEnquiry.lxys"),width:"100",align:"center"},null,8,["label"]),Object(n["createVNode"])(w,{prop:"townName",label:e.$t("dataEnquiry.xzjdmc"),width:"150",align:"center"},null,8,["label"]),Object(n["createVNode"])(w,{prop:"community",label:e.$t("dataEnquiry.sq"),width:"160",align:"center"},null,8,["label"]),Object(n["createVNode"])(w,{prop:"specifications",label:e.$t("dataEnquiry.sbgg"),width:"100",align:"center"},null,8,["label"]),Object(n["createVNode"])(w,{prop:"specifications",label:e.$t("dataEnquiry.sbggd"),width:"150",align:"center"},null,8,["label"]),Object(n["createVNode"])(w,{prop:"simNum",label:e.$t("dataEnquiry.skjjhm"),width:"150",align:"center"},null,8,["label"]),Object(n["createVNode"])(w,{prop:"technology.dataValue",label:e.$t("dataEnquiry.sbgy"),width:"100",align:"center"},null,8,["label"]),Object(n["createVNode"])(w,{prop:"material.dataValue",label:e.$t("dataEnquiry.sbcz"),width:"100",align:"center"},null,8,["label"]),Object(n["createVNode"])(w,{prop:"outStandard.dataValue",label:e.$t("dataEnquiry.csbz"),width:"100",align:"center"},null,8,["label"]),Object(n["createVNode"])(w,{prop:"leader",label:e.$t("dataEnquiry.ywry"),width:"100",align:"center"},null,8,["label"]),Object(n["createVNode"])(w,{prop:"contact",label:e.$t("dataEnquiry.lxfs"),width:"150",align:"center"},null,8,["label"]),Object(n["createVNode"])(w,{prop:"type.dataValue",label:e.$t("dataEnquiry.sblx"),width:"100",align:"center"},null,8,["label"]),Object(n["createVNode"])(w,{prop:"userNum",label:e.$t("dataEnquiry.fwyhs"),width:"100",align:"center"},null,8,["label"]),Object(n["createVNode"])(w,{prop:"onlineTime",label:e.$t("dataEnquiry.sxsj"),width:"200",align:"center"},null,8,["label"]),Object(n["createVNode"])(w,{prop:"offlineTime",label:e.$t("dataEnquiry.lxsj"),width:"200",align:"center"},null,8,["label"]),Object(n["createVNode"])(w,{prop:"offlineDuration",label:e.$t("dataEnquiry.lxsc"),width:"150",align:"center"},null,8,["label"])]),_:1},8,["data","onSelectionChange"])),[[O,d.listLoading]]),Object(n["createVNode"])(y,{background:d.background,"current-page":d.queryForm.page,layout:d.layout,"page-size":d.queryForm.size,total:d.total,style:{"text-align":"right"},onCurrentChange:u.handleCurrentChange,onSizeChange:u.handleSizeChange},null,8,["background","current-page","layout","page-size","total","onCurrentChange","onSizeChange"])])}o("14d9");var d=o("aa98"),u=o("3038"),m={name:"Index",components:{},data(){return{deviceData:[],lazy:!0,activeName:"first",layout:"total, sizes, prev, pager, next, jumper",total:0,input:"",textarea:"",list:[],townData:[],dictData:[],background:!0,listLoading:!0,ids:[],elementLoadingText:"正在加载...",statusData:[{label:"all",value:3},{label:"离线",value:0},{label:"在线",value:1}],queryForm:{page:1,size:20,name:"",projectId:"",code:"",community:"",townCode:"",commPro:"",status:3}}},computed:{height(){return 500}},created(){this.queryForm.projectId=sessionStorage.getItem("projectId"),this.fetchData(),this.getTownData(),this.getDictData()},methods:{async fetchData(){this.listLoading=!0;const{data:e}=await Object(d["getList"])(this.queryForm);this.deviceData=e.items,this.total=e.total,setTimeout(()=>{this.listLoading=!1},500)},async getTownData(){const{data:e}=await Object(d["getTownsByProject"])(this.queryForm);this.townData=e},async getDictData(){const{data:e}=await Object(d["getDictData"])(this.queryForm);this.dictData=e.communicationProtocol},resetForm(){this.$refs.queryForm.resetFields()},search(){this.fetchData()},async exportData(){const e=await Object(d["exportDevice"])(this.queryForm);u["default"].downloadFile(e,{fileName:"站点列表.xls"})},sensorEdit(e){this.$router.push({name:"传感器管理",path:"/sensor",query:{deviceId:e.id}})},sensorData(e){this.$router.push({name:"站点最新数据",path:"/sensorIotData",query:{deviceCode:e.code,deviceId:e.id}})},handleAdd(){this.$refs["edit"].showEdit({projectId:this.queryForm.projectId},1)},handleEdit(e){this.$refs["edit"].showEdit(e,2)},copyDevice(e){this.$refs["copy"].showCopy(e)},handleQuery(){this.queryForm.page=1,this.fetchData()},handleSizeChange(e){this.queryForm.size=e,this.fetchData()},handleCurrentChange(e){this.queryForm.page=e,this.fetchData()},deletes(){const e=this.ids;if(0==e.length)return this.$message({type:"info",message:"没有选中任何项"}),!1;this.deleteData(e)},handleSelectionChange(e){const t=[];e.forEach(e=>{t.push(e.id)}),this.ids=t,console.log(this.ids)},deleteData(e){this.$confirm("你确定要删除当前项吗?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(()=>{const{msg:t}=Object(d["doDelete"])(e);this.$message({type:"success",message:void 0==t?"删除成功":t});const o=this;setTimeout((function(){o.fetchData()}),1e3)}).catch(()=>{this.$message({type:"info",message:"已取消删除"})})},handleDelete(e){e.id&&this.deleteData([e.id])}}},h=(o("92a1"),o("d959")),p=o.n(h);const b=p()(m,[["render",c],["__scopeId","data-v-2f0094d2"]]);t["default"]=b},"695d":function(e,t,o){"use strict";o.r(t);var n=o("f2bf");const a={class:"dialog-footer"};function r(e,t,o,r,i,l){const s=Object(n["resolveComponent"])("el-tree"),c=Object(n["resolveComponent"])("el-form-item"),d=Object(n["resolveComponent"])("el-form"),u=Object(n["resolveComponent"])("el-button"),m=Object(n["resolveComponent"])("el-dialog");return Object(n["openBlock"])(),Object(n["createBlock"])(m,{modelValue:i.dialogFormVisible,"onUpdate:modelValue":t[0]||(t[0]=e=>i.dialogFormVisible=e),title:e.title,width:"500px",onClose:l.close},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(d,{ref:"form",model:i.form,rules:e.rules,"label-width":"80px"},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(c,{label:"角色授权",prop:"menuIds"},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(s,{ref:"tree","empty-text":"暂无数据","expand-on-click-node":!1,props:i.defaultProps,"default-checked-keys":i.node,"node-key":"value",data:i.parentData,"show-checkbox":"","default-expand-all":"",onCheck:l.currentChecked},null,8,["props","default-checked-keys","data","onCheck"])]),_:1})]),_:1},8,["model","rules"]),Object(n["createElementVNode"])("div",a,[Object(n["createVNode"])(u,{type:"primary",size:"small",onClick:l.save},{default:Object(n["withCtx"])(()=>t[1]||(t[1]=[Object(n["createTextVNode"])("确 定")])),_:1},8,["onClick"]),Object(n["createVNode"])(u,{size:"small",onClick:l.close},{default:Object(n["withCtx"])(()=>t[2]||(t[2]=[Object(n["createTextVNode"])("取 消")])),_:1},8,["onClick"])])]),_:1},8,["modelValue","title","onClose"])}o("14d9"),o("1e70"),o("79a4"),o("c1a1"),o("8b00"),o("a4e7"),o("1e5a"),o("72c3");var i=o("cc5e"),l=o("1f27"),s={name:"RoleGrant",data(){return{form:{roleId:"",menuIds:""},defaultProps:{id:"value",label:"label",children:"children"},node:[],menuIds:"",clearable:!0,parentData:[],dialogFormVisible:!1,parentIdData:[]}},created(){},methods:{async getParentData(){const{data:e}=await Object(l["getCustom"])();this.parentData=e},async getNodeData(){const{data:e}=await Object(i["getMenuIdsByRoleId"])({roleId:this.form.roleId});this.parentData.forEach((function(t){e.includes(t.value)&&e.splice(e.indexOf(t.value),1)})),this.$refs.tree.setCheckedKeys(e)},currentChecked(){const e=this.$refs.tree.getCheckedNodes(!1,!0),t=[];e.forEach(e=>{t.push(e.value,e.value)}),this.form.menuIds=Array.from(new Set(t))},roleGrant(e){this.title="角色授权",this.form=Object.assign({},e),this.form.roleId=e.id,this.dialogFormVisible=!0,this.getNodeData(),this.getParentData()},close(){this.$refs["form"].resetFields(),this.form=this.$options.data().form,this.dialogFormVisible=!1,this.$emit("fetch-data")},save(){this.$refs["form"].validate(async e=>{if(!e)return!1;{const{msg:e}=await Object(i["assignMenu"])({menuIds:this.form.menuIds,roleId:this.form.roleId});this.$notify({title:e,type:"success"}),this.dialogFormVisible=!1}})}}},c=(o("4ee8"),o("d959")),d=o.n(c);const u=d()(s,[["render",r]]);t["default"]=u},"69a4":function(e,t){(function(){"use strict";var e=tinymce.util.Tools.resolve("tinymce.PluginManager"),t=tinymce.util.Tools.resolve("tinymce.Env"),o=tinymce.util.Tools.resolve("tinymce.util.Tools");const n=e=>t=>t.options.get(e),a=n("content_style"),r=n("content_css_cors"),i=n("body_class"),l=n("body_id"),s=e=>{var n;let s="";const c=e.dom.encode,d=null!==(n=a(e))&&void 0!==n?n:"";s+='<base href="'+c(e.documentBaseURI.getURI())+'">';const u=r(e)?' crossorigin="anonymous"':"";o.each(e.contentCSS,t=>{s+='<link type="text/css" rel="stylesheet" href="'+c(e.documentBaseURI.toAbsolute(t))+'"'+u+">"}),d&&(s+='<style type="text/css">'+d+"</style>");const m=l(e),h=i(e),p=t.os.isMacOS()||t.os.isiOS()?"e.metaKey":"e.ctrlKey && !e.altKey",b='<script>document.addEventListener && document.addEventListener("click", function(e) {for (var elm = e.target; elm; elm = elm.parentNode) {if (elm.nodeName === "A" && !('+p+")) {e.preventDefault();}}}, false);<\/script> ",g=e.getBody().dir,f=g?' dir="'+c(g)+'"':"",v="<!DOCTYPE html><html><head>"+s+'</head><body id="'+c(m)+'" class="mce-content-body '+c(h)+'"'+f+">"+e.getContent()+b+"</body></html>";return v},c=e=>{const t=s(e),o=e.windowManager.open({title:"Preview",size:"large",body:{type:"panel",items:[{name:"preview",type:"iframe",sandboxed:!0,transparent:!1}]},buttons:[{type:"cancel",name:"close",text:"Close",primary:!0}],initialData:{preview:t}});o.focus("close")},d=e=>{e.addCommand("mcePreview",()=>{c(e)})},u=e=>{const t=()=>e.execCommand("mcePreview");e.ui.registry.addButton("preview",{icon:"preview",tooltip:"Preview",onAction:t}),e.ui.registry.addMenuItem("preview",{icon:"preview",text:"Preview",onAction:t})};var m=()=>{e.add("preview",e=>{d(e),u(e)})};m()})()},"69a7":function(e,t,o){e.exports=o.p+"static/img/jd.4c41e27f.png"},"6ac1":function(e,t,o){"use strict";o("895f")},"6ba4":function(e,t,o){},"6d3a":function(e,t,o){e.exports={"menu-color":"hsla(0,0%,27%,.95)","menu-color-active":"hsla(208,100%,55%,.95)","menu-background":"#fff","gallery-second-menu-background":"#fff"}},"6e47":function(e,t,o){"use strict";o.r(t);var n=o("f2bf");const a={class:"manage-container"};function r(e,t,o,r,i,l){const s=Object(n["resolveComponent"])("el-input"),c=Object(n["resolveComponent"])("el-form-item"),d=Object(n["resolveComponent"])("el-form"),u=Object(n["resolveComponent"])("el-button"),m=Object(n["resolveComponent"])("el-tab-pane"),h=Object(n["resolveComponent"])("el-table-column"),p=Object(n["resolveComponent"])("el-table"),b=Object(n["resolveComponent"])("el-pagination"),g=Object(n["resolveComponent"])("vab-query-form-right-panel"),f=Object(n["resolveComponent"])("vab-query-form"),v=Object(n["resolveComponent"])("el-tabs"),w=Object(n["resolveDirective"])("loading");return Object(n["openBlock"])(),Object(n["createElementBlock"])("div",a,[Object(n["createVNode"])(v,{modelValue:i.activeName,"onUpdate:modelValue":t[8]||(t[8]=e=>i.activeName=e),onTabClick:l.handleClick},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(m,{label:"网站信息",name:"first"},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(d,{ref:"form",model:e.form,"label-width":"80px"},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(c,{label:"网站名称"},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(s,{modelValue:e.sys.name,"onUpdate:modelValue":t[0]||(t[0]=t=>e.sys.name=t),placeholder:"请输入内容"},null,8,["modelValue"])]),_:1}),Object(n["createVNode"])(c,{label:"联系电话"},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(s,{modelValue:e.sys.phone,"onUpdate:modelValue":t[1]||(t[1]=t=>e.sys.phone=t),type:"textarea",placeholder:"请输入内容"},null,8,["modelValue"])]),_:1}),Object(n["createVNode"])(c,{label:"关键字"},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(s,{modelValue:e.sys.keyword,"onUpdate:modelValue":t[2]||(t[2]=t=>e.sys.keyword=t),type:"textarea",placeholder:"请输入内容"},null,8,["modelValue"])]),_:1}),Object(n["createVNode"])(c,{label:"网站描述"},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(s,{type:"textarea",placeholder:"请输入内容"})]),_:1}),Object(n["createVNode"])(c,{label:"统计代码"},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(s,{modelValue:e.sys.js,"onUpdate:modelValue":t[3]||(t[3]=t=>e.sys.js=t),type:"textarea",placeholder:"请输入内容"},null,8,["modelValue"])]),_:1}),Object(n["createVNode"])(c,{label:"备案号"},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(s,{modelValue:e.sys.code,"onUpdate:modelValue":t[4]||(t[4]=t=>e.sys.code=t),placeholder:"请输入内容"},null,8,["modelValue"])]),_:1}),Object(n["createVNode"])(c,{label:"版权"},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(s,{modelValue:e.sys.copyright,"onUpdate:modelValue":t[5]||(t[5]=t=>e.sys.copyright=t),placeholder:"请输入内容"},null,8,["modelValue"])]),_:1})]),_:1},8,["model"]),Object(n["createVNode"])(u,{type:"primary",onClick:e.submitSys},{default:Object(n["withCtx"])(()=>t[9]||(t[9]=[Object(n["createTextVNode"])("保存")])),_:1},8,["onClick"]),Object(n["createVNode"])(u,{type:"primary",plain:""},{default:Object(n["withCtx"])(()=>t[10]||(t[10]=[Object(n["createTextVNode"])("返回")])),_:1})]),_:1}),Object(n["createVNode"])(m,{label:"菜单管理",name:"second"},{default:Object(n["withCtx"])(()=>[Object(n["withDirectives"])((Object(n["openBlock"])(),Object(n["createBlock"])(p,{ref:"tableSort",data:i.list,"element-loading-text":i.elementLoadingText,height:l.height,onSelectionChange:l.setSelectRows},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(h,{prop:"id",label:"id",width:"180",align:"center"}),Object(n["createVNode"])(h,{prop:"name",label:"分类名称",width:"500",align:"center"}),Object(n["createVNode"])(h,{prop:"path",label:"地址",align:"center"}),Object(n["createVNode"])(h,{label:e.$t("defalult.cz"),align:"center"},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(u,{size:"mini",onClick:t[6]||(t[6]=t=>l.handleEdit(e.scope.$index,e.scope.row))},{default:Object(n["withCtx"])(()=>[Object(n["createTextVNode"])(Object(n["toDisplayString"])(e.$t("defalult.bj")),1)]),_:1}),Object(n["createVNode"])(u,{size:"mini",type:"danger",onClick:t[7]||(t[7]=t=>l.handleDelete(e.scope.$index,e.scope.row))},{default:Object(n["withCtx"])(()=>t[11]||(t[11]=[Object(n["createTextVNode"])(" 删除 ")])),_:1})]),_:1},8,["label"])]),_:1},8,["data","element-loading-text","height","onSelectionChange"])),[[w,i.listLoading]]),Object(n["createVNode"])(f,null,{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(g,null,{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(b,{background:i.background,"current-page":i.queryForm.pageNo,layout:i.layout,"page-size":i.queryForm.pageSize,total:i.total,onCurrentChange:l.handleCurrentChange,onSizeChange:l.handleSizeChange},null,8,["background","current-page","layout","page-size","total","onCurrentChange","onSizeChange"])]),_:1})]),_:1})]),_:1}),Object(n["createVNode"])(m,{label:"项目管理",name:"third"},{default:Object(n["withCtx"])(()=>t[12]||(t[12]=[Object(n["createTextVNode"])("项目管理")])),_:1})]),_:1},8,["modelValue","onTabClick"])])}var i=o("1f27"),l={name:"Setting",data(){return{activeName:"first",layout:"total, sizes, prev, pager, next, jumper",total:0,input:"",textarea:"",list:[],background:!0,listLoading:!0,elementLoadingText:"正在加载...",queryForm:{pageNo:1,pageSize:20,title:""}}},computed:{height(){return this.$baseTableHeight()}},mounted(){},methods:{handleClick(e,t){console.log(e,t),console.log("name"+e.name),"second"==e.name&&this.fetchData()},setSelectRows(e){this.selectRows=e},async fetchData(){this.listLoading=!0;const{data:e,totalCount:t}=await Object(i["getList"])(this.queryForm);this.list=e,this.total=t,setTimeout(()=>{this.listLoading=!1},500)},handleEdit(e,t){console.log(e,t)},handleDelete(e,t){console.log(e,t)},handleSizeChange(e){console.log(`每页 ${e} 条`)},handleCurrentChange(e){console.log("当前页: "+e)}}},s=(o("daf5"),o("d959")),c=o.n(s);const d=c()(l,[["render",r],["__scopeId","data-v-044da6bb"]]);t["default"]=d},"6e4a":function(e,t,o){e.exports={"menu-color":"hsla(0,0%,27%,.95)","menu-color-active":"hsla(208,100%,55%,.95)","menu-background":"#fff","gallery-second-menu-background":"#fff"}},"6ec8":function(e,t,o){},"6f35":function(e,t,o){"use strict";o("ac77")},"6f3b":function(e,t,o){"use strict";o.r(t);var n=o("f2bf");const a={class:"manage-container"};function r(e,t,o,r,i,l){const s=Object(n["resolveComponent"])("el-option"),c=Object(n["resolveComponent"])("el-select"),d=Object(n["resolveComponent"])("el-form-item"),u=Object(n["resolveComponent"])("el-button"),m=Object(n["resolveComponent"])("vab-query-form"),h=Object(n["resolveComponent"])("el-form"),p=Object(n["resolveComponent"])("el-dialog");return Object(n["openBlock"])(),Object(n["createBlock"])(p,{modelValue:i.dialogFormVisible,"onUpdate:modelValue":t[1]||(t[1]=e=>i.dialogFormVisible=e),title:i.title,width:"500px",onClose:l.close},{default:Object(n["withCtx"])(()=>[Object(n["createElementVNode"])("div",a,[Object(n["createVNode"])(h,{ref:"form",model:i.form1,"label-width":"80px","label-position":"left"},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(d,{label:"选择盒子"},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(c,{modelValue:i.form1.id,"onUpdate:modelValue":t[0]||(t[0]=e=>i.form1.id=e),multiple:"",placeholder:"请选择选择盒子",onChange:l.boxChange},{default:Object(n["withCtx"])(()=>[(Object(n["openBlock"])(!0),Object(n["createElementBlock"])(n["Fragment"],null,Object(n["renderList"])(i.boxData,e=>(Object(n["openBlock"])(),Object(n["createBlock"])(s,{key:e.id,label:e.name,value:e.id},null,8,["label","value"]))),128))]),_:1},8,["modelValue","onChange"])]),_:1}),Object(n["createVNode"])(m,null,{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(u,{type:"primary",onClick:l.save},{default:Object(n["withCtx"])(()=>t[2]||(t[2]=[Object(n["createTextVNode"])("提交")])),_:1},8,["onClick"])]),_:1})]),_:1},8,["model"])])]),_:1},8,["modelValue","title","onClose"])}o("14d9");var i=o("aa98"),l={data(){return{form:{},form1:{id:""},projectId:"",boxData:[],dialogFormVisible:!1,title:""}},methods:{showSync(e){this.projectId=e.projectId,this.dialogFormVisible=!0,this.title="盒子同步",this.getBoxList()},async getBoxList(){const{data:e}=await Object(i["boxList"])();this.boxData=e},boxChange(){const e=this.form1.id,t=this.boxData;var o=[];t.forEach((function(t,n){e.includes(t.id)&&o.push({id:t.id,code:t.code,name:t.name})})),this.form=o},close(){this.$refs["form"].resetFields(),this.form=this.$options.data().form,this.dialogFormVisible=!1,this.$emit("fetch-data")},save(){this.$refs["form"].validate(async e=>{if(!e)return!1;{const{msg:e}=await Object(i["fboxSync"])(this.form,this.projectId);this.$notify({title:e,type:"success"}),this.$refs["form"].resetFields(),this.dialogFormVisible=!1,this.$parent.fetchData()}})}}},s=o("d959"),c=o.n(s);const d=c()(l,[["render",r]]);t["default"]=d},"6f56":function(e,t,o){"use strict";o.r(t),o.d(t,"getClockData",(function(){return r})),o.d(t,"doEdit",(function(){return i})),o.d(t,"doDelete",(function(){return l})),o.d(t,"doExport",(function(){return s})),o.d(t,"getTrajectory",(function(){return c}));var n=o("b775"),a=o("f121");function r(e){let t="?page="+e.page+"&size="+e.size+"&projectId="+e.projectId;return""!=e.deviceName&&(t+="&deviceName="+e.deviceName),""!=e.signUser&&(t+="&signUser="+e.signUser),""!=e.start&&(t+="&start="+e.start),""!=e.end&&(t+="&end="+e.end),(""!=e.type&&2!=e.type||0==e.type)&&(t+="&type="+e.type),Object(n["default"])({url:"/sign/list"+t,method:"get",data:e})}function i(e){return Object(n["default"])({url:"/sign/updateLocation?id="+e.id+"&location="+e.location,method:"post",data:e})}function l(e){return Object(n["default"])({url:"/sign/remove",method:"post",data:e})}function s(e){let t="?projectId="+e.projectId;return""!=e.deviceName&&(t+="&deviceName="+e.deviceName),""!=e.signUser&&(t+="&signUser="+e.signUser),void 0!=e.start&&void 0!=e.end&&(t+="&start="+e.start+"&end="+e.end),a["baseURL"]+"/sign/export"+t}function c(e){const t="?userId="+e.userId+"&start="+e.start+"&end="+e.end;return Object(n["default"])({url:"/sign/trajectory"+t,method:"get",data:e})}},"6fcd2":function(e,t,o){"use strict";o("be38")},"6fe0":function(e,t,o){"use strict";o("b551")},7012:function(e,t,o){"use strict";o.r(t);var n=o("f2bf");const a={class:"manage-container"};function r(e,t,o,r,i,l){const s=Object(n["resolveComponent"])("el-button"),c=Object(n["resolveComponent"])("vab-query-form"),d=Object(n["resolveComponent"])("el-table-column"),u=Object(n["resolveComponent"])("el-table"),m=Object(n["resolveComponent"])("el-pagination"),h=Object(n["resolveComponent"])("vab-query-form-right-panel");return Object(n["openBlock"])(),Object(n["createElementBlock"])("div",a,[Object(n["createVNode"])(c,null,{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(s,{type:"primary",onClick:t[0]||(t[0]=e=>l.handleAdd())},{default:Object(n["withCtx"])(()=>t[1]||(t[1]=[Object(n["createTextVNode"])("添加传感器")])),_:1})]),_:1}),Object(n["createVNode"])(u,{data:i.sensorData,border:"",stripe:"",style:{width:"100%"}},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(d,{prop:"id",label:"ID",width:"60",align:"center"}),Object(n["createVNode"])(d,{prop:"name",label:"传感器名字",width:"120",align:"center"}),Object(n["createVNode"])(d,{prop:"attribute.dataValue",label:"类型",width:"120",align:"center"}),Object(n["createVNode"])(d,{prop:"addressId",label:"地址",width:"120",align:"center"}),Object(n["createVNode"])(d,{prop:"offset",label:"寄存器号",width:"200",align:"center"}),Object(n["createVNode"])(d,{fixed:"right",label:e.$t("defalult.cz"),align:"center"},{default:Object(n["withCtx"])(({row:t})=>[Object(n["createVNode"])(s,{type:"text",onClick:e=>l.handleEdit(t)},{default:Object(n["withCtx"])(()=>[Object(n["createTextVNode"])(Object(n["toDisplayString"])(e.$t("defalult.bj")),1)]),_:2},1032,["onClick"]),Object(n["createVNode"])(s,{type:"text",onClick:e=>l.handleDelete(t)},{default:Object(n["withCtx"])(()=>[Object(n["createTextVNode"])(Object(n["toDisplayString"])(e.$t("defalult.sc")),1)]),_:2},1032,["onClick"])]),_:1},8,["label"])]),_:1},8,["data"]),Object(n["createVNode"])(c,null,{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(h,null,{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(m,{background:i.background,"current-page":i.queryForm.page,layout:i.layout,"page-size":i.queryForm.size,total:i.total,onCurrentChange:l.handleCurrentChange,onSizeChange:l.handleSizeChange},null,8,["background","current-page","layout","page-size","total","onCurrentChange","onSizeChange"])]),_:1})]),_:1})])}var i=o("669c"),l={name:"Index",components:{},data(){return{sensorData:[],deviceId:"",projectId:"",lazy:!0,layout:"total, sizes, prev, pager, next, jumper",total:0,background:!0,listLoading:!0,elementLoadingText:"正在加载...",queryForm:{page:1,size:20,deviceId:""}}},computed:{height(){return 500}},created(){const e=this.$route.params.deviceId,t=this.$route.params.projectId,o=localStorage.getItem("deviceId"),n=void 0===e?o:e;""!==n&&(this.deviceId=n,this.queryForm.deviceId=n,this.projectId=t,localStorage.setItem("deviceId",n),this.fetchData())},methods:{async fetchData(){this.listLoading=!0;const{data:e}=await Object(i["getList"])(this.queryForm);console.log(e),this.sensorData=e.items,this.total=e.total,setTimeout(()=>{this.listLoading=!1},500)},handleAdd(){this.$refs["edit"].showEdit(this.deviceId,0)},handleEdit(e){e.deviceId=this.deviceId,this.$refs["edit"].showEdit(e,1)},handleQuery(){this.queryForm.page=1,this.fetchData()},handleSizeChange(e){this.queryForm.size=e,this.fetchData()},handleCurrentChange(e){this.queryForm.page=e,this.fetchData()},handleDelete(e){const t=this;e.id&&this.$confirm("你确定要删除当前项吗?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(()=>{const{msg:o}=Object(i["doDelete"])({sensorIds:e.id});this.$message({type:"success",message:void 0==o?"删除成功":o}),setTimeout((function(){t.fetchData()}),1e3)}).catch(()=>{this.$message({type:"info",message:"已取消删除"})})}}},s=(o("7832"),o("d959")),c=o.n(s);const d=c()(l,[["render",r],["__scopeId","data-v-1f739dbe"]]);t["default"]=d},7039:function(e,t,o){"use strict";o("5ce6")},7075:function(e,t,o){"use strict";o.r(t);var n=o("f2bf");const a={class:"search"},r={class:"search-head"},i={style:{height:"26px",display:"flex","align-items":"center","font-size":"14px"}},l={key:0,class:"search-icon"},s={key:1,class:"search-dot"};function c(e,t,o,c,d,u){const m=Object(n["resolveComponent"])("el-input"),h=Object(n["resolveComponent"])("el-tree"),p=Object(n["resolveComponent"])("el-popover");return Object(n["openBlock"])(),Object(n["createElementBlock"])("div",a,[Object(n["createVNode"])(p,{modelValue:d.expand,"onUpdate:modelValue":t[2]||(t[2]=e=>d.expand=e),placement:"bottom",trigger:"click",width:370,offset:5,"show-arrow":!1,onShow:t[3]||(t[3]=e=>u.onToggle(!0)),onHide:t[4]||(t[4]=e=>u.onToggle(!1))},{reference:Object(n["withCtx"])(()=>[Object(n["createElementVNode"])("div",r,[Object(n["withDirectives"])(Object(n["createElementVNode"])("div",{class:"search-all-site",onClick:t[0]||(t[0]=(...e)=>u.onAllSiteClick&&u.onAllSiteClick(...e))},[Object(n["createElementVNode"])("span",null,Object(n["toDisplayString"])(d.filterText),1)],512),[[n["vShow"],!d.expand]]),Object(n["withDirectives"])(Object(n["createVNode"])(m,{ref:"searchInputRef",modelValue:d.filterText,"onUpdate:modelValue":t[1]||(t[1]=e=>d.filterText=e),placeholder:e.$t("dataEnquiry.qsrzdmc"),onInput:u.onSearchInput,onClick:Object(n["withModifiers"])(e=>!1,["stop"])},null,8,["modelValue","placeholder","onInput"]),[[n["vShow"],d.expand]])])]),default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(h,{ref:"treeRef",class:"search-tree",data:o.siteList,props:{value:"id",label:"label",children:"children",class:u.getCustomProps},accordion:"","node-key":"id","highlight-current":"","filter-node-method":u.filterNode,onNodeClick:u.onNodeClick},{default:Object(n["withCtx"])(({node:e,data:t})=>[Object(n["createElementVNode"])("div",i,["folder"===t.iconType?(Object(n["openBlock"])(),Object(n["createElementBlock"])("span",l)):(Object(n["openBlock"])(),Object(n["createElementBlock"])("span",s)),Object(n["createElementVNode"])("div",null,Object(n["toDisplayString"])(e.label),1)])]),_:1},8,["data","props","filter-node-method","onNodeClick"])]),_:1},8,["modelValue"])])}var d=o("2ef0"),u={name:"SiteSearch",props:{siteList:{type:Array,require:!0,default:()=>[]}},data(){return{filterText:"all sites",expand:!1}},mounted(){this.onSearchInput=Object(d["throttle"])(this.onSearchInput,400)},methods:{onAllSiteClick(){this.onToggle(!this.expand),this.$refs.searchInputRef.focus()},onToggle(e){this.expand=e,this.expand||!this.filterText&&(this.filterText="all sites")},onNodeClick(e){"device"===e.type&&(this.filterText=e.label,console.log(1231,e),this.onToggle(!1),setTimeout(()=>{this.$emit("node-click",e)}))},onSearchInput(e){this.$refs.treeRef.filter(e)},filterNode(e,t){return!e||t.label.includes(e)},getCustomProps(e,t){return e.type?"search-item-"+e.type:null}}},m=(o("dd87"),o("d959")),h=o.n(m);const p=h()(u,[["render",c],["__scopeId","data-v-d7735c9e"]]);t["default"]=p},7082:function(e,t,o){"use strict";o.r(t);var n=o("f2bf");const a={class:"manage-container"};function r(e,t,o,r,i,l){const s=Object(n["resolveComponent"])("site-index"),c=Object(n["resolveComponent"])("el-tab-pane"),d=Object(n["resolveComponent"])("el-tabs");return Object(n["openBlock"])(),Object(n["createElementBlock"])("div",a,[Object(n["createVNode"])(d,{modelValue:i.activeName,"onUpdate:modelValue":t[0]||(t[0]=e=>i.activeName=e),class:"tabRight",type:"card",onTabClick:l.handleClick},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(c,{label:e.$t("site.zdsjhz"),name:"first"},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(s,{ref:"site"},null,512)]),_:1},8,["label"])]),_:1},8,["modelValue","onTabClick"])])}var i=o("694d"),l={name:"Manage",components:{siteIndex:i["default"]},data(){return{roleData:[],lazy:!0,activeName:"first",layout:"total, sizes, prev, pager, next, jumper",total:0,background:!0,listLoading:!0,elementLoadingText:"正在加载...",queryForm:{page:1,size:20,name:""}}},computed:{height(){return 500}},methods:{handleClick(e,t){console.log(e,t),"second"==e.paneName?this.$refs["real"].realIndex():this.$refs["site"].siteIndex()}}},s=(o("b539"),o("cfed"),o("d959")),c=o.n(s);const d=c()(l,[["render",r],["__scopeId","data-v-57ff65d1"]]);t["default"]=d},7154:function(e,t,o){"use strict";o.r(t);var n=o("f2bf"),a=o("d1da"),r=o.n(a);const i={class:"login-container"},l={class:"input-wrap"},s={class:"input_list"};function c(e,t,o,a,c,d){const u=Object(n["resolveComponent"])("el-input"),m=Object(n["resolveComponent"])("el-form-item"),h=Object(n["resolveComponent"])("el-button"),p=Object(n["resolveComponent"])("el-form");return Object(n["openBlock"])(),Object(n["createElementBlock"])("div",i,[Object(n["createElementVNode"])("div",l,[Object(n["createElementVNode"])("div",s,[t[6]||(t[6]=Object(n["createElementVNode"])("img",{src:r.a,class:"login_img"},null,-1)),Object(n["createVNode"])(p,{ref:"form",model:c.form,rules:c.rules,"label-width":"60px","label-position":"left"},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(m,{label:e.$t("staff.xm")},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(u,{modelValue:c.form.name,"onUpdate:modelValue":t[0]||(t[0]=e=>c.form.name=e),size:"small",autocomplete:"off"},null,8,["modelValue"])]),_:1},8,["label"]),Object(n["createVNode"])(m,{label:"电话"},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(u,{modelValue:c.form.phone,"onUpdate:modelValue":t[1]||(t[1]=e=>c.form.phone=e),size:"small",autocomplete:"off"},null,8,["modelValue"])]),_:1}),Object(n["createVNode"])(m,{label:"公司"},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(u,{modelValue:c.form.company,"onUpdate:modelValue":t[2]||(t[2]=e=>c.form.company=e),size:"small",autocomplete:"off"},null,8,["modelValue"])]),_:1}),Object(n["createVNode"])(m,{label:"职务"},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(u,{modelValue:c.form.position,"onUpdate:modelValue":t[3]||(t[3]=e=>c.form.position=e),size:"small",autocomplete:"off"},null,8,["modelValue"])]),_:1}),Object(n["createVNode"])(m,{label:e.$t("staff.yx")},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(u,{modelValue:c.form.email,"onUpdate:modelValue":t[4]||(t[4]=e=>c.form.email=e),size:"small",autocomplete:"off"},null,8,["modelValue"])]),_:1},8,["label"]),Object(n["createVNode"])(h,{type:"primary",size:"small",style:{width:"100%"},onClick:d.save},{default:Object(n["withCtx"])(()=>t[5]||(t[5]=[Object(n["createTextVNode"])(" 提交 ")])),_:1},8,["onClick"])]),_:1},8,["model","rules"])])])])}var d=o("fcd7"),u={name:"TrialAdd",data(){return{dialogFormVisible:!1,form:{name:"",phone:"",company:"",position:"",email:""},rules:{name:[{required:!0,trigger:"blur",message:"请输入姓名"}],phone:[{required:!0,trigger:"blur",message:"请输入手机号"}]}}},methods:{TrialAdd(){this.dialogFormVisible=!0},save(){this.$refs["form"].validate(async e=>{if(!e)return!1;{const{msg:e}=await Object(d["doAdd"])(this.form);this.$notify({title:e,type:"success"}),this.$refs["form"].resetFields(),this.dialogFormVisible=!1}})}}},m=(o("dde9"),o("d959")),h=o.n(m);const p=h()(u,[["render",c],["__scopeId","data-v-08935ac0"]]);t["default"]=p},7163:function(e,t,o){e.exports={"menu-color":"hsla(0,0%,27%,.95)","menu-color-active":"hsla(208,100%,55%,.95)","menu-background":"#fff","gallery-second-menu-background":"#fff"}},"71ae":function(e,t,o){"use strict";o.r(t);var n=o("f2bf");const a={class:"manage-container"};function r(e,t,o,r,i,l){const s=Object(n["resolveComponent"])("trigger-index"),c=Object(n["resolveComponent"])("el-tab-pane"),d=Object(n["resolveComponent"])("rule-index"),u=Object(n["resolveComponent"])("el-tabs");return Object(n["openBlock"])(),Object(n["createElementBlock"])("div",a,[Object(n["createVNode"])(u,{modelValue:i.activeName,"onUpdate:modelValue":t[0]||(t[0]=e=>i.activeName=e),onTabClick:l.handleClick},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(c,{label:e.$t("trigger.cfqgl"),name:"first"},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(s,{ref:"trigger"},null,512)]),_:1},8,["label"]),Object(n["createVNode"])(c,{label:e.$t("trigger.cfqgz"),name:"second"},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(d,{ref:"rule"},null,512)]),_:1},8,["label"])]),_:1},8,["modelValue","onTabClick"])])}var i=o("14f1"),l=o("265c"),s={name:"Index",components:{triggerIndex:i["default"],ruleIndex:l["default"]},data(){return{activeName:"first"}},computed:{height(){return 500}},mounted(){},methods:{handleClick(e,t){console.log(e,t),"first"==e.paneName?this.$refs["trigger"].showData():"second"==e.paneName&&this.$refs["rule"].showData()}}},c=(o("2bfe"),o("d959")),d=o.n(c);const u=d()(s,[["render",r]]);t["default"]=u},"71ce":function(e,t,o){"use strict";o("ca1f")},"71e6":function(e,t,o){"use strict";o.r(t);var n=o("f2bf");const a={class:"manage-container"},r={class:"manage-input"},i={class:"manage-input"},l={class:"manage-button"};function s(e,t,o,s,c,d){const u=Object(n["resolveComponent"])("el-input"),m=Object(n["resolveComponent"])("el-form-item"),h=Object(n["resolveComponent"])("vab-query-form"),p=Object(n["resolveComponent"])("el-form"),b=Object(n["resolveComponent"])("el-option"),g=Object(n["resolveComponent"])("el-select"),f=Object(n["resolveComponent"])("el-button"),v=Object(n["resolveComponent"])("el-table-column"),w=Object(n["resolveComponent"])("el-tag"),k=Object(n["resolveComponent"])("el-image"),C=Object(n["resolveComponent"])("el-table"),y=Object(n["resolveComponent"])("el-pagination"),O=Object(n["resolveComponent"])("repair-edit"),j=Object(n["resolveComponent"])("to-task");return Object(n["openBlock"])(),Object(n["createElementBlock"])("div",a,[Object(n["createElementVNode"])("div",r,[Object(n["createVNode"])(p,{ref:"queryForm",model:c.queryForm,"label-width":"80px"},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(h,null,{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(m,{width:"100",prop:"deviceName",label:e.$t("dataEnquiry.zdmc")},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(u,{modelValue:c.queryForm.deviceName,"onUpdate:modelValue":t[0]||(t[0]=e=>c.queryForm.deviceName=e),size:"small",placeholder:e.$t("dataEnquiry.qsrzdmc")},null,8,["modelValue","placeholder"])]),_:1},8,["label"]),Object(n["createVNode"])(m,{width:"100",prop:"repairPersonName",label:e.$t("maintenance.bxr")},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(u,{modelValue:c.queryForm.repairPersonName,"onUpdate:modelValue":t[1]||(t[1]=e=>c.queryForm.repairPersonName=e),size:"small",placeholder:e.$t("defalult.qsr")},null,8,["modelValue","placeholder"])]),_:1},8,["label"])]),_:1})]),_:1},8,["model"])]),Object(n["createElementVNode"])("div",i,[Object(n["createVNode"])(p,{ref:"queryForm",model:c.queryForm,"label-width":"80px"},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(h,null,{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(m,{width:"100",prop:"deviceType",label:e.$t("maintenance.zdlx")},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(g,{modelValue:c.queryForm.deviceType,"onUpdate:modelValue":t[2]||(t[2]=e=>c.queryForm.deviceType=e),size:"small",placeholder:e.$t("maintenance.zdlx")},{default:Object(n["withCtx"])(()=>[(Object(n["openBlock"])(!0),Object(n["createElementBlock"])(n["Fragment"],null,Object(n["renderList"])(c.deviceTypeData,e=>(Object(n["openBlock"])(),Object(n["createBlock"])(b,{key:e.dataCode,label:e.dataValue,value:e.dataCode},null,8,["label","value"]))),128))]),_:1},8,["modelValue","placeholder"])]),_:1},8,["label"]),Object(n["createVNode"])(m,{width:"100",prop:"repairItem",label:e.$t("maintenance.bxxm")},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(g,{modelValue:c.queryForm.repairItem,"onUpdate:modelValue":t[3]||(t[3]=e=>c.queryForm.repairItem=e),size:"small",placeholder:e.$t("maintenance.bxxm")},{default:Object(n["withCtx"])(()=>[(Object(n["openBlock"])(!0),Object(n["createElementBlock"])(n["Fragment"],null,Object(n["renderList"])(c.repairItemData,e=>(Object(n["openBlock"])(),Object(n["createBlock"])(b,{key:e.dataCode,label:e.dataValue,value:e.dataCode},null,8,["label","value"]))),128))]),_:1},8,["modelValue","placeholder"])]),_:1},8,["label"]),Object(n["createVNode"])(m,{width:"100",prop:"repairType",label:e.$t("maintenance.bxlx")},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(g,{modelValue:c.queryForm.repairType,"onUpdate:modelValue":t[4]||(t[4]=e=>c.queryForm.repairType=e),size:"small",placeholder:e.$t("maintenance.bxlx")},{default:Object(n["withCtx"])(()=>[(Object(n["openBlock"])(!0),Object(n["createElementBlock"])(n["Fragment"],null,Object(n["renderList"])(c.repairTypeData,e=>(Object(n["openBlock"])(),Object(n["createBlock"])(b,{key:e.dataCode,label:e.dataValue,value:e.dataCode},null,8,["label","value"]))),128))]),_:1},8,["modelValue","placeholder"])]),_:1},8,["label"])]),_:1})]),_:1},8,["model"])]),Object(n["createElementVNode"])("div",l,[Object(n["createVNode"])(f,{size:"small",onClick:t[5]||(t[5]=e=>d.resetForm())},{default:Object(n["withCtx"])(()=>[Object(n["createTextVNode"])(Object(n["toDisplayString"])(e.$t("defalult.chongz")),1)]),_:1}),Object(n["createVNode"])(f,{type:"primary",size:"small",onClick:d.search},{default:Object(n["withCtx"])(()=>[Object(n["createTextVNode"])(Object(n["toDisplayString"])(e.$t("defalult.cx")),1)]),_:1},8,["onClick"]),Object(n["createVNode"])(f,{type:"primary",size:"small",onClick:t[6]||(t[6]=e=>d.handleAdd())},{default:Object(n["withCtx"])(()=>[Object(n["createTextVNode"])(Object(n["toDisplayString"])(e.$t("defalult.tj")),1)]),_:1}),Object(n["createVNode"])(f,{type:"primary",size:"small",onClick:d.exportData},{default:Object(n["withCtx"])(()=>[Object(n["createTextVNode"])(Object(n["toDisplayString"])(e.$t("defalult.dc")),1)]),_:1},8,["onClick"])]),Object(n["createVNode"])(C,{id:"table",data:c.tableData,stripe:"",border:"",style:{width:"100%"}},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(v,{fixed:"",prop:"device.name",label:e.$t("dataEnquiry.zdmc"),width:"140",align:"center"},null,8,["label"]),Object(n["createVNode"])(v,{prop:"deviceSpecifications",label:e.$t("maintenance.zdgg"),width:"140",align:"center"},null,8,["label"]),Object(n["createVNode"])(v,{prop:"repairPerson.name",label:e.$t("maintenance.bxr"),width:"110",align:"center"},null,8,["label"]),Object(n["createVNode"])(v,{prop:"createTime",label:e.$t("maintenance.bxsj"),width:"170",align:"center"},null,8,["label"]),Object(n["createVNode"])(v,{prop:"equipment.name",label:e.$t("maintenance.bxsbsj"),width:"140",align:"center"},null,8,["label"]),Object(n["createVNode"])(v,{prop:"repairType.dataValue",label:e.$t("maintenance.bxlx"),width:"140",align:"center"},null,8,["label"]),Object(n["createVNode"])(v,{prop:"deviceType",label:e.$t("maintenance.zdlx"),width:"140",align:"center"},null,8,["label"]),Object(n["createVNode"])(v,{prop:"remark",label:e.$t("maintenance.bxsmd"),width:"140",align:"center"},null,8,["label"]),Object(n["createVNode"])(v,{prop:"alarmFlag",label:e.$t("dataEnquiry.zt"),width:"120",align:"center"},{default:Object(n["withCtx"])(({row:t})=>[1==t.status?(Object(n["openBlock"])(),Object(n["createBlock"])(w,{key:"已派工",effect:"dark",type:"success",size:"mini"},{default:Object(n["withCtx"])(()=>[Object(n["createTextVNode"])(Object(n["toDisplayString"])(e.$t("alarm.ypg")),1)]),_:1})):Object(n["createCommentVNode"])("",!0),0==t.status?(Object(n["openBlock"])(),Object(n["createBlock"])(w,{key:"未派工",effect:"dark",type:"danger",size:"mini"},{default:Object(n["withCtx"])(()=>[Object(n["createTextVNode"])(Object(n["toDisplayString"])(e.$t("alarm.qpg")),1)]),_:1})):Object(n["createCommentVNode"])("",!0)]),_:1},8,["label"]),Object(n["createVNode"])(v,{prop:"img",label:e.$t("sensor.tp"),width:"140",align:"center"},{default:Object(n["withCtx"])(({row:e})=>[(Object(n["openBlock"])(!0),Object(n["createElementBlock"])(n["Fragment"],null,Object(n["renderList"])(e.fileList,(t,o)=>(Object(n["openBlock"])(),Object(n["createElementBlock"])("div",{key:o},[Object(n["createVNode"])(k,{style:{width:"100px",height:"100px"},src:e.url,"preview-src-list":t},null,8,["src","preview-src-list"])]))),128))]),_:1},8,["label"]),Object(n["createVNode"])(v,{fixed:"right",label:e.$t("defalult.cz"),align:"center"},{default:Object(n["withCtx"])(({row:t})=>[Object(n["createVNode"])(f,{type:"text",onClick:e=>d.handleTask(t)},{default:Object(n["withCtx"])(()=>[Object(n["createTextVNode"])(Object(n["toDisplayString"])(e.$t("maintenance.zrw")),1)]),_:2},1032,["onClick"]),Object(n["createVNode"])(f,{type:"text",onClick:e=>d.handleEdit(t)},{default:Object(n["withCtx"])(()=>[Object(n["createTextVNode"])(Object(n["toDisplayString"])(e.$t("defalult.bj")),1)]),_:2},1032,["onClick"]),Object(n["createVNode"])(f,{type:"text",onClick:e=>d.handleDelete(t)},{default:Object(n["withCtx"])(()=>[Object(n["createTextVNode"])(Object(n["toDisplayString"])(e.$t("defalult.sc")),1)]),_:2},1032,["onClick"])]),_:1},8,["label"])]),_:1},8,["data"]),Object(n["createVNode"])(y,{background:c.background,"current-page":c.queryForm.page,layout:c.layout,"page-size":c.queryForm.size,total:c.total,style:{"text-align":"right"},onCurrentChange:d.handleCurrentChange,onSizeChange:d.handleSizeChange},null,8,["background","current-page","layout","page-size","total","onCurrentChange","onSizeChange"]),Object(n["createVNode"])(O,{ref:"edit"},null,512),Object(n["createVNode"])(j,{ref:"task"},null,512)])}var c=o("c3be"),d=o("3038"),u=o("8551"),m=o("10d8"),h=o("11f4"),p={components:{repairEdit:u["default"],toTask:m["default"]},data(){return{url:"",srcList:"",tableData:[],repairItemData:[],deviceTypeData:[],repairTypeData:[],dialogImageUrl:"",dialogVisible:!1,dialogVisibleImg:!1,layout:"total, sizes, prev, pager, next, jumper",total:0,background:!0,listLoading:!1,elementLoadingText:"正在加载...",queryForm:{page:1,size:20,deviceName:"",repairPersonName:"",deviceType:"",repairItem:"",repairType:"",projectId:""}}},created(){this.queryForm.projectId=sessionStorage.getItem("projectId"),this.getDictData(),this.fetchData()},methods:{showData(){this.getDictData(),this.fetchData()},search(){this.fetchData()},async exportData(){const e=await Object(c["doExport"])(this.queryForm);d["default"].downloadFile(e,{fileName:"在线保修.xls"})},resetForm(){this.$refs.queryForm.resetFields()},async fetchData(){this.listLoading=!0;const{data:e}=await Object(c["getList"])(this.queryForm);this.tableData=Object(h["imgReplacePath"])(e.items,"repairImg"),console.log(this.tableData),this.total=e.total,setTimeout(()=>{this.listLoading=!1},500)},async getDictData(){const{data:e}=await Object(c["getDictData"])();this.repairItemData=e.repairItem,this.deviceTypeData=e.deviceType,this.repairTypeData=e.repairType},handleTask(e){this.$refs["task"].showTask(e)},handleAdd(){this.$refs["edit"].showEdit()},handleEdit(e){this.$refs["edit"].showEdit(e)},handleRemove(e,t){console.log(e,t)},handlePictureCardPreview(e){this.dialogImageUrl=e.url,this.dialogVisible=!0},deletes(){const e=this.ids;if(0==e.length)return this.$message({type:"info",message:"没有选中任何项"}),!1;this.deleteData(e)},deleteData(e){const t=this;this.$confirm("你确定要删除当前项吗?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(()=>{const{msg:o}=Object(c["doDelete"])(e);this.$message({type:"success",message:void 0==o?"删除成功":o}),setTimeout((function(){t.fetchData()}),1e3)}).catch(()=>{this.$message({type:"info",message:"已取消删除"})})},handleDelete(e){const t=this;this.ids=[e.id],t.deletes()},handleQuery(){this.queryForm.page=1,this.fetchData()},handleSizeChange(e){this.queryForm.size=e,this.fetchData()},handleCurrentChange(e){this.queryForm.page=e,this.fetchData()}}},b=(o("0b6a"),o("d959")),g=o.n(b);const f=g()(p,[["render",s],["__scopeId","data-v-1b1ba45e"]]);t["default"]=f},"71fb":function(e,t,o){"use strict";o.r(t);var n=o("f2bf");const a={key:0},r={key:1,style:{"text-align":"center"}},i=["src"],l={key:2,style:{"text-align":"center"}},s=["src"],c={key:3,style:{"text-align":"center"}},d=["src"],u={key:4,style:{"text-align":"center"}};function m(e,t,o,m,h,p){const b=Object(n["resolveComponent"])("el-link"),g=Object(n["resolveComponent"])("el-dialog");return Object(n["openBlock"])(),Object(n["createBlock"])(g,{modelValue:h.dialogFormVisible,"onUpdate:modelValue":t[0]||(t[0]=e=>h.dialogFormVisible=e),title:e.title,width:"500px",onClose:e.close},{default:Object(n["withCtx"])(()=>[h.isText?(Object(n["openBlock"])(),Object(n["createElementBlock"])("div",a,[Object(n["createElementVNode"])("span",null,Object(n["toDisplayString"])(h.data.textContent),1)])):h.isImage?(Object(n["openBlock"])(),Object(n["createElementBlock"])("div",r,[Object(n["createElementVNode"])("img",{src:h.data.url,alt:"",style:{width:"90%"}},null,8,i)])):h.isVideo?(Object(n["openBlock"])(),Object(n["createElementBlock"])("div",l,[Object(n["createElementVNode"])("img",{src:h.data.cover_url,style:{width:"90%"}},null,8,s)])):h.isVoice?(Object(n["openBlock"])(),Object(n["createElementBlock"])("div",c,[Object(n["createElementVNode"])("audio",{src:h.data.voice},null,8,d)])):h.isNews?(Object(n["openBlock"])(),Object(n["createElementBlock"])("div",u,[(Object(n["openBlock"])(!0),Object(n["createElementBlock"])(n["Fragment"],null,Object(n["renderList"])(h.data.content.news_item,(e,o)=>(Object(n["openBlock"])(),Object(n["createElementBlock"])("div",{key:o},[Object(n["createElementVNode"])("p",null,"标题:"+Object(n["toDisplayString"])(e.title),1),Object(n["createVNode"])(b,{target:"_blank",href:e.url,type:"primary"},{default:Object(n["withCtx"])(()=>t[1]||(t[1]=[Object(n["createTextVNode"])(" 点击查看 ")])),_:2},1032,["href"])]))),128))])):Object(n["createCommentVNode"])("",!0)]),_:1},8,["modelValue","title","onClose"])}var h={data(){return{isText:!1,isImage:!1,isVoice:!1,isVideo:!1,isNews:!1,dialogFormVisible:!1,data:[]}},methods:{showMaterialData(e,t){this.dialogFormVisible=!0,this.title="素材详情",this.data=e,"image"==t?this.isImage=!0:"voice"==t?this.isVoice=!0:"video"==t?this.isVideo=!0:"news"==t&&(this.isNews=!0)}}},p=o("d959"),b=o.n(p);const g=b()(h,[["render",m]]);t["default"]=g},7205:function(e,t){e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAARsAAAEbCAMAAADd89ATAAABaFBMVEVHcExCkPVCkPVHqPVEnPVEnPVEnPVEnPVEm/VCkPVHqPVCkPVEnPVFnfVHqfVHqfVHqvVClvVEnPVCj/VHqPVDlvVCjfVCj/VHqPVCj/VHqPVHqfVCj/VHqPVHqfVBj/VGp/VCkvVEnvVGp/VCkvX///9Em/VDlvVFnvVCkfVCkPVFn/VDlfVEmvVCkvVEmfVGpPVGo/VFoPVGpfVDlPVEmPVDk/VCj/VGpvVEnPVFofVCk/VDl/VGovVFnfVDmPVHqPVDkvVEnfVEl/VCjvVHqfVGp/VClPVFnPVGofVHp/VDmfVFovVClfVEnvVCjfVGqPVDkfVHqvVHpvVDmvVElvVClvVFo/VFm/VGoPXv9/78/f9Jo/XH4vxEn/WFwvmgzvqEuPmv0fuw1/uax/pBkfXE3/xRp/ZPmvZFlPVHlfVeo/dDm/V7vfjB2/xisPd6s/hipvfU5/1lsffT6f3V6v1ervbV5/153Ph6AAAAJXRSTlMAkreSChVRHQTvttdeK+3W/o3Enp6j/Swsp6V4evz4+dz+zPH8bsm6rgAAC3hJREFUeNrt2olXFMcWB+BiHbYDHPVo3LKcBHEQjBGCAQYJOnmKBDHqkziMYZU1rlnev/+mq5fppbq6llvVPcP9nXcSuqfpqfu9quqqJoQkUhrqGhgZ/vK5cn7JJz8r5svhkYGuoRLJTOnqyHPdtJiNl5GrfJ4vrlzPrfKgkdBFC+f6lS9SZXoujObXGYDrfJIZ5q9d6GHT9A7nOVCKYfPzcC9Dpq9r1ACLreEgYCGarr44TfeAkS7TgjZPBrpjNOfUVKIzJ2yhligSGT0XwekbeI42QX4ZCA+rLmmSog6IRF6kJ/X6J12hJ9Qo2kSvD55WPcPCU25Kcc+e5W3zAjbD/jrngvrz5pl4Usv6Dy8iLj+JRgLngrdRGEWbZNztwxUZEVbVTg2hH7Xyk/1MT7NsrtCd93W0YeS6syu/ypURGS0F5piWSxjnasNmBG1YNtMjjSGVMpBMagCyTJvKixclMoQ2KTZDpCs564KPIIi6zWvE00UGhEwsTBnTRcsA+RptUvI1+TYVxcqEYaasO+EIXpr45FvyDG3SLiM6s609E3b778AHbYRtpDdD2UVrj5c7+QdtuDZg46e1JVghuhNK+5GgjbqNKROAFv/ACP/CjDuhDYgN3OrEAIKdoI2oDeRytnUMMoI2HBskUbTRJgmN3x9aLjnbjGWkQDbBe2vN0SP89Yo2i35Sb7y4mH0N2mjbAK9rwWwWQcO2S9VDGwAbTZBYA/xW2bWRDEm3EEPJ6hn8r0ebtrGBmk+Evh5taOrv9v6ubY5pZrP29967umUbqCdQyvccbtfGwFLbPmwjmy1AGaqzZcUGdOvM/pL63hh49uor4YS/LuV0IW3qB2MGclDP28bZRAvPvL+y4/WazYOtf+vzyazEknaepv7v1oE3oe+t6IeN4n1IdBf+aSB+5ue33FLefJhXCKugD2/cO26tmI15m0N3Gt6fn4eyWVnZdyfkQ9s2IiAbGxuZ3cXPNq1jex4yv7Ju2no2ddpt3swDhw6rWt2GDd/BkdjY8H4Q6izNvKPT8Adomw90Qn4nOgiLabNnpNt4HWfPrA0HRECDy0LzD32iKBPcbYR1fpE+/f5RmciLY0Onm7/8I+0VX3Dfv+iEY81mgxEtFyd0XjgEs7nr55DOY3cjcbpZdjcMkmmj6JFFMh/RmIe3uRs7VM9rJ75H88zr12gjZCNkIUoS9OFoCUW0SQ3aZNpoD53kTMcsAW3axUYbJeML0AZtpGHazUbTwrDNrSDhQ3rvW+EkG3IrLWijY6M/egRsbhmyAUwIEW24NkZIvG4csfELKrRNKGjDsTFAEpn3oiWgTTvbyIyZrAdl29gI9AeBBYNJm5uNoE1BbCSnEKkIluBUfFMqAdVN9/eZCe4eOop+FJxBGykbQySiNjeV07QBD9oo2YBOaBEbyAIM2nhBG1Eb2Geg2RKs2sCaGC8BbfK1gUDgTCdGSrjfCNrkaqM7ZsC6/n0/nI/CoTeml4dOJq+lv6725WijYwM6ZWrvw5M2poI2AjZPn8IuWtvA5v598kcjT92YtvELQps2sHmaGpiFSLQEtGl/G6aVgFx0qYE2Z90mmQfNpH4BsM3jIP6NnZ/5Nfq/IXBJ5FK0AbN5kBHbNo9NhkDKsKA8G+8U2rSbDW26qgIntIToEdq0ic0Dgwls5pwYsKH3nUMbyzYPDMezcSvQt5kLEjtEm1a2oc2MHERLMGBzw80cM48f30iExfA7KwROJegckQDbNEuMHUomxsA8a9lGIKLVFdpGrFQpG5nq9GxEgjbaNnPKybJRbjnaFMcm1GYdD74NUMvRJmebOaMJbKBbbsFmbs6CjYmW+zeeCod14RQrItegjUWb5ve5BwA2zIZP0RtPmQzamLYBnzIFWo42rW0j9ajVfkeBNq1po7lEaxcb+qgBXr6iTZvaGFu+3mgWBGvzPSOREr9PT/SKqdivoQ3H5obhuDaRgnTSrCt2aCBok48NY8pEG7QR2wKdXRvZLSHanGkbicUl2pw9G4hNiV2bH0OJnUObs2zTrNK3+dFY0EbGBvgliFeCt90FsXETOzRh8+efL1+afEEUnRbQJt1GLcyWW7B5GUQTIaUuVZvMlqNNQWw0iDg1StuIthxtimXjAbGcQq+bhUsVs1FoOZDNw2bQRtsmktVVjecv14YuctUqCmweGgvhkcQDZwPwfzS98UOTQRtJm1VeVGxAHhuxlqNNzjarq2Io8jrJx4n2XhNtCmKzqpmsRQvaoE1Wspevudj8t5H0TxIJPlOxWVoK/ZgaarG0REsIToLbjI9nsigHbaBtJGLKpkIPx0OJlzYeT+YFsUvRRtdmST3ANhU3jeYnbGCDNuo2SwDxbLyatG2ajTds0wjayNkswcXTqFRa1mbJUAKNIthMOokeTSY+nwwfoA3HxoxIJaqRi82kbtDGgE2lksph02bSYNAG1qYiE7M2k2hzJmyC3dD4uPcvtTRaXiCbimJCNhBr1WbLTdvMzKCNuk1FN5rbnuhKNRxlm5kZ53/8K2jQJtMmVEzjAIAkGEPaNmnh23jlsc4JB224NhUT0X7Nkjk0ojaBxAxc0IZjo0vA4IhE2kZ0SnVtZgyGaHeMjIjaSD9t6I1n0KZVbCTnjaiN9l7Tgs2sH7RpJxu/BGWb2Ug4n6INgI3qwjY6ErRtmkUA2XCCNqo2AC9bLNv4o2QWIIT1srIC+A7Kps0sbNCGY/PqFYADZ31ry2YWPmjDtdHRmZR8lQBtA82xvLzc/BFtMmzcjJt4y2LGxmm7hs2yWNBGyOYVsIoxG7dAJZtlmYRtxITytWmWybdZBgjayNgwedT/rBx9upi3WYYL2kjarK05Ppr/FYKXTaeEI3ibI+dos7Vtak4Nn+BtPjlHNdM2a2uOxavgn6HIYTD/8vzZqWEH/O3T8Y5z3/8Bm/zmxpbNrlPDAfybuQPnvrtmbdayIjF+WPlI54VPIhYym+lTOo991ET5jZtsGy5Qdh84qXE7juqmkHab2gkkhX2bmW06h+7D2uzTm24vF8EmJOT+S3zyOKolceTGT/JB5NLUjqA1bNvM7LhP34NTKJvTA/eOO8sFsqF55EcYZ9ctZfP9zumJ1iTTKPb4dOf9pnu/XXiWciQ2bI7fjxnI++MC24gjHe/C0+weS5qUy/Ha+ZmYsGLTmHNqsDK1Hen+YsLm0SMmiABReKo42gfUqe0fCbGUZTMRCeGACIkkhVIm0pOPu59rm7osm7XPux9PUmTK6plgxJ6Nufe6xmyaCooYsSy4MaVxO5xy2TsjXH86BNrI2gBlQTW3FQIyZtAmR5uFhWKjKLqgjSEbmyBqNhO6Ifa6iZ6Nhb5yLxa00bZZWMhtKEmSwLCgDYBNCzyKFETuZQZtJG2cEbRAh5HlZ3S5LEsDNX7QRtLGrcizyOXprDqSzKFEbQBii0Qe5Z58qk7QxqCNvWE0YXJucTmaLmhjyMbeEDI7lKrpQRuOTX8ht9EhDnNzb5WffjKINikZJJ3GaMrOKtfOqk72OV0VSSfpMNFd7E0q0i5V4XSQIbRJyRAp3XYqz+lVlPY7KXMy1WqJOJMx2iRzcZAQcu02UIq3dpFGWQ/lWsOm9B3aMGwuNoYUIZfzo5mYsLCnvifbY2guOzTk0jdok7C5eInakPP2XSxMuRIz73oy510a0tNf5DeZ8p2lKheGzHp/j2dDetEmll4SpEPybwHyKBbWLpIo65x0NGlIXyfahNLZF7Ih3edE99UFHEOSLutZOddNIunuRBu/18RoGsOqgznPWv0T9YRJEpEeQ+eaPpJMbz/arPf3EmZ6zn9DNd6+LZdtbo6UxpAUzPq6WKe5eL6HpOXS5e/Kb9VpjD+M/L8hVeGHkiNz+RLhpXRt8IzaDF4rkcyUhjo6B/u/elus1UtVIWIoX/UPdnYMMWD+D78Xh3/Kaa5+AAAAAElFTkSuQmCC"},"722a":function(e,t,o){"use strict";o("5284")},"72f8":function(e,t,o){},"734d":function(e,t,o){"use strict";o.r(t);var n=o("f2bf");const a={class:"manage-container"};function r(e,t,o,r,i,l){const s=Object(n["resolveComponent"])("el-input"),c=Object(n["resolveComponent"])("el-form-item"),d=Object(n["resolveComponent"])("el-button"),u=Object(n["resolveComponent"])("vab-query-form"),m=Object(n["resolveComponent"])("el-form"),h=Object(n["resolveComponent"])("el-dialog");return Object(n["openBlock"])(),Object(n["createBlock"])(h,{modelValue:i.dialogFormVisible,"onUpdate:modelValue":t[2]||(t[2]=e=>i.dialogFormVisible=e),title:i.title,width:"500px",onClose:l.close},{default:Object(n["withCtx"])(()=>[Object(n["createElementVNode"])("div",a,[Object(n["createVNode"])(m,{ref:"form",model:i.form,"label-width":"80px","label-position":"left"},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(c,{label:e.$t("dataEnquiry.zdmc")},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(s,{modelValue:i.form.name,"onUpdate:modelValue":t[0]||(t[0]=e=>i.form.name=e)},null,8,["modelValue"])]),_:1},8,["label"]),Object(n["createVNode"])(c,{label:"站点序列号"},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(s,{modelValue:i.form.code,"onUpdate:modelValue":t[1]||(t[1]=e=>i.form.code=e)},null,8,["modelValue"])]),_:1}),Object(n["createVNode"])(u,null,{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(d,{type:"primary",onClick:l.save},{default:Object(n["withCtx"])(()=>t[3]||(t[3]=[Object(n["createTextVNode"])("提交")])),_:1},8,["onClick"])]),_:1})]),_:1},8,["model"])])]),_:1},8,["modelValue","title","onClose"])}var i=o("aa98"),l={data(){return{form:{name:"",code:"",deviceId:""},dialogFormVisible:!1,title:""}},methods:{showCopy(e){this.form.deviceId=e.id,this.dialogFormVisible=!0,this.title="复制站点"},close(){this.$refs["form"].resetFields(),this.form=this.$options.data().form,this.dialogFormVisible=!1,this.$emit("fetch-data")},save(){this.$refs["form"].validate(async e=>{if(!e)return!1;{const{msg:e}=await Object(i["copy"])(this.form);this.$notify({title:e,type:"success"}),this.$refs["form"].resetFields(),this.dialogFormVisible=!1,this.$parent.fetchData()}})}}},s=o("d959"),c=o.n(s);const d=c()(l,[["render",r]]);t["default"]=d},7363:function(e,t,o){"use strict";o.r(t);var n=o("f2bf");const a={class:"manage-container"},r={class:"manage-input"},i={class:"manage-button"};function l(e,t,o,l,s,c){const d=Object(n["resolveComponent"])("el-input"),u=Object(n["resolveComponent"])("el-form-item"),m=Object(n["resolveComponent"])("el-option"),h=Object(n["resolveComponent"])("el-select"),p=Object(n["resolveComponent"])("vab-query-form"),b=Object(n["resolveComponent"])("el-form"),g=Object(n["resolveComponent"])("el-button"),f=Object(n["resolveComponent"])("el-table-column"),v=Object(n["resolveComponent"])("el-switch"),w=Object(n["resolveComponent"])("el-table"),k=Object(n["resolveComponent"])("el-pagination"),C=Object(n["resolveComponent"])("manage-edit"),y=Object(n["resolveComponent"])("manage-role"),O=Object(n["resolveComponent"])("manage-product"),j=Object(n["resolveComponent"])("manage-mini-role");return Object(n["openBlock"])(),Object(n["createElementBlock"])("div",a,[Object(n["createElementVNode"])("div",r,[Object(n["createVNode"])(b,{ref:"queryForm",model:s.queryForm,"label-width":"80px"},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(p,null,{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(u,{width:"100",prop:"userName",label:e.$t("staff.yhm")},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(d,{modelValue:s.queryForm.userName,"onUpdate:modelValue":t[0]||(t[0]=e=>s.queryForm.userName=e),size:"small",placeholder:"请输入用户名"},null,8,["modelValue"])]),_:1},8,["label"]),Object(n["createVNode"])(u,{width:"100",prop:"nickName",label:"昵称"},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(d,{modelValue:s.queryForm.nickName,"onUpdate:modelValue":t[1]||(t[1]=e=>s.queryForm.nickName=e),size:"small",placeholder:"请输入昵称"},null,8,["modelValue"])]),_:1}),Object(n["createVNode"])(u,{width:"100",prop:"phone",label:"手机号"},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(d,{modelValue:s.queryForm.phone,"onUpdate:modelValue":t[2]||(t[2]=e=>s.queryForm.phone=e),size:"small",placeholder:"请输入手机号"},null,8,["modelValue"])]),_:1}),Object(n["createVNode"])(u,{width:"100",prop:"email",label:e.$t("staff.yx")},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(d,{modelValue:s.queryForm.email,"onUpdate:modelValue":t[3]||(t[3]=e=>s.queryForm.email=e),size:"small",placeholder:"请输入邮箱"},null,8,["modelValue"])]),_:1},8,["label"]),Object(n["createVNode"])(u,{width:"100",prop:"deptId",label:"部门"},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(h,{modelValue:s.queryForm.deptId,"onUpdate:modelValue":t[4]||(t[4]=e=>s.queryForm.deptId=e),size:"small",placeholder:"请选择部门"},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(m,{value:"",label:e.$t("dataEnquiry.qb")},null,8,["label"]),(Object(n["openBlock"])(!0),Object(n["createElementBlock"])(n["Fragment"],null,Object(n["renderList"])(s.deptData,e=>(Object(n["openBlock"])(),Object(n["createBlock"])(m,{key:e.deptId,label:e.deptName,value:e.deptId},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1})]),_:1})]),_:1},8,["model"])]),Object(n["createElementVNode"])("div",i,[Object(n["createVNode"])(g,{size:"small",onClick:t[5]||(t[5]=e=>c.resetForm())},{default:Object(n["withCtx"])(()=>[Object(n["createTextVNode"])(Object(n["toDisplayString"])(e.$t("defalult.chongz")),1)]),_:1}),Object(n["createVNode"])(g,{type:"primary",size:"small",onClick:c.search},{default:Object(n["withCtx"])(()=>[Object(n["createTextVNode"])(Object(n["toDisplayString"])(e.$t("defalult.cx")),1)]),_:1},8,["onClick"]),Object(n["createVNode"])(g,{type:"primary",size:"small",onClick:c.handleAdd},{default:Object(n["withCtx"])(()=>t[6]||(t[6]=[Object(n["createTextVNode"])(" 添加用户 ")])),_:1},8,["onClick"]),Object(n["createVNode"])(g,{type:"primary",size:"small",onClick:c.deletes},{default:Object(n["withCtx"])(()=>[Object(n["createTextVNode"])(Object(n["toDisplayString"])(e.$t("defalult.plsc")),1)]),_:1},8,["onClick"])]),Object(n["createVNode"])(w,{data:s.roleData,border:"",stripe:"",style:{width:"100%"},onSelectionChange:c.handleSelectionChange},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(f,{type:"selection",width:"55"}),Object(n["createVNode"])(f,{prop:"id",label:"ID",width:"60",align:"center"}),Object(n["createVNode"])(f,{prop:"userName",label:e.$t("staff.yhm"),width:"120",align:"center"},null,8,["label"]),Object(n["createVNode"])(f,{prop:"dept.deptName",label:"部门",width:"120",align:"center"}),Object(n["createVNode"])(f,{prop:"nickName",label:"名字",width:"120",align:"center"}),Object(n["createVNode"])(f,{prop:"phone",label:"手机",width:"120",align:"center"}),Object(n["createVNode"])(f,{prop:"email",label:e.$t("staff.yx"),width:"120",align:"center"},null,8,["label"]),Object(n["createVNode"])(f,{prop:"wechat",label:"微信",width:"120",align:"center"}),Object(n["createVNode"])(f,{prop:"status",label:e.$t("dataEnquiry.zt"),align:"center",width:"60"},{default:Object(n["withCtx"])(e=>[Object(n["createVNode"])(v,{modelValue:e.row.status,"onUpdate:modelValue":t=>e.row.status=t,"active-value":"0","inactive-value":"1",onClick:t=>c.soreStatus(e.row.status,e.row.id)},null,8,["modelValue","onUpdate:modelValue","onClick"])]),_:1},8,["label"]),Object(n["createVNode"])(f,{prop:"createTime",label:e.$t("grouping.cjsj"),width:"200",align:"center"},null,8,["label"]),Object(n["createVNode"])(f,{prop:"updateTime",label:e.$t("grouping.gxsj"),width:"200",align:"center"},null,8,["label"]),Object(n["createVNode"])(f,{fixed:"right",label:e.$t("defalult.cz"),width:"350",align:"center"},{default:Object(n["withCtx"])(({row:o})=>[Object(n["createVNode"])(g,{type:"text",onClick:e=>c.handleEdit(o)},{default:Object(n["withCtx"])(()=>[Object(n["createTextVNode"])(Object(n["toDisplayString"])(e.$t("defalult.bj")),1)]),_:2},1032,["onClick"]),Object(n["createVNode"])(g,{type:"text",onClick:e=>c.handleDelete(o)},{default:Object(n["withCtx"])(()=>[Object(n["createTextVNode"])(Object(n["toDisplayString"])(e.$t("defalult.sc")),1)]),_:2},1032,["onClick"]),Object(n["createVNode"])(g,{type:"text",onClick:e=>c.assignRole(o)},{default:Object(n["withCtx"])(()=>t[7]||(t[7]=[Object(n["createTextVNode"])("平台角色")])),_:2},1032,["onClick"]),Object(n["createVNode"])(g,{type:"text",onClick:e=>c.assignMiniRole(o)},{default:Object(n["withCtx"])(()=>t[8]||(t[8]=[Object(n["createTextVNode"])(" 小程序角色 ")])),_:2},1032,["onClick"]),Object(n["createVNode"])(g,{type:"text",onClick:e=>c.assignProduct(o)},{default:Object(n["withCtx"])(()=>t[9]||(t[9]=[Object(n["createTextVNode"])(" 分配项目 ")])),_:2},1032,["onClick"])]),_:1},8,["label"])]),_:1},8,["data","onSelectionChange"]),Object(n["createVNode"])(k,{background:s.background,"current-page":s.queryForm.page,layout:s.layout,"page-size":s.queryForm.size,total:s.total,style:{"text-align":"right"},onCurrentChange:c.handleCurrentChange,onSizeChange:c.handleSizeChange},null,8,["background","current-page","layout","page-size","total","onCurrentChange","onSizeChange"]),Object(n["createVNode"])(C,{ref:"edit"},null,512),Object(n["createVNode"])(y,{ref:"index"},null,512),Object(n["createVNode"])(O,{ref:"product"},null,512),Object(n["createVNode"])(j,{ref:"mini"},null,512)])}o("14d9");var s=o("0fea"),c=o("173f"),d=o("c014"),u=o("5276"),m=o("e51a"),h=o("fe05"),p={name:"ManageIndex",components:{manageEdit:c["default"],manageRole:d["default"],manageProduct:u["default"],manageMiniRole:m["default"]},data(){return{roleData:[],lazy:!0,activeName:"first",layout:"total, sizes, prev, pager, next, jumper",total:0,input:"",textarea:"",list:[],ids:[],deptData:[],background:!0,listLoading:!0,elementLoadingText:"正在加载...",queryForm:{page:1,size:20,userName:"",nickName:"",phone:"",email:"",deptId:""}}},computed:{height(){return 500}},created(){this.fetchData(),this.getDeptData()},methods:{search(){this.fetchData()},resetForm(){this.$refs.queryForm.resetFields()},async getDeptData(){const{data:e}=await Object(h["getDeptList"])();this.deptData=e},handleSelectionChange(e){const t=[];e.forEach(e=>{t.push(e.id)}),this.ids=t},async soreStatus(e,t){const{code:o,msg:n}=await Object(s["doEdit"])({status:e,id:t});0==o?this.$notify({title:n,type:"success"}):this.$notify.error({title:n}),this.fetchData()},manageIndex(){this.fetchData()},async fetchData(){this.listLoading=!0;const{data:e}=await Object(s["getList"])(this.queryForm);this.roleData=e.items,this.total=e.total,console.log(this.roleData),setTimeout(()=>{this.listLoading=!1},500)},handleAdd(){this.$refs["edit"].manageEdit()},handleEdit(e){this.$refs["edit"].manageEdit(e)},assignRole(e){this.$refs["index"].manageRole(e)},assignMiniRole(e){this.$refs["mini"].manageMiniRole(e)},assignProduct(e){this.$refs["product"].manageProduct(e)},handleQuery(){this.queryForm.page=1,this.fetchData()},handleSizeChange(e){this.queryForm.size=e,this.fetchData()},handleCurrentChange(e){this.queryForm.page=e,this.fetchData()},deletes(){const e=this.ids;if(0==e.length)return this.$message({type:"info",message:"没有选中任何项"}),!1;this.deleteData(e)},deleteData(e){this.$confirm("你确定要删除当前项吗?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(()=>{const{msg:t}=Object(s["doDelete"])(e);this.$message({type:"success",message:void 0==t?"删除成功":t});const o=this;setTimeout((function(){o.fetchData()}),1e3)}).catch(()=>{this.$message({type:"info",message:"已取消删除"})})},handleDelete(e){e.id&&this.deleteData([e.id])}}},b=(o("8124"),o("d959")),g=o.n(b);const f=g()(p,[["render",l],["__scopeId","data-v-6ef2ea26"]]);t["default"]=f},7370:function(e,t,o){e.exports={"menu-color":"hsla(0,0%,27%,.95)","menu-color-active":"hsla(208,100%,55%,.95)","menu-background":"#fff","gallery-second-menu-background":"#fff"}},"73a5":function(e,t,o){"use strict";o("a406")},"73f5":function(e,t,o){"use strict";o("b98f")},"74d1":function(e,t,o){},"750a0":function(e,t,o){"use strict";o("1df0")},"752e":function(e,t,o){e.exports={"menu-color":"hsla(0,0%,27%,.95)","menu-color-active":"hsla(208,100%,55%,.95)","menu-background":"#fff","gallery-second-menu-background":"#fff"}},7548:function(e,t,o){"use strict";o.r(t);var n=o("f2bf");const a={class:"manage-container"};function r(e,t,o,r,i,l){const s=Object(n["resolveComponent"])("group-index"),c=Object(n["resolveComponent"])("el-tab-pane"),d=Object(n["resolveComponent"])("vehicle-index"),u=Object(n["resolveComponent"])("el-tabs");return Object(n["openBlock"])(),Object(n["createElementBlock"])("div",a,[Object(n["createVNode"])(u,{modelValue:i.activeName,"onUpdate:modelValue":t[0]||(t[0]=e=>i.activeName=e),onTabClick:l.handleClick},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(c,{label:"班组管理",name:"first"},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(s,{ref:"group"},null,512)]),_:1}),Object(n["createVNode"])(c,{label:"车辆管理",name:"second"},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(d,{ref:"vehicle"},null,512)]),_:1})]),_:1},8,["modelValue","onTabClick"])])}var i=o("8841"),l=o("99b1"),s={name:"Index",components:{groupIndex:i["default"],vehicleIndex:l["default"]},data(){return{activeName:"first"}},computed:{height(){return 500}},mounted(){},methods:{handleClick(e,t){console.log(e,t),"second"==e.paneName?this.$refs["menu"].showEdit():"first"==e.paneName&&this.$refs["config"].showEdit()}}},c=(o("5fd6"),o("d959")),d=o.n(c);const u=d()(s,[["render",r],["__scopeId","data-v-1b64b77a"]]);t["default"]=u},"75bb":function(e,t,o){"use strict";o("e0a6")},"75c5":function(e,t,o){"use strict";o.r(t);var n=o("f2bf");const a={class:"manage-container"};function r(e,t,o,r,i,l){const s=Object(n["resolveComponent"])("vab-query-form"),c=Object(n["resolveComponent"])("el-option"),d=Object(n["resolveComponent"])("el-select"),u=Object(n["resolveComponent"])("el-form-item"),m=Object(n["resolveComponent"])("el-input"),h=Object(n["resolveComponent"])("el-button"),p=Object(n["resolveComponent"])("el-form"),b=Object(n["resolveComponent"])("el-dialog");return Object(n["openBlock"])(),Object(n["createElementBlock"])("div",a,[Object(n["createVNode"])(b,{modelValue:i.dialogFormVisible,"onUpdate:modelValue":t[9]||(t[9]=e=>i.dialogFormVisible=e),title:i.title,width:"500px",onClose:l.close},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(s,null,{default:Object(n["withCtx"])(()=>t[10]||(t[10]=[Object(n["createElementVNode"])("h1",{class:"tigger-title"},"添加触发器信息",-1)])),_:1}),Object(n["createVNode"])(p,{ref:"form",model:i.form,rules:i.rules,"label-width":"100px","label-position":"left"},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(u,{label:e.$t("dataEnquiry.cgq"),prop:"sensorName"},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(d,{modelValue:i.form.sensorName,"onUpdate:modelValue":t[0]||(t[0]=e=>i.form.sensorName=e),placeholder:"请选择传感器"},{default:Object(n["withCtx"])(()=>[(Object(n["openBlock"])(!0),Object(n["createElementBlock"])(n["Fragment"],null,Object(n["renderList"])(i.sensorData,e=>(Object(n["openBlock"])(),Object(n["createBlock"])(c,{key:e,label:e,value:e},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1},8,["label"]),Object(n["createVNode"])(u,{label:e.$t("trigger.cfqmc"),prop:"triggerName"},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(m,{modelValue:i.form.triggerName,"onUpdate:modelValue":t[1]||(t[1]=e=>i.form.triggerName=e),placeholder:"请输入触发器名称"},null,8,["modelValue"])]),_:1},8,["label"]),Object(n["createVNode"])(s,null,{default:Object(n["withCtx"])(()=>t[11]||(t[11]=[Object(n["createElementVNode"])("h1",{class:"tigger-title"},"触发条件",-1)])),_:1}),Object(n["createVNode"])(u,{label:"条件类型",prop:"triggerCondition"},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(d,{ref:"condition",modelValue:i.form.triggerCondition,"onUpdate:modelValue":t[2]||(t[2]=e=>i.form.triggerCondition=e),placeholder:"请选择条件类型",onChange:l.condition},{default:Object(n["withCtx"])(()=>[(Object(n["openBlock"])(!0),Object(n["createElementBlock"])(n["Fragment"],null,Object(n["renderList"])(i.conditionData,e=>(Object(n["openBlock"])(),Object(n["createBlock"])(c,{key:e.dataCode,label:e.dataValue,value:e.dataCode},null,8,["label","value"]))),128))]),_:1},8,["modelValue","onChange"])]),_:1}),1==i.mShow?(Object(n["openBlock"])(),Object(n["createBlock"])(u,{key:0,label:"M"},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(m,{modelValue:i.data.m,"onUpdate:modelValue":t[3]||(t[3]=e=>i.data.m=e),placeholder:"M"},null,8,["modelValue"])]),_:1})):Object(n["createCommentVNode"])("",!0),1==i.xShow?(Object(n["openBlock"])(),Object(n["createBlock"])(u,{key:1,label:"X"},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(m,{modelValue:i.data.x,"onUpdate:modelValue":t[4]||(t[4]=e=>i.data.x=e),placeholder:"X"},null,8,["modelValue"])]),_:1})):Object(n["createCommentVNode"])("",!0),1==i.yShow?(Object(n["openBlock"])(),Object(n["createBlock"])(u,{key:2,label:"Y"},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(m,{modelValue:i.data.y,"onUpdate:modelValue":t[5]||(t[5]=e=>i.data.y=e),placeholder:"Y"},null,8,["modelValue"])]),_:1})):Object(n["createCommentVNode"])("",!0),Object(n["createVNode"])(u,{label:e.$t("trigger.cfzq"),prop:"triggerCycle"},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(m,{modelValue:i.form.triggerCycle,"onUpdate:modelValue":t[6]||(t[6]=e=>i.form.triggerCycle=e),placeholder:"请输入触发周期"},null,8,["modelValue"])]),_:1},8,["label"]),Object(n["createVNode"])(u,{label:"是否发送报警信息",prop:"alarmFlag"},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(d,{modelValue:i.form.alarmFlag,"onUpdate:modelValue":t[7]||(t[7]=e=>i.form.alarmFlag=e),placeholder:"是否发送"},{default:Object(n["withCtx"])(()=>[(Object(n["openBlock"])(!0),Object(n["createElementBlock"])(n["Fragment"],null,Object(n["renderList"])(i.alarmFlagData,e=>(Object(n["openBlock"])(),Object(n["createBlock"])(c,{key:e.value,label:e.label,value:e.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),Object(n["createVNode"])(u,{label:e.$t("alarm.bjjb"),prop:"alarmLevel"},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(d,{modelValue:i.form.alarmLevel,"onUpdate:modelValue":t[8]||(t[8]=e=>i.form.alarmLevel=e),placeholder:"请选择报警级别"},{default:Object(n["withCtx"])(()=>[(Object(n["openBlock"])(!0),Object(n["createElementBlock"])(n["Fragment"],null,Object(n["renderList"])(i.levelData,e=>(Object(n["openBlock"])(),Object(n["createBlock"])(c,{key:e.dataCode,label:e.dataValue,value:e.dataCode},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1},8,["label"]),Object(n["createVNode"])(s,null,{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(h,{type:"primary",onClick:l.save},{default:Object(n["withCtx"])(()=>t[12]||(t[12]=[Object(n["createTextVNode"])("保存")])),_:1},8,["onClick"]),Object(n["createVNode"])(h,{type:"primary",plain:"",onClick:l.close},{default:Object(n["withCtx"])(()=>t[13]||(t[13]=[Object(n["createTextVNode"])("返回")])),_:1},8,["onClick"])]),_:1})]),_:1},8,["model","rules"])]),_:1},8,["modelValue","title","onClose"])])}var i=o("b681"),l=o("4303"),s={name:"TriggerEdit",data(){return{form:{id:"",name:"",projectId:"",sensorName:"",triggerName:"",triggerCondition:"",triggerConditionParams:"",triggerCycle:"",alarmFlag:"",alarmLevel:""},data:{x:"",y:"",m:""},title:"",projectId:"",dialogFormVisible:!1,levelData:[],triggerData:[],sensorData:[],conditionData:[],alarmFlagData:[{label:"不发送",value:"0"},{label:"发送",value:"1"}],rules:{triggerName:[{required:!0,trigger:"blur",message:"请输入触发器名称"}],sensorName:[{required:!0,trigger:"change",message:"请选择传感器"}],triggerCycle:[{required:!0,trigger:"blur",message:"请输入出发周期"}],alarmLevel:[{required:!0,trigger:"change",message:"请选择报警级别"}]},xShow:!1,yShow:!1,mShow:!1,isControl:!1,isUser:!1,isLevel:!1}},created(){},methods:{async getSensorData(){const{data:e}=await Object(i["getSensorsData"])({projectId:this.projectId});this.sensorData=e},controlUserShow(e){-1!==e.indexOf("0")&&-1!==e.indexOf("1")||-1!==e.indexOf("0")&&-1!==e.indexOf("2")||-1!==e.indexOf("0")&&-1!==e.indexOf("3")?(this.isControl=!0,this.isUser=!0):-1!=e.indexOf("0")?(this.isControl=!0,this.isUser=!1):-1!=e.indexOf("1")||-1!=e.indexOf("2")?(this.isControl=!1,this.isUser=!0):(this.isControl=!1,this.isUser=!1)},xymShow(e=""){-1!=e.indexOf("x")&&-1!=e.indexOf("y")?(this.xShow=!0,this.yShow=!0,this.mShow=!1):-1!=e.indexOf("x")&&-1!=e.indexOf("m")?(this.xShow=!0,this.yShow=!1,this.mShow=!0):-1!=e.indexOf("x")?(this.xShow=!0,this.yShow=!1,this.mShow=!1):-1!=e.indexOf("y")?(this.xShow=!1,this.yShow=!0,this.mShow=!1):-1!=e.indexOf("m")&&(this.xShow=!1,this.yShow=!1,this.mShow=!0),this.data.x="",this.data.y="",this.data.m=""},condition(e){let t={};t=this.conditionData.find(t=>t.dataCode===e);const o=t.dataValue;this.xymShow(o)},async getLevel(){const{data:e}=await Object(l["selectAllAlarmLevel"])();this.levelData=e},async getCondition(){const{data:e}=await Object(l["selectAllTriggerCondition"])();this.conditionData=e},showEdit(e,t){this.getLevel(),this.getCondition(),this.projectId=this.form.projectId=sessionStorage.getItem("projectId"),this.deviceData={},0==t?this.title="添加触发器规则":(this.title="编辑触发器规则",this.getTriggerData(e)),this.getSensorData(),this.dialogFormVisible=!0},getTriggerData(e){const t=e;if(this.form.id=t.id,this.form.triggerName=t.triggerName,this.form.sensorName=t.sensorName,this.form.triggerCycle=t.triggerCycle,this.form.alarmFlag=t.alarmFlag,void 0!==t.triggerCondition){this.form.triggerCondition=t.triggerCondition.dataCode,this.xymShow(t.triggerCondition.dataValue);const e=t.triggerConditionParams.split(",");1==this.mShow&&(this.data.m=void 0==e[2]?e[1]:e[2]),1==this.xShow&&(this.data.x=void 0==e[0]?"":e[0]),1==this.yShow&&(this.data.y=void 0==e[1]?"":e[1])}void 0!==t.alarmLevel&&(this.form.alarmLevel=t.alarmLevel.dataCode)},arrToSrt(e,t=""){if(void 0!=e&&0!=e.length){let o="";for(let n=0;n<e.length;n++)o+=t?e[n].id+",":e[n]+",";return o.substring(0,o.length-1)}},close(){this.$refs["form"].resetFields(),this.form=this.$options.data().form,this.dialogFormVisible=!1,this.$emit("fetch-data")},save(){this.$refs["form"].validate(async e=>{if(!e)return!1;{const e=this.data;let t="";if(""!=e.m&&(t+=e.m+","),""!=e.x&&(t+=e.x+","),""!=e.y&&(t+=e.y+","),this.form.triggerConditionParams=t.substring(0,t.length-1),this.form.id){const{msg:e}=await Object(i["doEdit"])(this.form);this.$notify({title:e,type:"success"})}else{delete this.form.id;const{msg:e}=await Object(i["doAdd"])(this.form);this.$notify({title:e,type:"success"})}this.$refs["form"].resetFields(),this.dialogFormVisible=!1,this.$parent.fetchData()}})}}},c=(o("394b"),o("d959")),d=o.n(c);const u=d()(s,[["render",r],["__scopeId","data-v-6e922cfa"]]);t["default"]=u},"75e7":function(e,t,o){},7617:function(e,t,o){"use strict";o("ee68")},7627:function(e,t,o){"use strict";o.r(t);var n=o("f2bf");const a={class:"manage-container"};function r(e,t,o,r,i,l){const s=Object(n["resolveComponent"])("follow-index"),c=Object(n["resolveComponent"])("el-tab-pane"),d=Object(n["resolveComponent"])("keywords-index"),u=Object(n["resolveComponent"])("default-index"),m=Object(n["resolveComponent"])("el-tabs");return Object(n["openBlock"])(),Object(n["createElementBlock"])("div",a,[Object(n["createVNode"])(m,{modelValue:i.activeName,"onUpdate:modelValue":t[0]||(t[0]=e=>i.activeName=e),onTabClick:l.handleClick},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(c,{label:"关注自动回复",name:"first"},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(s,{ref:"follow"},null,512)]),_:1}),Object(n["createVNode"])(c,{label:"关键词自动回复",name:"second"},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(d,{ref:"keywords"},null,512)]),_:1}),Object(n["createVNode"])(c,{label:"默认自动回复",name:"three"},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(u,{ref:"default"},null,512)]),_:1})]),_:1},8,["modelValue","onTabClick"])])}var i=o("3508"),l=o("a0fa"),s=o("fdf2"),c={name:"Index",components:{followIndex:i["default"],keywordsIndex:l["default"],defaultIndex:s["default"]},data(){return{activeName:"first"}},computed:{height(){return 500}},mounted(){},methods:{handleClick(e,t){console.log(e,t),"second"==e.paneName?this.$refs["keywords"].keywordsIndex():"first"==e.paneName?this.$refs["follow"].followIndex():"three"==e.paneName&&this.$refs["default"].defaultIndex()}}},d=(o("98f4"),o("d959")),u=o.n(d);const m=u()(c,[["render",r]]);t["default"]=m},7633:function(e,t,o){"use strict";o("752e")},"76c1":function(e,t,o){"use strict";o.r(t);var n=o("f2bf");const a={class:"manage-container"},r={id:"main3",ref:"echarts",style:{height:"380px"}};function i(e,t,o,i,l,s){const c=Object(n["resolveComponent"])("el-date-picker"),d=Object(n["resolveComponent"])("el-form-item"),u=Object(n["resolveComponent"])("el-option"),m=Object(n["resolveComponent"])("el-select"),h=Object(n["resolveComponent"])("el-button"),p=Object(n["resolveComponent"])("vab-query-form"),b=Object(n["resolveComponent"])("el-form"),g=Object(n["resolveComponent"])("el-card"),f=Object(n["resolveComponent"])("el-table-column"),v=Object(n["resolveComponent"])("el-table"),w=Object(n["resolveComponent"])("el-pagination"),k=Object(n["resolveComponent"])("vab-query-form-right-panel"),C=Object(n["resolveDirective"])("loading");return Object(n["openBlock"])(),Object(n["createElementBlock"])("div",a,[Object(n["createVNode"])(b,{ref:"form",model:l.queryForm,"label-width":"80px"},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(p,null,{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(d,{width:"100",label:e.$t("defalult.sj")},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(c,{modelValue:l.startDate,"onUpdate:modelValue":t[0]||(t[0]=e=>l.startDate=e),type:"daterange","range-separator":"-","start-placeholder":e.$t("defalult.ksrq"),"end-placeholder":e.$t("defalult.jsrq"),onChange:s.handleStartDateChange},null,8,["modelValue","start-placeholder","end-placeholder","onChange"])]),_:1},8,["label"]),Object(n["createVNode"])(d,{width:"100",prop:"deviceCode",label:e.$t("sensor.qgq")},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(m,{modelValue:l.queryForm.dataKey,"onUpdate:modelValue":t[1]||(t[1]=e=>l.queryForm.dataKey=e),placeholder:e.$t("sensor.qxzqgq")},{default:Object(n["withCtx"])(()=>[(Object(n["openBlock"])(!0),Object(n["createElementBlock"])(n["Fragment"],null,Object(n["renderList"])(l.sensorsData,e=>(Object(n["openBlock"])(),Object(n["createBlock"])(u,{key:e.transferId,label:e.name,value:e.transferId},null,8,["label","value"]))),128))]),_:1},8,["modelValue","placeholder"])]),_:1},8,["label"]),Object(n["createVNode"])(d,{width:"100"},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(h,{type:"primary",size:"medium",onClick:s.search},{default:Object(n["withCtx"])(()=>[Object(n["createTextVNode"])(Object(n["toDisplayString"])(e.$t("defalult.cx")),1)]),_:1},8,["onClick"])]),_:1})]),_:1})]),_:1},8,["model"]),Object(n["createVNode"])(g,{style:{height:"380px"}},{default:Object(n["withCtx"])(()=>[Object(n["createElementVNode"])("div",r,null,512)]),_:1}),Object(n["withDirectives"])((Object(n["openBlock"])(),Object(n["createBlock"])(v,{data:l.newTableData,border:"",stripe:"",style:{width:"100%"}},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(f,{prop:"time",label:e.$t("sensor.ccsj"),align:"center"},null,8,["label"]),Object(n["createVNode"])(f,{prop:"name",label:e.$t("sensor.cgqmc"),align:"center"},null,8,["label"]),Object(n["createVNode"])(f,{prop:"dataKey",label:e.$t("sensor.csid"),align:"center"},null,8,["label"]),Object(n["createVNode"])(f,{prop:"value",label:e.$t("sensor.zhi"),align:"center"},null,8,["label"]),Object(n["createVNode"])(f,{prop:"unit",label:e.$t("sensor.dw"),align:"center"},null,8,["label"])]),_:1},8,["data"])),[[C,l.listLoading]]),Object(n["createVNode"])(p,null,{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(k,null,{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(w,{background:l.background,"current-page":l.queryForm.page,layout:l.layout,"page-size":l.queryForm.size,total:l.total,onCurrentChange:s.handleCurrentChange,onSizeChange:s.handleSizeChange},null,8,["background","current-page","layout","page-size","total","onCurrentChange","onSizeChange"])]),_:1})]),_:1})])}o("14d9");var l=o("aa98"),s=o("5f99"),c=o("313e"),d={components:{},data(){return{newTableData:[],data:[],deviceCode:"",projectId:"",lazy:!0,layout:"total, sizes, prev, pager, next, jumper",total:0,background:!0,listLoading:!0,elementLoadingText:"正在加载...",deviceId:"",historyData:[],sensorsData:[],sensorInfoData:[],startDate:"",queryForm:{page:1,size:10,dataKey:"",deviceCode:"",start:"",end:""}}},computed:{height(){return 500}},methods:{async fetchData(){this.listLoading=!0;const{data:e}=await Object(l["getHistoryData"])(this.queryForm);this.data=e,this.total=e.length,this.handleCurrentChange(1),setTimeout(()=>{this.listLoading=!1,this.getReportHistory(),console.log(123)},500)},async getReportHistoryData(){},async getSensorsData(){const{data:e}=await Object(l["sensors"])(this.queryForm);this.sensorsData=e},showData(e){this.queryForm.dataKey=e.dataKey,this.queryForm.deviceCode=e.deviceCode,this.queryForm.end=Object(s["getFMdate"])(0),this.queryForm.start=Object(s["getFMdate"])(-1),this.startDate=[Object(s["getFMdate"])(-1),Object(s["getFMdate"])(0)],this.sensorInfo(),this.fetchData(),this.getSensorsData()},async sensorInfo(){const{data:e}=await Object(l["sensorInfo"])(this.queryForm);this.sensorInfoData=e},handleStartDateChange(){if(this.startDate&&this.startDate.length>0){const e=+new Date(this.startDate[0]),t=+new Date(this.startDate[1]);t>e+2592e6?this.$alert("日期的起止时间跨度不能超过30天","提示",{confirmButtonText:"确定",type:"warning"}).then(()=>this.startDate=null).catch(()=>this.startDate=null):(this.queryForm.end=Object(s["getDate"])(this.startDate[1]),this.queryForm.start=Object(s["getDate"])(this.startDate[0]))}},async getReportHistory(){var e,t=c["a"](document.getElementById("main3"));const{data:o}=await Object(l["getReportHistoryData"])(this.queryForm);var n=[];for(let i=0;i<o.length;i++)n.push(o[i][1]);var a=Math.min.apply(null,n),r=Math.max.apply(null,n);e={tooltip:{trigger:"axis",position:function(e){return[e[0],"10%"]}},title:{left:"center",text:"折线图"},toolbox:{feature:{dataZoom:{yAxisIndex:"none"},restore:{},saveAsImage:{}}},xAxis:{type:"time",boundaryGap:!1},yAxis:{type:"value",boundaryGap:[0,"100%"],min:a,max:r},dataZoom:[{type:"inside",start:0,end:20},{start:0,end:20}],series:[{name:"数据",type:"line",smooth:!0,symbol:"none",areaStyle:{},data:o}]},e&&t.setOption(e)},search(){this.sensorInfo(),this.fetchData()},timeToStr(){var e=this.sensorInfoData;this.newTableData.forEach(t=>{t["time"]=Object(s["formatDateTime"])(t[0]),t["value"]=t[1],t["name"]=e.name,t["unit"]=e.unit,t["dataKey"]=e.dataKey})},handleQuery(){this.queryForm.page=1},handleSizeChange(e){this.queryForm.size=e},handleCurrentChange(e){this.queryForm.page=e;const t=this.queryForm.size;this.newTableData=this.data.slice((e-1)*t,e*t),this.timeToStr()}}},u=(o("d562"),o("d959")),m=o.n(u);const h=m()(d,[["render",i],["__scopeId","data-v-6e8dc280"]]);t["default"]=h},7825:function(e,t,o){e.exports=o.p+"static/img/ljysl.0fb059af.png"},7832:function(e,t,o){"use strict";o("96ca")},"785d":function(e,t,o){e.exports={"menu-color":"hsla(0,0%,27%,.95)","menu-color-active":"hsla(208,100%,55%,.95)","menu-background":"#fff","gallery-second-menu-background":"#fff"}},7869:function(e,t,o){"use strict";o.r(t),o.d(t,"DefinedOverlay",(function(){return n})),o.d(t,"DefinedMarkerInfoWindow",(function(){return a})),o.d(t,"randomPoint",(function(){return r}));o("14d9");class n extends T.Overlay{initialize(e,t,o={}){const{text:n,text2:a,filterNowMarkerList:r}=t;this.lnglat=e,this.setOptions(o),this._text=n,this._overText=a,this.filterNowMarkerList=r}onAdd(e){this.map=e;const t=this._div=document.createElement("div");t.style.position="absolute",t.style.backgroundColor="rgba(255, 0, 0, 0.7)",t.style.border="1px solid #BC3B3A",t.style.color="white",t.style.width="200px",t.style.height="94px",t.style.padding="2px",t.style.lineHeight="18px",t.style.whiteSpace="nowrap",t.style.MozUserSelect="none",t.style.fontSize="12px",t.style.display="none";const o=this._span=document.createElement("span");t.appendChild(o),o.appendChild(document.createTextNode(this._text));const n=this;t.onmouseover=function(){this.style.backgroundColor="#6BADCA",this.style.borderColor="#0000ff",this.getElementsByTagName("span")[0].innerHTML=n._overText},t.onmouseout=function(){this.style.backgroundColor="#EE5D5B",this.style.borderColor="#BC3B3A",this.getElementsByTagName("span")[0].innerHTML=n._text},this._bg=document.createElement("div"),this._bg.style.position="absolute",this._bg.style.backgroundColor="rgba(0, 0, 0, 0.7)",this._bg.style.border="1px solid #BC3B3A",this._bg.style.color="white",this._bg.style.width="1120px",this._bg.style.height="794px",this._bg.style.top="0px !important",this._bg.style.left="0px !important",this._bg.style.display="none",this._bg.onclick=()=>{this.hide()},e.getPanes().overlayPane.appendChild(this._bg),e.getPanes().overlayPane.appendChild(this._div),this.update(this.lnglat)}onRemove(){const e=this._div.parentNode;e&&(e.removeChild(this._div),e.removeChild(this._bg),this._bg=null,this._div=null)}show(){this._div.style.display="block",this._bg.style.display="block"}hide(){this._div.style.display="none",this._bg.style.display="none"}setLnglat(e){this.lnglat=e,this.update()}getLnglat(){return this.lnglat}setPos(e){this.lnglat=this.map.layerPointToLngLat(e),this.update()}update(){const e=this.map.lngLatToLayerPoint(this.lnglat);this._div.style.top=e.y-36+"px",this._div.style.left=e.x-11+"px"}setOverlayInfo({text:e,text2:t,lnglat:o}){this._text=e,this._overText=t,this.setLnglat(o)}toggle(e=!1,t){e?(this.setOverlayInfo(t),this._div.style.display="block"):this._div.style.display="none"}}class a{constructor(e,t={}){return this.createContain(e),new T.InfoWindow(this._div.outerHTML,{closeButton:!1,closeOnClick:!0,offset:new T.Point(17,47),autoPan:!0,minWidth:0})}createContain(e){const t=document.createElement("div");t.setAttribute("id",e),t.style.width="60px",t.style.height="60px",t.style.background="rgba(0, 0, 0, 0)",t.style.position="relative",this.containerId=e,this._div=t}}const r=(e,t)=>{const o=e.getBounds(),n=o.getSouthWest(),a=o.getNorthEast(),r=Math.abs(n.lng-a.lng),i=Math.abs(a.lat-n.lat),l=[];for(let s=0;s<t;s++){const e=n.lng+r*(.7*Math.random()),t=a.lat-i*(.7*Math.random());l.push({lng:e,lat:t,zh:"天坛公园"+s,detail:"detail天坛公园"+s,count:Math.floor(30*Math.random()),lnglat:new T.LngLat(e,t)})}return l}},"78a3":function(e,t){e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACwAAAAsCAMAAAApWqozAAAAXVBMVEX29voygf271PtMjv2uyvzj6/vY5Pt5qPzG2vvv8vrS4fvh6fuRuPxrofy50fuEr/zP3/tYlf3C2Pvs8Prx8/rq7vqqxvzf6Pu/1ftUk/2iwvyVu/yArPx0pvxsoPzP29vSAAAAbUlEQVQ4y+3URwrAIBBA0TRNN82Wev9jBmahgYkguAnEt/7rn0SBBMUId8TVUCJSOOIiT5GhjbF10AVwn/jUI1DcI+6LDDR1jL8fs2sCa26VrlhpBuTeGRsz8bt2zh7+HpOxQqjreTXBRBIFuwH5GwykLAMcRAAAAABJRU5ErkJggg=="},"78ed":function(e,t,o){"use strict";o.r(t);var n=o("f2bf");function a(e,t,o,a,r,i){return Object(n["openBlock"])(),Object(n["createElementBlock"])("div",{id:"detail1",class:"marker-detail",style:Object(n["normalizeStyle"])(i.p),onClick:Object(n["withModifiers"])(e=>!1,["stop"])},[Object(n["renderSlot"])(e.$slots,"default",{},void 0,!0)],4)}var r={name:"DialogMarkerContainer",data(){return{position:{top:"-999px",left:"-999px"}}},computed:{p(){return`transform: translate(${this.position.left}, ${this.position.top})`}},methods:{setPosition(e){this.position={top:e.top+(e.offset||0)+"px",left:e.left+(e.offset||0)+"px"}}}},i=(o("cb0b"),o("d959")),l=o.n(i);const s=l()(r,[["render",a],["__scopeId","data-v-1f7baf2c"]]);t["default"]=s},7943:function(e,t,o){},"79ca":function(e,t,o){},"79d7":function(e,t,o){var n={"./views/403.vue":"00a5","./views/404.vue":"8cdb","./views/analysis/dfunction/components/elecDay.vue":"5883","./views/analysis/dfunction/components/siteDay.vue":"08cc","./views/analysis/dfunction/components/waterDay.vue":"198a","./views/analysis/dfunction/components/watergraph.vue":"4b95","./views/analysis/dfunction/index.vue":"93d4","./views/analysis/energy/index.vue":"df77","./views/analysis/equipmentfunction/index.vue":"e792","./views/analysis/facilitiesfunction/index.vue":"d38c","./views/analysis/factoryData/index.vue":"5663","./views/analysis/mfunction/components/elecMonth.vue":"0f8a","./views/analysis/mfunction/components/siteMonth.vue":"2a0c","./views/analysis/mfunction/components/waterMonth.vue":"2c20","./views/analysis/mfunction/index.vue":"8271","./views/analysis/sensoriotdata/currentData.vue":"1134","./views/analysis/sensoriotdata/historyData.vue":"3f8d","./views/analysis/sensoriotdata/index.vue":"b0bb","./views/analysis/sensoriotdata/showdata.vue":"09de","./views/analysis/site/components/bdMap.vue":"17be","./views/analysis/site/components/copyDevice.vue":"734d","./views/analysis/site/components/deviceEdit.vue":"8420","./views/analysis/site/components/realIndex.vue":"0072","./views/analysis/site/components/siteIndex.vue":"694d","./views/analysis/site/index.vue":"7082","./views/analysis/water/index.vue":"eaa2","./views/analysis/weekfunction/index.vue":"a9d0","./views/analysis/workmanship/index.vue":"ee5b","./views/compoents/editor/index.vue":"f55e","./views/department/list/add.vue":"2f10","./views/department/list/index.vue":"179a","./views/dev/alarm/components/add.vue":"88de","./views/dev/alarm/components/current.vue":"e30d","./views/dev/alarm/components/history.vue":"eb86","./views/dev/alarm/components/toTask.vue":"3f02","./views/dev/alarm/index.vue":"8d65","./views/dev/apply/components/apply.vue":"e3da","./views/dev/apply/components/applyDetail.vue":"4cff","./views/dev/apply/components/applyEdit.vue":"ada3","./views/dev/apply/components/testing.vue":"1688","./views/dev/apply/components/testingAdd.vue":"1695","./views/dev/apply/index.vue":"0dbc","./views/dev/clock/index.vue":"691d","./views/dev/clock/trajectory.vue":"0182","./views/dev/filling/detail.vue":"4579","./views/dev/filling/index.vue":"0ff1","./views/dev/knowledge/components/detail.vue":"977f","./views/dev/knowledge/components/knowledgeEdit.vue":"b862","./views/dev/knowledge/index.vue":"91aa","./views/dev/maintenance/components/add.vue":"5f07","./views/dev/maintenance/components/equipment.vue":"c2e0","./views/dev/maintenance/components/online.vue":"71e6","./views/dev/maintenance/components/repairEdit.vue":"8551","./views/dev/maintenance/components/totask.vue":"10d8","./views/dev/maintenance/index.vue":"8112","./views/dev/repair/components/repairEdit.vue":"1a47","./views/dev/repair/index.vue":"b15b","./views/dev/staff/index.vue":"a13a","./views/dev/task/components/alarm/alarmAdd.vue":"eb9b","./views/dev/task/components/alarm/feedback.vue":"6325","./views/dev/task/components/alarm/index.vue":"bccb","./views/dev/task/components/main/alarmAdd.vue":"2c34","./views/dev/task/components/main/feedback.vue":"ab15","./views/dev/task/components/main/index.vue":"63d2","./views/dev/task/components/other/alarmAdd.vue":"8816","./views/dev/task/components/other/feedback.vue":"e67e","./views/dev/task/components/other/index.vue":"0023","./views/dev/task/index.vue":"5abc","./views/dev/vehicle/index.vue":"a712","./views/index/chart/alarm.vue":"a72c","./views/index/chart/clockFold.vue":"cf49","./views/index/chart/clockIn.vue":"377f","./views/index/chart/consumption.vue":"21dd","./views/index/chart/maintenance-personnel.vue":"17ab","./views/index/chart/maintenance-site.vue":"d400","./views/index/chart/operating.vue":"8d67","./views/index/chart/perfect.vue":"0fbe","./views/index/chart/work.vue":"3ccd","./views/index/components/DialogMarkerContainer.vue":"78ed","./views/index/components/SiteDetail.vue":"93d3","./views/index/components/SiteSearch.vue":"7075","./views/index/components/VersionInformation.vue":"a0b1","./views/index/index.vue":"37f9","./views/index/index1.vue":"a5c4","./views/iot/alarmuser.vue":"d5be","./views/iot/alarmuser/bindDevice.vue":"a5f3","./views/iot/alarmuser/index.vue":"1573","./views/iot/alarmuser/userEdit.vue":"3868","./views/iot/device.vue":"50bb","./views/iot/device/components/bdMap.vue":"a4e7a","./views/iot/device/components/copyDevice.vue":"a4c3","./views/iot/device/components/deviceEdit.vue":"a284","./views/iot/device/components/frameMap.vue":"8065","./views/iot/device/components/sync.vue":"6f3b","./views/iot/device/index.vue":"c572","./views/iot/group.vue":"cb52","./views/iot/group/components/groupEdit.vue":"d27c","./views/iot/group/index.vue":"1967","./views/iot/grouping.vue":"e6d9","./views/iot/grouping/groupEdit.vue":"cfcd","./views/iot/grouping/index.vue":"f5be","./views/iot/police/components/index.vue":"1f33","./views/iot/police/index.vue":"fb4d","./views/iot/project/components/alarm.vue":"49e6","./views/iot/project/components/group.vue":"5e1c","./views/iot/project/components/groupEdit.vue":"9e4b","./views/iot/project/components/projectEdit.vue":"aa4c","./views/iot/project/index.vue":"6790","./views/iot/sensor.vue":"5f4b","./views/iot/sensor/add.vue":"7a86","./views/iot/sensor/index.vue":"03d8","./views/iot/sensor/parameter.vue":"bdc1","./views/iot/sensor1.vue":"1911","./views/iot/sensordata.vue":"7012","./views/iot/sensordata/currentData.vue":"ec65","./views/iot/sensordata/historyData.vue":"76c1","./views/iot/sensordata/index.vue":"9c0e","./views/iot/sensordata/showdata.vue":"5f5a","./views/iot/trigger.vue":"4904","./views/iot/trigger/index.vue":"71ae","./views/iot/trigger/rule.vue":"265c","./views/iot/trigger/ruleEdit.vue":"75c5","./views/iot/trigger/sensor.vue":"d793","./views/iot/trigger/trigger.vue":"14f1","./views/iot/trigger/triggerEdit.vue":"ffbb","./views/iot/trigger/triggerTable.vue":"2b3f","./views/iot/trigger/triggerdetail.vue":"93eb","./views/iot/vehicle/bindProject.vue":"c847","./views/iot/vehicle/index.vue":"d392","./views/log/action/index.vue":"b01e","./views/log/login/index.vue":"c5af","./views/login/index.vue":"9ed6","./views/login/singIn.vue":"5414","./views/login/trialAdd.vue":"7154","./views/maintenance/facility/index.vue":"3a8f","./views/maintenance/patrol/index.vue":"bfa3","./views/maintenance/problemReporting/index.vue":"650c","./views/maintenance/team/group/index.vue":"8841","./views/maintenance/team/index.vue":"7548","./views/maintenance/team/vehicle/index.vue":"99b1","./views/maintenance/workorder/index.vue":"f62e","./views/maintenance/workorder/junction/index.vue":"1b19","./views/maintenance/workorder/my/index.vue":"a631","./views/maintenance/workorder/overdue/index.vue":"b496","./views/maintenance/workorder/stay/index.vue":"2c87","./views/map/map.vue":"a810","./views/party/flow/bindDevice.vue":"35ed","./views/party/flow/index.vue":"4c0a","./views/party/flow/showDetail.vue":"111a","./views/party/fluorite/add.vue":"e8ee","./views/party/fluorite/bindDevice.vue":"2195","./views/party/fluorite/fluoriteSensorData.vue":"dc67","./views/party/fluorite/index.vue":"ae38","./views/party/fluorite/videoData.vue":"bd58","./views/party/gis/index.vue":"63ed","./views/server/assets/components/alarm/components/current.vue":"d31e","./views/server/assets/components/alarm/components/history.vue":"4a11","./views/server/assets/components/alarm/components/toTask.vue":"2c21","./views/server/assets/components/alarm/index.vue":"1e93","./views/server/assets/components/device/index.vue":"4c21","./views/server/assets/components/police/index.vue":"c35f","./views/server/assets/components/project/index.vue":"f2ed","./views/server/assets/components/run/index.vue":"4b2b","./views/server/assets/components/vehicle/index.vue":"9f77","./views/server/assets/index.vue":"8a4a","./views/server/dataEnquiry/index.vue":"af95","./views/server/monitor/components/DialogMarkerContainer.vue":"8c7e","./views/server/monitor/components/SiteDetail.vue":"6221","./views/server/monitor/components/SiteSearch.vue":"f511","./views/server/monitor/index.vue":"cb44","./views/server/monitorVideo/index.vue":"1941","./views/server/siteDetails/distribute.vue":"ca6a","./views/server/siteDetails/image.vue":"35e0","./views/server/siteDetails/index.vue":"c3a0","./views/server/siteDetails/only.vue":"2161","./views/server/siteDetails/readable.vue":"8a34","./views/server/siteDetails/site.vue":"1e8c","./views/server/siteDetails/technology.vue":"fab9","./views/server/siteDetails/video.vue":"4543","./views/server/siteDetails/water.vue":"85f8","./views/server/tablefirst/index.vue":"9c61","./views/server/tablesecond/index.vue":"85ea","./views/server/tablethred/index.vue":"54f7","./views/server/tablethred/index1.vue":"f07d","./views/set/develop.vue":"7ee6","./views/set/develop/dict/add.vue":"b819","./views/set/develop/dict/index.vue":"f606","./views/set/develop/dictdata/add.vue":"e1e0","./views/set/develop/dictdata/index.vue":"38d44","./views/set/develop/index.vue":"d56c","./views/set/global.vue":"4592","./views/set/global/index.vue":"399b","./views/set/intention/add.vue":"ff4d","./views/set/intention/index.vue":"30bb","./views/set/manage.vue":"ae7a","./views/set/manage/components/applets/appletsEdit.vue":"e3f1","./views/set/manage/components/applets/appletsGrant.vue":"9520b","./views/set/manage/components/applets/appletsIndex.vue":"163d","./views/set/manage/components/role/roleEdit.vue":"e289","./views/set/manage/components/role/roleGrant.vue":"695d","./views/set/manage/components/role/roleIndex.vue":"7ad9","./views/set/manage/components/user/manageEdit.vue":"173f","./views/set/manage/components/user/manageIndex.vue":"a103","./views/set/manage/components/user/manageMiniRole.vue":"e51a","./views/set/manage/components/user/manageProduct.vue":"5276","./views/set/manage/components/user/manageRole.vue":"c014","./views/set/manage/index.vue":"7363","./views/set/manage/role.vue":"60bb","./views/set/material.vue":"4c03","./views/set/material/components/add.vue":"29d5","./views/set/material/index.vue":"f559","./views/set/set.vue":"6e47","./views/set/set/components/applets/appletsEdit.vue":"5431","./views/set/set/components/applets/appletsIndex.vue":"aa77","./views/set/set/components/config/sysConfig.vue":"293b","./views/set/set/components/menuEdit.vue":"48fa","./views/set/set/components/menuIndex.vue":"5b46","./views/set/set/index.vue":"a2c2","./views/set/user/components/basic.vue":"5fcd","./views/set/user/components/resetting.vue":"b547","./views/set/user/index.vue":"5715","./views/wechat/menu/add.vue":"5b79","./views/wechat/menu/index.vue":"1400","./views/wechat/reply/default/add.vue":"c058","./views/wechat/reply/default/index.vue":"fdf2","./views/wechat/reply/default/material_detail.vue":"71fb","./views/wechat/reply/default/selectData.vue":"455b","./views/wechat/reply/default/showData.vue":"bf20","./views/wechat/reply/follow/add.vue":"0da4","./views/wechat/reply/follow/index.vue":"3508","./views/wechat/reply/follow/material_detail.vue":"b99f","./views/wechat/reply/follow/selectData.vue":"3cf5","./views/wechat/reply/follow/showData.vue":"805c","./views/wechat/reply/index.vue":"7627","./views/wechat/reply/keywords/add.vue":"0b9b","./views/wechat/reply/keywords/index.vue":"a0fa","./views/wechat/reply/keywords/show_data.vue":"e188"};function a(e){var t=r(e);return o(t)}function r(e){if(!o.o(n,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return n[e]}a.keys=function(){return Object.keys(n)},a.resolve=r,e.exports=a,a.id="79d7"},"7a86":function(e,t,o){"use strict";o.r(t);var n=o("f2bf");const a={class:"manage-container"},r=["src"];function i(e,t,o,i,l,s){const c=Object(n["resolveComponent"])("el-input"),d=Object(n["resolveComponent"])("el-form-item"),u=Object(n["resolveComponent"])("el-option"),m=Object(n["resolveComponent"])("el-select"),h=Object(n["resolveComponent"])("el-form"),p=Object(n["resolveComponent"])("el-button"),b=Object(n["resolveComponent"])("vab-query-form"),g=Object(n["resolveComponent"])("el-dialog"),f=Object(n["resolveComponent"])("parameter-show");return Object(n["openBlock"])(),Object(n["createElementBlock"])(n["Fragment"],null,[Object(n["createVNode"])(g,{modelValue:l.dialogFormVisible,"onUpdate:modelValue":t[15]||(t[15]=e=>l.dialogFormVisible=e),title:l.title,width:"500px",onClose:s.close},{default:Object(n["withCtx"])(()=>[Object(n["createElementVNode"])("div",a,[Object(n["createVNode"])(h,{ref:"form",model:l.form,"label-width":"100px","label-position":"left"},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(d,{label:e.$t("sensor.cgqmc")},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(c,{modelValue:l.form.name,"onUpdate:modelValue":t[0]||(t[0]=e=>l.form.name=e),placeholder:e.$t("sensor.qsrcgqmc")},null,8,["modelValue","placeholder"])]),_:1},8,["label"]),Object(n["createVNode"])(d,{label:e.$t("sensor.cgqtp")},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(m,{ref:"select",modelValue:l.form.img,"onUpdate:modelValue":t[1]||(t[1]=e=>l.form.img=e),style:{width:"100%"},placeholder:e.$t("defalult.qxz"),onChange:s.changeSelection},{default:Object(n["withCtx"])(()=>[(Object(n["openBlock"])(!0),Object(n["createElementBlock"])(n["Fragment"],null,Object(n["renderList"])(l.iconData,e=>(Object(n["openBlock"])(),Object(n["createBlock"])(u,{key:e.icon,label:e.name,value:e.icon},{default:Object(n["withCtx"])(()=>[Object(n["createElementVNode"])("img",{src:l.fileUrl+e.icon,style:{width:"50px",height:"50px"}},null,8,r)]),_:2},1032,["label","value"]))),128))]),_:1},8,["modelValue","placeholder","onChange"])]),_:1},8,["label"]),Object(n["createVNode"])(d,{label:e.$t("defalult.px")},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(c,{modelValue:l.form.sort,"onUpdate:modelValue":t[2]||(t[2]=e=>l.form.sort=e),placeholder:"1"},null,8,["modelValue"])]),_:1},8,["label"]),Object(n["createVNode"])(d,{label:e.$t("sensor.dzh")},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(c,{modelValue:l.form.addressId,"onUpdate:modelValue":t[3]||(t[3]=e=>l.form.addressId=e),placeholder:e.$t("sensor.srdzj")},null,8,["modelValue","placeholder"])]),_:1},8,["label"]),Object(n["createVNode"])(d,{label:e.$t("sensor.jcqh")},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(c,{modelValue:l.form.offset,"onUpdate:modelValue":t[4]||(t[4]=e=>l.form.offset=e),placeholder:e.$t("sensor.jcqh")},null,8,["modelValue","placeholder"])]),_:1},8,["label"]),Object(n["createVNode"])(d,{label:e.$t("sensor.sjjd")},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(m,{modelValue:l.form.accuracy,"onUpdate:modelValue":t[5]||(t[5]=e=>l.form.accuracy=e),placeholder:e.$t("sensor.qsrsjjd")},{default:Object(n["withCtx"])(()=>[(Object(n["openBlock"])(!0),Object(n["createElementBlock"])(n["Fragment"],null,Object(n["renderList"])(l.accuracy,e=>(Object(n["openBlock"])(),Object(n["createBlock"])(u,{key:e,label:e,value:e},null,8,["label","value"]))),128))]),_:1},8,["modelValue","placeholder"])]),_:1},8,["label"]),l.isNumber?(Object(n["openBlock"])(),Object(n["createBlock"])(d,{key:0,label:e.$t("sensor.sxmrz")},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(c,{modelValue:l.data.value,"onUpdate:modelValue":t[6]||(t[6]=e=>l.data.value=e),placeholder:"0"},null,8,["modelValue"])]),_:1},8,["label"])):Object(n["createCommentVNode"])("",!0),l.isNumber?(Object(n["openBlock"])(),Object(n["createBlock"])(d,{key:1,label:e.$t("sensor.sxdaw")},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(c,{modelValue:l.data.unit,"onUpdate:modelValue":t[7]||(t[7]=e=>l.data.unit=e),placeholder:"1"},null,8,["modelValue"])]),_:1},8,["label"])):Object(n["createCommentVNode"])("",!0),l.isNumber?(Object(n["openBlock"])(),Object(n["createBlock"])(d,{key:2,label:e.$t("sensor.csbz")},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(c,{modelValue:l.data.remark,"onUpdate:modelValue":t[8]||(t[8]=e=>l.data.remark=e),placeholder:"1"},null,8,["modelValue"])]),_:1},8,["label"])):Object(n["createCommentVNode"])("",!0),l.isConfig?(Object(n["openBlock"])(),Object(n["createBlock"])(d,{key:3,label:e.$t("sensor.cgdlx")},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(m,{modelValue:l.data.type,"onUpdate:modelValue":t[9]||(t[9]=e=>l.data.type=e),placeholder:e.$t("sensor.qsrcgdlx")},{default:Object(n["withCtx"])(()=>[(Object(n["openBlock"])(!0),Object(n["createElementBlock"])(n["Fragment"],null,Object(n["renderList"])(l.typeData,e=>(Object(n["openBlock"])(),Object(n["createBlock"])(u,{key:e.dataCode,label:e.dataValue,value:e.dataCode},null,8,["label","value"]))),128))]),_:1},8,["modelValue","placeholder"])]),_:1},8,["label"])):Object(n["createCommentVNode"])("",!0),Object(n["createVNode"])(d,{label:e.$t("sensor.cgqdw")},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(m,{modelValue:l.form.unit,"onUpdate:modelValue":t[10]||(t[10]=e=>l.form.unit=e),placeholder:e.$t("sensor.qxzcgqdw")},{default:Object(n["withCtx"])(()=>[(Object(n["openBlock"])(!0),Object(n["createElementBlock"])(n["Fragment"],null,Object(n["renderList"])(l.unitData,e=>(Object(n["openBlock"])(),Object(n["createBlock"])(u,{key:e.dataCode,label:e.dataValue,value:e.dataCode},null,8,["label","value"]))),128))]),_:1},8,["modelValue","placeholder"])]),_:1},8,["label"]),Object(n["createVNode"])(d,{label:e.$t("sensor.dxcx")},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(m,{modelValue:l.form.readWrite,"onUpdate:modelValue":t[11]||(t[11]=e=>l.form.readWrite=e),placeholder:e.$t("sensor.qxzdxqx")},{default:Object(n["withCtx"])(()=>[(Object(n["openBlock"])(!0),Object(n["createElementBlock"])(n["Fragment"],null,Object(n["renderList"])(l.writeData,e=>(Object(n["openBlock"])(),Object(n["createBlock"])(u,{key:e.dataCode,label:e.dataValue,value:e.dataCode},null,8,["label","value"]))),128))]),_:1},8,["modelValue","placeholder"])]),_:1},8,["label"]),Object(n["createVNode"])(d,{label:e.$t("sensor.dtxs")},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(m,{modelValue:l.form.homeShowFlag,"onUpdate:modelValue":t[12]||(t[12]=e=>l.form.homeShowFlag=e),placeholder:e.$t("sensor.sfdtxs")},{default:Object(n["withCtx"])(()=>[(Object(n["openBlock"])(!0),Object(n["createElementBlock"])(n["Fragment"],null,Object(n["renderList"])(l.homeShowFlagData,e=>(Object(n["openBlock"])(),Object(n["createBlock"])(u,{key:e.value,label:e.label,value:e.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue","placeholder"])]),_:1},8,["label"]),Object(n["createVNode"])(d,{label:e.$t("sensor.dwzh")},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(m,{modelValue:l.form.convertFlag,"onUpdate:modelValue":t[13]||(t[13]=e=>l.form.convertFlag=e),placeholder:e.$t("sensor.sfxygjddwzh")},{default:Object(n["withCtx"])(()=>[(Object(n["openBlock"])(!0),Object(n["createElementBlock"])(n["Fragment"],null,Object(n["renderList"])(l.convertFlagData,e=>(Object(n["openBlock"])(),Object(n["createBlock"])(u,{key:e.value,label:e.label,value:e.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue","placeholder"])]),_:1},8,["label"]),Object(n["createVNode"])(d,{label:e.$t("sensor.sjgs")},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(m,{modelValue:l.form.dataFormat,"onUpdate:modelValue":t[14]||(t[14]=e=>l.form.dataFormat=e),placeholder:e.$t("sensor.qxzsjgs")},{default:Object(n["withCtx"])(()=>[(Object(n["openBlock"])(!0),Object(n["createElementBlock"])(n["Fragment"],null,Object(n["renderList"])(l.formatData,e=>(Object(n["openBlock"])(),Object(n["createBlock"])(u,{key:e.dataCode,label:e.dataValue,value:e.dataCode},null,8,["label","value"]))),128))]),_:1},8,["modelValue","placeholder"])]),_:1},8,["label"])]),_:1},8,["model"]),Object(n["createVNode"])(b,null,{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(p,{type:"primary",onClick:s.save},{default:Object(n["withCtx"])(()=>[Object(n["createTextVNode"])(Object(n["toDisplayString"])(e.$t("defalult.bc")),1)]),_:1},8,["onClick"]),Object(n["createVNode"])(p,{type:"primary",plain:"",onClick:s.close},{default:Object(n["withCtx"])(()=>[Object(n["createTextVNode"])(Object(n["toDisplayString"])(e.$t("defalult.fh")),1)]),_:1},8,["onClick"])]),_:1})])]),_:1},8,["modelValue","title","onClose"]),Object(n["createVNode"])(f,{ref:"parameter",onGetParameter:s.getParameter},null,8,["onGetParameter"])],64)}var l=o("669c"),s=o("49de"),c=o("bdc1"),d=o("f121"),u={name:"Sensor",components:{parameterShow:c["default"]},data(){return{attrData:[],typeData:[],unitData:[],strategyData:[],codeData:[],fileUrl:d["baseURL"]+"/static/img/",formatData:[],writeData:[],homeShowFlagData:[{label:"显示",value:1},{label:"不显示",value:0}],convertFlagData:[{label:"是",value:1},{label:"否",value:0}],accuracy:[1,2,3,4,5,6,7,8,9],form:{id:"",name:"",projectId:"",deviceId:"",addressId:"",offset:"",storeStrategy:"",functionCode:"",dataFormat:"",sort:"",readWrite:"",homeShowFlag:"",img:"",convertFlag:"",unit:""},data:{value:"",unit:"",remark:"",type:""},config:"",isNumber:!1,isConfig:!1,dialogFormVisible:!1,title:"",diffData:{},iconData:[]}},created(){},methods:{changeSelection(e){for(var t in this.iconData){const o=this.iconData[t];o.icon==e&&this.$refs["select"].$el.children[0].children[0].setAttribute("style","background:url("+this.fileUrl+o.icon+") no-repeat;color:#fff;text-indent: -9999px;background-position: center center")}},async getIconData(){const{data:e}=await Object(s["getList"])({page:1,size:100,name:""});this.iconData=e.items},showEdit(e,t){t?(this.title="编辑传感器",this.assignment(e)):(this.title="添加传感器",this.getDeviceData(e)),this.getDictData(),this.getIconData(),this.dialogFormVisible=!0},assignment(e){const t=Object.assign({},e);void 0!=t.attribute&&(this.form.attribute=t.attribute.dataCode),this.form.id=t.id,this.form.name=t.name,this.form.img=t.img,this.form.addressId=t.addressId,this.form.offset=t.offset,this.form.accuracy=t.accuracy,void 0!=t.unit&&(this.form.unit=t.unit.dataCode),void 0!=t.dataFormat&&(this.form.dataFormat=t.dataFormat.dataCode),void 0!=t.readWrite&&(this.form.readWrite=t.readWrite.dataCode),this.form.transferId=t.transferId,this.form.homeShowFlag=isNaN(Number(t.homeShowFlag))?"":Number(t.homeShowFlag),this.form.convertFlag=isNaN(Number(t.convertFlag))?"":Number(t.convertFlag),this.form.sort=t.sort},getType(e){0==e?(this.isNumber=!1,this.isConfig=!0):(this.isNumber=!0,this.isConfig=!1),this.data.unit="",this.data.value="",this.data.remark="",this.data.type=""},parameter(){this.$refs["parameter"].showEdit()},async getDeviceData(e){this.form.projectId=sessionStorage.getItem("projectId"),this.form.deviceId=e},getParameter(e){this.config=JSON.stringify(e),this.form.functionCode=e.functionCode,this.form.dataFormat=e.dataFormat},async getDictData(){const{data:e}=await Object(l["getDictData"])();this.attrData=e.sensorAttribute,this.typeData=e.sensorType,this.unitData=e.sensorUnit,this.strategyData=e.storeStrategy,this.codeData=e.functionCode,this.formatData=e.dataFormat,this.writeData=e.sensorReadWrite},close(){this.$refs["form"].resetFields(),this.form=this.$options.data().form,this.dialogFormVisible=!1,this.$emit("fetch-data")},save(){this.$refs["form"].validate(async e=>{if(!e)return!1;if(this.form.attributeParams=JSON.stringify(this.data),this.form.id){const{msg:e}=await Object(l["doEdit"])(this.form);this.$notify({title:e,type:"success"})}else{delete this.form.id;const{msg:e}=await Object(l["doAdd"])(this.form);this.$notify({title:e,type:"success"})}this.$refs["form"].resetFields(),this.$parent.fetchData(),this.dialogFormVisible=!1})}}},m=(o("4f61"),o("d959")),h=o.n(m);const p=h()(u,[["render",i],["__scopeId","data-v-15db829c"]]);t["default"]=p},"7ad9":function(e,t,o){"use strict";o.r(t);var n=o("f2bf");const a={class:"manage-container"},r={class:"manage-button"};function i(e,t,o,i,l,s){const c=Object(n["resolveComponent"])("el-button"),d=Object(n["resolveComponent"])("el-table-column"),u=Object(n["resolveComponent"])("el-switch"),m=Object(n["resolveComponent"])("el-table"),h=Object(n["resolveComponent"])("el-pagination"),p=Object(n["resolveComponent"])("role-edit"),b=Object(n["resolveComponent"])("role-grant");return Object(n["openBlock"])(),Object(n["createElementBlock"])("div",a,[Object(n["createElementVNode"])("div",r,[Object(n["createVNode"])(c,{type:"primary",size:"small",onClick:s.handleAdd},{default:Object(n["withCtx"])(()=>t[0]||(t[0]=[Object(n["createTextVNode"])(" 添加角色 ")])),_:1},8,["onClick"])]),Object(n["createVNode"])(m,{data:l.roleData,border:"",stripe:"",style:{width:"100%"}},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(d,{prop:"id",label:"ID",width:"60",align:"center"}),Object(n["createVNode"])(d,{prop:"name",label:"角色名",width:"150",align:"center"}),Object(n["createVNode"])(d,{prop:"key",label:"key",width:"150",align:"center"}),Object(n["createVNode"])(d,{prop:"status",label:e.$t("dataEnquiry.zt"),align:"center",width:"120"},{default:Object(n["withCtx"])(e=>[Object(n["createVNode"])(u,{modelValue:e.row.status,"onUpdate:modelValue":t=>e.row.status=t,"active-value":"0","inactive-value":"1",onClick:t=>s.soreStatus(e.row.status,e.row.id)},null,8,["modelValue","onUpdate:modelValue","onClick"])]),_:1},8,["label"]),Object(n["createVNode"])(d,{prop:"createTime",label:e.$t("grouping.cjsj"),width:"220",align:"center"},null,8,["label"]),Object(n["createVNode"])(d,{prop:"updateTime",label:e.$t("grouping.gxsj"),width:"220",align:"center"},null,8,["label"]),Object(n["createVNode"])(d,{fixed:"right",label:e.$t("defalult.cz"),align:"center"},{default:Object(n["withCtx"])(({row:o})=>[Object(n["createVNode"])(c,{type:"text",onClick:e=>s.handleEdit(o)},{default:Object(n["withCtx"])(()=>[Object(n["createTextVNode"])(Object(n["toDisplayString"])(e.$t("defalult.bj")),1)]),_:2},1032,["onClick"]),Object(n["createVNode"])(c,{type:"text",onClick:e=>s.handleDelete(o)},{default:Object(n["withCtx"])(()=>[Object(n["createTextVNode"])(Object(n["toDisplayString"])(e.$t("defalult.sc")),1)]),_:2},1032,["onClick"]),Object(n["createVNode"])(c,{type:"text",onClick:e=>s.handleauthorization(o)},{default:Object(n["withCtx"])(()=>t[1]||(t[1]=[Object(n["createTextVNode"])(" 角色授权 ")])),_:2},1032,["onClick"])]),_:1},8,["label"])]),_:1},8,["data"]),Object(n["createVNode"])(h,{background:l.background,"current-page":l.queryForm.page,layout:l.layout,"page-size":l.queryForm.size,total:l.total,style:{"text-align":"right"},onCurrentChange:s.handleCurrentChange,onSizeChange:s.handleSizeChange},null,8,["background","current-page","layout","page-size","total","onCurrentChange","onSizeChange"]),Object(n["createVNode"])(p,{ref:"edit"},null,512),Object(n["createVNode"])(b,{ref:"grant"},null,512)])}var l=o("cc5e"),s=o("695d"),c=o("e289"),d={name:"RoleIndex",components:{roleGrant:s["default"],roleEdit:c["default"]},data(){return{roleData:[],lazy:!0,activeName:"first",layout:"total, sizes, prev, pager, next, jumper",total:0,input:"",textarea:"",list:[],background:!0,listLoading:!0,elementLoadingText:"正在加载...",queryForm:{page:1,size:20,name:""}}},computed:{height(){return 500}},created(){this.fetchData()},methods:{roleIndex(){this.fetchData()},async soreStatus(e,t){const{code:o,msg:n}=await Object(l["doEdit"])({status:e,id:t});0==o?this.$notify({title:n,type:"success"}):this.$notify.error({title:n}),this.fetchData()},async fetchData(){this.listLoading=!0;const{data:e}=await Object(l["getList"])(this.queryForm);this.roleData=e.items,this.total=e.total,setTimeout(()=>{this.listLoading=!1},500)},handleAdd(){this.$refs["edit"].showEdit()},handleEdit(e){this.$refs["edit"].showEdit(e)},handleauthorization(e){this.$refs["grant"].roleGrant(e)},handleQuery(){this.queryForm.page=1,this.fetchData()},handleSizeChange(e){this.queryForm.size=e,this.fetchData()},handleCurrentChange(e){this.queryForm.page=e,this.fetchData()},handleDelete(e){const t=this;e.id&&this.$confirm("你确定要删除当前项吗?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(()=>{const{msg:o}=Object(l["doDelete"])({roleId:e.id});this.$message({type:"success",message:void 0==o?"删除成功":o}),setTimeout((function(){t.fetchData()}),1e3)}).catch(()=>{this.$message({type:"info",message:"已取消删除"})})}}},u=(o("57c5"),o("d959")),m=o.n(u);const h=m()(d,[["render",i],["__scopeId","data-v-38afcad8"]]);t["default"]=h},"7ca1":function(e,t){e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAJgAAACKCAMAAABhAnODAAABzlBMVEUAAAD8/f/////////////3+v7////4+/7////////9///3+v7////////////4+v7+///////6/P/+/v/+/v/////5+/7////3+f72+v7y9/7+///7/f/////////////3+v76/P/7/f/4/P/9///////o8vz3+/73+f73+v7////4+/7////////3+//3+/7////+/v/////+/v/////o8fz9/v/p8f3o8fz3+/7////r8/33+v74+v72+v70+P7////+///3+v72+v7t9P3w9v3x9/7////+///7/f/////////////////3+v7p8v3////p8vv4+//////5+//r8/z4+//p8vz////6/P/4+v/////5/P7////8/P7////6/P/2+//8/f/////8///8///////n8fz2+v7////p8vz2+f73+v7////u9f7r9P3z+P32+f7////2+f73+v3////////2+v3////4+//t9P31+v78/P/4+//4+/7t9P35+//////////o8fz////0+P7o8fzo8fzo8Pv////z9/3o8f3z9//////w9/7w9/73+v/////p8v35/P7o8f3o8P3////n8Pv2+f3z+P4909UsAAAAlnRSTlMA/fumA/3h+PTlC/sG/vrz29a8NRLv7+fmzMJOLBj26cS+VB8O/fvp39TNwsG/u6CagmdbQP759O7s3dzZ0tDLysjIwcG/u6h1OiEB8evi4t/X1tHQ0M3GxcS4r5WNiX17c0UpJBsJ+O7t6OTc2MzKvra1raeflpBtbVtNLxX01tLDura0tKqai4WCbWZhSz4yFu/jfHnJ+3wGAAAFOElEQVR42u3cB1MTQRjG8TXehZBC6CQhkEBCbyJdelVUQDoCKiBFQJqCgoC99/qyfFshCId4yS2X3cs6k98n+E9y7HMz2QGxNpV+M8+aXTg6nuw0Ik5Mt4/fn8fH2PKKxh7FxaNQmiwZtZuwvDv21TEn0p53YmylCgfS1wuRHqQlwfmxKEfEAT2+roc9MZp9o982iwutWIkt7yocGJpGzJnjNlazMYHaxgw4MiIgljzpD90RmESEewH+cg6x4t0omseEstJccNItxMh9jEVbrbu5uakmEQfUc70cZJxHTIzjYxJrmpoLm+2dMl+ryZ0L8nTJiIF22QPU1GlPGy7Me5olHh6nsXrwK7UdUbc9r/BQ5eQNDxe6065CIB23EWVCISZg0oMCfQqi6z0mMQCKer2IpgkRE8gBAgVmRM9UFSZg7QASF6/Q26AmTKIPZDE8aB9iEnYgdBZRko5J2Axah01aMQExBjQOm67FJK6D1mFFmESNTuuwj2QvX9dA47CtCMIvUuuwomyR6KTQPGynrLrl1XBt4M8tyxWCsAOVS21t9jvYj0YIRZgks7qlzd2J/5EHIQyTVC62NvdEYEm2gY8wn8wnDkddoq/L1AschR2YW3TU22KBvzCfcl7DzoTDwmHhsHBYOCwc9r+GpUYeOitwFXbMOV7DoJjXMDjPa1hGOqdhUF7KaRgkbHEaBkmXOQ2D6G1Ow6DByGkYPOc1TBcOC4eFwwi1L1VwGDb9KRdA97S1f4arsMkbs0fvwgOt3Zl8hAmb9yzwl4Sm1u6yUIfFX7oAclzuluoQhn1dSwX/9I6WrlCEmUsaQVH0csuctmGedy4gk9HTNlipVdjEiA5OI6qvbbCCeZh3fQFUMKxYmIY5HxhAjegGAHZhQnoBqKIfsgC7sJRbkaBK0jMd0OJCJ5VejAJVEvJTgRbDO+/JT6tID6oYCq4CLVGj39BJq1gciD19W1R+B9CiW/Ogf3zG+8S607VlDEUCNSNyN92MR5dZxb7Ya0Co4QJQ8zwOybmJjxHriNpyF4CaxlIka8uET8iJVfg0YnqBmphkJE9owhKFNumYp+VCiYD82MB+9MRGgwx9owVoSVo3I3+mrNi/mrSTba4hHdCSMGYMfD9ZIt/G6Ji/GY8CSMbK7v5pM+RTPOYfpKBAjJ3Yh6At6lkH0JKxdlnxOiQpUxJQM+JECuJMmNQPoKUgDikRBjApK1DSMEF0M5/YLFARk44IeKyYVBbQoP8kIBKvMLFyCJ5r3Ux6EVjLDyzhlhGR8drIjwoIVqp0zCsaxcQSgz7mpxCxdlGrLsvZSUROqNXgyZfOU3KXMLEqCu+n5FaqMCHRAqolnRfQKe3MLC3bGD9hhmKjut8fy/qXs7GSCFBJdy4lmJ+Su1vvsgl7eTvoWwHVjhzqbxW5pXQueMw56kQsKwNUuFZyhd6VmO+OOhOdJ3/2kpny7aaKRXtE0EdF1I14Jpe6++utwTz5louXmd0HK3tSn6i2qyCO8UW16nrfMJxRMT+MwiRd9bbHKuaHYZhk97Tzw1+Yb344DNufHw7D9ueHwzD93vxwGJawPz/8hfnmh78w3/xwGJbvmx/uwg7nh7MwaX64CpPmh4EKFWHS/DBkfPQiU1XYPSdiLf7DYBlxmDQ/mvD86icLk+ZHM863XYph0vxo6sqXN5UKYdL8aMz8+XWFTJja+WH9Z7pLNj/sbX8YlAnzzU/IeX52Hws7mh8ufH3bdSzMUMzN/85DSPjzZ7rrmx++mDdfz+zs7s0Ph7yO9yjsyG/PhVsZ2R0KAAAAAABJRU5ErkJggg=="},"7cf8":function(e,t,o){"use strict";o.r(t),o.d(t,"getSiteList",(function(){return r})),o.d(t,"getDeviceInfo",(function(){return i})),o.d(t,"getDeviceList",(function(){return l})),o.d(t,"getDeviceInfos",(function(){return s})),o.d(t,"getLiveAddr",(function(){return c})),o.d(t,"getWaterRate",(function(){return d})),o.d(t,"getCaptureImg",(function(){return u})),o.d(t,"deviceCode",(function(){return m})),o.d(t,"sensorsOfWrite",(function(){return h})),o.d(t,"writeData",(function(){return p}));var n=o("b775"),a=o("2ef0");const r=()=>Object(n["default"])({url:"/map/devices?projectId="+sessionStorage.getItem("projectId"),method:"get"}).then(e=>((null===e||void 0===e?void 0:e.data)||[]).map(e=>({...e,label:e.townName,id:Object(a["uniqueId"])("mo"),iconType:"folder",type:"town",children:(e.communities||[]).map(t=>({...e,...t,label:t.communityName,id:Object(a["uniqueId"])("co"),ids:t.id,iconType:"folder",type:"community",children:(t.devices||[]).map(o=>({...e,...t,...o,iconType:"device",type:"device",label:o.name,id:Object(a["uniqueId"])("de"),ids:o.id}))}))})));function i(e){return Object(n["default"])({url:"/map/deviceInfo?deviceCode="+e.deviceCode,method:"get",data:e})}function l(e){return Object(n["default"])({url:"/device/list?projectId="+e.projectId,method:"get",data:e})}function s(e){return Object(n["default"])({url:"/device/deviceInfo?deviceCode="+e.deviceCode,method:"get",data:e})}function c(e){return Object(n["default"])({url:"/device/liveAddr?deviceCode="+e.deviceCode,method:"get",data:e})}function d(e){return Object(n["default"])({url:"/device/waterRate?deviceCode="+e.deviceCode,method:"get",data:e})}function u(e){return Object(n["default"])({url:"/device/captureImg?deviceCode="+e.deviceCode+"&page="+e.page,method:"get",data:e})}function m(e){return Object(n["default"])({url:"/device/sensors?deviceCode="+e.deviceCode+"&page="+e.page+"&size="+e.size,method:"get",data:e})}function h(e){return Object(n["default"])({url:"/device/sensorsOfWrite?deviceCode="+e.deviceCode+"&page="+e.page+"&size="+e.size,method:"get",data:e})}function p(e){return Object(n["default"])({url:"/deviceSensor/write?deviceCode="+e.deviceCode+"&dataKey="+e.dataKey+"&dataValue="+e.dataValue,method:"post",data:e})}},"7e1d":function(e,t,o){"use strict";o("cd1a")},"7ee6":function(e,t,o){"use strict";o.r(t);var n=o("f2bf");const a={class:"manage-container"};function r(e,t,o,r,i,l){const s=Object(n["resolveComponent"])("el-input"),c=Object(n["resolveComponent"])("el-option"),d=Object(n["resolveComponent"])("el-select"),u=Object(n["resolveComponent"])("el-button"),m=Object(n["resolveComponent"])("vab-query-form"),h=Object(n["resolveComponent"])("el-table-column"),p=Object(n["resolveComponent"])("el-table"),b=Object(n["resolveComponent"])("vab-query-form-left-panel"),g=Object(n["resolveComponent"])("el-pagination"),f=Object(n["resolveComponent"])("vab-query-form-right-panel"),v=Object(n["resolveComponent"])("el-tab-pane"),w=Object(n["resolveComponent"])("el-date-picker"),k=Object(n["resolveComponent"])("el-tabs");return Object(n["openBlock"])(),Object(n["createElementBlock"])("div",a,[Object(n["createVNode"])(k,{modelValue:i.activeName,"onUpdate:modelValue":t[11]||(t[11]=e=>i.activeName=e),onTabClick:l.handleClick},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(v,{label:"数据字典",name:"first"},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(m,null,{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(s,{modelValue:i.input,"onUpdate:modelValue":t[0]||(t[0]=e=>i.input=e),placeholder:"名称查询"},null,8,["modelValue"]),Object(n["createVNode"])(s,{modelValue:i.input,"onUpdate:modelValue":t[1]||(t[1]=e=>i.input=e),placeholder:"分类名查询"},null,8,["modelValue"]),Object(n["createVNode"])(s,{modelValue:i.input,"onUpdate:modelValue":t[2]||(t[2]=e=>i.input=e),placeholder:"CODE查询"},null,8,["modelValue"]),Object(n["createVNode"])(d,{modelValue:i.value,"onUpdate:modelValue":t[3]||(t[3]=e=>i.value=e),placeholder:"请选择"},{default:Object(n["withCtx"])(()=>[(Object(n["openBlock"])(!0),Object(n["createElementBlock"])(n["Fragment"],null,Object(n["renderList"])(i.options,e=>(Object(n["openBlock"])(),Object(n["createBlock"])(c,{key:e.value,label:e.label,value:e.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue"]),Object(n["createVNode"])(u,{type:"primary"},{default:Object(n["withCtx"])(()=>[Object(n["createTextVNode"])(Object(n["toDisplayString"])(e.$t("defalult.cx")),1)]),_:1}),Object(n["createVNode"])(u,{type:"primary",onClick:e.handleAdd},{default:Object(n["withCtx"])(()=>t[12]||(t[12]=[Object(n["createTextVNode"])("添加数据字典")])),_:1},8,["onClick"])]),_:1}),Object(n["createVNode"])(p,{data:i.tableData,border:"",stripe:"",style:{width:"100%"}},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(h,{prop:"id",label:e.$t("trigger.xh"),width:"80",align:"center"},null,8,["label"]),Object(n["createVNode"])(h,{prop:"name",label:e.$t("trigger.mc"),width:"180",align:"center"},null,8,["label"]),Object(n["createVNode"])(h,{prop:"sort",label:"分类",width:"180",align:"center"}),Object(n["createVNode"])(h,{prop:"code",label:"CODE",width:"120",align:"center"}),Object(n["createVNode"])(h,{prop:"parent",label:"父类",width:"180",align:"center"}),Object(n["createVNode"])(h,{prop:"parentcode",label:"父CODE",width:"180",align:"center"}),Object(n["createVNode"])(h,{fixed:"right",label:e.$t("defalult.cz"),align:"center"},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(u,{type:"text",size:"small",onClick:t[4]||(t[4]=t=>l.handleClick(e.scope.row))},{default:Object(n["withCtx"])(()=>[Object(n["createTextVNode"])(Object(n["toDisplayString"])(e.$t("defalult.bj")),1)]),_:1}),Object(n["createVNode"])(u,{type:"text",size:"small"},{default:Object(n["withCtx"])(()=>[Object(n["createTextVNode"])(Object(n["toDisplayString"])(e.$t("defalult.sc")),1)]),_:1}),Object(n["createVNode"])(u,{type:"text",size:"small"},{default:Object(n["withCtx"])(()=>t[13]||(t[13]=[Object(n["createTextVNode"])("添加子分类")])),_:1})]),_:1},8,["label"])]),_:1},8,["data"]),Object(n["createVNode"])(m,null,{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(b),Object(n["createVNode"])(f,null,{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(g,{"current-page":i.currentPage4,"page-sizes":[100,200,300,400],"page-size":100,layout:"total, sizes, prev, pager, next, jumper",total:400,onSizeChange:l.handleSizeChange,onCurrentChange:l.handleCurrentChange},null,8,["current-page","onSizeChange","onCurrentChange"])]),_:1})]),_:1})]),_:1}),Object(n["createVNode"])(v,{label:"LPM管理",name:"second"},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(m,null,{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(s,{modelValue:i.input,"onUpdate:modelValue":t[5]||(t[5]=e=>i.input=e),placeholder:"名称查询"},null,8,["modelValue"]),Object(n["createVNode"])(u,{type:"primary"},{default:Object(n["withCtx"])(()=>[Object(n["createTextVNode"])(Object(n["toDisplayString"])(e.$t("defalult.cx")),1)]),_:1}),Object(n["createVNode"])(u,{type:"primary",onClick:e.handleAdd},{default:Object(n["withCtx"])(()=>t[14]||(t[14]=[Object(n["createTextVNode"])("添加LPM")])),_:1},8,["onClick"])]),_:1}),Object(n["createVNode"])(p,{data:i.tableData2,border:"",stripe:"",style:{width:"100%"}},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(h,{prop:"id",label:e.$t("trigger.xh"),width:"80",align:"center"},null,8,["label"]),Object(n["createVNode"])(h,{prop:"name",label:e.$t("trigger.mc"),width:"180",align:"center"},null,8,["label"]),Object(n["createVNode"])(h,{prop:"ip",label:"IP",width:"180",align:"center"}),Object(n["createVNode"])(h,{prop:"port",label:"PORT",width:"120",align:"center"}),Object(n["createVNode"])(h,{prop:"key",label:"LPM-KEY",width:"380",align:"center"}),Object(n["createVNode"])(h,{fixed:"right",label:e.$t("defalult.cz"),align:"center"},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(u,{type:"text",size:"small",onClick:t[6]||(t[6]=t=>l.handleClick(e.scope.row))},{default:Object(n["withCtx"])(()=>[Object(n["createTextVNode"])(Object(n["toDisplayString"])(e.$t("defalult.bj")),1)]),_:1}),Object(n["createVNode"])(u,{type:"text",size:"small"},{default:Object(n["withCtx"])(()=>[Object(n["createTextVNode"])(Object(n["toDisplayString"])(e.$t("defalult.sc")),1)]),_:1})]),_:1},8,["label"])]),_:1},8,["data"]),Object(n["createVNode"])(m,null,{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(b),Object(n["createVNode"])(f,null,{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(g,{"current-page":i.currentPage4,"page-sizes":[100,200,300,400],"page-size":100,layout:"total, sizes, prev, pager, next, jumper",total:400,onSizeChange:l.handleSizeChange,onCurrentChange:l.handleCurrentChange},null,8,["current-page","onSizeChange","onCurrentChange"])]),_:1})]),_:1})]),_:1}),Object(n["createVNode"])(v,{label:"系统参数",name:"third"},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(m,null,{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(s,{modelValue:i.input,"onUpdate:modelValue":t[7]||(t[7]=e=>i.input=e),placeholder:"名称查询"},null,8,["modelValue"]),Object(n["createVNode"])(u,{type:"primary"},{default:Object(n["withCtx"])(()=>[Object(n["createTextVNode"])(Object(n["toDisplayString"])(e.$t("defalult.cx")),1)]),_:1})]),_:1}),Object(n["createVNode"])(p,{data:i.tableData3,border:"",stripe:"",style:{width:"100%"}},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(h,{prop:"id",label:e.$t("trigger.xh"),width:"80",align:"center"},null,8,["label"]),Object(n["createVNode"])(h,{prop:"key",label:"名称KEY",width:"180",align:"center"}),Object(n["createVNode"])(h,{prop:"price",label:"值",width:"180",align:"center"}),Object(n["createVNode"])(h,{prop:"remarks",label:e.$t("alarm.bz"),width:"380",align:"center"},null,8,["label"]),Object(n["createVNode"])(h,{fixed:"right",label:e.$t("defalult.cz"),align:"center"},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(u,{type:"text",size:"small",onClick:t[8]||(t[8]=t=>l.handleClick(e.scope.row))},{default:Object(n["withCtx"])(()=>[Object(n["createTextVNode"])(Object(n["toDisplayString"])(e.$t("defalult.bj")),1)]),_:1}),Object(n["createVNode"])(u,{type:"text",size:"small"},{default:Object(n["withCtx"])(()=>[Object(n["createTextVNode"])(Object(n["toDisplayString"])(e.$t("defalult.sc")),1)]),_:1})]),_:1},8,["label"])]),_:1},8,["data"]),Object(n["createVNode"])(m,null,{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(b),Object(n["createVNode"])(f,null,{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(g,{"current-page":i.currentPage4,"page-sizes":[100,200,300,400],"page-size":100,layout:"total, sizes, prev, pager, next, jumper",total:400,onSizeChange:l.handleSizeChange,onCurrentChange:l.handleCurrentChange},null,8,["current-page","onSizeChange","onCurrentChange"])]),_:1})]),_:1})]),_:1}),Object(n["createVNode"])(v,{label:"日志管理",name:"fourth"},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(m,null,{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(d,{modelValue:i.value1,"onUpdate:modelValue":t[9]||(t[9]=e=>i.value1=e),placeholder:"请选择"},{default:Object(n["withCtx"])(()=>[(Object(n["openBlock"])(!0),Object(n["createElementBlock"])(n["Fragment"],null,Object(n["renderList"])(i.options,e=>(Object(n["openBlock"])(),Object(n["createBlock"])(c,{key:e.value,label:e.label,value:e.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue"]),Object(n["createVNode"])(w,{modelValue:i.value1,"onUpdate:modelValue":t[10]||(t[10]=e=>i.value1=e),type:"date",placeholder:e.$t("defalult.xzrq")},null,8,["modelValue","placeholder"]),Object(n["createVNode"])(u,{type:"primary"},{default:Object(n["withCtx"])(()=>[Object(n["createTextVNode"])(Object(n["toDisplayString"])(e.$t("defalult.cx")),1)]),_:1})]),_:1}),Object(n["createVNode"])(p,{data:i.tableData4,border:"",stripe:"",style:{width:"100%"}},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(h,{prop:"ip",label:"IP",width:"140",align:"center"}),Object(n["createVNode"])(h,{prop:"id",label:"用户ID",width:"140",align:"center"}),Object(n["createVNode"])(h,{prop:"date",label:"操作时间11111",width:"200",align:"center"}),Object(n["createVNode"])(h,{prop:"source",label:"请求来源",width:"140",align:"center"}),Object(n["createVNode"])(h,{prop:"module",label:"所属模块",width:"140",align:"center"}),Object(n["createVNode"])(h,{prop:"name",label:e.$t("trigger.mc"),width:"140",align:"center"},null,8,["label"]),Object(n["createVNode"])(h,{prop:"remarks",label:e.$t("alarm.bz"),align:"center"},null,8,["label"])]),_:1},8,["data"]),Object(n["createVNode"])(m,null,{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(b),Object(n["createVNode"])(f,null,{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(g,{"current-page":i.currentPage4,"page-sizes":[100,200,300,400],"page-size":100,layout:"total, sizes, prev, pager, next, jumper",total:400,onSizeChange:l.handleSizeChange,onCurrentChange:l.handleCurrentChange},null,8,["current-page","onSizeChange","onCurrentChange"])]),_:1})]),_:1})]),_:1}),Object(n["createVNode"])(v,{label:"系统备份",name:"fifth"},{default:Object(n["withCtx"])(()=>t[15]||(t[15]=[Object(n["createTextVNode"])("角色管理")])),_:1})]),_:1},8,["modelValue","onTabClick"])])}var i={name:"Develop",data(){return{input:"",value:"",value1:"",activeName:"first",pickerOptions:{disabledDate(e){return e.getTime()>Date.now()},shortcuts:[{text:"今天",onClick(e){e.$emit("pick",new Date)}},{text:"昨天",onClick(e){const t=new Date;t.setTime(t.getTime()-864e5),e.$emit("pick",t)}},{text:"一周前",onClick(e){const t=new Date;t.setTime(t.getTime()-6048e5),e.$emit("pick",t)}}]},options:[{value:"选项1",label:"黄金糕"},{value:"选项2",label:"双皮奶"},{value:"选项3",label:"蚵仔煎"},{value:"选项4",label:"龙须面"},{value:"选项5",label:"北京烤鸭"}],tableData:[{id:"1",name:"摄像头类型",sort:"CAMERA_TYPE",code:"281",parent:"父类所在位置",parentcode:"CAMERA_TYPE"},{id:"2",name:"摄像头类型",sort:"CAMERA_TYPE",code:"281",parent:"父类所在位置",parentcode:"CAMERA_TYPE"},{id:"3",name:"摄像头类型",sort:"CAMERA_TYPE",code:"281",parent:"父类所在位置",parentcode:"CAMERA_TYPE"}],tableData2:[{id:"1",name:"摄像头类型",ip:"CAMERA_TYPE",port:"281",key:"父类所在位置"}],tableData3:[{id:"1",key:"摄像头类型",price:"CAMERA_TYPE",remarks:"281"}],tableData4:[{ip:"42.323.41.133",id:"2000243213",date:"2022-07-24 11:30:31",source:"PC端",module:"用户中心",name:"登录",remarks:"登录成功"}],currentPage1:5,currentPage2:5,currentPage3:5,currentPage4:4}},methods:{handleClick(e,t){console.log(e,t)},handleSizeChange(e){console.log(`每页 ${e} 条`)},handleCurrentChange(e){console.log("当前页: "+e)}}},l=(o("15ba"),o("d959")),s=o.n(l);const c=s()(i,[["render",r],["__scopeId","data-v-6e7d8292"]]);t["default"]=c},"7f12":function(e,t,o){"use strict";o("e147")},"804f":function(e,t,o){"use strict";o("9315")},"805c":function(e,t,o){"use strict";o.r(t);var n=o("f2bf");const a={key:0},r={key:1,style:{"text-align":"center"}},i=["src"],l={key:2,style:{"text-align":"center"}},s=["src"],c={key:3,style:{"text-align":"center"}},d=["src"],u={key:4,style:{"text-align":"center"}};function m(e,t,o,m,h,p){const b=Object(n["resolveComponent"])("el-dialog");return Object(n["openBlock"])(),Object(n["createBlock"])(b,{modelValue:h.dialogFormVisible,"onUpdate:modelValue":t[0]||(t[0]=e=>h.dialogFormVisible=e),title:e.title,width:"500px",onClose:e.close},{default:Object(n["withCtx"])(()=>[h.isText?(Object(n["openBlock"])(),Object(n["createElementBlock"])("div",a,[Object(n["createElementVNode"])("span",null,Object(n["toDisplayString"])(h.data.textContent),1)])):h.isImage?(Object(n["openBlock"])(),Object(n["createElementBlock"])("div",r,[Object(n["createElementVNode"])("img",{src:h.data.image,alt:"",style:{width:"90%"}},null,8,i)])):h.isVideo?(Object(n["openBlock"])(),Object(n["createElementBlock"])("div",l,[Object(n["createElementVNode"])("video",{src:h.data.video,style:{width:"90%"}},null,8,s)])):h.isVoice?(Object(n["openBlock"])(),Object(n["createElementBlock"])("div",c,[Object(n["createElementVNode"])("audio",{src:h.data.voice},null,8,d)])):h.isNews?(Object(n["openBlock"])(),Object(n["createElementBlock"])("div",u,[Object(n["createElementVNode"])("p",null,Object(n["toDisplayString"])(h.data.news),1)])):Object(n["createCommentVNode"])("",!0)]),_:1},8,["modelValue","title","onClose"])}var h={data(){return{isText:!1,isImage:!1,isVoice:!1,isVideo:!1,isNews:!1,dialogFormVisible:!1,data:[]}},methods:{showData(e){this.dialogFormVisible=!0,this.title="回复内容",this.data=e,"text"==e.msgType?this.isText=!0:"image"==e.materialType?this.isImage=!0:"voice"==e.materialType?this.isVoice=!0:"video"==e.materialType?this.isVideo=!0:"news"==e.materialType&&(this.isNews=!0)}}},p=o("d959"),b=o.n(p);const g=b()(h,[["render",m]]);t["default"]=g},8065:function(e,t,o){"use strict";o.r(t);var n=o("f2bf");const a={class:"dialog-footer"};function r(e,t,o,r,i,l){const s=Object(n["resolveComponent"])("el-input"),c=Object(n["resolveComponent"])("el-form-item"),d=Object(n["resolveComponent"])("el-button"),u=Object(n["resolveComponent"])("bd-map"),m=Object(n["resolveComponent"])("el-form"),h=Object(n["resolveComponent"])("el-dialog");return Object(n["openBlock"])(),Object(n["createBlock"])(h,{modelValue:i.dialogFormVisible,"onUpdate:modelValue":t[1]||(t[1]=e=>i.dialogFormVisible=e),title:i.title,width:"500px",onClose:l.close},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(m,{ref:"form",model:i.keyWords,"label-width":"80px"},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(c,{label:"位置信息"},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(s,{modelValue:i.keyWords,"onUpdate:modelValue":t[0]||(t[0]=e=>i.keyWords=e)},null,8,["modelValue"])]),_:1}),Object(n["createVNode"])(d,{icon:"el-icon-search",type:"primary",onClick:l.searchAddress},{default:Object(n["withCtx"])(()=>[Object(n["createTextVNode"])(Object(n["toDisplayString"])(e.$t("defalult.cx")),1)]),_:1},8,["onClick"]),Object(n["createVNode"])(d,{icon:"el-icon-del",type:"danger",onClick:l.delAddress,style:{float:"right"}},{default:Object(n["withCtx"])(()=>t[2]||(t[2]=[Object(n["createTextVNode"])(" 清空 ")])),_:1},8,["onClick"]),Object(n["createVNode"])(u,{ref:"maps",location:i.location,onTellFatherName:l.getLatAndLng},null,8,["location","onTellFatherName"]),Object(n["createElementVNode"])("div",a,[Object(n["createVNode"])(d,{onClick:l.close},{default:Object(n["withCtx"])(()=>t[3]||(t[3]=[Object(n["createTextVNode"])("取 消")])),_:1},8,["onClick"]),Object(n["createVNode"])(d,{type:"primary",onClick:l.define},{default:Object(n["withCtx"])(()=>t[4]||(t[4]=[Object(n["createTextVNode"])("确 定")])),_:1},8,["onClick"])])]),_:1},8,["model"])]),_:1},8,["modelValue","title","onClose"])}var i=o("a4e7a"),l={components:{bdMap:i["default"]},data(){return{location:"",coordinate:[],dialogFormVisible:!1,title:"选择位置",keyWords:""}},methods:{getLatAndLng(e){this.coordinate=e},searchAddress(){this.$refs["maps"].setPlace(this.keyWords)},delAddress(){this.keyWords="",this.$refs["maps"].removeMarker()},showMap(e){this.dialogFormVisible=!0,setTimeout(()=>{this.$refs["maps"].loadScript(e)},500)},close(){this.dialogFormVisible=!1},define(){this.$emit("setLatAndLng",this.coordinate),this.dialogFormVisible=!1}}},s=o("d959"),c=o.n(s);const d=c()(l,[["render",r]]);t["default"]=d},"80a7":function(e,t,o){"use strict";o("9809")},8106:function(e,t,o){"use strict";o("b84b")},8112:function(e,t,o){"use strict";o.r(t);var n=o("f2bf");const a={class:"manage-container"};function r(e,t,o,r,i,l){const s=Object(n["resolveComponent"])("online-index"),c=Object(n["resolveComponent"])("el-tab-pane"),d=Object(n["resolveComponent"])("equipment-index"),u=Object(n["resolveComponent"])("el-tabs");return Object(n["openBlock"])(),Object(n["createElementBlock"])("div",a,[Object(n["createVNode"])(u,{modelValue:i.activeName,"onUpdate:modelValue":t[0]||(t[0]=e=>i.activeName=e),onTabClick:l.handleClick},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(c,{label:e.$t("maintenance.zxbx"),name:"first"},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(s,{ref:"online"},null,512)]),_:1},8,["label"]),Object(n["createVNode"])(c,{label:e.$t("maintenance.sbgl"),name:"second"},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(d,{ref:"equipment"},null,512)]),_:1},8,["label"])]),_:1},8,["modelValue","onTabClick"])])}var i=o("71e6"),l=o("c2e0"),s={name:"Index",components:{onlineIndex:i["default"],equipmentIndex:l["default"]},data(){return{activeName:"first"}},computed:{height(){return 500}},mounted(){},methods:{handleClick(e){"first"==e.paneName?this.$refs["online"].showData():"second"==e.paneName&&this.$refs["equipment"].showData()}}},c=(o("1692"),o("d959")),d=o.n(c);const u=d()(s,[["render",r]]);t["default"]=u},"811e":function(e,t,o){},8124:function(e,t,o){"use strict";o("75e7")},"81cb":function(e,t,o){e.exports={"menu-color":"hsla(0,0%,27%,.95)","menu-color-active":"hsla(208,100%,55%,.95)","menu-background":"#fff","gallery-second-menu-background":"#fff"}},"826a":function(e,t,o){},8271:function(e,t,o){"use strict";o.r(t);var n=o("f2bf");const a={class:"manage-container"};function r(e,t,o,r,i,l){const s=Object(n["resolveComponent"])("site-month"),c=Object(n["resolveComponent"])("el-tab-pane"),d=Object(n["resolveComponent"])("water-month"),u=Object(n["resolveComponent"])("elec-month"),m=Object(n["resolveComponent"])("el-tabs");return Object(n["openBlock"])(),Object(n["createElementBlock"])("div",a,[Object(n["createVNode"])(m,{modelValue:i.activeName,"onUpdate:modelValue":t[0]||(t[0]=e=>i.activeName=e),onTabClick:l.handleClick},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(c,{label:e.$t("dfunction.zdyyxbb"),name:"first"},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(s,{ref:"site"},null,512)]),_:1},8,["label"]),Object(n["createVNode"])(c,{label:e.$t("dfunction.slbb"),name:"second"},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(d,{ref:"water"},null,512)]),_:1},8,["label"]),Object(n["createVNode"])(c,{label:e.$t("dfunction.dlyb"),name:"three"},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(u,{ref:"elec"},null,512)]),_:1},8,["label"])]),_:1},8,["modelValue","onTabClick"])])}var i=o("0f8a"),l=o("2c20"),s=o("2a0c"),c={name:"Index",components:{elecMonth:i["default"],waterMonth:l["default"],siteMonth:s["default"]},data(){return{activeName:"first"}},computed:{height(){return 500}},mounted(){},methods:{handleClick(e){"first"==e.paneName?this.$refs["site"].showData():"second"==e.paneName?this.$refs["water"].showData():"three"==e.paneName&&this.$refs["elec"].showData()}}},d=(o("f265"),o("660d"),o("d959")),u=o.n(d);const m=u()(c,[["render",r],["__scopeId","data-v-562d08c9"]]);t["default"]=m},"82ae":function(e,t,o){},8369:function(e,t,o){"use strict";o("e821")},8420:function(e,t,o){"use strict";o.r(t);var n=o("f2bf");const a={class:"manage-container"};function r(e,t,o,r,i,l){const s=Object(n["resolveComponent"])("el-option"),c=Object(n["resolveComponent"])("el-select"),d=Object(n["resolveComponent"])("el-form-item"),u=Object(n["resolveComponent"])("el-input"),m=Object(n["resolveComponent"])("el-button"),h=Object(n["resolveComponent"])("bd-map"),p=Object(n["resolveComponent"])("el-form"),b=Object(n["resolveComponent"])("vab-query-form"),g=Object(n["resolveComponent"])("el-dialog");return Object(n["openBlock"])(),Object(n["createBlock"])(g,{modelValue:i.dialogFormVisible,"onUpdate:modelValue":t[15]||(t[15]=e=>i.dialogFormVisible=e),title:i.title,width:"1500px",onClose:l.close},{default:Object(n["withCtx"])(()=>[Object(n["createElementVNode"])("div",a,[Object(n["createVNode"])(p,{ref:"form",model:i.form,rules:i.rules,"label-width":"80px","label-position":"left"},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(d,{label:"选择项目"},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(c,{modelValue:i.form.projectId,"onUpdate:modelValue":t[0]||(t[0]=e=>i.form.projectId=e),filterable:"",placeholder:"请选择项目",onChange:l.changeProject},{default:Object(n["withCtx"])(()=>[(Object(n["openBlock"])(!0),Object(n["createElementBlock"])(n["Fragment"],null,Object(n["renderList"])(i.projectData,e=>(Object(n["openBlock"])(),Object(n["createBlock"])(s,{key:e.id,label:e.name,value:e.id},null,8,["label","value"]))),128))]),_:1},8,["modelValue","onChange"])]),_:1}),Object(n["createVNode"])(d,{label:e.$t("dataEnquiry.zdmc")},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(u,{modelValue:i.form.name,"onUpdate:modelValue":t[1]||(t[1]=e=>i.form.name=e)},null,8,["modelValue"])]),_:1},8,["label"]),Object(n["createVNode"])(d,{label:"站点编号"},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(u,{modelValue:i.form.code,"onUpdate:modelValue":t[2]||(t[2]=e=>i.form.code=e)},null,8,["modelValue"])]),_:1}),Object(n["createVNode"])(d,{label:e.$t("dataEnquiry.txxy")},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(c,{modelValue:i.form.commPro,"onUpdate:modelValue":t[3]||(t[3]=e=>i.form.commPro=e),filterable:"",placeholder:"请选择通信协议"},{default:Object(n["withCtx"])(()=>[(Object(n["openBlock"])(!0),Object(n["createElementBlock"])(n["Fragment"],null,Object(n["renderList"])(i.commData,e=>(Object(n["openBlock"])(),Object(n["createBlock"])(s,{key:e.dataCode,label:e.dataValue,value:e.dataCode},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1},8,["label"]),Object(n["createVNode"])(d,{label:e.$t("device.lxys")},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(u,{modelValue:i.form.offlineDelay,"onUpdate:modelValue":t[4]||(t[4]=e=>i.form.offlineDelay=e)},null,8,["modelValue"])]),_:1},8,["label"]),Object(n["createVNode"])(d,{label:"乡镇街道"},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(c,{modelValue:i.townCode,"onUpdate:modelValue":t[5]||(t[5]=e=>i.townCode=e),filterable:"",placeholder:"请选择乡镇街道",onChange:l.changeTown},{default:Object(n["withCtx"])(()=>[(Object(n["openBlock"])(!0),Object(n["createElementBlock"])(n["Fragment"],null,Object(n["renderList"])(i.townsData,e=>(Object(n["openBlock"])(),Object(n["createBlock"])(s,{key:e.townCode,label:e.townName,value:{label:e.townName,value:e.townCode}},null,8,["label","value"]))),128))]),_:1},8,["modelValue","onChange"])]),_:1}),Object(n["createVNode"])(d,{label:e.$t("dataEnquiry.sq")},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(u,{modelValue:i.form.community,"onUpdate:modelValue":t[6]||(t[6]=e=>i.form.community=e)},null,8,["modelValue"])]),_:1},8,["label"]),Object(n["createVNode"])(d,{label:e.$t("dataEnquiry.sbgg")},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(u,{modelValue:i.form.specifications,"onUpdate:modelValue":t[7]||(t[7]=e=>i.form.specifications=e)},null,8,["modelValue"])]),_:1},8,["label"]),Object(n["createVNode"])(d,{label:e.$t("dataEnquiry.sblx")},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(c,{modelValue:i.form.type,"onUpdate:modelValue":t[8]||(t[8]=e=>i.form.type=e),filterable:"",placeholder:"请选择设备类型"},{default:Object(n["withCtx"])(()=>[(Object(n["openBlock"])(!0),Object(n["createElementBlock"])(n["Fragment"],null,Object(n["renderList"])(i.deviceTypeData,e=>(Object(n["openBlock"])(),Object(n["createBlock"])(s,{key:e.dataCode,label:e.dataValue,value:e.dataCode},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1},8,["label"]),Object(n["createVNode"])(d,{label:e.$t("dataEnquiry.fwyhs")},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(u,{modelValue:i.form.userNum,"onUpdate:modelValue":t[9]||(t[9]=e=>i.form.userNum=e),type:"number"},null,8,["modelValue"])]),_:1},8,["label"]),Object(n["createVNode"])(d,{label:"报警用户"},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(c,{modelValue:i.form.alarmUser,"onUpdate:modelValue":t[10]||(t[10]=e=>i.form.alarmUser=e),filterable:"",multiple:"",placeholder:"请选择报警用户"},{default:Object(n["withCtx"])(()=>[(Object(n["openBlock"])(!0),Object(n["createElementBlock"])(n["Fragment"],null,Object(n["renderList"])(i.alarmUserData,e=>(Object(n["openBlock"])(),Object(n["createBlock"])(s,{key:e.id,label:e.name,value:e.id},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),Object(n["createVNode"])(d,{label:"报警方式"},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(c,{modelValue:i.form.alarmType,"onUpdate:modelValue":t[11]||(t[11]=e=>i.form.alarmType=e),filterable:"",multiple:"",placeholder:"请选择报警方式"},{default:Object(n["withCtx"])(()=>[(Object(n["openBlock"])(!0),Object(n["createElementBlock"])(n["Fragment"],null,Object(n["renderList"])(i.alarmTypeData,e=>(Object(n["openBlock"])(),Object(n["createBlock"])(s,{key:e.dataCode,label:e.dataValue,value:e.dataCode},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),Object(n["createVNode"])(d,{label:e.$t("project.wd")},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(u,{modelValue:i.form.latitude,"onUpdate:modelValue":t[12]||(t[12]=e=>i.form.latitude=e)},null,8,["modelValue"])]),_:1},8,["label"]),Object(n["createVNode"])(d,{label:e.$t("project.jd")},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(u,{modelValue:i.form.longitude,"onUpdate:modelValue":t[13]||(t[13]=e=>i.form.longitude=e)},null,8,["modelValue"])]),_:1},8,["label"]),Object(n["createVNode"])(p,{ref:"form",model:i.keyWords,"label-width":"80px"},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(d,{label:"位置信息"},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(u,{modelValue:i.keyWords,"onUpdate:modelValue":t[14]||(t[14]=e=>i.keyWords=e)},null,8,["modelValue"])]),_:1}),Object(n["createVNode"])(m,{icon:"el-icon-search",type:"primary",onClick:l.searchAddress},{default:Object(n["withCtx"])(()=>[Object(n["createTextVNode"])(Object(n["toDisplayString"])(e.$t("defalult.cx")),1)]),_:1},8,["onClick"]),Object(n["createVNode"])(h,{ref:"baiduMap",onTellFatherName:l.getLatAndLng},null,8,["onTellFatherName"])]),_:1},8,["model"]),Object(n["createVNode"])(b,null,{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(m,{type:"primary",onClick:l.save},{default:Object(n["withCtx"])(()=>t[16]||(t[16]=[Object(n["createTextVNode"])("提交")])),_:1},8,["onClick"])]),_:1})]),_:1},8,["model","rules"])])]),_:1},8,["modelValue","title","onClose"])}o("14d9");var i=o("24d2"),l=o("aa98"),s=o("17be"),c=o("2ef0"),d={name:"DeviceEdit",components:{bdMap:s["default"]},data(){return{form:{id:"",name:"",code:"",commPro:"",projectId:"",longitude:"",latitude:"",offlineDelay:90,townCode:"",townName:"",community:"",specifications:"",type:"",userNum:"",alarmUser:"",alarmType:""},siteName:"",siteCode:"",townCode:"",projectId:"",projectData:[],rules:{},title:"",dialogFormVisible:!1,keyWords:"",diffData:{},ruleForm:[],commData:[],deviceTechnologyData:[],deviceMaterialData:[],outStandardData:[],deviceTypeData:[],alarmTypeData:[],townsData:[],alarmUserData:[]}},created(){this.getCommData()},methods:{async getProjectData(){const e={page:1,size:100},{data:t}=await Object(i["getList"])(e);this.projectData=t.items},changeProject(){this.getTownsByProject()},async getTownsByProject(){const{data:e}=await Object(l["getTownsByProject"])({projectId:this.form.projectId});this.townsData=e},changeTown(e){const{value:t,label:o}=e;this.form.townCode=t,this.form.townName=o},async getAlarmUser(){const{data:e}=await Object(l["selectAllAlarmUser"])();this.alarmUserData=e},getLatAndLng(e){this.form.longitude=e.lng,this.form.latitude=e.lat},searchAddress(){this.$refs["baiduMap"].setPlace(this.keyWords)},async getCommData(){const{data:e}=await Object(l["getDictData"])();this.commData=e.communicationProtocol,this.deviceTechnologyData=e.deviceTechnology,this.deviceMaterialData=e.deviceMaterial,this.outStandardData=e.outStandard,this.deviceTypeData=e.deviceType,this.alarmTypeData=e.alarmType},showEdit(e,t){if(this.getProjectData(),this.getAlarmUser(),1==t)this.title="添加",this.form.projectId=Object(c["toNumber"])(e.projectId);else{this.title="编辑";var o=Object.assign({},e);this.form.id=o.id,this.form.name=o.name,this.form.code=o.code,this.form.commPro=o.commPro.dataCode,this.form.projectId=o.project.id,this.form.longitude=o.longitude,this.form.latitude=o.latitude,this.form.offlineDelay=o.offlineDelay,this.form.townCode=o.townCode,this.form.townName=o.townName,this.form.community=o.community,this.form.specifications=o.specifications,null!==o.type&&(this.form.type=o.type.dataCode),this.form.userNum=o.userNum,this.siteName=o.name,this.siteCode=o.code,this.townCode=o.townName;var n=[],a=o.alarmUser;if(a){for(var r=0;r<a.length;r++)n.push(a[r].id);this.form.alarmUser=n}var i=[],l=o.alarmType;if(l){for(var s=0;s<l.length;s++)i.push(l[s].dataCode);this.form.alarmType=i}}this.getTownsByProject(),this.dialogFormVisible=!0},close(){this.$refs["form"].resetFields(),this.form=this.$options.data().form,this.dialogFormVisible=!1,this.$emit("fetch-data")},getDiffData(){this.diffData={},Object.keys(this.form).forEach(e=>{this.form[e]!=this.ruleForm[e]&&(this.diffData[e]=this.form[e])})},save(){this.$refs["form"].validate(async e=>{if(!e)return!1;this.siteName==this.form.name&&delete this.form.name,this.siteCode==this.form.code&&delete this.form.code;var t=this.form.alarmUser;t&&(this.form.alarmUser=t.join(","));var o=this.form.alarmType;if(o&&(this.form.alarmType=o.join(",")),this.form.id){if(this.getDiffData(),0!=Object.keys(this.diffData).length){this.diffData.id=this.form.id;const{msg:e}=await Object(l["doEdit"])(this.diffData);this.$notify({title:e,type:"success"})}}else{delete this.form.id;const{msg:e}=await Object(l["doAdd"])(this.form);this.$notify({title:e,type:"success"})}this.$refs["form"].resetFields(),this.dialogFormVisible=!1,this.$parent.fetchData()})}}},u=(o("3622"),o("d959")),m=o.n(u);const h=m()(d,[["render",r]]);t["default"]=h},8434:function(e,t,o){"use strict";o("df35")},"853a":function(e,t,o){},8551:function(e,t,o){"use strict";o.r(t);var n=o("f2bf");const a={class:"dialog-footer"};function r(e,t,o,r,i,l){const s=Object(n["resolveComponent"])("el-option"),c=Object(n["resolveComponent"])("el-select"),d=Object(n["resolveComponent"])("el-form-item"),u=Object(n["resolveComponent"])("el-upload"),m=Object(n["resolveComponent"])("el-form"),h=Object(n["resolveComponent"])("el-button"),p=Object(n["resolveComponent"])("el-dialog");return Object(n["openBlock"])(),Object(n["createBlock"])(p,{modelValue:i.dialogFormVisible,"onUpdate:modelValue":t[3]||(t[3]=e=>i.dialogFormVisible=e),title:i.title,width:"1000px",onClose:l.close},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(m,{ref:"form",model:i.form,rules:i.rules,"label-width":"120px","label-position":"left"},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(d,{label:"站点",prop:"deviceCode"},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(c,{modelValue:i.form.deviceCode,"onUpdate:modelValue":t[0]||(t[0]=e=>i.form.deviceCode=e),size:"small",filterable:"",placeholder:"站点",onChange:l.deviceChange},{default:Object(n["withCtx"])(()=>[(Object(n["openBlock"])(!0),Object(n["createElementBlock"])(n["Fragment"],null,Object(n["renderList"])(i.devicesData,e=>(Object(n["openBlock"])(),Object(n["createBlock"])(s,{key:e.code,label:e.name,value:e.code},null,8,["label","value"]))),128))]),_:1},8,["modelValue","onChange"])]),_:1}),Object(n["createVNode"])(d,{label:e.$t("maintenance.bxsbsj"),prop:"equipmentId"},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(c,{modelValue:i.form.equipmentId,"onUpdate:modelValue":t[1]||(t[1]=e=>i.form.equipmentId=e),size:"small",filterable:"",placeholder:"报修设备名称"},{default:Object(n["withCtx"])(()=>[(Object(n["openBlock"])(!0),Object(n["createElementBlock"])(n["Fragment"],null,Object(n["renderList"])(i.equipmentNameData,e=>(Object(n["openBlock"])(),Object(n["createBlock"])(s,{key:e.id,label:e.name,value:e.id},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1},8,["label"]),Object(n["createVNode"])(d,{label:e.$t("maintenance.bxlx"),prop:"repairType"},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(c,{modelValue:i.form.repairType,"onUpdate:modelValue":t[2]||(t[2]=e=>i.form.repairType=e),size:"small",filterable:"",placeholder:"报修类型"},{default:Object(n["withCtx"])(()=>[(Object(n["openBlock"])(!0),Object(n["createElementBlock"])(n["Fragment"],null,Object(n["renderList"])(i.repairTypeData,e=>(Object(n["openBlock"])(),Object(n["createBlock"])(s,{key:e.dataCode,label:e.dataValue,value:e.dataCode},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1},8,["label"]),Object(n["createVNode"])(d,{label:"报修图片",prop:"repairImg"},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(u,{action:i.fileUpdateUrl,headers:{token:i.token},name:"files","list-type":"picture-card","file-list":i.imageUrl,"on-success":l.handleAvatarSuccess,"on-remove":l.handleRemove,"before-upload":l.beforeAvatarUpload},{default:Object(n["withCtx"])(()=>t[4]||(t[4]=[Object(n["createElementVNode"])("i",{class:"el-icon-plus"},null,-1)])),_:1},8,["action","headers","file-list","on-success","on-remove","before-upload"])]),_:1})]),_:1},8,["model","rules"]),Object(n["createElementVNode"])("div",a,[Object(n["createVNode"])(h,{size:"small",onClick:l.close},{default:Object(n["withCtx"])(()=>t[5]||(t[5]=[Object(n["createTextVNode"])("取 消")])),_:1},8,["onClick"]),Object(n["createVNode"])(h,{type:"primary",size:"small",onClick:l.save},{default:Object(n["withCtx"])(()=>t[6]||(t[6]=[Object(n["createTextVNode"])("确 定")])),_:1},8,["onClick"])])]),_:1},8,["modelValue","title","onClose"])}o("14d9");var i=o("c3be"),l=o("b199"),s=o("f121"),c=o("4360"),d={data(){return{form:{id:"",deviceCode:"",equipmentId:"",repairType:"",repairImg:""},rules:{deviceCode:[{required:!0,trigger:"change",message:"请选择站点"}],equipmentId:[{required:!0,trigger:"change",message:"请选择保修设备名称"}],repairType:[{required:!0,trigger:"blur",message:"请输入保修类型"}],repairImg:[{required:!0,trigger:"blur",message:"请上传保修图片"}]},filePath:s["baseURL"]+"/static/img/",projectId:"",fileUpdateUrl:"",clearable:!0,title:"",token:"",imageUrl:[],dialogFormVisible:!1,devicesData:[],equipmentNameData:[],repairTypeData:[],dialogVisible:!1}},created(){},methods:{showEdit(e){if(this.imageUrl=[],e){this.title="编辑在线保修";const o=Object.assign({},e);if(null!=o.repairImg){const e=o.repairImg.split(",");for(let o=0;o<e.length;o++)if(e[o]){var t=this.filePath+e[o];this.imageUrl.push({url:t})}console.log(this.imageUrl)}this.form.id=o.id,this.form.deviceCode=o.device.code,this.getEquipmentsData(),this.form.repairType=o.repairType.dataCode,this.form.repairImg=o.repairImg,this.form.equipmentId=o.equipment.id}else this.title="添加在线保修";this.dialogFormVisible=!0,this.projectId=sessionStorage.getItem("projectId"),this.setUploadUrl(),this.getDevicesData(),this.getDictData()},deviceChange(){this.getEquipmentsData()},async getEquipmentsData(){const{data:e}=await Object(i["getEquipments"])({deviceCode:this.form.deviceCode});this.equipmentNameData=e},async getDictData(){const{data:e}=await Object(i["getDictData"])();this.repairTypeData=e.repairType},async getDevicesData(){const{data:e}=await Object(l["getDevices"])({projectId:this.projectId});this.devicesData=e},setUploadUrl(){this.token=c["default"].getters["user/token"],this.fileUpdateUrl=s["baseURL"]+"/file/uploadImg"},handleRemove(e,t){console.log(e,t);const o=[];var n="";this.filePath;t.forEach((function(e){const t=e.url;o.push({url:t}),n+=t.substring(t.lastIndexOf("/")+1)+","})),this.imageUrl=o,this.form.repairImg=n},handleAvatarSuccess(e,t){const o=this.imageUrl,n=this.form.repairImg;this.form.repairImg=""!=n?n+","+e.data:e.data;const a=this.filePath+e.data;o.push({filePath:a}),this.imageUrl=o},beforeAvatarUpload(e){const t=e.size/1024/1024<2;return t||this.$message.error("上传头像图片大小不能超过 2MB!"),t},close(){this.$refs["form"].resetFields(),this.form=this.$options.data().form,this.dialogFormVisible=!1,this.$emit("fetch-data")},save(){this.$refs["form"].validate(async e=>{if(!e)return!1;if(this.form.id){const{msg:e}=await Object(i["doEdit"])(this.form);this.$notify({title:e,type:"success"})}else{delete this.form.id;const{msg:e}=await Object(i["doAdd"])(this.form);this.$notify({title:e,type:"success"})}this.$refs["form"].resetFields(),this.$parent.fetchData(),this.dialogFormVisible=!1})}}},u=(o("73a5"),o("d959")),m=o.n(u);const h=m()(d,[["render",r]]);t["default"]=h},"85ea":function(e,t,o){"use strict";o.r(t);var n=o("f2bf");const a={class:"manage-container"};function r(e,t,o,r,i,l){const s=Object(n["resolveComponent"])("el-table-column"),c=Object(n["resolveComponent"])("el-tag"),d=Object(n["resolveComponent"])("el-button"),u=Object(n["resolveComponent"])("el-table"),m=Object(n["resolveDirective"])("loading");return Object(n["openBlock"])(),Object(n["createElementBlock"])("div",a,[Object(n["withDirectives"])((Object(n["openBlock"])(),Object(n["createBlock"])(u,{id:"table",data:i.tableData,border:"",stripe:"",style:{width:"100%"}},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(s,{prop:"id",label:"设备id",width:"220",align:"center"}),Object(n["createVNode"])(s,{prop:"account",label:"账户",width:"120",align:"center"}),Object(n["createVNode"])(s,{prop:"deviceSerial",label:"设备序列号",width:"100",align:"center"}),Object(n["createVNode"])(s,{prop:"deviceName",label:e.$t("maintenance.sbmc"),align:"center"},null,8,["label"]),Object(n["createVNode"])(s,{prop:"addTime",label:"添加时间",width:"180",align:"center"}),Object(n["createVNode"])(s,{prop:"ldDeviceName",label:"所属站点",width:"100",align:"center"}),Object(n["createVNode"])(s,{prop:"status",label:e.$t("dataEnquiry.ljzt"),width:"100",align:"center"},{default:Object(n["withCtx"])(({row:e})=>[1==e.status?(Object(n["openBlock"])(),Object(n["createBlock"])(c,{key:"在线",effect:"dark",type:"success",size:"mini"},{default:Object(n["withCtx"])(()=>t[0]||(t[0]=[Object(n["createTextVNode"])(" 在线 ")])),_:1})):Object(n["createCommentVNode"])("",!0),0==e.status?(Object(n["openBlock"])(),Object(n["createBlock"])(c,{key:"离线",effect:"dark",type:"danger",size:"mini"},{default:Object(n["withCtx"])(()=>t[1]||(t[1]=[Object(n["createTextVNode"])(" 离线 ")])),_:1})):Object(n["createCommentVNode"])("",!0)]),_:1},8,["label"]),Object(n["createVNode"])(s,{fixed:"right",label:e.$t("defalult.cz"),width:"100",align:"center"},{default:Object(n["withCtx"])(({row:e})=>[Object(n["createVNode"])(d,{type:"text",onClick:t=>l.handleLive(e)},{default:Object(n["withCtx"])(()=>t[2]||(t[2]=[Object(n["createTextVNode"])("播放")])),_:2},1032,["onClick"])]),_:1},8,["label"])]),_:1},8,["data"])),[[m,i.listLoading]])])}o("14d9");var i=o("093a"),l={data(){return{tableData:[],lazy:!0,layout:"total, sizes, prev, pager, next, jumper",total:0,background:!0,listLoading:!1,elementLoadingText:"正在加载...",queryForm:{projectId:""}}},created(){this.queryForm.projectId=sessionStorage.getItem("projectId"),this.fetchData()},methods:{async fetchData(){const{data:e}=await Object(i["getList"])(this.queryForm);this.tableData=e},handleLive(e){this.$router.push({path:"/fluoriteSensorData",name:"监控视频",query:{account:e.account,deviceSerial:e.deviceSerial}})}}},s=(o("d8e8"),o("d959")),c=o.n(s);const d=c()(l,[["render",r]]);t["default"]=d},"85f8":function(e,t,o){"use strict";o.r(t);var n=o("f2bf");const a={style:{width:"100%","text-align":"center",height:"700px"}},r={id:"codRate",ref:"echarts",class:"echarts"},i={id:"anRate",ref:"echarts",class:"echarts"},l={id:"tpRate",ref:"echarts",class:"echarts"},s={id:"tnRate",ref:"echarts",class:"echarts"},c={id:"phRate",ref:"echarts",class:"echarts"};function d(e,t,o,d,u,m){return Object(n["openBlock"])(),Object(n["createElementBlock"])("div",a,[Object(n["createElementVNode"])("div",r,null,512),Object(n["createElementVNode"])("div",i,null,512),Object(n["createElementVNode"])("div",l,null,512),Object(n["createElementVNode"])("div",s,null,512),Object(n["createElementVNode"])("div",c,null,512)])}var u=o("7cf8"),m=o("313e"),h={props:{deviceCode:{type:String,default:""}},data(){return{background:!0,listLoading:!0,lazy:!0,elementLoadingText:"正在加载...",queryForm:{deviceCode:""},type:"pie"}},computed:{height(){return 500}},watch:{deviceCode:function(e,t){this.queryForm.deviceCode=e,this.fetchData()}},created(){},methods:{setOption(e,t,o,n){this.charts=m["a"](document.getElementById(o)),this.charts.setOption({color:["#1165bf","#a26d1b"],tooltip:{trigger:"item",formatter:"{b}({d}%)"},legend:{left:"center",y:"bottom",data:e},series:[{type:this.type,center:["50%","40%"],name:n,radius:["0%","50%"],itemStyle:{emphasis:{shadowBlur:10,shadowOffsetX:0,shadowColor:"rgba(0, 0, 0, 0.5)"},normal:{borderWidth:5,borderColor:"#fff"}},avoidLabelOverlap:!1,label:{normal:{show:!0,position:"inner",textStyle:{fontWeight:200,fontSize:15},formatter:"{d}%"},emphasis:{show:!1}},labelLine:{normal:{show:!1}},data:t}]})},showData(e){this.queryForm.deviceCode=e.deviceCode,this.fetchData()},async fetchData(){this.listLoading=!0;const{data:e}=await Object(u["getWaterRate"])(this.queryForm);this.setOption(["COD达标率","COD未达标率"],[{value:e.codRate,name:"COD达标率"},{value:100-e.codRate,name:"COD未达标率"}],"codRate","COD"),this.setOption(["氨氮达标率","氨氮未达标率"],[{value:e.anRate,name:"氨氮达标率"},{value:100-e.anRate,name:"氨氮未达标率"}],"anRate","氨氮"),this.setOption(["总磷达标率","总磷未达标率"],[{value:e.tpRate,name:"总磷达标率"},{value:100-e.tpRate,name:"总磷未达标率"}],"tpRate","总磷"),this.setOption(["总氮达标率","总氮未达标率"],[{value:e.tnRate,name:"总氮达标率"},{value:100-e.tnRate,name:"总氮未达标率"}],"tnRate","总氮"),this.setOption(["PH达标率","PH未达标率"],[{value:e.phRate,name:"PH达标率"},{value:100-e.phRate,name:"PH未达标率"}],"phRate","PH"),setTimeout(()=>{this.listLoading=!1},500)}}},p=(o("2905"),o("d959")),b=o.n(p);const g=b()(h,[["render",d],["__scopeId","data-v-26052e9c"]]);t["default"]=g},"865b":function(e,t,o){"use strict";o("fdf1")},8718:function(e,t,o){"use strict";o("ffbbc")},"878b":function(e,t,o){},"87b4":function(e,t,o){},"87ca":function(e,t,o){"use strict";o("d462")},8816:function(e,t,o){"use strict";o.r(t);var n=o("f2bf");const a={class:"dialog-footer"};function r(e,t,o,r,i,l){const s=Object(n["resolveComponent"])("el-option"),c=Object(n["resolveComponent"])("el-select"),d=Object(n["resolveComponent"])("el-form-item"),u=Object(n["resolveComponent"])("el-input"),m=Object(n["resolveComponent"])("el-date-picker"),h=Object(n["resolveComponent"])("el-form"),p=Object(n["resolveComponent"])("el-button"),b=Object(n["resolveComponent"])("el-dialog");return Object(n["openBlock"])(),Object(n["createBlock"])(b,{modelValue:i.dialogFormVisible,"onUpdate:modelValue":t[5]||(t[5]=e=>i.dialogFormVisible=e),title:i.title,width:"500px"},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(h,{ref:"form",model:i.form,rules:i.rules,"label-width":"80px","label-position":"left"},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(d,{label:"选择站点",prop:"deviceCode"},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(c,{modelValue:i.form.deviceCode,"onUpdate:modelValue":t[0]||(t[0]=e=>i.form.deviceCode=e),size:"small",filterable:"",placeholder:"选择站点",onChange:l.deviceChange},{default:Object(n["withCtx"])(()=>[(Object(n["openBlock"])(!0),Object(n["createElementBlock"])(n["Fragment"],null,Object(n["renderList"])(i.deviceData,e=>(Object(n["openBlock"])(),Object(n["createBlock"])(s,{key:e.code,label:e.name,value:e.code},null,8,["label","value"]))),128))]),_:1},8,["modelValue","onChange"])]),_:1}),Object(n["createVNode"])(d,{label:e.$t("task.rwnr"),prop:"taskContent"},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(u,{modelValue:i.form.taskContent,"onUpdate:modelValue":t[1]||(t[1]=e=>i.form.taskContent=e),size:"small",type:"textarea"},null,8,["modelValue"])]),_:1},8,["label"]),Object(n["createVNode"])(d,{label:e.$t("task.clr"),prop:"handler"},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(c,{modelValue:i.form.handler,"onUpdate:modelValue":t[2]||(t[2]=e=>i.form.handler=e),size:"small",filterable:"",placeholder:"选择处理人"},{default:Object(n["withCtx"])(()=>[(Object(n["openBlock"])(!0),Object(n["createElementBlock"])(n["Fragment"],null,Object(n["renderList"])(i.handlersData,e=>(Object(n["openBlock"])(),Object(n["createBlock"])(s,{key:e.id,label:e.name,value:e.id},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1},8,["label"]),Object(n["createVNode"])(d,{label:"紧急程度",prop:"taskLevel"},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(c,{modelValue:i.form.taskLevel,"onUpdate:modelValue":t[3]||(t[3]=e=>i.form.taskLevel=e),size:"small",filterable:"",placeholder:"选择紧急程度"},{default:Object(n["withCtx"])(()=>[(Object(n["openBlock"])(!0),Object(n["createElementBlock"])(n["Fragment"],null,Object(n["renderList"])(i.levelData,e=>(Object(n["openBlock"])(),Object(n["createBlock"])(s,{key:e.dataCode,label:e.dataValue,value:e.dataCode},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),Object(n["createVNode"])(d,{label:e.$t("task.wcsj"),prop:"completeTime"},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(m,{modelValue:i.form.completeTime,"onUpdate:modelValue":t[4]||(t[4]=e=>i.form.completeTime=e),size:"small",type:"datetime",placeholder:e.$t("defalult.xzrq"),onChange:l.standardToTime},null,8,["modelValue","placeholder","onChange"])]),_:1},8,["label"])]),_:1},8,["model","rules"]),Object(n["createElementVNode"])("div",a,[Object(n["createVNode"])(p,{type:"primary",size:"small",onClick:l.save},{default:Object(n["withCtx"])(()=>t[6]||(t[6]=[Object(n["createTextVNode"])("确 定")])),_:1},8,["onClick"]),Object(n["createVNode"])(p,{size:"small",onClick:l.close},{default:Object(n["withCtx"])(()=>t[7]||(t[7]=[Object(n["createTextVNode"])("取 消")])),_:1},8,["onClick"])])]),_:1},8,["modelValue","title"])}var i=o("b199"),l=o("1b0a"),s=o("5f99"),c={data(){return{form:{id:"",deviceCode:"",taskContent:"",handler:"",completeTime:"",taskLevel:""},rules:{deviceCode:[{required:!0,trigger:"change",message:"请选择站点"}],handler:[{required:!0,trigger:"change",message:"请选择处理人"}],taskContent:[{required:!0,trigger:"blur",message:"请输入任务内容"}],taskLevel:[{required:!0,trigger:"change",message:"请选择紧急程度"}],completeTime:[{required:!0,trigger:"change",message:"请选择完成时间"}]},title:"",dialogFormVisible:!1,deviceData:[],handlersData:[],typeData:[],levelData:[],queryForm:{projectId:""}}},created(){this.queryForm.projectId=sessionStorage.getItem("projectId")},methods:{async getDictData(){const{data:e}=await Object(l["getDevices"])(this.queryForm);this.deviceData=e},deviceChange(){this.getHandlersData()},async getHandlersData(){const{data:e}=await Object(i["getHandlers"])(this.form);this.handlersData=e},async getTaskLevelData(){const{data:e}=await Object(i["getTaskLevel"])(this.form);this.levelData=e},standardToTime(){this.form.completeTime=Object(s["formatDateTime"])(this.form.completeTime)},setDefaultTime(){this.form.completeTime=Object(s["formatDateTime"])()},showEdit(e){if(this.getDictData(),this.getTaskLevelData(),e){this.title="编辑",this.menuId=e.id;var t=Object.assign({},e);this.form.id=t.id,this.form.deviceCode=t.device.code,this.form.taskContent=t.taskContent,this.form.handler=t.handler.id,this.form.completeTime=t.completeTime,void 0!=t.taskLevel&&(this.form.taskLevel=t.taskLevel.dataCode),this.getHandlersData()}else this.title="添加",this.form.id="",this.form.deviceCode="",this.form.taskContent="",this.form.handler="",this.form.completeTime="";this.dialogFormVisible=!0},close(){this.$refs["form"].resetFields(),this.form=this.$options.data().form,this.dialogFormVisible=!1,this.$emit("fetch-data")},save(){this.$refs["form"].validate(async e=>{if(!e)return!1;if(""==this.form.taskContent&&delete this.form.taskContent,""==this.form.handler&&delete this.form.handler,""==this.form.completeTime&&delete this.form.completeTime,this.form.id){const{msg:e}=await Object(i["doEdit"])(this.form);this.$notify({title:e,type:"success"})}else{delete this.form.id;const{msg:e}=await Object(i["doAdd"])(this.form);this.$notify({title:e,type:"success"})}this.$refs["form"].resetFields(),this.dialogFormVisible=!1,this.$parent.fetchData()})}}},d=o("d959"),u=o.n(d);const m=u()(c,[["render",r]]);t["default"]=m},8841:function(e,t,o){"use strict";o.r(t);var n=o("f2bf");const a={class:"manage-container"};function r(e,t,o,r,i,l){const s=Object(n["resolveComponent"])("el-input"),c=Object(n["resolveComponent"])("el-form-item"),d=Object(n["resolveComponent"])("el-button"),u=Object(n["resolveComponent"])("vab-query-form"),m=Object(n["resolveComponent"])("el-form"),h=Object(n["resolveComponent"])("el-row"),p=Object(n["resolveComponent"])("el-table-column"),b=Object(n["resolveComponent"])("el-table"),g=Object(n["resolveComponent"])("el-pagination"),f=Object(n["resolveComponent"])("vab-query-form-right-panel"),v=Object(n["resolveDirective"])("loading");return Object(n["openBlock"])(),Object(n["createElementBlock"])("div",a,[Object(n["createVNode"])(h,null,{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(m,{ref:"form",model:e.form,"label-width":"80px"},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(u,null,{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(c,{label:"班组名称"},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(s,{modelValue:i.queryForm.name,"onUpdate:modelValue":t[0]||(t[0]=e=>i.queryForm.name=e),placeholder:"请输入班组名称"},null,8,["modelValue"])]),_:1}),Object(n["createVNode"])(d,{type:"primary",onClick:e.search},{default:Object(n["withCtx"])(()=>[Object(n["createTextVNode"])(Object(n["toDisplayString"])(e.$t("defalult.cx")),1)]),_:1},8,["onClick"]),Object(n["createVNode"])(d,{type:"primary",onClick:e.search},{default:Object(n["withCtx"])(()=>[Object(n["createTextVNode"])(Object(n["toDisplayString"])(e.$t("defalult.dc")),1)]),_:1},8,["onClick"])]),_:1})]),_:1},8,["model"])]),_:1}),Object(n["withDirectives"])((Object(n["openBlock"])(),Object(n["createBlock"])(b,{data:i.data,border:"",stripe:"",style:{width:"100%"}},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(p,{prop:"jiedao",label:"班组编号",width:"120",align:"center"}),Object(n["createVNode"])(p,{prop:"shequ",label:"班组名称",width:"200",align:"center"}),Object(n["createVNode"])(p,{prop:"mingcheng",label:"班组类型",width:"200",align:"center"}),Object(n["createVNode"])(p,{prop:"guimo",label:"班组组号",width:"200",align:"center"}),Object(n["createVNode"])(p,{prop:"kaishi1",label:"班组组长",width:"200",align:"center"}),Object(n["createVNode"])(p,{prop:"jieshu1",label:"班组成员",width:"200",align:"center"}),Object(n["createVNode"])(p,{prop:"dangqian",label:"班组数量",width:"200",align:"center"}),Object(n["createVNode"])(p,{prop:"kaishi2",label:"归属部门",width:"200",align:"center"}),Object(n["createVNode"])(p,{prop:"jieshu2",label:"归属单位",width:"200",align:"center"}),Object(n["createVNode"])(p,{prop:"jieshu3",label:"班组描述",width:"200",align:"center"}),Object(n["createVNode"])(p,{prop:"jieshu3",label:"配备工程车辆",width:"200",align:"center"}),Object(n["createVNode"])(p,{fixed:"right",label:e.$t("defalult.cz"),align:"center"},{default:Object(n["withCtx"])(({row:t})=>[Object(n["createVNode"])(d,{type:"text",onClick:e=>l.handleDelete(t)},{default:Object(n["withCtx"])(()=>[Object(n["createTextVNode"])(Object(n["toDisplayString"])(e.$t("defalult.sc")),1)]),_:2},1032,["onClick"])]),_:1},8,["label"])]),_:1},8,["data"])),[[v,i.listLoading]]),Object(n["createVNode"])(u,null,{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(f,null,{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(g,{background:i.background,"current-page":i.queryForm.page,layout:i.layout,"page-size":i.queryForm.size,total:i.total,onCurrentChange:l.handleCurrentChange,onSizeChange:l.handleSizeChange},null,8,["background","current-page","layout","page-size","total","onCurrentChange","onSizeChange"])]),_:1})]),_:1})])}var i={name:"Index",components:{},data(){return{data:[{id:1,jiedao:"4565",shequ:"班组名称",mingcheng:"班组类型",guimo:"20",kaishi1:"张三",jieshu1:"李四,王五,赵六",dangqian:"3",kaishi2:"归属部门",jieshu2:"归属单位",jieshu3:"班组描述",jieshu4:"奔驰"},{id:2,jiedao:"65432",shequ:"班组名称",mingcheng:"班组类型",guimo:"20",kaishi1:"张三",jieshu1:"李四,王五,赵六",dangqian:"3",kaishi2:"归属部门",jieshu2:"归属单位",jieshu3:"班组描述",jieshu4:"奔驰"},{id:3,jiedao:"1234",shequ:"班组名称",mingcheng:"班组类型",guimo:"20",kaishi1:"张三",jieshu1:"李四,王五,赵六",dangqian:"3",kaishi2:"归属部门",jieshu2:"归属单位",jieshu3:"班组描述",jieshu4:"奔驰"}],lazy:!0,activeName:"first",layout:"total, sizes, prev, pager, next, jumper",total:0,input:"",textarea:"",list:[],background:!0,listLoading:!0,elementLoadingText:"正在加载...",queryForm:{page:1,size:20,name:""}}},computed:{height(){return 500}},created(){this.fetchData()},methods:{async fetchData(){this.listLoading=!0,setTimeout(()=>{this.listLoading=!1},500)},handleAdd(){this.$refs["edit"].showEdit()},handleEdit(e){this.$refs["edit"].showEdit(e)},handleQuery(){this.queryForm.page=1,this.fetchData()},handleSizeChange(e){this.queryForm.size=e,this.fetchData()},handleCurrentChange(e){this.queryForm.page=e,this.fetchData()},handleDelete(e){e.id&&this.$confirm("你确定要删除当前项吗?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(()=>{this.$message({type:"success",message:"删除成功"})}).catch(()=>{this.$message({type:"info",message:"已取消删除"})})}}},l=(o("e1be"),o("d959")),s=o.n(l);const c=s()(i,[["render",r],["__scopeId","data-v-2c352544"]]);t["default"]=c},"88de":function(e,t,o){"use strict";o.r(t);var n=o("f2bf");const a={class:"dialog-footer"};function r(e,t,o,r,i,l){const s=Object(n["resolveComponent"])("el-option"),c=Object(n["resolveComponent"])("el-select"),d=Object(n["resolveComponent"])("el-form-item"),u=Object(n["resolveComponent"])("el-input"),m=Object(n["resolveComponent"])("el-form"),h=Object(n["resolveComponent"])("el-button"),p=Object(n["resolveComponent"])("el-dialog");return Object(n["openBlock"])(),Object(n["createBlock"])(p,{modelValue:i.dialogFormVisible,"onUpdate:modelValue":t[8]||(t[8]=e=>i.dialogFormVisible=e),title:i.title,width:"500px",onClose:l.close},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(m,{ref:"form",model:i.form,rules:i.rules,"label-width":"80px","label-position":"left"},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(d,{label:e.$t("dataEnquiry.xm"),prop:"projectId"},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(c,{modelValue:i.form.projectId,"onUpdate:modelValue":t[0]||(t[0]=e=>i.form.projectId=e),size:"small",style:{width:"100%"},filterable:"",placeholder:"项目",onChange:t[1]||(t[1]=e=>l.projectChange())},{default:Object(n["withCtx"])(()=>[(Object(n["openBlock"])(!0),Object(n["createElementBlock"])(n["Fragment"],null,Object(n["renderList"])(i.projectData,e=>(Object(n["openBlock"])(),Object(n["createBlock"])(s,{key:e.id,style:{width:"100%"},label:e.name,value:e.id},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1},8,["label"]),Object(n["createVNode"])(d,{label:"站点",prop:"deviceId"},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(c,{modelValue:i.form.deviceId,"onUpdate:modelValue":t[2]||(t[2]=e=>i.form.deviceId=e),size:"small",style:{width:"100%"},filterable:"",placeholder:"站点",onChange:t[3]||(t[3]=e=>l.devicedChange())},{default:Object(n["withCtx"])(()=>[(Object(n["openBlock"])(!0),Object(n["createElementBlock"])(n["Fragment"],null,Object(n["renderList"])(i.deviceData,e=>(Object(n["openBlock"])(),Object(n["createBlock"])(s,{key:e.id,style:{width:"100%"},label:e.name,value:e.id},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),Object(n["createVNode"])(d,{label:e.$t("dataEnquiry.cgq"),prop:"sensorId"},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(c,{modelValue:i.form.sensorId,"onUpdate:modelValue":t[4]||(t[4]=e=>i.form.sensorId=e),size:"small",style:{width:"100%"},filterable:"",placeholder:"传感器"},{default:Object(n["withCtx"])(()=>[(Object(n["openBlock"])(!0),Object(n["createElementBlock"])(n["Fragment"],null,Object(n["renderList"])(i.sensorData,e=>(Object(n["openBlock"])(),Object(n["createBlock"])(s,{key:e.id,style:{width:"100%"},label:e.name,value:e.id},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1},8,["label"]),Object(n["createVNode"])(d,{label:e.$t("alarm.bjjb"),prop:"alarmLevel"},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(c,{modelValue:i.form.alarmLevel,"onUpdate:modelValue":t[5]||(t[5]=e=>i.form.alarmLevel=e),size:"small",style:{width:"100%"},filterable:"",placeholder:"报警级别"},{default:Object(n["withCtx"])(()=>[(Object(n["openBlock"])(!0),Object(n["createElementBlock"])(n["Fragment"],null,Object(n["renderList"])(i.levelData,e=>(Object(n["openBlock"])(),Object(n["createBlock"])(s,{key:e.dataCode,label:e.dataValue,value:e.dataCode},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1},8,["label"]),Object(n["createVNode"])(d,{label:"报警类别",prop:"alarmCategory"},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(c,{modelValue:i.form.alarmCategory,"onUpdate:modelValue":t[6]||(t[6]=e=>i.form.alarmCategory=e),size:"small",style:{width:"100%"},filterable:"",placeholder:"报警类别"},{default:Object(n["withCtx"])(()=>[(Object(n["openBlock"])(!0),Object(n["createElementBlock"])(n["Fragment"],null,Object(n["renderList"])(i.categoryData,e=>(Object(n["openBlock"])(),Object(n["createBlock"])(s,{key:e.dataCode,label:e.dataValue,value:e.dataCode},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),Object(n["createVNode"])(d,{label:"报警内容",prop:"alarmContent"},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(u,{modelValue:i.form.alarmContent,"onUpdate:modelValue":t[7]||(t[7]=e=>i.form.alarmContent=e),size:"small",type:"textarea",rows:2,placeholder:"报警内容"},null,8,["modelValue"])]),_:1})]),_:1},8,["model","rules"]),Object(n["createElementVNode"])("div",a,[Object(n["createVNode"])(h,{size:"small",onClick:l.close},{default:Object(n["withCtx"])(()=>t[9]||(t[9]=[Object(n["createTextVNode"])("取 消")])),_:1},8,["onClick"]),Object(n["createVNode"])(h,{type:"primary",size:"small",onClick:l.save},{default:Object(n["withCtx"])(()=>t[10]||(t[10]=[Object(n["createTextVNode"])("确 定")])),_:1},8,["onClick"])])]),_:1},8,["modelValue","title","onClose"])}var i=o("9e04"),l=o("aa98"),s=o("24d2"),c=o("669c"),d={data(){return{form:{projectId:"",deviceId:"",sensorId:"",alarmContent:"",alarmLevel:"",alarmCategory:""},rules:{projectId:[{required:!0,trigger:"change",message:"请选择项目"}],deviceId:[{required:!0,trigger:"change",message:"请选择站点"}],sensorId:[{required:!0,trigger:"change",message:"请选择传感器"}],alarmContent:[{required:!0,trigger:"blur",message:"请输入报警内容"}],alarmLevel:[{required:!0,trigger:"change",message:"请选择报警级别"}],alarmCategory:[{required:!0,trigger:"change",message:"请选择报警类别"}]},title:"",projectData:[],levelData:[],categoryData:[],deviceData:[],sensorData:[],dialogFormVisible:!1}},created(){},methods:{handleCountryChange(e){if(e){const t=e.length-1;this.form.parentId=e[t]}else this.form.parentId=0},async getProjectData(){const{data:e}=await Object(s["getList"])({page:1,size:100});this.projectData=e.items},projectChange(){this.getDevicedData()},devicedChange(e){this.getSensorData()},async getDevicedData(){var e={page:1,size:100,projectId:this.form.projectId};const{data:t}=await Object(l["getDeviceData"])(e);this.deviceData=t.items},async getSensorData(){var e={page:1,size:100,deviceId:this.form.deviceId};const{data:t}=await Object(c["getList"])(e);this.sensorData=t.items},async getLevel(){const{data:e}=await Object(i["alarmLevelDict"])();this.levelData=e},async getCategory(){const{data:e}=await Object(i["alarmCategoryDict"])();this.categoryData=e},showEdit(){this.title="添加报警信息",this.dialogFormVisible=!0,this.getProjectData(),this.getLevel(),this.getCategory()},close(){this.$refs["form"].resetFields(),this.form=this.$options.data().form,this.dialogFormVisible=!1,this.$emit("fetch-data")},save(){this.$refs["form"].validate(async e=>{if(!e)return!1;{this.form.name=this.form.title;const{msg:e}=await Object(i["doAdd"])(this.form);this.$notify({title:e,type:"success"}),this.$refs["form"].resetFields(),this.dialogFormVisible=!1,this.$parent.fetchData()}})}}},u=o("d959"),m=o.n(u);const h=m()(d,[["render",r]]);t["default"]=h},"88f9":function(e,t,o){"use strict";o("5607")},8916:function(e,t,o){"use strict";o.r(t),o.d(t,"loginLogData",(function(){return r})),o.d(t,"removeLoginData",(function(){return i})),o.d(t,"exportLoginLog",(function(){return l})),o.d(t,"getBusinessType",(function(){return s})),o.d(t,"actionLogData",(function(){return c})),o.d(t,"removeActionLog",(function(){return d})),o.d(t,"exportActionLog",(function(){return u}));var n=o("b775"),a=o("f121");function r(e){return Object(n["default"])({url:"/loginLog/list?page="+e.page+"&size="+e.size+"&userName="+e.userName+"&start="+e.start+"&end="+e.end,method:"get",data:e})}function i(e){return Object(n["default"])({url:"/loginLog/remove",method:"post",data:e})}function l(e){let t="?start="+e.start+"&end="+e.end;return""!=e.userName&&(t+="&userName="+e.userName),a["baseURL"]+"/loginLog/export"+t}function s(e){return Object(n["default"])({url:"/operLog/businessType",method:"get",data:e})}function c(e){let t="?page="+e.page+"&size="+e.size;return""!=e.businessType&&(t+="&businessType="+e.businessType),(""!=e.status&&2!=e.status||0==e.status)&&(t+="&status="+e.status),""!=e.operName&&(t+="&operName="+e.operName),Object(n["default"])({url:"/operLog/list"+t,method:"get",data:e})}function d(e){return Object(n["default"])({url:"/operLog/remove",method:"post",data:e})}function u(e){let t="?start="+e.start+"&end="+e.end;return""!=e.businessType&&(t+="&businessType="+e.businessType),""!=e.operName&&(t+="&operName="+e.operName),(""!=e.status&&2!=e.status||0==e.status)&&(t+="&status="+e.status),a["baseURL"]+"/operLog/export"+t}},"895f":function(e,t,o){},"8a34":function(e,t,o){"use strict";o.r(t);var n=o("f2bf");function a(e,t,o,a,r,i){const l=Object(n["resolveComponent"])("el-table-column"),s=Object(n["resolveComponent"])("el-tag"),c=Object(n["resolveComponent"])("el-button"),d=Object(n["resolveComponent"])("el-table"),u=Object(n["resolveComponent"])("el-pagination"),m=Object(n["resolveComponent"])("distribute"),h=Object(n["resolveDirective"])("loading");return Object(n["openBlock"])(),Object(n["createElementBlock"])(n["Fragment"],null,[Object(n["withDirectives"])((Object(n["openBlock"])(),Object(n["createBlock"])(d,{data:r.sensorData,border:"",stripe:"",style:{width:"100%"}},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(l,{prop:"name",label:e.$t("siteDetails.cgqmc"),align:"center"},null,8,["label"]),Object(n["createVNode"])(l,{prop:"dataKey",label:e.$t("siteDetails.csid"),align:"center"},null,8,["label"]),Object(n["createVNode"])(l,{prop:"dataValue",label:e.$t("siteDetails.zhi"),align:"center"},{default:Object(n["withCtx"])(({row:e})=>[Object(n["createVNode"])(s,{type:"success"},{default:Object(n["withCtx"])(()=>[Object(n["createTextVNode"])(Object(n["toDisplayString"])(e.dataValue),1)]),_:2},1024)]),_:1},8,["label"]),Object(n["createVNode"])(l,{prop:"unit",label:e.$t("siteDetails.dw"),align:"center"},null,8,["label"]),Object(n["createVNode"])(l,{label:e.$t("defalult.cz"),align:"center"},{default:Object(n["withCtx"])(({row:t})=>["读写"==t.readWrite?(Object(n["openBlock"])(),Object(n["createBlock"])(c,{key:0,type:"text",onClick:e=>i.distribute(t)},{default:Object(n["withCtx"])(()=>[Object(n["createTextVNode"])(Object(n["toDisplayString"])(e.$t("siteDetails.xfzl")),1)]),_:2},1032,["onClick"])):Object(n["createCommentVNode"])("",!0)]),_:1},8,["label"])]),_:1},8,["data"])),[[h,r.listLoading]]),Object(n["createVNode"])(u,{background:r.background,"current-page":r.queryForm.page,layout:r.layout,"page-size":r.queryForm.size,total:r.total,style:{"text-align":"right"},onCurrentChange:i.handleCurrentChange,onSizeChange:i.handleSizeChange},null,8,["background","current-page","layout","page-size","total","onCurrentChange","onSizeChange"]),Object(n["createVNode"])(m,{ref:"distribute"},null,512)],64)}var r=o("7cf8"),i=o("ca6a"),l={components:{distribute:i["default"]},data(){return{sensorData:[],lazy:!0,activeName:"first",layout:"prev, pager, next",total:0,background:!0,listLoading:!0,elementLoadingText:"正在加载...",queryForm:{page:1,size:5,deviceCode:""},writeData:{deviceCode:"",dataKey:"",dataValue:""}}},computed:{height(){return 500}},created(){},methods:{showData(e){console.log(123,e),this.queryForm.deviceCode=e.deviceCode,this.fetchData()},async fetchData(){this.listLoading=!0;const{data:e}=await Object(r["deviceCode"])(this.queryForm);this.sensorData=e.items,this.total=e.total,setTimeout(()=>{this.listLoading=!1},500)},handleQuery(){this.queryForm.pageNo=1,this.fetchData()},handleSizeChange(e){this.queryForm.pageSize=e,this.fetchData()},handleCurrentChange(e){this.queryForm.page=e,this.fetchData()},distribute(e){const t=e.dataKey,o=this.queryForm.deviceCode;this.$refs["distribute"].showEdit({deviceCode:o,dataKey:t,unit:e.unit,convertFlag:e.convertFlag})}}},s=(o("fc83"),o("d959")),c=o.n(s);const d=c()(l,[["render",a],["__scopeId","data-v-da5a4cdc"]]);t["default"]=d},"8a4a":function(e,t,o){"use strict";o.r(t);var n=o("f2bf");const a={class:"manage-container"};function r(e,t,o,r,i,l){const s=Object(n["resolveComponent"])("project-index"),c=Object(n["resolveComponent"])("el-tab-pane"),d=Object(n["resolveComponent"])("device-index"),u=Object(n["resolveComponent"])("vehicle-index"),m=Object(n["resolveComponent"])("police-index"),h=Object(n["resolveComponent"])("run-index"),p=Object(n["resolveComponent"])("alarm-index"),b=Object(n["resolveComponent"])("el-tabs");return Object(n["openBlock"])(),Object(n["createElementBlock"])("div",a,[Object(n["createVNode"])(b,{modelValue:i.activeName,"onUpdate:modelValue":t[0]||(t[0]=e=>i.activeName=e),onTabClick:l.handleClick},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(c,{label:"项目信息",name:"first"},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(s,{ref:"project"},null,512)]),_:1}),Object(n["createVNode"])(c,{label:"站点信息",name:"second"},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(d,{ref:"device"},null,512)]),_:1}),Object(n["createVNode"])(c,{label:"车辆信息",name:"three"},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(u,{ref:"vehicle"},null,512)]),_:1}),Object(n["createVNode"])(c,{label:"报警联系人",name:"four"},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(m,{ref:"police"},null,512)]),_:1}),Object(n["createVNode"])(c,{label:"项目运行率报表",name:"five"},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(h,{ref:"run"},null,512)]),_:1}),Object(n["createVNode"])(c,{label:"告警管理",name:"six"},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(p,{ref:"alarm"},null,512)]),_:1})]),_:1},8,["modelValue","onTabClick"])])}var i=o("f2ed"),l=o("4c21"),s=o("9f77"),c=o("c35f"),d=o("4b2b"),u=o("1e93"),m={components:{projectIndex:i["default"],deviceIndex:l["default"],vehicleIndex:s["default"],policeIndex:c["default"],runIndex:d["default"],alarmIndex:u["default"]},data(){return{activeName:"first"}},computed:{height(){return 500}},created(){const e=this.$route.query.type;"six"===e&&(this.activeName="six")},mounted(){},methods:{handleClick(e,t){"first"==e.paneName?this.$refs["project"].showData():"second"==e.paneName?this.$refs["device"].showData():"three"==e.paneName?this.$refs["vehicle"].showData():"four"==e.paneName?this.$refs["police"].showData():"five"==e.paneName?this.$refs["run"].showData():"six"==e.paneName&&this.$refs["alarm"].showData()}}},h=(o("1cfa"),o("d959")),p=o.n(h);const b=p()(m,[["render",r]]);t["default"]=b},"8abb":function(e,t,o){"use strict";o("61d3")},"8b17":function(e,t,o){e.exports={"menu-color":"hsla(0,0%,27%,.95)","menu-color-active":"hsla(208,100%,55%,.95)","menu-background":"#fff","gallery-second-menu-background":"#fff"}},"8b4d":function(e,t,o){e.exports={"menu-color":"hsla(0,0%,27%,.95)","menu-color-active":"hsla(208,100%,55%,.95)","menu-background":"#fff","gallery-second-menu-background":"#fff"}},"8bae":function(e,t,o){e.exports={"menu-color":"hsla(0,0%,27%,.95)","menu-color-active":"hsla(208,100%,55%,.95)","menu-background":"#fff","gallery-second-menu-background":"#fff"}},"8c7e":function(e,t,o){"use strict";o.r(t);var n=o("f2bf");function a(e,t,o,a,r,i){return Object(n["openBlock"])(),Object(n["createElementBlock"])("div",{id:"detail1",class:"marker-detail",style:Object(n["normalizeStyle"])(i.p),onClick:Object(n["withModifiers"])(e=>!1,["stop"])},[Object(n["renderSlot"])(e.$slots,"default",{},void 0,!0)],4)}var r={name:"DialogMarkerContainer",data(){return{position:{top:"-999px",left:"-999px"}}},computed:{p(){return`transform: translate(${this.position.left}, ${this.position.top})`}},methods:{setPosition(e){this.position={top:e.top+(e.offset||0)+"px",left:e.left+(e.offset||0)+"px"}}}},i=(o("2680"),o("d959")),l=o.n(i);const s=l()(r,[["render",a],["__scopeId","data-v-1c8e2a6a"]]);t["default"]=s},"8cdb":function(e,t,o){"use strict";o.r(t);var n=o("f2bf");const a={class:"error-container"},r={class:"error-content"},i={class:"pic-error"},l={class:"bullshit"},s={class:"bullshit-oops"},c={class:"bullshit-headline"},d={class:"bullshit-info"};function u(e,t,u,m,h,p){const b=Object(n["resolveComponent"])("el-image"),g=Object(n["resolveComponent"])("el-col"),f=Object(n["resolveComponent"])("router-link"),v=Object(n["resolveComponent"])("el-row");return Object(n["openBlock"])(),Object(n["createElementBlock"])("div",a,[Object(n["createElementVNode"])("div",r,[Object(n["createVNode"])(v,{gutter:20},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(g,{lg:12,md:12,sm:24,xl:12,xs:24},{default:Object(n["withCtx"])(()=>[Object(n["createElementVNode"])("div",i,[Object(n["createVNode"])(b,{src:o("2adf"),class:"pic-error-parent"},null,8,["src"]),Object(n["createVNode"])(b,{src:o("7ca1"),class:"pic-error-child left"},null,8,["src"])])]),_:1}),Object(n["createVNode"])(g,{lg:12,md:12,sm:24,xl:12,xs:24},{default:Object(n["withCtx"])(()=>[Object(n["createElementVNode"])("div",l,[Object(n["createElementVNode"])("div",s,Object(n["toDisplayString"])(h.oops),1),Object(n["createElementVNode"])("div",c,Object(n["toDisplayString"])(h.headline),1),Object(n["createElementVNode"])("div",d,Object(n["toDisplayString"])(h.info),1),Object(n["createVNode"])(f,{class:"bullshit-return-home",to:"/"},{default:Object(n["withCtx"])(()=>[Object(n["createTextVNode"])(Object(n["toDisplayString"])(h.jumpTime)+"s "+Object(n["toDisplayString"])(h.btn),1)]),_:1})])]),_:1})]),_:1})])])}o("14d9");var m=o("5502"),h={name:"Page404",beforeRouteLeave(e,t,o){this.delVisitedRoute(this.$route.path),clearInterval(this.timer),o()},data(){return{jumpTime:5,oops:"抱歉!",headline:"当前页面不存在...",info:"请检查您输入的网址是否正确,或点击下面的按钮返回首页。",btn:"返回首页",timer:0}},computed:{...Object(m["c"])({visitedRoutes:"tabsBar/visitedRoutes"})},mounted(){this.timeChange()},methods:{...Object(m["b"])({delVisitedRoute:"tabsBar/delVisitedRoute"}),timeChange(){this.timer=setInterval(()=>{this.jumpTime?this.jumpTime--:(this.delVisitedRoute(this.$route.path),this.$router.push("/"),clearInterval(this.timer))},1e3)}}},p=(o("1bcb"),o("d959")),b=o.n(p);const g=b()(h,[["render",u],["__scopeId","data-v-5a00a850"]]);t["default"]=g},"8d65":function(e,t,o){"use strict";o.r(t);var n=o("f2bf");const a={class:"manage-container"};function r(e,t,o,r,i,l){const s=Object(n["resolveComponent"])("current-index"),c=Object(n["resolveComponent"])("el-tab-pane"),d=Object(n["resolveComponent"])("history-index"),u=Object(n["resolveComponent"])("el-tabs");return Object(n["openBlock"])(),Object(n["createElementBlock"])("div",a,[Object(n["createVNode"])(u,{modelValue:i.activeName,"onUpdate:modelValue":t[0]||(t[0]=e=>i.activeName=e),onTabClick:l.handleClick},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(c,{label:e.$t("clock.dklx"),name:"first"},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(s,{ref:"current"},null,512)]),_:1},8,["label"]),Object(n["createVNode"])(c,{label:e.$t("alarm.lsbj"),name:"second"},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(d,{ref:"history"},null,512)]),_:1},8,["label"])]),_:1},8,["modelValue","onTabClick"])])}var i=o("e30d"),l=o("eb86"),s={name:"Index",components:{currentIndex:i["default"],historyIndex:l["default"]},data(){return{activeName:"first"}},computed:{height(){return 500}},mounted(){},methods:{handleClick(e){"first"==e.paneName?this.$refs["current"].showData():"second"==e.paneName&&this.$refs["history"].showData()}}},c=(o("9643"),o("d959")),d=o.n(c);const u=d()(s,[["render",r]]);t["default"]=u},"8d67":function(e,t,o){"use strict";o.r(t);var n=o("f2bf");const a={id:"chartPie",style:{width:"100%",height:"260px","padding-top":"30px"}};function r(e,t,o,r,i,l){return Object(n["openBlock"])(),Object(n["createElementBlock"])("div",a)}var i=o("313e"),l={props:{runRate:{type:Number}},data(){return{chartPie:null,data:[]}},watch:{runRate(e){this.data=[{value:e}],setTimeout(()=>{this.drawCharts()},500)}},mounted:function(){},methods:{drawPieChart(){this.chartPie=i["a"](document.getElementById("chartPie")),this.chartPie.setOption({series:[{type:"gauge",radius:"100%",startAngle:180,endAngle:0,min:0,max:240,splitNumber:12,itemStyle:{color:"#58D9F9",shadowColor:"rgba(0,138,255,0.45)",shadowBlur:10,shadowOffsetX:2,shadowOffsetY:2},progress:{show:!0,roundCap:!0,width:14},pointer:{icon:"path://M2090.36389,615.30999 L2090.36389,615.30999 C2091.48372,615.30999 2092.40383,616.194028 2092.44859,617.312956 L2096.90698,728.755929 C2097.05155,732.369577 2094.2393,735.416212 2090.62566,735.56078 C2090.53845,735.564269 2090.45117,735.566014 2090.36389,735.566014 L2090.36389,735.566014 C2086.74736,735.566014 2083.81557,732.63423 2083.81557,729.017692 C2083.81557,728.930412 2083.81732,728.84314 2083.82081,728.755929 L2088.2792,617.312956 C2088.32396,616.194028 2089.24407,615.30999 2090.36389,615.30999 Z",length:"75%",width:5,offsetCenter:[0,"5%"]},axisLine:{roundCap:!0,lineStyle:{width:10}},axisTick:{splitNumber:2,lineStyle:{width:2,color:"#999"}},splitLine:{length:12,lineStyle:{width:3,color:"#999"}},axisLabel:{distance:15,color:"#999",fontSize:10},title:{show:!0,text:"运行率"},detail:{backgroundColor:"#fff",borderColor:"#999",borderWidth:2,width:"80%",lineHeight:40,height:20,borderRadius:8,offsetCenter:[0,"35%"],valueAnimation:!0,formatter:function(e){return"{value|"+e.toFixed(2)+"}{unit|%}"},rich:{value:{fontSize:15,fontWeight:"bolder",color:"#777",padding:[0,0,15,0]},unit:{fontSize:15,color:"#999",padding:[0,0,15,10]}}},data:this.data}]})},drawCharts(){this.drawPieChart()}}},s=o("d959"),c=o.n(s);const d=c()(l,[["render",r]]);t["default"]=d},"8e11":function(e,t,o){"use strict";o("a9ff")},"8efe":function(e,t,o){},"8f95":function(e,t,o){},"8fea":function(e,t){e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAARsAAAEaCAMAAAAWrwO2AAABRFBMVEVHcEz1w0L1r0f1xkL1xEL1ukT1tkX1uET1ukT1r0f1s0b1sEf1sEf1vkP1x0L1xUL1w0L1r0f1r0f1r0f1xEL1r0f1r0f1tUX1x0H1vkT1r0f1wkL1x0H1uUT1u0T1wkL1wkL1xEL1r0f1r0f1xUL1sUb1sEb1rkf1r0b1wEL1xUL1xUL////1vUP1u0T1w0L1v0P1t0X1skb1ukT1tEb1tUX1xUL1wUL1vUT1wEL1uEX1t0T1wUP1r0f1sEf1vEP1sUb1sUf1wkP1u0P1x0L1rkf1sEb1tkb1skX1vkL1r0b1skf++u/1ukP737D//vv3yl/1wkb86cH98NT75a///vz4zYP1tkn87Mb2xU/625n41oL86cf1tUj4ynv3wWP64KD62J762qP52In2ulH403v2v172uE/3wmX403f2u1P50YtdHHxEAAAALHRSTlMAqNic2hMLHga6VvGWGLtalaX9e32f+DDvJS7v+2G+uvzIxu0w3qyRX/LzYzLomj0AAAi/SURBVHja7drnX9s4GAdwQYFAC2V2t58O6Lg7OEYCAQ5I4Up7Bzn23nSP///9xUri2I5ly9awnPx+L9qYpE/0fJFkOykhdcm8ed3VOnx3VXsWFSWk8t3h1q7XbzIkNJnB1tWkkpCN9YJSWgeDeR72D0hoTVvTUjOwOND/kCnTfseg3/pSaHirRPG50+5Pc3N4tdltFheHb/rIdHZr3QNiWMhL4EC6O700HV2rsCmnq8ND80KqRPgQlsxJZTy1sb1w4XR2rcLGMXOcy6rb4AWxzE7g6wWklrsdZ6hF2Dhtlpbss1XP8OLaWtI2y+oSYzS3eio2/WtcYRZ6HxSekbzljT6m/jLNvTXY1OcetXm1ZvVQAXgvmrf6MzWlAOoVvfMegI1PBqy78kFhELV9R4rExTZYsmmFjZ/NcmtpSSXMMqUqwvv2A/IGNow8Id0KCVxjVa/Byvq61Sp9UH7Il27SJW3LmEpPuGy6yEvYMPKS3GoeEfc6C1tg67fIW9iwQprMhMlUclr3gMEmio3jhDvVlFmvBjZcNlOIm4iAhBnYBNiAADawgQ1sYAMb2MAGNmqTqyb8FQGvgU2KbXLxMxqSun/AelvYGGvjGUBORiLbRIxym5y6qLYRZIJNLJuc8mi0icMEmyg2OX1JxobbCzb8NuFlpqfjvPnhxcZucXNUMJvF3Y2LQ11Eemy+XRdHpaV4/U2zDX3un6BMs1Kv5/n5gUQZqnOgZeqQqWCQABK+5HLnG6PSs3GuYQtSb3O+M6ogO+cabBSR1FKZNfs7B18Pw6ZY6I7+9WBnvzJz1J+8lNsclFs5u+RZfjy5PCtXPNBsMy09n8vb8EmUDSpssp+UN+TPabf5SPu4npZok8td06IftdlMK8khnTZn8U9y/qHLqniYbpsLug1fyra5pBvyhQ6baWXZEJo27JzpOFWRaaXZtXr4Jb/uL6vubuXggxXXRfkH3xhmQ7eb79Uj4Ss+u+53uuGk24beef+Ub/OT3pVHGIjNE8FJsY27I3k2nsKwEbFxE/HpwAY2LKEgJNjAJpyoHim2zSRXaAvuI5H4F5ZMZJ/NYCPNZjJitNi44xlk/fi5kWAT18ZTaHIyBTYcCV9j9C/YRLaZlBQzbTiVYMNvMyk3ptsEMpFJpUmRjQuJPoANbOIENrAx3iYNhWEDG9jABjawgQ1sYAMb2MAGNrgPhw1sYAMb2DS2zV+VSKw5X0m1herxvEKbeU9go8lGmGjeL5JtWIWZ4Rgim9Jrw4QKFGS+Z9I23IGNRBue0MrMZ1Nj40CyH8JGoU1waAvuI8NtHIENbGCTIptsVrJNlibFNllHHB1Vj8Rt7FKOPrI1NtikzybriVqbbGhgY6xN4Ng4W4ieaIVd644bDjZybZS1kHxhCxA2cm0MakFh4cg25rWg0MYmgk0Um9qzIijpt8lmYRNqo6o8bBrXRmV52DSqjdrysOFtQf9nFLCBTSl/2qkcVgpXfuh+b+8xbFJpU21Iqk3UBA7W+2LYJGzjaihRm0iBjX4b3xaa3cZdHjawibDDwwY2wSBBMLCBDdcKgg1sfBZPNnr55rCJF9g0vo2K8rBpbBtV5ZW1AJuEbdSW12AzW4vfC2dZgU0abRxjm40TWnhWbRKwkTJu2DSPjcxxw6YZbOSPGzYJ2/ynDkZlCw1nI3yvqdvGGTkgzF9v2mz+Zoa2yvgx79U5bJrPhieFQsFmKThT+YFamzF2YGOaTaFQVeEIbcF9JJJa72E2PDphr4aNBJtCrCRoIx7YxLcpiMW2qTXUKDYiLGNjBW8LsGloG8F1VBhjtQCbRrMpSEl9edg0qo04B4MFNrDxXTxMkKa0iV4+SZuJWgKeYrwCNuI2AtNSydQvdTIRXHhCSmAT00a8jfg2fnPdMW5aeEJtYBPDRs7057exJfjGDZuEbcZkc0S0iTluPTZKE2AjNm7YwAY2sOGwkTLuhrMRvtdsPBv7ygU2sOG71nW3ABvnpptWmwUrsNFrwzzVmmGzUE7Y87BRbWN/AhV2iabBxtH0gmhgo8zGYuG/tJdms7BADxfUBjZybWLfEkqwqY7bTBuB22Vhm9q4YZMGG0kfsxhms1KL7xOwiWEj577EPJsV/sCGx8b15bOs+1ndNvVLZCV+FNtsWi0cy7c5to42ddio+xykaPWwJd1me8s6Kgp1zmGj9mPFXauHT2EfBkTfLD5ZdXdVgOTz5T9LUWyzZ/VwJN/myKq7l26bL1YP+1vxSfwb2Nq36n6J1zt3FNtsF+snjgQbOm2K2+m2mbiie+iJPBYrJ7TolVjnNONBUW1zXHTiyLEp0xSPldv8W4pKnNPy2fdoS9jE2iVL7WwdlSue8vUdSUOzTflUVdqQd063tkVttrdOd/bL9fbyemwqUfMt2PbOqILsrERfI1HjtJEp5JgH23vyafZWlKpos1lYOC3KlSmeKp4xLJu5csQ0PDm+kqhTvDoe1xI9NqWF9WNvt7gpyrJZ3N37sa1kkgTbzOlMXuqVCGz028zNmY2SjAtsQmzmzLUZTzjE1Akznnxgk6hNRBIjWGCTgE0+n6KTkSczVmCj2yafj0qToIIbpD6w0WFj8iqy2w2QUGBj6NYyIyGwUWRjFol9hpmRFNjIs8kLxNzVw7D5DTaM/E7alF/sqltMMyrzro08hQ0jt0lfIIepV3UzGtJHnkjeVhqCheYPkoENIw9I3WYcl0TP/ZE2mZk2QsgQbHwzVLLJPDP32iURlNqSIqQFNj5XNy0WDRkx/hvHmQQyQm2qEwc2jpSnDSE9j4z7bw2Ve2rdIu+qud9TsSG9DfjBFKt5fwtveomdPti4cqNGQzqfmrGzaFgtPLnd6bAh7c9hY+d5O3Gl42nS35QkP12qs6aDeNLZBxuavk5Sn5uPkmAxZIuxT969xDftN5re5kY7YWWk5ZnWL2MNmjClPG4ZIUHJDLXp+A7JsJVkpW0oQ0KT6e172vboWdPYPL7fdruv1wfmfwa5aEUL0+6AAAAAAElFTkSuQmCC"},"8ff1":function(e,t,o){},9015:function(e,t,o){},"90aa":function(e,t,o){e.exports={"menu-color":"hsla(0,0%,27%,.95)","menu-color-active":"hsla(208,100%,55%,.95)","menu-background":"#fff","gallery-second-menu-background":"#fff"}},"90bf":function(e,t,o){},9124:function(e,t,o){"use strict";o("5e49")},9169:function(e,t,o){},"91aa":function(e,t,o){"use strict";o.r(t);var n=o("f2bf");const a={class:"manage-container"},r={class:"manage-input"},i={class:"manage-button"},l=["innerHTML"];function s(e,t,o,s,c,d){const u=Object(n["resolveComponent"])("el-input"),m=Object(n["resolveComponent"])("el-form-item"),h=Object(n["resolveComponent"])("el-date-picker"),p=Object(n["resolveComponent"])("el-option"),b=Object(n["resolveComponent"])("el-select"),g=Object(n["resolveComponent"])("vab-query-form"),f=Object(n["resolveComponent"])("el-form"),v=Object(n["resolveComponent"])("el-button"),w=Object(n["resolveComponent"])("el-table-column"),k=Object(n["resolveComponent"])("el-table"),C=Object(n["resolveComponent"])("el-pagination"),y=Object(n["resolveComponent"])("knowledge-edit"),O=Object(n["resolveComponent"])("detail");return Object(n["openBlock"])(),Object(n["createElementBlock"])("div",a,[Object(n["createElementVNode"])("div",r,[Object(n["createVNode"])(f,{ref:"queryForm",model:c.queryForm,"label-width":"80px"},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(g,null,{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(m,{width:"100",prop:"title",label:"项目标题"},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(u,{modelValue:c.queryForm.title,"onUpdate:modelValue":t[0]||(t[0]=e=>c.queryForm.title=e),size:"small",placeholder:"请输入标题"},null,8,["modelValue"])]),_:1}),Object(n["createVNode"])(m,{width:"100",prop:"date",label:e.$t("defalult.rq")},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(h,{modelValue:c.queryForm.date,"onUpdate:modelValue":t[1]||(t[1]=e=>c.queryForm.date=e),size:"small",type:"date",placeholder:e.$t("defalult.xzrq")},null,8,["modelValue","placeholder"])]),_:1},8,["label"]),Object(n["createVNode"])(m,{width:"100",prop:"category",label:"分类"},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(b,{modelValue:c.queryForm.category,"onUpdate:modelValue":t[2]||(t[2]=e=>c.queryForm.category=e),size:"small",filterable:"",placeholder:"请选择分类"},{default:Object(n["withCtx"])(()=>[(Object(n["openBlock"])(!0),Object(n["createElementBlock"])(n["Fragment"],null,Object(n["renderList"])(c.dictData,e=>(Object(n["openBlock"])(),Object(n["createBlock"])(p,{key:e.dataCode,label:e.dataValue,value:e.dataCode},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1})]),_:1})]),_:1},8,["model"])]),Object(n["createElementVNode"])("div",i,[Object(n["createVNode"])(v,{size:"small",onClick:t[3]||(t[3]=e=>d.resetForm())},{default:Object(n["withCtx"])(()=>[Object(n["createTextVNode"])(Object(n["toDisplayString"])(e.$t("defalult.chongz")),1)]),_:1}),Object(n["createVNode"])(v,{type:"primary",size:"small",onClick:d.search},{default:Object(n["withCtx"])(()=>[Object(n["createTextVNode"])(Object(n["toDisplayString"])(e.$t("defalult.cx")),1)]),_:1},8,["onClick"]),Object(n["createVNode"])(v,{type:"primary",size:"small",onClick:t[4]||(t[4]=e=>d.handleAdd())},{default:Object(n["withCtx"])(()=>t[5]||(t[5]=[Object(n["createTextVNode"])(" 添加知识库 ")])),_:1}),Object(n["createVNode"])(v,{type:"primary",size:"small",onClick:d.deletes},{default:Object(n["withCtx"])(()=>[Object(n["createTextVNode"])(Object(n["toDisplayString"])(e.$t("defalult.plsc")),1)]),_:1},8,["onClick"])]),Object(n["createVNode"])(k,{data:c.tableData,stripe:"",border:"",style:{width:"100%"},onSelectionChange:d.handleSelectionChange},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(w,{fixed:"",type:"selection",width:"60",align:"center"}),Object(n["createVNode"])(w,{prop:"id",label:"Id",width:"50",align:"center"}),Object(n["createVNode"])(w,{prop:"addUser",label:"添加人",width:"250",align:"center"}),Object(n["createVNode"])(w,{prop:"title",label:"标题",width:"250",align:"center"}),Object(n["createVNode"])(w,{prop:"introduction",label:"简介",width:"150",align:"center"},{default:Object(n["withCtx"])(({row:e})=>[Object(n["createElementVNode"])("p",{innerHTML:e.introduction},null,8,l)]),_:1}),Object(n["createVNode"])(w,{prop:"createTime",label:e.$t("grouping.cjsj"),width:"150",align:"center"},null,8,["label"]),Object(n["createVNode"])(w,{label:e.$t("defalult.cz"),align:"center"},{default:Object(n["withCtx"])(({row:o})=>[Object(n["createVNode"])(v,{type:"text",onClick:e=>d.handleshow(o)},{default:Object(n["withCtx"])(()=>t[6]||(t[6]=[Object(n["createTextVNode"])("查看")])),_:2},1032,["onClick"]),Object(n["createVNode"])(v,{type:"text",onClick:e=>d.handleEdit(o)},{default:Object(n["withCtx"])(()=>[Object(n["createTextVNode"])(Object(n["toDisplayString"])(e.$t("defalult.bj")),1)]),_:2},1032,["onClick"]),Object(n["createVNode"])(v,{type:"text",onClick:e=>d.handleDelete(o)},{default:Object(n["withCtx"])(()=>[Object(n["createTextVNode"])(Object(n["toDisplayString"])(e.$t("defalult.sc")),1)]),_:2},1032,["onClick"])]),_:1},8,["label"])]),_:1},8,["data","onSelectionChange"]),Object(n["createVNode"])(C,{background:c.background,"current-page":c.queryForm.page,layout:c.layout,"page-size":c.queryForm.size,total:c.total,style:{"text-align":"right"},onCurrentChange:d.handleCurrentChange,onSizeChange:d.handleSizeChange},null,8,["background","current-page","layout","page-size","total","onCurrentChange","onSizeChange"]),Object(n["createVNode"])(y,{ref:"edit"},null,512),Object(n["createVNode"])(O,{ref:"detail"},null,512)])}o("14d9");var c=o("b862"),d=o("977f"),u=o("db6a"),m={components:{knowledgeEdit:c["default"],detail:d["default"]},data(){return{tableData:[],dialogTableVisible:!1,dialogFormVisible:!1,lazy:!0,layout:"total, sizes, prev, pager, next, jumper",total:0,ids:[],dictData:[],background:!0,listLoading:!1,elementLoadingText:"正在加载...",queryForm:{page:1,size:20,title:"",date:"",category:""}}},created(){this.fetchData(),this.getCategoryDict()},methods:{search(){this.fetchData()},async getCategoryDict(){const{data:e}=await Object(u["getCategoryDict"])();this.dictData=e},async fetchData(){this.listLoading=!0;const{data:e}=await Object(u["getList"])(this.queryForm);this.tableData=e.items,this.total=e.total,setTimeout(()=>{this.listLoading=!1},500)},resetForm(){this.$refs.queryForm.resetFields()},handleAdd(){this.$refs["edit"].showEdit()},handleEdit(e){this.$refs["edit"].showEdit(e)},handleshow(e){this.$refs["detail"].showData(e)},handleSelectionChange(e){const t=[];e.forEach(e=>{t.push(e.id)}),this.ids=t},deletes(){const e=this.ids;if(0==e.length)return this.$message({type:"info",message:"没有选中任何项"}),!1;this.deleteData(e)},deleteData(e){const t=this;this.$confirm("你确定要删除当前项吗?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(()=>{const{msg:o}=Object(u["doDelete"])(e);this.$message({type:"success",message:void 0==o?"删除成功":o}),setTimeout((function(){t.fetchData()}),1e3)}).catch(()=>{this.$message({type:"info",message:"已取消删除"})})},handleDelete(e){const t=this;t.deletes([e.id])},handleQuery(){this.queryForm.page=1,this.fetchData()},handleSizeChange(e){this.queryForm.size=e,this.fetchData()},handleCurrentChange(e){this.queryForm.page=e,this.fetchData()}}},h=(o("ec5c"),o("6ac1"),o("d959")),p=o.n(h);const b=p()(m,[["render",s],["__scopeId","data-v-48fcbe30"]]);t["default"]=b},9247:function(e,t,o){"use strict";o("74d1")},"92a1":function(e,t,o){"use strict";o("2062")},9315:function(e,t,o){},9330:function(e,t,o){"use strict";o("d561")},"93d3":function(e,t,o){"use strict";o.r(t);var n=o("f2bf");const a={key:0,class:"site-detail"},r={class:"title"},i={class:"body"},l={class:"body-item"},s={class:"base-item"},c={key:0,class:"item status"},d={class:"tips"},u={key:1,class:"item status"},m={class:"tips"},h={class:"item flow"},p={class:"flow-container"},b={class:"flow-value"},g={class:"tips"},f={class:"contact-item"},v={class:"label"},w={class:"value"},k={class:"contact-item"},C={class:"label"},y={class:"value"},O={key:0,class:"body-item"},j={key:1,class:"body-item",style:{"text-align":"center"}},x={style:{"line-height":"180px"}},_={class:"body-item"},V={class:"name"},A={class:"data",style:{color:"#3281fd"}};function N(e,t,N,D,E,T){const S=Object(n["resolveComponent"])("el-image");return E.isShow?(Object(n["openBlock"])(),Object(n["createElementBlock"])("div",a,[Object(n["createElementVNode"])("div",r,[Object(n["createVNode"])(S,{src:o("78a3"),class:"icon"},null,8,["src"]),Object(n["createElementVNode"])("span",null,Object(n["toDisplayString"])(E.deviceInfo.name),1)]),Object(n["createElementVNode"])("div",i,[Object(n["createElementVNode"])("div",l,[Object(n["createElementVNode"])("div",s,[1==E.deviceInfo.status?(Object(n["openBlock"])(),Object(n["createElementBlock"])("div",c,[Object(n["createVNode"])(S,{class:"tips-image",src:o("6582")},null,8,["src"]),Object(n["createElementVNode"])("div",d,Object(n["toDisplayString"])(e.$t("siteDetails.txzc")),1)])):(Object(n["openBlock"])(),Object(n["createElementBlock"])("div",u,[Object(n["createVNode"])(S,{class:"tips-image",src:o("4382"),style:{width:"54px",height:"54px"}},null,8,["src"]),Object(n["createElementVNode"])("div",m,Object(n["toDisplayString"])(e.$t("siteDetails.txzc")),1)])),Object(n["createElementVNode"])("div",h,[Object(n["createElementVNode"])("div",p,[Object(n["createElementVNode"])("div",b,Object(n["toDisplayString"])(E.todayWater),1),t[0]||(t[0]=Object(n["createElementVNode"])("div",{class:"flow-unit"},[Object(n["createElementVNode"])("span",null,"m"),Object(n["createElementVNode"])("sup",null,"3")],-1))]),Object(n["createElementVNode"])("div",g,Object(n["toDisplayString"])(e.$t("siteDetails.jrsl")),1)])]),t[1]||(t[1]=Object(n["createElementVNode"])("div",{class:"line"},null,-1)),Object(n["createElementVNode"])("div",f,[Object(n["createElementVNode"])("div",v,Object(n["toDisplayString"])(e.$t("siteDetails.lxr")),1),Object(n["createElementVNode"])("div",w,Object(n["toDisplayString"])(E.deviceInfo.leader),1)]),Object(n["createElementVNode"])("div",k,[Object(n["createElementVNode"])("div",C,Object(n["toDisplayString"])(e.$t("siteDetails.lxdh")),1),Object(n["createElementVNode"])("div",y,Object(n["toDisplayString"])(E.deviceInfo.contact),1)])]),""!=E.deviceInfo.boardImg&&void 0!=E.deviceInfo.boardImg?(Object(n["openBlock"])(),Object(n["createElementBlock"])("div",O,[Object(n["createVNode"])(S,{src:E.filePath+E.deviceInfo.boardImg,fit:"cover",style:{width:"250px",height:"180px",display:"block"}},null,8,["src"])])):(Object(n["openBlock"])(),Object(n["createElementBlock"])("div",j,[Object(n["createElementVNode"])("text",x,Object(n["toDisplayString"])(e.$t("siteDetails.zwgsp")),1)])),Object(n["createElementVNode"])("div",_,[(Object(n["openBlock"])(!0),Object(n["createElementBlock"])(n["Fragment"],null,Object(n["renderList"])(E.sensorData,(e,t)=>(Object(n["openBlock"])(),Object(n["createElementBlock"])("div",{key:t,class:"label-item"},[Object(n["createElementVNode"])("div",V,Object(n["toDisplayString"])(t),1),Object(n["createElementVNode"])("div",A,Object(n["toDisplayString"])(e),1)]))),128))])])])):Object(n["createCommentVNode"])("",!0)}var D=o("7cf8"),E=o("f121"),T={name:"SiteDetail",props:{markerSiteData:{type:Object,requied:!0,default:()=>({})}},data(){return{deviceInfo:[],filePath:E["baseURL"]+"/static/img/",sensorData:[],todayWater:"",isShow:!1}},watch:{markerSiteData:{handler(e){this.getDeviceInfo({deviceCode:e.code})}}},methods:{async getDeviceInfo(e){const{data:t}=await Object(D["getDeviceInfo"])(e);this.deviceInfo=t.device,this.todayWater=t.todayWater,this.sensorData=t.sensorData,this.isShow=!0},isDetailShow(e){this.isShow=e}}},S=(o("a2dc"),o("d959")),B=o.n(S);const I=B()(T,[["render",N],["__scopeId","data-v-1a29cbe8"]]);t["default"]=I},"93d4":function(e,t,o){"use strict";o.r(t);var n=o("f2bf");const a={class:"manage-container"};function r(e,t,o,r,i,l){const s=Object(n["resolveComponent"])("water-day"),c=Object(n["resolveComponent"])("el-tab-pane"),d=Object(n["resolveComponent"])("elec-day"),u=Object(n["resolveComponent"])("el-tabs");return Object(n["openBlock"])(),Object(n["createElementBlock"])("div",a,[Object(n["createVNode"])(u,{modelValue:i.activeName,"onUpdate:modelValue":t[0]||(t[0]=e=>i.activeName=e),onTabClick:l.handleClick},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(c,{label:e.$t("dfunction.slryxbb"),name:"first"},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(s,{ref:"water"},null,512)]),_:1},8,["label"]),Object(n["createVNode"])(c,{label:e.$t("dfunction.dlryxbb"),name:"second"},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(d,{ref:"elec"},null,512)]),_:1},8,["label"])]),_:1},8,["modelValue","onTabClick"])])}var i=o("5883"),l=o("198a"),s={name:"Index",components:{elecDay:i["default"],waterDay:l["default"]},data(){return{activeName:"first"}},computed:{height(){return 500}},mounted(){},methods:{handleClick(e){"first"==e.paneName?this.$refs["water"].showData():"second"==e.paneName&&this.$refs["elec"].showData()}}},c=(o("87ca"),o("d959")),d=o.n(c);const u=d()(s,[["render",r]]);t["default"]=u},"93eb":function(e,t,o){"use strict";o.r(t);var n=o("f2bf");const a={class:"manage-container"};function r(e,t,o,r,i,l){const s=Object(n["resolveComponent"])("el-table-column"),c=Object(n["resolveComponent"])("el-tag"),d=Object(n["resolveComponent"])("el-table"),u=Object(n["resolveDirective"])("loading");return Object(n["openBlock"])(),Object(n["createElementBlock"])("div",a,[Object(n["withDirectives"])((Object(n["openBlock"])(),Object(n["createBlock"])(d,{data:i.triggerData,border:"",stripe:"",style:{width:"100%"}},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(s,{type:"selection",width:"55"}),Object(n["createVNode"])(s,{prop:"id",label:"ID",width:"60",align:"center"}),Object(n["createVNode"])(s,{prop:"name",label:e.$t("trigger.cfqmc"),width:"160",align:"center"},null,8,["label"]),Object(n["createVNode"])(s,{prop:"device.name",label:e.$t("maintenance.sbmc"),width:"200",align:"center"},null,8,["label"]),Object(n["createVNode"])(s,{prop:"sensor.name",label:e.$t("sensor.cgqmc"),width:"200",align:"center"},null,8,["label"]),Object(n["createVNode"])(s,{prop:"triggerConditionParams",label:e.$t("trigger.cftj"),width:"200",align:"center"},null,8,["label"]),Object(n["createVNode"])(s,{prop:"triggerCycle",label:e.$t("trigger.cfzq"),width:"200",align:"center"},null,8,["label"]),Object(n["createVNode"])(s,{prop:"alarmFlag",label:"是否发送报警信息给用户",width:"120",align:"center"},{default:Object(n["withCtx"])(({row:e})=>[1==e.alarmFlag?(Object(n["openBlock"])(),Object(n["createBlock"])(c,{key:"发送",effect:"dark",type:"success",size:"mini"},{default:Object(n["withCtx"])(()=>t[0]||(t[0]=[Object(n["createTextVNode"])(" 发送 ")])),_:1})):Object(n["createCommentVNode"])("",!0),0==e.alarmFlag?(Object(n["openBlock"])(),Object(n["createBlock"])(c,{key:"不发送",effect:"dark",type:"danger",size:"mini"},{default:Object(n["withCtx"])(()=>t[1]||(t[1]=[Object(n["createTextVNode"])(" 不发送 ")])),_:1})):Object(n["createCommentVNode"])("",!0)]),_:1}),Object(n["createVNode"])(s,{prop:"alarmLevel.dataValue",label:e.$t("alarm.bjjb"),width:"200",align:"center"},null,8,["label"]),Object(n["createVNode"])(s,{prop:"controlFlag",label:"是否联控其他设备",width:"120",align:"center"},{default:Object(n["withCtx"])(({row:e})=>[1==e.controlFlag?(Object(n["openBlock"])(),Object(n["createBlock"])(c,{key:"联控",effect:"success",type:"success",size:"mini"},{default:Object(n["withCtx"])(()=>t[2]||(t[2]=[Object(n["createTextVNode"])(" 联控 ")])),_:1})):Object(n["createCommentVNode"])("",!0),0==e.controlFlag?(Object(n["openBlock"])(),Object(n["createBlock"])(c,{key:"不发送",effect:"dark",type:"danger",size:"mini"},{default:Object(n["withCtx"])(()=>t[3]||(t[3]=[Object(n["createTextVNode"])(" 未联控 ")])),_:1})):Object(n["createCommentVNode"])("",!0)]),_:1}),Object(n["createVNode"])(s,{prop:"controlDevice",label:"联控设备",width:"200",align:"center"}),Object(n["createVNode"])(s,{prop:"controlSensor",label:"联控设备的传感器",width:"200",align:"center"}),Object(n["createVNode"])(s,{prop:"controlData",label:"给联控设备下发的数据",width:"200",align:"center"}),Object(n["createVNode"])(s,{prop:"alarmTemplate",label:"报警信息模板",width:"200",align:"center"}),Object(n["createVNode"])(s,{prop:"status",label:"触发器状态",width:"120",align:"center"},{default:Object(n["withCtx"])(({row:e})=>[1==e.status?(Object(n["openBlock"])(),Object(n["createBlock"])(c,{key:"禁用",effect:"dark",type:"danger",size:"mini"},{default:Object(n["withCtx"])(()=>t[4]||(t[4]=[Object(n["createTextVNode"])(" 禁用 ")])),_:1})):Object(n["createCommentVNode"])("",!0),0==e.status?(Object(n["openBlock"])(),Object(n["createBlock"])(c,{key:"正常",effect:"dark",type:"success",size:"mini"},{default:Object(n["withCtx"])(()=>t[5]||(t[5]=[Object(n["createTextVNode"])(" 正常 ")])),_:1})):Object(n["createCommentVNode"])("",!0)]),_:1})]),_:1},8,["data"])),[[u,i.listLoading]])])}var i=o("4303"),l={components:{},data(){return{lazy:!0,activeName:"first",layout:"total, sizes, prev, pager, next, jumper",total:0,background:!0,listLoading:!0,elementLoadingText:"正在加载...",triggerData:[],queryForm:{triggerId:""}}},computed:{height(){return 500}},created(){this.queryForm.triggerId=this.$route.query.triggerId},methods:{async fetchData(){this.listLoading=!0;const{data:e}=await Object(i["selectTriggerById"])(this.queryForm);this.triggerData[0]=e,this.replaceData(),setTimeout(()=>{this.listLoading=!1},500)},replaceData(){const e=this.triggerData[0].triggerCondition.dataValue,t=this.triggerData[0].triggerConditionParams.split(",");let o="";e.includes("{x}")&&e.includes("{y}")?(o=e.replace("{x}",t[0]),o=o.replace("{y}",t[1])):e.includes("{m}")&&e.includes("{x}")?(o=e.replace("{m}",t[0]),o=o.replace("{x}",t[1])):e.includes("{x}")?o=e.replace("{x}",t[0]):e.includes("{y}")?o=e.replace("{y}",t[0]):e.includes("{m}")&&(o=e.replace("{m}",t[0])),this.triggerData[0].triggerConditionParams=o}}},s=(o("1745"),o("d959")),c=o.n(s);const d=c()(l,[["render",r],["__scopeId","data-v-0bd05a9c"]]);t["default"]=d},"93ff":function(e,t,o){},9408:function(e,t,o){e.exports={"menu-color":"hsla(0,0%,27%,.95)","menu-color-active":"hsla(208,100%,55%,.95)","menu-background":"#fff","gallery-second-menu-background":"#fff"}},9456:function(e,t,o){"use strict";o("c730")},"94b0":function(e,t,o){"use strict";o.r(t),o.d(t,"dailyReport",(function(){return r})),o.d(t,"weeklyReport",(function(){return i})),o.d(t,"monthlyReport",(function(){return l})),o.d(t,"exportDevice",(function(){return s})),o.d(t,"elecDay",(function(){return c})),o.d(t,"elecDayExport",(function(){return d})),o.d(t,"deviceMonth",(function(){return u})),o.d(t,"deviceMonthExport",(function(){return m})),o.d(t,"waterMonth",(function(){return h})),o.d(t,"waterMonthExport",(function(){return p})),o.d(t,"elecMonth",(function(){return b})),o.d(t,"elecMonthExport",(function(){return g})),o.d(t,"haianList",(function(){return f})),o.d(t,"saveHian",(function(){return v})),o.d(t,"addHian",(function(){return w})),o.d(t,"delHian",(function(){return k})),o.d(t,"HianDevice",(function(){return C}));var n=o("b775"),a=o("f121");function r(e){return Object(n["default"])({url:"/dataAnalysis/dailyReport?page="+e.page+"&size="+e.size+"&projectId="+e.projectId+"&time="+e.time,method:"get",data:e})}function i(e){return Object(n["default"])({url:"/dataAnalysis/weeklyReport?page="+e.page+"&size="+e.size+"&projectId="+e.projectId+"&start="+e.start+"&end="+e.end,method:"get",data:e})}function l(e){let t="?page="+e.page+"&size="+e.size;return""!=e.projectId&&(t+="&projectId="+e.projectId),""!=e.month&&(t+="&month="+e.month),""!=e.deviceName&&(t+="&deviceName="+e.deviceName),Object(n["default"])({url:"/waterElec/waterDay"+t,method:"get",data:e})}function s(e){let t="?projectId="+e.projectId+"&month="+e.month;return""!=e.deviceName&&(t+="&deviceName="+e.deviceName),a["baseURL"]+"/waterElec/waterDayExport"+t}function c(e){let t="?page="+e.page+"&size="+e.size;return""!=e.projectId&&(t+="&projectId="+e.projectId),""!=e.month&&(t+="&month="+e.month),""!=e.deviceName&&(t+="&deviceName="+e.deviceName),Object(n["default"])({url:"/waterElec/elecDay"+t,method:"get",data:e})}function d(e){let t="?projectId="+e.projectId+"&month="+e.month;return""!=e.deviceName&&(t+="&deviceName="+e.deviceName),a["baseURL"]+"/waterElec/elecDayExport"+t}function u(e){let t="?page="+e.page+"&size="+e.size;return""!=e.month&&(t+="&month="+e.month),""!=e.projectId&&(t+="&projectId="+e.projectId),""!=e.projectName&&(t+="&projectName="+e.projectName),Object(n["default"])({url:"/deviceReport/deviceMonth"+t,method:"get",data:e})}function m(e){let t="?month="+e.month;return""!=e.projectName&&(t+="&projectName="+e.projectName),""!=e.projectId&&(t+="&projectId="+e.projectId),a["baseURL"]+"/deviceReport/deviceMonth/export"+t}function h(e){let t="?page="+e.page+"&size="+e.size;return""!=e.projectId&&(t+="&projectId="+e.projectId),""!=e.year&&(t+="&year="+e.year),""!=e.deviceName&&(t+="&deviceName="+e.deviceName),Object(n["default"])({url:"/waterElec/waterMonth"+t,method:"get",data:e})}function p(e){let t="?projectId="+e.projectId+"&year="+e.year;return""!=e.deviceName&&(t+="&deviceName="+e.deviceName),a["baseURL"]+"/waterElec/waterMonthExport"+t}function b(e){let t="?page="+e.page+"&size="+e.size;return""!=e.projectId&&(t+="&projectId="+e.projectId),""!=e.year&&(t+="&year="+e.year),""!=e.deviceName&&(t+="&deviceName="+e.deviceName),Object(n["default"])({url:"/waterElec/elecMonth"+t,method:"get",data:e})}function g(e){let t="?projectId="+e.projectId+"&year="+e.year;return""!=e.deviceName&&(t+="&deviceName="+e.deviceName),a["baseURL"]+"/waterElec/elecMonthExport"+t}function f(e){let t="?page="+e.page+"&size="+e.size;return e.startTime&&(t+="&startTime="+e.startTime,t+="&endTime="+e.endTime),Object(n["default"])({url:"/haian/list"+t,method:"get"})}function v(e){return Object(n["default"])({url:"/haian/update",method:"post",data:e})}function w(e){return Object(n["default"])({url:"/haian/add",method:"post",data:e})}function k(e){return Object(n["default"])({url:"/haian/remove/"+e,method:"post"})}function C(){return Object(n["default"])({url:"/haian/devices",method:"get"})}},"94eb":function(e,t,o){},9504:function(e,t,o){},9513:function(e,t,o){"use strict";o.r(t),o.d(t,"transformLon",(function(){return i})),o.d(t,"transformLat",(function(){return l})),o.d(t,"outOfChina",(function(){return s})),o.d(t,"gcj_wgs_encrypts",(function(){return c}));var n=3.141592653589793,a=6378245,r=.006693421622965943;function i(e,t){var o=300+e+2*t+.1*e*e+.1*e*t+.1*Math.sqrt(Math.abs(e));return o+=(20*Math.sin(6*e*n)+20*Math.sin(2*e*n)*2)/3,o+=(20*Math.sin(e*n)+40*Math.sin(e/3*n)*2)/3,o+=(150*Math.sin(e/12*n)+300*Math.sin(e/30*n)*2)/3,o}function l(e,t){var o=2*e-100+3*t+.2*t*t+.1*e*t+.2*Math.sqrt(Math.abs(e));return o+=(20*Math.sin(6*e*n)+20*Math.sin(2*e*n)*2)/3,o+=2*(20*Math.sin(t*n)+40*Math.sin(t/3*n))/3,o+=2*(160*Math.sin(t/12*n)+320*Math.sin(t*n/30))/3,o}function s(e,t){return t<72.004||t>137.8347||(e<.8293||e>55.8271)}function c(e,t){var o={};if(s(e,t))return o.lat=e,o.lng=t,o;var c=l(t-105,e-35),d=i(t-105,e-35),u=e/180*n,m=Math.sin(u);m=1-r*m*m;var h=Math.sqrt(m);c=180*c/(a*(1-r))/(m*h),d=180*d/(a/h*Math.cos(u)*n);var p=e+c*n,b=t+d;return o.lat=2*e-p,o.lon=2*t-b,o}},"9520b":function(e,t,o){"use strict";o.r(t);var n=o("f2bf");const a={class:"dialog-footer"};function r(e,t,o,r,i,l){const s=Object(n["resolveComponent"])("el-option"),c=Object(n["resolveComponent"])("el-select"),d=Object(n["resolveComponent"])("el-form-item"),u=Object(n["resolveComponent"])("el-form"),m=Object(n["resolveComponent"])("el-button"),h=Object(n["resolveComponent"])("el-dialog");return Object(n["openBlock"])(),Object(n["createBlock"])(h,{modelValue:i.dialogFormVisible,"onUpdate:modelValue":t[1]||(t[1]=e=>i.dialogFormVisible=e),title:e.title,width:"500px",onClose:l.close},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(u,{ref:"form",model:i.form,rules:e.rules,"label-width":"80px"},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(d,{label:"角色授权",prop:"menuIds"},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(c,{modelValue:i.form.menuIds,"onUpdate:modelValue":t[0]||(t[0]=e=>i.form.menuIds=e),size:"small",multiple:"",placeholder:"请选择"},{default:Object(n["withCtx"])(()=>[(Object(n["openBlock"])(!0),Object(n["createElementBlock"])(n["Fragment"],null,Object(n["renderList"])(i.parentData,e=>(Object(n["openBlock"])(),Object(n["createBlock"])(s,{key:e.id,label:e.name,value:e.id},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1})]),_:1},8,["model","rules"]),Object(n["createElementVNode"])("div",a,[Object(n["createVNode"])(m,{type:"primary",size:"small",onClick:l.save},{default:Object(n["withCtx"])(()=>t[2]||(t[2]=[Object(n["createTextVNode"])("确 定")])),_:1},8,["onClick"]),Object(n["createVNode"])(m,{size:"small",onClick:l.close},{default:Object(n["withCtx"])(()=>t[3]||(t[3]=[Object(n["createTextVNode"])("取 消")])),_:1},8,["onClick"])])]),_:1},8,["modelValue","title","onClose"])}var i=o("cc5e"),l=o("1f27"),s={name:"RoleGrant",data(){return{form:{roleId:"",menuIds:""},node:[],clearable:!0,parentData:[],dialogFormVisible:!1}},created(){},methods:{async getParentData(){const{data:e}=await Object(l["miniMenuSelect"])();this.parentData=e},async getNodeData(){const{data:e}=await Object(i["getMiniRoleMenuIdsByRoleId"])({roleId:this.form.roleId});this.form.menuIds=e},roleGrant(e){this.title="角色授权",this.form=Object.assign({},e),this.form.roleId=e.id,this.dialogFormVisible=!0,this.getNodeData(),this.getParentData()},close(){this.$refs["form"].resetFields(),this.form=this.$options.data().form,this.dialogFormVisible=!1,this.$emit("fetch-data")},save(){this.$refs["form"].validate(async e=>{if(!e)return!1;{const{msg:e}=await Object(i["miniRoleAssignMenu"])(this.form);this.$notify({title:e,type:"success"}),this.dialogFormVisible=!1}})}}},c=(o("120b"),o("d959")),d=o.n(c);const u=d()(s,[["render",r]]);t["default"]=u},9530:function(e,t,o){"use strict";o("d393")},"959f":function(e,t,o){"use strict";o("1550")},9643:function(e,t,o){"use strict";o("81cb")},9651:function(e,t,o){e.exports={"menu-color":"hsla(0,0%,27%,.95)","menu-color-active":"hsla(208,100%,55%,.95)","menu-background":"#fff","gallery-second-menu-background":"#fff"}},"96ca":function(e,t,o){},"977f":function(e,t,o){"use strict";o.r(t);var n=o("f2bf");const a=["innerHTML"];function r(e,t,o,r,i,l){const s=Object(n["resolveComponent"])("el-dialog");return Object(n["openBlock"])(),Object(n["createBlock"])(s,{modelValue:i.dialogFormVisible,"onUpdate:modelValue":t[0]||(t[0]=e=>i.dialogFormVisible=e),title:i.title,width:"500px",onClose:l.close},{default:Object(n["withCtx"])(()=>[Object(n["createElementVNode"])("p",{innerHTML:i.form.detail},null,8,a)]),_:1},8,["modelValue","title","onClose"])}var i={data(){return{form:{id:"",title:"",introduction:"",detail:"",category:"",addUser:""},dialogFormVisible:!1,title:""}},created(){},methods:{showData(e){this.title="知识库内容",this.form=Object.assign({},e),this.dialogFormVisible=!0},close(){this.dialogFormVisible=!1,this.$emit("fetch-data")}}},l=(o("307a"),o("d959")),s=o.n(l);const c=s()(i,[["render",r],["__scopeId","data-v-278dbf80"]]);t["default"]=c},"977f4":function(e,t,o){},9809:function(e,t,o){},"987a":function(e,t,o){},"988d":function(e,t,o){},"98d4":function(e,t,o){e.exports={"menu-color":"hsla(0,0%,27%,.95)","menu-color-active":"hsla(208,100%,55%,.95)","menu-background":"#fff","gallery-second-menu-background":"#fff"}},"98f4":function(e,t,o){"use strict";o("4b10")},9937:function(e,t,o){},9990:function(e,t,o){"use strict";o("8efe")},"99b1":function(e,t,o){"use strict";o.r(t);var n=o("f2bf");const a={class:"manage-container"};function r(e,t,o,r,i,l){const s=Object(n["resolveComponent"])("el-table-column"),c=Object(n["resolveComponent"])("el-button"),d=Object(n["resolveComponent"])("el-table"),u=Object(n["resolveComponent"])("el-pagination"),m=Object(n["resolveComponent"])("vab-query-form-right-panel"),h=Object(n["resolveComponent"])("vab-query-form"),p=Object(n["resolveDirective"])("loading");return Object(n["openBlock"])(),Object(n["createElementBlock"])("div",a,[Object(n["withDirectives"])((Object(n["openBlock"])(),Object(n["createBlock"])(d,{data:i.data,border:"",stripe:"",style:{width:"100%"}},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(s,{prop:"jiedao",label:e.$t("vehicles.clmc"),width:"120",align:"center"},null,8,["label"]),Object(n["createVNode"])(s,{prop:"shequ",label:e.$t("vehicle.cph"),width:"200",align:"center"},null,8,["label"]),Object(n["createVNode"])(s,{prop:"mingcheng",label:"车牌型号",width:"200",align:"center"}),Object(n["createVNode"])(s,{prop:"guimo",label:"是否使用",width:"200",align:"center"}),Object(n["createVNode"])(s,{fixed:"right",label:e.$t("defalult.cz"),align:"center"},{default:Object(n["withCtx"])(({row:t})=>[Object(n["createVNode"])(c,{type:"text",onClick:e=>l.handleDelete(t)},{default:Object(n["withCtx"])(()=>[Object(n["createTextVNode"])(Object(n["toDisplayString"])(e.$t("defalult.sc")),1)]),_:2},1032,["onClick"])]),_:1},8,["label"])]),_:1},8,["data"])),[[p,i.listLoading]]),Object(n["createVNode"])(h,null,{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(m,null,{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(u,{background:i.background,"current-page":i.queryForm.page,layout:i.layout,"page-size":i.queryForm.size,total:i.total,onCurrentChange:l.handleCurrentChange,onSizeChange:l.handleSizeChange},null,8,["background","current-page","layout","page-size","total","onCurrentChange","onSizeChange"])]),_:1})]),_:1})])}var i={name:"Index",components:{},data(){return{data:[{id:1,jiedao:"检测车",shequ:"123456",mingcheng:"车牌型号",guimo:"是"},{id:2,jiedao:"检测车",shequ:"123456",mingcheng:"车牌型号",guimo:"是"},{id:3,jiedao:"检测车",shequ:"123456",mingcheng:"车牌型号",guimo:"是"}],lazy:!0,activeName:"first",layout:"total, sizes, prev, pager, next, jumper",total:0,input:"",textarea:"",list:[],background:!0,listLoading:!0,elementLoadingText:"正在加载...",queryForm:{page:1,size:20,name:""}}},computed:{height(){return 500}},created(){this.fetchData()},methods:{async fetchData(){this.listLoading=!0,setTimeout(()=>{this.listLoading=!1},500)},handleAdd(){this.$refs["edit"].showEdit()},handleEdit(e){this.$refs["edit"].showEdit(e)},handleQuery(){this.queryForm.page=1,this.fetchData()},handleSizeChange(e){this.queryForm.size=e,this.fetchData()},handleCurrentChange(e){this.queryForm.page=e,this.fetchData()},handleDelete(e){e.id&&this.$confirm("你确定要删除当前项吗?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(()=>{this.$message({type:"success",message:"删除成功"})}).catch(()=>{this.$message({type:"info",message:"已取消删除"})})}}},l=(o("c0df"),o("d959")),s=o.n(l);const c=s()(i,[["render",r],["__scopeId","data-v-53117b5c"]]);t["default"]=c},"9a69":function(e,t,o){"use strict";o("55c3")},"9aac":function(e,t,o){"use strict";o("4b43")},"9b39":function(e,t,o){"use strict";o("98d4")},"9c0e":function(e,t,o){"use strict";o.r(t);var n=o("f2bf");const a={class:"manage-container"};function r(e,t,o,r,i,l){const s=Object(n["resolveComponent"])("el-table-column"),c=Object(n["resolveComponent"])("el-image"),d=Object(n["resolveComponent"])("el-button"),u=Object(n["resolveComponent"])("el-table"),m=Object(n["resolveComponent"])("el-pagination"),h=Object(n["resolveComponent"])("vab-query-form-right-panel"),p=Object(n["resolveComponent"])("vab-query-form"),b=Object(n["resolveComponent"])("sensor-add"),g=Object(n["resolveDirective"])("loading");return Object(n["openBlock"])(),Object(n["createElementBlock"])("div",a,[Object(n["withDirectives"])((Object(n["openBlock"])(),Object(n["createBlock"])(u,{data:i.data,border:"",stripe:"",style:{width:"100%"}},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(s,{prop:"name",label:e.$t("sensor.cgqmc"),width:"120",align:"center"},null,8,["label"]),Object(n["createVNode"])(s,{prop:"readWrite",label:e.$t("sensor.dxcx"),width:"120",align:"center"},null,8,["label"]),Object(n["createVNode"])(s,{prop:"dataKey",label:e.$t("sensor.csid"),width:"200",align:"center"},null,8,["label"]),Object(n["createVNode"])(s,{prop:"dataValue",label:e.$t("sensor.cgqsz"),width:"200",align:"center"},null,8,["label"]),Object(n["createVNode"])(s,{prop:"unit",label:e.$t("sensor.dw"),width:"120",align:"center"},null,8,["label"]),Object(n["createVNode"])(s,{prop:"img",label:e.$t("sensor.tp"),width:"120",align:"center"},{default:Object(n["withCtx"])(({row:e})=>[e.img?(Object(n["openBlock"])(),Object(n["createBlock"])(c,{key:0,style:{width:"100px",height:"100px"},src:i.fileUrl+e.img,"preview-src-list":[i.fileUrl+e.img]},null,8,["src","preview-src-list"])):Object(n["createCommentVNode"])("",!0)]),_:1},8,["label"]),Object(n["createVNode"])(s,{fixed:"right",label:e.$t("defalult.cz"),align:"center"},{default:Object(n["withCtx"])(({row:t})=>[Object(n["createVNode"])(d,{type:"text",onClick:e=>l.historical(t)},{default:Object(n["withCtx"])(()=>[Object(n["createTextVNode"])(Object(n["toDisplayString"])(e.$t("sensor.lssj")),1)]),_:2},1032,["onClick"])]),_:1},8,["label"])]),_:1},8,["data"])),[[g,i.listLoading]]),Object(n["createVNode"])(p,null,{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(h,null,{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(m,{background:i.background,"current-page":i.queryForm.page,layout:i.layout,"page-size":i.queryForm.size,total:i.total,onCurrentChange:l.handleCurrentChange,onSizeChange:l.handleSizeChange},null,8,["background","current-page","layout","page-size","total","onCurrentChange","onSizeChange"])]),_:1})]),_:1}),Object(n["createVNode"])(b,{ref:"edit"},null,512)])}o("14d9");var i=o("aa98"),l=o("3038"),s=o("7a86"),c=o("f121"),d={components:{sensorAdd:s["default"]},data(){return{fileUrl:c["baseURL"]+"/static/img/",sensorData:[],data:[],deviceCode:"",projectId:"",lazy:!0,layout:"total, sizes, prev, pager, next, jumper",total:0,background:!0,listLoading:!0,elementLoadingText:"正在加载...",deviceId:"",historyData:[],queryForm:{sensorName:"",deviceCode:"",page:1,size:10}}},computed:{height(){return 500}},created(){this.queryForm.deviceCode=this.$route.query.deviceCode,this.fetchData()},methods:{async fetchData(){this.listLoading=!0;const{data:e}=await Object(i["getLatestData"])(this.queryForm);this.data=e.items,this.total=e.total,setTimeout(()=>{this.listLoading=!1},500)},async exportData(){const e=await Object(i["exportData"])(this.queryForm);l["default"].downloadFile(e,{fileName:"站点最新数据.xls"})},historical(e){this.$router.push({path:"/showdata",name:"历史数据",query:{dataKey:e.dataKey,deviceCode:this.queryForm.deviceCode}})},handleAdd(){this.$refs["edit"].showEdit(this.queryForm.deviceId,0)},handleEdit(e){e.deviceId=this.queryForm.deviceId,this.$refs["edit"].showEdit(e,1)},search(){this.fetchData()},resetForm(){this.$refs.queryForm.resetFields()},handleQuery(){this.queryForm.page=1,this.fetchData()},handleSizeChange(e){this.queryForm.size=e,this.fetchData()},handleCurrentChange(e){this.queryForm.page=e,this.fetchData()}}},u=(o("2b50"),o("d959")),m=o.n(u);const h=m()(d,[["render",r],["__scopeId","data-v-4dd4f5be"]]);t["default"]=h},"9c61":function(e,t,o){"use strict";o.r(t);var n=o("f2bf");const a={class:"manage-container"};function r(e,t,o,r,i,l){const s=Object(n["resolveComponent"])("el-table-column"),c=Object(n["resolveComponent"])("el-tag"),d=Object(n["resolveComponent"])("el-button"),u=Object(n["resolveComponent"])("el-table"),m=Object(n["resolveDirective"])("loading");return Object(n["openBlock"])(),Object(n["createElementBlock"])("div",a,[Object(n["withDirectives"])((Object(n["openBlock"])(),Object(n["createBlock"])(u,{id:"table",data:i.tableData,border:"",stripe:"",style:{width:"100%"}},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(s,{prop:"id",label:e.$t("maintenance.sb"),width:"220",align:"center"},null,8,["label"]),Object(n["createVNode"])(s,{prop:"account",label:"账户",width:"120",align:"center"}),Object(n["createVNode"])(s,{prop:"deviceSerial",label:"设备序列号",width:"100",align:"center"}),Object(n["createVNode"])(s,{prop:"deviceName",label:e.$t("maintenance.sbmc"),align:"center"},null,8,["label"]),Object(n["createVNode"])(s,{prop:"addTime",label:"添加时间",width:"180",align:"center"}),Object(n["createVNode"])(s,{prop:"ldDeviceName",label:"所属站点",width:"100",align:"center"}),Object(n["createVNode"])(s,{prop:"status",label:e.$t("dataEnquiry.ljzt"),width:"100",align:"center"},{default:Object(n["withCtx"])(({row:e})=>[1==e.status?(Object(n["openBlock"])(),Object(n["createBlock"])(c,{key:"在线",effect:"dark",type:"success",size:"mini"},{default:Object(n["withCtx"])(()=>t[0]||(t[0]=[Object(n["createTextVNode"])(" 在线 ")])),_:1})):Object(n["createCommentVNode"])("",!0),0==e.status?(Object(n["openBlock"])(),Object(n["createBlock"])(c,{key:"离线",effect:"dark",type:"danger",size:"mini"},{default:Object(n["withCtx"])(()=>t[1]||(t[1]=[Object(n["createTextVNode"])(" 离线 ")])),_:1})):Object(n["createCommentVNode"])("",!0)]),_:1},8,["label"]),Object(n["createVNode"])(s,{fixed:"right",label:e.$t("defalult.cz"),width:"100",align:"center"},{default:Object(n["withCtx"])(({row:e})=>[Object(n["createVNode"])(d,{type:"text",onClick:t=>l.handleLive(e)},{default:Object(n["withCtx"])(()=>t[2]||(t[2]=[Object(n["createTextVNode"])("播放")])),_:2},1032,["onClick"])]),_:1},8,["label"])]),_:1},8,["data"])),[[m,i.listLoading]])])}o("14d9");var i=o("093a"),l={data(){return{tableData:[],lazy:!0,layout:"total, sizes, prev, pager, next, jumper",total:0,background:!0,listLoading:!1,elementLoadingText:"正在加载...",queryForm:{projectId:""}}},created(){this.queryForm.projectId=sessionStorage.getItem("projectId"),this.fetchData()},methods:{async fetchData(){const{data:e}=await Object(i["getList"])(this.queryForm);this.tableData=e},handleLive(e){this.$router.push({path:"/fluoriteSensorData",name:"监控视频",query:{account:e.account,deviceSerial:e.deviceSerial}})}}},s=(o("f15e"),o("d959")),c=o.n(s);const d=c()(l,[["render",r]]);t["default"]=d},"9d47":function(e,t,o){"use strict";o("2f47")},"9d88":function(e,t,o){},"9e4b":function(e,t,o){"use strict";o.r(t);var n=o("f2bf");const a={class:"dialog-footer"};function r(e,t,o,r,i,l){const s=Object(n["resolveComponent"])("el-input"),c=Object(n["resolveComponent"])("el-form-item"),d=Object(n["resolveComponent"])("el-form"),u=Object(n["resolveComponent"])("el-button"),m=Object(n["resolveComponent"])("el-dialog");return Object(n["openBlock"])(),Object(n["createBlock"])(m,{modelValue:i.dialogFormVisible,"onUpdate:modelValue":t[1]||(t[1]=e=>i.dialogFormVisible=e),title:i.title,width:"500px",onClose:l.close},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(d,{ref:"form",model:i.form,rules:i.rules,"label-width":"80px","label-position":"left"},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(c,{label:e.$t("grouping.zmc"),prop:"title"},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(s,{modelValue:i.form.title,"onUpdate:modelValue":t[0]||(t[0]=e=>i.form.title=e),modelModifiers:{trim:!0},size:"small",autocomplete:"off"},null,8,["modelValue"])]),_:1},8,["label"])]),_:1},8,["model","rules"]),Object(n["createElementVNode"])("div",a,[Object(n["createVNode"])(u,{type:"primary",size:"small",onClick:l.save},{default:Object(n["withCtx"])(()=>t[2]||(t[2]=[Object(n["createTextVNode"])("确 定")])),_:1},8,["onClick"]),Object(n["createVNode"])(u,{size:"small",onClick:l.close},{default:Object(n["withCtx"])(()=>t[3]||(t[3]=[Object(n["createTextVNode"])("取 消")])),_:1},8,["onClick"])])]),_:1},8,["modelValue","title","onClose"])}var i=o("23ba"),l={name:"GroupEdit",data(){return{form:{id:"",title:"",name:"",projectId:""},areaData:[],cityData:[],rules:{title:[{required:!0,trigger:"blur",message:"请输入项目名称"}]},title:"",dialogFormVisible:!1}},created(){},methods:{handleCountryChange(e){if(e){const t=e.length-1;this.form.parentId=e[t]}else this.form.parentId=0},showEdit(e){this.title="添加组",this.form.projectId=e,this.dialogFormVisible=!0},close(){this.$refs["form"].resetFields(),this.form=this.$options.data().form,this.dialogFormVisible=!1,this.$emit("fetch-data")},save(){this.$refs["form"].validate(async e=>{if(!e)return!1;{this.form.name=this.form.title;const{msg:e}=await Object(i["doAdd"])(this.form);this.$notify({title:e,type:"success"}),this.$refs["form"].resetFields(),this.dialogFormVisible=!1,this.$emit("RefreshGroup",this.form.projectId)}})}}},s=o("d959"),c=o.n(s);const d=c()(l,[["render",r]]);t["default"]=d},"9e7a":function(e,t,o){},"9ed6":function(e,t,o){"use strict";o.r(t);var n=o("f2bf");const a={class:"login-container"},r={class:"login"},i=["src"],l={class:"el-tabs"},s={class:"el-tabs-left"},c={style:{"text-align":"center"}},d=["src"],u={class:"el-tabs-right"};function m(e,t,m,h,p,b){const g=Object(n["resolveComponent"])("vab-remix-icon"),f=Object(n["resolveComponent"])("el-input"),v=Object(n["resolveComponent"])("el-form-item"),w=Object(n["resolveComponent"])("el-button"),k=Object(n["resolveComponent"])("el-form"),C=Object(n["resolveDirective"])("focus");return Object(n["openBlock"])(),Object(n["createElementBlock"])("div",a,[t[3]||(t[3]=Object(n["createElementVNode"])("div",{class:"login-logo"},null,-1)),Object(n["createElementVNode"])("div",r,[Object(n["createElementVNode"])("img",{src:o("5691"),style:{width:"100%"}},null,8,i),Object(n["createElementVNode"])("div",l,[Object(n["createElementVNode"])("div",s,[Object(n["createElementVNode"])("div",c,[Object(n["createElementVNode"])("img",{class:"el-tabs-ewm",style:{width:"160px",height:"160px",margin:"auto"},src:p.codeUrl,alt:""},null,8,d),t[2]||(t[2]=Object(n["createElementVNode"])("div",null,null,-1))])]),Object(n["createElementVNode"])("div",u,[Object(n["createVNode"])(k,{ref:"form",model:p.form,"label-width":"80px"},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(v,{prop:"userName"},{default:Object(n["withCtx"])(()=>[Object(n["withDirectives"])((Object(n["openBlock"])(),Object(n["createBlock"])(f,{modelValue:p.form.userName,"onUpdate:modelValue":t[0]||(t[0]=e=>p.form.userName=e),placeholder:e.$t("login.username"),tabindex:"1",type:"text"},{prefix:Object(n["withCtx"])(()=>[Object(n["createVNode"])(g,{icon:"user-line"})]),_:1},8,["modelValue","placeholder"])),[[C]])]),_:1}),Object(n["createVNode"])(v,{prop:"passwords"},{default:Object(n["withCtx"])(()=>[(Object(n["openBlock"])(),Object(n["createBlock"])(f,{key:p.passwordType,ref:"password",modelValue:p.form.passwords,"onUpdate:modelValue":t[1]||(t[1]=e=>p.form.passwords=e),placeholder:e.$t("login.password"),type:p.passwordType,tabindex:"2",onKeyup:Object(n["withKeys"])(b.handleLogin,["enter"])},Object(n["createSlots"])({prefix:Object(n["withCtx"])(()=>[Object(n["createVNode"])(g,{icon:"lock-line"})]),_:2},["password"===p.passwordType?{name:"suffix",fn:Object(n["withCtx"])(()=>[Object(n["createVNode"])(g,{class:"show-password",icon:"eye-off-line",onClick:b.handlePassword},null,8,["onClick"])]),key:"0"}:{name:"suffix",fn:Object(n["withCtx"])(()=>[Object(n["createVNode"])(g,{class:"show-password",icon:"eye-line",onClick:b.handlePassword},null,8,["onClick"])]),key:"1"}]),1032,["modelValue","placeholder","type","onKeyup"]))]),_:1}),Object(n["createVNode"])(w,{loading:p.loading,class:"login-btn",type:"primary",size:"small",style:{width:"77%","margin-left":"23%"},onClick:b.handleLogin},{default:Object(n["withCtx"])(()=>[Object(n["createTextVNode"])(Object(n["toDisplayString"])(e.$t("login.login")),1)]),_:1},8,["loading","onClick"])]),_:1},8,["model"])])])])])}o("d9e2"),o("14d9");var h=o("5502"),p=o("61f7"),b=o("c24f"),g=o("cc33"),f={name:"Login",components:{},directives:{focus:{inserted(e){e.querySelector("input").focus()}}},beforeRouteLeave(e,t,o){clearInterval(this.timer),o()},data(){const e=(e,t,o)=>{""===t?o(new Error("用户名不能为空")):o()},t=(e,t,o)=>{Object(p["isPassword"])(t)?o():o(new Error("密码不能少于6位"))};return{nodeEnv:"production",form:{userName:"",passwords:""},activeName:"first",rules:{userName:[{required:!0,trigger:"blur",validator:e}],passwords:[{required:!0,trigger:"blur",validator:t}]},show:!0,count:"",loading:!1,passwordType:"password",timer:0,codeUrl:"",loginMessage:"",realtimeLoginDataTimer:"",wechat:{ticket:"",expire_seconds:"",url:"",scene:"",ShowQrCodeUrl:""}}},computed:{...Object(h["c"])({title:"settings/title"})},mounted(){this.form.userName="",this.form.passwords=""},methods:{...Object(h["b"])({login:"user/login"}),async handleClick(e,t){"second"==e.paneName&&this.getQrCode()},refresh(){},async isLogin(){const{code:e,data:t,msg:o}=await Object(b["codeLoginCallback"])(this.wechat);0==e||"0"==e?(Object(g["setToken"])(t.token),clearInterval(this.timer),window.location.href="/#/index"):(this.loginMessage=o,void 0!=t.openid&&sessionStorage.setItem("userOpenid",t.openid))},async jump(){await this.$router.push("/")},getCode(){const e=60;this.timer||(this.count=e,this.show=!1,this.timer=setInterval(()=>{this.count>0&&this.count<=e?(this.count--,this.isLogin()):(this.show=!0,clearInterval(this.timer),this.timer=null)},1e3))},async getQrCode(){const{data:e}=await Object(b["getQrCode"])(),t="https://mp.weixin.qq.com/cgi-bin/showqrcode?ticket=";this.codeUrl=t+e.ticket,this.wechat.scene=e.scene,this.getCode()},trialShow(){this.$router.push({path:"trialAdd"})},handlePassword(){"password"===this.passwordType?this.passwordType="":this.passwordType="password",this.$nextTick(()=>{this.$refs.passwords.focus()})},handleLogin(){this.$refs.form.validate(async e=>{if(!e)return!1;try{this.loading=!0,await this.login(this.form),await this.$router.push("/")}finally{this.loading=!1}})}}},v=(o("c47a"),o("d959")),w=o.n(v);const k=w()(f,[["render",m]]);t["default"]=k},"9f77":function(e,t,o){"use strict";o.r(t);var n=o("f2bf");const a={class:"manage-container"},r={key:0},i={key:1},l={key:2},s={key:3},c={key:4},d={key:5},u={key:0},m={key:1};function h(e,t,o,h,p,b){const g=Object(n["resolveComponent"])("el-table-column"),f=Object(n["resolveComponent"])("el-button"),v=Object(n["resolveComponent"])("el-table"),w=Object(n["resolveComponent"])("bind-project"),k=Object(n["resolveDirective"])("loading");return Object(n["openBlock"])(),Object(n["createElementBlock"])("div",a,[Object(n["withDirectives"])((Object(n["openBlock"])(),Object(n["createBlock"])(v,{data:p.tableData,stripe:"",border:"",style:{width:"100%"}},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(g,{fixed:"",prop:"vehicleName",label:e.$t("vehicles.clmc"),width:"150",align:"center"},null,8,["label"]),Object(n["createVNode"])(g,{prop:"vehicleIcon",label:e.$t("vehicles.cltb"),width:"150",align:"center"},null,8,["label"]),Object(n["createVNode"])(g,{prop:"vehicleNumber",label:e.$t("vehicle.cph"),width:"150",align:"center"},null,8,["label"]),Object(n["createVNode"])(g,{prop:"projectName",label:e.$t("staff.bdxm"),width:"150",align:"center"},null,8,["label"]),Object(n["createVNode"])(g,{prop:"imei",label:"IMEI",width:"180",align:"center"}),Object(n["createVNode"])(g,{prop:"deviceName",label:e.$t("maintenance.sbmc"),width:"180",align:"center"},null,8,["label"]),Object(n["createVNode"])(g,{prop:"mcType",label:e.$t("vehicles.sbxh"),width:"100",align:"center"},null,8,["label"]),Object(n["createVNode"])(g,{prop:"mcTypeUseScope",label:e.$t("vehicles.jx"),width:"100",align:"center"},{default:Object(n["withCtx"])(({row:t})=>["aotomobile"==t.mcTypeUseScope?(Object(n["openBlock"])(),Object(n["createElementBlock"])("span",r,Object(n["toDisplayString"])(e.$t("vehicles.qc")),1)):Object(n["createCommentVNode"])("",!0),"electromobile"==t.mcTypeUseScope?(Object(n["openBlock"])(),Object(n["createElementBlock"])("span",i,Object(n["toDisplayString"])(e.$t("vehicles.ddc")),1)):Object(n["createCommentVNode"])("",!0),"personal"==t.mcTypeUseScope?(Object(n["openBlock"])(),Object(n["createElementBlock"])("span",l,Object(n["toDisplayString"])(e.$t("vehicles.gr")),1)):Object(n["createCommentVNode"])("",!0),"pet"==t.mcTypeUseScope?(Object(n["openBlock"])(),Object(n["createElementBlock"])("span",s,Object(n["toDisplayString"])(e.$t("vehicles.cw")),1)):Object(n["createCommentVNode"])("",!0),"plane"==t.mcTypeUseScope?(Object(n["openBlock"])(),Object(n["createElementBlock"])("span",c,Object(n["toDisplayString"])(e.$t("vehicles.fj")),1)):Object(n["createCommentVNode"])("",!0),"others"==t.mcTypeUseScope?(Object(n["openBlock"])(),Object(n["createElementBlock"])("span",d,Object(n["toDisplayString"])(e.$t("vehicles.qt")),1)):Object(n["createCommentVNode"])("",!0)]),_:1},8,["label"]),Object(n["createVNode"])(g,{prop:"equipType",label:e.$t("dataEnquiry.sblx"),width:"100",align:"center"},{default:Object(n["withCtx"])(({row:t})=>["WIRED"==t.equipType?(Object(n["openBlock"])(),Object(n["createElementBlock"])("span",u,Object(n["toDisplayString"])(e.$t("vehicles.yx")),1)):Object(n["createCommentVNode"])("",!0),"WIRELESS"==t.equipType?(Object(n["openBlock"])(),Object(n["createElementBlock"])("span",m,Object(n["toDisplayString"])(e.$t("vehicles.wx")),1)):Object(n["createCommentVNode"])("",!0)]),_:1},8,["label"]),Object(n["createVNode"])(g,{prop:"sim",label:e.$t("vehicles.smkh"),width:"150",align:"center"},null,8,["label"]),Object(n["createVNode"])(g,{prop:"expiration",label:e.$t("vehicles.dqsj"),width:"180",align:"center"},null,8,["label"]),Object(n["createVNode"])(g,{prop:"activationTime",label:e.$t("vehicles.jhsj"),width:"180",align:"center"},null,8,["label"]),Object(n["createVNode"])(g,{prop:"reMark",label:e.$t("alarm.bz"),width:"120",align:"center"},null,8,["label"]),Object(n["createVNode"])(g,{fixed:"right",label:e.$t("defalult.cz"),width:"120",align:"center"},{default:Object(n["withCtx"])(({row:t})=>[Object(n["createVNode"])(f,{type:"text",onClick:e=>b.bindProject(t)},{default:Object(n["withCtx"])(()=>[Object(n["createTextVNode"])(Object(n["toDisplayString"])(e.$t("staff.bdxm")),1)]),_:2},1032,["onClick"])]),_:1},8,["label"])]),_:1},8,["data"])),[[k,p.listLoading]]),Object(n["createVNode"])(w,{ref:"bind"},null,512)])}var p=o("fbb2"),b=o("c847"),g={components:{bindProject:b["default"]},data(){return{tableData:[],lazy:!0,listLoading:!0,elementLoadingText:"正在加载..."}},methods:{showData(){this.fetchData()},async fetchData(){this.listLoading=!0;const{data:e}=await Object(p["getDeviceList"])();this.tableData=e,setTimeout(()=>{this.listLoading=!1},500)},bindProject(e){this.$refs["bind"].bindProduct(e)}}},f=(o("d9f1"),o("d959")),v=o.n(f);const w=v()(g,[["render",h]]);t["default"]=w},"9fa4":function(e,t,o){},a002:function(e,t,o){e.exports={"menu-color":"hsla(0,0%,27%,.95)","menu-color-active":"hsla(208,100%,55%,.95)","menu-background":"#fff","gallery-second-menu-background":"#fff"}},a093:function(e,t,o){"use strict";o("d048")},a0b1:function(e,t,o){"use strict";o.r(t);var n=o("f2bf");const a={class:"manage-container"},r={class:"list"},i={class:"list-base"},l={class:"list-head"};function s(e,t,o,s,c,d){const u=Object(n["resolveComponent"])("el-image"),m=Object(n["resolveComponent"])("el-button"),h=Object(n["resolveComponent"])("el-col"),p=Object(n["resolveComponent"])("el-row");return Object(n["openBlock"])(),Object(n["createElementBlock"])("div",a,[Object(n["createVNode"])(p,{gutter:20},{default:Object(n["withCtx"])(()=>[(Object(n["openBlock"])(!0),Object(n["createElementBlock"])(n["Fragment"],null,Object(n["renderList"])(c.projectData,(e,o)=>(Object(n["openBlock"])(),Object(n["createBlock"])(h,{key:o,span:6},{default:Object(n["withCtx"])(()=>[Object(n["createElementVNode"])("div",r,[Object(n["createElementVNode"])("div",i,[Object(n["createElementVNode"])("h1",l,Object(n["toDisplayString"])(e.name),1),Object(n["createVNode"])(u,{class:"list-image"}),Object(n["createVNode"])(m,{type:"primary",style:{width:"100%"},onClick:t=>d.projectDetail(e.id)},{default:Object(n["withCtx"])(()=>t[0]||(t[0]=[Object(n["createTextVNode"])(" 项目管理 ")])),_:2},1032,["onClick"])])])]),_:2},1024))),128))]),_:1})])}o("14d9");var c=o("c24f"),d={data(){return{projectData:[]}},created(){this.getUserInfo()},methods:{async getUserProject(e){const{data:t}=await Object(c["getProjectsByUserId"])({userId:e});this.projectData=t},async getUserInfo(){const{data:e}=await Object(c["getUserInfos"])();this.getUserProject(e.id)},projectDetail(e){sessionStorage.setItem("projectId",e),this.$router.push({name:"监控地图",path:"/monitor",query:{projectId:e}})}}},u=(o("a093"),o("d959")),m=o.n(u);const h=m()(d,[["render",s],["__scopeId","data-v-5f4e911f"]]);t["default"]=h},a0c1:function(e,t,o){"use strict";o("b8ad")},a0fa:function(e,t,o){"use strict";o.r(t);var n=o("f2bf");const a={class:"manage-container"},r={class:"manage-button"};function i(e,t,o,i,l,s){const c=Object(n["resolveComponent"])("el-button"),d=Object(n["resolveComponent"])("el-table-column"),u=Object(n["resolveComponent"])("el-table"),m=Object(n["resolveComponent"])("el-pagination"),h=Object(n["resolveComponent"])("repair-edit"),p=Object(n["resolveComponent"])("show-data"),b=Object(n["resolveDirective"])("loading");return Object(n["openBlock"])(),Object(n["createElementBlock"])("div",a,[Object(n["createElementVNode"])("div",r,[Object(n["createVNode"])(c,{type:"primary",size:"small",onClick:t[0]||(t[0]=e=>s.handleAdd())},{default:Object(n["withCtx"])(()=>t[1]||(t[1]=[Object(n["createTextVNode"])(" 添加 ")])),_:1}),Object(n["createVNode"])(c,{type:"primary",size:"small",onClick:s.deletes},{default:Object(n["withCtx"])(()=>[Object(n["createTextVNode"])(Object(n["toDisplayString"])(e.$t("defalult.plsc")),1)]),_:1},8,["onClick"])]),Object(n["withDirectives"])((Object(n["openBlock"])(),Object(n["createBlock"])(u,{id:"table",data:l.tableData,stripe:"",border:"",style:{width:"100%"},onSelectionChange:s.handleSelectionChange},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(d,{type:"selection",width:"55"}),Object(n["createVNode"])(d,{fixed:"",prop:"id",label:"ID",width:"60",align:"center"}),Object(n["createVNode"])(d,{prop:"keyword",label:"关键词",width:"80",align:"center"}),Object(n["createVNode"])(d,{prop:"matchType.dataValue",label:"关键词匹配类型",width:"130",align:"center"}),Object(n["createVNode"])(d,{prop:"msgType.dataValue",label:"回复消息类型",width:"120",align:"center"}),Object(n["createVNode"])(d,{prop:"textContent",label:"文本内容",align:"center"},{default:Object(n["withCtx"])(({row:e})=>[Object(n["createElementVNode"])("span",null,Object(n["toDisplayString"])(e.textContent),1)]),_:1}),Object(n["createVNode"])(d,{prop:"materialType.dataValue",label:"素材类型",width:"100",align:"center"}),Object(n["createVNode"])(d,{fixed:"right",label:e.$t("defalult.cz"),width:"120",align:"center"},{default:Object(n["withCtx"])(({row:t})=>[Object(n["createVNode"])(c,{type:"text",onClick:e=>s.handleEdit(t)},{default:Object(n["withCtx"])(()=>[Object(n["createTextVNode"])(Object(n["toDisplayString"])(e.$t("defalult.bj")),1)]),_:2},1032,["onClick"]),Object(n["createVNode"])(c,{type:"text",onClick:e=>s.handleDelete(t)},{default:Object(n["withCtx"])(()=>[Object(n["createTextVNode"])(Object(n["toDisplayString"])(e.$t("defalult.sc")),1)]),_:2},1032,["onClick"])]),_:1},8,["label"])]),_:1},8,["data","onSelectionChange"])),[[b,l.listLoading]]),Object(n["createVNode"])(m,{background:l.background,"current-page":l.queryForm.page,layout:l.layout,"page-size":l.queryForm.size,total:l.total,style:{"text-align":"right"},onCurrentChange:s.handleCurrentChange,onSizeChange:s.handleSizeChange},null,8,["background","current-page","layout","page-size","total","onCurrentChange","onSizeChange"]),Object(n["createVNode"])(h,{ref:"edit"},null,512),Object(n["createVNode"])(p,{ref:"show"},null,512)])}o("14d9");var l=o("4cfb"),s=o("0b9b"),c=o("e188"),d={components:{repairEdit:s["default"],showData:c["default"]},data(){return{tableData:[],repairTypeData:[],ids:[],dialogVisible:!1,dialogVisibleImg:!1,layout:"total, sizes, prev, pager, next, jumper",total:0,background:!0,listLoading:!1,elementLoadingText:"正在加载...",queryForm:{page:1,size:20}}},created(){},methods:{keywordsIndex(){this.fetchData()},showData(e){this.$refs["show"].showMaterialData(e)},async fetchData(){this.listLoading=!0;const{data:e}=await Object(l["getKeywordReplyList"])(this.queryForm);this.tableData=e.items,this.total=e.total,setTimeout(()=>{this.listLoading=!1},500)},handleAdd(){this.$refs["edit"].showEdit()},handleEdit(e){this.$refs["edit"].showEdit(e)},handleSelectionChange(e){const t=[];e.forEach(e=>{t.push(e.id)}),this.ids=t,console.log(this.ids)},deletes(){const e=this.ids;if(0==e.length)return this.$message({type:"info",message:"没有选中任何项"}),!1;this.deleteData(e)},deleteData(e){const t=this;this.$confirm("你确定要删除当前项吗?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(()=>{const{msg:o}=Object(l["keywordReplyRemove"])(e);this.$message({type:"success",message:void 0==o?"删除成功":o}),setTimeout((function(){t.fetchData()}),1e3)}).catch(()=>{this.$message({type:"info",message:"已取消删除"})})},handleDelete(e){const t=this;this.ids=[e.id],t.deletes()},handleQuery(){this.queryForm.page=1,this.fetchData()},handleSizeChange(e){this.queryForm.size=e,this.fetchData()},handleCurrentChange(e){this.queryForm.page=e,this.fetchData()}}},u=(o("bb39"),o("d959")),m=o.n(u);const h=m()(d,[["render",i],["__scopeId","data-v-7a7aedff"]]);t["default"]=h},a103:function(e,t,o){"use strict";o.r(t);var n=o("f2bf");const a={class:"manage-container"},r={class:"manage-input"},i={class:"manage-button"};function l(e,t,o,l,s,c){const d=Object(n["resolveComponent"])("el-input"),u=Object(n["resolveComponent"])("el-form-item"),m=Object(n["resolveComponent"])("el-option"),h=Object(n["resolveComponent"])("el-select"),p=Object(n["resolveComponent"])("vab-query-form"),b=Object(n["resolveComponent"])("el-form"),g=Object(n["resolveComponent"])("el-button"),f=Object(n["resolveComponent"])("el-table-column"),v=Object(n["resolveComponent"])("el-switch"),w=Object(n["resolveComponent"])("el-table"),k=Object(n["resolveComponent"])("el-pagination"),C=Object(n["resolveComponent"])("manage-edit"),y=Object(n["resolveComponent"])("manage-role"),O=Object(n["resolveComponent"])("manage-product"),j=Object(n["resolveComponent"])("manage-mini-role");return Object(n["openBlock"])(),Object(n["createElementBlock"])("div",a,[Object(n["createElementVNode"])("div",r,[Object(n["createVNode"])(b,{ref:"queryForm",model:s.queryForm,"label-width":"80px"},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(p,null,{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(u,{width:"100",prop:"userName",label:e.$t("staff.yhm")},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(d,{modelValue:s.queryForm.userName,"onUpdate:modelValue":t[0]||(t[0]=e=>s.queryForm.userName=e),size:"small",placeholder:"请输入用户名"},null,8,["modelValue"])]),_:1},8,["label"]),Object(n["createVNode"])(u,{width:"100",prop:"nickName",label:"昵称"},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(d,{modelValue:s.queryForm.nickName,"onUpdate:modelValue":t[1]||(t[1]=e=>s.queryForm.nickName=e),size:"small",placeholder:"请输入昵称"},null,8,["modelValue"])]),_:1}),Object(n["createVNode"])(u,{width:"100",prop:"phone",label:"手机号"},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(d,{modelValue:s.queryForm.phone,"onUpdate:modelValue":t[2]||(t[2]=e=>s.queryForm.phone=e),size:"small",placeholder:"请输入手机号"},null,8,["modelValue"])]),_:1}),Object(n["createVNode"])(u,{width:"100",prop:"email",label:e.$t("staff.yx")},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(d,{modelValue:s.queryForm.email,"onUpdate:modelValue":t[3]||(t[3]=e=>s.queryForm.email=e),size:"small",placeholder:"请输入邮箱"},null,8,["modelValue"])]),_:1},8,["label"]),Object(n["createVNode"])(u,{width:"100",prop:"deptId",label:"部门"},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(h,{modelValue:s.queryForm.deptId,"onUpdate:modelValue":t[4]||(t[4]=e=>s.queryForm.deptId=e),size:"small",placeholder:"请选择部门"},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(m,{value:"",label:e.$t("dataEnquiry.qb")},null,8,["label"]),(Object(n["openBlock"])(!0),Object(n["createElementBlock"])(n["Fragment"],null,Object(n["renderList"])(s.deptData,e=>(Object(n["openBlock"])(),Object(n["createBlock"])(m,{key:e.deptId,label:e.deptName,value:e.deptId},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1})]),_:1})]),_:1},8,["model"])]),Object(n["createElementVNode"])("div",i,[Object(n["createVNode"])(g,{size:"small",onClick:t[5]||(t[5]=e=>c.resetForm())},{default:Object(n["withCtx"])(()=>[Object(n["createTextVNode"])(Object(n["toDisplayString"])(e.$t("defalult.chongz")),1)]),_:1}),Object(n["createVNode"])(g,{type:"primary",size:"small",onClick:c.search},{default:Object(n["withCtx"])(()=>[Object(n["createTextVNode"])(Object(n["toDisplayString"])(e.$t("defalult.cx")),1)]),_:1},8,["onClick"]),Object(n["createVNode"])(g,{type:"primary",size:"small",onClick:c.handleAdd},{default:Object(n["withCtx"])(()=>t[6]||(t[6]=[Object(n["createTextVNode"])(" 添加用户 ")])),_:1},8,["onClick"]),Object(n["createVNode"])(g,{type:"primary",size:"small",onClick:c.deletes},{default:Object(n["withCtx"])(()=>[Object(n["createTextVNode"])(Object(n["toDisplayString"])(e.$t("defalult.plsc")),1)]),_:1},8,["onClick"])]),Object(n["createVNode"])(w,{data:s.roleData,border:"",stripe:"",style:{width:"100%"},onSelectionChange:c.handleSelectionChange},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(f,{type:"selection",width:"55"}),Object(n["createVNode"])(f,{prop:"id",label:"ID",width:"60",align:"center"}),Object(n["createVNode"])(f,{prop:"userName",label:e.$t("staff.yhm"),width:"120",align:"center"},null,8,["label"]),Object(n["createVNode"])(f,{prop:"dept.deptName",label:"部门",width:"120",align:"center"}),Object(n["createVNode"])(f,{prop:"nickName",label:"名字",width:"120",align:"center"}),Object(n["createVNode"])(f,{prop:"phone",label:"手机",width:"120",align:"center"}),Object(n["createVNode"])(f,{prop:"email",label:e.$t("staff.yx"),width:"120",align:"center"},null,8,["label"]),Object(n["createVNode"])(f,{prop:"wechat",label:"微信",width:"120",align:"center"}),Object(n["createVNode"])(f,{prop:"status",label:e.$t("dataEnquiry.zt"),align:"center",width:"60"},{default:Object(n["withCtx"])(e=>[Object(n["createVNode"])(v,{modelValue:e.row.status,"onUpdate:modelValue":t=>e.row.status=t,"active-value":"0","inactive-value":"1",onClick:t=>c.soreStatus(e.row.status,e.row.id)},null,8,["modelValue","onUpdate:modelValue","onClick"])]),_:1},8,["label"]),Object(n["createVNode"])(f,{prop:"createTime",label:e.$t("grouping.cjsj"),width:"200",align:"center"},null,8,["label"]),Object(n["createVNode"])(f,{prop:"updateTime",label:e.$t("grouping.gxsj"),width:"200",align:"center"},null,8,["label"]),Object(n["createVNode"])(f,{fixed:"right",label:e.$t("defalult.cz"),width:"350",align:"center"},{default:Object(n["withCtx"])(({row:o})=>[Object(n["createVNode"])(g,{type:"text",onClick:e=>c.handleEdit(o)},{default:Object(n["withCtx"])(()=>[Object(n["createTextVNode"])(Object(n["toDisplayString"])(e.$t("defalult.bj")),1)]),_:2},1032,["onClick"]),Object(n["createVNode"])(g,{type:"text",onClick:e=>c.handleDelete(o)},{default:Object(n["withCtx"])(()=>[Object(n["createTextVNode"])(Object(n["toDisplayString"])(e.$t("defalult.sc")),1)]),_:2},1032,["onClick"]),Object(n["createVNode"])(g,{type:"text",onClick:e=>c.assignRole(o)},{default:Object(n["withCtx"])(()=>t[7]||(t[7]=[Object(n["createTextVNode"])("平台角色")])),_:2},1032,["onClick"]),Object(n["createVNode"])(g,{type:"text",onClick:e=>c.assignMiniRole(o)},{default:Object(n["withCtx"])(()=>t[8]||(t[8]=[Object(n["createTextVNode"])(" 小程序角色 ")])),_:2},1032,["onClick"]),Object(n["createVNode"])(g,{type:"text",onClick:e=>c.assignProduct(o)},{default:Object(n["withCtx"])(()=>t[9]||(t[9]=[Object(n["createTextVNode"])(" 分配项目 ")])),_:2},1032,["onClick"])]),_:1},8,["label"])]),_:1},8,["data","onSelectionChange"]),Object(n["createVNode"])(k,{background:s.background,"current-page":s.queryForm.page,layout:s.layout,"page-size":s.queryForm.size,total:s.total,style:{"text-align":"right"},onCurrentChange:c.handleCurrentChange,onSizeChange:c.handleSizeChange},null,8,["background","current-page","layout","page-size","total","onCurrentChange","onSizeChange"]),Object(n["createVNode"])(C,{ref:"edit"},null,512),Object(n["createVNode"])(y,{ref:"index"},null,512),Object(n["createVNode"])(O,{ref:"product"},null,512),Object(n["createVNode"])(j,{ref:"mini"},null,512)])}o("14d9");var s=o("0fea"),c=o("173f"),d=o("c014"),u=o("5276"),m=o("e51a"),h=o("fe05"),p={name:"ManageIndex",components:{manageEdit:c["default"],manageRole:d["default"],manageProduct:u["default"],manageMiniRole:m["default"]},data(){return{roleData:[],lazy:!0,activeName:"first",layout:"total, sizes, prev, pager, next, jumper",total:0,input:"",textarea:"",list:[],ids:[],deptData:[],background:!0,listLoading:!0,elementLoadingText:"正在加载...",queryForm:{page:1,size:20,userName:"",nickName:"",phone:"",email:"",deptId:""}}},computed:{height(){return 500}},created(){this.fetchData(),this.getDeptData()},methods:{search(){this.fetchData()},resetForm(){this.$refs.queryForm.resetFields()},async getDeptData(){const{data:e}=await Object(h["getDeptList"])();this.deptData=e},handleSelectionChange(e){const t=[];e.forEach(e=>{t.push(e.id)}),this.ids=t},async soreStatus(e,t){const{code:o,msg:n}=await Object(s["doEdit"])({status:e,id:t});0==o?this.$notify({title:n,type:"success"}):this.$notify.error({title:n}),this.fetchData()},manageIndex(){this.fetchData()},async fetchData(){this.listLoading=!0;const{data:e}=await Object(s["getList"])(this.queryForm);this.roleData=e.items,this.total=e.total,console.log(this.roleData),setTimeout(()=>{this.listLoading=!1},500)},handleAdd(){this.$refs["edit"].manageEdit()},handleEdit(e){this.$refs["edit"].manageEdit(e)},assignRole(e){this.$refs["index"].manageRole(e)},assignMiniRole(e){this.$refs["mini"].manageMiniRole(e)},assignProduct(e){this.$refs["product"].manageProduct(e)},handleQuery(){this.queryForm.page=1,this.fetchData()},handleSizeChange(e){this.queryForm.size=e,this.fetchData()},handleCurrentChange(e){this.queryForm.page=e,this.fetchData()},deletes(){const e=this.ids;if(0==e.length)return this.$message({type:"info",message:"没有选中任何项"}),!1;this.deleteData(e)},deleteData(e){this.$confirm("你确定要删除当前项吗?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(()=>{const{msg:t}=Object(s["doDelete"])(e);this.$message({type:"success",message:void 0==t?"删除成功":t});const o=this;setTimeout((function(){o.fetchData()}),1e3)}).catch(()=>{this.$message({type:"info",message:"已取消删除"})})},handleDelete(e){e.id&&this.deleteData([e.id])}}},b=(o("23e2"),o("d959")),g=o.n(b);const f=g()(p,[["render",l],["__scopeId","data-v-75eb65c0"]]);t["default"]=f},a13a:function(e,t,o){"use strict";o.r(t);var n=o("f2bf");const a={class:"manage-container"};function r(e,t,o,r,i,l){const s=Object(n["resolveComponent"])("el-table-column"),c=Object(n["resolveComponent"])("el-table"),d=Object(n["resolveComponent"])("el-pagination");return Object(n["openBlock"])(),Object(n["createElementBlock"])("div",a,[Object(n["createVNode"])(c,{data:i.tableData,stripe:"",border:"",style:{width:"100%"}},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(s,{prop:"username",label:e.$t("staff.yhm"),width:"350",align:"center"},null,8,["label"]),Object(n["createVNode"])(s,{prop:"name",label:e.$t("staff.xm"),width:"200",align:"center"},null,8,["label"]),Object(n["createVNode"])(s,{prop:"phone",label:e.$t("staff.sjhm"),width:"200",align:"center"},null,8,["label"]),Object(n["createVNode"])(s,{prop:"email",label:e.$t("staff.yx"),align:"center"},null,8,["label"])]),_:1},8,["data"]),Object(n["createVNode"])(d,{background:i.background,"current-page":i.queryForm.page,layout:i.layout,"page-size":i.queryForm.size,total:i.total,style:{"text-align":"right"},onCurrentChange:l.handleCurrentChange,onSizeChange:l.handleSizeChange},null,8,["background","current-page","layout","page-size","total","onCurrentChange","onSizeChange"])])}var i=o("b4ea"),l={data(){return{tableData:[],lazy:!0,layout:"total, sizes, prev, pager, next, jumper",total:0,background:!0,listLoading:!1,elementLoadingText:"正在加载...",queryForm:{page:1,size:20,projectId:""}}},created(){this.queryForm.projectId=sessionStorage.getItem("projectId"),this.fetchData()},methods:{async fetchData(){this.listLoading=!0;const{data:e}=await Object(i["getList"])(this.queryForm);this.tableData=e,setTimeout(()=>{this.listLoading=!1},500)},handleQuery(){this.queryForm.page=1,this.fetchData()},handleSizeChange(e){this.queryForm.size=e,this.fetchData()},handleCurrentChange(e){this.queryForm.page=e,this.fetchData()}}},s=(o("ad01"),o("d959")),c=o.n(s);const d=c()(l,[["render",r]]);t["default"]=d},a1bd:function(e,t,o){},a269:function(e,t,o){"use strict";o("3576")},a277:function(e,t,o){},a284:function(e,t,o){"use strict";o.r(t);var n=o("f2bf");const a={class:"manage-container"},r=["src"],i={style:{position:"relative"}},l={class:"dialog-footer"};function s(e,t,o,s,c,d){const u=Object(n["resolveComponent"])("el-option"),m=Object(n["resolveComponent"])("el-select"),h=Object(n["resolveComponent"])("el-form-item"),p=Object(n["resolveComponent"])("el-input"),b=Object(n["resolveComponent"])("el-upload"),g=Object(n["resolveComponent"])("el-button"),f=Object(n["resolveComponent"])("el-divider"),v=Object(n["resolveComponent"])("el-date-picker"),w=Object(n["resolveComponent"])("el-form"),k=Object(n["resolveComponent"])("frame-map"),C=Object(n["resolveComponent"])("el-dialog");return Object(n["openBlock"])(),Object(n["createBlock"])(C,{modelValue:c.dialogFormVisible,"onUpdate:modelValue":t[24]||(t[24]=e=>c.dialogFormVisible=e),title:c.title,width:"50%",onClose:d.close},{default:Object(n["withCtx"])(()=>[Object(n["createElementVNode"])("div",a,[Object(n["createVNode"])(w,{ref:"form",model:c.form,rules:c.rules,"label-width":"130px","label-position":"right"},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(h,{label:"选择项目",prop:"projectId"},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(m,{modelValue:c.form.projectId,"onUpdate:modelValue":t[0]||(t[0]=e=>c.form.projectId=e),size:"small",filterable:"",placeholder:"请选择项目",onChange:d.changeProject},{default:Object(n["withCtx"])(()=>[(Object(n["openBlock"])(!0),Object(n["createElementBlock"])(n["Fragment"],null,Object(n["renderList"])(c.projectData,e=>(Object(n["openBlock"])(),Object(n["createBlock"])(u,{key:e.id,label:e.name,value:e.id},null,8,["label","value"]))),128))]),_:1},8,["modelValue","onChange"])]),_:1}),Object(n["createVNode"])(h,{label:e.$t("dataEnquiry.zdmc"),prop:"name"},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(p,{modelValue:c.form.name,"onUpdate:modelValue":t[1]||(t[1]=e=>c.form.name=e),size:"small"},null,8,["modelValue"])]),_:1},8,["label"]),Object(n["createVNode"])(h,{label:"站点编号",prop:"code"},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(p,{modelValue:c.form.code,"onUpdate:modelValue":t[2]||(t[2]=e=>c.form.code=e),size:"small"},null,8,["modelValue"])]),_:1}),Object(n["createVNode"])(h,{label:e.$t("dataEnquiry.xlh"),prop:"serial"},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(p,{modelValue:c.form.serial,"onUpdate:modelValue":t[3]||(t[3]=e=>c.form.serial=e),size:"small"},null,8,["modelValue"])]),_:1},8,["label"]),Object(n["createVNode"])(h,{label:e.$t("dataEnquiry.txxy"),prop:"commPro"},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(m,{modelValue:c.form.commPro,"onUpdate:modelValue":t[4]||(t[4]=e=>c.form.commPro=e),size:"small",filterable:"",placeholder:"请选择通信协议"},{default:Object(n["withCtx"])(()=>[(Object(n["openBlock"])(!0),Object(n["createElementBlock"])(n["Fragment"],null,Object(n["renderList"])(c.commData,e=>(Object(n["openBlock"])(),Object(n["createBlock"])(u,{key:e.dataCode,label:e.dataValue,value:e.dataCode},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1},8,["label"]),Object(n["createVNode"])(h,{label:"站点工艺",prop:"technology"},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(m,{modelValue:c.form.technology,"onUpdate:modelValue":t[5]||(t[5]=e=>c.form.technology=e),size:"small",filterable:"",placeholder:"请选择站点工艺"},{default:Object(n["withCtx"])(()=>[(Object(n["openBlock"])(!0),Object(n["createElementBlock"])(n["Fragment"],null,Object(n["renderList"])(c.deviceTechnologyData,e=>(Object(n["openBlock"])(),Object(n["createBlock"])(u,{key:e.dataCode,label:e.dataValue,value:e.dataCode},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),Object(n["createVNode"])(h,{label:"站点材质",prop:"material"},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(m,{modelValue:c.form.material,"onUpdate:modelValue":t[6]||(t[6]=e=>c.form.material=e),size:"small",filterable:"",placeholder:"请选择站点材质"},{default:Object(n["withCtx"])(()=>[(Object(n["openBlock"])(!0),Object(n["createElementBlock"])(n["Fragment"],null,Object(n["renderList"])(c.deviceMaterialData,e=>(Object(n["openBlock"])(),Object(n["createBlock"])(u,{key:e.dataCode,label:e.dataValue,value:e.dataCode},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),Object(n["createVNode"])(h,{label:e.$t("dataEnquiry.csbz"),prop:"outStandard"},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(m,{modelValue:c.form.outStandard,"onUpdate:modelValue":t[7]||(t[7]=e=>c.form.outStandard=e),size:"small",filterable:"",placeholder:"请选择出水标准"},{default:Object(n["withCtx"])(()=>[(Object(n["openBlock"])(!0),Object(n["createElementBlock"])(n["Fragment"],null,Object(n["renderList"])(c.outStandardData,e=>(Object(n["openBlock"])(),Object(n["createBlock"])(u,{key:e.dataCode,label:e.dataValue,value:e.dataCode},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1},8,["label"]),Object(n["createVNode"])(h,{label:e.$t("device.lxys"),prop:"offlineDelay"},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(p,{modelValue:c.form.offlineDelay,"onUpdate:modelValue":t[8]||(t[8]=e=>c.form.offlineDelay=e),size:"small"},null,8,["modelValue"])]),_:1},8,["label"]),Object(n["createVNode"])(h,{label:"乡镇街道",prop:"townCode"},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(m,{modelValue:c.form.townCode,"onUpdate:modelValue":t[9]||(t[9]=e=>c.form.townCode=e),size:"small",filterable:"",placeholder:"请选择乡镇街道",onChange:d.changeTown},{default:Object(n["withCtx"])(()=>[(Object(n["openBlock"])(!0),Object(n["createElementBlock"])(n["Fragment"],null,Object(n["renderList"])(c.townsData,e=>(Object(n["openBlock"])(),Object(n["createBlock"])(u,{key:e.townCode,label:e.townName,value:e.townCode+","+e.townName},null,8,["label","value"]))),128))]),_:1},8,["modelValue","onChange"])]),_:1}),Object(n["createVNode"])(h,{label:e.$t("dataEnquiry.sq"),prop:"community"},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(p,{modelValue:c.form.community,"onUpdate:modelValue":t[10]||(t[10]=e=>c.form.community=e),size:"small"},null,8,["modelValue"])]),_:1},8,["label"]),Object(n["createVNode"])(h,{label:e.$t("dataEnquiry.sbgg"),prop:"specifications"},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(p,{modelValue:c.form.specifications,"onUpdate:modelValue":t[11]||(t[11]=e=>c.form.specifications=e),type:"number",size:"small"},null,8,["modelValue"])]),_:1},8,["label"]),Object(n["createVNode"])(h,{label:e.$t("dataEnquiry.sblx"),prop:"type"},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(m,{modelValue:c.form.type,"onUpdate:modelValue":t[12]||(t[12]=e=>c.form.type=e),size:"small",filterable:"",placeholder:"请选择设备类型"},{default:Object(n["withCtx"])(()=>[(Object(n["openBlock"])(!0),Object(n["createElementBlock"])(n["Fragment"],null,Object(n["renderList"])(c.deviceTypeData,e=>(Object(n["openBlock"])(),Object(n["createBlock"])(u,{key:e.dataCode,label:e.dataValue,value:e.dataCode},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1},8,["label"]),Object(n["createVNode"])(h,{label:e.$t("dataEnquiry.fwyhs"),prop:"userNum"},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(p,{modelValue:c.form.userNum,"onUpdate:modelValue":t[13]||(t[13]=e=>c.form.userNum=e),size:"small",type:"number"},null,8,["modelValue"])]),_:1},8,["label"]),Object(n["createVNode"])(h,{label:"物联网卡",prop:"simNum"},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(p,{modelValue:c.form.simNum,"onUpdate:modelValue":t[14]||(t[14]=e=>c.form.simNum=e),size:"small",type:"text"},null,8,["modelValue"])]),_:1}),Object(n["createVNode"])(h,{label:e.$t("device.ztdp"),prop:"screenView"},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(m,{modelValue:c.form.screenView,"onUpdate:modelValue":t[15]||(t[15]=e=>c.form.screenView=e),size:"small",filterable:"",placeholder:"请选择组态大屏"},{default:Object(n["withCtx"])(()=>[(Object(n["openBlock"])(!0),Object(n["createElementBlock"])(n["Fragment"],null,Object(n["renderList"])(c.screenViewData,e=>(Object(n["openBlock"])(),Object(n["createBlock"])(u,{key:e.dataCode,label:e.dataValue,value:e.dataCode},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1},8,["label"]),Object(n["createVNode"])(h,{label:e.$t("dataEnquiry.ywry")},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(p,{modelValue:c.form.leader,"onUpdate:modelValue":t[16]||(t[16]=e=>c.form.leader=e),size:"small"},null,8,["modelValue"])]),_:1},8,["label"]),Object(n["createVNode"])(h,{label:e.$t("project.lxfs")},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(p,{modelValue:c.form.contact,"onUpdate:modelValue":t[17]||(t[17]=e=>c.form.contact=e),size:"small"},null,8,["modelValue"])]),_:1},8,["label"]),Object(n["createVNode"])(h,{label:"公示牌"},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(b,{class:"avatar-uploader",action:c.fileUpdateUrl,headers:{token:c.token},multiple:!0,name:"files","show-file-list":!1,"on-success":d.handleAvatarSuccess,"before-upload":d.beforeAvatarUpload},{default:Object(n["withCtx"])(()=>[c.imageUrl?(Object(n["openBlock"])(),Object(n["createElementBlock"])("img",{key:0,src:c.fileUrl+c.imageUrl,class:"avatar"},null,8,r)):Object(n["createCommentVNode"])("",!0),t[25]||(t[25]=Object(n["createElementVNode"])("i",{class:"el-icon-plus avatar-uploader-icon"},null,-1))]),_:1},8,["action","headers","on-success","before-upload"])]),_:1}),Object(n["createElementVNode"])("div",i,[Object(n["createVNode"])(h,{label:e.$t("project.wd"),prop:"latitude",style:{width:"90%"}},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(p,{modelValue:c.form.latitude,"onUpdate:modelValue":t[18]||(t[18]=e=>c.form.latitude=e),size:"small"},null,8,["modelValue"])]),_:1},8,["label"]),Object(n["createVNode"])(h,{label:e.$t("project.jd"),prop:"longitude",style:{width:"90%"}},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(p,{modelValue:c.form.longitude,"onUpdate:modelValue":t[19]||(t[19]=e=>c.form.longitude=e),size:"small"},null,8,["modelValue"])]),_:1},8,["label"]),Object(n["createVNode"])(g,{style:{position:"absolute",right:"0",top:"30px"},type:"success",size:"small",plain:"",onClick:d.checkLocation},{default:Object(n["withCtx"])(()=>t[26]||(t[26]=[Object(n["createTextVNode"])(" 选择位置 ")])),_:1},8,["onClick"])]),Object(n["createVNode"])(f,{"content-position":"left"},{default:Object(n["withCtx"])(()=>t[27]||(t[27]=[Object(n["createTextVNode"])("设备保修信息")])),_:1}),Object(n["createVNode"])(h,{label:"设备报修到期时间",prop:"screenView"},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(v,{modelValue:c.form.warrantyPeriod,"onUpdate:modelValue":t[20]||(t[20]=e=>c.form.warrantyPeriod=e),type:"date","popper-options":{modifiers:[{name:"flip",options:{fallbackPlacements:["top"],allowedAutoPlacements:["top"]}}]},placeholder:e.$t("defalult.xzrq"),onChange:d.changeBasic},null,8,["modelValue","placeholder","onChange"])]),_:1}),Object(n["createVNode"])(h,{label:"设备版本",prop:"screenView"},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(m,{modelValue:c.form.deviceVersion,"onUpdate:modelValue":t[21]||(t[21]=e=>c.form.deviceVersion=e),size:"small",filterable:"",placeholder:"请选择设备版本"},{default:Object(n["withCtx"])(()=>[(Object(n["openBlock"])(!0),Object(n["createElementBlock"])(n["Fragment"],null,Object(n["renderList"])(c.deviceVersionData,e=>(Object(n["openBlock"])(),Object(n["createBlock"])(u,{key:e.dataCode,label:e.dataValue,value:e.dataCode},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),Object(n["createVNode"])(h,{label:"站点客户联系人"},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(p,{modelValue:c.form.ownerName,"onUpdate:modelValue":t[22]||(t[22]=e=>c.form.ownerName=e),size:"small",placeholder:"维修人员所联系的客户信息"},null,8,["modelValue"])]),_:1}),Object(n["createVNode"])(h,{label:"站点客户联系方式"},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(p,{modelValue:c.form.ownerPhone,"onUpdate:modelValue":t[23]||(t[23]=e=>c.form.ownerPhone=e),size:"small",placeholder:"维修人员所联系的客户信息"},null,8,["modelValue"])]),_:1})]),_:1},8,["model","rules"]),Object(n["createElementVNode"])("div",l,[Object(n["createVNode"])(g,{type:"primary",size:"small",onClick:d.save},{default:Object(n["withCtx"])(()=>t[28]||(t[28]=[Object(n["createTextVNode"])("提交")])),_:1},8,["onClick"])])]),Object(n["createVNode"])(k,{ref:"map",onSetLatAndLng:d.setLatAndLng},null,8,["onSetLatAndLng"])]),_:1},8,["modelValue","title","onClose"])}var c=o("24d2"),d=o("aa98"),u=o("2ef0"),m=o("f121"),h=o("4360"),p=o("8065"),b=o("5f99"),g={name:"DeviceEdit",components:{frameMap:p["default"]},data(){return{form:{id:"",name:"",code:"",commPro:"",projectId:"",longitude:"",latitude:"",offlineDelay:90,townCode:"",townName:"",community:"",specifications:"",type:"",userNum:"",technology:"",material:"",ownerPhone:"",ownerName:"",outStandard:"",leader:"",contact:"",serial:"",boardImg:"",screenView:"",simNum:""},filePath:m["baseURL"]+"/static/img/",fileUpdateUrl:"",token:"",imageUrl:[],siteName:"",siteCode:"",townCode:"",projectId:"",projectData:[],rules:{projectId:[{required:!0,trigger:"change",message:"请选择项目"}],name:[{required:!0,trigger:"blur",message:"请输入站点名称"}],code:[{required:!0,trigger:"blur",message:"请输入站点编号"}],serial:[{required:!0,trigger:"blur",message:"请输入序列号"}],commPro:[{required:!0,trigger:"change",message:"请选择通信协议"}],deviceVersion:[{required:!0,trigger:"change",message:"请选择设备版本"}],technology:[{required:!0,trigger:"blur",message:"请输入站点工艺"}],material:[{required:!0,trigger:"blur",message:"请输入站点材质"}],outStandard:[{required:!0,trigger:"blur",message:"请输入出水标准"}],offlineDelay:[{required:!0,trigger:"blur",message:"请输入离线延迟"}],townCode:[{required:!0,trigger:"change",message:"请选择乡镇街道"}],specifications:[{required:!0,trigger:"blur",message:"请输入设备规格"}],type:[{required:!0,trigger:"blur",message:"请输入设备类型"}]},num:0,title:"",dialogFormVisible:!1,showMap:!1,keyWords:"",fileUrl:m["baseURL"]+"/static/img/",diffData:{},ruleForm:[],commData:[],location:[],deviceTechnologyData:[],deviceMaterialData:[],outStandardData:[],deviceTypeData:[],alarmTypeData:[],townsData:[],alarmUserData:[],screenViewData:[],deviceVersionData:[]}},created(){},methods:{changeBasic(){},checkLocation(){this.$refs["map"].showMap(this.location)},setUploadUrl(){this.token=h["default"].getters["user/token"],this.fileUpdateUrl=m["baseURL"]+"/file/uploadImg"},handleAvatarSuccess(e,t){this.form.boardImg=e.data,this.imageUrl=e.data},beforeAvatarUpload(e){const t=e.size/1024/1024<2;return t||this.$message.error("上传头像图片大小不能超过 2MB!"),t},async getProjectData(){const e={page:1,size:100},{data:t}=await Object(c["getList"])(e);this.projectData=t.items},changeProject(){this.getTownsByProject()},async getTownsByProject(){const{data:e}=await Object(d["getTownsByProject"])({projectId:this.form.projectId});this.townsData=e},changeTown(e){this.form.townCode=e.split(",")[0],this.form.townName=e.split(",")[1]},setLatAndLng(e){this.form.longitude=e.lng,this.form.latitude=e.lat},async getCommData(){const{data:e}=await Object(d["getDictData"])();this.commData=e.communicationProtocol,this.deviceTechnologyData=e.deviceTechnology,this.deviceMaterialData=e.deviceMaterial,this.outStandardData=e.outStandard,this.deviceTypeData=e.deviceType,this.screenViewData=e.screenView,this.deviceVersionData=e.deviceVersion},showEdit(e,t){if(this.getProjectData(),this.getCommData(),this.setUploadUrl(),this.location=[],1==t)this.title="添加",this.form.projectId=Object(u["toNumber"])(e.projectId),this.form.boardImg="",this.imageUrl="",this.form.townCode="";else{this.title="编辑";var o=Object.assign({},e);this.form.id=o.id,this.form.name=o.name,this.form.code=o.code,this.form.serial=o.serial,this.form.commPro=o.commPro.dataCode,this.form.projectId=o.project.id,this.form.longitude=o.longitude,this.form.latitude=o.latitude,this.form.offlineDelay=o.offlineDelay,this.form.townCode=o.townCode,this.form.townName=o.townName,this.form.community=o.community,this.form.specifications=o.specifications,this.form.boardImg=o.boardImg,this.imageUrl=o.boardImg,this.simNum=o.simNum,this.form.ownerName=o.ownerName,this.form.ownerPhone=o.ownerPhone,this.form.warrantyPeriod=o.warrantyPeriod,null!==o.type&&(this.form.type=o.type.dataCode),null!==o.technology&&(this.form.technology=o.technology.dataCode),null!==o.screenView&&(this.form.screenView=o.screenView.dataCode),null!==o.deviceVersion&&(this.form.deviceVersion=o.deviceVersion.dataCode),null!==o.type&&(this.form.type=o.type.dataCode),null!==o.material&&(this.form.material=o.material.dataCode),null!==o.outStandard&&(this.form.outStandard=o.outStandard.dataCode),this.form.leader=o.leader,this.form.contact=o.contact,this.form.userNum=o.userNum,this.siteName=o.name,this.siteCode=o.code,this.townCode=o.townName,this.location=[o.latitude,o.longitude]}this.getTownsByProject(),this.dialogFormVisible=!0},close(){this.$refs["form"].resetFields(),this.form=this.$options.data().form,this.dialogFormVisible=!1,this.$emit("fetch-data")},getDiffData(){this.diffData={},Object.keys(this.form).forEach(e=>{this.form[e]!=this.ruleForm[e]&&(this.diffData[e]=this.form[e])})},save(){this.$refs["form"].validate(async e=>{if(!e)return!1;if(this.siteName==this.form.name&&delete this.form.name,this.siteCode==this.form.code&&delete this.form.code,this.form.warrantyPeriod&&(this.form.warrantyPeriod=Object(b["getDate"])(this.form.warrantyPeriod)),this.form.id){const{msg:e}=await Object(d["doEdit"])(this.form);this.$notify({title:e,type:"success"})}else{delete this.form.id;const{msg:e}=await Object(d["doAdd"])(this.form);this.$notify({title:e,type:"success"})}this.$refs["form"].resetFields(),this.dialogFormVisible=!1,this.$parent.fetchData()})}}},f=(o("39f5"),o("d959")),v=o.n(f);const w=v()(g,[["render",s]]);t["default"]=w},a2c2:function(e,t,o){"use strict";o.r(t);var n=o("f2bf");const a={class:"manage-container"};function r(e,t,o,r,i,l){const s=Object(n["resolveComponent"])("sys-config"),c=Object(n["resolveComponent"])("el-tab-pane"),d=Object(n["resolveComponent"])("menu-index"),u=Object(n["resolveComponent"])("applets-index"),m=Object(n["resolveComponent"])("el-tabs");return Object(n["openBlock"])(),Object(n["createElementBlock"])("div",a,[Object(n["createVNode"])(m,{modelValue:i.activeName,"onUpdate:modelValue":t[0]||(t[0]=e=>i.activeName=e),onTabClick:l.handleClick},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(c,{label:"网站信息",name:"first"},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(s,{ref:"config"},null,512)]),_:1}),Object(n["createVNode"])(c,{label:"平台菜单",name:"second"},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(d,{ref:"menu"},null,512)]),_:1}),Object(n["createVNode"])(c,{label:"小程序菜单",name:"three"},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(u,{ref:"applets"},null,512)]),_:1})]),_:1},8,["modelValue","onTabClick"])])}var i=o("293b"),l=o("5b46"),s=o("aa77"),c={name:"Index",components:{sysConfig:i["default"],menuIndex:l["default"],appletsIndex:s["default"]},data(){return{activeName:"first"}},computed:{height(){return 500}},mounted(){},methods:{handleClick(e,t){console.log(e,t),"second"==e.paneName?this.$refs["menu"].showMenu():"first"==e.paneName?this.$refs["config"].showConfig():"three"==e.paneName&&this.$refs["applets"].appletsIndex()}}},d=(o("9aac"),o("d959")),u=o.n(d);const m=u()(c,[["render",r]]);t["default"]=m},a2dc:function(e,t,o){"use strict";o("ef87")},a332:function(e,t,o){},a406:function(e,t,o){e.exports={"menu-color":"hsla(0,0%,27%,.95)","menu-color-active":"hsla(208,100%,55%,.95)","menu-background":"#fff","gallery-second-menu-background":"#fff"}},a4bd:function(e,t,o){"use strict";o("34c9")},a4c1:function(e,t,o){"use strict";o("94eb")},a4c3:function(e,t,o){"use strict";o.r(t);var n=o("f2bf");const a={class:"manage-container"};function r(e,t,o,r,i,l){const s=Object(n["resolveComponent"])("el-input"),c=Object(n["resolveComponent"])("el-form-item"),d=Object(n["resolveComponent"])("el-button"),u=Object(n["resolveComponent"])("vab-query-form"),m=Object(n["resolveComponent"])("el-form"),h=Object(n["resolveComponent"])("el-dialog");return Object(n["openBlock"])(),Object(n["createBlock"])(h,{modelValue:i.dialogFormVisible,"onUpdate:modelValue":t[3]||(t[3]=e=>i.dialogFormVisible=e),title:i.title,width:"500px",onClose:l.close},{default:Object(n["withCtx"])(()=>[Object(n["createElementVNode"])("div",a,[Object(n["createVNode"])(m,{ref:"form",model:i.form,"label-width":"80px","label-position":"left"},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(c,{label:e.$t("dataEnquiry.zdmc")},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(s,{modelValue:i.form.name,"onUpdate:modelValue":t[0]||(t[0]=e=>i.form.name=e)},null,8,["modelValue"])]),_:1},8,["label"]),Object(n["createVNode"])(c,{label:"站点编号"},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(s,{modelValue:i.form.code,"onUpdate:modelValue":t[1]||(t[1]=e=>i.form.code=e)},null,8,["modelValue"])]),_:1}),Object(n["createVNode"])(c,{label:e.$t("dataEnquiry.xlh")},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(s,{modelValue:i.form.serial,"onUpdate:modelValue":t[2]||(t[2]=e=>i.form.serial=e)},null,8,["modelValue"])]),_:1},8,["label"]),Object(n["createVNode"])(u,null,{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(d,{type:"primary",onClick:l.save},{default:Object(n["withCtx"])(()=>t[4]||(t[4]=[Object(n["createTextVNode"])("提交")])),_:1},8,["onClick"])]),_:1})]),_:1},8,["model"])])]),_:1},8,["modelValue","title","onClose"])}var i=o("aa98"),l={data(){return{form:{name:"",code:"",serial:"",deviceId:""},dialogFormVisible:!1,title:""}},methods:{showCopy(e){this.form.deviceId=e.id,this.dialogFormVisible=!0,this.title="复制站点"},close(){this.$refs["form"].resetFields(),this.form=this.$options.data().form,this.dialogFormVisible=!1,this.$emit("fetch-data")},save(){this.$refs["form"].validate(async e=>{if(!e)return!1;{const{msg:e}=await Object(i["copy"])(this.form);this.$notify({title:e,type:"success"}),this.$refs["form"].resetFields(),this.dialogFormVisible=!1,this.$parent.fetchData()}})}}},s=o("d959"),c=o.n(s);const d=c()(l,[["render",r]]);t["default"]=d},a4e7a:function(e,t,o){"use strict";o.r(t);var n=o("f2bf");function a(e,t,o,a,r,i){return Object(n["openBlock"])(),Object(n["createElementBlock"])("div",{style:Object(n["normalizeStyle"])({width:o.width})},[t[0]||(t[0]=Object(n["createElementVNode"])("div",{class:"map-search"},null,-1)),Object(n["createElementVNode"])("div",{id:"map",style:Object(n["normalizeStyle"])({width:o.width,height:o.height})},null,4)],4)}o("14d9");var r=o("bc3a"),i=o.n(r),l={props:{mapKey:{type:String,default:"MNNBZ-APIWX-ORS4R-TJ5R6-Y74MF-VQB6B"},width:{type:String,default:"100%"},height:{type:String,default:"500px"},boundsHeight:{type:String,default:"200px"},location:{type:Array,default:()=>{}}},emits:["getLatAndLng"],data(){return{latLng:[31.314382,120.678256],latLngs:[],search:"",marker:null,markerList:[],map:null,setTime:null,selectPosition:-1,BoundsPois:[],local:null,mk:null,keyWords:"",isEdit:!1}},computed:{normalizedSize:function(){return this.location}},created(){},methods:{loadScript(e){this.isEdit=!1,0!=e.length&&(this.latLngs=e,this.isEdit=!0);var t=document.createElement("script");t.type="text/javascript",t.charset="utf-8",window.initMap=()=>{this.init()},t.src="https://map.qq.com/api/js?v=2.exp&key="+this.mapKey+"&callback=initMap",document.body.appendChild(t)},init(){var e=this.latLng;1==this.isEdit&&(e=this.latLngs),this.map=new qq.maps.Map(document.getElementById("map"),{center:new qq.maps.LatLng(e[0],e[1]),keyboardShortcuts:!1,disableDefaultUI:!1,zoom:16}),this.isEdit&&(this.map.setCenter(new qq.maps.LatLng(e[0],e[1])),this.setMarker(new qq.maps.LatLng(e[0],e[1]))),qq.maps.event.addListener(this.map,"click",e=>{this.getLatLng(e)})},getLatLng(e){this.marker&&(this.marker.setMap(null),this.marker=null);const t=new qq.maps.MarkerImage("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADQAAABJCAMAAABFGvXGAAACf1BMVEUAAAD/PyL/PyL/PyL/PyL/PyL/PyL/PyL/PyL/PyL/PyL/PyL/PyL/PyP/PyL/PyL+PiL/PyL/PyL/PyP/PyL/PyL/PyL/PyL/PyL4OyP/PiL/PyL/PyL/PyLzOiX5PCX9QCj/PyLQJiX0RkTkNC39PyXsNST/PyL/PyL/PyLyRUTgNDPdMjHzRELxQ0HzRUPTJyTZKyf1RULeLyf0Qz30Qzz8PST/PyLWLS3rPz/RKCjMJCTZLy/mOjnUKirPJSXLIiLzRkXpPDvWLCvgNDP0R0XsPz3ZLyzgNDPVKijRJSTtPzvcMS71R0TjNjPZLCnyREHpOzjiNDDtPzvkNS7kNTDsPDXYKiPiLyPqNy3zQTncLCTpMyTxOinsNif0QTf1Qzz5QjTxOyr4QC/tQT/mOjnwQkDmOTfPJSLdLyr0RULyQj3nOTbWKibTKCT0RD/yQTrxQz/lNCzbLSjyPzX2RkHXKSL2RDzgMSjkMiXiMCP4RDrrNyn/////XVv/S0v/W1n/SEf/YF7/UVD/VVP/WFb/REP/TUz/YV//Xlz/Pj7/T07/RkX/QED/Ozv/Skn/WVj/OTn/VlX/U1L/QkL/QUH/ODf5UlH4UU/vQUD7V1b2TEv0SUj/+vr3Tk3/2dn9XVz8W1r6TEv7R0b7REPvPTzzPDvoPDvnOjnpODjnMDDjLS3dKir/vr7/qqn/pqX/mZn/ZWT6VVP9VFP//Pz/8PD/4eH/3t3/zs7/w8P/ra3/iIj/fX3/e3r5UU/+TUzsPTz5PDz+Nzf4NjbrNjbpNjbyNjXuNjXlMjLjMjLxMTHsMTDlLCz/9vb/6ej/yMf/ubj/lJT/kI//gH/9WFcH01InAAAAfXRSTlMAAgYEFgoIDB4TDhgzJBFBKiYbFD1FRDg7Ni8tEChcUUAa6tmJSkQxIA/++fTg1tDFr6qaimVNIv79/f379/f29PLy7efj4+Ld3NnV1MvKyMTDvLmmopqMgXd1c21oYV5PRz0h7url3sC3tLKrq6iimJaVkYaBgHt4XVtUUgcS3xIAAAQzSURBVEjHjZdldxNBFIaZ3Y1nI43QhFChhVLc3d3d3d3dijRIi2uclCoV3N3d7Qcxuwls7mxWno9zz3Pu3XlnMieN0oAQTVM8NI0QWZUwNLpCA8Nj8Ok0lKKHaK2RWbi109i8oUPzxnbqsrt7rsOooZGsorEs6DQwGoyUX8KUR4LRgau6siaLtIaQ1tI1LxopLkmhOBJtu71phk+LUPo2upz28fISEeWhvPkso0vXDFGWLq1ulaQl0mp9E71Fi0SOVj8hVFoiQXGofU53B7YIx94+VCxDsG1zO6NB0FncDjvy1kI76IVoxwTsyBNql8laKCRIuo3xUkXiq816IxKGWxDeW6pMbJaN/6zkcO2Ce1Vwa5mTtSTjQppZ0b2qiG8oyNAlJJoZFlEn/VlitRvoRKOusf0qiXUpyOC/ChVODoqqT69dvXrtiWj51ujGbCHXilrc8zSplBXx3P9NWj2zmzAUwtPNb3Ua8utiUZI7N4hSbIuZ2wpknBY9BHjCO0nrMazFJzfujgOmLROfgfXT94pS+LYfFIOjnU3x/lHMsNtg/XER4Cco3h5kxR+FpUG3z6byA0oPzwIuW70mbSOt6fJBwAMolcHq5W5mXqqFy2VQukdI2eZcDZb6ngPLD6H0AEq1LnMGJy19di6VG1C6Dor+vm6uE8WMq/CnUvo11bl4ExQrlrsLTFosrYn5ATdAI1iLTeS3nDbMDPshVwXnO1EKT3PacLiocFHtMYj/+sXkbI/8RKl2bqbdhyWdfkTFMYKb18ru3r3/6Ca5XjHE5dFzB5Zi8sNHVBKewh0IhG+7z9P6uTrneeuszMR9R7qMqeF9qghPcpvxdJxEGRa1qVTjVLbOctocFCdxW5H/Qo30YmqyUaKVbUTlKUUqh3TLbMo3SraaVH1AkepxQiOulaNFmyolp6oN/iJGeDaQUZ9fpyTVbXInXg2hlW1M9XFZqsc0F74Iw2e1p0+VnFPVZ67Vy//6CxLtYzvXHZahborLw/po4tFlvMNrpJ2a4d3wLoied51+Xg9pqcdM67/tBgNa2I5vz0vwdqWrMf8IkpbG5BlccyEtNYOznTaThnCSYe34eCItH/OtQkRQogz28W/SOW/GuxrbDUJExIAt+r08KuJlv3k5TcBwYC+MLTd/EEsfOrs9LY1gF8CAjG3ke9J5PxKfH4YcDpymnb0I52SvOdYCeH7EYa2tPwmo75g2IniaPM3epTrvmmWLz484rNlXUqUrM6QigmF1qD/zn/oO0hHBsPq//ue87p/lhBFJhjW94Z/U0NltxhHJK8mwRn1OOJ9HkVdcJqxdvV8FMK96zyGuuGxY6xo4qQFHBK+4QlifAoFPyhGRYQUCyhGRYa348kVVRDCsAQOyiFukHJZ+2/Qcsx5GpDwg6/WyYDg1Axpycw1wOGUJURrwv1OtJq38BbsNQs0bptLnAAAAAElFTkSuQmCC",new qq.maps.Size(52,73),new qq.maps.Point(0,0),new qq.maps.Point(12,34),new qq.maps.Size(25,35)),o=new qq.maps.MarkerImage("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQAgMAAABinRfyAAAADFBMVEUAAAD///////8Aef/rgTCIAAAAAnRSTlMAlm//+0kAAAAlSURBVAjXY4AAtglAgvsBBiG1+tUSBv3//3+ACQgXUx3EADAAAAKHE3VhGPlFAAAAAElFTkSuQmCC",new qq.maps.Size(16,16),new qq.maps.Point(0,0),new qq.maps.Point(5,5),new qq.maps.Size(10,10));this.marker=new qq.maps.Marker({map:this.map,position:e.latLng}),this.marker.setIcon(t),this.marker.setShadow(o),this.marker.setAnimation(qq.maps.MarkerAnimation.DOWN),clearTimeout(this.setTime),this.$emit("tellFatherName",e.latLng),this.setTime=setTimeout(()=>{this.getAddress()},500)},removeMarker(){this.marker&&(this.marker.setMap(null),this.marker=null),this.markerList.forEach(e=>{e.setMap(null),e=null}),this.markerList=[]},centerChanged(e,t){const o=this.map.getCenter();this.marker&&(this.marker.setPosition(o),clearTimeout(this.setTime),this.$emit("tellFatherName",o),this.setTime=setTimeout(()=>{this.getAddress()},500))},searchCity(){const e=new qq.maps.Geocoder({complete:e=>{this.map.setCenter(e.detail.location),this.marker.setPosition(e.detail.location),this.marker.setAnimation(qq.maps.MarkerAnimation.DOWN)}});e.getLocation(this.search)},setPlace(e){if(!e)return void this.$message({type:"danger",message:"请输入地址"});let t="mapqqApi/ws/place/v1/search?boundary=nearby(31.49055,120.364,1000)&key=D6LBZ-45P3N-3V2FH-S2YBM-6ISH3-7LF7W&keyword="+e+"&output=json&page_index=1&page_size=10";i()(t).then(e=>{e.data.data.length?(this.BoundsPois=e.data.data[0],this.map.setCenter(new qq.maps.LatLng(this.BoundsPois.location.lat,this.BoundsPois.location.lng)),this.setMoreMaker(e.data.data),this.$emit("tellFatherName",this.BoundsPois.location)):this.$message({type:"warning",message:"未查到数据"})})},getAddress(e){const t=new qq.maps.Geocoder({complete:e=>{const t={name:"当前标注位置",address:e.detail.address,latLng:{lat:e.detail.location.lat,lng:e.detail.location.lng}};this.BoundsPois=[t,...e.detail.nearPois]}});t.getAddress(e||this.map.getCenter())},scrollTop(){},selectCity(e){this.selectPosition=e;const t=this.BoundsPois[e].latLng.lat,o=this.BoundsPois[e].latLng.lng,n=new qq.maps.LatLng(t,o);this.map.panTo(n),this.marker.setPosition(n),this.marker.setAnimation(qq.maps.MarkerAnimation.DOWN),this.$emit("getLatLng",[t,o])},getLocation(){this.setMarker(new qq.maps.LatLng(31.314382,120.678256))},setMoreMaker(e){const t=new qq.maps.MarkerImage("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMgAAADICAYAAACtWK6eAAAAAXNSR0IArs4c6QAAGrBJREFUeF7tnQ2QHGWZx/9Pz2YSOBUOBExKCDszkbDTwxI06J2kSrQk4qHBKNyJCgp4hs8impNMTwIDyfQsGoXjKxEJCiregUbQnBiuFKrAOw1qspmZTZCZWUArkfAhnAphs9PPVc9OwmazO9PfX/NOFSXWPl/v/+kf3T3T/T4E8XFcgVIydyw0nksSjgThSNK4+b8AjmHgGEA6BuC3ATwo14qntyugnMw+AlA/QH8CtOcIeA76P4wXWaIXm/+r4UVItCNTK/zB8cV0eUDq8vXbWn4eeens1J5+iaV+ibgfTP1g9INwhLHA/KhBQN5nKB7jJRAGQTyoMQ1qpA0+UJ0xmEdeM+QvjA5SQABi4qB4KpV/++sYWcQa3gPifgJlTLhPYuowIFMUw+ASmAZJwq+mI/7gnGr+j/bq7h5vAUiHXu9I5N61V9LOIKazAcx39tDwBpBJan6CiR+YpkkPz60XfuPsmqIVTQAyoZ87Z+UPfWXG6PsbkvZ+MP4JwDvca7lvgIxf0u9B+K+YJv3isD09v5i1M/+qe+sNX2QBSKtn21K5RcS8mICF+s20N60MBCDjl/ocA5uYaMNJ1cKD3mgQ7CxdDUi5d2U/YtpiHgND9r5VgQNkvwQMlIloAxrSBnl41aD32gQjY9cBsuX4/OE90shikuhjYD7L3zYEF5ADdCHayBr/aFSLb5j3dP5lfzXzNnvXAFJJrZzHWuMiEBYDmOmtzFNlCwkgb5S/C4wNJMXWp6urtgRDQ3eriDwgldTKNFhbooEvISDmrpxmo4cOkOYCGWhIoLUgaV26uqpidtVhso8sIEOJFXM08BKmJhiHBLMp4QRkn5YMvEZMayXQur766qeCqbG9qiIHyFBvbrYWwxLmJhiH2ZPHbe9wAzIOlFeIaK3UwLq+4cIzbqvmZfzIALJ9bvbIxqh0JRhLAD7aSxGt54oGIG+sn3aDsC7Wo9184o7ii9Z1CY5nJAAZSirna8ByACcGR1ojlUQNkP1r3i4BA3019R4jKgTZJtSADKWUUzSNl4PonCCLPHVtkQVkbMnM90sSDfRV1d+Fsz9AKAGp9OXj2PP6co2wnEABvQE3ckhEHJDmN178msQYwIzpA+mh/IgRVYJkEzpASoms/iPf1WCcGiQhrdUSfUD260LYzBrfkKkXN1jTyh+v0ABSTeaPfp1Gisy40B+p3MjaRYC05CPCXdM5nk3V8rvdUNTpmKEApJJQPsDAGhBOdloAf+N1HyBj9ybYSsCydF39ub/6d84eeEDKiexVTFhDoID9Ct5Z3M4WXQrI2L1JgxjL5Hrxps46+WcRWED0hwrj0t41THyRf/K4nbl7AdmnLDGtH9GmLQvqQ5CBBGSwN7sgFqM10bgRbweZAKSpDmFzo8HL+oeLj7n9nySz8QMHSCmRvYSI1gA41OxiwmcvABnXs1eZeVmmXlwbpD4GCpByMncDwF8OkkDu1iIAOVhf+opcK1ztru7GowcGkFJKWU+R+grXSBMEIJOpxIS7MlU1EPeegQCknMw+CNBHjRxS0bIRgEzdT/6xXCsu8rvfvgNSTiqPA3iv30L4k18A0kH3X8o19TR/ejOW1VdASkllBwEn+CmAv7kFIJ30Z+DJTE2d28nOrb/7BkglmXuewW91a2HhiCsAMdInAr2QrhWOMmLrtI0vgJSTCju9kHDGE4CY6ZtcUz0/Xj1PWE4q+iuZx5kRJrq2AhCTvX1WrqmzTfrYMvcUkHJS0X8p9fWmy5ZajjsLQCxI+rhcUxdY8LPk4hkg5ZTyPTDOs1RlZJ0EIJZaS7hXrqqfsuRr0skTQMqp3I1gvspkbV1gLgCx3GSim+RqYallf4OOrgPSfY+PGFS+aSYAMaPWwbbuP5biKiDlZG4VwCvsiRBlbwGI/e7SarlWWGk/zuQRXAOk9VTu7W4VHo24AhAn+sjMl7r1FLArgDTf55DoZ93xyLqdFgtA7Kg3zvfVhsYfcuN9EscB0d8EnNYzsin6Lzs50VoBiBMqNmMQNu8djS90+s1ExwGpJHJ3Rvs1WcdaKm7SnZRSZ4RpfbpeuNjJsI4Com+wAKIbnSww2rHEGcTx/jIvdXIjCMcA0bfm0Yg3RXP3Ecfb2AooAHFaWX23FIlpoVNbCjkCiL6p2x4e2RS9faucbt/EeAIQVxRmbJ1B8YVObE7nCCCVlLI+WjseutK2SYIKQNxSWt/BMe3Aa7u2AWnulUv0Q7cWGu24AhA3+8vMH7e7F7AtQPRd1nlk5DHxla7VNgtArCpnyI+wmeLxBXZ2lbcHSCJ7DRNdZ6hYYSQusXw4Boj52nS9eL3V1JYB0YfXNJgfD/d8DquyOeUnziBOKTlVHH0+SYzoNKtDfCwDUk5k7wvvZCe322I0vgDEqFK27Jjvl+vFc63EsARIaybg3VYSCp/xCghAvDoeJOACKzMTTQPSnCa7l/RXZ0M2MNOrVpjJIwAxo5ZN2+2xabzA7PRd04CUU7nrwHyNzWKFe1MBAYinBwLR9XK1cK2ZnKYAGerNzdYkbA7PHHIzUvhhKwDxVnXaLWk4tW+4oO+sY+hjCpByKlcEsz6PXHwcUUAA4oiMZoIQDcjVQtaoi2FAhhIr5jRIe4KAw4wGF3YdFdgm19T+dlblpDII4KSOkYSBIQUYeCXG0vy++uqnjDgYBqScyH0NxF80ElTYmFCAtVPl+sATk3mUE8vng6TNJqIJUyMKMH1drhe+ZMTUECCV1Mq0xg397HGIkaDCxpQCd8g19QuTApJUvgHgX01FE8YdFWDgNYli89PVVZVOxsYASeZuYfDlnYKJv1tTgIAr0zX1lvHelaRyBQM3W4sovDopQKBb07XCFZ3tOlhUUivntc4eERzD3Eke7/5OwCsAPzuWkY5jca/nqvgMNFpnkS3tEnU8g5QTyq0gXOZqtSK4UMAPBRi3yXW17ZVRW0CaO5TERoYAzPSjfpFTKOCyArv2NuJ97XZCaQtIKaFcSIT1LhcpwgsFfFOAGRdl6updUxXQFpByKvcTMJ/lW/UisVDAbQWINsrVwkdMA1LuXdkPqbHV7fpEfKGA7wposZPl4VX6D7IHfaY8g4iHEn1vmyjAKwXaPMQ4JSClpFIiQPaqRpFHKOCXAgyUMzU1Y/gMsi2VWyQxP+BXwSKvUMBrBTSis0+qFh6cmHfSM0gpqdxNwPleFynyCQX8UoCBezI19YKOgFT68m/i10eGAXT5DHO/WiXy+qTACzQ93pseyv91fP6DziDlRO7jIP6BT0WKtEIB/xRg+oRcLxywCeLBgIgnSP1rkMjstwIHPVl9ECCVhFJnQq/flYr8QgGvFSDGcLquJqa8xKokcqcxsb5jifgIBbpSAWJakK4XHt+3+APOIOWUMgDG1V2pjFi0UEBXgHCDXFX377twICDi/WdxkAgFDtgnYD8gg7NX9MZ6tLrQxxMF/gLwRgb9lph2stTY1aPRTprW2KVn572xmaMSzyItNpOJZxH4nQDpD42+2ZPqujxJY1RK9D+zWv+pA/sBKSWVK0i84unmoVFl4CEJeChdUx+ykqiSVM7UgDMJOBNAykoM4dNZAQauzLRegX4DkITyHSJ8urO7sDCpwBAIt8tV9TaTfm3NyynlMjAuBdDnZFwRC2DGdzN19TMTziDZbQSa9IEtIZolBZ4F43aaEb9t4q+zlqJN4tR86mHPyGWgJijHORW32+MwuJSpFZt7kTXPIHnkpU8kRxrdLoxz66e7qTGyPP30V//kXMypI1WO/7e3cSw+APBBzxJ5kT+KOX5Qi8fyyGtNQLamls/rYel3UVyo52ua8DWhl/nF1/TOqT1K2iknVwe2NAHZllQ+KwHfci58d0Yikhalq6t/7OfqK6kVH2XWDnps28+awphbAz53Uk39dhOQcip7I5iuCuNCglKzXFM7bqHkZa3lpMJe5otcLuKb5Gpx6RggSeUXAE6P3CI9WlCD8M7+qhqoS9TBlHJKjPFbjySIYppH5Jr6/jFAEsqLIBwRxVW6vibC5+WqeqfreSwkKKeUi8H4pgVX4cJ4Sa6rR1IpmTuW9m95KXQxpQDjdrmuBnrXyXJCua31NbCppQljgEHHUalX+SBJeFgIYlqBZ6mx991efZVrurqWw9hXwNN+LX4nMa8gaziDKgnlPCZ8z7x7l3swlst19YYwqFBOKFeDMBCGWoNUIzE+ReVE9ioQ3RikwkJQyxBNj7/brV/InV5/a58B/SwiHksxIy7zUv0epEBgxYxf19sSLnf62Sq3NW09u3Wr23miFJ9BKpWTuTsA/nyUFubmWpgxnJnwWqab+ZyMXUoodRKvU5uQlL5JlaTyIwbONuHV7aZ3yjU1lP9BKScV/Svfi7u9gUbXT8ADVEoqvyTgH406dbsdEZ2brhbuD6MOlVTuHGa+L4y1+1EzA/9D5aTyewBz/CggdDkZf5Pr6ptCV/e4gssJ5a8g/F2Y1+Bh7U/pgPwZwOEeJg1vKub75Xrx3PAuQH9qInsfiM4J8xo8rP1lKiezj3iY0MNUpD8603zpxakPA8syNfVrTsXzI04pqXyJgDUO594G8EsOxwxEuEA9geq0IuXE8vkgSb8pdWbWONN5cr3wfafr9DJeOZH7JIjvdSjnHWDtTrk+8IRD8QIXJtKA7FPbqZnjTNrpmerAo4HroomCSqnl7yOWbF81TDbb3UQZoTHtCkD0blSSyst2Z4/HmE84sV7Uv9QI7Wd7IvuOBtGTdhagz3RP19SuuG/tIkCy29jmphQ9PaNvmfvkV/5i5+Dy23fHCV9+8+hoz//ZqYPApXRrUwM7ccLg2zWAlBPKFhBOttMUAUhLPcZWua7Os6NlWHy7BxAHvs4Wl1j7D+uX5Zr692E5yO3U2RWAlBJKngjX2hFK9xU36W8oyIzrMnU1b1fToPtHGpDBVO49MebPia953zgMnf6at0H0rf5q4VdBP9Ct1hfdHwqJ3gbGXKvCTOYnfiicQk3CDjB7skmek/00Ekt/1ET/BbQrrieNCNLehr8v14rn2Y/jX4RyMnsvQJ/0r4JQZf6z/j7IEMAnhqps/4r9i1xT3+JfevuZy0lF/4pXjFEwJCVtb11i0fsM2QsjfTPjD1sdX+C3fPr4BAZ+6ncd4cnPj1Ilmf0PBv1zeIr2t1IGbsnU1Cv9rcJa9lJSuZmAK6x5d58Xgf9TB+TfGRTKhvvUsqpcU0P5/kw5qTwlBu8YP2oIfDNVEtlrmOg6427CEmLThq44CIj5WhK7XVjqtdj2x5JsIXMiXK5/zfsvAEL9joMvsouN43yR3eOknxRbj1pXXGw9al27UHg2tx4Vm1fb6RXdLdcKn7UTwW3fcjL3bTGazZrKzc2rdVcx/sCagE0vH0eudapajGTrpFCbv+8bf9AERAzQsaEkEITRaxMXIEax2Wqp7jxugI4YwWZbTTGCzbaEwQowfgSbGOLpTG+CMIpNjF5zppcHDPEUY6CdEbV1T+LbSDYxcs25Ph4wBjqPvPSJ5EjDufBdHolxO2l7V3k1fao5RUqatlKMWnPuuPtBLR7LI6/tf6OwlMxuI5u7fjhXXiQiPQsdlBnx29watNMcjLNn5LIWGMdFQrUALILBpUxr15Y3AEko3yHCpwNQX9RKGALhdqcH7rQeEbpUTI1y/nBhxnczdfUzY9/itz7imSznhR4fUR+8Q4SfE9HDVscntMYXnMGMD4hBOC72a9zDqPsBeSqVf/vrPPIHF9OK0PsUYPwN4J8y0a+JaSdLjV09Gu2kaY1dugnvjc0clXgWabGZTDyLmN8N0IfF2AJvDqHpFD92TjX/xwPOIPr/KSeVzQDme1OGyCIUCKQCT8g19dR9lR2w7U8plVWIqRDIskVRQgEPFGDiXKZaVCcFZEci965R4shuZe+BviJFyBXoYZo/t174zaSAtC6z9J2/3xHydYryhQJWFPi9XFNPGO940M6K5ZTydTCWWokufIQCoVaAcKNcVb/YFpDtiRVnNUj7SagXKooXClhQIMbSR06sr97YFpCds/KHvnTISB3AMRZyCBehQFgVeO6I1+KJWTvzr7YFRP9jKancTcD5YV2pqFsoYFYBBu7J1NQLJvpNurv7tlRukcT8gNkkwl4oEFYFNKKzT6oWHjQESOssUiJADuuCRd1CAaMKMFDO1NTMZPZTzgcpp3LXgfkao0mEnVAgtAoQXS9XC5MOWJoakN6V/ZAaW0O7aFG4UMCoAlrsZHl41aCpM4huXE7lfgLms4zmEXZCgdApQLRRrhY+MlXdbUewlRLKhURYH7pFi4KFAgYVYMZFmbp6lyVAthyfP3xabGQIwEyD+YSZUCBMCuza24j3zXs6/7IlQJqXWQnlVhAuC9OqRa1CAUMKMG6T6+rl7Ww7TrmtpFbO07jxBAExQ0mFkVUFXgbj6aYz4XgAh1sNJPw6K8BAQ6LY/HR11RZbgOjOlWTuFga3Ja1zScJiKgUmmznu1Gx3ofrkChDo1nSt0HHaVsczSBOQ1Mp06yxyiBDccQXukGvqFyaLWk4q33BsxrvjZYc3IAOvtc4elU6rMATI2L1I7msgPuBR4E7Bxd87K9Ag+of+auFXk1kOpnLviTH/b+cowsKUAkxfl+uFLxnxMQzIUGLFnAZp+r3IYUYCCxsDChB2yFW17QjuckrZDsZcA9GEiQEFGHglxtL8vvpqfV5jx49hQJpnkVSuCOblHaMKA4MK8KNyrXh6O+NyMvsIIMZ0GxS0sxnRgFwtZDsbjlmYAmSoNzdbk7AZ4KONJhB27RQQgHh7fNBuScOpfcOFZ4zmNQVI6ywiHmI0qm5HOwFIR4mcNGjzUOJUaUwDsn1u9sjGXnoMQNtrZyfXFd1YAhAPe7s9No0XnLij+KKZnKYB0YMPJZXzNeBuM4mE7WQKCEC8Oi4k4IK+mnqP2XyWAGleaiWy94HoHLMJhf14BQQgnhwPzPfL9eK5VnJZBmQopZzSYH6cQOLHQyvKN30EIJalM+jI4NdiRKf1VdXfGXQ5wMwyIHqUSiJ7DRNdZyWx8BGAeHEMEPO16Xrxequ57AHSl4/zyMhjYOzf7NdqId3pJ84grvadsJni8QXpofyI1Ty2ANGTlhLZxUT0Q6sFdLefAMTN/jPzxzP14gY7OWwD0rzUSinrmXGhnUK601cA4lbfiXBXuqpeZDe+I4BUk/mj9/DIJhBOtltQd/kLQFzpN2PrDIovTNXyu+3GdwSQsRt25QMa8SYCiRerDHdFAGJYKoOGDG5ITAvTdfXnBl3amjkGiJ6lnMheBaIbnSisO2IIQBzvM/NSuV68yam4jgIydibJ3cnEtq/9nFpgsOMIQJzsDzGtT9cLFzsa08lgeqzmTig9I5vEV79GlBWAGFHJkA1h897R+MJ2O5QYijPByPEziB5/sDe7ICbRzwAcaqWo7vERgDjU61cbGn+of7ioP0Tr6McVQPQKS4nsJUR0u6PVRi6YAMSJljLzpZl6ca0TsSbGcA2Q5k17MncDwF92o/BoxBSA2O8jfUWuFa62H2fyCK4C0jyTpJT1JH5EnKJ/AhA7BzYT7so48GNguxpcB2TsTJJ9EKCP2hEjmr4CEOt95R/LteIi6/7GPD0BZAwS5XEA7zVWVrdYCUAsdvqXck09zaKvKTfPAGlebiWVHQQcMIfaVLWRMxaAmG0pA09maqpn2yB5CoguRiWZe57BbzUrTDTtBSBm+kqgF9K1wlFmfOzaeg5I63KL7RYeDX8BiJk+yjXV8+PV84T7BCknFX1vouPMCBQ9WwGIwZ4+K9fU2QZtHTXzDZDWmUT/5dOTmy1HVXMsmADEgJSPyzV1gQE7V0x8BaQJSUr5HhjnubK6wAcVgLRtEeFeuap+ys82+g7IGCS5G8F8lZ9C+JNbADKl7kQ3ydXCUn/68kbWQAAydrnVjY+lCEAmB8Ddx0fMQBcYQFqQrAJ4hZkFhNtWAHJw/2i1XCusDEpfAwWILkrrKeA13fGovABkHAivMvMyt57KtQpc4ADRF9J8nyRGa6L/0pUApHngEjY3GrzMjfc5rIKxzy+QgOjF6W8mxqW9a6L9+q4ARH9NdkSbtszpNwHtghF4QPYVqG8EwYQ10dwtpXsB0XcfIcYyJzdYcAqK8XECewYZX6S+pRADa6K371aXAsLYSsAyp7bmcQOM0JxB9hWqb073Oo0Uo7WDY/cBou94OJ3jWSc2dXMTjNABsq/g5l7AEl0djRv4LgKEsJk1vsHuXrleQBG6S6yJolT68nHseX25Rlge7vkk0QdEn88hMQYwY/qAnV3WvQYjtGeQ8ULpQ3w0jZeHd9JVxAFhvl+SaMDq8Bq/oAj9GWSicK2Zifr89pANFo0sINslYMDKTMAgQBE5QPQFNafvjkpXgrEkPHPcowYI7QZhXaxHu9nsNNmggRGJS6zJRB3qzc3WYljCzJcQcFhQhR+rKxqAMPAKEa2VGljXN1zQX4SLzCcUv4NYUXsosWKOBl7C1AQloINGww0IA68R01oJtK6vvvopK30Kuk9kAdknfCW1Mg3WlmhoghKw2SXhBISBhgRaC5LWpaurKkE/yO3UF3lAxoEyj7XGRSAsBjDTjmjO+YYOkF1gbCAptj5dXbXFOR2CG6lrANnXAv0hyB5pRP+x8WNgPsvf1oQEEKKNrPGPRrX4hqA+VOhWH7sOkPFClntX9iOmLWbmxQTIbok8ddzgAsJAmYg2oCFtkIdXDXqvTTAydjUg41uwLZVbRGOgfBiARxvbBQ6QFxj4KRNtOKlaeDAYh6i/VQhAJuhf6cu/iffsXQjiM4jxQSb0utci/wEhxjAT/htMD9OMaZvSQ/m/urfe8EUWgHToWSWRO40lPguMMwGc5GyLfQNkGwgPkUYb0/WCvqm4+EyhgADExKExOHtFr9Sj6bCcCuJ+AmVMuE9i6g0gDC6BaVB/tVUblTb2P7N62F7d3eMtALHR6zzy0tmpPf0SS/0ScT+Y+sHoB+EIY2EdBoTxEgiDIB7UmAY10gYfqM4YzCOvGatHWE1UQADiwjFRSuaOhcZzJcJRDD6aSTqKgKMIfJQGHK3/O5r/8Fa5Vjy9XQnlZPYRgE4G8DwDz0vAbgY1/51Ye55AuzXG85BoR6ZW+IMLy+nqkP8Pn6yycT3v214AAAAASUVORK5CYII=",new qq.maps.Size(60,50),new qq.maps.Point(0,0),new qq.maps.Point(12,34),new qq.maps.Size(25,25)),o=new qq.maps.MarkerImage("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQAgMAAABinRfyAAAADFBMVEUAAAD///////8Aef/rgTCIAAAAAnRSTlMAlm//+0kAAAAlSURBVAjXY4AAtglAgvsBBiG1+tUSBv3//3+ACQgXUx3EADAAAAKHE3VhGPlFAAAAAElFTkSuQmCC",new qq.maps.Size(16,16),new qq.maps.Point(0,0),new qq.maps.Point(5,5),new qq.maps.Size(10,10));this.markerList.forEach(e=>{e.setMap(null),e=null}),this.markerList=[],e.forEach(e=>{let n=new qq.maps.Marker({map:this.map,position:new qq.maps.LatLng(e.location.lat,e.location.lng)});n.setIcon(t),n.setShadow(o),this.markerList.push(n)})},setMarker(e){console.log(e);const t=new qq.maps.MarkerImage("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADQAAABJCAMAAABFGvXGAAACf1BMVEUAAAD/PyL/PyL/PyL/PyL/PyL/PyL/PyL/PyL/PyL/PyL/PyL/PyL/PyP/PyL/PyL+PiL/PyL/PyL/PyP/PyL/PyL/PyL/PyL/PyL4OyP/PiL/PyL/PyL/PyLzOiX5PCX9QCj/PyLQJiX0RkTkNC39PyXsNST/PyL/PyL/PyLyRUTgNDPdMjHzRELxQ0HzRUPTJyTZKyf1RULeLyf0Qz30Qzz8PST/PyLWLS3rPz/RKCjMJCTZLy/mOjnUKirPJSXLIiLzRkXpPDvWLCvgNDP0R0XsPz3ZLyzgNDPVKijRJSTtPzvcMS71R0TjNjPZLCnyREHpOzjiNDDtPzvkNS7kNTDsPDXYKiPiLyPqNy3zQTncLCTpMyTxOinsNif0QTf1Qzz5QjTxOyr4QC/tQT/mOjnwQkDmOTfPJSLdLyr0RULyQj3nOTbWKibTKCT0RD/yQTrxQz/lNCzbLSjyPzX2RkHXKSL2RDzgMSjkMiXiMCP4RDrrNyn/////XVv/S0v/W1n/SEf/YF7/UVD/VVP/WFb/REP/TUz/YV//Xlz/Pj7/T07/RkX/QED/Ozv/Skn/WVj/OTn/VlX/U1L/QkL/QUH/ODf5UlH4UU/vQUD7V1b2TEv0SUj/+vr3Tk3/2dn9XVz8W1r6TEv7R0b7REPvPTzzPDvoPDvnOjnpODjnMDDjLS3dKir/vr7/qqn/pqX/mZn/ZWT6VVP9VFP//Pz/8PD/4eH/3t3/zs7/w8P/ra3/iIj/fX3/e3r5UU/+TUzsPTz5PDz+Nzf4NjbrNjbpNjbyNjXuNjXlMjLjMjLxMTHsMTDlLCz/9vb/6ej/yMf/ubj/lJT/kI//gH/9WFcH01InAAAAfXRSTlMAAgYEFgoIDB4TDhgzJBFBKiYbFD1FRDg7Ni8tEChcUUAa6tmJSkQxIA/++fTg1tDFr6qaimVNIv79/f379/f29PLy7efj4+Ld3NnV1MvKyMTDvLmmopqMgXd1c21oYV5PRz0h7url3sC3tLKrq6iimJaVkYaBgHt4XVtUUgcS3xIAAAQzSURBVEjHjZdldxNBFIaZ3Y1nI43QhFChhVLc3d3d3d3dijRIi2uclCoV3N3d7Qcxuwls7mxWno9zz3Pu3XlnMieN0oAQTVM8NI0QWZUwNLpCA8Nj8Ok0lKKHaK2RWbi109i8oUPzxnbqsrt7rsOooZGsorEs6DQwGoyUX8KUR4LRgau6siaLtIaQ1tI1LxopLkmhOBJtu71phk+LUPo2upz28fISEeWhvPkso0vXDFGWLq1ulaQl0mp9E71Fi0SOVj8hVFoiQXGofU53B7YIx94+VCxDsG1zO6NB0FncDjvy1kI76IVoxwTsyBNql8laKCRIuo3xUkXiq816IxKGWxDeW6pMbJaN/6zkcO2Ce1Vwa5mTtSTjQppZ0b2qiG8oyNAlJJoZFlEn/VlitRvoRKOusf0qiXUpyOC/ChVODoqqT69dvXrtiWj51ujGbCHXilrc8zSplBXx3P9NWj2zmzAUwtPNb3Ua8utiUZI7N4hSbIuZ2wpknBY9BHjCO0nrMazFJzfujgOmLROfgfXT94pS+LYfFIOjnU3x/lHMsNtg/XER4Cco3h5kxR+FpUG3z6byA0oPzwIuW70mbSOt6fJBwAMolcHq5W5mXqqFy2VQukdI2eZcDZb6ngPLD6H0AEq1LnMGJy19di6VG1C6Dor+vm6uE8WMq/CnUvo11bl4ExQrlrsLTFosrYn5ATdAI1iLTeS3nDbMDPshVwXnO1EKT3PacLiocFHtMYj/+sXkbI/8RKl2bqbdhyWdfkTFMYKb18ru3r3/6Ca5XjHE5dFzB5Zi8sNHVBKewh0IhG+7z9P6uTrneeuszMR9R7qMqeF9qghPcpvxdJxEGRa1qVTjVLbOctocFCdxW5H/Qo30YmqyUaKVbUTlKUUqh3TLbMo3SraaVH1AkepxQiOulaNFmyolp6oN/iJGeDaQUZ9fpyTVbXInXg2hlW1M9XFZqsc0F74Iw2e1p0+VnFPVZ67Vy//6CxLtYzvXHZahborLw/po4tFlvMNrpJ2a4d3wLoied51+Xg9pqcdM67/tBgNa2I5vz0vwdqWrMf8IkpbG5BlccyEtNYOznTaThnCSYe34eCItH/OtQkRQogz28W/SOW/GuxrbDUJExIAt+r08KuJlv3k5TcBwYC+MLTd/EEsfOrs9LY1gF8CAjG3ke9J5PxKfH4YcDpymnb0I52SvOdYCeH7EYa2tPwmo75g2IniaPM3epTrvmmWLz484rNlXUqUrM6QigmF1qD/zn/oO0hHBsPq//ue87p/lhBFJhjW94Z/U0NltxhHJK8mwRn1OOJ9HkVdcJqxdvV8FMK96zyGuuGxY6xo4qQFHBK+4QlifAoFPyhGRYQUCyhGRYa348kVVRDCsAQOyiFukHJZ+2/Qcsx5GpDwg6/WyYDg1Axpycw1wOGUJURrwv1OtJq38BbsNQs0bptLnAAAAAElFTkSuQmCC",new qq.maps.Size(52,73),new qq.maps.Point(0,0),new qq.maps.Point(12,34),new qq.maps.Size(25,35)),o=new qq.maps.MarkerImage("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQAgMAAABinRfyAAAADFBMVEUAAAD///////8Aef/rgTCIAAAAAnRSTlMAlm//+0kAAAAlSURBVAjXY4AAtglAgvsBBiG1+tUSBv3//3+ACQgXUx3EADAAAAKHE3VhGPlFAAAAAElFTkSuQmCC",new qq.maps.Size(16,16),new qq.maps.Point(0,0),new qq.maps.Point(5,5),new qq.maps.Size(10,10));this.marker=new qq.maps.Marker({map:this.map,position:e}),this.marker.setIcon(t),this.marker.setShadow(o)}}},s=(o("40f2"),o("d959")),c=o.n(s);const d=c()(l,[["render",a],["__scopeId","data-v-74b2c7a1"]]);t["default"]=d},a54c:function(e,t,o){},a591:function(e,t,o){},a5c4:function(e,t,o){"use strict";o.r(t);var n=o("f2bf");const a={className:"container"},r={id:"mapMarker",className:"rect-marker-dialog"};function i(e,t,o,i,l,s){const c=Object(n["resolveComponent"])("SiteSearch"),d=Object(n["resolveComponent"])("SiteDetail"),u=Object(n["resolveComponent"])("DialogMarkerContainer");return Object(n["openBlock"])(),Object(n["createElementBlock"])("div",a,[Object(n["createVNode"])(c,{siteList:l.siteList,onNodeClick:s.onNodeClick},null,8,["siteList","onNodeClick"]),t[0]||(t[0]=Object(n["createElementVNode"])("div",{id:"mapDiv",className:"container-map"},null,-1)),Object(n["createElementVNode"])("div",r,[Object(n["createVNode"])(u,{ref:"de"},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(d,{ref:"detail",markerSiteData:l.markerSiteData},null,8,["markerSiteData"])]),_:1},512)])])}var l=o("7869"),s=o("93d3"),c=o("7075"),d=o("7cf8"),u=o("78ed"),m=(o("9513"),{components:{SiteDetail:s["default"],DialogMarkerContainer:u["default"],SiteSearch:c["default"]},data(){return{overlay:null,map:null,markerSiteData:{},siteDetailOpenPoint:null,markerContainRect:{},siteList:[],deviceInfo:[],loading:""}},async mounted(){this.loading=this.$loading({lock:!0,text:"Loading",spinner:"el-icon-loading",background:"rgba(0, 0, 0, 0.7)",target:document.querySelector("#mapDiv")});const e=await Object(d["getSiteList"])();this.siteList=e;const t=this.flatSiteList(),o=t.find(e=>1===e.id)||t[0],n={longitude:(null===o||void 0===o?void 0:o.longitude)||116.40769,latitude:(null===o||void 0===o?void 0:o.latitude)||39.89945,zoom:12};this.initMap(n),this.initMarker(t)},methods:{async initMap(e){this.map=new T.Map("mapDiv"),this.map.centerAndZoom(new T.LngLat(e.longitude,e.latitude),e.zoom),console.log(this.$i18n);const t=new T.Control.MapType([{title:"map",icon:"http://api.tianditu.gov.cn/v4.0/image/map/maptype/vector.png",layer:window.TMAP_NORMAL_MAP},{title:"satellite",icon:" http://api.tianditu.gov.cn/v4.0/image/map/maptype/satellite.png",layer:window.TMAP_SATELLITE_MAP}]);this.map.addControl(t),this.map.setMapType(window.TMAP_NORMAL_MAP)},flatSiteList(){let e=[];return this.siteList.forEach(t=>{t.children.forEach(t=>{e=e.concat(t.children)})}),e},initMarker(e){var t,n;const a=e.map(e=>{var t=1==e.status?o("0f0e"):o("ea01");const n=new T.Marker(new T.LngLat(e.longitude,e.latitude),{icon:new T.Icon({iconUrl:t,id:e.id,iconSize:new T.Point(50,50),iconAnchor:new T.Point(0,0)}),title:e.name}),a=new l["DefinedMarkerInfoWindow"]("a"+e.id,{placement:"rightBottom"});a.on("open",()=>{this.$refs["detail"].isDetailShow(!0),this.siteDetailOpenPoint=e,this.resizeSiteDetailPosition()}),a.on("close",()=>{var e,t;null===(e=this.$refs)||void 0===e||null===(e=e.de)||void 0===e||null===(t=e.setPosition)||void 0===t||t.call(e,{top:-999,left:-999}),this.siteDetailOpenPoint=null});const r={marker:n,...e,lng:e.longitude,lat:e.lat};return n.on("click",e=>{this.markerSiteData=r,this.$nextTick(()=>{n.openInfoWindow(a)})}),r}),r=new T.MarkerClusterer(this.map,{markers:a.map(e=>e.marker),girdSize:100});r.setMaxZoom(18),r.setStyles([{url:o("0f0e"),size:[60,60],offset:new T.Point(0,0),textColor:"#fff",textSize:10,range:[0,5]},{url:o("3b84"),size:[60,60],offset:new T.Point(0,0),textColor:"#fff",textSize:10,range:[5,1e5]}]),this.markerContainRect=null!==(t=null===(n=document.querySelector("#mapMarker"))||void 0===n?void 0:n.getBoundingClientRect())&&void 0!==t?t:{top:0,left:0},this.loading.close(),this.onMapListener()},onMapListener(){this.map&&(this.map.on("resize",this.resizeSiteDetailPosition),this.map.on("dragend",this.resizeSiteDetailPosition),this.map.on("zoomend",this.resizeSiteDetailPosition),this.map.on("dragstart",this.resizeSiteDetailPosition),this.map.on("drag",this.resizeSiteDetailPosition),this.map.on("clearoverlays",()=>{var e,t;null===(e=this.$refs)||void 0===e||null===(e=e.de)||void 0===e||null===(t=e.setPosition)||void 0===t||t.call(e,{top:-999,left:-999}),this.siteDetailOpenPoint=null}))},resizeSiteDetailPosition(){this.siteDetailOpenPoint&&this.$nextTick(()=>{var e,t,o,n;const a=document.querySelector("#a"+this.siteDetailOpenPoint.id),{top:r=0,left:i=0,width:l=60}=null!==(e=null===a||void 0===a||null===(t=a.getBoundingClientRect)||void 0===t?void 0:t.call(a))&&void 0!==e?e:{},{top:s=0,left:c=0}=this.markerContainRect;null===(o=this.$refs)||void 0===o||null===(o=o.de)||void 0===o||null===(n=o.setPosition)||void 0===n||n.call(o,{top:r-s,left:i+l-c})})},detailShow(e){new l["DefinedMarkerInfoWindow"]("a"+e.id,{placement:"rightBottom"});this.siteDetailOpenPoint=null,this.$refs["detail"].isDetailShow(!0),this.siteDetailOpenPoint=e,this.resizeSiteDetailPosition()},onNodeClick(e){this.map.centerAndZoom(new T.LngLat(e.longitude,e.latitude),18),console.log(e,"node-click______-11111")}}}),h=(o("8abb"),o("d959")),p=o.n(h);const b=p()(m,[["render",i],["__scopeId","data-v-01afd0e7"]]);t["default"]=b},a5da:function(e,t,o){},a5e0:function(e,t,o){},a5f3:function(e,t,o){"use strict";o.r(t);var n=o("f2bf");const a={class:"dialog-footer"};function r(e,t,o,r,i,l){const s=Object(n["resolveComponent"])("el-option"),c=Object(n["resolveComponent"])("el-select"),d=Object(n["resolveComponent"])("el-form-item"),u=Object(n["resolveComponent"])("el-form"),m=Object(n["resolveComponent"])("el-button"),h=Object(n["resolveComponent"])("el-dialog");return Object(n["openBlock"])(),Object(n["createBlock"])(h,{modelValue:i.dialogFormVisible,"onUpdate:modelValue":t[1]||(t[1]=e=>i.dialogFormVisible=e),title:i.title,width:"500px",onClose:l.close},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(u,{ref:"form",model:i.form,rules:i.rules,"label-width":"60px"},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(d,{label:e.$t("dataEnquiry.xm"),prop:"projectIds"},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(c,{modelValue:i.form.projectIds,"onUpdate:modelValue":t[0]||(t[0]=e=>i.form.projectIds=e),size:"small",filterable:"",multiple:"",placeholder:"请选择"},{default:Object(n["withCtx"])(()=>[(Object(n["openBlock"])(!0),Object(n["createElementBlock"])(n["Fragment"],null,Object(n["renderList"])(i.projectData,e=>(Object(n["openBlock"])(),Object(n["createBlock"])(s,{key:e.id,label:e.name,value:e.id},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1},8,["label"])]),_:1},8,["model","rules"]),Object(n["createElementVNode"])("div",a,[Object(n["createVNode"])(m,{type:"primary",size:"small",onClick:l.save},{default:Object(n["withCtx"])(()=>t[2]||(t[2]=[Object(n["createTextVNode"])("确 定")])),_:1},8,["onClick"]),Object(n["createVNode"])(m,{size:"small",onClick:l.close},{default:Object(n["withCtx"])(()=>t[3]||(t[3]=[Object(n["createTextVNode"])("取 消")])),_:1},8,["onClick"])])]),_:1},8,["modelValue","title","onClose"])}var i=o("f547"),l={data(){return{form:{userId:"",projectIds:[]},rules:{projectIds:[{required:!0,trigger:"change",message:"请选择项目"}]},projectData:[],clearable:!0,title:"",dialogFormVisible:!1}},created(){},methods:{async getProjectData(){const{data:e}=await Object(i["allProject"])();this.projectData=e},bindDevice(e){this.title="绑定项目",this.form.userId=e.userId,this.dialogFormVisible=!0,this.getProjectData(),this.getAlarmProjects()},async getAlarmProjects(){const{data:e}=await Object(i["alarmProjects"])({userId:this.form.userId});this.form.projectIds=e},close(){this.$refs["form"].resetFields(),this.form=this.$options.data().form,this.dialogFormVisible=!1,this.$emit("fetch-data")},save(){console.log(this.form),this.$refs["form"].validate(async e=>{if(!e)return!1;{const{msg:e}=await Object(i["assignToProjects"])(this.form);this.$notify({title:e,type:"success"}),this.$refs["form"].resetFields(),this.dialogFormVisible=!1,this.$parent.fetchData()}})}}},s=(o("8106"),o("d959")),c=o.n(s);const d=c()(l,[["render",r]]);t["default"]=d},a600:function(e,t,o){},a631:function(e,t,o){"use strict";o.r(t);var n=o("f2bf");const a={class:"manage-container"};function r(e,t,o,r,i,l){const s=Object(n["resolveComponent"])("el-date-picker"),c=Object(n["resolveComponent"])("el-form-item"),d=Object(n["resolveComponent"])("el-input"),u=Object(n["resolveComponent"])("el-button"),m=Object(n["resolveComponent"])("vab-query-form"),h=Object(n["resolveComponent"])("el-form"),p=Object(n["resolveComponent"])("el-row"),b=Object(n["resolveComponent"])("el-table-column"),g=Object(n["resolveComponent"])("el-table"),f=Object(n["resolveComponent"])("el-pagination"),v=Object(n["resolveComponent"])("vab-query-form-right-panel"),w=Object(n["resolveDirective"])("loading");return Object(n["openBlock"])(),Object(n["createElementBlock"])("div",a,[Object(n["createVNode"])(p,null,{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(h,{ref:"form",model:e.form,"label-width":"80px"},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(m,null,{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(c,{label:e.$t("defalult.sj")},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(s,{modelValue:e.value1,"onUpdate:modelValue":t[0]||(t[0]=t=>e.value1=t),type:"daterange","range-separator":"至","start-placeholder":"开始日期","end-placeholder":"结束日期"},null,8,["modelValue"])]),_:1},8,["label"]),Object(n["createVNode"])(c,{label:"工单编号"},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(d,{modelValue:i.queryForm.name,"onUpdate:modelValue":t[1]||(t[1]=e=>i.queryForm.name=e),placeholder:"请输入工单编号"},null,8,["modelValue"])]),_:1}),Object(n["createVNode"])(c,{label:"关键字"},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(d,{modelValue:i.queryForm.name,"onUpdate:modelValue":t[2]||(t[2]=e=>i.queryForm.name=e),placeholder:"请输入关键字"},null,8,["modelValue"])]),_:1}),Object(n["createVNode"])(u,{type:"primary",onClick:e.search},{default:Object(n["withCtx"])(()=>[Object(n["createTextVNode"])(Object(n["toDisplayString"])(e.$t("defalult.cx")),1)]),_:1},8,["onClick"]),Object(n["createVNode"])(u,{type:"primary",onClick:e.search},{default:Object(n["withCtx"])(()=>[Object(n["createTextVNode"])(Object(n["toDisplayString"])(e.$t("defalult.dc")),1)]),_:1},8,["onClick"])]),_:1})]),_:1},8,["model"])]),_:1}),Object(n["withDirectives"])((Object(n["openBlock"])(),Object(n["createBlock"])(g,{data:i.data,border:"",stripe:"",style:{width:"100%"}},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(b,{prop:"id",label:e.$t("trigger.xh"),width:"60",align:"center"},null,8,["label"]),Object(n["createVNode"])(b,{prop:"jiedao",label:"工单编号",width:"120",align:"center"}),Object(n["createVNode"])(b,{prop:"shequ",label:"工单类型",width:"200",align:"center"}),Object(n["createVNode"])(b,{prop:"mingcheng",label:e.$t("maintenance.zdlx"),width:"200",align:"center"},null,8,["label"]),Object(n["createVNode"])(b,{prop:"guimo",label:"业务类型",width:"200",align:"center"}),Object(n["createVNode"])(b,{prop:"kaishi1",label:"站点",width:"200",align:"center"}),Object(n["createVNode"])(b,{prop:"jieshu1",label:"街道类型",width:"200",align:"center"}),Object(n["createVNode"])(b,{prop:"dangqian",label:"位置",width:"200",align:"center"}),Object(n["createVNode"])(b,{prop:"kaishi2",label:"工单描述",width:"200",align:"center"}),Object(n["createVNode"])(b,{prop:"jieshu2",label:e.$t("grouping.cjsj"),width:"200",align:"center"},null,8,["label"]),Object(n["createVNode"])(b,{fixed:"right",label:e.$t("defalult.cz"),align:"center"},{default:Object(n["withCtx"])(({row:t})=>[Object(n["createVNode"])(u,{type:"text",onClick:e=>l.handleDelete(t)},{default:Object(n["withCtx"])(()=>[Object(n["createTextVNode"])(Object(n["toDisplayString"])(e.$t("defalult.sc")),1)]),_:2},1032,["onClick"])]),_:1},8,["label"])]),_:1},8,["data"])),[[w,i.listLoading]]),Object(n["createVNode"])(m,null,{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(v,null,{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(f,{background:i.background,"current-page":i.queryForm.page,layout:i.layout,"page-size":i.queryForm.size,total:i.total,onCurrentChange:l.handleCurrentChange,onSizeChange:l.handleSizeChange},null,8,["background","current-page","layout","page-size","total","onCurrentChange","onSizeChange"])]),_:1})]),_:1})])}var i={name:"Index",components:{},data(){return{data:[{id:1,jiedao:"123456",shequ:"工单类型",mingcheng:"站点类型",guimo:"业务类型",kaishi1:"站点",jieshu1:"街道类型",dangqian:"位置",kaishi2:"工单描述",jieshu2:"2022-10-1"},{id:2,jiedao:"123456",shequ:"工单类型",mingcheng:"站点类型",guimo:"业务类型",kaishi1:"站点",jieshu1:"街道类型",dangqian:"位置",kaishi2:"工单描述",jieshu2:"2022-10-1"},{id:3,jiedao:"123456",shequ:"工单类型",mingcheng:"站点类型",guimo:"业务类型",kaishi1:"站点",jieshu1:"街道类型",dangqian:"位置",kaishi2:"工单描述",jieshu2:"2022-10-1"}],lazy:!0,activeName:"first",layout:"total, sizes, prev, pager, next, jumper",total:0,input:"",textarea:"",list:[],background:!0,listLoading:!0,elementLoadingText:"正在加载...",queryForm:{page:1,size:20,name:""}}},computed:{height(){return 500}},created(){this.fetchData()},methods:{async fetchData(){this.listLoading=!0,setTimeout(()=>{this.listLoading=!1},500)},handleAdd(){this.$refs["edit"].showEdit()},handleEdit(e){this.$refs["edit"].showEdit(e)},handleQuery(){this.queryForm.page=1,this.fetchData()},handleSizeChange(e){this.queryForm.size=e,this.fetchData()},handleCurrentChange(e){this.queryForm.page=e,this.fetchData()},handleDelete(e){e.id&&this.$confirm("你确定要删除当前项吗?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(()=>{this.$message({type:"success",message:"删除成功"})}).catch(()=>{this.$message({type:"info",message:"已取消删除"})})}}},l=(o("cb9b"),o("d959")),s=o.n(l);const c=s()(i,[["render",r],["__scopeId","data-v-1e5e314b"]]);t["default"]=c},a712:function(e,t,o){"use strict";o.r(t);var n=o("f2bf");const a={class:"manage-container"};function r(e,t,o,r,i,l){const s=Object(n["resolveComponent"])("el-table-column"),c=Object(n["resolveComponent"])("el-table"),d=Object(n["resolveComponent"])("el-pagination"),u=Object(n["resolveDirective"])("loading");return Object(n["openBlock"])(),Object(n["createElementBlock"])("div",a,[Object(n["withDirectives"])((Object(n["openBlock"])(),Object(n["createBlock"])(c,{data:i.tableData,stripe:"",border:"",style:{width:"100%"}},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(s,{prop:"tqImei",label:"imei",width:"200",align:"center"}),Object(n["createVNode"])(s,{fixed:"",prop:"tqNum",label:e.$t("vehicle.cph"),width:"200",align:"center"},null,8,["label"]),Object(n["createVNode"])(s,{prop:"projects",label:e.$t("vehicle.gsxm"),align:"center"},{default:Object(n["withCtx"])(({row:e})=>[(Object(n["openBlock"])(!0),Object(n["createElementBlock"])(n["Fragment"],null,Object(n["renderList"])(e.projects,(e,t)=>(Object(n["openBlock"])(),Object(n["createElementBlock"])("span",{key:t},Object(n["toDisplayString"])(e)+" , ",1))),128))]),_:1},8,["label"])]),_:1},8,["data"])),[[u,i.listLoading]]),Object(n["createVNode"])(d,{background:i.background,"current-page":i.queryForm.page,layout:i.layout,"page-size":i.queryForm.size,total:i.total,style:{"text-align":"right"},onCurrentChange:l.handleCurrentChange,onSizeChange:l.handleSizeChange},null,8,["background","current-page","layout","page-size","total","onCurrentChange","onSizeChange"])])}var i=o("fbb2"),l={data(){return{tableData:[],lazy:!0,layout:"total, sizes, prev, pager, next, jumper",total:0,background:!0,listLoading:!1,elementLoadingText:"正在加载...",queryForm:{page:1,size:20,projectId:""}}},created(){this.queryForm.projectId=sessionStorage.getItem("projectId"),this.fetchData()},methods:{async fetchData(){this.listLoading=!0;const{data:e}=await Object(i["getList"])(this.queryForm);this.tableData=e.items,this.total=e.total,setTimeout(()=>{this.listLoading=!1},500)},handleQuery(){this.queryForm.page=1,this.fetchData()},handleSizeChange(e){this.queryForm.size=e,this.fetchData()},handleCurrentChange(e){this.queryForm.page=e,this.fetchData()}}},s=(o("f62d"),o("d959")),c=o.n(s);const d=c()(l,[["render",r]]);t["default"]=d},a72c:function(e,t,o){"use strict";o.r(t);var n=o("f2bf");const a={id:"alarm",style:{width:"100%",height:"300px"}};function r(e,t,o,r,i,l){return Object(n["openBlock"])(),Object(n["createElementBlock"])("div",a)}var i=o("365c"),l=o("313e"),s=o("5f99"),c={props:{time:{type:Array},all:{type:Boolean,default:!1}},data(){return{chartPie:null,alarmData:[],alarmTime:"",isAllProject:!1}},watch:{time(e){this.alarmTime=e,this.getAlarmData(),setTimeout(()=>{this.drawCharts()},2e3)},all(e){this.isAllProject=e,this.getAlarmData(),setTimeout(()=>{this.drawCharts()},2e3)}},mounted:function(){},methods:{async getAlarmData(){var e=sessionStorage.getItem("projectId"),t={};t=0==this.isAllProject?{start:Object(s["getDate"])(this.alarmTime[0]),end:Object(s["getDate"])(this.alarmTime[1]),projectId:e}:{start:Object(s["getDate"])(this.alarmTime[0]),end:Object(s["getDate"])(this.alarmTime[1])};const{data:o}=await Object(i["getAlarmData"])(t);this.alarmData=[{value:o.handle,name:"processed"},{value:o.unHandle,name:"untreated"},{value:o.total,name:"total"}]},drawPieChart(){this.chartPie=l["a"](document.getElementById("alarm")),this.chartPie.setOption({title:{text:"Alarm Statistics",left:"center"},tooltip:{trigger:"item"},legend:{orient:"vertical",left:"bottom"},series:[{type:"pie",radius:"50%",data:this.alarmData,emphasis:{itemStyle:{shadowBlur:10,shadowOffsetX:0,shadowColor:"rgba(0, 0, 0, 0.5)"}}}]})},drawCharts(){this.drawPieChart()}}},d=o("d959"),u=o.n(d);const m=u()(c,[["render",r]]);t["default"]=m},a786:function(e,t,o){"use strict";o("826a")},a78c:function(e,t,o){},a7df:function(e,t,o){e.exports={"menu-color":"hsla(0,0%,27%,.95)","menu-color-active":"hsla(208,100%,55%,.95)","menu-background":"#fff","gallery-second-menu-background":"#fff"}},a810:function(e,t,o){"use strict";o.r(t);var n=o("f2bf");function a(e,t,o,a,r,i){return Object(n["openBlock"])(),Object(n["createElementBlock"])("div",null,"map")}var r={name:"Map"},i=o("d959"),l=o.n(i);const s=l()(r,[["render",a]]);t["default"]=s},a9a2:function(e,t,o){"use strict";o("2a73")},a9cd:function(e,t,o){e.exports={"menu-color":"hsla(0,0%,27%,.95)","menu-color-active":"hsla(208,100%,55%,.95)","menu-background":"#fff","gallery-second-menu-background":"#fff"}},a9d0:function(e,t,o){"use strict";o.r(t);var n=o("f2bf");const a={class:"manage-container"};function r(e,t,o,r,i,l){const s=Object(n["resolveComponent"])("el-date-picker"),c=Object(n["resolveComponent"])("el-form-item"),d=Object(n["resolveComponent"])("el-option"),u=Object(n["resolveComponent"])("el-select"),m=Object(n["resolveComponent"])("el-input"),h=Object(n["resolveComponent"])("el-button"),p=Object(n["resolveComponent"])("vab-query-form"),b=Object(n["resolveComponent"])("el-form"),g=Object(n["resolveComponent"])("el-table-column"),f=Object(n["resolveComponent"])("el-table"),v=Object(n["resolveComponent"])("el-pagination"),w=Object(n["resolveComponent"])("vab-query-form-right-panel"),k=Object(n["resolveDirective"])("loading");return Object(n["openBlock"])(),Object(n["createElementBlock"])("div",a,[Object(n["createVNode"])(b,{ref:"form",model:i.queryForm,"label-width":"80px"},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(p,null,{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(c,{label:e.$t("defalult.sj")},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(s,{modelValue:i.queryForm.time,"onUpdate:modelValue":t[0]||(t[0]=e=>i.queryForm.time=e),type:"daterange",align:"right","start-placeholder":"开始时间","end-placeholder":"结束时间",onChange:l.changeTime},null,8,["modelValue","onChange"])]),_:1},8,["label"]),Object(n["createVNode"])(c,{width:"100",label:e.$t("dataEnquiry.xm")},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(u,{modelValue:i.queryForm.projectId,"onUpdate:modelValue":t[1]||(t[1]=e=>i.queryForm.projectId=e),placeholder:"请选择项目",onChange:l.changeProject},{default:Object(n["withCtx"])(()=>[(Object(n["openBlock"])(!0),Object(n["createElementBlock"])(n["Fragment"],null,Object(n["renderList"])(i.projectData,e=>(Object(n["openBlock"])(),Object(n["createBlock"])(d,{key:e.id,label:e.name,value:e.id},null,8,["label","value"]))),128))]),_:1},8,["modelValue","onChange"])]),_:1},8,["label"]),Object(n["createVNode"])(c,{width:"100",label:e.$t("dataEnquiry.jd")},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(u,{modelValue:i.queryForm.townCode,"onUpdate:modelValue":t[2]||(t[2]=e=>i.queryForm.townCode=e),placeholder:e.$t("dataEnquiry.qxzjd"),onChange:l.changeTown},{default:Object(n["withCtx"])(()=>[(Object(n["openBlock"])(!0),Object(n["createElementBlock"])(n["Fragment"],null,Object(n["renderList"])(i.townData,e=>(Object(n["openBlock"])(),Object(n["createBlock"])(d,{key:e.townCode,label:e.townName,value:e.townCode},null,8,["label","value"]))),128))]),_:1},8,["modelValue","placeholder","onChange"])]),_:1},8,["label"]),Object(n["createVNode"])(c,{width:"100",label:e.$t("dataEnquiry.sq")},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(u,{modelValue:i.queryForm.community,"onUpdate:modelValue":t[3]||(t[3]=e=>i.queryForm.community=e),placeholder:"请选择社区"},{default:Object(n["withCtx"])(()=>[(Object(n["openBlock"])(!0),Object(n["createElementBlock"])(n["Fragment"],null,Object(n["renderList"])(i.Communities,e=>(Object(n["openBlock"])(),Object(n["createBlock"])(d,{key:e,label:e,value:e},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1},8,["label"]),Object(n["createVNode"])(c,{width:"100",label:e.$t("dataEnquiry.zdmc")},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(m,{modelValue:i.queryForm.devieName,"onUpdate:modelValue":t[4]||(t[4]=e=>i.queryForm.devieName=e),placeholder:e.$t("dataEnquiry.qsrzdmc")},null,8,["modelValue","placeholder"])]),_:1},8,["label"]),Object(n["createVNode"])(c,{width:"100"},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(h,{type:"primary",size:"medium",onClick:l.search},{default:Object(n["withCtx"])(()=>[Object(n["createTextVNode"])(Object(n["toDisplayString"])(e.$t("defalult.cx")),1)]),_:1},8,["onClick"])]),_:1})]),_:1})]),_:1},8,["model"]),Object(n["withDirectives"])((Object(n["openBlock"])(),Object(n["createBlock"])(f,{data:i.reportData,border:"",stripe:"",style:{width:"100%"}},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(g,{prop:"townName",label:e.$t("dataEnquiry.xzjdmc"),width:"120",align:"center"},null,8,["label"]),Object(n["createVNode"])(g,{prop:"community",label:"社区名称",width:"200",align:"center"}),Object(n["createVNode"])(g,{prop:"deviceName",label:e.$t("dataEnquiry.zdmc"),width:"200",align:"center"},null,8,["label"]),Object(n["createVNode"])(g,{prop:"specifications",label:"对比规格",width:"200",align:"center"}),Object(n["createVNode"])(g,{prop:"waterYield.start",label:"开始水量(m³)",width:"200",align:"center"}),Object(n["createVNode"])(g,{prop:"waterYield.end",label:"结束水量(m³)",width:"200",align:"center"}),Object(n["createVNode"])(g,{prop:"waterYield.use",label:"用水量(m³)",width:"200",align:"center"}),Object(n["createVNode"])(g,{prop:"electricQuantity.start",label:"开始电量(Kw·h)",width:"200",align:"center"}),Object(n["createVNode"])(g,{prop:"electricQuantity.end",label:"结束电量(Kw·h)",width:"200",align:"center"}),Object(n["createVNode"])(g,{prop:"electricQuantity.use",label:"用电量(Kw·h)",width:"200",align:"center"}),Object(n["createVNode"])(g,{prop:"powerConsumption",label:"电单耗(Kw·h/m³)",width:"200",align:"center"}),Object(n["createVNode"])(g,{prop:"dutyRatio",label:"本周运行符合率(%)",width:"200",align:"center"}),Object(n["createVNode"])(g,{prop:"maximumLiquidLevel",label:"本周调节池最高液位(m)",width:"200",align:"center"})]),_:1},8,["data"])),[[k,i.listLoading]]),Object(n["createVNode"])(p,null,{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(w,null,{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(v,{background:i.background,"current-page":i.queryForm.page,layout:i.layout,"page-size":i.queryForm.size,total:i.total,onCurrentChange:l.handleCurrentChange,onSizeChange:l.handleSizeChange},null,8,["background","current-page","layout","page-size","total","onCurrentChange","onSizeChange"])]),_:1})]),_:1})])}var i=o("24d2"),l=o("aa98"),s=o("94b0"),c={name:"Index",components:{},data(){return{data:[],lazy:!0,activeName:"first",layout:"total, sizes, prev, pager, next, jumper",total:0,input:"",textarea:"",list:[],background:!0,listLoading:!0,elementLoadingText:"正在加载...",townData:[],Communities:[],projectData:[],reportData:[],queryForm:{page:1,size:20,projectId:"",start:"",end:"",time:[],townCode:"",community:"",devieName:""}}},computed:{height(){return 500}},created(){this.setDefaultTome(),this.getProjectData(),setTimeout(()=>{this.fetchData()},1e3)},methods:{getPastTime(e){const t=new Date,o=t.getFullYear(),n=t.getMonth()+1,a=t.getDate(),r=n-e,i=r<0?r+12:r>10?r:"0"+r,l=n>9?n:"0"+n,s=a>9?a:"0"+a,c=o+"-"+i+"-"+s,d=o+"-"+l+"-"+s;return[c,d]},getDate(e){const t=new Date(e),o=t.getFullYear();let n=t.getMonth(),a=t.getDate();return n+=1,n=n.toString().padStart(2,"0"),a=a.toString().padStart(2,"0"),`${o}-${n}-${a}`},changeTime(){this.queryForm.start=this.getDate(this.queryForm.time[0]),this.queryForm.end=this.getDate(this.queryForm.time[1])},setDefaultTome(){this.queryForm.time=this.getPastTime(1),this.queryForm.start=this.getDate(this.queryForm.time[0]),this.queryForm.end=this.getDate(this.queryForm.time[1])},async getProjectData(){const e={size:100,page:1},{data:t}=await Object(i["getList"])(e);this.projectData=t.items,this.queryForm.projectId=this.projectData[0].id},changeProject(){this.getTownsByProject()},async getTownsByProject(){const e={projectId:this.queryForm.projectId},{data:t}=await Object(l["getTownsByProject"])(e);this.townData=t},changeTown(){this.getCommunitiesByTown()},async getCommunitiesByTown(){const e={townCode:this.queryForm.townCode},{data:t}=await Object(l["getCommunitiesByTown"])(e);this.Communities=t},async fetchData(){this.listLoading=!0;const{data:e}=await Object(s["weeklyReport"])(this.queryForm);this.reportData=e.items,this.total=e.total,setTimeout(()=>{this.listLoading=!1},500)},search(){this.fetchData()},handleAdd(){this.$refs["edit"].showEdit()},handleEdit(e){this.$refs["edit"].showEdit(e)},handleQuery(){this.queryForm.page=1,this.fetchData()},handleSizeChange(e){this.queryForm.size=e,this.fetchData()},handleCurrentChange(e){this.queryForm.page=e,this.fetchData()},handleDelete(e){e.id&&this.$confirm("你确定要删除当前项吗?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(()=>{this.$message({type:"success",message:"删除成功"})}).catch(()=>{this.$message({type:"info",message:"已取消删除"})})}}},d=(o("044c"),o("c4f1"),o("d959")),u=o.n(d);const m=u()(c,[["render",r],["__scopeId","data-v-0f55c5f2"]]);t["default"]=m},a9ff:function(e,t,o){},aa4c:function(e,t,o){"use strict";o.r(t);var n=o("f2bf");const a={class:"dialog-footer"};function r(e,t,o,r,i,l){const s=Object(n["resolveComponent"])("el-option"),c=Object(n["resolveComponent"])("el-select"),d=Object(n["resolveComponent"])("el-form-item"),u=Object(n["resolveComponent"])("el-input"),m=Object(n["resolveComponent"])("el-cascader"),h=Object(n["resolveComponent"])("el-date-picker"),p=Object(n["resolveComponent"])("el-button"),b=Object(n["resolveComponent"])("el-form"),g=Object(n["resolveComponent"])("frame-map"),f=Object(n["resolveComponent"])("el-dialog");return Object(n["openBlock"])(),Object(n["createBlock"])(f,{modelValue:i.dialogFormVisible,"onUpdate:modelValue":t[9]||(t[9]=e=>i.dialogFormVisible=e),title:i.title,width:"500px",onClose:l.close},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(b,{ref:"form",model:i.form,rules:i.rules,"label-width":"80px","label-position":"left"},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(d,{label:"项目组",prop:"groupId"},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(c,{modelValue:i.form.groupId,"onUpdate:modelValue":t[0]||(t[0]=e=>i.form.groupId=e),size:"small",filterable:"",placeholder:"选择项目组"},{default:Object(n["withCtx"])(()=>[(Object(n["openBlock"])(!0),Object(n["createElementBlock"])(n["Fragment"],null,Object(n["renderList"])(i.groupData,e=>(Object(n["openBlock"])(),Object(n["createBlock"])(s,{key:e.id,label:e.name,value:e.id},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),Object(n["createVNode"])(d,{label:"报警方式",prop:"alarmType"},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(c,{modelValue:i.form.alarmType,"onUpdate:modelValue":t[1]||(t[1]=e=>i.form.alarmType=e),size:"small",filterable:"",multiple:"",placeholder:"选择报警方式"},{default:Object(n["withCtx"])(()=>[(Object(n["openBlock"])(!0),Object(n["createElementBlock"])(n["Fragment"],null,Object(n["renderList"])(i.alarmType,e=>(Object(n["openBlock"])(),Object(n["createBlock"])(s,{key:e.dataCode,label:e.dataValue,value:e.dataCode},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),Object(n["createVNode"])(d,{label:e.$t("project.xmmc"),prop:"name"},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(u,{modelValue:i.form.name,"onUpdate:modelValue":t[2]||(t[2]=e=>i.form.name=e),modelModifiers:{trim:!0},size:"small",autocomplete:"off"},null,8,["modelValue"])]),_:1},8,["label"]),Object(n["createVNode"])(d,{label:"省",prop:"areaData"},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(m,{ref:"cascaderItem",modelValue:i.areaData,"onUpdate:modelValue":t[3]||(t[3]=e=>i.areaData=e),size:"small",placeholder:"请选择",options:i.cityData,props:i.optionProps,"popper-class":"cascader"},null,8,["modelValue","options","props"])]),_:1}),Object(n["createVNode"])(d,{label:e.$t("project.rzr"),prop:"leader"},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(u,{modelValue:i.form.leader,"onUpdate:modelValue":t[4]||(t[4]=e=>i.form.leader=e),modelModifiers:{trim:!0},size:"small",autocomplete:"off"},null,8,["modelValue"])]),_:1},8,["label"]),Object(n["createVNode"])(d,{label:e.$t("project.lxfs"),prop:"contact"},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(u,{modelValue:i.form.contact,"onUpdate:modelValue":t[5]||(t[5]=e=>i.form.contact=e),modelModifiers:{trim:!0},size:"small",autocomplete:"off"},null,8,["modelValue"])]),_:1},8,["label"]),Object(n["createVNode"])(d,{label:e.$t("project.lxsj"),prop:"approvalTime"},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(h,{modelValue:i.form.approvalTime,"onUpdate:modelValue":t[6]||(t[6]=e=>i.form.approvalTime=e),size:"small",type:"date",placeholder:"选择立项时间",format:"YYYY-MM-DD HH:MM:ss","value-format":"YYYY-MM-DD HH:MM:ss"},null,8,["modelValue"])]),_:1},8,["label"]),Object(n["createVNode"])(d,{label:e.$t("project.jd"),prop:"longitude"},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(u,{modelValue:i.form.longitude,"onUpdate:modelValue":t[7]||(t[7]=e=>i.form.longitude=e),modelModifiers:{trim:!0},size:"small",autocomplete:"off"},null,8,["modelValue"])]),_:1},8,["label"]),Object(n["createVNode"])(d,{label:e.$t("project.wd"),prop:"latitude"},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(u,{modelValue:i.form.latitude,"onUpdate:modelValue":t[8]||(t[8]=e=>i.form.latitude=e),modelModifiers:{trim:!0},size:"small",autocomplete:"off"},null,8,["modelValue"])]),_:1},8,["label"]),Object(n["createVNode"])(p,{type:"success",size:"small",plain:"",onClick:l.checkLocation},{default:Object(n["withCtx"])(()=>t[10]||(t[10]=[Object(n["createTextVNode"])(" 选择位置 ")])),_:1},8,["onClick"])]),_:1},8,["model","rules"]),Object(n["createElementVNode"])("div",a,[Object(n["createVNode"])(p,{type:"primary",size:"small",onClick:l.save},{default:Object(n["withCtx"])(()=>t[11]||(t[11]=[Object(n["createTextVNode"])("确 定")])),_:1},8,["onClick"]),Object(n["createVNode"])(p,{size:"small",onClick:l.close},{default:Object(n["withCtx"])(()=>t[12]||(t[12]=[Object(n["createTextVNode"])("取 消")])),_:1},8,["onClick"])]),Object(n["createVNode"])(g,{ref:"map",onSetLatAndLng:l.setLatAndLng},null,8,["onSetLatAndLng"])]),_:1},8,["modelValue","title","onClose"])}o("14d9");var i=o("24d2"),l=o("c591"),s=o("2ef0"),c=o("8065"),d={name:"ProjectEdit",components:{frameMap:c["default"]},data(){return{form:{id:"",name:"",provinceCode:"",provinceName:"",cityCode:"",cityName:"",areaCode:"",areaName:"",groupId:"",leader:"",contact:"",approvalTime:"",latitude:"",longitude:"",alarmType:""},keyWords:"",optionProps:{value:"areaCode",label:"areaName",children:"children"},areaData:[],cityData:[],groupData:[],rules:{groupId:[{required:!0,trigger:"change",message:"请选择项目组"}],name:[{required:!0,trigger:"blur",message:"请输入项目名称"}],type:[{required:!0,trigger:"blur",message:"请选择项目类型"}],leader:[{required:!0,trigger:"blur",message:"请输入负责人"}],contact:[{required:!0,trigger:"blur",message:"请输入联系方式"}],approvalTime:[{required:!0,trigger:"blur",message:"请选择立项时间"}],longitude:[{required:!0,trigger:"blur",message:"请输入经度"}],latitude:[{required:!0,trigger:"blur",message:"请输入纬度"}]},clearable:!0,menuId:"",parentData:[],title:"",dialogFormVisible:!1,diffData:{},ruleForm:[],location:[],alarmType:[]}},created(){},methods:{checkLocation(){this.$refs["map"].showMap(this.location)},async getCityData(){const{data:e}=await Object(l["getCity"])();this.cityData=this.getTreeData(e)},setLatAndLng(e){this.form.longitude=e.lng,this.form.latitude=e.lat},getTreeData(e){for(let t=0;t<e.length;t++)e[t].children.length<1?e[t].children=void 0:this.getTreeData(e[t].children);return e},handleCountryChange(e){if(e){const t=e.length-1;this.form.parentId=e[t]}else this.form.parentId=0},async getAlarmType(){const{data:e}=await Object(i["selectAlarmTypeList"])();this.alarmType=e},showEdit(e,t){if(this.getCityData(),this.getGroup(),this.getAlarmType(),this.location=[],1==t)this.title="添加",e.groupId&&(this.form.groupId=Object(s["toNumber"])(e.groupId));else{if(this.title="编辑",this.menuId=e.id,this.form=Object.assign({},e),this.ruleForm=Object.assign({},e),void 0!==e.projectGroup&&(this.form.groupId=e.projectGroup.id,this.ruleForm.groupId=e.projectGroup.id),e.alarmType.length>0){const t=[];e.alarmType.forEach((function(e,o){t.push(e.dataCode)})),this.form.alarmType=t,this.ruleForm.alarmType=t}this.areaData=[e.provinceCode,e.cityCode,e.areaCode],this.location=[this.form.latitude,this.form.longitude]}console.log(this.form),this.dialogFormVisible=!0},async getGroup(){const{data:e}=await Object(i["getProjectGroup"])();this.groupData=e},close(){this.$refs["form"].resetFields(),this.form=this.$options.data().form,this.dialogFormVisible=!1,this.$emit("fetch-data")},getDiffData(){this.diffData={},Object.keys(this.form).forEach(e=>{this.form[e]!=this.ruleForm[e]&&(this.diffData[e]=this.form[e])})},save(){this.$refs["form"].validate(async e=>{if(!e)return!1;{const e=this.areaData,t=this.$refs["cascaderItem"].inputValue,o=t.split(" / ");if(this.form.provinceCode=void 0==e[0]?"":e[0],this.form.cityCode=void 0==e[1]?"":e[1],this.form.areaCode=void 0==e[2]?"":e[2],this.form.provinceName=void 0==o[0]?"":o[0],this.form.cityName=void 0==o[1]?"":o[1],this.form.areaName=void 0==o[2]?"":o[2],this.form.alarmType=this.form.alarmType.join(","),this.form.id){if(this.getDiffData(),0!=Object.keys(this.diffData).length){this.diffData.id=this.form.id;const{msg:e}=await Object(i["doEdit"])(this.diffData);this.$notify({title:e,type:"success"})}}else{const{msg:e}=await Object(i["doAdd"])(this.form);this.$notify({title:e,type:"success"})}this.$refs["form"].resetFields(),this.dialogFormVisible=!1,this.$parent.fetchData()}})}}},u=(o("4130"),o("d959")),m=o.n(u);const h=m()(d,[["render",r]]);t["default"]=h},aa77:function(e,t,o){"use strict";o.r(t);var n=o("f2bf");const a={class:"manage-button"};function r(e,t,o,r,i,l){const s=Object(n["resolveComponent"])("el-button"),c=Object(n["resolveComponent"])("el-table-column"),d=Object(n["resolveComponent"])("el-switch"),u=Object(n["resolveComponent"])("el-table"),m=Object(n["resolveComponent"])("el-pagination"),h=Object(n["resolveComponent"])("menu-edit"),p=Object(n["resolveDirective"])("loading");return Object(n["openBlock"])(),Object(n["createElementBlock"])(n["Fragment"],null,[Object(n["createElementVNode"])("div",a,[Object(n["createVNode"])(s,{icon:"el-icon-plus",type:"primary",size:"small",onClick:t[0]||(t[0]=e=>l.handleAdd())},{default:Object(n["withCtx"])(()=>t[1]||(t[1]=[Object(n["createTextVNode"])(" 添加 ")])),_:1})]),Object(n["withDirectives"])((Object(n["openBlock"])(),Object(n["createBlock"])(u,{ref:"tableSort",data:i.list,"element-loading-text":i.elementLoadingText,height:l.height,"row-key":"id",lazy:i.lazy,"tree-props":{children:"children",hasChildren:"hasChildren"},onSelectionChange:l.setSelectRows},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(c,{prop:"id",label:"ID",width:"80",align:"center"}),Object(n["createVNode"])(c,{prop:"name",label:"菜单名称",width:"200",align:"center"}),Object(n["createVNode"])(c,{prop:"status",label:e.$t("dataEnquiry.zt"),align:"center"},{default:Object(n["withCtx"])(e=>[Object(n["createVNode"])(d,{modelValue:e.row.status,"onUpdate:modelValue":t=>e.row.status=t,"active-value":"0","inactive-value":"1",onClick:t=>l.menuStatus(e.row.status,e.row.id)},null,8,["modelValue","onUpdate:modelValue","onClick"])]),_:1},8,["label"]),Object(n["createVNode"])(c,{prop:"path",label:"路径",width:"200",align:"center"}),Object(n["createVNode"])(c,{prop:"component",label:"路由",width:"200",align:"center"}),Object(n["createVNode"])(c,{prop:"sort",label:"排序",width:"200",align:"center"}),Object(n["createVNode"])(c,{label:e.$t("defalult.cz"),align:"center"},{default:Object(n["withCtx"])(({row:t})=>[Object(n["createVNode"])(s,{type:"text",onClick:e=>l.handleEdit(t)},{default:Object(n["withCtx"])(()=>[Object(n["createTextVNode"])(Object(n["toDisplayString"])(e.$t("defalult.bj")),1)]),_:2},1032,["onClick"]),Object(n["createVNode"])(s,{type:"text",onClick:e=>l.handleDelete(t)},{default:Object(n["withCtx"])(()=>[Object(n["createTextVNode"])(Object(n["toDisplayString"])(e.$t("defalult.sc")),1)]),_:2},1032,["onClick"])]),_:1},8,["label"])]),_:1},8,["data","element-loading-text","height","lazy","onSelectionChange"])),[[p,i.listLoading]]),Object(n["createVNode"])(m,{background:i.background,"current-page":i.queryForm.pageNo,layout:i.layout,"page-size":i.queryForm.pageSize,total:i.total,style:{"text-align":"right"},onCurrentChange:l.handleCurrentChange,onSizeChange:l.handleSizeChange},null,8,["background","current-page","layout","page-size","total","onCurrentChange","onSizeChange"]),Object(n["createVNode"])(h,{ref:"edit"},null,512)],64)}var i=o("1f27"),l=o("5431"),s={name:"AppletsIndex",components:{menuEdit:l["default"]},data(){return{roleData:[],lazy:!0,activeName:"first",layout:"total, sizes, prev, pager, next, jumper",total:0,input:"",textarea:"",list:[],background:!0,listLoading:!0,elementLoadingText:"正在加载...",queryForm:{page:1,size:20,name:""}}},computed:{height(){return 500}},created(){},methods:{appletsIndex(){this.fetchData()},async menuStatus(e,t){const{code:o,msg:n}=await Object(i["miniMenuUpdate"])({status:e,id:t});0==o?this.$notify({title:n,type:"success"}):this.$notify.error({title:n}),this.fetchData()},setSelectRows(e){this.selectRows=e},async fetchData(){this.listLoading=!0;const{data:e}=await Object(i["miniMenuSelect"])(this.queryForm);console.log(1231,e),this.list=e,setTimeout(()=>{this.listLoading=!1},500)},handleAdd(){this.$refs["edit"].showEdit()},handleEdit(e){this.$refs["edit"].showEdit(e)},handleQuery(){this.queryForm.pageNo=1,this.fetchData()},handleSizeChange(e){this.queryForm.pageSize=e,this.fetchData()},handleCurrentChange(e){this.queryForm.pageNo=e,this.fetchData()},handleDelete(e){const t=this;e.id&&this.$confirm("你确定要删除当前项吗?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(()=>{const{msg:o}=Object(i["miniMenuRemove"])({menuId:e.id});this.$message({type:"success",message:void 0==o?"删除成功":o}),setTimeout((function(){t.fetchData()}),1e3)}).catch(()=>{this.$message({type:"info",message:"已取消删除"})})}}},c=(o("ea4a"),o("d959")),d=o.n(c);const u=d()(s,[["render",r],["__scopeId","data-v-500ce36e"]]);t["default"]=u},aa98:function(e,t,o){"use strict";o.r(t),o.d(t,"getList",(function(){return r})),o.d(t,"getDeviceData",(function(){return i})),o.d(t,"doEdit",(function(){return l})),o.d(t,"doDelete",(function(){return s})),o.d(t,"doAdd",(function(){return c})),o.d(t,"selectDeviceInfo",(function(){return d})),o.d(t,"getDictData",(function(){return u})),o.d(t,"selectAllProject",(function(){return m})),o.d(t,"selectAllGroup",(function(){return h})),o.d(t,"selectAllAlarmUser",(function(){return p})),o.d(t,"copy",(function(){return b})),o.d(t,"getLatestDataByDevice",(function(){return g})),o.d(t,"getLatestData",(function(){return f})),o.d(t,"getLatestDataByDevices",(function(){return v})),o.d(t,"getHistoryData",(function(){return w})),o.d(t,"getReportHistoryData",(function(){return k})),o.d(t,"getTownsByProject",(function(){return C})),o.d(t,"getCommunitiesByTown",(function(){return y})),o.d(t,"exportDevice",(function(){return O})),o.d(t,"exportIotDevice",(function(){return j})),o.d(t,"exportData",(function(){return x})),o.d(t,"exportIotData",(function(){return _})),o.d(t,"sensors",(function(){return V})),o.d(t,"boxList",(function(){return A})),o.d(t,"fboxSync",(function(){return N})),o.d(t,"sensorInfo",(function(){return D}));var n=o("b775"),a=o("f121");function r(e){let t="?page="+e.page+"&size="+e.size;return""!=e.projectId&&void 0!=e.projectId&&(t+="&projectId="+e.projectId),""!=e.code&&void 0!=e.code&&(t+="&code="+e.code),""!=e.name&&void 0!=e.name&&(t+="&name="+e.name),""!=e.community&&void 0!=e.community&&(t+="&community="+e.community),""!=e.townCode&&void 0!=e.townCode&&(t+="&townCode="+e.townCode),""!=e.commPro&&void 0!=e.commPro&&(t+="&commPro="+e.commPro),3!=e.status&&(t+="&status="+e.status),Object(n["default"])({url:"/deviceReport/list"+t,method:"get",data:e})}function i(e){let t="?page="+e.page+"&size="+e.size;return""!=e.projectId&&void 0!=e.projectId&&(t+="&projectId="+e.projectId),""!=e.serial&&void 0!=e.serial&&(t+="&serial="+e.serial),""!=e.name&&void 0!=e.name&&(t+="&name="+e.name),""!=e.community&&void 0!=e.community&&(t+="&community="+e.community),""!=e.townCode&&void 0!=e.townCode&&(t+="&townCode="+e.townCode),"Entire agreement"!=e.commPro&&void 0!=e.commPro&&"all"!=e.commPro&&(t+="&commPro="+e.commPro),3!=e.status&&void 0!=e.status&&(t+="&status="+e.status),Object(n["default"])({url:"/iot/device/select"+t,method:"get",data:e})}function l(e){return Object(n["default"])({url:"/iot/device/update",method:"post",data:e})}function s(e){return Object(n["default"])({url:"/iot/device/remove",method:"post",data:e})}function c(e){return Object(n["default"])({url:"/iot/device/insert",method:"post",data:e})}function d(e){return Object(n["default"])({url:"/iot/device/selectDeviceInfo?deviceId="+e.deviceId,method:"get",data:e})}function u(e){return Object(n["default"])({url:"/iot/device/dict",method:"get",data:e})}function m(e){return Object(n["default"])({url:"/iot/device/selectAllProject",method:"get",data:e})}function h(e){return Object(n["default"])({url:"/iot/device/selectAllGroup?projectId="+e.projectId,method:"get",data:e})}function p(e){return Object(n["default"])({url:"/iot/device/selectAllAlarmUser",method:"get",data:e})}function b(e){return Object(n["default"])({url:"/iot/device/copy?deviceId="+e.deviceId+"&name="+e.name+"&code="+e.code+"&serial="+e.serial,method:"post",data:e})}function g(e){let t="?deviceCode="+e.deviceCode+"&page="+e.page+"&size="+e.size;return""!=e.sensorName&&(t+="&sensorName="+e.sensorName),Object(n["default"])({url:"/deviceReport/latestData"+t,method:"get",data:e})}function f(e){const t="?deviceCode="+e.deviceCode+"&page="+e.page+"&size="+e.size;return Object(n["default"])({url:"/deviceData/latestData"+t,method:"get",data:e})}function v(e){const t="?deviceCode="+e.deviceCode+"&dataKey="+e.dataKey;return Object(n["default"])({url:"/deviceData/getLatestDataByDevice"+t,method:"get",data:e})}function w(e){return Object(n["default"])({url:"/deviceData/getHistoryData?dataKey="+e.dataKey+"&start="+e.start+"&deviceCode="+e.deviceCode+"&end="+e.end,method:"get",data:e})}function k(e){return Object(n["default"])({url:"/deviceData/getHistoryChartData?dataKey="+e.dataKey+"&start="+e.start+"&deviceCode="+e.deviceCode+"&end="+e.end,method:"get",data:e})}function C(e){return Object(n["default"])({url:"/iot/device/getTownsByProject?projectId="+e.projectId,method:"get",data:e})}function y(e){return Object(n["default"])({url:"/iot/device/getCommunitiesByTown?townCode="+e.townCode,method:"get",data:e})}function O(e){var t="?projectId="+e.projectId;return a["baseURL"]+"/deviceReport/exportDevice"+t}function j(e){var t="?projectId="+e.projectId;return a["baseURL"]+"/iot/device/exportDevice"+t}function x(e){var t="?deviceCode="+e.deviceCode;return a["baseURL"]+"/deviceReport/exportData"+t}function _(e){var t="?deviceCode="+e.deviceCode;return a["baseURL"]+"/iot/device/exportData"+t}function V(e){return Object(n["default"])({url:"/deviceData/sensors?deviceCode="+e.deviceCode,method:"get",data:e})}function A(e){return Object(n["default"])({url:"/fbox/boxList",method:"get",data:e})}function N(e,t){return Object(n["default"])({url:"/fbox/sync?projectId="+t,method:"post",data:e})}function D(e){var t="?deviceCode="+e.deviceCode+"&dataKey="+e.dataKey;return Object(n["default"])({url:"/deviceData/sensorInfo"+t,method:"get",data:e})}},aada:function(e,t,o){"use strict";o("9651")},ab15:function(e,t,o){"use strict";o.r(t);var n=o("f2bf");const a=["src"],r={class:"dialog-footer"};function i(e,t,o,i,l,s){const c=Object(n["resolveComponent"])("el-input"),d=Object(n["resolveComponent"])("el-form-item"),u=Object(n["resolveComponent"])("el-option"),m=Object(n["resolveComponent"])("el-select"),h=Object(n["resolveComponent"])("el-upload"),p=Object(n["resolveComponent"])("el-dialog"),b=Object(n["resolveComponent"])("el-form"),g=Object(n["resolveComponent"])("el-button");return Object(n["openBlock"])(),Object(n["createBlock"])(p,{modelValue:l.dialogFormVisible,"onUpdate:modelValue":t[3]||(t[3]=e=>l.dialogFormVisible=e),title:l.title,width:"500px"},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(b,{ref:"form",model:l.form,rules:l.rules,"label-width":"80px","label-position":"left"},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(d,{label:e.$t("task.fknr"),prop:"feedbackText"},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(c,{modelValue:l.form.feedbackText,"onUpdate:modelValue":t[0]||(t[0]=e=>l.form.feedbackText=e),type:"textarea"},null,8,["modelValue"])]),_:1},8,["label"]),Object(n["createVNode"])(d,{label:"反馈状态",prop:"status"},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(m,{modelValue:l.form.status,"onUpdate:modelValue":t[1]||(t[1]=e=>l.form.status=e),filterable:"",placeholder:"状态"},{default:Object(n["withCtx"])(()=>[(Object(n["openBlock"])(!0),Object(n["createElementBlock"])(n["Fragment"],null,Object(n["renderList"])(l.statusData,e=>(Object(n["openBlock"])(),Object(n["createBlock"])(u,{key:e.value,label:e.label,value:e.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),Object(n["createVNode"])(d,{label:e.$t("task.fltp"),prop:"feedbackImg"},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(h,{action:l.updateAction,"list-type":"picture-card","on-preview":s.handlePictureCardPreview,"on-remove":s.handleRemove,"on-success":s.fileSuccess,headers:l.headerData,name:"files"},{default:Object(n["withCtx"])(()=>t[4]||(t[4]=[Object(n["createElementVNode"])("i",{class:"el-icon-plus"},null,-1)])),_:1},8,["action","on-preview","on-remove","on-success","headers"]),Object(n["createVNode"])(p,{modelValue:l.dialogVisible,"onUpdate:modelValue":t[2]||(t[2]=e=>l.dialogVisible=e)},{default:Object(n["withCtx"])(()=>[Object(n["createElementVNode"])("img",{width:"100%",src:l.dialogImageUrl,alt:""},null,8,a)]),_:1},8,["modelValue"])]),_:1},8,["label"])]),_:1},8,["model","rules"]),Object(n["createElementVNode"])("div",r,[Object(n["createVNode"])(g,{type:"primary",onClick:s.save},{default:Object(n["withCtx"])(()=>t[5]||(t[5]=[Object(n["createTextVNode"])("确 定")])),_:1},8,["onClick"]),Object(n["createVNode"])(g,{onClick:s.close},{default:Object(n["withCtx"])(()=>t[6]||(t[6]=[Object(n["createTextVNode"])("取 消")])),_:1},8,["onClick"])])]),_:1},8,["modelValue","title"])}var l=o("b199"),s=o("4360"),c=o("f121"),d={data(){return{form:{id:"",feedbackText:"",feedbackImg:"",status:""},rules:{feedbackText:[{required:!0,trigger:"blur",message:"请输入反馈内容"}],status:[{required:!0,trigger:"change",message:"请选择反馈状态"}],feedbackImg:[{required:!0,trigger:"blur",message:"请上传反馈图片"}]},title:"",dialogVisible:!1,dialogFormVisible:!1,deviceData:[],handlersData:[],dialogImageUrl:"",updateAction:"",headerData:"",statusData:[{label:"未处理",value:0},{label:"已处理",value:1}]}},created(){},methods:{handleRemove(e,t){console.log(e,t)},handlePictureCardPreview(e){console.log(e),this.dialogImageUrl=e.url,this.dialogVisible=!0},feedbackIndex(e){this.title="任务反馈",this.form.id=e.id,this.dialogFormVisible=!0,this.setUpdateData()},setUpdateData(){this.updateAction=c["baseURL"]+"/file/uploadImg",this.headerData={token:s["default"].getters["user/token"]}},fileSuccess(e,t,o){var n=this.form.feedbackImg;this.form.feedbackImg=""==n?e.data:this.form.feedbackImg+","+e.data,console.log(this.form)},close(){this.$refs["form"].resetFields(),this.form=this.$options.data().form,this.dialogFormVisible=!1,this.$emit("fetch-data")},save(){this.$refs["form"].validate(async e=>{if(!e)return!1;if(this.form.id){const{msg:e}=await Object(l["feedback"])(this.form);this.$notify({title:e,type:"success"})}this.$refs["form"].resetFields(),this.dialogFormVisible=!1,this.$parent.fetchData()})}}},u=o("d959"),m=o.n(u);const h=m()(d,[["render",i]]);t["default"]=h},ac68:function(e,t,o){"use strict";o("f7e4")},ac77:function(e,t,o){e.exports={"menu-color":"hsla(0,0%,27%,.95)","menu-color-active":"hsla(208,100%,55%,.95)","menu-background":"#fff","gallery-second-menu-background":"#fff"}},acad:function(e,t,o){},acc2:function(e,t,o){"use strict";o("2b25")},acca:function(e,t,o){"use strict";o.r(t),o.d(t,"getList",(function(){return a})),o.d(t,"doEdit",(function(){return r})),o.d(t,"doDelete",(function(){return i})),o.d(t,"doAdd",(function(){return l})),o.d(t,"getDevices",(function(){return s})),o.d(t,"getLiveAddr",(function(){return c})),o.d(t,"ldDeviceByProjectId",(function(){return d})),o.d(t,"ysBindDevice",(function(){return u})),o.d(t,"capture",(function(){return m}));var n=o("b775");function a(e){return Object(n["default"])({url:"/ys/author/select?page="+e.page+"&size="+e.size,method:"get",data:e})}function r(e){return Object(n["default"])({url:"/ys/author/update",method:"post",data:e})}function i(e){return Object(n["default"])({url:"/ys/author/delete?id="+e.id,method:"post",data:e})}function l(e){return Object(n["default"])({url:"/ys/author/insert",method:"post",data:e})}function s(e){let t="?page="+e.page+"&size="+e.size;return""!=e.account&&void 0!=e.account&&(t+="&account="+e.account),""!=e.sonserName&&void 0!=e.sonserName&&(t+="&sonserName="+e.sonserName),""!=e.deviceSerial&&void 0!=e.deviceSerial&&(t+="&deviceSerial="+e.deviceSerial),3!=e.status&&void 0!=e.status&&(t+="&status="+e.status),Object(n["default"])({url:"/ys/api/getDevices"+t,method:"get",data:e})}function c(e){return Object(n["default"])({url:"/ys/api/getLiveAddr?account="+e.account+"&deviceSerial="+e.deviceSerial,method:"get",data:e})}function d(e){return Object(n["default"])({url:"/ys/api/ldDeviceByProjectId?projectId="+e.projectId,method:"get",data:e})}function u(e){return Object(n["default"])({url:"/ys/api/ysBindDevice?ysSerial="+e.ysSerial+"&code="+e.code+"&account="+e.account,method:"post",data:e})}function m(e){return Object(n["default"])({url:"/ys/author/capture?account="+e.account+"&captureFlag="+e.captureFlag,method:"post",data:e})}},ad01:function(e,t,o){"use strict";o("1b26")},ada3:function(e,t,o){"use strict";o.r(t);var n=o("f2bf");const a={class:"dialog-footer"};function r(e,t,o,r,i,l){const s=Object(n["resolveComponent"])("el-option"),c=Object(n["resolveComponent"])("el-select"),d=Object(n["resolveComponent"])("el-form-item"),u=Object(n["resolveComponent"])("el-date-picker"),m=Object(n["resolveComponent"])("el-input"),h=Object(n["resolveComponent"])("el-form"),p=Object(n["resolveComponent"])("el-button"),b=Object(n["resolveComponent"])("el-dialog");return Object(n["openBlock"])(),Object(n["createBlock"])(b,{modelValue:i.dialogFormVisible,"onUpdate:modelValue":t[10]||(t[10]=e=>i.dialogFormVisible=e),title:i.title,width:"500px",onClose:l.close},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(h,{ref:"form",model:i.form,rules:i.rules,"label-width":"80px","label-position":"left"},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(d,{label:"选择站点",prop:"deviceCode"},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(c,{modelValue:i.form.deviceCode,"onUpdate:modelValue":t[0]||(t[0]=e=>i.form.deviceCode=e),filterable:"",placeholder:"选择站点"},{default:Object(n["withCtx"])(()=>[(Object(n["openBlock"])(!0),Object(n["createElementBlock"])(n["Fragment"],null,Object(n["renderList"])(i.deviceData,e=>(Object(n["openBlock"])(),Object(n["createBlock"])(s,{key:e.code,label:e.name,value:e.code},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),Object(n["createVNode"])(d,{label:e.$t("apply.jzsj"),prop:"asOfTime"},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(u,{modelValue:i.form.asOfTime,"onUpdate:modelValue":t[1]||(t[1]=e=>i.form.asOfTime=e),type:"date",placeholder:e.$t("defalult.xzrq"),onChange:l.standardToTime},null,8,["modelValue","placeholder","onChange"])]),_:1},8,["label"]),Object(n["createVNode"])(d,{label:e.$t("apply.ypsl"),prop:"sampleQuantity"},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(m,{modelValue:i.form.sampleQuantity,"onUpdate:modelValue":t[2]||(t[2]=e=>i.form.sampleQuantity=e)},null,8,["modelValue"])]),_:1},8,["label"]),Object(n["createVNode"])(d,{label:e.$t("apply.ypqh"),prop:"sampleBack"},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(c,{modelValue:i.form.sampleBack,"onUpdate:modelValue":t[3]||(t[3]=e=>i.form.sampleBack=e),filterable:"",placeholder:"样品取回"},{default:Object(n["withCtx"])(()=>[(Object(n["openBlock"])(!0),Object(n["createElementBlock"])(n["Fragment"],null,Object(n["renderList"])(i.sampleBackData,e=>(Object(n["openBlock"])(),Object(n["createBlock"])(s,{key:e.dataCode,label:e.dataValue,value:e.dataCode},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1},8,["label"]),Object(n["createVNode"])(d,{label:e.$t("apply.yplx"),prop:"sampleType"},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(c,{modelValue:i.form.sampleType,"onUpdate:modelValue":t[4]||(t[4]=e=>i.form.sampleType=e),filterable:"",placeholder:"样品类型"},{default:Object(n["withCtx"])(()=>[(Object(n["openBlock"])(!0),Object(n["createElementBlock"])(n["Fragment"],null,Object(n["renderList"])(i.sampleTypeData,e=>(Object(n["openBlock"])(),Object(n["createBlock"])(s,{key:e.dataCode,label:e.dataValue,value:e.dataCode},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1},8,["label"]),Object(n["createVNode"])(d,{label:e.$t("apply.jcxm"),prop:"detectionItems"},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(c,{modelValue:i.form.detectionItems,"onUpdate:modelValue":t[5]||(t[5]=e=>i.form.detectionItems=e),filterable:"",multiple:"",placeholder:"检测项目"},{default:Object(n["withCtx"])(()=>[(Object(n["openBlock"])(!0),Object(n["createElementBlock"])(n["Fragment"],null,Object(n["renderList"])(i.detectionItemsData,e=>(Object(n["openBlock"])(),Object(n["createBlock"])(s,{key:e.dataCode,label:e.dataValue,value:e.dataCode},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1},8,["label"]),Object(n["createVNode"])(d,{label:e.$t("apply.jcbg"),prop:"detectionReport"},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(c,{modelValue:i.form.detectionReport,"onUpdate:modelValue":t[6]||(t[6]=e=>i.form.detectionReport=e),filterable:"",placeholder:"检测报告"},{default:Object(n["withCtx"])(()=>[(Object(n["openBlock"])(!0),Object(n["createElementBlock"])(n["Fragment"],null,Object(n["renderList"])(i.detectionReportData,e=>(Object(n["openBlock"])(),Object(n["createBlock"])(s,{key:e.dataCode,label:e.dataValue,value:e.dataCode},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1},8,["label"]),Object(n["createVNode"])(d,{label:e.$t("apply.bgcj"),prop:"reportIssued"},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(c,{modelValue:i.form.reportIssued,"onUpdate:modelValue":t[7]||(t[7]=e=>i.form.reportIssued=e),filterable:"",placeholder:"报告出具"},{default:Object(n["withCtx"])(()=>[(Object(n["openBlock"])(!0),Object(n["createElementBlock"])(n["Fragment"],null,Object(n["renderList"])(i.reportIssuedData,e=>(Object(n["openBlock"])(),Object(n["createBlock"])(s,{key:e.dataCode,label:e.dataValue,value:e.dataCode},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1},8,["label"]),Object(n["createVNode"])(d,{label:e.$t("apply.bgyt"),prop:"reportUse"},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(c,{modelValue:i.form.reportUse,"onUpdate:modelValue":t[8]||(t[8]=e=>i.form.reportUse=e),filterable:"",placeholder:"报告用途"},{default:Object(n["withCtx"])(()=>[(Object(n["openBlock"])(!0),Object(n["createElementBlock"])(n["Fragment"],null,Object(n["renderList"])(i.reportUseData,e=>(Object(n["openBlock"])(),Object(n["createBlock"])(s,{key:e.dataCode,label:e.dataValue,value:e.dataCode},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1},8,["label"]),Object(n["createVNode"])(d,{label:e.$t("alarm.bz"),prop:"remark"},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(m,{modelValue:i.form.remark,"onUpdate:modelValue":t[9]||(t[9]=e=>i.form.remark=e),type:"textarea"},null,8,["modelValue"])]),_:1},8,["label"])]),_:1},8,["model","rules"]),Object(n["createElementVNode"])("div",a,[Object(n["createVNode"])(p,{onClick:l.close},{default:Object(n["withCtx"])(()=>t[11]||(t[11]=[Object(n["createTextVNode"])("取 消")])),_:1},8,["onClick"]),Object(n["createVNode"])(p,{type:"primary",onClick:l.save},{default:Object(n["withCtx"])(()=>t[12]||(t[12]=[Object(n["createTextVNode"])("确 定")])),_:1},8,["onClick"])])]),_:1},8,["modelValue","title","onClose"])}o("14d9");var i=o("c9ee"),l=o("b199"),s=o("5f99"),c={data(){return{form:{id:"",deviceCode:"",sampleQuantity:"",sampleBack:"",sampleType:"",detectionItems:"",detectionReport:"",reportIssued:"",reportUse:"",asOfTime:"",remark:""},rules:{deviceCode:[{required:!0,trigger:"change",message:"请选择站点"}],asOfTime:[{required:!0,trigger:"change",message:"请选择截至时间"}],sampleQuantity:[{required:!0,trigger:"blur",message:"请输入样品数量"}],detectionItems:[{required:!0,trigger:"change",message:"请选择检测项目"}],detectionReport:[{required:!0,trigger:"change",message:"请选择检测报告"}],reportIssued:[{required:!0,trigger:"change",message:"请选择报告出具"}],reportUse:[{required:!0,trigger:"change",message:"请选择报告用途"}]},title:"",dialogFormVisible:!1,sampleBackData:[],sampleTypeData:[],detectionItemsData:[],detectionReportData:[],reportIssuedData:[],reportUseData:[],projectId:"",deviceData:[]}},created(){this.projectId=sessionStorage.getItem("projectId")},methods:{async getDictData(){const{data:e}=await Object(i["getDictData"])();this.sampleBackData=e.sampleBack,this.sampleTypeData=e.sampleType,this.detectionItemsData=e.detectionItems,this.detectionReportData=e.detectionReport,this.reportIssuedData=e.reportIssued,this.reportUseData=e.reportUse},async getDevices(){const{data:e}=await Object(l["getDevices"])({projectId:this.projectId});this.deviceData=e},standardToTime(){this.form.asOfTime=Object(s["getDate"])(this.form.asOfTime)},showEdit(e){if(this.getDictData(),this.getDevices(),e){this.title="编辑",this.menuId=e.id,this.ruleForm=Object.assign({},e);var t=Object.assign({},e);this.form.id=t.id,this.form.sampleQuantity=t.sampleQuantity,null!=t.device&&(this.form.deviceCode=t.device.code),null!=t.sampleBack&&(this.form.sampleBack=t.sampleBack.dataCode),null!=t.sampleType&&(this.form.sampleType=t.sampleType.dataCode),null!=t.detectionItems&&(this.form.detectionItems=t.detectionItems.dataCode),null!=t.detectionReport&&(this.form.detectionReport=t.detectionReport.dataCode),null!=t.reportIssued&&(this.form.reportIssued=t.reportIssued.dataCode),null!=t.reportUse&&(this.form.reportUse=t.reportUse.dataCode),this.form.asOfTime=t.asOfTime,this.form.remark=t.remark,this.setDetectionItems(t.detectionItems)}else this.title="添加";this.dialogFormVisible=!0},setDetectionItems(e){for(var t=[],o=0;o<e.length;o++)null!=e[o]&&t.push(e[o].dataCode);this.form.detectionItems=t},close(){this.$refs["form"].resetFields(),this.form=this.$options.data().form,this.dialogFormVisible=!1,this.$emit("fetch-data")},save(){this.$refs["form"].validate(async e=>{if(!e)return!1;var t=this.form.detectionItems;if(t&&(this.form.detectionItems=t.join(",")),this.form.id){const{msg:e}=await Object(i["doEdit"])(this.form);this.$notify({title:e,type:"success"})}else{delete this.form.id;const{msg:e}=await Object(i["doAdd"])(this.form);this.$notify({title:e,type:"success"})}this.$refs["form"].resetFields(),this.dialogFormVisible=!1,this.$parent.fetchData()})}}},d=(o("a269"),o("d959")),u=o.n(d);const m=u()(c,[["render",r]]);t["default"]=m},ae38:function(e,t,o){"use strict";o.r(t);var n=o("f2bf");const a={class:"manage-container"},r={class:"manage-button"};function i(e,t,o,i,l,s){const c=Object(n["resolveComponent"])("el-button"),d=Object(n["resolveComponent"])("el-table-column"),u=Object(n["resolveComponent"])("el-switch"),m=Object(n["resolveComponent"])("el-table"),h=Object(n["resolveComponent"])("el-pagination"),p=Object(n["resolveComponent"])("fluorite-add"),b=Object(n["resolveDirective"])("loading");return Object(n["openBlock"])(),Object(n["createElementBlock"])("div",a,[Object(n["createElementVNode"])("div",r,[Object(n["createVNode"])(c,{type:"primary",size:"small",onClick:t[0]||(t[0]=e=>s.handleAdd())},{default:Object(n["withCtx"])(()=>t[1]||(t[1]=[Object(n["createTextVNode"])(" 添加萤石云 ")])),_:1})]),Object(n["withDirectives"])((Object(n["openBlock"])(),Object(n["createBlock"])(m,{data:l.fluoriteData,border:"",stripe:"",style:{width:"100%"}},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(d,{prop:"id",label:"ID",width:"60",align:"center"}),Object(n["createVNode"])(d,{prop:"account",label:"账户名",width:"120",align:"center"}),Object(n["createVNode"])(d,{prop:"appKey",label:"appKey",width:"220",align:"center"}),Object(n["createVNode"])(d,{prop:"appSecret",label:"appSecret",width:"220",align:"center"}),Object(n["createVNode"])(d,{prop:"captureCycle",label:"抓拍周期",width:"90",align:"center"}),Object(n["createVNode"])(d,{prop:"enableStatus",label:"是否抓拍",align:"center"},{default:Object(n["withCtx"])(e=>[Object(n["createVNode"])(u,{modelValue:e.row.captureFlag,"onUpdate:modelValue":t=>e.row.captureFlag=t,"active-value":"1","inactive-value":"0",onClick:t=>s.updateFlag(e.row.captureFlag,e.row.account)},null,8,["modelValue","onUpdate:modelValue","onClick"])]),_:1}),Object(n["createVNode"])(d,{prop:"createTime",label:"添加时间",width:"200",align:"center"}),Object(n["createVNode"])(d,{prop:"updateTime",label:"编辑时间",width:"200",align:"center"}),Object(n["createVNode"])(d,{fixed:"right",label:e.$t("defalult.cz"),width:"180",align:"center"},{default:Object(n["withCtx"])(({row:o})=>[Object(n["createVNode"])(c,{type:"text",onClick:e=>s.sensorData(o)},{default:Object(n["withCtx"])(()=>t[2]||(t[2]=[Object(n["createTextVNode"])("设备")])),_:2},1032,["onClick"]),Object(n["createVNode"])(c,{type:"text",onClick:e=>s.handleEdit(o)},{default:Object(n["withCtx"])(()=>[Object(n["createTextVNode"])(Object(n["toDisplayString"])(e.$t("defalult.bj")),1)]),_:2},1032,["onClick"]),Object(n["createVNode"])(c,{type:"text",onClick:e=>s.handleDelete(o)},{default:Object(n["withCtx"])(()=>[Object(n["createTextVNode"])(Object(n["toDisplayString"])(e.$t("defalult.sc")),1)]),_:2},1032,["onClick"])]),_:1},8,["label"])]),_:1},8,["data"])),[[b,l.listLoading]]),Object(n["createVNode"])(h,{background:l.background,"current-page":l.queryForm.page,layout:l.layout,"page-size":l.queryForm.size,total:l.total,style:{"text-align":"right"},onCurrentChange:s.handleCurrentChange,onSizeChange:s.handleSizeChange},null,8,["background","current-page","layout","page-size","total","onCurrentChange","onSizeChange"]),Object(n["createVNode"])(p,{ref:"edit"},null,512)])}o("14d9");var l=o("acca"),s=o("e8ee"),c={name:"Index",components:{fluoriteAdd:s["default"]},data(){return{fluoriteData:[],deviceId:"",projectId:"",lazy:!0,layout:"total, sizes, prev, pager, next, jumper",total:0,background:!0,listLoading:!0,elementLoadingText:"正在加载...",queryForm:{page:1,size:20}}},computed:{height(){return 500}},created(){this.fetchData()},methods:{async fetchData(){this.listLoading=!0;const{data:e}=await Object(l["getList"])(this.queryForm);console.log(e),this.fluoriteData=e.items,this.total=e.total,setTimeout(()=>{this.listLoading=!1},500)},handleAdd(){this.$refs["edit"].showEdit(this.deviceId,0)},handleEdit(e){e.deviceId=this.deviceId,this.$refs["edit"].showEdit(e,1)},sensorData(e){this.$router.push({path:"/videoData",name:"设备列表",query:{account:e.account}})},async updateFlag(e,t){const{code:o,msg:n}=await Object(l["capture"])({captureFlag:parseInt(e),account:t});0==o?this.$notify({title:n,type:"success"}):this.$notify.error({title:n}),this.fetchData()},handleQuery(){this.queryForm.page=1,this.fetchData()},handleSizeChange(e){this.queryForm.size=e,this.fetchData()},handleCurrentChange(e){this.queryForm.page=e,this.fetchData()},handleDelete(e){const t=this;e.id&&this.$confirm("你确定要删除当前项吗?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(()=>{const{msg:o}=Object(l["doDelete"])({id:e.id});this.$message({type:"success",message:void 0==o?"删除成功":o}),setTimeout((function(){t.fetchData()}),1e3)}).catch(()=>{this.$message({type:"info",message:"已取消删除"})})}}},d=(o("edf3"),o("51da"),o("d959")),u=o.n(d);const m=u()(c,[["render",i],["__scopeId","data-v-408b7ade"]]);t["default"]=m},ae52:function(e,t,o){},ae7a:function(e,t,o){"use strict";o.r(t);var n=o("f2bf");const a={class:"manage-container"},r={class:"dialog-footer"},i={class:"dialog-footer"};function l(e,t,o,l,s,c){const d=Object(n["resolveComponent"])("el-input"),u=Object(n["resolveComponent"])("el-button"),m=Object(n["resolveComponent"])("el-form-item"),h=Object(n["resolveComponent"])("el-form"),p=Object(n["resolveComponent"])("el-dialog"),b=Object(n["resolveComponent"])("vab-query-form"),g=Object(n["resolveComponent"])("el-table-column"),f=Object(n["resolveComponent"])("el-table"),v=Object(n["resolveComponent"])("vab-query-form-left-panel"),w=Object(n["resolveComponent"])("el-pagination"),k=Object(n["resolveComponent"])("vab-query-form-right-panel"),C=Object(n["resolveComponent"])("el-tab-pane"),y=Object(n["resolveComponent"])("el-tabs"),O=Object(n["resolveComponent"])("role-edit");return Object(n["openBlock"])(),Object(n["createElementBlock"])("div",a,[Object(n["createVNode"])(y,{modelValue:s.activeName,"onUpdate:modelValue":t[19]||(t[19]=e=>s.activeName=e),onTabClick:c.handleClick},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(C,{label:"用户列表",name:"first"},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(b,null,{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(d,{modelValue:s.input,"onUpdate:modelValue":t[0]||(t[0]=e=>s.input=e),placeholder:"用户名"},null,8,["modelValue"]),Object(n["createVNode"])(d,{modelValue:s.input,"onUpdate:modelValue":t[1]||(t[1]=e=>s.input=e),placeholder:"电话号码"},null,8,["modelValue"]),Object(n["createVNode"])(d,{modelValue:s.input,"onUpdate:modelValue":t[2]||(t[2]=e=>s.input=e),placeholder:"用户昵称"},null,8,["modelValue"]),Object(n["createVNode"])(u,{type:"primary"},{default:Object(n["withCtx"])(()=>[Object(n["createTextVNode"])(Object(n["toDisplayString"])(e.$t("defalult.cx")),1)]),_:1}),Object(n["createVNode"])(u,{type:"primary",plain:""},{default:Object(n["withCtx"])(()=>[Object(n["createTextVNode"])(Object(n["toDisplayString"])(e.$t("defalult.chongz")),1)]),_:1}),Object(n["createVNode"])(u,{type:"primary",onClick:t[3]||(t[3]=t=>e.dialogFormVisible=!0)},{default:Object(n["withCtx"])(()=>t[20]||(t[20]=[Object(n["createTextVNode"])(" 新增用户 ")])),_:1}),Object(n["createVNode"])(p,{modelValue:e.dialogFormVisible,"onUpdate:modelValue":t[9]||(t[9]=t=>e.dialogFormVisible=t),title:"编辑"},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(h,{model:e.form},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(m,{label:"上级分类","label-width":e.formLabelWidth},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(d,{modelValue:e.form.name,"onUpdate:modelValue":t[4]||(t[4]=t=>e.form.name=t),autocomplete:"off"},null,8,["modelValue"])]),_:1},8,["label-width"]),Object(n["createVNode"])(m,{label:"分类名称","label-width":e.formLabelWidth},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(d,{modelValue:e.form.name,"onUpdate:modelValue":t[5]||(t[5]=t=>e.form.name=t),autocomplete:"off"},null,8,["modelValue"])]),_:1},8,["label-width"]),Object(n["createVNode"])(m,{label:"分类排序","label-width":e.formLabelWidth},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(d,{modelValue:e.form.name,"onUpdate:modelValue":t[6]||(t[6]=t=>e.form.name=t),autocomplete:"off"},null,8,["modelValue"])]),_:1},8,["label-width"])]),_:1},8,["model"]),Object(n["createElementVNode"])("div",r,[Object(n["createVNode"])(u,{onClick:t[7]||(t[7]=t=>e.dialogFormVisible=!1)},{default:Object(n["withCtx"])(()=>t[21]||(t[21]=[Object(n["createTextVNode"])("取 消")])),_:1}),Object(n["createVNode"])(u,{type:"primary",onClick:t[8]||(t[8]=t=>e.dialogFormVisible=!1)},{default:Object(n["withCtx"])(()=>t[22]||(t[22]=[Object(n["createTextVNode"])(" 确定 ")])),_:1})])]),_:1},8,["modelValue"])]),_:1}),Object(n["createVNode"])(f,{data:e.tableData,border:"",stripe:"",style:{width:"100%"}},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(g,{prop:"id",label:"ID",width:"60",align:"center"}),Object(n["createVNode"])(g,{prop:"code",label:e.$t("staff.yhm"),width:"120",align:"center"},null,8,["label"]),Object(n["createVNode"])(g,{prop:"name",label:e.$t("staff.xm"),width:"120",align:"center"},null,8,["label"]),Object(n["createVNode"])(g,{prop:"tel",label:"电话号码",width:"120",align:"center"}),Object(n["createVNode"])(g,{prop:"sign",label:"最近登录时间",width:"150",align:"center"}),Object(n["createVNode"])(g,{prop:"enroll",label:"登录次数",width:"100",align:"center"}),Object(n["createVNode"])(g,{prop:"company",label:"公司名称",width:"200",align:"center"}),Object(n["createVNode"])(g,{prop:"type",label:"用户类型",width:"100",align:"center"}),Object(n["createVNode"])(g,{prop:"role",label:"角色",width:"100",align:"center"}),Object(n["createVNode"])(g,{prop:"date",label:"创建日期",width:"150",align:"center"}),Object(n["createVNode"])(g,{fixed:"right",label:e.$t("defalult.cz"),width:"200",align:"center"},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(u,{type:"text",onClick:t[10]||(t[10]=t=>e.dialogFormVisible=!0)},{default:Object(n["withCtx"])(()=>[Object(n["createTextVNode"])(Object(n["toDisplayString"])(e.$t("defalult.bj")),1)]),_:1}),Object(n["createVNode"])(p,{modelValue:e.dialogFormVisible,"onUpdate:modelValue":t[16]||(t[16]=t=>e.dialogFormVisible=t),title:"编辑"},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(h,{model:e.form},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(m,{label:"上级分类","label-width":e.formLabelWidth},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(d,{modelValue:e.form.name,"onUpdate:modelValue":t[11]||(t[11]=t=>e.form.name=t),autocomplete:"off"},null,8,["modelValue"])]),_:1},8,["label-width"]),Object(n["createVNode"])(m,{label:"分类名称","label-width":e.formLabelWidth},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(d,{modelValue:e.form.name,"onUpdate:modelValue":t[12]||(t[12]=t=>e.form.name=t),autocomplete:"off"},null,8,["modelValue"])]),_:1},8,["label-width"]),Object(n["createVNode"])(m,{label:"分类排序","label-width":e.formLabelWidth},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(d,{modelValue:e.form.name,"onUpdate:modelValue":t[13]||(t[13]=t=>e.form.name=t),autocomplete:"off"},null,8,["modelValue"])]),_:1},8,["label-width"])]),_:1},8,["model"]),Object(n["createElementVNode"])("div",i,[Object(n["createVNode"])(u,{onClick:t[14]||(t[14]=t=>e.dialogFormVisible=!1)},{default:Object(n["withCtx"])(()=>t[23]||(t[23]=[Object(n["createTextVNode"])("取 消")])),_:1}),Object(n["createVNode"])(u,{type:"primary",onClick:t[15]||(t[15]=t=>e.dialogFormVisible=!1)},{default:Object(n["withCtx"])(()=>t[24]||(t[24]=[Object(n["createTextVNode"])(" 确 定 ")])),_:1})])]),_:1},8,["modelValue"]),Object(n["createVNode"])(u,{type:"text",size:"small"},{default:Object(n["withCtx"])(()=>[Object(n["createTextVNode"])(Object(n["toDisplayString"])(e.$t("defalult.sc")),1)]),_:1})]),_:1},8,["label"])]),_:1},8,["data"]),Object(n["createVNode"])(b,null,{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(v),Object(n["createVNode"])(k,null,{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(w,{"current-page":e.currentPage4,"page-sizes":[100,200,300,400],"page-size":100,layout:"total, sizes, prev, pager, next, jumper",total:400,onSizeChange:c.handleSizeChange,onCurrentChange:c.handleCurrentChange},null,8,["current-page","onSizeChange","onCurrentChange"])]),_:1})]),_:1})]),_:1}),Object(n["createVNode"])(C,{label:"角色管理",name:"second"},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(b,null,{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(u,{type:"primary",onClick:t[17]||(t[17]=t=>e.dialogFormIp=!0)},{default:Object(n["withCtx"])(()=>t[25]||(t[25]=[Object(n["createTextVNode"])(" 添加角色 ")])),_:1})]),_:1}),Object(n["createVNode"])(f,{data:s.roleData,border:"",stripe:"",style:{width:"100%"}},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(g,{prop:"id",label:"ID",width:"60",align:"center"}),Object(n["createVNode"])(g,{prop:"name",label:"角色名",width:"120",align:"center"}),Object(n["createVNode"])(g,{prop:"status",label:e.$t("dataEnquiry.zt"),width:"120",align:"center"},null,8,["label"]),Object(n["createVNode"])(g,{prop:"message",label:"备注信息",width:"120",align:"center"}),Object(n["createVNode"])(g,{prop:"createTime",label:e.$t("grouping.cjsj"),width:"150",align:"center"},null,8,["label"]),Object(n["createVNode"])(g,{prop:"updateTime",label:e.$t("grouping.gxsj"),width:"100",align:"center"},null,8,["label"]),Object(n["createVNode"])(g,{fixed:"right",label:e.$t("defalult.cz"),align:"center"},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(u,{type:"text",onClick:t[18]||(t[18]=t=>e.dialogIpEdit=!0)},{default:Object(n["withCtx"])(()=>[Object(n["createTextVNode"])(Object(n["toDisplayString"])(e.$t("defalult.bj")),1)]),_:1}),Object(n["createVNode"])(u,{type:"text",size:"small"},{default:Object(n["withCtx"])(()=>[Object(n["createTextVNode"])(Object(n["toDisplayString"])(e.$t("defalult.sc")),1)]),_:1}),Object(n["createVNode"])(u,{type:"text",size:"small"},{default:Object(n["withCtx"])(()=>t[26]||(t[26]=[Object(n["createTextVNode"])("角色授权")])),_:1})]),_:1},8,["label"])]),_:1},8,["data"]),Object(n["createVNode"])(b,null,{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(k,null,{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(w,{background:s.background,"current-page":s.queryForm.pageNo,layout:s.layout,"page-size":s.queryForm.pageSize,total:s.total,onCurrentChange:c.handleCurrentChange,onSizeChange:c.handleSizeChange},null,8,["background","current-page","layout","page-size","total","onCurrentChange","onSizeChange"])]),_:1})]),_:1})]),_:1}),Object(n["createVNode"])(C,{label:"部门管理",name:"third"},{default:Object(n["withCtx"])(()=>t[27]||(t[27]=[Object(n["createTextVNode"])("部门管理")])),_:1})]),_:1},8,["modelValue","onTabClick"]),Object(n["createVNode"])(O,{ref:"edit"},null,512)])}var s=o("cc5e"),c={name:"Manage",data(){return{roleData:[],lazy:!0,activeName:"first",layout:"total, sizes, prev, pager, next, jumper",total:0,input:"",textarea:"",list:[],background:!0,listLoading:!0,elementLoadingText:"正在加载...",queryForm:{page:1,size:20,name:""}}},computed:{height(){return 500}},methods:{handleClick(e,t){console.log(e,t),"second"==e.paneName&&this.fetchData()},async menuStatus(e,t){const{code:o,msg:n}=await Object(s["doEdit"])({status:e,id:t});0==o?this.$notify({title:n,type:"success"}):this.$notify.error({title:n}),this.fetchData()},async fetchData(){this.listLoading=!0,console.log("queryForm="+this.queryForm);const{data:e,totalCount:t}=await Object(s["getList"])(this.queryForm);this.roleData=e,this.total=t,setTimeout(()=>{this.listLoading=!1},500)},handleAdd(){this.$refs["edit"].showEdit()},handleEdit(e){this.$refs["edit"].showEdit(e)},handleSizeChange(e){this.queryForm.size=e,this.fetchData()},handleCurrentChange(e){this.queryForm.page=e,this.fetchData()},handleDelete(e){e.id&&this.$confirm("你确定要删除当前项吗?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(()=>{const{msg:t}=Object(s["doDelete"])({menuId:e.id});this.$message({type:"success",message:t})}).catch(()=>{this.$message({type:"info",message:"已取消删除"})})}}},d=(o("e552"),o("d959")),u=o.n(d);const m=u()(c,[["render",l],["__scopeId","data-v-c12a3042"]]);t["default"]=m},aeae:function(e,t,o){"use strict";o("988d")},af55:function(e,t,o){},af95:function(e,t,o){"use strict";o.r(t);var n=o("f2bf");const a={class:"manage-container"},r={class:"manage-input"},i={class:"manage-input"},l={class:"manage-button"};function s(e,t,o,s,c,d){const u=Object(n["resolveComponent"])("el-input"),m=Object(n["resolveComponent"])("el-form-item"),h=Object(n["resolveComponent"])("vab-query-form"),p=Object(n["resolveComponent"])("el-form"),b=Object(n["resolveComponent"])("el-option"),g=Object(n["resolveComponent"])("el-select"),f=Object(n["resolveComponent"])("el-button"),v=Object(n["resolveComponent"])("el-table-column"),w=Object(n["resolveComponent"])("el-tag"),k=Object(n["resolveComponent"])("el-switch"),C=Object(n["resolveComponent"])("el-table"),y=Object(n["resolveComponent"])("el-pagination"),O=Object(n["resolveDirective"])("loading");return Object(n["openBlock"])(),Object(n["createElementBlock"])("div",a,[Object(n["createElementVNode"])("div",r,[Object(n["createVNode"])(p,{ref:"queryForm",model:c.queryForm,"label-width":"80px"},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(h,null,{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(m,{width:"100",prop:"name",label:e.$t("dataEnquiry.zdmc")},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(u,{modelValue:c.queryForm.name,"onUpdate:modelValue":t[0]||(t[0]=e=>c.queryForm.name=e),size:"small",placeholder:e.$t("dataEnquiry.zdmc")},null,8,["modelValue","placeholder"])]),_:1},8,["label"]),Object(n["createVNode"])(m,{width:"100",prop:"serial",label:e.$t("dataEnquiry.zdmc")},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(u,{modelValue:c.queryForm.serial,"onUpdate:modelValue":t[1]||(t[1]=e=>c.queryForm.serial=e),size:"small",placeholder:e.$t("dataEnquiry.zdmc")},null,8,["modelValue","placeholder"])]),_:1},8,["label"]),Object(n["createVNode"])(m,{width:"100",prop:"community",label:e.$t("dataEnquiry.zdmc")},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(u,{modelValue:c.queryForm.community,"onUpdate:modelValue":t[2]||(t[2]=e=>c.queryForm.community=e),size:"small",placeholder:e.$t("dataEnquiry.zdmc")},null,8,["modelValue","placeholder"])]),_:1},8,["label"])]),_:1})]),_:1},8,["model"])]),Object(n["createElementVNode"])("div",i,[Object(n["createVNode"])(p,{ref:"queryForm",model:c.queryForm,"label-width":"80px"},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(h,null,{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(m,{width:"100",prop:"townCode",label:e.$t("dataEnquiry.zdmc")},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(g,{modelValue:c.queryForm.townCode,"onUpdate:modelValue":t[3]||(t[3]=e=>c.queryForm.townCode=e),size:"small",placeholder:e.$t("dataEnquiry.zdmc")},{default:Object(n["withCtx"])(()=>[(Object(n["openBlock"])(!0),Object(n["createElementBlock"])(n["Fragment"],null,Object(n["renderList"])(c.townData,e=>(Object(n["openBlock"])(),Object(n["createBlock"])(b,{key:e.townCode,label:e.townName,value:e.townCode},null,8,["label","value"]))),128))]),_:1},8,["modelValue","placeholder"])]),_:1},8,["label"]),Object(n["createVNode"])(m,{width:"100",prop:"commPro",label:e.$t("dataEnquiry.zdmc")},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(g,{modelValue:c.queryForm.commPro,"onUpdate:modelValue":t[4]||(t[4]=e=>c.queryForm.commPro=e),size:"small",placeholder:e.$t("dataEnquiry.zdmc")},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(b,{value:"全部",label:e.$t("dataEnquiry.zdmc")},null,8,["label"]),(Object(n["openBlock"])(!0),Object(n["createElementBlock"])(n["Fragment"],null,Object(n["renderList"])(c.commPorData,e=>(Object(n["openBlock"])(),Object(n["createBlock"])(b,{key:e.dataCode,label:e.dataValue,value:e.dataCode},null,8,["label","value"]))),128))]),_:1},8,["modelValue","placeholder"])]),_:1},8,["label"]),Object(n["createVNode"])(m,{width:"100",prop:"status",label:e.$t("dataEnquiry.zdmc")},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(g,{modelValue:c.queryForm.status,"onUpdate:modelValue":t[5]||(t[5]=e=>c.queryForm.status=e),size:"small",placeholder:e.$t("dataEnquiry.zdmc")},{default:Object(n["withCtx"])(()=>[(Object(n["openBlock"])(!0),Object(n["createElementBlock"])(n["Fragment"],null,Object(n["renderList"])(c.statusData,e=>(Object(n["openBlock"])(),Object(n["createBlock"])(b,{key:e.value,label:e.label,value:e.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue","placeholder"])]),_:1},8,["label"])]),_:1})]),_:1},8,["model"])]),Object(n["createElementVNode"])("div",l,[Object(n["createVNode"])(f,{size:"small",onClick:t[6]||(t[6]=e=>d.resetForm())},{default:Object(n["withCtx"])(()=>[Object(n["createTextVNode"])(Object(n["toDisplayString"])(e.$t("defalult.cz")),1)]),_:1}),Object(n["createVNode"])(f,{type:"primary",size:"small",onClick:d.search},{default:Object(n["withCtx"])(()=>[Object(n["createTextVNode"])(Object(n["toDisplayString"])(e.$t("defalult.cx")),1)]),_:1},8,["onClick"])]),Object(n["withDirectives"])((Object(n["openBlock"])(),Object(n["createBlock"])(C,{id:"table",data:c.deviceData,border:"",stripe:"",style:{width:"100%"}},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(v,{type:"selection",width:"40"}),Object(n["createVNode"])(v,{prop:"id",label:"ID",width:"60",align:"center"}),Object(n["createVNode"])(v,{prop:"name",label:e.$t("dataEnquiry.zdmc"),width:"160",align:"center"},null,8,["label"]),Object(n["createVNode"])(v,{prop:"code",label:e.$t("dataEnquiry.zdmc"),width:"160",align:"center"},null,8,["label"]),Object(n["createVNode"])(v,{prop:"serial",label:e.$t("dataEnquiry.zdmc"),width:"160",align:"center"},null,8,["label"]),Object(n["createVNode"])(v,{prop:"status",label:e.$t("dataEnquiry.zdmc"),width:"100",align:"center"},{default:Object(n["withCtx"])(({row:t})=>["已连接"==t.status?(Object(n["openBlock"])(),Object(n["createBlock"])(w,{key:0,effect:"dark",type:"success",size:"mini"},{default:Object(n["withCtx"])(()=>[Object(n["createTextVNode"])(Object(n["toDisplayString"])(e.$t("dataEnquiry.zdmc")),1)]),_:1})):Object(n["createCommentVNode"])("",!0),"未连接"==t.status?(Object(n["openBlock"])(),Object(n["createBlock"])(w,{key:1,effect:"dark",type:"danger",size:"mini"},{default:Object(n["withCtx"])(()=>[Object(n["createTextVNode"])(Object(n["toDisplayString"])(e.$t("dataEnquiry.zdmc")),1)]),_:1})):Object(n["createCommentVNode"])("",!0)]),_:1},8,["label"]),Object(n["createVNode"])(v,{prop:"enableStatus",label:e.$t("dataEnquiry.zdmc"),align:"center"},{default:Object(n["withCtx"])(e=>[Object(n["createVNode"])(k,{modelValue:e.row.enableStatus,"onUpdate:modelValue":t=>e.row.enableStatus=t,"active-value":"1","inactive-value":"0",onClick:t=>d.updateStatus(e.row.enableStatus,e.row.id)},null,8,["modelValue","onUpdate:modelValue","onClick"])]),_:1},8,["label"]),Object(n["createVNode"])(v,{prop:"commPro.dataValue",label:e.$t("dataEnquiry.txxy"),width:"100",align:"center"},null,8,["label"]),Object(n["createVNode"])(v,{prop:"longitude",label:e.$t("dataEnquiry.jd"),width:"100",align:"center"},null,8,["label"]),Object(n["createVNode"])(v,{prop:"latitude",label:e.$t("dataEnquiry.wd"),width:"100",align:"center"},null,8,["label"]),Object(n["createVNode"])(v,{prop:"offlineDelay",label:e.$t("dataEnquiry.lxys"),width:"100",align:"center"},null,8,["label"]),Object(n["createVNode"])(v,{prop:"townName",label:e.$t("dataEnquiry.xzjdmc"),width:"120",align:"center"},null,8,["label"]),Object(n["createVNode"])(v,{prop:"community",label:e.$t("dataEnquiry.sq"),width:"120",align:"center"},null,8,["label"]),Object(n["createVNode"])(v,{prop:"specifications",label:e.$t("dataEnquiry.sbgg"),width:"100",align:"center"},null,8,["label"]),Object(n["createVNode"])(v,{prop:"offlineDelay",label:e.$t("dataEnquiry.lxyzm"),width:"100",align:"center"},null,8,["label"]),Object(n["createVNode"])(v,{prop:"commPro.dataValue",label:e.$t("dataEnquiry.txxy"),width:"100",align:"center"},null,8,["label"]),Object(n["createVNode"])(v,{prop:"project.name",label:e.$t("dataEnquiry.xm"),width:"200",align:"center"},null,8,["label"]),Object(n["createVNode"])(v,{prop:"specifications",label:e.$t("dataEnquiry.sbggd"),width:"100",align:"center"},null,8,["label"]),Object(n["createVNode"])(v,{prop:"simNum",label:e.$t("dataEnquiry.skjjhm"),width:"150",align:"center"},null,8,["label"]),Object(n["createVNode"])(v,{prop:"technology.dataValue",label:e.$t("dataEnquiry.sbgy"),width:"100",align:"center"},null,8,["label"]),Object(n["createVNode"])(v,{prop:"material.dataValue",label:e.$t("dataEnquiry.sbcz"),width:"100",align:"center"},null,8,["label"]),Object(n["createVNode"])(v,{prop:"outStandard.dataValue",label:e.$t("dataEnquiry.csbz"),width:"100",align:"center"},null,8,["label"]),Object(n["createVNode"])(v,{prop:"leader",label:e.$t("dataEnquiry.zdmc"),width:"100",align:"center"},null,8,["label"]),Object(n["createVNode"])(v,{prop:"contact",label:e.$t("dataEnquiry.lxfs"),width:"100",align:"center"},null,8,["label"]),Object(n["createVNode"])(v,{prop:"type.dataValue",label:e.$t("dataEnquiry.sblx"),width:"100",align:"center"},null,8,["label"]),Object(n["createVNode"])(v,{prop:"userNum",label:e.$t("dataEnquiry.fwyhs"),width:"100",align:"center"},null,8,["label"]),Object(n["createVNode"])(v,{prop:"onlineTime",label:e.$t("dataEnquiry.sxsj"),width:"180",align:"center"},null,8,["label"]),Object(n["createVNode"])(v,{prop:"offlineTime",label:e.$t("dataEnquiry.lxsj"),width:"180",align:"center"},null,8,["label"]),Object(n["createVNode"])(v,{prop:"offlineDuration",label:e.$t("dataEnquiry.lxsc"),width:"150",align:"center"},null,8,["label"]),Object(n["createVNode"])(v,{fixed:"right",label:e.$t("defalult.chongz"),width:"150",align:"center"},{default:Object(n["withCtx"])(({row:t})=>[Object(n["createVNode"])(f,{type:"text",onClick:e=>d.sensorEdit(t)},{default:Object(n["withCtx"])(()=>[Object(n["createTextVNode"])(Object(n["toDisplayString"])(e.$t("dataEnquiry.cgq")),1)]),_:2},1032,["onClick"]),Object(n["createVNode"])(f,{type:"text",onClick:e=>d.sensorData(t)},{default:Object(n["withCtx"])(()=>[Object(n["createTextVNode"])(Object(n["toDisplayString"])(e.$t("dataEnquiry.sj")),1)]),_:2},1032,["onClick"])]),_:1},8,["label"])]),_:1},8,["data"])),[[O,c.listLoading]]),Object(n["createVNode"])(y,{background:c.background,"current-page":c.queryForm.page,layout:c.layout,"page-size":c.queryForm.size,total:c.total,style:{"text-align":"right"},onCurrentChange:d.handleCurrentChange,onSizeChange:d.handleSizeChange},null,8,["background","current-page","layout","page-size","total","onCurrentChange","onSizeChange"])])}o("14d9");var c=o("aa98"),d={data(){return{deviceData:[],lazy:!0,activeName:"first",layout:"total, sizes, prev, pager, next, jumper",total:0,input:"",textarea:"",list:[],townData:[],dictData:[],background:!0,listLoading:!0,ids:[],commPorData:[],elementLoadingText:"正在加载...",statusData:[{label:"all",value:3},{label:"离线",value:0},{label:"在线",value:1}],queryForm:{page:1,size:20,name:"",projectId:"",serial:"",community:"",townCode:"",commPro:"Entire agreement",status:3}}},computed:{height(){return 500}},created(){this.queryForm.projectId=sessionStorage.getItem("projectId"),this.fetchData(),this.getCommPorData()},methods:{async fetchData(){this.listLoading=!0;const{data:e}=await Object(c["getDeviceData"])(this.queryForm);this.deviceData=e.items,this.total=e.total,setTimeout(()=>{this.listLoading=!1},500)},async getCommPorData(){const{data:e}=await Object(c["getDictData"])();this.commPorData=e.communicationProtocol},async updateStatus(e,t){console.log(e);const{code:o,msg:n}=await Object(c["doEdit"])({enableStatus:parseInt(e),id:t});0==o?this.$notify({title:n,type:"success"}):this.$notify.error({title:n}),this.fetchData()},async getTownData(){const{data:e}=await Object(c["getTownsByProject"])(this.queryForm);this.townData=e},resetForm(){this.$refs.queryForm.resetFields()},search(){this.fetchData()},sensorData(e){this.$router.push({name:"传感器数据",path:"/sensorIotData",query:{deviceCode:e.code,deviceId:e.id}})},sensorEdit(e){console.log(e),this.$router.push({name:"传感器管理",path:"/sensor",query:{deviceId:e.id,projectId:this.queryForm.projectId}})},handleQuery(){this.queryForm.page=1,this.fetchData()},handleSizeChange(e){this.queryForm.size=e,this.fetchData()},handleCurrentChange(e){this.queryForm.page=e,this.fetchData()}}},u=(o("2b1c"),o("9b39"),o("d959")),m=o.n(u);const h=m()(d,[["render",s],["__scopeId","data-v-696e1021"]]);t["default"]=h},afc2:function(e,t,o){"use strict";o("c874")},b01e:function(e,t,o){"use strict";o.r(t);var n=o("f2bf");const a={class:"manage-container"},r={class:"manage-input"},i={class:"manage-input"},l={class:"manage-button"};function s(e,t,o,s,c,d){const u=Object(n["resolveComponent"])("el-input"),m=Object(n["resolveComponent"])("el-form-item"),h=Object(n["resolveComponent"])("el-date-picker"),p=Object(n["resolveComponent"])("el-option"),b=Object(n["resolveComponent"])("el-select"),g=Object(n["resolveComponent"])("vab-query-form"),f=Object(n["resolveComponent"])("el-form"),v=Object(n["resolveComponent"])("el-button"),w=Object(n["resolveComponent"])("el-table-column"),k=Object(n["resolveComponent"])("el-table"),C=Object(n["resolveComponent"])("el-pagination");return Object(n["openBlock"])(),Object(n["createElementBlock"])("div",a,[Object(n["createElementVNode"])("div",r,[Object(n["createVNode"])(f,{ref:"queryForm",model:c.queryForm,"label-width":"80px"},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(g,null,{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(m,{width:"100",prop:"operName",label:e.$t("staff.yhm")},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(u,{modelValue:c.queryForm.operName,"onUpdate:modelValue":t[0]||(t[0]=e=>c.queryForm.operName=e),size:"small",placeholder:"请输入用户名"},null,8,["modelValue"])]),_:1},8,["label"]),Object(n["createVNode"])(m,{width:"100",prop:"time",label:e.$t("defalult.rq")},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(h,{modelValue:c.queryForm.time,"onUpdate:modelValue":t[1]||(t[1]=e=>c.queryForm.time=e),size:"small",type:"daterange",align:"right","start-placeholder":"开始时间","end-placeholder":"结束时间",onChange:d.changeTime},null,8,["modelValue","onChange"])]),_:1},8,["label"]),Object(n["createVNode"])(m,{width:"130",prop:"businessType",label:"操作类型"},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(b,{modelValue:c.queryForm.businessType,"onUpdate:modelValue":t[2]||(t[2]=e=>c.queryForm.businessType=e),filterable:"",placeholder:"请选择"},{default:Object(n["withCtx"])(()=>[(Object(n["openBlock"])(!0),Object(n["createElementBlock"])(n["Fragment"],null,Object(n["renderList"])(c.businessType,e=>(Object(n["openBlock"])(),Object(n["createBlock"])(p,{key:e.dataCode,label:e.dataValue,value:e.dataCode},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1})]),_:1})]),_:1},8,["model"])]),Object(n["createElementVNode"])("div",i,[Object(n["createVNode"])(f,{ref:"queryForm",model:c.queryForm,"label-width":"80px"},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(g,null,{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(m,{width:"130",prop:"businessType",label:e.$t("dataEnquiry.zt")},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(b,{modelValue:c.queryForm.status,"onUpdate:modelValue":t[3]||(t[3]=e=>c.queryForm.status=e),size:"small",filterable:"",placeholder:"请选择"},{default:Object(n["withCtx"])(()=>[(Object(n["openBlock"])(!0),Object(n["createElementBlock"])(n["Fragment"],null,Object(n["renderList"])(c.statusData,e=>(Object(n["openBlock"])(),Object(n["createBlock"])(p,{key:e.value,label:e.label,value:e.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1},8,["label"])]),_:1})]),_:1},8,["model"])]),Object(n["createElementVNode"])("div",l,[Object(n["createVNode"])(v,{size:"small",onClick:t[4]||(t[4]=e=>d.resetForm())},{default:Object(n["withCtx"])(()=>[Object(n["createTextVNode"])(Object(n["toDisplayString"])(e.$t("defalult.chongz")),1)]),_:1}),Object(n["createVNode"])(v,{type:"primary",size:"small",onClick:d.search},{default:Object(n["withCtx"])(()=>[Object(n["createTextVNode"])(Object(n["toDisplayString"])(e.$t("defalult.cx")),1)]),_:1},8,["onClick"]),Object(n["createVNode"])(v,{type:"primary",size:"small",onClick:d.exportData},{default:Object(n["withCtx"])(()=>[Object(n["createTextVNode"])(Object(n["toDisplayString"])(e.$t("defalult.dc")),1)]),_:1},8,["onClick"])]),Object(n["createVNode"])(k,{data:c.tableData,stripe:"",border:"",style:{width:"100%"},onSelectionChange:d.handleSelectionChange},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(w,{fixed:"",type:"selection",width:"40",align:"center"}),Object(n["createVNode"])(w,{prop:"title",label:"模块",width:"120",align:"center"}),Object(n["createVNode"])(w,{prop:"businessType",label:"操作类型",width:"100",align:"center"},{default:Object(n["withCtx"])(({row:e})=>[Object(n["createElementVNode"])("span",null,Object(n["toDisplayString"])(d.getBusinessInfo(e.businessType)),1)]),_:1}),Object(n["createVNode"])(w,{prop:"method",label:"操作方法",width:"450",align:"center"}),Object(n["createVNode"])(w,{prop:"requestMethod",label:"请求方式",width:"100",align:"center"}),Object(n["createVNode"])(w,{prop:"operName",label:"操作人",width:"120",align:"center"}),Object(n["createVNode"])(w,{prop:"operUrl",label:"请求地址",width:"150",align:"center"}),Object(n["createVNode"])(w,{prop:"operIp",label:"操作IP",width:"150",align:"center"}),Object(n["createVNode"])(w,{prop:"operLocation",label:"操作地点",width:"150",align:"center"}),Object(n["createVNode"])(w,{prop:"operParam",label:"请求参数",width:"1000",align:"center"}),Object(n["createVNode"])(w,{prop:"result",label:"返回结果",width:"260",align:"center"}),Object(n["createVNode"])(w,{prop:"status",label:e.$t("dataEnquiry.zt"),width:"80",align:"center"},null,8,["label"]),Object(n["createVNode"])(w,{prop:"errorMsg",label:"错误信息",width:"100",align:"center"}),Object(n["createVNode"])(w,{prop:"operTime",label:"操作时间",width:"180",align:"center"}),Object(n["createVNode"])(w,{fixed:"right",prop:"details",label:e.$t("defalult.cz"),width:"100",align:"center"},{default:Object(n["withCtx"])(({row:t})=>[Object(n["createVNode"])(v,{type:"text",onClick:e=>d.handleDelete(t)},{default:Object(n["withCtx"])(()=>[Object(n["createTextVNode"])(Object(n["toDisplayString"])(e.$t("defalult.sc")),1)]),_:2},1032,["onClick"])]),_:1},8,["label"])]),_:1},8,["data","onSelectionChange"]),Object(n["createVNode"])(C,{background:c.background,"current-page":c.queryForm.page,layout:c.layout,"page-size":c.queryForm.size,total:c.total,style:{"text-align":"right"},onCurrentChange:d.handleCurrentChange,onSizeChange:d.handleSizeChange},null,8,["background","current-page","layout","page-size","total","onCurrentChange","onSizeChange"])])}o("14d9");var c=o("8916"),d=o("5f99"),u=o("3038"),m={data(){return{tableData:[],dialogTableVisible:!1,lazy:!0,layout:"total, sizes, prev, pager, next, jumper",total:0,background:!0,listLoading:!1,elementLoadingText:"正在加载...",ids:[],statusData:[{value:2,label:"all"},{value:0,label:"成功"},{value:1,label:"失败"}],queryForm:{page:1,size:20,operName:"",start:"",end:"",time:"",businessType:"",status:2},businessType:[]}},created(){this.fetchData(),this.getBusinessType()},methods:{async getBusinessType(){const{data:e}=await Object(c["getBusinessType"])();this.businessType=e},getBusinessInfo(e){var t="";return this.businessType.forEach((function(o){e===o.dataCode&&(t=o.dataValue)})),t},changeTime(){this.queryForm.start=Object(d["getDate"])(this.queryForm.time[0]),this.queryForm.end=Object(d["getDate"])(this.queryForm.time[1])},setDefaultTime(){this.queryForm.time=Object(d["getPastTime"])(1),this.queryForm.start=Object(d["getDate"])(this.queryForm.time[0]),this.queryForm.end=Object(d["getDate"])(this.queryForm.time[1])},async fetchData(){const{data:e}=await Object(c["actionLogData"])(this.queryForm);this.tableData=e.items,this.total=e.total},search(){this.fetchData()},resetForm(){this.$refs.queryForm.resetFields()},async exportData(){const e=await Object(c["exportActionLog"])(this.queryForm);console.log(e),u["default"].downloadPostFile(e,{fileName:"操作日志.xls"})},deletes(){const e=this.ids;if(0==e.length)return this.$message({type:"info",message:"没有选中任何项"}),!1;this.deleteData(e)},handleSelectionChange(e){const t=[];e.forEach(e=>{t.push(e.id)}),this.ids=t},deleteData(e){const t=this;this.$confirm("你确定要删除当前项吗?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(()=>{const{msg:o}=Object(c["removeActionLog"])(e);this.$message({type:"success",message:void 0==o?"删除成功":o}),setTimeout((function(){t.fetchData()}),1e3)}).catch(()=>{this.$message({type:"info",message:"已取消删除"})})},handleDelete(e){const t=this;t.deleteData([e.id])},handleQuery(){this.queryForm.page=1,this.fetchData()},handleSizeChange(e){this.queryForm.size=e,this.fetchData()},handleCurrentChange(e){this.queryForm.page=e,this.fetchData()}}},h=(o("8369"),o("6fcd2"),o("d959")),p=o.n(h);const b=p()(m,[["render",s],["__scopeId","data-v-276ca1b6"]]);t["default"]=b},b036:function(e,t,o){e.exports={"menu-color":"hsla(0,0%,27%,.95)","menu-color-active":"hsla(208,100%,55%,.95)","menu-background":"#fff","gallery-second-menu-background":"#fff"}},b090f:function(e,t,o){"use strict";o("ff85")},b0aa:function(e,t,o){"use strict";o.r(t),o.d(t,"DefinedOverlay",(function(){return n})),o.d(t,"DefinedMarkerInfoWindow",(function(){return a})),o.d(t,"randomPoint",(function(){return r}));o("14d9");class n extends T.Overlay{initialize(e,t,o={}){const{text:n,text2:a,filterNowMarkerList:r}=t;this.lnglat=e,this.setOptions(o),this._text=n,this._overText=a,this.filterNowMarkerList=r}onAdd(e){this.map=e;const t=this._div=document.createElement("div");t.style.position="absolute",t.style.backgroundColor="rgba(255, 0, 0, 0.7)",t.style.border="1px solid #BC3B3A",t.style.color="white",t.style.width="200px",t.style.height="94px",t.style.padding="2px",t.style.lineHeight="18px",t.style.whiteSpace="nowrap",t.style.MozUserSelect="none",t.style.fontSize="12px",t.style.display="none";const o=this._span=document.createElement("span");t.appendChild(o),o.appendChild(document.createTextNode(this._text));const n=this;t.onmouseover=function(){this.style.backgroundColor="#6BADCA",this.style.borderColor="#0000ff",this.getElementsByTagName("span")[0].innerHTML=n._overText},t.onmouseout=function(){this.style.backgroundColor="#EE5D5B",this.style.borderColor="#BC3B3A",this.getElementsByTagName("span")[0].innerHTML=n._text},this._bg=document.createElement("div"),this._bg.style.position="absolute",this._bg.style.backgroundColor="rgba(0, 0, 0, 0.7)",this._bg.style.border="1px solid #BC3B3A",this._bg.style.color="white",this._bg.style.width="1120px",this._bg.style.height="794px",this._bg.style.top="0px !important",this._bg.style.left="0px !important",this._bg.style.display="none",this._bg.onclick=()=>{this.hide()},e.getPanes().overlayPane.appendChild(this._bg),e.getPanes().overlayPane.appendChild(this._div),this.update(this.lnglat)}onRemove(){const e=this._div.parentNode;e&&(e.removeChild(this._div),e.removeChild(this._bg),this._bg=null,this._div=null)}show(){this._div.style.display="block",this._bg.style.display="block"}hide(){this._div.style.display="none",this._bg.style.display="none"}setLnglat(e){this.lnglat=e,this.update()}getLnglat(){return this.lnglat}setPos(e){this.lnglat=this.map.layerPointToLngLat(e),this.update()}update(){const e=this.map.lngLatToLayerPoint(this.lnglat);this._div.style.top=e.y-36+"px",this._div.style.left=e.x-11+"px"}setOverlayInfo({text:e,text2:t,lnglat:o}){this._text=e,this._overText=t,this.setLnglat(o)}toggle(e=!1,t){e?(this.setOverlayInfo(t),this._div.style.display="block"):this._div.style.display="none"}}class a{constructor(e,t={}){return this.createContain(e),new T.InfoWindow(this._div.outerHTML,{closeButton:!1,closeOnClick:!0,offset:new T.Point(17,47),autoPan:!0,minWidth:0})}createContain(e){const t=document.createElement("div");t.setAttribute("id",e),t.style.width="60px",t.style.height="60px",t.style.background="rgba(0, 0, 0, 0)",t.style.position="relative",this.containerId=e,this._div=t}}const r=(e,t)=>{const o=e.getBounds(),n=o.getSouthWest(),a=o.getNorthEast(),r=Math.abs(n.lng-a.lng),i=Math.abs(a.lat-n.lat),l=[];for(let s=0;s<t;s++){const e=n.lng+r*(.7*Math.random()),t=a.lat-i*(.7*Math.random());l.push({lng:e,lat:t,zh:"天坛公园"+s,detail:"detail天坛公园"+s,count:Math.floor(30*Math.random()),lnglat:new T.LngLat(e,t)})}return l}},b0bb:function(e,t,o){"use strict";o.r(t);var n=o("f2bf");const a={class:"manage-container"};function r(e,t,o,r,i,l){const s=Object(n["resolveComponent"])("el-table-column"),c=Object(n["resolveComponent"])("el-button"),d=Object(n["resolveComponent"])("el-table"),u=Object(n["resolveComponent"])("sensor-add"),m=Object(n["resolveDirective"])("loading");return Object(n["openBlock"])(),Object(n["createElementBlock"])("div",a,[Object(n["withDirectives"])((Object(n["openBlock"])(),Object(n["createBlock"])(d,{data:i.data,border:"",stripe:"",style:{width:"100%"}},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(s,{prop:"name",label:e.$t("sensor.cgqmc"),width:"120",align:"center"},null,8,["label"]),Object(n["createVNode"])(s,{prop:"type",label:"传感器类型",width:"120",align:"center"}),Object(n["createVNode"])(s,{prop:"dataKey",label:"传输ID",width:"200",align:"center"}),Object(n["createVNode"])(s,{prop:"dataValue",label:"传感器数值",width:"200",align:"center"}),Object(n["createVNode"])(s,{prop:"unit",label:e.$t("sensor.dw"),width:"120",align:"center"},null,8,["label"]),Object(n["createVNode"])(s,{fixed:"right",label:e.$t("defalult.cz"),align:"center"},{default:Object(n["withCtx"])(({row:e})=>[Object(n["createVNode"])(c,{type:"text",onClick:t=>l.historical(e)},{default:Object(n["withCtx"])(()=>t[0]||(t[0]=[Object(n["createTextVNode"])("历史数据")])),_:2},1032,["onClick"])]),_:1},8,["label"])]),_:1},8,["data"])),[[m,i.listLoading]]),Object(n["createVNode"])(u,{ref:"edit"},null,512)])}o("14d9");var i=o("aa98"),l=o("3038"),s=o("7a86"),c={components:{sensorAdd:s["default"]},data(){return{sensorData:[],data:[],deviceCode:"",projectId:"",lazy:!0,layout:"total, sizes, prev, pager, next, jumper",total:0,background:!0,listLoading:!0,elementLoadingText:"正在加载...",deviceId:"",historyData:[],queryForm:{sensorName:"",deviceCode:""}}},computed:{height(){return 500}},created(){this.queryForm.deviceCode=this.$route.query.deviceCode,this.fetchData()},methods:{async fetchData(){this.listLoading=!0;const{data:e}=await Object(i["getLatestDataByDevice"])(this.queryForm);this.data=e,setTimeout(()=>{this.listLoading=!1},500)},async exportData(){const e=await Object(i["exportData"])(this.queryForm);l["default"].downloadFile(e,{fileName:"站点最新数据.xls"})},historical(e){this.$router.push({path:"/showIotData",name:"站点历史数据",query:{dataKey:e.dataKey,deviceCode:this.queryForm.deviceCode}})},handleAdd(){this.$refs["edit"].showEdit(this.queryForm.deviceId,0)},handleEdit(e){e.deviceId=this.queryForm.deviceId,this.$refs["edit"].showEdit(e,1)},search(){this.fetchData()},resetForm(){this.$refs.queryForm.resetFields()},handleQuery(){this.queryForm.page=1,this.fetchData()},handleSizeChange(e){this.queryForm.size=e,this.fetchData()},handleCurrentChange(e){this.queryForm.page=e,this.fetchData()}}},d=(o("ee33"),o("e9a0"),o("d959")),u=o.n(d);const m=u()(c,[["render",r],["__scopeId","data-v-41bceef6"]]);t["default"]=m},b0c4:function(e,t,o){"use strict";o("50df")},b11d:function(e,t,o){"use strict";o("fed6")},b15b:function(e,t,o){"use strict";o.r(t);var n=o("f2bf");const a={class:"manage-container"};function r(e,t,o,r,i,l){const s=Object(n["resolveComponent"])("el-input"),c=Object(n["resolveComponent"])("el-form-item"),d=Object(n["resolveComponent"])("el-option"),u=Object(n["resolveComponent"])("el-select"),m=Object(n["resolveComponent"])("el-button"),h=Object(n["resolveComponent"])("vab-query-form"),p=Object(n["resolveComponent"])("el-form"),b=Object(n["resolveComponent"])("el-table-column"),g=Object(n["resolveComponent"])("el-table"),f=Object(n["resolveComponent"])("el-pagination"),v=Object(n["resolveComponent"])("repair-edit");return Object(n["openBlock"])(),Object(n["createElementBlock"])("div",a,[Object(n["createVNode"])(p,{ref:"queryForm",model:i.queryForm,"label-width":"80px"},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(h,null,{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(c,{width:"100",prop:"deviceName",label:e.$t("dataEnquiry.zdmc")},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(s,{modelValue:i.queryForm.deviceName,"onUpdate:modelValue":t[0]||(t[0]=e=>i.queryForm.deviceName=e),placeholder:e.$t("dataEnquiry.qsrzdmc")},null,8,["modelValue","placeholder"])]),_:1},8,["label"]),Object(n["createVNode"])(c,{width:"100",prop:"repairPersonName",label:e.$t("maintenance.bxr")},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(s,{modelValue:i.queryForm.repairPersonName,"onUpdate:modelValue":t[1]||(t[1]=e=>i.queryForm.repairPersonName=e),placeholder:"请输入报修人"},null,8,["modelValue"])]),_:1},8,["label"]),Object(n["createVNode"])(c,{width:"100",prop:"deviceType",label:e.$t("maintenance.zdlx")},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(u,{modelValue:i.queryForm.deviceType,"onUpdate:modelValue":t[2]||(t[2]=e=>i.queryForm.deviceType=e),placeholder:"站点类型"},{default:Object(n["withCtx"])(()=>[(Object(n["openBlock"])(!0),Object(n["createElementBlock"])(n["Fragment"],null,Object(n["renderList"])(i.deviceTypeData,e=>(Object(n["openBlock"])(),Object(n["createBlock"])(d,{key:e.dataCode,label:e.dataValue,value:e.dataCode},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1},8,["label"]),Object(n["createVNode"])(c,{width:"100",prop:"repairItem",label:e.$t("maintenance.bxxm")},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(u,{modelValue:i.queryForm.repairItem,"onUpdate:modelValue":t[3]||(t[3]=e=>i.queryForm.repairItem=e),placeholder:"报修项目"},{default:Object(n["withCtx"])(()=>[(Object(n["openBlock"])(!0),Object(n["createElementBlock"])(n["Fragment"],null,Object(n["renderList"])(i.repairItemData,e=>(Object(n["openBlock"])(),Object(n["createBlock"])(d,{key:e.dataCode,label:e.dataValue,value:e.dataCode},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1},8,["label"]),Object(n["createVNode"])(c,{width:"100",prop:"repairType",label:e.$t("maintenance.bxlx")},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(u,{modelValue:i.queryForm.repairType,"onUpdate:modelValue":t[4]||(t[4]=e=>i.queryForm.repairType=e),placeholder:"报修类型"},{default:Object(n["withCtx"])(()=>[(Object(n["openBlock"])(!0),Object(n["createElementBlock"])(n["Fragment"],null,Object(n["renderList"])(i.repairTypeData,e=>(Object(n["openBlock"])(),Object(n["createBlock"])(d,{key:e.dataCode,label:e.dataValue,value:e.dataCode},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1},8,["label"]),Object(n["createVNode"])(c,{width:"100"},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(m,{onClick:t[5]||(t[5]=e=>l.resetForm())},{default:Object(n["withCtx"])(()=>[Object(n["createTextVNode"])(Object(n["toDisplayString"])(e.$t("defalult.chongz")),1)]),_:1}),Object(n["createVNode"])(m,{type:"primary",size:"medium",onClick:l.search},{default:Object(n["withCtx"])(()=>[Object(n["createTextVNode"])(Object(n["toDisplayString"])(e.$t("defalult.cx")),1)]),_:1},8,["onClick"]),Object(n["createVNode"])(m,{type:"primary",onClick:t[6]||(t[6]=e=>l.handleAdd())},{default:Object(n["withCtx"])(()=>[Object(n["createTextVNode"])(Object(n["toDisplayString"])(e.$t("defalult.tj")),1)]),_:1}),Object(n["createVNode"])(m,{type:"primary",size:"medium",onClick:l.exportData},{default:Object(n["withCtx"])(()=>[Object(n["createTextVNode"])(Object(n["toDisplayString"])(e.$t("defalult.dc")),1)]),_:1},8,["onClick"])]),_:1})]),_:1})]),_:1},8,["model"]),Object(n["createVNode"])(g,{id:"table",data:i.tableData,stripe:"",border:"",style:{width:"100%"}},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(b,{fixed:"",prop:"device.name",label:e.$t("dataEnquiry.zdmc"),width:"140",align:"center"},null,8,["label"]),Object(n["createVNode"])(b,{prop:"deviceSpecifications",label:e.$t("maintenance.zdgg"),width:"140",align:"center"},null,8,["label"]),Object(n["createVNode"])(b,{prop:"repairPerson.name",label:e.$t("maintenance.bxr"),width:"110",align:"center"},null,8,["label"]),Object(n["createVNode"])(b,{prop:"createTime",label:e.$t("maintenance.bxsj"),width:"170",align:"center"},null,8,["label"]),Object(n["createVNode"])(b,{prop:"device.name",label:"站点设备",width:"140",align:"center"}),Object(n["createVNode"])(b,{prop:"deviceType",label:e.$t("maintenance.zdlx"),width:"140",align:"center"},null,8,["label"]),Object(n["createVNode"])(b,{prop:"remark",label:e.$t("maintenance.bxsmd"),width:"140",align:"center"},null,8,["label"]),Object(n["createVNode"])(b,{fixed:"right",label:e.$t("defalult.cz"),align:"center"},{default:Object(n["withCtx"])(({row:t})=>[Object(n["createVNode"])(m,{type:"text",onClick:e=>l.handleEdit(t)},{default:Object(n["withCtx"])(()=>[Object(n["createTextVNode"])(Object(n["toDisplayString"])(e.$t("defalult.bj")),1)]),_:2},1032,["onClick"]),Object(n["createVNode"])(m,{type:"text",onClick:e=>l.handleDelete(t)},{default:Object(n["withCtx"])(()=>[Object(n["createTextVNode"])(Object(n["toDisplayString"])(e.$t("defalult.sc")),1)]),_:2},1032,["onClick"])]),_:1},8,["label"])]),_:1},8,["data"]),Object(n["createVNode"])(f,{background:i.background,"current-page":i.queryForm.page,layout:i.layout,"page-size":i.queryForm.size,total:i.total,style:{"text-align":"right"},onCurrentChange:l.handleCurrentChange,onSizeChange:l.handleSizeChange},null,8,["background","current-page","layout","page-size","total","onCurrentChange","onSizeChange"]),Object(n["createVNode"])(v,{ref:"edit"},null,512)])}var i=o("c3be"),l=o("3038"),s=o("1a47"),c={components:{repairEdit:s["default"]},data(){return{tableData:[],repairItemData:[],deviceTypeData:[],repairTypeData:[],dialogImageUrl:"",dialogVisible:!1,dialogVisibleImg:!1,layout:"total, sizes, prev, pager, next, jumper",total:0,background:!0,listLoading:!1,elementLoadingText:"正在加载...",queryForm:{page:1,size:20,deviceName:"",repairPersonName:"",deviceType:"",repairItem:"",repairType:"",projectId:""}}},created(){this.queryForm.projectId=sessionStorage.getItem("projectId"),this.getDictData(),this.fetchData()},methods:{search(){this.fetchData()},async exportData(){const e=await Object(i["doExport"])(this.queryForm);l["default"].downloadFile(e,{fileName:"在线保修.xls"})},resetForm(){this.$refs.queryForm.resetFields()},async fetchData(){this.listLoading=!0;const{data:e}=await Object(i["getList"])(this.queryForm);this.tableData=e.items,this.total=e.total,setTimeout(()=>{this.listLoading=!1},500)},async getDictData(){const{data:e}=await Object(i["getDictData"])();this.repairItemData=e.repairItem,this.deviceTypeData=e.deviceType,this.repairTypeData=e.repairType},handleAdd(){this.$refs["edit"].showEdit()},handleEdit(e){this.$refs["edit"].showEdit(e)},handleRemove(e,t){console.log(e,t)},handlePictureCardPreview(e){this.dialogImageUrl=e.url,this.dialogVisible=!0},deletes(){const e=this.ids;if(0==e.length)return this.$message({type:"info",message:"没有选中任何项"}),!1;this.deleteData(e)},deleteData(e){const t=this;this.$confirm("你确定要删除当前项吗?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(()=>{const{msg:o}=Object(i["doDelete"])(e);this.$message({type:"success",message:void 0==o?"删除成功":o}),setTimeout((function(){t.fetchData()}),1e3)}).catch(()=>{this.$message({type:"info",message:"已取消删除"})})},handleDelete(e){const t=this;this.ids=[e.id],t.deletes()},handleQuery(){this.queryForm.page=1,this.fetchData()},handleSizeChange(e){this.queryForm.size=e,this.fetchData()},handleCurrentChange(e){this.queryForm.page=e,this.fetchData()}}},d=(o("0a11"),o("d959")),u=o.n(d);const m=u()(c,[["render",r]]);t["default"]=m},b199:function(e,t,o){"use strict";o.r(t),o.d(t,"getList",(function(){return r})),o.d(t,"getHandlers",(function(){return i})),o.d(t,"getDevices",(function(){return l})),o.d(t,"doDelete",(function(){return s})),o.d(t,"doAdd",(function(){return c})),o.d(t,"feedback",(function(){return d})),o.d(t,"doEdit",(function(){return u})),o.d(t,"taskExport",(function(){return m})),o.d(t,"getTaskLevel",(function(){return h})),o.d(t,"getTaskType",(function(){return p}));var n=o("b775"),a=o("f121");function r(e){var t="?page="+e.page+"&size="+e.size+"&type="+e.type+"&projectId="+e.projectId;return 3!=e.status&&(t+="&status="+e.status),Object(n["default"])({url:"/task/list"+t,method:"get",data:e})}function i(e){return Object(n["default"])({url:"/task/handlers?deviceCode="+e.deviceCode,method:"get",data:e})}function l(e){return Object(n["default"])({url:"/task/devices?projectId="+e.projectId,method:"get",data:e})}function s(e){return Object(n["default"])({url:"/task/remove",method:"post",data:e})}function c(e){return Object(n["default"])({url:"/task/add",method:"post",data:e})}function d(e){return Object(n["default"])({url:"/task/feedback",method:"post",data:e})}function u(e){return Object(n["default"])({url:"/task/update",method:"post",data:e})}function m(e){var t="?projectId="+e.projectId;return""!=e.projectId&&(t+="&projectId="+e.projectId),a["baseURL"]+"/taskReport/export"+t}function h(e){return Object(n["default"])({url:"/task/taskLevel",method:"get",data:e})}function p(e){return Object(n["default"])({url:"/task/taskType",method:"get",data:e})}},b1b6:function(e,t,o){},b1bd:function(e,t,o){"use strict";o("8b4d")},b1f6:function(e,t,o){},b496:function(e,t,o){"use strict";o.r(t);var n=o("f2bf");const a={class:"manage-container"};function r(e,t,o,r,i,l){const s=Object(n["resolveComponent"])("el-date-picker"),c=Object(n["resolveComponent"])("el-form-item"),d=Object(n["resolveComponent"])("el-input"),u=Object(n["resolveComponent"])("el-button"),m=Object(n["resolveComponent"])("vab-query-form"),h=Object(n["resolveComponent"])("el-form"),p=Object(n["resolveComponent"])("el-row"),b=Object(n["resolveComponent"])("el-table-column"),g=Object(n["resolveComponent"])("el-table"),f=Object(n["resolveComponent"])("el-pagination"),v=Object(n["resolveComponent"])("vab-query-form-right-panel"),w=Object(n["resolveDirective"])("loading");return Object(n["openBlock"])(),Object(n["createElementBlock"])("div",a,[Object(n["createVNode"])(p,null,{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(h,{ref:"form",model:e.form,"label-width":"80px"},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(m,null,{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(c,{label:e.$t("defalult.sj")},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(s,{modelValue:e.value1,"onUpdate:modelValue":t[0]||(t[0]=t=>e.value1=t),type:"daterange","range-separator":"至","start-placeholder":"开始日期","end-placeholder":"结束日期"},null,8,["modelValue"])]),_:1},8,["label"]),Object(n["createVNode"])(c,{label:"工单编号"},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(d,{modelValue:i.queryForm.name,"onUpdate:modelValue":t[1]||(t[1]=e=>i.queryForm.name=e),placeholder:"请输入工单编号"},null,8,["modelValue"])]),_:1}),Object(n["createVNode"])(c,{label:"关键字"},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(d,{modelValue:i.queryForm.name,"onUpdate:modelValue":t[2]||(t[2]=e=>i.queryForm.name=e),placeholder:"请输入关键字"},null,8,["modelValue"])]),_:1}),Object(n["createVNode"])(u,{type:"primary",onClick:e.search},{default:Object(n["withCtx"])(()=>[Object(n["createTextVNode"])(Object(n["toDisplayString"])(e.$t("defalult.cx")),1)]),_:1},8,["onClick"]),Object(n["createVNode"])(u,{type:"primary",onClick:e.search},{default:Object(n["withCtx"])(()=>[Object(n["createTextVNode"])(Object(n["toDisplayString"])(e.$t("defalult.dc")),1)]),_:1},8,["onClick"])]),_:1})]),_:1},8,["model"])]),_:1}),Object(n["withDirectives"])((Object(n["openBlock"])(),Object(n["createBlock"])(g,{data:i.data,border:"",stripe:"",style:{width:"100%"}},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(b,{prop:"id",label:e.$t("trigger.xh"),width:"60",align:"center"},null,8,["label"]),Object(n["createVNode"])(b,{prop:"jiedao",label:"工单编号",width:"120",align:"center"}),Object(n["createVNode"])(b,{prop:"shequ",label:"工单类型",width:"200",align:"center"}),Object(n["createVNode"])(b,{prop:"mingcheng",label:e.$t("maintenance.zdlx"),width:"200",align:"center"},null,8,["label"]),Object(n["createVNode"])(b,{prop:"guimo",label:"业务类型",width:"200",align:"center"}),Object(n["createVNode"])(b,{prop:"kaishi1",label:"站点",width:"200",align:"center"}),Object(n["createVNode"])(b,{prop:"jieshu1",label:"街道类型",width:"200",align:"center"}),Object(n["createVNode"])(b,{prop:"dangqian",label:"位置",width:"200",align:"center"}),Object(n["createVNode"])(b,{prop:"kaishi2",label:"工单描述",width:"200",align:"center"}),Object(n["createVNode"])(b,{prop:"jieshu2",label:e.$t("grouping.cjsj"),width:"200",align:"center"},null,8,["label"]),Object(n["createVNode"])(b,{fixed:"right",label:e.$t("defalult.cz"),align:"center"},{default:Object(n["withCtx"])(({row:t})=>[Object(n["createVNode"])(u,{type:"text",onClick:e=>l.handleDelete(t)},{default:Object(n["withCtx"])(()=>[Object(n["createTextVNode"])(Object(n["toDisplayString"])(e.$t("defalult.sc")),1)]),_:2},1032,["onClick"])]),_:1},8,["label"])]),_:1},8,["data"])),[[w,i.listLoading]]),Object(n["createVNode"])(m,null,{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(v,null,{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(f,{background:i.background,"current-page":i.queryForm.page,layout:i.layout,"page-size":i.queryForm.size,total:i.total,onCurrentChange:l.handleCurrentChange,onSizeChange:l.handleSizeChange},null,8,["background","current-page","layout","page-size","total","onCurrentChange","onSizeChange"])]),_:1})]),_:1})])}var i={name:"Index",components:{},data(){return{data:[{id:1,jiedao:"123456",shequ:"工单类型",mingcheng:"站点类型",guimo:"业务类型",kaishi1:"站点",jieshu1:"街道类型",dangqian:"位置",kaishi2:"工单描述",jieshu2:"2022-10-1"},{id:2,jiedao:"123456",shequ:"工单类型",mingcheng:"站点类型",guimo:"业务类型",kaishi1:"站点",jieshu1:"街道类型",dangqian:"位置",kaishi2:"工单描述",jieshu2:"2022-10-1"},{id:3,jiedao:"123456",shequ:"工单类型",mingcheng:"站点类型",guimo:"业务类型",kaishi1:"站点",jieshu1:"街道类型",dangqian:"位置",kaishi2:"工单描述",jieshu2:"2022-10-1"}],lazy:!0,activeName:"first",layout:"total, sizes, prev, pager, next, jumper",total:0,input:"",textarea:"",list:[],background:!0,listLoading:!0,elementLoadingText:"正在加载...",queryForm:{page:1,size:20,name:""}}},computed:{height(){return 500}},created(){this.fetchData()},methods:{async fetchData(){this.listLoading=!0,setTimeout(()=>{this.listLoading=!1},500)},handleAdd(){this.$refs["edit"].showEdit()},handleEdit(e){this.$refs["edit"].showEdit(e)},handleQuery(){this.queryForm.page=1,this.fetchData()},handleSizeChange(e){this.queryForm.size=e,this.fetchData()},handleCurrentChange(e){this.queryForm.page=e,this.fetchData()},handleDelete(e){e.id&&this.$confirm("你确定要删除当前项吗?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(()=>{this.$message({type:"success",message:"删除成功"})}).catch(()=>{this.$message({type:"info",message:"已取消删除"})})}}},l=(o("a786"),o("d959")),s=o.n(l);const c=s()(i,[["render",r],["__scopeId","data-v-e0cd1942"]]);t["default"]=c},b4c7:function(e,t,o){},b4ea:function(e,t,o){"use strict";o.r(t),o.d(t,"getList",(function(){return a}));var n=o("b775");function a(e){return Object(n["default"])({url:"/addressBook/book?projectId="+e.projectId,method:"get",data:e})}},b539:function(e,t,o){"use strict";o("5100")},b547:function(e,t,o){"use strict";o.r(t);var n=o("f2bf");const a={class:"sys-container"};function r(e,t,o,r,i,l){const s=Object(n["resolveComponent"])("el-input"),c=Object(n["resolveComponent"])("el-form-item"),d=Object(n["resolveComponent"])("el-form"),u=Object(n["resolveComponent"])("el-button");return Object(n["openBlock"])(),Object(n["createElementBlock"])("div",a,[Object(n["createVNode"])(d,{ref:"form",rules:i.rules,model:i.form,"label-width":"120px"},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(c,{label:"输入原密码",prop:"oldPwd"},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(s,{modelValue:i.form.oldPwd,"onUpdate:modelValue":t[0]||(t[0]=e=>i.form.oldPwd=e),size:"small",autocomplete:"off"},null,8,["modelValue"])]),_:1}),Object(n["createVNode"])(c,{label:"输入新密码",prop:"newPwd"},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(s,{modelValue:i.form.newPwd,"onUpdate:modelValue":t[1]||(t[1]=e=>i.form.newPwd=e),size:"small",autocomplete:"off"},null,8,["modelValue"])]),_:1}),Object(n["createVNode"])(c,{label:"确认新密码",prop:"confirmNewPwd"},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(s,{modelValue:i.form.confirmNewPwd,"onUpdate:modelValue":t[2]||(t[2]=e=>i.form.confirmNewPwd=e),size:"small",autocomplete:"off"},null,8,["modelValue"])]),_:1})]),_:1},8,["rules","model"]),Object(n["createVNode"])(u,{type:"primary",size:"small",onClick:l.save},{default:Object(n["withCtx"])(()=>t[3]||(t[3]=[Object(n["createTextVNode"])("保存")])),_:1},8,["onClick"])])}o("d9e2");var i=o("c24f"),l={data(){var e=(e,t,o)=>{console.log(t),""===t?o(new Error("请再次输入密码")):t!==this.form.newPwd?o(new Error("两次输入密码不一致!")):o()};return{form:{oldPwd:"",newPwd:"",confirmNewPwd:""},rules:{oldPwd:[{required:!0,trigger:"blur",message:"原密码不能为空"}],newPwd:[{required:!0,trigger:"blur",message:"新密码不能为空"}],confirmNewPwd:[{validator:e,trigger:"blur"}]}}},methods:{showData(){},save(){this.$refs["form"].validate(async e=>{if(!e)return!1;{const{msg:e}=await Object(i["userUpdatePwd"])(this.form);this.$notify({title:e,type:"success"}),this.$refs["form"].resetFields()}})}}},s=o("d959"),c=o.n(s);const d=c()(l,[["render",r]]);t["default"]=d},b551:function(e,t,o){},b584:function(e,t,o){},b681:function(e,t,o){"use strict";o.r(t),o.d(t,"getList",(function(){return a})),o.d(t,"getSensorsData",(function(){return r})),o.d(t,"doEdit",(function(){return i})),o.d(t,"doDelete",(function(){return l})),o.d(t,"doAdd",(function(){return s})),o.d(t,"triggerRuleUse",(function(){return c}));var n=o("b775");function a(e){var t="?page="+e.page+"&size="+e.size+"&projectId="+e.projectId;return""!=e.sensorName&&(t+="&sensorName="+e.sensorName),Object(n["default"])({url:"/triggerRule/list"+t,method:"get",data:e})}function r(e){return Object(n["default"])({url:"/triggerRule/sensors?projectId="+e.projectId,method:"get",data:e})}function i(e){return Object(n["default"])({url:"/triggerRule/update",method:"post",data:e})}function l(e){return Object(n["default"])({url:"/triggerRule/remove",method:"post",data:e})}function s(e){return Object(n["default"])({url:"/triggerRule/add",method:"post",data:e})}function c(e){return Object(n["default"])({url:"/triggerRule/use",method:"post",data:e})}},b6bc:function(e,t,o){},b709:function(e,t,o){},b7bf:function(e,t,o){},b819:function(e,t,o){"use strict";o.r(t);var n=o("f2bf");const a={class:"dialog-footer"};function r(e,t,o,r,i,l){const s=Object(n["resolveComponent"])("el-input"),c=Object(n["resolveComponent"])("el-form-item"),d=Object(n["resolveComponent"])("el-form"),u=Object(n["resolveComponent"])("el-button"),m=Object(n["resolveComponent"])("el-dialog");return Object(n["openBlock"])(),Object(n["createBlock"])(m,{modelValue:i.dialogFormVisible,"onUpdate:modelValue":t[2]||(t[2]=e=>i.dialogFormVisible=e),title:i.title,width:"500px",onClose:l.close},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(d,{ref:"form",model:i.form,rules:i.rules,"label-width":"80px"},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(c,{label:"字典名称",prop:"dictName"},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(s,{modelValue:i.form.dictName,"onUpdate:modelValue":t[0]||(t[0]=e=>i.form.dictName=e),modelModifiers:{trim:!0},size:"small",autocomplete:"off"},null,8,["modelValue"])]),_:1}),Object(n["createVNode"])(c,{label:"字典类型",prop:"dictType"},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(s,{modelValue:i.form.dictType,"onUpdate:modelValue":t[1]||(t[1]=e=>i.form.dictType=e),modelModifiers:{trim:!0},size:"small",autocomplete:"off"},null,8,["modelValue"])]),_:1})]),_:1},8,["model","rules"]),Object(n["createElementVNode"])("div",a,[Object(n["createVNode"])(u,{type:"primary",size:"small",onClick:l.save},{default:Object(n["withCtx"])(()=>t[3]||(t[3]=[Object(n["createTextVNode"])("确 定")])),_:1},8,["onClick"]),Object(n["createVNode"])(u,{size:"small",onClick:l.close},{default:Object(n["withCtx"])(()=>t[4]||(t[4]=[Object(n["createTextVNode"])("取 消")])),_:1},8,["onClick"])])]),_:1},8,["modelValue","title","onClose"])}var i=o("0ddc"),l={name:"ManageEdit",data(){return{form:{id:"",dictName:"",dictType:""},rules:{dictName:[{required:!0,trigger:"blur",message:"请输入字典名称"}],dictType:[{required:!0,trigger:"blur",message:"请输入字典类型"}]},roleData:[],clearable:!0,dictId:"",parentData:[],title:"",dialogFormVisible:!1,diffData:{},ruleForm:[]}},created(){},methods:{dictEdit(e){e?(this.title="编辑字典",this.dictId=e.id,this.form=Object.assign({},e),this.ruleForm=Object.assign({},e)):this.title="添加字典",this.dialogFormVisible=!0},close(){this.$refs["form"].resetFields(),this.form=this.$options.data().form,this.dialogFormVisible=!1,this.$emit("fetch-data")},getDiffData(){this.diffData={},Object.keys(this.form).forEach(e=>{this.form[e]!=this.ruleForm[e]&&(this.diffData[e]=this.form[e])})},save(){this.$refs["form"].validate(async e=>{if(!e)return!1;if(this.form.name=this.form.title,this.form.id){if(this.getDiffData(),0!=Object.keys(this.diffData).length){this.diffData.id=this.form.id;const{msg:e}=await Object(i["doEdit"])(this.diffData);this.$notify({title:e,type:"success"})}}else{delete this.form.id;const{msg:e}=await Object(i["doAdd"])(this.form);this.$notify({title:e,type:"success"})}this.$refs["form"].resetFields(),this.dialogFormVisible=!1,this.$parent.fetchData()})}}},s=(o("7617"),o("d959")),c=o.n(s);const d=c()(l,[["render",r]]);t["default"]=d},b822:function(e,t,o){e.exports={"menu-color":"hsla(0,0%,27%,.95)","menu-color-active":"hsla(208,100%,55%,.95)","menu-background":"#fff","gallery-second-menu-background":"#fff"}},b843:function(e,t,o){"use strict";o("43d5")},b84b:function(e,t,o){},b862:function(e,t,o){"use strict";o.r(t);var n=o("f2bf");const a={class:"dialog-footer"};function r(e,t,o,r,i,l){const s=Object(n["resolveComponent"])("el-input"),c=Object(n["resolveComponent"])("el-form-item"),d=Object(n["resolveComponent"])("el-option"),u=Object(n["resolveComponent"])("el-select"),m=Object(n["resolveComponent"])("ckeditor"),h=Object(n["resolveComponent"])("el-form"),p=Object(n["resolveComponent"])("el-button"),b=Object(n["resolveComponent"])("el-dialog");return Object(n["openBlock"])(),Object(n["createBlock"])(b,{modelValue:i.dialogFormVisible,"onUpdate:modelValue":t[4]||(t[4]=e=>i.dialogFormVisible=e),title:i.title,width:"800px",onClose:l.close},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(h,{ref:"form",model:i.form,rules:i.rules,"label-width":"80px","label-position":"left"},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(c,{label:"标题",prop:"title"},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(s,{modelValue:i.form.title,"onUpdate:modelValue":t[0]||(t[0]=e=>i.form.title=e),modelModifiers:{trim:!0},size:"small",autocomplete:"off"},null,8,["modelValue"])]),_:1}),Object(n["createVNode"])(c,{label:"分类",prop:"category"},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(u,{modelValue:i.form.category,"onUpdate:modelValue":t[1]||(t[1]=e=>i.form.category=e),size:"small",filterable:"",placeholder:"请选择分类"},{default:Object(n["withCtx"])(()=>[(Object(n["openBlock"])(!0),Object(n["createElementBlock"])(n["Fragment"],null,Object(n["renderList"])(i.dictData,e=>(Object(n["openBlock"])(),Object(n["createBlock"])(d,{key:e.dataCode,label:e.dataValue,value:e.dataCode},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),Object(n["createVNode"])(c,{label:"简介",prop:"introduction"},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(m,{modelValue:i.form.introduction,"onUpdate:modelValue":t[2]||(t[2]=e=>i.form.introduction=e),size:"small",editor:i.editor,config:i.editorConfig},null,8,["modelValue","editor","config"])]),_:1}),Object(n["createVNode"])(c,{label:"详情",prop:"detail"},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(m,{modelValue:i.form.detail,"onUpdate:modelValue":t[3]||(t[3]=e=>i.form.detail=e),size:"small",editor:i.editor,config:i.editorConfig},null,8,["modelValue","editor","config"])]),_:1})]),_:1},8,["model","rules"]),Object(n["createElementVNode"])("div",a,[Object(n["createVNode"])(p,{type:"primary",size:"small",onClick:l.save},{default:Object(n["withCtx"])(()=>t[5]||(t[5]=[Object(n["createTextVNode"])("确 定")])),_:1},8,["onClick"]),Object(n["createVNode"])(p,{size:"small",onClick:l.close},{default:Object(n["withCtx"])(()=>t[6]||(t[6]=[Object(n["createTextVNode"])("取 消")])),_:1},8,["onClick"])])]),_:1},8,["modelValue","title","onClose"])}var i=o("db6a"),l=o("c471"),s=o.n(l),c=(o("cd6d"),o("5847")),d={data(){return{form:{id:"",title:"",introduction:"",detail:"",category:""},rules:{title:[{required:!0,trigger:"blur",message:"请输入标题"}],category:[{required:!0,trigger:"change",message:"请选择分类"}],introduction:[{required:!0,trigger:"blur",message:"请输入简介"}],detail:[{required:!0,trigger:"blur",message:"请输入详情"}]},dictData:[],roleData:[],clearable:!0,roleId:"",parentData:[],title:"",dialogFormVisible:!1,editor:s.a,editorConfig:c["knowledgeEditorConfig"]}},created(){},methods:{showEdit(e){if(e){this.title="编辑知识库";const t=Object.assign({},e);this.form.category=t.category.dataCode,this.form.id=t.id,this.form.title=t.title,this.form.introduction=t.introduction,this.form.detail=t.detail}else this.title="添加知识库";this.dialogFormVisible=!0,this.getCategoryDict()},async getCategoryDict(){const{data:e}=await Object(i["getCategoryDict"])();this.dictData=e},close(){this.$refs["form"].resetFields(),this.form=this.$options.data().form,this.dialogFormVisible=!1,this.$emit("fetch-data")},save(){this.$refs["form"].validate(async e=>{if(!e)return!1;if(this.form.id){const{msg:e}=await Object(i["doEdit"])(this.form);this.$notify({title:e,type:"success"})}else{delete this.form.id;const{msg:e}=await Object(i["doAdd"])(this.form);this.$notify({title:e,type:"success"})}this.$refs["form"].resetFields(),this.$parent.fetchData(),this.dialogFormVisible=!1})}}},u=o("d959"),m=o.n(u);const h=m()(d,[["render",r]]);t["default"]=h},b87c:function(e,t,o){},b8ad:function(e,t,o){},b91c:function(e,t,o){},b98f:function(e,t,o){},b99f:function(e,t,o){"use strict";o.r(t);var n=o("f2bf");const a={key:0},r={key:1,style:{"text-align":"center"}},i=["src"],l={key:2,style:{"text-align":"center"}},s=["src"],c={key:3,style:{"text-align":"center"}},d=["src"],u={key:4,style:{"text-align":"center"}};function m(e,t,o,m,h,p){const b=Object(n["resolveComponent"])("el-link"),g=Object(n["resolveComponent"])("el-dialog");return Object(n["openBlock"])(),Object(n["createBlock"])(g,{modelValue:h.dialogFormVisible,"onUpdate:modelValue":t[0]||(t[0]=e=>h.dialogFormVisible=e),title:e.title,width:"500px",onClose:e.close},{default:Object(n["withCtx"])(()=>[h.isText?(Object(n["openBlock"])(),Object(n["createElementBlock"])("div",a,[Object(n["createElementVNode"])("span",null,Object(n["toDisplayString"])(h.data.textContent),1)])):h.isImage?(Object(n["openBlock"])(),Object(n["createElementBlock"])("div",r,[Object(n["createElementVNode"])("img",{src:h.data.url,alt:"",style:{width:"90%"}},null,8,i)])):h.isVideo?(Object(n["openBlock"])(),Object(n["createElementBlock"])("div",l,[Object(n["createElementVNode"])("img",{src:h.data.cover_url,style:{width:"90%"}},null,8,s)])):h.isVoice?(Object(n["openBlock"])(),Object(n["createElementBlock"])("div",c,[Object(n["createElementVNode"])("audio",{src:h.data.voice},null,8,d)])):h.isNews?(Object(n["openBlock"])(),Object(n["createElementBlock"])("div",u,[(Object(n["openBlock"])(!0),Object(n["createElementBlock"])(n["Fragment"],null,Object(n["renderList"])(h.data.content.news_item,(e,o)=>(Object(n["openBlock"])(),Object(n["createElementBlock"])("div",{key:o},[Object(n["createElementVNode"])("p",null,"标题:"+Object(n["toDisplayString"])(e.title),1),Object(n["createVNode"])(b,{target:"_blank",href:e.url,type:"primary"},{default:Object(n["withCtx"])(()=>t[1]||(t[1]=[Object(n["createTextVNode"])(" 点击查看 ")])),_:2},1032,["href"])]))),128))])):Object(n["createCommentVNode"])("",!0)]),_:1},8,["modelValue","title","onClose"])}var h={data(){return{isText:!1,isImage:!1,isVoice:!1,isVideo:!1,isNews:!1,dialogFormVisible:!1,data:[]}},methods:{showMaterialData(e,t){this.dialogFormVisible=!0,this.title="素材详情",this.data=e,"image"==t?this.isImage=!0:"voice"==t?this.isVoice=!0:"video"==t?this.isVideo=!0:"news"==t&&(this.isNews=!0)}}},p=o("d959"),b=o.n(p);const g=b()(h,[["render",m]]);t["default"]=g},bad0:function(e,t,o){e.exports={"menu-color":"hsla(0,0%,27%,.95)","menu-color-active":"hsla(208,100%,55%,.95)","menu-background":"#fff","gallery-second-menu-background":"#fff"}},badf:function(e,t,o){e.exports={"menu-color":"hsla(0,0%,27%,.95)","menu-color-active":"hsla(208,100%,55%,.95)","menu-background":"#fff","gallery-second-menu-background":"#fff"}},bb39:function(e,t,o){"use strict";o("bb77")},bb77:function(e,t,o){},bb91:function(e,t,o){e.exports={"menu-color":"hsla(0,0%,27%,.95)","menu-color-active":"hsla(208,100%,55%,.95)","menu-background":"#fff","gallery-second-menu-background":"#fff"}},bbf5:function(e,t,o){"use strict";o("59bb")},bc0e:function(e,t,o){e.exports={"menu-color":"hsla(0,0%,27%,.95)","menu-color-active":"hsla(208,100%,55%,.95)","menu-background":"#fff","gallery-second-menu-background":"#fff"}},bccb:function(e,t,o){"use strict";o.r(t);var n=o("f2bf");const a={class:"manage-container"},r={class:"manage-input"},i={class:"manage-button"};function l(e,t,o,l,s,c){const d=Object(n["resolveComponent"])("el-input"),u=Object(n["resolveComponent"])("el-form-item"),m=Object(n["resolveComponent"])("el-option"),h=Object(n["resolveComponent"])("el-select"),p=Object(n["resolveComponent"])("vab-query-form"),b=Object(n["resolveComponent"])("el-form"),g=Object(n["resolveComponent"])("el-button"),f=Object(n["resolveComponent"])("el-table-column"),v=Object(n["resolveComponent"])("el-image"),w=Object(n["resolveComponent"])("el-table"),k=Object(n["resolveComponent"])("el-pagination"),C=Object(n["resolveComponent"])("alarm-add"),y=Object(n["resolveComponent"])("feedback");return Object(n["openBlock"])(),Object(n["createElementBlock"])(n["Fragment"],null,[Object(n["createElementVNode"])("div",a,[Object(n["createElementVNode"])("div",r,[Object(n["createVNode"])(b,{ref:"queryForm",model:s.queryForm,"label-width":"80px"},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(p,null,{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(u,{width:"100",prop:"deviceName",label:e.$t("dataEnquiry.zdmc")},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(d,{modelValue:s.queryForm.deviceName,"onUpdate:modelValue":t[0]||(t[0]=e=>s.queryForm.deviceName=e),size:"small",placeholder:e.$t("dataEnquiry.qsrzdmc")},null,8,["modelValue","placeholder"])]),_:1},8,["label"]),Object(n["createVNode"])(u,{width:"100",prop:"month",label:e.$t("defalult.sj")},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(h,{modelValue:s.queryForm.status,"onUpdate:modelValue":t[1]||(t[1]=e=>s.queryForm.status=e),size:"small",placeholder:e.$t("task.qxzrwzt")},{default:Object(n["withCtx"])(()=>[(Object(n["openBlock"])(!0),Object(n["createElementBlock"])(n["Fragment"],null,Object(n["renderList"])(s.statusData,e=>(Object(n["openBlock"])(),Object(n["createBlock"])(m,{key:e.value,label:e.label,value:e.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue","placeholder"])]),_:1},8,["label"])]),_:1})]),_:1},8,["model"])]),Object(n["createElementVNode"])("div",i,[Object(n["createVNode"])(g,{size:"small",onClick:t[2]||(t[2]=e=>c.resetForm())},{default:Object(n["withCtx"])(()=>[Object(n["createTextVNode"])(Object(n["toDisplayString"])(e.$t("defalult.chongz")),1)]),_:1}),Object(n["createVNode"])(g,{type:"primary",size:"small",onClick:c.search},{default:Object(n["withCtx"])(()=>[Object(n["createTextVNode"])(Object(n["toDisplayString"])(e.$t("defalult.cx")),1)]),_:1},8,["onClick"]),Object(n["createVNode"])(g,{type:"primary",size:"small",onClick:c.exportData},{default:Object(n["withCtx"])(()=>[Object(n["createTextVNode"])(Object(n["toDisplayString"])(e.$t("defalult.dc")),1)]),_:1},8,["onClick"]),Object(n["createVNode"])(g,{type:"primary",size:"small",onClick:c.deletes},{default:Object(n["withCtx"])(()=>[Object(n["createTextVNode"])(Object(n["toDisplayString"])(e.$t("defalult.plsc")),1)]),_:1},8,["onClick"])])]),Object(n["createVNode"])(w,{data:s.tableData,stripe:"",border:"",style:{width:"100%"},onSelectionChange:c.handleSelectionChange},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(f,{fixed:"",type:"selection",width:"40",align:"center"}),Object(n["createVNode"])(f,{fixed:"",prop:"device.name",label:e.$t("dataEnquiry.zdmc"),width:"120",align:"center"},null,8,["label"]),Object(n["createVNode"])(f,{prop:"type",label:e.$t("task.rwlx"),width:"120",align:"center"},null,8,["label"]),Object(n["createVNode"])(f,{prop:"taskContent",label:e.$t("task.rwnr"),width:"250",align:"center"},null,8,["label"]),Object(n["createVNode"])(f,{prop:"handler.name",label:e.$t("task.clr"),width:"100",align:"center"},null,8,["label"]),Object(n["createVNode"])(f,{prop:"handler.contact",label:e.$t("task.clrlxfs"),width:"140",align:"center"},null,8,["label"]),Object(n["createVNode"])(f,{prop:"completeTime",label:e.$t("task.wcsj"),width:"180",align:"center"},null,8,["label"]),Object(n["createVNode"])(f,{prop:"status",label:e.$t("dataEnquiry.zt"),width:"100",align:"center"},null,8,["label"]),Object(n["createVNode"])(f,{prop:"feedbackText",label:e.$t("task.fknr"),width:"250",align:"center"},null,8,["label"]),Object(n["createVNode"])(f,{prop:"feedbackImg",label:e.$t("task.fltp"),width:"140",align:"center"},{default:Object(n["withCtx"])(({row:e})=>[(Object(n["openBlock"])(!0),Object(n["createElementBlock"])(n["Fragment"],null,Object(n["renderList"])(e.fileList,(t,o)=>(Object(n["openBlock"])(),Object(n["createElementBlock"])("div",{key:o},[Object(n["createVNode"])(v,{style:{width:"100px",height:"100px"},src:e.url,"preview-src-list":t},null,8,["src","preview-src-list"])]))),128))]),_:1},8,["label"]),Object(n["createVNode"])(f,{fixed:"right",label:e.$t("defalult.cz"),align:"center",width:"180"},{default:Object(n["withCtx"])(({row:t})=>[Object(n["createVNode"])(g,{type:"text",plain:"",onClick:e=>c.feedbackShow(t)},{default:Object(n["withCtx"])(()=>[Object(n["createTextVNode"])(Object(n["toDisplayString"])(e.$t("task.fk")),1)]),_:2},1032,["onClick"]),Object(n["createVNode"])(g,{type:"text",plain:"",onClick:e=>c.handleEdit(t)},{default:Object(n["withCtx"])(()=>[Object(n["createTextVNode"])(Object(n["toDisplayString"])(e.$t("defalult.bj")),1)]),_:2},1032,["onClick"]),Object(n["createVNode"])(g,{type:"text",onClick:e=>c.handleDelete(t)},{default:Object(n["withCtx"])(()=>[Object(n["createTextVNode"])(Object(n["toDisplayString"])(e.$t("defalult.sc")),1)]),_:2},1032,["onClick"])]),_:1},8,["label"])]),_:1},8,["data","onSelectionChange"]),Object(n["createVNode"])(k,{background:s.background,"current-page":s.queryForm.page,layout:s.layout,"page-size":s.queryForm.size,total:s.total,style:{"text-align":"right"},onCurrentChange:c.handleCurrentChange,onSizeChange:c.handleSizeChange},null,8,["background","current-page","layout","page-size","total","onCurrentChange","onSizeChange"]),Object(n["createVNode"])(C,{ref:"add"},null,512),Object(n["createVNode"])(y,{ref:"feedback"},null,512)],64)}o("14d9");var s=o("b199"),c=o("3038"),d=o("eb9b"),u=o("6325"),m=o("11f4"),h={components:{alarmAdd:d["default"],feedback:u["default"]},data(){return{tableData:[],lazy:!0,layout:"total, sizes, prev, pager, next, jumper",total:0,background:!0,listLoading:!1,elementLoadingText:"正在加载...",queryForm:{page:1,size:20,status:3,projectId:"",type:0},statusData:[{label:"all",value:3},{label:"未处理",value:0},{label:"已处理",value:1}],ids:[]}},created(){this.queryForm.projectId=sessionStorage.getItem("projectId"),this.fetchData()},methods:{alarmIndex(){this.fetchData()},async fetchData(){const{data:e}=await Object(s["getList"])(this.queryForm);this.tableData=Object(m["imgReplacePath"])(e.items,"feedbackImg"),this.total=e.total},resetForm(){this.$refs.queryForm.resetFields()},handleAdd(){this.$refs["add"].showEdit()},handleEdit(e){this.$refs["add"].showEdit(e)},feedbackShow(e){this.$refs["feedback"].feedbackIndex(e)},search(){this.fetchData()},async exportData(){const e=await Object(s["taskExport"])(this.queryForm);c["default"].downloadFile(e,{fileName:"任务.xls"})},handleSelectionChange(e){const t=[];e.forEach(e=>{t.push(e.id)}),this.ids=t},deletes(){const e=this.ids;if(0==e.length)return this.$message({type:"info",message:"没有选中任何项"}),!1;this.deleteData(e)},deleteData(e){const t=this;this.$confirm("你确定要删除当前项吗?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(()=>{const{msg:o}=Object(s["doDelete"])(e);this.$message({type:"success",message:void 0==o?"删除成功":o}),setTimeout((function(){t.fetchData()}),1e3)}).catch(()=>{this.$message({type:"info",message:"已取消删除"})})},handleDelete(e){const t=this;t.deleteData([e.id])},handleQuery(){this.queryForm.page=1,this.fetchData()},handleSizeChange(e){this.queryForm.size=e,this.fetchData()},handleCurrentChange(e){this.queryForm.page=e,this.fetchData()}}},p=(o("56c3"),o("d959")),b=o.n(p);const g=b()(h,[["render",l],["__scopeId","data-v-5450afaa"]]);t["default"]=g},bd58:function(e,t,o){"use strict";o.r(t);var n=o("f2bf");const a={class:"manage-container"},r={class:"manage-wrap"},i={class:"manage-input"},l={class:"manage-button"};function s(e,t,o,s,c,d){const u=Object(n["resolveComponent"])("el-input"),m=Object(n["resolveComponent"])("el-form-item"),h=Object(n["resolveComponent"])("el-option"),p=Object(n["resolveComponent"])("el-select"),b=Object(n["resolveComponent"])("vab-query-form"),g=Object(n["resolveComponent"])("el-form"),f=Object(n["resolveComponent"])("el-button"),v=Object(n["resolveComponent"])("el-table-column"),w=Object(n["resolveComponent"])("el-tag"),k=Object(n["resolveComponent"])("el-table"),C=Object(n["resolveComponent"])("el-pagination"),y=Object(n["resolveComponent"])("bind-device");return Object(n["openBlock"])(),Object(n["createElementBlock"])("div",a,[Object(n["createElementVNode"])("div",r,[Object(n["createElementVNode"])("div",i,[Object(n["createVNode"])(g,{ref:"queryForm",model:c.queryForm,"label-width":"80px"},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(b,null,{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(m,{width:"100",prop:"sonserName",label:e.$t("maintenance.sbmc")},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(u,{modelValue:c.queryForm.sonserName,"onUpdate:modelValue":t[0]||(t[0]=e=>c.queryForm.sonserName=e),size:"small",placeholder:"请输入设备名称"},null,8,["modelValue"])]),_:1},8,["label"]),Object(n["createVNode"])(m,{width:"100",prop:"deviceSerial",label:e.$t("dataEnquiry.xlh")},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(u,{modelValue:c.queryForm.deviceSerial,"onUpdate:modelValue":t[1]||(t[1]=e=>c.queryForm.deviceSerial=e),size:"small",placeholder:e.$t("dataEnquiry.qsrxlh")},null,8,["modelValue","placeholder"])]),_:1},8,["label"]),Object(n["createVNode"])(m,{width:"100",prop:"status",label:e.$t("dataEnquiry.zt")},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(p,{modelValue:c.queryForm.status,"onUpdate:modelValue":t[2]||(t[2]=e=>c.queryForm.status=e),size:"small",placeholder:"请选择状态"},{default:Object(n["withCtx"])(()=>[(Object(n["openBlock"])(!0),Object(n["createElementBlock"])(n["Fragment"],null,Object(n["renderList"])(c.statusData,e=>(Object(n["openBlock"])(),Object(n["createBlock"])(h,{key:e.value,label:e.label,value:e.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1},8,["label"])]),_:1})]),_:1},8,["model"])]),Object(n["createElementVNode"])("div",l,[Object(n["createVNode"])(f,{size:"small",onClick:t[3]||(t[3]=e=>d.resetForm())},{default:Object(n["withCtx"])(()=>[Object(n["createTextVNode"])(Object(n["toDisplayString"])(e.$t("defalult.chongz")),1)]),_:1}),Object(n["createVNode"])(f,{type:"primary",size:"small",onClick:d.search},{default:Object(n["withCtx"])(()=>[Object(n["createTextVNode"])(Object(n["toDisplayString"])(e.$t("defalult.cx")),1)]),_:1},8,["onClick"])])]),Object(n["createVNode"])(k,{data:c.data,border:"",stripe:"",style:{width:"100%"}},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(v,{prop:"id",label:"设备id",width:"400",align:"center"}),Object(n["createVNode"])(v,{prop:"account",label:"账户名",width:"150",align:"center"}),Object(n["createVNode"])(v,{prop:"deviceSerial",label:"设备序列号",width:"150",align:"center"}),Object(n["createVNode"])(v,{prop:"deviceName",label:"设备名字",width:"200",align:"center"}),Object(n["createVNode"])(v,{prop:"iotDevice.name",label:"所属站点",width:"150",align:"center"}),Object(n["createVNode"])(v,{prop:"status",label:"设备状态",width:"100",align:"center"},{default:Object(n["withCtx"])(({row:e})=>[1==e.status?(Object(n["openBlock"])(),Object(n["createBlock"])(w,{key:"在线",effect:"dark",type:"success",size:"mini"},{default:Object(n["withCtx"])(()=>t[4]||(t[4]=[Object(n["createTextVNode"])(" 已连接 ")])),_:1})):Object(n["createCommentVNode"])("",!0),0==e.status?(Object(n["openBlock"])(),Object(n["createBlock"])(w,{key:"离线",effect:"dark",type:"danger",size:"mini"},{default:Object(n["withCtx"])(()=>t[5]||(t[5]=[Object(n["createTextVNode"])(" 未连接 ")])),_:1})):Object(n["createCommentVNode"])("",!0)]),_:1}),Object(n["createVNode"])(v,{prop:"addTime",label:"添加时间",width:"180",align:"center"}),Object(n["createVNode"])(v,{fixed:"right",label:e.$t("defalult.cz"),width:"180",align:"center"},{default:Object(n["withCtx"])(({row:e})=>[Object(n["createVNode"])(f,{type:"text",onClick:t=>d.bindDevice(e)},{default:Object(n["withCtx"])(()=>t[6]||(t[6]=[Object(n["createTextVNode"])("绑定站点")])),_:2},1032,["onClick"]),Object(n["createVNode"])(f,{type:"text",onClick:t=>d.videoData(e)},{default:Object(n["withCtx"])(()=>t[7]||(t[7]=[Object(n["createTextVNode"])("播放")])),_:2},1032,["onClick"])]),_:1},8,["label"])]),_:1},8,["data"]),Object(n["createVNode"])(C,{background:c.background,"current-page":c.queryForm.page,layout:c.layout,"page-size":c.queryForm.size,total:c.total,style:{"text-align":"right"},onCurrentChange:d.handleCurrentChange,onSizeChange:d.handleSizeChange},null,8,["background","current-page","layout","page-size","total","onCurrentChange","onSizeChange"]),Object(n["createVNode"])(y,{ref:"bind"},null,512)])}o("14d9");var c=o("acca"),d=o("2195"),u={name:"VideoData",components:{bindDevice:d["default"]},data(){return{deviceData:[],data:[],account:"",projectId:"",lazy:!0,layout:"total, sizes, prev, pager, next, jumper",total:0,background:!0,listLoading:!0,elementLoadingText:"正在加载...",statusData:[{value:3,label:"all"},{value:1,label:"在线"},{value:0,label:"离线"}],queryForm:{page:1,size:20,account:"",sonserName:"",status:3,deviceSerial:""}}},computed:{height(){return 500}},created(){this.queryForm.account=this.$route.query.account,this.fetchData()},methods:{async fetchData(){this.listLoading=!0;const{data:e}=await Object(c["getDevices"])(this.queryForm);this.data=e.items,this.total=e.total,setTimeout(()=>{this.listLoading=!1},500)},resetForm(){this.$refs.queryForm.resetFields()},search(){this.fetchData()},videoData(e){this.$router.push({path:"/fluoriteSensorData",name:"监控视频",query:{account:e.account,deviceSerial:e.deviceSerial}})},bindDevice(e){this.$refs["bind"].bindDevice({deviceSerial:e.deviceSerial,account:e.account})},handleEdit(e){e.account=this.account,this.$refs["edit"].showEdit(e,1)},handleQuery(){this.queryForm.page=1,this.fetchData()},handleSizeChange(e){this.queryForm.size=e,this.fetchData()},handleCurrentChange(e){this.queryForm.page=e,this.fetchData()}}},m=(o("d29f"),o("b1bd"),o("d959")),h=o.n(m);const p=h()(u,[["render",s],["__scopeId","data-v-0e24c452"]]);t["default"]=p},bdc1:function(e,t,o){"use strict";o.r(t);var n=o("f2bf");function a(e,t,o,a,r,i){const l=Object(n["resolveComponent"])("el-option"),s=Object(n["resolveComponent"])("el-select"),c=Object(n["resolveComponent"])("el-form-item"),d=Object(n["resolveComponent"])("el-button"),u=Object(n["resolveComponent"])("vab-query-form"),m=Object(n["resolveComponent"])("el-form"),h=Object(n["resolveComponent"])("el-dialog");return Object(n["openBlock"])(),Object(n["createBlock"])(h,{modelValue:r.dialogFormVisible,"onUpdate:modelValue":t[3]||(t[3]=e=>r.dialogFormVisible=e),title:r.title,width:"500px",onClose:e.close},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(m,{ref:"form",model:r.form,"label-width":"100px","label-position":"left"},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(c,{label:"属性种类"},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(s,{modelValue:r.type,"onUpdate:modelValue":t[0]||(t[0]=e=>r.type=e),placeholder:"请选择属性种类",onChange:i.getType},{default:Object(n["withCtx"])(()=>[(Object(n["openBlock"])(!0),Object(n["createElementBlock"])(n["Fragment"],null,Object(n["renderList"])(r.typeData,e=>(Object(n["openBlock"])(),Object(n["createBlock"])(l,{key:e.value,label:e.label,value:e.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue","onChange"])]),_:1}),r.show?(Object(n["openBlock"])(),Object(n["createBlock"])(c,{key:0,label:"功能码"},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(s,{modelValue:r.form.functionCode,"onUpdate:modelValue":t[1]||(t[1]=e=>r.form.functionCode=e),placeholder:"请选择功能码"},{default:Object(n["withCtx"])(()=>[(Object(n["openBlock"])(!0),Object(n["createElementBlock"])(n["Fragment"],null,Object(n["renderList"])(r.codeData,e=>(Object(n["openBlock"])(),Object(n["createBlock"])(l,{key:e.dataCode,label:e.dataValue,value:e.dataCode},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1})):Object(n["createCommentVNode"])("",!0),r.show?(Object(n["openBlock"])(),Object(n["createBlock"])(c,{key:1,label:"数据格式"},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(s,{modelValue:r.form.dataFormat,"onUpdate:modelValue":t[2]||(t[2]=e=>r.form.dataFormat=e),placeholder:"请选择数据格式"},{default:Object(n["withCtx"])(()=>[(Object(n["openBlock"])(!0),Object(n["createElementBlock"])(n["Fragment"],null,Object(n["renderList"])(r.formatData,e=>(Object(n["openBlock"])(),Object(n["createBlock"])(l,{key:e.dataCode,label:e.dataValue,value:e.dataCode},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1})):Object(n["createCommentVNode"])("",!0),Object(n["createVNode"])(u,null,{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(d,{type:"primary",onClick:i.save},{default:Object(n["withCtx"])(()=>t[4]||(t[4]=[Object(n["createTextVNode"])("保存")])),_:1},8,["onClick"])]),_:1})]),_:1},8,["model"])]),_:1},8,["modelValue","title","onClose"])}var r=o("669c"),i={name:"Parameter",data(){return{type:0,show:!1,dialogFormVisible:!1,title:"",codeData:[],formatData:[],typeData:[{value:0,label:"请选择属性种类"},{value:1,label:"Modbus RTU"},{value:2,label:"请选择属性种类"}],form:{functionCode:"",dataFormat:""}}},created(){},methods:{getType(e){this.show=1==e},showEdit(){this.title="参数配置",this.dialogFormVisible=!0,this.getDictData()},async getDictData(){const{data:e}=await Object(r["getDictData"])();this.codeData=e.functionCode,this.formatData=e.formatData},save(){this.$emit("getParameter",this.form),this.dialogFormVisible=!1}}},l=o("d959"),s=o.n(l);const c=s()(i,[["render",a]]);t["default"]=c},be38:function(e,t,o){e.exports={"menu-color":"hsla(0,0%,27%,.95)","menu-color-active":"hsla(208,100%,55%,.95)","menu-background":"#fff","gallery-second-menu-background":"#fff"}},be7f:function(e,t){(function(){"use strict";var e=tinymce.util.Tools.resolve("tinymce.PluginManager");const t=(e,t,o)=>{var n;return!!o(e,t.prototype)||(null===(n=e.constructor)||void 0===n?void 0:n.name)===t.name},o=e=>{const o=typeof e;return null===e?"null":"object"===o&&Array.isArray(e)?"array":"object"===o&&t(e,String,(e,t)=>t.isPrototypeOf(e))?"string":o},n=e=>t=>o(t)===e,a=e=>t=>typeof t===e,r=e=>t=>e===t,i=n("string"),l=n("object"),s=n("array"),c=r(null),d=a("boolean"),u=e=>null===e||void 0===e,m=e=>!u(e),h=a("function"),p=(e,t)=>{if(s(e)){for(let o=0,n=e.length;o<n;++o)if(!t(e[o]))return!1;return!0}return!1},b=()=>{},g=e=>()=>e,f=(e,t)=>e===t;class v{constructor(e,t){this.tag=e,this.value=t}static some(e){return new v(!0,e)}static none(){return v.singletonNone}fold(e,t){return this.tag?t(this.value):e()}isSome(){return this.tag}isNone(){return!this.tag}map(e){return this.tag?v.some(e(this.value)):v.none()}bind(e){return this.tag?e(this.value):v.none()}exists(e){return this.tag&&e(this.value)}forall(e){return!this.tag||e(this.value)}filter(e){return!this.tag||e(this.value)?this:v.none()}getOr(e){return this.tag?this.value:e}or(e){return this.tag?this:e}getOrThunk(e){return this.tag?this.value:e()}orThunk(e){return this.tag?this:e()}getOrDie(e){if(this.tag)return this.value;throw new Error(null!==e&&void 0!==e?e:"Called getOrDie on None")}static from(e){return m(e)?v.some(e):v.none()}getOrNull(){return this.tag?this.value:null}getOrUndefined(){return this.value}each(e){this.tag&&e(this.value)}toArray(){return this.tag?[this.value]:[]}toString(){return this.tag?`some(${this.value})`:"none()"}}v.singletonNone=new v(!1);const w=Array.prototype.indexOf,k=Array.prototype.push,C=(e,t)=>w.call(e,t),y=(e,t)=>C(e,t)>-1,O=(e,t)=>{const o=e.length,n=new Array(o);for(let a=0;a<o;a++){const o=e[a];n[a]=t(o,a)}return n},j=(e,t)=>{for(let o=0,n=e.length;o<n;o++){const n=e[o];t(n,o)}},x=(e,t,o)=>(j(e,(e,n)=>{o=t(o,e,n)}),o),_=e=>{const t=[];for(let o=0,n=e.length;o<n;++o){if(!s(e[o]))throw new Error("Arr.flatten item "+o+" was not an array, input: "+e);k.apply(t,e[o])}return t},V=(e,t)=>_(O(e,t)),A=(e,t)=>{for(let o=0;o<e.length;o++){const n=t(e[o],o);if(n.isSome())return n}return v.none()},N=(e,t,o=f)=>e.exists(e=>o(e,t)),D=e=>{const t=[],o=e=>{t.push(e)};for(let n=0;n<e.length;n++)e[n].each(o);return t},E=(e,t)=>e?v.some(t):v.none(),T=e=>t=>t.options.get(e),S=e=>{const t=e.options.register;t("link_assume_external_targets",{processor:e=>{const t=i(e)||d(e);return t?!0===e?{value:1,valid:t}:"http"===e||"https"===e?{value:e,valid:t}:{value:0,valid:t}:{valid:!1,message:"Must be a string or a boolean."}},default:!1}),t("link_context_toolbar",{processor:"boolean",default:!1}),t("link_list",{processor:e=>i(e)||h(e)||p(e,l)}),t("link_default_target",{processor:"string"}),t("link_default_protocol",{processor:"string",default:"https"}),t("link_target_list",{processor:e=>d(e)||p(e,l),default:!0}),t("link_rel_list",{processor:"object[]",default:[]}),t("link_class_list",{processor:"object[]",default:[]}),t("link_title",{processor:"boolean",default:!0}),t("allow_unsafe_link_target",{processor:"boolean",default:!1}),t("link_quicklink",{processor:"boolean",default:!1})},B=T("link_assume_external_targets"),I=T("link_context_toolbar"),z=T("link_list"),F=T("link_default_target"),M=T("link_default_protocol"),L=T("link_target_list"),P=T("link_rel_list"),R=T("link_class_list"),q=T("link_title"),$=T("allow_unsafe_link_target"),U=T("link_quicklink");var H=tinymce.util.Tools.resolve("tinymce.util.Tools");const W=e=>i(e.value)?e.value:"",G=e=>i(e.text)?e.text:i(e.title)?e.title:"",K=(e,t)=>{const o=[];return H.each(e,e=>{const n=G(e);if(void 0!==e.menu){const a=K(e.menu,t);o.push({text:n,items:a})}else{const a=t(e);o.push({text:n,value:a})}}),o},Y=(e=W)=>t=>v.from(t).map(t=>K(t,e)),Q=e=>Y(W)(e),J=(e,t)=>o=>({name:e,type:"listbox",label:t,items:o}),Z={sanitize:Q,sanitizeWith:Y,createUi:J,getValue:W},X=Object.keys,ee=Object.hasOwnProperty,te=(e,t)=>{const o=X(e);for(let n=0,a=o.length;n<a;n++){const a=o[n],r=e[a];t(r,a)}},oe=e=>(t,o)=>{e[o]=t},ne=(e,t,o,n)=>{te(e,(e,a)=>{(t(e,a)?o:n)(e,a)})},ae=(e,t)=>{const o={};return ne(e,t,oe(o),b),o},re=(e,t)=>ee.call(e,t),ie=(e,t)=>re(e,t)&&void 0!==e[t]&&null!==e[t];var le=tinymce.util.Tools.resolve("tinymce.dom.TreeWalker"),se=tinymce.util.Tools.resolve("tinymce.util.URI");const ce=e=>m(e)&&"a"===e.nodeName.toLowerCase(),de=e=>ce(e)&&!!he(e),ue=(e,t)=>{if(e.collapsed)return[];{const o=e.cloneContents(),n=o.firstChild,a=new le(n,o),r=[];let i=n;do{t(i)&&r.push(i)}while(i=a.next());return r}},me=e=>/^\w+:/i.test(e),he=e=>{var t,o;return null!==(o=null!==(t=e.getAttribute("data-mce-href"))&&void 0!==t?t:e.getAttribute("href"))&&void 0!==o?o:""},pe=(e,t)=>{const o=["noopener"],n=e?e.split(/\s+/):[],a=e=>H.trim(e.sort().join(" ")),r=e=>(e=i(e),e.length>0?e.concat(o):o),i=e=>e.filter(e=>-1===H.inArray(o,e)),l=t?r(n):i(n);return l.length>0?a(l):""},be=e=>e.replace(/\uFEFF/g,""),ge=(e,t)=>(t=t||we(e.selection.getRng())[0]||e.selection.getNode(),je(t)?v.from(e.dom.select("a[href]",t)[0]):v.from(e.dom.getParent(t,"a[href]"))),fe=(e,t)=>ge(e,t).isSome(),ve=(e,t)=>{const o=t.fold(()=>e.getContent({format:"text"}),e=>e.innerText||e.textContent||"");return be(o)},we=e=>ue(e,de),ke=e=>H.grep(e,de),Ce=e=>ke(e).length>0,ye=e=>we(e).length>0,Oe=e=>{const t=e.schema.getTextInlineElements(),o=e=>1===e.nodeType&&!ce(e)&&!re(t,e.nodeName.toLowerCase()),n=ge(e).exists(e=>e.hasAttribute("data-mce-block"));if(n)return!1;const a=e.selection.getRng();if(a.collapsed)return!0;{const e=ue(a,o);return 0===e.length}},je=e=>m(e)&&"FIGURE"===e.nodeName&&/\bimage\b/i.test(e.className),xe=e=>{const t=["title","rel","class","target"];return x(t,(t,o)=>(e[o].each(e=>{t[o]=e.length>0?e:null}),t),{href:e.href})},_e=(e,t)=>"http"!==t&&"https"!==t||me(e)?e:t+"://"+e,Ve=(e,t)=>{const o={...t};if(0===P(e).length&&!$(e)){const e=pe(o.rel,"_blank"===o.target);o.rel=e||null}return v.from(o.target).isNone()&&!1===L(e)&&(o.target=F(e)),o.href=_e(o.href,B(e)),o},Ae=(e,t,o,n)=>{o.each(e=>{re(t,"innerText")?t.innerText=e:t.textContent=e}),e.dom.setAttribs(t,n),e.selection.select(t)},Ne=(e,t,o,n)=>{const a=e.dom;je(t)?Me(a,t,n):o.fold(()=>{e.execCommand("mceInsertLink",!1,n)},t=>{e.insertContent(a.createHTML("a",n,a.encode(t)))})},De=(e,t,o)=>{const n=e.selection.getNode(),a=ge(e,n),r=Ve(e,xe(o));e.undoManager.transact(()=>{o.href===t.href&&t.attach(),a.fold(()=>{Ne(e,n,o.text,r)},t=>{e.focus(),Ae(e,t,o.text,r)})})},Ee=e=>{const t=e.dom,o=e.selection,n=o.getBookmark(),a=o.getRng().cloneRange(),r=t.getParent(a.startContainer,"a[href]",e.getBody()),i=t.getParent(a.endContainer,"a[href]",e.getBody());r&&a.setStartBefore(r),i&&a.setEndAfter(i),o.setRng(a),e.execCommand("unlink"),o.moveToBookmark(n)},Te=e=>{e.undoManager.transact(()=>{const t=e.selection.getNode();je(t)?Fe(e,t):Ee(e),e.focus()})},Se=e=>{const{class:t,href:o,rel:n,target:a,text:r,title:i}=e;return ae({class:t.getOrNull(),href:o,rel:n.getOrNull(),target:a.getOrNull(),text:r.getOrNull(),title:i.getOrNull()},(e,t)=>!1===c(e))},Be=(e,t)=>{const o=e.options.get,n={allow_html_data_urls:o("allow_html_data_urls"),allow_script_urls:o("allow_script_urls"),allow_svg_data_urls:o("allow_svg_data_urls")},a=t.href;return{...t,href:se.isDomSafe(a,"a",n)?a:""}},Ie=(e,t,o)=>{const n=Be(e,o);e.hasPlugin("rtc",!0)?e.execCommand("createlink",!1,Se(n)):De(e,t,n)},ze=e=>{e.hasPlugin("rtc",!0)?e.execCommand("unlink"):Te(e)},Fe=(e,t)=>{var o;const n=e.dom.select("img",t)[0];if(n){const a=e.dom.getParents(n,"a[href]",t)[0];a&&(null===(o=a.parentNode)||void 0===o||o.insertBefore(n,a),e.dom.remove(a))}},Me=(e,t,o)=>{var n;const a=e.select("img",t)[0];if(a){const t=e.create("a",o);null===(n=a.parentNode)||void 0===n||n.insertBefore(t,a),t.appendChild(a)}},Le=e=>ie(e,"items"),Pe=(e,t)=>A(t,t=>Le(t)?Pe(e,t.items):E(t.value===e,t)),Re=(e,t,o,n)=>{const a=n[t],r=e.length>0;return void 0!==a?Pe(a,o).map(t=>({url:{value:t.value,meta:{text:r?e:t.text,attach:b}},text:r?e:t.text})):v.none()},qe=(e,t)=>"link"===t?e.link:"anchor"===t?e.anchor:v.none(),$e=(e,t)=>{const o={text:e.text,title:e.title},n=e=>{var t;return E(o.title.length<=0,v.from(null===(t=e.meta)||void 0===t?void 0:t.title).getOr(""))},a=e=>{var t;return E(o.text.length<=0,v.from(null===(t=e.meta)||void 0===t?void 0:t.text).getOr(e.value))},r=e=>{const t=a(e.url),o=n(e.url);return t.isSome()||o.isSome()?v.some({...t.map(e=>({text:e})).getOr({}),...o.map(e=>({title:e})).getOr({})}):v.none()},i=(e,n)=>{const a=qe(t,n).getOr([]);return Re(o.text,n,a,e)},l=(e,t)=>{const n=t.name;return"url"===n?r(e()):y(["anchor","link"],n)?i(e(),n):"text"===n||"title"===n?(o[n]=e()[n],v.none()):v.none()};return{onChange:l}},Ue={init:$e,getDelta:Re};var He=tinymce.util.Tools.resolve("tinymce.util.Delay");const We=(e,t,o)=>{const n=e.selection.getRng();He.setEditorTimeout(e,()=>{e.windowManager.confirm(t,t=>{e.selection.setRng(n),o(t)})})},Ge=e=>{const t=e.href,o=t.indexOf("@")>0&&-1===t.indexOf("/")&&-1===t.indexOf("mailto:");return o?v.some({message:"The URL you entered seems to be an email address. Do you want to add the required mailto: prefix?",preprocess:e=>({...e,href:"mailto:"+t})}):v.none()},Ke=(e,t)=>o=>{const n=o.href,a=1===e&&!me(n)||0===e&&/^\s*www(\.|\d\.)/i.test(n);return a?v.some({message:`The URL you entered seems to be an external link. Do you want to add the required ${t}:// prefix?`,preprocess:e=>({...e,href:t+"://"+n})}):v.none()},Ye=(e,t)=>A([Ge,Ke(B(e),M(e))],e=>e(t)).fold(()=>Promise.resolve(t),o=>new Promise(n=>{We(e,o.message,e=>{n(e?o.preprocess(t):t)})})),Qe={preprocess:Ye},Je=e=>{const t=e.dom.select("a:not([href])"),o=V(t,e=>{const t=e.name||e.id;return t?[{text:t,value:"#"+t}]:[]});return o.length>0?v.some([{text:"None",value:""}].concat(o)):v.none()},Ze={getAnchors:Je},Xe=e=>{const t=R(e);return t.length>0?Z.sanitize(t):v.none()},et={getClasses:Xe},tt=e=>{try{return v.some(JSON.parse(e))}catch(t){return v.none()}},ot=e=>{const t=t=>e.convertURL(t.value||t.url||"","href"),o=z(e);return new Promise(e=>{i(o)?fetch(o).then(e=>e.ok?e.text().then(tt):Promise.reject()).then(e,()=>e(v.none())):h(o)?o(t=>e(v.some(t))):e(v.from(o))}).then(e=>e.bind(Z.sanitizeWith(t)).map(e=>{if(e.length>0){const t=[{text:"None",value:""}];return t.concat(e)}return e}))},nt={getLinks:ot},at=(e,t)=>{const o=P(e);if(o.length>0){const n=N(t,"_blank"),a=!1===$(e),r=e=>pe(Z.getValue(e),n),i=a?Z.sanitizeWith(r):Z.sanitize;return i(o)}return v.none()},rt={getRels:at},it=[{text:"Current window",value:""},{text:"New window",value:"_blank"}],lt=e=>{const t=L(e);return s(t)?Z.sanitize(t).orThunk(()=>v.some(it)):!1===t?v.none():v.some(it)},st={getTargets:lt},ct=(e,t,o)=>{const n=e.getAttrib(t,o);return null!==n&&n.length>0?v.some(n):v.none()},dt=(e,t)=>{const o=e.dom,n=Oe(e),a=n?v.some(ve(e.selection,t)):v.none(),r=t.bind(e=>v.from(o.getAttrib(e,"href"))),i=t.bind(e=>v.from(o.getAttrib(e,"target"))),l=t.bind(e=>ct(o,e,"rel")),s=t.bind(e=>ct(o,e,"class")),c=t.bind(e=>ct(o,e,"title"));return{url:r,text:a,title:c,target:i,rel:l,linkClass:s}},ut=(e,t)=>nt.getLinks(e).then(o=>{const n=dt(e,t);return{anchor:n,catalogs:{targets:st.getTargets(e),rels:rt.getRels(e,n.target),classes:et.getClasses(e),anchor:Ze.getAnchors(e),link:o},optNode:t,flags:{titleEnabled:q(e)}}}),mt={collect:ut},ht=(e,t)=>o=>{const n=o.getData();if(!n.url.value)return ze(e),void o.close();const a=e=>v.from(n[e]).filter(o=>!N(t.anchor[e],o)),r={href:n.url.value,text:a("text"),target:a("target"),rel:a("rel"),class:a("linkClass"),title:a("title")},i={href:n.url.value,attach:void 0!==n.url.meta&&n.url.meta.attach?n.url.meta.attach:b};Qe.preprocess(e,r).then(t=>{Ie(e,i,t)}),o.close()},pt=e=>{const t=ge(e);return mt.collect(e,t)},bt=(e,t)=>{const o=e.anchor,n=o.url.getOr("");return{url:{value:n,meta:{original:{value:n}}},text:o.text.getOr(""),title:o.title.getOr(""),anchor:n,link:n,rel:o.rel.getOr(""),target:o.target.or(t).getOr(""),linkClass:o.linkClass.getOr("")}},gt=(e,t,o)=>{const n=[{name:"url",type:"urlinput",filetype:"file",label:"URL",picker_text:"Browse links"}],a=e.anchor.text.map(()=>({name:"text",type:"input",label:"Text to display"})).toArray(),r=e.flags.titleEnabled?[{name:"title",type:"input",label:"Title"}]:[],i=v.from(F(o)),l=bt(e,i),s=e.catalogs,c=Ue.init(l,s),d={type:"panel",items:_([n,a,r,D([s.anchor.map(Z.createUi("anchor","Anchors")),s.rels.map(Z.createUi("rel","Rel")),s.targets.map(Z.createUi("target","Open link in...")),s.link.map(Z.createUi("link","Link list")),s.classes.map(Z.createUi("linkClass","Class"))])])};return{title:"Insert/Edit Link",size:"normal",body:d,buttons:[{type:"cancel",name:"cancel",text:"Cancel"},{type:"submit",name:"save",text:"Save",primary:!0}],initialData:l,onChange:(e,{name:t})=>{c.onChange(e.getData,{name:t}).each(t=>{e.setData(t)})},onSubmit:t}},ft=e=>{const t=pt(e);t.then(t=>{const o=ht(e,t);return gt(t,o,e)}).then(t=>{e.windowManager.open(t)})},vt=e=>{e.addCommand("mceLink",(t,o)=>{!0!==(null===o||void 0===o?void 0:o.dialog)&&U(e)?e.dispatch("contexttoolbar-show",{toolbarKey:"quicklink"}):ft(e)})};var wt=tinymce.util.Tools.resolve("tinymce.util.VK");const kt=(e,t)=>{document.body.appendChild(e),e.dispatchEvent(t),document.body.removeChild(e)},Ct=e=>{const t=document.createElement("a");t.target="_blank",t.href=e,t.rel="noreferrer noopener";const o=document.createEvent("MouseEvents");o.initMouseEvent("click",!0,!0,window,0,0,0,0,0,!1,!1,!1,!1,0,null),kt(t,o)},yt=(e,t)=>e.dom.getParent(t,"a[href]"),Ot=e=>yt(e,e.selection.getStart()),jt=e=>!0===e.altKey&&!1===e.shiftKey&&!1===e.ctrlKey&&!1===e.metaKey,xt=(e,t)=>{if(t){const o=he(t);if(/^#/.test(o)){const t=e.dom.select(o);t.length&&e.selection.scrollIntoView(t[0],!0)}else Ct(t.href)}},_t=e=>()=>{e.execCommand("mceLink",!1,{dialog:!0})},Vt=e=>()=>{xt(e,Ot(e))},At=e=>{e.on("click",t=>{const o=yt(e,t.target);o&&wt.metaKeyPressed(t)&&(t.preventDefault(),xt(e,o))}),e.on("keydown",t=>{if(!t.isDefaultPrevented()&&13===t.keyCode&&jt(t)){const o=Ot(e);o&&(t.preventDefault(),xt(e,o))}})},Nt=(e,t)=>(e.on("NodeChange",t),()=>e.off("NodeChange",t)),Dt=e=>t=>{const o=()=>{t.setActive(!e.mode.isReadOnly()&&fe(e,e.selection.getNode())),t.setEnabled(e.selection.isEditable())};return o(),Nt(e,o)},Et=e=>t=>{const o=()=>{t.setEnabled(e.selection.isEditable())};return o(),Nt(e,o)},Tt=e=>{const t=e.selection.isCollapsed()?ke(e.dom.getParents(e.selection.getStart())):we(e.selection.getRng());return 1===t.length},St=e=>t=>{const o=()=>t.setEnabled(Tt(e));return o(),Nt(e,o)},Bt=e=>t=>{const o=t=>Ce(t)||ye(e.selection.getRng()),n=e.dom.getParents(e.selection.getStart()),a=n=>{t.setEnabled(o(n)&&e.selection.isEditable())};return a(n),Nt(e,e=>a(e.parents))},It=e=>{e.addShortcut("Meta+K","",()=>{e.execCommand("mceLink")})},zt=e=>{e.ui.registry.addToggleButton("link",{icon:"link",tooltip:"Insert/edit link",onAction:_t(e),onSetup:Dt(e)}),e.ui.registry.addButton("openlink",{icon:"new-tab",tooltip:"Open link",onAction:Vt(e),onSetup:St(e)}),e.ui.registry.addButton("unlink",{icon:"unlink",tooltip:"Remove link",onAction:()=>ze(e),onSetup:Bt(e)})},Ft=e=>{e.ui.registry.addMenuItem("openlink",{text:"Open link",icon:"new-tab",onAction:Vt(e),onSetup:St(e)}),e.ui.registry.addMenuItem("link",{icon:"link",text:"Link...",shortcut:"Meta+K",onSetup:Et(e),onAction:_t(e)}),e.ui.registry.addMenuItem("unlink",{icon:"unlink",text:"Remove link",onAction:()=>ze(e),onSetup:Bt(e)})},Mt=e=>{const t="link unlink openlink",o="link";e.ui.registry.addContextMenu("link",{update:n=>{const a=e.dom.isEditable(n);return a?Ce(e.dom.getParents(n,"a"))?t:o:""}})},Lt=e=>{const t=e=>{e.selection.collapse(!1)},o=t=>{const o=e.selection.getNode();return t.setEnabled(fe(e,o)),b},n=t=>{const o=ge(e),n=Oe(e);if(o.isNone()&&n){const n=ve(e.selection,o);return E(0===n.length,t)}return v.none()};e.ui.registry.addContextForm("quicklink",{launch:{type:"contextformtogglebutton",icon:"link",tooltip:"Link",onSetup:Dt(e)},label:"Link",predicate:t=>I(e)&&fe(e,t),initValue:()=>{const t=ge(e);return t.fold(g(""),he)},commands:[{type:"contextformtogglebutton",icon:"link",tooltip:"Link",primary:!0,onSetup:t=>{const o=e.selection.getNode();return t.setActive(fe(e,o)),Dt(e)(t)},onAction:o=>{const a=o.getValue(),r=n(a),i={href:a,attach:b};Ie(e,i,{href:a,text:r,title:v.none(),rel:v.none(),target:v.none(),class:v.none()}),t(e),o.hide()}},{type:"contextformbutton",icon:"unlink",tooltip:"Remove link",onSetup:o,onAction:t=>{ze(e),t.hide()}},{type:"contextformbutton",icon:"new-tab",tooltip:"Open link",onSetup:o,onAction:t=>{Vt(e)(),t.hide()}}]})};var Pt=()=>{e.add("link",e=>{S(e),zt(e),Ft(e),Mt(e),Lt(e),At(e),vt(e),It(e)})};Pt()})()},bf00:function(e,t,o){e.exports={"menu-color":"hsla(0,0%,27%,.95)","menu-color-active":"hsla(208,100%,55%,.95)","menu-background":"#fff","gallery-second-menu-background":"#fff"}},bf12:function(e,t,o){},bf20:function(e,t,o){"use strict";o.r(t);var n=o("f2bf");const a={key:0},r={key:1,style:{"text-align":"center"}},i=["src"],l={key:2,style:{"text-align":"center"}},s=["src"],c={key:3,style:{"text-align":"center"}},d=["src"],u={key:4,style:{"text-align":"center"}};function m(e,t,o,m,h,p){const b=Object(n["resolveComponent"])("el-dialog");return Object(n["openBlock"])(),Object(n["createBlock"])(b,{modelValue:h.dialogFormVisible,"onUpdate:modelValue":t[0]||(t[0]=e=>h.dialogFormVisible=e),title:e.title,width:"500px",onClose:e.close},{default:Object(n["withCtx"])(()=>[h.isText?(Object(n["openBlock"])(),Object(n["createElementBlock"])("div",a,[Object(n["createElementVNode"])("span",null,Object(n["toDisplayString"])(h.data.textContent),1)])):h.isImage?(Object(n["openBlock"])(),Object(n["createElementBlock"])("div",r,[Object(n["createElementVNode"])("img",{src:h.data.image,alt:"",style:{width:"90%"}},null,8,i)])):h.isVideo?(Object(n["openBlock"])(),Object(n["createElementBlock"])("div",l,[Object(n["createElementVNode"])("video",{src:h.data.video,style:{width:"90%"}},null,8,s)])):h.isVoice?(Object(n["openBlock"])(),Object(n["createElementBlock"])("div",c,[Object(n["createElementVNode"])("audio",{src:h.data.voice},null,8,d)])):h.isNews?(Object(n["openBlock"])(),Object(n["createElementBlock"])("div",u,[Object(n["createElementVNode"])("p",null,Object(n["toDisplayString"])(h.data.news),1)])):Object(n["createCommentVNode"])("",!0)]),_:1},8,["modelValue","title","onClose"])}var h={data(){return{isText:!1,isImage:!1,isVoice:!1,isVideo:!1,isNews:!1,dialogFormVisible:!1,data:[]}},methods:{showData(e){this.dialogFormVisible=!0,this.title="回复内容",this.data=e,"text"==e.msgType?this.isText=!0:"image"==e.materialType?this.isImage=!0:"voice"==e.materialType?this.isVoice=!0:"video"==e.materialType?this.isVideo=!0:"news"==e.materialType&&(this.isNews=!0)}}},p=o("d959"),b=o.n(p);const g=b()(h,[["render",m]]);t["default"]=g},bf9e:function(e,t,o){e.exports={"menu-color":"hsla(0,0%,27%,.95)","menu-color-active":"hsla(208,100%,55%,.95)","menu-background":"#fff","gallery-second-menu-background":"#fff"}},bfa3:function(e,t,o){"use strict";o.r(t);var n=o("f2bf");function a(e,t,o,a,r,i){return Object(n["openBlock"])(),Object(n["createElementBlock"])("p")}var r={name:"Index"},i=o("d959"),l=o.n(i);const s=l()(r,[["render",a]]);t["default"]=s},c014:function(e,t,o){"use strict";o.r(t);var n=o("f2bf");const a={class:"dialog-footer"};function r(e,t,o,r,i,l){const s=Object(n["resolveComponent"])("el-option"),c=Object(n["resolveComponent"])("el-select"),d=Object(n["resolveComponent"])("el-form-item"),u=Object(n["resolveComponent"])("el-form"),m=Object(n["resolveComponent"])("el-button"),h=Object(n["resolveComponent"])("el-dialog");return Object(n["openBlock"])(),Object(n["createBlock"])(h,{modelValue:i.dialogFormVisible,"onUpdate:modelValue":t[1]||(t[1]=e=>i.dialogFormVisible=e),title:i.title,width:"500px",onClose:l.close},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(u,{ref:"form",model:i.form,rules:e.rules,"label-width":"80px"},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(d,{label:"角色",prop:"id"},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(c,{modelValue:i.form.roleId,"onUpdate:modelValue":t[0]||(t[0]=e=>i.form.roleId=e),size:"small",placeholder:"请选择"},{default:Object(n["withCtx"])(()=>[(Object(n["openBlock"])(!0),Object(n["createElementBlock"])(n["Fragment"],null,Object(n["renderList"])(i.roleData,e=>(Object(n["openBlock"])(),Object(n["createBlock"])(s,{key:e.id,label:e.name,value:e.id},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1})]),_:1},8,["model","rules"]),Object(n["createElementVNode"])("div",a,[Object(n["createVNode"])(m,{type:"primary",size:"small",onClick:l.save},{default:Object(n["withCtx"])(()=>t[2]||(t[2]=[Object(n["createTextVNode"])("确 定")])),_:1},8,["onClick"]),Object(n["createVNode"])(m,{size:"small",onClick:l.close},{default:Object(n["withCtx"])(()=>t[3]||(t[3]=[Object(n["createTextVNode"])("取 消")])),_:1},8,["onClick"])])]),_:1},8,["modelValue","title","onClose"])}var i=o("0fea"),l=o("cc5e"),s=(o("3fd4"),o("a18c"),{name:"ManageRole",data(){return{form:{userId:"",roleId:""},roleData:[],clearable:!0,parentData:[],title:"",dialogFormVisible:!1}},created(){},methods:{async getRoleData(){const e={page:1,size:20},{data:t}=await Object(l["getList"])(e);this.roleData=t.items},manageRole(e){this.title="分配角色",this.form.userId=e.id,void 0!=e.role&&(this.form.roleId=e.role.id),this.dialogFormVisible=!0,this.getRoleData()},close(){this.$refs["form"].resetFields(),this.form=this.$options.data().form,this.dialogFormVisible=!1,this.$emit("fetch-data")},save(){this.$refs["form"].validate(async e=>{if(!e)return!1;{const{msg:e}=await Object(i["assignRole"])(this.form);this.$notify({title:e,type:"success"}),this.$refs["form"].resetFields(),this.dialogFormVisible=!1,this.$parent.fetchData()}})}}}),c=(o("247a"),o("d959")),d=o.n(c);const u=d()(s,[["render",r]]);t["default"]=u},c058:function(e,t,o){"use strict";o.r(t);var n=o("f2bf");const a={class:"dialog-footer"};function r(e,t,o,r,i,l){const s=Object(n["resolveComponent"])("el-option"),c=Object(n["resolveComponent"])("el-select"),d=Object(n["resolveComponent"])("el-form-item"),u=Object(n["resolveComponent"])("ckeditor"),m=Object(n["resolveComponent"])("el-button"),h=Object(n["resolveComponent"])("el-form"),p=Object(n["resolveComponent"])("select-data"),b=Object(n["resolveComponent"])("el-dialog");return Object(n["openBlock"])(),Object(n["createBlock"])(b,{modelValue:i.dialogFormVisible,"onUpdate:modelValue":t[4]||(t[4]=e=>i.dialogFormVisible=e),title:i.title,width:"1500px",onClose:l.close},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(h,{ref:"form",model:i.form,"label-width":"80px","label-position":"left"},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(d,{label:"消息类型"},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(c,{modelValue:i.form.msgType,"onUpdate:modelValue":t[0]||(t[0]=e=>i.form.msgType=e),filterable:"",placeholder:"消息类型",onChange:l.changeMsgType},{default:Object(n["withCtx"])(()=>[(Object(n["openBlock"])(!0),Object(n["createElementBlock"])(n["Fragment"],null,Object(n["renderList"])(i.msgTypeData,e=>(Object(n["openBlock"])(),Object(n["createBlock"])(s,{key:e.dataCode,label:e.dataValue,value:e.dataCode},null,8,["label","value"]))),128))]),_:1},8,["modelValue","onChange"])]),_:1}),i.isMaterial?(Object(n["openBlock"])(),Object(n["createBlock"])(d,{key:0,label:"素材类型",prop:"materialType"},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(c,{modelValue:i.form.materialType,"onUpdate:modelValue":t[1]||(t[1]=e=>i.form.materialType=e),filterable:"",placeholder:"素材类型"},{default:Object(n["withCtx"])(()=>[(Object(n["openBlock"])(!0),Object(n["createElementBlock"])(n["Fragment"],null,Object(n["renderList"])(i.typeData,e=>(Object(n["openBlock"])(),Object(n["createBlock"])(s,{key:e.dataCode,label:e.dataValue,value:e.dataCode},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1})):Object(n["createCommentVNode"])("",!0),i.isText?(Object(n["openBlock"])(),Object(n["createBlock"])(d,{key:1,label:"文本内容",prop:"textContent"},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(u,{modelValue:i.form.textContent,"onUpdate:modelValue":t[2]||(t[2]=e=>i.form.textContent=e),size:"small",editor:i.editor,config:i.editorConfig},null,8,["modelValue","editor","config"])]),_:1})):Object(n["createCommentVNode"])("",!0),i.isMaterial?(Object(n["openBlock"])(),Object(n["createBlock"])(d,{key:2,label:"选择素材",prop:"mediaId"},{default:Object(n["withCtx"])(()=>[Object(n["createElementVNode"])("p",null,"已选择素材:"+Object(n["toDisplayString"])(i.form.mediaId),1),Object(n["createVNode"])(m,{type:"primary",size:"mini",onClick:t[3]||(t[3]=e=>l.showData())},{default:Object(n["withCtx"])(()=>t[5]||(t[5]=[Object(n["createTextVNode"])(" 选择素材 ")])),_:1})]),_:1})):Object(n["createCommentVNode"])("",!0)]),_:1},8,["model"]),Object(n["createElementVNode"])("div",a,[Object(n["createVNode"])(m,{onClick:l.close},{default:Object(n["withCtx"])(()=>t[6]||(t[6]=[Object(n["createTextVNode"])("取 消")])),_:1},8,["onClick"]),Object(n["createVNode"])(m,{type:"primary",onClick:l.save},{default:Object(n["withCtx"])(()=>t[7]||(t[7]=[Object(n["createTextVNode"])("确 定")])),_:1},8,["onClick"])]),Object(n["createVNode"])(p,{ref:"select",onGetMaterialId:l.getMaterialId},null,8,["onGetMaterialId"])]),_:1},8,["modelValue","title","onClose"])}var i=o("455b"),l=o("4cfb"),s=o("c471"),c=o.n(s),d=(o("cd6d"),o("5847")),u=o("cf45"),m={components:{selectData:i["default"]},data(){return{form:{id:"",mediaId:"",msgType:"",textContent:"",materialType:""},clearable:!0,title:"",editor:c.a,editorConfig:d["knowledgeEditorConfig"],dialogFormVisible:!1,msgTypeData:[],typeData:[],isMaterial:!1,isText:!1}},created(){},methods:{showEdit(e){if(e){this.title="编辑";const t=Object.assign({},e);this.form=t}else this.title="添加";this.dialogFormVisible=!0,this.projectId=sessionStorage.getItem("projectId"),this.getMaterialTypeData(),this.getMaterialMsgTypeData()},changeMsgType(){this.$refs["form"].resetFields(),"material"==this.form.msgType?(this.isMaterial=!0,this.isText=!1):(this.isMaterial=!1,this.isText=!0)},showData(){this.$refs["select"].selectData()},async getMaterialMsgTypeData(){const{data:e}=await Object(l["getMaterialMsgType"])();this.msgTypeData=e},async getMaterialTypeData(){const{data:e}=await Object(l["getMaterialType"])();this.typeData=e},close(){this.$refs["form"].resetFields(),this.form=this.$options.data().form,this.dialogFormVisible=!1,this.$emit("fetch-data")},getMaterialId(e){this.form.mediaId=e},save(){this.$refs["form"].validate(async e=>{if(!e)return!1;{this.form.textContent=Object(u["delHtmlTag"])(this.form.textContent);const{msg:e}=await Object(l["materialSaveOrUpdate"])(this.form);this.$notify({title:e,type:"success"}),this.$refs["form"].resetFields(),this.$parent.fetchData(),this.dialogFormVisible=!1}})}}},h=(o("0e2e"),o("d959")),p=o.n(h);const b=p()(m,[["render",r]]);t["default"]=b},c0df:function(e,t,o){"use strict";o("6127")},c209:function(e,t,o){},c2e0:function(e,t,o){"use strict";o.r(t);var n=o("f2bf");const a={class:"manage-container"},r={class:"manage-input"},i={class:"manage-button"};function l(e,t,o,l,s,c){const d=Object(n["resolveComponent"])("el-input"),u=Object(n["resolveComponent"])("el-form-item"),m=Object(n["resolveComponent"])("vab-query-form"),h=Object(n["resolveComponent"])("el-form"),p=Object(n["resolveComponent"])("el-button"),b=Object(n["resolveComponent"])("el-table-column"),g=Object(n["resolveComponent"])("el-table"),f=Object(n["resolveComponent"])("el-pagination"),v=Object(n["resolveComponent"])("add"),w=Object(n["resolveDirective"])("loading");return Object(n["openBlock"])(),Object(n["createElementBlock"])(n["Fragment"],null,[Object(n["createElementVNode"])("div",a,[Object(n["createElementVNode"])("div",r,[Object(n["createVNode"])(h,{ref:"queryForm",model:s.queryForm,"label-width":"80px"},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(m,null,{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(u,{prop:"deviceName",label:e.$t("dataEnquiry.zdmc")},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(d,{modelValue:s.queryForm.deviceName,"onUpdate:modelValue":t[0]||(t[0]=e=>s.queryForm.deviceName=e),size:"small",placeholder:e.$t("dataEnquiry.qsrzdmc")},null,8,["modelValue","placeholder"])]),_:1},8,["label"]),Object(n["createVNode"])(u,{prop:"equipmentName",label:e.$t("maintenance.sbmc")},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(d,{modelValue:s.queryForm.equipmentName,"onUpdate:modelValue":t[1]||(t[1]=e=>s.queryForm.equipmentName=e),size:"small",placeholder:e.$t("maintenance.qsrsbmc")},null,8,["modelValue","placeholder"])]),_:1},8,["label"])]),_:1})]),_:1},8,["model"])]),Object(n["createElementVNode"])("div",i,[Object(n["createVNode"])(p,{size:"small",onClick:t[2]||(t[2]=e=>c.resetForm())},{default:Object(n["withCtx"])(()=>[Object(n["createTextVNode"])(Object(n["toDisplayString"])(e.$t("defalult.chongz")),1)]),_:1}),Object(n["createVNode"])(p,{type:"primary",size:"small",onClick:c.search},{default:Object(n["withCtx"])(()=>[Object(n["createTextVNode"])(Object(n["toDisplayString"])(e.$t("defalult.cx")),1)]),_:1},8,["onClick"]),Object(n["createVNode"])(p,{type:"primary",size:"small",onClick:c.handleAdd},{default:Object(n["withCtx"])(()=>[Object(n["createTextVNode"])(Object(n["toDisplayString"])(e.$t("defalult.tj")),1)]),_:1},8,["onClick"]),Object(n["createVNode"])(p,{type:"primary",size:"small",onClick:c.exportData},{default:Object(n["withCtx"])(()=>[Object(n["createTextVNode"])(Object(n["toDisplayString"])(e.$t("defalult.dc")),1)]),_:1},8,["onClick"])])]),Object(n["withDirectives"])((Object(n["openBlock"])(),Object(n["createBlock"])(g,{data:s.tableData,stripe:"",border:"",style:{width:"100%"}},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(b,{fixed:"",prop:"device.name",label:e.$t("dataEnquiry.zdmc"),width:"150",align:"center"},null,8,["label"]),Object(n["createVNode"])(b,{prop:"name.dataValue",label:e.$t("maintenance.sb"),align:"center"},null,8,["label"]),Object(n["createVNode"])(b,{prop:"brand.dataValue",label:e.$t("maintenance.pp"),width:"150",align:"center"},null,8,["label"]),Object(n["createVNode"])(b,{prop:"supplier.dataValue",label:e.$t("maintenance.gys"),width:"150",align:"center"},null,8,["label"]),Object(n["createVNode"])(b,{prop:"unit.dataValue",label:e.$t("sensor.dw"),align:"center"},null,8,["label"]),Object(n["createVNode"])(b,{prop:"model",label:e.$t("maintenance.xh"),align:"center"},null,8,["label"]),Object(n["createVNode"])(b,{prop:"code",label:e.$t("maintenance.bh"),align:"center"},null,8,["label"]),Object(n["createVNode"])(b,{prop:"power",label:e.$t("maintenance.gl"),align:"center"},null,8,["label"]),Object(n["createVNode"])(b,{prop:"status.dataValue",label:e.$t("dataEnquiry.zt"),align:"center"},null,8,["label"]),Object(n["createVNode"])(b,{prop:"shelfLife",label:e.$t("maintenance.bzq"),align:"center"},null,8,["label"]),Object(n["createVNode"])(b,{fixed:"right",label:e.$t("defalult.cz"),align:"center",width:"150"},{default:Object(n["withCtx"])(({row:t})=>[Object(n["createVNode"])(p,{type:"text",onClick:e=>c.handleDelete(t)},{default:Object(n["withCtx"])(()=>[Object(n["createTextVNode"])(Object(n["toDisplayString"])(e.$t("defalult.sc")),1)]),_:2},1032,["onClick"]),Object(n["createVNode"])(p,{type:"text",onClick:e=>c.handleEdit(t)},{default:Object(n["withCtx"])(()=>[Object(n["createTextVNode"])(Object(n["toDisplayString"])(e.$t("defalult.bj")),1)]),_:2},1032,["onClick"])]),_:1},8,["label"])]),_:1},8,["data"])),[[w,s.listLoading]]),Object(n["createVNode"])(f,{background:s.background,"current-page":s.queryForm.page,layout:s.layout,"page-size":s.queryForm.size,total:s.total,style:{"text-align":"right"},onCurrentChange:c.handleCurrentChange,onSizeChange:c.handleSizeChange},null,8,["background","current-page","layout","page-size","total","onCurrentChange","onSizeChange"]),Object(n["createVNode"])(v,{ref:"edit"},null,512)],64)}var s=o("351d"),c=o("3038"),d=o("5f07"),u={components:{add:d["default"]},data(){return{tableData:[],lazy:!0,layout:"total, sizes, prev, pager, next, jumper",total:0,background:!0,listLoading:!1,elementLoadingText:"正在加载...",levelData:[],categoryData:[],queryForm:{page:1,size:20,projectId:"",deviceName:"",equipmentName:""}}},created(){this.queryForm.projectId=sessionStorage.getItem("projectId")},methods:{async fetchData(){this.listLoading=!0;const{data:e}=await Object(s["getList"])(this.queryForm);this.tableData=e.items,this.total=e.total,setTimeout(()=>{this.listLoading=!1},500)},showData(){this.fetchData()},handleAdd(){this.$refs["edit"].showEdit()},handleEdit(e){this.$refs["edit"].showEdit(e)},async exportData(){const e=await Object(s["doExport"])(this.queryForm);c["default"].downloadFile(e,{fileName:"设备维保.xls"})},search(){this.fetchData()},resetForm(){this.$refs.queryForm.resetFields()},deletes(e){const t=this;this.$confirm("你确定要删除当前项吗?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(()=>{const{msg:o}=Object(s["doDelete"])(e);this.$message({type:"success",message:void 0==o?"删除成功":o}),setTimeout((function(){t.fetchData()}),1e3)}).catch(()=>{this.$message({type:"info",message:"已取消删除"})})},handleDelete(e){const t=this;t.deletes([e.id])},handleQuery(){this.queryForm.page=1,this.fetchData()},handleSizeChange(e){this.queryForm.size=e,this.fetchData()},handleCurrentChange(e){this.queryForm.page=e,this.fetchData()}}},m=(o("e2f2"),o("d959")),h=o.n(m);const p=h()(u,[["render",l],["__scopeId","data-v-aa026ae8"]]);t["default"]=p},c35f:function(e,t,o){"use strict";o.r(t);var n=o("f2bf");const a={class:"manage-container"};function r(e,t,o,r,i,l){const s=Object(n["resolveComponent"])("el-table-column"),c=Object(n["resolveComponent"])("el-button"),d=Object(n["resolveComponent"])("el-table"),u=Object(n["resolveComponent"])("el-pagination"),m=Object(n["resolveComponent"])("bind-device"),h=Object(n["resolveDirective"])("loading");return Object(n["openBlock"])(),Object(n["createElementBlock"])("div",a,[Object(n["withDirectives"])((Object(n["openBlock"])(),Object(n["createBlock"])(d,{data:i.userData,border:"",stripe:"",style:{width:"100%"}},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(s,{prop:"userId",label:"ID",width:"120",align:"center"}),Object(n["createVNode"])(s,{prop:"nickName",label:e.$t("staff.xm"),align:"center"},null,8,["label"]),Object(n["createVNode"])(s,{prop:"phone",label:e.$t("project.lxfs"),width:"260",align:"center"},null,8,["label"]),Object(n["createVNode"])(s,{prop:"email",label:e.$t("staff.yx"),width:"260",align:"center"},null,8,["label"]),Object(n["createVNode"])(s,{fixed:"right",label:e.$t("defalult.cz"),width:"200",align:"center"},{default:Object(n["withCtx"])(({row:e})=>[Object(n["createVNode"])(c,{type:"text",onClick:t=>l.bindDevice(e)},{default:Object(n["withCtx"])(()=>t[0]||(t[0]=[Object(n["createTextVNode"])("绑定站点")])),_:2},1032,["onClick"])]),_:1},8,["label"])]),_:1},8,["data"])),[[h,i.listLoading]]),Object(n["createVNode"])(u,{background:i.background,"current-page":i.queryForm.page,layout:i.layout,"page-size":i.queryForm.size,total:i.total,style:{"text-align":"right"},onCurrentChange:l.handleCurrentChange,onSizeChange:l.handleSizeChange},null,8,["background","current-page","layout","page-size","total","onCurrentChange","onSizeChange"]),Object(n["createVNode"])(m,{ref:"bind"},null,512)])}var i=o("f547"),l=o("a5f3"),s={name:"Index",components:{bindDevice:l["default"]},data(){return{userData:[],lazy:!0,layout:"total, sizes, prev, pager, next, jumper",total:0,background:!0,listLoading:!0,elementLoadingText:"正在加载...",queryForm:{page:1,size:20}}},computed:{height(){return 500}},methods:{showData(){this.fetchData()},async fetchData(){this.listLoading=!0;const{data:e}=await Object(i["getList"])(this.queryForm);this.userData=e.items,this.total=e.total,setTimeout(()=>{this.listLoading=!1},500)},search(){this.fetchData()},resetForm(){this.$refs.queryForm.resetFields()},handleAdd(){this.$refs["edit"].showEdit()},bindDevice(e){this.$refs["bind"].bindDevice(e)},handleQuery(){this.queryForm.page=1,this.fetchData()},handleSizeChange(e){this.queryForm.size=e,this.fetchData()},handleCurrentChange(e){this.queryForm.page=e,this.fetchData()},handleDelete(e){const t=this;e.id&&this.$confirm("你确定要删除当前项吗?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(()=>{const{msg:o}=Object(i["doDelete"])({userId:e.id});this.$message({type:"success",message:void 0==o?"删除成功":o}),setTimeout((function(){t.fetchData()}),1e3)}).catch(()=>{this.$message({type:"info",message:"已取消删除"})})}}},c=(o("750a0"),o("d959")),d=o.n(c);const u=d()(s,[["render",r],["__scopeId","data-v-53bff08c"]]);t["default"]=u},c3a0:function(e,t,o){"use strict";o.r(t);var n=o("f2bf");const a={class:"manage-container"},r={class:"vab-base"},i={class:"vab-left-base"},l={class:"vab-input-base"},s={class:"vab-map-base"},c={class:"site-top-base"},d={class:"map-left-base"},u={class:"map-right-base"},m={class:"head-right-base",style:{"margin-bottom":"42px"}},h={class:"h1-head-base"},p={class:"item-right-base"},b={class:"item-right-base"},g={class:"item-right-base"},f={class:"item-right-base"},v={class:"item-right-base"},w={class:"item-right-base"},k={class:"item-right-base"},C={class:"item-right-base"},y={class:"item-right-base"},O={class:"site-bottom-base"},j={class:"record-right-base"},x={class:"h1-head-base"},_={class:"list-right-base"};function V(e,t,o,V,A,N){const D=Object(n["resolveComponent"])("el-option"),E=Object(n["resolveComponent"])("el-select"),T=Object(n["resolveComponent"])("el-button"),S=Object(n["resolveComponent"])("site-index"),B=Object(n["resolveComponent"])("el-tab-pane"),I=Object(n["resolveComponent"])("technology-index"),z=Object(n["resolveComponent"])("video-index"),F=Object(n["resolveComponent"])("water-index"),M=Object(n["resolveComponent"])("image-index"),L=Object(n["resolveComponent"])("el-tabs"),P=Object(n["resolveComponent"])("el-tag"),R=Object(n["resolveComponent"])("readable-index"),q=Object(n["resolveComponent"])("only-index");return Object(n["openBlock"])(),Object(n["createElementBlock"])("div",a,[Object(n["createElementVNode"])("div",r,[Object(n["createElementVNode"])("div",i,[Object(n["createElementVNode"])("div",l,[Object(n["createVNode"])(E,{modelValue:A.queryForm.deviceCode,"onUpdate:modelValue":t[0]||(t[0]=e=>A.queryForm.deviceCode=e),size:"medium",filterable:"",placeholder:e.$t("defalult.qxz"),onChange:N.getDeviceCode},{default:Object(n["withCtx"])(()=>[(Object(n["openBlock"])(!0),Object(n["createElementBlock"])(n["Fragment"],null,Object(n["renderList"])(A.deviceData,e=>(Object(n["openBlock"])(),Object(n["createBlock"])(D,{key:e.code,size:"medium",label:e.name,value:e.code},null,8,["label","value"]))),128))]),_:1},8,["modelValue","placeholder","onChange"]),Object(n["createVNode"])(T,{type:"primary",size:"medium",onClick:N.search},{default:Object(n["withCtx"])(()=>[Object(n["createTextVNode"])(Object(n["toDisplayString"])(e.$t("defalult.ss")),1)]),_:1},8,["onClick"])])])]),Object(n["createElementVNode"])("div",s,[Object(n["createElementVNode"])("div",c,[Object(n["createElementVNode"])("div",d,[Object(n["createVNode"])(L,{modelValue:A.activeName,"onUpdate:modelValue":t[1]||(t[1]=e=>A.activeName=e),onTabClick:N.handleClick},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(B,{label:e.$t("siteDetails.zddp"),name:"first"},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(S,{ref:"site",deviceCode:A.queryForm.id},null,8,["deviceCode"])]),_:1},8,["label"]),Object(n["createVNode"])(B,{label:e.$t("siteDetails.zdzt"),name:"second"},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(I,{ref:"technology",deviceCode:[A.queryForm.deviceCode,A.queryForm.screenView]},null,8,["deviceCode"])]),_:1},8,["label"]),Object(n["createVNode"])(B,{label:e.$t("siteDetails.jksp"),name:"third"},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(z,{ref:"video",deviceCode:A.queryForm.deviceCode},null,8,["deviceCode"])]),_:1},8,["label"]),Object(n["createVNode"])(B,{label:e.$t("siteDetails.szdbl"),name:"fourth"},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(F,{ref:"water",deviceCode:A.queryForm.deviceCode},null,8,["deviceCode"])]),_:1},8,["label"]),Object(n["createVNode"])(B,{label:e.$t("siteDetails.zptp"),name:"five"},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(M,{ref:"image",deviceCode:A.queryForm.deviceCode},null,8,["deviceCode"])]),_:1},8,["label"])]),_:1},8,["modelValue","onTabClick"])]),Object(n["createElementVNode"])("div",u,[Object(n["createElementVNode"])("div",m,[Object(n["createElementVNode"])("text",h,Object(n["toDisplayString"])(e.$t("siteDetails.zdxx")),1)]),Object(n["createElementVNode"])("div",p,[Object(n["createElementVNode"])("span",null,Object(n["toDisplayString"])(e.$t("siteDetails.zdbh"))+""+Object(n["toDisplayString"])(A.deviceInfo.code),1)]),Object(n["createElementVNode"])("div",b,[Object(n["createElementVNode"])("span",null,Object(n["toDisplayString"])(e.$t("siteDetails.xlh"))+""+Object(n["toDisplayString"])(A.deviceInfo.serial),1)]),Object(n["createElementVNode"])("div",g,[Object(n["createElementVNode"])("span",null,Object(n["toDisplayString"])(e.$t("siteDetails.wlwk"))+""+Object(n["toDisplayString"])(A.deviceInfo.sim),1)]),Object(n["createElementVNode"])("div",f,[Object(n["createElementVNode"])("span",null,Object(n["toDisplayString"])(e.$t("siteDetails.yxzt"))+"",1),1==A.deviceInfo.status?(Object(n["openBlock"])(),Object(n["createBlock"])(P,{key:0,type:"success"},{default:Object(n["withCtx"])(()=>[Object(n["createTextVNode"])(Object(n["toDisplayString"])(e.$t("siteDetails.zx")),1)]),_:1})):(Object(n["openBlock"])(),Object(n["createBlock"])(P,{key:1,type:"danger"},{default:Object(n["withCtx"])(()=>[Object(n["createTextVNode"])(Object(n["toDisplayString"])(e.$t("siteDetails.lx")),1)]),_:1})),Object(n["createElementVNode"])("span",null,Object(n["toDisplayString"])(A.deviceInfo.statusRemark),1)]),Object(n["createElementVNode"])("div",v,[Object(n["createElementVNode"])("span",null,Object(n["toDisplayString"])(e.$t("siteDetails.sbgg"))+""+Object(n["toDisplayString"])(A.deviceInfo.specifications),1)]),Object(n["createElementVNode"])("div",w,[Object(n["createElementVNode"])("span",null,Object(n["toDisplayString"])(e.$t("siteDetails.csbz"))+""+Object(n["toDisplayString"])(A.deviceInfo.outStandard),1)]),Object(n["createElementVNode"])("div",k,[Object(n["createElementVNode"])("span",null,Object(n["toDisplayString"])(e.$t("siteDetails.ffhs"))+""+Object(n["toDisplayString"])(A.deviceInfo.userNum),1)]),Object(n["createElementVNode"])("div",C,[Object(n["createElementVNode"])("span",null,Object(n["toDisplayString"])(e.$t("siteDetails.ywry"))+""+Object(n["toDisplayString"])(A.deviceInfo.leader),1)]),Object(n["createElementVNode"])("div",y,[Object(n["createElementVNode"])("span",null,Object(n["toDisplayString"])(e.$t("siteDetails.lxfs"))+""+Object(n["toDisplayString"])(A.deviceInfo.contact),1)])])]),Object(n["createElementVNode"])("div",O,[Object(n["createElementVNode"])("div",j,[Object(n["createElementVNode"])("text",x,Object(n["toDisplayString"])(e.$t("siteDetails.yckz")),1)]),Object(n["createElementVNode"])("div",_,[Object(n["createVNode"])(L,{modelValue:A.activeDataName,"onUpdate:modelValue":t[2]||(t[2]=e=>A.activeDataName=e),onTabClick:N.handleDataClick},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(B,{label:e.$t("siteDetails.kd"),name:"data-first"},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(R,{ref:"readable",deviceCode:A.queryForm.deviceCode},null,8,["deviceCode"])]),_:1},8,["label"]),Object(n["createVNode"])(B,{label:e.$t("siteDetails.zx"),name:"data-second"},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(q,{ref:"only",deviceCode:A.queryForm.deviceCode},null,8,["deviceCode"])]),_:1},8,["label"])]),_:1},8,["modelValue","onTabClick"])])])])])}var A=o("7cf8"),N=o("fab9"),D=o("4543"),E=o("85f8"),T=o("35e0"),S=o("8a34"),B=o("2161"),I=o("1e8c"),z={components:{technologyIndex:N["default"],siteIndex:I["default"],videoIndex:D["default"],waterIndex:E["default"],imageIndex:T["default"],readableIndex:S["default"],onlyIndex:B["default"]},data(){return{activeName:"first",activeDataName:"data-first",listLoading:!1,deviceData:[],deviceInfo:[],sensorData:[],form:{resource:""},addFormVisible:!1,editFormVisible:!1,queryForm:{deviceCode:"",projectId:"",screenView:"",id:""}}},created(){this.queryForm.projectId=sessionStorage.getItem("projectId"),this.getDeviceData()},methods:{handleClick(e,t){const o=this.queryForm.deviceCode;"first"==e.paneName?this.$refs["site"].showData({deviceCode:o}):"second"==e.paneName?this.$refs["technology"].showData({deviceCode:o}):"third"==e.paneName?this.$refs["video"].showData({deviceCode:o}):"fourth"==e.paneName?this.$refs["water"].showData({deviceCode:o}):"five"==e.paneName&&this.$refs["image"].showData({deviceCode:o})},getDeviceCode(e){var t={};t=this.deviceData.find(t=>t.code===e),this.queryForm.screenView=t.screenView,this.queryForm.id=t.id},handleDataClick(e,t){const o=this.queryForm.deviceCode;"data-first"==e.paneName?this.$refs["readable"].showData({deviceCode:o}):"data-second"==e.paneName&&this.$refs["only"].showData({deviceCode:o})},async getDeviceData(){const{data:e}=await Object(A["getDeviceList"])(this.queryForm);e&&(this.queryForm.deviceCode=e[0].code,this.queryForm.screenView=e[0].screenView,this.queryForm.id=e[0].id),this.deviceData=e,this.getDeviceDetail(),this.$refs["readable"].showData({deviceCode:this.queryForm.deviceCode})},async getDeviceDetail(){const{data:e}=await Object(A["getDeviceInfos"])(this.queryForm);this.deviceInfo=e},search(){this.getDeviceDetail(),this.$refs["readable"].showData({deviceCode:this.queryForm.deviceCode})}}},F=(o("5ee6"),o("d959")),M=o.n(F);const L=M()(z,[["render",V]]);t["default"]=L},c3be:function(e,t,o){"use strict";o.r(t),o.d(t,"getList",(function(){return r})),o.d(t,"getDictData",(function(){return i})),o.d(t,"getEquipments",(function(){return l})),o.d(t,"doAdd",(function(){return s})),o.d(t,"doEdit",(function(){return c})),o.d(t,"doDelete",(function(){return d})),o.d(t,"doExport",(function(){return u})),o.d(t,"toTask",(function(){return m}));var n=o("b775"),a=o("f121");function r(e){let t="?page="+e.page+"&size="+e.size+"&projectId="+e.projectId;return""!=e.deviceName&&(t+="&deviceName="+e.deviceName),""!=e.repairPersonName&&(t+="&repairPersonName="+e.repairPersonName),""!=e.deviceType&&(t+="&deviceType="+e.deviceType),""!=e.repairItem&&(t+="&repairItem="+e.repairItem),""!=e.repairType&&(t+="&repairType="+e.repairType),Object(n["default"])({url:"/repair/list"+t,method:"get",data:e})}function i(e){return Object(n["default"])({url:"/repair/dict",method:"get",data:e})}function l(e){return Object(n["default"])({url:"/repair/equipments?deviceCode="+e.deviceCode,method:"get",data:e})}function s(e){return Object(n["default"])({url:"/repair/add",method:"post",data:e})}function c(e){return Object(n["default"])({url:"/repair/update",method:"post",data:e})}function d(e){return Object(n["default"])({url:"/repair/remove",method:"post",data:e})}function u(e){var t="?projectId="+e.projectId;return""!=e.deviceName&&(t+="&deviceName="+e.deviceName),""!=e.repairPersonName&&(t+="&repairPersonName="+e.repairPersonName),""!=e.deviceType&&(t+="&deviceType="+e.deviceType),""!=e.equipmentName&&(t+="&equipmentName="+e.equipmentName),""!=e.repairType&&(t+="&repairType="+e.repairType),a["baseURL"]+"repair/export"+t}function m(e){return Object(n["default"])({url:"/repair/toTask",method:"post",data:e})}},c471:function(e,t,o){(function(e,n){o("d9e2"),o("33d1"),o("14d9"),o("13d5"),o("2c667"),o("249d"),o("40e9"),o("1e70"),o("79a4"),o("c1a1"),o("8b00"),o("a4e7"),o("1e5a"),o("72c3"),o("ea98"),o("a1f0"),o("907a"),o("986a"),o("1d02"),o("3c5d"),o("6ce5"),o("2834"),o("4ea1"),o("b7ef"),o("c73d"),o("88a7"),o("271a"),o("5494"),function(e){const t=e["zh-cn"]=e["zh-cn"]||{};t.dictionary=Object.assign(t.dictionary||{},{"%0 of %1":"第 %0 步,共 %1 步",Aquamarine:"海蓝色",Big:"大",Black:"黑色","Block quote":"块引用",Blue:"蓝色","Blue marker":"蓝色标记",Bold:"加粗","Break text":"文字断行","Bulleted List":"项目符号列表",Cancel:"取消","Cannot determine a category for the uploaded file.":"无法确定上传文件的类别。","Cannot upload file:":"无法上传的文件:","Caption for image: %0":"图片说明:%0","Caption for the image":"图片说明:","Centered image":"图片居中","Change image text alternative":"更改图片替换文本","Choose heading":"标题类型",Column:"列","Decrease indent":"减少缩进",Default:"默认","Delete column":"删除本列","Delete row":"删除本行","Dim grey":"暗灰色","Document colors":"文档中的颜色",Downloadable:"可下载","Dropdown toolbar":"下拉工具栏","Edit block":"编辑框","Edit link":"修改链接","Editor block content toolbar":"编辑器块内容工具栏","Editor contextual toolbar":"编辑器上下文工具栏","Editor editing area: %0":"编辑器编辑区域:%0","Editor toolbar":"编辑器工具栏","Enter image caption":"输入图片标题","Font Background Color":"字体背景色","Font Color":"字体颜色","Font Family":"字体","Font Size":"字体大小","Full size image":"全尺寸图片",Green:"绿色","Green marker":"绿色标记","Green pen":"绿色笔",Grey:"灰色","Header column":"标题列","Header row":"标题行",Heading:"标题","Heading 1":"标题 1","Heading 2":"标题 2","Heading 3":"标题 3","Heading 4":"标题 4","Heading 5":"标题 5","Heading 6":"标题 6",Highlight:"高亮",Huge:"极大","Image toolbar":"图片工具栏","image widget":"图片组件","In line":"行内","Increase indent":"增加缩进","Insert column left":"左侧插入列","Insert column right":"右侧插入列","Insert image":"插入图像","Insert media":"插入媒体","Insert paragraph after block":"在后面插入段落","Insert paragraph before block":"在前面插入段落","Insert row above":"在上面插入一行","Insert row below":"在下面插入一行","Insert table":"插入表格",Italic:"倾斜","Left aligned image":"图片左侧对齐","Light blue":"浅蓝色","Light green":"浅绿色","Light grey":"浅灰色",Link:"超链接","Link URL":"链接网址","Media URL":"媒体URL","media widget":"媒体小部件","Merge cell down":"向下合并单元格","Merge cell left":"向左合并单元格","Merge cell right":"向右合并单元格","Merge cell up":"向上合并单元格","Merge cells":"合并单元格",Next:"下一步","Numbered List":"项目编号列表","Open file manager":"打开文件管理器","Open in a new tab":"在新标签页中打开","Open link in new tab":"在新标签页中打开链接","Open media in new tab":"在新标签页打开媒体",Orange:"橙色",Paragraph:"段落","Paste the media URL in the input.":"在输入中粘贴媒体URL","Pink marker":"粉色标记","Press Enter to type after or press Shift + Enter to type before the widget":"按下“Enter”键在小组件后输入按下“Shift+Enter”键在小组件前输入",Previous:"上一步",Purple:"紫色",Red:"红色","Red pen":"红色笔",Redo:"重做","Remove color":"移除颜色","Remove highlight":"清除高亮","Rich Text Editor":"富文本编辑器","Right aligned image":"图片右侧对齐",Row:"行",Save:"保存","Select all":"全选","Select column":"选择列","Select row":"选择行","Show more items":"显示更多","Side image":"图片侧边显示",Small:"小","Split cell horizontally":"横向拆分单元格","Split cell vertically":"纵向拆分单元格","Table toolbar":"表格工具栏","Text alternative":"替换文本","Text highlight toolbar":"文本高亮工具栏","The URL must not be empty.":"URL不可以为空。","This link has no URL":"此链接没有设置网址","This media URL is not supported.":"不支持此媒体URL。",Tiny:"极小","Tip: Paste the URL into the content to embed faster.":"提示将URL粘贴到内容中可更快地嵌入","Toggle caption off":"关闭表标题","Toggle caption on":"打开表标题",Turquoise:"青色",Undo:"撤销",Unlink:"取消超链接","Upload failed":"上传失败","Upload in progress":"正在上传",White:"白色","Widget toolbar":"小部件工具栏","Wrap text":"文字环绕",Yellow:"黄色","Yellow marker":"黄色标记"}),t.getPluralForm=function(e){return 0}}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={})),
/*!
* @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
* For licensing, see LICENSE.md.
*/
function(e,t){n.exports=t()}(self,()=>(()=>{"use strict";var o={636:(e,t,o)=>{o.d(t,{Z:()=>l});var n=o(4015),a=o.n(n),r=o(3645),i=o.n(r)()(a());i.push([e.id,".ck-content blockquote{border-left:5px solid #ccc;font-style:italic;margin-left:0;margin-right:0;overflow:hidden;padding-left:1.5em;padding-right:1.5em}.ck-content[dir=rtl] blockquote{border-left:0;border-right:5px solid #ccc}","",{version:3,sources:["webpack://./node_modules/@ckeditor/ckeditor5-block-quote/theme/blockquote.css"],names:[],mappings:"AAKA,uBAWC,0BAAsC,CADtC,iBAAkB,CAFlB,aAAc,CACd,cAAe,CAPf,eAAgB,CAIhB,kBAAmB,CADnB,mBAOD,CAEA,gCACC,aAAc,CACd,2BACD",sourcesContent:['/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck-content blockquote {\n\t/* See #12 */\n\toverflow: hidden;\n\n\t/* https://github.com/ckeditor/ckeditor5-block-quote/issues/15 */\n\tpadding-right: 1.5em;\n\tpadding-left: 1.5em;\n\n\tmargin-left: 0;\n\tmargin-right: 0;\n\tfont-style: italic;\n\tborder-left: solid 5px hsl(0, 0%, 80%);\n}\n\n.ck-content[dir="rtl"] blockquote {\n\tborder-left: 0;\n\tborder-right: solid 5px hsl(0, 0%, 80%);\n}\n'],sourceRoot:""}]);const l=i},390:(e,t,o)=>{o.d(t,{Z:()=>l});var n=o(4015),a=o.n(n),r=o(3645),i=o.n(r)()(a());i.push([e.id,'.ck.ck-editor__editable .ck.ck-clipboard-drop-target-position{display:inline;pointer-events:none;position:relative}.ck.ck-editor__editable .ck.ck-clipboard-drop-target-position span{position:absolute;width:0}.ck.ck-editor__editable .ck-widget:-webkit-drag>.ck-widget__selection-handle,.ck.ck-editor__editable .ck-widget:-webkit-drag>.ck-widget__type-around{display:none}:root{--ck-clipboard-drop-target-dot-width:12px;--ck-clipboard-drop-target-dot-height:8px;--ck-clipboard-drop-target-color:var(--ck-color-focus-border)}.ck.ck-editor__editable .ck.ck-clipboard-drop-target-position span{background:var(--ck-clipboard-drop-target-color);border:1px solid var(--ck-clipboard-drop-target-color);bottom:calc(var(--ck-clipboard-drop-target-dot-height)*-.5);margin-left:-1px;top:calc(var(--ck-clipboard-drop-target-dot-height)*-.5)}.ck.ck-editor__editable .ck.ck-clipboard-drop-target-position span:after{border-color:var(--ck-clipboard-drop-target-color) transparent transparent transparent;border-style:solid;border-width:calc(var(--ck-clipboard-drop-target-dot-height)) calc(var(--ck-clipboard-drop-target-dot-width)*.5) 0 calc(var(--ck-clipboard-drop-target-dot-width)*.5);content:"";display:block;height:0;left:50%;position:absolute;top:calc(var(--ck-clipboard-drop-target-dot-height)*-.5);transform:translateX(-50%);width:0}.ck.ck-editor__editable .ck-widget.ck-clipboard-drop-target-range{outline:var(--ck-widget-outline-thickness) solid var(--ck-clipboard-drop-target-color)!important}.ck.ck-editor__editable .ck-widget:-webkit-drag{zoom:.6;outline:none!important}',"",{version:3,sources:["webpack://./node_modules/@ckeditor/ckeditor5-clipboard/theme/clipboard.css","webpack://./node_modules/@ckeditor/ckeditor5-theme-lark/theme/ckeditor5-clipboard/clipboard.css"],names:[],mappings:"AASC,8DACC,cAAe,CAEf,mBAAoB,CADpB,iBAOD,CAJC,mEACC,iBAAkB,CAClB,OACD,CAWA,qJACC,YACD,CCzBF,MACC,yCAA0C,CAC1C,yCAA0C,CAC1C,6DACD,CAOE,mEAIC,gDAAiD,CADjD,sDAAuD,CAFvD,2DAA8D,CAI9D,gBAAiB,CAHjB,wDAqBD,CAfC,yEAWC,sFAAuF,CAEvF,kBAAmB,CADnB,qKAA0K,CAX1K,UAAW,CAIX,aAAc,CAFd,QAAS,CAIT,QAAS,CADT,iBAAkB,CAElB,wDAA2D,CAE3D,0BAA2B,CAR3B,OAYD,CA2DF,kEACC,gGACD,CAKA,gDACC,OAAS,CACT,sBACD",sourcesContent:["/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck.ck-editor__editable {\n\t/*\n\t * Vertical drop target (in text).\n\t */\n\t& .ck.ck-clipboard-drop-target-position {\n\t\tdisplay: inline;\n\t\tposition: relative;\n\t\tpointer-events: none;\n\n\t\t& span {\n\t\t\tposition: absolute;\n\t\t\twidth: 0;\n\t\t}\n\t}\n\n\t/*\n\t * Styles of the widget being dragged (its preview).\n\t */\n\t& .ck-widget:-webkit-drag {\n\t\t& > .ck-widget__selection-handle {\n\t\t\tdisplay: none;\n\t\t}\n\n\t\t& > .ck-widget__type-around {\n\t\t\tdisplay: none;\n\t\t}\n\t}\n}\n",'/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n:root {\n\t--ck-clipboard-drop-target-dot-width: 12px;\n\t--ck-clipboard-drop-target-dot-height: 8px;\n\t--ck-clipboard-drop-target-color: var(--ck-color-focus-border)\n}\n\n.ck.ck-editor__editable {\n\t/*\n\t * Vertical drop target (in text).\n\t */\n\t& .ck.ck-clipboard-drop-target-position {\n\t\t& span {\n\t\t\tbottom: calc(-.5 * var(--ck-clipboard-drop-target-dot-height));\n\t\t\ttop: calc(-.5 * var(--ck-clipboard-drop-target-dot-height));\n\t\t\tborder: 1px solid var(--ck-clipboard-drop-target-color);\n\t\t\tbackground: var(--ck-clipboard-drop-target-color);\n\t\t\tmargin-left: -1px;\n\n\t\t\t/* The triangle above the marker */\n\t\t\t&::after {\n\t\t\t\tcontent: "";\n\t\t\t\twidth: 0;\n\t\t\t\theight: 0;\n\n\t\t\t\tdisplay: block;\n\t\t\t\tposition: absolute;\n\t\t\t\tleft: 50%;\n\t\t\t\ttop: calc(var(--ck-clipboard-drop-target-dot-height) * -.5);\n\n\t\t\t\ttransform: translateX(-50%);\n\t\t\t\tborder-color: var(--ck-clipboard-drop-target-color) transparent transparent transparent;\n\t\t\t\tborder-width: calc(var(--ck-clipboard-drop-target-dot-height)) calc(.5 * var(--ck-clipboard-drop-target-dot-width)) 0 calc(.5 * var(--ck-clipboard-drop-target-dot-width));\n\t\t\t\tborder-style: solid;\n\t\t\t}\n\t\t}\n\t}\n\n\t/*\n\t// Horizontal drop target (between blocks).\n\t& .ck.ck-clipboard-drop-target-position {\n\t\tdisplay: block;\n\t\tposition: relative;\n\t\twidth: 100%;\n\t\theight: 0;\n\t\tmargin: 0;\n\t\ttext-align: initial;\n\n\t\t& .ck-clipboard-drop-target__line {\n\t\t\tposition: absolute;\n\t\t\twidth: 100%;\n\t\t\theight: 0;\n\t\t\tborder: 1px solid var(--ck-clipboard-drop-target-color);\n\t\t\tmargin-top: -1px;\n\n\t\t\t&::before {\n\t\t\t\tcontent: "";\n\t\t\t\twidth: 0;\n\t\t\t\theight: 0;\n\n\t\t\t\tdisplay: block;\n\t\t\t\tposition: absolute;\n\t\t\t\tleft: calc(-1 * var(--ck-clipboard-drop-target-dot-size));\n\t\t\t\ttop: 0;\n\n\t\t\t\ttransform: translateY(-50%);\n\t\t\t\tborder-color: transparent transparent transparent var(--ck-clipboard-drop-target-color);\n\t\t\t\tborder-width: var(--ck-clipboard-drop-target-dot-size) 0 var(--ck-clipboard-drop-target-dot-size) calc(2 * var(--ck-clipboard-drop-target-dot-size));\n\t\t\t\tborder-style: solid;\n\t\t\t}\n\n\t\t\t&::after {\n\t\t\t\tcontent: "";\n\t\t\t\twidth: 0;\n\t\t\t\theight: 0;\n\n\t\t\t\tdisplay: block;\n\t\t\t\tposition: absolute;\n\t\t\t\tright: calc(-1 * var(--ck-clipboard-drop-target-dot-size));\n\t\t\t\ttop: 0;\n\n\t\t\t\ttransform: translateY(-50%);\n\t\t\t\tborder-color: transparent var(--ck-clipboard-drop-target-color) transparent transparent;\n\t\t\t\tborder-width: var(--ck-clipboard-drop-target-dot-size) calc(2 * var(--ck-clipboard-drop-target-dot-size)) var(--ck-clipboard-drop-target-dot-size) 0;\n\t\t\t\tborder-style: solid;\n\t\t\t}\n\t\t}\n\t}\n\t*/\n\n\t/*\n\t * Styles of the widget that it a drop target.\n\t */\n\t& .ck-widget.ck-clipboard-drop-target-range {\n\t\toutline: var(--ck-widget-outline-thickness) solid var(--ck-clipboard-drop-target-color) !important;\n\t}\n\n\t/*\n\t * Styles of the widget being dragged (its preview).\n\t */\n\t& .ck-widget:-webkit-drag {\n\t\tzoom: 0.6;\n\t\toutline: none !important;\n\t}\n}\n'],sourceRoot:""}]);const l=i},3638:(e,t,o)=>{o.d(t,{Z:()=>l});var n=o(4015),a=o.n(n),r=o(3645),i=o.n(r)()(a());i.push([e.id,".ck.ck-editor{position:relative}.ck.ck-editor .ck-editor__top .ck-sticky-panel .ck-toolbar{z-index:var(--ck-z-modal)}.ck.ck-editor__top .ck-sticky-panel .ck-toolbar{border-radius:0}.ck-rounded-corners .ck.ck-editor__top .ck-sticky-panel .ck-toolbar,.ck.ck-editor__top .ck-sticky-panel .ck-toolbar.ck-rounded-corners{border-radius:var(--ck-border-radius);border-bottom-left-radius:0;border-bottom-right-radius:0}.ck.ck-editor__top .ck-sticky-panel .ck-toolbar{border-bottom-width:0}.ck.ck-editor__top .ck-sticky-panel .ck-sticky-panel__content_sticky .ck-toolbar{border-bottom-width:1px;border-radius:0}.ck-rounded-corners .ck.ck-editor__top .ck-sticky-panel .ck-sticky-panel__content_sticky .ck-toolbar,.ck.ck-editor__top .ck-sticky-panel .ck-sticky-panel__content_sticky .ck-toolbar.ck-rounded-corners{border-radius:var(--ck-border-radius);border-radius:0}.ck.ck-editor__main>.ck-editor__editable{background:var(--ck-color-base-background);border-radius:0}.ck-rounded-corners .ck.ck-editor__main>.ck-editor__editable,.ck.ck-editor__main>.ck-editor__editable.ck-rounded-corners{border-radius:var(--ck-border-radius);border-top-left-radius:0;border-top-right-radius:0}.ck.ck-editor__main>.ck-editor__editable:not(.ck-focused){border-color:var(--ck-color-base-border)}","",{version:3,sources:["webpack://./node_modules/@ckeditor/ckeditor5-editor-classic/theme/classiceditor.css","webpack://./node_modules/@ckeditor/ckeditor5-theme-lark/theme/ckeditor5-editor-classic/classiceditor.css","webpack://./node_modules/@ckeditor/ckeditor5-theme-lark/theme/mixins/_rounded.css"],names:[],mappings:"AAKA,cAIC,iBAMD,CAJC,2DAEC,yBACD,CCLC,gDCED,eDKC,CAPA,uICMA,qCAAsC,CDJpC,2BAA4B,CAC5B,4BAIF,CAPA,gDAMC,qBACD,CAEA,iFACC,uBAAwB,CCR1B,eDaC,CANA,yMCHA,qCAAsC,CDOpC,eAEF,CAKF,yCAEC,0CAA2C,CCpB3C,eD8BD,CAZA,yHCdE,qCAAsC,CDmBtC,wBAAyB,CACzB,yBAMF,CAHC,0DACC,wCACD",sourcesContent:["/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck.ck-editor {\n\t/* All the elements within `.ck-editor` are positioned relatively to it.\n\t If any element needs to be positioned with respect to the <body>, etc.,\n\t it must land outside of the `.ck-editor` in DOM. */\n\tposition: relative;\n\n\t& .ck-editor__top .ck-sticky-panel .ck-toolbar {\n\t\t/* https://github.com/ckeditor/ckeditor5-editor-classic/issues/62 */\n\t\tz-index: var(--ck-z-modal);\n\t}\n}\n",'/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "../mixins/_rounded.css";\n\n.ck.ck-editor__top {\n\t& .ck-sticky-panel {\n\t\t& .ck-toolbar {\n\t\t\t@mixin ck-rounded-corners {\n\t\t\t\tborder-bottom-left-radius: 0;\n\t\t\t\tborder-bottom-right-radius: 0;\n\t\t\t}\n\n\t\t\tborder-bottom-width: 0;\n\t\t}\n\n\t\t& .ck-sticky-panel__content_sticky .ck-toolbar {\n\t\t\tborder-bottom-width: 1px;\n\n\t\t\t@mixin ck-rounded-corners {\n\t\t\t\tborder-radius: 0;\n\t\t\t}\n\t\t}\n\t}\n}\n\n/* Note: Use ck-editor__main to make sure these styles don\'t apply to other editor types */\n.ck.ck-editor__main > .ck-editor__editable {\n\t/* https://github.com/ckeditor/ckeditor5-theme-lark/issues/113 */\n\tbackground: var(--ck-color-base-background);\n\n\t@mixin ck-rounded-corners {\n\t\tborder-top-left-radius: 0;\n\t\tborder-top-right-radius: 0;\n\t}\n\n\t&:not(.ck-focused) {\n\t\tborder-color: var(--ck-color-base-border);\n\t}\n}\n',"/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * Implements rounded corner interface for .ck-rounded-corners class.\n *\n * @see $ck-border-radius\n */\n@define-mixin ck-rounded-corners {\n\tborder-radius: 0;\n\n\t@nest .ck-rounded-corners &,\n\t&.ck-rounded-corners {\n\t\tborder-radius: var(--ck-border-radius);\n\t\t@mixin-content;\n\t}\n}\n"],sourceRoot:""}]);const l=i},8894:(e,t,o)=>{o.d(t,{Z:()=>l});var n=o(4015),a=o.n(n),r=o(3645),i=o.n(r)()(a());i.push([e.id,".ck .ck-placeholder,.ck.ck-placeholder{position:relative}.ck .ck-placeholder:before,.ck.ck-placeholder:before{content:attr(data-placeholder);left:0;pointer-events:none;position:absolute;right:0}.ck.ck-read-only .ck-placeholder:before{display:none}.ck.ck-reset_all .ck-placeholder{position:relative}.ck .ck-placeholder:before,.ck.ck-placeholder:before{color:var(--ck-color-engine-placeholder-text);cursor:text}","",{version:3,sources:["webpack://./node_modules/@ckeditor/ckeditor5-engine/theme/placeholder.css","webpack://./node_modules/@ckeditor/ckeditor5-theme-lark/theme/ckeditor5-engine/placeholder.css"],names:[],mappings:"AAMA,uCAEC,iBAWD,CATC,qDAIC,8BAA+B,CAF/B,MAAO,CAKP,mBAAoB,CANpB,iBAAkB,CAElB,OAKD,CAKA,wCACC,YACD,CAQD,iCACC,iBACD,CC5BC,qDAEC,6CAA8C,CAD9C,WAED",sourcesContent:["/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/* See ckeditor/ckeditor5#936. */\n.ck.ck-placeholder,\n.ck .ck-placeholder {\n\tposition: relative;\n\n\t&::before {\n\t\tposition: absolute;\n\t\tleft: 0;\n\t\tright: 0;\n\t\tcontent: attr(data-placeholder);\n\n\t\t/* See ckeditor/ckeditor5#469. */\n\t\tpointer-events: none;\n\t}\n}\n\n/* See ckeditor/ckeditor5#1987. */\n.ck.ck-read-only .ck-placeholder {\n\t&::before {\n\t\tdisplay: none;\n\t}\n}\n\n/*\n * Rules for the `ck-placeholder` are loaded before the rules for `ck-reset_all` in the base CKEditor 5 DLL build.\n * This fix overwrites the incorrectly set `position: static` from `ck-reset_all`.\n * See https://github.com/ckeditor/ckeditor5/issues/11418.\n */\n.ck.ck-reset_all .ck-placeholder {\n\tposition: relative;\n}\n","/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/* See ckeditor/ckeditor5#936. */\n.ck.ck-placeholder, .ck .ck-placeholder {\n\t&::before {\n\t\tcursor: text;\n\t\tcolor: var(--ck-color-engine-placeholder-text);\n\t}\n}\n"],sourceRoot:""}]);const l=i},4401:(e,t,o)=>{o.d(t,{Z:()=>l});var n=o(4015),a=o.n(n),r=o(3645),i=o.n(r)()(a());i.push([e.id,".ck.ck-editor__editable span[data-ck-unsafe-element]{display:none}","",{version:3,sources:["webpack://./node_modules/@ckeditor/ckeditor5-engine/theme/renderer.css"],names:[],mappings:"AAMA,qDACC,YACD",sourcesContent:["/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/* Elements marked by the Renderer as hidden should be invisible in the editor. */\n.ck.ck-editor__editable span[data-ck-unsafe-element] {\n\tdisplay: none;\n}\n"],sourceRoot:""}]);const l=i},2585:(e,t,o)=>{o.d(t,{Z:()=>l});var n=o(4015),a=o.n(n),r=o(3645),i=o.n(r)()(a());i.push([e.id,".ck .ck-button.ck-color-table__remove-color{align-items:center;display:flex;width:100%}label.ck.ck-color-grid__label{font-weight:unset}.ck .ck-button.ck-color-table__remove-color{border-bottom-left-radius:0;border-bottom-right-radius:0;padding:calc(var(--ck-spacing-standard)/2) var(--ck-spacing-standard)}.ck .ck-button.ck-color-table__remove-color:not(:focus){border-bottom:1px solid var(--ck-color-base-border)}[dir=ltr] .ck .ck-button.ck-color-table__remove-color .ck.ck-icon{margin-right:var(--ck-spacing-standard)}[dir=rtl] .ck .ck-button.ck-color-table__remove-color .ck.ck-icon{margin-left:var(--ck-spacing-standard)}","",{version:3,sources:["webpack://./node_modules/@ckeditor/ckeditor5-font/theme/fontcolor.css","webpack://./node_modules/@ckeditor/ckeditor5-theme-lark/theme/ckeditor5-font/fontcolor.css"],names:[],mappings:"AAKA,4CAEC,kBAAmB,CADnB,YAAa,CAEb,UACD,CAEA,8BACC,iBACD,CCNA,4CAEC,2BAA4B,CAC5B,4BAA6B,CAF7B,qEAiBD,CAbC,wDACC,mDACD,CAEA,kEAEE,uCAMF,CARA,kEAME,sCAEF",sourcesContent:["/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck .ck-button.ck-color-table__remove-color {\n\tdisplay: flex;\n\talign-items: center;\n\twidth: 100%;\n}\n\nlabel.ck.ck-color-grid__label {\n\tfont-weight: unset;\n}\n",'/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "@ckeditor/ckeditor5-ui/theme/mixins/_dir.css";\n\n.ck .ck-button.ck-color-table__remove-color {\n\tpadding: calc(var(--ck-spacing-standard) / 2 ) var(--ck-spacing-standard);\n\tborder-bottom-left-radius: 0;\n\tborder-bottom-right-radius: 0;\n\n\t&:not(:focus) {\n\t\tborder-bottom: 1px solid var(--ck-color-base-border);\n\t}\n\n\t& .ck.ck-icon {\n\t\t@mixin ck-dir ltr {\n\t\t\tmargin-right: var(--ck-spacing-standard);\n\t\t}\n\n\t\t@mixin ck-dir rtl {\n\t\t\tmargin-left: var(--ck-spacing-standard);\n\t\t}\n\t}\n}\n\n'],sourceRoot:""}]);const l=i},6203:(e,t,o)=>{o.d(t,{Z:()=>l});var n=o(4015),a=o.n(n),r=o(3645),i=o.n(r)()(a());i.push([e.id,".ck-content .text-tiny{font-size:.7em}.ck-content .text-small{font-size:.85em}.ck-content .text-big{font-size:1.4em}.ck-content .text-huge{font-size:1.8em}","",{version:3,sources:["webpack://./node_modules/@ckeditor/ckeditor5-font/theme/fontsize.css"],names:[],mappings:"AAUC,uBACC,cACD,CAEA,wBACC,eACD,CAEA,sBACC,eACD,CAEA,uBACC,eACD",sourcesContent:['/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/* The values should be synchronized with the "FONT_SIZE_PRESET_UNITS" object in the "/src/fontsize/utils.js" file. */\n\n/* Styles should be prefixed with the `.ck-content` class.\nSee https://github.com/ckeditor/ckeditor5/issues/6636 */\n.ck-content {\n\t& .text-tiny {\n\t\tfont-size: .7em;\n\t}\n\n\t& .text-small {\n\t\tfont-size: .85em;\n\t}\n\n\t& .text-big {\n\t\tfont-size: 1.4em;\n\t}\n\n\t& .text-huge {\n\t\tfont-size: 1.8em;\n\t}\n}\n'],sourceRoot:""}]);const l=i},3230:(e,t,o)=>{o.d(t,{Z:()=>l});var n=o(4015),a=o.n(n),r=o(3645),i=o.n(r)()(a());i.push([e.id,".ck.ck-heading_heading1{font-size:20px}.ck.ck-heading_heading2{font-size:17px}.ck.ck-heading_heading3{font-size:14px}.ck[class*=ck-heading_heading]{font-weight:700}.ck.ck-dropdown.ck-heading-dropdown .ck-dropdown__button .ck-button__label{width:8em}.ck.ck-dropdown.ck-heading-dropdown .ck-dropdown__panel .ck-list__item{min-width:18em}","",{version:3,sources:["webpack://./node_modules/@ckeditor/ckeditor5-heading/theme/heading.css","webpack://./node_modules/@ckeditor/ckeditor5-theme-lark/theme/ckeditor5-heading/heading.css"],names:[],mappings:"AAKA,wBACC,cACD,CAEA,wBACC,cACD,CAEA,wBACC,cACD,CAEA,+BACC,eACD,CCZC,2EACC,SACD,CAEA,uEACC,cACD",sourcesContent:['/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck.ck-heading_heading1 {\n\tfont-size: 20px;\n}\n\n.ck.ck-heading_heading2 {\n\tfont-size: 17px;\n}\n\n.ck.ck-heading_heading3 {\n\tfont-size: 14px;\n}\n\n.ck[class*="ck-heading_heading"] {\n\tfont-weight: bold;\n}\n',"/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/* Resize dropdown's button label. */\n.ck.ck-dropdown.ck-heading-dropdown {\n\t& .ck-dropdown__button .ck-button__label {\n\t\twidth: 8em;\n\t}\n\n\t& .ck-dropdown__panel .ck-list__item {\n\t\tmin-width: 18em;\n\t}\n}\n"],sourceRoot:""}]);const l=i},713:(e,t,o)=>{o.d(t,{Z:()=>l});var n=o(4015),a=o.n(n),r=o(3645),i=o.n(r)()(a());i.push([e.id,":root{--ck-highlight-marker-yellow:#fdfd77;--ck-highlight-marker-green:#62f962;--ck-highlight-marker-pink:#fc7899;--ck-highlight-marker-blue:#72ccfd;--ck-highlight-pen-red:#e71313;--ck-highlight-pen-green:#128a00}.ck-content .marker-yellow{background-color:var(--ck-highlight-marker-yellow)}.ck-content .marker-green{background-color:var(--ck-highlight-marker-green)}.ck-content .marker-pink{background-color:var(--ck-highlight-marker-pink)}.ck-content .marker-blue{background-color:var(--ck-highlight-marker-blue)}.ck-content .pen-red{background-color:transparent;color:var(--ck-highlight-pen-red)}.ck-content .pen-green{background-color:transparent;color:var(--ck-highlight-pen-green)}","",{version:3,sources:["webpack://./node_modules/@ckeditor/ckeditor5-highlight/theme/highlight.css"],names:[],mappings:"AAKA,MACC,oCAA+C,CAC/C,mCAA+C,CAC/C,kCAA8C,CAC9C,kCAA8C,CAC9C,8BAAwC,CACxC,gCACD,CAGC,2BACC,kDACD,CAFA,0BACC,iDACD,CAFA,yBACC,gDACD,CAFA,yBACC,gDACD,CAIA,qBAIC,4BAA6B,CAH7B,iCAID,CALA,uBAIC,4BAA6B,CAH7B,mCAID",sourcesContent:["/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n:root {\n\t--ck-highlight-marker-yellow: hsl(60, 97%, 73%);\n\t--ck-highlight-marker-green: hsl(120, 93%, 68%);\n\t--ck-highlight-marker-pink: hsl(345, 96%, 73%);\n\t--ck-highlight-marker-blue: hsl(201, 97%, 72%);\n\t--ck-highlight-pen-red: hsl(0, 85%, 49%);\n\t--ck-highlight-pen-green: hsl(112, 100%, 27%);\n}\n\n@define-mixin highlight-marker-color $color {\n\t.ck-content .marker-$color {\n\t\tbackground-color: var(--ck-highlight-marker-$color);\n\t}\n}\n\n@define-mixin highlight-pen-color $color {\n\t.ck-content .pen-$color {\n\t\tcolor: var(--ck-highlight-pen-$color);\n\n\t\t/* Override default yellow background of `<mark>` from user agent stylesheet */\n\t\tbackground-color: transparent;\n\t}\n}\n\n@mixin highlight-marker-color yellow;\n@mixin highlight-marker-color green;\n@mixin highlight-marker-color pink;\n@mixin highlight-marker-color blue;\n\n@mixin highlight-pen-color red;\n@mixin highlight-pen-color green;\n"],sourceRoot:""}]);const l=i},9048:(e,t,o)=>{o.d(t,{Z:()=>l});var n=o(4015),a=o.n(n),r=o(3645),i=o.n(r)()(a());i.push([e.id,".ck-content .image{clear:both;display:table;margin:.9em auto;min-width:50px;text-align:center}.ck-content .image img{display:block;margin:0 auto;max-width:100%;min-width:100%}.ck-content .image-inline{align-items:flex-start;display:inline-flex;max-width:100%}.ck-content .image-inline picture{display:flex}.ck-content .image-inline img,.ck-content .image-inline picture{flex-grow:1;flex-shrink:1;max-width:100%}.ck.ck-editor__editable .image>figcaption.ck-placeholder:before{overflow:hidden;padding-left:inherit;padding-right:inherit;text-overflow:ellipsis;white-space:nowrap}.ck.ck-editor__editable .image-inline.ck-widget_selected,.ck.ck-editor__editable .image.ck-widget_selected{z-index:1}.ck.ck-editor__editable .image-inline.ck-widget_selected ::selection{display:none}.ck.ck-editor__editable td .image-inline img,.ck.ck-editor__editable th .image-inline img{max-width:none}","",{version:3,sources:["webpack://./node_modules/@ckeditor/ckeditor5-image/theme/image.css"],names:[],mappings:"AAMC,mBAEC,UAAW,CADX,aAAc,CAOd,gBAAkB,CAGlB,cAAe,CARf,iBAuBD,CAbC,uBAEC,aAAc,CAGd,aAAc,CAGd,cAAe,CAGf,cACD,CAGD,0BAYC,sBAAuB,CANvB,mBAAoB,CAGpB,cAoBD,CAdC,kCACC,YACD,CAGA,gEAGC,WAAY,CACZ,aAAc,CAGd,cACD,CAUD,gEASC,eAAgB,CARhB,oBAAqB,CACrB,qBAAsB,CAQtB,sBAAuB,CAFvB,kBAGD,CAWA,2GACC,SAUD,CAHC,qEACC,YACD,CAOA,0FACC,cACD",sourcesContent:['/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck-content {\n\t& .image {\n\t\tdisplay: table;\n\t\tclear: both;\n\t\ttext-align: center;\n\n\t\t/* Make sure there is some space between the content and the image. Center image by default. */\n\t\t/* The first value should be equal to --ck-spacing-large variable if used in the editor context\n\t \tto avoid the content jumping (See https://github.com/ckeditor/ckeditor5/issues/9825). */\n\t\tmargin: 0.9em auto;\n\n\t\t/* Make sure the caption will be displayed properly (See: https://github.com/ckeditor/ckeditor5/issues/1870). */\n\t\tmin-width: 50px;\n\n\t\t& img {\n\t\t\t/* Prevent unnecessary margins caused by line-height (see #44). */\n\t\t\tdisplay: block;\n\n\t\t\t/* Center the image if its width is smaller than the content\'s width. */\n\t\t\tmargin: 0 auto;\n\n\t\t\t/* Make sure the image never exceeds the size of the parent container (ckeditor/ckeditor5-ui#67). */\n\t\t\tmax-width: 100%;\n\n\t\t\t/* Make sure the image is never smaller than the parent container (See: https://github.com/ckeditor/ckeditor5/issues/9300). */\n\t\t\tmin-width: 100%\n\t\t}\n\t}\n\n\t& .image-inline {\n\t\t/*\n\t\t * Normally, the .image-inline would have "display: inline-block" and "img { width: 100% }" (to follow the wrapper while resizing).\n\t\t * Unfortunately, together with "srcset", it gets automatically stretched up to the width of the editing root.\n\t\t * This strange behavior does not happen with inline-flex.\n\t\t */\n\t\tdisplay: inline-flex;\n\n\t\t/* While being resized, don\'t allow the image to exceed the width of the editing root. */\n\t\tmax-width: 100%;\n\n\t\t/* This is required by Safari to resize images in a sensible way. Without this, the browser breaks the ratio. */\n\t\talign-items: flex-start;\n\n\t\t/* When the picture is present it must act as a flex container to let the img resize properly */\n\t\t& picture {\n\t\t\tdisplay: flex;\n\t\t}\n\n\t\t/* When the picture is present, it must act like a resizable img. */\n\t\t& picture,\n\t\t& img {\n\t\t\t/* This is necessary for the img to span the entire .image-inline wrapper and to resize properly. */\n\t\t\tflex-grow: 1;\n\t\t\tflex-shrink: 1;\n\n\t\t\t/* Prevents overflowing the editing root boundaries when an inline image is very wide. */\n\t\t\tmax-width: 100%;\n\t\t}\n\t}\n}\n\n.ck.ck-editor__editable {\n\t/*\n\t * Inhertit the content styles padding of the <figcaption> in case the integration overrides `text-align: center`\n\t * of `.image` (e.g. to the left/right). This ensures the placeholder stays at the padding just like the native\n\t * caret does, and not at the edge of <figcaption>.\n\t */\n\t& .image > figcaption.ck-placeholder::before {\n\t\tpadding-left: inherit;\n\t\tpadding-right: inherit;\n\n\t\t/*\n\t\t * Make sure the image caption placeholder doesn\'t overflow the placeholder area.\n\t\t * See https://github.com/ckeditor/ckeditor5/issues/9162.\n\t\t */\n\t\twhite-space: nowrap;\n\t\toverflow: hidden;\n\t\ttext-overflow: ellipsis;\n\t}\n\n\n\t/*\n\t * Make sure the selected inline image always stays on top of its siblings.\n\t * See https://github.com/ckeditor/ckeditor5/issues/9108.\n\t */\n\t& .image.ck-widget_selected {\n\t\tz-index: 1;\n\t}\n\n\t& .image-inline.ck-widget_selected {\n\t\tz-index: 1;\n\n\t\t/*\n\t\t * Make sure the native browser selection style is not displayed.\n\t\t * Inline image widgets have their own styles for the selected state and\n\t\t * leaving this up to the browser is asking for a visual collision.\n\t\t */\n\t\t& ::selection {\n\t\t\tdisplay: none;\n\t\t}\n\t}\n\n\t/* The inline image nested in the table should have its original size if not resized.\n\tSee https://github.com/ckeditor/ckeditor5/issues/9117. */\n\t& td,\n\t& th {\n\t\t& .image-inline img {\n\t\t\tmax-width: none;\n\t\t}\n\t}\n}\n'],sourceRoot:""}]);const l=i},8662:(e,t,o)=>{o.d(t,{Z:()=>l});var n=o(4015),a=o.n(n),r=o(3645),i=o.n(r)()(a());i.push([e.id,":root{--ck-color-image-caption-background:#f7f7f7;--ck-color-image-caption-text:#333;--ck-color-image-caption-highligted-background:#fd0}.ck-content .image>figcaption{background-color:var(--ck-color-image-caption-background);caption-side:bottom;color:var(--ck-color-image-caption-text);display:table-caption;font-size:.75em;outline-offset:-1px;padding:.6em;word-break:break-word}.ck.ck-editor__editable .image>figcaption.image__caption_highlighted{animation:ck-image-caption-highlight .6s ease-out}@keyframes ck-image-caption-highlight{0%{background-color:var(--ck-color-image-caption-highligted-background)}to{background-color:var(--ck-color-image-caption-background)}}","",{version:3,sources:["webpack://./node_modules/@ckeditor/ckeditor5-image/theme/imagecaption.css"],names:[],mappings:"AAKA,MACC,2CAAoD,CACpD,kCAA8C,CAC9C,mDACD,CAGA,8BAKC,yDAA0D,CAH1D,mBAAoB,CAEpB,wCAAyC,CAHzC,qBAAsB,CAMtB,eAAgB,CAChB,mBAAoB,CAFpB,YAAa,CAHb,qBAMD,CAGA,qEACC,iDACD,CAEA,sCACC,GACC,oEACD,CAEA,GACC,yDACD,CACD",sourcesContent:["/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n:root {\n\t--ck-color-image-caption-background: hsl(0, 0%, 97%);\n\t--ck-color-image-caption-text: hsl(0, 0%, 20%);\n\t--ck-color-image-caption-highligted-background: hsl(52deg 100% 50%);\n}\n\n/* Content styles */\n.ck-content .image > figcaption {\n\tdisplay: table-caption;\n\tcaption-side: bottom;\n\tword-break: break-word;\n\tcolor: var(--ck-color-image-caption-text);\n\tbackground-color: var(--ck-color-image-caption-background);\n\tpadding: .6em;\n\tfont-size: .75em;\n\toutline-offset: -1px;\n}\n\n/* Editing styles */\n.ck.ck-editor__editable .image > figcaption.image__caption_highlighted {\n\tanimation: ck-image-caption-highlight .6s ease-out;\n}\n\n@keyframes ck-image-caption-highlight {\n\t0% {\n\t\tbackground-color: var(--ck-color-image-caption-highligted-background);\n\t}\n\n\t100% {\n\t\tbackground-color: var(--ck-color-image-caption-background);\n\t}\n}\n"],sourceRoot:""}]);const l=i},4622:(e,t,o)=>{o.d(t,{Z:()=>l});var n=o(4015),a=o.n(n),r=o(3645),i=o.n(r)()(a());i.push([e.id,":root{--ck-image-style-spacing:1.5em;--ck-inline-image-style-spacing:calc(var(--ck-image-style-spacing)/2)}.ck-content .image-style-block-align-left,.ck-content .image-style-block-align-right{max-width:calc(100% - var(--ck-image-style-spacing))}.ck-content .image-style-align-left,.ck-content .image-style-align-right{clear:none}.ck-content .image-style-side{float:right;margin-left:var(--ck-image-style-spacing);max-width:50%}.ck-content .image-style-align-left{float:left;margin-right:var(--ck-image-style-spacing)}.ck-content .image-style-align-center{margin-left:auto;margin-right:auto}.ck-content .image-style-align-right{float:right;margin-left:var(--ck-image-style-spacing)}.ck-content .image-style-block-align-right{margin-left:auto;margin-right:0}.ck-content .image-style-block-align-left{margin-left:0;margin-right:auto}.ck-content p+.image-style-align-left,.ck-content p+.image-style-align-right,.ck-content p+.image-style-side{margin-top:0}.ck-content .image-inline.image-style-align-left,.ck-content .image-inline.image-style-align-right{margin-bottom:var(--ck-inline-image-style-spacing);margin-top:var(--ck-inline-image-style-spacing)}.ck-content .image-inline.image-style-align-left{margin-right:var(--ck-inline-image-style-spacing)}.ck-content .image-inline.image-style-align-right{margin-left:var(--ck-inline-image-style-spacing)}.ck.ck-splitbutton.ck-splitbutton_flatten.ck-splitbutton_open>.ck-splitbutton__action:not(.ck-disabled),.ck.ck-splitbutton.ck-splitbutton_flatten.ck-splitbutton_open>.ck-splitbutton__arrow:not(.ck-disabled),.ck.ck-splitbutton.ck-splitbutton_flatten.ck-splitbutton_open>.ck-splitbutton__arrow:not(.ck-disabled):not(:hover),.ck.ck-splitbutton.ck-splitbutton_flatten:hover>.ck-splitbutton__action:not(.ck-disabled),.ck.ck-splitbutton.ck-splitbutton_flatten:hover>.ck-splitbutton__arrow:not(.ck-disabled),.ck.ck-splitbutton.ck-splitbutton_flatten:hover>.ck-splitbutton__arrow:not(.ck-disabled):not(:hover){background-color:var(--ck-color-button-on-background)}.ck.ck-splitbutton.ck-splitbutton_flatten.ck-splitbutton_open>.ck-splitbutton__action:not(.ck-disabled):after,.ck.ck-splitbutton.ck-splitbutton_flatten.ck-splitbutton_open>.ck-splitbutton__arrow:not(.ck-disabled):after,.ck.ck-splitbutton.ck-splitbutton_flatten.ck-splitbutton_open>.ck-splitbutton__arrow:not(.ck-disabled):not(:hover):after,.ck.ck-splitbutton.ck-splitbutton_flatten:hover>.ck-splitbutton__action:not(.ck-disabled):after,.ck.ck-splitbutton.ck-splitbutton_flatten:hover>.ck-splitbutton__arrow:not(.ck-disabled):after,.ck.ck-splitbutton.ck-splitbutton_flatten:hover>.ck-splitbutton__arrow:not(.ck-disabled):not(:hover):after{display:none}.ck.ck-splitbutton.ck-splitbutton_flatten.ck-splitbutton_open:hover>.ck-splitbutton__action:not(.ck-disabled),.ck.ck-splitbutton.ck-splitbutton_flatten.ck-splitbutton_open:hover>.ck-splitbutton__arrow:not(.ck-disabled),.ck.ck-splitbutton.ck-splitbutton_flatten.ck-splitbutton_open:hover>.ck-splitbutton__arrow:not(.ck-disabled):not(:hover){background-color:var(--ck-color-button-on-hover-background)}","",{version:3,sources:["webpack://./node_modules/@ckeditor/ckeditor5-image/theme/imagestyle.css"],names:[],mappings:"AAKA,MACC,8BAA+B,CAC/B,qEACD,CAMC,qFAEC,oDACD,CAIA,yEAEC,UACD,CAEA,8BACC,WAAY,CACZ,yCAA0C,CAC1C,aACD,CAEA,oCACC,UAAW,CACX,0CACD,CAEA,sCACC,gBAAiB,CACjB,iBACD,CAEA,qCACC,WAAY,CACZ,yCACD,CAEA,2CAEC,gBAAiB,CADjB,cAED,CAEA,0CACC,aAAc,CACd,iBACD,CAGA,6GAGC,YACD,CAGC,mGAGC,kDAAmD,CADnD,+CAED,CAEA,iDACC,iDACD,CAEA,kDACC,gDACD,CAUC,0lBAGC,qDAKD,CAHC,8nBACC,YACD,CAKD,oVAGC,2DACD",sourcesContent:["/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n:root {\n\t--ck-image-style-spacing: 1.5em;\n\t--ck-inline-image-style-spacing: calc(var(--ck-image-style-spacing) / 2);\n}\n\n.ck-content {\n\t/* Provides a minimal side margin for the left and right aligned images, so that the user has a visual feedback\n\tconfirming successful application of the style if image width exceeds the editor's size.\n\tSee https://github.com/ckeditor/ckeditor5/issues/9342 */\n\t& .image-style-block-align-left,\n\t& .image-style-block-align-right {\n\t\tmax-width: calc(100% - var(--ck-image-style-spacing));\n\t}\n\n\t/* Allows displaying multiple floating images in the same line.\n\tSee https://github.com/ckeditor/ckeditor5/issues/9183#issuecomment-804988132 */\n\t& .image-style-align-left,\n\t& .image-style-align-right {\n\t\tclear: none;\n\t}\n\n\t& .image-style-side {\n\t\tfloat: right;\n\t\tmargin-left: var(--ck-image-style-spacing);\n\t\tmax-width: 50%;\n\t}\n\n\t& .image-style-align-left {\n\t\tfloat: left;\n\t\tmargin-right: var(--ck-image-style-spacing);\n\t}\n\n\t& .image-style-align-center {\n\t\tmargin-left: auto;\n\t\tmargin-right: auto;\n\t}\n\n\t& .image-style-align-right {\n\t\tfloat: right;\n\t\tmargin-left: var(--ck-image-style-spacing);\n\t}\n\n\t& .image-style-block-align-right {\n\t\tmargin-right: 0;\n\t\tmargin-left: auto;\n\t}\n\n\t& .image-style-block-align-left {\n\t\tmargin-left: 0;\n\t\tmargin-right: auto;\n\t}\n\n\t/* Simulates margin collapsing with the preceding paragraph, which does not work for the floating elements. */\n\t& p + .image-style-align-left,\n\t& p + .image-style-align-right,\n\t& p + .image-style-side {\n\t\tmargin-top: 0;\n\t}\n\n\t& .image-inline {\n\t\t&.image-style-align-left,\n\t\t&.image-style-align-right {\n\t\t\tmargin-top: var(--ck-inline-image-style-spacing);\n\t\t\tmargin-bottom: var(--ck-inline-image-style-spacing);\n\t\t}\n\n\t\t&.image-style-align-left {\n\t\t\tmargin-right: var(--ck-inline-image-style-spacing);\n\t\t}\n\n\t\t&.image-style-align-right {\n\t\t\tmargin-left: var(--ck-inline-image-style-spacing);\n\t\t}\n\t}\n}\n\n.ck.ck-splitbutton {\n\t/* The button should display as a regular drop-down if the action button\n\tis forced to fire the same action as the arrow button. */\n\t&.ck-splitbutton_flatten {\n\t\t&:hover,\n\t\t&.ck-splitbutton_open {\n\t\t\t& > .ck-splitbutton__action:not(.ck-disabled),\n\t\t\t& > .ck-splitbutton__arrow:not(.ck-disabled),\n\t\t\t& > .ck-splitbutton__arrow:not(.ck-disabled):not(:hover) {\n\t\t\t\tbackground-color: var(--ck-color-button-on-background);\n\n\t\t\t\t&::after {\n\t\t\t\t\tdisplay: none;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t&.ck-splitbutton_open:hover {\n\t\t\t& > .ck-splitbutton__action:not(.ck-disabled),\n\t\t\t& > .ck-splitbutton__arrow:not(.ck-disabled),\n\t\t\t& > .ck-splitbutton__arrow:not(.ck-disabled):not(:hover) {\n\t\t\t\tbackground-color: var(--ck-color-button-on-hover-background);\n\t\t\t}\n\t\t}\n\t}\n}\n"],sourceRoot:""}]);const l=i},9899:(e,t,o)=>{o.d(t,{Z:()=>l});var n=o(4015),a=o.n(n),r=o(3645),i=o.n(r)()(a());i.push([e.id,'.ck-image-upload-complete-icon{border-radius:50%;display:block;position:absolute;right:min(var(--ck-spacing-medium),6%);top:min(var(--ck-spacing-medium),6%);z-index:1}.ck-image-upload-complete-icon:after{content:"";position:absolute}:root{--ck-color-image-upload-icon:#fff;--ck-color-image-upload-icon-background:#008a00;--ck-image-upload-icon-size:20;--ck-image-upload-icon-width:2px;--ck-image-upload-icon-is-visible:clamp(0px,100% - 50px,1px)}.ck-image-upload-complete-icon{animation-delay:0ms,3s;animation-duration:.5s,.5s;animation-fill-mode:forwards,forwards;animation-name:ck-upload-complete-icon-show,ck-upload-complete-icon-hide;background:var(--ck-color-image-upload-icon-background);font-size:calc(1px*var(--ck-image-upload-icon-size));height:calc(var(--ck-image-upload-icon-is-visible)*var(--ck-image-upload-icon-size));opacity:0;overflow:hidden;width:calc(var(--ck-image-upload-icon-is-visible)*var(--ck-image-upload-icon-size))}.ck-image-upload-complete-icon:after{animation-delay:.5s;animation-duration:.5s;animation-fill-mode:forwards;animation-name:ck-upload-complete-icon-check;border-right:var(--ck-image-upload-icon-width) solid var(--ck-color-image-upload-icon);border-top:var(--ck-image-upload-icon-width) solid var(--ck-color-image-upload-icon);box-sizing:border-box;height:0;left:25%;opacity:0;top:50%;transform:scaleX(-1) rotate(135deg);transform-origin:left top;width:0}@keyframes ck-upload-complete-icon-show{0%{opacity:0}to{opacity:1}}@keyframes ck-upload-complete-icon-hide{0%{opacity:1}to{opacity:0}}@keyframes ck-upload-complete-icon-check{0%{height:0;opacity:1;width:0}33%{height:0;width:.3em}to{height:.45em;opacity:1;width:.3em}}',"",{version:3,sources:["webpack://./node_modules/@ckeditor/ckeditor5-image/theme/imageuploadicon.css","webpack://./node_modules/@ckeditor/ckeditor5-theme-lark/theme/ckeditor5-image/imageuploadicon.css"],names:[],mappings:"AAKA,+BAUC,iBAAkB,CATlB,aAAc,CACd,iBAAkB,CAOlB,sCAAwC,CADxC,oCAAsC,CAGtC,SAMD,CAJC,qCACC,UAAW,CACX,iBACD,CChBD,MACC,iCAA8C,CAC9C,+CAA4D,CAG5D,8BAA+B,CAC/B,gCAAiC,CACjC,4DACD,CAEA,+BAWC,sBAA4B,CAN5B,0BAAgC,CADhC,qCAAuC,CADvC,wEAA0E,CAD1E,uDAAwD,CAMxD,oDAAuD,CAWvD,oFAAuF,CAlBvF,SAAU,CAgBV,eAAgB,CAChB,mFA0BD,CAtBC,qCAgBC,mBAAsB,CADtB,sBAAyB,CAEzB,4BAA6B,CAH7B,4CAA6C,CAF7C,sFAAuF,CADvF,oFAAqF,CASrF,qBAAsB,CAdtB,QAAS,CAJT,QAAS,CAGT,SAAU,CADV,OAAQ,CAKR,mCAAoC,CACpC,yBAA0B,CAH1B,OAcD,CAGD,wCACC,GACC,SACD,CAEA,GACC,SACD,CACD,CAEA,wCACC,GACC,SACD,CAEA,GACC,SACD,CACD,CAEA,yCACC,GAGC,QAAS,CAFT,SAAU,CACV,OAED,CACA,IAEC,QAAS,CADT,UAED,CACA,GAGC,YAAc,CAFd,SAAU,CACV,UAED,CACD",sourcesContent:['/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck-image-upload-complete-icon {\n\tdisplay: block;\n\tposition: absolute;\n\n\t/*\n\t * Smaller images should have the icon closer to the border.\n\t * Match the icon position with the linked image indicator brought by the link image feature.\n\t */\n\ttop: min(var(--ck-spacing-medium), 6%);\n\tright: min(var(--ck-spacing-medium), 6%);\n\tborder-radius: 50%;\n\tz-index: 1;\n\n\t&::after {\n\t\tcontent: "";\n\t\tposition: absolute;\n\t}\n}\n','/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n:root {\n\t--ck-color-image-upload-icon: hsl(0, 0%, 100%);\n\t--ck-color-image-upload-icon-background: hsl(120, 100%, 27%);\n\n\t/* Match the icon size with the linked image indicator brought by the link image feature. */\n\t--ck-image-upload-icon-size: 20;\n\t--ck-image-upload-icon-width: 2px;\n\t--ck-image-upload-icon-is-visible: clamp(0px, 100% - 50px, 1px);\n}\n\n.ck-image-upload-complete-icon {\n\topacity: 0;\n\tbackground: var(--ck-color-image-upload-icon-background);\n\tanimation-name: ck-upload-complete-icon-show, ck-upload-complete-icon-hide;\n\tanimation-fill-mode: forwards, forwards;\n\tanimation-duration: 500ms, 500ms;\n\n\t/* To make animation scalable. */\n\tfont-size: calc(1px * var(--ck-image-upload-icon-size));\n\n\t/* Hide completed upload icon after 3 seconds. */\n\tanimation-delay: 0ms, 3000ms;\n\n\t/*\n\t * Use CSS math to simulate container queries.\n\t * https://css-tricks.com/the-raven-technique-one-step-closer-to-container-queries/#what-about-showing-and-hiding-things\n\t */\n\toverflow: hidden;\n\twidth: calc(var(--ck-image-upload-icon-is-visible) * var(--ck-image-upload-icon-size));\n\theight: calc(var(--ck-image-upload-icon-is-visible) * var(--ck-image-upload-icon-size));\n\n\t/* This is check icon element made from border-width mixed with animations. */\n\t&::after {\n\t\t/* Because of border transformation we need to "hard code" left position. */\n\t\tleft: 25%;\n\n\t\ttop: 50%;\n\t\topacity: 0;\n\t\theight: 0;\n\t\twidth: 0;\n\n\t\ttransform: scaleX(-1) rotate(135deg);\n\t\ttransform-origin: left top;\n\t\tborder-top: var(--ck-image-upload-icon-width) solid var(--ck-color-image-upload-icon);\n\t\tborder-right: var(--ck-image-upload-icon-width) solid var(--ck-color-image-upload-icon);\n\n\t\tanimation-name: ck-upload-complete-icon-check;\n\t\tanimation-duration: 500ms;\n\t\tanimation-delay: 500ms;\n\t\tanimation-fill-mode: forwards;\n\n\t\t/* #1095. While reset is not providing proper box-sizing for pseudoelements, we need to handle it. */\n\t\tbox-sizing: border-box;\n\t}\n}\n\n@keyframes ck-upload-complete-icon-show {\n\tfrom {\n\t\topacity: 0;\n\t}\n\n\tto {\n\t\topacity: 1;\n\t}\n}\n\n@keyframes ck-upload-complete-icon-hide {\n\tfrom {\n\t\topacity: 1;\n\t}\n\n\tto {\n\t\topacity: 0;\n\t}\n}\n\n@keyframes ck-upload-complete-icon-check {\n\t0% {\n\t\topacity: 1;\n\t\twidth: 0;\n\t\theight: 0;\n\t}\n\t33% {\n\t\twidth: 0.3em;\n\t\theight: 0;\n\t}\n\t100% {\n\t\topacity: 1;\n\t\twidth: 0.3em;\n\t\theight: 0.45em;\n\t}\n}\n'],sourceRoot:""}]);const l=i},9825:(e,t,o)=>{o.d(t,{Z:()=>l});var n=o(4015),a=o.n(n),r=o(3645),i=o.n(r)()(a());i.push([e.id,'.ck .ck-upload-placeholder-loader{align-items:center;display:flex;justify-content:center;left:0;position:absolute;top:0}.ck .ck-upload-placeholder-loader:before{content:"";position:relative}:root{--ck-color-upload-placeholder-loader:#b3b3b3;--ck-upload-placeholder-loader-size:32px;--ck-upload-placeholder-image-aspect-ratio:2.8}.ck .ck-image-upload-placeholder{margin:0;width:100%}.ck .ck-image-upload-placeholder.image-inline{width:calc(var(--ck-upload-placeholder-loader-size)*2*var(--ck-upload-placeholder-image-aspect-ratio))}.ck .ck-image-upload-placeholder img{aspect-ratio:var(--ck-upload-placeholder-image-aspect-ratio)}.ck .ck-upload-placeholder-loader{height:100%;width:100%}.ck .ck-upload-placeholder-loader:before{animation:ck-upload-placeholder-loader 1s linear infinite;border-radius:50%;border-right:2px solid transparent;border-top:3px solid var(--ck-color-upload-placeholder-loader);height:var(--ck-upload-placeholder-loader-size);width:var(--ck-upload-placeholder-loader-size)}@keyframes ck-upload-placeholder-loader{to{transform:rotate(1turn)}}',"",{version:3,sources:["webpack://./node_modules/@ckeditor/ckeditor5-image/theme/imageuploadloader.css","webpack://./node_modules/@ckeditor/ckeditor5-theme-lark/theme/ckeditor5-image/imageuploadloader.css"],names:[],mappings:"AAKA,kCAGC,kBAAmB,CADnB,YAAa,CAEb,sBAAuB,CAEvB,MAAO,CALP,iBAAkB,CAIlB,KAOD,CAJC,yCACC,UAAW,CACX,iBACD,CCXD,MACC,4CAAqD,CACrD,wCAAyC,CACzC,8CACD,CAEA,iCAGC,QAAS,CADT,UAgBD,CAbC,8CACC,sGACD,CAEA,qCAOC,4DACD,CAGD,kCAEC,WAAY,CADZ,UAWD,CARC,yCAMC,yDAA0D,CAH1D,iBAAkB,CAElB,kCAAmC,CADnC,8DAA+D,CAF/D,+CAAgD,CADhD,8CAMD,CAGD,wCACC,GACC,uBACD,CACD",sourcesContent:["/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck .ck-upload-placeholder-loader {\n\tposition: absolute;\n\tdisplay: flex;\n\talign-items: center;\n\tjustify-content: center;\n\ttop: 0;\n\tleft: 0;\n\n\t&::before {\n\t\tcontent: '';\n\t\tposition: relative;\n\t}\n}\n","/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n:root {\n\t--ck-color-upload-placeholder-loader: hsl(0, 0%, 70%);\n\t--ck-upload-placeholder-loader-size: 32px;\n\t--ck-upload-placeholder-image-aspect-ratio: 2.8;\n}\n\n.ck .ck-image-upload-placeholder {\n\t/* We need to control the full width of the SVG gray background. */\n\twidth: 100%;\n\tmargin: 0;\n\n\t&.image-inline {\n\t\twidth: calc( 2 * var(--ck-upload-placeholder-loader-size) * var(--ck-upload-placeholder-image-aspect-ratio) );\n\t}\n\n\t& img {\n\t\t/*\n\t\t * This is an arbitrary aspect for a 1x1 px GIF to display to the user. Not too tall, not too short.\n\t\t * There's nothing special about this number except that it should make the image placeholder look like\n\t\t * a real image during this short period after the upload started and before the image was read from the\n\t\t * file system (and a rich preview was loaded).\n\t\t */\n\t\taspect-ratio: var(--ck-upload-placeholder-image-aspect-ratio);\n\t}\n}\n\n.ck .ck-upload-placeholder-loader {\n\twidth: 100%;\n\theight: 100%;\n\n\t&::before {\n\t\twidth: var(--ck-upload-placeholder-loader-size);\n\t\theight: var(--ck-upload-placeholder-loader-size);\n\t\tborder-radius: 50%;\n\t\tborder-top: 3px solid var(--ck-color-upload-placeholder-loader);\n\t\tborder-right: 2px solid transparent;\n\t\tanimation: ck-upload-placeholder-loader 1s linear infinite;\n\t}\n}\n\n@keyframes ck-upload-placeholder-loader {\n\tto {\n\t\ttransform: rotate( 360deg );\n\t}\n}\n"],sourceRoot:""}]);const l=i},5870:(e,t,o)=>{o.d(t,{Z:()=>l});var n=o(4015),a=o.n(n),r=o(3645),i=o.n(r)()(a());i.push([e.id,".ck.ck-editor__editable .image,.ck.ck-editor__editable .image-inline{position:relative}.ck.ck-editor__editable .image .ck-progress-bar,.ck.ck-editor__editable .image-inline .ck-progress-bar{left:0;position:absolute;top:0}.ck.ck-editor__editable .image-inline.ck-appear,.ck.ck-editor__editable .image.ck-appear{animation:fadeIn .7s}.ck.ck-editor__editable .image .ck-progress-bar,.ck.ck-editor__editable .image-inline .ck-progress-bar{background:var(--ck-color-upload-bar-background);height:2px;transition:width .1s;width:0}@keyframes fadeIn{0%{opacity:0}to{opacity:1}}","",{version:3,sources:["webpack://./node_modules/@ckeditor/ckeditor5-image/theme/imageuploadprogress.css","webpack://./node_modules/@ckeditor/ckeditor5-theme-lark/theme/ckeditor5-image/imageuploadprogress.css"],names:[],mappings:"AAMC,qEAEC,iBACD,CAGA,uGAIC,MAAO,CAFP,iBAAkB,CAClB,KAED,CCRC,yFACC,oBACD,CAID,uGAIC,gDAAiD,CAFjD,UAAW,CAGX,oBAAuB,CAFvB,OAGD,CAGD,kBACC,GAAO,SAAY,CACnB,GAAO,SAAY,CACpB",sourcesContent:["/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck.ck-editor__editable {\n\t& .image,\n\t& .image-inline {\n\t\tposition: relative;\n\t}\n\n\t/* Upload progress bar. */\n\t& .image .ck-progress-bar,\n\t& .image-inline .ck-progress-bar {\n\t\tposition: absolute;\n\t\ttop: 0;\n\t\tleft: 0;\n\t}\n}\n","/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck.ck-editor__editable {\n\t& .image,\n\t& .image-inline {\n\t\t/* Showing animation. */\n\t\t&.ck-appear {\n\t\t\tanimation: fadeIn 700ms;\n\t\t}\n\t}\n\n\t/* Upload progress bar. */\n\t& .image .ck-progress-bar,\n\t& .image-inline .ck-progress-bar {\n\t\theight: 2px;\n\t\twidth: 0;\n\t\tbackground: var(--ck-color-upload-bar-background);\n\t\ttransition: width 100ms;\n\t}\n}\n\n@keyframes fadeIn {\n\tfrom { opacity: 0; }\n\tto { opacity: 1; }\n}\n"],sourceRoot:""}]);const l=i},6831:(e,t,o)=>{o.d(t,{Z:()=>l});var n=o(4015),a=o.n(n),r=o(3645),i=o.n(r)()(a());i.push([e.id,".ck.ck-text-alternative-form{display:flex;flex-direction:row;flex-wrap:nowrap}.ck.ck-text-alternative-form .ck-labeled-field-view{display:inline-block}.ck.ck-text-alternative-form .ck-label{display:none}@media screen and (max-width:600px){.ck.ck-text-alternative-form{flex-wrap:wrap}.ck.ck-text-alternative-form .ck-labeled-field-view{flex-basis:100%}.ck.ck-text-alternative-form .ck-button{flex-basis:50%}}","",{version:3,sources:["webpack://./node_modules/@ckeditor/ckeditor5-image/theme/textalternativeform.css","webpack://./node_modules/@ckeditor/ckeditor5-ui/theme/mixins/_rwd.css"],names:[],mappings:"AAOA,6BACC,YAAa,CACb,kBAAmB,CACnB,gBAqBD,CAnBC,oDACC,oBACD,CAEA,uCACC,YACD,CCZA,oCDCD,6BAcE,cAUF,CARE,oDACC,eACD,CAEA,wCACC,cACD,CCrBD",sourcesContent:['/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "@ckeditor/ckeditor5-ui/theme/mixins/_rwd.css";\n\n.ck.ck-text-alternative-form {\n\tdisplay: flex;\n\tflex-direction: row;\n\tflex-wrap: nowrap;\n\n\t& .ck-labeled-field-view {\n\t\tdisplay: inline-block;\n\t}\n\n\t& .ck-label {\n\t\tdisplay: none;\n\t}\n\n\t@mixin ck-media-phone {\n\t\tflex-wrap: wrap;\n\n\t\t& .ck-labeled-field-view {\n\t\t\tflex-basis: 100%;\n\t\t}\n\n\t\t& .ck-button {\n\t\t\tflex-basis: 50%;\n\t\t}\n\t}\n}\n',"/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@define-mixin ck-media-phone {\n\t@media screen and (max-width: 600px) {\n\t\t@mixin-content;\n\t}\n}\n"],sourceRoot:""}]);const l=i},399:(e,t,o)=>{o.d(t,{Z:()=>l});var n=o(4015),a=o.n(n),r=o(3645),i=o.n(r)()(a());i.push([e.id,".ck .ck-link_selected{background:var(--ck-color-link-selected-background)}.ck .ck-link_selected span.image-inline{outline:var(--ck-widget-outline-thickness) solid var(--ck-color-link-selected-background)}.ck .ck-fake-link-selection{background:var(--ck-color-link-fake-selection)}.ck .ck-fake-link-selection_collapsed{border-right:1px solid var(--ck-color-base-text);height:100%;margin-right:-1px;outline:1px solid hsla(0,0%,100%,.5)}","",{version:3,sources:["webpack://./node_modules/@ckeditor/ckeditor5-theme-lark/theme/ckeditor5-link/link.css"],names:[],mappings:"AAMA,sBACC,mDAMD,CAHC,wCACC,yFACD,CAOD,4BACC,8CACD,CAGA,sCAEC,gDAAiD,CADjD,WAAY,CAEZ,iBAAkB,CAClB,oCACD",sourcesContent:['/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/* Class added to span element surrounding currently selected link. */\n.ck .ck-link_selected {\n\tbackground: var(--ck-color-link-selected-background);\n\n\t/* Give linked inline images some outline to let the user know they are also part of the link. */\n\t& span.image-inline {\n\t\toutline: var(--ck-widget-outline-thickness) solid var(--ck-color-link-selected-background);\n\t}\n}\n\n/*\n * Classes used by the "fake visual selection" displayed in the content when an input\n * in the link UI has focus (the browser does not render the native selection in this state).\n */\n.ck .ck-fake-link-selection {\n\tbackground: var(--ck-color-link-fake-selection);\n}\n\n/* A collapsed fake visual selection. */\n.ck .ck-fake-link-selection_collapsed {\n\theight: 100%;\n\tborder-right: 1px solid var(--ck-color-base-text);\n\tmargin-right: -1px;\n\toutline: solid 1px hsla(0, 0%, 100%, .5);\n}\n'],sourceRoot:""}]);const l=i},9465:(e,t,o)=>{o.d(t,{Z:()=>l});var n=o(4015),a=o.n(n),r=o(3645),i=o.n(r)()(a());i.push([e.id,".ck.ck-link-actions{display:flex;flex-direction:row;flex-wrap:nowrap}.ck.ck-link-actions .ck-link-actions__preview{display:inline-block}.ck.ck-link-actions .ck-link-actions__preview .ck-button__label{overflow:hidden}@media screen and (max-width:600px){.ck.ck-link-actions{flex-wrap:wrap}.ck.ck-link-actions .ck-link-actions__preview{flex-basis:100%}.ck.ck-link-actions .ck-button:not(.ck-link-actions__preview){flex-basis:50%}}.ck.ck-link-actions .ck-button.ck-link-actions__preview{padding-left:0;padding-right:0}.ck.ck-link-actions .ck-button.ck-link-actions__preview .ck-button__label{color:var(--ck-color-link-default);cursor:pointer;max-width:var(--ck-input-width);min-width:3em;padding:0 var(--ck-spacing-medium);text-align:center;text-overflow:ellipsis}.ck.ck-link-actions .ck-button.ck-link-actions__preview .ck-button__label:hover{text-decoration:underline}.ck.ck-link-actions .ck-button.ck-link-actions__preview,.ck.ck-link-actions .ck-button.ck-link-actions__preview:active,.ck.ck-link-actions .ck-button.ck-link-actions__preview:focus,.ck.ck-link-actions .ck-button.ck-link-actions__preview:hover{background:none}.ck.ck-link-actions .ck-button.ck-link-actions__preview:active{box-shadow:none}.ck.ck-link-actions .ck-button.ck-link-actions__preview:focus .ck-button__label{text-decoration:underline}[dir=ltr] .ck.ck-link-actions .ck-button:not(:first-child),[dir=rtl] .ck.ck-link-actions .ck-button:not(:last-child){margin-left:var(--ck-spacing-standard)}@media screen and (max-width:600px){.ck.ck-link-actions .ck-button.ck-link-actions__preview{margin:var(--ck-spacing-standard) var(--ck-spacing-standard) 0}.ck.ck-link-actions .ck-button.ck-link-actions__preview .ck-button__label{max-width:100%;min-width:0}[dir=ltr] .ck.ck-link-actions .ck-button:not(.ck-link-actions__preview),[dir=rtl] .ck.ck-link-actions .ck-button:not(.ck-link-actions__preview){margin-left:0}}","",{version:3,sources:["webpack://./node_modules/@ckeditor/ckeditor5-link/theme/linkactions.css","webpack://./node_modules/@ckeditor/ckeditor5-ui/theme/mixins/_rwd.css","webpack://./node_modules/@ckeditor/ckeditor5-theme-lark/theme/ckeditor5-link/linkactions.css"],names:[],mappings:"AAOA,oBACC,YAAa,CACb,kBAAmB,CACnB,gBAqBD,CAnBC,8CACC,oBAKD,CAHC,gEACC,eACD,CCXD,oCDCD,oBAcE,cAUF,CARE,8CACC,eACD,CAEA,8DACC,cACD,CCrBD,CCIA,wDACC,cAAe,CACf,eAmCD,CAjCC,0EAEC,kCAAmC,CAEnC,cAAe,CAIf,+BAAgC,CAChC,aAAc,CARd,kCAAmC,CASnC,iBAAkB,CAPlB,sBAYD,CAHC,gFACC,yBACD,CAGD,mPAIC,eACD,CAEA,+DACC,eACD,CAGC,gFACC,yBACD,CAWD,qHACC,sCACD,CDtDD,oCC0DC,wDACC,8DAMD,CAJC,0EAEC,cAAe,CADf,WAED,CAGD,gJAME,aAEF,CDzED",sourcesContent:['/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "@ckeditor/ckeditor5-ui/theme/mixins/_rwd.css";\n\n.ck.ck-link-actions {\n\tdisplay: flex;\n\tflex-direction: row;\n\tflex-wrap: nowrap;\n\n\t& .ck-link-actions__preview {\n\t\tdisplay: inline-block;\n\n\t\t& .ck-button__label {\n\t\t\toverflow: hidden;\n\t\t}\n\t}\n\n\t@mixin ck-media-phone {\n\t\tflex-wrap: wrap;\n\n\t\t& .ck-link-actions__preview {\n\t\t\tflex-basis: 100%;\n\t\t}\n\n\t\t& .ck-button:not(.ck-link-actions__preview) {\n\t\t\tflex-basis: 50%;\n\t\t}\n\t}\n}\n',"/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@define-mixin ck-media-phone {\n\t@media screen and (max-width: 600px) {\n\t\t@mixin-content;\n\t}\n}\n",'/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "@ckeditor/ckeditor5-ui/theme/mixins/_unselectable.css";\n@import "@ckeditor/ckeditor5-ui/theme/mixins/_dir.css";\n@import "../mixins/_focus.css";\n@import "../mixins/_shadow.css";\n@import "@ckeditor/ckeditor5-ui/theme/mixins/_rwd.css";\n\n.ck.ck-link-actions {\n\t& .ck-button.ck-link-actions__preview {\n\t\tpadding-left: 0;\n\t\tpadding-right: 0;\n\n\t\t& .ck-button__label {\n\t\t\tpadding: 0 var(--ck-spacing-medium);\n\t\t\tcolor: var(--ck-color-link-default);\n\t\t\ttext-overflow: ellipsis;\n\t\t\tcursor: pointer;\n\n\t\t\t/* Match the box model of the link editor form\'s input so the balloon\n\t\t\tdoes not change width when moving between actions and the form. */\n\t\t\tmax-width: var(--ck-input-width);\n\t\t\tmin-width: 3em;\n\t\t\ttext-align: center;\n\n\t\t\t&:hover {\n\t\t\t\ttext-decoration: underline;\n\t\t\t}\n\t\t}\n\n\t\t&,\n\t\t&:hover,\n\t\t&:focus,\n\t\t&:active {\n\t\t\tbackground: none;\n\t\t}\n\n\t\t&:active {\n\t\t\tbox-shadow: none;\n\t\t}\n\n\t\t&:focus {\n\t\t\t& .ck-button__label {\n\t\t\t\ttext-decoration: underline;\n\t\t\t}\n\t\t}\n\t}\n\n\t@mixin ck-dir ltr {\n\t\t& .ck-button:not(:first-child) {\n\t\t\tmargin-left: var(--ck-spacing-standard);\n\t\t}\n\t}\n\n\t@mixin ck-dir rtl {\n\t\t& .ck-button:not(:last-child) {\n\t\t\tmargin-left: var(--ck-spacing-standard);\n\t\t}\n\t}\n\n\t@mixin ck-media-phone {\n\t\t& .ck-button.ck-link-actions__preview {\n\t\t\tmargin: var(--ck-spacing-standard) var(--ck-spacing-standard) 0;\n\n\t\t\t& .ck-button__label {\n\t\t\t\tmin-width: 0;\n\t\t\t\tmax-width: 100%;\n\t\t\t}\n\t\t}\n\n\t\t& .ck-button:not(.ck-link-actions__preview) {\n\t\t\t@mixin ck-dir ltr {\n\t\t\t\tmargin-left: 0;\n\t\t\t}\n\n\t\t\t@mixin ck-dir rtl {\n\t\t\t\tmargin-left: 0;\n\t\t\t}\n\t\t}\n\t}\n}\n'],sourceRoot:""}]);const l=i},4827:(e,t,o)=>{o.d(t,{Z:()=>l});var n=o(4015),a=o.n(n),r=o(3645),i=o.n(r)()(a());i.push([e.id,".ck.ck-link-form{display:flex}.ck.ck-link-form .ck-label{display:none}@media screen and (max-width:600px){.ck.ck-link-form{flex-wrap:wrap}.ck.ck-link-form .ck-labeled-field-view{flex-basis:100%}.ck.ck-link-form .ck-button{flex-basis:50%}}.ck.ck-link-form_layout-vertical{display:block}.ck.ck-link-form_layout-vertical .ck-button.ck-button-cancel,.ck.ck-link-form_layout-vertical .ck-button.ck-button-save{margin-top:var(--ck-spacing-medium)}.ck.ck-link-form_layout-vertical{min-width:var(--ck-input-width);padding:0}.ck.ck-link-form_layout-vertical .ck-labeled-field-view{margin:var(--ck-spacing-large) var(--ck-spacing-large) var(--ck-spacing-small)}.ck.ck-link-form_layout-vertical .ck-labeled-field-view .ck-input-text{min-width:0;width:100%}.ck.ck-link-form_layout-vertical>.ck-button{border-radius:0;margin:0;padding:var(--ck-spacing-standard);width:50%}.ck.ck-link-form_layout-vertical>.ck-button:not(:focus){border-top:1px solid var(--ck-color-base-border)}[dir=ltr] .ck.ck-link-form_layout-vertical>.ck-button,[dir=rtl] .ck.ck-link-form_layout-vertical>.ck-button{margin-left:0}[dir=rtl] .ck.ck-link-form_layout-vertical>.ck-button:last-of-type{border-right:1px solid var(--ck-color-base-border)}.ck.ck-link-form_layout-vertical .ck.ck-list{margin:var(--ck-spacing-standard) var(--ck-spacing-large)}.ck.ck-link-form_layout-vertical .ck.ck-list .ck-button.ck-switchbutton{padding:0;width:100%}.ck.ck-link-form_layout-vertical .ck.ck-list .ck-button.ck-switchbutton:hover{background:none}","",{version:3,sources:["webpack://./node_modules/@ckeditor/ckeditor5-link/theme/linkform.css","webpack://./node_modules/@ckeditor/ckeditor5-ui/theme/mixins/_rwd.css","webpack://./node_modules/@ckeditor/ckeditor5-theme-lark/theme/ckeditor5-link/linkform.css"],names:[],mappings:"AAOA,iBACC,YAiBD,CAfC,2BACC,YACD,CCNA,oCDCD,iBAQE,cAUF,CARE,wCACC,eACD,CAEA,4BACC,cACD,CCfD,CDuBD,iCACC,aAYD,CALE,wHAEC,mCACD,CE/BF,iCAEC,+BAAgC,CADhC,SAgDD,CA7CC,wDACC,8EAMD,CAJC,uEACC,WAAY,CACZ,UACD,CAGD,4CAIC,eAAgB,CAFhB,QAAS,CADT,kCAAmC,CAEnC,SAkBD,CAfC,wDACC,gDACD,CARD,4GAeE,aAMF,CAJE,mEACC,kDACD,CAKF,6CACC,yDAUD,CARC,wEACC,SAAU,CACV,UAKD,CAHC,8EACC,eACD",sourcesContent:['/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "@ckeditor/ckeditor5-ui/theme/mixins/_rwd.css";\n\n.ck.ck-link-form {\n\tdisplay: flex;\n\n\t& .ck-label {\n\t\tdisplay: none;\n\t}\n\n\t@mixin ck-media-phone {\n\t\tflex-wrap: wrap;\n\n\t\t& .ck-labeled-field-view {\n\t\t\tflex-basis: 100%;\n\t\t}\n\n\t\t& .ck-button {\n\t\t\tflex-basis: 50%;\n\t\t}\n\t}\n}\n\n/*\n * Style link form differently when manual decorators are available.\n * See: https://github.com/ckeditor/ckeditor5-link/issues/186.\n */\n.ck.ck-link-form_layout-vertical {\n\tdisplay: block;\n\n\t/*\n\t * Whether the form is in the responsive mode or not, if there are decorator buttons\n\t * keep the top margin of action buttons medium.\n\t */\n\t& .ck-button {\n\t\t&.ck-button-save,\n\t\t&.ck-button-cancel {\n\t\t\tmargin-top: var(--ck-spacing-medium);\n\t\t}\n\t}\n}\n',"/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@define-mixin ck-media-phone {\n\t@media screen and (max-width: 600px) {\n\t\t@mixin-content;\n\t}\n}\n",'/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "@ckeditor/ckeditor5-ui/theme/mixins/_dir.css";\n\n/*\n * Style link form differently when manual decorators are available.\n * See: https://github.com/ckeditor/ckeditor5-link/issues/186.\n */\n.ck.ck-link-form_layout-vertical {\n\tpadding: 0;\n\tmin-width: var(--ck-input-width);\n\n\t& .ck-labeled-field-view {\n\t\tmargin: var(--ck-spacing-large) var(--ck-spacing-large) var(--ck-spacing-small);\n\n\t\t& .ck-input-text {\n\t\t\tmin-width: 0;\n\t\t\twidth: 100%;\n\t\t}\n\t}\n\n\t& > .ck-button {\n\t\tpadding: var(--ck-spacing-standard);\n\t\tmargin: 0;\n\t\twidth: 50%;\n\t\tborder-radius: 0;\n\n\t\t&:not(:focus) {\n\t\t\tborder-top: 1px solid var(--ck-color-base-border);\n\t\t}\n\n\t\t@mixin ck-dir ltr {\n\t\t\tmargin-left: 0;\n\t\t}\n\n\t\t@mixin ck-dir rtl {\n\t\t\tmargin-left: 0;\n\n\t\t\t&:last-of-type {\n\t\t\t\tborder-right: 1px solid var(--ck-color-base-border);\n\t\t\t}\n\t\t}\n\t}\n\n\t/* Using additional `.ck` class for stronger CSS specificity than `.ck.ck-link-form > :not(:first-child)`. */\n\t& .ck.ck-list {\n\t\tmargin: var(--ck-spacing-standard) var(--ck-spacing-large);\n\n\t\t& .ck-button.ck-switchbutton {\n\t\t\tpadding: 0;\n\t\t\twidth: 100%;\n\n\t\t\t&:hover {\n\t\t\t\tbackground: none;\n\t\t\t}\n\t\t}\n\t}\n}\n'],sourceRoot:""}]);const l=i},9989:(e,t,o)=>{o.d(t,{Z:()=>l});var n=o(4015),a=o.n(n),r=o(3645),i=o.n(r)()(a());i.push([e.id,".ck-content ol{list-style-type:decimal}.ck-content ol ol{list-style-type:lower-latin}.ck-content ol ol ol{list-style-type:lower-roman}.ck-content ol ol ol ol{list-style-type:upper-latin}.ck-content ol ol ol ol ol{list-style-type:upper-roman}.ck-content ul{list-style-type:disc}.ck-content ul ul{list-style-type:circle}.ck-content ul ul ul,.ck-content ul ul ul ul{list-style-type:square}","",{version:3,sources:["webpack://./node_modules/@ckeditor/ckeditor5-list/theme/list.css"],names:[],mappings:"AAKA,eACC,uBAiBD,CAfC,kBACC,2BAaD,CAXC,qBACC,2BASD,CAPC,wBACC,2BAKD,CAHC,2BACC,2BACD,CAMJ,eACC,oBAaD,CAXC,kBACC,sBASD,CAJE,6CACC,sBACD",sourcesContent:["/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck-content ol {\n\tlist-style-type: decimal;\n\n\t& ol {\n\t\tlist-style-type: lower-latin;\n\n\t\t& ol {\n\t\t\tlist-style-type: lower-roman;\n\n\t\t\t& ol {\n\t\t\t\tlist-style-type: upper-latin;\n\n\t\t\t\t& ol {\n\t\t\t\t\tlist-style-type: upper-roman;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n}\n\n.ck-content ul {\n\tlist-style-type: disc;\n\n\t& ul {\n\t\tlist-style-type: circle;\n\n\t\t& ul {\n\t\t\tlist-style-type: square;\n\n\t\t\t& ul {\n\t\t\t\tlist-style-type: square;\n\t\t\t}\n\t\t}\n\t}\n}\n"],sourceRoot:""}]);const l=i},5777:(e,t,o)=>{o.d(t,{Z:()=>l});var n=o(4015),a=o.n(n),r=o(3645),i=o.n(r)()(a());i.push([e.id,".ck-content .media{clear:both;display:block;margin:.9em 0;min-width:15em}","",{version:3,sources:["webpack://./node_modules/@ckeditor/ckeditor5-media-embed/theme/mediaembed.css"],names:[],mappings:"AAKA,mBAGC,UAAW,CASX,aAAc,CAJd,aAAe,CAQf,cACD",sourcesContent:['/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck-content .media {\n\t/* Don\'t allow floated content overlap the media.\n\thttps://github.com/ckeditor/ckeditor5-media-embed/issues/53 */\n\tclear: both;\n\n\t/* Make sure there is some space between the content and the media. */\n\t/* The first value should be equal to --ck-spacing-large variable if used in the editor context\n\tto avoid the content jumping (See https://github.com/ckeditor/ckeditor5/issues/9825). */\n\tmargin: 0.9em 0;\n\n\t/* Make sure media is not overriden with Bootstrap default `flex` value.\n\tSee: https://github.com/ckeditor/ckeditor5/issues/1373. */\n\tdisplay: block;\n\n\t/* Give the media some minimal width in the content to prevent them\n\tfrom being "squashed" in tight spaces, e.g. in table cells (#44) */\n\tmin-width: 15em;\n}\n'],sourceRoot:""}]);const l=i},952:(e,t,o)=>{o.d(t,{Z:()=>l});var n=o(4015),a=o.n(n),r=o(3645),i=o.n(r)()(a());i.push([e.id,'.ck-media__wrapper .ck-media__placeholder{align-items:center;display:flex;flex-direction:column}.ck-media__wrapper .ck-media__placeholder .ck-media__placeholder__url{max-width:100%;position:relative}.ck-media__wrapper .ck-media__placeholder .ck-media__placeholder__url .ck-media__placeholder__url__text{display:block;overflow:hidden}.ck-media__wrapper[data-oembed-url*="facebook.com"] .ck-media__placeholder__icon *,.ck-media__wrapper[data-oembed-url*="goo.gl/maps"] .ck-media__placeholder__icon *,.ck-media__wrapper[data-oembed-url*="google.com/maps"] .ck-media__placeholder__icon *,.ck-media__wrapper[data-oembed-url*="instagram.com"] .ck-media__placeholder__icon *,.ck-media__wrapper[data-oembed-url*="maps.app.goo.gl"] .ck-media__placeholder__icon *,.ck-media__wrapper[data-oembed-url*="maps.google.com"] .ck-media__placeholder__icon *,.ck-media__wrapper[data-oembed-url*="twitter.com"] .ck-media__placeholder__icon *{display:none}.ck-editor__editable:not(.ck-read-only) .ck-media__wrapper>:not(.ck-media__placeholder),.ck-editor__editable:not(.ck-read-only) .ck-widget:not(.ck-widget_selected) .ck-media__placeholder{pointer-events:none}:root{--ck-media-embed-placeholder-icon-size:3em;--ck-color-media-embed-placeholder-url-text:#757575;--ck-color-media-embed-placeholder-url-text-hover:var(--ck-color-base-text)}.ck-media__wrapper{margin:0 auto}.ck-media__wrapper .ck-media__placeholder{background:var(--ck-color-base-foreground);padding:calc(var(--ck-spacing-standard)*3)}.ck-media__wrapper .ck-media__placeholder .ck-media__placeholder__icon{background-position:50%;background-size:cover;height:var(--ck-media-embed-placeholder-icon-size);margin-bottom:var(--ck-spacing-large);min-width:var(--ck-media-embed-placeholder-icon-size)}.ck-media__wrapper .ck-media__placeholder .ck-media__placeholder__icon .ck-icon{height:100%;width:100%}.ck-media__wrapper .ck-media__placeholder .ck-media__placeholder__url__text{color:var(--ck-color-media-embed-placeholder-url-text);font-style:italic;text-align:center;text-overflow:ellipsis;white-space:nowrap}.ck-media__wrapper .ck-media__placeholder .ck-media__placeholder__url__text:hover{color:var(--ck-color-media-embed-placeholder-url-text-hover);cursor:pointer;text-decoration:underline}.ck-media__wrapper[data-oembed-url*="open.spotify.com"]{max-height:380px;max-width:300px}.ck-media__wrapper[data-oembed-url*="goo.gl/maps"] .ck-media__placeholder__icon,.ck-media__wrapper[data-oembed-url*="google.com/maps"] .ck-media__placeholder__icon,.ck-media__wrapper[data-oembed-url*="maps.app.goo.gl"] .ck-media__placeholder__icon,.ck-media__wrapper[data-oembed-url*="maps.google.com"] .ck-media__placeholder__icon{background-image:url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyNTAuMzc4IiBoZWlnaHQ9IjI1NC4xNjciIHZpZXdCb3g9IjAgMCA2Ni4yNDYgNjcuMjQ4Ij48ZyB0cmFuc2Zvcm09InRyYW5zbGF0ZSgtMTcyLjUzMSAtMjE4LjQ1NSkgc2NhbGUoLjk4MDEyKSI+PHJlY3Qgcnk9IjUuMjM4IiByeD0iNS4yMzgiIHk9IjIzMS4zOTkiIHg9IjE3Ni4wMzEiIGhlaWdodD0iNjAuMDk5IiB3aWR0aD0iNjAuMDk5IiBmaWxsPSIjMzRhNjY4IiBwYWludC1vcmRlcj0ibWFya2VycyBzdHJva2UgZmlsbCIvPjxwYXRoIGQ9Im0yMDYuNDc3IDI2MC45LTI4Ljk4NyAyOC45ODdhNS4yMTggNS4yMTggMCAwIDAgMy43OCAxLjYxaDQ5LjYyMWMxLjY5NCAwIDMuMTktLjc5OCA0LjE0Ni0yLjAzN3oiIGZpbGw9IiM1Yzg4YzUiLz48cGF0aCBkPSJNMjI2Ljc0MiAyMjIuOTg4Yy05LjI2NiAwLTE2Ljc3NyA3LjE3LTE2Ljc3NyAxNi4wMTQuMDA3IDIuNzYyLjY2MyA1LjQ3NCAyLjA5MyA3Ljg3NS40My43MDMuODMgMS40MDggMS4xOSAyLjEwNy4zMzMuNTAyLjY1IDEuMDA1Ljk1IDEuNTA4LjM0My40NzcuNjczLjk1Ny45ODggMS40NCAxLjMxIDEuNzY5IDIuNSAzLjUwMiAzLjYzNyA1LjE2OC43OTMgMS4yNzUgMS42ODMgMi42NCAyLjQ2NiAzLjk5IDIuMzYzIDQuMDk0IDQuMDA3IDguMDkyIDQuNiAxMy45MTR2LjAxMmMuMTgyLjQxMi41MTYuNjY2Ljg3OS42NjcuNDAzLS4wMDEuNzY4LS4zMTQuOTMtLjc5OS42MDMtNS43NTYgMi4yMzgtOS43MjkgNC41ODUtMTMuNzk0Ljc4Mi0xLjM1IDEuNjczLTIuNzE1IDIuNDY1LTMuOTkgMS4xMzctMS42NjYgMi4zMjgtMy40IDMuNjM4LTUuMTY5LjMxNS0uNDgyLjY0NS0uOTYyLjk4OC0xLjQzOS4zLS41MDMuNjE3LTEuMDA2Ljk1LTEuNTA4LjM1OS0uNy43Ni0xLjQwNCAxLjE5LTIuMTA3IDEuNDI2LTIuNDAyIDItNS4xMTQgMi4wMDQtNy44NzUgMC04Ljg0NC03LjUxMS0xNi4wMTQtMTYuNzc2LTE2LjAxNHoiIGZpbGw9IiNkZDRiM2UiIHBhaW50LW9yZGVyPSJtYXJrZXJzIHN0cm9rZSBmaWxsIi8+PGVsbGlwc2Ugcnk9IjUuNTY0IiByeD0iNS44MjgiIGN5PSIyMzkuMDAyIiBjeD0iMjI2Ljc0MiIgZmlsbD0iIzgwMmQyNyIgcGFpbnQtb3JkZXI9Im1hcmtlcnMgc3Ryb2tlIGZpbGwiLz48cGF0aCBkPSJNMTkwLjMwMSAyMzcuMjgzYy00LjY3IDAtOC40NTcgMy44NTMtOC40NTcgOC42MDZzMy43ODYgOC42MDcgOC40NTcgOC42MDdjMy4wNDMgMCA0LjgwNi0uOTU4IDYuMzM3LTIuNTE2IDEuNTMtMS41NTcgMi4wODctMy45MTMgMi4wODctNi4yOSAwLS4zNjItLjAyMy0uNzIyLS4wNjQtMS4wNzloLTguMjU3djMuMDQzaDQuODVjLS4xOTcuNzU5LS41MzEgMS40NS0xLjA1OCAxLjk4Ni0uOTQyLjk1OC0yLjAyOCAxLjU0OC0zLjkwMSAxLjU0OC0yLjg3NiAwLTUuMjA4LTIuMzcyLTUuMjA4LTUuMjk5IDAtMi45MjYgMi4zMzItNS4yOTkgNS4yMDgtNS4yOTkgMS4zOTkgMCAyLjYxOC40MDcgMy41ODQgMS4yOTNsMi4zODEtMi4zOGMwLS4wMDItLjAwMy0uMDA0LS4wMDQtLjAwNS0xLjU4OC0xLjUyNC0zLjYyLTIuMjE1LTUuOTU1LTIuMjE1em00LjQzIDUuNjYuMDAzLjAwNnYtLjAwM3oiIGZpbGw9IiNmZmYiIHBhaW50LW9yZGVyPSJtYXJrZXJzIHN0cm9rZSBmaWxsIi8+PHBhdGggZD0ibTIxNS4xODQgMjUxLjkyOS03Ljk4IDcuOTc5IDI4LjQ3NyAyOC40NzVhNS4yMzMgNS4yMzMgMCAwIDAgLjQ0OS0yLjEyM3YtMzEuMTY1Yy0uNDY5LjY3NS0uOTM0IDEuMzQ5LTEuMzgyIDIuMDA1LS43OTIgMS4yNzUtMS42ODIgMi42NC0yLjQ2NSAzLjk5LTIuMzQ3IDQuMDY1LTMuOTgyIDguMDM4LTQuNTg1IDEzLjc5NC0uMTYyLjQ4NS0uNTI3Ljc5OC0uOTMuNzk5LS4zNjMtLjAwMS0uNjk3LS4yNTUtLjg3OS0uNjY3di0uMDEyYy0uNTkzLTUuODIyLTIuMjM3LTkuODItNC42LTEzLjkxNC0uNzgzLTEuMzUtMS42NzMtMi43MTUtMi40NjYtMy45OS0xLjEzNy0xLjY2Ni0yLjMyNy0zLjQtMy42MzctNS4xNjlsLS4wMDItLjAwM3oiIGZpbGw9IiNjM2MzYzMiLz48cGF0aCBkPSJtMjEyLjk4MyAyNDguNDk1LTM2Ljk1MiAzNi45NTN2LjgxMmE1LjIyNyA1LjIyNyAwIDAgMCA1LjIzOCA1LjIzOGgxLjAxNWwzNS42NjYtMzUuNjY2YTEzNi4yNzUgMTM2LjI3NSAwIDAgMC0yLjc2NC0zLjkgMzcuNTc1IDM3LjU3NSAwIDAgMC0uOTg5LTEuNDQgMzUuMTI3IDM1LjEyNyAwIDAgMC0uOTUtMS41MDhjLS4wODMtLjE2Mi0uMTc2LS4zMjYtLjI2NC0uNDg5eiIgZmlsbD0iI2ZkZGM0ZiIgcGFpbnQtb3JkZXI9Im1hcmtlcnMgc3Ryb2tlIGZpbGwiLz48cGF0aCBkPSJtMjExLjk5OCAyNjEuMDgzLTYuMTUyIDYuMTUxIDI0LjI2NCAyNC4yNjRoLjc4MWE1LjIyNyA1LjIyNyAwIDAgMCA1LjIzOS01LjIzOHYtMS4wNDV6IiBmaWxsPSIjZmZmIiBwYWludC1vcmRlcj0ibWFya2VycyBzdHJva2UgZmlsbCIvPjwvZz48L3N2Zz4=)}.ck-media__wrapper[data-oembed-url*="facebook.com"] .ck-media__placeholder{background:#4268b3}.ck-media__wrapper[data-oembed-url*="facebook.com"] .ck-media__placeholder .ck-media__placeholder__icon{background-image:url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTAyNCIgaGVpZ2h0PSIxMDI0IiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjxwYXRoIGQ9Ik05NjcuNDg0IDBINTYuNTE3QzI1LjMwNCAwIDAgMjUuMzA0IDAgNTYuNTE3djkxMC45NjZDMCA5OTguNjk0IDI1LjI5NyAxMDI0IDU2LjUyMiAxMDI0SDU0N1Y2MjhINDE0VjQ3M2gxMzNWMzU5LjAyOWMwLTEzMi4yNjIgODAuNzczLTIwNC4yODIgMTk4Ljc1Ni0yMDQuMjgyIDU2LjUxMyAwIDEwNS4wODYgNC4yMDggMTE5LjI0NCA2LjA4OVYyOTlsLTgxLjYxNi4wMzdjLTYzLjk5MyAwLTc2LjM4NCAzMC40OTItNzYuMzg0IDc1LjIzNlY0NzNoMTUzLjQ4N2wtMTkuOTg2IDE1NUg3MDd2Mzk2aDI2MC40ODRjMzEuMjEzIDAgNTYuNTE2LTI1LjMwMyA1Ni41MTYtNTYuNTE2VjU2LjUxNUMxMDI0IDI1LjMwMyA5OTguNjk3IDAgOTY3LjQ4NCAwIiBmaWxsPSIjRkZGRkZFIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiLz48L3N2Zz4=)}.ck-media__wrapper[data-oembed-url*="facebook.com"] .ck-media__placeholder .ck-media__placeholder__url__text{color:#cdf}.ck-media__wrapper[data-oembed-url*="facebook.com"] .ck-media__placeholder .ck-media__placeholder__url__text:hover{color:#fff}.ck-media__wrapper[data-oembed-url*="instagram.com"] .ck-media__placeholder{background:linear-gradient(-135deg,#1400c7,#b800b1,#f50000)}.ck-media__wrapper[data-oembed-url*="instagram.com"] .ck-media__placeholder .ck-media__placeholder__icon{background-image:url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTA0IiBoZWlnaHQ9IjUwNCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayI+PGRlZnM+PHBhdGggaWQ9ImEiIGQ9Ik0wIC4xNTloNTAzLjg0MVY1MDMuOTRIMHoiLz48L2RlZnM+PGcgZmlsbD0ibm9uZSIgZmlsbC1ydWxlPSJldmVub2RkIj48bWFzayBpZD0iYiIgZmlsbD0iI2ZmZiI+PHVzZSB4bGluazpocmVmPSIjYSIvPjwvbWFzaz48cGF0aCBkPSJNMjUxLjkyMS4xNTljLTY4LjQxOCAwLTc2Ljk5Ny4yOS0xMDMuODY3IDEuNTE2LTI2LjgxNCAxLjIyMy00NS4xMjcgNS40ODItNjEuMTUxIDExLjcxLTE2LjU2NiA2LjQzNy0zMC42MTUgMTUuMDUxLTQ0LjYyMSAyOS4wNTYtMTQuMDA1IDE0LjAwNi0yMi42MTkgMjguMDU1LTI5LjA1NiA0NC42MjEtNi4yMjggMTYuMDI0LTEwLjQ4NyAzNC4zMzctMTEuNzEgNjEuMTUxQy4yOSAxNzUuMDgzIDAgMTgzLjY2MiAwIDI1Mi4wOGMwIDY4LjQxNy4yOSA3Ni45OTYgMS41MTYgMTAzLjg2NiAxLjIyMyAyNi44MTQgNS40ODIgNDUuMTI3IDExLjcxIDYxLjE1MSA2LjQzNyAxNi41NjYgMTUuMDUxIDMwLjYxNSAyOS4wNTYgNDQuNjIxIDE0LjAwNiAxNC4wMDUgMjguMDU1IDIyLjYxOSA0NC42MjEgMjkuMDU3IDE2LjAyNCA2LjIyNyAzNC4zMzcgMTAuNDg2IDYxLjE1MSAxMS43MDkgMjYuODcgMS4yMjYgMzUuNDQ5IDEuNTE2IDEwMy44NjcgMS41MTYgNjguNDE3IDAgNzYuOTk2LS4yOSAxMDMuODY2LTEuNTE2IDI2LjgxNC0xLjIyMyA0NS4xMjctNS40ODIgNjEuMTUxLTExLjcwOSAxNi41NjYtNi40MzggMzAuNjE1LTE1LjA1MiA0NC42MjEtMjkuMDU3IDE0LjAwNS0xNC4wMDYgMjIuNjE5LTI4LjA1NSAyOS4wNTctNDQuNjIxIDYuMjI3LTE2LjAyNCAxMC40ODYtMzQuMzM3IDExLjcwOS02MS4xNTEgMS4yMjYtMjYuODcgMS41MTYtMzUuNDQ5IDEuNTE2LTEwMy44NjYgMC02OC40MTgtLjI5LTc2Ljk5Ny0xLjUxNi0xMDMuODY3LTEuMjIzLTI2LjgxNC01LjQ4Mi00NS4xMjctMTEuNzA5LTYxLjE1MS02LjQzOC0xNi41NjYtMTUuMDUyLTMwLjYxNS0yOS4wNTctNDQuNjIxLTE0LjAwNi0xNC4wMDUtMjguMDU1LTIyLjYxOS00NC42MjEtMjkuMDU2LTE2LjAyNC02LjIyOC0zNC4zMzctMTAuNDg3LTYxLjE1MS0xMS43MUMzMjguOTE3LjQ0OSAzMjAuMzM4LjE1OSAyNTEuOTIxLjE1OVptMCA0NS4zOTFjNjcuMjY1IDAgNzUuMjMzLjI1NyAxMDEuNzk3IDEuNDY5IDI0LjU2MiAxLjEyIDM3LjkwMSA1LjIyNCA0Ni43NzggOC42NzQgMTEuNzU5IDQuNTcgMjAuMTUxIDEwLjAyOSAyOC45NjYgMTguODQ1IDguODE2IDguODE1IDE0LjI3NSAxNy4yMDcgMTguODQ1IDI4Ljk2NiAzLjQ1IDguODc3IDcuNTU0IDIyLjIxNiA4LjY3NCA0Ni43NzggMS4yMTIgMjYuNTY0IDEuNDY5IDM0LjUzMiAxLjQ2OSAxMDEuNzk4IDAgNjcuMjY1LS4yNTcgNzUuMjMzLTEuNDY5IDEwMS43OTctMS4xMiAyNC41NjItNS4yMjQgMzcuOTAxLTguNjc0IDQ2Ljc3OC00LjU3IDExLjc1OS0xMC4wMjkgMjAuMTUxLTE4Ljg0NSAyOC45NjYtOC44MTUgOC44MTYtMTcuMjA3IDE0LjI3NS0yOC45NjYgMTguODQ1LTguODc3IDMuNDUtMjIuMjE2IDcuNTU0LTQ2Ljc3OCA4LjY3NC0yNi41NiAxLjIxMi0zNC41MjcgMS40NjktMTAxLjc5NyAxLjQ2OS02Ny4yNzEgMC03NS4yMzctLjI1Ny0xMDEuNzk4LTEuNDY5LTI0LjU2Mi0xLjEyLTM3LjkwMS01LjIyNC00Ni43NzgtOC42NzQtMTEuNzU5LTQuNTctMjAuMTUxLTEwLjAyOS0yOC45NjYtMTguODQ1LTguODE1LTguODE1LTE0LjI3NS0xNy4yMDctMTguODQ1LTI4Ljk2Ni0zLjQ1LTguODc3LTcuNTU0LTIyLjIxNi04LjY3NC00Ni43NzgtMS4yMTItMjYuNTY0LTEuNDY5LTM0LjUzMi0xLjQ2OS0xMDEuNzk3IDAtNjcuMjY2LjI1Ny03NS4yMzQgMS40NjktMTAxLjc5OCAxLjEyLTI0LjU2MiA1LjIyNC0zNy45MDEgOC42NzQtNDYuNzc4IDQuNTctMTEuNzU5IDEwLjAyOS0yMC4xNTEgMTguODQ1LTI4Ljk2NiA4LjgxNS04LjgxNiAxNy4yMDctMTQuMjc1IDI4Ljk2Ni0xOC44NDUgOC44NzctMy40NSAyMi4yMTYtNy41NTQgNDYuNzc4LTguNjc0IDI2LjU2NC0xLjIxMiAzNC41MzItMS40NjkgMTAxLjc5OC0xLjQ2OVoiIGZpbGw9IiNGRkYiIG1hc2s9InVybCgjYikiLz48cGF0aCBkPSJNMjUxLjkyMSAzMzYuMDUzYy00Ni4zNzggMC04My45NzQtMzcuNTk2LTgzLjk3NC04My45NzMgMC00Ni4zNzggMzcuNTk2LTgzLjk3NCA4My45NzQtODMuOTc0IDQ2LjM3NyAwIDgzLjk3MyAzNy41OTYgODMuOTczIDgzLjk3NCAwIDQ2LjM3Ny0zNy41OTYgODMuOTczLTgzLjk3MyA4My45NzNabTAtMjEzLjMzOGMtNzEuNDQ3IDAtMTI5LjM2NSA1Ny45MTgtMTI5LjM2NSAxMjkuMzY1IDAgNzEuNDQ2IDU3LjkxOCAxMjkuMzY0IDEyOS4zNjUgMTI5LjM2NCA3MS40NDYgMCAxMjkuMzY0LTU3LjkxOCAxMjkuMzY0LTEyOS4zNjQgMC03MS40NDctNTcuOTE4LTEyOS4zNjUtMTI5LjM2NC0xMjkuMzY1Wk00MTYuNjI3IDExNy42MDRjMCAxNi42OTYtMTMuNTM1IDMwLjIzLTMwLjIzMSAzMC4yMy0xNi42OTUgMC0zMC4yMy0xMy41MzQtMzAuMjMtMzAuMjMgMC0xNi42OTYgMTMuNTM1LTMwLjIzMSAzMC4yMy0zMC4yMzEgMTYuNjk2IDAgMzAuMjMxIDEzLjUzNSAzMC4yMzEgMzAuMjMxIiBmaWxsPSIjRkZGIi8+PC9nPjwvc3ZnPg==)}.ck-media__wrapper[data-oembed-url*="instagram.com"] .ck-media__placeholder .ck-media__placeholder__url__text{color:#ffe0fe}.ck-media__wrapper[data-oembed-url*="instagram.com"] .ck-media__placeholder .ck-media__placeholder__url__text:hover{color:#fff}.ck-media__wrapper[data-oembed-url*="twitter.com"] .ck.ck-media__placeholder{background:linear-gradient(90deg,#71c6f4,#0d70a5)}.ck-media__wrapper[data-oembed-url*="twitter.com"] .ck.ck-media__placeholder .ck-media__placeholder__icon{background-image:url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCA0MDAgNDAwIiBzdHlsZT0iZW5hYmxlLWJhY2tncm91bmQ6bmV3IDAgMCA0MDAgNDAwIiB4bWw6c3BhY2U9InByZXNlcnZlIj48cGF0aCBkPSJNNDAwIDIwMGMwIDExMC41LTg5LjUgMjAwLTIwMCAyMDBTMCAzMTAuNSAwIDIwMCA4OS41IDAgMjAwIDBzMjAwIDg5LjUgMjAwIDIwMHpNMTYzLjQgMzA1LjVjODguNyAwIDEzNy4yLTczLjUgMTM3LjItMTM3LjIgMC0yLjEgMC00LjItLjEtNi4yIDkuNC02LjggMTcuNi0xNS4zIDI0LjEtMjUtOC42IDMuOC0xNy45IDYuNC0yNy43IDcuNiAxMC02IDE3LjYtMTUuNCAyMS4yLTI2LjctOS4zIDUuNS0xOS42IDkuNS0zMC42IDExLjctOC44LTkuNC0yMS4zLTE1LjItMzUuMi0xNS4yLTI2LjYgMC00OC4yIDIxLjYtNDguMiA0OC4yIDAgMy44LjQgNy41IDEuMyAxMS00MC4xLTItNzUuNi0yMS4yLTk5LjQtNTAuNC00LjEgNy4xLTYuNSAxNS40LTYuNSAyNC4yIDAgMTYuNyA4LjUgMzEuNSAyMS41IDQwLjEtNy45LS4yLTE1LjMtMi40LTIxLjgtNnYuNmMwIDIzLjQgMTYuNiA0Mi44IDM4LjcgNDcuMy00IDEuMS04LjMgMS43LTEyLjcgMS43LTMuMSAwLTYuMS0uMy05LjEtLjkgNi4xIDE5LjIgMjMuOSAzMy4xIDQ1IDMzLjUtMTYuNSAxMi45LTM3LjMgMjAuNi01OS45IDIwLjYtMy45IDAtNy43LS4yLTExLjUtLjcgMjEuMSAxMy44IDQ2LjUgMjEuOCA3My43IDIxLjgiIHN0eWxlPSJmaWxsOiNmZmYiLz48L3N2Zz4=)}.ck-media__wrapper[data-oembed-url*="twitter.com"] .ck.ck-media__placeholder .ck-media__placeholder__url__text{color:#b8e6ff}.ck-media__wrapper[data-oembed-url*="twitter.com"] .ck.ck-media__placeholder .ck-media__placeholder__url__text:hover{color:#fff}',"",{version:3,sources:["webpack://./node_modules/@ckeditor/ckeditor5-media-embed/theme/mediaembedediting.css","webpack://./node_modules/@ckeditor/ckeditor5-theme-lark/theme/ckeditor5-media-embed/mediaembedediting.css"],names:[],mappings:"AAMC,0CAGC,kBAAmB,CAFnB,YAAa,CACb,qBAcD,CAXC,sEAEC,cAAe,CAEf,iBAMD,CAJC,wGAEC,aAAc,CADd,eAED,CAWD,6kBACC,YACD,CAYF,2LACC,mBACD,CC1CA,MACC,0CAA2C,CAE3C,mDAA4D,CAC5D,2EACD,CAEA,mBACC,aA+FD,CA7FC,0CAEC,0CAA2C,CAD3C,0CA6BD,CA1BC,uEAIC,uBAA2B,CAC3B,qBAAsB,CAHtB,kDAAmD,CACnD,qCAAsC,CAFtC,qDAUD,CAJC,gFAEC,WAAY,CADZ,UAED,CAGD,4EACC,sDAAuD,CAGvD,iBAAkB,CADlB,iBAAkB,CAElB,sBAAuB,CAHvB,kBAUD,CALC,kFACC,4DAA6D,CAC7D,cAAe,CACf,yBACD,CAIF,wDAEC,gBAAiB,CADjB,eAED,CAEA,4UAIC,wvGACD,CAEA,2EACC,kBAaD,CAXC,wGACC,orBACD,CAEA,6GACC,UAKD,CAHC,mHACC,UACD,CAIF,4EACC,2DAcD,CAZC,yGACC,4jHACD,CAGA,8GACC,aAKD,CAHC,oHACC,UACD,CAIF,6EAEC,iDAaD,CAXC,0GACC,wiCACD,CAEA,+GACC,aAKD,CAHC,qHACC,UACD",sourcesContent:['/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck-media__wrapper {\n\t& .ck-media__placeholder {\n\t\tdisplay: flex;\n\t\tflex-direction: column;\n\t\talign-items: center;\n\n\t\t& .ck-media__placeholder__url {\n\t\t\t/* Otherwise the URL will overflow when the content is very narrow. */\n\t\t\tmax-width: 100%;\n\n\t\t\tposition: relative;\n\n\t\t\t& .ck-media__placeholder__url__text {\n\t\t\t\toverflow: hidden;\n\t\t\t\tdisplay: block;\n\t\t\t}\n\t\t}\n\t}\n\n\t&[data-oembed-url*="twitter.com"],\n\t&[data-oembed-url*="google.com/maps"],\n\t&[data-oembed-url*="goo.gl/maps"],\n\t&[data-oembed-url*="maps.google.com"],\n\t&[data-oembed-url*="maps.app.goo.gl"],\n\t&[data-oembed-url*="facebook.com"],\n\t&[data-oembed-url*="instagram.com"] {\n\t\t& .ck-media__placeholder__icon * {\n\t\t\tdisplay: none;\n\t\t}\n\t}\n}\n\n/* Disable all mouse interaction as long as the editor is not readonly.\n https://github.com/ckeditor/ckeditor5-media-embed/issues/58 */\n.ck-editor__editable:not(.ck-read-only) .ck-media__wrapper > *:not(.ck-media__placeholder) {\n\tpointer-events: none;\n}\n\n/* Disable all mouse interaction when the widget is not selected (e.g. to avoid opening links by accident).\n https://github.com/ckeditor/ckeditor5-media-embed/issues/18 */\n.ck-editor__editable:not(.ck-read-only) .ck-widget:not(.ck-widget_selected) .ck-media__placeholder {\n\tpointer-events: none;\n}\n','/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n:root {\n\t--ck-media-embed-placeholder-icon-size: 3em;\n\n\t--ck-color-media-embed-placeholder-url-text: hsl(0, 0%, 46%);\n\t--ck-color-media-embed-placeholder-url-text-hover: var(--ck-color-base-text);\n}\n\n.ck-media__wrapper {\n\tmargin: 0 auto;\n\n\t& .ck-media__placeholder {\n\t\tpadding: calc( 3 * var(--ck-spacing-standard) );\n\t\tbackground: var(--ck-color-base-foreground);\n\n\t\t& .ck-media__placeholder__icon {\n\t\t\tmin-width: var(--ck-media-embed-placeholder-icon-size);\n\t\t\theight: var(--ck-media-embed-placeholder-icon-size);\n\t\t\tmargin-bottom: var(--ck-spacing-large);\n\t\t\tbackground-position: center;\n\t\t\tbackground-size: cover;\n\n\t\t\t& .ck-icon {\n\t\t\t\twidth: 100%;\n\t\t\t\theight: 100%;\n\t\t\t}\n\t\t}\n\n\t\t& .ck-media__placeholder__url__text {\n\t\t\tcolor: var(--ck-color-media-embed-placeholder-url-text);\n\t\t\twhite-space: nowrap;\n\t\t\ttext-align: center;\n\t\t\tfont-style: italic;\n\t\t\ttext-overflow: ellipsis;\n\n\t\t\t&:hover {\n\t\t\t\tcolor: var(--ck-color-media-embed-placeholder-url-text-hover);\n\t\t\t\tcursor: pointer;\n\t\t\t\ttext-decoration: underline;\n\t\t\t}\n\t\t}\n\t}\n\n\t&[data-oembed-url*="open.spotify.com"] {\n\t\tmax-width: 300px;\n\t\tmax-height: 380px;\n\t}\n\n\t&[data-oembed-url*="google.com/maps"] .ck-media__placeholder__icon,\n\t&[data-oembed-url*="goo.gl/maps"] .ck-media__placeholder__icon,\n\t&[data-oembed-url*="maps.google.com"] .ck-media__placeholder__icon,\n\t&[data-oembed-url*="maps.app.goo.gl"] .ck-media__placeholder__icon {\n\t\tbackground-image: url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyNTAuMzc4IiBoZWlnaHQ9IjI1NC4xNjciIHZpZXdCb3g9IjAgMCA2Ni4yNDYgNjcuMjQ4Ij48ZyB0cmFuc2Zvcm09InRyYW5zbGF0ZSgtMTcyLjUzMSAtMjE4LjQ1NSkgc2NhbGUoLjk4MDEyKSI+PHJlY3Qgcnk9IjUuMjM4IiByeD0iNS4yMzgiIHk9IjIzMS4zOTkiIHg9IjE3Ni4wMzEiIGhlaWdodD0iNjAuMDk5IiB3aWR0aD0iNjAuMDk5IiBmaWxsPSIjMzRhNjY4IiBwYWludC1vcmRlcj0ibWFya2VycyBzdHJva2UgZmlsbCIvPjxwYXRoIGQ9Ik0yMDYuNDc3IDI2MC45bC0yOC45ODcgMjguOTg3YTUuMjE4IDUuMjE4IDAgMCAwIDMuNzggMS42MWg0OS42MjFjMS42OTQgMCAzLjE5LS43OTggNC4xNDYtMi4wMzd6IiBmaWxsPSIjNWM4OGM1Ii8+PHBhdGggZD0iTTIyNi43NDIgMjIyLjk4OGMtOS4yNjYgMC0xNi43NzcgNy4xNy0xNi43NzcgMTYuMDE0LjAwNyAyLjc2Mi42NjMgNS40NzQgMi4wOTMgNy44NzUuNDMuNzAzLjgzIDEuNDA4IDEuMTkgMi4xMDcuMzMzLjUwMi42NSAxLjAwNS45NSAxLjUwOC4zNDMuNDc3LjY3My45NTcuOTg4IDEuNDQgMS4zMSAxLjc2OSAyLjUgMy41MDIgMy42MzcgNS4xNjguNzkzIDEuMjc1IDEuNjgzIDIuNjQgMi40NjYgMy45OSAyLjM2MyA0LjA5NCA0LjAwNyA4LjA5MiA0LjYgMTMuOTE0di4wMTJjLjE4Mi40MTIuNTE2LjY2Ni44NzkuNjY3LjQwMy0uMDAxLjc2OC0uMzE0LjkzLS43OTkuNjAzLTUuNzU2IDIuMjM4LTkuNzI5IDQuNTg1LTEzLjc5NC43ODItMS4zNSAxLjY3My0yLjcxNSAyLjQ2NS0zLjk5IDEuMTM3LTEuNjY2IDIuMzI4LTMuNCAzLjYzOC01LjE2OS4zMTUtLjQ4Mi42NDUtLjk2Mi45ODgtMS40MzkuMy0uNTAzLjYxNy0xLjAwNi45NS0xLjUwOC4zNTktLjcuNzYtMS40MDQgMS4xOS0yLjEwNyAxLjQyNi0yLjQwMiAyLTUuMTE0IDIuMDA0LTcuODc1IDAtOC44NDQtNy41MTEtMTYuMDE0LTE2Ljc3Ni0xNi4wMTR6IiBmaWxsPSIjZGQ0YjNlIiBwYWludC1vcmRlcj0ibWFya2VycyBzdHJva2UgZmlsbCIvPjxlbGxpcHNlIHJ5PSI1LjU2NCIgcng9IjUuODI4IiBjeT0iMjM5LjAwMiIgY3g9IjIyNi43NDIiIGZpbGw9IiM4MDJkMjciIHBhaW50LW9yZGVyPSJtYXJrZXJzIHN0cm9rZSBmaWxsIi8+PHBhdGggZD0iTTE5MC4zMDEgMjM3LjI4M2MtNC42NyAwLTguNDU3IDMuODUzLTguNDU3IDguNjA2czMuNzg2IDguNjA3IDguNDU3IDguNjA3YzMuMDQzIDAgNC44MDYtLjk1OCA2LjMzNy0yLjUxNiAxLjUzLTEuNTU3IDIuMDg3LTMuOTEzIDIuMDg3LTYuMjkgMC0uMzYyLS4wMjMtLjcyMi0uMDY0LTEuMDc5aC04LjI1N3YzLjA0M2g0Ljg1Yy0uMTk3Ljc1OS0uNTMxIDEuNDUtMS4wNTggMS45ODYtLjk0Mi45NTgtMi4wMjggMS41NDgtMy45MDEgMS41NDgtMi44NzYgMC01LjIwOC0yLjM3Mi01LjIwOC01LjI5OSAwLTIuOTI2IDIuMzMyLTUuMjk5IDUuMjA4LTUuMjk5IDEuMzk5IDAgMi42MTguNDA3IDMuNTg0IDEuMjkzbDIuMzgxLTIuMzhjMC0uMDAyLS4wMDMtLjAwNC0uMDA0LS4wMDUtMS41ODgtMS41MjQtMy42Mi0yLjIxNS01Ljk1NS0yLjIxNXptNC40MyA1LjY2bC4wMDMuMDA2di0uMDAzeiIgZmlsbD0iI2ZmZiIgcGFpbnQtb3JkZXI9Im1hcmtlcnMgc3Ryb2tlIGZpbGwiLz48cGF0aCBkPSJNMjE1LjE4NCAyNTEuOTI5bC03Ljk4IDcuOTc5IDI4LjQ3NyAyOC40NzVjLjI4Ny0uNjQ5LjQ0OS0xLjM2Ni40NDktMi4xMjN2LTMxLjE2NWMtLjQ2OS42NzUtLjkzNCAxLjM0OS0xLjM4MiAyLjAwNS0uNzkyIDEuMjc1LTEuNjgyIDIuNjQtMi40NjUgMy45OS0yLjM0NyA0LjA2NS0zLjk4MiA4LjAzOC00LjU4NSAxMy43OTQtLjE2Mi40ODUtLjUyNy43OTgtLjkzLjc5OS0uMzYzLS4wMDEtLjY5Ny0uMjU1LS44NzktLjY2N3YtLjAxMmMtLjU5My01LjgyMi0yLjIzNy05LjgyLTQuNi0xMy45MTQtLjc4My0xLjM1LTEuNjczLTIuNzE1LTIuNDY2LTMuOTktMS4xMzctMS42NjYtMi4zMjctMy40LTMuNjM3LTUuMTY5bC0uMDAyLS4wMDN6IiBmaWxsPSIjYzNjM2MzIi8+PHBhdGggZD0iTTIxMi45ODMgMjQ4LjQ5NWwtMzYuOTUyIDM2Ljk1M3YuODEyYTUuMjI3IDUuMjI3IDAgMCAwIDUuMjM4IDUuMjM4aDEuMDE1bDM1LjY2Ni0zNS42NjZhMTM2LjI3NSAxMzYuMjc1IDAgMCAwLTIuNzY0LTMuOSAzNy41NzUgMzcuNTc1IDAgMCAwLS45ODktMS40NGMtLjI5OS0uNTAzLS42MTYtMS4wMDYtLjk1LTEuNTA4LS4wODMtLjE2Mi0uMTc2LS4zMjYtLjI2NC0uNDg5eiIgZmlsbD0iI2ZkZGM0ZiIgcGFpbnQtb3JkZXI9Im1hcmtlcnMgc3Ryb2tlIGZpbGwiLz48cGF0aCBkPSJNMjExLjk5OCAyNjEuMDgzbC02LjE1MiA2LjE1MSAyNC4yNjQgMjQuMjY0aC43ODFhNS4yMjcgNS4yMjcgMCAwIDAgNS4yMzktNS4yMzh2LTEuMDQ1eiIgZmlsbD0iI2ZmZiIgcGFpbnQtb3JkZXI9Im1hcmtlcnMgc3Ryb2tlIGZpbGwiLz48L2c+PC9zdmc+);\n\t}\n\n\t&[data-oembed-url*="facebook.com"] .ck-media__placeholder {\n\t\tbackground: hsl(220, 46%, 48%);\n\n\t\t& .ck-media__placeholder__icon {\n\t\t\tbackground-image: url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz48c3ZnIHdpZHRoPSIxMDI0cHgiIGhlaWdodD0iMTAyNHB4IiB2aWV3Qm94PSIwIDAgMTAyNCAxMDI0IiB2ZXJzaW9uPSIxLjEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiPiAgICAgICAgPHRpdGxlPkZpbGwgMTwvdGl0bGU+ICAgIDxkZXNjPkNyZWF0ZWQgd2l0aCBTa2V0Y2guPC9kZXNjPiAgICA8ZGVmcz48L2RlZnM+ICAgIDxnIGlkPSJQYWdlLTEiIHN0cm9rZT0ibm9uZSIgc3Ryb2tlLXdpZHRoPSIxIiBmaWxsPSJub25lIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiPiAgICAgICAgPGcgaWQ9ImZMb2dvX1doaXRlIiBmaWxsPSIjRkZGRkZFIj4gICAgICAgICAgICA8cGF0aCBkPSJNOTY3LjQ4NCwwIEw1Ni41MTcsMCBDMjUuMzA0LDAgMCwyNS4zMDQgMCw1Ni41MTcgTDAsOTY3LjQ4MyBDMCw5OTguNjk0IDI1LjI5NywxMDI0IDU2LjUyMiwxMDI0IEw1NDcsMTAyNCBMNTQ3LDYyOCBMNDE0LDYyOCBMNDE0LDQ3MyBMNTQ3LDQ3MyBMNTQ3LDM1OS4wMjkgQzU0NywyMjYuNzY3IDYyNy43NzMsMTU0Ljc0NyA3NDUuNzU2LDE1NC43NDcgQzgwMi4yNjksMTU0Ljc0NyA4NTAuODQyLDE1OC45NTUgODY1LDE2MC44MzYgTDg2NSwyOTkgTDc4My4zODQsMjk5LjAzNyBDNzE5LjM5MSwyOTkuMDM3IDcwNywzMjkuNTI5IDcwNywzNzQuMjczIEw3MDcsNDczIEw4NjAuNDg3LDQ3MyBMODQwLjUwMSw2MjggTDcwNyw2MjggTDcwNywxMDI0IEw5NjcuNDg0LDEwMjQgQzk5OC42OTcsMTAyNCAxMDI0LDk5OC42OTcgMTAyNCw5NjcuNDg0IEwxMDI0LDU2LjUxNSBDMTAyNCwyNS4zMDMgOTk4LjY5NywwIDk2Ny40ODQsMCIgaWQ9IkZpbGwtMSI+PC9wYXRoPiAgICAgICAgPC9nPiAgICA8L2c+PC9zdmc+);\n\t\t}\n\n\t\t& .ck-media__placeholder__url__text {\n\t\t\tcolor: hsl(220, 100%, 90%);\n\n\t\t\t&:hover {\n\t\t\t\tcolor: hsl(0, 0%, 100%);\n\t\t\t}\n\t\t}\n\t}\n\n\t&[data-oembed-url*="instagram.com"] .ck-media__placeholder {\n\t\tbackground: linear-gradient(-135deg,hsl(246, 100%, 39%),hsl(302, 100%, 36%),hsl(0, 100%, 48%));\n\n\t\t& .ck-media__placeholder__icon {\n\t\t\tbackground-image: url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz48c3ZnIHdpZHRoPSI1MDRweCIgaGVpZ2h0PSI1MDRweCIgdmlld0JveD0iMCAwIDUwNCA1MDQiIHZlcnNpb249IjEuMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayI+ICAgICAgICA8dGl0bGU+Z2x5cGgtbG9nb19NYXkyMDE2PC90aXRsZT4gICAgPGRlc2M+Q3JlYXRlZCB3aXRoIFNrZXRjaC48L2Rlc2M+ICAgIDxkZWZzPiAgICAgICAgPHBvbHlnb24gaWQ9InBhdGgtMSIgcG9pbnRzPSIwIDAuMTU5IDUwMy44NDEgMC4xNTkgNTAzLjg0MSA1MDMuOTQgMCA1MDMuOTQiPjwvcG9seWdvbj4gICAgPC9kZWZzPiAgICA8ZyBpZD0iZ2x5cGgtbG9nb19NYXkyMDE2IiBzdHJva2U9Im5vbmUiIHN0cm9rZS13aWR0aD0iMSIgZmlsbD0ibm9uZSIgZmlsbC1ydWxlPSJldmVub2RkIj4gICAgICAgIDxnIGlkPSJHcm91cC0zIj4gICAgICAgICAgICA8bWFzayBpZD0ibWFzay0yIiBmaWxsPSJ3aGl0ZSI+ICAgICAgICAgICAgICAgIDx1c2UgeGxpbms6aHJlZj0iI3BhdGgtMSI+PC91c2U+ICAgICAgICAgICAgPC9tYXNrPiAgICAgICAgICAgIDxnIGlkPSJDbGlwLTIiPjwvZz4gICAgICAgICAgICA8cGF0aCBkPSJNMjUxLjkyMSwwLjE1OSBDMTgzLjUwMywwLjE1OSAxNzQuOTI0LDAuNDQ5IDE0OC4wNTQsMS42NzUgQzEyMS4yNCwyLjg5OCAxMDIuOTI3LDcuMTU3IDg2LjkwMywxMy4zODUgQzcwLjMzNywxOS44MjIgNTYuMjg4LDI4LjQzNiA0Mi4yODIsNDIuNDQxIEMyOC4yNzcsNTYuNDQ3IDE5LjY2Myw3MC40OTYgMTMuMjI2LDg3LjA2MiBDNi45OTgsMTAzLjA4NiAyLjczOSwxMjEuMzk5IDEuNTE2LDE0OC4yMTMgQzAuMjksMTc1LjA4MyAwLDE4My42NjIgMCwyNTIuMDggQzAsMzIwLjQ5NyAwLjI5LDMyOS4wNzYgMS41MTYsMzU1Ljk0NiBDMi43MzksMzgyLjc2IDYuOTk4LDQwMS4wNzMgMTMuMjI2LDQxNy4wOTcgQzE5LjY2Myw0MzMuNjYzIDI4LjI3Nyw0NDcuNzEyIDQyLjI4Miw0NjEuNzE4IEM1Ni4yODgsNDc1LjcyMyA3MC4zMzcsNDg0LjMzNyA4Ni45MDMsNDkwLjc3NSBDMTAyLjkyNyw0OTcuMDAyIDEyMS4yNCw1MDEuMjYxIDE0OC4wNTQsNTAyLjQ4NCBDMTc0LjkyNCw1MDMuNzEgMTgzLjUwMyw1MDQgMjUxLjkyMSw1MDQgQzMyMC4zMzgsNTA0IDMyOC45MTcsNTAzLjcxIDM1NS43ODcsNTAyLjQ4NCBDMzgyLjYwMSw1MDEuMjYxIDQwMC45MTQsNDk3LjAwMiA0MTYuOTM4LDQ5MC43NzUgQzQzMy41MDQsNDg0LjMzNyA0NDcuNTUzLDQ3NS43MjMgNDYxLjU1OSw0NjEuNzE4IEM0NzUuNTY0LDQ0Ny43MTIgNDg0LjE3OCw0MzMuNjYzIDQ5MC42MTYsNDE3LjA5NyBDNDk2Ljg0Myw0MDEuMDczIDUwMS4xMDIsMzgyLjc2IDUwMi4zMjUsMzU1Ljk0NiBDNTAzLjU1MSwzMjkuMDc2IDUwMy44NDEsMzIwLjQ5NyA1MDMuODQxLDI1Mi4wOCBDNTAzLjg0MSwxODMuNjYyIDUwMy41NTEsMTc1LjA4MyA1MDIuMzI1LDE0OC4yMTMgQzUwMS4xMDIsMTIxLjM5OSA0OTYuODQzLDEwMy4wODYgNDkwLjYxNiw4Ny4wNjIgQzQ4NC4xNzgsNzAuNDk2IDQ3NS41NjQsNTYuNDQ3IDQ2MS41NTksNDIuNDQxIEM0NDcuNTUzLDI4LjQzNiA0MzMuNTA0LDE5LjgyMiA0MTYuOTM4LDEzLjM4NSBDNDAwLjkxNCw3LjE1NyAzODIuNjAxLDIuODk4IDM1NS43ODcsMS42NzUgQzMyOC45MTcsMC40NDkgMzIwLjMzOCwwLjE1OSAyNTEuOTIxLDAuMTU5IFogTTI1MS45MjEsNDUuNTUgQzMxOS4xODYsNDUuNTUgMzI3LjE1NCw0NS44MDcgMzUzLjcxOCw0Ny4wMTkgQzM3OC4yOCw0OC4xMzkgMzkxLjYxOSw1Mi4yNDMgNDAwLjQ5Niw1NS42OTMgQzQxMi4yNTUsNjAuMjYzIDQyMC42NDcsNjUuNzIyIDQyOS40NjIsNzQuNTM4IEM0MzguMjc4LDgzLjM1MyA0NDMuNzM3LDkxLjc0NSA0NDguMzA3LDEwMy41MDQgQzQ1MS43NTcsMTEyLjM4MSA0NTUuODYxLDEyNS43MiA0NTYuOTgxLDE1MC4yODIgQzQ1OC4xOTMsMTc2Ljg0NiA0NTguNDUsMTg0LjgxNCA0NTguNDUsMjUyLjA4IEM0NTguNDUsMzE5LjM0NSA0NTguMTkzLDMyNy4zMTMgNDU2Ljk4MSwzNTMuODc3IEM0NTUuODYxLDM3OC40MzkgNDUxLjc1NywzOTEuNzc4IDQ0OC4zMDcsNDAwLjY1NSBDNDQzLjczNyw0MTIuNDE0IDQzOC4yNzgsNDIwLjgwNiA0MjkuNDYyLDQyOS42MjEgQzQyMC42NDcsNDM4LjQzNyA0MTIuMjU1LDQ0My44OTYgNDAwLjQ5Niw0NDguNDY2IEMzOTEuNjE5LDQ1MS45MTYgMzc4LjI4LDQ1Ni4wMiAzNTMuNzE4LDQ1Ny4xNCBDMzI3LjE1OCw0NTguMzUyIDMxOS4xOTEsNDU4LjYwOSAyNTEuOTIxLDQ1OC42MDkgQzE4NC42NSw0NTguNjA5IDE3Ni42ODQsNDU4LjM1MiAxNTAuMTIzLDQ1Ny4xNCBDMTI1LjU2MSw0NTYuMDIgMTEyLjIyMiw0NTEuOTE2IDEwMy4zNDUsNDQ4LjQ2NiBDOTEuNTg2LDQ0My44OTYgODMuMTk0LDQzOC40MzcgNzQuMzc5LDQyOS42MjEgQzY1LjU2NCw0MjAuODA2IDYwLjEwNCw0MTIuNDE0IDU1LjUzNCw0MDAuNjU1IEM1Mi4wODQsMzkxLjc3OCA0Ny45OCwzNzguNDM5IDQ2Ljg2LDM1My44NzcgQzQ1LjY0OCwzMjcuMzEzIDQ1LjM5MSwzMTkuMzQ1IDQ1LjM5MSwyNTIuMDggQzQ1LjM5MSwxODQuODE0IDQ1LjY0OCwxNzYuODQ2IDQ2Ljg2LDE1MC4yODIgQzQ3Ljk4LDEyNS43MiA1Mi4wODQsMTEyLjM4MSA1NS41MzQsMTAzLjUwNCBDNjAuMTA0LDkxLjc0NSA2NS41NjMsODMuMzUzIDc0LjM3OSw3NC41MzggQzgzLjE5NCw2NS43MjIgOTEuNTg2LDYwLjI2MyAxMDMuMzQ1LDU1LjY5MyBDMTEyLjIyMiw1Mi4yNDMgMTI1LjU2MSw0OC4xMzkgMTUwLjEyMyw0Ny4wMTkgQzE3Ni42ODcsNDUuODA3IDE4NC42NTUsNDUuNTUgMjUxLjkyMSw0NS41NSBaIiBpZD0iRmlsbC0xIiBmaWxsPSIjRkZGRkZGIiBtYXNrPSJ1cmwoI21hc2stMikiPjwvcGF0aD4gICAgICAgIDwvZz4gICAgICAgIDxwYXRoIGQ9Ik0yNTEuOTIxLDMzNi4wNTMgQzIwNS41NDMsMzM2LjA1MyAxNjcuOTQ3LDI5OC40NTcgMTY3Ljk0NywyNTIuMDggQzE2Ny45NDcsMjA1LjcwMiAyMDUuNTQzLDE2OC4xMDYgMjUxLjkyMSwxNjguMTA2IEMyOTguMjk4LDE2OC4xMDYgMzM1Ljg5NCwyMDUuNzAyIDMzNS44OTQsMjUyLjA4IEMzMzUuODk0LDI5OC40NTcgMjk4LjI5OCwzMzYuMDUzIDI1MS45MjEsMzM2LjA1MyBaIE0yNTEuOTIxLDEyMi43MTUgQzE4MC40NzQsMTIyLjcxNSAxMjIuNTU2LDE4MC42MzMgMTIyLjU1NiwyNTIuMDggQzEyMi41NTYsMzIzLjUyNiAxODAuNDc0LDM4MS40NDQgMjUxLjkyMSwzODEuNDQ0IEMzMjMuMzY3LDM4MS40NDQgMzgxLjI4NSwzMjMuNTI2IDM4MS4yODUsMjUyLjA4IEMzODEuMjg1LDE4MC42MzMgMzIzLjM2NywxMjIuNzE1IDI1MS45MjEsMTIyLjcxNSBaIiBpZD0iRmlsbC00IiBmaWxsPSIjRkZGRkZGIj48L3BhdGg+ICAgICAgICA8cGF0aCBkPSJNNDE2LjYyNywxMTcuNjA0IEM0MTYuNjI3LDEzNC4zIDQwMy4wOTIsMTQ3LjgzNCAzODYuMzk2LDE0Ny44MzQgQzM2OS43MDEsMTQ3LjgzNCAzNTYuMTY2LDEzNC4zIDM1Ni4xNjYsMTE3LjYwNCBDMzU2LjE2NiwxMDAuOTA4IDM2OS43MDEsODcuMzczIDM4Ni4zOTYsODcuMzczIEM0MDMuMDkyLDg3LjM3MyA0MTYuNjI3LDEwMC45MDggNDE2LjYyNywxMTcuNjA0IiBpZD0iRmlsbC01IiBmaWxsPSIjRkZGRkZGIj48L3BhdGg+ICAgIDwvZz48L3N2Zz4=);\n\t\t}\n\n\t\t/* stylelint-disable-next-line no-descending-specificity */\n\t\t& .ck-media__placeholder__url__text {\n\t\t\tcolor: hsl(302, 100%, 94%);\n\n\t\t\t&:hover {\n\t\t\t\tcolor: hsl(0, 0%, 100%);\n\t\t\t}\n\t\t}\n\t}\n\n\t&[data-oembed-url*="twitter.com"] .ck.ck-media__placeholder {\n\t\t/* Use gradient to contrast with focused widget (ckeditor/ckeditor5-media-embed#22). */\n\t\tbackground: linear-gradient( to right, hsl(201, 85%, 70%), hsl(201, 85%, 35%) );\n\n\t\t& .ck-media__placeholder__icon {\n\t\t\tbackground-image: url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz48c3ZnIHZlcnNpb249IjEuMSIgaWQ9IldoaXRlIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiB4PSIwcHgiIHk9IjBweCIgdmlld0JveD0iMCAwIDQwMCA0MDAiIHN0eWxlPSJlbmFibGUtYmFja2dyb3VuZDpuZXcgMCAwIDQwMCA0MDA7IiB4bWw6c3BhY2U9InByZXNlcnZlIj48c3R5bGUgdHlwZT0idGV4dC9jc3MiPi5zdDB7ZmlsbDojRkZGRkZGO308L3N0eWxlPjxwYXRoIGNsYXNzPSJzdDAiIGQ9Ik00MDAsMjAwYzAsMTEwLjUtODkuNSwyMDAtMjAwLDIwMFMwLDMxMC41LDAsMjAwUzg5LjUsMCwyMDAsMFM0MDAsODkuNSw0MDAsMjAweiBNMTYzLjQsMzA1LjVjODguNywwLDEzNy4yLTczLjUsMTM3LjItMTM3LjJjMC0yLjEsMC00LjItMC4xLTYuMmM5LjQtNi44LDE3LjYtMTUuMywyNC4xLTI1Yy04LjYsMy44LTE3LjksNi40LTI3LjcsNy42YzEwLTYsMTcuNi0xNS40LDIxLjItMjYuN2MtOS4zLDUuNS0xOS42LDkuNS0zMC42LDExLjdjLTguOC05LjQtMjEuMy0xNS4yLTM1LjItMTUuMmMtMjYuNiwwLTQ4LjIsMjEuNi00OC4yLDQ4LjJjMCwzLjgsMC40LDcuNSwxLjMsMTFjLTQwLjEtMi03NS42LTIxLjItOTkuNC01MC40Yy00LjEsNy4xLTYuNSwxNS40LTYuNSwyNC4yYzAsMTYuNyw4LjUsMzEuNSwyMS41LDQwLjFjLTcuOS0wLjItMTUuMy0yLjQtMjEuOC02YzAsMC4yLDAsMC40LDAsMC42YzAsMjMuNCwxNi42LDQyLjgsMzguNyw0Ny4zYy00LDEuMS04LjMsMS43LTEyLjcsMS43Yy0zLjEsMC02LjEtMC4zLTkuMS0wLjljNi4xLDE5LjIsMjMuOSwzMy4xLDQ1LDMzLjVjLTE2LjUsMTIuOS0zNy4zLDIwLjYtNTkuOSwyMC42Yy0zLjksMC03LjctMC4yLTExLjUtMC43QzExMC44LDI5Ny41LDEzNi4yLDMwNS41LDE2My40LDMwNS41Ii8+PC9zdmc+);\n\t\t}\n\n\t\t& .ck-media__placeholder__url__text {\n\t\t\tcolor: hsl(201, 100%, 86%);\n\n\t\t\t&:hover {\n\t\t\t\tcolor: hsl(0, 0%, 100%);\n\t\t\t}\n\t\t}\n\t}\n}\n'],sourceRoot:""}]);const l=i},3525:(e,t,o)=>{o.d(t,{Z:()=>l});var n=o(4015),a=o.n(n),r=o(3645),i=o.n(r)()(a());i.push([e.id,".ck.ck-media-form{align-items:flex-start;display:flex;flex-direction:row;flex-wrap:nowrap}.ck.ck-media-form .ck-labeled-field-view{display:inline-block}.ck.ck-media-form .ck-label{display:none}@media screen and (max-width:600px){.ck.ck-media-form{flex-wrap:wrap}.ck.ck-media-form .ck-labeled-field-view{flex-basis:100%}.ck.ck-media-form .ck-button{flex-basis:50%}}","",{version:3,sources:["webpack://./node_modules/@ckeditor/ckeditor5-media-embed/theme/mediaform.css","webpack://./node_modules/@ckeditor/ckeditor5-ui/theme/mixins/_rwd.css"],names:[],mappings:"AAOA,kBAEC,sBAAuB,CADvB,YAAa,CAEb,kBAAmB,CACnB,gBAqBD,CAnBC,yCACC,oBACD,CAEA,4BACC,YACD,CCbA,oCDCD,kBAeE,cAUF,CARE,yCACC,eACD,CAEA,6BACC,cACD,CCtBD",sourcesContent:['/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "@ckeditor/ckeditor5-ui/theme/mixins/_rwd.css";\n\n.ck.ck-media-form {\n\tdisplay: flex;\n\talign-items: flex-start;\n\tflex-direction: row;\n\tflex-wrap: nowrap;\n\n\t& .ck-labeled-field-view {\n\t\tdisplay: inline-block;\n\t}\n\n\t& .ck-label {\n\t\tdisplay: none;\n\t}\n\n\t@mixin ck-media-phone {\n\t\tflex-wrap: wrap;\n\n\t\t& .ck-labeled-field-view {\n\t\t\tflex-basis: 100%;\n\t\t}\n\n\t\t& .ck-button {\n\t\t\tflex-basis: 50%;\n\t\t}\n\t}\n}\n',"/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@define-mixin ck-media-phone {\n\t@media screen and (max-width: 600px) {\n\t\t@mixin-content;\n\t}\n}\n"],sourceRoot:""}]);const l=i},8085:(e,t,o)=>{o.d(t,{Z:()=>l});var n=o(4015),a=o.n(n),r=o(3645),i=o.n(r)()(a());i.push([e.id,".ck .ck-insert-table-dropdown__grid{display:flex;flex-direction:row;flex-wrap:wrap}:root{--ck-insert-table-dropdown-padding:10px;--ck-insert-table-dropdown-box-height:11px;--ck-insert-table-dropdown-box-width:12px;--ck-insert-table-dropdown-box-margin:1px}.ck .ck-insert-table-dropdown__grid{padding:var(--ck-insert-table-dropdown-padding) var(--ck-insert-table-dropdown-padding) 0;width:calc(var(--ck-insert-table-dropdown-box-width)*10 + var(--ck-insert-table-dropdown-box-margin)*20 + var(--ck-insert-table-dropdown-padding)*2)}.ck .ck-insert-table-dropdown__label,.ck[dir=rtl] .ck-insert-table-dropdown__label{text-align:center}.ck .ck-insert-table-dropdown-grid-box{border:1px solid var(--ck-color-base-border);border-radius:1px;margin:var(--ck-insert-table-dropdown-box-margin);min-height:var(--ck-insert-table-dropdown-box-height);min-width:var(--ck-insert-table-dropdown-box-width);outline:none;transition:none}.ck .ck-insert-table-dropdown-grid-box:focus{box-shadow:none}.ck .ck-insert-table-dropdown-grid-box.ck-on{background:var(--ck-color-focus-outer-shadow);border-color:var(--ck-color-focus-border)}","",{version:3,sources:["webpack://./node_modules/@ckeditor/ckeditor5-table/theme/inserttable.css","webpack://./node_modules/@ckeditor/ckeditor5-theme-lark/theme/ckeditor5-table/inserttable.css"],names:[],mappings:"AAKA,oCACC,YAAa,CACb,kBAAmB,CACnB,cACD,CCJA,MACC,uCAAwC,CACxC,0CAA2C,CAC3C,yCAA0C,CAC1C,yCACD,CAEA,oCAGC,yFAA0F,CAD1F,oJAED,CAEA,mFAEC,iBACD,CAEA,uCAIC,4CAA6C,CAC7C,iBAAkB,CAFlB,iDAAkD,CADlD,qDAAsD,CADtD,mDAAoD,CAKpD,YAAa,CACb,eAUD,CARC,6CACC,eACD,CAEA,6CAEC,6CAA8C,CAD9C,yCAED",sourcesContent:["/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck .ck-insert-table-dropdown__grid {\n\tdisplay: flex;\n\tflex-direction: row;\n\tflex-wrap: wrap;\n}\n","/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n:root {\n\t--ck-insert-table-dropdown-padding: 10px;\n\t--ck-insert-table-dropdown-box-height: 11px;\n\t--ck-insert-table-dropdown-box-width: 12px;\n\t--ck-insert-table-dropdown-box-margin: 1px;\n}\n\n.ck .ck-insert-table-dropdown__grid {\n\t/* The width of a container should match 10 items in a row so there will be a 10x10 grid. */\n\twidth: calc(var(--ck-insert-table-dropdown-box-width) * 10 + var(--ck-insert-table-dropdown-box-margin) * 20 + var(--ck-insert-table-dropdown-padding) * 2);\n\tpadding: var(--ck-insert-table-dropdown-padding) var(--ck-insert-table-dropdown-padding) 0;\n}\n\n.ck .ck-insert-table-dropdown__label,\n.ck[dir=rtl] .ck-insert-table-dropdown__label {\n\ttext-align: center;\n}\n\n.ck .ck-insert-table-dropdown-grid-box {\n\tmin-width: var(--ck-insert-table-dropdown-box-width);\n\tmin-height: var(--ck-insert-table-dropdown-box-height);\n\tmargin: var(--ck-insert-table-dropdown-box-margin);\n\tborder: 1px solid var(--ck-color-base-border);\n\tborder-radius: 1px;\n\toutline: none;\n\ttransition: none;\n\n\t&:focus {\n\t\tbox-shadow: none;\n\t}\n\n\t&.ck-on {\n\t\tborder-color: var(--ck-color-focus-border);\n\t\tbackground: var(--ck-color-focus-outer-shadow);\n\t}\n}\n\n"],sourceRoot:""}]);const l=i},4104:(e,t,o)=>{o.d(t,{Z:()=>l});var n=o(4015),a=o.n(n),r=o(3645),i=o.n(r)()(a());i.push([e.id,".ck-content .table{display:table;margin:.9em auto}.ck-content .table table{border:1px double #b3b3b3;border-collapse:collapse;border-spacing:0;height:100%;width:100%}.ck-content .table table td,.ck-content .table table th{border:1px solid #bfbfbf;min-width:2em;padding:.4em}.ck-content .table table th{background:rgba(0,0,0,.05);font-weight:700}.ck-content[dir=rtl] .table th{text-align:right}.ck-content[dir=ltr] .table th{text-align:left}.ck-editor__editable .ck-table-bogus-paragraph{display:inline-block;width:100%}","",{version:3,sources:["webpack://./node_modules/@ckeditor/ckeditor5-table/theme/table.css"],names:[],mappings:"AAKA,mBAKC,aAAc,CADd,gBAiCD,CA9BC,yBAYC,yBAAkC,CAVlC,wBAAyB,CACzB,gBAAiB,CAKjB,WAAY,CADZ,UAsBD,CAfC,wDAQC,wBAAiC,CANjC,aAAc,CACd,YAMD,CAEA,4BAEC,0BAA+B,CAD/B,eAED,CAMF,+BACC,gBACD,CAEA,+BACC,eACD,CAEA,+CAKC,oBAAqB,CAMrB,UACD",sourcesContent:['/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck-content .table {\n\t/* Give the table widget some air and center it horizontally */\n\t/* The first value should be equal to --ck-spacing-large variable if used in the editor context\n\tto avoid the content jumping (See https://github.com/ckeditor/ckeditor5/issues/9825). */\n\tmargin: 0.9em auto;\n\tdisplay: table;\n\n\t& table {\n\t\t/* The table cells should have slight borders */\n\t\tborder-collapse: collapse;\n\t\tborder-spacing: 0;\n\n\t\t/* Table width and height are set on the parent <figure>. Make sure the table inside stretches\n\t\tto the full dimensions of the container (https://github.com/ckeditor/ckeditor5/issues/6186). */\n\t\twidth: 100%;\n\t\theight: 100%;\n\n\t\t/* The outer border of the table should be slightly darker than the inner lines.\n\t\tAlso see https://github.com/ckeditor/ckeditor5-table/issues/50. */\n\t\tborder: 1px double hsl(0, 0%, 70%);\n\n\t\t& td,\n\t\t& th {\n\t\t\tmin-width: 2em;\n\t\t\tpadding: .4em;\n\n\t\t\t/* The border is inherited from .ck-editor__nested-editable styles, so theoretically it\'s not necessary here.\n\t\t\tHowever, the border is a content style, so it should use .ck-content (so it works outside the editor).\n\t\t\tHence, the duplication. See https://github.com/ckeditor/ckeditor5/issues/6314 */\n\t\t\tborder: 1px solid hsl(0, 0%, 75%);\n\t\t}\n\n\t\t& th {\n\t\t\tfont-weight: bold;\n\t\t\tbackground: hsla(0, 0%, 0%, 5%);\n\t\t}\n\t}\n}\n\n/* Text alignment of the table header should match the editor settings and override the native browser styling,\nwhen content is available outside the editor. See https://github.com/ckeditor/ckeditor5/issues/6638 */\n.ck-content[dir="rtl"] .table th {\n\ttext-align: right;\n}\n\n.ck-content[dir="ltr"] .table th {\n\ttext-align: left;\n}\n\n.ck-editor__editable .ck-table-bogus-paragraph {\n\t/*\n\t * Use display:inline-block to force Chrome/Safari to limit text mutations to this element.\n\t * See https://github.com/ckeditor/ckeditor5/issues/6062.\n\t */\n\tdisplay: inline-block;\n\n\t/*\n\t * Inline HTML elements nested in the span should always be dimensioned in relation to the whole cell width.\n\t * See https://github.com/ckeditor/ckeditor5/issues/9117.\n\t */\n\twidth: 100%;\n}\n'],sourceRoot:""}]);const l=i},4777:(e,t,o)=>{o.d(t,{Z:()=>l});var n=o(4015),a=o.n(n),r=o(3645),i=o.n(r)()(a());i.push([e.id,":root{--ck-color-table-focused-cell-background:rgba(158,201,250,.3)}.ck-widget.table td.ck-editor__nested-editable.ck-editor__nested-editable_focused,.ck-widget.table td.ck-editor__nested-editable:focus,.ck-widget.table th.ck-editor__nested-editable.ck-editor__nested-editable_focused,.ck-widget.table th.ck-editor__nested-editable:focus{background:var(--ck-color-table-focused-cell-background);border-style:none;outline:1px solid var(--ck-color-focus-border);outline-offset:-1px}","",{version:3,sources:["webpack://./node_modules/@ckeditor/ckeditor5-theme-lark/theme/ckeditor5-table/tableediting.css"],names:[],mappings:"AAKA,MACC,6DACD,CAKE,8QAGC,wDAAyD,CAKzD,iBAAkB,CAClB,8CAA+C,CAC/C,mBACD",sourcesContent:["/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n:root {\n\t--ck-color-table-focused-cell-background: hsla(212, 90%, 80%, .3);\n}\n\n.ck-widget.table {\n\t& td,\n\t& th {\n\t\t&.ck-editor__nested-editable.ck-editor__nested-editable_focused,\n\t\t&.ck-editor__nested-editable:focus {\n\t\t\t/* A very slight background to highlight the focused cell */\n\t\t\tbackground: var(--ck-color-table-focused-cell-background);\n\n\t\t\t/* Fixes the problem where surrounding cells cover the focused cell's border.\n\t\t\tIt does not fix the problem in all places but the UX is improved.\n\t\t\tSee https://github.com/ckeditor/ckeditor5-table/issues/29. */\n\t\t\tborder-style: none;\n\t\t\toutline: 1px solid var(--ck-color-focus-border);\n\t\t\toutline-offset: -1px; /* progressive enhancement - no IE support */\n\t\t}\n\t}\n}\n"],sourceRoot:""}]);const l=i},5593:(e,t,o)=>{o.d(t,{Z:()=>l});var n=o(4015),a=o.n(n),r=o(3645),i=o.n(r)()(a());i.push([e.id,':root{--ck-table-selected-cell-background:rgba(158,207,250,.3)}.ck.ck-editor__editable .table table td.ck-editor__editable_selected,.ck.ck-editor__editable .table table th.ck-editor__editable_selected{box-shadow:unset;caret-color:transparent;outline:unset;position:relative}.ck.ck-editor__editable .table table td.ck-editor__editable_selected:after,.ck.ck-editor__editable .table table th.ck-editor__editable_selected:after{background-color:var(--ck-table-selected-cell-background);bottom:0;content:"";left:0;pointer-events:none;position:absolute;right:0;top:0}.ck.ck-editor__editable .table table td.ck-editor__editable_selected ::selection,.ck.ck-editor__editable .table table td.ck-editor__editable_selected:focus,.ck.ck-editor__editable .table table th.ck-editor__editable_selected ::selection,.ck.ck-editor__editable .table table th.ck-editor__editable_selected:focus{background-color:transparent}.ck.ck-editor__editable .table table td.ck-editor__editable_selected .ck-widget,.ck.ck-editor__editable .table table th.ck-editor__editable_selected .ck-widget{outline:unset}.ck.ck-editor__editable .table table td.ck-editor__editable_selected .ck-widget>.ck-widget__selection-handle,.ck.ck-editor__editable .table table th.ck-editor__editable_selected .ck-widget>.ck-widget__selection-handle{display:none}',"",{version:3,sources:["webpack://./node_modules/@ckeditor/ckeditor5-theme-lark/theme/ckeditor5-table/tableselection.css"],names:[],mappings:"AAKA,MACC,wDACD,CAGC,0IAKC,gBAAiB,CAFjB,uBAAwB,CACxB,aAAc,CAFd,iBAiCD,CA3BC,sJAGC,yDAA0D,CAK1D,QAAS,CAPT,UAAW,CAKX,MAAO,CAJP,mBAAoB,CAEpB,iBAAkB,CAGlB,OAAQ,CAFR,KAID,CAEA,wTAEC,4BACD,CAMA,gKACC,aAKD,CAHC,0NACC,YACD",sourcesContent:["/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n:root {\n\t--ck-table-selected-cell-background: hsla(208, 90%, 80%, .3);\n}\n\n.ck.ck-editor__editable .table table {\n\t& td.ck-editor__editable_selected,\n\t& th.ck-editor__editable_selected {\n\t\tposition: relative;\n\t\tcaret-color: transparent;\n\t\toutline: unset;\n\t\tbox-shadow: unset;\n\n\t\t/* https://github.com/ckeditor/ckeditor5/issues/6446 */\n\t\t&:after {\n\t\t\tcontent: '';\n\t\t\tpointer-events: none;\n\t\t\tbackground-color: var(--ck-table-selected-cell-background);\n\t\t\tposition: absolute;\n\t\t\ttop: 0;\n\t\t\tleft: 0;\n\t\t\tright: 0;\n\t\t\tbottom: 0;\n\t\t}\n\n\t\t& ::selection,\n\t\t&:focus {\n\t\t\tbackground-color: transparent;\n\t\t}\n\n\t\t/*\n\t\t * To reduce the amount of noise, all widgets in the table selection have no outline and no selection handle.\n\t\t * See https://github.com/ckeditor/ckeditor5/issues/9491.\n\t\t */\n\t\t& .ck-widget {\n\t\t\toutline: unset;\n\n\t\t\t& > .ck-widget__selection-handle {\n\t\t\t\tdisplay: none;\n\t\t\t}\n\t\t}\n\t}\n}\n"],sourceRoot:""}]);const l=i},4499:(e,t,o)=>{o.d(t,{Z:()=>l});var n=o(4015),a=o.n(n),r=o(3645),i=o.n(r)()(a());i.push([e.id,".ck.ck-button,a.ck.ck-button{align-items:center;display:inline-flex;justify-content:left;position:relative;-moz-user-select:none;-webkit-user-select:none;-ms-user-select:none;user-select:none}.ck.ck-button .ck-button__label,a.ck.ck-button .ck-button__label{display:none}.ck.ck-button.ck-button_with-text .ck-button__label,a.ck.ck-button.ck-button_with-text .ck-button__label{display:inline-block}.ck.ck-button:not(.ck-button_with-text),a.ck.ck-button:not(.ck-button_with-text){justify-content:center}.ck.ck-button,a.ck.ck-button{background:var(--ck-color-button-default-background)}.ck.ck-button:not(.ck-disabled):hover,a.ck.ck-button:not(.ck-disabled):hover{background:var(--ck-color-button-default-hover-background)}.ck.ck-button:not(.ck-disabled):active,a.ck.ck-button:not(.ck-disabled):active{background:var(--ck-color-button-default-active-background)}.ck.ck-button.ck-disabled,a.ck.ck-button.ck-disabled{background:var(--ck-color-button-default-disabled-background)}.ck.ck-button,a.ck.ck-button{border-radius:0}.ck-rounded-corners .ck.ck-button,.ck-rounded-corners a.ck.ck-button,.ck.ck-button.ck-rounded-corners,a.ck.ck-button.ck-rounded-corners{border-radius:var(--ck-border-radius)}.ck.ck-button,a.ck.ck-button{-webkit-appearance:none;border:1px solid transparent;cursor:default;font-size:inherit;line-height:1;min-height:var(--ck-ui-component-min-height);min-width:var(--ck-ui-component-min-height);padding:var(--ck-spacing-tiny);text-align:center;transition:box-shadow .2s ease-in-out,border .2s ease-in-out;vertical-align:middle;white-space:nowrap}.ck.ck-button:active,.ck.ck-button:focus,a.ck.ck-button:active,a.ck.ck-button:focus{border:var(--ck-focus-ring);box-shadow:var(--ck-focus-outer-shadow),0 0;outline:none}.ck.ck-button .ck-button__icon use,.ck.ck-button .ck-button__icon use *,a.ck.ck-button .ck-button__icon use,a.ck.ck-button .ck-button__icon use *{color:inherit}.ck.ck-button .ck-button__label,a.ck.ck-button .ck-button__label{color:inherit;cursor:inherit;font-size:inherit;font-weight:inherit;vertical-align:middle}[dir=ltr] .ck.ck-button .ck-button__label,[dir=ltr] a.ck.ck-button .ck-button__label{text-align:left}[dir=rtl] .ck.ck-button .ck-button__label,[dir=rtl] a.ck.ck-button .ck-button__label{text-align:right}.ck.ck-button .ck-button__keystroke,a.ck.ck-button .ck-button__keystroke{color:inherit}[dir=ltr] .ck.ck-button .ck-button__keystroke,[dir=ltr] a.ck.ck-button .ck-button__keystroke{margin-left:var(--ck-spacing-large)}[dir=rtl] .ck.ck-button .ck-button__keystroke,[dir=rtl] a.ck.ck-button .ck-button__keystroke{margin-right:var(--ck-spacing-large)}.ck.ck-button .ck-button__keystroke,a.ck.ck-button .ck-button__keystroke{font-weight:700;opacity:.7}.ck.ck-button.ck-disabled:active,.ck.ck-button.ck-disabled:focus,a.ck.ck-button.ck-disabled:active,a.ck.ck-button.ck-disabled:focus{box-shadow:var(--ck-focus-disabled-outer-shadow),0 0}.ck.ck-button.ck-disabled .ck-button__icon,.ck.ck-button.ck-disabled .ck-button__label,a.ck.ck-button.ck-disabled .ck-button__icon,a.ck.ck-button.ck-disabled .ck-button__label{opacity:var(--ck-disabled-opacity)}.ck.ck-button.ck-disabled .ck-button__keystroke,a.ck.ck-button.ck-disabled .ck-button__keystroke{opacity:.3}.ck.ck-button.ck-button_with-text,a.ck.ck-button.ck-button_with-text{padding:var(--ck-spacing-tiny) var(--ck-spacing-standard)}[dir=ltr] .ck.ck-button.ck-button_with-text .ck-button__icon,[dir=ltr] a.ck.ck-button.ck-button_with-text .ck-button__icon{margin-left:calc(var(--ck-spacing-small)*-1);margin-right:var(--ck-spacing-small)}[dir=rtl] .ck.ck-button.ck-button_with-text .ck-button__icon,[dir=rtl] a.ck.ck-button.ck-button_with-text .ck-button__icon{margin-left:var(--ck-spacing-small);margin-right:calc(var(--ck-spacing-small)*-1)}.ck.ck-button.ck-button_with-keystroke .ck-button__label,a.ck.ck-button.ck-button_with-keystroke .ck-button__label{flex-grow:1}.ck.ck-button.ck-on,a.ck.ck-button.ck-on{background:var(--ck-color-button-on-background)}.ck.ck-button.ck-on:not(.ck-disabled):hover,a.ck.ck-button.ck-on:not(.ck-disabled):hover{background:var(--ck-color-button-on-hover-background)}.ck.ck-button.ck-on:not(.ck-disabled):active,a.ck.ck-button.ck-on:not(.ck-disabled):active{background:var(--ck-color-button-on-active-background)}.ck.ck-button.ck-on.ck-disabled,a.ck.ck-button.ck-on.ck-disabled{background:var(--ck-color-button-on-disabled-background)}.ck.ck-button.ck-on,a.ck.ck-button.ck-on{color:var(--ck-color-button-on-color)}.ck.ck-button.ck-button-save,a.ck.ck-button.ck-button-save{color:var(--ck-color-button-save)}.ck.ck-button.ck-button-cancel,a.ck.ck-button.ck-button-cancel{color:var(--ck-color-button-cancel)}.ck.ck-button-action,a.ck.ck-button-action{background:var(--ck-color-button-action-background)}.ck.ck-button-action:not(.ck-disabled):hover,a.ck.ck-button-action:not(.ck-disabled):hover{background:var(--ck-color-button-action-hover-background)}.ck.ck-button-action:not(.ck-disabled):active,a.ck.ck-button-action:not(.ck-disabled):active{background:var(--ck-color-button-action-active-background)}.ck.ck-button-action.ck-disabled,a.ck.ck-button-action.ck-disabled{background:var(--ck-color-button-action-disabled-background)}.ck.ck-button-action,a.ck.ck-button-action{color:var(--ck-color-button-action-text)}.ck.ck-button-bold,a.ck.ck-button-bold{font-weight:700}","",{version:3,sources:["webpack://./node_modules/@ckeditor/ckeditor5-ui/theme/components/button/button.css","webpack://./node_modules/@ckeditor/ckeditor5-ui/theme/mixins/_unselectable.css","webpack://./node_modules/@ckeditor/ckeditor5-theme-lark/theme/ckeditor5-ui/components/button/button.css","webpack://./node_modules/@ckeditor/ckeditor5-theme-lark/theme/ckeditor5-ui/mixins/_button.css","webpack://./node_modules/@ckeditor/ckeditor5-theme-lark/theme/mixins/_rounded.css","webpack://./node_modules/@ckeditor/ckeditor5-theme-lark/theme/mixins/_focus.css","webpack://./node_modules/@ckeditor/ckeditor5-theme-lark/theme/mixins/_shadow.css","webpack://./node_modules/@ckeditor/ckeditor5-theme-lark/theme/mixins/_disabled.css"],names:[],mappings:"AAOA,6BAMC,kBAAmB,CADnB,mBAAoB,CAEpB,oBAAqB,CAHrB,iBAAkB,CCFlB,qBAAsB,CACtB,wBAAyB,CACzB,oBAAqB,CACrB,gBDkBD,CAdC,iEACC,YACD,CAGC,yGACC,oBACD,CAID,iFACC,sBACD,CEjBD,6BCAC,oDD4ID,CCzIE,6EACC,0DACD,CAEA,+EACC,2DACD,CAID,qDACC,6DACD,CDfD,6BEDC,eF6ID,CA5IA,wIEGE,qCFyIF,CA5IA,6BA6BC,uBAAwB,CANxB,4BAA6B,CAjB7B,cAAe,CAcf,iBAAkB,CAHlB,aAAc,CAJd,4CAA6C,CAD7C,2CAA4C,CAJ5C,8BAA+B,CAC/B,iBAAkB,CAiBlB,4DAA8D,CAnB9D,qBAAsB,CAFtB,kBAuID,CA7GC,oFGhCA,2BAA2B,CCF3B,2CAA8B,CDC9B,YHqCA,CAIC,kJAEC,aACD,CAGD,iEAIC,aAAc,CACd,cAAe,CAHf,iBAAkB,CAClB,mBAAoB,CAMpB,qBASD,CAlBA,qFAYE,eAMF,CAlBA,qFAgBE,gBAEF,CAEA,yEACC,aAYD,CAbA,6FAIE,mCASF,CAbA,6FAQE,oCAKF,CAbA,yEAWC,eAAiB,CACjB,UACD,CAIC,oIIrFD,oDJyFC,CAOA,gLKhGD,kCLkGC,CAEA,iGACC,UACD,CAGD,qEACC,yDAcD,CAXC,2HAEE,4CAA+C,CAC/C,oCAOF,CAVA,2HAQE,mCAAoC,CADpC,6CAGF,CAKA,mHACC,WACD,CAID,yCC/HA,+CDmIA,CChIC,yFACC,qDACD,CAEA,2FACC,sDACD,CAID,iEACC,wDACD,CDgHA,yCAGC,qCACD,CAEA,2DACC,iCACD,CAEA,+DACC,mCACD,CAID,2CC/IC,mDDoJD,CCjJE,2FACC,yDACD,CAEA,6FACC,0DACD,CAID,mEACC,4DACD,CDgID,2CAIC,wCACD,CAEA,uCAEC,eACD",sourcesContent:['/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "../../mixins/_unselectable.css";\n\n.ck.ck-button,\na.ck.ck-button {\n\t@mixin ck-unselectable;\n\n\tposition: relative;\n\tdisplay: inline-flex;\n\talign-items: center;\n\tjustify-content: left;\n\n\t& .ck-button__label {\n\t\tdisplay: none;\n\t}\n\n\t&.ck-button_with-text {\n\t\t& .ck-button__label {\n\t\t\tdisplay: inline-block;\n\t\t}\n\t}\n\n\t/* Center the icon horizontally in a button without text. */\n\t&:not(.ck-button_with-text) {\n\t\tjustify-content: center;\n\t}\n}\n',"/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * Makes element unselectable.\n */\n@define-mixin ck-unselectable {\n\t-moz-user-select: none;\n\t-webkit-user-select: none;\n\t-ms-user-select: none;\n\tuser-select: none\n}\n",'/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "../../../mixins/_focus.css";\n@import "../../../mixins/_shadow.css";\n@import "../../../mixins/_disabled.css";\n@import "../../../mixins/_rounded.css";\n@import "../../mixins/_button.css";\n@import "@ckeditor/ckeditor5-ui/theme/mixins/_dir.css";\n\n.ck.ck-button,\na.ck.ck-button {\n\t@mixin ck-button-colors --ck-color-button-default;\n\t@mixin ck-rounded-corners;\n\n\twhite-space: nowrap;\n\tcursor: default;\n\tvertical-align: middle;\n\tpadding: var(--ck-spacing-tiny);\n\ttext-align: center;\n\n\t/* A very important piece of styling. Go to variable declaration to learn more. */\n\tmin-width: var(--ck-ui-component-min-height);\n\tmin-height: var(--ck-ui-component-min-height);\n\n\t/* Normalize the height of the line. Removing this will break consistent height\n\tamong text and text-less buttons (with icons). */\n\tline-height: 1;\n\n\t/* Enable font size inheritance, which allows fluid UI scaling. */\n\tfont-size: inherit;\n\n\t/* Avoid flickering when the foucs border shows up. */\n\tborder: 1px solid transparent;\n\n\t/* Apply some smooth transition to the box-shadow and border. */\n\ttransition: box-shadow .2s ease-in-out, border .2s ease-in-out;\n\n\t/* https://github.com/ckeditor/ckeditor5-theme-lark/issues/189 */\n\t-webkit-appearance: none;\n\n\t&:active,\n\t&:focus {\n\t\t@mixin ck-focus-ring;\n\t\t@mixin ck-box-shadow var(--ck-focus-outer-shadow);\n\t}\n\n\t/* Allow icon coloring using the text "color" property. */\n\t& .ck-button__icon {\n\t\t& use,\n\t\t& use * {\n\t\t\tcolor: inherit;\n\t\t}\n\t}\n\n\t& .ck-button__label {\n\t\t/* Enable font size inheritance, which allows fluid UI scaling. */\n\t\tfont-size: inherit;\n\t\tfont-weight: inherit;\n\t\tcolor: inherit;\n\t\tcursor: inherit;\n\n\t\t/* Must be consistent with .ck-icon\'s vertical align. Otherwise, buttons with and\n\t\twithout labels (but with icons) have different sizes in Chrome */\n\t\tvertical-align: middle;\n\n\t\t@mixin ck-dir ltr {\n\t\t\ttext-align: left;\n\t\t}\n\n\t\t@mixin ck-dir rtl {\n\t\t\ttext-align: right;\n\t\t}\n\t}\n\n\t& .ck-button__keystroke {\n\t\tcolor: inherit;\n\n\t\t@mixin ck-dir ltr {\n\t\t\tmargin-left: var(--ck-spacing-large);\n\t\t}\n\n\t\t@mixin ck-dir rtl {\n\t\t\tmargin-right: var(--ck-spacing-large);\n\t\t}\n\n\t\tfont-weight: bold;\n\t\topacity: .7;\n\t}\n\n\t/* https://github.com/ckeditor/ckeditor5-theme-lark/issues/70 */\n\t&.ck-disabled {\n\t\t&:active,\n\t\t&:focus {\n\t\t\t/* The disabled button should have a slightly less visible shadow when focused. */\n\t\t\t@mixin ck-box-shadow var(--ck-focus-disabled-outer-shadow);\n\t\t}\n\n\t\t& .ck-button__icon {\n\t\t\t@mixin ck-disabled;\n\t\t}\n\n\t\t/* https://github.com/ckeditor/ckeditor5-theme-lark/issues/98 */\n\t\t& .ck-button__label {\n\t\t\t@mixin ck-disabled;\n\t\t}\n\n\t\t& .ck-button__keystroke {\n\t\t\topacity: .3;\n\t\t}\n\t}\n\n\t&.ck-button_with-text {\n\t\tpadding: var(--ck-spacing-tiny) var(--ck-spacing-standard);\n\n\t\t/* stylelint-disable-next-line no-descending-specificity */\n\t\t& .ck-button__icon {\n\t\t\t@mixin ck-dir ltr {\n\t\t\t\tmargin-left: calc(-1 * var(--ck-spacing-small));\n\t\t\t\tmargin-right: var(--ck-spacing-small);\n\t\t\t}\n\n\t\t\t@mixin ck-dir rtl {\n\t\t\t\tmargin-right: calc(-1 * var(--ck-spacing-small));\n\t\t\t\tmargin-left: var(--ck-spacing-small);\n\t\t\t}\n\t\t}\n\t}\n\n\t&.ck-button_with-keystroke {\n\t\t/* stylelint-disable-next-line no-descending-specificity */\n\t\t& .ck-button__label {\n\t\t\tflex-grow: 1;\n\t\t}\n\t}\n\n\t/* A style of the button which is currently on, e.g. its feature is active. */\n\t&.ck-on {\n\t\t@mixin ck-button-colors --ck-color-button-on;\n\n\t\tcolor: var(--ck-color-button-on-color);\n\t}\n\n\t&.ck-button-save {\n\t\tcolor: var(--ck-color-button-save);\n\t}\n\n\t&.ck-button-cancel {\n\t\tcolor: var(--ck-color-button-cancel);\n\t}\n}\n\n/* A style of the button which handles the primary action. */\n.ck.ck-button-action,\na.ck.ck-button-action {\n\t@mixin ck-button-colors --ck-color-button-action;\n\n\tcolor: var(--ck-color-button-action-text);\n}\n\n.ck.ck-button-bold,\na.ck.ck-button-bold {\n\tfont-weight: bold;\n}\n',"/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * Implements a button of given background color.\n *\n * @param {String} $background - Background color of the button.\n * @param {String} $border - Border color of the button.\n */\n@define-mixin ck-button-colors $prefix {\n\tbackground: var($(prefix)-background);\n\n\t&:not(.ck-disabled) {\n\t\t&:hover {\n\t\t\tbackground: var($(prefix)-hover-background);\n\t\t}\n\n\t\t&:active {\n\t\t\tbackground: var($(prefix)-active-background);\n\t\t}\n\t}\n\n\t/* https://github.com/ckeditor/ckeditor5-theme-lark/issues/98 */\n\t&.ck-disabled {\n\t\tbackground: var($(prefix)-disabled-background);\n\t}\n}\n","/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * Implements rounded corner interface for .ck-rounded-corners class.\n *\n * @see $ck-border-radius\n */\n@define-mixin ck-rounded-corners {\n\tborder-radius: 0;\n\n\t@nest .ck-rounded-corners &,\n\t&.ck-rounded-corners {\n\t\tborder-radius: var(--ck-border-radius);\n\t\t@mixin-content;\n\t}\n}\n","/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * A visual style of focused element's border.\n */\n@define-mixin ck-focus-ring {\n\t/* Disable native outline. */\n\toutline: none;\n\tborder: var(--ck-focus-ring)\n}\n","/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * A helper to combine multiple shadows.\n */\n@define-mixin ck-box-shadow $shadowA, $shadowB: 0 0 {\n\tbox-shadow: $shadowA, $shadowB;\n}\n\n/**\n * Gives an element a drop shadow so it looks like a floating panel.\n */\n@define-mixin ck-drop-shadow {\n\t@mixin ck-box-shadow var(--ck-drop-shadow);\n}\n","/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * A class which indicates that an element holding it is disabled.\n */\n@define-mixin ck-disabled {\n\topacity: var(--ck-disabled-opacity);\n}\n"],sourceRoot:""}]);const l=i},9681:(e,t,o)=>{o.d(t,{Z:()=>l});var n=o(4015),a=o.n(n),r=o(3645),i=o.n(r)()(a());i.push([e.id,".ck.ck-button.ck-switchbutton .ck-button__toggle,.ck.ck-button.ck-switchbutton .ck-button__toggle .ck-button__toggle__inner{display:block}:root{--ck-switch-button-toggle-width:2.6153846154em;--ck-switch-button-toggle-inner-size:calc(1.07692em + 1px);--ck-switch-button-translation:calc(var(--ck-switch-button-toggle-width) - var(--ck-switch-button-toggle-inner-size) - 2px);--ck-switch-button-inner-hover-shadow:0 0 0 5px var(--ck-color-switch-button-inner-shadow)}.ck.ck-button.ck-switchbutton,.ck.ck-button.ck-switchbutton.ck-on:active,.ck.ck-button.ck-switchbutton.ck-on:focus,.ck.ck-button.ck-switchbutton.ck-on:hover,.ck.ck-button.ck-switchbutton:active,.ck.ck-button.ck-switchbutton:focus,.ck.ck-button.ck-switchbutton:hover{background:transparent;color:inherit}[dir=ltr] .ck.ck-button.ck-switchbutton .ck-button__label{margin-right:calc(var(--ck-spacing-large)*2)}[dir=rtl] .ck.ck-button.ck-switchbutton .ck-button__label{margin-left:calc(var(--ck-spacing-large)*2)}.ck.ck-button.ck-switchbutton .ck-button__toggle{border-radius:0}.ck-rounded-corners .ck.ck-button.ck-switchbutton .ck-button__toggle,.ck.ck-button.ck-switchbutton .ck-button__toggle.ck-rounded-corners{border-radius:var(--ck-border-radius)}[dir=ltr] .ck.ck-button.ck-switchbutton .ck-button__toggle{margin-left:auto}[dir=rtl] .ck.ck-button.ck-switchbutton .ck-button__toggle{margin-right:auto}.ck.ck-button.ck-switchbutton .ck-button__toggle{background:var(--ck-color-switch-button-off-background);border:1px solid transparent;transition:background .4s ease,box-shadow .2s ease-in-out,outline .2s ease-in-out;width:var(--ck-switch-button-toggle-width)}.ck.ck-button.ck-switchbutton .ck-button__toggle .ck-button__toggle__inner{border-radius:0}.ck-rounded-corners .ck.ck-button.ck-switchbutton .ck-button__toggle .ck-button__toggle__inner,.ck.ck-button.ck-switchbutton .ck-button__toggle .ck-button__toggle__inner.ck-rounded-corners{border-radius:var(--ck-border-radius);border-radius:calc(var(--ck-border-radius)*.5)}.ck.ck-button.ck-switchbutton .ck-button__toggle .ck-button__toggle__inner{background:var(--ck-color-switch-button-inner-background);height:var(--ck-switch-button-toggle-inner-size);transition:all .3s ease;width:var(--ck-switch-button-toggle-inner-size)}.ck.ck-button.ck-switchbutton .ck-button__toggle:hover{background:var(--ck-color-switch-button-off-hover-background)}.ck.ck-button.ck-switchbutton .ck-button__toggle:hover .ck-button__toggle__inner{box-shadow:var(--ck-switch-button-inner-hover-shadow)}.ck.ck-button.ck-switchbutton.ck-disabled .ck-button__toggle{opacity:var(--ck-disabled-opacity)}.ck.ck-button.ck-switchbutton:focus{border-color:transparent;box-shadow:none;outline:none}.ck.ck-button.ck-switchbutton:focus .ck-button__toggle{box-shadow:0 0 0 1px var(--ck-color-base-background),0 0 0 5px var(--ck-color-focus-outer-shadow);outline:var(--ck-focus-ring);outline-offset:1px}.ck.ck-button.ck-switchbutton.ck-on .ck-button__toggle{background:var(--ck-color-switch-button-on-background)}.ck.ck-button.ck-switchbutton.ck-on .ck-button__toggle:hover{background:var(--ck-color-switch-button-on-hover-background)}[dir=ltr] .ck.ck-button.ck-switchbutton.ck-on .ck-button__toggle .ck-button__toggle__inner{transform:translateX(var( --ck-switch-button-translation ))}[dir=rtl] .ck.ck-button.ck-switchbutton.ck-on .ck-button__toggle .ck-button__toggle__inner{transform:translateX(calc(var( --ck-switch-button-translation )*-1))}","",{version:3,sources:["webpack://./node_modules/@ckeditor/ckeditor5-ui/theme/components/button/switchbutton.css","webpack://./node_modules/@ckeditor/ckeditor5-theme-lark/theme/ckeditor5-ui/components/button/switchbutton.css","webpack://./node_modules/@ckeditor/ckeditor5-theme-lark/theme/mixins/_rounded.css","webpack://./node_modules/@ckeditor/ckeditor5-theme-lark/theme/mixins/_disabled.css"],names:[],mappings:"AASE,4HACC,aACD,CCCF,MAEC,8CAA+C,CAE/C,0DAAgE,CAChE,2HAIC,CACD,0FACD,CAOC,0QAEC,sBAAuB,CADvB,aAED,CAEA,0DAGE,4CAOF,CAVA,0DAQE,2CAEF,CAEA,iDCpCA,eD4EA,CAxCA,yIChCC,qCDwED,CAxCA,2DAKE,gBAmCF,CAxCA,2DAUE,iBA8BF,CAxCA,iDAkBC,uDAAwD,CAFxD,4BAA6B,CAD7B,iFAAsF,CAEtF,0CAuBD,CApBC,2ECxDD,eDmEC,CAXA,6LCpDA,qCAAsC,CDsDpC,8CASF,CAXA,2EAOC,yDAA0D,CAD1D,gDAAiD,CAIjD,uBAA0B,CAL1B,+CAMD,CAEA,uDACC,6DAKD,CAHC,iFACC,qDACD,CAIF,6DEhFA,kCFkFA,CAGA,oCACC,wBAAyB,CAEzB,eAAgB,CADhB,YAQD,CALC,uDACC,iGAAmG,CAEnG,4BAA6B,CAD7B,kBAED,CAKA,uDACC,sDAkBD,CAhBC,6DACC,4DACD,CAEA,2FAKE,2DAMF,CAXA,2FASE,oEAEF",sourcesContent:["/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck.ck-button.ck-switchbutton {\n\t& .ck-button__toggle {\n\t\tdisplay: block;\n\n\t\t& .ck-button__toggle__inner {\n\t\t\tdisplay: block;\n\t\t}\n\t}\n}\n",'/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "../../../mixins/_rounded.css";\n@import "../../../mixins/_disabled.css";\n@import "@ckeditor/ckeditor5-ui/theme/mixins/_dir.css";\n\n/* Note: To avoid rendering issues (aliasing) but to preserve the responsive nature\nof the component, floatingpoint numbers have been used which, for the default font size\n(see: --ck-font-size-base), will generate simple integers. */\n:root {\n\t/* 34px at 13px font-size */\n\t--ck-switch-button-toggle-width: 2.6153846154em;\n\t/* 14px at 13px font-size */\n\t--ck-switch-button-toggle-inner-size: calc(1.0769230769em + 1px);\n\t--ck-switch-button-translation: calc(\n\t\tvar(--ck-switch-button-toggle-width) -\n\t\tvar(--ck-switch-button-toggle-inner-size) -\n\t\t2px /* Border */\n\t);\n\t--ck-switch-button-inner-hover-shadow: 0 0 0 5px var(--ck-color-switch-button-inner-shadow);\n}\n\n.ck.ck-button.ck-switchbutton {\n\t/* Unlike a regular button, the switch button text color and background should never change.\n\t * Changing toggle switch (background, outline) is enough to carry the information about the\n\t * state of the entire component (https://github.com/ckeditor/ckeditor5/issues/12519)\n\t */\n\t&, &:hover, &:focus, &:active, &.ck-on:hover, &.ck-on:focus, &.ck-on:active {\n\t\tcolor: inherit;\n\t\tbackground: transparent;\n\t}\n\n\t& .ck-button__label {\n\t\t@mixin ck-dir ltr {\n\t\t\t/* Separate the label from the switch */\n\t\t\tmargin-right: calc(2 * var(--ck-spacing-large));\n\t\t}\n\n\t\t@mixin ck-dir rtl {\n\t\t\t/* Separate the label from the switch */\n\t\t\tmargin-left: calc(2 * var(--ck-spacing-large));\n\t\t}\n\t}\n\n\t& .ck-button__toggle {\n\t\t@mixin ck-rounded-corners;\n\n\t\t@mixin ck-dir ltr {\n\t\t\t/* Make sure the toggle is always to the right as far as possible. */\n\t\t\tmargin-left: auto;\n\t\t}\n\n\t\t@mixin ck-dir rtl {\n\t\t\t/* Make sure the toggle is always to the left as far as possible. */\n\t\t\tmargin-right: auto;\n\t\t}\n\n\t\t/* Apply some smooth transition to the box-shadow and border. */\n\t\t/* Gently animate the background color of the toggle switch */\n\t\ttransition: background 400ms ease, box-shadow .2s ease-in-out, outline .2s ease-in-out;\n\t\tborder: 1px solid transparent;\n\t\twidth: var(--ck-switch-button-toggle-width);\n\t\tbackground: var(--ck-color-switch-button-off-background);\n\n\t\t& .ck-button__toggle__inner {\n\t\t\t@mixin ck-rounded-corners {\n\t\t\t\tborder-radius: calc(.5 * var(--ck-border-radius));\n\t\t\t}\n\n\t\t\twidth: var(--ck-switch-button-toggle-inner-size);\n\t\t\theight: var(--ck-switch-button-toggle-inner-size);\n\t\t\tbackground: var(--ck-color-switch-button-inner-background);\n\n\t\t\t/* Gently animate the inner part of the toggle switch */\n\t\t\ttransition: all 300ms ease;\n\t\t}\n\n\t\t&:hover {\n\t\t\tbackground: var(--ck-color-switch-button-off-hover-background);\n\n\t\t\t& .ck-button__toggle__inner {\n\t\t\t\tbox-shadow: var(--ck-switch-button-inner-hover-shadow);\n\t\t\t}\n\t\t}\n\t}\n\n\t&.ck-disabled .ck-button__toggle {\n\t\t@mixin ck-disabled;\n\t}\n\n\t/* Overriding default .ck-button:focus styles + an outline around the toogle */\n\t&:focus {\n\t\tborder-color: transparent;\n\t\toutline: none;\n\t\tbox-shadow: none;\n\n\t\t& .ck-button__toggle {\n\t\t\tbox-shadow: 0 0 0 1px var(--ck-color-base-background), 0 0 0 5px var(--ck-color-focus-outer-shadow);\n\t\t\toutline-offset: 1px;\n\t\t\toutline: var(--ck-focus-ring);\n\t\t}\n\t}\n\n\t/* stylelint-disable-next-line no-descending-specificity */\n\t&.ck-on {\n\t\t& .ck-button__toggle {\n\t\t\tbackground: var(--ck-color-switch-button-on-background);\n\n\t\t\t&:hover {\n\t\t\t\tbackground: var(--ck-color-switch-button-on-hover-background);\n\t\t\t}\n\n\t\t\t& .ck-button__toggle__inner {\n\t\t\t\t/*\n\t\t\t\t* Move the toggle switch to the right. It will be animated.\n\t\t\t\t*/\n\t\t\t\t@mixin ck-dir ltr {\n\t\t\t\t\ttransform: translateX( var( --ck-switch-button-translation ) );\n\t\t\t\t}\n\n\t\t\t\t@mixin ck-dir rtl {\n\t\t\t\t\ttransform: translateX( calc( -1 * var( --ck-switch-button-translation ) ) );\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n}\n',"/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * Implements rounded corner interface for .ck-rounded-corners class.\n *\n * @see $ck-border-radius\n */\n@define-mixin ck-rounded-corners {\n\tborder-radius: 0;\n\n\t@nest .ck-rounded-corners &,\n\t&.ck-rounded-corners {\n\t\tborder-radius: var(--ck-border-radius);\n\t\t@mixin-content;\n\t}\n}\n","/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * A class which indicates that an element holding it is disabled.\n */\n@define-mixin ck-disabled {\n\topacity: var(--ck-disabled-opacity);\n}\n"],sourceRoot:""}]);const l=i},4923:(e,t,o)=>{o.d(t,{Z:()=>l});var n=o(4015),a=o.n(n),r=o(3645),i=o.n(r)()(a());i.push([e.id,".ck.ck-color-grid{display:grid}:root{--ck-color-grid-tile-size:24px;--ck-color-color-grid-check-icon:#166fd4}.ck.ck-color-grid{grid-gap:5px;padding:8px}.ck.ck-color-grid__tile{border:0;height:var(--ck-color-grid-tile-size);min-height:var(--ck-color-grid-tile-size);min-width:var(--ck-color-grid-tile-size);padding:0;transition:box-shadow .2s ease;width:var(--ck-color-grid-tile-size)}.ck.ck-color-grid__tile.ck-disabled{cursor:unset;transition:unset}.ck.ck-color-grid__tile.ck-color-table__color-tile_bordered{box-shadow:0 0 0 1px var(--ck-color-base-border)}.ck.ck-color-grid__tile .ck.ck-icon{color:var(--ck-color-color-grid-check-icon);display:none}.ck.ck-color-grid__tile.ck-on{box-shadow:inset 0 0 0 1px var(--ck-color-base-background),0 0 0 2px var(--ck-color-base-text)}.ck.ck-color-grid__tile.ck-on .ck.ck-icon{display:block}.ck.ck-color-grid__tile.ck-on,.ck.ck-color-grid__tile:focus:not(.ck-disabled),.ck.ck-color-grid__tile:hover:not(.ck-disabled){border:0}.ck.ck-color-grid__tile:focus:not(.ck-disabled),.ck.ck-color-grid__tile:hover:not(.ck-disabled){box-shadow:inset 0 0 0 1px var(--ck-color-base-background),0 0 0 2px var(--ck-color-focus-border)}.ck.ck-color-grid__label{padding:0 var(--ck-spacing-standard)}","",{version:3,sources:["webpack://./node_modules/@ckeditor/ckeditor5-ui/theme/components/colorgrid/colorgrid.css","webpack://./node_modules/@ckeditor/ckeditor5-theme-lark/theme/ckeditor5-ui/components/colorgrid/colorgrid.css"],names:[],mappings:"AAKA,kBACC,YACD,CCAA,MACC,8BAA+B,CAK/B,wCACD,CAEA,kBACC,YAAa,CACb,WACD,CAEA,wBAOC,QAAS,CALT,qCAAsC,CAEtC,yCAA0C,CAD1C,wCAAyC,CAEzC,SAAU,CACV,8BAA+B,CAL/B,oCAyCD,CAjCC,oCACC,YAAa,CACb,gBACD,CAEA,4DACC,gDACD,CAEA,oCAEC,2CAA4C,CAD5C,YAED,CAEA,8BACC,8FAKD,CAHC,0CACC,aACD,CAGD,8HAIC,QACD,CAEA,gGAEC,iGACD,CAGD,yBACC,oCACD",sourcesContent:["/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck.ck-color-grid {\n\tdisplay: grid;\n}\n",'/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "../../../mixins/_rounded.css";\n\n:root {\n\t--ck-color-grid-tile-size: 24px;\n\n\t/* Not using global colors here because these may change but some colors in a pallette\n\t * require special treatment. For instance, this ensures no matter what the UI text color is,\n\t * the check icon will look good on the black color tile. */\n\t--ck-color-color-grid-check-icon: hsl(212, 81%, 46%);\n}\n\n.ck.ck-color-grid {\n\tgrid-gap: 5px;\n\tpadding: 8px;\n}\n\n.ck.ck-color-grid__tile {\n\twidth: var(--ck-color-grid-tile-size);\n\theight: var(--ck-color-grid-tile-size);\n\tmin-width: var(--ck-color-grid-tile-size);\n\tmin-height: var(--ck-color-grid-tile-size);\n\tpadding: 0;\n\ttransition: .2s ease box-shadow;\n\tborder: 0;\n\n\t&.ck-disabled {\n\t\tcursor: unset;\n\t\ttransition: unset;\n\t}\n\n\t&.ck-color-table__color-tile_bordered {\n\t\tbox-shadow: 0 0 0 1px var(--ck-color-base-border);\n\t}\n\n\t& .ck.ck-icon {\n\t\tdisplay: none;\n\t\tcolor: var(--ck-color-color-grid-check-icon);\n\t}\n\n\t&.ck-on {\n\t\tbox-shadow: inset 0 0 0 1px var(--ck-color-base-background), 0 0 0 2px var(--ck-color-base-text);\n\n\t\t& .ck.ck-icon {\n\t\t\tdisplay: block;\n\t\t}\n\t}\n\n\t&.ck-on,\n\t&:focus:not( .ck-disabled ),\n\t&:hover:not( .ck-disabled ) {\n\t\t/* Disable the default .ck-button\'s border ring. */\n\t\tborder: 0;\n\t}\n\n\t&:focus:not( .ck-disabled ),\n\t&:hover:not( .ck-disabled ) {\n\t\tbox-shadow: inset 0 0 0 1px var(--ck-color-base-background), 0 0 0 2px var(--ck-color-focus-border);\n\t}\n}\n\n.ck.ck-color-grid__label {\n\tpadding: 0 var(--ck-spacing-standard);\n}\n'],sourceRoot:""}]);const l=i},3488:(e,t,o)=>{o.d(t,{Z:()=>l});var n=o(4015),a=o.n(n),r=o(3645),i=o.n(r)()(a());i.push([e.id,":root{--ck-dropdown-max-width:75vw}.ck.ck-dropdown{display:inline-block;position:relative}.ck.ck-dropdown .ck-dropdown__arrow{pointer-events:none;z-index:var(--ck-z-default)}.ck.ck-dropdown .ck-button.ck-dropdown__button{width:100%}.ck.ck-dropdown .ck-dropdown__panel{display:none;max-width:var(--ck-dropdown-max-width);position:absolute;z-index:var(--ck-z-modal)}.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel-visible{display:inline-block}.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_n,.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_ne,.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_nme,.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_nmw,.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_nw{bottom:100%}.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_s,.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_se,.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_sme,.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_smw,.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_sw{bottom:auto;top:100%}.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_ne,.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_se{left:0}.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_nw,.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_sw{right:0}.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_n,.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_s{left:50%;transform:translateX(-50%)}.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_nmw,.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_smw{left:75%;transform:translateX(-75%)}.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_nme,.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_sme{left:25%;transform:translateX(-25%)}.ck.ck-toolbar .ck-dropdown__panel{z-index:calc(var(--ck-z-modal) + 1)}:root{--ck-dropdown-arrow-size:calc(var(--ck-icon-size)*0.5)}.ck.ck-dropdown{font-size:inherit}.ck.ck-dropdown .ck-dropdown__arrow{width:var(--ck-dropdown-arrow-size)}[dir=ltr] .ck.ck-dropdown .ck-dropdown__arrow{margin-left:var(--ck-spacing-standard);right:var(--ck-spacing-standard)}[dir=rtl] .ck.ck-dropdown .ck-dropdown__arrow{left:var(--ck-spacing-standard);margin-right:var(--ck-spacing-small)}.ck.ck-dropdown.ck-disabled .ck-dropdown__arrow{opacity:var(--ck-disabled-opacity)}[dir=ltr] .ck.ck-dropdown .ck-button.ck-dropdown__button:not(.ck-button_with-text){padding-left:var(--ck-spacing-small)}[dir=rtl] .ck.ck-dropdown .ck-button.ck-dropdown__button:not(.ck-button_with-text){padding-right:var(--ck-spacing-small)}.ck.ck-dropdown .ck-button.ck-dropdown__button .ck-button__label{overflow:hidden;text-overflow:ellipsis;width:7em}.ck.ck-dropdown .ck-button.ck-dropdown__button.ck-disabled .ck-button__label{opacity:var(--ck-disabled-opacity)}.ck.ck-dropdown .ck-button.ck-dropdown__button.ck-on{border-bottom-left-radius:0;border-bottom-right-radius:0}.ck.ck-dropdown .ck-button.ck-dropdown__button.ck-dropdown__button_label-width_auto .ck-button__label{width:auto}.ck.ck-dropdown .ck-button.ck-dropdown__button.ck-off:active,.ck.ck-dropdown .ck-button.ck-dropdown__button.ck-on:active{box-shadow:none}.ck.ck-dropdown .ck-button.ck-dropdown__button.ck-off:active:focus,.ck.ck-dropdown .ck-button.ck-dropdown__button.ck-on:active:focus{box-shadow:var(--ck-focus-outer-shadow),0 0}.ck.ck-dropdown__panel{border-radius:0}.ck-rounded-corners .ck.ck-dropdown__panel,.ck.ck-dropdown__panel.ck-rounded-corners{border-radius:var(--ck-border-radius)}.ck.ck-dropdown__panel{background:var(--ck-color-dropdown-panel-background);border:1px solid var(--ck-color-dropdown-panel-border);bottom:0;box-shadow:var(--ck-drop-shadow),0 0;min-width:100%}.ck.ck-dropdown__panel.ck-dropdown__panel_se{border-top-left-radius:0}.ck.ck-dropdown__panel.ck-dropdown__panel_sw{border-top-right-radius:0}.ck.ck-dropdown__panel.ck-dropdown__panel_ne{border-bottom-left-radius:0}.ck.ck-dropdown__panel.ck-dropdown__panel_nw{border-bottom-right-radius:0}","",{version:3,sources:["webpack://./node_modules/@ckeditor/ckeditor5-ui/theme/components/dropdown/dropdown.css","webpack://./node_modules/@ckeditor/ckeditor5-theme-lark/theme/ckeditor5-ui/components/dropdown/dropdown.css","webpack://./node_modules/@ckeditor/ckeditor5-theme-lark/theme/mixins/_disabled.css","webpack://./node_modules/@ckeditor/ckeditor5-theme-lark/theme/mixins/_shadow.css","webpack://./node_modules/@ckeditor/ckeditor5-theme-lark/theme/mixins/_rounded.css"],names:[],mappings:"AAKA,MACC,4BACD,CAEA,gBACC,oBAAqB,CACrB,iBA2ED,CAzEC,oCACC,mBAAoB,CACpB,2BACD,CAGA,+CACC,UACD,CAEA,oCACC,YAAa,CAEb,sCAAuC,CAEvC,iBAAkB,CAHlB,yBA4DD,CAvDC,+DACC,oBACD,CAEA,mSAKC,WACD,CAEA,mSAUC,WAAY,CADZ,QAED,CAEA,oHAEC,MACD,CAEA,oHAEC,OACD,CAEA,kHAGC,QAAS,CACT,0BACD,CAEA,sHAGC,QAAS,CACT,0BACD,CAEA,sHAGC,QAAS,CACT,0BACD,CAQF,mCACC,mCACD,CCpFA,MACC,sDACD,CAEA,gBAEC,iBA2ED,CAzEC,oCACC,mCACD,CAGC,8CAIC,sCAAuC,CAHvC,gCAID,CAIA,8CACC,+BAAgC,CAGhC,oCACD,CAGD,gDC/BA,kCDiCA,CAIE,mFAEC,oCACD,CAIA,mFAEC,qCACD,CAID,iEAEC,eAAgB,CAChB,sBAAuB,CAFvB,SAGD,CAGA,6EC1DD,kCD4DC,CAGA,qDACC,2BAA4B,CAC5B,4BACD,CAEA,sGACC,UACD,CAGA,yHAEC,eAKD,CAHC,qIE7EF,2CF+EE,CAKH,uBGlFC,eH8GD,CA5BA,qFG9EE,qCH0GF,CA5BA,uBAIC,oDAAqD,CACrD,sDAAuD,CACvD,QAAS,CE1FT,oCAA8B,CF6F9B,cAmBD,CAfC,6CACC,wBACD,CAEA,6CACC,yBACD,CAEA,6CACC,2BACD,CAEA,6CACC,4BACD",sourcesContent:["/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n:root {\n\t--ck-dropdown-max-width: 75vw;\n}\n\n.ck.ck-dropdown {\n\tdisplay: inline-block;\n\tposition: relative;\n\n\t& .ck-dropdown__arrow {\n\t\tpointer-events: none;\n\t\tz-index: var(--ck-z-default);\n\t}\n\n\t/* Dropdown button should span horizontally, e.g. in vertical toolbars */\n\t& .ck-button.ck-dropdown__button {\n\t\twidth: 100%;\n\t}\n\n\t& .ck-dropdown__panel {\n\t\tdisplay: none;\n\t\tz-index: var(--ck-z-modal);\n\t\tmax-width: var(--ck-dropdown-max-width);\n\n\t\tposition: absolute;\n\n\t\t&.ck-dropdown__panel-visible {\n\t\t\tdisplay: inline-block;\n\t\t}\n\n\t\t&.ck-dropdown__panel_ne,\n\t\t&.ck-dropdown__panel_nw,\n\t\t&.ck-dropdown__panel_n,\n\t\t&.ck-dropdown__panel_nmw,\n\t\t&.ck-dropdown__panel_nme {\n\t\t\tbottom: 100%;\n\t\t}\n\n\t\t&.ck-dropdown__panel_se,\n\t\t&.ck-dropdown__panel_sw,\n\t\t&.ck-dropdown__panel_smw,\n\t\t&.ck-dropdown__panel_sme,\n\t\t&.ck-dropdown__panel_s {\n\t\t\t/*\n\t\t\t * Using transform: translate3d( 0, 100%, 0 ) causes blurry dropdown on Chrome 67-78+ on non-retina displays.\n\t\t\t * See https://github.com/ckeditor/ckeditor5/issues/1053.\n\t\t\t */\n\t\t\ttop: 100%;\n\t\t\tbottom: auto;\n\t\t}\n\n\t\t&.ck-dropdown__panel_ne,\n\t\t&.ck-dropdown__panel_se {\n\t\t\tleft: 0px;\n\t\t}\n\n\t\t&.ck-dropdown__panel_nw,\n\t\t&.ck-dropdown__panel_sw {\n\t\t\tright: 0px;\n\t\t}\n\n\t\t&.ck-dropdown__panel_s,\n\t\t&.ck-dropdown__panel_n {\n\t\t\t/* Positioning panels relative to the center of the button */\n\t\t\tleft: 50%;\n\t\t\ttransform: translateX(-50%);\n\t\t}\n\n\t\t&.ck-dropdown__panel_nmw,\n\t\t&.ck-dropdown__panel_smw {\n\t\t\t/* Positioning panels relative to the middle-west of the button */\n\t\t\tleft: 75%;\n\t\t\ttransform: translateX(-75%);\n\t\t}\n\n\t\t&.ck-dropdown__panel_nme,\n\t\t&.ck-dropdown__panel_sme {\n\t\t\t/* Positioning panels relative to the middle-east of the button */\n\t\t\tleft: 25%;\n\t\t\ttransform: translateX(-25%);\n\t\t}\n\t}\n}\n\n/*\n * Toolbar dropdown panels should be always above the UI (eg. other dropdown panels) from the editor's content.\n * See https://github.com/ckeditor/ckeditor5/issues/7874\n */\n.ck.ck-toolbar .ck-dropdown__panel {\n\tz-index: calc( var(--ck-z-modal) + 1 );\n}\n",'/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "../../../mixins/_rounded.css";\n@import "../../../mixins/_disabled.css";\n@import "../../../mixins/_shadow.css";\n@import "@ckeditor/ckeditor5-ui/theme/mixins/_dir.css";\n\n:root {\n\t--ck-dropdown-arrow-size: calc(0.5 * var(--ck-icon-size));\n}\n\n.ck.ck-dropdown {\n\t/* Enable font size inheritance, which allows fluid UI scaling. */\n\tfont-size: inherit;\n\n\t& .ck-dropdown__arrow {\n\t\twidth: var(--ck-dropdown-arrow-size);\n\t}\n\n\t@mixin ck-dir ltr {\n\t\t& .ck-dropdown__arrow {\n\t\t\tright: var(--ck-spacing-standard);\n\n\t\t\t/* A space to accommodate the triangle. */\n\t\t\tmargin-left: var(--ck-spacing-standard);\n\t\t}\n\t}\n\n\t@mixin ck-dir rtl {\n\t\t& .ck-dropdown__arrow {\n\t\t\tleft: var(--ck-spacing-standard);\n\n\t\t\t/* A space to accommodate the triangle. */\n\t\t\tmargin-right: var(--ck-spacing-small);\n\t\t}\n\t}\n\n\t&.ck-disabled .ck-dropdown__arrow {\n\t\t@mixin ck-disabled;\n\t}\n\n\t& .ck-button.ck-dropdown__button {\n\t\t@mixin ck-dir ltr {\n\t\t\t&:not(.ck-button_with-text) {\n\t\t\t\t/* Make sure dropdowns with just an icon have the right inner spacing */\n\t\t\t\tpadding-left: var(--ck-spacing-small);\n\t\t\t}\n\t\t}\n\n\t\t@mixin ck-dir rtl {\n\t\t\t&:not(.ck-button_with-text) {\n\t\t\t\t/* Make sure dropdowns with just an icon have the right inner spacing */\n\t\t\t\tpadding-right: var(--ck-spacing-small);\n\t\t\t}\n\t\t}\n\n\t\t/* #23 */\n\t\t& .ck-button__label {\n\t\t\twidth: 7em;\n\t\t\toverflow: hidden;\n\t\t\ttext-overflow: ellipsis;\n\t\t}\n\n\t\t/* https://github.com/ckeditor/ckeditor5-theme-lark/issues/70 */\n\t\t&.ck-disabled .ck-button__label {\n\t\t\t@mixin ck-disabled;\n\t\t}\n\n\t\t/* https://github.com/ckeditor/ckeditor5/issues/816 */\n\t\t&.ck-on {\n\t\t\tborder-bottom-left-radius: 0;\n\t\t\tborder-bottom-right-radius: 0;\n\t\t}\n\n\t\t&.ck-dropdown__button_label-width_auto .ck-button__label {\n\t\t\twidth: auto;\n\t\t}\n\n\t\t/* https://github.com/ckeditor/ckeditor5/issues/8699 */\n\t\t&.ck-off:active,\n\t\t&.ck-on:active {\n\t\t\tbox-shadow: none;\n\t\t\t\n\t\t\t&:focus {\n\t\t\t\t@mixin ck-box-shadow var(--ck-focus-outer-shadow);\n\t\t\t}\n\t\t}\n\t}\n}\n\n.ck.ck-dropdown__panel {\n\t@mixin ck-rounded-corners;\n\t@mixin ck-drop-shadow;\n\n\tbackground: var(--ck-color-dropdown-panel-background);\n\tborder: 1px solid var(--ck-color-dropdown-panel-border);\n\tbottom: 0;\n\n\t/* Make sure the panel is at least as wide as the drop-down\'s button. */\n\tmin-width: 100%;\n\n\t/* Disabled corner border radius to be consistent with the .dropdown__button\n\thttps://github.com/ckeditor/ckeditor5/issues/816 */\n\t&.ck-dropdown__panel_se {\n\t\tborder-top-left-radius: 0;\n\t}\n\n\t&.ck-dropdown__panel_sw {\n\t\tborder-top-right-radius: 0;\n\t}\n\n\t&.ck-dropdown__panel_ne {\n\t\tborder-bottom-left-radius: 0;\n\t}\n\n\t&.ck-dropdown__panel_nw {\n\t\tborder-bottom-right-radius: 0;\n\t}\n}\n',"/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * A class which indicates that an element holding it is disabled.\n */\n@define-mixin ck-disabled {\n\topacity: var(--ck-disabled-opacity);\n}\n","/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * A helper to combine multiple shadows.\n */\n@define-mixin ck-box-shadow $shadowA, $shadowB: 0 0 {\n\tbox-shadow: $shadowA, $shadowB;\n}\n\n/**\n * Gives an element a drop shadow so it looks like a floating panel.\n */\n@define-mixin ck-drop-shadow {\n\t@mixin ck-box-shadow var(--ck-drop-shadow);\n}\n","/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * Implements rounded corner interface for .ck-rounded-corners class.\n *\n * @see $ck-border-radius\n */\n@define-mixin ck-rounded-corners {\n\tborder-radius: 0;\n\n\t@nest .ck-rounded-corners &,\n\t&.ck-rounded-corners {\n\t\tborder-radius: var(--ck-border-radius);\n\t\t@mixin-content;\n\t}\n}\n"],sourceRoot:""}]);const l=i},6875:(e,t,o)=>{o.d(t,{Z:()=>l});var n=o(4015),a=o.n(n),r=o(3645),i=o.n(r)()(a());i.push([e.id,".ck.ck-dropdown .ck-dropdown__panel .ck-list{border-radius:0}.ck-rounded-corners .ck.ck-dropdown .ck-dropdown__panel .ck-list,.ck.ck-dropdown .ck-dropdown__panel .ck-list.ck-rounded-corners{border-radius:var(--ck-border-radius);border-top-left-radius:0}.ck.ck-dropdown .ck-dropdown__panel .ck-list .ck-list__item:first-child .ck-button{border-radius:0}.ck-rounded-corners .ck.ck-dropdown .ck-dropdown__panel .ck-list .ck-list__item:first-child .ck-button,.ck.ck-dropdown .ck-dropdown__panel .ck-list .ck-list__item:first-child .ck-button.ck-rounded-corners{border-radius:var(--ck-border-radius);border-bottom-left-radius:0;border-bottom-right-radius:0;border-top-left-radius:0}.ck.ck-dropdown .ck-dropdown__panel .ck-list .ck-list__item:last-child .ck-button{border-radius:0}.ck-rounded-corners .ck.ck-dropdown .ck-dropdown__panel .ck-list .ck-list__item:last-child .ck-button,.ck.ck-dropdown .ck-dropdown__panel .ck-list .ck-list__item:last-child .ck-button.ck-rounded-corners{border-radius:var(--ck-border-radius);border-top-left-radius:0;border-top-right-radius:0}","",{version:3,sources:["webpack://./node_modules/@ckeditor/ckeditor5-theme-lark/theme/ckeditor5-ui/components/dropdown/listdropdown.css","webpack://./node_modules/@ckeditor/ckeditor5-theme-lark/theme/mixins/_rounded.css"],names:[],mappings:"AAOA,6CCIC,eDqBD,CAzBA,iICQE,qCAAsC,CDJtC,wBAqBF,CAfE,mFCND,eDYC,CANA,6MCFA,qCAAsC,CDKpC,2BAA4B,CAC5B,4BAA6B,CAF7B,wBAIF,CAEA,kFCdD,eDmBC,CALA,2MCVA,qCAAsC,CDYpC,wBAAyB,CACzB,yBAEF",sourcesContent:['/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "../../../mixins/_rounded.css";\n\n.ck.ck-dropdown .ck-dropdown__panel .ck-list {\n\t/* Disabled radius of top-left border to be consistent with .dropdown__button\n\thttps://github.com/ckeditor/ckeditor5/issues/816 */\n\t@mixin ck-rounded-corners {\n\t\tborder-top-left-radius: 0;\n\t}\n\n\t/* Make sure the button belonging to the first/last child of the list goes well with the\n\tborder radius of the entire panel. */\n\t& .ck-list__item {\n\t\t&:first-child .ck-button {\n\t\t\t@mixin ck-rounded-corners {\n\t\t\t\tborder-top-left-radius: 0;\n\t\t\t\tborder-bottom-left-radius: 0;\n\t\t\t\tborder-bottom-right-radius: 0;\n\t\t\t}\n\t\t}\n\n\t\t&:last-child .ck-button {\n\t\t\t@mixin ck-rounded-corners {\n\t\t\t\tborder-top-left-radius: 0;\n\t\t\t\tborder-top-right-radius: 0;\n\t\t\t}\n\t\t}\n\t}\n}\n',"/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * Implements rounded corner interface for .ck-rounded-corners class.\n *\n * @see $ck-border-radius\n */\n@define-mixin ck-rounded-corners {\n\tborder-radius: 0;\n\n\t@nest .ck-rounded-corners &,\n\t&.ck-rounded-corners {\n\t\tborder-radius: var(--ck-border-radius);\n\t\t@mixin-content;\n\t}\n}\n"],sourceRoot:""}]);const l=i},66:(e,t,o)=>{o.d(t,{Z:()=>l});var n=o(4015),a=o.n(n),r=o(3645),i=o.n(r)()(a());i.push([e.id,'.ck.ck-splitbutton{font-size:inherit}.ck.ck-splitbutton .ck-splitbutton__action:focus{z-index:calc(var(--ck-z-default) + 1)}:root{--ck-color-split-button-hover-background:#ebebeb;--ck-color-split-button-hover-border:#b3b3b3}[dir=ltr] .ck.ck-splitbutton.ck-splitbutton_open>.ck-splitbutton__action,[dir=ltr] .ck.ck-splitbutton:hover>.ck-splitbutton__action{border-bottom-right-radius:unset;border-top-right-radius:unset}[dir=rtl] .ck.ck-splitbutton.ck-splitbutton_open>.ck-splitbutton__action,[dir=rtl] .ck.ck-splitbutton:hover>.ck-splitbutton__action{border-bottom-left-radius:unset;border-top-left-radius:unset}.ck.ck-splitbutton>.ck-splitbutton__arrow{min-width:unset}[dir=ltr] .ck.ck-splitbutton>.ck-splitbutton__arrow{border-bottom-left-radius:unset;border-top-left-radius:unset}[dir=rtl] .ck.ck-splitbutton>.ck-splitbutton__arrow{border-bottom-right-radius:unset;border-top-right-radius:unset}.ck.ck-splitbutton>.ck-splitbutton__arrow svg{width:var(--ck-dropdown-arrow-size)}.ck.ck-splitbutton>.ck-splitbutton__arrow:not(:focus){border-bottom-width:0;border-top-width:0}.ck.ck-splitbutton.ck-splitbutton_open>.ck-button:not(.ck-on):not(.ck-disabled):not(:hover),.ck.ck-splitbutton:hover>.ck-button:not(.ck-on):not(.ck-disabled):not(:hover){background:var(--ck-color-split-button-hover-background)}.ck.ck-splitbutton.ck-splitbutton_open>.ck-splitbutton__arrow:not(.ck-disabled):after,.ck.ck-splitbutton:hover>.ck-splitbutton__arrow:not(.ck-disabled):after{background-color:var(--ck-color-split-button-hover-border);content:"";height:100%;position:absolute;width:1px}.ck.ck-splitbutton.ck-splitbutton_open>.ck-splitbutton__arrow:focus:after,.ck.ck-splitbutton:hover>.ck-splitbutton__arrow:focus:after{--ck-color-split-button-hover-border:var(--ck-color-focus-border)}[dir=ltr] .ck.ck-splitbutton.ck-splitbutton_open>.ck-splitbutton__arrow:not(.ck-disabled):after,[dir=ltr] .ck.ck-splitbutton:hover>.ck-splitbutton__arrow:not(.ck-disabled):after{left:-1px}[dir=rtl] .ck.ck-splitbutton.ck-splitbutton_open>.ck-splitbutton__arrow:not(.ck-disabled):after,[dir=rtl] .ck.ck-splitbutton:hover>.ck-splitbutton__arrow:not(.ck-disabled):after{right:-1px}.ck.ck-splitbutton.ck-splitbutton_open{border-radius:0}.ck-rounded-corners .ck.ck-splitbutton.ck-splitbutton_open,.ck.ck-splitbutton.ck-splitbutton_open.ck-rounded-corners{border-radius:var(--ck-border-radius)}.ck-rounded-corners .ck.ck-splitbutton.ck-splitbutton_open>.ck-splitbutton__action,.ck.ck-splitbutton.ck-splitbutton_open.ck-rounded-corners>.ck-splitbutton__action{border-bottom-left-radius:0}.ck-rounded-corners .ck.ck-splitbutton.ck-splitbutton_open>.ck-splitbutton__arrow,.ck.ck-splitbutton.ck-splitbutton_open.ck-rounded-corners>.ck-splitbutton__arrow{border-bottom-right-radius:0}',"",{version:3,sources:["webpack://./node_modules/@ckeditor/ckeditor5-ui/theme/components/dropdown/splitbutton.css","webpack://./node_modules/@ckeditor/ckeditor5-theme-lark/theme/ckeditor5-ui/components/dropdown/splitbutton.css","webpack://./node_modules/@ckeditor/ckeditor5-theme-lark/theme/mixins/_rounded.css"],names:[],mappings:"AAKA,mBAEC,iBAKD,CAHC,iDACC,qCACD,CCJD,MACC,gDAAyD,CACzD,4CACD,CAMC,oIAKE,gCAAiC,CADjC,6BASF,CAbA,oIAWE,+BAAgC,CADhC,4BAGF,CAEA,0CAGC,eAiBD,CApBA,oDAQE,+BAAgC,CADhC,4BAaF,CApBA,oDAcE,gCAAiC,CADjC,6BAOF,CAHC,8CACC,mCACD,CAKD,sDAEC,qBAAwB,CADxB,kBAED,CAQC,0KACC,wDACD,CAIA,8JAKC,0DAA2D,CAJ3D,UAAW,CAGX,WAAY,CAFZ,iBAAkB,CAClB,SAGD,CAGA,sIACC,iEACD,CAGC,kLACC,SACD,CAIA,kLACC,UACD,CAMF,uCCzFA,eDmGA,CAVA,qHCrFC,qCD+FD,CARE,qKACC,2BACD,CAEA,mKACC,4BACD",sourcesContent:["/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck.ck-splitbutton {\n\t/* Enable font size inheritance, which allows fluid UI scaling. */\n\tfont-size: inherit;\n\n\t& .ck-splitbutton__action:focus {\n\t\tz-index: calc(var(--ck-z-default) + 1);\n\t}\n}\n\n",'/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "../../../mixins/_rounded.css";\n\n:root {\n\t--ck-color-split-button-hover-background: hsl(0, 0%, 92%);\n\t--ck-color-split-button-hover-border: hsl(0, 0%, 70%);\n}\n\n.ck.ck-splitbutton {\n\t/*\n\t * Note: ck-rounded and ck-dir mixins don\'t go together (because they both use @nest).\n\t */\n\t&:hover > .ck-splitbutton__action,\n\t&.ck-splitbutton_open > .ck-splitbutton__action {\n\t\t@nest [dir="ltr"] & {\n\t\t\t/* Don\'t round the action button on the right side */\n\t\t\tborder-top-right-radius: unset;\n\t\t\tborder-bottom-right-radius: unset;\n\t\t}\n\n\t\t@nest [dir="rtl"] & {\n\t\t\t/* Don\'t round the action button on the left side */\n\t\t\tborder-top-left-radius: unset;\n\t\t\tborder-bottom-left-radius: unset;\n\t\t}\n\t}\n\n\t& > .ck-splitbutton__arrow {\n\t\t/* It\'s a text-less button and since the icon is positioned absolutely in such situation,\n\t\tit must get some arbitrary min-width. */\n\t\tmin-width: unset;\n\n\t\t@nest [dir="ltr"] & {\n\t\t\t/* Don\'t round the arrow button on the left side */\n\t\t\tborder-top-left-radius: unset;\n\t\t\tborder-bottom-left-radius: unset;\n\t\t}\n\n\t\t@nest [dir="rtl"] & {\n\t\t\t/* Don\'t round the arrow button on the right side */\n\t\t\tborder-top-right-radius: unset;\n\t\t\tborder-bottom-right-radius: unset;\n\t\t}\n\n\t\t& svg {\n\t\t\twidth: var(--ck-dropdown-arrow-size);\n\t\t}\n\t}\n\n\t/* Make sure the divider stretches 100% height of the button\n\thttps://github.com/ckeditor/ckeditor5/issues/10936 */\n\t& > .ck-splitbutton__arrow:not(:focus) {\n\t\tborder-top-width: 0px;\n\t\tborder-bottom-width: 0px;\n\t}\n\n\t/* When the split button is "open" (the arrow is on) or being hovered, it should get some styling\n\tas a whole. The background of both buttons should stand out and there should be a visual\n\tseparation between both buttons. */\n\t&.ck-splitbutton_open,\n\t&:hover {\n\t\t/* When the split button hovered as a whole, not as individual buttons. */\n\t\t& > .ck-button:not(.ck-on):not(.ck-disabled):not(:hover) {\n\t\t\tbackground: var(--ck-color-split-button-hover-background);\n\t\t}\n\n\t\t/* Splitbutton separator needs to be set with the ::after pseudoselector\n\t\tto display properly the borders on focus */\n\t\t& > .ck-splitbutton__arrow:not(.ck-disabled)::after {\n\t\t\tcontent: \'\';\n\t\t\tposition: absolute;\n\t\t\twidth: 1px;\n\t\t\theight: 100%;\n\t\t\tbackground-color: var(--ck-color-split-button-hover-border);\n\t\t}\n\n\t\t/* Make sure the divider between the buttons looks fine when the button is focused */\n\t\t& > .ck-splitbutton__arrow:focus::after {\n\t\t\t--ck-color-split-button-hover-border: var(--ck-color-focus-border);\n\t\t}\n\n\t\t@nest [dir="ltr"] & {\n\t\t\t& > .ck-splitbutton__arrow:not(.ck-disabled)::after {\n\t\t\t\tleft: -1px;\n\t\t\t}\n\t\t}\n\n\t\t@nest [dir="rtl"] & {\n\t\t\t& > .ck-splitbutton__arrow:not(.ck-disabled)::after {\n\t\t\t\tright: -1px;\n\t\t\t}\n\t\t}\n\t}\n\n\t/* Don\'t round the bottom left and right corners of the buttons when "open"\n\thttps://github.com/ckeditor/ckeditor5/issues/816 */\n\t&.ck-splitbutton_open {\n\t\t@mixin ck-rounded-corners {\n\t\t\t& > .ck-splitbutton__action {\n\t\t\t\tborder-bottom-left-radius: 0;\n\t\t\t}\n\n\t\t\t& > .ck-splitbutton__arrow {\n\t\t\t\tborder-bottom-right-radius: 0;\n\t\t\t}\n\t\t}\n\t}\n}\n',"/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * Implements rounded corner interface for .ck-rounded-corners class.\n *\n * @see $ck-border-radius\n */\n@define-mixin ck-rounded-corners {\n\tborder-radius: 0;\n\n\t@nest .ck-rounded-corners &,\n\t&.ck-rounded-corners {\n\t\tborder-radius: var(--ck-border-radius);\n\t\t@mixin-content;\n\t}\n}\n"],sourceRoot:""}]);const l=i},5075:(e,t,o)=>{o.d(t,{Z:()=>l});var n=o(4015),a=o.n(n),r=o(3645),i=o.n(r)()(a());i.push([e.id,":root{--ck-toolbar-dropdown-max-width:60vw}.ck.ck-toolbar-dropdown>.ck-dropdown__panel{max-width:var(--ck-toolbar-dropdown-max-width);width:max-content}.ck.ck-toolbar-dropdown>.ck-dropdown__panel .ck-button:focus{z-index:calc(var(--ck-z-default) + 1)}.ck.ck-toolbar-dropdown .ck-toolbar{border:0}","",{version:3,sources:["webpack://./node_modules/@ckeditor/ckeditor5-ui/theme/components/dropdown/toolbardropdown.css","webpack://./node_modules/@ckeditor/ckeditor5-theme-lark/theme/ckeditor5-ui/components/dropdown/toolbardropdown.css"],names:[],mappings:"AAKA,MACC,oCACD,CAEA,4CAGC,8CAA+C,CAD/C,iBAQD,CAJE,6DACC,qCACD,CCZF,oCACC,QACD",sourcesContent:["/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n:root {\n\t--ck-toolbar-dropdown-max-width: 60vw;\n}\n\n.ck.ck-toolbar-dropdown > .ck-dropdown__panel {\n\t/* https://github.com/ckeditor/ckeditor5/issues/5586 */\n\twidth: max-content;\n\tmax-width: var(--ck-toolbar-dropdown-max-width);\n\n\t& .ck-button {\n\t\t&:focus {\n\t\t\tz-index: calc(var(--ck-z-default) + 1);\n\t\t}\n\t}\n}\n","/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck.ck-toolbar-dropdown .ck-toolbar {\n\tborder: 0;\n}\n"],sourceRoot:""}]);const l=i},4547:(e,t,o)=>{o.d(t,{Z:()=>l});var n=o(4015),a=o.n(n),r=o(3645),i=o.n(r)()(a());i.push([e.id,":root{--ck-color-editable-blur-selection:#d9d9d9}.ck.ck-editor__editable:not(.ck-editor__nested-editable){border-radius:0}.ck-rounded-corners .ck.ck-editor__editable:not(.ck-editor__nested-editable),.ck.ck-editor__editable.ck-rounded-corners:not(.ck-editor__nested-editable){border-radius:var(--ck-border-radius)}.ck.ck-editor__editable.ck-focused:not(.ck-editor__nested-editable){border:var(--ck-focus-ring);box-shadow:var(--ck-inner-shadow),0 0;outline:none}.ck.ck-editor__editable_inline{border:1px solid transparent;overflow:auto;padding:0 var(--ck-spacing-standard)}.ck.ck-editor__editable_inline[dir=ltr]{text-align:left}.ck.ck-editor__editable_inline[dir=rtl]{text-align:right}.ck.ck-editor__editable_inline>:first-child{margin-top:var(--ck-spacing-large)}.ck.ck-editor__editable_inline>:last-child{margin-bottom:var(--ck-spacing-large)}.ck.ck-editor__editable_inline.ck-blurred ::selection{background:var(--ck-color-editable-blur-selection)}.ck.ck-balloon-panel.ck-toolbar-container[class*=arrow_n]:after{border-bottom-color:var(--ck-color-base-foreground)}.ck.ck-balloon-panel.ck-toolbar-container[class*=arrow_s]:after{border-top-color:var(--ck-color-base-foreground)}","",{version:3,sources:["webpack://./node_modules/@ckeditor/ckeditor5-theme-lark/theme/ckeditor5-ui/components/editorui/editorui.css","webpack://./node_modules/@ckeditor/ckeditor5-theme-lark/theme/mixins/_rounded.css","webpack://./node_modules/@ckeditor/ckeditor5-theme-lark/theme/mixins/_focus.css","webpack://./node_modules/@ckeditor/ckeditor5-theme-lark/theme/mixins/_shadow.css"],names:[],mappings:"AAWA,MACC,0CACD,CAEA,yDCJC,eDWD,CAPA,yJCAE,qCDOF,CAJC,oEEPA,2BAA2B,CCF3B,qCAA8B,CDC9B,YFWA,CAGD,+BAGC,4BAA6B,CAF7B,aAAc,CACd,oCA6BD,CA1BC,wCACC,eACD,CAEA,wCACC,gBACD,CAGA,4CACC,kCACD,CAGA,2CAKC,qCACD,CAGA,sDACC,kDACD,CAKA,gEACC,mDACD,CAIA,gEACC,gDACD",sourcesContent:['/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "../../../mixins/_rounded.css";\n@import "../../../mixins/_disabled.css";\n@import "../../../mixins/_shadow.css";\n@import "../../../mixins/_focus.css";\n@import "../../mixins/_button.css";\n\n:root {\n\t--ck-color-editable-blur-selection: hsl(0, 0%, 85%);\n}\n\n.ck.ck-editor__editable:not(.ck-editor__nested-editable) {\n\t@mixin ck-rounded-corners;\n\n\t&.ck-focused {\n\t\t@mixin ck-focus-ring;\n\t\t@mixin ck-box-shadow var(--ck-inner-shadow);\n\t}\n}\n\n.ck.ck-editor__editable_inline {\n\toverflow: auto;\n\tpadding: 0 var(--ck-spacing-standard);\n\tborder: 1px solid transparent;\n\n\t&[dir="ltr"] {\n\t\ttext-align: left;\n\t}\n\n\t&[dir="rtl"] {\n\t\ttext-align: right;\n\t}\n\n\t/* https://github.com/ckeditor/ckeditor5-theme-lark/issues/116 */\n\t& > *:first-child {\n\t\tmargin-top: var(--ck-spacing-large);\n\t}\n\n\t/* https://github.com/ckeditor/ckeditor5/issues/847 */\n\t& > *:last-child {\n\t\t/*\n\t\t * This value should match with the default margins of the block elements (like .media or .image)\n\t\t * to avoid a content jumping when the fake selection container shows up (See https://github.com/ckeditor/ckeditor5/issues/9825).\n\t\t */\n\t\tmargin-bottom: var(--ck-spacing-large);\n\t}\n\n\t/* https://github.com/ckeditor/ckeditor5/issues/6517 */\n\t&.ck-blurred ::selection {\n\t\tbackground: var(--ck-color-editable-blur-selection);\n\t}\n}\n\n/* https://github.com/ckeditor/ckeditor5-theme-lark/issues/111 */\n.ck.ck-balloon-panel.ck-toolbar-container[class*="arrow_n"] {\n\t&::after {\n\t\tborder-bottom-color: var(--ck-color-base-foreground);\n\t}\n}\n\n.ck.ck-balloon-panel.ck-toolbar-container[class*="arrow_s"] {\n\t&::after {\n\t\tborder-top-color: var(--ck-color-base-foreground);\n\t}\n}\n',"/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * Implements rounded corner interface for .ck-rounded-corners class.\n *\n * @see $ck-border-radius\n */\n@define-mixin ck-rounded-corners {\n\tborder-radius: 0;\n\n\t@nest .ck-rounded-corners &,\n\t&.ck-rounded-corners {\n\t\tborder-radius: var(--ck-border-radius);\n\t\t@mixin-content;\n\t}\n}\n","/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * A visual style of focused element's border.\n */\n@define-mixin ck-focus-ring {\n\t/* Disable native outline. */\n\toutline: none;\n\tborder: var(--ck-focus-ring)\n}\n","/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * A helper to combine multiple shadows.\n */\n@define-mixin ck-box-shadow $shadowA, $shadowB: 0 0 {\n\tbox-shadow: $shadowA, $shadowB;\n}\n\n/**\n * Gives an element a drop shadow so it looks like a floating panel.\n */\n@define-mixin ck-drop-shadow {\n\t@mixin ck-box-shadow var(--ck-drop-shadow);\n}\n"],sourceRoot:""}]);const l=i},5523:(e,t,o)=>{o.d(t,{Z:()=>l});var n=o(4015),a=o.n(n),r=o(3645),i=o.n(r)()(a());i.push([e.id,".ck.ck-form__header{align-items:center;display:flex;flex-direction:row;flex-wrap:nowrap;justify-content:space-between}:root{--ck-form-header-height:38px}.ck.ck-form__header{border-bottom:1px solid var(--ck-color-base-border);height:var(--ck-form-header-height);line-height:var(--ck-form-header-height);padding:var(--ck-spacing-small) var(--ck-spacing-large)}.ck.ck-form__header .ck-form__header__label{font-weight:700}","",{version:3,sources:["webpack://./node_modules/@ckeditor/ckeditor5-ui/theme/components/formheader/formheader.css","webpack://./node_modules/@ckeditor/ckeditor5-theme-lark/theme/ckeditor5-ui/components/formheader/formheader.css"],names:[],mappings:"AAKA,oBAIC,kBAAmB,CAHnB,YAAa,CACb,kBAAmB,CACnB,gBAAiB,CAEjB,6BACD,CCNA,MACC,4BACD,CAEA,oBAIC,mDAAoD,CAFpD,mCAAoC,CACpC,wCAAyC,CAFzC,uDAQD,CAHC,4CACC,eACD",sourcesContent:["/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck.ck-form__header {\n\tdisplay: flex;\n\tflex-direction: row;\n\tflex-wrap: nowrap;\n\talign-items: center;\n\tjustify-content: space-between;\n}\n","/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n:root {\n\t--ck-form-header-height: 38px;\n}\n\n.ck.ck-form__header {\n\tpadding: var(--ck-spacing-small) var(--ck-spacing-large);\n\theight: var(--ck-form-header-height);\n\tline-height: var(--ck-form-header-height);\n\tborder-bottom: 1px solid var(--ck-color-base-border);\n\n\t& .ck-form__header__label {\n\t\tfont-weight: bold;\n\t}\n}\n"],sourceRoot:""}]);const l=i},1174:(e,t,o)=>{o.d(t,{Z:()=>l});var n=o(4015),a=o.n(n),r=o(3645),i=o.n(r)()(a());i.push([e.id,".ck.ck-icon{vertical-align:middle}:root{--ck-icon-size:calc(var(--ck-line-height-base)*var(--ck-font-size-normal))}.ck.ck-icon{font-size:.8333350694em;height:var(--ck-icon-size);width:var(--ck-icon-size);will-change:transform}.ck.ck-icon,.ck.ck-icon *{cursor:inherit}.ck.ck-icon.ck-icon_inherit-color,.ck.ck-icon.ck-icon_inherit-color *{color:inherit}.ck.ck-icon.ck-icon_inherit-color :not([fill]){fill:currentColor}","",{version:3,sources:["webpack://./node_modules/@ckeditor/ckeditor5-ui/theme/components/icon/icon.css","webpack://./node_modules/@ckeditor/ckeditor5-theme-lark/theme/ckeditor5-ui/components/icon/icon.css"],names:[],mappings:"AAKA,YACC,qBACD,CCFA,MACC,0EACD,CAEA,YAKC,uBAAwB,CAHxB,0BAA2B,CAD3B,yBAA0B,CAU1B,qBAoBD,CAlBC,0BALA,cAQA,CAMC,sEACC,aAMD,CAJC,+CAEC,iBACD",sourcesContent:["/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck.ck-icon {\n\tvertical-align: middle;\n}\n",'/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n:root {\n\t--ck-icon-size: calc(var(--ck-line-height-base) * var(--ck-font-size-normal));\n}\n\n.ck.ck-icon {\n\twidth: var(--ck-icon-size);\n\theight: var(--ck-icon-size);\n\n\t/* Multiplied by the height of the line in "px" should give SVG "viewport" dimensions */\n\tfont-size: .8333350694em;\n\n\t/* Inherit cursor style (#5). */\n\tcursor: inherit;\n\n\t/* This will prevent blurry icons on Firefox. See #340. */\n\twill-change: transform;\n\n\t& * {\n\t\t/* Inherit cursor style (#5). */\n\t\tcursor: inherit;\n\t}\n\n\t/* Allows dynamic coloring of an icon by inheriting its color from the parent. */\n\t&.ck-icon_inherit-color {\n\t\tcolor: inherit;\n\n\t\t& * {\n\t\t\tcolor: inherit;\n\n\t\t\t&:not([fill]) {\n\t\t\t\t/* Needed by FF. */\n\t\t\t\tfill: currentColor;\n\t\t\t}\n\t\t}\n\t}\n}\n'],sourceRoot:""}]);const l=i},6985:(e,t,o)=>{o.d(t,{Z:()=>l});var n=o(4015),a=o.n(n),r=o(3645),i=o.n(r)()(a());i.push([e.id,":root{--ck-input-width:18em;--ck-input-text-width:var(--ck-input-width)}.ck.ck-input{border-radius:0}.ck-rounded-corners .ck.ck-input,.ck.ck-input.ck-rounded-corners{border-radius:var(--ck-border-radius)}.ck.ck-input{background:var(--ck-color-input-background);border:1px solid var(--ck-color-input-border);min-height:var(--ck-ui-component-min-height);min-width:var(--ck-input-width);padding:var(--ck-spacing-extra-tiny) var(--ck-spacing-medium);transition:box-shadow .1s ease-in-out,border .1s ease-in-out}.ck.ck-input:focus{border:var(--ck-focus-ring);box-shadow:var(--ck-focus-outer-shadow),0 0;outline:none}.ck.ck-input[readonly]{background:var(--ck-color-input-disabled-background);border:1px solid var(--ck-color-input-disabled-border);color:var(--ck-color-input-disabled-text)}.ck.ck-input[readonly]:focus{box-shadow:var(--ck-focus-disabled-outer-shadow),0 0}.ck.ck-input.ck-error{animation:ck-input-shake .3s ease both;border-color:var(--ck-color-input-error-border)}.ck.ck-input.ck-error:focus{box-shadow:var(--ck-focus-error-outer-shadow),0 0}@keyframes ck-input-shake{20%{transform:translateX(-2px)}40%{transform:translateX(2px)}60%{transform:translateX(-1px)}80%{transform:translateX(1px)}}","",{version:3,sources:["webpack://./node_modules/@ckeditor/ckeditor5-theme-lark/theme/ckeditor5-ui/components/input/input.css","webpack://./node_modules/@ckeditor/ckeditor5-theme-lark/theme/mixins/_rounded.css","webpack://./node_modules/@ckeditor/ckeditor5-theme-lark/theme/mixins/_focus.css","webpack://./node_modules/@ckeditor/ckeditor5-theme-lark/theme/mixins/_shadow.css"],names:[],mappings:"AASA,MACC,qBAAsB,CAGtB,2CACD,CAEA,aCLC,eD2CD,CAtCA,iECDE,qCDuCF,CAtCA,aAGC,2CAA4C,CAC5C,6CAA8C,CAK9C,4CAA6C,CAH7C,+BAAgC,CADhC,6DAA8D,CAO9D,4DA0BD,CAxBC,mBEnBA,2BAA2B,CCF3B,2CAA8B,CDC9B,YFuBA,CAEA,uBAEC,oDAAqD,CADrD,sDAAuD,CAEvD,yCAMD,CAJC,6BG/BD,oDHkCC,CAGD,sBAEC,sCAAuC,CADvC,+CAMD,CAHC,4BGzCD,iDH2CC,CAIF,0BACC,IACC,0BACD,CAEA,IACC,yBACD,CAEA,IACC,0BACD,CAEA,IACC,yBACD,CACD",sourcesContent:['/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "../../../mixins/_rounded.css";\n@import "../../../mixins/_focus.css";\n@import "../../../mixins/_shadow.css";\n\n:root {\n\t--ck-input-width: 18em;\n\n\t/* Backward compatibility. */\n\t--ck-input-text-width: var(--ck-input-width);\n}\n\n.ck.ck-input {\n\t@mixin ck-rounded-corners;\n\n\tbackground: var(--ck-color-input-background);\n\tborder: 1px solid var(--ck-color-input-border);\n\tpadding: var(--ck-spacing-extra-tiny) var(--ck-spacing-medium);\n\tmin-width: var(--ck-input-width);\n\n\t/* This is important to stay of the same height as surrounding buttons */\n\tmin-height: var(--ck-ui-component-min-height);\n\n\t/* Apply some smooth transition to the box-shadow and border. */\n\ttransition: box-shadow .1s ease-in-out, border .1s ease-in-out;\n\n\t&:focus {\n\t\t@mixin ck-focus-ring;\n\t\t@mixin ck-box-shadow var(--ck-focus-outer-shadow);\n\t}\n\n\t&[readonly] {\n\t\tborder: 1px solid var(--ck-color-input-disabled-border);\n\t\tbackground: var(--ck-color-input-disabled-background);\n\t\tcolor: var(--ck-color-input-disabled-text);\n\n\t\t&:focus {\n\t\t\t/* The read-only input should have a slightly less visible shadow when focused. */\n\t\t\t@mixin ck-box-shadow var(--ck-focus-disabled-outer-shadow);\n\t\t}\n\t}\n\n\t&.ck-error {\n\t\tborder-color: var(--ck-color-input-error-border);\n\t\tanimation: ck-input-shake .3s ease both;\n\n\t\t&:focus {\n\t\t\t@mixin ck-box-shadow var(--ck-focus-error-outer-shadow);\n\t\t}\n\t}\n}\n\n@keyframes ck-input-shake {\n\t20% {\n\t\ttransform: translateX(-2px);\n\t}\n\n\t40% {\n\t\ttransform: translateX(2px);\n\t}\n\n\t60% {\n\t\ttransform: translateX(-1px);\n\t}\n\n\t80% {\n\t\ttransform: translateX(1px);\n\t}\n}\n',"/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * Implements rounded corner interface for .ck-rounded-corners class.\n *\n * @see $ck-border-radius\n */\n@define-mixin ck-rounded-corners {\n\tborder-radius: 0;\n\n\t@nest .ck-rounded-corners &,\n\t&.ck-rounded-corners {\n\t\tborder-radius: var(--ck-border-radius);\n\t\t@mixin-content;\n\t}\n}\n","/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * A visual style of focused element's border.\n */\n@define-mixin ck-focus-ring {\n\t/* Disable native outline. */\n\toutline: none;\n\tborder: var(--ck-focus-ring)\n}\n","/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * A helper to combine multiple shadows.\n */\n@define-mixin ck-box-shadow $shadowA, $shadowB: 0 0 {\n\tbox-shadow: $shadowA, $shadowB;\n}\n\n/**\n * Gives an element a drop shadow so it looks like a floating panel.\n */\n@define-mixin ck-drop-shadow {\n\t@mixin ck-box-shadow var(--ck-drop-shadow);\n}\n"],sourceRoot:""}]);const l=i},2751:(e,t,o)=>{o.d(t,{Z:()=>l});var n=o(4015),a=o.n(n),r=o(3645),i=o.n(r)()(a());i.push([e.id,".ck.ck-label{display:block}.ck.ck-voice-label{display:none}.ck.ck-label{font-weight:700}","",{version:3,sources:["webpack://./node_modules/@ckeditor/ckeditor5-ui/theme/components/label/label.css","webpack://./node_modules/@ckeditor/ckeditor5-theme-lark/theme/ckeditor5-ui/components/label/label.css"],names:[],mappings:"AAKA,aACC,aACD,CAEA,mBACC,YACD,CCNA,aACC,eACD",sourcesContent:["/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck.ck-label {\n\tdisplay: block;\n}\n\n.ck.ck-voice-label {\n\tdisplay: none;\n}\n","/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck.ck-label {\n\tfont-weight: bold;\n}\n"],sourceRoot:""}]);const l=i},8111:(e,t,o)=>{o.d(t,{Z:()=>l});var n=o(4015),a=o.n(n),r=o(3645),i=o.n(r)()(a());i.push([e.id,".ck.ck-labeled-field-view>.ck.ck-labeled-field-view__input-wrapper{display:flex;position:relative}.ck.ck-labeled-field-view .ck.ck-label{display:block;position:absolute}:root{--ck-labeled-field-view-transition:.1s cubic-bezier(0,0,0.24,0.95);--ck-labeled-field-empty-unfocused-max-width:100% - 2 * var(--ck-spacing-medium);--ck-labeled-field-label-default-position-x:var(--ck-spacing-medium);--ck-labeled-field-label-default-position-y:calc(var(--ck-font-size-base)*0.6);--ck-color-labeled-field-label-background:var(--ck-color-base-background)}.ck.ck-labeled-field-view{border-radius:0}.ck-rounded-corners .ck.ck-labeled-field-view,.ck.ck-labeled-field-view.ck-rounded-corners{border-radius:var(--ck-border-radius)}.ck.ck-labeled-field-view>.ck.ck-labeled-field-view__input-wrapper{width:100%}.ck.ck-labeled-field-view>.ck.ck-labeled-field-view__input-wrapper>.ck.ck-label{top:0}[dir=ltr] .ck.ck-labeled-field-view>.ck.ck-labeled-field-view__input-wrapper>.ck.ck-label{left:0}[dir=rtl] .ck.ck-labeled-field-view>.ck.ck-labeled-field-view__input-wrapper>.ck.ck-label{right:0}.ck.ck-labeled-field-view>.ck.ck-labeled-field-view__input-wrapper>.ck.ck-label{background:var(--ck-color-labeled-field-label-background);font-weight:400;line-height:normal;max-width:100%;overflow:hidden;padding:0 calc(var(--ck-font-size-tiny)*.5);pointer-events:none;text-overflow:ellipsis;transform:translate(var(--ck-spacing-medium),-6px) scale(.75);transform-origin:0 0;transition:transform var(--ck-labeled-field-view-transition),padding var(--ck-labeled-field-view-transition),background var(--ck-labeled-field-view-transition)}.ck.ck-labeled-field-view.ck-error .ck-input:not([readonly])+.ck.ck-label,.ck.ck-labeled-field-view.ck-error>.ck.ck-labeled-field-view__input-wrapper>.ck.ck-label{color:var(--ck-color-base-error)}.ck.ck-labeled-field-view .ck-labeled-field-view__status{font-size:var(--ck-font-size-small);margin-top:var(--ck-spacing-small);white-space:normal}.ck.ck-labeled-field-view .ck-labeled-field-view__status.ck-labeled-field-view__status_error{color:var(--ck-color-base-error)}.ck.ck-labeled-field-view.ck-disabled>.ck.ck-labeled-field-view__input-wrapper>.ck.ck-label,.ck.ck-labeled-field-view.ck-labeled-field-view_empty:not(.ck-labeled-field-view_focused)>.ck.ck-labeled-field-view__input-wrapper>.ck.ck-label{color:var(--ck-color-input-disabled-text)}[dir=ltr] .ck.ck-labeled-field-view.ck-disabled.ck-labeled-field-view_empty>.ck.ck-labeled-field-view__input-wrapper>.ck.ck-label,[dir=ltr] .ck.ck-labeled-field-view.ck-labeled-field-view_empty:not(.ck-labeled-field-view_focused):not(.ck-labeled-field-view_placeholder)>.ck.ck-labeled-field-view__input-wrapper>.ck.ck-label{transform:translate(var(--ck-labeled-field-label-default-position-x),var(--ck-labeled-field-label-default-position-y)) scale(1)}[dir=rtl] .ck.ck-labeled-field-view.ck-disabled.ck-labeled-field-view_empty>.ck.ck-labeled-field-view__input-wrapper>.ck.ck-label,[dir=rtl] .ck.ck-labeled-field-view.ck-labeled-field-view_empty:not(.ck-labeled-field-view_focused):not(.ck-labeled-field-view_placeholder)>.ck.ck-labeled-field-view__input-wrapper>.ck.ck-label{transform:translate(calc(var(--ck-labeled-field-label-default-position-x)*-1),var(--ck-labeled-field-label-default-position-y)) scale(1)}.ck.ck-labeled-field-view.ck-disabled.ck-labeled-field-view_empty>.ck.ck-labeled-field-view__input-wrapper>.ck.ck-label,.ck.ck-labeled-field-view.ck-labeled-field-view_empty:not(.ck-labeled-field-view_focused):not(.ck-labeled-field-view_placeholder)>.ck.ck-labeled-field-view__input-wrapper>.ck.ck-label{background:transparent;max-width:calc(var(--ck-labeled-field-empty-unfocused-max-width));padding:0}.ck.ck-labeled-field-view>.ck.ck-labeled-field-view__input-wrapper>.ck-dropdown>.ck.ck-button{background:transparent}.ck.ck-labeled-field-view.ck-labeled-field-view_empty>.ck.ck-labeled-field-view__input-wrapper>.ck-dropdown>.ck-button>.ck-button__label{opacity:0}.ck.ck-labeled-field-view.ck-labeled-field-view_empty:not(.ck-labeled-field-view_focused):not(.ck-labeled-field-view_placeholder)>.ck.ck-labeled-field-view__input-wrapper>.ck-dropdown+.ck-label{max-width:calc(var(--ck-labeled-field-empty-unfocused-max-width) - var(--ck-dropdown-arrow-size) - var(--ck-spacing-standard))}","",{version:3,sources:["webpack://./node_modules/@ckeditor/ckeditor5-ui/theme/components/labeledfield/labeledfieldview.css","webpack://./node_modules/@ckeditor/ckeditor5-theme-lark/theme/ckeditor5-ui/components/labeledfield/labeledfieldview.css","webpack://./node_modules/@ckeditor/ckeditor5-theme-lark/theme/mixins/_rounded.css"],names:[],mappings:"AAMC,mEACC,YAAa,CACb,iBACD,CAEA,uCACC,aAAc,CACd,iBACD,CCND,MACC,kEAAsE,CACtE,gFAAiF,CACjF,oEAAqE,CACrE,8EAAiF,CACjF,yEACD,CAEA,0BCLC,eD8GD,CAzGA,2FCDE,qCD0GF,CAtGC,mEACC,UAmCD,CAjCC,gFACC,KA+BD,CAhCA,0FAIE,MA4BF,CAhCA,0FAQE,OAwBF,CAhCA,gFAiBC,yDAA0D,CAG1D,eAAmB,CADnB,kBAAoB,CAOpB,cAAe,CAFf,eAAgB,CANhB,2CAA8C,CAP9C,mBAAoB,CAYpB,sBAAuB,CARvB,6DAA+D,CAH/D,oBAAqB,CAgBrB,+JAID,CAQA,mKACC,gCACD,CAGD,yDACC,mCAAoC,CACpC,kCAAmC,CAInC,kBAKD,CAHC,6FACC,gCACD,CAID,4OAEC,yCACD,CAIA,oUAGE,+HAYF,CAfA,oUAOE,wIAQF,CAfA,gTAaC,sBAAuB,CAFvB,iEAAkE,CAGlE,SACD,CAKA,8FACC,sBACD,CAGA,yIACC,SACD,CAGA,kMACC,8HACD",sourcesContent:["/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck.ck-labeled-field-view {\n\t& > .ck.ck-labeled-field-view__input-wrapper {\n\t\tdisplay: flex;\n\t\tposition: relative;\n\t}\n\n\t& .ck.ck-label {\n\t\tdisplay: block;\n\t\tposition: absolute;\n\t}\n}\n",'/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "@ckeditor/ckeditor5-ui/theme/mixins/_dir.css";\n@import "../../../mixins/_rounded.css";\n\n:root {\n\t--ck-labeled-field-view-transition: .1s cubic-bezier(0, 0, 0.24, 0.95);\n\t--ck-labeled-field-empty-unfocused-max-width: 100% - 2 * var(--ck-spacing-medium);\n\t--ck-labeled-field-label-default-position-x: var(--ck-spacing-medium);\n\t--ck-labeled-field-label-default-position-y: calc(0.6 * var(--ck-font-size-base));\n\t--ck-color-labeled-field-label-background: var(--ck-color-base-background);\n}\n\n.ck.ck-labeled-field-view {\n\t@mixin ck-rounded-corners;\n\n\t& > .ck.ck-labeled-field-view__input-wrapper {\n\t\twidth: 100%;\n\n\t\t& > .ck.ck-label {\n\t\t\ttop: 0px;\n\n\t\t\t@mixin ck-dir ltr {\n\t\t\t\tleft: 0px;\n\t\t\t}\n\n\t\t\t@mixin ck-dir rtl {\n\t\t\t\tright: 0px;\n\t\t\t}\n\n\t\t\tpointer-events: none;\n\t\t\ttransform-origin: 0 0;\n\n\t\t\t/* By default, display the label scaled down above the field. */\n\t\t\ttransform: translate(var(--ck-spacing-medium), -6px) scale(.75);\n\n\t\t\tbackground: var(--ck-color-labeled-field-label-background);\n\t\t\tpadding: 0 calc(.5 * var(--ck-font-size-tiny));\n\t\t\tline-height: initial;\n\t\t\tfont-weight: normal;\n\n\t\t\t/* Prevent overflow when the label is longer than the input */\n\t\t\ttext-overflow: ellipsis;\n\t\t\toverflow: hidden;\n\n\t\t\tmax-width: 100%;\n\n\t\t\ttransition:\n\t\t\t\ttransform var(--ck-labeled-field-view-transition),\n\t\t\t\tpadding var(--ck-labeled-field-view-transition),\n\t\t\t\tbackground var(--ck-labeled-field-view-transition);\n\t\t}\n\t}\n\n\t&.ck-error {\n\t\t& > .ck.ck-labeled-field-view__input-wrapper > .ck.ck-label {\n\t\t\tcolor: var(--ck-color-base-error);\n\t\t}\n\n\t\t& .ck-input:not([readonly]) + .ck.ck-label {\n\t\t\tcolor: var(--ck-color-base-error);\n\t\t}\n\t}\n\n\t& .ck-labeled-field-view__status {\n\t\tfont-size: var(--ck-font-size-small);\n\t\tmargin-top: var(--ck-spacing-small);\n\n\t\t/* Let the info wrap to the next line to avoid stretching the layout horizontally.\n\t\tThe status could be very long. */\n\t\twhite-space: normal;\n\n\t\t&.ck-labeled-field-view__status_error {\n\t\t\tcolor: var(--ck-color-base-error);\n\t\t}\n\t}\n\n\t/* Disabled fields and fields that have no focus should fade out. */\n\t&.ck-disabled > .ck.ck-labeled-field-view__input-wrapper > .ck.ck-label,\n\t&.ck-labeled-field-view_empty:not(.ck-labeled-field-view_focused) > .ck.ck-labeled-field-view__input-wrapper > .ck.ck-label {\n\t\tcolor: var(--ck-color-input-disabled-text);\n\t}\n\n\t/* Fields that are disabled or not focused and without a placeholder should have full-sized labels. */\n\t/* stylelint-disable-next-line no-descending-specificity */\n\t&.ck-disabled.ck-labeled-field-view_empty > .ck.ck-labeled-field-view__input-wrapper > .ck.ck-label,\n\t&.ck-labeled-field-view_empty:not(.ck-labeled-field-view_focused):not(.ck-labeled-field-view_placeholder) > .ck.ck-labeled-field-view__input-wrapper > .ck.ck-label {\n\t\t@mixin ck-dir ltr {\n\t\t\ttransform: translate(var(--ck-labeled-field-label-default-position-x), var(--ck-labeled-field-label-default-position-y)) scale(1);\n\t\t}\n\n\t\t@mixin ck-dir rtl {\n\t\t\ttransform: translate(calc(-1 * var(--ck-labeled-field-label-default-position-x)), var(--ck-labeled-field-label-default-position-y)) scale(1);\n\t\t}\n\n\t\t/* Compensate for the default translate position. */\n\t\tmax-width: calc(var(--ck-labeled-field-empty-unfocused-max-width));\n\n\t\tbackground: transparent;\n\t\tpadding: 0;\n\t}\n\n\t/*------ DropdownView integration ----------------------------------------------------------------------------------- */\n\n\t/* Make sure dropdown\' background color in any of dropdown\'s state does not collide with labeled field. */\n\t& > .ck.ck-labeled-field-view__input-wrapper > .ck-dropdown > .ck.ck-button {\n\t\tbackground: transparent;\n\t}\n\n\t/* When the dropdown is "empty", the labeled field label replaces its label. */\n\t&.ck-labeled-field-view_empty > .ck.ck-labeled-field-view__input-wrapper > .ck-dropdown > .ck-button > .ck-button__label {\n\t\topacity: 0;\n\t}\n\n\t/* Make sure the label of the empty, unfocused input does not cover the dropdown arrow. */\n\t&.ck-labeled-field-view_empty:not(.ck-labeled-field-view_focused):not(.ck-labeled-field-view_placeholder) > .ck.ck-labeled-field-view__input-wrapper > .ck-dropdown + .ck-label {\n\t\tmax-width: calc(var(--ck-labeled-field-empty-unfocused-max-width) - var(--ck-dropdown-arrow-size) - var(--ck-spacing-standard));\n\t}\n}\n',"/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * Implements rounded corner interface for .ck-rounded-corners class.\n *\n * @see $ck-border-radius\n */\n@define-mixin ck-rounded-corners {\n\tborder-radius: 0;\n\n\t@nest .ck-rounded-corners &,\n\t&.ck-rounded-corners {\n\t\tborder-radius: var(--ck-border-radius);\n\t\t@mixin-content;\n\t}\n}\n"],sourceRoot:""}]);const l=i},1162:(e,t,o)=>{o.d(t,{Z:()=>l});var n=o(4015),a=o.n(n),r=o(3645),i=o.n(r)()(a());i.push([e.id,".ck.ck-list{display:flex;flex-direction:column;-moz-user-select:none;-webkit-user-select:none;-ms-user-select:none;user-select:none}.ck.ck-list .ck-list__item,.ck.ck-list .ck-list__separator{display:block}.ck.ck-list .ck-list__item>:focus{position:relative;z-index:var(--ck-z-default)}.ck.ck-list{border-radius:0}.ck-rounded-corners .ck.ck-list,.ck.ck-list.ck-rounded-corners{border-radius:var(--ck-border-radius)}.ck.ck-list{background:var(--ck-color-list-background);list-style-type:none}.ck.ck-list__item{cursor:default;min-width:12em}.ck.ck-list__item .ck-button{border-radius:0;min-height:unset;padding:calc(var(--ck-line-height-base)*.2*var(--ck-font-size-base)) calc(var(--ck-line-height-base)*.4*var(--ck-font-size-base));text-align:left;width:100%}.ck.ck-list__item .ck-button .ck-button__label{line-height:calc(var(--ck-line-height-base)*1.2*var(--ck-font-size-base))}.ck.ck-list__item .ck-button:active{box-shadow:none}.ck.ck-list__item .ck-button.ck-on{background:var(--ck-color-list-button-on-background);color:var(--ck-color-list-button-on-text)}.ck.ck-list__item .ck-button.ck-on:active{box-shadow:none}.ck.ck-list__item .ck-button.ck-on:hover:not(.ck-disabled){background:var(--ck-color-list-button-on-background-focus)}.ck.ck-list__item .ck-button.ck-on:focus:not(.ck-switchbutton):not(.ck-disabled){border-color:var(--ck-color-base-background)}.ck.ck-list__item .ck-button:hover:not(.ck-disabled){background:var(--ck-color-list-button-hover-background)}.ck.ck-list__item .ck-switchbutton.ck-on{background:var(--ck-color-list-background);color:inherit}.ck.ck-list__item .ck-switchbutton.ck-on:hover:not(.ck-disabled){background:var(--ck-color-list-button-hover-background);color:inherit}.ck.ck-list__separator{background:var(--ck-color-base-border);height:1px;width:100%}","",{version:3,sources:["webpack://./node_modules/@ckeditor/ckeditor5-ui/theme/components/list/list.css","webpack://./node_modules/@ckeditor/ckeditor5-ui/theme/mixins/_unselectable.css","webpack://./node_modules/@ckeditor/ckeditor5-theme-lark/theme/ckeditor5-ui/components/list/list.css","webpack://./node_modules/@ckeditor/ckeditor5-theme-lark/theme/mixins/_rounded.css"],names:[],mappings:"AAOA,YAGC,YAAa,CACb,qBAAsB,CCFtB,qBAAsB,CACtB,wBAAyB,CACzB,oBAAqB,CACrB,gBDaD,CAZC,2DAEC,aACD,CAKA,kCACC,iBAAkB,CAClB,2BACD,CEfD,YCEC,eDGD,CALA,+DCME,qCDDF,CALA,YAIC,0CAA2C,CAD3C,oBAED,CAEA,kBACC,cAAe,CACf,cA2DD,CAzDC,6BAIC,eAAgB,CAHhB,gBAAiB,CAQjB,iIAEiE,CARjE,eAAgB,CADhB,UAwCD,CA7BC,+CAEC,yEACD,CAEA,oCACC,eACD,CAEA,mCACC,oDAAqD,CACrD,yCAaD,CAXC,0CACC,eACD,CAEA,2DACC,0DACD,CAEA,iFACC,4CACD,CAGD,qDACC,uDACD,CAMA,yCACC,0CAA2C,CAC3C,aAMD,CAJC,iEACC,uDAAwD,CACxD,aACD,CAKH,uBAGC,sCAAuC,CAFvC,UAAW,CACX,UAED",sourcesContent:['/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "../../mixins/_unselectable.css";\n\n.ck.ck-list {\n\t@mixin ck-unselectable;\n\n\tdisplay: flex;\n\tflex-direction: column;\n\n\t& .ck-list__item,\n\t& .ck-list__separator {\n\t\tdisplay: block;\n\t}\n\n\t/* Make sure that whatever child of the list item gets focus, it remains on the\n\ttop. Thanks to that, styles like box-shadow, outline, etc. are not masked by\n\tadjacent list items. */\n\t& .ck-list__item > *:focus {\n\t\tposition: relative;\n\t\tz-index: var(--ck-z-default);\n\t}\n}\n',"/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * Makes element unselectable.\n */\n@define-mixin ck-unselectable {\n\t-moz-user-select: none;\n\t-webkit-user-select: none;\n\t-ms-user-select: none;\n\tuser-select: none\n}\n",'/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "../../../mixins/_disabled.css";\n@import "../../../mixins/_rounded.css";\n@import "../../../mixins/_shadow.css";\n\n.ck.ck-list {\n\t@mixin ck-rounded-corners;\n\n\tlist-style-type: none;\n\tbackground: var(--ck-color-list-background);\n}\n\n.ck.ck-list__item {\n\tcursor: default;\n\tmin-width: 12em;\n\n\t& .ck-button {\n\t\tmin-height: unset;\n\t\twidth: 100%;\n\t\ttext-align: left;\n\t\tborder-radius: 0;\n\n\t\t/* List items should have the same height. Use absolute units to make sure it is so\n\t\t because e.g. different heading styles may have different height\n\t\t https://github.com/ckeditor/ckeditor5-heading/issues/63 */\n\t\tpadding:\n\t\t\tcalc(.2 * var(--ck-line-height-base) * var(--ck-font-size-base))\n\t\t\tcalc(.4 * var(--ck-line-height-base) * var(--ck-font-size-base));\n\n\t\t& .ck-button__label {\n\t\t\t/* https://github.com/ckeditor/ckeditor5-heading/issues/63 */\n\t\t\tline-height: calc(1.2 * var(--ck-line-height-base) * var(--ck-font-size-base));\n\t\t}\n\n\t\t&:active {\n\t\t\tbox-shadow: none;\n\t\t}\n\n\t\t&.ck-on {\n\t\t\tbackground: var(--ck-color-list-button-on-background);\n\t\t\tcolor: var(--ck-color-list-button-on-text);\n\n\t\t\t&:active {\n\t\t\t\tbox-shadow: none;\n\t\t\t}\n\n\t\t\t&:hover:not(.ck-disabled) {\n\t\t\t\tbackground: var(--ck-color-list-button-on-background-focus);\n\t\t\t}\n\n\t\t\t&:focus:not(.ck-switchbutton):not(.ck-disabled) {\n\t\t\t\tborder-color: var(--ck-color-base-background);\n\t\t\t}\n\t\t}\n\n\t\t&:hover:not(.ck-disabled) {\n\t\t\tbackground: var(--ck-color-list-button-hover-background);\n\t\t}\n\t}\n\n\t/* It\'s unnecessary to change the background/text of a switch toggle; it has different ways\n\tof conveying its state (like the switcher) */\n\t& .ck-switchbutton {\n\t\t&.ck-on {\n\t\t\tbackground: var(--ck-color-list-background);\n\t\t\tcolor: inherit;\n\n\t\t\t&:hover:not(.ck-disabled) {\n\t\t\t\tbackground: var(--ck-color-list-button-hover-background);\n\t\t\t\tcolor: inherit;\n\t\t\t}\n\t\t}\n\t}\n}\n\n.ck.ck-list__separator {\n\theight: 1px;\n\twidth: 100%;\n\tbackground: var(--ck-color-base-border);\n}\n',"/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * Implements rounded corner interface for .ck-rounded-corners class.\n *\n * @see $ck-border-radius\n */\n@define-mixin ck-rounded-corners {\n\tborder-radius: 0;\n\n\t@nest .ck-rounded-corners &,\n\t&.ck-rounded-corners {\n\t\tborder-radius: var(--ck-border-radius);\n\t\t@mixin-content;\n\t}\n}\n"],sourceRoot:""}]);const l=i},8245:(e,t,o)=>{o.d(t,{Z:()=>l});var n=o(4015),a=o.n(n),r=o(3645),i=o.n(r)()(a());i.push([e.id,':root{--ck-balloon-panel-arrow-z-index:calc(var(--ck-z-default) - 3)}.ck.ck-balloon-panel{display:none;position:absolute;z-index:var(--ck-z-modal)}.ck.ck-balloon-panel.ck-balloon-panel_with-arrow:after,.ck.ck-balloon-panel.ck-balloon-panel_with-arrow:before{content:"";position:absolute}.ck.ck-balloon-panel.ck-balloon-panel_with-arrow:before{z-index:var(--ck-balloon-panel-arrow-z-index)}.ck.ck-balloon-panel.ck-balloon-panel_with-arrow:after{z-index:calc(var(--ck-balloon-panel-arrow-z-index) + 1)}.ck.ck-balloon-panel[class*=arrow_n]:before{z-index:var(--ck-balloon-panel-arrow-z-index)}.ck.ck-balloon-panel[class*=arrow_n]:after{z-index:calc(var(--ck-balloon-panel-arrow-z-index) + 1)}.ck.ck-balloon-panel[class*=arrow_s]:before{z-index:var(--ck-balloon-panel-arrow-z-index)}.ck.ck-balloon-panel[class*=arrow_s]:after{z-index:calc(var(--ck-balloon-panel-arrow-z-index) + 1)}.ck.ck-balloon-panel.ck-balloon-panel_visible{display:block}:root{--ck-balloon-border-width:1px;--ck-balloon-arrow-offset:2px;--ck-balloon-arrow-height:10px;--ck-balloon-arrow-half-width:8px;--ck-balloon-arrow-drop-shadow:0 2px 2px var(--ck-color-shadow-drop)}.ck.ck-balloon-panel{border-radius:0}.ck-rounded-corners .ck.ck-balloon-panel,.ck.ck-balloon-panel.ck-rounded-corners{border-radius:var(--ck-border-radius)}.ck.ck-balloon-panel{background:var(--ck-color-panel-background);border:var(--ck-balloon-border-width) solid var(--ck-color-panel-border);box-shadow:var(--ck-drop-shadow),0 0;min-height:15px}.ck.ck-balloon-panel.ck-balloon-panel_with-arrow:after,.ck.ck-balloon-panel.ck-balloon-panel_with-arrow:before{border-style:solid;height:0;width:0}.ck.ck-balloon-panel[class*=arrow_n]:after,.ck.ck-balloon-panel[class*=arrow_n]:before{border-width:0 var(--ck-balloon-arrow-half-width) var(--ck-balloon-arrow-height) var(--ck-balloon-arrow-half-width)}.ck.ck-balloon-panel[class*=arrow_n]:before{border-color:transparent transparent var(--ck-color-panel-border) transparent;margin-top:calc(var(--ck-balloon-border-width)*-1)}.ck.ck-balloon-panel[class*=arrow_n]:after{border-color:transparent transparent var(--ck-color-panel-background) transparent;margin-top:calc(var(--ck-balloon-arrow-offset) - var(--ck-balloon-border-width))}.ck.ck-balloon-panel[class*=arrow_s]:after,.ck.ck-balloon-panel[class*=arrow_s]:before{border-width:var(--ck-balloon-arrow-height) var(--ck-balloon-arrow-half-width) 0 var(--ck-balloon-arrow-half-width)}.ck.ck-balloon-panel[class*=arrow_s]:before{border-color:var(--ck-color-panel-border) transparent transparent;filter:drop-shadow(var(--ck-balloon-arrow-drop-shadow));margin-bottom:calc(var(--ck-balloon-border-width)*-1)}.ck.ck-balloon-panel[class*=arrow_s]:after{border-color:var(--ck-color-panel-background) transparent transparent transparent;margin-bottom:calc(var(--ck-balloon-arrow-offset) - var(--ck-balloon-border-width))}.ck.ck-balloon-panel[class*=arrow_e]:after,.ck.ck-balloon-panel[class*=arrow_e]:before{border-width:var(--ck-balloon-arrow-half-width) 0 var(--ck-balloon-arrow-half-width) var(--ck-balloon-arrow-height)}.ck.ck-balloon-panel[class*=arrow_e]:before{border-color:transparent transparent transparent var(--ck-color-panel-border);margin-right:calc(var(--ck-balloon-border-width)*-1)}.ck.ck-balloon-panel[class*=arrow_e]:after{border-color:transparent transparent transparent var(--ck-color-panel-background);margin-right:calc(var(--ck-balloon-arrow-offset) - var(--ck-balloon-border-width))}.ck.ck-balloon-panel[class*=arrow_w]:after,.ck.ck-balloon-panel[class*=arrow_w]:before{border-width:var(--ck-balloon-arrow-half-width) var(--ck-balloon-arrow-height) var(--ck-balloon-arrow-half-width) 0}.ck.ck-balloon-panel[class*=arrow_w]:before{border-color:transparent var(--ck-color-panel-border) transparent transparent;margin-left:calc(var(--ck-balloon-border-width)*-1)}.ck.ck-balloon-panel[class*=arrow_w]:after{border-color:transparent var(--ck-color-panel-background) transparent transparent;margin-left:calc(var(--ck-balloon-arrow-offset) - var(--ck-balloon-border-width))}.ck.ck-balloon-panel.ck-balloon-panel_arrow_n:after,.ck.ck-balloon-panel.ck-balloon-panel_arrow_n:before{left:50%;margin-left:calc(var(--ck-balloon-arrow-half-width)*-1);top:calc(var(--ck-balloon-arrow-height)*-1)}.ck.ck-balloon-panel.ck-balloon-panel_arrow_nw:after,.ck.ck-balloon-panel.ck-balloon-panel_arrow_nw:before{left:calc(var(--ck-balloon-arrow-half-width)*2);top:calc(var(--ck-balloon-arrow-height)*-1)}.ck.ck-balloon-panel.ck-balloon-panel_arrow_ne:after,.ck.ck-balloon-panel.ck-balloon-panel_arrow_ne:before{right:calc(var(--ck-balloon-arrow-half-width)*2);top:calc(var(--ck-balloon-arrow-height)*-1)}.ck.ck-balloon-panel.ck-balloon-panel_arrow_s:after,.ck.ck-balloon-panel.ck-balloon-panel_arrow_s:before{bottom:calc(var(--ck-balloon-arrow-height)*-1);left:50%;margin-left:calc(var(--ck-balloon-arrow-half-width)*-1)}.ck.ck-balloon-panel.ck-balloon-panel_arrow_sw:after,.ck.ck-balloon-panel.ck-balloon-panel_arrow_sw:before{bottom:calc(var(--ck-balloon-arrow-height)*-1);left:calc(var(--ck-balloon-arrow-half-width)*2)}.ck.ck-balloon-panel.ck-balloon-panel_arrow_se:after,.ck.ck-balloon-panel.ck-balloon-panel_arrow_se:before{bottom:calc(var(--ck-balloon-arrow-height)*-1);right:calc(var(--ck-balloon-arrow-half-width)*2)}.ck.ck-balloon-panel.ck-balloon-panel_arrow_sme:after,.ck.ck-balloon-panel.ck-balloon-panel_arrow_sme:before{bottom:calc(var(--ck-balloon-arrow-height)*-1);margin-right:calc(var(--ck-balloon-arrow-half-width)*2);right:25%}.ck.ck-balloon-panel.ck-balloon-panel_arrow_smw:after,.ck.ck-balloon-panel.ck-balloon-panel_arrow_smw:before{bottom:calc(var(--ck-balloon-arrow-height)*-1);left:25%;margin-left:calc(var(--ck-balloon-arrow-half-width)*2)}.ck.ck-balloon-panel.ck-balloon-panel_arrow_nme:after,.ck.ck-balloon-panel.ck-balloon-panel_arrow_nme:before{margin-right:calc(var(--ck-balloon-arrow-half-width)*2);right:25%;top:calc(var(--ck-balloon-arrow-height)*-1)}.ck.ck-balloon-panel.ck-balloon-panel_arrow_nmw:after,.ck.ck-balloon-panel.ck-balloon-panel_arrow_nmw:before{left:25%;margin-left:calc(var(--ck-balloon-arrow-half-width)*2);top:calc(var(--ck-balloon-arrow-height)*-1)}.ck.ck-balloon-panel.ck-balloon-panel_arrow_e:after,.ck.ck-balloon-panel.ck-balloon-panel_arrow_e:before{margin-top:calc(var(--ck-balloon-arrow-half-width)*-1);right:calc(var(--ck-balloon-arrow-height)*-1);top:50%}.ck.ck-balloon-panel.ck-balloon-panel_arrow_w:after,.ck.ck-balloon-panel.ck-balloon-panel_arrow_w:before{left:calc(var(--ck-balloon-arrow-height)*-1);margin-top:calc(var(--ck-balloon-arrow-half-width)*-1);top:50%}',"",{version:3,sources:["webpack://./node_modules/@ckeditor/ckeditor5-ui/theme/components/panel/balloonpanel.css","webpack://./node_modules/@ckeditor/ckeditor5-theme-lark/theme/ckeditor5-ui/components/panel/balloonpanel.css","webpack://./node_modules/@ckeditor/ckeditor5-theme-lark/theme/mixins/_rounded.css","webpack://./node_modules/@ckeditor/ckeditor5-theme-lark/theme/mixins/_shadow.css"],names:[],mappings:"AAKA,MAEC,8DACD,CAEA,qBACC,YAAa,CACb,iBAAkB,CAElB,yBAyCD,CAtCE,+GAEC,UAAW,CACX,iBACD,CAEA,wDACC,6CACD,CAEA,uDACC,uDACD,CAIA,4CACC,6CACD,CAEA,2CACC,uDACD,CAIA,4CACC,6CACD,CAEA,2CACC,uDACD,CAGD,8CACC,aACD,CC9CD,MACC,6BAA8B,CAC9B,6BAA8B,CAC9B,8BAA+B,CAC/B,iCAAkC,CAClC,oEACD,CAEA,qBCLC,eDmMD,CA9LA,iFCDE,qCD+LF,CA9LA,qBAMC,2CAA4C,CAC5C,wEAAyE,CEdzE,oCAA8B,CFW9B,eA0LD,CApLE,+GAIC,kBAAmB,CADnB,QAAS,CADT,OAGD,CAIA,uFAEC,mHACD,CAEA,4CACC,6EAA8E,CAC9E,kDACD,CAEA,2CACC,iFAAkF,CAClF,gFACD,CAIA,uFAEC,mHACD,CAEA,4CACC,iEAAkE,CAClE,uDAAwD,CACxD,qDACD,CAEA,2CACC,iFAAkF,CAClF,mFACD,CAIA,uFAEC,mHACD,CAEA,4CACC,6EAA8E,CAC9E,oDACD,CAEA,2CACC,iFAAkF,CAClF,kFACD,CAIA,uFAEC,mHACD,CAEA,4CACC,6EAA8E,CAC9E,mDACD,CAEA,2CACC,iFAAkF,CAClF,iFACD,CAIA,yGAEC,QAAS,CACT,uDAA0D,CAC1D,2CACD,CAIA,2GAEC,+CAAkD,CAClD,2CACD,CAIA,2GAEC,gDAAmD,CACnD,2CACD,CAIA,yGAIC,8CAAiD,CAFjD,QAAS,CACT,uDAED,CAIA,2GAGC,8CAAiD,CADjD,+CAED,CAIA,2GAGC,8CAAiD,CADjD,gDAED,CAIA,6GAIC,8CAAiD,CADjD,uDAA0D,CAD1D,SAGD,CAIA,6GAIC,8CAAiD,CAFjD,QAAS,CACT,sDAED,CAIA,6GAGC,uDAA0D,CAD1D,SAAU,CAEV,2CACD,CAIA,6GAEC,QAAS,CACT,sDAAyD,CACzD,2CACD,CAIA,yGAGC,sDAAyD,CADzD,6CAAgD,CAEhD,OACD,CAIA,yGAEC,4CAA+C,CAC/C,sDAAyD,CACzD,OACD",sourcesContent:['/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n:root {\n\t/* Make sure the balloon arrow does not float over its children. */\n\t--ck-balloon-panel-arrow-z-index: calc(var(--ck-z-default) - 3);\n}\n\n.ck.ck-balloon-panel {\n\tdisplay: none;\n\tposition: absolute;\n\n\tz-index: var(--ck-z-modal);\n\n\t&.ck-balloon-panel_with-arrow {\n\t\t&::before,\n\t\t&::after {\n\t\t\tcontent: "";\n\t\t\tposition: absolute;\n\t\t}\n\n\t\t&::before {\n\t\t\tz-index: var(--ck-balloon-panel-arrow-z-index);\n\t\t}\n\n\t\t&::after {\n\t\t\tz-index: calc(var(--ck-balloon-panel-arrow-z-index) + 1);\n\t\t}\n\t}\n\n\t&[class*="arrow_n"] {\n\t\t&::before {\n\t\t\tz-index: var(--ck-balloon-panel-arrow-z-index);\n\t\t}\n\n\t\t&::after {\n\t\t\tz-index: calc(var(--ck-balloon-panel-arrow-z-index) + 1);\n\t\t}\n\t}\n\n\t&[class*="arrow_s"] {\n\t\t&::before {\n\t\t\tz-index: var(--ck-balloon-panel-arrow-z-index);\n\t\t}\n\n\t\t&::after {\n\t\t\tz-index: calc(var(--ck-balloon-panel-arrow-z-index) + 1);\n\t\t}\n\t}\n\n\t&.ck-balloon-panel_visible {\n\t\tdisplay: block;\n\t}\n}\n','/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "../../../mixins/_rounded.css";\n@import "../../../mixins/_shadow.css";\n\n:root {\n\t--ck-balloon-border-width: 1px;\n\t--ck-balloon-arrow-offset: 2px;\n\t--ck-balloon-arrow-height: 10px;\n\t--ck-balloon-arrow-half-width: 8px;\n\t--ck-balloon-arrow-drop-shadow: 0 2px 2px var(--ck-color-shadow-drop);\n}\n\n.ck.ck-balloon-panel {\n\t@mixin ck-rounded-corners;\n\t@mixin ck-drop-shadow;\n\n\tmin-height: 15px;\n\n\tbackground: var(--ck-color-panel-background);\n\tborder: var(--ck-balloon-border-width) solid var(--ck-color-panel-border);\n\n\t&.ck-balloon-panel_with-arrow {\n\t\t&::before,\n\t\t&::after {\n\t\t\twidth: 0;\n\t\t\theight: 0;\n\t\t\tborder-style: solid;\n\t\t}\n\t}\n\n\t&[class*="arrow_n"] {\n\t\t&::before,\n\t\t&::after {\n\t\t\tborder-width: 0 var(--ck-balloon-arrow-half-width) var(--ck-balloon-arrow-height) var(--ck-balloon-arrow-half-width);\n\t\t}\n\n\t\t&::before {\n\t\t\tborder-color: transparent transparent var(--ck-color-panel-border) transparent;\n\t\t\tmargin-top: calc( -1 * var(--ck-balloon-border-width) );\n\t\t}\n\n\t\t&::after {\n\t\t\tborder-color: transparent transparent var(--ck-color-panel-background) transparent;\n\t\t\tmargin-top: calc( var(--ck-balloon-arrow-offset) - var(--ck-balloon-border-width) );\n\t\t}\n\t}\n\n\t&[class*="arrow_s"] {\n\t\t&::before,\n\t\t&::after {\n\t\t\tborder-width: var(--ck-balloon-arrow-height) var(--ck-balloon-arrow-half-width) 0 var(--ck-balloon-arrow-half-width);\n\t\t}\n\n\t\t&::before {\n\t\t\tborder-color: var(--ck-color-panel-border) transparent transparent;\n\t\t\tfilter: drop-shadow(var(--ck-balloon-arrow-drop-shadow));\n\t\t\tmargin-bottom: calc( -1 * var(--ck-balloon-border-width) );\n\t\t}\n\n\t\t&::after {\n\t\t\tborder-color: var(--ck-color-panel-background) transparent transparent transparent;\n\t\t\tmargin-bottom: calc( var(--ck-balloon-arrow-offset) - var(--ck-balloon-border-width) );\n\t\t}\n\t}\n\n\t&[class*="arrow_e"] {\n\t\t&::before,\n\t\t&::after {\n\t\t\tborder-width: var(--ck-balloon-arrow-half-width) 0 var(--ck-balloon-arrow-half-width) var(--ck-balloon-arrow-height);\n\t\t}\n\n\t\t&::before {\n\t\t\tborder-color: transparent transparent transparent var(--ck-color-panel-border);\n\t\t\tmargin-right: calc( -1 * var(--ck-balloon-border-width) );\n\t\t}\n\n\t\t&::after {\n\t\t\tborder-color: transparent transparent transparent var(--ck-color-panel-background);\n\t\t\tmargin-right: calc( var(--ck-balloon-arrow-offset) - var(--ck-balloon-border-width) );\n\t\t}\n\t}\n\n\t&[class*="arrow_w"] {\n\t\t&::before,\n\t\t&::after {\n\t\t\tborder-width: var(--ck-balloon-arrow-half-width) var(--ck-balloon-arrow-height) var(--ck-balloon-arrow-half-width) 0;\n\t\t}\n\n\t\t&::before {\n\t\t\tborder-color: transparent var(--ck-color-panel-border) transparent transparent;\n\t\t\tmargin-left: calc( -1 * var(--ck-balloon-border-width) );\n\t\t}\n\n\t\t&::after {\n\t\t\tborder-color: transparent var(--ck-color-panel-background) transparent transparent;\n\t\t\tmargin-left: calc( var(--ck-balloon-arrow-offset) - var(--ck-balloon-border-width) );\n\t\t}\n\t}\n\n\t&.ck-balloon-panel_arrow_n {\n\t\t&::before,\n\t\t&::after {\n\t\t\tleft: 50%;\n\t\t\tmargin-left: calc(-1 * var(--ck-balloon-arrow-half-width));\n\t\t\ttop: calc(-1 * var(--ck-balloon-arrow-height));\n\t\t}\n\t}\n\n\t&.ck-balloon-panel_arrow_nw {\n\t\t&::before,\n\t\t&::after {\n\t\t\tleft: calc(2 * var(--ck-balloon-arrow-half-width));\n\t\t\ttop: calc(-1 * var(--ck-balloon-arrow-height));\n\t\t}\n\t}\n\n\t&.ck-balloon-panel_arrow_ne {\n\t\t&::before,\n\t\t&::after {\n\t\t\tright: calc(2 * var(--ck-balloon-arrow-half-width));\n\t\t\ttop: calc(-1 * var(--ck-balloon-arrow-height));\n\t\t}\n\t}\n\n\t&.ck-balloon-panel_arrow_s {\n\t\t&::before,\n\t\t&::after {\n\t\t\tleft: 50%;\n\t\t\tmargin-left: calc(-1 * var(--ck-balloon-arrow-half-width));\n\t\t\tbottom: calc(-1 * var(--ck-balloon-arrow-height));\n\t\t}\n\t}\n\n\t&.ck-balloon-panel_arrow_sw {\n\t\t&::before,\n\t\t&::after {\n\t\t\tleft: calc(2 * var(--ck-balloon-arrow-half-width));\n\t\t\tbottom: calc(-1 * var(--ck-balloon-arrow-height));\n\t\t}\n\t}\n\n\t&.ck-balloon-panel_arrow_se {\n\t\t&::before,\n\t\t&::after {\n\t\t\tright: calc(2 * var(--ck-balloon-arrow-half-width));\n\t\t\tbottom: calc(-1 * var(--ck-balloon-arrow-height));\n\t\t}\n\t}\n\n\t&.ck-balloon-panel_arrow_sme {\n\t\t&::before,\n\t\t&::after {\n\t\t\tright: 25%;\n\t\t\tmargin-right: calc(2 * var(--ck-balloon-arrow-half-width));\n\t\t\tbottom: calc(-1 * var(--ck-balloon-arrow-height));\n\t\t}\n\t}\n\n\t&.ck-balloon-panel_arrow_smw {\n\t\t&::before,\n\t\t&::after {\n\t\t\tleft: 25%;\n\t\t\tmargin-left: calc(2 * var(--ck-balloon-arrow-half-width));\n\t\t\tbottom: calc(-1 * var(--ck-balloon-arrow-height));\n\t\t}\n\t}\n\n\t&.ck-balloon-panel_arrow_nme {\n\t\t&::before,\n\t\t&::after {\n\t\t\tright: 25%;\n\t\t\tmargin-right: calc(2 * var(--ck-balloon-arrow-half-width));\n\t\t\ttop: calc(-1 * var(--ck-balloon-arrow-height));\n\t\t}\n\t}\n\n\t&.ck-balloon-panel_arrow_nmw {\n\t\t&::before,\n\t\t&::after {\n\t\t\tleft: 25%;\n\t\t\tmargin-left: calc(2 * var(--ck-balloon-arrow-half-width));\n\t\t\ttop: calc(-1 * var(--ck-balloon-arrow-height));\n\t\t}\n\t}\n\n\t&.ck-balloon-panel_arrow_e {\n\t\t&::before,\n\t\t&::after {\n\t\t\tright: calc(-1 * var(--ck-balloon-arrow-height));\n\t\t\tmargin-top: calc(-1 * var(--ck-balloon-arrow-half-width));\n\t\t\ttop: 50%;\n\t\t}\n\t}\n\n\t&.ck-balloon-panel_arrow_w {\n\t\t&::before,\n\t\t&::after {\n\t\t\tleft: calc(-1 * var(--ck-balloon-arrow-height));\n\t\t\tmargin-top: calc(-1 * var(--ck-balloon-arrow-half-width));\n\t\t\ttop: 50%;\n\t\t}\n\t}\n}\n',"/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * Implements rounded corner interface for .ck-rounded-corners class.\n *\n * @see $ck-border-radius\n */\n@define-mixin ck-rounded-corners {\n\tborder-radius: 0;\n\n\t@nest .ck-rounded-corners &,\n\t&.ck-rounded-corners {\n\t\tborder-radius: var(--ck-border-radius);\n\t\t@mixin-content;\n\t}\n}\n","/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * A helper to combine multiple shadows.\n */\n@define-mixin ck-box-shadow $shadowA, $shadowB: 0 0 {\n\tbox-shadow: $shadowA, $shadowB;\n}\n\n/**\n * Gives an element a drop shadow so it looks like a floating panel.\n */\n@define-mixin ck-drop-shadow {\n\t@mixin ck-box-shadow var(--ck-drop-shadow);\n}\n"],sourceRoot:""}]);const l=i},1757:(e,t,o)=>{o.d(t,{Z:()=>l});var n=o(4015),a=o.n(n),r=o(3645),i=o.n(r)()(a());i.push([e.id,".ck .ck-balloon-rotator__navigation{align-items:center;display:flex;justify-content:center}.ck .ck-balloon-rotator__content .ck-toolbar{justify-content:center}.ck .ck-balloon-rotator__navigation{background:var(--ck-color-toolbar-background);border-bottom:1px solid var(--ck-color-toolbar-border);padding:0 var(--ck-spacing-small)}.ck .ck-balloon-rotator__navigation>*{margin-bottom:var(--ck-spacing-small);margin-right:var(--ck-spacing-small);margin-top:var(--ck-spacing-small)}.ck .ck-balloon-rotator__navigation .ck-balloon-rotator__counter{margin-left:var(--ck-spacing-small);margin-right:var(--ck-spacing-standard)}.ck .ck-balloon-rotator__content .ck.ck-annotation-wrapper{box-shadow:none}","",{version:3,sources:["webpack://./node_modules/@ckeditor/ckeditor5-ui/theme/components/panel/balloonrotator.css","webpack://./node_modules/@ckeditor/ckeditor5-theme-lark/theme/ckeditor5-ui/components/panel/balloonrotator.css"],names:[],mappings:"AAKA,oCAEC,kBAAmB,CADnB,YAAa,CAEb,sBACD,CAKA,6CACC,sBACD,CCXA,oCACC,6CAA8C,CAC9C,sDAAuD,CACvD,iCAgBD,CAbC,sCAGC,qCAAsC,CAFtC,oCAAqC,CACrC,kCAED,CAGA,iEAIC,mCAAoC,CAHpC,uCAID,CAMA,2DACC,eACD",sourcesContent:["/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck .ck-balloon-rotator__navigation {\n\tdisplay: flex;\n\talign-items: center;\n\tjustify-content: center;\n}\n\n/* Buttons inside a toolbar should be centered when rotator bar is wider.\n * See: https://github.com/ckeditor/ckeditor5-ui/issues/495\n */\n.ck .ck-balloon-rotator__content .ck-toolbar {\n\tjustify-content: center;\n}\n","/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck .ck-balloon-rotator__navigation {\n\tbackground: var(--ck-color-toolbar-background);\n\tborder-bottom: 1px solid var(--ck-color-toolbar-border);\n\tpadding: 0 var(--ck-spacing-small);\n\n\t/* Let's keep similar appearance to `ck-toolbar`. */\n\t& > * {\n\t\tmargin-right: var(--ck-spacing-small);\n\t\tmargin-top: var(--ck-spacing-small);\n\t\tmargin-bottom: var(--ck-spacing-small);\n\t}\n\n\t/* Gives counter more breath than buttons. */\n\t& .ck-balloon-rotator__counter {\n\t\tmargin-right: var(--ck-spacing-standard);\n\n\t\t/* We need to use smaller margin because of previous button's right margin. */\n\t\tmargin-left: var(--ck-spacing-small);\n\t}\n}\n\n.ck .ck-balloon-rotator__content {\n\n\t/* Disable default annotation shadow inside rotator with fake panels. */\n\t& .ck.ck-annotation-wrapper {\n\t\tbox-shadow: none;\n\t}\n}\n"],sourceRoot:""}]);const l=i},3553:(e,t,o)=>{o.d(t,{Z:()=>l});var n=o(4015),a=o.n(n),r=o(3645),i=o.n(r)()(a());i.push([e.id,".ck .ck-fake-panel{position:absolute;z-index:calc(var(--ck-z-modal) - 1)}.ck .ck-fake-panel div{position:absolute}.ck .ck-fake-panel div:first-child{z-index:2}.ck .ck-fake-panel div:nth-child(2){z-index:1}:root{--ck-balloon-fake-panel-offset-horizontal:6px;--ck-balloon-fake-panel-offset-vertical:6px}.ck .ck-fake-panel div{background:var(--ck-color-panel-background);border:1px solid var(--ck-color-panel-border);border-radius:var(--ck-border-radius);box-shadow:var(--ck-drop-shadow),0 0;height:100%;min-height:15px;width:100%}.ck .ck-fake-panel div:first-child{margin-left:var(--ck-balloon-fake-panel-offset-horizontal);margin-top:var(--ck-balloon-fake-panel-offset-vertical)}.ck .ck-fake-panel div:nth-child(2){margin-left:calc(var(--ck-balloon-fake-panel-offset-horizontal)*2);margin-top:calc(var(--ck-balloon-fake-panel-offset-vertical)*2)}.ck .ck-fake-panel div:nth-child(3){margin-left:calc(var(--ck-balloon-fake-panel-offset-horizontal)*3);margin-top:calc(var(--ck-balloon-fake-panel-offset-vertical)*3)}.ck .ck-balloon-panel_arrow_s+.ck-fake-panel,.ck .ck-balloon-panel_arrow_se+.ck-fake-panel,.ck .ck-balloon-panel_arrow_sw+.ck-fake-panel{--ck-balloon-fake-panel-offset-vertical:-6px}","",{version:3,sources:["webpack://./node_modules/@ckeditor/ckeditor5-ui/theme/components/panel/fakepanel.css","webpack://./node_modules/@ckeditor/ckeditor5-theme-lark/theme/ckeditor5-ui/components/panel/fakepanel.css","webpack://./node_modules/@ckeditor/ckeditor5-theme-lark/theme/mixins/_shadow.css"],names:[],mappings:"AAKA,mBACC,iBAAkB,CAGlB,mCACD,CAEA,uBACC,iBACD,CAEA,mCACC,SACD,CAEA,oCACC,SACD,CCfA,MACC,6CAA8C,CAC9C,2CACD,CAGA,uBAKC,2CAA4C,CAC5C,6CAA8C,CAC9C,qCAAsC,CCXtC,oCAA8B,CDc9B,WAAY,CAPZ,eAAgB,CAMhB,UAED,CAEA,mCACC,0DAA2D,CAC3D,uDACD,CAEA,oCACC,kEAAqE,CACrE,+DACD,CACA,oCACC,kEAAqE,CACrE,+DACD,CAGA,yIAGC,4CACD",sourcesContent:["/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck .ck-fake-panel {\n\tposition: absolute;\n\n\t/* Fake panels should be placed under main balloon content. */\n\tz-index: calc(var(--ck-z-modal) - 1);\n}\n\n.ck .ck-fake-panel div {\n\tposition: absolute;\n}\n\n.ck .ck-fake-panel div:nth-child( 1 ) {\n\tz-index: 2;\n}\n\n.ck .ck-fake-panel div:nth-child( 2 ) {\n\tz-index: 1;\n}\n",'/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "../../../mixins/_shadow.css";\n\n:root {\n\t--ck-balloon-fake-panel-offset-horizontal: 6px;\n\t--ck-balloon-fake-panel-offset-vertical: 6px;\n}\n\n/* Let\'s use `.ck-balloon-panel` appearance. See: balloonpanel.css. */\n.ck .ck-fake-panel div {\n\t@mixin ck-drop-shadow;\n\n\tmin-height: 15px;\n\n\tbackground: var(--ck-color-panel-background);\n\tborder: 1px solid var(--ck-color-panel-border);\n\tborder-radius: var(--ck-border-radius);\n\n\twidth: 100%;\n\theight: 100%;\n}\n\n.ck .ck-fake-panel div:nth-child( 1 ) {\n\tmargin-left: var(--ck-balloon-fake-panel-offset-horizontal);\n\tmargin-top: var(--ck-balloon-fake-panel-offset-vertical);\n}\n\n.ck .ck-fake-panel div:nth-child( 2 ) {\n\tmargin-left: calc(var(--ck-balloon-fake-panel-offset-horizontal) * 2);\n\tmargin-top: calc(var(--ck-balloon-fake-panel-offset-vertical) * 2);\n}\n.ck .ck-fake-panel div:nth-child( 3 ) {\n\tmargin-left: calc(var(--ck-balloon-fake-panel-offset-horizontal) * 3);\n\tmargin-top: calc(var(--ck-balloon-fake-panel-offset-vertical) * 3);\n}\n\n/* If balloon is positioned above element, we need to move fake panel to the top. */\n.ck .ck-balloon-panel_arrow_s + .ck-fake-panel,\n.ck .ck-balloon-panel_arrow_se + .ck-fake-panel,\n.ck .ck-balloon-panel_arrow_sw + .ck-fake-panel {\n\t--ck-balloon-fake-panel-offset-vertical: -6px;\n}\n',"/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * A helper to combine multiple shadows.\n */\n@define-mixin ck-box-shadow $shadowA, $shadowB: 0 0 {\n\tbox-shadow: $shadowA, $shadowB;\n}\n\n/**\n * Gives an element a drop shadow so it looks like a floating panel.\n */\n@define-mixin ck-drop-shadow {\n\t@mixin ck-box-shadow var(--ck-drop-shadow);\n}\n"],sourceRoot:""}]);const l=i},3609:(e,t,o)=>{o.d(t,{Z:()=>l});var n=o(4015),a=o.n(n),r=o(3645),i=o.n(r)()(a());i.push([e.id,".ck.ck-sticky-panel .ck-sticky-panel__content_sticky{position:fixed;top:0;z-index:var(--ck-z-modal)}.ck.ck-sticky-panel .ck-sticky-panel__content_sticky_bottom-limit{position:absolute;top:auto}.ck.ck-sticky-panel .ck-sticky-panel__content_sticky{border-top-left-radius:0;border-top-right-radius:0;border-width:0 1px 1px;box-shadow:var(--ck-drop-shadow),0 0}","",{version:3,sources:["webpack://./node_modules/@ckeditor/ckeditor5-ui/theme/components/panel/stickypanel.css","webpack://./node_modules/@ckeditor/ckeditor5-theme-lark/theme/ckeditor5-ui/components/panel/stickypanel.css","webpack://./node_modules/@ckeditor/ckeditor5-theme-lark/theme/mixins/_shadow.css"],names:[],mappings:"AAMC,qDAEC,cAAe,CACf,KAAM,CAFN,yBAGD,CAEA,kEAEC,iBAAkB,CADlB,QAED,CCPA,qDAIC,wBAAyB,CACzB,yBAA0B,CAF1B,sBAAuB,CCFxB,oCDKA",sourcesContent:["/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck.ck-sticky-panel {\n\t& .ck-sticky-panel__content_sticky {\n\t\tz-index: var(--ck-z-modal); /* #315 */\n\t\tposition: fixed;\n\t\ttop: 0;\n\t}\n\n\t& .ck-sticky-panel__content_sticky_bottom-limit {\n\t\ttop: auto;\n\t\tposition: absolute;\n\t}\n}\n",'/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "../../../mixins/_shadow.css";\n\n.ck.ck-sticky-panel {\n\t& .ck-sticky-panel__content_sticky {\n\t\t@mixin ck-drop-shadow;\n\n\t\tborder-width: 0 1px 1px;\n\t\tborder-top-left-radius: 0;\n\t\tborder-top-right-radius: 0;\n\t}\n}\n',"/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * A helper to combine multiple shadows.\n */\n@define-mixin ck-box-shadow $shadowA, $shadowB: 0 0 {\n\tbox-shadow: $shadowA, $shadowB;\n}\n\n/**\n * Gives an element a drop shadow so it looks like a floating panel.\n */\n@define-mixin ck-drop-shadow {\n\t@mixin ck-box-shadow var(--ck-drop-shadow);\n}\n"],sourceRoot:""}]);const l=i},1590:(e,t,o)=>{o.d(t,{Z:()=>l});var n=o(4015),a=o.n(n),r=o(3645),i=o.n(r)()(a());i.push([e.id,'.ck-vertical-form .ck-button:after{bottom:-1px;content:"";position:absolute;right:-1px;top:-1px;width:0;z-index:1}.ck-vertical-form .ck-button:focus:after{display:none}@media screen and (max-width:600px){.ck.ck-responsive-form .ck-button:after{bottom:-1px;content:"";position:absolute;right:-1px;top:-1px;width:0;z-index:1}.ck.ck-responsive-form .ck-button:focus:after{display:none}}.ck-vertical-form>.ck-button:nth-last-child(2):after{border-right:1px solid var(--ck-color-base-border)}.ck.ck-responsive-form{padding:var(--ck-spacing-large)}.ck.ck-responsive-form:focus{outline:none}[dir=ltr] .ck.ck-responsive-form>:not(:first-child),[dir=rtl] .ck.ck-responsive-form>:not(:last-child){margin-left:var(--ck-spacing-standard)}@media screen and (max-width:600px){.ck.ck-responsive-form{padding:0;width:calc(var(--ck-input-width)*.8)}.ck.ck-responsive-form .ck-labeled-field-view{margin:var(--ck-spacing-large) var(--ck-spacing-large) 0}.ck.ck-responsive-form .ck-labeled-field-view .ck-input-text{min-width:0;width:100%}.ck.ck-responsive-form .ck-labeled-field-view .ck-labeled-field-view__error{white-space:normal}.ck.ck-responsive-form>.ck-button:nth-last-child(2):after{border-right:1px solid var(--ck-color-base-border)}.ck.ck-responsive-form>.ck-button:last-child,.ck.ck-responsive-form>.ck-button:nth-last-child(2){border-radius:0;margin-top:var(--ck-spacing-large);padding:var(--ck-spacing-standard)}.ck.ck-responsive-form>.ck-button:last-child:not(:focus),.ck.ck-responsive-form>.ck-button:nth-last-child(2):not(:focus){border-top:1px solid var(--ck-color-base-border)}[dir=ltr] .ck.ck-responsive-form>.ck-button:last-child,[dir=ltr] .ck.ck-responsive-form>.ck-button:nth-last-child(2),[dir=rtl] .ck.ck-responsive-form>.ck-button:last-child,[dir=rtl] .ck.ck-responsive-form>.ck-button:nth-last-child(2){margin-left:0}[dir=rtl] .ck.ck-responsive-form>.ck-button:last-child:last-of-type,[dir=rtl] .ck.ck-responsive-form>.ck-button:nth-last-child(2):last-of-type{border-right:1px solid var(--ck-color-base-border)}}',"",{version:3,sources:["webpack://./node_modules/@ckeditor/ckeditor5-ui/theme/components/responsive-form/responsiveform.css","webpack://./node_modules/@ckeditor/ckeditor5-ui/theme/mixins/_rwd.css","webpack://./node_modules/@ckeditor/ckeditor5-theme-lark/theme/ckeditor5-ui/components/responsive-form/responsiveform.css"],names:[],mappings:"AAQC,mCAMC,WAAY,CALZ,UAAW,CAEX,iBAAkB,CAClB,UAAW,CACX,QAAS,CAHT,OAAQ,CAKR,SACD,CAEA,yCACC,YACD,CCdA,oCDoBE,wCAMC,WAAY,CALZ,UAAW,CAEX,iBAAkB,CAClB,UAAW,CACX,QAAS,CAHT,OAAQ,CAKR,SACD,CAEA,8CACC,YACD,CC9BF,CCAD,qDACC,kDACD,CAEA,uBACC,+BAmED,CAjEC,6BAEC,YACD,CASC,uGACC,sCACD,CDvBD,oCCMD,uBAqBE,SAAU,CACV,oCA8CF,CA5CE,8CACC,wDAWD,CATC,6DACC,WAAY,CACZ,UACD,CAGA,4EACC,kBACD,CAKA,0DACC,kDACD,CAGD,iGAIC,eAAgB,CADhB,kCAAmC,CADnC,kCAmBD,CAfC,yHACC,gDACD,CARD,0OAeE,aAMF,CAJE,+IACC,kDACD,CDpEH",sourcesContent:['/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "@ckeditor/ckeditor5-ui/theme/mixins/_rwd.css";\n\n.ck-vertical-form .ck-button {\n\t&::after {\n\t\tcontent: "";\n\t\twidth: 0;\n\t\tposition: absolute;\n\t\tright: -1px;\n\t\ttop: -1px;\n\t\tbottom: -1px;\n\t\tz-index: 1;\n\t}\n\n\t&:focus::after {\n\t\tdisplay: none;\n\t}\n}\n\n.ck.ck-responsive-form {\n\t@mixin ck-media-phone {\n\t\t& .ck-button {\n\t\t\t&::after {\n\t\t\t\tcontent: "";\n\t\t\t\twidth: 0;\n\t\t\t\tposition: absolute;\n\t\t\t\tright: -1px;\n\t\t\t\ttop: -1px;\n\t\t\t\tbottom: -1px;\n\t\t\t\tz-index: 1;\n\t\t\t}\n\n\t\t\t&:focus::after {\n\t\t\t\tdisplay: none;\n\t\t\t}\n\t\t}\n\t}\n}\n',"/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@define-mixin ck-media-phone {\n\t@media screen and (max-width: 600px) {\n\t\t@mixin-content;\n\t}\n}\n",'/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "@ckeditor/ckeditor5-ui/theme/mixins/_rwd.css";\n@import "@ckeditor/ckeditor5-ui/theme/mixins/_dir.css";\n\n.ck-vertical-form > .ck-button:nth-last-child(2)::after {\n\tborder-right: 1px solid var(--ck-color-base-border);\n}\n\n.ck.ck-responsive-form {\n\tpadding: var(--ck-spacing-large);\n\n\t&:focus {\n\t\t/* See: https://github.com/ckeditor/ckeditor5/issues/4773 */\n\t\toutline: none;\n\t}\n\n\t@mixin ck-dir ltr {\n\t\t& > :not(:first-child) {\n\t\t\tmargin-left: var(--ck-spacing-standard);\n\t\t}\n\t}\n\n\t@mixin ck-dir rtl {\n\t\t& > :not(:last-child) {\n\t\t\tmargin-left: var(--ck-spacing-standard);\n\t\t}\n\t}\n\n\t@mixin ck-media-phone {\n\t\tpadding: 0;\n\t\twidth: calc(.8 * var(--ck-input-width));\n\n\t\t& .ck-labeled-field-view {\n\t\t\tmargin: var(--ck-spacing-large) var(--ck-spacing-large) 0;\n\n\t\t\t& .ck-input-text {\n\t\t\t\tmin-width: 0;\n\t\t\t\twidth: 100%;\n\t\t\t}\n\n\t\t\t/* Let the long error messages wrap in the narrow form. */\n\t\t\t& .ck-labeled-field-view__error {\n\t\t\t\twhite-space: normal;\n\t\t\t}\n\t\t}\n\n\t\t/* Styles for two last buttons in the form (save&cancel, edit&unlink, etc.). */\n\t\t& > .ck-button:nth-last-child(2) {\n\t\t\t&::after {\n\t\t\t\tborder-right: 1px solid var(--ck-color-base-border);\n\t\t\t}\n\t\t}\n\n\t\t& > .ck-button:nth-last-child(1),\n\t\t& > .ck-button:nth-last-child(2) {\n\t\t\tpadding: var(--ck-spacing-standard);\n\t\t\tmargin-top: var(--ck-spacing-large);\n\t\t\tborder-radius: 0;\n\n\t\t\t&:not(:focus) {\n\t\t\t\tborder-top: 1px solid var(--ck-color-base-border);\n\t\t\t}\n\n\t\t\t@mixin ck-dir ltr {\n\t\t\t\tmargin-left: 0;\n\t\t\t}\n\n\t\t\t@mixin ck-dir rtl {\n\t\t\t\tmargin-left: 0;\n\n\t\t\t\t&:last-of-type {\n\t\t\t\t\tborder-right: 1px solid var(--ck-color-base-border);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n}\n'],sourceRoot:""}]);const l=i},6706:(e,t,o)=>{o.d(t,{Z:()=>l});var n=o(4015),a=o.n(n),r=o(3645),i=o.n(r)()(a());i.push([e.id,".ck.ck-block-toolbar-button{position:absolute;z-index:var(--ck-z-default)}:root{--ck-color-block-toolbar-button:var(--ck-color-text);--ck-block-toolbar-button-size:var(--ck-font-size-normal)}.ck.ck-block-toolbar-button{color:var(--ck-color-block-toolbar-button);font-size:var(--ck-block-toolbar-size)}","",{version:3,sources:["webpack://./node_modules/@ckeditor/ckeditor5-ui/theme/components/toolbar/blocktoolbar.css","webpack://./node_modules/@ckeditor/ckeditor5-theme-lark/theme/ckeditor5-ui/components/toolbar/blocktoolbar.css"],names:[],mappings:"AAKA,4BACC,iBAAkB,CAClB,2BACD,CCHA,MACC,oDAAqD,CACrD,yDACD,CAEA,4BACC,0CAA2C,CAC3C,sCACD",sourcesContent:["/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck.ck-block-toolbar-button {\n\tposition: absolute;\n\tz-index: var(--ck-z-default);\n}\n","/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n:root {\n\t--ck-color-block-toolbar-button: var(--ck-color-text);\n\t--ck-block-toolbar-button-size: var(--ck-font-size-normal);\n}\n\n.ck.ck-block-toolbar-button {\n\tcolor: var(--ck-color-block-toolbar-button);\n\tfont-size: var(--ck-block-toolbar-size);\n}\n"],sourceRoot:""}]);const l=i},5571:(e,t,o)=>{o.d(t,{Z:()=>l});var n=o(4015),a=o.n(n),r=o(3645),i=o.n(r)()(a());i.push([e.id,".ck.ck-toolbar{align-items:center;display:flex;flex-flow:row nowrap;-moz-user-select:none;-webkit-user-select:none;-ms-user-select:none;user-select:none}.ck.ck-toolbar>.ck-toolbar__items{align-items:center;display:flex;flex-flow:row wrap;flex-grow:1}.ck.ck-toolbar .ck.ck-toolbar__separator{display:inline-block}.ck.ck-toolbar .ck.ck-toolbar__separator:first-child,.ck.ck-toolbar .ck.ck-toolbar__separator:last-child{display:none}.ck.ck-toolbar .ck-toolbar__line-break{flex-basis:100%}.ck.ck-toolbar.ck-toolbar_grouping>.ck-toolbar__items{flex-wrap:nowrap}.ck.ck-toolbar.ck-toolbar_vertical>.ck-toolbar__items{flex-direction:column}.ck.ck-toolbar.ck-toolbar_floating>.ck-toolbar__items{flex-wrap:nowrap}.ck.ck-toolbar>.ck.ck-toolbar__grouped-dropdown>.ck-dropdown__button .ck-dropdown__arrow{display:none}.ck.ck-toolbar{border-radius:0}.ck-rounded-corners .ck.ck-toolbar,.ck.ck-toolbar.ck-rounded-corners{border-radius:var(--ck-border-radius)}.ck.ck-toolbar{background:var(--ck-color-toolbar-background);border:1px solid var(--ck-color-toolbar-border);padding:0 var(--ck-spacing-small)}.ck.ck-toolbar .ck.ck-toolbar__separator{align-self:stretch;background:var(--ck-color-toolbar-border);margin-bottom:var(--ck-spacing-small);margin-top:var(--ck-spacing-small);min-width:1px;width:1px}.ck.ck-toolbar .ck-toolbar__line-break{height:0}.ck.ck-toolbar>.ck-toolbar__items>:not(.ck-toolbar__line-break){margin-right:var(--ck-spacing-small)}.ck.ck-toolbar>.ck-toolbar__items:empty+.ck.ck-toolbar__separator{display:none}.ck.ck-toolbar>.ck-toolbar__items>:not(.ck-toolbar__line-break),.ck.ck-toolbar>.ck.ck-toolbar__grouped-dropdown{margin-bottom:var(--ck-spacing-small);margin-top:var(--ck-spacing-small)}.ck.ck-toolbar.ck-toolbar_vertical{padding:0}.ck.ck-toolbar.ck-toolbar_vertical>.ck-toolbar__items>.ck{border-radius:0;margin:0;width:100%}.ck.ck-toolbar.ck-toolbar_compact{padding:0}.ck.ck-toolbar.ck-toolbar_compact>.ck-toolbar__items>*{margin:0}.ck.ck-toolbar.ck-toolbar_compact>.ck-toolbar__items>:not(:first-child):not(:last-child){border-radius:0}.ck.ck-toolbar>.ck.ck-toolbar__grouped-dropdown>.ck.ck-button.ck-dropdown__button{padding-left:var(--ck-spacing-tiny)}.ck.ck-toolbar .ck-toolbar__nested-toolbar-dropdown>.ck-dropdown__panel{min-width:auto}.ck.ck-toolbar .ck-toolbar__nested-toolbar-dropdown>.ck-button>.ck-button__label{max-width:7em;width:auto}.ck-toolbar-container .ck.ck-toolbar{border:0}.ck.ck-toolbar[dir=rtl]>.ck-toolbar__items>.ck,[dir=rtl] .ck.ck-toolbar>.ck-toolbar__items>.ck{margin-right:0}.ck.ck-toolbar[dir=rtl]:not(.ck-toolbar_compact)>.ck-toolbar__items>.ck,[dir=rtl] .ck.ck-toolbar:not(.ck-toolbar_compact)>.ck-toolbar__items>.ck{margin-left:var(--ck-spacing-small)}.ck.ck-toolbar[dir=rtl]>.ck-toolbar__items>.ck:last-child,[dir=rtl] .ck.ck-toolbar>.ck-toolbar__items>.ck:last-child{margin-left:0}.ck.ck-toolbar.ck-toolbar_compact[dir=rtl]>.ck-toolbar__items>.ck:first-child,[dir=rtl] .ck.ck-toolbar.ck-toolbar_compact>.ck-toolbar__items>.ck:first-child{border-bottom-left-radius:0;border-top-left-radius:0}.ck.ck-toolbar.ck-toolbar_compact[dir=rtl]>.ck-toolbar__items>.ck:last-child,[dir=rtl] .ck.ck-toolbar.ck-toolbar_compact>.ck-toolbar__items>.ck:last-child{border-bottom-right-radius:0;border-top-right-radius:0}.ck.ck-toolbar.ck-toolbar_grouping[dir=rtl]>.ck-toolbar__items:not(:empty):not(:only-child),.ck.ck-toolbar[dir=rtl]>.ck.ck-toolbar__separator,[dir=rtl] .ck.ck-toolbar.ck-toolbar_grouping>.ck-toolbar__items:not(:empty):not(:only-child),[dir=rtl] .ck.ck-toolbar>.ck.ck-toolbar__separator{margin-left:var(--ck-spacing-small)}.ck.ck-toolbar[dir=ltr]>.ck-toolbar__items>.ck:last-child,[dir=ltr] .ck.ck-toolbar>.ck-toolbar__items>.ck:last-child{margin-right:0}.ck.ck-toolbar.ck-toolbar_compact[dir=ltr]>.ck-toolbar__items>.ck:first-child,[dir=ltr] .ck.ck-toolbar.ck-toolbar_compact>.ck-toolbar__items>.ck:first-child{border-bottom-right-radius:0;border-top-right-radius:0}.ck.ck-toolbar.ck-toolbar_compact[dir=ltr]>.ck-toolbar__items>.ck:last-child,[dir=ltr] .ck.ck-toolbar.ck-toolbar_compact>.ck-toolbar__items>.ck:last-child{border-bottom-left-radius:0;border-top-left-radius:0}.ck.ck-toolbar.ck-toolbar_grouping[dir=ltr]>.ck-toolbar__items:not(:empty):not(:only-child),.ck.ck-toolbar[dir=ltr]>.ck.ck-toolbar__separator,[dir=ltr] .ck.ck-toolbar.ck-toolbar_grouping>.ck-toolbar__items:not(:empty):not(:only-child),[dir=ltr] .ck.ck-toolbar>.ck.ck-toolbar__separator{margin-right:var(--ck-spacing-small)}","",{version:3,sources:["webpack://./node_modules/@ckeditor/ckeditor5-ui/theme/components/toolbar/toolbar.css","webpack://./node_modules/@ckeditor/ckeditor5-ui/theme/mixins/_unselectable.css","webpack://./node_modules/@ckeditor/ckeditor5-theme-lark/theme/ckeditor5-ui/components/toolbar/toolbar.css","webpack://./node_modules/@ckeditor/ckeditor5-theme-lark/theme/mixins/_rounded.css"],names:[],mappings:"AAOA,eAKC,kBAAmB,CAFnB,YAAa,CACb,oBAAqB,CCFrB,qBAAsB,CACtB,wBAAyB,CACzB,oBAAqB,CACrB,gBD6CD,CA3CC,kCAGC,kBAAmB,CAFnB,YAAa,CACb,kBAAmB,CAEnB,WAED,CAEA,yCACC,oBAWD,CAJC,yGAEC,YACD,CAGD,uCACC,eACD,CAEA,sDACC,gBACD,CAEA,sDACC,qBACD,CAEA,sDACC,gBACD,CAGC,yFACC,YACD,CE/CF,eCGC,eDoGD,CAvGA,qECOE,qCDgGF,CAvGA,eAGC,6CAA8C,CAE9C,+CAAgD,CADhD,iCAmGD,CAhGC,yCACC,kBAAmB,CAGnB,yCAA0C,CAO1C,qCAAsC,CADtC,kCAAmC,CAPnC,aAAc,CADd,SAUD,CAEA,uCACC,QACD,CAGC,gEAEC,oCACD,CAIA,kEACC,YACD,CAGD,gHAIC,qCAAsC,CADtC,kCAED,CAEA,mCAEC,SAaD,CAVC,0DAQC,eAAgB,CAHhB,QAAS,CAHT,UAOD,CAGD,kCAEC,SAWD,CATC,uDAEC,QAMD,CAHC,yFACC,eACD,CASD,kFACC,mCACD,CAMA,wEACC,cACD,CAEA,iFACC,aAAc,CACd,UACD,CAjGF,qCAqGE,QAEF,CAYC,+FACC,cACD,CAEA,iJAEC,mCACD,CAEA,qHACC,aACD,CAIC,6JAEC,2BAA4B,CAD5B,wBAED,CAGA,2JAEC,4BAA6B,CAD7B,yBAED,CASD,8RACC,mCACD,CAWA,qHACC,cACD,CAIC,6JAEC,4BAA6B,CAD7B,yBAED,CAGA,2JAEC,2BAA4B,CAD5B,wBAED,CASD,8RACC,oCACD",sourcesContent:['/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "../../mixins/_unselectable.css";\n\n.ck.ck-toolbar {\n\t@mixin ck-unselectable;\n\n\tdisplay: flex;\n\tflex-flow: row nowrap;\n\talign-items: center;\n\n\t& > .ck-toolbar__items {\n\t\tdisplay: flex;\n\t\tflex-flow: row wrap;\n\t\talign-items: center;\n\t\tflex-grow: 1;\n\n\t}\n\n\t& .ck.ck-toolbar__separator {\n\t\tdisplay: inline-block;\n\n\t\t/*\n\t\t * A leading or trailing separator makes no sense (separates from nothing on one side).\n\t\t * For instance, it can happen when toolbar items (also separators) are getting grouped one by one and\n\t\t * moved to another toolbar in the dropdown.\n\t\t */\n\t\t&:first-child,\n\t\t&:last-child {\n\t\t\tdisplay: none;\n\t\t}\n\t}\n\n\t& .ck-toolbar__line-break {\n\t\tflex-basis: 100%;\n\t}\n\n\t&.ck-toolbar_grouping > .ck-toolbar__items {\n\t\tflex-wrap: nowrap;\n\t}\n\n\t&.ck-toolbar_vertical > .ck-toolbar__items {\n\t\tflex-direction: column;\n\t}\n\n\t&.ck-toolbar_floating > .ck-toolbar__items {\n\t\tflex-wrap: nowrap;\n\t}\n\n\t& > .ck.ck-toolbar__grouped-dropdown {\n\t\t& > .ck-dropdown__button .ck-dropdown__arrow {\n\t\t\tdisplay: none;\n\t\t}\n\t}\n}\n',"/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * Makes element unselectable.\n */\n@define-mixin ck-unselectable {\n\t-moz-user-select: none;\n\t-webkit-user-select: none;\n\t-ms-user-select: none;\n\tuser-select: none\n}\n",'/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "../../../mixins/_rounded.css";\n@import "@ckeditor/ckeditor5-ui/theme/mixins/_dir.css";\n\n.ck.ck-toolbar {\n\t@mixin ck-rounded-corners;\n\n\tbackground: var(--ck-color-toolbar-background);\n\tpadding: 0 var(--ck-spacing-small);\n\tborder: 1px solid var(--ck-color-toolbar-border);\n\n\t& .ck.ck-toolbar__separator {\n\t\talign-self: stretch;\n\t\twidth: 1px;\n\t\tmin-width: 1px;\n\t\tbackground: var(--ck-color-toolbar-border);\n\n\t\t/*\n\t\t * These margins make the separators look better in balloon toolbars (when aligned with the "tip").\n\t\t * See https://github.com/ckeditor/ckeditor5/issues/7493.\n\t\t */\n\t\tmargin-top: var(--ck-spacing-small);\n\t\tmargin-bottom: var(--ck-spacing-small);\n\t}\n\n\t& .ck-toolbar__line-break {\n\t\theight: 0;\n\t}\n\n\t& > .ck-toolbar__items {\n\t\t& > *:not(.ck-toolbar__line-break) {\n\t\t\t/* (#11) Separate toolbar items. */\n\t\t\tmargin-right: var(--ck-spacing-small);\n\t\t}\n\n\t\t/* Don\'t display a separator after an empty items container, for instance,\n\t\twhen all items were grouped */\n\t\t&:empty + .ck.ck-toolbar__separator {\n\t\t\tdisplay: none;\n\t\t}\n\t}\n\n\t& > .ck-toolbar__items > *:not(.ck-toolbar__line-break),\n\t& > .ck.ck-toolbar__grouped-dropdown {\n\t\t/* Make sure items wrapped to the next line have v-spacing */\n\t\tmargin-top: var(--ck-spacing-small);\n\t\tmargin-bottom: var(--ck-spacing-small);\n\t}\n\n\t&.ck-toolbar_vertical {\n\t\t/* Items in a vertical toolbar span the entire width. */\n\t\tpadding: 0;\n\n\t\t/* Specificity matters here. See https://github.com/ckeditor/ckeditor5-theme-lark/issues/168. */\n\t\t& > .ck-toolbar__items > .ck {\n\t\t\t/* Items in a vertical toolbar should span the horizontal space. */\n\t\t\twidth: 100%;\n\n\t\t\t/* Items in a vertical toolbar should have no margin. */\n\t\t\tmargin: 0;\n\n\t\t\t/* Items in a vertical toolbar span the entire width so rounded corners are pointless. */\n\t\t\tborder-radius: 0;\n\t\t}\n\t}\n\n\t&.ck-toolbar_compact {\n\t\t/* No spacing around items. */\n\t\tpadding: 0;\n\n\t\t& > .ck-toolbar__items > * {\n\t\t\t/* Compact toolbar items have no spacing between them. */\n\t\t\tmargin: 0;\n\n\t\t\t/* "Middle" children should have no rounded corners. */\n\t\t\t&:not(:first-child):not(:last-child) {\n\t\t\t\tborder-radius: 0;\n\t\t\t}\n\t\t}\n\t}\n\n\t& > .ck.ck-toolbar__grouped-dropdown {\n\t\t/*\n\t\t * Dropdown button has asymmetric padding to fit the arrow.\n\t\t * This button has no arrow so let\'s revert that padding back to normal.\n\t\t */\n\t\t& > .ck.ck-button.ck-dropdown__button {\n\t\t\tpadding-left: var(--ck-spacing-tiny);\n\t\t}\n\t}\n\n\t/* A drop-down containing the nested toolbar with configured items. */\n\t& .ck-toolbar__nested-toolbar-dropdown {\n\t\t/* Prevent empty space in the panel when the dropdown label is visible and long but the toolbar has few items. */\n\t\t& > .ck-dropdown__panel {\n\t\t\tmin-width: auto;\n\t\t}\n\n\t\t& > .ck-button > .ck-button__label {\n\t\t\tmax-width: 7em;\n\t\t\twidth: auto;\n\t\t}\n\t}\n\n\t@nest .ck-toolbar-container & {\n\t\tborder: 0;\n\t}\n}\n\n/* stylelint-disable */\n\n/*\n * Styles for RTL toolbars.\n *\n * Note: In some cases (e.g. a decoupled editor), the toolbar has its own "dir"\n * because its parent is not controlled by the editor framework.\n */\n[dir="rtl"] .ck.ck-toolbar,\n.ck.ck-toolbar[dir="rtl"] {\n\t& > .ck-toolbar__items > .ck {\n\t\tmargin-right: 0;\n\t}\n\n\t&:not(.ck-toolbar_compact) > .ck-toolbar__items > .ck {\n\t\t/* (#11) Separate toolbar items. */\n\t\tmargin-left: var(--ck-spacing-small);\n\t}\n\n\t& > .ck-toolbar__items > .ck:last-child {\n\t\tmargin-left: 0;\n\t}\n\n\t&.ck-toolbar_compact > .ck-toolbar__items > .ck {\n\t\t/* No rounded corners on the right side of the first child. */\n\t\t&:first-child {\n\t\t\tborder-top-left-radius: 0;\n\t\t\tborder-bottom-left-radius: 0;\n\t\t}\n\n\t\t/* No rounded corners on the left side of the last child. */\n\t\t&:last-child {\n\t\t\tborder-top-right-radius: 0;\n\t\t\tborder-bottom-right-radius: 0;\n\t\t}\n\t}\n\n\t/* Separate the the separator form the grouping dropdown when some items are grouped. */\n\t& > .ck.ck-toolbar__separator {\n\t\tmargin-left: var(--ck-spacing-small);\n\t}\n\n\t/* Some spacing between the items and the separator before the grouped items dropdown. */\n\t&.ck-toolbar_grouping > .ck-toolbar__items:not(:empty):not(:only-child) {\n\t\tmargin-left: var(--ck-spacing-small);\n\t}\n}\n\n/*\n * Styles for LTR toolbars.\n *\n * Note: In some cases (e.g. a decoupled editor), the toolbar has its own "dir"\n * because its parent is not controlled by the editor framework.\n */\n[dir="ltr"] .ck.ck-toolbar,\n.ck.ck-toolbar[dir="ltr"] {\n\t& > .ck-toolbar__items > .ck:last-child {\n\t\tmargin-right: 0;\n\t}\n\n\t&.ck-toolbar_compact > .ck-toolbar__items > .ck {\n\t\t/* No rounded corners on the right side of the first child. */\n\t\t&:first-child {\n\t\t\tborder-top-right-radius: 0;\n\t\t\tborder-bottom-right-radius: 0;\n\t\t}\n\n\t\t/* No rounded corners on the left side of the last child. */\n\t\t&:last-child {\n\t\t\tborder-top-left-radius: 0;\n\t\t\tborder-bottom-left-radius: 0;\n\t\t}\n\t}\n\n\t/* Separate the the separator form the grouping dropdown when some items are grouped. */\n\t& > .ck.ck-toolbar__separator {\n\t\tmargin-right: var(--ck-spacing-small);\n\t}\n\n\t/* Some spacing between the items and the separator before the grouped items dropdown. */\n\t&.ck-toolbar_grouping > .ck-toolbar__items:not(:empty):not(:only-child) {\n\t\tmargin-right: var(--ck-spacing-small);\n\t}\n}\n\n/* stylelint-enable */\n',"/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * Implements rounded corner interface for .ck-rounded-corners class.\n *\n * @see $ck-border-radius\n */\n@define-mixin ck-rounded-corners {\n\tborder-radius: 0;\n\n\t@nest .ck-rounded-corners &,\n\t&.ck-rounded-corners {\n\t\tborder-radius: var(--ck-border-radius);\n\t\t@mixin-content;\n\t}\n}\n"],sourceRoot:""}]);const l=i},9948:(e,t,o)=>{o.d(t,{Z:()=>l});var n=o(4015),a=o.n(n),r=o(3645),i=o.n(r)()(a());i.push([e.id,".ck.ck-balloon-panel.ck-tooltip{--ck-balloon-border-width:0px;--ck-balloon-arrow-offset:0px;--ck-balloon-arrow-half-width:4px;--ck-balloon-arrow-height:4px;--ck-color-panel-background:var(--ck-color-tooltip-background);padding:0 var(--ck-spacing-medium);pointer-events:none;z-index:calc(var(--ck-z-modal) + 100)}.ck.ck-balloon-panel.ck-tooltip .ck-tooltip__text{color:var(--ck-color-tooltip-text);font-size:.9em;line-height:1.5}.ck.ck-balloon-panel.ck-tooltip{box-shadow:none}.ck.ck-balloon-panel.ck-tooltip:before{display:none}","",{version:3,sources:["webpack://./node_modules/@ckeditor/ckeditor5-ui/theme/components/tooltip/tooltip.css","webpack://./node_modules/@ckeditor/ckeditor5-theme-lark/theme/ckeditor5-ui/components/tooltip/tooltip.css"],names:[],mappings:"AAKA,gCCGC,6BAA8B,CAC9B,6BAA8B,CAC9B,iCAAkC,CAClC,6BAA8B,CAC9B,8DAA+D,CAE/D,kCAAmC,CDPnC,mBAAoB,CAEpB,qCACD,CCMC,kDAGC,kCAAmC,CAFnC,cAAe,CACf,eAED,CAbD,gCAgBC,eAMD,CAHC,uCACC,YACD",sourcesContent:["/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck.ck-balloon-panel.ck-tooltip {\n\t/* Keep tooltips transparent for any interactions. */\n\tpointer-events: none;\n\n\tz-index: calc( var(--ck-z-modal) + 100 );\n}\n",'/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "../../../mixins/_rounded.css";\n\n.ck.ck-balloon-panel.ck-tooltip {\n\t--ck-balloon-border-width: 0px;\n\t--ck-balloon-arrow-offset: 0px;\n\t--ck-balloon-arrow-half-width: 4px;\n\t--ck-balloon-arrow-height: 4px;\n\t--ck-color-panel-background: var(--ck-color-tooltip-background);\n\n\tpadding: 0 var(--ck-spacing-medium);\n\n\t& .ck-tooltip__text {\n\t\tfont-size: .9em;\n\t\tline-height: 1.5;\n\t\tcolor: var(--ck-color-tooltip-text);\n\t}\n\n\t/* Reset balloon panel styles */\n\tbox-shadow: none;\n\n\t/* Hide the default shadow of the .ck-balloon-panel tip */\n\t&::before {\n\t\tdisplay: none;\n\t}\n}\n'],sourceRoot:""}]);const l=i},6150:(e,t,o)=>{o.d(t,{Z:()=>l});var n=o(4015),a=o.n(n),r=o(3645),i=o.n(r)()(a());i.push([e.id,".ck-hidden{display:none!important}.ck-reset_all :not(.ck-reset_all-excluded *),.ck.ck-reset,.ck.ck-reset_all{box-sizing:border-box;height:auto;position:static;width:auto}:root{--ck-z-default:1;--ck-z-modal:calc(var(--ck-z-default) + 999)}.ck-transitions-disabled,.ck-transitions-disabled *{transition:none!important}:root{--ck-color-base-foreground:#fafafa;--ck-color-base-background:#fff;--ck-color-base-border:#ccced1;--ck-color-base-action:#53a336;--ck-color-base-focus:#6cb5f9;--ck-color-base-text:#333;--ck-color-base-active:#2977ff;--ck-color-base-active-focus:#0d65ff;--ck-color-base-error:#db3700;--ck-color-focus-border-coordinates:218,81.8%,56.9%;--ck-color-focus-border:hsl(var(--ck-color-focus-border-coordinates));--ck-color-focus-outer-shadow:#cae1fc;--ck-color-focus-disabled-shadow:rgba(119,186,248,.3);--ck-color-focus-error-shadow:rgba(255,64,31,.3);--ck-color-text:var(--ck-color-base-text);--ck-color-shadow-drop:rgba(0,0,0,.15);--ck-color-shadow-drop-active:rgba(0,0,0,.2);--ck-color-shadow-inner:rgba(0,0,0,.1);--ck-color-button-default-background:transparent;--ck-color-button-default-hover-background:#f0f0f0;--ck-color-button-default-active-background:#f0f0f0;--ck-color-button-default-disabled-background:transparent;--ck-color-button-on-background:#f0f7ff;--ck-color-button-on-hover-background:#dbecff;--ck-color-button-on-active-background:#dbecff;--ck-color-button-on-disabled-background:#f0f2f4;--ck-color-button-on-color:#2977ff;--ck-color-button-action-background:var(--ck-color-base-action);--ck-color-button-action-hover-background:#4d9d30;--ck-color-button-action-active-background:#4d9d30;--ck-color-button-action-disabled-background:#7ec365;--ck-color-button-action-text:var(--ck-color-base-background);--ck-color-button-save:#008a00;--ck-color-button-cancel:#db3700;--ck-color-switch-button-off-background:#939393;--ck-color-switch-button-off-hover-background:#7d7d7d;--ck-color-switch-button-on-background:var(--ck-color-button-action-background);--ck-color-switch-button-on-hover-background:#4d9d30;--ck-color-switch-button-inner-background:var(--ck-color-base-background);--ck-color-switch-button-inner-shadow:rgba(0,0,0,.1);--ck-color-dropdown-panel-background:var(--ck-color-base-background);--ck-color-dropdown-panel-border:var(--ck-color-base-border);--ck-color-input-background:var(--ck-color-base-background);--ck-color-input-border:var(--ck-color-base-border);--ck-color-input-error-border:var(--ck-color-base-error);--ck-color-input-text:var(--ck-color-base-text);--ck-color-input-disabled-background:#f2f2f2;--ck-color-input-disabled-border:var(--ck-color-base-border);--ck-color-input-disabled-text:#757575;--ck-color-list-background:var(--ck-color-base-background);--ck-color-list-button-hover-background:var(--ck-color-button-default-hover-background);--ck-color-list-button-on-background:var(--ck-color-button-on-color);--ck-color-list-button-on-background-focus:var(--ck-color-button-on-color);--ck-color-list-button-on-text:var(--ck-color-base-background);--ck-color-panel-background:var(--ck-color-base-background);--ck-color-panel-border:var(--ck-color-base-border);--ck-color-toolbar-background:var(--ck-color-base-background);--ck-color-toolbar-border:var(--ck-color-base-border);--ck-color-tooltip-background:var(--ck-color-base-text);--ck-color-tooltip-text:var(--ck-color-base-background);--ck-color-engine-placeholder-text:#707070;--ck-color-upload-bar-background:#6cb5f9;--ck-color-link-default:#0000f0;--ck-color-link-selected-background:rgba(31,176,255,.1);--ck-color-link-fake-selection:rgba(31,176,255,.3);--ck-color-highlight-background:#ff0;--ck-disabled-opacity:.5;--ck-focus-outer-shadow-geometry:0 0 0 3px;--ck-focus-outer-shadow:var(--ck-focus-outer-shadow-geometry) var(--ck-color-focus-outer-shadow);--ck-focus-disabled-outer-shadow:var(--ck-focus-outer-shadow-geometry) var(--ck-color-focus-disabled-shadow);--ck-focus-error-outer-shadow:var(--ck-focus-outer-shadow-geometry) var(--ck-color-focus-error-shadow);--ck-focus-ring:1px solid var(--ck-color-focus-border);--ck-font-size-base:13px;--ck-line-height-base:1.84615;--ck-font-face:Helvetica,Arial,Tahoma,Verdana,Sans-Serif;--ck-font-size-tiny:0.7em;--ck-font-size-small:0.75em;--ck-font-size-normal:1em;--ck-font-size-big:1.4em;--ck-font-size-large:1.8em;--ck-ui-component-min-height:2.3em}.ck-reset_all :not(.ck-reset_all-excluded *),.ck.ck-reset,.ck.ck-reset_all{word-wrap:break-word;background:transparent;border:0;margin:0;padding:0;text-decoration:none;transition:none;vertical-align:middle}.ck-reset_all :not(.ck-reset_all-excluded *),.ck.ck-reset_all{border-collapse:collapse;color:var(--ck-color-text);cursor:auto;float:none;font:normal normal normal var(--ck-font-size-base)/var(--ck-line-height-base) var(--ck-font-face);text-align:left;white-space:nowrap}.ck-reset_all .ck-rtl :not(.ck-reset_all-excluded *){text-align:right}.ck-reset_all iframe:not(.ck-reset_all-excluded *){vertical-align:inherit}.ck-reset_all textarea:not(.ck-reset_all-excluded *){white-space:pre-wrap}.ck-reset_all input[type=password]:not(.ck-reset_all-excluded *),.ck-reset_all input[type=text]:not(.ck-reset_all-excluded *),.ck-reset_all textarea:not(.ck-reset_all-excluded *){cursor:text}.ck-reset_all input[type=password][disabled]:not(.ck-reset_all-excluded *),.ck-reset_all input[type=text][disabled]:not(.ck-reset_all-excluded *),.ck-reset_all textarea[disabled]:not(.ck-reset_all-excluded *){cursor:default}.ck-reset_all fieldset:not(.ck-reset_all-excluded *){border:2px groove #dfdee3;padding:10px}.ck-reset_all button:not(.ck-reset_all-excluded *)::-moz-focus-inner{border:0;padding:0}.ck[dir=rtl],.ck[dir=rtl] .ck{text-align:right}:root{--ck-border-radius:2px;--ck-inner-shadow:2px 2px 3px var(--ck-color-shadow-inner) inset;--ck-drop-shadow:0 1px 2px 1px var(--ck-color-shadow-drop);--ck-drop-shadow-active:0 3px 6px 1px var(--ck-color-shadow-drop-active);--ck-spacing-unit:0.6em;--ck-spacing-large:calc(var(--ck-spacing-unit)*1.5);--ck-spacing-standard:var(--ck-spacing-unit);--ck-spacing-medium:calc(var(--ck-spacing-unit)*0.8);--ck-spacing-small:calc(var(--ck-spacing-unit)*0.5);--ck-spacing-tiny:calc(var(--ck-spacing-unit)*0.3);--ck-spacing-extra-tiny:calc(var(--ck-spacing-unit)*0.16)}","",{version:3,sources:["webpack://./node_modules/@ckeditor/ckeditor5-ui/theme/globals/_hidden.css","webpack://./node_modules/@ckeditor/ckeditor5-ui/theme/globals/_reset.css","webpack://./node_modules/@ckeditor/ckeditor5-ui/theme/globals/_zindex.css","webpack://./node_modules/@ckeditor/ckeditor5-ui/theme/globals/_transition.css","webpack://./node_modules/@ckeditor/ckeditor5-theme-lark/theme/ckeditor5-ui/globals/_colors.css","webpack://./node_modules/@ckeditor/ckeditor5-theme-lark/theme/ckeditor5-ui/globals/_disabled.css","webpack://./node_modules/@ckeditor/ckeditor5-theme-lark/theme/ckeditor5-ui/globals/_focus.css","webpack://./node_modules/@ckeditor/ckeditor5-theme-lark/theme/ckeditor5-ui/globals/_fonts.css","webpack://./node_modules/@ckeditor/ckeditor5-theme-lark/theme/ckeditor5-ui/globals/_reset.css","webpack://./node_modules/@ckeditor/ckeditor5-theme-lark/theme/ckeditor5-ui/globals/_rounded.css","webpack://./node_modules/@ckeditor/ckeditor5-theme-lark/theme/ckeditor5-ui/globals/_shadow.css","webpack://./node_modules/@ckeditor/ckeditor5-theme-lark/theme/ckeditor5-ui/globals/_spacing.css"],names:[],mappings:"AAQA,WAGC,sBACD,CCPA,2EAGC,qBAAsB,CAEtB,WAAY,CACZ,eAAgB,CAFhB,UAGD,CCPA,MACC,gBAAiB,CACjB,4CACD,CCAA,oDAEC,yBACD,CCNA,MACC,kCAAmD,CACnD,+BAAoD,CACpD,8BAAkD,CAClD,8BAAuD,CACvD,6BAAmD,CACnD,yBAA+C,CAC/C,8BAAsD,CACtD,oCAA4D,CAC5D,6BAAkD,CAIlD,mDAA4D,CAC5D,qEAA+E,CAC/E,qCAA4D,CAC5D,qDAA8D,CAC9D,gDAAyD,CACzD,yCAAqD,CACrD,sCAAsD,CACtD,4CAA0D,CAC1D,sCAAsD,CAItD,gDAAuD,CACvD,kDAAiE,CACjE,mDAAkE,CAClE,yDAA8D,CAE9D,uCAA6D,CAC7D,6CAAoE,CACpE,8CAAoE,CACpE,gDAAiE,CACjE,kCAAyD,CAGzD,+DAAsE,CACtE,iDAAsE,CACtE,kDAAsE,CACtE,oDAAoE,CACpE,6DAAsE,CAEtE,8BAAoD,CACpD,gCAAqD,CAErD,+CAA8D,CAC9D,qDAAiE,CACjE,+EAAqF,CACrF,oDAAuE,CACvE,yEAA8E,CAC9E,oDAAgE,CAIhE,oEAA2E,CAC3E,4DAAoE,CAIpE,2DAAoE,CACpE,mDAA6D,CAC7D,wDAAgE,CAChE,+CAA0D,CAC1D,4CAA2D,CAC3D,4DAAoE,CACpE,sCAAsD,CAItD,0DAAmE,CACnE,uFAA6F,CAC7F,oEAA2E,CAC3E,0EAA+E,CAC/E,8DAAsE,CAItE,2DAAoE,CACpE,mDAA6D,CAI7D,6DAAsE,CACtE,qDAA+D,CAI/D,uDAAgE,CAChE,uDAAiE,CAIjE,0CAAyD,CAIzD,wCAA2D,CAI3D,+BAAoD,CACpD,uDAAmE,CACnE,kDAAgE,CAIhE,oCAAwD,CCvGxD,wBAAyB,CCAzB,0CAA2C,CAK3C,gGAAiG,CAKjG,4GAA6G,CAK7G,sGAAuG,CAKvG,sDAAuD,CCvBvD,wBAAyB,CACzB,6BAA8B,CAC9B,wDAA6D,CAE7D,yBAA0B,CAC1B,2BAA4B,CAC5B,yBAA0B,CAC1B,wBAAyB,CACzB,0BAA2B,CCJ3B,kCJuGD,CIjGA,2EAaC,oBAAqB,CANrB,sBAAuB,CADvB,QAAS,CAFT,QAAS,CACT,SAAU,CAGV,oBAAqB,CAErB,eAAgB,CADhB,qBAKD,CAKA,8DAGC,wBAAyB,CAEzB,0BAA2B,CAG3B,WAAY,CACZ,UAAW,CALX,iGAAkG,CAElG,eAAgB,CAChB,kBAGD,CAGC,qDACC,gBACD,CAEA,mDAEC,sBACD,CAEA,qDACC,oBACD,CAEA,mLAGC,WACD,CAEA,iNAGC,cACD,CAEA,qDAEC,yBAAoC,CADpC,YAED,CAEA,qEAGC,QAAQ,CADR,SAED,CAMD,8BAEC,gBACD,CCnFA,MACC,sBAAuB,CCAvB,gEAAiE,CAKjE,0DAA2D,CAK3D,wEAAyE,CCbzE,uBAA8B,CAC9B,mDAA2D,CAC3D,4CAAkD,CAClD,oDAA4D,CAC5D,mDAA2D,CAC3D,kDAA2D,CAC3D,yDFFD",sourcesContent:["/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * A class which hides an element in DOM.\n */\n.ck-hidden {\n\t/* Override selector specificity. Otherwise, all elements with some display\n\tstyle defined will override this one, which is not a desired result. */\n\tdisplay: none !important;\n}\n","/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck.ck-reset,\n.ck.ck-reset_all,\n.ck-reset_all *:not(.ck-reset_all-excluded *) {\n\tbox-sizing: border-box;\n\twidth: auto;\n\theight: auto;\n\tposition: static;\n}\n","/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n:root {\n\t--ck-z-default: 1;\n\t--ck-z-modal: calc( var(--ck-z-default) + 999 );\n}\n","/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * A class that disables all transitions of the element and its children.\n */\n.ck-transitions-disabled,\n.ck-transitions-disabled * {\n\ttransition: none !important;\n}\n","/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n:root {\n\t--ck-color-base-foreground: \t\t\t\t\t\t\t\thsl(0, 0%, 98%);\n\t--ck-color-base-background: \t\t\t\t\t\t\t\thsl(0, 0%, 100%);\n\t--ck-color-base-border: \t\t\t\t\t\t\t\t\thsl(220, 6%, 81%);\n\t--ck-color-base-action: \t\t\t\t\t\t\t\t\thsl(104, 50.2%, 42.5%);\n\t--ck-color-base-focus: \t\t\t\t\t\t\t\t\t\thsl(209, 92%, 70%);\n\t--ck-color-base-text: \t\t\t\t\t\t\t\t\t\thsl(0, 0%, 20%);\n\t--ck-color-base-active: \t\t\t\t\t\t\t\t\thsl(218.1, 100%, 58%);\n\t--ck-color-base-active-focus:\t\t\t\t\t\t\t\thsl(218.2, 100%, 52.5%);\n\t--ck-color-base-error:\t\t\t\t\t\t\t\t\t\thsl(15, 100%, 43%);\n\n\t/* -- Generic colors ------------------------------------------------------------------------ */\n\n\t--ck-color-focus-border-coordinates: \t\t\t\t\t\t218, 81.8%, 56.9%;\n\t--ck-color-focus-border: \t\t\t\t\t\t\t\t\thsl(var(--ck-color-focus-border-coordinates));\n\t--ck-color-focus-outer-shadow:\t\t\t\t\t\t\t\thsl(212.4, 89.3%, 89%);\n\t--ck-color-focus-disabled-shadow:\t\t\t\t\t\t\thsla(209, 90%, 72%,.3);\n\t--ck-color-focus-error-shadow:\t\t\t\t\t\t\t\thsla(9,100%,56%,.3);\n\t--ck-color-text: \t\t\t\t\t\t\t\t\t\t\tvar(--ck-color-base-text);\n\t--ck-color-shadow-drop: \t\t\t\t\t\t\t\t\thsla(0, 0%, 0%, 0.15);\n\t--ck-color-shadow-drop-active:\t\t\t\t\t\t\t\thsla(0, 0%, 0%, 0.2);\n\t--ck-color-shadow-inner: \t\t\t\t\t\t\t\t\thsla(0, 0%, 0%, 0.1);\n\n\t/* -- Buttons ------------------------------------------------------------------------------- */\n\n\t--ck-color-button-default-background: \t\t\t\t\t\ttransparent;\n\t--ck-color-button-default-hover-background: \t\t\t\thsl(0, 0%, 94.1%);\n\t--ck-color-button-default-active-background: \t\t\t\thsl(0, 0%, 94.1%);\n\t--ck-color-button-default-disabled-background: \t\t\t\ttransparent;\n\n\t--ck-color-button-on-background: \t\t\t\t\t\t\thsl(212, 100%, 97.1%);\n\t--ck-color-button-on-hover-background: \t\t\t\t\t\thsl(211.7, 100%, 92.9%);\n\t--ck-color-button-on-active-background: \t\t\t\t\thsl(211.7, 100%, 92.9%);\n\t--ck-color-button-on-disabled-background: \t\t\t\t\thsl(211, 15%, 95%);\n\t--ck-color-button-on-color:\t\t\t\t\t\t\t\t\thsl(218.1, 100%, 58%);\n\n\n\t--ck-color-button-action-background: \t\t\t\t\t\tvar(--ck-color-base-action);\n\t--ck-color-button-action-hover-background: \t\t\t\t\thsl(104, 53.2%, 40.2%);\n\t--ck-color-button-action-active-background: \t\t\t\thsl(104, 53.2%, 40.2%);\n\t--ck-color-button-action-disabled-background: \t\t\t\thsl(104, 44%, 58%);\n\t--ck-color-button-action-text: \t\t\t\t\t\t\t\tvar(--ck-color-base-background);\n\n\t--ck-color-button-save: \t\t\t\t\t\t\t\t\thsl(120, 100%, 27%);\n\t--ck-color-button-cancel: \t\t\t\t\t\t\t\t\thsl(15, 100%, 43%);\n\n\t--ck-color-switch-button-off-background:\t\t\t\t\thsl(0, 0%, 57.6%);\n\t--ck-color-switch-button-off-hover-background:\t\t\t\thsl(0, 0%, 49%);\n\t--ck-color-switch-button-on-background:\t\t\t\t\t\tvar(--ck-color-button-action-background);\n\t--ck-color-switch-button-on-hover-background:\t\t\t\thsl(104, 53.2%, 40.2%);\n\t--ck-color-switch-button-inner-background:\t\t\t\t\tvar(--ck-color-base-background);\n\t--ck-color-switch-button-inner-shadow:\t\t\t\t\t\thsla(0, 0%, 0%, 0.1);\n\n\t/* -- Dropdown ------------------------------------------------------------------------------ */\n\n\t--ck-color-dropdown-panel-background: \t\t\t\t\t\tvar(--ck-color-base-background);\n\t--ck-color-dropdown-panel-border: \t\t\t\t\t\t\tvar(--ck-color-base-border);\n\n\t/* -- Input --------------------------------------------------------------------------------- */\n\n\t--ck-color-input-background: \t\t\t\t\t\t\t\tvar(--ck-color-base-background);\n\t--ck-color-input-border: \t\t\t\t\t\t\t\t\tvar(--ck-color-base-border);\n\t--ck-color-input-error-border:\t\t\t\t\t\t\t\tvar(--ck-color-base-error);\n\t--ck-color-input-text: \t\t\t\t\t\t\t\t\t\tvar(--ck-color-base-text);\n\t--ck-color-input-disabled-background: \t\t\t\t\t\thsl(0, 0%, 95%);\n\t--ck-color-input-disabled-border: \t\t\t\t\t\t\tvar(--ck-color-base-border);\n\t--ck-color-input-disabled-text: \t\t\t\t\t\t\thsl(0, 0%, 46%);\n\n\t/* -- List ---------------------------------------------------------------------------------- */\n\n\t--ck-color-list-background: \t\t\t\t\t\t\t\tvar(--ck-color-base-background);\n\t--ck-color-list-button-hover-background: \t\t\t\t\tvar(--ck-color-button-default-hover-background);\n\t--ck-color-list-button-on-background: \t\t\t\t\t\tvar(--ck-color-button-on-color);\n\t--ck-color-list-button-on-background-focus: \t\t\t\tvar(--ck-color-button-on-color);\n\t--ck-color-list-button-on-text:\t\t\t\t\t\t\t\tvar(--ck-color-base-background);\n\n\t/* -- Panel --------------------------------------------------------------------------------- */\n\n\t--ck-color-panel-background: \t\t\t\t\t\t\t\tvar(--ck-color-base-background);\n\t--ck-color-panel-border: \t\t\t\t\t\t\t\t\tvar(--ck-color-base-border);\n\n\t/* -- Toolbar ------------------------------------------------------------------------------- */\n\n\t--ck-color-toolbar-background: \t\t\t\t\t\t\t\tvar(--ck-color-base-background);\n\t--ck-color-toolbar-border: \t\t\t\t\t\t\t\t\tvar(--ck-color-base-border);\n\n\t/* -- Tooltip ------------------------------------------------------------------------------- */\n\n\t--ck-color-tooltip-background: \t\t\t\t\t\t\t\tvar(--ck-color-base-text);\n\t--ck-color-tooltip-text: \t\t\t\t\t\t\t\t\tvar(--ck-color-base-background);\n\n\t/* -- Engine -------------------------------------------------------------------------------- */\n\n\t--ck-color-engine-placeholder-text: \t\t\t\t\t\thsl(0, 0%, 44%);\n\n\t/* -- Upload -------------------------------------------------------------------------------- */\n\n\t--ck-color-upload-bar-background:\t\t \t\t\t\t\thsl(209, 92%, 70%);\n\n\t/* -- Link -------------------------------------------------------------------------------- */\n\n\t--ck-color-link-default:\t\t\t\t\t\t\t\t\thsl(240, 100%, 47%);\n\t--ck-color-link-selected-background:\t\t\t\t\t\thsla(201, 100%, 56%, 0.1);\n\t--ck-color-link-fake-selection:\t\t\t\t\t\t\t\thsla(201, 100%, 56%, 0.3);\n\n\t/* -- Search result highlight ---------------------------------------------------------------- */\n\n\t--ck-color-highlight-background:\t\t\t\t\t\t\thsl(60, 100%, 50%)\n}\n","/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n:root {\n\t/**\n\t * An opacity value of disabled UI item.\n\t */\n\t--ck-disabled-opacity: .5;\n}\n","/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n:root {\n\t/**\n\t * The geometry of the of focused element's outer shadow.\n\t */\n\t--ck-focus-outer-shadow-geometry: 0 0 0 3px;\n\n\t/**\n\t * A visual style of focused element's outer shadow.\n\t */\n\t--ck-focus-outer-shadow: var(--ck-focus-outer-shadow-geometry) var(--ck-color-focus-outer-shadow);\n\n\t/**\n\t * A visual style of focused element's outer shadow (when disabled).\n\t */\n\t--ck-focus-disabled-outer-shadow: var(--ck-focus-outer-shadow-geometry) var(--ck-color-focus-disabled-shadow);\n\n\t/**\n\t * A visual style of focused element's outer shadow (when has errors).\n\t */\n\t--ck-focus-error-outer-shadow: var(--ck-focus-outer-shadow-geometry) var(--ck-color-focus-error-shadow);\n\n\t/**\n\t * A visual style of focused element's border or outline.\n\t */\n\t--ck-focus-ring: 1px solid var(--ck-color-focus-border);\n}\n","/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n:root {\n\t--ck-font-size-base: 13px;\n\t--ck-line-height-base: 1.84615;\n\t--ck-font-face: Helvetica, Arial, Tahoma, Verdana, Sans-Serif;\n\n\t--ck-font-size-tiny: 0.7em;\n\t--ck-font-size-small: 0.75em;\n\t--ck-font-size-normal: 1em;\n\t--ck-font-size-big: 1.4em;\n\t--ck-font-size-large: 1.8em;\n}\n",'/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n:root {\n\t/* This is super-important. This is **manually** adjusted so a button without an icon\n\tis never smaller than a button with icon, additionally making sure that text-less buttons\n\tare perfect squares. The value is also shared by other components which should stay "in-line"\n\twith buttons. */\n\t--ck-ui-component-min-height: 2.3em;\n}\n\n/**\n * Resets an element, ignoring its children.\n */\n.ck.ck-reset,\n.ck.ck-reset_all,\n.ck-reset_all *:not(.ck-reset_all-excluded *) {\n\t/* Do not include inheritable rules here. */\n\tmargin: 0;\n\tpadding: 0;\n\tborder: 0;\n\tbackground: transparent;\n\ttext-decoration: none;\n\tvertical-align: middle;\n\ttransition: none;\n\n\t/* https://github.com/ckeditor/ckeditor5-theme-lark/issues/105 */\n\tword-wrap: break-word;\n}\n\n/**\n * Resets an element AND its children.\n */\n.ck.ck-reset_all,\n.ck-reset_all *:not(.ck-reset_all-excluded *) {\n\t/* These are rule inherited by all children elements. */\n\tborder-collapse: collapse;\n\tfont: normal normal normal var(--ck-font-size-base)/var(--ck-line-height-base) var(--ck-font-face);\n\tcolor: var(--ck-color-text);\n\ttext-align: left;\n\twhite-space: nowrap;\n\tcursor: auto;\n\tfloat: none;\n}\n\n.ck-reset_all {\n\t& .ck-rtl *:not(.ck-reset_all-excluded *) {\n\t\ttext-align: right;\n\t}\n\n\t& iframe:not(.ck-reset_all-excluded *) {\n\t\t/* For IE */\n\t\tvertical-align: inherit;\n\t}\n\n\t& textarea:not(.ck-reset_all-excluded *) {\n\t\twhite-space: pre-wrap;\n\t}\n\n\t& textarea:not(.ck-reset_all-excluded *),\n\t& input[type="text"]:not(.ck-reset_all-excluded *),\n\t& input[type="password"]:not(.ck-reset_all-excluded *) {\n\t\tcursor: text;\n\t}\n\n\t& textarea[disabled]:not(.ck-reset_all-excluded *),\n\t& input[type="text"][disabled]:not(.ck-reset_all-excluded *),\n\t& input[type="password"][disabled]:not(.ck-reset_all-excluded *) {\n\t\tcursor: default;\n\t}\n\n\t& fieldset:not(.ck-reset_all-excluded *) {\n\t\tpadding: 10px;\n\t\tborder: 2px groove hsl(255, 7%, 88%);\n\t}\n\n\t& button:not(.ck-reset_all-excluded *)::-moz-focus-inner {\n\t\t/* See http://stackoverflow.com/questions/5517744/remove-extra-button-spacing-padding-in-firefox */\n\t\tpadding: 0;\n\t\tborder: 0\n\t}\n}\n\n/**\n * Default UI rules for RTL languages.\n */\n.ck[dir="rtl"],\n.ck[dir="rtl"] .ck {\n\ttext-align: right;\n}\n',"/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * Default border-radius value.\n */\n:root{\n\t--ck-border-radius: 2px;\n}\n","/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n:root {\n\t/**\n\t * A visual style of element's inner shadow (i.e. input).\n\t */\n\t--ck-inner-shadow: 2px 2px 3px var(--ck-color-shadow-inner) inset;\n\n\t/**\n\t * A visual style of element's drop shadow (i.e. panel).\n\t */\n\t--ck-drop-shadow: 0 1px 2px 1px var(--ck-color-shadow-drop);\n\n\t/**\n\t * A visual style of element's active shadow (i.e. comment or suggestion).\n\t */\n\t--ck-drop-shadow-active: 0 3px 6px 1px var(--ck-color-shadow-drop-active);\n}\n","/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n:root {\n\t--ck-spacing-unit: \t\t\t\t\t\t0.6em;\n\t--ck-spacing-large: \t\t\t\t\tcalc(var(--ck-spacing-unit) * 1.5);\n\t--ck-spacing-standard: \t\t\t\t\tvar(--ck-spacing-unit);\n\t--ck-spacing-medium: \t\t\t\t\tcalc(var(--ck-spacing-unit) * 0.8);\n\t--ck-spacing-small: \t\t\t\t\tcalc(var(--ck-spacing-unit) * 0.5);\n\t--ck-spacing-tiny: \t\t\t\t\t\tcalc(var(--ck-spacing-unit) * 0.3);\n\t--ck-spacing-extra-tiny: \t\t\t\tcalc(var(--ck-spacing-unit) * 0.16);\n}\n"],sourceRoot:""}]);const l=i},6507:(e,t,o)=>{o.d(t,{Z:()=>l});var n=o(4015),a=o.n(n),r=o(3645),i=o.n(r)()(a());i.push([e.id,":root{--ck-color-resizer:var(--ck-color-focus-border);--ck-color-resizer-tooltip-background:#262626;--ck-color-resizer-tooltip-text:#f2f2f2;--ck-resizer-border-radius:var(--ck-border-radius);--ck-resizer-tooltip-offset:10px;--ck-resizer-tooltip-height:calc(var(--ck-spacing-small)*2 + 10px)}.ck .ck-widget,.ck .ck-widget.ck-widget_with-selection-handle{position:relative}.ck .ck-widget.ck-widget_with-selection-handle .ck-widget__selection-handle{position:absolute}.ck .ck-widget.ck-widget_with-selection-handle .ck-widget__selection-handle .ck-icon{display:block}.ck .ck-widget.ck-widget_with-selection-handle.ck-widget_selected>.ck-widget__selection-handle,.ck .ck-widget.ck-widget_with-selection-handle:hover>.ck-widget__selection-handle{visibility:visible}.ck .ck-size-view{background:var(--ck-color-resizer-tooltip-background);border:1px solid var(--ck-color-resizer-tooltip-text);border-radius:var(--ck-resizer-border-radius);color:var(--ck-color-resizer-tooltip-text);display:block;font-size:var(--ck-font-size-tiny);height:var(--ck-resizer-tooltip-height);line-height:var(--ck-resizer-tooltip-height);padding:0 var(--ck-spacing-small)}.ck .ck-size-view.ck-orientation-above-center,.ck .ck-size-view.ck-orientation-bottom-left,.ck .ck-size-view.ck-orientation-bottom-right,.ck .ck-size-view.ck-orientation-top-left,.ck .ck-size-view.ck-orientation-top-right{position:absolute}.ck .ck-size-view.ck-orientation-top-left{left:var(--ck-resizer-tooltip-offset);top:var(--ck-resizer-tooltip-offset)}.ck .ck-size-view.ck-orientation-top-right{right:var(--ck-resizer-tooltip-offset);top:var(--ck-resizer-tooltip-offset)}.ck .ck-size-view.ck-orientation-bottom-right{bottom:var(--ck-resizer-tooltip-offset);right:var(--ck-resizer-tooltip-offset)}.ck .ck-size-view.ck-orientation-bottom-left{bottom:var(--ck-resizer-tooltip-offset);left:var(--ck-resizer-tooltip-offset)}.ck .ck-size-view.ck-orientation-above-center{left:50%;top:calc(var(--ck-resizer-tooltip-height)*-1);transform:translate(-50%)}:root{--ck-widget-outline-thickness:3px;--ck-widget-handler-icon-size:16px;--ck-widget-handler-animation-duration:200ms;--ck-widget-handler-animation-curve:ease;--ck-color-widget-blurred-border:#dedede;--ck-color-widget-hover-border:#ffc83d;--ck-color-widget-editable-focus-background:var(--ck-color-base-background);--ck-color-widget-drag-handler-icon-color:var(--ck-color-base-background)}.ck .ck-widget{outline-color:transparent;outline-style:solid;outline-width:var(--ck-widget-outline-thickness);transition:outline-color var(--ck-widget-handler-animation-duration) var(--ck-widget-handler-animation-curve)}.ck .ck-widget.ck-widget_selected,.ck .ck-widget.ck-widget_selected:hover{outline:var(--ck-widget-outline-thickness) solid var(--ck-color-focus-border)}.ck .ck-widget:hover{outline-color:var(--ck-color-widget-hover-border)}.ck .ck-editor__nested-editable{border:1px solid transparent}.ck .ck-editor__nested-editable.ck-editor__nested-editable_focused,.ck .ck-editor__nested-editable:focus{background-color:var(--ck-color-widget-editable-focus-background);border:var(--ck-focus-ring);box-shadow:var(--ck-inner-shadow),0 0;outline:none}.ck .ck-widget.ck-widget_with-selection-handle .ck-widget__selection-handle{background-color:transparent;border-radius:var(--ck-border-radius) var(--ck-border-radius) 0 0;box-sizing:border-box;left:calc(0px - var(--ck-widget-outline-thickness));opacity:0;padding:4px;top:0;transform:translateY(-100%);transition:background-color var(--ck-widget-handler-animation-duration) var(--ck-widget-handler-animation-curve),visibility var(--ck-widget-handler-animation-duration) var(--ck-widget-handler-animation-curve),opacity var(--ck-widget-handler-animation-duration) var(--ck-widget-handler-animation-curve)}.ck .ck-widget.ck-widget_with-selection-handle .ck-widget__selection-handle .ck-icon{color:var(--ck-color-widget-drag-handler-icon-color);height:var(--ck-widget-handler-icon-size);width:var(--ck-widget-handler-icon-size)}.ck .ck-widget.ck-widget_with-selection-handle .ck-widget__selection-handle .ck-icon .ck-icon__selected-indicator{opacity:0;transition:opacity .3s var(--ck-widget-handler-animation-curve)}.ck .ck-widget.ck-widget_with-selection-handle .ck-widget__selection-handle:hover .ck-icon .ck-icon__selected-indicator{opacity:1}.ck .ck-widget.ck-widget_with-selection-handle:hover>.ck-widget__selection-handle{background-color:var(--ck-color-widget-hover-border);opacity:1}.ck .ck-widget.ck-widget_with-selection-handle.ck-widget_selected:hover>.ck-widget__selection-handle,.ck .ck-widget.ck-widget_with-selection-handle.ck-widget_selected>.ck-widget__selection-handle{background-color:var(--ck-color-focus-border);opacity:1}.ck .ck-widget.ck-widget_with-selection-handle.ck-widget_selected:hover>.ck-widget__selection-handle .ck-icon .ck-icon__selected-indicator,.ck .ck-widget.ck-widget_with-selection-handle.ck-widget_selected>.ck-widget__selection-handle .ck-icon .ck-icon__selected-indicator{opacity:1}.ck[dir=rtl] .ck-widget.ck-widget_with-selection-handle .ck-widget__selection-handle{left:auto;right:calc(0px - var(--ck-widget-outline-thickness))}.ck.ck-editor__editable.ck-read-only .ck-widget{transition:none}.ck.ck-editor__editable.ck-read-only .ck-widget:not(.ck-widget_selected){--ck-widget-outline-thickness:0px}.ck.ck-editor__editable.ck-read-only .ck-widget.ck-widget_with-selection-handle .ck-widget__selection-handle,.ck.ck-editor__editable.ck-read-only .ck-widget.ck-widget_with-selection-handle .ck-widget__selection-handle:hover{background:var(--ck-color-widget-blurred-border)}.ck.ck-editor__editable.ck-blurred .ck-widget.ck-widget_selected,.ck.ck-editor__editable.ck-blurred .ck-widget.ck-widget_selected:hover{outline-color:var(--ck-color-widget-blurred-border)}.ck.ck-editor__editable.ck-blurred .ck-widget.ck-widget_selected.ck-widget_with-selection-handle:hover>.ck-widget__selection-handle,.ck.ck-editor__editable.ck-blurred .ck-widget.ck-widget_selected.ck-widget_with-selection-handle:hover>.ck-widget__selection-handle:hover,.ck.ck-editor__editable.ck-blurred .ck-widget.ck-widget_selected.ck-widget_with-selection-handle>.ck-widget__selection-handle,.ck.ck-editor__editable.ck-blurred .ck-widget.ck-widget_selected.ck-widget_with-selection-handle>.ck-widget__selection-handle:hover{background:var(--ck-color-widget-blurred-border)}.ck.ck-editor__editable blockquote>.ck-widget.ck-widget_with-selection-handle:first-child,.ck.ck-editor__editable>.ck-widget.ck-widget_with-selection-handle:first-child{margin-top:calc(1em + var(--ck-widget-handler-icon-size))}","",{version:3,sources:["webpack://./node_modules/@ckeditor/ckeditor5-widget/theme/widget.css","webpack://./node_modules/@ckeditor/ckeditor5-theme-lark/theme/ckeditor5-widget/widget.css","webpack://./node_modules/@ckeditor/ckeditor5-theme-lark/theme/mixins/_focus.css","webpack://./node_modules/@ckeditor/ckeditor5-theme-lark/theme/mixins/_shadow.css"],names:[],mappings:"AAKA,MACC,+CAAgD,CAChD,6CAAsD,CACtD,uCAAgD,CAEhD,kDAAmD,CACnD,gCAAiC,CACjC,kEACD,CAOA,8DAEC,iBAqBD,CAnBC,4EACC,iBAOD,CALC,qFAGC,aACD,CASD,iLACC,kBACD,CAGD,kBACC,qDAAsD,CAEtD,qDAAsD,CACtD,6CAA8C,CAF9C,0CAA2C,CAI3C,aAAc,CADd,kCAAmC,CAGnC,uCAAwC,CACxC,4CAA6C,CAF7C,iCAsCD,CAlCC,8NAKC,iBACD,CAEA,0CAEC,qCAAsC,CADtC,oCAED,CAEA,2CAEC,sCAAuC,CADvC,oCAED,CAEA,8CACC,uCAAwC,CACxC,sCACD,CAEA,6CACC,uCAAwC,CACxC,qCACD,CAGA,8CAEC,QAAS,CADT,6CAAgD,CAEhD,yBACD,CCjFD,MACC,iCAAkC,CAClC,kCAAmC,CACnC,4CAA6C,CAC7C,wCAAyC,CAEzC,wCAAiD,CACjD,sCAAkD,CAClD,2EAA4E,CAC5E,yEACD,CAEA,eAGC,yBAA0B,CAD1B,mBAAoB,CADpB,gDAAiD,CAGjD,6GAUD,CARC,0EAEC,6EACD,CAEA,qBACC,iDACD,CAGD,gCACC,4BAWD,CAPC,yGAKC,iEAAkE,CCnCnE,2BAA2B,CCF3B,qCAA8B,CDC9B,YDqCA,CAIA,4EAKC,4BAA6B,CAa7B,iEAAkE,CAhBlE,qBAAsB,CAoBtB,mDAAoD,CAhBpD,SAAU,CALV,WAAY,CAsBZ,KAAM,CAFN,2BAA4B,CAT5B,6SAgCD,CAnBC,qFAIC,oDAAqD,CADrD,yCAA0C,CAD1C,wCAWD,CANC,kHACC,SAAU,CAGV,+DACD,CAID,wHACC,SACD,CAID,kFAEC,oDAAqD,CADrD,SAED,CAKC,oMAEC,6CAA8C,CAD9C,SAOD,CAHC,gRACC,SACD,CAOH,qFACC,SAAU,CACV,oDACD,CAGA,gDAEC,eAkBD,CAhBC,yEAOC,iCACD,CAGC,gOAEC,gDACD,CAOD,wIAEC,mDAQD,CALE,ghBAEC,gDACD,CAKH,yKAOC,yDACD",sourcesContent:["/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n:root {\n\t--ck-color-resizer: var(--ck-color-focus-border);\n\t--ck-color-resizer-tooltip-background: hsl(0, 0%, 15%);\n\t--ck-color-resizer-tooltip-text: hsl(0, 0%, 95%);\n\n\t--ck-resizer-border-radius: var(--ck-border-radius);\n\t--ck-resizer-tooltip-offset: 10px;\n\t--ck-resizer-tooltip-height: calc(var(--ck-spacing-small) * 2 + 10px);\n}\n\n.ck .ck-widget {\n\t/* This is neccessary for type around UI to be positioned properly. */\n\tposition: relative;\n}\n\n.ck .ck-widget.ck-widget_with-selection-handle {\n\t/* Make the widget wrapper a relative positioning container for the drag handle. */\n\tposition: relative;\n\n\t& .ck-widget__selection-handle {\n\t\tposition: absolute;\n\n\t\t& .ck-icon {\n\t\t\t/* Make sure the icon in not a subject to font-size or line-height to avoid\n\t\t\tunnecessary spacing around it. */\n\t\t\tdisplay: block;\n\t\t}\n\t}\n\n\t/* Show the selection handle on mouse hover over the widget, but not for nested widgets. */\n\t&:hover > .ck-widget__selection-handle {\n\t\tvisibility: visible;\n\t}\n\n\t/* Show the selection handle when the widget is selected, but not for nested widgets. */\n\t&.ck-widget_selected > .ck-widget__selection-handle {\n\t\tvisibility: visible;\n\t}\n}\n\n.ck .ck-size-view {\n\tbackground: var(--ck-color-resizer-tooltip-background);\n\tcolor: var(--ck-color-resizer-tooltip-text);\n\tborder: 1px solid var(--ck-color-resizer-tooltip-text);\n\tborder-radius: var(--ck-resizer-border-radius);\n\tfont-size: var(--ck-font-size-tiny);\n\tdisplay: block;\n\tpadding: 0 var(--ck-spacing-small);\n\theight: var(--ck-resizer-tooltip-height);\n\tline-height: var(--ck-resizer-tooltip-height);\n\n\t&.ck-orientation-top-left,\n\t&.ck-orientation-top-right,\n\t&.ck-orientation-bottom-right,\n\t&.ck-orientation-bottom-left,\n\t&.ck-orientation-above-center {\n\t\tposition: absolute;\n\t}\n\n\t&.ck-orientation-top-left {\n\t\ttop: var(--ck-resizer-tooltip-offset);\n\t\tleft: var(--ck-resizer-tooltip-offset);\n\t}\n\n\t&.ck-orientation-top-right {\n\t\ttop: var(--ck-resizer-tooltip-offset);\n\t\tright: var(--ck-resizer-tooltip-offset);\n\t}\n\n\t&.ck-orientation-bottom-right {\n\t\tbottom: var(--ck-resizer-tooltip-offset);\n\t\tright: var(--ck-resizer-tooltip-offset);\n\t}\n\n\t&.ck-orientation-bottom-left {\n\t\tbottom: var(--ck-resizer-tooltip-offset);\n\t\tleft: var(--ck-resizer-tooltip-offset);\n\t}\n\n\t/* Class applied if the widget is too small to contain the size label */\n\t&.ck-orientation-above-center {\n\t\ttop: calc(var(--ck-resizer-tooltip-height) * -1);\n\t\tleft: 50%;\n\t\ttransform: translate(-50%);\n\t}\n}\n",'/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "../mixins/_focus.css";\n@import "../mixins/_shadow.css";\n\n:root {\n\t--ck-widget-outline-thickness: 3px;\n\t--ck-widget-handler-icon-size: 16px;\n\t--ck-widget-handler-animation-duration: 200ms;\n\t--ck-widget-handler-animation-curve: ease;\n\n\t--ck-color-widget-blurred-border: hsl(0, 0%, 87%);\n\t--ck-color-widget-hover-border: hsl(43, 100%, 62%);\n\t--ck-color-widget-editable-focus-background: var(--ck-color-base-background);\n\t--ck-color-widget-drag-handler-icon-color: var(--ck-color-base-background);\n}\n\n.ck .ck-widget {\n\toutline-width: var(--ck-widget-outline-thickness);\n\toutline-style: solid;\n\toutline-color: transparent;\n\ttransition: outline-color var(--ck-widget-handler-animation-duration) var(--ck-widget-handler-animation-curve);\n\n\t&.ck-widget_selected,\n\t&.ck-widget_selected:hover {\n\t\toutline: var(--ck-widget-outline-thickness) solid var(--ck-color-focus-border);\n\t}\n\n\t&:hover {\n\t\toutline-color: var(--ck-color-widget-hover-border);\n\t}\n}\n\n.ck .ck-editor__nested-editable {\n\tborder: 1px solid transparent;\n\n\t/* The :focus style is applied before .ck-editor__nested-editable_focused class is rendered in the view.\n\tThese styles show a different border for a blink of an eye, so `:focus` need to have same styles applied. */\n\t&.ck-editor__nested-editable_focused,\n\t&:focus {\n\t\t@mixin ck-focus-ring;\n\t\t@mixin ck-box-shadow var(--ck-inner-shadow);\n\n\t\tbackground-color: var(--ck-color-widget-editable-focus-background);\n\t}\n}\n\n.ck .ck-widget.ck-widget_with-selection-handle {\n\t& .ck-widget__selection-handle {\n\t\tpadding: 4px;\n\t\tbox-sizing: border-box;\n\n\t\t/* Background and opacity will be animated as the handler shows up or the widget gets selected. */\n\t\tbackground-color: transparent;\n\t\topacity: 0;\n\n\t\t/* Transition:\n\t\t * background-color for the .ck-widget_selected state change,\n\t\t * visibility for hiding the handler,\n\t\t * opacity for the proper look of the icon when the handler disappears. */\n\t\ttransition:\n\t\t\tbackground-color var(--ck-widget-handler-animation-duration) var(--ck-widget-handler-animation-curve),\n\t\t\tvisibility var(--ck-widget-handler-animation-duration) var(--ck-widget-handler-animation-curve),\n\t\t\topacity var(--ck-widget-handler-animation-duration) var(--ck-widget-handler-animation-curve);\n\n\t\t/* Make only top corners round. */\n\t\tborder-radius: var(--ck-border-radius) var(--ck-border-radius) 0 0;\n\n\t\t/* Place the drag handler outside the widget wrapper. */\n\t\ttransform: translateY(-100%);\n\t\tleft: calc(0px - var(--ck-widget-outline-thickness));\n\t\ttop: 0;\n\n\t\t& .ck-icon {\n\t\t\t/* Make sure the dimensions of the icon are independent of the fon-size of the content. */\n\t\t\twidth: var(--ck-widget-handler-icon-size);\n\t\t\theight: var(--ck-widget-handler-icon-size);\n\t\t\tcolor: var(--ck-color-widget-drag-handler-icon-color);\n\n\t\t\t/* The "selected" part of the icon is invisible by default */\n\t\t\t& .ck-icon__selected-indicator {\n\t\t\t\topacity: 0;\n\n\t\t\t\t/* Note: The animation is longer on purpose. Simply feels better. */\n\t\t\t\ttransition: opacity 300ms var(--ck-widget-handler-animation-curve);\n\t\t\t}\n\t\t}\n\n\t\t/* Advertise using the look of the icon that once clicked the handler, the widget will be selected. */\n\t\t&:hover .ck-icon .ck-icon__selected-indicator {\n\t\t\topacity: 1;\n\t\t}\n\t}\n\n\t/* Show the selection handler on mouse hover over the widget, but not for nested widgets. */\n\t&:hover > .ck-widget__selection-handle {\n\t\topacity: 1;\n\t\tbackground-color: var(--ck-color-widget-hover-border);\n\t}\n\n\t/* Show the selection handler when the widget is selected, but not for nested widgets. */\n\t&.ck-widget_selected,\n\t&.ck-widget_selected:hover {\n\t\t& > .ck-widget__selection-handle {\n\t\t\topacity: 1;\n\t\t\tbackground-color: var(--ck-color-focus-border);\n\n\t\t\t/* When the widget is selected, notify the user using the proper look of the icon. */\n\t\t\t& .ck-icon .ck-icon__selected-indicator {\n\t\t\t\topacity: 1;\n\t\t\t}\n\t\t}\n\t}\n}\n\n/* In a RTL environment, align the selection handler to the right side of the widget */\n/* stylelint-disable-next-line no-descending-specificity */\n.ck[dir="rtl"] .ck-widget.ck-widget_with-selection-handle .ck-widget__selection-handle {\n\tleft: auto;\n\tright: calc(0px - var(--ck-widget-outline-thickness));\n}\n\n/* https://github.com/ckeditor/ckeditor5/issues/6415 */\n.ck.ck-editor__editable.ck-read-only .ck-widget {\n\t/* Prevent the :hover outline from showing up because of the used outline-color transition. */\n\ttransition: none;\n\n\t&:not(.ck-widget_selected) {\n\t\t/* Disable visual effects of hover/active widget when CKEditor is in readOnly mode.\n\t\t * See: https://github.com/ckeditor/ckeditor5/issues/1261\n\t\t *\n\t\t * Leave the unit because this custom property is used in calc() by other features.\n\t\t * See: https://github.com/ckeditor/ckeditor5/issues/6775\n\t\t */\n\t\t--ck-widget-outline-thickness: 0px;\n\t}\n\n\t&.ck-widget_with-selection-handle {\n\t\t& .ck-widget__selection-handle,\n\t\t& .ck-widget__selection-handle:hover {\n\t\t\tbackground: var(--ck-color-widget-blurred-border);\n\t\t}\n\t}\n}\n\n/* Style the widget when it\'s selected but the editable it belongs to lost focus. */\n/* stylelint-disable-next-line no-descending-specificity */\n.ck.ck-editor__editable.ck-blurred .ck-widget {\n\t&.ck-widget_selected,\n\t&.ck-widget_selected:hover {\n\t\toutline-color: var(--ck-color-widget-blurred-border);\n\n\t\t&.ck-widget_with-selection-handle {\n\t\t\t& > .ck-widget__selection-handle,\n\t\t\t& > .ck-widget__selection-handle:hover {\n\t\t\t\tbackground: var(--ck-color-widget-blurred-border);\n\t\t\t}\n\t\t}\n\t}\n}\n\n.ck.ck-editor__editable > .ck-widget.ck-widget_with-selection-handle:first-child,\n.ck.ck-editor__editable blockquote > .ck-widget.ck-widget_with-selection-handle:first-child {\n\t/* Do not crop selection handler if a widget is a first-child in the blockquote or in the root editable.\n\tIn fact, anything with overflow: hidden.\n\thttps://github.com/ckeditor/ckeditor5-block-quote/issues/28\n\thttps://github.com/ckeditor/ckeditor5-widget/issues/44\n\thttps://github.com/ckeditor/ckeditor5-widget/issues/66 */\n\tmargin-top: calc(1em + var(--ck-widget-handler-icon-size));\n}\n',"/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * A visual style of focused element's border.\n */\n@define-mixin ck-focus-ring {\n\t/* Disable native outline. */\n\toutline: none;\n\tborder: var(--ck-focus-ring)\n}\n","/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * A helper to combine multiple shadows.\n */\n@define-mixin ck-box-shadow $shadowA, $shadowB: 0 0 {\n\tbox-shadow: $shadowA, $shadowB;\n}\n\n/**\n * Gives an element a drop shadow so it looks like a floating panel.\n */\n@define-mixin ck-drop-shadow {\n\t@mixin ck-box-shadow var(--ck-drop-shadow);\n}\n"],sourceRoot:""}]);const l=i},2263:(e,t,o)=>{o.d(t,{Z:()=>l});var n=o(4015),a=o.n(n),r=o(3645),i=o.n(r)()(a());i.push([e.id,".ck .ck-widget_with-resizer{position:relative}.ck .ck-widget__resizer{display:none;left:0;pointer-events:none;position:absolute;top:0}.ck-focused .ck-widget_with-resizer.ck-widget_selected>.ck-widget__resizer{display:block}.ck .ck-widget__resizer__handle{pointer-events:all;position:absolute}.ck .ck-widget__resizer__handle.ck-widget__resizer__handle-bottom-right,.ck .ck-widget__resizer__handle.ck-widget__resizer__handle-top-left{cursor:nwse-resize}.ck .ck-widget__resizer__handle.ck-widget__resizer__handle-bottom-left,.ck .ck-widget__resizer__handle.ck-widget__resizer__handle-top-right{cursor:nesw-resize}:root{--ck-resizer-size:10px;--ck-resizer-offset:calc(var(--ck-resizer-size)/-2 - 2px);--ck-resizer-border-width:1px}.ck .ck-widget__resizer{outline:1px solid var(--ck-color-resizer)}.ck .ck-widget__resizer__handle{background:var(--ck-color-focus-border);border:var(--ck-resizer-border-width) solid #fff;border-radius:var(--ck-resizer-border-radius);height:var(--ck-resizer-size);width:var(--ck-resizer-size)}.ck .ck-widget__resizer__handle.ck-widget__resizer__handle-top-left{left:var(--ck-resizer-offset);top:var(--ck-resizer-offset)}.ck .ck-widget__resizer__handle.ck-widget__resizer__handle-top-right{right:var(--ck-resizer-offset);top:var(--ck-resizer-offset)}.ck .ck-widget__resizer__handle.ck-widget__resizer__handle-bottom-right{bottom:var(--ck-resizer-offset);right:var(--ck-resizer-offset)}.ck .ck-widget__resizer__handle.ck-widget__resizer__handle-bottom-left{bottom:var(--ck-resizer-offset);left:var(--ck-resizer-offset)}","",{version:3,sources:["webpack://./node_modules/@ckeditor/ckeditor5-widget/theme/widgetresize.css","webpack://./node_modules/@ckeditor/ckeditor5-theme-lark/theme/ckeditor5-widget/widgetresize.css"],names:[],mappings:"AAKA,4BAEC,iBACD,CAEA,wBACC,YAAa,CAMb,MAAO,CAFP,mBAAoB,CAHpB,iBAAkB,CAMlB,KACD,CAGC,2EACC,aACD,CAGD,gCAIC,kBAAmB,CAHnB,iBAcD,CATC,4IAEC,kBACD,CAEA,4IAEC,kBACD,CCpCD,MACC,sBAAuB,CAGvB,yDAAiE,CACjE,6BACD,CAEA,wBACC,yCACD,CAEA,gCAGC,uCAAwC,CACxC,gDAA6D,CAC7D,6CAA8C,CAH9C,6BAA8B,CAD9B,4BAyBD,CAnBC,oEAEC,6BAA8B,CAD9B,4BAED,CAEA,qEAEC,8BAA+B,CAD/B,4BAED,CAEA,wEACC,+BAAgC,CAChC,8BACD,CAEA,uEACC,+BAAgC,CAChC,6BACD",sourcesContent:["/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck .ck-widget_with-resizer {\n\t/* Make the widget wrapper a relative positioning container for the drag handle. */\n\tposition: relative;\n}\n\n.ck .ck-widget__resizer {\n\tdisplay: none;\n\tposition: absolute;\n\n\t/* The wrapper itself should not interfere with the pointer device, only the handles should. */\n\tpointer-events: none;\n\n\tleft: 0;\n\ttop: 0;\n}\n\n.ck-focused .ck-widget_with-resizer.ck-widget_selected {\n\t& > .ck-widget__resizer {\n\t\tdisplay: block;\n\t}\n}\n\n.ck .ck-widget__resizer__handle {\n\tposition: absolute;\n\n\t/* Resizers are the only UI elements that should interfere with a pointer device. */\n\tpointer-events: all;\n\n\t&.ck-widget__resizer__handle-top-left,\n\t&.ck-widget__resizer__handle-bottom-right {\n\t\tcursor: nwse-resize;\n\t}\n\n\t&.ck-widget__resizer__handle-top-right,\n\t&.ck-widget__resizer__handle-bottom-left {\n\t\tcursor: nesw-resize;\n\t}\n}\n","/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n:root {\n\t--ck-resizer-size: 10px;\n\n\t/* Set the resizer with a 50% offset. */\n\t--ck-resizer-offset: calc( ( var(--ck-resizer-size) / -2 ) - 2px);\n\t--ck-resizer-border-width: 1px;\n}\n\n.ck .ck-widget__resizer {\n\toutline: 1px solid var(--ck-color-resizer);\n}\n\n.ck .ck-widget__resizer__handle {\n\twidth: var(--ck-resizer-size);\n\theight: var(--ck-resizer-size);\n\tbackground: var(--ck-color-focus-border);\n\tborder: var(--ck-resizer-border-width) solid hsl(0, 0%, 100%);\n\tborder-radius: var(--ck-resizer-border-radius);\n\n\t&.ck-widget__resizer__handle-top-left {\n\t\ttop: var(--ck-resizer-offset);\n\t\tleft: var(--ck-resizer-offset);\n\t}\n\n\t&.ck-widget__resizer__handle-top-right {\n\t\ttop: var(--ck-resizer-offset);\n\t\tright: var(--ck-resizer-offset);\n\t}\n\n\t&.ck-widget__resizer__handle-bottom-right {\n\t\tbottom: var(--ck-resizer-offset);\n\t\tright: var(--ck-resizer-offset);\n\t}\n\n\t&.ck-widget__resizer__handle-bottom-left {\n\t\tbottom: var(--ck-resizer-offset);\n\t\tleft: var(--ck-resizer-offset);\n\t}\n}\n"],sourceRoot:""}]);const l=i},5137:(e,t,o)=>{o.d(t,{Z:()=>l});var n=o(4015),a=o.n(n),r=o(3645),i=o.n(r)()(a());i.push([e.id,'.ck .ck-widget .ck-widget__type-around__button{display:block;overflow:hidden;position:absolute;z-index:var(--ck-z-default)}.ck .ck-widget .ck-widget__type-around__button svg{left:50%;position:absolute;top:50%;z-index:calc(var(--ck-z-default) + 2)}.ck .ck-widget .ck-widget__type-around__button.ck-widget__type-around__button_before{left:min(10%,30px);top:calc(var(--ck-widget-outline-thickness)*-.5);transform:translateY(-50%)}.ck .ck-widget .ck-widget__type-around__button.ck-widget__type-around__button_after{bottom:calc(var(--ck-widget-outline-thickness)*-.5);right:min(10%,30px);transform:translateY(50%)}.ck .ck-widget.ck-widget_selected>.ck-widget__type-around>.ck-widget__type-around__button:after,.ck .ck-widget>.ck-widget__type-around>.ck-widget__type-around__button:hover:after{content:"";display:block;left:1px;position:absolute;top:1px;z-index:calc(var(--ck-z-default) + 1)}.ck .ck-widget>.ck-widget__type-around>.ck-widget__type-around__fake-caret{display:none;left:0;position:absolute;right:0}.ck .ck-widget:hover>.ck-widget__type-around>.ck-widget__type-around__fake-caret{left:calc(var(--ck-widget-outline-thickness)*-1);right:calc(var(--ck-widget-outline-thickness)*-1)}.ck .ck-widget.ck-widget_type-around_show-fake-caret_before>.ck-widget__type-around>.ck-widget__type-around__fake-caret{display:block;top:calc(var(--ck-widget-outline-thickness)*-1 - 1px)}.ck .ck-widget.ck-widget_type-around_show-fake-caret_after>.ck-widget__type-around>.ck-widget__type-around__fake-caret{bottom:calc(var(--ck-widget-outline-thickness)*-1 - 1px);display:block}.ck.ck-editor__editable.ck-read-only .ck-widget__type-around,.ck.ck-editor__editable.ck-restricted-editing_mode_restricted .ck-widget__type-around,.ck.ck-editor__editable.ck-widget__type-around_disabled .ck-widget__type-around{display:none}:root{--ck-widget-type-around-button-size:20px;--ck-color-widget-type-around-button-active:var(--ck-color-focus-border);--ck-color-widget-type-around-button-hover:var(--ck-color-widget-hover-border);--ck-color-widget-type-around-button-blurred-editable:var(--ck-color-widget-blurred-border);--ck-color-widget-type-around-button-radar-start-alpha:0;--ck-color-widget-type-around-button-radar-end-alpha:.3;--ck-color-widget-type-around-button-icon:var(--ck-color-base-background)}.ck .ck-widget .ck-widget__type-around__button{background:var(--ck-color-widget-type-around-button);border-radius:100px;height:var(--ck-widget-type-around-button-size);opacity:0;pointer-events:none;transition:opacity var(--ck-widget-handler-animation-duration) var(--ck-widget-handler-animation-curve),background var(--ck-widget-handler-animation-duration) var(--ck-widget-handler-animation-curve);width:var(--ck-widget-type-around-button-size)}.ck .ck-widget .ck-widget__type-around__button svg{height:8px;margin-top:1px;transform:translate(-50%,-50%);transition:transform .5s ease;width:10px}.ck .ck-widget .ck-widget__type-around__button svg *{stroke-dasharray:10;stroke-dashoffset:0;fill:none;stroke:var(--ck-color-widget-type-around-button-icon);stroke-width:1.5px;stroke-linecap:round;stroke-linejoin:round}.ck .ck-widget .ck-widget__type-around__button svg line{stroke-dasharray:7}.ck .ck-widget .ck-widget__type-around__button:hover{animation:ck-widget-type-around-button-sonar 1s ease infinite}.ck .ck-widget .ck-widget__type-around__button:hover svg polyline{animation:ck-widget-type-around-arrow-dash 2s linear}.ck .ck-widget .ck-widget__type-around__button:hover svg line{animation:ck-widget-type-around-arrow-tip-dash 2s linear}.ck .ck-widget.ck-widget_selected>.ck-widget__type-around>.ck-widget__type-around__button,.ck .ck-widget:hover>.ck-widget__type-around>.ck-widget__type-around__button{opacity:1;pointer-events:auto}.ck .ck-widget:not(.ck-widget_selected)>.ck-widget__type-around>.ck-widget__type-around__button{background:var(--ck-color-widget-type-around-button-hover)}.ck .ck-widget.ck-widget_selected>.ck-widget__type-around>.ck-widget__type-around__button,.ck .ck-widget>.ck-widget__type-around>.ck-widget__type-around__button:hover{background:var(--ck-color-widget-type-around-button-active)}.ck .ck-widget.ck-widget_selected>.ck-widget__type-around>.ck-widget__type-around__button:after,.ck .ck-widget>.ck-widget__type-around>.ck-widget__type-around__button:hover:after{background:linear-gradient(135deg,hsla(0,0%,100%,0),hsla(0,0%,100%,.3));border-radius:100px;height:calc(var(--ck-widget-type-around-button-size) - 2px);width:calc(var(--ck-widget-type-around-button-size) - 2px)}.ck .ck-widget.ck-widget_with-selection-handle>.ck-widget__type-around>.ck-widget__type-around__button_before{margin-left:20px}.ck .ck-widget .ck-widget__type-around__fake-caret{animation:ck-widget-type-around-fake-caret-pulse 1s linear infinite normal forwards;background:var(--ck-color-base-text);height:1px;outline:1px solid hsla(0,0%,100%,.5);pointer-events:none}.ck .ck-widget.ck-widget_selected.ck-widget_type-around_show-fake-caret_after,.ck .ck-widget.ck-widget_selected.ck-widget_type-around_show-fake-caret_before{outline-color:transparent}.ck .ck-widget.ck-widget_type-around_show-fake-caret_after.ck-widget_selected:hover,.ck .ck-widget.ck-widget_type-around_show-fake-caret_before.ck-widget_selected:hover{outline-color:var(--ck-color-widget-hover-border)}.ck .ck-widget.ck-widget_type-around_show-fake-caret_after>.ck-widget__type-around>.ck-widget__type-around__button,.ck .ck-widget.ck-widget_type-around_show-fake-caret_before>.ck-widget__type-around>.ck-widget__type-around__button{opacity:0;pointer-events:none}.ck .ck-widget.ck-widget_type-around_show-fake-caret_after.ck-widget_selected.ck-widget_with-resizer>.ck-widget__resizer,.ck .ck-widget.ck-widget_type-around_show-fake-caret_after.ck-widget_with-selection-handle.ck-widget_selected:hover>.ck-widget__selection-handle,.ck .ck-widget.ck-widget_type-around_show-fake-caret_after.ck-widget_with-selection-handle.ck-widget_selected>.ck-widget__selection-handle,.ck .ck-widget.ck-widget_type-around_show-fake-caret_before.ck-widget_selected.ck-widget_with-resizer>.ck-widget__resizer,.ck .ck-widget.ck-widget_type-around_show-fake-caret_before.ck-widget_with-selection-handle.ck-widget_selected:hover>.ck-widget__selection-handle,.ck .ck-widget.ck-widget_type-around_show-fake-caret_before.ck-widget_with-selection-handle.ck-widget_selected>.ck-widget__selection-handle{opacity:0}.ck[dir=rtl] .ck-widget.ck-widget_with-selection-handle .ck-widget__type-around>.ck-widget__type-around__button_before{margin-left:0;margin-right:20px}.ck-editor__nested-editable.ck-editor__editable_selected .ck-widget.ck-widget_selected>.ck-widget__type-around>.ck-widget__type-around__button,.ck-editor__nested-editable.ck-editor__editable_selected .ck-widget:hover>.ck-widget__type-around>.ck-widget__type-around__button{opacity:0;pointer-events:none}.ck-editor__editable.ck-blurred .ck-widget.ck-widget_selected>.ck-widget__type-around>.ck-widget__type-around__button:not(:hover){background:var(--ck-color-widget-type-around-button-blurred-editable)}.ck-editor__editable.ck-blurred .ck-widget.ck-widget_selected>.ck-widget__type-around>.ck-widget__type-around__button:not(:hover) svg *{stroke:#999}@keyframes ck-widget-type-around-arrow-dash{0%{stroke-dashoffset:10}20%,to{stroke-dashoffset:0}}@keyframes ck-widget-type-around-arrow-tip-dash{0%,20%{stroke-dashoffset:7}40%,to{stroke-dashoffset:0}}@keyframes ck-widget-type-around-button-sonar{0%{box-shadow:0 0 0 0 hsla(var(--ck-color-focus-border-coordinates),var(--ck-color-widget-type-around-button-radar-start-alpha))}50%{box-shadow:0 0 0 5px hsla(var(--ck-color-focus-border-coordinates),var(--ck-color-widget-type-around-button-radar-end-alpha))}to{box-shadow:0 0 0 5px hsla(var(--ck-color-focus-border-coordinates),var(--ck-color-widget-type-around-button-radar-start-alpha))}}@keyframes ck-widget-type-around-fake-caret-pulse{0%{opacity:1}49%{opacity:1}50%{opacity:0}99%{opacity:0}to{opacity:1}}',"",{version:3,sources:["webpack://./node_modules/@ckeditor/ckeditor5-widget/theme/widgettypearound.css","webpack://./node_modules/@ckeditor/ckeditor5-theme-lark/theme/ckeditor5-widget/widgettypearound.css"],names:[],mappings:"AASC,+CACC,aAAc,CAEd,eAAgB,CADhB,iBAAkB,CAElB,2BAwBD,CAtBC,mDAGC,QAAS,CAFT,iBAAkB,CAClB,OAAQ,CAER,qCACD,CAEA,qFAGC,kBAAoB,CADpB,gDAAoD,CAGpD,0BACD,CAEA,oFAEC,mDAAuD,CACvD,mBAAqB,CAErB,yBACD,CAUA,mLACC,UAAW,CACX,aAAc,CAGd,QAAS,CAFT,iBAAkB,CAClB,OAAQ,CAER,qCACD,CAMD,2EACC,YAAa,CAEb,MAAO,CADP,iBAAkB,CAElB,OACD,CAOA,iFACC,gDAAqD,CACrD,iDACD,CAKA,wHAEC,aAAc,CADd,qDAED,CAKA,uHACC,wDAA6D,CAC7D,aACD,CAoBD,mOACC,YACD,CC3GA,MACC,wCAAyC,CACzC,wEAAyE,CACzE,8EAA+E,CAC/E,2FAA4F,CAC5F,wDAAyD,CACzD,uDAAwD,CACxD,yEACD,CAgBC,+CAGC,oDAAqD,CACrD,mBAAoB,CAFpB,+CAAgD,CAVjD,SAAU,CACV,mBAAoB,CAYnB,uMAAyM,CAJzM,8CAkDD,CA1CC,mDAEC,UAAW,CAGX,cAAe,CAFf,8BAA+B,CAC/B,6BAA8B,CAH9B,UAoBD,CAdC,qDACC,mBAAoB,CACpB,mBAAoB,CAEpB,SAAU,CACV,qDAAsD,CACtD,kBAAmB,CACnB,oBAAqB,CACrB,qBACD,CAEA,wDACC,kBACD,CAGD,qDAIC,6DAcD,CARE,kEACC,oDACD,CAEA,8DACC,wDACD,CAUF,uKAvED,SAAU,CACV,mBAwEC,CAOD,gGACC,0DACD,CAOA,uKAEC,2DAQD,CANC,mLAIC,uEAAkF,CADlF,mBAAoB,CADpB,2DAA4D,CAD5D,0DAID,CAOD,8GACC,gBACD,CAKA,mDAGC,mFAAoF,CAOpF,oCAAqC,CARrC,UAAW,CAOX,oCAAwC,CARxC,mBAUD,CAOC,6JAEC,yBACD,CAUA,yKACC,iDACD,CAMA,uOAlJD,SAAU,CACV,mBAmJC,CAoBA,6yBACC,SACD,CASF,uHACC,aAAc,CACd,iBACD,CAYG,iRAlMF,SAAU,CACV,mBAmME,CAQH,kIACC,qEAKD,CAHC,wIACC,WACD,CAGD,4CACC,GACC,oBACD,CACA,OACC,mBACD,CACD,CAEA,gDACC,OACC,mBACD,CACA,OACC,mBACD,CACD,CAEA,8CACC,GACC,6HACD,CACA,IACC,6HACD,CACA,GACC,+HACD,CACD,CAEA,kDACC,GACC,SACD,CACA,IACC,SACD,CACA,IACC,SACD,CACA,IACC,SACD,CACA,GACC,SACD,CACD",sourcesContent:['/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck .ck-widget {\n\t/*\n\t * Styles of the type around buttons\n\t */\n\t& .ck-widget__type-around__button {\n\t\tdisplay: block;\n\t\tposition: absolute;\n\t\toverflow: hidden;\n\t\tz-index: var(--ck-z-default);\n\n\t\t& svg {\n\t\t\tposition: absolute;\n\t\t\ttop: 50%;\n\t\t\tleft: 50%;\n\t\t\tz-index: calc(var(--ck-z-default) + 2);\n\t\t}\n\n\t\t&.ck-widget__type-around__button_before {\n\t\t\t/* Place it in the middle of the outline */\n\t\t\ttop: calc(-0.5 * var(--ck-widget-outline-thickness));\n\t\t\tleft: min(10%, 30px);\n\n\t\t\ttransform: translateY(-50%);\n\t\t}\n\n\t\t&.ck-widget__type-around__button_after {\n\t\t\t/* Place it in the middle of the outline */\n\t\t\tbottom: calc(-0.5 * var(--ck-widget-outline-thickness));\n\t\t\tright: min(10%, 30px);\n\n\t\t\ttransform: translateY(50%);\n\t\t}\n\t}\n\n\t/*\n\t * Styles for the buttons when:\n\t * - the widget is selected,\n\t * - or the button is being hovered (regardless of the widget state).\n\t */\n\t&.ck-widget_selected > .ck-widget__type-around > .ck-widget__type-around__button,\n\t& > .ck-widget__type-around > .ck-widget__type-around__button:hover {\n\t\t&::after {\n\t\t\tcontent: "";\n\t\t\tdisplay: block;\n\t\t\tposition: absolute;\n\t\t\ttop: 1px;\n\t\t\tleft: 1px;\n\t\t\tz-index: calc(var(--ck-z-default) + 1);\n\t\t}\n\t}\n\n\t/*\n\t * Styles for the horizontal "fake caret" which is displayed when the user navigates using the keyboard.\n\t */\n\t& > .ck-widget__type-around > .ck-widget__type-around__fake-caret {\n\t\tdisplay: none;\n\t\tposition: absolute;\n\t\tleft: 0;\n\t\tright: 0;\n\t}\n\n\t/*\n\t * When the widget is hovered the "fake caret" would normally be narrower than the\n\t * extra outline displayed around the widget. Let\'s extend the "fake caret" to match\n\t * the full width of the widget.\n\t */\n\t&:hover > .ck-widget__type-around > .ck-widget__type-around__fake-caret {\n\t\tleft: calc( -1 * var(--ck-widget-outline-thickness) );\n\t\tright: calc( -1 * var(--ck-widget-outline-thickness) );\n\t}\n\n\t/*\n\t * Styles for the horizontal "fake caret" when it should be displayed before the widget (backward keyboard navigation).\n\t */\n\t&.ck-widget_type-around_show-fake-caret_before > .ck-widget__type-around > .ck-widget__type-around__fake-caret {\n\t\ttop: calc( -1 * var(--ck-widget-outline-thickness) - 1px );\n\t\tdisplay: block;\n\t}\n\n\t/*\n\t * Styles for the horizontal "fake caret" when it should be displayed after the widget (forward keyboard navigation).\n\t */\n\t&.ck-widget_type-around_show-fake-caret_after > .ck-widget__type-around > .ck-widget__type-around__fake-caret {\n\t\tbottom: calc( -1 * var(--ck-widget-outline-thickness) - 1px );\n\t\tdisplay: block;\n\t}\n}\n\n/*\n * Integration with the read-only mode of the editor.\n */\n.ck.ck-editor__editable.ck-read-only .ck-widget__type-around {\n\tdisplay: none;\n}\n\n/*\n * Integration with the restricted editing mode (feature) of the editor.\n */\n.ck.ck-editor__editable.ck-restricted-editing_mode_restricted .ck-widget__type-around {\n\tdisplay: none;\n}\n\n/*\n * Integration with the #isEnabled property of the WidgetTypeAround plugin.\n */\n.ck.ck-editor__editable.ck-widget__type-around_disabled .ck-widget__type-around {\n\tdisplay: none;\n}\n','/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n:root {\n\t--ck-widget-type-around-button-size: 20px;\n\t--ck-color-widget-type-around-button-active: var(--ck-color-focus-border);\n\t--ck-color-widget-type-around-button-hover: var(--ck-color-widget-hover-border);\n\t--ck-color-widget-type-around-button-blurred-editable: var(--ck-color-widget-blurred-border);\n\t--ck-color-widget-type-around-button-radar-start-alpha: 0;\n\t--ck-color-widget-type-around-button-radar-end-alpha: .3;\n\t--ck-color-widget-type-around-button-icon: var(--ck-color-base-background);\n}\n\n@define-mixin ck-widget-type-around-button-visible {\n\topacity: 1;\n\tpointer-events: auto;\n}\n\n@define-mixin ck-widget-type-around-button-hidden {\n\topacity: 0;\n\tpointer-events: none;\n}\n\n.ck .ck-widget {\n\t/*\n\t * Styles of the type around buttons\n\t */\n\t& .ck-widget__type-around__button {\n\t\twidth: var(--ck-widget-type-around-button-size);\n\t\theight: var(--ck-widget-type-around-button-size);\n\t\tbackground: var(--ck-color-widget-type-around-button);\n\t\tborder-radius: 100px;\n\t\ttransition: opacity var(--ck-widget-handler-animation-duration) var(--ck-widget-handler-animation-curve), background var(--ck-widget-handler-animation-duration) var(--ck-widget-handler-animation-curve);\n\n\t\t@mixin ck-widget-type-around-button-hidden;\n\n\t\t& svg {\n\t\t\twidth: 10px;\n\t\t\theight: 8px;\n\t\t\ttransform: translate(-50%,-50%);\n\t\t\ttransition: transform .5s ease;\n\t\t\tmargin-top: 1px;\n\n\t\t\t& * {\n\t\t\t\tstroke-dasharray: 10;\n\t\t\t\tstroke-dashoffset: 0;\n\n\t\t\t\tfill: none;\n\t\t\t\tstroke: var(--ck-color-widget-type-around-button-icon);\n\t\t\t\tstroke-width: 1.5px;\n\t\t\t\tstroke-linecap: round;\n\t\t\t\tstroke-linejoin: round;\n\t\t\t}\n\n\t\t\t& line {\n\t\t\t\tstroke-dasharray: 7;\n\t\t\t}\n\t\t}\n\n\t\t&:hover {\n\t\t\t/*\n\t\t\t * Display the "sonar" around the button when hovered.\n\t\t\t */\n\t\t\tanimation: ck-widget-type-around-button-sonar 1s ease infinite;\n\n\t\t\t/*\n\t\t\t * Animate active button\'s icon.\n\t\t\t */\n\t\t\t& svg {\n\t\t\t\t& polyline {\n\t\t\t\t\tanimation: ck-widget-type-around-arrow-dash 2s linear;\n\t\t\t\t}\n\n\t\t\t\t& line {\n\t\t\t\t\tanimation: ck-widget-type-around-arrow-tip-dash 2s linear;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\n\t/*\n\t * Show type around buttons when the widget gets selected or being hovered.\n\t */\n\t&.ck-widget_selected,\n\t&:hover {\n\t\t& > .ck-widget__type-around > .ck-widget__type-around__button {\n\t\t\t@mixin ck-widget-type-around-button-visible;\n\t\t}\n\t}\n\n\t/*\n\t * Styles for the buttons when the widget is NOT selected (but the buttons are visible\n\t * and still can be hovered).\n\t */\n\t&:not(.ck-widget_selected) > .ck-widget__type-around > .ck-widget__type-around__button {\n\t\tbackground: var(--ck-color-widget-type-around-button-hover);\n\t}\n\n\t/*\n\t * Styles for the buttons when:\n\t * - the widget is selected,\n\t * - or the button is being hovered (regardless of the widget state).\n\t */\n\t&.ck-widget_selected > .ck-widget__type-around > .ck-widget__type-around__button,\n\t& > .ck-widget__type-around > .ck-widget__type-around__button:hover {\n\t\tbackground: var(--ck-color-widget-type-around-button-active);\n\n\t\t&::after {\n\t\t\twidth: calc(var(--ck-widget-type-around-button-size) - 2px);\n\t\t\theight: calc(var(--ck-widget-type-around-button-size) - 2px);\n\t\t\tborder-radius: 100px;\n\t\t\tbackground: linear-gradient(135deg, hsla(0,0%,100%,0) 0%, hsla(0,0%,100%,.3) 100%);\n\t\t}\n\t}\n\n\t/*\n\t * Styles for the "before" button when the widget has a selection handle. Because some space\n\t * is consumed by the handle, the button must be moved slightly to the right to let it breathe.\n\t */\n\t&.ck-widget_with-selection-handle > .ck-widget__type-around > .ck-widget__type-around__button_before {\n\t\tmargin-left: 20px;\n\t}\n\n\t/*\n\t * Styles for the horizontal "fake caret" which is displayed when the user navigates using the keyboard.\n\t */\n\t& .ck-widget__type-around__fake-caret {\n\t\tpointer-events: none;\n\t\theight: 1px;\n\t\tanimation: ck-widget-type-around-fake-caret-pulse linear 1s infinite normal forwards;\n\n\t\t/*\n\t\t * The semi-transparent-outline+background combo improves the contrast\n\t\t * when the background underneath the fake caret is dark.\n\t\t */\n\t\toutline: solid 1px hsla(0, 0%, 100%, .5);\n\t\tbackground: var(--ck-color-base-text);\n\t}\n\n\t/*\n\t * Styles of the widget when the "fake caret" is blinking (e.g. upon keyboard navigation).\n\t * Despite the widget being physically selected in the model, its outline should disappear.\n\t */\n\t&.ck-widget_selected {\n\t\t&.ck-widget_type-around_show-fake-caret_before,\n\t\t&.ck-widget_type-around_show-fake-caret_after {\n\t\t\toutline-color: transparent;\n\t\t}\n\t}\n\n\t&.ck-widget_type-around_show-fake-caret_before,\n\t&.ck-widget_type-around_show-fake-caret_after {\n\t\t/*\n\t\t * When the "fake caret" is visible we simulate that the widget is not selected\n\t\t * (despite being physically selected), so the outline color should be for the\n\t\t * unselected widget.\n\t\t */\n\t\t&.ck-widget_selected:hover {\n\t\t\toutline-color: var(--ck-color-widget-hover-border);\n\t\t}\n\n\t\t/*\n\t\t * Styles of the type around buttons when the "fake caret" is blinking (e.g. upon keyboard navigation).\n\t\t * In this state, the type around buttons would collide with the fake carets so they should disappear.\n\t\t */\n\t\t& > .ck-widget__type-around > .ck-widget__type-around__button {\n\t\t\t@mixin ck-widget-type-around-button-hidden;\n\t\t}\n\n\t\t/*\n\t\t * Fake horizontal caret integration with the selection handle. When the caret is visible, simply\n\t\t * hide the handle because it intersects with the caret (and does not make much sense anyway).\n\t\t */\n\t\t&.ck-widget_with-selection-handle {\n\t\t\t&.ck-widget_selected,\n\t\t\t&.ck-widget_selected:hover {\n\t\t\t\t& > .ck-widget__selection-handle {\n\t\t\t\t\topacity: 0\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t/*\n\t\t * Fake horizontal caret integration with the resize UI. When the caret is visible, simply\n\t\t * hide the resize UI because it creates too much noise. It can be visible when the user\n\t\t * hovers the widget, though.\n\t\t */\n\t\t&.ck-widget_selected.ck-widget_with-resizer > .ck-widget__resizer {\n\t\t\topacity: 0\n\t\t}\n\t}\n}\n\n/*\n * Styles for the "before" button when the widget has a selection handle in an RTL environment.\n * The selection handler is aligned to the right side of the widget so there is no need to create\n * additional space for it next to the "before" button.\n */\n.ck[dir="rtl"] .ck-widget.ck-widget_with-selection-handle .ck-widget__type-around > .ck-widget__type-around__button_before {\n\tmargin-left: 0;\n\tmargin-right: 20px;\n}\n\n/*\n * Hide type around buttons when the widget is selected as a child of a selected\n * nested editable (e.g. mulit-cell table selection).\n *\n * See https://github.com/ckeditor/ckeditor5/issues/7263.\n */\n.ck-editor__nested-editable.ck-editor__editable_selected {\n\t& .ck-widget {\n\t\t&.ck-widget_selected,\n\t\t&:hover {\n\t\t\t& > .ck-widget__type-around > .ck-widget__type-around__button {\n\t\t\t\t@mixin ck-widget-type-around-button-hidden;\n\t\t\t}\n\t\t}\n\t}\n}\n\n/*\n * Styles for the buttons when the widget is selected but the user clicked outside of the editor (blurred the editor).\n */\n.ck-editor__editable.ck-blurred .ck-widget.ck-widget_selected > .ck-widget__type-around > .ck-widget__type-around__button:not(:hover) {\n\tbackground: var(--ck-color-widget-type-around-button-blurred-editable);\n\n\t& svg * {\n\t\tstroke: hsl(0,0%,60%);\n\t}\n}\n\n@keyframes ck-widget-type-around-arrow-dash {\n\t0% {\n\t\tstroke-dashoffset: 10;\n\t}\n\t20%, 100% {\n\t\tstroke-dashoffset: 0;\n\t}\n}\n\n@keyframes ck-widget-type-around-arrow-tip-dash {\n\t0%, 20% {\n\t\tstroke-dashoffset: 7;\n\t}\n\t40%, 100% {\n\t\tstroke-dashoffset: 0;\n\t}\n}\n\n@keyframes ck-widget-type-around-button-sonar {\n\t0% {\n\t\tbox-shadow: 0 0 0 0 hsla(var(--ck-color-focus-border-coordinates), var(--ck-color-widget-type-around-button-radar-start-alpha));\n\t}\n\t50% {\n\t\tbox-shadow: 0 0 0 5px hsla(var(--ck-color-focus-border-coordinates), var(--ck-color-widget-type-around-button-radar-end-alpha));\n\t}\n\t100% {\n\t\tbox-shadow: 0 0 0 5px hsla(var(--ck-color-focus-border-coordinates), var(--ck-color-widget-type-around-button-radar-start-alpha));\n\t}\n}\n\n@keyframes ck-widget-type-around-fake-caret-pulse {\n\t0% {\n\t\topacity: 1;\n\t}\n\t49% {\n\t\topacity: 1;\n\t}\n\t50% {\n\t\topacity: 0;\n\t}\n\t99% {\n\t\topacity: 0;\n\t}\n\t100% {\n\t\topacity: 1;\n\t}\n}\n'],sourceRoot:""}]);const l=i},3645:e=>{e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var o=e(t);return t[2]?"@media ".concat(t[2]," {").concat(o,"}"):o})).join("")},t.i=function(e,o,n){"string"==typeof e&&(e=[[null,e,""]]);var a={};if(n)for(var r=0;r<this.length;r++){var i=this[r][0];null!=i&&(a[i]=!0)}for(var l=0;l<e.length;l++){var s=[].concat(e[l]);n&&a[s[0]]||(o&&(s[2]?s[2]="".concat(o," and ").concat(s[2]):s[2]=o),t.push(s))}},t}},4015:e=>{function t(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var o=e&&("undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"]);if(null!=o){var n,a,r=[],i=!0,l=!1;try{for(o=o.call(e);!(i=(n=o.next()).done)&&(r.push(n.value),!t||r.length!==t);i=!0);}catch(e){l=!0,a=e}finally{try{i||null==o.return||o.return()}finally{if(l)throw a}}return r}}(e,t)||function(e,t){if(e){if("string"==typeof e)return o(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?o(e,t):void 0}}(e,t)||function(){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){(null==t||t>e.length)&&(t=e.length);for(var o=0,n=new Array(t);o<t;o++)n[o]=e[o];return n}e.exports=function(e){var o=t(e,4),n=o[1],a=o[3];if(!a)return n;if("function"==typeof btoa){var r=btoa(unescape(encodeURIComponent(JSON.stringify(a)))),i="sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(r),l="/*# ".concat(i," */"),s=a.sources.map((function(e){return"/*# sourceURL=".concat(a.sourceRoot||"").concat(e," */")}));return[n].concat(s).concat([l]).join("\n")}return[n].join("\n")}},3379:(e,t,o)=>{var n,a=function(){return void 0===n&&(n=Boolean(window&&document&&document.all&&!window.atob)),n},r=function(){var e={};return function(t){if(void 0===e[t]){var o=document.querySelector(t);if(window.HTMLIFrameElement&&o instanceof window.HTMLIFrameElement)try{o=o.contentDocument.head}catch(e){o=null}e[t]=o}return e[t]}}(),i=[];function l(e){for(var t=-1,o=0;o<i.length;o++)if(i[o].identifier===e){t=o;break}return t}function s(e,t){for(var o={},n=[],a=0;a<e.length;a++){var r=e[a],s=t.base?r[0]+t.base:r[0],c=o[s]||0,d="".concat(s," ").concat(c);o[s]=c+1;var u=l(d),m={css:r[1],media:r[2],sourceMap:r[3]};-1!==u?(i[u].references++,i[u].updater(m)):i.push({identifier:d,updater:g(m,t),references:1}),n.push(d)}return n}function c(e){var t=document.createElement("style"),n=e.attributes||{};if(void 0===n.nonce){var a=o.nc;a&&(n.nonce=a)}if(Object.keys(n).forEach((function(e){t.setAttribute(e,n[e])})),"function"==typeof e.insert)e.insert(t);else{var i=r(e.insert||"head");if(!i)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");i.appendChild(t)}return t}var d,u=(d=[],function(e,t){return d[e]=t,d.filter(Boolean).join("\n")});function m(e,t,o,n){var a=o?"":n.media?"@media ".concat(n.media," {").concat(n.css,"}"):n.css;if(e.styleSheet)e.styleSheet.cssText=u(t,a);else{var r=document.createTextNode(a),i=e.childNodes;i[t]&&e.removeChild(i[t]),i.length?e.insertBefore(r,i[t]):e.appendChild(r)}}function h(e,t,o){var n=o.css,a=o.media,r=o.sourceMap;if(a?e.setAttribute("media",a):e.removeAttribute("media"),r&&"undefined"!=typeof btoa&&(n+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(r))))," */")),e.styleSheet)e.styleSheet.cssText=n;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(n))}}var p=null,b=0;function g(e,t){var o,n,a;if(t.singleton){var r=b++;o=p||(p=c(t)),n=m.bind(null,o,r,!1),a=m.bind(null,o,r,!0)}else o=c(t),n=h.bind(null,o,t),a=function(){!function(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e)}(o)};return n(e),function(t){if(t){if(t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap)return;n(e=t)}else a()}}e.exports=function(e,t){(t=t||{}).singleton||"boolean"==typeof t.singleton||(t.singleton=a());var o=s(e=e||[],t);return function(e){if(e=e||[],"[object Array]"===Object.prototype.toString.call(e)){for(var n=0;n<o.length;n++){var a=l(o[n]);i[a].references--}for(var r=s(e,t),c=0;c<o.length;c++){var d=l(o[c]);0===i[d].references&&(i[d].updater(),i.splice(d,1))}o=r}}}}},a={};function r(e){var t=a[e];if(void 0!==t)return t.exports;var n=a[e]={id:e,exports:{}};return o[e](n,n.exports,r),n.exports}r.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return r.d(t,{a:t}),t},r.d=(e,t)=>{for(var o in t)r.o(t,o)&&!r.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:t[o]})},r.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(o){if("object"==typeof window)return window}}(),r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r.nc=void 0;var i={};return(()=>{function o({emitter:e,activator:t,callback:o,contextElements:n}){e.listenTo(document,"mousedown",(e,a)=>{if(!t())return;const r="function"==typeof a.composedPath?a.composedPath():[],i="function"==typeof n?n():n;for(const t of i)if(t.contains(a.target)||r.includes(t))return;o()})}function a(e){const t=e;t.set("_isCssTransitionsDisabled",!1),t.disableCssTransitions=()=>{t._isCssTransitionsDisabled=!0},t.enableCssTransitions=()=>{t._isCssTransitionsDisabled=!1},t.extendTemplate({attributes:{class:[t.bindTemplate.if("_isCssTransitionsDisabled","ck-transitions-disabled")]}})}function l({view:e}){e.listenTo(e.element,"submit",(t,o)=>{o.preventDefault(),e.fire("submit")},{useCapture:!0})}function s({keystrokeHandler:e,focusTracker:t,gridItems:o,numberOfColumns:n,uiLanguageDirection:a}){const r="number"==typeof n?()=>n:n;function i(e){return n=>{const a=o.find(e=>e.element===t.focusedElement),r=o.getIndex(a),i=e(r,o);o.get(i).focus(),n.stopPropagation(),n.preventDefault()}}function l(e,t){return e===t-1?0:e+1}function s(e,t){return 0===e?t-1:e-1}e.set("arrowright",i((e,t)=>"rtl"===a?s(e,t.length):l(e,t.length))),e.set("arrowleft",i((e,t)=>"rtl"===a?l(e,t.length):s(e,t.length))),e.set("arrowup",i((e,t)=>{let o=e-r();return o<0&&(o=e+r()*Math.floor(t.length/r()),o>t.length-1&&(o-=r())),o})),e.set("arrowdown",i((e,t)=>{let o=e+r();return o>t.length-1&&(o=e%r()),o}))}r.d(i,{default:()=>Wj});const c=function(){try{return navigator.userAgent.toLowerCase()}catch(o){return""}}(),d={isMac:m(c),isWindows:function(e){return e.indexOf("windows")>-1}(c),isGecko:function(e){return!!e.match(/gecko\/\d+/)}(c),isSafari:function(e){return e.indexOf(" applewebkit/")>-1&&-1===e.indexOf("chrome")}(c),isiOS:function(e){return!!e.match(/iphone|ipad/i)||m(e)&&navigator.maxTouchPoints>0}(c),isAndroid:function(e){return e.indexOf("android")>-1}(c),isBlink:function(e){return e.indexOf("chrome/")>-1&&e.indexOf("edge/")<0}(c),features:{isRegExpUnicodePropertySupported:function(){let e=!1;try{e=0==="ć".search(new RegExp("[\\p{L}]","u"))}catch(e){}return e}()}},u=d;function m(e){return e.indexOf("macintosh")>-1}function h(e,t,o,n){o=o||function(e,t){return e===t};const a=Array.isArray(e)?e:Array.prototype.slice.call(e),r=Array.isArray(t)?t:Array.prototype.slice.call(t),i=function(e,t,o){const n=p(e,t,o);if(-1===n)return{firstIndex:-1,lastIndexOld:-1,lastIndexNew:-1};const a=b(e,n),r=b(t,n),i=p(a,r,o),l=e.length-i,s=t.length-i;return{firstIndex:n,lastIndexOld:l,lastIndexNew:s}}(a,r,o),l=n?function(e,t){const{firstIndex:o,lastIndexOld:n,lastIndexNew:a}=e;if(-1===o)return Array(t).fill("equal");let r=[];return o>0&&(r=r.concat(Array(o).fill("equal"))),a-o>0&&(r=r.concat(Array(a-o).fill("insert"))),n-o>0&&(r=r.concat(Array(n-o).fill("delete"))),a<t&&(r=r.concat(Array(t-a).fill("equal"))),r}(i,r.length):function(e,t){const o=[],{firstIndex:n,lastIndexOld:a,lastIndexNew:r}=t;return r-n>0&&o.push({index:n,type:"insert",values:e.slice(n,r)}),a-n>0&&o.push({index:n+(r-n),type:"delete",howMany:a-n}),o}(r,i);return l}function p(e,t,o){for(let n=0;n<Math.max(e.length,t.length);n++)if(void 0===e[n]||void 0===t[n]||!o(e[n],t[n]))return n;return-1}function b(e,t){return e.slice(t).reverse()}function g(e,t,o){o=o||function(e,t){return e===t};const n=e.length,a=t.length;if(n>200||a>200||n+a>300)return g.fastDiff(e,t,o,!0);let r,i;if(a<n){const o=e;e=t,t=o,r="delete",i="insert"}else r="insert",i="delete";const l=e.length,s=t.length,c=s-l,d={},u={};function m(n){const a=(void 0!==u[n-1]?u[n-1]:-1)+1,c=void 0!==u[n+1]?u[n+1]:-1,m=a>c?-1:1;d[n+m]&&(d[n]=d[n+m].slice(0)),d[n]||(d[n]=[]),d[n].push(a>c?r:i);let h=Math.max(a,c),p=h-n;for(;p<l&&h<s&&o(e[p],t[h]);)p++,h++,d[n].push("equal");return h}let h,p=0;do{for(h=-p;h<c;h++)u[h]=m(h);for(h=c+p;h>c;h--)u[h]=m(h);u[c]=m(c),p++}while(u[c]!==s);return d[c].slice(1)}function f(e,...t){t.forEach(t=>{const o=Object.getOwnPropertyNames(t),n=Object.getOwnPropertySymbols(t);o.concat(n).forEach(o=>{if(o in e.prototype)return;if("function"==typeof t&&("length"==o||"name"==o||"prototype"==o))return;const n=Object.getOwnPropertyDescriptor(t,o);n.enumerable=!1,Object.defineProperty(e.prototype,o,n)})})}g.fastDiff=h;const v=function(){return function e(){e.called=!0}};class w{constructor(e,t){this.source=e,this.name=t,this.path=[],this.stop=v(),this.off=v()}}const k=new Array(256).fill("").map((e,t)=>("0"+t.toString(16)).slice(-2));function C(){const e=4294967296*Math.random()>>>0,t=4294967296*Math.random()>>>0,o=4294967296*Math.random()>>>0,n=4294967296*Math.random()>>>0;return"e"+k[e>>0&255]+k[e>>8&255]+k[e>>16&255]+k[e>>24&255]+k[t>>0&255]+k[t>>8&255]+k[t>>16&255]+k[t>>24&255]+k[o>>0&255]+k[o>>8&255]+k[o>>16&255]+k[o>>24&255]+k[n>>0&255]+k[n>>8&255]+k[n>>16&255]+k[n>>24&255]}const y={get(e="normal"){return"number"!=typeof e?this[e]||this.normal:e},highest:1e5,high:1e3,normal:0,low:-1e3,lowest:-1e5};function O(e,t){const o=y.get(t.priority);for(let n=0;n<e.length;n++)if(y.get(e[n].priority)<o)return void e.splice(n,0,t);e.push(t)}const j="https://ckeditor.com/docs/ckeditor5/latest/support/error-codes.html";class x extends Error{constructor(e,t,o){super(function(e,t){const o=new WeakSet,n=(e,t)=>{if("object"==typeof t&&null!==t){if(o.has(t))return`[object ${t.constructor.name}]`;o.add(t)}return t},a=t?" "+JSON.stringify(t,n):"",r=A(e);return e+a+r}(e,o)),this.name="CKEditorError",this.context=t,this.data=o}is(e){return"CKEditorError"===e}static rethrowUnexpectedError(e,t){if(e.is&&e.is("CKEditorError"))throw e;const o=new x(e.message,t);throw o.stack=e.stack,o}}function _(e,t){console.warn(...N(e,t))}function V(e,t){console.error(...N(e,t))}function A(e){return`\nRead more: ${j}#error-${e}`}function N(e,t){const o=A(e);return t?[e,t,o]:[e,o]}const D="36.0.1",E="object"==typeof window?window:r.g;if(E.CKEDITOR_VERSION)throw new x("ckeditor-duplicated-modules",null);E.CKEDITOR_VERSION=D;const T=Symbol("listeningTo"),S=Symbol("emitterId"),B=Symbol("delegations"),I=z(Object);function z(e){return e?class extends e{on(e,t,o){this.listenTo(this,e,t,o)}once(e,t,o){let n=!1;this.listenTo(this,e,(e,...o)=>{n||(n=!0,e.off(),t.call(this,e,...o))},o)}off(e,t){this.stopListening(this,e,t)}listenTo(e,t,o,n={}){let a,r;this[T]||(this[T]={});const i=this[T];M(e)||F(e);const l=M(e);(a=i[l])||(a=i[l]={emitter:e,callbacks:{}}),(r=a.callbacks[t])||(r=a.callbacks[t]=[]),r.push(o),function(e,t,o,n,a){t._addEventListener?t._addEventListener(o,n,a):e._addEventListener.call(t,o,n,a)}(this,e,t,o,n)}stopListening(e,t,o){const n=this[T];let a=e&&M(e);const r=n&&a?n[a]:void 0,i=r&&t?r.callbacks[t]:void 0;if(!(!n||e&&!r||t&&!i))if(o)$(this,e,t,o),-1!==i.indexOf(o)&&(1===i.length?delete r.callbacks[t]:$(this,e,t,o));else if(i){for(;o=i.pop();)$(this,e,t,o);delete r.callbacks[t]}else if(r){for(t in r.callbacks)this.stopListening(e,t);delete n[a]}else{for(a in n)this.stopListening(n[a].emitter);delete this[T]}}fire(e,...t){try{const o=e instanceof w?e:new w(this,e),n=o.name;let a=R(this,n);if(o.path.push(this),a){const e=[o,...t];a=Array.from(a);for(let t=0;t<a.length&&(a[t].callback.apply(this,e),o.off.called&&(delete o.off.called,this._removeEventListener(n,a[t].callback)),!o.stop.called);t++);}const r=this[B];if(r){const e=r.get(n),a=r.get("*");e&&q(e,o,t),a&&q(a,o,t)}return o.return}catch(e){x.rethrowUnexpectedError(e,this)}}delegate(...e){return{to:(t,o)=>{this[B]||(this[B]=new Map),e.forEach(e=>{const n=this[B].get(e);n?n.set(t,o):this[B].set(e,new Map([[t,o]]))})}}}stopDelegating(e,t){if(this[B])if(e)if(t){const o=this[B].get(e);o&&o.delete(t)}else this[B].delete(e);else this[B].clear()}_addEventListener(e,t,o){!function(e,t){const o=L(e);if(o[t])return;let n=t,a=null;const r=[];for(;""!==n&&!o[n];)o[n]={callbacks:[],childEvents:[]},r.push(o[n]),a&&o[n].childEvents.push(a),a=n,n=n.substr(0,n.lastIndexOf(":"));if(""!==n){for(const e of r)e.callbacks=o[n].callbacks.slice();o[n].childEvents.push(a)}}(this,e);const n=P(this,e),a={callback:t,priority:y.get(o.priority)};for(const r of n)O(r,a)}_removeEventListener(e,t){const o=P(this,e);for(const n of o)for(let e=0;e<n.length;e++)n[e].callback==t&&(n.splice(e,1),e--)}}:I}function F(e,t){e[S]||(e[S]=t||C())}function M(e){return e[S]}function L(e){return e._events||Object.defineProperty(e,"_events",{value:{}}),e._events}function P(e,t){const o=L(e)[t];if(!o)return[];let n=[o.callbacks];for(let a=0;a<o.childEvents.length;a++){const t=P(e,o.childEvents[a]);n=n.concat(t)}return n}function R(e,t){let o;return e._events&&(o=e._events[t])&&o.callbacks.length?o.callbacks:t.indexOf(":")>-1?R(e,t.substr(0,t.lastIndexOf(":"))):null}function q(e,t,o){for(let[n,a]of e){a?"function"==typeof a&&(a=a(t.name)):a=t.name;const e=new w(t.source,a);e.path=[...t.path],n.fire(e,...o)}}function $(e,t,o,n){t._removeEventListener?t._removeEventListener(o,n):e._removeEventListener.call(t,o,n)}["on","once","off","listenTo","stopListening","fire","delegate","stopDelegating","_addEventListener","_removeEventListener"].forEach(e=>{z[e]=I.prototype[e]});const U=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)},H=Symbol("observableProperties"),W=Symbol("boundObservables"),G=Symbol("boundProperties"),K=Symbol("decoratedMethods"),Y=Symbol("decoratedOriginal"),Q=J(z());function J(e){return e?class extends e{set(e,t){if(U(e))return void Object.keys(e).forEach(t=>{this.set(t,e[t])},this);Z(this);const o=this[H];if(e in this&&!o.has(e))throw new x("observable-set-cannot-override",this);Object.defineProperty(this,e,{enumerable:!0,configurable:!0,get:()=>o.get(e),set(t){const n=o.get(e);let a=this.fire("set:"+e,e,t,n);void 0===a&&(a=t),n===a&&o.has(e)||(o.set(e,a),this.fire("change:"+e,e,a,n))}}),this[e]=t}bind(...e){if(!e.length||!te(e))throw new x("observable-bind-wrong-properties",this);if(new Set(e).size!==e.length)throw new x("observable-bind-duplicate-properties",this);Z(this);const t=this[G];e.forEach(e=>{if(t.has(e))throw new x("observable-bind-rebind",this)});const o=new Map;return e.forEach(e=>{const n={property:e,to:[]};t.set(e,n),o.set(e,n)}),{to:X,toMany:ee,_observable:this,_bindProperties:e,_to:[],_bindings:o}}unbind(...e){if(!this[H])return;const t=this[G],o=this[W];if(e.length){if(!te(e))throw new x("observable-unbind-wrong-properties",this);e.forEach(e=>{const n=t.get(e);n&&(n.to.forEach(([e,t])=>{const a=o.get(e),r=a[t];r.delete(n),r.size||delete a[t],Object.keys(a).length||(o.delete(e),this.stopListening(e,"change"))}),t.delete(e))})}else o.forEach((e,t)=>{this.stopListening(t,"change")}),o.clear(),t.clear()}decorate(e){Z(this);const t=this[e];if(!t)throw new x("observablemixin-cannot-decorate-undefined",this,{object:this,methodName:e});this.on(e,(e,o)=>{e.return=t.apply(this,o)}),this[e]=function(...t){return this.fire(e,t)},this[e][Y]=t,this[K]||(this[K]=[]),this[K].push(e)}stopListening(e,t,o){if(!e&&this[K]){for(const e of this[K])this[e]=this[e][Y];delete this[K]}super.stopListening(e,t,o)}}:Q}function Z(e){e[H]||(Object.defineProperty(e,H,{value:new Map}),Object.defineProperty(e,W,{value:new Map}),Object.defineProperty(e,G,{value:new Map}))}function X(...e){const t=function(...e){if(!e.length)throw new x("observable-bind-to-parse-error",null);const t={to:[]};let o;return"function"==typeof e[e.length-1]&&(t.callback=e.pop()),e.forEach(e=>{if("string"==typeof e)o.properties.push(e);else{if("object"!=typeof e)throw new x("observable-bind-to-parse-error",null);o={observable:e,properties:[]},t.to.push(o)}}),t}(...e),o=Array.from(this._bindings.keys()),n=o.length;if(!t.callback&&t.to.length>1)throw new x("observable-bind-to-no-callback",this);if(n>1&&t.callback)throw new x("observable-bind-to-extra-callback",this);var a;t.to.forEach(e=>{if(e.properties.length&&e.properties.length!==n)throw new x("observable-bind-to-properties-length",this);e.properties.length||(e.properties=this._bindProperties)}),this._to=t.to,t.callback&&(this._bindings.get(o[0]).callback=t.callback),a=this._observable,this._to.forEach(e=>{const t=a[W];let o;t.get(e.observable)||a.listenTo(e.observable,"change",(n,r)=>{o=t.get(e.observable)[r],o&&o.forEach(e=>{oe(a,e.property)})})}),function(e){let t;e._bindings.forEach((o,n)=>{e._to.forEach(a=>{t=a.properties[o.callback?0:e._bindProperties.indexOf(n)],o.to.push([a.observable,t]),function(e,t,o,n){const a=e[W],r=a.get(o),i=r||{};i[n]||(i[n]=new Set),i[n].add(t),r||a.set(o,i)}(e._observable,o,a.observable,t)})})}(this),this._bindProperties.forEach(e=>{oe(this._observable,e)})}function ee(e,t,o){if(this._bindings.size>1)throw new x("observable-bind-to-many-not-one-binding",this);this.to(...function(e,t){const o=e.map(e=>[e,t]);return Array.prototype.concat.apply([],o)}(e,t),o)}function te(e){return e.every(e=>"string"==typeof e)}function oe(e,t){const o=e[G].get(t);let n;o.callback?n=o.callback.apply(e,o.to.map(e=>e[0][e[1]])):(n=o.to[0],n=n[0][n[1]]),Object.prototype.hasOwnProperty.call(e,t)?e[t]=n:e.set(t,n)}["set","bind","unbind","decorate","on","once","off","listenTo","stopListening","fire","delegate","stopDelegating","_addEventListener","_removeEventListener"].forEach(e=>{J[e]=Q.prototype[e]});class ne{constructor(){this._replacedElements=[]}replace(e,t){this._replacedElements.push({element:e,newElement:t}),e.style.display="none",t&&e.parentNode.insertBefore(t,e.nextSibling)}restore(){this._replacedElements.forEach(({element:e,newElement:t})=>{e.style.display="",t&&t.remove()}),this._replacedElements=[]}}function ae(e){let t=0;for(const o of e)t++;return t}function re(e,t){const o=Math.min(e.length,t.length);for(let n=0;n<o;n++)if(e[n]!=t[n])return n;return e.length==t.length?"same":e.length<t.length?"prefix":"extension"}function ie(e){return!(!e||!e[Symbol.iterator])}const le="object"==typeof e&&e&&e.Object===Object&&e;var se="object"==typeof self&&self&&self.Object===Object&&self;const ce=le||se||Function("return this")(),de=ce.Symbol;var ue=Object.prototype,me=ue.hasOwnProperty,he=ue.toString,pe=de?de.toStringTag:void 0;const be=function(e){var t=me.call(e,pe),o=e[pe];try{e[pe]=void 0;var n=!0}catch(e){}var a=he.call(e);return n&&(t?e[pe]=o:delete e[pe]),a};var ge=Object.prototype.toString;const fe=function(e){return ge.call(e)};var ve="[object Null]",we="[object Undefined]",ke=de?de.toStringTag:void 0;const Ce=function(e){return null==e?void 0===e?we:ve:ke&&ke in Object(e)?be(e):fe(e)},ye=Array.isArray,Oe=function(e){return null!=e&&"object"==typeof e};var je="[object String]";const xe=function(e){return"string"==typeof e||!ye(e)&&Oe(e)&&Ce(e)==je};function _e(e,t,o={},n=[]){const a=o&&o.xmlns,r=a?e.createElementNS(a,t):e.createElement(t);for(const i in o)r.setAttribute(i,o[i]);!xe(n)&&ie(n)||(n=[n]);for(let i of n)xe(i)&&(i=e.createTextNode(i)),r.appendChild(i);return r}const Ve=function(e,t){return function(o){return e(t(o))}},Ae=Ve(Object.getPrototypeOf,Object);var Ne="[object Object]",De=Function.prototype,Ee=Object.prototype,Te=De.toString,Se=Ee.hasOwnProperty,Be=Te.call(Object);const Ie=function(e){if(!Oe(e)||Ce(e)!=Ne)return!1;var t=Ae(e);if(null===t)return!0;var o=Se.call(t,"constructor")&&t.constructor;return"function"==typeof o&&o instanceof o&&Te.call(o)==Be},ze=function(){this.__data__=[],this.size=0},Fe=function(e,t){return e===t||e!=e&&t!=t},Me=function(e,t){for(var o=e.length;o--;)if(Fe(e[o][0],t))return o;return-1};var Le=Array.prototype.splice;const Pe=function(e){var t=this.__data__,o=Me(t,e);return!(o<0)&&(o==t.length-1?t.pop():Le.call(t,o,1),--this.size,!0)},Re=function(e){var t=this.__data__,o=Me(t,e);return o<0?void 0:t[o][1]},qe=function(e){return Me(this.__data__,e)>-1},$e=function(e,t){var o=this.__data__,n=Me(o,e);return n<0?(++this.size,o.push([e,t])):o[n][1]=t,this};function Ue(e){var t=-1,o=null==e?0:e.length;for(this.clear();++t<o;){var n=e[t];this.set(n[0],n[1])}}Ue.prototype.clear=ze,Ue.prototype.delete=Pe,Ue.prototype.get=Re,Ue.prototype.has=qe,Ue.prototype.set=$e;const He=Ue,We=function(){this.__data__=new He,this.size=0},Ge=function(e){var t=this.__data__,o=t.delete(e);return this.size=t.size,o},Ke=function(e){return this.__data__.get(e)},Ye=function(e){return this.__data__.has(e)};var Qe="[object AsyncFunction]",Je="[object Function]",Ze="[object GeneratorFunction]",Xe="[object Proxy]";const et=function(e){if(!U(e))return!1;var t=Ce(e);return t==Je||t==Ze||t==Qe||t==Xe},tt=ce["__core-js_shared__"];var ot=function(){var e=/[^.]+$/.exec(tt&&tt.keys&&tt.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();const nt=function(e){return!!ot&&ot in e};var at=Function.prototype.toString;const rt=function(e){if(null!=e){try{return at.call(e)}catch(e){}try{return e+""}catch(e){}}return""};var it=/^\[object .+?Constructor\]$/,lt=Function.prototype,st=Object.prototype,ct=lt.toString,dt=st.hasOwnProperty,ut=RegExp("^"+ct.call(dt).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");const mt=function(e){return!(!U(e)||nt(e))&&(et(e)?ut:it).test(rt(e))},ht=function(e,t){return null==e?void 0:e[t]},pt=function(e,t){var o=ht(e,t);return mt(o)?o:void 0},bt=pt(ce,"Map"),gt=pt(Object,"create"),ft=function(){this.__data__=gt?gt(null):{},this.size=0},vt=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t};var wt="__lodash_hash_undefined__",kt=Object.prototype.hasOwnProperty;const Ct=function(e){var t=this.__data__;if(gt){var o=t[e];return o===wt?void 0:o}return kt.call(t,e)?t[e]:void 0};var yt=Object.prototype.hasOwnProperty;const Ot=function(e){var t=this.__data__;return gt?void 0!==t[e]:yt.call(t,e)};var jt="__lodash_hash_undefined__";const xt=function(e,t){var o=this.__data__;return this.size+=this.has(e)?0:1,o[e]=gt&&void 0===t?jt:t,this};function _t(e){var t=-1,o=null==e?0:e.length;for(this.clear();++t<o;){var n=e[t];this.set(n[0],n[1])}}_t.prototype.clear=ft,_t.prototype.delete=vt,_t.prototype.get=Ct,_t.prototype.has=Ot,_t.prototype.set=xt;const Vt=_t,At=function(){this.size=0,this.__data__={hash:new Vt,map:new(bt||He),string:new Vt}},Nt=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e},Dt=function(e,t){var o=e.__data__;return Nt(t)?o["string"==typeof t?"string":"hash"]:o.map},Et=function(e){var t=Dt(this,e).delete(e);return this.size-=t?1:0,t},Tt=function(e){return Dt(this,e).get(e)},St=function(e){return Dt(this,e).has(e)},Bt=function(e,t){var o=Dt(this,e),n=o.size;return o.set(e,t),this.size+=o.size==n?0:1,this};function It(e){var t=-1,o=null==e?0:e.length;for(this.clear();++t<o;){var n=e[t];this.set(n[0],n[1])}}It.prototype.clear=At,It.prototype.delete=Et,It.prototype.get=Tt,It.prototype.has=St,It.prototype.set=Bt;const zt=It;var Ft=200;const Mt=function(e,t){var o=this.__data__;if(o instanceof He){var n=o.__data__;if(!bt||n.length<Ft-1)return n.push([e,t]),this.size=++o.size,this;o=this.__data__=new zt(n)}return o.set(e,t),this.size=o.size,this};function Lt(e){var t=this.__data__=new He(e);this.size=t.size}Lt.prototype.clear=We,Lt.prototype.delete=Ge,Lt.prototype.get=Ke,Lt.prototype.has=Ye,Lt.prototype.set=Mt;const Pt=Lt,Rt=function(e,t){for(var o=-1,n=null==e?0:e.length;++o<n&&!1!==t(e[o],o,e););return e},qt=function(){try{var e=pt(Object,"defineProperty");return e({},"",{}),e}catch(e){}}(),$t=function(e,t,o){"__proto__"==t&&qt?qt(e,t,{configurable:!0,enumerable:!0,value:o,writable:!0}):e[t]=o};var Ut=Object.prototype.hasOwnProperty;const Ht=function(e,t,o){var n=e[t];Ut.call(e,t)&&Fe(n,o)&&(void 0!==o||t in e)||$t(e,t,o)},Wt=function(e,t,o,n){var a=!o;o||(o={});for(var r=-1,i=t.length;++r<i;){var l=t[r],s=n?n(o[l],e[l],l,o,e):void 0;void 0===s&&(s=e[l]),a?$t(o,l,s):Ht(o,l,s)}return o},Gt=function(e,t){for(var o=-1,n=Array(e);++o<e;)n[o]=t(o);return n};var Kt="[object Arguments]";const Yt=function(e){return Oe(e)&&Ce(e)==Kt};var Qt=Object.prototype,Jt=Qt.hasOwnProperty,Zt=Qt.propertyIsEnumerable;const Xt=Yt(function(){return arguments}())?Yt:function(e){return Oe(e)&&Jt.call(e,"callee")&&!Zt.call(e,"callee")},eo=function(){return!1};var to=t&&!t.nodeType&&t,oo=to&&"object"==typeof n&&n&&!n.nodeType&&n,no=oo&&oo.exports===to?ce.Buffer:void 0;const ao=(no?no.isBuffer:void 0)||eo;var ro=9007199254740991,io=/^(?:0|[1-9]\d*)$/;const lo=function(e,t){var o=typeof e;return!!(t=null==t?ro:t)&&("number"==o||"symbol"!=o&&io.test(e))&&e>-1&&e%1==0&&e<t};var so=9007199254740991;const co=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=so};var uo={};uo["[object Float32Array]"]=uo["[object Float64Array]"]=uo["[object Int8Array]"]=uo["[object Int16Array]"]=uo["[object Int32Array]"]=uo["[object Uint8Array]"]=uo["[object Uint8ClampedArray]"]=uo["[object Uint16Array]"]=uo["[object Uint32Array]"]=!0,uo["[object Arguments]"]=uo["[object Array]"]=uo["[object ArrayBuffer]"]=uo["[object Boolean]"]=uo["[object DataView]"]=uo["[object Date]"]=uo["[object Error]"]=uo["[object Function]"]=uo["[object Map]"]=uo["[object Number]"]=uo["[object Object]"]=uo["[object RegExp]"]=uo["[object Set]"]=uo["[object String]"]=uo["[object WeakMap]"]=!1;const mo=function(e){return Oe(e)&&co(e.length)&&!!uo[Ce(e)]},ho=function(e){return function(t){return e(t)}};var po=t&&!t.nodeType&&t,bo=po&&"object"==typeof n&&n&&!n.nodeType&&n,go=bo&&bo.exports===po&&le.process;const fo=function(){try{var e=bo&&bo.require&&bo.require("util").types;return e||go&&go.binding&&go.binding("util")}catch(e){}}();var vo=fo&&fo.isTypedArray;const wo=vo?ho(vo):mo;var ko=Object.prototype.hasOwnProperty;const Co=function(e,t){var o=ye(e),n=!o&&Xt(e),a=!o&&!n&&ao(e),r=!o&&!n&&!a&&wo(e),i=o||n||a||r,l=i?Gt(e.length,String):[],s=l.length;for(var c in e)!t&&!ko.call(e,c)||i&&("length"==c||a&&("offset"==c||"parent"==c)||r&&("buffer"==c||"byteLength"==c||"byteOffset"==c)||lo(c,s))||l.push(c);return l};var yo=Object.prototype;const Oo=function(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||yo)},jo=Ve(Object.keys,Object);var xo=Object.prototype.hasOwnProperty;const _o=function(e){if(!Oo(e))return jo(e);var t=[];for(var o in Object(e))xo.call(e,o)&&"constructor"!=o&&t.push(o);return t},Vo=function(e){return null!=e&&co(e.length)&&!et(e)},Ao=function(e){return Vo(e)?Co(e):_o(e)},No=function(e,t){return e&&Wt(t,Ao(t),e)},Do=function(e){var t=[];if(null!=e)for(var o in Object(e))t.push(o);return t};var Eo=Object.prototype.hasOwnProperty;const To=function(e){if(!U(e))return Do(e);var t=Oo(e),o=[];for(var n in e)("constructor"!=n||!t&&Eo.call(e,n))&&o.push(n);return o},So=function(e){return Vo(e)?Co(e,!0):To(e)},Bo=function(e,t){return e&&Wt(t,So(t),e)};var Io=t&&!t.nodeType&&t,zo=Io&&"object"==typeof n&&n&&!n.nodeType&&n,Fo=zo&&zo.exports===Io?ce.Buffer:void 0,Mo=Fo?Fo.allocUnsafe:void 0;const Lo=function(e,t){if(t)return e.slice();var o=e.length,n=Mo?Mo(o):new e.constructor(o);return e.copy(n),n},Po=function(e,t){var o=-1,n=e.length;for(t||(t=Array(n));++o<n;)t[o]=e[o];return t},Ro=function(e,t){for(var o=-1,n=null==e?0:e.length,a=0,r=[];++o<n;){var i=e[o];t(i,o,e)&&(r[a++]=i)}return r},qo=function(){return[]};var $o=Object.prototype.propertyIsEnumerable,Uo=Object.getOwnPropertySymbols;const Ho=Uo?function(e){return null==e?[]:(e=Object(e),Ro(Uo(e),(function(t){return $o.call(e,t)})))}:qo,Wo=function(e,t){return Wt(e,Ho(e),t)},Go=function(e,t){for(var o=-1,n=t.length,a=e.length;++o<n;)e[a+o]=t[o];return e},Ko=Object.getOwnPropertySymbols?function(e){for(var t=[];e;)Go(t,Ho(e)),e=Ae(e);return t}:qo,Yo=function(e,t){return Wt(e,Ko(e),t)},Qo=function(e,t,o){var n=t(e);return ye(e)?n:Go(n,o(e))},Jo=function(e){return Qo(e,Ao,Ho)},Zo=function(e){return Qo(e,So,Ko)},Xo=pt(ce,"DataView"),en=pt(ce,"Promise"),tn=pt(ce,"Set"),on=pt(ce,"WeakMap");var nn="[object Map]",an="[object Promise]",rn="[object Set]",ln="[object WeakMap]",sn="[object DataView]",cn=rt(Xo),dn=rt(bt),un=rt(en),mn=rt(tn),hn=rt(on),pn=Ce;(Xo&&pn(new Xo(new ArrayBuffer(1)))!=sn||bt&&pn(new bt)!=nn||en&&pn(en.resolve())!=an||tn&&pn(new tn)!=rn||on&&pn(new on)!=ln)&&(pn=function(e){var t=Ce(e),o="[object Object]"==t?e.constructor:void 0,n=o?rt(o):"";if(n)switch(n){case cn:return sn;case dn:return nn;case un:return an;case mn:return rn;case hn:return ln}return t});const bn=pn;var gn=Object.prototype.hasOwnProperty;const fn=function(e){var t=e.length,o=new e.constructor(t);return t&&"string"==typeof e[0]&&gn.call(e,"index")&&(o.index=e.index,o.input=e.input),o},vn=ce.Uint8Array,wn=function(e){var t=new e.constructor(e.byteLength);return new vn(t).set(new vn(e)),t},kn=function(e,t){var o=t?wn(e.buffer):e.buffer;return new e.constructor(o,e.byteOffset,e.byteLength)};var Cn=/\w*$/;const yn=function(e){var t=new e.constructor(e.source,Cn.exec(e));return t.lastIndex=e.lastIndex,t};var On=de?de.prototype:void 0,jn=On?On.valueOf:void 0;const xn=function(e){return jn?Object(jn.call(e)):{}},_n=function(e,t){var o=t?wn(e.buffer):e.buffer;return new e.constructor(o,e.byteOffset,e.length)};var Vn="[object Boolean]",An="[object Date]",Nn="[object Map]",Dn="[object Number]",En="[object RegExp]",Tn="[object Set]",Sn="[object String]",Bn="[object Symbol]",In="[object ArrayBuffer]",zn="[object DataView]",Fn="[object Float32Array]",Mn="[object Float64Array]",Ln="[object Int8Array]",Pn="[object Int16Array]",Rn="[object Int32Array]",qn="[object Uint8Array]",$n="[object Uint8ClampedArray]",Un="[object Uint16Array]",Hn="[object Uint32Array]";const Wn=function(e,t,o){var n=e.constructor;switch(t){case In:return wn(e);case Vn:case An:return new n(+e);case zn:return kn(e,o);case Fn:case Mn:case Ln:case Pn:case Rn:case qn:case $n:case Un:case Hn:return _n(e,o);case Nn:return new n;case Dn:case Sn:return new n(e);case En:return yn(e);case Tn:return new n;case Bn:return xn(e)}};var Gn=Object.create;const Kn=function(){function e(){}return function(t){if(!U(t))return{};if(Gn)return Gn(t);e.prototype=t;var o=new e;return e.prototype=void 0,o}}(),Yn=function(e){return"function"!=typeof e.constructor||Oo(e)?{}:Kn(Ae(e))};var Qn="[object Map]";const Jn=function(e){return Oe(e)&&bn(e)==Qn};var Zn=fo&&fo.isMap;const Xn=Zn?ho(Zn):Jn;var ea="[object Set]";const ta=function(e){return Oe(e)&&bn(e)==ea};var oa=fo&&fo.isSet;const na=oa?ho(oa):ta;var aa=1,ra=2,ia=4,la="[object Arguments]",sa="[object Function]",ca="[object GeneratorFunction]",da="[object Object]",ua={};ua[la]=ua["[object Array]"]=ua["[object ArrayBuffer]"]=ua["[object DataView]"]=ua["[object Boolean]"]=ua["[object Date]"]=ua["[object Float32Array]"]=ua["[object Float64Array]"]=ua["[object Int8Array]"]=ua["[object Int16Array]"]=ua["[object Int32Array]"]=ua["[object Map]"]=ua["[object Number]"]=ua[da]=ua["[object RegExp]"]=ua["[object Set]"]=ua["[object String]"]=ua["[object Symbol]"]=ua["[object Uint8Array]"]=ua["[object Uint8ClampedArray]"]=ua["[object Uint16Array]"]=ua["[object Uint32Array]"]=!0,ua["[object Error]"]=ua[sa]=ua["[object WeakMap]"]=!1;const ma=function e(t,o,n,a,r,i){var l,s=o&aa,c=o&ra,d=o&ia;if(n&&(l=r?n(t,a,r,i):n(t)),void 0!==l)return l;if(!U(t))return t;var u=ye(t);if(u){if(l=fn(t),!s)return Po(t,l)}else{var m=bn(t),h=m==sa||m==ca;if(ao(t))return Lo(t,s);if(m==da||m==la||h&&!r){if(l=c||h?{}:Yn(t),!s)return c?Yo(t,Bo(l,t)):Wo(t,No(l,t))}else{if(!ua[m])return r?t:{};l=Wn(t,m,s)}}i||(i=new Pt);var p=i.get(t);if(p)return p;i.set(t,l),na(t)?t.forEach((function(a){l.add(e(a,o,n,a,t,i))})):Xn(t)&&t.forEach((function(a,r){l.set(r,e(a,o,n,r,t,i))}));var b=u?void 0:(d?c?Zo:Jo:c?So:Ao)(t);return Rt(b||t,(function(a,r){b&&(a=t[r=a]),Ht(l,r,e(a,o,n,r,t,i))})),l};var ha=1,pa=4;const ba=function(e,t){return ma(e,ha|pa,t="function"==typeof t?t:void 0)},ga=function(e){return Oe(e)&&1===e.nodeType&&!Ie(e)};class fa{constructor(e,t){this._config={},t&&this.define(va(t)),e&&this._setObjectToTarget(this._config,e)}set(e,t){this._setToTarget(this._config,e,t)}define(e,t){this._setToTarget(this._config,e,t,!0)}get(e){return this._getFromSource(this._config,e)}*names(){for(const e of Object.keys(this._config))yield e}_setToTarget(e,t,o,n=!1){if(Ie(t))return void this._setObjectToTarget(e,t,n);const a=t.split(".");t=a.pop();for(const r of a)Ie(e[r])||(e[r]={}),e=e[r];if(Ie(o))return Ie(e[t])||(e[t]={}),e=e[t],void this._setObjectToTarget(e,o,n);n&&void 0!==e[t]||(e[t]=o)}_getFromSource(e,t){const o=t.split(".");t=o.pop();for(const n of o){if(!Ie(e[n])){e=null;break}e=e[n]}return e?va(e[t]):void 0}_setObjectToTarget(e,t,o){Object.keys(t).forEach(n=>{this._setToTarget(e,n,t[n],o)})}}function va(e){return ba(e,wa)}function wa(e){return ga(e)?e:void 0}function ka(e){if(e){if(e.defaultView)return e instanceof e.defaultView.Document;if(e.ownerDocument&&e.ownerDocument.defaultView)return e instanceof e.ownerDocument.defaultView.Node}return!1}function Ca(e){const t=Object.prototype.toString.apply(e);return"[object Window]"==t||"[object global]"==t}const ya=Oa(z());function Oa(e){return e?class extends e{listenTo(e,t,o,n={}){if(ka(e)||Ca(e)){const a={capture:!!n.useCapture,passive:!!n.usePassive},r=this._getProxyEmitter(e,a)||new ja(e,a);this.listenTo(r,t,o,n)}else super.listenTo(e,t,o,n)}stopListening(e,t,o){if(ka(e)||Ca(e)){const n=this._getAllProxyEmitters(e);for(const e of n)this.stopListening(e,t,o)}else super.stopListening(e,t,o)}_getProxyEmitter(e,t){return function(e,t){const o=e[T];return o&&o[t]?o[t].emitter:null}(this,xa(e,t))}_getAllProxyEmitters(e){return[{capture:!1,passive:!1},{capture:!1,passive:!0},{capture:!0,passive:!1},{capture:!0,passive:!0}].map(t=>this._getProxyEmitter(e,t)).filter(e=>!!e)}}:ya}["_getProxyEmitter","_getAllProxyEmitters","on","once","off","listenTo","stopListening","fire","delegate","stopDelegating","_addEventListener","_removeEventListener"].forEach(e=>{Oa[e]=ya.prototype[e]});class ja extends(z()){constructor(e,t){super(),F(this,xa(e,t)),this._domNode=e,this._options=t}attach(e){if(this._domListeners&&this._domListeners[e])return;const t=this._createDomListener(e);this._domNode.addEventListener(e,t,this._options),this._domListeners||(this._domListeners={}),this._domListeners[e]=t}detach(e){let t;!this._domListeners[e]||(t=this._events[e])&&t.callbacks.length||this._domListeners[e].removeListener()}_addEventListener(e,t,o){this.attach(e),z().prototype._addEventListener.call(this,e,t,o)}_removeEventListener(e,t){z().prototype._removeEventListener.call(this,e,t),this.detach(e)}_createDomListener(e){const t=t=>{this.fire(e,t)};return t.removeListener=()=>{this._domNode.removeEventListener(e,t,this._options),delete this._domListeners[e]},t}}function xa(e,t){let o=function(e){return e["data-ck-expando"]||(e["data-ck-expando"]=C())}(e);for(const n of Object.keys(t).sort())t[n]&&(o+="-"+n);return o}let _a;try{_a={window:window,document:document}}catch(o){_a={window:{},document:{}}}const Va=_a;function Aa(e){const t=[];let o=e;for(;o&&o.nodeType!=Node.DOCUMENT_NODE;)t.unshift(o),o=o.parentNode;return t}function Na(e){return"[object Text]"==Object.prototype.toString.call(e)}function Da(e){return"[object Range]"==Object.prototype.toString.apply(e)}function Ea(e){const t=e.ownerDocument.defaultView.getComputedStyle(e);return{top:parseInt(t.borderTopWidth,10),right:parseInt(t.borderRightWidth,10),bottom:parseInt(t.borderBottomWidth,10),left:parseInt(t.borderLeftWidth,10)}}const Ta=["top","right","bottom","left","width","height"];class Sa{constructor(e){const t=Da(e);if(Object.defineProperty(this,"_source",{value:e._source||e,writable:!0,enumerable:!1}),za(e)||t)if(t){const t=Sa.getDomRangeRects(e);Ba(this,Sa.getBoundingRect(t))}else Ba(this,e.getBoundingClientRect());else if(Ca(e)){const{innerWidth:t,innerHeight:o}=e;Ba(this,{top:0,right:t,bottom:o,left:0,width:t,height:o})}else Ba(this,e)}clone(){return new Sa(this)}moveTo(e,t){return this.top=t,this.right=e+this.width,this.bottom=t+this.height,this.left=e,this}moveBy(e,t){return this.top+=t,this.right+=e,this.left+=e,this.bottom+=t,this}getIntersection(e){const t={top:Math.max(this.top,e.top),right:Math.min(this.right,e.right),bottom:Math.min(this.bottom,e.bottom),left:Math.max(this.left,e.left),width:0,height:0};return t.width=t.right-t.left,t.height=t.bottom-t.top,t.width<0||t.height<0?null:new Sa(t)}getIntersectionArea(e){const t=this.getIntersection(e);return t?t.getArea():0}getArea(){return this.width*this.height}getVisible(){const e=this._source;let t=this.clone();if(!Ia(e)){let o=e.parentNode||e.commonAncestorContainer;for(;o&&!Ia(o);){const e=new Sa(o),n=t.getIntersection(e);if(!n)return null;n.getArea()<t.getArea()&&(t=n),o=o.parentNode}}return t}isEqual(e){for(const t of Ta)if(this[t]!==e[t])return!1;return!0}contains(e){const t=this.getIntersection(e);return!(!t||!t.isEqual(e))}excludeScrollbarsAndBorders(){const e=this._source;let t,o,n;if(Ca(e))t=e.innerWidth-e.document.documentElement.clientWidth,o=e.innerHeight-e.document.documentElement.clientHeight,n=e.getComputedStyle(e.document.documentElement).direction;else{const a=Ea(e);t=e.offsetWidth-e.clientWidth-a.left-a.right,o=e.offsetHeight-e.clientHeight-a.top-a.bottom,n=e.ownerDocument.defaultView.getComputedStyle(e).direction,this.left+=a.left,this.top+=a.top,this.right-=a.right,this.bottom-=a.bottom,this.width=this.right-this.left,this.height=this.bottom-this.top}return this.width-=t,"ltr"===n?this.right-=t:this.left+=t,this.height-=o,this.bottom-=o,this}static getDomRangeRects(e){const t=[],o=Array.from(e.getClientRects());if(o.length)for(const n of o)t.push(new Sa(n));else{let o=e.startContainer;Na(o)&&(o=o.parentNode);const n=new Sa(o.getBoundingClientRect());n.right=n.left,n.width=0,t.push(n)}return t}static getBoundingRect(e){const t={left:Number.POSITIVE_INFINITY,top:Number.POSITIVE_INFINITY,right:Number.NEGATIVE_INFINITY,bottom:Number.NEGATIVE_INFINITY,width:0,height:0};let o=0;for(const n of e)o++,t.left=Math.min(t.left,n.left),t.top=Math.min(t.top,n.top),t.right=Math.max(t.right,n.right),t.bottom=Math.max(t.bottom,n.bottom);return 0==o?null:(t.width=t.right-t.left,t.height=t.bottom-t.top,new Sa(t))}}function Ba(e,t){for(const o of Ta)e[o]=t[o]}function Ia(e){return!!za(e)&&e===e.ownerDocument.body}function za(e){return null!==e&&"object"==typeof e&&1===e.nodeType&&"function"==typeof e.getBoundingClientRect}class Fa{constructor(e,t){Fa._observerInstance||Fa._createObserver(),this._element=e,this._callback=t,Fa._addElementCallback(e,t),Fa._observerInstance.observe(e)}destroy(){Fa._deleteElementCallback(this._element,this._callback)}static _addElementCallback(e,t){Fa._elementCallbacks||(Fa._elementCallbacks=new Map);let o=Fa._elementCallbacks.get(e);o||(o=new Set,Fa._elementCallbacks.set(e,o)),o.add(t)}static _deleteElementCallback(e,t){const o=Fa._getElementCallbacks(e);o&&(o.delete(t),o.size||(Fa._elementCallbacks.delete(e),Fa._observerInstance.unobserve(e))),Fa._elementCallbacks&&!Fa._elementCallbacks.size&&(Fa._observerInstance=null,Fa._elementCallbacks=null)}static _getElementCallbacks(e){return Fa._elementCallbacks?Fa._elementCallbacks.get(e):null}static _createObserver(){Fa._observerInstance=new Va.window.ResizeObserver(e=>{for(const t of e){const e=Fa._getElementCallbacks(t.target);if(e)for(const o of e)o(t)}})}}function Ma(e,t){e instanceof HTMLTextAreaElement&&(e.value=t),e.innerHTML=t}function La(e){return t=>t+e}function Pa(e){let t=0;for(;e.previousSibling;)e=e.previousSibling,t++;return t}function Ra(e,t,o){e.insertBefore(o,e.childNodes[t]||null)}function qa(e){return e&&e.nodeType===Node.COMMENT_NODE}function $a(e){return!!(e&&e.getClientRects&&e.getClientRects().length)}function Ua({element:e,target:t,positions:o,limiter:n,fitInViewport:a,viewportOffsetConfig:r}){et(t)&&(t=t()),et(n)&&(n=n());const i=function(e){return e&&e.parentNode?e.offsetParent===Va.document.body?null:e.offsetParent:null}(e),l=new Sa(e),s=new Sa(t);let c;const d=a&&function(e){e=Object.assign({top:0,bottom:0,left:0,right:0},e);const t=new Sa(Va.window);return t.top+=e.top,t.height-=e.top,t.bottom-=e.bottom,t.height-=e.bottom,t}(r)||null,u={targetRect:s,elementRect:l,positionedElementAncestor:i,viewportRect:d};if(n||a){const e=n&&new Sa(n).getVisible();Object.assign(u,{limiterRect:e,viewportRect:d}),c=function(e,t){const{elementRect:o}=t,n=o.getArea(),a=e.map(e=>new Wa(e,t)).filter(e=>!!e.name);let r=0,i=null;for(const l of a){const{limiterIntersectionArea:e,viewportIntersectionArea:t}=l;if(e===n)return l;const o=t**2+e**2;o>r&&(r=o,i=l)}return i}(o,u)||new Wa(o[0],u)}else c=new Wa(o[0],u);return c}function Ha(e){const{scrollX:t,scrollY:o}=Va.window;return e.clone().moveBy(t,o)}Fa._observerInstance=null,Fa._elementCallbacks=null;class Wa{constructor(e,t){const o=e(t.targetRect,t.elementRect,t.viewportRect);if(!o)return;const{left:n,top:a,name:r,config:i}=o;this.name=r,this.config=i,this._positioningFunctionCorrdinates={left:n,top:a},this._options=t}get left(){return this._absoluteRect.left}get top(){return this._absoluteRect.top}get limiterIntersectionArea(){const e=this._options.limiterRect;if(e){const t=this._options.viewportRect;if(!t)return e.getIntersectionArea(this._rect);{const o=e.getIntersection(t);if(o)return o.getIntersectionArea(this._rect)}}return 0}get viewportIntersectionArea(){const e=this._options.viewportRect;return e?e.getIntersectionArea(this._rect):0}get _rect(){return this._cachedRect||(this._cachedRect=this._options.elementRect.clone().moveTo(this._positioningFunctionCorrdinates.left,this._positioningFunctionCorrdinates.top)),this._cachedRect}get _absoluteRect(){return this._cachedAbsoluteRect||(this._cachedAbsoluteRect=Ha(this._rect),this._options.positionedElementAncestor&&function(e,t){const o=Ha(new Sa(t)),n=Ea(t);let a=0,r=0;a-=o.left,r-=o.top,a+=t.scrollLeft,r+=t.scrollTop,a-=n.left,r-=n.top,e.moveBy(a,r)}(this._cachedAbsoluteRect,this._options.positionedElementAncestor)),this._cachedAbsoluteRect}}function Ga(e){const t=e.parentNode;t&&t.removeChild(e)}function Ka(e,t,o){const n=t.clone().moveBy(0,o),a=t.clone().moveBy(0,-o),r=new Sa(e).excludeScrollbarsAndBorders();if(![a,n].every(e=>r.contains(e))){let{scrollX:i,scrollY:l}=e;Ja(a,r)?l-=r.top-t.top+o:Qa(n,r)&&(l+=t.bottom-r.bottom+o),Za(t,r)?i-=r.left-t.left+o:Xa(t,r)&&(i+=t.right-r.right+o),e.scrollTo(i,l)}}function Ya(e,t){const o=er(e);let n,a;for(;e!=o.document.body;)a=t(),n=new Sa(e).excludeScrollbarsAndBorders(),n.contains(a)||(Ja(a,n)?e.scrollTop-=n.top-a.top:Qa(a,n)&&(e.scrollTop+=a.bottom-n.bottom),Za(a,n)?e.scrollLeft-=n.left-a.left:Xa(a,n)&&(e.scrollLeft+=a.right-n.right)),e=e.parentNode}function Qa(e,t){return e.bottom>t.bottom}function Ja(e,t){return e.top<t.top}function Za(e,t){return e.left<t.left}function Xa(e,t){return e.right>t.right}function er(e){return Da(e)?e.startContainer.ownerDocument.defaultView:e.ownerDocument.defaultView}function tr(e){if(Da(e)){let t=e.commonAncestorContainer;return Na(t)&&(t=t.parentNode),t}return e.parentNode}function or(e,t){const o=er(e),n=new Sa(e);if(o===t)return n;{let e=o;for(;e!=t;){const t=e.frameElement,o=new Sa(t).excludeScrollbarsAndBorders();n.moveBy(o.left,o.top),e=e.parent}}return n}const nr={ctrl:"⌃",cmd:"⌘",alt:"⌥",shift:"⇧"},ar={ctrl:"Ctrl+",alt:"Alt+",shift:"Shift+"},rr=function(){const e={arrowleft:37,arrowup:38,arrowright:39,arrowdown:40,backspace:8,delete:46,enter:13,space:32,esc:27,tab:9,ctrl:1114112,shift:2228224,alt:4456448,cmd:8912896};for(let t=65;t<=90;t++)e[String.fromCharCode(t).toLowerCase()]=t;for(let t=48;t<=57;t++)e[t-48]=t;for(let t=112;t<=123;t++)e["f"+(t-111)]=t;for(const t of"`-=[];',./\\")e[t]=t.charCodeAt(0);return e}(),ir=Object.fromEntries(Object.entries(rr).map(([e,t])=>[t,e.charAt(0).toUpperCase()+e.slice(1)]));function lr(e){let t;if("string"==typeof e){if(t=rr[e.toLowerCase()],!t)throw new x("keyboard-unknown-key",null,{key:e})}else t=e.keyCode+(e.altKey?rr.alt:0)+(e.ctrlKey?rr.ctrl:0)+(e.shiftKey?rr.shift:0)+(e.metaKey?rr.cmd:0);return t}function sr(e){return"string"==typeof e&&(e=function(e){return e.split("+").map(e=>e.trim())}(e)),e.map(e=>"string"==typeof e?function(e){if(e.endsWith("!"))return lr(e.slice(0,-1));const t=lr(e);return u.isMac&&t==rr.ctrl?rr.cmd:t}(e):e).reduce((e,t)=>t+e,0)}function cr(e){let t=sr(e);return Object.entries(u.isMac?nr:ar).reduce((e,[o,n])=>(0!=(t&rr[o])&&(t&=~rr[o],e+=n),e),"")+(t?ir[t]:"")}function dr(e,t){const o="ltr"===t;switch(e){case rr.arrowleft:return o?"left":"right";case rr.arrowright:return o?"right":"left";case rr.arrowup:return"up";case rr.arrowdown:return"down"}}function ur(e){return Array.isArray(e)?e:[e]}function mr(e,t,o=1){if("number"!=typeof o)throw new x("translation-service-quantity-not-a-number",null,{quantity:o});const n=Object.keys(Va.window.CKEDITOR_TRANSLATIONS).length;1===n&&(e=Object.keys(Va.window.CKEDITOR_TRANSLATIONS)[0]);const a=t.id||t.string;if(0===n||!function(e,t){return!!Va.window.CKEDITOR_TRANSLATIONS[e]&&!!Va.window.CKEDITOR_TRANSLATIONS[e].dictionary[t]}(e,a))return 1!==o?t.plural:t.string;const r=Va.window.CKEDITOR_TRANSLATIONS[e].dictionary,i=Va.window.CKEDITOR_TRANSLATIONS[e].getPluralForm||(e=>1===e?0:1),l=r[a];return"string"==typeof l?l:l[Number(i(o))]}Va.window.CKEDITOR_TRANSLATIONS||(Va.window.CKEDITOR_TRANSLATIONS={});const hr=["ar","ara","fa","per","fas","he","heb","ku","kur","ug","uig"];function pr(e){return hr.includes(e)?"rtl":"ltr"}class br{constructor({uiLanguage:e="en",contentLanguage:t}={}){this.uiLanguage=e,this.contentLanguage=t||this.uiLanguage,this.uiLanguageDirection=pr(this.uiLanguage),this.contentLanguageDirection=pr(this.contentLanguage),this.t=(e,t)=>this._t(e,t)}get language(){return console.warn("locale-deprecated-language-property: The Locale#language property has been deprecated and will be removed in the near future. Please use #uiLanguage and #contentLanguage properties instead."),this.uiLanguage}_t(e,t=[]){t=ur(t),"string"==typeof e&&(e={string:e});const o=e.plural?t[0]:1;return function(e,t){return e.replace(/%(\d+)/g,(e,o)=>o<t.length?t[o]:e)}(mr(this.uiLanguage,e,o),t)}}class gr extends(z()){constructor(e={},t={}){super();const o=ie(e);if(o||(t=e),this._items=[],this._itemMap=new Map,this._idProperty=t.idProperty||"id",this._bindToExternalToInternalMap=new WeakMap,this._bindToInternalToExternalMap=new WeakMap,this._skippedIndexesFromExternal=[],o)for(const n of e)this._items.push(n),this._itemMap.set(this._getItemIdBeforeAdding(n),n)}get length(){return this._items.length}get first(){return this._items[0]||null}get last(){return this._items[this.length-1]||null}add(e,t){return this.addMany([e],t)}addMany(e,t){if(void 0===t)t=this._items.length;else if(t>this._items.length||t<0)throw new x("collection-add-item-invalid-index",this);let o=0;for(const n of e){const e=this._getItemIdBeforeAdding(n),a=t+o;this._items.splice(a,0,n),this._itemMap.set(e,n),this.fire("add",n,a),o++}return this.fire("change",{added:e,removed:[],index:t}),this}get(e){let t;if("string"==typeof e)t=this._itemMap.get(e);else{if("number"!=typeof e)throw new x("collection-get-invalid-arg",this);t=this._items[e]}return t||null}has(e){if("string"==typeof e)return this._itemMap.has(e);{const t=e[this._idProperty];return t&&this._itemMap.has(t)}}getIndex(e){let t;return t="string"==typeof e?this._itemMap.get(e):e,t?this._items.indexOf(t):-1}remove(e){const[t,o]=this._remove(e);return this.fire("change",{added:[],removed:[t],index:o}),t}map(e,t){return this._items.map(e,t)}find(e,t){return this._items.find(e,t)}filter(e,t){return this._items.filter(e,t)}clear(){this._bindToCollection&&(this.stopListening(this._bindToCollection),this._bindToCollection=null);const e=Array.from(this._items);for(;this.length;)this._remove(0);this.fire("change",{added:[],removed:e,index:0})}bindTo(e){if(this._bindToCollection)throw new x("collection-bind-to-rebind",this);return this._bindToCollection=e,{as:e=>{this._setUpBindToBinding(t=>new e(t))},using:e=>{"function"==typeof e?this._setUpBindToBinding(e):this._setUpBindToBinding(t=>t[e])}}}_setUpBindToBinding(e){const t=this._bindToCollection,o=(o,n,a)=>{const r=t._bindToCollection==this,i=t._bindToInternalToExternalMap.get(n);if(r&&i)this._bindToExternalToInternalMap.set(n,i),this._bindToInternalToExternalMap.set(i,n);else{const o=e(n);if(!o)return void this._skippedIndexesFromExternal.push(a);let r=a;for(const e of this._skippedIndexesFromExternal)a>e&&r--;for(const e of t._skippedIndexesFromExternal)r>=e&&r++;this._bindToExternalToInternalMap.set(n,o),this._bindToInternalToExternalMap.set(o,n),this.add(o,r);for(let e=0;e<t._skippedIndexesFromExternal.length;e++)r<=t._skippedIndexesFromExternal[e]&&t._skippedIndexesFromExternal[e]++}};for(const n of t)o(0,n,t.getIndex(n));this.listenTo(t,"add",o),this.listenTo(t,"remove",(e,t,o)=>{const n=this._bindToExternalToInternalMap.get(t);n&&this.remove(n),this._skippedIndexesFromExternal=this._skippedIndexesFromExternal.reduce((e,t)=>(o<t&&e.push(t-1),o>t&&e.push(t),e),[])})}_getItemIdBeforeAdding(e){const t=this._idProperty;let o;if(t in e){if(o=e[t],"string"!=typeof o)throw new x("collection-add-invalid-id",this);if(this.get(o))throw new x("collection-add-item-already-exists",this)}else e[t]=o=C();return o}_remove(e){let t,o,n,a=!1;const r=this._idProperty;if("string"==typeof e?(o=e,n=this._itemMap.get(o),a=!n,n&&(t=this._items.indexOf(n))):"number"==typeof e?(t=e,n=this._items[t],a=!n,n&&(o=n[r])):(n=e,o=n[r],t=this._items.indexOf(n),a=-1==t||!this._itemMap.get(o)),a)throw new x("collection-remove-404",this);this._items.splice(t,1),this._itemMap.delete(o);const i=this._bindToInternalToExternalMap.get(n);return this._bindToInternalToExternalMap.delete(n),this._bindToExternalToInternalMap.delete(i),this.fire("remove",n,t),[n,t]}[Symbol.iterator](){return this._items[Symbol.iterator]()}}function fr(e){const t=e.next();return t.done?null:t.value}class vr extends(Oa(J())){constructor(){super(),this._elements=new Set,this._nextEventLoopTimeout=null,this.set("isFocused",!1),this.set("focusedElement",null)}add(e){if(this._elements.has(e))throw new x("focustracker-add-element-already-exist",this);this.listenTo(e,"focus",()=>this._focus(e),{useCapture:!0}),this.listenTo(e,"blur",()=>this._blur(),{useCapture:!0}),this._elements.add(e)}remove(e){e===this.focusedElement&&this._blur(),this._elements.has(e)&&(this.stopListening(e),this._elements.delete(e))}destroy(){this.stopListening()}_focus(e){clearTimeout(this._nextEventLoopTimeout),this.focusedElement=e,this.isFocused=!0}_blur(){clearTimeout(this._nextEventLoopTimeout),this._nextEventLoopTimeout=setTimeout(()=>{this.focusedElement=null,this.isFocused=!1},0)}}class wr{constructor(){this._listener=new(Oa())}listenTo(e){this._listener.listenTo(e,"keydown",(e,t)=>{this._listener.fire("_keydown:"+lr(t),t)})}set(e,t,o={}){const n=sr(e),a=o.priority;this._listener.listenTo(this._listener,"_keydown:"+n,(e,o)=>{t(o,()=>{o.preventDefault(),o.stopPropagation(),e.stop()}),e.return=!0},{priority:a})}press(e){return!!this._listener.fire("_keydown:"+lr(e),e)}destroy(){this._listener.stopListening()}}function kr(e){return ie(e)?new Map(e):function(e){const t=new Map;for(const o in e)t.set(o,e[o]);return t}(e)}const Cr=1e4;function yr(e,t){return!!(o=e.charAt(t-1))&&1==o.length&&/[\ud800-\udbff]/.test(o)&&function(e){return!!e&&1==e.length&&/[\udc00-\udfff]/.test(e)}(e.charAt(t));var o}function Or(e,t){return!!(o=e.charAt(t))&&1==o.length&&/[\u0300-\u036f\u1ab0-\u1aff\u1dc0-\u1dff\u20d0-\u20ff\ufe20-\ufe2f]/.test(o);var o}const jr=function(){const e=/\p{Regional_Indicator}{2}/u.source,t="(?:"+[/\p{Emoji}[\u{E0020}-\u{E007E}]+\u{E007F}/u,/\p{Emoji}\u{FE0F}?\u{20E3}/u,/\p{Emoji}\u{FE0F}/u,/(?=\p{General_Category=Other_Symbol})\p{Emoji}\p{Emoji_Modifier}*/u].map(e=>e.source).join("|")+")";return new RegExp(`${e}|${t}(?:${t})*`,"ug")}();function xr(e,t){const o=String(e).matchAll(jr);return Array.from(o).some(e=>e.index<t&&t<e.index+e[0].length)}class _r extends gr{constructor(e=[]){super(e,{idProperty:"viewUid"}),this.on("add",(e,t,o)=>{this._renderViewIntoCollectionParent(t,o)}),this.on("remove",(e,t)=>{t.element&&this._parentElement&&t.element.remove()}),this._parentElement=null}destroy(){this.map(e=>e.destroy())}setParent(e){this._parentElement=e;for(const t of this)this._renderViewIntoCollectionParent(t)}delegate(...e){if(!e.length||!e.every(e=>"string"==typeof e))throw new x("ui-viewcollection-delegate-wrong-events",this);return{to:t=>{for(const o of this)for(const n of e)o.delegate(n).to(t);this.on("add",(o,n)=>{for(const a of e)n.delegate(a).to(t)}),this.on("remove",(o,n)=>{for(const a of e)n.stopDelegating(a,t)})}}}_renderViewIntoCollectionParent(e,t){e.isRendered||e.render(),e.element&&this._parentElement&&this._parentElement.insertBefore(e.element,this._parentElement.children[t])}}var Vr=r(3379),Ar=r.n(Vr),Nr=r(6150),Dr={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};Ar()(Nr.Z,Dr),Nr.Z.locals;class Er extends(Oa(J())){constructor(e){super(),this.element=null,this.isRendered=!1,this.locale=e,this.t=e&&e.t,this._viewCollections=new gr,this._unboundChildren=this.createCollection(),this._viewCollections.on("add",(t,o)=>{o.locale=e,o.t=e&&e.t}),this.decorate("render")}get bindTemplate(){return this._bindTemplate?this._bindTemplate:this._bindTemplate=Tr.bind(this,this)}createCollection(e){const t=new _r(e);return this._viewCollections.add(t),t}registerChild(e){ie(e)||(e=[e]);for(const t of e)this._unboundChildren.add(t)}deregisterChild(e){ie(e)||(e=[e]);for(const t of e)this._unboundChildren.remove(t)}setTemplate(e){this.template=new Tr(e)}extendTemplate(e){Tr.extend(this.template,e)}render(){if(this.isRendered)throw new x("ui-view-render-already-rendered",this);this.template&&(this.element=this.template.render(),this.registerChild(this.template.getViews())),this.isRendered=!0}destroy(){this.stopListening(),this._viewCollections.map(e=>e.destroy()),this.template&&this.template._revertData&&this.template.revert(this.element)}}class Tr extends(z()){constructor(e){super(),Object.assign(this,qr(Rr(e))),this._isRendered=!1,this._revertData=null}render(){const e=this._renderNode({intoFragment:!0});return this._isRendered=!0,e}apply(e){return this._revertData={children:[],bindings:[],attributes:{}},this._renderNode({node:e,intoFragment:!1,isApplying:!0,revertData:this._revertData}),e}revert(e){if(!this._revertData)throw new x("ui-template-revert-not-applied",[this,e]);this._revertTemplateFromNode(e,this._revertData)}*getViews(){yield*function*e(t){if(t.children)for(const o of t.children)Kr(o)?yield o:Yr(o)&&(yield*e(o))}(this)}static bind(e,t){return{to:(o,n)=>new Br({eventNameOrFunction:o,attribute:o,observable:e,emitter:t,callback:n}),if:(o,n,a)=>new Ir({observable:e,emitter:t,attribute:o,valueIfTrue:n,callback:a})}}static extend(e,t){if(e._isRendered)throw new x("template-extend-render",[this,e]);Wr(e,qr(Rr(t)))}_renderNode(e){let t;if(t=e.node?this.tag&&this.text:this.tag?this.text:!this.text,t)throw new x("ui-template-wrong-syntax",this);return this.text?this._renderText(e):this._renderElement(e)}_renderElement(e){let t=e.node;return t||(t=e.node=document.createElementNS(this.ns||"http://www.w3.org/1999/xhtml",this.tag)),this._renderAttributes(e),this._renderElementChildren(e),this._setUpListeners(e),t}_renderText(e){let t=e.node;return t?e.revertData.text=t.textContent:t=e.node=document.createTextNode(""),zr(this.text)?this._bindToObservable({schema:this.text,updater:Mr(t),data:e}):t.textContent=this.text.join(""),t}_renderAttributes(e){if(!this.attributes)return;const t=e.node,o=e.revertData;for(const n in this.attributes){const a=t.getAttribute(n),r=this.attributes[n];o&&(o.attributes[n]=a);const i=Jr(r)?r[0].ns:null;if(zr(r)){const l=Jr(r)?r[0].value:r;o&&Zr(n)&&l.unshift(a),this._bindToObservable({schema:l,updater:Lr(t,n,i),data:e})}else if("style"==n&&"string"!=typeof r[0])this._renderStyleAttribute(r[0],e);else{o&&a&&Zr(n)&&r.unshift(a);const e=r.map(e=>e&&e.value||e).reduce((e,t)=>e.concat(t),[]).reduce(Ur,"");Gr(e)||t.setAttributeNS(i,n,e)}}}_renderStyleAttribute(e,t){const o=t.node;for(const n in e){const a=e[n];zr(a)?this._bindToObservable({schema:[a],updater:Pr(o,n),data:t}):o.style[n]=a}}_renderElementChildren(e){const t=e.node,o=e.intoFragment?document.createDocumentFragment():t,n=e.isApplying;let a=0;for(const r of this.children)if(Qr(r)){if(!n){r.setParent(t);for(const e of r)o.appendChild(e.element)}}else if(Kr(r))n||(r.isRendered||r.render(),o.appendChild(r.element));else if(ka(r))o.appendChild(r);else if(n){const t={children:[],bindings:[],attributes:{}};e.revertData.children.push(t),r._renderNode({intoFragment:!1,node:o.childNodes[a++],isApplying:!0,revertData:t})}else o.appendChild(r.render());e.intoFragment&&t.appendChild(o)}_setUpListeners(e){if(this.eventListeners)for(const t in this.eventListeners){const o=this.eventListeners[t].map(o=>{const[n,a]=t.split("@");return o.activateDomEventListener(n,a,e)});e.revertData&&e.revertData.bindings.push(o)}}_bindToObservable({schema:e,updater:t,data:o}){const n=o.revertData;Fr(e,t,o);const a=e.filter(e=>!Gr(e)).filter(e=>e.observable).map(n=>n.activateAttributeListener(e,t,o));n&&n.bindings.push(a)}_revertTemplateFromNode(e,t){for(const n of t.bindings)for(const e of n)e();if(t.text)return void(e.textContent=t.text);const o=e;for(const n in t.attributes){const e=t.attributes[n];null===e?o.removeAttribute(n):o.setAttribute(n,e)}for(let n=0;n<t.children.length;++n)this._revertTemplateFromNode(o.childNodes[n],t.children[n])}}class Sr{constructor(e){this.attribute=e.attribute,this.observable=e.observable,this.emitter=e.emitter,this.callback=e.callback}getValue(e){const t=this.observable[this.attribute];return this.callback?this.callback(t,e):t}activateAttributeListener(e,t,o){const n=()=>Fr(e,t,o);return this.emitter.listenTo(this.observable,"change:"+this.attribute,n),()=>{this.emitter.stopListening(this.observable,"change:"+this.attribute,n)}}}class Br extends Sr{constructor(e){super(e),this.eventNameOrFunction=e.eventNameOrFunction}activateDomEventListener(e,t,o){const n=(e,o)=>{t&&!o.target.matches(t)||("function"==typeof this.eventNameOrFunction?this.eventNameOrFunction(o):this.observable.fire(this.eventNameOrFunction,o))};return this.emitter.listenTo(o.node,e,n),()=>{this.emitter.stopListening(o.node,e,n)}}}class Ir extends Sr{constructor(e){super(e),this.valueIfTrue=e.valueIfTrue}getValue(e){return!Gr(super.getValue(e))&&(this.valueIfTrue||!0)}}function zr(e){return!!e&&(e.value&&(e=e.value),Array.isArray(e)?e.some(zr):e instanceof Sr)}function Fr(e,t,{node:o}){const n=function(e,t){return e.map(e=>e instanceof Sr?e.getValue(t):e)}(e,o);let a;a=1==e.length&&e[0]instanceof Ir?n[0]:n.reduce(Ur,""),Gr(a)?t.remove():t.set(a)}function Mr(e){return{set(t){e.textContent=t},remove(){e.textContent=""}}}function Lr(e,t,o){return{set(n){e.setAttributeNS(o,t,n)},remove(){e.removeAttributeNS(o,t)}}}function Pr(e,t){return{set(o){e.style[t]=o},remove(){e.style[t]=null}}}function Rr(e){return ba(e,e=>{if(e&&(e instanceof Sr||Yr(e)||Kr(e)||Qr(e)))return e})}function qr(e){if("string"==typeof e?e=function(e){return{text:[e]}}(e):e.text&&function(e){e.text=ur(e.text)}(e),e.on&&(e.eventListeners=function(e){for(const t in e)$r(e,t);return e}(e.on),delete e.on),!e.text){e.attributes&&function(e){for(const t in e)e[t].value&&(e[t].value=ur(e[t].value)),$r(e,t)}(e.attributes);const t=[];if(e.children)if(Qr(e.children))t.push(e.children);else for(const o of e.children)Yr(o)||Kr(o)||ka(o)?t.push(o):t.push(new Tr(o));e.children=t}return e}function $r(e,t){e[t]=ur(e[t])}function Ur(e,t){return Gr(t)?e:Gr(e)?t:`${e} ${t}`}function Hr(e,t){for(const o in t)e[o]?e[o].push(...t[o]):e[o]=t[o]}function Wr(e,t){if(t.attributes&&(e.attributes||(e.attributes={}),Hr(e.attributes,t.attributes)),t.eventListeners&&(e.eventListeners||(e.eventListeners={}),Hr(e.eventListeners,t.eventListeners)),t.text&&e.text.push(...t.text),t.children&&t.children.length){if(e.children.length!=t.children.length)throw new x("ui-template-extend-children-mismatch",e);let o=0;for(const n of t.children)Wr(e.children[o++],n)}}function Gr(e){return!e&&0!==e}function Kr(e){return e instanceof Er}function Yr(e){return e instanceof Tr}function Qr(e){return e instanceof _r}function Jr(e){return U(e[0])&&e[0].ns}function Zr(e){return"class"==e||"style"==e}class Xr extends _r{constructor(e,t=[]){super(t),this.locale=e}attachToDom(){this._bodyCollectionContainer=new Tr({tag:"div",attributes:{class:["ck","ck-reset_all","ck-body","ck-rounded-corners"],dir:this.locale.uiLanguageDirection},children:this}).render();let e=document.querySelector(".ck-body-wrapper");e||(e=_e(document,"div",{class:"ck-body-wrapper"}),document.body.appendChild(e)),e.appendChild(this._bodyCollectionContainer)}detachFromDom(){super.destroy(),this._bodyCollectionContainer&&this._bodyCollectionContainer.remove();const e=document.querySelector(".ck-body-wrapper");e&&0==e.childElementCount&&e.remove()}}var ei=r(1174),ti={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};Ar()(ei.Z,ti),ei.Z.locals;class oi extends Er{constructor(){super();const e=this.bindTemplate;this.set("content",""),this.set("viewBox","0 0 20 20"),this.set("fillColor",""),this.set("isColorInherited",!0),this.setTemplate({tag:"svg",ns:"http://www.w3.org/2000/svg",attributes:{class:["ck","ck-icon","ck-reset_all-excluded",e.if("isColorInherited","ck-icon_inherit-color")],viewBox:e.to("viewBox")}})}render(){super.render(),this._updateXMLContent(),this._colorFillPaths(),this.on("change:content",()=>{this._updateXMLContent(),this._colorFillPaths()}),this.on("change:fillColor",()=>{this._colorFillPaths()})}_updateXMLContent(){if(this.content){const e=(new DOMParser).parseFromString(this.content.trim(),"image/svg+xml").querySelector("svg"),t=e.getAttribute("viewBox");t&&(this.viewBox=t);for(const{name:o,value:n}of Array.from(e.attributes))oi.presentationalAttributeNames.includes(o)&&this.element.setAttribute(o,n);for(;this.element.firstChild;)this.element.removeChild(this.element.firstChild);for(;e.childNodes.length>0;)this.element.appendChild(e.childNodes[0])}}_colorFillPaths(){this.fillColor&&this.element.querySelectorAll(".ck-icon__fill").forEach(e=>{e.style.fill=this.fillColor})}}oi.presentationalAttributeNames=["alignment-baseline","baseline-shift","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-rendering","cursor","direction","display","dominant-baseline","fill","fill-opacity","fill-rule","filter","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","image-rendering","letter-spacing","lighting-color","marker-end","marker-mid","marker-start","mask","opacity","overflow","paint-order","pointer-events","shape-rendering","stop-color","stop-opacity","stroke","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","text-anchor","text-decoration","text-overflow","text-rendering","transform","unicode-bidi","vector-effect","visibility","white-space","word-spacing","writing-mode"];var ni=r(4499),ai={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};Ar()(ni.Z,ai),ni.Z.locals;class ri extends Er{constructor(e){super(e);const t=this.bindTemplate,o=C();this.set("class",void 0),this.set("labelStyle",void 0),this.set("icon",void 0),this.set("isEnabled",!0),this.set("isOn",!1),this.set("isVisible",!0),this.set("isToggleable",!1),this.set("keystroke",void 0),this.set("label",void 0),this.set("tabindex",-1),this.set("tooltip",!1),this.set("tooltipPosition","s"),this.set("type","button"),this.set("withText",!1),this.set("withKeystroke",!1),this.children=this.createCollection(),this.labelView=this._createLabelView(o),this.iconView=new oi,this.iconView.extendTemplate({attributes:{class:"ck-button__icon"}}),this.keystrokeView=this._createKeystrokeView(),this.bind("_tooltipString").to(this,"tooltip",this,"label",this,"keystroke",this._getTooltipString.bind(this));const n={tag:"button",attributes:{class:["ck","ck-button",t.to("class"),t.if("isEnabled","ck-disabled",e=>!e),t.if("isVisible","ck-hidden",e=>!e),t.to("isOn",e=>e?"ck-on":"ck-off"),t.if("withText","ck-button_with-text"),t.if("withKeystroke","ck-button_with-keystroke")],type:t.to("type",e=>e||"button"),tabindex:t.to("tabindex"),"aria-labelledby":"ck-editor__aria-label_"+o,"aria-disabled":t.if("isEnabled",!0,e=>!e),"aria-pressed":t.to("isOn",e=>!!this.isToggleable&&String(!!e)),"data-cke-tooltip-text":t.to("_tooltipString"),"data-cke-tooltip-position":t.to("tooltipPosition")},children:this.children,on:{click:t.to(e=>{this.isEnabled?this.fire("execute"):e.preventDefault()})}};u.isSafari&&(n.on.mousedown=t.to(e=>{this.focus(),e.preventDefault()})),this.setTemplate(n)}render(){super.render(),this.icon&&(this.iconView.bind("content").to(this,"icon"),this.children.add(this.iconView)),this.children.add(this.labelView),this.withKeystroke&&this.keystroke&&this.children.add(this.keystrokeView)}focus(){this.element.focus()}_createLabelView(e){const t=new Er,o=this.bindTemplate;return t.setTemplate({tag:"span",attributes:{class:["ck","ck-button__label"],style:o.to("labelStyle"),id:"ck-editor__aria-label_"+e},children:[{text:this.bindTemplate.to("label")}]}),t}_createKeystrokeView(){const e=new Er;return e.setTemplate({tag:"span",attributes:{class:["ck","ck-button__keystroke"]},children:[{text:this.bindTemplate.to("keystroke",e=>cr(e))}]}),e}_getTooltipString(e,t,o){return e?"string"==typeof e?e:(o&&(o=cr(o)),e instanceof Function?e(t,o):`${t}${o?` (${o})`:""}`):""}}var ii=r(9681),li={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};Ar()(ii.Z,li),ii.Z.locals;class si extends ri{constructor(e){super(e),this.isToggleable=!0,this.toggleSwitchView=this._createToggleView(),this.extendTemplate({attributes:{class:"ck-switchbutton"}})}render(){super.render(),this.children.add(this.toggleSwitchView)}_createToggleView(){const e=new Er;return e.setTemplate({tag:"span",attributes:{class:["ck","ck-button__toggle"]},children:[{tag:"span",attributes:{class:["ck","ck-button__toggle__inner"]}}]}),e}}function ci(e){return"string"==typeof e?{model:e,label:e,hasBorder:!1,view:{name:"span",styles:{color:e}}}:{model:e.color,label:e.label||e.color,hasBorder:void 0!==e.hasBorder&&e.hasBorder,view:{name:"span",styles:{color:""+e.color}}}}class di extends ri{constructor(e){super(e);const t=this.bindTemplate;this.set("color",void 0),this.set("hasBorder",!1),this.icon='<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path class="ck-icon__fill" d="M16.935 5.328a2 2 0 0 1 0 2.829l-7.778 7.778a2 2 0 0 1-2.829 0L3.5 13.107a1.999 1.999 0 1 1 2.828-2.829l.707.707a1 1 0 0 0 1.414 0l5.658-5.657a2 2 0 0 1 2.828 0z"/><path d="M14.814 6.035 8.448 12.4a1 1 0 0 1-1.414 0l-1.413-1.415A1 1 0 1 0 4.207 12.4l2.829 2.829a1 1 0 0 0 1.414 0l7.778-7.778a1 1 0 1 0-1.414-1.415z"/></svg>',this.extendTemplate({attributes:{style:{backgroundColor:t.to("color")},class:["ck","ck-color-grid__tile",t.if("hasBorder","ck-color-table__color-tile_bordered")]}})}render(){super.render(),this.iconView.fillColor="hsl(0, 0%, 100%)"}}var ui=r(4923),mi={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};Ar()(ui.Z,mi),ui.Z.locals;class hi extends Er{constructor(e,t){super(e);const o=t&&t.colorDefinitions||[];this.columns=t&&t.columns?t.columns:5;const n={gridTemplateColumns:`repeat( ${this.columns}, 1fr)`};this.set("selectedColor",void 0),this.items=this.createCollection(),this.focusTracker=new vr,this.keystrokes=new wr,this.items.on("add",(e,t)=>{t.isOn=t.color===this.selectedColor}),o.forEach(e=>{const t=new di;t.set({color:e.color,label:e.label,tooltip:!0,hasBorder:e.options.hasBorder}),t.on("execute",()=>{this.fire("execute",{value:e.color,hasBorder:e.options.hasBorder,label:e.label})}),this.items.add(t)}),this.setTemplate({tag:"div",children:this.items,attributes:{class:["ck","ck-color-grid"],style:n}}),this.on("change:selectedColor",(e,t,o)=>{for(const n of this.items)n.isOn=n.color===o})}focus(){this.items.length&&this.items.first.focus()}focusLast(){this.items.length&&this.items.last.focus()}render(){super.render();for(const e of this.items)this.focusTracker.add(e.element);this.items.on("add",(e,t)=>{this.focusTracker.add(t.element)}),this.items.on("remove",(e,t)=>{this.focusTracker.remove(t.element)}),this.keystrokes.listenTo(this.element),s({keystrokeHandler:this.keystrokes,focusTracker:this.focusTracker,gridItems:this.items,numberOfColumns:this.columns,uiLanguageDirection:this.locale&&this.locale.uiLanguageDirection})}destroy(){super.destroy(),this.focusTracker.destroy(),this.keystrokes.destroy()}}class pi{constructor(e){this.editor=e,this._components=new Map}*names(){for(const e of this._components.values())yield e.originalName}add(e,t){this._components.set(bi(e),{callback:t,originalName:e})}create(e){if(!this.has(e))throw new x("componentfactory-item-missing",this,{name:e});return this._components.get(bi(e)).callback(this.editor.locale)}has(e){return this._components.has(bi(e))}}function bi(e){return String(e).toLowerCase()}var gi=r(3488),fi={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};Ar()(gi.Z,fi),gi.Z.locals;class vi extends Er{constructor(e,t,o){super(e);const n=this.bindTemplate;this.buttonView=t,this.panelView=o,this.set("isOpen",!1),this.set("isEnabled",!0),this.set("class",void 0),this.set("id",void 0),this.set("panelPosition","auto"),this.keystrokes=new wr,this.focusTracker=new vr,this.setTemplate({tag:"div",attributes:{class:["ck","ck-dropdown",n.to("class"),n.if("isEnabled","ck-disabled",e=>!e)],id:n.to("id"),"aria-describedby":n.to("ariaDescribedById")},children:[t,o]}),t.extendTemplate({attributes:{class:["ck-dropdown__button"],"data-cke-tooltip-disabled":n.to("isOpen")}})}render(){super.render(),this.focusTracker.add(this.buttonView.element),this.focusTracker.add(this.panelView.element),this.listenTo(this.buttonView,"open",()=>{this.isOpen=!this.isOpen}),this.panelView.bind("isVisible").to(this,"isOpen"),this.on("change:isOpen",(e,t,o)=>{o&&("auto"===this.panelPosition?this.panelView.position=vi._getOptimalPosition({element:this.panelView.element,target:this.buttonView.element,fitInViewport:!0,positions:this._panelPositions}).name:this.panelView.position=this.panelPosition)}),this.keystrokes.listenTo(this.element);const e=(e,t)=>{this.isOpen&&(this.isOpen=!1,t())};this.keystrokes.set("arrowdown",(e,t)=>{this.buttonView.isEnabled&&!this.isOpen&&(this.isOpen=!0,t())}),this.keystrokes.set("arrowright",(e,t)=>{this.isOpen&&t()}),this.keystrokes.set("arrowleft",e),this.keystrokes.set("esc",e)}focus(){this.buttonView.focus()}get _panelPositions(){const{south:e,north:t,southEast:o,southWest:n,northEast:a,northWest:r,southMiddleEast:i,southMiddleWest:l,northMiddleEast:s,northMiddleWest:c}=vi.defaultPanelPositions;return"rtl"!==this.locale.uiLanguageDirection?[o,n,i,l,e,a,r,s,c,t]:[n,o,l,i,e,r,a,c,s,t]}}vi.defaultPanelPositions={south:(e,t)=>({top:e.bottom,left:e.left-(t.width-e.width)/2,name:"s"}),southEast:e=>({top:e.bottom,left:e.left,name:"se"}),southWest:(e,t)=>({top:e.bottom,left:e.left-t.width+e.width,name:"sw"}),southMiddleEast:(e,t)=>({top:e.bottom,left:e.left-(t.width-e.width)/4,name:"sme"}),southMiddleWest:(e,t)=>({top:e.bottom,left:e.left-3*(t.width-e.width)/4,name:"smw"}),north:(e,t)=>({top:e.top-t.height,left:e.left-(t.width-e.width)/2,name:"n"}),northEast:(e,t)=>({top:e.top-t.height,left:e.left,name:"ne"}),northWest:(e,t)=>({top:e.top-t.height,left:e.left-t.width+e.width,name:"nw"}),northMiddleEast:(e,t)=>({top:e.top-t.height,left:e.left-(t.width-e.width)/4,name:"nme"}),northMiddleWest:(e,t)=>({top:e.top-t.height,left:e.left-3*(t.width-e.width)/4,name:"nmw"})},vi._getOptimalPosition=Ua;const wi='<svg viewBox="0 0 10 10" xmlns="http://www.w3.org/2000/svg"><path d="M.941 4.523a.75.75 0 1 1 1.06-1.06l3.006 3.005 3.005-3.005a.75.75 0 1 1 1.06 1.06l-3.549 3.55a.75.75 0 0 1-1.168-.136L.941 4.523z"/></svg>';class ki extends ri{constructor(e){super(e),this.arrowView=this._createArrowView(),this.extendTemplate({attributes:{"aria-haspopup":!0,"aria-expanded":this.bindTemplate.to("isOn",e=>String(e))}}),this.delegate("execute").to(this,"open")}render(){super.render(),this.children.add(this.arrowView)}_createArrowView(){const e=new oi;return e.content=wi,e.extendTemplate({attributes:{class:"ck-dropdown__arrow"}}),e}}var Ci=r(66),yi={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};Ar()(Ci.Z,yi),Ci.Z.locals;class Oi extends Er{constructor(e){super(e);const t=this.bindTemplate;this.set("class",void 0),this.set("labelStyle",void 0),this.set("icon",void 0),this.set("isEnabled",!0),this.set("isOn",!1),this.set("isToggleable",!1),this.set("isVisible",!0),this.set("keystroke",void 0),this.set("withKeystroke",!1),this.set("label",void 0),this.set("tabindex",-1),this.set("tooltip",!1),this.set("tooltipPosition","s"),this.set("type","button"),this.set("withText",!1),this.children=this.createCollection(),this.actionView=this._createActionView(),this.arrowView=this._createArrowView(),this.keystrokes=new wr,this.focusTracker=new vr,this.setTemplate({tag:"div",attributes:{class:["ck","ck-splitbutton",t.to("class"),t.if("isVisible","ck-hidden",e=>!e),this.arrowView.bindTemplate.if("isOn","ck-splitbutton_open")]},children:this.children})}render(){super.render(),this.children.add(this.actionView),this.children.add(this.arrowView),this.focusTracker.add(this.actionView.element),this.focusTracker.add(this.arrowView.element),this.keystrokes.listenTo(this.element),this.keystrokes.set("arrowright",(e,t)=>{this.focusTracker.focusedElement===this.actionView.element&&(this.arrowView.focus(),t())}),this.keystrokes.set("arrowleft",(e,t)=>{this.focusTracker.focusedElement===this.arrowView.element&&(this.actionView.focus(),t())})}destroy(){super.destroy(),this.focusTracker.destroy(),this.keystrokes.destroy()}focus(){this.actionView.focus()}_createActionView(){const e=new ri;return e.bind("icon","isEnabled","isOn","isToggleable","keystroke","label","tabindex","tooltip","tooltipPosition","type","withText").to(this),e.extendTemplate({attributes:{class:"ck-splitbutton__action"}}),e.delegate("execute").to(this),e}_createArrowView(){const e=new ri,t=e.bindTemplate;return e.icon=wi,e.extendTemplate({attributes:{class:["ck-splitbutton__arrow"],"data-cke-tooltip-disabled":t.to("isOn"),"aria-haspopup":!0,"aria-expanded":t.to("isOn",e=>String(e))}}),e.bind("isEnabled").to(this),e.bind("label").to(this),e.bind("tooltip").to(this),e.delegate("execute").to(this,"open"),e}}class ji extends Er{constructor(e){super(e);const t=this.bindTemplate;this.set("isVisible",!1),this.set("position","se"),this.children=this.createCollection(),this.setTemplate({tag:"div",attributes:{class:["ck","ck-reset","ck-dropdown__panel",t.to("position",e=>"ck-dropdown__panel_"+e),t.if("isVisible","ck-dropdown__panel-visible")]},children:this.children,on:{selectstart:t.to(e=>e.preventDefault())}})}focus(){if(this.children.length){const e=this.children.first;"function"==typeof e.focus?e.focus():_("ui-dropdown-panel-focus-child-missing-focus",{childView:this.children.first,dropdownPanel:this})}}focusLast(){if(this.children.length){const e=this.children.last;"function"==typeof e.focusLast?e.focusLast():e.focus()}}}class xi{constructor(e){if(this.focusables=e.focusables,this.focusTracker=e.focusTracker,this.keystrokeHandler=e.keystrokeHandler,this.actions=e.actions,e.actions&&e.keystrokeHandler)for(const t in e.actions){let o=e.actions[t];"string"==typeof o&&(o=[o]);for(const n of o)e.keystrokeHandler.set(n,(e,o)=>{this[t](),o()})}}get first(){return this.focusables.find(_i)||null}get last(){return this.focusables.filter(_i).slice(-1)[0]||null}get next(){return this._getFocusableItem(1)}get previous(){return this._getFocusableItem(-1)}get current(){let e=null;return null===this.focusTracker.focusedElement?null:(this.focusables.find((t,o)=>{const n=t.element===this.focusTracker.focusedElement;return n&&(e=o),n}),e)}focusFirst(){this._focus(this.first)}focusLast(){this._focus(this.last)}focusNext(){this._focus(this.next)}focusPrevious(){this._focus(this.previous)}_focus(e){e&&e.focus()}_getFocusableItem(e){const t=this.current,o=this.focusables.length;if(!o)return null;if(null===t)return this[1===e?"first":"last"];let n=(t+o+e)%o;do{const t=this.focusables.get(n);if(_i(t))return t;n=(n+o+e)%o}while(n!==t);return null}}function _i(e){return!(!e.focus||!$a(e.element))}class Vi extends Er{constructor(e){super(e),this.setTemplate({tag:"span",attributes:{class:["ck","ck-toolbar__separator"]}})}}class Ai extends Er{constructor(e){super(e),this.setTemplate({tag:"span",attributes:{class:["ck","ck-toolbar__line-break"]}})}}function Ni(e){return Array.isArray(e)?{items:e,removeItems:[]}:e?Object.assign({items:[],removeItems:[]},e):{items:[],removeItems:[]}}class Di extends(J()){constructor(e){super(),this.editor=e,this.set("isEnabled",!0),this._disableStack=new Set}forceDisabled(e){this._disableStack.add(e),1==this._disableStack.size&&(this.on("set:isEnabled",Ei,{priority:"highest"}),this.isEnabled=!1)}clearForceDisabled(e){this._disableStack.delete(e),0==this._disableStack.size&&(this.off("set:isEnabled",Ei),this.isEnabled=!0)}destroy(){this.stopListening()}static get isContextPlugin(){return!1}}function Ei(e){e.return=!1,e.stop()}class Ti extends(J()){constructor(e){super(),this.editor=e,this.set("value",void 0),this.set("isEnabled",!1),this._affectsData=!0,this._disableStack=new Set,this.decorate("execute"),this.listenTo(this.editor.model.document,"change",()=>{this.refresh()}),this.on("execute",e=>{this.isEnabled||e.stop()},{priority:"high"}),this.listenTo(e,"change:isReadOnly",(e,t,o)=>{o&&this.affectsData?this.forceDisabled("readOnlyMode"):this.clearForceDisabled("readOnlyMode")})}get affectsData(){return this._affectsData}set affectsData(e){this._affectsData=e}refresh(){this.isEnabled=!0}forceDisabled(e){this._disableStack.add(e),1==this._disableStack.size&&(this.on("set:isEnabled",Si,{priority:"highest"}),this.isEnabled=!1)}clearForceDisabled(e){this._disableStack.delete(e),0==this._disableStack.size&&(this.off("set:isEnabled",Si),this.refresh())}execute(...e){}destroy(){this.stopListening()}}function Si(e){e.return=!1,e.stop()}class Bi extends Ti{constructor(e){super(e),this._childCommandsDefinitions=[]}refresh(){}execute(...e){const t=this._getFirstEnabledCommand();return!!t&&t.execute(e)}registerChildCommand(e,t={}){O(this._childCommandsDefinitions,{command:e,priority:t.priority||"normal"}),e.on("change:isEnabled",()=>this._checkEnabled()),this._checkEnabled()}_checkEnabled(){this.isEnabled=!!this._getFirstEnabledCommand()}_getFirstEnabledCommand(){const e=this._childCommandsDefinitions.find(({command:e})=>e.isEnabled);return e&&e.command}}class Ii extends(z()){constructor(e,t=[],o=[]){super(),this._context=e,this._plugins=new Map,this._availablePlugins=new Map;for(const n of t)n.pluginName&&this._availablePlugins.set(n.pluginName,n);this._contextPlugins=new Map;for(const[n,a]of o)this._contextPlugins.set(n,a),this._contextPlugins.set(a,n),n.pluginName&&this._availablePlugins.set(n.pluginName,n)}*[Symbol.iterator](){for(const e of this._plugins)"function"==typeof e[0]&&(yield e)}get(e){const t=this._plugins.get(e);if(!t){let t=e;throw"function"==typeof e&&(t=e.pluginName||e.name),new x("plugincollection-plugin-not-loaded",this._context,{plugin:t})}return t}has(e){return this._plugins.has(e)}init(e,t=[],o=[]){const n=this,a=this._context;!function e(t,o=new Set){t.forEach(t=>{l(t)&&(o.has(t)||(o.add(t),t.pluginName&&!n._availablePlugins.has(t.pluginName)&&n._availablePlugins.set(t.pluginName,t),t.requires&&e(t.requires,o)))})}(e),u(e);const r=[...function e(t,o=new Set){return t.map(e=>l(e)?e:n._availablePlugins.get(e)).reduce((t,n)=>o.has(n)?t:(o.add(n),n.requires&&(u(n.requires,n),e(n.requires,o).forEach(e=>t.add(e))),t.add(n)),new Set)}(e.filter(e=>!c(e,t)))];!function(e,t){for(const o of t){if("function"!=typeof o)throw new x("plugincollection-replace-plugin-invalid-type",null,{pluginItem:o});const t=o.pluginName;if(!t)throw new x("plugincollection-replace-plugin-missing-name",null,{pluginItem:o});if(o.requires&&o.requires.length)throw new x("plugincollection-plugin-for-replacing-cannot-have-dependencies",null,{pluginName:t});const a=n._availablePlugins.get(t);if(!a)throw new x("plugincollection-plugin-for-replacing-not-exist",null,{pluginName:t});const r=e.indexOf(a);if(-1===r){if(n._contextPlugins.has(a))return;throw new x("plugincollection-plugin-for-replacing-not-loaded",null,{pluginName:t})}if(a.requires&&a.requires.length)throw new x("plugincollection-replaced-plugin-cannot-have-dependencies",null,{pluginName:t});e.splice(r,1,o),n._availablePlugins.set(t,o)}}(r,o);const i=function(e){return e.map(e=>{let t=n._contextPlugins.get(e);return t=t||new e(a),n._add(e,t),t})}(r);return m(i,"init").then(()=>m(i,"afterInit")).then(()=>i);function l(e){return"function"==typeof e}function s(e){return l(e)&&e.isContextPlugin}function c(e,t){return t.some(t=>t===e||d(e)===t||d(t)===e)}function d(e){return l(e)?e.pluginName||e.name:e}function u(e,o=null){e.map(e=>l(e)?e:n._availablePlugins.get(e)||e).forEach(e=>{!function(e,t){if(!l(e)){if(t)throw new x("plugincollection-soft-required",a,{missingPlugin:e,requiredBy:d(t)});throw new x("plugincollection-plugin-not-found",a,{plugin:e})}}(e,o),function(e,t){if(s(t)&&!s(e))throw new x("plugincollection-context-required",a,{plugin:d(e),requiredBy:d(t)})}(e,o),function(e,o){if(o&&c(e,t))throw new x("plugincollection-required",a,{plugin:d(e),requiredBy:d(o)})}(e,o)})}function m(e,t){return e.reduce((e,o)=>o[t]?n._contextPlugins.has(o)?e:e.then(o[t].bind(o)):e,Promise.resolve())}}destroy(){const e=[];for(const[,t]of this)"function"!=typeof t.destroy||this._contextPlugins.has(t)||e.push(t.destroy());return Promise.all(e)}_add(e,t){this._plugins.set(e,t);const o=e.pluginName;if(o){if(this._plugins.has(o))throw new x("plugincollection-plugin-name-conflict",null,{pluginName:o,plugin1:this._plugins.get(o).constructor,plugin2:e});this._plugins.set(o,t)}}}class zi{constructor(e){this.config=new fa(e,this.constructor.defaultConfig);const t=this.constructor.builtinPlugins;this.config.define("plugins",t),this.plugins=new Ii(this,t);const o=this.config.get("language")||{};this.locale=new br({uiLanguage:"string"==typeof o?o:o.ui,contentLanguage:this.config.get("language.content")}),this.t=this.locale.t,this.editors=new gr,this._contextOwner=null}initPlugins(){const e=this.config.get("plugins")||[],t=this.config.get("substitutePlugins")||[];for(const o of e.concat(t)){if("function"!=typeof o)throw new x("context-initplugins-constructor-only",null,{Plugin:o});if(!0!==o.isContextPlugin)throw new x("context-initplugins-invalid-plugin",null,{Plugin:o})}return this.plugins.init(e,[],t)}destroy(){return Promise.all(Array.from(this.editors,e=>e.destroy())).then(()=>this.plugins.destroy())}_addEditor(e,t){if(this._contextOwner)throw new x("context-addeditor-private-context");this.editors.add(e),t&&(this._contextOwner=e)}_removeEditor(e){return this.editors.has(e)&&this.editors.remove(e),this._contextOwner===e?this.destroy():Promise.resolve()}_getEditorConfig(){const e={};for(const t of this.config.names())["plugins","removePlugins","extraPlugins"].includes(t)||(e[t]=this.config.get(t));return e}static create(e){return new Promise(t=>{const o=new this(e);t(o.initPlugins().then(()=>o))})}}class Fi extends(J()){constructor(e){super(),this.context=e}destroy(){this.stopListening()}static get isContextPlugin(){return!0}}var Mi=r(8894),Li={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};Ar()(Mi.Z,Li),Mi.Z.locals;const Pi=new WeakMap;function Ri(e){const{view:t,element:o,text:n,isDirectHost:a=!0,keepOnFocus:r=!1}=e,i=t.document;Pi.has(i)||(Pi.set(i,new Map),i.registerPostFixer(e=>$i(i,e)),i.on("change:isComposing",()=>{t.change(e=>$i(i,e))},{priority:"high"})),Pi.get(i).set(o,{text:n,isDirectHost:a,keepOnFocus:r,hostElement:a?o:null}),t.change(e=>$i(i,e))}function qi(e,t){return!!t.hasClass("ck-placeholder")&&(e.removeClass("ck-placeholder",t),!0)}function $i(e,t){const o=Pi.get(e),n=[];let a=!1;for(const[r,i]of o)i.isDirectHost&&(n.push(r),Ui(t,r,i)&&(a=!0));for(const[r,i]of o){if(i.isDirectHost)continue;const e=Hi(r);e&&(n.includes(e)||(i.hostElement=e,Ui(t,r,i)&&(a=!0)))}return a}function Ui(e,t,o){const{text:n,isDirectHost:a,hostElement:r}=o;let i=!1;return r.getAttribute("data-placeholder")!==n&&(e.setAttribute("data-placeholder",n,r),i=!0),(a||1==t.childCount)&&function(e,t){if(!e.isAttached())return!1;const o=Array.from(e.getChildren()).some(e=>!e.is("uiElement"));if(o)return!1;const n=e.document,a=n.selection.anchor;return!(n.isComposing&&a&&a.parent===e||!t&&n.isFocused&&(!a||a.parent===e))}(r,o.keepOnFocus)?function(e,t){return!t.hasClass("ck-placeholder")&&(e.addClass("ck-placeholder",t),!0)}(e,r)&&(i=!0):qi(e,r)&&(i=!0),i}function Hi(e){if(e.childCount){const t=e.getChild(0);if(t.is("element")&&!t.is("uiElement")&&!t.is("attributeElement"))return t}return null}class Wi{is(){throw new Error("is() method is abstract")}}var Gi=4;const Ki=function(e){return ma(e,Gi)};class Yi extends(z(Wi)){constructor(e){super(),this.document=e,this.parent=null}get index(){let e;if(!this.parent)return null;if(-1==(e=this.parent.getChildIndex(this)))throw new x("view-node-not-found-in-parent",this);return e}get nextSibling(){const e=this.index;return null!==e&&this.parent.getChild(e+1)||null}get previousSibling(){const e=this.index;return null!==e&&this.parent.getChild(e-1)||null}get root(){let e=this;for(;e.parent;)e=e.parent;return e}isAttached(){return this.root.is("rootElement")}getPath(){const e=[];let t=this;for(;t.parent;)e.unshift(t.index),t=t.parent;return e}getAncestors(e={}){const t=[];let o=e.includeSelf?this:this.parent;for(;o;)t[e.parentFirst?"push":"unshift"](o),o=o.parent;return t}getCommonAncestor(e,t={}){const o=this.getAncestors(t),n=e.getAncestors(t);let a=0;for(;o[a]==n[a]&&o[a];)a++;return 0===a?null:o[a-1]}isBefore(e){if(this==e)return!1;if(this.root!==e.root)return!1;const t=this.getPath(),o=e.getPath(),n=re(t,o);switch(n){case"prefix":return!0;case"extension":return!1;default:return t[n]<o[n]}}isAfter(e){return this!=e&&this.root===e.root&&!this.isBefore(e)}_remove(){this.parent._removeChildren(this.index)}_fireChange(e,t){this.fire("change:"+e,t),this.parent&&this.parent._fireChange(e,t)}toJSON(){const e=Ki(this);return delete e.parent,e}}Yi.prototype.is=function(e){return"node"===e||"view:node"===e};class Qi extends Yi{constructor(e,t){super(e),this._textData=t}get data(){return this._textData}get _data(){return this.data}set _data(e){this._fireChange("text",this),this._textData=e}isSimilar(e){return e instanceof Qi&&(this===e||this.data===e.data)}_clone(){return new Qi(this.document,this.data)}}Qi.prototype.is=function(e){return"$text"===e||"view:$text"===e||"text"===e||"view:text"===e||"node"===e||"view:node"===e};class Ji extends Wi{constructor(e,t,o){if(super(),this.textNode=e,t<0||t>e.data.length)throw new x("view-textproxy-wrong-offsetintext",this);if(o<0||t+o>e.data.length)throw new x("view-textproxy-wrong-length",this);this.data=e.data.substring(t,t+o),this.offsetInText=t}get offsetSize(){return this.data.length}get isPartial(){return this.data.length!==this.textNode.data.length}get parent(){return this.textNode.parent}get root(){return this.textNode.root}get document(){return this.textNode.document}getAncestors(e={}){const t=[];let o=e.includeSelf?this.textNode:this.parent;for(;null!==o;)t[e.parentFirst?"push":"unshift"](o),o=o.parent;return t}}Ji.prototype.is=function(e){return"$textProxy"===e||"view:$textProxy"===e||"textProxy"===e||"view:textProxy"===e};class Zi{constructor(...e){this._patterns=[],this.add(...e)}add(...e){for(let t of e)("string"==typeof t||t instanceof RegExp)&&(t={name:t}),this._patterns.push(t)}match(...e){for(const t of e)for(const e of this._patterns){const o=Xi(t,e);if(o)return{element:t,pattern:e,match:o}}return null}matchAll(...e){const t=[];for(const o of e)for(const e of this._patterns){const n=Xi(o,e);n&&t.push({element:o,pattern:e,match:n})}return t.length>0?t:null}getElementName(){if(1!==this._patterns.length)return null;const e=this._patterns[0],t=e.name;return"function"==typeof e||!t||t instanceof RegExp?null:t}}function Xi(e,t){if("function"==typeof t)return t(e);const o={};return t.name&&(o.name=function(e,t){return e instanceof RegExp?!!t.match(e):e===t}(t.name,e.name),!o.name)||t.attributes&&(o.attributes=function(e,t){const o=new Set(t.getAttributeKeys());return Ie(e)?(void 0!==e.style&&_("matcher-pattern-deprecated-attributes-style-key",e),void 0!==e.class&&_("matcher-pattern-deprecated-attributes-class-key",e)):(o.delete("style"),o.delete("class")),el(e,o,e=>t.getAttribute(e))}(t.attributes,e),!o.attributes)||t.classes&&(o.classes=function(e,t){return el(e,t.getClassNames(),()=>{})}(t.classes,e),!o.classes)||t.styles&&(o.styles=function(e,t){return el(e,t.getStyleNames(!0),e=>t.getStyle(e))}(t.styles,e),!o.styles)?null:o}function el(e,t,o){const n=function(e){return Array.isArray(e)?e.map(e=>Ie(e)?(void 0!==e.key&&void 0!==e.value||_("matcher-pattern-missing-key-or-value",e),[e.key,e.value]):[e,!0]):Ie(e)?Object.entries(e):[[e,!0]]}(e),a=Array.from(t),r=[];if(n.forEach(([e,t])=>{a.forEach(n=>{(function(e,t){return!0===e||e===t||e instanceof RegExp&&t.match(e)})(e,n)&&function(e,t,o){if(!0===e)return!0;const n=o(t);return e===n||e instanceof RegExp&&!!String(n).match(e)}(t,n,o)&&r.push(n)})}),n.length&&!(r.length<n.length))return r}var tl="[object Symbol]";const ol=function(e){return"symbol"==typeof e||Oe(e)&&Ce(e)==tl};var nl=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,al=/^\w*$/;const rl=function(e,t){if(ye(e))return!1;var o=typeof e;return!("number"!=o&&"symbol"!=o&&"boolean"!=o&&null!=e&&!ol(e))||al.test(e)||!nl.test(e)||null!=t&&e in Object(t)};var il="Expected a function";function ll(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new TypeError(il);var o=function(){var n=arguments,a=t?t.apply(this,n):n[0],r=o.cache;if(r.has(a))return r.get(a);var i=e.apply(this,n);return o.cache=r.set(a,i)||r,i};return o.cache=new(ll.Cache||zt),o}ll.Cache=zt;const sl=ll;var cl=500,dl=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,ul=/\\(\\)?/g,ml=function(e){var t=sl(e,(function(e){return o.size===cl&&o.clear(),e})),o=t.cache;return t}((function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(dl,(function(e,o,n,a){t.push(n?a.replace(ul,"$1"):o||e)})),t}));const hl=ml,pl=function(e,t){for(var o=-1,n=null==e?0:e.length,a=Array(n);++o<n;)a[o]=t(e[o],o,e);return a};var bl=1/0,gl=de?de.prototype:void 0,fl=gl?gl.toString:void 0;const vl=function e(t){if("string"==typeof t)return t;if(ye(t))return pl(t,e)+"";if(ol(t))return fl?fl.call(t):"";var o=t+"";return"0"==o&&1/t==-bl?"-0":o},wl=function(e){return null==e?"":vl(e)},kl=function(e,t){return ye(e)?e:rl(e,t)?[e]:hl(wl(e))},Cl=function(e){var t=null==e?0:e.length;return t?e[t-1]:void 0};var yl=1/0;const Ol=function(e){if("string"==typeof e||ol(e))return e;var t=e+"";return"0"==t&&1/e==-yl?"-0":t},jl=function(e,t){for(var o=0,n=(t=kl(t,e)).length;null!=e&&o<n;)e=e[Ol(t[o++])];return o&&o==n?e:void 0},xl=function(e,t,o){var n=-1,a=e.length;t<0&&(t=-t>a?0:a+t),(o=o>a?a:o)<0&&(o+=a),a=t>o?0:o-t>>>0,t>>>=0;for(var r=Array(a);++n<a;)r[n]=e[n+t];return r},_l=function(e,t){return t.length<2?e:jl(e,xl(t,0,-1))},Vl=function(e,t){return t=kl(t,e),null==(e=_l(e,t))||delete e[Ol(Cl(t))]},Al=function(e,t){return null==e||Vl(e,t)},Nl=function(e,t,o){var n=null==e?void 0:jl(e,t);return void 0===n?o:n},Dl=function(e,t,o){(void 0!==o&&!Fe(e[t],o)||void 0===o&&!(t in e))&&$t(e,t,o)},El=function(e){return function(t,o,n){for(var a=-1,r=Object(t),i=n(t),l=i.length;l--;){var s=i[e?l:++a];if(!1===o(r[s],s,r))break}return t}}(),Tl=function(e){return Oe(e)&&Vo(e)},Sl=function(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]},Bl=function(e){return Wt(e,So(e))},Il=function(e,t,o,n,a,r,i){var l=Sl(e,o),s=Sl(t,o),c=i.get(s);if(c)Dl(e,o,c);else{var d=r?r(l,s,o+"",e,t,i):void 0,u=void 0===d;if(u){var m=ye(s),h=!m&&ao(s),p=!m&&!h&&wo(s);d=s,m||h||p?ye(l)?d=l:Tl(l)?d=Po(l):h?(u=!1,d=Lo(s,!0)):p?(u=!1,d=_n(s,!0)):d=[]:Ie(s)||Xt(s)?(d=l,Xt(l)?d=Bl(l):U(l)&&!et(l)||(d=Yn(s))):u=!1}u&&(i.set(s,d),a(d,s,n,r,i),i.delete(s)),Dl(e,o,d)}},zl=function e(t,o,n,a,r){t!==o&&El(o,(function(i,l){if(r||(r=new Pt),U(i))Il(t,o,l,n,e,a,r);else{var s=a?a(Sl(t,l),i,l+"",t,o,r):void 0;void 0===s&&(s=i),Dl(t,l,s)}}),So)},Fl=function(e){return e},Ml=function(e,t,o){switch(o.length){case 0:return e.call(t);case 1:return e.call(t,o[0]);case 2:return e.call(t,o[0],o[1]);case 3:return e.call(t,o[0],o[1],o[2])}return e.apply(t,o)};var Ll=Math.max;const Pl=function(e,t,o){return t=Ll(void 0===t?e.length-1:t,0),function(){for(var n=arguments,a=-1,r=Ll(n.length-t,0),i=Array(r);++a<r;)i[a]=n[t+a];a=-1;for(var l=Array(t+1);++a<t;)l[a]=n[a];return l[t]=o(i),Ml(e,this,l)}},Rl=function(e){return function(){return e}},ql=qt?function(e,t){return qt(e,"toString",{configurable:!0,enumerable:!1,value:Rl(t),writable:!0})}:Fl;var $l=800,Ul=16,Hl=Date.now;const Wl=function(e){var t=0,o=0;return function(){var n=Hl(),a=Ul-(n-o);if(o=n,a>0){if(++t>=$l)return arguments[0]}else t=0;return e.apply(void 0,arguments)}},Gl=Wl(ql),Kl=function(e,t){return Gl(Pl(e,t,Fl),e+"")},Yl=function(e,t,o){if(!U(o))return!1;var n=typeof t;return!!("number"==n?Vo(o)&&lo(t,o.length):"string"==n&&t in o)&&Fe(o[t],e)},Ql=function(e){return Kl((function(t,o){var n=-1,a=o.length,r=a>1?o[a-1]:void 0,i=a>2?o[2]:void 0;for(r=e.length>3&&"function"==typeof r?(a--,r):void 0,i&&Yl(o[0],o[1],i)&&(r=a<3?void 0:r,a=1),t=Object(t);++n<a;){var l=o[n];l&&e(t,l,n,r)}return t}))},Jl=Ql((function(e,t,o){zl(e,t,o)})),Zl=function(e,t,o,n){if(!U(e))return e;for(var a=-1,r=(t=kl(t,e)).length,i=r-1,l=e;null!=l&&++a<r;){var s=Ol(t[a]),c=o;if("__proto__"===s||"constructor"===s||"prototype"===s)return e;if(a!=i){var d=l[s];void 0===(c=n?n(d,s,l):void 0)&&(c=U(d)?d:lo(t[a+1])?[]:{})}Ht(l,s,c),l=l[s]}return e},Xl=function(e,t,o){return null==e?e:Zl(e,t,o)};class es{constructor(e){this._styles={},this._styleProcessor=e}get isEmpty(){const e=Object.entries(this._styles);return!Array.from(e).length}get size(){return this.isEmpty?0:this.getStyleNames().length}setTo(e){this.clear();const t=Array.from(function(e){let t=null,o=0,n=0,a=null;const r=new Map;if(""===e)return r;";"!=e.charAt(e.length-1)&&(e+=";");for(let i=0;i<e.length;i++){const l=e.charAt(i);if(null===t)switch(l){case":":a||(a=e.substr(o,i-o),n=i+1);break;case'"':case"'":t=l;break;case";":{const t=e.substr(n,i-n);a&&r.set(a.trim(),t.trim()),a=null,o=i+1;break}}else l===t&&(t=null)}return r}(e).entries());for(const[o,n]of t)this._styleProcessor.toNormalizedForm(o,n,this._styles)}has(e){if(this.isEmpty)return!1;const t=this._styleProcessor.getReducedForm(e,this._styles).find(([t])=>t===e);return Array.isArray(t)}set(e,t){if(U(e))for(const[o,n]of Object.entries(e))this._styleProcessor.toNormalizedForm(o,n,this._styles);else this._styleProcessor.toNormalizedForm(e,t,this._styles)}remove(e){const t=os(e);Al(this._styles,t),delete this._styles[e],this._cleanEmptyObjectsOnPath(t)}getNormalized(e){return this._styleProcessor.getNormalized(e,this._styles)}toString(){return this.isEmpty?"":this._getStylesEntries().map(e=>e.join(":")).sort().join(";")+";"}getAsString(e){if(this.isEmpty)return;if(this._styles[e]&&!U(this._styles[e]))return this._styles[e];const t=this._styleProcessor.getReducedForm(e,this._styles).find(([t])=>t===e);return Array.isArray(t)?t[1]:void 0}getStyleNames(e=!1){return this.isEmpty?[]:e?this._styleProcessor.getStyleNames(this._styles):this._getStylesEntries().map(([e])=>e)}clear(){this._styles={}}_getStylesEntries(){const e=[],t=Object.keys(this._styles);for(const o of t)e.push(...this._styleProcessor.getReducedForm(o,this._styles));return e}_cleanEmptyObjectsOnPath(e){const t=e.split(".");if(!(t.length>1))return;const o=t.splice(0,t.length-1).join("."),n=Nl(this._styles,o);n&&!Array.from(Object.keys(n)).length&&this.remove(o)}}class ts{constructor(){this._normalizers=new Map,this._extractors=new Map,this._reducers=new Map,this._consumables=new Map}toNormalizedForm(e,t,o){if(U(t))ns(o,os(e),t);else if(this._normalizers.has(e)){const n=this._normalizers.get(e),{path:a,value:r}=n(t);ns(o,a,r)}else ns(o,e,t)}getNormalized(e,t){if(!e)return Jl({},t);if(void 0!==t[e])return t[e];if(this._extractors.has(e)){const o=this._extractors.get(e);if("string"==typeof o)return Nl(t,o);const n=o(e,t);if(n)return n}return Nl(t,os(e))}getReducedForm(e,t){const o=this.getNormalized(e,t);return void 0===o?[]:this._reducers.has(e)?this._reducers.get(e)(o):[[e,o]]}getStyleNames(e){const t=Array.from(this._consumables.keys()).filter(t=>{const o=this.getNormalized(t,e);return o&&"object"==typeof o?Object.keys(o).length:o}),o=new Set([...t,...Object.keys(e)]);return Array.from(o.values())}getRelatedStyles(e){return this._consumables.get(e)||[]}setNormalizer(e,t){this._normalizers.set(e,t)}setExtractor(e,t){this._extractors.set(e,t)}setReducer(e,t){this._reducers.set(e,t)}setStyleRelation(e,t){this._mapStyleNames(e,t);for(const o of t)this._mapStyleNames(o,[e])}_mapStyleNames(e,t){this._consumables.has(e)||this._consumables.set(e,[]),this._consumables.get(e).push(...t)}}function os(e){return e.replace("-",".")}function ns(e,t,o){let n=o;U(o)&&(n=Jl({},Nl(e,t),o)),Xl(e,t,n)}class as extends Yi{constructor(e,t,o,n){if(super(e),this.name=t,this._attrs=function(e){const t=kr(e);for(const[o,n]of t)null===n?t.delete(o):"string"!=typeof n&&t.set(o,String(n));return t}(o),this._children=[],n&&this._insertChild(0,n),this._classes=new Set,this._attrs.has("class")){const e=this._attrs.get("class");rs(this._classes,e),this._attrs.delete("class")}this._styles=new es(this.document.stylesProcessor),this._attrs.has("style")&&(this._styles.setTo(this._attrs.get("style")),this._attrs.delete("style")),this._customProperties=new Map,this._unsafeAttributesToRender=[]}get childCount(){return this._children.length}get isEmpty(){return 0===this._children.length}getChild(e){return this._children[e]}getChildIndex(e){return this._children.indexOf(e)}getChildren(){return this._children[Symbol.iterator]()}*getAttributeKeys(){this._classes.size>0&&(yield"class"),this._styles.isEmpty||(yield"style"),yield*this._attrs.keys()}*getAttributes(){yield*this._attrs.entries(),this._classes.size>0&&(yield["class",this.getAttribute("class")]),this._styles.isEmpty||(yield["style",this.getAttribute("style")])}getAttribute(e){if("class"==e)return this._classes.size>0?[...this._classes].join(" "):void 0;if("style"==e){const e=this._styles.toString();return""==e?void 0:e}return this._attrs.get(e)}hasAttribute(e){return"class"==e?this._classes.size>0:"style"==e?!this._styles.isEmpty:this._attrs.has(e)}isSimilar(e){if(!(e instanceof as))return!1;if(this===e)return!0;if(this.name!=e.name)return!1;if(this._attrs.size!==e._attrs.size||this._classes.size!==e._classes.size||this._styles.size!==e._styles.size)return!1;for(const[t,o]of this._attrs)if(!e._attrs.has(t)||e._attrs.get(t)!==o)return!1;for(const t of this._classes)if(!e._classes.has(t))return!1;for(const t of this._styles.getStyleNames())if(!e._styles.has(t)||e._styles.getAsString(t)!==this._styles.getAsString(t))return!1;return!0}hasClass(...e){for(const t of e)if(!this._classes.has(t))return!1;return!0}getClassNames(){return this._classes.keys()}getStyle(e){return this._styles.getAsString(e)}getNormalizedStyle(e){return this._styles.getNormalized(e)}getStyleNames(e){return this._styles.getStyleNames(e)}hasStyle(...e){for(const t of e)if(!this._styles.has(t))return!1;return!0}findAncestor(...e){const t=new Zi(...e);let o=this.parent;for(;o&&!o.is("documentFragment");){if(t.match(o))return o;o=o.parent}return null}getCustomProperty(e){return this._customProperties.get(e)}*getCustomProperties(){yield*this._customProperties.entries()}getIdentity(){const e=Array.from(this._classes).sort().join(","),t=this._styles.toString(),o=Array.from(this._attrs).map(e=>`${e[0]}="${e[1]}"`).sort().join(" ");return this.name+(""==e?"":` class="${e}"`)+(t?` style="${t}"`:"")+(""==o?"":" "+o)}shouldRenderUnsafeAttribute(e){return this._unsafeAttributesToRender.includes(e)}_clone(e=!1){const t=[];if(e)for(const n of this.getChildren())t.push(n._clone(e));const o=new this.constructor(this.document,this.name,this._attrs,t);return o._classes=new Set(this._classes),o._styles.set(this._styles.getNormalized()),o._customProperties=new Map(this._customProperties),o.getFillerOffset=this.getFillerOffset,o._unsafeAttributesToRender=this._unsafeAttributesToRender,o}_appendChild(e){return this._insertChild(this.childCount,e)}_insertChild(e,t){this._fireChange("children",this);let o=0;const n=function(e,t){return"string"==typeof t?[new Qi(e,t)]:(ie(t)||(t=[t]),Array.from(t).map(t=>"string"==typeof t?new Qi(e,t):t instanceof Ji?new Qi(e,t.data):t))}(this.document,t);for(const a of n)null!==a.parent&&a._remove(),a.parent=this,a.document=this.document,this._children.splice(e,0,a),e++,o++;return o}_removeChildren(e,t=1){this._fireChange("children",this);for(let o=e;o<e+t;o++)this._children[o].parent=null;return this._children.splice(e,t)}_setAttribute(e,t){const o=String(t);this._fireChange("attributes",this),"class"==e?rs(this._classes,o):"style"==e?this._styles.setTo(o):this._attrs.set(e,o)}_removeAttribute(e){return this._fireChange("attributes",this),"class"==e?this._classes.size>0&&(this._classes.clear(),!0):"style"==e?!this._styles.isEmpty&&(this._styles.clear(),!0):this._attrs.delete(e)}_addClass(e){this._fireChange("attributes",this);for(const t of ur(e))this._classes.add(t)}_removeClass(e){this._fireChange("attributes",this);for(const t of ur(e))this._classes.delete(t)}_setStyle(e,t){this._fireChange("attributes",this),Ie(e)?this._styles.set(e):this._styles.set(e,t)}_removeStyle(e){this._fireChange("attributes",this);for(const t of ur(e))this._styles.remove(t)}_setCustomProperty(e,t){this._customProperties.set(e,t)}_removeCustomProperty(e){return this._customProperties.delete(e)}}function rs(e,t){const o=t.split(/\s+/);e.clear(),o.forEach(t=>e.add(t))}as.prototype.is=function(e,t){return t?t===this.name&&("element"===e||"view:element"===e):"element"===e||"view:element"===e||"node"===e||"view:node"===e};class is extends as{constructor(...e){super(...e),this.getFillerOffset=ls}}function ls(){const e=[...this.getChildren()],t=e[this.childCount-1];if(t&&t.is("element","br"))return this.childCount;for(const o of e)if(!o.is("uiElement"))return null;return this.childCount}is.prototype.is=function(e,t){return t?t===this.name&&("containerElement"===e||"view:containerElement"===e||"element"===e||"view:element"===e):"containerElement"===e||"view:containerElement"===e||"element"===e||"view:element"===e||"node"===e||"view:node"===e};class ss extends(J(is)){constructor(...e){super(...e);const t=e[0];this.set("isReadOnly",!1),this.set("isFocused",!1),this.bind("isReadOnly").to(t),this.bind("isFocused").to(t,"isFocused",e=>e&&t.selection.editableElement==this),this.listenTo(t.selection,"change",()=>{this.isFocused=t.isFocused&&t.selection.editableElement==this})}destroy(){this.stopListening()}}ss.prototype.is=function(e,t){return t?t===this.name&&("editableElement"===e||"view:editableElement"===e||"containerElement"===e||"view:containerElement"===e||"element"===e||"view:element"===e):"editableElement"===e||"view:editableElement"===e||"containerElement"===e||"view:containerElement"===e||"element"===e||"view:element"===e||"node"===e||"view:node"===e};const cs=Symbol("rootName");class ds extends ss{constructor(e,t){super(e,t),this.rootName="main"}get rootName(){return this.getCustomProperty(cs)}set rootName(e){this._setCustomProperty(cs,e)}set _name(e){this.name=e}}ds.prototype.is=function(e,t){return t?t===this.name&&("rootElement"===e||"view:rootElement"===e||"editableElement"===e||"view:editableElement"===e||"containerElement"===e||"view:containerElement"===e||"element"===e||"view:element"===e):"rootElement"===e||"view:rootElement"===e||"editableElement"===e||"view:editableElement"===e||"containerElement"===e||"view:containerElement"===e||"element"===e||"view:element"===e||"node"===e||"view:node"===e};class us{constructor(e={}){if(!e.boundaries&&!e.startPosition)throw new x("view-tree-walker-no-start-position",null);if(e.direction&&"forward"!=e.direction&&"backward"!=e.direction)throw new x("view-tree-walker-unknown-direction",e.startPosition,{direction:e.direction});this.boundaries=e.boundaries||null,e.startPosition?this.position=ms._createAt(e.startPosition):this.position=ms._createAt(e.boundaries["backward"==e.direction?"end":"start"]),this.direction=e.direction||"forward",this.singleCharacters=!!e.singleCharacters,this.shallow=!!e.shallow,this.ignoreElementEnd=!!e.ignoreElementEnd,this._boundaryStartParent=this.boundaries?this.boundaries.start.parent:null,this._boundaryEndParent=this.boundaries?this.boundaries.end.parent:null}[Symbol.iterator](){return this}skip(e){let t,o,n;do{n=this.position,({done:t,value:o}=this.next())}while(!t&&e(o));t||(this.position=n)}next(){return"forward"==this.direction?this._next():this._previous()}_next(){let e=this.position.clone();const t=this.position,o=e.parent;if(null===o.parent&&e.offset===o.childCount)return{done:!0,value:void 0};if(o===this._boundaryEndParent&&e.offset==this.boundaries.end.offset)return{done:!0,value:void 0};let n;if(o instanceof Qi){if(e.isAtEnd)return this.position=ms._createAfter(o),this._next();n=o.data[e.offset]}else n=o.getChild(e.offset);if(n instanceof as)return this.shallow?e.offset++:e=new ms(n,0),this.position=e,this._formatReturnValue("elementStart",n,t,e,1);if(n instanceof Qi){if(this.singleCharacters)return e=new ms(n,0),this.position=e,this._next();{let o,a=n.data.length;return n==this._boundaryEndParent?(a=this.boundaries.end.offset,o=new Ji(n,0,a),e=ms._createAfter(o)):(o=new Ji(n,0,n.data.length),e.offset++),this.position=e,this._formatReturnValue("text",o,t,e,a)}}if("string"==typeof n){let n;n=this.singleCharacters?1:(o===this._boundaryEndParent?this.boundaries.end.offset:o.data.length)-e.offset;const a=new Ji(o,e.offset,n);return e.offset+=n,this.position=e,this._formatReturnValue("text",a,t,e,n)}return e=ms._createAfter(o),this.position=e,this.ignoreElementEnd?this._next():this._formatReturnValue("elementEnd",o,t,e)}_previous(){let e=this.position.clone();const t=this.position,o=e.parent;if(null===o.parent&&0===e.offset)return{done:!0,value:void 0};if(o==this._boundaryStartParent&&e.offset==this.boundaries.start.offset)return{done:!0,value:void 0};let n;if(o instanceof Qi){if(e.isAtStart)return this.position=ms._createBefore(o),this._previous();n=o.data[e.offset-1]}else n=o.getChild(e.offset-1);if(n instanceof as)return this.shallow?(e.offset--,this.position=e,this._formatReturnValue("elementStart",n,t,e,1)):(e=new ms(n,n.childCount),this.position=e,this.ignoreElementEnd?this._previous():this._formatReturnValue("elementEnd",n,t,e));if(n instanceof Qi){if(this.singleCharacters)return e=new ms(n,n.data.length),this.position=e,this._previous();{let o,a=n.data.length;if(n==this._boundaryStartParent){const t=this.boundaries.start.offset;o=new Ji(n,t,n.data.length-t),a=o.data.length,e=ms._createBefore(o)}else o=new Ji(n,0,n.data.length),e.offset--;return this.position=e,this._formatReturnValue("text",o,t,e,a)}}if("string"==typeof n){let n;if(this.singleCharacters)n=1;else{const t=o===this._boundaryStartParent?this.boundaries.start.offset:0;n=e.offset-t}e.offset-=n;const a=new Ji(o,e.offset,n);return this.position=e,this._formatReturnValue("text",a,t,e,n)}return e=ms._createBefore(o),this.position=e,this._formatReturnValue("elementStart",o,t,e,1)}_formatReturnValue(e,t,o,n,a){return t instanceof Ji&&(t.offsetInText+t.data.length==t.textNode.data.length&&("forward"!=this.direction||this.boundaries&&this.boundaries.end.isEqual(this.position)?o=ms._createAfter(t.textNode):(n=ms._createAfter(t.textNode),this.position=n)),0===t.offsetInText&&("backward"!=this.direction||this.boundaries&&this.boundaries.start.isEqual(this.position)?o=ms._createBefore(t.textNode):(n=ms._createBefore(t.textNode),this.position=n))),{done:!1,value:{type:e,item:t,previousPosition:o,nextPosition:n,length:a}}}}class ms extends Wi{constructor(e,t){super(),this.parent=e,this.offset=t}get nodeAfter(){return this.parent.is("$text")?null:this.parent.getChild(this.offset)||null}get nodeBefore(){return this.parent.is("$text")?null:this.parent.getChild(this.offset-1)||null}get isAtStart(){return 0===this.offset}get isAtEnd(){const e=this.parent.is("$text")?this.parent.data.length:this.parent.childCount;return this.offset===e}get root(){return this.parent.root}get editableElement(){let e=this.parent;for(;!(e instanceof ss);){if(!e.parent)return null;e=e.parent}return e}getShiftedBy(e){const t=ms._createAt(this),o=t.offset+e;return t.offset=o<0?0:o,t}getLastMatchingPosition(e,t={}){t.startPosition=this;const o=new us(t);return o.skip(e),o.position}getAncestors(){return this.parent.is("documentFragment")?[this.parent]:this.parent.getAncestors({includeSelf:!0})}getCommonAncestor(e){const t=this.getAncestors(),o=e.getAncestors();let n=0;for(;t[n]==o[n]&&t[n];)n++;return 0===n?null:t[n-1]}isEqual(e){return this.parent==e.parent&&this.offset==e.offset}isBefore(e){return"before"==this.compareWith(e)}isAfter(e){return"after"==this.compareWith(e)}compareWith(e){if(this.root!==e.root)return"different";if(this.isEqual(e))return"same";const t=this.parent.is("node")?this.parent.getPath():[],o=e.parent.is("node")?e.parent.getPath():[];t.push(this.offset),o.push(e.offset);const n=re(t,o);switch(n){case"prefix":return"before";case"extension":return"after";default:return t[n]<o[n]?"before":"after"}}getWalker(e={}){return e.startPosition=this,new us(e)}clone(){return new ms(this.parent,this.offset)}static _createAt(e,t){if(e instanceof ms)return new this(e.parent,e.offset);{const o=e;if("end"==t)t=o.is("$text")?o.data.length:o.childCount;else{if("before"==t)return this._createBefore(o);if("after"==t)return this._createAfter(o);if(0!==t&&!t)throw new x("view-createpositionat-offset-required",o)}return new ms(o,t)}}static _createAfter(e){if(e.is("$textProxy"))return new ms(e.textNode,e.offsetInText+e.data.length);if(!e.parent)throw new x("view-position-after-root",e,{root:e});return new ms(e.parent,e.index+1)}static _createBefore(e){if(e.is("$textProxy"))return new ms(e.textNode,e.offsetInText);if(!e.parent)throw new x("view-position-before-root",e,{root:e});return new ms(e.parent,e.index)}}ms.prototype.is=function(e){return"position"===e||"view:position"===e};class hs extends Wi{constructor(e,t=null){super(),this.start=e.clone(),this.end=t?t.clone():e.clone()}*[Symbol.iterator](){yield*new us({boundaries:this,ignoreElementEnd:!0})}get isCollapsed(){return this.start.isEqual(this.end)}get isFlat(){return this.start.parent===this.end.parent}get root(){return this.start.root}getEnlarged(){let e=this.start.getLastMatchingPosition(ps,{direction:"backward"}),t=this.end.getLastMatchingPosition(ps);return e.parent.is("$text")&&e.isAtStart&&(e=ms._createBefore(e.parent)),t.parent.is("$text")&&t.isAtEnd&&(t=ms._createAfter(t.parent)),new hs(e,t)}getTrimmed(){let e=this.start.getLastMatchingPosition(ps);if(e.isAfter(this.end)||e.isEqual(this.end))return new hs(e,e);let t=this.end.getLastMatchingPosition(ps,{direction:"backward"});const o=e.nodeAfter,n=t.nodeBefore;return o&&o.is("$text")&&(e=new ms(o,0)),n&&n.is("$text")&&(t=new ms(n,n.data.length)),new hs(e,t)}isEqual(e){return this==e||this.start.isEqual(e.start)&&this.end.isEqual(e.end)}containsPosition(e){return e.isAfter(this.start)&&e.isBefore(this.end)}containsRange(e,t=!1){e.isCollapsed&&(t=!1);const o=this.containsPosition(e.start)||t&&this.start.isEqual(e.start),n=this.containsPosition(e.end)||t&&this.end.isEqual(e.end);return o&&n}getDifference(e){const t=[];return this.isIntersecting(e)?(this.containsPosition(e.start)&&t.push(new hs(this.start,e.start)),this.containsPosition(e.end)&&t.push(new hs(e.end,this.end))):t.push(this.clone()),t}getIntersection(e){if(this.isIntersecting(e)){let t=this.start,o=this.end;return this.containsPosition(e.start)&&(t=e.start),this.containsPosition(e.end)&&(o=e.end),new hs(t,o)}return null}getWalker(e={}){return e.boundaries=this,new us(e)}getCommonAncestor(){return this.start.getCommonAncestor(this.end)}getContainedElement(){if(this.isCollapsed)return null;let e=this.start.nodeAfter,t=this.end.nodeBefore;return this.start.parent.is("$text")&&this.start.isAtEnd&&this.start.parent.nextSibling&&(e=this.start.parent.nextSibling),this.end.parent.is("$text")&&this.end.isAtStart&&this.end.parent.previousSibling&&(t=this.end.parent.previousSibling),e&&e.is("element")&&e===t?e:null}clone(){return new hs(this.start,this.end)}*getItems(e={}){e.boundaries=this,e.ignoreElementEnd=!0;const t=new us(e);for(const o of t)yield o.item}*getPositions(e={}){e.boundaries=this;const t=new us(e);yield t.position;for(const o of t)yield o.nextPosition}isIntersecting(e){return this.start.isBefore(e.end)&&this.end.isAfter(e.start)}static _createFromParentsAndOffsets(e,t,o,n){return new this(new ms(e,t),new ms(o,n))}static _createFromPositionAndShift(e,t){const o=e,n=e.getShiftedBy(t);return t>0?new this(o,n):new this(n,o)}static _createIn(e){return this._createFromParentsAndOffsets(e,0,e,e.childCount)}static _createOn(e){const t=e.is("$textProxy")?e.offsetSize:1;return this._createFromPositionAndShift(ms._createBefore(e),t)}}function ps(e){return!(!e.item.is("attributeElement")&&!e.item.is("uiElement"))}hs.prototype.is=function(e){return"range"===e||"view:range"===e};class bs extends(z(Wi)){constructor(...e){super(),this._ranges=[],this._lastRangeBackward=!1,this._isFake=!1,this._fakeSelectionLabel="",e.length&&this.setTo(...e)}get isFake(){return this._isFake}get fakeSelectionLabel(){return this._fakeSelectionLabel}get anchor(){if(!this._ranges.length)return null;const e=this._ranges[this._ranges.length-1];return(this._lastRangeBackward?e.end:e.start).clone()}get focus(){if(!this._ranges.length)return null;const e=this._ranges[this._ranges.length-1];return(this._lastRangeBackward?e.start:e.end).clone()}get isCollapsed(){return 1===this.rangeCount&&this._ranges[0].isCollapsed}get rangeCount(){return this._ranges.length}get isBackward(){return!this.isCollapsed&&this._lastRangeBackward}get editableElement(){return this.anchor?this.anchor.editableElement:null}*getRanges(){for(const e of this._ranges)yield e.clone()}getFirstRange(){let e=null;for(const t of this._ranges)e&&!t.start.isBefore(e.start)||(e=t);return e?e.clone():null}getLastRange(){let e=null;for(const t of this._ranges)e&&!t.end.isAfter(e.end)||(e=t);return e?e.clone():null}getFirstPosition(){const e=this.getFirstRange();return e?e.start.clone():null}getLastPosition(){const e=this.getLastRange();return e?e.end.clone():null}isEqual(e){if(this.isFake!=e.isFake)return!1;if(this.isFake&&this.fakeSelectionLabel!=e.fakeSelectionLabel)return!1;if(this.rangeCount!=e.rangeCount)return!1;if(0===this.rangeCount)return!0;if(!this.anchor.isEqual(e.anchor)||!this.focus.isEqual(e.focus))return!1;for(const t of this._ranges){let o=!1;for(const n of e._ranges)if(t.isEqual(n)){o=!0;break}if(!o)return!1}return!0}isSimilar(e){if(this.isBackward!=e.isBackward)return!1;const t=ae(this.getRanges());if(t!=ae(e.getRanges()))return!1;if(0==t)return!0;for(let o of this.getRanges()){o=o.getTrimmed();let t=!1;for(let n of e.getRanges())if(n=n.getTrimmed(),o.start.isEqual(n.start)&&o.end.isEqual(n.end)){t=!0;break}if(!t)return!1}return!0}getSelectedElement(){return 1!==this.rangeCount?null:this.getFirstRange().getContainedElement()}setTo(...e){let[t,o,n]=e;if("object"==typeof o&&(n=o,o=void 0),null===t)this._setRanges([]),this._setFakeOptions(n);else if(t instanceof bs||t instanceof gs)this._setRanges(t.getRanges(),t.isBackward),this._setFakeOptions({fake:t.isFake,label:t.fakeSelectionLabel});else if(t instanceof hs)this._setRanges([t],n&&n.backward),this._setFakeOptions(n);else if(t instanceof ms)this._setRanges([new hs(t)]),this._setFakeOptions(n);else if(t instanceof Yi){const e=!!n&&!!n.backward;let a;if(void 0===o)throw new x("view-selection-setto-required-second-parameter",this);a="in"==o?hs._createIn(t):"on"==o?hs._createOn(t):new hs(ms._createAt(t,o)),this._setRanges([a],e),this._setFakeOptions(n)}else{if(!ie(t))throw new x("view-selection-setto-not-selectable",this);this._setRanges(t,n&&n.backward),this._setFakeOptions(n)}this.fire("change")}setFocus(e,t){if(null===this.anchor)throw new x("view-selection-setfocus-no-ranges",this);const o=ms._createAt(e,t);if("same"==o.compareWith(this.focus))return;const n=this.anchor;this._ranges.pop(),"before"==o.compareWith(n)?this._addRange(new hs(o,n),!0):this._addRange(new hs(n,o)),this.fire("change")}_setRanges(e,t=!1){e=Array.from(e),this._ranges=[];for(const o of e)this._addRange(o);this._lastRangeBackward=!!t}_setFakeOptions(e={}){this._isFake=!!e.fake,this._fakeSelectionLabel=e.fake&&e.label||""}_addRange(e,t=!1){if(!(e instanceof hs))throw new x("view-selection-add-range-not-range",this);this._pushRange(e),this._lastRangeBackward=!!t}_pushRange(e){for(const t of this._ranges)if(e.isIntersecting(t))throw new x("view-selection-range-intersects",this,{addedRange:e,intersectingRange:t});this._ranges.push(new hs(e.start,e.end))}}bs.prototype.is=function(e){return"selection"===e||"view:selection"===e};class gs extends(z(Wi)){constructor(...e){super(),this._selection=new bs,this._selection.delegate("change").to(this),e.length&&this._selection.setTo(...e)}get isFake(){return this._selection.isFake}get fakeSelectionLabel(){return this._selection.fakeSelectionLabel}get anchor(){return this._selection.anchor}get focus(){return this._selection.focus}get isCollapsed(){return this._selection.isCollapsed}get rangeCount(){return this._selection.rangeCount}get isBackward(){return this._selection.isBackward}get editableElement(){return this._selection.editableElement}get _ranges(){return this._selection._ranges}*getRanges(){yield*this._selection.getRanges()}getFirstRange(){return this._selection.getFirstRange()}getLastRange(){return this._selection.getLastRange()}getFirstPosition(){return this._selection.getFirstPosition()}getLastPosition(){return this._selection.getLastPosition()}getSelectedElement(){return this._selection.getSelectedElement()}isEqual(e){return this._selection.isEqual(e)}isSimilar(e){return this._selection.isSimilar(e)}_setTo(...e){this._selection.setTo(...e)}_setFocus(e,t){this._selection.setFocus(e,t)}}gs.prototype.is=function(e){return"selection"===e||"documentSelection"==e||"view:selection"==e||"view:documentSelection"==e};class fs extends w{constructor(e,t,o){super(e,t),this.startRange=o,this._eventPhase="none",this._currentTarget=null}get eventPhase(){return this._eventPhase}get currentTarget(){return this._currentTarget}}const vs=Symbol("bubbling contexts");function ws(e){return class extends e{fire(e,...t){try{const o=e instanceof w?e:new w(this,e),n=Os(this);if(!n.size)return;if(ks(o,"capturing",this),Cs(n,"$capture",o,...t))return o.return;const a=o.startRange||this.selection.getFirstRange(),r=a?a.getContainedElement():null,i=!!r&&Boolean(ys(n,r));let l=r||function(e){if(!e)return null;const t=e.start.parent,o=e.end.parent,n=t.getPath(),a=o.getPath();return n.length>a.length?t:o}(a);if(ks(o,"atTarget",l),!i){if(Cs(n,"$text",o,...t))return o.return;ks(o,"bubbling",l)}for(;l;){if(l.is("rootElement")){if(Cs(n,"$root",o,...t))return o.return}else if(l.is("element")&&Cs(n,l.name,o,...t))return o.return;if(Cs(n,l,o,...t))return o.return;l=l.parent,ks(o,"bubbling",l)}return ks(o,"bubbling",this),Cs(n,"$document",o,...t),o.return}catch(e){x.rethrowUnexpectedError(e,this)}}_addEventListener(e,t,o){const n=ur(o.context||"$document"),a=Os(this);for(const r of n){let n=a.get(r);n||(n=new(z()),a.set(r,n)),this.listenTo(n,e,t,o)}}_removeEventListener(e,t){const o=Os(this);for(const n of o.values())this.stopListening(n,e,t)}}}{const e=ws(Object);["fire","_addEventListener","_removeEventListener"].forEach(t=>{ws[t]=e.prototype[t]})}function ks(e,t,o){e instanceof fs&&(e._eventPhase=t,e._currentTarget=o)}function Cs(e,t,o,...n){const a="string"==typeof t?e.get(t):ys(e,t);return!!a&&(a.fire(o,...n),o.stop.called)}function ys(e,t){for(const[o,n]of e)if("function"==typeof o&&o(t))return n;return null}function Os(e){return e[vs]||(e[vs]=new Map),e[vs]}class js extends(ws(J())){constructor(e){super(),this.selection=new gs,this.roots=new gr({idProperty:"rootName"}),this.stylesProcessor=e,this.set("isReadOnly",!1),this.set("isFocused",!1),this.set("isSelecting",!1),this.set("isComposing",!1),this._postFixers=new Set}getRoot(e="main"){return this.roots.get(e)}registerPostFixer(e){this._postFixers.add(e)}destroy(){this.roots.map(e=>e.destroy()),this.stopListening()}_callPostFixers(e){let t=!1;do{for(const o of this._postFixers)if(t=o(e),t)break}while(t)}}class xs extends as{constructor(...e){super(...e),this.getFillerOffset=_s,this._priority=10,this._id=null,this._clonesGroup=null}get priority(){return this._priority}get id(){return this._id}getElementsWithSameId(){if(null===this.id)throw new x("attribute-element-get-elements-with-same-id-no-id",this);return new Set(this._clonesGroup)}isSimilar(e){return null!==this.id||null!==e.id?this.id===e.id:super.isSimilar(e)&&this.priority==e.priority}_clone(e=!1){const t=super._clone(e);return t._priority=this._priority,t._id=this._id,t}}function _s(){if(Vs(this))return null;let e=this.parent;for(;e&&e.is("attributeElement");){if(Vs(e)>1)return null;e=e.parent}return!e||Vs(e)>1?null:this.childCount}function Vs(e){return Array.from(e.getChildren()).filter(e=>!e.is("uiElement")).length}xs.DEFAULT_PRIORITY=10,xs.prototype.is=function(e,t){return t?t===this.name&&("attributeElement"===e||"view:attributeElement"===e||"element"===e||"view:element"===e):"attributeElement"===e||"view:attributeElement"===e||"element"===e||"view:element"===e||"node"===e||"view:node"===e};class As extends as{constructor(e,t,o,n){super(e,t,o,n),this.getFillerOffset=Ns}_insertChild(e,t){if(t&&(t instanceof Yi||Array.from(t).length>0))throw new x("view-emptyelement-cannot-add",[this,t]);return 0}}function Ns(){return null}As.prototype.is=function(e,t){return t?t===this.name&&("emptyElement"===e||"view:emptyElement"===e||"element"===e||"view:element"===e):"emptyElement"===e||"view:emptyElement"===e||"element"===e||"view:element"===e||"node"===e||"view:node"===e};class Ds extends as{constructor(...e){super(...e),this.getFillerOffset=Ts}_insertChild(e,t){if(t&&(t instanceof Yi||Array.from(t).length>0))throw new x("view-uielement-cannot-add",[this,t]);return 0}render(e,t){return this.toDomElement(e)}toDomElement(e){const t=e.createElement(this.name);for(const o of this.getAttributeKeys())t.setAttribute(o,this.getAttribute(o));return t}}function Es(e){e.document.on("arrowKey",(t,o)=>function(e,t,o){if(t.keyCode==rr.arrowright){const e=t.domTarget.ownerDocument.defaultView.getSelection(),n=1==e.rangeCount&&e.getRangeAt(0).collapsed;if(n||t.shiftKey){const t=e.focusNode,a=e.focusOffset,r=o.domPositionToView(t,a);if(null===r)return;let i=!1;const l=r.getLastMatchingPosition(e=>(e.item.is("uiElement")&&(i=!0),!(!e.item.is("uiElement")&&!e.item.is("attributeElement"))));if(i){const t=o.viewPositionToDom(l);n?e.collapse(t.parent,t.offset):e.extend(t.parent,t.offset)}}}}(0,o,e.domConverter),{priority:"low"})}function Ts(){return null}Ds.prototype.is=function(e,t){return t?t===this.name&&("uiElement"===e||"view:uiElement"===e||"element"===e||"view:element"===e):"uiElement"===e||"view:uiElement"===e||"element"===e||"view:element"===e||"node"===e||"view:node"===e};class Ss extends as{constructor(...e){super(...e),this.getFillerOffset=Bs}_insertChild(e,t){if(t&&(t instanceof Yi||Array.from(t).length>0))throw new x("view-rawelement-cannot-add",[this,t]);return 0}render(){}}function Bs(){return null}Ss.prototype.is=function(e,t){return t?t===this.name&&("rawElement"===e||"view:rawElement"===e||"element"===e||"view:element"===e):"rawElement"===e||"view:rawElement"===e||e===this.name||e==="view:"+this.name||"element"===e||"view:element"===e||"node"===e||"view:node"===e};class Is extends(z(Wi)){constructor(e,t){super(),this.document=e,this._children=[],t&&this._insertChild(0,t),this._customProperties=new Map}[Symbol.iterator](){return this._children[Symbol.iterator]()}get childCount(){return this._children.length}get isEmpty(){return 0===this.childCount}get root(){return this}get parent(){return null}getCustomProperty(e){return this._customProperties.get(e)}*getCustomProperties(){yield*this._customProperties.entries()}_appendChild(e){return this._insertChild(this.childCount,e)}getChild(e){return this._children[e]}getChildIndex(e){return this._children.indexOf(e)}getChildren(){return this._children[Symbol.iterator]()}_insertChild(e,t){this._fireChange("children",this);let o=0;const n=function(e,t){return"string"==typeof t?[new Qi(e,t)]:(ie(t)||(t=[t]),Array.from(t).map(t=>"string"==typeof t?new Qi(e,t):t instanceof Ji?new Qi(e,t.data):t))}(this.document,t);for(const a of n)null!==a.parent&&a._remove(),a.parent=this,this._children.splice(e,0,a),e++,o++;return o}_removeChildren(e,t=1){this._fireChange("children",this);for(let o=e;o<e+t;o++)this._children[o].parent=null;return this._children.splice(e,t)}_fireChange(e,t){this.fire("change:"+e,t)}_setCustomProperty(e,t){this._customProperties.set(e,t)}_removeCustomProperty(e){return this._customProperties.delete(e)}}Is.prototype.is=function(e){return"documentFragment"===e||"view:documentFragment"===e};class zs{constructor(e){this.document=e,this._cloneGroups=new Map,this._slotFactory=null}setSelection(...e){this.document.selection._setTo(...e)}setSelectionFocus(...e){this.document.selection._setFocus(...e)}createDocumentFragment(e){return new Is(this.document,e)}createText(e){return new Qi(this.document,e)}createAttributeElement(e,t,o={}){const n=new xs(this.document,e,t);return"number"==typeof o.priority&&(n._priority=o.priority),o.id&&(n._id=o.id),o.renderUnsafeAttributes&&n._unsafeAttributesToRender.push(...o.renderUnsafeAttributes),n}createContainerElement(e,t,o={},n={}){let a=null;Ie(o)?n=o:a=o;const r=new is(this.document,e,t,a);return n.renderUnsafeAttributes&&r._unsafeAttributesToRender.push(...n.renderUnsafeAttributes),r}createEditableElement(e,t,o={}){const n=new ss(this.document,e,t);return o.renderUnsafeAttributes&&n._unsafeAttributesToRender.push(...o.renderUnsafeAttributes),n}createEmptyElement(e,t,o={}){const n=new As(this.document,e,t);return o.renderUnsafeAttributes&&n._unsafeAttributesToRender.push(...o.renderUnsafeAttributes),n}createUIElement(e,t,o){const n=new Ds(this.document,e,t);return o&&(n.render=o),n}createRawElement(e,t,o,n={}){const a=new Ss(this.document,e,t);return o&&(a.render=o),n.renderUnsafeAttributes&&a._unsafeAttributesToRender.push(...n.renderUnsafeAttributes),a}setAttribute(e,t,o){o._setAttribute(e,t)}removeAttribute(e,t){t._removeAttribute(e)}addClass(e,t){t._addClass(e)}removeClass(e,t){t._removeClass(e)}setStyle(e,t,o){Ie(e)&&void 0===o?t._setStyle(e):o._setStyle(e,t)}removeStyle(e,t){t._removeStyle(e)}setCustomProperty(e,t,o){o._setCustomProperty(e,t)}removeCustomProperty(e,t){return t._removeCustomProperty(e)}breakAttributes(e){return e instanceof ms?this._breakAttributes(e):this._breakAttributesRange(e)}breakContainer(e){const t=e.parent;if(!t.is("containerElement"))throw new x("view-writer-break-non-container-element",this.document);if(!t.parent)throw new x("view-writer-break-root",this.document);if(e.isAtStart)return ms._createBefore(t);if(!e.isAtEnd){const o=t._clone(!1);this.insert(ms._createAfter(t),o);const n=new hs(e,ms._createAt(t,"end")),a=new ms(o,0);this.move(n,a)}return ms._createAfter(t)}mergeAttributes(e){const t=e.offset,o=e.parent;if(o.is("$text"))return e;if(o.is("attributeElement")&&0===o.childCount){const e=o.parent,t=o.index;return o._remove(),this._removeFromClonedElementsGroup(o),this.mergeAttributes(new ms(e,t))}const n=o.getChild(t-1),a=o.getChild(t);if(!n||!a)return e;if(n.is("$text")&&a.is("$text"))return Rs(n,a);if(n.is("attributeElement")&&a.is("attributeElement")&&n.isSimilar(a)){const e=n.childCount;return n._appendChild(a.getChildren()),a._remove(),this._removeFromClonedElementsGroup(a),this.mergeAttributes(new ms(n,e))}return e}mergeContainers(e){const t=e.nodeBefore,o=e.nodeAfter;if(!(t&&o&&t.is("containerElement")&&o.is("containerElement")))throw new x("view-writer-merge-containers-invalid-position",this.document);const n=t.getChild(t.childCount-1),a=n instanceof Qi?ms._createAt(n,"end"):ms._createAt(t,"end");return this.move(hs._createIn(o),ms._createAt(t,"end")),this.remove(hs._createOn(o)),a}insert(e,t){$s(t=ie(t)?[...t]:[t],this.document);const o=t.reduce((e,t)=>{const o=e[e.length-1],n=!t.is("uiElement");return o&&o.breakAttributes==n?o.nodes.push(t):e.push({breakAttributes:n,nodes:[t]}),e},[]);let n=null,a=e;for(const{nodes:r,breakAttributes:i}of o){const e=this._insertNodes(a,r,i);n||(n=e.start),a=e.end}return n?new hs(n,a):new hs(e)}remove(e){const t=e instanceof hs?e:hs._createOn(e);if(Hs(t,this.document),t.isCollapsed)return new Is(this.document);const{start:o,end:n}=this._breakAttributesRange(t,!0),a=o.parent,r=n.offset-o.offset,i=a._removeChildren(o.offset,r);for(const s of i)this._removeFromClonedElementsGroup(s);const l=this.mergeAttributes(o);return t.start=l,t.end=l.clone(),new Is(this.document,i)}clear(e,t){Hs(e,this.document);const o=e.getWalker({direction:"backward",ignoreElementEnd:!0});for(const n of o){const o=n.item;let a;if(o.is("element")&&t.isSimilar(o))a=hs._createOn(o);else if(!n.nextPosition.isAfter(e.start)&&o.is("$textProxy")){const e=o.getAncestors().find(e=>e.is("element")&&t.isSimilar(e));e&&(a=hs._createIn(e))}a&&(a.end.isAfter(e.end)&&(a.end=e.end),a.start.isBefore(e.start)&&(a.start=e.start),this.remove(a))}}move(e,t){let o;if(t.isAfter(e.end)){const n=(t=this._breakAttributes(t,!0)).parent,a=n.childCount;e=this._breakAttributesRange(e,!0),o=this.remove(e),t.offset+=n.childCount-a}else o=this.remove(e);return this.insert(t,o)}wrap(e,t){if(!(t instanceof xs))throw new x("view-writer-wrap-invalid-attribute",this.document);if(Hs(e,this.document),e.isCollapsed){let n=e.start;n.parent.is("element")&&(o=n.parent,!Array.from(o.getChildren()).some(e=>!e.is("uiElement")))&&(n=n.getLastMatchingPosition(e=>e.item.is("uiElement"))),n=this._wrapPosition(n,t);const a=this.document.selection;return a.isCollapsed&&a.getFirstPosition().isEqual(e.start)&&this.setSelection(n),new hs(n)}return this._wrapRange(e,t);var o}unwrap(e,t){if(!(t instanceof xs))throw new x("view-writer-unwrap-invalid-attribute",this.document);if(Hs(e,this.document),e.isCollapsed)return e;const{start:o,end:n}=this._breakAttributesRange(e,!0),a=o.parent,r=this._unwrapChildren(a,o.offset,n.offset,t),i=this.mergeAttributes(r.start);i.isEqual(r.start)||r.end.offset--;const l=this.mergeAttributes(r.end);return new hs(i,l)}rename(e,t){const o=new is(this.document,e,t.getAttributes());return this.insert(ms._createAfter(t),o),this.move(hs._createIn(t),ms._createAt(o,0)),this.remove(hs._createOn(t)),o}clearClonedElementsGroup(e){this._cloneGroups.delete(e)}createPositionAt(e,t){return ms._createAt(e,t)}createPositionAfter(e){return ms._createAfter(e)}createPositionBefore(e){return ms._createBefore(e)}createRange(...e){return new hs(...e)}createRangeOn(e){return hs._createOn(e)}createRangeIn(e){return hs._createIn(e)}createSelection(...e){return new bs(...e)}createSlot(e){if(!this._slotFactory)throw new x("view-writer-invalid-create-slot-context",this.document);return this._slotFactory(this,e)}_registerSlotFactory(e){this._slotFactory=e}_clearSlotFactory(){this._slotFactory=null}_insertNodes(e,t,o){let n,a;if(n=o?Fs(e):e.parent.is("$text")?e.parent.parent:e.parent,!n)throw new x("view-writer-invalid-position-container",this.document);a=o?this._breakAttributes(e,!0):e.parent.is("$text")?Ps(e):e;const r=n._insertChild(a.offset,t);for(const c of t)this._addToClonedElementsGroup(c);const i=a.getShiftedBy(r),l=this.mergeAttributes(a);l.isEqual(a)||i.offset--;const s=this.mergeAttributes(i);return new hs(l,s)}_wrapChildren(e,t,o,n){let a=t;const r=[];for(;a<o;){const t=e.getChild(a),o=t.is("$text"),i=t.is("attributeElement");if(i&&this._wrapAttributeElement(n,t))r.push(new ms(e,a));else if(o||!i||Ms(n,t)){const o=n._clone();t._remove(),o._appendChild(t),e._insertChild(a,o),this._addToClonedElementsGroup(o),r.push(new ms(e,a))}else this._wrapChildren(t,0,t.childCount,n);a++}let i=0;for(const l of r)l.offset-=i,l.offset!=t&&(this.mergeAttributes(l).isEqual(l)||(i++,o--));return hs._createFromParentsAndOffsets(e,t,e,o)}_unwrapChildren(e,t,o,n){let a=t;const r=[];for(;a<o;){const t=e.getChild(a);if(t.is("attributeElement"))if(t.isSimilar(n)){const n=t.getChildren(),i=t.childCount;t._remove(),e._insertChild(a,n),this._removeFromClonedElementsGroup(t),r.push(new ms(e,a),new ms(e,a+i)),a+=i,o+=i-1}else this._unwrapAttributeElement(n,t)?(r.push(new ms(e,a),new ms(e,a+1)),a++):(this._unwrapChildren(t,0,t.childCount,n),a++);else a++}let i=0;for(const l of r)l.offset-=i,l.offset!=t&&l.offset!=o&&(this.mergeAttributes(l).isEqual(l)||(i++,o--));return hs._createFromParentsAndOffsets(e,t,e,o)}_wrapRange(e,t){const{start:o,end:n}=this._breakAttributesRange(e,!0),a=o.parent,r=this._wrapChildren(a,o.offset,n.offset,t),i=this.mergeAttributes(r.start);i.isEqual(r.start)||r.end.offset--;const l=this.mergeAttributes(r.end);return new hs(i,l)}_wrapPosition(e,t){if(t.isSimilar(e.parent))return Ls(e.clone());e.parent.is("$text")&&(e=Ps(e));const o=this.createAttributeElement("_wrapPosition-fake-element");o._priority=Number.POSITIVE_INFINITY,o.isSimilar=()=>!1,e.parent._insertChild(e.offset,o);const n=new hs(e,e.getShiftedBy(1));this.wrap(n,t);const a=new ms(o.parent,o.index);o._remove();const r=a.nodeBefore,i=a.nodeAfter;return r instanceof Qi&&i instanceof Qi?Rs(r,i):Ls(a)}_wrapAttributeElement(e,t){if(!Ws(e,t))return!1;if(e.name!==t.name||e.priority!==t.priority)return!1;for(const o of e.getAttributeKeys())if("class"!==o&&"style"!==o&&t.hasAttribute(o)&&t.getAttribute(o)!==e.getAttribute(o))return!1;for(const o of e.getStyleNames())if(t.hasStyle(o)&&t.getStyle(o)!==e.getStyle(o))return!1;for(const o of e.getAttributeKeys())"class"!==o&&"style"!==o&&(t.hasAttribute(o)||this.setAttribute(o,e.getAttribute(o),t));for(const o of e.getStyleNames())t.hasStyle(o)||this.setStyle(o,e.getStyle(o),t);for(const o of e.getClassNames())t.hasClass(o)||this.addClass(o,t);return!0}_unwrapAttributeElement(e,t){if(!Ws(e,t))return!1;if(e.name!==t.name||e.priority!==t.priority)return!1;for(const o of e.getAttributeKeys())if("class"!==o&&"style"!==o&&(!t.hasAttribute(o)||t.getAttribute(o)!==e.getAttribute(o)))return!1;if(!t.hasClass(...e.getClassNames()))return!1;for(const o of e.getStyleNames())if(!t.hasStyle(o)||t.getStyle(o)!==e.getStyle(o))return!1;for(const o of e.getAttributeKeys())"class"!==o&&"style"!==o&&this.removeAttribute(o,t);return this.removeClass(Array.from(e.getClassNames()),t),this.removeStyle(Array.from(e.getStyleNames()),t),!0}_breakAttributesRange(e,t=!1){const o=e.start,n=e.end;if(Hs(e,this.document),e.isCollapsed){const o=this._breakAttributes(e.start,t);return new hs(o,o)}const a=this._breakAttributes(n,t),r=a.parent.childCount,i=this._breakAttributes(o,t);return a.offset+=a.parent.childCount-r,new hs(i,a)}_breakAttributes(e,t=!1){const o=e.offset,n=e.parent;if(e.parent.is("emptyElement"))throw new x("view-writer-cannot-break-empty-element",this.document);if(e.parent.is("uiElement"))throw new x("view-writer-cannot-break-ui-element",this.document);if(e.parent.is("rawElement"))throw new x("view-writer-cannot-break-raw-element",this.document);if(!t&&n.is("$text")&&Us(n.parent))return e.clone();if(Us(n))return e.clone();if(n.is("$text"))return this._breakAttributes(Ps(e),t);if(o==n.childCount){const e=new ms(n.parent,n.index+1);return this._breakAttributes(e,t)}if(0===o){const e=new ms(n.parent,n.index);return this._breakAttributes(e,t)}{const e=n.index+1,a=n._clone();n.parent._insertChild(e,a),this._addToClonedElementsGroup(a);const r=n.childCount-o,i=n._removeChildren(o,r);a._appendChild(i);const l=new ms(n.parent,e);return this._breakAttributes(l,t)}}_addToClonedElementsGroup(e){if(!e.root.is("rootElement"))return;if(e.is("element"))for(const n of e.getChildren())this._addToClonedElementsGroup(n);const t=e.id;if(!t)return;let o=this._cloneGroups.get(t);o||(o=new Set,this._cloneGroups.set(t,o)),o.add(e),e._clonesGroup=o}_removeFromClonedElementsGroup(e){if(e.is("element"))for(const n of e.getChildren())this._removeFromClonedElementsGroup(n);const t=e.id;if(!t)return;const o=this._cloneGroups.get(t);o&&o.delete(e)}}function Fs(e){let t=e.parent;for(;!Us(t);){if(!t)return;t=t.parent}return t}function Ms(e,t){return e.priority<t.priority||!(e.priority>t.priority)&&e.getIdentity()<t.getIdentity()}function Ls(e){const t=e.nodeBefore;if(t&&t.is("$text"))return new ms(t,t.data.length);const o=e.nodeAfter;return o&&o.is("$text")?new ms(o,0):e}function Ps(e){if(e.offset==e.parent.data.length)return new ms(e.parent.parent,e.parent.index+1);if(0===e.offset)return new ms(e.parent.parent,e.parent.index);const t=e.parent.data.slice(e.offset);return e.parent._data=e.parent.data.slice(0,e.offset),e.parent.parent._insertChild(e.parent.index+1,new Qi(e.root.document,t)),new ms(e.parent.parent,e.parent.index+1)}function Rs(e,t){const o=e.data.length;return e._data+=t.data,t._remove(),new ms(e,o)}const qs=[Qi,xs,is,As,Ss,Ds];function $s(e,t){for(const o of e){if(!qs.some(e=>o instanceof e))throw new x("view-writer-insert-invalid-node-type",t);o.is("$text")||$s(o.getChildren(),t)}}function Us(e){return e&&(e.is("containerElement")||e.is("documentFragment"))}function Hs(e,t){const o=Fs(e.start),n=Fs(e.end);if(!o||!n||o!==n)throw new x("view-writer-invalid-range-container",t)}function Ws(e,t){return null===e.id&&null===t.id}const Gs=e=>e.createTextNode(" "),Ks=e=>{const t=e.createElement("span");return t.dataset.ckeFiller="true",t.innerText=" ",t},Ys=e=>{const t=e.createElement("br");return t.dataset.ckeFiller="true",t},Qs=7,Js="".repeat(Qs);function Zs(e){return Na(e)&&e.data.substr(0,Qs)===Js}function Xs(e){return e.data.length==Qs&&Zs(e)}function ec(e){return Zs(e)?e.data.slice(Qs):e.data}function tc(e,t){if(t.keyCode==rr.arrowleft){const e=t.domTarget.ownerDocument.defaultView.getSelection();if(1==e.rangeCount&&e.getRangeAt(0).collapsed){const t=e.getRangeAt(0).startContainer,o=e.getRangeAt(0).startOffset;Zs(t)&&o<=Qs&&e.collapse(t,0)}}}var oc=r(4401),nc={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};Ar()(oc.Z,nc),oc.Z.locals;class ac extends(J()){constructor(e,t){super(),this.domDocuments=new Set,this.domConverter=e,this.markedAttributes=new Set,this.markedChildren=new Set,this.markedTexts=new Set,this.selection=t,this.set("isFocused",!1),this.set("isSelecting",!1),u.isBlink&&!u.isAndroid&&this.on("change:isSelecting",()=>{this.isSelecting||this.render()}),this.set("isComposing",!1),this.on("change:isComposing",()=>{this.isComposing||this.render()}),this._inlineFiller=null,this._fakeSelectionContainer=null}markToSync(e,t){if("text"===e)this.domConverter.mapViewToDom(t.parent)&&this.markedTexts.add(t);else{if(!this.domConverter.mapViewToDom(t))return;if("attributes"===e)this.markedAttributes.add(t);else{if("children"!==e)throw new x("view-renderer-unknown-type",this);this.markedChildren.add(t)}}}render(){if(this.isComposing&&!u.isAndroid)return;let e=null;const t=!(u.isBlink&&!u.isAndroid)||!this.isSelecting;for(const o of this.markedChildren)this._updateChildrenMappings(o);t?(this._inlineFiller&&!this._isSelectionInInlineFiller()&&this._removeInlineFiller(),this._inlineFiller?e=this._getInlineFillerPosition():this._needsInlineFillerAtSelection()&&(e=this.selection.getFirstPosition(),this.markedChildren.add(e.parent))):this._inlineFiller&&this._inlineFiller.parentNode&&(e=this.domConverter.domPositionToView(this._inlineFiller),e&&e.parent.is("$text")&&(e=ms._createBefore(e.parent)));for(const o of this.markedAttributes)this._updateAttrs(o);for(const o of this.markedChildren)this._updateChildren(o,{inlineFillerPosition:e});for(const o of this.markedTexts)!this.markedChildren.has(o.parent)&&this.domConverter.mapViewToDom(o.parent)&&this._updateText(o,{inlineFillerPosition:e});if(t)if(e){const t=this.domConverter.viewPositionToDom(e),o=t.parent.ownerDocument;Zs(t.parent)?this._inlineFiller=t.parent:this._inlineFiller=rc(o,t.parent,t.offset)}else this._inlineFiller=null;this._updateFocus(),this._updateSelection(),this.markedTexts.clear(),this.markedAttributes.clear(),this.markedChildren.clear()}_updateChildrenMappings(e){if(!this.domConverter.mapViewToDom(e))return;const t=Array.from(this.domConverter.mapViewToDom(e).childNodes),o=Array.from(this.domConverter.viewChildrenToDom(e,{withChildren:!1})),n=this._diffNodeLists(t,o),a=this._findReplaceActions(n,t,o);if(-1!==a.indexOf("replace")){const n={equal:0,insert:0,delete:0};for(const r of a)if("replace"===r){const a=n.equal+n.insert,r=n.equal+n.delete,i=e.getChild(a);!i||i.is("uiElement")||i.is("rawElement")||this._updateElementMappings(i,t[r]),Ga(o[a]),n.equal++}else n[r]++}}_updateElementMappings(e,t){this.domConverter.unbindDomElement(t),this.domConverter.bindElements(t,e),this.markedChildren.add(e),this.markedAttributes.add(e)}_getInlineFillerPosition(){const e=this.selection.getFirstPosition();return e.parent.is("$text")?ms._createBefore(e.parent):e}_isSelectionInInlineFiller(){if(1!=this.selection.rangeCount||!this.selection.isCollapsed)return!1;const e=this.selection.getFirstPosition(),t=this.domConverter.viewPositionToDom(e);return!!(t&&Na(t.parent)&&Zs(t.parent))}_removeInlineFiller(){const e=this._inlineFiller;if(!Zs(e))throw new x("view-renderer-filler-was-lost",this);Xs(e)?e.remove():e.data=e.data.substr(Qs),this._inlineFiller=null}_needsInlineFillerAtSelection(){if(1!=this.selection.rangeCount||!this.selection.isCollapsed)return!1;const e=this.selection.getFirstPosition(),t=e.parent,o=e.offset;if(!this.domConverter.mapViewToDom(t.root))return!1;if(!t.is("element"))return!1;if(!function(e){if("false"==e.getAttribute("contenteditable"))return!1;const t=e.findAncestor(e=>e.hasAttribute("contenteditable"));return!t||"true"==t.getAttribute("contenteditable")}(t))return!1;if(o===t.getFillerOffset())return!1;const n=e.nodeBefore,a=e.nodeAfter;return!(n instanceof Qi||a instanceof Qi)&&(!u.isAndroid||!n&&!a)}_updateText(e,t){const o=this.domConverter.findCorrespondingDomText(e);let n=this.domConverter.viewToDom(e).data;const a=t.inlineFillerPosition;a&&a.parent==e.parent&&a.offset==e.index&&(n=Js+n),cc(o,n)}_updateAttrs(e){const t=this.domConverter.mapViewToDom(e);if(!t)return;const o=Array.from(t.attributes).map(e=>e.name),n=e.getAttributeKeys();for(const a of n)this.domConverter.setDomElementAttribute(t,a,e.getAttribute(a),e);for(const a of o)e.hasAttribute(a)||this.domConverter.removeDomElementAttribute(t,a)}_updateChildren(e,t){const o=this.domConverter.mapViewToDom(e);if(!o)return;if(u.isAndroid){let e=null;for(const t of Array.from(o.childNodes)){if(e&&Na(e)&&Na(t)){o.normalize();break}e=t}}const n=t.inlineFillerPosition,a=o.childNodes,r=Array.from(this.domConverter.viewChildrenToDom(e,{bind:!0}));n&&n.parent===e&&rc(o.ownerDocument,r,n.offset);const i=this._diffNodeLists(a,r),l=u.isAndroid?this._findReplaceActions(i,a,r,{replaceText:!0}):i;let s=0;const c=new Set;for(const d of l)"delete"===d?(c.add(a[s]),Ga(a[s])):"equal"!==d&&"replace"!==d||s++;s=0;for(const d of l)"insert"===d?(Ra(o,s,r[s]),s++):"replace"===d?(cc(a[s],r[s].data),s++):"equal"===d&&(this._markDescendantTextToSync(this.domConverter.domToView(r[s])),s++);for(const d of c)d.parentNode||this.domConverter.unbindDomElement(d)}_diffNodeLists(e,t){return e=function(e,t){const o=Array.from(e);if(0==o.length||!t)return o;const n=o[o.length-1];return n==t&&o.pop(),o}(e,this._fakeSelectionContainer),g(e,t,sc.bind(null,this.domConverter))}_findReplaceActions(e,t,o,n={}){if(-1===e.indexOf("insert")||-1===e.indexOf("delete"))return e;let a=[],r=[],i=[];const l={equal:0,insert:0,delete:0};for(const s of e)"insert"===s?i.push(o[l.equal+l.insert]):"delete"===s?r.push(t[l.equal+l.delete]):(a=a.concat(g(r,i,n.replaceText?lc:ic).map(e=>"equal"===e?"replace":e)),a.push("equal"),r=[],i=[]),l[s]++;return a.concat(g(r,i,n.replaceText?lc:ic).map(e=>"equal"===e?"replace":e))}_markDescendantTextToSync(e){if(e)if(e.is("$text"))this.markedTexts.add(e);else if(e.is("element"))for(const t of e.getChildren())this._markDescendantTextToSync(t)}_updateSelection(){if(u.isBlink&&!u.isAndroid&&this.isSelecting&&!this.markedChildren.size)return;if(0===this.selection.rangeCount)return this._removeDomSelection(),void this._removeFakeSelection();const e=this.domConverter.mapViewToDom(this.selection.editableElement);this.isFocused&&e&&(this.selection.isFake?this._updateFakeSelection(e):this._fakeSelectionContainer&&this._fakeSelectionContainer.isConnected?(this._removeFakeSelection(),this._updateDomSelection(e)):this.isComposing&&u.isAndroid||this._updateDomSelection(e))}_updateFakeSelection(e){const t=e.ownerDocument;this._fakeSelectionContainer||(this._fakeSelectionContainer=function(e){const t=e.createElement("div");return t.className="ck-fake-selection-container",Object.assign(t.style,{position:"fixed",top:0,left:"-9999px",width:"42px"}),t.textContent=" ",t}(t));const o=this._fakeSelectionContainer;if(this.domConverter.bindFakeSelection(o,this.selection),!this._fakeSelectionNeedsUpdate(e))return;o.parentElement&&o.parentElement==e||e.appendChild(o),o.textContent=this.selection.fakeSelectionLabel||" ";const n=t.getSelection(),a=t.createRange();n.removeAllRanges(),a.selectNodeContents(o),n.addRange(a)}_updateDomSelection(e){const t=e.ownerDocument.defaultView.getSelection();if(!this._domSelectionNeedsUpdate(t))return;const o=this.domConverter.viewPositionToDom(this.selection.anchor),n=this.domConverter.viewPositionToDom(this.selection.focus);t.collapse(o.parent,o.offset),t.extend(n.parent,n.offset),u.isGecko&&function(e,t){const o=e.parent;if(o.nodeType!=Node.ELEMENT_NODE||e.offset!=o.childNodes.length-1)return;const n=o.childNodes[e.offset];n&&"BR"==n.tagName&&t.addRange(t.getRangeAt(0))}(n,t)}_domSelectionNeedsUpdate(e){if(!this.domConverter.isDomSelectionCorrect(e))return!0;const t=e&&this.domConverter.domSelectionToView(e);return(!t||!this.selection.isEqual(t))&&!(!this.selection.isCollapsed&&this.selection.isSimilar(t))}_fakeSelectionNeedsUpdate(e){const t=this._fakeSelectionContainer,o=e.ownerDocument.getSelection();return!t||t.parentElement!==e||o.anchorNode!==t&&!t.contains(o.anchorNode)||t.textContent!==this.selection.fakeSelectionLabel}_removeDomSelection(){for(const e of this.domDocuments){const t=e.getSelection();if(t.rangeCount){const o=e.activeElement,n=this.domConverter.mapDomToView(o);o&&n&&t.removeAllRanges()}}}_removeFakeSelection(){const e=this._fakeSelectionContainer;e&&e.remove()}_updateFocus(){if(this.isFocused){const e=this.selection.editableElement;e&&this.domConverter.focus(e)}}}function rc(e,t,o){const n=t instanceof Array?t:t.childNodes,a=n[o];if(Na(a))return a.data=Js+a.data,a;{const a=e.createTextNode(Js);return Array.isArray(t)?n.splice(o,0,a):Ra(t,o,a),a}}function ic(e,t){return ka(e)&&ka(t)&&!Na(e)&&!Na(t)&&!qa(e)&&!qa(t)&&e.tagName.toLowerCase()===t.tagName.toLowerCase()}function lc(e,t){return ka(e)&&ka(t)&&Na(e)&&Na(t)}function sc(e,t,o){return t===o||(Na(t)&&Na(o)?t.data===o.data:!(!e.isBlockFiller(t)||!e.isBlockFiller(o)))}function cc(e,t){const o=e.data;if(o==t)return;const n=h(o,t);for(const a of n)"insert"===a.type?e.insertData(a.index,a.values.join("")):e.deleteData(a.index,a.howMany)}const dc=Ys(Va.document),uc=Gs(Va.document),mc=Ks(Va.document),hc="data-ck-unsafe-attribute-",pc="data-ck-unsafe-element";class bc{constructor(e,t={}){this.document=e,this.renderingMode=t.renderingMode||"editing",this.blockFillerMode=t.blockFillerMode||("editing"===this.renderingMode?"br":"nbsp"),this.preElements=["pre"],this.blockElements=["address","article","aside","blockquote","caption","center","dd","details","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","legend","li","main","menu","nav","ol","p","pre","section","summary","table","tbody","td","tfoot","th","thead","tr","ul"],this.inlineObjectElements=["object","iframe","input","button","textarea","select","option","video","embed","audio","img","canvas"],this.unsafeElements=["script","style"],this._domDocument="editing"===this.renderingMode?Va.document:Va.document.implementation.createHTMLDocument(""),this._domToViewMapping=new WeakMap,this._viewToDomMapping=new WeakMap,this._fakeSelectionMapping=new WeakMap,this._rawContentElementMatcher=new Zi,this._encounteredRawContentDomNodes=new WeakSet}bindFakeSelection(e,t){this._fakeSelectionMapping.set(e,new bs(t))}fakeSelectionToView(e){return this._fakeSelectionMapping.get(e)}bindElements(e,t){this._domToViewMapping.set(e,t),this._viewToDomMapping.set(t,e)}unbindDomElement(e){const t=this._domToViewMapping.get(e);if(t){this._domToViewMapping.delete(e),this._viewToDomMapping.delete(t);for(const t of Array.from(e.children))this.unbindDomElement(t)}}bindDocumentFragments(e,t){this._domToViewMapping.set(e,t),this._viewToDomMapping.set(t,e)}shouldRenderAttribute(e,t,o){return"data"===this.renderingMode||!(e=e.toLowerCase()).startsWith("on")&&("srcdoc"!==e||!t.match(/\bon\S+\s*=|javascript:|<\s*\/*script/i))&&("img"===o&&("src"===e||"srcset"===e)||"source"===o&&"srcset"===e||!t.match(/^\s*(javascript:|data:(image\/svg|text\/x?html))/i))}setContentOf(e,t){if("data"===this.renderingMode)return void(e.innerHTML=t);const o=(new DOMParser).parseFromString(t,"text/html"),n=o.createDocumentFragment(),a=o.body.childNodes;for(;a.length>0;)n.appendChild(a[0]);const r=o.createTreeWalker(n,NodeFilter.SHOW_ELEMENT),i=[];let l;for(;l=r.nextNode();)i.push(l);for(const s of i){for(const t of s.getAttributeNames())this.setDomElementAttribute(s,t,s.getAttribute(t));const e=s.tagName.toLowerCase();this._shouldRenameElement(e)&&(vc(e),s.replaceWith(this._createReplacementDomElement(e,s)))}for(;e.firstChild;)e.firstChild.remove();e.append(n)}viewToDom(e,t={}){if(e.is("$text")){const t=this._processDataFromViewText(e);return this._domDocument.createTextNode(t)}{if(this.mapViewToDom(e))return this.mapViewToDom(e);let o;if(e.is("documentFragment"))o=this._domDocument.createDocumentFragment(),t.bind&&this.bindDocumentFragments(o,e);else{if(e.is("uiElement"))return o="$comment"===e.name?this._domDocument.createComment(e.getCustomProperty("$rawContent")):e.render(this._domDocument,this),t.bind&&this.bindElements(o,e),o;this._shouldRenameElement(e.name)?(vc(e.name),o=this._createReplacementDomElement(e.name)):o=e.hasAttribute("xmlns")?this._domDocument.createElementNS(e.getAttribute("xmlns"),e.name):this._domDocument.createElement(e.name),e.is("rawElement")&&e.render(o,this),t.bind&&this.bindElements(o,e);for(const t of e.getAttributeKeys())this.setDomElementAttribute(o,t,e.getAttribute(t),e)}if(!1!==t.withChildren)for(const n of this.viewChildrenToDom(e,t))o.appendChild(n);return o}}setDomElementAttribute(e,t,o,n){const a=this.shouldRenderAttribute(t,o,e.tagName.toLowerCase())||n&&n.shouldRenderUnsafeAttribute(t);a||_("domconverter-unsafe-attribute-detected",{domElement:e,key:t,value:o}),e.hasAttribute(t)&&!a?e.removeAttribute(t):e.hasAttribute(hc+t)&&a&&e.removeAttribute(hc+t),e.setAttribute(a?t:hc+t,o)}removeDomElementAttribute(e,t){t!=pc&&(e.removeAttribute(t),e.removeAttribute(hc+t))}*viewChildrenToDom(e,t={}){const o=e.getFillerOffset&&e.getFillerOffset();let n=0;for(const a of e.getChildren()){o===n&&(yield this._getBlockFiller());const e=a.is("element")&&!!a.getCustomProperty("dataPipeline:transparentRendering")&&!fr(a.getAttributes());e&&"data"==this.renderingMode?yield*this.viewChildrenToDom(a,t):(e&&_("domconverter-transparent-rendering-unsupported-in-editing-pipeline",{viewElement:a}),yield this.viewToDom(a,t)),n++}o===n&&(yield this._getBlockFiller())}viewRangeToDom(e){const t=this.viewPositionToDom(e.start),o=this.viewPositionToDom(e.end),n=this._domDocument.createRange();return n.setStart(t.parent,t.offset),n.setEnd(o.parent,o.offset),n}viewPositionToDom(e){const t=e.parent;if(t.is("$text")){const o=this.findCorrespondingDomText(t);if(!o)return null;let n=e.offset;return Zs(o)&&(n+=Qs),{parent:o,offset:n}}{let o,n,a;if(0===e.offset){if(o=this.mapViewToDom(t),!o)return null;a=o.childNodes[0]}else{const t=e.nodeBefore;if(n=t.is("$text")?this.findCorrespondingDomText(t):this.mapViewToDom(t),!n)return null;o=n.parentNode,a=n.nextSibling}return Na(a)&&Zs(a)?{parent:a,offset:Qs}:{parent:o,offset:n?Pa(n)+1:0}}}domToView(e,t={}){if(this.isBlockFiller(e))return null;const o=this.getHostViewElement(e);if(o)return o;if(qa(e)&&t.skipComments)return null;if(Na(e)){if(Xs(e))return null;{const t=this._processDataFromDomText(e);return""===t?null:new Qi(this.document,t)}}{if(this.mapDomToView(e))return this.mapDomToView(e);let o;if(this.isDocumentFragment(e))o=new Is(this.document),t.bind&&this.bindDocumentFragments(e,o);else{o=this._createViewElement(e,t),t.bind&&this.bindElements(e,o);const n=e.attributes;if(n)for(let e=n.length,t=0;t<e;t++)o._setAttribute(n[t].name,n[t].value);if(this._isViewElementWithRawContent(o,t)||qa(e)){const t=qa(e)?e.data:e.innerHTML;return o._setCustomProperty("$rawContent",t),this._encounteredRawContentDomNodes.add(e),o}}if(!1!==t.withChildren)for(const n of this.domChildrenToView(e,t))o._appendChild(n);return o}}*domChildrenToView(e,t){for(let o=0;o<e.childNodes.length;o++){const n=e.childNodes[o],a=this.domToView(n,t);null!==a&&(yield a)}}domSelectionToView(e){if(1===e.rangeCount){let t=e.getRangeAt(0).startContainer;Na(t)&&(t=t.parentNode);const o=this.fakeSelectionToView(t);if(o)return o}const t=this.isDomSelectionBackward(e),o=[];for(let n=0;n<e.rangeCount;n++){const t=e.getRangeAt(n),a=this.domRangeToView(t);a&&o.push(a)}return new bs(o,{backward:t})}domRangeToView(e){const t=this.domPositionToView(e.startContainer,e.startOffset),o=this.domPositionToView(e.endContainer,e.endOffset);return t&&o?new hs(t,o):null}domPositionToView(e,t=0){if(this.isBlockFiller(e))return this.domPositionToView(e.parentNode,Pa(e));const o=this.mapDomToView(e);if(o&&(o.is("uiElement")||o.is("rawElement")))return ms._createBefore(o);if(Na(e)){if(Xs(e))return this.domPositionToView(e.parentNode,Pa(e));const o=this.findCorrespondingViewText(e);let n=t;return o?(Zs(e)&&(n-=Qs,n=n<0?0:n),new ms(o,n)):null}if(0===t){const t=this.mapDomToView(e);if(t)return new ms(t,0)}else{const o=e.childNodes[t-1];if(Na(o)&&Xs(o))return this.domPositionToView(o.parentNode,Pa(o));const n=Na(o)?this.findCorrespondingViewText(o):this.mapDomToView(o);if(n&&n.parent)return new ms(n.parent,n.index+1)}return null}mapDomToView(e){return this.getHostViewElement(e)||this._domToViewMapping.get(e)}findCorrespondingViewText(e){if(Xs(e))return null;const t=this.getHostViewElement(e);if(t)return t;const o=e.previousSibling;if(o){if(!this.isElement(o))return null;const e=this.mapDomToView(o);if(e){const t=e.nextSibling;return t instanceof Qi?t:null}}else{const t=this.mapDomToView(e.parentNode);if(t){const e=t.getChild(0);return e instanceof Qi?e:null}}return null}mapViewToDom(e){return this._viewToDomMapping.get(e)}findCorrespondingDomText(e){const t=e.previousSibling;return t&&this.mapViewToDom(t)?this.mapViewToDom(t).nextSibling:!t&&e.parent&&this.mapViewToDom(e.parent)?this.mapViewToDom(e.parent).childNodes[0]:null}focus(e){const t=this.mapViewToDom(e);if(t&&t.ownerDocument.activeElement!==t){const{scrollX:e,scrollY:o}=Va.window,n=[];gc(t,e=>{const{scrollLeft:t,scrollTop:o}=e;n.push([t,o])}),t.focus(),gc(t,e=>{const[t,o]=n.shift();e.scrollLeft=t,e.scrollTop=o}),Va.window.scrollTo(e,o)}}isElement(e){return e&&e.nodeType==Node.ELEMENT_NODE}isDocumentFragment(e){return e&&e.nodeType==Node.DOCUMENT_FRAGMENT_NODE}isBlockFiller(e){return"br"==this.blockFillerMode?e.isEqualNode(dc):!("BR"!==e.tagName||!fc(e,this.blockElements)||1!==e.parentNode.childNodes.length)||e.isEqualNode(mc)||function(e,t){const o=e.isEqualNode(uc);return o&&fc(e,t)&&1===e.parentNode.childNodes.length}(e,this.blockElements)}isDomSelectionBackward(e){if(e.isCollapsed)return!1;const t=this._domDocument.createRange();try{t.setStart(e.anchorNode,e.anchorOffset),t.setEnd(e.focusNode,e.focusOffset)}catch(e){return!1}const o=t.collapsed;return t.detach(),o}getHostViewElement(e){const t=Aa(e);for(t.pop();t.length;){const e=t.pop(),o=this._domToViewMapping.get(e);if(o&&(o.is("uiElement")||o.is("rawElement")))return o}return null}isDomSelectionCorrect(e){return this._isDomSelectionPositionCorrect(e.anchorNode,e.anchorOffset)&&this._isDomSelectionPositionCorrect(e.focusNode,e.focusOffset)}registerRawContentMatcher(e){this._rawContentElementMatcher.add(e)}_getBlockFiller(){switch(this.blockFillerMode){case"nbsp":return Gs(this._domDocument);case"markedNbsp":return Ks(this._domDocument);case"br":return Ys(this._domDocument)}}_isDomSelectionPositionCorrect(e,t){if(Na(e)&&Zs(e)&&t<Qs)return!1;if(this.isElement(e)&&Zs(e.childNodes[t]))return!1;const o=this.mapDomToView(e);return!o||!o.is("uiElement")&&!o.is("rawElement")}_processDataFromViewText(e){let t=e.data;if(e.getAncestors().some(e=>this.preElements.includes(e.name)))return t;if(" "==t.charAt(0)){const o=this._getTouchingInlineViewNode(e,!1);!(o&&o.is("$textProxy")&&this._nodeEndsWithSpace(o))&&o||(t=" "+t.substr(1))}if(" "==t.charAt(t.length-1)){const o=this._getTouchingInlineViewNode(e,!0),n=o&&o.is("$textProxy")&&" "==o.data.charAt(0);" "!=t.charAt(t.length-2)&&o&&!n||(t=t.substr(0,t.length-1)+" ")}return t.replace(/ {2}/g,"  ")}_nodeEndsWithSpace(e){if(e.getAncestors().some(e=>this.preElements.includes(e.name)))return!1;const t=this._processDataFromViewText(e);return" "==t.charAt(t.length-1)}_processDataFromDomText(e){let t=e.data;if(function(e,t){const o=Aa(e);return o.some(e=>e.tagName&&t.includes(e.tagName.toLowerCase()))}(e,this.preElements))return ec(e);t=t.replace(/[ \n\t\r]{1,}/g," ");const o=this._getTouchingInlineDomNode(e,!1),n=this._getTouchingInlineDomNode(e,!0),a=this._checkShouldLeftTrimDomText(e,o),r=this._checkShouldRightTrimDomText(e,n);a&&(t=t.replace(/^ /,"")),r&&(t=t.replace(/ $/,"")),t=ec(new Text(t)),t=t.replace(/ \u00A0/g," ");const i=n&&this.isElement(n)&&"BR"!=n.tagName,l=n&&Na(n)&&" "==n.data.charAt(0);return(/( |\u00A0)\u00A0$/.test(t)||!n||i||l)&&(t=t.replace(/\u00A0$/," ")),(a||o&&this.isElement(o)&&"BR"!=o.tagName)&&(t=t.replace(/^\u00A0/," ")),t}_checkShouldLeftTrimDomText(e,t){return!t||(this.isElement(t)?"BR"===t.tagName:!this._encounteredRawContentDomNodes.has(e.previousSibling)&&/[^\S\u00A0]/.test(t.data.charAt(t.data.length-1)))}_checkShouldRightTrimDomText(e,t){return!t&&!Zs(e)}_getTouchingInlineViewNode(e,t){const o=new us({startPosition:t?ms._createAfter(e):ms._createBefore(e),direction:t?"forward":"backward"});for(const n of o){if(n.item.is("element")&&this.inlineObjectElements.includes(n.item.name))return n.item;if(n.item.is("containerElement"))return null;if(n.item.is("element","br"))return null;if(n.item.is("$textProxy"))return n.item}return null}_getTouchingInlineDomNode(e,t){if(!e.parentNode)return null;const o=t?"firstChild":"lastChild",n=t?"nextSibling":"previousSibling";let a=!0,r=e;do{if(!a&&r[o]?r=r[o]:r[n]?(r=r[n],a=!1):(r=r.parentNode,a=!0),!r||this._isBlockElement(r))return null}while(!Na(r)&&"BR"!=r.tagName&&!this._isInlineObjectElement(r));return r}_isBlockElement(e){return this.isElement(e)&&this.blockElements.includes(e.tagName.toLowerCase())}_isInlineObjectElement(e){return this.isElement(e)&&this.inlineObjectElements.includes(e.tagName.toLowerCase())}_createViewElement(e,t){if(qa(e))return new Ds(this.document,"$comment");const o=t.keepOriginalCase?e.tagName:e.tagName.toLowerCase();return new as(this.document,o)}_isViewElementWithRawContent(e,t){return!1!==t.withChildren&&!!this._rawContentElementMatcher.match(e)}_shouldRenameElement(e){const t=e.toLowerCase();return"editing"===this.renderingMode&&this.unsafeElements.includes(t)}_createReplacementDomElement(e,t){const o=this._domDocument.createElement("span");if(o.setAttribute(pc,e),t){for(;t.firstChild;)o.appendChild(t.firstChild);for(const e of t.getAttributeNames())o.setAttribute(e,t.getAttribute(e))}return o}}function gc(e,t){let o=e;for(;o;)t(o),o=o.parentElement}function fc(e,t){const o=e.parentNode;return!!o&&!!o.tagName&&t.includes(o.tagName.toLowerCase())}function vc(e){"script"===e&&_("domconverter-unsafe-script-element-detected"),"style"===e&&_("domconverter-unsafe-style-element-detected")}class wc extends(Oa()){constructor(e){super(),this.view=e,this.document=e.document,this.isEnabled=!1}enable(){this.isEnabled=!0}disable(){this.isEnabled=!1}destroy(){this.disable(),this.stopListening()}checkShouldIgnoreEventFromTarget(e){return e&&3===e.nodeType&&(e=e.parentNode),!(!e||1!==e.nodeType)&&e.matches("[data-cke-ignore-events], [data-cke-ignore-events] *")}}const kc=Ql((function(e,t){Wt(t,So(t),e)}));class Cc{constructor(e,t,o){this.view=e,this.document=e.document,this.domEvent=t,this.domTarget=t.target,kc(this,o)}get target(){return this.view.domConverter.mapDomToView(this.domTarget)}preventDefault(){this.domEvent.preventDefault()}stopPropagation(){this.domEvent.stopPropagation()}}class yc extends wc{constructor(e){super(e),this.useCapture=!1}observe(e){("string"==typeof this.domEventType?[this.domEventType]:this.domEventType).forEach(t=>{this.listenTo(e,t,(e,t)=>{this.isEnabled&&!this.checkShouldIgnoreEventFromTarget(t.target)&&this.onDomEvent(t)},{useCapture:this.useCapture})})}fire(e,t,o){this.isEnabled&&this.document.fire(e,new Cc(this.view,t,o))}}class Oc extends yc{constructor(e){super(e),this.domEventType=["keydown","keyup"]}onDomEvent(e){const t={keyCode:e.keyCode,altKey:e.altKey,ctrlKey:e.ctrlKey,shiftKey:e.shiftKey,metaKey:e.metaKey,get keystroke(){return lr(this)}};this.fire(e.type,e,t)}}const jc=function(){return ce.Date.now()};var xc=/\s/;const _c=function(e){for(var t=e.length;t--&&xc.test(e.charAt(t)););return t};var Vc=/^\s+/;const Ac=function(e){return e?e.slice(0,_c(e)+1).replace(Vc,""):e};var Nc=NaN,Dc=/^[-+]0x[0-9a-f]+$/i,Ec=/^0b[01]+$/i,Tc=/^0o[0-7]+$/i,Sc=parseInt;const Bc=function(e){if("number"==typeof e)return e;if(ol(e))return Nc;if(U(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=U(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=Ac(e);var o=Ec.test(e);return o||Tc.test(e)?Sc(e.slice(2),o?2:8):Dc.test(e)?Nc:+e};var Ic="Expected a function",zc=Math.max,Fc=Math.min;const Mc=function(e,t,o){var n,a,r,i,l,s,c=0,d=!1,u=!1,m=!0;if("function"!=typeof e)throw new TypeError(Ic);function h(t){var o=n,r=a;return n=a=void 0,c=t,i=e.apply(r,o)}function p(e){var o=e-s;return void 0===s||o>=t||o<0||u&&e-c>=r}function b(){var e=jc();if(p(e))return g(e);l=setTimeout(b,function(e){var o=t-(e-s);return u?Fc(o,r-(e-c)):o}(e))}function g(e){return l=void 0,m&&n?h(e):(n=a=void 0,i)}function f(){var e=jc(),o=p(e);if(n=arguments,a=this,s=e,o){if(void 0===l)return function(e){return c=e,l=setTimeout(b,t),d?h(e):i}(s);if(u)return clearTimeout(l),l=setTimeout(b,t),h(s)}return void 0===l&&(l=setTimeout(b,t)),i}return t=Bc(t)||0,U(o)&&(d=!!o.leading,r=(u="maxWait"in o)?zc(Bc(o.maxWait)||0,t):r,m="trailing"in o?!!o.trailing:m),f.cancel=function(){void 0!==l&&clearTimeout(l),c=0,n=s=a=l=void 0},f.flush=function(){return void 0===l?i:g(jc())},f};class Lc extends wc{constructor(e){super(e),this._fireSelectionChangeDoneDebounced=Mc(e=>{this.document.fire("selectionChangeDone",e)},200)}observe(){const e=this.document;e.on("arrowKey",(t,o)=>{e.selection.isFake&&this.isEnabled&&o.preventDefault()},{context:"$capture"}),e.on("arrowKey",(t,o)=>{e.selection.isFake&&this.isEnabled&&this._handleSelectionMove(o.keyCode)},{priority:"lowest"})}destroy(){super.destroy(),this._fireSelectionChangeDoneDebounced.cancel()}_handleSelectionMove(e){const t=this.document.selection,o=new bs(t.getRanges(),{backward:t.isBackward,fake:!1});e!=rr.arrowleft&&e!=rr.arrowup||o.setTo(o.getFirstPosition()),e!=rr.arrowright&&e!=rr.arrowdown||o.setTo(o.getLastPosition());const n={oldSelection:t,newSelection:o,domSelection:null};this.document.fire("selectionChange",n),this._fireSelectionChangeDoneDebounced(n)}}var Pc="__lodash_hash_undefined__";const Rc=function(e){return this.__data__.set(e,Pc),this},qc=function(e){return this.__data__.has(e)};function $c(e){var t=-1,o=null==e?0:e.length;for(this.__data__=new zt;++t<o;)this.add(e[t])}$c.prototype.add=$c.prototype.push=Rc,$c.prototype.has=qc;const Uc=$c,Hc=function(e,t){for(var o=-1,n=null==e?0:e.length;++o<n;)if(t(e[o],o,e))return!0;return!1},Wc=function(e,t){return e.has(t)};var Gc=1,Kc=2;const Yc=function(e,t,o,n,a,r){var i=o&Gc,l=e.length,s=t.length;if(l!=s&&!(i&&s>l))return!1;var c=r.get(e),d=r.get(t);if(c&&d)return c==t&&d==e;var u=-1,m=!0,h=o&Kc?new Uc:void 0;for(r.set(e,t),r.set(t,e);++u<l;){var p=e[u],b=t[u];if(n)var g=i?n(b,p,u,t,e,r):n(p,b,u,e,t,r);if(void 0!==g){if(g)continue;m=!1;break}if(h){if(!Hc(t,(function(e,t){if(!Wc(h,t)&&(p===e||a(p,e,o,n,r)))return h.push(t)}))){m=!1;break}}else if(p!==b&&!a(p,b,o,n,r)){m=!1;break}}return r.delete(e),r.delete(t),m},Qc=function(e){var t=-1,o=Array(e.size);return e.forEach((function(e,n){o[++t]=[n,e]})),o},Jc=function(e){var t=-1,o=Array(e.size);return e.forEach((function(e){o[++t]=e})),o};var Zc=1,Xc=2,ed="[object Boolean]",td="[object Date]",od="[object Error]",nd="[object Map]",ad="[object Number]",rd="[object RegExp]",id="[object Set]",ld="[object String]",sd="[object Symbol]",cd="[object ArrayBuffer]",dd="[object DataView]",ud=de?de.prototype:void 0,md=ud?ud.valueOf:void 0;const hd=function(e,t,o,n,a,r,i){switch(o){case dd:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case cd:return!(e.byteLength!=t.byteLength||!r(new vn(e),new vn(t)));case ed:case td:case ad:return Fe(+e,+t);case od:return e.name==t.name&&e.message==t.message;case rd:case ld:return e==t+"";case nd:var l=Qc;case id:var s=n&Zc;if(l||(l=Jc),e.size!=t.size&&!s)return!1;var c=i.get(e);if(c)return c==t;n|=Xc,i.set(e,t);var d=Yc(l(e),l(t),n,a,r,i);return i.delete(e),d;case sd:if(md)return md.call(e)==md.call(t)}return!1};var pd=1,bd=Object.prototype.hasOwnProperty;const gd=function(e,t,o,n,a,r){var i=o&pd,l=Jo(e),s=l.length;if(s!=Jo(t).length&&!i)return!1;for(var c=s;c--;){var d=l[c];if(!(i?d in t:bd.call(t,d)))return!1}var u=r.get(e),m=r.get(t);if(u&&m)return u==t&&m==e;var h=!0;r.set(e,t),r.set(t,e);for(var p=i;++c<s;){var b=e[d=l[c]],g=t[d];if(n)var f=i?n(g,b,d,t,e,r):n(b,g,d,e,t,r);if(!(void 0===f?b===g||a(b,g,o,n,r):f)){h=!1;break}p||(p="constructor"==d)}if(h&&!p){var v=e.constructor,w=t.constructor;v==w||!("constructor"in e)||!("constructor"in t)||"function"==typeof v&&v instanceof v&&"function"==typeof w&&w instanceof w||(h=!1)}return r.delete(e),r.delete(t),h};var fd=1,vd="[object Arguments]",wd="[object Array]",kd="[object Object]",Cd=Object.prototype.hasOwnProperty;const yd=function(e,t,o,n,a,r){var i=ye(e),l=ye(t),s=i?wd:bn(e),c=l?wd:bn(t),d=(s=s==vd?kd:s)==kd,u=(c=c==vd?kd:c)==kd,m=s==c;if(m&&ao(e)){if(!ao(t))return!1;i=!0,d=!1}if(m&&!d)return r||(r=new Pt),i||wo(e)?Yc(e,t,o,n,a,r):hd(e,t,s,o,n,a,r);if(!(o&fd)){var h=d&&Cd.call(e,"__wrapped__"),p=u&&Cd.call(t,"__wrapped__");if(h||p){var b=h?e.value():e,g=p?t.value():t;return r||(r=new Pt),a(b,g,o,n,r)}}return!!m&&(r||(r=new Pt),gd(e,t,o,n,a,r))},Od=function e(t,o,n,a,r){return t===o||(null==t||null==o||!Oe(t)&&!Oe(o)?t!=t&&o!=o:yd(t,o,n,a,e,r))},jd=function(e,t,o){var n=(o="function"==typeof o?o:void 0)?o(e,t):void 0;return void 0===n?Od(e,t,void 0,o):!!n};class xd extends wc{constructor(e){super(e),this._config={childList:!0,characterData:!0,subtree:!0},this.domConverter=e.domConverter,this.renderer=e._renderer,this._domElements=[],this._mutationObserver=new window.MutationObserver(this._onMutations.bind(this))}flush(){this._onMutations(this._mutationObserver.takeRecords())}observe(e){this._domElements.push(e),this.isEnabled&&this._mutationObserver.observe(e,this._config)}enable(){super.enable();for(const e of this._domElements)this._mutationObserver.observe(e,this._config)}disable(){super.disable(),this._mutationObserver.disconnect()}destroy(){super.destroy(),this._mutationObserver.disconnect()}_onMutations(e){if(0===e.length)return;const t=this.domConverter,o=new Set,n=new Set;for(const r of e){const e=t.mapDomToView(r.target);e&&(e.is("uiElement")||e.is("rawElement")||"childList"!==r.type||this._isBogusBrMutation(r)||n.add(e))}for(const r of e){const e=t.mapDomToView(r.target);if((!e||!e.is("uiElement")&&!e.is("rawElement"))&&"characterData"===r.type){const e=t.findCorrespondingViewText(r.target);e&&!n.has(e.parent)?o.add(e):!e&&Zs(r.target)&&n.add(t.mapDomToView(r.target.parentNode))}}let a=!1;for(const r of o)a=!0,this.renderer.markToSync("text",r);for(const r of n){const e=t.mapViewToDom(r),o=Array.from(r.getChildren()),n=Array.from(t.domChildrenToView(e,{withChildren:!1}));jd(o,n,_d)||(a=!0,this.renderer.markToSync("children",r))}a&&this.view.forceRender()}_isBogusBrMutation(e){let t=null;return null===e.nextSibling&&0===e.removedNodes.length&&1==e.addedNodes.length&&(t=this.domConverter.domToView(e.addedNodes[0],{withChildren:!1})),t&&t.is("element","br")}}function _d(e,t){if(!Array.isArray(e))return e===t||!(!e.is("$text")||!t.is("$text"))&&e.data===t.data}class Vd extends yc{constructor(e){super(e),this._isFocusChanging=!1,this.domEventType=["focus","blur"],this.useCapture=!0;const t=this.document;t.on("focus",()=>{this._isFocusChanging=!0,this._renderTimeoutId=setTimeout(()=>{this.flush(),e.change(()=>{})},50)}),t.on("blur",(o,n)=>{const a=t.selection.editableElement;null!==a&&a!==n.target||(t.isFocused=!1,this._isFocusChanging=!1,e.change(()=>{}))})}flush(){this._isFocusChanging&&(this._isFocusChanging=!1,this.document.isFocused=!0)}onDomEvent(e){this.fire(e.type,e)}destroy(){this._renderTimeoutId&&clearTimeout(this._renderTimeoutId),super.destroy()}}class Ad extends wc{constructor(e){super(e),this.mutationObserver=e.getObserver(xd),this.focusObserver=e.getObserver(Vd),this.selection=this.document.selection,this.domConverter=e.domConverter,this._documents=new WeakSet,this._fireSelectionChangeDoneDebounced=Mc(e=>{this.document.fire("selectionChangeDone",e)},200),this._clearInfiniteLoopInterval=setInterval(()=>this._clearInfiniteLoop(),1e3),this._documentIsSelectingInactivityTimeoutDebounced=Mc(()=>this.document.isSelecting=!1,5e3),this._loopbackCounter=0}observe(e){const t=e.ownerDocument,o=()=>{this.document.isSelecting&&(this._handleSelectionChange(null,t),this.document.isSelecting=!1,this._documentIsSelectingInactivityTimeoutDebounced.cancel())};this.listenTo(e,"selectstart",()=>{this.document.isSelecting=!0,this._documentIsSelectingInactivityTimeoutDebounced()},{priority:"highest"}),this.listenTo(e,"keydown",o,{priority:"highest",useCapture:!0}),this.listenTo(e,"keyup",o,{priority:"highest",useCapture:!0}),this._documents.has(t)||(this.listenTo(t,"mouseup",o,{priority:"highest",useCapture:!0}),this.listenTo(t,"selectionchange",(e,o)=>{this.document.isComposing&&!u.isAndroid||(this._handleSelectionChange(o,t),this._documentIsSelectingInactivityTimeoutDebounced())}),this._documents.add(t))}destroy(){super.destroy(),clearInterval(this._clearInfiniteLoopInterval),this._fireSelectionChangeDoneDebounced.cancel(),this._documentIsSelectingInactivityTimeoutDebounced.cancel()}_handleSelectionChange(e,t){if(!this.isEnabled)return;const o=t.defaultView.getSelection();if(this.checkShouldIgnoreEventFromTarget(o.anchorNode))return;this.mutationObserver.flush();const n=this.domConverter.domSelectionToView(o);if(0!=n.rangeCount){if(this.view.hasDomSelection=!0,!(this.selection.isEqual(n)&&this.domConverter.isDomSelectionCorrect(o)||++this._loopbackCounter>60))if(this.focusObserver.flush(),this.selection.isSimilar(n))this.view.forceRender();else{const e={oldSelection:this.selection,newSelection:n,domSelection:o};this.document.fire("selectionChange",e),this._fireSelectionChangeDoneDebounced(e)}}else this.view.hasDomSelection=!1}_clearInfiniteLoop(){this._loopbackCounter=0}}class Nd extends yc{constructor(e){super(e),this.domEventType=["compositionstart","compositionupdate","compositionend"];const t=this.document;t.on("compositionstart",()=>{t.isComposing=!0},{priority:"low"}),t.on("compositionend",()=>{t.isComposing=!1},{priority:"low"})}onDomEvent(e){this.fire(e.type,e,{data:e.data})}}class Dd{constructor(e,t={}){this._files=t.cacheFiles?Ed(e):null,this._native=e}get files(){return this._files||(this._files=Ed(this._native)),this._files}get types(){return this._native.types}getData(e){return this._native.getData(e)}setData(e,t){this._native.setData(e,t)}set effectAllowed(e){this._native.effectAllowed=e}get effectAllowed(){return this._native.effectAllowed}set dropEffect(e){this._native.dropEffect=e}get dropEffect(){return this._native.dropEffect}get isCanceled(){return"none"==this._native.dropEffect||!!this._native.mozUserCancelled}}function Ed(e){const t=Array.from(e.files||[]),o=Array.from(e.items||[]);return t.length?t:o.filter(e=>"file"===e.kind).map(e=>e.getAsFile())}class Td extends yc{constructor(e){super(e),this.domEventType=["beforeinput"]}onDomEvent(e){const t=e.getTargetRanges(),o=this.view,n=o.document;let a=null,r=null,i=[];if(e.dataTransfer&&(a=new Dd(e.dataTransfer)),null!==e.data?r=e.data:a&&(r=a.getData("text/plain")),n.selection.isFake)i=Array.from(n.selection.getRanges());else if(t.length)i=t.map(e=>o.domConverter.domRangeToView(e));else if(u.isAndroid){const t=e.target.ownerDocument.defaultView.getSelection();i=Array.from(o.domConverter.domSelectionToView(t).getRanges())}if(u.isAndroid&&"insertCompositionText"==e.inputType&&r&&r.endsWith("\n"))this.fire(e.type,e,{inputType:"insertParagraph",targetRanges:[o.createRange(i[0].end)]});else if("insertText"==e.inputType&&r&&r.includes("\n")){const t=r.split(/\n{1,2}/g);let o=i;for(let r=0;r<t.length;r++){const i=t[r];""!=i&&(this.fire(e.type,e,{data:i,dataTransfer:a,targetRanges:o,inputType:e.inputType,isComposing:e.isComposing}),o=[n.selection.getFirstRange()]),r+1<t.length&&(this.fire(e.type,e,{inputType:"insertParagraph",targetRanges:o}),o=[n.selection.getFirstRange()])}}else this.fire(e.type,e,{data:r,dataTransfer:a,targetRanges:i,inputType:e.inputType,isComposing:e.isComposing})}}class Sd extends wc{constructor(e){super(e),this.document.on("keydown",(e,t)=>{if(this.isEnabled&&((o=t.keyCode)==rr.arrowright||o==rr.arrowleft||o==rr.arrowup||o==rr.arrowdown)){const o=new fs(this.document,"arrowKey",this.document.selection.getFirstRange());this.document.fire(o,t),o.stop.called&&e.stop()}var o})}observe(){}}class Bd extends wc{constructor(e){super(e);const t=this.document;t.on("keydown",(e,o)=>{if(!this.isEnabled||o.keyCode!=rr.tab||o.ctrlKey)return;const n=new fs(t,"tab",t.selection.getFirstRange());t.fire(n,o),n.stop.called&&e.stop()})}observe(){}}class Id extends(J()){constructor(e){super(),this.document=new js(e),this.domConverter=new bc(this.document),this.domRoots=new Map,this.set("isRenderingInProgress",!1),this.set("hasDomSelection",!1),this._renderer=new ac(this.domConverter,this.document.selection),this._renderer.bind("isFocused","isSelecting","isComposing").to(this.document,"isFocused","isSelecting","isComposing"),this._initialDomRootAttributes=new WeakMap,this._observers=new Map,this._ongoingChange=!1,this._postFixersInProgress=!1,this._renderingDisabled=!1,this._hasChangedSinceTheLastRendering=!1,this._writer=new zs(this.document),this.addObserver(xd),this.addObserver(Vd),this.addObserver(Ad),this.addObserver(Oc),this.addObserver(Lc),this.addObserver(Nd),this.addObserver(Sd),this.addObserver(Td),this.addObserver(Bd),this.document.on("arrowKey",tc,{priority:"low"}),Es(this),this.on("render",()=>{this._render(),this.document.fire("layoutChanged"),this._hasChangedSinceTheLastRendering=!1}),this.listenTo(this.document.selection,"change",()=>{this._hasChangedSinceTheLastRendering=!0}),this.listenTo(this.document,"change:isFocused",()=>{this._hasChangedSinceTheLastRendering=!0})}attachDomRoot(e,t="main"){const o=this.document.getRoot(t);o._name=e.tagName.toLowerCase();const n={};for(const{name:r,value:i}of Array.from(e.attributes))n[r]=i,"class"===r?this._writer.addClass(i.split(" "),o):this._writer.setAttribute(r,i,o);this._initialDomRootAttributes.set(e,n);const a=()=>{this._writer.setAttribute("contenteditable",(!o.isReadOnly).toString(),o),o.isReadOnly?this._writer.addClass("ck-read-only",o):this._writer.removeClass("ck-read-only",o)};a(),this.domRoots.set(t,e),this.domConverter.bindElements(e,o),this._renderer.markToSync("children",o),this._renderer.markToSync("attributes",o),this._renderer.domDocuments.add(e.ownerDocument),o.on("change:children",(e,t)=>this._renderer.markToSync("children",t)),o.on("change:attributes",(e,t)=>this._renderer.markToSync("attributes",t)),o.on("change:text",(e,t)=>this._renderer.markToSync("text",t)),o.on("change:isReadOnly",()=>this.change(a)),o.on("change",()=>{this._hasChangedSinceTheLastRendering=!0});for(const r of this._observers.values())r.observe(e,t)}detachDomRoot(e){const t=this.domRoots.get(e);Array.from(t.attributes).forEach(({name:e})=>t.removeAttribute(e));const o=this._initialDomRootAttributes.get(t);for(const n in o)t.setAttribute(n,o[n]);this.domRoots.delete(e),this.domConverter.unbindDomElement(t)}getDomRoot(e="main"){return this.domRoots.get(e)}addObserver(e){let t=this._observers.get(e);if(t)return t;t=new e(this),this._observers.set(e,t);for(const[o,n]of this.domRoots)t.observe(n,o);return t.enable(),t}getObserver(e){return this._observers.get(e)}disableObservers(){for(const e of this._observers.values())e.disable()}enableObservers(){for(const e of this._observers.values())e.enable()}scrollToTheSelection(){const e=this.document.selection.getFirstRange();e&&function({target:e,viewportOffset:t=0}){const o=er(e);let n=o,a=null;for(;n;){let r;r=tr(n==o?e:a),Ya(r,()=>or(e,n));const i=or(e,n);if(Ka(n,i,t),n.parent!=n){if(a=n.frameElement,n=n.parent,!a)return}else n=null}}({target:this.domConverter.viewRangeToDom(e),viewportOffset:20})}focus(){if(!this.document.isFocused){const e=this.document.selection.editableElement;e&&(this.domConverter.focus(e),this.forceRender())}}change(e){if(this.isRenderingInProgress||this._postFixersInProgress)throw new x("cannot-change-view-tree",this);try{if(this._ongoingChange)return e(this._writer);this._ongoingChange=!0;const t=e(this._writer);return this._ongoingChange=!1,!this._renderingDisabled&&this._hasChangedSinceTheLastRendering&&(this._postFixersInProgress=!0,this.document._callPostFixers(this._writer),this._postFixersInProgress=!1,this.fire("render")),t}catch(e){x.rethrowUnexpectedError(e,this)}}forceRender(){this._hasChangedSinceTheLastRendering=!0,this.getObserver(Vd).flush(),this.change(()=>{})}destroy(){for(const e of this._observers.values())e.destroy();this.document.destroy(),this.stopListening()}createPositionAt(e,t){return ms._createAt(e,t)}createPositionAfter(e){return ms._createAfter(e)}createPositionBefore(e){return ms._createBefore(e)}createRange(...e){return new hs(...e)}createRangeOn(e){return hs._createOn(e)}createRangeIn(e){return hs._createIn(e)}createSelection(...e){return new bs(...e)}_disableRendering(e){this._renderingDisabled=e,0==e&&this.change(()=>{})}_render(){this.isRenderingInProgress=!0,this.disableObservers(),this._renderer.render(),this.enableObservers(),this.isRenderingInProgress=!1}}class zd{is(){throw new Error("is() method is abstract")}}class Fd extends zd{constructor(e){super(),this.parent=null,this._attrs=kr(e)}get document(){return null}get index(){let e;if(!this.parent)return null;if(null===(e=this.parent.getChildIndex(this)))throw new x("model-node-not-found-in-parent",this);return e}get startOffset(){let e;if(!this.parent)return null;if(null===(e=this.parent.getChildStartOffset(this)))throw new x("model-node-not-found-in-parent",this);return e}get offsetSize(){return 1}get endOffset(){return this.parent?this.startOffset+this.offsetSize:null}get nextSibling(){const e=this.index;return null!==e&&this.parent.getChild(e+1)||null}get previousSibling(){const e=this.index;return null!==e&&this.parent.getChild(e-1)||null}get root(){let e=this;for(;e.parent;)e=e.parent;return e}isAttached(){return this.root.is("rootElement")}getPath(){const e=[];let t=this;for(;t.parent;)e.unshift(t.startOffset),t=t.parent;return e}getAncestors(e={}){const t=[];let o=e.includeSelf?this:this.parent;for(;o;)t[e.parentFirst?"push":"unshift"](o),o=o.parent;return t}getCommonAncestor(e,t={}){const o=this.getAncestors(t),n=e.getAncestors(t);let a=0;for(;o[a]==n[a]&&o[a];)a++;return 0===a?null:o[a-1]}isBefore(e){if(this==e)return!1;if(this.root!==e.root)return!1;const t=this.getPath(),o=e.getPath(),n=re(t,o);switch(n){case"prefix":return!0;case"extension":return!1;default:return t[n]<o[n]}}isAfter(e){return this!=e&&this.root===e.root&&!this.isBefore(e)}hasAttribute(e){return this._attrs.has(e)}getAttribute(e){return this._attrs.get(e)}getAttributes(){return this._attrs.entries()}getAttributeKeys(){return this._attrs.keys()}toJSON(){const e={};return this._attrs.size&&(e.attributes=Array.from(this._attrs).reduce((e,t)=>(e[t[0]]=t[1],e),{})),e}_clone(e){return new this.constructor(this._attrs)}_remove(){this.parent._removeChildren(this.index)}_setAttribute(e,t){this._attrs.set(e,t)}_setAttributesTo(e){this._attrs=kr(e)}_removeAttribute(e){return this._attrs.delete(e)}_clearAttributes(){this._attrs.clear()}}Fd.prototype.is=function(e){return"node"===e||"model:node"===e};class Md{constructor(e){this._nodes=[],e&&this._insertNodes(0,e)}[Symbol.iterator](){return this._nodes[Symbol.iterator]()}get length(){return this._nodes.length}get maxOffset(){return this._nodes.reduce((e,t)=>e+t.offsetSize,0)}getNode(e){return this._nodes[e]||null}getNodeIndex(e){const t=this._nodes.indexOf(e);return-1==t?null:t}getNodeStartOffset(e){const t=this.getNodeIndex(e);return null===t?null:this._nodes.slice(0,t).reduce((e,t)=>e+t.offsetSize,0)}indexToOffset(e){if(e==this._nodes.length)return this.maxOffset;const t=this._nodes[e];if(!t)throw new x("model-nodelist-index-out-of-bounds",this);return this.getNodeStartOffset(t)}offsetToIndex(e){let t=0;for(const o of this._nodes){if(e>=t&&e<t+o.offsetSize)return this.getNodeIndex(o);t+=o.offsetSize}if(t!=e)throw new x("model-nodelist-offset-out-of-bounds",this,{offset:e,nodeList:this});return this.length}_insertNodes(e,t){for(const o of t)if(!(o instanceof Fd))throw new x("model-nodelist-insertnodes-not-node",this);this._nodes=function(e,t,o,n){if(Math.max(t.length,e.length)>Cr)return e.slice(0,o).concat(t).concat(e.slice(o+n,e.length));{const a=Array.from(e);return a.splice(o,n,...t),a}}(this._nodes,Array.from(t),e,0)}_removeNodes(e,t=1){return this._nodes.splice(e,t)}toJSON(){return this._nodes.map(e=>e.toJSON())}}class Ld extends Fd{constructor(e,t){super(t),this._data=e||""}get offsetSize(){return this.data.length}get data(){return this._data}toJSON(){const e=super.toJSON();return e.data=this.data,e}_clone(){return new Ld(this.data,this.getAttributes())}static fromJSON(e){return new Ld(e.data,e.attributes)}}Ld.prototype.is=function(e){return"$text"===e||"model:$text"===e||"text"===e||"model:text"===e||"node"===e||"model:node"===e};class Pd extends zd{constructor(e,t,o){if(super(),this.textNode=e,t<0||t>e.offsetSize)throw new x("model-textproxy-wrong-offsetintext",this);if(o<0||t+o>e.offsetSize)throw new x("model-textproxy-wrong-length",this);this.data=e.data.substring(t,t+o),this.offsetInText=t}get startOffset(){return null!==this.textNode.startOffset?this.textNode.startOffset+this.offsetInText:null}get offsetSize(){return this.data.length}get endOffset(){return null!==this.startOffset?this.startOffset+this.offsetSize:null}get isPartial(){return this.offsetSize!==this.textNode.offsetSize}get parent(){return this.textNode.parent}get root(){return this.textNode.root}getPath(){const e=this.textNode.getPath();return e.length>0&&(e[e.length-1]+=this.offsetInText),e}getAncestors(e={}){const t=[];let o=e.includeSelf?this:this.parent;for(;o;)t[e.parentFirst?"push":"unshift"](o),o=o.parent;return t}hasAttribute(e){return this.textNode.hasAttribute(e)}getAttribute(e){return this.textNode.getAttribute(e)}getAttributes(){return this.textNode.getAttributes()}getAttributeKeys(){return this.textNode.getAttributeKeys()}}Pd.prototype.is=function(e){return"$textProxy"===e||"model:$textProxy"===e||"textProxy"===e||"model:textProxy"===e};class Rd extends Fd{constructor(e,t,o){super(t),this._children=new Md,this.name=e,o&&this._insertChild(0,o)}get childCount(){return this._children.length}get maxOffset(){return this._children.maxOffset}get isEmpty(){return 0===this.childCount}getChild(e){return this._children.getNode(e)}getChildren(){return this._children[Symbol.iterator]()}getChildIndex(e){return this._children.getNodeIndex(e)}getChildStartOffset(e){return this._children.getNodeStartOffset(e)}offsetToIndex(e){return this._children.offsetToIndex(e)}getNodeByPath(e){let t=this;for(const o of e)t=t.getChild(t.offsetToIndex(o));return t}findAncestor(e,t={}){let o=t.includeSelf?this:this.parent;for(;o;){if(o.name===e)return o;o=o.parent}return null}toJSON(){const e=super.toJSON();if(e.name=this.name,this._children.length>0){e.children=[];for(const t of this._children)e.children.push(t.toJSON())}return e}_clone(e=!1){const t=e?Array.from(this._children).map(e=>e._clone(!0)):void 0;return new Rd(this.name,this.getAttributes(),t)}_appendChild(e){this._insertChild(this.childCount,e)}_insertChild(e,t){const o=function(e){return"string"==typeof e?[new Ld(e)]:(ie(e)||(e=[e]),Array.from(e).map(e=>"string"==typeof e?new Ld(e):e instanceof Pd?new Ld(e.data,e.getAttributes()):e))}(t);for(const n of o)null!==n.parent&&n._remove(),n.parent=this;this._children._insertNodes(e,o)}_removeChildren(e,t=1){const o=this._children._removeNodes(e,t);for(const n of o)n.parent=null;return o}static fromJSON(e){let t;if(e.children){t=[];for(const o of e.children)o.name?t.push(Rd.fromJSON(o)):t.push(Ld.fromJSON(o))}return new Rd(e.name,e.attributes,t)}}Rd.prototype.is=function(e,t){return t?t===this.name&&("element"===e||"model:element"===e):"element"===e||"model:element"===e||"node"===e||"model:node"===e};class qd{constructor(e){if(!e||!e.boundaries&&!e.startPosition)throw new x("model-tree-walker-no-start-position",null);const t=e.direction||"forward";if("forward"!=t&&"backward"!=t)throw new x("model-tree-walker-unknown-direction",e,{direction:t});this.direction=t,this.boundaries=e.boundaries||null,e.startPosition?this.position=e.startPosition.clone():this.position=Ud._createAt(this.boundaries["backward"==this.direction?"end":"start"]),this.position.stickiness="toNone",this.singleCharacters=!!e.singleCharacters,this.shallow=!!e.shallow,this.ignoreElementEnd=!!e.ignoreElementEnd,this._boundaryStartParent=this.boundaries?this.boundaries.start.parent:null,this._boundaryEndParent=this.boundaries?this.boundaries.end.parent:null,this._visitedParent=this.position.parent}[Symbol.iterator](){return this}skip(e){let t,o,n,a;do{n=this.position,a=this._visitedParent,({done:t,value:o}=this.next())}while(!t&&e(o));t||(this.position=n,this._visitedParent=a)}next(){return"forward"==this.direction?this._next():this._previous()}_next(){const e=this.position,t=this.position.clone(),o=this._visitedParent;if(null===o.parent&&t.offset===o.maxOffset)return{done:!0,value:void 0};if(o===this._boundaryEndParent&&t.offset==this.boundaries.end.offset)return{done:!0,value:void 0};const n=Hd(t,o),a=n||Wd(t,o,n);if(a instanceof Rd)return this.shallow?t.offset++:(t.path.push(0),this._visitedParent=a),this.position=t,$d("elementStart",a,e,t,1);if(a instanceof Ld){let n;if(this.singleCharacters)n=1;else{let e=a.endOffset;this._boundaryEndParent==o&&this.boundaries.end.offset<e&&(e=this.boundaries.end.offset),n=e-t.offset}const r=t.offset-a.startOffset,i=new Pd(a,r,n);return t.offset+=n,this.position=t,$d("text",i,e,t,n)}return t.path.pop(),t.offset++,this.position=t,this._visitedParent=o.parent,this.ignoreElementEnd?this._next():$d("elementEnd",o,e,t)}_previous(){const e=this.position,t=this.position.clone(),o=this._visitedParent;if(null===o.parent&&0===t.offset)return{done:!0,value:void 0};if(o==this._boundaryStartParent&&t.offset==this.boundaries.start.offset)return{done:!0,value:void 0};const n=t.parent,a=Hd(t,n),r=a||Gd(t,n,a);if(r instanceof Rd)return t.offset--,this.shallow?(this.position=t,$d("elementStart",r,e,t,1)):(t.path.push(r.maxOffset),this.position=t,this._visitedParent=r,this.ignoreElementEnd?this._previous():$d("elementEnd",r,e,t));if(r instanceof Ld){let n;if(this.singleCharacters)n=1;else{let e=r.startOffset;this._boundaryStartParent==o&&this.boundaries.start.offset>e&&(e=this.boundaries.start.offset),n=t.offset-e}const a=t.offset-r.startOffset,i=new Pd(r,a-n,n);return t.offset-=n,this.position=t,$d("text",i,e,t,n)}return t.path.pop(),this.position=t,this._visitedParent=o.parent,$d("elementStart",o,e,t,1)}}function $d(e,t,o,n,a){return{done:!1,value:{type:e,item:t,previousPosition:o,nextPosition:n,length:a}}}class Ud extends zd{constructor(e,t,o="toNone"){if(super(),!e.is("element")&&!e.is("documentFragment"))throw new x("model-position-root-invalid",e);if(!(t instanceof Array)||0===t.length)throw new x("model-position-path-incorrect-format",e,{path:t});e.is("rootElement")?t=t.slice():(t=[...e.getPath(),...t],e=e.root),this.root=e,this.path=t,this.stickiness=o}get offset(){return this.path[this.path.length-1]}set offset(e){this.path[this.path.length-1]=e}get parent(){let e=this.root;for(let t=0;t<this.path.length-1;t++)if(e=e.getChild(e.offsetToIndex(this.path[t])),!e)throw new x("model-position-path-incorrect",this,{position:this});if(e.is("$text"))throw new x("model-position-path-incorrect",this,{position:this});return e}get index(){return this.parent.offsetToIndex(this.offset)}get textNode(){return Hd(this,this.parent)}get nodeAfter(){const e=this.parent;return Wd(this,e,Hd(this,e))}get nodeBefore(){const e=this.parent;return Gd(this,e,Hd(this,e))}get isAtStart(){return 0===this.offset}get isAtEnd(){return this.offset==this.parent.maxOffset}compareWith(e){if(this.root!=e.root)return"different";const t=re(this.path,e.path);switch(t){case"same":return"same";case"prefix":return"before";case"extension":return"after";default:return this.path[t]<e.path[t]?"before":"after"}}getLastMatchingPosition(e,t={}){t.startPosition=this;const o=new qd(t);return o.skip(e),o.position}getParentPath(){return this.path.slice(0,-1)}getAncestors(){const e=this.parent;return e.is("documentFragment")?[e]:e.getAncestors({includeSelf:!0})}findAncestor(e){const t=this.parent;return t.is("element")?t.findAncestor(e,{includeSelf:!0}):null}getCommonPath(e){if(this.root!=e.root)return[];const t=re(this.path,e.path),o="string"==typeof t?Math.min(this.path.length,e.path.length):t;return this.path.slice(0,o)}getCommonAncestor(e){const t=this.getAncestors(),o=e.getAncestors();let n=0;for(;t[n]==o[n]&&t[n];)n++;return 0===n?null:t[n-1]}getShiftedBy(e){const t=this.clone(),o=t.offset+e;return t.offset=o<0?0:o,t}isAfter(e){return"after"==this.compareWith(e)}isBefore(e){return"before"==this.compareWith(e)}isEqual(e){return"same"==this.compareWith(e)}isTouching(e){if(this.root!==e.root)return!1;const t=Math.min(this.path.length,e.path.length);for(let o=0;o<t;o++){const t=this.path[o]-e.path[o];if(t<-1||t>1)return!1;if(1===t)return Kd(e,this,o);if(-1===t)return Kd(this,e,o)}return this.path.length===e.path.length||(this.path.length>e.path.length?Yd(this.path,t):Yd(e.path,t))}hasSameParentAs(e){return this.root===e.root&&"same"==re(this.getParentPath(),e.getParentPath())}getTransformedByOperation(e){let t;switch(e.type){case"insert":t=this._getTransformedByInsertOperation(e);break;case"move":case"remove":case"reinsert":t=this._getTransformedByMoveOperation(e);break;case"split":t=this._getTransformedBySplitOperation(e);break;case"merge":t=this._getTransformedByMergeOperation(e);break;default:t=Ud._createAt(this)}return t}_getTransformedByInsertOperation(e){return this._getTransformedByInsertion(e.position,e.howMany)}_getTransformedByMoveOperation(e){return this._getTransformedByMove(e.sourcePosition,e.targetPosition,e.howMany)}_getTransformedBySplitOperation(e){const t=e.movedRange;return t.containsPosition(this)||t.start.isEqual(this)&&"toNext"==this.stickiness?this._getCombined(e.splitPosition,e.moveTargetPosition):e.graveyardPosition?this._getTransformedByMove(e.graveyardPosition,e.insertionPosition,1):this._getTransformedByInsertion(e.insertionPosition,1)}_getTransformedByMergeOperation(e){const t=e.movedRange;let o;return t.containsPosition(this)||t.start.isEqual(this)?(o=this._getCombined(e.sourcePosition,e.targetPosition),e.sourcePosition.isBefore(e.targetPosition)&&(o=o._getTransformedByDeletion(e.deletionPosition,1))):o=this.isEqual(e.deletionPosition)?Ud._createAt(e.deletionPosition):this._getTransformedByMove(e.deletionPosition,e.graveyardPosition,1),o}_getTransformedByDeletion(e,t){const o=Ud._createAt(this);if(this.root!=e.root)return o;if("same"==re(e.getParentPath(),this.getParentPath())){if(e.offset<this.offset){if(e.offset+t>this.offset)return null;o.offset-=t}}else if("prefix"==re(e.getParentPath(),this.getParentPath())){const n=e.path.length-1;if(e.offset<=this.path[n]){if(e.offset+t>this.path[n])return null;o.path[n]-=t}}return o}_getTransformedByInsertion(e,t){const o=Ud._createAt(this);if(this.root!=e.root)return o;if("same"==re(e.getParentPath(),this.getParentPath()))(e.offset<this.offset||e.offset==this.offset&&"toPrevious"!=this.stickiness)&&(o.offset+=t);else if("prefix"==re(e.getParentPath(),this.getParentPath())){const n=e.path.length-1;e.offset<=this.path[n]&&(o.path[n]+=t)}return o}_getTransformedByMove(e,t,o){if(t=t._getTransformedByDeletion(e,o),e.isEqual(t))return Ud._createAt(this);const n=this._getTransformedByDeletion(e,o);return null===n||e.isEqual(this)&&"toNext"==this.stickiness||e.getShiftedBy(o).isEqual(this)&&"toPrevious"==this.stickiness?this._getCombined(e,t):n._getTransformedByInsertion(t,o)}_getCombined(e,t){const o=e.path.length-1,n=Ud._createAt(t);return n.stickiness=this.stickiness,n.offset=n.offset+this.path[o]-e.offset,n.path=[...n.path,...this.path.slice(o+1)],n}toJSON(){return{root:this.root.toJSON(),path:Array.from(this.path),stickiness:this.stickiness}}clone(){return new this.constructor(this.root,this.path,this.stickiness)}static _createAt(e,t,o="toNone"){if(e instanceof Ud)return new Ud(e.root,e.path,e.stickiness);{const n=e;if("end"==t)t=n.maxOffset;else{if("before"==t)return this._createBefore(n,o);if("after"==t)return this._createAfter(n,o);if(0!==t&&!t)throw new x("model-createpositionat-offset-required",[this,e])}if(!n.is("element")&&!n.is("documentFragment"))throw new x("model-position-parent-incorrect",[this,e]);const a=n.getPath();return a.push(t),new this(n.root,a,o)}}static _createAfter(e,t){if(!e.parent)throw new x("model-position-after-root",[this,e],{root:e});return this._createAt(e.parent,e.endOffset,t)}static _createBefore(e,t){if(!e.parent)throw new x("model-position-before-root",e,{root:e});return this._createAt(e.parent,e.startOffset,t)}static fromJSON(e,t){if("$graveyard"===e.root){const o=new Ud(t.graveyard,e.path);return o.stickiness=e.stickiness,o}if(!t.getRoot(e.root))throw new x("model-position-fromjson-no-root",t,{rootName:e.root});return new Ud(t.getRoot(e.root),e.path,e.stickiness)}}function Hd(e,t){const o=t.getChild(t.offsetToIndex(e.offset));return o&&o.is("$text")&&o.startOffset<e.offset?o:null}function Wd(e,t,o){return null!==o?null:t.getChild(t.offsetToIndex(e.offset))}function Gd(e,t,o){return null!==o?null:t.getChild(t.offsetToIndex(e.offset)-1)}function Kd(e,t,o){return o+1!==e.path.length&&!!Yd(t.path,o+1)&&!!function(e,t){let o=e.parent,n=e.path.length-1,a=0;for(;n>=t;){if(e.path[n]+a!==o.maxOffset)return!1;a=1,n--,o=o.parent}return!0}(e,o+1)}function Yd(e,t){for(;t<e.length;){if(0!==e[t])return!1;t++}return!0}Ud.prototype.is=function(e){return"position"===e||"model:position"===e};class Qd extends zd{constructor(e,t){super(),this.start=Ud._createAt(e),this.end=t?Ud._createAt(t):Ud._createAt(e),this.start.stickiness=this.isCollapsed?"toNone":"toNext",this.end.stickiness=this.isCollapsed?"toNone":"toPrevious"}*[Symbol.iterator](){yield*new qd({boundaries:this,ignoreElementEnd:!0})}get isCollapsed(){return this.start.isEqual(this.end)}get isFlat(){return"same"==re(this.start.getParentPath(),this.end.getParentPath())}get root(){return this.start.root}containsPosition(e){return e.isAfter(this.start)&&e.isBefore(this.end)}containsRange(e,t=!1){e.isCollapsed&&(t=!1);const o=this.containsPosition(e.start)||t&&this.start.isEqual(e.start),n=this.containsPosition(e.end)||t&&this.end.isEqual(e.end);return o&&n}containsItem(e){const t=Ud._createBefore(e);return this.containsPosition(t)||this.start.isEqual(t)}isEqual(e){return this.start.isEqual(e.start)&&this.end.isEqual(e.end)}isIntersecting(e){return this.start.isBefore(e.end)&&this.end.isAfter(e.start)}getDifference(e){const t=[];return this.isIntersecting(e)?(this.containsPosition(e.start)&&t.push(new Qd(this.start,e.start)),this.containsPosition(e.end)&&t.push(new Qd(e.end,this.end))):t.push(new Qd(this.start,this.end)),t}getIntersection(e){if(this.isIntersecting(e)){let t=this.start,o=this.end;return this.containsPosition(e.start)&&(t=e.start),this.containsPosition(e.end)&&(o=e.end),new Qd(t,o)}return null}getJoined(e,t=!1){let o=this.isIntersecting(e);if(o||(o=this.start.isBefore(e.start)?t?this.end.isTouching(e.start):this.end.isEqual(e.start):t?e.end.isTouching(this.start):e.end.isEqual(this.start)),!o)return null;let n=this.start,a=this.end;return e.start.isBefore(n)&&(n=e.start),e.end.isAfter(a)&&(a=e.end),new Qd(n,a)}getMinimalFlatRanges(){const e=[],t=this.start.getCommonPath(this.end).length,o=Ud._createAt(this.start);let n=o.parent;for(;o.path.length>t+1;){const t=n.maxOffset-o.offset;0!==t&&e.push(new Qd(o,o.getShiftedBy(t))),o.path=o.path.slice(0,-1),o.offset++,n=n.parent}for(;o.path.length<=this.end.path.length;){const t=this.end.path[o.path.length-1],n=t-o.offset;0!==n&&e.push(new Qd(o,o.getShiftedBy(n))),o.offset=t,o.path.push(0)}return e}getWalker(e={}){return e.boundaries=this,new qd(e)}*getItems(e={}){e.boundaries=this,e.ignoreElementEnd=!0;const t=new qd(e);for(const o of t)yield o.item}*getPositions(e={}){e.boundaries=this;const t=new qd(e);yield t.position;for(const o of t)yield o.nextPosition}getTransformedByOperation(e){switch(e.type){case"insert":return this._getTransformedByInsertOperation(e);case"move":case"remove":case"reinsert":return this._getTransformedByMoveOperation(e);case"split":return[this._getTransformedBySplitOperation(e)];case"merge":return[this._getTransformedByMergeOperation(e)]}return[new Qd(this.start,this.end)]}getTransformedByOperations(e){const t=[new Qd(this.start,this.end)];for(const o of e)for(let e=0;e<t.length;e++){const n=t[e].getTransformedByOperation(o);t.splice(e,1,...n),e+=n.length-1}for(let o=0;o<t.length;o++){const e=t[o];for(let n=o+1;n<t.length;n++){const o=t[n];(e.containsRange(o)||o.containsRange(e)||e.isEqual(o))&&t.splice(n,1)}}return t}getCommonAncestor(){return this.start.getCommonAncestor(this.end)}getContainedElement(){if(this.isCollapsed)return null;const e=this.start.nodeAfter,t=this.end.nodeBefore;return e&&e.is("element")&&e===t?e:null}toJSON(){return{start:this.start.toJSON(),end:this.end.toJSON()}}clone(){return new this.constructor(this.start,this.end)}_getTransformedByInsertOperation(e,t=!1){return this._getTransformedByInsertion(e.position,e.howMany,t)}_getTransformedByMoveOperation(e,t=!1){const o=e.sourcePosition,n=e.howMany,a=e.targetPosition;return this._getTransformedByMove(o,a,n,t)}_getTransformedBySplitOperation(e){const t=this.start._getTransformedBySplitOperation(e);let o=this.end._getTransformedBySplitOperation(e);return this.end.isEqual(e.insertionPosition)&&(o=this.end.getShiftedBy(1)),t.root!=o.root&&(o=this.end.getShiftedBy(-1)),new Qd(t,o)}_getTransformedByMergeOperation(e){if(this.start.isEqual(e.targetPosition)&&this.end.isEqual(e.deletionPosition))return new Qd(this.start);let t=this.start._getTransformedByMergeOperation(e),o=this.end._getTransformedByMergeOperation(e);return t.root!=o.root&&(o=this.end.getShiftedBy(-1)),t.isAfter(o)?(e.sourcePosition.isBefore(e.targetPosition)?(t=Ud._createAt(o),t.offset=0):(e.deletionPosition.isEqual(t)||(o=e.deletionPosition),t=e.targetPosition),new Qd(t,o)):new Qd(t,o)}_getTransformedByInsertion(e,t,o=!1){if(o&&this.containsPosition(e))return[new Qd(this.start,e),new Qd(e.getShiftedBy(t),this.end._getTransformedByInsertion(e,t))];{const o=new Qd(this.start,this.end);return o.start=o.start._getTransformedByInsertion(e,t),o.end=o.end._getTransformedByInsertion(e,t),[o]}}_getTransformedByMove(e,t,o,n=!1){if(this.isCollapsed){const n=this.start._getTransformedByMove(e,t,o);return[new Qd(n)]}const a=Qd._createFromPositionAndShift(e,o),r=t._getTransformedByDeletion(e,o);if(this.containsPosition(t)&&!n&&(a.containsPosition(this.start)||a.containsPosition(this.end))){const n=this.start._getTransformedByMove(e,t,o),a=this.end._getTransformedByMove(e,t,o);return[new Qd(n,a)]}let i;const l=this.getDifference(a);let s=null;const c=this.getIntersection(a);if(1==l.length?s=new Qd(l[0].start._getTransformedByDeletion(e,o),l[0].end._getTransformedByDeletion(e,o)):2==l.length&&(s=new Qd(this.start,this.end._getTransformedByDeletion(e,o))),i=s?s._getTransformedByInsertion(r,o,null!==c||n):[],c){const e=new Qd(c.start._getCombined(a.start,r),c.end._getCombined(a.start,r));2==i.length?i.splice(1,0,e):i.push(e)}return i}_getTransformedByDeletion(e,t){let o=this.start._getTransformedByDeletion(e,t),n=this.end._getTransformedByDeletion(e,t);return null==o&&null==n?null:(null==o&&(o=e),null==n&&(n=e),new Qd(o,n))}static _createFromPositionAndShift(e,t){const o=e,n=e.getShiftedBy(t);return t>0?new this(o,n):new this(n,o)}static _createIn(e){return new this(Ud._createAt(e,0),Ud._createAt(e,e.maxOffset))}static _createOn(e){return this._createFromPositionAndShift(Ud._createBefore(e),e.offsetSize)}static _createFromRanges(e){if(0===e.length)throw new x("range-create-from-ranges-empty-array",null);if(1==e.length)return e[0].clone();const t=e[0];e.sort((e,t)=>e.start.isAfter(t.start)?1:-1);const o=e.indexOf(t),n=new this(t.start,t.end);if(o>0)for(let a=o-1;e[a].end.isEqual(n.start);a++)n.start=Ud._createAt(e[a].start);for(let a=o+1;a<e.length&&e[a].start.isEqual(n.end);a++)n.end=Ud._createAt(e[a].end);return n}static fromJSON(e,t){return new this(Ud.fromJSON(e.start,t),Ud.fromJSON(e.end,t))}}Qd.prototype.is=function(e){return"range"===e||"model:range"===e};class Jd extends(z()){constructor(){super(),this._modelToViewMapping=new WeakMap,this._viewToModelMapping=new WeakMap,this._viewToModelLengthCallbacks=new Map,this._markerNameToElements=new Map,this._elementToMarkerNames=new Map,this._deferredBindingRemovals=new Map,this._unboundMarkerNames=new Set,this.on("modelToViewPosition",(e,t)=>{if(t.viewPosition)return;const o=this._modelToViewMapping.get(t.modelPosition.parent);if(!o)throw new x("mapping-model-position-view-parent-not-found",this,{modelPosition:t.modelPosition});t.viewPosition=this.findPositionIn(o,t.modelPosition.offset)},{priority:"low"}),this.on("viewToModelPosition",(e,t)=>{if(t.modelPosition)return;const o=this.findMappedViewAncestor(t.viewPosition),n=this._viewToModelMapping.get(o),a=this._toModelOffset(t.viewPosition.parent,t.viewPosition.offset,o);t.modelPosition=Ud._createAt(n,a)},{priority:"low"})}bindElements(e,t){this._modelToViewMapping.set(e,t),this._viewToModelMapping.set(t,e)}unbindViewElement(e,t={}){const o=this.toModelElement(e);if(this._elementToMarkerNames.has(e))for(const n of this._elementToMarkerNames.get(e))this._unboundMarkerNames.add(n);t.defer?this._deferredBindingRemovals.set(e,e.root):(this._viewToModelMapping.delete(e),this._modelToViewMapping.get(o)==e&&this._modelToViewMapping.delete(o))}unbindModelElement(e){const t=this.toViewElement(e);this._modelToViewMapping.delete(e),this._viewToModelMapping.get(t)==e&&this._viewToModelMapping.delete(t)}bindElementToMarker(e,t){const o=this._markerNameToElements.get(t)||new Set;o.add(e);const n=this._elementToMarkerNames.get(e)||new Set;n.add(t),this._markerNameToElements.set(t,o),this._elementToMarkerNames.set(e,n)}unbindElementFromMarkerName(e,t){const o=this._markerNameToElements.get(t);o&&(o.delete(e),0==o.size&&this._markerNameToElements.delete(t));const n=this._elementToMarkerNames.get(e);n&&(n.delete(t),0==n.size&&this._elementToMarkerNames.delete(e))}flushUnboundMarkerNames(){const e=Array.from(this._unboundMarkerNames);return this._unboundMarkerNames.clear(),e}flushDeferredBindings(){for(const[e,t]of this._deferredBindingRemovals)e.root==t&&this.unbindViewElement(e);this._deferredBindingRemovals=new Map}clearBindings(){this._modelToViewMapping=new WeakMap,this._viewToModelMapping=new WeakMap,this._markerNameToElements=new Map,this._elementToMarkerNames=new Map,this._unboundMarkerNames=new Set,this._deferredBindingRemovals=new Map}toModelElement(e){return this._viewToModelMapping.get(e)}toViewElement(e){return this._modelToViewMapping.get(e)}toModelRange(e){return new Qd(this.toModelPosition(e.start),this.toModelPosition(e.end))}toViewRange(e){return new hs(this.toViewPosition(e.start),this.toViewPosition(e.end))}toModelPosition(e){const t={viewPosition:e,mapper:this};return this.fire("viewToModelPosition",t),t.modelPosition}toViewPosition(e,t={}){const o={modelPosition:e,mapper:this,isPhantom:t.isPhantom};return this.fire("modelToViewPosition",o),o.viewPosition}markerNameToElements(e){const t=this._markerNameToElements.get(e);if(!t)return null;const o=new Set;for(const n of t)if(n.is("attributeElement"))for(const e of n.getElementsWithSameId())o.add(e);else o.add(n);return o}registerViewToModelLength(e,t){this._viewToModelLengthCallbacks.set(e,t)}findMappedViewAncestor(e){let t=e.parent;for(;!this._viewToModelMapping.has(t);)t=t.parent;return t}_toModelOffset(e,t,o){if(o!=e)return this._toModelOffset(e.parent,e.index,o)+this._toModelOffset(e,t,e);if(e.is("$text"))return t;let n=0;for(let a=0;a<t;a++)n+=this.getModelLength(e.getChild(a));return n}getModelLength(e){if(this._viewToModelLengthCallbacks.get(e.name))return this._viewToModelLengthCallbacks.get(e.name)(e);if(this._viewToModelMapping.has(e))return 1;if(e.is("$text"))return e.data.length;if(e.is("uiElement"))return 0;{let t=0;for(const o of e.getChildren())t+=this.getModelLength(o);return t}}findPositionIn(e,t){let o,n=0,a=0,r=0;if(e.is("$text"))return new ms(e,t);for(;a<t;)o=e.getChild(r),n=this.getModelLength(o),a+=n,r++;return a==t?this._moveViewPositionToTextNode(new ms(e,r)):this.findPositionIn(o,t-(a-n))}_moveViewPositionToTextNode(e){const t=e.nodeBefore,o=e.nodeAfter;return t instanceof Qi?new ms(t,t.data.length):o instanceof Qi?new ms(o,0):e}}class Zd{constructor(){this._consumable=new Map,this._textProxyRegistry=new Map}add(e,t){t=Xd(t),e instanceof Pd&&(e=this._getSymbolForTextProxy(e)),this._consumable.has(e)||this._consumable.set(e,new Map),this._consumable.get(e).set(t,!0)}consume(e,t){return t=Xd(t),e instanceof Pd&&(e=this._getSymbolForTextProxy(e)),!!this.test(e,t)&&(this._consumable.get(e).set(t,!1),!0)}test(e,t){t=Xd(t),e instanceof Pd&&(e=this._getSymbolForTextProxy(e));const o=this._consumable.get(e);if(void 0===o)return null;const n=o.get(t);return void 0===n?null:n}revert(e,t){t=Xd(t),e instanceof Pd&&(e=this._getSymbolForTextProxy(e));const o=this.test(e,t);return!1===o?(this._consumable.get(e).set(t,!0),!0):!0!==o&&null}verifyAllConsumed(e){const t=[];for(const[o,n]of this._consumable)for(const[a,r]of n){const n=a.split(":")[0];r&&e==n&&t.push({event:a,item:o.name||o.description})}if(t.length)throw new x("conversion-model-consumable-not-consumed",null,{items:t})}_getSymbolForTextProxy(e){let t=null;const o=this._textProxyRegistry.get(e.startOffset);if(o){const n=o.get(e.endOffset);n&&(t=n.get(e.parent))}return t||(t=this._addSymbolForTextProxy(e)),t}_addSymbolForTextProxy(e){const t=e.startOffset,o=e.endOffset,n=e.parent,a=Symbol("$textProxy:"+e.data);let r,i;return r=this._textProxyRegistry.get(t),r||(r=new Map,this._textProxyRegistry.set(t,r)),i=r.get(o),i||(i=new Map,r.set(o,i)),i.set(n,a),a}}function Xd(e){const t=e.split(":");return"insert"==t[0]?t[0]:"addMarker"==t[0]||"removeMarker"==t[0]?e:t.length>1?t[0]+":"+t[1]:t[0]}class eu extends(z()){constructor(e){super(),this._conversionApi={dispatcher:this,...e},this._firedEventsMap=new WeakMap}convertChanges(e,t,o){const n=this._createConversionApi(o,e.getRefreshedItems());for(const r of e.getMarkersToRemove())this._convertMarkerRemove(r.name,r.range,n);const a=this._reduceChanges(e.getChanges());for(const r of a)"insert"===r.type?this._convertInsert(Qd._createFromPositionAndShift(r.position,r.length),n):"reinsert"===r.type?this._convertReinsert(Qd._createFromPositionAndShift(r.position,r.length),n):"remove"===r.type?this._convertRemove(r.position,r.length,r.name,n):this._convertAttribute(r.range,r.attributeKey,r.attributeOldValue,r.attributeNewValue,n);for(const r of n.mapper.flushUnboundMarkerNames()){const e=t.get(r).getRange();this._convertMarkerRemove(r,e,n),this._convertMarkerAdd(r,e,n)}for(const r of e.getMarkersToAdd())this._convertMarkerAdd(r.name,r.range,n);n.mapper.flushDeferredBindings(),n.consumable.verifyAllConsumed("insert")}convert(e,t,o,n={}){const a=this._createConversionApi(o,void 0,n);this._convertInsert(e,a);for(const[r,i]of t)this._convertMarkerAdd(r,i,a);a.consumable.verifyAllConsumed("insert")}convertSelection(e,t,o){const n=Array.from(t.getMarkersAtPosition(e.getFirstPosition())),a=this._createConversionApi(o);if(this._addConsumablesForSelection(a.consumable,e,n),this.fire("selection",{selection:e},a),e.isCollapsed){for(const t of n){const o=t.getRange();if(!tu(e.getFirstPosition(),t,a.mapper))continue;const n={item:e,markerName:t.name,markerRange:o};a.consumable.test(e,"addMarker:"+t.name)&&this.fire("addMarker:"+t.name,n,a)}for(const t of e.getAttributeKeys()){const o={item:e,range:e.getFirstRange(),attributeKey:t,attributeOldValue:null,attributeNewValue:e.getAttribute(t)};a.consumable.test(e,"attribute:"+o.attributeKey)&&this.fire(`attribute:${o.attributeKey}:$text`,o,a)}}}_convertInsert(e,t,o={}){o.doNotAddConsumables||this._addConsumablesForInsert(t.consumable,Array.from(e));for(const n of Array.from(e.getWalker({shallow:!0})).map(ou))this._testAndFire("insert",n,t)}_convertRemove(e,t,o,n){this.fire("remove:"+o,{position:e,length:t},n)}_convertAttribute(e,t,o,n,a){this._addConsumablesForRange(a.consumable,e,"attribute:"+t);for(const r of e){const e={item:r.item,range:Qd._createFromPositionAndShift(r.previousPosition,r.length),attributeKey:t,attributeOldValue:o,attributeNewValue:n};this._testAndFire("attribute:"+t,e,a)}}_convertReinsert(e,t){const o=Array.from(e.getWalker({shallow:!0}));this._addConsumablesForInsert(t.consumable,o);for(const n of o.map(ou))this._testAndFire("insert",{...n,reconversion:!0},t)}_convertMarkerAdd(e,t,o){if("$graveyard"==t.root.rootName)return;const n="addMarker:"+e;if(o.consumable.add(t,n),this.fire(n,{markerName:e,markerRange:t},o),o.consumable.consume(t,n)){this._addConsumablesForRange(o.consumable,t,n);for(const a of t.getItems()){if(!o.consumable.test(a,n))continue;const r={item:a,range:Qd._createOn(a),markerName:e,markerRange:t};this.fire(n,r,o)}}}_convertMarkerRemove(e,t,o){"$graveyard"!=t.root.rootName&&this.fire("removeMarker:"+e,{markerName:e,markerRange:t},o)}_reduceChanges(e){const t={changes:e};return this.fire("reduceChanges",t),t.changes}_addConsumablesForInsert(e,t){for(const o of t){const t=o.item;if(null===e.test(t,"insert")){e.add(t,"insert");for(const o of t.getAttributeKeys())e.add(t,"attribute:"+o)}}return e}_addConsumablesForRange(e,t,o){for(const n of t.getItems())e.add(n,o);return e}_addConsumablesForSelection(e,t,o){e.add(t,"selection");for(const n of o)e.add(t,"addMarker:"+n.name);for(const n of t.getAttributeKeys())e.add(t,"attribute:"+n);return e}_testAndFire(e,t,o){const n=function(e,t){const o=t.item.is("element")?t.item.name:"$text";return`${e}:${o}`}(e,t),a=t.item.is("$textProxy")?o.consumable._getSymbolForTextProxy(t.item):t.item,r=this._firedEventsMap.get(o),i=r.get(a);if(i){if(i.has(n))return;i.add(n)}else r.set(a,new Set([n]));this.fire(n,t,o)}_testAndFireAddAttributes(e,t){const o={item:e,range:Qd._createOn(e)};for(const n of o.item.getAttributeKeys())o.attributeKey=n,o.attributeOldValue=null,o.attributeNewValue=o.item.getAttribute(n),this._testAndFire("attribute:"+n,o,t)}_createConversionApi(e,t=new Set,o={}){const n={...this._conversionApi,consumable:new Zd,writer:e,options:o,convertItem:e=>this._convertInsert(Qd._createOn(e),n),convertChildren:e=>this._convertInsert(Qd._createIn(e),n,{doNotAddConsumables:!0}),convertAttributes:e=>this._testAndFireAddAttributes(e,n),canReuseView:e=>!t.has(n.mapper.toModelElement(e))};return this._firedEventsMap.set(n,new Map),n}}function tu(e,t,o){const n=t.getRange(),a=Array.from(e.getAncestors());return a.shift(),a.reverse(),!a.some(e=>{if(n.containsItem(e))return!!o.toViewElement(e).getCustomProperty("addHighlight")})}function ou(e){return{item:e.item,range:Qd._createFromPositionAndShift(e.previousPosition,e.length)}}class nu extends(z(zd)){constructor(...e){super(),this._lastRangeBackward=!1,this._attrs=new Map,this._ranges=[],e.length&&this.setTo(...e)}get anchor(){if(this._ranges.length>0){const e=this._ranges[this._ranges.length-1];return this._lastRangeBackward?e.end:e.start}return null}get focus(){if(this._ranges.length>0){const e=this._ranges[this._ranges.length-1];return this._lastRangeBackward?e.start:e.end}return null}get isCollapsed(){return 1===this._ranges.length&&this._ranges[0].isCollapsed}get rangeCount(){return this._ranges.length}get isBackward(){return!this.isCollapsed&&this._lastRangeBackward}isEqual(e){if(this.rangeCount!=e.rangeCount)return!1;if(0===this.rangeCount)return!0;if(!this.anchor.isEqual(e.anchor)||!this.focus.isEqual(e.focus))return!1;for(const t of this._ranges){let o=!1;for(const n of e._ranges)if(t.isEqual(n)){o=!0;break}if(!o)return!1}return!0}*getRanges(){for(const e of this._ranges)yield new Qd(e.start,e.end)}getFirstRange(){let e=null;for(const t of this._ranges)e&&!t.start.isBefore(e.start)||(e=t);return e?new Qd(e.start,e.end):null}getLastRange(){let e=null;for(const t of this._ranges)e&&!t.end.isAfter(e.end)||(e=t);return e?new Qd(e.start,e.end):null}getFirstPosition(){const e=this.getFirstRange();return e?e.start.clone():null}getLastPosition(){const e=this.getLastRange();return e?e.end.clone():null}setTo(...e){let[t,o,n]=e;if("object"==typeof o&&(n=o,o=void 0),null===t)this._setRanges([]);else if(t instanceof nu)this._setRanges(t.getRanges(),t.isBackward);else if(t&&"function"==typeof t.getRanges)this._setRanges(t.getRanges(),t.isBackward);else if(t instanceof Qd)this._setRanges([t],!!n&&!!n.backward);else if(t instanceof Ud)this._setRanges([new Qd(t)]);else if(t instanceof Fd){const e=!!n&&!!n.backward;let a;if("in"==o)a=Qd._createIn(t);else if("on"==o)a=Qd._createOn(t);else{if(void 0===o)throw new x("model-selection-setto-required-second-parameter",[this,t]);a=new Qd(Ud._createAt(t,o))}this._setRanges([a],e)}else{if(!ie(t))throw new x("model-selection-setto-not-selectable",[this,t]);this._setRanges(t,n&&!!n.backward)}}_setRanges(e,t=!1){const o=Array.from(e),n=o.some(t=>{if(!(t instanceof Qd))throw new x("model-selection-set-ranges-not-range",[this,e]);return this._ranges.every(e=>!e.isEqual(t))});(o.length!==this._ranges.length||n)&&(this._replaceAllRanges(o),this._lastRangeBackward=!!t,this.fire("change:range",{directChange:!0}))}setFocus(e,t){if(null===this.anchor)throw new x("model-selection-setfocus-no-ranges",[this,e]);const o=Ud._createAt(e,t);if("same"==o.compareWith(this.focus))return;const n=this.anchor;this._ranges.length&&this._popRange(),"before"==o.compareWith(n)?(this._pushRange(new Qd(o,n)),this._lastRangeBackward=!0):(this._pushRange(new Qd(n,o)),this._lastRangeBackward=!1),this.fire("change:range",{directChange:!0})}getAttribute(e){return this._attrs.get(e)}getAttributes(){return this._attrs.entries()}getAttributeKeys(){return this._attrs.keys()}hasAttribute(e){return this._attrs.has(e)}removeAttribute(e){this.hasAttribute(e)&&(this._attrs.delete(e),this.fire("change:attribute",{attributeKeys:[e],directChange:!0}))}setAttribute(e,t){this.getAttribute(e)!==t&&(this._attrs.set(e,t),this.fire("change:attribute",{attributeKeys:[e],directChange:!0}))}getSelectedElement(){return 1!==this.rangeCount?null:this.getFirstRange().getContainedElement()}*getSelectedBlocks(){const e=new WeakSet;for(const t of this.getRanges()){const o=iu(t.start,e);o&&lu(o,t)&&(yield o);for(const a of t.getWalker()){const o=a.item;"elementEnd"==a.type&&ru(o,e,t)&&(yield o)}const n=iu(t.end,e);n&&!t.end.isTouching(Ud._createAt(n,0))&&lu(n,t)&&(yield n)}}containsEntireContent(e=this.anchor.root){const t=Ud._createAt(e,0),o=Ud._createAt(e,"end");return t.isTouching(this.getFirstPosition())&&o.isTouching(this.getLastPosition())}_pushRange(e){this._checkRange(e),this._ranges.push(new Qd(e.start,e.end))}_checkRange(e){for(let t=0;t<this._ranges.length;t++)if(e.isIntersecting(this._ranges[t]))throw new x("model-selection-range-intersects",[this,e],{addedRange:e,intersectingRange:this._ranges[t]})}_replaceAllRanges(e){this._removeAllRanges();for(const t of e)this._pushRange(t)}_removeAllRanges(){for(;this._ranges.length>0;)this._popRange()}_popRange(){this._ranges.pop()}}function au(e,t){return!t.has(e)&&(t.add(e),e.root.document.model.schema.isBlock(e)&&!!e.parent)}function ru(e,t,o){return au(e,t)&&lu(e,o)}function iu(e,t){const o=e.parent.root.document.model.schema,n=e.parent.getAncestors({parentFirst:!0,includeSelf:!0});let a=!1;const r=n.find(e=>!a&&(a=o.isLimit(e),!a&&au(e,t)));return n.forEach(e=>t.add(e)),r}function lu(e,t){const o=function(e){const t=e.root.document.model.schema;let o=e.parent;for(;o;){if(t.isBlock(o))return o;o=o.parent}}(e);return!o||!t.containsRange(Qd._createOn(o),!0)}nu.prototype.is=function(e){return"selection"===e||"model:selection"===e};class su extends(z(Qd)){constructor(e,t){super(e,t),cu.call(this)}detach(){this.stopListening()}toRange(){return new Qd(this.start,this.end)}static fromRange(e){return new su(e.start,e.end)}}function cu(){this.listenTo(this.root.document.model,"applyOperation",(e,t)=>{const o=t[0];o.isDocumentOperation&&du.call(this,o)},{priority:"low"})}function du(e){const t=this.getTransformedByOperation(e),o=Qd._createFromRanges(t),n=!o.isEqual(this),a=function(e,t){switch(t.type){case"insert":return e.containsPosition(t.position);case"move":case"remove":case"reinsert":case"merge":return e.containsPosition(t.sourcePosition)||e.start.isEqual(t.sourcePosition)||e.containsPosition(t.targetPosition);case"split":return e.containsPosition(t.splitPosition)||e.containsPosition(t.insertionPosition)}return!1}(this,e);let r=null;if(n){"$graveyard"==o.root.rootName&&(r="remove"==e.type?e.sourcePosition:e.deletionPosition);const t=this.toRange();this.start=o.start,this.end=o.end,this.fire("change:range",t,{deletionPosition:r})}else a&&this.fire("change:content",this.toRange(),{deletionPosition:r})}su.prototype.is=function(e){return"liveRange"===e||"model:liveRange"===e||"range"==e||"model:range"===e};const uu="selection:";class mu extends(z(zd)){constructor(e){super(),this._selection=new hu(e),this._selection.delegate("change:range").to(this),this._selection.delegate("change:attribute").to(this),this._selection.delegate("change:marker").to(this)}get isCollapsed(){return this._selection.isCollapsed}get anchor(){return this._selection.anchor}get focus(){return this._selection.focus}get rangeCount(){return this._selection.rangeCount}get hasOwnRange(){return this._selection.hasOwnRange}get isBackward(){return this._selection.isBackward}get isGravityOverridden(){return this._selection.isGravityOverridden}get markers(){return this._selection.markers}get _ranges(){return this._selection._ranges}getRanges(){return this._selection.getRanges()}getFirstPosition(){return this._selection.getFirstPosition()}getLastPosition(){return this._selection.getLastPosition()}getFirstRange(){return this._selection.getFirstRange()}getLastRange(){return this._selection.getLastRange()}getSelectedBlocks(){return this._selection.getSelectedBlocks()}getSelectedElement(){return this._selection.getSelectedElement()}containsEntireContent(e){return this._selection.containsEntireContent(e)}destroy(){this._selection.destroy()}getAttributeKeys(){return this._selection.getAttributeKeys()}getAttributes(){return this._selection.getAttributes()}getAttribute(e){return this._selection.getAttribute(e)}hasAttribute(e){return this._selection.hasAttribute(e)}refresh(){this._selection.updateMarkers(),this._selection._updateAttributes(!1)}observeMarkers(e){this._selection.observeMarkers(e)}_setFocus(e,t){this._selection.setFocus(e,t)}_setTo(...e){this._selection.setTo(...e)}_setAttribute(e,t){this._selection.setAttribute(e,t)}_removeAttribute(e){this._selection.removeAttribute(e)}_getStoredAttributes(){return this._selection.getStoredAttributes()}_overrideGravity(){return this._selection.overrideGravity()}_restoreGravity(e){this._selection.restoreGravity(e)}static _getStoreAttributeKey(e){return uu+e}static _isStoreAttributeKey(e){return e.startsWith(uu)}}mu.prototype.is=function(e){return"selection"===e||"model:selection"==e||"documentSelection"==e||"model:documentSelection"==e};class hu extends nu{constructor(e){super(),this.markers=new gr({idProperty:"name"}),this._attributePriority=new Map,this._selectionRestorePosition=null,this._hasChangedRange=!1,this._overriddenGravityRegister=new Set,this._observedMarkers=new Set,this._model=e.model,this._document=e,this.listenTo(this._model,"applyOperation",(e,t)=>{const o=t[0];o.isDocumentOperation&&"marker"!=o.type&&"rename"!=o.type&&"noop"!=o.type&&(0==this._ranges.length&&this._selectionRestorePosition&&this._fixGraveyardSelection(this._selectionRestorePosition),this._selectionRestorePosition=null,this._hasChangedRange&&(this._hasChangedRange=!1,this.fire("change:range",{directChange:!1})))},{priority:"lowest"}),this.on("change:range",()=>{this._validateSelectionRanges(this.getRanges())}),this.listenTo(this._model.markers,"update",(e,t,o,n)=>{this._updateMarker(t,n)}),this.listenTo(this._document,"change",(e,t)=>{!function(e,t){const o=e.document.differ;for(const n of o.getChanges()){if("insert"!=n.type)continue;const o=n.position.parent;n.length===o.maxOffset&&e.enqueueChange(t,e=>{const t=Array.from(o.getAttributeKeys()).filter(e=>e.startsWith(uu));for(const n of t)e.removeAttribute(n,o)})}}(this._model,t)})}get isCollapsed(){return 0===this._ranges.length?this._document._getDefaultRange().isCollapsed:super.isCollapsed}get anchor(){return super.anchor||this._document._getDefaultRange().start}get focus(){return super.focus||this._document._getDefaultRange().end}get rangeCount(){return this._ranges.length?this._ranges.length:1}get hasOwnRange(){return this._ranges.length>0}get isGravityOverridden(){return!!this._overriddenGravityRegister.size}destroy(){for(let e=0;e<this._ranges.length;e++)this._ranges[e].detach();this.stopListening()}*getRanges(){this._ranges.length?yield*super.getRanges():yield this._document._getDefaultRange()}getFirstRange(){return super.getFirstRange()||this._document._getDefaultRange()}getLastRange(){return super.getLastRange()||this._document._getDefaultRange()}setTo(...e){super.setTo(...e),this._updateAttributes(!0),this.updateMarkers()}setFocus(e,t){super.setFocus(e,t),this._updateAttributes(!0),this.updateMarkers()}setAttribute(e,t){if(this._setAttribute(e,t)){const t=[e];this.fire("change:attribute",{attributeKeys:t,directChange:!0})}}removeAttribute(e){if(this._removeAttribute(e)){const t=[e];this.fire("change:attribute",{attributeKeys:t,directChange:!0})}}overrideGravity(){const e=C();return this._overriddenGravityRegister.add(e),1===this._overriddenGravityRegister.size&&this._updateAttributes(!0),e}restoreGravity(e){if(!this._overriddenGravityRegister.has(e))throw new x("document-selection-gravity-wrong-restore",this,{uid:e});this._overriddenGravityRegister.delete(e),this.isGravityOverridden||this._updateAttributes(!0)}observeMarkers(e){this._observedMarkers.add(e),this.updateMarkers()}_replaceAllRanges(e){this._validateSelectionRanges(e),super._replaceAllRanges(e)}_popRange(){this._ranges.pop().detach()}_pushRange(e){const t=this._prepareRange(e);t&&this._ranges.push(t)}_validateSelectionRanges(e){for(const t of e)if(!this._document._validateSelectionRange(t))throw new x("document-selection-wrong-position",this,{range:t})}_prepareRange(e){if(this._checkRange(e),e.root==this._document.graveyard)return;const t=su.fromRange(e);return t.on("change:range",(e,o,n)=>{if(this._hasChangedRange=!0,t.root==this._document.graveyard){this._selectionRestorePosition=n.deletionPosition;const e=this._ranges.indexOf(t);this._ranges.splice(e,1),t.detach()}}),t}updateMarkers(){if(!this._observedMarkers.size)return;const e=[];let t=!1;for(const n of this._model.markers){const t=n.name.split(":",1)[0];if(!this._observedMarkers.has(t))continue;const o=n.getRange();for(const a of this.getRanges())o.containsRange(a,!a.isCollapsed)&&e.push(n)}const o=Array.from(this.markers);for(const n of e)this.markers.has(n)||(this.markers.add(n),t=!0);for(const n of Array.from(this.markers))e.includes(n)||(this.markers.remove(n),t=!0);t&&this.fire("change:marker",{oldMarkers:o,directChange:!1})}_updateMarker(e,t){const o=e.name.split(":",1)[0];if(!this._observedMarkers.has(o))return;let n=!1;const a=Array.from(this.markers),r=this.markers.has(e);if(t){let o=!1;for(const e of this.getRanges())if(t.containsRange(e,!e.isCollapsed)){o=!0;break}o&&!r?(this.markers.add(e),n=!0):!o&&r&&(this.markers.remove(e),n=!0)}else r&&(this.markers.remove(e),n=!0);n&&this.fire("change:marker",{oldMarkers:a,directChange:!1})}_updateAttributes(e){const t=kr(this._getSurroundingAttributes()),o=kr(this.getAttributes());if(e)this._attributePriority=new Map,this._attrs=new Map;else for(const[a,r]of this._attributePriority)"low"==r&&(this._attrs.delete(a),this._attributePriority.delete(a));this._setAttributesTo(t);const n=[];for(const[a,r]of this.getAttributes())o.has(a)&&o.get(a)===r||n.push(a);for(const[a]of o)this.hasAttribute(a)||n.push(a);n.length>0&&this.fire("change:attribute",{attributeKeys:n,directChange:!1})}_setAttribute(e,t,o=!0){const n=o?"normal":"low";return("low"!=n||"normal"!=this._attributePriority.get(e))&&(super.getAttribute(e)!==t&&(this._attrs.set(e,t),this._attributePriority.set(e,n),!0))}_removeAttribute(e,t=!0){const o=t?"normal":"low";return("low"!=o||"normal"!=this._attributePriority.get(e))&&(this._attributePriority.set(e,o),!!super.hasAttribute(e)&&(this._attrs.delete(e),!0))}_setAttributesTo(e){const t=new Set;for(const[o,n]of this.getAttributes())e.get(o)!==n&&this._removeAttribute(o,!1);for(const[o,n]of e)this._setAttribute(o,n,!1)&&t.add(o);return t}*getStoredAttributes(){const e=this.getFirstPosition().parent;if(this.isCollapsed&&e.isEmpty)for(const t of e.getAttributeKeys())if(t.startsWith(uu)){const o=t.substr(uu.length);yield[o,e.getAttribute(t)]}}_getSurroundingAttributes(){const e=this.getFirstPosition(),t=this._model.schema;let o=null;if(this.isCollapsed){const n=e.textNode?e.textNode:e.nodeBefore,a=e.textNode?e.textNode:e.nodeAfter;if(this.isGravityOverridden||(o=pu(n)),o||(o=pu(a)),!this.isGravityOverridden&&!o){let e=n;for(;e&&!t.isInline(e)&&!o;)e=e.previousSibling,o=pu(e)}if(!o){let e=a;for(;e&&!t.isInline(e)&&!o;)e=e.nextSibling,o=pu(e)}o||(o=this.getStoredAttributes())}else{const e=this.getFirstRange();for(const n of e){if(n.item.is("element")&&t.isObject(n.item))break;if("text"==n.type){o=n.item.getAttributes();break}}}return o}_fixGraveyardSelection(e){const t=this._model.schema.getNearestSelectionRange(e);t&&this._pushRange(t)}}function pu(e){return e instanceof Pd||e instanceof Ld?e.getAttributes():null}class bu{constructor(e){this._dispatchers=e}add(e){for(const t of this._dispatchers)e(t);return this}}var gu=1,fu=4;const vu=function(e){return ma(e,gu|fu)};class wu extends bu{elementToElement(e){return this.add(function(e){const t=yu(e.model),o=Ou(e.view,"container");return t.attributes.length&&(t.children=!0),n=>{n.on("insert:"+t.name,function(e,t=Eu){return(o,n,a)=>{if(!t(n.item,a.consumable,{preflight:!0}))return;const r=e(n.item,a,n);if(!r)return;t(n.item,a.consumable);const i=a.mapper.toViewPosition(n.range.start);a.mapper.bindElements(n.item,r),a.writer.insert(i,r),a.convertAttributes(n.item),Nu(r,n.item.getChildren(),a,{reconversion:n.reconversion})}}(o,Au(t)),{priority:e.converterPriority||"normal"}),(t.children||t.attributes.length)&&n.on("reduceChanges",Vu(t),{priority:"low"})}}(e))}elementToStructure(e){return this.add(function(e){const t=yu(e.model),o=Ou(e.view,"container");return t.children=!0,n=>{if(n._conversionApi.schema.checkChild(t.name,"$text"))throw new x("conversion-element-to-structure-disallowed-text",n,{elementName:t.name});var a,r;n.on("insert:"+t.name,(a=o,r=Au(t),(e,t,o)=>{if(!r(t.item,o.consumable,{preflight:!0}))return;const n=new Map;o.writer._registerSlotFactory(function(e,t,o){return(n,a="children")=>{const r=n.createContainerElement("$slot");let i=null;if("children"===a)i=Array.from(e.getChildren());else{if("function"!=typeof a)throw new x("conversion-slot-mode-unknown",o.dispatcher,{modeOrFilter:a});i=Array.from(e.getChildren()).filter(e=>a(e))}return t.set(r,i),r}}(t.item,n,o));const i=a(t.item,o,t);if(o.writer._clearSlotFactory(),!i)return;!function(e,t,o){const n=Array.from(t.values()).flat(),a=new Set(n);if(a.size!=n.length)throw new x("conversion-slot-filter-overlap",o.dispatcher,{element:e});if(a.size!=e.childCount)throw new x("conversion-slot-filter-incomplete",o.dispatcher,{element:e})}(t.item,n,o),r(t.item,o.consumable);const l=o.mapper.toViewPosition(t.range.start);o.mapper.bindElements(t.item,i),o.writer.insert(l,i),o.convertAttributes(t.item),function(e,t,o,n){o.mapper.on("modelToViewPosition",i,{priority:"highest"});let a=null,r=null;for([a,r]of t)Nu(e,r,o,n),o.writer.move(o.writer.createRangeIn(a),o.writer.createPositionBefore(a)),o.writer.remove(a);function i(e,t){const o=t.modelPosition.nodeAfter,n=r.indexOf(o);n<0||(t.viewPosition=t.mapper.findPositionIn(a,n))}o.mapper.off("modelToViewPosition",i)}(i,n,o,{reconversion:t.reconversion})}),{priority:e.converterPriority||"normal"}),n.on("reduceChanges",Vu(t),{priority:"low"})}}(e))}attributeToElement(e){return this.add(function(e){e=vu(e);let t=e.model;"string"==typeof t&&(t={key:t});let o="attribute:"+t.key;if(t.name&&(o+=":"+t.name),t.values)for(const a of t.values)e.view[a]=Ou(e.view[a],"attribute");else e.view=Ou(e.view,"attribute");const n=ju(e);return t=>{t.on(o,function(e){return(t,o,n)=>{if(!n.consumable.test(o.item,t.name))return;const a=e(o.attributeOldValue,n,o),r=e(o.attributeNewValue,n,o);if(!a&&!r)return;n.consumable.consume(o.item,t.name);const i=n.writer,l=i.document.selection;if(o.item instanceof nu||o.item instanceof mu)i.wrap(l.getFirstRange(),r);else{let e=n.mapper.toViewRange(o.range);null!==o.attributeOldValue&&a&&(e=i.unwrap(e,a)),null!==o.attributeNewValue&&r&&i.wrap(e,r)}}}(n),{priority:e.converterPriority||"normal"})}}(e))}attributeToAttribute(e){return this.add(function(e){e=vu(e);let t=e.model;"string"==typeof t&&(t={key:t});let o="attribute:"+t.key;if(t.name&&(o+=":"+t.name),t.values)for(const a of t.values)e.view[a]=xu(e.view[a]);else e.view=xu(e.view);const n=ju(e);return t=>{var a;t.on(o,(a=n,(e,t,o)=>{if(!o.consumable.test(t.item,e.name))return;const n=a(t.attributeOldValue,o,t),r=a(t.attributeNewValue,o,t);if(!n&&!r)return;o.consumable.consume(t.item,e.name);const i=o.mapper.toViewElement(t.item),l=o.writer;if(!i)throw new x("conversion-attribute-to-attribute-on-text",o.dispatcher,t);if(null!==t.attributeOldValue&&n)if("class"==n.key){const e=ur(n.value);for(const t of e)l.removeClass(t,i)}else if("style"==n.key){const e=Object.keys(n.value);for(const t of e)l.removeStyle(t,i)}else l.removeAttribute(n.key,i);if(null!==t.attributeNewValue&&r)if("class"==r.key){const e=ur(r.value);for(const t of e)l.addClass(t,i)}else if("style"==r.key){const e=Object.keys(r.value);for(const t of e)l.setStyle(t,r.value[t],i)}else l.setAttribute(r.key,r.value,i)}),{priority:e.converterPriority||"normal"})}}(e))}markerToElement(e){return this.add(function(e){const t=Ou(e.view,"ui");return o=>{var n;o.on("addMarker:"+e.model,(n=t,(e,t,o)=>{t.isOpening=!0;const a=n(t,o);t.isOpening=!1;const r=n(t,o);if(!a||!r)return;const i=t.markerRange;if(i.isCollapsed&&!o.consumable.consume(i,e.name))return;for(const n of i)if(!o.consumable.consume(n.item,e.name))return;const l=o.mapper,s=o.writer;s.insert(l.toViewPosition(i.start),a),o.mapper.bindElementToMarker(a,t.markerName),i.isCollapsed||(s.insert(l.toViewPosition(i.end),r),o.mapper.bindElementToMarker(r,t.markerName)),e.stop()}),{priority:e.converterPriority||"normal"}),o.on("removeMarker:"+e.model,(e,t,o)=>{const n=o.mapper.markerNameToElements(t.markerName);if(n){for(const e of n)o.mapper.unbindElementFromMarkerName(e,t.markerName),o.writer.clear(o.writer.createRangeOn(e),e);o.writer.clearClonedElementsGroup(t.markerName),e.stop()}},{priority:e.converterPriority||"normal"})}}(e))}markerToHighlight(e){return this.add(function(e){return t=>{var o;t.on("addMarker:"+e.model,(o=e.view,(e,t,n)=>{if(!t.item)return;if(!(t.item instanceof nu||t.item instanceof mu||t.item.is("$textProxy")))return;const a=_u(o,t,n);if(!a)return;if(!n.consumable.consume(t.item,e.name))return;const r=n.writer,i=ku(r,a),l=r.document.selection;if(t.item instanceof nu||t.item instanceof mu)r.wrap(l.getFirstRange(),i);else{const e=n.mapper.toViewRange(t.range),o=r.wrap(e,i);for(const a of o.getItems())if(a.is("attributeElement")&&a.isSimilar(i)){n.mapper.bindElementToMarker(a,t.markerName);break}}}),{priority:e.converterPriority||"normal"}),t.on("addMarker:"+e.model,function(e){return(t,o,n)=>{if(!o.item)return;if(!(o.item instanceof Rd))return;const a=_u(e,o,n);if(!a)return;if(!n.consumable.test(o.item,t.name))return;const r=n.mapper.toViewElement(o.item);if(r&&r.getCustomProperty("addHighlight")){n.consumable.consume(o.item,t.name);for(const e of Qd._createIn(o.item))n.consumable.consume(e.item,t.name);r.getCustomProperty("addHighlight")(r,a,n.writer),n.mapper.bindElementToMarker(r,o.markerName)}}}(e.view),{priority:e.converterPriority||"normal"}),t.on("removeMarker:"+e.model,function(e){return(t,o,n)=>{if(o.markerRange.isCollapsed)return;const a=_u(e,o,n);if(!a)return;const r=ku(n.writer,a),i=n.mapper.markerNameToElements(o.markerName);if(i){for(const e of i)n.mapper.unbindElementFromMarkerName(e,o.markerName),e.is("attributeElement")?n.writer.unwrap(n.writer.createRangeOn(e),r):e.getCustomProperty("removeHighlight")(e,a.id,n.writer);n.writer.clearClonedElementsGroup(o.markerName),t.stop()}}}(e.view),{priority:e.converterPriority||"normal"})}}(e))}markerToData(e){return this.add(function(e){e=vu(e);const t=e.model;let o=e.view;return o||(o=o=>({group:t,name:o.substr(e.model.length+1)})),n=>{var a;n.on("addMarker:"+t,(a=o,(e,t,o)=>{const n=a(t.markerName,o);if(!n)return;const r=t.markerRange;o.consumable.consume(r,e.name)&&(Cu(r,!1,o,t,n),Cu(r,!0,o,t,n),e.stop())}),{priority:e.converterPriority||"normal"}),n.on("removeMarker:"+t,function(e){return(t,o,n)=>{const a=e(o.markerName,n);if(!a)return;const r=n.mapper.markerNameToElements(o.markerName);if(r){for(const e of r)n.mapper.unbindElementFromMarkerName(e,o.markerName),e.is("containerElement")?(i(`data-${a.group}-start-before`,e),i(`data-${a.group}-start-after`,e),i(`data-${a.group}-end-before`,e),i(`data-${a.group}-end-after`,e)):n.writer.clear(n.writer.createRangeOn(e),e);n.writer.clearClonedElementsGroup(o.markerName),t.stop()}function i(e,t){if(t.hasAttribute(e)){const o=new Set(t.getAttribute(e).split(","));o.delete(a.name),0==o.size?n.writer.removeAttribute(e,t):n.writer.setAttribute(e,Array.from(o).join(","),t)}}}}(o),{priority:e.converterPriority||"normal"})}}(e))}}function ku(e,t){const o=e.createAttributeElement("span",t.attributes);return t.classes&&o._addClass(t.classes),"number"==typeof t.priority&&(o._priority=t.priority),o._id=t.id,o}function Cu(e,t,o,n,a){const r=t?e.start:e.end,i=r.nodeAfter&&r.nodeAfter.is("element")?r.nodeAfter:null,l=r.nodeBefore&&r.nodeBefore.is("element")?r.nodeBefore:null;if(i||l){let e,r;t&&i||!t&&!l?(e=i,r=!0):(e=l,r=!1);const s=o.mapper.toViewElement(e);if(s)return void function(e,t,o,n,a,r){const i=`data-${r.group}-${t?"start":"end"}-${o?"before":"after"}`,l=e.hasAttribute(i)?e.getAttribute(i).split(","):[];l.unshift(r.name),n.writer.setAttribute(i,l.join(","),e),n.mapper.bindElementToMarker(e,a.markerName)}(s,t,r,o,n,a)}!function(e,t,o,n,a){const r=`${a.group}-${t?"start":"end"}`,i=a.name?{name:a.name}:null,l=o.writer.createUIElement(r,i);o.writer.insert(e,l),o.mapper.bindElementToMarker(l,n.markerName)}(o.mapper.toViewPosition(r),t,o,n,a)}function yu(e){return"string"==typeof e&&(e={name:e}),e.attributes?Array.isArray(e.attributes)||(e.attributes=[e.attributes]):e.attributes=[],e.children=!!e.children,e}function Ou(e,t){return"function"==typeof e?e:(o,n)=>function(e,t,o){let n;"string"==typeof e&&(e={name:e});const a=t.writer,r=Object.assign({},e.attributes);if("container"==o)n=a.createContainerElement(e.name,r);else if("attribute"==o){const t={priority:e.priority||xs.DEFAULT_PRIORITY};n=a.createAttributeElement(e.name,r,t)}else n=a.createUIElement(e.name,r);if(e.styles){const t=Object.keys(e.styles);for(const o of t)a.setStyle(o,e.styles[o],n)}if(e.classes){const t=e.classes;if("string"==typeof t)a.addClass(t,n);else for(const e of t)a.addClass(e,n)}return n}(e,n,t)}function ju(e){return e.model.values?(t,o,n)=>{const a=e.view[t];return a?a(t,o,n):null}:e.view}function xu(e){return"string"==typeof e?t=>({key:e,value:t}):"object"==typeof e?e.value?()=>e:t=>({key:e.key,value:t}):e}function _u(e,t,o){const n="function"==typeof e?e(t,o):e;return n?(n.priority||(n.priority=10),n.id||(n.id=t.markerName),n):null}function Vu(e){const t=function(e){return(t,o)=>{if(!t.is("element",e.name))return!1;if("attribute"==o.type){if(e.attributes.includes(o.attributeKey))return!0}else if(e.children)return!0;return!1}}(e);return(e,o)=>{const n=[];o.reconvertedElements||(o.reconvertedElements=new Set);for(const a of o.changes){const e="attribute"==a.type?a.range.start.nodeAfter:a.position.parent;if(e&&t(e,a)){if(!o.reconvertedElements.has(e)){o.reconvertedElements.add(e);const t=Ud._createBefore(e);n.push({type:"remove",name:e.name,position:t,length:1},{type:"reinsert",name:e.name,position:t,length:1})}}else n.push(a)}o.changes=n}}function Au(e){return(t,o,n={})=>{const a=["insert"];for(const r of e.attributes)t.hasAttribute(r)&&a.push("attribute:"+r);return!!a.every(e=>o.test(t,e))&&(n.preflight||a.forEach(e=>o.consume(t,e)),!0)}}function Nu(e,t,o,n){for(const a of t)Du(e.root,a,o,n)||o.convertItem(a)}function Du(e,t,o,n){const{writer:a,mapper:r}=o;if(!n.reconversion)return!1;const i=r.toViewElement(t);return!(!i||i.root==e)&&!!o.canReuseView(i)&&(a.move(a.createRangeOn(i),r.toViewPosition(Ud._createBefore(t))),!0)}function Eu(e,t,{preflight:o}={}){return o?t.test(e,"insert"):t.consume(e,"insert")}function Tu(e){const{schema:t,document:o}=e.model;for(const n of o.getRootNames()){const a=o.getRoot(n);if(a.isEmpty&&!t.checkChild(a,"$text")&&t.checkChild(a,"paragraph"))return e.insertElement("paragraph",a),!0}return!1}function Su(e,t,o){const n=o.createContext(e);return!!o.checkChild(n,"paragraph")&&!!o.checkChild(n.push("paragraph"),t)}function Bu(e,t){const o=t.createElement("paragraph");return t.insert(o,e),t.createPositionAt(o,0)}class Iu extends bu{elementToElement(e){return this.add(zu(e))}elementToAttribute(e){return this.add(function(e){e=vu(e),Lu(e);const t=Pu(e,!1),o=Fu(e.view),n=o?"element:"+o:"element";return o=>{o.on(n,t,{priority:e.converterPriority||"low"})}}(e))}attributeToAttribute(e){return this.add(function(e){e=vu(e);let t=null;("string"==typeof e.view||e.view.key)&&(t=function(e){"string"==typeof e.view&&(e.view={key:e.view});const t=e.view.key;let o;return o="class"==t||"style"==t?{["class"==t?"classes":"styles"]:e.view.value}:{attributes:{[t]:void 0===e.view.value?/[\s\S]*/:e.view.value}},e.view.name&&(o.name=e.view.name),e.view=o,t}(e)),Lu(e,t);const o=Pu(e,!0);return t=>{t.on("element",o,{priority:e.converterPriority||"low"})}}(e))}elementToMarker(e){return this.add(function(e){const t=function(e){return(t,o)=>{const n="string"==typeof e?e:e(t,o);return o.writer.createElement("$marker",{"data-name":n})}}(e.model);return zu({...e,model:t})}(e))}dataToMarker(e){return this.add(function(e){e=vu(e),e.model||(e.model=t=>t?e.view+":"+t:e.view);const t={view:e.view,model:e.model},o=Mu(Ru(t,"start")),n=Mu(Ru(t,"end"));return a=>{a.on(`element:${e.view}-start`,o,{priority:e.converterPriority||"normal"}),a.on(`element:${e.view}-end`,n,{priority:e.converterPriority||"normal"});const r=y.get("low"),i=y.get("highest"),l=y.get(e.converterPriority)/i;a.on("element",function(e){return(t,o,n)=>{const a="data-"+e.view;function r(t,a){for(const r of a){const a=e.model(r,n),i=n.writer.createElement("$marker",{"data-name":a});n.writer.insert(i,t),o.modelCursor.isEqual(t)?o.modelCursor=o.modelCursor.getShiftedBy(1):o.modelCursor=o.modelCursor._getTransformedByInsertion(t,1),o.modelRange=o.modelRange._getTransformedByInsertion(t,1)[0]}}(n.consumable.test(o.viewItem,{attributes:a+"-end-after"})||n.consumable.test(o.viewItem,{attributes:a+"-start-after"})||n.consumable.test(o.viewItem,{attributes:a+"-end-before"})||n.consumable.test(o.viewItem,{attributes:a+"-start-before"}))&&(o.modelRange||Object.assign(o,n.convertChildren(o.viewItem,o.modelCursor)),n.consumable.consume(o.viewItem,{attributes:a+"-end-after"})&&r(o.modelRange.end,o.viewItem.getAttribute(a+"-end-after").split(",")),n.consumable.consume(o.viewItem,{attributes:a+"-start-after"})&&r(o.modelRange.end,o.viewItem.getAttribute(a+"-start-after").split(",")),n.consumable.consume(o.viewItem,{attributes:a+"-end-before"})&&r(o.modelRange.start,o.viewItem.getAttribute(a+"-end-before").split(",")),n.consumable.consume(o.viewItem,{attributes:a+"-start-before"})&&r(o.modelRange.start,o.viewItem.getAttribute(a+"-start-before").split(",")))}}(t),{priority:r+l})}}(e))}}function zu(e){const t=Mu(e=vu(e)),o=Fu(e.view),n=o?"element:"+o:"element";return o=>{o.on(n,t,{priority:e.converterPriority||"normal"})}}function Fu(e){return"string"==typeof e?e:"object"==typeof e&&"string"==typeof e.name?e.name:null}function Mu(e){const t=new Zi(e.view);return(o,n,a)=>{const r=t.match(n.viewItem);if(!r)return;const i=r.match;if(i.name=!0,!a.consumable.test(n.viewItem,i))return;const l=function(e,t,o){return e instanceof Function?e(t,o):o.writer.createElement(e)}(e.model,n.viewItem,a);l&&a.safeInsert(l,n.modelCursor)&&(a.consumable.consume(n.viewItem,i),a.convertChildren(n.viewItem,l),a.updateConversionResult(l,n))}}function Lu(e,t=null){const o=null===t||(e=>e.getAttribute(t)),n="object"!=typeof e.model?e.model:e.model.key,a="object"!=typeof e.model||void 0===e.model.value?o:e.model.value;e.model={key:n,value:a}}function Pu(e,t){const o=new Zi(e.view);return(n,a,r)=>{if(!a.modelRange&&t)return;const i=o.match(a.viewItem);if(!i)return;if(function(e,t){const o="function"==typeof e?e(t):e;return!("object"==typeof o&&!Fu(o))&&(!o.classes&&!o.attributes&&!o.styles)}(e.view,a.viewItem)?i.match.name=!0:delete i.match.name,!r.consumable.test(a.viewItem,i.match))return;const l=e.model.key,s="function"==typeof e.model.value?e.model.value(a.viewItem,r):e.model.value;if(null===s)return;a.modelRange||Object.assign(a,r.convertChildren(a.viewItem,a.modelCursor));const c=function(e,t,o,n){let a=!1;for(const r of Array.from(e.getItems({shallow:o})))n.schema.checkAttribute(r,t.key)&&(a=!0,r.hasAttribute(t.key)||n.writer.setAttribute(t.key,t.value,r));return a}(a.modelRange,{key:l,value:s},t,r);c&&(r.consumable.test(a.viewItem,{name:!0})&&(i.match.name=!0),r.consumable.consume(a.viewItem,i.match))}}function Ru(e,t){return{view:`${e.view}-${t}`,model:(t,o)=>{const n=t.getAttribute("name"),a=e.model(n,o);return o.writer.createElement("$marker",{"data-name":a})}}}class qu extends(J()){constructor(e,t){super(),this.model=e,this.view=new Id(t),this.mapper=new Jd,this.downcastDispatcher=new eu({mapper:this.mapper,schema:e.schema});const o=this.model.document,n=o.selection,a=this.model.markers;this.listenTo(this.model,"_beforeChanges",()=>{this.view._disableRendering(!0)},{priority:"highest"}),this.listenTo(this.model,"_afterChanges",()=>{this.view._disableRendering(!1)},{priority:"lowest"}),this.listenTo(o,"change",()=>{this.view.change(e=>{this.downcastDispatcher.convertChanges(o.differ,a,e),this.downcastDispatcher.convertSelection(n,a,e)})},{priority:"low"}),this.listenTo(this.view.document,"selectionChange",function(e,t){return(o,n)=>{const a=n.newSelection,r=[];for(const e of a.getRanges())r.push(t.toModelRange(e));const i=e.createSelection(r,{backward:a.isBackward});i.isEqual(e.document.selection)||e.change(e=>{e.setSelection(i)})}}(this.model,this.mapper)),this.downcastDispatcher.on("insert:$text",(e,t,o)=>{if(!o.consumable.consume(t.item,e.name))return;const n=o.writer,a=o.mapper.toViewPosition(t.range.start),r=n.createText(t.item.data);n.insert(a,r)},{priority:"lowest"}),this.downcastDispatcher.on("insert",(e,t,o)=>{o.convertAttributes(t.item),t.reconversion||!t.item.is("element")||t.item.isEmpty||o.convertChildren(t.item)},{priority:"lowest"}),this.downcastDispatcher.on("remove",(e,t,o)=>{const n=o.mapper.toViewPosition(t.position),a=t.position.getShiftedBy(t.length),r=o.mapper.toViewPosition(a,{isPhantom:!0}),i=o.writer.createRange(n,r),l=o.writer.remove(i.getTrimmed());for(const s of o.writer.createRangeIn(l).getItems())o.mapper.unbindViewElement(s,{defer:!0})},{priority:"low"}),this.downcastDispatcher.on("selection",(e,t,o)=>{const n=o.writer,a=n.document.selection;for(const r of a.getRanges())r.isCollapsed&&r.end.parent.isAttached()&&o.writer.mergeAttributes(r.start);n.setSelection(null)},{priority:"high"}),this.downcastDispatcher.on("selection",(e,t,o)=>{const n=t.selection;if(n.isCollapsed)return;if(!o.consumable.consume(n,"selection"))return;const a=[];for(const r of n.getRanges())a.push(o.mapper.toViewRange(r));o.writer.setSelection(a,{backward:n.isBackward})},{priority:"low"}),this.downcastDispatcher.on("selection",(e,t,o)=>{const n=t.selection;if(!n.isCollapsed)return;if(!o.consumable.consume(n,"selection"))return;const a=o.writer,r=n.getFirstPosition(),i=o.mapper.toViewPosition(r),l=a.breakAttributes(i);a.setSelection(l)},{priority:"low"}),this.view.document.roots.bindTo(this.model.document.roots).using(e=>{if("$graveyard"==e.rootName)return null;const t=new ds(this.view.document,e.name);return t.rootName=e.rootName,this.mapper.bindElements(e,t),t})}destroy(){this.view.destroy(),this.stopListening()}reconvertMarker(e){const t="string"==typeof e?e:e.name,o=this.model.markers.get(t);if(!o)throw new x("editingcontroller-reconvertmarker-marker-not-exist",this,{markerName:t});this.model.change(()=>{this.model.markers._refresh(o)})}reconvertItem(e){this.model.change(()=>{this.model.document.differ._refreshItem(e)})}}class $u{constructor(){this._consumables=new Map}add(e,t){let o;e.is("$text")||e.is("documentFragment")?this._consumables.set(e,!0):(this._consumables.has(e)?o=this._consumables.get(e):(o=new Hu(e),this._consumables.set(e,o)),o.add(t))}test(e,t){const o=this._consumables.get(e);return void 0===o?null:e.is("$text")||e.is("documentFragment")?o:o.test(t)}consume(e,t){return!!this.test(e,t)&&(e.is("$text")||e.is("documentFragment")?this._consumables.set(e,!1):this._consumables.get(e).consume(t),!0)}revert(e,t){const o=this._consumables.get(e);void 0!==o&&(e.is("$text")||e.is("documentFragment")?this._consumables.set(e,!0):o.revert(t))}static consumablesFromElement(e){const t={element:e,name:!0,attributes:[],classes:[],styles:[]},o=e.getAttributeKeys();for(const r of o)"style"!=r&&"class"!=r&&t.attributes.push(r);const n=e.getClassNames();for(const r of n)t.classes.push(r);const a=e.getStyleNames();for(const r of a)t.styles.push(r);return t}static createFrom(e,t){if(t||(t=new $u),e.is("$text"))return t.add(e),t;e.is("element")&&t.add(e,$u.consumablesFromElement(e)),e.is("documentFragment")&&t.add(e);for(const o of e.getChildren())t=$u.createFrom(o,t);return t}}const Uu=["attributes","classes","styles"];class Hu{constructor(e){this.element=e,this._canConsumeName=null,this._consumables={attributes:new Map,styles:new Map,classes:new Map}}add(e){e.name&&(this._canConsumeName=!0);for(const t of Uu)t in e&&this._add(t,e[t])}test(e){if(e.name&&!this._canConsumeName)return this._canConsumeName;for(const t of Uu)if(t in e){const o=this._test(t,e[t]);if(!0!==o)return o}return!0}consume(e){e.name&&(this._canConsumeName=!1);for(const t of Uu)t in e&&this._consume(t,e[t])}revert(e){e.name&&(this._canConsumeName=!0);for(const t of Uu)t in e&&this._revert(t,e[t])}_add(e,t){const o=ye(t)?t:[t],n=this._consumables[e];for(const a of o){if("attributes"===e&&("class"===a||"style"===a))throw new x("viewconsumable-invalid-attribute",this);if(n.set(a,!0),"styles"===e)for(const e of this.element.document.stylesProcessor.getRelatedStyles(a))n.set(e,!0)}}_test(e,t){const o=ye(t)?t:[t],n=this._consumables[e];for(const a of o)if("attributes"!==e||"class"!==a&&"style"!==a){const e=n.get(a);if(void 0===e)return null;if(!e)return!1}else{const e="class"==a?"classes":"styles",t=this._test(e,[...this._consumables[e].keys()]);if(!0!==t)return t}return!0}_consume(e,t){const o=ye(t)?t:[t],n=this._consumables[e];for(const a of o)if("attributes"!==e||"class"!==a&&"style"!==a){if(n.set(a,!1),"styles"==e)for(const e of this.element.document.stylesProcessor.getRelatedStyles(a))n.set(e,!1)}else{const e="class"==a?"classes":"styles";this._consume(e,[...this._consumables[e].keys()])}}_revert(e,t){const o=ye(t)?t:[t],n=this._consumables[e];for(const a of o)if("attributes"!==e||"class"!==a&&"style"!==a)!1===n.get(a)&&n.set(a,!0);else{const e="class"==a?"classes":"styles";this._revert(e,[...this._consumables[e].keys()])}}}class Wu extends(J()){constructor(){super(),this._sourceDefinitions={},this._attributeProperties={},this.decorate("checkChild"),this.decorate("checkAttribute"),this.on("checkAttribute",(e,t)=>{t[0]=new Gu(t[0])},{priority:"highest"}),this.on("checkChild",(e,t)=>{t[0]=new Gu(t[0]),t[1]=this.getDefinition(t[1])},{priority:"highest"})}register(e,t){if(this._sourceDefinitions[e])throw new x("schema-cannot-register-item-twice",this,{itemName:e});this._sourceDefinitions[e]=[Object.assign({},t)],this._clearCache()}extend(e,t){if(!this._sourceDefinitions[e])throw new x("schema-cannot-extend-missing-item",this,{itemName:e});this._sourceDefinitions[e].push(Object.assign({},t)),this._clearCache()}getDefinitions(){return this._compiledDefinitions||this._compile(),this._compiledDefinitions}getDefinition(e){let t;return t="string"==typeof e?e:"is"in e&&(e.is("$text")||e.is("$textProxy"))?"$text":e.name,this.getDefinitions()[t]}isRegistered(e){return!!this.getDefinition(e)}isBlock(e){const t=this.getDefinition(e);return!(!t||!t.isBlock)}isLimit(e){const t=this.getDefinition(e);return!!t&&!(!t.isLimit&&!t.isObject)}isObject(e){const t=this.getDefinition(e);return!!t&&!!(t.isObject||t.isLimit&&t.isSelectable&&t.isContent)}isInline(e){const t=this.getDefinition(e);return!(!t||!t.isInline)}isSelectable(e){const t=this.getDefinition(e);return!!t&&!(!t.isSelectable&&!t.isObject)}isContent(e){const t=this.getDefinition(e);return!!t&&!(!t.isContent&&!t.isObject)}checkChild(e,t){return!!t&&this._checkContextMatch(t,e)}checkAttribute(e,t){const o=this.getDefinition(e.last);return!!o&&o.allowAttributes.includes(t)}checkMerge(e,t){if(e instanceof Ud){const t=e.nodeBefore,o=e.nodeAfter;if(!(t instanceof Rd))throw new x("schema-check-merge-no-element-before",this);if(!(o instanceof Rd))throw new x("schema-check-merge-no-element-after",this);return this.checkMerge(t,o)}for(const o of t.getChildren())if(!this.checkChild(e,o))return!1;return!0}addChildCheck(e){this.on("checkChild",(t,[o,n])=>{if(!n)return;const a=e(o,n);"boolean"==typeof a&&(t.stop(),t.return=a)},{priority:"high"})}addAttributeCheck(e){this.on("checkAttribute",(t,[o,n])=>{const a=e(o,n);"boolean"==typeof a&&(t.stop(),t.return=a)},{priority:"high"})}setAttributeProperties(e,t){this._attributeProperties[e]=Object.assign(this.getAttributeProperties(e),t)}getAttributeProperties(e){return this._attributeProperties[e]||{}}getLimitElement(e){let t;for(t=e instanceof Ud?e.parent:(e instanceof Qd?[e]:Array.from(e.getRanges())).reduce((e,t)=>{const o=t.getCommonAncestor();return e?e.getCommonAncestor(o,{includeSelf:!0}):o},null);!this.isLimit(t)&&t.parent;)t=t.parent;return t}checkAttributeInSelection(e,t){if(e.isCollapsed){const o=[...e.getFirstPosition().getAncestors(),new Ld("",e.getAttributes())];return this.checkAttribute(o,t)}{const o=e.getRanges();for(const e of o)for(const o of e)if(this.checkAttribute(o.item,t))return!0}return!1}*getValidRanges(e,t){e=function*(e){for(const t of e)yield*t.getMinimalFlatRanges()}(e);for(const o of e)yield*this._getValidRangesForRange(o,t)}getNearestSelectionRange(e,t="both"){if(this.checkChild(e,"$text"))return new Qd(e);let o,n;const a=e.getAncestors().reverse().find(e=>this.isLimit(e))||e.root;"both"!=t&&"backward"!=t||(o=new qd({boundaries:Qd._createIn(a),startPosition:e,direction:"backward"})),"both"!=t&&"forward"!=t||(n=new qd({boundaries:Qd._createIn(a),startPosition:e}));for(const r of function*(e,t){let o=!1;for(;!o;){if(o=!0,e){const t=e.next();t.done||(o=!1,yield{walker:e,value:t.value})}if(t){const e=t.next();e.done||(o=!1,yield{walker:t,value:e.value})}}}(o,n)){const e=r.walker==o?"elementEnd":"elementStart",t=r.value;if(t.type==e&&this.isObject(t.item))return Qd._createOn(t.item);if(this.checkChild(t.nextPosition,"$text"))return new Qd(t.nextPosition)}return null}findAllowedParent(e,t){let o=e.parent;for(;o;){if(this.checkChild(o,t))return o;if(this.isLimit(o))return null;o=o.parent}return null}setAllowedAttributes(e,t,o){const n=o.model;for(const[a,r]of Object.entries(t))n.schema.checkAttribute(e,a)&&o.setAttribute(a,r,e)}removeDisallowedAttributes(e,t){for(const o of e)if(o.is("$text"))im(this,o,t);else{const e=Qd._createIn(o).getPositions();for(const o of e)im(this,o.nodeBefore||o.parent,t)}}getAttributesWithProperty(e,t,o){const n={};for(const[a,r]of e.getAttributes()){const e=this.getAttributeProperties(a);void 0!==e[t]&&(void 0!==o&&o!==e[t]||(n[a]=r))}return n}createContext(e){return new Gu(e)}_clearCache(){this._compiledDefinitions=null}_compile(){const e={},t=this._sourceDefinitions,o=Object.keys(t);for(const n of o)e[n]=Ku(t[n],n);for(const n of o)Yu(e,n);for(const n of o)Qu(e,n);for(const n of o)Ju(e,n);for(const n of o)Zu(e,n),Xu(e,n);for(const n of o)em(e,n),tm(e,n),om(e,n);this._compiledDefinitions=e}_checkContextMatch(e,t,o=t.length-1){const n=t.getItem(o);if(e.allowIn.includes(n.name)){if(0==o)return!0;{const e=this.getDefinition(n);return this._checkContextMatch(e,t,o-1)}}return!1}*_getValidRangesForRange(e,t){let o=e.start,n=e.start;for(const a of e.getItems({shallow:!0}))a.is("element")&&(yield*this._getValidRangesForRange(Qd._createIn(a),t)),this.checkAttribute(a,t)||(o.isEqual(n)||(yield new Qd(o,n)),o=Ud._createAfter(a)),n=Ud._createAfter(a);o.isEqual(n)||(yield new Qd(o,n))}}class Gu{constructor(e){if(e instanceof Gu)return e;let t;t="string"==typeof e?[e]:Array.isArray(e)?e:e.getAncestors({includeSelf:!0}),this._items=t.map(rm)}get length(){return this._items.length}get last(){return this._items[this._items.length-1]}[Symbol.iterator](){return this._items[Symbol.iterator]()}push(e){const t=new Gu([e]);return t._items=[...this._items,...t._items],t}getItem(e){return this._items[e]}*getNames(){yield*this._items.map(e=>e.name)}endsWith(e){return Array.from(this.getNames()).join(" ").endsWith(e)}startsWith(e){return Array.from(this.getNames()).join(" ").startsWith(e)}}function Ku(e,t){const o={name:t,allowIn:[],allowContentOf:[],allowWhere:[],allowAttributes:[],allowAttributesOf:[],allowChildren:[],inheritTypesFrom:[]};return function(e,t){for(const o of e){const e=Object.keys(o).filter(e=>e.startsWith("is"));for(const n of e)t[n]=!!o[n]}}(e,o),nm(e,o,"allowIn"),nm(e,o,"allowContentOf"),nm(e,o,"allowWhere"),nm(e,o,"allowAttributes"),nm(e,o,"allowAttributesOf"),nm(e,o,"allowChildren"),nm(e,o,"inheritTypesFrom"),function(e,t){for(const o of e){const e=o.inheritAllFrom;e&&(t.allowContentOf.push(e),t.allowWhere.push(e),t.allowAttributesOf.push(e),t.inheritTypesFrom.push(e))}}(e,o),o}function Yu(e,t){const o=e[t];for(const n of o.allowChildren){const o=e[n];o&&o.allowIn.push(t)}o.allowChildren.length=0}function Qu(e,t){for(const o of e[t].allowContentOf)e[o]&&am(e,o).forEach(e=>{e.allowIn.push(t)});delete e[t].allowContentOf}function Ju(e,t){for(const o of e[t].allowWhere){const n=e[o];if(n){const o=n.allowIn;e[t].allowIn.push(...o)}}delete e[t].allowWhere}function Zu(e,t){for(const o of e[t].allowAttributesOf){const n=e[o];if(n){const o=n.allowAttributes;e[t].allowAttributes.push(...o)}}delete e[t].allowAttributesOf}function Xu(e,t){const o=e[t];for(const n of o.inheritTypesFrom){const t=e[n];if(t){const e=Object.keys(t).filter(e=>e.startsWith("is"));for(const n of e)n in o||(o[n]=t[n])}}delete o.inheritTypesFrom}function em(e,t){const o=e[t],n=o.allowIn.filter(t=>e[t]);o.allowIn=Array.from(new Set(n))}function tm(e,t){const o=e[t];for(const n of o.allowIn)e[n].allowChildren.push(t)}function om(e,t){const o=e[t];o.allowAttributes=Array.from(new Set(o.allowAttributes))}function nm(e,t,o){for(const n of e){const e=n[o];"string"==typeof e?t[o].push(e):Array.isArray(e)&&t[o].push(...e)}}function am(e,t){const o=e[t];return(n=e,Object.keys(n).map(e=>n[e])).filter(e=>e.allowIn.includes(o.name));var n}function rm(e){return"string"==typeof e||e.is("documentFragment")?{name:"string"==typeof e?e:"$documentFragment",*getAttributeKeys(){},getAttribute(){}}:{name:e.is("element")?e.name:"$text",*getAttributeKeys(){yield*e.getAttributeKeys()},getAttribute:t=>e.getAttribute(t)}}function im(e,t,o){for(const n of t.getAttributeKeys())e.checkAttribute(t,n)||o.removeAttribute(n,t)}class lm extends(z()){constructor(e){super(),this._splitParts=new Map,this._cursorParents=new Map,this._modelCursor=null,this._emptyElementsToKeep=new Set,this.conversionApi={...e,consumable:null,writer:null,store:null,convertItem:(e,t)=>this._convertItem(e,t),convertChildren:(e,t)=>this._convertChildren(e,t),safeInsert:(e,t)=>this._safeInsert(e,t),updateConversionResult:(e,t)=>this._updateConversionResult(e,t),splitToAllowedParent:(e,t)=>this._splitToAllowedParent(e,t),getSplitParts:e=>this._getSplitParts(e),keepEmptyElement:e=>this._keepEmptyElement(e)}}convert(e,t,o=["$root"]){this.fire("viewCleanup",e),this._modelCursor=function(e,t){let o;for(const n of new Gu(e)){const e={};for(const t of n.getAttributeKeys())e[t]=n.getAttribute(t);const a=t.createElement(n.name,e);o&&t.insert(a,o),o=Ud._createAt(a,0)}return o}(o,t),this.conversionApi.writer=t,this.conversionApi.consumable=$u.createFrom(e),this.conversionApi.store={};const{modelRange:n}=this._convertItem(e,this._modelCursor),a=t.createDocumentFragment();if(n){this._removeEmptyElements();for(const e of Array.from(this._modelCursor.parent.getChildren()))t.append(e,a);a.markers=function(e,t){const o=new Set,n=new Map,a=Qd._createIn(e).getItems();for(const r of a)r.is("element","$marker")&&o.add(r);for(const r of o){const e=r.getAttribute("data-name"),o=t.createPositionBefore(r);n.has(e)?n.get(e).end=o.clone():n.set(e,new Qd(o.clone())),t.remove(r)}return n}(a,t)}return this._modelCursor=null,this._splitParts.clear(),this._cursorParents.clear(),this._emptyElementsToKeep.clear(),this.conversionApi.writer=null,this.conversionApi.store=null,a}_convertItem(e,t){const o={viewItem:e,modelCursor:t,modelRange:null};if(e.is("element")?this.fire("element:"+e.name,o,this.conversionApi):e.is("$text")?this.fire("text",o,this.conversionApi):this.fire("documentFragment",o,this.conversionApi),o.modelRange&&!(o.modelRange instanceof Qd))throw new x("view-conversion-dispatcher-incorrect-result",this);return{modelRange:o.modelRange,modelCursor:o.modelCursor}}_convertChildren(e,t){let o=t.is("position")?t:Ud._createAt(t,0);const n=new Qd(o);for(const a of Array.from(e.getChildren())){const e=this._convertItem(a,o);e.modelRange instanceof Qd&&(n.end=e.modelRange.end,o=e.modelCursor)}return{modelRange:n,modelCursor:o}}_safeInsert(e,t){const o=this._splitToAllowedParent(e,t);return!!o&&(this.conversionApi.writer.insert(e,o.position),!0)}_updateConversionResult(e,t){const o=this._getSplitParts(e),n=this.conversionApi.writer;t.modelRange||(t.modelRange=n.createRange(n.createPositionBefore(e),n.createPositionAfter(o[o.length-1])));const a=this._cursorParents.get(e);t.modelCursor=a?n.createPositionAt(a,0):t.modelRange.end}_splitToAllowedParent(e,t){const{schema:o,writer:n}=this.conversionApi;let a=o.findAllowedParent(t,e);if(a){if(a===t.parent)return{position:t};this._modelCursor.parent.getAncestors().includes(a)&&(a=null)}if(!a)return Su(t,e,o)?{position:Bu(t,n)}:null;const r=this.conversionApi.writer.split(t,a),i=[];for(const s of r.range.getWalker())if("elementEnd"==s.type)i.push(s.item);else{const e=i.pop(),t=s.item;this._registerSplitPair(e,t)}const l=r.range.end.parent;return this._cursorParents.set(e,l),{position:r.position,cursorParent:l}}_registerSplitPair(e,t){this._splitParts.has(e)||this._splitParts.set(e,[e]);const o=this._splitParts.get(e);this._splitParts.set(t,o),o.push(t)}_getSplitParts(e){let t;return t=this._splitParts.has(e)?this._splitParts.get(e):[e],t}_keepEmptyElement(e){this._emptyElementsToKeep.add(e)}_removeEmptyElements(){let e=!1;for(const t of this._splitParts.keys())t.isEmpty&&!this._emptyElementsToKeep.has(t)&&(this.conversionApi.writer.remove(t),this._splitParts.delete(t),e=!0);e&&this._removeEmptyElements()}}class sm{getHtml(e){const t=document.implementation.createHTMLDocument("").createElement("div");return t.appendChild(e),t.innerHTML}}class cm{constructor(e){this.skipComments=!0,this.domParser=new DOMParser,this.domConverter=new bc(e,{renderingMode:"data"}),this.htmlWriter=new sm}toData(e){const t=this.domConverter.viewToDom(e);return this.htmlWriter.getHtml(t)}toView(e){const t=this._toDom(e);return this.domConverter.domToView(t,{skipComments:this.skipComments})}registerRawContentMatcher(e){this.domConverter.registerRawContentMatcher(e)}useFillerType(e){this.domConverter.blockFillerMode="marked"==e?"markedNbsp":"nbsp"}_toDom(e){e.match(/<(?:html|body|head|meta)(?:\s[^>]*)?>/i)||(e=`<body>${e}</body>`);const t=this.domParser.parseFromString(e,"text/html"),o=t.createDocumentFragment(),n=t.body.childNodes;for(;n.length>0;)o.appendChild(n[0]);return o}}class dm extends(z()){constructor(e,t){super(),this.model=e,this.mapper=new Jd,this.downcastDispatcher=new eu({mapper:this.mapper,schema:e.schema}),this.downcastDispatcher.on("insert:$text",(e,t,o)=>{if(!o.consumable.consume(t.item,e.name))return;const n=o.writer,a=o.mapper.toViewPosition(t.range.start),r=n.createText(t.item.data);n.insert(a,r)},{priority:"lowest"}),this.downcastDispatcher.on("insert",(e,t,o)=>{o.convertAttributes(t.item),t.reconversion||!t.item.is("element")||t.item.isEmpty||o.convertChildren(t.item)},{priority:"lowest"}),this.upcastDispatcher=new lm({schema:e.schema}),this.viewDocument=new js(t),this.stylesProcessor=t,this.htmlProcessor=new cm(this.viewDocument),this.processor=this.htmlProcessor,this._viewWriter=new zs(this.viewDocument),this.upcastDispatcher.on("text",(e,t,{schema:o,consumable:n,writer:a})=>{let r=t.modelCursor;if(!n.test(t.viewItem))return;if(!o.checkChild(r,"$text")){if(!Su(r,"$text",o))return;if(0==t.viewItem.data.trim().length)return;const e=r.nodeBefore;r=Bu(r,a),e&&e.is("element","$marker")&&(a.move(a.createRangeOn(e),r),r=a.createPositionAfter(e))}n.consume(t.viewItem);const i=a.createText(t.viewItem.data);a.insert(i,r),t.modelRange=a.createRange(r,r.getShiftedBy(i.offsetSize)),t.modelCursor=t.modelRange.end},{priority:"lowest"}),this.upcastDispatcher.on("element",(e,t,o)=>{if(!t.modelRange&&o.consumable.consume(t.viewItem,{name:!0})){const{modelRange:e,modelCursor:n}=o.convertChildren(t.viewItem,t.modelCursor);t.modelRange=e,t.modelCursor=n}},{priority:"lowest"}),this.upcastDispatcher.on("documentFragment",(e,t,o)=>{if(!t.modelRange&&o.consumable.consume(t.viewItem,{name:!0})){const{modelRange:e,modelCursor:n}=o.convertChildren(t.viewItem,t.modelCursor);t.modelRange=e,t.modelCursor=n}},{priority:"lowest"}),J().prototype.decorate.call(this,"init"),J().prototype.decorate.call(this,"set"),J().prototype.decorate.call(this,"get"),J().prototype.decorate.call(this,"toView"),J().prototype.decorate.call(this,"toModel"),this.on("init",()=>{this.fire("ready")},{priority:"lowest"}),this.on("ready",()=>{this.model.enqueueChange({isUndoable:!1},Tu)},{priority:"lowest"})}get(e={}){const{rootName:t="main",trim:o="empty"}=e;if(!this._checkIfRootsExists([t]))throw new x("datacontroller-get-non-existent-root",this);const n=this.model.document.getRoot(t);return"empty"!==o||this.model.hasContent(n,{ignoreWhitespaces:!0})?this.stringify(n,e):""}stringify(e,t={}){const o=this.toView(e,t);return this.processor.toData(o)}toView(e,t={}){const o=this.viewDocument,n=this._viewWriter;this.mapper.clearBindings();const a=Qd._createIn(e),r=new Is(o);this.mapper.bindElements(e,r);const i=e.is("documentFragment")?e.markers:function(e){const t=[],o=e.root.document;if(!o)return new Map;const n=Qd._createIn(e);for(const a of o.model.markers){const e=a.getRange(),o=e.isCollapsed,r=e.start.isEqual(n.start)||e.end.isEqual(n.end);if(o&&r)t.push([a.name,e]);else{const o=n.getIntersection(e);o&&t.push([a.name,o])}}return t.sort(([e,t],[o,n])=>{if("after"!==t.end.compareWith(n.start))return 1;if("before"!==t.start.compareWith(n.end))return-1;switch(t.start.compareWith(n.start)){case"before":return 1;case"after":return-1;default:switch(t.end.compareWith(n.end)){case"before":return 1;case"after":return-1;default:return o.localeCompare(e)}}}),new Map(t)}(e);return this.downcastDispatcher.convert(a,i,n,t),r}init(e){if(this.model.document.version)throw new x("datacontroller-init-document-not-empty",this);let t={};if("string"==typeof e?t.main=e:t=e,!this._checkIfRootsExists(Object.keys(t)))throw new x("datacontroller-init-non-existent-root",this);return this.model.enqueueChange({isUndoable:!1},e=>{for(const o of Object.keys(t)){const n=this.model.document.getRoot(o);e.insert(this.parse(t[o],n),n,0)}}),Promise.resolve()}set(e,t={}){let o={};if("string"==typeof e?o.main=e:o=e,!this._checkIfRootsExists(Object.keys(o)))throw new x("datacontroller-set-non-existent-root",this);this.model.enqueueChange(t.batchType||{},e=>{e.setSelection(null),e.removeSelectionAttribute(this.model.document.selection.getAttributeKeys());for(const t of Object.keys(o)){const n=this.model.document.getRoot(t);e.remove(e.createRangeIn(n)),e.insert(this.parse(o[t],n),n,0)}})}parse(e,t="$root"){const o=this.processor.toView(e);return this.toModel(o,t)}toModel(e,t="$root"){return this.model.change(o=>this.upcastDispatcher.convert(e,o,t))}addStyleProcessorRules(e){e(this.stylesProcessor)}registerRawContentMatcher(e){this.processor&&this.processor!==this.htmlProcessor&&this.processor.registerRawContentMatcher(e),this.htmlProcessor.registerRawContentMatcher(e)}destroy(){this.stopListening()}_checkIfRootsExists(e){for(const t of e)if(!this.model.document.getRootNames().includes(t))return!1;return!0}}class um{constructor(e,t){this._helpers=new Map,this._downcast=ur(e),this._createConversionHelpers({name:"downcast",dispatchers:this._downcast,isDowncast:!0}),this._upcast=ur(t),this._createConversionHelpers({name:"upcast",dispatchers:this._upcast,isDowncast:!1})}addAlias(e,t){const o=this._downcast.includes(t);if(!this._upcast.includes(t)&&!o)throw new x("conversion-add-alias-dispatcher-not-registered",this);this._createConversionHelpers({name:e,dispatchers:[t],isDowncast:o})}for(e){if(!this._helpers.has(e))throw new x("conversion-for-unknown-group",this);return this._helpers.get(e)}elementToElement(e){this.for("downcast").elementToElement(e);for(const{model:t,view:o}of mm(e))this.for("upcast").elementToElement({model:t,view:o,converterPriority:e.converterPriority})}attributeToElement(e){this.for("downcast").attributeToElement(e);for(const{model:t,view:o}of mm(e))this.for("upcast").elementToAttribute({view:o,model:t,converterPriority:e.converterPriority})}attributeToAttribute(e){this.for("downcast").attributeToAttribute(e);for(const{model:t,view:o}of mm(e))this.for("upcast").attributeToAttribute({view:o,model:t})}_createConversionHelpers({name:e,dispatchers:t,isDowncast:o}){if(this._helpers.has(e))throw new x("conversion-group-exists",this);const n=o?new wu(t):new Iu(t);this._helpers.set(e,n)}}function*mm(e){if(e.model.values)for(const t of e.model.values){const o={key:e.model.key,value:t},n=e.view[t],a=e.upcastAlso?e.upcastAlso[t]:void 0;yield*hm(o,n,a)}else yield*hm(e.model,e.view,e.upcastAlso)}function*hm(e,t,o){if(yield{model:e,view:t},o)for(const n of ur(o))yield{model:e,view:n}}class pm{constructor(e){this.baseVersion=e,this.isDocumentOperation=null!==this.baseVersion,this.batch=null}_validate(){}toJSON(){const e=Object.assign({},this);return e.__className=this.constructor.className,delete e.batch,delete e.isDocumentOperation,e}static get className(){return"Operation"}static fromJSON(e,t){return new this(e.baseVersion)}}function bm(e,t){const o=vm(t),n=o.reduce((e,t)=>e+t.offsetSize,0),a=e.parent;km(e);const r=e.index;return a._insertChild(r,o),wm(a,r+o.length),wm(a,r),new Qd(e,e.getShiftedBy(n))}function gm(e){if(!e.isFlat)throw new x("operation-utils-remove-range-not-flat",this);const t=e.start.parent;km(e.start),km(e.end);const o=t._removeChildren(e.start.index,e.end.index-e.start.index);return wm(t,e.start.index),o}function fm(e,t){if(!e.isFlat)throw new x("operation-utils-move-range-not-flat",this);const o=gm(e);return bm(t=t._getTransformedByDeletion(e.start,e.end.offset-e.start.offset),o)}function vm(e){const t=[];!function e(o){if("string"==typeof o)t.push(new Ld(o));else if(o instanceof Pd)t.push(new Ld(o.data,o.getAttributes()));else if(o instanceof Fd)t.push(o);else if(ie(o))for(const t of o)e(t)}(e);for(let o=1;o<t.length;o++){const e=t[o],n=t[o-1];e instanceof Ld&&n instanceof Ld&&Cm(e,n)&&(t.splice(o-1,2,new Ld(n.data+e.data,n.getAttributes())),o--)}return t}function wm(e,t){const o=e.getChild(t-1),n=e.getChild(t);if(o&&n&&o.is("$text")&&n.is("$text")&&Cm(o,n)){const a=new Ld(o.data+n.data,o.getAttributes());e._removeChildren(t-1,2),e._insertChild(t-1,a)}}function km(e){const t=e.textNode,o=e.parent;if(t){const n=e.offset-t.startOffset,a=t.index;o._removeChildren(a,1);const r=new Ld(t.data.substr(0,n),t.getAttributes()),i=new Ld(t.data.substr(n),t.getAttributes());o._insertChild(a,[r,i])}}function Cm(e,t){const o=e.getAttributes(),n=t.getAttributes();for(const a of o){if(a[1]!==t.getAttribute(a[0]))return!1;n.next()}return n.next().done}class ym extends pm{constructor(e,t,o,n){super(n),this.sourcePosition=e.clone(),this.sourcePosition.stickiness="toNext",this.howMany=t,this.targetPosition=o.clone(),this.targetPosition.stickiness="toNone"}get type(){return"$graveyard"==this.targetPosition.root.rootName?"remove":"$graveyard"==this.sourcePosition.root.rootName?"reinsert":"move"}clone(){return new ym(this.sourcePosition,this.howMany,this.targetPosition,this.baseVersion)}getMovedRangeStart(){return this.targetPosition._getTransformedByDeletion(this.sourcePosition,this.howMany)}getReversed(){const e=this.sourcePosition._getTransformedByInsertion(this.targetPosition,this.howMany);return new ym(this.getMovedRangeStart(),this.howMany,e,this.baseVersion+1)}_validate(){const e=this.sourcePosition.parent,t=this.targetPosition.parent,o=this.sourcePosition.offset,n=this.targetPosition.offset;if(o+this.howMany>e.maxOffset)throw new x("move-operation-nodes-do-not-exist",this);if(e===t&&o<n&&n<o+this.howMany)throw new x("move-operation-range-into-itself",this);if(this.sourcePosition.root==this.targetPosition.root&&"prefix"==re(this.sourcePosition.getParentPath(),this.targetPosition.getParentPath())){const e=this.sourcePosition.path.length-1;if(this.targetPosition.path[e]>=o&&this.targetPosition.path[e]<o+this.howMany)throw new x("move-operation-node-into-itself",this)}}_execute(){fm(Qd._createFromPositionAndShift(this.sourcePosition,this.howMany),this.targetPosition)}toJSON(){const e=super.toJSON();return e.sourcePosition=this.sourcePosition.toJSON(),e.targetPosition=this.targetPosition.toJSON(),e}static get className(){return"MoveOperation"}static fromJSON(e,t){const o=Ud.fromJSON(e.sourcePosition,t),n=Ud.fromJSON(e.targetPosition,t);return new this(o,e.howMany,n,e.baseVersion)}}class Om extends pm{constructor(e,t,o){super(o),this.position=e.clone(),this.position.stickiness="toNone",this.nodes=new Md(vm(t)),this.shouldReceiveAttributes=!1}get type(){return"insert"}get howMany(){return this.nodes.maxOffset}clone(){const e=new Md([...this.nodes].map(e=>e._clone(!0))),t=new Om(this.position,e,this.baseVersion);return t.shouldReceiveAttributes=this.shouldReceiveAttributes,t}getReversed(){const e=this.position.root.document.graveyard,t=new Ud(e,[0]);return new ym(this.position,this.nodes.maxOffset,t,this.baseVersion+1)}_validate(){const e=this.position.parent;if(!e||e.maxOffset<this.position.offset)throw new x("insert-operation-position-invalid",this)}_execute(){const e=this.nodes;this.nodes=new Md([...e].map(e=>e._clone(!0))),bm(this.position,e)}toJSON(){const e=super.toJSON();return e.position=this.position.toJSON(),e.nodes=this.nodes.toJSON(),e}static get className(){return"InsertOperation"}static fromJSON(e,t){const o=[];for(const a of e.nodes)a.name?o.push(Rd.fromJSON(a)):o.push(Ld.fromJSON(a));const n=new Om(Ud.fromJSON(e.position,t),o,e.baseVersion);return n.shouldReceiveAttributes=e.shouldReceiveAttributes,n}}class jm extends pm{constructor(e,t,o,n,a,r){super(r),this.name=e,this.oldRange=t?t.clone():null,this.newRange=o?o.clone():null,this.affectsData=a,this._markers=n}get type(){return"marker"}clone(){return new jm(this.name,this.oldRange,this.newRange,this._markers,this.affectsData,this.baseVersion)}getReversed(){return new jm(this.name,this.newRange,this.oldRange,this._markers,this.affectsData,this.baseVersion+1)}_execute(){this.newRange?this._markers._set(this.name,this.newRange,!0,this.affectsData):this._markers._remove(this.name)}toJSON(){const e=super.toJSON();return this.oldRange&&(e.oldRange=this.oldRange.toJSON()),this.newRange&&(e.newRange=this.newRange.toJSON()),delete e._markers,e}static get className(){return"MarkerOperation"}static fromJSON(e,t){return new jm(e.name,e.oldRange?Qd.fromJSON(e.oldRange,t):null,e.newRange?Qd.fromJSON(e.newRange,t):null,t.model.markers,e.affectsData,e.baseVersion)}}const xm=function(e,t){return Od(e,t)};class _m extends pm{constructor(e,t,o,n,a){super(a),this.range=e.clone(),this.key=t,this.oldValue=void 0===o?null:o,this.newValue=void 0===n?null:n}get type(){return null===this.oldValue?"addAttribute":null===this.newValue?"removeAttribute":"changeAttribute"}clone(){return new _m(this.range,this.key,this.oldValue,this.newValue,this.baseVersion)}getReversed(){return new _m(this.range,this.key,this.newValue,this.oldValue,this.baseVersion+1)}toJSON(){const e=super.toJSON();return e.range=this.range.toJSON(),e}_validate(){if(!this.range.isFlat)throw new x("attribute-operation-range-not-flat",this);for(const e of this.range.getItems({shallow:!0})){if(null!==this.oldValue&&!xm(e.getAttribute(this.key),this.oldValue))throw new x("attribute-operation-wrong-old-value",this,{item:e,key:this.key,value:this.oldValue});if(null===this.oldValue&&null!==this.newValue&&e.hasAttribute(this.key))throw new x("attribute-operation-attribute-exists",this,{node:e,key:this.key})}}_execute(){xm(this.oldValue,this.newValue)||function(e,t,o){km(e.start),km(e.end);for(const n of e.getItems({shallow:!0})){const e=n.is("$textProxy")?n.textNode:n;null!==o?e._setAttribute(t,o):e._removeAttribute(t),wm(e.parent,e.index)}wm(e.end.parent,e.end.index)}(this.range,this.key,this.newValue)}static get className(){return"AttributeOperation"}static fromJSON(e,t){return new _m(Qd.fromJSON(e.range,t),e.key,e.oldValue,e.newValue,e.baseVersion)}}class Vm extends pm{get type(){return"noop"}clone(){return new Vm(this.baseVersion)}getReversed(){return new Vm(this.baseVersion+1)}_execute(){}static get className(){return"NoOperation"}}class Am extends pm{constructor(e,t,o,n){super(n),this.position=e,this.position.stickiness="toNext",this.oldName=t,this.newName=o}get type(){return"rename"}clone(){return new Am(this.position.clone(),this.oldName,this.newName,this.baseVersion)}getReversed(){return new Am(this.position.clone(),this.newName,this.oldName,this.baseVersion+1)}_validate(){const e=this.position.nodeAfter;if(!(e instanceof Rd))throw new x("rename-operation-wrong-position",this);if(e.name!==this.oldName)throw new x("rename-operation-wrong-name",this)}_execute(){this.position.nodeAfter.name=this.newName}toJSON(){const e=super.toJSON();return e.position=this.position.toJSON(),e}static get className(){return"RenameOperation"}static fromJSON(e,t){return new Am(Ud.fromJSON(e.position,t),e.oldName,e.newName,e.baseVersion)}}class Nm extends pm{constructor(e,t,o,n,a){super(a),this.root=e,this.key=t,this.oldValue=o,this.newValue=n}get type(){return null===this.oldValue?"addRootAttribute":null===this.newValue?"removeRootAttribute":"changeRootAttribute"}clone(){return new Nm(this.root,this.key,this.oldValue,this.newValue,this.baseVersion)}getReversed(){return new Nm(this.root,this.key,this.newValue,this.oldValue,this.baseVersion+1)}_validate(){if(this.root!=this.root.root||this.root.is("documentFragment"))throw new x("rootattribute-operation-not-a-root",this,{root:this.root,key:this.key});if(null!==this.oldValue&&this.root.getAttribute(this.key)!==this.oldValue)throw new x("rootattribute-operation-wrong-old-value",this,{root:this.root,key:this.key});if(null===this.oldValue&&null!==this.newValue&&this.root.hasAttribute(this.key))throw new x("rootattribute-operation-attribute-exists",this,{root:this.root,key:this.key})}_execute(){null!==this.newValue?this.root._setAttribute(this.key,this.newValue):this.root._removeAttribute(this.key)}toJSON(){const e=super.toJSON();return e.root=this.root.toJSON(),e}static get className(){return"RootAttributeOperation"}static fromJSON(e,t){if(!t.getRoot(e.root))throw new x("rootattribute-operation-fromjson-no-root",this,{rootName:e.root});return new Nm(t.getRoot(e.root),e.key,e.oldValue,e.newValue,e.baseVersion)}}class Dm extends pm{constructor(e,t,o,n,a){super(a),this.sourcePosition=e.clone(),this.sourcePosition.stickiness="toPrevious",this.howMany=t,this.targetPosition=o.clone(),this.targetPosition.stickiness="toNext",this.graveyardPosition=n.clone()}get type(){return"merge"}get deletionPosition(){return new Ud(this.sourcePosition.root,this.sourcePosition.path.slice(0,-1))}get movedRange(){const e=this.sourcePosition.getShiftedBy(Number.POSITIVE_INFINITY);return new Qd(this.sourcePosition,e)}clone(){return new Dm(this.sourcePosition,this.howMany,this.targetPosition,this.graveyardPosition,this.baseVersion)}getReversed(){const e=this.targetPosition._getTransformedByMergeOperation(this),t=this.sourcePosition.path.slice(0,-1),o=new Ud(this.sourcePosition.root,t)._getTransformedByMergeOperation(this);return new Em(e,this.howMany,o,this.graveyardPosition,this.baseVersion+1)}_validate(){const e=this.sourcePosition.parent,t=this.targetPosition.parent;if(!e.parent)throw new x("merge-operation-source-position-invalid",this);if(!t.parent)throw new x("merge-operation-target-position-invalid",this);if(this.howMany!=e.maxOffset)throw new x("merge-operation-how-many-invalid",this)}_execute(){const e=this.sourcePosition.parent;fm(Qd._createIn(e),this.targetPosition),fm(Qd._createOn(e),this.graveyardPosition)}toJSON(){const e=super.toJSON();return e.sourcePosition=e.sourcePosition.toJSON(),e.targetPosition=e.targetPosition.toJSON(),e.graveyardPosition=e.graveyardPosition.toJSON(),e}static get className(){return"MergeOperation"}static fromJSON(e,t){const o=Ud.fromJSON(e.sourcePosition,t),n=Ud.fromJSON(e.targetPosition,t),a=Ud.fromJSON(e.graveyardPosition,t);return new this(o,e.howMany,n,a,e.baseVersion)}}class Em extends pm{constructor(e,t,o,n,a){super(a),this.splitPosition=e.clone(),this.splitPosition.stickiness="toNext",this.howMany=t,this.insertionPosition=o,this.graveyardPosition=n?n.clone():null,this.graveyardPosition&&(this.graveyardPosition.stickiness="toNext")}get type(){return"split"}get moveTargetPosition(){const e=this.insertionPosition.path.slice();return e.push(0),new Ud(this.insertionPosition.root,e)}get movedRange(){const e=this.splitPosition.getShiftedBy(Number.POSITIVE_INFINITY);return new Qd(this.splitPosition,e)}clone(){return new Em(this.splitPosition,this.howMany,this.insertionPosition,this.graveyardPosition,this.baseVersion)}getReversed(){const e=this.splitPosition.root.document.graveyard,t=new Ud(e,[0]);return new Dm(this.moveTargetPosition,this.howMany,this.splitPosition,t,this.baseVersion+1)}_validate(){const e=this.splitPosition.parent,t=this.splitPosition.offset;if(!e||e.maxOffset<t)throw new x("split-operation-position-invalid",this);if(!e.parent)throw new x("split-operation-split-in-root",this);if(this.howMany!=e.maxOffset-this.splitPosition.offset)throw new x("split-operation-how-many-invalid",this);if(this.graveyardPosition&&!this.graveyardPosition.nodeAfter)throw new x("split-operation-graveyard-position-invalid",this)}_execute(){const e=this.splitPosition.parent;if(this.graveyardPosition)fm(Qd._createFromPositionAndShift(this.graveyardPosition,1),this.insertionPosition);else{const t=e._clone();bm(this.insertionPosition,t)}fm(new Qd(Ud._createAt(e,this.splitPosition.offset),Ud._createAt(e,e.maxOffset)),this.moveTargetPosition)}toJSON(){const e=super.toJSON();return e.splitPosition=this.splitPosition.toJSON(),e.insertionPosition=this.insertionPosition.toJSON(),this.graveyardPosition&&(e.graveyardPosition=this.graveyardPosition.toJSON()),e}static get className(){return"SplitOperation"}static getInsertionPosition(e){const t=e.path.slice(0,-1);return t[t.length-1]++,new Ud(e.root,t,"toPrevious")}static fromJSON(e,t){const o=Ud.fromJSON(e.splitPosition,t),n=Ud.fromJSON(e.insertionPosition,t),a=e.graveyardPosition?Ud.fromJSON(e.graveyardPosition,t):null;return new this(o,e.howMany,n,a,e.baseVersion)}}const Tm={};Tm[_m.className]=_m,Tm[Om.className]=Om,Tm[jm.className]=jm,Tm[ym.className]=ym,Tm[Vm.className]=Vm,Tm[pm.className]=pm,Tm[Am.className]=Am,Tm[Nm.className]=Nm,Tm[Em.className]=Em,Tm[Dm.className]=Dm;class Sm{static fromJSON(e,t){return Tm[e.__className].fromJSON(e,t)}}const Bm=new Map;function Im(e,t,o){let n=Bm.get(e);n||(n=new Map,Bm.set(e,n)),n.set(t,o)}function zm(e){return[e]}function Fm(e,t,o={}){const n=function(e,t){const o=Bm.get(e);return o&&o.has(t)?o.get(t):zm}(e.constructor,t.constructor);try{return n(e=e.clone(),t,o)}catch(e){throw e}}function Mm(e,t,o){e=e.slice(),t=t.slice();const n=new Lm(o.document,o.useRelations,o.forceWeakRemove);n.setOriginalOperations(e),n.setOriginalOperations(t);const a=n.originalOperations;if(0==e.length||0==t.length)return{operationsA:e,operationsB:t,originalOperations:a};const r=new WeakMap;for(const s of e)r.set(s,0);const i={nextBaseVersionA:e[e.length-1].baseVersion+1,nextBaseVersionB:t[t.length-1].baseVersion+1,originalOperationsACount:e.length,originalOperationsBCount:t.length};let l=0;for(;l<e.length;){const o=e[l],a=r.get(o);if(a==t.length){l++;continue}const i=t[a],s=Fm(o,i,n.getContext(o,i,!0)),c=Fm(i,o,n.getContext(i,o,!1));n.updateRelation(o,i),n.setOriginalOperations(s,o),n.setOriginalOperations(c,i);for(const e of s)r.set(e,a+c.length);e.splice(l,1,...s),t.splice(a,1,...c)}if(o.padWithNoOps){const o=e.length-i.originalOperationsACount,n=t.length-i.originalOperationsBCount;Rm(e,n-o),Rm(t,o-n)}return Pm(e,i.nextBaseVersionB),Pm(t,i.nextBaseVersionA),{operationsA:e,operationsB:t,originalOperations:a}}class Lm{constructor(e,t,o=!1){this.originalOperations=new Map,this._history=e.history,this._useRelations=t,this._forceWeakRemove=!!o,this._relations=new Map}setOriginalOperations(e,t=null){const o=t?this.originalOperations.get(t):null;for(const n of e)this.originalOperations.set(n,o||n)}updateRelation(e,t){if(e instanceof ym)t instanceof Dm?e.targetPosition.isEqual(t.sourcePosition)||t.movedRange.containsPosition(e.targetPosition)?this._setRelation(e,t,"insertAtSource"):e.targetPosition.isEqual(t.deletionPosition)?this._setRelation(e,t,"insertBetween"):e.targetPosition.isAfter(t.sourcePosition)&&this._setRelation(e,t,"moveTargetAfter"):t instanceof ym&&(e.targetPosition.isEqual(t.sourcePosition)||e.targetPosition.isBefore(t.sourcePosition)?this._setRelation(e,t,"insertBefore"):this._setRelation(e,t,"insertAfter"));else if(e instanceof Em){if(t instanceof Dm)e.splitPosition.isBefore(t.sourcePosition)&&this._setRelation(e,t,"splitBefore");else if(t instanceof ym)if(e.splitPosition.isEqual(t.sourcePosition)||e.splitPosition.isBefore(t.sourcePosition))this._setRelation(e,t,"splitBefore");else{const o=Qd._createFromPositionAndShift(t.sourcePosition,t.howMany);if(e.splitPosition.hasSameParentAs(t.sourcePosition)&&o.containsPosition(e.splitPosition)){const n=o.end.offset-e.splitPosition.offset,a=e.splitPosition.offset-o.start.offset;this._setRelation(e,t,{howMany:n,offset:a})}}}else if(e instanceof Dm)t instanceof Dm?(e.targetPosition.isEqual(t.sourcePosition)||this._setRelation(e,t,"mergeTargetNotMoved"),e.sourcePosition.isEqual(t.targetPosition)&&this._setRelation(e,t,"mergeSourceNotMoved"),e.sourcePosition.isEqual(t.sourcePosition)&&this._setRelation(e,t,"mergeSameElement")):t instanceof Em&&e.sourcePosition.isEqual(t.splitPosition)&&this._setRelation(e,t,"splitAtSource");else if(e instanceof jm){const o=e.newRange;if(!o)return;if(t instanceof ym){const n=Qd._createFromPositionAndShift(t.sourcePosition,t.howMany),a=n.containsPosition(o.start)||n.start.isEqual(o.start),r=n.containsPosition(o.end)||n.end.isEqual(o.end);!a&&!r||n.containsRange(o)||this._setRelation(e,t,{side:a?"left":"right",path:a?o.start.path.slice():o.end.path.slice()})}else if(t instanceof Dm){const n=o.start.isEqual(t.targetPosition),a=o.start.isEqual(t.deletionPosition),r=o.end.isEqual(t.deletionPosition),i=o.end.isEqual(t.sourcePosition);(n||a||r||i)&&this._setRelation(e,t,{wasInLeftElement:n,wasStartBeforeMergedElement:a,wasEndBeforeMergedElement:r,wasInRightElement:i})}}}getContext(e,t,o){return{aIsStrong:o,aWasUndone:this._wasUndone(e),bWasUndone:this._wasUndone(t),abRelation:this._useRelations?this._getRelation(e,t):null,baRelation:this._useRelations?this._getRelation(t,e):null,forceWeakRemove:this._forceWeakRemove}}_wasUndone(e){const t=this.originalOperations.get(e);return t.wasUndone||this._history.isUndoneOperation(t)}_getRelation(e,t){const o=this.originalOperations.get(t),n=this._history.getUndoneOperation(o);if(!n)return null;const a=this.originalOperations.get(e),r=this._relations.get(a);return r&&r.get(n)||null}_setRelation(e,t,o){const n=this.originalOperations.get(e),a=this.originalOperations.get(t);let r=this._relations.get(n);r||(r=new Map,this._relations.set(n,r)),r.set(a,o)}}function Pm(e,t){for(const o of e)o.baseVersion=t++}function Rm(e,t){for(let o=0;o<t;o++)e.push(new Vm(0))}function qm(e,t,o){const n=e.nodes.getNode(0).getAttribute(t);if(n==o)return null;const a=new Qd(e.position,e.position.getShiftedBy(e.howMany));return new _m(a,t,n,o,0)}function $m(e,t){return null===e.targetPosition._getTransformedByDeletion(t.sourcePosition,t.howMany)}function Um(e,t){const o=[];for(let n=0;n<e.length;n++){const a=e[n],r=new ym(a.start,a.end.offset-a.start.offset,t,0);o.push(r);for(let t=n+1;t<e.length;t++)e[t]=e[t]._getTransformedByMove(r.sourcePosition,r.targetPosition,r.howMany)[0];t=t._getTransformedByMove(r.sourcePosition,r.targetPosition,r.howMany)}return o}Im(_m,_m,(e,t,o)=>{if(e.key===t.key&&e.range.start.hasSameParentAs(t.range.start)){const n=e.range.getDifference(t.range).map(t=>new _m(t,e.key,e.oldValue,e.newValue,0)),a=e.range.getIntersection(t.range);return a&&o.aIsStrong&&n.push(new _m(a,t.key,t.newValue,e.newValue,0)),0==n.length?[new Vm(0)]:n}return[e]}),Im(_m,Om,(e,t)=>{if(e.range.start.hasSameParentAs(t.position)&&e.range.containsPosition(t.position)){const o=e.range._getTransformedByInsertion(t.position,t.howMany,!t.shouldReceiveAttributes).map(t=>new _m(t,e.key,e.oldValue,e.newValue,e.baseVersion));if(t.shouldReceiveAttributes){const n=qm(t,e.key,e.oldValue);n&&o.unshift(n)}return o}return e.range=e.range._getTransformedByInsertion(t.position,t.howMany,!1)[0],[e]}),Im(_m,Dm,(e,t)=>{const o=[];e.range.start.hasSameParentAs(t.deletionPosition)&&(e.range.containsPosition(t.deletionPosition)||e.range.start.isEqual(t.deletionPosition))&&o.push(Qd._createFromPositionAndShift(t.graveyardPosition,1));const n=e.range._getTransformedByMergeOperation(t);return n.isCollapsed||o.push(n),o.map(t=>new _m(t,e.key,e.oldValue,e.newValue,e.baseVersion))}),Im(_m,ym,(e,t)=>{const o=function(e,t){const o=Qd._createFromPositionAndShift(t.sourcePosition,t.howMany);let n=null,a=[];o.containsRange(e,!0)?n=e:e.start.hasSameParentAs(o.start)?(a=e.getDifference(o),n=e.getIntersection(o)):a=[e];const r=[];for(let i of a){i=i._getTransformedByDeletion(t.sourcePosition,t.howMany);const e=t.getMovedRangeStart(),o=i.start.hasSameParentAs(e),n=i._getTransformedByInsertion(e,t.howMany,o);r.push(...n)}return n&&r.push(n._getTransformedByMove(t.sourcePosition,t.targetPosition,t.howMany,!1)[0]),r}(e.range,t);return o.map(t=>new _m(t,e.key,e.oldValue,e.newValue,e.baseVersion))}),Im(_m,Em,(e,t)=>{if(e.range.end.isEqual(t.insertionPosition))return t.graveyardPosition||e.range.end.offset++,[e];if(e.range.start.hasSameParentAs(t.splitPosition)&&e.range.containsPosition(t.splitPosition)){const o=e.clone();return o.range=new Qd(t.moveTargetPosition.clone(),e.range.end._getCombined(t.splitPosition,t.moveTargetPosition)),e.range.end=t.splitPosition.clone(),e.range.end.stickiness="toPrevious",[e,o]}return e.range=e.range._getTransformedBySplitOperation(t),[e]}),Im(Om,_m,(e,t)=>{const o=[e];if(e.shouldReceiveAttributes&&e.position.hasSameParentAs(t.range.start)&&t.range.containsPosition(e.position)){const n=qm(e,t.key,t.newValue);n&&o.push(n)}return o}),Im(Om,Om,(e,t,o)=>(e.position.isEqual(t.position)&&o.aIsStrong||(e.position=e.position._getTransformedByInsertOperation(t)),[e])),Im(Om,ym,(e,t)=>(e.position=e.position._getTransformedByMoveOperation(t),[e])),Im(Om,Em,(e,t)=>(e.position=e.position._getTransformedBySplitOperation(t),[e])),Im(Om,Dm,(e,t)=>(e.position=e.position._getTransformedByMergeOperation(t),[e])),Im(jm,Om,(e,t)=>(e.oldRange&&(e.oldRange=e.oldRange._getTransformedByInsertOperation(t)[0]),e.newRange&&(e.newRange=e.newRange._getTransformedByInsertOperation(t)[0]),[e])),Im(jm,jm,(e,t,o)=>{if(e.name==t.name){if(!o.aIsStrong)return[new Vm(0)];e.oldRange=t.newRange?t.newRange.clone():null}return[e]}),Im(jm,Dm,(e,t)=>(e.oldRange&&(e.oldRange=e.oldRange._getTransformedByMergeOperation(t)),e.newRange&&(e.newRange=e.newRange._getTransformedByMergeOperation(t)),[e])),Im(jm,ym,(e,t,o)=>{if(e.oldRange&&(e.oldRange=Qd._createFromRanges(e.oldRange._getTransformedByMoveOperation(t))),e.newRange){if(o.abRelation){const n=Qd._createFromRanges(e.newRange._getTransformedByMoveOperation(t));if("left"==o.abRelation.side&&t.targetPosition.isEqual(e.newRange.start))return e.newRange.end=n.end,e.newRange.start.path=o.abRelation.path,[e];if("right"==o.abRelation.side&&t.targetPosition.isEqual(e.newRange.end))return e.newRange.start=n.start,e.newRange.end.path=o.abRelation.path,[e]}e.newRange=Qd._createFromRanges(e.newRange._getTransformedByMoveOperation(t))}return[e]}),Im(jm,Em,(e,t,o)=>{if(e.oldRange&&(e.oldRange=e.oldRange._getTransformedBySplitOperation(t)),e.newRange){if(o.abRelation){const n=e.newRange._getTransformedBySplitOperation(t);return e.newRange.start.isEqual(t.splitPosition)&&o.abRelation.wasStartBeforeMergedElement?e.newRange.start=Ud._createAt(t.insertionPosition):e.newRange.start.isEqual(t.splitPosition)&&!o.abRelation.wasInLeftElement&&(e.newRange.start=Ud._createAt(t.moveTargetPosition)),e.newRange.end.isEqual(t.splitPosition)&&o.abRelation.wasInRightElement?e.newRange.end=Ud._createAt(t.moveTargetPosition):e.newRange.end.isEqual(t.splitPosition)&&o.abRelation.wasEndBeforeMergedElement?e.newRange.end=Ud._createAt(t.insertionPosition):e.newRange.end=n.end,[e]}e.newRange=e.newRange._getTransformedBySplitOperation(t)}return[e]}),Im(Dm,Om,(e,t)=>(e.sourcePosition.hasSameParentAs(t.position)&&(e.howMany+=t.howMany),e.sourcePosition=e.sourcePosition._getTransformedByInsertOperation(t),e.targetPosition=e.targetPosition._getTransformedByInsertOperation(t),[e])),Im(Dm,Dm,(e,t,o)=>{if(e.sourcePosition.isEqual(t.sourcePosition)&&e.targetPosition.isEqual(t.targetPosition)){if(o.bWasUndone){const o=t.graveyardPosition.path.slice();return o.push(0),e.sourcePosition=new Ud(t.graveyardPosition.root,o),e.howMany=0,[e]}return[new Vm(0)]}if(e.sourcePosition.isEqual(t.sourcePosition)&&!e.targetPosition.isEqual(t.targetPosition)&&!o.bWasUndone&&"splitAtSource"!=o.abRelation){const n="$graveyard"==e.targetPosition.root.rootName,a="$graveyard"==t.targetPosition.root.rootName;if(a&&!n||(!n||a)&&o.aIsStrong){const o=t.targetPosition._getTransformedByMergeOperation(t),n=e.targetPosition._getTransformedByMergeOperation(t);return[new ym(o,e.howMany,n,0)]}return[new Vm(0)]}return e.sourcePosition.hasSameParentAs(t.targetPosition)&&(e.howMany+=t.howMany),e.sourcePosition=e.sourcePosition._getTransformedByMergeOperation(t),e.targetPosition=e.targetPosition._getTransformedByMergeOperation(t),e.graveyardPosition.isEqual(t.graveyardPosition)&&o.aIsStrong||(e.graveyardPosition=e.graveyardPosition._getTransformedByMergeOperation(t)),[e]}),Im(Dm,ym,(e,t,o)=>{const n=Qd._createFromPositionAndShift(t.sourcePosition,t.howMany);return"remove"==t.type&&!o.bWasUndone&&!o.forceWeakRemove&&e.deletionPosition.hasSameParentAs(t.sourcePosition)&&n.containsPosition(e.sourcePosition)?[new Vm(0)]:(e.sourcePosition.hasSameParentAs(t.targetPosition)&&(e.howMany+=t.howMany),e.sourcePosition.hasSameParentAs(t.sourcePosition)&&(e.howMany-=t.howMany),e.sourcePosition=e.sourcePosition._getTransformedByMoveOperation(t),e.targetPosition=e.targetPosition._getTransformedByMoveOperation(t),e.graveyardPosition.isEqual(t.targetPosition)||(e.graveyardPosition=e.graveyardPosition._getTransformedByMoveOperation(t)),[e])}),Im(Dm,Em,(e,t,o)=>{if(t.graveyardPosition&&(e.graveyardPosition=e.graveyardPosition._getTransformedByDeletion(t.graveyardPosition,1),e.deletionPosition.isEqual(t.graveyardPosition)&&(e.howMany=t.howMany)),e.targetPosition.isEqual(t.splitPosition)){const n=0!=t.howMany,a=t.graveyardPosition&&e.deletionPosition.isEqual(t.graveyardPosition);if(n||a||"mergeTargetNotMoved"==o.abRelation)return e.sourcePosition=e.sourcePosition._getTransformedBySplitOperation(t),[e]}if(e.sourcePosition.isEqual(t.splitPosition)){if("mergeSourceNotMoved"==o.abRelation)return e.howMany=0,e.targetPosition=e.targetPosition._getTransformedBySplitOperation(t),[e];if("mergeSameElement"==o.abRelation||e.sourcePosition.offset>0)return e.sourcePosition=t.moveTargetPosition.clone(),e.targetPosition=e.targetPosition._getTransformedBySplitOperation(t),[e]}return e.sourcePosition.hasSameParentAs(t.splitPosition)&&(e.howMany=t.splitPosition.offset),e.sourcePosition=e.sourcePosition._getTransformedBySplitOperation(t),e.targetPosition=e.targetPosition._getTransformedBySplitOperation(t),[e]}),Im(ym,Om,(e,t)=>{const o=Qd._createFromPositionAndShift(e.sourcePosition,e.howMany)._getTransformedByInsertOperation(t,!1)[0];return e.sourcePosition=o.start,e.howMany=o.end.offset-o.start.offset,e.targetPosition.isEqual(t.position)||(e.targetPosition=e.targetPosition._getTransformedByInsertOperation(t)),[e]}),Im(ym,ym,(e,t,o)=>{const n=Qd._createFromPositionAndShift(e.sourcePosition,e.howMany),a=Qd._createFromPositionAndShift(t.sourcePosition,t.howMany);let r,i=o.aIsStrong,l=!o.aIsStrong;if("insertBefore"==o.abRelation||"insertAfter"==o.baRelation?l=!0:"insertAfter"!=o.abRelation&&"insertBefore"!=o.baRelation||(l=!1),r=e.targetPosition.isEqual(t.targetPosition)&&l?e.targetPosition._getTransformedByDeletion(t.sourcePosition,t.howMany):e.targetPosition._getTransformedByMove(t.sourcePosition,t.targetPosition,t.howMany),$m(e,t)&&$m(t,e))return[t.getReversed()];if(n.containsPosition(t.targetPosition)&&n.containsRange(a,!0))return n.start=n.start._getTransformedByMove(t.sourcePosition,t.targetPosition,t.howMany),n.end=n.end._getTransformedByMove(t.sourcePosition,t.targetPosition,t.howMany),Um([n],r);if(a.containsPosition(e.targetPosition)&&a.containsRange(n,!0))return n.start=n.start._getCombined(t.sourcePosition,t.getMovedRangeStart()),n.end=n.end._getCombined(t.sourcePosition,t.getMovedRangeStart()),Um([n],r);const s=re(e.sourcePosition.getParentPath(),t.sourcePosition.getParentPath());if("prefix"==s||"extension"==s)return n.start=n.start._getTransformedByMove(t.sourcePosition,t.targetPosition,t.howMany),n.end=n.end._getTransformedByMove(t.sourcePosition,t.targetPosition,t.howMany),Um([n],r);"remove"!=e.type||"remove"==t.type||o.aWasUndone||o.forceWeakRemove?"remove"==e.type||"remove"!=t.type||o.bWasUndone||o.forceWeakRemove||(i=!1):i=!0;const c=[],d=n.getDifference(a);for(const m of d){m.start=m.start._getTransformedByDeletion(t.sourcePosition,t.howMany),m.end=m.end._getTransformedByDeletion(t.sourcePosition,t.howMany);const e="same"==re(m.start.getParentPath(),t.getMovedRangeStart().getParentPath()),o=m._getTransformedByInsertion(t.getMovedRangeStart(),t.howMany,e);c.push(...o)}const u=n.getIntersection(a);return null!==u&&i&&(u.start=u.start._getCombined(t.sourcePosition,t.getMovedRangeStart()),u.end=u.end._getCombined(t.sourcePosition,t.getMovedRangeStart()),0===c.length?c.push(u):1==c.length?a.start.isBefore(n.start)||a.start.isEqual(n.start)?c.unshift(u):c.push(u):c.splice(1,0,u)),0===c.length?[new Vm(e.baseVersion)]:Um(c,r)}),Im(ym,Em,(e,t,o)=>{let n=e.targetPosition.clone();e.targetPosition.isEqual(t.insertionPosition)&&t.graveyardPosition&&"moveTargetAfter"!=o.abRelation||(n=e.targetPosition._getTransformedBySplitOperation(t));const a=Qd._createFromPositionAndShift(e.sourcePosition,e.howMany);if(a.end.isEqual(t.insertionPosition))return t.graveyardPosition||e.howMany++,e.targetPosition=n,[e];if(a.start.hasSameParentAs(t.splitPosition)&&a.containsPosition(t.splitPosition)){let e=new Qd(t.splitPosition,a.end);return e=e._getTransformedBySplitOperation(t),Um([new Qd(a.start,t.splitPosition),e],n)}e.targetPosition.isEqual(t.splitPosition)&&"insertAtSource"==o.abRelation&&(n=t.moveTargetPosition),e.targetPosition.isEqual(t.insertionPosition)&&"insertBetween"==o.abRelation&&(n=e.targetPosition);const r=[a._getTransformedBySplitOperation(t)];if(t.graveyardPosition){const n=a.start.isEqual(t.graveyardPosition)||a.containsPosition(t.graveyardPosition);e.howMany>1&&n&&!o.aWasUndone&&r.push(Qd._createFromPositionAndShift(t.insertionPosition,1))}return Um(r,n)}),Im(ym,Dm,(e,t,o)=>{const n=Qd._createFromPositionAndShift(e.sourcePosition,e.howMany);if(t.deletionPosition.hasSameParentAs(e.sourcePosition)&&n.containsPosition(t.sourcePosition))if("remove"!=e.type||o.forceWeakRemove){if(1==e.howMany)return o.bWasUndone?(e.sourcePosition=t.graveyardPosition.clone(),e.targetPosition=e.targetPosition._getTransformedByMergeOperation(t),[e]):[new Vm(0)]}else if(!o.aWasUndone){const o=[];let n=t.graveyardPosition.clone(),a=t.targetPosition._getTransformedByMergeOperation(t);e.howMany>1&&(o.push(new ym(e.sourcePosition,e.howMany-1,e.targetPosition,0)),n=n._getTransformedByMove(e.sourcePosition,e.targetPosition,e.howMany-1),a=a._getTransformedByMove(e.sourcePosition,e.targetPosition,e.howMany-1));const r=t.deletionPosition._getCombined(e.sourcePosition,e.targetPosition),i=new ym(n,1,r,0),l=i.getMovedRangeStart().path.slice();l.push(0);const s=new Ud(i.targetPosition.root,l);a=a._getTransformedByMove(n,r,1);const c=new ym(a,t.howMany,s,0);return o.push(i),o.push(c),o}const a=Qd._createFromPositionAndShift(e.sourcePosition,e.howMany)._getTransformedByMergeOperation(t);return e.sourcePosition=a.start,e.howMany=a.end.offset-a.start.offset,e.targetPosition=e.targetPosition._getTransformedByMergeOperation(t),[e]}),Im(Am,Om,(e,t)=>(e.position=e.position._getTransformedByInsertOperation(t),[e])),Im(Am,Dm,(e,t)=>e.position.isEqual(t.deletionPosition)?(e.position=t.graveyardPosition.clone(),e.position.stickiness="toNext",[e]):(e.position=e.position._getTransformedByMergeOperation(t),[e])),Im(Am,ym,(e,t)=>(e.position=e.position._getTransformedByMoveOperation(t),[e])),Im(Am,Am,(e,t,o)=>{if(e.position.isEqual(t.position)){if(!o.aIsStrong)return[new Vm(0)];e.oldName=t.newName}return[e]}),Im(Am,Em,(e,t)=>{if("same"==re(e.position.path,t.splitPosition.getParentPath())&&!t.graveyardPosition){const t=new Am(e.position.getShiftedBy(1),e.oldName,e.newName,0);return[e,t]}return e.position=e.position._getTransformedBySplitOperation(t),[e]}),Im(Nm,Nm,(e,t,o)=>{if(e.root===t.root&&e.key===t.key){if(!o.aIsStrong||e.newValue===t.newValue)return[new Vm(0)];e.oldValue=t.newValue}return[e]}),Im(Em,Om,(e,t)=>(e.splitPosition.hasSameParentAs(t.position)&&e.splitPosition.offset<t.position.offset&&(e.howMany+=t.howMany),e.splitPosition=e.splitPosition._getTransformedByInsertOperation(t),e.insertionPosition=e.insertionPosition._getTransformedByInsertOperation(t),[e])),Im(Em,Dm,(e,t,o)=>{if(!e.graveyardPosition&&!o.bWasUndone&&e.splitPosition.hasSameParentAs(t.sourcePosition)){const o=t.graveyardPosition.path.slice();o.push(0);const n=new Ud(t.graveyardPosition.root,o),a=Em.getInsertionPosition(new Ud(t.graveyardPosition.root,o)),r=new Em(n,0,a,null,0);return e.splitPosition=e.splitPosition._getTransformedByMergeOperation(t),e.insertionPosition=Em.getInsertionPosition(e.splitPosition),e.graveyardPosition=r.insertionPosition.clone(),e.graveyardPosition.stickiness="toNext",[r,e]}return e.splitPosition.hasSameParentAs(t.deletionPosition)&&!e.splitPosition.isAfter(t.deletionPosition)&&e.howMany--,e.splitPosition.hasSameParentAs(t.targetPosition)&&(e.howMany+=t.howMany),e.splitPosition=e.splitPosition._getTransformedByMergeOperation(t),e.insertionPosition=Em.getInsertionPosition(e.splitPosition),e.graveyardPosition&&(e.graveyardPosition=e.graveyardPosition._getTransformedByMergeOperation(t)),[e]}),Im(Em,ym,(e,t,o)=>{const n=Qd._createFromPositionAndShift(t.sourcePosition,t.howMany);if(e.graveyardPosition){const a=n.start.isEqual(e.graveyardPosition)||n.containsPosition(e.graveyardPosition);if(!o.bWasUndone&&a){const o=e.splitPosition._getTransformedByMoveOperation(t),n=e.graveyardPosition._getTransformedByMoveOperation(t),a=n.path.slice();a.push(0);const r=new Ud(n.root,a);return[new ym(o,e.howMany,r,0)]}e.graveyardPosition=e.graveyardPosition._getTransformedByMoveOperation(t)}const a=e.splitPosition.isEqual(t.targetPosition);if(a&&("insertAtSource"==o.baRelation||"splitBefore"==o.abRelation))return e.howMany+=t.howMany,e.splitPosition=e.splitPosition._getTransformedByDeletion(t.sourcePosition,t.howMany),e.insertionPosition=Em.getInsertionPosition(e.splitPosition),[e];if(a&&o.abRelation&&o.abRelation.howMany){const{howMany:t,offset:n}=o.abRelation;return e.howMany+=t,e.splitPosition=e.splitPosition.getShiftedBy(n),[e]}if(e.splitPosition.hasSameParentAs(t.sourcePosition)&&n.containsPosition(e.splitPosition)){const o=t.howMany-(e.splitPosition.offset-t.sourcePosition.offset);return e.howMany-=o,e.splitPosition.hasSameParentAs(t.targetPosition)&&e.splitPosition.offset<t.targetPosition.offset&&(e.howMany+=t.howMany),e.splitPosition=t.sourcePosition.clone(),e.insertionPosition=Em.getInsertionPosition(e.splitPosition),[e]}return t.sourcePosition.isEqual(t.targetPosition)||(e.splitPosition.hasSameParentAs(t.sourcePosition)&&e.splitPosition.offset<=t.sourcePosition.offset&&(e.howMany-=t.howMany),e.splitPosition.hasSameParentAs(t.targetPosition)&&e.splitPosition.offset<t.targetPosition.offset&&(e.howMany+=t.howMany)),e.splitPosition.stickiness="toNone",e.splitPosition=e.splitPosition._getTransformedByMoveOperation(t),e.splitPosition.stickiness="toNext",e.graveyardPosition?e.insertionPosition=e.insertionPosition._getTransformedByMoveOperation(t):e.insertionPosition=Em.getInsertionPosition(e.splitPosition),[e]}),Im(Em,Em,(e,t,o)=>{if(e.splitPosition.isEqual(t.splitPosition)){if(!e.graveyardPosition&&!t.graveyardPosition)return[new Vm(0)];if(e.graveyardPosition&&t.graveyardPosition&&e.graveyardPosition.isEqual(t.graveyardPosition))return[new Vm(0)];if("splitBefore"==o.abRelation)return e.howMany=0,e.graveyardPosition=e.graveyardPosition._getTransformedBySplitOperation(t),[e]}if(e.graveyardPosition&&t.graveyardPosition&&e.graveyardPosition.isEqual(t.graveyardPosition)){const n="$graveyard"==e.splitPosition.root.rootName,a="$graveyard"==t.splitPosition.root.rootName;if(a&&!n||(!n||a)&&o.aIsStrong){const o=[];return t.howMany&&o.push(new ym(t.moveTargetPosition,t.howMany,t.splitPosition,0)),e.howMany&&o.push(new ym(e.splitPosition,e.howMany,e.moveTargetPosition,0)),o}return[new Vm(0)]}if(e.graveyardPosition&&(e.graveyardPosition=e.graveyardPosition._getTransformedBySplitOperation(t)),e.splitPosition.isEqual(t.insertionPosition)&&"splitBefore"==o.abRelation)return e.howMany++,[e];if(t.splitPosition.isEqual(e.insertionPosition)&&"splitBefore"==o.baRelation){const o=t.insertionPosition.path.slice();o.push(0);const n=new Ud(t.insertionPosition.root,o);return[e,new ym(e.insertionPosition,1,n,0)]}return e.splitPosition.hasSameParentAs(t.splitPosition)&&e.splitPosition.offset<t.splitPosition.offset&&(e.howMany-=t.howMany),e.splitPosition=e.splitPosition._getTransformedBySplitOperation(t),e.insertionPosition=Em.getInsertionPosition(e.splitPosition),[e]});class Hm extends(z(Ud)){constructor(e,t,o="toNone"){if(super(e,t,o),!this.root.is("rootElement"))throw new x("model-liveposition-root-not-rootelement",e);Wm.call(this)}detach(){this.stopListening()}toPosition(){return new Ud(this.root,this.path.slice(),this.stickiness)}static fromPosition(e,t){return new this(e.root,e.path.slice(),t||e.stickiness)}}function Wm(){this.listenTo(this.root.document.model,"applyOperation",(e,t)=>{const o=t[0];o.isDocumentOperation&&Gm.call(this,o)},{priority:"low"})}function Gm(e){const t=this.getTransformedByOperation(e);if(!this.isEqual(t)){const e=this.toPosition();this.path=t.path,this.root=t.root,this.fire("change",e)}}Hm.prototype.is=function(e){return"livePosition"===e||"model:livePosition"===e||"position"==e||"model:position"===e};class Km{constructor(e={}){"string"==typeof e&&(e="transparent"===e?{isUndoable:!1}:{},_("batch-constructor-deprecated-string-type"));const{isUndoable:t=!0,isLocal:o=!0,isUndo:n=!1,isTyping:a=!1}=e;this.operations=[],this.isUndoable=t,this.isLocal=o,this.isUndo=n,this.isTyping=a}get type(){return _("batch-type-deprecated"),"default"}get baseVersion(){for(const e of this.operations)if(null!==e.baseVersion)return e.baseVersion;return null}addOperation(e){return e.batch=this,this.operations.push(e),e}}class Ym{constructor(e){this._changesInElement=new Map,this._elementSnapshots=new Map,this._changedMarkers=new Map,this._changeCount=0,this._cachedChanges=null,this._cachedChangesWithGraveyard=null,this._refreshedItems=new Set,this._markerCollection=e}get isEmpty(){return 0==this._changesInElement.size&&0==this._changedMarkers.size}bufferOperation(e){const t=e;switch(t.type){case"insert":if(this._isInInsertedElement(t.position.parent))return;this._markInsert(t.position.parent,t.position.offset,t.nodes.maxOffset);break;case"addAttribute":case"removeAttribute":case"changeAttribute":for(const e of t.range.getItems({shallow:!0}))this._isInInsertedElement(e.parent)||this._markAttribute(e);break;case"remove":case"move":case"reinsert":{if(t.sourcePosition.isEqual(t.targetPosition)||t.sourcePosition.getShiftedBy(t.howMany).isEqual(t.targetPosition))return;const e=this._isInInsertedElement(t.sourcePosition.parent),o=this._isInInsertedElement(t.targetPosition.parent);e||this._markRemove(t.sourcePosition.parent,t.sourcePosition.offset,t.howMany),o||this._markInsert(t.targetPosition.parent,t.getMovedRangeStart().offset,t.howMany);break}case"rename":{if(this._isInInsertedElement(t.position.parent))return;this._markRemove(t.position.parent,t.position.offset,1),this._markInsert(t.position.parent,t.position.offset,1);const e=Qd._createFromPositionAndShift(t.position,1);for(const t of this._markerCollection.getMarkersIntersectingRange(e)){const e=t.getData();this.bufferMarkerChange(t.name,e,e)}break}case"split":{const e=t.splitPosition.parent;this._isInInsertedElement(e)||this._markRemove(e,t.splitPosition.offset,t.howMany),this._isInInsertedElement(t.insertionPosition.parent)||this._markInsert(t.insertionPosition.parent,t.insertionPosition.offset,1),t.graveyardPosition&&this._markRemove(t.graveyardPosition.parent,t.graveyardPosition.offset,1);break}case"merge":{const e=t.sourcePosition.parent;this._isInInsertedElement(e.parent)||this._markRemove(e.parent,e.startOffset,1);const o=t.graveyardPosition.parent;this._markInsert(o,t.graveyardPosition.offset,1);const n=t.targetPosition.parent;this._isInInsertedElement(n)||this._markInsert(n,t.targetPosition.offset,e.maxOffset);break}}this._cachedChanges=null}bufferMarkerChange(e,t,o){const n=this._changedMarkers.get(e);n?(n.newMarkerData=o,null==n.oldMarkerData.range&&null==o.range&&this._changedMarkers.delete(e)):this._changedMarkers.set(e,{newMarkerData:o,oldMarkerData:t})}getMarkersToRemove(){const e=[];for(const[t,o]of this._changedMarkers)null!=o.oldMarkerData.range&&e.push({name:t,range:o.oldMarkerData.range});return e}getMarkersToAdd(){const e=[];for(const[t,o]of this._changedMarkers)null!=o.newMarkerData.range&&e.push({name:t,range:o.newMarkerData.range});return e}getChangedMarkers(){return Array.from(this._changedMarkers).map(([e,t])=>({name:e,data:{oldRange:t.oldMarkerData.range,newRange:t.newMarkerData.range}}))}hasDataChanges(){if(this._changesInElement.size>0)return!0;for(const{newMarkerData:e,oldMarkerData:t}of this._changedMarkers.values()){if(e.affectsData!==t.affectsData)return!0;if(e.affectsData){const o=e.range&&!t.range,n=!e.range&&t.range,a=e.range&&t.range&&!e.range.isEqual(t.range);if(o||n||a)return!0}}return!1}getChanges(e={}){if(this._cachedChanges)return e.includeChangesInGraveyard?this._cachedChangesWithGraveyard.slice():this._cachedChanges.slice();let t=[];for(const o of this._changesInElement.keys()){const e=this._changesInElement.get(o).sort((e,t)=>e.offset===t.offset?e.type!=t.type?"remove"==e.type?-1:1:0:e.offset<t.offset?-1:1),n=this._elementSnapshots.get(o),a=Qm(o.getChildren()),r=Jm(n.length,e);let i=0,l=0;for(const s of r)if("i"===s)t.push(this._getInsertDiff(o,i,a[i])),i++;else if("r"===s)t.push(this._getRemoveDiff(o,i,n[l])),l++;else if("a"===s){const e=a[i].attributes,r=n[l].attributes;let s;if("$text"==a[i].name)s=new Qd(Ud._createAt(o,i),Ud._createAt(o,i+1));else{const e=o.offsetToIndex(i);s=new Qd(Ud._createAt(o,i),Ud._createAt(o.getChild(e),0))}t.push(...this._getAttributesDiff(s,r,e)),i++,l++}else i++,l++}t.sort((e,t)=>e.position.root!=t.position.root?e.position.root.rootName<t.position.root.rootName?-1:1:e.position.isEqual(t.position)?e.changeCount-t.changeCount:e.position.isBefore(t.position)?-1:1);for(let o=1,n=0;o<t.length;o++){const e=t[n],a=t[o],r="remove"==e.type&&"remove"==a.type&&"$text"==e.name&&"$text"==a.name&&e.position.isEqual(a.position),i="insert"==e.type&&"insert"==a.type&&"$text"==e.name&&"$text"==a.name&&e.position.parent==a.position.parent&&e.position.offset+e.length==a.position.offset,l="attribute"==e.type&&"attribute"==a.type&&e.position.parent==a.position.parent&&e.range.isFlat&&a.range.isFlat&&e.position.offset+e.length==a.position.offset&&e.attributeKey==a.attributeKey&&e.attributeOldValue==a.attributeOldValue&&e.attributeNewValue==a.attributeNewValue;r||i||l?(e.length++,l&&(e.range.end=e.range.end.getShiftedBy(1)),t[o]=null):n=o}t=t.filter(e=>e);for(const o of t)delete o.changeCount,"attribute"==o.type&&(delete o.position,delete o.length);return this._changeCount=0,this._cachedChangesWithGraveyard=t,this._cachedChanges=t.filter(Zm),e.includeChangesInGraveyard?this._cachedChangesWithGraveyard.slice():this._cachedChanges.slice()}getRefreshedItems(){return new Set(this._refreshedItems)}reset(){this._changesInElement.clear(),this._elementSnapshots.clear(),this._changedMarkers.clear(),this._refreshedItems=new Set,this._cachedChanges=null}_refreshItem(e){if(this._isInInsertedElement(e.parent))return;this._markRemove(e.parent,e.startOffset,e.offsetSize),this._markInsert(e.parent,e.startOffset,e.offsetSize),this._refreshedItems.add(e);const t=Qd._createOn(e);for(const o of this._markerCollection.getMarkersIntersectingRange(t)){const e=o.getData();this.bufferMarkerChange(o.name,e,e)}this._cachedChanges=null}_markInsert(e,t,o){const n={type:"insert",offset:t,howMany:o,count:this._changeCount++};this._markChange(e,n)}_markRemove(e,t,o){const n={type:"remove",offset:t,howMany:o,count:this._changeCount++};this._markChange(e,n),this._removeAllNestedChanges(e,t,o)}_markAttribute(e){const t={type:"attribute",offset:e.startOffset,howMany:e.offsetSize,count:this._changeCount++};this._markChange(e.parent,t)}_markChange(e,t){this._makeSnapshot(e);const o=this._getChangesForElement(e);this._handleChange(t,o),o.push(t);for(let n=0;n<o.length;n++)o[n].howMany<1&&(o.splice(n,1),n--)}_getChangesForElement(e){let t;return this._changesInElement.has(e)?t=this._changesInElement.get(e):(t=[],this._changesInElement.set(e,t)),t}_makeSnapshot(e){this._elementSnapshots.has(e)||this._elementSnapshots.set(e,Qm(e.getChildren()))}_handleChange(e,t){e.nodesToHandle=e.howMany;for(const o of t){const n=e.offset+e.howMany,a=o.offset+o.howMany;if("insert"==e.type&&("insert"==o.type&&(e.offset<=o.offset?o.offset+=e.howMany:e.offset<a&&(o.howMany+=e.nodesToHandle,e.nodesToHandle=0)),"remove"==o.type&&e.offset<o.offset&&(o.offset+=e.howMany),"attribute"==o.type))if(e.offset<=o.offset)o.offset+=e.howMany;else if(e.offset<a){const a=o.howMany;o.howMany=e.offset-o.offset,t.unshift({type:"attribute",offset:n,howMany:a-o.howMany,count:this._changeCount++})}if("remove"==e.type){if("insert"==o.type)if(n<=o.offset)o.offset-=e.howMany;else if(n<=a)if(e.offset<o.offset){const t=n-o.offset;o.offset=e.offset,o.howMany-=t,e.nodesToHandle-=t}else o.howMany-=e.nodesToHandle,e.nodesToHandle=0;else if(e.offset<=o.offset)e.nodesToHandle-=o.howMany,o.howMany=0;else if(e.offset<a){const t=a-e.offset;o.howMany-=t,e.nodesToHandle-=t}if("remove"==o.type&&(n<=o.offset?o.offset-=e.howMany:e.offset<o.offset&&(e.nodesToHandle+=o.howMany,o.howMany=0)),"attribute"==o.type)if(n<=o.offset)o.offset-=e.howMany;else if(e.offset<o.offset){const t=n-o.offset;o.offset=e.offset,o.howMany-=t}else if(e.offset<a)if(n<=a){const n=o.howMany;o.howMany=e.offset-o.offset;const a=n-o.howMany-e.nodesToHandle;t.unshift({type:"attribute",offset:e.offset,howMany:a,count:this._changeCount++})}else o.howMany-=a-e.offset}if("attribute"==e.type){if("insert"==o.type)if(e.offset<o.offset&&n>o.offset){if(n>a){const e={type:"attribute",offset:a,howMany:n-a,count:this._changeCount++};this._handleChange(e,t),t.push(e)}e.nodesToHandle=o.offset-e.offset,e.howMany=e.nodesToHandle}else e.offset>=o.offset&&e.offset<a&&(n>a?(e.nodesToHandle=n-a,e.offset=a):e.nodesToHandle=0);if("remove"==o.type&&e.offset<o.offset&&n>o.offset){const a={type:"attribute",offset:o.offset,howMany:n-o.offset,count:this._changeCount++};this._handleChange(a,t),t.push(a),e.nodesToHandle=o.offset-e.offset,e.howMany=e.nodesToHandle}"attribute"==o.type&&(e.offset>=o.offset&&n<=a?(e.nodesToHandle=0,e.howMany=0,e.offset=0):e.offset<=o.offset&&n>=a&&(o.howMany=0))}}e.howMany=e.nodesToHandle,delete e.nodesToHandle}_getInsertDiff(e,t,o){return{type:"insert",position:Ud._createAt(e,t),name:o.name,attributes:new Map(o.attributes),length:1,changeCount:this._changeCount++}}_getRemoveDiff(e,t,o){return{type:"remove",position:Ud._createAt(e,t),name:o.name,attributes:new Map(o.attributes),length:1,changeCount:this._changeCount++}}_getAttributesDiff(e,t,o){const n=[];o=new Map(o);for(const[a,r]of t){const t=o.has(a)?o.get(a):null;t!==r&&n.push({type:"attribute",position:e.start,range:e.clone(),length:1,attributeKey:a,attributeOldValue:r,attributeNewValue:t,changeCount:this._changeCount++}),o.delete(a)}for(const[a,r]of o)n.push({type:"attribute",position:e.start,range:e.clone(),length:1,attributeKey:a,attributeOldValue:null,attributeNewValue:r,changeCount:this._changeCount++});return n}_isInInsertedElement(e){const t=e.parent;if(!t)return!1;const o=this._changesInElement.get(t),n=e.startOffset;if(o)for(const a of o)if("insert"==a.type&&n>=a.offset&&n<a.offset+a.howMany)return!0;return this._isInInsertedElement(t)}_removeAllNestedChanges(e,t,o){const n=new Qd(Ud._createAt(e,t),Ud._createAt(e,t+o));for(const a of n.getItems({shallow:!0}))a.is("element")&&(this._elementSnapshots.delete(a),this._changesInElement.delete(a),this._removeAllNestedChanges(a,0,a.maxOffset))}}function Qm(e){const t=[];for(const o of e)if(o.is("$text"))for(let e=0;e<o.data.length;e++)t.push({name:"$text",attributes:new Map(o.getAttributes())});else t.push({name:o.name,attributes:new Map(o.getAttributes())});return t}function Jm(e,t){const o=[];let n=0,a=0;for(const r of t){if(r.offset>n){for(let e=0;e<r.offset-n;e++)o.push("e");a+=r.offset-n}if("insert"==r.type){for(let e=0;e<r.howMany;e++)o.push("i");n=r.offset+r.howMany}else if("remove"==r.type){for(let e=0;e<r.howMany;e++)o.push("r");n=r.offset,a+=r.howMany}else o.push(..."a".repeat(r.howMany).split("")),n=r.offset+r.howMany,a+=r.howMany}if(a<e)for(let r=0;r<e-a-n;r++)o.push("e");return o}function Zm(e){const t="position"in e&&"$graveyard"==e.position.root.rootName,o="range"in e&&"$graveyard"==e.range.root.rootName;return!t&&!o}class Xm{constructor(){this._operations=[],this._undoPairs=new Map,this._undoneOperations=new Set,this._baseVersionToOperationIndex=new Map,this._version=0,this._gaps=new Map}get version(){return this._version}set version(e){this._operations.length&&e>this._version+1&&this._gaps.set(this._version,e),this._version=e}get lastOperation(){return this._operations[this._operations.length-1]}addOperation(e){if(e.baseVersion!==this.version)throw new x("model-document-history-addoperation-incorrect-version",this,{operation:e,historyVersion:this.version});this._operations.push(e),this._version++,this._baseVersionToOperationIndex.set(e.baseVersion,this._operations.length-1)}getOperations(e,t=this.version){if(!this._operations.length)return[];const o=this._operations[0];void 0===e&&(e=o.baseVersion);let n=t-1;for(const[i,l]of this._gaps)e>i&&e<l&&(e=l),n>i&&n<l&&(n=i-1);if(n<o.baseVersion||e>this.lastOperation.baseVersion)return[];let a=this._baseVersionToOperationIndex.get(e);void 0===a&&(a=0);let r=this._baseVersionToOperationIndex.get(n);return void 0===r&&(r=this._operations.length-1),this._operations.slice(a,r+1)}getOperation(e){const t=this._baseVersionToOperationIndex.get(e);if(void 0!==t)return this._operations[t]}setOperationAsUndone(e,t){this._undoPairs.set(t,e),this._undoneOperations.add(e)}isUndoingOperation(e){return this._undoPairs.has(e)}isUndoneOperation(e){return this._undoneOperations.has(e)}getUndoneOperation(e){return this._undoPairs.get(e)}reset(){this._version=0,this._undoPairs=new Map,this._operations=[],this._undoneOperations=new Set,this._gaps=new Map,this._baseVersionToOperationIndex=new Map}}class eh extends Rd{constructor(e,t,o="main"){super(t),this._document=e,this.rootName=o}get document(){return this._document}toJSON(){return this.rootName}}eh.prototype.is=function(e,t){return t?t===this.name&&("rootElement"===e||"model:rootElement"===e||"element"===e||"model:element"===e):"rootElement"===e||"model:rootElement"===e||"element"===e||"model:element"===e||"node"===e||"model:node"===e};const th="$graveyard";class oh extends(z()){constructor(e){super(),this.model=e,this.history=new Xm,this.selection=new mu(this),this.roots=new gr({idProperty:"rootName"}),this.differ=new Ym(e.markers),this._postFixers=new Set,this._hasSelectionChangedFromTheLastChangeBlock=!1,this.createRoot("$root",th),this.listenTo(e,"applyOperation",(e,t)=>{const o=t[0];o.isDocumentOperation&&this.differ.bufferOperation(o)},{priority:"high"}),this.listenTo(e,"applyOperation",(e,t)=>{const o=t[0];o.isDocumentOperation&&this.history.addOperation(o)},{priority:"low"}),this.listenTo(this.selection,"change",()=>{this._hasSelectionChangedFromTheLastChangeBlock=!0}),this.listenTo(e.markers,"update",(e,t,o,n,a)=>{const r={...t.getData(),range:n};this.differ.bufferMarkerChange(t.name,a,r),null===o&&t.on("change",(e,o)=>{const n=t.getData();this.differ.bufferMarkerChange(t.name,{...n,range:o},n)})})}get version(){return this.history.version}set version(e){this.history.version=e}get graveyard(){return this.getRoot(th)}createRoot(e="$root",t="main"){if(this.roots.get(t))throw new x("model-document-createroot-name-exists",this,{name:t});const o=new eh(this,e,t);return this.roots.add(o),o}destroy(){this.selection.destroy(),this.stopListening()}getRoot(e="main"){return this.roots.get(e)}getRootNames(){return Array.from(this.roots,e=>e.rootName).filter(e=>e!=th)}registerPostFixer(e){this._postFixers.add(e)}toJSON(){const e=Ki(this);return e.selection="[engine.model.DocumentSelection]",e.model="[engine.model.Model]",e}_handleChangeBlock(e){this._hasDocumentChangedFromTheLastChangeBlock()&&(this._callPostFixers(e),this.selection.refresh(),this.differ.hasDataChanges()?this.fire("change:data",e.batch):this.fire("change",e.batch),this.selection.refresh(),this.differ.reset()),this._hasSelectionChangedFromTheLastChangeBlock=!1}_hasDocumentChangedFromTheLastChangeBlock(){return!this.differ.isEmpty||this._hasSelectionChangedFromTheLastChangeBlock}_getDefaultRoot(){for(const e of this.roots)if(e!==this.graveyard)return e;return this.graveyard}_getDefaultRange(){const e=this._getDefaultRoot(),t=this.model,o=t.schema,n=t.createPositionFromPath(e,[0]);return o.getNearestSelectionRange(n)||t.createRange(n)}_validateSelectionRange(e){return nh(e.start)&&nh(e.end)}_callPostFixers(e){let t=!1;do{for(const o of this._postFixers)if(this.selection.refresh(),t=o(e),t)break}while(t)}}function nh(e){const t=e.textNode;if(t){const o=t.data,n=e.offset-t.startOffset;return!yr(o,n)&&!Or(o,n)}return!0}class ah extends(z()){constructor(){super(...arguments),this._markers=new Map}[Symbol.iterator](){return this._markers.values()}has(e){const t=e instanceof rh?e.name:e;return this._markers.has(t)}get(e){return this._markers.get(e)||null}_set(e,t,o=!1,n=!1){const a=e instanceof rh?e.name:e;if(a.includes(","))throw new x("markercollection-incorrect-marker-name",this);const r=this._markers.get(a);if(r){const e=r.getData(),i=r.getRange();let l=!1;return i.isEqual(t)||(r._attachLiveRange(su.fromRange(t)),l=!0),o!=r.managedUsingOperations&&(r._managedUsingOperations=o,l=!0),"boolean"==typeof n&&n!=r.affectsData&&(r._affectsData=n,l=!0),l&&this.fire("update:"+a,r,i,t,e),r}const i=su.fromRange(t),l=new rh(a,i,o,n);return this._markers.set(a,l),this.fire("update:"+a,l,null,t,{...l.getData(),range:null}),l}_remove(e){const t=e instanceof rh?e.name:e,o=this._markers.get(t);return!!o&&(this._markers.delete(t),this.fire("update:"+t,o,o.getRange(),null,o.getData()),this._destroyMarker(o),!0)}_refresh(e){const t=e instanceof rh?e.name:e,o=this._markers.get(t);if(!o)throw new x("markercollection-refresh-marker-not-exists",this);const n=o.getRange();this.fire("update:"+t,o,n,n,o.getData())}*getMarkersAtPosition(e){for(const t of this)t.getRange().containsPosition(e)&&(yield t)}*getMarkersIntersectingRange(e){for(const t of this)null!==t.getRange().getIntersection(e)&&(yield t)}destroy(){for(const e of this._markers.values())this._destroyMarker(e);this._markers=null,this.stopListening()}*getMarkersGroup(e){for(const t of this._markers.values())t.name.startsWith(e+":")&&(yield t)}_destroyMarker(e){e.stopListening(),e._detachLiveRange()}}class rh extends(z(zd)){constructor(e,t,o,n){super(),this.name=e,this._liveRange=this._attachLiveRange(t),this._managedUsingOperations=o,this._affectsData=n}get managedUsingOperations(){if(!this._liveRange)throw new x("marker-destroyed",this);return this._managedUsingOperations}get affectsData(){if(!this._liveRange)throw new x("marker-destroyed",this);return this._affectsData}getData(){return{range:this.getRange(),affectsData:this.affectsData,managedUsingOperations:this.managedUsingOperations}}getStart(){if(!this._liveRange)throw new x("marker-destroyed",this);return this._liveRange.start.clone()}getEnd(){if(!this._liveRange)throw new x("marker-destroyed",this);return this._liveRange.end.clone()}getRange(){if(!this._liveRange)throw new x("marker-destroyed",this);return this._liveRange.toRange()}_attachLiveRange(e){return this._liveRange&&this._detachLiveRange(),e.delegate("change:range").to(this),e.delegate("change:content").to(this),this._liveRange=e,e}_detachLiveRange(){this._liveRange.stopDelegating("change:range",this),this._liveRange.stopDelegating("change:content",this),this._liveRange.detach(),this._liveRange=null}}rh.prototype.is=function(e){return"marker"===e||"model:marker"===e};class ih extends pm{constructor(e,t){super(null),this.sourcePosition=e.clone(),this.howMany=t}get type(){return"detach"}toJSON(){const e=super.toJSON();return e.sourcePosition=this.sourcePosition.toJSON(),e}_validate(){if(this.sourcePosition.root.document)throw new x("detach-operation-on-document-node",this)}_execute(){gm(Qd._createFromPositionAndShift(this.sourcePosition,this.howMany))}static get className(){return"DetachOperation"}}class lh extends zd{constructor(e){super(),this.markers=new Map,this._children=new Md,e&&this._insertChild(0,e)}[Symbol.iterator](){return this.getChildren()}get childCount(){return this._children.length}get maxOffset(){return this._children.maxOffset}get isEmpty(){return 0===this.childCount}get nextSibling(){return null}get previousSibling(){return null}get root(){return this}get parent(){return null}get document(){return null}getAncestors(){return[]}getChild(e){return this._children.getNode(e)}getChildren(){return this._children[Symbol.iterator]()}getChildIndex(e){return this._children.getNodeIndex(e)}getChildStartOffset(e){return this._children.getNodeStartOffset(e)}getPath(){return[]}getNodeByPath(e){let t=this;for(const o of e)t=t.getChild(t.offsetToIndex(o));return t}offsetToIndex(e){return this._children.offsetToIndex(e)}toJSON(){const e=[];for(const t of this._children)e.push(t.toJSON());return e}static fromJSON(e){const t=[];for(const o of e)o.name?t.push(Rd.fromJSON(o)):t.push(Ld.fromJSON(o));return new lh(t)}_appendChild(e){this._insertChild(this.childCount,e)}_insertChild(e,t){const o=function(e){return"string"==typeof e?[new Ld(e)]:(ie(e)||(e=[e]),Array.from(e).map(e=>"string"==typeof e?new Ld(e):e instanceof Pd?new Ld(e.data,e.getAttributes()):e))}(t);for(const n of o)null!==n.parent&&n._remove(),n.parent=this;this._children._insertNodes(e,o)}_removeChildren(e,t=1){const o=this._children._removeNodes(e,t);for(const n of o)n.parent=null;return o}}lh.prototype.is=function(e){return"documentFragment"===e||"model:documentFragment"===e};class sh{constructor(e,t){this.model=e,this.batch=t}createText(e,t){return new Ld(e,t)}createElement(e,t){return new Rd(e,t)}createDocumentFragment(){return new lh}cloneElement(e,t=!0){return e._clone(t)}insert(e,t,o=0){if(this._assertWriterUsedCorrectly(),e instanceof Ld&&""==e.data)return;const n=Ud._createAt(t,o);if(e.parent){if(hh(e.root,n.root))return void this.move(Qd._createOn(e),n);if(e.root.document)throw new x("model-writer-insert-forbidden-move",this);this.remove(e)}const a=n.root.document?n.root.document.version:null,r=new Om(n,e,a);if(e instanceof Ld&&(r.shouldReceiveAttributes=!0),this.batch.addOperation(r),this.model.applyOperation(r),e instanceof lh)for(const[i,l]of e.markers){const e=Ud._createAt(l.root,0),t={range:new Qd(l.start._getCombined(e,n),l.end._getCombined(e,n)),usingOperation:!0,affectsData:!0};this.model.markers.has(i)?this.updateMarker(i,t):this.addMarker(i,t)}}insertText(e,t,o,n){t instanceof lh||t instanceof Rd||t instanceof Ud?this.insert(this.createText(e),t,o):this.insert(this.createText(e,t),o,n)}insertElement(e,t,o,n){t instanceof lh||t instanceof Rd||t instanceof Ud?this.insert(this.createElement(e),t,o):this.insert(this.createElement(e,t),o,n)}append(e,t){this.insert(e,t,"end")}appendText(e,t,o){t instanceof lh||t instanceof Rd?this.insert(this.createText(e),t,"end"):this.insert(this.createText(e,t),o,"end")}appendElement(e,t,o){t instanceof lh||t instanceof Rd?this.insert(this.createElement(e),t,"end"):this.insert(this.createElement(e,t),o,"end")}setAttribute(e,t,o){if(this._assertWriterUsedCorrectly(),o instanceof Qd){const n=o.getMinimalFlatRanges();for(const o of n)ch(this,e,t,o)}else dh(this,e,t,o)}setAttributes(e,t){for(const[o,n]of kr(e))this.setAttribute(o,n,t)}removeAttribute(e,t){if(this._assertWriterUsedCorrectly(),t instanceof Qd){const o=t.getMinimalFlatRanges();for(const t of o)ch(this,e,null,t)}else dh(this,e,null,t)}clearAttributes(e){this._assertWriterUsedCorrectly();const t=e=>{for(const t of e.getAttributeKeys())this.removeAttribute(t,e)};if(e instanceof Qd)for(const o of e.getItems())t(o);else t(e)}move(e,t,o){if(this._assertWriterUsedCorrectly(),!(e instanceof Qd))throw new x("writer-move-invalid-range",this);if(!e.isFlat)throw new x("writer-move-range-not-flat",this);const n=Ud._createAt(t,o);if(n.isEqual(e.start))return;if(this._addOperationForAffectedMarkers("move",e),!hh(e.root,n.root))throw new x("writer-move-different-document",this);const a=e.root.document?e.root.document.version:null,r=new ym(e.start,e.end.offset-e.start.offset,n,a);this.batch.addOperation(r),this.model.applyOperation(r)}remove(e){this._assertWriterUsedCorrectly();const t=(e instanceof Qd?e:Qd._createOn(e)).getMinimalFlatRanges().reverse();for(const o of t)this._addOperationForAffectedMarkers("move",o),mh(o.start,o.end.offset-o.start.offset,this.batch,this.model)}merge(e){this._assertWriterUsedCorrectly();const t=e.nodeBefore,o=e.nodeAfter;if(this._addOperationForAffectedMarkers("merge",e),!(t instanceof Rd))throw new x("writer-merge-no-element-before",this);if(!(o instanceof Rd))throw new x("writer-merge-no-element-after",this);e.root.document?this._merge(e):this._mergeDetached(e)}createPositionFromPath(e,t,o){return this.model.createPositionFromPath(e,t,o)}createPositionAt(e,t){return this.model.createPositionAt(e,t)}createPositionAfter(e){return this.model.createPositionAfter(e)}createPositionBefore(e){return this.model.createPositionBefore(e)}createRange(e,t){return this.model.createRange(e,t)}createRangeIn(e){return this.model.createRangeIn(e)}createRangeOn(e){return this.model.createRangeOn(e)}createSelection(...e){return this.model.createSelection(...e)}_mergeDetached(e){const t=e.nodeBefore,o=e.nodeAfter;this.move(Qd._createIn(o),Ud._createAt(t,"end")),this.remove(o)}_merge(e){const t=Ud._createAt(e.nodeBefore,"end"),o=Ud._createAt(e.nodeAfter,0),n=e.root.document.graveyard,a=new Ud(n,[0]),r=e.root.document.version,i=new Dm(o,e.nodeAfter.maxOffset,t,a,r);this.batch.addOperation(i),this.model.applyOperation(i)}rename(e,t){if(this._assertWriterUsedCorrectly(),!(e instanceof Rd))throw new x("writer-rename-not-element-instance",this);const o=e.root.document?e.root.document.version:null,n=new Am(Ud._createBefore(e),e.name,t,o);this.batch.addOperation(n),this.model.applyOperation(n)}split(e,t){this._assertWriterUsedCorrectly();let o,n,a=e.parent;if(!a.parent)throw new x("writer-split-element-no-parent",this);if(t||(t=a.parent),!e.parent.getAncestors({includeSelf:!0}).includes(t))throw new x("writer-split-invalid-limit-element",this);do{const t=a.root.document?a.root.document.version:null,r=a.maxOffset-e.offset,i=Em.getInsertionPosition(e),l=new Em(e,r,i,null,t);this.batch.addOperation(l),this.model.applyOperation(l),o||n||(o=a,n=e.parent.nextSibling),a=(e=this.createPositionAfter(e.parent)).parent}while(a!==t);return{position:e,range:new Qd(Ud._createAt(o,"end"),Ud._createAt(n,0))}}wrap(e,t){if(this._assertWriterUsedCorrectly(),!e.isFlat)throw new x("writer-wrap-range-not-flat",this);const o=t instanceof Rd?t:new Rd(t);if(o.childCount>0)throw new x("writer-wrap-element-not-empty",this);if(null!==o.parent)throw new x("writer-wrap-element-attached",this);this.insert(o,e.start);const n=new Qd(e.start.getShiftedBy(1),e.end.getShiftedBy(1));this.move(n,Ud._createAt(o,0))}unwrap(e){if(this._assertWriterUsedCorrectly(),null===e.parent)throw new x("writer-unwrap-element-no-parent",this);this.move(Qd._createIn(e),this.createPositionAfter(e)),this.remove(e)}addMarker(e,t){if(this._assertWriterUsedCorrectly(),!t||"boolean"!=typeof t.usingOperation)throw new x("writer-addmarker-no-usingoperation",this);const o=t.usingOperation,n=t.range,a=void 0!==t.affectsData&&t.affectsData;if(this.model.markers.has(e))throw new x("writer-addmarker-marker-exists",this);if(!n)throw new x("writer-addmarker-no-range",this);return o?(uh(this,e,null,n,a),this.model.markers.get(e)):this.model.markers._set(e,n,o,a)}updateMarker(e,t){this._assertWriterUsedCorrectly();const o="string"==typeof e?e:e.name,n=this.model.markers.get(o);if(!n)throw new x("writer-updatemarker-marker-not-exists",this);if(!t)return _("writer-updatemarker-reconvert-using-editingcontroller",{markerName:o}),void this.model.markers._refresh(n);const a="boolean"==typeof t.usingOperation,r="boolean"==typeof t.affectsData,i=r?t.affectsData:n.affectsData;if(!a&&!t.range&&!r)throw new x("writer-updatemarker-wrong-options",this);const l=n.getRange(),s=t.range?t.range:l;a&&t.usingOperation!==n.managedUsingOperations?t.usingOperation?uh(this,o,null,s,i):(uh(this,o,l,null,i),this.model.markers._set(o,s,void 0,i)):n.managedUsingOperations?uh(this,o,l,s,i):this.model.markers._set(o,s,void 0,i)}removeMarker(e){this._assertWriterUsedCorrectly();const t="string"==typeof e?e:e.name;if(!this.model.markers.has(t))throw new x("writer-removemarker-no-marker",this);const o=this.model.markers.get(t);o.managedUsingOperations?uh(this,t,o.getRange(),null,o.affectsData):this.model.markers._remove(t)}setSelection(...e){this._assertWriterUsedCorrectly(),this.model.document.selection._setTo(...e)}setSelectionFocus(e,t){this._assertWriterUsedCorrectly(),this.model.document.selection._setFocus(e,t)}setSelectionAttribute(e,t){if(this._assertWriterUsedCorrectly(),"string"==typeof e)this._setSelectionAttribute(e,t);else for(const[o,n]of kr(e))this._setSelectionAttribute(o,n)}removeSelectionAttribute(e){if(this._assertWriterUsedCorrectly(),"string"==typeof e)this._removeSelectionAttribute(e);else for(const t of e)this._removeSelectionAttribute(t)}overrideSelectionGravity(){return this.model.document.selection._overrideGravity()}restoreSelectionGravity(e){this.model.document.selection._restoreGravity(e)}_setSelectionAttribute(e,t){const o=this.model.document.selection;if(o.isCollapsed&&o.anchor.parent.isEmpty){const n=mu._getStoreAttributeKey(e);this.setAttribute(n,t,o.anchor.parent)}o._setAttribute(e,t)}_removeSelectionAttribute(e){const t=this.model.document.selection;if(t.isCollapsed&&t.anchor.parent.isEmpty){const o=mu._getStoreAttributeKey(e);this.removeAttribute(o,t.anchor.parent)}t._removeAttribute(e)}_assertWriterUsedCorrectly(){if(this.model._currentWriter!==this)throw new x("writer-incorrect-use",this)}_addOperationForAffectedMarkers(e,t){for(const o of this.model.markers){if(!o.managedUsingOperations)continue;const n=o.getRange();let a=!1;if("move"===e){const e=t;a=e.containsPosition(n.start)||e.start.isEqual(n.start)||e.containsPosition(n.end)||e.end.isEqual(n.end)}else{const e=t,o=e.nodeBefore,r=e.nodeAfter,i=n.start.parent==o&&n.start.isAtEnd,l=n.end.parent==r&&0==n.end.offset,s=n.end.nodeAfter==r,c=n.start.nodeAfter==r;a=i||l||s||c}a&&this.updateMarker(o.name,{range:n})}}}function ch(e,t,o,n){const a=e.model,r=a.document;let i,l,s,c=n.start;for(const u of n.getWalker({shallow:!0}))s=u.item.getAttribute(t),i&&l!=s&&(l!=o&&d(),c=i),i=u.nextPosition,l=s;function d(){const n=new Qd(c,i),s=n.root.document?r.version:null,d=new _m(n,t,l,o,s);e.batch.addOperation(d),a.applyOperation(d)}i instanceof Ud&&i!=c&&l!=o&&d()}function dh(e,t,o,n){const a=e.model,r=a.document,i=n.getAttribute(t);let l,s;if(i!=o){if(n.root===n){const e=n.document?r.version:null;s=new Nm(n,t,i,o,e)}else{l=new Qd(Ud._createBefore(n),e.createPositionAfter(n));const a=l.root.document?r.version:null;s=new _m(l,t,i,o,a)}e.batch.addOperation(s),a.applyOperation(s)}}function uh(e,t,o,n,a){const r=e.model,i=r.document,l=new jm(t,o,n,r.markers,!!a,i.version);e.batch.addOperation(l),r.applyOperation(l)}function mh(e,t,o,n){let a;if(e.root.document){const o=n.document,r=new Ud(o.graveyard,[0]);a=new ym(e,t,r,o.version)}else a=new ih(e,t);o.addOperation(a),n.applyOperation(a)}function hh(e,t){return e===t||e instanceof eh&&t instanceof eh}function ph(e){e.document.registerPostFixer(t=>function(e,t){const o=t.document.selection,n=t.schema,a=[];let r=!1;for(const i of o.getRanges()){const e=bh(i,n);e&&!e.isEqual(i)?(a.push(e),r=!0):a.push(i)}return r&&e.setSelection(function(e){const t=[...e],o=new Set;let n=1;for(;n<t.length;){const e=t[n],a=t.slice(0,n);for(const[r,i]of a.entries())if(!o.has(r))if(e.isEqual(i))o.add(r);else if(e.isIntersecting(i)){o.add(r),o.add(n);const a=e.getJoined(i);t.push(a)}n++}return t.filter((e,t)=>!o.has(t))}(a),{backward:o.isBackward}),!1}(t,e))}function bh(e,t){return e.isCollapsed?function(e,t){const o=e.start,n=t.getNearestSelectionRange(o);if(!n){const e=o.getAncestors().reverse().find(e=>t.isObject(e));return e?Qd._createOn(e):null}if(!n.isCollapsed)return n;const a=n.start;return o.isEqual(a)?null:new Qd(a)}(e,t):function(e,t){const{start:o,end:n}=e,a=t.checkChild(o,"$text"),r=t.checkChild(n,"$text"),i=t.getLimitElement(o),l=t.getLimitElement(n);if(i===l){if(a&&r)return null;if(function(e,t,o){const n=e.nodeAfter&&!o.isLimit(e.nodeAfter)||o.checkChild(e,"$text"),a=t.nodeBefore&&!o.isLimit(t.nodeBefore)||o.checkChild(t,"$text");return n||a}(o,n,t)){const e=o.nodeAfter&&t.isSelectable(o.nodeAfter)?null:t.getNearestSelectionRange(o,"forward"),a=n.nodeBefore&&t.isSelectable(n.nodeBefore)?null:t.getNearestSelectionRange(n,"backward"),r=e?e.start:o,i=a?a.end:n;return new Qd(r,i)}}const s=i&&!i.is("rootElement"),c=l&&!l.is("rootElement");if(s||c){const e=o.nodeAfter&&n.nodeBefore&&o.nodeAfter.parent===n.nodeBefore.parent,a=s&&(!e||!fh(o.nodeAfter,t)),r=c&&(!e||!fh(n.nodeBefore,t));let d=o,u=n;return a&&(d=Ud._createBefore(gh(i,t))),r&&(u=Ud._createAfter(gh(l,t))),new Qd(d,u)}return null}(e,t)}function gh(e,t){let o=e,n=o;for(;t.isLimit(n)&&n.parent;)o=n,n=n.parent;return o}function fh(e,t){return e&&t.isSelectable(e)}function vh(e,t,o={}){if(t.isCollapsed)return;const n=t.getFirstRange();if("$graveyard"==n.root.rootName)return;const a=e.schema;e.change(e=>{if(!o.doNotResetEntireContent&&function(e,t){const o=e.getLimitElement(t);if(!t.containsEntireContent(o))return!1;const n=t.getFirstRange();return n.start.parent!=n.end.parent&&e.checkChild(o,"paragraph")}(a,t))return void function(e,t){const o=e.model.schema.getLimitElement(t);e.remove(e.createRangeIn(o)),yh(e,e.createPositionAt(o,0),t)}(e,t);const r={};if(!o.doNotAutoparagraph){const e=t.getSelectedElement();e&&Object.assign(r,a.getAttributesWithProperty(e,"copyOnReplace",!0))}const[i,l]=function(e){const t=e.root.document.model,o=e.start;let n=e.end;if(t.hasContent(e,{ignoreMarkers:!0})){const o=function(e){const t=e.parent,o=t.root.document.model.schema,n=t.getAncestors({parentFirst:!0,includeSelf:!0});for(const a of n){if(o.isLimit(a))return null;if(o.isBlock(a))return a}}(n);if(o&&n.isTouching(t.createPositionAt(o,0))){const o=t.createSelection(e);t.modifySelection(o,{direction:"backward"});const a=o.getLastPosition(),r=t.createRange(a,n);t.hasContent(r,{ignoreMarkers:!0})||(n=a)}}return[Hm.fromPosition(o,"toPrevious"),Hm.fromPosition(n,"toNext")]}(n);i.isTouching(l)||e.remove(e.createRange(i,l)),o.leaveUnmerged||(function(e,t,o){const n=e.model;if(!Ch(e.model.schema,t,o))return;const[a,r]=function(e,t){const o=e.getAncestors(),n=t.getAncestors();let a=0;for(;o[a]&&o[a]==n[a];)a++;return[o[a],n[a]]}(t,o);a&&r&&(!n.hasContent(a,{ignoreMarkers:!0})&&n.hasContent(r,{ignoreMarkers:!0})?kh(e,t,o,a.parent):wh(e,t,o,a.parent))}(e,i,l),a.removeDisallowedAttributes(i.parent.getChildren(),e)),Oh(e,t,i),!o.doNotAutoparagraph&&function(e,t){const o=e.checkChild(t,"$text"),n=e.checkChild(t,"paragraph");return!o&&n}(a,i)&&yh(e,i,t,r),i.detach(),l.detach()})}function wh(e,t,o,n){const a=t.parent,r=o.parent;if(a!=n&&r!=n){for(t=e.createPositionAfter(a),(o=e.createPositionBefore(r)).isEqual(t)||e.insert(r,t),e.merge(t);o.parent.isEmpty;){const t=o.parent;o=e.createPositionBefore(t),e.remove(t)}Ch(e.model.schema,t,o)&&wh(e,t,o,n)}}function kh(e,t,o,n){const a=t.parent,r=o.parent;if(a!=n&&r!=n){for(t=e.createPositionAfter(a),(o=e.createPositionBefore(r)).isEqual(t)||e.insert(a,o);t.parent.isEmpty;){const o=t.parent;t=e.createPositionBefore(o),e.remove(o)}o=e.createPositionBefore(r),function(e,t){const o=t.nodeBefore,n=t.nodeAfter;o.name!=n.name&&e.rename(o,n.name),e.clearAttributes(o),e.setAttributes(Object.fromEntries(n.getAttributes()),o),e.merge(t)}(e,o),Ch(e.model.schema,t,o)&&kh(e,t,o,n)}}function Ch(e,t,o){const n=t.parent,a=o.parent;return n!=a&&!e.isLimit(n)&&!e.isLimit(a)&&function(e,t,o){const n=new Qd(e,t);for(const a of n.getWalker())if(o.isLimit(a.item))return!1;return!0}(t,o,e)}function yh(e,t,o,n={}){const a=e.createElement("paragraph");e.model.schema.setAllowedAttributes(a,n,e),e.insert(a,t),Oh(e,o,e.createPositionAt(a,0))}function Oh(e,t,o){t instanceof mu?e.setSelection(o):t.setTo(o)}function jh(e,t){const o=[];Array.from(e.getItems({direction:"backward"})).map(e=>t.createRangeOn(e)).filter(t=>(t.start.isAfter(e.start)||t.start.isEqual(e.start))&&(t.end.isBefore(e.end)||t.end.isEqual(e.end))).forEach(e=>{o.push(e.start.parent),t.remove(e)}),o.forEach(e=>{let o=e;for(;o.parent&&o.isEmpty;){const e=t.createRangeOn(o);o=o.parent,t.remove(e)}})}class xh{constructor(e,t,o){this._firstNode=null,this._lastNode=null,this._lastAutoParagraph=null,this._filterAttributesOf=[],this._affectedStart=null,this._affectedEnd=null,this._nodeToSelect=null,this.model=e,this.writer=t,this.position=o,this.canMergeWith=new Set([this.position.parent]),this.schema=e.schema,this._documentFragment=t.createDocumentFragment(),this._documentFragmentPosition=t.createPositionAt(this._documentFragment,0)}handleNodes(e){for(const t of Array.from(e))this._handleNode(t);this._insertPartialFragment(),this._lastAutoParagraph&&this._updateLastNodeFromAutoParagraph(this._lastAutoParagraph),this._mergeOnRight(),this.schema.removeDisallowedAttributes(this._filterAttributesOf,this.writer),this._filterAttributesOf=[]}_updateLastNodeFromAutoParagraph(e){const t=this.writer.createPositionAfter(this._lastNode),o=this.writer.createPositionAfter(e);if(o.isAfter(t)){if(this._lastNode=e,this.position.parent!=e||!this.position.isAtEnd)throw new x("insertcontent-invalid-insertion-position",this);this.position=o,this._setAffectedBoundaries(this.position)}}getSelectionRange(){return this._nodeToSelect?Qd._createOn(this._nodeToSelect):this.model.schema.getNearestSelectionRange(this.position)}getAffectedRange(){return this._affectedStart?new Qd(this._affectedStart,this._affectedEnd):null}destroy(){this._affectedStart&&this._affectedStart.detach(),this._affectedEnd&&this._affectedEnd.detach()}_handleNode(e){if(this.schema.isObject(e))return void this._handleObject(e);let t=this._checkAndAutoParagraphToAllowedPosition(e);t||(t=this._checkAndSplitToAllowedPosition(e),t)?(this._appendToFragment(e),this._firstNode||(this._firstNode=e),this._lastNode=e):this._handleDisallowedNode(e)}_insertPartialFragment(){if(this._documentFragment.isEmpty)return;const e=Hm.fromPosition(this.position,"toNext");this._setAffectedBoundaries(this.position),this._documentFragment.getChild(0)==this._firstNode&&(this.writer.insert(this._firstNode,this.position),this._mergeOnLeft(),this.position=e.toPosition()),this._documentFragment.isEmpty||this.writer.insert(this._documentFragment,this.position),this._documentFragmentPosition=this.writer.createPositionAt(this._documentFragment,0),this.position=e.toPosition(),e.detach()}_handleObject(e){this._checkAndSplitToAllowedPosition(e)?this._appendToFragment(e):this._tryAutoparagraphing(e)}_handleDisallowedNode(e){e.is("element")?this.handleNodes(e.getChildren()):this._tryAutoparagraphing(e)}_appendToFragment(e){if(!this.schema.checkChild(this.position,e))throw new x("insertcontent-wrong-position",this,{node:e,position:this.position});this.writer.insert(e,this._documentFragmentPosition),this._documentFragmentPosition=this._documentFragmentPosition.getShiftedBy(e.offsetSize),this.schema.isObject(e)&&!this.schema.checkChild(this.position,"$text")?this._nodeToSelect=e:this._nodeToSelect=null,this._filterAttributesOf.push(e)}_setAffectedBoundaries(e){this._affectedStart||(this._affectedStart=Hm.fromPosition(e,"toPrevious")),this._affectedEnd&&!this._affectedEnd.isBefore(e)||(this._affectedEnd&&this._affectedEnd.detach(),this._affectedEnd=Hm.fromPosition(e,"toNext"))}_mergeOnLeft(){const e=this._firstNode;if(!(e instanceof Rd))return;if(!this._canMergeLeft(e))return;const t=Hm._createBefore(e);t.stickiness="toNext";const o=Hm.fromPosition(this.position,"toNext");this._affectedStart.isEqual(t)&&(this._affectedStart.detach(),this._affectedStart=Hm._createAt(t.nodeBefore,"end","toPrevious")),this._firstNode===this._lastNode&&(this._firstNode=t.nodeBefore,this._lastNode=t.nodeBefore),this.writer.merge(t),t.isEqual(this._affectedEnd)&&this._firstNode===this._lastNode&&(this._affectedEnd.detach(),this._affectedEnd=Hm._createAt(t.nodeBefore,"end","toNext")),this.position=o.toPosition(),o.detach(),this._filterAttributesOf.push(this.position.parent),t.detach()}_mergeOnRight(){const e=this._lastNode;if(!(e instanceof Rd))return;if(!this._canMergeRight(e))return;const t=Hm._createAfter(e);if(t.stickiness="toNext",!this.position.isEqual(t))throw new x("insertcontent-invalid-insertion-position",this);this.position=Ud._createAt(t.nodeBefore,"end");const o=Hm.fromPosition(this.position,"toPrevious");this._affectedEnd.isEqual(t)&&(this._affectedEnd.detach(),this._affectedEnd=Hm._createAt(t.nodeBefore,"end","toNext")),this._firstNode===this._lastNode&&(this._firstNode=t.nodeBefore,this._lastNode=t.nodeBefore),this.writer.merge(t),t.getShiftedBy(-1).isEqual(this._affectedStart)&&this._firstNode===this._lastNode&&(this._affectedStart.detach(),this._affectedStart=Hm._createAt(t.nodeBefore,0,"toPrevious")),this.position=o.toPosition(),o.detach(),this._filterAttributesOf.push(this.position.parent),t.detach()}_canMergeLeft(e){const t=e.previousSibling;return t instanceof Rd&&this.canMergeWith.has(t)&&this.model.schema.checkMerge(t,e)}_canMergeRight(e){const t=e.nextSibling;return t instanceof Rd&&this.canMergeWith.has(t)&&this.model.schema.checkMerge(e,t)}_tryAutoparagraphing(e){const t=this.writer.createElement("paragraph");this._getAllowedIn(this.position.parent,t)&&this.schema.checkChild(t,e)&&(t._appendChild(e),this._handleNode(t))}_checkAndAutoParagraphToAllowedPosition(e){if(this.schema.checkChild(this.position.parent,e))return!0;if(!this.schema.checkChild(this.position.parent,"paragraph")||!this.schema.checkChild("paragraph",e))return!1;this._insertPartialFragment();const t=this.writer.createElement("paragraph");return this.writer.insert(t,this.position),this._setAffectedBoundaries(this.position),this._lastAutoParagraph=t,this.position=this.writer.createPositionAt(t,0),!0}_checkAndSplitToAllowedPosition(e){const t=this._getAllowedIn(this.position.parent,e);if(!t)return!1;for(t!=this.position.parent&&this._insertPartialFragment();t!=this.position.parent;)if(this.position.isAtStart){const e=this.position.parent;this.position=this.writer.createPositionBefore(e),e.isEmpty&&e.parent===t&&this.writer.remove(e)}else if(this.position.isAtEnd)this.position=this.writer.createPositionAfter(this.position.parent);else{const e=this.writer.createPositionAfter(this.position.parent);this._setAffectedBoundaries(this.position),this.writer.split(this.position),this.position=e,this.canMergeWith.add(this.position.nodeAfter)}return!0}_getAllowedIn(e,t){return this.schema.checkChild(e,t)?e:this.schema.isLimit(e)?null:this._getAllowedIn(e.parent,t)}}function _h(e,t,o="auto"){const n=e.getSelectedElement();if(n&&t.schema.isObject(n)&&!t.schema.isInline(n))return"before"==o||"after"==o?t.createRange(t.createPositionAt(n,o)):t.createRangeOn(n);const a=fr(e.getSelectedBlocks());if(!a)return t.createRange(e.focus);if(a.isEmpty)return t.createRange(t.createPositionAt(a,0));const r=t.createPositionAfter(a);return e.focus.isTouching(r)?t.createRange(r):t.createRange(t.createPositionBefore(a))}function Vh(e,t,o,n,a={}){if(!e.schema.isObject(t))throw new x("insertobject-element-not-an-object",e,{object:t});let r;r=o?o instanceof nu||o instanceof mu?o:e.createSelection(o,n):e.document.selection;let i=r;a.findOptimalPosition&&e.schema.isBlock(t)&&(i=e.createSelection(_h(r,e,a.findOptimalPosition)));const l=fr(r.getSelectedBlocks()),s={};return l&&Object.assign(s,e.schema.getAttributesWithProperty(l,"copyOnReplace",!0)),e.change(o=>{i.isCollapsed||e.deleteContent(i,{doNotAutoparagraph:!0});let n=t;const r=i.anchor.parent;!e.schema.checkChild(r,t)&&e.schema.checkChild(r,"paragraph")&&e.schema.checkChild("paragraph",t)&&(n=o.createElement("paragraph"),o.insert(t,n)),e.schema.setAllowedAttributes(n,s,o);const l=e.insertContent(n,i);return l.isCollapsed||a.setSelection&&function(e,t,o,n){const a=e.model;if("on"==o)return void e.setSelection(t,"on");if("after"!=o)throw new x("insertobject-invalid-place-parameter-value",a);let r=t.nextSibling;if(a.schema.isInline(t))return void e.setSelection(t,"after");const i=r&&a.schema.checkChild(r,"$text");!i&&a.schema.checkChild(t.parent,"paragraph")&&(r=e.createElement("paragraph"),a.schema.setAllowedAttributes(r,n,e),a.insertContent(r,e.createPositionAfter(t))),r&&e.setSelection(r,0)}(o,t,a.setSelection,s),l})}const Ah=' ,.?!:;"-()';function Nh(e,t){const{isForward:o,walker:n,unit:a,schema:r,treatEmojiAsSingleUnit:i}=e,{type:l,item:s,nextPosition:c}=t;if("text"==l)return"word"===e.unit?function(e,t){let o=e.position.textNode;for(o||(o=t?e.position.nodeAfter:e.position.nodeBefore);o&&o.is("$text");){const n=e.position.offset-o.startOffset;if(Th(o,n,t))o=t?e.position.nodeAfter:e.position.nodeBefore;else{if(Eh(o.data,n,t))break;e.next()}}return e.position}(n,o):function(e,t,o){const n=e.position.textNode;if(n){const a=n.data;let r=e.position.offset-n.startOffset;for(;yr(a,r)||"character"==t&&Or(a,r)||o&&xr(a,r);)e.next(),r=e.position.offset-n.startOffset}return e.position}(n,a,i);if(l==(o?"elementStart":"elementEnd")){if(r.isSelectable(s))return Ud._createAt(s,o?"after":"before");if(r.checkChild(c,"$text"))return c}else{if(r.isLimit(s))return void n.skip(()=>!0);if(r.checkChild(c,"$text"))return c}}function Dh(e,t){const o=e.root,n=Ud._createAt(o,t?"end":0);return t?new Qd(e,n):new Qd(n,e)}function Eh(e,t,o){const n=t+(o?0:-1);return Ah.includes(e.charAt(n))}function Th(e,t,o){return t===(o?e.offsetSize:0)}class Sh extends(J()){constructor(){super(),this.markers=new ah,this.document=new oh(this),this.schema=new Wu,this._pendingChanges=[],this._currentWriter=null,["insertContent","insertObject","deleteContent","modifySelection","getSelectedContent","applyOperation"].forEach(e=>this.decorate(e)),this.on("applyOperation",(e,t)=>{t[0]._validate()},{priority:"highest"}),this.schema.register("$root",{isLimit:!0}),this.schema.register("$container",{allowIn:["$root","$container"]}),this.schema.register("$block",{allowIn:["$root","$container"],isBlock:!0}),this.schema.register("$blockObject",{allowWhere:"$block",isBlock:!0,isObject:!0}),this.schema.register("$inlineObject",{allowWhere:"$text",allowAttributesOf:"$text",isInline:!0,isObject:!0}),this.schema.register("$text",{allowIn:"$block",isInline:!0,isContent:!0}),this.schema.register("$clipboardHolder",{allowContentOf:"$root",allowChildren:"$text",isLimit:!0}),this.schema.register("$documentFragment",{allowContentOf:"$root",allowChildren:"$text",isLimit:!0}),this.schema.register("$marker"),this.schema.addChildCheck((e,t)=>{if("$marker"===t.name)return!0}),ph(this),this.document.registerPostFixer(Tu)}change(e){try{return 0===this._pendingChanges.length?(this._pendingChanges.push({batch:new Km,callback:e}),this._runPendingChanges()[0]):e(this._currentWriter)}catch(e){x.rethrowUnexpectedError(e,this)}}enqueueChange(e,t){try{e?"function"==typeof e?(t=e,e=new Km):e instanceof Km||(e=new Km(e)):e=new Km,this._pendingChanges.push({batch:e,callback:t}),1==this._pendingChanges.length&&this._runPendingChanges()}catch(e){x.rethrowUnexpectedError(e,this)}}applyOperation(e){e._execute()}insertContent(e,t,o){return function(e,t,o,n){return e.change(a=>{let r;r=o?o instanceof nu||o instanceof mu?o:a.createSelection(o,n):e.document.selection,r.isCollapsed||e.deleteContent(r,{doNotAutoparagraph:!0});const i=new xh(e,a,r.anchor),l=[];let s;if(t.is("documentFragment")){if(t.markers.size){const e=[];for(const[o,n]of t.markers){const{start:t,end:a}=n,r=t.isEqual(a);e.push({position:t,name:o,isCollapsed:r},{position:a,name:o,isCollapsed:r})}e.sort(({position:e},{position:t})=>e.isBefore(t)?1:-1);for(const{position:o,name:n,isCollapsed:r}of e){let e=null,i=null;const s=o.parent===t&&o.isAtStart,c=o.parent===t&&o.isAtEnd;s||c?r&&(i=s?"start":"end"):(e=a.createElement("$marker"),a.insert(e,o)),l.push({name:n,element:e,collapsed:i})}}s=t.getChildren()}else s=[t];i.handleNodes(s);let c=i.getSelectionRange();if(t.is("documentFragment")&&l.length){const e=c?su.fromRange(c):null,t={};for(let o=l.length-1;o>=0;o--){const{name:e,element:n,collapsed:r}=l[o],s=!t[e];if(s&&(t[e]=[]),n){const o=a.createPositionAt(n,"before");t[e].push(o),a.remove(n)}else{const o=i.getAffectedRange();if(!o){r&&t[e].push(i.position);continue}r?t[e].push(o[r]):t[e].push(s?o.start:o.end)}}for(const[o,[n,r]]of Object.entries(t))n&&r&&n.root===r.root&&a.addMarker(o,{usingOperation:!0,affectsData:!0,range:new Qd(n,r)});e&&(c=e.toRange(),e.detach())}c&&(r instanceof mu?a.setSelection(c):r.setTo(c));const d=i.getAffectedRange()||e.createRange(r.anchor);return i.destroy(),d})}(this,e,t,o)}insertObject(e,t,o,n){return Vh(this,e,t,o,n)}deleteContent(e,t){vh(this,e,t)}modifySelection(e,t){!function(e,t,o={}){const n=e.schema,a="backward"!=o.direction,r=o.unit?o.unit:"character",i=!!o.treatEmojiAsSingleUnit,l=t.focus,s=new qd({boundaries:Dh(l,a),singleCharacters:!0,direction:a?"forward":"backward"}),c={walker:s,schema:n,isForward:a,unit:r,treatEmojiAsSingleUnit:i};let d;for(;d=s.next();){if(d.done)return;const o=Nh(c,d.value);if(o)return void(t instanceof mu?e.change(e=>{e.setSelectionFocus(o)}):t.setFocus(o))}}(this,e,t)}getSelectedContent(e){return function(e,t){return e.change(e=>{const o=e.createDocumentFragment(),n=t.getFirstRange();if(!n||n.isCollapsed)return o;const a=n.start.root,r=n.start.getCommonPath(n.end),i=a.getNodeByPath(r);let l;l=n.start.parent==n.end.parent?n:e.createRange(e.createPositionAt(i,n.start.path[r.length]),e.createPositionAt(i,n.end.path[r.length]+1));const s=l.end.offset-l.start.offset;for(const t of l.getItems({shallow:!0}))t.is("$textProxy")?e.appendText(t.data,t.getAttributes(),o):e.append(e.cloneElement(t,!0),o);if(l!=n){const t=n._getTransformedByMove(l.start,e.createPositionAt(o,0),s)[0],a=e.createRange(e.createPositionAt(o,0),t.start);jh(e.createRange(t.end,e.createPositionAt(o,"end")),e),jh(a,e)}return o})}(this,e)}hasContent(e,t={}){const o=e instanceof Qd?e:Qd._createIn(e);if(o.isCollapsed)return!1;const{ignoreWhitespaces:n=!1,ignoreMarkers:a=!1}=t;if(!a)for(const r of this.markers.getMarkersIntersectingRange(o))if(r.affectsData)return!0;for(const r of o.getItems())if(this.schema.isContent(r)){if(!r.is("$textProxy"))return!0;if(!n)return!0;if(-1!==r.data.search(/\S/))return!0}return!1}createPositionFromPath(e,t,o){return new Ud(e,t,o)}createPositionAt(e,t){return Ud._createAt(e,t)}createPositionAfter(e){return Ud._createAfter(e)}createPositionBefore(e){return Ud._createBefore(e)}createRange(e,t){return new Qd(e,t)}createRangeIn(e){return Qd._createIn(e)}createRangeOn(e){return Qd._createOn(e)}createSelection(...e){return new nu(...e)}createBatch(e){return new Km(e)}createOperationFromJSON(e){return Sm.fromJSON(e,this.document)}destroy(){this.document.destroy(),this.stopListening()}_runPendingChanges(){const e=[];this.fire("_beforeChanges");try{for(;this._pendingChanges.length;){const t=this._pendingChanges[0].batch;this._currentWriter=new sh(this,t);const o=this._pendingChanges[0].callback(this._currentWriter);e.push(o),this.document._handleChangeBlock(this._currentWriter),this._pendingChanges.shift(),this._currentWriter=null}}finally{this._pendingChanges.length=0,this._currentWriter=null,this.fire("_afterChanges")}return e}}class Bh extends yc{constructor(e){super(e),this.domEventType="click"}onDomEvent(e){this.fire(e.type,e)}}class Ih extends yc{constructor(e){super(e),this.domEventType=["mousedown","mouseup","mouseover","mouseout"]}onDomEvent(e){this.fire(e.type,e)}}class zh{constructor(e){this.document=e}createDocumentFragment(e){return new Is(this.document,e)}createElement(e,t,o){return new as(this.document,e,t,o)}createText(e){return new Qi(this.document,e)}clone(e,t=!1){return e._clone(t)}appendChild(e,t){return t._appendChild(e)}insertChild(e,t,o){return o._insertChild(e,t)}removeChildren(e,t,o){return o._removeChildren(e,t)}remove(e){const t=e.parent;return t?this.removeChildren(t.getChildIndex(e),1,t):[]}replace(e,t){const o=e.parent;if(o){const n=o.getChildIndex(e);return this.removeChildren(n,1,o),this.insertChild(n,t,o),!0}return!1}unwrapElement(e){const t=e.parent;if(t){const o=t.getChildIndex(e);this.remove(e),this.insertChild(o,e.getChildren(),t)}}rename(e,t){const o=new as(this.document,e,t.getAttributes(),t.getChildren());return this.replace(t,o)?o:null}setAttribute(e,t,o){o._setAttribute(e,t)}removeAttribute(e,t){t._removeAttribute(e)}addClass(e,t){t._addClass(e)}removeClass(e,t){t._removeClass(e)}setStyle(e,t,o){Ie(e)&&void 0===o?t._setStyle(e):o._setStyle(e,t)}removeStyle(e,t){t._removeStyle(e)}setCustomProperty(e,t,o){o._setCustomProperty(e,t)}removeCustomProperty(e,t){return t._removeCustomProperty(e)}createPositionAt(e,t){return ms._createAt(e,t)}createPositionAfter(e){return ms._createAfter(e)}createPositionBefore(e){return ms._createBefore(e)}createRange(e,t){return new hs(e,t)}createRangeOn(e){return hs._createOn(e)}createRangeIn(e){return hs._createIn(e)}createSelection(...e){return new bs(...e)}}const Fh=/^#([0-9a-f]{3,4}|[0-9a-f]{6}|[0-9a-f]{8})$/i,Mh=/^rgb\([ ]?([0-9]{1,3}[ %]?,[ ]?){2,3}[0-9]{1,3}[ %]?\)$/i,Lh=/^rgba\([ ]?([0-9]{1,3}[ %]?,[ ]?){3}(1|[0-9]+%|[0]?\.?[0-9]+)\)$/i,Ph=/^hsl\([ ]?([0-9]{1,3}[ %]?[,]?[ ]*){3}(1|[0-9]+%|[0]?\.?[0-9]+)?\)$/i,Rh=/^hsla\([ ]?([0-9]{1,3}[ %]?,[ ]?){2,3}(1|[0-9]+%|[0]?\.?[0-9]+)\)$/i,qh=new Set(["black","silver","gray","white","maroon","red","purple","fuchsia","green","lime","olive","yellow","navy","blue","teal","aqua","orange","aliceblue","antiquewhite","aquamarine","azure","beige","bisque","blanchedalmond","blueviolet","brown","burlywood","cadetblue","chartreuse","chocolate","coral","cornflowerblue","cornsilk","crimson","cyan","darkblue","darkcyan","darkgoldenrod","darkgray","darkgreen","darkgrey","darkkhaki","darkmagenta","darkolivegreen","darkorange","darkorchid","darkred","darksalmon","darkseagreen","darkslateblue","darkslategray","darkslategrey","darkturquoise","darkviolet","deeppink","deepskyblue","dimgray","dimgrey","dodgerblue","firebrick","floralwhite","forestgreen","gainsboro","ghostwhite","gold","goldenrod","greenyellow","grey","honeydew","hotpink","indianred","indigo","ivory","khaki","lavender","lavenderblush","lawngreen","lemonchiffon","lightblue","lightcoral","lightcyan","lightgoldenrodyellow","lightgray","lightgreen","lightgrey","lightpink","lightsalmon","lightseagreen","lightskyblue","lightslategray","lightslategrey","lightsteelblue","lightyellow","limegreen","linen","magenta","mediumaquamarine","mediumblue","mediumorchid","mediumpurple","mediumseagreen","mediumslateblue","mediumspringgreen","mediumturquoise","mediumvioletred","midnightblue","mintcream","mistyrose","moccasin","navajowhite","oldlace","olivedrab","orangered","orchid","palegoldenrod","palegreen","paleturquoise","palevioletred","papayawhip","peachpuff","peru","pink","plum","powderblue","rosybrown","royalblue","saddlebrown","salmon","sandybrown","seagreen","seashell","sienna","skyblue","slateblue","slategray","slategrey","snow","springgreen","steelblue","tan","thistle","tomato","turquoise","violet","wheat","whitesmoke","yellowgreen","activeborder","activecaption","appworkspace","background","buttonface","buttonhighlight","buttonshadow","buttontext","captiontext","graytext","highlight","highlighttext","inactiveborder","inactivecaption","inactivecaptiontext","infobackground","infotext","menu","menutext","scrollbar","threeddarkshadow","threedface","threedhighlight","threedlightshadow","threedshadow","window","windowframe","windowtext","rebeccapurple","currentcolor","transparent"]);function $h(e){return e.startsWith("#")?Fh.test(e):e.startsWith("rgb")?Mh.test(e)||Lh.test(e):e.startsWith("hsl")?Ph.test(e)||Rh.test(e):qh.has(e.toLowerCase())}const Uh=/^([+-]?[0-9]*([.][0-9]+)?(px|cm|mm|in|pc|pt|ch|em|ex|rem|vh|vw|vmin|vmax)|0)$/,Hh=/^[+-]?[0-9]*([.][0-9]+)?%$/,Wh=["repeat-x","repeat-y","repeat","space","round","no-repeat"];function Gh(e){return Wh.includes(e)}const Kh=["center","top","bottom","left","right"];function Yh(e){return Kh.includes(e)}const Qh=["fixed","scroll","local"];function Jh(e){return Qh.includes(e)}const Zh=/^url\(/;function Xh(e){return Zh.test(e)}function ep(e){return e.replace(/, /g,",").split(" ").map(e=>e.replace(/,/g,", "))}function tp(e){e.setNormalizer("background",e=>{const t={},o=ep(e);for(const n of o)Gh(n)?(t.repeat=t.repeat||[],t.repeat.push(n)):Yh(n)?(t.position=t.position||[],t.position.push(n)):Jh(n)?t.attachment=n:$h(n)?t.color=n:Xh(n)&&(t.image=n);return{path:"background",value:t}}),e.setNormalizer("background-color",e=>({path:"background.color",value:e})),e.setReducer("background",e=>{const t=[];return t.push(["background-color",e.color]),t}),e.setStyleRelation("background",["background-color"])}class op{constructor(){this._commands=new Map}add(e,t){this._commands.set(e,t)}get(e){return this._commands.get(e)}execute(e,...t){const o=this.get(e);if(!o)throw new x("commandcollection-command-not-found",this,{commandName:e});return o.execute(...t)}*names(){yield*this._commands.keys()}*commands(){yield*this._commands.values()}[Symbol.iterator](){return this._commands[Symbol.iterator]()}destroy(){for(const e of this.commands())e.destroy()}}class np extends wr{constructor(e){super(),this.editor=e}set(e,t,o={}){if("string"==typeof t){const e=t;t=(t,o)=>{this.editor.execute(e),o()}}super.set(e,t,o)}}class ap extends(J()){constructor(e={}){super();const t=this.constructor,o=e.language||t.defaultConfig&&t.defaultConfig.language;this._context=e.context||new zi({language:o}),this._context._addEditor(this,!e.context);const n=Array.from(t.builtinPlugins||[]);this.config=new fa(e,t.defaultConfig),this.config.define("plugins",n),this.config.define(this._context._getEditorConfig()),this.plugins=new Ii(this,n,this._context.plugins),this.locale=this._context.locale,this.t=this.locale.t,this._readOnlyLocks=new Set,this.commands=new op,this.set("state","initializing"),this.once("ready",()=>this.state="ready",{priority:"high"}),this.once("destroy",()=>this.state="destroyed",{priority:"high"}),this.model=new Sh;const a=new ts;this.data=new dm(this.model,a),this.editing=new qu(this.model,a),this.editing.view.document.bind("isReadOnly").to(this),this.conversion=new um([this.editing.downcastDispatcher,this.data.downcastDispatcher],this.data.upcastDispatcher),this.conversion.addAlias("dataDowncast",this.data.downcastDispatcher),this.conversion.addAlias("editingDowncast",this.editing.downcastDispatcher),this.keystrokes=new np(this),this.keystrokes.listenTo(this.editing.view.document)}get isReadOnly(){return this._readOnlyLocks.size>0}set isReadOnly(e){throw new x("editor-isreadonly-has-no-setter")}enableReadOnlyMode(e){if("string"!=typeof e&&"symbol"!=typeof e)throw new x("editor-read-only-lock-id-invalid",null,{lockId:e});this._readOnlyLocks.has(e)||(this._readOnlyLocks.add(e),1===this._readOnlyLocks.size&&this.fire("change:isReadOnly","isReadOnly",!0,!1))}disableReadOnlyMode(e){if("string"!=typeof e&&"symbol"!=typeof e)throw new x("editor-read-only-lock-id-invalid",null,{lockId:e});this._readOnlyLocks.has(e)&&(this._readOnlyLocks.delete(e),0===this._readOnlyLocks.size&&this.fire("change:isReadOnly","isReadOnly",!1,!0))}initPlugins(){const e=this.config,t=e.get("plugins"),o=e.get("removePlugins")||[],n=e.get("extraPlugins")||[],a=e.get("substitutePlugins")||[];return this.plugins.init(t.concat(n),o,a)}destroy(){let e=Promise.resolve();return"initializing"==this.state&&(e=new Promise(e=>this.once("ready",e))),e.then(()=>{this.fire("destroy"),this.stopListening(),this.commands.destroy()}).then(()=>this.plugins.destroy()).then(()=>{this.model.destroy(),this.data.destroy(),this.editing.destroy(),this.keystrokes.destroy()}).then(()=>this._context._removeEditor(this))}execute(e,...t){try{return this.commands.execute(e,...t)}catch(e){x.rethrowUnexpectedError(e,this)}}focus(){this.editing.view.focus()}}function rp(e){return class extends e{setData(e){this.data.set(e)}getData(e){return this.data.get(e)}}}{const e=rp(Object);rp.setData=e.prototype.setData,rp.getData=e.prototype.getData}function ip(e){return class extends e{updateSourceElement(e=this.data.get()){if(!this.sourceElement)throw new x("editor-missing-sourceelement",this);const t=this.config.get("updateSourceElementOnDestroy"),o=this.sourceElement instanceof HTMLTextAreaElement;Ma(this.sourceElement,t||o?e:"")}}}ip.updateSourceElement=ip(Object).prototype.updateSourceElement;class lp extends Fi{static get pluginName(){return"PendingActions"}init(){this.set("hasAny",!1),this._actions=new gr({idProperty:"_id"}),this._actions.delegate("add","remove").to(this)}add(e){if("string"!=typeof e)throw new x("pendingactions-add-invalid-message",this);const t=new(J());return t.set("message",e),this._actions.add(t),this.hasAny=!0,t}remove(e){this._actions.remove(e),this.hasAny=!!this._actions.length}get first(){return this._actions.get(0)}[Symbol.iterator](){return this._actions[Symbol.iterator]()}}const sp={bold:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M10.187 17H5.773c-.637 0-1.092-.138-1.364-.415-.273-.277-.409-.718-.409-1.323V4.738c0-.617.14-1.062.419-1.332.279-.27.73-.406 1.354-.406h4.68c.69 0 1.288.041 1.793.124.506.083.96.242 1.36.478.341.197.644.447.906.75a3.262 3.262 0 0 1 .808 2.162c0 1.401-.722 2.426-2.167 3.075C15.05 10.175 16 11.315 16 13.01a3.756 3.756 0 0 1-2.296 3.504 6.1 6.1 0 0 1-1.517.377c-.571.073-1.238.11-2 .11zm-.217-6.217H7v4.087h3.069c1.977 0 2.965-.69 2.965-2.072 0-.707-.256-1.22-.768-1.537-.512-.319-1.277-.478-2.296-.478zM7 5.13v3.619h2.606c.729 0 1.292-.067 1.69-.2a1.6 1.6 0 0 0 .91-.765c.165-.267.247-.566.247-.897 0-.707-.26-1.176-.778-1.409-.519-.232-1.31-.348-2.375-.348H7z"/></svg>',cancel:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="m11.591 10.177 4.243 4.242a1 1 0 0 1-1.415 1.415l-4.242-4.243-4.243 4.243a1 1 0 0 1-1.414-1.415l4.243-4.242L4.52 5.934A1 1 0 0 1 5.934 4.52l4.243 4.243 4.242-4.243a1 1 0 1 1 1.415 1.414l-4.243 4.243z"/></svg>',caption:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M2 16h9a1 1 0 0 1 0 2H2a1 1 0 0 1 0-2z"/><path d="M17 1a2 2 0 0 1 2 2v9a2 2 0 0 1-2 2H3a2 2 0 0 1-2-2V3a2 2 0 0 1 2-2h14zm0 1.5H3a.5.5 0 0 0-.492.41L2.5 3v9a.5.5 0 0 0 .41.492L3 12.5h14a.5.5 0 0 0 .492-.41L17.5 12V3a.5.5 0 0 0-.41-.492L17 2.5z" fill-opacity=".6"/></svg>',check:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M6.972 16.615a.997.997 0 0 1-.744-.292l-4.596-4.596a1 1 0 1 1 1.414-1.414l3.926 3.926 9.937-9.937a1 1 0 0 1 1.414 1.415L7.717 16.323a.997.997 0 0 1-.745.292z"/></svg>',cog:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="m11.333 2 .19 2.263a5.899 5.899 0 0 1 1.458.604L14.714 3.4 16.6 5.286l-1.467 1.733c.263.452.468.942.605 1.46L18 8.666v2.666l-2.263.19a5.899 5.899 0 0 1-.604 1.458l1.467 1.733-1.886 1.886-1.733-1.467a5.899 5.899 0 0 1-1.46.605L11.334 18H8.667l-.19-2.263a5.899 5.899 0 0 1-1.458-.604L5.286 16.6 3.4 14.714l1.467-1.733a5.899 5.899 0 0 1-.604-1.458L2 11.333V8.667l2.262-.189a5.899 5.899 0 0 1 .605-1.459L3.4 5.286 5.286 3.4l1.733 1.467a5.899 5.899 0 0 1 1.46-.605L8.666 2h2.666zM10 6.267a3.733 3.733 0 1 0 0 7.466 3.733 3.733 0 0 0 0-7.466z"/></svg>',eraser:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="m8.636 9.531-2.758 3.94a.5.5 0 0 0 .122.696l3.224 2.284h1.314l2.636-3.736L8.636 9.53zm.288 8.451L5.14 15.396a2 2 0 0 1-.491-2.786l6.673-9.53a2 2 0 0 1 2.785-.49l3.742 2.62a2 2 0 0 1 .491 2.785l-7.269 10.053-2.147-.066z"/><path d="M4 18h5.523v-1H4zm-2 0h1v-1H2z"/></svg>',image:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M6.91 10.54c.26-.23.64-.21.88.03l3.36 3.14 2.23-2.06a.64.64 0 0 1 .87 0l2.52 2.97V4.5H3.2v10.12l3.71-4.08zm10.27-7.51c.6 0 1.09.47 1.09 1.05v11.84c0 .59-.49 1.06-1.09 1.06H2.79c-.6 0-1.09-.47-1.09-1.06V4.08c0-.58.49-1.05 1.1-1.05h14.38zm-5.22 5.56a1.96 1.96 0 1 1 3.4-1.96 1.96 1.96 0 0 1-3.4 1.96z"/></svg>',lowVision:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M5.085 6.22 2.943 4.078a.75.75 0 1 1 1.06-1.06l2.592 2.59A11.094 11.094 0 0 1 10 5.068c4.738 0 8.578 3.101 8.578 5.083 0 1.197-1.401 2.803-3.555 3.887l1.714 1.713a.75.75 0 0 1-.09 1.138.488.488 0 0 1-.15.084.75.75 0 0 1-.821-.16L6.17 7.304c-.258.11-.51.233-.757.365l6.239 6.24-.006.005.78.78c-.388.094-.78.166-1.174.215l-1.11-1.11h.011L4.55 8.197a7.2 7.2 0 0 0-.665.514l-.112.098 4.897 4.897-.005.006 1.276 1.276a10.164 10.164 0 0 1-1.477-.117l-.479-.479-.009.009-4.863-4.863-.022.031a2.563 2.563 0 0 0-.124.2c-.043.077-.08.158-.108.241a.534.534 0 0 0-.028.133.29.29 0 0 0 .008.072.927.927 0 0 0 .082.226c.067.133.145.26.234.379l3.242 3.365.025.01.59.623c-3.265-.918-5.59-3.155-5.59-4.668 0-1.194 1.448-2.838 3.663-3.93zm7.07.531a4.632 4.632 0 0 1 1.108 5.992l.345.344.046-.018a9.313 9.313 0 0 0 2-1.112c.256-.187.5-.392.727-.613.137-.134.27-.277.392-.431.072-.091.141-.185.203-.286.057-.093.107-.19.148-.292a.72.72 0 0 0 .036-.12.29.29 0 0 0 .008-.072.492.492 0 0 0-.028-.133.999.999 0 0 0-.036-.096 2.165 2.165 0 0 0-.071-.145 2.917 2.917 0 0 0-.125-.2 3.592 3.592 0 0 0-.263-.335 5.444 5.444 0 0 0-.53-.523 7.955 7.955 0 0 0-1.054-.768 9.766 9.766 0 0 0-1.879-.891c-.337-.118-.68-.219-1.027-.301zm-2.85.21-.069.002a.508.508 0 0 0-.254.097.496.496 0 0 0-.104.679.498.498 0 0 0 .326.199l.045.005c.091.003.181.003.272.012a2.45 2.45 0 0 1 2.017 1.513c.024.061.043.125.069.185a.494.494 0 0 0 .45.287h.008a.496.496 0 0 0 .35-.158.482.482 0 0 0 .13-.335.638.638 0 0 0-.048-.219 3.379 3.379 0 0 0-.36-.723 3.438 3.438 0 0 0-2.791-1.543l-.028-.001h-.013z"/></svg>',importExport:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><g clip-path="url(#a)"><path clip-rule="evenodd" d="M19 4.5 14 0H3v12.673l.868-1.041c.185-.222.4-.402.632-.54V1.5h8v5h5v7.626a2.24 2.24 0 0 1 1.5.822V4.5ZM14 5V2l3.3 3H14Zm-3.692 12.5c.062.105.133.206.213.303L11.52 19H8v-.876a2.243 2.243 0 0 0 1.82-.624h.488Zm7.518-.657a.75.75 0 0 0-1.152-.96L15.5 17.29V12H14v5.29l-1.174-1.408a.75.75 0 0 0-1.152.96l2.346 2.816a.95.95 0 0 0 1.46 0l2.346-2.815Zm-15.056-.38a.75.75 0 0 1-.096-1.056l2.346-2.815a.95.95 0 0 1 1.46 0l2.346 2.815a.75.75 0 1 1-1.152.96L6.5 14.96V20H5v-5.04l-1.174 1.408a.75.75 0 0 1-1.056.096Z"/></g><defs><clipPath id="a"><path d="M0 0h20v20H0z"/></clipPath></defs></svg>',paragraph:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M10.5 5.5H7v5h3.5a2.5 2.5 0 1 0 0-5zM5 3h6.5v.025a5 5 0 0 1 0 9.95V13H7v4a1 1 0 0 1-1 1H5a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1z"/></svg>',plus:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M10 2a1 1 0 0 0-1 1v6H3a1 1 0 1 0 0 2h6v6a1 1 0 1 0 2 0v-6h6a1 1 0 1 0 0-2h-6V3a1 1 0 0 0-1-1Z"/></svg>',text:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><g clip-path="url(#a)"><path d="M9.816 11.5 7.038 4.785 4.261 11.5h5.555Zm.62 1.5H3.641l-1.666 4.028H.312l5.789-14h1.875l5.789 14h-1.663L10.436 13Z"/><path clip-rule="evenodd" d="m12.09 17-.534-1.292.848-1.971.545 1.319L12.113 17h-.023Zm1.142-5.187.545 1.319L15.5 9.13l1.858 4.316h-3.45l.398.965h3.467L18.887 17H20l-3.873-9h-1.254l-1.641 3.813Z"/></g><defs><clipPath id="a"><path d="M0 0h20v20H0z"/></clipPath></defs></svg>',alignBottom:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="m9.239 13.938-2.88-1.663a.75.75 0 0 1 .75-1.3L9 12.067V4.75a.75.75 0 1 1 1.5 0v7.318l1.89-1.093a.75.75 0 0 1 .75 1.3l-2.879 1.663a.752.752 0 0 1-.511.187.752.752 0 0 1-.511-.187zM4.25 17a.75.75 0 1 1 0-1.5h10.5a.75.75 0 0 1 0 1.5H4.25z"/></svg>',alignMiddle:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M9.75 11.875a.752.752 0 0 1 .508.184l2.883 1.666a.75.75 0 0 1-.659 1.344l-.091-.044-1.892-1.093.001 4.318a.75.75 0 1 1-1.5 0v-4.317l-1.89 1.092a.75.75 0 0 1-.75-1.3l2.879-1.663a.752.752 0 0 1 .51-.187zM15.25 9a.75.75 0 1 1 0 1.5H4.75a.75.75 0 1 1 0-1.5h10.5zM9.75.375a.75.75 0 0 1 .75.75v4.318l1.89-1.093.092-.045a.75.75 0 0 1 .659 1.344l-2.883 1.667a.752.752 0 0 1-.508.184.752.752 0 0 1-.511-.187L6.359 5.65a.75.75 0 0 1 .75-1.299L9 5.442V1.125a.75.75 0 0 1 .75-.75z"/></svg>',alignTop:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="m10.261 7.062 2.88 1.663a.75.75 0 0 1-.75 1.3L10.5 8.933v7.317a.75.75 0 1 1-1.5 0V8.932l-1.89 1.093a.75.75 0 0 1-.75-1.3l2.879-1.663a.752.752 0 0 1 .511-.187.752.752 0 0 1 .511.187zM15.25 4a.75.75 0 1 1 0 1.5H4.75a.75.75 0 0 1 0-1.5h10.5z"/></svg>',alignLeft:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M2 3.75c0 .414.336.75.75.75h14.5a.75.75 0 1 0 0-1.5H2.75a.75.75 0 0 0-.75.75zm0 8c0 .414.336.75.75.75h14.5a.75.75 0 1 0 0-1.5H2.75a.75.75 0 0 0-.75.75zm0 4c0 .414.336.75.75.75h9.929a.75.75 0 1 0 0-1.5H2.75a.75.75 0 0 0-.75.75zm0-8c0 .414.336.75.75.75h9.929a.75.75 0 1 0 0-1.5H2.75a.75.75 0 0 0-.75.75z"/></svg>',alignCenter:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M2 3.75c0 .414.336.75.75.75h14.5a.75.75 0 1 0 0-1.5H2.75a.75.75 0 0 0-.75.75zm0 8c0 .414.336.75.75.75h14.5a.75.75 0 1 0 0-1.5H2.75a.75.75 0 0 0-.75.75zm2.286 4c0 .414.336.75.75.75h9.928a.75.75 0 1 0 0-1.5H5.036a.75.75 0 0 0-.75.75zm0-8c0 .414.336.75.75.75h9.928a.75.75 0 1 0 0-1.5H5.036a.75.75 0 0 0-.75.75z"/></svg>',alignRight:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M18 3.75a.75.75 0 0 1-.75.75H2.75a.75.75 0 1 1 0-1.5h14.5a.75.75 0 0 1 .75.75zm0 8a.75.75 0 0 1-.75.75H2.75a.75.75 0 1 1 0-1.5h14.5a.75.75 0 0 1 .75.75zm0 4a.75.75 0 0 1-.75.75H7.321a.75.75 0 1 1 0-1.5h9.929a.75.75 0 0 1 .75.75zm0-8a.75.75 0 0 1-.75.75H7.321a.75.75 0 1 1 0-1.5h9.929a.75.75 0 0 1 .75.75z"/></svg>',alignJustify:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M2 3.75c0 .414.336.75.75.75h14.5a.75.75 0 1 0 0-1.5H2.75a.75.75 0 0 0-.75.75zm0 8c0 .414.336.75.75.75h14.5a.75.75 0 1 0 0-1.5H2.75a.75.75 0 0 0-.75.75zm0 4c0 .414.336.75.75.75h9.929a.75.75 0 1 0 0-1.5H2.75a.75.75 0 0 0-.75.75zm0-8c0 .414.336.75.75.75h14.5a.75.75 0 1 0 0-1.5H2.75a.75.75 0 0 0-.75.75z"/></svg>',objectLeft:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path opacity=".5" d="M2 3h16v1.5H2zm11.5 9H18v1.5h-4.5zm0-3H18v1.5h-4.5zm0-3H18v1.5h-4.5zM2 15h16v1.5H2z"/><path d="M12.003 7v5.5a1 1 0 0 1-1 1H2.996a1 1 0 0 1-1-1V7a1 1 0 0 1 1-1h8.007a1 1 0 0 1 1 1zm-1.506.5H3.5V12h6.997V7.5z"/></svg>',objectCenter:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path opacity=".5" d="M2 3h16v1.5H2zm0 12h16v1.5H2z"/><path d="M15.003 7v5.5a1 1 0 0 1-1 1H5.996a1 1 0 0 1-1-1V7a1 1 0 0 1 1-1h8.007a1 1 0 0 1 1 1zm-1.506.5H6.5V12h6.997V7.5z"/></svg>',objectRight:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path opacity=".5" d="M2 3h16v1.5H2zm0 12h16v1.5H2zm0-9h5v1.5H2zm0 3h5v1.5H2zm0 3h5v1.5H2z"/><path d="M18.003 7v5.5a1 1 0 0 1-1 1H8.996a1 1 0 0 1-1-1V7a1 1 0 0 1 1-1h8.007a1 1 0 0 1 1 1zm-1.506.5H9.5V12h6.997V7.5z"/></svg>',objectFullWidth:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path opacity=".5" d="M2 3h16v1.5H2zm0 12h16v1.5H2z"/><path d="M18 7v5.5a1 1 0 0 1-1 1H3a1 1 0 0 1-1-1V7a1 1 0 0 1 1-1h14a1 1 0 0 1 1 1zm-1.505.5H3.504V12h12.991V7.5z"/></svg>',objectInline:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path opacity=".5" d="M2 3h16v1.5H2zm11.5 9H18v1.5h-4.5zM2 15h16v1.5H2z"/><path d="M12.003 7v5.5a1 1 0 0 1-1 1H2.996a1 1 0 0 1-1-1V7a1 1 0 0 1 1-1h8.007a1 1 0 0 1 1 1zm-1.506.5H3.5V12h6.997V7.5z"/></svg>',objectBlockLeft:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path opacity=".5" d="M2 3h16v1.5H2zm0 12h16v1.5H2z"/><path d="M12.003 7v5.5a1 1 0 0 1-1 1H2.996a1 1 0 0 1-1-1V7a1 1 0 0 1 1-1h8.007a1 1 0 0 1 1 1zm-1.506.5H3.5V12h6.997V7.5z"/></svg>',objectBlockRight:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path opacity=".5" d="M2 3h16v1.5H2zm0 12h16v1.5H2z"/><path d="M18.003 7v5.5a1 1 0 0 1-1 1H8.996a1 1 0 0 1-1-1V7a1 1 0 0 1 1-1h8.007a1 1 0 0 1 1 1zm-1.506.5H9.5V12h6.997V7.5z"/></svg>',objectSizeFull:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"><path d="M2.5 17v1h-1v-1h1zm2 0v1h-1v-1h1zm2 0v1h-1v-1h1zm2 0v1h-1v-1h1zm2 0v1h-1v-1h1zm2 0v1h-1v-1h1zm2 0v1h-1v-1h1zm2 0v1h-1v-1h1zm2 0v1h-1v-1h1zM1 15.5v1H0v-1h1zm19 0v1h-1v-1h1zm-19-2v1H0v-1h1zm19 0v1h-1v-1h1zm-19-2v1H0v-1h1zm19 0v1h-1v-1h1zm-19-2v1H0v-1h1zm19 0v1h-1v-1h1zm-19-2v1H0v-1h1zm19 0v1h-1v-1h1zm-19-2v1H0v-1h1zm19 0v1h-1v-1h1zm0-2v1h-1v-1h1zm-19 0v1H0v-1h1zM14.5 2v1h-1V2h1zm2 0v1h-1V2h1zm2 0v1h-1V2h1zm-8 0v1h-1V2h1zm-2 0v1h-1V2h1zm-2 0v1h-1V2h1zm-2 0v1h-1V2h1zm8 0v1h-1V2h1zm-10 0v1h-1V2h1z"/><path d="M18.095 2H1.905C.853 2 0 2.895 0 4v12c0 1.105.853 2 1.905 2h16.19C19.147 18 20 17.105 20 16V4c0-1.105-.853-2-1.905-2zm0 1.5c.263 0 .476.224.476.5v12c0 .276-.213.5-.476.5H1.905a.489.489 0 0 1-.476-.5V4c0-.276.213-.5.476-.5h16.19z"/></svg>',objectSizeLarge:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"><path d="M2.5 17v1h-1v-1h1zm2 0v1h-1v-1h1zm2 0v1h-1v-1h1zm2 0v1h-1v-1h1zm2 0v1h-1v-1h1zm2 0v1h-1v-1h1zm2 0v1h-1v-1h1zm2 0v1h-1v-1h1zm2 0v1h-1v-1h1zM1 15.5v1H0v-1h1zm19 0v1h-1v-1h1zm-19-2v1H0v-1h1zm19 0v1h-1v-1h1zm-19-2v1H0v-1h1zm19 0v1h-1v-1h1zm-19-2v1H0v-1h1zm19 0v1h-1v-1h1zm-19-2v1H0v-1h1zm19 0v1h-1v-1h1zm-19-2v1H0v-1h1zm19 0v1h-1v-1h1zm0-2v1h-1v-1h1zm-19 0v1H0v-1h1zM14.5 2v1h-1V2h1zm2 0v1h-1V2h1zm2 0v1h-1V2h1zm-8 0v1h-1V2h1zm-2 0v1h-1V2h1zm-2 0v1h-1V2h1zm-2 0v1h-1V2h1zm8 0v1h-1V2h1zm-10 0v1h-1V2h1z"/><path d="M13 6H2a2 2 0 0 0-2 2v8a2 2 0 0 0 2 2h11a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2zm0 1.5a.5.5 0 0 1 .5.5v8a.5.5 0 0 1-.5.5H2a.5.5 0 0 1-.5-.5V8a.5.5 0 0 1 .5-.5h11z"/></svg>',objectSizeSmall:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"><path d="M2.5 17v1h-1v-1h1zm2 0v1h-1v-1h1zm2 0v1h-1v-1h1zm2 0v1h-1v-1h1zm2 0v1h-1v-1h1zm2 0v1h-1v-1h1zm2 0v1h-1v-1h1zm2 0v1h-1v-1h1zm2 0v1h-1v-1h1zM1 15.5v1H0v-1h1zm19 0v1h-1v-1h1zm-19-2v1H0v-1h1zm19 0v1h-1v-1h1zm-19-2v1H0v-1h1zm19 0v1h-1v-1h1zm-19-2v1H0v-1h1zm19 0v1h-1v-1h1zm-19-2v1H0v-1h1zm19 0v1h-1v-1h1zm-19-2v1H0v-1h1zm19 0v1h-1v-1h1zm0-2v1h-1v-1h1zm-19 0v1H0v-1h1zM14.5 2v1h-1V2h1zm2 0v1h-1V2h1zm2 0v1h-1V2h1zm-8 0v1h-1V2h1zm-2 0v1h-1V2h1zm-2 0v1h-1V2h1zm-2 0v1h-1V2h1zm8 0v1h-1V2h1zm-10 0v1h-1V2h1z"/><path d="M7 10H2a2 2 0 0 0-2 2v4a2 2 0 0 0 2 2h5a2 2 0 0 0 2-2v-4a2 2 0 0 0-2-2zm0 1.5a.5.5 0 0 1 .5.5v4a.5.5 0 0 1-.5.5H2a.5.5 0 0 1-.5-.5v-4a.5.5 0 0 1 .5-.5h5z"/></svg>',objectSizeMedium:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"><path d="M2.5 17v1h-1v-1h1zm2 0v1h-1v-1h1zm2 0v1h-1v-1h1zm2 0v1h-1v-1h1zm2 0v1h-1v-1h1zm2 0v1h-1v-1h1zm2 0v1h-1v-1h1zm2 0v1h-1v-1h1zm2 0v1h-1v-1h1zM1 15.5v1H0v-1h1zm19 0v1h-1v-1h1zm-19-2v1H0v-1h1zm19 0v1h-1v-1h1zm-19-2v1H0v-1h1zm19 0v1h-1v-1h1zm-19-2v1H0v-1h1zm19 0v1h-1v-1h1zm-19-2v1H0v-1h1zm19 0v1h-1v-1h1zm-19-2v1H0v-1h1zm19 0v1h-1v-1h1zm0-2v1h-1v-1h1zm-19 0v1H0v-1h1zM14.5 2v1h-1V2h1zm2 0v1h-1V2h1zm2 0v1h-1V2h1zm-8 0v1h-1V2h1zm-2 0v1h-1V2h1zm-2 0v1h-1V2h1zm-2 0v1h-1V2h1zm8 0v1h-1V2h1zm-10 0v1h-1V2h1z"/><path d="M10 8H2a2 2 0 0 0-2 2v6a2 2 0 0 0 2 2h8a2 2 0 0 0 2-2v-6a2 2 0 0 0-2-2zm0 1.5a.5.5 0 0 1 .5.5v6a.5.5 0 0 1-.5.5H2a.5.5 0 0 1-.5-.5v-6a.5.5 0 0 1 .5-.5h8z"/></svg>',pencil:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="m7.3 17.37-.061.088a1.518 1.518 0 0 1-.934.535l-4.178.663-.806-4.153a1.495 1.495 0 0 1 .187-1.058l.056-.086L8.77 2.639c.958-1.351 2.803-1.076 4.296-.03 1.497 1.047 2.387 2.693 1.433 4.055L7.3 17.37zM9.14 4.728l-5.545 8.346 3.277 2.294 5.544-8.346L9.14 4.728zM6.07 16.512l-3.276-2.295.53 2.73 2.746-.435zM9.994 3.506 13.271 5.8c.316-.452-.16-1.333-1.065-1.966-.905-.634-1.895-.78-2.212-.328zM8 18.5 9.375 17H19v1.5H8z"/></svg>',pilcrow:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M6.999 2H15a1 1 0 0 1 0 2h-1.004v13a1 1 0 1 1-2 0V4H8.999v13a1 1 0 1 1-2 0v-7A4 4 0 0 1 3 6a4 4 0 0 1 3.999-4z"/></svg>',quote:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M3 10.423a6.5 6.5 0 0 1 6.056-6.408l.038.67C6.448 5.423 5.354 7.663 5.22 10H9c.552 0 .5.432.5.986v4.511c0 .554-.448.503-1 .503h-5c-.552 0-.5-.449-.5-1.003v-4.574zm8 0a6.5 6.5 0 0 1 6.056-6.408l.038.67c-2.646.739-3.74 2.979-3.873 5.315H17c.552 0 .5.432.5.986v4.511c0 .554-.448.503-1 .503h-5c-.552 0-.5-.449-.5-1.003v-4.574z"/></svg>',threeVerticalDots:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><circle cx="9.5" cy="4.5" r="1.5"/><circle cx="9.5" cy="10.5" r="1.5"/><circle cx="9.5" cy="16.5" r="1.5"/></svg>'};var cp=r(5571),dp={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};Ar()(cp.Z,dp),cp.Z.locals;const{threeVerticalDots:up}=sp,mp={alignLeft:sp.alignLeft,bold:sp.bold,importExport:sp.importExport,paragraph:sp.paragraph,plus:sp.plus,text:sp.text,threeVerticalDots:sp.threeVerticalDots};class hp extends Er{constructor(e,t){super(e);const o=this.bindTemplate,n=this.t;this.options=t||{},this.set("ariaLabel",n("Editor toolbar")),this.set("maxWidth","auto"),this.items=this.createCollection(),this.focusTracker=new vr,this.keystrokes=new wr,this.set("class",void 0),this.set("isCompact",!1),this.itemsView=new pp(e),this.children=this.createCollection(),this.children.add(this.itemsView),this.focusables=this.createCollection();const a="rtl"===e.uiLanguageDirection;this._focusCycler=new xi({focusables:this.focusables,focusTracker:this.focusTracker,keystrokeHandler:this.keystrokes,actions:{focusPrevious:[a?"arrowright":"arrowleft","arrowup"],focusNext:[a?"arrowleft":"arrowright","arrowdown"]}});const r=["ck","ck-toolbar",o.to("class"),o.if("isCompact","ck-toolbar_compact")];var i;this.options.shouldGroupWhenFull&&this.options.isFloating&&r.push("ck-toolbar_floating"),this.setTemplate({tag:"div",attributes:{class:r,role:"toolbar","aria-label":o.to("ariaLabel"),style:{maxWidth:o.to("maxWidth")}},children:this.children,on:{mousedown:(i=this,i.bindTemplate.to(e=>{e.target===i.element&&e.preventDefault()}))}}),this._behavior=this.options.shouldGroupWhenFull?new gp(this):new bp(this)}render(){super.render();for(const e of this.items)this.focusTracker.add(e.element);this.items.on("add",(e,t)=>{this.focusTracker.add(t.element)}),this.items.on("remove",(e,t)=>{this.focusTracker.remove(t.element)}),this.keystrokes.listenTo(this.element),this._behavior.render(this)}destroy(){return this._behavior.destroy(),this.focusTracker.destroy(),this.keystrokes.destroy(),super.destroy()}focus(){this._focusCycler.focusFirst()}focusLast(){this._focusCycler.focusLast()}fillFromConfig(e,t,o){this.items.addMany(this._buildItemsFromConfig(e,t,o))}_buildItemsFromConfig(e,t,o){const n=Ni(e),a=o||n.removeItems;return this._cleanItemsConfiguration(n.items,t,a).map(e=>U(e)?this._createNestedToolbarDropdown(e,t,a):"|"===e?new Vi:"-"===e?new Ai:t.create(e)).filter(e=>!!e)}_cleanItemsConfiguration(e,t,o){const n=e.filter((e,n,a)=>"|"===e||-1===o.indexOf(e)&&("-"===e?!this.options.shouldGroupWhenFull||(_("toolbarview-line-break-ignored-when-grouping-items",a),!1):!(!U(e)&&!t.has(e))||(_("toolbarview-item-unavailable",{item:e}),!1)));return this._cleanSeparatorsAndLineBreaks(n)}_cleanSeparatorsAndLineBreaks(e){const t=e=>"-"!==e&&"|"!==e,o=e.length,n=e.findIndex(t);if(-1===n)return[];const a=o-e.slice().reverse().findIndex(t);return e.slice(n,a).filter((e,o,n)=>!!t(e)||!(o>0&&n[o-1]===e))}_createNestedToolbarDropdown(e,t,o){let{label:n,icon:a,items:r,tooltip:i=!0,withText:l=!1}=e;if(r=this._cleanItemsConfiguration(r,t,o),!r.length)return null;const s=_p(this.locale);return n||_("toolbarview-nested-toolbar-dropdown-missing-label",e),s.class="ck-toolbar__nested-toolbar-dropdown",s.buttonView.set({label:n,tooltip:i,withText:!!l}),!1!==a?s.buttonView.icon=mp[a]||a||up:s.buttonView.withText=!0,Vp(s,()=>s.toolbarView._buildItemsFromConfig(r,t,o)),s}}class pp extends Er{constructor(e){super(e),this.children=this.createCollection(),this.setTemplate({tag:"div",attributes:{class:["ck","ck-toolbar__items"]},children:this.children})}}class bp{constructor(e){const t=e.bindTemplate;e.set("isVertical",!1),e.itemsView.children.bindTo(e.items).using(e=>e),e.focusables.bindTo(e.items).using(e=>e),e.extendTemplate({attributes:{class:[t.if("isVertical","ck-toolbar_vertical")]}})}render(){}destroy(){}}class gp{constructor(e){this.view=e,this.viewChildren=e.children,this.viewFocusables=e.focusables,this.viewItemsView=e.itemsView,this.viewFocusTracker=e.focusTracker,this.viewLocale=e.locale,this.ungroupedItems=e.createCollection(),this.groupedItems=e.createCollection(),this.groupedItemsDropdown=this._createGroupedItemsDropdown(),this.resizeObserver=null,this.cachedPadding=null,this.shouldUpdateGroupingOnNextResize=!1,e.itemsView.children.bindTo(this.ungroupedItems).using(e=>e),this.ungroupedItems.on("change",this._updateFocusCycleableItems.bind(this)),e.children.on("change",this._updateFocusCycleableItems.bind(this)),e.items.on("change",(e,t)=>{const o=t.index,n=Array.from(t.added);for(const a of t.removed)o>=this.ungroupedItems.length?this.groupedItems.remove(a):this.ungroupedItems.remove(a);for(let a=o;a<o+n.length;a++){const e=n[a-o];a>this.ungroupedItems.length?this.groupedItems.add(e,a-this.ungroupedItems.length):this.ungroupedItems.add(e,a)}this._updateGrouping()}),e.extendTemplate({attributes:{class:["ck-toolbar_grouping"]}})}render(e){this.viewElement=e.element,this._enableGroupingOnResize(),this._enableGroupingOnMaxWidthChange(e)}destroy(){this.groupedItemsDropdown.destroy(),this.resizeObserver.destroy()}_updateGrouping(){if(!this.viewElement.ownerDocument.body.contains(this.viewElement))return;if(!$a(this.viewElement))return void(this.shouldUpdateGroupingOnNextResize=!0);const e=this.groupedItems.length;let t;for(;this._areItemsOverflowing;)this._groupLastItem(),t=!0;if(!t&&this.groupedItems.length){for(;this.groupedItems.length&&!this._areItemsOverflowing;)this._ungroupFirstItem();this._areItemsOverflowing&&this._groupLastItem()}this.groupedItems.length!==e&&this.view.fire("groupedItemsUpdate")}get _areItemsOverflowing(){if(!this.ungroupedItems.length)return!1;const e=this.viewElement,t=this.viewLocale.uiLanguageDirection,o=new Sa(e.lastChild),n=new Sa(e);if(!this.cachedPadding){const o=Va.window.getComputedStyle(e),n="ltr"===t?"paddingRight":"paddingLeft";this.cachedPadding=Number.parseInt(o[n])}return"ltr"===t?o.right>n.right-this.cachedPadding:o.left<n.left+this.cachedPadding}_enableGroupingOnResize(){let e;this.resizeObserver=new Fa(this.viewElement,t=>{e&&e===t.contentRect.width&&!this.shouldUpdateGroupingOnNextResize||(this.shouldUpdateGroupingOnNextResize=!1,this._updateGrouping(),e=t.contentRect.width)}),this._updateGrouping()}_enableGroupingOnMaxWidthChange(e){e.on("change:maxWidth",()=>{this._updateGrouping()})}_groupLastItem(){this.groupedItems.length||(this.viewChildren.add(new Vi),this.viewChildren.add(this.groupedItemsDropdown),this.viewFocusTracker.add(this.groupedItemsDropdown.element)),this.groupedItems.add(this.ungroupedItems.remove(this.ungroupedItems.last),0)}_ungroupFirstItem(){this.ungroupedItems.add(this.groupedItems.remove(this.groupedItems.first)),this.groupedItems.length||(this.viewChildren.remove(this.groupedItemsDropdown),this.viewChildren.remove(this.viewChildren.last),this.viewFocusTracker.remove(this.groupedItemsDropdown.element))}_createGroupedItemsDropdown(){const e=this.viewLocale,t=e.t,o=_p(e);return o.class="ck-toolbar__grouped-dropdown",o.panelPosition="ltr"===e.uiLanguageDirection?"sw":"se",Vp(o,this.groupedItems),o.buttonView.set({label:t("Show more items"),tooltip:!0,tooltipPosition:"rtl"===e.uiLanguageDirection?"se":"sw",icon:up}),o}_updateFocusCycleableItems(){this.viewFocusables.clear(),this.ungroupedItems.map(e=>{this.viewFocusables.add(e)}),this.groupedItems.length&&this.viewFocusables.add(this.groupedItemsDropdown)}}var fp=r(1162),vp={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};Ar()(fp.Z,vp),fp.Z.locals;class wp extends Er{constructor(e){super(e);const t=this.bindTemplate;this.items=this.createCollection(),this.focusTracker=new vr,this.keystrokes=new wr,this._focusCycler=new xi({focusables:this.items,focusTracker:this.focusTracker,keystrokeHandler:this.keystrokes,actions:{focusPrevious:"arrowup",focusNext:"arrowdown"}}),this.set("ariaLabel",void 0),this.setTemplate({tag:"ul",attributes:{class:["ck","ck-reset","ck-list"],"aria-label":t.to("ariaLabel")},children:this.items})}render(){super.render();for(const e of this.items)this.focusTracker.add(e.element);this.items.on("add",(e,t)=>{this.focusTracker.add(t.element)}),this.items.on("remove",(e,t)=>{this.focusTracker.remove(t.element)}),this.keystrokes.listenTo(this.element)}destroy(){super.destroy(),this.focusTracker.destroy(),this.keystrokes.destroy()}focus(){this._focusCycler.focusFirst()}focusLast(){this._focusCycler.focusLast()}}class kp extends Er{constructor(e){super(e);const t=this.bindTemplate;this.set("isVisible",!0),this.children=this.createCollection(),this.setTemplate({tag:"li",attributes:{class:["ck","ck-list__item",t.if("isVisible","ck-hidden",e=>!e)]},children:this.children})}focus(){this.children.first.focus()}}class Cp extends Er{constructor(e){super(e),this.setTemplate({tag:"li",attributes:{class:["ck","ck-list__separator"]}})}}var yp=r(5075),Op={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};Ar()(yp.Z,Op),yp.Z.locals;var jp=r(6875),xp={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};function _p(e,t=ki){const n=new t(e),a=new ji(e),r=new vi(e,n,a);return n.bind("isEnabled").to(r),n instanceof Oi?n.arrowView.bind("isOn").to(r,"isOpen"):n.bind("isOn").to(r,"isOpen"),function(e){(function(e){e.on("render",()=>{o({emitter:e,activator:()=>e.isOpen,callback:()=>{e.isOpen=!1},contextElements:[e.element]})})})(e),function(e){e.on("execute",t=>{t.source instanceof si||(e.isOpen=!1)})}(e),function(e){e.focusTracker.on("change:isFocused",(t,o,n)=>{e.isOpen&&!n&&(e.isOpen=!1)})}(e),function(e){e.keystrokes.set("arrowdown",(t,o)=>{e.isOpen&&(e.panelView.focus(),o())}),e.keystrokes.set("arrowup",(t,o)=>{e.isOpen&&(e.panelView.focusLast(),o())})}(e),function(e){e.on("change:isOpen",(t,o,n)=>{if(n)return;const a=e.panelView.element;a&&a.contains(Va.document.activeElement)&&e.buttonView.focus()})}(e),function(e){e.on("change:isOpen",(t,o,n)=>{n&&e.panelView.focus()},{priority:"low"})}(e)}(r),r}function Vp(e,t,o={}){e.extendTemplate({attributes:{class:["ck-toolbar-dropdown"]}}),e.isOpen?Ap(e,t,o):e.once("change:isOpen",()=>Ap(e,t,o),{priority:"highest"}),o.enableActiveItemFocusOnDropdownOpen&&Ep(e,()=>e.toolbarView.items.find(e=>e.isOn))}function Ap(e,t,o){const n=e.locale,a=n.t,r=e.toolbarView=new hp(n),i="function"==typeof t?t():t;r.ariaLabel=o.ariaLabel||a("Dropdown toolbar"),o.maxWidth&&(r.maxWidth=o.maxWidth),o.class&&(r.class=o.class),o.isCompact&&(r.isCompact=o.isCompact),o.isVertical&&(r.isVertical=!0),i instanceof _r?r.items.bindTo(i).using(e=>e):r.items.addMany(i),e.panelView.children.add(r),r.items.delegate("execute").to(e)}function Np(e,t,o={}){e.isOpen?Dp(e,t,o):e.once("change:isOpen",()=>Dp(e,t,o),{priority:"highest"}),Ep(e,()=>e.listView.items.find(e=>e instanceof kp&&e.children.first.isOn))}function Dp(e,t,o){const n=e.locale,a=e.listView=new wp(n),r="function"==typeof t?t():t;a.ariaLabel=o.ariaLabel,a.items.bindTo(r).using(e=>{if("separator"===e.type)return new Cp(n);if("button"===e.type||"switchbutton"===e.type){const t=new kp(n);let o;return o="button"===e.type?new ri(n):new si(n),o.bind(...Object.keys(e.model)).to(e.model),o.delegate("execute").to(t),t.children.add(o),t}return null}),e.panelView.children.add(a),a.items.delegate("execute").to(e)}function Ep(e,t){e.on("change:isOpen",()=>{if(!e.isOpen)return;const o=t();o&&("function"==typeof o.focus?o.focus():_("ui-dropdown-focus-child-on-open-child-missing-focus",{view:o}))},{priority:y.low-10})}Ar()(jp.Z,xp),jp.Z.locals;var Tp=r(8245),Sp={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};Ar()(Tp.Z,Sp),Tp.Z.locals;const Bp=La("px"),Ip=Va.document.body;class zp extends Er{constructor(e){super(e);const t=this.bindTemplate;this.set("top",0),this.set("left",0),this.set("position","arrow_nw"),this.set("isVisible",!1),this.set("withArrow",!0),this.set("class",void 0),this._pinWhenIsVisibleCallback=null,this.content=this.createCollection(),this.setTemplate({tag:"div",attributes:{class:["ck","ck-balloon-panel",t.to("position",e=>"ck-balloon-panel_"+e),t.if("isVisible","ck-balloon-panel_visible"),t.if("withArrow","ck-balloon-panel_with-arrow"),t.to("class")],style:{top:t.to("top",Bp),left:t.to("left",Bp)}},children:this.content})}show(){this.isVisible=!0}hide(){this.isVisible=!1}attachTo(e){this.show();const t=zp.defaultPositions,o=Object.assign({},{element:this.element,positions:[t.southArrowNorth,t.southArrowNorthMiddleWest,t.southArrowNorthMiddleEast,t.southArrowNorthWest,t.southArrowNorthEast,t.northArrowSouth,t.northArrowSouthMiddleWest,t.northArrowSouthMiddleEast,t.northArrowSouthWest,t.northArrowSouthEast,t.viewportStickyNorth],limiter:Ip,fitInViewport:!0},e),n=zp._getOptimalPosition(o),a=parseInt(n.left),r=parseInt(n.top),i=n.name,l=n.config||{},{withArrow:s=!0}=l;this.top=r,this.left=a,this.position=i,this.withArrow=s}pin(e){this.unpin(),this._pinWhenIsVisibleCallback=()=>{this.isVisible?this._startPinning(e):this._stopPinning()},this._startPinning(e),this.listenTo(this,"change:isVisible",this._pinWhenIsVisibleCallback)}unpin(){this._pinWhenIsVisibleCallback&&(this._stopPinning(),this.stopListening(this,"change:isVisible",this._pinWhenIsVisibleCallback),this._pinWhenIsVisibleCallback=null,this.hide())}_startPinning(e){this.attachTo(e);const t=Fp(e.target),o=e.limiter?Fp(e.limiter):Ip;this.listenTo(Va.document,"scroll",(n,a)=>{const r=a.target,i=t&&r.contains(t),l=o&&r.contains(o);!i&&!l&&t&&o||this.attachTo(e)},{useCapture:!0}),this.listenTo(Va.window,"resize",()=>{this.attachTo(e)})}_stopPinning(){this.stopListening(Va.document,"scroll"),this.stopListening(Va.window,"resize")}}function Fp(e){return ga(e)?e:Da(e)?e.commonAncestorContainer:"function"==typeof e?Fp(e()):null}function Mp(e={}){const{sideOffset:t=zp.arrowSideOffset,heightOffset:o=zp.arrowHeightOffset,stickyVerticalOffset:n=zp.stickyVerticalOffset,config:a}=e;return{northWestArrowSouthWest:(e,o)=>({top:r(e,o),left:e.left-t,name:"arrow_sw",...a&&{config:a}}),northWestArrowSouthMiddleWest:(e,o)=>({top:r(e,o),left:e.left-.25*o.width-t,name:"arrow_smw",...a&&{config:a}}),northWestArrowSouth:(e,t)=>({top:r(e,t),left:e.left-t.width/2,name:"arrow_s",...a&&{config:a}}),northWestArrowSouthMiddleEast:(e,o)=>({top:r(e,o),left:e.left-.75*o.width+t,name:"arrow_sme",...a&&{config:a}}),northWestArrowSouthEast:(e,o)=>({top:r(e,o),left:e.left-o.width+t,name:"arrow_se",...a&&{config:a}}),northArrowSouthWest:(e,o)=>({top:r(e,o),left:e.left+e.width/2-t,name:"arrow_sw",...a&&{config:a}}),northArrowSouthMiddleWest:(e,o)=>({top:r(e,o),left:e.left+e.width/2-.25*o.width-t,name:"arrow_smw",...a&&{config:a}}),northArrowSouth:(e,t)=>({top:r(e,t),left:e.left+e.width/2-t.width/2,name:"arrow_s",...a&&{config:a}}),northArrowSouthMiddleEast:(e,o)=>({top:r(e,o),left:e.left+e.width/2-.75*o.width+t,name:"arrow_sme",...a&&{config:a}}),northArrowSouthEast:(e,o)=>({top:r(e,o),left:e.left+e.width/2-o.width+t,name:"arrow_se",...a&&{config:a}}),northEastArrowSouthWest:(e,o)=>({top:r(e,o),left:e.right-t,name:"arrow_sw",...a&&{config:a}}),northEastArrowSouthMiddleWest:(e,o)=>({top:r(e,o),left:e.right-.25*o.width-t,name:"arrow_smw",...a&&{config:a}}),northEastArrowSouth:(e,t)=>({top:r(e,t),left:e.right-t.width/2,name:"arrow_s",...a&&{config:a}}),northEastArrowSouthMiddleEast:(e,o)=>({top:r(e,o),left:e.right-.75*o.width+t,name:"arrow_sme",...a&&{config:a}}),northEastArrowSouthEast:(e,o)=>({top:r(e,o),left:e.right-o.width+t,name:"arrow_se",...a&&{config:a}}),southWestArrowNorthWest:e=>({top:i(e),left:e.left-t,name:"arrow_nw",...a&&{config:a}}),southWestArrowNorthMiddleWest:(e,o)=>({top:i(e),left:e.left-.25*o.width-t,name:"arrow_nmw",...a&&{config:a}}),southWestArrowNorth:(e,t)=>({top:i(e),left:e.left-t.width/2,name:"arrow_n",...a&&{config:a}}),southWestArrowNorthMiddleEast:(e,o)=>({top:i(e),left:e.left-.75*o.width+t,name:"arrow_nme",...a&&{config:a}}),southWestArrowNorthEast:(e,o)=>({top:i(e),left:e.left-o.width+t,name:"arrow_ne",...a&&{config:a}}),southArrowNorthWest:e=>({top:i(e),left:e.left+e.width/2-t,name:"arrow_nw",...a&&{config:a}}),southArrowNorthMiddleWest:(e,o)=>({top:i(e),left:e.left+e.width/2-.25*o.width-t,name:"arrow_nmw",...a&&{config:a}}),southArrowNorth:(e,t)=>({top:i(e),left:e.left+e.width/2-t.width/2,name:"arrow_n",...a&&{config:a}}),southArrowNorthMiddleEast:(e,o)=>({top:i(e),left:e.left+e.width/2-.75*o.width+t,name:"arrow_nme",...a&&{config:a}}),southArrowNorthEast:(e,o)=>({top:i(e),left:e.left+e.width/2-o.width+t,name:"arrow_ne",...a&&{config:a}}),southEastArrowNorthWest:e=>({top:i(e),left:e.right-t,name:"arrow_nw",...a&&{config:a}}),southEastArrowNorthMiddleWest:(e,o)=>({top:i(e),left:e.right-.25*o.width-t,name:"arrow_nmw",...a&&{config:a}}),southEastArrowNorth:(e,t)=>({top:i(e),left:e.right-t.width/2,name:"arrow_n",...a&&{config:a}}),southEastArrowNorthMiddleEast:(e,o)=>({top:i(e),left:e.right-.75*o.width+t,name:"arrow_nme",...a&&{config:a}}),southEastArrowNorthEast:(e,o)=>({top:i(e),left:e.right-o.width+t,name:"arrow_ne",...a&&{config:a}}),westArrowEast:(e,t)=>({top:e.top+e.height/2-t.height/2,left:e.left-t.width-o,name:"arrow_e",...a&&{config:a}}),eastArrowWest:(e,t)=>({top:e.top+e.height/2-t.height/2,left:e.right+o,name:"arrow_w",...a&&{config:a}}),viewportStickyNorth:(e,t,o)=>e.getIntersection(o)?{top:o.top+n,left:e.left+e.width/2-t.width/2,name:"arrowless",config:{withArrow:!1,...a}}:null};function r(e,t){return e.top-t.height-o}function i(e){return e.bottom+o}}zp.arrowSideOffset=25,zp.arrowHeightOffset=10,zp.stickyVerticalOffset=20,zp._getOptimalPosition=Ua,zp.defaultPositions=Mp();var Lp=r(9948),Pp={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};Ar()(Lp.Z,Pp),Lp.Z.locals;const Rp="ck-tooltip";class qp extends(Oa()){constructor(e){if(super(),qp._editors.add(e),qp._instance)return qp._instance;qp._instance=this,this.tooltipTextView=new Er(e.locale),this.tooltipTextView.set("text",""),this.tooltipTextView.setTemplate({tag:"span",attributes:{class:["ck","ck-tooltip__text"]},children:[{text:this.tooltipTextView.bindTemplate.to("text")}]}),this.balloonPanelView=new zp(e.locale),this.balloonPanelView.class=Rp,this.balloonPanelView.content.add(this.tooltipTextView),this._resizeObserver=null,this._currentElementWithTooltip=null,this._currentTooltipPosition=null,this._pinTooltipDebounced=Mc(this._pinTooltip,600),this.listenTo(Va.document,"mouseenter",this._onEnterOrFocus.bind(this),{useCapture:!0}),this.listenTo(Va.document,"mouseleave",this._onLeaveOrBlur.bind(this),{useCapture:!0}),this.listenTo(Va.document,"focus",this._onEnterOrFocus.bind(this),{useCapture:!0}),this.listenTo(Va.document,"blur",this._onLeaveOrBlur.bind(this),{useCapture:!0}),this.listenTo(Va.document,"scroll",this._onScroll.bind(this),{useCapture:!0}),this._watchdogExcluded=!0}destroy(e){const t=e.ui.view&&e.ui.view.body;qp._editors.delete(e),this.stopListening(e.ui),t&&t.has(this.balloonPanelView)&&t.remove(this.balloonPanelView),qp._editors.size||(this._unpinTooltip(),this.balloonPanelView.destroy(),this.stopListening(),qp._instance=null)}static getPositioningFunctions(e){const t=qp.defaultBalloonPositions;return{s:[t.southArrowNorth,t.southArrowNorthEast,t.southArrowNorthWest],n:[t.northArrowSouth],e:[t.eastArrowWest],w:[t.westArrowEast],sw:[t.southArrowNorthEast],se:[t.southArrowNorthWest]}[e]}_onEnterOrFocus(e,{target:t}){const o=$p(t);var n;o&&o!==this._currentElementWithTooltip&&(this._unpinTooltip(),this._pinTooltipDebounced(o,{text:(n=o).dataset.ckeTooltipText,position:n.dataset.ckeTooltipPosition||"s",cssClass:n.dataset.ckeTooltipClass||""}))}_onLeaveOrBlur(e,{target:t,relatedTarget:o}){if("mouseleave"===e.name){if(!ga(t))return;if(this._currentElementWithTooltip&&t!==this._currentElementWithTooltip)return;const e=$p(t),n=$p(o);e&&e!==n&&this._unpinTooltip()}else{if(this._currentElementWithTooltip&&t!==this._currentElementWithTooltip)return;this._unpinTooltip()}}_onScroll(e,{target:t}){this._currentElementWithTooltip&&(t.contains(this.balloonPanelView.element)&&t.contains(this._currentElementWithTooltip)||this._unpinTooltip())}_pinTooltip(e,{text:t,position:o,cssClass:n}){const a=fr(qp._editors.values()).ui.view.body;a.has(this.balloonPanelView)||a.add(this.balloonPanelView),this.tooltipTextView.text=t,this.balloonPanelView.pin({target:e,positions:qp.getPositioningFunctions(o)}),this._resizeObserver=new Fa(e,()=>{$a(e)||this._unpinTooltip()}),this.balloonPanelView.class=[Rp,n].filter(e=>e).join(" ");for(const r of qp._editors)this.listenTo(r.ui,"update",this._updateTooltipPosition.bind(this),{priority:"low"});this._currentElementWithTooltip=e,this._currentTooltipPosition=o}_unpinTooltip(){this._pinTooltipDebounced.cancel(),this.balloonPanelView.unpin();for(const e of qp._editors)this.stopListening(e.ui,"update");this._currentElementWithTooltip=null,this._currentTooltipPosition=null,this._resizeObserver&&this._resizeObserver.destroy()}_updateTooltipPosition(){$a(this._currentElementWithTooltip)?this.balloonPanelView.pin({target:this._currentElementWithTooltip,positions:qp.getPositioningFunctions(this._currentTooltipPosition)}):this._unpinTooltip()}}function $p(e){return ga(e)?e.closest("[data-cke-tooltip-text]:not([data-cke-tooltip-disabled])"):null}qp.defaultBalloonPositions=Mp({heightOffset:5,sideOffset:13}),qp._editors=new Set,qp._instance=null;class Up extends(J()){constructor(e){super(),this.editor=e,this.componentFactory=new pi(e),this.focusTracker=new vr,this.tooltipManager=new qp(e),this.set("viewportOffset",this._readViewportOffsetFromConfig()),this.isReady=!1,this.once("ready",()=>{this.isReady=!0}),this._editableElementsMap=new Map,this._focusableToolbarDefinitions=[],this.listenTo(e.editing.view.document,"layoutChanged",()=>this.update()),this._initFocusTracking()}get element(){return null}update(){this.fire("update")}destroy(){this.stopListening(),this.focusTracker.destroy(),this.tooltipManager.destroy(this.editor);for(const e of this._editableElementsMap.values())e.ckeditorInstance=null;this._editableElementsMap=new Map,this._focusableToolbarDefinitions=[]}setEditableElement(e,t){this._editableElementsMap.set(e,t),t.ckeditorInstance||(t.ckeditorInstance=this.editor),this.focusTracker.add(t);const o=()=>{this.editor.editing.view.getDomRoot(e)||this.editor.keystrokes.listenTo(t)};this.isReady?o():this.once("ready",o)}getEditableElement(e="main"){return this._editableElementsMap.get(e)}getEditableElementsNames(){return this._editableElementsMap.keys()}addToolbar(e,t={}){e.isRendered?(this.focusTracker.add(e.element),this.editor.keystrokes.listenTo(e.element)):e.once("render",()=>{this.focusTracker.add(e.element),this.editor.keystrokes.listenTo(e.element)}),this._focusableToolbarDefinitions.push({toolbarView:e,options:t})}get _editableElements(){return console.warn("editor-ui-deprecated-editable-elements: The EditorUI#_editableElements property has been deprecated and will be removed in the near future.",{editorUI:this}),this._editableElementsMap}_readViewportOffsetFromConfig(){const e=this.editor,t=e.config.get("ui.viewportOffset");if(t)return t;const o=e.config.get("toolbar.viewportTopOffset");return o?(console.warn("editor-ui-deprecated-viewport-offset-config: The `toolbar.vieportTopOffset` configuration option is deprecated. It will be removed from future CKEditor versions. Use `ui.viewportOffset.top` instead."),{top:o}):{top:0}}_initFocusTracking(){const e=this.editor,t=e.editing.view;let o,n;e.keystrokes.set("Alt+F10",(e,a)=>{const r=this.focusTracker.focusedElement;Array.from(this._editableElementsMap.values()).includes(r)&&!Array.from(t.domRoots.values()).includes(r)&&(o=r);const i=this._getCurrentFocusedToolbarDefinition();i&&n||(n=this._getFocusableCandidateToolbarDefinitions());for(let t=0;t<n.length;t++){const e=n.shift();if(n.push(e),e!==i&&this._focusFocusableCandidateToolbar(e)){i&&i.options.afterBlur&&i.options.afterBlur();break}}a()}),e.keystrokes.set("Esc",(t,n)=>{const a=this._getCurrentFocusedToolbarDefinition();a&&(o?(o.focus(),o=null):e.editing.view.focus(),a.options.afterBlur&&a.options.afterBlur(),n())})}_getFocusableCandidateToolbarDefinitions(){const e=[];for(const t of this._focusableToolbarDefinitions){const{toolbarView:o,options:n}=t;($a(o.element)||n.beforeFocus)&&e.push(t)}return e.sort((e,t)=>Hp(e)-Hp(t)),e}_getCurrentFocusedToolbarDefinition(){for(const e of this._focusableToolbarDefinitions)if(e.toolbarView.element&&e.toolbarView.element.contains(this.focusTracker.focusedElement))return e;return null}_focusFocusableCandidateToolbar(e){const{toolbarView:t,options:{beforeFocus:o}}=e;return o&&o(),!!$a(t.element)&&(t.focus(),!0)}}function Hp(e){const{toolbarView:t,options:o}=e;let n=10;return $a(t.element)&&n--,o.isContextual&&n--,n}var Wp=r(4547),Gp={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};Ar()(Wp.Z,Gp),Wp.Z.locals;class Kp extends Er{constructor(e){super(e),this.body=new Xr(e)}render(){super.render(),this.body.attachToDom()}destroy(){return this.body.detachFromDom(),super.destroy()}}var Yp=r(2751),Qp={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};Ar()(Yp.Z,Qp),Yp.Z.locals;class Jp extends Er{constructor(e){super(e),this.set("text",void 0),this.set("for",void 0),this.id="ck-editor__label_"+C();const t=this.bindTemplate;this.setTemplate({tag:"label",attributes:{class:["ck","ck-label"],id:this.id,for:t.to("for")},children:[{text:t.to("text")}]})}}class Zp extends Kp{constructor(e){super(e),this.top=this.createCollection(),this.main=this.createCollection(),this._voiceLabelView=this._createVoiceLabel(),this.setTemplate({tag:"div",attributes:{class:["ck","ck-reset","ck-editor","ck-rounded-corners"],role:"application",dir:e.uiLanguageDirection,lang:e.uiLanguage,"aria-labelledby":this._voiceLabelView.id},children:[this._voiceLabelView,{tag:"div",attributes:{class:["ck","ck-editor__top","ck-reset_all"],role:"presentation"},children:this.top},{tag:"div",attributes:{class:["ck","ck-editor__main"],role:"presentation"},children:this.main}]})}_createVoiceLabel(){const e=this.t,t=new Jp;return t.text=e("Rich Text Editor"),t.extendTemplate({attributes:{class:"ck-voice-label"}}),t}}class Xp extends Er{constructor(e,t,o){super(e),this.setTemplate({tag:"div",attributes:{class:["ck","ck-content","ck-editor__editable","ck-rounded-corners"],lang:e.contentLanguage,dir:e.contentLanguageDirection}}),this.name=null,this.set("isFocused",!1),this._editableElement=o,this._hasExternalElement=!!this._editableElement,this._editingView=t}render(){super.render(),this._hasExternalElement?this.template.apply(this.element=this._editableElement):this._editableElement=this.element,this.on("change:isFocused",()=>this._updateIsFocusedClasses()),this._updateIsFocusedClasses()}destroy(){this._hasExternalElement&&this.template.revert(this._editableElement),super.destroy()}_updateIsFocusedClasses(){const e=this._editingView;function t(t){e.change(o=>{const n=e.document.getRoot(t.name);o.addClass(t.isFocused?"ck-focused":"ck-blurred",n),o.removeClass(t.isFocused?"ck-blurred":"ck-focused",n)})}e.isRenderingInProgress?function o(n){e.once("change:isRenderingInProgress",(e,a,r)=>{r?o(n):t(n)})}(this):t(this)}}class eb extends Xp{constructor(e,t,o,n={}){super(e,t,o);const a=e.t;this.extendTemplate({attributes:{role:"textbox",class:"ck-editor__editable_inline"}}),this._generateLabel=n.label||(()=>a("Editor editing area: %0",this.name))}render(){super.render();const e=this._editingView;e.change(t=>{const o=e.document.getRoot(this.name);t.setAttribute("aria-label",this._generateLabel(this),o)})}}var tb=r(5523),ob={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};Ar()(tb.Z,ob),tb.Z.locals;var nb=r(6985),ab={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};Ar()(nb.Z,ab),nb.Z.locals;class rb extends Er{constructor(e){super(e),this.set("value",void 0),this.set("id",void 0),this.set("placeholder",void 0),this.set("isReadOnly",!1),this.set("hasError",!1),this.set("ariaDescribedById",void 0),this.focusTracker=new vr,this.bind("isFocused").to(this.focusTracker),this.set("isEmpty",!0),this.set("inputMode","text");const t=this.bindTemplate;this.setTemplate({tag:"input",attributes:{class:["ck","ck-input",t.if("isFocused","ck-input_focused"),t.if("isEmpty","ck-input-text_empty"),t.if("hasError","ck-error")],id:t.to("id"),placeholder:t.to("placeholder"),readonly:t.to("isReadOnly"),inputmode:t.to("inputMode"),"aria-invalid":t.if("hasError",!0),"aria-describedby":t.to("ariaDescribedById")},on:{input:t.to((...e)=>{this.fire("input",...e),this._updateIsEmpty()}),change:t.to(this._updateIsEmpty.bind(this))}})}render(){super.render(),this.focusTracker.add(this.element),this._setDomElementValue(this.value),this._updateIsEmpty(),this.on("change:value",(e,t,o)=>{this._setDomElementValue(o),this._updateIsEmpty()})}destroy(){super.destroy(),this.focusTracker.destroy()}select(){this.element.select()}focus(){this.element.focus()}_updateIsEmpty(){this.isEmpty=!this.element.value}_setDomElementValue(e){this.element.value=e||0===e?e:""}}class ib extends rb{constructor(e){super(e),this.extendTemplate({attributes:{type:"text",class:["ck-input-text"]}})}}var lb=r(8111),sb={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};Ar()(lb.Z,sb),lb.Z.locals;class cb extends Er{constructor(e,t){super(e);const o="ck-labeled-field-view-"+C(),n="ck-labeled-field-view-status-"+C();this.fieldView=t(this,o,n),this.set("label",void 0),this.set("isEnabled",!0),this.set("isEmpty",!0),this.set("isFocused",!1),this.set("errorText",null),this.set("infoText",null),this.set("class",void 0),this.set("placeholder",void 0),this.labelView=this._createLabelView(o),this.statusView=this._createStatusView(n),this.fieldWrapperChildren=this.createCollection([this.fieldView,this.labelView]),this.bind("_statusText").to(this,"errorText",this,"infoText",(e,t)=>e||t);const a=this.bindTemplate;this.setTemplate({tag:"div",attributes:{class:["ck","ck-labeled-field-view",a.to("class"),a.if("isEnabled","ck-disabled",e=>!e),a.if("isEmpty","ck-labeled-field-view_empty"),a.if("isFocused","ck-labeled-field-view_focused"),a.if("placeholder","ck-labeled-field-view_placeholder"),a.if("errorText","ck-error")]},children:[{tag:"div",attributes:{class:["ck","ck-labeled-field-view__input-wrapper"]},children:this.fieldWrapperChildren},this.statusView]})}_createLabelView(e){const t=new Jp(this.locale);return t.for=e,t.bind("text").to(this,"label"),t}_createStatusView(e){const t=new Er(this.locale),o=this.bindTemplate;return t.setTemplate({tag:"div",attributes:{class:["ck","ck-labeled-field-view__status",o.if("errorText","ck-labeled-field-view__status_error"),o.if("_statusText","ck-hidden",e=>!e)],id:e,role:o.if("errorText","alert")},children:[{text:o.to("_statusText")}]}),t}focus(){this.fieldView.focus()}}function db(e,t,o){const n=new ib(e.locale);return n.set({id:t,ariaDescribedById:o}),n.bind("isReadOnly").to(e,"isEnabled",e=>!e),n.bind("hasError").to(e,"errorText",e=>!!e),n.on("input",()=>{e.errorText=null}),e.bind("isEmpty","isFocused","placeholder").to(n),n}class ub extends Fi{static get pluginName(){return"Notification"}init(){this.on("show:warning",(e,t)=>{window.alert(t.message)},{priority:"lowest"})}showSuccess(e,t={}){this._showNotification({message:e,type:"success",namespace:t.namespace,title:t.title})}showInfo(e,t={}){this._showNotification({message:e,type:"info",namespace:t.namespace,title:t.title})}showWarning(e,t={}){this._showNotification({message:e,type:"warning",namespace:t.namespace,title:t.title})}_showNotification(e){const t=e.namespace?`show:${e.type}:${e.namespace}`:"show:"+e.type;this.fire(t,{message:e.message,type:e.type,title:e.title||""})}}class mb extends(J()){constructor(e,t){super(),t&&kc(this,t),e&&this.set(e)}}var hb=r(1757),pb={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};Ar()(hb.Z,pb),hb.Z.locals;var bb=r(3553),gb={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};Ar()(bb.Z,gb),bb.Z.locals;const fb=La("px");class vb extends Di{static get pluginName(){return"ContextualBalloon"}constructor(e){super(e),this._view=null,this._rotatorView=null,this._fakePanelsView=null,this.positionLimiter=()=>{const e=this.editor.editing.view,t=e.document.selection.editableElement;return t?e.domConverter.mapViewToDom(t.root):null},this.set("visibleView",null),this._viewToStack=new Map,this._idToStack=new Map,this.set("_numberOfStacks",0),this.set("_singleViewMode",!1),this._rotatorView=null,this._fakePanelsView=null}destroy(){super.destroy(),this._view&&this._view.destroy(),this._rotatorView&&this._rotatorView.destroy(),this._fakePanelsView&&this._fakePanelsView.destroy()}get view(){return this._view||this._createPanelView(),this._view}hasView(e){return Array.from(this._viewToStack.keys()).includes(e)}add(e){if(this._view||this._createPanelView(),this.hasView(e.view))throw new x("contextualballoon-add-view-exist",[this,e]);const t=e.stackId||"main";if(!this._idToStack.has(t))return this._idToStack.set(t,new Map([[e.view,e]])),this._viewToStack.set(e.view,this._idToStack.get(t)),this._numberOfStacks=this._idToStack.size,void(this._visibleStack&&!e.singleViewMode||this.showStack(t));const o=this._idToStack.get(t);e.singleViewMode&&this.showStack(t),o.set(e.view,e),this._viewToStack.set(e.view,o),o===this._visibleStack&&this._showView(e)}remove(e){if(!this.hasView(e))throw new x("contextualballoon-remove-view-not-exist",[this,e]);const t=this._viewToStack.get(e);this._singleViewMode&&this.visibleView===e&&(this._singleViewMode=!1),this.visibleView===e&&(1===t.size?this._idToStack.size>1?this._showNextStack():(this.view.hide(),this.visibleView=null,this._rotatorView.hideView()):this._showView(Array.from(t.values())[t.size-2])),1===t.size?(this._idToStack.delete(this._getStackId(t)),this._numberOfStacks=this._idToStack.size):t.delete(e),this._viewToStack.delete(e)}updatePosition(e){e&&(this._visibleStack.get(this.visibleView).position=e),this.view.pin(this._getBalloonPosition()),this._fakePanelsView.updatePosition()}showStack(e){this.visibleStack=e;const t=this._idToStack.get(e);if(!t)throw new x("contextualballoon-showstack-stack-not-exist",this);this._visibleStack!==t&&this._showView(Array.from(t.values()).pop())}_createPanelView(){this._view=new zp(this.editor.locale),this.editor.ui.view.body.add(this._view),this.editor.ui.focusTracker.add(this._view.element),this._rotatorView=this._createRotatorView(),this._fakePanelsView=this._createFakePanelsView()}get _visibleStack(){return this._viewToStack.get(this.visibleView)}_getStackId(e){return Array.from(this._idToStack.entries()).find(t=>t[1]===e)[0]}_showNextStack(){const e=Array.from(this._idToStack.values());let t=e.indexOf(this._visibleStack)+1;e[t]||(t=0),this.showStack(this._getStackId(e[t]))}_showPrevStack(){const e=Array.from(this._idToStack.values());let t=e.indexOf(this._visibleStack)-1;e[t]||(t=e.length-1),this.showStack(this._getStackId(e[t]))}_createRotatorView(){const e=new wb(this.editor.locale),t=this.editor.locale.t;return this.view.content.add(e),e.bind("isNavigationVisible").to(this,"_numberOfStacks",this,"_singleViewMode",(e,t)=>!t&&e>1),e.on("change:isNavigationVisible",()=>this.updatePosition(),{priority:"low"}),e.bind("counter").to(this,"visibleView",this,"_numberOfStacks",(e,o)=>{if(o<2)return"";const n=Array.from(this._idToStack.values()).indexOf(this._visibleStack)+1;return t("%0 of %1",[n,o])}),e.buttonNextView.on("execute",()=>{e.focusTracker.isFocused&&this.editor.editing.view.focus(),this._showNextStack()}),e.buttonPrevView.on("execute",()=>{e.focusTracker.isFocused&&this.editor.editing.view.focus(),this._showPrevStack()}),e}_createFakePanelsView(){const e=new kb(this.editor.locale,this.view);return e.bind("numberOfPanels").to(this,"_numberOfStacks",this,"_singleViewMode",(e,t)=>!t&&e>=2?Math.min(e-1,2):0),e.listenTo(this.view,"change:top",()=>e.updatePosition()),e.listenTo(this.view,"change:left",()=>e.updatePosition()),this.editor.ui.view.body.add(e),e}_showView({view:e,balloonClassName:t="",withArrow:o=!0,singleViewMode:n=!1}){this.view.class=t,this.view.withArrow=o,this._rotatorView.showView(e),this.visibleView=e,this.view.pin(this._getBalloonPosition()),this._fakePanelsView.updatePosition(),n&&(this._singleViewMode=!0)}_getBalloonPosition(){let e=Array.from(this._visibleStack.values()).pop().position;return e&&(e.limiter||(e=Object.assign({},e,{limiter:this.positionLimiter})),e=Object.assign({},e,{viewportOffsetConfig:this.editor.ui.viewportOffset})),e}}class wb extends Er{constructor(e){super(e);const t=e.t,o=this.bindTemplate;this.set("isNavigationVisible",!0),this.focusTracker=new vr,this.buttonPrevView=this._createButtonView(t("Previous"),'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M11.463 5.187a.888.888 0 1 1 1.254 1.255L9.16 10l3.557 3.557a.888.888 0 1 1-1.254 1.255L7.26 10.61a.888.888 0 0 1 .16-1.382l4.043-4.042z"/></svg>'),this.buttonNextView=this._createButtonView(t("Next"),'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M8.537 14.813a.888.888 0 1 1-1.254-1.255L10.84 10 7.283 6.442a.888.888 0 1 1 1.254-1.255L12.74 9.39a.888.888 0 0 1-.16 1.382l-4.043 4.042z"/></svg>'),this.content=this.createCollection(),this.setTemplate({tag:"div",attributes:{class:["ck","ck-balloon-rotator"],"z-index":"-1"},children:[{tag:"div",attributes:{class:["ck-balloon-rotator__navigation",o.to("isNavigationVisible",e=>e?"":"ck-hidden")]},children:[this.buttonPrevView,{tag:"span",attributes:{class:["ck-balloon-rotator__counter"]},children:[{text:o.to("counter")}]},this.buttonNextView]},{tag:"div",attributes:{class:"ck-balloon-rotator__content"},children:this.content}]})}render(){super.render(),this.focusTracker.add(this.element)}destroy(){super.destroy(),this.focusTracker.destroy()}showView(e){this.hideView(),this.content.add(e)}hideView(){this.content.clear()}_createButtonView(e,t){const o=new ri(this.locale);return o.set({label:e,icon:t,tooltip:!0}),o}}class kb extends Er{constructor(e,t){super(e);const o=this.bindTemplate;this.set("top",0),this.set("left",0),this.set("height",0),this.set("width",0),this.set("numberOfPanels",0),this.content=this.createCollection(),this._balloonPanelView=t,this.setTemplate({tag:"div",attributes:{class:["ck-fake-panel",o.to("numberOfPanels",e=>e?"":"ck-hidden")],style:{top:o.to("top",fb),left:o.to("left",fb),width:o.to("width",fb),height:o.to("height",fb)}},children:this.content}),this.on("change:numberOfPanels",(e,t,o,n)=>{o>n?this._addPanels(o-n):this._removePanels(n-o),this.updatePosition()})}_addPanels(e){for(;e--;){const e=new Er;e.setTemplate({tag:"div"}),this.content.add(e),this.registerChild(e)}}_removePanels(e){for(;e--;){const e=this.content.last;this.content.remove(e),this.deregisterChild(e),e.destroy()}}updatePosition(){if(this.numberOfPanels){const{top:e,left:t}=this._balloonPanelView,{width:o,height:n}=new Sa(this._balloonPanelView.element);Object.assign(this,{top:e,left:t,width:o,height:n})}}}var Cb=r(3609),yb={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};Ar()(Cb.Z,yb),Cb.Z.locals;const Ob=La("px");class jb extends Er{constructor(e){super(e);const t=this.bindTemplate;this.set("isActive",!1),this.set("isSticky",!1),this.set("limiterElement",null),this.set("limiterBottomOffset",50),this.set("viewportTopOffset",0),this.set("_marginLeft",null),this.set("_isStickyToTheLimiter",!1),this.set("_hasViewportTopOffset",!1),this.content=this.createCollection(),this._contentPanelPlaceholder=new Tr({tag:"div",attributes:{class:["ck","ck-sticky-panel__placeholder"],style:{display:t.to("isSticky",e=>e?"block":"none"),height:t.to("isSticky",e=>e?Ob(this._panelRect.height):null)}}}).render(),this._contentPanel=new Tr({tag:"div",attributes:{class:["ck","ck-sticky-panel__content",t.if("isSticky","ck-sticky-panel__content_sticky"),t.if("_isStickyToTheLimiter","ck-sticky-panel__content_sticky_bottom-limit")],style:{width:t.to("isSticky",e=>e?Ob(this._contentPanelPlaceholder.getBoundingClientRect().width):null),top:t.to("_hasViewportTopOffset",e=>e?Ob(this.viewportTopOffset):null),bottom:t.to("_isStickyToTheLimiter",e=>e?Ob(this.limiterBottomOffset):null),marginLeft:t.to("_marginLeft")}},children:this.content}).render(),this.setTemplate({tag:"div",attributes:{class:["ck","ck-sticky-panel"]},children:[this._contentPanelPlaceholder,this._contentPanel]})}render(){super.render(),this._checkIfShouldBeSticky(),this.listenTo(Va.window,"scroll",()=>{this._checkIfShouldBeSticky()}),this.listenTo(this,"change:isActive",()=>{this._checkIfShouldBeSticky()})}_checkIfShouldBeSticky(){const e=this._panelRect=this._contentPanel.getBoundingClientRect();let t;this.limiterElement?(t=this._limiterRect=this.limiterElement.getBoundingClientRect(),this.isSticky=this.isActive&&t.top<this.viewportTopOffset&&this._panelRect.height+this.limiterBottomOffset<t.height):this.isSticky=!1,this.isSticky?(this._isStickyToTheLimiter=t.bottom<e.height+this.limiterBottomOffset+this.viewportTopOffset,this._hasViewportTopOffset=!this._isStickyToTheLimiter&&!!this.viewportTopOffset,this._marginLeft=this._isStickyToTheLimiter?null:Ob(-Va.window.scrollX)):(this._isStickyToTheLimiter=!1,this._hasViewportTopOffset=!1,this._marginLeft=null)}}La("px");var xb=r(6706),_b={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};Ar()(xb.Z,_b),xb.Z.locals,La("px"),La("px");const{pilcrow:Vb}=sp;class Ab extends Up{constructor(e,t){super(e),this.view=t,this._toolbarConfig=Ni(e.config.get("toolbar")),this._elementReplacer=new ne}get element(){return this.view.element}init(e){const t=this.editor,o=this.view,n=t.editing.view,a=o.editable,r=n.document.getRoot();a.name=r.rootName,o.render();const i=a.element;this.setEditableElement(a.name,i),o.editable.bind("isFocused").to(this.focusTracker),n.attachDomRoot(i),e&&this._elementReplacer.replace(e,this.element),this._initPlaceholder(),this._initToolbar(),this.fire("ready")}destroy(){super.destroy();const e=this.view,t=this.editor.editing.view;this._elementReplacer.restore(),t.detachDomRoot(e.editable.name),e.destroy()}_initToolbar(){const e=this.view;e.stickyPanel.bind("isActive").to(this.focusTracker,"isFocused"),e.stickyPanel.limiterElement=e.element,e.stickyPanel.bind("viewportTopOffset").to(this,"viewportOffset",({top:e})=>e||0),e.toolbar.fillFromConfig(this._toolbarConfig,this.componentFactory),this.addToolbar(e.toolbar)}_initPlaceholder(){const e=this.editor,t=e.editing.view,o=t.document.getRoot(),n=e.sourceElement,a=e.config.get("placeholder")||n&&"textarea"===n.tagName.toLowerCase()&&n.getAttribute("placeholder");a&&Ri({view:t,element:o,text:a,isDirectHost:!1,keepOnFocus:!0})}}var Nb=r(3638),Db={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};Ar()(Nb.Z,Db),Nb.Z.locals;class Eb extends Zp{constructor(e,t,o={}){super(e),this.stickyPanel=new jb(e),this.toolbar=new hp(e,{shouldGroupWhenFull:o.shouldToolbarGroupWhenFull}),this.editable=new eb(e,t)}render(){super.render(),this.stickyPanel.content.add(this.toolbar),this.top.add(this.stickyPanel),this.main.add(this.editable)}}class Tb extends(rp(ip(ap))){constructor(e,t={}){if(!Sb(e)&&void 0!==t.initialData)throw new x("editor-create-initial-data",null);super(t),void 0===this.config.get("initialData")&&this.config.set("initialData",function(e){return Sb(e)?(t=e,t instanceof HTMLTextAreaElement?t.value:t.innerHTML):e;var t}(e)),Sb(e)&&(this.sourceElement=e),this.model.document.createRoot();const o=!this.config.get("toolbar.shouldNotGroupWhenFull"),n=new Eb(this.locale,this.editing.view,{shouldToolbarGroupWhenFull:o});this.ui=new Ab(this,n),function(e){if(!et(e.updateSourceElement))throw new x("attachtoform-missing-elementapi-interface",e);const t=e.sourceElement;if(function(e){return!!e&&"textarea"===e.tagName.toLowerCase()}(t)&&t.form){let o;const n=t.form,a=()=>e.updateSourceElement();et(n.submit)&&(o=n.submit,n.submit=()=>{a(),o.apply(n)}),n.addEventListener("submit",a),e.on("destroy",()=>{n.removeEventListener("submit",a),o&&(n.submit=o)})}}(this)}destroy(){return this.sourceElement&&this.updateSourceElement(),this.ui.destroy(),super.destroy()}static create(e,t={}){return new Promise(o=>{const n=new this(e,t);o(n.initPlugins().then(()=>n.ui.init(Sb(e)?e:null)).then(()=>n.data.init(n.config.get("initialData"))).then(()=>n.fire("ready")).then(()=>n))})}}function Sb(e){return ga(e)}class Bb{constructor(e,t=20){this._batch=null,this.model=e,this._size=0,this.limit=t,this._isLocked=!1,this._changeCallback=(e,t)=>{t.isLocal&&t.isUndoable&&t!==this._batch&&this._reset(!0)},this._selectionChangeCallback=()=>{this._reset()},this.model.document.on("change",this._changeCallback),this.model.document.selection.on("change:range",this._selectionChangeCallback),this.model.document.selection.on("change:attribute",this._selectionChangeCallback)}get batch(){return this._batch||(this._batch=this.model.createBatch({isTyping:!0})),this._batch}get size(){return this._size}input(e){this._size+=e,this._size>=this.limit&&this._reset(!0)}get isLocked(){return this._isLocked}lock(){this._isLocked=!0}unlock(){this._isLocked=!1}destroy(){this.model.document.off("change",this._changeCallback),this.model.document.selection.off("change:range",this._selectionChangeCallback),this.model.document.selection.off("change:attribute",this._selectionChangeCallback)}_reset(e=!1){this.isLocked&&!e||(this._batch=null,this._size=0)}}class Ib extends Ti{constructor(e,t){super(e),this._buffer=new Bb(e.model,t)}get buffer(){return this._buffer}destroy(){super.destroy(),this._buffer.destroy()}execute(e={}){const t=this.editor.model,o=t.document,n=e.text||"",a=n.length;let r=o.selection;e.selection?r=e.selection:e.range&&(r=t.createSelection(e.range));const i=e.resultRange;t.enqueueChange(this._buffer.batch,e=>{this._buffer.lock(),t.deleteContent(r),n&&t.insertContent(e.createText(n,o.selection.getAttributes()),r),i?e.setSelection(i):r.is("documentSelection")||e.setSelection(r),this._buffer.unlock(),this._buffer.input(a)})}}const zb=["insertText","insertReplacementText"];class Fb extends wc{constructor(e){super(e),u.isAndroid&&zb.push("insertCompositionText");const t=e.document;t.on("beforeinput",(o,n)=>{if(!this.isEnabled)return;const{data:a,targetRanges:r,inputType:i,domEvent:l}=n;if(!zb.includes(i))return;const s=new w(t,"insertText");t.fire(s,new Cc(e,l,{text:a,selection:e.createSelection(r)})),s.stop.called&&o.stop()}),t.on("compositionend",(o,{data:n,domEvent:a})=>{this.isEnabled&&!u.isAndroid&&n&&t.fire("insertText",new Cc(e,a,{text:n,selection:t.selection}))},{priority:"lowest"})}observe(){}}class Mb extends Di{static get pluginName(){return"Input"}init(){const e=this.editor,t=e.model,o=e.editing.view,n=t.document.selection;o.addObserver(Fb);const a=new Ib(e,e.config.get("typing.undoStep")||20);e.commands.add("insertText",a),e.commands.add("input",a),this.listenTo(o.document,"insertText",(n,a)=>{o.document.isComposing||a.preventDefault();const{text:r,selection:i,resultRange:l}=a,s=Array.from(i.getRanges()).map(t=>e.editing.mapper.toModelRange(t));let c=r;if(u.isAndroid){const e=Array.from(s[0].getItems()).reduce((e,t)=>e+(t.is("$textProxy")?t.data:""),"");e&&(e.length<=c.length?c.startsWith(e)&&(c=c.substring(e.length),s[0].start=s[0].start.getShiftedBy(e.length)):e.startsWith(c)&&(s[0].start=s[0].start.getShiftedBy(c.length),c=""))}const d={text:c,selection:t.createSelection(s)};l&&(d.resultRange=e.editing.mapper.toModelRange(l)),e.execute("insertText",d)}),u.isAndroid?this.listenTo(o.document,"keydown",(e,r)=>{!n.isCollapsed&&229==r.keyCode&&o.document.isComposing&&Lb(t,a)}):this.listenTo(o.document,"compositionstart",()=>{n.isCollapsed||Lb(t,a)})}}function Lb(e,t){if(!t.isEnabled)return;const o=t.buffer;o.lock(),e.enqueueChange(o.batch,()=>{e.deleteContent(e.document.selection)}),o.unlock()}class Pb extends Ti{constructor(e,t){super(e),this.direction=t,this._buffer=new Bb(e.model,e.config.get("typing.undoStep"))}get buffer(){return this._buffer}execute(e={}){const t=this.editor.model,o=t.document;t.enqueueChange(this._buffer.batch,n=>{this._buffer.lock();const a=n.createSelection(e.selection||o.selection),r=e.sequence||1,i=a.isCollapsed;if(a.isCollapsed&&t.modifySelection(a,{direction:this.direction,unit:e.unit,treatEmojiAsSingleUnit:!0}),this._shouldEntireContentBeReplacedWithParagraph(r))return void this._replaceEntireContentWithParagraph(n);if(this._shouldReplaceFirstBlockWithParagraph(a,r))return void this.editor.execute("paragraph",{selection:a});if(a.isCollapsed)return;let l=0;a.getFirstRange().getMinimalFlatRanges().forEach(e=>{l+=ae(e.getWalker({singleCharacters:!0,ignoreElementEnd:!0,shallow:!0}))}),t.deleteContent(a,{doNotResetEntireContent:i,direction:this.direction}),this._buffer.input(l),n.setSelection(a),this._buffer.unlock()})}_shouldEntireContentBeReplacedWithParagraph(e){if(e>1)return!1;const t=this.editor.model,o=t.document.selection,n=t.schema.getLimitElement(o);if(!o.isCollapsed||!o.containsEntireContent(n))return!1;if(!t.schema.checkChild(n,"paragraph"))return!1;const a=n.getChild(0);return!a||!a.is("element","paragraph")}_replaceEntireContentWithParagraph(e){const t=this.editor.model,o=t.document.selection,n=t.schema.getLimitElement(o),a=e.createElement("paragraph");e.remove(e.createRangeIn(n)),e.insert(a,n),e.setSelection(a,0)}_shouldReplaceFirstBlockWithParagraph(e,t){const o=this.editor.model;if(t>1||"backward"!=this.direction)return!1;if(!e.isCollapsed)return!1;const n=e.getFirstPosition(),a=o.schema.getLimitElement(n),r=a.getChild(0);return n.parent==r&&!!e.containsEntireContent(r)&&!!o.schema.checkChild(a,"paragraph")&&"paragraph"!=r.name}}const Rb="word",qb="selection",$b="backward",Ub="forward",Hb={deleteContent:{unit:qb,direction:$b},deleteContentBackward:{unit:"codePoint",direction:$b},deleteWordBackward:{unit:Rb,direction:$b},deleteHardLineBackward:{unit:qb,direction:$b},deleteSoftLineBackward:{unit:qb,direction:$b},deleteContentForward:{unit:"character",direction:Ub},deleteWordForward:{unit:Rb,direction:Ub},deleteHardLineForward:{unit:qb,direction:Ub},deleteSoftLineForward:{unit:qb,direction:Ub}};class Wb extends wc{constructor(e){super(e);const t=e.document;let o=0;t.on("keydown",()=>{o++}),t.on("keyup",()=>{o=0}),t.on("beforeinput",(n,a)=>{if(!this.isEnabled)return;const{targetRanges:r,domEvent:i,inputType:l}=a,s=Hb[l];if(!s)return;const c={direction:s.direction,unit:s.unit,sequence:o};c.unit==qb&&(c.selectionToRemove=e.createSelection(r[0])),u.isAndroid&&"deleteContentBackward"===l&&(c.sequence=1,1!=r.length||r[0].start.parent==r[0].end.parent&&r[0].start.offset+1==r[0].end.offset||(c.unit=qb,c.selectionToRemove=e.createSelection(r)));const d=new fs(t,"delete",r[0]);t.fire(d,new Cc(e,i,c)),d.stop.called&&n.stop()}),u.isBlink&&function(e){const t=e.view,o=t.document;let n=null,a=!1;function r(e){return e==rr.backspace||e==rr.delete}function i(e){return e==rr.backspace?$b:Ub}o.on("keydown",(e,{keyCode:t})=>{n=t,a=!1}),o.on("keyup",(l,{keyCode:s,domEvent:c})=>{const d=o.selection,u=e.isEnabled&&s==n&&r(s)&&!d.isCollapsed&&!a;if(n=null,u){const e=d.getFirstRange(),n=new fs(o,"delete",e),a={unit:qb,direction:i(s),selectionToRemove:d};o.fire(n,new Cc(t,c,a))}}),o.on("beforeinput",(e,{inputType:t})=>{const o=Hb[t];r(n)&&o&&o.direction==i(n)&&(a=!0)},{priority:"high"}),o.on("beforeinput",(e,{inputType:t,data:o})=>{n==rr.delete&&"insertText"==t&&""==o&&e.stop()},{priority:"high"})}(this)}observe(){}}class Gb extends Di{static get pluginName(){return"Delete"}init(){const e=this.editor,t=e.editing.view,o=t.document,n=e.model.document;t.addObserver(Wb),this._undoOnBackspace=!1;const a=new Pb(e,"forward");e.commands.add("deleteForward",a),e.commands.add("forwardDelete",a),e.commands.add("delete",new Pb(e,"backward")),this.listenTo(o,"delete",(n,a)=>{o.isComposing||a.preventDefault();const{direction:r,sequence:i,selectionToRemove:l,unit:s}=a,c="forward"===r?"deleteForward":"delete",d={sequence:i};if("selection"==s){const t=Array.from(l.getRanges()).map(t=>e.editing.mapper.toModelRange(t));d.selection=e.model.createSelection(t)}else d.unit=s;e.execute(c,d),t.scrollToTheSelection()},{priority:"low"}),this.editor.plugins.has("UndoEditing")&&(this.listenTo(o,"delete",(t,o)=>{this._undoOnBackspace&&"backward"==o.direction&&1==o.sequence&&"codePoint"==o.unit&&(this._undoOnBackspace=!1,e.execute("undo"),o.preventDefault(),t.stop())},{context:"$capture"}),this.listenTo(n,"change",()=>{this._undoOnBackspace=!1}))}requestUndoOnBackspace(){this.editor.plugins.has("UndoEditing")&&(this._undoOnBackspace=!0)}}class Kb extends Di{static get requires(){return[Mb,Gb]}static get pluginName(){return"Typing"}}function Yb(e,t){let o=e.start;return{text:Array.from(e.getItems()).reduce((e,n)=>n.is("$text")||n.is("$textProxy")?e+n.data:(o=t.createPositionAfter(n),""),""),range:t.createRange(o,e.end)}}class Qb extends(J()){constructor(e,t){super(),this.model=e,this.testCallback=t,this._hasMatch=!1,this.set("isEnabled",!0),this.on("change:isEnabled",()=>{this.isEnabled?this._startListening():(this.stopListening(e.document.selection),this.stopListening(e.document))}),this._startListening()}get hasMatch(){return this._hasMatch}_startListening(){const e=this.model.document;this.listenTo(e.selection,"change:range",(t,{directChange:o})=>{o&&(e.selection.isCollapsed?this._evaluateTextBeforeSelection("selection"):this.hasMatch&&(this.fire("unmatched"),this._hasMatch=!1))}),this.listenTo(e,"change:data",(e,t)=>{!t.isUndo&&t.isLocal&&this._evaluateTextBeforeSelection("data",{batch:t})})}_evaluateTextBeforeSelection(e,t={}){const o=this.model,n=o.document.selection,a=o.createRange(o.createPositionAt(n.focus.parent,0),n.focus),{text:r,range:i}=Yb(a,o),l=this.testCallback(r);if(!l&&this.hasMatch&&this.fire("unmatched"),this._hasMatch=!!l,l){const o=Object.assign(t,{text:r,range:i});"object"==typeof l&&Object.assign(o,l),this.fire("matched:"+e,o)}}}class Jb extends Di{static get pluginName(){return"TwoStepCaretMovement"}constructor(e){super(e),this.attributes=new Set,this._overrideUid=null}init(){const e=this.editor,t=e.model,o=e.editing.view,n=e.locale,a=t.document.selection;this.listenTo(o.document,"arrowKey",(e,t)=>{if(!a.isCollapsed)return;if(t.shiftKey||t.altKey||t.ctrlKey)return;const o=t.keyCode==rr.arrowright,r=t.keyCode==rr.arrowleft;if(!o&&!r)return;const i=n.contentLanguageDirection;let l=!1;l="ltr"===i&&o||"rtl"===i&&r?this._handleForwardMovement(t):this._handleBackwardMovement(t),!0===l&&e.stop()},{context:"$text",priority:"highest"}),this._isNextGravityRestorationSkipped=!1,this.listenTo(a,"change:range",(e,t)=>{this._isNextGravityRestorationSkipped?this._isNextGravityRestorationSkipped=!1:this._isGravityOverridden&&(!t.directChange&&tg(a.getFirstPosition(),this.attributes)||this._restoreGravity())})}registerAttribute(e){this.attributes.add(e)}_handleForwardMovement(e){const t=this.attributes,o=this.editor.model.document.selection,n=o.getFirstPosition();return!this._isGravityOverridden&&(!n.isAtStart||!Zb(o,t))&&!!tg(n,t)&&(eg(e),this._overrideGravity(),!0)}_handleBackwardMovement(e){const t=this.attributes,o=this.editor.model,n=o.document.selection,a=n.getFirstPosition();return this._isGravityOverridden?(eg(e),this._restoreGravity(),Xb(o,t,a),!0):a.isAtStart?!!Zb(n,t)&&(eg(e),Xb(o,t,a),!0):!!function(e,t){const o=e.getShiftedBy(-1);return tg(o,t)}(a,t)&&(a.isAtEnd&&!Zb(n,t)&&tg(a,t)?(eg(e),Xb(o,t,a),!0):(this._isNextGravityRestorationSkipped=!0,this._overrideGravity(),!1))}get _isGravityOverridden(){return!!this._overrideUid}_overrideGravity(){this._overrideUid=this.editor.model.change(e=>e.overrideSelectionGravity())}_restoreGravity(){this.editor.model.change(e=>{e.restoreSelectionGravity(this._overrideUid),this._overrideUid=null})}}function Zb(e,t){for(const o of t)if(e.hasAttribute(o))return!0;return!1}function Xb(e,t,o){const n=o.nodeBefore;e.change(e=>{n?e.setSelectionAttribute(n.getAttributes()):e.removeSelectionAttribute(t)})}function eg(e){e.preventDefault()}function tg(e,t){const{nodeBefore:o,nodeAfter:n}=e;for(const a of t){const e=o?o.getAttribute(a):void 0;if((n?n.getAttribute(a):void 0)!==e)return!0}return!1}var og=/[\\^$.*+?()[\]{}|]/g,ng=RegExp(og.source);const ag=function(e){return(e=wl(e))&&ng.test(e)?e.replace(og,"\\$&"):e},rg={copyright:{from:"(c)",to:"©"},registeredTrademark:{from:"(r)",to:"®"},trademark:{from:"(tm)",to:"™"},oneHalf:{from:/(^|[^/a-z0-9])(1\/2)([^/a-z0-9])$/i,to:[null,"½",null]},oneThird:{from:/(^|[^/a-z0-9])(1\/3)([^/a-z0-9])$/i,to:[null,"⅓",null]},twoThirds:{from:/(^|[^/a-z0-9])(2\/3)([^/a-z0-9])$/i,to:[null,"⅔",null]},oneForth:{from:/(^|[^/a-z0-9])(1\/4)([^/a-z0-9])$/i,to:[null,"¼",null]},threeQuarters:{from:/(^|[^/a-z0-9])(3\/4)([^/a-z0-9])$/i,to:[null,"¾",null]},lessThanOrEqual:{from:"<=",to:"≤"},greaterThanOrEqual:{from:">=",to:"≥"},notEqual:{from:"!=",to:"≠"},arrowLeft:{from:"<-",to:"←"},arrowRight:{from:"->",to:"→"},horizontalEllipsis:{from:"...",to:"…"},enDash:{from:/(^| )(--)( )$/,to:[null,"",null]},emDash:{from:/(^| )(---)( )$/,to:[null,"—",null]},quotesPrimary:{from:ug('"'),to:[null,"“",null,"”"]},quotesSecondary:{from:ug("'"),to:[null,"",null,""]},quotesPrimaryEnGb:{from:ug("'"),to:[null,"",null,""]},quotesSecondaryEnGb:{from:ug('"'),to:[null,"“",null,"”"]},quotesPrimaryPl:{from:ug('"'),to:[null,"„",null,"”"]},quotesSecondaryPl:{from:ug("'"),to:[null,"",null,""]}},ig={symbols:["copyright","registeredTrademark","trademark"],mathematical:["oneHalf","oneThird","twoThirds","oneForth","threeQuarters","lessThanOrEqual","greaterThanOrEqual","notEqual","arrowLeft","arrowRight"],typography:["horizontalEllipsis","enDash","emDash"],quotes:["quotesPrimary","quotesSecondary"]},lg=["symbols","mathematical","typography","quotes"];function sg(e){return"string"==typeof e?new RegExp(`(${ag(e)})$`):e}function cg(e){return"string"==typeof e?()=>[e]:e instanceof Array?()=>e:e}function dg(e){return(e.textNode?e.textNode:e.nodeAfter).getAttributes()}function ug(e){return new RegExp(`(^|\\s)(${e})([^${e}]*)(${e})$`)}function mg(e,t,o,n){return n.createRange(hg(e,t,o,!0,n),hg(e,t,o,!1,n))}function hg(e,t,o,n,a){let r=e.textNode||(n?e.nodeBefore:e.nodeAfter),i=null;for(;r&&r.getAttribute(t)==o;)i=r,r=n?r.previousSibling:r.nextSibling;return i?a.createPositionAt(i,n?"before":"after"):e}function pg(e,t,o,n){let a,r=null;"function"==typeof n?a=n:(r=e.commands.get(n),a=()=>{e.execute(n)}),e.model.document.on("change:data",(i,l)=>{if(r&&!r.isEnabled||!t.isEnabled)return;const s=fr(e.model.document.selection.getRanges());if(!s.isCollapsed)return;if(l.isUndo||!l.isLocal)return;const c=Array.from(e.model.document.differ.getChanges()),d=c[0];if(1!=c.length||"insert"!==d.type||"$text"!=d.name||1!=d.length)return;const u=d.position.parent;if(u.is("element","codeBlock"))return;if(u.is("element","listItem")&&"function"!=typeof n&&!["numberedList","bulletedList","todoList"].includes(n))return;if(r&&!0===r.value)return;const m=u.getChild(0),h=e.model.createRangeOn(m);if(!h.containsRange(s)&&!s.end.isEqual(h.end))return;const p=o.exec(m.data.substr(0,s.end.offset));p&&e.model.enqueueChange(t=>{const o=t.createPositionAt(u,0),n=t.createPositionAt(u,p[0].length),r=new su(o,n);if(!1!==a({match:p})){t.remove(r);const o=e.model.document.selection.getFirstRange(),n=t.createRangeIn(u);!u.isEmpty||n.isEqual(o)||n.containsRange(o,!0)||t.remove(u)}r.detach(),e.model.enqueueChange(()=>{e.plugins.get("Delete").requestUndoOnBackspace()})})})}function bg(e,t,o,n){let a,r;o instanceof RegExp?a=o:r=o,r=r||(e=>{let t;const o=[],n=[];for(;null!==(t=a.exec(e))&&!(t&&t.length<4);){let{index:e,1:a,2:r,3:i}=t;const l=a+r+i;e+=t[0].length-l.length;const s=[e,e+a.length],c=[e+a.length+r.length,e+a.length+r.length+i.length];o.push(s),o.push(c),n.push([e+a.length,e+a.length+r.length])}return{remove:o,format:n}}),e.model.document.on("change:data",(o,a)=>{if(a.isUndo||!a.isLocal||!t.isEnabled)return;const i=e.model,l=i.document.selection;if(!l.isCollapsed)return;const s=Array.from(i.document.differ.getChanges()),c=s[0];if(1!=s.length||"insert"!==c.type||"$text"!=c.name||1!=c.length)return;const d=l.focus,u=d.parent,{text:m,range:h}=function(e,t){let o=e.start;const n=Array.from(e.getItems()).reduce((e,n)=>!n.is("$text")&&!n.is("$textProxy")||n.getAttribute("code")?(o=t.createPositionAfter(n),""):e+n.data,"");return{text:n,range:t.createRange(o,e.end)}}(i.createRange(i.createPositionAt(u,0),d),i),p=r(m),b=gg(h.start,p.format,i),g=gg(h.start,p.remove,i);b.length&&g.length&&i.enqueueChange(t=>{if(!1!==n(t,b)){for(const e of g.reverse())t.remove(e);i.enqueueChange(()=>{e.plugins.get("Delete").requestUndoOnBackspace()})}})})}function gg(e,t,o){return t.filter(e=>void 0!==e[0]&&void 0!==e[1]).map(t=>o.createRange(e.getShiftedBy(t[0]),e.getShiftedBy(t[1])))}function fg(e,t){return(o,n)=>{if(!e.commands.get(t).isEnabled)return!1;const a=e.model.schema.getValidRanges(n,t);for(const e of a)o.setAttribute(t,!0,e);o.removeSelectionAttribute(t)}}function*vg(e,t){for(const o of t)o&&e.getAttributeProperties(o[0]).copyOnEnter&&(yield o)}class wg extends Ti{execute(){this.editor.model.change(e=>{this.enterBlock(e),this.fire("afterExecute",{writer:e})})}enterBlock(e){const t=this.editor.model,o=t.document.selection,n=t.schema,a=o.isCollapsed,r=o.getFirstRange(),i=r.start.parent,l=r.end.parent;if(n.isLimit(i)||n.isLimit(l))return a||i!=l||t.deleteContent(o),!1;if(a){const t=vg(e.model.schema,o.getAttributes());return kg(e,r.start),e.setSelectionAttribute(t),!0}{const n=!(r.start.isAtStart&&r.end.isAtEnd),a=i==l;if(t.deleteContent(o,{leaveUnmerged:n}),n){if(a)return kg(e,o.focus),!0;e.setSelection(l,0)}}return!1}}function kg(e,t){e.split(t),e.setSelection(t.parent.nextSibling,0)}const Cg={insertParagraph:{isSoft:!1},insertLineBreak:{isSoft:!0}};class yg extends wc{constructor(e){super(e);const t=this.document;t.on("beforeinput",(o,n)=>{if(!this.isEnabled)return;const a=n.domEvent,r=Cg[n.inputType];if(!r)return;const i=new fs(t,"enter",n.targetRanges[0]);t.fire(i,new Cc(e,a,{isSoft:r.isSoft})),i.stop.called&&o.stop()})}observe(){}}class Og extends Di{static get pluginName(){return"Enter"}init(){const e=this.editor,t=e.editing.view,o=t.document;t.addObserver(yg),e.commands.add("enter",new wg(e)),this.listenTo(o,"enter",(n,a)=>{o.isComposing||a.preventDefault(),a.isSoft||(e.execute("enter"),t.scrollToTheSelection())},{priority:"low"})}}class jg extends Ti{execute(){const e=this.editor.model,t=e.document;e.change(o=>{!function(e,t,o){const n=o.isCollapsed,a=o.getFirstRange(),r=a.start.parent,i=a.end.parent,l=r==i;if(n){const n=vg(e.schema,o.getAttributes());xg(e,t,a.end),t.removeSelectionAttribute(o.getAttributeKeys()),t.setSelectionAttribute(n)}else{const n=!(a.start.isAtStart&&a.end.isAtEnd);e.deleteContent(o,{leaveUnmerged:n}),l?xg(e,t,o.focus):n&&t.setSelection(i,0)}}(e,o,t.selection),this.fire("afterExecute",{writer:o})})}refresh(){const e=this.editor.model,t=e.document;this.isEnabled=function(e,t){if(t.rangeCount>1)return!1;const o=t.anchor;if(!o||!e.checkChild(o,"softBreak"))return!1;const n=t.getFirstRange(),a=n.start.parent,r=n.end.parent;return!_g(a,e)&&!_g(r,e)||a===r}(e.schema,t.selection)}}function xg(e,t,o){const n=t.createElement("softBreak");e.insertContent(n,o),t.setSelection(n,"after")}function _g(e,t){return!e.is("rootElement")&&(t.isLimit(e)||_g(e.parent,t))}class Vg extends Di{static get pluginName(){return"ShiftEnter"}init(){const e=this.editor,t=e.model.schema,o=e.conversion,n=e.editing.view,a=n.document;t.register("softBreak",{allowWhere:"$text",isInline:!0}),o.for("upcast").elementToElement({model:"softBreak",view:"br"}),o.for("downcast").elementToElement({model:"softBreak",view:(e,{writer:t})=>t.createEmptyElement("br")}),n.addObserver(yg),e.commands.add("shiftEnter",new jg(e)),this.listenTo(a,"enter",(t,o)=>{a.isComposing||o.preventDefault(),o.isSoft&&(e.execute("shiftEnter"),n.scrollToTheSelection())},{priority:"low"})}}class Ag extends Ti{refresh(){this.value=this._getValue(),this.isEnabled=this._checkEnabled()}execute(e={}){const t=this.editor.model,o=t.schema,n=t.document.selection,a=Array.from(n.getSelectedBlocks()),r=void 0===e.forceValue?!this.value:e.forceValue;t.change(e=>{if(r){const t=a.filter(e=>Ng(e)||Eg(o,e));this._applyQuote(e,t)}else this._removeQuote(e,a.filter(Ng))})}_getValue(){const e=fr(this.editor.model.document.selection.getSelectedBlocks());return!(!e||!Ng(e))}_checkEnabled(){if(this.value)return!0;const e=this.editor.model.document.selection,t=this.editor.model.schema,o=fr(e.getSelectedBlocks());return!!o&&Eg(t,o)}_removeQuote(e,t){Dg(e,t).reverse().forEach(t=>{if(t.start.isAtStart&&t.end.isAtEnd)return void e.unwrap(t.start.parent);if(t.start.isAtStart){const o=e.createPositionBefore(t.start.parent);return void e.move(t,o)}t.end.isAtEnd||e.split(t.end);const o=e.createPositionAfter(t.end.parent);e.move(t,o)})}_applyQuote(e,t){const o=[];Dg(e,t).reverse().forEach(t=>{let n=Ng(t.start);n||(n=e.createElement("blockQuote"),e.wrap(t,n)),o.push(n)}),o.reverse().reduce((t,o)=>t.nextSibling==o?(e.merge(e.createPositionAfter(t)),t):o)}}function Ng(e){return"blockQuote"==e.parent.name?e.parent:null}function Dg(e,t){let o,n=0;const a=[];for(;n<t.length;){const r=t[n],i=t[n+1];o||(o=e.createPositionBefore(r)),i&&r.nextSibling==i||(a.push(e.createRange(o,e.createPositionAfter(r))),o=null),n++}return a}function Eg(e,t){const o=e.checkChild(t.parent,"blockQuote"),n=e.checkChild(["$root","blockQuote"],t);return o&&n}class Tg extends Di{static get pluginName(){return"BlockQuoteEditing"}static get requires(){return[Og,Gb]}init(){const e=this.editor,t=e.model.schema;e.commands.add("blockQuote",new Ag(e)),t.register("blockQuote",{inheritAllFrom:"$container"}),e.conversion.elementToElement({model:"blockQuote",view:"blockquote"}),e.model.document.registerPostFixer(o=>{const n=e.model.document.differ.getChanges();for(const e of n)if("insert"==e.type){const n=e.position.nodeAfter;if(!n)continue;if(n.is("element","blockQuote")&&n.isEmpty)return o.remove(n),!0;if(n.is("element","blockQuote")&&!t.checkChild(e.position,n))return o.unwrap(n),!0;if(n.is("element")){const e=o.createRangeIn(n);for(const n of e.getItems())if(n.is("element","blockQuote")&&!t.checkChild(o.createPositionBefore(n),n))return o.unwrap(n),!0}}else if("remove"==e.type){const t=e.position.parent;if(t.is("element","blockQuote")&&t.isEmpty)return o.remove(t),!0}return!1});const o=this.editor.editing.view.document,n=e.model.document.selection,a=e.commands.get("blockQuote");this.listenTo(o,"enter",(t,o)=>{n.isCollapsed&&a.value&&n.getLastPosition().parent.isEmpty&&(e.execute("blockQuote"),e.editing.view.scrollToTheSelection(),o.preventDefault(),t.stop())},{context:"blockquote"}),this.listenTo(o,"delete",(t,o)=>{if("backward"!=o.direction||!n.isCollapsed||!a.value)return;const r=n.getLastPosition().parent;r.isEmpty&&!r.previousSibling&&(e.execute("blockQuote"),e.editing.view.scrollToTheSelection(),o.preventDefault(),t.stop())},{context:"blockquote"})}}var Sg=r(636),Bg={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};Ar()(Sg.Z,Bg),Sg.Z.locals;class Ig extends Di{static get pluginName(){return"BlockQuoteUI"}init(){const e=this.editor,t=e.t;e.ui.componentFactory.add("blockQuote",o=>{const n=e.commands.get("blockQuote"),a=new ri(o);return a.set({label:t("Block quote"),icon:sp.quote,tooltip:!0,isToggleable:!0}),a.bind("isOn","isEnabled").to(n,"value","isEnabled"),this.listenTo(a,"execute",()=>{e.execute("blockQuote"),e.editing.view.focus()}),a})}}class zg extends Ti{constructor(e,t){super(e),this.attributeKey=t}refresh(){const e=this.editor.model,t=e.document;this.value=this._getValueFromFirstAllowedNode(),this.isEnabled=e.schema.checkAttributeInSelection(t.selection,this.attributeKey)}execute(e={}){const t=this.editor.model,o=t.document.selection,n=void 0===e.forceValue?!this.value:e.forceValue;t.change(e=>{if(o.isCollapsed)n?e.setSelectionAttribute(this.attributeKey,!0):e.removeSelectionAttribute(this.attributeKey);else{const a=t.schema.getValidRanges(o.getRanges(),this.attributeKey);for(const t of a)n?e.setAttribute(this.attributeKey,n,t):e.removeAttribute(this.attributeKey,t)}})}_getValueFromFirstAllowedNode(){const e=this.editor.model,t=e.schema,o=e.document.selection;if(o.isCollapsed)return o.hasAttribute(this.attributeKey);for(const n of o.getRanges())for(const e of n.getItems())if(t.checkAttribute(e,this.attributeKey))return e.hasAttribute(this.attributeKey);return!1}}const Fg="bold";class Mg extends Di{static get pluginName(){return"BoldEditing"}init(){const e=this.editor;e.model.schema.extend("$text",{allowAttributes:Fg}),e.model.schema.setAttributeProperties(Fg,{isFormatting:!0,copyOnEnter:!0}),e.conversion.attributeToElement({model:Fg,view:"strong",upcastAlso:["b",e=>{const t=e.getStyle("font-weight");return t&&("bold"==t||Number(t)>=600)?{name:!0,styles:["font-weight"]}:null}]}),e.commands.add(Fg,new zg(e,Fg)),e.keystrokes.set("CTRL+B",Fg)}}const Lg="bold";class Pg extends Di{static get pluginName(){return"BoldUI"}init(){const e=this.editor,t=e.t;e.ui.componentFactory.add(Lg,o=>{const n=e.commands.get(Lg),a=new ri(o);return a.set({label:t("Bold"),icon:sp.bold,keystroke:"CTRL+B",tooltip:!0,isToggleable:!0}),a.bind("isOn","isEnabled").to(n,"value","isEnabled"),this.listenTo(a,"execute",()=>{e.execute(Lg),e.editing.view.focus()}),a})}}class Rg extends Di{static get pluginName(){return"CKBoxUI"}afterInit(){const e=this.editor;if(!e.commands.get("ckbox"))return;const t=e.t;e.ui.componentFactory.add("ckbox",o=>{const n=e.commands.get("ckbox"),a=new ri(o);return a.set({label:t("Open file manager"),icon:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M11.627 16.5zm5.873-.196zm0-7.001V8h-13v8.5h4.341c.191.54.457 1.044.785 1.5H2a1.5 1.5 0 0 1-1.5-1.5v-13A1.5 1.5 0 0 1 2 2h4.5a1.5 1.5 0 0 1 1.06.44L9.122 4H16a1.5 1.5 0 0 1 1.5 1.5v1A1.5 1.5 0 0 1 19 8v2.531a6.027 6.027 0 0 0-1.5-1.228zM16 6.5v-1H8.5l-2-2H2v13h1V8a1.5 1.5 0 0 1 1.5-1.5H16z"/><path d="M14.5 19.5a5 5 0 1 1 0-10 5 5 0 0 1 0 10zM15 14v-2h-1v2h-2v1h2v2h1v-2h2v-1h-2z"/></svg>',tooltip:!0}),a.bind("isOn","isEnabled").to(n,"value","isEnabled"),a.on("execute",()=>{e.execute("ckbox")}),a})}}const qg=4e3,$g=80,Ug=10;function Hg({token:e,id:t,origin:o,width:n,extension:a}){const r=Wg(e),i=function(e){const t=[e*Ug/100,$g],o=Math.floor(Math.max(...t)),n=[Math.min(e,qg)];let a=n[0];for(;a-o>=o;)a-=o,n.unshift(a);return n}(n),l=function(e){return"bmp"===e||"tiff"===e||"jpg"===e?"jpeg":e}(a);return{imageFallbackUrl:Gg({environmentId:r,id:t,origin:o,width:n,extension:l}),imageSources:[{srcset:i.map(e=>`${Gg({environmentId:r,id:t,origin:o,width:e,extension:"webp"})} ${e}w`).join(","),sizes:`(max-width: ${n}px) 100vw, ${n}px`,type:"image/webp"}]}}function Wg(e){const[,t]=e.value.split(".");return JSON.parse(atob(t)).aud}function Gg({environmentId:e,id:t,origin:o,width:n,extension:a}){return new URL(`${e}/assets/${t}/images/${n}.${a}`,o).toString()}class Kg extends Ti{constructor(e){super(e),this._chosenAssets=new Set,this._wrapper=null,this._initListeners()}refresh(){this.value=this._getValue(),this.isEnabled=this._checkEnabled()}execute(){this.fire("ckbox:open")}_getValue(){return null!==this._wrapper}_checkEnabled(){const e=this.editor.commands.get("insertImage"),t=this.editor.commands.get("link");return!(!e.isEnabled&&!t.isEnabled)}_prepareOptions(){const e=this.editor.config.get("ckbox");return{theme:e.theme,language:e.language,tokenUrl:e.tokenUrl,serviceOrigin:e.serviceOrigin,assetsOrigin:e.assetsOrigin,dialog:{onClose:()=>this.fire("ckbox:close")},assets:{onChoose:e=>this.fire("ckbox:choose",e)}}}_initListeners(){const e=this.editor,t=e.model,o=!e.config.get("ckbox.ignoreDataId");this.on("ckbox",()=>{this.refresh()},{priority:"low"}),this.on("ckbox:open",()=>{this.isEnabled&&!this.value&&(this._wrapper=_e(document,"div",{class:"ck ckbox-wrapper"}),document.body.appendChild(this._wrapper),window.CKBox.mount(this._wrapper,this._prepareOptions()))}),this.on("ckbox:close",()=>{this.value&&(this._wrapper.remove(),this._wrapper=null)}),this.on("ckbox:choose",(n,a)=>{if(!this.isEnabled)return;const r=e.commands.get("insertImage"),i=e.commands.get("link"),l=e.plugins.get("CKBoxEditing"),s=function({assets:e,origin:t,token:o,isImageAllowed:n,isLinkAllowed:a}){return e.map(e=>({id:e.data.id,type:Qg(e)?"image":"link",attributes:Yg(e,o,t)})).filter(e=>"image"===e.type?n:a)}({assets:a,origin:e.config.get("ckbox.assetsOrigin"),token:l.getToken(),isImageAllowed:r.isEnabled,isLinkAllowed:i.isEnabled});0!==s.length&&t.change(e=>{for(const t of s){const n=t===s[s.length-1];this._insertAsset(t,n,e),o&&(setTimeout(()=>this._chosenAssets.delete(t),1e3),this._chosenAssets.add(t))}})}),this.listenTo(e,"destroy",()=>{this.fire("ckbox:close"),this._chosenAssets.clear()})}_insertAsset(e,t,o){const n=this.editor.model.document.selection;o.removeSelectionAttribute("linkHref"),"image"===e.type?this._insertImage(e):this._insertLink(e,o),t||o.setSelection(n.getLastPosition())}_insertImage(e){const t=this.editor,{imageFallbackUrl:o,imageSources:n,imageTextAlternative:a}=e.attributes;t.execute("insertImage",{source:{src:o,sources:n,alt:a}})}_insertLink(e,t){const o=this.editor,n=o.model,a=n.document.selection,{linkName:r,linkHref:i}=e.attributes;if(a.isCollapsed){const e=kr(a.getAttributes()),o=t.createText(r,e),i=n.insertContent(o);t.setSelection(i)}o.execute("link",i)}}function Yg(e,t,o){if(Qg(e)){const{imageFallbackUrl:n,imageSources:a}=Hg({token:t,origin:o,id:e.data.id,width:e.data.metadata.width,extension:e.data.extension});return{imageFallbackUrl:n,imageSources:a,imageTextAlternative:e.data.metadata.description||""}}return{linkName:e.data.name,linkHref:Jg(e,t,o)}}function Qg(e){const t=e.data.metadata;return!!t&&t.width&&t.height}function Jg(e,t,o){const n=Wg(t),a=new URL(`${n}/assets/${e.data.id}/file`,o);return a.searchParams.set("download","true"),a.toString()}class Zg extends(J()){constructor(){super();const e=new window.FileReader;this._reader=e,this._data=void 0,this.set("loaded",0),e.onprogress=e=>{this.loaded=e.loaded}}get error(){return this._reader.error}get data(){return this._data}read(e){const t=this._reader;return this.total=e.size,new Promise((o,n)=>{t.onload=()=>{const e=t.result;this._data=e,o(e)},t.onerror=()=>{n("error")},t.onabort=()=>{n("aborted")},this._reader.readAsDataURL(e)})}abort(){this._reader.abort()}}class Xg extends Di{static get pluginName(){return"FileRepository"}static get requires(){return[lp]}init(){this.loaders=new gr,this.loaders.on("change",()=>this._updatePendingAction()),this._loadersMap=new Map,this._pendingAction=null,this.set("uploaded",0),this.set("uploadTotal",null),this.bind("uploadedPercent").to(this,"uploaded",this,"uploadTotal",(e,t)=>t?e/t*100:0)}getLoader(e){return this._loadersMap.get(e)||null}createLoader(e){if(!this.createUploadAdapter)return _("filerepository-no-upload-adapter"),null;const t=new ef(Promise.resolve(e),this.createUploadAdapter);return this.loaders.add(t),this._loadersMap.set(e,t),e instanceof Promise&&t.file.then(e=>{this._loadersMap.set(e,t)}).catch(()=>{}),t.on("change:uploaded",()=>{let e=0;for(const t of this.loaders)e+=t.uploaded;this.uploaded=e}),t.on("change:uploadTotal",()=>{let e=0;for(const t of this.loaders)t.uploadTotal&&(e+=t.uploadTotal);this.uploadTotal=e}),t}destroyLoader(e){const t=e instanceof ef?e:this.getLoader(e);t._destroy(),this.loaders.remove(t),this._loadersMap.forEach((e,o)=>{e===t&&this._loadersMap.delete(o)})}_updatePendingAction(){const e=this.editor.plugins.get(lp);if(this.loaders.length){if(!this._pendingAction){const t=this.editor.t,o=e=>`${t("Upload in progress")} ${parseInt(e)}%.`;this._pendingAction=e.add(o(this.uploadedPercent)),this._pendingAction.bind("message").to(this,"uploadedPercent",o)}}else e.remove(this._pendingAction),this._pendingAction=null}}class ef extends(J()){constructor(e,t){super(),this.id=C(),this._filePromiseWrapper=this._createFilePromiseWrapper(e),this._adapter=t(this),this._reader=new Zg,this.set("status","idle"),this.set("uploaded",0),this.set("uploadTotal",null),this.bind("uploadedPercent").to(this,"uploaded",this,"uploadTotal",(e,t)=>t?e/t*100:0),this.set("uploadResponse",null)}get file(){return this._filePromiseWrapper?this._filePromiseWrapper.promise.then(e=>this._filePromiseWrapper?e:null):Promise.resolve(null)}get data(){return this._reader.data}read(){if("idle"!=this.status)throw new x("filerepository-read-wrong-status",this);return this.status="reading",this.file.then(e=>this._reader.read(e)).then(e=>{if("reading"!==this.status)throw this.status;return this.status="idle",e}).catch(e=>{if("aborted"===e)throw this.status="aborted","aborted";throw this.status="error",this._reader.error?this._reader.error:e})}upload(){if("idle"!=this.status)throw new x("filerepository-upload-wrong-status",this);return this.status="uploading",this.file.then(()=>this._adapter.upload()).then(e=>(this.uploadResponse=e,this.status="idle",e)).catch(e=>{if("aborted"===this.status)throw"aborted";throw this.status="error",e})}abort(){const e=this.status;this.status="aborted",this._filePromiseWrapper.isFulfilled?"reading"==e?this._reader.abort():"uploading"==e&&this._adapter.abort&&this._adapter.abort():(this._filePromiseWrapper.promise.catch(()=>{}),this._filePromiseWrapper.rejecter("aborted")),this._destroy()}_destroy(){this._filePromiseWrapper=void 0,this._reader=void 0,this._adapter=void 0,this.uploadResponse=void 0}_createFilePromiseWrapper(e){const t={};return t.promise=new Promise((o,n)=>{t.rejecter=n,t.isFulfilled=!1,e.then(e=>{t.isFulfilled=!0,o(e)}).catch(e=>{t.isFulfilled=!0,n(e)})}),t}}class tf extends Er{constructor(e){super(e),this.buttonView=new ri(e),this._fileInputView=new of(e),this._fileInputView.bind("acceptedType").to(this),this._fileInputView.bind("allowMultipleFiles").to(this),this._fileInputView.delegate("done").to(this),this.setTemplate({tag:"span",attributes:{class:"ck-file-dialog-button"},children:[this.buttonView,this._fileInputView]}),this.buttonView.on("execute",()=>{this._fileInputView.open()})}focus(){this.buttonView.focus()}}class of extends Er{constructor(e){super(e),this.set("acceptedType",void 0),this.set("allowMultipleFiles",!1);const t=this.bindTemplate;this.setTemplate({tag:"input",attributes:{class:["ck-hidden"],type:"file",tabindex:"-1",accept:t.to("acceptedType"),multiple:t.to("allowMultipleFiles")},on:{change:t.to(()=>{this.element&&this.element.files&&this.element.files.length&&this.fire("done",this.element.files),this.element.value=""})}})}open(){this.element.click()}}class nf extends Di{static get requires(){return["ImageUploadEditing","ImageUploadProgress",Xg,lf]}static get pluginName(){return"CKBoxUploadAdapter"}async afterInit(){const e=this.editor,t=!!e.config.get("ckbox"),o=!!window.CKBox;if(!t&&!o)return;const n=e.plugins.get(Xg),a=e.plugins.get(lf);n.createUploadAdapter=t=>new af(t,a.getToken(),e);const r=!e.config.get("ckbox.ignoreDataId"),i=e.plugins.get("ImageUploadEditing");r&&i.on("uploadComplete",(t,{imageElement:o,data:n})=>{e.model.change(e=>{e.setAttribute("ckboxImageId",n.ckboxImageId,o)})})}}class af{constructor(e,t,o){this.loader=e,this.token=t,this.editor=o,this.controller=new AbortController,this.serviceOrigin=o.config.get("ckbox.serviceOrigin"),this.assetsOrigin=o.config.get("ckbox.assetsOrigin")}async getAvailableCategories(e=0){const t=new URL("categories",this.serviceOrigin);return t.searchParams.set("limit",50..toString()),t.searchParams.set("offset",e.toString()),this._sendHttpRequest({url:t}).then(async t=>{if(t.totalCount-(e+50)>0){const o=await this.getAvailableCategories(e+50);return[...t.items,...o]}return t.items}).catch(()=>{this.controller.signal.throwIfAborted(),V("ckbox-fetch-category-http-error")})}async getCategoryIdForFile(e){const t=rf(e.name),o=await this.getAvailableCategories();if(!o)return null;const n=this.editor.config.get("ckbox.defaultUploadCategories");if(n){const e=Object.keys(n).find(e=>n[e].includes(t));if(e){const t=o.find(t=>t.id===e||t.name===e);return t?t.id:null}}const a=o.find(e=>e.extensions.includes(t));return a?a.id:null}async upload(){const e=this.editor.t,t=e("Cannot determine a category for the uploaded file."),o=await this.loader.file,n=await this.getCategoryIdForFile(o);if(!n)return Promise.reject(t);const a=new URL("assets",this.serviceOrigin),r=new FormData;r.append("categoryId",n),r.append("file",o);const i={method:"POST",url:a,data:r,onUploadProgress:e=>{e.lengthComputable&&(this.loader.uploadTotal=e.total,this.loader.uploaded=e.loaded)}};return this._sendHttpRequest(i).then(async e=>{const t=await this._getImageWidth(),n=rf(o.name),a=Hg({token:this.token,id:e.id,origin:this.assetsOrigin,width:t,extension:n});return{ckboxImageId:e.id,default:a.imageFallbackUrl,sources:a.imageSources}}).catch(()=>{const t=e("Cannot upload file:")+` ${o.name}.`;return Promise.reject(t)})}abort(){this.controller.abort()}_sendHttpRequest(e){const{url:t,data:o,onUploadProgress:n}=e,a=e.method||"GET",r=this.controller.signal,i=new XMLHttpRequest;i.open(a,t.toString(),!0),i.setRequestHeader("Authorization",this.token.value),i.setRequestHeader("CKBox-Version","CKEditor 5"),i.responseType="json";const l=()=>{i.abort()};return new Promise((e,t)=>{r.addEventListener("abort",l),i.addEventListener("loadstart",()=>{r.addEventListener("abort",l)}),i.addEventListener("loadend",()=>{r.removeEventListener("abort",l)}),i.addEventListener("error",()=>{t()}),i.addEventListener("abort",()=>{t()}),i.addEventListener("load",async()=>{const o=i.response;return!o||o.statusCode>=400?t(o&&o.message):e(o)}),n&&i.upload.addEventListener("progress",e=>{n(e)}),i.send(o)})}_getImageWidth(){return new Promise(e=>{const t=new Image;t.onload=()=>{URL.revokeObjectURL(t.src),e(t.width)},t.src=this.loader.data})}}function rf(e){return e.match(/\.(?<ext>[^.]+)$/).groups.ext}class lf extends Di{static get pluginName(){return"CKBoxEditing"}static get requires(){return["CloudServices","LinkEditing","PictureEditing",nf]}async init(){const e=this.editor,t=!!e.config.get("ckbox"),o=!!window.CKBox;if(!t&&!o)return;this._initConfig();const n=e.plugins.get("CloudServicesCore"),a=e.config.get("ckbox.tokenUrl"),r=e.config.get("cloudServices.tokenUrl");this._token=a===r?e.plugins.get("CloudServices").token:await n.createToken(a).init(),e.config.get("ckbox.ignoreDataId")||(this._initSchema(),this._initConversion(),this._initFixers()),o&&e.commands.add("ckbox",new Kg(e))}getToken(){return this._token}_initConfig(){const e=this.editor;if(e.config.define("ckbox",{serviceOrigin:"https://api.ckbox.io",assetsOrigin:"https://ckbox.cloud",defaultUploadCategories:null,ignoreDataId:!1,language:e.locale.uiLanguage,theme:"default",tokenUrl:e.config.get("cloudServices.tokenUrl")}),!e.config.get("ckbox.tokenUrl"))throw new x("ckbox-plugin-missing-token-url",this);e.plugins.has("ImageBlockEditing")||e.plugins.has("ImageInlineEditing")||V("ckbox-plugin-image-feature-missing",e)}_initSchema(){const e=this.editor.model.schema;e.extend("$text",{allowAttributes:"ckboxLinkId"}),e.isRegistered("imageBlock")&&e.extend("imageBlock",{allowAttributes:["ckboxImageId","ckboxLinkId"]}),e.isRegistered("imageInline")&&e.extend("imageInline",{allowAttributes:["ckboxImageId","ckboxLinkId"]}),e.addAttributeCheck((e,t)=>{if(!e.last.getAttribute("linkHref")&&"ckboxLinkId"===t)return!1})}_initConversion(){const e=this.editor;e.conversion.for("downcast").add(e=>{e.on("attribute:ckboxLinkId:imageBlock",(e,t,o)=>{const{writer:n,mapper:a,consumable:r}=o;if(!r.consume(t.item,e.name))return;const i=[...a.toViewElement(t.item).getChildren()].find(e=>"a"===e.name);i&&(t.item.hasAttribute("ckboxLinkId")?n.setAttribute("data-ckbox-resource-id",t.item.getAttribute("ckboxLinkId"),i):n.removeAttribute("data-ckbox-resource-id",i))},{priority:"low"}),e.on("attribute:ckboxLinkId",(e,t,o)=>{const{writer:n,mapper:a,consumable:r}=o;if(r.consume(t.item,e.name)){if(t.attributeOldValue){const e=cf(n,t.attributeOldValue);n.unwrap(a.toViewRange(t.range),e)}if(t.attributeNewValue){const e=cf(n,t.attributeNewValue);if(t.item.is("selection")){const t=n.document.selection;n.wrap(t.getFirstRange(),e)}else n.wrap(a.toViewRange(t.range),e)}}},{priority:"low"})}),e.conversion.for("upcast").add(e=>{e.on("element:a",(e,t,o)=>{const{writer:n,consumable:a}=o;if(!t.viewItem.getAttribute("href"))return;if(!a.consume(t.viewItem,{attributes:["data-ckbox-resource-id"]}))return;const r=t.viewItem.getAttribute("data-ckbox-resource-id");if(r)if(t.modelRange)for(let i of t.modelRange.getItems())i.is("$textProxy")&&(i=i.textNode),df(i)&&n.setAttribute("ckboxLinkId",r,i);else{const e=t.modelCursor.nodeBefore||t.modelCursor.parent;n.setAttribute("ckboxLinkId",r,e)}},{priority:"low"})}),e.conversion.for("downcast").attributeToAttribute({model:"ckboxImageId",view:"data-ckbox-resource-id"}),e.conversion.for("upcast").elementToAttribute({model:{key:"ckboxImageId",value:e=>e.getAttribute("data-ckbox-resource-id")},view:{attributes:{"data-ckbox-resource-id":/[\s\S]+/}}})}_initFixers(){const e=this.editor,t=e.model,o=t.document.selection;t.document.registerPostFixer(function(e){return t=>{let o=!1;const n=e.model,a=e.commands.get("ckbox");if(!a)return o;for(const e of n.document.differ.getChanges()){if("insert"!==e.type&&"attribute"!==e.type)continue;const n="insert"===e.type?new Qd(e.position,e.position.getShiftedBy(e.length)):e.range,r="attribute"===e.type&&"linkHref"===e.attributeKey&&null===e.attributeNewValue;for(const e of n.getItems()){if(r&&e.hasAttribute("ckboxLinkId")){t.removeAttribute("ckboxLinkId",e),o=!0;continue}const n=sf(e,a._chosenAssets);for(const a of n){const n="image"===a.type?"ckboxImageId":"ckboxLinkId";a.id!==e.getAttribute(n)&&(t.setAttribute(n,a.id,e),o=!0)}}}return o}}(e)),t.document.registerPostFixer(function(e){return t=>{!e.hasAttribute("linkHref")&&e.hasAttribute("ckboxLinkId")&&t.removeSelectionAttribute("ckboxLinkId")}}(o))}}function sf(e,t){const o=e.is("element","imageInline")||e.is("element","imageBlock"),n=e.hasAttribute("linkHref");return[...t].filter(t=>"image"===t.type&&o?t.attributes.imageFallbackUrl===e.getAttribute("src"):"link"===t.type&&n?t.attributes.linkHref===e.getAttribute("linkHref"):void 0)}function cf(e,t){const o=e.createAttributeElement("a",{"data-ckbox-resource-id":t},{priority:5});return e.setCustomProperty("link",!0,o),o}function df(e){return!!e.is("$text")||!(!e.is("element","imageInline")&&!e.is("element","imageBlock"))}const uf={autoRefresh:!0},mf=36e5;class hf{constructor(e,t=uf){if(!e)throw new x("token-missing-token-url",this);t.initValue&&this._validateTokenValue(t.initValue),this.set("value",t.initValue),this._refresh="function"==typeof e?e:()=>{return t=e,new Promise((e,o)=>{const n=new XMLHttpRequest;n.open("GET",t),n.addEventListener("load",()=>{const t=n.status,a=n.response;return t<200||t>299?o(new x("token-cannot-download-new-token",null)):e(a)}),n.addEventListener("error",()=>o(new Error("Network Error"))),n.addEventListener("abort",()=>o(new Error("Abort"))),n.send()});var t},this._options=Object.assign({},uf,t)}init(){return new Promise((e,t)=>{this.value?(this._options.autoRefresh&&this._registerRefreshTokenTimeout(),e(this)):this.refreshToken().then(e).catch(t)})}refreshToken(){return this._refresh().then(e=>{this._validateTokenValue(e),this.set("value",e),this._options.autoRefresh&&this._registerRefreshTokenTimeout()}).then(()=>this)}destroy(){clearTimeout(this._tokenRefreshTimeout)}_validateTokenValue(e){const t="string"==typeof e,o=!/^".*"$/.test(e),n=t&&3===e.split(".").length;if(!o||!n)throw new x("token-not-in-jwt-format",this)}_registerRefreshTokenTimeout(){const e=this._getTokenRefreshTimeoutTime();clearTimeout(this._tokenRefreshTimeout),this._tokenRefreshTimeout=setTimeout(()=>{this.refreshToken()},e)}_getTokenRefreshTimeoutTime(){try{const[,e]=this.value.split("."),{exp:t}=JSON.parse(atob(e));return t?Math.floor((1e3*t-Date.now())/2):mf}catch(o){return mf}}static create(e,t=uf){return new hf(e,t).init()}}f(hf,J);const pf=hf,bf=/^data:(\S*?);base64,/;class gf{constructor(e,t,o){if(!e)throw new x("fileuploader-missing-file",null);if(!t)throw new x("fileuploader-missing-token",null);if(!o)throw new x("fileuploader-missing-api-address",null);this.file=function(e){if("string"!=typeof e)return!1;const t=e.match(bf);return!(!t||!t.length)}(e)?function(e,t=512){try{const o=e.match(bf)[1],n=atob(e.replace(bf,"")),a=[];for(let e=0;e<n.length;e+=t){const o=n.slice(e,e+t),r=new Array(o.length);for(let e=0;e<o.length;e++)r[e]=o.charCodeAt(e);a.push(new Uint8Array(r))}return new Blob(a,{type:o})}catch(e){throw new x("fileuploader-decoding-image-data-error",null)}}(e):e,this._token=t,this._apiAddress=o}onProgress(e){return this.on("progress",(t,o)=>e(o)),this}onError(e){return this.once("error",(t,o)=>e(o)),this}abort(){this.xhr.abort()}send(){return this._prepareRequest(),this._attachXHRListeners(),this._sendRequest()}_prepareRequest(){const e=new XMLHttpRequest;e.open("POST",this._apiAddress),e.setRequestHeader("Authorization",this._token.value),e.responseType="json",this.xhr=e}_attachXHRListeners(){const e=this,t=this.xhr;function o(t){return()=>e.fire("error",t)}t.addEventListener("error",o("Network Error")),t.addEventListener("abort",o("Abort")),t.upload&&t.upload.addEventListener("progress",e=>{e.lengthComputable&&this.fire("progress",{total:e.total,uploaded:e.loaded})}),t.addEventListener("load",()=>{const e=t.status,o=t.response;if(e<200||e>299)return this.fire("error",o.message||o.error)})}_sendRequest(){const e=new FormData,t=this.xhr;return e.append("file",this.file),new Promise((o,n)=>{t.addEventListener("load",()=>{const e=t.status,a=t.response;return e<200||e>299?a.message?n(new x("fileuploader-uploading-data-failed",this,{message:a.message})):n(a.error):o(a)}),t.addEventListener("error",()=>n(new Error("Network Error"))),t.addEventListener("abort",()=>n(new Error("Abort"))),t.send(e)})}}f(gf,z);class ff{constructor(e,t){if(!e)throw new x("uploadgateway-missing-token",null);if(!t)throw new x("uploadgateway-missing-api-address",null);this._token=e,this._apiAddress=t}upload(e){return new gf(e,this._token,this._apiAddress)}}class vf extends Fi{static get pluginName(){return"CloudServicesCore"}createToken(e,t){return new pf(e,t)}createUploadGateway(e,t){return new ff(e,t)}}class wf extends yc{constructor(e){super(e);const t=this.document;function o(e){return(o,n)=>{n.preventDefault();const a=n.dropRange?[n.dropRange]:null,r=new w(t,e);t.fire(r,{dataTransfer:n.dataTransfer,method:o.name,targetRanges:a,target:n.target}),r.stop.called&&n.stopPropagation()}}this.domEventType=["paste","copy","cut","drop","dragover","dragstart","dragend","dragenter","dragleave"],this.listenTo(t,"paste",o("clipboardInput"),{priority:"low"}),this.listenTo(t,"drop",o("clipboardInput"),{priority:"low"}),this.listenTo(t,"dragover",o("dragging"),{priority:"low"})}onDomEvent(e){const t="clipboardData"in e?e.clipboardData:e.dataTransfer,o="drop"==e.type||"paste"==e.type,n={dataTransfer:new Dd(t,{cacheFiles:o})};"drop"!=e.type&&"dragover"!=e.type||(n.dropRange=function(e,t){const o=t.target.ownerDocument,n=t.clientX,a=t.clientY;let r;return o.caretRangeFromPoint&&o.caretRangeFromPoint(n,a)?r=o.caretRangeFromPoint(n,a):t.rangeParent&&(r=o.createRange(),r.setStart(t.rangeParent,t.rangeOffset),r.collapse(!0)),r?e.domConverter.domRangeToView(r):null}(this.view,e)),this.fire(e.type,e,n)}}const kf=["figcaption","li"];function Cf(e){let t="";if(e.is("$text")||e.is("$textProxy"))t=e.data;else if(e.is("element","img")&&e.hasAttribute("alt"))t=e.getAttribute("alt");else if(e.is("element","br"))t="\n";else{let o=null;for(const n of e.getChildren()){const e=Cf(n);o&&(o.is("containerElement")||n.is("containerElement"))&&(kf.includes(o.name)||kf.includes(n.name)?t+="\n":t+="\n\n"),t+=e,o=n}}return t}class yf extends Di{static get pluginName(){return"ClipboardPipeline"}init(){this.editor.editing.view.addObserver(wf),this._setupPasteDrop(),this._setupCopyCut()}_setupPasteDrop(){const e=this.editor,t=e.model,o=e.editing.view,n=o.document;this.listenTo(n,"clipboardInput",t=>{e.isReadOnly&&t.stop()},{priority:"highest"}),this.listenTo(n,"clipboardInput",(e,t)=>{const n=t.dataTransfer;let a;if(t.content)a=t.content;else{let e="";n.getData("text/html")?e=function(e){return e.replace(/<span(?: class="Apple-converted-space"|)>(\s+)<\/span>/g,(e,t)=>1==t.length?" ":t).replace(/<!--[\s\S]*?-->/g,"")}(n.getData("text/html")):n.getData("text/plain")&&(((r=(r=n.getData("text/plain")).replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/\r?\n\r?\n/g,"</p><p>").replace(/\r?\n/g,"<br>").replace(/\t/g,"&nbsp;&nbsp;&nbsp;&nbsp;").replace(/^\s/,"&nbsp;").replace(/\s$/,"&nbsp;").replace(/\s\s/g," &nbsp;")).includes("</p><p>")||r.includes("<br>"))&&(r=`<p>${r}</p>`),e=r),a=this.editor.data.htmlProcessor.toView(e)}var r;const i=new w(this,"inputTransformation");this.fire(i,{content:a,dataTransfer:n,targetRanges:t.targetRanges,method:t.method}),i.stop.called&&e.stop(),o.scrollToTheSelection()},{priority:"low"}),this.listenTo(this,"inputTransformation",(e,o)=>{if(o.content.isEmpty)return;const n=this.editor.data.toModel(o.content,"$clipboardHolder");0!=n.childCount&&(e.stop(),t.change(()=>{this.fire("contentInsertion",{content:n,method:o.method,dataTransfer:o.dataTransfer,targetRanges:o.targetRanges})}))},{priority:"low"}),this.listenTo(this,"contentInsertion",(e,o)=>{o.resultRange=t.insertContent(o.content)},{priority:"low"})}_setupCopyCut(){const e=this.editor,t=e.model.document,o=e.editing.view.document,n=(n,a)=>{const r=a.dataTransfer;a.preventDefault();const i=e.data.toView(e.model.getSelectedContent(t.selection));o.fire("clipboardOutput",{dataTransfer:r,content:i,method:n.name})};this.listenTo(o,"copy",n,{priority:"low"}),this.listenTo(o,"cut",(t,o)=>{e.isReadOnly?o.preventDefault():n(t,o)},{priority:"low"}),this.listenTo(o,"clipboardOutput",(o,n)=>{n.content.isEmpty||(n.dataTransfer.setData("text/html",this.editor.data.htmlProcessor.toData(n.content)),n.dataTransfer.setData("text/plain",Cf(n.content))),"cut"==n.method&&e.model.deleteContent(t.selection)},{priority:"low"})}}class Of extends(z()){constructor(){super(),this._stack=[]}add(e,t){const o=this._stack,n=o[0];this._insertDescriptor(e);const a=o[0];n===a||jf(n,a)||this.fire("change:top",{oldDescriptor:n,newDescriptor:a,writer:t})}remove(e,t){const o=this._stack,n=o[0];this._removeDescriptor(e);const a=o[0];n===a||jf(n,a)||this.fire("change:top",{oldDescriptor:n,newDescriptor:a,writer:t})}_insertDescriptor(e){const t=this._stack,o=t.findIndex(t=>t.id===e.id);if(jf(e,t[o]))return;o>-1&&t.splice(o,1);let n=0;for(;t[n]&&xf(t[n],e);)n++;t.splice(n,0,e)}_removeDescriptor(e){const t=this._stack,o=t.findIndex(t=>t.id===e);o>-1&&t.splice(o,1)}}function jf(e,t){return e&&t&&e.priority==t.priority&&_f(e.classes)==_f(t.classes)}function xf(e,t){return e.priority>t.priority||!(e.priority<t.priority)&&_f(e.classes)>_f(t.classes)}function _f(e){return Array.isArray(e)?e.sort().join(","):e}const Vf='<svg viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg"><path d="M4 0v1H1v3H0V.5A.5.5 0 0 1 .5 0H4zm8 0h3.5a.5.5 0 0 1 .5.5V4h-1V1h-3V0zM4 16H.5a.5.5 0 0 1-.5-.5V12h1v3h3v1zm8 0v-1h3v-3h1v3.5a.5.5 0 0 1-.5.5H12z"/><path fill-opacity=".256" d="M1 1h14v14H1z"/><g class="ck-icon__selected-indicator"><path d="M7 0h2v1H7V0zM0 7h1v2H0V7zm15 0h1v2h-1V7zm-8 8h2v1H7v-1z"/><path fill-opacity=".254" d="M1 1h14v14H1z"/></g></svg>',Af="ck-widget",Nf="ck-widget_selected";function Df(e){return!!e.is("element")&&!!e.getCustomProperty("widget")}function Ef(e,t,o={}){if(!e.is("containerElement"))throw new x("widget-to-widget-wrong-element-type",null,{element:e});return t.setAttribute("contenteditable","false",e),t.addClass(Af,e),t.setCustomProperty("widget",!0,e),e.getFillerOffset=Ff,t.setCustomProperty("widgetLabel",[],e),o.label&&function(e,t){const o=e.getCustomProperty("widgetLabel");o.push(t)}(e,o.label),o.hasSelectionHandle&&function(e,t){const o=t.createUIElement("div",{class:"ck ck-widget__selection-handle"},(function(e){const t=this.toDomElement(e),o=new oi;return o.set("content",Vf),o.render(),t.appendChild(o.element),t}));t.insert(t.createPositionAt(e,0),o),t.addClass(["ck-widget_with-selection-handle"],e)}(e,t),Bf(e,t),e}function Tf(e,t,o){if(t.classes&&o.addClass(ur(t.classes),e),t.attributes)for(const n in t.attributes)o.setAttribute(n,t.attributes[n],e)}function Sf(e,t,o){if(t.classes&&o.removeClass(ur(t.classes),e),t.attributes)for(const n in t.attributes)o.removeAttribute(n,e)}function Bf(e,t,o=Tf,n=Sf){const a=new Of;a.on("change:top",(t,a)=>{a.oldDescriptor&&n(e,a.oldDescriptor,a.writer),a.newDescriptor&&o(e,a.newDescriptor,a.writer)}),t.setCustomProperty("addHighlight",(e,t,o)=>a.add(t,o),e),t.setCustomProperty("removeHighlight",(e,t,o)=>a.remove(t,o),e)}function If(e,t,o={}){return t.addClass(["ck-editor__editable","ck-editor__nested-editable"],e),t.setAttribute("role","textbox",e),o.label&&t.setAttribute("aria-label",o.label,e),t.setAttribute("contenteditable",e.isReadOnly?"false":"true",e),e.on("change:isReadOnly",(o,n,a)=>{t.setAttribute("contenteditable",a?"false":"true",e)}),e.on("change:isFocused",(o,n,a)=>{a?t.addClass("ck-editor__nested-editable_focused",e):t.removeClass("ck-editor__nested-editable_focused",e)}),Bf(e,t),e}function zf(e,t){const o=e.getSelectedElement();if(o){const n=Pf(e);if(n)return t.createRange(t.createPositionAt(o,n))}return _h(e,t)}function Ff(){return null}const Mf="widget-type-around";function Lf(e,t,o){return!!e&&Df(e)&&!o.isInline(t)}function Pf(e){return e.getAttribute(Mf)}var Rf=r(5137),qf={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};Ar()(Rf.Z,qf),Rf.Z.locals;const $f=["before","after"],Uf=(new DOMParser).parseFromString('<svg viewBox="0 0 10 8" xmlns="http://www.w3.org/2000/svg"><path d="M9.055.263v3.972h-6.77M1 4.216l2-2.038m-2 2 2 2.038"/></svg>',"image/svg+xml").firstChild,Hf="ck-widget__type-around_disabled";class Wf extends Di{static get pluginName(){return"WidgetTypeAround"}static get requires(){return[Og,Gb]}constructor(e){super(e),this._currentFakeCaretModelElement=null}init(){const e=this.editor,t=e.editing.view;this.on("change:isEnabled",(o,n,a)=>{t.change(e=>{for(const o of t.document.roots)a?e.removeClass(Hf,o):e.addClass(Hf,o)}),a||e.model.change(e=>{e.removeSelectionAttribute(Mf)})}),this._enableTypeAroundUIInjection(),this._enableInsertingParagraphsOnButtonClick(),this._enableInsertingParagraphsOnEnterKeypress(),this._enableInsertingParagraphsOnTypingKeystroke(),this._enableTypeAroundFakeCaretActivationUsingKeyboardArrows(),this._enableDeleteIntegration(),this._enableInsertContentIntegration(),this._enableInsertObjectIntegration(),this._enableDeleteContentIntegration()}destroy(){super.destroy(),this._currentFakeCaretModelElement=null}_insertParagraph(e,t){const o=this.editor,n=o.editing.view,a=o.model.schema.getAttributesWithProperty(e,"copyOnReplace",!0);o.execute("insertParagraph",{position:o.model.createPositionAt(e,t),attributes:a}),n.focus(),n.scrollToTheSelection()}_listenToIfEnabled(e,t,o,n){this.listenTo(e,t,(...e)=>{this.isEnabled&&o(...e)},n)}_insertParagraphAccordingToFakeCaretPosition(){const e=this.editor.model.document.selection,t=Pf(e);if(!t)return!1;const o=e.getSelectedElement();return this._insertParagraph(o,t),!0}_enableTypeAroundUIInjection(){const e=this.editor,t=e.model.schema,o=e.locale.t,n={before:o("Insert paragraph before block"),after:o("Insert paragraph after block")};e.editing.downcastDispatcher.on("insert",(e,a,r)=>{const i=r.mapper.toViewElement(a.item);i&&Lf(i,a.item,t)&&(!function(e,t,o){const n=e.createUIElement("div",{class:"ck ck-reset_all ck-widget__type-around"},(function(e){const o=this.toDomElement(e);return function(e,t){for(const o of $f){const n=new Tr({tag:"div",attributes:{class:["ck","ck-widget__type-around__button","ck-widget__type-around__button_"+o],title:t[o],"aria-hidden":"true"},children:[e.ownerDocument.importNode(Uf,!0)]});e.appendChild(n.render())}}(o,t),function(e){const t=new Tr({tag:"div",attributes:{class:["ck","ck-widget__type-around__fake-caret"]}});e.appendChild(t.render())}(o),o}));e.insert(e.createPositionAt(o,"end"),n)}(r.writer,n,i),i.getCustomProperty("widgetLabel").push(()=>this.isEnabled?o("Press Enter to type after or press Shift + Enter to type before the widget"):""))},{priority:"low"})}_enableTypeAroundFakeCaretActivationUsingKeyboardArrows(){const e=this.editor,t=e.model,o=t.document.selection,n=t.schema,a=e.editing.view;function r(e){return"ck-widget_type-around_show-fake-caret_"+e}this._listenToIfEnabled(a.document,"arrowKey",(e,t)=>{this._handleArrowKeyPress(e,t)},{context:[Df,"$text"],priority:"high"}),this._listenToIfEnabled(o,"change:range",(t,o)=>{o.directChange&&e.model.change(e=>{e.removeSelectionAttribute(Mf)})}),this._listenToIfEnabled(t.document,"change:data",()=>{const t=o.getSelectedElement();t&&Lf(e.editing.mapper.toViewElement(t),t,n)||e.model.change(e=>{e.removeSelectionAttribute(Mf)})}),this._listenToIfEnabled(e.editing.downcastDispatcher,"selection",(e,t,o)=>{const a=o.writer;if(this._currentFakeCaretModelElement){const e=o.mapper.toViewElement(this._currentFakeCaretModelElement);e&&(a.removeClass($f.map(r),e),this._currentFakeCaretModelElement=null)}const i=t.selection.getSelectedElement();if(!i)return;const l=o.mapper.toViewElement(i);if(!Lf(l,i,n))return;const s=Pf(t.selection);s&&(a.addClass(r(s),l),this._currentFakeCaretModelElement=i)}),this._listenToIfEnabled(e.ui.focusTracker,"change:isFocused",(t,o,n)=>{n||e.model.change(e=>{e.removeSelectionAttribute(Mf)})})}_handleArrowKeyPress(e,t){const o=this.editor,n=o.model,a=n.document.selection,r=n.schema,i=o.editing.view,l=function(e,t){const o=dr(e,t);return"down"===o||"right"===o}(t.keyCode,o.locale.contentLanguageDirection),s=i.document.selection.getSelectedElement();let c;Lf(s,o.editing.mapper.toModelElement(s),r)?c=this._handleArrowKeyPressOnSelectedWidget(l):a.isCollapsed?c=this._handleArrowKeyPressWhenSelectionNextToAWidget(l):t.shiftKey||(c=this._handleArrowKeyPressWhenNonCollapsedSelection(l)),c&&(t.preventDefault(),e.stop())}_handleArrowKeyPressOnSelectedWidget(e){const t=this.editor.model,o=Pf(t.document.selection);return t.change(t=>o?o!==(e?"after":"before")&&(t.removeSelectionAttribute(Mf),!0):(t.setSelectionAttribute(Mf,e?"after":"before"),!0))}_handleArrowKeyPressWhenSelectionNextToAWidget(e){const t=this.editor,o=t.model,n=o.schema,a=t.plugins.get("Widget"),r=a._getObjectElementNextToSelection(e);return!!Lf(t.editing.mapper.toViewElement(r),r,n)&&(o.change(t=>{a._setSelectionOverElement(r),t.setSelectionAttribute(Mf,e?"before":"after")}),!0)}_handleArrowKeyPressWhenNonCollapsedSelection(e){const t=this.editor,o=t.model,n=o.schema,a=t.editing.mapper,r=o.document.selection,i=e?r.getLastPosition().nodeBefore:r.getFirstPosition().nodeAfter;return!!Lf(a.toViewElement(i),i,n)&&(o.change(t=>{t.setSelection(i,"on"),t.setSelectionAttribute(Mf,e?"after":"before")}),!0)}_enableInsertingParagraphsOnButtonClick(){const e=this.editor,t=e.editing.view;this._listenToIfEnabled(t.document,"mousedown",(o,n)=>{const a=n.domTarget.closest(".ck-widget__type-around__button");if(!a)return;const r=function(e){return e.classList.contains("ck-widget__type-around__button_before")?"before":"after"}(a),i=function(e,t){const o=e.closest(".ck-widget");return t.mapDomToView(o)}(a,t.domConverter),l=e.editing.mapper.toModelElement(i);this._insertParagraph(l,r),n.preventDefault(),o.stop()})}_enableInsertingParagraphsOnEnterKeypress(){const e=this.editor,t=e.model.document.selection,o=e.editing.view;this._listenToIfEnabled(o.document,"enter",(o,n)=>{if("atTarget"!=o.eventPhase)return;const a=t.getSelectedElement(),r=e.editing.mapper.toViewElement(a),i=e.model.schema;let l;this._insertParagraphAccordingToFakeCaretPosition()?l=!0:Lf(r,a,i)&&(this._insertParagraph(a,n.isSoft?"before":"after"),l=!0),l&&(n.preventDefault(),o.stop())},{context:Df})}_enableInsertingParagraphsOnTypingKeystroke(){const e=this.editor.editing.view.document;this._listenToIfEnabled(e,"insertText",(t,o)=>{this._insertParagraphAccordingToFakeCaretPosition()&&(o.selection=e.selection)},{priority:"high"}),u.isAndroid?this._listenToIfEnabled(e,"keydown",(e,t)=>{229==t.keyCode&&this._insertParagraphAccordingToFakeCaretPosition()}):this._listenToIfEnabled(e,"compositionstart",()=>{this._insertParagraphAccordingToFakeCaretPosition()},{priority:"high"})}_enableDeleteIntegration(){const e=this.editor,t=e.editing.view,o=e.model,n=o.schema;this._listenToIfEnabled(t.document,"delete",(t,a)=>{if("atTarget"!=t.eventPhase)return;const r=Pf(o.document.selection);if(!r)return;const i=a.direction,l=o.document.selection.getSelectedElement(),s="forward"==i;if("before"===r===s)e.execute("delete",{selection:o.createSelection(l,"on")});else{const t=n.getNearestSelectionRange(o.createPositionAt(l,r),i);if(t)if(t.isCollapsed){const a=o.createSelection(t.start);if(o.modifySelection(a,{direction:i}),a.focus.isEqual(t.start)){const e=function(e,t){let o=t;for(const n of t.getAncestors({parentFirst:!0})){if(n.childCount>1||e.isLimit(n))break;o=n}return o}(n,t.start.parent);o.deleteContent(o.createSelection(e,"on"),{doNotAutoparagraph:!0})}else o.change(o=>{o.setSelection(t),e.execute(s?"deleteForward":"delete")})}else o.change(o=>{o.setSelection(t),e.execute(s?"deleteForward":"delete")})}a.preventDefault(),t.stop()},{context:Df})}_enableInsertContentIntegration(){const e=this.editor,t=this.editor.model,o=t.document.selection;this._listenToIfEnabled(e.model,"insertContent",(e,[n,a])=>{if(a&&!a.is("documentSelection"))return;const r=Pf(o);return r?(e.stop(),t.change(e=>{const a=o.getSelectedElement(),i=t.createPositionAt(a,r),l=e.createSelection(i),s=t.insertContent(n,l);return e.setSelection(l),s})):void 0},{priority:"high"})}_enableInsertObjectIntegration(){const e=this.editor,t=this.editor.model.document.selection;this._listenToIfEnabled(e.model,"insertObject",(e,o)=>{const[,n,,a={}]=o;if(n&&!n.is("documentSelection"))return;const r=Pf(t);r&&(a.findOptimalPosition=r,o[3]=a)},{priority:"high"})}_enableDeleteContentIntegration(){const e=this.editor,t=this.editor.model.document.selection;this._listenToIfEnabled(e.model,"deleteContent",(e,[o])=>{o&&!o.is("documentSelection")||Pf(t)&&e.stop()},{priority:"high"})}}function Gf(e){const t=e.model;return(o,n)=>{const a=n.keyCode==rr.arrowup,r=n.keyCode==rr.arrowdown,i=n.shiftKey,l=t.document.selection;if(!a&&!r)return;const s=r;if(i&&function(e,t){return!e.isCollapsed&&e.isBackward==t}(l,s))return;const c=function(e,t,o){const n=e.model;if(o){const e=t.isCollapsed?t.focus:t.getLastPosition(),o=Kf(n,e,"forward");if(!o)return null;const a=n.createRange(e,o),r=Yf(n.schema,a,"backward");return r?n.createRange(e,r):null}{const e=t.isCollapsed?t.focus:t.getFirstPosition(),o=Kf(n,e,"backward");if(!o)return null;const a=n.createRange(o,e),r=Yf(n.schema,a,"forward");return r?n.createRange(r,e):null}}(e,l,s);if(c){if(c.isCollapsed){if(l.isCollapsed)return;if(i)return}(c.isCollapsed||function(e,t,o){const n=e.model,a=e.view.domConverter;if(o){const e=n.createSelection(t.start);n.modifySelection(e),e.focus.isAtEnd||t.start.isEqual(e.focus)||(t=n.createRange(e.focus,t.end))}const r=e.mapper.toViewRange(t),i=a.viewRangeToDom(r),l=Sa.getDomRangeRects(i);let s;for(const c of l)if(void 0!==s){if(Math.round(c.top)>=s)return!1;s=Math.max(s,Math.round(c.bottom))}else s=Math.round(c.bottom);return!0}(e,c,s))&&(t.change(e=>{const o=s?c.end:c.start;if(i){const n=t.createSelection(l.anchor);n.setFocus(o),e.setSelection(n)}else e.setSelection(o)}),o.stop(),n.preventDefault(),n.stopPropagation())}}}function Kf(e,t,o){const n=e.schema,a=e.createRangeIn(t.root),r="forward"==o?"elementStart":"elementEnd";for(const{previousPosition:i,item:l,type:s}of a.getWalker({startPosition:t,direction:o})){if(n.isLimit(l)&&!n.isInline(l))return i;if(s==r&&n.isBlock(l))return null}return null}function Yf(e,t,o){const n="backward"==o?t.end:t.start;if(e.checkChild(n,"$text"))return n;for(const{nextPosition:a}of t.getWalker({direction:o}))if(e.checkChild(a,"$text"))return a;return null}var Qf=r(6507),Jf={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};Ar()(Qf.Z,Jf),Qf.Z.locals;class Zf extends Di{static get pluginName(){return"Widget"}static get requires(){return[Wf,Gb]}init(){const e=this.editor,t=e.editing.view,o=t.document;this._previouslySelected=new Set,this.editor.editing.downcastDispatcher.on("selection",(t,o,n)=>{const a=n.writer,r=o.selection;if(r.isCollapsed)return;const i=r.getSelectedElement();if(!i)return;const l=e.editing.mapper.toViewElement(i);var s;Df(l)&&n.consumable.consume(r,"selection")&&a.setSelection(a.createRangeOn(l),{fake:!0,label:(s=l,s.getCustomProperty("widgetLabel").reduce((e,t)=>"function"==typeof t?e?e+". "+t():t():e?e+". "+t:t,""))})}),this.editor.editing.downcastDispatcher.on("selection",(e,t,o)=>{this._clearPreviouslySelectedWidgets(o.writer);const n=o.writer,a=n.document.selection;let r=null;for(const i of a.getRanges())for(const e of i){const t=e.item;Df(t)&&!Xf(t,r)&&(n.addClass(Nf,t),this._previouslySelected.add(t),r=t)}},{priority:"low"}),t.addObserver(Ih),this.listenTo(o,"mousedown",(...e)=>this._onMousedown(...e)),this.listenTo(o,"arrowKey",(...e)=>{this._handleSelectionChangeOnArrowKeyPress(...e)},{context:[Df,"$text"]}),this.listenTo(o,"arrowKey",(...e)=>{this._preventDefaultOnArrowKeyPress(...e)},{context:"$root"}),this.listenTo(o,"arrowKey",Gf(this.editor.editing),{context:"$text"}),this.listenTo(o,"delete",(e,t)=>{this._handleDelete("forward"==t.direction)&&(t.preventDefault(),e.stop())},{context:"$root"})}_onMousedown(e,t){const o=this.editor,n=o.editing.view,a=n.document;let r=t.target;if(function(e){let t=e;for(;t;){if(t.is("editableElement")&&!t.is("rootElement"))return!0;if(Df(t))return!1;t=t.parent}return!1}(r)){if((u.isSafari||u.isGecko)&&t.domEvent.detail>=3){const e=o.editing.mapper,n=r.is("attributeElement")?r.findAncestor(e=>!e.is("attributeElement")):r,a=e.toModelElement(n);t.preventDefault(),this.editor.model.change(e=>{e.setSelection(a,"in")})}return}if(!Df(r)&&(r=r.findAncestor(Df),!r))return;u.isAndroid&&t.preventDefault(),a.isFocused||n.focus();const i=o.editing.mapper.toModelElement(r);this._setSelectionOverElement(i)}_handleSelectionChangeOnArrowKeyPress(e,t){const o=t.keyCode,n=this.editor.model,a=n.schema,r=n.document.selection,i=r.getSelectedElement(),l=dr(o,this.editor.locale.contentLanguageDirection),s="down"==l||"right"==l,c="up"==l||"down"==l;if(i&&a.isObject(i)){const o=s?r.getLastPosition():r.getFirstPosition(),i=a.getNearestSelectionRange(o,s?"forward":"backward");return void(i&&(n.change(e=>{e.setSelection(i)}),t.preventDefault(),e.stop()))}if(!r.isCollapsed&&!t.shiftKey){const o=r.getFirstPosition(),i=r.getLastPosition(),l=o.nodeAfter,c=i.nodeBefore;return void((l&&a.isObject(l)||c&&a.isObject(c))&&(n.change(e=>{e.setSelection(s?i:o)}),t.preventDefault(),e.stop()))}if(!r.isCollapsed)return;const d=this._getObjectElementNextToSelection(s);if(d&&a.isObject(d)){if(a.isInline(d)&&c)return;this._setSelectionOverElement(d),t.preventDefault(),e.stop()}}_preventDefaultOnArrowKeyPress(e,t){const o=this.editor.model,n=o.schema,a=o.document.selection.getSelectedElement();a&&n.isObject(a)&&(t.preventDefault(),e.stop())}_handleDelete(e){if(this.editor.isReadOnly)return;const t=this.editor.model.document.selection;if(!t.isCollapsed)return;const o=this._getObjectElementNextToSelection(e);return o?(this.editor.model.change(e=>{let n=t.anchor.parent;for(;n.isEmpty;){const t=n;n=t.parent,e.remove(t)}this._setSelectionOverElement(o)}),!0):void 0}_setSelectionOverElement(e){this.editor.model.change(t=>{t.setSelection(t.createRangeOn(e))})}_getObjectElementNextToSelection(e){const t=this.editor.model,o=t.schema,n=t.document.selection,a=t.createSelection(n);if(t.modifySelection(a,{direction:e?"forward":"backward"}),a.isEqual(n))return null;const r=e?a.focus.nodeBefore:a.focus.nodeAfter;return r&&o.isObject(r)?r:null}_clearPreviouslySelectedWidgets(e){for(const t of this._previouslySelected)e.removeClass(Nf,t);this._previouslySelected.clear()}}function Xf(e,t){return!!t&&Array.from(e.getAncestors()).includes(t)}class ev extends Di{static get requires(){return[vb]}static get pluginName(){return"WidgetToolbarRepository"}init(){const e=this.editor;if(e.plugins.has("BalloonToolbar")){const t=e.plugins.get("BalloonToolbar");this.listenTo(t,"show",t=>{(function(e){const t=e.getSelectedElement();return!(!t||!Df(t))})(e.editing.view.document.selection)&&t.stop()},{priority:"high"})}this._toolbarDefinitions=new Map,this._balloon=this.editor.plugins.get("ContextualBalloon"),this.on("change:isEnabled",()=>{this._updateToolbarsVisibility()}),this.listenTo(e.ui,"update",()=>{this._updateToolbarsVisibility()}),this.listenTo(e.ui.focusTracker,"change:isFocused",()=>{this._updateToolbarsVisibility()},{priority:"low"})}destroy(){super.destroy();for(const e of this._toolbarDefinitions.values())e.view.destroy()}register(e,{ariaLabel:t,items:o,getRelatedElement:n,balloonClassName:a="ck-toolbar-container"}){if(!o.length)return void _("widget-toolbar-no-items",{toolbarId:e});const r=this.editor,i=r.t,l=new hp(r.locale);if(l.ariaLabel=t||i("Widget toolbar"),this._toolbarDefinitions.has(e))throw new x("widget-toolbar-duplicated",this,{toolbarId:e});const s={view:l,getRelatedElement:n,balloonClassName:a,itemsConfig:o,initialized:!1};r.ui.addToolbar(l,{isContextual:!0,beforeFocus:()=>{const e=n(r.editing.view.document.selection);e&&this._showToolbar(s,e)},afterBlur:()=>{this._hideToolbar(s)}}),this._toolbarDefinitions.set(e,s)}_updateToolbarsVisibility(){let e=0,t=null,o=null;for(const n of this._toolbarDefinitions.values()){const a=n.getRelatedElement(this.editor.editing.view.document.selection);if(this.isEnabled&&a)if(this.editor.ui.focusTracker.isFocused){const r=a.getAncestors().length;r>e&&(e=r,t=a,o=n)}else this._isToolbarVisible(n)&&this._hideToolbar(n);else this._isToolbarInBalloon(n)&&this._hideToolbar(n)}o&&this._showToolbar(o,t)}_hideToolbar(e){this._balloon.remove(e.view),this.stopListening(this._balloon,"change:visibleView")}_showToolbar(e,t){this._isToolbarVisible(e)?tv(this.editor,t):this._isToolbarInBalloon(e)||(e.initialized||(e.initialized=!0,e.view.fillFromConfig(e.itemsConfig,this.editor.ui.componentFactory)),this._balloon.add({view:e.view,position:ov(this.editor,t),balloonClassName:e.balloonClassName}),this.listenTo(this._balloon,"change:visibleView",()=>{for(const e of this._toolbarDefinitions.values())if(this._isToolbarVisible(e)){const t=e.getRelatedElement(this.editor.editing.view.document.selection);tv(this.editor,t)}}))}_isToolbarVisible(e){return this._balloon.visibleView===e.view}_isToolbarInBalloon(e){return this._balloon.hasView(e.view)}}function tv(e,t){const o=e.plugins.get("ContextualBalloon"),n=ov(e,t);o.updatePosition(n)}function ov(e,t){const o=e.editing.view,n=zp.defaultPositions;return{target:o.domConverter.mapViewToDom(t),positions:[n.northArrowSouth,n.northArrowSouthWest,n.northArrowSouthEast,n.southArrowNorth,n.southArrowNorthWest,n.southArrowNorthEast,n.viewportStickyNorth]}}J();J();var nv=r(2263),av={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};Ar()(nv.Z,av),nv.Z.locals;var rv="Expected a function";const iv=function(e,t,o){var n=!0,a=!0;if("function"!=typeof e)throw new TypeError(rv);return U(o)&&(n="leading"in o?!!o.leading:n,a="trailing"in o?!!o.trailing:a),Mc(e,t,{leading:n,maxWait:t,trailing:a})};var lv=r(390),sv={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};Ar()(lv.Z,sv),lv.Z.locals;class cv extends Di{static get pluginName(){return"DragDrop"}static get requires(){return[yf,Zf]}init(){const e=this.editor,t=e.editing.view;this._draggedRange=null,this._draggingUid="",this._draggableElement=null,this._updateDropMarkerThrottled=iv(e=>this._updateDropMarker(e),40),this._removeDropMarkerDelayed=mv(()=>this._removeDropMarker(),40),this._clearDraggableAttributesDelayed=mv(()=>this._clearDraggableAttributes(),40),t.addObserver(wf),t.addObserver(Ih),this._setupDragging(),this._setupContentInsertionIntegration(),this._setupClipboardInputIntegration(),this._setupDropMarker(),this._setupDraggableAttributeHandling(),this.listenTo(e,"change:isReadOnly",(e,t,o)=>{o?this.forceDisabled("readOnlyMode"):this.clearForceDisabled("readOnlyMode")}),this.on("change:isEnabled",(e,t,o)=>{o||this._finalizeDragging(!1)}),u.isAndroid&&this.forceDisabled("noAndroidSupport")}destroy(){return this._draggedRange&&(this._draggedRange.detach(),this._draggedRange=null),this._updateDropMarkerThrottled.cancel(),this._removeDropMarkerDelayed.cancel(),this._clearDraggableAttributesDelayed.cancel(),super.destroy()}_setupDragging(){const e=this.editor,t=e.model,o=t.document,n=e.editing.view,a=n.document;this.listenTo(a,"dragstart",(n,r)=>{const i=o.selection;if(r.target&&r.target.is("editableElement"))return void r.preventDefault();const l=r.target?hv(r.target):null;if(l){const o=e.editing.mapper.toModelElement(l);this._draggedRange=su.fromRange(t.createRangeOn(o)),e.plugins.has("WidgetToolbarRepository")&&e.plugins.get("WidgetToolbarRepository").forceDisabled("dragDrop")}else if(!a.selection.isCollapsed){const e=a.selection.getSelectedElement();e&&Df(e)||(this._draggedRange=su.fromRange(i.getFirstRange()))}if(!this._draggedRange)return void r.preventDefault();this._draggingUid=C(),r.dataTransfer.effectAllowed=this.isEnabled?"copyMove":"copy",r.dataTransfer.setData("application/ckeditor5-dragging-uid",this._draggingUid);const s=t.createSelection(this._draggedRange.toRange()),c=e.data.toView(t.getSelectedContent(s));a.fire("clipboardOutput",{dataTransfer:r.dataTransfer,content:c,method:"dragstart"}),this.isEnabled||(this._draggedRange.detach(),this._draggedRange=null,this._draggingUid="")},{priority:"low"}),this.listenTo(a,"dragend",(e,t)=>{this._finalizeDragging(!t.dataTransfer.isCanceled&&"move"==t.dataTransfer.dropEffect)},{priority:"low"}),this.listenTo(a,"dragenter",()=>{this.isEnabled&&n.focus()}),this.listenTo(a,"dragleave",()=>{this._removeDropMarkerDelayed()}),this.listenTo(a,"dragging",(t,o)=>{if(!this.isEnabled)return void(o.dataTransfer.dropEffect="none");this._removeDropMarkerDelayed.cancel();const n=dv(e,o.targetRanges,o.target);this._draggedRange||(o.dataTransfer.dropEffect="copy"),u.isGecko||("copy"==o.dataTransfer.effectAllowed?o.dataTransfer.dropEffect="copy":["all","copyMove"].includes(o.dataTransfer.effectAllowed)&&(o.dataTransfer.dropEffect="move")),n&&this._updateDropMarkerThrottled(n)},{priority:"low"})}_setupClipboardInputIntegration(){const e=this.editor,t=e.editing.view.document;this.listenTo(t,"clipboardInput",(t,o)=>{if("drop"!=o.method)return;const n=dv(e,o.targetRanges,o.target);return this._removeDropMarker(),n?(this._draggedRange&&this._draggingUid!=o.dataTransfer.getData("application/ckeditor5-dragging-uid")&&(this._draggedRange.detach(),this._draggedRange=null,this._draggingUid=""),"move"==uv(o.dataTransfer)&&this._draggedRange&&this._draggedRange.containsRange(n,!0)?(this._finalizeDragging(!1),void t.stop()):void(o.targetRanges=[e.editing.mapper.toViewRange(n)])):(this._finalizeDragging(!1),void t.stop())},{priority:"high"})}_setupContentInsertionIntegration(){const e=this.editor.plugins.get(yf);e.on("contentInsertion",(e,t)=>{if(!this.isEnabled||"drop"!==t.method)return;const o=t.targetRanges.map(e=>this.editor.editing.mapper.toModelRange(e));this.editor.model.change(e=>e.setSelection(o))},{priority:"high"}),e.on("contentInsertion",(e,t)=>{if(!this.isEnabled||"drop"!==t.method)return;const o="move"==uv(t.dataTransfer),n=!t.resultRange||!t.resultRange.isCollapsed;this._finalizeDragging(n&&o)},{priority:"lowest"})}_setupDraggableAttributeHandling(){const e=this.editor,t=e.editing.view,o=t.document;this.listenTo(o,"mousedown",(n,a)=>{if(u.isAndroid||!a)return;this._clearDraggableAttributesDelayed.cancel();let r=hv(a.target);if(u.isBlink&&!e.isReadOnly&&!r&&!o.selection.isCollapsed){const e=o.selection.getSelectedElement();e&&Df(e)||(r=o.selection.editableElement)}r&&(t.change(e=>{e.setAttribute("draggable","true",r)}),this._draggableElement=e.editing.mapper.toModelElement(r))}),this.listenTo(o,"mouseup",()=>{u.isAndroid||this._clearDraggableAttributesDelayed()})}_clearDraggableAttributes(){const e=this.editor.editing;e.view.change(t=>{this._draggableElement&&"$graveyard"!=this._draggableElement.root.rootName&&t.removeAttribute("draggable",e.mapper.toViewElement(this._draggableElement)),this._draggableElement=null})}_setupDropMarker(){const e=this.editor;e.conversion.for("editingDowncast").markerToHighlight({model:"drop-target",view:{classes:["ck-clipboard-drop-target-range"]}}),e.conversion.for("editingDowncast").markerToElement({model:"drop-target",view:(t,{writer:o})=>{if(e.model.schema.checkChild(t.markerRange.start,"$text"))return o.createUIElement("span",{class:"ck ck-clipboard-drop-target-position"},(function(e){const t=this.toDomElement(e);return t.append("",e.createElement("span"),""),t}))}})}_updateDropMarker(e){const t=this.editor,o=t.model.markers;t.model.change(t=>{o.has("drop-target")?o.get("drop-target").getRange().isEqual(e)||t.updateMarker("drop-target",{range:e}):t.addMarker("drop-target",{range:e,usingOperation:!1,affectsData:!1})})}_removeDropMarker(){const e=this.editor.model;this._removeDropMarkerDelayed.cancel(),this._updateDropMarkerThrottled.cancel(),e.markers.has("drop-target")&&e.change(e=>{e.removeMarker("drop-target")})}_finalizeDragging(e){const t=this.editor,o=t.model;this._removeDropMarker(),this._clearDraggableAttributes(),t.plugins.has("WidgetToolbarRepository")&&t.plugins.get("WidgetToolbarRepository").clearForceDisabled("dragDrop"),this._draggingUid="",this._draggedRange&&(e&&this.isEnabled&&o.deleteContent(o.createSelection(this._draggedRange),{doNotAutoparagraph:!0}),this._draggedRange.detach(),this._draggedRange=null)}}function dv(e,t,o){const n=e.model,a=e.editing.mapper;let r=null;const i=t?t[0].start:null;if(o.is("uiElement")&&(o=o.parent),r=function(e,t){const o=e.model,n=e.editing.mapper;if(Df(t))return o.createRangeOn(n.toModelElement(t));if(!t.is("editableElement")){const e=t.findAncestor(e=>Df(e)||e.is("editableElement"));if(Df(e))return o.createRangeOn(n.toModelElement(e))}return null}(e,o),r)return r;const l=function(e,t){const o=e.editing.mapper,n=e.editing.view,a=o.toModelElement(t);if(a)return a;const r=n.createPositionBefore(t),i=o.findMappedViewAncestor(r);return o.toModelElement(i)}(e,o),s=i?a.toModelPosition(i):null;return s?(r=function(e,t,o){const n=e.model;if(!n.schema.checkChild(o,"$block"))return null;const a=n.createPositionAt(o,0),r=t.path.slice(0,a.path.length),i=n.createPositionFromPath(t.root,r),l=i.nodeAfter;return l&&n.schema.isObject(l)?n.createRangeOn(l):null}(e,s,l),r||(r=n.schema.getNearestSelectionRange(s,u.isGecko?"forward":"backward"),r||function(e,t){const o=e.model;let n=t;for(;n;){if(o.schema.isObject(n))return o.createRangeOn(n);n=n.parent}return null}(e,s.parent))):function(e,t){const o=e.model,n=o.schema,a=o.createPositionAt(t,0);return n.getNearestSelectionRange(a,"forward")}(e,l)}function uv(e){return u.isGecko?e.dropEffect:["all","copyMove"].includes(e.effectAllowed)?"move":"copy"}function mv(e,t){let o;function n(...a){n.cancel(),o=setTimeout(()=>e(...a),t)}return n.cancel=()=>{clearTimeout(o)},n}function hv(e){if(e.is("editableElement"))return null;if(e.hasClass("ck-widget__selection-handle"))return e.findAncestor(Df);if(Df(e))return e;const t=e.findAncestor(e=>Df(e)||e.is("editableElement"));return Df(t)?t:null}class pv extends Di{static get pluginName(){return"PastePlainText"}static get requires(){return[yf]}init(){const e=this.editor,t=e.model,o=e.editing.view,n=o.document,a=t.document.selection;let r=!1;o.addObserver(wf),this.listenTo(n,"keydown",(e,t)=>{r=t.shiftKey}),e.plugins.get(yf).on("contentInsertion",(e,o)=>{(r||function(e,t){if(e.childCount>1)return!1;const o=e.getChild(0);return!t.isObject(o)&&0==Array.from(o.getAttributeKeys()).length}(o.content,t.schema))&&t.change(e=>{const n=Array.from(a.getAttributes()).filter(([e])=>t.schema.getAttributeProperties(e).isFormatting);a.isCollapsed||t.deleteContent(a,{doNotAutoparagraph:!0}),n.push(...a.getAttributes());const r=e.createRangeIn(o.content);for(const t of r.getItems())t.is("$textProxy")&&e.setAttributes(n,t)})})}}class bv extends Di{static get pluginName(){return"Clipboard"}static get requires(){return[yf,cv,pv]}}class gv extends Ti{constructor(e){super(e),this.affectsData=!1}execute(){const e=this.editor.model,t=e.document.selection;let o=e.schema.getLimitElement(t);if(t.containsEntireContent(o)||!fv(e.schema,o))do{if(o=o.parent,!o)return}while(!fv(e.schema,o));e.change(e=>{e.setSelection(o,"in")})}}function fv(e,t){return e.isLimit(t)&&(e.checkChild(t,"$text")||e.checkChild(t,"paragraph"))}const vv=sr("Ctrl+A");class wv extends Di{static get pluginName(){return"SelectAllEditing"}init(){const e=this.editor,t=e.editing.view.document;e.commands.add("selectAll",new gv(e)),this.listenTo(t,"keydown",(t,o)=>{lr(o)===vv&&(e.execute("selectAll"),o.preventDefault())})}}class kv extends Di{static get pluginName(){return"SelectAllUI"}init(){const e=this.editor;e.ui.componentFactory.add("selectAll",t=>{const o=e.commands.get("selectAll"),n=new ri(t),a=t.t;return n.set({label:a("Select all"),icon:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"><path d="M.75 15.5a.75.75 0 0 1 .75.75V18l.008.09A.5.5 0 0 0 2 18.5h1.75a.75.75 0 1 1 0 1.5H1.5l-.144-.007a1.5 1.5 0 0 1-1.35-1.349L0 18.5v-2.25a.75.75 0 0 1 .75-.75zm18.5 0a.75.75 0 0 1 .75.75v2.25l-.007.144a1.5 1.5 0 0 1-1.349 1.35L18.5 20h-2.25a.75.75 0 1 1 0-1.5H18a.5.5 0 0 0 .492-.41L18.5 18v-1.75a.75.75 0 0 1 .75-.75zm-10.45 3c.11 0 .2.09.2.2v1.1a.2.2 0 0 1-.2.2H7.2a.2.2 0 0 1-.2-.2v-1.1c0-.11.09-.2.2-.2h1.6zm4 0c.11 0 .2.09.2.2v1.1a.2.2 0 0 1-.2.2h-1.6a.2.2 0 0 1-.2-.2v-1.1c0-.11.09-.2.2-.2h1.6zm.45-5.5a.75.75 0 1 1 0 1.5h-8.5a.75.75 0 1 1 0-1.5h8.5zM1.3 11c.11 0 .2.09.2.2v1.6a.2.2 0 0 1-.2.2H.2a.2.2 0 0 1-.2-.2v-1.6c0-.11.09-.2.2-.2h1.1zm18.5 0c.11 0 .2.09.2.2v1.6a.2.2 0 0 1-.2.2h-1.1a.2.2 0 0 1-.2-.2v-1.6c0-.11.09-.2.2-.2h1.1zm-4.55-2a.75.75 0 1 1 0 1.5H4.75a.75.75 0 1 1 0-1.5h10.5zM1.3 7c.11 0 .2.09.2.2v1.6a.2.2 0 0 1-.2.2H.2a.2.2 0 0 1-.2-.2V7.2c0-.11.09-.2.2-.2h1.1zm18.5 0c.11 0 .2.09.2.2v1.6a.2.2 0 0 1-.2.2h-1.1a.2.2 0 0 1-.2-.2V7.2c0-.11.09-.2.2-.2h1.1zm-4.55-2a.75.75 0 1 1 0 1.5h-2.5a.75.75 0 1 1 0-1.5h2.5zm-5 0a.75.75 0 1 1 0 1.5h-5.5a.75.75 0 0 1 0-1.5h5.5zm-6.5-5a.75.75 0 0 1 0 1.5H2a.5.5 0 0 0-.492.41L1.5 2v1.75a.75.75 0 0 1-1.5 0V1.5l.007-.144A1.5 1.5 0 0 1 1.356.006L1.5 0h2.25zM18.5 0l.144.007a1.5 1.5 0 0 1 1.35 1.349L20 1.5v2.25a.75.75 0 1 1-1.5 0V2l-.008-.09A.5.5 0 0 0 18 1.5h-1.75a.75.75 0 1 1 0-1.5h2.25zM8.8 0c.11 0 .2.09.2.2v1.1a.2.2 0 0 1-.2.2H7.2a.2.2 0 0 1-.2-.2V.2c0-.11.09-.2.2-.2h1.6zm4 0c.11 0 .2.09.2.2v1.1a.2.2 0 0 1-.2.2h-1.6a.2.2 0 0 1-.2-.2V.2c0-.11.09-.2.2-.2h1.6z"/></svg>',keystroke:"Ctrl+A",tooltip:!0}),n.bind("isEnabled").to(o,"isEnabled"),this.listenTo(n,"execute",()=>{e.execute("selectAll"),e.editing.view.focus()}),n})}}class Cv extends Di{static get requires(){return[wv,kv]}static get pluginName(){return"SelectAll"}}class yv extends Ti{constructor(e){super(e),this._stack=[],this._createdBatches=new WeakSet,this.refresh(),this.listenTo(e.data,"set",(e,t)=>{t[1]={...t[1]};const o=t[1];o.batchType||(o.batchType={isUndoable:!1})},{priority:"high"}),this.listenTo(e.data,"set",(e,t)=>{t[1].batchType.isUndoable||this.clearStack()})}refresh(){this.isEnabled=this._stack.length>0}addBatch(e){const t=this.editor.model.document.selection,o={ranges:t.hasOwnRange?Array.from(t.getRanges()):[],isBackward:t.isBackward};this._stack.push({batch:e,selection:o}),this.refresh()}clearStack(){this._stack=[],this.refresh()}_restoreSelection(e,t,o){const n=this.editor.model,a=n.document,r=[],i=e.map(e=>e.getTransformedByOperations(o)),l=i.flat();for(const s of i){const e=s.filter(e=>e.root!=a.graveyard).filter(e=>!jv(e,l));e.length&&(Ov(e),r.push(e[0]))}r.length&&n.change(e=>{e.setSelection(r,{backward:t})})}_undo(e,t){const o=this.editor.model,n=o.document;this._createdBatches.add(t);const a=e.operations.slice().filter(e=>e.isDocumentOperation);a.reverse();for(const r of a){const e=r.baseVersion+1,a=Array.from(n.history.getOperations(e)),i=Mm([r.getReversed()],a,{useRelations:!0,document:this.editor.model.document,padWithNoOps:!1,forceWeakRemove:!0}).operationsA;for(const l of i)t.addOperation(l),o.applyOperation(l),n.history.setOperationAsUndone(r,l)}}}function Ov(e){e.sort((e,t)=>e.start.isBefore(t.start)?-1:1);for(let t=1;t<e.length;t++){const o=e[t-1].getJoined(e[t],!0);o&&(t--,e.splice(t,2,o))}}function jv(e,t){return t.some(t=>t!==e&&t.containsRange(e,!0))}class xv extends yv{execute(e=null){const t=e?this._stack.findIndex(t=>t.batch==e):this._stack.length-1,o=this._stack.splice(t,1)[0],n=this.editor.model.createBatch({isUndo:!0});this.editor.model.enqueueChange(n,()=>{this._undo(o.batch,n);const e=this.editor.model.document.history.getOperations(o.batch.baseVersion);this._restoreSelection(o.selection.ranges,o.selection.isBackward,e),this.fire("revert",o.batch,n)}),this.refresh()}}class _v extends yv{execute(){const e=this._stack.pop(),t=this.editor.model.createBatch({isUndo:!0});this.editor.model.enqueueChange(t,()=>{const o=e.batch.operations[e.batch.operations.length-1].baseVersion+1,n=this.editor.model.document.history.getOperations(o);this._restoreSelection(e.selection.ranges,e.selection.isBackward,n),this._undo(e.batch,t)}),this.refresh()}}class Vv extends Di{static get pluginName(){return"UndoEditing"}constructor(e){super(e),this._batchRegistry=new WeakSet}init(){const e=this.editor;this._undoCommand=new xv(e),this._redoCommand=new _v(e),e.commands.add("undo",this._undoCommand),e.commands.add("redo",this._redoCommand),this.listenTo(e.model,"applyOperation",(e,t)=>{const o=t[0];if(!o.isDocumentOperation)return;const n=o.batch,a=this._redoCommand._createdBatches.has(n),r=this._undoCommand._createdBatches.has(n);this._batchRegistry.has(n)||(this._batchRegistry.add(n),n.isUndoable&&(a?this._undoCommand.addBatch(n):r||(this._undoCommand.addBatch(n),this._redoCommand.clearStack())))},{priority:"highest"}),this.listenTo(this._undoCommand,"revert",(e,t,o)=>{this._redoCommand.addBatch(o)}),e.keystrokes.set("CTRL+Z","undo"),e.keystrokes.set("CTRL+Y","redo"),e.keystrokes.set("CTRL+SHIFT+Z","redo")}}const Av='<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="m5.042 9.367 2.189 1.837a.75.75 0 0 1-.965 1.149l-3.788-3.18a.747.747 0 0 1-.21-.284.75.75 0 0 1 .17-.945L6.23 4.762a.75.75 0 1 1 .964 1.15L4.863 7.866h8.917A.75.75 0 0 1 14 7.9a4 4 0 1 1-1.477 7.718l.344-1.489a2.5 2.5 0 1 0 1.094-4.73l.008-.032H5.042z"/></svg>',Nv='<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="m14.958 9.367-2.189 1.837a.75.75 0 0 0 .965 1.149l3.788-3.18a.747.747 0 0 0 .21-.284.75.75 0 0 0-.17-.945L13.77 4.762a.75.75 0 1 0-.964 1.15l2.331 1.955H6.22A.75.75 0 0 0 6 7.9a4 4 0 1 0 1.477 7.718l-.344-1.489A2.5 2.5 0 1 1 6.039 9.4l-.008-.032h8.927z"/></svg>';class Dv extends Di{static get pluginName(){return"UndoUI"}init(){const e=this.editor,t=e.locale,o=e.t,n="ltr"==t.uiLanguageDirection?Av:Nv,a="ltr"==t.uiLanguageDirection?Nv:Av;this._addButton("undo",o("Undo"),"CTRL+Z",n),this._addButton("redo",o("Redo"),"CTRL+Y",a)}_addButton(e,t,o,n){const a=this.editor;a.ui.componentFactory.add(e,r=>{const i=a.commands.get(e),l=new ri(r);return l.set({label:t,icon:n,keystroke:o,tooltip:!0}),l.bind("isEnabled").to(i,"isEnabled"),this.listenTo(l,"execute",()=>{a.execute(e),a.editing.view.focus()}),l})}}class Ev extends Di{static get requires(){return[Vv,Dv]}static get pluginName(){return"Undo"}}class Tv extends Ti{constructor(e,t){super(e),this.attributeKey=t}refresh(){const e=this.editor.model,t=e.document;this.value=t.selection.getAttribute(this.attributeKey),this.isEnabled=e.schema.checkAttributeInSelection(t.selection,this.attributeKey)}execute(e={}){const t=this.editor.model,o=t.document.selection,n=e.value;t.change(e=>{if(o.isCollapsed)n?e.setSelectionAttribute(this.attributeKey,n):e.removeSelectionAttribute(this.attributeKey);else{const a=t.schema.getValidRanges(o.getRanges(),this.attributeKey);for(const t of a)n?e.setAttribute(this.attributeKey,n,t):e.removeAttribute(this.attributeKey,t)}})}}class Sv extends gr{constructor(e){super(e),this.set("isEmpty",!0),this.on("change",()=>{this.set("isEmpty",0===this.length)})}add(e,t){this.find(t=>t.color===e.color)||super.add(e,t)}hasColor(e){return!!this.find(t=>t.color===e)}}f(Sv,J);var Bv=r(2585),Iv={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};Ar()(Bv.Z,Iv),Bv.Z.locals;class zv extends Er{constructor(e,{colors:t,columns:o,removeButtonLabel:n,documentColorsLabel:a,documentColorsCount:r}){super(e),this.items=this.createCollection(),this.colorDefinitions=t,this.focusTracker=new vr,this.keystrokes=new wr,this.set("selectedColor"),this.removeButtonLabel=n,this.columns=o,this.documentColors=new Sv,this.documentColorsCount=r,this._focusables=new _r,this._focusCycler=new xi({focusables:this._focusables,focusTracker:this.focusTracker,keystrokeHandler:this.keystrokes,actions:{focusPrevious:"shift + tab",focusNext:"tab"}}),this._documentColorsLabel=a,this.setTemplate({tag:"div",attributes:{class:["ck","ck-color-table"]},children:this.items}),this.items.add(this._createRemoveColorButton())}updateDocumentColors(e,t){const o=e.document,n=this.documentColorsCount;this.documentColors.clear();for(const a of o.getRootNames()){const r=o.getRoot(a),i=e.createRangeIn(r);for(const e of i.getItems())if(e.is("$textProxy")&&e.hasAttribute(t)&&(this._addColorToDocumentColors(e.getAttribute(t)),this.documentColors.length>=n))return}}updateSelectedColors(){const e=this.documentColorsGrid,t=this.staticColorsGrid,o=this.selectedColor;t.selectedColor=o,e&&(e.selectedColor=o)}render(){super.render(),this.keystrokes.listenTo(this.element)}destroy(){super.destroy(),this.focusTracker.destroy(),this.keystrokes.destroy()}appendGrids(){if(!this.staticColorsGrid&&(this.staticColorsGrid=this._createStaticColorsGrid(),this.items.add(this.staticColorsGrid),this.focusTracker.add(this.staticColorsGrid.element),this._focusables.add(this.staticColorsGrid),this.documentColorsCount)){const e=Tr.bind(this.documentColors,this.documentColors),t=new Jp(this.locale);t.text=this._documentColorsLabel,t.extendTemplate({attributes:{class:["ck","ck-color-grid__label",e.if("isEmpty","ck-hidden")]}}),this.items.add(t),this.documentColorsGrid=this._createDocumentColorsGrid(),this.items.add(this.documentColorsGrid),this.focusTracker.add(this.documentColorsGrid.element),this._focusables.add(this.documentColorsGrid)}}focus(){this._focusCycler.focusFirst()}focusLast(){this._focusCycler.focusLast()}_createRemoveColorButton(){const e=new ri;return e.set({withText:!0,icon:sp.eraser,label:this.removeButtonLabel}),e.class="ck-color-table__remove-color",e.on("execute",()=>{this.fire("execute",{value:null})}),e.render(),this.focusTracker.add(e.element),this._focusables.add(e),e}_createStaticColorsGrid(){const e=new hi(this.locale,{colorDefinitions:this.colorDefinitions,columns:this.columns});return e.delegate("execute").to(this),e}_createDocumentColorsGrid(){const e=Tr.bind(this.documentColors,this.documentColors),t=new hi(this.locale,{columns:this.columns});return t.delegate("execute").to(this),t.extendTemplate({attributes:{class:e.if("isEmpty","ck-hidden")}}),t.items.bindTo(this.documentColors).using(e=>{const t=new di;return t.set({color:e.color,hasBorder:e.options&&e.options.hasBorder}),e.label&&t.set({label:e.label,tooltip:!0}),t.on("execute",()=>{this.fire("execute",{value:e.color})}),t}),this.documentColors.on("change:isEmpty",(e,o,n)=>{n&&(t.selectedColor=null)}),t}_addColorToDocumentColors(e){const t=this.colorDefinitions.find(t=>t.color===e);t?this.documentColors.add(Object.assign({},t)):this.documentColors.add({color:e,label:e,options:{hasBorder:!1}})}}const Fv="fontSize",Mv="fontFamily",Lv="fontColor",Pv="fontBackgroundColor";function Rv(e,t){const o={model:{key:e,values:[]},view:{},upcastAlso:{}};for(const n of t)o.model.values.push(n.model),o.view[n.model]=n.view,n.upcastAlso&&(o.upcastAlso[n.model]=n.upcastAlso);return o}function qv(e){return t=>t.getStyle(e).replace(/\s/g,"")}function $v(e){return(t,{writer:o})=>o.createAttributeElement("span",{style:`${e}:${t}`},{priority:7})}class Uv extends Tv{constructor(e){super(e,Pv)}}class Hv extends Di{static get pluginName(){return"FontBackgroundColorEditing"}constructor(e){super(e),e.config.define(Pv,{colors:[{color:"hsl(0, 0%, 0%)",label:"Black"},{color:"hsl(0, 0%, 30%)",label:"Dim grey"},{color:"hsl(0, 0%, 60%)",label:"Grey"},{color:"hsl(0, 0%, 90%)",label:"Light grey"},{color:"hsl(0, 0%, 100%)",label:"White",hasBorder:!0},{color:"hsl(0, 75%, 60%)",label:"Red"},{color:"hsl(30, 75%, 60%)",label:"Orange"},{color:"hsl(60, 75%, 60%)",label:"Yellow"},{color:"hsl(90, 75%, 60%)",label:"Light green"},{color:"hsl(120, 75%, 60%)",label:"Green"},{color:"hsl(150, 75%, 60%)",label:"Aquamarine"},{color:"hsl(180, 75%, 60%)",label:"Turquoise"},{color:"hsl(210, 75%, 60%)",label:"Light blue"},{color:"hsl(240, 75%, 60%)",label:"Blue"},{color:"hsl(270, 75%, 60%)",label:"Purple"}],columns:5}),e.data.addStyleProcessorRules(tp),e.conversion.for("upcast").elementToAttribute({view:{name:"span",styles:{"background-color":/[\s\S]+/}},model:{key:Pv,value:qv("background-color")}}),e.conversion.for("downcast").attributeToElement({model:Pv,view:$v("background-color")}),e.commands.add(Pv,new Uv(e)),e.model.schema.extend("$text",{allowAttributes:Pv}),e.model.schema.setAttributeProperties(Pv,{isFormatting:!0,copyOnEnter:!0})}}class Wv extends Di{constructor(e,{commandName:t,icon:o,componentName:n,dropdownLabel:a}){super(e),this.commandName=t,this.componentName=n,this.icon=o,this.dropdownLabel=a,this.columns=e.config.get(this.componentName+".columns"),this.colorTableView=void 0}init(){const e=this.editor,t=e.locale,o=t.t,n=e.commands.get(this.commandName),a=function(e){return e.map(ci).filter(e=>!!e)}(e.config.get(this.componentName).colors),r=function(e,t){const o=e.t,n={Black:o("Black"),"Dim grey":o("Dim grey"),Grey:o("Grey"),"Light grey":o("Light grey"),White:o("White"),Red:o("Red"),Orange:o("Orange"),Yellow:o("Yellow"),"Light green":o("Light green"),Green:o("Green"),Aquamarine:o("Aquamarine"),Turquoise:o("Turquoise"),"Light blue":o("Light blue"),Blue:o("Blue"),Purple:o("Purple")};return t.map(e=>{const t=n[e.label];return t&&t!=e.label&&(e.label=t),e})}(t,a),i=e.config.get(this.componentName+".documentColors");e.ui.componentFactory.add(this.componentName,t=>{const a=_p(t);return this.colorTableView=function({dropdownView:e,colors:t,columns:o,removeButtonLabel:n,documentColorsLabel:a,documentColorsCount:r}){const i=e.locale,l=new zv(i,{colors:t,columns:o,removeButtonLabel:n,documentColorsLabel:a,documentColorsCount:r});return e.colorTableView=l,e.panelView.children.add(l),l.delegate("execute").to(e,"execute"),l}({dropdownView:a,colors:r.map(e=>({label:e.label,color:e.model,options:{hasBorder:e.hasBorder}})),columns:this.columns,removeButtonLabel:o("Remove color"),documentColorsLabel:0!==i?o("Document colors"):void 0,documentColorsCount:void 0===i?this.columns:i}),this.colorTableView.bind("selectedColor").to(n,"value"),a.buttonView.set({label:this.dropdownLabel,icon:this.icon,tooltip:!0}),a.extendTemplate({attributes:{class:"ck-color-ui-dropdown"}}),a.bind("isEnabled").to(n),a.on("execute",(t,o)=>{e.execute(this.commandName,o),e.editing.view.focus()}),a.on("change:isOpen",(t,o,n)=>{a.colorTableView.appendGrids(),n&&(0!==i&&this.colorTableView.updateDocumentColors(e.model,this.componentName),this.colorTableView.updateSelectedColors())}),Ep(a,()=>a.colorTableView.staticColorsGrid.items.find(e=>e.isOn)),a})}}class Gv extends Wv{constructor(e){const t=e.locale.t;super(e,{commandName:Pv,componentName:Pv,icon:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M4 2h12a2 2 0 0 1 2 2v12a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2zm8.38 9.262H7.62L10 5.506l2.38 5.756zm.532 1.285L14.34 16h1.426L10.804 4H9.196L4.234 16H5.66l1.428-3.453h5.824z"/></svg>',dropdownLabel:t("Font Background Color")})}static get pluginName(){return"FontBackgroundColorUI"}}class Kv extends Tv{constructor(e){super(e,Lv)}}class Yv extends Di{static get pluginName(){return"FontColorEditing"}constructor(e){super(e),e.config.define(Lv,{colors:[{color:"hsl(0, 0%, 0%)",label:"Black"},{color:"hsl(0, 0%, 30%)",label:"Dim grey"},{color:"hsl(0, 0%, 60%)",label:"Grey"},{color:"hsl(0, 0%, 90%)",label:"Light grey"},{color:"hsl(0, 0%, 100%)",label:"White",hasBorder:!0},{color:"hsl(0, 75%, 60%)",label:"Red"},{color:"hsl(30, 75%, 60%)",label:"Orange"},{color:"hsl(60, 75%, 60%)",label:"Yellow"},{color:"hsl(90, 75%, 60%)",label:"Light green"},{color:"hsl(120, 75%, 60%)",label:"Green"},{color:"hsl(150, 75%, 60%)",label:"Aquamarine"},{color:"hsl(180, 75%, 60%)",label:"Turquoise"},{color:"hsl(210, 75%, 60%)",label:"Light blue"},{color:"hsl(240, 75%, 60%)",label:"Blue"},{color:"hsl(270, 75%, 60%)",label:"Purple"}],columns:5}),e.conversion.for("upcast").elementToAttribute({view:{name:"span",styles:{color:/[\s\S]+/}},model:{key:Lv,value:qv("color")}}),e.conversion.for("upcast").elementToAttribute({view:{name:"font",attributes:{color:/^#?\w+$/}},model:{key:Lv,value:e=>e.getAttribute("color")}}),e.conversion.for("downcast").attributeToElement({model:Lv,view:$v("color")}),e.commands.add(Lv,new Kv(e)),e.model.schema.extend("$text",{allowAttributes:Lv}),e.model.schema.setAttributeProperties(Lv,{isFormatting:!0,copyOnEnter:!0})}}class Qv extends Wv{constructor(e){const t=e.locale.t;super(e,{commandName:Lv,componentName:Lv,icon:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M12.4 10.3 10 4.5l-2.4 5.8h4.8zm.5 1.2H7.1L5.7 15H4.2l5-12h1.6l5 12h-1.5L13 11.5zm3.1 7H4a1 1 0 0 1 0-2h12a1 1 0 0 1 0 2z"/></svg>',dropdownLabel:t("Font Color")})}static get pluginName(){return"FontColorUI"}}class Jv extends Tv{constructor(e){super(e,Mv)}}function Zv(e){return e.map(Xv).filter(e=>!!e)}function Xv(e){return"object"==typeof e?e:"default"===e?{title:"Default",model:void 0}:"string"==typeof e?function(e){const t=e.replace(/"|'/g,"").split(","),o=t[0],n=t.map(ew).join(", ");return{title:o,model:n,view:{name:"span",styles:{"font-family":n},priority:7}}}(e):void 0}function ew(e){return(e=e.trim()).indexOf(" ")>0&&(e=`'${e}'`),e}class tw extends Di{static get pluginName(){return"FontFamilyEditing"}constructor(e){super(e),e.config.define(Mv,{options:["default","Arial, Helvetica, sans-serif","Courier New, Courier, monospace","Georgia, serif","Lucida Sans Unicode, Lucida Grande, sans-serif","Tahoma, Geneva, sans-serif","Times New Roman, Times, serif","Trebuchet MS, Helvetica, sans-serif","Verdana, Geneva, sans-serif"],supportAllValues:!1})}init(){const e=this.editor;e.model.schema.extend("$text",{allowAttributes:Mv}),e.model.schema.setAttributeProperties(Mv,{isFormatting:!0,copyOnEnter:!0});const t=Zv(e.config.get("fontFamily.options")).filter(e=>e.model),o=Rv(Mv,t);e.config.get("fontFamily.supportAllValues")?(this._prepareAnyValueConverters(),this._prepareCompatibilityConverter()):e.conversion.attributeToElement(o),e.commands.add(Mv,new Jv(e))}_prepareAnyValueConverters(){const e=this.editor;e.conversion.for("downcast").attributeToElement({model:Mv,view:(e,{writer:t})=>t.createAttributeElement("span",{style:"font-family:"+e},{priority:7})}),e.conversion.for("upcast").elementToAttribute({model:{key:Mv,value:e=>e.getStyle("font-family")},view:{name:"span",styles:{"font-family":/.*/}}})}_prepareCompatibilityConverter(){this.editor.conversion.for("upcast").elementToAttribute({view:{name:"font",attributes:{face:/.*/}},model:{key:Mv,value:e=>e.getAttribute("face")}})}}class ow extends Di{static get pluginName(){return"FontFamilyUI"}init(){const e=this.editor,t=e.t,o=this._getLocalizedOptions(),n=e.commands.get(Mv);e.ui.componentFactory.add(Mv,a=>{const r=_p(a);return Np(r,()=>function(e,t){const o=new gr;for(const n of e){const e={type:"button",model:new mb({commandName:Mv,commandParam:n.model,label:n.title,withText:!0})};e.model.bind("isOn").to(t,"value",e=>e===n.model||!(!e||!n.model)&&e.split(",")[0].replace(/'/g,"").toLowerCase()===n.model.toLowerCase()),n.view&&n.view.styles&&e.model.set("labelStyle","font-family: "+n.view.styles["font-family"]),o.add(e)}return o}(o,n)),r.buttonView.set({label:t("Font Family"),icon:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M11.03 3h6.149a.75.75 0 1 1 0 1.5h-5.514L11.03 3zm1.27 3h4.879a.75.75 0 1 1 0 1.5h-4.244L12.3 6zm1.27 3h3.609a.75.75 0 1 1 0 1.5h-2.973L13.57 9zm-2.754 2.5L8.038 4.785 5.261 11.5h5.555zm.62 1.5H4.641l-1.666 4.028H1.312l5.789-14h1.875l5.789 14h-1.663L11.436 13z"/></svg>',tooltip:!0}),r.extendTemplate({attributes:{class:"ck-font-family-dropdown"}}),r.bind("isEnabled").to(n),this.listenTo(r,"execute",t=>{e.execute(t.source.commandName,{value:t.source.commandParam}),e.editing.view.focus()}),r})}_getLocalizedOptions(){const e=this.editor,t=e.t;return Zv(e.config.get(Mv).options).map(e=>("Default"===e.title&&(e.title=t("Default")),e))}}class nw extends Tv{constructor(e){super(e,Fv)}}function aw(e){return e.map(e=>function(e){if(t=e,"object"==typeof t&&t.title&&t.model&&t.view)return iw(e);var t;const o=function(e){return rw[e]||rw[e.model]}(e);return o?iw(o):"default"===e?{model:void 0,title:"Default"}:function(e){let t;if("object"==typeof e){if(!e.model)throw new x("font-size-invalid-definition",null,e);t=parseFloat(e.model)}else t=parseFloat(e);return isNaN(t)}(e)?void 0:function(e){return"number"!=typeof e&&"string"!=typeof e||(e={title:String(e),model:parseFloat(e)+"px"}),e.view={name:"span",styles:{"font-size":e.model}},iw(e)}(e)}(e)).filter(e=>!!e)}const rw={get tiny(){return{title:"Tiny",model:"tiny",view:{name:"span",classes:"text-tiny",priority:7}}},get small(){return{title:"Small",model:"small",view:{name:"span",classes:"text-small",priority:7}}},get big(){return{title:"Big",model:"big",view:{name:"span",classes:"text-big",priority:7}}},get huge(){return{title:"Huge",model:"huge",view:{name:"span",classes:"text-huge",priority:7}}}};function iw(e){return e.view.priority||(e.view.priority=7),e}const lw=["x-small","x-small","small","medium","large","x-large","xx-large","xxx-large"];class sw extends Di{static get pluginName(){return"FontSizeEditing"}constructor(e){super(e),e.config.define(Fv,{options:["tiny","small","default","big","huge"],supportAllValues:!1})}init(){const e=this.editor;e.model.schema.extend("$text",{allowAttributes:Fv}),e.model.schema.setAttributeProperties(Fv,{isFormatting:!0,copyOnEnter:!0});const t=e.config.get("fontSize.supportAllValues"),o=aw(this.editor.config.get("fontSize.options")).filter(e=>e.model),n=Rv(Fv,o);t?(this._prepareAnyValueConverters(n),this._prepareCompatibilityConverter()):e.conversion.attributeToElement(n),e.commands.add(Fv,new nw(e))}_prepareAnyValueConverters(e){const t=this.editor,o=e.model.values.filter(e=>{return t=String(e),!(Uh.test(t)||function(e){return Hh.test(e)}(String(e)));var t});if(o.length)throw new x("font-size-invalid-use-of-named-presets",null,{presets:o});t.conversion.for("downcast").attributeToElement({model:Fv,view:(e,{writer:t})=>{if(e)return t.createAttributeElement("span",{style:"font-size:"+e},{priority:7})}}),t.conversion.for("upcast").elementToAttribute({model:{key:Fv,value:e=>e.getStyle("font-size")},view:{name:"span",styles:{"font-size":/.*/}}})}_prepareCompatibilityConverter(){this.editor.conversion.for("upcast").elementToAttribute({view:{name:"font",attributes:{size:/^[+-]?\d{1,3}$/}},model:{key:Fv,value:e=>{const t=e.getAttribute("size"),o="-"===t[0]||"+"===t[0];let n=parseInt(t,10);o&&(n=3+n);const a=lw.length-1,r=Math.min(Math.max(n,0),a);return lw[r]}}})}}var cw=r(6203),dw={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};Ar()(cw.Z,dw),cw.Z.locals;class uw extends Di{static get pluginName(){return"FontSizeUI"}init(){const e=this.editor,t=e.t,o=this._getLocalizedOptions(),n=e.commands.get(Fv);e.ui.componentFactory.add(Fv,a=>{const r=_p(a);return Np(r,()=>function(e,t){const o=new gr;for(const n of e){const e={type:"button",model:new mb({commandName:Fv,commandParam:n.model,label:n.title,class:"ck-fontsize-option",withText:!0})};n.view&&n.view.styles&&e.model.set("labelStyle","font-size:"+n.view.styles["font-size"]),n.view&&n.view.classes&&e.model.set("class",`${e.model.class} ${n.view.classes}`),e.model.bind("isOn").to(t,"value",e=>e===n.model),o.add(e)}return o}(o,n)),r.buttonView.set({label:t("Font Size"),icon:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M9.816 11.5 7.038 4.785 4.261 11.5h5.555zm.62 1.5H3.641l-1.666 4.028H.312l5.789-14h1.875l5.789 14h-1.663L10.436 13zm7.55 2.279.779-.779.707.707-2.265 2.265-2.193-2.265.707-.707.765.765V4.825c0-.042 0-.083.002-.123l-.77.77-.707-.707L17.207 2.5l2.265 2.265-.707.707-.782-.782c.002.043.003.089.003.135v10.454z"/></svg>',tooltip:!0}),r.extendTemplate({attributes:{class:["ck-font-size-dropdown"]}}),r.bind("isEnabled").to(n),this.listenTo(r,"execute",t=>{e.execute(t.source.commandName,{value:t.source.commandParam}),e.editing.view.focus()}),r})}_getLocalizedOptions(){const e=this.editor,t=e.t,o={Default:t("Default"),Tiny:t("Tiny"),Small:t("Small"),Big:t("Big"),Huge:t("Huge")};return aw(e.config.get(Fv).options).map(e=>{const t=o[e.title];return t&&t!=e.title&&(e=Object.assign({},e,{title:t})),e})}}class mw extends Ti{refresh(){const e=this.editor.model,t=fr(e.document.selection.getSelectedBlocks());this.value=!!t&&t.is("element","paragraph"),this.isEnabled=!!t&&hw(t,e.schema)}execute(e={}){const t=this.editor.model,o=t.document;t.change(n=>{const a=(e.selection||o.selection).getSelectedBlocks();for(const e of a)!e.is("element","paragraph")&&hw(e,t.schema)&&n.rename(e,"paragraph")})}}function hw(e,t){return t.checkChild(e.parent,"paragraph")&&!t.isObject(e)}class pw extends Ti{execute(e){const t=this.editor.model,o=e.attributes;let n=e.position;t.change(e=>{const a=e.createElement("paragraph");if(o&&t.schema.setAllowedAttributes(a,o,e),!t.schema.checkChild(n.parent,a)){const o=t.schema.findAllowedParent(n,a);if(!o)return;n=e.split(n,o).position}t.insertContent(a,n),e.setSelection(a,"in")})}}class bw extends Di{static get pluginName(){return"Paragraph"}init(){const e=this.editor,t=e.model;e.commands.add("paragraph",new mw(e)),e.commands.add("insertParagraph",new pw(e)),t.schema.register("paragraph",{inheritAllFrom:"$block"}),e.conversion.elementToElement({model:"paragraph",view:"p"}),e.conversion.for("upcast").elementToElement({model:(e,{writer:t})=>bw.paragraphLikeElements.has(e.name)?e.isEmpty?null:t.createElement("paragraph"):null,view:/.+/,converterPriority:"low"})}}bw.paragraphLikeElements=new Set(["blockquote","dd","div","dt","h1","h2","h3","h4","h5","h6","li","p","td","th"]);class gw extends Ti{constructor(e,t){super(e),this.modelElements=t}refresh(){const e=fr(this.editor.model.document.selection.getSelectedBlocks());this.value=!!e&&this.modelElements.includes(e.name)&&e.name,this.isEnabled=!!e&&this.modelElements.some(t=>fw(e,t,this.editor.model.schema))}execute(e){const t=this.editor.model,o=t.document,n=e.value;t.change(e=>{const a=Array.from(o.selection.getSelectedBlocks()).filter(e=>fw(e,n,t.schema));for(const t of a)t.is("element",n)||e.rename(t,n)})}}function fw(e,t,o){return o.checkChild(e.parent,t)&&!o.isObject(e)}const vw="paragraph";class ww extends Di{static get pluginName(){return"HeadingEditing"}constructor(e){super(e),e.config.define("heading",{options:[{model:"paragraph",title:"Paragraph",class:"ck-heading_paragraph"},{model:"heading1",view:"h2",title:"Heading 1",class:"ck-heading_heading1"},{model:"heading2",view:"h3",title:"Heading 2",class:"ck-heading_heading2"},{model:"heading3",view:"h4",title:"Heading 3",class:"ck-heading_heading3"}]})}static get requires(){return[bw]}init(){const e=this.editor,t=e.config.get("heading.options"),o=[];for(const n of t)"paragraph"!==n.model&&(e.model.schema.register(n.model,{inheritAllFrom:"$block"}),e.conversion.elementToElement(n),o.push(n.model));this._addDefaultH1Conversion(e),e.commands.add("heading",new gw(e,o))}afterInit(){const e=this.editor,t=e.commands.get("enter"),o=e.config.get("heading.options");t&&this.listenTo(t,"afterExecute",(t,n)=>{const a=e.model.document.selection.getFirstPosition().parent;o.some(e=>a.is("element",e.model))&&!a.is("element",vw)&&0===a.childCount&&n.writer.rename(a,vw)})}_addDefaultH1Conversion(e){e.conversion.for("upcast").elementToElement({model:"heading1",view:"h1",converterPriority:y.get("low")+1})}}var kw=r(3230),Cw={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};Ar()(kw.Z,Cw),kw.Z.locals;class yw extends Di{static get pluginName(){return"HeadingUI"}init(){const e=this.editor,t=e.t,o=function(e){const t=e.t,o={Paragraph:t("Paragraph"),"Heading 1":t("Heading 1"),"Heading 2":t("Heading 2"),"Heading 3":t("Heading 3"),"Heading 4":t("Heading 4"),"Heading 5":t("Heading 5"),"Heading 6":t("Heading 6")};return e.config.get("heading.options").map(e=>{const t=o[e.title];return t&&t!=e.title&&(e.title=t),e})}(e),n=t("Choose heading"),a=t("Heading");e.ui.componentFactory.add("heading",t=>{const r={},i=new gr,l=e.commands.get("heading"),s=e.commands.get("paragraph"),c=[l];for(const e of o){const t={type:"button",model:new mb({label:e.title,class:e.class,withText:!0})};"paragraph"===e.model?(t.model.bind("isOn").to(s,"value"),t.model.set("commandName","paragraph"),c.push(s)):(t.model.bind("isOn").to(l,"value",t=>t===e.model),t.model.set({commandName:"heading",commandValue:e.model})),i.add(t),r[e.model]=e.title}const d=_p(t);return Np(d,i),d.buttonView.set({isOn:!1,withText:!0,tooltip:a}),d.extendTemplate({attributes:{class:["ck-heading-dropdown"]}}),d.bind("isEnabled").toMany(c,"isEnabled",(...e)=>e.some(e=>e)),d.buttonView.bind("label").to(l,"value",s,"value",(e,t)=>{const o=e||t&&"paragraph";return"boolean"==typeof o?n:r[o]?r[o]:n}),this.listenTo(d,"execute",t=>{const{commandName:o,commandValue:n}=t.source;e.execute(o,n?{value:n}:void 0),e.editing.view.focus()}),d})}}class Ow extends Ti{refresh(){const e=this.editor.model,t=e.document;this.value=t.selection.getAttribute("highlight"),this.isEnabled=e.schema.checkAttributeInSelection(t.selection,"highlight")}execute(e={}){const t=this.editor.model,o=t.document.selection,n=e.value;t.change(e=>{if(o.isCollapsed){const t=o.getFirstPosition();if(o.hasAttribute("highlight")){const o=e=>e.item.hasAttribute("highlight")&&e.item.getAttribute("highlight")===this.value,a=t.getLastMatchingPosition(o,{direction:"backward"}),r=t.getLastMatchingPosition(o),i=e.createRange(a,r);n&&this.value!==n?(t.isEqual(r)||e.setAttribute("highlight",n,i),e.setSelectionAttribute("highlight",n)):(t.isEqual(r)||e.removeAttribute("highlight",i),e.removeSelectionAttribute("highlight"))}else n&&e.setSelectionAttribute("highlight",n)}else{const a=t.schema.getValidRanges(o.getRanges(),"highlight");for(const t of a)n?e.setAttribute("highlight",n,t):e.removeAttribute("highlight",t)}})}}class jw extends Di{static get pluginName(){return"HighlightEditing"}constructor(e){super(e),e.config.define("highlight",{options:[{model:"yellowMarker",class:"marker-yellow",title:"Yellow marker",color:"var(--ck-highlight-marker-yellow)",type:"marker"},{model:"greenMarker",class:"marker-green",title:"Green marker",color:"var(--ck-highlight-marker-green)",type:"marker"},{model:"pinkMarker",class:"marker-pink",title:"Pink marker",color:"var(--ck-highlight-marker-pink)",type:"marker"},{model:"blueMarker",class:"marker-blue",title:"Blue marker",color:"var(--ck-highlight-marker-blue)",type:"marker"},{model:"redPen",class:"pen-red",title:"Red pen",color:"var(--ck-highlight-pen-red)",type:"pen"},{model:"greenPen",class:"pen-green",title:"Green pen",color:"var(--ck-highlight-pen-green)",type:"pen"}]})}init(){const e=this.editor;e.model.schema.extend("$text",{allowAttributes:"highlight"});const t=e.config.get("highlight.options");e.conversion.attributeToElement(function(e){const t={model:{key:"highlight",values:[]},view:{}};for(const o of e)t.model.values.push(o.model),t.view[o.model]={name:"mark",classes:o.class};return t}(t)),e.commands.add("highlight",new Ow(e))}}const xw='<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path class="ck-icon__fill" d="M10.798 1.59 3.002 12.875l1.895 1.852 2.521 1.402 6.997-12.194z"/><path d="m2.556 16.727.234-.348c-.297-.151-.462-.293-.498-.426-.036-.137.002-.416.115-.837.094-.25.15-.449.169-.595a4.495 4.495 0 0 0 0-.725c-.209-.621-.303-1.041-.284-1.26.02-.218.178-.506.475-.862l6.77-9.414c.539-.91 1.605-.85 3.199.18 1.594 1.032 2.188 1.928 1.784 2.686l-5.877 10.36c-.158.412-.333.673-.526.782-.193.108-.604.179-1.232.21-.362.131-.608.237-.738.318-.13.081-.305.238-.526.47-.293.265-.504.397-.632.397-.096 0-.27-.075-.524-.226l-.31.41-1.6-1.12zm-.279.415 1.575 1.103-.392.515H1.19l1.087-1.618zm8.1-13.656-4.953 6.9L8.75 12.57l4.247-7.574c.175-.25-.188-.647-1.092-1.192-.903-.546-1.412-.652-1.528-.32zM8.244 18.5 9.59 17h9.406v1.5H8.245z"/></svg>',_w='<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path class="ck-icon__fill" d="M10.126 2.268 2.002 13.874l1.895 1.852 2.521 1.402L14.47 5.481l-1.543-2.568-2.801-.645z"/><path d="m4.5 18.088-2.645-1.852-.04-2.95-.006-.005.006-.008v-.025l.011.008L8.73 2.97c.165-.233.356-.417.567-.557l-1.212.308L4.604 7.9l-.83-.558 3.694-5.495 2.708-.69 1.65 1.145.046.018.85-1.216 2.16 1.512-.856 1.222c.828.967 1.144 2.141.432 3.158L7.55 17.286l.006.005-3.055.797H4.5zm-.634.166-1.976.516-.026-1.918 2.002 1.402zM9.968 3.817l-.006-.004-6.123 9.184 3.277 2.294 6.108-9.162.005.003c.317-.452-.16-1.332-1.064-1.966-.891-.624-1.865-.776-2.197-.349zM8.245 18.5 9.59 17h9.406v1.5H8.245z"/></svg>';var Vw=r(713),Aw={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};Ar()(Vw.Z,Aw),Vw.Z.locals;class Nw extends Di{get localizedOptionTitles(){const e=this.editor.t;return{"Yellow marker":e("Yellow marker"),"Green marker":e("Green marker"),"Pink marker":e("Pink marker"),"Blue marker":e("Blue marker"),"Red pen":e("Red pen"),"Green pen":e("Green pen")}}static get pluginName(){return"HighlightUI"}init(){const e=this.editor.config.get("highlight.options");for(const t of e)this._addHighlighterButton(t);this._addRemoveHighlightButton(),this._addDropdown(e)}_addRemoveHighlightButton(){const e=this.editor.t,t=this.editor.commands.get("highlight");this._addButton("removeHighlight",e("Remove highlight"),sp.eraser,null,e=>{e.bind("isEnabled").to(t,"isEnabled")})}_addHighlighterButton(e){const t=this.editor.commands.get("highlight");this._addButton("highlight:"+e.model,e.title,Dw(e.type),e.model,(function(o){o.bind("isEnabled").to(t,"isEnabled"),o.bind("isOn").to(t,"value",t=>t===e.model),o.iconView.fillColor=e.color,o.isToggleable=!0}))}_addButton(e,t,o,n,a){const r=this.editor;r.ui.componentFactory.add(e,e=>{const i=new ri(e),l=this.localizedOptionTitles[t]?this.localizedOptionTitles[t]:t;return i.set({label:l,icon:o,tooltip:!0}),i.on("execute",()=>{r.execute("highlight",{value:n}),r.editing.view.focus()}),a(i),i})}_addDropdown(e){const t=this.editor,o=t.t,n=t.ui.componentFactory,a=e[0],r=e.reduce((e,t)=>(e[t.model]=t,e),{});n.add("highlight",i=>{const l=t.commands.get("highlight"),s=_p(i,Oi),c=s.buttonView;function d(e,t){const o=e&&e!==c.lastExecuted?e:c.lastExecuted;return r[o][t]}return c.set({label:o("Highlight"),tooltip:!0,lastExecuted:a.model,commandValue:a.model,isToggleable:!0}),c.bind("icon").to(l,"value",e=>Dw(d(e,"type"))),c.bind("color").to(l,"value",e=>d(e,"color")),c.bind("commandValue").to(l,"value",e=>d(e,"model")),c.bind("isOn").to(l,"value",e=>!!e),c.delegate("execute").to(s),s.bind("isEnabled").to(l,"isEnabled"),Vp(s,()=>{const t=e.map(e=>{const t=n.create("highlight:"+e.model);return this.listenTo(t,"execute",()=>{s.buttonView.set({lastExecuted:e.model})}),t});return t.push(new Vi),t.push(n.create("removeHighlight")),t},{enableActiveItemFocusOnDropdownOpen:!0,ariaLabel:o("Text highlight toolbar")}),function(e){const t=e.buttonView.actionView;t.iconView.bind("fillColor").to(e.buttonView,"color")}(s),c.on("execute",()=>{t.execute("highlight",{value:c.commandValue})}),this.listenTo(s,"execute",()=>{t.editing.view.focus()}),s})}}function Dw(e){return"marker"===e?xw:_w}class Ew extends Ti{refresh(){const e=this.editor.plugins.get("ImageUtils").getClosestSelectedImageElement(this.editor.model.document.selection);this.isEnabled=!!e,this.isEnabled&&e.hasAttribute("alt")?this.value=e.getAttribute("alt"):this.value=!1}execute(e){const t=this.editor,o=t.plugins.get("ImageUtils"),n=t.model,a=o.getClosestSelectedImageElement(n.document.selection);n.change(t=>{t.setAttribute("alt",e.newValue,a)})}}function Tw(e){return e.createContainerElement("figure",{class:"image"},[e.createEmptyElement("img"),e.createSlot()])}function Sw(e,t){const o=e.plugins.get("ImageUtils"),n=e.plugins.has("ImageInlineEditing")&&e.plugins.has("ImageBlockEditing");return e=>o.isInlineImageView(e)?n&&("block"==e.getStyle("display")||e.findAncestor(o.isBlockImageView)?"imageBlock":"imageInline")!==t?null:a(e):null;function a(e){const t={name:!0};return e.hasAttribute("src")&&(t.attributes=["src"]),t}}function Bw(e,t){const o=fr(t.getSelectedBlocks());return!o||e.isObject(o)||o.isEmpty&&"listItem"!=o.name?"imageBlock":"imageInline"}class Iw extends Di{static get pluginName(){return"ImageUtils"}isImage(e){return this.isInlineImage(e)||this.isBlockImage(e)}isInlineImageView(e){return!!e&&e.is("element","img")}isBlockImageView(e){return!!e&&e.is("element","figure")&&e.hasClass("image")}insertImage(e={},t=null,o=null){const n=this.editor,a=n.model,r=a.document.selection;o=zw(n,t||r,o),e={...Object.fromEntries(r.getAttributes()),...e};for(const i in e)a.schema.checkAttribute(o,i)||delete e[i];return a.change(n=>{const r=n.createElement(o,e);return a.insertObject(r,t,null,{setSelection:"on",findOptimalPosition:!t&&"imageInline"!=o}),r.parent?r:null})}getClosestSelectedImageWidget(e){const t=e.getFirstPosition();if(!t)return null;const o=e.getSelectedElement();if(o&&this.isImageWidget(o))return o;let n=t.parent;for(;n;){if(n.is("element")&&this.isImageWidget(n))return n;n=n.parent}return null}getClosestSelectedImageElement(e){const t=e.getSelectedElement();return this.isImage(t)?t:e.getFirstPosition().findAncestor("imageBlock")}isImageAllowed(){const e=this.editor.model.document.selection;return function(e,t){const o=zw(e,t);if("imageBlock"==o){const o=function(e,t){const o=zf(e,t),n=o.start.parent;return n.isEmpty&&!n.is("element","$root")?n.parent:n}(t,e.model);if(e.model.schema.checkChild(o,"imageBlock"))return!0}else if(e.model.schema.checkChild(t.focus,"imageInline"))return!0;return!1}(this.editor,e)&&function(e){return[...e.focus.getAncestors()].every(e=>!e.is("element","imageBlock"))}(e)}toImageWidget(e,t,o){return t.setCustomProperty("image",!0,e),Ef(e,t,{label:()=>{const t=this.findViewImgElement(e).getAttribute("alt");return t?`${t} ${o}`:o}})}isImageWidget(e){return!!e.getCustomProperty("image")&&Df(e)}isBlockImage(e){return!!e&&e.is("element","imageBlock")}isInlineImage(e){return!!e&&e.is("element","imageInline")}findViewImgElement(e){if(this.isInlineImageView(e))return e;const t=this.editor.editing.view;for(const{item:o}of t.createRangeIn(e))if(this.isInlineImageView(o))return o}}function zw(e,t,o){const n=e.model.schema,a=e.config.get("image.insert.type");return e.plugins.has("ImageBlockEditing")?e.plugins.has("ImageInlineEditing")?o||("inline"===a?"imageInline":"block"===a?"imageBlock":t.is("selection")?Bw(n,t):n.checkChild(t,"imageInline")?"imageInline":"imageBlock"):"imageBlock":"imageInline"}class Fw extends Di{static get requires(){return[Iw]}static get pluginName(){return"ImageTextAlternativeEditing"}init(){this.editor.commands.add("imageTextAlternative",new Ew(this.editor))}}var Mw=r(6831),Lw={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};Ar()(Mw.Z,Lw),Mw.Z.locals;var Pw=r(1590),Rw={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};Ar()(Pw.Z,Rw),Pw.Z.locals;class qw extends Er{constructor(e){super(e);const t=this.locale.t;this.focusTracker=new vr,this.keystrokes=new wr,this.labeledInput=this._createLabeledInputView(),this.saveButtonView=this._createButton(t("Save"),sp.check,"ck-button-save"),this.saveButtonView.type="submit",this.cancelButtonView=this._createButton(t("Cancel"),sp.cancel,"ck-button-cancel","cancel"),this._focusables=new _r,this._focusCycler=new xi({focusables:this._focusables,focusTracker:this.focusTracker,keystrokeHandler:this.keystrokes,actions:{focusPrevious:"shift + tab",focusNext:"tab"}}),this.setTemplate({tag:"form",attributes:{class:["ck","ck-text-alternative-form","ck-responsive-form"],tabindex:"-1"},children:[this.labeledInput,this.saveButtonView,this.cancelButtonView]}),a(this)}render(){super.render(),this.keystrokes.listenTo(this.element),l({view:this}),[this.labeledInput,this.saveButtonView,this.cancelButtonView].forEach(e=>{this._focusables.add(e),this.focusTracker.add(e.element)})}destroy(){super.destroy(),this.focusTracker.destroy(),this.keystrokes.destroy()}_createButton(e,t,o,n){const a=new ri(this.locale);return a.set({label:e,icon:t,tooltip:!0}),a.extendTemplate({attributes:{class:o}}),n&&a.delegate("execute").to(this,n),a}_createLabeledInputView(){const e=this.locale.t,t=new cb(this.locale,db);return t.label=e("Text alternative"),t}}function $w(e){const t=e.editing.view,o=zp.defaultPositions,n=e.plugins.get("ImageUtils");return{target:t.domConverter.mapViewToDom(n.getClosestSelectedImageWidget(t.document.selection)),positions:[o.northArrowSouth,o.northArrowSouthWest,o.northArrowSouthEast,o.southArrowNorth,o.southArrowNorthWest,o.southArrowNorthEast,o.viewportStickyNorth]}}class Uw extends Di{static get requires(){return[vb]}static get pluginName(){return"ImageTextAlternativeUI"}init(){this._createButton()}destroy(){super.destroy(),this._form&&this._form.destroy()}_createButton(){const e=this.editor,t=e.t;e.ui.componentFactory.add("imageTextAlternative",o=>{const n=e.commands.get("imageTextAlternative"),a=new ri(o);return a.set({label:t("Change image text alternative"),icon:sp.lowVision,tooltip:!0}),a.bind("isEnabled").to(n,"isEnabled"),a.bind("isOn").to(n,"value",e=>!!e),this.listenTo(a,"execute",()=>{this._showForm()}),a})}_createForm(){const e=this.editor,t=e.editing.view.document,n=e.plugins.get("ImageUtils");this._balloon=this.editor.plugins.get("ContextualBalloon"),this._form=new qw(e.locale),this._form.render(),this.listenTo(this._form,"submit",()=>{e.execute("imageTextAlternative",{newValue:this._form.labeledInput.fieldView.element.value}),this._hideForm(!0)}),this.listenTo(this._form,"cancel",()=>{this._hideForm(!0)}),this._form.keystrokes.set("Esc",(e,t)=>{this._hideForm(!0),t()}),this.listenTo(e.ui,"update",()=>{n.getClosestSelectedImageWidget(t.selection)?this._isVisible&&function(e){const t=e.plugins.get("ContextualBalloon");if(e.plugins.get("ImageUtils").getClosestSelectedImageWidget(e.editing.view.document.selection)){const o=$w(e);t.updatePosition(o)}}(e):this._hideForm(!0)}),o({emitter:this._form,activator:()=>this._isVisible,contextElements:()=>[this._balloon.view.element],callback:()=>this._hideForm()})}_showForm(){if(this._isVisible)return;this._form||this._createForm();const e=this.editor,t=e.commands.get("imageTextAlternative"),o=this._form.labeledInput;this._form.disableCssTransitions(),this._isInBalloon||this._balloon.add({view:this._form,position:$w(e)}),o.fieldView.value=o.fieldView.element.value=t.value||"",this._form.labeledInput.fieldView.select(),this._form.enableCssTransitions()}_hideForm(e){this._isInBalloon&&(this._form.focusTracker.isFocused&&this._form.saveButtonView.focus(),this._balloon.remove(this._form),e&&this.editor.editing.view.focus())}get _isVisible(){return!!this._balloon&&this._balloon.visibleView===this._form}get _isInBalloon(){return!!this._balloon&&this._balloon.hasView(this._form)}}class Hw extends Di{static get requires(){return[Fw,Uw]}static get pluginName(){return"ImageTextAlternative"}}function Ww(e,t){return e=>{e.on("attribute:srcset:"+t,o)};function o(t,o,n){if(!n.consumable.consume(o.item,t.name))return;const a=n.writer,r=n.mapper.toViewElement(o.item),i=e.findViewImgElement(r);if(null===o.attributeNewValue){const e=o.attributeOldValue;e.data&&(a.removeAttribute("srcset",i),a.removeAttribute("sizes",i),e.width&&a.removeAttribute("width",i))}else{const e=o.attributeNewValue;e.data&&(a.setAttribute("srcset",e.data,i),a.setAttribute("sizes","100vw",i),e.width&&a.setAttribute("width",e.width,i))}}}function Gw(e,t,o){return e=>{e.on(`attribute:${o}:${t}`,n)};function n(t,o,n){if(!n.consumable.consume(o.item,t.name))return;const a=n.writer,r=n.mapper.toViewElement(o.item),i=e.findViewImgElement(r);a.setAttribute(o.attributeKey,o.attributeNewValue||"",i)}}class Kw extends wc{observe(e){this.listenTo(e,"load",(e,t)=>{const o=t.target;this.checkShouldIgnoreEventFromTarget(o)||"IMG"==o.tagName&&this._fireEvents(t)},{useCapture:!0})}_fireEvents(e){this.isEnabled&&(this.document.fire("layoutChanged"),this.document.fire("imageLoaded",e))}}class Yw extends Ti{constructor(e){super(e);const t=e.config.get("image.insert.type");e.plugins.has("ImageBlockEditing")||"block"===t&&_("image-block-plugin-required"),e.plugins.has("ImageInlineEditing")||"inline"===t&&_("image-inline-plugin-required")}refresh(){this.isEnabled=this.editor.plugins.get("ImageUtils").isImageAllowed()}execute(e){const t=ur(e.source),o=this.editor.model.document.selection,n=this.editor.plugins.get("ImageUtils"),a=Object.fromEntries(o.getAttributes());t.forEach((e,t)=>{const r=o.getSelectedElement();if("string"==typeof e&&(e={src:e}),t&&r&&n.isImage(r)){const t=this.editor.model.createPositionAfter(r);n.insertImage({...e,...a},t)}else n.insertImage({...e,...a})})}}class Qw extends Ti{refresh(){const e=this.editor.plugins.get("ImageUtils"),t=this.editor.model.document.selection.getSelectedElement();this.isEnabled=e.isImage(t),this.value=this.isEnabled?t.getAttribute("src"):null}execute(e){const t=this.editor.model.document.selection.getSelectedElement();this.editor.model.change(o=>{o.setAttribute("src",e.source,t),o.removeAttribute("srcset",t),o.removeAttribute("sizes",t)})}}class Jw extends Di{static get requires(){return[Iw]}static get pluginName(){return"ImageEditing"}init(){const e=this.editor,t=e.conversion;e.editing.view.addObserver(Kw),t.for("upcast").attributeToAttribute({view:{name:"img",key:"alt"},model:"alt"}).attributeToAttribute({view:{name:"img",key:"srcset"},model:{key:"srcset",value:e=>{const t={data:e.getAttribute("srcset")};return e.hasAttribute("width")&&(t.width=e.getAttribute("width")),t}}});const o=new Yw(e),n=new Qw(e);e.commands.add("insertImage",o),e.commands.add("replaceImageSource",n),e.commands.add("imageInsert",o)}}class Zw extends Ti{constructor(e,t){super(e),this._modelElementName=t}refresh(){const e=this.editor.plugins.get("ImageUtils"),t=e.getClosestSelectedImageElement(this.editor.model.document.selection);"imageBlock"===this._modelElementName?this.isEnabled=e.isInlineImage(t):this.isEnabled=e.isBlockImage(t)}execute(){const e=this.editor,t=this.editor.model,o=e.plugins.get("ImageUtils"),n=o.getClosestSelectedImageElement(t.document.selection),a=Object.fromEntries(n.getAttributes());return a.src||a.uploadId?t.change(e=>{const r=Array.from(t.markers).filter(e=>e.getRange().containsItem(n)),i=o.insertImage(a,t.createSelection(n,"on"),this._modelElementName);if(!i)return null;const l=e.createRangeOn(i);for(const t of r){const o=t.getRange(),n="$graveyard"!=o.root.rootName?o.getJoined(l,!0):l;e.updateMarker(t,{range:n})}return{oldElement:n,newElement:i}}):null}}class Xw extends Di{static get requires(){return[Jw,Iw,yf]}static get pluginName(){return"ImageBlockEditing"}init(){const e=this.editor;e.model.schema.register("imageBlock",{inheritAllFrom:"$blockObject",allowAttributes:["alt","src","srcset"]}),this._setupConversion(),e.plugins.has("ImageInlineEditing")&&(e.commands.add("imageTypeBlock",new Zw(this.editor,"imageBlock")),this._setupClipboardIntegration())}_setupConversion(){const e=this.editor,t=e.t,o=e.conversion,n=e.plugins.get("ImageUtils");o.for("dataDowncast").elementToStructure({model:"imageBlock",view:(e,{writer:t})=>Tw(t)}),o.for("editingDowncast").elementToStructure({model:"imageBlock",view:(e,{writer:o})=>n.toImageWidget(Tw(o),o,t("image widget"))}),o.for("downcast").add(Gw(n,"imageBlock","src")).add(Gw(n,"imageBlock","alt")).add(Ww(n,"imageBlock")),o.for("upcast").elementToElement({view:Sw(e,"imageBlock"),model:(e,{writer:t})=>t.createElement("imageBlock",e.hasAttribute("src")?{src:e.getAttribute("src")}:null)}).add(function(e){return e=>{e.on("element:figure",t)};function t(t,o,n){if(!n.consumable.test(o.viewItem,{name:!0,classes:"image"}))return;const a=e.findViewImgElement(o.viewItem);if(!a||!n.consumable.test(a,{name:!0}))return;n.consumable.consume(o.viewItem,{name:!0,classes:"image"});const r=fr(n.convertItem(a,o.modelCursor).modelRange.getItems());r?(n.convertChildren(o.viewItem,r),n.updateConversionResult(r,o)):n.consumable.revert(o.viewItem,{name:!0,classes:"image"})}}(n))}_setupClipboardIntegration(){const e=this.editor,t=e.model,o=e.editing.view,n=e.plugins.get("ImageUtils");this.listenTo(e.plugins.get("ClipboardPipeline"),"inputTransformation",(a,r)=>{const i=Array.from(r.content.getChildren());let l;if(!i.every(n.isInlineImageView))return;l=r.targetRanges?e.editing.mapper.toModelRange(r.targetRanges[0]):t.document.selection.getFirstRange();const s=t.createSelection(l);if("imageBlock"===Bw(t.schema,s)){const e=new zh(o.document),t=i.map(t=>e.createElement("figure",{class:"image"},t));r.content=e.createDocumentFragment(t)}})}}var ek=r(9048),tk={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};Ar()(ek.Z,tk),ek.Z.locals;class ok extends Di{static get requires(){return[Xw,Zf,Hw]}static get pluginName(){return"ImageBlock"}}class nk extends Di{static get requires(){return[Jw,Iw,yf]}static get pluginName(){return"ImageInlineEditing"}init(){const e=this.editor,t=e.model.schema;t.register("imageInline",{inheritAllFrom:"$inlineObject",allowAttributes:["alt","src","srcset"]}),t.addChildCheck((e,t)=>{if(e.endsWith("caption")&&"imageInline"===t.name)return!1}),this._setupConversion(),e.plugins.has("ImageBlockEditing")&&(e.commands.add("imageTypeInline",new Zw(this.editor,"imageInline")),this._setupClipboardIntegration())}_setupConversion(){const e=this.editor,t=e.t,o=e.conversion,n=e.plugins.get("ImageUtils");o.for("dataDowncast").elementToElement({model:"imageInline",view:(e,{writer:t})=>t.createEmptyElement("img")}),o.for("editingDowncast").elementToStructure({model:"imageInline",view:(e,{writer:o})=>n.toImageWidget(function(e){return e.createContainerElement("span",{class:"image-inline"},e.createEmptyElement("img"))}(o),o,t("image widget"))}),o.for("downcast").add(Gw(n,"imageInline","src")).add(Gw(n,"imageInline","alt")).add(Ww(n,"imageInline")),o.for("upcast").elementToElement({view:Sw(e,"imageInline"),model:(e,{writer:t})=>t.createElement("imageInline",e.hasAttribute("src")?{src:e.getAttribute("src")}:null)})}_setupClipboardIntegration(){const e=this.editor,t=e.model,o=e.editing.view,n=e.plugins.get("ImageUtils");this.listenTo(e.plugins.get("ClipboardPipeline"),"inputTransformation",(a,r)=>{const i=Array.from(r.content.getChildren());let l;if(!i.every(n.isBlockImageView))return;l=r.targetRanges?e.editing.mapper.toModelRange(r.targetRanges[0]):t.document.selection.getFirstRange();const s=t.createSelection(l);if("imageInline"===Bw(t.schema,s)){const e=new zh(o.document),t=i.map(t=>1===t.childCount?(Array.from(t.getAttributes()).forEach(o=>e.setAttribute(...o,n.findViewImgElement(t))),t.getChild(0)):t);r.content=e.createDocumentFragment(t)}})}}class ak extends Di{static get requires(){return[nk,Zf,Hw]}static get pluginName(){return"ImageInline"}}class rk extends Ti{refresh(){const e=this.editor,t=e.plugins.get("ImageCaptionUtils");if(!e.plugins.has(Xw))return this.isEnabled=!1,void(this.value=!1);const o=e.model.document.selection,n=o.getSelectedElement();if(!n){const e=t.getCaptionFromModelSelection(o);return this.isEnabled=!!e,void(this.value=!!e)}this.isEnabled=this.editor.plugins.get("ImageUtils").isImage(n),this.isEnabled?this.value=!!t.getCaptionFromImageModelElement(n):this.value=!1}execute(e={}){const{focusCaptionOnShow:t}=e;this.editor.model.change(e=>{this.value?this._hideImageCaption(e):this._showImageCaption(e,t)})}_showImageCaption(e,t){const o=this.editor.model.document.selection,n=this.editor.plugins.get("ImageCaptionEditing");let a=o.getSelectedElement();const r=n._getSavedCaption(a);this.editor.plugins.get("ImageUtils").isInlineImage(a)&&(this.editor.execute("imageTypeBlock"),a=o.getSelectedElement());const i=r||e.createElement("caption");e.append(i,a),t&&e.setSelection(i,"in")}_hideImageCaption(e){const t=this.editor,o=t.model.document.selection,n=t.plugins.get("ImageCaptionEditing"),a=t.plugins.get("ImageCaptionUtils");let r,i=o.getSelectedElement();i?r=a.getCaptionFromImageModelElement(i):(r=a.getCaptionFromModelSelection(o),i=r.parent),n._saveCaption(i,r),e.setSelection(i,"on"),e.remove(r)}}class ik extends Di{static get pluginName(){return"ImageCaptionUtils"}static get requires(){return[Iw]}getCaptionFromImageModelElement(e){for(const t of e.getChildren())if(t&&t.is("element","caption"))return t;return null}getCaptionFromModelSelection(e){const t=this.editor.plugins.get("ImageUtils"),o=e.getFirstPosition().findAncestor("caption");return o&&t.isBlockImage(o.parent)?o:null}matchImageCaptionViewElement(e){const t=this.editor.plugins.get("ImageUtils");return"figcaption"==e.name&&t.isBlockImageView(e.parent)?{name:!0}:null}}class lk extends Di{static get requires(){return[Iw,ik]}static get pluginName(){return"ImageCaptionEditing"}constructor(e){super(e),this._savedCaptionsMap=new WeakMap}init(){const e=this.editor,t=e.model.schema;t.isRegistered("caption")?t.extend("caption",{allowIn:"imageBlock"}):t.register("caption",{allowIn:"imageBlock",allowContentOf:"$block",isLimit:!0}),e.commands.add("toggleImageCaption",new rk(this.editor)),this._setupConversion(),this._setupImageTypeCommandsIntegration(),this._registerCaptionReconversion()}_setupConversion(){const e=this.editor,t=e.editing.view,o=e.plugins.get("ImageUtils"),n=e.plugins.get("ImageCaptionUtils"),a=e.t;e.conversion.for("upcast").elementToElement({view:e=>n.matchImageCaptionViewElement(e),model:"caption"}),e.conversion.for("dataDowncast").elementToElement({model:"caption",view:(e,{writer:t})=>o.isBlockImage(e.parent)?t.createContainerElement("figcaption"):null}),e.conversion.for("editingDowncast").elementToElement({model:"caption",view:(e,{writer:n})=>{if(!o.isBlockImage(e.parent))return null;const r=n.createEditableElement("figcaption");n.setCustomProperty("imageCaption",!0,r),Ri({view:t,element:r,text:a("Enter image caption"),keepOnFocus:!0});const i=e.parent.getAttribute("alt");return If(r,n,{label:i?a("Caption for image: %0",[i]):a("Caption for the image")})}})}_setupImageTypeCommandsIntegration(){const e=this.editor,t=e.plugins.get("ImageUtils"),o=e.plugins.get("ImageCaptionUtils"),n=e.commands.get("imageTypeInline"),a=e.commands.get("imageTypeBlock"),r=e=>{if(!e.return)return;const{oldElement:n,newElement:a}=e.return;if(!n)return;if(t.isBlockImage(n)){const e=o.getCaptionFromImageModelElement(n);if(e)return void this._saveCaption(a,e)}const r=this._getSavedCaption(n);r&&this._saveCaption(a,r)};n&&this.listenTo(n,"execute",r,{priority:"low"}),a&&this.listenTo(a,"execute",r,{priority:"low"})}_getSavedCaption(e){const t=this._savedCaptionsMap.get(e);return t?Rd.fromJSON(t):null}_saveCaption(e,t){this._savedCaptionsMap.set(e,t.toJSON())}_registerCaptionReconversion(){const e=this.editor,t=e.model,o=e.plugins.get("ImageUtils"),n=e.plugins.get("ImageCaptionUtils");t.document.on("change:data",()=>{const a=t.document.differ.getChanges();for(const t of a){if("alt"!==t.attributeKey)continue;const a=t.range.start.nodeAfter;if(o.isBlockImage(a)){const t=n.getCaptionFromImageModelElement(a);if(!t)return;e.editing.reconvertItem(t)}}})}}class sk extends Di{static get requires(){return[ik]}static get pluginName(){return"ImageCaptionUI"}init(){const e=this.editor,t=e.editing.view,o=e.plugins.get("ImageCaptionUtils"),n=e.t;e.ui.componentFactory.add("toggleImageCaption",a=>{const r=e.commands.get("toggleImageCaption"),i=new ri(a);return i.set({icon:sp.caption,tooltip:!0,isToggleable:!0}),i.bind("isOn","isEnabled").to(r,"value","isEnabled"),i.bind("label").to(r,"value",e=>n(e?"Toggle caption off":"Toggle caption on")),this.listenTo(i,"execute",()=>{e.execute("toggleImageCaption",{focusCaptionOnShow:!0});const n=o.getCaptionFromModelSelection(e.model.document.selection);if(n){const o=e.editing.mapper.toViewElement(n);t.scrollToTheSelection(),t.change(e=>{e.addClass("image__caption_highlighted",o)})}e.editing.view.focus()}),i})}}var ck=r(8662),dk={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};Ar()(ck.Z,dk),ck.Z.locals;class uk extends Ti{constructor(e,t){super(e),this._defaultStyles={imageBlock:!1,imageInline:!1},this._styles=new Map(t.map(e=>{if(e.isDefault)for(const t of e.modelElements)this._defaultStyles[t]=e.name;return[e.name,e]}))}refresh(){const e=this.editor.plugins.get("ImageUtils").getClosestSelectedImageElement(this.editor.model.document.selection);this.isEnabled=!!e,this.isEnabled?e.hasAttribute("imageStyle")?this.value=e.getAttribute("imageStyle"):this.value=this._defaultStyles[e.name]:this.value=!1}execute(e={}){const t=this.editor,o=t.model,n=t.plugins.get("ImageUtils");o.change(t=>{const a=e.value;let r=n.getClosestSelectedImageElement(o.document.selection);a&&this.shouldConvertImageType(a,r)&&(this.editor.execute(n.isBlockImage(r)?"imageTypeInline":"imageTypeBlock"),r=n.getClosestSelectedImageElement(o.document.selection)),!a||this._styles.get(a).isDefault?t.removeAttribute("imageStyle",r):t.setAttribute("imageStyle",a,r)})}shouldConvertImageType(e,t){return!this._styles.get(e).modelElements.includes(t.name)}}const{objectFullWidth:mk,objectInline:hk,objectLeft:pk,objectRight:bk,objectCenter:gk,objectBlockLeft:fk,objectBlockRight:vk}=sp,wk={get inline(){return{name:"inline",title:"In line",icon:hk,modelElements:["imageInline"],isDefault:!0}},get alignLeft(){return{name:"alignLeft",title:"Left aligned image",icon:pk,modelElements:["imageBlock","imageInline"],className:"image-style-align-left"}},get alignBlockLeft(){return{name:"alignBlockLeft",title:"Left aligned image",icon:fk,modelElements:["imageBlock"],className:"image-style-block-align-left"}},get alignCenter(){return{name:"alignCenter",title:"Centered image",icon:gk,modelElements:["imageBlock"],className:"image-style-align-center"}},get alignRight(){return{name:"alignRight",title:"Right aligned image",icon:bk,modelElements:["imageBlock","imageInline"],className:"image-style-align-right"}},get alignBlockRight(){return{name:"alignBlockRight",title:"Right aligned image",icon:vk,modelElements:["imageBlock"],className:"image-style-block-align-right"}},get block(){return{name:"block",title:"Centered image",icon:gk,modelElements:["imageBlock"],isDefault:!0}},get side(){return{name:"side",title:"Side image",icon:bk,modelElements:["imageBlock"],className:"image-style-side"}}},kk={full:mk,left:fk,right:vk,center:gk,inlineLeft:pk,inlineRight:bk,inline:hk},Ck=[{name:"imageStyle:wrapText",title:"Wrap text",defaultItem:"imageStyle:alignLeft",items:["imageStyle:alignLeft","imageStyle:alignRight"]},{name:"imageStyle:breakText",title:"Break text",defaultItem:"imageStyle:block",items:["imageStyle:alignBlockLeft","imageStyle:block","imageStyle:alignBlockRight"]}];function yk(e){_("image-style-configuration-definition-invalid",e)}const Ok={normalizeStyles:function(e){return(e.configuredStyles.options||[]).map(e=>function(e){return e="string"==typeof e?wk[e]?{...wk[e]}:{name:e}:function(e,t){const o={...t};for(const n in e)Object.prototype.hasOwnProperty.call(t,n)||(o[n]=e[n]);return o}(wk[e.name],e),"string"==typeof e.icon&&(e.icon=kk[e.icon]||e.icon),e}(e)).filter(t=>function(e,{isBlockPluginLoaded:t,isInlinePluginLoaded:o}){const{modelElements:n,name:a}=e;if(!(n&&n.length&&a))return yk({style:e}),!1;{const a=[t?"imageBlock":null,o?"imageInline":null];if(!n.some(e=>a.includes(e)))return _("image-style-missing-dependency",{style:e,missingPlugins:n.map(e=>"imageBlock"===e?"ImageBlockEditing":"ImageInlineEditing")}),!1}return!0}(t,e))},getDefaultStylesConfiguration:function(e,t){return e&&t?{options:["inline","alignLeft","alignRight","alignCenter","alignBlockLeft","alignBlockRight","block","side"]}:e?{options:["block","side"]}:t?{options:["inline","alignLeft","alignRight"]}:{}},getDefaultDropdownDefinitions:function(e){return e.has("ImageBlockEditing")&&e.has("ImageInlineEditing")?[...Ck]:[]},warnInvalidStyle:yk,DEFAULT_OPTIONS:wk,DEFAULT_ICONS:kk,DEFAULT_DROPDOWN_DEFINITIONS:Ck};function jk(e,t){for(const o of t)if(o.name===e)return o}class xk extends Di{static get pluginName(){return"ImageStyleEditing"}static get requires(){return[Iw]}init(){const{normalizeStyles:e,getDefaultStylesConfiguration:t}=Ok,o=this.editor,n=o.plugins.has("ImageBlockEditing"),a=o.plugins.has("ImageInlineEditing");o.config.define("image.styles",t(n,a)),this.normalizedStyles=e({configuredStyles:o.config.get("image.styles"),isBlockPluginLoaded:n,isInlinePluginLoaded:a}),this._setupConversion(n,a),this._setupPostFixer(),o.commands.add("imageStyle",new uk(o,this.normalizedStyles))}_setupConversion(e,t){const o=this.editor,n=o.model.schema,a=(r=this.normalizedStyles,(e,t,o)=>{if(!o.consumable.consume(t.item,e.name))return;const n=jk(t.attributeNewValue,r),a=jk(t.attributeOldValue,r),i=o.mapper.toViewElement(t.item),l=o.writer;a&&l.removeClass(a.className,i),n&&l.addClass(n.className,i)});var r;const i=function(e){const t={imageInline:e.filter(e=>!e.isDefault&&e.modelElements.includes("imageInline")),imageBlock:e.filter(e=>!e.isDefault&&e.modelElements.includes("imageBlock"))};return(e,o,n)=>{if(!o.modelRange)return;const a=o.viewItem,r=fr(o.modelRange.getItems());if(r&&n.schema.checkAttribute(r,"imageStyle"))for(const i of t[r.name])n.consumable.consume(a,{classes:i.className})&&n.writer.setAttribute("imageStyle",i.name,r)}}(this.normalizedStyles);o.editing.downcastDispatcher.on("attribute:imageStyle",a),o.data.downcastDispatcher.on("attribute:imageStyle",a),e&&(n.extend("imageBlock",{allowAttributes:"imageStyle"}),o.data.upcastDispatcher.on("element:figure",i,{priority:"low"})),t&&(n.extend("imageInline",{allowAttributes:"imageStyle"}),o.data.upcastDispatcher.on("element:img",i,{priority:"low"}))}_setupPostFixer(){const e=this.editor,t=e.model.document,o=e.plugins.get(Iw),n=new Map(this.normalizedStyles.map(e=>[e.name,e]));t.registerPostFixer(e=>{let a=!1;for(const r of t.differ.getChanges())if("insert"==r.type||"attribute"==r.type&&"imageStyle"==r.attributeKey){let t="insert"==r.type?r.position.nodeAfter:r.range.start.nodeAfter;if(t&&t.is("element","paragraph")&&t.childCount>0&&(t=t.getChild(0)),!o.isImage(t))continue;const i=t.getAttribute("imageStyle");if(!i)continue;const l=n.get(i);l&&l.modelElements.includes(t.name)||(e.removeAttribute("imageStyle",t),a=!0)}return a})}}var _k=r(4622),Vk={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};Ar()(_k.Z,Vk),_k.Z.locals;class Ak extends Di{static get requires(){return[xk]}static get pluginName(){return"ImageStyleUI"}get localizedDefaultStylesTitles(){const e=this.editor.t;return{"Wrap text":e("Wrap text"),"Break text":e("Break text"),"In line":e("In line"),"Full size image":e("Full size image"),"Side image":e("Side image"),"Left aligned image":e("Left aligned image"),"Centered image":e("Centered image"),"Right aligned image":e("Right aligned image")}}init(){const e=this.editor.plugins,t=this.editor.config.get("image.toolbar")||[],o=Nk(e.get("ImageStyleEditing").normalizedStyles,this.localizedDefaultStylesTitles);for(const a of o)this._createButton(a);const n=Nk([...t.filter(U),...Ok.getDefaultDropdownDefinitions(e)],this.localizedDefaultStylesTitles);for(const a of n)this._createDropdown(a,o)}_createDropdown(e,t){const o=this.editor.ui.componentFactory;o.add(e.name,n=>{let a;const{defaultItem:r,items:i,title:l}=e,s=i.filter(e=>t.find(({name:t})=>Dk(t)===e)).map(e=>{const t=o.create(e);return e===r&&(a=t),t});i.length!==s.length&&Ok.warnInvalidStyle({dropdown:e});const c=_p(n,Oi),d=c.buttonView,u=d.arrowView;return Vp(c,s,{enableActiveItemFocusOnDropdownOpen:!0}),d.set({label:Ek(l,a.label),class:null,tooltip:!0}),u.unbind("label"),u.set({label:l}),d.bind("icon").toMany(s,"isOn",(...e)=>{const t=e.findIndex(Fl);return t<0?a.icon:s[t].icon}),d.bind("label").toMany(s,"isOn",(...e)=>{const t=e.findIndex(Fl);return Ek(l,t<0?a.label:s[t].label)}),d.bind("isOn").toMany(s,"isOn",(...e)=>e.some(Fl)),d.bind("class").toMany(s,"isOn",(...e)=>e.some(Fl)?"ck-splitbutton_flatten":null),d.on("execute",()=>{s.some(({isOn:e})=>e)?c.isOpen=!c.isOpen:a.fire("execute")}),c.bind("isEnabled").toMany(s,"isEnabled",(...e)=>e.some(Fl)),this.listenTo(c,"execute",()=>{this.editor.editing.view.focus()}),c})}_createButton(e){const t=e.name;this.editor.ui.componentFactory.add(Dk(t),o=>{const n=this.editor.commands.get("imageStyle"),a=new ri(o);return a.set({label:e.title,icon:e.icon,tooltip:!0,isToggleable:!0}),a.bind("isEnabled").to(n,"isEnabled"),a.bind("isOn").to(n,"value",e=>e===t),a.on("execute",this._executeCommand.bind(this,t)),a})}_executeCommand(e){this.editor.execute("imageStyle",{value:e}),this.editor.editing.view.focus()}}function Nk(e,t){for(const o of e)t[o.title]&&(o.title=t[o.title]);return e}function Dk(e){return"imageStyle:"+e}function Ek(e,t){return(e?e+": ":"")+t}function Tk(e){const t=e.map(e=>e.replace("+","\\+"));return new RegExp(`^image\\/(${t.join("|")})$`)}function Sk(e){return new Promise((t,o)=>{const n=e.getAttribute("src");fetch(n).then(e=>e.blob()).then(e=>{const o=Bk(e,n),a=o.replace("image/",""),r=new File([e],"image."+a,{type:o});t(r)}).catch(e=>e&&"TypeError"===e.name?function(e){return function(e){return new Promise((t,o)=>{const n=Va.document.createElement("img");n.addEventListener("load",()=>{const e=Va.document.createElement("canvas");e.width=n.width,e.height=n.height,e.getContext("2d").drawImage(n,0,0),e.toBlob(e=>e?t(e):o())}),n.addEventListener("error",()=>o()),n.src=e})}(e).then(t=>{const o=Bk(t,e),n=o.replace("image/","");return new File([t],"image."+n,{type:o})})}(n).then(t).catch(o):o(e))})}function Bk(e,t){return e.type?e.type:t.match(/data:(image\/\w+);base64/)?t.match(/data:(image\/\w+);base64/)[1].toLowerCase():"image/jpeg"}class Ik extends Di{static get pluginName(){return"ImageUploadUI"}init(){const e=this.editor,t=e.t,o=o=>{const n=new tf(o),a=e.commands.get("uploadImage"),r=e.config.get("image.upload.types"),i=Tk(r);return n.set({acceptedType:r.map(e=>"image/"+e).join(","),allowMultipleFiles:!0}),n.buttonView.set({label:t("Insert image"),icon:sp.image,tooltip:!0}),n.buttonView.bind("isEnabled").to(a),n.on("done",(t,o)=>{const n=Array.from(o).filter(e=>i.test(e.type));n.length&&(e.execute("uploadImage",{file:n}),e.editing.view.focus())}),n};e.ui.componentFactory.add("uploadImage",o),e.ui.componentFactory.add("imageUpload",o)}}var zk=r(5870),Fk={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};Ar()(zk.Z,Fk),zk.Z.locals;var Mk=r(9899),Lk={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};Ar()(Mk.Z,Lk),Mk.Z.locals;var Pk=r(9825),Rk={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};Ar()(Pk.Z,Rk),Pk.Z.locals;class qk extends Di{static get pluginName(){return"ImageUploadProgress"}constructor(e){super(e),this.placeholder="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw=="}init(){const e=this.editor;e.plugins.has("ImageBlockEditing")&&e.editing.downcastDispatcher.on("attribute:uploadStatus:imageBlock",(...e)=>this.uploadStatusChange(...e)),e.plugins.has("ImageInlineEditing")&&e.editing.downcastDispatcher.on("attribute:uploadStatus:imageInline",(...e)=>this.uploadStatusChange(...e))}uploadStatusChange(e,t,o){const n=this.editor,a=t.item,r=a.getAttribute("uploadId");if(!o.consumable.consume(t.item,e.name))return;const i=n.plugins.get("ImageUtils"),l=n.plugins.get(Xg),s=r?t.attributeNewValue:null,c=this.placeholder,d=n.editing.mapper.toViewElement(a),u=o.writer;if("reading"==s)return $k(d,u),void Uk(i,c,d,u);if("uploading"==s){const e=l.loaders.get(r);return $k(d,u),void(e?(Hk(d,u),function(e,t,o,n){const a=function(e){const t=e.createUIElement("div",{class:"ck-progress-bar"});return e.setCustomProperty("progressBar",!0,t),t}(t);t.insert(t.createPositionAt(e,"end"),a),o.on("change:uploadedPercent",(e,t,o)=>{n.change(e=>{e.setStyle("width",o+"%",a)})})}(d,u,e,n.editing.view),function(e,t,o,n){if(n.data){const a=e.findViewImgElement(t);o.setAttribute("src",n.data,a)}}(i,d,u,e)):Uk(i,c,d,u))}"complete"==s&&l.loaders.get(r)&&function(e,t,o){const n=t.createUIElement("div",{class:"ck-image-upload-complete-icon"});t.insert(t.createPositionAt(e,"end"),n),setTimeout(()=>{o.change(e=>e.remove(e.createRangeOn(n)))},3e3)}(d,u,n.editing.view),function(e,t){Gk(e,t,"progressBar")}(d,u),Hk(d,u),function(e,t){t.removeClass("ck-appear",e)}(d,u)}}function $k(e,t){e.hasClass("ck-appear")||t.addClass("ck-appear",e)}function Uk(e,t,o,n){o.hasClass("ck-image-upload-placeholder")||n.addClass("ck-image-upload-placeholder",o);const a=e.findViewImgElement(o);a.getAttribute("src")!==t&&n.setAttribute("src",t,a),Wk(o,"placeholder")||n.insert(n.createPositionAfter(a),function(e){const t=e.createUIElement("div",{class:"ck-upload-placeholder-loader"});return e.setCustomProperty("placeholder",!0,t),t}(n))}function Hk(e,t){e.hasClass("ck-image-upload-placeholder")&&t.removeClass("ck-image-upload-placeholder",e),Gk(e,t,"placeholder")}function Wk(e,t){for(const o of e.getChildren())if(o.getCustomProperty(t))return o}function Gk(e,t,o){const n=Wk(e,o);n&&t.remove(t.createRangeOn(n))}class Kk extends Ti{refresh(){const e=this.editor,t=e.plugins.get("ImageUtils"),o=e.model.document.selection.getSelectedElement();this.isEnabled=t.isImageAllowed()||t.isImage(o)}execute(e){const t=ur(e.file),o=this.editor.model.document.selection,n=this.editor.plugins.get("ImageUtils"),a=Object.fromEntries(o.getAttributes());t.forEach((e,t)=>{const r=o.getSelectedElement();if(t&&r&&n.isImage(r)){const t=this.editor.model.createPositionAfter(r);this._uploadImage(e,a,t)}else this._uploadImage(e,a)})}_uploadImage(e,t,o){const n=this.editor,a=n.plugins.get(Xg).createLoader(e),r=n.plugins.get("ImageUtils");a&&r.insertImage({...t,uploadId:a.id},o)}}class Yk extends Di{static get requires(){return[Xg,ub,yf,Iw]}static get pluginName(){return"ImageUploadEditing"}constructor(e){super(e),e.config.define("image",{upload:{types:["jpeg","png","gif","bmp","webp","tiff"]}}),this._uploadImageElements=new Map}init(){const e=this.editor,t=e.model.document,o=e.conversion,n=e.plugins.get(Xg),a=e.plugins.get("ImageUtils"),r=Tk(e.config.get("image.upload.types")),i=new Kk(e);e.commands.add("uploadImage",i),e.commands.add("imageUpload",i),o.for("upcast").attributeToAttribute({view:{name:"img",key:"uploadId"},model:"uploadId"}),this.listenTo(e.editing.view.document,"clipboardInput",(t,o)=>{if(n=o.dataTransfer,Array.from(n.types).includes("text/html")&&""!==n.getData("text/html"))return;var n;const a=Array.from(o.dataTransfer.files).filter(e=>!!e&&r.test(e.type));a.length&&(t.stop(),e.model.change(t=>{o.targetRanges&&t.setSelection(o.targetRanges.map(t=>e.editing.mapper.toModelRange(t))),e.model.enqueueChange(()=>{e.execute("uploadImage",{file:a})})}))}),this.listenTo(e.plugins.get("ClipboardPipeline"),"inputTransformation",(t,o)=>{const r=Array.from(e.editing.view.createRangeIn(o.content)).filter(e=>function(e,t){return!(!e.isInlineImageView(t)||!t.getAttribute("src"))&&(t.getAttribute("src").match(/^data:image\/\w+;base64,/g)||t.getAttribute("src").match(/^blob:/g))}(a,e.item)&&!e.item.getAttribute("uploadProcessed")).map(e=>({promise:Sk(e.item),imageElement:e.item}));if(!r.length)return;const i=new zh(e.editing.view.document);for(const e of r){i.setAttribute("uploadProcessed",!0,e.imageElement);const t=n.createLoader(e.promise);t&&(i.setAttribute("src","",e.imageElement),i.setAttribute("uploadId",t.id,e.imageElement))}}),e.editing.view.document.on("dragover",(e,t)=>{t.preventDefault()}),t.on("change",()=>{const o=t.differ.getChanges({includeChangesInGraveyard:!0}).reverse(),a=new Set;for(const t of o)if("insert"==t.type&&"$text"!=t.name){const o=t.position.nodeAfter,r="$graveyard"==t.position.root.rootName;for(const t of Qk(e,o)){const e=t.getAttribute("uploadId");if(!e)continue;const o=n.loaders.get(e);o&&(r?a.has(e)||o.abort():(a.add(e),this._uploadImageElements.set(e,t),"idle"==o.status&&this._readAndUpload(o)))}}}),this.on("uploadComplete",(e,{imageElement:t,data:o})=>{const n=o.urls?o.urls:o;this.editor.model.change(e=>{e.setAttribute("src",n.default,t),this._parseAndSetSrcsetAttributeOnImage(n,t,e)})},{priority:"low"})}afterInit(){const e=this.editor.model.schema;this.editor.plugins.has("ImageBlockEditing")&&e.extend("imageBlock",{allowAttributes:["uploadId","uploadStatus"]}),this.editor.plugins.has("ImageInlineEditing")&&e.extend("imageInline",{allowAttributes:["uploadId","uploadStatus"]})}_readAndUpload(e){const t=this.editor,o=t.model,n=t.locale.t,a=t.plugins.get(Xg),r=t.plugins.get(ub),i=t.plugins.get("ImageUtils"),l=this._uploadImageElements;return o.enqueueChange({isUndoable:!1},t=>{t.setAttribute("uploadStatus","reading",l.get(e.id))}),e.read().then(()=>{const n=e.upload(),a=l.get(e.id);if(u.isSafari){const e=t.editing.mapper.toViewElement(a),o=i.findViewImgElement(e);t.editing.view.once("render",()=>{if(!o.parent)return;const e=t.editing.view.domConverter.mapViewToDom(o.parent);if(!e)return;const n=e.style.display;e.style.display="none",e._ckHack=e.offsetHeight,e.style.display=n})}return o.enqueueChange({isUndoable:!1},e=>{e.setAttribute("uploadStatus","uploading",a)}),n}).then(t=>{o.enqueueChange({isUndoable:!1},o=>{const n=l.get(e.id);o.setAttribute("uploadStatus","complete",n),this.fire("uploadComplete",{data:t,imageElement:n})}),s()}).catch(t=>{if("error"!==e.status&&"aborted"!==e.status)throw t;"error"==e.status&&t&&r.showWarning(t,{title:n("Upload failed"),namespace:"upload"}),o.enqueueChange({isUndoable:!1},t=>{t.remove(l.get(e.id))}),s()});function s(){o.enqueueChange({isUndoable:!1},t=>{const o=l.get(e.id);t.removeAttribute("uploadId",o),t.removeAttribute("uploadStatus",o),l.delete(e.id)}),a.destroyLoader(e)}}_parseAndSetSrcsetAttributeOnImage(e,t,o){let n=0;const a=Object.keys(e).filter(e=>{const t=parseInt(e,10);if(!isNaN(t))return n=Math.max(n,t),!0}).map(t=>`${e[t]} ${t}w`).join(", ");""!=a&&o.setAttribute("srcset",{data:a,width:n},t)}}function Qk(e,t){const o=e.plugins.get("ImageUtils");return Array.from(e.model.createRangeOn(t)).filter(e=>o.isImage(e.item)).map(e=>e.item)}class Jk extends Di{static get pluginName(){return"IndentEditing"}init(){const e=this.editor;e.commands.add("indent",new Bi(e)),e.commands.add("outdent",new Bi(e))}}const Zk='<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M2 3.75c0 .414.336.75.75.75h14.5a.75.75 0 1 0 0-1.5H2.75a.75.75 0 0 0-.75.75zm5 6c0 .414.336.75.75.75h9.5a.75.75 0 1 0 0-1.5h-9.5a.75.75 0 0 0-.75.75zM2.75 16.5h14.5a.75.75 0 1 0 0-1.5H2.75a.75.75 0 1 0 0 1.5zM1.632 6.95 5.02 9.358a.4.4 0 0 1-.013.661l-3.39 2.207A.4.4 0 0 1 1 11.892V7.275a.4.4 0 0 1 .632-.326z"/></svg>',Xk='<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M2 3.75c0 .414.336.75.75.75h14.5a.75.75 0 1 0 0-1.5H2.75a.75.75 0 0 0-.75.75zm5 6c0 .414.336.75.75.75h9.5a.75.75 0 1 0 0-1.5h-9.5a.75.75 0 0 0-.75.75zM2.75 16.5h14.5a.75.75 0 1 0 0-1.5H2.75a.75.75 0 1 0 0 1.5zm1.618-9.55L.98 9.358a.4.4 0 0 0 .013.661l3.39 2.207A.4.4 0 0 0 5 11.892V7.275a.4.4 0 0 0-.632-.326z"/></svg>';class eC extends Di{static get pluginName(){return"IndentUI"}init(){const e=this.editor,t=e.locale,o=e.t,n="ltr"==t.uiLanguageDirection?Zk:Xk,a="ltr"==t.uiLanguageDirection?Xk:Zk;this._defineButton("indent",o("Increase indent"),n),this._defineButton("outdent",o("Decrease indent"),a)}_defineButton(e,t,o){const n=this.editor;n.ui.componentFactory.add(e,a=>{const r=n.commands.get(e),i=new ri(a);return i.set({label:t,icon:o,tooltip:!0}),i.bind("isOn","isEnabled").to(r,"value","isEnabled"),this.listenTo(i,"execute",()=>{n.execute(e),n.editing.view.focus()}),i})}}const tC="italic";class oC extends Di{static get pluginName(){return"ItalicEditing"}init(){const e=this.editor;e.model.schema.extend("$text",{allowAttributes:tC}),e.model.schema.setAttributeProperties(tC,{isFormatting:!0,copyOnEnter:!0}),e.conversion.attributeToElement({model:tC,view:"i",upcastAlso:["em",{styles:{"font-style":"italic"}}]}),e.commands.add(tC,new zg(e,tC)),e.keystrokes.set("CTRL+I",tC)}}const nC="italic";class aC extends Di{static get pluginName(){return"ItalicUI"}init(){const e=this.editor,t=e.t;e.ui.componentFactory.add(nC,o=>{const n=e.commands.get(nC),a=new ri(o);return a.set({label:t("Italic"),icon:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="m9.586 14.633.021.004c-.036.335.095.655.393.962.082.083.173.15.274.201h1.474a.6.6 0 1 1 0 1.2H5.304a.6.6 0 0 1 0-1.2h1.15c.474-.07.809-.182 1.005-.334.157-.122.291-.32.404-.597l2.416-9.55a1.053 1.053 0 0 0-.281-.823 1.12 1.12 0 0 0-.442-.296H8.15a.6.6 0 0 1 0-1.2h6.443a.6.6 0 1 1 0 1.2h-1.195c-.376.056-.65.155-.823.296-.215.175-.423.439-.623.79l-2.366 9.347z"/></svg>',keystroke:"CTRL+I",tooltip:!0,isToggleable:!0}),a.bind("isOn","isEnabled").to(n,"value","isEnabled"),this.listenTo(a,"execute",()=>{e.execute(nC),e.editing.view.focus()}),a})}}class rC{constructor(){this._definitions=new Set}get length(){return this._definitions.size}add(e){Array.isArray(e)?e.forEach(e=>this._definitions.add(e)):this._definitions.add(e)}getDispatcher(){return e=>{e.on("attribute:linkHref",(e,t,o)=>{if(!o.consumable.test(t.item,"attribute:linkHref"))return;if(!t.item.is("selection")&&!o.schema.isInline(t.item))return;const n=o.writer,a=n.document.selection;for(const r of this._definitions){const e=n.createAttributeElement("a",r.attributes,{priority:5});r.classes&&n.addClass(r.classes,e);for(const t in r.styles)n.setStyle(t,r.styles[t],e);n.setCustomProperty("link",!0,e),r.callback(t.attributeNewValue)?t.item.is("selection")?n.wrap(a.getFirstRange(),e):n.wrap(o.mapper.toViewRange(t.range),e):n.unwrap(o.mapper.toViewRange(t.range),e)}},{priority:"high"})}}getDispatcherForLinkedImage(){return e=>{e.on("attribute:linkHref:imageBlock",(e,t,{writer:o,mapper:n})=>{const a=n.toViewElement(t.item),r=Array.from(a.getChildren()).find(e=>"a"===e.name);for(const i of this._definitions){const e=kr(i.attributes);if(i.callback(t.attributeNewValue)){for(const[t,n]of e)"class"===t?o.addClass(n,r):o.setAttribute(t,n,r);i.classes&&o.addClass(i.classes,r);for(const e in i.styles)o.setStyle(e,i.styles[e],r)}else{for(const[t,n]of e)"class"===t?o.removeClass(n,r):o.removeAttribute(t,r);i.classes&&o.removeClass(i.classes,r);for(const e in i.styles)o.removeStyle(e,r)}}})}}}const iC=function(e,t,o){var n=e.length;return o=void 0===o?n:o,!t&&o>=n?e:xl(e,t,o)};var lC=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]");const sC=function(e){return lC.test(e)},cC=function(e){return e.split("")};var dC="\\ud800-\\udfff",uC="["+dC+"]",mC="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",hC="\\ud83c[\\udffb-\\udfff]",pC="[^"+dC+"]",bC="(?:\\ud83c[\\udde6-\\uddff]){2}",gC="[\\ud800-\\udbff][\\udc00-\\udfff]",fC="(?:"+mC+"|"+hC+")?",vC="[\\ufe0e\\ufe0f]?",wC=vC+fC+"(?:\\u200d(?:"+[pC,bC,gC].join("|")+")"+vC+fC+")*",kC="(?:"+[pC+mC+"?",mC,bC,gC,uC].join("|")+")",CC=RegExp(hC+"(?="+hC+")|"+kC+wC,"g");const yC=function(e){return e.match(CC)||[]},OC=function(e){return sC(e)?yC(e):cC(e)},jC=function(e){return function(t){t=wl(t);var o=sC(t)?OC(t):void 0,n=o?o[0]:t.charAt(0),a=o?iC(o,1).join(""):t.slice(1);return n[e]()+a}}("toUpperCase"),xC=/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205f\u3000]/g,_C=/^(?:(?:https?|ftps?|mailto):|[^a-z]|[a-z+.-]+(?:[^a-z+.:-]|$))/i,VC=/^[\S]+@((?![-_])(?:[-\w\u00a1-\uffff]{0,63}[^-_]\.))+(?:[a-z\u00a1-\uffff]{2,})$/i,AC=/^((\w+:(\/{2,})?)|(\W))/i,NC="Ctrl+K";function DC(e,{writer:t}){const o=t.createAttributeElement("a",{href:e},{priority:5});return t.setCustomProperty("link",!0,o),o}function EC(e){return function(e){const t=e.replace(xC,"");return t.match(_C)}(e=String(e))?e:"#"}function TC(e,t){return!!e&&t.checkAttribute(e.name,"linkHref")}function SC(e,t){const o=(n=e,VC.test(n)?"mailto:":t);var n;const a=!!o&&!BC(e);return e&&a?o+e:e}function BC(e){return AC.test(e)}function IC(e){window.open(e,"_blank","noopener")}class zC extends Ti{constructor(e){super(e),this.manualDecorators=new gr,this.automaticDecorators=new rC}restoreManualDecoratorStates(){for(const e of this.manualDecorators)e.value=this._getDecoratorStateFromModel(e.id)}refresh(){const e=this.editor.model,t=e.document.selection,o=t.getSelectedElement()||fr(t.getSelectedBlocks());TC(o,e.schema)?(this.value=o.getAttribute("linkHref"),this.isEnabled=e.schema.checkAttribute(o,"linkHref")):(this.value=t.getAttribute("linkHref"),this.isEnabled=e.schema.checkAttributeInSelection(t,"linkHref"));for(const n of this.manualDecorators)n.value=this._getDecoratorStateFromModel(n.id)}execute(e,t={}){const o=this.editor.model,n=o.document.selection,a=[],r=[];for(const i in t)t[i]?a.push(i):r.push(i);o.change(t=>{if(n.isCollapsed){const i=n.getFirstPosition();if(n.hasAttribute("linkHref")){const l=mg(i,"linkHref",n.getAttribute("linkHref"),o);t.setAttribute("linkHref",e,l),a.forEach(e=>{t.setAttribute(e,!0,l)}),r.forEach(e=>{t.removeAttribute(e,l)}),t.setSelection(t.createPositionAfter(l.end.nodeBefore))}else if(""!==e){const r=kr(n.getAttributes());r.set("linkHref",e),a.forEach(e=>{r.set(e,!0)});const{end:l}=o.insertContent(t.createText(e,r),i);t.setSelection(l)}["linkHref",...a,...r].forEach(e=>{t.removeSelectionAttribute(e)})}else{const i=o.schema.getValidRanges(n.getRanges(),"linkHref"),l=[];for(const e of n.getSelectedBlocks())o.schema.checkAttribute(e,"linkHref")&&l.push(t.createRangeOn(e));const s=l.slice();for(const e of i)this._isRangeToUpdate(e,l)&&s.push(e);for(const o of s)t.setAttribute("linkHref",e,o),a.forEach(e=>{t.setAttribute(e,!0,o)}),r.forEach(e=>{t.removeAttribute(e,o)})}})}_getDecoratorStateFromModel(e){const t=this.editor.model,o=t.document.selection,n=o.getSelectedElement();return TC(n,t.schema)?n.getAttribute(e):o.getAttribute(e)}_isRangeToUpdate(e,t){for(const o of t)if(o.containsRange(e))return!1;return!0}}class FC extends Ti{refresh(){const e=this.editor.model,t=e.document.selection,o=t.getSelectedElement();TC(o,e.schema)?this.isEnabled=e.schema.checkAttribute(o,"linkHref"):this.isEnabled=e.schema.checkAttributeInSelection(t,"linkHref")}execute(){const e=this.editor,t=this.editor.model,o=t.document.selection,n=e.commands.get("link");t.change(e=>{const a=o.isCollapsed?[mg(o.getFirstPosition(),"linkHref",o.getAttribute("linkHref"),t)]:t.schema.getValidRanges(o.getRanges(),"linkHref");for(const t of a)if(e.removeAttribute("linkHref",t),n)for(const o of n.manualDecorators)e.removeAttribute(o.id,t)})}}class MC{constructor({id:e,label:t,attributes:o,classes:n,styles:a,defaultValue:r}){this.id=e,this.set("value"),this.defaultValue=r,this.label=t,this.attributes=o,this.classes=n,this.styles=a}_createPattern(){return{attributes:this.attributes,classes:this.classes,styles:this.styles}}}f(MC,J);var LC=r(399),PC={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};Ar()(LC.Z,PC),LC.Z.locals;const RC="automatic",qC=/^(https?:)?\/\//;class $C extends Di{static get pluginName(){return"LinkEditing"}static get requires(){return[Jb,Mb,yf]}constructor(e){super(e),e.config.define("link",{addTargetToExternalLinks:!1})}init(){const e=this.editor;e.model.schema.extend("$text",{allowAttributes:"linkHref"}),e.conversion.for("dataDowncast").attributeToElement({model:"linkHref",view:DC}),e.conversion.for("editingDowncast").attributeToElement({model:"linkHref",view:(e,t)=>DC(EC(e),t)}),e.conversion.for("upcast").elementToAttribute({view:{name:"a",attributes:{href:!0}},model:{key:"linkHref",value:e=>e.getAttribute("href")}}),e.commands.add("link",new zC(e)),e.commands.add("unlink",new FC(e));const t=function(e,t){const o={"Open in a new tab":e("Open in a new tab"),Downloadable:e("Downloadable")};return t.forEach(e=>(e.label&&o[e.label]&&(e.label=o[e.label]),e)),t}(e.t,function(e){const t=[];if(e)for(const[o,n]of Object.entries(e)){const e=Object.assign({},n,{id:"link"+jC(o)});t.push(e)}return t}(e.config.get("link.decorators")));this._enableAutomaticDecorators(t.filter(e=>e.mode===RC)),this._enableManualDecorators(t.filter(e=>"manual"===e.mode)),e.plugins.get(Jb).registerAttribute("linkHref"),function(e,t,o,n){const a=e.editing.view,r=new Set;a.document.registerPostFixer(a=>{const i=e.model.document.selection;let l=!1;if(i.hasAttribute(t)){const s=mg(i.getFirstPosition(),t,i.getAttribute(t),e.model),c=e.editing.mapper.toViewRange(s);for(const e of c.getItems())e.is("element",o)&&!e.hasClass(n)&&(a.addClass(n,e),r.add(e),l=!0)}return l}),e.conversion.for("editingDowncast").add(e=>{function t(){a.change(e=>{for(const t of r.values())e.removeClass(n,t),r.delete(t)})}e.on("insert",t,{priority:"highest"}),e.on("remove",t,{priority:"highest"}),e.on("attribute",t,{priority:"highest"}),e.on("selection",t,{priority:"highest"})})}(e,"linkHref","a","ck-link_selected"),this._enableLinkOpen(),this._enableInsertContentSelectionAttributesFixer(),this._enableClickingAfterLink(),this._enableTypingOverLink(),this._handleDeleteContentAfterLink(),this._enableClipboardIntegration()}_enableAutomaticDecorators(e){const t=this.editor,o=t.commands.get("link").automaticDecorators;t.config.get("link.addTargetToExternalLinks")&&o.add({id:"linkIsExternal",mode:RC,callback:e=>qC.test(e),attributes:{target:"_blank",rel:"noopener noreferrer"}}),o.add(e),o.length&&t.conversion.for("downcast").add(o.getDispatcher())}_enableManualDecorators(e){if(!e.length)return;const t=this.editor,o=t.commands.get("link").manualDecorators;e.forEach(e=>{t.model.schema.extend("$text",{allowAttributes:e.id}),e=new MC(e),o.add(e),t.conversion.for("downcast").attributeToElement({model:e.id,view:(t,{writer:o,schema:n},{item:a})=>{if((a.is("selection")||n.isInline(a))&&t){const t=o.createAttributeElement("a",e.attributes,{priority:5});e.classes&&o.addClass(e.classes,t);for(const n in e.styles)o.setStyle(n,e.styles[n],t);return o.setCustomProperty("link",!0,t),t}}}),t.conversion.for("upcast").elementToAttribute({view:{name:"a",...e._createPattern()},model:{key:e.id}})})}_enableLinkOpen(){const e=this.editor,t=e.editing.view.document;this.listenTo(t,"click",(e,t)=>{if(!(u.isMac?t.domEvent.metaKey:t.domEvent.ctrlKey))return;let o=t.domTarget;if("a"!=o.tagName.toLowerCase()&&(o=o.closest("a")),!o)return;const n=o.getAttribute("href");n&&(e.stop(),t.preventDefault(),IC(n))},{context:"$capture"}),this.listenTo(t,"keydown",(t,o)=>{const n=e.commands.get("link").value;n&&o.keyCode===rr.enter&&o.altKey&&(t.stop(),IC(n))})}_enableInsertContentSelectionAttributesFixer(){const e=this.editor.model,t=e.document.selection;this.listenTo(e,"insertContent",()=>{const o=t.anchor.nodeBefore,n=t.anchor.nodeAfter;t.hasAttribute("linkHref")&&o&&o.hasAttribute("linkHref")&&(n&&n.hasAttribute("linkHref")||e.change(t=>{UC(t,WC(e.schema))}))},{priority:"low"})}_enableClickingAfterLink(){const e=this.editor,t=e.model;e.editing.view.addObserver(Ih);let o=!1;this.listenTo(e.editing.view.document,"mousedown",()=>{o=!0}),this.listenTo(e.editing.view.document,"selectionChange",()=>{if(!o)return;o=!1;const e=t.document.selection;if(!e.isCollapsed)return;if(!e.hasAttribute("linkHref"))return;const n=e.getFirstPosition(),a=mg(n,"linkHref",e.getAttribute("linkHref"),t);(n.isTouching(a.start)||n.isTouching(a.end))&&t.change(e=>{UC(e,WC(t.schema))})})}_enableTypingOverLink(){const e=this.editor,t=e.editing.view;let o,n;this.listenTo(t.document,"delete",()=>{n=!0},{priority:"high"}),this.listenTo(e.model,"deleteContent",()=>{const t=e.model.document.selection;t.isCollapsed||(n?n=!1:HC(e)&&function(e){const t=e.document.selection,o=t.getFirstPosition(),n=t.getLastPosition(),a=o.nodeAfter;if(!a)return!1;if(!a.is("$text"))return!1;if(!a.hasAttribute("linkHref"))return!1;const r=n.textNode||n.nodeBefore;return a===r||mg(o,"linkHref",a.getAttribute("linkHref"),e).containsRange(e.createRange(o,n),!0)}(e.model)&&(o=t.getAttributes()))},{priority:"high"}),this.listenTo(e.model,"insertContent",(t,[a])=>{n=!1,HC(e)&&o&&(e.model.change(e=>{for(const[t,n]of o)e.setAttribute(t,n,a)}),o=null)},{priority:"high"})}_handleDeleteContentAfterLink(){const e=this.editor,t=e.model,o=t.document.selection,n=e.editing.view;let a=!1,r=!1;this.listenTo(n.document,"delete",(e,t)=>{r="backward"===t.direction},{priority:"high"}),this.listenTo(t,"deleteContent",()=>{a=!1;const e=o.getFirstPosition(),n=o.getAttribute("linkHref");if(!n)return;const r=mg(e,"linkHref",n,t);a=r.containsPosition(e)||r.end.isEqual(e)},{priority:"high"}),this.listenTo(t,"deleteContent",()=>{r&&(r=!1,a||e.model.enqueueChange(e=>{UC(e,WC(t.schema))}))},{priority:"low"})}_enableClipboardIntegration(){const e=this.editor,t=e.model,o=this.editor.config.get("link.defaultProtocol");o&&this.listenTo(e.plugins.get("ClipboardPipeline"),"contentInsertion",(e,n)=>{t.change(e=>{const t=e.createRangeIn(n.content);for(const n of t.getItems())if(n.hasAttribute("linkHref")){const t=SC(n.getAttribute("linkHref"),o);e.setAttribute("linkHref",t,n)}})})}}function UC(e,t){e.removeSelectionAttribute("linkHref");for(const o of t)e.removeSelectionAttribute(o)}function HC(e){return e.model.change(e=>e.batch).isTyping}function WC(e){return e.getDefinition("$text").allowAttributes.filter(e=>e.startsWith("link"))}var GC=r(4827),KC={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};Ar()(GC.Z,KC),GC.Z.locals;class YC extends Er{constructor(e,t){super(e);const o=e.t;this.focusTracker=new vr,this.keystrokes=new wr,this.urlInputView=this._createUrlInput(),this.saveButtonView=this._createButton(o("Save"),sp.check,"ck-button-save"),this.saveButtonView.type="submit",this.cancelButtonView=this._createButton(o("Cancel"),sp.cancel,"ck-button-cancel","cancel"),this._manualDecoratorSwitches=this._createManualDecoratorSwitches(t),this.children=this._createFormChildren(t.manualDecorators),this._focusables=new _r,this._focusCycler=new xi({focusables:this._focusables,focusTracker:this.focusTracker,keystrokeHandler:this.keystrokes,actions:{focusPrevious:"shift + tab",focusNext:"tab"}});const n=["ck","ck-link-form","ck-responsive-form"];t.manualDecorators.length&&n.push("ck-link-form_layout-vertical","ck-vertical-form"),this.setTemplate({tag:"form",attributes:{class:n,tabindex:"-1"},children:this.children}),a(this)}getDecoratorSwitchesState(){return Array.from(this._manualDecoratorSwitches).reduce((e,t)=>(e[t.name]=t.isOn,e),{})}render(){super.render(),l({view:this}),[this.urlInputView,...this._manualDecoratorSwitches,this.saveButtonView,this.cancelButtonView].forEach(e=>{this._focusables.add(e),this.focusTracker.add(e.element)}),this.keystrokes.listenTo(this.element)}destroy(){super.destroy(),this.focusTracker.destroy(),this.keystrokes.destroy()}focus(){this._focusCycler.focusFirst()}_createUrlInput(){const e=this.locale.t,t=new cb(this.locale,db);return t.label=e("Link URL"),t}_createButton(e,t,o,n){const a=new ri(this.locale);return a.set({label:e,icon:t,tooltip:!0}),a.extendTemplate({attributes:{class:o}}),n&&a.delegate("execute").to(this,n),a}_createManualDecoratorSwitches(e){const t=this.createCollection();for(const o of e.manualDecorators){const n=new si(this.locale);n.set({name:o.id,label:o.label,withText:!0}),n.bind("isOn").toMany([o,e],"value",(e,t)=>void 0===t&&void 0===e?o.defaultValue:e),n.on("execute",()=>{o.set("value",!n.isOn)}),t.add(n)}return t}_createFormChildren(e){const t=this.createCollection();if(t.add(this.urlInputView),e.length){const e=new Er;e.setTemplate({tag:"ul",children:this._manualDecoratorSwitches.map(e=>({tag:"li",children:[e],attributes:{class:["ck","ck-list__item"]}})),attributes:{class:["ck","ck-reset","ck-list"]}}),t.add(e)}return t.add(this.saveButtonView),t.add(this.cancelButtonView),t}}var QC=r(9465),JC={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};Ar()(QC.Z,JC),QC.Z.locals;class ZC extends Er{constructor(e){super(e);const t=e.t;this.focusTracker=new vr,this.keystrokes=new wr,this.previewButtonView=this._createPreviewButton(),this.unlinkButtonView=this._createButton(t("Unlink"),'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="m11.077 15 .991-1.416a.75.75 0 1 1 1.229.86l-1.148 1.64a.748.748 0 0 1-.217.206 5.251 5.251 0 0 1-8.503-5.955.741.741 0 0 1 .12-.274l1.147-1.639a.75.75 0 1 1 1.228.86L4.933 10.7l.006.003a3.75 3.75 0 0 0 6.132 4.294l.006.004zm5.494-5.335a.748.748 0 0 1-.12.274l-1.147 1.639a.75.75 0 1 1-1.228-.86l.86-1.23a3.75 3.75 0 0 0-6.144-4.301l-.86 1.229a.75.75 0 0 1-1.229-.86l1.148-1.64a.748.748 0 0 1 .217-.206 5.251 5.251 0 0 1 8.503 5.955zm-4.563-2.532a.75.75 0 0 1 .184 1.045l-3.155 4.505a.75.75 0 1 1-1.229-.86l3.155-4.506a.75.75 0 0 1 1.045-.184zm4.919 10.562-1.414 1.414a.75.75 0 1 1-1.06-1.06l1.414-1.415-1.415-1.414a.75.75 0 0 1 1.061-1.06l1.414 1.414 1.414-1.415a.75.75 0 0 1 1.061 1.061l-1.414 1.414 1.414 1.415a.75.75 0 0 1-1.06 1.06l-1.415-1.414z"/></svg>',"unlink"),this.editButtonView=this._createButton(t("Edit link"),sp.pencil,"edit"),this.set("href"),this._focusables=new _r,this._focusCycler=new xi({focusables:this._focusables,focusTracker:this.focusTracker,keystrokeHandler:this.keystrokes,actions:{focusPrevious:"shift + tab",focusNext:"tab"}}),this.setTemplate({tag:"div",attributes:{class:["ck","ck-link-actions","ck-responsive-form"],tabindex:"-1"},children:[this.previewButtonView,this.editButtonView,this.unlinkButtonView]})}render(){super.render(),[this.previewButtonView,this.editButtonView,this.unlinkButtonView].forEach(e=>{this._focusables.add(e),this.focusTracker.add(e.element)}),this.keystrokes.listenTo(this.element)}destroy(){super.destroy(),this.focusTracker.destroy(),this.keystrokes.destroy()}focus(){this._focusCycler.focusFirst()}_createButton(e,t,o){const n=new ri(this.locale);return n.set({label:e,icon:t,tooltip:!0}),n.delegate("execute").to(this,o),n}_createPreviewButton(){const e=new ri(this.locale),t=this.bindTemplate,o=this.t;return e.set({withText:!0,tooltip:o("Open link in new tab")}),e.extendTemplate({attributes:{class:["ck","ck-link-actions__preview"],href:t.to("href",e=>e&&EC(e)),target:"_blank",rel:"noopener noreferrer"}}),e.bind("label").to(this,"href",e=>e||o("This link has no URL")),e.bind("isEnabled").to(this,"href",e=>!!e),e.template.tag="a",e.template.eventListeners={},e}}const XC="link-ui";class ey extends Di{static get requires(){return[vb]}static get pluginName(){return"LinkUI"}init(){const e=this.editor;e.editing.view.addObserver(Bh),this.actionsView=null,this.formView=null,this._balloon=e.plugins.get(vb),this._createToolbarLinkButton(),this._enableBalloonActivators(),e.conversion.for("editingDowncast").markerToHighlight({model:XC,view:{classes:["ck-fake-link-selection"]}}),e.conversion.for("editingDowncast").markerToElement({model:XC,view:{name:"span",classes:["ck-fake-link-selection","ck-fake-link-selection_collapsed"]}})}destroy(){super.destroy(),this.formView&&this.formView.destroy(),this.actionsView&&this.actionsView.destroy()}_createViews(){this.actionsView=this._createActionsView(),this.formView=this._createFormView(),this._enableUserBalloonInteractions()}_createActionsView(){const e=this.editor,t=new ZC(e.locale),o=e.commands.get("link"),n=e.commands.get("unlink");return t.bind("href").to(o,"value"),t.editButtonView.bind("isEnabled").to(o),t.unlinkButtonView.bind("isEnabled").to(n),this.listenTo(t,"edit",()=>{this._addFormView()}),this.listenTo(t,"unlink",()=>{e.execute("unlink"),this._hideUI()}),t.keystrokes.set("Esc",(e,t)=>{this._hideUI(),t()}),t.keystrokes.set(NC,(e,t)=>{this._addFormView(),t()}),t}_createFormView(){const e=this.editor,t=e.commands.get("link"),o=e.config.get("link.defaultProtocol"),n=new YC(e.locale,t);return n.urlInputView.fieldView.bind("value").to(t,"value"),n.urlInputView.bind("isReadOnly").to(t,"isEnabled",e=>!e),n.saveButtonView.bind("isEnabled").to(t),this.listenTo(n,"submit",()=>{const{value:t}=n.urlInputView.fieldView.element,a=SC(t,o);e.execute("link",a,n.getDecoratorSwitchesState()),this._closeFormView()}),this.listenTo(n,"cancel",()=>{this._closeFormView()}),n.keystrokes.set("Esc",(e,t)=>{this._closeFormView(),t()}),n}_createToolbarLinkButton(){const e=this.editor,t=e.commands.get("link"),o=e.t;e.ui.componentFactory.add("link",e=>{const n=new ri(e);return n.isEnabled=!0,n.label=o("Link"),n.icon='<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="m11.077 15 .991-1.416a.75.75 0 1 1 1.229.86l-1.148 1.64a.748.748 0 0 1-.217.206 5.251 5.251 0 0 1-8.503-5.955.741.741 0 0 1 .12-.274l1.147-1.639a.75.75 0 1 1 1.228.86L4.933 10.7l.006.003a3.75 3.75 0 0 0 6.132 4.294l.006.004zm5.494-5.335a.748.748 0 0 1-.12.274l-1.147 1.639a.75.75 0 1 1-1.228-.86l.86-1.23a3.75 3.75 0 0 0-6.144-4.301l-.86 1.229a.75.75 0 0 1-1.229-.86l1.148-1.64a.748.748 0 0 1 .217-.206 5.251 5.251 0 0 1 8.503 5.955zm-4.563-2.532a.75.75 0 0 1 .184 1.045l-3.155 4.505a.75.75 0 1 1-1.229-.86l3.155-4.506a.75.75 0 0 1 1.045-.184z"/></svg>',n.keystroke=NC,n.tooltip=!0,n.isToggleable=!0,n.bind("isEnabled").to(t,"isEnabled"),n.bind("isOn").to(t,"value",e=>!!e),this.listenTo(n,"execute",()=>this._showUI(!0)),n})}_enableBalloonActivators(){const e=this.editor,t=e.editing.view.document;this.listenTo(t,"click",()=>{this._getSelectedLinkElement()&&this._showUI()}),e.keystrokes.set(NC,(t,o)=>{o(),e.commands.get("link").isEnabled&&this._showUI(!0)})}_enableUserBalloonInteractions(){this.editor.keystrokes.set("Tab",(e,t)=>{this._areActionsVisible&&!this.actionsView.focusTracker.isFocused&&(this.actionsView.focus(),t())},{priority:"high"}),this.editor.keystrokes.set("Esc",(e,t)=>{this._isUIVisible&&(this._hideUI(),t())}),o({emitter:this.formView,activator:()=>this._isUIInPanel,contextElements:()=>[this._balloon.view.element],callback:()=>this._hideUI()})}_addActionsView(){this.actionsView||this._createViews(),this._areActionsInPanel||this._balloon.add({view:this.actionsView,position:this._getBalloonPositionData()})}_addFormView(){if(this.formView||this._createViews(),this._isFormInPanel)return;const e=this.editor.commands.get("link");this.formView.disableCssTransitions(),this._balloon.add({view:this.formView,position:this._getBalloonPositionData()}),this._balloon.visibleView===this.formView&&this.formView.urlInputView.fieldView.select(),this.formView.enableCssTransitions(),this.formView.urlInputView.fieldView.element.value=e.value||""}_closeFormView(){const e=this.editor.commands.get("link");e.restoreManualDecoratorStates(),void 0!==e.value?this._removeFormView():this._hideUI()}_removeFormView(){this._isFormInPanel&&(this.formView.saveButtonView.focus(),this._balloon.remove(this.formView),this.editor.editing.view.focus(),this._hideFakeVisualSelection())}_showUI(e=!1){this.formView||this._createViews(),this._getSelectedLinkElement()?(this._areActionsVisible?this._addFormView():this._addActionsView(),e&&this._balloon.showStack("main")):(this._showFakeVisualSelection(),this._addActionsView(),e&&this._balloon.showStack("main"),this._addFormView()),this._startUpdatingUI()}_hideUI(){if(!this._isUIInPanel)return;const e=this.editor;this.stopListening(e.ui,"update"),this.stopListening(this._balloon,"change:visibleView"),e.editing.view.focus(),this._removeFormView(),this._balloon.remove(this.actionsView),this._hideFakeVisualSelection()}_startUpdatingUI(){const e=this.editor,t=e.editing.view.document;let o=this._getSelectedLinkElement(),n=r();const a=()=>{const e=this._getSelectedLinkElement(),t=r();o&&!e||!o&&t!==n?this._hideUI():this._isUIVisible&&this._balloon.updatePosition(this._getBalloonPositionData()),o=e,n=t};function r(){return t.selection.focus.getAncestors().reverse().find(e=>e.is("element"))}this.listenTo(e.ui,"update",a),this.listenTo(this._balloon,"change:visibleView",a)}get _isFormInPanel(){return this._balloon.hasView(this.formView)}get _areActionsInPanel(){return this._balloon.hasView(this.actionsView)}get _areActionsVisible(){return this._balloon.visibleView===this.actionsView}get _isUIInPanel(){return this._isFormInPanel||this._areActionsInPanel}get _isUIVisible(){return this._balloon.visibleView==this.formView||this._areActionsVisible}_getBalloonPositionData(){const e=this.editor.editing.view,t=this.editor.model,o=e.document;let n=null;if(t.markers.has(XC)){const t=Array.from(this.editor.editing.mapper.markerNameToElements(XC)),o=e.createRange(e.createPositionBefore(t[0]),e.createPositionAfter(t[t.length-1]));n=e.domConverter.viewRangeToDom(o)}else n=()=>{const t=this._getSelectedLinkElement();return t?e.domConverter.mapViewToDom(t):e.domConverter.viewRangeToDom(o.selection.getFirstRange())};return{target:n}}_getSelectedLinkElement(){const e=this.editor.editing.view,t=e.document.selection,o=t.getSelectedElement();if(t.isCollapsed||o&&Df(o))return ty(t.getFirstPosition());{const o=t.getFirstRange().getTrimmed(),n=ty(o.start),a=ty(o.end);return n&&n==a&&e.createRangeIn(n).getTrimmed().isEqual(o)?n:null}}_showFakeVisualSelection(){const e=this.editor.model;e.change(t=>{const o=e.document.selection.getFirstRange();if(e.markers.has(XC))t.updateMarker(XC,{range:o});else if(o.start.isAtEnd){const n=o.start.getLastMatchingPosition(({item:t})=>!e.schema.isContent(t),{boundaries:o});t.addMarker(XC,{usingOperation:!1,affectsData:!1,range:t.createRange(n,o.end)})}else t.addMarker(XC,{usingOperation:!1,affectsData:!1,range:o})})}_hideFakeVisualSelection(){const e=this.editor.model;e.markers.has(XC)&&e.change(e=>{e.removeMarker(XC)})}}function ty(e){return e.getAncestors().find(e=>{return(t=e).is("attributeElement")&&!!t.getCustomProperty("link");var t})}const oy=4,ny=new RegExp("(^|\\s)(((?:(?:(?:https?|ftp):)?\\/\\/)(?:\\S+(?::\\S*)?@)?(?:(?:[1-9]\\d?|1\\d\\d|2[01]\\d|22[0-3])(?:\\.(?:1?\\d{1,2}|2[0-4]\\d|25[0-5])){2}(?:\\.(?:[1-9]\\d?|1\\d\\d|2[0-4]\\d|25[0-4]))|(((?!www\\.)|(www\\.))(?![-_])(?:[-_a-z0-9\\u00a1-\\uffff]{1,63}\\.)+(?:[a-z\\u00a1-\\uffff]{2,63})))(?::\\d{2,5})?(?:[/?#]\\S*)?)|((www.|(\\S+@))((?![-_])(?:[-_a-z0-9\\u00a1-\\uffff]{1,63}\\.))+(?:[a-z\\u00a1-\\uffff]{2,63})))$","i"),ay=2;class ry extends Di{static get requires(){return[Gb]}static get pluginName(){return"AutoLink"}init(){const e=this.editor.model.document.selection;e.on("change:range",()=>{this.isEnabled=!e.anchor.parent.is("element","codeBlock")}),this._enableTypingHandling()}afterInit(){this._enableEnterHandling(),this._enableShiftEnterHandling()}_enableTypingHandling(){const e=this.editor,t=new Qb(e.model,e=>{if(!function(e){return e.length>oy&&" "===e[e.length-1]&&" "!==e[e.length-2]}(e))return;const t=iy(e.substr(0,e.length-1));return t?{url:t}:void 0});t.on("matched:data",(t,o)=>{const{batch:n,range:a,url:r}=o;if(!n.isTyping)return;const i=a.end.getShiftedBy(-1),l=i.getShiftedBy(-r.length),s=e.model.createRange(l,i);this._applyAutoLink(r,s)}),t.bind("isEnabled").to(this)}_enableEnterHandling(){const e=this.editor,t=e.model,o=e.commands.get("enter");o&&o.on("execute",()=>{const e=t.document.selection.getFirstPosition();if(!e.parent.previousSibling)return;const o=t.createRangeIn(e.parent.previousSibling);this._checkAndApplyAutoLinkOnRange(o)})}_enableShiftEnterHandling(){const e=this.editor,t=e.model,o=e.commands.get("shiftEnter");o&&o.on("execute",()=>{const e=t.document.selection.getFirstPosition(),o=t.createRange(t.createPositionAt(e.parent,0),e.getShiftedBy(-1));this._checkAndApplyAutoLinkOnRange(o)})}_checkAndApplyAutoLinkOnRange(e){const t=this.editor.model,{text:o,range:n}=Yb(e,t),a=iy(o);if(a){const e=t.createRange(n.end.getShiftedBy(-a.length),n.end);this._applyAutoLink(a,e)}}_applyAutoLink(e,t){const o=this.editor.model,n=SC(e,this.editor.config.get("link.defaultProtocol"));this.isEnabled&&function(e,t){return t.schema.checkAttributeInSelection(t.createSelection(e),"linkHref")}(t,o)&&BC(n)&&!function(e){const t=e.start.nodeAfter;return t&&t.hasAttribute("linkHref")}(t)&&this._persistAutoLink(n,t)}_persistAutoLink(e,t){const o=this.editor.model,n=this.editor.plugins.get("Delete");o.enqueueChange(a=>{a.setAttribute("linkHref",e,t),o.enqueueChange(()=>{n.requestUndoOnBackspace()})})}}function iy(e){const t=ny.exec(e);return t?t[ay]:null}class ly extends Ti{constructor(e,t){super(e),this.type=t}refresh(){this.value=this._getValue(),this.isEnabled=this._checkEnabled()}execute(e={}){const t=this.editor.model,o=t.document,n=Array.from(o.selection.getSelectedBlocks()).filter(e=>cy(e,t.schema)),a=void 0!==e.forceValue?!e.forceValue:this.value;t.change(e=>{if(a){let t=n[n.length-1].nextSibling,o=Number.POSITIVE_INFINITY,a=[];for(;t&&"listItem"==t.name&&0!==t.getAttribute("listIndent");){const e=t.getAttribute("listIndent");e<o&&(o=e);const n=e-o;a.push({element:t,listIndent:n}),t=t.nextSibling}a=a.reverse();for(const n of a)e.setAttribute("listIndent",n.listIndent,n.element)}if(!a){let e=Number.POSITIVE_INFINITY;for(const t of n)t.is("element","listItem")&&t.getAttribute("listIndent")<e&&(e=t.getAttribute("listIndent"));e=0===e?1:e,sy(n,!0,e),sy(n,!1,e)}for(const t of n.reverse())a&&"listItem"==t.name?e.rename(t,"paragraph"):a||"listItem"==t.name?a||"listItem"!=t.name||t.getAttribute("listType")==this.type||e.setAttribute("listType",this.type,t):(e.setAttributes({listType:this.type,listIndent:0},t),e.rename(t,"listItem"));this.fire("_executeCleanup",n)})}_getValue(){const e=fr(this.editor.model.document.selection.getSelectedBlocks());return!!e&&e.is("element","listItem")&&e.getAttribute("listType")==this.type}_checkEnabled(){if(this.value)return!0;const e=this.editor.model.document.selection,t=this.editor.model.schema,o=fr(e.getSelectedBlocks());return!!o&&cy(o,t)}}function sy(e,t,o){const n=t?e[0]:e[e.length-1];if(n.is("element","listItem")){let a=n[t?"previousSibling":"nextSibling"],r=n.getAttribute("listIndent");for(;a&&a.is("element","listItem")&&a.getAttribute("listIndent")>=o;)r>a.getAttribute("listIndent")&&(r=a.getAttribute("listIndent")),a.getAttribute("listIndent")==r&&e[t?"unshift":"push"](a),a=a[t?"previousSibling":"nextSibling"]}}function cy(e,t){return t.checkChild(e.parent,"listItem")&&!t.isObject(e)}class dy extends Ti{constructor(e,t){super(e),this._indentBy="forward"==t?1:-1}refresh(){this.isEnabled=this._checkEnabled()}execute(){const e=this.editor.model,t=e.document;let o=Array.from(t.selection.getSelectedBlocks());e.change(e=>{const t=o[o.length-1];let n=t.nextSibling;for(;n&&"listItem"==n.name&&n.getAttribute("listIndent")>t.getAttribute("listIndent");)o.push(n),n=n.nextSibling;this._indentBy<0&&(o=o.reverse());for(const a of o){const t=a.getAttribute("listIndent")+this._indentBy;t<0?e.rename(a,"paragraph"):e.setAttribute("listIndent",t,a)}this.fire("_executeCleanup",o)})}_checkEnabled(){const e=fr(this.editor.model.document.selection.getSelectedBlocks());if(!e||!e.is("element","listItem"))return!1;if(this._indentBy>0){const t=e.getAttribute("listIndent"),o=e.getAttribute("listType");let n=e.previousSibling;for(;n&&n.is("element","listItem")&&n.getAttribute("listIndent")>=t;){if(n.getAttribute("listIndent")==t)return n.getAttribute("listType")==o;n=n.previousSibling}return!1}return!0}}function uy(e,t){const o=t.mapper,n=t.writer,a="numbered"==e.getAttribute("listType")?"ol":"ul",r=function(e){const t=e.createContainerElement("li");return t.getFillerOffset=ky,t}(n),i=n.createContainerElement(a,null);return n.insert(n.createPositionAt(i,0),r),o.bindElements(e,r),r}function my(e,t,o,n){const a=t.parent,r=o.mapper,i=o.writer;let l=r.toViewPosition(n.createPositionBefore(e));const s=by(e.previousSibling,{sameIndent:!0,smallerIndent:!0,listIndent:e.getAttribute("listIndent")}),c=e.previousSibling;if(s&&s.getAttribute("listIndent")==e.getAttribute("listIndent")){const e=r.toViewElement(s);l=i.breakContainer(i.createPositionAfter(e))}else if(c&&"listItem"==c.name){l=r.toViewPosition(n.createPositionAt(c,"end"));const e=r.findMappedViewAncestor(l),t=function(e){for(const t of e.getChildren())if("ul"==t.name||"ol"==t.name)return t;return null}(e);l=t?i.createPositionBefore(t):i.createPositionAt(e,"end")}else l=r.toViewPosition(n.createPositionBefore(e));if(l=py(l),i.insert(l,a),c&&"listItem"==c.name){const e=r.toViewElement(c),o=i.createRange(i.createPositionAt(e,0),l).getWalker({ignoreElementEnd:!0});for(const n of o)if(n.item.is("element","li")){const e=i.breakContainer(i.createPositionBefore(n.item)),a=n.item.parent,r=i.createPositionAt(t,"end");hy(i,r.nodeBefore,r.nodeAfter),i.move(i.createRangeOn(a),r),o.position=e}}else{const o=a.nextSibling;if(o&&(o.is("element","ul")||o.is("element","ol"))){let n=null;for(const t of o.getChildren()){const o=r.toModelElement(t);if(!(o&&o.getAttribute("listIndent")>e.getAttribute("listIndent")))break;n=t}n&&(i.breakContainer(i.createPositionAfter(n)),i.move(i.createRangeOn(n.parent),i.createPositionAt(t,"end")))}}hy(i,a,a.nextSibling),hy(i,a.previousSibling,a)}function hy(e,t,o){return!t||!o||"ul"!=t.name&&"ol"!=t.name||t.name!=o.name||t.getAttribute("class")!==o.getAttribute("class")?null:e.mergeContainers(e.createPositionAfter(t))}function py(e){return e.getLastMatchingPosition(e=>e.item.is("uiElement"))}function by(e,t){const o=!!t.sameIndent,n=!!t.smallerIndent,a=t.listIndent;let r=e;for(;r&&"listItem"==r.name;){const e=r.getAttribute("listIndent");if(o&&a==e||n&&a>e)return r;r="forward"===t.direction?r.nextSibling:r.previousSibling}return null}function gy(e,t,o,n){e.ui.componentFactory.add(t,a=>{const r=e.commands.get(t),i=new ri(a);return i.set({label:o,icon:n,tooltip:!0,isToggleable:!0}),i.bind("isOn","isEnabled").to(r,"value","isEnabled"),i.on("execute",()=>{e.execute(t),e.editing.view.focus()}),i})}function fy(e,t){const o=[],n=e.parent,a={ignoreElementEnd:!1,startPosition:e,shallow:!0,direction:t},r=n.getAttribute("listIndent"),i=[...new qd(a)].filter(e=>e.item.is("element")).map(e=>e.item);for(const l of i){if(!l.is("element","listItem"))break;if(l.getAttribute("listIndent")<r)break;if(!(l.getAttribute("listIndent")>r)){if(l.getAttribute("listType")!==n.getAttribute("listType"))break;if(l.getAttribute("listStyle")!==n.getAttribute("listStyle"))break;if(l.getAttribute("listReversed")!==n.getAttribute("listReversed"))break;if(l.getAttribute("listStart")!==n.getAttribute("listStart"))break;"backward"===t?o.unshift(l):o.push(l)}}return o}const vy=["disc","circle","square"],wy=["decimal","decimal-leading-zero","lower-roman","upper-roman","lower-latin","upper-latin"];function ky(){const e=!this.isEmpty&&("ul"==this.getChild(0).name||"ol"==this.getChild(0).name);return this.isEmpty||e?0:ls.call(this)}class Cy extends Di{static get pluginName(){return"ListUtils"}getListTypeFromListStyleType(e){return function(e){return vy.includes(e)?"bulleted":wy.includes(e)?"numbered":null}(e)}getSelectedListItems(e){return function(e){let t=[...e.document.selection.getSelectedBlocks()].filter(e=>e.is("element","listItem")).map(t=>{const o=e.change(e=>e.createPositionAt(t,0));return[...fy(o,"backward"),...fy(o,"forward")]}).flat();return t=[...new Set(t)],t}(e)}getSiblingNodes(e,t){return fy(e,t)}}function yy(e){return(t,o,n)=>{const a=n.consumable;if(!a.test(o.item,"insert")||!a.test(o.item,"attribute:listType")||!a.test(o.item,"attribute:listIndent"))return;a.consume(o.item,"insert"),a.consume(o.item,"attribute:listType"),a.consume(o.item,"attribute:listIndent");const r=o.item;my(r,uy(r,n),n,e)}}const Oy=(e,t,o)=>{if(!o.consumable.test(t.item,e.name))return;const n=o.mapper.toViewElement(t.item),a=o.writer;a.breakContainer(a.createPositionBefore(n)),a.breakContainer(a.createPositionAfter(n));const r=n.parent,i="numbered"==t.attributeNewValue?"ol":"ul";a.rename(i,r)},jy=(e,t,o)=>{o.consumable.consume(t.item,e.name);const n=o.mapper.toViewElement(t.item).parent,a=o.writer;hy(a,n,n.nextSibling),hy(a,n.previousSibling,n)},xy=(e,t,o)=>{if(o.consumable.test(t.item,e.name)&&"listItem"!=t.item.name){let e=o.mapper.toViewPosition(t.range.start);const n=o.writer,a=[];for(;("ul"==e.parent.name||"ol"==e.parent.name)&&(e=n.breakContainer(e),"li"==e.parent.name);){const t=e,o=n.createPositionAt(e.parent,"end");if(!t.isEqual(o)){const e=n.remove(n.createRange(t,o));a.push(e)}e=n.createPositionAfter(e.parent)}if(a.length>0){for(let t=0;t<a.length;t++){const o=e.nodeBefore;if(e=n.insert(e,a[t]).end,t>0){const t=hy(n,o,o.nextSibling);t&&t.parent==o&&e.offset--}}hy(n,e.nodeBefore,e.nodeAfter)}}},_y=(e,t,o)=>{const n=o.mapper.toViewPosition(t.position),a=n.nodeBefore,r=n.nodeAfter;hy(o.writer,a,r)},Vy=(e,t,o)=>{if(o.consumable.consume(t.viewItem,{name:!0})){const e=o.writer,n=e.createElement("listItem"),a=function(e){let t=0,o=e.parent;for(;o;){if(o.is("element","li"))t++;else{const e=o.previousSibling;e&&e.is("element","li")&&t++}o=o.parent}return t}(t.viewItem);e.setAttribute("listIndent",a,n);const r=t.viewItem.parent&&"ol"==t.viewItem.parent.name?"numbered":"bulleted";if(e.setAttribute("listType",r,n),!o.safeInsert(n,t.modelCursor))return;const i=function(e,t,o){const{writer:n,schema:a}=o;let r=n.createPositionAfter(e);for(const i of t)if("ul"==i.name||"ol"==i.name)r=o.convertItem(i,r).modelCursor;else{const t=o.convertItem(i,n.createPositionAt(e,"end")),l=t.modelRange.start.nodeAfter;l&&l.is("element")&&!a.checkChild(e,l.name)&&(e=t.modelCursor.parent.is("element","listItem")?t.modelCursor.parent:Ty(t.modelCursor),r=n.createPositionAfter(e))}return r}(n,t.viewItem.getChildren(),o);t.modelRange=e.createRange(t.modelCursor,i),o.updateConversionResult(n,t)}},Ay=(e,t,o)=>{if(o.consumable.test(t.viewItem,{name:!0})){const e=Array.from(t.viewItem.getChildren());for(const t of e)!t.is("element","li")&&!By(t)&&t._remove()}},Ny=(e,t,o)=>{if(o.consumable.test(t.viewItem,{name:!0})){if(0===t.viewItem.childCount)return;const e=[...t.viewItem.getChildren()];let o=!1;for(const t of e)o&&!By(t)&&t._remove(),By(t)&&(o=!0)}};function Dy(e){return(t,o)=>{if(o.isPhantom)return;const n=o.modelPosition.nodeBefore;if(n&&n.is("element","listItem")){const t=o.mapper.toViewElement(n),a=t.getAncestors().find(By),r=e.createPositionAt(t,0).getWalker();for(const e of r){if("elementStart"==e.type&&e.item.is("element","li")){o.viewPosition=e.previousPosition;break}if("elementEnd"==e.type&&e.item==a){o.viewPosition=e.nextPosition;break}}}}}const Ey=function(e,[t,o,n]){const a=this;let r,i=t.is("documentFragment")?t.getChild(0):t;if(r=o?a.createSelection(o,n):a.document.selection,i&&i.is("element","listItem")){const e=r.getFirstPosition();let t=null;if(e.parent.is("element","listItem")?t=e.parent:e.nodeBefore&&e.nodeBefore.is("element","listItem")&&(t=e.nodeBefore),t){const e=t.getAttribute("listIndent");if(e>0)for(;i&&i.is("element","listItem");)i._setAttribute("listIndent",i.getAttribute("listIndent")+e),i=i.nextSibling}}};function Ty(e){const t=new qd({startPosition:e});let o;do{o=t.next()}while(!o.value.item.is("element","listItem"));return o.value.item}function Sy(e,t,o,n,a,r){const i=by(t.nodeBefore,{sameIndent:!0,smallerIndent:!0,listIndent:e}),l=a.mapper,s=a.writer,c=i?i.getAttribute("listIndent"):null;let d;if(i)if(c==e){const e=l.toViewElement(i).parent;d=s.createPositionAfter(e)}else{const e=r.createPositionAt(i,"end");d=l.toViewPosition(e)}else d=o;d=py(d);for(const u of[...n.getChildren()])By(u)&&(d=s.move(s.createRangeOn(u),d).end,hy(s,u,u.nextSibling),hy(s,u.previousSibling,u))}function By(e){return e.is("element","ol")||e.is("element","ul")}var Iy=r(9989),zy={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};Ar()(Iy.Z,zy),Iy.Z.locals;class Fy extends Di{static get pluginName(){return"ListEditing"}static get requires(){return[Og,Gb,Cy]}init(){const e=this.editor;e.model.schema.register("listItem",{inheritAllFrom:"$block",allowAttributes:["listType","listIndent"]});const t=e.data,o=e.editing;var n;e.model.document.registerPostFixer(t=>function(e,t){const o=e.document.differ.getChanges(),n=new Map;let a=!1;for(const s of o)if("insert"==s.type&&"listItem"==s.name)r(s.position);else if("insert"==s.type&&"listItem"!=s.name){if("$text"!=s.name){const o=s.position.nodeAfter;o.hasAttribute("listIndent")&&(t.removeAttribute("listIndent",o),a=!0),o.hasAttribute("listType")&&(t.removeAttribute("listType",o),a=!0),o.hasAttribute("listStyle")&&(t.removeAttribute("listStyle",o),a=!0),o.hasAttribute("listReversed")&&(t.removeAttribute("listReversed",o),a=!0),o.hasAttribute("listStart")&&(t.removeAttribute("listStart",o),a=!0);for(const t of Array.from(e.createRangeIn(o)).filter(e=>e.item.is("element","listItem")))r(t.previousPosition)}r(s.position.getShiftedBy(s.length))}else"remove"==s.type&&"listItem"==s.name?r(s.position):("attribute"==s.type&&"listIndent"==s.attributeKey||"attribute"==s.type&&"listType"==s.attributeKey)&&r(s.range.start);for(const s of n.values())i(s),l(s);return a;function r(e){const t=e.nodeBefore;if(t&&t.is("element","listItem")){let e=t;if(n.has(e))return;for(let t=e.previousSibling;t&&t.is("element","listItem");t=e.previousSibling)if(e=t,n.has(e))return;n.set(t,e)}else{const t=e.nodeAfter;t&&t.is("element","listItem")&&n.set(t,t)}}function i(e){let o=0,n=null;for(;e&&e.is("element","listItem");){const r=e.getAttribute("listIndent");if(r>o){let i;null===n?(n=r-o,i=o):(n>r&&(n=r),i=r-n),t.setAttribute("listIndent",i,e),a=!0}else n=null,o=e.getAttribute("listIndent")+1;e=e.nextSibling}}function l(e){let o=[],n=null;for(;e&&e.is("element","listItem");){const r=e.getAttribute("listIndent");if(n&&n.getAttribute("listIndent")>r&&(o=o.slice(0,r+1)),0!=r)if(o[r]){const n=o[r];e.getAttribute("listType")!=n&&(t.setAttribute("listType",n,e),a=!0)}else o[r]=e.getAttribute("listType");n=e,e=e.nextSibling}}}(e.model,t)),o.mapper.registerViewToModelLength("li",My),t.mapper.registerViewToModelLength("li",My),o.mapper.on("modelToViewPosition",Dy(o.view)),o.mapper.on("viewToModelPosition",(n=e.model,(e,t)=>{const o=t.viewPosition,a=o.parent,r=t.mapper;if("ul"==a.name||"ol"==a.name){if(o.isAtEnd){const e=r.toModelElement(o.nodeBefore),a=r.getModelLength(o.nodeBefore);t.modelPosition=n.createPositionBefore(e).getShiftedBy(a)}else{const e=r.toModelElement(o.nodeAfter);t.modelPosition=n.createPositionBefore(e)}e.stop()}else if("li"==a.name&&o.nodeBefore&&("ul"==o.nodeBefore.name||"ol"==o.nodeBefore.name)){const i=r.toModelElement(a);let l=1,s=o.nodeBefore;for(;s&&By(s);)l+=r.getModelLength(s),s=s.previousSibling;t.modelPosition=n.createPositionBefore(i).getShiftedBy(l),e.stop()}})),t.mapper.on("modelToViewPosition",Dy(o.view)),e.conversion.for("editingDowncast").add(t=>{t.on("insert",xy,{priority:"high"}),t.on("insert:listItem",yy(e.model)),t.on("attribute:listType:listItem",Oy,{priority:"high"}),t.on("attribute:listType:listItem",jy,{priority:"low"}),t.on("attribute:listIndent:listItem",function(e){return(t,o,n)=>{if(!n.consumable.consume(o.item,"attribute:listIndent"))return;const a=n.mapper.toViewElement(o.item),r=n.writer;r.breakContainer(r.createPositionBefore(a)),r.breakContainer(r.createPositionAfter(a));const i=a.parent,l=i.previousSibling,s=r.createRangeOn(i);r.remove(s),l&&l.nextSibling&&hy(r,l,l.nextSibling),Sy(o.attributeOldValue+1,o.range.start,s.start,a,n,e),my(o.item,a,n,e);for(const e of o.item.getChildren())n.consumable.consume(e,"insert")}}(e.model)),t.on("remove:listItem",function(e){return(t,o,n)=>{const a=n.mapper.toViewPosition(o.position).getLastMatchingPosition(e=>!e.item.is("element","li")).nodeAfter,r=n.writer;r.breakContainer(r.createPositionBefore(a)),r.breakContainer(r.createPositionAfter(a));const i=a.parent,l=i.previousSibling,s=r.createRangeOn(i),c=r.remove(s);l&&l.nextSibling&&hy(r,l,l.nextSibling),Sy(n.mapper.toModelElement(a).getAttribute("listIndent")+1,o.position,s.start,a,n,e);for(const e of r.createRangeIn(c).getItems())n.mapper.unbindViewElement(e);t.stop()}}(e.model)),t.on("remove",_y,{priority:"low"})}),e.conversion.for("dataDowncast").add(t=>{t.on("insert",xy,{priority:"high"}),t.on("insert:listItem",yy(e.model))}),e.conversion.for("upcast").add(e=>{e.on("element:ul",Ay,{priority:"high"}),e.on("element:ol",Ay,{priority:"high"}),e.on("element:li",Ny,{priority:"high"}),e.on("element:li",Vy)}),e.model.on("insertContent",Ey,{priority:"high"}),e.commands.add("numberedList",new ly(e,"numbered")),e.commands.add("bulletedList",new ly(e,"bulleted")),e.commands.add("indentList",new dy(e,"forward")),e.commands.add("outdentList",new dy(e,"backward"));const a=o.view.document;this.listenTo(a,"enter",(e,t)=>{const o=this.editor.model.document,n=o.selection.getLastPosition().parent;o.selection.isCollapsed&&"listItem"==n.name&&n.isEmpty&&(this.editor.execute("outdentList"),t.preventDefault(),e.stop())},{context:"li"}),this.listenTo(a,"delete",(e,t)=>{if("backward"!==t.direction)return;const o=this.editor.model.document.selection;if(!o.isCollapsed)return;const n=o.getFirstPosition();if(!n.isAtStart)return;const a=n.parent;"listItem"===a.name&&(a.previousSibling&&"listItem"===a.previousSibling.name||(this.editor.execute("outdentList"),t.preventDefault(),e.stop()))},{context:"li"}),this.listenTo(e.editing.view.document,"tab",(t,o)=>{const n=o.shiftKey?"outdentList":"indentList";this.editor.commands.get(n).isEnabled&&(e.execute(n),o.stopPropagation(),o.preventDefault(),t.stop())},{context:"li"})}afterInit(){const e=this.editor.commands,t=e.get("indent"),o=e.get("outdent");t&&t.registerChildCommand(e.get("indentList")),o&&o.registerChildCommand(e.get("outdentList"))}}function My(e){let t=1;for(const o of e.getChildren())if("ul"==o.name||"ol"==o.name)for(const e of o.getChildren())t+=My(e);return t}class Ly extends Di{static get pluginName(){return"ListUI"}init(){const e=this.editor.t;gy(this.editor,"numberedList",e("Numbered List"),'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M7 5.75c0 .414.336.75.75.75h9.5a.75.75 0 1 0 0-1.5h-9.5a.75.75 0 0 0-.75.75zM3.5 3v5H2V3.7H1v-1h2.5V3zM.343 17.857l2.59-3.257H2.92a.6.6 0 1 0-1.04 0H.302a2 2 0 1 1 3.995 0h-.001c-.048.405-.16.734-.333.988-.175.254-.59.692-1.244 1.312H4.3v1h-4l.043-.043zM7 14.75a.75.75 0 0 1 .75-.75h9.5a.75.75 0 1 1 0 1.5h-9.5a.75.75 0 0 1-.75-.75z"/></svg>'),gy(this.editor,"bulletedList",e("Bulleted List"),'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M7 5.75c0 .414.336.75.75.75h9.5a.75.75 0 1 0 0-1.5h-9.5a.75.75 0 0 0-.75.75zm-6 0C1 4.784 1.777 4 2.75 4c.966 0 1.75.777 1.75 1.75 0 .966-.777 1.75-1.75 1.75C1.784 7.5 1 6.723 1 5.75zm6 9c0 .414.336.75.75.75h9.5a.75.75 0 1 0 0-1.5h-9.5a.75.75 0 0 0-.75.75zm-6 0c0-.966.777-1.75 1.75-1.75.966 0 1.75.777 1.75 1.75 0 .966-.777 1.75-1.75 1.75-.966 0-1.75-.777-1.75-1.75z"/></svg>')}}function Py(e,t){return e=>{e.on("attribute:url:media",o)};function o(o,n,a){if(!a.consumable.consume(n.item,o.name))return;const r=n.attributeNewValue,i=a.writer,l=a.mapper.toViewElement(n.item),s=[...l.getChildren()].find(e=>e.getCustomProperty("media-content"));i.remove(s);const c=e.getMediaViewElement(i,r,t);i.insert(i.createPositionAt(l,0),c)}}function Ry(e,t,o,n){return e.createContainerElement("figure",{class:"media"},[t.getMediaViewElement(e,o,n),e.createSlot()])}function qy(e){const t=e.getSelectedElement();return t&&t.is("element","media")?t:null}function $y(e,t,o,n){e.change(a=>{const r=a.createElement("media",{url:t});e.insertObject(r,o,null,{setSelection:"on",findOptimalPosition:n})})}class Uy extends Ti{refresh(){const e=this.editor.model,t=e.document.selection,o=qy(t);this.value=o?o.getAttribute("url"):null,this.isEnabled=function(e){const t=e.getSelectedElement();return!!t&&"media"===t.name}(t)||function(e,t){const o=zf(e,t);let n=o.start.parent;return n.isEmpty&&!t.schema.isLimit(n)&&(n=n.parent),t.schema.checkChild(n,"media")}(t,e)}execute(e){const t=this.editor.model,o=t.document.selection,n=qy(o);n?t.change(t=>{t.setAttribute("url",e,n)}):$y(t,e,o,!0)}}class Hy{constructor(e,t){const o=t.providers,n=t.extraProviders||[],a=new Set(t.removeProviders),r=o.concat(n).filter(e=>{const t=e.name;return t?!a.has(t):(_("media-embed-no-provider-name",{provider:e}),!1)});this.locale=e,this.providerDefinitions=r}hasMedia(e){return!!this._getMedia(e)}getMediaViewElement(e,t,o){return this._getMedia(t).getViewElement(e,o)}_getMedia(e){if(!e)return new Wy(this.locale);e=e.trim();for(const t of this.providerDefinitions){const o=t.html,n=ur(t.url);for(const t of n){const n=this._getUrlMatches(e,t);if(n)return new Wy(this.locale,e,n,o)}}return null}_getUrlMatches(e,t){let o=e.match(t);if(o)return o;let n=e.replace(/^https?:\/\//,"");return o=n.match(t),o||(n=n.replace(/^www\./,""),o=n.match(t),o||null)}}class Wy{constructor(e,t,o,n){this.url=this._getValidUrl(t),this._locale=e,this._match=o,this._previewRenderer=n}getViewElement(e,t){const o={};let n;if(t.renderForEditingView||t.renderMediaPreview&&this.url&&this._previewRenderer){this.url&&(o["data-oembed-url"]=this.url),t.renderForEditingView&&(o.class="ck-media__wrapper");const a=this._getPreviewHtml(t);n=e.createRawElement("div",o,(e,t)=>{t.setContentOf(e,a)})}else this.url&&(o.url=this.url),n=e.createEmptyElement(t.elementName,o);return e.setCustomProperty("media-content",!0,n),n}_getPreviewHtml(e){return this._previewRenderer?this._previewRenderer(this._match):this.url&&e.renderForEditingView?this._getPlaceholderHtml():""}_getPlaceholderHtml(){const e=new oi,t=this._locale.t;return e.content='<svg viewBox="0 0 64 42" xmlns="http://www.w3.org/2000/svg"><path d="M47.426 17V3.713L63.102 0v19.389h-.001l.001.272c0 1.595-2.032 3.43-4.538 4.098-2.506.668-4.538-.083-4.538-1.678 0-1.594 2.032-3.43 4.538-4.098.914-.244 2.032-.565 2.888-.603V4.516L49.076 7.447v9.556A1.014 1.014 0 0 0 49 17h-1.574zM29.5 17h-8.343a7.073 7.073 0 1 0-4.657 4.06v3.781H3.3a2.803 2.803 0 0 1-2.8-2.804V8.63a2.803 2.803 0 0 1 2.8-2.805h4.082L8.58 2.768A1.994 1.994 0 0 1 10.435 1.5h8.985c.773 0 1.477.448 1.805 1.149l1.488 3.177H26.7c1.546 0 2.8 1.256 2.8 2.805V17zm-11.637 0H17.5a1 1 0 0 0-1 1v.05A4.244 4.244 0 1 1 17.863 17zm29.684 2c.97 0 .953-.048.953.889v20.743c0 .953.016.905-.953.905H19.453c-.97 0-.953.048-.953-.905V19.89c0-.937-.016-.889.97-.889h28.077zm-4.701 19.338V22.183H24.154v16.155h18.692zM20.6 21.375v1.616h1.616v-1.616H20.6zm0 3.231v1.616h1.616v-1.616H20.6zm0 3.231v1.616h1.616v-1.616H20.6zm0 3.231v1.616h1.616v-1.616H20.6zm0 3.231v1.616h1.616v-1.616H20.6zm0 3.231v1.616h1.616V37.53H20.6zm24.233-16.155v1.616h1.615v-1.616h-1.615zm0 3.231v1.616h1.615v-1.616h-1.615zm0 3.231v1.616h1.615v-1.616h-1.615zm0 3.231v1.616h1.615v-1.616h-1.615zm0 3.231v1.616h1.615v-1.616h-1.615zm0 3.231v1.616h1.615V37.53h-1.615zM29.485 25.283a.4.4 0 0 1 .593-.35l9.05 4.977a.4.4 0 0 1 0 .701l-9.05 4.978a.4.4 0 0 1-.593-.35v-9.956z"/></svg>',e.viewBox="0 0 64 42",new Tr({tag:"div",attributes:{class:"ck ck-reset_all ck-media__placeholder"},children:[{tag:"div",attributes:{class:"ck-media__placeholder__icon"},children:[e]},{tag:"a",attributes:{class:"ck-media__placeholder__url",target:"_blank",rel:"noopener noreferrer",href:this.url,"data-cke-tooltip-text":t("Open media in new tab")},children:[{tag:"span",attributes:{class:"ck-media__placeholder__url__text"},children:[this.url]}]}]}).render().outerHTML}_getValidUrl(e){return e?e.match(/^https?/)?e:"https://"+e:null}}var Gy=r(952),Ky={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};Ar()(Gy.Z,Ky),Gy.Z.locals;class Yy extends Di{static get pluginName(){return"MediaEmbedEditing"}constructor(e){super(e),e.config.define("mediaEmbed",{elementName:"oembed",providers:[{name:"dailymotion",url:/^dailymotion\.com\/video\/(\w+)/,html:e=>`<div style="position: relative; padding-bottom: 100%; height: 0; "><iframe src="https://www.dailymotion.com/embed/video/${e[1]}" style="position: absolute; width: 100%; height: 100%; top: 0; left: 0;" frameborder="0" width="480" height="270" allowfullscreen allow="autoplay"></iframe></div>`},{name:"spotify",url:[/^open\.spotify\.com\/(artist\/\w+)/,/^open\.spotify\.com\/(album\/\w+)/,/^open\.spotify\.com\/(track\/\w+)/],html:e=>`<div style="position: relative; padding-bottom: 100%; height: 0; padding-bottom: 126%;"><iframe src="https://open.spotify.com/embed/${e[1]}" style="position: absolute; width: 100%; height: 100%; top: 0; left: 0;" frameborder="0" allowtransparency="true" allow="encrypted-media"></iframe></div>`},{name:"youtube",url:[/^(?:m\.)?youtube\.com\/watch\?v=([\w-]+)(?:&t=(\d+))?/,/^(?:m\.)?youtube\.com\/v\/([\w-]+)(?:\?t=(\d+))?/,/^youtube\.com\/embed\/([\w-]+)(?:\?start=(\d+))?/,/^youtu\.be\/([\w-]+)(?:\?t=(\d+))?/],html:e=>{const t=e[1],o=e[2];return`<div style="position: relative; padding-bottom: 100%; height: 0; padding-bottom: 56.2493%;"><iframe src="https://www.youtube.com/embed/${t}${o?"?start="+o:""}" style="position: absolute; width: 100%; height: 100%; top: 0; left: 0;" frameborder="0" allow="autoplay; encrypted-media" allowfullscreen></iframe></div>`}},{name:"vimeo",url:[/^vimeo\.com\/(\d+)/,/^vimeo\.com\/[^/]+\/[^/]+\/video\/(\d+)/,/^vimeo\.com\/album\/[^/]+\/video\/(\d+)/,/^vimeo\.com\/channels\/[^/]+\/(\d+)/,/^vimeo\.com\/groups\/[^/]+\/videos\/(\d+)/,/^vimeo\.com\/ondemand\/[^/]+\/(\d+)/,/^player\.vimeo\.com\/video\/(\d+)/],html:e=>`<div style="position: relative; padding-bottom: 100%; height: 0; padding-bottom: 56.2493%;"><iframe src="https://player.vimeo.com/video/${e[1]}" style="position: absolute; width: 100%; height: 100%; top: 0; left: 0;" frameborder="0" webkitallowfullscreen mozallowfullscreen allowfullscreen></iframe></div>`},{name:"instagram",url:/^instagram\.com\/p\/(\w+)/},{name:"twitter",url:/^twitter\.com/},{name:"googleMaps",url:[/^google\.com\/maps/,/^goo\.gl\/maps/,/^maps\.google\.com/,/^maps\.app\.goo\.gl/]},{name:"flickr",url:/^flickr\.com/},{name:"facebook",url:/^facebook\.com/}]}),this.registry=new Hy(e.locale,e.config.get("mediaEmbed"))}init(){const e=this.editor,t=e.model.schema,o=e.t,n=e.conversion,a=e.config.get("mediaEmbed.previewsInData"),r=e.config.get("mediaEmbed.elementName"),i=this.registry;e.commands.add("mediaEmbed",new Uy(e)),t.register("media",{inheritAllFrom:"$blockObject",allowAttributes:["url"]}),n.for("dataDowncast").elementToStructure({model:"media",view:(e,{writer:t})=>{const o=e.getAttribute("url");return Ry(t,i,o,{elementName:r,renderMediaPreview:o&&a})}}),n.for("dataDowncast").add(Py(i,{elementName:r,renderMediaPreview:a})),n.for("editingDowncast").elementToStructure({model:"media",view:(e,{writer:t})=>{const n=e.getAttribute("url");return function(e,t,o){return t.setCustomProperty("media",!0,e),Ef(e,t,{label:o})}(Ry(t,i,n,{elementName:r,renderForEditingView:!0}),t,o("media widget"))}}),n.for("editingDowncast").add(Py(i,{elementName:r,renderForEditingView:!0})),n.for("upcast").elementToElement({view:e=>["oembed",r].includes(e.name)&&e.getAttribute("url")?{name:!0}:null,model:(e,{writer:t})=>{const o=e.getAttribute("url");if(i.hasMedia(o))return t.createElement("media",{url:o})}}).elementToElement({view:{name:"div",attributes:{"data-oembed-url":!0}},model:(e,{writer:t})=>{const o=e.getAttribute("data-oembed-url");if(i.hasMedia(o))return t.createElement("media",{url:o})}}).add(e=>{e.on("element:figure",(function(e,t,o){if(!o.consumable.consume(t.viewItem,{name:!0,classes:"media"}))return;const{modelRange:n,modelCursor:a}=o.convertChildren(t.viewItem,t.modelCursor);t.modelRange=n,t.modelCursor=a,fr(n.getItems())||o.consumable.revert(t.viewItem,{name:!0,classes:"media"})}))})}}const Qy=/^(?:http(s)?:\/\/)?[\w-]+\.[\w-.~:/?#[\]@!$&'()*+,;=%]+$/;class Jy extends Di{static get requires(){return[bv,Gb,Ev]}static get pluginName(){return"AutoMediaEmbed"}constructor(e){super(e),this._timeoutId=null,this._positionToInsert=null}init(){const e=this.editor,t=e.model.document;this.listenTo(e.plugins.get("ClipboardPipeline"),"inputTransformation",()=>{const e=t.selection.getFirstRange(),o=Hm.fromPosition(e.start);o.stickiness="toPrevious";const n=Hm.fromPosition(e.end);n.stickiness="toNext",t.once("change:data",()=>{this._embedMediaBetweenPositions(o,n),o.detach(),n.detach()},{priority:"high"})}),e.commands.get("undo").on("execute",()=>{this._timeoutId&&(Va.window.clearTimeout(this._timeoutId),this._positionToInsert.detach(),this._timeoutId=null,this._positionToInsert=null)},{priority:"high"})}_embedMediaBetweenPositions(e,t){const o=this.editor,n=o.plugins.get(Yy).registry,a=new su(e,t),r=a.getWalker({ignoreElementEnd:!0});let i="";for(const l of r)l.item.is("$textProxy")&&(i+=l.item.data);i=i.trim(),i.match(Qy)&&n.hasMedia(i)&&o.commands.get("mediaEmbed").isEnabled?(this._positionToInsert=Hm.fromPosition(e),this._timeoutId=Va.window.setTimeout(()=>{o.model.change(e=>{let t;this._timeoutId=null,e.remove(a),a.detach(),"$graveyard"!==this._positionToInsert.root.rootName&&(t=this._positionToInsert),$y(o.model,i,t,!1),this._positionToInsert.detach(),this._positionToInsert=null}),o.plugins.get("Delete").requestUndoOnBackspace()},100)):a.detach()}}var Zy=r(3525),Xy={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};Ar()(Zy.Z,Xy),Zy.Z.locals;class eO extends Er{constructor(e,t){super(t);const o=t.t;this.focusTracker=new vr,this.keystrokes=new wr,this.set("mediaURLInputValue",""),this.urlInputView=this._createUrlInput(),this.saveButtonView=this._createButton(o("Save"),sp.check,"ck-button-save"),this.saveButtonView.type="submit",this.saveButtonView.bind("isEnabled").to(this,"mediaURLInputValue",e=>!!e),this.cancelButtonView=this._createButton(o("Cancel"),sp.cancel,"ck-button-cancel","cancel"),this._focusables=new _r,this._focusCycler=new xi({focusables:this._focusables,focusTracker:this.focusTracker,keystrokeHandler:this.keystrokes,actions:{focusPrevious:"shift + tab",focusNext:"tab"}}),this._validators=e,this.setTemplate({tag:"form",attributes:{class:["ck","ck-media-form","ck-responsive-form"],tabindex:"-1"},children:[this.urlInputView,this.saveButtonView,this.cancelButtonView]}),a(this)}render(){super.render(),l({view:this}),[this.urlInputView,this.saveButtonView,this.cancelButtonView].forEach(e=>{this._focusables.add(e),this.focusTracker.add(e.element)}),this.keystrokes.listenTo(this.element);const e=e=>e.stopPropagation();this.keystrokes.set("arrowright",e),this.keystrokes.set("arrowleft",e),this.keystrokes.set("arrowup",e),this.keystrokes.set("arrowdown",e),this.listenTo(this.urlInputView.element,"selectstart",(e,t)=>{t.stopPropagation()},{priority:"high"})}destroy(){super.destroy(),this.focusTracker.destroy(),this.keystrokes.destroy()}focus(){this._focusCycler.focusFirst()}get url(){return this.urlInputView.fieldView.element.value.trim()}set url(e){this.urlInputView.fieldView.element.value=e.trim()}isValid(){this.resetFormStatus();for(const e of this._validators){const t=e(this);if(t)return this.urlInputView.errorText=t,!1}return!0}resetFormStatus(){this.urlInputView.errorText=null,this.urlInputView.infoText=this._urlInputViewInfoDefault}_createUrlInput(){const e=this.locale.t,t=new cb(this.locale,db),o=t.fieldView;return this._urlInputViewInfoDefault=e("Paste the media URL in the input."),this._urlInputViewInfoTip=e("Tip: Paste the URL into the content to embed faster."),t.label=e("Media URL"),t.infoText=this._urlInputViewInfoDefault,o.on("input",()=>{t.infoText=o.element.value?this._urlInputViewInfoTip:this._urlInputViewInfoDefault,this.mediaURLInputValue=o.element.value.trim()}),t}_createButton(e,t,o,n){const a=new ri(this.locale);return a.set({label:e,icon:t,tooltip:!0}),a.extendTemplate({attributes:{class:o}}),n&&a.delegate("execute").to(this,n),a}}class tO extends Di{static get requires(){return[Yy]}static get pluginName(){return"MediaEmbedUI"}init(){const e=this.editor,t=e.commands.get("mediaEmbed");e.ui.componentFactory.add("mediaEmbed",e=>{const o=_p(e);return this._setUpDropdown(o,t),o})}_setUpDropdown(e,t){const o=this.editor,n=o.t,a=e.buttonView,r=o.plugins.get(Yy).registry;e.once("change:isOpen",()=>{const n=new eO(function(e,t){return[t=>{if(!t.url.length)return e("The URL must not be empty.")},o=>{if(!t.hasMedia(o.url))return e("This media URL is not supported.")}]}(o.t,r),o.locale);e.panelView.children.add(n),a.on("open",()=>{n.disableCssTransitions(),n.url=t.value||"",n.urlInputView.fieldView.select(),n.enableCssTransitions()},{priority:"low"}),e.on("submit",()=>{n.isValid()&&(o.execute("mediaEmbed",n.url),o.editing.view.focus())}),e.on("change:isOpen",()=>n.resetFormStatus()),e.on("cancel",()=>{o.editing.view.focus()}),n.delegate("submit","cancel").to(e),n.urlInputView.bind("value").to(t,"value"),n.urlInputView.bind("isReadOnly").to(t,"isEnabled",e=>!e)}),e.bind("isEnabled").to(t),a.set({label:n("Insert media"),icon:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"><path d="M18.68 3.03c.6 0 .59-.03.59.55v12.84c0 .59.01.56-.59.56H1.29c-.6 0-.59.03-.59-.56V3.58c0-.58-.01-.55.6-.55h17.38zM15.77 15V5H4.2v10h11.57zM2 4v1h1V4H2zm0 2v1h1V6H2zm0 2v1h1V8H2zm0 2v1h1v-1H2zm0 2v1h1v-1H2zm0 2v1h1v-1H2zM17 4v1h1V4h-1zm0 2v1h1V6h-1zm0 2v1h1V8h-1zm0 2v1h1v-1h-1zm0 2v1h1v-1h-1zm0 2v1h1v-1h-1zM7.5 7.177a.4.4 0 0 1 .593-.351l5.133 2.824a.4.4 0 0 1 0 .7l-5.133 2.824a.4.4 0 0 1-.593-.35V7.176v.001z"/></svg>',tooltip:!0})}}var oO=r(5777),nO={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};function aO(e,t,o,{blockElements:n,inlineObjectElements:a}){let r=o.createPositionAt(e,"forward"==t?"after":"before");return r=r.getLastMatchingPosition(({item:e})=>e.is("element")&&!n.includes(e.name)&&!a.includes(e.name),{direction:t}),"forward"==t?r.nodeAfter:r.nodeBefore}function rO(e,t){return!!e&&e.is("element")&&t.includes(e.name)}function iO(e,t){if(!e.childCount)return;const o=new zh(e.document),n=function(e,t){const o=t.createRangeIn(e),n=new Zi({name:/^p|h\d+$/,styles:{"mso-list":/.*/}}),a=[];for(const r of o)if("elementStart"===r.type&&n.match(r.item)){const e=cO(r.item);a.push({element:r.item,id:e.id,order:e.order,indent:e.indent})}return a}(e,o);if(!n.length)return;let a=null,r=1;n.forEach((e,i)=>{const l=function(e,t){if(!e)return!0;if(e.id!==t.id)return t.indent-e.indent!=1;const o=t.element.previousSibling;return!o||(n=o,!(n.is("element","ol")||n.is("element","ul")));var n}(n[i-1],e),s=l?null:n[i-1],c=(u=e,(d=s)?u.indent-d.indent:u.indent-1);var d,u;if(l&&(a=null,r=1),!a||0!==c){const n=function(e,t){const o=new RegExp(`@list l${e.id}:level${e.indent}\\s*({[^}]*)`,"gi"),n=/mso-level-number-format:([^;]{0,100});/gi,a=/mso-level-start-at:\s{0,100}([0-9]{0,10})\s{0,100};/gi,r=o.exec(t);let i="decimal",l="ol",s=null;if(r&&r[1]){const t=n.exec(r[1]);if(t&&t[1]&&(i=t[1].trim(),l="bullet"!==i&&"image"!==i?"ol":"ul"),"bullet"===i){const t=function(e){const t=function(e){if(e.getChild(0).is("$text"))return null;for(const t of e.getChildren()){if(!t.is("element","span"))continue;const e=t.getChild(0);return e.is("$text")?e:e.getChild(0)}return null}(e);if(!t)return null;const o=t._data;return"o"===o?"circle":"·"===o?"disc":"§"===o?"square":null}(e.element);t&&(i=t)}else{const e=a.exec(r[1]);e&&e[1]&&(s=parseInt(e[1]))}}return{type:l,startIndex:s,style:lO(i)}}(e,t);if(a){if(e.indent>r){const e=a.getChild(a.childCount-1),t=e.getChild(e.childCount-1);a=sO(n,t,o),r+=1}else if(e.indent<r){const t=r-e.indent;a=function(e,t){const o=e.getAncestors({parentFirst:!0});let n=null,a=0;for(const r of o)if((r.is("element","ul")||r.is("element","ol"))&&a++,a===t){n=r;break}return n}(a,t),r=e.indent}}else a=sO(n,e.element,o);e.indent<=r&&(a.is("element",n.type)||(a=o.rename(n.type,a)))}const m=function(e,t){return function(e,t){const o=new Zi({name:"span",styles:{"mso-list":"Ignore"}}),n=t.createRangeIn(e);for(const a of n)"elementStart"===a.type&&o.match(a.item)&&t.remove(a.item)}(e,t),t.rename("li",e)}(e.element,o);o.appendChild(m,a)})}function lO(e){if(e.startsWith("arabic-leading-zero"))return"decimal-leading-zero";switch(e){case"alpha-upper":return"upper-alpha";case"alpha-lower":return"lower-alpha";case"roman-upper":return"upper-roman";case"roman-lower":return"lower-roman";case"circle":case"disc":case"square":return e;default:return null}}function sO(e,t,o){const n=t.parent,a=o.createElement(e.type),r=n.getChildIndex(t)+1;return o.insertChild(r,a,n),e.style&&o.setStyle("list-style-type",e.style,a),e.startIndex&&e.startIndex>1&&o.setAttribute("start",e.startIndex,a),a}function cO(e){const t={},o=e.getStyle("mso-list");if(o){const e=o.match(/(^|\s{1,100})l(\d+)/i),n=o.match(/\s{0,100}lfo(\d+)/i),a=o.match(/\s{0,100}level(\d+)/i);e&&n&&a&&(t.id=e[2],t.order=n[1],t.indent=parseInt(a[1]))}return t}Ar()(oO.Z,nO),oO.Z.locals;const dO=/id=("|')docs-internal-guid-[-0-9a-f]+("|')/i;class uO{constructor(e){this.document=e}isActive(e){return dO.test(e)}execute(e){const t=new zh(this.document),{body:o}=e._parsedData;!function(e,t){for(const o of e.getChildren())if(o.is("element","b")&&"normal"===o.getStyle("font-weight")){const n=e.getChildIndex(o);t.remove(o),t.insertChild(n,o.getChildren(),e)}}(o,t),function(e,t){for(const o of t.createRangeIn(e)){const e=o.item;if(e.is("element","li")){const o=e.getChild(0);o&&o.is("element","p")&&t.unwrapElement(o)}}}(o,t),function(e,t){const o=new js(t.document.stylesProcessor),n=new bc(o,{renderingMode:"data"}),a=n.blockElements,r=n.inlineObjectElements,i=[];for(const l of t.createRangeIn(e)){const e=l.item;if(e.is("element","br")){const o=aO(e,"forward",t,{blockElements:a,inlineObjectElements:r}),n=aO(e,"backward",t,{blockElements:a,inlineObjectElements:r}),l=rO(o,a);(rO(n,a)||l)&&i.push(e)}}for(const l of i)l.hasClass("Apple-interchange-newline")?t.remove(l):t.replace(l,t.createElement("p"))}(o,t),e.content=o}}function mO(e,t){if(!e.childCount)return;const o=new zh(e.document),n=function(e,t){const o=t.createRangeIn(e),n=new Zi({name:/v:(.+)/}),a=[];for(const r of o){if("elementStart"!=r.type)continue;const e=r.item,t=e.previousSibling,o=t&&t.is("element")?t.name:null;n.match(e)&&e.getAttribute("o:gfxdata")&&"v:shapetype"!==o&&a.push(r.item.getAttribute("id"))}return a}(e,o);!function(e,t,o){const n=o.createRangeIn(t),a=new Zi({name:"img"}),r=[];for(const i of n)if(i.item.is("element")&&a.match(i.item)){const t=i.item,o=t.getAttribute("v:shapes")?t.getAttribute("v:shapes").split(" "):[];o.length&&o.every(t=>e.indexOf(t)>-1)?r.push(t):t.getAttribute("src")||r.push(t)}for(const i of r)o.remove(i)}(n,e,o),function(e,t,o){const n=o.createRangeIn(t),a=[];for(const l of n)if("elementStart"==l.type&&l.item.is("element","v:shape")){const t=l.item.getAttribute("id");if(e.includes(t))continue;r(l.item.parent.getChildren(),t)||a.push(l.item)}for(const l of a){const e={src:i(l)};l.hasAttribute("alt")&&(e.alt=l.getAttribute("alt"));const t=o.createElement("img",e);o.insertChild(l.index+1,t,l.parent)}function r(e,t){for(const o of e)if(o.is("element")){if("img"==o.name&&o.getAttribute("v:shapes")==t)return!0;if(r(o.getChildren(),t))return!0}return!1}function i(e){for(const t of e.getChildren())if(t.is("element")&&t.getAttribute("src"))return t.getAttribute("src")}}(n,e,o),function(e,t){const o=t.createRangeIn(e),n=new Zi({name:/v:(.+)/}),a=[];for(const r of o)"elementStart"==r.type&&n.match(r.item)&&a.push(r.item);for(const r of a)t.remove(r)}(e,o);const a=function(e,t){const o=t.createRangeIn(e),n=new Zi({name:"img"}),a=[];for(const r of o)r.item.is("element")&&n.match(r.item)&&r.item.getAttribute("src").startsWith("file://")&&a.push(r.item);return a}(e,o);a.length&&function(e,t,o){if(e.length===t.length)for(let n=0;n<e.length;n++){const a=`data:${t[n].type};base64,${hO(t[n].hex)}`;o.setAttribute("src",a,e[n])}}(a,function(e){if(!e)return[];const t=/{\\pict[\s\S]+?\\bliptag-?\d+(\\blipupi-?\d+)?({\\\*\\blipuid\s?[\da-fA-F]+)?[\s}]*?/,o=new RegExp("(?:("+t.source+"))([\\da-fA-F\\s]+)\\}","g"),n=e.match(o),a=[];if(n)for(const r of n){let e=!1;r.includes("\\pngblip")?e="image/png":r.includes("\\jpegblip")&&(e="image/jpeg"),e&&a.push({hex:r.replace(t,"").replace(/[^\da-fA-F]/g,""),type:e})}return a}(t),o)}function hO(e){return btoa(e.match(/\w{2}/g).map(e=>String.fromCharCode(parseInt(e,16))).join(""))}const pO=/<meta\s*name="?generator"?\s*content="?microsoft\s*word\s*\d+"?\/?>/i,bO=/xmlns:o="urn:schemas-microsoft-com/i;class gO{constructor(e){this.document=e}isActive(e){return pO.test(e)||bO.test(e)}execute(e){const{body:t,stylesString:o}=e._parsedData;iO(t,o),mO(t,e.dataTransfer.getData("text/rtf")),e.content=t}}function fO(e){return e.replace(/<span(?: class="Apple-converted-space"|)>(\s+)<\/span>/g,(e,t)=>1===t.length?" ":Array(t.length+1).join("  ").substr(0,t.length))}function vO(e,t){const o=new DOMParser,n=function(e){return fO(fO(e)).replace(/(<span\s+style=['"]mso-spacerun:yes['"]>[^\S\r\n]*?)[\r\n]+([^\S\r\n]*<\/span>)/g,"$1$2").replace(/<span\s+style=['"]mso-spacerun:yes['"]><\/span>/g,"").replace(/ <\//g," </").replace(/ <o:p><\/o:p>/g," <o:p></o:p>").replace(/<o:p>(&nbsp;|\u00A0)<\/o:p>/g,"").replace(/>([^\S\r\n]*[\r\n]\s*)</g,"><")}(function(e){const t="</body>",o="</html>",n=e.indexOf(t);if(n<0)return e;const a=e.indexOf(o,n+t.length);return e.substring(0,n+t.length)+(a>=0?e.substring(a):"")}(e=e.replace(/<!--\[if gte vml 1]>/g,""))),a=o.parseFromString(n,"text/html");!function(e){e.querySelectorAll("span[style*=spacerun]").forEach(e=>{const t=e,o=t.innerText.length||0;t.innerText=Array(o+1).join("  ").substr(0,o)})}(a);const r=a.body.innerHTML,i=function(e,t){const o=new js(t),n=new bc(o,{renderingMode:"data"}),a=e.createDocumentFragment(),r=e.body.childNodes;for(;r.length>0;)a.appendChild(r[0]);return n.domToView(a,{skipComments:!0})}(a,t),l=function(e){const t=[],o=[],n=Array.from(e.getElementsByTagName("style"));for(const a of n)a.sheet&&a.sheet.cssRules&&a.sheet.cssRules.length&&(t.push(a.sheet),o.push(a.innerHTML));return{styles:t,stylesString:o.join(" ")}}(a);return{body:i,bodyString:r,styles:l.styles,stylesString:l.stylesString}}function wO(e,t,o,n,a=1){t>a?n.setAttribute(e,t,o):n.removeAttribute(e,o)}function kO(e,t,o={}){const n=e.createElement("tableCell",o);return e.insertElement("paragraph",n),e.insert(n,t),n}function CO(e,t){const o=t.parent.parent,n=parseInt(o.getAttribute("headingColumns")||0),{column:a}=e.getCellLocation(t);return!!n&&a<n}function yO(){return e=>{e.on("element:table",(e,t,o)=>{const n=t.viewItem;if(!o.consumable.test(n,{name:!0}))return;const{rows:a,headingRows:r,headingColumns:i}=function(e){const t={headingRows:0,headingColumns:0},o=[],n=[];let a;for(const r of Array.from(e.getChildren()))if("tbody"===r.name||"thead"===r.name||"tfoot"===r.name){"thead"!==r.name||a||(a=r);const e=Array.from(r.getChildren()).filter(e=>e.is("element","tr"));for(const r of e)if("thead"===r.parent.name&&r.parent===a)t.headingRows++,o.push(r);else{n.push(r);const e=jO(r);e>t.headingColumns&&(t.headingColumns=e)}}return t.rows=[...o,...n],t}(n),l={};i&&(l.headingColumns=i),r&&(l.headingRows=r);const s=o.writer.createElement("table",l);if(o.safeInsert(s,t.modelCursor)){if(o.consumable.consume(n,{name:!0}),a.forEach(e=>o.convertItem(e,o.writer.createPositionAt(s,"end"))),o.convertChildren(n,o.writer.createPositionAt(s,"end")),s.isEmpty){const e=o.writer.createElement("tableRow");o.writer.insert(e,o.writer.createPositionAt(s,"end")),kO(o.writer,o.writer.createPositionAt(e,"end"))}o.updateConversionResult(s,t)}})}}function OO(e){return t=>{t.on("element:"+e,(e,t,{writer:o})=>{if(!t.modelRange)return;const n=t.modelRange.start.nodeAfter,a=o.createPositionAt(n,0);if(t.viewItem.isEmpty)return void o.insertElement("paragraph",a);const r=Array.from(n.getChildren());if(r.every(e=>e.is("element","$marker"))){const e=o.createElement("paragraph");o.insert(e,o.createPositionAt(n,0));for(const t of r)o.move(o.createRangeOn(t),o.createPositionAt(e,"end"))}},{priority:"low"})}}function jO(e){let t=0,o=0;const n=Array.from(e.getChildren()).filter(e=>"th"===e.name||"td"===e.name);for(;o<n.length&&"th"===n[o].name;){const e=n[o];t+=parseInt(e.getAttribute("colspan")||1),o++}return t}class xO{constructor(e,t={}){this._table=e,this._startRow=void 0!==t.row?t.row:t.startRow||0,this._endRow=void 0!==t.row?t.row:t.endRow,this._startColumn=void 0!==t.column?t.column:t.startColumn||0,this._endColumn=void 0!==t.column?t.column:t.endColumn,this._includeAllSlots=!!t.includeAllSlots,this._skipRows=new Set,this._row=0,this._rowIndex=0,this._column=0,this._cellIndex=0,this._spannedCells=new Map,this._nextCellAtColumn=-1}[Symbol.iterator](){return this}next(){const e=this._table.getChild(this._rowIndex);if(!e||this._isOverEndRow())return{done:!0};if(!e.is("element","tableRow"))return this._rowIndex++,this.next();if(this._isOverEndColumn())return this._advanceToNextRow();let t=null;const o=this._getSpanned();if(o)this._includeAllSlots&&!this._shouldSkipSlot()&&(t=this._formatOutValue(o.cell,o.row,o.column));else{const o=e.getChild(this._cellIndex);if(!o)return this._advanceToNextRow();const n=parseInt(o.getAttribute("colspan")||1),a=parseInt(o.getAttribute("rowspan")||1);(n>1||a>1)&&this._recordSpans(o,a,n),this._shouldSkipSlot()||(t=this._formatOutValue(o)),this._nextCellAtColumn=this._column+n}return this._column++,this._column==this._nextCellAtColumn&&this._cellIndex++,t||this.next()}skipRow(e){this._skipRows.add(e)}_advanceToNextRow(){return this._row++,this._rowIndex++,this._column=0,this._cellIndex=0,this._nextCellAtColumn=-1,this.next()}_isOverEndRow(){return void 0!==this._endRow&&this._row>this._endRow}_isOverEndColumn(){return void 0!==this._endColumn&&this._column>this._endColumn}_formatOutValue(e,t=this._row,o=this._column){return{done:!1,value:new _O(this,e,t,o)}}_shouldSkipSlot(){const e=this._skipRows.has(this._row),t=this._row<this._startRow,o=this._column<this._startColumn,n=void 0!==this._endColumn&&this._column>this._endColumn;return e||t||o||n}_getSpanned(){const e=this._spannedCells.get(this._row);return e&&e.get(this._column)||null}_recordSpans(e,t,o){const n={cell:e,row:this._row,column:this._column};for(let a=this._row;a<this._row+t;a++)for(let e=this._column;e<this._column+o;e++)a==this._row&&e==this._column||this._markSpannedCell(a,e,n)}_markSpannedCell(e,t,o){this._spannedCells.has(e)||this._spannedCells.set(e,new Map),this._spannedCells.get(e).set(t,o)}}class _O{constructor(e,t,o,n){this.cell=t,this.row=e._row,this.column=e._column,this.cellAnchorRow=o,this.cellAnchorColumn=n,this._cellIndex=e._cellIndex,this._rowIndex=e._rowIndex,this._table=e._table}get isAnchor(){return this.row===this.cellAnchorRow&&this.column===this.cellAnchorColumn}get cellWidth(){return parseInt(this.cell.getAttribute("colspan")||1)}get cellHeight(){return parseInt(this.cell.getAttribute("rowspan")||1)}get rowIndex(){return this._rowIndex}getPositionBefore(){return this._table.root.document.model.createPositionAt(this._table.getChild(this.row),this._cellIndex)}}function VO(e,t={}){return(o,{writer:n})=>{const a=o.getAttribute("headingRows")||0,r=[];a>0&&r.push(n.createContainerElement("thead",null,n.createSlot(e=>e.is("element","tableRow")&&e.index<a))),a<e.getRows(o)&&r.push(n.createContainerElement("tbody",null,n.createSlot(e=>e.is("element","tableRow")&&e.index>=a)));const i=n.createContainerElement("figure",{class:"table"},[n.createContainerElement("table",null,r),n.createSlot(e=>!e.is("element","tableRow"))]);return t.asWidget?function(e,t){return t.setCustomProperty("table",!0,e),Ef(e,t,{hasSelectionHandle:!0})}(i,n):i}}function AO(e={}){return(t,{writer:o})=>{const n=t.parent,a=n.parent,r=a.getChildIndex(n),i=new xO(a,{row:r}),l=a.getAttribute("headingRows")||0,s=a.getAttribute("headingColumns")||0;for(const c of i)if(c.cell==t){const t=c.row<l||c.column<s?"th":"td";return e.asWidget?If(o.createEditableElement(t),o):o.createContainerElement(t)}}}function NO(e={}){return(t,{writer:o})=>{if(t.parent.is("element","tableCell")&&DO(t)){if(e.asWidget)return o.createContainerElement("span",{class:"ck-table-bogus-paragraph"});{const e=o.createContainerElement("p");return o.setCustomProperty("dataPipeline:transparentRendering",!0,e),e}}}}function DO(e){return 1==e.parent.childCount&&![...e.getAttributeKeys()].length}class EO extends Ti{refresh(){const e=this.editor.model,t=e.document.selection,o=e.schema;this.isEnabled=function(e,t){const o=e.getFirstPosition().parent,n=o===o.root?o:o.parent;return t.checkChild(n,"table")}(t,o)}execute(e={}){const t=this.editor.model,o=this.editor.plugins.get("TableUtils"),n=this.editor.config.get("table"),a=n.defaultHeadings.rows,r=n.defaultHeadings.columns;void 0===e.headingRows&&a&&(e.headingRows=a),void 0===e.headingColumns&&r&&(e.headingColumns=r),t.change(n=>{const a=o.createTable(n,e);t.insertObject(a,null,null,{findOptimalPosition:"auto"}),n.setSelection(n.createPositionAt(a.getNodeByPath([0,0,0]),0))})}}class TO extends Ti{constructor(e,t={}){super(e),this.order=t.order||"below"}refresh(){const e=this.editor.model.document.selection,t=!!this.editor.plugins.get("TableUtils").getSelectionAffectedTableCells(e).length;this.isEnabled=t}execute(){const e=this.editor,t=e.model.document.selection,o=e.plugins.get("TableUtils"),n="above"===this.order,a=o.getSelectionAffectedTableCells(t),r=o.getRowIndexes(a),i=n?r.first:r.last,l=a[0].findAncestor("table");o.insertRows(l,{at:n?i:i+1,copyStructureFromAbove:!n})}}class SO extends Ti{constructor(e,t={}){super(e),this.order=t.order||"right"}refresh(){const e=this.editor.model.document.selection,t=!!this.editor.plugins.get("TableUtils").getSelectionAffectedTableCells(e).length;this.isEnabled=t}execute(){const e=this.editor,t=e.model.document.selection,o=e.plugins.get("TableUtils"),n="left"===this.order,a=o.getSelectionAffectedTableCells(t),r=o.getColumnIndexes(a),i=n?r.first:r.last,l=a[0].findAncestor("table");o.insertColumns(l,{columns:1,at:n?i:i+1})}}class BO extends Ti{constructor(e,t={}){super(e),this.direction=t.direction||"horizontally"}refresh(){const e=this.editor.plugins.get("TableUtils").getSelectionAffectedTableCells(this.editor.model.document.selection);this.isEnabled=1===e.length}execute(){const e=this.editor.plugins.get("TableUtils"),t=e.getSelectionAffectedTableCells(this.editor.model.document.selection)[0];"horizontally"===this.direction?e.splitCellHorizontally(t,2):e.splitCellVertically(t,2)}}function IO(e,t,o){const{startRow:n,startColumn:a,endRow:r,endColumn:i}=t,l=o.createElement("table"),s=r-n+1;for(let d=0;d<s;d++)o.insertElement("tableRow",l,"end");const c=[...new xO(e,{startRow:n,endRow:r,startColumn:a,endColumn:i,includeAllSlots:!0})];for(const{row:d,column:u,cell:m,isAnchor:h,cellAnchorRow:p,cellAnchorColumn:b}of c){const e=d-n,t=l.getChild(e);if(h){const e=o.cloneElement(m);o.append(e,t),PO(e,d,u,r,i,o)}else(p<n||b<a)&&kO(o,o.createPositionAt(t,"end"))}return function(e,t,o,n,a){const r=parseInt(t.getAttribute("headingRows")||0);r>0&&wO("headingRows",r-o,e,a,0);const i=parseInt(t.getAttribute("headingColumns")||0);i>0&&wO("headingColumns",i-n,e,a,0)}(l,e,n,a,o),l}function zO(e,t,o=0){const n=[],a=new xO(e,{startRow:o,endRow:t-1});for(const r of a){const{row:e,cellHeight:o}=r;e<t&&t<=e+o-1&&n.push(r)}return n}function FO(e,t,o){const n=e.parent,a=n.parent,r=n.index,i=t-r,l={},s=parseInt(e.getAttribute("rowspan"))-i;s>1&&(l.rowspan=s);const c=parseInt(e.getAttribute("colspan")||1);c>1&&(l.colspan=c);const d=r+i,u=[...new xO(a,{startRow:r,endRow:d,includeAllSlots:!0})];let m,h=null;for(const p of u){const{row:t,column:n,cell:a}=p;a===e&&void 0===m&&(m=n),void 0!==m&&m===n&&t===d&&(h=kO(o,p.getPositionBefore(),l))}return wO("rowspan",i,e,o),h}function MO(e,t){const o=[],n=new xO(e);for(const a of n){const{column:e,cellWidth:n}=a;e<t&&t<=e+n-1&&o.push(a)}return o}function LO(e,t,o,n){const a=o-t,r={},i=parseInt(e.getAttribute("colspan"))-a;i>1&&(r.colspan=i);const l=parseInt(e.getAttribute("rowspan")||1);l>1&&(r.rowspan=l);const s=kO(n,n.createPositionAfter(e),r);return wO("colspan",a,e,n),s}function PO(e,t,o,n,a,r){const i=parseInt(e.getAttribute("colspan")||1),l=parseInt(e.getAttribute("rowspan")||1);o+i-1>a&&wO("colspan",a-o+1,e,r,1),t+l-1>n&&wO("rowspan",n-t+1,e,r,1)}function RO(e,t){const o=t.getColumns(e),n=new Array(o).fill(0);for(const{column:r}of new xO(e))n[r]++;const a=n.reduce((e,t,o)=>t?e:[...e,o],[]);if(a.length>0){const o=a[a.length-1];return t.removeColumns(e,{at:o}),!0}return!1}function qO(e,t){const o=[],n=t.getRows(e);for(let a=0;a<n;a++)e.getChild(a).isEmpty&&o.push(a);if(o.length>0){const n=o[o.length-1];return t.removeRows(e,{at:n}),!0}return!1}function $O(e,t){RO(e,t)||qO(e,t)}function UO(e,t){const o=Array.from(new xO(e,{startColumn:t.firstColumn,endColumn:t.lastColumn,row:t.lastRow}));if(o.every(({cellHeight:e})=>1===e))return t.lastRow;const n=o[0].cellHeight-1;return t.lastRow+n}function HO(e,t){const o=Array.from(new xO(e,{startRow:t.firstRow,endRow:t.lastRow,column:t.lastColumn}));if(o.every(({cellWidth:e})=>1===e))return t.lastColumn;const n=o[0].cellWidth-1;return t.lastColumn+n}class WO extends Ti{constructor(e,t){super(e),this.direction=t.direction,this.isHorizontal="right"==this.direction||"left"==this.direction}refresh(){const e=this._getMergeableCell();this.value=e,this.isEnabled=!!e}execute(){const e=this.editor.model,t=e.document,o=this.editor.plugins.get("TableUtils").getTableCellsContainingSelection(t.selection)[0],n=this.value,a=this.direction;e.change(e=>{const t="right"==a||"down"==a,r=t?o:n,i=t?n:o,l=i.parent;!function(e,t,o){GO(e)||(GO(t)&&o.remove(o.createRangeIn(t)),o.move(o.createRangeIn(e),o.createPositionAt(t,"end"))),o.remove(e)}(i,r,e);const s=this.isHorizontal?"colspan":"rowspan",c=parseInt(o.getAttribute(s)||1),d=parseInt(n.getAttribute(s)||1);e.setAttribute(s,c+d,r),e.setSelection(e.createRangeIn(r));const u=this.editor.plugins.get("TableUtils");$O(l.findAncestor("table"),u)})}_getMergeableCell(){const e=this.editor.model.document,t=this.editor.plugins.get("TableUtils"),o=t.getTableCellsContainingSelection(e.selection)[0];if(!o)return;const n=this.isHorizontal?function(e,t,o){const n=e.parent,a=n.parent,r="right"==t?e.nextSibling:e.previousSibling,i=(a.getAttribute("headingColumns")||0)>0;if(!r)return;const l="right"==t?e:r,s="right"==t?r:e,{column:c}=o.getCellLocation(l),{column:d}=o.getCellLocation(s),u=parseInt(l.getAttribute("colspan")||1),m=CO(o,l),h=CO(o,s);return i&&m!=h?void 0:c+u===d?r:void 0}(o,this.direction,t):function(e,t,o){const n=e.parent,a=n.parent,r=a.getChildIndex(n);if("down"==t&&r===o.getRows(a)-1||"up"==t&&0===r)return;const i=parseInt(e.getAttribute("rowspan")||1),l=a.getAttribute("headingRows")||0,s="down"==t&&r+i===l,c="up"==t&&r===l;if(l&&(s||c))return;const d=parseInt(e.getAttribute("rowspan")||1),u="down"==t?r+d:r,m=[...new xO(a,{endRow:u})],h=m.find(t=>t.cell===e),p=h.column,b=m.find(({row:e,cellHeight:o,column:n})=>n===p&&("down"==t?e===u:u===e+o));return b&&b.cell}(o,this.direction,t);if(!n)return;const a=this.isHorizontal?"rowspan":"colspan",r=parseInt(o.getAttribute(a)||1);return parseInt(n.getAttribute(a)||1)===r?n:void 0}}function GO(e){return 1==e.childCount&&e.getChild(0).is("element","paragraph")&&e.getChild(0).isEmpty}class KO extends Ti{refresh(){const e=this.editor.plugins.get("TableUtils"),t=e.getSelectionAffectedTableCells(this.editor.model.document.selection),o=t[0];if(o){const n=o.findAncestor("table"),a=this.editor.plugins.get("TableUtils").getRows(n)-1,r=e.getRowIndexes(t),i=0===r.first&&r.last===a;this.isEnabled=!i}else this.isEnabled=!1}execute(){const e=this.editor.model,t=this.editor.plugins.get("TableUtils"),o=t.getSelectionAffectedTableCells(e.document.selection),n=t.getRowIndexes(o),a=o[0],r=a.findAncestor("table"),i=t.getCellLocation(a).column;e.change(e=>{const o=n.last-n.first+1;t.removeRows(r,{at:n.first,rows:o});const a=function(e,t,o,n){const a=e.getChild(Math.min(t,n-1));let r=a.getChild(0),i=0;for(const l of a.getChildren()){if(i>o)return r;r=l,i+=parseInt(l.getAttribute("colspan")||1)}return r}(r,n.first,i,t.getRows(r));e.setSelection(e.createPositionAt(a,0))})}}class YO extends Ti{refresh(){const e=this.editor.plugins.get("TableUtils"),t=e.getSelectionAffectedTableCells(this.editor.model.document.selection),o=t[0];if(o){const n=o.findAncestor("table"),a=e.getColumns(n),{first:r,last:i}=e.getColumnIndexes(t);this.isEnabled=i-r<a-1}else this.isEnabled=!1}execute(){const e=this.editor.plugins.get("TableUtils"),[t,o]=function(e,t){const o=t.getSelectionAffectedTableCells(e),n=o[0],a=o.pop(),r=[n,a];return n.isBefore(a)?r:r.reverse()}(this.editor.model.document.selection,e),n=t.parent.parent,a=[...new xO(n)],r={first:a.find(e=>e.cell===t).column,last:a.find(e=>e.cell===o).column},i=function(e,t,o,n){const a=parseInt(o.getAttribute("colspan")||1);return a>1?o:t.previousSibling||o.nextSibling?o.nextSibling||t.previousSibling:n.first?e.reverse().find(({column:e})=>e<n.first).cell:e.reverse().find(({column:e})=>e>n.last).cell}(a,t,o,r);this.editor.model.change(e=>{const t=r.last-r.first+1;this.editor.plugins.get("TableUtils").removeColumns(n,{at:r.first,columns:t}),e.setSelection(e.createPositionAt(i,0))})}}class QO extends Ti{refresh(){const e=this.editor.plugins.get("TableUtils"),t=this.editor.model,o=e.getSelectionAffectedTableCells(t.document.selection),n=o.length>0;this.isEnabled=n,this.value=n&&o.every(e=>this._isInHeading(e,e.parent.parent))}execute(e={}){if(e.forceValue===this.value)return;const t=this.editor.plugins.get("TableUtils"),o=this.editor.model,n=t.getSelectionAffectedTableCells(o.document.selection),a=n[0].findAncestor("table"),{first:r,last:i}=t.getRowIndexes(n),l=this.value?r:i+1,s=a.getAttribute("headingRows")||0;o.change(e=>{if(l){const t=zO(a,l,l>s?s:0);for(const{cell:o}of t)FO(o,l,e)}wO("headingRows",l,a,e,0)})}_isInHeading(e,t){const o=parseInt(t.getAttribute("headingRows")||0);return!!o&&e.parent.index<o}}class JO extends Ti{refresh(){const e=this.editor.model,t=this.editor.plugins.get("TableUtils"),o=t.getSelectionAffectedTableCells(e.document.selection),n=o.length>0;this.isEnabled=n,this.value=n&&o.every(e=>CO(t,e))}execute(e={}){if(e.forceValue===this.value)return;const t=this.editor.plugins.get("TableUtils"),o=this.editor.model,n=t.getSelectionAffectedTableCells(o.document.selection),a=n[0].findAncestor("table"),{first:r,last:i}=t.getColumnIndexes(n),l=this.value?r:i+1;o.change(e=>{if(l){const t=MO(a,l);for(const{cell:o,column:n}of t)LO(o,n,l,e)}wO("headingColumns",l,a,e,0)})}}class ZO extends Di{static get pluginName(){return"TableUtils"}init(){this.decorate("insertColumns"),this.decorate("insertRows")}getCellLocation(e){const t=e.parent,o=t.parent,n=o.getChildIndex(t),a=new xO(o,{row:n});for(const{cell:r,row:i,column:l}of a)if(r===e)return{row:i,column:l}}createTable(e,t){const o=e.createElement("table"),n=parseInt(t.rows)||2,a=parseInt(t.columns)||2;return XO(e,o,0,n,a),t.headingRows&&wO("headingRows",Math.min(t.headingRows,n),o,e,0),t.headingColumns&&wO("headingColumns",Math.min(t.headingColumns,a),o,e,0),o}insertRows(e,t={}){const o=this.editor.model,n=t.at||0,a=t.rows||1,r=void 0!==t.copyStructureFromAbove,i=t.copyStructureFromAbove?n-1:n,l=this.getRows(e),s=this.getColumns(e);if(n>l)throw new x("tableutils-insertrows-insert-out-of-range",this,{options:t});o.change(t=>{const o=e.getAttribute("headingRows")||0;if(o>n&&wO("headingRows",o+a,e,t,0),!r&&(0===n||n===l))return void XO(t,e,n,a,s);const c=r?Math.max(n,i):n,d=new xO(e,{endRow:c}),u=new Array(s).fill(1);for(const{row:e,column:l,cellHeight:s,cellWidth:m,cell:h}of d){const o=e+s-1,c=e<=i&&i<=o;e<n&&n<=o?(t.setAttribute("rowspan",s+a,h),u[l]=-m):r&&c&&(u[l]=m)}for(let r=0;r<a;r++){const o=t.createElement("tableRow");t.insert(o,e,n);for(let e=0;e<u.length;e++){const n=u[e],a=t.createPositionAt(o,"end");n>0&&kO(t,a,n>1?{colspan:n}:null),e+=Math.abs(n)-1}}})}insertColumns(e,t={}){const o=this.editor.model,n=t.at||0,a=t.columns||1;o.change(t=>{const o=e.getAttribute("headingColumns");n<o&&t.setAttribute("headingColumns",o+a,e);const r=this.getColumns(e);if(0===n||r===n){for(const o of e.getChildren())o.is("element","tableRow")&&ej(a,t,t.createPositionAt(o,n?"end":0));return}const i=new xO(e,{column:n,includeAllSlots:!0});for(const e of i){const{row:o,cell:r,cellAnchorColumn:l,cellAnchorRow:s,cellWidth:c,cellHeight:d}=e;if(l<n){t.setAttribute("colspan",c+a,r);const e=s+d-1;for(let t=o;t<=e;t++)i.skipRow(t)}else ej(a,t,e.getPositionBefore())}})}removeRows(e,t){const o=this.editor.model,n=t.rows||1,a=this.getRows(e),r=t.at,i=r+n-1;if(i>a-1)throw new x("tableutils-removerows-row-index-out-of-range",this,{table:e,options:t});o.change(t=>{const{cellsToMove:o,cellsToTrim:n}=function(e,t,o){const n=new Map,a=[];for(const{row:r,column:i,cellHeight:l,cell:s}of new xO(e,{endRow:o})){const e=r+l-1;if(r>=t&&r<=o&&e>o){const e=l-(o-r+1);n.set(i,{cell:s,rowspan:e})}if(r<t&&e>=t){let n;n=e>=o?o-t+1:e-t+1,a.push({cell:s,rowspan:l-n})}}return{cellsToMove:n,cellsToTrim:a}}(e,r,i);o.size&&function(e,t,o,n){const a=new xO(e,{includeAllSlots:!0,row:t}),r=[...a],i=e.getChild(t);let l;for(const{column:s,cell:c,isAnchor:d}of r)if(o.has(s)){const{cell:e,rowspan:t}=o.get(s),a=l?n.createPositionAfter(l):n.createPositionAt(i,0);n.move(n.createRangeOn(e),a),wO("rowspan",t,e,n),l=e}else d&&(l=c)}(e,i+1,o,t);for(let a=i;a>=r;a--)t.remove(e.getChild(a));for(const{rowspan:e,cell:a}of n)wO("rowspan",e,a,t);!function(e,t,o,n){const a=e.getAttribute("headingRows")||0;t<a&&wO("headingRows",o<a?a-(o-t+1):t,e,n,0)}(e,r,i,t),RO(e,this)||qO(e,this)})}removeColumns(e,t){const o=this.editor.model,n=t.at,a=t.columns||1,r=t.at+a-1;o.change(t=>{!function(e,t,o){const n=e.getAttribute("headingColumns")||0;if(n&&t.first<n){const a=Math.min(n-1,t.last)-t.first+1;o.setAttribute("headingColumns",n-a,e)}}(e,{first:n,last:r},t);for(let o=r;o>=n;o--)for(const{cell:n,column:a,cellWidth:r}of[...new xO(e)])a<=o&&r>1&&a+r>o?wO("colspan",r-1,n,t):a===o&&t.remove(n);qO(e,this)||RO(e,this)})}splitCellVertically(e,t=2){const o=this.editor.model,n=e.parent.parent,a=parseInt(e.getAttribute("rowspan")||1),r=parseInt(e.getAttribute("colspan")||1);o.change(o=>{if(r>1){const{newCellsSpan:n,updatedSpan:i}=tj(r,t);wO("colspan",i,e,o);const l={};n>1&&(l.colspan=n),a>1&&(l.rowspan=a),ej(r>t?t-1:r-1,o,o.createPositionAfter(e),l)}if(r<t){const i=t-r,l=[...new xO(n)],{column:s}=l.find(({cell:t})=>t===e),c=l.filter(({cell:t,cellWidth:o,column:n})=>t!==e&&n===s||n<s&&n+o>s);for(const{cell:e,cellWidth:t}of c)o.setAttribute("colspan",t+i,e);const d={};a>1&&(d.rowspan=a),ej(i,o,o.createPositionAfter(e),d);const u=n.getAttribute("headingColumns")||0;u>s&&wO("headingColumns",u+i,n,o)}})}splitCellHorizontally(e,t=2){const o=this.editor.model,n=e.parent,a=n.parent,r=a.getChildIndex(n),i=parseInt(e.getAttribute("rowspan")||1),l=parseInt(e.getAttribute("colspan")||1);o.change(o=>{if(i>1){const n=[...new xO(a,{startRow:r,endRow:r+i-1,includeAllSlots:!0})],{newCellsSpan:s,updatedSpan:c}=tj(i,t);wO("rowspan",c,e,o);const{column:d}=n.find(({cell:t})=>t===e),u={};s>1&&(u.rowspan=s),l>1&&(u.colspan=l);for(const e of n){const{column:t,row:n}=e;n>=r+c&&t===d&&(n+r+c)%s==0&&ej(1,o,e.getPositionBefore(),u)}}if(i<t){const n=t-i,s=[...new xO(a,{startRow:0,endRow:r})];for(const{cell:t,cellHeight:a,row:i}of s)if(t!==e&&i+a>r){const e=a+n;o.setAttribute("rowspan",e,t)}const c={};l>1&&(c.colspan=l),XO(o,a,r+1,n,1,c);const d=a.getAttribute("headingRows")||0;d>r&&wO("headingRows",d+n,a,o)}})}getColumns(e){return[...e.getChild(0).getChildren()].reduce((e,t)=>e+parseInt(t.getAttribute("colspan")||1),0)}getRows(e){return Array.from(e.getChildren()).reduce((e,t)=>t.is("element","tableRow")?e+1:e,0)}createTableWalker(e,t={}){return new xO(e,t)}getSelectedTableCells(e){const t=[];for(const o of this.sortRanges(e.getRanges())){const e=o.getContainedElement();e&&e.is("element","tableCell")&&t.push(e)}return t}getTableCellsContainingSelection(e){const t=[];for(const o of e.getRanges()){const e=o.start.findAncestor("tableCell");e&&t.push(e)}return t}getSelectionAffectedTableCells(e){const t=this.getSelectedTableCells(e);return t.length?t:this.getTableCellsContainingSelection(e)}getRowIndexes(e){const t=e.map(e=>e.parent.index);return this._getFirstLastIndexesObject(t)}getColumnIndexes(e){const t=e[0].findAncestor("table"),o=[...new xO(t)].filter(t=>e.includes(t.cell)).map(e=>e.column);return this._getFirstLastIndexesObject(o)}isSelectionRectangular(e){if(e.length<2||!this._areCellInTheSameTableSection(e))return!1;const t=new Set,o=new Set;let n=0;for(const r of e){const{row:e,column:a}=this.getCellLocation(r),i=parseInt(r.getAttribute("rowspan")||1),l=parseInt(r.getAttribute("colspan")||1);t.add(e),o.add(a),i>1&&t.add(e+i-1),l>1&&o.add(a+l-1),n+=i*l}const a=function(e,t){const o=Array.from(e.values()),n=Array.from(t.values()),a=Math.max(...o),r=Math.min(...o),i=Math.max(...n),l=Math.min(...n);return(a-r+1)*(i-l+1)}(t,o);return a==n}sortRanges(e){return Array.from(e).sort(oj)}_getFirstLastIndexesObject(e){const t=e.sort((e,t)=>e-t);return{first:t[0],last:t[t.length-1]}}_areCellInTheSameTableSection(e){const t=e[0].findAncestor("table"),o=this.getRowIndexes(e),n=parseInt(t.getAttribute("headingRows")||0);if(!this._areIndexesInSameSection(o,n))return!1;const a=parseInt(t.getAttribute("headingColumns")||0),r=this.getColumnIndexes(e);return this._areIndexesInSameSection(r,a)}_areIndexesInSameSection({first:e,last:t},o){return e<o===t<o}}function XO(e,t,o,n,a,r={}){for(let i=0;i<n;i++){const n=e.createElement("tableRow");e.insert(n,t,o),ej(a,e,e.createPositionAt(n,"end"),r)}}function ej(e,t,o,n={}){for(let a=0;a<e;a++)kO(t,o,n)}function tj(e,t){if(e<t)return{newCellsSpan:1,updatedSpan:1};const o=Math.floor(e/t);return{newCellsSpan:o,updatedSpan:e-o*t+o}}function oj(e,t){const o=e.start,n=t.start;return o.isBefore(n)?-1:1}class nj extends Ti{refresh(){const e=this.editor.plugins.get(ZO),t=e.getSelectedTableCells(this.editor.model.document.selection);this.isEnabled=e.isSelectionRectangular(t,this.editor.plugins.get(ZO))}execute(){const e=this.editor.model,t=this.editor.plugins.get(ZO);e.change(o=>{const n=t.getSelectedTableCells(e.document.selection),a=n.shift(),{mergeWidth:r,mergeHeight:i}=function(e,t,o){let n=0,a=0;for(const c of t){const{row:e,column:t}=o.getCellLocation(c);n=ij(c,t,n,"colspan"),a=ij(c,e,a,"rowspan")}const{row:r,column:i}=o.getCellLocation(e),l=n-i,s=a-r;return{mergeWidth:l,mergeHeight:s}}(a,n,t);wO("colspan",r,a,o),wO("rowspan",i,a,o);for(const e of n)aj(e,a,o);$O(a.findAncestor("table"),t),o.setSelection(a,"in")})}}function aj(e,t,o){rj(e)||(rj(t)&&o.remove(o.createRangeIn(t)),o.move(o.createRangeIn(e),o.createPositionAt(t,"end"))),o.remove(e)}function rj(e){return 1==e.childCount&&e.getChild(0).is("element","paragraph")&&e.getChild(0).isEmpty}function ij(e,t,o,n){const a=parseInt(e.getAttribute(n)||1);return Math.max(o,t+a)}class lj extends Ti{constructor(e){super(e),this.affectsData=!1}refresh(){const e=this.editor.plugins.get("TableUtils").getSelectionAffectedTableCells(this.editor.model.document.selection);this.isEnabled=e.length>0}execute(){const e=this.editor.model,t=this.editor.plugins.get("TableUtils"),o=t.getSelectionAffectedTableCells(e.document.selection),n=t.getRowIndexes(o),a=o[0].findAncestor("table"),r=[];for(let i=n.first;i<=n.last;i++)for(const t of a.getChild(i).getChildren())r.push(e.createRangeOn(t));e.change(e=>{e.setSelection(r)})}}class sj extends Ti{constructor(e){super(e),this.affectsData=!1}refresh(){const e=this.editor.plugins.get("TableUtils").getSelectionAffectedTableCells(this.editor.model.document.selection);this.isEnabled=e.length>0}execute(){const e=this.editor.plugins.get("TableUtils"),t=this.editor.model,o=e.getSelectionAffectedTableCells(t.document.selection),n=o[0],a=o.pop(),r=n.findAncestor("table"),i=e.getCellLocation(n),l=e.getCellLocation(a),s=Math.min(i.column,l.column),c=Math.max(i.column,l.column),d=[];for(const u of new xO(r,{startColumn:s,endColumn:c}))d.push(t.createRangeOn(u.cell));t.change(e=>{e.setSelection(d)})}}function cj(e){e.document.registerPostFixer(t=>function(e,t){const o=t.document.differ.getChanges();let n=!1;const a=new Set;for(const r of o){let t;"table"==r.name&&"insert"==r.type&&(t=r.position.nodeAfter),"tableRow"!=r.name&&"tableCell"!=r.name||(t=r.position.findAncestor("table")),mj(r)&&(t=r.range.start.findAncestor("table")),t&&!a.has(t)&&(n=dj(t,e)||n,n=uj(t,e)||n,a.add(t))}return n}(t,e))}function dj(e,t){let o=!1;const n=function(e){const t=parseInt(e.getAttribute("headingRows")||0),o=Array.from(e.getChildren()).reduce((e,t)=>t.is("element","tableRow")?e+1:e,0),n=[];for(const{row:a,cell:r,cellHeight:i}of new xO(e)){if(i<2)continue;const e=a<t?t:o;if(a+i>e){const t=e-a;n.push({cell:r,rowspan:t})}}return n}(e);if(n.length){o=!0;for(const e of n)wO("rowspan",e.rowspan,e.cell,t,1)}return o}function uj(e,t){let o=!1;const n=function(e){const t=new Array(e.childCount).fill(0);for(const{rowIndex:o}of new xO(e,{includeAllSlots:!0}))t[o]++;return t}(e),a=[];for(const[l,s]of n.entries())!s&&e.getChild(l).is("element","tableRow")&&a.push(l);if(a.length){o=!0;for(const o of a.reverse())t.remove(e.getChild(o)),n.splice(o,1)}const r=n.filter((t,o)=>e.getChild(o).is("element","tableRow")),i=r[0];if(!r.every(e=>e===i)){const n=r.reduce((e,t)=>t>e?t:e,0);for(const[a,i]of r.entries()){const r=n-i;if(r){for(let o=0;o<r;o++)kO(t,t.createPositionAt(e.getChild(a),"end"));o=!0}}}return o}function mj(e){const t="attribute"===e.type,o=e.attributeKey;return t&&("headingRows"===o||"colspan"===o||"rowspan"===o)}function hj(e){e.document.registerPostFixer(t=>function(e,t){const o=t.document.differ.getChanges();let n=!1;for(const a of o)"insert"==a.type&&"table"==a.name&&(n=pj(a.position.nodeAfter,e)||n),"insert"==a.type&&"tableRow"==a.name&&(n=bj(a.position.nodeAfter,e)||n),"insert"==a.type&&"tableCell"==a.name&&(n=gj(a.position.nodeAfter,e)||n),fj(a)&&(n=gj(a.position.parent,e)||n);return n}(t,e))}function pj(e,t){let o=!1;for(const n of e.getChildren())n.is("element","tableRow")&&(o=bj(n,t)||o);return o}function bj(e,t){let o=!1;for(const n of e.getChildren())o=gj(n,t)||o;return o}function gj(e,t){if(0==e.childCount)return t.insertElement("paragraph",e),!0;const o=Array.from(e.getChildren()).filter(e=>e.is("$text"));for(const n of o)t.wrap(t.createRangeOn(n),"paragraph");return!!o.length}function fj(e){return!(!e.position||!e.position.parent.is("element","tableCell"))&&("insert"==e.type&&"$text"==e.name||"remove"==e.type)}function vj(e,t){if(!e.is("element","paragraph"))return!1;const o=t.toViewElement(e);return!!o&&DO(e)!==o.is("element","span")}var wj=r(4777),kj={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};Ar()(wj.Z,kj),wj.Z.locals;class Cj extends Di{static get pluginName(){return"TableEditing"}static get requires(){return[ZO]}init(){const e=this.editor,t=e.model,o=t.schema,n=e.conversion,a=e.plugins.get(ZO);o.register("table",{inheritAllFrom:"$blockObject",allowAttributes:["headingRows","headingColumns"]}),o.register("tableRow",{allowIn:"table",isLimit:!0}),o.register("tableCell",{allowContentOf:"$container",allowIn:"tableRow",allowAttributes:["colspan","rowspan"],isLimit:!0,isSelectable:!0}),n.for("upcast").add(e=>{e.on("element:figure",(e,t,o)=>{if(!o.consumable.test(t.viewItem,{name:!0,classes:"table"}))return;const n=function(e){for(const t of e.getChildren())if(t.is("element","table"))return t}(t.viewItem);if(!n||!o.consumable.test(n,{name:!0}))return;o.consumable.consume(t.viewItem,{name:!0,classes:"table"});const a=fr(o.convertItem(n,t.modelCursor).modelRange.getItems());a?(o.convertChildren(t.viewItem,o.writer.createPositionAt(a,"end")),o.updateConversionResult(a,t)):o.consumable.revert(t.viewItem,{name:!0,classes:"table"})})}),n.for("upcast").add(yO()),n.for("editingDowncast").elementToStructure({model:{name:"table",attributes:["headingRows"]},view:VO(a,{asWidget:!0})}),n.for("dataDowncast").elementToStructure({model:{name:"table",attributes:["headingRows"]},view:VO(a)}),n.for("upcast").elementToElement({model:"tableRow",view:"tr"}),n.for("upcast").add(e=>{e.on("element:tr",(e,t)=>{t.viewItem.isEmpty&&0==t.modelCursor.index&&e.stop()},{priority:"high"})}),n.for("downcast").elementToElement({model:"tableRow",view:(e,{writer:t})=>e.isEmpty?t.createEmptyElement("tr"):t.createContainerElement("tr")}),n.for("upcast").elementToElement({model:"tableCell",view:"td"}),n.for("upcast").elementToElement({model:"tableCell",view:"th"}),n.for("upcast").add(OO("td")),n.for("upcast").add(OO("th")),n.for("editingDowncast").elementToElement({model:"tableCell",view:AO({asWidget:!0})}),n.for("dataDowncast").elementToElement({model:"tableCell",view:AO()}),n.for("editingDowncast").elementToElement({model:"paragraph",view:NO({asWidget:!0}),converterPriority:"high"}),n.for("dataDowncast").elementToElement({model:"paragraph",view:NO(),converterPriority:"high"}),n.for("downcast").attributeToAttribute({model:"colspan",view:"colspan"}),n.for("upcast").attributeToAttribute({model:{key:"colspan",value:yj("colspan")},view:"colspan"}),n.for("downcast").attributeToAttribute({model:"rowspan",view:"rowspan"}),n.for("upcast").attributeToAttribute({model:{key:"rowspan",value:yj("rowspan")},view:"rowspan"}),e.config.define("table.defaultHeadings.rows",0),e.config.define("table.defaultHeadings.columns",0),e.commands.add("insertTable",new EO(e)),e.commands.add("insertTableRowAbove",new TO(e,{order:"above"})),e.commands.add("insertTableRowBelow",new TO(e,{order:"below"})),e.commands.add("insertTableColumnLeft",new SO(e,{order:"left"})),e.commands.add("insertTableColumnRight",new SO(e,{order:"right"})),e.commands.add("removeTableRow",new KO(e)),e.commands.add("removeTableColumn",new YO(e)),e.commands.add("splitTableCellVertically",new BO(e,{direction:"vertically"})),e.commands.add("splitTableCellHorizontally",new BO(e,{direction:"horizontally"})),e.commands.add("mergeTableCells",new nj(e)),e.commands.add("mergeTableCellRight",new WO(e,{direction:"right"})),e.commands.add("mergeTableCellLeft",new WO(e,{direction:"left"})),e.commands.add("mergeTableCellDown",new WO(e,{direction:"down"})),e.commands.add("mergeTableCellUp",new WO(e,{direction:"up"})),e.commands.add("setTableColumnHeader",new JO(e)),e.commands.add("setTableRowHeader",new QO(e)),e.commands.add("selectTableRow",new lj(e)),e.commands.add("selectTableColumn",new sj(e)),cj(t),hj(t),this.listenTo(t.document,"change:data",()=>{!function(e,t){const o=e.document.differ;for(const n of o.getChanges()){let e,o=!1;if("attribute"==n.type){const t=n.range.start.nodeAfter;if(!t||!t.is("element","table"))continue;if("headingRows"!=n.attributeKey&&"headingColumns"!=n.attributeKey)continue;e=t,o="headingRows"==n.attributeKey}else"tableRow"!=n.name&&"tableCell"!=n.name||(e=n.position.findAncestor("table"),o="tableRow"==n.name);if(!e)continue;const a=e.getAttribute("headingRows")||0,r=e.getAttribute("headingColumns")||0,i=new xO(e);for(const n of i){const e=n.row<a||n.column<r?"th":"td",i=t.mapper.toViewElement(n.cell);i&&i.is("element")&&i.name!=e&&t.reconvertItem(o?n.cell.parent:n.cell)}}}(t,e.editing),function(e,t){const o=e.document.differ,n=new Set;for(const a of o.getChanges()){const e="attribute"==a.type?a.range.start.parent:a.position.parent;e.is("element","tableCell")&&n.add(e)}for(const a of n.values()){const e=Array.from(a.getChildren()).filter(e=>vj(e,t.mapper));for(const o of e)t.reconvertItem(o)}}(t,e.editing)})}}function yj(e){return t=>{const o=parseInt(t.getAttribute(e));return Number.isNaN(o)||o<=0?null:o}}var Oj=r(8085),jj={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};Ar()(Oj.Z,jj),Oj.Z.locals;class xj extends Er{constructor(e){super(e);const t=this.bindTemplate;this.items=this._createGridCollection(),this.keystrokes=new wr,this.focusTracker=new vr,this.set("rows",0),this.set("columns",0),this.bind("label").to(this,"columns",this,"rows",(e,t)=>`${t} × ${e}`),this.setTemplate({tag:"div",attributes:{class:["ck"]},children:[{tag:"div",attributes:{class:["ck-insert-table-dropdown__grid"]},on:{"mouseover@.ck-insert-table-dropdown-grid-box":t.to("boxover")},children:this.items},{tag:"div",attributes:{class:["ck","ck-insert-table-dropdown__label"],"aria-hidden":!0},children:[{text:t.to("label")}]}],on:{mousedown:t.to(e=>{e.preventDefault()}),click:t.to(()=>{this.fire("execute")})}}),this.on("boxover",(e,t)=>{const{row:o,column:n}=t.target.dataset;this.items.get(10*(parseInt(o,10)-1)+(parseInt(n,10)-1)).focus()}),this.focusTracker.on("change:focusedElement",(e,t,o)=>{if(!o)return;const{row:n,column:a}=o.dataset;this.set({rows:parseInt(n),columns:parseInt(a)})}),this.on("change:columns",()=>this._highlightGridBoxes()),this.on("change:rows",()=>this._highlightGridBoxes())}render(){super.render(),s({keystrokeHandler:this.keystrokes,focusTracker:this.focusTracker,gridItems:this.items,numberOfColumns:10,uiLanguageDirection:this.locale&&this.locale.uiLanguageDirection});for(const e of this.items)this.focusTracker.add(e.element);this.keystrokes.listenTo(this.element)}focus(){this.items.get(0).focus()}focusLast(){this.items.get(0).focus()}_highlightGridBoxes(){const e=this.rows,t=this.columns;this.items.map((o,n)=>{const a=Math.floor(n/10)<e&&n%10<t;o.set("isOn",a)})}_createGridButton(e,t,o,n){const a=new ri(e);return a.set({label:n,class:"ck-insert-table-dropdown-grid-box"}),a.extendTemplate({attributes:{"data-row":t,"data-column":o}}),a}_createGridCollection(){const e=[];for(let t=0;t<100;t++){const o=Math.floor(t/10),n=t%10,a=`${o+1} × ${n+1}`;e.push(this._createGridButton(this.locale,o+1,n+1,a))}return this.createCollection(e)}}class _j extends Di{static get pluginName(){return"TableUI"}init(){const e=this.editor,t=this.editor.t,o="ltr"===e.locale.contentLanguageDirection;e.ui.componentFactory.add("insertTable",o=>{const n=e.commands.get("insertTable"),a=_p(o);let r;return a.bind("isEnabled").to(n),a.buttonView.set({icon:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M3 6v3h4V6H3zm0 4v3h4v-3H3zm0 4v3h4v-3H3zm5 3h4v-3H8v3zm5 0h4v-3h-4v3zm4-4v-3h-4v3h4zm0-4V6h-4v3h4zm1.5 8a1.5 1.5 0 0 1-1.5 1.5H3A1.5 1.5 0 0 1 1.5 17V4c.222-.863 1.068-1.5 2-1.5h13c.932 0 1.778.637 2 1.5v13zM12 13v-3H8v3h4zm0-4V6H8v3h4z"/></svg>',label:t("Insert table"),tooltip:!0}),a.on("change:isOpen",()=>{r||(r=new xj(o),a.panelView.children.add(r),r.delegate("execute").to(a),a.on("execute",()=>{e.execute("insertTable",{rows:r.rows,columns:r.columns}),e.editing.view.focus()}))}),a}),e.ui.componentFactory.add("tableColumn",e=>{const n=[{type:"switchbutton",model:{commandName:"setTableColumnHeader",label:t("Header column"),bindIsOn:!0}},{type:"separator"},{type:"button",model:{commandName:o?"insertTableColumnLeft":"insertTableColumnRight",label:t("Insert column left")}},{type:"button",model:{commandName:o?"insertTableColumnRight":"insertTableColumnLeft",label:t("Insert column right")}},{type:"button",model:{commandName:"removeTableColumn",label:t("Delete column")}},{type:"button",model:{commandName:"selectTableColumn",label:t("Select column")}}];return this._prepareDropdown(t("Column"),'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M2.5 1h15A1.5 1.5 0 0 1 19 2.5v15a1.5 1.5 0 0 1-1.5 1.5h-15A1.5 1.5 0 0 1 1 17.5v-15A1.5 1.5 0 0 1 2.5 1zM2 2v16h16V2H2z" opacity=".6"/><path d="M18 7v1H2V7h16zm0 5v1H2v-1h16z" opacity=".6"/><path d="M14 1v18a1 1 0 0 1-1 1H7a1 1 0 0 1-1-1V1a1 1 0 0 1 1-1h6a1 1 0 0 1 1 1zm-2 1H8v4h4V2zm0 6H8v4h4V8zm0 6H8v4h4v-4z"/></svg>',n,e)}),e.ui.componentFactory.add("tableRow",e=>{const o=[{type:"switchbutton",model:{commandName:"setTableRowHeader",label:t("Header row"),bindIsOn:!0}},{type:"separator"},{type:"button",model:{commandName:"insertTableRowAbove",label:t("Insert row above")}},{type:"button",model:{commandName:"insertTableRowBelow",label:t("Insert row below")}},{type:"button",model:{commandName:"removeTableRow",label:t("Delete row")}},{type:"button",model:{commandName:"selectTableRow",label:t("Select row")}}];return this._prepareDropdown(t("Row"),'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M2.5 1h15A1.5 1.5 0 0 1 19 2.5v15a1.5 1.5 0 0 1-1.5 1.5h-15A1.5 1.5 0 0 1 1 17.5v-15A1.5 1.5 0 0 1 2.5 1zM2 2v16h16V2H2z" opacity=".6"/><path d="M7 2h1v16H7V2zm5 0h1v16h-1V2z" opacity=".6"/><path d="M1 6h18a1 1 0 0 1 1 1v6a1 1 0 0 1-1 1H1a1 1 0 0 1-1-1V7a1 1 0 0 1 1-1zm1 2v4h4V8H2zm6 0v4h4V8H8zm6 0v4h4V8h-4z"/></svg>',o,e)}),e.ui.componentFactory.add("mergeTableCells",e=>{const n=[{type:"button",model:{commandName:"mergeTableCellUp",label:t("Merge cell up")}},{type:"button",model:{commandName:o?"mergeTableCellRight":"mergeTableCellLeft",label:t("Merge cell right")}},{type:"button",model:{commandName:"mergeTableCellDown",label:t("Merge cell down")}},{type:"button",model:{commandName:o?"mergeTableCellLeft":"mergeTableCellRight",label:t("Merge cell left")}},{type:"separator"},{type:"button",model:{commandName:"splitTableCellVertically",label:t("Split cell vertically")}},{type:"button",model:{commandName:"splitTableCellHorizontally",label:t("Split cell horizontally")}}];return this._prepareMergeSplitButtonDropdown(t("Merge cells"),'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M2.5 1h15A1.5 1.5 0 0 1 19 2.5v15a1.5 1.5 0 0 1-1.5 1.5h-15A1.5 1.5 0 0 1 1 17.5v-15A1.5 1.5 0 0 1 2.5 1zM2 2v16h16V2H2z" opacity=".6"/><path d="M7 2h1v16H7V2zm5 0h1v7h-1V2zm6 5v1H2V7h16zM8 12v1H2v-1h6z" opacity=".6"/><path d="M7 7h12a1 1 0 0 1 1 1v11a1 1 0 0 1-1 1H7a1 1 0 0 1-1-1V8a1 1 0 0 1 1-1zm1 2v9h10V9H8z"/></svg>',n,e)})}_prepareDropdown(e,t,o,n){const a=this.editor,r=_p(n),i=this._fillDropdownWithListOptions(r,o);return r.buttonView.set({label:e,icon:t,tooltip:!0}),r.bind("isEnabled").toMany(i,"isEnabled",(...e)=>e.some(e=>e)),this.listenTo(r,"execute",e=>{a.execute(e.source.commandName),e.source instanceof si||a.editing.view.focus()}),r}_prepareMergeSplitButtonDropdown(e,t,o,n){const a=this.editor,r=_p(n,Oi),i="mergeTableCells",l=a.commands.get(i),s=this._fillDropdownWithListOptions(r,o);return r.buttonView.set({label:e,icon:t,tooltip:!0,isEnabled:!0}),r.bind("isEnabled").toMany([l,...s],"isEnabled",(...e)=>e.some(e=>e)),this.listenTo(r.buttonView,"execute",()=>{a.execute(i),a.editing.view.focus()}),this.listenTo(r,"execute",e=>{a.execute(e.source.commandName),a.editing.view.focus()}),r}_fillDropdownWithListOptions(e,t){const o=this.editor,n=[],a=new gr;for(const r of t)Vj(r,o,n,a);return Np(e,a),n}}function Vj(e,t,o,n){const a=e.model=new mb(e.model),{commandName:r,bindIsOn:i}=e.model;if("button"===e.type||"switchbutton"===e.type){const e=t.commands.get(r);o.push(e),a.set({commandName:r}),a.bind("isEnabled").to(e),i&&a.bind("isOn").to(e,"value")}a.set({withText:!0}),n.add(e)}var Aj=r(5593),Nj={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};Ar()(Aj.Z,Nj),Aj.Z.locals;class Dj extends Di{static get pluginName(){return"TableSelection"}static get requires(){return[ZO,ZO]}init(){const e=this.editor,t=e.model,o=e.editing.view;this.listenTo(t,"deleteContent",(e,t)=>this._handleDeleteContent(e,t),{priority:"high"}),this.listenTo(o.document,"insertText",(e,t)=>this._handleInsertTextEvent(e,t),{priority:"high"}),this._defineSelectionConverter(),this._enablePluginDisabling()}getSelectedTableCells(){const e=this.editor.plugins.get(ZO),t=this.editor.model.document.selection,o=e.getSelectedTableCells(t);return 0==o.length?null:o}getSelectionAsFragment(){const e=this.editor.plugins.get(ZO),t=this.getSelectedTableCells();return t?this.editor.model.change(o=>{const n=o.createDocumentFragment(),{first:a,last:r}=e.getColumnIndexes(t),{first:i,last:l}=e.getRowIndexes(t),s=t[0].findAncestor("table");let c=l,d=r;if(e.isSelectionRectangular(t)){const e={firstColumn:a,lastColumn:r,firstRow:i,lastRow:l};c=UO(s,e),d=HO(s,e)}const u=IO(s,{startRow:i,startColumn:a,endRow:c,endColumn:d},o);return o.insert(u,n,0),n}):null}setCellSelection(e,t){const o=this._getCellsToSelect(e,t);this.editor.model.change(e=>{e.setSelection(o.cells.map(t=>e.createRangeOn(t)),{backward:o.backward})})}getFocusCell(){const e=[...this.editor.model.document.selection.getRanges()].pop().getContainedElement();return e&&e.is("element","tableCell")?e:null}getAnchorCell(){const e=fr(this.editor.model.document.selection.getRanges()).getContainedElement();return e&&e.is("element","tableCell")?e:null}_defineSelectionConverter(){const e=this.editor,t=new Set;e.conversion.for("editingDowncast").add(e=>e.on("selection",(e,o,n)=>{const a=n.writer;!function(e){for(const o of t)e.removeClass("ck-editor__editable_selected",o);t.clear()}(a);const r=this.getSelectedTableCells();if(!r)return;for(const l of r){const e=n.mapper.toViewElement(l);a.addClass("ck-editor__editable_selected",e),t.add(e)}const i=n.mapper.toViewElement(r[r.length-1]);a.setSelection(i,0)},{priority:"lowest"}))}_enablePluginDisabling(){const e=this.editor;this.on("change:isEnabled",()=>{if(!this.isEnabled){const t=this.getSelectedTableCells();if(!t)return;e.model.change(o=>{const n=o.createPositionAt(t[0],0),a=e.model.schema.getNearestSelectionRange(n);o.setSelection(a)})}})}_handleDeleteContent(e,t){const o=this.editor.plugins.get(ZO),[n,a]=t,r=this.editor.model,i=!a||"backward"==a.direction,l=o.getSelectedTableCells(n);l.length&&(e.stop(),r.change(e=>{const t=l[i?l.length-1:0];r.change(e=>{for(const t of l)r.deleteContent(e.createSelection(t,"in"))});const o=r.schema.getNearestSelectionRange(e.createPositionAt(t,0));n.is("documentSelection")?e.setSelection(o):n.setTo(o)}))}_handleInsertTextEvent(e,t){const o=this.editor,n=o.model.document.selection,a=this.getSelectedTableCells(n);if(!a)return;const r=o.editing.view,i=o.editing.mapper,l=a.map(e=>r.createRangeOn(i.toViewElement(e)));t.selection=r.createSelection(l)}_getCellsToSelect(e,t){const o=this.editor.plugins.get("TableUtils"),n=o.getCellLocation(e),a=o.getCellLocation(t),r=Math.min(n.row,a.row),i=Math.max(n.row,a.row),l=Math.min(n.column,a.column),s=Math.max(n.column,a.column),c=new Array(i-r+1).fill(null).map(()=>[]),d={startRow:r,endRow:i,startColumn:l,endColumn:s};for(const{row:h,cell:p}of new xO(e.findAncestor("table"),d))c[h-r].push(p);const u=a.row<n.row,m=a.column<n.column;return u&&c.reverse(),m&&c.forEach(e=>e.reverse()),{cells:c.flat(),backward:u||m}}}class Ej extends Di{static get pluginName(){return"TableClipboard"}static get requires(){return[Dj,ZO]}init(){const e=this.editor,t=e.editing.view.document;this.listenTo(t,"copy",(e,t)=>this._onCopyCut(e,t)),this.listenTo(t,"cut",(e,t)=>this._onCopyCut(e,t)),this.listenTo(e.model,"insertContent",(e,t)=>this._onInsertContent(e,...t),{priority:"high"}),this.decorate("_replaceTableSlotCell")}_onCopyCut(e,t){const o=this.editor.plugins.get(Dj);if(!o.getSelectedTableCells())return;if("cut"==e.name&&this.editor.isReadOnly)return;t.preventDefault(),e.stop();const n=this.editor.data,a=this.editor.editing.view.document,r=n.toView(o.getSelectionAsFragment());a.fire("clipboardOutput",{dataTransfer:t.dataTransfer,content:r,method:e.name})}_onInsertContent(e,t,o){if(o&&!o.is("documentSelection"))return;const n=this.editor.model,a=this.editor.plugins.get(ZO);let r=Tj(t,n);if(!r)return;const i=a.getSelectionAffectedTableCells(n.document.selection);i.length?(e.stop(),n.change(e=>{const t={width:a.getColumns(r),height:a.getRows(r)},o=function(e,t,o,n){const a=e[0].findAncestor("table"),r=n.getColumnIndexes(e),i=n.getRowIndexes(e),l={firstColumn:r.first,lastColumn:r.last,firstRow:i.first,lastRow:i.last},s=1===e.length;return s&&(l.lastRow+=t.height-1,l.lastColumn+=t.width-1,function(e,t,o,n){const a=n.getColumns(e),r=n.getRows(e);o>a&&n.insertColumns(e,{at:a,columns:o-a}),t>r&&n.insertRows(e,{at:r,rows:t-r})}(a,l.lastRow+1,l.lastColumn+1,n)),s||!n.isSelectionRectangular(e)?function(e,t,o){const{firstRow:n,lastRow:a,firstColumn:r,lastColumn:i}=t,l={first:n,last:a},s={first:r,last:i};Bj(e,r,l,o),Bj(e,i+1,l,o),Sj(e,n,s,o),Sj(e,a+1,s,o,n)}(a,l,o):(l.lastRow=UO(a,l),l.lastColumn=HO(a,l)),l}(i,t,e,a),n=o.lastRow-o.firstRow+1,l=o.lastColumn-o.firstColumn+1,s={startRow:0,startColumn:0,endRow:Math.min(n,t.height)-1,endColumn:Math.min(l,t.width)-1};r=IO(r,s,e);const c=i[0].findAncestor("table"),d=this._replaceSelectedCellsWithPasted(r,t,c,o,e);if(this.editor.plugins.get("TableSelection").isEnabled){const t=a.sortRanges(d.map(t=>e.createRangeOn(t)));e.setSelection(t)}else e.setSelection(d[0],0)})):$O(r,a)}_replaceSelectedCellsWithPasted(e,t,o,n,a){const{width:r,height:i}=t,l=function(e,t,o){const n=new Array(o).fill(null).map(()=>new Array(t).fill(null));for(const{column:a,row:r,cell:i}of new xO(e))n[r][a]=i;return n}(e,r,i),s=[...new xO(o,{startRow:n.firstRow,endRow:n.lastRow,startColumn:n.firstColumn,endColumn:n.lastColumn,includeAllSlots:!0})],c=[];let d;for(const b of s){const{row:e,column:t}=b;t===n.firstColumn&&(d=b.getPositionBefore());const o=e-n.firstRow,s=t-n.firstColumn,u=l[o%i][s%r],m=u?a.cloneElement(u):null,h=this._replaceTableSlotCell(b,m,d,a);h&&(PO(h,e,t,n.lastRow,n.lastColumn,a),c.push(h),d=a.createPositionAfter(h))}const u=parseInt(o.getAttribute("headingRows")||0),m=parseInt(o.getAttribute("headingColumns")||0),h=n.firstRow<u&&u<=n.lastRow,p=n.firstColumn<m&&m<=n.lastColumn;if(h){const e=Sj(o,u,{first:n.firstColumn,last:n.lastColumn},a,n.firstRow);c.push(...e)}if(p){const e=Bj(o,m,{first:n.firstRow,last:n.lastRow},a);c.push(...e)}return c}_replaceTableSlotCell(e,t,o,n){const{cell:a,isAnchor:r}=e;return r&&n.remove(a),t?(n.insert(t,o),t):null}getTableIfOnlyTableInContent(e,t){return Tj(e,t)}}function Tj(e,t){if(!e.is("documentFragment")&&!e.is("element"))return null;if(e.is("element","table"))return e;if(1==e.childCount&&e.getChild(0).is("element","table"))return e.getChild(0);const o=t.createRangeIn(e);for(const n of o.getItems())if(n.is("element","table")){const e=t.createRange(o.start,t.createPositionBefore(n));if(t.hasContent(e,{ignoreWhitespaces:!0}))return null;const a=t.createRange(t.createPositionAfter(n),o.end);return t.hasContent(a,{ignoreWhitespaces:!0})?null:n}return null}function Sj(e,t,o,n,a=0){if(!(t<1))return zO(e,t,a).filter(({column:e,cellWidth:t})=>Ij(e,t,o)).map(({cell:e})=>FO(e,t,n))}function Bj(e,t,o,n){if(!(t<1))return MO(e,t).filter(({row:e,cellHeight:t})=>Ij(e,t,o)).map(({cell:e,column:o})=>LO(e,o,t,n))}function Ij(e,t,o){const n=e+t-1,{first:a,last:r}=o;return e>=a&&e<=r||e<a&&n>=a}class zj extends Di{static get pluginName(){return"TableKeyboard"}static get requires(){return[Dj,ZO]}init(){const e=this.editor.editing.view.document;this.listenTo(e,"arrowKey",(...e)=>this._onArrowKey(...e),{context:"table"}),this.listenTo(e,"tab",(...e)=>this._handleTabOnSelectedTable(...e),{context:"figure"}),this.listenTo(e,"tab",(...e)=>this._handleTab(...e),{context:["th","td"]})}_handleTabOnSelectedTable(e,t){const o=this.editor,n=o.model.document.selection.getSelectedElement();n&&n.is("element","table")&&(t.preventDefault(),t.stopPropagation(),e.stop(),o.model.change(e=>{e.setSelection(e.createRangeIn(n.getChild(0).getChild(0)))}))}_handleTab(e,t){const o=this.editor,n=this.editor.plugins.get(ZO),a=o.model.document.selection,r=!t.shiftKey;let i=n.getTableCellsContainingSelection(a)[0];if(i||(i=this.editor.plugins.get("TableSelection").getFocusCell()),!i)return;t.preventDefault(),t.stopPropagation(),e.stop();const l=i.parent,s=l.parent,c=s.getChildIndex(l),d=l.getChildIndex(i),u=0===d;if(!r&&u&&0===c)return void o.model.change(e=>{e.setSelection(e.createRangeOn(s))});const m=d===l.childCount-1,h=c===n.getRows(s)-1;if(r&&h&&m&&(o.execute("insertTableRowBelow"),c===n.getRows(s)-1))return void o.model.change(e=>{e.setSelection(e.createRangeOn(s))});let p;if(r&&m){const e=s.getChild(c+1);p=e.getChild(0)}else if(!r&&u){const e=s.getChild(c-1);p=e.getChild(e.childCount-1)}else p=l.getChild(d+(r?1:-1));o.model.change(e=>{e.setSelection(e.createRangeIn(p))})}_onArrowKey(e,t){const o=this.editor,n=dr(t.keyCode,o.locale.contentLanguageDirection);this._handleArrowKeys(n,t.shiftKey)&&(t.preventDefault(),t.stopPropagation(),e.stop())}_handleArrowKeys(e,t){const o=this.editor.plugins.get(ZO),n=this.editor.model,a=n.document.selection,r=["right","down"].includes(e),i=o.getSelectedTableCells(a);if(i.length){let o;return o=t?this.editor.plugins.get("TableSelection").getFocusCell():r?i[i.length-1]:i[0],this._navigateFromCellInDirection(o,e,t),!0}const l=a.focus.findAncestor("tableCell");if(!l)return!1;if(!a.isCollapsed)if(t){if(a.isBackward==r&&!a.containsEntireContent(l))return!1}else{const e=a.getSelectedElement();if(!e||!n.schema.isObject(e))return!1}return!!this._isSelectionAtCellEdge(a,l,r)&&(this._navigateFromCellInDirection(l,e,t),!0)}_isSelectionAtCellEdge(e,t,o){const n=this.editor.model,a=this.editor.model.schema,r=o?e.getLastPosition():e.getFirstPosition();if(!a.getLimitElement(r).is("element","tableCell"))return n.createPositionAt(t,o?"end":0).isTouching(r);const i=n.createSelection(r);return n.modifySelection(i,{direction:o?"forward":"backward"}),r.isEqual(i.focus)}_navigateFromCellInDirection(e,t,o=!1){const n=this.editor.model,a=e.findAncestor("table"),r=[...new xO(a,{includeAllSlots:!0})],{row:i,column:l}=r[r.length-1],s=r.find(({cell:t})=>t==e);let{row:c,column:d}=s;switch(t){case"left":d--;break;case"up":c--;break;case"right":d+=s.cellWidth;break;case"down":c+=s.cellHeight}if(c<0||c>i||d<0&&c<=0||d>l&&c>=i)return void n.change(e=>{e.setSelection(e.createRangeOn(a))});d<0?(d=o?0:l,c--):d>l&&(d=o?l:0,c++);const u=r.find(e=>e.row==c&&e.column==d).cell,m=["right","down"].includes(t),h=this.editor.plugins.get("TableSelection");if(o&&h.isEnabled){const t=h.getAnchorCell()||e;h.setCellSelection(t,u)}else{const e=n.createPositionAt(u,m?0:"end");n.change(t=>{t.setSelection(e)})}}}class Fj extends yc{constructor(e){super(e),this.domEventType=["mousemove","mouseleave"]}onDomEvent(e){this.fire(e.type,e)}}class Mj extends Di{static get pluginName(){return"TableMouse"}static get requires(){return[Dj,ZO]}init(){this.editor.editing.view.addObserver(Fj),this._enableShiftClickSelection(),this._enableMouseDragSelection()}_enableShiftClickSelection(){const e=this.editor,t=e.plugins.get(ZO);let o=!1;const n=e.plugins.get(Dj);this.listenTo(e.editing.view.document,"mousedown",(a,r)=>{const i=e.model.document.selection;if(!this.isEnabled||!n.isEnabled)return;if(!r.domEvent.shiftKey)return;const l=n.getAnchorCell()||t.getTableCellsContainingSelection(i)[0];if(!l)return;const s=this._getModelTableCellFromDomEvent(r);s&&Lj(l,s)&&(o=!0,n.setCellSelection(l,s),r.preventDefault())}),this.listenTo(e.editing.view.document,"mouseup",()=>{o=!1}),this.listenTo(e.editing.view.document,"selectionChange",e=>{o&&e.stop()},{priority:"highest"})}_enableMouseDragSelection(){const e=this.editor;let t,o,n=!1,a=!1;const r=e.plugins.get(Dj);this.listenTo(e.editing.view.document,"mousedown",(e,o)=>{this.isEnabled&&r.isEnabled&&(o.domEvent.shiftKey||o.domEvent.ctrlKey||o.domEvent.altKey||(t=this._getModelTableCellFromDomEvent(o)))}),this.listenTo(e.editing.view.document,"mousemove",(e,i)=>{if(!i.domEvent.buttons)return;if(!t)return;const l=this._getModelTableCellFromDomEvent(i);l&&Lj(t,l)&&(o=l,n||o==t||(n=!0)),n&&(a=!0,r.setCellSelection(t,o),i.preventDefault())}),this.listenTo(e.editing.view.document,"mouseup",()=>{n=!1,a=!1,t=null,o=null}),this.listenTo(e.editing.view.document,"selectionChange",e=>{a&&e.stop()},{priority:"highest"})}_getModelTableCellFromDomEvent(e){const t=e.target,o=this.editor.editing.view.createPositionAt(t,0);return this.editor.editing.mapper.toModelPosition(o).parent.findAncestor("tableCell",{includeSelf:!0})}}function Lj(e,t){return e.parent.parent==t.parent.parent}var Pj=r(4104),Rj={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};function qj(e){const t=e.getSelectedElement();return t&&Uj(t)?t:null}function $j(e){const t=e.getFirstPosition();if(!t)return null;let o=t.parent;for(;o;){if(o.is("element")&&Uj(o))return o;o=o.parent}return null}function Uj(e){return!!e.getCustomProperty("table")&&Df(e)}Ar()(Pj.Z,Rj),Pj.Z.locals;class Hj extends Tb{}Hj.builtinPlugins=[class extends Di{static get requires(){return[Gb]}static get pluginName(){return"Autoformat"}afterInit(){this._addListAutoformats(),this._addBasicStylesAutoformats(),this._addHeadingAutoformats(),this._addBlockQuoteAutoformats(),this._addCodeBlockAutoformats(),this._addHorizontalLineAutoformats()}_addListAutoformats(){const e=this.editor.commands;e.get("bulletedList")&&pg(this.editor,this,/^[*-]\s$/,"bulletedList"),e.get("numberedList")&&pg(this.editor,this,/^1[.|)]\s$/,"numberedList"),e.get("todoList")&&pg(this.editor,this,/^\[\s?\]\s$/,"todoList"),e.get("checkTodoList")&&pg(this.editor,this,/^\[\s?x\s?\]\s$/,()=>{this.editor.execute("todoList"),this.editor.execute("checkTodoList")})}_addBasicStylesAutoformats(){const e=this.editor.commands;if(e.get("bold")){const e=fg(this.editor,"bold");bg(this.editor,this,/(?:^|\s)(\*\*)([^*]+)(\*\*)$/g,e),bg(this.editor,this,/(?:^|\s)(__)([^_]+)(__)$/g,e)}if(e.get("italic")){const e=fg(this.editor,"italic");bg(this.editor,this,/(?:^|\s)(\*)([^*_]+)(\*)$/g,e),bg(this.editor,this,/(?:^|\s)(_)([^_]+)(_)$/g,e)}if(e.get("code")){const e=fg(this.editor,"code");bg(this.editor,this,/(`)([^`]+)(`)$/g,e)}if(e.get("strikethrough")){const e=fg(this.editor,"strikethrough");bg(this.editor,this,/(~~)([^~]+)(~~)$/g,e)}}_addHeadingAutoformats(){const e=this.editor.commands.get("heading");e&&e.modelElements.filter(e=>e.match(/^heading[1-6]$/)).forEach(t=>{const o=t[7],n=new RegExp(`^(#{${o}})\\s$`);pg(this.editor,this,n,()=>{if(!e.isEnabled||e.value===t)return!1;this.editor.execute("heading",{value:t})})})}_addBlockQuoteAutoformats(){this.editor.commands.get("blockQuote")&&pg(this.editor,this,/^>\s$/,"blockQuote")}_addCodeBlockAutoformats(){const e=this.editor,t=e.model.document.selection;e.commands.get("codeBlock")&&pg(e,this,/^```$/,()=>{if(t.getFirstPosition().parent.is("element","listItem"))return!1;this.editor.execute("codeBlock",{usePreviousLanguageChoice:!0})})}_addHorizontalLineAutoformats(){this.editor.commands.get("horizontalLine")&&pg(this.editor,this,/^---$/,"horizontalLine")}},class extends Di{static get requires(){return[Tg,Ig]}static get pluginName(){return"BlockQuote"}},class extends Di{static get requires(){return[Mg,Pg]}static get pluginName(){return"Bold"}},class extends Di{static get pluginName(){return"CKBox"}static get requires(){return[lf,Rg]}},class extends Fi{static get pluginName(){return"CloudServices"}static get requires(){return[vf]}init(){const e=this.context.config.get("cloudServices")||{};for(const t in e)this[t]=e[t];if(this._tokens=new Map,this.tokenUrl)return this.token=this.context.plugins.get("CloudServicesCore").createToken(this.tokenUrl),this._tokens.set(this.tokenUrl,this.token),this.token.init();this.token=null}registerTokenUrl(e){if(this._tokens.has(e))return Promise.resolve(this.getTokenFor(e));const t=this.context.plugins.get("CloudServicesCore").createToken(e);return this._tokens.set(e,t),t.init()}getTokenFor(e){const t=this._tokens.get(e);if(!t)throw new x("cloudservices-token-not-registered",this);return t}destroy(){super.destroy();for(const e of this._tokens.values())e.destroy()}},class extends Di{static get requires(){return[bv,Og,Cv,Vg,Kb,Ev]}static get pluginName(){return"Essentials"}},class extends Di{static get requires(){return[Hv,Gv]}static get pluginName(){return"FontBackgroundColor"}},class extends Di{static get requires(){return[Yv,Qv]}static get pluginName(){return"FontColor"}},class extends Di{static get requires(){return[tw,ow]}static get pluginName(){return"FontFamily"}},class extends Di{static get requires(){return[sw,uw]}static get pluginName(){return"FontSize"}normalizeSizeOptions(e){return aw(e)}},class extends Di{static get requires(){return[ww,yw]}static get pluginName(){return"Heading"}},class extends Di{static get requires(){return[jw,Nw]}static get pluginName(){return"Highlight"}},class extends Di{static get requires(){return[ok,ak]}static get pluginName(){return"Image"}},class extends Di{static get requires(){return[lk,sk]}static get pluginName(){return"ImageCaption"}},class extends Di{static get requires(){return[xk,Ak]}static get pluginName(){return"ImageStyle"}},class extends Di{static get requires(){return[ev,Iw]}static get pluginName(){return"ImageToolbar"}afterInit(){const e=this.editor,t=e.t,o=e.plugins.get(ev),n=e.plugins.get("ImageUtils");var a;o.register("image",{ariaLabel:t("Image toolbar"),items:(a=e.config.get("image.toolbar")||[],a.map(e=>U(e)?e.name:e)),getRelatedElement:e=>n.getClosestSelectedImageWidget(e)})}},class extends Di{static get pluginName(){return"ImageUpload"}static get requires(){return[Yk,Ik,qk]}},class extends Di{static get pluginName(){return"Indent"}static get requires(){return[Jk,eC]}},class extends Di{static get requires(){return[oC,aC]}static get pluginName(){return"Italic"}},class extends Di{static get requires(){return[$C,ey,ry]}static get pluginName(){return"Link"}},class extends Di{static get requires(){return[Fy,Ly]}static get pluginName(){return"List"}},class extends Di{static get requires(){return[Yy,tO,Jy,Zf]}static get pluginName(){return"MediaEmbed"}},bw,class extends Di{static get pluginName(){return"PasteFromOffice"}static get requires(){return[yf]}init(){const e=this.editor,t=e.editing.view.document,o=[];o.push(new gO(t)),o.push(new uO(t)),e.plugins.get("ClipboardPipeline").on("inputTransformation",(n,a)=>{if(a._isTransformedWithPasteFromOffice)return;if(e.model.document.selection.getFirstPosition().parent.is("element","codeBlock"))return;const r=a.dataTransfer.getData("text/html"),i=o.find(e=>e.isActive(r));i&&(a._parsedData=vO(r,t.stylesProcessor),i.execute(a),a._isTransformedWithPasteFromOffice=!0)},{priority:"high"})}},class extends Di{static get requires(){return[Jw,Iw]}static get pluginName(){return"PictureEditing"}afterInit(){const e=this.editor;e.plugins.has("ImageBlockEditing")&&e.model.schema.extend("imageBlock",{allowAttributes:["sources"]}),e.plugins.has("ImageInlineEditing")&&e.model.schema.extend("imageInline",{allowAttributes:["sources"]}),this._setupConversion(),this._setupImageUploadEditingIntegration()}_setupConversion(){const e=this.editor,t=e.conversion,o=e.plugins.get("ImageUtils");t.for("upcast").add(function(e){const t=["srcset","media","type","sizes"];return e=>{e.on("element:picture",o)};function o(o,n,a){const r=n.viewItem;if(!a.consumable.test(r,{name:!0}))return;const i=new Map;for(const e of r.getChildren())if(e.is("element","source")){const o={};for(const n of t)e.hasAttribute(n)&&a.consumable.test(e,{attributes:n})&&(o[n]=e.getAttribute(n));Object.keys(o).length&&i.set(e,o)}const l=e.findViewImgElement(r);if(!l)return;let s=n.modelCursor.parent;if(!s.is("element","imageBlock")){const e=a.convertItem(l,n.modelCursor);n.modelRange=e.modelRange,n.modelCursor=e.modelCursor,s=fr(e.modelRange.getItems())}a.consumable.consume(r,{name:!0});for(const[e,t]of i)a.consumable.consume(e,{attributes:Object.keys(t)});i.size&&a.writer.setAttribute("sources",Array.from(i.values()),s),a.convertChildren(r,s)}}(o)),t.for("downcast").add(function(e){return e=>{e.on("attribute:sources:imageBlock",t),e.on("attribute:sources:imageInline",t)};function t(t,o,n){if(!n.consumable.consume(o.item,t.name))return;const a=n.writer,r=n.mapper.toViewElement(o.item),i=e.findViewImgElement(r);if(o.attributeNewValue&&o.attributeNewValue.length){const e=a.createContainerElement("picture",null,o.attributeNewValue.map(e=>a.createEmptyElement("source",e))),t=[];let n=i.parent;for(;n&&n.is("attributeElement");){const e=n.parent;a.unwrap(a.createRangeOn(i),n),t.unshift(n),n=e}a.insert(a.createPositionBefore(i),e),a.move(a.createRangeOn(i),a.createPositionAt(e,"end"));for(const o of t)a.wrap(a.createRangeOn(e),o)}else if(i.parent.is("element","picture")){const e=i.parent;a.move(a.createRangeOn(i),a.createPositionBefore(e)),a.remove(e)}}}(o))}_setupImageUploadEditingIntegration(){const e=this.editor;e.plugins.has("ImageUploadEditing")&&this.listenTo(e.plugins.get("ImageUploadEditing"),"uploadComplete",(t,{imageElement:o,data:n})=>{const a=n.sources;a&&e.model.change(e=>{e.setAttributes({sources:a},o)})})}},class extends Di{static get requires(){return[Cj,_j,Dj,Mj,zj,Ej,Zf]}static get pluginName(){return"Table"}},class extends Di{static get requires(){return[ev]}static get pluginName(){return"TableToolbar"}afterInit(){const e=this.editor,t=e.t,o=e.plugins.get(ev),n=e.config.get("table.contentToolbar"),a=e.config.get("table.tableToolbar");n&&o.register("tableContent",{ariaLabel:t("Table toolbar"),items:n,getRelatedElement:$j}),a&&o.register("table",{ariaLabel:t("Table toolbar"),items:a,getRelatedElement:qj})}},class extends Di{static get requires(){return["Delete","Input"]}static get pluginName(){return"TextTransformation"}constructor(e){super(e),e.config.define("typing",{transformations:{include:lg}})}init(){const e=this.editor.model.document.selection;e.on("change:range",()=>{this.isEnabled=!e.anchor.parent.is("element","codeBlock")}),this._enableTransformationWatchers()}_enableTransformationWatchers(){const e=this.editor,t=e.model,o=e.plugins.get("Delete"),n=function(e){const t=e.extra||[],o=e.remove||[],n=e=>!o.includes(e);return function(e){const t=new Set;for(const o of e)if("string"==typeof o&&ig[o])for(const e of ig[o])t.add(e);else t.add(o);return Array.from(t)}(e.include.concat(t).filter(n)).filter(n).map(e=>"string"==typeof e&&rg[e]?rg[e]:e).filter(e=>"object"==typeof e).map(e=>({from:sg(e.from),to:cg(e.to)}))}(e.config.get("typing.transformations")),a=new Qb(e.model,e=>{for(const t of n)if(t.from.test(e))return{normalizedTransformation:t}});a.on("matched:data",(e,n)=>{if(!n.batch.isTyping)return;const{from:a,to:r}=n.normalizedTransformation,i=a.exec(n.text),l=r(i.slice(1)),s=n.range;let c=i.index;t.enqueueChange(e=>{for(let o=1;o<i.length;o++){const n=i[o],a=l[o-1];if(null==a){c+=n.length;continue}const r=s.start.getShiftedBy(c),d=t.createRange(r,r.getShiftedBy(n.length)),u=dg(r);t.insertContent(e.createText(a,u),d),c+=a.length}t.enqueueChange(()=>{o.requestUndoOnBackspace()})})}),a.bind("isEnabled").to(this)}}],Hj.defaultConfig={toolbar:{items:["heading","|","bold","italic","link","bulletedList","numberedList","|","outdent","indent","|","imageUpload","blockQuote","insertTable","mediaEmbed","undo","redo","fontColor","fontFamily","fontSize","fontBackgroundColor","highlight"]},language:"zh-cn",image:{toolbar:["imageTextAlternative","toggleImageCaption","imageStyle:inline","imageStyle:block","imageStyle:side"]},table:{contentToolbar:["tableColumn","tableRow","mergeTableCells"]}};const Wj=Hj})(),i.default})())}).call(this,o("c8ba"),o("62e4")(e))},c47a:function(e,t,o){"use strict";o("538e")},c4a9:function(e,t,o){"use strict";(function(e){o.d(t,"a",(function(){return a}));var n=function(){return"undefined"!==typeof window?window:e},a=function(){var e=n();return e&&e.tinymce?e.tinymce:null}}).call(this,o("c8ba"))},c4ac:function(e,t,o){"use strict";o("785d")},c4f1:function(e,t,o){"use strict";o("5fda")},c572:function(e,t,o){"use strict";o.r(t);var n=o("f2bf");const a={class:"manage-container"},r={class:"manage-input"},i={class:"manage-input"},l={class:"manage-button"};function s(e,t,o,s,c,d){const u=Object(n["resolveComponent"])("el-input"),m=Object(n["resolveComponent"])("el-form-item"),h=Object(n["resolveComponent"])("vab-query-form"),p=Object(n["resolveComponent"])("el-form"),b=Object(n["resolveComponent"])("el-option"),g=Object(n["resolveComponent"])("el-select"),f=Object(n["resolveComponent"])("el-button"),v=Object(n["resolveComponent"])("el-table-column"),w=Object(n["resolveComponent"])("el-tag"),k=Object(n["resolveComponent"])("el-switch"),C=Object(n["resolveComponent"])("el-table"),y=Object(n["resolveComponent"])("el-pagination"),O=Object(n["resolveComponent"])("device-edit"),j=Object(n["resolveComponent"])("copy-device"),x=Object(n["resolveComponent"])("sync-device"),_=Object(n["resolveDirective"])("loading");return Object(n["openBlock"])(),Object(n["createElementBlock"])("div",a,[Object(n["createElementVNode"])("div",r,[Object(n["createVNode"])(p,{ref:"queryForm",model:c.queryForm,"label-width":"80px"},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(h,null,{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(m,{width:"100",prop:"name",label:e.$t("dataEnquiry.zdmc")},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(u,{modelValue:c.queryForm.name,"onUpdate:modelValue":t[0]||(t[0]=e=>c.queryForm.name=e),size:"small",placeholder:e.$t("dataEnquiry.qsrzdmc")},null,8,["modelValue","placeholder"])]),_:1},8,["label"]),Object(n["createVNode"])(m,{width:"100",prop:"serial",label:e.$t("dataEnquiry.xlh")},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(u,{modelValue:c.queryForm.serial,"onUpdate:modelValue":t[1]||(t[1]=e=>c.queryForm.serial=e),size:"small",placeholder:e.$t("dataEnquiry.qsrxlh")},null,8,["modelValue","placeholder"])]),_:1},8,["label"]),Object(n["createVNode"])(m,{width:"100",prop:"community",label:e.$t("dataEnquiry.sq")},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(u,{modelValue:c.queryForm.community,"onUpdate:modelValue":t[2]||(t[2]=e=>c.queryForm.community=e),size:"small",placeholder:e.$t("dataEnquiry.qsrsq")},null,8,["modelValue","placeholder"])]),_:1},8,["label"])]),_:1})]),_:1},8,["model"])]),Object(n["createElementVNode"])("div",i,[Object(n["createVNode"])(p,{ref:"queryForm",model:c.queryForm,"label-width":"80px"},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(h,null,{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(m,{width:"100",prop:"townCode",label:e.$t("dataEnquiry.jd")},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(g,{modelValue:c.queryForm.townCode,"onUpdate:modelValue":t[3]||(t[3]=e=>c.queryForm.townCode=e),size:"small",placeholder:e.$t("dataEnquiry.qxzjd")},{default:Object(n["withCtx"])(()=>[(Object(n["openBlock"])(!0),Object(n["createElementBlock"])(n["Fragment"],null,Object(n["renderList"])(c.townData,e=>(Object(n["openBlock"])(),Object(n["createBlock"])(b,{key:e.townCode,label:e.townName,value:e.townCode},null,8,["label","value"]))),128))]),_:1},8,["modelValue","placeholder"])]),_:1},8,["label"]),Object(n["createVNode"])(m,{width:"100",prop:"commPro",label:e.$t("dataEnquiry.txxy")},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(g,{modelValue:c.queryForm.commPro,"onUpdate:modelValue":t[4]||(t[4]=e=>c.queryForm.commPro=e),size:"small",placeholder:"请选择通信协议"},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(b,{value:"全部",label:e.$t("dataEnquiry.qb")},null,8,["label"]),(Object(n["openBlock"])(!0),Object(n["createElementBlock"])(n["Fragment"],null,Object(n["renderList"])(c.dictData,e=>(Object(n["openBlock"])(),Object(n["createBlock"])(b,{key:e.dataCode,label:e.dataValue,value:e.dataCode},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1},8,["label"]),Object(n["createVNode"])(m,{width:"100",prop:"status",label:e.$t("dataEnquiry.zt")},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(g,{modelValue:c.queryForm.status,"onUpdate:modelValue":t[5]||(t[5]=e=>c.queryForm.status=e),size:"small",placeholder:"请选择状态"},{default:Object(n["withCtx"])(()=>[(Object(n["openBlock"])(!0),Object(n["createElementBlock"])(n["Fragment"],null,Object(n["renderList"])(c.statusData,e=>(Object(n["openBlock"])(),Object(n["createBlock"])(b,{key:e.value,label:e.label,value:e.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1},8,["label"])]),_:1})]),_:1},8,["model"])]),Object(n["createElementVNode"])("div",l,[Object(n["createVNode"])(f,{size:"small",onClick:t[6]||(t[6]=e=>d.resetForm())},{default:Object(n["withCtx"])(()=>[Object(n["createTextVNode"])(Object(n["toDisplayString"])(e.$t("defalult.chongz")),1)]),_:1}),Object(n["createVNode"])(f,{type:"primary",size:"small",onClick:d.search},{default:Object(n["withCtx"])(()=>[Object(n["createTextVNode"])(Object(n["toDisplayString"])(e.$t("defalult.cx")),1)]),_:1},8,["onClick"]),Object(n["createVNode"])(f,{type:"primary",size:"small",onClick:d.handleAdd},{default:Object(n["withCtx"])(()=>[Object(n["createTextVNode"])(Object(n["toDisplayString"])(e.$t("device.tjzd")),1)]),_:1},8,["onClick"]),Object(n["createVNode"])(f,{type:"primary",size:"small",onClick:d.deletes},{default:Object(n["withCtx"])(()=>[Object(n["createTextVNode"])(Object(n["toDisplayString"])(e.$t("defalult.plsc")),1)]),_:1},8,["onClick"]),Object(n["createVNode"])(f,{type:"primary",size:"small",onClick:d.exportData},{default:Object(n["withCtx"])(()=>[Object(n["createTextVNode"])(Object(n["toDisplayString"])(e.$t("defalult.dc")),1)]),_:1},8,["onClick"]),Object(n["createVNode"])(f,{type:"primary",size:"small",onClick:d.fboxSync},{default:Object(n["withCtx"])(()=>[Object(n["createTextVNode"])(Object(n["toDisplayString"])(e.$t("device.hztb")),1)]),_:1},8,["onClick"])]),Object(n["withDirectives"])((Object(n["openBlock"])(),Object(n["createBlock"])(C,{id:"table",data:c.deviceData,border:"",stripe:"",style:{width:"100%"},onSelectionChange:d.handleSelectionChange},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(v,{type:"selection",width:"55"}),Object(n["createVNode"])(v,{prop:"id",label:"ID",width:"60",align:"center"}),Object(n["createVNode"])(v,{prop:"name",label:e.$t("dataEnquiry.zdmc"),width:"160",align:"center"},null,8,["label"]),Object(n["createVNode"])(v,{prop:"code",label:e.$t("dataEnquiry.zdbm"),width:"200",align:"center"},null,8,["label"]),Object(n["createVNode"])(v,{prop:"serial",label:e.$t("dataEnquiry.xlh"),width:"200",align:"center"},null,8,["label"]),Object(n["createVNode"])(v,{prop:"status",label:e.$t("dataEnquiry.ljzt"),width:"120",align:"center"},{default:Object(n["withCtx"])(({row:t})=>["已连接"==t.status?(Object(n["openBlock"])(),Object(n["createBlock"])(w,{key:"已连接",effect:"dark",type:"success",size:"mini"},{default:Object(n["withCtx"])(()=>[Object(n["createTextVNode"])(Object(n["toDisplayString"])(e.$t("dataEnquiry.ylj")),1)]),_:1})):Object(n["createCommentVNode"])("",!0),"未连接"==t.status?(Object(n["openBlock"])(),Object(n["createBlock"])(w,{key:"未连接",effect:"dark",type:"danger",size:"mini"},{default:Object(n["withCtx"])(()=>[Object(n["createTextVNode"])(Object(n["toDisplayString"])(e.$t("dataEnquiry.wlj")),1)]),_:1})):Object(n["createCommentVNode"])("",!0)]),_:1},8,["label"]),Object(n["createVNode"])(v,{prop:"enableStatus",label:e.$t("dataEnquiry.zt"),align:"center"},{default:Object(n["withCtx"])(e=>[Object(n["createVNode"])(k,{modelValue:e.row.enableStatus,"onUpdate:modelValue":t=>e.row.enableStatus=t,"active-value":"1","inactive-value":"0",onClick:t=>d.updateStatus(e.row.enableStatus,e.row.id)},null,8,["modelValue","onUpdate:modelValue","onClick"])]),_:1},8,["label"]),Object(n["createVNode"])(v,{prop:"commPro.dataValue",label:e.$t("dataEnquiry.txxy"),width:"200",align:"center"},null,8,["label"]),Object(n["createVNode"])(v,{prop:"screenView.dataValue",label:e.$t("device.ztdp"),width:"200",align:"center"},null,8,["label"]),Object(n["createVNode"])(v,{prop:"longitude",label:e.$t("project.jd"),width:"200",align:"center"},null,8,["label"]),Object(n["createVNode"])(v,{prop:"latitude",label:e.$t("project.wd"),width:"200",align:"center"},null,8,["label"]),Object(n["createVNode"])(v,{prop:"offlineDelay",label:e.$t("device.lxys"),width:"200",align:"center"},null,8,["label"]),Object(n["createVNode"])(v,{prop:"townName",label:e.$t("dataEnquiry.xzjdmc"),width:"200",align:"center"},null,8,["label"]),Object(n["createVNode"])(v,{prop:"community",label:e.$t("dataEnquiry.sq"),width:"200",align:"center"},null,8,["label"]),Object(n["createVNode"])(v,{prop:"specifications",label:e.$t("dataEnquiry.sbgg"),width:"200",align:"center"},null,8,["label"]),Object(n["createVNode"])(v,{prop:"offlineDelay",label:e.$t("dataEnquiry.lxyzm"),width:"100",align:"center"},null,8,["label"]),Object(n["createVNode"])(v,{prop:"commPro.dataValue",label:e.$t("dataEnquiry.txxy"),width:"100",align:"center"},null,8,["label"]),Object(n["createVNode"])(v,{prop:"project.name",label:e.$t("dataEnquiry.xm"),width:"200",align:"center"},null,8,["label"]),Object(n["createVNode"])(v,{prop:"specifications",label:e.$t("dataEnquiry.sbggd"),width:"100",align:"center"},null,8,["label"]),Object(n["createVNode"])(v,{prop:"simNum",label:e.$t("dataEnquiry.skjjhm"),width:"150",align:"center"},null,8,["label"]),Object(n["createVNode"])(v,{prop:"technology.dataValue",label:e.$t("dataEnquiry.sbgy"),width:"100",align:"center"},null,8,["label"]),Object(n["createVNode"])(v,{prop:"material.dataValue",label:e.$t("dataEnquiry.sbcz"),width:"100",align:"center"},null,8,["label"]),Object(n["createVNode"])(v,{prop:"outStandard.dataValue",label:e.$t("dataEnquiry.csbz"),width:"100",align:"center"},null,8,["label"]),Object(n["createVNode"])(v,{prop:"leader",label:e.$t("dataEnquiry.ywry"),width:"100",align:"center"},null,8,["label"]),Object(n["createVNode"])(v,{prop:"contact",label:e.$t("project.lxfs"),width:"100",align:"center"},null,8,["label"]),Object(n["createVNode"])(v,{prop:"type.dataValue",label:e.$t("dataEnquiry.sblx"),width:"100",align:"center"},null,8,["label"]),Object(n["createVNode"])(v,{prop:"userNum",label:e.$t("dataEnquiry.fwyhs"),width:"100",align:"center"},null,8,["label"]),Object(n["createVNode"])(v,{prop:"onlineTime",label:e.$t("dataEnquiry.sxsj"),width:"200",align:"center"},null,8,["label"]),Object(n["createVNode"])(v,{prop:"offlineTime",label:e.$t("dataEnquiry.lxsj"),width:"200",align:"center"},null,8,["label"]),Object(n["createVNode"])(v,{prop:"offlineDuration",label:e.$t("dataEnquiry.lxsc"),width:"150",align:"center"},null,8,["label"]),Object(n["createVNode"])(v,{fixed:"right",label:e.$t("defalult.cz"),width:"280",align:"center"},{default:Object(n["withCtx"])(({row:t})=>[Object(n["createVNode"])(f,{type:"text",onClick:e=>d.sensorData(t)},{default:Object(n["withCtx"])(()=>[Object(n["createTextVNode"])(Object(n["toDisplayString"])(e.$t("device.sj")),1)]),_:2},1032,["onClick"]),Object(n["createVNode"])(f,{type:"text",onClick:e=>d.sensorEdit(t)},{default:Object(n["withCtx"])(()=>[Object(n["createTextVNode"])(Object(n["toDisplayString"])(e.$t("device.cgq")),1)]),_:2},1032,["onClick"]),Object(n["createVNode"])(f,{type:"text",onClick:e=>d.copyDevice(t)},{default:Object(n["withCtx"])(()=>[Object(n["createTextVNode"])(Object(n["toDisplayString"])(e.$t("device.fz")),1)]),_:2},1032,["onClick"]),Object(n["createVNode"])(f,{type:"text",onClick:e=>d.handleEdit(t)},{default:Object(n["withCtx"])(()=>[Object(n["createTextVNode"])(Object(n["toDisplayString"])(e.$t("defalult.bj")),1)]),_:2},1032,["onClick"]),Object(n["createVNode"])(f,{type:"text",onClick:e=>d.handleDelete(t)},{default:Object(n["withCtx"])(()=>[Object(n["createTextVNode"])(Object(n["toDisplayString"])(e.$t("defalult.sc")),1)]),_:2},1032,["onClick"])]),_:1},8,["label"])]),_:1},8,["data","onSelectionChange"])),[[_,c.listLoading]]),Object(n["createVNode"])(y,{background:c.background,"current-page":c.queryForm.page,layout:c.layout,"page-size":c.queryForm.size,total:c.total,style:{"text-align":"right"},onCurrentChange:d.handleCurrentChange,onSizeChange:d.handleSizeChange},null,8,["background","current-page","layout","page-size","total","onCurrentChange","onSizeChange"]),Object(n["createVNode"])(O,{ref:"edit"},null,512),Object(n["createVNode"])(j,{ref:"copy"},null,512),Object(n["createVNode"])(x,{ref:"sync"},null,512)])}o("14d9");var c=o("aa98"),d=o("3038"),u=o("a284"),m=o("a4c3"),h=o("6f3b"),p={name:"Index",components:{CopyDevice:m["default"],deviceEdit:u["default"],syncDevice:h["default"]},data(){return{deviceData:[],lazy:!0,activeName:"first",layout:"total, sizes, prev, pager, next, jumper",total:0,input:"",textarea:"",list:[],townData:[],dictData:[],background:!0,listLoading:!0,ids:[],elementLoadingText:"正在加载...",statusData:[{label:"all",value:3},{label:"离线",value:0},{label:"在线",value:1}],queryForm:{page:1,size:20,name:"",projectId:"",serial:"",community:"",townCode:"",commPro:"Entire agreement",status:3}}},computed:{height(){return 500}},mounted(){const e=void 0===this.$route.query.projectId?sessionStorage.getItem("projectId"):this.$route.query.projectId;this.queryForm.projectId=e,this.fetchData(),this.getTownData(),this.getDictData()},methods:{async fetchData(){this.listLoading=!0;const{data:e}=await Object(c["getDeviceData"])(this.queryForm);this.deviceData=e.items,this.total=e.total,setTimeout(()=>{this.listLoading=!1},500)},async getTownData(){const{data:e}=await Object(c["getTownsByProject"])(this.queryForm);this.townData=e},async getDictData(){const{data:e}=await Object(c["getDictData"])(this.queryForm);this.dictData=e.communicationProtocol},resetForm(){this.$refs.queryForm.resetFields()},search(){this.fetchData()},async exportData(){const e=await Object(c["exportIotDevice"])(this.queryForm);d["default"].downloadFile(e,{fileName:"站点列表.xls"})},sensorData(e){this.$router.push({name:"传感器数据",path:"/sensorIotData",query:{deviceCode:e.code,deviceId:e.id}})},sensorEdit(e){this.$router.push({name:"传感器管理",path:"/sensor",query:{deviceId:e.id,projectId:this.queryForm.projectId}})},async updateStatus(e,t){console.log(e);const{code:o,msg:n}=await Object(c["doEdit"])({enableStatus:parseInt(e),id:t});0==o?this.$notify({title:n,type:"success"}):this.$notify.error({title:n}),this.fetchData()},handleAdd(){this.$refs["edit"].showEdit({projectId:this.queryForm.projectId},1)},handleEdit(e){this.$refs["edit"].showEdit(e,2)},async fboxSync(){this.$refs["sync"].showSync(this.queryForm)},copyDevice(e){this.$refs["copy"].showCopy(e)},handleQuery(){this.queryForm.page=1,this.fetchData()},handleSizeChange(e){this.queryForm.size=e,this.fetchData()},handleCurrentChange(e){this.queryForm.page=e,this.fetchData()},deletes(){const e=this.ids;if(0==e.length)return this.$message({type:"info",message:"没有选中任何项"}),!1;this.deleteData(e)},handleSelectionChange(e){const t=[];e.forEach(e=>{t.push(e.id)}),this.ids=t,console.log(this.ids)},deleteData(e){this.$confirm("你确定要删除当前项吗?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(()=>{const{msg:t}=Object(c["doDelete"])(e);this.$message({type:"success",message:void 0==t?"删除成功":t});const o=this;setTimeout((function(){o.fetchData()}),1e3)}).catch(()=>{this.$message({type:"info",message:"已取消删除"})})},handleDelete(e){e.id&&this.deleteData([e.id])}}},b=(o("b11d"),o("cfd7"),o("d959")),g=o.n(b);const f=g()(p,[["render",s],["__scopeId","data-v-ae2ae29c"]]);t["default"]=f},c576:function(e,t,o){},c591:function(e,t,o){"use strict";o.r(t),o.d(t,"getCity",(function(){return a}));var n=o("b775");function a(e){return Object(n["default"])({url:"/iot/project/getLayerSysArea",method:"get",data:e})}},c5a0:function(e,t,o){"use strict";o("3f42")},c5af:function(e,t,o){"use strict";o.r(t);var n=o("f2bf");const a={class:"manage-container"},r={class:"manage-wrap"},i={class:"manage-input"},l={class:"manage-button"};function s(e,t,o,s,c,d){const u=Object(n["resolveComponent"])("el-input"),m=Object(n["resolveComponent"])("el-form-item"),h=Object(n["resolveComponent"])("el-date-picker"),p=Object(n["resolveComponent"])("vab-query-form"),b=Object(n["resolveComponent"])("el-form"),g=Object(n["resolveComponent"])("el-button"),f=Object(n["resolveComponent"])("el-table-column"),v=Object(n["resolveComponent"])("el-table"),w=Object(n["resolveComponent"])("el-pagination");return Object(n["openBlock"])(),Object(n["createElementBlock"])("div",a,[Object(n["createElementVNode"])("div",r,[Object(n["createElementVNode"])("div",i,[Object(n["createVNode"])(b,{ref:"queryForm",model:c.queryForm,"label-width":"80px"},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(p,null,{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(m,{width:"100",prop:"userName",label:e.$t("staff.yhm")},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(u,{modelValue:c.queryForm.userName,"onUpdate:modelValue":t[0]||(t[0]=e=>c.queryForm.userName=e),size:"small",placeholder:"请输入用户名"},null,8,["modelValue"])]),_:1},8,["label"]),Object(n["createVNode"])(m,{width:"100",prop:"time",label:e.$t("defalult.rq")},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(h,{modelValue:c.queryForm.time,"onUpdate:modelValue":t[1]||(t[1]=e=>c.queryForm.time=e),size:"small",type:"daterange",align:"right","start-placeholder":"开始时间","end-placeholder":"结束时间",onChange:d.changeTime},null,8,["modelValue","onChange"])]),_:1},8,["label"])]),_:1})]),_:1},8,["model"])]),Object(n["createElementVNode"])("div",l,[Object(n["createVNode"])(g,{size:"small",onClick:t[2]||(t[2]=e=>d.resetForm())},{default:Object(n["withCtx"])(()=>[Object(n["createTextVNode"])(Object(n["toDisplayString"])(e.$t("defalult.chongz")),1)]),_:1}),Object(n["createVNode"])(g,{type:"primary",size:"small",onClick:d.search},{default:Object(n["withCtx"])(()=>[Object(n["createTextVNode"])(Object(n["toDisplayString"])(e.$t("defalult.cx")),1)]),_:1},8,["onClick"]),Object(n["createVNode"])(g,{type:"primary",size:"small",onClick:d.exportData},{default:Object(n["withCtx"])(()=>[Object(n["createTextVNode"])(Object(n["toDisplayString"])(e.$t("defalult.dc")),1)]),_:1},8,["onClick"])])]),Object(n["createVNode"])(v,{data:c.tableData,stripe:"",border:"",style:{width:"100%"},onSelectionChange:d.handleSelectionChange},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(f,{fixed:"",type:"selection",width:"40",align:"center"}),Object(n["createVNode"])(f,{prop:"userName",label:e.$t("staff.yhm"),width:"120",align:"center"},null,8,["label"]),Object(n["createVNode"])(f,{prop:"loginIp",label:"登录IP",width:"150",align:"center"}),Object(n["createVNode"])(f,{prop:"loginLocation",label:"登录地址",width:"130",align:"center"}),Object(n["createVNode"])(f,{prop:"browser",label:"浏览器",width:"100",align:"center"}),Object(n["createVNode"])(f,{prop:"os",label:"系统",width:"280",align:"center"}),Object(n["createVNode"])(f,{prop:"msg",label:e.$t("dataEnquiry.zt"),width:"100",align:"center"},null,8,["label"]),Object(n["createVNode"])(f,{prop:"loginTime",label:"登录时间",width:"180",align:"center"}),Object(n["createVNode"])(f,{fixed:"right",prop:"details",label:e.$t("defalult.cz"),align:"center"},{default:Object(n["withCtx"])(({row:t})=>[Object(n["createVNode"])(g,{type:"text",onClick:e=>d.handleDelete(t)},{default:Object(n["withCtx"])(()=>[Object(n["createTextVNode"])(Object(n["toDisplayString"])(e.$t("defalult.sc")),1)]),_:2},1032,["onClick"])]),_:1},8,["label"])]),_:1},8,["data","onSelectionChange"]),Object(n["createVNode"])(w,{background:c.background,"current-page":c.queryForm.page,layout:c.layout,"page-size":c.queryForm.size,total:c.total,style:{"text-align":"right"},onCurrentChange:d.handleCurrentChange,onSizeChange:d.handleSizeChange},null,8,["background","current-page","layout","page-size","total","onCurrentChange","onSizeChange"])])}o("14d9");var c=o("8916"),d=o("5f99"),u=o("3038"),m={data(){return{tableData:[],dialogTableVisible:!1,lazy:!0,layout:"total, sizes, prev, pager, next, jumper",total:0,background:!0,listLoading:!1,elementLoadingText:"正在加载...",ids:[],queryForm:{page:1,size:20,userName:"",start:"",end:"",time:""}}},created(){this.fetchData()},methods:{changeTime(){this.queryForm.start=Object(d["getDate"])(this.queryForm.time[0]),this.queryForm.end=Object(d["getDate"])(this.queryForm.time[1])},setDefaultTime(){this.queryForm.time=Object(d["getPastTime"])(1),this.queryForm.start=Object(d["getDate"])(this.queryForm.time[0]),this.queryForm.end=Object(d["getDate"])(this.queryForm.time[1])},async fetchData(){const{data:e}=await Object(c["loginLogData"])(this.queryForm);this.tableData=e.items,this.total=e.total},search(){this.fetchData()},resetForm(){this.$refs.queryForm.resetFields()},async exportData(){const e=await Object(c["exportLoginLog"])(this.queryForm);u["default"].downloadPostFile(e,{fileName:"登录日志.xls"})},deletes(){const e=this.ids;if(0==e.length)return this.$message({type:"info",message:"没有选中任何项"}),!1;this.deleteData(e)},handleSelectionChange(e){const t=[];e.forEach(e=>{t.push(e.id)}),this.ids=t},deleteData(e){const t=this;this.$confirm("你确定要删除当前项吗?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(()=>{const{msg:o}=Object(c["removeLoginData"])(e);this.$message({type:"success",message:void 0==o?"删除成功":o}),setTimeout((function(){t.fetchData()}),1e3)}).catch(()=>{this.$message({type:"info",message:"已取消删除"})})},handleDelete(e){const t=this;t.deleteData([e.id])},handleQuery(){this.queryForm.page=1,this.fetchData()},handleSizeChange(e){this.queryForm.size=e,this.fetchData()},handleCurrentChange(e){this.queryForm.page=e,this.fetchData()}}},h=(o("11fa"),o("7e1d"),o("d959")),p=o.n(h);const b=p()(m,[["render",s],["__scopeId","data-v-780aefa0"]]);t["default"]=b},c60d:function(e,t,o){"use strict";o("bf12")},c67c:function(e,t,o){},c730:function(e,t,o){},c781:function(e,t,o){"use strict";o("d048b")},c847:function(e,t,o){"use strict";o.r(t);var n=o("f2bf");const a={class:"dialog-footer"};function r(e,t,o,r,i,l){const s=Object(n["resolveComponent"])("el-option"),c=Object(n["resolveComponent"])("el-select"),d=Object(n["resolveComponent"])("el-form-item"),u=Object(n["resolveComponent"])("el-form"),m=Object(n["resolveComponent"])("el-button"),h=Object(n["resolveComponent"])("el-dialog");return Object(n["openBlock"])(),Object(n["createBlock"])(h,{modelValue:i.dialogFormVisible,"onUpdate:modelValue":t[1]||(t[1]=e=>i.dialogFormVisible=e),title:i.title,rules:i.rules,width:"500px",onClose:l.close},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(u,{ref:"form",model:i.form,rules:i.rules,"label-width":"60px"},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(d,{label:e.$t("dataEnquiry.xm"),prop:"projectId"},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(c,{modelValue:i.form.projectId,"onUpdate:modelValue":t[0]||(t[0]=e=>i.form.projectId=e),size:"small",multiple:"",placeholder:"请选择"},{default:Object(n["withCtx"])(()=>[(Object(n["openBlock"])(!0),Object(n["createElementBlock"])(n["Fragment"],null,Object(n["renderList"])(i.projectData,e=>(Object(n["openBlock"])(),Object(n["createBlock"])(s,{key:e.id,label:e.name,value:e.id},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1},8,["label"])]),_:1},8,["model","rules"]),Object(n["createElementVNode"])("div",a,[Object(n["createVNode"])(m,{type:"primary",size:"small",onClick:l.save},{default:Object(n["withCtx"])(()=>t[2]||(t[2]=[Object(n["createTextVNode"])("确 定")])),_:1},8,["onClick"]),Object(n["createVNode"])(m,{size:"small",onClick:l.close},{default:Object(n["withCtx"])(()=>t[3]||(t[3]=[Object(n["createTextVNode"])("取 消")])),_:1},8,["onClick"])])]),_:1},8,["modelValue","title","rules","onClose"])}o("14d9");var i=o("fbb2"),l={data(){return{form:{imei:"",num:"",projectIds:"",projectId:[]},rules:{projectId:[{required:!0,trigger:"change",message:"请选择项目"}]},projectData:[],clearable:!0,title:"",dialogFormVisible:!1}},created(){},methods:{async getProjectData(){const{data:e}=await Object(i["getProjects"])();this.projectData=e},bindProduct(e){this.title="绑定项目";const t=[];if(e.projects)for(var o=0;o<e.projects.length;o++)t.push(e.projects[o].id);this.form.projectId=t,this.form.imei=e.imei,this.form.num=e.vehicleNumber,this.form.projectIds=t.join(","),console.log(this.form),this.dialogFormVisible=!0,this.getProjectData()},close(){this.$refs["form"].resetFields(),this.form=this.$options.data().form,this.dialogFormVisible=!1,this.$emit("fetch-data")},save(){console.log(this.form),this.$refs["form"].validate(async e=>{if(!e)return!1;{this.form.projectIds=this.form.projectId.join(",");const{msg:e}=await Object(i["bindProject"])(this.form);this.$notify({title:e,type:"success"}),this.$refs["form"].resetFields(),this.dialogFormVisible=!1,this.$parent.fetchData()}})}}},s=(o("b0c4"),o("d959")),c=o.n(s);const d=c()(l,[["render",r]]);t["default"]=d},c874:function(e,t,o){e.exports={"menu-color":"hsla(0,0%,27%,.95)","menu-color-active":"hsla(208,100%,55%,.95)","menu-background":"#fff","gallery-second-menu-background":"#fff"}},c8ae:function(e,t,o){},c8e3:function(e,t,o){},c9ab:function(e,t,o){"use strict";o("034c")},c9ee:function(e,t,o){"use strict";o.r(t),o.d(t,"getWaterApply",(function(){return r})),o.d(t,"getDictData",(function(){return i})),o.d(t,"doDelete",(function(){return l})),o.d(t,"doAdd",(function(){return s})),o.d(t,"doEdit",(function(){return c})),o.d(t,"exportWaterApply",(function(){return d}));var n=o("b775"),a=o("f121");function r(e){var t="?page="+e.page+"&size="+e.size+"&projectId="+e.projectId;return""!=e.deviceName&&(t+="&deviceName="+e.deviceName),""!=e.signUser&&(t+="&signUser="+e.signUser),""!=e.date&&(t+="&date="+e.date),Object(n["default"])({url:"/waterApply/list"+t,method:"get",data:e})}function i(e){return Object(n["default"])({url:"/waterApply/dict",method:"get",data:e})}function l(e){return Object(n["default"])({url:"/waterApply/remove",method:"post",data:e})}function s(e){return Object(n["default"])({url:"/waterApply/add",method:"post",data:e})}function c(e){return Object(n["default"])({url:"/waterApply/update",method:"post",data:e})}function d(e){var t="?projectId="+e.projectId;return""!=e.signUser&&(t+="&signUser="+e.signUser),""!=e.deviceName&&(t+="&deviceName="+e.deviceName),""!=e.date&&(t+="&date="+e.date),a["baseURL"]+"waterApplyReport/export"+t}},ca1f:function(e,t,o){e.exports={"menu-color":"hsla(0,0%,27%,.95)","menu-color-active":"hsla(208,100%,55%,.95)","menu-background":"#fff","gallery-second-menu-background":"#fff"}},ca6a:function(e,t,o){"use strict";o.r(t);var n=o("f2bf");const a={class:"dialog-footer"};function r(e,t,o,r,i,l){const s=Object(n["resolveComponent"])("el-input"),c=Object(n["resolveComponent"])("el-radio-button"),d=Object(n["resolveComponent"])("el-radio-group"),u=Object(n["resolveComponent"])("el-form-item"),m=Object(n["resolveComponent"])("el-form"),h=Object(n["resolveComponent"])("el-button"),p=Object(n["resolveComponent"])("el-dialog");return Object(n["openBlock"])(),Object(n["createBlock"])(p,{modelValue:i.dialogFormVisible,"onUpdate:modelValue":t[2]||(t[2]=e=>i.dialogFormVisible=e),title:i.title,width:"500px",onClose:l.close},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(m,{ref:"form",model:i.form,rules:i.rules,"label-width":"80px","label-position":"left"},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(u,{label:"数据下发",prop:"dataValue"},{default:Object(n["withCtx"])(()=>[i.is_text?(Object(n["openBlock"])(),Object(n["createBlock"])(s,{key:0,modelValue:i.form.dataValue,"onUpdate:modelValue":t[0]||(t[0]=e=>i.form.dataValue=e),type:"text"},null,8,["modelValue"])):(Object(n["openBlock"])(),Object(n["createBlock"])(d,{key:1,modelValue:i.form.dataValue,"onUpdate:modelValue":t[1]||(t[1]=e=>i.form.dataValue=e)},{default:Object(n["withCtx"])(()=>[(Object(n["openBlock"])(!0),Object(n["createElementBlock"])(n["Fragment"],null,Object(n["renderList"])(i.unitData,(e,t)=>(Object(n["openBlock"])(),Object(n["createElementBlock"])("div",{key:t},["故障"!=e.label?(Object(n["openBlock"])(),Object(n["createBlock"])(c,{key:0,label:e.value},{default:Object(n["withCtx"])(()=>[Object(n["createTextVNode"])(Object(n["toDisplayString"])(e.label),1)]),_:2},1032,["label"])):Object(n["createCommentVNode"])("",!0)]))),128))]),_:1},8,["modelValue"]))]),_:1})]),_:1},8,["model","rules"]),Object(n["createElementVNode"])("div",a,[Object(n["createVNode"])(h,{size:"small",onClick:l.close},{default:Object(n["withCtx"])(()=>t[3]||(t[3]=[Object(n["createTextVNode"])("取 消")])),_:1},8,["onClick"]),Object(n["createVNode"])(h,{type:"primary",size:"small",onClick:l.save},{default:Object(n["withCtx"])(()=>t[4]||(t[4]=[Object(n["createTextVNode"])("确 定")])),_:1},8,["onClick"])])]),_:1},8,["modelValue","title","onClose"])}o("14d9");var i=o("7cf8"),l={data(){return{form:{deviceCode:"",dataKey:"",dataValue:""},is_text:!1,rules:{projectId:[{required:!0,trigger:"change",message:"请选择项目"}]},title:"",dialogFormVisible:!1,unitData:[]}},created(){},methods:{showEdit(e){this.title="下发数据",this.form.deviceCode=e.deviceCode,this.form.dataKey=e.dataKey,"1"==e.convertFlag?this.is_text=!1:this.is_text=!0;const t=e.unit;if(t.indexOf(";")){const e=t.split(";"),o=[];for(let t=0;t<e.length;t++){const n=e[t].split(":");o.push({value:n[0],label:n[1]})}this.unitData=o}this.dialogFormVisible=!0},close(){this.$refs["form"].resetFields(),this.form=this.$options.data().form,this.dialogFormVisible=!1,this.$emit("fetch-data")},save(){this.$refs["form"].validate(async e=>{if(!e)return!1;{const{msg:e,code:t}=await Object(i["writeData"])(this.form);0===t?this.$notify({title:e,type:"success"}):this.$notify({title:e,type:"error"}),this.$refs["form"].resetFields(),this.dialogFormVisible=!1,this.$parent.fetchData()}})}}},s=o("d959"),c=o.n(s);const d=c()(l,[["render",r]]);t["default"]=d},ca72:function(e,t,o){"use strict";var n=o("f2bf"),a=["onActivate","onAddUndo","onBeforeAddUndo","onBeforeExecCommand","onBeforeGetContent","onBeforeRenderUI","onBeforeSetContent","onBeforePaste","onBlur","onChange","onClearUndos","onClick","onContextMenu","onCopy","onCut","onDblclick","onDeactivate","onDirty","onDrag","onDragDrop","onDragEnd","onDragGesture","onDragOver","onDrop","onExecCommand","onFocus","onFocusIn","onFocusOut","onGetContent","onHide","onInit","onKeyDown","onKeyPress","onKeyUp","onLoadContent","onMouseDown","onMouseEnter","onMouseLeave","onMouseMove","onMouseOut","onMouseOver","onMouseUp","onNodeChange","onObjectResizeStart","onObjectResized","onObjectSelected","onPaste","onPostProcess","onPostRender","onPreProcess","onProgressState","onRedo","onRemove","onReset","onSaveContent","onSelectionChange","onSetAttrib","onSetContent","onShow","onSubmit","onUndo","onVisualAid"],r=function(e){return-1!==a.map((function(e){return e.toLowerCase()})).indexOf(e.toLowerCase())},i=function(e,t,o){Object.keys(t).filter(r).forEach((function(n){var a=t[n];"function"===typeof a&&("onInit"===n?a(e,o):o.on(n.substring(2),(function(e){return a(e,o)})))}))},l=function(e,t,o,a){var r=e.modelEvents?e.modelEvents:null,i=Array.isArray(r)?r.join(" "):r;Object(n["watch"])(a,(function(t,n){o&&"string"===typeof t&&t!==n&&t!==o.getContent({format:e.outputFormat})&&o.setContent(t)})),o.on(i||"change input undo redo",(function(){t.emit("update:modelValue",o.getContent({format:e.outputFormat}))}))},s=function(e,t,o,n,a,r){n.setContent(r()),o.attrs["onUpdate:modelValue"]&&l(t,o,n,a),i(e,o.attrs,n)},c=0,d=function(e){var t=Date.now(),o=Math.floor(1e9*Math.random());return c++,e+"_"+o+c+String(t)},u=function(e){return null!==e&&"textarea"===e.tagName.toLowerCase()},m=function(e){return"undefined"===typeof e||""===e?[]:Array.isArray(e)?e:e.split(" ")},h=function(e,t){return m(e).concat(m(t))},p=function(e){return null===e||void 0===e},b=function(){return{listeners:[],scriptId:d("tiny-script"),scriptLoaded:!1}},g=function(){var e=b(),t=function(e,t,o,n){var a=t.createElement("script");a.referrerPolicy="origin",a.type="application/javascript",a.id=e,a.src=o;var r=function(){a.removeEventListener("load",r),n()};a.addEventListener("load",r),t.head&&t.head.appendChild(a)},o=function(o,n,a){e.scriptLoaded?a():(e.listeners.push(a),o.getElementById(e.scriptId)||t(e.scriptId,o,n,(function(){e.listeners.forEach((function(e){return e()})),e.scriptLoaded=!0})))},n=function(){e=b()};return{load:o,reinitialize:n}},f=g(),v=o("c4a9"),w={apiKey:String,cloudChannel:String,id:String,init:Object,initialValue:String,inline:Boolean,modelEvents:[String,Array],plugins:[String,Array],tagName:String,toolbar:[String,Array],modelValue:String,disabled:Boolean,tinymceScriptSrc:String,outputFormat:{type:String,validator:function(e){return"html"===e||"text"===e}}},k=function(){return k=Object.assign||function(e){for(var t,o=1,n=arguments.length;o<n;o++)for(var a in t=arguments[o],t)Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a]);return e},k.apply(this,arguments)},C=function(e,t,o,n){return e(n||"div",{id:t,ref:o})},y=function(e,t,o){return e("textarea",{id:t,visibility:"hidden",ref:o})},O={selector:void 0,target:void 0},j=Object(n["defineComponent"])({props:w,setup:function(e,t){var o=e.init?k(k({},e.init),O):k({},O),a=Object(n["toRefs"])(e),r=a.disabled,i=a.modelValue,l=a.tagName,c=Object(n["ref"])(null),m=null,b=e.id||d("tiny-vue"),g=e.init&&e.init.inline||e.inline,w=!!t.attrs["onUpdate:modelValue"],j=!0,x=e.initialValue?e.initialValue:"",_="",V=function(e){return w?function(){return(null===i||void 0===i?void 0:i.value)?i.value:""}:function(){return e?x:_}},A=function(){var n=V(j),a=k(k({},o),{readonly:e.disabled,target:c.value,plugins:h(o.plugins,e.plugins),toolbar:e.toolbar||o.toolbar,inline:g,setup:function(a){m=a,a.on("init",(function(o){return s(o,e,t,a,i,n)})),"function"===typeof o.setup&&o.setup(a)}});u(c.value)&&(c.value.style.visibility=""),Object(v["a"])().init(a),j=!1};Object(n["watch"])(r,(function(e){var t;null!==m&&("function"===typeof(null===(t=m.mode)||void 0===t?void 0:t.set)?m.mode.set(e?"readonly":"design"):m.setMode(e?"readonly":"design"))})),Object(n["watch"])(l,(function(e){var t;w||(_=m.getContent()),null===(t=Object(v["a"])())||void 0===t||t.remove(m),Object(n["nextTick"])((function(){return A()}))})),Object(n["onMounted"])((function(){if(null!==Object(v["a"])())A();else if(c.value&&c.value.ownerDocument){var t=e.cloudChannel?e.cloudChannel:"6",o=e.apiKey?e.apiKey:"no-api-key",n=p(e.tinymceScriptSrc)?"https://cdn.tiny.cloud/1/".concat(o,"/tinymce/").concat(t,"/tinymce.min.js"):e.tinymceScriptSrc;f.load(c.value.ownerDocument,n,A)}})),Object(n["onBeforeUnmount"])((function(){null!==Object(v["a"])()&&Object(v["a"])().remove(m)})),g||(Object(n["onActivated"])((function(){j||A()})),Object(n["onDeactivated"])((function(){var e;w||(_=m.getContent()),null===(e=Object(v["a"])())||void 0===e||e.remove(m)})));var N=function(e){var t;_=m.getContent(),null===(t=Object(v["a"])())||void 0===t||t.remove(m),o=k(k(k({},o),e),O),Object(n["nextTick"])((function(){return A()}))};return t.expose({rerender:N,getEditor:function(){return m}}),function(){return g?C(n["h"],b,c,e.tagName):y(n["h"],b,c)}}});t["a"]=j},ca88:function(e,t,o){},cade:function(e,t,o){},cae4:function(e,t,o){"use strict";o("535d")},cb0b:function(e,t,o){"use strict";o("0210")},cb44:function(e,t,o){"use strict";o.r(t);var n=o("f2bf");const a={class:"container"},r={id:"mapMarker",class:"rect-marker-dialog"};function i(e,t,o,i,l,s){const c=Object(n["resolveComponent"])("SiteSearch"),d=Object(n["resolveComponent"])("SiteDetail"),u=Object(n["resolveComponent"])("DialogMarkerContainer");return Object(n["openBlock"])(),Object(n["createElementBlock"])("div",a,[Object(n["createVNode"])(c,{siteList:l.siteList,onNodeClick:s.onNodeClick},null,8,["siteList","onNodeClick"]),t[0]||(t[0]=Object(n["createElementVNode"])("div",{id:"mapDiv",class:"container-map"},null,-1)),Object(n["createElementVNode"])("div",r,[Object(n["createVNode"])(u,{ref:"de"},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(d,{markerSiteData:l.markerSiteData},null,8,["markerSiteData"])]),_:1},512)])])}var l=o("b0aa"),s=o("6221"),c=o("f511"),d=o("7cf8"),u=o("8c7e"),m={name:"Monitor",components:{SiteDetail:s["default"],DialogMarkerContainer:u["default"],SiteSearch:c["default"]},data(){return{overlay:null,map:null,markerSiteData:{},siteDetailOpenPoint:null,markerContainRect:{},siteList:[],deviceInfo:[]}},async mounted(){const e=await Object(d["getSiteList"])();this.siteList=e;const t=this.flatSiteList(),o=t.find(e=>1===e.id)||t[0],n={longitude:(null===o||void 0===o?void 0:o.longitude)||116.40769,latitude:(null===o||void 0===o?void 0:o.latitude)||39.89945,zoom:12};this.initMap(n),this.initMarker(t)},methods:{async initMap(e){console.log("map"),this.map=new T.Map("mapDiv"),this.map.centerAndZoom(new T.LngLat(e.longitude,e.latitude),e.zoom);const t=new T.Control.MapType([{title:"map",icon:"http://api.tianditu.gov.cn/v4.0/image/map/maptype/vector.png",layer:window.TMAP_NORMAL_MAP},{title:"satellite",icon:" http://api.tianditu.gov.cn/v4.0/image/map/maptype/satellite.png",layer:window.TMAP_SATELLITE_MAP}]);this.map.addControl(t),this.map.setMapType(window.TMAP_NORMAL_MAP)},flatSiteList(){let e=[];return this.siteList.forEach(t=>{t.children.forEach(t=>{e=e.concat(t.children)})}),e},initMarker(e){var t,n;const a=e.map(e=>{var t=1==e.status?o("0f0e"):o("ea01");const n=new T.Marker(new T.LngLat(e.longitude,e.latitude),{icon:new T.Icon({iconUrl:t,id:e.id,iconSize:new T.Point(50,50),iconAnchor:new T.Point(0,0)}),title:e.name}),a=new l["DefinedMarkerInfoWindow"]("a"+e.id,{placement:"rightBottom"});a.on("open",()=>{this.siteDetailOpenPoint=e,this.resizeSiteDetailPosition()}),a.on("close",()=>{var e,t;null===(e=this.$refs)||void 0===e||null===(e=e.de)||void 0===e||null===(t=e.setPosition)||void 0===t||t.call(e,{top:-999,left:-999}),this.siteDetailOpenPoint=null});const r={marker:n,...e,lng:e.longitude,lat:e.lat};return n.on("click",e=>{this.markerSiteData=r,this.$nextTick(()=>{n.openInfoWindow(a)})}),r}),r=new T.MarkerClusterer(this.map,{markers:a.map(e=>e.marker),girdSize:100});r.setMaxZoom(18),r.setStyles([{url:o("0f0e"),size:[60,60],offset:new T.Point(0,0),textColor:"#fff",textSize:10,range:[0,5]},{url:o("f27d"),size:[60,60],offset:new T.Point(0,0),textColor:"#fff",textSize:10,range:[5,1e5]}]),this.markerContainRect=null!==(t=null===(n=document.querySelector("#mapMarker"))||void 0===n?void 0:n.getBoundingClientRect())&&void 0!==t?t:{top:0,left:0},this.onMapListener()},onMapListener(){this.map&&(this.map.on("resize",this.resizeSiteDetailPosition),this.map.on("dragend",this.resizeSiteDetailPosition),this.map.on("zoomend",this.resizeSiteDetailPosition),this.map.on("dragstart",this.resizeSiteDetailPosition),this.map.on("drag",this.resizeSiteDetailPosition),this.map.on("clearoverlays",()=>{var e,t;null===(e=this.$refs)||void 0===e||null===(e=e.de)||void 0===e||null===(t=e.setPosition)||void 0===t||t.call(e,{top:-999,left:-999}),this.siteDetailOpenPoint=null}))},resizeSiteDetailPosition(){this.siteDetailOpenPoint&&this.$nextTick(()=>{var e,t,o,n;const a=document.querySelector("#a"+this.siteDetailOpenPoint.id),{top:r=0,left:i=0,width:l=60}=null!==(e=null===a||void 0===a||null===(t=a.getBoundingClientRect)||void 0===t?void 0:t.call(a))&&void 0!==e?e:{},{top:s=0,left:c=0}=this.markerContainRect;null===(o=this.$refs)||void 0===o||null===(o=o.de)||void 0===o||null===(n=o.setPosition)||void 0===n||n.call(o,{top:r-s,left:i+l-c})})},onNodeClick(e){this.map.centerAndZoom(new T.LngLat(e.longitude,e.latitude),18),console.log(e,"node-click______-")}}},h=(o("9247"),o("d0c7"),o("d959")),p=o.n(h);const b=p()(m,[["render",i],["__scopeId","data-v-55632755"]]);t["default"]=b},cb52:function(e,t,o){"use strict";o.r(t);var n=o("f2bf");const a={class:"manage-container"},r={class:"list"},i={class:"id"},l={class:"button-list"};function s(e,t,o,s,c,d){const u=Object(n["resolveComponent"])("el-input"),m=Object(n["resolveComponent"])("el-button"),h=Object(n["resolveComponent"])("vab-query-form"),p=Object(n["resolveComponent"])("el-checkbox"),b=Object(n["resolveComponent"])("el-col"),g=Object(n["resolveComponent"])("el-row");return Object(n["openBlock"])(),Object(n["createElementBlock"])("div",a,[Object(n["createVNode"])(h,null,{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(u,{modelValue:c.input,"onUpdate:modelValue":t[0]||(t[0]=e=>c.input=e),placeholder:"传感器名称"},null,8,["modelValue"]),Object(n["createVNode"])(m,{type:"primary",icon:"el-icon-search"}),Object(n["createVNode"])(m,{type:"primary"},{default:Object(n["withCtx"])(()=>t[2]||(t[2]=[Object(n["createTextVNode"])("创建组态")])),_:1})]),_:1}),Object(n["createVNode"])(g,{gutter:20},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(b,{span:6},{default:Object(n["withCtx"])(()=>[Object(n["createElementVNode"])("div",r,[Object(n["createElementVNode"])("div",i,[Object(n["createVNode"])(p,{modelValue:c.checked,"onUpdate:modelValue":t[1]||(t[1]=e=>c.checked=e)},null,8,["modelValue"]),Object(n["createVNode"])(b,null,{default:Object(n["withCtx"])(()=>t[3]||(t[3]=[Object(n["createElementVNode"])("span",{class:"id-list"},"组态",-1),Object(n["createElementVNode"])("span",{class:"id-list"},"ID:218621000",-1)])),_:1})]),Object(n["createElementVNode"])("div",l,[Object(n["createVNode"])(m,{type:"text"},{default:Object(n["withCtx"])(()=>t[4]||(t[4]=[Object(n["createTextVNode"])("发布")])),_:1}),Object(n["createVNode"])(m,{type:"text"},{default:Object(n["withCtx"])(()=>t[5]||(t[5]=[Object(n["createTextVNode"])("运行")])),_:1}),Object(n["createVNode"])(m,{type:"text"},{default:Object(n["withCtx"])(()=>[Object(n["createTextVNode"])(Object(n["toDisplayString"])(e.$t("defalult.bj")),1)]),_:1}),Object(n["createVNode"])(m,{type:"text"},{default:Object(n["withCtx"])(()=>t[6]||(t[6]=[Object(n["createTextVNode"])("分享")])),_:1}),Object(n["createVNode"])(m,{type:"text"},{default:Object(n["withCtx"])(()=>t[7]||(t[7]=[Object(n["createTextVNode"])("下架")])),_:1}),Object(n["createVNode"])(m,{type:"text"},{default:Object(n["withCtx"])(()=>t[8]||(t[8]=[Object(n["createTextVNode"])("设置")])),_:1}),Object(n["createVNode"])(m,{type:"text"},{default:Object(n["withCtx"])(()=>[Object(n["createTextVNode"])(Object(n["toDisplayString"])(e.$t("device.fz")),1)]),_:1}),Object(n["createVNode"])(m,{type:"text"},{default:Object(n["withCtx"])(()=>[Object(n["createTextVNode"])(Object(n["toDisplayString"])(e.$t("defalult.sc")),1)]),_:1})])])]),_:1}),Object(n["createVNode"])(b,{span:6}),Object(n["createVNode"])(b,{span:6}),Object(n["createVNode"])(b,{span:6})]),_:1})])}var c={name:"Group",data(){return{input:"",checked:!0}}},d=(o("2db2"),o("d959")),u=o.n(d);const m=u()(c,[["render",s],["__scopeId","data-v-0fc5578c"]]);t["default"]=m},cb9b:function(e,t,o){"use strict";o("9fa4")},cc25:function(e,t,o){e.exports={"menu-color":"hsla(0,0%,27%,.95)","menu-color-active":"hsla(208,100%,55%,.95)","menu-background":"#fff","gallery-second-menu-background":"#fff"}},cc53:function(e,t,o){},cc5e:function(e,t,o){"use strict";o.r(t),o.d(t,"getList",(function(){return a})),o.d(t,"doEdit",(function(){return r})),o.d(t,"doDelete",(function(){return i})),o.d(t,"doAdd",(function(){return l})),o.d(t,"getMenuIdsByRoleId",(function(){return s})),o.d(t,"assignMenu",(function(){return c})),o.d(t,"miniRoleSelect",(function(){return d})),o.d(t,"miniRoleInsert",(function(){return u})),o.d(t,"miniRoleUpdate",(function(){return m})),o.d(t,"miniRoleRemove",(function(){return h})),o.d(t,"miniRoleAssignMenu",(function(){return p})),o.d(t,"getMiniRoleMenuIdsByRoleId",(function(){return b}));var n=o("b775");function a(e){let t="?page="+e.page+"&size="+e.size;return e.name&&(t+="&name="+e.name),Object(n["default"])({url:"/sysRole/select"+t,method:"get",data:e})}function r(e){return Object(n["default"])({url:"/sysRole/update",method:"post",data:e})}function i(e){return Object(n["default"])({url:"/sysRole/remove",method:"post",data:e})}function l(e){return Object(n["default"])({url:"/sysRole/insert",method:"post",data:e})}function s(e){return Object(n["default"])({url:"/sysRole/getMenuIdsByRoleId?roleId="+e.roleId,method:"get",data:e})}function c(e){return Object(n["default"])({url:"/sysRole/assignMenu",method:"post",data:e})}function d(e){let t="?page="+e.page+"&size="+e.size;return void 0!=e.name&&(t+="&name="+e.name),Object(n["default"])({url:"/miniRole/select"+t,method:"get",data:e})}function u(e){return Object(n["default"])({url:"/miniRole/insert",method:"post",data:e})}function m(e){return Object(n["default"])({url:"/miniRole/update",method:"post",data:e})}function h(e){return Object(n["default"])({url:"/miniRole/remove?roleId="+e.roleId,method:"post",data:e})}function p(e){return Object(n["default"])({url:"/miniRole/assignMenu",method:"post",data:e})}function b(e){return Object(n["default"])({url:"/miniRole/getMenuIdsByRoleId?roleId="+e.roleId,method:"get",data:e})}},cd1a:function(e,t,o){e.exports={"menu-color":"hsla(0,0%,27%,.95)","menu-color-active":"hsla(208,100%,55%,.95)","menu-background":"#fff","gallery-second-menu-background":"#fff"}},cd6d:function(e,t){!function(e){const t=e.zh=e.zh||{};t.dictionary=Object.assign(t.dictionary||{},{"%0 of %1":"%0/%1",Aquamarine:"淺綠色",Big:"大",Black:"黑色","Block quote":"段落引用",Blue:"藍色","Blue marker":"藍色標記",Bold:"粗體","Break text":"上及下","Bulleted List":"符號清單",Cancel:"取消","Cannot determine a category for the uploaded file.":"無法確定上傳檔案的分類。","Cannot upload file:":"無法上傳檔案:","Caption for image: %0":"影像標題:%0","Caption for the image":"影像的標題","Centered image":"置中圖片","Change image text alternative":"修改圖片的替代文字","Choose heading":"選取標題",Column:"欄","Decrease indent":"減少縮排",Default:"預設","Delete column":"刪除欄","Delete row":"刪除列","Dim grey":"淡灰色","Document colors":"文件顏色",Downloadable:"可下載","Dropdown toolbar":"下拉選單","Edit block":"編輯區塊","Edit link":"編輯連結","Editor block content toolbar":"編輯器區塊內容工具列","Editor contextual toolbar":"編輯器關聯式工具列","Editor editing area: %0":"編輯器編輯區:%0","Editor toolbar":"編輯器工具","Enter image caption":"輸入圖片說明","Font Background Color":"前景顏色","Font Color":"字體顏色","Font Family":"字型","Font Size":"字體大小","Full size image":"完整尺寸圖片",Green:"綠色","Green marker":"綠色標記","Green pen":"綠色筆",Grey:"灰色","Header column":"標題欄","Header row":"標題列",Heading:"標題","Heading 1":"標題 1","Heading 2":"標題 2","Heading 3":"標題 3","Heading 4":"標題 4","Heading 5":"標題 5","Heading 6":"標題 6",Highlight:"高亮",Huge:"特大","Image toolbar":"圖片工具","image widget":"圖片小工具","In line":"行中","Increase indent":"增加縮排","Insert column left":"插入左方欄","Insert column right":"插入右方欄","Insert image":"插入圖片","Insert media":"插入影音","Insert paragraph after block":"在這個區塊後面插入一個段落","Insert paragraph before block":"在這個區塊前面插入一個段落","Insert row above":"插入上方列","Insert row below":"插入下方列","Insert table":"插入表格",Italic:"斜體","Left aligned image":"向左對齊圖片","Light blue":"亮藍色","Light green":"亮綠色","Light grey":"亮灰色",Link:"連結","Link URL":"連結˙ URL","Media URL":"影音網址","media widget":"影音小工具","Merge cell down":"合併下方儲存格","Merge cell left":"合併左方儲存格","Merge cell right":"合併右方儲存格","Merge cell up":"合併上方儲存格","Merge cells":"合併儲存格",Next:"下一","Numbered List":"有序清單","Open file manager":"開啟檔案管理程式","Open in a new tab":"在新視窗開啟","Open link in new tab":"在新視窗開啟連結","Open media in new tab":"在新分頁打開媒體",Orange:"橘色",Paragraph:"段落","Paste the media URL in the input.":"在輸入框貼上影音網址。","Pink marker":"粉色標記","Press Enter to type after or press Shift + Enter to type before the widget":"按下 Enter 在小工具後輸入,或按下 Shift + Enter 在小工具前輸入",Previous:"上一",Purple:"紫色",Red:"紅色","Red pen":"紅色筆",Redo:"重做","Remove color":"移除顏色","Remove highlight":"清除高亮","Rich Text Editor":"豐富文字編輯器","Right aligned image":"向右對齊圖片",Row:"列",Save:"儲存","Select all":"選取全部","Select column":"選擇欄","Select row":"選擇列","Show more items":"顯示更多","Side image":"側邊圖片",Small:"小","Split cell horizontally":"水平分割儲存格","Split cell vertically":"垂直分割儲存格","Table toolbar":"表格工具","Text alternative":"替代文字","Text highlight toolbar":"高亮","The URL must not be empty.":"網址不能空白。","This link has no URL":"連結沒有URL","This media URL is not supported.":"不支援此影音網址。",Tiny:"特小","Tip: Paste the URL into the content to embed faster.":"提示:在內容貼上網址更快崁入。","Toggle caption off":"關閉表標題","Toggle caption on":"開啟表標題",Turquoise:"藍綠色",Undo:"取消",Unlink:"移除連結","Upload failed":"上傳失敗","Upload in progress":"正在上傳",White:"白色","Widget toolbar":"小工具","Wrap text":"文繞圖",Yellow:"黃色","Yellow marker":"黃色標記"}),t.getPluralForm=function(e){return 0}}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={}))},cda2:function(e,t,o){},cdd9:function(e,t){(function(){"use strict";var e=tinymce.util.Tools.resolve("tinymce.PluginManager");const t=Object.getPrototypeOf,o=(e,t,o)=>{var n;return!!o(e,t.prototype)||(null===(n=e.constructor)||void 0===n?void 0:n.name)===t.name},n=e=>{const t=typeof e;return null===e?"null":"object"===t&&Array.isArray(e)?"array":"object"===t&&o(e,String,(e,t)=>t.isPrototypeOf(e))?"string":t},a=e=>t=>n(t)===e,r=e=>t=>typeof t===e,i=e=>t=>e===t,l=(e,n)=>c(e)&&o(e,n,(e,o)=>t(e)===o),s=a("string"),c=a("object"),d=e=>l(e,Object),u=a("array"),m=i(null),h=r("boolean"),p=e=>null===e||void 0===e,b=e=>!p(e),g=r("function"),f=r("number"),v=(e,t)=>{if(u(e)){for(let o=0,n=e.length;o<n;++o)if(!t(e[o]))return!1;return!0}return!1},w=()=>{};class k{constructor(e,t){this.tag=e,this.value=t}static some(e){return new k(!0,e)}static none(){return k.singletonNone}fold(e,t){return this.tag?t(this.value):e()}isSome(){return this.tag}isNone(){return!this.tag}map(e){return this.tag?k.some(e(this.value)):k.none()}bind(e){return this.tag?e(this.value):k.none()}exists(e){return this.tag&&e(this.value)}forall(e){return!this.tag||e(this.value)}filter(e){return!this.tag||e(this.value)?this:k.none()}getOr(e){return this.tag?this.value:e}or(e){return this.tag?this:e}getOrThunk(e){return this.tag?this.value:e()}orThunk(e){return this.tag?this:e()}getOrDie(e){if(this.tag)return this.value;throw new Error(null!==e&&void 0!==e?e:"Called getOrDie on None")}static from(e){return b(e)?k.some(e):k.none()}getOrNull(){return this.tag?this.value:null}getOrUndefined(){return this.value}each(e){this.tag&&e(this.value)}toArray(){return this.tag?[this.value]:[]}toString(){return this.tag?`some(${this.value})`:"none()"}}k.singletonNone=new k(!1);const C=Object.keys,y=Object.hasOwnProperty,O=(e,t)=>{const o=C(e);for(let n=0,a=o.length;n<a;n++){const a=o[n],r=e[a];t(r,a)}},j=e=>(t,o)=>{e[o]=t},x=(e,t,o,n)=>{O(e,(e,a)=>{(t(e,a)?o:n)(e,a)})},_=(e,t)=>{const o={};return x(e,t,j(o),w),o},V=(e,t)=>y.call(e,t),A=(e,t)=>V(e,t)&&void 0!==e[t]&&null!==e[t],N=Array.prototype.push,D=e=>{const t=[];for(let o=0,n=e.length;o<n;++o){if(!u(e[o]))throw new Error("Arr.flatten item "+o+" was not an array, input: "+e);N.apply(t,e[o])}return t},E=(e,t)=>t>=0&&t<e.length?k.some(e[t]):k.none(),T=e=>E(e,0),S=(e,t)=>{for(let o=0;o<e.length;o++){const n=t(e[o],o);if(n.isSome())return n}return k.none()};"undefined"!==typeof window?window:Function("return this;")();const B=(e,t,o)=>{if(!(s(o)||h(o)||f(o)))throw console.error("Invalid call to Attribute.set. Key ",t,":: Value ",o,":: Element ",e),new Error("Attribute value was not simple");e.setAttribute(t,o+"")},I=(e,t,o)=>{B(e.dom,t,o)},z=(e,t)=>{e.dom.removeAttribute(t)},F=(e,t)=>{const o=t||document,n=o.createElement("div");if(n.innerHTML=e,!n.hasChildNodes()||n.childNodes.length>1){const t="HTML does not have a single root node";throw console.error(t,e),new Error(t)}return P(n.childNodes[0])},M=(e,t)=>{const o=t||document,n=o.createElement(e);return P(n)},L=(e,t)=>{const o=t||document,n=o.createTextNode(e);return P(n)},P=e=>{if(null===e||void 0===e)throw new Error("Node cannot be null or undefined");return{dom:e}},R=(e,t,o)=>k.from(e.dom.elementFromPoint(t,o)).map(P),q={fromHtml:F,fromTag:M,fromText:L,fromDom:P,fromPoint:R};var $=tinymce.util.Tools.resolve("tinymce.dom.DOMUtils"),U=tinymce.util.Tools.resolve("tinymce.util.URI");const H=e=>e.length>0,W=e=>t=>t.options.get(e),G=e=>{const t=e.options.register;t("image_dimensions",{processor:"boolean",default:!0}),t("image_advtab",{processor:"boolean",default:!1}),t("image_uploadtab",{processor:"boolean",default:!0}),t("image_prepend_url",{processor:"string",default:""}),t("image_class_list",{processor:"object[]"}),t("image_description",{processor:"boolean",default:!0}),t("image_title",{processor:"boolean",default:!1}),t("image_caption",{processor:"boolean",default:!1}),t("image_list",{processor:e=>{const t=!1===e||s(e)||v(e,c)||g(e);return t?{value:e,valid:t}:{valid:!1,message:"Must be false, a string, an array or a function."}},default:!1})},K=W("image_dimensions"),Y=W("image_advtab"),Q=W("image_uploadtab"),J=W("image_prepend_url"),Z=W("image_class_list"),X=W("image_description"),ee=W("image_title"),te=W("image_caption"),oe=W("image_list"),ne=W("a11y_advanced_options"),ae=W("automatic_uploads"),re=e=>H(e.options.get("images_upload_url")),ie=e=>b(e.options.get("images_upload_handler")),le=(e,t)=>Math.max(parseInt(e,10),parseInt(t,10)),se=e=>new Promise(t=>{const o=document.createElement("img"),n=e=>{o.onload=o.onerror=null,o.parentNode&&o.parentNode.removeChild(o),t(e)};o.onload=()=>{const e=le(o.width,o.clientWidth),t=le(o.height,o.clientHeight),a={width:e,height:t};n(Promise.resolve(a))},o.onerror=()=>{n(Promise.reject("Failed to get image dimensions for: "+e))};const a=o.style;a.visibility="hidden",a.position="fixed",a.bottom=a.left="0px",a.width=a.height="auto",document.body.appendChild(o),o.src=e}),ce=e=>(e&&(e=e.replace(/px$/,"")),e),de=e=>(e.length>0&&/^[0-9]+$/.test(e)&&(e+="px"),e),ue=e=>{if(e.margin){const t=String(e.margin).split(" ");switch(t.length){case 1:e["margin-top"]=e["margin-top"]||t[0],e["margin-right"]=e["margin-right"]||t[0],e["margin-bottom"]=e["margin-bottom"]||t[0],e["margin-left"]=e["margin-left"]||t[0];break;case 2:e["margin-top"]=e["margin-top"]||t[0],e["margin-right"]=e["margin-right"]||t[1],e["margin-bottom"]=e["margin-bottom"]||t[0],e["margin-left"]=e["margin-left"]||t[1];break;case 3:e["margin-top"]=e["margin-top"]||t[0],e["margin-right"]=e["margin-right"]||t[1],e["margin-bottom"]=e["margin-bottom"]||t[2],e["margin-left"]=e["margin-left"]||t[1];break;case 4:e["margin-top"]=e["margin-top"]||t[0],e["margin-right"]=e["margin-right"]||t[1],e["margin-bottom"]=e["margin-bottom"]||t[2],e["margin-left"]=e["margin-left"]||t[3]}delete e.margin}return e},me=(e,t)=>{const o=oe(e);s(o)?fetch(o).then(e=>{e.ok&&e.json().then(t)}):g(o)?o(t):t(o)},he=(e,t,o)=>{const n=()=>{o.onload=o.onerror=null,e.selection&&(e.selection.select(o),e.nodeChanged())};o.onload=()=>{t.width||t.height||!K(e)||e.dom.setAttribs(o,{width:String(o.clientWidth),height:String(o.clientHeight)}),n()},o.onerror=n},pe=e=>new Promise((t,o)=>{const n=new FileReader;n.onload=()=>{t(n.result)},n.onerror=()=>{var e;o(null===(e=n.error)||void 0===e?void 0:e.message)},n.readAsDataURL(e)}),be=e=>"IMG"===e.nodeName&&(e.hasAttribute("data-mce-object")||e.hasAttribute("data-mce-placeholder")),ge=(e,t)=>{const o=e.options.get;return U.isDomSafe(t,"img",{allow_html_data_urls:o("allow_html_data_urls"),allow_script_urls:o("allow_script_urls"),allow_svg_data_urls:o("allow_svg_data_urls")})},fe=$.DOM,ve=e=>e.style.marginLeft&&e.style.marginRight&&e.style.marginLeft===e.style.marginRight?ce(e.style.marginLeft):"",we=e=>e.style.marginTop&&e.style.marginBottom&&e.style.marginTop===e.style.marginBottom?ce(e.style.marginTop):"",ke=e=>e.style.borderWidth?ce(e.style.borderWidth):"",Ce=(e,t)=>{var o;return e.hasAttribute(t)&&null!==(o=e.getAttribute(t))&&void 0!==o?o:""},ye=e=>null!==e.parentNode&&"FIGURE"===e.parentNode.nodeName,Oe=(e,t,o)=>{""===o||null===o?e.removeAttribute(t):e.setAttribute(t,o)},je=e=>{const t=fe.create("figure",{class:"image"});fe.insertAfter(t,e),t.appendChild(e),t.appendChild(fe.create("figcaption",{contentEditable:"true"},"Caption")),t.contentEditable="false"},xe=e=>{const t=e.parentNode;b(t)&&(fe.insertAfter(e,t),fe.remove(t))},_e=e=>{ye(e)?xe(e):je(e)},Ve=(e,t)=>{const o=e.getAttribute("style"),n=t(null!==o?o:"");n.length>0?(e.setAttribute("style",n),e.setAttribute("data-mce-style",n)):e.removeAttribute("style")},Ae=(e,t)=>(e,o,n)=>{const a=e.style;a[o]?(a[o]=de(n),Ve(e,t)):Oe(e,o,n)},Ne=(e,t)=>e.style[t]?ce(e.style[t]):Ce(e,t),De=(e,t)=>{const o=de(t);e.style.marginLeft=o,e.style.marginRight=o},Ee=(e,t)=>{const o=de(t);e.style.marginTop=o,e.style.marginBottom=o},Te=(e,t)=>{const o=de(t);e.style.borderWidth=o},Se=(e,t)=>{e.style.borderStyle=t},Be=e=>{var t;return null!==(t=e.style.borderStyle)&&void 0!==t?t:""},Ie=e=>b(e)&&"FIGURE"===e.nodeName,ze=e=>"IMG"===e.nodeName,Fe=e=>0===fe.getAttrib(e,"alt").length&&"presentation"===fe.getAttrib(e,"role"),Me=e=>Fe(e)?"":Ce(e,"alt"),Le=()=>({src:"",alt:"",title:"",width:"",height:"",class:"",style:"",caption:!1,hspace:"",vspace:"",border:"",borderStyle:"",isDecorative:!1}),Pe=(e,t)=>{var o;const n=document.createElement("img");return Oe(n,"style",t.style),(ve(n)||""!==t.hspace)&&De(n,t.hspace),(we(n)||""!==t.vspace)&&Ee(n,t.vspace),(ke(n)||""!==t.border)&&Te(n,t.border),(Be(n)||""!==t.borderStyle)&&Se(n,t.borderStyle),e(null!==(o=n.getAttribute("style"))&&void 0!==o?o:"")},Re=(e,t)=>{const o=document.createElement("img");if(Ge(e,{...t,caption:!1},o),Ue(o,t.alt,t.isDecorative),t.caption){const e=fe.create("figure",{class:"image"});return e.appendChild(o),e.appendChild(fe.create("figcaption",{contentEditable:"true"},"Caption")),e.contentEditable="false",e}return o},qe=(e,t)=>({src:Ce(t,"src"),alt:Me(t),title:Ce(t,"title"),width:Ne(t,"width"),height:Ne(t,"height"),class:Ce(t,"class"),style:e(Ce(t,"style")),caption:ye(t),hspace:ve(t),vspace:we(t),border:ke(t),borderStyle:Be(t),isDecorative:Fe(t)}),$e=(e,t,o,n,a)=>{o[n]!==t[n]&&a(e,n,String(o[n]))},Ue=(e,t,o)=>{if(o){fe.setAttrib(e,"role","presentation");const t=q.fromDom(e);I(t,"alt","")}else{if(m(t)){const t=q.fromDom(e);z(t,"alt")}else{const o=q.fromDom(e);I(o,"alt",t)}"presentation"===fe.getAttrib(e,"role")&&fe.setAttrib(e,"role","")}},He=(e,t,o)=>{o.alt===t.alt&&o.isDecorative===t.isDecorative||Ue(e,o.alt,o.isDecorative)},We=(e,t)=>(o,n,a)=>{e(o,a),Ve(o,t)},Ge=(e,t,o)=>{const n=qe(e,o);$e(o,n,t,"caption",(e,t,o)=>_e(e)),$e(o,n,t,"src",Oe),$e(o,n,t,"title",Oe),$e(o,n,t,"width",Ae("width",e)),$e(o,n,t,"height",Ae("height",e)),$e(o,n,t,"class",Oe),$e(o,n,t,"style",We((e,t)=>Oe(e,"style",t),e)),$e(o,n,t,"hspace",We(De,e)),$e(o,n,t,"vspace",We(Ee,e)),$e(o,n,t,"border",We(Te,e)),$e(o,n,t,"borderStyle",We(Se,e)),He(o,n,t)},Ke=(e,t)=>{const o=e.dom.styles.parse(t),n=ue(o),a=e.dom.styles.parse(e.dom.styles.serialize(n));return e.dom.styles.serialize(a)},Ye=e=>{const t=e.selection.getNode(),o=e.dom.getParent(t,"figure.image");return o?e.dom.select("img",o)[0]:t&&("IMG"!==t.nodeName||be(t))?null:t},Qe=(e,t)=>{var o;const n=e.dom,a=_(e.schema.getTextBlockElements(),(t,o)=>!e.schema.isValidChild(o,"figure")),r=n.getParent(t.parentNode,e=>A(a,e.nodeName),e.getBody());return r&&null!==(o=n.split(r,t))&&void 0!==o?o:t},Je=e=>{const t=Ye(e);return t?qe(t=>Ke(e,t),t):Le()},Ze=(e,t)=>{const o=Re(t=>Ke(e,t),t);e.dom.setAttrib(o,"data-mce-id","__mcenew"),e.focus(),e.selection.setContent(o.outerHTML);const n=e.dom.select('*[data-mce-id="__mcenew"]')[0];if(e.dom.setAttrib(n,"data-mce-id",null),Ie(n)){const t=Qe(e,n);e.selection.select(t)}else e.selection.select(n)},Xe=(e,t)=>{e.dom.setAttrib(t,"src",t.getAttribute("src"))},et=(e,t)=>{if(t){const o=e.dom.is(t.parentNode,"figure.image")?t.parentNode:t;e.dom.remove(o),e.focus(),e.nodeChanged(),e.dom.isEmpty(e.getBody())&&(e.setContent(""),e.selection.setCursorLocation())}},tt=(e,t)=>{const o=Ye(e);if(o)if(Ge(t=>Ke(e,t),t,o),Xe(e,o),Ie(o.parentNode)){const t=o.parentNode;Qe(e,t),e.selection.select(o.parentNode)}else e.selection.select(o),he(e,t,o)},ot=(e,t)=>{const o=t.src;return{...t,src:ge(e,o)?o:""}},nt=(e,t)=>{const o=Ye(e);if(o){const n=qe(t=>Ke(e,t),o),a={...n,...t},r=ot(e,a);a.src?tt(e,r):et(e,o)}else t.src&&Ze(e,{...Le(),...t})},at=(e,t)=>{const o=d(e)&&d(t);return o?it(e,t):t},rt=e=>(...t)=>{if(0===t.length)throw new Error("Can't merge zero objects");const o={};for(let n=0;n<t.length;n++){const a=t[n];for(const t in a)V(a,t)&&(o[t]=e(o[t],a[t]))}return o},it=rt(at);var lt=tinymce.util.Tools.resolve("tinymce.util.ImageUploader"),st=tinymce.util.Tools.resolve("tinymce.util.Tools");const ct=e=>s(e.value)?e.value:"",dt=e=>s(e.text)?e.text:s(e.title)?e.title:"",ut=(e,t)=>{const o=[];return st.each(e,e=>{const n=dt(e);if(void 0!==e.menu){const a=ut(e.menu,t);o.push({text:n,items:a})}else{const a=t(e);o.push({text:n,value:a})}}),o},mt=(e=ct)=>t=>t?k.from(t).map(t=>ut(t,e)):k.none(),ht=e=>mt(ct)(e),pt=e=>V(e,"items"),bt=(e,t)=>S(e,e=>pt(e)?bt(e.items,t):e.value===t?k.some(e):k.none()),gt=(e,t)=>e.bind(e=>bt(e,t)),ft={sanitizer:mt,sanitize:ht,findEntry:gt},vt=e=>({title:"Advanced",name:"advanced",items:[{type:"grid",columns:2,items:[{type:"input",label:"Vertical space",name:"vspace",inputMode:"numeric"},{type:"input",label:"Horizontal space",name:"hspace",inputMode:"numeric"},{type:"input",label:"Border width",name:"border",inputMode:"numeric"},{type:"listbox",name:"borderstyle",label:"Border style",items:[{text:"Select...",value:""},{text:"Solid",value:"solid"},{text:"Dotted",value:"dotted"},{text:"Dashed",value:"dashed"},{text:"Double",value:"double"},{text:"Groove",value:"groove"},{text:"Ridge",value:"ridge"},{text:"Inset",value:"inset"},{text:"Outset",value:"outset"},{text:"None",value:"none"},{text:"Hidden",value:"hidden"}]}]}]}),wt={makeTab:vt},kt=e=>{const t=ft.sanitizer(t=>e.convertURL(t.value||t.url||"","src")),o=new Promise(o=>{me(e,e=>{o(t(e).map(e=>D([[{text:"None",value:""}],e])))})}),n=ft.sanitize(Z(e)),a=Y(e),r=Q(e),i=re(e),l=ie(e),c=Je(e),d=X(e),u=ee(e),m=K(e),h=te(e),p=ne(e),b=ae(e),g=k.some(J(e)).filter(e=>s(e)&&e.length>0);return o.then(e=>({image:c,imageList:e,classList:n,hasAdvTab:a,hasUploadTab:r,hasUploadUrl:i,hasUploadHandler:l,hasDescription:d,hasImageTitle:u,hasDimensions:m,hasImageCaption:h,prependURL:g,hasAccessibilityOptions:p,automaticUploads:b}))},Ct=e=>{const t={name:"src",type:"urlinput",filetype:"image",label:"Source",picker_text:"Browse files"},o=e.imageList.map(e=>({name:"images",type:"listbox",label:"Image list",items:e})),n={name:"alt",type:"input",label:"Alternative description",enabled:!(e.hasAccessibilityOptions&&e.image.isDecorative)},a={name:"title",type:"input",label:"Image title"},r={name:"dimensions",type:"sizeinput"},i={type:"label",label:"Accessibility",items:[{name:"isDecorative",type:"checkbox",label:"Image is decorative"}]},l=e.classList.map(e=>({name:"classes",type:"listbox",label:"Class",items:e})),s={type:"label",label:"Caption",items:[{type:"checkbox",name:"caption",label:"Show caption"}]},c=e=>e?{type:"grid",columns:2}:{type:"panel"};return D([[t],o.toArray(),e.hasAccessibilityOptions&&e.hasDescription?[i]:[],e.hasDescription?[n]:[],e.hasImageTitle?[a]:[],e.hasDimensions?[r]:[],[{...c(e.classList.isSome()&&e.hasImageCaption),items:D([l.toArray(),e.hasImageCaption?[s]:[]])}]])},yt=e=>({title:"General",name:"general",items:Ct(e)}),Ot={makeTab:yt,makeItems:Ct},jt=e=>{const t=[{type:"dropzone",name:"fileinput"}];return{title:"Upload",name:"upload",items:t}},xt={makeTab:jt},_t=e=>({prevImage:ft.findEntry(e.imageList,e.image.src),prevAlt:e.image.alt,open:!0}),Vt=e=>({src:{value:e.src,meta:{}},images:e.src,alt:e.alt,title:e.title,dimensions:{width:e.width,height:e.height},classes:e.class,caption:e.caption,style:e.style,vspace:e.vspace,border:e.border,hspace:e.hspace,borderstyle:e.borderStyle,fileinput:[],isDecorative:e.isDecorative}),At=(e,t)=>({src:e.src.value,alt:null!==e.alt&&0!==e.alt.length||!t?e.alt:null,title:e.title,width:e.dimensions.width,height:e.dimensions.height,class:e.classes,style:e.style,caption:e.caption,hspace:e.hspace,vspace:e.vspace,border:e.border,borderStyle:e.borderstyle,isDecorative:e.isDecorative}),Nt=(e,t)=>/^(?:[a-zA-Z]+:)?\/\//.test(t)?k.none():e.prependURL.bind(e=>t.substring(0,e.length)!==e?k.some(e+t):k.none()),Dt=(e,t)=>{const o=t.getData();Nt(e,o.src.value).each(e=>{t.setData({src:{value:e,meta:o.src.meta}})})},Et=(e,t,o)=>{e.hasDescription&&s(o.alt)&&(t.alt=o.alt),e.hasAccessibilityOptions&&(t.isDecorative=o.isDecorative||t.isDecorative||!1),e.hasImageTitle&&s(o.title)&&(t.title=o.title),e.hasDimensions&&(s(o.width)&&(t.dimensions.width=o.width),s(o.height)&&(t.dimensions.height=o.height)),s(o.class)&&ft.findEntry(e.classList,o.class).each(e=>{t.classes=e.value}),e.hasImageCaption&&h(o.caption)&&(t.caption=o.caption),e.hasAdvTab&&(s(o.style)&&(t.style=o.style),s(o.vspace)&&(t.vspace=o.vspace),s(o.border)&&(t.border=o.border),s(o.hspace)&&(t.hspace=o.hspace),s(o.borderstyle)&&(t.borderstyle=o.borderstyle))},Tt=(e,t)=>{const o=t.getData(),n=o.src.meta;if(void 0!==n){const a=it({},o);Et(e,a,n),t.setData(a)}},St=(e,t,o,n)=>{const a=n.getData(),r=a.src.value,i=a.src.meta||{};i.width||i.height||!t.hasDimensions||(H(r)?e.imageSize(r).then(e=>{o.open&&n.setData({dimensions:e})}).catch(e=>console.error(e)):n.setData({dimensions:{width:"",height:""}}))},Bt=(e,t,o)=>{const n=o.getData(),a=ft.findEntry(e.imageList,n.src.value);t.prevImage=a,o.setData({images:a.map(e=>e.value).getOr("")})},It=(e,t,o,n)=>{Dt(t,n),Tt(t,n),St(e,t,o,n),Bt(t,o,n)},zt=(e,t,o,n)=>{const a=n.getData(),r=ft.findEntry(t.imageList,a.images);r.each(e=>{const t=""===a.alt||o.prevImage.map(e=>e.text===a.alt).getOr(!1);t?""===e.value?n.setData({src:e,alt:o.prevAlt}):n.setData({src:e,alt:e.text}):n.setData({src:e})}),o.prevImage=r,It(e,t,o,n)},Ft=(e,t,o,n)=>{const a=n.getData();n.block("Uploading image"),T(a.fileinput).fold(()=>{n.unblock()},a=>{const r=URL.createObjectURL(a),i=()=>{n.unblock(),URL.revokeObjectURL(r)},l=a=>{n.setData({src:{value:a,meta:{}}}),n.showTab("general"),It(e,t,o,n)};pe(a).then(o=>{const s=e.createBlobCache(a,r,o);t.automaticUploads?e.uploadImage(s).then(e=>{l(e.url),i()}).catch(t=>{i(),e.alertErr(t)}):(e.addToBlobCache(s),l(s.blobUri()),n.unblock())})})},Mt=(e,t,o)=>(n,a)=>{"src"===a.name?It(e,t,o,n):"images"===a.name?zt(e,t,o,n):"alt"===a.name?o.prevAlt=n.getData().alt:"fileinput"===a.name?Ft(e,t,o,n):"isDecorative"===a.name&&n.setEnabled("alt",!n.getData().isDecorative)},Lt=e=>()=>{e.open=!1},Pt=e=>{if(e.hasAdvTab||e.hasUploadUrl||e.hasUploadHandler){const t={type:"tabpanel",tabs:D([[Ot.makeTab(e)],e.hasAdvTab?[wt.makeTab(e)]:[],e.hasUploadTab&&(e.hasUploadUrl||e.hasUploadHandler)?[xt.makeTab(e)]:[]])};return t}{const t={type:"panel",items:Ot.makeItems(e)};return t}},Rt=(e,t,o)=>n=>{const a=it(Vt(t.image),n.getData()),r={...a,style:Pe(o.normalizeCss,At(a,!1))};e.execCommand("mceUpdateImage",!1,At(r,t.hasAccessibilityOptions)),e.editorUpload.uploadImagesAuto(),n.close()},qt=e=>t=>ge(e,t)?se(e.documentBaseURI.toAbsolute(t)).then(e=>({width:String(e.width),height:String(e.height)})):Promise.resolve({width:"",height:""}),$t=e=>(t,o,n)=>{var a;return e.editorUpload.blobCache.create({blob:t,blobUri:o,name:null===(a=t.name)||void 0===a?void 0:a.replace(/\.[^\.]+$/,""),filename:t.name,base64:n.split(",")[1]})},Ut=e=>t=>{e.editorUpload.blobCache.add(t)},Ht=e=>t=>{e.windowManager.alert(t)},Wt=e=>t=>Ke(e,t),Gt=e=>t=>e.dom.parseStyle(t),Kt=e=>(t,o)=>e.dom.serializeStyle(t,o),Yt=e=>t=>lt(e).upload([t],!1).then(e=>{var t;return 0===e.length?Promise.reject("Failed to upload image"):!1===e[0].status?Promise.reject(null===(t=e[0].error)||void 0===t?void 0:t.message):e[0]}),Qt=e=>{const t={imageSize:qt(e),addToBlobCache:Ut(e),createBlobCache:$t(e),alertErr:Ht(e),normalizeCss:Wt(e),parseStyle:Gt(e),serializeStyle:Kt(e),uploadImage:Yt(e)},o=()=>{kt(e).then(o=>{const n=_t(o);return{title:"Insert/Edit Image",size:"normal",body:Pt(o),buttons:[{type:"cancel",name:"cancel",text:"Cancel"},{type:"submit",name:"save",text:"Save",primary:!0}],initialData:Vt(o.image),onSubmit:Rt(e,o,t),onChange:Mt(t,o,n),onClose:Lt(n)}}).then(e.windowManager.open)};return{open:o}},Jt=e=>{e.addCommand("mceImage",Qt(e).open),e.addCommand("mceUpdateImage",(t,o)=>{e.undoManager.transact(()=>nt(e,o))})},Zt=e=>{const t=e.attr("class");return b(t)&&/\bimage\b/.test(t)},Xt=e=>t=>{let o=t.length;const n=t=>{t.attr("contenteditable",e?"true":null)};while(o--){const a=t[o];Zt(a)&&(a.attr("contenteditable",e?"false":null),st.each(a.getAll("figcaption"),n))}},eo=e=>{e.on("PreInit",()=>{e.parser.addNodeFilter("figure",Xt(!0)),e.serializer.addNodeFilter("figure",Xt(!1))})},to=e=>t=>{const o=()=>{t.setEnabled(e.selection.isEditable())};return e.on("NodeChange",o),o(),()=>{e.off("NodeChange",o)}},oo=e=>{e.ui.registry.addToggleButton("image",{icon:"image",tooltip:"Insert/edit image",onAction:Qt(e).open,onSetup:t=>{t.setActive(b(Ye(e)));const o=e.selection.selectorChangedWithUnbind("img:not([data-mce-object]):not([data-mce-placeholder]),figure.image",t.setActive).unbind,n=to(e)(t);return()=>{o(),n()}}}),e.ui.registry.addMenuItem("image",{icon:"image",text:"Image...",onAction:Qt(e).open,onSetup:to(e)}),e.ui.registry.addContextMenu("image",{update:t=>e.selection.isEditable()&&(Ie(t)||ze(t)&&!be(t))?["image"]:[]})};var no=()=>{e.add("image",e=>{G(e),eo(e),oo(e),Jt(e)})};no()})()},ce2d:function(e,t,o){e.exports={"menu-color":"hsla(0,0%,27%,.95)","menu-color-active":"hsla(208,100%,55%,.95)","menu-background":"#fff","gallery-second-menu-background":"#fff"}},cee7:function(e,t,o){e.exports={"menu-color":"hsla(0,0%,27%,.95)","menu-color-active":"hsla(208,100%,55%,.95)","menu-background":"#fff","gallery-second-menu-background":"#fff"}},cf45:function(e,t,o){"use strict";function n(e){return e.replace(/<[^>]+>/g,"")}o.r(t),o.d(t,"delHtmlTag",(function(){return n}))},cf49:function(e,t,o){"use strict";o.r(t);var n=o("f2bf");const a={id:"clockFold",style:{width:"100%",height:"350px"}};function r(e,t,o,r,i,l){return Object(n["openBlock"])(),Object(n["createElementBlock"])("div",a)}o("14d9");var i=o("313e"),l=o("5f99"),s={props:{details:{type:Array}},data(){return{chartPie:null,xData:[],yData:[],data:[]}},watch:{details(e){var t=[],o=[];e.forEach((function(e,n){t.push(Object(l["formatDateTime"])(e[0])),o.push(e[1])})),this.data=e,this.xData=t,this.yData=o,setTimeout(()=>{this.drawCharts()},1e3)}},mounted:function(){},methods:{drawPieChart(){console.log(this.data),this.chartPie=i["a"](document.getElementById("clockFold")),this.chartPie.setOption({title:{left:"center",text:"每日考勤打卡次数"},tooltip:{trigger:"item",axisPointer:{type:"shadow"}},xAxis:{type:"category",boundaryGap:!1,data:this.xData},yAxis:{type:"value"},series:[{data:this.yData,type:"line",areaStyle:{}}]})},drawCharts(){this.drawPieChart()}}},c=o("d959"),d=o.n(c);const u=d()(s,[["render",r]]);t["default"]=u},cf5f:function(e,t,o){},cfc6:function(e,t,o){"use strict";o("8f95")},cfcd:function(e,t,o){"use strict";o.r(t);var n=o("f2bf");const a={class:"dialog-footer"};function r(e,t,o,r,i,l){const s=Object(n["resolveComponent"])("el-input"),c=Object(n["resolveComponent"])("el-form-item"),d=Object(n["resolveComponent"])("el-form"),u=Object(n["resolveComponent"])("el-button"),m=Object(n["resolveComponent"])("el-dialog");return Object(n["openBlock"])(),Object(n["createBlock"])(m,{modelValue:i.dialogFormVisible,"onUpdate:modelValue":t[1]||(t[1]=e=>i.dialogFormVisible=e),title:i.title,width:"500px",onClose:l.close},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(d,{ref:"form",model:i.form,rules:i.rules,"label-width":"80px","label-position":"left"},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(c,{label:e.$t("grouping.zmc"),prop:"name"},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(s,{modelValue:i.form.name,"onUpdate:modelValue":t[0]||(t[0]=e=>i.form.name=e),modelModifiers:{trim:!0},size:"small",autocomplete:"off"},null,8,["modelValue"])]),_:1},8,["label"])]),_:1},8,["model","rules"]),Object(n["createElementVNode"])("div",a,[Object(n["createVNode"])(u,{type:"primary",size:"small",onClick:l.save},{default:Object(n["withCtx"])(()=>t[2]||(t[2]=[Object(n["createTextVNode"])("确 定")])),_:1},8,["onClick"]),Object(n["createVNode"])(u,{size:"small",onClick:l.close},{default:Object(n["withCtx"])(()=>t[3]||(t[3]=[Object(n["createTextVNode"])("取 消")])),_:1},8,["onClick"])])]),_:1},8,["modelValue","title","onClose"])}var i=o("23ba"),l={name:"GroupEdit",data(){return{form:{id:"",name:""},rules:{name:[{required:!0,trigger:"blur",message:"请输入组名称"}]},roleData:[],clearable:!0,roleId:"",parentData:[],title:"",dialogFormVisible:!1}},created(){},methods:{showEdit(e){e?(this.title="编辑项目组",this.form=Object.assign({},e)):this.title="添加项目组",this.dialogFormVisible=!0},close(){this.$refs["form"].resetFields(),this.form=this.$options.data().form,this.dialogFormVisible=!1,this.$emit("fetch-data")},save(){this.$refs["form"].validate(async e=>{if(!e)return!1;{const{msg:e}=await Object(i["doAdd"])(this.form);this.$notify({title:e,type:"success"}),this.$refs["form"].resetFields(),this.dialogFormVisible=!1,this.$parent.fetchData()}})}}},s=(o("cae4"),o("d959")),c=o.n(s);const d=c()(l,[["render",r]]);t["default"]=d},cfd7:function(e,t,o){"use strict";o("9408")},cfed:function(e,t,o){"use strict";o("3498")},d048:function(e,t,o){},d048b:function(e,t,o){},d0c7:function(e,t,o){"use strict";o("b822")},d1da:function(e,t,o){e.exports=o.p+"static/img/el_login.7609e3c9.png"},d263:function(e,t,o){"use strict";o("9015")},d27c:function(e,t,o){"use strict";o.r(t);var n=o("f2bf");const a={class:"dialog-footer"};function r(e,t,o,r,i,l){const s=Object(n["resolveComponent"])("el-input"),c=Object(n["resolveComponent"])("el-form-item"),d=Object(n["resolveComponent"])("el-cascader"),u=Object(n["resolveComponent"])("el-form"),m=Object(n["resolveComponent"])("el-button"),h=Object(n["resolveComponent"])("el-dialog");return Object(n["openBlock"])(),Object(n["createBlock"])(h,{modelValue:i.dialogFormVisible,"onUpdate:modelValue":t[2]||(t[2]=e=>i.dialogFormVisible=e),title:i.title,width:"500px",onClose:l.close},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(u,{ref:"form",model:i.form,rules:i.rules,"label-width":"80px"},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(c,{label:e.$t("grouping.zmc"),prop:"title"},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(s,{modelValue:i.form.title,"onUpdate:modelValue":t[0]||(t[0]=e=>i.form.title=e),modelModifiers:{trim:!0},autocomplete:"off"},null,8,["modelValue"])]),_:1},8,["label"]),Object(n["createVNode"])(c,{label:"省",prop:"path"},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(d,{ref:"cascaderItem",modelValue:i.areaData,"onUpdate:modelValue":t[1]||(t[1]=e=>i.areaData=e),placeholder:"请选择",options:i.cityData,props:i.optionProps},null,8,["modelValue","options","props"])]),_:1})]),_:1},8,["model","rules"]),Object(n["createElementVNode"])("div",a,[Object(n["createVNode"])(m,{onClick:l.close},{default:Object(n["withCtx"])(()=>t[3]||(t[3]=[Object(n["createTextVNode"])("取 消")])),_:1},8,["onClick"]),Object(n["createVNode"])(m,{type:"primary",onClick:l.save},{default:Object(n["withCtx"])(()=>t[4]||(t[4]=[Object(n["createTextVNode"])("确 定")])),_:1},8,["onClick"])])]),_:1},8,["modelValue","title","onClose"])}var i=o("24d2"),l=o("c591"),s={name:"GroupEdit",data(){return{form:{id:"",title:"",name:"",provinceCode:"",provinceName:"",cityCode:"",cityName:"",areaCode:"",areaName:""},optionProps:{value:"areaCode",label:"areaName",children:"children"},areaData:[],cityData:[],rules:{title:[{required:!0,trigger:"blur",message:"请输入项目名称"}],areaData:[{required:!0,trigger:"blur",message:"请选择城市"}]},clearable:!0,menuId:"",parentData:[],title:"",dialogFormVisible:!1,diffData:{},ruleForm:[]}},created(){this.getCityData()},methods:{async getCityData(){const{data:e}=await Object(l["getCity"])();this.cityData=this.getTreeData(e)},getTreeData(e){for(let t=0;t<e.length;t++)e[t].children.length<1?e[t].children=void 0:this.getTreeData(e[t].children);return e},handleCountryChange(e){if(e){const t=e.length-1;this.form.parentId=e[t]}else this.form.parentId=0},showEdit(e){e?(this.title="编辑",this.menuId=e.id,this.ruleForm=Object.assign({},e),this.form=Object.assign({},e),this.areaData=[e.provinceCode,e.cityCode,e.areaCode],this.form.title=e.name):this.title="添加",this.dialogFormVisible=!0},close(){this.$refs["form"].resetFields(),this.form=this.$options.data().form,this.dialogFormVisible=!1,this.$emit("fetch-data")},getDiffData(){this.diffData={},Object.keys(this.form).forEach(e=>{this.form[e]!=this.ruleForm[e]&&(this.diffData[e]=this.form[e])})},save(){this.$refs["form"].validate(async e=>{if(!e)return!1;{this.form.name=this.form.title;const e=this.areaData,t=this.$refs["cascaderItem"].inputValue,o=t.split(" / ");if(this.form.provinceCode=void 0==e[0]?"":e[0],this.form.cityCode=void 0==e[1]?"":e[1],this.form.areaCode=void 0==e[2]?"":e[2],this.form.provinceName=void 0==o[0]?"":o[0],this.form.cityName=void 0==o[1]?"":o[1],this.form.areaName=void 0==o[2]?"":o[2],this.form.id){if(this.getDiffData(),0!=Object.keys(this.diffData).length){this.diffData.id=this.form.id;const{msg:e}=await Object(i["doEdit"])(this.diffData);this.$notify({title:e,type:"success"})}}else{const{msg:e}=await Object(i["doAdd"])(this.form);this.$notify({title:e,type:"success"})}this.$refs["form"].resetFields(),this.dialogFormVisible=!1,this.$parent.fetchData()}})}}},c=(o("3b57"),o("d959")),d=o.n(c);const u=d()(s,[["render",r]]);t["default"]=u},d29e:function(e,t,o){e.exports={"menu-color":"hsla(0,0%,27%,.95)","menu-color-active":"hsla(208,100%,55%,.95)","menu-background":"#fff","gallery-second-menu-background":"#fff"}},d29f:function(e,t,o){"use strict";o("3a28")},d31e:function(e,t,o){"use strict";o.r(t);var n=o("f2bf");const a={class:"manage-container"};function r(e,t,o,r,i,l){const s=Object(n["resolveComponent"])("el-table-column"),c=Object(n["resolveComponent"])("el-tag"),d=Object(n["resolveComponent"])("el-button"),u=Object(n["resolveComponent"])("el-table"),m=Object(n["resolveComponent"])("el-pagination"),h=Object(n["resolveComponent"])("to-task"),p=Object(n["resolveDirective"])("loading");return Object(n["openBlock"])(),Object(n["createElementBlock"])("div",a,[Object(n["withDirectives"])((Object(n["openBlock"])(),Object(n["createBlock"])(u,{data:i.tableData,stripe:"",border:"",style:{width:"100%"}},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(s,{fixed:"",prop:"deviceName",label:e.$t("dataEnquiry.zdmc"),width:"150",align:"center"},null,8,["label"]),Object(n["createVNode"])(s,{fixed:"",prop:"sensorName",label:e.$t("sensor.cgqmc"),width:"150",align:"center"},null,8,["label"]),Object(n["createVNode"])(s,{prop:"alarmTime",label:"报警时间",width:"200",align:"center"}),Object(n["createVNode"])(s,{prop:"alarmLevel",label:e.$t("alarm.bjjb"),width:"200",align:"center"},null,8,["label"]),Object(n["createVNode"])(s,{prop:"alarmCategory",label:"报警类别",width:"200",align:"center"}),Object(n["createVNode"])(s,{prop:"alarmContent",label:"告警内容",width:"300",align:"center"}),Object(n["createVNode"])(s,{prop:"handlerName",label:e.$t("task.clr"),width:"120",align:"center"},null,8,["label"]),Object(n["createVNode"])(s,{prop:"status",label:e.$t("dataEnquiry.zt"),width:"120",align:"center"},{default:Object(n["withCtx"])(({row:e})=>["已派工"==e.status?(Object(n["openBlock"])(),Object(n["createBlock"])(c,{key:"已派工",effect:"dark",type:"success",size:"mini"},{default:Object(n["withCtx"])(()=>t[0]||(t[0]=[Object(n["createTextVNode"])(" 已派工 ")])),_:1})):Object(n["createCommentVNode"])("",!0),"未派工"==e.status?(Object(n["openBlock"])(),Object(n["createBlock"])(c,{key:"未派工",effect:"dark",type:"danger",size:"mini"},{default:Object(n["withCtx"])(()=>t[1]||(t[1]=[Object(n["createTextVNode"])(" 未派工 ")])),_:1})):Object(n["createCommentVNode"])("",!0)]),_:1},8,["label"]),Object(n["createVNode"])(s,{prop:"remark",label:e.$t("alarm.bz"),width:"120",align:"center"},null,8,["label"]),Object(n["createVNode"])(s,{fixed:"right",label:e.$t("defalult.cz"),align:"center"},{default:Object(n["withCtx"])(({row:o})=>[Object(n["createVNode"])(d,{type:"text",onClick:e=>l.handleDelete(o)},{default:Object(n["withCtx"])(()=>[Object(n["createTextVNode"])(Object(n["toDisplayString"])(e.$t("defalult.sc")),1)]),_:2},1032,["onClick"]),"未派工"==o.status?(Object(n["openBlock"])(),Object(n["createBlock"])(d,{key:0,type:"text",onClick:e=>l.handleTask(o)},{default:Object(n["withCtx"])(()=>t[2]||(t[2]=[Object(n["createTextVNode"])(" 转工单 ")])),_:2},1032,["onClick"])):Object(n["createCommentVNode"])("",!0)]),_:1},8,["label"])]),_:1},8,["data"])),[[p,i.listLoading]]),Object(n["createVNode"])(m,{background:i.background,"current-page":i.queryForm.page,layout:i.layout,"page-size":i.queryForm.size,total:i.total,style:{"text-align":"right"},onCurrentChange:l.handleCurrentChange,onSizeChange:l.handleSizeChange},null,8,["background","current-page","layout","page-size","total","onCurrentChange","onSizeChange"]),Object(n["createVNode"])(h,{ref:"toTask"},null,512)])}var i=o("9e04"),l=o("3038"),s=o("2c21"),c={components:{toTask:s["default"]},data(){return{tableData:[],lazy:!0,layout:"total, sizes, prev, pager, next, jumper",total:0,background:!0,listLoading:!1,elementLoadingText:"正在加载...",levelData:[],categoryData:[],statusData:[{value:3,label:"all"},{value:0,label:"未派工"},{value:1,label:"已派工"}],queryForm:{page:1,size:20,projectId:""}}},created(){this.showData()},methods:{async fetchData(){this.listLoading=!0;const{data:e}=await Object(i["getCurrentData"])(this.queryForm);this.tableData=e.items,this.total=e.total,setTimeout(()=>{this.listLoading=!1},500)},showData(){this.getLevel(),this.getCategory(),this.fetchData()},save(){this.$refs["add"].showEdit()},async getLevel(){const{data:e}=await Object(i["alarmLevelDict"])();this.levelData=e},async getCategory(){const{data:e}=await Object(i["alarmCategoryDict"])();this.categoryData=e},async exportData(){const e=await Object(i["alarmExport"])(this.queryForm);l["default"].downloadFile(e,{fileName:"报警记录.xls"})},search(){this.fetchData()},resetForm(){this.$refs.queryForm.resetFields()},handleTask(e){console.log(this.tableData),this.$refs["toTask"].showEdit(e)},deletes(e){const t=this;this.$confirm("你确定要删除当前项吗?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(()=>{const{msg:o}=Object(i["doDelete"])(e);this.$message({type:"success",message:void 0==o?"删除成功":o}),setTimeout((function(){t.fetchData()}),1e3)}).catch(()=>{this.$message({type:"info",message:"已取消删除"})})},handleDelete(e){const t=this;t.deletes([e.id])},handleQuery(){this.queryForm.page=1,this.fetchData()},handleSizeChange(e){this.queryForm.size=e,this.fetchData()},handleCurrentChange(e){this.queryForm.page=e,this.fetchData()}}},d=o("d959"),u=o.n(d);const m=u()(c,[["render",r]]);t["default"]=m},d32d:function(e,t,o){e.exports={"menu-color":"hsla(0,0%,27%,.95)","menu-color-active":"hsla(208,100%,55%,.95)","menu-background":"#fff","gallery-second-menu-background":"#fff"}},d38c:function(e,t,o){"use strict";o.r(t);var n=o("f2bf");const a={class:"manage-container"};function r(e,t,o,r,i,l){const s=Object(n["resolveComponent"])("el-date-picker"),c=Object(n["resolveComponent"])("el-form-item"),d=Object(n["resolveComponent"])("el-option"),u=Object(n["resolveComponent"])("el-select"),m=Object(n["resolveComponent"])("el-input"),h=Object(n["resolveComponent"])("el-button"),p=Object(n["resolveComponent"])("vab-query-form"),b=Object(n["resolveComponent"])("el-form"),g=Object(n["resolveComponent"])("el-row"),f=Object(n["resolveComponent"])("el-table-column"),v=Object(n["resolveComponent"])("el-table"),w=Object(n["resolveComponent"])("el-pagination"),k=Object(n["resolveComponent"])("vab-query-form-right-panel"),C=Object(n["resolveDirective"])("loading");return Object(n["openBlock"])(),Object(n["createElementBlock"])("div",a,[Object(n["createVNode"])(g,null,{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(b,{ref:"form",model:e.form,"label-width":"80px"},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(p,null,{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(c,{label:e.$t("defalult.sj")},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(s,{type:"month",placeholder:e.$t("defalult.xzrq")},null,8,["placeholder"])]),_:1},8,["label"]),Object(n["createVNode"])(c,{label:e.$t("dataEnquiry.jd")},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(u,{modelValue:e.value,"onUpdate:modelValue":t[0]||(t[0]=t=>e.value=t),placeholder:e.$t("dataEnquiry.qxzjd")},{default:Object(n["withCtx"])(()=>[(Object(n["openBlock"])(!0),Object(n["createElementBlock"])(n["Fragment"],null,Object(n["renderList"])(i.options,e=>(Object(n["openBlock"])(),Object(n["createBlock"])(d,{key:e.value,label:e.label,value:e.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue","placeholder"])]),_:1},8,["label"]),Object(n["createVNode"])(c,{label:e.$t("dataEnquiry.sq")},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(u,{modelValue:e.value,"onUpdate:modelValue":t[1]||(t[1]=t=>e.value=t),placeholder:"请选择社区"},{default:Object(n["withCtx"])(()=>[(Object(n["openBlock"])(!0),Object(n["createElementBlock"])(n["Fragment"],null,Object(n["renderList"])(i.options,e=>(Object(n["openBlock"])(),Object(n["createBlock"])(d,{key:e.value,label:e.label,value:e.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1},8,["label"]),Object(n["createVNode"])(c,{label:e.$t("dataEnquiry.zdmc")},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(m,{modelValue:i.queryForm.name,"onUpdate:modelValue":t[2]||(t[2]=e=>i.queryForm.name=e),placeholder:e.$t("dataEnquiry.qsrzdmc")},null,8,["modelValue","placeholder"])]),_:1},8,["label"]),Object(n["createVNode"])(h,{type:"primary",onClick:e.search},{default:Object(n["withCtx"])(()=>[Object(n["createTextVNode"])(Object(n["toDisplayString"])(e.$t("defalult.cx")),1)]),_:1},8,["onClick"]),Object(n["createVNode"])(h,{type:"primary",onClick:e.search},{default:Object(n["withCtx"])(()=>[Object(n["createTextVNode"])(Object(n["toDisplayString"])(e.$t("defalult.chongz")),1)]),_:1},8,["onClick"]),Object(n["createVNode"])(h,{type:"primary",onClick:e.search},{default:Object(n["withCtx"])(()=>[Object(n["createTextVNode"])(Object(n["toDisplayString"])(e.$t("defalult.dc")),1)]),_:1},8,["onClick"])]),_:1})]),_:1},8,["model"])]),_:1}),Object(n["withDirectives"])((Object(n["openBlock"])(),Object(n["createBlock"])(v,{data:i.data,border:"",stripe:"",style:{width:"100%"}},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(f,{prop:"id",label:e.$t("trigger.xh"),width:"60",align:"center"},null,8,["label"]),Object(n["createVNode"])(f,{prop:"jiedao",label:e.$t("maintenance.sbmc"),width:"120",align:"center"},null,8,["label"]),Object(n["createVNode"])(f,{prop:"shequ",label:e.$t("dataEnquiry.jd"),width:"200",align:"center"},null,8,["label"]),Object(n["createVNode"])(f,{prop:"mingcheng",label:"设施名称",width:"200",align:"center"}),Object(n["createVNode"])(f,{prop:"guimo",label:"运行时长(min)",width:"200",align:"center"}),Object(n["createVNode"])(f,{prop:"kaishi1",label:"停用时长(min)",width:"200",align:"center"}),Object(n["createVNode"])(f,{prop:"jieshu1",label:"故障时长(min)",width:"200",align:"center"}),Object(n["createVNode"])(f,{prop:"dangqian",label:"设施运行率(%)",width:"200",align:"center"}),Object(n["createVNode"])(f,{prop:"kaishi2",label:"设施故障率",width:"200",align:"center"}),Object(n["createVNode"])(f,{fixed:"right",label:e.$t("defalult.cz"),align:"center"},{default:Object(n["withCtx"])(({row:t})=>[Object(n["createVNode"])(h,{type:"text",onClick:e=>l.handleDelete(t)},{default:Object(n["withCtx"])(()=>[Object(n["createTextVNode"])(Object(n["toDisplayString"])(e.$t("defalult.sc")),1)]),_:2},1032,["onClick"])]),_:1},8,["label"])]),_:1},8,["data"])),[[C,i.listLoading]]),Object(n["createVNode"])(p,null,{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(k,null,{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(w,{background:i.background,"current-page":i.queryForm.page,layout:i.layout,"page-size":i.queryForm.size,total:i.total,onCurrentChange:l.handleCurrentChange,onSizeChange:l.handleSizeChange},null,8,["background","current-page","layout","page-size","total","onCurrentChange","onSizeChange"])]),_:1})]),_:1})])}var i={name:"Index",components:{},data(){return{data:[{id:1,jiedao:"设备名称",shequ:"街道",mingcheng:"设施名字",guimo:"40",kaishi1:"28",jieshu1:"222",dangqian:"37",kaishi2:"87"},{id:2,jiedao:"设备名称",shequ:"街道",mingcheng:"设施名字",guimo:"40",kaishi1:"28",jieshu1:"222",dangqian:"37",kaishi2:"87"},{id:3,jiedao:"设备名称",shequ:"街道",mingcheng:"设施名字",guimo:"50",kaishi1:"28",jieshu1:"222",dangqian:"37",kaishi2:"87"}],options:[{value:"选项1",label:"黄金糕"},{value:"选项2",label:"双皮奶"},{value:"选项3",label:"蚵仔煎"},{value:"选项4",label:"龙须面"},{value:"选项5",label:"北京烤鸭"}],lazy:!0,activeName:"first",layout:"total, sizes, prev, pager, next, jumper",total:0,input:"",textarea:"",list:[],background:!0,listLoading:!0,elementLoadingText:"正在加载...",queryForm:{page:1,size:20,name:""}}},computed:{height(){return 500}},created(){this.fetchData()},methods:{async fetchData(){this.listLoading=!0,setTimeout(()=>{this.listLoading=!1},500)},handleAdd(){this.$refs["edit"].showEdit()},handleEdit(e){this.$refs["edit"].showEdit(e)},handleQuery(){this.queryForm.page=1,this.fetchData()},handleSizeChange(e){this.queryForm.size=e,this.fetchData()},handleCurrentChange(e){this.queryForm.page=e,this.fetchData()},handleDelete(e){e.id&&this.$confirm("你确定要删除当前项吗?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(()=>{this.$message({type:"success",message:"删除成功"})}).catch(()=>{this.$message({type:"info",message:"已取消删除"})})}}},l=(o("bbf5"),o("e2ef"),o("d959")),s=o.n(l);const c=s()(i,[["render",r],["__scopeId","data-v-2a7968fc"]]);t["default"]=c},d392:function(e,t,o){"use strict";o.r(t);var n=o("f2bf");const a={class:"manage-container"},r={key:0},i={key:1},l={key:2},s={key:3},c={key:4},d={key:5},u={key:0},m={key:1};function h(e,t,o,h,p,b){const g=Object(n["resolveComponent"])("el-table-column"),f=Object(n["resolveComponent"])("el-button"),v=Object(n["resolveComponent"])("el-table"),w=Object(n["resolveComponent"])("bind-project"),k=Object(n["resolveDirective"])("loading");return Object(n["openBlock"])(),Object(n["createElementBlock"])("div",a,[Object(n["withDirectives"])((Object(n["openBlock"])(),Object(n["createBlock"])(v,{data:p.tableData,stripe:"",border:"",style:{width:"100%"}},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(g,{fixed:"",prop:"vehicleName",label:e.$t("vehicles.clmc"),width:"150",align:"center"},null,8,["label"]),Object(n["createVNode"])(g,{prop:"vehicleIcon",label:e.$t("vehicles.cltb"),width:"150",align:"center"},null,8,["label"]),Object(n["createVNode"])(g,{prop:"vehicleNumber",label:e.$t("vehicle.cph"),width:"150",align:"center"},null,8,["label"]),Object(n["createVNode"])(g,{prop:"projectName",label:e.$t("staff.bdxm"),width:"150",align:"center"},{default:Object(n["withCtx"])(({row:e})=>[(Object(n["openBlock"])(!0),Object(n["createElementBlock"])(n["Fragment"],null,Object(n["renderList"])(e.projects,(e,t)=>(Object(n["openBlock"])(),Object(n["createElementBlock"])("span",{key:t,style:{display:"block"}},Object(n["toDisplayString"])(e.name),1))),128))]),_:1},8,["label"]),Object(n["createVNode"])(g,{prop:"imei",label:"IMEI",width:"350",align:"center"}),Object(n["createVNode"])(g,{prop:"deviceName",label:e.$t("maintenance.sbmc"),width:"250",align:"center"},null,8,["label"]),Object(n["createVNode"])(g,{prop:"mcType",label:e.$t("vehicles.sbxh"),width:"150",align:"center"},null,8,["label"]),Object(n["createVNode"])(g,{prop:"mcTypeUseScope",label:e.$t("vehicles.jx"),width:"120",align:"center"},{default:Object(n["withCtx"])(({row:t})=>["aotomobile"==t.mcTypeUseScope?(Object(n["openBlock"])(),Object(n["createElementBlock"])("span",r,Object(n["toDisplayString"])(e.$t("vehicles.qc")),1)):Object(n["createCommentVNode"])("",!0),"electromobile"==t.mcTypeUseScope?(Object(n["openBlock"])(),Object(n["createElementBlock"])("span",i,Object(n["toDisplayString"])(e.$t("vehicles.ddc")),1)):Object(n["createCommentVNode"])("",!0),"personal"==t.mcTypeUseScope?(Object(n["openBlock"])(),Object(n["createElementBlock"])("span",l,Object(n["toDisplayString"])(e.$t("vehicles.gr")),1)):Object(n["createCommentVNode"])("",!0),"pet"==t.mcTypeUseScope?(Object(n["openBlock"])(),Object(n["createElementBlock"])("span",s,Object(n["toDisplayString"])(e.$t("vehicles.cw")),1)):Object(n["createCommentVNode"])("",!0),"plane"==t.mcTypeUseScope?(Object(n["openBlock"])(),Object(n["createElementBlock"])("span",c,Object(n["toDisplayString"])(e.$t("vehicles.fj")),1)):Object(n["createCommentVNode"])("",!0),"others"==t.mcTypeUseScope?(Object(n["openBlock"])(),Object(n["createElementBlock"])("span",d,Object(n["toDisplayString"])(e.$t("vehicles.qt")),1)):Object(n["createCommentVNode"])("",!0)]),_:1},8,["label"]),Object(n["createVNode"])(g,{prop:"equipType",label:e.$t("dataEnquiry.sblx"),width:"150",align:"center"},{default:Object(n["withCtx"])(({row:t})=>["WIRED"==t.equipType?(Object(n["openBlock"])(),Object(n["createElementBlock"])("span",u,Object(n["toDisplayString"])(e.$t("vehicles.yx")),1)):Object(n["createCommentVNode"])("",!0),"WIRELESS"==t.equipType?(Object(n["openBlock"])(),Object(n["createElementBlock"])("span",m,Object(n["toDisplayString"])(e.$t("vehicles.wx")),1)):Object(n["createCommentVNode"])("",!0)]),_:1},8,["label"]),Object(n["createVNode"])(g,{prop:"sim",label:e.$t("vehicles.smkh"),width:"150",align:"center"},null,8,["label"]),Object(n["createVNode"])(g,{prop:"expiration",label:e.$t("vehicles.dqsj"),width:"150",align:"center"},null,8,["label"]),Object(n["createVNode"])(g,{prop:"activationTime",label:e.$t("vehicles.jhsj"),width:"150",align:"center"},null,8,["label"]),Object(n["createVNode"])(g,{prop:"reMark",label:e.$t("alarm.bz"),width:"150",align:"center"},null,8,["label"]),Object(n["createVNode"])(g,{fixed:"right",label:e.$t("defalult.cz"),width:"120",align:"center"},{default:Object(n["withCtx"])(({row:t})=>[Object(n["createVNode"])(f,{type:"text",onClick:e=>b.bindProject(t)},{default:Object(n["withCtx"])(()=>[Object(n["createTextVNode"])(Object(n["toDisplayString"])(e.$t("staff.bdxm")),1)]),_:2},1032,["onClick"])]),_:1},8,["label"])]),_:1},8,["data"])),[[k,p.listLoading]]),Object(n["createVNode"])(w,{ref:"bind"},null,512)])}var p=o("fbb2"),b=o("c847"),g={components:{bindProject:b["default"]},data(){return{tableData:[],lazy:!0,listLoading:!0,elementLoadingText:"正在加载..."}},created(){this.fetchData()},methods:{async fetchData(){this.listLoading=!0;const{data:e}=await Object(p["getDeviceList"])();this.tableData=e,setTimeout(()=>{this.listLoading=!1},500)},bindProject(e){this.$refs["bind"].bindProduct(e)}}},f=(o("8434"),o("d959")),v=o.n(f);const w=v()(g,[["render",h]]);t["default"]=w},d393:function(e,t,o){},d400:function(e,t,o){"use strict";o.r(t);var n=o("f2bf");const a={id:"personnel-site",style:{width:"100%",height:"300px"}};function r(e,t,o,r,i,l){return Object(n["openBlock"])(),Object(n["createElementBlock"])("div",a)}o("14d9");var i=o("365c"),l=o("5f99"),s=o("313e"),c={props:{time:{type:Array},all:{type:Boolean,default:!1}},data(){return{chartPie:null,yData:[],xData:[],seriesData:[],isAllProject:!1}},watch:{time(e){this.maintenanceTime=e,this.getInspectionData(),setTimeout(()=>{this.drawCharts()},2e3)},all(e){this.isAllProject=e,this.getInspectionData(),setTimeout(()=>{this.drawCharts()},2e3)}},mounted:function(){},methods:{async getInspectionData(){var e=sessionStorage.getItem("projectId"),t={};t=0==this.isAllProject?{start:Object(l["getDate"])(this.maintenanceTime[0]),end:Object(l["getDate"])(this.maintenanceTime[1]),projectId:e}:{start:Object(l["getDate"])(this.maintenanceTime[0]),end:Object(l["getDate"])(this.maintenanceTime[1])};const{data:o}=await Object(i["getInspectionData"])(t);var n=[],a=[],r=[];o.byDevice.forEach((function(e,t){t<10&&(n.push(e.key),a.push(e.data),r.push([e.key,e.data]))})),this.xData=n,this.yData=a,this.seriesData=r},drawPieChart(){console.log(this.seriesData),this.chartPie=s["a"](document.getElementById("personnel-site")),this.chartPie.setOption({title:{left:"center",text:"Statistics by site"},toolbox:{feature:{dataZoom:{yAxisIndex:!1},saveAsImage:{pixelRatio:2}}},tooltip:{trigger:"item",axisPointer:{type:"shadow"}},grid:{left:"3%",right:"4%",bottom:"3%",containLabel:!0},xAxis:{type:"category",data:this.xData,silent:!1,interval:0,splitLine:{show:!1},splitArea:{show:!1}},yAxis:{splitArea:{show:!1}},series:[{type:"bar",data:this.yData,large:!0}]})},drawCharts(){this.drawPieChart()}}},d=o("d959"),u=o.n(d);const m=u()(c,[["render",r]]);t["default"]=m},d462:function(e,t,o){e.exports={"menu-color":"hsla(0,0%,27%,.95)","menu-color-active":"hsla(208,100%,55%,.95)","menu-background":"#fff","gallery-second-menu-background":"#fff"}},d4fe:function(e,t,o){},d561:function(e,t,o){},d562:function(e,t,o){"use strict";o("8ff1")},d56c:function(e,t,o){"use strict";o.r(t);var n=o("f2bf");const a={class:"manage-container"},r={class:"manage-wrap"},i={class:"manage-input"},l={class:"manage-button"},s={class:"dialog-footer"},c={class:"dialog-footer"},d={class:"manage-wrap"},u={class:"manage-input"},m={class:"manage-button"},h={class:"dialog-footer"},p={class:"manage-wrap"},b={class:"manage-input"},g={class:"manage-button"};function f(e,t,o,f,v,w){const k=Object(n["resolveComponent"])("dict-index"),C=Object(n["resolveComponent"])("el-tab-pane"),y=Object(n["resolveComponent"])("el-input"),O=Object(n["resolveComponent"])("el-button"),j=Object(n["resolveComponent"])("el-form-item"),x=Object(n["resolveComponent"])("el-form"),_=Object(n["resolveComponent"])("el-dialog"),V=Object(n["resolveComponent"])("el-table-column"),A=Object(n["resolveComponent"])("el-table"),N=Object(n["resolveComponent"])("el-pagination"),D=Object(n["resolveComponent"])("el-option"),E=Object(n["resolveComponent"])("el-select"),T=Object(n["resolveComponent"])("el-date-picker"),S=Object(n["resolveComponent"])("vab-query-form"),B=Object(n["resolveComponent"])("vab-query-form-left-panel"),I=Object(n["resolveComponent"])("vab-query-form-right-panel"),z=Object(n["resolveComponent"])("el-tabs");return Object(n["openBlock"])(),Object(n["createElementBlock"])("div",a,[Object(n["createVNode"])(z,{modelValue:v.activeName,"onUpdate:modelValue":t[27]||(t[27]=e=>v.activeName=e),onTabClick:w.handleClick},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(C,{label:"数据字典",name:"first"},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(k,{ref:"dict"},null,512)]),_:1}),Object(n["createVNode"])(C,{label:"LPM管理",name:"second"},{default:Object(n["withCtx"])(()=>[Object(n["createElementVNode"])("div",r,[Object(n["createElementVNode"])("div",i,[Object(n["createVNode"])(y,{modelValue:e.input,"onUpdate:modelValue":t[0]||(t[0]=t=>e.input=t),size:"small",placeholder:"名称查询"},null,8,["modelValue"])]),Object(n["createElementVNode"])("div",l,[Object(n["createVNode"])(O,{type:"primary",size:"small"},{default:Object(n["withCtx"])(()=>[Object(n["createTextVNode"])(Object(n["toDisplayString"])(e.$t("defalult.cx")),1)]),_:1}),Object(n["createVNode"])(O,{type:"primary",size:"small",onClick:t[1]||(t[1]=t=>e.dialogEditLPM=!0)},{default:Object(n["withCtx"])(()=>t[28]||(t[28]=[Object(n["createTextVNode"])(" 添加LPM ")])),_:1}),Object(n["createVNode"])(_,{modelValue:e.dialogEditLPM,"onUpdate:modelValue":t[8]||(t[8]=t=>e.dialogEditLPM=t),title:"添加数据字典"},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(x,{model:e.form},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(j,{label:e.$t("trigger.mc"),"label-width":e.formLabelWidth},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(y,{modelValue:e.form.name,"onUpdate:modelValue":t[2]||(t[2]=t=>e.form.name=t),autocomplete:"off"},null,8,["modelValue"])]),_:1},8,["label","label-width"]),Object(n["createVNode"])(j,{label:"IP","label-width":e.formLabelWidth},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(y,{modelValue:e.form.name,"onUpdate:modelValue":t[3]||(t[3]=t=>e.form.name=t),autocomplete:"off"},null,8,["modelValue"])]),_:1},8,["label-width"]),Object(n["createVNode"])(j,{label:"PORT","label-width":e.formLabelWidth},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(y,{modelValue:e.form.name,"onUpdate:modelValue":t[4]||(t[4]=t=>e.form.name=t),autocomplete:"off"},null,8,["modelValue"])]),_:1},8,["label-width"]),Object(n["createVNode"])(j,{label:"LPM-KEY","label-width":e.formLabelWidth},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(y,{modelValue:e.form.name,"onUpdate:modelValue":t[5]||(t[5]=t=>e.form.name=t),autocomplete:"off"},null,8,["modelValue"])]),_:1},8,["label-width"])]),_:1},8,["model"]),Object(n["createElementVNode"])("div",s,[Object(n["createVNode"])(O,{type:"primary",onClick:t[6]||(t[6]=t=>e.dialogEditLPM=!1)},{default:Object(n["withCtx"])(()=>t[29]||(t[29]=[Object(n["createTextVNode"])(" 保存 ")])),_:1}),Object(n["createVNode"])(O,{onClick:t[7]||(t[7]=t=>e.dialogEditLPM=!1)},{default:Object(n["withCtx"])(()=>t[30]||(t[30]=[Object(n["createTextVNode"])("取 消")])),_:1})])]),_:1},8,["modelValue"])])]),Object(n["createVNode"])(A,{data:e.tableData2,border:"",stripe:"",style:{width:"100%"}},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(V,{prop:"id",label:e.$t("trigger.xh"),width:"80",align:"center"},null,8,["label"]),Object(n["createVNode"])(V,{prop:"name",label:e.$t("trigger.mc"),width:"180",align:"center"},null,8,["label"]),Object(n["createVNode"])(V,{prop:"ip",label:"IP",width:"180",align:"center"}),Object(n["createVNode"])(V,{prop:"port",label:"PORT",width:"120",align:"center"}),Object(n["createVNode"])(V,{prop:"key",label:"LPM-KEY",width:"380",align:"center"}),Object(n["createVNode"])(V,{fixed:"right",label:e.$t("defalult.cz"),align:"center"},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(O,{type:"text",size:"small",onClick:t[9]||(t[9]=t=>e.dialogFormLPM=!0)},{default:Object(n["withCtx"])(()=>[Object(n["createTextVNode"])(Object(n["toDisplayString"])(e.$t("defalult.bj")),1)]),_:1}),Object(n["createVNode"])(_,{modelValue:e.dialogFormLPM,"onUpdate:modelValue":t[16]||(t[16]=t=>e.dialogFormLPM=t),title:"添加数据字典"},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(x,{model:e.form},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(j,{label:e.$t("trigger.mc"),"label-width":e.formLabelWidth},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(y,{modelValue:e.form.name,"onUpdate:modelValue":t[10]||(t[10]=t=>e.form.name=t),autocomplete:"off"},null,8,["modelValue"])]),_:1},8,["label","label-width"]),Object(n["createVNode"])(j,{label:"IP","label-width":e.formLabelWidth},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(y,{modelValue:e.form.name,"onUpdate:modelValue":t[11]||(t[11]=t=>e.form.name=t),autocomplete:"off"},null,8,["modelValue"])]),_:1},8,["label-width"]),Object(n["createVNode"])(j,{label:"PORT","label-width":e.formLabelWidth},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(y,{modelValue:e.form.name,"onUpdate:modelValue":t[12]||(t[12]=t=>e.form.name=t),autocomplete:"off"},null,8,["modelValue"])]),_:1},8,["label-width"]),Object(n["createVNode"])(j,{label:"LPM-KEY","label-width":e.formLabelWidth},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(y,{modelValue:e.form.name,"onUpdate:modelValue":t[13]||(t[13]=t=>e.form.name=t),autocomplete:"off"},null,8,["modelValue"])]),_:1},8,["label-width"])]),_:1},8,["model"]),Object(n["createElementVNode"])("div",c,[Object(n["createVNode"])(O,{type:"primary",onClick:t[14]||(t[14]=t=>e.dialogFormLPM=!1)},{default:Object(n["withCtx"])(()=>t[31]||(t[31]=[Object(n["createTextVNode"])(" 保存 ")])),_:1}),Object(n["createVNode"])(O,{onClick:t[15]||(t[15]=t=>e.dialogFormLPM=!1)},{default:Object(n["withCtx"])(()=>t[32]||(t[32]=[Object(n["createTextVNode"])("取 消")])),_:1})])]),_:1},8,["modelValue"]),Object(n["createVNode"])(O,{type:"text",size:"small"},{default:Object(n["withCtx"])(()=>[Object(n["createTextVNode"])(Object(n["toDisplayString"])(e.$t("defalult.sc")),1)]),_:1})]),_:1},8,["label"])]),_:1},8,["data"]),Object(n["createVNode"])(N,{"current-page":e.currentPage4,"page-sizes":[100,200,300,400],"page-size":100,layout:"total, sizes, prev, pager, next, jumper",total:400,style:{"text-align":"right"},onSizeChange:e.handleSizeChange,onCurrentChange:e.handleCurrentChange},null,8,["current-page","onSizeChange","onCurrentChange"])]),_:1}),Object(n["createVNode"])(C,{label:"系统参数",name:"third"},{default:Object(n["withCtx"])(()=>[Object(n["createElementVNode"])("div",d,[Object(n["createElementVNode"])("div",u,[Object(n["createVNode"])(y,{modelValue:e.input,"onUpdate:modelValue":t[17]||(t[17]=t=>e.input=t),size:"small",placeholder:"名称查询"},null,8,["modelValue"])]),Object(n["createElementVNode"])("div",m,[Object(n["createVNode"])(O,{type:"primary",size:"small"},{default:Object(n["withCtx"])(()=>[Object(n["createTextVNode"])(Object(n["toDisplayString"])(e.$t("defalult.cx")),1)]),_:1})])]),Object(n["createVNode"])(A,{data:e.tableData3,border:"",stripe:"",style:{width:"100%"}},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(V,{prop:"id",label:e.$t("trigger.xh"),width:"80",align:"center"},null,8,["label"]),Object(n["createVNode"])(V,{prop:"key",label:"名称KEY",width:"180",align:"center"}),Object(n["createVNode"])(V,{prop:"price",label:"值",width:"180",align:"center"}),Object(n["createVNode"])(V,{prop:"remarks",label:e.$t("alarm.bz"),width:"380",align:"center"},null,8,["label"]),Object(n["createVNode"])(V,{fixed:"right",label:e.$t("defalult.cz"),align:"center"},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(O,{type:"text",size:"small",onClick:t[18]||(t[18]=t=>e.dialogFormIn=!0)},{default:Object(n["withCtx"])(()=>[Object(n["createTextVNode"])(Object(n["toDisplayString"])(e.$t("defalult.bj")),1)]),_:1}),Object(n["createVNode"])(_,{modelValue:e.dialogFormIn,"onUpdate:modelValue":t[24]||(t[24]=t=>e.dialogFormIn=t),title:"编辑信息"},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(x,{model:e.form},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(j,{label:e.$t("trigger.mc"),"label-width":e.formLabelWidth},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(y,{modelValue:e.form.name,"onUpdate:modelValue":t[19]||(t[19]=t=>e.form.name=t),autocomplete:"off"},null,8,["modelValue"])]),_:1},8,["label","label-width"]),Object(n["createVNode"])(j,{label:"数值","label-width":e.formLabelWidth},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(y,{modelValue:e.form.name,"onUpdate:modelValue":t[20]||(t[20]=t=>e.form.name=t),autocomplete:"off"},null,8,["modelValue"])]),_:1},8,["label-width"]),Object(n["createVNode"])(j,{label:e.$t("alarm.bz"),"label-width":e.formLabelWidth},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(y,{modelValue:e.form.name,"onUpdate:modelValue":t[21]||(t[21]=t=>e.form.name=t),autocomplete:"off"},null,8,["modelValue"])]),_:1},8,["label","label-width"])]),_:1},8,["model"]),Object(n["createElementVNode"])("div",h,[Object(n["createVNode"])(O,{type:"primary",onClick:t[22]||(t[22]=t=>e.dialogFormIn=!1)},{default:Object(n["withCtx"])(()=>t[33]||(t[33]=[Object(n["createTextVNode"])(" 保存 ")])),_:1}),Object(n["createVNode"])(O,{onClick:t[23]||(t[23]=t=>e.dialogFormIn=!1)},{default:Object(n["withCtx"])(()=>t[34]||(t[34]=[Object(n["createTextVNode"])("取 消")])),_:1})])]),_:1},8,["modelValue"]),Object(n["createVNode"])(O,{type:"text",size:"small"},{default:Object(n["withCtx"])(()=>[Object(n["createTextVNode"])(Object(n["toDisplayString"])(e.$t("defalult.sc")),1)]),_:1})]),_:1},8,["label"])]),_:1},8,["data"]),Object(n["createVNode"])(N,{"current-page":e.currentPage4,"page-sizes":[100,200,300,400],"page-size":100,layout:"total, sizes, prev, pager, next, jumper",total:400,style:{"text-align":"right"},onSizeChange:e.handleSizeChange,onCurrentChange:e.handleCurrentChange},null,8,["current-page","onSizeChange","onCurrentChange"])]),_:1}),Object(n["createVNode"])(C,{label:"日志管理",name:"fourth"},{default:Object(n["withCtx"])(()=>[Object(n["createElementVNode"])("div",p,[Object(n["createElementVNode"])("div",b,[Object(n["createVNode"])(x,{ref:"queryForm",model:e.queryForm,"label-width":"80px"},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(S,null,{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(j,{width:"100",prop:"deviceName",label:"数据选择"},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(E,{modelValue:e.value1,"onUpdate:modelValue":t[25]||(t[25]=t=>e.value1=t),size:"small",placeholder:"请选择"},{default:Object(n["withCtx"])(()=>[(Object(n["openBlock"])(!0),Object(n["createElementBlock"])(n["Fragment"],null,Object(n["renderList"])(e.options,e=>(Object(n["openBlock"])(),Object(n["createBlock"])(D,{key:e.value,label:e.label,value:e.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),Object(n["createVNode"])(j,{width:"100",prop:"deviceName",label:"日期选择"},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(T,{modelValue:e.value1,"onUpdate:modelValue":t[26]||(t[26]=t=>e.value1=t),size:"small",type:"date",placeholder:e.$t("defalult.xzrq")},null,8,["modelValue","placeholder"])]),_:1})]),_:1})]),_:1},8,["model"])]),Object(n["createElementVNode"])("div",g,[Object(n["createVNode"])(O,{type:"primary",size:"small"},{default:Object(n["withCtx"])(()=>[Object(n["createTextVNode"])(Object(n["toDisplayString"])(e.$t("defalult.cx")),1)]),_:1})])]),Object(n["createVNode"])(A,{data:e.tableData4,border:"",stripe:"",style:{width:"100%"}},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(V,{prop:"ip",label:"IP",width:"140",align:"center"}),Object(n["createVNode"])(V,{prop:"id",label:"用户ID",width:"140",align:"center"}),Object(n["createVNode"])(V,{prop:"date",label:"操作时间",width:"200",align:"center"}),Object(n["createVNode"])(V,{prop:"source",label:"请求来源",width:"140",align:"center"}),Object(n["createVNode"])(V,{prop:"module",label:"所属模块",width:"140",align:"center"}),Object(n["createVNode"])(V,{prop:"name",label:e.$t("trigger.mc"),width:"140",align:"center"},null,8,["label"]),Object(n["createVNode"])(V,{prop:"remarks",label:e.$t("alarm.bz"),align:"center"},null,8,["label"])]),_:1},8,["data"]),Object(n["createVNode"])(S,null,{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(B),Object(n["createVNode"])(I,null,{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(N,{"current-page":e.currentPage4,"page-sizes":[100,200,300,400],"page-size":100,layout:"total, sizes, prev, pager, next, jumper",total:400,onSizeChange:e.handleSizeChange,onCurrentChange:e.handleCurrentChange},null,8,["current-page","onSizeChange","onCurrentChange"])]),_:1})]),_:1})]),_:1}),Object(n["createVNode"])(C,{label:"系统备份",name:"fifth"},{default:Object(n["withCtx"])(()=>t[35]||(t[35]=[Object(n["createTextVNode"])("角色管理")])),_:1})]),_:1},8,["modelValue","onTabClick"])])}var v=o("f606"),w={name:"Develop",components:{dictIndex:v["default"]},data(){return{activeName:"first"}},methods:{handleClick(e,t){console.log(e,t),"first"==e.paneName&&this.$refs["dict"].dictIndex()}}},k=(o("3e64"),o("d959")),C=o.n(k);const y=C()(w,[["render",f]]);t["default"]=y},d5be:function(e,t,o){"use strict";o.r(t);var n=o("f2bf");const a={class:"manage-container"};function r(e,t,o,r,i,l){const s=Object(n["resolveComponent"])("el-button"),c=Object(n["resolveComponent"])("vab-query-form"),d=Object(n["resolveComponent"])("el-table-column"),u=Object(n["resolveComponent"])("el-table"),m=Object(n["resolveComponent"])("el-pagination"),h=Object(n["resolveComponent"])("vab-query-form-right-panel"),p=Object(n["resolveComponent"])("user-edit");return Object(n["openBlock"])(),Object(n["createElementBlock"])("div",a,[Object(n["createVNode"])(c,null,{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(s,{type:"primary",onClick:l.handleAdd},{default:Object(n["withCtx"])(()=>t[0]||(t[0]=[Object(n["createTextVNode"])("添加用户")])),_:1},8,["onClick"])]),_:1}),Object(n["createVNode"])(u,{data:i.userData,border:"",stripe:"",style:{width:"100%"}},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(d,{prop:"id",label:"ID",width:"60",align:"center"}),Object(n["createVNode"])(d,{prop:"name",label:e.$t("staff.xm"),width:"120",align:"center"},null,8,["label"]),Object(n["createVNode"])(d,{prop:"phone",label:"电话",width:"120",align:"center"}),Object(n["createVNode"])(d,{prop:"email",label:e.$t("staff.yx"),width:"120",align:"center"},null,8,["label"]),Object(n["createVNode"])(d,{prop:"wechat",label:"微信",width:"120",align:"center"}),Object(n["createVNode"])(d,{prop:"createTime",label:e.$t("grouping.cjsj"),width:"200",align:"center"},null,8,["label"]),Object(n["createVNode"])(d,{prop:"updateTime",label:e.$t("grouping.gxsj"),width:"200",align:"center"},null,8,["label"]),Object(n["createVNode"])(d,{fixed:"right",label:e.$t("defalult.cz"),align:"center"},{default:Object(n["withCtx"])(({row:t})=>[Object(n["createVNode"])(s,{type:"text",onClick:e=>l.handleEdit(t)},{default:Object(n["withCtx"])(()=>[Object(n["createTextVNode"])(Object(n["toDisplayString"])(e.$t("defalult.bj")),1)]),_:2},1032,["onClick"]),Object(n["createVNode"])(s,{type:"text",onClick:e=>l.handleDelete(t)},{default:Object(n["withCtx"])(()=>[Object(n["createTextVNode"])(Object(n["toDisplayString"])(e.$t("defalult.sc")),1)]),_:2},1032,["onClick"])]),_:1},8,["label"])]),_:1},8,["data"]),Object(n["createVNode"])(c,null,{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(h,null,{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(m,{background:i.background,"current-page":i.queryForm.page,layout:i.layout,"page-size":i.queryForm.size,total:i.total,onCurrentChange:l.handleCurrentChange,onSizeChange:l.handleSizeChange},null,8,["background","current-page","layout","page-size","total","onCurrentChange","onSizeChange"])]),_:1})]),_:1}),Object(n["createVNode"])(p,{ref:"edit"},null,512)])}var i=o("f547"),l=o("3868"),s={name:"Index",components:{userEdit:l["default"]},data(){return{userData:[],lazy:!0,layout:"total, sizes, prev, pager, next, jumper",total:0,background:!0,listLoading:!0,elementLoadingText:"正在加载...",queryForm:{page:1,size:20,name:""}}},computed:{height(){return 500}},created(){this.fetchData()},methods:{async fetchData(){this.listLoading=!0;const{data:e}=await Object(i["getList"])(this.queryForm);this.userData=e.items,this.total=e.total,setTimeout(()=>{this.listLoading=!1},500)},handleAdd(){this.$refs["edit"].showEdit()},handleEdit(e){this.$refs["edit"].showEdit(e)},handleQuery(){this.queryForm.page=1,this.fetchData()},handleSizeChange(e){this.queryForm.size=e,this.fetchData()},handleCurrentChange(e){this.queryForm.page=e,this.fetchData()},handleDelete(e){e.id&&this.$confirm("你确定要删除当前项吗?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(()=>{const{msg:t}=Object(i["doDelete"])({userId:e.id});this.$message({type:"success",message:t})}).catch(()=>{this.$message({type:"info",message:"已取消删除"})})}}},c=(o("9124"),o("d959")),d=o.n(c);const u=d()(s,[["render",r],["__scopeId","data-v-21d54df2"]]);t["default"]=u},d66e:function(e,t,o){e.exports={"menu-color":"hsla(0,0%,27%,.95)","menu-color-active":"hsla(208,100%,55%,.95)","menu-background":"#fff","gallery-second-menu-background":"#fff"}},d734:function(e,t,o){},d793:function(e,t,o){"use strict";o.r(t);var n=o("f2bf");const a={class:"manage-container"};function r(e,t,o,r,i,l){const s=Object(n["resolveComponent"])("el-button"),c=Object(n["resolveComponent"])("vab-query-form"),d=Object(n["resolveComponent"])("el-table-column"),u=Object(n["resolveComponent"])("el-table"),m=Object(n["resolveComponent"])("el-pagination"),h=Object(n["resolveComponent"])("vab-query-form-right-panel"),p=Object(n["resolveComponent"])("rule-edit"),b=Object(n["resolveDirective"])("loading");return Object(n["openBlock"])(),Object(n["createElementBlock"])("div",a,[Object(n["createVNode"])(c,null,{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(s,{type:"primary",onClick:t[0]||(t[0]=t=>e.handleAdd())},{default:Object(n["withCtx"])(()=>t[1]||(t[1]=[Object(n["createTextVNode"])("添加触发器规则")])),_:1}),Object(n["createVNode"])(s,{type:"primary",onClick:e.deletes},{default:Object(n["withCtx"])(()=>[Object(n["createTextVNode"])(Object(n["toDisplayString"])(e.$t("defalult.plsc")),1)]),_:1},8,["onClick"]),Object(n["createVNode"])(s,{type:"primary",onClick:e.triggerRuleUse},{default:Object(n["withCtx"])(()=>[Object(n["createTextVNode"])(Object(n["toDisplayString"])(e.$t("trigger.plyy")),1)]),_:1},8,["onClick"])]),_:1}),Object(n["withDirectives"])((Object(n["openBlock"])(),Object(n["createBlock"])(u,{data:e.sensorData,border:"",stripe:"",style:{width:"100%"}},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(d,{type:"selection",width:"55"}),Object(n["createVNode"])(d,{prop:"name",label:e.$t("sensor.cgqmc"),width:"120",align:"center"},null,8,["label"]),Object(n["createVNode"])(d,{fixed:"right",label:e.$t("defalult.cz"),align:"center"},{default:Object(n["withCtx"])(({row:o})=>[Object(n["createVNode"])(s,{type:"text",onClick:t=>e.handleEdit(o)},{default:Object(n["withCtx"])(()=>t[2]||(t[2]=[Object(n["createTextVNode"])("规则")])),_:2},1032,["onClick"])]),_:1},8,["label"])]),_:1},8,["data"])),[[b,i.listLoading]]),Object(n["createVNode"])(c,null,{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(h,null,{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(m,{background:i.background,"current-page":i.queryForm.page,layout:i.layout,"page-size":i.queryForm.size,total:i.total,onCurrentChange:e.handleCurrentChange,onSizeChange:e.handleSizeChange},null,8,["background","current-page","layout","page-size","total","onCurrentChange","onSizeChange"])]),_:1})]),_:1}),Object(n["createVNode"])(p,{ref:"edit"},null,512)])}o("14d9");var i=o("b681"),l=o("75c5"),s={name:"Index",components:{ruleEdit:l["default"]},data(){return{ruleData:[],deviceId:"",projectId:"",lazy:!0,layout:"total, sizes, prev, pager, next, jumper",total:0,ids:[],background:!0,listLoading:!0,elementLoadingText:"正在加载...",queryForm:{projectId:""}}},computed:{height(){return 500}},created(){this.queryForm.projectId=sessionStorage.getItem("projectId"),this.fetchData()},methods:{async fetchData(){this.listLoading=!0;const{data:e}=await Object(i["getSensorsData"])(this.queryForm);for(var t=[],o=0;o<e.length;o++)t.push({name:e[o]});console.log(t),this.sensorData=e,this.total=e.total,setTimeout(()=>{this.listLoading=!1},500)}}},c=(o("c781"),o("d959")),d=o.n(c);const u=d()(s,[["render",r],["__scopeId","data-v-34b6fb7f"]]);t["default"]=u},d8e8:function(e,t,o){"use strict";o("bad0")},d90a:function(e,t,o){"use strict";o("5316")},d93d:function(e,t,o){},d9f1:function(e,t,o){"use strict";o("bb91")},d9ff:function(e,t,o){"use strict";o("b4c7")},da48:function(e,t,o){"use strict";o("4b0c")},daf5:function(e,t,o){"use strict";o("cda2")},db6a:function(e,t,o){"use strict";o.r(t),o.d(t,"getList",(function(){return a})),o.d(t,"doDelete",(function(){return r})),o.d(t,"doEdit",(function(){return i})),o.d(t,"doAdd",(function(){return l})),o.d(t,"getCategoryDict",(function(){return s}));var n=o("b775");function a(e){let t="?page="+e.page+"&size="+e.size;return void 0!=e.title&&""!=e.title&&(t+="&title="+e.title),void 0!=e.date&&""!=e.date&&(t+="&date="+e.date),Object(n["default"])({url:"/knowledge/list"+t,method:"get",data:e})}function r(e){return Object(n["default"])({url:"/knowledge/remove",method:"post",data:e})}function i(e){return Object(n["default"])({url:"/knowledge/update",method:"post",data:e})}function l(e){return Object(n["default"])({url:"/knowledge/insert",method:"post",data:e})}function s(e){return Object(n["default"])({url:"/knowledge/categoryDict",method:"get",data:e})}},db7b:function(e,t,o){},dc4e:function(e,t,o){"use strict";o("db7b")},dc67:function(e,t,o){"use strict";o.r(t);var n=o("f2bf");const a={class:"hello-ezuikit-js"},r={style:{width:"100%","text-align":"center"}};function i(e,t,o,i,l,s){const c=Object(n["resolveComponent"])("el-button");return Object(n["openBlock"])(),Object(n["createElementBlock"])("div",a,[t[12]||(t[12]=Object(n["createElementVNode"])("div",{id:"video-container",style:{width:"600px",height:"400px"}},null,-1)),Object(n["createElementVNode"])("div",r,[Object(n["createVNode"])(c,{size:"mini",type:"primary",onClick:s.stop},{default:Object(n["withCtx"])(()=>t[0]||(t[0]=[Object(n["createTextVNode"])("停止")])),_:1},8,["onClick"]),Object(n["createVNode"])(c,{size:"mini",type:"primary",onClick:s.play},{default:Object(n["withCtx"])(()=>t[1]||(t[1]=[Object(n["createTextVNode"])("播放")])),_:1},8,["onClick"]),Object(n["createVNode"])(c,{size:"mini",type:"primary",onClick:s.openSound},{default:Object(n["withCtx"])(()=>t[2]||(t[2]=[Object(n["createTextVNode"])(" 打开声音 ")])),_:1},8,["onClick"]),Object(n["createVNode"])(c,{size:"mini",type:"primary",onClick:s.closeSound},{default:Object(n["withCtx"])(()=>t[3]||(t[3]=[Object(n["createTextVNode"])(" 关闭声音 ")])),_:1},8,["onClick"]),Object(n["createVNode"])(c,{size:"mini",type:"primary",onClick:s.startSave},{default:Object(n["withCtx"])(()=>t[4]||(t[4]=[Object(n["createTextVNode"])(" 启动保存 ")])),_:1},8,["onClick"]),Object(n["createVNode"])(c,{size:"mini",type:"primary",onClick:s.stopSave},{default:Object(n["withCtx"])(()=>t[5]||(t[5]=[Object(n["createTextVNode"])(" 停止保存 ")])),_:1},8,["onClick"]),Object(n["createVNode"])(c,{size:"mini",type:"primary",onClick:s.capturePicture},{default:Object(n["withCtx"])(()=>t[6]||(t[6]=[Object(n["createTextVNode"])(" 捕获图片 ")])),_:1},8,["onClick"]),Object(n["createVNode"])(c,{size:"mini",type:"primary",onClick:s.fullScreen},{default:Object(n["withCtx"])(()=>t[7]||(t[7]=[Object(n["createTextVNode"])(" 全屏显示 ")])),_:1},8,["onClick"]),Object(n["createVNode"])(c,{size:"mini",type:"primary",onClick:s.getOSDTime},{default:Object(n["withCtx"])(()=>t[8]||(t[8]=[Object(n["createTextVNode"])(" 获取OSD时间 ")])),_:1},8,["onClick"]),Object(n["createVNode"])(c,{size:"mini",type:"primary",onClick:s.ezopenStartTalk},{default:Object(n["withCtx"])(()=>t[9]||(t[9]=[Object(n["createTextVNode"])(" 开始对讲 ")])),_:1},8,["onClick"]),Object(n["createVNode"])(c,{size:"mini",type:"primary",onClick:s.ezopenStopTalk},{default:Object(n["withCtx"])(()=>t[10]||(t[10]=[Object(n["createTextVNode"])(" 结束对讲 ")])),_:1},8,["onClick"]),Object(n["createVNode"])(c,{size:"mini",type:"primary",onClick:s.destroy},{default:Object(n["withCtx"])(()=>t[11]||(t[11]=[Object(n["createTextVNode"])("销毁")])),_:1},8,["onClick"])])])}var l=o("acca"),s=o("c38d"),c=o.n(s);let d=null;var u={name:"FluoriteSensorData",components:{},data(){return{src:"",data:[],account:"",accessToken:"",deviceSerial:"",queryForm:{page:1,size:20,account:"",deviceSerial:""}}},created(){this.queryForm.account=this.$route.query.account,this.queryForm.deviceSerial=this.$route.query.deviceSerial,this.fetchData()},methods:{async fetchData(){this.listLoading=!0;const{data:e}=await Object(l["getLiveAddr"])(this.queryForm);this.data=e,this.getVideo(),setTimeout(()=>{this.listLoading=!1},500)},getVideo(){const e=this;d=new c.a.EZUIKitPlayer({id:"video-container",accessToken:e.data.accessToken,url:e.data.url,template:"simple",plugin:["talk"],width:600,height:400}),window.player=d},play(){const e=d.play();e.then(e=>{console.log("promise 获取 数据",e)})},stop(){const e=d.stop();e.then(e=>{console.log("promise 获取 数据",e)})},getOSDTime(){const e=d.getOSDTime();e.then(e=>{console.log("promise 获取 数据",e)})},capturePicture(){const e=d.capturePicture(""+(new Date).getTime());e.then(e=>{console.log("promise 获取 数据",e)})},openSound(){const e=d.openSound();e.then(e=>{console.log("promise 获取 数据",e)})},closeSound(){const e=d.closeSound();e.then(e=>{console.log("promise 获取 数据",e)})},startSave(){const e=d.startSave(""+(new Date).getTime());e.then(e=>{console.log("promise 获取 数据",e)})},stopSave(){const e=d.stopSave();e.then(e=>{console.log("promise 获取 数据",e)})},ezopenStartTalk(){d.startTalk()},ezopenStopTalk(){d.stopTalk()},fullScreen(){d.fullScreen()},destroy(){const e=d.destroy();e.then(e=>{console.log("promise 获取 数据",e)})}}},m=(o("639a"),o("d959")),h=o.n(m);const p=h()(u,[["render",i],["__scopeId","data-v-03a768f7"]]);t["default"]=p},dd47:function(e,t,o){},dd87:function(e,t,o){"use strict";o("987a")},dde9:function(e,t,o){"use strict";o("5766")},decf:function(e,t,o){"use strict";o("6460")},df16:function(e,t,o){"use strict";o("b91c")},df35:function(e,t,o){e.exports={"menu-color":"hsla(0,0%,27%,.95)","menu-color-active":"hsla(208,100%,55%,.95)","menu-background":"#fff","gallery-second-menu-background":"#fff"}},df77:function(e,t,o){"use strict";o.r(t);var n=o("f2bf");const a={class:"manage-container"},r={class:"device-base"},i={class:"device-base"};function l(e,t,o,l,s,c){const d=Object(n["resolveComponent"])("el-date-picker"),u=Object(n["resolveComponent"])("vab-query-form-left-panel"),m=Object(n["resolveComponent"])("el-button"),h=Object(n["resolveComponent"])("vab-query-form-right-panel"),p=Object(n["resolveComponent"])("vab-query-form"),b=Object(n["resolveComponent"])("el-input"),g=Object(n["resolveComponent"])("el-table-column"),f=Object(n["resolveComponent"])("el-table"),v=Object(n["resolveComponent"])("el-tab-pane"),w=Object(n["resolveComponent"])("el-tabs");return Object(n["openBlock"])(),Object(n["createElementBlock"])("div",a,[Object(n["createVNode"])(w,{modelValue:s.activeName,"onUpdate:modelValue":t[3]||(t[3]=e=>s.activeName=e),onTabClick:e.handleClick},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(v,{label:"各项费用支出明细年费总表",name:"first"},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(p,null,{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(u,null,{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(d,{modelValue:e.value1,"onUpdate:modelValue":t[0]||(t[0]=t=>e.value1=t),type:"date",placeholder:e.$t("defalult.xzrq")},null,8,["modelValue","placeholder"])]),_:1}),Object(n["createVNode"])(h,null,{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(m,{type:"primary"},{default:Object(n["withCtx"])(()=>[Object(n["createTextVNode"])(Object(n["toDisplayString"])(e.$t("defalult.cx")),1)]),_:1}),Object(n["createVNode"])(m,null,{default:Object(n["withCtx"])(()=>[Object(n["createTextVNode"])(Object(n["toDisplayString"])(e.$t("defalult.dc")),1)]),_:1})]),_:1})]),_:1}),Object(n["createElementVNode"])("div",r,[Object(n["createVNode"])(u,{class:"device-left"},{default:Object(n["withCtx"])(()=>t[4]||(t[4]=[Object(n["createElementVNode"])("span",null,"设施类别:",-1)])),_:1}),Object(n["createVNode"])(h,{class:"device-right"},{default:Object(n["withCtx"])(()=>t[5]||(t[5]=[Object(n["createElementVNode"])("span",null,"单位(元):",-1)])),_:1})]),Object(n["createVNode"])(f,{data:s.tableData,border:"",style:{width:"100%"},"max-height":"450"},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(g,{fixed:"left",prop:"mouth",label:"项目/月份",width:"180",align:"center"},{default:Object(n["withCtx"])(({row:e})=>[Object(n["createVNode"])(b,{modelValue:e.mouth,"onUpdate:modelValue":t=>e.mouth=t},null,8,["modelValue","onUpdate:modelValue"])]),_:1}),Object(n["createVNode"])(g,{prop:"Jan",label:" 一月 ",width:" 100 ",align:"center"},{default:Object(n["withCtx"])(({row:e})=>[Object(n["createVNode"])(b,{modelValue:e.Jan,"onUpdate:modelValue":t=>e.Jan=t},null,8,["modelValue","onUpdate:modelValue"])]),_:1}),Object(n["createVNode"])(g,{prop:"Feb",label:" 二月 ",width:" 100 ",align:"center"},{default:Object(n["withCtx"])(({row:e})=>[Object(n["createVNode"])(b,{modelValue:e.Feb,"onUpdate:modelValue":t=>e.Feb=t},null,8,["modelValue","onUpdate:modelValue"])]),_:1}),Object(n["createVNode"])(g,{prop:"Mar",label:" 三月 ",width:" 100 ",align:"center"},{default:Object(n["withCtx"])(({row:e})=>[Object(n["createVNode"])(b,{modelValue:e.Mar,"onUpdate:modelValue":t=>e.Mar=t},null,8,["modelValue","onUpdate:modelValue"])]),_:1}),Object(n["createVNode"])(g,{prop:"Apr",label:" 四月 ",width:" 100 ",align:"center"},{default:Object(n["withCtx"])(({row:e})=>[Object(n["createVNode"])(b,{modelValue:e.Apr,"onUpdate:modelValue":t=>e.Apr=t},null,8,["modelValue","onUpdate:modelValue"])]),_:1}),Object(n["createVNode"])(g,{prop:"May",label:" 五月 ",width:" 100 ",align:"center"},{default:Object(n["withCtx"])(({row:e})=>[Object(n["createVNode"])(b,{modelValue:e.May,"onUpdate:modelValue":t=>e.May=t},null,8,["modelValue","onUpdate:modelValue"])]),_:1}),Object(n["createVNode"])(g,{prop:"Jun",label:" 六月 ",width:" 100 ",align:"center"},{default:Object(n["withCtx"])(({row:e})=>[Object(n["createVNode"])(b,{modelValue:e.Jun,"onUpdate:modelValue":t=>e.Jun=t},null,8,["modelValue","onUpdate:modelValue"])]),_:1}),Object(n["createVNode"])(g,{prop:" Jul ",label:"七月",width:" 100 ",align:"center"},{default:Object(n["withCtx"])(({row:e})=>[Object(n["createVNode"])(b,{modelValue:e.Jul,"onUpdate:modelValue":t=>e.Jul=t},null,8,["modelValue","onUpdate:modelValue"])]),_:1}),Object(n["createVNode"])(g,{prop:" Aug ",label:"八月",width:" 100 ",align:"center"},{default:Object(n["withCtx"])(({row:e})=>[Object(n["createVNode"])(b,{modelValue:e.Aug,"onUpdate:modelValue":t=>e.Aug=t},null,8,["modelValue","onUpdate:modelValue"])]),_:1}),Object(n["createVNode"])(g,{prop:" Sep ",label:"九月",width:" 100 ",align:"center"},{default:Object(n["withCtx"])(({row:e})=>[Object(n["createVNode"])(b,{modelValue:e.Sep,"onUpdate:modelValue":t=>e.Sep=t},null,8,["modelValue","onUpdate:modelValue"])]),_:1}),Object(n["createVNode"])(g,{prop:"Oct",label:" 十月 ",width:" 100 ",align:"center"},{default:Object(n["withCtx"])(({row:e})=>[Object(n["createVNode"])(b,{modelValue:e.Oct,"onUpdate:modelValue":t=>e.Oct=t},null,8,["modelValue","onUpdate:modelValue"])]),_:1}),Object(n["createVNode"])(g,{prop:"Nov",label:" 十一月 ",width:" 100 ",align:"center"},{default:Object(n["withCtx"])(({row:e})=>[Object(n["createVNode"])(b,{modelValue:e.Nov,"onUpdate:modelValue":t=>e.Nov=t},null,8,["modelValue","onUpdate:modelValue"])]),_:1}),Object(n["createVNode"])(g,{prop:"Dec",label:"十二月",width:" 100 ",align:"center"},{default:Object(n["withCtx"])(({row:e})=>[Object(n["createVNode"])(b,{modelValue:e.Dec,"onUpdate:modelValue":t=>e.Dec=t},null,8,["modelValue","onUpdate:modelValue"])]),_:1}),Object(n["createVNode"])(g,{prop:"tick",label:"累计",width:" 100 ",align:"center"},{default:Object(n["withCtx"])(({row:e})=>[Object(n["createVNode"])(b,{modelValue:e.tick,"onUpdate:modelValue":t=>e.tick=t},null,8,["modelValue","onUpdate:modelValue"])]),_:1}),Object(n["createVNode"])(g,{prop:"note",label:e.$t("alarm.bz"),width:" 100 ",align:"center"},{default:Object(n["withCtx"])(({row:e})=>[Object(n["createVNode"])(b,{modelValue:e.note,"onUpdate:modelValue":t=>e.note=t},null,8,["modelValue","onUpdate:modelValue"])]),_:1},8,["label"])]),_:1},8,["data"])]),_:1}),Object(n["createVNode"])(v,{label:"电、药单耗年汇总表",name:"second"},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(p,null,{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(u,null,{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(d,{modelValue:e.value1,"onUpdate:modelValue":t[1]||(t[1]=t=>e.value1=t),type:"date",placeholder:e.$t("defalult.xzrq")},null,8,["modelValue","placeholder"])]),_:1}),Object(n["createVNode"])(h,null,{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(m,{type:"primary"},{default:Object(n["withCtx"])(()=>[Object(n["createTextVNode"])(Object(n["toDisplayString"])(e.$t("defalult.cx")),1)]),_:1}),Object(n["createVNode"])(m,null,{default:Object(n["withCtx"])(()=>[Object(n["createTextVNode"])(Object(n["toDisplayString"])(e.$t("defalult.dc")),1)]),_:1})]),_:1})]),_:1}),Object(n["createElementVNode"])("div",i,[Object(n["createVNode"])(u,{class:"device-left"},{default:Object(n["withCtx"])(()=>t[6]||(t[6]=[Object(n["createElementVNode"])("span",null,"厂名:南京江北公用资产有限公司",-1)])),_:1})]),Object(n["createVNode"])(f,{data:s.tableData2,border:"",style:{width:"100%"}},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(g,{fixed:"left",prop:"mouth",label:"电耗及药耗/月份",width:"200",align:"center"},{default:Object(n["withCtx"])(({row:e})=>[Object(n["createVNode"])(b,{modelValue:e.No01,"onUpdate:modelValue":t=>e.No01=t},null,8,["modelValue","onUpdate:modelValue"])]),_:1}),Object(n["createVNode"])(g,{prop:"Jan",label:" 一月 ",width:" 100 ",align:"center"},{default:Object(n["withCtx"])(({row:e})=>[Object(n["createVNode"])(b,{modelValue:e.Jan,"onUpdate:modelValue":t=>e.Jan=t},null,8,["modelValue","onUpdate:modelValue"])]),_:1}),Object(n["createVNode"])(g,{prop:"Feb",label:" 二月 ",width:" 100 ",align:"center"},{default:Object(n["withCtx"])(({row:e})=>[Object(n["createVNode"])(b,{modelValue:e.Feb,"onUpdate:modelValue":t=>e.Feb=t},null,8,["modelValue","onUpdate:modelValue"])]),_:1}),Object(n["createVNode"])(g,{prop:"Mar",label:" 三月 ",width:" 100 ",align:"center"},{default:Object(n["withCtx"])(({row:e})=>[Object(n["createVNode"])(b,{modelValue:e.Mar,"onUpdate:modelValue":t=>e.Mar=t},null,8,["modelValue","onUpdate:modelValue"])]),_:1}),Object(n["createVNode"])(g,{prop:"Apr",label:" 四月 ",width:" 100 ",align:"center"},{default:Object(n["withCtx"])(({row:e})=>[Object(n["createVNode"])(b,{modelValue:e.Apr,"onUpdate:modelValue":t=>e.Apr=t},null,8,["modelValue","onUpdate:modelValue"])]),_:1}),Object(n["createVNode"])(g,{prop:"May",label:" 五月 ",width:" 100 ",align:"center"},{default:Object(n["withCtx"])(({row:e})=>[Object(n["createVNode"])(b,{modelValue:e.May,"onUpdate:modelValue":t=>e.May=t},null,8,["modelValue","onUpdate:modelValue"])]),_:1}),Object(n["createVNode"])(g,{prop:"Jun",label:" 六月 ",width:" 100 ",align:"center"},{default:Object(n["withCtx"])(({row:e})=>[Object(n["createVNode"])(b,{modelValue:e.Jun,"onUpdate:modelValue":t=>e.Jun=t},null,8,["modelValue","onUpdate:modelValue"])]),_:1}),Object(n["createVNode"])(g,{prop:" Jul ",label:"七月",width:" 100 ",align:"center"},{default:Object(n["withCtx"])(({row:e})=>[Object(n["createVNode"])(b,{modelValue:e.Jul,"onUpdate:modelValue":t=>e.Jul=t},null,8,["modelValue","onUpdate:modelValue"])]),_:1}),Object(n["createVNode"])(g,{prop:" Aug ",label:"八月",width:" 100 ",align:"center"},{default:Object(n["withCtx"])(({row:e})=>[Object(n["createVNode"])(b,{modelValue:e.Aug,"onUpdate:modelValue":t=>e.Aug=t},null,8,["modelValue","onUpdate:modelValue"])]),_:1}),Object(n["createVNode"])(g,{prop:" Sep ",label:"九月",width:" 100 ",align:"center"},{default:Object(n["withCtx"])(({row:e})=>[Object(n["createVNode"])(b,{modelValue:e.Sep,"onUpdate:modelValue":t=>e.Sep=t},null,8,["modelValue","onUpdate:modelValue"])]),_:1}),Object(n["createVNode"])(g,{prop:"Oct",label:" 十月 ",width:" 100 ",align:"center"},{default:Object(n["withCtx"])(({row:e})=>[Object(n["createVNode"])(b,{modelValue:e.Oct,"onUpdate:modelValue":t=>e.Oct=t},null,8,["modelValue","onUpdate:modelValue"])]),_:1}),Object(n["createVNode"])(g,{prop:"Nov",label:" 十一月 ",width:" 100 ",align:"center"},{default:Object(n["withCtx"])(({row:e})=>[Object(n["createVNode"])(b,{modelValue:e.Nov,"onUpdate:modelValue":t=>e.Nov=t},null,8,["modelValue","onUpdate:modelValue"])]),_:1}),Object(n["createVNode"])(g,{prop:"Dec",label:"十二月",width:" 100 ",align:"center"},{default:Object(n["withCtx"])(({row:e})=>[Object(n["createVNode"])(b,{modelValue:e.Dec,"onUpdate:modelValue":t=>e.Dec=t},null,8,["modelValue","onUpdate:modelValue"])]),_:1}),Object(n["createVNode"])(g,{prop:"first",label:"最小值",width:" 100 ",align:"center"},{default:Object(n["withCtx"])(({row:e})=>[Object(n["createVNode"])(b,{modelValue:e.first,"onUpdate:modelValue":t=>e.first=t},null,8,["modelValue","onUpdate:modelValue"])]),_:1}),Object(n["createVNode"])(g,{prop:"second",label:"最大值",width:" 100 ",align:"center"},{default:Object(n["withCtx"])(({row:e})=>[Object(n["createVNode"])(b,{modelValue:e.second,"onUpdate:modelValue":t=>e.second=t},null,8,["modelValue","onUpdate:modelValue"])]),_:1}),Object(n["createVNode"])(g,{prop:"third",label:"平均值",width:" 100 ",align:"center"},{default:Object(n["withCtx"])(({row:e})=>[Object(n["createVNode"])(b,{modelValue:e.third,"onUpdate:modelValue":t=>e.third=t},null,8,["modelValue","onUpdate:modelValue"])]),_:1})]),_:1},8,["data"]),Object(n["createVNode"])(m,{type:"primary"},{default:Object(n["withCtx"])(()=>t[7]||(t[7]=[Object(n["createTextVNode"])("保存")])),_:1})]),_:1}),Object(n["createVNode"])(v,{label:"月度单位耗电一览总表",name:"third"},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(p,null,{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(u,null,{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(d,{modelValue:e.value1,"onUpdate:modelValue":t[2]||(t[2]=t=>e.value1=t),type:"date",placeholder:e.$t("defalult.xzrq")},null,8,["modelValue","placeholder"])]),_:1}),Object(n["createVNode"])(h,null,{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(m,{type:"primary"},{default:Object(n["withCtx"])(()=>[Object(n["createTextVNode"])(Object(n["toDisplayString"])(e.$t("defalult.cx")),1)]),_:1}),Object(n["createVNode"])(m,null,{default:Object(n["withCtx"])(()=>[Object(n["createTextVNode"])(Object(n["toDisplayString"])(e.$t("defalult.dc")),1)]),_:1})]),_:1})]),_:1}),Object(n["createVNode"])(f,{data:s.tableData3,border:"",style:{width:"100%"}},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(g,{prop:"mouth",label:" 日期 ",width:"350",align:" center "},{default:Object(n["withCtx"])(({row:e})=>[Object(n["createVNode"])(b,{modelValue:e.mouth,"onUpdate:modelValue":t=>e.mouth=t},null,8,["modelValue","onUpdate:modelValue"])]),_:1}),Object(n["createVNode"])(g,{prop:"first",label:"总电量kW·h",width:"350",align:"center"},{default:Object(n["withCtx"])(({row:e})=>[Object(n["createVNode"])(b,{modelValue:e.first,"onUpdate:modelValue":t=>e.first=t},null,8,["modelValue","onUpdate:modelValue"])]),_:1}),Object(n["createVNode"])(g,{prop:"second",label:"处理水量",width:"350",align:"center"},{default:Object(n["withCtx"])(({row:e})=>[Object(n["createVNode"])(b,{modelValue:e.second,"onUpdate:modelValue":t=>e.second=t},null,8,["modelValue","onUpdate:modelValue"])]),_:1}),Object(n["createVNode"])(g,{prop:"third",label:"处理能耗kW·h/m³",width:"350",align:"center"},{default:Object(n["withCtx"])(({row:e})=>[Object(n["createVNode"])(b,{modelValue:e.third,"onUpdate:modelValue":t=>e.third=t},null,8,["modelValue","onUpdate:modelValue"])]),_:1})]),_:1},8,["data"])]),_:1})]),_:1},8,["modelValue","onTabClick"])])}var s={data(){return{currentPage1:5,currentPage2:5,currentPage3:5,currentPage4:4,activeName:"first",tableData:[{mouth:"电费",Jan:"",Feb:"",Mar:"",Apr:"",May:"",Jun:"",Jul:"",Agu:"",Sep:"",Oct:"",Nov:"",Dec:"",tick:"",note:""},{mouth:"药剂费",Jan:"",Feb:"",Mar:"",Apr:"",May:"",Jun:"",Jul:"",Agu:"",Sep:"",Oct:"",Nov:"",Dec:"",tick:"",note:""},{mouth:"外加碳源",Jan:"",Feb:"",Mar:"",Apr:"",May:"",Jun:"",Jul:"",Agu:"",Sep:"",Oct:"",Nov:"",Dec:"",tick:"",note:""},{mouth:"消毒药剂",Jan:"",Feb:"",Mar:"",Apr:"",May:"",Jun:"",Jul:"",Agu:"",Sep:"",Oct:"",Nov:"",Dec:"",tick:"",note:""}],tableData2:[{mouth:"总电单耗kW·h/m³",Jan:"",Feb:"",Mar:"",Apr:"",May:"",Jun:"",Jul:"",Agu:"",Sep:"",Oct:"",Nov:"",Dec:"",first:"",second:"",third:""},{mouth:"外加碳源g/m³",Jan:"",Feb:"",Mar:"",Apr:"",May:"",Jun:"",Jul:"",Agu:"",Sep:"",Oct:"",Nov:"",Dec:"",first:"",second:"",third:""},{mouth:"消毒药剂g/m³",Jan:"",Feb:"",Mar:"",Apr:"",May:"",Jun:"",Jul:"",Agu:"",Sep:"",Oct:"",Nov:"",Dec:"",first:"",second:"",third:""}],tableData3:[{mouth:"1",first:"",second:"",third:""},{mouth:"2",first:"",second:"",third:""},{mouth:"3",first:"",second:"",third:""},{mouth:"4",first:"",second:"",third:""},{mouth:"5",first:"",second:"",third:""}]}}},c=(o("31f8"),o("3423"),o("d959")),d=o.n(c);const u=d()(s,[["render",l],["__scopeId","data-v-57ccb993"]]);t["default"]=u},e0a6:function(e,t,o){e.exports={"menu-color":"hsla(0,0%,27%,.95)","menu-color-active":"hsla(208,100%,55%,.95)","menu-background":"#fff","gallery-second-menu-background":"#fff"}},e0b2:function(e,t,o){},e139:function(e,t,o){},e147:function(e,t,o){},e188:function(e,t,o){"use strict";o.r(t);var n=o("f2bf");const a={key:0},r={key:1,style:{"text-align":"center"}},i=["src"],l={key:2,style:{"text-align":"center"}},s={key:3,style:{"text-align":"center"}},c=["src"],d={key:4,style:{"text-align":"center"}};function u(e,t,o,u,m,h){const p=Object(n["resolveComponent"])("el-link"),b=Object(n["resolveComponent"])("el-dialog");return Object(n["openBlock"])(),Object(n["createBlock"])(b,{modelValue:m.dialogFormVisible,"onUpdate:modelValue":t[0]||(t[0]=e=>m.dialogFormVisible=e),title:e.title,width:"500px",onClose:e.close},{default:Object(n["withCtx"])(()=>[m.isText?(Object(n["openBlock"])(),Object(n["createElementBlock"])("div",a,[Object(n["createElementVNode"])("span",null,Object(n["toDisplayString"])(m.data.textContent),1)])):m.isImage?(Object(n["openBlock"])(),Object(n["createElementBlock"])("div",r,[Object(n["createElementVNode"])("img",{src:m.data.image,alt:"",style:{width:"90%"}},null,8,i)])):m.isVideo?(Object(n["openBlock"])(),Object(n["createElementBlock"])("div",l,[Object(n["createElementVNode"])("p",null,"素材ID"+Object(n["toDisplayString"])(m.data.video.MediaId),1),Object(n["createElementVNode"])("p",null,"视频名称:"+Object(n["toDisplayString"])(m.data.video.Title),1),Object(n["createElementVNode"])("p",null,"视频简介:"+Object(n["toDisplayString"])(m.data.video.Description),1)])):m.isVoice?(Object(n["openBlock"])(),Object(n["createElementBlock"])("div",s,[Object(n["createElementVNode"])("audio",{src:m.data.voice},null,8,c)])):m.isNews?(Object(n["openBlock"])(),Object(n["createElementBlock"])("div",d,[(Object(n["openBlock"])(!0),Object(n["createElementBlock"])(n["Fragment"],null,Object(n["renderList"])(m.data.news,(e,o)=>(Object(n["openBlock"])(),Object(n["createElementBlock"])("div",{key:o},[Object(n["createElementVNode"])("p",null,"标题:"+Object(n["toDisplayString"])(e.title),1),Object(n["createVNode"])(p,{target:"_blank",href:e.url,type:"primary"},{default:Object(n["withCtx"])(()=>t[1]||(t[1]=[Object(n["createTextVNode"])(" 点击查看 ")])),_:2},1032,["href"])]))),128))])):Object(n["createCommentVNode"])("",!0)]),_:1},8,["modelValue","title","onClose"])}var m={data(){return{isText:!1,isImage:!1,isVoice:!1,isVideo:!1,isNews:!1,dialogFormVisible:!1,data:[]}},methods:{showMaterialData(e){this.dialogFormVisible=!0,this.title="素材详情",this.data=e,"text"==e.msgType.dataCode?this.isText=!0:"image"==e.materialType.dataCode?this.isImage=!0:"voice"==e.materialType.dataCode?this.isVoice=!0:"video"==e.materialType.dataCode?this.isVideo=!0:"news"==e.materialType.dataCode&&(this.isNews=!0),console.log(123,e)}}},h=o("d959"),p=o.n(h);const b=p()(m,[["render",u]]);t["default"]=b},e1be:function(e,t,o){"use strict";o("a54c")},e1e0:function(e,t,o){"use strict";o.r(t);var n=o("f2bf");const a={class:"dialog-footer"};function r(e,t,o,r,i,l){const s=Object(n["resolveComponent"])("el-input"),c=Object(n["resolveComponent"])("el-form-item"),d=Object(n["resolveComponent"])("el-form"),u=Object(n["resolveComponent"])("el-button"),m=Object(n["resolveComponent"])("el-dialog");return Object(n["openBlock"])(),Object(n["createBlock"])(m,{modelValue:i.dialogFormVisible,"onUpdate:modelValue":t[2]||(t[2]=e=>i.dialogFormVisible=e),title:i.title,width:"500px",onClose:l.close},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(d,{ref:"form",model:i.form,rules:i.rules,"label-width":"80px"},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(c,{label:"键",prop:"dataCode"},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(s,{modelValue:i.form.dataCode,"onUpdate:modelValue":t[0]||(t[0]=e=>i.form.dataCode=e),modelModifiers:{trim:!0},size:"small",autocomplete:"off"},null,8,["modelValue"])]),_:1}),Object(n["createVNode"])(c,{label:"值",prop:"dataValue"},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(s,{modelValue:i.form.dataValue,"onUpdate:modelValue":t[1]||(t[1]=e=>i.form.dataValue=e),modelModifiers:{trim:!0},size:"small",autocomplete:"off"},null,8,["modelValue"])]),_:1})]),_:1},8,["model","rules"]),Object(n["createElementVNode"])("div",a,[Object(n["createVNode"])(u,{type:"primary",size:"small",onClick:l.save},{default:Object(n["withCtx"])(()=>t[3]||(t[3]=[Object(n["createTextVNode"])("确 定")])),_:1},8,["onClick"]),Object(n["createVNode"])(u,{size:"small",onClick:l.close},{default:Object(n["withCtx"])(()=>t[4]||(t[4]=[Object(n["createTextVNode"])("取 消")])),_:1},8,["onClick"])])]),_:1},8,["modelValue","title","onClose"])}var i=o("0ddc"),l={name:"Add",data(){return{form:{id:"",dictTypeId:"",dataCode:"",dataValue:""},rules:{dataCode:[{required:!0,trigger:"blur",message:"请输入键"}],dataValue:[{required:!0,trigger:"blur",message:"请输入值"}]},dictId:"",roleData:[],clearable:!0,parentData:[],title:"",dialogFormVisible:!1,diffData:{},ruleForm:[]}},created(){},methods:{showEdit(e,t){t?(this.title="编辑字典数据",this.form=Object.assign({},e.row),this.ruleForm=Object.assign({},e.row)):this.title="添加字典数据",this.form.dictTypeId=e.dictId,this.dialogFormVisible=!0},close(){this.$refs["form"].resetFields(),this.form=this.$options.data().form,this.dialogFormVisible=!1,this.$emit("fetch-data")},getDiffData(){this.diffData={},Object.keys(this.form).forEach(e=>{this.form[e]!=this.ruleForm[e]&&(this.diffData[e]=this.form[e])})},save(){this.$refs["form"].validate(async e=>{if(!e)return!1;if(this.form.name=this.form.title,this.form.id){if(this.getDiffData(),0!=Object.keys(this.diffData).length){this.diffData.id=this.form.id;const{msg:e}=await Object(i["updateDictData"])(this.diffData);this.$notify({title:e,type:"success"})}}else{delete this.form.id;const{msg:e}=await Object(i["insertDictData"])(this.form);this.$notify({title:e,type:"success"})}this.$refs["form"].resetFields(),this.dialogFormVisible=!1,this.$parent.fetchData()})}}},s=o("d959"),c=o.n(s);const d=c()(l,[["render",r]]);t["default"]=d},e23f:function(e,t,o){},e289:function(e,t,o){"use strict";o.r(t);var n=o("f2bf");const a={class:"dialog-footer"};function r(e,t,o,r,i,l){const s=Object(n["resolveComponent"])("el-input"),c=Object(n["resolveComponent"])("el-form-item"),d=Object(n["resolveComponent"])("el-form"),u=Object(n["resolveComponent"])("el-button"),m=Object(n["resolveComponent"])("el-dialog");return Object(n["openBlock"])(),Object(n["createBlock"])(m,{modelValue:i.dialogFormVisible,"onUpdate:modelValue":t[3]||(t[3]=e=>i.dialogFormVisible=e),title:i.title,width:"500px",onClose:l.close},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(d,{ref:"form",model:i.form,rules:i.rules,"label-width":"80px"},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(c,{label:"角色名称",prop:"title"},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(s,{modelValue:i.form.name,"onUpdate:modelValue":t[0]||(t[0]=e=>i.form.name=e),modelModifiers:{trim:!0},size:"small",autocomplete:"off"},null,8,["modelValue"])]),_:1}),Object(n["createVNode"])(c,{label:"字符串",prop:"path"},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(s,{modelValue:i.form.key,"onUpdate:modelValue":t[1]||(t[1]=e=>i.form.key=e),modelModifiers:{trim:!0},size:"small",autocomplete:"off"},null,8,["modelValue"])]),_:1}),Object(n["createVNode"])(c,{label:"显示顺序",prop:"path"},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(s,{modelValue:i.form.sort,"onUpdate:modelValue":t[2]||(t[2]=e=>i.form.sort=e),modelModifiers:{trim:!0},size:"small",type:"number",min:"1",autocomplete:"off"},null,8,["modelValue"])]),_:1})]),_:1},8,["model","rules"]),Object(n["createElementVNode"])("div",a,[Object(n["createVNode"])(u,{type:"primary",size:"small",onClick:l.save},{default:Object(n["withCtx"])(()=>t[4]||(t[4]=[Object(n["createTextVNode"])("确 定")])),_:1},8,["onClick"]),Object(n["createVNode"])(u,{size:"small",onClick:l.close},{default:Object(n["withCtx"])(()=>t[5]||(t[5]=[Object(n["createTextVNode"])("取 消")])),_:1},8,["onClick"])])]),_:1},8,["modelValue","title","onClose"])}var i=o("cc5e"),l={name:"MenuEdit",data(){return{form:{id:"",name:"",key:"",sort:1},rules:{name:[{required:!0,trigger:"blur",message:"请输入角色名称"}],key:[{required:!0,trigger:"blur",message:"请输入角色字符串"}]},clearable:!0,roleId:"",parentData:[],title:"",dialogFormVisible:!1,diffData:{},ruleForm:[]}},created(){},methods:{handleCountryChange(e){if(e){const t=e.length-1;this.form.parentId=e[t]}else this.form.parentId=0},showEdit(e){e?(this.title="编辑角色",this.roleId=e.id,this.form=Object.assign({},e),this.ruleForm=Object.assign({},e),console.log(e),this.form.title=e.name):this.title="添加角色",this.dialogFormVisible=!0},close(){this.$refs["form"].resetFields(),this.form=this.$options.data().form,this.dialogFormVisible=!1,this.$emit("fetch-data")},getDiffData(){this.diffData={},Object.keys(this.form).forEach(e=>{this.form[e]!=this.ruleForm[e]&&(this.diffData[e]=this.form[e])})},save(){this.$refs["form"].validate(async e=>{if(!e)return!1;if(this.form.id){if(this.getDiffData(),0!=Object.keys(this.diffData).length){this.diffData.id=this.form.id;const{msg:e}=await Object(i["doEdit"])(this.diffData);this.$notify({title:e,type:"success"})}}else{const{msg:e}=await Object(i["doAdd"])(this.form);this.$notify({title:e,type:"success"})}this.$refs["form"].resetFields(),this.dialogFormVisible=!1,this.$parent.fetchData()})}}},s=(o("00ef"),o("d959")),c=o.n(s);const d=c()(l,[["render",r]]);t["default"]=d},e2b3:function(e,t,o){"use strict";o("9937")},e2ef:function(e,t,o){"use strict";o("7163")},e2f2:function(e,t,o){"use strict";o("79ca")},e30d:function(e,t,o){"use strict";o.r(t);var n=o("f2bf");const a={class:"manage-container"};function r(e,t,o,r,i,l){const s=Object(n["resolveComponent"])("el-table-column"),c=Object(n["resolveComponent"])("el-tag"),d=Object(n["resolveComponent"])("el-button"),u=Object(n["resolveComponent"])("el-table"),m=Object(n["resolveComponent"])("el-pagination"),h=Object(n["resolveComponent"])("add"),p=Object(n["resolveComponent"])("to-task");return Object(n["openBlock"])(),Object(n["createElementBlock"])("div",a,[Object(n["createVNode"])(u,{data:i.tableData,stripe:"",border:"",style:{width:"100%"}},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(s,{fixed:"",prop:"deviceName",label:e.$t("dataEnquiry.zdmc"),width:"150",align:"center"},null,8,["label"]),Object(n["createVNode"])(s,{fixed:"",prop:"sensorName",label:e.$t("siteDetails.cgqmc"),width:"150",align:"center"},null,8,["label"]),Object(n["createVNode"])(s,{prop:"alarmTime",label:e.$t("alarm.bjsj"),width:"200",align:"center"},null,8,["label"]),Object(n["createVNode"])(s,{prop:"alarmLevel",label:e.$t("alarm.bjjb"),width:"200",align:"center"},null,8,["label"]),Object(n["createVNode"])(s,{prop:"alarmCategory",label:e.$t("alarm.bjlb"),width:"200",align:"center"},null,8,["label"]),Object(n["createVNode"])(s,{prop:"alarmContent",label:e.$t("alarm.bjnr"),width:"300",align:"center"},null,8,["label"]),Object(n["createVNode"])(s,{prop:"handlerName",label:e.$t("alarm.clr"),width:"120",align:"center"},null,8,["label"]),Object(n["createVNode"])(s,{prop:"status",label:e.$t("dataEnquiry.zt"),width:"120",align:"center"},{default:Object(n["withCtx"])(({row:t})=>["已派工"==t.status?(Object(n["openBlock"])(),Object(n["createBlock"])(c,{key:"已派工",effect:"dark",type:"success",size:"mini"},{default:Object(n["withCtx"])(()=>[Object(n["createTextVNode"])(Object(n["toDisplayString"])(e.$t("alarm.ypg")),1)]),_:1})):Object(n["createCommentVNode"])("",!0),"未派工"==t.status?(Object(n["openBlock"])(),Object(n["createBlock"])(c,{key:"未派工",effect:"dark",type:"danger",size:"mini"},{default:Object(n["withCtx"])(()=>[Object(n["createTextVNode"])(Object(n["toDisplayString"])(e.$t("alarm.wpg")),1)]),_:1})):Object(n["createCommentVNode"])("",!0)]),_:1},8,["label"]),Object(n["createVNode"])(s,{prop:"remark",label:e.$t("alarm.bz"),width:"120",align:"center"},null,8,["label"]),Object(n["createVNode"])(s,{fixed:"right",label:e.$t("defalult.sc"),align:"center"},{default:Object(n["withCtx"])(({row:t})=>[Object(n["createVNode"])(d,{type:"text",onClick:e=>l.handleDelete(t)},{default:Object(n["withCtx"])(()=>[Object(n["createTextVNode"])(Object(n["toDisplayString"])(e.$t("defalult.sc")),1)]),_:2},1032,["onClick"]),"未派工"==t.status?(Object(n["openBlock"])(),Object(n["createBlock"])(d,{key:0,type:"text",onClick:e=>l.handleTask(t)},{default:Object(n["withCtx"])(()=>[Object(n["createTextVNode"])(Object(n["toDisplayString"])(e.$t("alarm.zgd")),1)]),_:2},1032,["onClick"])):Object(n["createCommentVNode"])("",!0)]),_:1},8,["label"])]),_:1},8,["data"]),Object(n["createVNode"])(m,{background:i.background,"current-page":i.queryForm.page,layout:i.layout,"page-size":i.queryForm.size,total:i.total,style:{"text-align":"right"},onCurrentChange:l.handleCurrentChange,onSizeChange:l.handleSizeChange},null,8,["background","current-page","layout","page-size","total","onCurrentChange","onSizeChange"]),Object(n["createVNode"])(h,{ref:"add"},null,512),Object(n["createVNode"])(p,{ref:"toTask"},null,512)])}var i=o("9e04"),l=o("3038"),s=o("88de"),c=o("3f02"),d={components:{add:s["default"],toTask:c["default"]},data(){return{tableData:[],lazy:!0,layout:"total, sizes, prev, pager, next, jumper",total:0,background:!0,listLoading:!1,elementLoadingText:"正在加载...",levelData:[],categoryData:[],statusData:[{value:3,label:"all"},{value:0,label:"未派工"},{value:1,label:"已派工"}],queryForm:{page:1,size:20,projectId:""}}},created(){this.queryForm.projectId=sessionStorage.getItem("projectId"),this.getLevel(),this.getCategory(),setTimeout(()=>{this.fetchData()},1e3)},methods:{async fetchData(){const{data:e}=await Object(i["getCurrentData"])(this.queryForm);this.tableData=e.items,this.total=e.total},showData(){this.fetchData()},save(){this.$refs["add"].showEdit()},async getLevel(){const{data:e}=await Object(i["alarmLevelDict"])();this.levelData=e},async getCategory(){const{data:e}=await Object(i["alarmCategoryDict"])();this.categoryData=e},async exportData(){const e=await Object(i["alarmExport"])(this.queryForm);l["default"].downloadFile(e,{fileName:"报警记录.xls"})},search(){this.fetchData()},resetForm(){this.$refs.queryForm.resetFields()},handleTask(e){console.log(this.tableData),this.$refs["toTask"].showEdit(e)},deletes(e){const t=this;this.$confirm("你确定要删除当前项吗?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(()=>{const{msg:o}=Object(i["doDelete"])(e);this.$message({type:"success",message:void 0==o?"删除成功":o}),setTimeout((function(){t.fetchData()}),1e3)}).catch(()=>{this.$message({type:"info",message:"已取消删除"})})},handleDelete(e){const t=this;t.deletes([e.id])},handleQuery(){this.queryForm.page=1,this.fetchData()},handleSizeChange(e){this.queryForm.size=e,this.fetchData()},handleCurrentChange(e){this.queryForm.page=e,this.fetchData()}}},u=o("d959"),m=o.n(u);const h=m()(d,[["render",r]]);t["default"]=h},e3da:function(e,t,o){"use strict";o.r(t);var n=o("f2bf");const a={class:"manage-container"},r={class:"manage-input"},i={class:"manage-button"},l={key:0};function s(e,t,o,s,c,d){const u=Object(n["resolveComponent"])("el-input"),m=Object(n["resolveComponent"])("el-form-item"),h=Object(n["resolveComponent"])("el-date-picker"),p=Object(n["resolveComponent"])("vab-query-form"),b=Object(n["resolveComponent"])("el-form"),g=Object(n["resolveComponent"])("el-button"),f=Object(n["resolveComponent"])("el-table-column"),v=Object(n["resolveComponent"])("el-table"),w=Object(n["resolveComponent"])("el-pagination"),k=Object(n["resolveComponent"])("apply-detail"),C=Object(n["resolveComponent"])("apply-edit");return Object(n["openBlock"])(),Object(n["createElementBlock"])(n["Fragment"],null,[Object(n["createElementVNode"])("div",a,[Object(n["createElementVNode"])("div",r,[Object(n["createVNode"])(b,{ref:"queryForm",model:c.queryForm,"label-width":"80px"},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(p,null,{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(m,{width:"100",prop:"deviceName",label:e.$t("dataEnquiry.zdmc")},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(u,{modelValue:c.queryForm.deviceName,"onUpdate:modelValue":t[0]||(t[0]=e=>c.queryForm.deviceName=e),size:"small",placeholder:e.$t("dataEnquiry.qsrzdmc")},null,8,["modelValue","placeholder"])]),_:1},8,["label"]),Object(n["createVNode"])(m,{width:"100",prop:"signUser",label:e.$t("apply.sqr")},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(u,{modelValue:c.queryForm.signUser,"onUpdate:modelValue":t[1]||(t[1]=e=>c.queryForm.signUser=e),size:"small",placeholder:e.$t("apply.qsrsqr")},null,8,["modelValue","placeholder"])]),_:1},8,["label"]),Object(n["createVNode"])(m,{width:"100",prop:"date",label:e.$t("defalult.sj")},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(h,{modelValue:c.queryForm.date,"onUpdate:modelValue":t[2]||(t[2]=e=>c.queryForm.date=e),size:"small",type:"month",placeholder:e.$t("defalult.xzrq"),onChange:d.standardToTime},null,8,["modelValue","placeholder","onChange"])]),_:1},8,["label"])]),_:1})]),_:1},8,["model"])]),Object(n["createElementVNode"])("div",i,[Object(n["createVNode"])(g,{size:"small",onClick:t[3]||(t[3]=e=>d.resetForm())},{default:Object(n["withCtx"])(()=>[Object(n["createTextVNode"])(Object(n["toDisplayString"])(e.$t("defalult.chongz")),1)]),_:1}),Object(n["createVNode"])(g,{type:"primary",size:"small",onClick:d.search},{default:Object(n["withCtx"])(()=>[Object(n["createTextVNode"])(Object(n["toDisplayString"])(e.$t("defalult.cx")),1)]),_:1},8,["onClick"]),Object(n["createVNode"])(g,{type:"primary",size:"small",onClick:d.handleAdd},{default:Object(n["withCtx"])(()=>[Object(n["createTextVNode"])(Object(n["toDisplayString"])(e.$t("defalult.tj")),1)]),_:1},8,["onClick"]),Object(n["createVNode"])(g,{type:"primary",size:"small",onClick:d.exportData},{default:Object(n["withCtx"])(()=>[Object(n["createTextVNode"])(Object(n["toDisplayString"])(e.$t("defalult.dc")),1)]),_:1},8,["onClick"]),Object(n["createVNode"])(g,{type:"primary",size:"small",onClick:d.deletes},{default:Object(n["withCtx"])(()=>[Object(n["createTextVNode"])(Object(n["toDisplayString"])(e.$t("defalult.plsc")),1)]),_:1},8,["onClick"])])]),Object(n["createVNode"])(v,{data:c.tableData,stripe:"",border:"",style:{width:"100%"},onSelectionChange:d.handleSelectionChange},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(f,{fixed:"",type:"selection",width:"40",align:"center"}),Object(n["createVNode"])(f,{prop:"device.name",label:e.$t("dataEnquiry.zdmc"),width:"250",align:"center"},null,8,["label"]),Object(n["createVNode"])(f,{prop:"sampleQuantity",label:e.$t("apply.ypsl"),width:"200",align:"center"},null,8,["label"]),Object(n["createVNode"])(f,{prop:"applicantName",label:e.$t("apply.sqr"),width:"150",align:"center"},null,8,["label"]),Object(n["createVNode"])(f,{prop:"sampleBack.dataValue",label:e.$t("apply.ypqh"),width:"150",align:"center"},null,8,["label"]),Object(n["createVNode"])(f,{prop:"sampleType.dataValue",label:e.$t("apply.yplx"),width:"150",align:"center"},null,8,["label"]),Object(n["createVNode"])(f,{property:"detectionItems",label:e.$t("apply.jcxm"),width:"500",align:"center"},{default:Object(n["withCtx"])(({row:e})=>[(Object(n["openBlock"])(!0),Object(n["createElementBlock"])(n["Fragment"],null,Object(n["renderList"])(e.detectionItems,(e,t)=>(Object(n["openBlock"])(),Object(n["createElementBlock"])("span",{key:t},[null!=e?(Object(n["openBlock"])(),Object(n["createElementBlock"])("p",l,Object(n["toDisplayString"])(e.dataValue),1)):Object(n["createCommentVNode"])("",!0)]))),128))]),_:1},8,["label"]),Object(n["createVNode"])(f,{prop:"detectionReport.dataValue",label:e.$t("apply.jcbg"),width:"150",align:"center"},null,8,["label"]),Object(n["createVNode"])(f,{prop:"reportUse.dataValue",label:e.$t("apply.bgcj"),width:"150",align:"center"},null,8,["label"]),Object(n["createVNode"])(f,{prop:"asOfTime",label:e.$t("apply.jzsj"),width:"150",align:"center"},null,8,["label"]),Object(n["createVNode"])(f,{prop:"createTime",label:e.$t("apply.cjsj"),width:"150",align:"center"},null,8,["label"]),Object(n["createVNode"])(f,{prop:"remark",label:e.$t("alarm.bz"),width:"150",align:"center"},null,8,["label"]),Object(n["createVNode"])(f,{prop:"details",label:e.$t("apply.sqsj"),align:"center"},{default:Object(n["withCtx"])(({row:t})=>[Object(n["createVNode"])(g,{size:"mini",type:"primary",plain:"",onClick:e=>d.handleEdit(t)},{default:Object(n["withCtx"])(()=>[Object(n["createTextVNode"])(Object(n["toDisplayString"])(e.$t("defalult.bj")),1)]),_:2},1032,["onClick"]),Object(n["createVNode"])(g,{type:"text",onClick:e=>d.handleDelete(t)},{default:Object(n["withCtx"])(()=>[Object(n["createTextVNode"])(Object(n["toDisplayString"])(e.$t("defalult.sc")),1)]),_:2},1032,["onClick"])]),_:1},8,["label"])]),_:1},8,["data","onSelectionChange"]),Object(n["createVNode"])(w,{background:c.background,"current-page":c.queryForm.page,layout:c.layout,"page-size":c.queryForm.size,total:c.total,style:{"text-align":"right"},onCurrentChange:d.handleCurrentChange,onSizeChange:d.handleSizeChange},null,8,["background","current-page","layout","page-size","total","onCurrentChange","onSizeChange"]),Object(n["createVNode"])(k,{ref:"detail"},null,512),Object(n["createVNode"])(C,{ref:"edit"},null,512)],64)}o("14d9");var c=o("c9ee"),d=o("5f99"),u=o("4cff"),m=o("ada3"),h=o("3038"),p={components:{applyDetail:u["default"],applyEdit:m["default"]},data(){return{tableData:[],dialogTableVisible:!1,lazy:!0,layout:"total, sizes, prev, pager, next, jumper",total:0,background:!0,listLoading:!1,elementLoadingText:"正在加载...",ids:[],queryForm:{page:1,size:20,deviceName:"",signUser:"",date:"",projectId:""},form:{id:"",location:""}}},created(){this.applyIndex()},methods:{applyIndex(){this.queryForm.projectId=sessionStorage.getItem("projectId"),this.setDefaultTime(),setTimeout(()=>{this.fetchData()},1e3)},standardToTime(){this.queryForm.date=Object(d["getDate1"])(this.queryForm.date)},setDefaultTime(){this.queryForm.date=Object(d["getDate1"])()},async fetchData(){const{data:e}=await Object(c["getWaterApply"])(this.queryForm);this.tableData=e.items,this.total=e.total},search(){this.fetchData()},resetForm(){this.$refs.queryForm.resetFields()},async exportData(){const e=await Object(c["exportWaterApply"])(this.queryForm);h["default"].downloadFile(e,{fileName:"水质申请.xls"})},handleSelectionChange(e){const t=[];e.forEach(e=>{t.push(e.id)}),this.ids=t},handleAdd(){this.$refs["edit"].showEdit()},handleEdit(e){this.$refs["edit"].showEdit(e)},showDetail(e){this.$refs["detail"].showDetail(e)},deletes(){const e=this.ids;if(0==e.length)return this.$message({type:"info",message:"没有选中任何项"}),!1;this.deleteData(e)},deleteData(e){const t=this;this.$confirm("你确定要删除当前项吗?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(()=>{const{msg:o}=Object(c["doDelete"])(e);this.$message({type:"success",message:void 0==o?"删除成功":o}),setTimeout((function(){t.fetchData()}),1e3)}).catch(()=>{this.$message({type:"info",message:"已取消删除"})})},handleDelete(e){const t=this;t.deleteData([e.id])},handleQuery(){this.queryForm.page=1,this.fetchData()},handleSizeChange(e){this.queryForm.size=e,this.fetchData()},handleCurrentChange(e){this.queryForm.page=e,this.fetchData()}}},b=(o("f341"),o("d959")),g=o.n(b);const f=g()(p,[["render",s],["__scopeId","data-v-3ef9e3ca"]]);t["default"]=f},e3f1:function(e,t,o){"use strict";o.r(t);var n=o("f2bf");const a={class:"dialog-footer"};function r(e,t,o,r,i,l){const s=Object(n["resolveComponent"])("el-input"),c=Object(n["resolveComponent"])("el-form-item"),d=Object(n["resolveComponent"])("el-form"),u=Object(n["resolveComponent"])("el-button"),m=Object(n["resolveComponent"])("el-dialog");return Object(n["openBlock"])(),Object(n["createBlock"])(m,{modelValue:i.dialogFormVisible,"onUpdate:modelValue":t[3]||(t[3]=e=>i.dialogFormVisible=e),title:i.title,width:"500px",onClose:l.close},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(d,{ref:"form",model:i.form,rules:i.rules,"label-width":"80px"},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(c,{label:"角色名称",prop:"title"},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(s,{modelValue:i.form.name,"onUpdate:modelValue":t[0]||(t[0]=e=>i.form.name=e),modelModifiers:{trim:!0},size:"small",autocomplete:"off"},null,8,["modelValue"])]),_:1}),Object(n["createVNode"])(c,{label:"字符串",prop:"path"},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(s,{modelValue:i.form.key,"onUpdate:modelValue":t[1]||(t[1]=e=>i.form.key=e),modelModifiers:{trim:!0},size:"small",autocomplete:"off"},null,8,["modelValue"])]),_:1}),Object(n["createVNode"])(c,{label:"显示顺序",prop:"path"},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(s,{modelValue:i.form.sort,"onUpdate:modelValue":t[2]||(t[2]=e=>i.form.sort=e),modelModifiers:{trim:!0},size:"small",type:"number",min:"1",autocomplete:"off"},null,8,["modelValue"])]),_:1})]),_:1},8,["model","rules"]),Object(n["createElementVNode"])("div",a,[Object(n["createVNode"])(u,{type:"primary",size:"small",onClick:l.save},{default:Object(n["withCtx"])(()=>t[4]||(t[4]=[Object(n["createTextVNode"])("确 定")])),_:1},8,["onClick"]),Object(n["createVNode"])(u,{size:"small",onClick:l.close},{default:Object(n["withCtx"])(()=>t[5]||(t[5]=[Object(n["createTextVNode"])("取 消")])),_:1},8,["onClick"])])]),_:1},8,["modelValue","title","onClose"])}var i=o("cc5e"),l={data(){return{form:{id:"",name:"",key:"",sort:1},rules:{name:[{required:!0,trigger:"blur",message:"请输入角色名称"}],key:[{required:!0,trigger:"blur",message:"请输入角色字符串"}]},clearable:!0,roleId:"",parentData:[],title:"",dialogFormVisible:!1,diffData:{},ruleForm:[]}},created(){},methods:{handleCountryChange(e){if(e){const t=e.length-1;this.form.parentId=e[t]}else this.form.parentId=0},showEdit(e){e?(this.title="编辑角色",this.roleId=e.id,this.form=Object.assign({},e),this.ruleForm=Object.assign({},e),console.log(e),this.form.title=e.name):this.title="添加角色",this.dialogFormVisible=!0},close(){this.$refs["form"].resetFields(),this.form=this.$options.data().form,this.dialogFormVisible=!1,this.$emit("fetch-data")},getDiffData(){this.diffData={},Object.keys(this.form).forEach(e=>{this.form[e]!=this.ruleForm[e]&&(this.diffData[e]=this.form[e])})},save(){this.$refs["form"].validate(async e=>{if(!e)return!1;if(this.form.id){if(this.getDiffData(),0!=Object.keys(this.diffData).length){this.diffData.id=this.form.id;const{msg:e}=await Object(i["miniRoleUpdate"])(this.diffData);this.$notify({title:e,type:"success"})}}else{const{msg:e}=await Object(i["miniRoleInsert"])(this.form);this.$notify({title:e,type:"success"})}this.$refs["form"].resetFields(),this.dialogFormVisible=!1,this.$parent.fetchData()})}}},s=(o("dc4e"),o("d959")),c=o.n(s);const d=c()(l,[["render",r]]);t["default"]=d},e444:function(e,t,o){"use strict";o("5c08")},e463:function(e,t,o){"use strict";o("074c")},e4ea:function(e,t,o){"use strict";o("b7bf")},e51a:function(e,t,o){"use strict";o.r(t);var n=o("f2bf");const a={class:"dialog-footer"};function r(e,t,o,r,i,l){const s=Object(n["resolveComponent"])("el-option"),c=Object(n["resolveComponent"])("el-select"),d=Object(n["resolveComponent"])("el-form-item"),u=Object(n["resolveComponent"])("el-form"),m=Object(n["resolveComponent"])("el-button"),h=Object(n["resolveComponent"])("el-dialog");return Object(n["openBlock"])(),Object(n["createBlock"])(h,{modelValue:i.dialogFormVisible,"onUpdate:modelValue":t[1]||(t[1]=e=>i.dialogFormVisible=e),title:i.title,width:"500px",onClose:l.close},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(u,{ref:"form",model:i.form,rules:e.rules,"label-width":"80px"},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(d,{label:"角色",prop:"id"},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(c,{modelValue:i.form.roleId,"onUpdate:modelValue":t[0]||(t[0]=e=>i.form.roleId=e),size:"small",placeholder:"请选择"},{default:Object(n["withCtx"])(()=>[(Object(n["openBlock"])(!0),Object(n["createElementBlock"])(n["Fragment"],null,Object(n["renderList"])(i.roleData,e=>(Object(n["openBlock"])(),Object(n["createBlock"])(s,{key:e.id,label:e.name,value:e.id},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1})]),_:1},8,["model","rules"]),Object(n["createElementVNode"])("div",a,[Object(n["createVNode"])(m,{type:"primary",size:"small",onClick:l.save},{default:Object(n["withCtx"])(()=>t[2]||(t[2]=[Object(n["createTextVNode"])("确 定")])),_:1},8,["onClick"]),Object(n["createVNode"])(m,{size:"small",onClick:l.close},{default:Object(n["withCtx"])(()=>t[3]||(t[3]=[Object(n["createTextVNode"])("取 消")])),_:1},8,["onClick"])])]),_:1},8,["modelValue","title","onClose"])}var i=o("0fea"),l=o("cc5e"),s={name:"ManageRole",data(){return{form:{userId:"",roleId:""},roleData:[],clearable:!0,parentData:[],title:"",dialogFormVisible:!1}},created(){},methods:{async getRoleData(){const e={page:1,size:20},{data:t}=await Object(l["miniRoleSelect"])(e);this.roleData=t.items},manageMiniRole(e){this.title="分配角色",this.form.userId=e.id,void 0!=e.wechatRole&&(this.form.roleId=e.wechatRole.id),this.dialogFormVisible=!0,this.getRoleData()},close(){this.$refs["form"].resetFields(),this.form=this.$options.data().form,this.dialogFormVisible=!1,this.$emit("fetch-data")},save(){this.$refs["form"].validate(async e=>{if(!e)return!1;{const{msg:e}=await Object(i["assignMiniRole"])(this.form);this.$notify({title:e,type:"success"}),this.$refs["form"].resetFields(),this.dialogFormVisible=!1,this.$parent.fetchData()}})}}},c=(o("e9ff"),o("d959")),d=o.n(c);const u=d()(s,[["render",r]]);t["default"]=u},e552:function(e,t,o){"use strict";o("878b")},e562:function(e,t,o){(function(){"use strict";var t=function(e){if(null===e)return"null";if(void 0===e)return"undefined";var t=typeof e;return"object"===t&&(Array.prototype.isPrototypeOf(e)||e.constructor&&"Array"===e.constructor.name)?"array":"object"===t&&(String.prototype.isPrototypeOf(e)||e.constructor&&"String"===e.constructor.name)?"string":t},o=function(e){return-1!==["undefined","boolean","number","string","function","xml","null"].indexOf(e)},n=function(e,t){var o=Array.prototype.slice.call(e);return o.sort(t)},a=function(e,t){return r((function(o,n){return e.eq(t(o),t(n))}))},r=function(e){return{eq:e}},i=r((function(e,t){return e===t})),l=i,s=function(e){return r((function(t,o){if(t.length!==o.length)return!1;for(var n=t.length,a=0;a<n;a++)if(!e.eq(t[a],o[a]))return!1;return!0}))},c=function(e,t){return a(s(e),(function(e){return n(e,t)}))},d=function(e){return r((function(t,o){var n=Object.keys(t),a=Object.keys(o);if(!c(l).eq(n,a))return!1;for(var r=n.length,i=0;i<r;i++){var s=n[i];if(!e.eq(t[s],o[s]))return!1}return!0}))},u=r((function(e,n){if(e===n)return!0;var a=t(e),r=t(n);return a===r&&(o(a)?e===n:"array"===a?s(u).eq(e,n):"object"===a&&d(u).eq(e,n))}));const m=Object.getPrototypeOf,h=(e,t,o)=>{var n;return!!o(e,t.prototype)||(null===(n=e.constructor)||void 0===n?void 0:n.name)===t.name},p=e=>{const t=typeof e;return null===e?"null":"object"===t&&Array.isArray(e)?"array":"object"===t&&h(e,String,(e,t)=>t.isPrototypeOf(e))?"string":t},b=e=>t=>p(t)===e,g=e=>t=>typeof t===e,f=e=>t=>e===t,v=(e,t)=>k(e)&&h(e,t,(e,t)=>m(e)===t),w=b("string"),k=b("object"),C=e=>v(e,Object),y=b("array"),O=f(null),j=g("boolean"),x=f(void 0),_=e=>null===e||void 0===e,V=e=>!_(e),A=g("function"),N=g("number"),D=(e,t)=>{if(y(e)){for(let o=0,n=e.length;o<n;++o)if(!t(e[o]))return!1;return!0}return!1},E=()=>{},T=(e,t)=>(...o)=>e(t.apply(null,o)),S=(e,t)=>o=>e(t(o)),B=e=>()=>e,I=e=>e,z=(e,t)=>e===t;function F(e,...t){return(...o)=>{const n=t.concat(o);return e.apply(null,n)}}const M=e=>t=>!e(t),L=e=>()=>{throw new Error(e)},P=e=>e(),R=e=>{e()},q=B(!1),$=B(!0);class U{constructor(e,t){this.tag=e,this.value=t}static some(e){return new U(!0,e)}static none(){return U.singletonNone}fold(e,t){return this.tag?t(this.value):e()}isSome(){return this.tag}isNone(){return!this.tag}map(e){return this.tag?U.some(e(this.value)):U.none()}bind(e){return this.tag?e(this.value):U.none()}exists(e){return this.tag&&e(this.value)}forall(e){return!this.tag||e(this.value)}filter(e){return!this.tag||e(this.value)?this:U.none()}getOr(e){return this.tag?this.value:e}or(e){return this.tag?this:e}getOrThunk(e){return this.tag?this.value:e()}orThunk(e){return this.tag?this:e()}getOrDie(e){if(this.tag)return this.value;throw new Error(null!==e&&void 0!==e?e:"Called getOrDie on None")}static from(e){return V(e)?U.some(e):U.none()}getOrNull(){return this.tag?this.value:null}getOrUndefined(){return this.value}each(e){this.tag&&e(this.value)}toArray(){return this.tag?[this.value]:[]}toString(){return this.tag?`some(${this.value})`:"none()"}}U.singletonNone=new U(!1);const H=Array.prototype.slice,W=Array.prototype.indexOf,G=Array.prototype.push,K=(e,t)=>W.call(e,t),Y=(e,t)=>{const o=K(e,t);return-1===o?U.none():U.some(o)},Q=(e,t)=>K(e,t)>-1,J=(e,t)=>{for(let o=0,n=e.length;o<n;o++){const n=e[o];if(t(n,o))return!0}return!1},Z=(e,t)=>{const o=e.length,n=new Array(o);for(let a=0;a<o;a++){const o=e[a];n[a]=t(o,a)}return n},X=(e,t)=>{for(let o=0,n=e.length;o<n;o++){const n=e[o];t(n,o)}},ee=(e,t)=>{for(let o=e.length-1;o>=0;o--){const n=e[o];t(n,o)}},te=(e,t)=>{const o=[],n=[];for(let a=0,r=e.length;a<r;a++){const r=e[a],i=t(r,a)?o:n;i.push(r)}return{pass:o,fail:n}},oe=(e,t)=>{const o=[];for(let n=0,a=e.length;n<a;n++){const a=e[n];t(a,n)&&o.push(a)}return o},ne=(e,t,o)=>(ee(e,(e,n)=>{o=t(o,e,n)}),o),ae=(e,t,o)=>(X(e,(e,n)=>{o=t(o,e,n)}),o),re=(e,t,o)=>{for(let n=0,a=e.length;n<a;n++){const a=e[n];if(t(a,n))return U.some(a);if(o(a,n))break}return U.none()},ie=(e,t)=>re(e,t,q),le=(e,t)=>{for(let o=0,n=e.length;o<n;o++){const n=e[o];if(t(n,o))return U.some(o)}return U.none()},se=e=>{const t=[];for(let o=0,n=e.length;o<n;++o){if(!y(e[o]))throw new Error("Arr.flatten item "+o+" was not an array, input: "+e);G.apply(t,e[o])}return t},ce=(e,t)=>se(Z(e,t)),de=(e,t)=>{for(let o=0,n=e.length;o<n;++o){const n=e[o];if(!0!==t(n,o))return!1}return!0},ue=e=>{const t=H.call(e,0);return t.reverse(),t},me=(e,t)=>oe(e,e=>!Q(t,e)),he=(e,t)=>{const o={};for(let n=0,a=e.length;n<a;n++){const a=e[n];o[String(a)]=t(a,n)}return o},pe=(e,t)=>{const o=H.call(e,0);return o.sort(t),o},be=(e,t)=>t>=0&&t<e.length?U.some(e[t]):U.none(),ge=e=>be(e,0),fe=e=>be(e,e.length-1),ve=A(Array.from)?Array.from:e=>H.call(e),we=(e,t)=>{for(let o=0;o<e.length;o++){const n=t(e[o],o);if(n.isSome())return n}return U.none()},ke=(e,t)=>{const o=[],n=A(t)?e=>J(o,o=>t(o,e)):e=>Q(o,e);for(let a=0,r=e.length;a<r;a++){const t=e[a];n(t)||o.push(t)}return o},Ce=Object.keys,ye=Object.hasOwnProperty,Oe=(e,t)=>{const o=Ce(e);for(let n=0,a=o.length;n<a;n++){const a=o[n],r=e[a];t(r,a)}},je=(e,t)=>xe(e,(e,o)=>({k:o,v:t(e,o)})),xe=(e,t)=>{const o={};return Oe(e,(e,n)=>{const a=t(e,n);o[a.k]=a.v}),o},_e=e=>(t,o)=>{e[o]=t},Ve=(e,t,o,n)=>{Oe(e,(e,a)=>{(t(e,a)?o:n)(e,a)})},Ae=(e,t)=>{const o={},n={};return Ve(e,t,_e(o),_e(n)),{t:o,f:n}},Ne=(e,t)=>{const o={};return Ve(e,t,_e(o),E),o},De=(e,t)=>{const o=[];return Oe(e,(e,n)=>{o.push(t(e,n))}),o},Ee=e=>De(e,I),Te=(e,t)=>Se(e,t)?U.from(e[t]):U.none(),Se=(e,t)=>ye.call(e,t),Be=(e,t)=>Se(e,t)&&void 0!==e[t]&&null!==e[t],Ie=(e,t,o=u)=>d(o).eq(e,t),ze=e=>{const t={};return X(e,e=>{t[e]={}}),Ce(t)},Fe=e=>void 0!==e.length,Me=Array.isArray,Le=e=>{if(Me(e))return e;{const t=[];for(let o=0,n=e.length;o<n;o++)t[o]=e[o];return t}},Pe=(e,t,o)=>{if(!e)return!1;if(o=o||e,Fe(e)){for(let n=0,a=e.length;n<a;n++)if(!1===t.call(o,e[n],n,e))return!1}else for(const n in e)if(Se(e,n)&&!1===t.call(o,e[n],n,e))return!1;return!0},Re=(e,t)=>{const o=[];return Pe(e,(n,a)=>{o.push(t(n,a,e))}),o},qe=(e,t)=>{const o=[];return Pe(e,(n,a)=>{t&&!t(n,a,e)||o.push(n)}),o},$e=(e,t)=>{if(e)for(let o=0,n=e.length;o<n;o++)if(e[o]===t)return o;return-1},Ue=(e,t,o,n)=>{let a=x(o)?e[0]:o;for(let r=0;r<e.length;r++)a=t.call(n,a,e[r],r);return a},He=(e,t,o)=>{for(let n=0,a=e.length;n<a;n++)if(t.call(o,e[n],n,e))return n;return-1},We=e=>e[e.length-1],Ge=e=>{let t,o=!1;return(...n)=>(o||(o=!0,t=e.apply(null,n)),t)},Ke=(e,t,o,n)=>{const a=e.isiOS()&&!0===/ipad/i.test(o),r=e.isiOS()&&!a,i=e.isiOS()||e.isAndroid(),l=i||n("(pointer:coarse)"),s=a||!r&&i&&n("(min-device-width:768px)"),c=r||i&&!s,d=t.isSafari()&&e.isiOS()&&!1===/safari/i.test(o),u=!c&&!s&&!d;return{isiPad:B(a),isiPhone:B(r),isTablet:B(s),isPhone:B(c),isTouch:B(l),isAndroid:e.isAndroid,isiOS:e.isiOS,isWebView:B(d),isDesktop:B(u)}},Ye=(e,t)=>{for(let o=0;o<e.length;o++){const n=e[o];if(n.test(t))return n}},Qe=(e,t)=>{const o=Ye(e,t);if(!o)return{major:0,minor:0};const n=e=>Number(t.replace(o,"$"+e));return Xe(n(1),n(2))},Je=(e,t)=>{const o=String(t).toLowerCase();return 0===e.length?Ze():Qe(e,o)},Ze=()=>Xe(0,0),Xe=(e,t)=>({major:e,minor:t}),et={nu:Xe,detect:Je,unknown:Ze},tt=(e,t)=>we(t.brands,t=>{const o=t.brand.toLowerCase();return ie(e,e=>{var t;return o===(null===(t=e.brand)||void 0===t?void 0:t.toLowerCase())}).map(e=>({current:e.name,version:et.nu(parseInt(t.version,10),0)}))}),ot=(e,t)=>{const o=String(t).toLowerCase();return ie(e,e=>e.search(o))},nt=(e,t)=>ot(e,t).map(e=>{const o=et.detect(e.versionRegexes,t);return{current:e.name,version:o}}),at=(e,t)=>ot(e,t).map(e=>{const o=et.detect(e.versionRegexes,t);return{current:e.name,version:o}}),rt=(e,t)=>e.substring(t),it=(e,t,o)=>""===t||e.length>=t.length&&e.substr(o,o+t.length)===t,lt=(e,t)=>ct(e,t)?rt(e,t.length):e,st=(e,t,o=0,n)=>{const a=e.indexOf(t,o);return-1!==a&&(!!x(n)||a+t.length<=n)},ct=(e,t)=>it(e,t,0),dt=(e,t)=>it(e,t,e.length-t.length),ut=e=>t=>t.replace(e,""),mt=ut(/^\s+|\s+$/g),ht=ut(/^\s+/g),pt=ut(/\s+$/g),bt=e=>e.length>0,gt=e=>!bt(e),ft=(e,t)=>t<=0?"":new Array(t+1).join(e),vt=(e,t=10)=>{const o=parseInt(e,t);return isNaN(o)?U.none():U.some(o)},wt=/.*?version\/\ ?([0-9]+)\.([0-9]+).*/,kt=e=>t=>st(t,e),Ct=[{name:"Edge",versionRegexes:[/.*?edge\/ ?([0-9]+)\.([0-9]+)$/],search:e=>st(e,"edge/")&&st(e,"chrome")&&st(e,"safari")&&st(e,"applewebkit")},{name:"Chromium",brand:"Chromium",versionRegexes:[/.*?chrome\/([0-9]+)\.([0-9]+).*/,wt],search:e=>st(e,"chrome")&&!st(e,"chromeframe")},{name:"IE",versionRegexes:[/.*?msie\ ?([0-9]+)\.([0-9]+).*/,/.*?rv:([0-9]+)\.([0-9]+).*/],search:e=>st(e,"msie")||st(e,"trident")},{name:"Opera",versionRegexes:[wt,/.*?opera\/([0-9]+)\.([0-9]+).*/],search:kt("opera")},{name:"Firefox",versionRegexes:[/.*?firefox\/\ ?([0-9]+)\.([0-9]+).*/],search:kt("firefox")},{name:"Safari",versionRegexes:[wt,/.*?cpu os ([0-9]+)_([0-9]+).*/],search:e=>(st(e,"safari")||st(e,"mobile/"))&&st(e,"applewebkit")}],yt=[{name:"Windows",search:kt("win"),versionRegexes:[/.*?windows\ nt\ ?([0-9]+)\.([0-9]+).*/]},{name:"iOS",search:e=>st(e,"iphone")||st(e,"ipad"),versionRegexes:[/.*?version\/\ ?([0-9]+)\.([0-9]+).*/,/.*cpu os ([0-9]+)_([0-9]+).*/,/.*cpu iphone os ([0-9]+)_([0-9]+).*/]},{name:"Android",search:kt("android"),versionRegexes:[/.*?android\ ?([0-9]+)\.([0-9]+).*/]},{name:"macOS",search:kt("mac os x"),versionRegexes:[/.*?mac\ os\ x\ ?([0-9]+)_([0-9]+).*/]},{name:"Linux",search:kt("linux"),versionRegexes:[]},{name:"Solaris",search:kt("sunos"),versionRegexes:[]},{name:"FreeBSD",search:kt("freebsd"),versionRegexes:[]},{name:"ChromeOS",search:kt("cros"),versionRegexes:[/.*?chrome\/([0-9]+)\.([0-9]+).*/]}],Ot={browsers:B(Ct),oses:B(yt)},jt="Edge",xt="Chromium",_t="IE",Vt="Opera",At="Firefox",Nt="Safari",Dt=()=>Et({current:void 0,version:et.unknown()}),Et=e=>{const t=e.current,o=e.version,n=e=>()=>t===e;return{current:t,version:o,isEdge:n(jt),isChromium:n(xt),isIE:n(_t),isOpera:n(Vt),isFirefox:n(At),isSafari:n(Nt)}},Tt={unknown:Dt,nu:Et,edge:B(jt),chromium:B(xt),ie:B(_t),opera:B(Vt),firefox:B(At),safari:B(Nt)},St="Windows",Bt="iOS",It="Android",zt="Linux",Ft="macOS",Mt="Solaris",Lt="FreeBSD",Pt="ChromeOS",Rt=()=>qt({current:void 0,version:et.unknown()}),qt=e=>{const t=e.current,o=e.version,n=e=>()=>t===e;return{current:t,version:o,isWindows:n(St),isiOS:n(Bt),isAndroid:n(It),isMacOS:n(Ft),isLinux:n(zt),isSolaris:n(Mt),isFreeBSD:n(Lt),isChromeOS:n(Pt)}},$t={unknown:Rt,nu:qt,windows:B(St),ios:B(Bt),android:B(It),linux:B(zt),macos:B(Ft),solaris:B(Mt),freebsd:B(Lt),chromeos:B(Pt)},Ut=(e,t,o)=>{const n=Ot.browsers(),a=Ot.oses(),r=t.bind(e=>tt(n,e)).orThunk(()=>nt(n,e)).fold(Tt.unknown,Tt.nu),i=at(a,e).fold($t.unknown,$t.nu),l=Ke(i,r,e,o);return{browser:r,os:i,deviceType:l}},Ht={detect:Ut},Wt=e=>window.matchMedia(e).matches;let Gt=Ge(()=>Ht.detect(navigator.userAgent,U.from(navigator.userAgentData),Wt));const Kt=()=>Gt(),Yt=navigator.userAgent,Qt=Kt(),Jt=Qt.browser,Zt=Qt.os,Xt=Qt.deviceType,eo=-1!==Yt.indexOf("Windows Phone"),to={transparentSrc:"data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7",documentMode:Jt.isIE()?document.documentMode||7:10,cacheSuffix:null,container:null,canHaveCSP:!Jt.isIE(),windowsPhone:eo,browser:{current:Jt.current,version:Jt.version,isChromium:Jt.isChromium,isEdge:Jt.isEdge,isFirefox:Jt.isFirefox,isIE:Jt.isIE,isOpera:Jt.isOpera,isSafari:Jt.isSafari},os:{current:Zt.current,version:Zt.version,isAndroid:Zt.isAndroid,isChromeOS:Zt.isChromeOS,isFreeBSD:Zt.isFreeBSD,isiOS:Zt.isiOS,isLinux:Zt.isLinux,isMacOS:Zt.isMacOS,isSolaris:Zt.isSolaris,isWindows:Zt.isWindows},deviceType:{isDesktop:Xt.isDesktop,isiPad:Xt.isiPad,isiPhone:Xt.isiPhone,isPhone:Xt.isPhone,isTablet:Xt.isTablet,isTouch:Xt.isTouch,isWebView:Xt.isWebView}},oo=/^\s*|\s*$/g,no=e=>_(e)?"":(""+e).replace(oo,""),ao=(e,t)=>t?!("array"!==t||!Me(e))||typeof e===t:void 0!==e,ro=(e,t,o={})=>{const n=w(e)?e.split(t||","):e||[];let a=n.length;while(a--)o[n[a]]={};return o},io=Se,lo=(e,...t)=>{for(let o=0;o<t.length;o++){const n=t[o];for(const t in n)if(Se(n,t)){const o=n[t];void 0!==o&&(e[t]=o)}}return e},so=function(e,t,o,n){n=n||this,e&&(o&&(e=e[o]),Pe(e,(e,a)=>!1!==t.call(n,e,a,o)&&(so(e,t,o,n),!0)))},co=(e,t=window)=>{const o=e.split(".");for(let n=0,a=o.length;n<a;n++)if(t=t[o[n]],!t)break;return t},uo=(e,t)=>y(e)?e:""===e?[]:Re(e.split(t||","),no),mo=e=>{const t=to.cacheSuffix;return t&&(e+=(-1===e.indexOf("?")?"?":"&")+t),e},ho={trim:no,isArray:Me,is:ao,toArray:Le,makeMap:ro,each:Pe,map:Re,grep:qe,inArray:$e,hasOwn:io,extend:lo,walk:so,resolve:co,explode:uo,_addCacheSuffix:mo},po=(e,t,o=z)=>e.exists(e=>o(e,t)),bo=(e,t,o=z)=>fo(e,t,o).getOr(e.isNone()&&t.isNone()),go=e=>{const t=[],o=e=>{t.push(e)};for(let n=0;n<e.length;n++)e[n].each(o);return t},fo=(e,t,o)=>e.isSome()&&t.isSome()?U.some(o(e.getOrDie(),t.getOrDie())):U.none(),vo=(e,t,o,n)=>e.isSome()&&t.isSome()&&o.isSome()?U.some(n(e.getOrDie(),t.getOrDie(),o.getOrDie())):U.none(),wo=(e,t)=>e?U.some(t):U.none(),ko="undefined"!==typeof window?window:Function("return this;")(),Co=(e,t)=>{let o=void 0!==t&&null!==t?t:ko;for(let n=0;n<e.length&&void 0!==o&&null!==o;++n)o=o[e[n]];return o},yo=(e,t)=>{const o=e.split(".");return Co(o,t)},Oo=(e,t)=>yo(e,t),jo=(e,t)=>{const o=Oo(e,t);if(void 0===o||null===o)throw new Error(e+" not available on this browser");return o},xo=Object.getPrototypeOf,_o=e=>jo("HTMLElement",e),Vo=e=>{const t=yo("ownerDocument.defaultView",e);return k(e)&&(_o(t).prototype.isPrototypeOf(e)||/^HTML\w*Element$/.test(xo(e).constructor.name))},Ao=8,No=9,Do=11,Eo=1,To=3,So=e=>{const t=e.dom.nodeName;return t.toLowerCase()},Bo=e=>e.dom.nodeType,Io=e=>t=>Bo(t)===e,zo=e=>Bo(e)===Ao||"#comment"===So(e),Fo=e=>Mo(e)&&Vo(e.dom),Mo=Io(Eo),Lo=Io(To),Po=Io(No),Ro=Io(Do),qo=e=>t=>Mo(t)&&So(t)===e,$o=(e,t,o)=>{if(!(w(o)||j(o)||N(o)))throw console.error("Invalid call to Attribute.set. Key ",t,":: Value ",o,":: Element ",e),new Error("Attribute value was not simple");e.setAttribute(t,o+"")},Uo=(e,t,o)=>{$o(e.dom,t,o)},Ho=(e,t)=>{const o=e.dom;Oe(t,(e,t)=>{$o(o,t,e)})},Wo=(e,t)=>{const o=e.dom.getAttribute(t);return null===o?void 0:o},Go=(e,t)=>U.from(Wo(e,t)),Ko=(e,t)=>{const o=e.dom;return!(!o||!o.hasAttribute)&&o.hasAttribute(t)},Yo=(e,t)=>{e.dom.removeAttribute(t)},Qo=e=>{const t=e.dom.attributes;return void 0===t||null===t||0===t.length},Jo=e=>ae(e.dom.attributes,(e,t)=>(e[t.name]=t.value,e),{}),Zo=(e,t)=>{const o=Wo(e,t);return void 0===o||""===o?[]:o.split(" ")},Xo=(e,t,o)=>{const n=Zo(e,t),a=n.concat([o]);return Uo(e,t,a.join(" ")),!0},en=(e,t,o)=>{const n=oe(Zo(e,t),e=>e!==o);return n.length>0?Uo(e,t,n.join(" ")):Yo(e,t),!1},tn=e=>void 0!==e.dom.classList,on=e=>Zo(e,"class"),nn=(e,t)=>Xo(e,"class",t),an=(e,t)=>en(e,"class",t),rn=(e,t)=>Q(on(e),t)?an(e,t):nn(e,t),ln=(e,t)=>{tn(e)?e.dom.classList.add(t):nn(e,t)},sn=e=>{const t=tn(e)?e.dom.classList:on(e);0===t.length&&Yo(e,"class")},cn=(e,t)=>{if(tn(e)){const o=e.dom.classList;o.remove(t)}else an(e,t);sn(e)},dn=(e,t)=>{const o=tn(e)?e.dom.classList.toggle(t):rn(e,t);return sn(e),o},un=(e,t)=>tn(e)&&e.dom.classList.contains(t),mn=(e,t)=>{const o=t||document,n=o.createElement("div");if(n.innerHTML=e,!n.hasChildNodes()||n.childNodes.length>1){const t="HTML does not have a single root node";throw console.error(t,e),new Error(t)}return bn(n.childNodes[0])},hn=(e,t)=>{const o=t||document,n=o.createElement(e);return bn(n)},pn=(e,t)=>{const o=t||document,n=o.createTextNode(e);return bn(n)},bn=e=>{if(null===e||void 0===e)throw new Error("Node cannot be null or undefined");return{dom:e}},gn=(e,t,o)=>U.from(e.dom.elementFromPoint(t,o)).map(bn),fn={fromHtml:mn,fromTag:hn,fromText:pn,fromDom:bn,fromPoint:gn},vn=(e,t)=>{const o=[],n=e=>(o.push(e),t(e));let a=t(e);do{a=a.bind(n)}while(a.isSome());return o},wn=(e,t)=>{const o=e.dom;if(o.nodeType!==Eo)return!1;{const e=o;if(void 0!==e.matches)return e.matches(t);if(void 0!==e.msMatchesSelector)return e.msMatchesSelector(t);if(void 0!==e.webkitMatchesSelector)return e.webkitMatchesSelector(t);if(void 0!==e.mozMatchesSelector)return e.mozMatchesSelector(t);throw new Error("Browser lacks native selectors")}},kn=e=>e.nodeType!==Eo&&e.nodeType!==No&&e.nodeType!==Do||0===e.childElementCount,Cn=(e,t)=>{const o=void 0===t?document:t.dom;return kn(o)?[]:Z(o.querySelectorAll(e),fn.fromDom)},yn=(e,t)=>{const o=void 0===t?document:t.dom;return kn(o)?U.none():U.from(o.querySelector(e)).map(fn.fromDom)},On=(e,t)=>e.dom===t.dom,jn=(e,t)=>{const o=e.dom,n=t.dom;return o!==n&&o.contains(n)},xn=e=>fn.fromDom(e.dom.ownerDocument),_n=e=>Po(e)?e:xn(e),Vn=e=>fn.fromDom(_n(e).dom.documentElement),An=e=>fn.fromDom(_n(e).dom.defaultView),Nn=e=>U.from(e.dom.parentNode).map(fn.fromDom),Dn=e=>U.from(e.dom.parentElement).map(fn.fromDom),En=(e,t)=>{const o=A(t)?t:q;let n=e.dom;const a=[];while(null!==n.parentNode&&void 0!==n.parentNode){const e=n.parentNode,t=fn.fromDom(e);if(a.push(t),!0===o(t))break;n=e}return a},Tn=e=>{const t=t=>oe(t,t=>!On(e,t));return Nn(e).map(Fn).map(t).getOr([])},Sn=e=>U.from(e.dom.previousSibling).map(fn.fromDom),Bn=e=>U.from(e.dom.nextSibling).map(fn.fromDom),In=e=>ue(vn(e,Sn)),zn=e=>vn(e,Bn),Fn=e=>Z(e.dom.childNodes,fn.fromDom),Mn=(e,t)=>{const o=e.dom.childNodes;return U.from(o[t]).map(fn.fromDom)},Ln=e=>Mn(e,0),Pn=e=>Mn(e,e.dom.childNodes.length-1),Rn=e=>e.dom.childNodes.length,qn=e=>e.dom.hasChildNodes(),$n=e=>{const t=e.dom.head;if(null===t||void 0===t)throw new Error("Head is not available yet");return fn.fromDom(t)},Un=e=>Ro(e)&&V(e.dom.host),Hn=A(Element.prototype.attachShadow)&&A(Node.prototype.getRootNode),Wn=B(Hn),Gn=Hn?e=>fn.fromDom(e.dom.getRootNode()):_n,Kn=e=>Un(e)?e:$n(_n(e)),Yn=e=>Un(e)?e:fn.fromDom(_n(e).dom.body),Qn=e=>{const t=Gn(e);return Un(t)?U.some(t):U.none()},Jn=e=>fn.fromDom(e.dom.host),Zn=e=>{if(Wn()&&V(e.target)){const t=fn.fromDom(e.target);if(Mo(t)&&Xn(t)&&e.composed&&e.composedPath){const t=e.composedPath();if(t)return ge(t)}}return U.from(e.target)},Xn=e=>V(e.dom.shadowRoot),ea=e=>{const t=Lo(e)?e.dom.parentNode:e.dom;if(void 0===t||null===t||null===t.ownerDocument)return!1;const o=t.ownerDocument;return Qn(fn.fromDom(t)).fold(()=>o.body.contains(t),S(ea,Jn))};var ta=(e,t,o,n,a)=>e(o,n)?U.some(o):A(a)&&a(o)?U.none():t(o,n,a);const oa=(e,t,o)=>{let n=e.dom;const a=A(o)?o:q;while(n.parentNode){n=n.parentNode;const e=fn.fromDom(n);if(t(e))return U.some(e);if(a(e))break}return U.none()},na=(e,t,o)=>{const n=(e,t)=>t(e);return ta(n,oa,e,t,o)},aa=(e,t)=>{const o=e.dom;return o.parentNode?ra(fn.fromDom(o.parentNode),o=>!On(e,o)&&t(o)):U.none()},ra=(e,t)=>{const o=e=>t(fn.fromDom(e)),n=ie(e.dom.childNodes,o);return n.map(fn.fromDom)},ia=(e,t)=>{const o=e=>{for(let n=0;n<e.childNodes.length;n++){const a=fn.fromDom(e.childNodes[n]);if(t(a))return U.some(a);const r=o(e.childNodes[n]);if(r.isSome())return r}return U.none()};return o(e.dom)},la=(e,t,o)=>oa(e,e=>wn(e,t),o),sa=(e,t)=>yn(t,e),ca=(e,t,o)=>{const n=(e,t)=>wn(e,t);return ta(n,la,e,t,o)},da=e=>ca(e,"[contenteditable]"),ua=(e,t=!1)=>ea(e)?e.dom.isContentEditable:da(e).fold(B(t),e=>"true"===ma(e)),ma=e=>e.dom.contentEditable,ha=e=>void 0!==e.style&&A(e.style.getPropertyValue),pa=(e,t,o)=>{if(!w(o))throw console.error("Invalid call to CSS.set. Property ",t,":: Value ",o,":: Element ",e),new Error("CSS value must be a string: "+o);ha(e)&&e.style.setProperty(t,o)},ba=(e,t)=>{ha(e)&&e.style.removeProperty(t)},ga=(e,t,o)=>{const n=e.dom;pa(n,t,o)},fa=(e,t)=>{const o=e.dom;Oe(t,(e,t)=>{pa(o,t,e)})},va=(e,t)=>{const o=e.dom,n=window.getComputedStyle(o),a=n.getPropertyValue(t);return""!==a||ea(e)?a:wa(o,t)},wa=(e,t)=>ha(e)?e.style.getPropertyValue(t):"",ka=(e,t)=>{const o=e.dom,n=wa(o,t);return U.from(n).filter(e=>e.length>0)},Ca=e=>{const t={},o=e.dom;if(ha(o))for(let n=0;n<o.style.length;n++){const e=o.style.item(n);t[e]=o.style[e]}return t},ya=(e,t)=>{const o=e.dom;ba(o,t),po(Go(e,"style").map(mt),"")&&Yo(e,"style")},Oa=e=>e.dom.offsetWidth,ja=(e,t)=>{const o=Nn(e);o.each(o=>{o.dom.insertBefore(t.dom,e.dom)})},xa=(e,t)=>{const o=Bn(e);o.fold(()=>{const o=Nn(e);o.each(e=>{Va(e,t)})},e=>{ja(e,t)})},_a=(e,t)=>{const o=Ln(e);o.fold(()=>{Va(e,t)},o=>{e.dom.insertBefore(t.dom,o.dom)})},Va=(e,t)=>{e.dom.appendChild(t.dom)},Aa=(e,t)=>{ja(e,t),Va(t,e)},Na=(e,t)=>{X(t,(o,n)=>{const a=0===n?e:t[n-1];xa(a,o)})},Da=(e,t)=>{X(t,t=>{Va(e,t)})},Ea=e=>{e.dom.textContent="",X(Fn(e),e=>{Ta(e)})},Ta=e=>{const t=e.dom;null!==t.parentNode&&t.parentNode.removeChild(t)},Sa=e=>{const t=Fn(e);t.length>0&&Na(e,t),Ta(e)},Ba=(e,t)=>{const o=t||document,n=o.createElement("div");return n.innerHTML=e,Fn(fn.fromDom(n))},Ia=e=>Z(e,fn.fromDom),za=e=>e.dom.innerHTML,Fa=(e,t)=>{const o=xn(e),n=o.dom,a=fn.fromDom(n.createDocumentFragment()),r=Ba(t,n);Da(a,r),Ea(e),Va(e,a)},Ma=e=>{const t=fn.fromTag("div"),o=fn.fromDom(e.dom.cloneNode(!0));return Va(t,o),za(t)},La=(e,t,o,n,a,r,i)=>({target:e,x:t,y:o,stop:n,prevent:a,kill:r,raw:i}),Pa=e=>{const t=fn.fromDom(Zn(e).getOr(e.target)),o=()=>e.stopPropagation(),n=()=>e.preventDefault(),a=T(n,o);return La(t,e.clientX,e.clientY,o,n,a,e)},Ra=(e,t)=>o=>{e(o)&&t(Pa(o))},qa=(e,t,o,n,a)=>{const r=Ra(o,n);return e.dom.addEventListener(t,r,a),{unbind:F(Ua,e,t,r,a)}},$a=(e,t,o,n)=>qa(e,t,o,n,!1),Ua=(e,t,o,n)=>{e.dom.removeEventListener(t,o,n)},Ha=(e,t)=>{const o=(o,n)=>Ha(e+o,t+n);return{left:e,top:t,translate:o}},Wa=Ha,Ga=e=>{const t=e.getBoundingClientRect();return Wa(t.left,t.top)},Ka=(e,t)=>void 0!==e?e:void 0!==t?t:0,Ya=e=>{const t=e.dom.ownerDocument,o=t.body,n=t.defaultView,a=t.documentElement;if(o===e.dom)return Wa(o.offsetLeft,o.offsetTop);const r=Ka(null===n||void 0===n?void 0:n.pageYOffset,a.scrollTop),i=Ka(null===n||void 0===n?void 0:n.pageXOffset,a.scrollLeft),l=Ka(a.clientTop,o.clientTop),s=Ka(a.clientLeft,o.clientLeft);return Qa(e).translate(i-s,r-l)},Qa=e=>{const t=e.dom,o=t.ownerDocument,n=o.body;return n===t?Wa(n.offsetLeft,n.offsetTop):ea(e)?Ga(t):Wa(0,0)},Ja=e=>{const t=void 0!==e?e.dom:document,o=t.body.scrollLeft||t.documentElement.scrollLeft,n=t.body.scrollTop||t.documentElement.scrollTop;return Wa(o,n)},Za=(e,t,o)=>{const n=void 0!==o?o.dom:document,a=n.defaultView;a&&a.scrollTo(e,t)},Xa=(e,t)=>{const o=Kt().browser.isSafari();o&&A(e.dom.scrollIntoViewIfNeeded)?e.dom.scrollIntoViewIfNeeded(!1):e.dom.scrollIntoView(t)},er=e=>{const t=void 0===e?window:e;return Kt().browser.isFirefox()?U.none():U.from(t.visualViewport)},tr=(e,t,o,n)=>({x:e,y:t,width:o,height:n,right:e+o,bottom:t+n}),or=e=>{const t=void 0===e?window:e,o=t.document,n=Ja(fn.fromDom(o));return er(t).fold(()=>{const e=t.document.documentElement,o=e.clientWidth,a=e.clientHeight;return tr(n.left,n.top,o,a)},e=>tr(Math.max(e.pageLeft,n.left),Math.max(e.pageTop,n.top),e.width,e.height))},nr=(e,t)=>oe(Fn(e),t),ar=(e,t)=>{let o=[];return X(Fn(e),e=>{t(e)&&(o=o.concat([e])),o=o.concat(ar(e,t))}),o},rr=(e,t)=>Cn(t,e),ir=(e,t,o)=>la(e,t,o).isSome();class lr{constructor(e,t){this.node=e,this.rootNode=t,this.current=this.current.bind(this),this.next=this.next.bind(this),this.prev=this.prev.bind(this),this.prev2=this.prev2.bind(this)}current(){return this.node}next(e){return this.node=this.findSibling(this.node,"firstChild","nextSibling",e),this.node}prev(e){return this.node=this.findSibling(this.node,"lastChild","previousSibling",e),this.node}prev2(e){return this.node=this.findPreviousNode(this.node,e),this.node}findSibling(e,t,o,n){if(e){if(!n&&e[t])return e[t];if(e!==this.rootNode){let t=e[o];if(t)return t;for(let n=e.parentNode;n&&n!==this.rootNode;n=n.parentNode)if(t=n[o],t)return t}}}findPreviousNode(e,t){if(e){const o=e.previousSibling;if(this.rootNode&&o===this.rootNode)return;if(o){if(!t)for(let e=o.lastChild;e;e=e.lastChild)if(!e.lastChild)return e;return o}const n=e.parentNode;if(n&&n!==this.rootNode)return n}}}const sr=e=>t=>!!t&&t.nodeType===e,cr=e=>!!e&&!Object.getPrototypeOf(e),dr=sr(1),ur=e=>dr(e)&&Fo(fn.fromDom(e)),mr=e=>dr(e)&&"http://www.w3.org/2000/svg"===e.namespaceURI,hr=e=>{const t=e.toLowerCase();return e=>V(e)&&e.nodeName.toLowerCase()===t},pr=e=>{const t=e.map(e=>e.toLowerCase());return e=>{if(e&&e.nodeName){const o=e.nodeName.toLowerCase();return Q(t,o)}return!1}},br=(e,t)=>{const o=t.toLowerCase().split(" ");return t=>{if(dr(t)){const n=t.ownerDocument.defaultView;if(n)for(let a=0;a<o.length;a++){const r=n.getComputedStyle(t,null),i=r?r.getPropertyValue(e):null;if(i===o[a])return!0}}return!1}},gr=e=>t=>dr(t)&&t.hasAttribute(e),fr=(e,t)=>o=>dr(o)&&o.getAttribute(e)===t,vr=e=>dr(e)&&e.hasAttribute("data-mce-bogus"),wr=e=>dr(e)&&"all"===e.getAttribute("data-mce-bogus"),kr=e=>dr(e)&&"TABLE"===e.tagName,Cr=e=>t=>{if(ur(t)){if(t.contentEditable===e)return!0;if(t.getAttribute("data-mce-contenteditable")===e)return!0}return!1},yr=pr(["textarea","input"]),Or=sr(3),jr=sr(4),xr=sr(7),_r=sr(8),Vr=sr(9),Ar=sr(11),Nr=hr("br"),Dr=hr("img"),Er=Cr("true"),Tr=Cr("false"),Sr=pr(["td","th"]),Br=pr(["td","th","caption"]),Ir=pr(["video","audio","object","embed"]),zr=hr("li"),Fr=hr("details"),Mr=hr("summary"),Lr="\ufeff",Pr=" ",Rr=e=>e===Lr,qr=e=>e.replace(/\uFEFF/g,""),$r=(e,t)=>{const o=o=>{if(!e(o))throw new Error("Can only get "+t+" value of a "+t+" node");return n(o).getOr("")},n=t=>e(t)?U.from(t.dom.nodeValue):U.none(),a=(o,n)=>{if(!e(o))throw new Error("Can only set raw "+t+" value of a "+t+" node");o.dom.nodeValue=n};return{get:o,getOption:n,set:a}},Ur=$r(Lo,"text"),Hr=e=>Ur.get(e),Wr=e=>Ur.getOption(e),Gr=(e,t)=>Ur.set(e,t),Kr=["td","th"],Yr=["thead","tbody","tfoot"],Qr=["h1","h2","h3","h4","h5","h6","p","div","address","pre","form","blockquote","center","dir","fieldset","header","footer","article","section","hgroup","aside","nav","figure"],Jr=["li","dd","dt"],Zr=["ul","ol","dl"],Xr=["pre","script","textarea","style"],ei=e=>{let t;return o=>(t=t||he(e,$),Se(t,So(o)))},ti=e=>"table"===So(e),oi=e=>Mo(e)&&"br"===So(e),ni=ei(Qr),ai=ei(Zr),ri=ei(Jr),ii=ei(Yr),li=ei(Kr),si=ei(Xr),ci=e=>{const t=[];let o=e.dom;while(o)t.push(fn.fromDom(o)),o=o.lastChild;return t},di=e=>{const t=rr(e,"br"),o=oe(ci(e).slice(-1),oi);t.length===o.length&&X(o,Ta)},ui=()=>{const e=fn.fromTag("br");return Uo(e,"data-mce-bogus","1"),e},mi=e=>{Ea(e),Va(e,ui())},hi=(e,t)=>{Pn(e).each(o=>{Sn(o).each(n=>{t.isBlock(So(e))&&oi(o)&&t.isBlock(So(n))&&Ta(o)})})},pi=Lr,bi=Rr,gi=qr,fi=e=>e.insertContent(pi,{preserve_zwsp:!0}),vi=dr,wi=Or,ki=e=>(wi(e)&&(e=e.parentNode),vi(e)&&e.hasAttribute("data-mce-caret")),Ci=e=>wi(e)&&bi(e.data),yi=e=>ki(e)||Ci(e),Oi=e=>e.firstChild!==e.lastChild||!Nr(e.firstChild),ji=(e,t)=>{var o;const n=null!==(o=e.ownerDocument)&&void 0!==o?o:document,a=n.createTextNode(pi),r=e.parentNode;if(t){const t=e.previousSibling;if(wi(t)){if(yi(t))return t;if(Ni(t))return t.splitText(t.data.length-1)}null===r||void 0===r||r.insertBefore(a,e)}else{const t=e.nextSibling;if(wi(t)){if(yi(t))return t;if(Ai(t))return t.splitText(1),t}e.nextSibling?null===r||void 0===r||r.insertBefore(a,e.nextSibling):null===r||void 0===r||r.appendChild(a)}return a},xi=e=>{const t=e.container();return!!Or(t)&&(t.data.charAt(e.offset())===pi||e.isAtStart()&&Ci(t.previousSibling))},_i=e=>{const t=e.container();return!!Or(t)&&(t.data.charAt(e.offset()-1)===pi||e.isAtEnd()&&Ci(t.nextSibling))},Vi=(e,t,o)=>{var n;const a=null!==(n=t.ownerDocument)&&void 0!==n?n:document,r=a.createElement(e);r.setAttribute("data-mce-caret",o?"before":"after"),r.setAttribute("data-mce-bogus","all"),r.appendChild(ui().dom);const i=t.parentNode;return o?null===i||void 0===i||i.insertBefore(r,t):t.nextSibling?null===i||void 0===i||i.insertBefore(r,t.nextSibling):null===i||void 0===i||i.appendChild(r),r},Ai=e=>wi(e)&&e.data[0]===pi,Ni=e=>wi(e)&&e.data[e.data.length-1]===pi,Di=e=>{var t;const o=e.getElementsByTagName("br"),n=o[o.length-1];vr(n)&&(null===(t=n.parentNode)||void 0===t||t.removeChild(n))},Ei=e=>e&&e.hasAttribute("data-mce-caret")?(Di(e),e.removeAttribute("data-mce-caret"),e.removeAttribute("data-mce-bogus"),e.removeAttribute("style"),e.removeAttribute("data-mce-style"),e.removeAttribute("_moz_abspos"),e):null,Ti=e=>ki(e.startContainer),Si=Er,Bi=Tr,Ii=Nr,zi=Or,Fi=pr(["script","style","textarea"]),Mi=pr(["img","input","textarea","hr","iframe","video","audio","object","embed"]),Li=pr(["table"]),Pi=yi,Ri=e=>!Pi(e)&&(zi(e)?!Fi(e.parentNode):Mi(e)||Ii(e)||Li(e)||$i(e)),qi=e=>dr(e)&&"true"===e.getAttribute("unselectable"),$i=e=>!qi(e)&&Bi(e),Ui=(e,t)=>{for(let o=e.parentNode;o&&o!==t;o=o.parentNode){if($i(o))return!1;if(Si(o))return!0}return!0},Hi=e=>!!$i(e)&&!ae(ve(e.getElementsByTagName("*")),(e,t)=>e||Si(t),!1),Wi=e=>Mi(e)||Hi(e),Gi=(e,t)=>Ri(e)&&Ui(e,t),Ki=/^[ \t\r\n]*$/,Yi=e=>Ki.test(e),Qi=e=>{for(const t of e)if(!Rr(t))return!1;return!0},Ji=e=>-1!==" \f\t\v".indexOf(e),Zi=e=>"\n"===e||"\r"===e,Xi=(e,t)=>t<e.length&&t>=0&&Zi(e[t]),el=(e,t=4,o=!0,n=!0)=>{const a=ft(" ",t),r=e.replace(/\t/g,a),i=ae(r,(e,t)=>Ji(t)||t===Pr?e.pcIsSpace||""===e.str&&o||e.str.length===r.length-1&&n||Xi(r,e.str.length+1)?{pcIsSpace:!1,str:e.str+Pr}:{pcIsSpace:!0,str:e.str+" "}:{pcIsSpace:Zi(t),str:e.str+t},{pcIsSpace:!1,str:""});return i.str},tl=(e,t)=>{const o=fn.fromDom(t),n=fn.fromDom(e);return ir(n,"pre,code",F(On,o))},ol=(e,t)=>Or(e)&&Yi(e.data)&&!tl(e,t),nl=e=>dr(e)&&"A"===e.nodeName&&!e.hasAttribute("href")&&(e.hasAttribute("name")||e.hasAttribute("id")),al=(e,t)=>Ri(e)&&!ol(e,t)||nl(e)||rl(e),rl=gr("data-mce-bookmark"),il=gr("data-mce-bogus"),ll=fr("data-mce-bogus","all"),sl=e=>Dn(fn.fromDom(e)).exists(e=>!ua(e)),cl=(e,t)=>{let o=0;if(al(e,e))return!1;{let n=e.firstChild;if(!n)return!0;const a=new lr(n,e);do{if(t){if(ll(n)){n=a.next(!0);continue}if(il(n)){n=a.next();continue}}if(Er(n)&&sl(n))return!1;if(Nr(n))o++,n=a.next();else{if(al(n,e))return!1;n=a.next()}}while(n);return o<=1}},dl=(e,t=!0)=>cl(e.dom,t),ul=e=>"svg"===e.toLowerCase(),ml=e=>ul(e.nodeName),hl=e=>"svg"===(null===e||void 0===e?void 0:e.nodeName)?"svg":"html",pl=["svg"],bl=()=>{let e=[];const t=()=>e[e.length-1],o=o=>{ml(o)&&e.push(o);let n=t();return n&&!n.contains(o)&&(e.pop(),n=t()),hl(n)},n=()=>hl(t()),a=()=>{e=[]};return{track:o,current:n,reset:a}},gl="data-mce-block",fl=e=>oe(Ce(e),e=>!/[A-Z]/.test(e)),vl=e=>Z(fl(e),e=>e+":"+Z(pl,t=>`not(${t} ${e})`).join(":")).join(","),wl=(e,t)=>V(t.querySelector(e))?(t.setAttribute(gl,"true"),"inline-boundary"===t.getAttribute("data-mce-selected")&&t.removeAttribute("data-mce-selected"),!0):(t.removeAttribute(gl),!1),kl=(e,t)=>{const o=vl(e.getTransparentElements()),n=vl(e.getBlockElements());return oe(t.querySelectorAll(o),e=>wl(n,e))},Cl=(e,t)=>{var o;const n=t?"lastChild":"firstChild";for(let a=e[n];a;a=a[n])if(dl(fn.fromDom(a)))return void(null===(o=a.parentNode)||void 0===o||o.removeChild(a))},yl=(e,t)=>{const o=document.createRange(),n=e.parentNode;if(n){o.setStartBefore(e),o.setEndBefore(t);const a=o.extractContents();Cl(a,!0),o.setStartAfter(t),o.setEndAfter(e);const r=o.extractContents();Cl(r,!1),dl(fn.fromDom(a))||n.insertBefore(a,e),dl(fn.fromDom(t))||n.insertBefore(t,e),dl(fn.fromDom(r))||n.insertBefore(r,e),n.removeChild(e)}},Ol=(e,t,o)=>{const n=e.getBlockElements(),a=fn.fromDom(t),r=e=>So(e)in n,i=e=>On(e,a);X(Ia(o),t=>{oa(t,r,i).each(o=>{const n=nr(t,t=>r(t)&&!e.isValidChild(So(o),So(t)));if(n.length>0){const t=Dn(o);X(n,e=>{oa(e,r,i).each(t=>{yl(t.dom,e.dom)})}),t.each(t=>kl(e,t.dom))}})})},jl=(e,t,o)=>{X([...o,...El(e,t)?[t]:[]],t=>X(rr(fn.fromDom(t),t.nodeName.toLowerCase()),t=>{Tl(e,t.dom)&&Sa(t)}))},xl=(e,t)=>{const o=kl(e,t);Ol(e,t,o),jl(e,t,o)},_l=(e,t)=>{if(Dl(e,t)){const o=vl(e.getBlockElements());wl(o,t)}},Vl=(e,t,o)=>{const n=e=>On(e,fn.fromDom(t)),a=En(fn.fromDom(o),n);be(a,a.length-2).filter(Mo).fold(()=>xl(e,t),t=>xl(e,t.dom))},Al=e=>e.hasAttribute(gl),Nl=(e,t)=>Se(e.getTransparentElements(),t),Dl=(e,t)=>dr(t)&&Nl(e,t.nodeName),El=(e,t)=>Dl(e,t)&&Al(t),Tl=(e,t)=>Dl(e,t)&&!Al(t),Sl=(e,t)=>1===t.type&&Nl(e,t.name)&&w(t.attr(gl)),Bl=Kt().browser,Il=e=>ie(e,Mo),zl=e=>Bl.isFirefox()&&"table"===So(e)?Il(Fn(e)).filter(e=>"caption"===So(e)).bind(e=>Il(zn(e)).map(t=>{const o=t.dom.offsetTop,n=e.dom.offsetTop,a=e.dom.offsetHeight;return o<=n?-a:0})).getOr(0):0,Fl=(e,t)=>e.children&&Q(e.children,t),Ml=(e,t,o)=>{let n=0,a=0;const r=e.ownerDocument;if(o=o||e,t){if(o===e&&t.getBoundingClientRect&&"static"===va(fn.fromDom(e),"position")){const o=t.getBoundingClientRect();return n=o.left+(r.documentElement.scrollLeft||e.scrollLeft)-r.documentElement.clientLeft,a=o.top+(r.documentElement.scrollTop||e.scrollTop)-r.documentElement.clientTop,{x:n,y:a}}let i=t;while(i&&i!==o&&i.nodeType&&!Fl(i,o)){const e=i;n+=e.offsetLeft||0,a+=e.offsetTop||0,i=e.offsetParent}i=t.parentNode;while(i&&i!==o&&i.nodeType&&!Fl(i,o))n-=i.scrollLeft||0,a-=i.scrollTop||0,i=i.parentNode;a+=zl(fn.fromDom(t))}return{x:n,y:a}},Ll=(e,t={})=>{let o=0;const n={},a=fn.fromDom(e),r=_n(a),i=e=>{t.referrerPolicy=e},l=e=>{t.contentCssCors=e},s=e=>{Va(Kn(a),e)},c=e=>{const t=Kn(a);sa(t,"#"+e).each(Ta)},d=e=>Te(n,e).getOrThunk(()=>({id:"mce-u"+o++,passed:[],failed:[],count:0})),u=e=>new Promise((o,a)=>{let i;const l=ho._addCacheSuffix(e),c=d(l);n[l]=c,c.count++;const u=(e,t)=>{X(e,R),c.status=t,c.passed=[],c.failed=[],i&&(i.onload=null,i.onerror=null,i=null)},m=()=>u(c.passed,2),h=()=>u(c.failed,3);if(o&&c.passed.push(o),a&&c.failed.push(a),1===c.status)return;if(2===c.status)return void m();if(3===c.status)return void h();c.status=1;const p=fn.fromTag("link",r.dom);Ho(p,{rel:"stylesheet",type:"text/css",id:c.id}),t.contentCssCors&&Uo(p,"crossOrigin","anonymous"),t.referrerPolicy&&Uo(p,"referrerpolicy",t.referrerPolicy),i=p.dom,i.onload=m,i.onerror=h,s(p),Uo(p,"href",l)}),m=(e,t)=>{const o=d(e);n[e]=o,o.count++;const a=fn.fromTag("style",r.dom);Ho(a,{rel:"stylesheet",type:"text/css",id:o.id}),a.dom.innerHTML=t,s(a)},h=e=>{const t=Promise.allSettled(Z(e,e=>u(e).then(B(e))));return t.then(e=>{const t=te(e,e=>"fulfilled"===e.status);return t.fail.length>0?Promise.reject(Z(t.fail,e=>e.reason)):Z(t.pass,e=>e.value)})},p=e=>{const t=ho._addCacheSuffix(e);Te(n,t).each(e=>{const o=--e.count;0===o&&(delete n[t],c(e.id))})},b=e=>{Te(n,e).each(t=>{const o=--t.count;0===o&&(delete n[e],c(t.id))})},g=e=>{X(e,e=>{p(e)})};return{load:u,loadRawCss:m,loadAll:h,unload:p,unloadRawCss:b,unloadAll:g,_setReferrerPolicy:i,_setContentCssCors:l}},Pl=()=>{const e=new WeakMap,t=(t,o)=>{const n=Gn(t),a=n.dom;return U.from(e.get(a)).getOrThunk(()=>{const t=Ll(a,o);return e.set(a,t),t})};return{forElement:t}},Rl=Pl(),ql=e=>"span"===e.nodeName.toLowerCase(),$l=(e,t,o)=>V(e)&&(al(e,t)||o.isInline(e.nodeName.toLowerCase())),Ul=(e,t,o)=>{const n=new lr(e,t).prev(!1),a=new lr(e,t).next(!1),r=x(n)||$l(n,t,o),i=x(a)||$l(a,t,o);return r&&i},Hl=e=>ql(e)&&"bookmark"===e.getAttribute("data-mce-type"),Wl=(e,t,o)=>Or(e)&&e.data.length>0&&Ul(e,t,o),Gl=e=>!!dr(e)&&e.childNodes.length>0,Kl=e=>Ar(e)||Vr(e),Yl=(e,t,o,n)=>{var a;const r=n||t;if(dr(t)&&Hl(t))return t;const i=t.childNodes;for(let l=i.length-1;l>=0;l--)Yl(e,i[l],o,r);if(dr(t)){const e=t.childNodes;1===e.length&&Hl(e[0])&&(null===(a=t.parentNode)||void 0===a||a.insertBefore(e[0],t))}return Kl(t)||al(t,r)||Gl(t)||Wl(t,r,o)||e.remove(t),t},Ql=ho.makeMap,Jl=/[&<>\"\u0060\u007E-\uD7FF\uE000-\uFFEF]|[\uD800-\uDBFF][\uDC00-\uDFFF]/g,Zl=/[<>&\u007E-\uD7FF\uE000-\uFFEF]|[\uD800-\uDBFF][\uDC00-\uDFFF]/g,Xl=/[<>&\"\']/g,es=/&#([a-z0-9]+);?|&([a-z0-9]+);/gi,ts={128:"€",130:"",131:"ƒ",132:"„",133:"…",134:"†",135:"‡",136:"ˆ",137:"‰",138:"Š",139:"",140:"Œ",142:"Ž",145:"",146:"",147:"“",148:"”",149:"•",150:"",151:"—",152:"˜",153:"™",154:"š",155:"",156:"œ",158:"ž",159:"Ÿ"},os={'"':"&quot;","'":"&#39;","<":"&lt;",">":"&gt;","&":"&amp;","`":"&#96;"},ns={"&lt;":"<","&gt;":">","&amp;":"&","&quot;":'"',"&apos;":"'"},as=e=>{const t=fn.fromTag("div").dom;return t.innerHTML=e,t.textContent||t.innerText||e},rs=(e,t)=>{const o={};if(e){const n=e.split(",");t=t||10;for(let e=0;e<n.length;e+=2){const a=String.fromCharCode(parseInt(n[e],t));if(!os[a]){const t="&"+n[e+1]+";";o[a]=t,o[t]=a}}return o}},is=rs("50,nbsp,51,iexcl,52,cent,53,pound,54,curren,55,yen,56,brvbar,57,sect,58,uml,59,copy,5a,ordf,5b,laquo,5c,not,5d,shy,5e,reg,5f,macr,5g,deg,5h,plusmn,5i,sup2,5j,sup3,5k,acute,5l,micro,5m,para,5n,middot,5o,cedil,5p,sup1,5q,ordm,5r,raquo,5s,frac14,5t,frac12,5u,frac34,5v,iquest,60,Agrave,61,Aacute,62,Acirc,63,Atilde,64,Auml,65,Aring,66,AElig,67,Ccedil,68,Egrave,69,Eacute,6a,Ecirc,6b,Euml,6c,Igrave,6d,Iacute,6e,Icirc,6f,Iuml,6g,ETH,6h,Ntilde,6i,Ograve,6j,Oacute,6k,Ocirc,6l,Otilde,6m,Ouml,6n,times,6o,Oslash,6p,Ugrave,6q,Uacute,6r,Ucirc,6s,Uuml,6t,Yacute,6u,THORN,6v,szlig,70,agrave,71,aacute,72,acirc,73,atilde,74,auml,75,aring,76,aelig,77,ccedil,78,egrave,79,eacute,7a,ecirc,7b,euml,7c,igrave,7d,iacute,7e,icirc,7f,iuml,7g,eth,7h,ntilde,7i,ograve,7j,oacute,7k,ocirc,7l,otilde,7m,ouml,7n,divide,7o,oslash,7p,ugrave,7q,uacute,7r,ucirc,7s,uuml,7t,yacute,7u,thorn,7v,yuml,ci,fnof,sh,Alpha,si,Beta,sj,Gamma,sk,Delta,sl,Epsilon,sm,Zeta,sn,Eta,so,Theta,sp,Iota,sq,Kappa,sr,Lambda,ss,Mu,st,Nu,su,Xi,sv,Omicron,t0,Pi,t1,Rho,t3,Sigma,t4,Tau,t5,Upsilon,t6,Phi,t7,Chi,t8,Psi,t9,Omega,th,alpha,ti,beta,tj,gamma,tk,delta,tl,epsilon,tm,zeta,tn,eta,to,theta,tp,iota,tq,kappa,tr,lambda,ts,mu,tt,nu,tu,xi,tv,omicron,u0,pi,u1,rho,u2,sigmaf,u3,sigma,u4,tau,u5,upsilon,u6,phi,u7,chi,u8,psi,u9,omega,uh,thetasym,ui,upsih,um,piv,812,bull,816,hellip,81i,prime,81j,Prime,81u,oline,824,frasl,88o,weierp,88h,image,88s,real,892,trade,89l,alefsym,8cg,larr,8ch,uarr,8ci,rarr,8cj,darr,8ck,harr,8dl,crarr,8eg,lArr,8eh,uArr,8ei,rArr,8ej,dArr,8ek,hArr,8g0,forall,8g2,part,8g3,exist,8g5,empty,8g7,nabla,8g8,isin,8g9,notin,8gb,ni,8gf,prod,8gh,sum,8gi,minus,8gn,lowast,8gq,radic,8gt,prop,8gu,infin,8h0,ang,8h7,and,8h8,or,8h9,cap,8ha,cup,8hb,int,8hk,there4,8hs,sim,8i5,cong,8i8,asymp,8j0,ne,8j1,equiv,8j4,le,8j5,ge,8k2,sub,8k3,sup,8k4,nsub,8k6,sube,8k7,supe,8kl,oplus,8kn,otimes,8l5,perp,8m5,sdot,8o8,lceil,8o9,rceil,8oa,lfloor,8ob,rfloor,8p9,lang,8pa,rang,9ea,loz,9j0,spades,9j3,clubs,9j5,hearts,9j6,diams,ai,OElig,aj,oelig,b0,Scaron,b1,scaron,bo,Yuml,m6,circ,ms,tilde,802,ensp,803,emsp,809,thinsp,80c,zwnj,80d,zwj,80e,lrm,80f,rlm,80j,ndash,80k,mdash,80o,lsquo,80p,rsquo,80q,sbquo,80s,ldquo,80t,rdquo,80u,bdquo,810,dagger,811,Dagger,81g,permil,81p,lsaquo,81q,rsaquo,85c,euro",32),ls=(e,t)=>e.replace(t?Jl:Zl,e=>os[e]||e),ss=e=>(""+e).replace(Xl,e=>os[e]||e),cs=(e,t)=>e.replace(t?Jl:Zl,e=>e.length>1?"&#"+(1024*(e.charCodeAt(0)-55296)+(e.charCodeAt(1)-56320)+65536)+";":os[e]||"&#"+e.charCodeAt(0)+";"),ds=(e,t,o)=>{const n=o||is;return e.replace(t?Jl:Zl,e=>os[e]||n[e]||e)},us=(e,t)=>{const o=rs(t)||is,n=(e,t)=>e.replace(t?Jl:Zl,e=>void 0!==os[e]?os[e]:void 0!==o[e]?o[e]:e.length>1?"&#"+(1024*(e.charCodeAt(0)-55296)+(e.charCodeAt(1)-56320)+65536)+";":"&#"+e.charCodeAt(0)+";"),a=(e,t)=>ds(e,t,o),r=Ql(e.replace(/\+/g,","));return r.named&&r.numeric?n:r.named?t?a:ds:r.numeric?cs:ls},ms=e=>e.replace(es,(e,t)=>t?(t="x"===t.charAt(0).toLowerCase()?parseInt(t.substr(1),16):parseInt(t,10),t>65535?(t-=65536,String.fromCharCode(55296+(t>>10),56320+(1023&t))):ts[t]||String.fromCharCode(t)):ns[e]||is[e]||as(e)),hs={encodeRaw:ls,encodeAllRaw:ss,encodeNumeric:cs,encodeNamed:ds,getEncodeFunc:us,decode:ms},ps=(e,t)=>(e=ho.trim(e),e?e.split(t||" "):[]),bs=e=>new RegExp("^"+e.replace(/([?+*])/g,".$1")+"$"),gs=e=>{const t=/^(~)?(.+)$/;return ce(ps(e,","),e=>{const o=t.exec(e);if(o){const e="~"===o[1],t=e?"span":"div",n=o[2];return[{inline:e,cloneName:t,name:n}]}return[]})},fs=e=>{let t,o,n;if(t="id accesskey class dir lang style tabindex title role",o="address blockquote div dl fieldset form h1 h2 h3 h4 h5 h6 hr menu ol p pre table ul",n="a abbr b bdo br button cite code del dfn em embed i iframe img input ins kbd label map noscript object q s samp script select small span strong sub sup textarea u var #text #comment","html4"!==e){const e="a ins del canvas map";t+=" contenteditable contextmenu draggable dropzone hidden spellcheck translate",o+=" article aside details dialog figure main header footer hgroup section nav "+e,n+=" audio canvas command datalist mark meter output picture progress time wbr video ruby bdi keygen svg"}if("html5-strict"!==e){t+=" xml:lang";const e="acronym applet basefont big font strike tt";n=[n,e].join(" ");const a="center dir isindex noframes";o=[o,a].join(" ")}const a=[o,n].join(" ");return{globalAttributes:t,blockContent:o,phrasingContent:n,flowContent:a}},vs=e=>{const{globalAttributes:t,phrasingContent:o,flowContent:n}=fs(e),a={},r=(e,t,o)=>{a[e]={attributes:he(t,B({})),attributesOrder:t,children:he(o,B({}))}},i=(e,o="",n="")=>{const a=ps(n),i=ps(e);let l=i.length;const s=ps([t,o].join(" "));while(l--)r(i[l],s.slice(),a)},l=(e,t)=>{const o=ps(e),n=ps(t);let r=o.length;while(r--){const e=a[o[r]];for(let t=0,o=n.length;t<o;t++)e.attributes[n[t]]={},e.attributesOrder.push(n[t])}};if("html5-strict"!==e){const e="acronym applet basefont big font strike tt";X(ps(e),e=>{i(e,"",o)});const t="center dir isindex noframes";X(ps(t),e=>{i(e,"",n)})}return i("html","manifest","head body"),i("head","","base command link meta noscript script style title"),i("title hr noscript br"),i("base","href target"),i("link","href rel media hreflang type sizes hreflang"),i("meta","name http-equiv content charset"),i("style","media type scoped"),i("script","src async defer type charset"),i("body","onafterprint onbeforeprint onbeforeunload onblur onerror onfocus onhashchange onload onmessage onoffline ononline onpagehide onpageshow onpopstate onresize onscroll onstorage onunload",n),i("dd div","",n),i("address dt caption","","html4"===e?o:n),i("h1 h2 h3 h4 h5 h6 pre p abbr code var samp kbd sub sup i b u bdo span legend em strong small s cite dfn","",o),i("blockquote","cite",n),i("ol","reversed start type","li"),i("ul","","li"),i("li","value",n),i("dl","","dt dd"),i("a","href target rel media hreflang type","html4"===e?o:n),i("q","cite",o),i("ins del","cite datetime",n),i("img","src sizes srcset alt usemap ismap width height"),i("iframe","src name width height",n),i("embed","src type width height"),i("object","data type typemustmatch name usemap form width height",[n,"param"].join(" ")),i("param","name value"),i("map","name",[n,"area"].join(" ")),i("area","alt coords shape href target rel media hreflang type"),i("table","border","caption colgroup thead tfoot tbody tr"+("html4"===e?" col":"")),i("colgroup","span","col"),i("col","span"),i("tbody thead tfoot","","tr"),i("tr","","td th"),i("td","colspan rowspan headers",n),i("th","colspan rowspan headers scope abbr",n),i("form","accept-charset action autocomplete enctype method name novalidate target",n),i("fieldset","disabled form name",[n,"legend"].join(" ")),i("label","form for",o),i("input","accept alt autocomplete checked dirname disabled form formaction formenctype formmethod formnovalidate formtarget height list max maxlength min multiple name pattern readonly required size src step type value width"),i("button","disabled form formaction formenctype formmethod formnovalidate formtarget name type value","html4"===e?n:o),i("select","disabled form multiple name required size","option optgroup"),i("optgroup","disabled label","option"),i("option","disabled label selected value"),i("textarea","cols dirname disabled form maxlength name readonly required rows wrap"),i("menu","type label",[n,"li"].join(" ")),i("noscript","",n),"html4"!==e&&(i("wbr"),i("ruby","",[o,"rt rp"].join(" ")),i("figcaption","",n),i("mark rt rp bdi","",o),i("summary","",[o,"h1 h2 h3 h4 h5 h6"].join(" ")),i("canvas","width height",n),i("video","src crossorigin poster preload autoplay mediagroup loop muted controls width height buffered",[n,"track source"].join(" ")),i("audio","src crossorigin preload autoplay mediagroup loop muted controls buffered volume",[n,"track source"].join(" ")),i("picture","","img source"),i("source","src srcset type media sizes"),i("track","kind src srclang label default"),i("datalist","",[o,"option"].join(" ")),i("article section nav aside main header footer","",n),i("hgroup","","h1 h2 h3 h4 h5 h6"),i("figure","",[n,"figcaption"].join(" ")),i("time","datetime",o),i("dialog","open",n),i("command","type label icon disabled checked radiogroup command"),i("output","for form name",o),i("progress","value max",o),i("meter","value min max low high optimum",o),i("details","open",[n,"summary"].join(" ")),i("keygen","autofocus challenge disabled form keytype name"),r("svg","id tabindex lang xml:space class style x y width height viewBox preserveAspectRatio zoomAndPan transform".split(" "),[])),"html5-strict"!==e&&(l("script","language xml:space"),l("style","xml:space"),l("object","declare classid code codebase codetype archive standby align border hspace vspace"),l("embed","align name hspace vspace"),l("param","valuetype type"),l("a","charset name rev shape coords"),l("br","clear"),l("applet","codebase archive code object alt name width height align hspace vspace"),l("img","name longdesc align border hspace vspace"),l("iframe","longdesc frameborder marginwidth marginheight scrolling align"),l("font basefont","size color face"),l("input","usemap align"),l("select"),l("textarea"),l("h1 h2 h3 h4 h5 h6 div p legend caption","align"),l("ul","type compact"),l("li","type"),l("ol dl menu dir","compact"),l("pre","width xml:space"),l("hr","align noshade size width"),l("isindex","prompt"),l("table","summary width frame rules cellspacing cellpadding align bgcolor"),l("col","width align char charoff valign"),l("colgroup","width align char charoff valign"),l("thead","align char charoff valign"),l("tr","align char charoff valign bgcolor"),l("th","axis align char charoff valign nowrap bgcolor width height"),l("form","accept"),l("td","abbr axis scope align char charoff valign nowrap bgcolor width height"),l("tfoot","align char charoff valign"),l("tbody","align char charoff valign"),l("area","nohref"),l("body","background bgcolor text link vlink alink")),"html4"!==e&&(l("input button select textarea","autofocus"),l("input textarea","placeholder"),l("a","download"),l("link script img","crossorigin"),l("img","loading"),l("iframe","sandbox seamless allow allowfullscreen loading")),"html4"!==e&&X([a.video,a.audio],e=>{delete e.children.audio,delete e.children.video}),X(ps("a form meter progress dfn"),e=>{a[e]&&delete a[e].children[e]}),delete a.caption.children.table,delete a.script,a},ws=e=>"-"===e?"remove":"add",ks=e=>{const t=/^([+\-]?)([A-Za-z0-9_\-.\u00b7\u00c0-\u00d6\u00d8-\u00f6\u00f8-\u037d\u037f-\u1fff\u200c-\u200d\u203f-\u2040\u2070-\u218f\u2c00-\u2fef\u3001-\ud7ff\uf900-\ufdcf\ufdf0-\ufffd]+)\[([^\]]+)]$/;return ce(ps(e,","),e=>{const o=t.exec(e);if(o){const e=o[1],t=e?ws(e):"replace",n=o[2],a=ps(o[3],"|");return[{operation:t,name:n,validChildren:a}]}return[]})},Cs=(e,t)=>{const o=/^([!\-])?(\w+[\\:]:\w+|[^=~<]+)?(?:([=~<])(.*))?$/,n=/[*?+]/,{attributes:a,attributesOrder:r}=t;return X(ps(e,"|"),e=>{const i=o.exec(e);if(i){const e={},o=i[1],l=i[2].replace(/[\\:]:/g,":"),s=i[3],c=i[4];if("!"===o&&(t.attributesRequired=t.attributesRequired||[],t.attributesRequired.push(l),e.required=!0),"-"===o)return delete a[l],void r.splice(ho.inArray(r,l),1);if(s&&("="===s?(t.attributesDefault=t.attributesDefault||[],t.attributesDefault.push({name:l,value:c}),e.defaultValue=c):"~"===s?(t.attributesForced=t.attributesForced||[],t.attributesForced.push({name:l,value:c}),e.forcedValue=c):"<"===s&&(e.validValues=ho.makeMap(c,"?"))),n.test(l)){const o=e;t.attributePatterns=t.attributePatterns||[],o.pattern=bs(l),t.attributePatterns.push(o)}else a[l]||r.push(l),a[l]=e}})},ys=(e,t)=>{Oe(e.attributes,(e,o)=>{t.attributes[o]=e}),t.attributesOrder.push(...e.attributesOrder)},Os=(e,t)=>{const o=/^([#+\-])?([^\[!\/]+)(?:\/([^\[!]+))?(?:(!?)\[([^\]]+)])?$/;return ce(ps(t,","),t=>{const n=o.exec(t);if(n){const t=n[1],o=n[2],a=n[3],r=n[4],i=n[5],l={attributes:{},attributesOrder:[]};if(e.each(e=>ys(e,l)),"#"===t?l.paddEmpty=!0:"-"===t&&(l.removeEmpty=!0),"!"===r&&(l.removeEmptyAttrs=!0),i&&Cs(i,l),a&&(l.outputName=o),"@"===o){if(!e.isNone())return[];e=U.some(l)}return[a?{name:o,element:l,aliasName:a}:{name:o,element:l}]}return[]})},js={},xs=ho.makeMap,_s=ho.each,Vs=ho.extend,As=ho.explode,Ns=(e,t={})=>{const o=xs(e," ",xs(e.toUpperCase()," "));return Vs(o,t)},Ds=e=>Ns("td th li dt dd figcaption caption details summary",e.getTextBlockElements()),Es=(e,t)=>{if(e){const o={};return w(e)&&(e={"*":e}),_s(e,(e,n)=>{o[n]=o[n.toUpperCase()]="map"===t?xs(e,/[, ]/):As(e,/[, ]/)}),o}},Ts=(e={})=>{var t;const o={},n={};let a=[];const r={},i={},l=(t,o,n)=>{const a=e[t];if(a)return xs(a,/[, ]/,xs(a.toUpperCase(),/[, ]/));{let e=js[t];return e||(e=Ns(o,n),js[t]=e),e}},s=null!==(t=e.schema)&&void 0!==t?t:"html5",c=vs(s);!1===e.verify_html&&(e.valid_elements="*[*]");const d=Es(e.valid_styles),u=Es(e.invalid_styles,"map"),m=Es(e.valid_classes,"map"),h=l("whitespace_elements","pre script noscript style textarea video audio iframe object code"),p=l("self_closing_elements","colgroup dd dt li option p td tfoot th thead tr"),b=l("void_elements","area base basefont br col frame hr img input isindex link meta param embed source wbr track"),g=l("boolean_attributes","checked compact declare defer disabled ismap multiple nohref noresize noshade nowrap readonly selected autoplay loop controls allowfullscreen"),f="td th iframe video audio object script code",v=l("non_empty_elements",f+" pre svg",b),w=l("move_caret_before_on_enter_elements",f+" table",b),k="h1 h2 h3 h4 h5 h6",C=l("text_block_elements",k+" p div address pre form blockquote center dir fieldset header footer article section hgroup aside main nav figure"),y=l("block_elements","hr table tbody thead tfoot th tr td li ol ul caption dl dt dd noscript menu isindex option datalist select optgroup figcaption details summary html body multicol listing",C),O=l("text_inline_elements","span strong b em i font s strike u var cite dfn code mark q sup sub samp"),j=l("transparent_elements","a ins del canvas map"),x=l("wrap_block_elements","pre "+k);_s("script noscript iframe noframes noembed title style textarea xmp plaintext".split(" "),e=>{i[e]=new RegExp("</"+e+"[^>]*>","gi")});const _=e=>{const t=U.from(o["@"]),n=/[*?+]/;X(Os(t,null!==e&&void 0!==e?e:""),({name:e,element:t,aliasName:r})=>{if(r&&(o[r]=t),n.test(e)){const o=t;o.pattern=bs(e),a.push(o)}else o[e]=t})},V=e=>{a=[],X(Ce(o),e=>{delete o[e]}),_(e)},A=e=>{delete js.text_block_elements,delete js.block_elements,X(gs(null!==e&&void 0!==e?e:""),({inline:e,name:t,cloneName:a})=>{if(n[t]=n[a],r[t]=a,v[t.toUpperCase()]={},v[t]={},e||(y[t.toUpperCase()]={},y[t]={}),!o[t]){let e=o[a];e=Vs({},e),delete e.removeEmptyAttrs,delete e.removeEmpty,o[t]=e}Oe(n,(e,o)=>{e[a]&&(n[o]=e=Vs({},n[o]),e[t]=e[a])})})},N=e=>{X(ks(null!==e&&void 0!==e?e:""),({operation:e,name:t,validChildren:o})=>{const a="replace"===e?{"#comment":{}}:n[t];X(o,t=>{"remove"===e?delete a[t]:a[t]={}}),n[t]=a})},D=e=>{const t=o[e];if(t)return t;let n=a.length;while(n--){const t=a[n];if(t.pattern.test(e))return t}};e.valid_elements?(V(e.valid_elements),_s(c,(e,t)=>{n[t]=e.children})):(_s(c,(e,t)=>{o[t]={attributes:e.attributes,attributesOrder:e.attributesOrder},n[t]=e.children}),_s(ps("strong/b em/i"),e=>{const t=ps(e,"/");o[t[1]].outputName=t[0]}),_s(O,(t,n)=>{o[n]&&(e.padd_empty_block_inline_children&&(o[n].paddInEmptyBlock=!0),o[n].removeEmpty=!0)}),_s(ps("ol ul blockquote a table tbody"),e=>{o[e]&&(o[e].removeEmpty=!0)}),_s(ps("p h1 h2 h3 h4 h5 h6 th td pre div address caption li summary"),e=>{o[e]&&(o[e].paddEmpty=!0)}),_s(ps("span"),e=>{o[e].removeEmptyAttrs=!0})),delete o.svg,A(e.custom_elements),N(e.valid_children),_(e.extended_valid_elements),N("+ol[ul|ol],+ul[ul|ol]"),_s({dd:"dl",dt:"dl",li:"ul ol",td:"tr",th:"tr",tr:"tbody thead tfoot",tbody:"table",thead:"table",tfoot:"table",legend:"fieldset",area:"map",param:"video audio object"},(e,t)=>{o[t]&&(o[t].parentsRequired=ps(e))}),e.invalid_elements&&_s(As(e.invalid_elements),e=>{o[e]&&delete o[e]}),D("span")||_("span[!data-mce-type|*]");const E=B(d),T=B(u),S=B(m),I=B(g),z=B(y),F=B(C),M=B(O),L=B(Object.seal(b)),P=B(p),R=B(v),q=B(w),$=B(h),H=B(j),W=B(x),G=B(Object.seal(i)),K=(e,t)=>{const o=n[e.toLowerCase()];return!(!o||!o[t.toLowerCase()])},Y=(e,t)=>{const o=D(e);if(o){if(!t)return!0;{if(o.attributes[t])return!0;const e=o.attributePatterns;if(e){let o=e.length;while(o--)if(e[o].pattern.test(t))return!0}}}return!1},Q=e=>Se(z(),e),J=e=>!ct(e,"#")&&Y(e)&&!Q(e),Z=e=>Se(W(),e)||J(e),ee=B(r);return{type:s,children:n,elements:o,getValidStyles:E,getValidClasses:S,getBlockElements:z,getInvalidStyles:T,getVoidElements:L,getTextBlockElements:F,getTextInlineElements:M,getBoolAttrs:I,getElementRule:D,getSelfClosingElements:P,getNonEmptyElements:R,getMoveCaretBeforeOnEnterElements:q,getWhitespaceElements:$,getTransparentElements:H,getSpecialElements:G,isValidChild:K,isValid:Y,isBlock:Q,isInline:J,isWrapper:Z,getCustomElements:ee,addValidElements:_,setValidElements:V,addCustomElements:A,addValidChildren:N}},Ss=e=>({value:Bs(e)}),Bs=e=>lt(e,"#").toUpperCase(),Is=e=>{const t=e.toString(16);return(1===t.length?"0"+t:t).toUpperCase()},zs=e=>{const t=Is(e.red)+Is(e.green)+Is(e.blue);return Ss(t)},Fs=/^\s*rgb\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*\)\s*$/i,Ms=/^\s*rgba\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d?(?:\.\d+)?)\s*\)\s*$/i,Ls=(e,t,o,n)=>({red:e,green:t,blue:o,alpha:n}),Ps=(e,t,o,n)=>{const a=parseInt(e,10),r=parseInt(t,10),i=parseInt(o,10),l=parseFloat(n);return Ls(a,r,i,l)},Rs=e=>{if("transparent"===e)return U.some(Ls(0,0,0,0));const t=Fs.exec(e);if(null!==t)return U.some(Ps(t[1],t[2],t[3],"1"));const o=Ms.exec(e);return null!==o?U.some(Ps(o[1],o[2],o[3],o[4])):U.none()},qs=e=>`rgba(${e.red},${e.green},${e.blue},${e.alpha})`,$s=e=>Rs(e).map(zs).map(e=>"#"+e.value).getOr(e),Us=(e={},t)=>{const o=/(?:url(?:(?:\(\s*\"([^\"]+)\"\s*\))|(?:\(\s*\'([^\']+)\'\s*\))|(?:\(\s*([^)\s]+)\s*\))))|(?:\'([^\']+)\')|(?:\"([^\"]+)\")/gi,n=/\s*([^:]+):\s*([^;]+);?/g,a=/\s+$/,r={};let i,l;const s=Lr;t&&(i=t.getValidStyles(),l=t.getInvalidStyles());const c=("\\\" \\' \\; \\: ; : "+s).split(" ");for(let u=0;u<c.length;u++)r[c[u]]=s+u,r[s+u]=c[u];const d={parse:t=>{const i={};let l=!1;const c=e.url_converter,u=e.url_converter_scope||d,m=(e,t,o)=>{const n=i[e+"-top"+t];if(!n)return;const a=i[e+"-right"+t];if(!a)return;const r=i[e+"-bottom"+t];if(!r)return;const l=i[e+"-left"+t];if(!l)return;const s=[n,a,r,l];let c=s.length-1;while(c--)if(s[c]!==s[c+1])break;c>-1&&o||(i[e+t]=-1===c?s[0]:s.join(" "),delete i[e+"-top"+t],delete i[e+"-right"+t],delete i[e+"-bottom"+t],delete i[e+"-left"+t])},h=e=>{const t=i[e];if(!t)return;const o=t.indexOf(",")>-1?[t]:t.split(" ");let n=o.length;while(n--)if(o[n]!==o[0])return!1;return i[e]=o[0],!0},p=(e,t,o,n)=>{h(t)&&h(o)&&h(n)&&(i[e]=i[t]+" "+i[o]+" "+i[n],delete i[t],delete i[o],delete i[n])},b=e=>(l=!0,r[e]),g=(e,t)=>(l&&(e=e.replace(/\uFEFF[0-9]/g,e=>r[e])),t||(e=e.replace(/\\([\'\";:])/g,"$1")),e),f=e=>String.fromCharCode(parseInt(e.slice(1),16)),v=e=>e.replace(/\\[0-9a-f]+/gi,f),k=(t,o,n,a,r,i)=>{if(r=r||i,r)return r=g(r),"'"+r.replace(/\'/g,"\\'")+"'";if(o=g(o||n||a||""),!e.allow_script_urls){const t=o.replace(/[\s\r\n]+/g,"");if(/(java|vb)script:/i.test(t))return"";if(!e.allow_svg_data_urls&&/^data:image\/svg/i.test(t))return""}return c&&(o=c.call(u,o,"style")),"url('"+o.replace(/\'/g,"\\'")+"')"};if(t){let r;t=t.replace(/[\u0000-\u001F]/g,""),t=t.replace(/\\[\"\';:\uFEFF]/g,b).replace(/\"[^\"]+\"|\'[^\']+\'/g,e=>e.replace(/[;:]/g,b));while(r=n.exec(t)){n.lastIndex=r.index+r[0].length;let t=r[1].replace(a,"").toLowerCase(),c=r[2].replace(a,"");if(t&&c){if(t=v(t),c=v(c),-1!==t.indexOf(s)||-1!==t.indexOf('"'))continue;if(!e.allow_script_urls&&("behavior"===t||/expression\s*\(|\/\*|\*\//.test(c)))continue;"font-weight"===t&&"700"===c?c="bold":"color"!==t&&"background-color"!==t||(c=c.toLowerCase()),w(e.force_hex_color)&&"off"!==e.force_hex_color&&Rs(c).each(t=>{"always"!==e.force_hex_color&&1!==t.alpha||(c=$s(qs(t)))}),c=c.replace(o,k),i[t]=l?g(c,!0):c}}m("border","",!0),m("border","-width"),m("border","-color"),m("border","-style"),m("padding",""),m("margin",""),p("border","border-width","border-style","border-color"),"medium none"===i.border&&delete i.border,"none"===i["border-image"]&&delete i["border-image"]}return i},serialize:(e,t)=>{let o="";const n=(t,n)=>{const a=n[t];if(a)for(let r=0,i=a.length;r<i;r++){const t=a[r],n=e[t];n&&(o+=(o.length>0?" ":"")+t+": "+n+";")}},a=(e,t)=>{if(!l||!t)return!0;let o=l["*"];return(!o||!o[e])&&(o=l[t],!(o&&o[e]))};return t&&i?(n("*",i),n(t,i)):Oe(e,(e,n)=>{e&&a(n,t)&&(o+=(o.length>0?" ":"")+n+": "+e+";")}),o}};return d},Hs={keyLocation:!0,layerX:!0,layerY:!0,returnValue:!0,webkitMovementX:!0,webkitMovementY:!0,keyIdentifier:!0,mozPressure:!0},Ws=e=>e instanceof Event||A(e.initEvent),Gs=e=>e.isDefaultPrevented===$||e.isDefaultPrevented===q,Ks=e=>_(e.preventDefault)||Ws(e),Ys=(e,t)=>{const o=null!==t&&void 0!==t?t:{};for(const n in e)Se(Hs,n)||(o[n]=e[n]);return V(e.composedPath)&&(o.composedPath=()=>e.composedPath()),V(e.getModifierState)&&(o.getModifierState=t=>e.getModifierState(t)),V(e.getTargetRanges)&&(o.getTargetRanges=()=>e.getTargetRanges()),o},Qs=(e,t,o,n)=>{var a;const r=Ys(t,n);return r.type=e,_(r.target)&&(r.target=null!==(a=r.srcElement)&&void 0!==a?a:o),Ks(t)&&(r.preventDefault=()=>{r.defaultPrevented=!0,r.isDefaultPrevented=$,A(t.preventDefault)&&t.preventDefault()},r.stopPropagation=()=>{r.cancelBubble=!0,r.isPropagationStopped=$,A(t.stopPropagation)&&t.stopPropagation()},r.stopImmediatePropagation=()=>{r.isImmediatePropagationStopped=$,r.stopPropagation()},Gs(r)||(r.isDefaultPrevented=!0===r.defaultPrevented?$:q,r.isPropagationStopped=!0===r.cancelBubble?$:q,r.isImmediatePropagationStopped=q)),r},Js="mce-data-",Zs=/^(?:mouse|contextmenu)|click/,Xs=(e,t,o,n)=>{e.addEventListener(t,o,n||!1)},ec=(e,t,o,n)=>{e.removeEventListener(t,o,n||!1)},tc=e=>V(e)&&Zs.test(e.type),oc=(e,t)=>{const o=Qs(e.type,e,document,t);if(tc(e)&&x(e.pageX)&&!x(e.clientX)){const t=o.target.ownerDocument||document,n=t.documentElement,a=t.body,r=o;r.pageX=e.clientX+(n&&n.scrollLeft||a&&a.scrollLeft||0)-(n&&n.clientLeft||a&&a.clientLeft||0),r.pageY=e.clientY+(n&&n.scrollTop||a&&a.scrollTop||0)-(n&&n.clientTop||a&&a.clientTop||0)}return o},nc=(e,t,o)=>{const n=e.document,a={type:"ready"};if(o.domLoaded)return void t(a);const r=()=>"complete"===n.readyState||"interactive"===n.readyState&&n.body,i=()=>{ec(e,"DOMContentLoaded",i),ec(e,"load",i),o.domLoaded||(o.domLoaded=!0,t(a)),e=null};r()?i():Xs(e,"DOMContentLoaded",i),o.domLoaded||Xs(e,"load",i)};class ac{constructor(){this.domLoaded=!1,this.events={},this.count=1,this.expando=Js+(+new Date).toString(32),this.hasFocusIn="onfocusin"in document.documentElement,this.count=1}bind(e,t,o,n){const a=this;let r;const i=window,l=e=>{a.executeHandlers(oc(e||i.event),s)};if(!e||Or(e)||_r(e))return o;let s;e[a.expando]?s=e[a.expando]:(s=a.count++,e[a.expando]=s,a.events[s]={}),n=n||e;const c=t.split(" ");let d=c.length;while(d--){let t=c[d],u=l,m=!1,h=!1;"DOMContentLoaded"===t&&(t="ready"),a.domLoaded&&"ready"===t&&"complete"===e.readyState?o.call(n,oc({type:t})):(a.hasFocusIn||"focusin"!==t&&"focusout"!==t||(m=!0,h="focusin"===t?"focus":"blur",u=e=>{const t=oc(e||i.event);t.type="focus"===t.type?"focusin":"focusout",a.executeHandlers(t,s)}),r=a.events[s][t],r?"ready"===t&&a.domLoaded?o(oc({type:t})):r.push({func:o,scope:n}):(a.events[s][t]=r=[{func:o,scope:n}],r.fakeName=h,r.capture=m,r.nativeHandler=u,"ready"===t?nc(e,u,a):Xs(e,h||t,u,m)))}return e=r=null,o}unbind(e,t,o){if(!e||Or(e)||_r(e))return this;const n=e[this.expando];if(n){let r=this.events[n];if(t){const n=t.split(" ");let a=n.length;while(a--){const t=n[a],i=r[t];if(i){if(o){let e=i.length;while(e--)if(i[e].func===o){const o=i.nativeHandler,n=i.fakeName,a=i.capture,l=i.slice(0,e).concat(i.slice(e+1));l.nativeHandler=o,l.fakeName=n,l.capture=a,r[t]=l}}o&&0!==i.length||(delete r[t],ec(e,i.fakeName||t,i.nativeHandler,i.capture))}}}else Oe(r,(t,o)=>{ec(e,t.fakeName||o,t.nativeHandler,t.capture)}),r={};for(const e in r)if(Se(r,e))return this;delete this.events[n];try{delete e[this.expando]}catch(a){e[this.expando]=null}}return this}fire(e,t,o){return this.dispatch(e,t,o)}dispatch(e,t,o){if(!e||Or(e)||_r(e))return this;const n=oc({type:t,target:e},o);do{const t=e[this.expando];t&&this.executeHandlers(n,t),e=e.parentNode||e.ownerDocument||e.defaultView||e.parentWindow}while(e&&!n.isPropagationStopped());return this}clean(e){if(!e||Or(e)||_r(e))return this;if(e[this.expando]&&this.unbind(e),e.getElementsByTagName||(e=e.document),e&&e.getElementsByTagName){this.unbind(e);const t=e.getElementsByTagName("*");let o=t.length;while(o--)e=t[o],e[this.expando]&&this.unbind(e)}return this}destroy(){this.events={}}cancel(e){return e&&(e.preventDefault(),e.stopImmediatePropagation()),!1}executeHandlers(e,t){const o=this.events[t],n=o&&o[e.type];if(n)for(let a=0,r=n.length;a<r;a++){const t=n[a];if(t&&!1===t.func.call(t.scope,e)&&e.preventDefault(),e.isImmediatePropagationStopped())return}}}ac.Event=new ac;const rc=ho.each,ic=ho.grep,lc="data-mce-style",sc=ho.makeMap("fill-opacity font-weight line-height opacity orphans widows z-index zoom"," "),cc=(e,t,o)=>{_(o)||""===o?Yo(e,t):Uo(e,t,o)},dc=e=>e.replace(/[A-Z]/g,e=>"-"+e.toLowerCase()),uc=(e,t)=>{let o=0;if(e)for(let n=e.nodeType,a=e.previousSibling;a;a=a.previousSibling){const e=a.nodeType;(!t||!Or(a)||e!==n&&a.data.length)&&(o++,n=e)}return o},mc=(e,t)=>{const o=Wo(t,"style"),n=e.serialize(e.parse(o),So(t));cc(t,lc,n)},hc=(e,t)=>N(e)?Se(sc,t)?e+"":e+"px":e,pc=(e,t,o)=>{const n=dc(t);_(o)||""===o?ya(e,n):ga(e,n,hc(o,n))},bc=(e,t,o)=>{const n=t.keep_values,a={set:(e,n,a)=>{const r=fn.fromDom(e);A(t.url_converter)&&V(n)&&(n=t.url_converter.call(t.url_converter_scope||o(),String(n),a,e));const i="data-mce-"+a;cc(r,i,n),cc(r,a,n)},get:(e,t)=>{const o=fn.fromDom(e);return Wo(o,"data-mce-"+t)||Wo(o,t)}},r={style:{set:(t,o)=>{const a=fn.fromDom(t);n&&cc(a,lc,o),Yo(a,"style"),w(o)&&fa(a,e.parse(o))},get:t=>{const o=fn.fromDom(t),n=Wo(o,lc)||Wo(o,"style");return e.serialize(e.parse(n),So(o))}}};return n&&(r.href=r.src=a),r},gc=(e,t={})=>{const o={},n=window,a={};let r=0;const i=!0,l=!0,s=Rl.forElement(fn.fromDom(e),{contentCssCors:t.contentCssCors,referrerPolicy:t.referrerPolicy}),c=[],d=t.schema?t.schema:Ts({}),u=Us({url_converter:t.url_converter,url_converter_scope:t.url_converter_scope,force_hex_color:t.force_hex_color},t.schema),m=t.ownEvents?new ac:ac.Event,h=d.getBlockElements(),p=e=>w(e)?Se(h,e):dr(e)&&(Se(h,e.nodeName)||El(d,e)),b=t=>t&&e&&w(t)?e.getElementById(t):t,g=e=>{const t=b(e);return V(t)?fn.fromDom(t):null},f=(e,t,o="")=>{let n;const a=g(e);if(V(a)&&Mo(a)){const e=Re[t];n=e&&e.get?e.get(a.dom,t):Wo(a,t)}return V(n)?n:o},v=e=>{const t=b(e);return _(t)?[]:t.attributes},k=(e,o,n)=>{U(e,e=>{if(dr(e)){const a=fn.fromDom(e),r=""===n?null:n,i=Wo(a,o),l=Re[o];l&&l.set?l.set(a.dom,r,o):cc(a,o,r),i!==r&&t.onSetAttrib&&t.onSetAttrib({attrElm:a.dom,attrName:o,attrValue:r})}})},C=(e,t)=>e.cloneNode(t),O=()=>t.root_element||e.body,j=e=>{const t=or(e);return{x:t.x,y:t.y,w:t.width,h:t.height}},x=(t,o)=>Ml(e.body,b(t),o),N=(e,o,n)=>{U(e,e=>{const a=fn.fromDom(e);pc(a,o,n),t.update_styles&&mc(u,a)})},D=(e,o)=>{U(e,e=>{const n=fn.fromDom(e);Oe(o,(e,t)=>{pc(n,t,e)}),t.update_styles&&mc(u,n)})},T=(e,t,o)=>{const n=b(e);if(!_(n)&&(ur(n)||mr(n)))return o?va(fn.fromDom(n),dc(t)):(t=t.replace(/-(\D)/g,(e,t)=>t.toUpperCase()),"float"===t&&(t="cssFloat"),n.style?n.style[t]:void 0)},S=e=>{const t=b(e);if(!t)return{w:0,h:0};let o=T(t,"width"),n=T(t,"height");return o&&-1!==o.indexOf("px")||(o="0"),n&&-1!==n.indexOf("px")||(n="0"),{w:parseInt(o,10)||t.offsetWidth||t.clientWidth,h:parseInt(n,10)||t.offsetHeight||t.clientHeight}},I=e=>{const t=b(e),o=x(t),n=S(t);return{x:o.x,y:o.y,w:n.w,h:n.h}},z=(e,t)=>{if(!e)return!1;const o=y(e)?e:[e];return J(o,e=>wn(fn.fromDom(e),t))},F=(e,t,o,n)=>{const a=[];let r=b(e);n=void 0===n;const i=o||("BODY"!==O().nodeName?O().parentNode:null);if(w(t))if("*"===t)t=dr;else{const e=t;t=t=>z(t,e)}while(r){if(r===i||_(r.nodeType)||Vr(r)||Ar(r))break;if(!t||t(r)){if(!n)return[r];a.push(r)}r=r.parentNode}return n?a:null},M=(e,t,o)=>{const n=F(e,t,o,!1);return n&&n.length>0?n[0]:null},L=(e,t,o)=>{let n=t;if(e){w(t)&&(n=e=>z(e,t));for(let t=e[o];t;t=t[o])if(A(n)&&n(t))return t}return null},P=(e,t)=>L(e,t,"nextSibling"),R=(e,t)=>L(e,t,"previousSibling"),q=e=>A(e.querySelectorAll),$=(o,n)=>{var a,r;const i=null!==(r=null!==(a=b(n))&&void 0!==a?a:t.root_element)&&void 0!==r?r:e;return q(i)?ve(i.querySelectorAll(o)):[]},U=function(e,t,o){const n=null!==o&&void 0!==o?o:this;if(y(e)){const o=[];return rc(e,(e,a)=>{const r=b(e);r&&o.push(t.call(n,r,a))}),o}{const o=b(e);return!!o&&t.call(n,o)}},H=(e,t)=>{U(e,e=>{Oe(t,(t,o)=>{k(e,o,t)})})},W=(e,t)=>{U(e,e=>{const o=fn.fromDom(e);Fa(o,t)})},G=(t,o,n,a,r)=>U(t,t=>{const i=w(o)?e.createElement(o):o;return V(n)&&H(i,n),a&&(!w(a)&&a.nodeType?i.appendChild(a):w(a)&&W(i,a)),r?i:t.appendChild(i)}),K=(t,o,n)=>G(e.createElement(t),t,o,n,!0),Y=hs.decode,Q=hs.encodeAllRaw,Z=(e,t,o="")=>{let n="<"+e;for(const a in t)Be(t,a)&&(n+=" "+a+'="'+Q(t[a])+'"');return gt(o)&&Se(d.getVoidElements(),e)?n+" />":n+">"+o+"</"+e+">"},ee=t=>{const o=e.createElement("div"),n=e.createDocumentFragment();let a;n.appendChild(o),t&&(o.innerHTML=t);while(a=o.firstChild)n.appendChild(a);return n.removeChild(o),n},te=(e,t)=>U(e,e=>{const o=fn.fromDom(e);return t&&X(Fn(o),e=>{Lo(e)&&0===e.dom.length?Ta(e):ja(o,e)}),Ta(o),o.dom}),oe=e=>U(e,e=>{const t=e.attributes;for(let o=t.length-1;o>=0;o--)e.removeAttributeNode(t.item(o))}),ne=e=>u.parse(e),ae=(e,t)=>u.serialize(e,t),re=t=>{if(Pe!==gc.DOM&&e===document){if(o[t])return;o[t]=!0}let n=e.getElementById("mceDefaultStyles");if(!n){n=e.createElement("style"),n.id="mceDefaultStyles",n.type="text/css";const t=e.head;t.firstChild?t.insertBefore(n,t.firstChild):t.appendChild(n)}n.styleSheet?n.styleSheet.cssText+=t:n.appendChild(e.createTextNode(t))},ie=e=>{e||(e=""),X(e.split(","),e=>{a[e]=!0,s.load(e).catch(E)})},le=(e,t,o)=>{U(e,e=>{if(dr(e)){const n=fn.fromDom(e),a=t.split(" ");X(a,e=>{if(V(o)){const t=o?ln:cn;t(n,e)}else dn(n,e)})}})},se=(e,t)=>{le(e,t,!0)},ce=(e,t)=>{le(e,t,!1)},ue=(e,t)=>{const o=g(e),n=t.split(" ");return V(o)&&de(n,e=>un(o,e))},me=e=>{U(e,e=>ya(fn.fromDom(e),"display"))},he=e=>{U(e,e=>ga(fn.fromDom(e),"display","none"))},pe=e=>{const t=g(e);return V(t)&&po(ka(t,"display"),"none")},be=e=>(e||"mce_")+r++,ge=e=>{const t=g(e);return V(t)?dr(t.dom)?t.dom.outerHTML:Ma(t):""},fe=(e,t)=>{U(e,e=>{dr(e)&&(e.outerHTML=t)})},we=(e,t)=>{const o=b(t);return U(e,e=>{const t=null===o||void 0===o?void 0:o.parentNode,n=null===o||void 0===o?void 0:o.nextSibling;return t&&(n?t.insertBefore(e,n):t.appendChild(e)),e})},ke=(e,t,o)=>U(t,n=>{var a;const r=y(t)?e.cloneNode(!0):e;return o&&rc(ic(n.childNodes),e=>{r.appendChild(e)}),null===(a=n.parentNode)||void 0===a||a.replaceChild(r,n),n}),Ce=(e,t)=>{if(e.nodeName!==t.toUpperCase()){const o=K(t);return rc(v(e),t=>{k(o,t.nodeName,f(e,t.nodeName))}),ke(o,e,!0),o}return e},ye=(e,t)=>{let o=e;while(o){let e=t;while(e&&o!==e)e=e.parentNode;if(o===e)break;o=o.parentNode}return!o&&e.ownerDocument?e.ownerDocument.documentElement:o},je=e=>{if(dr(e)){const t="a"===e.nodeName.toLowerCase()&&!f(e,"href")&&f(e,"id");if(f(e,"name")||f(e,"data-mce-bookmark")||t)return!0}return!1},xe=(e,t,o)=>{let n=0;if(je(e))return!1;const a=e.firstChild;if(a){const r=new lr(a,e),i=d?d.getWhitespaceElements():{},l=t||(d?d.getNonEmptyElements():null);let s=a;do{if(dr(s)){const e=s.getAttribute("data-mce-bogus");if(e){s=r.next("all"===e);continue}const t=s.nodeName.toLowerCase();if(l&&l[t]){if("br"===t){n++,s=r.next();continue}return!1}if(je(s))return!1}if(_r(s))return!1;if(Or(s)&&!Yi(s.data)&&(!(null===o||void 0===o?void 0:o.includeZwsp)||!Qi(s.data)))return!1;if(Or(s)&&s.parentNode&&i[s.parentNode.nodeName]&&Yi(s.data))return!1;s=r.next()}while(s)}return n<=1},_e=()=>e.createRange(),Ve=(e,t,o)=>{let n,a,r=_e();if(e&&t&&e.parentNode&&t.parentNode){const i=e.parentNode;return r.setStart(i,uc(e)),r.setEnd(t.parentNode,uc(t)),n=r.extractContents(),r=_e(),r.setStart(t.parentNode,uc(t)+1),r.setEnd(i,uc(e)+1),a=r.extractContents(),i.insertBefore(Yl(Pe,n,d),e),o?i.insertBefore(o,e):i.insertBefore(t,e),i.insertBefore(Yl(Pe,a,d),e),te(e),o||t}},Ae=(o,a,r,i)=>{if(y(o)){let e=o.length;const t=[];while(e--)t[e]=Ae(o[e],a,r,i);return t}return!t.collect||o!==e&&o!==n||c.push([o,a,r,i]),m.bind(o,a,r,i||Pe)},Ne=(t,o,a)=>{if(y(t)){let e=t.length;const n=[];while(e--)n[e]=Ne(t[e],o,a);return n}if(c.length>0&&(t===e||t===n)){let e=c.length;while(e--){const[n,r,i]=c[e];t!==n||o&&o!==r||a&&a!==i||m.unbind(n,r,i)}}return m.unbind(t,o,a)},De=(e,t,o)=>m.dispatch(e,t,o),Ee=(e,t,o)=>m.dispatch(e,t,o),Te=e=>{if(e&&ur(e)){const t=e.getAttribute("data-mce-contenteditable");return t&&"inherit"!==t?t:"inherit"!==e.contentEditable?e.contentEditable:null}return null},Ie=e=>{const t=O();let o=null;for(let n=e;n&&n!==t;n=n.parentNode)if(o=Te(n),null!==o)break;return o},ze=e=>{if(V(e)){const t=dr(e)?e:e.parentElement;return V(t)&&ur(t)&&ua(fn.fromDom(t))}return!1},Fe=()=>{if(c.length>0){let e=c.length;while(e--){const[t,o,n]=c[e];m.unbind(t,o,n)}}Oe(a,(e,t)=>{s.unload(t),delete a[t]})},Me=(e,t)=>e===t||t.contains(e),Le=e=>"startContainer: "+e.startContainer.nodeName+", startOffset: "+e.startOffset+", endContainer: "+e.endContainer.nodeName+", endOffset: "+e.endOffset,Pe={doc:e,settings:t,win:n,files:a,stdMode:i,boxModel:l,styleSheetLoader:s,boundEvents:c,styles:u,schema:d,events:m,isBlock:p,root:null,clone:C,getRoot:O,getViewPort:j,getRect:I,getSize:S,getParent:M,getParents:F,get:b,getNext:P,getPrev:R,select:$,is:z,add:G,create:K,createHTML:Z,createFragment:ee,remove:te,setStyle:N,getStyle:T,setStyles:D,removeAllAttribs:oe,setAttrib:k,setAttribs:H,getAttrib:f,getPos:x,parseStyle:ne,serializeStyle:ae,addStyle:re,loadCSS:ie,addClass:se,removeClass:ce,hasClass:ue,toggleClass:le,show:me,hide:he,isHidden:pe,uniqueId:be,setHTML:W,getOuterHTML:ge,setOuterHTML:fe,decode:Y,encode:Q,insertAfter:we,replace:ke,rename:Ce,findCommonAncestor:ye,run:U,getAttribs:v,isEmpty:xe,createRng:_e,nodeIndex:uc,split:Ve,bind:Ae,unbind:Ne,fire:Ee,dispatch:De,getContentEditable:Te,getContentEditableParent:Ie,isEditable:ze,destroy:Fe,isChildOf:Me,dumpRng:Le},Re=bc(u,t,B(Pe));return Pe};gc.DOM=gc(document),gc.nodeIndex=uc;const fc=gc.DOM,vc=0,wc=1,kc=2,Cc=3;class yc{constructor(e={}){this.states={},this.queue=[],this.scriptLoadedCallbacks={},this.queueLoadedCallbacks=[],this.loading=!1,this.settings=e}_setReferrerPolicy(e){this.settings.referrerPolicy=e}loadScript(e){return new Promise((t,o)=>{const n=fc;let a;const r=()=>{n.remove(s),a&&(a.onerror=a.onload=a=null)},i=()=>{r(),t()},l=()=>{r(),o("Failed to load script: "+e)},s=n.uniqueId();a=document.createElement("script"),a.id=s,a.type="text/javascript",a.src=ho._addCacheSuffix(e),this.settings.referrerPolicy&&n.setAttrib(a,"referrerpolicy",this.settings.referrerPolicy),a.onload=i,a.onerror=l,(document.getElementsByTagName("head")[0]||document.body).appendChild(a)})}isDone(e){return this.states[e]===kc}markDone(e){this.states[e]=kc}add(e){const t=this;t.queue.push(e);const o=t.states[e];return void 0===o&&(t.states[e]=vc),new Promise((o,n)=>{t.scriptLoadedCallbacks[e]||(t.scriptLoadedCallbacks[e]=[]),t.scriptLoadedCallbacks[e].push({resolve:o,reject:n})})}load(e){return this.add(e)}remove(e){delete this.states[e],delete this.scriptLoadedCallbacks[e]}loadQueue(){const e=this.queue;return this.queue=[],this.loadScripts(e)}loadScripts(e){const t=this,o=(e,o)=>{Te(t.scriptLoadedCallbacks,o).each(t=>{X(t,t=>t[e](o))}),delete t.scriptLoadedCallbacks[o]},n=e=>{const t=oe(e,e=>"rejected"===e.status);return t.length>0?Promise.reject(ce(t,({reason:e})=>y(e)?e:[e])):Promise.resolve()},a=e=>Promise.allSettled(Z(e,e=>t.states[e]===kc?(o("resolve",e),Promise.resolve()):t.states[e]===Cc?(o("reject",e),Promise.reject(e)):(t.states[e]=wc,t.loadScript(e).then(()=>{t.states[e]=kc,o("resolve",e);const r=t.queue;return r.length>0?(t.queue=[],a(r).then(n)):Promise.resolve()},()=>(t.states[e]=Cc,o("reject",e),Promise.reject(e)))))),r=e=>(t.loading=!0,a(e).then(e=>{t.loading=!1;const o=t.queueLoadedCallbacks.shift();return U.from(o).each(R),n(e)})),i=ze(e);return t.loading?new Promise((e,o)=>{t.queueLoadedCallbacks.push(()=>{r(i).then(e,o)})}):r(i)}}yc.ScriptLoader=new yc;const Oc=e=>{let t=e;const o=()=>t,n=e=>{t=e};return{get:o,set:n}},jc=(e,t)=>{const o=e.indexOf(t);return-1!==o&&e.indexOf(t,o+1)>o},xc=e=>k(e)&&Se(e,"raw"),_c=e=>y(e)&&e.length>1,Vc={},Ac=Oc("en"),Nc=()=>Te(Vc,Ac.get()),Dc=()=>je(Vc,e=>({...e})),Ec=e=>{e&&Ac.set(e)},Tc=()=>Ac.get(),Sc=(e,t)=>{let o=Vc[e];o||(Vc[e]=o={});const n=Z(Ce(t),e=>e.toLowerCase());Oe(t,(e,a)=>{const r=a.toLowerCase();r!==a&&jc(n,r)?(Se(t,r)||(o[r]=e),o[a]=e):o[r]=e})},Bc=e=>{const t=Nc().getOr({}),o=e=>A(e)?Object.prototype.toString.call(e):n(e)?"":""+e,n=e=>""===e||null===e||void 0===e,a=e=>{const n=o(e);return Se(t,n)?o(t[n]):Te(t,n.toLowerCase()).map(o).getOr(n)},r=e=>e.replace(/{context:\w+}$/,"");if(n(e))return"";if(xc(e))return o(e.raw);if(_c(e)){const t=e.slice(1),n=a(e[0]).replace(/\{([0-9]+)\}/g,(e,n)=>Se(t,n)?o(t[n]):e);return r(n)}return r(a(e))},Ic=()=>Nc().bind(e=>Te(e,"_dir")).exists(e=>"rtl"===e),zc=e=>Se(Vc,e),Fc={getData:Dc,setCode:Ec,getCode:Tc,add:Sc,translate:Bc,isRtl:Ic,hasCode:zc},Mc=()=>{const e=[],t={},o={},n=[],a=(e,t)=>{const o=oe(n,o=>o.name===e&&o.state===t);X(o,e=>e.resolve())},r=e=>Se(t,e),i=e=>Se(o,e),l=e=>{if(o[e])return o[e].instance},s=(e,o)=>{const n=Fc.getCode(),a=","+(o||"")+",";!n||o&&-1===a.indexOf(","+n+",")||yc.ScriptLoader.add(t[e]+"/langs/"+n+".js")},c=(e,t)=>{!1!==Mc.languageLoad&&(r(e)?s(e,t):p(e,"loaded").then(()=>s(e,t)))},d=(t,n)=>(e.push(n),o[t]={instance:n},a(t,"added"),n),u=e=>{delete t[e],delete o[e]},m=(e,t)=>w(t)?w(e)?{prefix:"",resource:t,suffix:""}:{prefix:e.prefix,resource:t,suffix:e.suffix}:t,h=(e,n)=>{if(t[e])return Promise.resolve();let r=w(n)?n:n.prefix+n.resource+n.suffix;0!==r.indexOf("/")&&-1===r.indexOf("://")&&(r=Mc.baseURL+"/"+r),t[e]=r.substring(0,r.lastIndexOf("/"));const i=()=>(a(e,"loaded"),Promise.resolve());return o[e]?i():yc.ScriptLoader.add(r).then(i)},p=(e,t="added")=>"added"===t&&i(e)||"loaded"===t&&r(e)?Promise.resolve():new Promise(o=>{n.push({name:e,state:t,resolve:o})});return{items:e,urls:t,lookup:o,get:l,requireLangPack:c,add:d,remove:u,createUrl:m,load:h,waitFor:p}};Mc.languageLoad=!0,Mc.baseURL="",Mc.PluginManager=Mc(),Mc.ThemeManager=Mc(),Mc.ModelManager=Mc();const Lc=e=>{const t=Oc(U.none()),o=()=>t.get().each(e),n=()=>{o(),t.set(U.none())},a=()=>t.get().isSome(),r=()=>t.get(),i=e=>{o(),t.set(U.some(e))};return{clear:n,isSet:a,get:r,set:i}},Pc=e=>{const t=Oc(U.none()),o=()=>t.get().each(e=>clearInterval(e)),n=()=>{o(),t.set(U.none())},a=()=>t.get().isSome(),r=()=>t.get(),i=n=>{o(),t.set(U.some(setInterval(n,e)))};return{clear:n,isSet:a,get:r,set:i}},Rc=()=>{const e=Lc(E),t=t=>e.get().each(t);return{...e,on:t}},qc=(e,t)=>{let o=null;const n=()=>{O(o)||(clearTimeout(o),o=null)},a=(...n)=>{O(o)&&(o=setTimeout(()=>{o=null,e.apply(null,n)},t))};return{cancel:n,throttle:a}},$c=(e,t)=>{let o=null;const n=()=>{O(o)||(clearTimeout(o),o=null)},a=(...a)=>{n(),o=setTimeout(()=>{o=null,e.apply(null,a)},t)};return{cancel:n,throttle:a}},Uc=B("mce-annotation"),Hc=B("data-mce-annotation"),Wc=B("data-mce-annotation-uid"),Gc=B("data-mce-annotation-active"),Kc=B("data-mce-annotation-classes"),Yc=B("data-mce-annotation-attrs"),Qc=e=>t=>On(t,e),Jc=(e,t)=>{const o=e.selection.getRng(),n=fn.fromDom(o.startContainer),a=fn.fromDom(e.getBody()),r=t.fold(()=>"."+Uc(),e=>`[${Hc()}="${e}"]`),i=Mn(n,o.startOffset).getOr(n),l=ca(i,r,Qc(a));return l.bind(t=>Go(t,""+Wc()).bind(o=>Go(t,""+Hc()).map(t=>{const n=ed(e,o);return{uid:o,name:t,elements:n}})))},Zc=e=>Mo(e)&&un(e,Uc()),Xc=(e,t)=>Ko(e,"data-mce-bogus")||ir(e,'[data-mce-bogus="all"]',Qc(t)),ed=(e,t)=>{const o=fn.fromDom(e.getBody()),n=rr(o,`[${Wc()}="${t}"]`);return oe(n,e=>!Xc(e,o))},td=(e,t)=>{const o=fn.fromDom(e.getBody()),n=rr(o,`[${Hc()}="${t}"]`),a={};return X(n,e=>{if(!Xc(e,o)){const t=Wo(e,Wc()),o=Te(a,t).getOr([]);a[t]=o.concat([e])}}),a},od=(e,t)=>{const o=Oc({}),n=()=>({listeners:[],previous:Rc()}),a=(e,t)=>{r(e,e=>(t(e),e))},r=(e,t)=>{const a=o.get(),r=Te(a,e).getOrThunk(n),i=t(r);a[e]=i,o.set(a)},i=(e,t,o)=>{a(e,n=>{X(n.listeners,n=>n(!0,e,{uid:t,nodes:Z(o,e=>e.dom)}))})},l=e=>{a(e,t=>{X(t.listeners,t=>t(!1,e))})},s=(t,o)=>{X(ed(e,t),e=>{o?Uo(e,Gc(),"true"):Yo(e,Gc())})},c=$c(()=>{const o=pe(t.getNames());X(o,t=>{r(t,o=>{const n=o.previous.get();return Jc(e,U.some(t)).fold(()=>{n.each(e=>{l(t),o.previous.clear(),s(e,!1)})},({uid:e,name:t,elements:a})=>{po(n,e)||(n.each(e=>s(e,!1)),i(t,e,a),o.previous.set(e),s(e,!0))}),{previous:o.previous,listeners:o.listeners}})})},30);e.on("remove",()=>{c.cancel()}),e.on("NodeChange",()=>{c.throttle()});const d=(e,t)=>{r(e,e=>({previous:e.previous,listeners:e.listeners.concat([t])}))};return{addListener:d}},nd=(e,t)=>{const o=Hc(),n=e=>U.from(e.attr(o)).bind(t.lookup),a=e=>{var t,o;e.attr(Wc(),null),e.attr(Hc(),null),e.attr(Gc(),null);const n=U.from(e.attr(Yc())).map(e=>e.split(",")).getOr([]),a=U.from(e.attr(Kc())).map(e=>e.split(",")).getOr([]);X(n,t=>e.attr(t,null));const r=null!==(o=null===(t=e.attr("class"))||void 0===t?void 0:t.split(" "))&&void 0!==o?o:[],i=me(r,[Uc()].concat(a));e.attr("class",i.length>0?i.join(" "):null),e.attr(Kc(),null),e.attr(Yc(),null)};e.serializer.addTempAttr(Gc()),e.serializer.addAttributeFilter(o,e=>{for(const t of e)n(t).each(e=>{!1===e.persistent&&("span"===t.name?t.unwrap():a(t))})})},ad=()=>{const e={},t=(t,o)=>{e[t]={name:t,settings:o}},o=t=>Te(e,t).map(e=>e.settings),n=()=>Ce(e);return{register:t,lookup:o,getNames:n}};let rd=0;const id=e=>{const t=new Date,o=t.getTime(),n=Math.floor(1e9*Math.random());return rd++,e+"_"+n+rd+String(o)},ld=(e,t)=>{X(t,t=>{ln(e,t)})},sd=(e,t)=>{X(t,t=>{cn(e,t)})},cd=(e,t)=>fn.fromDom(e.dom.cloneNode(t)),dd=e=>cd(e,!1),ud=e=>cd(e,!0),md=(e,t)=>{const o=fn.fromTag(t),n=Jo(e);return Ho(o,n),o},hd=(e,t)=>{const o=md(e,t);xa(e,o);const n=Fn(e);return Da(o,n),Ta(e),o},pd=(e,t,o=q)=>{const n=new lr(e,t),a=e=>{let t;do{t=n[e]()}while(t&&!Or(t)&&!o(t));return U.from(t).filter(Or)};return{current:()=>U.from(n.current()).filter(Or),next:()=>a("next"),prev:()=>a("prev"),prev2:()=>a("prev2")}},bd=(e,t)=>{const o=t||(t=>e.isBlock(t)||Nr(t)||Tr(t)),n=(e,t,o,a)=>{if(Or(e)){const o=a(e,t,e.data);if(-1!==o)return U.some({container:e,offset:o})}return o().bind(e=>n(e.container,e.offset,o,a))},a=(t,a,r,i)=>{const l=pd(t,null!==i&&void 0!==i?i:e.getRoot(),o);return n(t,a,()=>l.prev().map(e=>({container:e,offset:e.length})),r).getOrNull()},r=(t,a,r,i)=>{const l=pd(t,null!==i&&void 0!==i?i:e.getRoot(),o);return n(t,a,()=>l.next().map(e=>({container:e,offset:0})),r).getOrNull()};return{backwards:a,forwards:r}},gd=Math.round,fd=e=>e?{left:gd(e.left),top:gd(e.top),bottom:gd(e.bottom),right:gd(e.right),width:gd(e.width),height:gd(e.height)}:{left:0,top:0,bottom:0,right:0,width:0,height:0},vd=(e,t)=>(e=fd(e),t||(e.left=e.left+e.width),e.right=e.left,e.width=0,e),wd=(e,t)=>e.left===t.left&&e.top===t.top&&e.bottom===t.bottom&&e.right===t.right,kd=(e,t,o)=>e>=0&&e<=Math.min(t.height,o.height)/2,Cd=(e,t)=>{const o=Math.min(t.height/2,e.height/2);return e.bottom-o<t.top||!(e.top>t.bottom)&&kd(t.top-e.bottom,e,t)},yd=(e,t)=>e.top>t.bottom||!(e.bottom<t.top)&&kd(t.bottom-e.top,e,t),Od=(e,t,o)=>t>=e.left&&t<=e.right&&o>=e.top&&o<=e.bottom,jd=e=>ae(e,(e,t)=>e.fold(()=>U.some(t),e=>{const o=Math.min(t.left,e.left),n=Math.min(t.top,e.top),a=Math.max(t.right,e.right),r=Math.max(t.bottom,e.bottom);return U.some({top:n,right:a,bottom:r,left:o,width:a-o,height:r-n})}),U.none()),xd=(e,t,o)=>{const n=Math.max(Math.min(t,e.left+e.width),e.left),a=Math.max(Math.min(o,e.top+e.height),e.top);return Math.sqrt((t-n)*(t-n)+(o-a)*(o-a))},_d=(e,t)=>Math.max(0,Math.min(e.bottom,t.bottom)-Math.max(e.top,t.top)),Vd=(e,t,o)=>Math.min(Math.max(e,t),o),Ad=e=>{const t=e.startContainer,o=e.startOffset;return t===e.endContainer&&t.hasChildNodes()&&e.endOffset===o+1?t.childNodes[o]:null},Nd=(e,t)=>{if(dr(e)&&e.hasChildNodes()){const o=e.childNodes,n=Vd(t,0,o.length-1);return o[n]}return e},Dd=(e,t)=>t<0&&dr(e)&&e.hasChildNodes()?void 0:Nd(e,t),Ed=new RegExp("[̀-ͯ҃-҇҈-҉֑-ֽֿׁ-ׂׄ-ׇׅؐ-ًؚ-ٰٟۖ-ۜ۟-ۤۧ-۪ۨ-ܑۭܰ-݊ަ-ް߫-߳ࠖ-࠙ࠛ-ࠣࠥ-ࠧࠩ-࡙࠭-࡛ࣣ-ंऺ़ु-ै्॑-ॗॢ-ॣঁ়াু-ৄ্ৗৢ-ৣਁ-ਂ਼ੁ-ੂੇ-ੈੋ-੍ੑੰ-ੱੵઁ-ં઼ુ-ૅે-ૈ્ૢ-ૣଁ଼ାିୁ-ୄ୍ୖୗୢ-ୣஂாீ்ௗఀా-ీె-ైొ-్ౕ-ౖౢ-ౣಁ಼ಿೂೆೌ-್ೕ-ೖೢ-ೣഁാു-ൄ്ൗൢ-ൣ්ාි-ුූෟัิ-ฺ็-๎ັິ-ູົ-ຼ່-ໍ༘-ཱ༹༙༵༷-ཾྀ-྄྆-྇ྍ-ྗྙ-ྼ࿆ိ-ူဲ-့္-်ွ-ှၘ-ၙၞ-ၠၱ-ၴႂႅ-ႆႍႝ፝-፟ᜒ-᜔ᜲ-᜴ᝒ-ᝓᝲ-ᝳ឴-឵ិ-ួំ៉-៓៝᠋-᠍ᢩᤠ-ᤢᤧ-ᤨᤲ᤹-᤻ᨗ-ᨘᨛᩖᩘ-ᩞ᩠ᩢᩥ-ᩬᩳ-᩿᩼᪰-᪽᪾ᬀ-ᬃ᬴ᬶ-ᬺᬼᭂ᭫-᭳ᮀ-ᮁᮢ-ᮥᮨ-ᮩ᮫-ᮭ᯦ᯨ-ᯩᯭᯯ-ᯱᰬ-ᰳᰶ-᰷᳐-᳔᳒-᳢᳠-᳨᳭᳴᳸-᳹᷀-᷵᷼-᷿‌-‍⃐-⃜⃝-⃠⃡⃢-⃤⃥-⃰⳯-⵿⳱ⷠ-〪ⷿ-〭〮-゙〯-゚꙯꙰-꙲ꙴ-꙽ꚞ-ꚟ꛰-꛱ꠂ꠆ꠋꠥ-ꠦ꣄꣠-꣱ꤦ-꤭ꥇ-ꥑꦀ-ꦂ꦳ꦶ-ꦹꦼꧥꨩ-ꨮꨱ-ꨲꨵ-ꨶꩃꩌꩼꪰꪲ-ꪴꪷ-ꪸꪾ-꪿꫁ꫬ-ꫭ꫶ꯥꯨ꯭ﬞ︀-️︠-゙︯-゚]"),Td=e=>w(e)&&e.charCodeAt(0)>=768&&Ed.test(e),Sd=(...e)=>t=>{for(let o=0;o<e.length;o++)if(e[o](t))return!0;return!1},Bd=(...e)=>t=>{for(let o=0;o<e.length;o++)if(!e[o](t))return!1;return!0},Id=dr,zd=Ri,Fd=br("display","block table"),Md=br("float","left right"),Ld=Bd(Id,zd,M(Md)),Pd=M(br("white-space","pre pre-line pre-wrap")),Rd=Or,qd=Nr,$d=gc.nodeIndex,Ud=Dd,Hd=e=>e?e.createRange():gc.DOM.createRng(),Wd=e=>w(e)&&/[\r\n\t ]/.test(e),Gd=e=>!!e.setStart&&!!e.setEnd,Kd=e=>{const t=e.startContainer,o=e.startOffset;if(Wd(e.toString())&&Pd(t.parentNode)&&Or(t)){const e=t.data;if(Wd(e[o-1])||Wd(e[o+1]))return!0}return!1},Yd=e=>{const t=e.ownerDocument,o=Hd(t),n=t.createTextNode(Pr),a=e.parentNode;a.insertBefore(n,e),o.setStart(n,0),o.setEnd(n,1);const r=fd(o.getBoundingClientRect());return a.removeChild(n),r},Qd=e=>{const t=e.startContainer,o=e.endContainer,n=e.startOffset,a=e.endOffset;if(t===o&&Or(o)&&0===n&&1===a){const t=e.cloneRange();return t.setEndAfter(o),Zd(t)}return null},Jd=e=>0===e.left&&0===e.right&&0===e.top&&0===e.bottom,Zd=e=>{var t;let o;const n=e.getClientRects();return o=n.length>0?fd(n[0]):fd(e.getBoundingClientRect()),!Gd(e)&&qd(e)&&Jd(o)?Yd(e):Jd(o)&&Gd(e)&&null!==(t=Qd(e))&&void 0!==t?t:o},Xd=(e,t)=>{const o=vd(e,t);return o.width=1,o.right=o.left+1,o},eu=e=>{const t=[],o=e=>{0!==e.height&&(t.length>0&&wd(e,t[t.length-1])||t.push(e))},n=(e,t)=>{const n=Hd(e.ownerDocument);if(t<e.data.length){if(Td(e.data[t]))return;if(Td(e.data[t-1])&&(n.setStart(e,t),n.setEnd(e,t+1),!Kd(n)))return void o(Xd(Zd(n),!1))}t>0&&(n.setStart(e,t-1),n.setEnd(e,t),Kd(n)||o(Xd(Zd(n),!1))),t<e.data.length&&(n.setStart(e,t),n.setEnd(e,t+1),Kd(n)||o(Xd(Zd(n),!0)))},a=e.container(),r=e.offset();if(Rd(a))return n(a,r),t;if(Id(a))if(e.isAtEnd()){const e=Ud(a,r);Rd(e)&&n(e,e.data.length),Ld(e)&&!qd(e)&&o(Xd(Zd(e),!1))}else{const i=Ud(a,r);if(Rd(i)&&n(i,0),Ld(i)&&e.isAtEnd())return o(Xd(Zd(i),!1)),t;const l=Ud(e.container(),e.offset()-1);Ld(l)&&!qd(l)&&(Fd(l)||Fd(i)||!Ld(i))&&o(Xd(Zd(l),!1)),Ld(i)&&o(Xd(Zd(i),!0))}return t},tu=(e,t,o)=>{const n=()=>(Rd(e),0===t),a=()=>Rd(e)?t>=e.data.length:t>=e.childNodes.length,r=()=>{const o=Hd(e.ownerDocument);return o.setStart(e,t),o.setEnd(e,t),o},i=()=>(o||(o=eu(tu(e,t))),o),l=()=>i().length>0,s=o=>o&&e===o.container()&&t===o.offset(),c=o=>Ud(e,o?t-1:t);return{container:B(e),offset:B(t),toRange:r,getClientRects:i,isVisible:l,isAtStart:n,isAtEnd:a,isEqual:s,getNode:c}};tu.fromRangeStart=e=>tu(e.startContainer,e.startOffset),tu.fromRangeEnd=e=>tu(e.endContainer,e.endOffset),tu.after=e=>tu(e.parentNode,$d(e)+1),tu.before=e=>tu(e.parentNode,$d(e)),tu.isAbove=(e,t)=>fo(ge(t.getClientRects()),fe(e.getClientRects()),Cd).getOr(!1),tu.isBelow=(e,t)=>fo(fe(t.getClientRects()),ge(e.getClientRects()),yd).getOr(!1),tu.isAtStart=e=>!!e&&e.isAtStart(),tu.isAtEnd=e=>!!e&&e.isAtEnd(),tu.isTextPosition=e=>!!e&&Or(e.container()),tu.isElementPosition=e=>!tu.isTextPosition(e);const ou=(e,t)=>{Or(t)&&0===t.data.length&&e.remove(t)},nu=(e,t,o)=>{t.insertNode(o),ou(e,o.previousSibling),ou(e,o.nextSibling)},au=(e,t,o)=>{const n=U.from(o.firstChild),a=U.from(o.lastChild);t.insertNode(o),n.each(t=>ou(e,t.previousSibling)),a.each(t=>ou(e,t.nextSibling))},ru=(e,t,o)=>{Ar(o)?au(e,t,o):nu(e,t,o)},iu=Or,lu=vr,su=gc.nodeIndex,cu=e=>{const t=e.parentNode;return lu(t)?cu(t):t},du=e=>e?Ue(e.childNodes,(e,t)=>(lu(t)&&"BR"!==t.nodeName?e=e.concat(du(t)):e.push(t),e),[]):[],uu=(e,t)=>{let o=e;while(o=o.previousSibling){if(!iu(o))break;t+=o.data.length}return t},mu=e=>t=>e===t,hu=e=>{let t,o;t=du(cu(e)),o=He(t,mu(e),e),t=t.slice(0,o+1);const n=Ue(t,(e,o,n)=>(iu(o)&&iu(t[n-1])&&e++,e),0);return t=qe(t,pr([e.nodeName])),o=He(t,mu(e),e),o-n},pu=e=>{const t=iu(e)?"text()":e.nodeName.toLowerCase();return t+"["+hu(e)+"]"},bu=(e,t,o)=>{const n=[];for(let a=t.parentNode;a&&a!==e;a=a.parentNode){if(o&&o(a))break;n.push(a)}return n},gu=(e,t)=>{let o,n=[],a=t.container(),r=t.offset();if(iu(a))o=uu(a,r);else{const e=a.childNodes;r>=e.length?(o="after",r=e.length-1):o="before",a=e[r]}n.push(pu(a));let i=bu(e,a);return i=qe(i,M(vr)),n=n.concat(Re(i,e=>pu(e))),n.reverse().join("/")+","+o},fu=(e,t,o)=>{let n=du(e);return n=qe(n,(e,t)=>!iu(e)||!iu(n[t-1])),n=qe(n,pr([t])),n[o]},vu=(e,t)=>{let o=e,n=0;while(iu(o)){const a=o.data.length;if(t>=n&&t<=n+a){e=o,t-=n;break}if(!iu(o.nextSibling)){e=o,t=a;break}n+=a,o=o.nextSibling}return iu(e)&&t>e.data.length&&(t=e.data.length),tu(e,t)},wu=(e,t)=>{if(!t)return null;const o=t.split(","),n=o[0].split("/"),a=o.length>1?o[1]:"before",r=Ue(n,(e,t)=>{const o=/([\w\-\(\)]+)\[([0-9]+)\]/.exec(t);return o?("text()"===o[1]&&(o[1]="#text"),fu(e,o[1],parseInt(o[2],10))):null},e);if(!r)return null;if(!iu(r)&&r.parentNode){let e;return e="after"===a?su(r)+1:su(r),tu(r.parentNode,e)}return vu(r,parseInt(a,10))},ku=Tr,Cu=(e,t,o)=>{let n=e(t.data.slice(0,o)).length;for(let a=t.previousSibling;a&&Or(a);a=a.previousSibling)n+=e(a.data).length;return n},yu=(e,t,o,n,a)=>{const r=a?n.startContainer:n.endContainer;let i=a?n.startOffset:n.endOffset;const l=[],s=e.getRoot();if(Or(r))l.push(o?Cu(t,r,i):i);else{let t=0;const n=r.childNodes;i>=n.length&&n.length&&(t=1,i=Math.max(0,n.length-1)),l.push(e.nodeIndex(n[i],o)+t)}for(let c=r;c&&c!==s;c=c.parentNode)l.push(e.nodeIndex(c,o));return l},Ou=(e,t,o,n)=>{const a=t.dom,r=yu(a,e,o,n,!0),i=t.isForward(),l=Ti(n)?{isFakeCaret:!0}:{};if(t.isCollapsed())return{start:r,forward:i,...l};{const t=yu(a,e,o,n,!1);return{start:r,end:t,forward:i,...l}}},ju=(e,t,o)=>{let n=0;return ho.each(e.select(t),e=>"all"===e.getAttribute("data-mce-bogus")?void 0:e!==o&&void n++),n},xu=(e,t)=>{let o=t?e.startContainer:e.endContainer,n=t?e.startOffset:e.endOffset;if(dr(o)&&"TR"===o.nodeName){const a=o.childNodes;o=a[Math.min(t?n:n-1,a.length-1)],o&&(n=t?0:o.childNodes.length,t?e.setStart(o,n):e.setEnd(o,n))}},_u=e=>(xu(e,!0),xu(e,!1),e),Vu=(e,t)=>{if(dr(e)&&(e=Nd(e,t),ku(e)))return e;if(yi(e)){Or(e)&&ki(e)&&(e=e.parentNode);let t=e.previousSibling;if(ku(t))return t;if(t=e.nextSibling,ku(t))return t}},Au=e=>Vu(e.startContainer,e.startOffset)||Vu(e.endContainer,e.endOffset),Nu=(e,t,o)=>{const n=o.getNode(),a=o.getRng();if("IMG"===n.nodeName||ku(n)){const e=n.nodeName;return{name:e,index:ju(o.dom,e,n)}}const r=Au(a);if(r){const e=r.tagName;return{name:e,index:ju(o.dom,e,r)}}return Ou(e,o,t,a)},Du=e=>{const t=e.getRng();return{start:gu(e.dom.getRoot(),tu.fromRangeStart(t)),end:gu(e.dom.getRoot(),tu.fromRangeEnd(t)),forward:e.isForward()}},Eu=e=>({rng:e.getRng(),forward:e.isForward()}),Tu=(e,t,o)=>{const n={"data-mce-type":"bookmark",id:t,style:"overflow:hidden;line-height:0px"};return o?e.create("span",n,"&#xFEFF;"):e.create("span",n)},Su=(e,t)=>{const o=e.dom;let n=e.getRng();const a=o.uniqueId(),r=e.isCollapsed(),i=e.getNode(),l=i.nodeName,s=e.isForward();if("IMG"===l)return{name:l,index:ju(o,l,i)};const c=_u(n.cloneRange());if(!r){c.collapse(!1);const e=Tu(o,a+"_end",t);ru(o,c,e)}n=_u(n),n.collapse(!0);const d=Tu(o,a+"_start",t);return ru(o,n,d),e.moveToBookmark({id:a,keep:!0,forward:s}),{id:a,forward:s}},Bu=(e,t,o=!1)=>2===t?Nu(gi,o,e):3===t?Du(e):t?Eu(e):Su(e,!1),Iu=F(Nu,I,!0),zu=e=>{const t=t=>t(e),o=B(e),n=()=>a,a={tag:!0,inner:e,fold:(t,o)=>o(e),isValue:$,isError:q,map:t=>Lu.value(t(e)),mapError:n,bind:t,exists:t,forall:t,getOr:o,or:n,getOrThunk:o,orThunk:n,getOrDie:o,each:t=>{t(e)},toOptional:()=>U.some(e)};return a},Fu=e=>{const t=()=>o,o={tag:!1,inner:e,fold:(t,o)=>t(e),isValue:q,isError:$,map:t,mapError:t=>Lu.error(t(e)),bind:t,exists:q,forall:$,getOr:I,or:I,getOrThunk:P,orThunk:P,getOrDie:L(String(e)),each:E,toOptional:U.none};return o},Mu=(e,t)=>e.fold(()=>Fu(t),zu),Lu={value:zu,error:Fu,fromOption:Mu},Pu=e=>{if(!y(e))throw new Error("cases must be an array");if(0===e.length)throw new Error("there must be at least one case");const t=[],o={};return X(e,(n,a)=>{const r=Ce(n);if(1!==r.length)throw new Error("one and only one name per case");const i=r[0],l=n[i];if(void 0!==o[i])throw new Error("duplicate key detected:"+i);if("cata"===i)throw new Error("cannot have a case named cata (sorry)");if(!y(l))throw new Error("case arguments must be an array");t.push(i),o[i]=(...o)=>{const n=o.length;if(n!==l.length)throw new Error("Wrong number of arguments to case "+i+". Expected "+l.length+" ("+l+"), got "+n);const r=e=>{const n=Ce(e);if(t.length!==n.length)throw new Error("Wrong number of arguments to match. Expected: "+t.join(",")+"\nActual: "+n.join(","));const a=de(t,e=>Q(n,e));if(!a)throw new Error("Not all branches were specified when using match. Specified: "+n.join(", ")+"\nRequired: "+t.join(", "));return e[i].apply(null,o)};return{fold:(...t)=>{if(t.length!==e.length)throw new Error("Wrong number of arguments to fold. Expected "+e.length+", got "+t.length);const n=t[a];return n.apply(null,o)},match:r,log:e=>{console.log(e,{constructors:t,constructor:i,params:o})}}}}),o},Ru={generate:Pu};Ru.generate([{bothErrors:["error1","error2"]},{firstError:["error1","value2"]},{secondError:["value1","error2"]},{bothValues:["value1","value2"]}]);const qu=e=>{const t=[],o=[];return X(e,e=>{e.fold(e=>{t.push(e)},e=>{o.push(e)})}),{errors:t,values:o}},$u=e=>"inline-command"===e.type||"inline-format"===e.type,Uu=e=>"block-command"===e.type||"block-format"===e.type,Hu=e=>{const t=t=>Lu.error({message:t,pattern:e}),o=(o,n,a)=>{if(void 0!==e.format){let a;if(y(e.format)){if(!de(e.format,w))return t(o+" pattern has non-string items in the `format` array");a=e.format}else{if(!w(e.format))return t(o+" pattern has non-string `format` parameter");a=[e.format]}return Lu.value(n(a))}return void 0!==e.cmd?w(e.cmd)?Lu.value(a(e.cmd,e.value)):t(o+" pattern has non-string `cmd` parameter"):t(o+" pattern is missing both `format` and `cmd` parameters")};if(!k(e))return t("Raw pattern is not an object");if(!w(e.start))return t("Raw pattern is missing `start` parameter");if(void 0!==e.end){if(!w(e.end))return t("Inline pattern has non-string `end` parameter");if(0===e.start.length&&0===e.end.length)return t("Inline pattern has empty `start` and `end` parameters");let n=e.start,a=e.end;return 0===a.length&&(a=n,n=""),o("Inline",e=>({type:"inline-format",start:n,end:a,format:e}),(e,t)=>({type:"inline-command",start:n,end:a,cmd:e,value:t}))}return void 0!==e.replacement?w(e.replacement)?0===e.start.length?t("Replacement pattern has empty `start` parameter"):Lu.value({type:"inline-command",start:"",end:e.start,cmd:"mceInsertContent",value:e.replacement}):t("Replacement pattern has non-string `replacement` parameter"):0===e.start.length?t("Block pattern has empty `start` parameter"):o("Block",t=>({type:"block-format",start:e.start,format:t[0]}),(t,o)=>({type:"block-command",start:e.start,cmd:t,value:o}))},Wu=e=>oe(e,Uu),Gu=e=>oe(e,$u),Ku=(e,t)=>({inlinePatterns:Gu(e),blockPatterns:Wu(e),dynamicPatternsLookup:t}),Yu=e=>{const t=qu(Z(e,Hu));return X(t.errors,e=>console.error(e.message,e.pattern)),t.values},Qu=e=>t=>{const o=e(t);return Yu(o)},Ju=Kt().deviceType,Zu=Ju.isTouch(),Xu=gc.DOM,em=e=>{const t=e.indexOf("=")>0?e.split(/[;,](?![^=;,]*(?:[;,]|$))/):e.split(",");return ae(t,(e,t)=>{const o=t.split("="),n=o[0],a=o.length>1?o[1]:n;return e[mt(n)]=mt(a),e},{})},tm=e=>v(e,RegExp),om=e=>t=>t.options.get(e),nm=e=>w(e)||k(e),am=(e,t="")=>o=>{const n=w(o);if(n){if(-1!==o.indexOf("=")){const a=em(o);return{value:Te(a,e.id).getOr(t),valid:n}}return{value:o,valid:n}}return{valid:!1,message:"Must be a string."}},rm=e=>{const t=e.options.register;t("id",{processor:"string",default:e.id}),t("selector",{processor:"string"}),t("target",{processor:"object"}),t("suffix",{processor:"string"}),t("cache_suffix",{processor:"string"}),t("base_url",{processor:"string"}),t("referrer_policy",{processor:"string",default:""}),t("language_load",{processor:"boolean",default:!0}),t("inline",{processor:"boolean",default:!1}),t("iframe_attrs",{processor:"object",default:{}}),t("doctype",{processor:"string",default:"<!DOCTYPE html>"}),t("document_base_url",{processor:"string",default:e.documentBaseUrl}),t("body_id",{processor:am(e,"tinymce"),default:"tinymce"}),t("body_class",{processor:am(e),default:""}),t("content_security_policy",{processor:"string",default:""}),t("br_in_pre",{processor:"boolean",default:!0}),t("forced_root_block",{processor:e=>{const t=w(e)&&bt(e);return t?{value:e,valid:t}:{valid:!1,message:"Must be a non-empty string."}},default:"p"}),t("forced_root_block_attrs",{processor:"object",default:{}}),t("newline_behavior",{processor:e=>{const t=Q(["block","linebreak","invert","default"],e);return t?{value:e,valid:t}:{valid:!1,message:"Must be one of: block, linebreak, invert or default."}},default:"default"}),t("br_newline_selector",{processor:"string",default:".mce-toc h2,figcaption,caption"}),t("no_newline_selector",{processor:"string",default:""}),t("keep_styles",{processor:"boolean",default:!0}),t("end_container_on_empty_block",{processor:e=>j(e)||w(e)?{valid:!0,value:e}:{valid:!1,message:"Must be boolean or a string"},default:"blockquote"}),t("font_size_style_values",{processor:"string",default:"xx-small,x-small,small,medium,large,x-large,xx-large"}),t("font_size_legacy_values",{processor:"string",default:"xx-small,small,medium,large,x-large,xx-large,300%"}),t("font_size_classes",{processor:"string",default:""}),t("automatic_uploads",{processor:"boolean",default:!0}),t("images_reuse_filename",{processor:"boolean",default:!1}),t("images_replace_blob_uris",{processor:"boolean",default:!0}),t("icons",{processor:"string",default:""}),t("icons_url",{processor:"string",default:""}),t("images_upload_url",{processor:"string",default:""}),t("images_upload_base_path",{processor:"string",default:""}),t("images_upload_credentials",{processor:"boolean",default:!1}),t("images_upload_handler",{processor:"function"}),t("language",{processor:"string",default:"en"}),t("language_url",{processor:"string",default:""}),t("entity_encoding",{processor:"string",default:"named"}),t("indent",{processor:"boolean",default:!0}),t("indent_before",{processor:"string",default:"p,h1,h2,h3,h4,h5,h6,blockquote,div,title,style,pre,script,td,th,ul,ol,li,dl,dt,dd,area,table,thead,tfoot,tbody,tr,section,details,summary,article,hgroup,aside,figure,figcaption,option,optgroup,datalist"}),t("indent_after",{processor:"string",default:"p,h1,h2,h3,h4,h5,h6,blockquote,div,title,style,pre,script,td,th,ul,ol,li,dl,dt,dd,area,table,thead,tfoot,tbody,tr,section,details,summary,article,hgroup,aside,figure,figcaption,option,optgroup,datalist"}),t("indent_use_margin",{processor:"boolean",default:!1}),t("indentation",{processor:"string",default:"40px"}),t("content_css",{processor:e=>{const t=!1===e||w(e)||D(e,w);return t?w(e)?{value:Z(e.split(","),mt),valid:t}:y(e)?{value:e,valid:t}:!1===e?{value:[],valid:t}:{value:e,valid:t}:{valid:!1,message:"Must be false, a string or an array of strings."}},default:th(e)?[]:["default"]}),t("content_style",{processor:"string"}),t("content_css_cors",{processor:"boolean",default:!1}),t("font_css",{processor:e=>{const t=w(e)||D(e,w);if(t){const o=y(e)?e:Z(e.split(","),mt);return{value:o,valid:t}}return{valid:!1,message:"Must be a string or an array of strings."}},default:[]}),t("inline_boundaries",{processor:"boolean",default:!0}),t("inline_boundaries_selector",{processor:"string",default:"a[href],code,span.mce-annotation"}),t("object_resizing",{processor:e=>{const t=j(e)||w(e);return t?!1===e||Ju.isiPhone()||Ju.isiPad()?{value:"",valid:t}:{value:!0===e?"table,img,figure.image,div,video,iframe":e,valid:t}:{valid:!1,message:"Must be boolean or a string"}},default:!Zu}),t("resize_img_proportional",{processor:"boolean",default:!0}),t("event_root",{processor:"object"}),t("service_message",{processor:"string"}),t("theme",{processor:e=>!1===e||w(e)||A(e),default:"silver"}),t("theme_url",{processor:"string"}),t("formats",{processor:"object"}),t("format_empty_lines",{processor:"boolean",default:!1}),t("format_noneditable_selector",{processor:"string",default:""}),t("preview_styles",{processor:e=>{const t=!1===e||w(e);return t?{value:!1===e?"":e,valid:t}:{valid:!1,message:"Must be false or a string"}},default:"font-family font-size font-weight font-style text-decoration text-transform color background-color border border-radius outline text-shadow"}),t("custom_ui_selector",{processor:"string",default:""}),t("hidden_input",{processor:"boolean",default:!0}),t("submit_patch",{processor:"boolean",default:!0}),t("encoding",{processor:"string"}),t("add_form_submit_trigger",{processor:"boolean",default:!0}),t("add_unload_trigger",{processor:"boolean",default:!0}),t("custom_undo_redo_levels",{processor:"number",default:0}),t("disable_nodechange",{processor:"boolean",default:!1}),t("readonly",{processor:"boolean",default:!1}),t("editable_root",{processor:"boolean",default:!0}),t("plugins",{processor:"string[]",default:[]}),t("external_plugins",{processor:"object"}),t("forced_plugins",{processor:"string[]"}),t("model",{processor:"string",default:e.hasPlugin("rtc")?"plugin":"dom"}),t("model_url",{processor:"string"}),t("block_unsupported_drop",{processor:"boolean",default:!0}),t("visual",{processor:"boolean",default:!0}),t("visual_table_class",{processor:"string",default:"mce-item-table"}),t("visual_anchor_class",{processor:"string",default:"mce-item-anchor"}),t("iframe_aria_text",{processor:"string",default:"Rich Text Area. Press ALT-0 for help."}),t("setup",{processor:"function"}),t("init_instance_callback",{processor:"function"}),t("url_converter",{processor:"function",default:e.convertURL}),t("url_converter_scope",{processor:"object",default:e}),t("urlconverter_callback",{processor:"function"}),t("allow_conditional_comments",{processor:"boolean",default:!1}),t("allow_html_data_urls",{processor:"boolean",default:!1}),t("allow_svg_data_urls",{processor:"boolean"}),t("allow_html_in_named_anchor",{processor:"boolean",default:!1}),t("allow_script_urls",{processor:"boolean",default:!1}),t("allow_unsafe_link_target",{processor:"boolean",default:!1}),t("convert_fonts_to_spans",{processor:"boolean",default:!0,deprecated:!0}),t("fix_list_elements",{processor:"boolean",default:!1}),t("preserve_cdata",{processor:"boolean",default:!1}),t("remove_trailing_brs",{processor:"boolean",default:!0}),t("pad_empty_with_br",{processor:"boolean",default:!1}),t("inline_styles",{processor:"boolean",default:!0,deprecated:!0}),t("element_format",{processor:"string",default:"html"}),t("entities",{processor:"string"}),t("schema",{processor:"string",default:"html5"}),t("convert_urls",{processor:"boolean",default:!0}),t("relative_urls",{processor:"boolean",default:!0}),t("remove_script_host",{processor:"boolean",default:!0}),t("custom_elements",{processor:"string"}),t("extended_valid_elements",{processor:"string"}),t("invalid_elements",{processor:"string"}),t("invalid_styles",{processor:nm}),t("valid_children",{processor:"string"}),t("valid_classes",{processor:nm}),t("valid_elements",{processor:"string"}),t("valid_styles",{processor:nm}),t("verify_html",{processor:"boolean",default:!0}),t("auto_focus",{processor:e=>w(e)||!0===e}),t("browser_spellcheck",{processor:"boolean",default:!1}),t("protect",{processor:"array"}),t("images_file_types",{processor:"string",default:"jpeg,jpg,jpe,jfi,jif,jfif,png,gif,bmp,webp"}),t("deprecation_warnings",{processor:"boolean",default:!0}),t("a11y_advanced_options",{processor:"boolean",default:!1}),t("api_key",{processor:"string"}),t("paste_block_drop",{processor:"boolean",default:!1}),t("paste_data_images",{processor:"boolean",default:!0}),t("paste_preprocess",{processor:"function"}),t("paste_postprocess",{processor:"function"}),t("paste_webkit_styles",{processor:"string",default:"none"}),t("paste_remove_styles_if_webkit",{processor:"boolean",default:!0}),t("paste_merge_formats",{processor:"boolean",default:!0}),t("smart_paste",{processor:"boolean",default:!0}),t("paste_as_text",{processor:"boolean",default:!1}),t("paste_tab_spaces",{processor:"number",default:4}),t("text_patterns",{processor:e=>{if(D(e,k)||!1===e){const t=!1===e?[]:e;return{value:Yu(t),valid:!0}}return{valid:!1,message:"Must be an array of objects or false."}},default:[{start:"*",end:"*",format:"italic"},{start:"**",end:"**",format:"bold"},{start:"#",format:"h1"},{start:"##",format:"h2"},{start:"###",format:"h3"},{start:"####",format:"h4"},{start:"#####",format:"h5"},{start:"######",format:"h6"},{start:"1. ",cmd:"InsertOrderedList"},{start:"* ",cmd:"InsertUnorderedList"},{start:"- ",cmd:"InsertUnorderedList"}]}),t("text_patterns_lookup",{processor:e=>A(e)?{value:Qu(e),valid:!0}:{valid:!1,message:"Must be a single function"},default:e=>[]}),t("noneditable_class",{processor:"string",default:"mceNonEditable"}),t("editable_class",{processor:"string",default:"mceEditable"}),t("noneditable_regexp",{processor:e=>D(e,tm)?{value:e,valid:!0}:tm(e)?{value:[e],valid:!0}:{valid:!1,message:"Must be a RegExp or an array of RegExp."},default:[]}),t("table_tab_navigation",{processor:"boolean",default:!0}),t("highlight_on_focus",{processor:"boolean",default:!1}),t("xss_sanitization",{processor:"boolean",default:!0}),t("details_initial_state",{processor:e=>{const t=Q(["inherited","collapsed","expanded"],e);return t?{value:e,valid:t}:{valid:!1,message:"Must be one of: inherited, collapsed, or expanded."}},default:"inherited"}),t("details_serialized_state",{processor:e=>{const t=Q(["inherited","collapsed","expanded"],e);return t?{value:e,valid:t}:{valid:!1,message:"Must be one of: inherited, collapsed, or expanded."}},default:"inherited"}),t("init_content_sync",{processor:"boolean",default:!1}),t("newdocument_content",{processor:"string",default:""}),t("force_hex_color",{processor:e=>{const t=["always","rgb_only","off"],o=Q(t,e);return o?{value:e,valid:o}:{valid:!1,message:`Must be one of: ${t.join(", ")}.`}},default:"off"}),t("sandbox_iframes",{processor:"boolean",default:!1}),t("convert_unsafe_embeds",{processor:"boolean",default:!1}),e.on("ScriptsLoaded",()=>{t("directionality",{processor:"string",default:Fc.isRtl()?"rtl":void 0}),t("placeholder",{processor:"string",default:Xu.getAttrib(e.getElement(),"placeholder")})})},im=om("iframe_attrs"),lm=om("doctype"),sm=om("document_base_url"),cm=om("body_id"),dm=om("body_class"),um=om("content_security_policy"),mm=om("br_in_pre"),hm=om("forced_root_block"),pm=om("forced_root_block_attrs"),bm=om("newline_behavior"),gm=om("br_newline_selector"),fm=om("no_newline_selector"),vm=om("keep_styles"),wm=om("end_container_on_empty_block"),km=om("automatic_uploads"),Cm=om("images_reuse_filename"),ym=om("images_replace_blob_uris"),Om=om("icons"),jm=om("icons_url"),xm=om("images_upload_url"),_m=om("images_upload_base_path"),Vm=om("images_upload_credentials"),Am=om("images_upload_handler"),Nm=om("content_css_cors"),Dm=om("referrer_policy"),Em=om("language"),Tm=om("language_url"),Sm=om("indent_use_margin"),Bm=om("indentation"),Im=om("content_css"),zm=om("content_style"),Fm=om("font_css"),Mm=om("directionality"),Lm=om("inline_boundaries_selector"),Pm=om("object_resizing"),Rm=om("resize_img_proportional"),qm=om("placeholder"),$m=om("event_root"),Um=om("service_message"),Hm=om("theme"),Wm=om("theme_url"),Gm=om("model"),Km=om("model_url"),Ym=om("inline_boundaries"),Qm=om("formats"),Jm=om("preview_styles"),Zm=om("format_empty_lines"),Xm=om("format_noneditable_selector"),eh=om("custom_ui_selector"),th=om("inline"),oh=om("hidden_input"),nh=om("submit_patch"),ah=om("add_form_submit_trigger"),rh=om("add_unload_trigger"),ih=om("custom_undo_redo_levels"),lh=om("disable_nodechange"),sh=om("readonly"),ch=om("editable_root"),dh=om("content_css_cors"),uh=om("plugins"),mh=om("external_plugins"),hh=om("block_unsupported_drop"),ph=om("visual"),bh=om("visual_table_class"),gh=om("visual_anchor_class"),fh=om("iframe_aria_text"),vh=om("setup"),wh=om("init_instance_callback"),kh=om("urlconverter_callback"),Ch=om("auto_focus"),yh=om("browser_spellcheck"),Oh=om("protect"),jh=om("paste_block_drop"),xh=om("paste_data_images"),_h=om("paste_preprocess"),Vh=om("paste_postprocess"),Ah=om("newdocument_content"),Nh=om("paste_webkit_styles"),Dh=om("paste_remove_styles_if_webkit"),Eh=om("paste_merge_formats"),Th=om("smart_paste"),Sh=om("paste_as_text"),Bh=om("paste_tab_spaces"),Ih=om("allow_html_data_urls"),zh=om("text_patterns"),Fh=om("text_patterns_lookup"),Mh=om("noneditable_class"),Lh=om("editable_class"),Ph=om("noneditable_regexp"),Rh=om("preserve_cdata"),qh=om("highlight_on_focus"),$h=om("xss_sanitization"),Uh=om("init_content_sync"),Hh=e=>e.options.isSet("text_patterns_lookup"),Wh=e=>ho.explode(e.options.get("font_size_style_values")),Gh=e=>ho.explode(e.options.get("font_size_classes")),Kh=e=>"xml"===e.options.get("encoding"),Yh=e=>ho.explode(e.options.get("images_file_types")),Qh=om("table_tab_navigation"),Jh=om("details_initial_state"),Zh=om("details_serialized_state"),Xh=om("force_hex_color"),ep=om("sandbox_iframes"),tp=dr,op=Or,np=e=>{const t=e.parentNode;t&&t.removeChild(e)},ap=e=>{const t=gi(e);return{count:e.length-t.length,text:t}},rp=e=>{let t;while(-1!==(t=e.data.lastIndexOf(pi)))e.deleteData(t,1)},ip=(e,t)=>(mp(e),t),lp=(e,t)=>{const o=ap(e.data.substr(0,t.offset())),n=ap(e.data.substr(t.offset())),a=o.text+n.text;return a.length>0?(rp(e),tu(e,t.offset()-o.count)):t},sp=(e,t)=>{const o=t.container(),n=Y(ve(o.childNodes),e).map(e=>e<t.offset()?tu(o,t.offset()-1):t).getOr(t);return mp(e),n},cp=(e,t)=>op(e)&&t.container()===e?lp(e,t):ip(e,t),dp=(e,t)=>t.container()===e.parentNode?sp(e,t):ip(e,t),up=(e,t)=>tu.isTextPosition(t)?cp(e,t):dp(e,t),mp=e=>{tp(e)&&yi(e)&&(Oi(e)?e.removeAttribute("data-mce-caret"):np(e)),op(e)&&(rp(e),0===e.data.length&&np(e))},hp=Tr,pp=Ir,bp=Sr,gp="*[contentEditable=false],video,audio,embed,object",fp=(e,t,o)=>{const n=vd(t.getBoundingClientRect(),o);let a,r;if("BODY"===e.tagName){const t=e.ownerDocument.documentElement;a=e.scrollLeft||t.scrollLeft,r=e.scrollTop||t.scrollTop}else{const t=e.getBoundingClientRect();a=e.scrollLeft-t.left,r=e.scrollTop-t.top}n.left+=a,n.right+=a,n.top+=r,n.bottom+=r,n.width=1;let i=t.offsetWidth-t.clientWidth;return i>0&&(o&&(i*=-1),n.left+=i,n.right+=i),n},vp=e=>{var t,o;const n=rr(fn.fromDom(e),gp);for(let a=0;a<n.length;a++){const e=n[a].dom;let r=e.previousSibling;if(Ni(r)){const e=r.data;1===e.length?null===(t=r.parentNode)||void 0===t||t.removeChild(r):r.deleteData(e.length-1,1)}if(r=e.nextSibling,Ai(r)){const e=r.data;1===e.length?null===(o=r.parentNode)||void 0===o||o.removeChild(r):r.deleteData(0,1)}}},wp=(e,t,o,n)=>{const a=Rc();let r,i;const l=hm(e),s=e.dom,c=(e,n)=>{let r;if(d(),bp(n))return null;if(!o(n))return i=ji(n,e),r=n.ownerDocument.createRange(),Cp(i.nextSibling)?(r.setStart(i,0),r.setEnd(i,0)):(r.setStart(i,1),r.setEnd(i,1)),r;{const o=Vi(l,n,e),c=fp(t,n,e);s.setStyle(o,"top",c.top),i=o;const d=s.create("div",{class:"mce-visual-caret","data-mce-bogus":"all"});s.setStyles(d,{...c}),s.add(t,d),a.set({caret:d,element:n,before:e}),e&&s.addClass(d,"mce-visual-caret-before"),u(),r=n.ownerDocument.createRange(),r.setStart(o,0),r.setEnd(o,0)}return r},d=()=>{vp(t),i&&(mp(i),i=null),a.on(e=>{s.remove(e.caret),a.clear()}),r&&(clearInterval(r),r=void 0)},u=()=>{r=setInterval(()=>{a.on(e=>{n()?s.toggleClass(e.caret,"mce-visual-caret-hidden"):s.addClass(e.caret,"mce-visual-caret-hidden")})},500)},m=()=>{a.on(e=>{const o=fp(t,e.element,e.before);s.setStyles(e.caret,{...o})})},h=()=>clearInterval(r),p=()=>".mce-visual-caret {position: absolute;background-color: black;background-color: currentcolor;}.mce-visual-caret-hidden {display: none;}*[data-mce-caret] {position: absolute;left: -1000px;right: auto;top: 0;margin: 0;padding: 0;}";return{show:c,hide:d,getCss:p,reposition:m,destroy:h}},kp=()=>to.browser.isFirefox(),Cp=e=>hp(e)||pp(e),yp=e=>{const t=Cp(e)||kr(e)&&kp();return t&&Dn(fn.fromDom(e)).exists(ua)},Op=Er,jp=Tr,xp=Ir,_p=br("display","block table table-cell table-caption list-item"),Vp=yi,Ap=ki,Np=dr,Dp=Or,Ep=Ri,Tp=e=>e>0,Sp=e=>e<0,Bp=(e,t)=>{let o;while(o=e(t))if(!Ap(o))return o;return null},Ip=(e,t,o,n,a)=>{const r=new lr(e,n),i=jp(e)||Ap(e);let l;if(Sp(t)){if(i&&(l=Bp(r.prev.bind(r),!0),o(l)))return l;while(l=Bp(r.prev.bind(r),a))if(o(l))return l}if(Tp(t)){if(i&&(l=Bp(r.next.bind(r),!0),o(l)))return l;while(l=Bp(r.next.bind(r),a))if(o(l))return l}return null},zp=(e,t)=>{const o=e=>Op(e.dom),n=e=>e.dom===t;return oa(fn.fromDom(e),o,n).map(e=>e.dom).getOr(t)},Fp=(e,t)=>{while(e&&e!==t){if(_p(e))return e;e=e.parentNode}return null},Mp=(e,t,o)=>Fp(e.container(),o)===Fp(t.container(),o),Lp=(e,t)=>{if(!t)return U.none();const o=t.container(),n=t.offset();return Np(o)?U.from(o.childNodes[n+e]):U.none()},Pp=(e,t)=>{var o;const n=null!==(o=t.ownerDocument)&&void 0!==o?o:document,a=n.createRange();return e?(a.setStartBefore(t),a.setEndBefore(t)):(a.setStartAfter(t),a.setEndAfter(t)),a},Rp=(e,t,o)=>Fp(t,e)===Fp(o,e),qp=(e,t,o)=>{const n=e?"previousSibling":"nextSibling";let a=o;while(a&&a!==t){let e=a[n];if(e&&Vp(e)&&(e=e[n]),jp(e)||xp(e)){if(Rp(t,e,a))return e;break}if(Ep(e))break;a=a.parentNode}return null},$p=F(Pp,!0),Up=F(Pp,!1),Hp=(e,t,o)=>{let n;const a=F(qp,!0,t),r=F(qp,!1,t),i=o.startContainer,l=o.startOffset;if(ki(i)){const e=Dp(i)?i.parentNode:i,t=e.getAttribute("data-mce-caret");if("before"===t&&(n=e.nextSibling,yp(n)))return $p(n);if("after"===t&&(n=e.previousSibling,yp(n)))return Up(n)}if(!o.collapsed)return o;if(Or(i)){if(Vp(i)){if(1===e){if(n=r(i),n)return $p(n);if(n=a(i),n)return Up(n)}if(-1===e){if(n=a(i),n)return Up(n);if(n=r(i),n)return $p(n)}return o}if(Ni(i)&&l>=i.data.length-1)return 1===e&&(n=r(i),n)?$p(n):o;if(Ai(i)&&l<=1)return-1===e&&(n=a(i),n)?Up(n):o;if(l===i.data.length)return n=r(i),n?$p(n):o;if(0===l)return n=a(i),n?Up(n):o}return o},Wp=(e,t)=>Lp(e?0:-1,t).filter(jp),Gp=(e,t,o)=>{const n=Hp(e,t,o);return-1===e?tu.fromRangeStart(n):tu.fromRangeEnd(n)},Kp=e=>U.from(e.getNode()).map(fn.fromDom),Yp=e=>U.from(e.getNode(!0)).map(fn.fromDom),Qp=(e,t)=>{let o=t;while(o=e(o))if(o.isVisible())return o;return o},Jp=(e,t)=>{const o=Mp(e,t);return!(o||!Nr(e.getNode()))||o};var Zp;(function(e){e[e["Backwards"]=-1]="Backwards",e[e["Forwards"]=1]="Forwards"})(Zp||(Zp={}));const Xp=Tr,eb=Or,tb=dr,ob=Nr,nb=Ri,ab=Wi,rb=Gi,ib=(e,t)=>{const o=[];let n=e;while(n&&n!==t)o.push(n),n=n.parentNode;return o},lb=(e,t)=>e.hasChildNodes()&&t<e.childNodes.length?e.childNodes[t]:null,sb=(e,t)=>{if(Tp(e)){if(nb(t.previousSibling)&&!eb(t.previousSibling))return tu.before(t);if(eb(t))return tu(t,0)}if(Sp(e)){if(nb(t.nextSibling)&&!eb(t.nextSibling))return tu.after(t);if(eb(t))return tu(t,t.data.length)}return Sp(e)?ob(t)?tu.before(t):tu.after(t):tu.before(t)},cb=(e,t)=>{const o=t.nextSibling;return o&&nb(o)?eb(o)?tu(o,0):tu.before(o):db(Zp.Forwards,tu.after(t),e)},db=(e,t,o)=>{let n,a,r,i;if(!tb(o)||!t)return null;if(t.isEqual(tu.after(o))&&o.lastChild){if(i=tu.after(o.lastChild),Sp(e)&&nb(o.lastChild)&&tb(o.lastChild))return ob(o.lastChild)?tu.before(o.lastChild):i}else i=t;const l=i.container();let s=i.offset();if(eb(l)){if(Sp(e)&&s>0)return tu(l,--s);if(Tp(e)&&s<l.length)return tu(l,++s);n=l}else{if(Sp(e)&&s>0&&(a=lb(l,s-1),nb(a)))return!ab(a)&&(r=Ip(a,e,rb,a),r)?eb(r)?tu(r,r.data.length):tu.after(r):eb(a)?tu(a,a.data.length):tu.before(a);if(Tp(e)&&s<l.childNodes.length&&(a=lb(l,s),nb(a)))return ob(a)?cb(o,a):!ab(a)&&(r=Ip(a,e,rb,a),r)?eb(r)?tu(r,0):tu.before(r):eb(a)?tu(a,0):tu.after(a);n=a||i.getNode()}if(n&&(Tp(e)&&i.isAtEnd()||Sp(e)&&i.isAtStart())&&(n=Ip(n,e,$,o,!0),rb(n,o)))return sb(e,n);a=n?Ip(n,e,rb,o):n;const c=We(oe(ib(l,o),Xp));return!c||a&&c.contains(a)?a?sb(e,a):null:(i=Tp(e)?tu.after(c):tu.before(c),i)},ub=e=>({next:t=>db(Zp.Forwards,t,e),prev:t=>db(Zp.Backwards,t,e)}),mb=(e,t,o)=>{const n=e?tu.before(o):tu.after(o);return wb(e,t,n)},hb=e=>Nr(e)?tu.before(e):tu.after(e),pb=e=>tu.isTextPosition(e)?0===e.offset():Ri(e.getNode()),bb=e=>{if(tu.isTextPosition(e)){const t=e.container();return e.offset()===t.data.length}return Ri(e.getNode(!0))},gb=(e,t)=>!tu.isTextPosition(e)&&!tu.isTextPosition(t)&&e.getNode()===t.getNode(!0),fb=e=>!tu.isTextPosition(e)&&Nr(e.getNode()),vb=(e,t,o)=>e?!gb(t,o)&&!fb(t)&&bb(t)&&pb(o):!gb(o,t)&&pb(t)&&bb(o),wb=(e,t,o)=>{const n=ub(t);return U.from(e?n.next(o):n.prev(o))},kb=(e,t,o)=>wb(e,t,o).bind(n=>Mp(o,n,t)&&vb(e,o,n)?wb(e,t,n):U.some(n)),Cb=(e,t,o,n)=>kb(e,t,o).bind(o=>n(o)?Cb(e,t,o,n):U.some(o)),yb=(e,t)=>{const o=e?t.firstChild:t.lastChild;return Or(o)?U.some(tu(o,e?0:o.data.length)):o?Ri(o)?U.some(e?tu.before(o):hb(o)):mb(e,t,o):U.none()},Ob=F(wb,!0),jb=F(wb,!1),xb=F(yb,!0),_b=F(yb,!1),Vb="_mce_caret",Ab=e=>dr(e)&&e.id===Vb,Nb=(e,t)=>{let o=t;while(o&&o!==e){if(Ab(o))return o;o=o.parentNode}return null},Db=e=>w(e.start),Eb=e=>Se(e,"rng"),Tb=e=>Se(e,"id"),Sb=e=>Se(e,"name"),Bb=e=>ho.isArray(e.start),Ib=e=>!(!Sb(e)&&j(e.forward))||e.forward,zb=(e,t)=>(dr(t)&&e.isBlock(t)&&!t.innerHTML&&(t.innerHTML='<br data-mce-bogus="1" />'),t),Fb=(e,t)=>{const o=U.from(wu(e.getRoot(),t.start)),n=U.from(wu(e.getRoot(),t.end));return fo(o,n,(o,n)=>{const a=e.createRng();return a.setStart(o.container(),o.offset()),a.setEnd(n.container(),n.offset()),{range:a,forward:Ib(t)}})},Mb=(e,t)=>{var o;const n=null!==(o=e.ownerDocument)&&void 0!==o?o:document,a=n.createTextNode(pi);e.appendChild(a),t.setStart(a,0),t.setEnd(a,0)},Lb=e=>!e.hasChildNodes(),Pb=(e,t)=>_b(e).fold(q,e=>(t.setStart(e.container(),e.offset()),t.setEnd(e.container(),e.offset()),!0)),Rb=(e,t,o)=>!(!Lb(t)||!Nb(e,t))&&(Mb(t,o),!0),qb=(e,t,o,n)=>{const a=o[t?"start":"end"],r=e.getRoot();if(a){let e=r,o=a[0];for(let t=a.length-1;e&&t>=1;t--){const o=e.childNodes;if(Rb(r,e,n))return!0;if(a[t]>o.length-1)return!!Rb(r,e,n)||Pb(e,n);e=o[a[t]]}Or(e)&&(o=Math.min(a[0],e.data.length)),dr(e)&&(o=Math.min(a[0],e.childNodes.length)),t?n.setStart(e,o):n.setEnd(e,o)}return!0},$b=e=>Or(e)&&e.data.length>0,Ub=(e,t,o)=>{const n=e.get(o.id+"_"+t),a=null===n||void 0===n?void 0:n.parentNode,r=o.keep;if(n&&a){let i,l;if("start"===t?r?n.hasChildNodes()?(i=n.firstChild,l=1):$b(n.nextSibling)?(i=n.nextSibling,l=0):$b(n.previousSibling)?(i=n.previousSibling,l=n.previousSibling.data.length):(i=a,l=e.nodeIndex(n)+1):(i=a,l=e.nodeIndex(n)):r?n.hasChildNodes()?(i=n.firstChild,l=1):$b(n.previousSibling)?(i=n.previousSibling,l=n.previousSibling.data.length):(i=a,l=e.nodeIndex(n)):(i=a,l=e.nodeIndex(n)),!r){const a=n.previousSibling,r=n.nextSibling;let s;ho.each(ho.grep(n.childNodes),e=>{Or(e)&&(e.data=e.data.replace(/\uFEFF/g,""))});while(s=e.get(o.id+"_"+t))e.remove(s,!0);if(Or(r)&&Or(a)&&!to.browser.isOpera()){const t=a.data.length;a.appendData(r.data),e.remove(r),i=a,l=t}}return U.some(tu(i,l))}return U.none()},Hb=(e,t)=>{const o=e.createRng();return qb(e,!0,t,o)&&qb(e,!1,t,o)?U.some({range:o,forward:Ib(t)}):U.none()},Wb=(e,t)=>{const o=Ub(e,"start",t),n=Ub(e,"end",t);return fo(o,n.or(o),(o,n)=>{const a=e.createRng();return a.setStart(zb(e,o.container()),o.offset()),a.setEnd(zb(e,n.container()),n.offset()),{range:a,forward:Ib(t)}})},Gb=(e,t)=>U.from(e.select(t.name)[t.index]).map(t=>{const o=e.createRng();return o.selectNode(t),{range:o,forward:!0}}),Kb=(e,t)=>{const o=e.dom;if(t){if(Bb(t))return Hb(o,t);if(Db(t))return Fb(o,t);if(Tb(t))return Wb(o,t);if(Sb(t))return Gb(o,t);if(Eb(t))return U.some({range:t.rng,forward:Ib(t)})}return U.none()},Yb=(e,t,o)=>Bu(e,t,o),Qb=(e,t)=>{Kb(e,t).each(({range:t,forward:o})=>{e.setRng(t,o)})},Jb=e=>dr(e)&&"SPAN"===e.tagName&&"bookmark"===e.getAttribute("data-mce-type"),Zb=e=>t=>e===t,Xb=Zb(Pr),eg=e=>""!==e&&-1!==" \f\n\r\t\v".indexOf(e),tg=e=>!eg(e)&&!Xb(e)&&!Rr(e),og=e=>{const t=[];if(e)for(let o=0;o<e.rangeCount;o++)t.push(e.getRangeAt(o));return t},ng=e=>ce(e,e=>{const t=Ad(e);return t?[fn.fromDom(t)]:[]}),ag=e=>og(e).length>1,rg=e=>oe(ng(e),li),ig=e=>rr(e,"td[data-mce-selected],th[data-mce-selected]"),lg=(e,t)=>{const o=ig(t);return o.length>0?o:rg(e)},sg=e=>lg(og(e.selection.getSel()),fn.fromDom(e.getBody())),cg=(e,t)=>la(e,"table",t),dg=e=>{const t=e.startContainer,o=e.startOffset;return Or(t)?0===o?U.some(fn.fromDom(t)):U.none():U.from(t.childNodes[o]).map(fn.fromDom)},ug=e=>{const t=e.endContainer,o=e.endOffset;return Or(t)?o===t.data.length?U.some(fn.fromDom(t)):U.none():U.from(t.childNodes[o-1]).map(fn.fromDom)},mg=e=>Ln(e).fold(B([e]),t=>[e].concat(mg(t))),hg=e=>Pn(e).fold(B([e]),t=>"br"===So(t)?Sn(t).map(t=>[e].concat(hg(t))).getOr([]):[e].concat(hg(t))),pg=(e,t)=>fo(dg(t),ug(t),(t,o)=>{const n=ie(mg(e),F(On,t)),a=ie(hg(e),F(On,o));return n.isSome()&&a.isSome()}).getOr(!1),bg=(e,t,o,n)=>{const a=o,r=new lr(o,a),i=Ne(e.schema.getMoveCaretBeforeOnEnterElements(),(e,t)=>!Q(["td","th","table"],t.toLowerCase()));let l=o;do{if(Or(l)&&0!==ho.trim(l.data).length)return void(n?t.setStart(l,0):t.setEnd(l,l.data.length));if(i[l.nodeName])return void(n?t.setStartBefore(l):"BR"===l.nodeName?t.setEndBefore(l):t.setEndAfter(l))}while(l=n?r.next():r.prev());"BODY"===a.nodeName&&(n?t.setStart(a,0):t.setEnd(a,a.childNodes.length))},gg=e=>{const t=e.selection.getSel();return V(t)&&t.rangeCount>0},fg=(e,t)=>{const o=sg(e);o.length>0?X(o,o=>{const n=o.dom,a=e.dom.createRng();a.setStartBefore(n),a.setEndAfter(n),t(a,!0)}):t(e.selection.getRng(),!1)},vg=(e,t,o)=>{const n=Su(e,t);o(n),e.moveToBookmark(n)},wg=e=>N(null===e||void 0===e?void 0:e.nodeType),kg=e=>dr(e)&&!Jb(e)&&!Ab(e)&&!vr(e),Cg=(e,t)=>{if(kg(t)&&!/^(TD|TH)$/.test(t.nodeName)){const o=e.getAttrib(t,"data-mce-selected"),n=parseInt(o,10);return!isNaN(n)&&n>0}return!1},yg=(e,t,o)=>{const{selection:n,dom:a}=e,r=n.getNode(),i=Tr(r);vg(n,!0,()=>{t()});const l=i&&Tr(r);l&&a.isChildOf(r,e.getBody())?e.selection.select(r):o(n.getStart())&&Og(a,n)},Og=(e,t)=>{var o,n;const a=t.getRng(),{startContainer:r,startOffset:i}=a,l=t.getNode();if(!Cg(e,l)&&dr(r)){const l=r.childNodes,s=e.getRoot();let c;if(i<l.length){const t=l[i];c=new lr(t,null!==(o=e.getParent(t,e.isBlock))&&void 0!==o?o:s)}else{const t=l[l.length-1];c=new lr(t,null!==(n=e.getParent(t,e.isBlock))&&void 0!==n?n:s),c.next(!0)}for(let o=c.current();o;o=c.next()){if("false"===e.getContentEditable(o))return;if(Or(o)&&!Vg(o))return a.setStart(o,0),void t.setRng(a)}}},jg=(e,t,o)=>{if(e){const n=t?"nextSibling":"previousSibling";for(e=o?e:e[n];e;e=e[n])if(dr(e)||!Vg(e))return e}},xg=(e,t)=>!!e.getTextBlockElements()[t.nodeName.toLowerCase()]||El(e,t),_g=(e,t,o)=>e.schema.isValidChild(t,o),Vg=(e,t=!1)=>{if(V(e)&&Or(e)){const o=t?e.data.replace(/ /g," "):e.data;return Yi(o)}return!1},Ag=e=>V(e)&&Or(e)&&0===e.length,Ng=(e,t)=>{const o="[data-mce-cef-wrappable]",n=Xm(e),a=gt(n)?o:`${o},${n}`;return wn(fn.fromDom(t),a)},Dg=(e,t)=>{const o=e.dom;return kg(t)&&"false"===o.getContentEditable(t)&&Ng(e,t)&&0===o.select('[contenteditable="true"]',t).length},Eg=(e,t)=>A(e)?e(t):(V(t)&&(e=e.replace(/%(\w+)/g,(e,o)=>t[o]||e)),e),Tg=(e,t)=>(e=e||"",t=t||"",e=""+(e.nodeName||e),t=""+(t.nodeName||t),e.toLowerCase()===t.toLowerCase()),Sg=(e,t)=>{if(_(e))return null;{let o=String(e);return"color"!==t&&"backgroundColor"!==t||(o=$s(o)),"fontWeight"===t&&700===e&&(o="bold"),"fontFamily"===t&&(o=o.replace(/[\'\"]/g,"").replace(/,\s+/g,",")),o}},Bg=(e,t,o)=>{const n=e.getStyle(t,o);return Sg(n,o)},Ig=(e,t)=>{let o;return e.getParent(t,t=>!!dr(t)&&(o=e.getStyle(t,"text-decoration"),!!o&&"none"!==o)),o},zg=(e,t,o)=>e.getParents(t,o,e.getRoot()),Fg=(e,t,o)=>{const n=e.formatter.get(t);return V(n)&&J(n,o)},Mg=(e,t)=>{const o=e=>{const t=e=>A(e)||e.length>1&&"%"===e.charAt(0);return J(["styles","attributes"],o=>Te(e,o).exists(e=>{const o=y(e)?e:Ee(e);return J(o,t)}))};return Fg(e,t,o)},Lg=(e,t,o)=>{const n=["inline","block","selector","attributes","styles","classes"],a=e=>Ne(e,(e,t)=>J(n,e=>e===t));return Fg(e,t,t=>{const n=a(t);return Fg(e,o,e=>{const t=a(e);return Ie(n,t)})})},Pg=e=>Be(e,"block"),Rg=e=>Pg(e)&&!0===e.wrapper,qg=e=>Pg(e)&&!0!==e.wrapper,$g=e=>Be(e,"selector"),Ug=e=>Be(e,"inline"),Hg=e=>$g(e)&&Ug(e)&&po(Te(e,"mixed"),!0),Wg=e=>$g(e)&&!1!==e.expand&&!Ug(e),Gg=e=>{const t=[];let o=e;while(o){if(Or(o)&&o.data!==pi||o.childNodes.length>1)return[];dr(o)&&t.push(o),o=o.firstChild}return t},Kg=e=>Gg(e).length>0,Yg=e=>Ab(e.dom)&&Kg(e.dom),Qg=Jb,Jg=zg,Zg=Vg,Xg=xg,ef=e=>Nr(e)&&e.getAttribute("data-mce-bogus")&&!e.nextSibling,tf=(e,t)=>{let o=t;while(o){if(dr(o)&&e.getContentEditable(o))return"false"===e.getContentEditable(o)?o:t;o=o.parentNode}return t},of=(e,t,o,n)=>{const a=t.data;if(e){for(let r=o;r>0;r--)if(n(a.charAt(r-1)))return r}else for(let r=o;r<a.length;r++)if(n(a.charAt(r)))return r;return-1},nf=(e,t,o)=>of(e,t,o,e=>Xb(e)||eg(e)),af=(e,t,o)=>of(e,t,o,tg),rf=(e,t,o,n,a,r)=>{let i;const l=e.getParent(o,e.isBlock)||t,s=(t,o,n)=>{const r=bd(e),s=a?r.backwards:r.forwards;return U.from(s(t,o,(e,t)=>Qg(e.parentNode)?-1:(i=e,n(a,e,t)),l))},c=s(o,n,nf);return c.bind(e=>r?s(e.container,e.offset+(a?-1:0),af):U.some(e)).orThunk(()=>i?U.some({container:i,offset:a?0:i.length}):U.none())},lf=(e,t,o,n,a)=>{const r=n[a];Or(n)&&gt(n.data)&&r&&(n=r);const i=Jg(e,n);for(let l=0;l<i.length;l++)for(let n=0;n<t.length;n++){const a=t[n];if((!V(a.collapsed)||a.collapsed===o.collapsed)&&($g(a)&&e.is(i[l],a.selector)))return i[l]}return n},sf=(e,t,o,n)=>{var a;let r=o;const i=e.getRoot(),l=t[0];if(Pg(l)&&(r=l.wrapper?null:e.getParent(o,l.block,i)),!r){const t=null!==(a=e.getParent(o,"LI,TD,TH,SUMMARY"))&&void 0!==a?a:i;r=e.getParent(Or(o)?o.parentNode:o,t=>t!==i&&Xg(e.schema,t),t)}if(r&&Pg(l)&&l.wrapper&&(r=Jg(e,r,"ul,ol").reverse()[0]||r),!r){r=o;while(r&&r[n]&&!e.isBlock(r[n]))if(r=r[n],Tg(r,"br"))break}return r||o},cf=(e,t,o,n)=>{const a=o.parentNode;return!V(o[n])&&(!(a!==t&&!_(a)&&!e.isBlock(a))||cf(e,t,a,n))},df=(e,t,o,n,a)=>{let r=o;const i=a?"previousSibling":"nextSibling",l=e.getRoot();if(Or(o)&&!Zg(o)&&(a?n>0:n<o.data.length))return o;while(r){if(!t[0].block_expand&&e.isBlock(r))return r;for(let t=r[i];t;t=t[i]){const o=Or(t)&&!cf(e,l,t,i);if(!Qg(t)&&!ef(t)&&!Zg(t,o))return r}if(r===l||r.parentNode===l){o=r;break}r=r.parentNode}return o},uf=e=>Qg(e.parentNode)||Qg(e),mf=(e,t,o,n=!1)=>{let{startContainer:a,startOffset:r,endContainer:i,endOffset:l}=t;const s=o[0];if(dr(a)&&a.hasChildNodes()&&(a=Nd(a,r),Or(a)&&(r=0)),dr(i)&&i.hasChildNodes()&&(i=Nd(i,t.collapsed?l:l-1),Or(i)&&(l=i.data.length)),a=tf(e,a),i=tf(e,i),uf(a)&&(a=Qg(a)?a:a.parentNode,a=t.collapsed?a.previousSibling||a:a.nextSibling||a,Or(a)&&(r=t.collapsed?a.length:0)),uf(i)&&(i=Qg(i)?i:i.parentNode,i=t.collapsed?i.nextSibling||i:i.previousSibling||i,Or(i)&&(l=t.collapsed?0:i.length)),t.collapsed){const t=rf(e,e.getRoot(),a,r,!0,n);t.each(({container:e,offset:t})=>{a=e,r=t});const o=rf(e,e.getRoot(),i,l,!1,n);o.each(({container:e,offset:t})=>{i=e,l=t})}return(Ug(s)||s.block_expand)&&(Ug(s)&&Or(a)&&0!==r||(a=df(e,o,a,r,!0)),Ug(s)&&Or(i)&&l!==i.data.length||(i=df(e,o,i,l,!1))),Wg(s)&&(a=lf(e,o,t,a,"previousSibling"),i=lf(e,o,t,i,"nextSibling")),(Pg(s)||$g(s))&&(a=sf(e,o,a,"previousSibling"),i=sf(e,o,i,"nextSibling"),Pg(s)&&(e.isBlock(a)||(a=df(e,o,a,r,!0)),e.isBlock(i)||(i=df(e,o,i,l,!1)))),dr(a)&&a.parentNode&&(r=e.nodeIndex(a),a=a.parentNode),dr(i)&&i.parentNode&&(l=e.nodeIndex(i)+1,i=i.parentNode),{startContainer:a,startOffset:r,endContainer:i,endOffset:l}},hf=(e,t,o)=>{var n;const a=t.startOffset,r=Nd(t.startContainer,a),i=t.endOffset,l=Nd(t.endContainer,i-1),s=e=>{const t=e[0];Or(t)&&t===r&&a>=t.data.length&&e.splice(0,1);const o=e[e.length-1];return 0===i&&e.length>0&&o===l&&Or(o)&&e.splice(e.length-1,1),e},c=(e,t,o)=>{const n=[];for(;e&&e!==o;e=e[t])n.push(e);return n},d=(t,o)=>e.getParent(t,e=>e.parentNode===o,o),u=(e,t,n)=>{const a=n?"nextSibling":"previousSibling";for(let r=e,i=r.parentNode;r&&r!==t;r=i){i=r.parentNode;const t=c(r===e?r:r[a],a);t.length&&(n||t.reverse(),o(s(t)))}};if(r===l)return o(s([r]));const m=null!==(n=e.findCommonAncestor(r,l))&&void 0!==n?n:e.getRoot();if(e.isChildOf(r,l))return u(r,m,!0);if(e.isChildOf(l,r))return u(l,m);const h=d(r,m)||r,p=d(l,m)||l;u(r,h,!0);const b=c(h===r?h:h.nextSibling,"nextSibling",p===l?p.nextSibling:p);b.length&&o(s(b)),u(l,p)},pf=['pre[class*=language-][contenteditable="false"]',"figure.image","div[data-ephox-embed-iri]","div.tiny-pageembed","div.mce-toc","div[data-mce-toc]"],bf=e=>Lo(e)&&Hr(e)===pi,gf=(e,t,o,n)=>Nn(t).fold(()=>"skipping",a=>"br"===n||bf(t)?"valid":Zc(t)?"existing":Ab(t.dom)?"caret":J(pf,e=>wn(t,e))?"valid-block":_g(e,o,n)&&_g(e,So(a),o)?"valid":"invalid-child"),ff=(e,t)=>{const o=mf(e.dom,t,[{inline:"span"}]);t.setStart(o.startContainer,o.startOffset),t.setEnd(o.endContainer,o.endOffset),e.selection.setRng(t)},vf=(e,t,o,n,a,r)=>{const{uid:i=t,...l}=o;ln(e,Uc()),Uo(e,""+Wc(),i),Uo(e,""+Hc(),n);const{attributes:s={},classes:c=[]}=a(i,l);if(Ho(e,s),ld(e,c),r){c.length>0&&Uo(e,""+Kc(),c.join(","));const t=Ce(s);t.length>0&&Uo(e,""+Yc(),t.join(","))}},wf=e=>{cn(e,Uc()),Yo(e,""+Wc()),Yo(e,""+Hc()),Yo(e,""+Gc());const t=Go(e,""+Yc()).map(e=>e.split(",")).getOr([]),o=Go(e,""+Kc()).map(e=>e.split(",")).getOr([]);X(t,t=>Yo(e,t)),sd(e,o),Yo(e,""+Kc()),Yo(e,""+Yc())},kf=(e,t,o,n,a)=>{const r=fn.fromTag("span",e);return vf(r,t,o,n,a,!1),r},Cf=(e,t,o,n,a,r)=>{const i=[],l=kf(e.getDoc(),o,r,n,a),s=Rc(),c=()=>{s.clear()},d=()=>s.get().getOrThunk(()=>{const e=dd(l);return i.push(e),s.set(e),e}),u=e=>{X(e,m)},m=t=>{const i=gf(e,t,"span",So(t));switch(i){case"invalid-child":{c();const e=Fn(t);u(e),c();break}case"valid-block":c(),vf(t,o,r,n,a,!0);break;case"valid":{const e=d();Aa(t,e);break}}},h=e=>{const t=Z(e,fn.fromDom);u(t)};return hf(e.dom,t,e=>{c(),h(e)}),i},yf=(e,t,o,n)=>{e.undoManager.transact(()=>{const a=e.selection,r=a.getRng(),i=sg(e).length>0,l=id("mce-annotation");if(r.collapsed&&!i&&ff(e,r),a.getRng().collapsed&&!i){const r=kf(e.getDoc(),l,n,t,o.decorate);Fa(r,Pr),a.getRng().insertNode(r.dom),a.select(r.dom)}else vg(a,!1,()=>{fg(e,a=>{Cf(e,a,l,t,o.decorate,n)})})})},Of=e=>{const t=ad();nd(e,t);const o=od(e,t),n=qo("span"),a=e=>{X(e,e=>{n(e)?Sa(e):wf(e)})};return{register:(e,o)=>{t.register(e,o)},annotate:(o,n)=>{t.lookup(o).each(t=>{yf(e,o,t,n)})},annotationChanged:(e,t)=>{o.addListener(e,t)},remove:t=>{Jc(e,U.some(t)).each(({elements:t})=>{const o=e.selection.getBookmark();a(t),e.selection.moveToBookmark(o)})},removeAll:t=>{const o=e.selection.getBookmark();Oe(td(e,t),(e,t)=>{a(e)}),e.selection.moveToBookmark(o)},getAll:t=>{const o=td(e,t);return je(o,e=>Z(e,e=>e.dom))}}},jf=e=>({getBookmark:F(Yb,e),moveToBookmark:F(Qb,e)});jf.isBookmarkNode=Jb;const xf=(e,t,o)=>!o.collapsed&&J(o.getClientRects(),o=>Od(o,e,t)),_f=(e,t)=>e.dispatch("PreProcess",t),Vf=(e,t)=>e.dispatch("PostProcess",t),Af=e=>{e.dispatch("remove")},Nf=e=>{e.dispatch("detach")},Df=(e,t)=>{e.dispatch("SwitchMode",{mode:t})},Ef=(e,t,o,n,a)=>{e.dispatch("ObjectResizeStart",{target:t,width:o,height:n,origin:a})},Tf=(e,t,o,n,a)=>{e.dispatch("ObjectResized",{target:t,width:o,height:n,origin:a})},Sf=e=>{e.dispatch("PreInit")},Bf=e=>{e.dispatch("PostRender")},If=e=>{e.dispatch("Init")},zf=(e,t)=>{e.dispatch("PlaceholderToggle",{state:t})},Ff=(e,t,o)=>{e.dispatch(t,o)},Mf=(e,t,o,n)=>{e.dispatch("FormatApply",{format:t,node:o,vars:n})},Lf=(e,t,o,n)=>{e.dispatch("FormatRemove",{format:t,node:o,vars:n})},Pf=(e,t)=>e.dispatch("BeforeSetContent",t),Rf=(e,t)=>e.dispatch("SetContent",t),qf=(e,t)=>e.dispatch("BeforeGetContent",t),$f=(e,t)=>e.dispatch("GetContent",t),Uf=(e,t)=>{e.dispatch("AutocompleterStart",t)},Hf=(e,t)=>{e.dispatch("AutocompleterUpdate",t)},Wf=e=>{e.dispatch("AutocompleterEnd")},Gf=(e,t,o)=>e.dispatch("PastePreProcess",{content:t,internal:o}),Kf=(e,t,o)=>e.dispatch("PastePostProcess",{node:t,internal:o}),Yf=(e,t)=>e.dispatch("PastePlainTextToggle",{state:t}),Qf=(e,t)=>e.dispatch("EditableRootStateChange",{state:t}),Jf={BACKSPACE:8,DELETE:46,DOWN:40,ENTER:13,ESC:27,LEFT:37,RIGHT:39,SPACEBAR:32,TAB:9,UP:38,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,modifierPressed:e=>e.shiftKey||e.ctrlKey||e.altKey||Jf.metaKeyPressed(e),metaKeyPressed:e=>to.os.isMacOS()||to.os.isiOS()?e.metaKey:e.ctrlKey&&!e.altKey},Zf="data-mce-selected",Xf="table,img,figure.image,hr,video,span.mce-preview-object,details",ev=Math.abs,tv=Math.round,ov={nw:[0,0,-1,-1],ne:[1,0,1,-1],se:[1,1,1,1],sw:[0,1,-1,1]},nv=e=>"longpress"===e.type||0===e.type.indexOf("touch"),av=(e,t)=>{const o=t.dom,n=t.getDoc(),a=document,r=t.getBody();let i,l,s,c,d,u,m,h,p,b,g,f,v,w,k,C,y;const O=e=>V(e)&&(Dr(e)||o.is(e,"figure.image")),j=e=>Ir(e)||o.hasClass(e,"mce-preview-object"),x=(e,t)=>{if(nv(e)){const o=e.touches[0];return O(e.target)&&!xf(o.clientX,o.clientY,t)}return O(e.target)&&!xf(e.clientX,e.clientY,t)},_=e=>{const o=e.target;x(e,t.selection.getRng())&&!e.isDefaultPrevented()&&t.selection.select(o)},A=e=>o.hasClass(e,"mce-preview-object")&&V(e.firstElementChild)?[e,e.firstElementChild]:o.is(e,"figure.image")?[e.querySelector("img")]:[e],N=e=>{const n=Pm(t);return!!n&&("false"!==e.getAttribute("data-mce-resize")&&(e!==t.getBody()&&(o.hasClass(e,"mce-preview-object")&&V(e.firstElementChild)?wn(fn.fromDom(e.firstElementChild),n):wn(fn.fromDom(e),n))))},D=e=>j(e)?o.create("img",{src:to.transparentSrc}):e.cloneNode(!0),E=(e,n,a)=>{if(V(a)){const r=A(e);X(r,e=>{e.style[n]||!t.schema.isValid(e.nodeName.toLowerCase(),n)?o.setStyle(e,n,a):o.setAttrib(e,n,""+a)})}},T=(e,t,o)=>{E(e,"width",t),E(e,"height",o)},S=e=>{let n,a,d,x,_;n=e.screenX-u,a=e.screenY-m,w=n*c[2]+b,k=a*c[3]+g,w=w<5?5:w,k=k<5?5:k,d=(O(i)||j(i))&&!1!==Rm(t)?!Jf.modifierPressed(e):Jf.modifierPressed(e),d&&(ev(n)>ev(a)?(k=tv(w*f),w=tv(k/f)):(w=tv(k/f),k=tv(w*f))),T(l,w,k),x=c.startPos.x+n,_=c.startPos.y+a,x=x>0?x:0,_=_>0?_:0,o.setStyles(s,{left:x,top:_,display:"block"}),s.innerHTML=w+" &times; "+k,c[2]<0&&l.clientWidth<=w&&o.setStyle(l,"left",h+(b-w)),c[3]<0&&l.clientHeight<=k&&o.setStyle(l,"top",p+(g-k)),n=r.scrollWidth-C,a=r.scrollHeight-y,n+a!==0&&o.setStyles(s,{left:x-n,top:_-a}),v||(Ef(t,i,b,g,"corner-"+c.name),v=!0)},B=()=>{const e=v;v=!1,e&&(E(i,"width",w),E(i,"height",k)),o.unbind(n,"mousemove",S),o.unbind(n,"mouseup",B),a!==n&&(o.unbind(a,"mousemove",S),o.unbind(a,"mouseup",B)),o.remove(l),o.remove(s),o.remove(d),I(i),e&&(Tf(t,i,w,k,"corner-"+c.name),o.setAttrib(i,"style",o.getAttrib(i,"style"))),t.nodeChanged()},I=e=>{P();const h=o.getPos(e,r),p=h.x,v=h.y,O=e.getBoundingClientRect(),j=O.width||O.right-O.left,x=O.height||O.bottom-O.top;i!==e&&(F(),i=e,w=k=0);const _=t.dispatch("ObjectSelected",{target:e});N(e)&&!_.isDefaultPrevented()?Oe(ov,(e,t)=>{const h=h=>{const w=A(i)[0];u=h.screenX,m=h.screenY,b=w.clientWidth,g=w.clientHeight,f=g/b,c=e,c.name=t,c.startPos={x:j*e[0]+p,y:x*e[1]+v},C=r.scrollWidth,y=r.scrollHeight,d=o.add(r,"div",{class:"mce-resize-backdrop","data-mce-bogus":"all"}),o.setStyles(d,{position:"fixed",left:"0",top:"0",width:"100%",height:"100%"}),l=D(i),o.addClass(l,"mce-clonedresizable"),o.setAttrib(l,"data-mce-bogus","all"),l.contentEditable="false",o.setStyles(l,{left:p,top:v,margin:0}),T(l,j,x),l.removeAttribute(Zf),r.appendChild(l),o.bind(n,"mousemove",S),o.bind(n,"mouseup",B),a!==n&&(o.bind(a,"mousemove",S),o.bind(a,"mouseup",B)),s=o.add(r,"div",{class:"mce-resize-helper","data-mce-bogus":"all"},b+" &times; "+g)};let w=o.get("mceResizeHandle"+t);w&&o.remove(w),w=o.add(r,"div",{id:"mceResizeHandle"+t,"data-mce-bogus":"all",class:"mce-resizehandle",unselectable:!0,style:"cursor:"+t+"-resize; margin:0; padding:0"}),o.bind(w,"mousedown",e=>{e.stopImmediatePropagation(),e.preventDefault(),h(e)}),e.elm=w,o.setStyles(w,{left:j*e[0]+p-w.offsetWidth/2,top:x*e[1]+v-w.offsetHeight/2})}):F(!1)},z=qc(I,0),F=(e=!0)=>{z.cancel(),P(),i&&e&&i.removeAttribute(Zf),Oe(ov,(e,t)=>{const n=o.get("mceResizeHandle"+t);n&&(o.unbind(n),o.remove(n))})},M=(e,t)=>o.isChildOf(e,t),L=n=>{if(v||t.removed||t.composing)return;const a="mousedown"===n.type?n.target:e.getNode(),i=ca(fn.fromDom(a),Xf).map(e=>e.dom).filter(e=>o.isEditable(e.parentElement)||"IMG"===e.nodeName&&o.isEditable(e)).getOrUndefined(),l=V(i)?o.getAttrib(i,Zf,"1"):"1";if(X(o.select(`img[${Zf}],hr[${Zf}]`),e=>{e.removeAttribute(Zf)}),V(i)&&M(i,r)&&t.hasFocus()){R();const t=e.getStart(!0);if(M(t,i)&&M(e.getEnd(!0),i))return o.setAttrib(i,Zf,l),void z.throttle(i)}F()},P=()=>{Oe(ov,e=>{e.elm&&(o.unbind(e.elm),delete e.elm)})},R=()=>{try{t.getDoc().execCommand("enableObjectResizing",!1,"false")}catch(e){}};t.on("init",()=>{R(),t.on("NodeChange ResizeEditor ResizeWindow ResizeContent drop",L),t.on("keyup compositionend",e=>{i&&"TABLE"===i.nodeName&&L(e)}),t.on("hide blur",F),t.on("contextmenu longpress",_,!0)}),t.on("remove",P);const q=()=>{z.cancel(),i=l=d=null};return{isResizable:N,showResizeRect:I,hideResizeRect:F,updateResizeRect:L,destroy:q}},rv=(e,t)=>{t.fold(t=>{e.setStartBefore(t.dom)},(t,o)=>{e.setStart(t.dom,o)},t=>{e.setStartAfter(t.dom)})},iv=(e,t)=>{t.fold(t=>{e.setEndBefore(t.dom)},(t,o)=>{e.setEnd(t.dom,o)},t=>{e.setEndAfter(t.dom)})},lv=(e,t,o)=>{const n=e.document.createRange();return rv(n,t),iv(n,o),n},sv=(e,t,o,n,a)=>{const r=e.document.createRange();return r.setStart(t.dom,o),r.setEnd(n.dom,a),r},cv=Ru.generate([{ltr:["start","soffset","finish","foffset"]},{rtl:["start","soffset","finish","foffset"]}]),dv=(e,t,o)=>t(fn.fromDom(o.startContainer),o.startOffset,fn.fromDom(o.endContainer),o.endOffset),uv=(e,t)=>t.match({domRange:e=>({ltr:B(e),rtl:U.none}),relative:(t,o)=>({ltr:Ge(()=>lv(e,t,o)),rtl:Ge(()=>U.some(lv(e,o,t)))}),exact:(t,o,n,a)=>({ltr:Ge(()=>sv(e,t,o,n,a)),rtl:Ge(()=>U.some(sv(e,n,a,t,o)))})}),mv=(e,t)=>{const o=t.ltr();if(o.collapsed){const n=t.rtl().filter(e=>!1===e.collapsed);return n.map(e=>cv.rtl(fn.fromDom(e.endContainer),e.endOffset,fn.fromDom(e.startContainer),e.startOffset)).getOrThunk(()=>dv(e,cv.ltr,o))}return dv(e,cv.ltr,o)},hv=(e,t)=>{const o=uv(e,t);return mv(e,o)};cv.ltr,cv.rtl;const pv=(e,t,o,n)=>({start:e,soffset:t,finish:o,foffset:n}),bv={create:pv},gv=(e,t,o)=>{var n,a;return U.from(null===(a=(n=e.dom).caretPositionFromPoint)||void 0===a?void 0:a.call(n,t,o)).bind(t=>{if(null===t.offsetNode)return U.none();const o=e.dom.createRange();return o.setStart(t.offsetNode,t.offset),o.collapse(),U.some(o)})},fv=(e,t,o)=>{var n,a;return U.from(null===(a=(n=e.dom).caretRangeFromPoint)||void 0===a?void 0:a.call(n,t,o))},vv=(()=>document.caretPositionFromPoint?gv:document.caretRangeFromPoint?fv:U.none)(),wv=(e,t,o)=>{const n=fn.fromDom(e.document);return vv(n,t,o).map(e=>bv.create(fn.fromDom(e.startContainer),e.startOffset,fn.fromDom(e.endContainer),e.endOffset))},kv=Ru.generate([{before:["element"]},{on:["element","offset"]},{after:["element"]}]),Cv=(e,t,o,n)=>e.fold(t,o,n),yv=e=>e.fold(I,I,I),Ov=kv.before,jv=kv.on,xv=kv.after,_v={before:Ov,on:jv,after:xv,cata:Cv,getStart:yv},Vv=Ru.generate([{domRange:["rng"]},{relative:["startSitu","finishSitu"]},{exact:["start","soffset","finish","foffset"]}]),Av=e=>Vv.exact(e.start,e.soffset,e.finish,e.foffset),Nv=e=>e.match({domRange:e=>fn.fromDom(e.startContainer),relative:(e,t)=>_v.getStart(e),exact:(e,t,o,n)=>e}),Dv=Vv.domRange,Ev=Vv.relative,Tv=Vv.exact,Sv=e=>{const t=Nv(e);return An(t)},Bv=bv.create,Iv={domRange:Dv,relative:Ev,exact:Tv,exactFromRange:Av,getWin:Sv,range:Bv},zv=(e,t)=>{const o=So(e);return"input"===o?_v.after(e):Q(["br","img"],o)?0===t?_v.before(e):_v.after(e):_v.on(e,t)},Fv=(e,t)=>{const o=e.fold(_v.before,zv,_v.after),n=t.fold(_v.before,zv,_v.after);return Iv.relative(o,n)},Mv=(e,t,o,n)=>{const a=zv(e,t),r=zv(o,n);return Iv.relative(a,r)},Lv=e=>e.match({domRange:e=>{const t=fn.fromDom(e.startContainer),o=fn.fromDom(e.endContainer);return Mv(t,e.startOffset,o,e.endOffset)},relative:Fv,exact:Mv}),Pv=(e,t)=>{const o=t||document,n=o.createDocumentFragment();return X(e,e=>{n.appendChild(e.dom)}),fn.fromDom(n)},Rv=e=>{const t=Iv.getWin(e).dom,o=(e,o,n,a)=>sv(t,e,o,n,a),n=Lv(e);return hv(t,n).match({ltr:o,rtl:o})},qv=(e,t,o)=>wv(e,t,o),$v=(e,t,o)=>{const n=An(fn.fromDom(o));return qv(n.dom,e,t).map(e=>{const t=o.createRange();return t.setStart(e.start.dom,e.soffset),t.setEnd(e.finish.dom,e.foffset),t}).getOrUndefined()},Uv=(e,t)=>V(e)&&V(t)&&e.startContainer===t.startContainer&&e.startOffset===t.startOffset&&e.endContainer===t.endContainer&&e.endOffset===t.endOffset,Hv=(e,t,o)=>{let n=e;while(n&&n!==t){if(o(n))return n;n=n.parentNode}return null},Wv=(e,t,o)=>null!==Hv(e,t,o),Gv=(e,t,o)=>Wv(e,t,e=>e.nodeName===o),Kv=(e,t)=>yi(e)&&!Wv(e,t,Ab),Yv=(e,t,o)=>{const n=t.parentNode;if(n){const a=new lr(t,e.getParent(n,e.isBlock)||e.getRoot());let r;while(r=a[o?"prev":"next"]())if(Nr(r))return!0}return!1},Qv=(e,t)=>{var o;return(null===(o=e.previousSibling)||void 0===o?void 0:o.nodeName)===t},Jv=(e,t)=>{let o=t;while(o&&o!==e){if(Tr(o))return!0;o=o.parentNode}return!1},Zv=(e,t,o,n,a)=>{const r=e.getRoot(),i=e.schema.getNonEmptyElements(),l=a.parentNode;let s,c;if(!l)return U.none();const d=e.getParent(l,e.isBlock)||r;if(n&&Nr(a)&&t&&e.isEmpty(d))return U.some(tu(l,e.nodeIndex(a)));const u=new lr(a,d);while(c=u[n?"prev":"next"]()){if("false"===e.getContentEditableParent(c)||Kv(c,r))return U.none();if(Or(c)&&c.data.length>0)return Gv(c,r,"A")?U.none():U.some(tu(c,n?c.data.length:0));if(e.isBlock(c)||i[c.nodeName.toLowerCase()])return U.none();s=c}return _r(s)?U.none():o&&s?U.some(tu(s,0)):U.none()},Xv=(e,t,o,n)=>{const a=e.getRoot();let r,i=!1,l=o?n.startContainer:n.endContainer,s=o?n.startOffset:n.endOffset;const c=dr(l)&&s===l.childNodes.length,d=e.schema.getNonEmptyElements();let u=o;if(yi(l))return U.none();if(dr(l)&&s>l.childNodes.length-1&&(u=!1),Vr(l)&&(l=a,s=0),l===a){if(u&&(r=l.childNodes[s>0?s-1:0],r)){if(yi(r))return U.none();if(d[r.nodeName]||kr(r))return U.none()}if(l.hasChildNodes()){if(s=Math.min(!u&&s>0?s-1:s,l.childNodes.length-1),l=l.childNodes[s],s=Or(l)&&c?l.data.length:0,!t&&l===a.lastChild&&kr(l))return U.none();if(Jv(a,l)||yi(l))return U.none();if(Fr(l))return U.none();if(l.hasChildNodes()&&!kr(l)){r=l;const t=new lr(l,a);do{if(Tr(r)||yi(r)){i=!1;break}if(Or(r)&&r.data.length>0){s=u?0:r.data.length,l=r,i=!0;break}if(d[r.nodeName.toLowerCase()]&&!Br(r)){s=e.nodeIndex(r),l=r.parentNode,u||s++,i=!0;break}}while(r=u?t.next():t.prev())}}}return t&&(Or(l)&&0===s&&Zv(e,c,t,!0,l).each(e=>{l=e.container(),s=e.offset(),i=!0}),dr(l)&&(r=l.childNodes[s],r||(r=l.childNodes[s-1]),!r||!Nr(r)||Qv(r,"A")||Yv(e,r,!1)||Yv(e,r,!0)||Zv(e,c,t,!0,r).each(e=>{l=e.container(),s=e.offset(),i=!0}))),u&&!t&&Or(l)&&s===l.data.length&&Zv(e,c,t,!1,l).each(e=>{l=e.container(),s=e.offset(),i=!0}),i&&l?U.some(tu(l,s)):U.none()},ew=(e,t)=>{const o=t.collapsed,n=t.cloneRange(),a=tu.fromRangeStart(t);return Xv(e,o,!0,n).each(e=>{o&&tu.isAbove(a,e)||n.setStart(e.container(),e.offset())}),o||Xv(e,o,!1,n).each(e=>{n.setEnd(e.container(),e.offset())}),o&&n.collapse(!0),Uv(t,n)?U.none():U.some(n)},tw=(e,t)=>e.splitText(t),ow=e=>{let t=e.startContainer,o=e.startOffset,n=e.endContainer,a=e.endOffset;if(t===n&&Or(t)){if(o>0&&o<t.data.length)if(n=tw(t,o),t=n.previousSibling,a>o){a-=o;const e=tw(n,a).previousSibling;t=n=e,a=e.data.length,o=0}else a=0}else if(Or(t)&&o>0&&o<t.data.length&&(t=tw(t,o),o=0),Or(n)&&a>0&&a<n.data.length){const e=tw(n,a).previousSibling;n=e,a=e.data.length}return{startContainer:t,startOffset:o,endContainer:n,endOffset:a}},nw=e=>{const t=(t,o)=>hf(e,t,o),o=ow,n=t=>ew(e,t).fold(q,e=>(t.setStart(e.startContainer,e.startOffset),t.setEnd(e.endContainer,e.endOffset),!0)),a=(t,o={type:"word"})=>{if("word"===o.type){const o=mf(e,t,[{inline:"span"}]),n=e.createRng();return n.setStart(o.startContainer,o.startOffset),n.setEnd(o.endContainer,o.endOffset),n}return t};return{walk:t,split:o,expand:a,normalize:n}};nw.compareRanges=Uv,nw.getCaretRangeFromPoint=$v,nw.getSelectedNode=Ad,nw.getNode=Nd;const aw=(e,t)=>{const o=(t,o)=>{if(!N(o)&&!o.match(/^[0-9]+$/))throw new Error(e+".set accepts only positive integer values. Value was "+o);const n=t.dom;ha(n)&&(n.style[e]=o+"px")},n=o=>{const n=t(o);if(n<=0||null===n){const t=va(o,e);return parseFloat(t)||0}return n},a=n,r=(e,t)=>ae(t,(t,o)=>{const n=va(e,o),a=void 0===n?0:parseInt(n,10);return isNaN(a)?t:t+a},0),i=(e,t,o)=>{const n=r(e,o),a=t>n?t-n:0;return a};return{set:o,get:n,getOuter:a,aggregate:r,max:i}},rw=aw("height",e=>{const t=e.dom;return ea(e)?t.getBoundingClientRect().height:t.offsetHeight}),iw=e=>rw.get(e),lw=()=>fn.fromDom(document),sw=(e,t)=>{const o=e.view(t);return o.fold(B([]),t=>{const o=e.owner(t),n=sw(e,o);return[t].concat(n)})},cw=(e,t)=>{const o=t.owner(e);return sw(t,o)},dw=e=>{var t;const o=e.dom===document?U.none():U.from(null===(t=e.dom.defaultView)||void 0===t?void 0:t.frameElement);return o.map(fn.fromDom)},uw=e=>_n(e);var mw=Object.freeze({__proto__:null,view:dw,owner:uw});const hw=e=>{const t=lw(),o=Ja(t),n=cw(e,mw),a=Qa(e),r=ne(n,(e,t)=>{const o=Qa(t);return{left:e.left+o.left,top:e.top+o.top}},{left:0,top:0});return Wa(r.left+a.left+o.left,r.top+a.top+o.top)},pw=e=>"textarea"===So(e),bw=(e,t)=>{const o=e.dispatch("ScrollIntoView",t);return o.isDefaultPrevented()},gw=(e,t)=>{e.dispatch("AfterScrollIntoView",t)},fw=(e,t)=>{const o=Fn(e);if(0===o.length||pw(e))return{element:e,offset:t};if(t<o.length&&!pw(o[t]))return{element:o[t],offset:0};{const n=o[o.length-1];return pw(n)?{element:e,offset:t}:"img"===So(n)?{element:n,offset:1}:Lo(n)?{element:n,offset:Hr(n).length}:{element:n,offset:Fn(n).length}}},vw=(e,t)=>{const o=Ya(e),n=iw(e);return{element:e,bottom:o.top+n,height:n,pos:o,cleanup:t}},ww=(e,t)=>{const o=fw(e,t),n=fn.fromHtml('<span data-mce-bogus="all" style="display: inline-block;">'+pi+"</span>");return ja(o.element,n),vw(n,()=>Ta(n))},kw=e=>vw(fn.fromDom(e),E),Cw=(e,t,o,n)=>{xw(e,(a,r)=>Ow(e,t,o,n),o)},yw=(e,t,o,n,a)=>{const r={elm:n.element.dom,alignToTop:a};if(bw(e,r))return;const i=Ja(t).top;o(e,t,i,n,a),gw(e,r)},Ow=(e,t,o,n)=>{const a=fn.fromDom(e.getBody()),r=fn.fromDom(e.getDoc());Oa(a);const i=ww(fn.fromDom(o.startContainer),o.startOffset);yw(e,r,t,i,n),i.cleanup()},jw=(e,t,o,n)=>{const a=fn.fromDom(e.getDoc());yw(e,a,o,kw(t),n)},xw=(e,t,o)=>{const n=o.startContainer,a=o.startOffset,r=o.endContainer,i=o.endOffset;t(fn.fromDom(n),fn.fromDom(r));const l=e.dom.createRng();l.setStart(n,a),l.setEnd(r,i),e.selection.setRng(o)},_w=(e,t,o,n,a)=>{const r=t.pos;if(n)Za(r.left,r.top,a);else{const n=r.top-o+t.height;Za(-e.getBody().getBoundingClientRect().left,n,a)}},Vw=(e,t,o,n,a,r)=>{const i=n+o,l=a.pos.top,s=a.bottom,c=s-l>=n;if(l<o)_w(e,a,n,!1!==r,t);else if(l>i){const o=c?!1!==r:!0===r;_w(e,a,n,o,t)}else s>i&&!c&&_w(e,a,n,!0===r,t)},Aw=(e,t,o,n,a)=>{const r=An(t).dom.innerHeight;Vw(e,t,o,r,n,a)},Nw=(e,t,o,n,a)=>{const r=An(t).dom.innerHeight;Vw(e,t,o,r,n,a);const i=hw(n.element),l=or(window);i.top<l.y?Xa(n.element,!1!==a):i.top>l.bottom&&Xa(n.element,!0===a)},Dw=(e,t,o)=>Cw(e,Aw,t,o),Ew=(e,t,o)=>jw(e,t,Aw,o),Tw=(e,t,o)=>Cw(e,Nw,t,o),Sw=(e,t,o)=>jw(e,t,Nw,o),Bw=(e,t,o)=>{const n=e.inline?Ew:Sw;n(e,t,o)},Iw=(e,t,o)=>{const n=e.inline?Dw:Tw;n(e,t,o)},zw=(e,t=!1)=>e.dom.focus({preventScroll:t}),Fw=e=>{const t=Gn(e).dom;return e.dom===t.activeElement},Mw=(e=lw())=>U.from(e.dom.activeElement).map(fn.fromDom),Lw=e=>Mw(Gn(e)).filter(t=>e.dom.contains(t.dom)),Pw=(e,t)=>{const o=Lo(t)?Hr(t).length:Fn(t).length+1;return e>o?o:e<0?0:e},Rw=e=>Iv.range(e.start,Pw(e.soffset,e.start),e.finish,Pw(e.foffset,e.finish)),qw=(e,t)=>!cr(t.dom)&&(jn(e,t)||On(e,t)),$w=e=>t=>qw(e,t.start)&&qw(e,t.finish),Uw=e=>e.inline||to.browser.isFirefox(),Hw=e=>Iv.range(fn.fromDom(e.startContainer),e.startOffset,fn.fromDom(e.endContainer),e.endOffset),Ww=e=>{const t=e.getSelection(),o=t&&0!==t.rangeCount?U.from(t.getRangeAt(0)):U.none();return o.map(Hw)},Gw=e=>{const t=An(e);return Ww(t.dom).filter($w(e))},Kw=(e,t)=>U.from(t).filter($w(e)).map(Rw),Yw=e=>{const t=document.createRange();try{return t.setStart(e.start.dom,e.soffset),t.setEnd(e.finish.dom,e.foffset),U.some(t)}catch(o){return U.none()}},Qw=e=>{const t=Uw(e)?Gw(fn.fromDom(e.getBody())):U.none();e.bookmark=t.isSome()?t:e.bookmark},Jw=e=>{const t=e.bookmark?e.bookmark:U.none();return t.bind(t=>Kw(fn.fromDom(e.getBody()),t)).bind(Yw)},Zw=e=>{Jw(e).each(t=>e.selection.setRng(t))},Xw=e=>{const t=e.className.toString();return-1!==t.indexOf("tox-")||-1!==t.indexOf("mce-")},ek={isEditorUIElement:Xw},tk=(e,t)=>(N(t)||(t=0),setTimeout(e,t)),ok=(e,t)=>(N(t)||(t=0),setInterval(e,t)),nk={setEditorTimeout:(e,t,o)=>tk(()=>{e.removed||t()},o),setEditorInterval:(e,t,o)=>{const n=ok(()=>{e.removed?clearInterval(n):t()},o);return n}},ak=e=>"nodechange"===e.type&&e.selectionChange,rk=(e,t)=>{const o=()=>{t.throttle()};gc.DOM.bind(document,"mouseup",o),e.on("remove",()=>{gc.DOM.unbind(document,"mouseup",o)})},ik=(e,t)=>{e.on("mouseup touchend",e=>{t.throttle()})},lk=(e,t)=>{ik(e,t),e.on("keyup NodeChange AfterSetSelectionRange",t=>{ak(t)||Qw(e)})},sk=e=>{const t=qc(()=>{Qw(e)},0);e.on("init",()=>{e.inline&&rk(e,t),lk(e,t)}),e.on("remove",()=>{t.cancel()})};let ck;const dk=gc.DOM,uk=e=>dr(e)&&ek.isEditorUIElement(e),mk=e=>{const t=e.classList;return void 0!==t&&(t.contains("tox-edit-area")||t.contains("tox-edit-area__iframe")||t.contains("mce-content-body"))},hk=(e,t)=>{const o=eh(e),n=dk.getParent(t,t=>uk(t)||!!o&&e.dom.is(t,o));return null!==n},pk=e=>{try{const t=Gn(fn.fromDom(e.getElement()));return Mw(t).fold(()=>document.body,e=>e.dom)}catch(t){return document.body}},bk=(e,t)=>{const o=t.editor;sk(o);const n=(e,t)=>{if(qh(e)&&!0!==e.inline){const o=fn.fromDom(e.getContainer());t(o,"tox-edit-focus")}};o.on("focusin",()=>{const t=e.focusedEditor;mk(pk(o))&&n(o,ln),t!==o&&(t&&t.dispatch("blur",{focusedEditor:o}),e.setActive(o),e.focusedEditor=o,o.dispatch("focus",{blurredEditor:t}),o.focus(!0))}),o.on("focusout",()=>{nk.setEditorTimeout(o,()=>{const t=e.focusedEditor;mk(pk(o))&&t===o||n(o,cn),hk(o,pk(o))||t!==o||(o.dispatch("blur",{focusedEditor:null}),e.focusedEditor=null)})}),ck||(ck=t=>{const o=e.activeEditor;o&&Zn(t).each(t=>{const n=t;n.ownerDocument===document&&(n===document.body||hk(o,n)||e.focusedEditor!==o||(o.dispatch("blur",{focusedEditor:null}),e.focusedEditor=null))})},dk.bind(document,"focusin",ck))},gk=(e,t)=>{e.focusedEditor===t.editor&&(e.focusedEditor=null),!e.activeEditor&&ck&&(dk.unbind(document,"focusin",ck),ck=null)},fk=e=>{e.on("AddEditor",F(bk,e)),e.on("RemoveEditor",F(gk,e))},vk=(e,t)=>e.dom.getParent(t,t=>"true"===e.dom.getContentEditable(t)),wk=e=>e.collapsed?U.from(Nd(e.startContainer,e.startOffset)).map(fn.fromDom):U.none(),kk=(e,t)=>wk(t).bind(t=>ii(t)?U.some(t):jn(e,t)?U.none():U.some(e)),Ck=(e,t)=>{kk(fn.fromDom(e.getBody()),t).bind(e=>xb(e.dom)).fold(()=>{e.selection.normalize()},t=>e.selection.setRng(t.toRange()))},yk=e=>{if(e.setActive)try{e.setActive()}catch(t){e.focus()}else e.focus()},Ok=e=>Fw(e)||Lw(e).isSome(),jk=e=>V(e.iframeElement)&&Fw(fn.fromDom(e.iframeElement)),xk=e=>{const t=e.getBody();return t&&Ok(fn.fromDom(t))},_k=e=>{const t=Gn(fn.fromDom(e.getElement()));return Mw(t).filter(t=>!mk(t.dom)&&hk(e,t.dom)).isSome()},Vk=e=>e.inline?xk(e):jk(e),Ak=e=>Vk(e)||_k(e),Nk=e=>{const t=e.selection,o=e.getBody();let n=t.getRng();e.quirks.refreshContentEditable(),V(e.bookmark)&&!Vk(e)&&Jw(e).each(t=>{e.selection.setRng(t),n=t});const a=vk(e,t.getNode());if(a&&e.dom.isChildOf(a,o))return yk(a),Ck(e,n),void Dk(e);e.inline||(to.browser.isOpera()||yk(o),e.getWin().focus()),(to.browser.isFirefox()||e.inline)&&(yk(o),Ck(e,n)),Dk(e)},Dk=e=>e.editorManager.setActive(e),Ek=(e,t)=>{e.removed||(t?Dk(e):Nk(e))},Tk=(e,t)=>t.collapsed?e.isEditable(t.startContainer):e.isEditable(t.startContainer)&&e.isEditable(t.endContainer),Sk=(e,t,o,n,a)=>{const r=o?t.startContainer:t.endContainer,i=o?t.startOffset:t.endOffset;return U.from(r).map(fn.fromDom).map(e=>n&&t.collapsed?e:Mn(e,a(e,i)).getOr(e)).bind(e=>Mo(e)?U.some(e):Nn(e).filter(Mo)).map(e=>e.dom).getOr(e)},Bk=(e,t,o=!1)=>Sk(e,t,!0,o,(e,t)=>Math.min(Rn(e),t)),Ik=(e,t,o=!1)=>Sk(e,t,!1,o,(e,t)=>t>0?t-1:t),zk=(e,t)=>{const o=e;while(e&&Or(e)&&0===e.length)e=t?e.nextSibling:e.previousSibling;return e||o},Fk=(e,t)=>{if(!t)return e;let o=t.startContainer,n=t.endContainer;const a=t.startOffset,r=t.endOffset;let i=t.commonAncestorContainer;t.collapsed||(o===n&&r-a<2&&o.hasChildNodes()&&(i=o.childNodes[a]),Or(o)&&Or(n)&&(o=o.length===a?zk(o.nextSibling,!0):o.parentNode,n=0===r?zk(n.previousSibling,!1):n.parentNode,o&&o===n&&(i=o)));const l=Or(i)?i.parentNode:i;return ur(l)?l:e},Mk=(e,t,o,n)=>{const a=[],r=e.getRoot(),i=e.getParent(o||Bk(r,t,t.collapsed),e.isBlock),l=e.getParent(n||Ik(r,t,t.collapsed),e.isBlock);if(i&&i!==r&&a.push(i),i&&l&&i!==l){let t;const o=new lr(i,r);while((t=o.next())&&t!==l)e.isBlock(t)&&a.push(t)}return l&&i!==l&&l!==r&&a.push(l),a},Lk=(e,t,o)=>U.from(t).bind(t=>U.from(t.parentNode).map(n=>{const a=e.nodeIndex(t),r=e.createRng();return r.setStart(n,a),r.setEnd(n,a+1),o&&(bg(e,r,t,!0),bg(e,r,t,!1)),r})),Pk=(e,t)=>Z(t,t=>{const o=e.dispatch("GetSelectionRange",{range:t});return o.range!==t?o.range:t}),Rk=e=>"img"===So(e)?1:Wr(e).fold(()=>Fn(e).length,e=>e.length),qk=e=>Wr(e).filter(e=>0!==e.trim().length||e.indexOf(Pr)>-1).isSome(),$k=e=>Fo(e)&&"false"===Wo(e,"contenteditable"),Uk=["img","br"],Hk=e=>{const t=qk(e);return t||Q(Uk,So(e))||$k(e)},Wk=e=>ia(e,Hk),Gk=e=>Kk(e,Hk),Kk=(e,t)=>{const o=e=>{const n=Fn(e);for(let a=n.length-1;a>=0;a--){const e=n[a];if(t(e))return U.some(e);const r=o(e);if(r.isSome())return r}return U.none()};return o(e)},Yk="[data-mce-autocompleter]",Qk=(e,t)=>{if(Zk(fn.fromDom(e.getBody())).isNone()){const o=fn.fromHtml('<span data-mce-autocompleter="1" data-mce-bogus="1"></span>',e.getDoc());Va(o,fn.fromDom(t.extractContents())),t.insertNode(o.dom),Nn(o).each(e=>e.dom.normalize()),Gk(o).map(t=>{e.selection.setCursorLocation(t.dom,Rk(t))})}},Jk=e=>ca(e,Yk),Zk=e=>sa(e,Yk),Xk=(e,t)=>Zk(t).each(t=>{const o=e.selection.getBookmark();Sa(t),e.selection.moveToBookmark(o)}),eC={"#text":3,"#comment":8,"#cdata":4,"#pi":7,"#doctype":10,"#document-fragment":11},tC=(e,t,o)=>{const n=o?"lastChild":"firstChild",a=o?"prev":"next";if(e[n])return e[n];if(e!==t){let o=e[a];if(o)return o;for(let n=e.parent;n&&n!==t;n=n.parent)if(o=n[a],o)return o}},oC=e=>{var t;const o=null!==(t=e.value)&&void 0!==t?t:"";if(!Yi(o))return!1;const n=e.parent;return!n||"span"===n.name&&!n.attr("style")||!/^[ ]+$/.test(o)},nC=e=>{const t="a"===e.name&&!e.attr("href")&&e.attr("id");return e.attr("name")||e.attr("id")&&!e.firstChild||e.attr("data-mce-bookmark")||t};class aC{static create(e,t){const o=new aC(e,eC[e]||1);return t&&Oe(t,(e,t)=>{o.attr(t,e)}),o}constructor(e,t){this.name=e,this.type=t,1===t&&(this.attributes=[],this.attributes.map={})}replace(e){const t=this;return e.parent&&e.remove(),t.insert(e,t),t.remove(),t}attr(e,t){const o=this;if(!w(e))return V(e)&&Oe(e,(e,t)=>{o.attr(t,e)}),o;const n=o.attributes;if(n){if(void 0!==t){if(null===t){if(e in n.map){delete n.map[e];let t=n.length;while(t--)if(n[t].name===e)return n.splice(t,1),o}return o}if(e in n.map){let o=n.length;while(o--)if(n[o].name===e){n[o].value=t;break}}else n.push({name:e,value:t});return n.map[e]=t,o}return n.map[e]}}clone(){const e=this,t=new aC(e.name,e.type),o=e.attributes;if(o){const e=[];e.map={};for(let t=0,n=o.length;t<n;t++){const n=o[t];"id"!==n.name&&(e[e.length]={name:n.name,value:n.value},e.map[n.name]=n.value)}t.attributes=e}return t.value=e.value,t}wrap(e){const t=this;return t.parent&&(t.parent.insert(e,t),e.append(t)),t}unwrap(){const e=this;for(let t=e.firstChild;t;){const o=t.next;e.insert(t,e,!0),t=o}e.remove()}remove(){const e=this,t=e.parent,o=e.next,n=e.prev;return t&&(t.firstChild===e?(t.firstChild=o,o&&(o.prev=null)):n&&(n.next=o),t.lastChild===e?(t.lastChild=n,n&&(n.next=null)):o&&(o.prev=n),e.parent=e.next=e.prev=null),e}append(e){const t=this;e.parent&&e.remove();const o=t.lastChild;return o?(o.next=e,e.prev=o,t.lastChild=e):t.lastChild=t.firstChild=e,e.parent=t,e}insert(e,t,o){e.parent&&e.remove();const n=t.parent||this;return o?(t===n.firstChild?n.firstChild=e:t.prev&&(t.prev.next=e),e.prev=t.prev,e.next=t,t.prev=e):(t===n.lastChild?n.lastChild=e:t.next&&(t.next.prev=e),e.next=t.next,e.prev=t,t.next=e),e.parent=n,e}getAll(e){const t=this,o=[];for(let n=t.firstChild;n;n=tC(n,t))n.name===e&&o.push(n);return o}children(){const e=this,t=[];for(let o=e.firstChild;o;o=o.next)t.push(o);return t}empty(){const e=this;if(e.firstChild){const t=[];for(let n=e.firstChild;n;n=tC(n,e))t.push(n);let o=t.length;while(o--){const e=t[o];e.parent=e.firstChild=e.lastChild=e.next=e.prev=null}}return e.firstChild=e.lastChild=null,e}isEmpty(e,t={},o){var n;const a=this;let r=a.firstChild;if(nC(a))return!1;if(r)do{if(1===r.type){if(r.attr("data-mce-bogus"))continue;if(e[r.name])return!1;if(nC(r))return!1}if(8===r.type)return!1;if(3===r.type&&!oC(r))return!1;if(3===r.type&&r.parent&&t[r.parent.name]&&Yi(null!==(n=r.value)&&void 0!==n?n:""))return!1;if(o&&o(r))return!1}while(r=tC(r,a));return!0}walk(e){return tC(this,null,e)}}const rC=ho.makeMap("NOSCRIPT STYLE SCRIPT XMP IFRAME NOEMBED NOFRAMES PLAINTEXT"," "),iC=e=>w(e.nodeValue)&&e.nodeValue.includes(pi),lC=e=>(0===e.length?"":Z(e,e=>`[${e}]`).join(",")+",")+'[data-mce-bogus="all"]',sC=(e,t)=>t.querySelectorAll(lC(e)),cC=e=>document.createTreeWalker(e,NodeFilter.SHOW_COMMENT,e=>iC(e)?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP),dC=e=>document.createTreeWalker(e,NodeFilter.SHOW_TEXT,e=>{if(iC(e)){const t=e.parentNode;return t&&Se(rC,t.nodeName)?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}return NodeFilter.FILTER_SKIP}),uC=e=>null!==cC(e).nextNode(),mC=e=>null!==dC(e).nextNode(),hC=(e,t)=>null!==t.querySelector(lC(e)),pC=(e,t)=>{X(sC(e,t),t=>{const o=fn.fromDom(t);"all"===Wo(o,"data-mce-bogus")?Ta(o):X(e,e=>{Ko(o,e)&&Yo(o,e)})})},bC=e=>{let t=e.nextNode();while(null!==t)t.nodeValue=null,t=e.nextNode()},gC=T(bC,cC),fC=T(bC,dC),vC=(e,t)=>{const o=[{condition:F(hC,t),action:F(pC,t)},{condition:uC,action:gC},{condition:mC,action:fC}];let n=e,a=!1;return X(o,({condition:t,action:o})=>{t(n)&&(a||(n=e.cloneNode(!0),a=!0),o(n))}),n},wC=e=>{const t=rr(e,"[data-mce-bogus]");X(t,e=>{const t=Wo(e,"data-mce-bogus");"all"===t?Ta(e):oi(e)?(ja(e,fn.fromText(Lr)),Ta(e)):Sa(e)})},kC=e=>{const t=rr(e,"input");X(t,e=>{Yo(e,"name")})},CC=(e,t)=>{const o=hm(e),n=new RegExp(`^(<${o}[^>]*>(&nbsp;|&#160;|\\s| |<br \\/>|)<\\/${o}>[\r\n]*|<br \\/>[\r\n]*)$`);return t.replace(n,"")},yC=(e,t)=>{const o=e.getDoc(),n=Gn(fn.fromDom(e.getBody())),a=fn.fromTag("div",o);Uo(a,"data-mce-bogus","all"),fa(a,{position:"fixed",left:"-9999999px",top:"0"}),Fa(a,t.innerHTML),wC(a),kC(a);const r=Yn(n);Va(r,a);const i=gi(a.dom.innerText);return Ta(a),i},OC=(e,t,o)=>{let n;n="raw"===t.format?ho.trim(gi(vC(o,e.serializer.getTempAttrs()).innerHTML)):"text"===t.format?yC(e,o):"tree"===t.format?e.serializer.serialize(o,t):CC(e,e.serializer.serialize(o,t));const a="text"!==t.format&&!si(fn.fromDom(o));return a&&w(n)?ho.trim(n):n},jC=(e,t)=>U.from(e.getBody()).fold(B("tree"===t.format?new aC("body",11):""),o=>OC(e,t,o)),xC=ho.makeMap,_C=e=>{const t=[];e=e||{};const o=e.indent,n=xC(e.indent_before||""),a=xC(e.indent_after||""),r=hs.getEncodeFunc(e.entity_encoding||"raw",e.entities),i="xhtml"!==e.element_format;return{start:(e,l,s)=>{if(o&&n[e]&&t.length>0){const e=t[t.length-1];e.length>0&&"\n"!==e&&t.push("\n")}if(t.push("<",e),l)for(let o=0,n=l.length;o<n;o++){const e=l[o];t.push(" ",e.name,'="',r(e.value,!0),'"')}if(t[t.length]=!s||i?">":" />",s&&o&&a[e]&&t.length>0){const e=t[t.length-1];e.length>0&&"\n"!==e&&t.push("\n")}},end:e=>{let n;t.push("</",e,">"),o&&a[e]&&t.length>0&&(n=t[t.length-1],n.length>0&&"\n"!==n&&t.push("\n"))},text:(e,o)=>{e.length>0&&(t[t.length]=o?e:r(e))},cdata:e=>{t.push("<![CDATA[",e,"]]>")},comment:e=>{t.push("\x3c!--",e,"--\x3e")},pi:(e,n)=>{n?t.push("<?",e," ",r(n),"?>"):t.push("<?",e,"?>"),o&&t.push("\n")},doctype:e=>{t.push("<!DOCTYPE",e,">",o?"\n":"")},reset:()=>{t.length=0},getContent:()=>t.join("").replace(/\n$/,"")}},VC=(e={},t=Ts())=>{const o=_C(e);e.validate=!("validate"in e)||e.validate;const n=n=>{const a=e.validate,r={3:e=>{var t;o.text(null!==(t=e.value)&&void 0!==t?t:"",e.raw)},8:e=>{var t;o.comment(null!==(t=e.value)&&void 0!==t?t:"")},7:e=>{o.pi(e.name,e.value)},10:e=>{var t;o.doctype(null!==(t=e.value)&&void 0!==t?t:"")},4:e=>{var t;o.cdata(null!==(t=e.value)&&void 0!==t?t:"")},11:e=>{let t=e;if(t=t.firstChild)do{i(t)}while(t=t.next)}};o.reset();const i=e=>{var n;const l=r[e.type];if(l)l(e);else{const r=e.name,l=r in t.getVoidElements();let s=e.attributes;if(a&&s&&s.length>1){const o=[];o.map={};const n=t.getElementRule(e.name);if(n){for(let e=0,t=n.attributesOrder.length;e<t;e++){const t=n.attributesOrder[e];if(t in s.map){const e=s.map[t];o.map[t]=e,o.push({name:t,value:e})}}for(let e=0,t=s.length;e<t;e++){const t=s[e].name;if(!(t in o.map)){const e=s.map[t];o.map[t]=e,o.push({name:t,value:e})}}s=o}}if(o.start(r,s,l),ul(r))w(e.value)&&o.text(e.value,!0),o.end(r);else if(!l){let t=e.firstChild;if(t){"pre"!==r&&"textarea"!==r||3!==t.type||"\n"!==(null===(n=t.value)||void 0===n?void 0:n[0])||o.text("\n",!0);do{i(t)}while(t=t.next)}o.end(r)}}};return 1!==n.type||e.inner?3===n.type?r[3](n):r[11](n):i(n),o.getContent()};return{serialize:n}},AC=new Set;(()=>{const e=["margin","margin-left","margin-right","margin-top","margin-bottom","padding","padding-left","padding-right","padding-top","padding-bottom","border","border-width","border-style","border-color","background","background-attachment","background-clip","background-color","background-image","background-origin","background-position","background-repeat","background-size","float","position","left","right","top","bottom","z-index","display","transform","width","max-width","min-width","height","max-height","min-height","overflow","overflow-x","overflow-y","text-overflow","vertical-align","transition","transition-delay","transition-duration","transition-property","transition-timing-function"];X(e,e=>{AC.add(e)})})();const NC=["font","text-decoration","text-emphasis"],DC=(e,t)=>Ce(e.parseStyle(e.getAttrib(t,"style"))),EC=e=>AC.has(e),TC=(e,t)=>de(DC(e,t),e=>!EC(e)),SC=e=>oe(e,e=>J(NC,t=>ct(e,t))),BC=(e,t,o)=>{const n=DC(e,t),a=DC(e,o),r=n=>{var a,r;const i=null!==(a=e.getStyle(t,n))&&void 0!==a?a:"",l=null!==(r=e.getStyle(o,n))&&void 0!==r?r:"";return bt(i)&&bt(l)&&i!==l};return J(n,e=>{const t=t=>J(t,t=>t===e);if(!t(a)&&t(NC)){const e=SC(a);return J(e,r)}return r(e)})},IC=(e,t,o)=>U.from(o.container()).filter(Or).exists(n=>{const a=e?0:-1;return t(n.data.charAt(o.offset()+a))}),zC=F(IC,!0,eg),FC=F(IC,!1,eg),MC=e=>{const t=e.container();return Or(t)&&(0===t.data.length||bi(t.data)&&jf.isBookmarkNode(t.parentNode))},LC=(e,t)=>o=>Lp(e?0:-1,o).filter(t).isSome(),PC=e=>Dr(e)&&"block"===va(fn.fromDom(e),"display"),RC=e=>Tr(e)&&!wr(e),qC=LC(!0,PC),$C=LC(!1,PC),UC=LC(!0,Ir),HC=LC(!1,Ir),WC=LC(!0,kr),GC=LC(!1,kr),KC=LC(!0,RC),YC=LC(!1,RC),QC=e=>e.slice(0,-1),JC=(e,t,o)=>jn(t,e)?QC(En(e,e=>o(e)||On(e,t))):[],ZC=(e,t)=>JC(e,t,q),XC=(e,t)=>[e].concat(ZC(e,t)),ey=(e,t,o)=>Cb(e,t,o,MC),ty=e=>t=>e.isBlock(So(t)),oy=(e,t,o)=>ie(XC(fn.fromDom(t.container()),e),ty(o)),ny=(e,t,o,n)=>ey(e,t.dom,o).forall(e=>oy(t,o,n).fold(()=>!Mp(e,o,t.dom),n=>!Mp(e,o,t.dom)&&jn(n,fn.fromDom(e.container())))),ay=(e,t,o,n)=>oy(t,o,n).fold(()=>ey(e,t.dom,o).forall(e=>!Mp(e,o,t.dom)),t=>ey(e,t.dom,o).isNone()),ry=F(ay,!1),iy=F(ay,!0),ly=F(ny,!1),sy=F(ny,!0),cy=e=>Kp(e).exists(oi),dy=(e,t,o,n)=>{const a=oe(XC(fn.fromDom(o.container()),t),e=>n.isBlock(So(e))),r=ge(a).getOr(t);return wb(e,r.dom,o).filter(cy)},uy=(e,t,o)=>Kp(t).exists(oi)||dy(!0,e,t,o).isSome(),my=(e,t,o)=>Yp(t).exists(oi)||dy(!1,e,t,o).isSome(),hy=F(dy,!1),py=F(dy,!0),by=e=>tu.isTextPosition(e)&&!e.isAtStart()&&!e.isAtEnd(),gy=(e,t,o)=>{const n=oe(XC(fn.fromDom(t.container()),e),e=>o.isBlock(So(e)));return ge(n).getOr(e)},fy=(e,t,o)=>by(t)?FC(t):FC(t)||jb(gy(e,t,o).dom,t).exists(FC),vy=(e,t,o)=>by(t)?zC(t):zC(t)||Ob(gy(e,t,o).dom,t).exists(zC),wy=e=>Q(["pre","pre-wrap"],e),ky=e=>Kp(e).bind(e=>na(e,Mo)).exists(e=>wy(va(e,"white-space"))),Cy=(e,t)=>jb(e.dom,t).isNone(),yy=(e,t)=>Ob(e.dom,t).isNone(),Oy=(e,t,o)=>Cy(e,t)||yy(e,t)||ry(e,t,o)||iy(e,t,o)||my(e,t,o)||uy(e,t,o),jy=e=>V(e)&&Tr(e)&&_p(e),xy=(e,t)=>o=>jy(new lr(o,e)[t]()),_y=(e,t)=>{const o=Ob(e.dom,t).getOr(t),n=xy(e.dom,"next");return t.isAtEnd()&&(n(t.container())||n(o.container()))},Vy=(e,t)=>{const o=jb(e.dom,t).getOr(t),n=xy(e.dom,"prev");return t.isAtStart()&&(n(t.container())||n(o.container()))},Ay=(e,t,o)=>!ky(t)&&(Oy(e,t,o)||fy(e,t,o)||vy(e,t,o)),Ny=(e,t,o)=>!ky(t)&&(ry(e,t,o)||ly(e,t,o)||my(e,t,o)||fy(e,t,o)||Vy(e,t)),Dy=e=>{const t=e.container(),o=e.offset();return Or(t)&&o<t.data.length?tu(t,o+1):e},Ey=(e,t,o)=>!ky(t)&&(iy(e,t,o)||sy(e,t,o)||uy(e,t,o)||vy(e,t,o)||_y(e,t)),Ty=(e,t,o)=>Ny(e,t,o)||Ey(e,Dy(t),o),Sy=(e,t)=>Xb(e.charAt(t)),By=(e,t)=>eg(e.charAt(t)),Iy=e=>{const t=e.container();return Or(t)&&st(t.data,Pr)},zy=e=>{const t=e.split("");return Z(t,(e,o)=>Xb(e)&&o>0&&o<t.length-1&&tg(t[o-1])&&tg(t[o+1])?" ":e).join("")},Fy=(e,t,o,n)=>{const a=t.data,r=tu(t,0);return o||!Sy(a,0)||Ty(e,r,n)?!!(o&&By(a,0)&&Ny(e,r,n))&&(t.data=Pr+a.slice(1),!0):(t.data=" "+a.slice(1),!0)},My=e=>{const t=e.data,o=zy(t);return o!==t&&(e.data=o,!0)},Ly=(e,t,o,n)=>{const a=t.data,r=tu(t,a.length-1);return o||!Sy(a,a.length-1)||Ty(e,r,n)?!!(o&&By(a,a.length-1)&&Ey(e,r,n))&&(t.data=a.slice(0,-1)+Pr,!0):(t.data=a.slice(0,-1)+" ",!0)},Py=(e,t,o)=>{const n=t.container();if(!Or(n))return U.none();if(Iy(t)){const a=Fy(e,n,!1,o)||My(n)||Ly(e,n,!1,o);return wo(a,t)}if(Ty(e,t,o)){const a=Fy(e,n,!0,o)||Ly(e,n,!0,o);return wo(a,t)}return U.none()},Ry=e=>{const t=fn.fromDom(e.getBody());e.selection.isCollapsed()&&Py(t,tu.fromRangeStart(e.selection.getRng()),e.schema).each(t=>{e.selection.setRng(t.toRange())})},qy=(e,t,o,n)=>{if(0===o)return;const a=fn.fromDom(e),r=oa(a,e=>n.isBlock(So(e))).getOr(a),i=e.data.slice(t,t+o),l=t+o>=e.data.length&&Ey(r,tu(e,e.data.length),n),s=0===t&&Ny(r,tu(e,0),n);e.replaceData(t,o,el(i,4,s,l))},$y=(e,t,o)=>{const n=e.data.slice(t),a=n.length-ht(n).length;qy(e,t,a,o)},Uy=(e,t,o)=>{const n=e.data.slice(0,t),a=n.length-pt(n).length;qy(e,t-a,a,o)},Hy=(e,t,o,n,a=!0)=>{const r=pt(e.data).length,i=a?e:t,l=a?t:e;return a?i.appendData(l.data):i.insertData(0,l.data),Ta(fn.fromDom(l)),n&&$y(i,r,o),i},Wy=(e,t)=>{const o=e.container(),n=e.offset();return!tu.isTextPosition(e)&&o===t.parentNode&&n>tu.before(t).offset()},Gy=(e,t)=>Wy(t,e)?tu(t.container(),t.offset()-1):t,Ky=e=>Or(e)?tu(e,0):tu.before(e),Yy=e=>Or(e)?tu(e,e.data.length):tu.after(e),Qy=e=>Ri(e.previousSibling)?U.some(Yy(e.previousSibling)):e.previousSibling?_b(e.previousSibling):U.none(),Jy=e=>Ri(e.nextSibling)?U.some(Ky(e.nextSibling)):e.nextSibling?xb(e.nextSibling):U.none(),Zy=(e,t)=>U.from(t.previousSibling?t.previousSibling:t.parentNode).bind(t=>jb(e,tu.before(t))).orThunk(()=>Ob(e,tu.after(t))),Xy=(e,t)=>Ob(e,tu.after(t)).orThunk(()=>jb(e,tu.before(t))),eO=(e,t)=>Qy(t).orThunk(()=>Jy(t)).orThunk(()=>Zy(e,t)),tO=(e,t)=>Jy(t).orThunk(()=>Qy(t)).orThunk(()=>Xy(e,t)),oO=(e,t,o)=>e?tO(t,o):eO(t,o),nO=(e,t,o)=>oO(e,t,o).map(F(Gy,o)),aO=(e,t,o)=>{o.fold(()=>{e.focus()},o=>{e.selection.setRng(o.toRange(),t)})},rO=e=>t=>t.dom===e,iO=(e,t)=>t&&Se(e.schema.getBlockElements(),So(t)),lO=(e,t)=>{if(dl(e)){const o=fn.fromHtml('<br data-mce-bogus="1">');return t?X(Fn(e),e=>{Yg(e)||Ta(e)}):Ea(e),Va(e,o),U.some(tu.before(o.dom))}return U.none()},sO=(e,t,o,n)=>{const a=Sn(e).filter(Lo),r=Bn(e).filter(Lo);return Ta(e),vo(a,r,t,(e,t,a)=>{const r=e.dom,i=t.dom,l=r.data.length;return Hy(r,i,o,n),a.container()===i?tu(r,l):a}).orThunk(()=>(n&&(a.each(e=>Uy(e.dom,e.dom.length,o)),r.each(e=>$y(e.dom,0,o))),t))},cO=(e,t)=>Se(e.schema.getTextInlineElements(),So(t)),dO=(e,t,o,n=!0,a=!1)=>{const r=nO(t,e.getBody(),o.dom),i=oa(o,F(iO,e),rO(e.getBody())),l=sO(o,r,e.schema,cO(e,o));e.dom.isEmpty(e.getBody())?(e.setContent(""),e.selection.setCursorLocation()):i.bind(e=>lO(e,a)).fold(()=>{n&&aO(e,t,l)},o=>{n&&aO(e,t,U.some(o))})},uO=/[\u0591-\u07FF\uFB1D-\uFDFF\uFE70-\uFEFC]/,mO=e=>uO.test(e),hO=(e,t)=>wn(fn.fromDom(t),Lm(e))&&!El(e.schema,t)&&e.dom.isEditable(t),pO=e=>{var t;return"rtl"===gc.DOM.getStyle(e,"direction",!0)||mO(null!==(t=e.textContent)&&void 0!==t?t:"")},bO=(e,t,o)=>oe(gc.DOM.getParents(o.container(),"*",t),e),gO=(e,t,o)=>{const n=bO(e,t,o);return U.from(n[n.length-1])},fO=(e,t,o)=>{const n=Fp(t,e),a=Fp(o,e);return V(n)&&n===a},vO=e=>xi(e)||_i(e),wO=(e,t)=>{const o=t.container(),n=t.offset();return e?Ci(o)?Or(o.nextSibling)?tu(o.nextSibling,0):tu.after(o):xi(t)?tu(o,n+1):t:Ci(o)?Or(o.previousSibling)?tu(o.previousSibling,o.previousSibling.data.length):tu.before(o):_i(t)?tu(o,n-1):t},kO=F(wO,!0),CO=F(wO,!1),yO=(e,t)=>{const o=e=>e.stopImmediatePropagation();e.on("beforeinput input",o,!0),e.getDoc().execCommand(t),e.off("beforeinput input",o)},OO=e=>{e.execCommand("delete")},jO=e=>yO(e,"Delete"),xO=e=>yO(e,"ForwardDelete"),_O=e=>t=>po(Nn(t),e,On),VO=e=>ni(e)||ri(e),AO=(e,t)=>jn(e,t)?na(t,VO,_O(e)):U.none(),NO=(e,t=!0)=>{e.dom.isEmpty(e.getBody())&&e.setContent("",{no_selection:!t})},DO=(e,t,o)=>fo(xb(o),_b(o),(n,a)=>{const r=wO(!0,n),i=wO(!1,a),l=wO(!1,t);return e?Ob(o,l).exists(e=>e.isEqual(i)&&t.isEqual(r)):jb(o,l).exists(e=>e.isEqual(r)&&t.isEqual(i))}).getOr(!0),EO=e=>{const t=zo(e)?Sn(e):Pn(e);return t.bind(EO).orThunk(()=>U.some(e))},TO=(e,t,o,n=!0)=>{var a;t.deleteContents();const r=EO(o).getOr(o),i=fn.fromDom(null!==(a=e.dom.getParent(r.dom,e.dom.isBlock))&&void 0!==a?a:o.dom);if(i.dom===e.getBody()?NO(e,n):dl(i)&&(mi(i),n&&e.selection.setCursorLocation(i.dom,0)),!On(o,i)){const e=po(Nn(i),o)?[]:Tn(i);X(e.concat(Fn(o)),e=>{On(e,i)||jn(e,i)||!dl(e)||Ta(e)})}},SO=(e,t,o)=>oa(e,t,o).isSome(),BO=(e,t)=>aa(e,t).isSome(),IO=(e,t)=>ia(e,t).isSome(),zO=e=>t=>On(e,t),FO=e=>rr(e,"td,th"),MO=(e,t)=>cg(fn.fromDom(e),t),LO=e=>fo(e.startTable,e.endTable,(t,o)=>{const n=IO(t,e=>On(e,o)),a=IO(o,e=>On(e,t));return n||a?{...e,startTable:n?U.none():e.startTable,endTable:a?U.none():e.endTable,isSameTable:!1,isMultiTable:!1}:e}).getOr(e),PO=e=>LO(e),RO=(e,t)=>{const o=MO(e.startContainer,t),n=MO(e.endContainer,t),a=o.isSome(),r=n.isSome(),i=fo(o,n,On).getOr(!1),l=!i&&a&&r;return PO({startTable:o,endTable:n,isStartInTable:a,isEndInTable:r,isSameTable:i,isMultiTable:l})},qO=(e,t)=>({start:e,end:t}),$O=(e,t,o)=>({rng:e,table:t,cells:o}),UO=Ru.generate([{singleCellTable:["rng","cell"]},{fullTable:["table"]},{partialTable:["cells","outsideDetails"]},{multiTable:["startTableCells","endTableCells","betweenRng"]}]),HO=(e,t)=>ca(fn.fromDom(e),"td,th",t),WO=e=>!On(e.start,e.end),GO=(e,t)=>cg(e.start,t).bind(o=>cg(e.end,t).bind(e=>wo(On(o,e),o))),KO=(e,t)=>!WO(e)&&GO(e,t).exists(e=>{const t=e.dom.rows;return 1===t.length&&1===t[0].cells.length}),YO=(e,t)=>{const o=HO(e.startContainer,t),n=HO(e.endContainer,t);return fo(o,n,qO)},QO=e=>t=>cg(t,e).bind(e=>fe(FO(e)).map(e=>qO(t,e))),JO=e=>t=>cg(t,e).bind(e=>ge(FO(e)).map(e=>qO(e,t))),ZO=e=>t=>GO(t,e).map(e=>$O(t,e,FO(e))),XO=(e,t,o,n)=>{if(o.collapsed||!e.forall(WO))return U.none();if(t.isSameTable){const t=e.bind(ZO(n));return U.some({start:t,end:t})}{const e=HO(o.startContainer,n),t=HO(o.endContainer,n),a=e.bind(QO(n)).bind(ZO(n)),r=t.bind(JO(n)).bind(ZO(n));return U.some({start:a,end:r})}},ej=(e,t)=>le(e,e=>On(e,t)),tj=e=>fo(ej(e.cells,e.rng.start),ej(e.cells,e.rng.end),(t,o)=>e.cells.slice(t,o+1)),oj=(e,t,o)=>e.exists(e=>KO(e,o)&&pg(e.start,t)),nj=(e,t)=>{const{startTable:o,endTable:n}=t,a=e.cloneRange();return o.each(e=>a.setStartAfter(e.dom)),n.each(e=>a.setEndBefore(e.dom)),a},aj=(e,t,o,n)=>XO(e,t,o,n).bind(({start:e,end:t})=>e.or(t)).bind(e=>{const{isSameTable:n}=t,a=tj(e).getOr([]);if(n&&e.cells.length===a.length)return U.some(UO.fullTable(e.table));if(a.length>0){if(n)return U.some(UO.partialTable(a,U.none()));{const e=nj(o,t);return U.some(UO.partialTable(a,U.some({...t,rng:e})))}}return U.none()}),rj=(e,t,o,n)=>XO(e,t,o,n).bind(({start:e,end:n})=>{const a=e.bind(tj).getOr([]),r=n.bind(tj).getOr([]);if(a.length>0&&r.length>0){const e=nj(o,t);return U.some(UO.multiTable(a,r,e))}return U.none()}),ij=(e,t)=>{const o=zO(e),n=YO(t,o),a=RO(t,o);return oj(n,t,o)?n.map(e=>UO.singleCellTable(t,e.start)):a.isMultiTable?rj(n,a,t,o):aj(n,a,t,o)},lj=e=>X(e,e=>{Yo(e,"contenteditable"),mi(e)}),sj=(e,t)=>U.from(e.dom.getParent(t,e.dom.isBlock)).map(fn.fromDom),cj=(e,t,o)=>{o.each(o=>{t?Ta(o):(mi(o),e.selection.setCursorLocation(o.dom,0))})},dj=(e,t,o,n)=>{const a=o.cloneRange();n?(a.setStart(o.startContainer,o.startOffset),a.setEndAfter(t.dom.lastChild)):(a.setStartBefore(t.dom.firstChild),a.setEnd(o.endContainer,o.endOffset)),pj(e,a,t,!1).each(e=>e())},uj=e=>{const t=sg(e),o=fn.fromDom(e.selection.getNode());Sr(o.dom)&&dl(o)?e.selection.setCursorLocation(o.dom,0):e.selection.collapse(!0),t.length>1&&J(t,e=>On(e,o))&&Uo(o,"data-mce-selected","1")},mj=(e,t,o)=>U.some(()=>{const n=e.selection.getRng(),a=o.bind(({rng:o,isStartInTable:a})=>{const r=sj(e,a?o.endContainer:o.startContainer);o.deleteContents(),cj(e,a,r.filter(dl));const i=a?t[0]:t[t.length-1];return dj(e,i,n,a),dl(i)?U.none():U.some(a?t.slice(1):t.slice(0,-1))}).getOr(t);lj(a),uj(e)}),hj=(e,t,o,n)=>U.some(()=>{const a=e.selection.getRng(),r=t[0],i=o[o.length-1];dj(e,r,a,!0),dj(e,i,a,!1);const l=dl(r)?t:t.slice(1),s=dl(i)?o:o.slice(0,-1);lj(l.concat(s)),n.deleteContents(),uj(e)}),pj=(e,t,o,n=!0)=>U.some(()=>{TO(e,t,o,n)}),bj=(e,t)=>U.some(()=>dO(e,!1,t)),gj=(e,t,o)=>ij(t,o).bind(t=>t.fold(F(pj,e),F(bj,e),F(mj,e),F(hj,e))),fj=(e,t)=>Oj(e,t),vj=(e,t,o,n)=>Cj(t,n).fold(()=>gj(e,t,o),t=>fj(e,t)),wj=(e,t,o)=>{const n=fn.fromDom(e.getBody()),a=e.selection.getRng();return 0!==o.length?mj(e,o,U.none()):vj(e,n,a,t)},kj=(e,t)=>ie(XC(t,e),li),Cj=(e,t)=>ie(XC(t,e),qo("caption")),yj=(e,t,o,n,a)=>kb(o,e.getBody(),a).bind(e=>kj(t,fn.fromDom(e.getNode())).bind(e=>On(e,n)?U.none():U.some(E))),Oj=(e,t)=>U.some(()=>{mi(t),e.selection.setCursorLocation(t.dom,0)}),jj=(e,t,o,n)=>xb(e.dom).bind(a=>_b(e.dom).map(e=>t?o.isEqual(a)&&n.isEqual(e):o.isEqual(e)&&n.isEqual(a))).getOr(!0),xj=(e,t)=>Oj(e,t),_j=(e,t,o)=>Cj(e,fn.fromDom(o.getNode())).fold(()=>U.some(E),e=>wo(!On(e,t),E)),Vj=(e,t,o,n,a)=>kb(o,e.getBody(),a).fold(()=>U.some(E),r=>jj(n,o,a,r)?xj(e,n):_j(t,n,r)),Aj=(e,t,o,n)=>{const a=tu.fromRangeStart(e.selection.getRng());return kj(o,n).bind(n=>dl(n)?Oj(e,n):yj(e,o,t,n,a))},Nj=(e,t,o,n)=>{const a=tu.fromRangeStart(e.selection.getRng());return dl(n)?Oj(e,n):Vj(e,o,t,n,a)},Dj=(e,t)=>e?WC(t):GC(t),Ej=(e,t)=>{const o=tu.fromRangeStart(e.selection.getRng());return Dj(t,o)||wb(t,e.getBody(),o).exists(e=>Dj(t,e))},Tj=(e,t,o)=>{const n=fn.fromDom(e.getBody());return Cj(n,o).fold(()=>Aj(e,t,n,o).orThunk(()=>wo(Ej(e,t),E)),o=>Nj(e,t,n,o))},Sj=(e,t)=>{const o=fn.fromDom(e.selection.getStart(!0)),n=sg(e);return e.selection.isCollapsed()&&0===n.length?Tj(e,t,o):wj(e,o,n)},Bj=(e,t)=>{let o=t;while(o&&o!==e){if(Er(o)||Tr(o))return o;o=o.parentNode}return null},Ij=["data-ephox-","data-mce-","data-alloy-","data-snooker-","_"],zj=ho.each,Fj=e=>{const t=e.dom,o=new Set(e.serializer.getTempAttrs()),n=(e,o)=>{if(e.nodeName!==o.nodeName||e.nodeType!==o.nodeType)return!1;const n=e=>{const o={};return zj(t.getAttribs(e),n=>{const r=n.nodeName.toLowerCase();"style"===r||a(r)||(o[r]=t.getAttrib(e,r))}),o},r=(e,t)=>{for(const o in e)if(Se(e,o)){const n=t[o];if(x(n))return!1;if(e[o]!==n)return!1;delete t[o]}for(const o in t)if(Se(t,o))return!1;return!0};if(dr(e)&&dr(o)){if(!r(n(e),n(o)))return!1;if(!r(t.parseStyle(t.getAttrib(e,"style")),t.parseStyle(t.getAttrib(o,"style"))))return!1}return!Jb(e)&&!Jb(o)},a=e=>J(Ij,t=>ct(e,t))||o.has(e);return{compare:n,isAttributeInternal:a}},Mj=e=>["h1","h2","h3","h4","h5","h6"].includes(e.name),Lj=e=>"summary"===e.name,Pj=(e,t)=>{let o=e;while(o=o.walk())t(o)},Rj=(e,t,o,n)=>{const a=o.name;for(let r=0,i=e.length;r<i;r++){const t=e[r];if(t.name===a){const e=n.nodes[a];e?e.nodes.push(o):n.nodes[a]={filter:t,nodes:[o]}}}if(o.attributes)for(let r=0,i=t.length;r<i;r++){const e=t[r],a=e.name;if(a in o.attributes.map){const t=n.attributes[a];t?t.nodes.push(o):n.attributes[a]={filter:e,nodes:[o]}}}},qj=(e,t,o)=>{const n={nodes:{},attributes:{}};return o.firstChild&&Pj(o,o=>{Rj(e,t,o,n)}),n},$j=(e,t)=>{const o=(e,o)=>{Oe(e,e=>{const n=ve(e.nodes);X(e.filter.callbacks,a=>{for(let t=n.length-1;t>=0;t--){const a=n[t],r=o?void 0!==a.attr(e.filter.name):a.name===e.filter.name;r&&!_(a.parent)||n.splice(t,1)}n.length>0&&a(n,e.filter.name,t)})})};o(e.nodes,!1),o(e.attributes,!0)},Uj=(e,t,o,n={})=>{const a=qj(e,t,o);$j(a,n)},Hj=(e,t,o,n)=>{const a=e.pad_empty_with_br||t.insert;if(a&&o(n)){const e=new aC("br",1);t.insert&&e.attr("data-mce-bogus","1"),n.empty().append(e)}else n.empty().append(new aC("#text",3)).value=Pr},Wj=e=>{var t;return Gj(e,"#text")&&(null===(t=null===e||void 0===e?void 0:e.firstChild)||void 0===t?void 0:t.value)===Pr},Gj=(e,t)=>{const o=null===e||void 0===e?void 0:e.firstChild;return V(o)&&o===e.lastChild&&o.name===t},Kj=(e,t)=>{const o=e.getElementRule(t.name);return!0===(null===o||void 0===o?void 0:o.paddEmpty)},Yj=(e,t,o,n)=>n.isEmpty(t,o,t=>Kj(e,t)),Qj=(e,t)=>V(e)&&(t(e)||"br"===e.name),Jj=e=>{let t;for(let o=e;o;o=o.parent){const e=o.attr("contenteditable");if("false"===e)break;"true"===e&&(t=o)}return U.from(t)},Zj=(e,t,o=e.parent)=>{if(t.getSpecialElements()[e.name])e.empty().remove();else{const n=e.children();for(const e of n)o&&!t.isValidChild(o.name,e.name)&&Zj(e,t,o);e.unwrap()}},Xj=(e,t,o,n=E)=>{const a=t.getTextBlockElements(),r=t.getNonEmptyElements(),i=t.getWhitespaceElements(),l=ho.makeMap("tr,td,th,tbody,thead,tfoot,table,summary"),s=new Set,c=e=>e!==o&&!l[e.name];for(let d=0;d<e.length;d++){const o=e[d];let l,u,m;if(!o.parent||s.has(o))continue;if(a[o.name]&&"li"===o.parent.name){let e=o.next;while(e){if(!a[e.name])break;e.name="li",s.add(e),o.parent.insert(e,o.parent),e=e.next}o.unwrap();continue}const h=[o];for(l=o.parent;l&&!t.isValidChild(l.name,o.name)&&c(l);l=l.parent)h.push(l);if(l&&h.length>1)if(tx(t,o,l))Zj(o,t);else{h.reverse(),u=h[0].clone(),n(u);let e=u;for(let o=0;o<h.length-1;o++){t.isValidChild(e.name,h[o].name)&&o>0?(m=h[o].clone(),n(m),e.append(m)):m=e;for(let e=h[o].firstChild;e&&e!==h[o+1];){const t=e.next;m.append(e),e=t}e=m}Yj(t,r,i,u)?l.insert(o,h[0],!0):(l.insert(u,h[0],!0),l.insert(o,u)),l=h[0],(Yj(t,r,i,l)||Gj(l,"br"))&&l.empty().remove()}else if(o.parent){if("li"===o.name){let e=o.prev;if(e&&("ul"===e.name||"ol"===e.name)){e.append(o);continue}if(e=o.next,e&&("ul"===e.name||"ol"===e.name)&&e.firstChild){e.insert(o,e.firstChild,!0);continue}const t=new aC("ul",1);n(t),o.wrap(t);continue}if(t.isValidChild(o.parent.name,"div")&&t.isValidChild("div",o.name)){const e=new aC("div",1);n(e),o.wrap(e)}else Zj(o,t)}}},ex=(e,t)=>{let o=e;while(o){if(o.name===t)return!0;o=o.parent}return!1},tx=(e,t,o=t.parent)=>!!o&&(!(!e.children[t.name]||e.isValidChild(o.name,t.name))||(!("a"!==t.name||!ex(o,"a"))||!(!Lj(o)||!Mj(t))&&!((null===o||void 0===o?void 0:o.firstChild)===t&&(null===o||void 0===o?void 0:o.lastChild)===t))),ox=(e,t,o,n)=>{const a=document.createRange();return a.setStart(e,t),a.setEnd(o,n),a},nx=e=>{const t=tu.fromRangeStart(e),o=tu.fromRangeEnd(e),n=e.commonAncestorContainer;return wb(!1,n,o).map(a=>!Mp(t,o,n)&&Mp(t,a,n)?ox(t.container(),t.offset(),a.container(),a.offset()):e).getOr(e)},ax=e=>e.collapsed?e:nx(e),rx=e=>V(e.firstChild)&&e.firstChild===e.lastChild,ix=e=>"br"===e.name||e.value===Pr,lx=(e,t)=>{const o=e.getBlockElements();return o[t.name]&&rx(t)&&ix(t.firstChild)},sx=(e,t)=>{const o=e.getNonEmptyElements();return V(t)&&(t.isEmpty(o)||lx(e,t))},cx=(e,t)=>{let o=t.firstChild,n=t.lastChild;return o&&"meta"===o.name&&(o=o.next),n&&"mce_marker"===n.attr("id")&&(n=n.prev),sx(e,n)&&(n=null===n||void 0===n?void 0:n.prev),!(!o||o!==n)&&("ul"===o.name||"ol"===o.name)},dx=e=>{var t,o;const n=e.firstChild,a=e.lastChild;return n&&"META"===n.nodeName&&(null===(t=n.parentNode)||void 0===t||t.removeChild(n)),a&&"mce_marker"===a.id&&(null===(o=a.parentNode)||void 0===o||o.removeChild(a)),e},ux=(e,t,o)=>{const n=t.serialize(o),a=e.createFragment(n);return dx(a)},mx=e=>{var t;return oe(null!==(t=null===e||void 0===e?void 0:e.childNodes)&&void 0!==t?t:[],e=>"LI"===e.nodeName)},hx=e=>e.data===Pr||Nr(e),px=e=>V(null===e||void 0===e?void 0:e.firstChild)&&e.firstChild===e.lastChild&&hx(e.firstChild),bx=e=>!e.firstChild||px(e),gx=e=>e.length>0&&bx(e[e.length-1])?e.slice(0,-1):e,fx=(e,t)=>{const o=e.getParent(t,e.isBlock);return o&&"LI"===o.nodeName?o:null},vx=(e,t)=>!!fx(e,t),wx=(e,t)=>{const o=t.cloneRange(),n=t.cloneRange();return o.setStartBefore(e),n.setEndAfter(e),[o.cloneContents(),n.cloneContents()]},kx=(e,t)=>{const o=tu.before(e),n=ub(t),a=n.next(o);return a?a.toRange():null},Cx=(e,t)=>{const o=tu.after(e),n=ub(t),a=n.prev(o);return a?a.toRange():null},yx=(e,t,o,n)=>{const a=wx(e,n),r=e.parentNode;return r&&(r.insertBefore(a[0],e),ho.each(t,t=>{r.insertBefore(t,e)}),r.insertBefore(a[1],e),r.removeChild(e)),Cx(t[t.length-1],o)},Ox=(e,t,o)=>{const n=e.parentNode;return n&&ho.each(t,t=>{n.insertBefore(t,e)}),kx(e,o)},jx=(e,t,o,n)=>(n.insertAfter(t.reverse(),e),Cx(t[0],o)),xx=(e,t,o,n)=>{const a=ux(t,e,n),r=fx(t,o.startContainer),i=gx(mx(a.firstChild)),l=1,s=2,c=t.getRoot(),d=e=>{const n=tu.fromRangeStart(o),a=ub(t.getRoot()),i=e===l?a.prev(n):a.next(n),s=null===i||void 0===i?void 0:i.getNode();return!s||fx(t,s)!==r};return r?d(l)?Ox(r,i,c):d(s)?jx(r,i,c,t):yx(r,i,c,o):null},_x=["pre"],Vx=(e,t,o,n)=>{var a;const r=t.firstChild,i=t.lastChild,l="bookmark"===i.attr("data-mce-type")?i.prev:i,s=r===l,c=Q(_x,r.name);if(s&&c){const t="false"!==r.attr("contenteditable"),i=(null===(a=e.getParent(o,e.isBlock))||void 0===a?void 0:a.nodeName.toLowerCase())===r.name,l=U.from(Bj(n,o)).forall(Er);return t&&i&&l}return!1},Ax=Sr,Nx=(e,t,o)=>{if(V(o)){const n=e.getParent(t.endContainer,Ax);return o===n&&pg(fn.fromDom(o),t)}return!1},Dx=(e,t,o)=>{var n;if("all"===o.getAttribute("data-mce-bogus"))null===(n=o.parentNode)||void 0===n||n.insertBefore(e.dom.createFragment(t),o);else{const n=o.firstChild,a=o.lastChild;!n||n===a&&"BR"===n.nodeName?e.dom.setHTML(o,t):e.selection.setContent(t,{no_events:!0})}},Ex=(e,t,o)=>{U.from(e.getParent(t,"td,th")).map(fn.fromDom).each(e=>hi(e,o))},Tx=(e,t)=>{const o=e.schema.getTextInlineElements(),n=e.dom;if(t){const t=e.getBody(),a=Fj(e);ho.each(n.select("*[data-mce-fragment]"),e=>{const r=V(o[e.nodeName.toLowerCase()]);if(r&&TC(n,e))for(let o=e.parentElement;V(o)&&o!==t;o=o.parentElement){const t=BC(n,e,o);if(t)break;if(a.compare(o,e)){n.remove(e,!0);break}}})}},Sx=e=>{let t=e;while(t=t.walk())1===t.type&&t.attr("data-mce-fragment","1")},Bx=e=>{ho.each(e.getElementsByTagName("*"),e=>{e.removeAttribute("data-mce-fragment")})},Ix=e=>!!e.getAttribute("data-mce-fragment"),zx=(e,t)=>V(t)&&!e.schema.getVoidElements()[t.nodeName],Fx=(e,t)=>{var o,n,a;let r;const i=e.dom,l=e.selection;if(!t)return;l.scrollIntoView(t);const s=Bj(e.getBody(),t);if(s&&"false"===i.getContentEditable(s))return i.remove(t),void l.select(s);let c=i.createRng();const d=t.previousSibling;if(Or(d)){c.setStart(d,null!==(n=null===(o=d.nodeValue)||void 0===o?void 0:o.length)&&void 0!==n?n:0);const e=t.nextSibling;Or(e)&&(d.appendData(e.data),null===(a=e.parentNode)||void 0===a||a.removeChild(e))}else c.setStartBefore(t),c.setEndBefore(t);const u=t=>{let o=tu.fromRangeStart(t);const n=ub(e.getBody());return o=n.next(o),null===o||void 0===o?void 0:o.toRange()},m=i.getParent(t,i.isBlock);if(i.remove(t),m&&i.isEmpty(m)){const e=Ax(m);Ea(fn.fromDom(m)),c.setStart(m,0),c.setEnd(m,0),e||Ix(m)||!(r=u(c))?i.add(m,i.create("br",e?{}:{"data-mce-bogus":"1"})):(c=r,i.remove(m))}l.setRng(c)},Mx=e=>{const t=e.dom,o=ax(e.selection.getRng());e.selection.setRng(o);const n=t.getParent(o.startContainer,Ax);Nx(t,o,n)?pj(e,o,fn.fromDom(n)):o.startContainer===o.endContainer&&o.endOffset-o.startOffset===1&&Or(o.startContainer.childNodes[o.startOffset])?o.deleteContents():e.getDoc().execCommand("Delete",!1)},Lx=e=>{for(let t=e;t;t=t.walk())if("mce_marker"===t.attr("id"))return U.some(t);return U.none()},Px=(e,t,o)=>{var n;return J(o.children(),Mj)&&"SUMMARY"===(null===(n=e.getParent(t,e.isBlock))||void 0===n?void 0:n.nodeName)},Rx=(e,t,o)=>{var n,a;const r=e.selection,i=e.dom,l=e.parser,s=o.merge,c=VC({validate:!0},e.schema),d='<span id="mce_marker" data-mce-type="bookmark">&#xFEFF;</span>';o.preserve_zwsp||(t=gi(t)),-1===t.indexOf("{$caret}")&&(t+="{$caret}"),t=t.replace(/\{\$caret\}/,d);let u=r.getRng();const m=u.startContainer,h=e.getBody();m===h&&r.isCollapsed()&&i.isBlock(h.firstChild)&&zx(e,h.firstChild)&&i.isEmpty(h.firstChild)&&(u=i.createRng(),u.setStart(h.firstChild,0),u.setEnd(h.firstChild,0),r.setRng(u)),r.isCollapsed()||Mx(e);const p=r.getNode(),b={context:p.nodeName.toLowerCase(),data:o.data,insert:!0},g=l.parse(t,b);if(!0===o.paste&&cx(e.schema,g)&&vx(i,p))return u=xx(c,i,r.getRng(),g),u&&r.setRng(u),t;!0===o.paste&&Vx(i,g,p,e.getBody())&&(null===(n=g.firstChild)||void 0===n||n.unwrap()),Sx(g);let f=g.lastChild;if(f&&"mce_marker"===f.attr("id")){const t=f;for(f=f.prev;f;f=f.walk(!0))if(3===f.type||!i.isBlock(f.name)){f.parent&&e.schema.isValidChild(f.parent.name,"span")&&f.parent.insert(t,f,"br"===f.name);break}}if(e._selectionOverrides.showBlockCaretContainer(p),b.invalid||Px(i,p,g)){e.selection.setContent(d);let o,n=r.getNode();const s=e.getBody();Vr(n)?n=o=s:o=n;while(o&&o!==s)n=o,o=o.parentNode;t=n===s?s.innerHTML:i.getOuterHTML(n);const u=l.parse(t),m=Lx(u),h=m.bind(Jj).getOr(u);m.each(e=>e.replace(g));const p=g.children(),b=null!==(a=g.parent)&&void 0!==a?a:u;g.unwrap();const f=oe(p,t=>tx(e.schema,t,b));Xj(f,e.schema,h),Uj(l.getNodeFilters(),l.getAttributeFilters(),u),t=c.serialize(u),n===s?i.setHTML(s,t):i.setOuterHTML(n,t)}else t=c.serialize(g),Dx(e,t,p);return Tx(e,s),Fx(e,i.get("mce_marker")),Bx(e.getBody()),Ex(i,r.getStart(),e.schema),Vl(e.schema,e.getBody(),r.getStart()),t},qx=e=>e instanceof aC,$x=e=>{Vk(e)&&xb(e.getBody()).each(t=>{const o=t.getNode(),n=kr(o)?xb(o).getOr(t):t;e.selection.setRng(n.toRange())})},Ux=(e,t,o)=>{e.dom.setHTML(e.getBody(),t),!0!==o&&$x(e)},Hx=(e,t,o,n)=>{if(o=gi(o),0===o.length||/^\s+$/.test(o)){const a='<br data-mce-bogus="1">';"TABLE"===t.nodeName?o="<tr><td>"+a+"</td></tr>":/^(UL|OL)$/.test(t.nodeName)&&(o="<li>"+a+"</li>");const r=hm(e);return e.schema.isValidChild(t.nodeName.toLowerCase(),r.toLowerCase())?(o=a,o=e.dom.createHTML(r,pm(e),o)):o||(o=a),Ux(e,o,n.no_selection),{content:o,html:o}}{"raw"!==n.format&&(o=VC({validate:!1},e.schema).serialize(e.parser.parse(o,{isRootContent:!0,insert:!0})));const a=si(fn.fromDom(t))?o:ho.trim(o);return Ux(e,a,n.no_selection),{content:a,html:a}}},Wx=(e,t,o,n)=>{Uj(e.parser.getNodeFilters(),e.parser.getAttributeFilters(),o);const a=VC({validate:!1},e.schema).serialize(o),r=gi(si(fn.fromDom(t))?a:ho.trim(a));return Ux(e,r,n.no_selection),{content:o,html:r}},Gx=(e,t,o)=>U.from(e.getBody()).map(n=>qx(t)?Wx(e,n,t,o):Hx(e,n,t,o)).getOr({content:t,html:qx(o.content)?"":o.content}),Kx=e=>A(e)?e:q,Yx=(e,t,o)=>{let n=e.dom;const a=Kx(o);while(n.parentNode){n=n.parentNode;const e=fn.fromDom(n),o=t(e);if(o.isSome())return o;if(a(e))break}return U.none()},Qx=(e,t,o)=>{const n=t(e),a=Kx(o);return n.orThunk(()=>a(e)?U.none():Yx(e,t,a))},Jx=Tg,Zx=(e,t,o)=>{const n=e.formatter.get(o);if(n)for(let a=0;a<n.length;a++){const o=n[a];if($g(o)&&!1===o.inherit&&e.dom.is(t,o.selector))return!0}return!1},Xx=(e,t,o,n,a)=>{const r=e.dom.getRoot();if(t===r)return!1;const i=e.dom.getParent(t,t=>!!Zx(e,t,o)||(t.parentNode===r||!!o_(e,t,o,n,!0)));return!!o_(e,i,o,n,a)},e_=(e,t,o)=>!(!Ug(o)||!Jx(t,o.inline))||(!(!Pg(o)||!Jx(t,o.block))||!!$g(o)&&(dr(t)&&e.is(t,o.selector))),t_=(e,t,o,n,a,r)=>{const i=o[n],l="attributes"===n;if(A(o.onmatch))return o.onmatch(t,o,n);if(i)if(Fe(i)){for(let s=0;s<i.length;s++)if(l?e.getAttrib(t,i[s]):Bg(e,t,i[s]))return!0}else for(const s in i)if(Se(i,s)){const n=l?e.getAttrib(t,s):Bg(e,t,s),c=Eg(i[s],r),d=_(n)||gt(n);if(d&&_(c))continue;if(a&&d&&!o.exact)return!1;if((!a||o.exact)&&!Jx(n,Sg(c,s)))return!1}return!0},o_=(e,t,o,n,a)=>{const r=e.formatter.get(o),i=e.dom;if(r&&dr(t))for(let l=0;l<r.length;l++){const o=r[l];if(e_(e.dom,t,o)&&t_(i,t,o,"attributes",a,n)&&t_(i,t,o,"styles",a,n)){const a=o.classes;if(a)for(let o=0;o<a.length;o++)if(!e.dom.hasClass(t,Eg(a[o],n)))return;return o}}},n_=(e,t,o,n,a)=>{if(n)return Xx(e,n,t,o,a);if(n=e.selection.getNode(),Xx(e,n,t,o,a))return!0;const r=e.selection.getStart();return!(r===n||!Xx(e,r,t,o,a))},a_=(e,t,o)=>{const n=[],a={},r=e.selection.getStart();return e.dom.getParent(r,r=>{for(let i=0;i<t.length;i++){const l=t[i];!a[l]&&o_(e,r,l,o)&&(a[l]=!0,n.push(l))}},e.dom.getRoot()),n},r_=(e,t)=>{const o=t=>On(t,fn.fromDom(e.getBody())),n=(t,o)=>o_(e,t.dom,o)?U.some(o):U.none();return U.from(e.selection.getStart(!0)).bind(e=>Qx(fn.fromDom(e),e=>we(t,t=>n(e,t)),o)).getOrNull()},i_=(e,t)=>{const o=e.formatter.get(t),n=e.dom;if(o&&e.selection.isEditable()){const t=e.selection.getStart(),a=zg(n,t);for(let e=o.length-1;e>=0;e--){const t=o[e];if(!$g(t))return!0;for(let e=a.length-1;e>=0;e--)if(n.is(a[e],t.selector))return!0}}return!1},l_=(e,t,o)=>ae(o,(o,n)=>{const a=Mg(e,n);return e.formatter.matchNode(t,n,{},a)?o.concat([n]):o},[]),s_=pi,c_=(e,t)=>e.importNode(t,!0),d_=e=>{if(e){const t=new lr(e,e);for(let e=t.current();e;e=t.next())if(Or(e))return e}return null},u_=e=>{const t=fn.fromTag("span");return Ho(t,{id:Vb,"data-mce-bogus":"1","data-mce-type":"format-caret"}),e&&Va(t,fn.fromText(s_)),t},m_=e=>{const t=d_(e);return t&&t.data.charAt(0)===s_&&t.deleteData(0,1),t},h_=(e,t,o)=>{const n=e.dom,a=e.selection;if(Kg(t))dO(e,!1,fn.fromDom(t),o,!0);else{const e=a.getRng(),o=n.getParent(t,n.isBlock),r=e.startContainer,i=e.startOffset,l=e.endContainer,s=e.endOffset,c=m_(t);n.remove(t,!0),r===c&&i>0&&e.setStart(c,i-1),l===c&&s>0&&e.setEnd(c,s-1),o&&n.isEmpty(o)&&mi(fn.fromDom(o)),a.setRng(e)}},p_=(e,t,o)=>{const n=e.dom,a=e.selection;if(t)h_(e,t,o);else if(t=Nb(e.getBody(),a.getStart()),!t)while(t=n.get(Vb))h_(e,t,o)},b_=(e,t,o)=>{var n,a;const r=e.dom,i=r.getParent(o,F(xg,e.schema));i&&r.isEmpty(i)?null===(n=o.parentNode)||void 0===n||n.replaceChild(t,o):(di(fn.fromDom(o)),r.isEmpty(o)?null===(a=o.parentNode)||void 0===a||a.replaceChild(t,o):r.insertAfter(t,o))},g_=(e,t)=>(e.appendChild(t),t),f_=(e,t)=>{var o;const n=ne(e,(e,t)=>g_(e,t.cloneNode(!1)),t),a=null!==(o=n.ownerDocument)&&void 0!==o?o:document;return g_(n,a.createTextNode(s_))},v_=(e,t,o,n,a,r)=>{const i=e.formatter,l=e.dom,s=oe(Ce(i.get()),e=>e!==n&&!st(e,"removeformat")),c=l_(e,o,s),d=oe(c,t=>!Lg(e,t,n));if(d.length>0){const e=o.cloneNode(!1);return l.add(t,e),i.remove(n,a,e,r),l.remove(e),U.some(e)}return U.none()},w_=(e,t,o)=>{let n;const a=e.selection,r=e.formatter.get(t);if(!r)return;const i=a.getRng();let l=i.startOffset;const s=i.startContainer,c=s.nodeValue;n=Nb(e.getBody(),a.getStart());const d=/[^\s\u00a0\u00ad\u200b\ufeff]/;if(c&&l>0&&l<c.length&&d.test(c.charAt(l))&&d.test(c.charAt(l-1))){const n=a.getBookmark();i.collapse(!0);let l=mf(e.dom,i,r);l=ow(l),e.formatter.apply(t,o,l),a.moveToBookmark(n)}else{let r=n?d_(n):null;n&&(null===r||void 0===r?void 0:r.data)===s_||(n=c_(e.getDoc(),u_(!0).dom),r=n.firstChild,i.insertNode(n),l=1),e.formatter.apply(t,o,n),a.setCursorLocation(r,l)}},k_=(e,t,o,n)=>{const a=e.dom,r=e.selection;let i=!1;const l=e.formatter.get(t);if(!l)return;const s=r.getRng(),c=s.startContainer,d=s.startOffset;let u=c;Or(c)&&(d!==c.data.length&&(i=!0),u=u.parentNode);const m=[];let h;while(u){if(o_(e,u,t,o,n)){h=u;break}u.nextSibling&&(i=!0),m.push(u),u=u.parentNode}if(h)if(i){const i=r.getBookmark();s.collapse(!0);let c=mf(a,s,l,!0);c=ow(c),e.formatter.remove(t,o,c,n),r.moveToBookmark(i)}else{const i=Nb(e.getBody(),h),l=V(i)?a.getParents(h.parentNode,$,i):[],s=u_(!1).dom;b_(e,s,null!==i&&void 0!==i?i:h);const c=v_(e,s,h,t,o,n),d=f_([...m,...c.toArray(),...l],s);i&&h_(e,i,V(i)),r.setCursorLocation(d,1),a.isEmpty(h)&&a.remove(h)}},C_=(e,t,o)=>{const n=e.selection,a=e.getBody();p_(e,null,o),8!==t&&46!==t||!n.isCollapsed()||n.getStart().innerHTML!==s_||p_(e,Nb(a,n.getStart()),!0),37!==t&&39!==t||p_(e,Nb(a,n.getStart()),!0)},y_=e=>Or(e)&&dt(e.data,Pr),O_=e=>{e.on("mouseup keydown",t=>{C_(e,t.keyCode,y_(e.selection.getRng().endContainer))})},j_=e=>{const t=u_(!1),o=f_(e,t.dom);return{caretContainer:t,caretPosition:tu(o,0)}},x_=(e,t)=>{const{caretContainer:o,caretPosition:n}=j_(t);return ja(fn.fromDom(e),o),Ta(fn.fromDom(e)),n},__=(e,t)=>{const{caretContainer:o,caretPosition:n}=j_(t);return e.insertNode(o.dom),n},V_=(e,t)=>{if(Ab(t.dom))return!1;const o=e.schema.getTextInlineElements();return Se(o,So(t))&&!Ab(t.dom)&&!vr(t.dom)},A_={},N_=pr(["pre"]),D_=(e,t)=>{const o=A_[e];o||(A_[e]=[]),A_[e].push(t)},E_=(e,t)=>{Se(A_,e)&&X(A_[e],e=>{e(t)})};D_("pre",e=>{const t=e.selection.getRng(),o=e=>t=>{const o=t.previousSibling;return N_(o)&&Q(e,o)},n=(e,t)=>{const o=fn.fromDom(t),n=_n(o).dom;Ta(o),Da(fn.fromDom(e),[fn.fromTag("br",n),fn.fromTag("br",n),...Fn(o)])};if(!t.collapsed){const t=e.selection.getSelectedBlocks(),a=oe(oe(t,N_),o(t));X(a,e=>{n(e.previousSibling,e)})}});const T_=["fontWeight","fontStyle","color","fontSize","fontFamily"],S_=e=>k(e.styles)&&J(Ce(e.styles),e=>Q(T_,e)),B_=e=>ie(e,e=>Ug(e)&&"span"===e.inline&&S_(e)),I_=(e,t)=>{const o=e.get(t);return y(o)?B_(o):U.none()},z_=(e,t)=>jb(t,tu.fromRangeStart(e)).isNone(),F_=(e,t)=>!1===Ob(t,tu.fromRangeEnd(e)).exists(e=>!Nr(e.getNode())||Ob(t,e).isSome()),M_=e=>t=>zr(t)&&e.isEditable(t),L_=e=>{const t=e.getSelectedBlocks(),o=e.getRng();if(e.isCollapsed())return[];if(1===t.length)return z_(o,t[0])&&F_(o,t[0])?t:[];{const e=ge(t).filter(e=>z_(o,e)).toArray(),n=fe(t).filter(e=>F_(o,e)).toArray(),a=t.slice(1,-1);return e.concat(a).concat(n)}},P_=e=>oe(L_(e),M_(e.dom)),R_=e=>oe(e.getSelectedBlocks(),M_(e.dom)),q_=ho.each,$_=e=>dr(e)&&!Jb(e)&&!Ab(e)&&!vr(e),U_=(e,t)=>{for(let o=e;o;o=o[t]){if(Or(o)&&bt(o.data))return e;if(dr(o)&&!Jb(o))return o}return e},H_=(e,t,o)=>{const n=Fj(e),a=ur(t)&&e.dom.isEditable(t),r=ur(o)&&e.dom.isEditable(o);if(a&&r){const a=U_(t,"previousSibling"),r=U_(o,"nextSibling");if(n.compare(a,r)){for(let e=a.nextSibling;e&&e!==r;){const t=e;e=e.nextSibling,a.appendChild(t)}return e.dom.remove(r),ho.each(ho.grep(r.childNodes),e=>{a.appendChild(e)}),a}}return o},W_=(e,t,o,n)=>{var a;if(n&&!1!==t.merge_siblings){const t=null!==(a=H_(e,jg(n),n))&&void 0!==a?a:n;H_(e,t,jg(t,!0))}},G_=(e,t,o)=>{if(t.clear_child_styles){const n=t.links?"*:not(a)":"*";q_(e.select(n,o),o=>{$_(o)&&e.isEditable(o)&&q_(t.styles,(t,n)=>{e.setStyle(o,n,"")})})}},K_=(e,t,o)=>{q_(e.childNodes,e=>{$_(e)&&(t(e)&&o(e),e.hasChildNodes()&&K_(e,t,o))})},Y_=(e,t)=>{"SPAN"===t.nodeName&&0===e.getAttribs(t).length&&e.remove(t,!0)},Q_=(e,t)=>o=>!(!o||!Bg(e,o,t)),J_=(e,t,o)=>n=>{e.setStyle(n,t,o),""===n.getAttribute("style")&&n.removeAttribute("style"),Y_(e,n)},Z_=Ru.generate([{keep:[]},{rename:["name"]},{removed:[]}]),X_=/^(src|href|style)$/,eV=ho.each,tV=Tg,oV=e=>/^(TR|TH|TD)$/.test(e.nodeName),nV=(e,t,o)=>e.isChildOf(t,o)&&t!==o&&!e.isBlock(o),aV=(e,t,o)=>{let n=t[o?"startContainer":"endContainer"],a=t[o?"startOffset":"endOffset"];if(dr(n)){const e=n.childNodes.length-1;!o&&a&&a--,n=n.childNodes[a>e?e:a]}return Or(n)&&o&&a>=n.data.length&&(n=new lr(n,e.getBody()).next()||n),Or(n)&&!o&&0===a&&(n=new lr(n,e.getBody()).prev()||n),n},rV=(e,t)=>{const o=t?"firstChild":"lastChild",n=e[o];return oV(e)&&n?"TR"===e.nodeName&&n[o]||n:e},iV=(e,t,o,n)=>{var a;const r=e.create(o,n);return null===(a=t.parentNode)||void 0===a||a.insertBefore(r,t),r.appendChild(t),r},lV=(e,t,o,n,a)=>{const r=fn.fromDom(t),i=fn.fromDom(e.create(n,a)),l=o?zn(r):In(r);return Da(i,l),o?(ja(r,i),_a(i,r)):(xa(r,i),Va(i,r)),i.dom},sV=(e,t)=>t.links&&"A"===e.nodeName,cV=(e,t,o)=>{const n=t.parentNode;let a;const r=e.dom,i=hm(e);Pg(o)&&n===r.getRoot()&&(o.list_block&&tV(t,o.list_block)||X(ve(t.childNodes),t=>{_g(e,i,t.nodeName.toLowerCase())?a?a.appendChild(t):(a=iV(r,t,i),r.setAttribs(a,pm(e))):a=null})),Hg(o)&&!tV(o.inline,t)||r.remove(t,!0)},dV=(e,t,o)=>N(e)?{name:t,value:null}:{name:e,value:Eg(t,o)},uV=(e,t)=>{""===e.getAttrib(t,"style")&&(t.removeAttribute("style"),t.removeAttribute("data-mce-style"))},mV=(e,t,o,n,a)=>{let r=!1;eV(o.styles,(i,l)=>{const{name:s,value:c}=dV(l,i,n),d=Sg(c,s);(o.remove_similar||O(c)||!dr(a)||tV(Bg(e,a,s),d))&&e.setStyle(t,s,""),r=!0}),r&&uV(e,t)},hV=(e,t,o)=>{"removeformat"===t?X(R_(e.selection),t=>{X(T_,o=>e.dom.setStyle(t,o,"")),uV(e.dom,t)}):I_(e.formatter,t).each(t=>{X(R_(e.selection),n=>mV(e.dom,n,t,o,null))})},pV=(e,t,o,n,a)=>{const r=e.dom,i=Fj(e),l=e.schema;if(Ug(t)&&Nl(l,t.inline)&&El(l,n)&&n.parentElement===e.getBody())return cV(e,n,t),Z_.removed();if(!t.ceFalseOverride&&n&&"false"===r.getContentEditableParent(n))return Z_.keep();if(n&&!e_(r,n,t)&&!sV(n,t))return Z_.keep();const s=n,c=t.preserve_attributes;if(Ug(t)&&"all"===t.remove&&y(c)){const e=oe(r.getAttribs(s),e=>Q(c,e.name.toLowerCase()));if(r.removeAllAttribs(s),X(e,e=>r.setAttrib(s,e.name,e.value)),e.length>0)return Z_.rename("span")}if("all"!==t.remove){mV(r,s,t,o,a),eV(t.attributes,(e,n)=>{const{name:i,value:l}=dV(n,e,o);if(t.remove_similar||O(l)||!dr(a)||tV(r.getAttrib(a,i),l)){if("class"===i){const e=r.getAttrib(s,i);if(e){let t="";if(X(e.split(/\s+/),e=>{/mce\-\w+/.test(e)&&(t+=(t?" ":"")+e)}),t)return void r.setAttrib(s,i,t)}}if(X_.test(i)&&s.removeAttribute("data-mce-"+i),"style"===i&&pr(["li"])(s)&&"none"===r.getStyle(s,"list-style-type"))return s.removeAttribute(i),void r.setStyle(s,"list-style-type","none");"class"===i&&s.removeAttribute("className"),s.removeAttribute(i)}}),eV(t.classes,e=>{e=Eg(e,o),dr(a)&&!r.hasClass(a,e)||r.removeClass(s,e)});const e=r.getAttribs(s);for(let t=0;t<e.length;t++){const o=e[t].nodeName;if(!i.isAttributeInternal(o))return Z_.keep()}}return"none"!==t.remove?(cV(e,s,t),Z_.removed()):Z_.keep()},bV=(e,t,o,n,a)=>{let r;return t.parentNode&&X(zg(e.dom,t.parentNode).reverse(),t=>{if(!r&&dr(t)&&"_start"!==t.id&&"_end"!==t.id){const i=o_(e,t,o,n,a);i&&!1!==i.split&&(r=t)}}),r},gV=(e,t,o,n)=>pV(e,t,o,n,n).fold(B(n),t=>{const o=e.dom.createFragment();return o.appendChild(n),e.dom.rename(n,t)},B(null)),fV=(e,t,o,n,a,r,i,l)=>{var s,c;let d,u;const m=e.dom;if(o){const h=o.parentNode;for(let o=n.parentNode;o&&o!==h;o=o.parentNode){let n=m.clone(o,!1);for(let o=0;o<t.length;o++)if(n=gV(e,t[o],l,n),null===n)break;n&&(d&&n.appendChild(d),u||(u=n),d=n)}!r||i.mixed&&m.isBlock(o)||(n=null!==(s=m.split(o,n))&&void 0!==s?s:n),d&&u&&(null===(c=a.parentNode)||void 0===c||c.insertBefore(d,a),u.appendChild(a),Ug(i)&&W_(e,i,l,d))}return n},vV=(e,t,o,n,a)=>{const r=e.formatter.get(t),i=r[0],l=e.dom,s=e.selection,c=n=>{const l=bV(e,n,t,o,a);return fV(e,r,l,n,n,!0,i,o)},d=e=>Jb(e)&&dr(e)&&("_start"===e.id||"_end"===e.id),u=t=>J(r,n=>kV(e,n,o,t,t)),m=t=>{const o=ve(t.childNodes),n=u(t),a=n||J(r,e=>e_(l,t,e)),s=t.parentNode;if(!a&&V(s)&&Wg(i)&&u(s),i.deep&&o.length)for(let e=0;e<o.length;e++)m(o[e]);const c=["underline","line-through","overline"];X(c,o=>{dr(t)&&e.dom.getStyle(t,"text-decoration")===o&&t.parentNode&&Ig(l,t.parentNode)===o&&kV(e,{deep:!1,exact:!0,inline:"span",styles:{textDecoration:o}},void 0,t)})},h=e=>{const t=l.get(e?"_start":"_end");if(t){let o=t[e?"firstChild":"lastChild"];return d(o)&&(o=o[e?"firstChild":"lastChild"]),Or(o)&&0===o.data.length&&(o=e?t.previousSibling||t.nextSibling:t.nextSibling||t.previousSibling),l.remove(t,!0),o}return null},p=t=>{let o,n,a=mf(l,t,r,t.collapsed);if(i.split){if(a=ow(a),o=aV(e,a,!0),n=aV(e,a),o!==n){if(o=rV(o,!0),n=rV(n,!1),nV(l,o,n)){const e=U.from(o.firstChild).getOr(o);return c(lV(l,e,!0,"span",{id:"_start","data-mce-type":"bookmark"})),void h(!0)}if(nV(l,n,o)){const e=U.from(n.lastChild).getOr(n);return c(lV(l,e,!1,"span",{id:"_end","data-mce-type":"bookmark"})),void h(!1)}o=iV(l,o,"span",{id:"_start","data-mce-type":"bookmark"}),n=iV(l,n,"span",{id:"_end","data-mce-type":"bookmark"});const e=l.createRng();e.setStartAfter(o),e.setEndBefore(n),hf(l,e,e=>{X(e,e=>{Jb(e)||Jb(e.parentNode)||c(e)})}),c(o),c(n),o=h(!0),n=h()}else o=n=c(o);a.startContainer=o.parentNode?o.parentNode:o,a.startOffset=l.nodeIndex(o),a.endContainer=n.parentNode?n.parentNode:n,a.endOffset=l.nodeIndex(n)+1}hf(l,a,e=>{X(e,m)})};if(n){if(wg(n)){const e=l.createRng();e.setStartBefore(n),e.setEndAfter(n),p(e)}else p(n);Lf(e,t,n,o)}else s.isCollapsed()&&Ug(i)&&!sg(e).length?k_(e,t,o,a):(yg(e,()=>fg(e,p),n=>Ug(i)&&n_(e,t,o,n)),e.nodeChanged()),hV(e,t,o),Lf(e,t,n,o)},wV=(e,t,o,n,a)=>{(n||e.selection.isEditable())&&vV(e,t,o,n,a)},kV=(e,t,o,n,a)=>pV(e,t,o,n,a).fold(q,t=>(e.dom.rename(n,t),!0),$),CV=ho.each,yV=(e,t,o,n)=>{const a=t=>{if(ur(t)&&dr(t.parentNode)&&e.isEditable(t)){const o=Ig(e,t.parentNode);e.getStyle(t,"color")&&o?e.setStyle(t,"text-decoration",o):e.getStyle(t,"text-decoration")===o&&e.setStyle(t,"text-decoration",null)}};t.styles&&(t.styles.color||t.styles.textDecoration)&&(ho.walk(n,a,"childNodes"),a(n))},OV=(e,t,o,n)=>{if(t.styles&&t.styles.backgroundColor){const a=Q_(e,"fontSize");K_(n,t=>a(t)&&e.isEditable(t),J_(e,"backgroundColor",Eg(t.styles.backgroundColor,o)))}},jV=(e,t,o,n)=>{if(Ug(t)&&("sub"===t.inline||"sup"===t.inline)){const o=Q_(e,"fontSize");K_(n,t=>o(t)&&e.isEditable(t),J_(e,"fontSize",""));const a=oe(e.select("sup"===t.inline?"sub":"sup",n),e.isEditable);e.remove(a,!0)}},xV=(e,t,o,n)=>{CV(t,t=>{Ug(t)&&CV(e.dom.select(t.inline,n),n=>{$_(n)&&kV(e,t,o,n,t.exact?n:null)}),G_(e.dom,t,n)})},_V=(e,t,o,n,a)=>{const r=a.parentNode;o_(e,r,o,n)&&kV(e,t,n,a)||t.merge_with_parents&&r&&e.dom.getParent(r,r=>!!o_(e,r,o,n)&&(kV(e,t,n,a),!0))},VV=ho.each,AV=(e,t,o,n)=>{if(Zm(e)&&Ug(t)&&o.parentNode){const t=Ds(e.schema),a=BO(fn.fromDom(o),e=>Ab(e.dom));return Be(t,n)&&dl(fn.fromDom(o.parentNode),!1)&&!a}return!1},NV=(e,t,o,n)=>{if(VV(o.styles,(o,a)=>{e.setStyle(t,a,Eg(o,n))}),o.styles){const o=e.getAttrib(t,"style");o&&e.setAttrib(t,"data-mce-style",o)}},DV=(e,t,o,n)=>{const a=e.formatter.get(t),r=a[0],i=!n&&e.selection.isCollapsed(),l=e.dom,s=e.selection,c=(e,t=r)=>{A(t.onformat)&&t.onformat(e,t,o,n),NV(l,e,t,o),VV(t.attributes,(t,n)=>{l.setAttrib(e,n,Eg(t,o))}),VV(t.classes,t=>{const n=Eg(t,o);l.hasClass(e,n)||l.addClass(e,n)})},d=(e,t)=>{let o=!1;return VV(e,e=>!!$g(e)&&("false"===l.getContentEditable(t)&&!e.ceFalseOverride||(!(!V(e.collapsed)||e.collapsed===i)||(!(l.is(t,e.selector)&&!Ab(t))||(c(t,e),o=!0,!1))))),o},u=e=>{if(w(e)){const t=l.create(e);return c(t),t}return null},m=(n,i,l)=>{const s=[];let m=!0;const h=r.inline||r.block,p=u(h),b=n=>Rg(r)&&o_(e,n,t,o),g=(t,o,n)=>{const a=qg(r)&&xg(e.schema,t)&&_g(e,o,h);return n&&a},f=(t,o,a,i)=>{const s=t.nodeName.toLowerCase(),c=_g(e,h,s)&&_g(e,o,h),d=!l&&Or(t)&&bi(t.data),u=Ab(t),m=!Ug(r)||!n.isBlock(t);return(a||i)&&c&&!d&&!u&&m};hf(n,i,t=>{let o;const i=t=>{let l=!1,u=m,v=!1;const w=t.parentNode,k=w.nodeName.toLowerCase(),C=n.getContentEditable(t);V(C)&&(u=m,m="true"===C,l=!0,v=Dg(e,t));const y=m&&!l;if(Nr(t)&&!AV(e,r,t,k))return o=null,void(Pg(r)&&n.remove(t));if(b(t))o=null;else{if(g(t,k,y)){const e=n.rename(t,h);return c(e),s.push(e),void(o=null)}if($g(r)){let e=d(a,t);if(!e&&V(w)&&Wg(r)&&(e=d(a,w)),!Ug(r)||e)return void(o=null)}V(p)&&f(t,k,y,v)?(o||(o=n.clone(p,!1),w.insertBefore(o,t),s.push(o)),v&&l&&(m=u),o.appendChild(t)):(o=null,X(ve(t.childNodes),i),l&&(m=u),o=null)}};X(t,i)}),!0===r.links&&X(s,e=>{const t=e=>{"A"===e.nodeName&&c(e,r),X(ve(e.childNodes),t)};t(e)}),X(s,i=>{const l=e=>{let t=0;return X(e.childNodes,e=>{Ag(e)||Jb(e)||t++}),t},d=e=>{const t=ie(e.childNodes,kg).filter(e=>"false"!==n.getContentEditable(e)&&e_(n,e,r));return t.map(t=>{const o=n.clone(t,!1);return c(o),n.replace(o,e,!0),n.remove(t,!0),o}).getOr(e)},u=l(i);!(s.length>1)&&n.isBlock(i)||0!==u?(Ug(r)||Pg(r)&&r.wrapper)&&(r.exact||1!==u||(i=d(i)),xV(e,a,o,i),_V(e,r,t,o,i),OV(n,r,o,i),yV(n,r,o,i),jV(n,r,o,i),W_(e,r,o,i)):n.remove(i,!0)})},h=wg(n)?n:s.getNode();if("false"===l.getContentEditable(h)&&!Dg(e,h))return n=h,d(a,n),void Mf(e,t,n,o);if(r){if(n)if(wg(n)){if(!d(a,n)){const e=l.createRng();e.setStartBefore(n),e.setEndAfter(n),m(l,mf(l,e,a),!0)}}else m(l,n,!0);else i&&Ug(r)&&!sg(e).length?w_(e,t,o):(s.setRng(ax(s.getRng())),yg(e,()=>{fg(e,(e,t)=>{const o=t?e:mf(l,e,a);m(l,o,!1)})},$),e.nodeChanged()),I_(e.formatter,t).each(t=>{X(P_(e.selection),e=>NV(l,e,t,o))});E_(t,e)}Mf(e,t,n,o)},EV=(e,t,o,n)=>{(n||e.selection.isEditable())&&DV(e,t,o,n)},TV=e=>Se(e,"vars"),SV=(e,t)=>{e.set({}),t.on("NodeChange",o=>{FV(t,o.element,e.get())}),t.on("FormatApply FormatRemove",o=>{const n=U.from(o.node).map(e=>wg(e)?e:e.startContainer).bind(e=>dr(e)?U.some(e):U.from(e.parentElement)).getOrThunk(()=>BV(t));FV(t,n,e.get())})},BV=e=>e.selection.getStart(),IV=(e,t,o,n,a)=>{const r=t=>{const r=e.formatter.matchNode(t,o,null!==a&&void 0!==a?a:{},n);return!x(r)},i=t=>!!Zx(e,t,o)||!n&&V(e.formatter.matchNode(t,o,a,!0));return re(t,r,i)},zV=(e,t)=>{const o=null!==t&&void 0!==t?t:BV(e);return oe(zg(e.dom,o),e=>dr(e)&&!vr(e))},FV=(e,t,o)=>{const n=zV(e,t);Oe(o,(o,a)=>{const r=o=>{const r=IV(e,n,a,o.similar,TV(o)?o.vars:void 0),i=r.isSome();if(o.state.get()!==i){o.state.set(i);const e=r.getOr(t);TV(o)?o.callback(i,{node:e,format:a,parents:n}):X(o.callbacks,t=>t(i,{node:e,format:a,parents:n}))}};X([o.withSimilar,o.withoutSimilar],r),X(o.withVars,r)})},MV=(e,t,o,n,a,r)=>{const i=t.get();X(o.split(","),t=>{const o=Te(i,t).getOrThunk(()=>{const e={withSimilar:{state:Oc(!1),similar:!0,callbacks:[]},withoutSimilar:{state:Oc(!1),similar:!1,callbacks:[]},withVars:[]};return i[t]=e,e}),l=()=>{const o=zV(e);return IV(e,o,t,a,r).isSome()};if(x(r)){const e=a?o.withSimilar:o.withoutSimilar;e.callbacks.push(n),1===e.callbacks.length&&e.state.set(l())}else o.withVars.push({state:Oc(l()),similar:a,vars:r,callback:n})}),t.set(i)},LV=(e,t,o)=>{const n=e.get();X(t.split(","),e=>Te(n,e).each(t=>{n[e]={withSimilar:{...t.withSimilar,callbacks:oe(t.withSimilar.callbacks,e=>e!==o)},withoutSimilar:{...t.withoutSimilar,callbacks:oe(t.withoutSimilar.callbacks,e=>e!==o)},withVars:oe(t.withVars,e=>e.callback!==o)}})),e.set(n)},PV=(e,t,o,n,a,r)=>(MV(e,t,o,n,a,r),{unbind:()=>LV(t,o,n)}),RV=(e,t,o,n)=>{const a=e.formatter.get(t);a&&(!n_(e,t,o,n)||"toggle"in a[0]&&!a[0].toggle?EV(e,t,o,n):wV(e,t,o,n))},qV=ho.explode,$V=()=>{const e={},t=(t,o)=>{X(qV(t),t=>{Se(e,t)||(e[t]={name:t,callbacks:[]}),e[t].callbacks.push(o)})},o=()=>Ee(e),n=(t,o)=>{X(qV(t),t=>{if(Se(e,t))if(V(o)){const n=e[t],a=oe(n.callbacks,e=>e!==o);a.length>0?n.callbacks=a:delete e[t]}else delete e[t]})};return{addFilter:t,getFilters:o,removeFilter:n}},UV=(e,t)=>{X(t,t=>{e.attr(t,null)})},HV=(e,t,o)=>{e.addNodeFilter("font",e=>{X(e,e=>{const n=t.parse(e.attr("style")),a=e.attr("color"),r=e.attr("face"),i=e.attr("size");a&&(n.color=a),r&&(n["font-family"]=r),i&&vt(i).each(e=>{n["font-size"]=o[e-1]}),e.name="span",e.attr("style",t.serialize(n)),UV(e,["color","face","size"])})})},WV=(e,t,o)=>{e.addNodeFilter("strike",e=>{const n="html4"!==t.type;X(e,e=>{if(n)e.name="s";else{const t=o.parse(e.attr("style"));t["text-decoration"]="line-through",e.name="span",e.attr("style",o.serialize(t))}})})},GV=(e,t,o)=>{var n;const a=Us();t.convert_fonts_to_spans&&HV(e,a,ho.explode(null!==(n=t.font_size_legacy_values)&&void 0!==n?n:"")),WV(e,o,a)},KV=(e,t,o)=>{t.inline_styles&&GV(e,t,o)},YV=(e,t,o)=>{t.addNodeFilter("br",(t,n,a)=>{const r=ho.extend({},o.getBlockElements()),i=o.getNonEmptyElements(),l=o.getWhitespaceElements();r.body=1;const s=e=>e.name in r||Sl(o,e);for(let c=0,d=t.length;c<d;c++){let n=t[c],d=n.parent;if(d&&s(d)&&n===d.lastChild){let t=n.prev;while(t){const e=t.name;if("span"!==e||"bookmark"!==t.attr("data-mce-type")){"br"===e&&(n=null);break}t=t.prev}if(n&&(n.remove(),Yj(o,i,l,d))){const t=o.getElementRule(d.name);t&&(t.removeEmpty?d.remove():t.paddEmpty&&Hj(e,a,s,d))}}else{let e=n;while(d&&d.firstChild===e&&d.lastChild===e){if(e=d,r[d.name])break;d=d.parent}if(e===d){const e=new aC("#text",3);e.value=Pr,n.replace(e)}}}})},QV=e=>fetch(e).then(e=>e.ok?e.blob():Promise.reject()).catch(()=>Promise.reject({message:`Cannot convert ${e} to Blob. Resource might not exist or is inaccessible.`,uriType:"blob"})),JV=e=>{const t=/([a-z0-9+\/=\s]+)/i.exec(e);return t?t[1]:""},ZV=e=>{const[t,...o]=e.split(","),n=o.join(","),a=/data:([^/]+\/[^;]+)(;.+)?/.exec(t);if(a){const e=";base64"===a[2],t=e?JV(n):decodeURIComponent(n);return U.some({type:a[1],data:t,base64Encoded:e})}return U.none()},XV=(e,t,o=!0)=>{let n=t;if(o)try{n=atob(t)}catch(r){return U.none()}const a=new Uint8Array(n.length);for(let i=0;i<a.length;i++)a[i]=n.charCodeAt(i);return U.some(new Blob([a],{type:e}))},eA=e=>new Promise((t,o)=>{ZV(e).bind(({type:e,data:t,base64Encoded:o})=>XV(e,t,o)).fold(()=>o("Invalid data URI"),t)}),tA=e=>ct(e,"blob:")?QV(e):ct(e,"data:")?eA(e):Promise.reject("Unknown URI format"),oA=e=>new Promise((t,o)=>{const n=new FileReader;n.onloadend=()=>{t(n.result)},n.onerror=()=>{var e;o(null===(e=n.error)||void 0===e?void 0:e.message)},n.readAsDataURL(e)});let nA=0;const aA=e=>(e||"blobid")+nA++,rA=(e,t,o)=>ZV(e).bind(({data:e,type:n,base64Encoded:a})=>{if(t&&!a)return U.none();{const t=a?e:btoa(e);return o(t,n)}}),iA=(e,t,o)=>{const n=e.create(aA(),t,o);return e.add(n),n},lA=(e,t,o=!1)=>rA(t,o,(t,o)=>U.from(e.getByData(t,o)).orThunk(()=>XV(o,t).map(o=>iA(e,o,t)))),sA=(e,t)=>{const o=()=>Promise.reject("Invalid data URI");if(ct(t,"blob:")){const n=e.getByUri(t);return V(n)?Promise.resolve(n):tA(t).then(t=>oA(t).then(n=>rA(n,!1,o=>U.some(iA(e,t,o))).getOrThunk(o)))}return ct(t,"data:")?lA(e,t).fold(o,e=>Promise.resolve(e)):Promise.reject("Unknown image data format")},cA=e=>V(e.attr("data-mce-bogus")),dA=e=>e.attr("src")===to.transparentSrc||V(e.attr("data-mce-placeholder")),uA=(e,t)=>{const{blob_cache:o}=t;if(o){const t=e=>{const t=e.attr("src");dA(e)||cA(e)||_(t)||lA(o,t,!0).each(t=>{e.attr("src",t.blobUri())})};e.addAttributeFilter("src",e=>X(e,t))}},mA=(e,t)=>ct(e,t+"/"),hA=(e,t,o,n,a)=>{let r;r=x(e)?"iframe":mA(e,"image")?"img":mA(e,"video")?"video":mA(e,"audio")?"audio":"iframe";const i=new aC(r,1);return i.attr("audio"===r?{src:t}:{src:t,width:o,height:n}),"audio"!==r&&"video"!==r||i.attr("controls",""),"iframe"===r&&a&&i.attr("sandbox",""),i},pA=(e,t)=>{const o=e.schema;t.remove_trailing_brs&&YV(t,e,o),e.addAttributeFilter("href",e=>{let o=e.length;const n=e=>{const t=e.split(" ").filter(e=>e.length>0);return t.concat(["noopener"]).sort().join(" ")},a=e=>{const t=e?ho.trim(e):"";return/\b(noopener)\b/g.test(t)?t:n(t)};if(!t.allow_unsafe_link_target)while(o--){const t=e[o];"a"===t.name&&"_blank"===t.attr("target")&&t.attr("rel",a(t.attr("rel")))}}),t.allow_html_in_named_anchor||e.addAttributeFilter("id,name",e=>{let t,o,n,a,r=e.length;while(r--)if(a=e[r],"a"===a.name&&a.firstChild&&!a.attr("href")){n=a.parent,t=a.lastChild;while(t&&n)o=t.prev,n.insert(t,a),t=o}}),t.fix_list_elements&&e.addNodeFilter("ul,ol",e=>{let t,o,n=e.length;while(n--)if(t=e[n],o=t.parent,o&&("ul"===o.name||"ol"===o.name))if(t.prev&&"li"===t.prev.name)t.prev.append(t);else{const e=new aC("li",1);e.attr("style","list-style-type: none"),t.wrap(e)}});const n=o.getValidClasses();t.validate&&n&&e.addAttributeFilter("class",e=>{var t;let o=e.length;while(o--){const a=e[o],r=null!==(t=a.attr("class"))&&void 0!==t?t:"",i=ho.explode(r," ");let l="";for(let e=0;e<i.length;e++){const t=i[e];let o=!1,r=n["*"];r&&r[t]&&(o=!0),r=n[a.name],!o&&r&&r[t]&&(o=!0),o&&(l&&(l+=" "),l+=t)}l.length||(l=null),a.attr("class",l)}}),uA(e,t),t.convert_unsafe_embeds&&e.addNodeFilter("object,embed",e=>X(e,e=>{e.replace(hA(e.attr("type"),"object"===e.name?e.attr("data"):e.attr("src"),e.attr("width"),e.attr("height"),t.sandbox_iframes))})),t.sandbox_iframes&&e.addNodeFilter("iframe",e=>X(e,e=>e.attr("sandbox","")))},{entries:bA,setPrototypeOf:gA,isFrozen:fA,getPrototypeOf:vA,getOwnPropertyDescriptor:wA}=Object;let{freeze:kA,seal:CA,create:yA}=Object,{apply:OA,construct:jA}="undefined"!==typeof Reflect&&Reflect;OA||(OA=function(e,t,o){return e.apply(t,o)}),kA||(kA=function(e){return e}),CA||(CA=function(e){return e}),jA||(jA=function(e,t){return new e(...t)});const xA=zA(Array.prototype.forEach),_A=zA(Array.prototype.pop),VA=zA(Array.prototype.push),AA=zA(String.prototype.toLowerCase),NA=zA(String.prototype.toString),DA=zA(String.prototype.match),EA=zA(String.prototype.replace),TA=zA(String.prototype.indexOf),SA=zA(String.prototype.trim),BA=zA(RegExp.prototype.test),IA=FA(TypeError);function zA(e){return function(t){for(var o=arguments.length,n=new Array(o>1?o-1:0),a=1;a<o;a++)n[a-1]=arguments[a];return OA(e,t,n)}}function FA(e){return function(){for(var t=arguments.length,o=new Array(t),n=0;n<t;n++)o[n]=arguments[n];return jA(e,o)}}function MA(e,t,o){var n;o=null!==(n=o)&&void 0!==n?n:AA,gA&&gA(e,null);let a=t.length;while(a--){let n=t[a];if("string"===typeof n){const e=o(n);e!==n&&(fA(t)||(t[a]=e),n=e)}e[n]=!0}return e}function LA(e){const t=yA(null);for(const[o,n]of bA(e))t[o]=n;return t}function PA(e,t){while(null!==e){const o=wA(e,t);if(o){if(o.get)return zA(o.get);if("function"===typeof o.value)return zA(o.value)}e=vA(e)}function o(e){return console.warn("fallback value for",e),null}return o}const RA=kA(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","section","select","shadow","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),qA=kA(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","filter","font","g","glyph","glyphref","hkern","image","line","lineargradient","marker","mask","metadata","mpath","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),$A=kA(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),UA=kA(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),HA=kA(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),WA=kA(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),GA=kA(["#text"]),KA=kA(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","face","for","headers","height","hidden","high","href","hreflang","id","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","pattern","placeholder","playsinline","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","xmlns","slot"]),YA=kA(["accent-height","accumulate","additive","alignment-baseline","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),QA=kA(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),JA=kA(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),ZA=CA(/\{\{[\w\W]*|[\w\W]*\}\}/gm),XA=CA(/<%[\w\W]*|[\w\W]*%>/gm),eN=CA(/\${[\w\W]*}/gm),tN=CA(/^data-[\-\w.\u00B7-\uFFFF]/),oN=CA(/^aria-[\-\w]+$/),nN=CA(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),aN=CA(/^(?:\w+script|data):/i),rN=CA(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),iN=CA(/^html$/i);var lN=Object.freeze({__proto__:null,MUSTACHE_EXPR:ZA,ERB_EXPR:XA,TMPLIT_EXPR:eN,DATA_ATTR:tN,ARIA_ATTR:oN,IS_ALLOWED_URI:nN,IS_SCRIPT_OR_DATA:aN,ATTR_WHITESPACE:rN,DOCTYPE_NAME:iN});const sN=()=>"undefined"===typeof window?null:window,cN=function(e,t){if("object"!==typeof e||"function"!==typeof e.createPolicy)return null;let o=null;const n="data-tt-policy-suffix";t&&t.hasAttribute(n)&&(o=t.getAttribute(n));const a="dompurify"+(o?"#"+o:"");try{return e.createPolicy(a,{createHTML(e){return e},createScriptURL(e){return e}})}catch(r){return console.warn("TrustedTypes policy "+a+" could not be created."),null}};function dN(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:sN();const t=e=>dN(e);if(t.version="3.0.5",t.removed=[],!e||!e.document||9!==e.document.nodeType)return t.isSupported=!1,t;const o=e.document,n=o.currentScript;let{document:a}=e;const{DocumentFragment:r,HTMLTemplateElement:i,Node:l,Element:s,NodeFilter:c,NamedNodeMap:d=e.NamedNodeMap||e.MozNamedAttrMap,HTMLFormElement:u,DOMParser:m,trustedTypes:h}=e,p=s.prototype,b=PA(p,"cloneNode"),g=PA(p,"nextSibling"),f=PA(p,"childNodes"),v=PA(p,"parentNode");if("function"===typeof i){const e=a.createElement("template");e.content&&e.content.ownerDocument&&(a=e.content.ownerDocument)}let w,k="";const{implementation:C,createNodeIterator:y,createDocumentFragment:O,getElementsByTagName:j}=a,{importNode:x}=o;let _={};t.isSupported="function"===typeof bA&&"function"===typeof v&&C&&void 0!==C.createHTMLDocument;const{MUSTACHE_EXPR:V,ERB_EXPR:A,TMPLIT_EXPR:N,DATA_ATTR:D,ARIA_ATTR:E,IS_SCRIPT_OR_DATA:T,ATTR_WHITESPACE:S}=lN;let{IS_ALLOWED_URI:B}=lN,I=null;const z=MA({},[...RA,...qA,...$A,...HA,...GA]);let F=null;const M=MA({},[...KA,...YA,...QA,...JA]);let L=Object.seal(Object.create(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),P=null,R=null,q=!0,$=!0,U=!1,H=!0,W=!1,G=!1,K=!1,Y=!1,Q=!1,J=!1,Z=!1,X=!0,ee=!1;const te="user-content-";let oe=!0,ne=!1,ae={},re=null;const ie=MA({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]);let le=null;const se=MA({},["audio","video","img","source","image","track"]);let ce=null;const de=MA({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),ue="http://www.w3.org/1998/Math/MathML",me="http://www.w3.org/2000/svg",he="http://www.w3.org/1999/xhtml";let pe=he,be=!1,ge=null;const fe=MA({},[ue,me,he],NA);let ve;const we=["application/xhtml+xml","text/html"],ke="text/html";let Ce,ye=null;const Oe=a.createElement("form"),je=function(e){return e instanceof RegExp||e instanceof Function},xe=function(e){if(!ye||ye!==e){if(e&&"object"===typeof e||(e={}),e=LA(e),ve=ve=-1===we.indexOf(e.PARSER_MEDIA_TYPE)?ke:e.PARSER_MEDIA_TYPE,Ce="application/xhtml+xml"===ve?NA:AA,I="ALLOWED_TAGS"in e?MA({},e.ALLOWED_TAGS,Ce):z,F="ALLOWED_ATTR"in e?MA({},e.ALLOWED_ATTR,Ce):M,ge="ALLOWED_NAMESPACES"in e?MA({},e.ALLOWED_NAMESPACES,NA):fe,ce="ADD_URI_SAFE_ATTR"in e?MA(LA(de),e.ADD_URI_SAFE_ATTR,Ce):de,le="ADD_DATA_URI_TAGS"in e?MA(LA(se),e.ADD_DATA_URI_TAGS,Ce):se,re="FORBID_CONTENTS"in e?MA({},e.FORBID_CONTENTS,Ce):ie,P="FORBID_TAGS"in e?MA({},e.FORBID_TAGS,Ce):{},R="FORBID_ATTR"in e?MA({},e.FORBID_ATTR,Ce):{},ae="USE_PROFILES"in e&&e.USE_PROFILES,q=!1!==e.ALLOW_ARIA_ATTR,$=!1!==e.ALLOW_DATA_ATTR,U=e.ALLOW_UNKNOWN_PROTOCOLS||!1,H=!1!==e.ALLOW_SELF_CLOSE_IN_ATTR,W=e.SAFE_FOR_TEMPLATES||!1,G=e.WHOLE_DOCUMENT||!1,Q=e.RETURN_DOM||!1,J=e.RETURN_DOM_FRAGMENT||!1,Z=e.RETURN_TRUSTED_TYPE||!1,Y=e.FORCE_BODY||!1,X=!1!==e.SANITIZE_DOM,ee=e.SANITIZE_NAMED_PROPS||!1,oe=!1!==e.KEEP_CONTENT,ne=e.IN_PLACE||!1,B=e.ALLOWED_URI_REGEXP||nN,pe=e.NAMESPACE||he,L=e.CUSTOM_ELEMENT_HANDLING||{},e.CUSTOM_ELEMENT_HANDLING&&je(e.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(L.tagNameCheck=e.CUSTOM_ELEMENT_HANDLING.tagNameCheck),e.CUSTOM_ELEMENT_HANDLING&&je(e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(L.attributeNameCheck=e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),e.CUSTOM_ELEMENT_HANDLING&&"boolean"===typeof e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements&&(L.allowCustomizedBuiltInElements=e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),W&&($=!1),J&&(Q=!0),ae&&(I=MA({},[...GA]),F=[],!0===ae.html&&(MA(I,RA),MA(F,KA)),!0===ae.svg&&(MA(I,qA),MA(F,YA),MA(F,JA)),!0===ae.svgFilters&&(MA(I,$A),MA(F,YA),MA(F,JA)),!0===ae.mathMl&&(MA(I,HA),MA(F,QA),MA(F,JA))),e.ADD_TAGS&&(I===z&&(I=LA(I)),MA(I,e.ADD_TAGS,Ce)),e.ADD_ATTR&&(F===M&&(F=LA(F)),MA(F,e.ADD_ATTR,Ce)),e.ADD_URI_SAFE_ATTR&&MA(ce,e.ADD_URI_SAFE_ATTR,Ce),e.FORBID_CONTENTS&&(re===ie&&(re=LA(re)),MA(re,e.FORBID_CONTENTS,Ce)),oe&&(I["#text"]=!0),G&&MA(I,["html","head","body"]),I.table&&(MA(I,["tbody"]),delete P.tbody),e.TRUSTED_TYPES_POLICY){if("function"!==typeof e.TRUSTED_TYPES_POLICY.createHTML)throw IA('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if("function"!==typeof e.TRUSTED_TYPES_POLICY.createScriptURL)throw IA('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');w=e.TRUSTED_TYPES_POLICY,k=w.createHTML("")}else void 0===w&&(w=cN(h,n)),null!==w&&"string"===typeof k&&(k=w.createHTML(""));kA&&kA(e),ye=e}},_e=MA({},["mi","mo","mn","ms","mtext"]),Ve=MA({},["foreignobject","desc","title","annotation-xml"]),Ae=MA({},["title","style","font","a","script"]),Ne=MA({},qA);MA(Ne,$A),MA(Ne,UA);const De=MA({},HA);MA(De,WA);const Ee=function(e){let t=v(e);t&&t.tagName||(t={namespaceURI:pe,tagName:"template"});const o=AA(e.tagName),n=AA(t.tagName);return!!ge[e.namespaceURI]&&(e.namespaceURI===me?t.namespaceURI===he?"svg"===o:t.namespaceURI===ue?"svg"===o&&("annotation-xml"===n||_e[n]):Boolean(Ne[o]):e.namespaceURI===ue?t.namespaceURI===he?"math"===o:t.namespaceURI===me?"math"===o&&Ve[n]:Boolean(De[o]):e.namespaceURI===he?!(t.namespaceURI===me&&!Ve[n])&&(!(t.namespaceURI===ue&&!_e[n])&&(!De[o]&&(Ae[o]||!Ne[o]))):!("application/xhtml+xml"!==ve||!ge[e.namespaceURI]))},Te=function(e){VA(t.removed,{element:e});try{e.parentNode.removeChild(e)}catch(o){e.remove()}},Se=function(e,o){try{VA(t.removed,{attribute:o.getAttributeNode(e),from:o})}catch(n){VA(t.removed,{attribute:null,from:o})}if(o.removeAttribute(e),"is"===e&&!F[e])if(Q||J)try{Te(o)}catch(n){}else try{o.setAttribute(e,"")}catch(n){}},Be=function(e){let t,o;if(Y)e="<remove></remove>"+e;else{const t=DA(e,/^[\r\n\t ]+/);o=t&&t[0]}"application/xhtml+xml"===ve&&pe===he&&(e='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+e+"</body></html>");const n=w?w.createHTML(e):e;if(pe===he)try{t=(new m).parseFromString(n,ve)}catch(i){}if(!t||!t.documentElement){t=C.createDocument(pe,"template",null);try{t.documentElement.innerHTML=be?k:n}catch(i){}}const r=t.body||t.documentElement;return e&&o&&r.insertBefore(a.createTextNode(o),r.childNodes[0]||null),pe===he?j.call(t,G?"html":"body")[0]:G?t.documentElement:r},Ie=function(e){return y.call(e.ownerDocument||e,e,c.SHOW_ELEMENT|c.SHOW_COMMENT|c.SHOW_TEXT,null,!1)},ze=function(e){return e instanceof u&&("string"!==typeof e.nodeName||"string"!==typeof e.textContent||"function"!==typeof e.removeChild||!(e.attributes instanceof d)||"function"!==typeof e.removeAttribute||"function"!==typeof e.setAttribute||"string"!==typeof e.namespaceURI||"function"!==typeof e.insertBefore||"function"!==typeof e.hasChildNodes)},Fe=function(e){return"object"===typeof l?e instanceof l:e&&"object"===typeof e&&"number"===typeof e.nodeType&&"string"===typeof e.nodeName},Me=function(e,o,n){_[e]&&xA(_[e],e=>{e.call(t,o,n,ye)})},Le=function(e){let o;if(Me("beforeSanitizeElements",e,null),ze(e))return Te(e),!0;const n=Ce(e.nodeName);if(Me("uponSanitizeElement",e,{tagName:n,allowedTags:I}),e.hasChildNodes()&&!Fe(e.firstElementChild)&&(!Fe(e.content)||!Fe(e.content.firstElementChild))&&BA(/<[/\w]/g,e.innerHTML)&&BA(/<[/\w]/g,e.textContent))return Te(e),!0;if(!I[n]||P[n]){if(!P[n]&&Re(n)){if(L.tagNameCheck instanceof RegExp&&BA(L.tagNameCheck,n))return!1;if(L.tagNameCheck instanceof Function&&L.tagNameCheck(n))return!1}if(oe&&!re[n]){const t=v(e)||e.parentNode,o=f(e)||e.childNodes;if(o&&t){const n=o.length;for(let a=n-1;a>=0;--a)t.insertBefore(b(o[a],!0),g(e))}}return Te(e),!0}return e instanceof s&&!Ee(e)?(Te(e),!0):"noscript"!==n&&"noembed"!==n&&"noframes"!==n||!BA(/<\/no(script|embed|frames)/i,e.innerHTML)?(W&&3===e.nodeType&&(o=e.textContent,o=EA(o,V," "),o=EA(o,A," "),o=EA(o,N," "),e.textContent!==o&&(VA(t.removed,{element:e.cloneNode()}),e.textContent=o)),Me("afterSanitizeElements",e,null),!1):(Te(e),!0)},Pe=function(e,t,o){if(X&&("id"===t||"name"===t)&&(o in a||o in Oe))return!1;if($&&!R[t]&&BA(D,t));else if(q&&BA(E,t));else if(!F[t]||R[t]){if(!(Re(e)&&(L.tagNameCheck instanceof RegExp&&BA(L.tagNameCheck,e)||L.tagNameCheck instanceof Function&&L.tagNameCheck(e))&&(L.attributeNameCheck instanceof RegExp&&BA(L.attributeNameCheck,t)||L.attributeNameCheck instanceof Function&&L.attributeNameCheck(t))||"is"===t&&L.allowCustomizedBuiltInElements&&(L.tagNameCheck instanceof RegExp&&BA(L.tagNameCheck,o)||L.tagNameCheck instanceof Function&&L.tagNameCheck(o))))return!1}else if(ce[t]);else if(BA(B,EA(o,S,"")));else if("src"!==t&&"xlink:href"!==t&&"href"!==t||"script"===e||0!==TA(o,"data:")||!le[e]){if(U&&!BA(T,EA(o,S,"")));else if(o)return!1}else;return!0},Re=function(e){return e.indexOf("-")>0},qe=function(e){let t,o,n,a;Me("beforeSanitizeAttributes",e,null);const{attributes:r}=e;if(!r)return;const i={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:F};a=r.length;while(a--){t=r[a];const{name:s,namespaceURI:c}=t;o="value"===s?t.value:SA(t.value);const d=o;if(n=Ce(s),i.attrName=n,i.attrValue=o,i.keepAttr=!0,i.forceKeepAttr=void 0,Me("uponSanitizeAttribute",e,i),o=i.attrValue,i.forceKeepAttr)continue;if(!i.keepAttr){Se(s,e);continue}if(!H&&BA(/\/>/i,o)){Se(s,e);continue}W&&(o=EA(o,V," "),o=EA(o,A," "),o=EA(o,N," "));const u=Ce(e.nodeName);if(Pe(u,n,o)){if(!ee||"id"!==n&&"name"!==n||(Se(s,e),o=te+o),w&&"object"===typeof h&&"function"===typeof h.getAttributeType)if(c);else switch(h.getAttributeType(u,n)){case"TrustedHTML":o=w.createHTML(o);break;case"TrustedScriptURL":o=w.createScriptURL(o);break}if(o!==d)try{c?e.setAttributeNS(c,s,o):e.setAttribute(s,o)}catch(l){Se(s,e)}}else Se(s,e)}Me("afterSanitizeAttributes",e,null)},$e=function e(t){let o;const n=Ie(t);Me("beforeSanitizeShadowDOM",t,null);while(o=n.nextNode())Me("uponSanitizeShadowNode",o,null),Le(o)||(o.content instanceof r&&e(o.content),qe(o));Me("afterSanitizeShadowDOM",t,null)};return t.sanitize=function(e){let n,a,i,s,c=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(be=!e,be&&(e="\x3c!--\x3e"),"string"!==typeof e&&!Fe(e)){if("function"!==typeof e.toString)throw IA("toString is not a function");if(e=e.toString(),"string"!==typeof e)throw IA("dirty is not a string, aborting")}if(!t.isSupported)return e;if(K||xe(c),t.removed=[],"string"===typeof e&&(ne=!1),ne){if(e.nodeName){const t=Ce(e.nodeName);if(!I[t]||P[t])throw IA("root node is forbidden and cannot be sanitized in-place")}}else if(e instanceof l)n=Be("\x3c!----\x3e"),a=n.ownerDocument.importNode(e,!0),1===a.nodeType&&"BODY"===a.nodeName||"HTML"===a.nodeName?n=a:n.appendChild(a);else{if(!Q&&!W&&!G&&-1===e.indexOf("<"))return w&&Z?w.createHTML(e):e;if(n=Be(e),!n)return Q?null:Z?k:""}n&&Y&&Te(n.firstChild);const d=Ie(ne?e:n);while(i=d.nextNode())Le(i)||(i.content instanceof r&&$e(i.content),qe(i));if(ne)return e;if(Q){if(J){s=O.call(n.ownerDocument);while(n.firstChild)s.appendChild(n.firstChild)}else s=n;return(F.shadowroot||F.shadowrootmode)&&(s=x.call(o,s,!0)),s}let u=G?n.outerHTML:n.innerHTML;return G&&I["!doctype"]&&n.ownerDocument&&n.ownerDocument.doctype&&n.ownerDocument.doctype.name&&BA(iN,n.ownerDocument.doctype.name)&&(u="<!DOCTYPE "+n.ownerDocument.doctype.name+">\n"+u),W&&(u=EA(u,V," "),u=EA(u,A," "),u=EA(u,N," ")),w&&Z?w.createHTML(u):u},t.setConfig=function(e){xe(e),K=!0},t.clearConfig=function(){ye=null,K=!1},t.isValidAttribute=function(e,t,o){ye||xe({});const n=Ce(e),a=Ce(t);return Pe(n,a,o)},t.addHook=function(e,t){"function"===typeof t&&(_[e]=_[e]||[],VA(_[e],t))},t.removeHook=function(e){if(_[e])return _A(_[e])},t.removeHooks=function(e){_[e]&&(_[e]=[])},t.removeAllHooks=function(){_={}},t}var uN=dN();const mN=ho.each,hN=ho.trim,pN=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"],bN={ftp:21,http:80,https:443,mailto:25},gN=["img","video"],fN=(e,t)=>V(e)?!e:!V(t)||!Q(gN,t),vN=e=>{try{return decodeURIComponent(e)}catch(t){return unescape(e)}},wN=(e,t,o)=>{const n=vN(t).replace(/\s/g,"");return!e.allow_script_urls&&(!!/((java|vb)script|mhtml):/i.test(n)||!e.allow_html_data_urls&&(/^data:image\//i.test(n)?fN(e.allow_svg_data_urls,o)&&/^data:image\/svg\+xml/i.test(n):/^data:/i.test(n)))};class kN{static parseDataUri(e){let t;const o=decodeURIComponent(e).split(","),n=/data:([^;]+)/.exec(o[0]);return n&&(t=n[1]),{type:t,data:o[1]}}static isDomSafe(e,t,o={}){if(o.allow_script_urls)return!0;{const n=hs.decode(e).replace(/[\s\u0000-\u001F]+/g,"");return!wN(o,n,t)}}static getDocumentBaseUrl(e){var t;let o;return o=0!==e.protocol.indexOf("http")&&"file:"!==e.protocol?null!==(t=e.href)&&void 0!==t?t:"":e.protocol+"//"+e.host+e.pathname,/^[^:]+:\/\/\/?[^\/]+\//.test(o)&&(o=o.replace(/[\?#].*$/,"").replace(/[\/\\][^\/]+$/,""),/[\/\\]$/.test(o)||(o+="/")),o}constructor(e,t={}){this.path="",this.directory="",e=hN(e),this.settings=t;const o=t.base_uri,n=this;if(/^([\w\-]+):([^\/]{2})/i.test(e)||/^\s*#/.test(e))return void(n.source=e);const a=0===e.indexOf("//");if(0!==e.indexOf("/")||a||(e=(o&&o.protocol||"http")+"://mce_host"+e),!/^[\w\-]*:?\/\//.test(e)){const t=o?o.path:new kN(document.location.href).directory;if(""===(null===o||void 0===o?void 0:o.protocol))e="//mce_host"+n.toAbsPath(t,e);else{const a=/([^#?]*)([#?]?.*)/.exec(e);a&&(e=(o&&o.protocol||"http")+"://mce_host"+n.toAbsPath(t,a[1])+a[2])}}e=e.replace(/@@/g,"(mce_at)");const r=/^(?:(?![^:@]+:[^:@\/]*@)([^:\/?#.]+):)?(?:\/\/)?((?:(([^:@\/]*):?([^:@\/]*))?@)?(\[[a-zA-Z0-9:.%]+\]|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/.exec(e);r&&mN(pN,(e,t)=>{let o=r[t];o&&(o=o.replace(/\(mce_at\)/g,"@@")),n[e]=o}),o&&(n.protocol||(n.protocol=o.protocol),n.userInfo||(n.userInfo=o.userInfo),n.port||"mce_host"!==n.host||(n.port=o.port),n.host&&"mce_host"!==n.host||(n.host=o.host),n.source=""),a&&(n.protocol="")}setPath(e){const t=/^(.*?)\/?(\w+)?$/.exec(e);t&&(this.path=t[0],this.directory=t[1],this.file=t[2]),this.source="",this.getURI()}toRelative(e){if("./"===e)return e;const t=new kN(e,{base_uri:this});if("mce_host"!==t.host&&this.host!==t.host&&t.host||this.port!==t.port||this.protocol!==t.protocol&&""!==t.protocol)return t.getURI();const o=this.getURI(),n=t.getURI();if(o===n||"/"===o.charAt(o.length-1)&&o.substr(0,o.length-1)===n)return o;let a=this.toRelPath(this.path,t.path);return t.query&&(a+="?"+t.query),t.anchor&&(a+="#"+t.anchor),a}toAbsolute(e,t){const o=new kN(e,{base_uri:this});return o.getURI(t&&this.isSameOrigin(o))}isSameOrigin(e){if(this.host==e.host&&this.protocol==e.protocol){if(this.port==e.port)return!0;const t=this.protocol?bN[this.protocol]:null;if(t&&(this.port||t)==(e.port||t))return!0}return!1}toRelPath(e,t){let o,n,a=0,r="";const i=e.substring(0,e.lastIndexOf("/")).split("/"),l=t.split("/");if(i.length>=l.length)for(o=0,n=i.length;o<n;o++)if(o>=l.length||i[o]!==l[o]){a=o+1;break}if(i.length<l.length)for(o=0,n=l.length;o<n;o++)if(o>=i.length||i[o]!==l[o]){a=o+1;break}if(1===a)return t;for(o=0,n=i.length-(a-1);o<n;o++)r+="../";for(o=a-1,n=l.length;o<n;o++)r+=o!==a-1?"/"+l[o]:l[o];return r}toAbsPath(e,t){let o=0;const n=/\/$/.test(t)?"/":"",a=e.split("/"),r=t.split("/"),i=[];mN(a,e=>{e&&i.push(e)});const l=[];for(let d=r.length-1;d>=0;d--)0!==r[d].length&&"."!==r[d]&&(".."!==r[d]?o>0?o--:l.push(r[d]):o++);const s=i.length-o;let c;return c=s<=0?ue(l).join("/"):i.slice(0,s).join("/")+"/"+ue(l).join("/"),0!==c.indexOf("/")&&(c="/"+c),n&&c.lastIndexOf("/")!==c.length-1&&(c+=n),c}getURI(e=!1){let t;return this.source&&!e||(t="",e||(this.protocol?t+=this.protocol+"://":t+="//",this.userInfo&&(t+=this.userInfo+"@"),this.host&&(t+=this.host),this.port&&(t+=":"+this.port)),this.path&&(t+=this.path),this.query&&(t+="?"+this.query),this.anchor&&(t+="#"+this.anchor),this.source=t),this.source}}const CN=ho.makeMap("src,href,data,background,action,formaction,poster,xlink:href"),yN="data-mce-type";let ON=0;const jN=(e,t,o,n,a)=>{var r,i,l,s;const c=t.validate,d=o.getSpecialElements();e.nodeType===Ao&&!t.allow_conditional_comments&&/^\[if/i.test(null!==(r=e.nodeValue)&&void 0!==r?r:"")&&(e.nodeValue=" "+e.nodeValue);const u=null!==(i=null===a||void 0===a?void 0:a.tagName)&&void 0!==i?i:e.nodeName.toLowerCase();if("html"!==n&&o.isValid(n))return void(V(a)&&(a.allowedTags[u]=!0));if(e.nodeType!==Eo||"body"===u)return;const m=fn.fromDom(e),h=Ko(m,yN),p=Wo(m,"data-mce-bogus");if(!h&&w(p))return void("all"===p?Ta(m):Sa(m));const b=o.getElementRule(u);if(!c||b){if(V(a)&&(a.allowedTags[u]=!0),c&&b&&!h){if(X(null!==(l=b.attributesForced)&&void 0!==l?l:[],e=>{Uo(m,e.name,"{$uid}"===e.value?"mce_"+ON++:e.value)}),X(null!==(s=b.attributesDefault)&&void 0!==s?s:[],e=>{Ko(m,e.name)||Uo(m,e.name,"{$uid}"===e.value?"mce_"+ON++:e.value)}),b.attributesRequired&&!J(b.attributesRequired,e=>Ko(m,e)))return void Sa(m);if(b.removeEmptyAttrs&&Qo(m))return void Sa(m);b.outputName&&b.outputName!==u&&hd(m,b.outputName)}}else Se(d,u)?Ta(m):Sa(m)},xN=(e,t,o,n,a)=>{const r=e.tagName.toLowerCase(),{attrName:i,attrValue:l}=a;a.keepAttr=_N(t,o,n,r,i,l),a.keepAttr?(a.allowedAttributes[i]=!0,AN(i,o)&&(a.attrValue=i),t.allow_svg_data_urls&&ct(l,"data:image/svg+xml")&&(a.forceKeepAttr=!0)):VN(e,i)&&(a.forceKeepAttr=!0)},_N=(e,t,o,n,a,r)=>"html"!==o&&!ul(n)||!(a in CN&&wN(e,r,n))&&(!e.validate||t.isValid(n,a)||ct(a,"data-")||ct(a,"aria-")),VN=(e,t)=>e.hasAttribute(yN)&&("id"===t||"class"===t||"style"===t),AN=(e,t)=>e in t.getBoolAttrs(),NN=(e,t,o,n)=>{const{attributes:a}=e;for(let r=a.length-1;r>=0;r--){const i=a[r],l=i.name,s=i.value;_N(t,o,n,e.tagName.toLowerCase(),l,s)||VN(e,l)?AN(l,o)&&e.setAttribute(l,l):e.removeAttribute(l)}},DN=(e,t,o)=>{const n=uN();return n.addHook("uponSanitizeElement",(n,a)=>{jN(n,e,t,o.track(n),a)}),n.addHook("uponSanitizeAttribute",(n,a)=>{xN(n,e,t,o.current(),a)}),n},EN=(e,t)=>{const o={IN_PLACE:!0,ALLOW_UNKNOWN_PROTOCOLS:!0,ALLOWED_TAGS:["#comment","#cdata-section","body"],ALLOWED_ATTR:[]},n={...o};return n.PARSER_MEDIA_TYPE=t,e.allow_script_urls?n.ALLOWED_URI_REGEXP=/.*/:e.allow_html_data_urls&&(n.ALLOWED_URI_REGEXP=/^(?!(\w+script|mhtml):)/i),n},TN=e=>{const t=["type","href","role","arcrole","title","show","actuate","label","from","to"].map(e=>"xlink:"+e),o={IN_PLACE:!0,USE_PROFILES:{html:!0,svg:!0,svgFilters:!0},ALLOWED_ATTR:t};return uN().sanitize(e,o),e.innerHTML},SN=(e,t)=>{const o=bl();if(e.sanitize){const n=DN(e,t,o),a=(t,a)=>{n.sanitize(t,EN(e,a)),n.removed=[],o.reset()};return{sanitizeHtmlElement:a,sanitizeNamespaceElement:TN}}{const n=(n,a)=>{const r=document.createNodeIterator(n,NodeFilter.SHOW_ELEMENT|NodeFilter.SHOW_COMMENT|NodeFilter.SHOW_TEXT);let i;while(i=r.nextNode()){const n=o.track(i);jN(i,e,t,n),dr(i)&&NN(i,e,t,n)}o.reset()},a=E;return{sanitizeHtmlElement:n,sanitizeNamespaceElement:a}}},BN=ho.makeMap,IN=ho.extend,zN=(e,t,o,n)=>{const a=e.name,r=a in o&&"title"!==a&&"textarea"!==a&&"noscript"!==a,i=t.childNodes;for(let l=0,s=i.length;l<s;l++){const t=i[l],a=new aC(t.nodeName.toLowerCase(),t.nodeType);if(dr(t)){const e=t.attributes;for(let t=0,o=e.length;t<o;t++){const o=e[t];a.attr(o.name,o.value)}ul(a.name)&&(n(t),a.value=t.innerHTML)}else Or(t)?(a.value=t.data,r&&(a.raw=!0)):(_r(t)||jr(t)||xr(t))&&(a.value=t.data);ul(a.name)||zN(a,t,o,n),e.append(a)}},FN=(e,t,o)=>{const n=[];for(let a=e,r=a;a;r=a,a=a.walk()){const o=a;X(t,e=>e(o)),_(o.parent)&&o!==e?a=r:n.push(o)}for(let a=n.length-1;a>=0;a--){const e=n[a];X(o,t=>t(e))}},MN=(e,t,o,n)=>{const a=o.validate,r=t.getNonEmptyElements(),i=t.getWhitespaceElements(),l=IN(BN("script,style,head,html,body,title,meta,param"),t.getBlockElements()),s=Ds(t),c=/[ \t\r\n]+/g,d=/^[ \t\r\n]+/,u=/[ \t\r\n]+$/,m=e=>{let t=e.parent;while(V(t)){if(t.name in i)return!0;t=t.parent}return!1},h=e=>{let o=e;while(V(o)){if(o.name in s)return Yj(t,r,i,o);o=o.parent}return!1},p=o=>o.name in l||Sl(t,o)||ul(o.name)&&o.parent===e,b=(t,o)=>{const a=o?t.prev:t.next;return!V(a)&&!_(t.parent)&&(p(t.parent)&&(t.parent!==e||!0===n.isRootContent))},g=e=>{var t;if(3===e.type&&!m(e)){let o=null!==(t=e.value)&&void 0!==t?t:"";o=o.replace(c," "),(Qj(e.prev,p)||b(e,!0))&&(o=o.replace(d,"")),0===o.length?e.remove():e.value=o}},f=e=>{var l;if(1===e.type){const l=t.getElementRule(e.name);if(a&&l){const a=Yj(t,r,i,e);l.paddInEmptyBlock&&a&&h(e)?Hj(o,n,p,e):l.removeEmpty&&a?p(e)?e.remove():e.unwrap():l.paddEmpty&&(a||Wj(e))&&Hj(o,n,p,e)}}else if(3===e.type&&!m(e)){let t=null!==(l=e.value)&&void 0!==l?l:"";(e.next&&p(e.next)||b(e,!1))&&(t=t.replace(u,"")),0===t.length?e.remove():e.value=t}};return[g,f]},LN=(e,t)=>{var o;const n=null!==(o=t.forced_root_block)&&void 0!==o?o:e.forced_root_block;return!1===n?"":!0===n?"p":n},PN=(e={},t=Ts())=>{const o=$V(),n=$V(),a={validate:!0,root_name:"body",sanitize:!0,...e},r=new DOMParser,i=SN(a,t),l=(e,o,n="html")=>{const a="xhtml"===n?"application/xhtml+xml":"text/html",l=Se(t.getSpecialElements(),o.toLowerCase()),s=l?`<${o}>${e}</${o}>`:e,c="xhtml"===n?`<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>${s}</body></html>`:`<body>${s}</body>`,d=r.parseFromString(c,a).body;return i.sanitizeHtmlElement(d,a),l?d.firstChild:d},s=o.addFilter,c=o.getFilters,d=o.removeFilter,u=n.addFilter,m=n.getFilters,h=n.removeFilter,p=(e,o)=>{tx(t,e)&&o.push(e)},b=(e,o)=>{const n=w(o.attr(yN)),a=1===o.type&&!Se(e,o.name)&&!Sl(t,o)&&!ul(o.name);return 3===o.type||a&&!n},g=(e,o)=>{const n=IN(BN("script,style,head,html,body,title,meta,param"),t.getBlockElements()),r=/^[ \t\r\n]+/,i=/[ \t\r\n]+$/;let l=e.firstChild,s=null;const c=e=>{var t,o;e&&(l=e.firstChild,l&&3===l.type&&(l.value=null===(t=l.value)||void 0===t?void 0:t.replace(r,"")),l=e.lastChild,l&&3===l.type&&(l.value=null===(o=l.value)||void 0===o?void 0:o.replace(i,"")))};if(t.isValidChild(e.name,o.toLowerCase())){while(l){const t=l.next;b(n,l)?(s||(s=new aC(o,1),s.attr(a.forced_root_block_attrs),e.insert(s,l)),s.append(l)):(c(s),s=null),l=t}c(s)}},f=(e,o={})=>{var n;const r=a.validate,s=null!==(n=o.context)&&void 0!==n?n:a.root_name,d=l(e,s,o.format);xl(t,d);const u=new aC(s,11);zN(u,d,t.getSpecialElements(),i.sanitizeNamespaceElement),d.innerHTML="";const[h,b]=MN(u,t,a,o),f=[],v=r?e=>p(e,f):E,w={nodes:{},attributes:{}},k=e=>Rj(c(),m(),e,w);if(FN(u,[h,k],[b,v]),f.reverse(),r&&f.length>0)if(o.context){const{pass:e,fail:n}=te(f,e=>e.parent===u);Xj(n,t,u,k),o.invalid=e.length>0}else Xj(f,t,u,k);const C=LN(a,o);return C&&("body"===u.name||o.isRootContent)&&g(u,C),o.invalid||$j(w,o),u},v={schema:t,addAttributeFilter:u,getAttributeFilters:m,removeAttributeFilter:h,addNodeFilter:s,getNodeFilters:c,removeNodeFilter:d,parse:f};return pA(v,a),KV(v,a,t),v},RN=e=>qx(e)?VC({validate:!1}).serialize(e):e,qN=(e,t,o)=>{const n=RN(e),a=t(n);if(a.isDefaultPrevented())return a;if(qx(e)){if(a.content!==n){const t=PN({validate:!1,forced_root_block:!1,...o}).parse(a.content,{context:e.name});return{...a,content:t}}return{...a,content:e}}return a},$N=(e,t)=>{if(t.no_events)return Lu.value(t);{const o=qf(e,t);return o.isDefaultPrevented()?Lu.error($f(e,{content:"",...o}).content):Lu.value(o)}},UN=(e,t,o)=>{if(o.no_events)return t;{const n=qN(t,t=>$f(e,{...o,content:t}),{sanitize:$h(e),sandbox_iframes:ep(e)});return n.content}},HN=(e,t)=>{if(t.no_events)return Lu.value(t);{const o=qN(t.content,o=>Pf(e,{...t,content:o}),{sanitize:$h(e),sandbox_iframes:ep(e)});return o.isDefaultPrevented()?(Rf(e,o),Lu.error(void 0)):Lu.value(o)}},WN=(e,t,o)=>{o.no_events||Rf(e,{...o,content:t})},GN=(e,t,o)=>({element:e,width:t,rows:o}),KN=(e,t)=>({element:e,cells:t}),YN=(e,t)=>({x:e,y:t}),QN=(e,t)=>Go(e,t).bind(vt).getOr(1),JN=(e,t,o,n,a)=>{const r=QN(a,"rowspan"),i=QN(a,"colspan"),l=e.rows;for(let s=o;s<o+r;s++){l[s]||(l[s]=KN(ud(n),[]));for(let e=t;e<t+i;e++){const n=l[s].cells;n[e]=s===o&&e===t?a:dd(a)}}},ZN=(e,t,o)=>{const n=e.rows,a=n[o]?n[o].cells:[];return!!a[t]},XN=(e,t,o)=>{while(ZN(e,t,o))t++;return t},eD=e=>ae(e,(e,t)=>t.cells.length>e?t.cells.length:e,0),tD=(e,t)=>{const o=e.rows;for(let n=0;n<o.length;n++){const e=o[n].cells;for(let o=0;o<e.length;o++)if(On(e[o],t))return U.some(YN(o,n))}return U.none()},oD=(e,t,o,n,a)=>{const r=[],i=e.rows;for(let l=o;l<=a;l++){const e=i[l].cells,o=t<n?e.slice(t,n+1):e.slice(n,t+1);r.push(KN(i[l].element,o))}return r},nD=(e,t,o)=>{const n=t.x,a=t.y,r=o.x,i=o.y,l=a<i?oD(e,n,a,r,i):oD(e,n,i,r,a);return GN(e.element,eD(l),l)},aD=(e,t)=>{const o=dd(e.element),n=fn.fromTag("tbody");return Da(n,t),Va(o,n),o},rD=e=>Z(e.rows,e=>{const t=Z(e.cells,e=>{const t=ud(e);return Yo(t,"colspan"),Yo(t,"rowspan"),t}),o=dd(e.element);return Da(o,t),o}),iD=e=>{const t=GN(dd(e),0,[]);return X(rr(e,"tr"),(e,o)=>{X(rr(e,"td,th"),(n,a)=>{JN(t,XN(t,a,o),o,e,n)})}),GN(t.element,eD(t.rows),t.rows)},lD=e=>aD(e,rD(e)),sD=(e,t,o)=>tD(e,t).bind(t=>tD(e,o).map(o=>nD(e,t,o))),cD=e=>ie(e,e=>"ul"===So(e)||"ol"===So(e)),dD=(e,t)=>ie(e,e=>"li"===So(e)&&pg(e,t)).fold(B([]),t=>cD(e).map(e=>{const t=fn.fromTag(So(e)),o=Ne(Ca(e),(e,t)=>ct(t,"list-style"));return fa(t,o),[fn.fromTag("li"),t]}).getOr([])),uD=(e,t)=>{const o=ae(t,(e,t)=>(Va(t,e),t),e);return t.length>0?Pv([o]):o},mD=e=>ri(e)?Nn(e).filter(ai).fold(B([]),t=>[e,t]):ai(e)?[e]:[],hD=(e,t,o)=>{const n=fn.fromDom(t.commonAncestorContainer),a=XC(n,e),r=oe(a,e=>o.isWrapper(So(e))),i=dD(a,t),l=r.concat(i.length?i:mD(n));return Z(l,dd)},pD=()=>Pv([]),bD=(e,t,o)=>uD(fn.fromDom(t.cloneContents()),hD(e,t,o)),gD=(e,t)=>la(t,"table",F(On,e)),fD=(e,t)=>gD(e,t[0]).bind(e=>{const o=t[0],n=t[t.length-1],a=iD(e);return sD(a,o,n).map(e=>Pv([lD(e)]))}).getOrThunk(pD),vD=(e,t,o)=>t.length>0&&t[0].collapsed?pD():bD(e,t[0],o),wD=(e,t,o)=>{const n=lg(t,e);return n.length>0?fD(e,n):vD(e,t,o)},kD=(e,t)=>t>=0&&t<e.length&&eg(e.charAt(t)),CD=e=>gi(e.innerText),yD=e=>e.map(e=>e.nodeName).getOr("div").toLowerCase(),OD=e=>U.from(e.selection.getRng()).map(t=>{var o;const n=U.from(e.dom.getParent(t.commonAncestorContainer,e.dom.isBlock)),a=e.getBody(),r=yD(n),i=fn.fromDom(t.cloneContents());wC(i),kC(i);const l=e.dom.add(a,r,{"data-mce-bogus":"all",style:"overflow: hidden; opacity: 0;"},i.dom),s=CD(l),c=gi(null!==(o=l.textContent)&&void 0!==o?o:"");if(e.dom.remove(l),kD(c,0)||kD(c,c.length-1)){const e=n.getOr(a),t=CD(e),o=t.indexOf(s);if(-1===o)return s;{const e=kD(t,o-1),n=kD(t,o+s.length);return(e?" ":"")+s+(n?" ":"")}}return s}).getOr(""),jD=(e,t)=>{const o=e.selection.getRng(),n=e.dom.create("body"),a=e.selection.getSel(),r=Pk(e,og(a)),i=t.contextual?wD(fn.fromDom(e.getBody()),r,e.schema).dom:o.cloneContents();return i&&n.appendChild(i),e.selection.serializer.serialize(n,t)},xD=(e,t)=>{if("text"===t.format)return OD(e);{const o=jD(e,t);return"tree"===t.format?o:e.selection.isCollapsed()?"":o}},_D=(e,t)=>({...e,format:t,get:!0,selection:!0,getInner:!0}),VD=(e,t,o={})=>{const n=_D(o,t);return $N(e,n).fold(I,t=>{const o=xD(e,t);return UN(e,o,t)})},AD=0,ND=1,DD=2,ED=(e,t)=>{const o=e.length+t.length+2,n=new Array(o),a=new Array(o),r=(e,t,o)=>({start:e,end:t,diag:o}),i=(o,n,a,r,l)=>{const c=s(o,n,a,r);if(null===c||c.start===n&&c.diag===n-r||c.end===o&&c.diag===o-a){let i=o,s=a;while(i<n||s<r)i<n&&s<r&&e[i]===t[s]?(l.push([AD,e[i]]),++i,++s):n-o>r-a?(l.push([DD,e[i]]),++i):(l.push([ND,t[s]]),++s)}else{i(o,c.start,a,c.start-c.diag,l);for(let t=c.start;t<c.end;++t)l.push([AD,e[t]]);i(c.end,n,c.end-c.diag,r,l)}},l=(o,n,a,i)=>{let l=o;while(l-n<i&&l<a&&e[l]===t[l-n])++l;return r(o,l,n)},s=(o,r,i,s)=>{const c=r-o,d=s-i;if(0===c||0===d)return null;const u=c-d,m=d+c,h=(m%2===0?m:m+1)/2;let p,b,g,f,v;for(n[1+h]=o,a[1+h]=r+1,p=0;p<=h;++p){for(b=-p;b<=p;b+=2){g=b+h,b===-p||b!==p&&n[g-1]<n[g+1]?n[g]=n[g+1]:n[g]=n[g-1]+1,f=n[g],v=f-o+i-b;while(f<r&&v<s&&e[f]===t[v])n[g]=++f,++v;if(u%2!==0&&u-p<=b&&b<=u+p&&a[g-u]<=n[g])return l(a[g-u],b+o-i,r,s)}for(b=u-p;b<=u+p;b+=2){g=b+h-u,b===u-p||b!==u+p&&a[g+1]<=a[g-1]?a[g]=a[g+1]-1:a[g]=a[g-1],f=a[g]-1,v=f-o+i-b;while(f>=o&&v>=i&&e[f]===t[v])a[g]=f--,v--;if(u%2===0&&-p<=b&&b<=p&&a[g]<=n[g+u])return l(a[g],b+o-i,r,s)}}return null},c=[];return i(0,e.length,0,t.length,c),c},TD=e=>dr(e)?e.outerHTML:Or(e)?hs.encodeRaw(e.data,!1):_r(e)?"\x3c!--"+e.data+"--\x3e":"",SD=e=>{let t;const o=document.createElement("div"),n=document.createDocumentFragment();e&&(o.innerHTML=e);while(t=o.firstChild)n.appendChild(t);return n},BD=(e,t,o)=>{const n=SD(t);if(e.hasChildNodes()&&o<e.childNodes.length){const t=e.childNodes[o];e.insertBefore(n,t)}else e.appendChild(n)},ID=(e,t)=>{if(e.hasChildNodes()&&t<e.childNodes.length){const o=e.childNodes[t];e.removeChild(o)}},zD=(e,t)=>{let o=0;X(e,e=>{e[0]===AD?o++:e[0]===ND?(BD(t,e[1],o),o++):e[0]===DD&&ID(t,o)})},FD=(e,t)=>oe(Z(ve(e.childNodes),t?T(gi,TD):TD),e=>e.length>0),MD=(e,t)=>{const o=Z(ve(t.childNodes),TD);return zD(ED(o,e),t),t},LD=Ge(()=>document.implementation.createHTMLDocument("undo")),PD=e=>null!==e.querySelector("iframe"),RD=e=>({type:"fragmented",fragments:e,content:"",bookmark:null,beforeBookmark:null}),qD=e=>({type:"complete",fragments:null,content:e,bookmark:null,beforeBookmark:null}),$D=e=>{const t=e.serializer.getTempAttrs(),o=vC(e.getBody(),t);return PD(o)?RD(FD(o,!0)):qD(gi(o.innerHTML))},UD=(e,t,o)=>{const n=o?t.beforeBookmark:t.bookmark;"fragmented"===t.type?MD(t.fragments,e.getBody()):e.setContent(t.content,{format:"raw",no_selection:!V(n)||!Bb(n)||!n.isFakeCaret}),n&&(e.selection.moveToBookmark(n),e.selection.scrollIntoView())},HD=e=>"fragmented"===e.type?e.fragments.join(""):e.content,WD=e=>{const t=fn.fromTag("body",LD());return Fa(t,HD(e)),X(rr(t,"*[data-mce-bogus]"),Sa),za(t)},GD=(e,t)=>HD(e)===HD(t),KD=(e,t)=>WD(e)===WD(t),YD=(e,t)=>!(!e||!t)&&(!!GD(e,t)||KD(e,t)),QD=e=>0===e.get(),JD=(e,t,o)=>{QD(o)&&(e.typing=t)},ZD=(e,t)=>{e.typing&&(JD(e,!1,t),e.add())},XD=e=>{e.typing&&(e.typing=!1,e.add())},eE=(e,t,o)=>{QD(t)&&o.set(Iu(e.selection))},tE=(e,t,o,n,a,r,i)=>{const l=$D(e),s=ho.extend(r||{},l);if(!QD(n)||e.removed)return null;const c=t.data[o.get()];if(e.dispatch("BeforeAddUndo",{level:s,lastLevel:c,originalEvent:i}).isDefaultPrevented())return null;if(c&&YD(c,s))return null;t.data[o.get()]&&a.get().each(e=>{t.data[o.get()].beforeBookmark=e});const d=ih(e);if(d&&t.data.length>d){for(let e=0;e<t.data.length-1;e++)t.data[e]=t.data[e+1];t.data.length--,o.set(t.data.length)}s.bookmark=Iu(e.selection),o.get()<t.data.length-1&&(t.data.length=o.get()+1),t.data.push(s),o.set(t.data.length-1);const u={level:s,lastLevel:c,originalEvent:i};return o.get()>0?(e.setDirty(!0),e.dispatch("AddUndo",u),e.dispatch("change",u)):e.dispatch("AddUndo",u),s},oE=(e,t,o)=>{t.data=[],o.set(0),t.typing=!1,e.dispatch("ClearUndos")},nE=(e,t,o,n,a)=>{if(t.transact(n)){const n=t.data[o.get()].bookmark,r=t.data[o.get()-1];UD(e,r,!0),t.transact(a)&&(t.data[o.get()-1].beforeBookmark=n)}},aE=(e,t,o)=>{let n;return t.get()<o.length-1&&(t.set(t.get()+1),n=o[t.get()],UD(e,n,!1),e.setDirty(!0),e.dispatch("Redo",{level:n})),n},rE=(e,t,o,n)=>{let a;return t.typing&&(t.add(),t.typing=!1,JD(t,!1,o)),n.get()>0&&(n.set(n.get()-1),a=t.data[n.get()],UD(e,a,!0),e.setDirty(!0),e.dispatch("Undo",{level:a})),a},iE=e=>{e.clear(),e.add()},lE=(e,t,o)=>o.get()>0||t.typing&&t.data[0]&&!YD($D(e),t.data[0]),sE=(e,t)=>t.get()<e.data.length-1&&!e.typing,cE=(e,t,o)=>(ZD(e,t),e.beforeChange(),e.ignore(o),e.add()),dE=(e,t)=>{try{e.set(e.get()+1),t()}finally{e.set(e.get()-1)}},uE=(e,t)=>{const o=e.dom,n=V(t)?t:e.getBody();X(o.select("table,a",n),t=>{switch(t.nodeName){case"TABLE":const n=bh(e),a=o.getAttrib(t,"border");a&&"0"!==a||!e.hasVisual?o.removeClass(t,n):o.addClass(t,n);break;case"A":if(!o.getAttrib(t,"href")){const n=o.getAttrib(t,"name")||t.id,a=gh(e);n&&e.hasVisual?o.addClass(t,a):o.removeClass(t,a)}break}}),e.dispatch("VisualAid",{element:t,hasVisual:e.hasVisual})},mE=e=>({init:{bindEvents:E},undoManager:{beforeChange:(t,o)=>eE(e,t,o),add:(t,o,n,a,r,i)=>tE(e,t,o,n,a,r,i),undo:(t,o,n)=>rE(e,t,o,n),redo:(t,o)=>aE(e,t,o),clear:(t,o)=>oE(e,t,o),reset:e=>iE(e),hasUndo:(t,o)=>lE(e,t,o),hasRedo:(e,t)=>sE(e,t),transact:(e,t,o)=>cE(e,t,o),ignore:(e,t)=>dE(e,t),extra:(t,o,n,a)=>nE(e,t,o,n,a)},formatter:{match:(t,o,n,a)=>n_(e,t,o,n,a),matchAll:(t,o)=>a_(e,t,o),matchNode:(t,o,n,a)=>o_(e,t,o,n,a),canApply:t=>i_(e,t),closest:t=>r_(e,t),apply:(t,o,n)=>EV(e,t,o,n),remove:(t,o,n,a)=>wV(e,t,o,n,a),toggle:(t,o,n)=>RV(e,t,o,n),formatChanged:(t,o,n,a,r)=>PV(e,t,o,n,a,r)},editor:{getContent:t=>jC(e,t),setContent:(t,o)=>Gx(e,t,o),insertContent:(t,o)=>Rx(e,t,o),addVisual:t=>uE(e,t)},selection:{getContent:(t,o)=>VD(e,t,o)},autocompleter:{addDecoration:t=>Qk(e,t),removeDecoration:()=>Xk(e,fn.fromDom(e.getBody()))},raw:{getModel:()=>U.none()}}),hE=e=>{const t=e=>k(e)?e:{},{init:o,undoManager:n,formatter:a,editor:r,selection:i,autocompleter:l,raw:s}=e;return{init:{bindEvents:o.bindEvents},undoManager:{beforeChange:n.beforeChange,add:n.add,undo:n.undo,redo:n.redo,clear:n.clear,reset:n.reset,hasUndo:n.hasUndo,hasRedo:n.hasRedo,transact:(e,t,o)=>n.transact(o),ignore:(e,t)=>n.ignore(t),extra:(e,t,o,a)=>n.extra(o,a)},formatter:{match:(e,o,n,r)=>a.match(e,t(o),r),matchAll:a.matchAll,matchNode:a.matchNode,canApply:e=>a.canApply(e),closest:e=>a.closest(e),apply:(e,o,n)=>a.apply(e,t(o)),remove:(e,o,n,r)=>a.remove(e,t(o)),toggle:(e,o,n)=>a.toggle(e,t(o)),formatChanged:(e,t,o,n,r)=>a.formatChanged(t,o,n,r)},editor:{getContent:e=>r.getContent(e),setContent:(e,t)=>({content:r.setContent(e,t),html:""}),insertContent:(e,t)=>(r.insertContent(e),""),addVisual:r.addVisual},selection:{getContent:(e,t)=>i.getContent(t)},autocompleter:{addDecoration:l.addDecoration,removeDecoration:l.removeDecoration},raw:{getModel:()=>U.some(s.getRawModel())}}},pE=()=>{const e=B(null),t=B("");return{init:{bindEvents:E},undoManager:{beforeChange:E,add:e,undo:e,redo:e,clear:E,reset:E,hasUndo:q,hasRedo:q,transact:e,ignore:E,extra:E},formatter:{match:q,matchAll:B([]),matchNode:B(void 0),canApply:q,closest:t,apply:E,remove:E,toggle:E,formatChanged:B({unbind:E})},editor:{getContent:t,setContent:B({content:"",html:""}),insertContent:B(""),addVisual:E},selection:{getContent:t},autocompleter:{addDecoration:E,removeDecoration:E},raw:{getModel:B(U.none())}}},bE=e=>Se(e.plugins,"rtc"),gE=e=>Te(e.plugins,"rtc").bind(e=>U.from(e.setup)),fE=e=>{const t=e;return gE(e).fold(()=>(t.rtcInstance=mE(e),U.none()),e=>(t.rtcInstance=pE(),U.some(()=>e().then(e=>(t.rtcInstance=hE(e),e.rtc.isRemote)))))},vE=e=>e.rtcInstance?e.rtcInstance:mE(e),wE=e=>{const t=e.rtcInstance;if(t)return t;throw new Error("Failed to get RTC instance not yet initialized.")},kE=(e,t,o)=>{wE(e).undoManager.beforeChange(t,o)},CE=(e,t,o,n,a,r,i)=>wE(e).undoManager.add(t,o,n,a,r,i),yE=(e,t,o,n)=>wE(e).undoManager.undo(t,o,n),OE=(e,t,o)=>wE(e).undoManager.redo(t,o),jE=(e,t,o)=>{wE(e).undoManager.clear(t,o)},xE=(e,t)=>{wE(e).undoManager.reset(t)},_E=(e,t,o)=>wE(e).undoManager.hasUndo(t,o),VE=(e,t,o)=>wE(e).undoManager.hasRedo(t,o),AE=(e,t,o,n)=>wE(e).undoManager.transact(t,o,n),NE=(e,t,o)=>{wE(e).undoManager.ignore(t,o)},DE=(e,t,o,n,a)=>{wE(e).undoManager.extra(t,o,n,a)},EE=(e,t,o,n,a)=>wE(e).formatter.match(t,o,n,a),TE=(e,t,o)=>wE(e).formatter.matchAll(t,o),SE=(e,t,o,n,a)=>wE(e).formatter.matchNode(t,o,n,a),BE=(e,t)=>wE(e).formatter.canApply(t),IE=(e,t)=>wE(e).formatter.closest(t),zE=(e,t,o,n)=>{wE(e).formatter.apply(t,o,n)},FE=(e,t,o,n,a)=>{wE(e).formatter.remove(t,o,n,a)},ME=(e,t,o,n)=>{wE(e).formatter.toggle(t,o,n)},LE=(e,t,o,n,a,r)=>wE(e).formatter.formatChanged(t,o,n,a,r),PE=(e,t)=>vE(e).editor.getContent(t),RE=(e,t,o)=>vE(e).editor.setContent(t,o),qE=(e,t,o)=>vE(e).editor.insertContent(t,o),$E=(e,t,o)=>wE(e).selection.getContent(t,o),UE=(e,t)=>wE(e).editor.addVisual(t),HE=e=>wE(e).init.bindEvents(),WE=(e,t)=>wE(e).autocompleter.addDecoration(t),GE=e=>wE(e).autocompleter.removeDecoration(),KE=(e,t={})=>{const o=t.format?t.format:"html";return $E(e,o,t)},YE=e=>0===e.dom.length?(Ta(e),U.none()):U.some(e),QE=(e,t)=>e.filter(e=>jf.isBookmarkNode(e.dom)).bind(t?Bn:Sn),JE=(e,t,o,n,a)=>{const r=e.dom,i=t.dom,l=n?r.length:i.length;n?(Hy(r,i,a,!1,!n),o.setStart(i,l)):(Hy(i,r,a,!1,!n),o.setEnd(i,l))},ZE=(e,t,o)=>{Nn(e).each(n=>{const a=e.dom;t&&Ny(n,tu(a,0),o)?$y(a,0,o):!t&&Ey(n,tu(a,a.length),o)&&Uy(a,a.length,o)})},XE=(e,t,o,n,a)=>{e.bind(e=>{const r=n?Uy:$y;return r(e.dom,n?e.dom.length:0,a),t.filter(Lo).map(t=>JE(e,t,o,n,a))}).orThunk(()=>{const e=QE(t,n).or(t).filter(Lo);return e.map(e=>ZE(e,n,a))})},eT=(e,t,o)=>{const n=U.from(t.firstChild).map(fn.fromDom),a=U.from(t.lastChild).map(fn.fromDom);e.deleteContents(),e.insertNode(t);const r=n.bind(Sn).filter(Lo).bind(YE),i=a.bind(Bn).filter(Lo).bind(YE);XE(r,n,e,!0,o),XE(i,a,e,!1,o),e.collapse(!1)},tT=(e,t)=>({format:"html",...e,set:!0,selection:!0,content:t}),oT=(e,t)=>{if("raw"!==t.format){const o=e.selection.getRng(),n=e.dom.getParent(o.commonAncestorContainer,e.dom.isBlock),a=n?{context:n.nodeName.toLowerCase()}:{},r=e.parser.parse(t.content,{forced_root_block:!1,...a,...t});return VC({validate:!1},e.schema).serialize(r)}return t.content},nT=(e,t,o={})=>{const n=tT(o,t);HN(e,n).each(t=>{const o=oT(e,t),n=e.selection.getRng();eT(n,n.createContextualFragment(o),e.schema),e.selection.setRng(n),Iw(e,n),WN(e,o,t)})},aT=(e,t,o)=>{if(Se(e,t)){const n=oe(e[t],e=>e!==o);0===n.length?delete e[t]:e[t]=n}};var rT=(e,t)=>{let o,n;const a=(t,o)=>ie(o,o=>e.is(o,t)),r=t=>e.getParents(t,void 0,e.getRoot()),i=()=>{o={},n={},t.on("NodeChange",e=>{const t=e.element,i=r(t),l={};Oe(o,(e,t)=>{a(t,i).each(o=>{n[t]||(X(e,e=>{e(!0,{node:o,selector:t,parents:i})}),n[t]=e),l[t]=e})}),Oe(n,(e,o)=>{l[o]||(delete n[o],X(e,e=>{e(!1,{node:t,selector:o,parents:i})}))})})};return{selectorChangedWithUnbind:(e,l)=>(o||i(),o[e]||(o[e]=[]),o[e].push(l),a(e,r(t.selection.getStart())).each(()=>{n[e]=o[e]}),{unbind:()=>{aT(o,e,l),aT(n,e,l)}})}};const iT=e=>!(!e||!e.ownerDocument)&&jn(fn.fromDom(e.ownerDocument),fn.fromDom(e)),lT=e=>!!e&&(iT(e.startContainer)&&iT(e.endContainer)),sT=(e,t,o,n)=>{let a,r;const{selectorChangedWithUnbind:i}=rT(e,n),l=(t,o)=>{const a=e.createRng();V(t)&&V(o)?(a.setStart(t,o),a.setEnd(t,o),k(a),f(!1)):(bg(e,a,n.getBody(),!0),k(a))},s=e=>KE(n,e),c=(e,t)=>nT(n,e,t),d=e=>Bk(n.getBody(),w(),e),u=e=>Ik(n.getBody(),w(),e),m=(e,t)=>I.getBookmark(e,t),h=e=>I.moveToBookmark(e),p=(t,o)=>(Lk(e,t,o).each(k),t),b=()=>{const e=w(),t=v();return!(!e||e.item)&&(e.compareEndPoints?0===e.compareEndPoints("StartToEnd",e):!t||e.collapsed)},g=()=>{const t=w(),o=n.getBody().querySelectorAll('[data-mce-selected="1"]');return o.length>0?de(o,t=>e.isEditable(t.parentElement)):Tk(e,t)},f=e=>{const t=w();t.collapse(!!e),k(t)},v=()=>t.getSelection?t.getSelection():t.document.selection,w=()=>{let o;const i=(e,t,o)=>{try{return t.compareBoundaryPoints(e,o)}catch(n){return-1}},l=t.document;if(V(n.bookmark)&&!Vk(n)){const e=Jw(n);if(e.isSome())return e.map(e=>Pk(n,[e])[0]).getOr(l.createRange())}try{const e=v();e&&!cr(e.anchorNode)&&(o=e.rangeCount>0?e.getRangeAt(0):l.createRange(),o=Pk(n,[o])[0])}catch(s){}if(o||(o=l.createRange()),Vr(o.startContainer)&&o.collapsed){const t=e.getRoot();o.setStart(t,0),o.setEnd(t,0)}return a&&r&&(0===i(o.START_TO_START,o,a)&&0===i(o.END_TO_END,o,a)?o=r:(a=null,r=null)),o},k=(e,t)=>{if(!lT(e))return;const o=v(),i=n.dispatch("SetSelectionRange",{range:e,forward:t});if(e=i.range,o){r=e;try{o.removeAllRanges(),o.addRange(e)}catch(l){}!1===t&&o.extend&&(o.collapse(e.endContainer,e.endOffset),o.extend(e.startContainer,e.startOffset)),a=o.rangeCount>0?o.getRangeAt(0):null}if(!e.collapsed&&e.startContainer===e.endContainer&&(null===o||void 0===o?void 0:o.setBaseAndExtent)&&e.endOffset-e.startOffset<2&&e.startContainer.hasChildNodes()){const t=e.startContainer.childNodes[e.startOffset];t&&"IMG"===t.nodeName&&(o.setBaseAndExtent(e.startContainer,e.startOffset,e.endContainer,e.endOffset),o.anchorNode===e.startContainer&&o.focusNode===e.endContainer||o.setBaseAndExtent(t,0,t,1))}n.dispatch("AfterSetSelectionRange",{range:e,forward:t})},C=t=>(c(e.getOuterHTML(t)),t),y=()=>Fk(n.getBody(),w()),O=(t,o)=>Mk(e,w(),t,o),j=()=>{const t=v(),o=null===t||void 0===t?void 0:t.anchorNode,n=null===t||void 0===t?void 0:t.focusNode;if(!t||!o||!n||cr(o)||cr(n))return!0;const a=e.createRng(),r=e.createRng();try{a.setStart(o,t.anchorOffset),a.collapse(!0),r.setStart(n,t.focusOffset),r.collapse(!0)}catch(i){return!0}return a.compareBoundaryPoints(a.START_TO_START,r)<=0},x=()=>{const t=w(),o=v();if(!ag(o)&&gg(n)){const o=ew(e,t);return o.each(e=>{k(e,j())}),o.getOr(t)}return t},_=(e,t)=>(i(e,t),B),A=()=>{let t,o=e.getRoot();while(o&&"BODY"!==o.nodeName){if(o.scrollHeight>o.clientHeight){t=o;break}o=o.parentNode}return t},N=(e,t)=>{V(e)?Bw(n,e,t):Iw(n,w(),t)},D=(e,t)=>k($v(e,t,n.getDoc())),E=()=>{const e=w();return e.collapsed?tu.fromRangeStart(e).getClientRects()[0]:e.getBoundingClientRect()},T=()=>{t=a=r=null,z.destroy()},S=(t={type:"word"})=>k(nw(e).expand(w(),t)),B={dom:e,win:t,serializer:o,editor:n,expand:S,collapse:f,setCursorLocation:l,getContent:s,setContent:c,getBookmark:m,moveToBookmark:h,select:p,isCollapsed:b,isEditable:g,isForward:j,setNode:C,getNode:y,getSel:v,setRng:k,getRng:w,getStart:d,getEnd:u,getSelectedBlocks:O,normalize:x,selectorChanged:_,selectorChangedWithUnbind:i,getScrollContainer:A,scrollIntoView:N,placeCaretAt:D,getBoundingClientRect:E,destroy:T},I=jf(B),z=av(B,n);return B.bookmarkManager=I,B.controlSelection=z,B},cT=(e,t,o)=>{e.addAttributeFilter("data-mce-tabindex",(e,t)=>{let o=e.length;while(o--){const n=e[o];n.attr("tabindex",n.attr("data-mce-tabindex")),n.attr(t,null)}}),e.addAttributeFilter("src,href,style",(e,n)=>{const a="data-mce-"+n,r=t.url_converter,i=t.url_converter_scope;let l=e.length;while(l--){const t=e[l];let s=t.attr(a);void 0!==s?(t.attr(n,s.length>0?s:null),t.attr(a,null)):(s=t.attr(n),"style"===n?s=o.serializeStyle(o.parseStyle(s),t.name):r&&(s=r.call(i,s,n,t.name)),t.attr(n,s.length>0?s:null))}}),e.addAttributeFilter("class",e=>{let t=e.length;while(t--){const o=e[t];let n=o.attr("class");n&&(n=n.replace(/(?:^|\s)mce-item-\w+(?!\S)/g,""),o.attr("class",n.length>0?n:null))}}),e.addAttributeFilter("data-mce-type",(e,t,o)=>{let n=e.length;while(n--){const t=e[n];if("bookmark"===t.attr("data-mce-type")&&!o.cleanup){const e=U.from(t.firstChild).exists(e=>{var t;return!bi(null!==(t=e.value)&&void 0!==t?t:"")});e?t.unwrap():t.remove()}}}),e.addNodeFilter("script,style",(e,o)=>{var n;const a=e=>e.replace(/(<!--\[CDATA\[|\]\]-->)/g,"\n").replace(/^[\r\n]*|[\r\n]*$/g,"").replace(/^\s*((<!--)?(\s*\/\/)?\s*<!\[CDATA\[|(<!--\s*)?\/\*\s*<!\[CDATA\[\s*\*\/|(\/\/)?\s*<!--|\/\*\s*<!--\s*\*\/)\s*[\r\n]*/gi,"").replace(/\s*(\/\*\s*\]\]>\s*\*\/(-->)?|\s*\/\/\s*\]\]>(-->)?|\/\/\s*(-->)?|\]\]>|\/\*\s*-->\s*\*\/|\s*-->\s*)\s*$/g,"");let r=e.length;while(r--){const i=e[r],l=i.firstChild,s=null!==(n=null===l||void 0===l?void 0:l.value)&&void 0!==n?n:"";if("script"===o){const e=i.attr("type");e&&i.attr("type","mce-no/type"===e?null:e.replace(/^mce\-/,"")),"xhtml"===t.element_format&&l&&s.length>0&&(l.value="// <![CDATA[\n"+a(s)+"\n// ]]>")}else"xhtml"===t.element_format&&l&&s.length>0&&(l.value="\x3c!--\n"+a(s)+"\n--\x3e")}}),e.addNodeFilter("#comment",e=>{let n=e.length;while(n--){const a=e[n],r=a.value;t.preserve_cdata&&0===(null===r||void 0===r?void 0:r.indexOf("[CDATA["))?(a.name="#cdata",a.type=4,a.value=o.decode(r.replace(/^\[CDATA\[|\]\]$/g,""))):0===(null===r||void 0===r?void 0:r.indexOf("mce:protected "))&&(a.name="#text",a.type=3,a.raw=!0,a.value=unescape(r).substr(14))}}),e.addNodeFilter("xml:namespace,input",(e,t)=>{let o=e.length;while(o--){const n=e[o];7===n.type?n.remove():1===n.type&&("input"!==t||n.attr("type")||n.attr("type","text"))}}),e.addAttributeFilter("data-mce-type",t=>{X(t,t=>{"format-caret"===t.attr("data-mce-type")&&(t.isEmpty(e.schema.getNonEmptyElements())?t.remove():t.unwrap())})}),e.addAttributeFilter("data-mce-src,data-mce-href,data-mce-style,data-mce-selected,data-mce-expando,data-mce-block,data-mce-type,data-mce-resize,data-mce-placeholder",(e,t)=>{let o=e.length;while(o--)e[o].attr(t,null)}),t.remove_trailing_brs&&YV(t,e,e.schema)},dT=e=>{const t=e=>"br"===(null===e||void 0===e?void 0:e.name),o=e.lastChild;if(t(o)){const e=o.prev;t(e)&&(o.remove(),e.remove())}},uT=(e,t,o)=>{let n;const a=e.dom;let r=t.cloneNode(!0);const i=document.implementation;if(i.createHTMLDocument){const e=i.createHTMLDocument("");ho.each("BODY"===r.nodeName?r.childNodes:[r],t=>{e.body.appendChild(e.importNode(t,!0))}),r="BODY"!==r.nodeName?e.body.firstChild:e.body,n=a.doc,a.doc=e}return _f(e,{...o,node:r}),n&&(a.doc=n),r},mT=(e,t)=>V(e)&&e.hasEventListeners("PreProcess")&&!t.no_events,hT=(e,t,o)=>mT(e,o)?uT(e,t,o):t,pT=(e,t,o)=>{-1===ho.inArray(t,o)&&(e.addAttributeFilter(o,(e,t)=>{let o=e.length;while(o--)e[o].attr(t,null)}),t.push(o))},bT=(e,t,o)=>{if(!t.no_events&&e){const n=Vf(e,{...t,content:o});return n.content}return o},gT=(e,t,o)=>{const n=gi(o.getInner?t.innerHTML:e.getOuterHTML(t));return o.selection||si(fn.fromDom(t))?n:ho.trim(n)},fT=(e,t,o)=>{const n=o.selection?{forced_root_block:!1,...o}:o,a=e.parse(t,n);return dT(a),a},vT=(e,t,o)=>{const n=VC(e,t);return n.serialize(o)},wT=(e,t,o,n,a)=>{const r=vT(t,o,n);return bT(e,a,r)},kT=(e,t)=>{const o=["data-mce-selected"],n={entity_encoding:"named",remove_trailing_brs:!0,pad_empty_with_br:!1,...e},a=t&&t.dom?t.dom:gc.DOM,r=t&&t.schema?t.schema:Ts(n),i=PN(n,r);cT(i,n,a);const l=(e,o={})=>{const l={format:"html",...o},s=hT(t,e,l),c=gT(a,s,l),d=fT(i,c,l);return"tree"===l.format?d:wT(t,n,r,d,l)};return{schema:r,addNodeFilter:i.addNodeFilter,addAttributeFilter:i.addAttributeFilter,serialize:l,addRules:r.addValidElements,setRules:r.setValidElements,addTempAttr:F(pT,i,o),getTempAttrs:B(o),getNodeFilters:i.getNodeFilters,getAttributeFilters:i.getAttributeFilters,removeNodeFilter:i.removeNodeFilter,removeAttributeFilter:i.removeAttributeFilter}},CT=(e,t)=>{const o=kT(e,t);return{schema:o.schema,addNodeFilter:o.addNodeFilter,addAttributeFilter:o.addAttributeFilter,serialize:o.serialize,addRules:o.addRules,setRules:o.setRules,addTempAttr:o.addTempAttr,getTempAttrs:o.getTempAttrs,getNodeFilters:o.getNodeFilters,getAttributeFilters:o.getAttributeFilters,removeNodeFilter:o.removeNodeFilter,removeAttributeFilter:o.removeAttributeFilter}},yT="html",OT=(e,t)=>({...e,format:t,get:!0,getInner:!0}),jT=(e,t={})=>{const o=t.format?t.format:yT,n=OT(t,o);return $N(e,n).fold(I,t=>{const o=PE(e,t);return UN(e,o,t)})},xT="html",_T=(e,t)=>({format:xT,...e,set:!0,content:t}),VT=(e,t,o={})=>{const n=_T(o,t);return HN(e,n).map(t=>{const o=RE(e,t.content,t);return WN(e,o.html,t),o.content}).getOr(t)},AT="autoresize_on_init,content_editable_state,padd_empty_with_br,block_elements,boolean_attributes,editor_deselector,editor_selector,elements,file_browser_callback_types,filepicker_validator_handler,force_hex_style_colors,force_p_newlines,gecko_spellcheck,images_dataimg_filter,media_scripts,mode,move_caret_before_on_enter_elements,non_empty_elements,self_closing_elements,short_ended_elements,special,spellchecker_select_languages,spellchecker_whitelist,tab_focus,tabfocus_elements,table_responsive_width,text_block_elements,text_inline_elements,toolbar_drawer,types,validate,whitespace_elements,paste_enable_default_filters,paste_filter_drop,paste_word_valid_elements,paste_retain_style_properties,paste_convert_word_fake_lists".split(","),NT="template_cdate_classes,template_mdate_classes,template_selected_content_classes,template_preview_replace_values,template_replace_values,templates,template_cdate_format,template_mdate_format".split(","),DT="bbcode,colorpicker,contextmenu,fullpage,legacyoutput,spellchecker,textcolor".split(","),ET=[{name:"template",replacedWith:"Advanced Template"},{name:"rtc"}],TT=(e,t)=>{const o=oe(t,t=>Se(e,t));return pe(o)},ST=e=>{const t=TT(e,AT),o=e.forced_root_block;return!1!==o&&""!==o||t.push("forced_root_block (false only)"),pe(t)},BT=e=>TT(e,NT),IT=(e,t)=>{const o=ho.makeMap(e.plugins," "),n=e=>Se(o,e),a=oe(t,n);return pe(a)},zT=e=>IT(e,DT),FT=e=>IT(e,ET.map(e=>e.name)),MT=(e,t)=>{const o=ST(e),n=zT(t),a=n.length>0,r=o.length>0,i="mobile"===t.theme;if(a||r||i){const e="\n- ",t=i?`\n\nThemes:${e}mobile`:"",l=a?`\n\nPlugins:${e}${n.join(e)}`:"",s=r?`\n\nOptions:${e}${o.join(e)}`:"";console.warn("The following deprecated features are currently enabled and have been removed in TinyMCE 6.0. These features will no longer work and should be removed from the TinyMCE configuration. See https://www.tiny.cloud/docs/tinymce/6/migration-from-5x/ for more information."+t+l+s)}},LT=e=>ie(ET,t=>t.name===e).fold(()=>e,t=>t.replacedWith?`${e}, replaced by ${t.replacedWith}`:e),PT=(e,t)=>{const o=BT(e),n=FT(t),a=n.length>0,r=o.length>0;if(a||r){const e="\n- ",t=a?`\n\nPlugins:${e}${n.map(LT).join(e)}`:"",i=r?`\n\nOptions:${e}${o.join(e)}`:"";console.warn("The following deprecated features are currently enabled but will be removed soon."+t+i)}},RT=(e,t)=>{MT(e,t),PT(e,t)},qT=gc.DOM,$T=e=>{qT.setStyle(e.id,"display",e.orgDisplay)},UT=e=>U.from(e).each(e=>e.destroy()),HT=e=>{const t=e;t.contentAreaContainer=t.formElement=t.container=t.editorContainer=null,t.bodyElement=t.contentDocument=t.contentWindow=null,t.iframeElement=t.targetElm=null;const o=e.selection;if(o){const e=o.dom;t.selection=o.win=o.dom=e.doc=null}},WT=e=>{const t=e.formElement;t&&(t._mceOldSubmit&&(t.submit=t._mceOldSubmit,delete t._mceOldSubmit),qT.unbind(t,"submit reset",e.formEventDelegate))},GT=e=>{if(!e.removed){const{_selectionOverrides:t,editorUpload:o}=e,n=e.getBody(),a=e.getElement();n&&e.save({is_removing:!0}),e.removed=!0,e.unbindAllNativeEvents(),e.hasHiddenInput&&V(null===a||void 0===a?void 0:a.nextSibling)&&qT.remove(a.nextSibling),Af(e),e.editorManager.remove(e),!e.inline&&n&&$T(e),Nf(e),qT.remove(e.getContainer()),UT(t),UT(o),e.destroy()}},KT=(e,t)=>{const{selection:o,dom:n}=e;e.destroyed||(t||e.removed?(t||(e.editorManager.off("beforeunload",e._beforeUnload),e.theme&&e.theme.destroy&&e.theme.destroy(),UT(o),UT(n)),WT(e),HT(e),e.destroyed=!0):e.remove())},YT=()=>{const e={},t=(t,o)=>{e[t]=o},o=t=>e[t]?e[t]:{icons:{}},n=t=>Se(e,t);return{add:t,get:o,has:n}},QT=YT(),JT=Mc.ModelManager,ZT=(e,t)=>{const o=t.dom;return o[e]},XT=(e,t)=>parseInt(va(t,e),10),eS=F(ZT,"clientWidth"),tS=F(ZT,"clientHeight"),oS=F(XT,"margin-top"),nS=F(XT,"margin-left"),aS=e=>e.dom.getBoundingClientRect(),rS=(e,t,o)=>{const n=eS(e),a=tS(e);return t>=0&&o>=0&&t<=n&&o<=a},iS=(e,t,o,n)=>{const a=aS(t),r=e?a.left+t.dom.clientLeft+nS(t):0,i=e?a.top+t.dom.clientTop+oS(t):0,l=o-r,s=n-i;return{x:l,y:s}},lS=(e,t,o)=>{const n=fn.fromDom(e.getBody()),a=e.inline?n:Vn(n),r=iS(e.inline,a,t,o);return rS(a,r.x,r.y)},sS=e=>U.from(e).map(fn.fromDom),cS=e=>{const t=e.inline?e.getBody():e.getContentAreaContainer();return sS(t).map(ea).getOr(!1)};var dS=()=>{const e=()=>{throw new Error("Theme did not provide a NotificationManager implementation.")};return{open:e,close:e,getArgs:e}};const uS=e=>{const t=[],o=()=>{const t=e.theme;return t&&t.getNotificationManagerImpl?t.getNotificationManagerImpl():dS()},n=()=>U.from(t[0]),a=(e,t)=>e.type===t.type&&e.text===t.text&&!e.progressBar&&!e.timeout&&!t.progressBar&&!t.timeout,r=()=>{X(t,e=>{e.reposition()})},i=e=>{t.push(e)},l=e=>{le(t,t=>t===e).each(e=>{t.splice(e,1)})},s=(s,c=!0)=>e.removed||!cS(e)?{}:(c&&e.dispatch("BeforeOpenNotification",{notification:s}),ie(t,e=>a(o().getArgs(e),s)).getOrThunk(()=>{e.editorManager.setActive(e);const t=o().open(s,()=>{l(t),r(),Ak(e)&&n().fold(()=>e.focus(),e=>zw(fn.fromDom(e.getEl())))});return i(t),r(),e.dispatch("OpenNotification",{notification:{...t}}),t})),c=()=>{n().each(e=>{o().close(e),l(e),r()})},d=B(t),u=e=>{e.on("SkinLoaded",()=>{const t=Um(e);t&&s({text:t,type:"warning",timeout:0},!1),r()}),e.on("show ResizeEditor ResizeWindow NodeChange",()=>{requestAnimationFrame(r)}),e.on("remove",()=>{X(t.slice(),e=>{o().close(e)})})};return u(e),{open:s,close:c,getNotifications:d}},mS=Mc.PluginManager,hS=Mc.ThemeManager;var pS=()=>{const e=()=>{throw new Error("Theme did not provide a WindowManager implementation.")};return{open:e,openUrl:e,alert:e,confirm:e,close:e}};const bS=e=>{let t=[];const o=()=>{const t=e.theme;return t&&t.getWindowManagerImpl?t.getWindowManagerImpl():pS()},n=(e,t)=>(...o)=>t?t.apply(e,o):void 0,a=t=>{e.dispatch("OpenWindow",{dialog:t})},r=t=>{e.dispatch("CloseWindow",{dialog:t})},i=e=>{t.push(e),a(e)},l=o=>{r(o),t=oe(t,e=>e!==o),0===t.length&&e.focus()},s=()=>U.from(t[t.length-1]),c=t=>{e.editorManager.setActive(e),Qw(e),e.ui.show();const o=t();return i(o),o},d=(e,t)=>c(()=>o().open(e,t,l)),u=e=>c(()=>o().openUrl(e,l)),m=(e,t,a)=>{const r=o();r.alert(e,n(a||r,t))},h=(e,t,a)=>{const r=o();r.confirm(e,n(a||r,t))},p=()=>{s().each(e=>{o().close(e),l(e)})};return e.on("remove",()=>{X(t,e=>{o().close(e)})}),{open:d,openUrl:u,alert:m,confirm:h,close:p}},gS=(e,t)=>{e.notificationManager.open({type:"error",text:t})},fS=(e,t)=>{e._skinLoaded?gS(e,t):e.on("SkinLoaded",()=>{gS(e,t)})},vS=(e,t)=>{fS(e,Fc.translate(["Failed to upload image: {0}",t]))},wS=(e,t,o)=>{Ff(e,t,{message:o}),console.error(o)},kS=(e,t,o)=>o?`Failed to load ${e}: ${o} from url ${t}`:`Failed to load ${e} url: ${t}`,CS=(e,t,o)=>{wS(e,"PluginLoadError",kS("plugin",t,o))},yS=(e,t,o)=>{wS(e,"IconsLoadError",kS("icons",t,o))},OS=(e,t,o)=>{wS(e,"LanguageLoadError",kS("language",t,o))},jS=(e,t,o)=>{wS(e,"ThemeLoadError",kS("theme",t,o))},xS=(e,t,o)=>{wS(e,"ModelLoadError",kS("model",t,o))},_S=(e,t,o)=>{const n=Fc.translate(["Failed to initialize plugin: {0}",t]);Ff(e,"PluginLoadError",{message:n}),VS(n,o),fS(e,n)},VS=(e,...t)=>{const o=window.console;o&&(o.error?o.error(e,...t):o.log(e,...t))},AS=e=>/^[a-z0-9\-]+$/i.test(e),NS=e=>"content/"+e+"/content.css",DS=e=>tinymce.Resource.has(NS(e)),ES=e=>SS(e,Im(e)),TS=e=>SS(e,Fm(e)),SS=(e,t)=>{const o=e.editorManager.baseURL+"/skins/content",n=e.editorManager.suffix,a=`content${n}.css`;return Z(t,t=>DS(t)?t:AS(t)&&!e.inline?`${o}/${t}/${a}`:e.documentBaseURI.toAbsolute(t))},BS=e=>{e.contentCSS=e.contentCSS.concat(ES(e),TS(e))},IS=e=>e?ve(e.getElementsByTagName("img")):[],zS=(e,t)=>{const o={},n=(n,a=$)=>{const r=oe(IS(n),t=>{const o=t.src;return!t.hasAttribute("data-mce-bogus")&&(!t.hasAttribute("data-mce-placeholder")&&(!(!o||o===to.transparentSrc)&&(ct(o,"blob:")?!e.isUploaded(o)&&a(t):!!ct(o,"data:")&&a(t))))}),i=Z(r,e=>{const n=e.src;if(Se(o,n))return o[n].then(t=>w(t)?t:{image:e,blobInfo:t.blobInfo});{const a=sA(t,n).then(t=>(delete o[n],{image:e,blobInfo:t})).catch(e=>(delete o[n],e));return o[n]=a,a}});return Promise.all(i)};return{findAll:n}},FS=()=>{const e=1,t=2;let o={};const n=(e,t)=>({status:e,resultUri:t}),a=e=>e in o,r=e=>{const t=o[e];return t?t.resultUri:null},i=t=>!!a(t)&&o[t].status===e,l=e=>!!a(e)&&o[e].status===t,s=t=>{o[t]=n(e,null)},c=(e,a)=>{o[e]=n(t,a)},d=e=>{delete o[e]},u=()=>{o={}};return{hasBlobUri:a,getResultUri:r,isPending:i,isUploaded:l,markPending:s,markUploaded:c,removeFailed:d,destroy:u}};let MS=0;const LS=()=>{const e=()=>Math.round(4294967295*Math.random()).toString(36),t=(new Date).getTime();return"s"+t.toString(36)+e()+e()+e()},PS=e=>e+MS+++LS(),RS=()=>{let e=[];const t=e=>{const t={"image/jpeg":"jpg","image/jpg":"jpg","image/gif":"gif","image/png":"png","image/apng":"apng","image/avif":"avif","image/svg+xml":"svg","image/webp":"webp","image/bmp":"bmp","image/tiff":"tiff"};return t[e.toLowerCase()]||"dat"},o=(e,t,o,a,r)=>{if(w(e)){const i=e;return n({id:i,name:a,filename:r,blob:t,base64:o})}if(k(e))return n(e);throw new Error("Unknown input type")},n=e=>{if(!e.blob||!e.base64)throw new Error("blob and base64 representations of the image are required for BlobInfo to be created");const o=e.id||PS("blobid"),n=e.name||o,a=e.blob;return{id:B(o),name:B(n),filename:B(e.filename||n+"."+t(a.type)),blob:B(a),base64:B(e.base64),blobUri:B(e.blobUri||URL.createObjectURL(a)),uri:B(e.uri)}},a=t=>{i(t.id())||e.push(t)},r=t=>ie(e,t).getOrUndefined(),i=e=>r(t=>t.id()===e),l=e=>r(t=>t.blobUri()===e),s=(e,t)=>r(o=>o.base64()===e&&o.blob().type===t),c=t=>{e=oe(e,e=>e.blobUri()!==t||(URL.revokeObjectURL(e.blobUri()),!1))},d=()=>{X(e,e=>{URL.revokeObjectURL(e.blobUri())}),e=[]};return{create:o,add:a,get:i,getByUri:l,getByData:s,findFirst:r,removeByUri:c,destroy:d}},qS=(e,t)=>{const o={},n=(e,t)=>e?e.replace(/\/$/,"")+"/"+t.replace(/^\//,""):t,a=(e,o)=>new Promise((a,r)=>{const i=new XMLHttpRequest;i.open("POST",t.url),i.withCredentials=t.credentials,i.upload.onprogress=e=>{o(e.loaded/e.total*100)},i.onerror=()=>{r("Image upload failed due to a XHR Transport error. Code: "+i.status)},i.onload=()=>{if(i.status<200||i.status>=300)return void r("HTTP Error: "+i.status);const e=JSON.parse(i.responseText);e&&w(e.location)?a(n(t.basePath,e.location)):r("Invalid JSON: "+i.responseText)};const l=new FormData;l.append("file",e.blob(),e.filename()),i.send(l)}),r=A(t.handler)?t.handler:a,i=()=>new Promise(e=>{e([])}),l=(e,t)=>({url:t,blobInfo:e,status:!0}),s=(e,t)=>({url:"",blobInfo:e,status:!1,error:t}),c=(e,t)=>{ho.each(o[e],e=>{e(t)}),delete o[e]},d=(t,o,n)=>(e.markPending(t.blobUri()),new Promise(a=>{let r,i;try{const d=()=>{r&&(r.close(),i=E)},u=o=>{d(),e.markUploaded(t.blobUri(),o),c(t.blobUri(),l(t,o)),a(l(t,o))},m=o=>{d(),e.removeFailed(t.blobUri()),c(t.blobUri(),s(t,o)),a(s(t,o))};i=e=>{e<0||e>100||U.from(r).orThunk(()=>U.from(n).map(P)).each(t=>{r=t,t.progressBar.value(e)})},o(t,i).then(u,e=>{m(w(e)?{message:e}:e)})}catch(d){a(s(t,d))}})),u=e=>e===a,m=e=>{const t=e.blobUri();return new Promise(e=>{o[t]=o[t]||[],o[t].push(e)})},h=(t,o)=>(t=ho.grep(t,t=>!e.isUploaded(t.blobUri())),Promise.all(ho.map(t,t=>e.isPending(t.blobUri())?m(t):d(t,r,o)))),p=(e,o)=>!t.url&&u(r)?i():h(e,o);return{upload:p}},$S=e=>()=>e.notificationManager.open({text:e.translate("Image uploading..."),type:"info",timeout:-1,progressBar:!0}),US=(e,t)=>qS(t,{url:xm(e),basePath:_m(e),credentials:Vm(e),handler:Am(e)}),HS=e=>{const t=FS(),o=US(e,t);return{upload:(t,n=!0)=>o.upload(t,n?$S(e):void 0)}},WS=(e,t)=>e.dom.isEmpty(t.dom)&&V(e.schema.getTextBlockElements()[So(t)]),GS=e=>t=>{WS(e,t)&&Va(t,fn.fromHtml('<br data-mce-bogus="1" />'))},KS=e=>{const t=RS();let o,n;const a=FS(),r=[],i=t=>o=>e.selection?t(o):[],l=e=>e+(-1===e.indexOf("?")?"?":"&")+(new Date).getTime(),s=(e,t,o)=>{let n=0;do{n=e.indexOf(t,n),-1!==n&&(e=e.substring(0,n)+o+e.substr(n+t.length),n+=o.length-t.length+1)}while(-1!==n);return e},c=(e,t,o)=>{const n=`src="${o}"${o===to.transparentSrc?' data-mce-placeholder="1"':""}`;return e=s(e,`src="${t}"`,n),e=s(e,'data-mce-src="'+t+'"','data-mce-src="'+o+'"'),e},d=(t,o)=>{X(e.undoManager.data,e=>{"fragmented"===e.type?e.fragments=Z(e.fragments,e=>c(e,t,o)):e.content=c(e.content,t,o)})},u=(t,o)=>{const n=e.convertURL(o,"src");d(t.src,o),Ho(fn.fromDom(t),{src:Cm(e)?l(o):o,"data-mce-src":n})},m=()=>(o||(o=US(e,a)),g().then(i(n=>{const a=Z(n,e=>e.blobInfo);return o.upload(a,$S(e)).then(i(o=>{const a=[];let r=!1;const i=Z(o,(o,i)=>{const{blobInfo:l,image:s}=n[i];let c=!1;return o.status&&ym(e)?(o.url&&!st(s.src,o.url)&&(r=!0),t.removeByUri(s.src),bE(e)||u(s,o.url)):o.error&&(o.error.remove&&(d(s.src,to.transparentSrc),a.push(s),c=!0),vS(e,o.error.message)),{element:s,status:o.status,uploadUri:o.url,blobInfo:l,removed:c}});return a.length>0&&!bE(e)?e.undoManager.transact(()=>{X(Ia(a),o=>{const n=Nn(o);Ta(o),n.each(GS(e)),t.removeByUri(o.dom.src)})}):r&&e.undoManager.dispatchChange(),i}))}))),h=()=>km(e)?m():Promise.resolve([]),p=e=>de(r,t=>t(e)),b=e=>{r.push(e)},g=()=>(n||(n=zS(a,t)),n.findAll(e.getBody(),p).then(i(t=>{const o=oe(t,t=>w(t)?(fS(e,t),!1):"blob"!==t.uriType);return bE(e)||X(o,e=>{d(e.image.src,e.blobInfo.blobUri()),e.image.src=e.blobInfo.blobUri(),e.image.removeAttribute("data-mce-src")}),o}))),f=()=>{t.destroy(),a.destroy(),n=o=null},v=o=>o.replace(/src="(blob:[^"]+)"/g,(o,n)=>{const r=a.getResultUri(n);if(r)return'src="'+r+'"';let i=t.getByUri(n);if(i||(i=ae(e.editorManager.get(),(e,t)=>e||t.editorUpload&&t.editorUpload.blobCache.getByUri(n),void 0)),i){const e=i.blob();return'src="data:'+e.type+";base64,"+i.base64()+'"'}return o});return e.on("SetContent",()=>{km(e)?h():g()}),e.on("RawSaveContent",e=>{e.content=v(e.content)}),e.on("GetContent",e=>{e.source_view||"raw"===e.format||"tree"===e.format||(e.content=v(e.content))}),e.on("PostRender",()=>{e.parser.addNodeFilter("img",e=>{X(e,e=>{const o=e.attr("src");if(!o||t.getByUri(o))return;const n=a.getResultUri(o);n&&e.attr("src",n)})})}),{blobCache:t,addFilter:b,uploadImages:m,uploadImagesAuto:h,scanForImages:g,destroy:f}},YS=e=>{const t=e.dom,o=e.schema.type,n={valigntop:[{selector:"td,th",styles:{verticalAlign:"top"}}],valignmiddle:[{selector:"td,th",styles:{verticalAlign:"middle"}}],valignbottom:[{selector:"td,th",styles:{verticalAlign:"bottom"}}],alignleft:[{selector:"figure.image",collapsed:!1,classes:"align-left",ceFalseOverride:!0,preview:"font-family font-size"},{selector:"figure,p,h1,h2,h3,h4,h5,h6,td,th,tr,div,ul,ol,li,pre",styles:{textAlign:"left"},inherit:!1,preview:!1},{selector:"img,audio,video",collapsed:!1,styles:{float:"left"},preview:"font-family font-size"},{selector:"table",collapsed:!1,styles:{marginLeft:"0px",marginRight:"auto"},onformat:e=>{t.setStyle(e,"float",null)},preview:"font-family font-size"},{selector:".mce-preview-object,[data-ephox-embed-iri]",ceFalseOverride:!0,styles:{float:"left"}}],aligncenter:[{selector:"figure,p,h1,h2,h3,h4,h5,h6,td,th,tr,div,ul,ol,li,pre",styles:{textAlign:"center"},inherit:!1,preview:"font-family font-size"},{selector:"figure.image",collapsed:!1,classes:"align-center",ceFalseOverride:!0,preview:"font-family font-size"},{selector:"img,audio,video",collapsed:!1,styles:{display:"block",marginLeft:"auto",marginRight:"auto"},preview:!1},{selector:"table",collapsed:!1,styles:{marginLeft:"auto",marginRight:"auto"},preview:"font-family font-size"},{selector:".mce-preview-object",ceFalseOverride:!0,styles:{display:"table",marginLeft:"auto",marginRight:"auto"},preview:!1},{selector:"[data-ephox-embed-iri]",ceFalseOverride:!0,styles:{marginLeft:"auto",marginRight:"auto"},preview:!1}],alignright:[{selector:"figure.image",collapsed:!1,classes:"align-right",ceFalseOverride:!0,preview:"font-family font-size"},{selector:"figure,p,h1,h2,h3,h4,h5,h6,td,th,tr,div,ul,ol,li,pre",styles:{textAlign:"right"},inherit:!1,preview:"font-family font-size"},{selector:"img,audio,video",collapsed:!1,styles:{float:"right"},preview:"font-family font-size"},{selector:"table",collapsed:!1,styles:{marginRight:"0px",marginLeft:"auto"},onformat:e=>{t.setStyle(e,"float",null)},preview:"font-family font-size"},{selector:".mce-preview-object,[data-ephox-embed-iri]",ceFalseOverride:!0,styles:{float:"right"},preview:!1}],alignjustify:[{selector:"figure,p,h1,h2,h3,h4,h5,h6,td,th,tr,div,ul,ol,li,pre",styles:{textAlign:"justify"},inherit:!1,preview:"font-family font-size"}],bold:[{inline:"strong",remove:"all",preserve_attributes:["class","style"]},{inline:"span",styles:{fontWeight:"bold"}},{inline:"b",remove:"all",preserve_attributes:["class","style"]}],italic:[{inline:"em",remove:"all",preserve_attributes:["class","style"]},{inline:"span",styles:{fontStyle:"italic"}},{inline:"i",remove:"all",preserve_attributes:["class","style"]}],underline:[{inline:"span",styles:{textDecoration:"underline"},exact:!0},{inline:"u",remove:"all",preserve_attributes:["class","style"]}],strikethrough:(()=>{const e={inline:"span",styles:{textDecoration:"line-through"},exact:!0},t={inline:"strike",remove:"all",preserve_attributes:["class","style"]},n={inline:"s",remove:"all",preserve_attributes:["class","style"]};return"html4"!==o?[n,e,t]:[e,n,t]})(),forecolor:{inline:"span",styles:{color:"%value"},links:!0,remove_similar:!0,clear_child_styles:!0},hilitecolor:{inline:"span",styles:{backgroundColor:"%value"},links:!0,remove_similar:!0,clear_child_styles:!0},fontname:{inline:"span",toggle:!1,styles:{fontFamily:"%value"},clear_child_styles:!0},fontsize:{inline:"span",toggle:!1,styles:{fontSize:"%value"},clear_child_styles:!0},lineheight:{selector:"h1,h2,h3,h4,h5,h6,p,li,td,th,div",styles:{lineHeight:"%value"}},fontsize_class:{inline:"span",attributes:{class:"%value"}},blockquote:{block:"blockquote",wrapper:!0,remove:"all"},subscript:{inline:"sub"},superscript:{inline:"sup"},code:{inline:"code"},link:{inline:"a",selector:"a",remove:"all",split:!0,deep:!0,onmatch:(e,t,o)=>dr(e)&&e.hasAttribute("href"),onformat:(e,o,n)=>{ho.each(n,(o,n)=>{t.setAttrib(e,n,o)})}},lang:{inline:"span",clear_child_styles:!0,remove_similar:!0,attributes:{lang:"%value","data-mce-lang":e=>{var t;return null!==(t=null===e||void 0===e?void 0:e.customValue)&&void 0!==t?t:null}}},removeformat:[{selector:"b,strong,em,i,font,u,strike,s,sub,sup,dfn,code,samp,kbd,var,cite,mark,q,del,ins,small",remove:"all",split:!0,expand:!1,block_expand:!0,deep:!0},{selector:"span",attributes:["style","class"],remove:"empty",split:!0,expand:!1,deep:!0},{selector:"*",attributes:["style","class"],split:!1,expand:!1,deep:!0}]};return ho.each("p h1 h2 h3 h4 h5 h6 div address pre dt dd samp".split(/\s/),e=>{n[e]={block:e,remove:"all"}}),n},QS={remove_similar:!0,inherit:!1},JS={selector:"td,th",...QS},ZS={tablecellbackgroundcolor:{styles:{backgroundColor:"%value"},...JS},tablecellverticalalign:{styles:{"vertical-align":"%value"},...JS},tablecellbordercolor:{styles:{borderColor:"%value"},...JS},tablecellclass:{classes:["%value"],...JS},tableclass:{selector:"table",classes:["%value"],...QS},tablecellborderstyle:{styles:{borderStyle:"%value"},...JS},tablecellborderwidth:{styles:{borderWidth:"%value"},...JS}},XS=B(ZS),eB=e=>{const t={},o=e=>V(e)?t[e]:t,n=e=>Se(t,e),a=(e,o)=>{e&&(w(e)?(y(o)||(o=[o]),X(o,e=>{x(e.deep)&&(e.deep=!$g(e)),x(e.split)&&(e.split=!$g(e)||Ug(e)),x(e.remove)&&$g(e)&&!Ug(e)&&(e.remove="none"),$g(e)&&Ug(e)&&(e.mixed=!0,e.block_expand=!0),w(e.classes)&&(e.classes=e.classes.split(/\s+/))}),t[e]=o):Oe(e,(e,t)=>{a(t,e)}))},r=e=>(e&&t[e]&&delete t[e],t);return a(YS(e)),a(XS()),a(Qm(e)),{get:o,has:n,register:a,unregister:r}},tB=ho.each,oB=gc.DOM,nB=e=>V(e)&&k(e),aB=(e,t)=>{const o=t&&t.schema||Ts({}),n=(e,t)=>{t.classes.length>0&&oB.addClass(e,t.classes.join(" ")),oB.setAttribs(e,t.attrs)},a=e=>{const t=w(e)?{name:e,classes:[],attrs:{}}:e,o=oB.create(t.name);return n(o,t),o},r=(e,t)=>{const n=o.getElementRule(e.nodeName.toLowerCase()),a=null===n||void 0===n?void 0:n.parentsRequired;return!(!a||!a.length)&&(t&&Q(a,t)?t:a[0])},i=(e,t,o)=>{let n;const l=t[0],s=nB(l)?l.name:void 0,c=r(e,s);if(c)s===c?(n=l,t=t.slice(1)):n=c;else if(l)n=l,t=t.slice(1);else if(!o)return e;const d=n?a(n):oB.create("div");d.appendChild(e),o&&ho.each(o,t=>{const o=a(t);d.insertBefore(o,e)});const u=nB(n)?n.siblings:void 0;return i(d,t,u)},l=oB.create("div");if(e.length>0){const t=e[0],o=a(t),n=nB(t)?t.siblings:void 0;l.appendChild(i(o,e.slice(1),n))}return l},rB=e=>{e=ho.trim(e);let t="div";const o={name:t,classes:[],attrs:{},selector:e};return"*"!==e&&(t=e.replace(/(?:([#\.]|::?)([\w\-]+)|(\[)([^\]]+)\]?)/g,(e,t,n,a,r)=>{switch(t){case"#":o.attrs.id=n;break;case".":o.classes.push(n);break;case":":-1!==ho.inArray("checked disabled enabled read-only required".split(" "),n)&&(o.attrs[n]=n);break}if("["===a){const e=r.match(/([\w\-]+)(?:\=\"([^\"]+))?/);e&&(o.attrs[e[1]]=e[2])}return""})),o.name=t||"div",o},iB=e=>w(e)?(e=e.split(/\s*,\s*/)[0],e=e.replace(/\s*(~\+|~|\+|>)\s*/g,"$1"),ho.map(e.split(/(?:>|\s+(?![^\[\]]+\]))/),e=>{const t=ho.map(e.split(/(?:~\+|~|\+)/),rB),o=t.pop();return t.length&&(o.siblings=t),o}).reverse()):[],lB=(e,t)=>{let o="",n=Jm(e);if(""===n)return"";const a=e=>w(e)?e.replace(/%(\w+)/g,""):"",r=(t,o)=>oB.getStyle(null!==o&&void 0!==o?o:e.getBody(),t,!0);if(w(t)){const o=e.formatter.get(t);if(!o)return"";t=o[0]}if("preview"in t){const e=t.preview;if(!1===e)return"";n=e||n}let i,l=t.block||t.inline||"span";const s=iB(t.selector);s.length>0?(s[0].name||(s[0].name=l),l=t.selector,i=aB(s,e)):i=aB([l],e);const c=oB.select(l,i)[0]||i.firstChild;tB(t.styles,(e,t)=>{const o=a(e);o&&oB.setStyle(c,t,o)}),tB(t.attributes,(e,t)=>{const o=a(e);o&&oB.setAttrib(c,t,o)}),tB(t.classes,e=>{const t=a(e);oB.hasClass(c,t)||oB.addClass(c,t)}),e.dispatch("PreviewFormats"),oB.setStyles(i,{position:"absolute",left:-65535}),e.getBody().appendChild(i);const d=r("fontSize"),u=/px$/.test(d)?parseInt(d,10):0;return tB(n.split(" "),e=>{let t=r(e,c);if(("background-color"!==e||!/transparent|rgba\s*\([^)]+,\s*0\)/.test(t)||(t=r(e),"#ffffff"!==$s(t).toLowerCase()))&&("color"!==e||"#000000"!==$s(t).toLowerCase())){if("font-size"===e&&/em|%$/.test(t)){if(0===u)return;const e=parseFloat(t)/(/%$/.test(t)?100:1);t=e*u+"px"}"border"===e&&t&&(o+="padding:0 2px;"),o+=e+":"+t+";"}}),e.dispatch("AfterPreviewFormats"),oB.remove(i),o},sB=e=>{e.addShortcut("meta+b","","Bold"),e.addShortcut("meta+i","","Italic"),e.addShortcut("meta+u","","Underline");for(let t=1;t<=6;t++)e.addShortcut("access+"+t,"",["FormatBlock",!1,"h"+t]);e.addShortcut("access+7","",["FormatBlock",!1,"p"]),e.addShortcut("access+8","",["FormatBlock",!1,"div"]),e.addShortcut("access+9","",["FormatBlock",!1,"address"])},cB=e=>{const t=eB(e),o=Oc({});return sB(e),O_(e),bE(e)||SV(o,e),{get:t.get,has:t.has,register:t.register,unregister:t.unregister,apply:(t,o,n)=>{zE(e,t,o,n)},remove:(t,o,n,a)=>{FE(e,t,o,n,a)},toggle:(t,o,n)=>{ME(e,t,o,n)},match:(t,o,n,a)=>EE(e,t,o,n,a),closest:t=>IE(e,t),matchAll:(t,o)=>TE(e,t,o),matchNode:(t,o,n,a)=>SE(e,t,o,n,a),canApply:t=>BE(e,t),formatChanged:(t,n,a,r)=>LE(e,o,t,n,a,r),getCssText:F(lB,e)}},dB=e=>{switch(e.toLowerCase()){case"undo":case"redo":case"mcefocus":return!0;default:return!1}},uB=(e,t,o)=>{const n=Oc(!1),a=e=>{JD(t,!1,o),t.add({},e)};e.on("init",()=>{t.add()}),e.on("BeforeExecCommand",e=>{const n=e.command;dB(n)||(ZD(t,o),t.beforeChange())}),e.on("ExecCommand",e=>{const t=e.command;dB(t)||a(e)}),e.on("ObjectResizeStart cut",()=>{t.beforeChange()}),e.on("SaveContent ObjectResized blur",a),e.on("dragend",a),e.on("keyup",o=>{const r=o.keyCode;if(o.isDefaultPrevented())return;const i=to.os.isMacOS()&&"Meta"===o.key;(r>=33&&r<=36||r>=37&&r<=40||45===r||o.ctrlKey||i)&&(a(),e.nodeChanged()),46!==r&&8!==r||e.nodeChanged(),n.get()&&t.typing&&!YD($D(e),t.data[0])&&(e.isDirty()||e.setDirty(!0),e.dispatch("TypingUndo"),n.set(!1),e.nodeChanged())}),e.on("keydown",e=>{const r=e.keyCode;if(e.isDefaultPrevented())return;if(r>=33&&r<=36||r>=37&&r<=40||45===r)return void(t.typing&&a(e));const i=e.ctrlKey&&!e.altKey||e.metaKey;if((r<16||r>20)&&224!==r&&91!==r&&!t.typing&&!i)return t.beforeChange(),JD(t,!0,o),t.add({},e),void n.set(!0);const l=to.os.isMacOS()?e.metaKey:e.ctrlKey&&!e.altKey;l&&t.beforeChange()}),e.on("mousedown",e=>{t.typing&&a(e)});const r=e=>"insertReplacementText"===e.inputType,i=e=>"insertText"===e.inputType&&null===e.data,l=e=>"insertFromPaste"===e.inputType||"insertFromDrop"===e.inputType;e.on("input",e=>{e.inputType&&(r(e)||i(e)||l(e))&&a(e)}),e.on("AddUndo Undo Redo ClearUndos",t=>{t.isDefaultPrevented()||e.nodeChanged()})},mB=e=>{e.addShortcut("meta+z","","Undo"),e.addShortcut("meta+y,meta+shift+z","","Redo")},hB=e=>{const t=Rc(),o=Oc(0),n=Oc(0),a={data:[],typing:!1,beforeChange:()=>{kE(e,o,t)},add:(r,i)=>CE(e,a,n,o,t,r,i),dispatchChange:()=>{e.setDirty(!0);const t=$D(e);t.bookmark=Iu(e.selection),e.dispatch("change",{level:t,lastLevel:be(a.data,n.get()).getOrUndefined()})},undo:()=>yE(e,a,o,n),redo:()=>OE(e,n,a.data),clear:()=>{jE(e,a,n)},reset:()=>{xE(e,a)},hasUndo:()=>_E(e,a,n),hasRedo:()=>VE(e,a,n),transact:t=>AE(e,a,o,t),ignore:t=>{NE(e,o,t)},extra:(t,o)=>{DE(e,a,n,t,o)}};return bE(e)||uB(e,a,o),mB(e),a},pB=[9,27,Jf.HOME,Jf.END,19,20,44,144,145,33,34,45,16,17,18,91,92,93,Jf.DOWN,Jf.UP,Jf.LEFT,Jf.RIGHT].concat(to.browser.isFirefox()?[224]:[]),bB="data-mce-placeholder",gB=e=>"keydown"===e.type||"keyup"===e.type,fB=e=>{const t=e.keyCode;return t===Jf.BACKSPACE||t===Jf.DELETE},vB=e=>{if(gB(e)){const t=e.keyCode;return!fB(e)&&(Jf.metaKeyPressed(e)||e.altKey||t>=112&&t<=123||Q(pB,t))}return!1},wB=e=>gB(e)&&!(fB(e)||"keyup"===e.type&&229===e.keyCode),kB=(e,t,o)=>{if(dl(fn.fromDom(t),!1)){const n=t.firstElementChild;return!n||!e.getStyle(t.firstElementChild,"padding-left")&&!e.getStyle(t.firstElementChild,"padding-right")&&o===n.nodeName.toLowerCase()}return!1},CB=e=>{var t;const o=e.dom,n=hm(e),a=null!==(t=qm(e))&&void 0!==t?t:"",r=(t,i)=>{if(vB(t))return;const l=e.getBody(),s=!wB(t)&&kB(o,l,n),c=""!==o.getAttrib(l,bB);(c!==s||i)&&(o.setAttrib(l,bB,s?a:null),o.setAttrib(l,"aria-placeholder",s?a:null),zf(e,s),e.on(s?"keydown":"keyup",r),e.off(s?"keyup":"keydown",r))};bt(a)&&e.on("init",t=>{r(t,!0),e.on("change SetContent ExecCommand",r),e.on("paste",t=>nk.setEditorTimeout(e,()=>r(t)))})},yB=(e,t)=>({block:e,position:t}),OB=(e,t)=>({from:e,to:t}),jB=(e,t)=>{const o=fn.fromDom(e),n=fn.fromDom(t.container());return AO(o,n).map(e=>yB(e,t))},xB=e=>!On(e.from.block,e.to.block),_B=(e,t)=>{const o=t=>On(t,e),n=e=>li(e)||Er(e.dom);return na(t,n,o).filter(Mo).getOr(e)},VB=(e,t)=>{const o=fn.fromDom(e);return On(_B(o,t.from.block),_B(o,t.to.block))},AB=e=>!1===Tr(e.from.block.dom)&&!1===Tr(e.to.block.dom),NB=e=>{const t=e=>ni(e)||Al(e.dom);return t(e.from.block)&&t(e.to.block)},DB=(e,t,o)=>Nr(o.position.getNode())&&!dl(o.block)?yb(!1,o.block.dom).bind(n=>n.isEqual(o.position)?wb(t,e,n).bind(t=>jB(e,t)):U.some(o)).getOr(o):o,EB=(e,t,o)=>{const n=jB(e,tu.fromRangeStart(o)),a=n.bind(o=>wb(t,e,o.position).bind(o=>jB(e,o).map(o=>DB(e,t,o))));return fo(n,a,OB).filter(t=>xB(t)&&VB(e,t)&&AB(t)&&NB(t))},TB=(e,t,o)=>o.collapsed?EB(e,t,o):U.none(),SB=(e,t)=>{const o=Fn(e);return le(o,e=>t.isBlock(So(e))).fold(B(o),e=>o.slice(0,e))},BB=(e,t)=>{const o=SB(e,t);return X(o,Ta),o},IB=(e,t)=>{const o=XC(t,e);return ie(o.reverse(),e=>dl(e)).each(Ta)},zB=e=>0===oe(In(e),e=>!dl(e)).length,FB=(e,t,o,n,a)=>{if(dl(o))return mi(o),xb(o.dom);zB(a)&&dl(t)&&ja(a,fn.fromTag("br"));const r=jb(o.dom,tu.before(a.dom));return X(BB(t,n),e=>{ja(a,e)}),IB(e,t),r},MB=(e,t)=>e.isInline(So(t)),LB=(e,t,o,n)=>{if(dl(o)){if(dl(t)){const e=e=>{const t=(e,o)=>Ln(e).fold(()=>o,e=>MB(n,e)?t(e,o.concat(dd(e))):o);return t(e,[])},a=ne(e(o),(e,t)=>(Aa(e,t),t),ui());Ea(t),Va(t,a)}return Ta(o),xb(t.dom)}const a=_b(o.dom);return X(BB(t,n),e=>{Va(o,e)}),IB(e,t),a},PB=(e,t)=>{const o=XC(t,e);return U.from(o[o.length-1])},RB=(e,t)=>jn(t,e)?PB(t,e):U.none(),qB=(e,t)=>{yb(e,t.dom).bind(e=>U.from(e.getNode())).map(fn.fromDom).filter(oi).each(Ta)},$B=(e,t,o,n)=>(qB(!0,t),qB(!1,o),RB(t,o).fold(F(LB,e,t,o,n),F(FB,e,t,o,n))),UB=(e,t,o,n,a)=>t?$B(e,n,o,a):$B(e,o,n,a),HB=(e,t)=>{const o=fn.fromDom(e.getBody()),n=TB(o.dom,t,e.selection.getRng()).map(n=>()=>{UB(o,t,n.from.block,n.to.block,e.schema).each(t=>{e.selection.setRng(t.toRange())})});return n},WB=(e,t,o)=>{const n=t.getRng();return fo(AO(e,fn.fromDom(n.startContainer)),AO(e,fn.fromDom(n.endContainer)),(a,r)=>On(a,r)?U.none():U.some(()=>{n.deleteContents(),UB(e,!0,a,r,o).each(e=>{t.setRng(e.toRange())})})).getOr(U.none())},GB=(e,t)=>{const o=fn.fromDom(t),n=F(On,e);return oa(o,li,n).isSome()},KB=(e,t)=>GB(e,t.startContainer)||GB(e,t.endContainer),YB=(e,t)=>{const o=jb(e.dom,tu.fromRangeStart(t)).isNone(),n=Ob(e.dom,tu.fromRangeEnd(t)).isNone();return!KB(e,t)&&o&&n},QB=e=>U.some(()=>{e.setContent(""),e.selection.setCursorLocation()}),JB=e=>{const t=fn.fromDom(e.getBody()),o=e.selection.getRng();return YB(t,o)?QB(e):WB(t,e.selection,e.schema)},ZB=(e,t)=>e.selection.isCollapsed()?U.none():JB(e),XB=(e,t,o,n,a)=>U.from(t._selectionOverrides.showCaret(e,o,n,a)),eI=e=>{const t=e.ownerDocument.createRange();return t.selectNode(e),t},tI=(e,t)=>{const o=e.dispatch("BeforeObjectSelected",{target:t});return o.isDefaultPrevented()?U.none():U.some(eI(t))},oI=(e,t,o)=>{const n=Hp(1,e.getBody(),t),a=tu.fromRangeStart(n),r=a.getNode();if(Cp(r))return XB(1,e,r,!a.isAtEnd(),!1);const i=a.getNode(!0);if(Cp(i))return XB(1,e,i,!1,!1);const l=Bj(e.dom.getRoot(),a.getNode());return Cp(l)?XB(1,e,l,!1,o):U.none()},nI=(e,t,o)=>t.collapsed?oI(e,t,o).getOr(t):t,aI=e=>KC(e)||UC(e),rI=e=>YC(e)||HC(e),iI=(e,t)=>{Or(t)&&0===t.data.length&&e.remove(t)},lI=(e,t,o,n,a,r)=>{XB(n,e,r.getNode(!a),a,!0).each(o=>{if(t.collapsed){const e=t.cloneRange();a?e.setEnd(o.startContainer,o.startOffset):e.setStart(o.endContainer,o.endOffset),e.deleteContents()}else t.deleteContents();e.selection.setRng(o)}),iI(e.dom,o)},sI=(e,t)=>{const o=e.selection.getRng();if(!Or(o.commonAncestorContainer))return U.none();const n=t?Zp.Forwards:Zp.Backwards,a=ub(e.getBody()),r=F(Qp,t?a.next:a.prev),i=t?aI:rI,l=Gp(n,e.getBody(),o),s=r(l),c=s?wO(t,s):s;if(!c||!Jp(l,c))return U.none();if(i(c))return U.some(()=>lI(e,o,l.getNode(),n,t,c));const d=r(c);return d&&i(d)&&Jp(c,d)?U.some(()=>lI(e,o,l.getNode(),n,t,d)):U.none()},cI=(e,t)=>sI(e,t),dI=(e,t)=>{const o=e.getBody();return t?xb(o).filter(KC):_b(o).filter(YC)},uI=e=>{const t=e.selection.getRng();return!t.collapsed&&(dI(e,!0).exists(e=>e.isEqual(tu.fromRangeStart(t)))||dI(e,!1).exists(e=>e.isEqual(tu.fromRangeEnd(t))))},mI=e=>V(e)&&(li(fn.fromDom(e))||ri(fn.fromDom(e))),hI=Ru.generate([{remove:["element"]},{moveToElement:["element"]},{moveToPosition:["position"]}]),pI=(e,t)=>{const o=t.getNode(!e),n=e?"after":"before";return dr(o)&&o.getAttribute("data-mce-caret")===n},bI=(e,t,o,n,a)=>{const r=t=>a.isInline(t.nodeName.toLowerCase())&&!Mp(o,n,e);return Wp(!t,o).fold(()=>Wp(t,n).fold(q,r),r)},gI=(e,t,o,n)=>{const a=n.getNode(!t);return AO(fn.fromDom(e),fn.fromDom(o.getNode())).map(e=>dl(e)?hI.remove(e.dom):hI.moveToElement(a)).orThunk(()=>U.some(hI.moveToElement(a)))},fI=(e,t,o,n)=>wb(t,e,o).bind(a=>mI(a.getNode())||bI(e,t,o,a,n)?U.none():t&&Tr(a.getNode())||!t&&Tr(a.getNode(!0))?gI(e,t,o,a):t&&YC(o)||!t&&KC(o)?U.some(hI.moveToPosition(a)):U.none()),vI=(e,t)=>_(t)?U.none():e&&Tr(t.nextSibling)?U.some(hI.moveToElement(t.nextSibling)):!e&&Tr(t.previousSibling)?U.some(hI.moveToElement(t.previousSibling)):U.none(),wI=(e,t,o)=>o.fold(e=>U.some(hI.remove(e)),e=>U.some(hI.moveToElement(e)),o=>Mp(t,o,e)?U.none():U.some(hI.moveToPosition(o))),kI=(e,t,o,n)=>pI(t,o)?vI(t,o.getNode(!t)).orThunk(()=>fI(e,t,o,n)):fI(e,t,o,n).bind(t=>wI(e,o,t)),CI=(e,t,o,n)=>{const a=Hp(t?1:-1,e,o),r=tu.fromRangeStart(a),i=fn.fromDom(e);return!t&&YC(r)?U.some(hI.remove(r.getNode(!0))):t&&KC(r)?U.some(hI.remove(r.getNode())):!t&&KC(r)&&my(i,r,n)?hy(i,r,n).map(e=>hI.remove(e.getNode())):t&&YC(r)&&uy(i,r,n)?py(i,r,n).map(e=>hI.remove(e.getNode())):kI(e,t,r,n)},yI=(e,t)=>o=>(e._selectionOverrides.hideFakeCaret(),dO(e,t,fn.fromDom(o)),!0),OI=(e,t)=>o=>{const n=t?tu.before(o):tu.after(o);return e.selection.setRng(n.toRange()),!0},jI=e=>t=>(e.selection.setRng(t.toRange()),!0),xI=(e,t)=>U.from(Bj(e.getBody(),t)),_I=(e,t)=>{const o=e.selection.getNode();return xI(e,o).filter(Tr).fold(()=>CI(e.getBody(),t,e.selection.getRng(),e.schema).map(o=>()=>o.fold(yI(e,t),OI(e,t),jI(e))),()=>U.some(E))},VI=e=>{X(rr(e,".mce-offscreen-selection"),Ta)},AI=(e,t)=>{const o=e.selection.getNode();if(Tr(o)&&!Sr(o)){const n=xI(e,o.parentNode).filter(Tr);return n.fold(()=>U.some(()=>{VI(fn.fromDom(e.getBody())),dO(e,t,fn.fromDom(e.selection.getNode())),NO(e)}),()=>U.some(E))}return uI(e)?U.some(()=>{TO(e,e.selection.getRng(),fn.fromDom(e.getBody()))}):U.none()},NI=e=>{const t=e.dom,o=e.selection,n=Bj(e.getBody(),o.getNode());if(Er(n)&&t.isBlock(n)&&t.isEmpty(n)){const e=t.create("br",{"data-mce-bogus":"1"});t.setHTML(n,""),n.appendChild(e),o.setRng(tu.before(e).toRange())}return!0},DI=(e,t)=>e.selection.isCollapsed()?_I(e,t):AI(e,t),EI=(e,t)=>{const o=tu.fromRangeStart(e.selection.getRng());return wb(t,e.getBody(),o).filter(e=>t?qC(e):$C(e)).bind(e=>Lp(t?0:-1,e)).map(t=>()=>e.selection.select(t))},TI=(e,t)=>e.selection.isCollapsed()?EI(e,t):U.none(),SI=Or,BI=e=>SI(e)&&e.data[0]===pi,II=e=>SI(e)&&e.data[e.data.length-1]===pi,zI=e=>{var t;const o=null!==(t=e.ownerDocument)&&void 0!==t?t:document;return o.createTextNode(pi)},FI=e=>{var t;if(SI(e.previousSibling))return II(e.previousSibling)||e.previousSibling.appendData(pi),e.previousSibling;if(SI(e))return BI(e)||e.insertData(0,pi),e;{const o=zI(e);return null===(t=e.parentNode)||void 0===t||t.insertBefore(o,e),o}},MI=e=>{var t,o;if(SI(e.nextSibling))return BI(e.nextSibling)||e.nextSibling.insertData(0,pi),e.nextSibling;if(SI(e))return II(e)||e.appendData(pi),e;{const n=zI(e);return e.nextSibling?null===(t=e.parentNode)||void 0===t||t.insertBefore(n,e.nextSibling):null===(o=e.parentNode)||void 0===o||o.appendChild(n),n}},LI=(e,t)=>e?FI(t):MI(t),PI=F(LI,!0),RI=F(LI,!1),qI=(e,t)=>Or(e.container())?LI(t,e.container()):LI(t,e.getNode()),$I=(e,t)=>{const o=t.get();return o&&e.container()===o&&Ci(o)},UI=(e,t)=>t.fold(t=>{mp(e.get());const o=PI(t);return e.set(o),U.some(tu(o,o.length-1))},t=>xb(t).map(t=>{if($I(t,e)){const t=e.get();return tu(t,1)}{mp(e.get());const o=qI(t,!0);return e.set(o),tu(o,1)}}),t=>_b(t).map(t=>{if($I(t,e)){const t=e.get();return tu(t,t.length-1)}{mp(e.get());const o=qI(t,!1);return e.set(o),tu(o,o.length-1)}}),t=>{mp(e.get());const o=RI(t);return e.set(o),U.some(tu(o,1))}),HI=(e,t)=>{for(let o=0;o<e.length;o++){const n=e[o].apply(null,t);if(n.isSome())return n}return U.none()},WI=Ru.generate([{before:["element"]},{start:["element"]},{end:["element"]},{after:["element"]}]),GI=(e,t)=>{const o=Fp(t,e);return o||e},KI=(e,t,o)=>{const n=kO(o),a=GI(t,n.container());return gO(e,a,n).fold(()=>Ob(a,n).bind(F(gO,e,a)).map(e=>WI.before(e)),U.none)},YI=(e,t)=>null===Nb(e,t),QI=(e,t,o)=>gO(e,t,o).filter(F(YI,t)),JI=(e,t,o)=>{const n=CO(o);return QI(e,t,n).bind(e=>{const t=jb(e,n);return t.isNone()?U.some(WI.start(e)):U.none()})},ZI=(e,t,o)=>{const n=kO(o);return QI(e,t,n).bind(e=>{const t=Ob(e,n);return t.isNone()?U.some(WI.end(e)):U.none()})},XI=(e,t,o)=>{const n=CO(o),a=GI(t,n.container());return gO(e,a,n).fold(()=>jb(a,n).bind(F(gO,e,a)).map(e=>WI.after(e)),U.none)},ez=e=>!pO(oz(e)),tz=(e,t,o)=>{const n=HI([KI,JI,ZI,XI],[e,t,o]);return n.filter(ez)},oz=e=>e.fold(I,I,I,I),nz=e=>e.fold(B("before"),B("start"),B("end"),B("after")),az=e=>e.fold(WI.before,WI.before,WI.after,WI.after),rz=e=>e.fold(WI.start,WI.start,WI.end,WI.end),iz=(e,t)=>nz(e)===nz(t)&&oz(e)===oz(t),lz=(e,t,o,n,a,r)=>fo(gO(t,o,n),gO(t,o,a),(t,n)=>t!==n&&fO(o,t,n)?WI.after(e?t:n):r).getOr(r),sz=(e,t)=>e.fold($,e=>!iz(e,t)),cz=(e,t,o,n,a)=>{const r=wO(e,a),i=wb(e,o,r).map(F(wO,e)),l=i.fold(()=>n.map(az),a=>tz(t,o,a).map(F(lz,e,t,o,r,a)).filter(F(sz,n)));return l.filter(ez)},dz=(e,t)=>e?t.fold(T(U.some,WI.start),U.none,T(U.some,WI.after),U.none):t.fold(U.none,T(U.some,WI.before),U.none,T(U.some,WI.end)),uz=(e,t,o,n)=>{const a=wO(e,n),r=tz(t,o,a);return tz(t,o,a).bind(F(dz,e)).orThunk(()=>cz(e,t,o,r,n))},mz=e=>A(e.selection.getSel().modify),hz=(e,t,o)=>{const n=e?1:-1;return t.setRng(tu(o.container(),o.offset()+n).toRange()),t.getSel().modify("move",e?"forward":"backward","word"),!0},pz=(e,t)=>{const o=t.selection.getRng(),n=e?tu.fromRangeEnd(o):tu.fromRangeStart(o);return!!mz(t)&&(e&&xi(n)?hz(!0,t.selection,n):!(e||!_i(n))&&hz(!1,t.selection,n))};var bz;(function(e){e[e["Br"]=0]="Br",e[e["Block"]=1]="Block",e[e["Wrap"]=2]="Wrap",e[e["Eol"]=3]="Eol"})(bz||(bz={}));const gz=(e,t)=>e===Zp.Backwards?ue(t):t,fz=(e,t,o)=>e===Zp.Forwards?t.next(o):t.prev(o),vz=(e,t,o,n)=>Nr(n.getNode(t===Zp.Forwards))?bz.Br:!1===Mp(o,n)?bz.Block:bz.Wrap,wz=(e,t,o,n)=>{const a=ub(o);let r=n;const i=[];while(r){const n=fz(t,a,r);if(!n)break;if(Nr(n.getNode(!1)))return t===Zp.Forwards?{positions:gz(t,i).concat([n]),breakType:bz.Br,breakAt:U.some(n)}:{positions:gz(t,i),breakType:bz.Br,breakAt:U.some(n)};if(n.isVisible()){if(e(r,n)){const e=vz(o,t,r,n);return{positions:gz(t,i),breakType:e,breakAt:U.some(n)}}i.push(n),r=n}else r=n}return{positions:gz(t,i),breakType:bz.Eol,breakAt:U.none()}},kz=(e,t,o,n)=>t(o,n).breakAt.map(n=>{const a=t(o,n).positions;return e===Zp.Backwards?a.concat(n):[n].concat(a)}).getOr([]),Cz=(e,t)=>ae(e,(e,o)=>e.fold(()=>U.some(o),n=>fo(ge(n.getClientRects()),ge(o.getClientRects()),(e,a)=>{const r=Math.abs(t-e.left),i=Math.abs(t-a.left);return i<=r?o:n}).or(e)),U.none()),yz=(e,t)=>ge(t.getClientRects()).bind(t=>Cz(e,t.left)),Oz=F(wz,tu.isAbove,-1),jz=F(wz,tu.isBelow,1),xz=F(kz,-1,Oz),_z=F(kz,1,jz),Vz=(e,t)=>Oz(e,t).breakAt.isNone(),Az=(e,t)=>jz(e,t).breakAt.isNone(),Nz=e=>xb(e).map(t=>[t].concat(jz(e,t).positions)).getOr([]),Dz=e=>_b(e).map(t=>Oz(e,t).positions.concat(t)).getOr([]),Ez=(e,t)=>yz(xz(e,t),t),Tz=(e,t)=>yz(_z(e,t),t),Sz=Tr,Bz=(e,t)=>Math.abs(e.left-t),Iz=(e,t)=>Math.abs(e.right-t),zz=e=>Be(e,"node"),Fz=(e,t)=>Ue(e,(e,o)=>{const n=Math.min(Bz(e,t),Iz(e,t)),a=Math.min(Bz(o,t),Iz(o,t));return a===n&&zz(o)&&Sz(o.node)||a<n?o:e}),Mz=e=>{const t=t=>Z(t,t=>{const o=fd(t);return o.node=e,o});if(dr(e))return t(e.getClientRects());if(Or(e)){const o=e.ownerDocument.createRange();return o.setStart(e,0),o.setEnd(e,e.data.length),t(o.getClientRects())}return[]},Lz=e=>ce(e,Mz);var Pz;(function(e){e[e["Up"]=-1]="Up",e[e["Down"]=1]="Down"})(Pz||(Pz={}));const Rz=(e,t,o,n)=>{let a=n;while(a=Ip(a,e,Gi,t))if(o(a))return},qz=(e,t,o,n,a,r)=>{let i=0;const l=[],s=n=>{let r=Lz([n]);-1===e&&(r=r.reverse());for(let e=0;e<r.length;e++){const n=r[e];if(!o(n,c)){if(l.length>0&&t(n,We(l))&&i++,n.line=i,a(n))return!0;l.push(n)}}return!1},c=We(r.getClientRects());if(!c)return l;const d=r.getNode();return d&&(s(d),Rz(e,n,s,d)),l},$z=(e,t)=>t.line>e,Uz=(e,t)=>t.line===e,Hz=F(qz,Pz.Up,Cd,yd),Wz=F(qz,Pz.Down,yd,Cd),Gz=e=>We(e.getClientRects()),Kz=(e,t,o,n)=>{const a=ub(t);let r,i,l,s;const c=[];let d=0;1===e?(r=a.next,i=yd,l=Cd,s=tu.after(n)):(r=a.prev,i=Cd,l=yd,s=tu.before(n));const u=Gz(s);do{if(!s.isVisible())continue;const e=Gz(s);if(l(e,u))continue;c.length>0&&i(e,We(c))&&d++;const t=fd(e);if(t.position=s,t.line=d,o(t))return c;c.push(t)}while(s=r(s));return c},Yz=e=>t=>$z(e,t),Qz=e=>t=>Uz(e,t),Jz=(e,t)=>{e.selection.setRng(t),Iw(e,e.selection.getRng())},Zz=(e,t,o)=>U.some(nI(e,t,o)),Xz=(e,t,o,n,a,r)=>{const i=t===Zp.Forwards,l=ub(e.getBody()),s=F(Qp,i?l.next:l.prev),c=i?n:a;if(!o.collapsed){const n=Ad(o);if(r(n))return XB(t,e,n,t===Zp.Backwards,!1);if(uI(e)){const e=o.cloneRange();return e.collapse(t===Zp.Backwards),U.from(e)}}const d=Gp(t,e.getBody(),o);if(c(d))return tI(e,d.getNode(!i));let u=s(d);const m=Ti(o);if(!u)return m?U.some(o):U.none();if(u=wO(i,u),c(u))return XB(t,e,u.getNode(!i),i,!1);const h=s(u);return h&&c(h)&&Jp(u,h)?XB(t,e,h.getNode(!i),i,!1):m?Zz(e,u.toRange(),!1):U.none()},eF=(e,t,o,n,a,r)=>{const i=Gp(t,e.getBody(),o),l=We(i.getClientRects()),s=t===Pz.Down,c=e.getBody();if(!l)return U.none();if(uI(e)){const e=s?tu.fromRangeEnd(o):tu.fromRangeStart(o),t=s?Tz:Ez;return t(c,e).orThunk(()=>U.from(e)).map(e=>e.toRange())}const d=s?Wz:Hz,u=d(c,Yz(1),i),m=oe(u,Qz(1)),h=l.left,p=Fz(m,h);if(p&&r(p.node)){const o=Math.abs(h-p.left),n=Math.abs(h-p.right);return XB(t,e,p.node,o<n,!1)}let b;if(b=n(i)?i.getNode():a(i)?i.getNode(!0):Ad(o),b){const o=Kz(t,c,Yz(1),b);let n=Fz(oe(o,Qz(1)),h);if(n)return Zz(e,n.position.toRange(),!1);if(n=We(oe(o,Qz(0))),n)return Zz(e,n.position.toRange(),!1)}return 0===m.length?tF(e,s).filter(s?a:n).map(t=>nI(e,t.toRange(),!1)):U.none()},tF=(e,t)=>{const o=e.selection.getRng(),n=t?tu.fromRangeEnd(o):tu.fromRangeStart(o),a=zp(n.container(),e.getBody());if(t){const e=jz(a,n);return fe(e.positions)}{const e=Oz(a,n);return ge(e.positions)}},oF=(e,t,o)=>tF(e,t).filter(o).exists(t=>(e.selection.setRng(t.toRange()),!0)),nF=(e,t)=>{const o=e.dom.createRng();o.setStart(t.container(),t.offset()),o.setEnd(t.container(),t.offset()),e.selection.setRng(o)},aF=(e,t)=>{e?t.setAttribute("data-mce-selected","inline-boundary"):t.removeAttribute("data-mce-selected")},rF=(e,t,o)=>UI(t,o).map(t=>(nF(e,t),o)),iF=(e,t,o)=>{const n=tu.fromRangeStart(e);if(e.collapsed)return n;{const a=tu.fromRangeEnd(e);return o?jb(t,a).getOr(a):Ob(t,n).getOr(n)}},lF=(e,t,o)=>{const n=e.getBody(),a=iF(e.selection.getRng(),n,o),r=F(hO,e),i=uz(o,r,n,a);return i.bind(o=>rF(e,t,o))},sF=(e,t,o)=>{const n=Z(rr(fn.fromDom(t.getRoot()),'*[data-mce-selected="inline-boundary"]'),e=>e.dom),a=oe(n,e),r=oe(o,e);X(me(a,r),F(aF,!1)),X(me(r,a),F(aF,!0))},cF=(e,t)=>{const o=t.get();if(e.selection.isCollapsed()&&!e.composing&&o){const n=tu.fromRangeStart(e.selection.getRng());tu.isTextPosition(n)&&!vO(n)&&(nF(e,up(o,n)),t.set(null))}},dF=(e,t,o,n)=>{if(t.selection.isCollapsed()){const a=oe(n,e);X(a,n=>{const a=tu.fromRangeStart(t.selection.getRng());tz(e,t.getBody(),a).bind(e=>rF(t,o,e))})}},uF=(e,t,o)=>!!Ym(e)&&lF(e,t,o).isSome(),mF=(e,t,o)=>!!Ym(t)&&pz(e,t),hF=e=>{const t=Oc(null),o=F(hO,e);return e.on("NodeChange",n=>{Ym(e)&&(sF(o,e.dom,n.parents),cF(e,t),dF(o,e,t,n.parents))}),t},pF=F(mF,!0),bF=F(mF,!1),gF=(e,t,o)=>{if(Ym(e)){const n=tF(e,t).getOrThunk(()=>{const o=e.selection.getRng();return t?tu.fromRangeEnd(o):tu.fromRangeStart(o)});return tz(F(hO,e),e.getBody(),n).exists(t=>{const n=az(t);return UI(o,n).exists(t=>(nF(e,t),!0))})}return!1},fF=(e,t)=>{const o=document.createRange();return o.setStart(e.container(),e.offset()),o.setEnd(t.container(),t.offset()),o},vF=e=>fo(xb(e),_b(e),(t,o)=>{const n=wO(!0,t),a=wO(!1,o);return Ob(e,n).forall(e=>e.isEqual(a))}).getOr(!0),wF=(e,t)=>o=>UI(t,o).map(t=>()=>nF(e,t)),kF=(e,t,o,n)=>{const a=e.getBody(),r=F(hO,e);e.undoManager.ignore(()=>{e.selection.setRng(fF(o,n)),jO(e),tz(r,a,tu.fromRangeStart(e.selection.getRng())).map(rz).bind(wF(e,t)).each(R)}),e.nodeChanged()},CF=(e,t)=>{const o=Fp(t,e);return o||e},yF=(e,t,o,n)=>{const a=CF(e.getBody(),n.container()),r=F(hO,e),i=tz(r,a,n),l=i.bind(e=>o?e.fold(B(U.some(rz(e))),U.none,B(U.some(az(e))),U.none):e.fold(U.none,B(U.some(az(e))),U.none,B(U.some(rz(e)))));return l.map(wF(e,t)).getOrThunk(()=>{const l=kb(o,a,n),s=l.bind(e=>tz(r,a,e));return fo(i,s,()=>gO(r,a,n).bind(t=>vF(t)?U.some(()=>{dO(e,o,fn.fromDom(t))}):U.none())).getOrThunk(()=>s.bind(()=>l.map(a=>()=>{o?kF(e,t,n,a):kF(e,t,a,n)})))})},OF=(e,t,o)=>{if(e.selection.isCollapsed()&&Ym(e)){const n=tu.fromRangeStart(e.selection.getRng());return yF(e,t,o,n)}return U.none()},jF=e=>Rn(e)>1,xF=(e,t)=>{const o=fn.fromDom(e.getBody()),n=fn.fromDom(e.selection.getStart()),a=XC(n,o);return le(a,t).fold(B(a),e=>a.slice(0,e))},_F=e=>1===Rn(e),VF=e=>xF(e,t=>e.schema.isBlock(So(t))||jF(t)),AF=e=>xF(e,t=>e.schema.isBlock(So(t))),NF=(e,t)=>{const o=F(V_,e);return ce(t,e=>o(e)?[e.dom]:[])},DF=e=>{const t=AF(e);return NF(e,t)},EF=(e,t,o,n)=>{const a=NF(t,n);if(0===a.length)dO(t,e,o);else{const e=x_(o.dom,a);t.selection.setRng(e.toRange())}},TF=(e,t)=>{const o=oe(VF(e),_F);return fe(o).bind(n=>{const a=tu.fromRangeStart(e.selection.getRng());return DO(t,a,n.dom)&&!Yg(n)?U.some(()=>EF(t,e,n,o)):U.none()})},SF=(e,t)=>{const o=t.parentElement;return Nr(t)&&!O(o)&&e.dom.isEmpty(o)},BF=e=>Yg(fn.fromDom(e)),IF=(e,t)=>{const o=e.selection.getStart(),n=SF(e,o)||BF(o)?x_(o,t):__(e.selection.getRng(),t);e.selection.setRng(n.toRange())},zF=(e,t)=>{const o=me(t,DF(e));o.length>0&&IF(e,o)},FF=e=>Or(e.startContainer),MF=e=>0===e.startOffset&&FF(e),LF=(e,t)=>{const o=t.startContainer.parentElement;return!O(o)&&V_(e,fn.fromDom(o))},PF=e=>{const t=e.startContainer.parentNode,o=e.endContainer.parentNode;return!O(t)&&!O(o)&&t.isEqualNode(o)},RF=e=>{const t=e.endContainer;return e.endOffset===(Or(t)?t.length:t.childNodes.length)},qF=e=>PF(e)&&RF(e),$F=e=>!e.endContainer.isEqualNode(e.commonAncestorContainer),UF=e=>qF(e)||$F(e),HF=e=>{const t=e.selection.getRng();return MF(t)&&LF(e,t)&&UF(t)},WF=e=>{if(HF(e)){const t=DF(e);return U.some(()=>{jO(e),zF(e,t)})}return U.none()},GF=(e,t)=>e.selection.isCollapsed()?TF(e,t):WF(e),KF=(e,t)=>SO(e,e=>Ab(e.dom),e=>t.isBlock(So(e))),YF=e=>KF(fn.fromDom(e.selection.getStart()),e.schema),QF=e=>{const t=e.selection.getRng();return t.collapsed&&(FF(t)||e.dom.isEmpty(t.startContainer))&&!YF(e)},JF=e=>(QF(e)&&IF(e,[]),!0),ZF=(e,t,o)=>V(o)?U.some(()=>{e._selectionOverrides.hideFakeCaret(),dO(e,t,fn.fromDom(o))}):U.none(),XF=(e,t)=>{const o=t?UC:HC,n=t?Zp.Forwards:Zp.Backwards,a=Gp(n,e.getBody(),e.selection.getRng());return o(a)?ZF(e,t,a.getNode(!t)):U.from(wO(t,a)).filter(e=>o(e)&&Jp(a,e)).bind(o=>ZF(e,t,o.getNode(!t)))},eM=(e,t)=>{const o=e.selection.getNode();return Ir(o)?ZF(e,t,o):U.none()},tM=(e,t)=>e.selection.isCollapsed()?XF(e,t):eM(e,t),oM=e=>na(e,e=>Er(e.dom)||Tr(e.dom)).exists(e=>Er(e.dom)),nM=e=>vt(null!==e&&void 0!==e?e:"").getOr(0),aM=(e,t)=>{const o=e||ti(t)?"margin":"padding",n="rtl"===va(t,"direction")?"-right":"-left";return o+n},rM=(e,t,o,n,a,r)=>{const i=aM(o,fn.fromDom(r)),l=nM(e.getStyle(r,i));if("outdent"===t){const t=Math.max(0,l-n);e.setStyle(r,i,t?t+a:"")}else{const t=l+n+a;e.setStyle(r,i,t)}},iM=(e,t)=>de(t,t=>{const o=aM(Sm(e),t),n=ka(t,o).map(nM).getOr(0),a=e.dom.getContentEditable(t.dom);return"false"!==a&&n>0}),lM=e=>{const t=dM(e);return!e.mode.isReadOnly()&&(t.length>1||iM(e,t))},sM=e=>ai(e)||ri(e),cM=e=>Nn(e).exists(sM),dM=e=>oe(Ia(e.selection.getSelectedBlocks()),e=>!sM(e)&&!cM(e)&&oM(e)),uM=(e,t)=>{var o,n;const{dom:a}=e,r=Bm(e),i=null!==(n=null===(o=/[a-z%]+$/i.exec(r))||void 0===o?void 0:o[0])&&void 0!==n?n:"px",l=nM(r),s=Sm(e);X(dM(e),e=>{rM(a,t,s,l,i,e.dom)})},mM=e=>uM(e,"indent"),hM=e=>uM(e,"outdent"),pM=e=>{if(e.selection.isCollapsed()&&lM(e)){const t=e.dom,o=e.selection.getRng(),n=tu.fromRangeStart(o),a=t.getParent(o.startContainer,t.isBlock);if(null!==a&&ry(fn.fromDom(a),n,e.schema))return U.some(()=>hM(e))}return U.none()},bM=(e,t,o)=>we([pM,DI,cI,(e,o)=>OF(e,t,o),HB,Sj,TI,tM,ZB,GF],t=>t(e,o)).filter(t=>e.selection.isEditable()),gM=(e,t)=>{const o=bM(e,t,!1);o.fold(()=>{e.selection.isEditable()&&(jO(e),NO(e))},R)},fM=(e,t)=>{const o=bM(e,t,!0);o.fold(()=>{e.selection.isEditable()&&xO(e)},R)},vM=(e,t)=>{e.addCommand("delete",()=>{gM(e,t)}),e.addCommand("forwardDelete",()=>{fM(e,t)})},wM=5,kM=400,CM=e=>void 0===e.touches||1!==e.touches.length?U.none():U.some(e.touches[0]),yM=(e,t)=>{const o=Math.abs(e.clientX-t.x),n=Math.abs(e.clientY-t.y);return o>wM||n>wM},OM=e=>{const t=Rc(),o=Oc(!1),n=$c(t=>{e.dispatch("longpress",{...t,type:"longpress"}),o.set(!0)},kM);e.on("touchstart",e=>{CM(e).each(a=>{n.cancel();const r={x:a.clientX,y:a.clientY,target:e.target};n.throttle(e),o.set(!1),t.set(r)})},!0),e.on("touchmove",a=>{n.cancel(),CM(a).each(n=>{t.on(a=>{yM(n,a)&&(t.clear(),o.set(!1),e.dispatch("longpresscancel"))})})},!0),e.on("touchend touchcancel",a=>{n.cancel(),"touchcancel"!==a.type&&t.get().filter(e=>e.target.isEqualNode(a.target)).each(()=>{o.get()?a.preventDefault():e.dispatch("tap",{...a,type:"tap"})})},!0)},jM=(e,t)=>Se(e,t.nodeName),xM=(e,t)=>!!Or(t)||!!dr(t)&&(!jM(e.getBlockElements(),t)&&!Jb(t)&&!El(e,t)&&!ml(t)),_M=(e,t,o)=>J(ZC(fn.fromDom(o),fn.fromDom(t)),t=>jM(e,t.dom)),VM=(e,t)=>{if(Or(t)){if(0===t.data.length)return!0;if(/^\s+$/.test(t.data))return!t.nextSibling||jM(e,t.nextSibling)||ml(t.nextSibling)}return!1},AM=e=>e.dom.create(hm(e),pm(e)),NM=e=>{const t=e.dom,o=e.selection,n=e.schema,a=n.getBlockElements(),r=o.getStart(),i=e.getBody();let l,s,c=!1;const d=hm(e);if(!r||!dr(r))return;const u=i.nodeName.toLowerCase();if(!n.isValidChild(u,d.toLowerCase())||_M(a,i,r))return;const m=o.getRng(),{startContainer:h,startOffset:p,endContainer:b,endOffset:g}=m,f=Vk(e);let v=i.firstChild;while(v)if(dr(v)&&_l(n,v),xM(n,v)){if(VM(a,v)){s=v,v=v.nextSibling,t.remove(s);continue}l||(l=AM(e),i.insertBefore(l,v),c=!0),s=v,v=v.nextSibling,l.appendChild(s)}else l=null,v=v.nextSibling;c&&f&&(m.setStart(h,p),m.setEnd(b,g),o.setRng(m),e.nodeChanged())},DM=(e,t,o)=>{const n=fn.fromDom(AM(e)),a=ui();Va(n,a),o(t,n);const r=document.createRange();return r.setStartBefore(a.dom),r.setEndBefore(a.dom),r},EM=e=>{e.on("NodeChange",F(NM,e))},TM=e=>t=>-1!==(" "+t.attr("class")+" ").indexOf(e),SM=(e,t,o)=>function(n){const a=arguments,r=a[a.length-2],i=r>0?t.charAt(r-1):"";if('"'===i)return n;if(">"===i){const e=t.lastIndexOf("<",r);if(-1!==e){const o=t.substring(e,r);if(-1!==o.indexOf('contenteditable="false"'))return n}}return'<span class="'+o+'" data-mce-content="'+e.dom.encode(a[0])+'">'+e.dom.encode("string"===typeof a[1]?a[1]:a[0])+"</span>"},BM=(e,t,o)=>{let n=t.length,a=o.content;if("raw"!==o.format){while(n--)a=a.replace(t[n],SM(e,a,Mh(e)));o.content=a}},IM=(e,t)=>de(e,e=>{const o=t.match(e);return null!==o&&o[0].length===t.length}),zM=e=>{const t="contenteditable",o=" "+ho.trim(Lh(e))+" ",n=" "+ho.trim(Mh(e))+" ",a=TM(o),r=TM(n),i=Ph(e);i.length>0&&e.on("BeforeSetContent",t=>{BM(e,i,t)}),e.parser.addAttributeFilter("class",e=>{let o=e.length;while(o--){const n=e[o];a(n)?n.attr(t,"true"):r(n)&&n.attr(t,"false")}}),e.serializer.addAttributeFilter(t,e=>{let o=e.length;while(o--){const n=e[o];if(!a(n)&&!r(n))continue;const l=n.attr("data-mce-content");i.length>0&&l?IM(i,l)?(n.name="#text",n.type=3,n.raw=!0,n.value=l):n.remove():n.attr(t,null)}})},FM=e=>sa(fn.fromDom(e.getBody()),"*[data-mce-caret]").map(e=>e.dom).getOrNull(),MM=(e,t)=>{t.hasAttribute("data-mce-caret")&&(Ei(t),e.selection.setRng(e.selection.getRng()),e.selection.scrollIntoView(t))},LM=(e,t)=>{const o=FM(e);if(o)return"compositionstart"===t.type?(t.preventDefault(),t.stopPropagation(),void MM(e,o)):void(Oi(o)&&(MM(e,o),e.undoManager.add()))},PM=e=>{e.on("keyup compositionstart",F(LM,e))},RM=Tr,qM=(e,t,o)=>Xz(t,e,o,KC,YC,RM),$M=(e,t,o)=>{const n=e=>KC(e)||WC(e),a=e=>YC(e)||GC(e);return eF(t,e,o,n,a,RM)},UM=e=>{const t=e.dom.create(hm(e));return t.innerHTML='<br data-mce-bogus="1">',t},HM=(e,t,o)=>{const n=ub(e.getBody()),a=F(Qp,1===t?n.next:n.prev);if(o.collapsed){const n=e.dom.getParent(o.startContainer,"PRE");if(!n)return;const r=a(tu.fromRangeStart(o));if(!r){const o=fn.fromDom(UM(e));1===t?xa(fn.fromDom(n),o):ja(fn.fromDom(n),o),e.selection.select(o.dom,!0),e.selection.collapse()}}},WM=(e,t)=>{const o=t?Zp.Forwards:Zp.Backwards,n=e.selection.getRng();return qM(o,e,n).orThunk(()=>(HM(e,o,n),U.none()))},GM=(e,t)=>{const o=t?1:-1,n=e.selection.getRng();return $M(o,e,n).orThunk(()=>(HM(e,o,n),U.none()))},KM=(e,t)=>{const o=t?e.getEnd(!0):e.getStart(!0);return pO(o)?!t:t},YM=(e,t)=>WM(e,KM(e.selection,t)).exists(t=>(Jz(e,t),!0)),QM=(e,t)=>GM(e,t).exists(t=>(Jz(e,t),!0)),JM=(e,t)=>{const o=t?YC:KC;return oF(e,t,o)},ZM=(e,t)=>dI(e,!t).map(o=>{const n=o.toRange(),a=e.selection.getRng();return t?n.setStart(a.startContainer,a.startOffset):n.setEnd(a.endContainer,a.endOffset),n}).exists(t=>(Jz(e,t),!0)),XM=e=>Q(["figcaption"],So(e)),eL=(e,t,o)=>{const n=F(On,t);return na(fn.fromDom(e.container()),e=>o.isBlock(So(e)),n).filter(XM)},tL=(e,t,o)=>t?Az(e.dom,o):Vz(e.dom,o),oL=(e,t)=>{const o=fn.fromDom(e.getBody()),n=tu.fromRangeStart(e.selection.getRng());return eL(n,o,e.schema).exists(()=>{if(tL(o,t,n)){const n=t?Va:_a,a=DM(e,o,n);return e.selection.setRng(a),!0}return!1})},nL=(e,t)=>!!e.selection.isCollapsed()&&oL(e,t),aL=(e,t,o)=>{const n=e.selection.getRng(),a=tu.fromRangeStart(n),r=e.getBody();return!(r.firstChild!==t||!Vz(o,a))&&(e.execCommand("InsertNewBlockBefore"),!0)},rL=(e,t)=>{const o=e.selection.getRng(),n=tu.fromRangeStart(o),a=e.getBody();return!(a.lastChild!==t||!Az(t,n))&&(e.execCommand("InsertNewBlockAfter"),!0)},iL=(e,t)=>t?U.from(e.dom.getParent(e.selection.getNode(),"details")).map(t=>rL(e,t)).getOr(!1):U.from(e.dom.getParent(e.selection.getNode(),"summary")).bind(t=>U.from(e.dom.getParent(t,"details")).map(o=>aL(e,o,t))).getOr(!1),lL=(e,t)=>iL(e,t),sL={shiftKey:!1,altKey:!1,ctrlKey:!1,metaKey:!1,keyCode:0},cL=e=>Z(e,e=>({...sL,...e})),dL=e=>Z(e,e=>({...sL,...e})),uL=(e,t)=>t.keyCode===e.keyCode&&t.shiftKey===e.shiftKey&&t.altKey===e.altKey&&t.ctrlKey===e.ctrlKey&&t.metaKey===e.metaKey,mL=(e,t)=>ce(cL(e),e=>uL(e,t)?[e]:[]),hL=(e,t)=>ce(dL(e),e=>uL(e,t)?[e]:[]),pL=(e,...t)=>()=>e.apply(null,t),bL=(e,t)=>ie(mL(e,t),e=>e.action()),gL=(e,t)=>we(hL(e,t),e=>e.action()),fL=(e,t)=>{const o=t?Zp.Forwards:Zp.Backwards,n=e.selection.getRng();return Xz(e,o,n,UC,HC,Ir).exists(t=>(Jz(e,t),!0))},vL=(e,t)=>{const o=t?1:-1,n=e.selection.getRng();return eF(e,o,n,UC,HC,Ir).exists(t=>(Jz(e,t),!0))},wL=(e,t)=>{const o=t?HC:UC;return oF(e,t,o)},kL=Ru.generate([{none:["current"]},{first:["current"]},{middle:["current","target"]},{last:["current"]}]),CL=e=>kL.none(e),yL={...kL,none:CL},OL=(e,t)=>jL(e,t,$),jL=(e,t,o)=>ce(Fn(e),e=>wn(e,t)?o(e)?[e]:[]:jL(e,t,o)),xL=(e,t,o=q)=>{if(o(t))return U.none();if(Q(e,So(t)))return U.some(t);const n=e=>wn(e,"table")||o(e);return la(t,e.join(","),n)},_L=(e,t)=>xL(["td","th"],e,t),VL=e=>OL(e,"th,td"),AL=(e,t)=>ca(e,"table",t),NL=(e,t,o,n,a=$)=>{const r=1===n;if(!r&&o<=0)return yL.first(e[0]);if(r&&o>=e.length-1)return yL.last(e[e.length-1]);{const r=o+n,i=e[r];return a(i)?yL.middle(t,i):NL(e,t,r,n,a)}},DL=(e,t)=>AL(e,t).bind(t=>{const o=VL(t),n=le(o,t=>On(e,t));return n.map(e=>({index:e,all:o}))}),EL=(e,t,o)=>{const n=DL(e,o);return n.fold(()=>yL.none(e),o=>NL(o.all,e,o.index,1,t))},TL=(e,t,o)=>{const n=DL(e,o);return n.fold(()=>yL.none(),o=>NL(o.all,e,o.index,-1,t))},SL=(e,t)=>({left:e.left-t,top:e.top-t,right:e.right+2*t,bottom:e.bottom+2*t,width:e.width+t,height:e.height+t}),BL=(e,t)=>ce(t,t=>{const o=SL(fd(t.getBoundingClientRect()),-1);return[{x:o.left,y:e(o),cell:t},{x:o.right,y:e(o),cell:t}]}),IL=(e,t,o)=>ae(e,(e,n)=>e.fold(()=>U.some(n),e=>{const a=Math.sqrt(Math.abs(e.x-t)+Math.abs(e.y-o)),r=Math.sqrt(Math.abs(n.x-t)+Math.abs(n.y-o));return U.some(r<a?n:e)}),U.none()),zL=(e,t,o,n,a)=>{const r=rr(fn.fromDom(o),"td,th,caption").map(e=>e.dom),i=oe(BL(e,r),e=>t(e,a));return IL(i,n,a).map(e=>e.cell)},FL=e=>e.bottom,ML=e=>e.top,LL=(e,t)=>e.y<t,PL=(e,t)=>e.y>t,RL=F(zL,FL,LL),qL=F(zL,ML,PL),$L=(e,t)=>ge(t.getClientRects()).bind(t=>RL(e,t.left,t.top)).bind(e=>yz(Dz(e),t)),UL=(e,t)=>fe(t.getClientRects()).bind(t=>qL(e,t.left,t.top)).bind(e=>yz(Nz(e),t)),HL=(e,t,o)=>o.breakAt.exists(o=>e(t,o).breakAt.isSome()),WL=e=>e.breakType===bz.Wrap&&0===e.positions.length,GL=e=>e.breakType===bz.Br&&1===e.positions.length,KL=(e,t,o)=>{const n=e(t,o);return WL(n)||!Nr(o.getNode())&&GL(n)?!HL(e,t,n):n.breakAt.isNone()},YL=F(KL,Oz),QL=F(KL,jz),JL=(e,t,o)=>{const n=tu.fromRangeStart(t);return yb(!e,o).exists(e=>e.isEqual(n))},ZL=(e,t,o,n)=>{const a=e.selection.getRng(),r=t?1:-1;return!(!kp()||!JL(t,a,o))&&(XB(r,e,o,!t,!1).each(t=>{Jz(e,t)}),!0)},XL=(e,t,o)=>$L(t,o).orThunk(()=>ge(o.getClientRects()).bind(o=>Cz(xz(e,tu.before(t)),o.left))).getOr(tu.before(t)),eP=(e,t,o)=>UL(t,o).orThunk(()=>ge(o.getClientRects()).bind(o=>Cz(_z(e,tu.after(t)),o.left))).getOr(tu.after(t)),tP=(e,t)=>{const o=t.getNode(e);return kr(o)?U.some(o):U.none()},oP=(e,t,o)=>{t.undoManager.transact(()=>{const n=e?xa:ja,a=DM(t,fn.fromDom(o),n);Jz(t,a)})},nP=(e,t,o)=>{const n=tP(!!t,o),a=!1===t;n.fold(()=>Jz(e,o.toRange()),n=>yb(a,e.getBody()).filter(e=>e.isEqual(o)).fold(()=>Jz(e,o.toRange()),o=>oP(t,e,n)))},aP=(e,t,o,n)=>{const a=e.selection.getRng(),r=tu.fromRangeStart(a),i=e.getBody();if(!t&&YL(n,r)){const n=XL(i,o,r);return nP(e,t,n),!0}if(t&&QL(n,r)){const n=eP(i,o,r);return nP(e,t,n),!0}return!1},rP=(e,t,o)=>U.from(e.dom.getParent(e.selection.getNode(),"td,th")).bind(n=>U.from(e.dom.getParent(n,"table")).map(a=>o(e,t,a,n))).getOr(!1),iP=(e,t)=>rP(e,t,ZL),lP=(e,t)=>rP(e,t,aP),sP=e=>{const t=Iv.exact(e,0,e,0);return Rv(t)},cP=(e,t,o)=>o.fold(U.none,U.none,(e,t)=>Wk(t).map(e=>sP(e)),o=>(e.execCommand("mceTableInsertRowAfter"),dP(e,t,o))),dP=(e,t,o)=>cP(e,t,EL(o,ua)),uP=(e,t,o)=>cP(e,t,TL(o,ua)),mP=(e,t)=>{const o=["table","li","dl"],n=fn.fromDom(e.getBody()),a=e=>{const t=So(e);return On(e,n)||Q(o,t)},r=e.selection.getRng(),i=fn.fromDom(t?r.endContainer:r.startContainer);return _L(i,a).map(o=>{AL(o,a).each(t=>{e.model.table.clearSelectedCells(t.dom)}),e.selection.collapse(!t);const n=t?dP:uP,r=n(e,a,o);return r.each(t=>{e.selection.setRng(t)}),!0}).getOr(!1)},hP=(e,t,o)=>{const n=to.os.isMacOS()||to.os.isiOS();bL([{keyCode:Jf.RIGHT,action:pL(YM,e,!0)},{keyCode:Jf.LEFT,action:pL(YM,e,!1)},{keyCode:Jf.UP,action:pL(QM,e,!1)},{keyCode:Jf.DOWN,action:pL(QM,e,!0)},...n?[{keyCode:Jf.UP,action:pL(ZM,e,!1),metaKey:!0,shiftKey:!0},{keyCode:Jf.DOWN,action:pL(ZM,e,!0),metaKey:!0,shiftKey:!0}]:[],{keyCode:Jf.RIGHT,action:pL(iP,e,!0)},{keyCode:Jf.LEFT,action:pL(iP,e,!1)},{keyCode:Jf.UP,action:pL(lP,e,!1)},{keyCode:Jf.DOWN,action:pL(lP,e,!0)},{keyCode:Jf.UP,action:pL(lP,e,!1)},{keyCode:Jf.UP,action:pL(lL,e,!1)},{keyCode:Jf.DOWN,action:pL(lL,e,!0)},{keyCode:Jf.RIGHT,action:pL(fL,e,!0)},{keyCode:Jf.LEFT,action:pL(fL,e,!1)},{keyCode:Jf.UP,action:pL(vL,e,!1)},{keyCode:Jf.DOWN,action:pL(vL,e,!0)},{keyCode:Jf.RIGHT,action:pL(uF,e,t,!0)},{keyCode:Jf.LEFT,action:pL(uF,e,t,!1)},{keyCode:Jf.RIGHT,ctrlKey:!n,altKey:n,action:pL(pF,e,t)},{keyCode:Jf.LEFT,ctrlKey:!n,altKey:n,action:pL(bF,e,t)},{keyCode:Jf.UP,action:pL(nL,e,!1)},{keyCode:Jf.DOWN,action:pL(nL,e,!0)}],o).each(e=>{o.preventDefault()})},pP=(e,t)=>{e.on("keydown",o=>{o.isDefaultPrevented()||hP(e,t,o)})},bP=(e,t)=>({container:e,offset:t}),gP=gc.DOM,fP=e=>t=>e===t?-1:0,vP=e=>t=>e.isBlock(t)||Q(["BR","IMG","HR","INPUT"],t.nodeName)||"false"===e.getContentEditable(t),wP=(e,t,o)=>{if(Or(e)&&t>=0)return U.some(bP(e,t));{const n=bd(gP);return U.from(n.backwards(e,t,fP(e),o)).map(e=>bP(e.container,e.container.data.length))}},kP=(e,t,o)=>{if(Or(e)&&t>=e.length)return U.some(bP(e,t));{const n=bd(gP);return U.from(n.forwards(e,t,fP(e),o)).map(e=>bP(e.container,0))}},CP=(e,t,o)=>{if(!Or(e))return U.none();const n=e.data;if(t>=0&&t<=n.length)return U.some(bP(e,t));{const n=bd(gP);return U.from(n.backwards(e,t,fP(e),o)).bind(e=>{const n=e.container.data;return CP(e.container,t+n.length,o)})}},yP=(e,t,o)=>{if(!Or(e))return U.none();const n=e.data;if(t<=n.length)return U.some(bP(e,t));{const a=bd(gP);return U.from(a.forwards(e,t,fP(e),o)).bind(e=>yP(e.container,t-n.length,o))}},OP=(e,t,o,n,a)=>{const r=bd(e,vP(e));return U.from(r.backwards(t,o,n,a))},jP=e=>e.collapsed&&Or(e.startContainer),xP=e=>gi(e.toString().replace(/\u00A0/g," ")),_P=e=>""!==e&&-1!=="  \f\n\r\t\v".indexOf(e),VP=(e,t)=>e.substring(t.length),AP=(e,t,o)=>{let n;const a=o.charAt(0);for(n=t-1;n>=0;n--){const r=e.charAt(n);if(_P(r))return U.none();if(a===r&&st(e,o,n,t))break}return U.some(n)},NP=(e,t,o,n=0)=>{if(!jP(t))return U.none();const a={text:"",offset:0},r=(e,t,n)=>(a.text=n+a.text,a.offset+=t,AP(a.text,a.offset,o).getOr(t)),i=e.getParent(t.startContainer,e.isBlock)||e.getRoot();return OP(e,t.startContainer,t.startOffset,r,i).bind(e=>{const a=t.cloneRange();if(a.setStart(e.container,e.offset),a.setEnd(t.endContainer,t.endOffset),a.collapsed)return U.none();const r=xP(a),i=r.lastIndexOf(o);return 0!==i||VP(r,o).length<n?U.none():U.some({text:VP(r,o),range:a,trigger:o})})},DP=(e,t,o,n=0)=>Jk(fn.fromDom(t.startContainer)).fold(()=>NP(e,t,o,n),t=>{const n=e.createRng();n.selectNode(t.dom);const a=xP(n);return U.some({range:n,text:VP(a,o),trigger:o})}),EP=e=>e.nodeType===To,TP=e=>e.nodeType===Eo,SP=e=>{if(EP(e))return bP(e,e.data.length);{const t=e.childNodes;return t.length>0?SP(t[t.length-1]):bP(e,t.length)}},BP=(e,t)=>{const o=e.childNodes;return o.length>0&&t<o.length?BP(o[t],0):o.length>0&&TP(e)&&o.length===t?SP(o[o.length-1]):bP(e,t)},IP=(e,t)=>{var o;const n=null!==(o=e.getParent(t.container,e.isBlock))&&void 0!==o?o:e.getRoot();return OP(e,t.container,t.offset,(e,t)=>0===t?-1:t,n).filter(e=>{const t=e.container.data.charAt(e.offset-1);return!_P(t)}).isSome()},zP=e=>t=>{const o=BP(t.startContainer,t.startOffset);return!IP(e,o)},FP=(e,t,o)=>we(o.triggers,o=>DP(e,t,o)),MP=(e,t)=>{const o=t(),n=e.selection.getRng();return FP(e.dom,n,o).bind(o=>LP(e,t,o))},LP=(e,t,o,n={})=>{var a;const r=t(),i=e.selection.getRng(),l=null!==(a=i.startContainer.nodeValue)&&void 0!==a?a:"",s=oe(r.lookupByTrigger(o.trigger),t=>o.text.length>=t.minChars&&t.matches.getOrThunk(()=>zP(e.dom))(o.range,l,o.text));if(0===s.length)return U.none();const c=Promise.all(Z(s,e=>{const t=e.fetch(o.text,e.maxResults,n);return t.then(t=>({matchText:o.text,items:t,columns:e.columns,onAction:e.onAction,highlightOn:e.highlightOn}))}));return U.some({lookupData:c,context:o})};var PP;(function(e){e[e["Error"]=0]="Error",e[e["Value"]=1]="Value"})(PP||(PP={}));const RP=(e,t,o)=>e.stype===PP.Error?t(e.serror):o(e.svalue),qP=e=>{const t=[],o=[];return X(e,e=>{RP(e,e=>o.push(e),e=>t.push(e))}),{values:t,errors:o}},$P=(e,t)=>e.stype===PP.Error?{stype:PP.Error,serror:t(e.serror)}:e,UP=(e,t)=>e.stype===PP.Value?{stype:PP.Value,svalue:t(e.svalue)}:e,HP=(e,t)=>e.stype===PP.Value?t(e.svalue):e,WP=(e,t)=>e.stype===PP.Error?t(e.serror):e,GP=e=>({stype:PP.Value,svalue:e}),KP=e=>({stype:PP.Error,serror:e}),YP=e=>RP(e,Lu.error,Lu.value),QP=e=>e.fold(KP,GP),JP={fromResult:QP,toResult:YP,svalue:GP,partition:qP,serror:KP,bind:HP,bindError:WP,map:UP,mapError:$P,fold:RP},ZP=e=>k(e)&&Ce(e).length>100?" removed due to size":JSON.stringify(e,null,2),XP=e=>{const t=e.length>10?e.slice(0,10).concat([{path:[],getErrorInfo:B("... (only showing first ten failures)")}]):e;return Z(t,e=>"Failed path: ("+e.path.join(" > ")+")\n"+e.getErrorInfo())},eR=(e,t)=>JP.serror([{path:e,getErrorInfo:t}]),tR=(e,t,o)=>eR(e,()=>'Could not find valid *required* value for "'+t+'" in '+ZP(o)),oR=(e,t)=>eR(e,()=>'Choice schema did not contain choice key: "'+t+'"'),nR=(e,t,o)=>eR(e,()=>'The chosen schema: "'+o+'" did not exist in branches: '+ZP(t)),aR=(e,t)=>eR(e,B(t)),rR=(e,t,o,n)=>{const a=Te(o,n);return a.fold(()=>nR(e,o,n),o=>o.extract(e.concat(["branch: "+n]),t))},iR=(e,t)=>{const o=(o,n)=>{const a=Te(n,e);return a.fold(()=>oR(o,e),e=>rR(o,n,t,e))},n=()=>"chooseOn("+e+"). Possible values: "+Ce(t);return{extract:o,toString:n}},lR=(e,t)=>t,sR=(e,t)=>{const o=C(e)&&C(t);return o?dR(e,t):t},cR=e=>(...t)=>{if(0===t.length)throw new Error("Can't merge zero objects");const o={};for(let n=0;n<t.length;n++){const a=t[n];for(const t in a)Se(a,t)&&(o[t]=e(o[t],a[t]))}return o},dR=cR(sR),uR=cR(lR),mR=()=>({tag:"required",process:{}}),hR=e=>({tag:"defaultedThunk",process:e}),pR=e=>hR(B(e)),bR=()=>({tag:"option",process:{}}),gR=(e,t)=>e.length>0?JP.svalue(dR(t,uR.apply(void 0,e))):JP.svalue(t),fR=e=>T(JP.serror,se)(e),vR=(e,t)=>{const o=JP.partition(e);return o.errors.length>0?fR(o.errors):gR(o.values,t)},wR=e=>{const t=JP.partition(e);return t.errors.length>0?fR(t.errors):JP.svalue(t.values)},kR={consolidateObj:vR,consolidateArr:wR},CR=(e,t,o,n)=>({tag:"field",key:e,newKey:t,presence:o,prop:n}),yR=(e,t)=>({tag:"custom",newKey:e,instantiator:t}),OR=(e,t,o)=>{switch(e.tag){case"field":return t(e.key,e.newKey,e.presence,e.prop);case"custom":return o(e.newKey,e.instantiator)}},jR=e=>{const t=(t,o)=>JP.bindError(e(o),e=>aR(t,e)),o=B("val");return{extract:t,toString:o}},xR=jR(JP.svalue),_R=(e,t,o,n)=>Te(t,o).fold(()=>tR(e,o,t),n),VR=(e,t,o,n)=>{const a=Te(e,t).getOrThunk(()=>o(e));return n(a)},AR=(e,t,o)=>o(Te(e,t)),NR=(e,t,o,n)=>{const a=Te(e,t).map(t=>!0===t?o(e):t);return n(a)},DR=(e,t,o,n,a)=>{const r=e=>a.extract(t.concat([n]),e),i=e=>e.fold(()=>JP.svalue(U.none()),e=>{const o=a.extract(t.concat([n]),e);return JP.map(o,U.some)});switch(e.tag){case"required":return _R(t,o,n,r);case"defaultedThunk":return VR(o,n,e.process,r);case"option":return AR(o,n,i);case"defaultedOptionThunk":return NR(o,n,e.process,i);case"mergeWithThunk":return VR(o,n,B({}),t=>{const n=dR(e.process(o),t);return r(n)})}},ER=(e,t,o)=>{const n={},a=[];for(const r of o)OR(r,(o,r,i,l)=>{const s=DR(i,e,t,o,l);JP.fold(s,e=>{a.push(...e)},e=>{n[r]=e})},(e,o)=>{n[e]=o(t)});return a.length>0?JP.serror(a):JP.svalue(n)},TR=e=>{const t=(t,o)=>ER(t,o,e),o=()=>{const t=Z(e,e=>OR(e,(e,t,o,n)=>e+" -> "+n.toString(),(e,t)=>"state("+e+")"));return"obj{\n"+t.join("\n")+"}"};return{extract:t,toString:o}},SR=e=>{const t=(t,o)=>{const n=Z(o,(o,n)=>e.extract(t.concat(["["+n+"]"]),o));return kR.consolidateArr(n)},o=()=>"array("+e.toString()+")";return{extract:t,toString:o}},BR=e=>jR(t=>e(t).fold(JP.serror,JP.svalue)),IR=(e,t,o)=>{const n=t.extract([e],o);return JP.mapError(n,e=>({input:o,errors:e}))},zR=(e,t,o)=>JP.toResult(IR(e,t,o)),FR=e=>"Errors: \n"+XP(e.errors).join("\n")+"\n\nInput object: "+ZP(e.input),MR=(e,t)=>iR(e,je(t,TR)),LR=B(xR),PR=(e,t)=>jR(o=>{const n=typeof o;return e(o)?JP.svalue(o):JP.serror(`Expected type: ${t} but got: ${n}`)}),RR=PR(N,"number"),qR=PR(w,"string"),$R=PR(j,"boolean"),UR=PR(A,"function"),HR=CR,WR=yR,GR=e=>BR(t=>Q(e,t)?Lu.value(t):Lu.error(`Unsupported value: "${t}", choose one of "${e.join(", ")}".`)),KR=(e,t)=>HR(e,e,mR(),t),YR=e=>KR(e,qR),QR=e=>KR(e,UR),JR=(e,t)=>HR(e,e,mR(),SR(t)),ZR=(e,t)=>HR(e,e,bR(),t),XR=e=>ZR(e,qR),eq=e=>ZR(e,UR),tq=(e,t)=>HR(e,e,pR(t),LR()),oq=(e,t,o)=>HR(e,e,pR(t),o),nq=(e,t)=>oq(e,t,RR),aq=(e,t)=>oq(e,t,qR),rq=(e,t,o)=>oq(e,t,GR(o)),iq=(e,t)=>oq(e,t,$R),lq=(e,t)=>oq(e,t,UR),sq=(e,t,o)=>oq(e,t,SR(o)),cq=YR("type"),dq=QR("fetch"),uq=QR("onAction"),mq=lq("onSetup",()=>E),hq=XR("text"),pq=XR("icon"),bq=XR("tooltip"),gq=XR("label"),fq=iq("active",!1),vq=iq("enabled",!0),wq=iq("primary",!1),kq=e=>tq("columns",e),Cq=e=>aq("type",e),yq=TR([cq,YR("trigger"),nq("minChars",1),kq(1),nq("maxResults",10),eq("matches"),dq,uq,sq("highlightOn",[],qR)]),Oq=e=>zR("Autocompleter",yq,{trigger:e.ch,...e}),jq=[vq,bq,pq,hq,mq],xq=[fq].concat(jq),_q=[lq("predicate",q),rq("scope","node",["node","editor"]),rq("position","selection",["node","selection","line"])],Vq=jq.concat([Cq("contextformbutton"),wq,uq,WR("original",I)]),Aq=xq.concat([Cq("contextformbutton"),wq,uq,WR("original",I)]),Nq=jq.concat([Cq("contextformbutton")]),Dq=xq.concat([Cq("contextformtogglebutton")]),Eq=MR("type",{contextformbutton:Vq,contextformtogglebutton:Aq});TR([Cq("contextform"),lq("initValue",B("")),gq,JR("commands",Eq),ZR("launch",MR("type",{contextformbutton:Nq,contextformtogglebutton:Dq}))].concat(_q));const Tq=e=>{const t=e.ui.registry.getAll().popups,o=je(t,e=>Oq(e).fold(e=>{throw new Error(FR(e))},I)),n=ze(De(o,e=>e.trigger)),a=Ee(o),r=e=>oe(a,t=>t.trigger===e);return{dataset:o,triggers:n,lookupByTrigger:r}},Sq=(e,t)=>{const o=$c(t.load,50);e.on("keypress compositionend",e=>{27!==e.which&&o.throttle()}),e.on("keydown",e=>{const n=e.which;8===n?o.throttle():27===n&&t.cancelIfNecessary()}),e.on("remove",o.cancel)},Bq=e=>{const t=Rc(),o=Oc(!1),n=t.isSet,a=()=>{n()&&(GE(e),Wf(e),o.set(!1),t.clear())},r=o=>{n()||(WE(e,o.range),t.set({trigger:o.trigger,matchLength:o.text.length}))},i=Ge(()=>Tq(e)),l=o=>t.get().map(t=>DP(e.dom,e.selection.getRng(),t.trigger).bind(t=>LP(e,i,t,o))).getOrThunk(()=>MP(e,i)),s=n=>{l(n).fold(a,n=>{r(n.context),n.lookupData.then(r=>{t.get().map(i=>{const l=n.context;i.trigger===l.trigger&&(l.text.length-i.matchLength>=10?a():(t.set({...i,matchLength:l.text.length}),o.get()?Hf(e,{lookupData:r}):(o.set(!0),Uf(e,{lookupData:r}))))})})})};e.addCommand("mceAutocompleterReload",(e,t)=>{const o=k(t)?t.fetchOptions:{};s(o)}),e.addCommand("mceAutocompleterClose",a),Sq(e,{cancelIfNecessary:a,load:s})},Iq=Kt().browser,zq=Iq.isSafari(),Fq=e=>mi(fn.fromDom(e)),Mq=(e,t)=>{var o;return 0===e.startOffset&&e.endOffset===(null===(o=t.textContent)||void 0===o?void 0:o.length)},Lq=(e,t)=>U.from(e.getParent(t.container(),"details")),Pq=(e,t)=>Lq(e,t).isSome(),Rq=(e,t)=>{const o=U.from(e.getParent(t.startContainer,"details")),n=U.from(e.getParent(t.endContainer,"details"));if(o.isSome()||n.isSome()){const t=o.bind(t=>U.from(e.select("summary",t)[0]));return U.some({startSummary:t,startDetails:o,endDetails:n})}return U.none()},qq=(e,t)=>xb(t).exists(t=>t.isEqual(e)),$q=(e,t)=>_b(t).exists(o=>Nr(o.getNode())&&jb(t,o).exists(t=>t.isEqual(e))||o.isEqual(e)),Uq=(e,t)=>t.startSummary.exists(t=>qq(e,t)),Hq=(e,t)=>t.startSummary.exists(t=>$q(e,t)),Wq=(e,t)=>t.startDetails.exists(o=>jb(o,e).forall(o=>t.startSummary.exists(t=>!t.contains(e.container())&&t.contains(o.container())))),Gq=(e,t,o)=>o.startDetails.exists(o=>Ob(e,t).forall(e=>!o.contains(e.container()))),Kq=(e,t)=>{const o=t.getNode();x(o)||e.selection.setCursorLocation(o,t.offset())},Yq=(e,t,o)=>{const n=e.dom.getParent(t.container(),"details");if(n&&!n.open){const t=e.dom.select("summary",n)[0];if(t){const n=o?xb(t):_b(t);n.each(t=>Kq(e,t))}}else Kq(e,t)},Qq=(e,t)=>{const o=t=>t.contains(e.startContainer),n=t=>t.contains(e.endContainer),a=t.startSummary.exists(o),r=t.startSummary.exists(n),i=t.startDetails.forall(e=>t.endDetails.forall(t=>e!==t)),l=(a||r)&&!(a&&r);return l||i},Jq=(e,t,o)=>{const{dom:n,selection:a}=e,r=e.getBody();if("character"===o){const o=tu.fromRangeStart(a.getRng()),i=n.getParent(o.container(),n.isBlock),l=Lq(n,o),s=i&&n.isEmpty(i),c=O(null===i||void 0===i?void 0:i.previousSibling),d=O(null===i||void 0===i?void 0:i.nextSibling);if(s){const e=t?d:c;if(e){const e=kb(!t,r,o).exists(e=>Pq(n,e)&&!bo(l,Lq(n,e)));if(e)return!0}}return kb(t,r,o).fold(q,o=>{const a=Lq(n,o);if(Pq(n,o)&&!bo(l,a)){if(t||Yq(e,o,!1),i&&s){if(t&&c)return!0;if(!t&&d)return!0;Yq(e,o,t),e.dom.remove(i)}return!0}return!1})}return!1},Zq=(e,t,o,n)=>{const a=e.selection,r=a.getRng(),i=tu.fromRangeStart(r),l=e.getBody();return"selection"===n?Qq(r,t):o?Hq(i,t)||Gq(l,i,t):Uq(i,t)||Wq(i,t)},Xq=(e,t,o)=>Rq(e.dom,e.selection.getRng()).fold(()=>Jq(e,t,o),n=>Zq(e,n,t,o)||Jq(e,t,o)),e$=(e,t,o)=>{const n=e.selection,a=n.getNode(),r=n.getRng(),i=tu.fromRangeStart(r);return!!Mr(a)&&("selection"===o&&Mq(r,a)||DO(t,i,a)?Fq(a):e.undoManager.transact(()=>{const r=n.getSel();let{anchorNode:i,anchorOffset:l,focusNode:s,focusOffset:c}=null!==r&&void 0!==r?r:{};const d=()=>{V(i)&&V(l)&&V(s)&&V(c)&&(null===r||void 0===r||r.setBaseAndExtent(i,l,s,c))},u=()=>{i=null===r||void 0===r?void 0:r.anchorNode,l=null===r||void 0===r?void 0:r.anchorOffset,s=null===r||void 0===r?void 0:r.focusNode,c=null===r||void 0===r?void 0:r.focusOffset},m=(e,t)=>{X(e.childNodes,e=>{wg(e)&&t.appendChild(e)})},h=e.dom.create("span",{"data-mce-bogus":"1"});m(a,h),a.appendChild(h),d(),"word"!==o&&"line"!==o||null===r||void 0===r||r.modify("extend",t?"right":"left",o),!n.isCollapsed()&&Mq(n.getRng(),h)?Fq(a):(e.execCommand(t?"ForwardDelete":"Delete"),u(),m(h,a),d()),e.dom.remove(h)}),!0)},t$=(e,t,o)=>Xq(e,t,o)||zq&&e$(e,t,o)?U.some(E):U.none(),o$=e=>(t,o,n={})=>{const a=t.getBody(),r={bubbles:!0,composed:!0,data:null,isComposing:!1,detail:0,view:null,target:a,currentTarget:a,eventPhase:Event.AT_TARGET,originalTarget:a,explicitOriginalTarget:a,isTrusted:!1,srcElement:a,cancelable:!1,preventDefault:E,inputType:o},i=Ys(new InputEvent(e));return t.dispatch(e,{...i,...r,...n})},n$=o$("input"),a$=o$("beforeinput"),r$=Kt(),i$=r$.os,l$=i$.isMacOS()||i$.isiOS(),s$=r$.browser,c$=s$.isFirefox(),d$=(e,t,o)=>{const n=o.keyCode===Jf.BACKSPACE?"deleteContentBackward":"deleteContentForward",a=e.selection.isCollapsed(),r=a?"character":"selection",i=e=>a?e?"word":"line":"selection";gL([{keyCode:Jf.BACKSPACE,action:pL(pM,e)},{keyCode:Jf.BACKSPACE,action:pL(DI,e,!1)},{keyCode:Jf.DELETE,action:pL(DI,e,!0)},{keyCode:Jf.BACKSPACE,action:pL(cI,e,!1)},{keyCode:Jf.DELETE,action:pL(cI,e,!0)},{keyCode:Jf.BACKSPACE,action:pL(OF,e,t,!1)},{keyCode:Jf.DELETE,action:pL(OF,e,t,!0)},{keyCode:Jf.BACKSPACE,action:pL(Sj,e,!1)},{keyCode:Jf.DELETE,action:pL(Sj,e,!0)},{keyCode:Jf.BACKSPACE,action:pL(t$,e,!1,r)},{keyCode:Jf.DELETE,action:pL(t$,e,!0,r)},...l$?[{keyCode:Jf.BACKSPACE,altKey:!0,action:pL(t$,e,!1,i(!0))},{keyCode:Jf.DELETE,altKey:!0,action:pL(t$,e,!0,i(!0))},{keyCode:Jf.BACKSPACE,metaKey:!0,action:pL(t$,e,!1,i(!1))}]:[{keyCode:Jf.BACKSPACE,ctrlKey:!0,action:pL(t$,e,!1,i(!0))},{keyCode:Jf.DELETE,ctrlKey:!0,action:pL(t$,e,!0,i(!0))}],{keyCode:Jf.BACKSPACE,action:pL(TI,e,!1)},{keyCode:Jf.DELETE,action:pL(TI,e,!0)},{keyCode:Jf.BACKSPACE,action:pL(tM,e,!1)},{keyCode:Jf.DELETE,action:pL(tM,e,!0)},{keyCode:Jf.BACKSPACE,action:pL(ZB,e,!1)},{keyCode:Jf.DELETE,action:pL(ZB,e,!0)},{keyCode:Jf.BACKSPACE,action:pL(HB,e,!1)},{keyCode:Jf.DELETE,action:pL(HB,e,!0)},{keyCode:Jf.BACKSPACE,action:pL(GF,e,!1)},{keyCode:Jf.DELETE,action:pL(GF,e,!0)}],o).filter(t=>e.selection.isEditable()).each(t=>{o.preventDefault();const a=a$(e,n);a.isDefaultPrevented()||(t(),n$(e,n))})},u$=(e,t,o)=>bL([{keyCode:Jf.BACKSPACE,action:pL(NI,e)},{keyCode:Jf.DELETE,action:pL(NI,e)},...l$?[{keyCode:Jf.BACKSPACE,altKey:!0,action:pL(JF,e)},{keyCode:Jf.DELETE,altKey:!0,action:pL(JF,e)},...o?[{keyCode:c$?224:91,action:pL(JF,e)}]:[]]:[{keyCode:Jf.BACKSPACE,ctrlKey:!0,action:pL(JF,e)},{keyCode:Jf.DELETE,ctrlKey:!0,action:pL(JF,e)}]],t),m$=(e,t)=>{let o=!1;e.on("keydown",n=>{o=n.keyCode===Jf.BACKSPACE,n.isDefaultPrevented()||d$(e,t,n)}),e.on("keyup",t=>{t.isDefaultPrevented()||u$(e,t,o),o=!1})},h$=e=>{while(e){if(dr(e)||Or(e)&&e.data&&/[\r\n\s]/.test(e.data))return e;e=e.nextSibling}return null},p$=(e,t)=>{const o=e.dom,n=e.schema.getMoveCaretBeforeOnEnterElements();if(!t)return;if(/^(LI|DT|DD)$/.test(t.nodeName)){const e=h$(t.firstChild);e&&/^(UL|OL|DL)$/.test(e.nodeName)&&t.insertBefore(o.doc.createTextNode(Pr),t.firstChild)}const a=o.createRng();if(t.normalize(),t.hasChildNodes()){const e=new lr(t,t);let o,r=t;while(o=e.current()){if(Or(o)){a.setStart(o,0),a.setEnd(o,0);break}if(n[o.nodeName.toLowerCase()]){a.setStartBefore(o),a.setEndBefore(o);break}r=o,o=e.next()}o||(a.setStart(r,0),a.setEnd(r,0))}else Nr(t)?t.nextSibling&&o.isBlock(t.nextSibling)?(a.setStartBefore(t),a.setEndBefore(t)):(a.setStartAfter(t),a.setEndAfter(t)):(a.setStart(t,0),a.setEnd(t,0));e.selection.setRng(a),Iw(e,a)},b$=(e,t)=>{const o=e.getRoot();let n,a=t;while(a!==o&&a&&"false"!==e.getContentEditable(a)){if("true"===e.getContentEditable(a)){n=a;break}a=a.parentNode}return a!==o?n:o},g$=e=>U.from(e.dom.getParent(e.selection.getStart(!0),e.dom.isBlock)),f$=e=>g$(e).fold(B(""),e=>e.nodeName.toUpperCase()),v$=e=>g$(e).filter(e=>ri(fn.fromDom(e))).isSome(),w$=e=>{e.innerHTML='<br data-mce-bogus="1">'},k$=(e,t,o)=>{const n=e.dom;U.from(o.style).map(n.parseStyle).each(e=>{const o=Ca(fn.fromDom(t)),a={...o,...e};n.setStyles(t,a)});const a=U.from(o.class).map(e=>e.split(/\s+/)),r=U.from(t.className).map(e=>oe(e.split(/\s+/),e=>""!==e));fo(a,r,(e,o)=>{const a=oe(o,t=>!Q(e,t)),r=[...e,...a];n.setAttrib(t,"class",r.join(" "))});const i=["style","class"],l=Ne(o,(e,t)=>!Q(i,t));n.setAttribs(t,l)},C$=(e,t)=>{const o=hm(e);if(o.toLowerCase()===t.tagName.toLowerCase()){const o=pm(e);k$(e,t,o)}},y$=(e,t,o,n,a=!0,r,i)=>{const l=e.dom,s=e.schema,c=hm(e),d=o?o.nodeName.toUpperCase():"";let u=t;const m=s.getTextInlineElements();let h;h=r||"TABLE"===d||"HR"===d?l.create(r||c,i||{}):o.cloneNode(!1);let p=h;if(a){do{if(m[u.nodeName]){if(Ab(u)||Jb(u))continue;const e=u.cloneNode(!1);l.setAttrib(e,"id",""),h.hasChildNodes()?(e.appendChild(h.firstChild),h.appendChild(e)):(p=e,h.appendChild(e))}}while((u=u.parentNode)&&u!==n)}else l.setAttrib(h,"style",null),l.setAttrib(h,"class",null);return C$(e,h),w$(p),h},O$=(e,t)=>e.dom.getParent(t,Fr),j$=(e,t,o)=>{let n=t;while(n&&n!==e&&O(n.nextSibling)){const e=n.parentElement;if(!e||!o(e))return Fr(e);n=e}return!1},x$=(e,t,o)=>!t&&o.nodeName.toLowerCase()===hm(e)&&e.dom.isEmpty(o)&&j$(e.getBody(),o,t=>Se(e.schema.getTextBlockElements(),t.nodeName.toLowerCase())),_$=(e,t,o)=>{var n,a,r;const i=t(hm(e)),l=O$(e,o);l&&(e.dom.insertAfter(i,l),p$(e,i),(null!==(r=null===(a=null===(n=o.parentElement)||void 0===n?void 0:n.childNodes)||void 0===a?void 0:a.length)&&void 0!==r?r:0)>1&&e.dom.remove(o))},V$=(e,t)=>e.firstChild&&e.firstChild.nodeName===t,A$=e=>{var t;return(null===(t=e.parentNode)||void 0===t?void 0:t.firstChild)===e},N$=(e,t)=>{const o=null===e||void 0===e?void 0:e.parentNode;return V(o)&&o.nodeName===t},D$=e=>V(e)&&/^(OL|UL|LI)$/.test(e.nodeName),E$=e=>V(e)&&/^(LI|DT|DD)$/.test(e.nodeName),T$=e=>D$(e)&&D$(e.parentNode),S$=e=>{const t=e.parentNode;return E$(t)?t:e},B$=(e,t,o)=>{let n=e[o?"firstChild":"lastChild"];while(n){if(dr(n))break;n=n[o?"nextSibling":"previousSibling"]}return n===t},I$=e=>ae(De(Ca(fn.fromDom(e)),(e,t)=>`${t}: ${e};`),(e,t)=>e+t,""),z$=(e,t,o,n,a)=>{const r=e.dom,i=e.selection.getRng(),l=o.parentNode;if(o===e.getBody()||!l)return;T$(o)&&(a="LI");const s=E$(n)?I$(n):void 0;let c=E$(n)&&s?t(a,{style:I$(n)}):t(a);if(B$(o,n,!0)&&B$(o,n,!1))if(N$(o,"LI")){const e=S$(o);r.insertAfter(c,e),A$(o)?r.remove(e):r.remove(o)}else r.replace(c,o);else if(B$(o,n,!0))N$(o,"LI")?(r.insertAfter(c,S$(o)),c.appendChild(r.doc.createTextNode(" ")),c.appendChild(o)):l.insertBefore(c,o),r.remove(n);else if(B$(o,n,!1))r.insertAfter(c,S$(o)),r.remove(n);else{o=S$(o);const e=i.cloneRange();e.setStartAfter(n),e.setEndAfter(o);const t=e.extractContents();if("LI"===a&&V$(t,"LI")){const e=oe(Z(c.children,fn.fromDom),M(qo("br")));c=t.firstChild,r.insertAfter(t,o),X(e,e=>_a(fn.fromDom(c),e)),s&&c.setAttribute("style",s)}else r.insertAfter(t,o),r.insertAfter(c,o);r.remove(n)}p$(e,c)},F$=e=>{X(ar(fn.fromDom(e),Lo),e=>{const t=e.dom;t.nodeValue=gi(t.data)})},M$=(e,t)=>{const o=e.dom.getParent(t,"ol,ul,dl");return null!==o&&"false"===e.dom.getContentEditableParent(o)},L$=(e,t)=>t&&"A"===t.nodeName&&e.isEmpty(t),P$=(e,t)=>e.nodeName===t||e.previousSibling&&e.previousSibling.nodeName===t,R$=(e,t)=>V(t)&&e.isBlock(t)&&!/^(TD|TH|CAPTION|FORM)$/.test(t.nodeName)&&!/^(fixed|absolute)/i.test(t.style.position)&&e.isEditable(t.parentNode)&&"false"!==e.getContentEditable(t),q$=(e,t,o)=>{var n;const a=[];if(!o)return;let r=o;while(r=r.firstChild){if(e.isBlock(r))return;dr(r)&&!t[r.nodeName.toLowerCase()]&&a.push(r)}let i=a.length;while(i--)r=a[i],(!r.hasChildNodes()||r.firstChild===r.lastChild&&""===(null===(n=r.firstChild)||void 0===n?void 0:n.nodeValue)||L$(e,r))&&e.remove(r)},$$=(e,t,o)=>Or(t)?e?1===o&&t.data.charAt(o-1)===pi?0:o:o===t.data.length-1&&t.data.charAt(o)===pi?t.data.length:o:o,U$=e=>{const t=e.cloneRange();return t.setStart(e.startContainer,$$(!0,e.startContainer,e.startOffset)),t.setEnd(e.endContainer,$$(!1,e.endContainer,e.endOffset)),t},H$=e=>{let t=e;do{Or(t)&&(t.data=t.data.replace(/^[\r\n]+/,"")),t=t.firstChild}while(t)},W$=(e,t,o,n,a)=>{var r,i;const l=e.dom,s=null!==(r=b$(l,n))&&void 0!==r?r:l.getRoot();let c=l.getParent(n,l.isBlock);if(!c||!R$(l,c)){if(c=c||s,!c.hasChildNodes()){const n=l.create(t);return C$(e,n),c.appendChild(n),o.setStart(n,0),o.setEnd(n,0),n}let r,d=n;while(d&&d.parentNode!==c)d=d.parentNode;while(d&&!l.isBlock(d))r=d,d=d.previousSibling;const u=null===(i=null===r||void 0===r?void 0:r.parentElement)||void 0===i?void 0:i.nodeName;if(r&&u&&e.schema.isValidChild(u,t.toLowerCase())){const i=r.parentNode,s=l.create(t);C$(e,s),i.insertBefore(s,r),d=r;while(d&&!l.isBlock(d)){const e=d.nextSibling;s.appendChild(d),d=e}o.setStart(n,a),o.setEnd(n,a)}}return n},G$=(e,t)=>{t.normalize();const o=t.lastChild;(!o||dr(o)&&/^(left|right)$/gi.test(e.getStyle(o,"float",!0)))&&e.add(t,"br")},K$=(e,t)=>{const o=wm(e);return!_(t)&&(w(o)?Q(ho.explode(o),t.nodeName.toLowerCase()):o)},Y$=(e,t)=>{let o,n,a,r,i=!1;const l=e.dom,s=e.schema,c=s.getNonEmptyElements(),d=e.selection.getRng(),u=hm(e),m=fn.fromDom(d.startContainer),h=Mn(m,d.startOffset),p=h.exists(e=>Fo(e)&&!ua(e)),b=d.collapsed&&p,g=(t,n)=>y$(e,o,y,C,vm(e),t,n),f=e=>{const t=$$(e,o,n);if(Or(o)&&(e?t>0:t<o.data.length))return!1;if(o.parentNode===y&&i&&!e)return!0;if(e&&dr(o)&&o===y.firstChild)return!0;if(P$(o,"TABLE")||P$(o,"HR"))return i&&!e||!i&&e;const a=new lr(o,y);let r;Or(o)&&(e&&0===t?a.prev():e||t!==o.data.length||a.next());while(r=a.current()){if(dr(r)){if(!r.getAttribute("data-mce-bogus")){const e=r.nodeName.toLowerCase();if(c[e]&&"br"!==e)return!1}}else if(Or(r)&&!Yi(r.data))return!1;e?a.prev():a.next()}return!0},v=()=>{let t;return t=/^(H[1-6]|PRE|FIGURE)$/.test(a)&&"HGROUP"!==O?g(u):g(),K$(e,r)&&R$(l,r)&&l.isEmpty(y,void 0,{includeZwsp:!0})?t=l.split(r,y):l.insertAfter(t,y),p$(e,t),t};ew(l,d).each(e=>{d.setStart(e.startContainer,e.startOffset),d.setEnd(e.endContainer,e.endOffset)}),o=d.startContainer,n=d.startOffset;const w=!(!t||!t.shiftKey),k=!(!t||!t.ctrlKey);dr(o)&&o.hasChildNodes()&&!b&&(i=n>o.childNodes.length-1,o=o.childNodes[Math.min(n,o.childNodes.length-1)]||o,n=i&&Or(o)?o.data.length:0);const C=b$(l,o);if(!C||M$(e,o))return;w||(o=W$(e,u,d,o,n));let y=l.getParent(o,l.isBlock)||l.getRoot();r=V(null===y||void 0===y?void 0:y.parentNode)?l.getParent(y.parentNode,l.isBlock):null,a=y?y.nodeName.toUpperCase():"";const O=r?r.nodeName.toUpperCase():"";if("LI"===O&&!k){const e=r;y=e,r=e.parentNode,a=O}if(dr(r)&&x$(e,w,y))return _$(e,g,y);if(/^(LI|DT|DD)$/.test(a)&&dr(r)&&l.isEmpty(y))return void z$(e,g,r,y,u);if(!b&&(y===e.getBody()||!R$(l,y)))return;const j=y.parentNode;let x;if(b)x=g(u),h.fold(()=>{Va(m,fn.fromDom(x))},e=>{ja(e,fn.fromDom(x))}),e.selection.setCursorLocation(x,0);else if(ki(y))x=Ei(y),l.isEmpty(y)&&w$(y),C$(e,x),p$(e,x);else if(f(!1))x=v();else if(f(!0)&&j){x=j.insertBefore(g(),y);const t=qn(fn.fromDom(d.startContainer))&&d.collapsed;p$(e,P$(y,"HR")||t?x:y)}else{const t=U$(d).cloneRange();t.setEndAfter(y);const o=t.extractContents();F$(o),H$(o),x=o.firstChild,l.insertAfter(o,y),q$(l,c,x),G$(l,y),l.isEmpty(y)&&w$(y),x.normalize(),l.isEmpty(x)?(l.remove(x),v()):(C$(e,x),p$(e,x))}l.setAttrib(x,"id",""),e.dispatch("NewBlock",{newBlock:x})},Q$="insertParagraph",J$={insert:Y$,fakeEventName:Q$},Z$=(e,t,o)=>{const n=new lr(t,o);let a;const r=e.getNonEmptyElements();while(a=n.next())if(r[a.nodeName.toLowerCase()]||Or(a)&&a.length>0)return!0;return!1},X$=(e,t,o)=>{const n=e.dom.createRng();o?(n.setStartBefore(t),n.setEndBefore(t)):(n.setStartAfter(t),n.setEndAfter(t)),e.selection.setRng(n),Iw(e,n)},eU=(e,t)=>{const o=e.selection,n=e.dom,a=o.getRng();let r,i=!1;ew(n,a).each(e=>{a.setStart(e.startContainer,e.startOffset),a.setEnd(e.endContainer,e.endOffset)});let l=a.startOffset,s=a.startContainer;if(dr(s)&&s.hasChildNodes()){const e=l>s.childNodes.length-1;s=s.childNodes[Math.min(l,s.childNodes.length-1)]||s,l=e&&Or(s)?s.data.length:0}let c=n.getParent(s,n.isBlock);const d=c&&c.parentNode?n.getParent(c.parentNode,n.isBlock):null,u=d?d.nodeName.toUpperCase():"",m=!(!t||!t.ctrlKey);"LI"!==u||m||(c=d),Or(s)&&l>=s.data.length&&(Z$(e.schema,s,c||n.getRoot())||(r=n.create("br"),a.insertNode(r),a.setStartAfter(r),a.setEndAfter(r),i=!0)),r=n.create("br"),ru(n,a,r),X$(e,r,i),e.undoManager.add()},tU=(e,t)=>{const o=fn.fromTag("br");ja(fn.fromDom(t),o),e.undoManager.add()},oU=(e,t)=>{aU(e.getBody(),t)||xa(fn.fromDom(t),fn.fromTag("br"));const o=fn.fromTag("br");xa(fn.fromDom(t),o),X$(e,o.dom,!1),e.undoManager.add()},nU=e=>Nr(e.getNode()),aU=(e,t)=>!!nU(tu.after(t))||Ob(e,tu.after(t)).map(e=>Nr(e.getNode())).getOr(!1),rU=e=>e&&"A"===e.nodeName&&"href"in e,iU=e=>e.fold(q,rU,rU,q),lU=e=>{const t=F(hO,e),o=tu.fromRangeStart(e.selection.getRng());return tz(t,e.getBody(),o).filter(iU)},sU=(e,t)=>{t.fold(E,F(tU,e),F(oU,e),E)},cU=(e,t)=>{const o=lU(e);o.isSome()?o.each(F(sU,e)):eU(e,t)},dU="insertLineBreak",uU={insert:cU,fakeEventName:dU},mU=(e,t)=>g$(e).filter(e=>t.length>0&&wn(fn.fromDom(e),t)).isSome(),hU=e=>mU(e,gm(e)),pU=e=>mU(e,fm(e)),bU=Ru.generate([{br:[]},{block:[]},{none:[]}]),gU=(e,t)=>pU(e),fU=e=>(t,o)=>v$(t)===e,vU=(e,t)=>(o,n)=>{const a=f$(o)===e.toUpperCase();return a===t},wU=e=>{const t=b$(e.dom,e.selection.getStart());return _(t)},kU=e=>vU("pre",e),CU=()=>vU("summary",!0),yU=e=>(t,o)=>mm(t)===e,OU=(e,t)=>hU(e),jU=(e,t)=>t,xU=e=>{const t=hm(e),o=b$(e.dom,e.selection.getStart());return V(o)&&e.schema.isValidChild(o.nodeName,t)},_U=e=>{const t=e.selection.getRng(),o=fn.fromDom(t.startContainer),n=Mn(o,t.startOffset),a=n.map(e=>Fo(e)&&!ua(e));return t.collapsed&&a.getOr(!0)},VU=(e,t)=>(o,n)=>{const a=ae(e,(e,t)=>e&&t(o,n),!0);return a?U.some(t):U.none()},AU=(e,t)=>HI([VU([gU],bU.none()),VU([kU(!0),wU],bU.none()),VU([CU()],bU.br()),VU([kU(!0),yU(!1),jU],bU.br()),VU([kU(!0),yU(!1)],bU.block()),VU([kU(!0),yU(!0),jU],bU.block()),VU([kU(!0),yU(!0)],bU.br()),VU([fU(!0),jU],bU.br()),VU([fU(!0)],bU.block()),VU([OU],bU.br()),VU([jU],bU.br()),VU([xU],bU.block()),VU([_U],bU.block())],[e,!(!t||!t.shiftKey)]).getOr(bU.none()),NU=(e,t,o)=>{if(t.selection.isCollapsed()||OO(t),V(o)){const o=a$(t,e.fakeEventName);if(o.isDefaultPrevented())return}e.insert(t,o),V(o)&&n$(t,e.fakeEventName)},DU=(e,t)=>{const o=()=>NU(uU,e,t),n=()=>NU(J$,e,t),a=AU(e,t);switch(bm(e)){case"linebreak":a.fold(o,o,E);break;case"block":a.fold(n,n,E);break;case"invert":a.fold(n,o,E);break;default:a.fold(o,n,E);break}},EU=Kt(),TU=EU.os.isiOS()&&EU.browser.isSafari(),SU=(e,t)=>{t.isDefaultPrevented()||(t.preventDefault(),XD(e.undoManager),e.undoManager.transact(()=>{DU(e,t)}))},BU=e=>{if(!e.collapsed)return!1;const t=e.startContainer;if(Or(t)){const o=/^[\uAC00-\uD7AF\u1100-\u11FF\u3130-\u318F\uA960-\uA97F\uD7B0-\uD7FF]$/,n=t.data.charAt(e.startOffset-1);return o.test(n)}return!1},IU=e=>{let t=U.none();const o=e=>{t=U.some(e.selection.getBookmark()),e.undoManager.add()},n=(e,o)=>{e.undoManager.undo(),t.fold(E,t=>e.selection.moveToBookmark(t)),SU(e,o),t=U.none()};e.on("keydown",t=>{t.keyCode===Jf.ENTER&&(TU&&BU(e.selection.getRng())?o(e):SU(e,t))}),e.on("keyup",o=>{o.keyCode===Jf.ENTER&&t.each(()=>n(e,o))})},zU=(e,t,o)=>{const n=to.os.isMacOS()||to.os.isiOS();bL([{keyCode:Jf.END,action:pL(JM,e,!0)},{keyCode:Jf.HOME,action:pL(JM,e,!1)},...n?[]:[{keyCode:Jf.HOME,action:pL(ZM,e,!1),ctrlKey:!0,shiftKey:!0},{keyCode:Jf.END,action:pL(ZM,e,!0),ctrlKey:!0,shiftKey:!0}],{keyCode:Jf.END,action:pL(wL,e,!0)},{keyCode:Jf.HOME,action:pL(wL,e,!1)},{keyCode:Jf.END,action:pL(gF,e,!0,t)},{keyCode:Jf.HOME,action:pL(gF,e,!1,t)}],o).each(e=>{o.preventDefault()})},FU=(e,t)=>{e.on("keydown",o=>{o.isDefaultPrevented()||zU(e,t,o)})},MU=e=>{e.on("input",t=>{t.isComposing||Ry(e)})},LU=Kt(),PU=(e,t,o)=>{bL([{keyCode:Jf.PAGE_UP,action:pL(gF,e,!1,t)},{keyCode:Jf.PAGE_DOWN,action:pL(gF,e,!0,t)}],o)},RU=e=>e.stopImmediatePropagation(),qU=e=>e.keyCode===Jf.PAGE_UP||e.keyCode===Jf.PAGE_DOWN,$U=(e,t,o)=>{o&&!e.get()?t.on("NodeChange",RU,!0):!o&&e.get()&&t.off("NodeChange",RU),e.set(o)},UU=(e,t)=>{if(LU.os.isMacOS())return;const o=Oc(!1);e.on("keydown",t=>{qU(t)&&$U(o,e,!0)}),e.on("keyup",n=>{n.isDefaultPrevented()||PU(e,t,n),qU(n)&&o.get()&&($U(o,e,!1),e.nodeChanged())})},HU=e=>{e.on("beforeinput",t=>{e.selection.isEditable()&&!J(t.getTargetRanges(),t=>!Tk(e.dom,t))||t.preventDefault()})},WU=(e,t)=>{const o=t.container(),n=t.offset();return Or(o)?(o.insertData(n,e),U.some(tu(o,n+e.length))):Kp(t).map(o=>{const n=fn.fromText(e);return t.isAtEnd()?xa(o,n):ja(o,n),tu(n.dom,e.length)})},GU=F(WU,Pr),KU=F(WU," "),YU=(e,t,o)=>Ay(e,t,o)?GU(t):KU(t),QU=e=>t=>t.fold(t=>jb(e.dom,tu.before(t)),e=>xb(e),e=>_b(e),t=>Ob(e.dom,tu.after(t))),JU=(e,t,o)=>n=>Ay(e,n,o)?GU(t):KU(t),ZU=e=>t=>{e.selection.setRng(t.toRange()),e.nodeChanged()},XU=(e,t)=>e.isEditable(e.getParent(t,"summary")),eH=e=>{const t=tu.fromRangeStart(e.selection.getRng()),o=fn.fromDom(e.getBody());if(e.selection.isCollapsed()){const n=F(hO,e),a=tu.fromRangeStart(e.selection.getRng());return tz(n,e.getBody(),a).bind(QU(o)).map(n=>()=>JU(o,t,e.schema)(n).each(ZU(e)))}return U.none()},tH=e=>{const t=()=>{const t=fn.fromDom(e.getBody());e.selection.isCollapsed()||e.getDoc().execCommand("Delete");const o=tu.fromRangeStart(e.selection.getRng());YU(t,o,e.schema).each(ZU(e))};return wo(to.browser.isFirefox()&&e.selection.isEditable()&&XU(e.dom,e.selection.getRng().startContainer),t)},oH=(e,t)=>{gL([{keyCode:Jf.SPACEBAR,action:pL(eH,e)},{keyCode:Jf.SPACEBAR,action:pL(tH,e)}],t).each(o=>{t.preventDefault();const n=a$(e,"insertText",{data:" "});n.isDefaultPrevented()||(o(),n$(e,"insertText",{data:" "}))})},nH=e=>{e.on("keydown",t=>{t.isDefaultPrevented()||oH(e,t)})},aH=e=>Qh(e)?[{keyCode:Jf.TAB,action:pL(mP,e,!0)},{keyCode:Jf.TAB,shiftKey:!0,action:pL(mP,e,!1)}]:[],rH=(e,t)=>{bL([...aH(e)],t).each(e=>{t.preventDefault()})},iH=e=>{e.on("keydown",t=>{t.isDefaultPrevented()||rH(e,t)})},lH=e=>{if(e.addShortcut("Meta+P","","mcePrint"),Bq(e),bE(e))return Oc(null);{const t=hF(e);return HU(e),PM(e),pP(e,t),m$(e,t),IU(e),nH(e),MU(e),iH(e),FU(e,t),UU(e,t),t}};class sH{constructor(e){let t;this.lastPath=[],this.editor=e;const o=this;"onselectionchange"in e.getDoc()||e.on("NodeChange click mouseup keyup focus",o=>{const n=e.selection.getRng(),a={startContainer:n.startContainer,startOffset:n.startOffset,endContainer:n.endContainer,endOffset:n.endOffset};"nodechange"!==o.type&&Uv(a,t)||e.dispatch("SelectionChange"),t=a}),e.on("contextmenu",()=>{e.dispatch("SelectionChange")}),e.on("SelectionChange",()=>{const t=e.selection.getStart(!0);t&&gg(e)&&!o.isSameElementPath(t)&&e.dom.isChildOf(t,e.getBody())&&e.nodeChanged({selectionChange:!0})}),e.on("mouseup",t=>{!t.isDefaultPrevented()&&gg(e)&&("IMG"===e.selection.getNode().nodeName?nk.setEditorTimeout(e,()=>{e.nodeChanged()}):e.nodeChanged())})}nodeChanged(e={}){const t=this.editor.selection;let o;if(this.editor.initialized&&t&&!lh(this.editor)&&!this.editor.mode.isReadOnly()){const n=this.editor.getBody();o=t.getStart(!0)||n,o.ownerDocument===this.editor.getDoc()&&this.editor.dom.isChildOf(o,n)||(o=n);const a=[];this.editor.dom.getParent(o,e=>e===n||(a.push(e),!1)),this.editor.dispatch("NodeChange",{...e,element:o,parents:a})}}isSameElementPath(e){let t;const o=this.editor,n=ue(o.dom.getParents(e,$,o.getBody()));if(n.length===this.lastPath.length){for(t=n.length;t>=0;t--)if(n[t]!==this.lastPath[t])break;if(-1===t)return this.lastPath=n,!0}return this.lastPath=n,!1}}const cH=id("image"),dH=e=>{const t=e;return U.from(t[cH])},uH=(e,t)=>{const o=e;o[cH]=t},mH=id("event"),hH=e=>{const t=e;return U.from(t[mH])},pH=e=>t=>{const o=t;o[mH]=e},bH=(e,t)=>pH(t)(e),gH=pH(0),fH=pH(2),vH=pH(1),wH=e=>t=>{const o=t;return U.from(o[mH]).exists(t=>t===e)},kH=wH(0),CH=()=>Object.freeze({length:0,item:e=>null}),yH=id("mode"),OH=e=>{const t=e;return U.from(t[yH])},jH=e=>t=>{const o=t;o[yH]=e},xH=(e,t)=>jH(t)(e),_H=jH(0),VH=jH(2),AH=jH(1),NH=e=>t=>{const o=t;return U.from(o[yH]).exists(t=>t===e)},DH=NH(0),EH=NH(1),TH=(e,t)=>({...t,get length(){return t.length},add:(o,n)=>{if(DH(e)){if(!w(o))return t.add(o);if(!x(n))return t.add(o,n)}return null},remove:o=>{DH(e)&&t.remove(o)},clear:()=>{DH(e)&&t.clear()}}),SH=["none","copy","link","move"],BH=["none","copy","copyLink","copyMove","link","linkMove","move","all","uninitialized"],IH=()=>{const e=new window.DataTransfer;let t="move",o="all";const n={get dropEffect(){return t},set dropEffect(e){Q(SH,e)&&(t=e)},get effectAllowed(){return o},set effectAllowed(e){kH(n)&&Q(BH,e)&&(o=e)},get items(){return TH(n,e.items)},get files(){return EH(n)?CH():e.files},get types(){return e.types},setDragImage:(t,o,a)=>{DH(n)&&(uH(n,{image:t,x:o,y:a}),e.setDragImage(t,o,a))},getData:t=>EH(n)?"":e.getData(t),setData:(t,o)=>{DH(n)&&e.setData(t,o)},clearData:t=>{DH(n)&&e.clearData(t)}};return _H(n),n},zH=e=>{const t=IH(),o=OH(e);return VH(e),gH(t),t.dropEffect=e.dropEffect,t.effectAllowed=e.effectAllowed,dH(e).each(e=>t.setDragImage(e.image,e.x,e.y)),X(e.types,o=>{"Files"!==o&&t.setData(o,e.getData(o))}),X(e.files,e=>t.items.add(e)),hH(e).each(e=>{bH(t,e)}),o.each(o=>{xH(e,o),xH(t,o)}),t},FH=e=>{const t=e.getData("text/html");return""===t?U.none():U.some(t)},MH=(e,t)=>e.setData("text/html",t),LH="x-tinymce/html",PH=B(LH),RH="\x3c!-- "+LH+" --\x3e",qH=e=>RH+e,$H=e=>e.replace(RH,""),UH=e=>-1!==e.indexOf(RH),HH=e=>!/<(?:\/?(?!(?:div|p|br|span)>)\w+|(?:(?!(?:span style="white-space:\s?pre;?">)|br\s?\/>))\w+\s[^>]+)>/i.test(e),WH=(e,t)=>{let o="<"+e;const n=De(t,(e,t)=>t+'="'+hs.encodeAllRaw(e)+'"');return n.length&&(o+=" "+n.join(" ")),o+">"},GH=(e,t,o)=>{const n=e.split(/\n\n/),a=WH(t,o),r="</"+t+">",i=Z(n,e=>e.split(/\n/).join("<br />")),l=e=>a+e+r;return 1===i.length?i[0]:Z(i,l).join("")},KH="%MCEPASTEBIN%",YH=(e,t)=>{const{dom:o,selection:n}=e,a=e.getBody();t.set(n.getRng());const r=o.add(e.getBody(),"div",{id:"mcepastebin",class:"mce-pastebin",contentEditable:!0,"data-mce-bogus":"all",style:"position: fixed; top: 50%; width: 10px; height: 10px; overflow: hidden; opacity: 0"},KH);to.browser.isFirefox()&&o.setStyle(r,"left","rtl"===o.getStyle(a,"direction",!0)?65535:-65535),o.bind(r,"beforedeactivate focusin focusout",e=>{e.stopPropagation()}),r.focus(),n.select(r,!0)},QH=(e,t)=>{const o=e.dom;if(JH(e)){let n;const a=t.get();while(n=JH(e))o.remove(n),o.unbind(n);a&&e.selection.setRng(a)}t.set(null)},JH=e=>e.dom.get("mcepastebin"),ZH=e=>V(e)&&"mcepastebin"===e.id,XH=e=>{const t=e.dom,o=(e,o)=>{e.appendChild(o),t.remove(o,!0)},[n,...a]=oe(e.getBody().childNodes,ZH);X(a,e=>{o(n,e)});const r=t.select("div[id=mcepastebin]",n);for(let i=r.length-1;i>=0;i--){const e=t.create("div");n.insertBefore(e,r[i]),o(e,r[i])}return n?n.innerHTML:""},eW=e=>e===KH,tW=e=>{const t=Oc(null);return{create:()=>YH(e,t),remove:()=>QH(e,t),getEl:()=>JH(e),getHtml:()=>XH(e),getLastRng:t.get}},oW=(e,t)=>(ho.each(t,t=>{e=v(t,RegExp)?e.replace(t,""):e.replace(t[0],t[1])}),e),nW=e=>{const t=Ts(),o=PN({},t);let n="";const a=t.getVoidElements(),r=ho.makeMap("script noscript style textarea video audio iframe object"," "),i=t.getBlockElements(),l=e=>{const o=e.name,s=e;if("br"!==o){if("wbr"!==o)if(a[o]&&(n+=" "),r[o])n+=" ";else{if(3===e.type&&(n+=e.value),!(e.name in t.getVoidElements())){let t=e.firstChild;if(t)do{l(t)}while(t=t.next)}i[o]&&s.next&&(n+="\n","p"===o&&(n+="\n"))}}else n+="\n"};return e=oW(e,[/<!\[[^\]]+\]>/g]),l(o.parse(e)),n},aW=e=>{const t=(e,t,o)=>t||o?Pr:" ";return e=oW(e,[/^[\s\S]*<body[^>]*>\s*|\s*<\/body[^>]*>[\s\S]*$/gi,/<!--StartFragment-->|<!--EndFragment-->/g,[/( ?)<span class="Apple-converted-space">\u00a0<\/span>( ?)/g,t],/<br class="Apple-interchange-newline">/g,/<br>$/i]),e},rW=e=>{let t=0;return()=>e+t++},iW=e=>{const t=e.toLowerCase(),o={jpg:"jpeg",jpe:"jpeg",jfi:"jpeg",jif:"jpeg",jfif:"jpeg",pjpeg:"jpeg",pjp:"jpeg",svg:"svg+xml"};return ho.hasOwn(o,t)?"image/"+o[t]:"image/"+t},lW=(e,t)=>{const o=PN({sanitize:$h(e),sandbox_iframes:ep(e)},e.schema);o.addNodeFilter("meta",e=>{ho.each(e,e=>{e.remove()})});const n=o.parse(t,{forced_root_block:!1,isRootContent:!0});return VC({validate:!0},e.schema).serialize(n)},sW=(e,t)=>({content:e,cancelled:t}),cW=(e,t,o)=>{const n=e.dom.create("div",{style:"display:none"},t),a=Kf(e,n,o);return sW(a.node.innerHTML,a.isDefaultPrevented())},dW=(e,t,o)=>{const n=Gf(e,t,o),a=lW(e,n.content);return e.hasEventListeners("PastePostProcess")&&!n.isDefaultPrevented()?cW(e,a,o):sW(a,n.isDefaultPrevented())},uW=(e,t,o)=>dW(e,t,o),mW=(e,t)=>(e.insertContent(t,{merge:Eh(e),paste:!0}),!0),hW=e=>/^https?:\/\/[\w\-\/+=.,!;:&%@^~(){}?#]+$/i.test(e),pW=(e,t)=>hW(t)&&J(Yh(e),e=>dt(t.toLowerCase(),"."+e.toLowerCase())),bW=(e,t,o)=>(e.undoManager.extra(()=>{o(e,t)},()=>{e.insertContent('<img src="'+t+'">')}),!0),gW=(e,t,o)=>(e.undoManager.extra(()=>{o(e,t)},()=>{e.execCommand("mceInsertLink",!1,t)}),!0),fW=(e,t,o)=>!(e.selection.isCollapsed()||!hW(t))&&gW(e,t,o),vW=(e,t,o)=>!!pW(e,t)&&bW(e,t,o),wW=(e,t)=>{ho.each([fW,vW,mW],o=>!o(e,t,mW))},kW=(e,t,o)=>{o||!Th(e)?mW(e,t):wW(e,t)},CW=rW("mceclip"),yW=e=>{const t=IH();return MH(t,e),VH(t),t},OW=(e,t,o,n,a)=>{const r=uW(e,t,o);if(!r.cancelled){const t=r.content,o=()=>kW(e,t,n);if(a){const n=a$(e,"insertFromPaste",{dataTransfer:yW(t)});n.isDefaultPrevented()||(o(),n$(e,"insertFromPaste"))}else o()}},jW=(e,t,o,n)=>{const a=o||UH(t);OW(e,$H(t),a,!1,n)},xW=(e,t,o)=>{const n=e.dom.encode(t).replace(/\r\n/g,"\n"),a=el(n,Bh(e)),r=GH(a,hm(e),pm(e));OW(e,r,!1,!0,o)},_W=e=>{const t={};if(e&&e.types)for(let n=0;n<e.types.length;n++){const a=e.types[n];try{t[a]=e.getData(a)}catch(o){t[a]=""}}return t},VW=(e,t)=>t in e&&e[t].length>0,AW=e=>VW(e,"text/html")||VW(e,"text/plain"),NW=(e,t)=>{const o=t.match(/([\s\S]+?)(?:\.[a-z0-9.]+)$/i);return V(o)?e.dom.encode(o[1]):void 0},DW=(e,t,o,n)=>{const a=CW(),r=Cm(e)&&V(o.name),i=r?NW(e,o.name):a,l=r?o.name:void 0,s=t.create(a,o,n,i,l);return t.add(s),s},EW=(e,t)=>{ZV(t.uri).each(({data:o,type:n,base64Encoded:a})=>{const r=a?o:btoa(o),i=t.file,l=e.editorUpload.blobCache,s=l.getByData(r,n),c=null!==s&&void 0!==s?s:DW(e,l,i,r);jW(e,`<img src="${c.blobUri()}">`,!1,!0)})},TW=e=>"paste"===e.type,SW=e=>Promise.all(Z(e,e=>oA(e).then(t=>({file:e,uri:t})))),BW=e=>{const t=Yh(e);return e=>ct(e.type,"image/")&&J(t,t=>iW(t)===e.type)},IW=(e,t)=>{const o=t.items?ce(ve(t.items),e=>"file"===e.kind?[e.getAsFile()]:[]):[],n=t.files?ve(t.files):[];return oe(o.length>0?o:n,BW(e))},zW=(e,t,o)=>{const n=TW(t)?t.clipboardData:t.dataTransfer;if(xh(e)&&n){const a=IW(e,n);if(a.length>0)return t.preventDefault(),SW(a).then(t=>{o&&e.selection.setRng(o),X(t,t=>{EW(e,t)})}),!0}return!1},FW=e=>{var t,o;return to.os.isAndroid()&&0===(null===(o=null===(t=e.clipboardData)||void 0===t?void 0:t.items)||void 0===o?void 0:o.length)},MW=e=>Jf.metaKeyPressed(e)&&86===e.keyCode||e.shiftKey&&45===e.keyCode,LW=(e,t,o,n,a)=>{let r=aW(o);const i=VW(t,PH())||UH(o),l=!i&&HH(r),s=hW(r);(eW(r)||!r.length||l&&!s)&&(n=!0),(n||s)&&(r=VW(t,"text/plain")&&l?t["text/plain"]:nW(r)),eW(r)||(n?xW(e,r,a):jW(e,r,i,a))},PW=(e,t,o)=>{let n;const a=()=>t.getLastRng()||e.selection.getRng();e.on("keydown",e=>{MW(e)&&!e.isDefaultPrevented()&&(n=e.shiftKey&&86===e.keyCode)}),e.on("paste",r=>{if(r.isDefaultPrevented()||FW(r))return;const i="text"===o.get()||n;n=!1;const l=_W(r.clipboardData);!AW(l)&&zW(e,r,a())||(VW(l,"text/html")?(r.preventDefault(),LW(e,l,l["text/html"],i,!0)):VW(l,"text/plain")&&VW(l,"text/uri-list")?(r.preventDefault(),LW(e,l,l["text/plain"],i,!0)):(t.create(),nk.setEditorTimeout(e,()=>{const o=t.getHtml();t.remove(),LW(e,l,o,i,!1)},0)))})},RW=e=>{const t=e=>ct(e,"webkit-fake-url"),o=e=>ct(e,"data:"),n=e=>{var t;return!0===(null===(t=e.data)||void 0===t?void 0:t.paste)};e.parser.addNodeFilter("img",(a,r,i)=>{if(!xh(e)&&n(i))for(const n of a){const a=n.attr("src");w(a)&&!n.attr("data-mce-object")&&a!==to.transparentSrc&&(t(a)||!Ih(e)&&o(a))&&n.remove()}})},qW=(e,t,o)=>{PW(e,t,o),RW(e)},$W=(e,t)=>{"text"===t.get()?(t.set("html"),Yf(e,!1)):(t.set("text"),Yf(e,!0)),e.focus()},UW=(e,t)=>{e.addCommand("mceTogglePlainTextPaste",()=>{$W(e,t)}),e.addCommand("mceInsertClipboardContent",(t,o)=>{o.html&&jW(e,o.html,o.internal,!1),o.text&&xW(e,o.text,!1)})},HW=(e,t,o)=>{if(!e)return!1;try{return e.clearData(),e.setData("text/html",t),e.setData("text/plain",o),e.setData(PH(),t),!0}catch(n){return!1}},WW=(e,t,o,n)=>{HW(e.clipboardData,t.html,t.text)?(e.preventDefault(),n()):o(t.html,n)},GW=e=>(t,o)=>{const{dom:n,selection:a}=e,r=n.create("div",{contenteditable:"false","data-mce-bogus":"all"}),i=n.create("div",{contenteditable:"true"},t);n.setStyles(r,{position:"fixed",top:"0",left:"-3000px",width:"1000px",overflow:"hidden"}),r.appendChild(i),n.add(e.getBody(),r);const l=a.getRng();i.focus();const s=n.createRng();s.selectNodeContents(i),a.setRng(s),nk.setEditorTimeout(e,()=>{a.setRng(l),n.remove(r),o()},0)},KW=e=>({html:qH(e.selection.getContent({contextual:!0})),text:e.selection.getContent({format:"text"})}),YW=e=>!!e.dom.getParent(e.selection.getStart(),"td[data-mce-selected],th[data-mce-selected]",e.getBody()),QW=e=>!e.selection.isCollapsed()||YW(e),JW=e=>t=>{!t.isDefaultPrevented()&&QW(e)&&e.selection.isEditable()&&WW(t,KW(e),GW(e),()=>{if(to.browser.isChromium()||to.browser.isFirefox()){const t=e.selection.getRng();nk.setEditorTimeout(e,()=>{e.selection.setRng(t),e.execCommand("Delete")},0)}else e.execCommand("Delete")})},ZW=e=>t=>{!t.isDefaultPrevented()&&QW(e)&&WW(t,KW(e),GW(e),E)},XW=e=>{e.on("cut",JW(e)),e.on("copy",ZW(e))},eG=(e,t)=>{var o,n;return nw.getCaretRangeFromPoint(null!==(o=t.clientX)&&void 0!==o?o:0,null!==(n=t.clientY)&&void 0!==n?n:0,e.getDoc())},tG=e=>{const t=e["text/plain"];return!!t&&0===t.indexOf("file://")},oG=(e,t)=>{e.focus(),t&&e.selection.setRng(t)},nG=e=>J(e.files,e=>/^image\//.test(e.type)),aG=(e,t,o,n)=>{const a=e.getParent(o,e=>El(t,e)),r=!O(e.getParent(o,"summary"));if(r)return!0;if(a&&Se(n,"text/html")){const e=(new DOMParser).parseFromString(n["text/html"],"text/html").body;return!O(e.querySelector(a.nodeName.toLowerCase()))}return!1},rG=e=>{e.on("input",t=>{const o=e=>O(e.querySelector("summary"));if("deleteByDrag"===t.inputType){const t=oe(e.dom.select("details"),o);X(t,t=>{Nr(t.firstChild)&&t.firstChild.remove();const o=e.dom.create("summary");o.appendChild(ui().dom),t.prepend(o)})}})},iG=(e,t)=>{jh(e)&&e.on("dragend dragover draggesture dragdrop drop drag",e=>{e.preventDefault(),e.stopPropagation()}),xh(e)||e.on("drop",e=>{const t=e.dataTransfer;t&&nG(t)&&e.preventDefault()}),e.on("drop",o=>{if(o.isDefaultPrevented())return;const n=eG(e,o);if(_(n))return;const a=_W(o.dataTransfer),r=VW(a,PH());if((!AW(a)||tG(a))&&zW(e,o,n))return;const i=a[PH()],l=i||a["text/html"]||a["text/plain"],s=aG(e.dom,e.schema,n.startContainer,a),c=t.get();c&&!s||l&&(o.preventDefault(),nk.setEditorTimeout(e,()=>{e.undoManager.transact(()=>{(i||c&&s)&&e.execCommand("Delete"),oG(e,n);const t=aW(l);a["text/html"]?jW(e,t,r,!0):xW(e,t,!0)})}))}),e.on("dragstart",e=>{t.set(!0)}),e.on("dragover dragend",o=>{xh(e)&&!t.get()&&(o.preventDefault(),oG(e,eG(e,o))),"dragend"===o.type&&t.set(!1)}),rG(e)},lG=e=>{const t=t=>o=>{t(e,o)},o=_h(e);A(o)&&e.on("PastePreProcess",t(o));const n=Vh(e);A(n)&&e.on("PastePostProcess",t(n))},sG=(e,t)=>{e.on("PastePreProcess",o=>{o.content=t(e,o.content,o.internal)})},cG=/rgb\s*\(\s*([0-9]+)\s*,\s*([0-9]+)\s*,\s*([0-9]+)\s*\)/gi,dG=e=>ho.trim(e).replace(cG,$s).toLowerCase(),uG=(e,t,o)=>{const n=Nh(e);if(o||"all"===n||!Dh(e))return t;const a=n?n.split(/[, ]/):[];if(a&&"none"!==n){const o=e.dom,n=e.selection.getNode();t=t.replace(/(<[^>]+) style="([^"]*)"([^>]*>)/gi,(e,t,r,i)=>{const l=o.parseStyle(o.decode(r)),s={};for(let d=0;d<a.length;d++){const e=l[a[d]];let t=e,r=o.getStyle(n,a[d],!0);/color/.test(a[d])&&(t=dG(t),r=dG(r)),r!==t&&(s[a[d]]=e)}const c=o.serializeStyle(s,"span");return c?t+' style="'+c+'"'+i:t+i})}else t=t.replace(/(<[^>]+) style="([^"]*)"([^>]*>)/gi,"$1$3");return t=t.replace(/(<[^>]+) data-mce-style="([^"]+)"([^>]*>)/gi,(e,t,o,n)=>t+' style="'+o+'"'+n),t},mG=e=>{(to.browser.isChromium()||to.browser.isSafari())&&sG(e,uG)},hG=e=>{const t=Oc(!1),o=Oc(Sh(e)?"text":"html"),n=tW(e);mG(e),UW(e,o),lG(e),e.on("PreInit",()=>{XW(e),iG(e,t),qW(e,n,o)})},pG=e=>{e.on("click",t=>{e.dom.getParent(t.target,"details")&&t.preventDefault()})},bG=e=>{e.parser.addNodeFilter("details",t=>{const o=Jh(e);X(t,e=>{"expanded"===o?e.attr("open","open"):"collapsed"===o&&e.attr("open",null)})}),e.serializer.addNodeFilter("details",t=>{const o=Zh(e);X(t,e=>{"expanded"===o?e.attr("open","open"):"collapsed"===o&&e.attr("open",null)})})},gG=e=>{pG(e),bG(e)},fG=Nr,vG=Or,wG=e=>Tr(e.dom),kG=e=>Er(e.dom),CG=e=>t=>On(fn.fromDom(e),t),yG=(e,t,o)=>na(fn.fromDom(e),e=>kG(e)||o.isBlock(So(e)),CG(t)).getOr(fn.fromDom(t)).dom,OG=(e,t)=>na(fn.fromDom(e),wG,CG(t)),jG=(e,t,o)=>{const n=new lr(e,t),a=o?n.next.bind(n):n.prev.bind(n);let r=e;for(let i=o?e:a();i&&!fG(i);i=a())Ri(i)&&(r=i);return r},xG=(e,t,o)=>{const n=tu.fromRangeStart(e),a=n.getNode(),r=yG(a,t,o),i=jG(a,r,!1),l=jG(a,r,!0),s=document.createRange();return OG(i,r).fold(()=>{vG(i)?s.setStart(i,0):s.setStartBefore(i)},e=>s.setStartBefore(e.dom)),OG(l,r).fold(()=>{vG(l)?s.setEnd(l,l.data.length):s.setEndAfter(l)},e=>s.setEndAfter(e.dom)),s},_G=e=>{const t=xG(e.selection.getRng(),e.getBody(),e.schema);e.selection.setRng(ax(t))},VG=e=>{e.on("mousedown",t=>{t.detail>=3&&(t.preventDefault(),_G(e))})};var AG;(function(e){e["Before"]="before",e["After"]="after"})(AG||(AG={}));const NG=(e,t)=>Math.abs(e.left-t),DG=(e,t)=>Math.abs(e.right-t),EG=(e,t)=>e>=t.top&&e<=t.bottom,TG=(e,t)=>e.top<t.bottom&&e.bottom>t.top,SG=(e,t)=>{const o=_d(e,t)/Math.min(e.height,t.height);return TG(e,t)&&o>.5},BG=(e,t)=>{const o=oe(e,e=>EG(t,e));return jd(o).fold(()=>[[],e],t=>{const{pass:o,fail:n}=te(e,e=>SG(e,t));return[o,n]})},IG=(e,t)=>({node:e.node,position:NG(e,t)<DG(e,t)?AG.Before:AG.After}),zG=(e,t,o)=>t>e.left&&t<e.right?0:Math.min(Math.abs(e.left-t),Math.abs(e.right-t)),FG=(e,t,o,n)=>{const a=e=>Ri(e.node)?U.some(e):dr(e.node)?FG(ve(e.node.childNodes),t,o,!1):U.none(),r=(e,n,r)=>a(n).filter(n=>{const a=Math.abs(r(e,t,o)-r(n,t,o));return a<2&&Or(n.node)}),i=(e,i)=>{const l=pe(e,(e,n)=>i(e,t,o)-i(n,t,o));return we(l,a).map(e=>n&&!Or(e.node)&&l.length>1?r(e,l[1],i).getOr(e):e)},[l,s]=BG(Lz(e),o),{pass:c,fail:d}=te(s,e=>e.top<o);return i(l,zG).orThunk(()=>i(d,xd)).orThunk(()=>i(c,xd))},MG=(e,t,o,n)=>{const a=(t,r)=>{const i=e=>dr(e)&&e.classList.contains("mce-drag-container"),l=oe(t.dom.childNodes,M(i));return r.fold(()=>FG(l,o,n,!0),e=>{const t=oe(l,t=>t!==e.dom);return FG(t,o,n,!0)}).orThunk(()=>{const o=On(t,e)?U.none():Dn(t);return o.bind(e=>a(e,U.some(t)))})};return a(t,U.none())},LG=(e,t,o)=>{const n=fn.fromDom(e),a=_n(n),r=fn.fromPoint(a,t,o).filter(e=>jn(n,e)),i=r.getOr(n);return MG(n,i,t,o)},PG=(e,t,o)=>LG(e,t,o).filter(e=>yp(e.node)).map(e=>IG(e,t)),RG=e=>{var t,o;const n=e.getBoundingClientRect(),a=e.ownerDocument,r=a.documentElement,i=a.defaultView;return{top:n.top+(null!==(t=null===i||void 0===i?void 0:i.scrollY)&&void 0!==t?t:0)-r.clientTop,left:n.left+(null!==(o=null===i||void 0===i?void 0:i.scrollX)&&void 0!==o?o:0)-r.clientLeft}},qG=e=>e.inline?RG(e.getBody()):{left:0,top:0},$G=e=>{const t=e.getBody();return e.inline?{left:t.scrollLeft,top:t.scrollTop}:{left:0,top:0}},UG=e=>{const t=e.getBody(),o=e.getDoc().documentElement,n={left:t.scrollLeft,top:t.scrollTop},a={left:t.scrollLeft||o.scrollLeft,top:t.scrollTop||o.scrollTop};return e.inline?n:a},HG=(e,t)=>{if(t.target.ownerDocument!==e.getDoc()){const o=RG(e.getContentAreaContainer()),n=UG(e);return{left:t.pageX-o.left+n.left,top:t.pageY-o.top+n.top}}return{left:t.pageX,top:t.pageY}},WG=(e,t,o)=>({pageX:o.left-e.left+t.left,pageY:o.top-e.top+t.top}),GG=(e,t)=>WG(qG(e),$G(e),HG(e,t)),KG=e=>({target:e,srcElement:e}),YG=(e,t,o,n)=>({...t,dataTransfer:n,type:e,...KG(o)}),QG=(e,t,o)=>{const n=L("Function not supported on simulated event."),a={bubbles:!0,cancelBubble:!1,cancelable:!0,composed:!1,currentTarget:null,defaultPrevented:!1,eventPhase:0,isTrusted:!0,returnValue:!1,timeStamp:0,type:e,composedPath:n,initEvent:n,preventDefault:E,stopImmediatePropagation:E,stopPropagation:E,AT_TARGET:window.Event.AT_TARGET,BUBBLING_PHASE:window.Event.BUBBLING_PHASE,CAPTURING_PHASE:window.Event.CAPTURING_PHASE,NONE:window.Event.NONE,altKey:!1,button:0,buttons:0,clientX:0,clientY:0,ctrlKey:!1,metaKey:!1,movementX:0,movementY:0,offsetX:0,offsetY:0,pageX:0,pageY:0,relatedTarget:null,screenX:0,screenY:0,shiftKey:!1,x:0,y:0,detail:0,view:null,which:0,initUIEvent:n,initMouseEvent:n,getModifierState:n,dataTransfer:o,...KG(t)};return a},JG=(e,t)=>{const o=zH(e);return"dragstart"===t?(gH(o),_H(o)):"drop"===t?(fH(o),VH(o)):(vH(o),AH(o)),o},ZG=(e,t,o,n)=>{const a=JG(o,e);return x(n)?QG(e,t,a):YG(e,n,t,a)},XG=32,eK=100,tK=8,oK=16,nK=Tr,aK=Sd(nK,Er),rK=(e,t,o)=>nK(o)&&o!==t&&e.isEditable(o.parentElement),iK=(e,t,o)=>!_(t)&&(t!==o&&!e.dom.isChildOf(t,o)&&e.dom.isEditable(t)),lK=(e,t,o,n)=>{const a=e.dom,r=t.cloneNode(!0);a.setStyles(r,{width:o,height:n}),a.setAttrib(r,"data-mce-selected",null);const i=a.create("div",{class:"mce-drag-container","data-mce-bogus":"all",unselectable:"on",contenteditable:"false"});return a.setStyles(i,{position:"absolute",opacity:.5,overflow:"hidden",border:0,padding:0,margin:0,width:o,height:n}),a.setStyles(r,{margin:0,boxSizing:"border-box"}),i.appendChild(r),i},sK=(e,t)=>{e.parentNode!==t&&t.appendChild(e)},cK=(e,t)=>o=>()=>{const n="left"===e?o.scrollX:o.scrollY;o.scroll({[e]:n+t,behavior:"smooth"})},dK=cK("left",-XG),uK=cK("left",XG),mK=cK("top",-XG),hK=cK("top",XG),pK=(e,t,o,n,a,r,i,l,s,c,d,u)=>{let m=0,h=0;e.style.left=t.pageX+"px",e.style.top=t.pageY+"px",t.pageX+o>a&&(m=t.pageX+o-a),t.pageY+n>r&&(h=t.pageY+n-r),e.style.width=o-m+"px",e.style.height=n-h+"px";const p=s.clientHeight,b=s.clientWidth,g=i+s.getBoundingClientRect().top,f=l+s.getBoundingClientRect().left;d.on(e=>{e.intervalId.clear(),e.dragging&&u&&(i+tK>=p?e.intervalId.set(hK(c)):i-tK<=0?e.intervalId.set(mK(c)):l+tK>=b?e.intervalId.set(uK(c)):l-tK<=0?e.intervalId.set(dK(c)):g+oK>=window.innerHeight?e.intervalId.set(hK(window)):g-oK<=0?e.intervalId.set(mK(window)):f+oK>=window.innerWidth?e.intervalId.set(uK(window)):f-oK<=0&&e.intervalId.set(dK(window)))})},bK=e=>{e&&e.parentNode&&e.parentNode.removeChild(e)},gK=(e,t)=>{const o=e.getParent(t.parentNode,e.isBlock);bK(t),o&&o!==e.getRoot()&&e.isEmpty(o)&&mi(fn.fromDom(o))},fK=e=>0===e.button,vK=(e,t)=>({pageX:t.pageX-e.relX,pageY:t.pageY+5}),wK=(e,t)=>o=>{if(fK(o)){const n=ie(t.dom.getParents(o.target),aK).getOr(null);if(V(n)&&rK(t.dom,t.getBody(),n)){const a=t.dom.getPos(n),r=t.getBody(),i=t.getDoc().documentElement;e.set({element:n,dataTransfer:IH(),dragging:!1,screenX:o.screenX,screenY:o.screenY,maxX:(t.inline?r.scrollWidth:i.offsetWidth)-2,maxY:(t.inline?r.scrollHeight:i.offsetHeight)-2,relX:o.pageX-a.x,relY:o.pageY-a.y,width:n.offsetWidth,height:n.offsetHeight,ghost:lK(t,n,n.offsetWidth,n.offsetHeight),intervalId:Pc(eK)})}}},kK=(e,t,o)=>{e._selectionOverrides.hideFakeCaret(),PG(e.getBody(),t,o).fold(()=>e.selection.placeCaretAt(t,o),n=>{const a=e._selectionOverrides.showCaret(1,n.node,n.position===AG.Before,!1);a?e.selection.setRng(a):e.selection.placeCaretAt(t,o)})},CK=(e,t,o,n,a)=>{"dragstart"===t&&MH(n,e.dom.getOuterHTML(o));const r=ZG(t,o,n,a),i=e.dispatch(t,r);return i},yK=(e,t)=>{const o=qc((e,o)=>kK(t,e,o),0);t.on("remove",o.cancel);const n=e;return a=>e.on(e=>{const r=Math.max(Math.abs(a.screenX-e.screenX),Math.abs(a.screenY-e.screenY));if(!e.dragging&&r>10){const o=CK(t,"dragstart",e.element,e.dataTransfer,a);if(V(o.dataTransfer)&&(e.dataTransfer=o.dataTransfer),o.isDefaultPrevented())return;e.dragging=!0,t.focus()}if(e.dragging){const r=a.currentTarget===t.getDoc().documentElement,i=vK(e,GG(t,a));sK(e.ghost,t.getBody()),pK(e.ghost,i,e.width,e.height,e.maxX,e.maxY,a.clientY,a.clientX,t.getContentAreaContainer(),t.getWin(),n,r),o.throttle(a.clientX,a.clientY)}})},OK=e=>{const t=e.getSel();if(V(t)){const e=t.getRangeAt(0),o=e.startContainer;return Or(o)?o.parentNode:o}return null},jK=(e,t)=>o=>{e.on(e=>{var n;if(e.intervalId.clear(),e.dragging){if(iK(t,OK(t.selection),e.element)){const a=null!==(n=t.getDoc().elementFromPoint(o.clientX,o.clientY))&&void 0!==n?n:t.getBody(),r=CK(t,"drop",a,e.dataTransfer,o);r.isDefaultPrevented()||t.undoManager.transact(()=>{gK(t.dom,e.element),FH(e.dataTransfer).each(e=>t.insertContent(e)),t._selectionOverrides.hideFakeCaret()})}CK(t,"dragend",t.getBody(),e.dataTransfer,o)}}),VK(e)},xK=(e,t,o)=>{e.on(e=>{e.intervalId.clear(),e.dragging&&o.fold(()=>CK(t,"dragend",e.element,e.dataTransfer),o=>CK(t,"dragend",e.element,e.dataTransfer,o))}),VK(e)},_K=(e,t)=>o=>xK(e,t,U.some(o)),VK=e=>{e.on(e=>{e.intervalId.clear(),bK(e.ghost)}),e.clear()},AK=e=>{const t=Rc(),o=gc.DOM,n=document,a=wK(t,e),r=yK(t,e),i=jK(t,e),l=_K(t,e);e.on("mousedown",a),e.on("mousemove",r),e.on("mouseup",i),o.bind(n,"mousemove",r),o.bind(n,"mouseup",l),e.on("remove",()=>{o.unbind(n,"mousemove",r),o.unbind(n,"mouseup",l)}),e.on("keydown",o=>{o.keyCode===Jf.ESC&&xK(t,e,U.none())})},NK=e=>{const t=t=>{if(!t.isDefaultPrevented()){const o=t.dataTransfer;o&&(Q(o.types,"Files")||o.files.length>0)&&(t.preventDefault(),"drop"===t.type&&fS(e,"Dropped file type is not supported"))}},o=o=>{hk(e,o.target)&&t(o)},n=()=>{const n=gc.DOM,a=e.dom,r=document,i=e.inline?e.getBody():e.getDoc(),l=["drop","dragover"];X(l,e=>{n.bind(r,e,o),a.bind(i,e,t)}),e.on("remove",()=>{X(l,e=>{n.unbind(r,e,o),a.unbind(i,e,t)})})};e.on("init",()=>{nk.setEditorTimeout(e,n,0)})},DK=e=>{AK(e),hh(e)&&NK(e)},EK=e=>{const t=qc(()=>{if(!e.removed&&e.getBody().contains(document.activeElement)){const t=e.selection.getRng();if(t.collapsed){const o=nI(e,t,!1);e.selection.setRng(o)}}},0);e.on("focus",()=>{t.throttle()}),e.on("blur",()=>{t.cancel()})},TK=e=>{e.on("init",()=>{e.on("focusin",t=>{const o=t.target;if(Ir(o)){const t=Bj(e.getBody(),o),n=Tr(t)?t:o;e.selection.getNode()!==n&&tI(e,n).each(t=>e.selection.setRng(t))}})})},SK=Tr,BK=(e,t)=>Bj(e.getBody(),t),IK=e=>{const t=e.selection,o=e.dom,n=e.getBody(),a=wp(e,n,o.isBlock,()=>Vk(e)),r="sel-"+o.uniqueId(),i="data-mce-selected";let l;const s=e=>V(e)&&o.hasClass(e,"mce-offscreen-selection"),c=e=>e!==n&&(SK(e)||Ir(e))&&o.isChildOf(e,n)&&o.isEditable(e.parentNode),d=e=>{e&&t.setRng(e)},u=(o,n,r,i=!0)=>{const l=e.dispatch("ShowCaret",{target:n,direction:o,before:r});return l.isDefaultPrevented()?null:(i&&t.scrollIntoView(n,-1===o),a.show(r,n))},m=e=>{e.hasAttribute("data-mce-caret")&&(Ei(e),t.scrollIntoView(e))},h=()=>{e.on("click",t=>{o.isEditable(t.target)||(t.preventDefault(),e.focus())}),e.on("blur NewBlock",k),e.on("ResizeWindow FullscreenStateChanged",a.reposition),e.on("tap",t=>{const o=t.target,n=BK(e,o);SK(n)?(t.preventDefault(),tI(e,n).each(w)):c(o)&&tI(e,o).each(w)},!0),e.on("mousedown",t=>{const a=t.target;if(a!==n&&"HTML"!==a.nodeName&&!o.isChildOf(a,n))return;if(!lS(e,t.clientX,t.clientY))return;k(),y();const r=BK(e,a);SK(r)?(t.preventDefault(),tI(e,r).each(w)):PG(n,t.clientX,t.clientY).each(o=>{t.preventDefault();const n=u(1,o.node,o.position===AG.Before,!1);d(n),ur(r)?r.focus():e.getBody().focus()})}),e.on("keypress",e=>{Jf.modifierPressed(e)||SK(t.getNode())&&e.preventDefault()}),e.on("GetSelectionRange",e=>{let t=e.range;if(l){if(!l.parentNode)return void(l=null);t=t.cloneRange(),t.selectNode(l),e.range=t}}),e.on("SetSelectionRange",e=>{e.range=g(e.range);const t=w(e.range,e.forward);t&&(e.range=t)});const r=e=>dr(e)&&"mcepastebin"===e.id;e.on("AfterSetSelectionRange",e=>{const t=e.range,o=t.startContainer.parentElement;b(t)||r(o)||y(),s(o)||k()}),DK(e),EK(e),TK(e)},p=e=>yi(e)||Ai(e)||Ni(e),b=e=>p(e.startContainer)||p(e.endContainer),g=t=>{const n=e.schema.getVoidElements(),a=o.createRng(),r=t.startContainer,i=t.startOffset,l=t.endContainer,s=t.endOffset;return Se(n,r.nodeName.toLowerCase())?0===i?a.setStartBefore(r):a.setStartAfter(r):a.setStart(r,i),Se(n,l.nodeName.toLowerCase())?0===s?a.setEndBefore(l):a.setEndAfter(l):a.setEnd(l,s),a},f=(n,a)=>{const i=fn.fromDom(e.getBody()),l=e.getDoc(),s=sa(i,"#"+r).getOrThunk(()=>{const e=fn.fromHtml('<div data-mce-bogus="all" class="mce-offscreen-selection"></div>',l);return Uo(e,"id",r),Va(i,e),e}),c=o.createRng();Ea(s),Da(s,[fn.fromText(Pr,l),fn.fromDom(a),fn.fromText(Pr,l)]),c.setStart(s.dom.firstChild,1),c.setEnd(s.dom.lastChild,0),fa(s,{top:o.getPos(n,e.getBody()).y+"px"}),zw(s);const d=t.getSel();return d&&(d.removeAllRanges(),d.addRange(c)),c},v=t=>{const n=t.cloneNode(!0),a=e.dispatch("ObjectSelected",{target:t,targetClone:n});if(a.isDefaultPrevented())return null;const r=f(t,a.targetClone),s=fn.fromDom(t);return X(rr(fn.fromDom(e.getBody()),`*[${i}]`),e=>{On(s,e)||Yo(e,i)}),o.getAttrib(t,i)||t.setAttribute(i,"1"),l=t,y(),r},w=(e,t)=>{if(!e)return null;if(e.collapsed){if(!b(e)){const a=t?1:-1,r=Gp(a,n,e),i=r.getNode(!t);if(V(i)){if(yp(i))return u(a,i,!!t&&!r.isAtEnd(),!1);if(Ci(i)&&Tr(i.nextSibling)){const e=o.createRng();return e.setStart(i,0),e.setEnd(i,0),e}}const l=r.getNode(t);if(V(l)){if(yp(l))return u(a,l,!t&&!r.isAtEnd(),!1);if(Ci(l)&&Tr(l.previousSibling)){const e=o.createRng();return e.setStart(l,1),e.setEnd(l,1),e}}}return null}let a=e.startContainer,r=e.startOffset;const i=e.endOffset;if(Or(a)&&0===r&&SK(a.parentNode)&&(a=a.parentNode,r=o.nodeIndex(a),a=a.parentNode),!dr(a))return null;if(i===r+1&&a===e.endContainer){const e=a.childNodes[r];if(c(e))return v(e)}return null},k=()=>{l&&l.removeAttribute(i),sa(fn.fromDom(e.getBody()),"#"+r).each(Ta),l=null},C=()=>{a.destroy(),l=null},y=()=>{a.hide()};return bE(e)||h(),{showCaret:u,showBlockCaretContainer:m,hideFakeCaret:y,destroy:C}},zK=(e,t)=>{let o=t;for(let n=e.previousSibling;Or(n);n=n.previousSibling)o+=n.data.length;return o},FK=(e,t,o,n,a)=>{if(Or(o)&&(n<0||n>o.data.length))return[];const r=a&&Or(o)?[zK(o,n)]:[n];let i=o;while(i!==t&&i.parentNode)r.push(e.nodeIndex(i,a)),i=i.parentNode;return i===t?r.reverse():[]},MK=(e,t,o,n,a,r,i=!1)=>{const l=FK(e,t,o,n,i),s=FK(e,t,a,r,i);return{start:l,end:s}},LK=(e,t)=>{const o=t.slice(),n=o.pop();if(N(n)){const t=ae(o,(e,t)=>e.bind(e=>U.from(e.childNodes[t])),U.some(e));return t.bind(e=>Or(e)&&(n<0||n>e.data.length)?U.none():U.some({node:e,offset:n}))}return U.none()},PK=(e,t)=>LK(e,t.start).bind(({node:o,offset:n})=>LK(e,t.end).map(({node:e,offset:t})=>{const a=document.createRange();return a.setStart(o,n),a.setEnd(e,t),a})),RK=(e,t,o,n=!1)=>MK(e,t,o.startContainer,o.startOffset,o.endContainer,o.endOffset,n),qK=(e,t,o)=>{if(t&&e.isEmpty(t)&&!o(t)){const n=t.parentNode;e.remove(t,Or(t.firstChild)&&Yi(t.firstChild.data)),qK(e,n,o)}},$K=(e,t,o,n=!0)=>{const a=t.startContainer.parentNode,r=t.endContainer.parentNode;t.deleteContents(),n&&!o(t.startContainer)&&(Or(t.startContainer)&&0===t.startContainer.data.length&&e.remove(t.startContainer),Or(t.endContainer)&&0===t.endContainer.data.length&&e.remove(t.endContainer),qK(e,a,o),a!==r&&qK(e,r,o))},UK=(e,t)=>U.from(e.dom.getParent(t.startContainer,e.dom.isBlock)),HK=(e,t,o)=>{const n=e.dynamicPatternsLookup({text:o,block:t});return{...e,blockPatterns:Wu(n).concat(e.blockPatterns),inlinePatterns:Gu(n).concat(e.inlinePatterns)}},WK=(e,t,o,n)=>{const a=e.createRng();return a.setStart(t,0),a.setEnd(o,n),a.toString()},GK=e=>/^\s[^\s]/.test(e),KK=(e,t,o)=>{const n=kP(t,0,t);n.each(n=>{const a=n.container;yP(a,o.start.length,t).each(o=>{const n=e.createRng();n.setStart(a,0),n.setEnd(o.container,o.offset),$K(e,n,e=>e===t)});const r=fn.fromDom(a),i=Hr(r);GK(i)&&Gr(r,i.slice(1))})},YK=(e,t)=>{const o=e.dom,n=t.pattern,a=PK(o.getRoot(),t.range).getOrDie("Unable to resolve path range"),r=(e,t)=>{const o=t.get(e);return y(o)&&ge(o).exists(e=>Se(e,"block"))};return UK(e,a).each(t=>{"block-format"===n.type?r(n.format,e.formatter)&&e.undoManager.transact(()=>{KK(e.dom,t,n),e.formatter.apply(n.format)}):"block-command"===n.type&&e.undoManager.transact(()=>{KK(e.dom,t,n),e.execCommand(n.cmd,!1,n.value)})}),!0},QK=e=>pe(e,(e,t)=>t.start.length-e.start.length),JK=(e,t)=>{const o=QK(e),n=t.replace(Pr," ");return ie(o,e=>0===t.indexOf(e.start)||0===n.indexOf(e.start))},ZK=(e,t,o,n)=>{var a;const r=e.dom,i=hm(e);if(!r.is(t,i))return[];const l=null!==(a=t.textContent)&&void 0!==a?a:"";return JK(o.blockPatterns,l).map(e=>ho.trim(l).length===e.start.length?[]:[{pattern:e,range:MK(r,r.getRoot(),t,0,t,0,n)}]).getOr([])},XK=(e,t)=>{if(0===t.length)return;const o=e.selection.getBookmark();X(t,t=>YK(e,t)),e.selection.moveToBookmark(o)},eY=(e,t)=>e.create("span",{"data-mce-type":"bookmark",id:t}),tY=(e,t)=>{const o=e.createRng();return o.setStartAfter(t.start),o.setEndBefore(t.end),o},oY=(e,t,o)=>{const n=PK(e.getRoot(),o).getOrDie("Unable to resolve path range"),a=n.startContainer,r=n.endContainer,i=0===n.endOffset?r:r.splitText(n.endOffset),l=0===n.startOffset?a:a.splitText(n.startOffset),s=l.parentNode,c=i.parentNode;return{prefix:t,end:c.insertBefore(eY(e,t+"-end"),i),start:s.insertBefore(eY(e,t+"-start"),l)}},nY=(e,t,o)=>{qK(e,e.get(t.prefix+"-end"),o),qK(e,e.get(t.prefix+"-start"),o)},aY=e=>0===e.start.length,rY=e=>(t,o)=>{const n=t.data,a=n.substring(0,o),r=a.lastIndexOf(e.charAt(e.length-1)),i=a.lastIndexOf(e);return-1!==i?i+e.length:-1!==r?r+1:-1},iY=(e,t,o,n)=>{const a=t.start,r=OP(e,n.container,n.offset,rY(a),o);return r.bind(n=>{var r,i;const l=null!==(i=null===(r=o.textContent)||void 0===r?void 0:r.indexOf(a))&&void 0!==i?i:-1,s=-1!==l&&n.offset>=l+a.length;if(s){const t=e.createRng();return t.setStart(n.container,n.offset-a.length),t.setEnd(n.container,n.offset),U.some(t)}{const r=n.offset-a.length;return CP(n.container,r,o).map(t=>{const o=e.createRng();return o.setStart(t.container,t.offset),o.setEnd(n.container,n.offset),o}).filter(e=>e.toString()===a).orThunk(()=>iY(e,t,o,bP(n.container,0)))}})},lY=(e,t,o,n,a,r=!1)=>{if(0===t.start.length&&!r){const t=e.createRng();return t.setStart(o,n),t.setEnd(o,n),U.some(t)}return wP(o,n,a).bind(o=>{const n=iY(e,t,a,o);return n.bind(e=>{var t;if(r){if(e.endContainer===o.container&&e.endOffset===o.offset)return U.none();if(0===o.offset&&(null===(t=e.endContainer.textContent)||void 0===t?void 0:t.length)===e.endOffset)return U.none()}return U.some(e)})})},sY=(e,t,o,n)=>{const a=e.dom,r=a.getRoot(),i=o.pattern,l=o.position.container,s=o.position.offset;return CP(l,s-o.pattern.end.length,t).bind(c=>{const d=MK(a,r,c.container,c.offset,l,s,n);if(aY(i))return U.some({matches:[{pattern:i,startRng:d,endRng:d}],position:c});{const l=cY(e,o.remainingPatterns,c.container,c.offset,t,n),s=l.getOr({matches:[],position:c}),u=s.position,m=lY(a,i,u.container,u.offset,t,l.isNone());return m.map(e=>{const t=RK(a,r,e,n);return{matches:s.matches.concat([{pattern:i,startRng:t,endRng:d}]),position:bP(e.startContainer,e.startOffset)}})}})},cY=(e,t,o,n,a,r)=>{const i=e.dom;return wP(o,n,i.getRoot()).bind(l=>{const s=WK(i,a,o,n);for(let i=0;i<t.length;i++){const c=t[i];if(!dt(s,c.end))continue;const d=t.slice();d.splice(i,1);const u=sY(e,a,{pattern:c,remainingPatterns:d,position:l},r);if(u.isNone()&&n>0)return cY(e,t,o,n-1,a,r);if(u.isSome())return u}return U.none()})},dY=(e,t,o)=>{e.selection.setRng(o),"inline-format"===t.type?X(t.format,t=>{e.formatter.apply(t)}):e.execCommand(t.cmd,!1,t.value)},uY=(e,t,o,n)=>{const a=tY(e.dom,o);$K(e.dom,a,n),dY(e,t,a)},mY=(e,t,o,n,a)=>{const r=e.dom,i=tY(r,n),l=tY(r,o);$K(r,l,a),$K(r,i,a);const s={prefix:o.prefix,start:o.end,end:n.start},c=tY(r,s);dY(e,t,c)},hY=(e,t)=>{const o=id("mce_textpattern"),n=ne(t,(t,n)=>{const a=oY(e,o+"_end"+t.length,n.endRng);return t.concat([{...n,endMarker:a}])},[]);return ne(n,(t,a)=>{const r=n.length-t.length-1,i=aY(a.pattern)?a.endMarker:oY(e,o+"_start"+r,a.startRng);return t.concat([{...a,startMarker:i}])},[])},pY=e=>pe(e,(e,t)=>t.end.length-e.end.length),bY=(e,t)=>{const o=de(e,e=>J(t,t=>e.pattern.start===t.pattern.start&&e.pattern.end===t.pattern.end));return e.length===t.length?o?e:t:e.length>t.length?e:t},gY=(e,t,o,n,a,r)=>{const i=cY(e,a.inlinePatterns,o,n,t,r).fold(()=>[],e=>e.matches),l=cY(e,pY(a.inlinePatterns),o,n,t,r).fold(()=>[],e=>e.matches);return bY(i,l)},fY=(e,t)=>{if(0===t.length)return;const o=e.dom,n=e.selection.getBookmark(),a=hY(o,t);X(a,t=>{const n=o.getParent(t.startMarker.start,o.isBlock),a=e=>e===n;aY(t.pattern)?uY(e,t.pattern,t.endMarker,a):mY(e,t.pattern,t.startMarker,t.endMarker,a),nY(o,t.endMarker,a),nY(o,t.startMarker,a)}),e.selection.moveToBookmark(n)},vY=(e,t)=>{const o=e.selection.getRng();return UK(e,o).map(n=>{var a;const r=Math.max(0,o.startOffset),i=HK(t,n,null!==(a=n.textContent)&&void 0!==a?a:""),l=gY(e,n,o.startContainer,r,i,!0),s=ZK(e,n,i,!0);return(s.length>0||l.length>0)&&(e.undoManager.add(),e.undoManager.extra(()=>{e.execCommand("mceInsertNewLine")},()=>{fi(e),fY(e,l),XK(e,s);const t=e.selection.getRng(),o=wP(t.startContainer,t.startOffset,e.dom.getRoot());e.execCommand("mceInsertNewLine"),o.each(t=>{const o=t.container;o.data.charAt(t.offset-1)===Lr&&(o.deleteData(t.offset-1,1),qK(e.dom,o.parentNode,t=>t===e.dom.getRoot()))})}),!0)}).getOr(!1)},wY=(e,t)=>{const o=e.selection.getRng();UK(e,o).map(n=>{const a=Math.max(0,o.startOffset-1),r=WK(e.dom,n,o.startContainer,a),i=HK(t,n,r),l=gY(e,n,o.startContainer,a,i,!1);l.length>0&&e.undoManager.transact(()=>{fY(e,l)})})},kY=(e,t,o)=>{for(let n=0;n<e.length;n++)if(o(e[n],t))return!0;return!1},CY=(e,t)=>kY(e,t,(e,t)=>e===t.keyCode&&!Jf.modifierPressed(t)),yY=(e,t)=>kY(e,t,(e,t)=>e.charCodeAt(0)===t.charCode),OY=e=>{const t=[",",".",";",":","!","?"],o=[32],n=()=>Ku(zh(e),Fh(e)),a=()=>Hh(e);e.on("keydown",t=>{if(13===t.keyCode&&!Jf.modifierPressed(t)&&e.selection.isCollapsed()){const o=n(),r=o.inlinePatterns.length>0||o.blockPatterns.length>0||a();r&&vY(e,o)&&t.preventDefault()}},!0);const r=()=>{if(e.selection.isCollapsed()){const t=n(),o=t.inlinePatterns.length>0||a();o&&wY(e,t)}};e.on("keyup",e=>{CY(o,e)&&r()}),e.on("keypress",o=>{yY(t,o)&&nk.setEditorTimeout(e,r)})},jY=e=>{OY(e)},xY=e=>{const t=ho.each,o=Jf.BACKSPACE,n=Jf.DELETE,a=e.dom,r=e.selection,i=e.parser,l=to.browser,s=l.isFirefox(),c=l.isChromium()||l.isSafari(),d=to.deviceType.isiPhone()||to.deviceType.isiPad(),u=to.os.isMacOS()||to.os.isiOS(),m=(t,o)=>{try{e.getDoc().execCommand(t,!1,String(o))}catch(n){}},h=e=>e.isDefaultPrevented(),p=()=>{const t=e=>{const t=a.create("body"),o=e.cloneContents();return t.appendChild(o),r.serializer.serialize(t,{format:"html"})},i=o=>{const n=t(o),r=a.createRng();r.selectNode(e.getBody());const i=t(r);return n===i};e.on("keydown",t=>{const r=t.keyCode;if(!h(t)&&(r===n||r===o)&&e.selection.isEditable()){const o=e.selection.isCollapsed(),n=e.getBody();if(o&&!dl(fn.fromDom(n)))return;if(!o&&!i(e.selection.getRng()))return;t.preventDefault(),e.setContent(""),n.firstChild&&a.isBlock(n.firstChild)?e.selection.setCursorLocation(n.firstChild,0):e.selection.setCursorLocation(n,0),e.nodeChanged()}})},b=()=>{e.shortcuts.add("meta+a",null,"SelectAll")},g=()=>{e.inline||a.bind(e.getDoc(),"mousedown mouseup",t=>{let o;if(t.target===e.getDoc().documentElement)if(o=r.getRng(),e.getBody().focus(),"mousedown"===t.type){if(yi(o.startContainer))return;r.placeCaretAt(t.clientX,t.clientY)}else r.setRng(o)})},f=()=>{e.on("keydown",t=>{if(!h(t)&&t.keyCode===o){if(!e.getBody().getElementsByTagName("hr").length)return;if(r.isCollapsed()&&0===r.getRng().startOffset){const e=r.getNode(),o=e.previousSibling;if("HR"===e.nodeName)return a.remove(e),void t.preventDefault();o&&o.nodeName&&"hr"===o.nodeName.toLowerCase()&&(a.remove(o),t.preventDefault())}}})},v=()=>{Range.prototype.getClientRects||e.on("mousedown",t=>{if(!h(t)&&"HTML"===t.target.nodeName){const t=e.getBody();t.blur(),nk.setEditorTimeout(e,()=>{t.focus()})}})},k=()=>{const t=gh(e);e.on("click",o=>{const n=o.target;/^(IMG|HR)$/.test(n.nodeName)&&a.isEditable(n)&&(o.preventDefault(),e.selection.select(n),e.nodeChanged()),"A"===n.nodeName&&a.hasClass(n,t)&&0===n.childNodes.length&&a.isEditable(n.parentNode)&&(o.preventDefault(),r.select(n))})},C=()=>{const o=()=>{const o=a.getAttribs(r.getStart().cloneNode(!1));return()=>{const n=r.getStart();n!==e.getBody()&&(a.setAttrib(n,"style",null),t(o,e=>{n.setAttributeNode(e.cloneNode(!0))}))}},n=()=>!r.isCollapsed()&&a.getParent(r.getStart(),a.isBlock)!==a.getParent(r.getEnd(),a.isBlock);e.on("keypress",t=>{let a;return!(!(h(t)||8!==t.keyCode&&46!==t.keyCode)&&n())||(a=o(),e.getDoc().execCommand("delete",!1),a(),t.preventDefault(),!1)}),a.bind(e.getDoc(),"cut",t=>{if(!h(t)&&n()){const t=o();nk.setEditorTimeout(e,()=>{t()})}})},y=()=>{e.on("keydown",e=>{if(!h(e)&&e.keyCode===o&&r.isCollapsed()&&0===r.getRng().startOffset){const t=r.getNode().previousSibling;if(t&&t.nodeName&&"table"===t.nodeName.toLowerCase())return e.preventDefault(),!1}return!0})},O=()=>{e.on("keydown",t=>{if(h(t)||t.keyCode!==Jf.BACKSPACE)return;let o=r.getRng();const n=o.startContainer,i=o.startOffset,l=a.getRoot();let s=n;if(o.collapsed&&0===i){while(s.parentNode&&s.parentNode.firstChild===s&&s.parentNode!==l)s=s.parentNode;"BLOCKQUOTE"===s.nodeName&&(e.formatter.toggle("blockquote",void 0,s),o=a.createRng(),o.setStart(n,0),o.setEnd(n,0),r.setRng(o))}})},j=()=>{const t=()=>{m("StyleWithCSS",!1),m("enableInlineTableEditing",!1),Pm(e)||m("enableObjectResizing",!1)};sh(e)||e.on("BeforeExecCommand mousedown",t)},x=()=>{const o=()=>{t(a.select("a:not([data-mce-block])"),e=>{var t;let o=e.parentNode;const n=a.getRoot();if((null===o||void 0===o?void 0:o.lastChild)===e){while(o&&!a.isBlock(o)){if((null===(t=o.parentNode)||void 0===t?void 0:t.lastChild)!==o||o===n)return;o=o.parentNode}a.add(o,"br",{"data-mce-bogus":1})}})};e.on("SetContent ExecCommand",e=>{"setcontent"!==e.type&&"mceInsertLink"!==e.command||o()})},_=()=>{e.on("init",()=>{m("DefaultParagraphSeparator",hm(e))})},V=e=>{const t=e.getBody(),o=e.selection.getRng();return o.startContainer===o.endContainer&&o.startContainer===t&&0===o.startOffset&&o.endOffset===t.childNodes.length},A=()=>{e.on("keyup focusin mouseup",t=>{Jf.modifierPressed(t)||V(e)||r.normalize()},!0)},N=()=>{e.contentStyles.push("img:-moz-broken {-moz-force-broken-image-icon:1;min-width:24px;min-height:24px}")},D=()=>{e.inline||e.on("keydown",()=>{document.activeElement===document.body&&e.getWin().focus()})},T=()=>{e.inline||(e.contentStyles.push("body {min-height: 150px}"),e.on("click",t=>{let o;"HTML"===t.target.nodeName&&(o=e.selection.getRng(),e.getBody().focus(),e.selection.setRng(o),e.selection.normalize(),e.nodeChanged())}))},S=()=>{u&&e.on("keydown",t=>{if(Jf.metaKeyPressed(t)&&!t.shiftKey&&(37===t.keyCode||39===t.keyCode)){t.preventDefault();const o=e.selection.getSel();o.modify("move",37===t.keyCode?"backward":"forward","lineboundary")}})},B=()=>{e.on("click",e=>{let t=e.target;do{if("A"===t.tagName)return void e.preventDefault()}while(t=t.parentNode)}),e.contentStyles.push(".mce-content-body {-webkit-touch-callout: none}")},I=()=>{e.on("init",()=>{e.dom.bind(e.getBody(),"submit",e=>{e.preventDefault()})})},z=()=>{i.addNodeFilter("br",e=>{let t=e.length;while(t--)"Apple-interchange-newline"===e[t].attr("class")&&e[t].remove()})},F=E,M=()=>{if(!s||e.removed)return!1;const t=e.selection.getSel();return!t||!t.rangeCount||0===t.rangeCount},L=()=>{c&&(g(),k(),I(),b(),d&&(D(),T(),B())),s&&(v(),j(),N(),S())},P=()=>{e.on("drop",t=>{var o;const n=null===(o=t.dataTransfer)||void 0===o?void 0:o.getData("text/html");w(n)&&/^<img[^>]*>$/.test(n)&&e.dispatch("dragend",new window.DragEvent("dragend",t))})},R=()=>{O(),p(),to.windowsPhone||A(),c&&(g(),k(),_(),I(),y(),z(),d?(D(),T(),B()):b()),s&&(f(),v(),C(),j(),x(),N(),S(),y(),P())};return bE(e)?L():R(),{refreshContentEditable:F,isHidden:M}},_Y=gc.DOM,VY=(e,t)=>{const o=fn.fromDom(e.getBody()),n=Kn(Gn(o)),a=fn.fromTag("style");Uo(a,"type","text/css"),Va(a,fn.fromText(t)),Va(n,a),e.on("remove",()=>{Ta(a)})},AY=e=>e.inline?e.getElement().nodeName.toLowerCase():void 0,NY=e=>Ne(e,e=>!1===x(e)),DY=e=>{const t=e.options.get,o=e.editorUpload.blobCache;return NY({allow_conditional_comments:t("allow_conditional_comments"),allow_html_data_urls:t("allow_html_data_urls"),allow_svg_data_urls:t("allow_svg_data_urls"),allow_html_in_named_anchor:t("allow_html_in_named_anchor"),allow_script_urls:t("allow_script_urls"),allow_unsafe_link_target:t("allow_unsafe_link_target"),convert_unsafe_embeds:t("convert_unsafe_embeds"),convert_fonts_to_spans:t("convert_fonts_to_spans"),fix_list_elements:t("fix_list_elements"),font_size_legacy_values:t("font_size_legacy_values"),forced_root_block:t("forced_root_block"),forced_root_block_attrs:t("forced_root_block_attrs"),preserve_cdata:t("preserve_cdata"),inline_styles:t("inline_styles"),root_name:AY(e),sandbox_iframes:t("sandbox_iframes"),sanitize:t("xss_sanitization"),validate:!0,blob_cache:o,document:e.getDoc()})},EY=e=>{const t=e.options.get;return NY({custom_elements:t("custom_elements"),extended_valid_elements:t("extended_valid_elements"),invalid_elements:t("invalid_elements"),invalid_styles:t("invalid_styles"),schema:t("schema"),valid_children:t("valid_children"),valid_classes:t("valid_classes"),valid_elements:t("valid_elements"),valid_styles:t("valid_styles"),verify_html:t("verify_html"),padd_empty_block_inline_children:t("format_empty_lines")})},TY=e=>{const t=e.options.get;return{...DY(e),...EY(e),...NY({remove_trailing_brs:t("remove_trailing_brs"),pad_empty_with_br:t("pad_empty_with_br"),url_converter:t("url_converter"),url_converter_scope:t("url_converter_scope"),element_format:t("element_format"),entities:t("entities"),entity_encoding:t("entity_encoding"),indent:t("indent"),indent_after:t("indent_after"),indent_before:t("indent_before")})}},SY=e=>{const t=PN(DY(e),e.schema);return t.addAttributeFilter("src,href,style,tabindex",(t,o)=>{const n=e.dom,a="data-mce-"+o;let r=t.length;while(r--){const i=t[r];let l=i.attr(o);if(l&&!i.attr(a)){if(0===l.indexOf("data:")||0===l.indexOf("blob:"))continue;"style"===o?(l=n.serializeStyle(n.parseStyle(l),i.name),l.length||(l=null),i.attr(a,l),i.attr(o,l)):"tabindex"===o?(i.attr(a,l),i.attr(o,null)):i.attr(a,e.convertURL(l,o,i.name))}}}),t.addNodeFilter("script",e=>{let t=e.length;while(t--){const o=e[t],n=o.attr("type")||"no/type";0!==n.indexOf("mce-")&&o.attr("type","mce-"+n)}}),Rh(e)&&t.addNodeFilter("#cdata",t=>{var o;let n=t.length;while(n--){const a=t[n];a.type=8,a.name="#comment",a.value="[CDATA["+e.dom.encode(null!==(o=a.value)&&void 0!==o?o:"")+"]]"}}),t.addNodeFilter("p,h1,h2,h3,h4,h5,h6,div",t=>{let o=t.length;const n=e.schema.getNonEmptyElements();while(o--){const e=t[o];e.isEmpty(n)&&0===e.getAll("br").length&&e.append(new aC("br",1))}}),t},BY=e=>{const t=Ch(e);t&&nk.setEditorTimeout(e,()=>{let o;o=!0===t?e:e.editorManager.get(t),o&&!o.destroyed&&(o.focus(),o.selection.scrollIntoView())},100)},IY=e=>{const t=e.dom.getRoot();e.inline||gg(e)&&e.selection.getStart(!0)!==t||xb(t).each(t=>{const o=t.getNode(),n=kr(o)?xb(o).getOr(t):t;e.selection.setRng(n.toRange())})},zY=e=>{e.bindPendingEventDelegates(),e.initialized=!0,If(e),e.focus(!0),IY(e),e.nodeChanged({initial:!0});const t=wh(e);A(t)&&t.call(e,e),BY(e)},FY=e=>e.inline?e.ui.styleSheetLoader:e.dom.styleSheetLoader,MY=(e,t,o)=>{const{pass:n,fail:a}=te(t,e=>tinymce.Resource.has(NS(e))),r=n.map(t=>{const o=tinymce.Resource.get(NS(t));return w(o)?Promise.resolve(FY(e).loadRawCss(t,o)):Promise.resolve()}),i=[...r,FY(e).loadAll(a)];return e.inline?i:i.concat([e.ui.styleSheetLoader.loadAll(o)])},LY=e=>{const t=FY(e),o=Fm(e),n=e.contentCSS,a=()=>{t.unloadAll(n),e.inline||e.ui.styleSheetLoader.unloadAll(o)},r=()=>{e.removed?a():e.on("remove",a)};if(e.contentStyles.length>0){let t="";ho.each(e.contentStyles,e=>{t+=e+"\r\n"}),e.dom.addStyle(t)}const i=Promise.all(MY(e,n,o)).then(r).catch(r),l=zm(e);return l&&VY(e,l),i},PY=e=>{const t=e.getDoc(),o=e.getBody();Sf(e),yh(e)||(t.body.spellcheck=!1,_Y.setAttrib(o,"spellcheck","false")),e.quirks=xY(e),Bf(e);const n=Mm(e);void 0!==n&&(o.dir=n);const a=Oh(e);a&&e.on("BeforeSetContent",e=>{ho.each(a,t=>{e.content=e.content.replace(t,e=>"\x3c!--mce:protected "+escape(e)+"--\x3e")})}),e.on("SetContent",()=>{e.addVisual(e.getBody())}),e.on("compositionstart compositionend",t=>{e.composing="compositionstart"===t.type})},RY=e=>{bE(e)||e.load({initial:!0,format:"html"}),e.startContent=e.getContent({format:"raw"})},qY=e=>{!0!==e.removed&&(RY(e),zY(e))},$Y=e=>{let t=!1;const o=setTimeout(()=>{t||e.setProgressState(!0)},500);return()=>{clearTimeout(o),t=!0,e.setProgressState(!1)}},UY=e=>{const t=e.getElement();let o=e.getDoc();e.inline&&(_Y.addClass(t,"mce-content-body"),e.contentDocument=o=document,e.contentWindow=window,e.bodyElement=t,e.contentAreaContainer=t);const n=e.getBody();n.disabled=!0,e.readonly=sh(e),e._editableRoot=ch(e),!e.readonly&&e.hasEditableRoot()&&(e.inline&&"static"===_Y.getStyle(n,"position",!0)&&(n.style.position="relative"),n.contentEditable="true"),n.disabled=!1,e.editorUpload=KS(e),e.schema=Ts(EY(e)),e.dom=gc(o,{keep_values:!0,url_converter:e.convertURL,url_converter_scope:e,update_styles:!0,root_element:e.inline?e.getBody():null,collect:e.inline,schema:e.schema,contentCssCors:Nm(e),referrerPolicy:Dm(e),onSetAttrib:t=>{e.dispatch("SetAttrib",t)},force_hex_color:Xh(e)}),e.parser=SY(e),e.serializer=CT(TY(e),e),e.selection=sT(e.dom,e.getWin(),e.serializer,e),e.annotator=Of(e),e.formatter=cB(e),e.undoManager=hB(e),e._nodeChangeDispatcher=new sH(e),e._selectionOverrides=IK(e),OM(e),gG(e),zM(e),bE(e)||(VG(e),jY(e));const a=lH(e);vM(e,a),EM(e),CB(e),hG(e);const r=fE(e);PY(e),r.fold(()=>{const t=$Y(e);LY(e).then(()=>{qY(e),t()})},t=>{e.setProgressState(!0),LY(e).then(()=>{t().then(t=>{e.setProgressState(!1),qY(e),HE(e)},t=>{e.notificationManager.open({type:"error",text:String(t)}),qY(e),HE(e)})})})},HY=$,WY=(e,t,o)=>$a(e,t,HY,o),GY=gc.DOM,KY=(e,t,o,n)=>{const a=fn.fromTag("iframe");return n.each(e=>Uo(a,"tabindex",e)),Ho(a,o),Ho(a,{id:e+"_ifr",frameBorder:"0",allowTransparency:"true",title:t}),ln(a,"tox-edit-area__iframe"),a},YY=e=>{let t=lm(e)+"<html><head>";sm(e)!==e.documentBaseUrl&&(t+='<base href="'+e.documentBaseURI.getURI()+'" />'),t+='<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />';const o=cm(e),n=dm(e),a=e.translate(fh(e));return um(e)&&(t+='<meta http-equiv="Content-Security-Policy" content="'+um(e)+'" />'),t+=`</head><body id="${o}" class="mce-content-body ${n}" data-id="${e.id}" aria-label="${a}"><br></body></html>`,t},QY=(e,t)=>{const o=e.translate("Rich Text Area"),n=Go(fn.fromDom(e.getElement()),"tabindex").bind(vt),a=KY(e.id,o,im(e),n).dom;a.onload=()=>{a.onload=null,e.dispatch("load")},e.contentAreaContainer=t.iframeContainer,e.iframeElement=a,e.iframeHTML=YY(e),GY.add(t.iframeContainer,a)},JY=e=>{const t=e.iframeElement,o=()=>{e.contentDocument=t.contentDocument,UY(e)};if(Uh(e)||to.browser.isFirefox()){const t=e.getDoc();t.open(),t.write(e.iframeHTML),t.close(),o()}else{const n=WY(fn.fromDom(t),"load",()=>{n.unbind(),o()});t.srcdoc=e.iframeHTML}},ZY=(e,t)=>{QY(e,t),t.editorContainer&&(t.editorContainer.style.display=e.orgDisplay,e.hidden=GY.isHidden(t.editorContainer)),e.getElement().style.display="none",GY.setAttrib(e.id,"aria-hidden","true"),e.getElement().style.visibility=e.orgVisibility,JY(e)},XY=gc.DOM,eQ=(e,t,o)=>{const n=mS.get(o),a=mS.urls[o]||e.documentBaseUrl.replace(/\/$/,"");if(o=ho.trim(o),n&&-1===ho.inArray(t,o)){if(e.plugins[o])return;try{const r=n(e,a)||{};e.plugins[o]=r,A(r.init)&&(r.init(e,a),t.push(o))}catch(r){_S(e,o,r)}}},tQ=e=>e.replace(/^\-/,""),oQ=e=>{const t=[];X(uh(e),o=>{eQ(e,t,tQ(o))})},nQ=e=>{const t=ho.trim(Om(e)),o=e.ui.registry.getAll().icons,n={...QT.get("default").icons,...QT.get(t).icons};Oe(n,(t,n)=>{Se(o,n)||e.ui.registry.addIcon(n,t)})},aQ=e=>{const t=Hm(e);if(w(t)){const o=hS.get(t);e.theme=o(e,hS.urls[t])||{},A(e.theme.init)&&e.theme.init(e,hS.urls[t]||e.documentBaseUrl.replace(/\/$/,""))}else e.theme={}},rQ=e=>{const t=Gm(e),o=JT.get(t);e.model=o(e,JT.urls[t])},iQ=e=>{const t=e.theme.renderUI;return t?t():dQ(e)},lQ=e=>{const t=e.getElement(),o=Hm(e),n=o(e,t);return n.editorContainer.nodeType&&(n.editorContainer.id=n.editorContainer.id||e.id+"_parent"),n.iframeContainer&&n.iframeContainer.nodeType&&(n.iframeContainer.id=n.iframeContainer.id||e.id+"_iframecontainer"),n.height=n.iframeHeight?n.iframeHeight:t.offsetHeight,n},sQ=(e,t)=>({editorContainer:e,iframeContainer:t,api:{}}),cQ=e=>{const t=XY.create("div");return XY.insertAfter(t,e),sQ(t,t)},dQ=e=>{const t=e.getElement();return e.inline?sQ(null):cQ(t)},uQ=e=>{const t=e.getElement();return e.orgDisplay=t.style.display,w(Hm(e))?iQ(e):A(Hm(e))?lQ(e):dQ(e)},mQ=(e,t)=>{const o={show:U.from(t.show).getOr(E),hide:U.from(t.hide).getOr(E),isEnabled:U.from(t.isEnabled).getOr($),setEnabled:o=>{e.mode.isReadOnly()||U.from(t.setEnabled).each(e=>e(o))}};e.ui={...e.ui,...o}},hQ=async e=>{e.dispatch("ScriptsLoaded"),nQ(e),aQ(e),rQ(e),oQ(e);const t=await uQ(e);mQ(e,U.from(t.api).getOr({})),e.editorContainer=t.editorContainer,BS(e),e.inline?UY(e):ZY(e,{editorContainer:t.editorContainer,iframeContainer:t.iframeContainer})},pQ=gc.DOM,bQ=e=>"-"===e.charAt(0),gQ=(e,t)=>{const o=Em(t),n=Tm(t);if(!Fc.hasCode(o)&&"en"!==o){const a=bt(n)?n:`${t.editorManager.baseURL}/langs/${o}.js`;e.add(a).catch(()=>{OS(t,a,o)})}},fQ=(e,t)=>{const o=Hm(e);if(w(o)&&!bQ(o)&&!Se(hS.urls,o)){const n=Wm(e),a=n?e.documentBaseURI.toAbsolute(n):`themes/${o}/theme${t}.js`;hS.load(o,a).catch(()=>{jS(e,a,o)})}},vQ=(e,t)=>{const o=Gm(e);if("plugin"!==o&&!Se(JT.urls,o)){const n=Km(e),a=w(n)?e.documentBaseURI.toAbsolute(n):`models/${o}/model${t}.js`;JT.load(o,a).catch(()=>{xS(e,a,o)})}},wQ=e=>U.from(jm(e)).filter(bt).map(e=>({url:e,name:U.none()})),kQ=(e,t,o)=>U.from(t).filter(e=>bt(e)&&!QT.has(e)).map(t=>({url:`${e.editorManager.baseURL}/icons/${t}/icons${o}.js`,name:U.some(t)})),CQ=(e,t,o)=>{const n=kQ(t,"default",o),a=wQ(t).orThunk(()=>kQ(t,Om(t),""));X(go([n,a]),o=>{e.add(o.url).catch(()=>{yS(t,o.url,o.name.getOrUndefined())})})},yQ=(e,t)=>{const o=(t,o)=>{mS.load(t,o).catch(()=>{CS(e,o,t)})};Oe(mh(e),(t,n)=>{o(n,t),e.options.set("plugins",uh(e).concat(n))}),X(uh(e),e=>{e=ho.trim(e),!e||mS.urls[e]||bQ(e)||o(e,`plugins/${e}/plugin${t}.js`)})},OQ=e=>{const t=Hm(e);return!w(t)||V(hS.get(t))},jQ=e=>{const t=Gm(e);return V(JT.get(t))},xQ=(e,t)=>{const o=yc.ScriptLoader,n=()=>{!e.removed&&OQ(e)&&jQ(e)&&hQ(e)};fQ(e,t),vQ(e,t),gQ(o,e),CQ(o,e,t),yQ(e,t),o.loadQueue().then(n,n)},_Q=(e,t)=>Rl.forElement(e,{contentCssCors:dh(t),referrerPolicy:Dm(t)}),VQ=e=>{const t=e.id;Fc.setCode(Em(e));const o=()=>{pQ.unbind(window,"ready",o),e.render()};if(!ac.Event.domLoaded)return void pQ.bind(window,"ready",o);if(!e.getElement())return;const n=fn.fromDom(e.getElement()),a=Jo(n);e.on("remove",()=>{ee(n.dom.attributes,e=>Yo(n,e.name)),Ho(n,a)}),e.ui.styleSheetLoader=_Q(n,e),th(e)?e.inline=!0:(e.orgVisibility=e.getElement().style.visibility,e.getElement().style.visibility="hidden");const r=e.getElement().form||pQ.getParent(t,"form");r&&(e.formElement=r,oh(e)&&!yr(e.getElement())&&(pQ.insertAfter(pQ.create("input",{type:"hidden",name:t}),t),e.hasHiddenInput=!0),e.formEventDelegate=t=>{e.dispatch(t.type,t)},pQ.bind(r,"submit reset",e.formEventDelegate),e.on("reset",()=>{e.resetContent()}),!nh(e)||r.submit.nodeType||r.submit.length||r._mceOldSubmit||(r._mceOldSubmit=r.submit,r.submit=()=>(e.editorManager.triggerSave(),e.setDirty(!1),r._mceOldSubmit(r)))),e.windowManager=bS(e),e.notificationManager=uS(e),Kh(e)&&e.on("GetContent",e=>{e.save&&(e.content=pQ.encode(e.content))}),ah(e)&&e.on("submit",()=>{e.initialized&&e.save()}),rh(e)&&(e._beforeUnload=()=>{!e.initialized||e.destroyed||e.isHidden()||e.save({format:"raw",no_events:!0,set_dirty:!1})},e.editorManager.on("BeforeUnload",e._beforeUnload)),e.editorManager.add(e),xQ(e,e.suffix)},AQ=(e,t)=>{e._editableRoot!==t&&(e._editableRoot=t,e.readonly||(e.getBody().contentEditable=String(e.hasEditableRoot()),e.nodeChanged()),Qf(e,t))},NQ=e=>e._editableRoot,DQ=(e,t)=>({sections:B(e),options:B(t)}),EQ=Kt().deviceType,TQ=EQ.isPhone(),SQ=EQ.isTablet(),BQ=e=>{if(_(e))return[];{const t=y(e)?e:e.split(/[ ,]/),o=Z(t,mt);return oe(o,bt)}},IQ=(e,t)=>{const o=Ae(t,(t,o)=>Q(e,o));return DQ(o.t,o.f)},zQ=(e,t,o={})=>{const n=e.sections(),a=Te(n,t).getOr({});return ho.extend({},o,a)},FQ=(e,t)=>Se(e.sections(),t),MQ=(e,t)=>FQ(e,t)?e.sections()[t]:{},LQ=(e,t)=>{const o={table_grid:!1,object_resizing:!1,resize:!1,toolbar_mode:Te(e,"toolbar_mode").getOr("scrolling"),toolbar_sticky:!1},n={menubar:!1};return{...o,...t?n:{}}},PQ=(e,t)=>{var o;const n=null!==(o=t.external_plugins)&&void 0!==o?o:{};return e&&e.external_plugins?ho.extend({},e.external_plugins,n):n},RQ=(e,t)=>[...BQ(e),...BQ(t)],qQ=(e,t,o,n)=>e&&FQ(t,"mobile")?n:o,$Q=(e,t,o,n)=>{const a=BQ(o.forced_plugins),r=BQ(n.plugins),i=MQ(t,"mobile"),l=i.plugins?BQ(i.plugins):r,s=qQ(e,t,r,l),c=RQ(a,s);return ho.extend(n,{forced_plugins:a,plugins:c})},UQ=(e,t)=>e&&FQ(t,"mobile"),HQ=(e,t,o,n,a)=>{var r;const i=e?{mobile:LQ(null!==(r=a.mobile)&&void 0!==r?r:{},t)}:{},l=IQ(["mobile"],dR(i,a)),s=ho.extend(o,n,l.options(),UQ(e,l)?zQ(l,"mobile"):{},{external_plugins:PQ(n,l.options())});return $Q(e,l,n,s)},WQ=(e,t)=>HQ(TQ||SQ,TQ,t,e,t),GQ=(e,t)=>UE(e,t),KQ=e=>{const t=(t,o)=>{e.formatter.toggle(t,o),e.nodeChanged()},o=o=>()=>{X("left,center,right,justify".split(","),t=>{o!==t&&e.formatter.remove("align"+t)}),"none"!==o&&t("align"+o)};e.editorCommands.addCommands({JustifyLeft:o("left"),JustifyCenter:o("center"),JustifyRight:o("right"),JustifyFull:o("justify"),JustifyNone:o("none")})},YQ=e=>{const t=t=>()=>{const o=e.selection,n=o.isCollapsed()?[e.dom.getParent(o.getNode(),e.dom.isBlock)]:o.getSelectedBlocks();return J(n,o=>V(e.formatter.matchNode(o,t)))};e.editorCommands.addCommands({JustifyLeft:t("alignleft"),JustifyCenter:t("aligncenter"),JustifyRight:t("alignright"),JustifyFull:t("alignjustify")},"state")},QQ=e=>{KQ(e),YQ(e)},JQ=e=>{e.editorCommands.addCommands({"Cut,Copy,Paste":t=>{const o=e.getDoc();let n;try{o.execCommand(t)}catch(a){n=!0}if("paste"!==t||o.queryCommandEnabled(t)||(n=!0),n||!o.queryCommandSupported(t)){let t=e.translate("Your browser doesn't support direct access to the clipboard. Please use the Ctrl+X/C/V keyboard shortcuts instead.");(to.os.isMacOS()||to.os.isiOS())&&(t=t.replace(/Ctrl\+/g,"⌘+")),e.notificationManager.open({text:t,type:"error"})}}})},ZQ=(e,t,o,n)=>{const a=fn.fromDom(e.getRoot());return o=Ny(a,tu.fromRangeStart(t),n)?o.replace(/^ /,"&nbsp;"):o.replace(/^&nbsp;/," "),o=Ey(a,tu.fromRangeEnd(t),n)?o.replace(/(&nbsp;| )(<br( \/)>)?$/,"&nbsp;"):o.replace(/&nbsp;(<br( \/)?>)?$/," "),o},XQ=e=>{if("string"!==typeof e){const t=ho.extend({paste:e.paste,data:{paste:e.paste}},e);return{content:e.content,details:t}}return{content:e,details:{}}},eJ=(e,t)=>{const o=e.selection,n=e.dom;return/^ | $/.test(t)?ZQ(n,o.getRng(),t,e.schema):t},tJ=(e,t)=>{if(e.selection.isEditable()){const{content:o,details:n}=XQ(t);HN(e,{...n,content:eJ(e,o),format:"html",set:!1,selection:!0}).each(t=>{const o=qE(e,t.content,n);WN(e,o,t),e.addVisual()})}},oJ=e=>{e.editorCommands.addCommands({mceCleanup:()=>{const t=e.selection.getBookmark();e.setContent(e.getContent()),e.selection.moveToBookmark(t)},insertImage:(t,o,n)=>{tJ(e,e.dom.createHTML("img",{src:n}))},insertHorizontalRule:()=>{e.execCommand("mceInsertContent",!1,"<hr>")},insertText:(t,o,n)=>{tJ(e,e.dom.encode(n))},insertHTML:(t,o,n)=>{tJ(e,n)},mceInsertContent:(t,o,n)=>{tJ(e,n)},mceSetContent:(t,o,n)=>{e.setContent(n)},mceReplaceContent:(t,o,n)=>{e.execCommand("mceInsertContent",!1,n.replace(/\{\$selection\}/g,e.selection.getContent({format:"text"})))},mceNewDocument:()=>{e.setContent(Ah(e))}})},nJ={"font-size":"size","font-family":"face"},aJ=qo("font"),rJ=(e,t,o)=>{const n=t=>ka(t,e).orThunk(()=>aJ(t)?Te(nJ,e).bind(e=>Go(t,e)):U.none()),a=e=>On(fn.fromDom(t),e);return Qx(fn.fromDom(o),e=>n(e),a)},iJ=e=>e.replace(/[\'\"\\]/g,"").replace(/,\s+/g,","),lJ=(e,t)=>U.from(gc.DOM.getStyle(t,e,!0)),sJ=e=>(t,o)=>U.from(o).map(fn.fromDom).filter(Mo).bind(o=>rJ(e,t,o.dom).or(lJ(e,o.dom))).getOr(""),cJ=sJ("font-size"),dJ=T(iJ,sJ("font-family")),uJ=e=>xb(e.getBody()).bind(e=>{const t=e.container();return U.from(Or(t)?t.parentNode:t)}),mJ=e=>U.from(e.selection.getRng()).bind(t=>{const o=e.getBody(),n=t.startContainer===o&&0===t.startOffset;return n?U.none():U.from(e.selection.getStart(!0))}),hJ=(e,t)=>mJ(e).orThunk(F(uJ,e)).map(fn.fromDom).filter(Mo).bind(t),pJ=(e,t)=>hJ(e,S(U.some,t)),bJ=(e,t)=>{if(/^[0-9.]+$/.test(t)){const o=parseInt(t,10);if(o>=1&&o<=7){const n=Wh(e),a=Gh(e);return a.length>0?a[o-1]||t:n[o-1]||t}return t}return t},gJ=e=>{const t=e.split(/\s*,\s*/);return Z(t,e=>-1===e.indexOf(" ")||ct(e,'"')||ct(e,"'")?e:`'${e}'`).join(",")},fJ=(e,t)=>{const o=bJ(e,t);e.formatter.toggle("fontname",{value:gJ(o)}),e.nodeChanged()},vJ=e=>pJ(e,t=>dJ(e.getBody(),t.dom)).getOr(""),wJ=(e,t)=>{e.formatter.toggle("fontsize",{value:bJ(e,t)}),e.nodeChanged()},kJ=e=>pJ(e,t=>cJ(e.getBody(),t.dom)).getOr(""),CJ=e=>pJ(e,t=>{const o=fn.fromDom(e.getBody()),n=Qx(t,e=>ka(e,"line-height"),F(On,o)),a=()=>{const e=parseFloat(va(t,"line-height")),o=parseFloat(va(t,"font-size"));return String(e/o)};return n.getOrThunk(a)}).getOr(""),yJ=(e,t)=>{e.formatter.toggle("lineheight",{value:String(t)}),e.nodeChanged()},OJ=e=>{const t=(t,o)=>{e.formatter.toggle(t,o),e.nodeChanged()};e.editorCommands.addCommands({"Bold,Italic,Underline,Strikethrough,Superscript,Subscript":e=>{t(e)},"ForeColor,HiliteColor":(e,o,n)=>{t(e,{value:n})},BackColor:(e,o,n)=>{t("hilitecolor",{value:n})},FontName:(t,o,n)=>{fJ(e,n)},FontSize:(t,o,n)=>{wJ(e,n)},LineHeight:(t,o,n)=>{yJ(e,n)},Lang:(e,o,n)=>{var a;t(e,{value:n.code,customValue:null!==(a=n.customCode)&&void 0!==a?a:null})},RemoveFormat:t=>{e.formatter.remove(t)},mceBlockQuote:()=>{t("blockquote")},FormatBlock:(e,o,n)=>{t(w(n)?n:"p")},mceToggleFormat:(e,o,n)=>{t(n)}})},jJ=e=>{const t=t=>e.formatter.match(t);e.editorCommands.addCommands({"Bold,Italic,Underline,Strikethrough,Superscript,Subscript":e=>t(e),mceBlockQuote:()=>t("blockquote")},"state"),e.editorCommands.addQueryValueHandler("FontName",()=>vJ(e)),e.editorCommands.addQueryValueHandler("FontSize",()=>kJ(e)),e.editorCommands.addQueryValueHandler("LineHeight",()=>CJ(e))},xJ=e=>{OJ(e),jJ(e)},_J=e=>{e.editorCommands.addCommands({mceAddUndoLevel:()=>{e.undoManager.add()},mceEndUndoLevel:()=>{e.undoManager.add()},Undo:()=>{e.undoManager.undo()},Redo:()=>{e.undoManager.redo()}})},VJ=e=>{e.editorCommands.addCommands({Indent:()=>{mM(e)},Outdent:()=>{hM(e)}}),e.editorCommands.addCommands({Outdent:()=>lM(e)},"state")},AJ=e=>{const t=(t,o,n)=>{const a=w(n)?{href:n}:n,r=e.dom.getParent(e.selection.getNode(),"a");k(a)&&w(a.href)&&(a.href=a.href.replace(/ /g,"%20"),r&&a.href||e.formatter.remove("link"),a.href&&e.formatter.apply("link",a,r))};e.editorCommands.addCommands({unlink:()=>{if(e.selection.isEditable()){if(e.selection.isCollapsed()){const t=e.dom.getParent(e.selection.getStart(),"a");return void(t&&e.dom.remove(t,!0))}e.formatter.remove("link")}},mceInsertLink:t,createLink:t})},NJ=e=>{e.editorCommands.addCommands({"InsertUnorderedList,InsertOrderedList":t=>{e.getDoc().execCommand(t);const o=e.dom.getParent(e.selection.getNode(),"ol,ul");if(o){const t=o.parentNode;if(t&&/^(H[1-6]|P|ADDRESS|PRE)$/.test(t.nodeName)){const n=e.selection.getBookmark();e.dom.split(t,o),e.selection.moveToBookmark(n)}}}})},DJ=e=>{e.editorCommands.addCommands({"InsertUnorderedList,InsertOrderedList":t=>{const o=e.dom.getParent(e.selection.getNode(),"ul,ol");return o&&("insertunorderedlist"===t&&"UL"===o.tagName||"insertorderedlist"===t&&"OL"===o.tagName)}},"state")},EJ=e=>{NJ(e),DJ(e)},TJ=(e,t,o,n)=>{const a=e.dom,r=e=>a.isBlock(e)&&e.parentElement===o,i=r(t)?t:a.getParent(n,r,o);return U.from(i).map(fn.fromDom)},SJ=(e,t)=>{const o=e.dom,n=e.selection.getRng(),a=t?e.selection.getStart():e.selection.getEnd(),r=t?n.startContainer:n.endContainer,i=b$(o,r);if(!i||!i.isContentEditable)return;const l=t?ja:xa,s=hm(e);TJ(e,a,i,r).each(t=>{const o=y$(e,r,t.dom,i,!1,s);l(t,fn.fromDom(o)),e.selection.setCursorLocation(o,0),e.dispatch("NewBlock",{newBlock:o}),n$(e,"insertParagraph")})},BJ=e=>SJ(e,!0),IJ=e=>SJ(e,!1),zJ=e=>{e.editorCommands.addCommands({InsertNewBlockBefore:()=>{BJ(e)},InsertNewBlockAfter:()=>{IJ(e)}})},FJ=e=>{e.editorCommands.addCommands({insertParagraph:()=>{NU(J$,e)},mceInsertNewLine:(t,o,n)=>{DU(e,n)},InsertLineBreak:(t,o,n)=>{NU(uU,e)}})},MJ=e=>{e.editorCommands.addCommands({mceSelectNodeDepth:(t,o,n)=>{let a=0;e.dom.getParent(e.selection.getNode(),t=>!dr(t)||a++!==n||(e.selection.select(t),!1),e.getBody())},mceSelectNode:(t,o,n)=>{e.selection.select(n)},selectAll:()=>{const t=e.dom.getParent(e.selection.getStart(),Er);if(t){const o=e.dom.createRng();o.selectNodeContents(t),e.selection.setRng(o)}}})},LJ=e=>{e.editorCommands.addCommands({mceRemoveNode:(t,o,n)=>{const a=null!==n&&void 0!==n?n:e.selection.getNode();if(a!==e.getBody()){const t=e.selection.getBookmark();e.dom.remove(a,!0),e.selection.moveToBookmark(t)}},mcePrint:()=>{e.getWin().print()},mceFocus:(t,o,n)=>{Ek(e,!0===n)},mceToggleVisualAid:()=>{e.hasVisual=!e.hasVisual,e.addVisual()}})},PJ=e=>{QQ(e),JQ(e),_J(e),MJ(e),oJ(e),AJ(e),VJ(e),zJ(e),FJ(e),EJ(e),xJ(e),LJ(e)},RJ=["toggleview"],qJ=e=>Q(RJ,e.toLowerCase());class $J{constructor(e){this.commands={state:{},exec:{},value:{}},this.editor=e}execCommand(e,t=!1,o,n){const a=this.editor,r=e.toLowerCase(),i=null===n||void 0===n?void 0:n.skip_focus;if(a.removed)return!1;"mcefocus"!==r&&(/^(mceAddUndoLevel|mceEndUndoLevel)$/i.test(r)||i?Zw(a):a.focus());const l=a.dispatch("BeforeExecCommand",{command:e,ui:t,value:o});if(l.isDefaultPrevented())return!1;const s=this.commands.exec[r];return!!A(s)&&(s(r,t,o),a.dispatch("ExecCommand",{command:e,ui:t,value:o}),!0)}queryCommandState(e){if(!qJ(e)&&this.editor.quirks.isHidden()||this.editor.removed)return!1;const t=e.toLowerCase(),o=this.commands.state[t];return!!A(o)&&o(t)}queryCommandValue(e){if(!qJ(e)&&this.editor.quirks.isHidden()||this.editor.removed)return"";const t=e.toLowerCase(),o=this.commands.value[t];return A(o)?o(t):""}addCommands(e,t="exec"){const o=this.commands;Oe(e,(e,n)=>{X(n.toLowerCase().split(","),n=>{o[t][n]=e})})}addCommand(e,t,o){const n=e.toLowerCase();this.commands.exec[n]=(e,n,a)=>t.call(null!==o&&void 0!==o?o:this.editor,n,a)}queryCommandSupported(e){const t=e.toLowerCase();return!!this.commands.exec[t]}addQueryStateHandler(e,t,o){this.commands.state[e.toLowerCase()]=()=>t.call(null!==o&&void 0!==o?o:this.editor)}addQueryValueHandler(e,t,o){this.commands.value[e.toLowerCase()]=()=>t.call(null!==o&&void 0!==o?o:this.editor)}}const UJ="data-mce-contenteditable",HJ=(e,t,o)=>{un(e,t)&&!o?cn(e,t):o&&ln(e,t)},WJ=(e,t,o)=>{try{e.getDoc().execCommand(t,!1,String(o))}catch(n){}},GJ=(e,t)=>{e.dom.contentEditable=t?"true":"false"},KJ=e=>{X(rr(e,'*[contenteditable="true"]'),e=>{Uo(e,UJ,"true"),GJ(e,!1)})},YJ=e=>{X(rr(e,`*[${UJ}="true"]`),e=>{Yo(e,UJ),GJ(e,!0)})},QJ=e=>{U.from(e.selection.getNode()).each(e=>{e.removeAttribute("data-mce-selected")})},JJ=e=>{e.selection.setRng(e.selection.getRng())},ZJ=(e,t)=>{const o=fn.fromDom(e.getBody());HJ(o,"mce-content-readonly",t),t?(e.selection.controlSelection.hideResizeRect(),e._selectionOverrides.hideFakeCaret(),QJ(e),e.readonly=!0,GJ(o,!1),KJ(o)):(e.readonly=!1,e.hasEditableRoot()&&GJ(o,!0),YJ(o),WJ(e,"StyleWithCSS",!1),WJ(e,"enableInlineTableEditing",!1),WJ(e,"enableObjectResizing",!1),Ak(e)&&e.focus(),JJ(e),e.nodeChanged())},XJ=e=>e.readonly,eZ=e=>{e.parser.addAttributeFilter("contenteditable",t=>{XJ(e)&&X(t,e=>{e.attr(UJ,e.attr("contenteditable")),e.attr("contenteditable","false")})}),e.serializer.addAttributeFilter(UJ,t=>{XJ(e)&&X(t,e=>{e.attr("contenteditable",e.attr(UJ))})}),e.serializer.addTempAttr(UJ)},tZ=e=>{e.serializer?eZ(e):e.on("PreInit",()=>{eZ(e)})},oZ=e=>"click"===e.type,nZ=["copy"],aZ=e=>Q(nZ,e.type),rZ=(e,t)=>{const o=t=>On(t,fn.fromDom(e.getBody()));return ca(t,"a",o).bind(e=>Go(e,"href"))},iZ=(e,t)=>{if(oZ(t)&&!Jf.metaKeyPressed(t)){const o=fn.fromDom(t.target);rZ(e,o).each(o=>{if(t.preventDefault(),/^#/.test(o)){const t=e.dom.select(`${o},[name="${lt(o,"#")}"]`);t.length&&e.selection.scrollIntoView(t[0],!0)}else window.open(o,"_blank","rel=noopener noreferrer,menubar=yes,toolbar=yes,location=yes,status=yes,resizable=yes,scrollbars=yes")})}else aZ(t)&&e.dispatch(t.type,t)},lZ=e=>{e.on("ShowCaret",t=>{XJ(e)&&t.preventDefault()}),e.on("ObjectSelected",t=>{XJ(e)&&t.preventDefault()})},sZ=ho.makeMap("focus blur focusin focusout click dblclick mousedown mouseup mousemove mouseover beforepaste paste cut copy selectionchange mouseout mouseenter mouseleave wheel keydown keypress keyup input beforeinput contextmenu dragstart dragend dragover draggesture dragdrop drop drag submit compositionstart compositionend compositionupdate touchstart touchmove touchend touchcancel"," ");class cZ{static isNative(e){return!!sZ[e.toLowerCase()]}constructor(e){this.bindings={},this.settings=e||{},this.scope=this.settings.scope||this,this.toggleEvent=this.settings.toggleEvent||q}fire(e,t){return this.dispatch(e,t)}dispatch(e,t){const o=e.toLowerCase(),n=Qs(o,null!==t&&void 0!==t?t:{},this.scope);this.settings.beforeFire&&this.settings.beforeFire(n);const a=this.bindings[o];if(a)for(let r=0,i=a.length;r<i;r++){const e=a[r];if(!e.removed){if(e.once&&this.off(o,e.func),n.isImmediatePropagationStopped())return n;if(!1===e.func.call(this.scope,n))return n.preventDefault(),n}}return n}on(e,t,o,n){if(!1===t&&(t=q),t){const a={func:t,removed:!1};n&&ho.extend(a,n);const r=e.toLowerCase().split(" ");let i=r.length;while(i--){const e=r[i];let t=this.bindings[e];t||(t=[],this.toggleEvent(e,!0)),t=o?[a,...t]:[...t,a],this.bindings[e]=t}}return this}off(e,t){if(e){const o=e.toLowerCase().split(" ");let n=o.length;while(n--){const a=o[n];let r=this.bindings[a];if(!a)return Oe(this.bindings,(e,t)=>{this.toggleEvent(t,!1),delete this.bindings[t]}),this;if(r){if(t){const e=te(r,e=>e.func===t);r=e.fail,this.bindings[a]=r,X(e.pass,e=>{e.removed=!0})}else r.length=0;r.length||(this.toggleEvent(e,!1),delete this.bindings[a])}}}else Oe(this.bindings,(e,t)=>{this.toggleEvent(t,!1)}),this.bindings={};return this}once(e,t,o){return this.on(e,t,o,{once:!0})}has(e){e=e.toLowerCase();const t=this.bindings[e];return!(!t||0===t.length)}}const dZ=e=>(e._eventDispatcher||(e._eventDispatcher=new cZ({scope:e,toggleEvent:(t,o)=>{cZ.isNative(t)&&e.toggleNativeEvent&&e.toggleNativeEvent(t,o)}})),e._eventDispatcher),uZ={fire(e,t,o){return this.dispatch(e,t,o)},dispatch(e,t,o){const n=this;if(n.removed&&"remove"!==e&&"detach"!==e)return Qs(e.toLowerCase(),null!==t&&void 0!==t?t:{},n);const a=dZ(n).dispatch(e,t);if(!1!==o&&n.parent){let t=n.parent();while(t&&!a.isPropagationStopped())t.dispatch(e,a,!1),t=t.parent?t.parent():void 0}return a},on(e,t,o){return dZ(this).on(e,t,o)},off(e,t){return dZ(this).off(e,t)},once(e,t){return dZ(this).once(e,t)},hasEventListeners(e){return dZ(this).has(e)}},mZ=gc.DOM;let hZ;const pZ=(e,t)=>{if("selectionchange"===t)return e.getDoc();if(!e.inline&&/^(?:mouse|touch|click|contextmenu|drop|dragover|dragend)/.test(t))return e.getDoc().documentElement;const o=$m(e);return o?(e.eventRoot||(e.eventRoot=mZ.select(o)[0]),e.eventRoot):e.getBody()},bZ=e=>!e.hidden&&!XJ(e),gZ=(e,t,o)=>{bZ(e)?e.dispatch(t,o):XJ(e)&&iZ(e,o)},fZ=(e,t)=>{if(e.delegates||(e.delegates={}),e.delegates[t]||e.removed)return;const o=pZ(e,t);if($m(e)){if(hZ||(hZ={},e.editorManager.on("removeEditor",()=>{e.editorManager.activeEditor||hZ&&(Oe(hZ,(t,o)=>{e.dom.unbind(pZ(e,o))}),hZ=null)})),hZ[t])return;const n=o=>{const n=o.target,a=e.editorManager.get();let r=a.length;while(r--){const e=a[r].getBody();(e===n||mZ.isChildOf(n,e))&&gZ(a[r],t,o)}};hZ[t]=n,mZ.bind(o,t,n)}else{const n=o=>{gZ(e,t,o)};mZ.bind(o,t,n),e.delegates[t]=n}},vZ={...uZ,bindPendingEventDelegates(){const e=this;ho.each(e._pendingNativeEvents,t=>{fZ(e,t)})},toggleNativeEvent(e,t){const o=this;"focus"!==e&&"blur"!==e&&(o.removed||(t?o.initialized?fZ(o,e):o._pendingNativeEvents?o._pendingNativeEvents.push(e):o._pendingNativeEvents=[e]:o.initialized&&o.delegates&&(o.dom.unbind(pZ(o,e),e,o.delegates[e]),delete o.delegates[e])))},unbindAllNativeEvents(){const e=this,t=e.getBody(),o=e.dom;e.delegates&&(Oe(e.delegates,(t,o)=>{e.dom.unbind(pZ(e,o),o,t)}),delete e.delegates),!e.inline&&t&&o&&(t.onload=null,o.unbind(e.getWin()),o.unbind(e.getDoc())),o&&(o.unbind(t),o.unbind(e.getContainer()))}},wZ=e=>w(e)?{value:e.split(/[ ,]/),valid:!0}:D(e,w)?{value:e,valid:!0}:{valid:!1,message:"The value must be a string[] or a comma/space separated string."},kZ=e=>{const t=(()=>{switch(e){case"array":return y;case"boolean":return j;case"function":return A;case"number":return N;case"object":return k;case"string":return w;case"string[]":return wZ;case"object[]":return e=>D(e,k);case"regexp":return e=>v(e,RegExp);default:return $}})();return o=>jZ(o,t,`The value must be a ${e}.`)},CZ=e=>w(e.processor),yZ=(e,t)=>{const o=gt(t.message)?"":". "+t.message;return e+o},OZ=e=>e.valid,jZ=(e,t,o="")=>{const n=t(e);return j(n)?n?{value:e,valid:!0}:{valid:!1,message:o}:n},xZ=(e,t,o)=>{if(!x(t)){const n=jZ(t,o);if(OZ(n))return n.value;console.error(yZ(`Invalid default value passed for the "${e}" option`,n))}},_Z=(e,t)=>{const o={},n={},a=(e,t,o)=>{const a=jZ(t,o);return OZ(a)?(n[e]=a.value,!0):(console.warn(yZ(`Invalid value passed for the ${e} option`,a)),!1)},r=(e,r)=>{const i=CZ(r)?kZ(r.processor):r.processor,l=xZ(e,r.default,i);o[e]={...r,default:l,processor:i};const s=Te(n,e).orThunk(()=>Te(t,e));s.each(t=>a(e,t,i))},i=e=>Se(o,e),l=e=>Te(n,e).orThunk(()=>Te(o,e).map(e=>e.default)).getOrUndefined(),s=(e,t)=>{if(i(e)){const n=o[e];return n.immutable?(console.error(`"${e}" is an immutable option and cannot be updated`),!1):a(e,t,n.processor)}return console.warn(`"${e}" is not a registered option. Ensure the option has been registered before setting a value.`),!1},c=e=>{const t=i(e);return t&&delete n[e],t},d=e=>Se(n,e);return{register:r,isRegistered:i,get:l,set:s,unset:c,isSet:d}},VZ=["design","readonly"],AZ=(e,t,o,n)=>{const a=o[t.get()],r=o[n];try{r.activate()}catch(i){return void console.error(`problem while activating editor mode ${n}:`,i)}a.deactivate(),a.editorReadOnly!==r.editorReadOnly&&ZJ(e,r.editorReadOnly),t.set(n),Df(e,n)},NZ=(e,t,o,n)=>{if(n!==o.get()){if(!Se(t,n))throw new Error(`Editor mode '${n}' is invalid`);e.initialized?AZ(e,o,t,n):e.on("init",()=>AZ(e,o,t,n))}},DZ=(e,t,o)=>{if(Q(VZ,t))throw new Error("Cannot override default mode "+t);return{...e,[t]:{...o,deactivate:()=>{try{o.deactivate()}catch(e){console.error(`problem while deactivating editor mode ${t}:`,e)}}}}},EZ=e=>{const t=Oc("design"),o=Oc({design:{activate:E,deactivate:E,editorReadOnly:!1},readonly:{activate:E,deactivate:E,editorReadOnly:!0}});return tZ(e),lZ(e),{isReadOnly:()=>XJ(e),set:n=>NZ(e,o.get(),t,n),get:()=>t.get(),register:(e,t)=>{o.set(DZ(o.get(),e,t))}}},TZ=ho.each,SZ=ho.explode,BZ={f1:112,f2:113,f3:114,f4:115,f5:116,f6:117,f7:118,f8:119,f9:120,f10:121,f11:122,f12:123},IZ=ho.makeMap("alt,ctrl,shift,meta,access"),zZ=e=>e in IZ,FZ=e=>{const t={},o=to.os.isMacOS()||to.os.isiOS();TZ(SZ(e.toLowerCase(),"+"),e=>{zZ(e)?t[e]=!0:/^[0-9]{2,}$/.test(e)?t.keyCode=parseInt(e,10):(t.charCode=e.charCodeAt(0),t.keyCode=BZ[e]||e.toUpperCase().charCodeAt(0))});const n=[t.keyCode];let a;for(a in IZ)t[a]?n.push(a):t[a]=!1;return t.id=n.join(","),t.access&&(t.alt=!0,o?t.ctrl=!0:t.shift=!0),t.meta&&(o?t.meta=!0:(t.ctrl=!0,t.meta=!1)),t};class MZ{constructor(e){this.shortcuts={},this.pendingPatterns=[],this.editor=e;const t=this;e.on("keyup keypress keydown",e=>{!t.hasModifier(e)&&!t.isFunctionKey(e)||e.isDefaultPrevented()||(TZ(t.shortcuts,o=>{t.matchShortcut(e,o)&&(t.pendingPatterns=o.subpatterns.slice(0),"keydown"===e.type&&t.executeShortcutAction(o))}),t.matchShortcut(e,t.pendingPatterns[0])&&(1===t.pendingPatterns.length&&"keydown"===e.type&&t.executeShortcutAction(t.pendingPatterns[0]),t.pendingPatterns.shift()))})}add(e,t,o,n){const a=this,r=a.normalizeCommandFunc(o);return TZ(SZ(ho.trim(e)),e=>{const o=a.createShortcut(e,t,r,n);a.shortcuts[o.id]=o}),!0}remove(e){const t=this.createShortcut(e);return!!this.shortcuts[t.id]&&(delete this.shortcuts[t.id],!0)}normalizeCommandFunc(e){const t=this,o=e;return"string"===typeof o?()=>{t.editor.execCommand(o,!1,null)}:ho.isArray(o)?()=>{t.editor.execCommand(o[0],o[1],o[2])}:o}createShortcut(e,t,o,n){const a=ho.map(SZ(e,">"),FZ);return a[a.length-1]=ho.extend(a[a.length-1],{func:o,scope:n||this.editor}),ho.extend(a[0],{desc:this.editor.translate(t),subpatterns:a.slice(1)})}hasModifier(e){return e.altKey||e.ctrlKey||e.metaKey}isFunctionKey(e){return"keydown"===e.type&&e.keyCode>=112&&e.keyCode<=123}matchShortcut(e,t){return!!t&&(t.ctrl===e.ctrlKey&&t.meta===e.metaKey&&(t.alt===e.altKey&&t.shift===e.shiftKey&&(!!(e.keyCode===t.keyCode||e.charCode&&e.charCode===t.charCode)&&(e.preventDefault(),!0))))}executeShortcutAction(e){return e.func?e.func.call(e.scope):null}}const LZ=()=>{const e={},t={},o={},n={},a={},r={},i={},l={},s=(e,t)=>(o,n)=>{e[o.toLowerCase()]={...n,type:t}},c=(e,t)=>n[e.toLowerCase()]=t;return{addButton:s(e,"button"),addGroupToolbarButton:s(e,"grouptoolbarbutton"),addToggleButton:s(e,"togglebutton"),addMenuButton:s(e,"menubutton"),addSplitButton:s(e,"splitbutton"),addMenuItem:s(t,"menuitem"),addNestedMenuItem:s(t,"nestedmenuitem"),addToggleMenuItem:s(t,"togglemenuitem"),addAutocompleter:s(o,"autocompleter"),addContextMenu:s(a,"contextmenu"),addContextToolbar:s(r,"contexttoolbar"),addContextForm:s(r,"contextform"),addSidebar:s(i,"sidebar"),addView:s(l,"views"),addIcon:c,getAll:()=>({buttons:e,menuItems:t,icons:n,popups:o,contextMenus:a,contextToolbars:r,sidebars:i,views:l})}},PZ=()=>{const e=LZ();return{addAutocompleter:e.addAutocompleter,addButton:e.addButton,addContextForm:e.addContextForm,addContextMenu:e.addContextMenu,addContextToolbar:e.addContextToolbar,addIcon:e.addIcon,addMenuButton:e.addMenuButton,addMenuItem:e.addMenuItem,addNestedMenuItem:e.addNestedMenuItem,addSidebar:e.addSidebar,addSplitButton:e.addSplitButton,addToggleButton:e.addToggleButton,addGroupToolbarButton:e.addGroupToolbarButton,addToggleMenuItem:e.addToggleMenuItem,addView:e.addView,getAll:e.getAll}},RZ=gc.DOM,qZ=ho.extend,$Z=ho.each;class UZ{constructor(e,t,o){this.plugins={},this.contentCSS=[],this.contentStyles=[],this.loadedCSS={},this.isNotDirty=!1,this.composing=!1,this.destroyed=!1,this.hasHiddenInput=!1,this.iframeElement=null,this.initialized=!1,this.readonly=!1,this.removed=!1,this.startContent="",this._pendingNativeEvents=[],this._skinLoaded=!1,this._editableRoot=!0,this.editorManager=o,this.documentBaseUrl=o.documentBaseURL,qZ(this,vZ);const n=this;this.id=e,this.hidden=!1;const a=WQ(o.defaultOptions,t);this.options=_Z(n,a),rm(n);const r=this.options.get;r("deprecation_warnings")&&RT(t,a);const i=r("suffix");i&&(o.suffix=i),this.suffix=o.suffix;const l=r("base_url");l&&o._setBaseUrl(l),this.baseUri=o.baseURI;const s=Dm(n);s&&(yc.ScriptLoader._setReferrerPolicy(s),gc.DOM.styleSheetLoader._setReferrerPolicy(s));const c=dh(n);V(c)&&gc.DOM.styleSheetLoader._setContentCssCors(c),Mc.languageLoad=r("language_load"),Mc.baseURL=o.baseURL,this.setDirty(!1),this.documentBaseURI=new kN(sm(n),{base_uri:this.baseUri}),this.baseURI=this.baseUri,this.inline=th(n),this.hasVisual=ph(n),this.shortcuts=new MZ(this),this.editorCommands=new $J(this),PJ(this);const d=r("cache_suffix");d&&(to.cacheSuffix=d.replace(/^[\?\&]+/,"")),this.ui={registry:PZ(),styleSheetLoader:void 0,show:E,hide:E,setEnabled:E,isEnabled:$},this.mode=EZ(n),o.dispatch("SetupEditor",{editor:this});const u=vh(n);A(u)&&u.call(n,n)}render(){VQ(this)}focus(e){this.execCommand("mceFocus",!1,e)}hasFocus(){return Vk(this)}translate(e){return Fc.translate(e)}getParam(e,t,o){const n=this.options;return n.isRegistered(e)||(V(o)?n.register(e,{processor:o,default:t}):n.register(e,{processor:$,default:t})),n.isSet(e)||x(t)?n.get(e):t}hasPlugin(e,t){const o=Q(uh(this),e);return!!o&&(!t||void 0!==mS.get(e))}nodeChanged(e){this._nodeChangeDispatcher.nodeChanged(e)}addCommand(e,t,o){this.editorCommands.addCommand(e,t,o)}addQueryStateHandler(e,t,o){this.editorCommands.addQueryStateHandler(e,t,o)}addQueryValueHandler(e,t,o){this.editorCommands.addQueryValueHandler(e,t,o)}addShortcut(e,t,o,n){this.shortcuts.add(e,t,o,n)}execCommand(e,t,o,n){return this.editorCommands.execCommand(e,t,o,n)}queryCommandState(e){return this.editorCommands.queryCommandState(e)}queryCommandValue(e){return this.editorCommands.queryCommandValue(e)}queryCommandSupported(e){return this.editorCommands.queryCommandSupported(e)}show(){const e=this;e.hidden&&(e.hidden=!1,e.inline?e.getBody().contentEditable="true":(RZ.show(e.getContainer()),RZ.hide(e.id)),e.load(),e.dispatch("show"))}hide(){const e=this;e.hidden||(e.save(),e.inline?(e.getBody().contentEditable="false",e===e.editorManager.focusedEditor&&(e.editorManager.focusedEditor=null)):(RZ.hide(e.getContainer()),RZ.setStyle(e.id,"display",e.orgDisplay)),e.hidden=!0,e.dispatch("hide"))}isHidden(){return this.hidden}setProgressState(e,t){this.dispatch("ProgressState",{state:e,time:t})}load(e={}){const t=this,o=t.getElement();if(t.removed)return"";if(o){const n={...e,load:!0},a=yr(o)?o.value:o.innerHTML,r=t.setContent(a,n);return n.no_events||t.dispatch("LoadContent",{...n,element:o}),r}return""}save(e={}){const t=this;let o=t.getElement();if(!o||!t.initialized||t.removed)return"";const n={...e,save:!0,element:o};let a=t.getContent(n);const r={...n,content:a};if(r.no_events||t.dispatch("SaveContent",r),"raw"===r.format&&t.dispatch("RawSaveContent",r),a=r.content,yr(o))o.value=a;else{!e.is_removing&&t.inline||(o.innerHTML=a);const n=RZ.getParent(t.id,"form");n&&$Z(n.elements,e=>e.name!==t.id||(e.value=a,!1))}return r.element=n.element=o=null,!1!==r.set_dirty&&t.setDirty(!1),a}setContent(e,t){return VT(this,e,t)}getContent(e){return jT(this,e)}insertContent(e,t){t&&(e=qZ({content:e},t)),this.execCommand("mceInsertContent",!1,e)}resetContent(e){void 0===e?VT(this,this.startContent,{format:"raw"}):VT(this,e),this.undoManager.reset(),this.setDirty(!1),this.nodeChanged()}isDirty(){return!this.isNotDirty}setDirty(e){const t=!this.isNotDirty;this.isNotDirty=!e,e&&e!==t&&this.dispatch("dirty")}getContainer(){const e=this;return e.container||(e.container=e.editorContainer||RZ.get(e.id+"_parent")),e.container}getContentAreaContainer(){return this.contentAreaContainer}getElement(){return this.targetElm||(this.targetElm=RZ.get(this.id)),this.targetElm}getWin(){const e=this;if(!e.contentWindow){const t=e.iframeElement;t&&(e.contentWindow=t.contentWindow)}return e.contentWindow}getDoc(){const e=this;if(!e.contentDocument){const t=e.getWin();t&&(e.contentDocument=t.document)}return e.contentDocument}getBody(){var e,t;const o=this.getDoc();return null!==(t=null!==(e=this.bodyElement)&&void 0!==e?e:null===o||void 0===o?void 0:o.body)&&void 0!==t?t:null}convertURL(e,t,o){const n=this,a=n.options.get,r=kh(n);if(A(r))return r.call(n,e,o,!0,t);if(!a("convert_urls")||"link"===o||k(o)&&"LINK"===o.nodeName||0===e.indexOf("file:")||0===e.length)return e;const i=new kN(e);return"http"!==i.protocol&&"https"!==i.protocol&&""!==i.protocol?e:a("relative_urls")?n.documentBaseURI.toRelative(e):(e=n.documentBaseURI.toAbsolute(e,a("remove_script_host")),e)}addVisual(e){GQ(this,e)}setEditableRoot(e){AQ(this,e)}hasEditableRoot(){return NQ(this)}remove(){GT(this)}destroy(e){KT(this,e)}uploadImages(){return this.editorUpload.uploadImages()}_scanForImages(){return this.editorUpload.scanForImages()}}const HZ=gc.DOM,WZ=ho.each;let GZ,KZ=!1,YZ=[];const QZ=e=>{const t=e.type;WZ(tX.get(),o=>{switch(t){case"scroll":o.dispatch("ScrollWindow",e);break;case"resize":o.dispatch("ResizeWindow",e);break}})},JZ=e=>{if(e!==KZ){const t=gc.DOM;e?(t.bind(window,"resize",QZ),t.bind(window,"scroll",QZ)):(t.unbind(window,"resize",QZ),t.unbind(window,"scroll",QZ)),KZ=e}},ZZ=e=>{const t=YZ;return YZ=oe(YZ,t=>e!==t),tX.activeEditor===e&&(tX.activeEditor=YZ.length>0?YZ[0]:null),tX.focusedEditor===e&&(tX.focusedEditor=null),t.length!==YZ.length},XZ=e=>{e&&e.initialized&&!(e.getContainer()||e.getBody()).parentNode&&(ZZ(e),e.unbindAllNativeEvents(),e.destroy(!0),e.removed=!0)},eX="CSS1Compat"!==document.compatMode,tX={...uZ,baseURI:null,baseURL:null,defaultOptions:{},documentBaseURL:null,suffix:null,majorVersion:"6",minorVersion:"8.4",releaseDate:"2024-06-19",i18n:Fc,activeEditor:null,focusedEditor:null,setup(){const e=this;let t="",o="",n=kN.getDocumentBaseUrl(document.location);/^[^:]+:\/\/\/?[^\/]+\//.test(n)&&(n=n.replace(/[\?#].*$/,"").replace(/[\/\\][^\/]+$/,""),/[\/\\]$/.test(n)||(n+="/"));const a=window.tinymce||window.tinyMCEPreInit;if(a)t=a.base||a.baseURL,o=a.suffix;else{const e=document.getElementsByTagName("script");for(let n=0;n<e.length;n++){const a=e[n].src||"";if(""===a)continue;const r=a.substring(a.lastIndexOf("/"));if(/tinymce(\.full|\.jquery|)(\.min|\.dev|)\.js/.test(a)){-1!==r.indexOf(".min")&&(o=".min"),t=a.substring(0,a.lastIndexOf("/"));break}}if(!t&&document.currentScript){const e=document.currentScript.src;-1!==e.indexOf(".min")&&(o=".min"),t=e.substring(0,e.lastIndexOf("/"))}}e.baseURL=new kN(n).toAbsolute(t),e.documentBaseURL=n,e.baseURI=new kN(e.baseURL),e.suffix=o,fk(e)},overrideDefaults(e){const t=e.base_url;t&&this._setBaseUrl(t);const o=e.suffix;o&&(this.suffix=o),this.defaultOptions=e;const n=e.plugin_base_urls;void 0!==n&&Oe(n,(e,t)=>{Mc.PluginManager.urls[t]=e})},init(e){const t=this;let o;const n=ho.makeMap("area base basefont br col frame hr img input isindex link meta param embed source wbr track colgroup option table tbody tfoot thead tr th td script noscript style textarea video audio iframe object menu"," "),a=(e,t)=>e.inline&&t.tagName.toLowerCase()in n,r=e=>{let t=e.id;return t||(t=Te(e,"name").filter(e=>!HZ.get(e)).getOrThunk(HZ.uniqueId),e.setAttribute("id",t)),t},i=o=>{const n=e[o];if(n)return n.apply(t,[])},l=e=>to.browser.isIE()||to.browser.isEdge()?(VS("TinyMCE does not support the browser you are using. For a list of supported browsers please see: https://www.tiny.cloud/docs/tinymce/6/support/#supportedwebbrowsers"),[]):eX?(VS("Failed to initialize the editor as the document is not in standards mode. TinyMCE requires standards mode."),[]):w(e.selector)?HZ.select(e.selector):V(e.target)?[e.target]:[];let s=e=>{o=e};const c=()=>{let o=0;const n=[];let d;const u=(e,a,r)=>{const i=new UZ(e,a,t);n.push(i),i.on("init",()=>{++o===d.length&&s(n)}),i.targetElm=i.targetElm||r,i.render()};HZ.unbind(window,"ready",c),i("onpageload"),d=ke(l(e)),ho.each(d,e=>{XZ(t.get(e.id))}),d=ho.grep(d,e=>!t.get(e.id)),0===d.length?s([]):WZ(d,t=>{a(e,t)?VS("Could not initialize inline editor on invalid inline target element",t):u(r(t),e,t)})};return HZ.bind(window,"ready",c),new Promise(e=>{o?e(o):s=t=>{e(t)}})},get(e){return 0===arguments.length?YZ.slice(0):w(e)?ie(YZ,t=>t.id===e).getOr(null):N(e)&&YZ[e]?YZ[e]:null},add(e){const t=this,o=t.get(e.id);return o===e||(null===o&&YZ.push(e),JZ(!0),t.activeEditor=e,t.dispatch("AddEditor",{editor:e}),GZ||(GZ=e=>{const o=t.dispatch("BeforeUnload");if(o.returnValue)return e.preventDefault(),e.returnValue=o.returnValue,o.returnValue},window.addEventListener("beforeunload",GZ))),e},createEditor(e,t){return this.add(new UZ(e,t,this))},remove(e){const t=this;let o;if(e){if(!w(e))return o=e,O(t.get(o.id))?null:(ZZ(o)&&t.dispatch("RemoveEditor",{editor:o}),0===YZ.length&&window.removeEventListener("beforeunload",GZ),o.remove(),JZ(YZ.length>0),o);WZ(HZ.select(e),e=>{o=t.get(e.id),o&&t.remove(o)})}else for(let n=YZ.length-1;n>=0;n--)t.remove(YZ[n])},execCommand(e,t,o){var n;const a=this,r=k(o)?null!==(n=o.id)&&void 0!==n?n:o.index:o;switch(e){case"mceAddEditor":if(!a.get(r)){const e=o.options;new UZ(r,e,a).render()}return!0;case"mceRemoveEditor":{const e=a.get(r);return e&&e.remove(),!0}case"mceToggleEditor":{const e=a.get(r);return e?(e.isHidden()?e.show():e.hide(),!0):(a.execCommand("mceAddEditor",!1,o),!0)}}return!!a.activeEditor&&a.activeEditor.execCommand(e,t,o)},triggerSave:()=>{WZ(YZ,e=>{e.save()})},addI18n:(e,t)=>{Fc.add(e,t)},translate:e=>Fc.translate(e),setActive(e){const t=this.activeEditor;this.activeEditor!==e&&(t&&t.dispatch("deactivate",{relatedTarget:e}),e.dispatch("activate",{relatedTarget:t})),this.activeEditor=e},_setBaseUrl(e){this.baseURL=new kN(this.documentBaseURL).toAbsolute(e.replace(/\/+$/,"")),this.baseURI=new kN(this.baseURL)}};tX.setup();const oX=()=>{const e=Rc(),t=e=>({items:e,types:Ce(e),getType:t=>Te(e,t).getOrUndefined()}),o=t=>{e.set(t)},n=()=>e.get().getOrUndefined(),a=e.clear;return{FakeClipboardItem:t,write:o,read:n,clear:a}},nX=oX(),aX=Math.min,rX=Math.max,iX=Math.round,lX=(e,t,o)=>{let n=t.x,a=t.y;const r=e.w,i=e.h,l=t.w,s=t.h,c=(o||"").split("");return"b"===c[0]&&(a+=s),"r"===c[1]&&(n+=l),"c"===c[0]&&(a+=iX(s/2)),"c"===c[1]&&(n+=iX(l/2)),"b"===c[3]&&(a-=i),"r"===c[4]&&(n-=r),"c"===c[3]&&(a-=iX(i/2)),"c"===c[4]&&(n-=iX(r/2)),mX(n,a,r,i)},sX=(e,t,o,n)=>{for(let a=0;a<n.length;a++){const r=lX(e,t,n[a]);if(r.x>=o.x&&r.x+r.w<=o.w+o.x&&r.y>=o.y&&r.y+r.h<=o.h+o.y)return n[a]}return null},cX=(e,t,o)=>mX(e.x-t,e.y-o,e.w+2*t,e.h+2*o),dX=(e,t)=>{const o=rX(e.x,t.x),n=rX(e.y,t.y),a=aX(e.x+e.w,t.x+t.w),r=aX(e.y+e.h,t.y+t.h);return a-o<0||r-n<0?null:mX(o,n,a-o,r-n)},uX=(e,t,o)=>{let n=e.x,a=e.y,r=e.x+e.w,i=e.y+e.h;const l=t.x+t.w,s=t.y+t.h,c=rX(0,t.x-n),d=rX(0,t.y-a),u=rX(0,r-l),m=rX(0,i-s);return n+=c,a+=d,o&&(r+=c,i+=d,n-=u,a-=m),r-=u,i-=m,mX(n,a,r-n,i-a)},mX=(e,t,o,n)=>({x:e,y:t,w:o,h:n}),hX=e=>mX(e.left,e.top,e.width,e.height),pX={inflate:cX,relativePosition:lX,findBestRelativePosition:sX,intersect:dX,clamp:uX,create:mX,fromClientRect:hX},bX=(e,t,o=1e3)=>{let n=!1,a=null;const r=e=>(...t)=>{n||(n=!0,null!==a&&(clearTimeout(a),a=null),e.apply(null,t))},i=r(e),l=r(t),s=(...e)=>{n||null!==a||(a=setTimeout(()=>l.apply(null,e),o))};return{start:s,resolve:i,reject:l}},gX=()=>{const e={},t={},o={},n=(o,n)=>{const a=`Script at URL "${n}" failed to load`,r=`Script at URL "${n}" did not call \`tinymce.Resource.add('${o}', data)\` within 1 second`;if(void 0!==e[o])return e[o];{const i=new Promise((e,i)=>{const l=bX(e,i);t[o]=l.resolve,yc.ScriptLoader.loadScript(n).then(()=>l.start(r),()=>l.reject(a))});return e[o]=i,i}},a=(n,a)=>{void 0!==t[n]&&(t[n](a),delete t[n]),e[n]=Promise.resolve(a),o[n]=a},r=e=>e in o,i=t=>{delete e[t]},l=e=>o[e];return{load:n,add:a,has:r,get:l,unload:i}},fX=gX(),vX=()=>(()=>{let e={},t=[];const o={getItem:t=>{const o=e[t];return o||null},setItem:(o,n)=>{t.push(o),e[o]=String(n)},key:e=>t[e],removeItem:o=>{t=t.filter(e=>e===o),delete e[o]},clear:()=>{t=[],e={}},length:0};return Object.defineProperty(o,"length",{get:()=>t.length,configurable:!1,enumerable:!1}),o})();let wX;try{const e="__storage_test__";wX=window.localStorage,wX.setItem(e,e),wX.removeItem(e)}catch(xX){wX=vX()}var kX=wX;const CX={geom:{Rect:pX},util:{Delay:nk,Tools:ho,VK:Jf,URI:kN,EventDispatcher:cZ,Observable:uZ,I18n:Fc,LocalStorage:kX,ImageUploader:HS},dom:{EventUtils:ac,TreeWalker:lr,TextSeeker:bd,DOMUtils:gc,ScriptLoader:yc,RangeUtils:nw,Serializer:CT,StyleSheetLoader:Ll,ControlSelection:av,BookmarkManager:jf,Selection:sT,Event:ac.Event},html:{Styles:Us,Entities:hs,Node:aC,Schema:Ts,DomParser:PN,Writer:_C,Serializer:VC},Env:to,AddOnManager:Mc,Annotator:Of,Formatter:cB,UndoManager:hB,EditorCommands:$J,WindowManager:bS,NotificationManager:uS,EditorObservable:vZ,Shortcuts:MZ,Editor:UZ,FocusManager:ek,EditorManager:tX,DOM:gc.DOM,ScriptLoader:yc.ScriptLoader,PluginManager:mS,ThemeManager:hS,ModelManager:JT,IconManager:QT,Resource:fX,FakeClipboard:nX,trim:ho.trim,isArray:ho.isArray,is:ho.is,toArray:ho.toArray,makeMap:ho.makeMap,each:ho.each,map:ho.map,grep:ho.grep,inArray:ho.inArray,extend:ho.extend,walk:ho.walk,resolve:ho.resolve,explode:ho.explode,_addCacheSuffix:ho._addCacheSuffix},yX=ho.extend(tX,CX),OX=t=>{try{e.exports=t}catch(o){}},jX=e=>{window.tinymce=e,window.tinyMCE=e};jX(yX),OX(yX)})()},e67e:function(e,t,o){"use strict";o.r(t);var n=o("f2bf");const a=["src"],r={class:"dialog-footer"};function i(e,t,o,i,l,s){const c=Object(n["resolveComponent"])("el-input"),d=Object(n["resolveComponent"])("el-form-item"),u=Object(n["resolveComponent"])("el-option"),m=Object(n["resolveComponent"])("el-select"),h=Object(n["resolveComponent"])("el-upload"),p=Object(n["resolveComponent"])("el-dialog"),b=Object(n["resolveComponent"])("el-form"),g=Object(n["resolveComponent"])("el-button");return Object(n["openBlock"])(),Object(n["createBlock"])(p,{modelValue:l.dialogFormVisible,"onUpdate:modelValue":t[3]||(t[3]=e=>l.dialogFormVisible=e),title:l.title,width:"500px"},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(b,{ref:"form",model:l.form,rules:l.rules,"label-width":"80px","label-position":"left"},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(d,{label:e.$t("task.fknr"),prop:"feedbackText"},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(c,{modelValue:l.form.feedbackText,"onUpdate:modelValue":t[0]||(t[0]=e=>l.form.feedbackText=e),size:"small",type:"textarea"},null,8,["modelValue"])]),_:1},8,["label"]),Object(n["createVNode"])(d,{label:"反馈状态",prop:"status"},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(m,{modelValue:l.form.status,"onUpdate:modelValue":t[1]||(t[1]=e=>l.form.status=e),size:"small",filterable:"",placeholder:"状态"},{default:Object(n["withCtx"])(()=>[(Object(n["openBlock"])(!0),Object(n["createElementBlock"])(n["Fragment"],null,Object(n["renderList"])(l.statusData,e=>(Object(n["openBlock"])(),Object(n["createBlock"])(u,{key:e.value,label:e.label,value:e.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),Object(n["createVNode"])(d,{label:e.$t("task.fltp"),prop:"feedbackImg"},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(h,{action:l.updateAction,"list-type":"picture-card","on-preview":s.handlePictureCardPreview,"on-remove":s.handleRemove,"on-success":s.fileSuccess,headers:l.headerData,name:"files"},{default:Object(n["withCtx"])(()=>t[4]||(t[4]=[Object(n["createElementVNode"])("i",{class:"el-icon-plus"},null,-1)])),_:1},8,["action","on-preview","on-remove","on-success","headers"]),Object(n["createVNode"])(p,{modelValue:l.dialogVisible,"onUpdate:modelValue":t[2]||(t[2]=e=>l.dialogVisible=e)},{default:Object(n["withCtx"])(()=>[Object(n["createElementVNode"])("img",{width:"100%",src:l.dialogImageUrl,alt:""},null,8,a)]),_:1},8,["modelValue"])]),_:1},8,["label"])]),_:1},8,["model","rules"]),Object(n["createElementVNode"])("div",r,[Object(n["createVNode"])(g,{type:"primary",size:"small",onClick:s.save},{default:Object(n["withCtx"])(()=>t[5]||(t[5]=[Object(n["createTextVNode"])("确 定")])),_:1},8,["onClick"]),Object(n["createVNode"])(g,{size:"small",onClick:s.close},{default:Object(n["withCtx"])(()=>t[6]||(t[6]=[Object(n["createTextVNode"])("取 消")])),_:1},8,["onClick"])])]),_:1},8,["modelValue","title"])}var l=o("b199"),s=o("4360"),c=o("f121"),d={data(){return{form:{id:"",feedbackText:"",feedbackImg:"",status:""},rules:{feedbackText:[{required:!0,trigger:"blur",message:"请输入反馈内容"}],status:[{required:!0,trigger:"change",message:"请选择反馈状态"}],feedbackImg:[{required:!0,trigger:"blur",message:"请上传反馈图片"}]},title:"",dialogVisible:!1,dialogFormVisible:!1,deviceData:[],handlersData:[],dialogImageUrl:"",updateAction:"",headerData:"",statusData:[{label:"未处理",value:0},{label:"已处理",value:1}]}},created(){},methods:{handleRemove(e,t){console.log(e,t)},handlePictureCardPreview(e){console.log(e),this.dialogImageUrl=e.url,this.dialogVisible=!0},feedbackIndex(e){this.title="任务反馈",this.form.id=e.id,this.dialogFormVisible=!0,this.setUpdateData()},setUpdateData(){this.updateAction=c["baseURL"]+"/file/uploadImg",this.headerData={token:s["default"].getters["user/token"]}},fileSuccess(e,t,o){var n=this.form.feedbackImg;this.form.feedbackImg=""==n?e.data:this.form.feedbackImg+","+e.data,console.log(this.form)},close(){this.$refs["form"].resetFields(),this.form=this.$options.data().form,this.dialogFormVisible=!1,this.$emit("fetch-data")},save(){this.$refs["form"].validate(async e=>{if(!e)return!1;if(this.form.id){const{msg:e}=await Object(l["feedback"])(this.form);this.$notify({title:e,type:"success"})}this.$refs["form"].resetFields(),this.dialogFormVisible=!1,this.$parent.fetchData()})}}},u=o("d959"),m=o.n(u);const h=m()(d,[["render",i]]);t["default"]=h},e6d9:function(e,t,o){"use strict";o.r(t);var n=o("f2bf");const a={class:"manage-container"};function r(e,t,o,r,i,l){const s=Object(n["resolveComponent"])("el-button"),c=Object(n["resolveComponent"])("vab-query-form"),d=Object(n["resolveComponent"])("el-table-column"),u=Object(n["resolveComponent"])("el-table"),m=Object(n["resolveComponent"])("el-pagination"),h=Object(n["resolveComponent"])("vab-query-form-right-panel"),p=Object(n["resolveComponent"])("group-edit");return Object(n["openBlock"])(),Object(n["createElementBlock"])("div",a,[Object(n["createVNode"])(c,null,{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(s,{type:"primary",onClick:l.handleAdd},{default:Object(n["withCtx"])(()=>t[0]||(t[0]=[Object(n["createTextVNode"])("添加用户")])),_:1},8,["onClick"])]),_:1}),Object(n["createVNode"])(u,{data:i.groupData,border:"",stripe:"",style:{width:"100%"}},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(d,{prop:"id",label:"ID",width:"60",align:"center"}),Object(n["createVNode"])(d,{prop:"name",label:e.$t("grouping.zmc"),width:"120",align:"center"},null,8,["label"]),Object(n["createVNode"])(d,{prop:"createTime",label:e.$t("grouping.cjsj"),width:"200",align:"center"},null,8,["label"]),Object(n["createVNode"])(d,{prop:"updateTime",label:e.$t("grouping.gxsj"),width:"200",align:"center"},null,8,["label"]),Object(n["createVNode"])(d,{fixed:"right",label:e.$t("defalult.cz"),align:"center"},{default:Object(n["withCtx"])(({row:t})=>[Object(n["createVNode"])(s,{type:"text",onClick:e=>l.handleEdit(t)},{default:Object(n["withCtx"])(()=>[Object(n["createTextVNode"])(Object(n["toDisplayString"])(e.$t("defalult.bj")),1)]),_:2},1032,["onClick"]),Object(n["createVNode"])(s,{type:"text",onClick:e=>l.handleDelete(t)},{default:Object(n["withCtx"])(()=>[Object(n["createTextVNode"])(Object(n["toDisplayString"])(e.$t("defalult.sc")),1)]),_:2},1032,["onClick"])]),_:1},8,["label"])]),_:1},8,["data"]),Object(n["createVNode"])(c,null,{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(h,null,{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(m,{background:i.background,"current-page":i.queryForm.page,layout:i.layout,"page-size":i.queryForm.size,total:i.total,onCurrentChange:l.handleCurrentChange,onSizeChange:l.handleSizeChange},null,8,["background","current-page","layout","page-size","total","onCurrentChange","onSizeChange"])]),_:1})]),_:1}),Object(n["createVNode"])(p,{ref:"edit"},null,512)])}var i=o("23ba"),l=o("cfcd"),s={name:"Index",components:{groupEdit:l["default"]},data(){return{groupData:[],lazy:!0,layout:"total, sizes, prev, pager, next, jumper",total:0,background:!0,listLoading:!0,elementLoadingText:"正在加载...",queryForm:{page:1,size:20,name:""}}},computed:{height(){return 500}},created(){this.fetchData()},methods:{async fetchData(){this.listLoading=!0;const{data:e}=await Object(i["getList"])(this.queryForm);this.groupData=e.items,this.total=e.total,setTimeout(()=>{this.listLoading=!1},500)},handleAdd(){this.$refs["edit"].showEdit()},handleEdit(e){this.$refs["edit"].showEdit(e)},handleQuery(){this.queryForm.page=1,this.fetchData()},handleSizeChange(e){this.queryForm.size=e,this.fetchData()},handleCurrentChange(e){this.queryForm.page=e,this.fetchData()},handleDelete(e){e.id&&this.$confirm("你确定要删除当前项吗?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(()=>{const{msg:t}=Object(i["doDelete"])({groupId:e.id});this.$message({type:"success",message:void 0==t?"删除成功":t})}).catch(()=>{this.$message({type:"info",message:"已取消删除"})})}}},c=(o("5422"),o("d959")),d=o.n(c);const u=d()(s,[["render",r],["__scopeId","data-v-2bdf94bc"]]);t["default"]=u},e792:function(e,t,o){"use strict";o.r(t);var n=o("f2bf");const a={class:"manage-container"},r={class:"device-base"},i={class:"device-base"};function l(e,t,o,l,s,c){const d=Object(n["resolveComponent"])("el-date-picker"),u=Object(n["resolveComponent"])("vab-query-form-left-panel"),m=Object(n["resolveComponent"])("el-button"),h=Object(n["resolveComponent"])("vab-query-form-right-panel"),p=Object(n["resolveComponent"])("vab-query-form"),b=Object(n["resolveComponent"])("el-input"),g=Object(n["resolveComponent"])("el-table-column"),f=Object(n["resolveComponent"])("el-table"),v=Object(n["resolveComponent"])("el-pagination"),w=Object(n["resolveComponent"])("el-tab-pane"),k=Object(n["resolveComponent"])("el-tabs");return Object(n["openBlock"])(),Object(n["createElementBlock"])("div",a,[Object(n["createVNode"])(k,{modelValue:s.activeName,"onUpdate:modelValue":t[2]||(t[2]=e=>s.activeName=e),onTabClick:c.handleClick},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(w,{label:"设备月报表",name:"first"},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(p,null,{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(u,null,{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(d,{modelValue:e.value1,"onUpdate:modelValue":t[0]||(t[0]=t=>e.value1=t),type:"date",placeholder:e.$t("defalult.xzrq")},null,8,["modelValue","placeholder"])]),_:1}),Object(n["createVNode"])(h,null,{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(m,{type:"primary"},{default:Object(n["withCtx"])(()=>[Object(n["createTextVNode"])(Object(n["toDisplayString"])(e.$t("defalult.cx")),1)]),_:1}),Object(n["createVNode"])(m,null,{default:Object(n["withCtx"])(()=>[Object(n["createTextVNode"])(Object(n["toDisplayString"])(e.$t("defalult.dc")),1)]),_:1})]),_:1})]),_:1}),Object(n["createElementVNode"])("div",r,[Object(n["createVNode"])(u,{class:"device-left"},{default:Object(n["withCtx"])(()=>t[3]||(t[3]=[Object(n["createElementVNode"])("span",null,"厂名:南京江北公用资产有限公司",-1)])),_:1}),Object(n["createVNode"])(h,{class:"device-right"},{default:Object(n["withCtx"])(()=>t[4]||(t[4]=[Object(n["createElementVNode"])("span",null,"2022年10月",-1)])),_:1})]),Object(n["createVNode"])(f,{data:s.tableData,border:"",style:{width:"100%"}},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(g,{prop:"Id",label:"序号(固定资产编号)",align:"center"},{default:Object(n["withCtx"])(({row:e})=>[Object(n["createVNode"])(b,{modelValue:e.Id,"onUpdate:modelValue":t=>e.Id=t},null,8,["modelValue","onUpdate:modelValue"])]),_:1}),Object(n["createVNode"])(g,{prop:"First",label:"所属站点",width:"155",align:"center"},{default:Object(n["withCtx"])(({row:e})=>[Object(n["createVNode"])(b,{modelValue:e.First,"onUpdate:modelValue":t=>e.First=t},null,8,["modelValue","onUpdate:modelValue"])]),_:1}),Object(n["createVNode"])(g,{prop:"Second",label:"安装位置",width:"155",align:"center"},{default:Object(n["withCtx"])(({row:e})=>[Object(n["createVNode"])(b,{modelValue:e.Second,"onUpdate:modelValue":t=>e.Second=t},null,8,["modelValue","onUpdate:modelValue"])]),_:1}),Object(n["createVNode"])(g,{prop:"Third",label:"设备名称及编号",width:"155",align:"center"},{default:Object(n["withCtx"])(({row:e})=>[Object(n["createVNode"])(b,{modelValue:e.Third,"onUpdate:modelValue":t=>e.Third=t},null,8,["modelValue","onUpdate:modelValue"])]),_:1}),Object(n["createVNode"])(g,{prop:"Fourth",label:"月额定运行时间h",width:"155",align:"center"},{default:Object(n["withCtx"])(({row:e})=>[Object(n["createVNode"])(b,{modelValue:e.Fourth,"onUpdate:modelValue":t=>e.Fourth=t},null,8,["modelValue","onUpdate:modelValue"])]),_:1}),Object(n["createVNode"])(g,{prop:"Fifth",label:"月实际运行时间h",width:"155",align:"center"},{default:Object(n["withCtx"])(({row:e})=>[Object(n["createVNode"])(b,{modelValue:e.Fifth,"onUpdate:modelValue":t=>e.Fifth=t},null,8,["modelValue","onUpdate:modelValue"])]),_:1}),Object(n["createVNode"])(g,{prop:"Sixth",label:"月设备完好时间h",width:"155",align:"center"},{default:Object(n["withCtx"])(({row:e})=>[Object(n["createVNode"])(b,{modelValue:e.Sixth,"onUpdate:modelValue":t=>e.Sixth=t},null,8,["modelValue","onUpdate:modelValue"])]),_:1})]),_:1},8,["data"]),Object(n["createVNode"])(p,null,{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(h,null,{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(v,{"current-page":s.currentPage4,"page-sizes":[100,200,300,400],"page-size":100,layout:"total, sizes, prev, pager, next, jumper",total:400,onSizeChange:c.handleSizeChange,onCurrentChange:c.handleCurrentChange},null,8,["current-page","onSizeChange","onCurrentChange"])]),_:1})]),_:1})]),_:1}),Object(n["createVNode"])(w,{label:"设备年报表",name:"second"},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(p,null,{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(u,null,{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(d,{modelValue:e.value1,"onUpdate:modelValue":t[1]||(t[1]=t=>e.value1=t),type:"date",placeholder:e.$t("defalult.xzrq")},null,8,["modelValue","placeholder"])]),_:1}),Object(n["createVNode"])(h,null,{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(m,{type:"primary"},{default:Object(n["withCtx"])(()=>[Object(n["createTextVNode"])(Object(n["toDisplayString"])(e.$t("defalult.cx")),1)]),_:1}),Object(n["createVNode"])(m,null,{default:Object(n["withCtx"])(()=>[Object(n["createTextVNode"])(Object(n["toDisplayString"])(e.$t("defalult.dc")),1)]),_:1})]),_:1})]),_:1}),Object(n["createElementVNode"])("div",i,[Object(n["createVNode"])(u,{class:"device-left"},{default:Object(n["withCtx"])(()=>t[5]||(t[5]=[Object(n["createElementVNode"])("span",null,"厂名:南京江北公用资产有限公司",-1)])),_:1})]),Object(n["createVNode"])(f,{data:s.tableData2,border:"",style:{width:"100%"}},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(g,{prop:"id",label:"序号(固定资产编号)",align:"center"},{default:Object(n["withCtx"])(({row:e})=>[Object(n["createVNode"])(b,{modelValue:e.Id,"onUpdate:modelValue":t=>e.Id=t},null,8,["modelValue","onUpdate:modelValue"])]),_:1}),Object(n["createVNode"])(g,{prop:"No01",label:"安装位置",width:"165",align:"center"},{default:Object(n["withCtx"])(({row:e})=>[Object(n["createVNode"])(b,{modelValue:e.No01,"onUpdate:modelValue":t=>e.No01=t},null,8,["modelValue","onUpdate:modelValue"])]),_:1}),Object(n["createVNode"])(g,{prop:"No02",label:"设备名称及编号",width:"165",align:"center"},{default:Object(n["withCtx"])(({row:e})=>[Object(n["createVNode"])(b,{modelValue:e.No02,"onUpdate:modelValue":t=>e.No02=t},null,8,["modelValue","onUpdate:modelValue"])]),_:1}),Object(n["createVNode"])(g,{prop:"No03",label:"月额定运行时间h",width:"165",align:"center"},{default:Object(n["withCtx"])(({row:e})=>[Object(n["createVNode"])(b,{modelValue:e.No03,"onUpdate:modelValue":t=>e.No03=t},null,8,["modelValue","onUpdate:modelValue"])]),_:1}),Object(n["createVNode"])(g,{prop:"No04",label:"月实际运行时间h",width:"165",align:"center"},{default:Object(n["withCtx"])(({row:e})=>[Object(n["createVNode"])(b,{modelValue:e.No04,"onUpdate:modelValue":t=>e.No04=t},null,8,["modelValue","onUpdate:modelValue"])]),_:1}),Object(n["createVNode"])(g,{prop:"No05",label:"月设备完好时间h",width:"165",align:"center"},{default:Object(n["withCtx"])(({row:e})=>[Object(n["createVNode"])(b,{modelValue:e.No05,"onUpdate:modelValue":t=>e.No05=t},null,8,["modelValue","onUpdate:modelValue"])]),_:1})]),_:1},8,["data"]),Object(n["createVNode"])(p,null,{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(h,null,{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(v,{"current-page":s.currentPage4,"page-sizes":[100,200,300,400],"page-size":100,layout:"total, sizes, prev, pager, next, jumper",total:400,onSizeChange:c.handleSizeChange,onCurrentChange:c.handleCurrentChange},null,8,["current-page","onSizeChange","onCurrentChange"])]),_:1})]),_:1})]),_:1})]),_:1},8,["modelValue","onTabClick"])])}var s={data(){return{currentPage1:5,currentPage2:5,currentPage3:5,currentPage4:4,activeName:"first",tableData:[{Id:"",First:"小营农污处理设施",Second:"",Third:"提升泵1",Fourth:"744",Fifth:"392.17",Sixth:"392.17"},{Id:"",First:"小营农污处理设施",Second:"",Third:"提升泵1",Fourth:"744",Fifth:"392.17",Sixth:"392.17"},{Id:"",First:"小营农污处理设施",Second:"",Third:"提升泵1",Fourth:"744",Fifth:"392.17",Sixth:"392.17"},{Id:"SW-GXSW-HLB-005NW",First:"大包组农污处理设施",Second:"调蓄池",Third:"提升泵1",Fourth:"744",Fifth:"392.17",Sixth:"392.17"},{Id:"SW-GXSW-HLB-005NW",First:"大包组农污处理设施",Second:"调蓄池",Third:"提升泵1",Fourth:"744",Fifth:"392.17",Sixth:"392.17"},{Id:"SW-GXSW-HLB-005NW",First:"大包组农污处理设施",Second:"调蓄池",Third:"提升泵1",Fourth:"744",Fifth:"392.17",Sixth:"392.17"}],tableData2:[{id:"SW-GXSW-HLB-005NW",No01:"大包组农污处理设施",No02:"调蓄池",No03:"提升泵1",No04:"744",No05:"392.17",No06:"392.17"},{id:"SW-GXSW-HLB-005NW",No01:"大包组农污处理设施",No02:"调蓄池",No03:"提升泵1",No04:"744",No05:"392.17",No06:"392.17"},{id:"SW-GXSW-HLB-005NW",No01:"大包组农污处理设施",No02:"调蓄池",No03:"提升泵1",No04:"744",No05:"392.17",No06:"392.17"}]}},methods:{handleClick(e,t){console.log(e,t)},handleSizeChange(e){console.log(`每页 ${e} 条`)},handleCurrentChange(e){console.log("当前页: "+e)}}},c=(o("d263"),o("51d3"),o("d959")),d=o.n(c);const u=d()(s,[["render",l],["__scopeId","data-v-a26d9040"]]);t["default"]=u},e821:function(e,t,o){},e8ee:function(e,t,o){"use strict";o.r(t);var n=o("f2bf");const a={class:"dialog-footer"};function r(e,t,o,r,i,l){const s=Object(n["resolveComponent"])("el-input"),c=Object(n["resolveComponent"])("el-form-item"),d=Object(n["resolveComponent"])("el-form"),u=Object(n["resolveComponent"])("el-button"),m=Object(n["resolveComponent"])("el-dialog");return Object(n["openBlock"])(),Object(n["createBlock"])(m,{modelValue:i.dialogFormVisible,"onUpdate:modelValue":t[4]||(t[4]=e=>i.dialogFormVisible=e),title:i.title,width:"500px",onClose:l.close},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(d,{ref:"form",model:i.form,rules:i.rules,"label-width":"80px"},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(c,{label:"账户名",prop:"account"},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(s,{modelValue:i.form.account,"onUpdate:modelValue":t[0]||(t[0]=e=>i.form.account=e),modelModifiers:{trim:!0},size:"small",autocomplete:"off"},null,8,["modelValue"])]),_:1}),Object(n["createVNode"])(c,{label:"key",prop:"appKey"},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(s,{modelValue:i.form.appKey,"onUpdate:modelValue":t[1]||(t[1]=e=>i.form.appKey=e),modelModifiers:{trim:!0},size:"small",autocomplete:"off"},null,8,["modelValue"])]),_:1}),Object(n["createVNode"])(c,{label:"secret",prop:"appSecret"},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(s,{modelValue:i.form.appSecret,"onUpdate:modelValue":t[2]||(t[2]=e=>i.form.appSecret=e),modelModifiers:{trim:!0},size:"small",autocomplete:"off"},null,8,["modelValue"])]),_:1}),Object(n["createVNode"])(c,{label:"抓拍周期",prop:"captureCycle"},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(s,{modelValue:i.form.captureCycle,"onUpdate:modelValue":t[3]||(t[3]=e=>i.form.captureCycle=e),modelModifiers:{trim:!0},autocomplete:"off"},null,8,["modelValue"])]),_:1})]),_:1},8,["model","rules"]),Object(n["createElementVNode"])("div",a,[Object(n["createVNode"])(u,{type:"primary",size:"small",onClick:l.save},{default:Object(n["withCtx"])(()=>t[5]||(t[5]=[Object(n["createTextVNode"])("确 定")])),_:1},8,["onClick"]),Object(n["createVNode"])(u,{size:"small",onClick:l.close},{default:Object(n["withCtx"])(()=>t[6]||(t[6]=[Object(n["createTextVNode"])("取 消")])),_:1},8,["onClick"])])]),_:1},8,["modelValue","title","onClose"])}var i=o("acca"),l={name:"Add",data(){return{form:{id:"",account:"",appKey:"",appSecret:"",captureCycle:""},rules:{account:[{required:!0,trigger:"blur",message:"请输入账户号"}],appKey:[{required:!0,trigger:"blur",message:"请输入appKey"}],appSecret:[{required:!0,trigger:"blur",message:"请输入appSecret"}]},clearable:!0,title:"",dialogFormVisible:!1,diffData:{},ruleForm:[]}},created(){},methods:{showEdit(e){e?(this.title="编辑",this.menuId=e.id,this.ruleForm=Object.assign({},e),this.form=Object.assign({},e)):this.title="添加",this.dialogFormVisible=!0},close(){this.$refs["form"].resetFields(),this.form=this.$options.data().form,this.dialogFormVisible=!1,this.$emit("fetch-data")},getDiffData(){this.diffData={},Object.keys(this.form).forEach(e=>{this.form[e]!=this.ruleForm[e]&&(this.diffData[e]=this.form[e])})},save(){this.$refs["form"].validate(async e=>{if(!e)return!1;if(this.form.id){if(this.getDiffData(),0!=Object.keys(this.diffData).length){this.diffData.id=this.form.id;const{msg:e}=await Object(i["doEdit"])(this.diffData);this.$notify({title:e,type:"success"})}}else{const{msg:e}=await Object(i["doAdd"])(this.form);this.$notify({title:e,type:"success"})}this.$refs["form"].resetFields(),this.dialogFormVisible=!1,this.$parent.fetchData()})}}},s=(o("9d47"),o("d959")),c=o.n(s);const d=c()(l,[["render",r]]);t["default"]=d},e9a0:function(e,t,o){"use strict";o("59a3")},e9ff:function(e,t,o){"use strict";o("d734")},ea01:function(e,t,o){e.exports=o.p+"static/img/stop.93849c72.gif"},ea22:function(e,t,o){},ea4a:function(e,t,o){"use strict";o("f3c16")},ea53:function(e,t,o){e.exports={"menu-color":"hsla(0,0%,27%,.95)","menu-color-active":"hsla(208,100%,55%,.95)","menu-background":"#fff","gallery-second-menu-background":"#fff"}},eaa2:function(e,t,o){"use strict";o.r(t);var n=o("f2bf");const a={class:"manage-container"};function r(e,t,o,r,i,l){const s=Object(n["resolveComponent"])("el-date-picker"),c=Object(n["resolveComponent"])("el-form-item"),d=Object(n["resolveComponent"])("el-option"),u=Object(n["resolveComponent"])("el-select"),m=Object(n["resolveComponent"])("el-input"),h=Object(n["resolveComponent"])("el-button"),p=Object(n["resolveComponent"])("vab-query-form"),b=Object(n["resolveComponent"])("el-form"),g=Object(n["resolveComponent"])("el-row"),f=Object(n["resolveComponent"])("el-table-column"),v=Object(n["resolveComponent"])("el-table");return Object(n["openBlock"])(),Object(n["createElementBlock"])("div",a,[Object(n["createVNode"])(g,null,{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(b,{ref:"form",model:e.form,"label-width":"80px"},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(p,null,{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(c,{label:e.$t("defalult.sj")},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(s,{type:"month",placeholder:e.$t("defalult.xzrq")},null,8,["placeholder"])]),_:1},8,["label"]),Object(n["createVNode"])(c,{label:e.$t("dataEnquiry.jd")},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(u,{modelValue:e.value,"onUpdate:modelValue":t[0]||(t[0]=t=>e.value=t),placeholder:e.$t("dataEnquiry.qxzjd")},{default:Object(n["withCtx"])(()=>[(Object(n["openBlock"])(!0),Object(n["createElementBlock"])(n["Fragment"],null,Object(n["renderList"])(e.options,e=>(Object(n["openBlock"])(),Object(n["createBlock"])(d,{key:e.value,label:e.label,value:e.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue","placeholder"])]),_:1},8,["label"]),Object(n["createVNode"])(c,{label:e.$t("dataEnquiry.sq")},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(u,{modelValue:e.value,"onUpdate:modelValue":t[1]||(t[1]=t=>e.value=t),placeholder:"请选择社区"},{default:Object(n["withCtx"])(()=>[(Object(n["openBlock"])(!0),Object(n["createElementBlock"])(n["Fragment"],null,Object(n["renderList"])(e.options,e=>(Object(n["openBlock"])(),Object(n["createBlock"])(d,{key:e.value,label:e.label,value:e.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1},8,["label"]),Object(n["createVNode"])(c,{label:e.$t("dataEnquiry.zdmc")},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(m,{modelValue:i.queryForm.name,"onUpdate:modelValue":t[2]||(t[2]=e=>i.queryForm.name=e),placeholder:e.$t("dataEnquiry.qsrzdmc")},null,8,["modelValue","placeholder"])]),_:1},8,["label"]),Object(n["createVNode"])(h,{type:"primary",onClick:e.search},{default:Object(n["withCtx"])(()=>[Object(n["createTextVNode"])(Object(n["toDisplayString"])(e.$t("defalult.cx")),1)]),_:1},8,["onClick"]),Object(n["createVNode"])(h,{type:"primary",onClick:e.search},{default:Object(n["withCtx"])(()=>[Object(n["createTextVNode"])(Object(n["toDisplayString"])(e.$t("defalult.chongz")),1)]),_:1},8,["onClick"]),Object(n["createVNode"])(h,{type:"primary",onClick:e.search},{default:Object(n["withCtx"])(()=>[Object(n["createTextVNode"])(Object(n["toDisplayString"])(e.$t("defalult.dc")),1)]),_:1},8,["onClick"])]),_:1})]),_:1},8,["model"])]),_:1}),Object(n["createVNode"])(v,{data:i.tableData,style:{width:"100%"}},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(f,{prop:"id",label:e.$t("trigger.xh"),width:"150"},null,8,["label"]),Object(n["createVNode"])(f,{prop:"jiedao",label:"所属街道",width:"150"}),Object(n["createVNode"])(f,{prop:"shequ",label:"所属社区",width:"150"}),Object(n["createVNode"])(f,{prop:"mingcheng",label:e.$t("dataEnquiry.zdmc"),width:"150"},null,8,["label"]),Object(n["createVNode"])(f,{label:"11-01"},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(f,{prop:"shuiliang",label:"水量(m³)",width:"120"}),Object(n["createVNode"])(f,{prop:"dianliang",label:"电量(Kw·h)",width:"120"}),Object(n["createVNode"])(f,{prop:"nenghao",label:"能耗(Kw·h/m³)",width:"300"})]),_:1}),Object(n["createVNode"])(f,{label:"11-02"},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(f,{prop:"shuiliang",label:"水量(m³)",width:"120"}),Object(n["createVNode"])(f,{prop:"dianliang",label:"电量(Kw·h)",width:"120"}),Object(n["createVNode"])(f,{prop:"nenghao",label:"能耗(Kw·h/m³)",width:"300"})]),_:1}),Object(n["createVNode"])(f,{label:"11-03"},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(f,{prop:"shuiliang",label:"水量(m³)",width:"120"}),Object(n["createVNode"])(f,{prop:"dianliang",label:"电量(Kw·h)",width:"120"}),Object(n["createVNode"])(f,{prop:"nenghao",label:"能耗(Kw·h/m³)",width:"300"})]),_:1})]),_:1},8,["data"])])}var i={data(){return{tableData:[{id:"1",jiedao:"工业园区",shequ:"和平社区",mingcheng:"顶上顶下",shuiliang:"123",dianliang:"213",nenghao:"1285"},{id:"1",jiedao:"工业园区",shequ:"和平社区",mingcheng:"顶上顶下",shuiliang:"123",dianliang:"213",nenghao:"1285"},{id:"1",jiedao:"工业园区",shequ:"和平社区",mingcheng:"顶上顶下",shuiliang:"123",dianliang:"213",nenghao:"1285"}],lazy:!0,activeName:"first",layout:"total, sizes, prev, pager, next, jumper",total:0,input:"",textarea:"",list:[],background:!0,listLoading:!0,elementLoadingText:"正在加载...",queryForm:{page:1,size:20,name:""}}},computed:{height(){return 500}},created(){this.fetchData()},methods:{async fetchData(){this.listLoading=!0,setTimeout(()=>{this.listLoading=!1},500)},handleAdd(){this.$refs["edit"].showEdit()},handleEdit(e){this.$refs["edit"].showEdit(e)},handleQuery(){this.queryForm.page=1,this.fetchData()},handleSizeChange(e){this.queryForm.size=e,this.fetchData()},handleCurrentChange(e){this.queryForm.page=e,this.fetchData()},handleDelete(e){e.id&&this.$confirm("你确定要删除当前项吗?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(()=>{this.$message({type:"success",message:"删除成功"})}).catch(()=>{this.$message({type:"info",message:"已取消删除"})})}}},l=(o("7633"),o("d959")),s=o.n(l);const c=s()(i,[["render",r]]);t["default"]=c},eae5:function(e,t,o){"use strict";o("4ddc")},eb37:function(e,t,o){"use strict";o("b87c")},eb86:function(e,t,o){"use strict";o.r(t);var n=o("f2bf");const a={class:"manage-container"},r={class:"manage-input"},i={class:"manage-input"},l={class:"manage-button"};function s(e,t,o,s,c,d){const u=Object(n["resolveComponent"])("el-input"),m=Object(n["resolveComponent"])("el-form-item"),h=Object(n["resolveComponent"])("el-date-picker"),p=Object(n["resolveComponent"])("vab-query-form"),b=Object(n["resolveComponent"])("el-form"),g=Object(n["resolveComponent"])("el-option"),f=Object(n["resolveComponent"])("el-select"),v=Object(n["resolveComponent"])("el-button"),w=Object(n["resolveComponent"])("el-table-column"),k=Object(n["resolveComponent"])("el-tag"),C=Object(n["resolveComponent"])("el-table"),y=Object(n["resolveComponent"])("el-pagination"),O=Object(n["resolveComponent"])("add"),j=Object(n["resolveComponent"])("to-task");return Object(n["openBlock"])(),Object(n["createElementBlock"])("div",a,[Object(n["createElementVNode"])("div",r,[Object(n["createVNode"])(b,{ref:"queryForm",model:c.queryForm,"label-width":"80px"},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(p,null,{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(m,{width:"100",prop:"deviceName",label:e.$t("dataEnquiry.zdmc")},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(u,{modelValue:c.queryForm.deviceName,"onUpdate:modelValue":t[0]||(t[0]=e=>c.queryForm.deviceName=e),size:"small",placeholder:e.$t("dataEnquiry.qsrzdmc")},null,8,["modelValue","placeholder"])]),_:1},8,["label"]),Object(n["createVNode"])(m,{width:"100",prop:"handlerName",label:e.$t("alarm.clr")},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(u,{modelValue:c.queryForm.handlerName,"onUpdate:modelValue":t[1]||(t[1]=e=>c.queryForm.handlerName=e),size:"small",placeholder:e.$t("alarm.qsrclr")},null,8,["modelValue","placeholder"])]),_:1},8,["label"]),Object(n["createVNode"])(m,{width:"100",prop:"time",label:e.$t("defalult.rq")},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(h,{modelValue:c.queryForm.date,"onUpdate:modelValue":t[2]||(t[2]=e=>c.queryForm.date=e),size:"small",type:"daterange",align:"right","start-placeholder":e.$t("defalult.ksrq"),"end-placeholder":e.$t("defalult.jsrq"),onChange:d.changeTime},null,8,["modelValue","start-placeholder","end-placeholder","onChange"])]),_:1},8,["label"])]),_:1})]),_:1},8,["model"])]),Object(n["createElementVNode"])("div",i,[Object(n["createVNode"])(b,{ref:"queryForm",model:c.queryForm,"label-width":"80px"},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(p,null,{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(m,{width:"100",prop:"alarmLevel",label:e.$t("alarm.bjjb")},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(f,{modelValue:c.queryForm.alarmLevel,"onUpdate:modelValue":t[3]||(t[3]=e=>c.queryForm.alarmLevel=e),size:"small",placeholder:e.$t("alarm.bjjb")},{default:Object(n["withCtx"])(()=>[(Object(n["openBlock"])(!0),Object(n["createElementBlock"])(n["Fragment"],null,Object(n["renderList"])(c.levelData,e=>(Object(n["openBlock"])(),Object(n["createBlock"])(g,{key:e.dataCode,label:e.dataValue,value:e.dataCode},null,8,["label","value"]))),128))]),_:1},8,["modelValue","placeholder"])]),_:1},8,["label"]),Object(n["createVNode"])(m,{width:"100",prop:"alarmCategory",label:e.$t("alarm.bjlb")},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(f,{modelValue:c.queryForm.alarmCategory,"onUpdate:modelValue":t[4]||(t[4]=e=>c.queryForm.alarmCategory=e),size:"small",placeholder:e.$t("alarm.bjlb")},{default:Object(n["withCtx"])(()=>[(Object(n["openBlock"])(!0),Object(n["createElementBlock"])(n["Fragment"],null,Object(n["renderList"])(c.categoryData,e=>(Object(n["openBlock"])(),Object(n["createBlock"])(g,{key:e.dataCode,label:e.dataValue,value:e.dataCode},null,8,["label","value"]))),128))]),_:1},8,["modelValue","placeholder"])]),_:1},8,["label"]),Object(n["createVNode"])(m,{width:"100",prop:"date",label:e.$t("dataEnquiry.zt")},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(f,{modelValue:c.queryForm.status,"onUpdate:modelValue":t[5]||(t[5]=e=>c.queryForm.status=e),size:"small",placeholder:e.$t("dataEnquiry.zt")},{default:Object(n["withCtx"])(()=>[(Object(n["openBlock"])(!0),Object(n["createElementBlock"])(n["Fragment"],null,Object(n["renderList"])(c.statusData,e=>(Object(n["openBlock"])(),Object(n["createBlock"])(g,{key:e.value,label:e.label,value:e.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue","placeholder"])]),_:1},8,["label"])]),_:1})]),_:1},8,["model"])]),Object(n["createElementVNode"])("div",l,[Object(n["createVNode"])(v,{size:"small",onClick:t[6]||(t[6]=e=>d.resetForm())},{default:Object(n["withCtx"])(()=>[Object(n["createTextVNode"])(Object(n["toDisplayString"])(e.$t("defalult.chongz")),1)]),_:1}),Object(n["createVNode"])(v,{type:"primary",size:"small",onClick:d.search},{default:Object(n["withCtx"])(()=>[Object(n["createTextVNode"])(Object(n["toDisplayString"])(e.$t("defalult.cx")),1)]),_:1},8,["onClick"]),Object(n["createVNode"])(v,{type:"primary",size:"small",onClick:d.save},{default:Object(n["withCtx"])(()=>[Object(n["createTextVNode"])(Object(n["toDisplayString"])(e.$t("defalult.tj")),1)]),_:1},8,["onClick"]),Object(n["createVNode"])(v,{type:"primary",size:"small",onClick:d.exportData},{default:Object(n["withCtx"])(()=>[Object(n["createTextVNode"])(Object(n["toDisplayString"])(e.$t("defalult.dc")),1)]),_:1},8,["onClick"])]),Object(n["createVNode"])(C,{data:c.tableData,stripe:"",border:"",style:{width:"100%"}},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(w,{fixed:"",prop:"deviceName",label:e.$t("dataEnquiry.zdmc"),width:"150",align:"center"},null,8,["label"]),Object(n["createVNode"])(w,{fixed:"",prop:"sensorName",label:e.$t("siteDetails.cgqmc"),width:"150",align:"center"},null,8,["label"]),Object(n["createVNode"])(w,{prop:"alarmTime",label:e.$t("alarm.bjsj"),width:"200",align:"center"},null,8,["label"]),Object(n["createVNode"])(w,{prop:"alarmLevel",label:e.$t("alarm.bjjb"),width:"200",align:"center"},null,8,["label"]),Object(n["createVNode"])(w,{prop:"alarmCategory",label:e.$t("alarm.bjlb"),width:"200",align:"center"},null,8,["label"]),Object(n["createVNode"])(w,{prop:"alarmContent",label:e.$t("alarm.bjnr"),width:"300",align:"center"},null,8,["label"]),Object(n["createVNode"])(w,{prop:"handlerName",label:e.$t("alarm.clr"),width:"120",align:"center"},null,8,["label"]),Object(n["createVNode"])(w,{prop:"status",label:e.$t("dataEnquiry.zt"),width:"120",align:"center"},{default:Object(n["withCtx"])(({row:t})=>["已派工"==t.status?(Object(n["openBlock"])(),Object(n["createBlock"])(k,{key:"已派工",effect:"dark",type:"success",size:"mini"},{default:Object(n["withCtx"])(()=>[Object(n["createTextVNode"])(Object(n["toDisplayString"])(e.$t("alarm.ypg")),1)]),_:1})):Object(n["createCommentVNode"])("",!0),"未派工"==t.status?(Object(n["openBlock"])(),Object(n["createBlock"])(k,{key:"未派工",effect:"dark",type:"danger",size:"mini"},{default:Object(n["withCtx"])(()=>[Object(n["createTextVNode"])(Object(n["toDisplayString"])(e.$t("alarm.wpg")),1)]),_:1})):Object(n["createCommentVNode"])("",!0)]),_:1},8,["label"]),Object(n["createVNode"])(w,{prop:"remark",label:e.$t("alarm.bz"),width:"120",align:"center"},null,8,["label"]),Object(n["createVNode"])(w,{fixed:"right",label:e.$t("defalult.cz"),align:"center"},{default:Object(n["withCtx"])(({row:t})=>[Object(n["createVNode"])(v,{type:"text",onClick:e=>d.handleDelete(t)},{default:Object(n["withCtx"])(()=>[Object(n["createTextVNode"])(Object(n["toDisplayString"])(e.$t("defalult.sc")),1)]),_:2},1032,["onClick"]),"未派工"==t.status?(Object(n["openBlock"])(),Object(n["createBlock"])(v,{key:0,type:"text",onClick:e=>d.handleTask(t)},{default:Object(n["withCtx"])(()=>[Object(n["createTextVNode"])(Object(n["toDisplayString"])(e.$t("alarm.zgd")),1)]),_:2},1032,["onClick"])):Object(n["createCommentVNode"])("",!0)]),_:1},8,["label"])]),_:1},8,["data"]),Object(n["createVNode"])(y,{background:c.background,"current-page":c.queryForm.page,layout:c.layout,"page-size":c.queryForm.size,total:c.total,style:{"text-align":"right"},onCurrentChange:d.handleCurrentChange,onSizeChange:d.handleSizeChange},null,8,["background","current-page","layout","page-size","total","onCurrentChange","onSizeChange"]),Object(n["createVNode"])(O,{ref:"add"},null,512),Object(n["createVNode"])(j,{ref:"tack"},null,512)])}var c=o("5f99"),d=o("3f02"),u=o("9e04"),m=o("3038"),h=o("88de"),p={components:{add:h["default"],toTask:d["default"]},data(){return{tableData:[],lazy:!0,layout:"total, sizes, prev, pager, next, jumper",total:0,background:!0,listLoading:!1,elementLoadingText:"正在加载...",levelData:[],categoryData:[],statusData:[{value:3,label:"all"},{value:0,label:"未派工"},{value:1,label:"已派工"}],queryForm:{page:1,size:20,projectId:"",deviceName:"",handlerName:"",alarmLevel:"",alarmCategory:"",date:"",start:"",end:"",status:3}}},created(){this.queryForm.projectId=sessionStorage.getItem("projectId")},methods:{showData(){this.setDefaultTime(),this.getLevel(),this.getCategory(),this.fetchData()},changeTime(){this.queryForm.start=Object(c["getDate"])(this.queryForm.date[0]),this.queryForm.end=Object(c["getDate"])(this.queryForm.date[1])},setDefaultTime(){this.queryForm.date=Object(c["getPastTime"])(1),this.queryForm.start=Object(c["getDate"])(this.queryForm.date[0]),this.queryForm.end=Object(c["getDate"])(this.queryForm.date[1])},async fetchData(){const{data:e}=await Object(u["getAlarm"])(this.queryForm);this.tableData=e.items,this.total=e.total},save(){this.$refs["add"].showEdit()},async getLevel(){const{data:e}=await Object(u["alarmLevelDict"])();this.levelData=e},async getCategory(){const{data:e}=await Object(u["alarmCategoryDict"])();this.categoryData=e},async exportData(){const e=await Object(u["alarmExport"])(this.queryForm);m["default"].downloadFile(e,{fileName:"报警记录.xls"})},search(){this.fetchData()},resetForm(){this.$refs.queryForm.resetFields()},async handleTask(e){this.$refs["tack"].showEdit(e)},deletes(e){const t=this;this.$confirm("你确定要删除当前项吗?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(()=>{const{msg:o}=Object(u["doDelete"])(e);this.$message({type:"success",message:void 0==o?"删除成功":o}),setTimeout((function(){t.fetchData()}),1e3)}).catch(()=>{this.$message({type:"info",message:"已取消删除"})})},handleDelete(e){const t=this;t.deletes([e.id])},handleQuery(){this.queryForm.page=1,this.fetchData()},handleSizeChange(e){this.queryForm.size=e,this.fetchData()},handleCurrentChange(e){this.queryForm.page=e,this.fetchData()}}},b=(o("5a04"),o("d959")),g=o.n(b);const f=g()(p,[["render",s],["__scopeId","data-v-4a06eab0"]]);t["default"]=f},eb9b:function(e,t,o){"use strict";o.r(t);var n=o("f2bf");const a={class:"dialog-footer"};function r(e,t,o,r,i,l){const s=Object(n["resolveComponent"])("el-option"),c=Object(n["resolveComponent"])("el-select"),d=Object(n["resolveComponent"])("el-form-item"),u=Object(n["resolveComponent"])("el-input"),m=Object(n["resolveComponent"])("el-date-picker"),h=Object(n["resolveComponent"])("el-form"),p=Object(n["resolveComponent"])("el-button"),b=Object(n["resolveComponent"])("el-dialog");return Object(n["openBlock"])(),Object(n["createBlock"])(b,{modelValue:i.dialogFormVisible,"onUpdate:modelValue":t[5]||(t[5]=e=>i.dialogFormVisible=e),title:i.title,width:"500px"},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(h,{ref:"form",model:i.form,"label-width":"80px","label-position":"left"},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(d,{label:"选择站点"},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(c,{modelValue:i.form.deviceCode,"onUpdate:modelValue":t[0]||(t[0]=e=>i.form.deviceCode=e),filterable:"",placeholder:"选择站点",onChange:l.deviceChange},{default:Object(n["withCtx"])(()=>[(Object(n["openBlock"])(!0),Object(n["createElementBlock"])(n["Fragment"],null,Object(n["renderList"])(i.deviceData,e=>(Object(n["openBlock"])(),Object(n["createBlock"])(s,{key:e.code,label:e.name,value:e.code},null,8,["label","value"]))),128))]),_:1},8,["modelValue","onChange"])]),_:1}),Object(n["createVNode"])(d,{label:"紧急程度",prop:"taskLevel"},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(c,{modelValue:i.form.taskLevel,"onUpdate:modelValue":t[1]||(t[1]=e=>i.form.taskLevel=e),size:"small",filterable:"",placeholder:"选择紧急程度"},{default:Object(n["withCtx"])(()=>[(Object(n["openBlock"])(!0),Object(n["createElementBlock"])(n["Fragment"],null,Object(n["renderList"])(i.levelData,e=>(Object(n["openBlock"])(),Object(n["createBlock"])(s,{key:e.dataCode,label:e.dataValue,value:e.dataCode},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),Object(n["createVNode"])(d,{label:e.$t("task.rwnr")},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(u,{modelValue:i.form.taskContent,"onUpdate:modelValue":t[2]||(t[2]=e=>i.form.taskContent=e),type:"textarea"},null,8,["modelValue"])]),_:1},8,["label"]),Object(n["createVNode"])(d,{label:e.$t("task.clr")},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(c,{modelValue:i.form.handler,"onUpdate:modelValue":t[3]||(t[3]=e=>i.form.handler=e),filterable:"",placeholder:"选择处理人"},{default:Object(n["withCtx"])(()=>[(Object(n["openBlock"])(!0),Object(n["createElementBlock"])(n["Fragment"],null,Object(n["renderList"])(i.handlersData,e=>(Object(n["openBlock"])(),Object(n["createBlock"])(s,{key:e.id,label:e.name,value:e.id},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1},8,["label"]),Object(n["createVNode"])(d,{label:e.$t("task.wcsj")},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(m,{modelValue:i.form.completeTime,"onUpdate:modelValue":t[4]||(t[4]=e=>i.form.completeTime=e),type:"datetime",placeholder:e.$t("defalult.xzrq"),onChange:l.standardToTime},null,8,["modelValue","placeholder","onChange"])]),_:1},8,["label"])]),_:1},8,["model"]),Object(n["createElementVNode"])("div",a,[Object(n["createVNode"])(p,{type:"primary",onClick:l.save},{default:Object(n["withCtx"])(()=>t[6]||(t[6]=[Object(n["createTextVNode"])("确 定")])),_:1},8,["onClick"]),Object(n["createVNode"])(p,{onClick:l.close},{default:Object(n["withCtx"])(()=>t[7]||(t[7]=[Object(n["createTextVNode"])("取 消")])),_:1},8,["onClick"])])]),_:1},8,["modelValue","title"])}var i=o("b199"),l=o("1b0a"),s=o("5f99"),c={data(){return{form:{id:"",deviceCode:"",taskContent:"",handler:"",completeTime:"",taskLevel:"",type:0},title:"",dialogFormVisible:!1,deviceData:[],handlersData:[],levelData:[],queryForm:{projectId:""}}},created(){this.queryForm.projectId=sessionStorage.getItem("projectId")},methods:{async getDictData(){const{data:e}=await Object(l["getDevices"])(this.queryForm);this.deviceData=e},deviceChange(){this.getHandlersData()},async getHandlersData(){const{data:e}=await Object(i["getHandlers"])(this.form);this.handlersData=e},async getTaskLevelData(){const{data:e}=await Object(i["getTaskLevel"])(this.form);this.levelData=e},standardToTime(){this.form.completeTime=Object(s["formatDateTime"])(this.form.completeTime)},setDefaultTime(){this.form.completeTime=Object(s["formatDateTime"])()},showEdit(e){if(this.getDictData(),this.getTaskLevelData(),e){this.title="编辑",this.menuId=e.id;var t=Object.assign({},e);this.form.id=t.id,this.form.deviceCode=t.device.code,this.form.taskContent=t.taskContent,this.form.handler=t.handler.id,this.form.completeTime=t.completeTime,void 0!=t.taskLevel&&(this.form.taskLevel=t.taskLevel.dataCode),this.getHandlersData()}else this.title="添加",this.form.id="",this.form.deviceCode="",this.form.taskContent="",this.form.handler="",this.form.completeTime="";this.dialogFormVisible=!0},close(){this.$refs["form"].resetFields(),this.form=this.$options.data().form,this.dialogFormVisible=!1,this.$emit("fetch-data")},save(){this.$refs["form"].validate(async e=>{if(!e)return!1;if(""==this.form.taskContent&&delete this.form.taskContent,""==this.form.handler&&delete this.form.handler,""==this.form.completeTime&&delete this.form.completeTime,this.form.id){const{msg:e}=await Object(i["doEdit"])(this.form);this.$notify({title:e,type:"success"})}else{delete this.form.id;const{msg:e}=await Object(i["doAdd"])(this.form);this.$notify({title:e,type:"success"})}this.$refs["form"].resetFields(),this.dialogFormVisible=!1,this.$parent.fetchData()})}}},d=o("d959"),u=o.n(d);const m=u()(c,[["render",r]]);t["default"]=m},ebb2:function(e,t,o){"use strict";o("90aa")},ec5c:function(e,t,o){"use strict";o("c67c")},ec65:function(e,t,o){"use strict";o.r(t);var n=o("f2bf");const a={class:"manage-container"},r={id:"main2",ref:"echarts",style:{height:"380px"}};function i(e,t,o,i,l,s){const c=Object(n["resolveComponent"])("el-option"),d=Object(n["resolveComponent"])("el-select"),u=Object(n["resolveComponent"])("el-form-item"),m=Object(n["resolveComponent"])("el-button"),h=Object(n["resolveComponent"])("vab-query-form"),p=Object(n["resolveComponent"])("el-form"),b=Object(n["resolveComponent"])("el-card"),g=Object(n["resolveComponent"])("el-table-column"),f=Object(n["resolveComponent"])("el-table"),v=Object(n["resolveComponent"])("el-pagination"),w=Object(n["resolveComponent"])("vab-query-form-right-panel"),k=Object(n["resolveDirective"])("loading");return Object(n["openBlock"])(),Object(n["createElementBlock"])("div",a,[Object(n["createVNode"])(p,{ref:"queryForm",model:l.queryForm,"label-width":"80px"},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(h,null,{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(u,{width:"100",prop:"deviceCode",label:e.$t("sensor.qgq")},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(d,{modelValue:l.queryForm.dataKey,"onUpdate:modelValue":t[0]||(t[0]=e=>l.queryForm.dataKey=e),placeholder:e.$t("sensor.qxzqgq")},{default:Object(n["withCtx"])(()=>[(Object(n["openBlock"])(!0),Object(n["createElementBlock"])(n["Fragment"],null,Object(n["renderList"])(l.sensorsData,e=>(Object(n["openBlock"])(),Object(n["createBlock"])(c,{key:e.transferId,label:e.name,value:e.transferId},null,8,["label","value"]))),128))]),_:1},8,["modelValue","placeholder"])]),_:1},8,["label"]),Object(n["createVNode"])(u,{width:"100"},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(m,{onClick:t[1]||(t[1]=e=>s.resetForm())},{default:Object(n["withCtx"])(()=>[Object(n["createTextVNode"])(Object(n["toDisplayString"])(e.$t("defalult.chongz")),1)]),_:1}),Object(n["createVNode"])(m,{type:"primary",size:"medium",onClick:s.search},{default:Object(n["withCtx"])(()=>[Object(n["createTextVNode"])(Object(n["toDisplayString"])(e.$t("defalult.cx")),1)]),_:1},8,["onClick"]),Object(n["createVNode"])(m,{type:"primary",size:"medium",onClick:s.exportData},{default:Object(n["withCtx"])(()=>[Object(n["createTextVNode"])(Object(n["toDisplayString"])(e.$t("defalult.dc")),1)]),_:1},8,["onClick"])]),_:1})]),_:1})]),_:1},8,["model"]),Object(n["createVNode"])(b,{style:{height:"380px"}},{default:Object(n["withCtx"])(()=>[Object(n["createElementVNode"])("div",r,null,512)]),_:1}),Object(n["withDirectives"])((Object(n["openBlock"])(),Object(n["createBlock"])(f,{data:l.newTableData,border:"",stripe:"",style:{width:"100%"}},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(g,{prop:"time",label:e.$t("sensor.ccsj"),align:"center"},null,8,["label"]),Object(n["createVNode"])(g,{prop:"name",label:e.$t("sensor.cgqmc"),align:"center"},null,8,["label"]),Object(n["createVNode"])(g,{prop:"dataKey",label:e.$t("sensor.csid"),align:"center"},null,8,["label"]),Object(n["createVNode"])(g,{prop:"value",label:e.$t("sensor.zhi"),align:"center"},null,8,["label"]),Object(n["createVNode"])(g,{prop:"unit",label:e.$t("sensor.dw"),align:"center"},null,8,["label"])]),_:1},8,["data"])),[[k,l.listLoading]]),Object(n["createVNode"])(h,null,{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(w,null,{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(v,{background:l.background,"current-page":l.queryForm.page,layout:l.layout,"page-size":l.queryForm.size,total:l.total,onCurrentChange:s.handleCurrentChange,onSizeChange:s.handleSizeChange},null,8,["background","current-page","layout","page-size","total","onCurrentChange","onSizeChange"])]),_:1})]),_:1})])}o("14d9");var l=o("aa98"),s=o("5f99"),c=o("313e"),d=o("3038"),u={components:{},data(){return{newTableData:[],data:[],deviceCode:"",projectId:"",lazy:!0,layout:"total, sizes, prev, pager, next, jumper",total:0,background:!0,listLoading:!0,elementLoadingText:"正在加载...",deviceId:"",historyData:[],sensorsData:[],sensorInfoData:[],queryForm:{page:1,size:10,sensorName:"",deviceCode:"",dataKey:"",end:""},startDate:""}},computed:{height(){return 500}},created(){this.queryForm.end=this.queryForm.start=Object(s["getFMdate"])(-1),this.queryForm.dataKey=this.$route.query.dataKey,this.queryForm.deviceCode=this.$route.query.deviceCode,this.setDefaultTime(),this.getSensorsData(),this.sensorInfo(),this.fetchData()},methods:{async fetchData(){this.listLoading=!0;const{data:e}=await Object(l["getHistoryData"])(this.queryForm);this.data=e,this.total=e.length,this.handleCurrentChange(1),setTimeout(()=>{this.listLoading=!1,this.getHistoryData()},500)},async sensorInfo(){const{data:e}=await Object(l["sensorInfo"])(this.queryForm);this.sensorInfoData=e},async getSensorsData(){const{data:e}=await Object(l["sensors"])(this.queryForm);this.sensorsData=e},async getHistoryData(){var e,t=c["a"](document.getElementById("main2"));const{data:o}=await Object(l["getReportHistoryData"])(this.queryForm);var n=[];for(let i=0;i<o.length;i++)n.push(o[i][1]);var a=Math.min.apply(null,n),r=Math.max.apply(null,n);e={tooltip:{trigger:"axis",position:function(e){return[e[0],"10%"]}},title:{left:"center",text:"折线图"},toolbox:{feature:{dataZoom:{yAxisIndex:"none"},restore:{},saveAsImage:{}}},xAxis:{type:"time",boundaryGap:!1},yAxis:{type:"value",boundaryGap:[0,"100%"],min:a,max:r},dataZoom:[{type:"inside"}],series:[{name:"数据",type:"line",smooth:!0,symbol:"none",areaStyle:{},data:o}]},e&&t.setOption(e)},setDefaultTime(){this.queryForm.end=Object(s["getFMdate"])(0),this.queryForm.start=Object(s["getFMdate"])(-1),this.startDate=[Object(s["getFMdate"])(-1),Object(s["getFMdate"])(0)]},async exportData(){const e=await Object(l["exportIotData"])(this.queryForm);d["default"].downloadFile(e,{fileName:"站点最新数据.xls"})},search(){this.sensorInfo(),this.fetchData()},timeToStr(){var e=this.sensorInfoData;this.newTableData.forEach(t=>{t["time"]=Object(s["formatDateTime"])(t[0]),t["value"]=t[1],t["name"]=e.name,t["unit"]=e.unit,t["dataKey"]=e.dataKey})},resetForm(){this.$refs.queryForm.resetFields()},showData(e){this.queryForm.dataKey=e.dataKey,this.fetchData()},handleQuery(){this.queryForm.page=1},handleSizeChange(e){this.queryForm.size=e},handleCurrentChange(e){this.queryForm.page=e;const t=this.queryForm.size;this.newTableData=this.data.slice((e-1)*t,e*t),console.log(this.newTableData),this.timeToStr()}}},m=(o("4180"),o("d959")),h=o.n(m);const p=h()(u,[["render",i],["__scopeId","data-v-15144208"]]);t["default"]=p},edf3:function(e,t,o){"use strict";o("48e2")},ee06:function(e,t,o){e.exports={"menu-color":"hsla(0,0%,27%,.95)","menu-color-active":"hsla(208,100%,55%,.95)","menu-background":"#fff","gallery-second-menu-background":"#fff"}},ee33:function(e,t,o){"use strict";o("4e55")},ee5b:function(e,t,o){"use strict";o.r(t);var n=o("f2bf");const a={class:"manage-container"};function r(e,t,o,r,i,l){const s=Object(n["resolveComponent"])("el-date-picker"),c=Object(n["resolveComponent"])("vab-query-form-left-panel"),d=Object(n["resolveComponent"])("el-button"),u=Object(n["resolveComponent"])("vab-query-form-right-panel"),m=Object(n["resolveComponent"])("vab-query-form"),h=Object(n["resolveComponent"])("el-table-column"),p=Object(n["resolveComponent"])("el-input"),b=Object(n["resolveComponent"])("el-table"),g=Object(n["resolveComponent"])("el-tab-pane"),f=Object(n["resolveComponent"])("el-tabs");return Object(n["openBlock"])(),Object(n["createElementBlock"])("div",a,[Object(n["createVNode"])(f,{modelValue:i.activeName,"onUpdate:modelValue":t[2]||(t[2]=e=>i.activeName=e),onTabClick:l.handleClick},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(g,{label:"运行月报表",name:"first"},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(m,null,{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(c,null,{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(s,{modelValue:e.value1,"onUpdate:modelValue":t[0]||(t[0]=t=>e.value1=t),type:"date",placeholder:e.$t("defalult.xzrq")},null,8,["modelValue","placeholder"])]),_:1}),Object(n["createVNode"])(u,null,{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(d,{type:"primary"},{default:Object(n["withCtx"])(()=>[Object(n["createTextVNode"])(Object(n["toDisplayString"])(e.$t("defalult.dc")),1)]),_:1})]),_:1})]),_:1}),Object(n["createVNode"])(b,{data:i.tableData,border:"",style:{width:"100%"}},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(h,{fixed:"",prop:"date",label:"项目/月份",width:"150",align:"center"}),Object(n["createVNode"])(h,{prop:"Jan",label:" 一月 ",width:" 100 ",align:"center"},{default:Object(n["withCtx"])(({row:e})=>[Object(n["createVNode"])(p,{modelValue:e.Jan,"onUpdate:modelValue":t=>e.Jan=t},null,8,["modelValue","onUpdate:modelValue"])]),_:1}),Object(n["createVNode"])(h,{prop:"Feb",label:" 二月 ",width:" 100 ",align:"center"},{default:Object(n["withCtx"])(({row:e})=>[Object(n["createVNode"])(p,{modelValue:e.Feb,"onUpdate:modelValue":t=>e.Feb=t},null,8,["modelValue","onUpdate:modelValue"])]),_:1}),Object(n["createVNode"])(h,{prop:"Mar",label:" 三月 ",width:" 100 ",align:"center"},{default:Object(n["withCtx"])(({row:e})=>[Object(n["createVNode"])(p,{modelValue:e.Mar,"onUpdate:modelValue":t=>e.Mar=t},null,8,["modelValue","onUpdate:modelValue"])]),_:1}),Object(n["createVNode"])(h,{prop:"Apr",label:" 四月 ",width:" 100 ",align:"center"},{default:Object(n["withCtx"])(({row:e})=>[Object(n["createVNode"])(p,{modelValue:e.Apr,"onUpdate:modelValue":t=>e.Apr=t},null,8,["modelValue","onUpdate:modelValue"])]),_:1}),Object(n["createVNode"])(h,{prop:"May",label:" 五月 ",width:" 100 ",align:"center"},{default:Object(n["withCtx"])(({row:e})=>[Object(n["createVNode"])(p,{modelValue:e.May,"onUpdate:modelValue":t=>e.May=t},null,8,["modelValue","onUpdate:modelValue"])]),_:1}),Object(n["createVNode"])(h,{prop:"Jun",label:" 六月 ",width:" 100 ",align:"center"},{default:Object(n["withCtx"])(({row:e})=>[Object(n["createVNode"])(p,{modelValue:e.Jun,"onUpdate:modelValue":t=>e.Jun=t},null,8,["modelValue","onUpdate:modelValue"])]),_:1}),Object(n["createVNode"])(h,{prop:"Jul",label:" 七月 ",width:" 100 ",align:"center"},{default:Object(n["withCtx"])(({row:e})=>[Object(n["createVNode"])(p,{modelValue:e.Jul,"onUpdate:modelValue":t=>e.Jul=t},null,8,["modelValue","onUpdate:modelValue"])]),_:1}),Object(n["createVNode"])(h,{prop:"Aug",label:" 八月 ",width:" 100 ",align:"center"},{default:Object(n["withCtx"])(({row:e})=>[Object(n["createVNode"])(p,{modelValue:e.Aug,"onUpdate:modelValue":t=>e.Aug=t},null,8,["modelValue","onUpdate:modelValue"])]),_:1}),Object(n["createVNode"])(h,{prop:"Sept",label:" 九月 ",width:" 100 ",align:"center"},{default:Object(n["withCtx"])(({row:e})=>[Object(n["createVNode"])(p,{modelValue:e.Sept,"onUpdate:modelValue":t=>e.Sept=t},null,8,["modelValue","onUpdate:modelValue"])]),_:1}),Object(n["createVNode"])(h,{prop:"Oct",label:" 十月 ",width:" 100 ",align:"center"},{default:Object(n["withCtx"])(({row:e})=>[Object(n["createVNode"])(p,{modelValue:e.Oct,"onUpdate:modelValue":t=>e.Oct=t},null,8,["modelValue","onUpdate:modelValue"])]),_:1}),Object(n["createVNode"])(h,{prop:" Nov ",label:"十一月",width:" 100 ",align:"center"},{default:Object(n["withCtx"])(({row:e})=>[Object(n["createVNode"])(p,{modelValue:e.Nov,"onUpdate:modelValue":t=>e.Nov=t},null,8,["modelValue","onUpdate:modelValue"])]),_:1}),Object(n["createVNode"])(h,{prop:"Dec",label:" 十二月 ",width:" 100 ",align:"center"},{default:Object(n["withCtx"])(({row:e})=>[Object(n["createVNode"])(p,{modelValue:e.Dec,"onUpdate:modelValue":t=>e.Dec=t},null,8,["modelValue","onUpdate:modelValue"])]),_:1}),Object(n["createVNode"])(h,{fixed:"right",prop:"Total",label:"合计",align:"center",width:"130"},{default:Object(n["withCtx"])(({row:e})=>[Object(n["createVNode"])(p,{modelValue:e.Total,"onUpdate:modelValue":t=>e.Total=t},null,8,["modelValue","onUpdate:modelValue"])]),_:1})]),_:1},8,["data"])]),_:1}),Object(n["createVNode"])(g,{label:"运行年费总表",name:"second"},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(m,null,{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(c,null,{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(s,{modelValue:e.value1,"onUpdate:modelValue":t[1]||(t[1]=t=>e.value1=t),type:"date",placeholder:e.$t("defalult.xzrq")},null,8,["modelValue","placeholder"])]),_:1}),Object(n["createVNode"])(u,null,{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(d,{type:"primary"},{default:Object(n["withCtx"])(()=>[Object(n["createTextVNode"])(Object(n["toDisplayString"])(e.$t("defalult.dc")),1)]),_:1})]),_:1})]),_:1}),Object(n["createVNode"])(b,{data:i.tableData,border:"",style:{width:"100%"}},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(h,{fixed:"",prop:"date",label:"项目/月份",width:"150",align:"center"}),Object(n["createVNode"])(h,{prop:"Jan",label:" 一月 ",width:" 100 ",align:"center"},{default:Object(n["withCtx"])(({row:e})=>[Object(n["createVNode"])(p,{modelValue:e.Jan,"onUpdate:modelValue":t=>e.Jan=t},null,8,["modelValue","onUpdate:modelValue"])]),_:1}),Object(n["createVNode"])(h,{prop:"Feb",label:" 二月 ",width:" 100 ",align:"center"},{default:Object(n["withCtx"])(({row:e})=>[Object(n["createVNode"])(p,{modelValue:e.Feb,"onUpdate:modelValue":t=>e.Feb=t},null,8,["modelValue","onUpdate:modelValue"])]),_:1}),Object(n["createVNode"])(h,{prop:"Mar",label:" 三月 ",width:" 100 ",align:"center"},{default:Object(n["withCtx"])(({row:e})=>[Object(n["createVNode"])(p,{modelValue:e.Mar,"onUpdate:modelValue":t=>e.Mar=t},null,8,["modelValue","onUpdate:modelValue"])]),_:1}),Object(n["createVNode"])(h,{prop:"Apr",label:" 四月 ",width:" 100 ",align:"center"},{default:Object(n["withCtx"])(({row:e})=>[Object(n["createVNode"])(p,{modelValue:e.Apr,"onUpdate:modelValue":t=>e.Apr=t},null,8,["modelValue","onUpdate:modelValue"])]),_:1}),Object(n["createVNode"])(h,{prop:"May",label:" 五月 ",width:" 100 ",align:"center"},{default:Object(n["withCtx"])(({row:e})=>[Object(n["createVNode"])(p,{modelValue:e.May,"onUpdate:modelValue":t=>e.May=t},null,8,["modelValue","onUpdate:modelValue"])]),_:1}),Object(n["createVNode"])(h,{prop:"Jun",label:" 六月 ",width:" 100 ",align:"center"},{default:Object(n["withCtx"])(({row:e})=>[Object(n["createVNode"])(p,{modelValue:e.Jun,"onUpdate:modelValue":t=>e.Jun=t},null,8,["modelValue","onUpdate:modelValue"])]),_:1}),Object(n["createVNode"])(h,{prop:"Jul",label:" 七月 ",width:" 100 ",align:"center"},{default:Object(n["withCtx"])(({row:e})=>[Object(n["createVNode"])(p,{modelValue:e.Jul,"onUpdate:modelValue":t=>e.Jul=t},null,8,["modelValue","onUpdate:modelValue"])]),_:1}),Object(n["createVNode"])(h,{prop:"Aug",label:" 八月 ",width:" 100 ",align:"center"},{default:Object(n["withCtx"])(({row:e})=>[Object(n["createVNode"])(p,{modelValue:e.Aug,"onUpdate:modelValue":t=>e.Aug=t},null,8,["modelValue","onUpdate:modelValue"])]),_:1}),Object(n["createVNode"])(h,{prop:"Sept",label:" 九月 ",width:" 100 ",align:"center"},{default:Object(n["withCtx"])(({row:e})=>[Object(n["createVNode"])(p,{modelValue:e.Sept,"onUpdate:modelValue":t=>e.Sept=t},null,8,["modelValue","onUpdate:modelValue"])]),_:1}),Object(n["createVNode"])(h,{prop:"Oct",label:" 十月 ",width:" 100 ",align:"center"},{default:Object(n["withCtx"])(({row:e})=>[Object(n["createVNode"])(p,{modelValue:e.Oct,"onUpdate:modelValue":t=>e.Oct=t},null,8,["modelValue","onUpdate:modelValue"])]),_:1}),Object(n["createVNode"])(h,{prop:" Nov ",label:"十一月",width:" 100 ",align:"center"},{default:Object(n["withCtx"])(({row:e})=>[Object(n["createVNode"])(p,{modelValue:e.Nov,"onUpdate:modelValue":t=>e.Nov=t},null,8,["modelValue","onUpdate:modelValue"])]),_:1}),Object(n["createVNode"])(h,{prop:"Dec",label:" 十二月 ",width:" 100 ",align:"center"},{default:Object(n["withCtx"])(({row:e})=>[Object(n["createVNode"])(p,{modelValue:e.Dec,"onUpdate:modelValue":t=>e.Dec=t},null,8,["modelValue","onUpdate:modelValue"])]),_:1}),Object(n["createVNode"])(h,{fixed:"right",prop:"Total",label:"合计",align:"center",width:"130"},{default:Object(n["withCtx"])(({row:e})=>[Object(n["createVNode"])(p,{modelValue:e.Total,"onUpdate:modelValue":t=>e.Total=t},null,8,["modelValue","onUpdate:modelValue"])]),_:1})]),_:1},8,["data"])]),_:1})]),_:1},8,["modelValue","onTabClick"])])}var i={data(){return{activeName:"second",tableData:[{date:"运转时间d",Jan:"31",Feb:"28",Mar:"31",Apr:"30",May:"31",Jun:"30",Jul:"31",Aug:"31",Sept:"30",Oct:"31",Nov:"30",Dec:"31",Total:"365"},{date:"运转率(%",Jan:" 100 ",Feb:" 100 ",Mar:" 100 ",Apr:" 100 ",May:" 100 ",Jun:" 100 ",Jul:" 100 ",Aug:" 100 ",Sept:" 100 ",Oct:" 100 ",Nov:" 100 ",Dec:" 100 ",Total:" 100 "},{date:"污水处理总量",Jan:"50829.13",Feb:"60254.5",Mar:"62623.3",Apr:"66087.5",May:"60807",Jun:"64541",Jul:"50829.13",Aug:"50829.13",Sept:"50829.13",Oct:"50829.13",Nov:"50829.13",Dec:"50829.13",Total:"740350.65"},{date:"污水处理总量",Jan:"50829.13",Feb:"60254.5",Mar:"62623.3",Apr:"66087.5",May:"60807",Jun:"64541",Jul:"50829.13",Aug:"50829.13",Sept:"50829.13",Oct:"50829.13",Nov:"50829.13",Dec:"50829.13",Total:"740350.65"},{date:"污水处理总量",Jan:"50829.13",Feb:"60254.5",Mar:"62623.3",Apr:"66087.5",May:"60807",Jun:"64541",Jul:"50829.13",Aug:"50829.13",Sept:"50829.13",Oct:"50829.13",Nov:"50829.13",Dec:"50829.13",Total:"740350.65"},{date:"污水处理总量",Jan:"50829.13",Feb:"60254.5",Mar:"62623.3",Apr:"66087.5",May:"60807",Jun:"64541",Jul:"50829.13",Aug:"50829.13",Sept:"50829.13",Oct:"50829.13",Nov:"50829.13",Dec:"50829.13",Total:"740350.65"}]}},methods:{handleClick(e,t){console.log(e,t)},methods:{handleClick(e){console.log(e)}}}},l=(o("3fc5"),o("d959")),s=o.n(l);const c=s()(i,[["render",r]]);t["default"]=c},ee68:function(e,t,o){},ef1f:function(e,t){(function(){"use strict";var e=tinymce.util.Tools.resolve("tinymce.PluginManager");const t=(e,t)=>{e.focus(),e.undoManager.transact(()=>{e.setContent(t)}),e.selection.setCursorLocation(),e.nodeChanged()},o=e=>e.getContent({source_view:!0}),n=e=>{const n=o(e);e.windowManager.open({title:"Source Code",size:"large",body:{type:"panel",items:[{type:"textarea",name:"code"}]},buttons:[{type:"cancel",name:"cancel",text:"Cancel"},{type:"submit",name:"save",text:"Save",primary:!0}],initialData:{code:n},onSubmit:o=>{t(e,o.getData().code),o.close()}})},a=e=>{e.addCommand("mceCodeEditor",()=>{n(e)})},r=e=>{const t=()=>e.execCommand("mceCodeEditor");e.ui.registry.addButton("code",{icon:"sourcecode",tooltip:"Source code",onAction:t}),e.ui.registry.addMenuItem("code",{icon:"sourcecode",text:"Source code",onAction:t})};var i=()=>{e.add("code",e=>(a(e),r(e),{}))};i()})()},ef87:function(e,t,o){},f07d:function(e,t,o){"use strict";o.r(t);var n=o("f2bf");const a={class:"manage-container"};function r(e,t,o,r,i,l){const s=Object(n["resolveComponent"])("el-table-column"),c=Object(n["resolveComponent"])("el-table"),d=Object(n["resolveDirective"])("loading");return Object(n["openBlock"])(),Object(n["createElementBlock"])("div",a,[Object(n["withDirectives"])((Object(n["openBlock"])(),Object(n["createBlock"])(c,{id:"table",data:i.tableData,border:"","span-method":l.objectSpanMethod,stripe:"",style:{width:"100%"}},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(s,{prop:"zjd",label:"镇(街道)"}),Object(n["createVNode"])(s,{prop:"xzc",label:"行政村"}),Object(n["createVNode"])(s,{prop:"zrc",label:"自然村"}),Object(n["createVNode"])(s,{prop:"ssgm",label:"设施规模"}),Object(n["createVNode"])(s,{prop:"yfdlo",label:"5月份电量"}),Object(n["createVNode"])(s,{prop:"yfdlg",label:"6月份电量"}),Object(n["createVNode"])(s,{prop:"ydl",label:"用电量"}),Object(n["createVNode"])(s,{prop:"yfslo",label:"5月份水量"}),Object(n["createVNode"])(s,{prop:"yfslg",label:"6月份水量"}),Object(n["createVNode"])(s,{prop:"clsl",label:"处理水量"})]),_:1},8,["data","span-method"])),[[d,i.listLoading]])])}o("14d9"),o("093a");var i={data(){return{tableData:[],lazy:!0,layout:"total, sizes, prev, pager, next, jumper",total:0,background:!0,listLoading:!1,elementLoadingText:"正在加载...",queryForm:{projectId:""}}},created(){this.queryForm.projectId=sessionStorage.getItem("projectId"),this.fetchData()},methods:{objectSpanMethod(e){let{column:t,rowIndex:o,columnIndex:n}=e;if(0===n){if(0===o)return{rowspan:23,colspan:1};if(o>0&&o<23)return{rowspan:0,colspan:0}}else if(1===n){if(0===o)return{rowspan:4,colspan:1};if(4===o)return{rowspan:3,colspan:1};if(7===o)return{rowspan:5,colspan:1};if(12===o)return{rowspan:2,colspan:1};if(14===o)return{rowspan:3,colspan:1};if(17===o)return{rowspan:2,colspan:1};if(20===o)return{rowspan:3,colspan:1};if(23!=o&&25!=o&&24!=o&&19!=o)return{rowspan:0,colspan:0}}},async fetchData(){let e=[["尧塘","万新村","尹干桥村","30","5.28 ","16937","17196","259","22951","23233","282"],["尧塘","万新村","泗庄村","20","5.28 ","17299","17782","483","6437","6654","217"],["尧塘","万新村","迪庄村(东)","15","5.28 ","19647","20247","600","9430","9727","297"],["尧塘","万新村","迪庄村(西)","15","5.28 ","16000","16461","461","9422","9741","319"],["尧塘","水东村","万家头村","10","5.28 ","19133","19780","647","4022","4319","297"],["尧塘","水东村","水东村","15","5.28 ","17610","17965","355","19585","19910","325"],["尧塘","水东村","水西村","10","5.28 ","18828","19363","535","10643","10968","325"],["尧塘","","东观庄","15","5.28 ","16040","16474","434","4028","4800","772"],["尧塘","","东塘村","10","5.28 ","18671","19060","389","15305","15679","374"],["尧塘","","张塘村","20","5.28 ","24031","24483","452","14399","14724","325"],["尧塘","","夏家4村","25","5.28 ","13169","13945","776","4882","5191","309"],["尧塘","","小白河村","25","5.28 ","11232","11690","458","4304","4718","414"],["尧塘","水北社区","雯头村(南)","30","5.28 ","19238","19886","648","9514","9883","369"],["尧塘","水北社区","雯头村(北)","30","5.28 ","18714","19225","511","8716","9113","397"],["尧塘","西华村","西华村","10","5.28 ","15165","15511","346","2879","2955","76"],["尧塘","西华村","东榭村","10","5.28 ","18593","19105","512","15481","15770","289"],["尧塘","西华村","李家村3村","25","5.28 ","12480","13070","590","4344","4635","291"],["尧塘","谢桥村","塘南村","10","5.28 ","16767","17321","554","13429","13745","316"],["尧塘","谢桥村","塘北村","15","5.28 ","19938","20468","530","27017","27315","298"],["尧塘","尧塘社区","张塔(毛家村)","10","5.28 ","11743","12292","549","4699","4916","217"],["尧塘","汤庄社区","朱家村","10","5.28 ","3045","3498","453","15431","15586","155"],["尧塘","汤庄社区","大南头村","10","5.28 ","16146","16412","266","6398","6509","111"],["尧塘","汤庄社区","洪家村","15","5.28 ","13178","13598","420","5559","5797","238"],["指前镇","指前镇","王母观","25","5.28 ","7297","7942","645","8540","9140","600"],["儒林镇","儒林镇","东羌庄","15","5.28 ","6782","7303","521","5639","5941","302"],["东城街道","东城街道","塘西村","30","5.28 ","21146","21434","288","1359","1703","344"]],t=[];e.forEach(e=>{let o={zjd:e[0],xzc:e[1],zrc:e[2],ssgm:e[3],cbrq:e[4],yfdlo:e[5],yfdlg:e[6],ydl:e[7],yfslo:e[8],yfslg:e[9],clsl:e[10]};t.push(o)}),this.tableData=t},handleLive(e){this.$router.push({path:"/fluoriteSensorData",name:"监控视频",query:{account:e.account,deviceSerial:e.deviceSerial}})}}},l=(o("1269"),o("d959")),s=o.n(l);const c=s()(i,[["render",r]]);t["default"]=c},f0ca:function(e,t,o){"use strict";o("ce2d")},f15e:function(e,t,o){"use strict";o("badf")},f265:function(e,t,o){"use strict";o("2b39")},f27d:function(e,t){e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACQAAAAkBAMAAAATLoWrAAAAAXNSR0IArs4c6QAAACRQTFRFAAAAMID/MID/MIH9M4H9M4P/MoD7MYD8MYL+MoH9MoH9MoH9k5vgcwAAAAt0Uk5TABAgb29vgL+/3++1MOdqAAAAQ0lEQVQoz2NgoDGI2g0Ck5CFVoOFdiogCe3ejaEMKoSsDCq0e1oaGDghCUHBDkyh3aNCNBLqRhXZDhRSTkMBhlRNSgBoFRmoDgTjhQAAAABJRU5ErkJggg=="},f2b7:function(e,t,o){"use strict";o("fe29")},f2ed:function(e,t,o){"use strict";o.r(t);var n=o("f2bf");const a={class:"manage-container"},r={class:"manage-input"},i={class:"manage-input"},l={class:"manage-button"};function s(e,t,o,s,c,d){const u=Object(n["resolveComponent"])("el-input"),m=Object(n["resolveComponent"])("el-form-item"),h=Object(n["resolveComponent"])("vab-query-form"),p=Object(n["resolveComponent"])("el-form"),b=Object(n["resolveComponent"])("el-cascader"),g=Object(n["resolveComponent"])("el-button"),f=Object(n["resolveComponent"])("el-table-column"),v=Object(n["resolveComponent"])("el-table"),w=Object(n["resolveComponent"])("el-pagination"),k=Object(n["resolveComponent"])("project-edit"),C=Object(n["resolveComponent"])("group"),y=Object(n["resolveDirective"])("loading");return Object(n["openBlock"])(),Object(n["createElementBlock"])("div",a,[Object(n["createElementVNode"])("div",r,[Object(n["createVNode"])(p,{ref:"queryForm",model:c.queryForm,"label-width":"80px"},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(h,null,{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(m,{width:"100",prop:"name",label:e.$t("project.xmmc")},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(u,{modelValue:c.queryForm.name,"onUpdate:modelValue":t[0]||(t[0]=e=>c.queryForm.name=e),size:"small",placeholder:"请输入项目名称"},null,8,["modelValue"])]),_:1},8,["label"]),Object(n["createVNode"])(m,{width:"100",prop:"leader",label:e.$t("project.rzr")},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(u,{modelValue:c.queryForm.leader,"onUpdate:modelValue":t[1]||(t[1]=e=>c.queryForm.leader=e),size:"small",placeholder:e.$t("project.qsrfzr")},null,8,["modelValue","placeholder"])]),_:1},8,["label"]),Object(n["createVNode"])(m,{width:"100",prop:"contact",label:e.$t("project.lxfs")},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(u,{modelValue:c.queryForm.contact,"onUpdate:modelValue":t[2]||(t[2]=e=>c.queryForm.contact=e),size:"small",placeholder:e.$t("project.qsrxmcm")},null,8,["modelValue","placeholder"])]),_:1},8,["label"])]),_:1})]),_:1},8,["model"])]),Object(n["createElementVNode"])("div",i,[Object(n["createVNode"])(p,{ref:"queryForm",model:c.queryForm,"label-width":"80px"},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(h,null,{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(m,{width:"100",prop:"regionCode",label:e.$t("project.dq")},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(b,{modelValue:c.queryForm.regionCode,"onUpdate:modelValue":t[3]||(t[3]=e=>c.queryForm.regionCode=e),size:"small",placeholder:e.$t("project.dq"),options:c.city,props:{value:"areaCode",label:"areaName",children:"children"},filterable:"",onChange:d.changeCity},null,8,["modelValue","placeholder","options","onChange"])]),_:1},8,["label"])]),_:1})]),_:1},8,["model"])]),Object(n["createElementVNode"])("div",l,[Object(n["createVNode"])(g,{size:"small",onClick:t[4]||(t[4]=e=>d.resetForm())},{default:Object(n["withCtx"])(()=>[Object(n["createTextVNode"])(Object(n["toDisplayString"])(e.$t("defalult.chongz")),1)]),_:1}),Object(n["createVNode"])(g,{type:"primary",size:"small",onClick:d.search},{default:Object(n["withCtx"])(()=>[Object(n["createTextVNode"])(Object(n["toDisplayString"])(e.$t("defalult.cx")),1)]),_:1},8,["onClick"]),Object(n["createVNode"])(g,{type:"primary",size:"small",onClick:d.handleAdd},{default:Object(n["withCtx"])(()=>t[5]||(t[5]=[Object(n["createTextVNode"])(" 添加项目 ")])),_:1},8,["onClick"]),Object(n["createVNode"])(g,{type:"primary",size:"small",onClick:d.remove},{default:Object(n["withCtx"])(()=>[Object(n["createTextVNode"])(Object(n["toDisplayString"])(e.$t("defalult.plsc")),1)]),_:1},8,["onClick"]),Object(n["createVNode"])(g,{type:"primary",size:"small",onClick:d.exportData},{default:Object(n["withCtx"])(()=>[Object(n["createTextVNode"])(Object(n["toDisplayString"])(e.$t("defalult.dc")),1)]),_:1},8,["onClick"])]),Object(n["withDirectives"])((Object(n["openBlock"])(),Object(n["createBlock"])(v,{data:c.projectData,border:"",stripe:"",style:{width:"100%"},onSelectionChange:d.handleSelectionChange},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(f,{type:"selection",width:"40"}),Object(n["createVNode"])(f,{prop:"id",label:"ID",width:"60",align:"center"}),Object(n["createVNode"])(f,{prop:"name",label:e.$t("project.xmmc"),width:"240",align:"center"},null,8,["label"]),Object(n["createVNode"])(f,{prop:"longitude",label:e.$t("project.jd"),width:"120",align:"center"},null,8,["label"]),Object(n["createVNode"])(f,{prop:"latitude",label:e.$t("project.wd"),width:"120",align:"center"},null,8,["label"]),Object(n["createVNode"])(f,{prop:"provinceCode",label:e.$t("project.sbm"),width:"100",align:"center"},null,8,["label"]),Object(n["createVNode"])(f,{prop:"provinceName",label:e.$t("project.smc"),width:"150",align:"center"},null,8,["label"]),Object(n["createVNode"])(f,{prop:"cityCode",label:e.$t("project.sbma"),width:"100",align:"center"},null,8,["label"]),Object(n["createVNode"])(f,{prop:"cityName",label:e.$t("project.smcheng"),width:"150",align:"center"},null,8,["label"]),Object(n["createVNode"])(f,{prop:"areaCode",label:e.$t("project.qxbm"),width:"100",align:"center"},null,8,["label"]),Object(n["createVNode"])(f,{prop:"areaName",label:e.$t("project.qxmc"),width:"150",align:"center"},null,8,["label"]),Object(n["createVNode"])(f,{prop:"leader",label:e.$t("project.rzr"),width:"120",align:"center"},null,8,["label"]),Object(n["createVNode"])(f,{prop:"contact",label:e.$t("project.lxfs"),width:"120",align:"center"},null,8,["label"]),Object(n["createVNode"])(f,{prop:"approvalTime",label:e.$t("project.lxsj"),width:"180",align:"center"},null,8,["label"]),Object(n["createVNode"])(f,{prop:"projectGroup.name",label:e.$t("project.xmzmc"),width:"140",align:"center"},null,8,["label"]),Object(n["createVNode"])(f,{prop:"createTime",label:e.$t("grouping.cjsj"),width:"180",align:"center"},null,8,["label"]),Object(n["createVNode"])(f,{prop:"updateTime",label:e.$t("grouping.gxsj"),width:"180",align:"center"},null,8,["label"]),Object(n["createVNode"])(f,{fixed:"right",label:e.$t("defalult.cz"),width:"160",align:"center"},{default:Object(n["withCtx"])(({row:t})=>[Object(n["createVNode"])(g,{type:"text",onClick:e=>d.device(t)},{default:Object(n["withCtx"])(()=>[Object(n["createTextVNode"])(Object(n["toDisplayString"])(e.$t("project.zd")),1)]),_:2},1032,["onClick"]),Object(n["createVNode"])(g,{type:"text",onClick:e=>d.handleEdit(t)},{default:Object(n["withCtx"])(()=>[Object(n["createTextVNode"])(Object(n["toDisplayString"])(e.$t("defalult.bj")),1)]),_:2},1032,["onClick"]),Object(n["createVNode"])(g,{type:"text",onClick:e=>d.handleDelete(t)},{default:Object(n["withCtx"])(()=>[Object(n["createTextVNode"])(Object(n["toDisplayString"])(e.$t("defalult.sc")),1)]),_:2},1032,["onClick"])]),_:1},8,["label"])]),_:1},8,["data","onSelectionChange"])),[[y,c.listLoading]]),Object(n["createVNode"])(w,{background:c.background,"current-page":c.queryForm.page,layout:c.layout,"page-size":c.queryForm.size,total:c.total,style:{"text-align":"right"},onCurrentChange:d.handleCurrentChange,onSizeChange:d.handleSizeChange},null,8,["background","current-page","layout","page-size","total","onCurrentChange","onSizeChange"]),Object(n["createVNode"])(k,{ref:"edit"},null,512),Object(n["createVNode"])(C,{ref:"group"},null,512)])}o("14d9");var c=o("24d2"),d=o("c591"),u=o("3038"),m=o("aa4c"),h=o("5e1c"),p={name:"Index",components:{Group:h["default"],projectEdit:m["default"]},data(){return{projectData:[],lazy:!0,activeName:"first",layout:"total, sizes, prev, pager, next, jumper",total:0,input:"",textarea:"",list:[],background:!0,listLoading:!0,elementLoadingText:"正在加载...",ids:[],city:[],groupId:"",queryForm:{page:1,size:20,regionCode:"",name:"",leader:"",contact:"",groupId:""}}},computed:{height(){return 500}},created(){this.fetchData(),this.getCity()},methods:{showData(){this.fetchData(),this.getCity()},async getCity(){const{data:e}=await Object(d["getCity"])();this.city=this.getTreeData(e)},getTreeData(e){for(let t=0;t<e.length;t++)e[t].children.length<1?e[t].children=void 0:this.getTreeData(e[t].children);return e},changeCity(){const e=this.queryForm.regionCode,t=e[e.length-1];this.queryForm.regionCode=t},async exportData(){const e=await Object(c["exportProject"])(this.queryForm);u["default"].downloadFile(e,{fileName:"项目.xls"})},resetForm(){this.$refs.queryForm.resetFields()},async soreStatus(e,t){const{code:o,msg:n}=await Object(c["doEdit"])({status:e,id:t});0==o?this.$notify({title:n,type:"success"}):this.$notify.error({title:n}),this.fetchData()},async fetchData(){this.listLoading=!0;const{data:e}=await Object(c["getList"])(this.queryForm);this.projectData=e.items,this.total=e.total,setTimeout(()=>{this.listLoading=!1},500)},device(e){this.$router.push({path:"/device",query:{projectId:e.id}})},search(){this.fetchData()},handleAdd(){this.$refs["edit"].showEdit({groupId:this.queryForm.groupId},1)},handleEdit(e){this.$refs["edit"].showEdit(e,2)},groupShow(e){this.$refs["group"].showGroup(e)},handleQuery(){this.queryForm.page=1,this.fetchData()},handleSizeChange(e){this.queryForm.size=e,this.fetchData()},handleCurrentChange(e){this.queryForm.page=e,this.fetchData()},remove(){const e=this.ids;this.deletes(e)},deletes(e){const t=this;this.$confirm("你确定要删除当前项吗?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(()=>{const{msg:o}=Object(c["doDelete"])(e);this.$message({type:"success",message:void 0==o?"删除成功":o}),setTimeout((function(){t.fetchData()}),1e3)}).catch(()=>{this.$message({type:"info",message:"已取消删除"})})},handleSelectionChange(e){const t=[];e.forEach(e=>{t.push(e.id)}),this.ids=t},handleDelete(e){const t=this;t.deletes([e.id])}}},b=(o("80a7"),o("d959")),g=o.n(b);const f=g()(p,[["render",s],["__scopeId","data-v-c03c83ba"]]);t["default"]=f},f341:function(e,t,o){"use strict";o("0e0f")},f359:function(e,t,o){e.exports={"menu-color":"hsla(0,0%,27%,.95)","menu-color-active":"hsla(208,100%,55%,.95)","menu-background":"#fff","gallery-second-menu-background":"#fff"}},f3ae:function(e,t,o){"use strict";o("2805")},f3b9:function(e,t,o){"use strict";o("d66e")},f3c16:function(e,t,o){},f511:function(e,t,o){"use strict";o.r(t);var n=o("f2bf");const a={class:"search"},r={class:"search-head"},i={style:{height:"26px",display:"flex","align-items":"center","font-size":"14px"}},l={key:0,class:"search-icon"},s={key:1,class:"search-dot"};function c(e,t,o,c,d,u){const m=Object(n["resolveComponent"])("el-input"),h=Object(n["resolveComponent"])("el-tree"),p=Object(n["resolveComponent"])("el-popover");return Object(n["openBlock"])(),Object(n["createElementBlock"])("div",a,[Object(n["createVNode"])(p,{modelValue:d.expand,"onUpdate:modelValue":t[2]||(t[2]=e=>d.expand=e),placement:"bottom",trigger:"click",width:370,offset:5,"show-arrow":!1,onShow:t[3]||(t[3]=e=>u.onToggle(!0)),onHide:t[4]||(t[4]=e=>u.onToggle(!1))},{reference:Object(n["withCtx"])(()=>[Object(n["createElementVNode"])("div",r,[Object(n["withDirectives"])(Object(n["createElementVNode"])("div",{class:"search-all-site",onClick:t[0]||(t[0]=(...e)=>u.onAllSiteClick&&u.onAllSiteClick(...e))},[Object(n["createElementVNode"])("span",null,Object(n["toDisplayString"])(d.filterText),1)],512),[[n["vShow"],!d.expand]]),Object(n["withDirectives"])(Object(n["createVNode"])(m,{ref:"searchInputRef",modelValue:d.filterText,"onUpdate:modelValue":t[1]||(t[1]=e=>d.filterText=e),placeholder:e.$t("dataEnquiry.qsrzdmc"),onInput:u.onSearchInput,onClick:Object(n["withModifiers"])(e=>!1,["stop"])},null,8,["modelValue","placeholder","onInput"]),[[n["vShow"],d.expand]])])]),default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(h,{ref:"treeRef",class:"search-tree",data:o.siteList,props:{value:"id",label:"label",children:"children",class:u.getCustomProps},accordion:"","node-key":"id","highlight-current":"","filter-node-method":u.filterNode,onNodeClick:u.onNodeClick},{default:Object(n["withCtx"])(({node:e,data:t})=>[Object(n["createElementVNode"])("div",i,["folder"===t.iconType?(Object(n["openBlock"])(),Object(n["createElementBlock"])("span",l)):(Object(n["openBlock"])(),Object(n["createElementBlock"])("span",s)),Object(n["createElementVNode"])("div",null,Object(n["toDisplayString"])(e.label),1)])]),_:1},8,["data","props","filter-node-method","onNodeClick"])]),_:1},8,["modelValue"])])}var d=o("2ef0"),u={name:"SiteSearch",props:{siteList:{type:Array,require:!0,default:()=>[]}},data(){return{filterText:"all sites",expand:!1}},mounted(){this.onSearchInput=Object(d["throttle"])(this.onSearchInput,400)},methods:{onAllSiteClick(){this.onToggle(!this.expand),this.$refs.searchInputRef.focus()},onToggle(e){this.expand=e,this.expand||!this.filterText&&(this.filterText="all sites")},onNodeClick(e){"device"===e.type&&(this.filterText=e.label,this.onToggle(!1),setTimeout(()=>{this.$emit("node-click",e)}))},onSearchInput(e){this.$refs.treeRef.filter(e)},filterNode(e,t){return!e||t.label.includes(e)},getCustomProps(e,t){return e.type?"search-item-"+e.type:null}}},m=(o("f82a"),o("d959")),h=o.n(m);const p=h()(u,[["render",c],["__scopeId","data-v-07607420"]]);t["default"]=p},f547:function(e,t,o){"use strict";o.r(t),o.d(t,"getList",(function(){return a})),o.d(t,"doEdit",(function(){return r})),o.d(t,"doDelete",(function(){return i})),o.d(t,"doAdd",(function(){return l})),o.d(t,"alarmProjects",(function(){return s})),o.d(t,"allProject",(function(){return c})),o.d(t,"assignToProjects",(function(){return d}));var n=o("b775");function a(e){return Object(n["default"])({url:"/alarmUser/list?page="+e.page+"&size="+e.size,method:"get",data:e})}function r(e){return Object(n["default"])({url:"/alarmUser/update",method:"post",data:e})}function i(e){return Object(n["default"])({url:"/alarmUser/remove?userId="+e.userId,method:"post",data:e})}function l(e){return Object(n["default"])({url:"/alarmUser/insert",method:"post",data:e})}function s(e){return Object(n["default"])({url:"/alarmUser/alarmProjectIds?userId="+e.userId,method:"get",data:e})}function c(e){return Object(n["default"])({url:"/alarmUser/allProjects",method:"get",data:e})}function d(e){return Object(n["default"])({url:"/alarmUser/addProjects",method:"post",data:e})}},f559:function(e,t,o){"use strict";o.r(t);var n=o("f2bf");const a={class:"manage-container"},r={class:"el-list"};function i(e,t,o,i,l,s){const c=Object(n["resolveComponent"])("el-button"),d=Object(n["resolveComponent"])("el-checkbox"),u=Object(n["resolveComponent"])("el-checkbox-group"),m=Object(n["resolveComponent"])("el-image"),h=Object(n["resolveComponent"])("el-main"),p=Object(n["resolveComponent"])("el-container"),b=Object(n["resolveComponent"])("vab-query-form-left-panel"),g=Object(n["resolveComponent"])("el-pagination"),f=Object(n["resolveComponent"])("vab-query-form-right-panel"),v=Object(n["resolveComponent"])("vab-query-form"),w=Object(n["resolveComponent"])("material-add");return Object(n["openBlock"])(),Object(n["createElementBlock"])("div",a,[Object(n["createVNode"])(c,{type:"primary",size:"small",onClick:s.handleAdd},{default:Object(n["withCtx"])(()=>t[1]||(t[1]=[Object(n["createTextVNode"])(" 添加图片 ")])),_:1},8,["onClick"]),Object(n["createVNode"])(p,{direction:"horizontal"},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(h,{direction:"horizontal"},{default:Object(n["withCtx"])(()=>[Object(n["createElementVNode"])("div",r,[(Object(n["openBlock"])(!0),Object(n["createElementBlock"])(n["Fragment"],null,Object(n["renderList"])(l.fileData,e=>(Object(n["openBlock"])(),Object(n["createElementBlock"])("div",{key:e,style:{width:"10%",float:"left","margin-top":"20px","margin-left":"10px"},class:"el-item"},[Object(n["createVNode"])(u,{modelValue:l.ids,"onUpdate:modelValue":t[0]||(t[0]=e=>l.ids=e),onChange:s.handleCheckedCitiesChange},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(d,{value:e.id,label:e.id},{default:Object(n["withCtx"])(()=>[Object(n["createTextVNode"])(Object(n["toDisplayString"])(e.name),1)]),_:2},1032,["value","label"])]),_:2},1032,["modelValue","onChange"]),Object(n["createVNode"])(m,{style:{width:"100px",height:"100px"},src:l.fileUrl+e.icon,fit:"cover",title:"点击复制路径",onClick:t=>s.copyPath(""+e.icon)},null,8,["src","onClick"])]))),128))])]),_:1})]),_:1}),l.fileData.length>0?(Object(n["openBlock"])(),Object(n["createBlock"])(v,{key:0},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(b,null,{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(c,{type:"primary",onClick:s.deletes},{default:Object(n["withCtx"])(()=>[Object(n["createTextVNode"])(Object(n["toDisplayString"])(e.$t("defalult.plsc")),1)]),_:1},8,["onClick"])]),_:1}),Object(n["createVNode"])(f,null,{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(g,{background:l.background,"current-page":l.queryForm.page,layout:l.layout,"page-size":l.queryForm.size,total:l.total,style:{"text-align":"right"},onCurrentChange:s.handleCurrentChange,onSizeChange:s.handleSizeChange},null,8,["background","current-page","layout","page-size","total","onCurrentChange","onSizeChange"])]),_:1})]),_:1})):Object(n["createCommentVNode"])("",!0),Object(n["createVNode"])(w,{ref:"edit"},null,512)])}var l=o("49de"),s=o("29d5"),c=o("f121"),d={components:{materialAdd:s["default"]},data(){return{layout:"total, sizes, prev, pager, next, jumper",checked:!1,checkedform:!1,total:0,background:!0,fileUrl:c["baseURL"]+"/static/img/",fileData:[],ids:[],checkAll:!1,isIndeterminate:!0,queryForm:{page:1,size:20,name:""}}},created(){this.fetchData()},methods:{async fetchData(){const{data:e}=await Object(l["getList"])(this.queryForm);this.fileData=e.items,this.total=e.total},copyPath(e){const t=e,o=document.createElement("input");o.value=t,document.body.appendChild(o),o.select(),document.execCommand("Copy"),o.remove(),this.$message.success("复制成功")},handleCheckAllChange(e){this.ids=e?this.fileData:[],this.isIndeterminate=!1},handleCheckedCitiesChange(e){const t=e.length;console.log(e),this.checkAll=t===this.fileData.length,this.isIndeterminate=t>0&&t<this.fileData.length},deletes(){const e=this.ids;if(0==e.length)return this.$message({type:"info",message:"没有选中任何项"}),!1;this.deleteData(e)},deleteData(e){const t=this;this.$confirm("你确定要删除当前项吗?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(()=>{const{msg:o}=Object(l["doDelete"])(e);this.$message({type:"success",message:void 0==o?"删除成功":o}),setTimeout((function(){t.fetchData()}),1e3)}).catch(()=>{this.$message({type:"info",message:"已取消删除"})})},handleAdd(){this.$refs["edit"].materialEdit()},handleEdit(e){this.$refs["edit"].materialEdit(e)},handleQuery(){this.queryForm.page=1,this.fetchData()},handleSizeChange(e){this.queryForm.size=e,this.fetchData()},handleCurrentChange(e){this.queryForm.page=e,this.fetchData()}}},u=(o("67de"),o("d959")),m=o.n(u);const h=m()(d,[["render",i]]);t["default"]=h},f55e:function(e,t,o){"use strict";o.r(t);var n=o("f2bf");function a(e,t,o,a,r,i){const l=Object(n["resolveComponent"])("editor");return Object(n["openBlock"])(),Object(n["createElementBlock"])("div",null,[Object(n["createVNode"])(l,{id:"tinymce",modelValue:r.value,"onUpdate:modelValue":t[0]||(t[0]=e=>r.value=e),init:r.init},null,8,["modelValue","init"])])}var r=o("e562"),i=o.n(r),l=o("ca72"),s=(o("0d68"),o("4ea8"),o("4237"),o("64d8"),o("0a9d"),o("bc3a")),c=o.n(s),d={components:{Editor:l["a"]},props:{curValue:{type:String,default:""}},data(){return{init:{selector:"#textarea",height:500,branding:!1,menubar:!0,elementpath:!1,paste_data_images:!0,plugins:["image","link","code","preview"],toolbar:["formatselect |bold italic |alignleft aligncenter alignright alignjustify |bullist numlist outdent indent |lists image media table |removeformat link |code preview"],images_upload_handler:(e,t,o)=>{const n=new FormData;n.set("file",e.blob()),c.a.post("http://localhost:8088/api/upload/img/",n).then(e=>{t("http://localhost:8088/images/"+e.data)}).catch(e=>{o("error")})}},value:this.curValue}},watch:{curValue(e){this.value=e},value(e){this.$emit("input",e)}},mounted(){console.log(12131231,i.a),i.a.init({})}},u=o("d959"),m=o.n(u);const h=m()(d,[["render",a]]);t["default"]=h},f5be:function(e,t,o){"use strict";o.r(t);var n=o("f2bf");const a={class:"manage-container"},r={class:"manage-wrap"},i={class:"manage-input"},l={class:"manage-button"};function s(e,t,o,s,c,d){const u=Object(n["resolveComponent"])("el-input"),m=Object(n["resolveComponent"])("el-form-item"),h=Object(n["resolveComponent"])("vab-query-form"),p=Object(n["resolveComponent"])("el-form"),b=Object(n["resolveComponent"])("el-button"),g=Object(n["resolveComponent"])("el-table-column"),f=Object(n["resolveComponent"])("el-table"),v=Object(n["resolveComponent"])("el-pagination"),w=Object(n["resolveComponent"])("group-edit"),k=Object(n["resolveDirective"])("loading");return Object(n["openBlock"])(),Object(n["createElementBlock"])("div",a,[Object(n["createElementVNode"])("div",r,[Object(n["createElementVNode"])("div",i,[Object(n["createVNode"])(p,{ref:"queryForm",model:c.queryForm,"label-width":"80px"},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(h,null,{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(m,{width:"100",prop:"name",label:e.$t("grouping.zmc")},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(u,{modelValue:c.queryForm.name,"onUpdate:modelValue":t[0]||(t[0]=e=>c.queryForm.name=e),size:"small",placeholder:e.$t("grouping.qsrzmc")},null,8,["modelValue","placeholder"])]),_:1},8,["label"])]),_:1})]),_:1},8,["model"])]),Object(n["createElementVNode"])("div",l,[Object(n["createVNode"])(b,{size:"small",onClick:t[1]||(t[1]=e=>d.resetForm())},{default:Object(n["withCtx"])(()=>[Object(n["createTextVNode"])(Object(n["toDisplayString"])(e.$t("defalult.chongz")),1)]),_:1}),Object(n["createVNode"])(b,{type:"primary",size:"small",onClick:d.search},{default:Object(n["withCtx"])(()=>[Object(n["createTextVNode"])(Object(n["toDisplayString"])(e.$t("defalult.cx")),1)]),_:1},8,["onClick"]),Object(n["createVNode"])(b,{type:"primary",size:"small",onClick:d.deletes},{default:Object(n["withCtx"])(()=>[Object(n["createTextVNode"])(Object(n["toDisplayString"])(e.$t("defalult.plsc")),1)]),_:1},8,["onClick"]),Object(n["createVNode"])(b,{type:"primary",size:"small",onClick:d.handleAdd},{default:Object(n["withCtx"])(()=>[Object(n["createTextVNode"])(Object(n["toDisplayString"])(e.$t("grouping.tjxmz")),1)]),_:1},8,["onClick"])])]),Object(n["withDirectives"])((Object(n["openBlock"])(),Object(n["createBlock"])(f,{data:c.groupData,border:"",stripe:"",style:{width:"100%"},onSelectionChange:d.handleSelectionChange},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(g,{type:"selection",width:"55"}),Object(n["createVNode"])(g,{prop:"id",label:"ID",width:"60",align:"center"}),Object(n["createVNode"])(g,{prop:"name",label:e.$t("grouping.zmc"),width:"300",align:"center"},null,8,["label"]),Object(n["createVNode"])(g,{prop:"createTime",label:e.$t("grouping.cjsj"),width:"250",align:"center"},null,8,["label"]),Object(n["createVNode"])(g,{prop:"updateTime",label:e.$t("grouping.gxsj"),width:"250",align:"center"},null,8,["label"]),Object(n["createVNode"])(g,{fixed:"right",label:e.$t("defalult.cz"),align:"center"},{default:Object(n["withCtx"])(({row:t})=>[Object(n["createVNode"])(b,{type:"text",onClick:e=>d.handleEdit(t)},{default:Object(n["withCtx"])(()=>[Object(n["createTextVNode"])(Object(n["toDisplayString"])(e.$t("defalult.bj")),1)]),_:2},1032,["onClick"]),Object(n["createVNode"])(b,{type:"text",onClick:e=>d.addProject(t)},{default:Object(n["withCtx"])(()=>[Object(n["createTextVNode"])(Object(n["toDisplayString"])(e.$t("dataEnquiry.xm")),1)]),_:2},1032,["onClick"]),Object(n["createVNode"])(b,{type:"text",onClick:e=>d.handleDelete(t)},{default:Object(n["withCtx"])(()=>[Object(n["createTextVNode"])(Object(n["toDisplayString"])(e.$t("defalult.sc")),1)]),_:2},1032,["onClick"])]),_:1},8,["label"])]),_:1},8,["data","onSelectionChange"])),[[k,c.listLoading]]),Object(n["createVNode"])(v,{background:c.background,"current-page":c.queryForm.page,layout:c.layout,"page-size":c.queryForm.size,total:c.total,style:{"text-align":"right"},onCurrentChange:d.handleCurrentChange,onSizeChange:d.handleSizeChange},null,8,["background","current-page","layout","page-size","total","onCurrentChange","onSizeChange"]),Object(n["createVNode"])(w,{ref:"edit"},null,512)])}o("14d9");var c=o("23ba"),d=o("cfcd"),u={name:"Index",components:{groupEdit:d["default"]},data(){return{groupData:[],lazy:!0,layout:"total, sizes, prev, pager, next, jumper",total:0,background:!0,listLoading:!0,elementLoadingText:"正在加载...",ids:[],queryForm:{page:1,size:20,name:""}}},computed:{height(){return 500}},created(){this.fetchData()},methods:{async fetchData(){this.listLoading=!0;const{data:e}=await Object(c["getList"])(this.queryForm);this.groupData=e.items,this.total=e.total,setTimeout(()=>{this.listLoading=!1},500)},search(){this.fetchData()},addProject(e){this.$router.push({path:"project",query:{groupId:e.id}})},handleAdd(){this.$refs["edit"].showEdit()},handleEdit(e){this.$refs["edit"].showEdit(e)},resetForm(){this.$refs.queryForm.resetFields()},handleQuery(){this.queryForm.page=1,this.fetchData()},handleSizeChange(e){this.queryForm.size=e,this.fetchData()},handleCurrentChange(e){this.queryForm.page=e,this.fetchData()},deletes(){const e=this.ids,t=this;if(0==e.length)return this.$message({type:"info",message:"没有选中任何项"}),!1;this.$confirm("你确定要删除吗?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(()=>{const{msg:o}=Object(c["remove"])(e);this.$message({type:"success",message:void 0==o?"删除成功":o}),setTimeout((function(){t.fetchData()}),1e3)}).catch(()=>{this.$message({type:"info",message:"已取消删除"})})},handleSelectionChange(e){const t=[];e.forEach(e=>{t.push(e.id)}),this.ids=t},handleDelete(e){var t=this;e.id&&this.$confirm("你确定要删除当前项吗?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(()=>{const{msg:o}=Object(c["doDelete"])([e.id]);this.$message({type:"success",message:void 0==o?"删除成功":o}),setTimeout((function(){t.fetchData()}),1e3)}).catch(()=>{this.$message({type:"info",message:"已取消删除"})})}}},m=(o("fc22"),o("017f"),o("d959")),h=o.n(m);const p=h()(u,[["render",s],["__scopeId","data-v-b62e34c4"]]);t["default"]=p},f5cc:function(e,t,o){"use strict";o("cade")},f606:function(e,t,o){"use strict";o.r(t);var n=o("f2bf");const a={class:"manage-container"},r={class:"manage-button"};function i(e,t,o,i,l,s){const c=Object(n["resolveComponent"])("el-button"),d=Object(n["resolveComponent"])("el-table-column"),u=Object(n["resolveComponent"])("el-table"),m=Object(n["resolveComponent"])("dict-add"),h=Object(n["resolveComponent"])("el-pagination");return Object(n["openBlock"])(),Object(n["createElementBlock"])("div",a,[Object(n["createElementVNode"])("div",r,[Object(n["createVNode"])(c,{type:"primary",size:"small",onClick:s.handleAdd},{default:Object(n["withCtx"])(()=>t[0]||(t[0]=[Object(n["createTextVNode"])(" 添加字典 ")])),_:1},8,["onClick"])]),Object(n["createVNode"])(u,{data:l.dictData,border:"",stripe:"",style:{width:"100%"}},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(d,{prop:"id",label:"ID",width:"60",align:"center"}),Object(n["createVNode"])(d,{prop:"dictName",label:"字典名称",width:"400",align:"center"}),Object(n["createVNode"])(d,{prop:"dictType",label:"字典类型",width:"400",align:"center"}),Object(n["createVNode"])(d,{fixed:"right",label:e.$t("defalult.cz"),align:"center"},{default:Object(n["withCtx"])(({row:t})=>[Object(n["createVNode"])(c,{type:"text",onClick:e=>s.dictDatas(t)},{default:Object(n["withCtx"])(()=>[Object(n["createTextVNode"])(Object(n["toDisplayString"])(e.$t("device.sj")),1)]),_:2},1032,["onClick"]),Object(n["createVNode"])(c,{type:"text",onClick:e=>s.handleEdit(t)},{default:Object(n["withCtx"])(()=>[Object(n["createTextVNode"])(Object(n["toDisplayString"])(e.$t("defalult.bj")),1)]),_:2},1032,["onClick"]),Object(n["createVNode"])(c,{type:"text",onClick:e=>s.handleDelete(t)},{default:Object(n["withCtx"])(()=>[Object(n["createTextVNode"])(Object(n["toDisplayString"])(e.$t("defalult.sc")),1)]),_:2},1032,["onClick"])]),_:1},8,["label"])]),_:1},8,["data"]),Object(n["createVNode"])(m,{ref:"edit"},null,512),Object(n["createVNode"])(h,{background:l.background,"current-page":l.queryForm.page,layout:l.layout,"page-size":l.queryForm.size,total:l.total,style:{"text-align":"right"},onCurrentChange:s.handleCurrentChange,onSizeChange:s.handleSizeChange},null,8,["background","current-page","layout","page-size","total","onCurrentChange","onSizeChange"])])}o("14d9");var l=o("0ddc"),s=o("b819"),c={name:"Index",components:{dictAdd:s["default"]},data(){return{dictData:[],lazy:!0,activeName:"first",layout:"total, sizes, prev, pager, next, jumper",background:!0,total:0,queryForm:{page:1,size:20,name:""}}},computed:{height(){return 500}},created(){this.fetchData()},methods:{async fetchData(){this.listLoading=!0;const{data:e}=await Object(l["getList"])(this.queryForm);this.dictData=e.items,this.total=e.total,setTimeout(()=>{this.listLoading=!1},500)},handleAdd(){this.$refs["edit"].dictEdit()},handleEdit(e){this.$refs["edit"].dictEdit(e)},dictDatas(e){this.$router.push({path:"dictdata",query:{dictId:e.id,page:this.queryForm.page,size:this.queryForm.size}})},assignRole(e){this.$refs["index"].manageRole(e)},handleQuery(){this.queryForm.page=1,this.fetchData()},handleSizeChange(e){this.queryForm.size=e,this.fetchData()},handleCurrentChange(e){this.queryForm.page=e,this.fetchData()},handleDelete(e){const t=this;e.id&&this.$confirm("你确定要删除当前项吗?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(()=>{const{msg:o}=Object(l["doDelete"])({dictTypeId:e.id});this.$message({type:"success",message:void 0==o?"删除成功":o}),setTimeout((function(){t.fetchData()}),1e3)}).catch(()=>{this.$message({type:"info",message:"已取消删除"})})}}},d=(o("8e11"),o("d959")),u=o.n(d);const m=u()(c,[["render",i],["__scopeId","data-v-6a982942"]]);t["default"]=m},f616:function(e,t,o){e.exports={"menu-color":"hsla(0,0%,27%,.95)","menu-color-active":"hsla(208,100%,55%,.95)","menu-background":"#fff","gallery-second-menu-background":"#fff"}},f62d:function(e,t,o){"use strict";o("8bae")},f62e:function(e,t,o){"use strict";o.r(t);var n=o("f2bf");const a={class:"manage-container"};function r(e,t,o,r,i,l){const s=Object(n["resolveComponent"])("stay-order"),c=Object(n["resolveComponent"])("el-tab-pane"),d=Object(n["resolveComponent"])("junction-order"),u=Object(n["resolveComponent"])("overdue-order"),m=Object(n["resolveComponent"])("my-order"),h=Object(n["resolveComponent"])("el-tabs");return Object(n["openBlock"])(),Object(n["createElementBlock"])("div",a,[Object(n["createVNode"])(h,{modelValue:i.activeName,"onUpdate:modelValue":t[0]||(t[0]=e=>i.activeName=e),onTabClick:l.handleClick},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(c,{label:"待办工单",name:"first"},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(s,{ref:"stay"},null,512)]),_:1}),Object(n["createVNode"])(c,{label:"办结工单",name:"second"},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(d,{ref:"junction"},null,512)]),_:1}),Object(n["createVNode"])(c,{label:"逾期工单",name:"third"},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(u,{ref:"overdue"},null,512)]),_:1}),Object(n["createVNode"])(c,{label:"我的工单",name:"fourth"},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(m,{ref:"my"},null,512)]),_:1})]),_:1},8,["modelValue","onTabClick"])])}var i=o("2c87"),l=o("1b19"),s=o("b496"),c=o("a631"),d={name:"Index",components:{stayOrder:i["default"],junctionOrder:l["default"],overdueOrder:s["default"],myOrder:c["default"]},data(){return{activeName:"first"}},computed:{height(){return 500}},mounted(){},methods:{handleClick(e,t){console.log(e,t),"second"==e.paneName?this.$refs["menu"].showEdit():"first"==e.paneName&&this.$refs["config"].showEdit()}}},u=(o("135d"),o("d959")),m=o.n(u);const h=m()(d,[["render",r],["__scopeId","data-v-7e2070a8"]]);t["default"]=h},f7e4:function(e,t,o){},f82a:function(e,t,o){"use strict";o("4b70")},f84e:function(e,t,o){"use strict";o("a600")},f9c2:function(e,t,o){"use strict";o("24d9")},fab9:function(e,t,o){"use strict";o.r(t);var n=o("f2bf");const a=["src"];function r(e,t,o,r,i,l){const s=Object(n["resolveComponent"])("el-button"),c=Object(n["resolveDirective"])("loading");return Object(n["withDirectives"])((Object(n["openBlock"])(),Object(n["createElementBlock"])("div",null,[Object(n["createVNode"])(s,{type:"primary",size:"mini",style:{"margin-bottom":"10px"},onClick:l.dianji},{default:Object(n["withCtx"])(()=>[Object(n["createTextVNode"])(Object(n["toDisplayString"])(e.$t("defalult.qp")),1)]),_:1},8,["onClick"]),Object(n["createElementVNode"])("iframe",{id:"iframeId",ref:"iframe",src:i.src,style:{width:"100%",height:"495px"}},null,8,a)])),[[c,i.loading]])}var i={props:{deviceCode:{type:String,default:""}},data(){return{technologyData:[],loading:!0,fullscreenLoading:!0,queryForm:{deviceCode:""},src:""}},watch:{deviceCode:function(e,t){this.queryForm.deviceCode=e,this.src="https://dp.lidinghb.com/chudy_visual/view/"+e[1]+"?deviceCode="+e[0],console.log(111,e),console.log(123,this.src)}},created(){},mounted(){const{iframe:e}=this.$refs,t=this;e.attachEvent?e.attachEvent("onload",()=>{t.stateChange()}):e.onload=function(){t.stateChange()}},methods:{showData(e){console.log(e)},stateChange(){this.loading=!1},dianji(){const e=document.getElementById("iframeId");this.fullscreen?document.exitFullscreen?document.exitFullscreen():document.webkitCancelFullScreen?document.webkitCancelFullScreen():document.mozCancelFullScreen?document.mozCancelFullScreen():document.msExitFullscreen&&document.msExitFullscreen():e.requestFullscreen?e.requestFullscreen():e.webkitRequestFullScreen?e.webkitRequestFullScreen():e.mozRequestFullScreen?e.mozRequestFullScreen():e.msRequestFullscreen&&e.msRequestFullscreen()}}},l=o("d959"),s=o.n(l);const c=s()(i,[["render",r]]);t["default"]=c},fb4d:function(e,t,o){"use strict";o.r(t);var n=o("f2bf");const a={class:"manage-container"};function r(e,t,o,r,i,l){const s=Object(n["resolveComponent"])("el-option"),c=Object(n["resolveComponent"])("el-select"),d=Object(n["resolveComponent"])("el-input"),u=Object(n["resolveComponent"])("el-button"),m=Object(n["resolveComponent"])("vab-query-form-left-panel"),h=Object(n["resolveComponent"])("router-link"),p=Object(n["resolveComponent"])("vab-query-form-right-panel"),b=Object(n["resolveComponent"])("vab-query-form"),g=Object(n["resolveComponent"])("el-table-column"),f=Object(n["resolveComponent"])("el-table"),v=Object(n["resolveComponent"])("el-pagination"),w=Object(n["resolveDirective"])("loading");return Object(n["openBlock"])(),Object(n["createElementBlock"])("div",a,[Object(n["createVNode"])(b,null,{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(m,null,{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(c,{modelValue:i.value1,"onUpdate:modelValue":t[0]||(t[0]=e=>i.value1=e),placeholder:"请选择项目"},{default:Object(n["withCtx"])(()=>[(Object(n["openBlock"])(!0),Object(n["createElementBlock"])(n["Fragment"],null,Object(n["renderList"])(i.options,e=>(Object(n["openBlock"])(),Object(n["createBlock"])(s,{key:e.value,label:e.label,value:e.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue"]),Object(n["createVNode"])(c,{modelValue:i.value2,"onUpdate:modelValue":t[1]||(t[1]=e=>i.value2=e),placeholder:"请选择设备"},{default:Object(n["withCtx"])(()=>[(Object(n["openBlock"])(!0),Object(n["createElementBlock"])(n["Fragment"],null,Object(n["renderList"])(i.options,e=>(Object(n["openBlock"])(),Object(n["createBlock"])(s,{key:e.value,label:e.label,value:e.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue"]),Object(n["createVNode"])(d,{modelValue:i.input,"onUpdate:modelValue":t[2]||(t[2]=e=>i.input=e),placeholder:"请输入内容"},null,8,["modelValue"]),Object(n["createVNode"])(u,{type:"primary"},{default:Object(n["withCtx"])(()=>[Object(n["createTextVNode"])(Object(n["toDisplayString"])(e.$t("defalult.cx")),1)]),_:1})]),_:1}),Object(n["createVNode"])(p,null,{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(h,{to:"/iot/components/index"},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(u,{type:"primary"},{default:Object(n["withCtx"])(()=>[Object(n["createTextVNode"])(Object(n["toDisplayString"])(e.$t("trigger.tjcfq")),1)]),_:1})]),_:1})]),_:1})]),_:1}),Object(n["withDirectives"])((Object(n["openBlock"])(),Object(n["createBlock"])(f,{data:i.tableData,stripe:"",border:"",style:{width:"100%"}},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(g,{prop:"id",label:e.$t("trigger.xh"),width:"80",align:"center"},null,8,["label"]),Object(n["createVNode"])(g,{prop:"name",label:e.$t("trigger.mc"),width:"180",align:"center"},null,8,["label"]),Object(n["createVNode"])(g,{prop:"relation",label:"关联传感器",width:"180",align:"center"}),Object(n["createVNode"])(g,{prop:"condition",label:e.$t("trigger.cftjlx"),width:"180",align:"center"},null,8,["label"]),Object(n["createVNode"])(g,{prop:"parameter",label:e.$t("trigger.cs"),width:"180",align:"center"},null,8,["label"]),Object(n["createVNode"])(g,{prop:"implement",label:"执行类型",width:"180",align:"center"}),Object(n["createVNode"])(g,{prop:"loop",label:"循环",width:"180",align:"center"}),Object(n["createVNode"])(g,{prop:"state",label:e.$t("dataEnquiry.zt"),width:"180",align:"center"},null,8,["label"]),Object(n["createVNode"])(g,{fixed:"right",label:e.$t("defalult.cz"),width:"160",align:"center"},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(u,{type:"text",size:"small"},{default:Object(n["withCtx"])(()=>[Object(n["createTextVNode"])(Object(n["toDisplayString"])(e.$t("defalult.bj")),1)]),_:1}),Object(n["createVNode"])(u,{type:"text",size:"small"},{default:Object(n["withCtx"])(()=>[Object(n["createTextVNode"])(Object(n["toDisplayString"])(e.$t("defalult.sc")),1)]),_:1})]),_:1},8,["label"])]),_:1},8,["data"])),[[w,e.listLoading]]),Object(n["createVNode"])(v,{background:e.background,"current-page":e.queryForm.page,layout:e.layout,"page-size":e.queryForm.size,total:e.total,style:{"text-align":"right"},onCurrentChange:e.handleCurrentChange,onSizeChange:e.handleSizeChange},null,8,["background","current-page","layout","page-size","total","onCurrentChange","onSizeChange"])])}var i={name:"Police",data(){return{input:"",value1:"",value2:"",currentPage1:5,currentPage2:5,currentPage3:5,currentPage4:4,options:[{value:"选项1",label:"所有设备"},{value:"选项2",label:"已连接设备"},{value:"选项3",label:"未连接设备"},{value:"选项4",label:"已禁用设备"},{value:"选项5",label:"已删除设备"}],tableData:[{id:"1",name:"太湖过滤装置",relation:"关联设置",condition:"数值高于{X}",parameter:"100",implement:"控制设备,微信通知",loop:"100",state:"正常"},{id:"2",name:"太湖过滤装置",relation:"关联设置",condition:"数值高于{X}",parameter:"100",implement:"控制设备,微信通知",loop:"100",state:"正常"},{id:"3",name:"太湖过滤装置",relation:"关联设置",condition:"数值高于{X}",parameter:"100",implement:"控制设备,微信通知",loop:"100",state:"正常"}]}}},l=(o("1a51"),o("2fc7"),o("d959")),s=o.n(l);const c=s()(i,[["render",r],["__scopeId","data-v-64c388da"]]);t["default"]=c},fbb2:function(e,t,o){"use strict";o.r(t),o.d(t,"getList",(function(){return a})),o.d(t,"getDeviceList",(function(){return r})),o.d(t,"getProjects",(function(){return i})),o.d(t,"bindProject",(function(){return l}));var n=o("b775");function a(e){const t="?page="+e.page+"&size="+e.size+"&projectId="+e.projectId;return Object(n["default"])({url:"/vehicle/list"+t,method:"get",data:e})}function r(e){return Object(n["default"])({url:"/tq/api/getDeviceList",method:"get",data:e})}function i(e){return Object(n["default"])({url:"/tq/api/projects",method:"get",data:e})}function l(e){return Object(n["default"])({url:"/tq/api/bindProject?imei="+e.imei+"&num="+e.num+"&projectIds="+e.projectIds,method:"post",data:e})}},fc22:function(e,t,o){"use strict";o("4986")},fc83:function(e,t,o){"use strict";o("b6bc")},fcd7:function(e,t,o){"use strict";o.r(t),o.d(t,"getList",(function(){return r})),o.d(t,"doDelete",(function(){return i})),o.d(t,"doAdd",(function(){return l})),o.d(t,"doEdit",(function(){return s})),o.d(t,"intentionExport",(function(){return c}));var n=o("b775"),a=o("f121");function r(e){return Object(n["default"])({url:"/intentionCustomer/select?page="+e.page+"&size="+e.size,method:"get",data:e})}function i(e){return Object(n["default"])({url:"/intentionCustomer/remove?customerId="+e.customerId,method:"post",data:e})}function l(e){return Object(n["default"])({url:"/intentionCustomer/insert",method:"post",data:e})}function s(e){return Object(n["default"])({url:"/intentionCustomer/update",method:"post",data:e})}function c(e){return a["baseURL"]+"/intentionCustomer/export"}},fdf1:function(e,t,o){},fdf2:function(e,t,o){"use strict";o.r(t);var n=o("f2bf");const a={class:"manage-input"},r={class:"dialog-footer"};function i(e,t,o,i,l,s){const c=Object(n["resolveComponent"])("el-option"),d=Object(n["resolveComponent"])("el-select"),u=Object(n["resolveComponent"])("el-form-item"),m=Object(n["resolveComponent"])("ckeditor"),h=Object(n["resolveComponent"])("el-button"),p=Object(n["resolveComponent"])("el-form"),b=Object(n["resolveComponent"])("select-data");return Object(n["openBlock"])(),Object(n["createElementBlock"])("div",a,[Object(n["createVNode"])(p,{ref:"form",model:l.form,"label-width":"80px","label-position":"left"},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(u,{label:"消息类型"},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(d,{modelValue:l.form.msgType,"onUpdate:modelValue":t[0]||(t[0]=e=>l.form.msgType=e),size:"small",filterable:"",placeholder:"消息类型",onChange:s.changeMsgType},{default:Object(n["withCtx"])(()=>[(Object(n["openBlock"])(!0),Object(n["createElementBlock"])(n["Fragment"],null,Object(n["renderList"])(l.msgTypeData,e=>(Object(n["openBlock"])(),Object(n["createBlock"])(c,{key:e.dataCode,label:e.dataValue,value:e.dataCode},null,8,["label","value"]))),128))]),_:1},8,["modelValue","onChange"])]),_:1}),l.isMaterial?(Object(n["openBlock"])(),Object(n["createBlock"])(u,{key:0,label:"素材类型",prop:"materialType"},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(d,{modelValue:l.form.materialType,"onUpdate:modelValue":t[1]||(t[1]=e=>l.form.materialType=e),size:"small",filterable:"",placeholder:"素材类型"},{default:Object(n["withCtx"])(()=>[(Object(n["openBlock"])(!0),Object(n["createElementBlock"])(n["Fragment"],null,Object(n["renderList"])(l.typeData,e=>(Object(n["openBlock"])(),Object(n["createBlock"])(c,{key:e.dataCode,label:e.dataValue,value:e.dataCode},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1})):Object(n["createCommentVNode"])("",!0),l.isText?(Object(n["openBlock"])(),Object(n["createBlock"])(u,{key:1,label:"文本内容",prop:"textContent"},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(m,{modelValue:l.form.textContent,"onUpdate:modelValue":t[2]||(t[2]=e=>l.form.textContent=e),size:"small",editor:l.editor,config:l.editorConfig},null,8,["modelValue","editor","config"])]),_:1})):Object(n["createCommentVNode"])("",!0),l.isMaterial?(Object(n["openBlock"])(),Object(n["createBlock"])(u,{key:2,label:"选择素材",prop:"mediaId"},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(h,{type:"primary",size:"small",onClick:t[3]||(t[3]=e=>s.showData())},{default:Object(n["withCtx"])(()=>t[4]||(t[4]=[Object(n["createTextVNode"])(" 选择素材 ")])),_:1})]),_:1})):Object(n["createCommentVNode"])("",!0)]),_:1},8,["model"]),Object(n["createElementVNode"])("div",r,[Object(n["createVNode"])(h,{type:"primary",size:"small",onClick:s.save},{default:Object(n["withCtx"])(()=>t[5]||(t[5]=[Object(n["createTextVNode"])("确 定")])),_:1},8,["onClick"])]),Object(n["createVNode"])(b,{ref:"select",onGetMaterialId:s.getMaterialId},null,8,["onGetMaterialId"])])}var l=o("455b"),s=o("4cfb"),c=o("c471"),d=o.n(c),u=(o("cd6d"),o("5847")),m={components:{selectData:l["default"]},data(){return{form:{id:"",mediaId:"",msgType:"",textContent:"",materialType:""},clearable:!0,title:"",editor:d.a,editorConfig:u["knowledgeEditorConfig"],dialogFormVisible:!0,msgTypeData:[],typeData:[],isMaterial:!1,isText:!1}},methods:{defaultIndex(){this.getSubscribeReplyData()},async getSubscribeReplyData(){const{data:e}=await Object(s["getDefaultReplyType"])();this.form=e,this.materialOrText(this.form.msgType),this.getMaterialTypeData(),this.getMaterialMsgTypeData()},changeMsgType(){this.$refs["form"].resetFields(),this.materialOrText(this.form.msgType)},materialOrText(e){"material"==e?(this.isMaterial=!0,this.isText=!1):(this.isMaterial=!1,this.isText=!0)},showData(){this.$refs["select"].selectData()},async getMaterialMsgTypeData(){const{data:e}=await Object(s["getMaterialMsgType"])();this.msgTypeData=e},async getMaterialTypeData(){const{data:e}=await Object(s["getMaterialType"])();this.typeData=e},close(){this.$refs["form"].resetFields(),this.form=this.$options.data().form,this.dialogFormVisible=!1,this.$emit("fetch-data")},getMaterialId(e){this.form.mediaId=e},save(){this.$refs["form"].validate(async e=>{if(!e)return!1;{delete this.form.image,delete this.form.voice,delete this.form.video,delete this.form.news;const{msg:e}=await Object(s["defaultReplySaveOrUpdate"])(this.form);this.$notify({title:e,type:"success"}),this.getSubscribeReplyData()}})}}},h=(o("39fe"),o("d959")),p=o.n(h);const b=p()(m,[["render",i]]);t["default"]=b},fe05:function(e,t,o){"use strict";o.r(t),o.d(t,"getDeptList",(function(){return a})),o.d(t,"getDeptTreeList",(function(){return r})),o.d(t,"doDeptDelete",(function(){return i})),o.d(t,"doDeptEdit",(function(){return l})),o.d(t,"doDeptAdd",(function(){return s}));var n=o("b775");function a(e){return Object(n["default"])({url:"/sysDept/list",method:"get",data:e})}function r(e){return Object(n["default"])({url:"/sysDept/deptTree",method:"get",data:e})}function i(e){return Object(n["default"])({url:"/sysDept/delete?deptId="+e.deptId,method:"post",data:e})}function l(e){return Object(n["default"])({url:"/sysDept/update",method:"post",data:e})}function s(e){return Object(n["default"])({url:"/sysDept/add",method:"post",data:e})}},fe29:function(e,t,o){},fe73:function(e,t,o){e.exports=o.p+"static/img/jt.a222d4d8.png"},fea6:function(e,t,o){"use strict";o("93ff")},fed6:function(e,t,o){},ff4d:function(e,t,o){"use strict";o.r(t);var n=o("f2bf");const a={class:"dialog-footer"};function r(e,t,o,r,i,l){const s=Object(n["resolveComponent"])("el-input"),c=Object(n["resolveComponent"])("el-form-item"),d=Object(n["resolveComponent"])("el-form"),u=Object(n["resolveComponent"])("el-button"),m=Object(n["resolveComponent"])("el-dialog");return Object(n["openBlock"])(),Object(n["createBlock"])(m,{modelValue:i.dialogFormVisible,"onUpdate:modelValue":t[5]||(t[5]=e=>i.dialogFormVisible=e),title:i.title,width:"500px",onClose:l.close},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(d,{ref:"form",model:i.form,rules:e.rules,"label-width":"80px"},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(c,{label:e.$t("staff.xm"),prop:"name"},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(s,{modelValue:i.form.name,"onUpdate:modelValue":t[0]||(t[0]=e=>i.form.name=e),modelModifiers:{trim:!0},size:"small",autocomplete:"off"},null,8,["modelValue"])]),_:1},8,["label"]),Object(n["createVNode"])(c,{label:"手机号",prop:"phone"},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(s,{modelValue:i.form.phone,"onUpdate:modelValue":t[1]||(t[1]=e=>i.form.phone=e),modelModifiers:{trim:!0},size:"small",autocomplete:"off"},null,8,["modelValue"])]),_:1}),Object(n["createVNode"])(c,{label:"公司",prop:"company"},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(s,{modelValue:i.form.company,"onUpdate:modelValue":t[2]||(t[2]=e=>i.form.company=e),modelModifiers:{trim:!0},size:"small",autocomplete:"off"},null,8,["modelValue"])]),_:1}),Object(n["createVNode"])(c,{label:"职位",prop:"position"},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(s,{modelValue:i.form.position,"onUpdate:modelValue":t[3]||(t[3]=e=>i.form.position=e),modelModifiers:{trim:!0},autocomplete:"off"},null,8,["modelValue"])]),_:1}),Object(n["createVNode"])(c,{label:e.$t("staff.yx"),prop:"email"},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(s,{modelValue:i.form.email,"onUpdate:modelValue":t[4]||(t[4]=e=>i.form.email=e),modelModifiers:{trim:!0},autocomplete:"off"},null,8,["modelValue"])]),_:1},8,["label"])]),_:1},8,["model","rules"]),Object(n["createElementVNode"])("div",a,[Object(n["createVNode"])(u,{type:"primary",size:"small",onClick:l.save},{default:Object(n["withCtx"])(()=>t[6]||(t[6]=[Object(n["createTextVNode"])("确 定")])),_:1},8,["onClick"]),Object(n["createVNode"])(u,{size:"small",onClick:l.close},{default:Object(n["withCtx"])(()=>t[7]||(t[7]=[Object(n["createTextVNode"])("取 消")])),_:1},8,["onClick"])])]),_:1},8,["modelValue","title","onClose"])}var i=o("fcd7"),l={name:"Add",data(){return{form:{id:"",name:"",phone:"",company:"",email:"",position:""},clearable:!0,title:"",dialogFormVisible:!1,diffData:{},ruleForm:[]}},created(){},methods:{showEdit(e){e?(this.title="编辑",this.menuId=e.id,this.ruleForm=Object.assign({},e),this.form=Object.assign({},e)):this.title="添加",this.dialogFormVisible=!0},close(){this.$refs["form"].resetFields(),this.form=this.$options.data().form,this.dialogFormVisible=!1,this.$emit("fetch-data")},getDiffData(){this.diffData={},Object.keys(this.form).forEach(e=>{this.form[e]!=this.ruleForm[e]&&(this.diffData[e]=this.form[e])})},save(){this.$refs["form"].validate(async e=>{if(!e)return!1;if(this.form.id){if(this.getDiffData(),0!=Object.keys(this.diffData).length){this.diffData.id=this.form.id;const{msg:e}=await Object(i["doEdit"])(this.diffData);this.$notify({title:e,type:"success"})}}else{const{msg:e}=await Object(i["doAdd"])(this.form);this.$notify({title:e,type:"success"})}this.$refs["form"].resetFields(),this.dialogFormVisible=!1,this.$parent.fetchData()})}}},s=(o("73f5"),o("d959")),c=o.n(s);const d=c()(l,[["render",r]]);t["default"]=d},ff85:function(e,t,o){e.exports={"menu-color":"hsla(0,0%,27%,.95)","menu-color-active":"hsla(208,100%,55%,.95)","menu-background":"#fff","gallery-second-menu-background":"#fff"}},ffbb:function(e,t,o){"use strict";o.r(t);var n=o("f2bf");const a={class:"manage-container"},r={class:"dialog-footer"};function i(e,t,o,i,l,s){const c=Object(n["resolveComponent"])("vab-query-form"),d=Object(n["resolveComponent"])("el-input"),u=Object(n["resolveComponent"])("el-form-item"),m=Object(n["resolveComponent"])("el-option"),h=Object(n["resolveComponent"])("el-select"),p=Object(n["resolveComponent"])("el-form"),b=Object(n["resolveComponent"])("el-button"),g=Object(n["resolveComponent"])("el-dialog");return Object(n["openBlock"])(),Object(n["createElementBlock"])("div",a,[Object(n["createVNode"])(g,{modelValue:l.dialogFormVisible,"onUpdate:modelValue":t[14]||(t[14]=e=>l.dialogFormVisible=e),title:l.title,width:"500px",onClose:s.close},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(c,null,{default:Object(n["withCtx"])(()=>t[15]||(t[15]=[Object(n["createElementVNode"])("h1",{class:"tigger-title"},"添加触发器信息",-1)])),_:1}),Object(n["createVNode"])(p,{ref:"form",model:l.form,rules:l.rules,"label-width":"100px","label-position":"left"},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(u,{label:e.$t("trigger.cfqmc"),prop:"name"},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(d,{modelValue:l.form.name,"onUpdate:modelValue":t[0]||(t[0]=e=>l.form.name=e),size:"small",placeholder:"请输入内容"},null,8,["modelValue"])]),_:1},8,["label"]),Object(n["createVNode"])(u,{label:"站点",prop:"deviceId"},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(h,{modelValue:l.form.deviceId,"onUpdate:modelValue":t[1]||(t[1]=e=>l.form.deviceId=e),size:"small",placeholder:"请选择站点",onChange:s.getDeviceId},{default:Object(n["withCtx"])(()=>[(Object(n["openBlock"])(!0),Object(n["createElementBlock"])(n["Fragment"],null,Object(n["renderList"])(l.deviceData,e=>(Object(n["openBlock"])(),Object(n["createBlock"])(m,{key:e.id,label:e.name,value:e.id},null,8,["label","value"]))),128))]),_:1},8,["modelValue","onChange"])]),_:1}),Object(n["createVNode"])(u,{label:e.$t("dataEnquiry.cgq"),prop:"sensorId"},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(h,{modelValue:l.form.sensorId,"onUpdate:modelValue":t[2]||(t[2]=e=>l.form.sensorId=e),size:"small",placeholder:"请选择传感器"},{default:Object(n["withCtx"])(()=>[(Object(n["openBlock"])(!0),Object(n["createElementBlock"])(n["Fragment"],null,Object(n["renderList"])(l.sensorData,e=>(Object(n["openBlock"])(),Object(n["createBlock"])(m,{key:e.id,label:e.name,value:e.id},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1},8,["label"]),Object(n["createVNode"])(c,null,{default:Object(n["withCtx"])(()=>t[16]||(t[16]=[Object(n["createElementVNode"])("h1",{class:"tigger-title"},"触发条件",-1)])),_:1}),Object(n["createVNode"])(u,{label:"条件类型",prop:"triggerCondition"},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(h,{ref:"condition",modelValue:l.form.triggerCondition,"onUpdate:modelValue":t[3]||(t[3]=e=>l.form.triggerCondition=e),size:"small",placeholder:"请选择条件类型",onChange:s.condition},{default:Object(n["withCtx"])(()=>[(Object(n["openBlock"])(!0),Object(n["createElementBlock"])(n["Fragment"],null,Object(n["renderList"])(l.conditionData,e=>(Object(n["openBlock"])(),Object(n["createBlock"])(m,{key:e.dataCode,label:e.dataValue,value:e.dataCode},null,8,["label","value"]))),128))]),_:1},8,["modelValue","onChange"])]),_:1}),1==l.mShow?(Object(n["openBlock"])(),Object(n["createBlock"])(u,{key:0,label:"M"},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(d,{modelValue:l.data.m,"onUpdate:modelValue":t[4]||(t[4]=e=>l.data.m=e),size:"small",placeholder:"M"},null,8,["modelValue"])]),_:1})):Object(n["createCommentVNode"])("",!0),1==l.xShow?(Object(n["openBlock"])(),Object(n["createBlock"])(u,{key:1,label:"X"},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(d,{modelValue:l.data.x,"onUpdate:modelValue":t[5]||(t[5]=e=>l.data.x=e),size:"small",placeholder:"X"},null,8,["modelValue"])]),_:1})):Object(n["createCommentVNode"])("",!0),1==l.yShow?(Object(n["openBlock"])(),Object(n["createBlock"])(u,{key:2,label:"Y"},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(d,{modelValue:l.data.y,"onUpdate:modelValue":t[6]||(t[6]=e=>l.data.y=e),size:"small",placeholder:"Y"},null,8,["modelValue"])]),_:1})):Object(n["createCommentVNode"])("",!0),Object(n["createVNode"])(u,{label:"是否发送报警信息给报警联系人",prop:"alarmFlag"},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(h,{modelValue:l.form.alarmFlag,"onUpdate:modelValue":t[7]||(t[7]=e=>l.form.alarmFlag=e),size:"small",placeholder:"是否发送"},{default:Object(n["withCtx"])(()=>[(Object(n["openBlock"])(!0),Object(n["createElementBlock"])(n["Fragment"],null,Object(n["renderList"])(l.alarmFlagData,e=>(Object(n["openBlock"])(),Object(n["createBlock"])(m,{key:e.value,label:e.label,value:e.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),Object(n["createVNode"])(u,{label:"联控设备动作",prop:"controlFlag"},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(h,{modelValue:l.form.controlFlag,"onUpdate:modelValue":t[8]||(t[8]=e=>l.form.controlFlag=e),size:"small",placeholder:"请选择联控设备动作"},{default:Object(n["withCtx"])(()=>[(Object(n["openBlock"])(!0),Object(n["createElementBlock"])(n["Fragment"],null,Object(n["renderList"])(l.controlFlagData,e=>(Object(n["openBlock"])(),Object(n["createBlock"])(m,{key:e.value,label:e.label,value:e.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),Object(n["createVNode"])(u,{label:"联控设备",prop:"controlDevice"},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(h,{modelValue:l.form.controlDevice,"onUpdate:modelValue":t[9]||(t[9]=e=>l.form.controlDevice=e),size:"small",placeholder:"请选择联控设备",onChange:s.deviceChange},{default:Object(n["withCtx"])(()=>[(Object(n["openBlock"])(!0),Object(n["createElementBlock"])(n["Fragment"],null,Object(n["renderList"])(l.controlDevicesData,e=>(Object(n["openBlock"])(),Object(n["createBlock"])(m,{key:e.id,label:e.name,value:e.id},null,8,["label","value"]))),128))]),_:1},8,["modelValue","onChange"])]),_:1}),Object(n["createVNode"])(u,{label:"联控传感器",prop:"controlSensor"},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(h,{modelValue:l.form.controlSensor,"onUpdate:modelValue":t[10]||(t[10]=e=>l.form.controlSensor=e),size:"small",placeholder:"请选择联控传感器"},{default:Object(n["withCtx"])(()=>[(Object(n["openBlock"])(!0),Object(n["createElementBlock"])(n["Fragment"],null,Object(n["renderList"])(l.controlSensorData,e=>(Object(n["openBlock"])(),Object(n["createBlock"])(m,{key:e.id,label:e.name,value:e.id},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),Object(n["createVNode"])(u,{label:e.$t("alarm.bjjb"),prop:"alarmLevel"},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(h,{modelValue:l.form.alarmLevel,"onUpdate:modelValue":t[11]||(t[11]=e=>l.form.alarmLevel=e),size:"small",placeholder:"请选择报警级别"},{default:Object(n["withCtx"])(()=>[(Object(n["openBlock"])(!0),Object(n["createElementBlock"])(n["Fragment"],null,Object(n["renderList"])(l.levelData,e=>(Object(n["openBlock"])(),Object(n["createBlock"])(m,{key:e.dataCode,label:e.dataValue,value:e.dataCode},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1},8,["label"]),Object(n["createVNode"])(u,{label:e.$t("trigger.cfzq"),prop:"triggerCycle"},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(d,{modelValue:l.form.triggerCycle,"onUpdate:modelValue":t[12]||(t[12]=e=>l.form.triggerCycle=e),size:"small",placeholder:"单位秒 0不循环触发"},null,8,["modelValue"])]),_:1},8,["label"]),Object(n["createVNode"])(u,{label:"报警信息模板",prop:"alarmTemplate"},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(d,{modelValue:l.form.alarmTemplate,"onUpdate:modelValue":t[13]||(t[13]=e=>l.form.alarmTemplate=e),size:"small",placeholder:"报警信息模板"},null,8,["modelValue"])]),_:1})]),_:1},8,["model","rules"]),Object(n["createElementVNode"])("div",r,[Object(n["createVNode"])(b,{type:"primary",size:"small",onClick:s.save},{default:Object(n["withCtx"])(()=>t[17]||(t[17]=[Object(n["createTextVNode"])("保存")])),_:1},8,["onClick"]),Object(n["createVNode"])(b,{size:"small",onClick:s.close},{default:Object(n["withCtx"])(()=>t[18]||(t[18]=[Object(n["createTextVNode"])("返回")])),_:1},8,["onClick"])])]),_:1},8,["modelValue","title","onClose"])])}var l=o("4303"),s={name:"TriggerEdit",data(){return{form:{id:"",name:"",projectId:"",deviceId:"",sensorId:"",triggerCondition:"",triggerConditionParams:"",triggerCycle:"",alarmFlag:"",alarmLevel:"",controlFlag:"",controlDevice:"",controlSensor:"",controlData:"",alarmTemplate:""},data:{x:"",y:"",m:""},rules:{name:[{required:!0,trigger:"blur",message:"请输入触发器名称"}],deviceId:[{required:!0,trigger:"change",message:"请选择设备"}],sensorId:[{required:!0,trigger:"change",message:"请选择传感器"}],triggerCondition:[{required:!0,trigger:"change",message:"请选择条件类型"}],alarmLevel:[{required:!0,trigger:"change",message:"请选择报警级别"}]},title:"",dialogFormVisible:!1,projectId:"",diffData:{},ruleForm:[],typeData:[],levelData:[],controlSensorData:[],conditionData:[],userData:[],controlDevicesData:[],deviceData:[],sensorData:[],flagData:[{label:"开启",value:"0"},{label:"关闭",value:"1"}],controlFlagData:[{label:"不联控",value:"0"},{label:"联控",value:"1"}],RecoveryFlagData:[{label:"开启",value:"0"},{label:"关闭",value:"1"}],alarmFlagData:[{label:"不发送",value:"0"},{label:"发送",value:"1"}],statusData:[{label:"正常",value:"0"},{label:"暂停",value:"1"}],xShow:!1,yShow:!1,mShow:!1,isControl:!1,isUser:!1,isLevel:!1}},created(){this.form.projectId=sessionStorage.getItem("projectId"),this.projectId=sessionStorage.getItem("projectId")},methods:{async getDevice(){const{data:e}=await Object(l["selectDeviceByProjectId"])({projectId:this.projectId});this.deviceData=e},deviceChange(){this.getControlSensorData()},async getControlSensorData(){const{data:e}=await Object(l["selectSensorByDeviceId"])({deviceId:this.form.controlDevice});this.controlSensorData=e},getDeviceId(e){this.getSensor(e)},controlUserShow(e){-1!==e.indexOf("0")&&-1!==e.indexOf("1")||-1!==e.indexOf("0")&&-1!==e.indexOf("2")||-1!==e.indexOf("0")&&-1!==e.indexOf("3")?(this.isControl=!0,this.isUser=!0):-1!=e.indexOf("0")?(this.isControl=!0,this.isUser=!1):-1!=e.indexOf("1")||-1!=e.indexOf("2")?(this.isControl=!1,this.isUser=!0):(this.isControl=!1,this.isUser=!1)},async getSensor(){const{data:e}=await Object(l["selectSensorByDeviceId"])({deviceId:this.form.deviceId});this.sensorData=e},condition(e){let t={};t=this.conditionData.find(t=>t.dataCode===e);const o=t.dataValue;this.xymShow(o)},xymShow(e){-1!=e.indexOf("x")&&-1!=e.indexOf("y")?(this.xShow=!0,this.yShow=!0,this.mShow=!1):-1!=e.indexOf("x")&&-1!=e.indexOf("m")?(this.xShow=!0,this.yShow=!1,this.mShow=!0):-1!=e.indexOf("x")?(this.xShow=!0,this.yShow=!1,this.mShow=!1):-1!=e.indexOf("y")?(this.xShow=!1,this.yShow=!0,this.mShow=!1):-1!=e.indexOf("m")&&(this.xShow=!1,this.yShow=!1,this.mShow=!0),this.data.x="",this.data.y="",this.data.m=""},async getLevel(){const{data:e}=await Object(l["selectAllAlarmLevel"])();this.levelData=e},async getCondition(){const{data:e}=await Object(l["selectAllTriggerCondition"])();this.conditionData=e},async getControlDevice(){const e=""==this.form.projectId?this.projectId:this.form.projectId,{data:t}=await Object(l["selectControlDevices"])({projectId:e});this.controlDevicesData=t},showEdit(e,t){this.getLevel(),this.getCondition(),this.getControlDevice(),this.getDevice(),this.deviceData={},1==t?this.title="添加触发器":(this.title="编辑触发器",this.getTriggerData(e)),this.dialogFormVisible=!0},async getTriggerData(e){const t=Object.assign({},e);if(this.form=t,this.form.deviceId=t.device.id,this.getSensor(),this.form.sensorId=t.sensor.id,null!=t.alarmLevel&&(this.form.alarmLevel=t.alarmLevel.dataCode),null!=t.controlDevice&&(this.form.controlDevice=Number(t.controlDevice.id),this.getControlSensorData()),null!=t.controlSensor&&(this.form.controlSensor=Number(t.controlSensor.id)),null!=t.triggerCondition){this.form.triggerCondition=t.triggerCondition.dataCode,this.xymShow(e.triggerCondition.dataValue);const o=e.triggerConditionParams.split(",");console.log(this.mShow,this.xShow,this.yShow),1==this.mShow&&(this.data.m=void 0==o[2]?o[1]:o[2]),1==this.xShow&&(this.data.x=void 0==o[0]?"":o[0]),1==this.yShow&&(this.data.y=void 0==o[1]?o[0]:o[1])}},arrToSrt(e,t=""){if(void 0!=e&&0!=e.length){let o="";for(let n=0;n<e.length;n++)o+=t?e[n].id+",":e[n]+",";return o.substring(0,o.length-1)}},close(){this.$refs["form"].resetFields(),this.form=this.$options.data().form,this.dialogFormVisible=!1,this.$emit("fetch-data")},save(){this.$refs["form"].validate(async e=>{if(!e)return!1;{const e=this.data;let t="";if(""!=e.m&&(t+=e.m+","),""!=e.x&&(t+=e.x+","),""!=e.y&&(t+=e.y+","),this.form.triggerConditionParams=t.substring(0,t.length-1),this.form.id){delete this.form.sensor,delete this.form.device,console.log(this.form);const{msg:e}=await Object(l["doEdit"])(this.form);this.$notify({title:e,type:"success"})}else{delete this.form.id;const{msg:e}=await Object(l["doAdd"])(this.form);this.$notify({title:e,type:"success"})}this.$refs["form"].resetFields(),this.dialogFormVisible=!1,this.$parent.fetchData()}})}}},c=(o("d90a"),o("d959")),d=o.n(c);const u=d()(s,[["render",i],["__scopeId","data-v-90ba7d80"]]);t["default"]=u},ffbbc:function(e,t,o){e.exports={"menu-color":"hsla(0,0%,27%,.95)","menu-color-active":"hsla(208,100%,55%,.95)","menu-background":"#fff","gallery-second-menu-background":"#fff"}}}]);