PPTist/js/app.196cd4ec.js

2 lines
531 KiB
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters

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.

(function(e){function t(t){for(var o,a,r=t[0],i=t[1],u=t[2],s=0,f=[];s<r.length;s++)a=r[s],Object.prototype.hasOwnProperty.call(l,a)&&l[a]&&f.push(l[a][0]),l[a]=0;for(o in i)Object.prototype.hasOwnProperty.call(i,o)&&(e[o]=i[o]);d&&d(t);while(f.length)f.shift()();return c.push.apply(c,u||[]),n()}function n(){for(var e,t=0;t<c.length;t++){for(var n=c[t],o=!0,r=1;r<n.length;r++){var i=n[r];0!==l[i]&&(o=!1)}o&&(c.splice(t--,1),e=a(a.s=n[0]))}return e}var o={},l={app:0},c=[];function a(t){if(o[t])return o[t].exports;var n=o[t]={i:t,l:!1,exports:{}};return e[t].call(n.exports,n,n.exports,a),n.l=!0,n.exports}a.m=e,a.c=o,a.d=function(e,t,n){a.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},a.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},a.t=function(e,t){if(1&t&&(e=a(e)),8&t)return e;if(4&t&&"object"===typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(a.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)a.d(n,o,function(t){return e[t]}.bind(null,o));return n},a.n=function(e){var t=e&&e.__esModule?function(){return e["default"]}:function(){return e};return a.d(t,"a",t),t},a.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},a.p="";var r=window["webpackJsonp"]=window["webpackJsonp"]||[],i=r.push.bind(r);r.push=t,r=r.slice();for(var u=0;u<r.length;u++)t(r[u]);var d=i;c.push([1,"chunk-vendors"]),n()})({0:function(e,t){},"0006":function(e,t,n){"use strict";n("3150")},"00df":function(e,t,n){},"013f":function(e,t,n){},"044f":function(e,t,n){"use strict";n("e5b9")},"04e6":function(e,t,n){"use strict";n("90ef")},"0606":function(e,t,n){"use strict";n("cdff")},"06b6":function(e,t,n){"use strict";n("c123")},"0737":function(e,t,n){},"07f7":function(e,t,n){},"080a":function(e,t,n){},"097f":function(e,t,n){"use strict";n("4b78")},"0c35":function(e,t,n){"use strict";n("2581")},"0c74":function(e,t,n){"use strict";n("77a7")},"0f92":function(e,t,n){},"0fcb":function(e,t,n){},1:function(e,t,n){e.exports=n("cd49")},1160:function(e,t,n){},1190:function(e,t,n){"use strict";n("ff8b")},"11f0":function(e,t,n){"use strict";n("7289")},1291:function(e,t,n){},"13c8":function(e,t,n){},1401:function(e,t,n){"use strict";n("7932")},1842:function(e,t,n){"use strict";n("ab66")},"195c":function(e,t,n){"use strict";n("eaff")},"1a34":function(e,t,n){"use strict";n("d4cb")},"1b9e":function(e,t,n){},"1fec":function(e,t,n){"use strict";n("0737")},2:function(e,t){},2007:function(e,t,n){},"2007a":function(e,t,n){"use strict";n("ec3f")},2086:function(e,t,n){"use strict";n("a7ae")},2581:function(e,t,n){},"2ab1":function(e,t,n){},"2b79b":function(e,t,n){"use strict";n("07f7")},"2dff":function(e,t,n){},"2f42":function(e,t,n){"use strict";n("a9b8")},"2f5f":function(e,t,n){},"2fee":function(e,t,n){"use strict";n("6ea7")},3:function(e,t){},"306b":function(e,t,n){"use strict";n("b3fd")},3106:function(e,t,n){},3150:function(e,t,n){},"344c":function(e,t,n){},"34cb":function(e,t,n){"use strict";n("8e6f")},"357f":function(e,t,n){},"35da":function(e,t,n){"use strict";n("dc2f")},3831:function(e,t,n){},"383f":function(e,t,n){"use strict";n("bac8")},"3d11":function(e,t,n){},"3d3c":function(e,t,n){"use strict";n("84b3")},"3dc0":function(e,t,n){"use strict";n("344c")},"3f8e":function(e,t,n){"use strict";n("dbe5")},"42d4":function(e,t,n){},4405:function(e,t,n){"use strict";n("84d9")},"440e":function(e,t,n){},4607:function(e,t,n){"use strict";n("96e4")},"468f":function(e,t,n){"use strict";n("e1f8")},"46ba":function(e,t,n){},4855:function(e,t,n){},"4a74":function(e,t,n){},"4b15":function(e,t,n){"use strict";n("42d4")},"4b78":function(e,t,n){},"4c08":function(e,t,n){"use strict";n("00df")},"4c0a":function(e,t,n){},"4f7c":function(e,t,n){"use strict";n("e9e0")},"4fda":function(e,t,n){},"502c":function(e,t,n){},5083:function(e,t,n){"use strict";n("6ab0")},"50c5":function(e,t,n){},5235:function(e,t,n){"use strict";n("6d88")},5264:function(e,t,n){"use strict";n("dc5e")},5353:function(e,t,n){"use strict";n("625d")},5545:function(e,t,n){},"564c":function(e,t,n){"use strict";n("d2f4")},"56b6":function(e,t,n){"use strict";n("6d82")},"56bc":function(e,t,n){"use strict";n("1291")},5952:function(e,t,n){},"5a61":function(e,t,n){},"5a68":function(e,t,n){"use strict";n("357f")},"5f67":function(e,t,n){},6042:function(e,t,n){"use strict";n("5a61")},6086:function(e,t,n){},6236:function(e,t,n){},"625d":function(e,t,n){},6532:function(e,t,n){},"65bb":function(e,t,n){},"66f9":function(e,t,n){"use strict";n("502c")},6702:function(e,t,n){},6856:function(e,t,n){"use strict";n("2f5f")},"69a7":function(e,t,n){"use strict";n("440e")},"69d5":function(e,t,n){},"69d58":function(e,t,n){"use strict";n("b42f")},"6ab0":function(e,t,n){},"6c3c":function(e,t,n){"use strict";n("c3c6")},"6d15":function(e,t,n){"use strict";n("9601")},"6d82":function(e,t,n){},"6d88":function(e,t,n){},"6e42":function(e,t,n){"use strict";n("a838")},"6ea7":function(e,t,n){},7023:function(e,t,n){},7289:function(e,t,n){},"73f6":function(e,t,n){"use strict";n("807d")},"77a7":function(e,t,n){},"782e":function(e,t,n){"use strict";n("cc63")},7893:function(e,t,n){"use strict";n("8f56")},"78eb":function(e,t,n){"use strict";n("65bb")},7932:function(e,t,n){},"7ae4":function(e,t,n){"use strict";n("c56c")},"7e0a":function(e,t,n){"use strict";n("d6d3")},"7e17":function(e,t,n){"use strict";n("4855")},"7ec9":function(e,t,n){"use strict";n("0fcb")},"803b":function(e,t,n){},8055:function(e,t,n){},"807d":function(e,t,n){},"84b3":function(e,t,n){},"84d9":function(e,t,n){},"86f4":function(e,t,n){"use strict";n("3d11")},8754:function(e,t,n){"use strict";n("13c8")},8881:function(e,t,n){"use strict";n("8055")},"8c56":function(e,t,n){},"8e58":function(e,t,n){},"8e6f":function(e,t,n){},"8f56":function(e,t,n){},"90ef":function(e,t,n){},9316:function(e,t,n){"use strict";n("bf06")},"94e5":function(e,t,n){},9601:function(e,t,n){},"96e4":function(e,t,n){},"9a18":function(e,t,n){},"9a8f":function(e,t,n){"use strict";n("5545")},a215:function(e,t,n){"use strict";n("7023")},a46e:function(e,t,n){"use strict";n("8e58")},a576:function(e,t,n){"use strict";n("6086")},a60f:function(e,t,n){"use strict";n("080a")},a7ae:function(e,t,n){},a7fe:function(e,t,n){"use strict";n("6236")},a838:function(e,t,n){},a9ab:function(e,t,n){},a9b8:function(e,t,n){},ab66:function(e,t,n){},ad18:function(e,t,n){"use strict";n("e6a5")},ae3f:function(e,t,n){},b05d:function(e,t,n){"use strict";n("c88a")},b2b4:function(e,t,n){"use strict";n("d0e2")},b3fd:function(e,t,n){},b42f:function(e,t,n){},b5ae:function(e,t,n){"use strict";n("d65a")},b6c7:function(e,t,n){},b824:function(e,t,n){"use strict";n("caf0")},b837:function(e,t,n){"use strict";n("94e5")},bac8:function(e,t,n){},be11:function(e,t,n){"use strict";n("e4fe")},bf06:function(e,t,n){},c123:function(e,t,n){},c242:function(e,t,n){},c329:function(e,t,n){"use strict";n("5f67")},c390:function(e,t,n){"use strict";n("9a18")},c3c6:function(e,t,n){},c43a:function(e,t,n){"use strict";n("2dff")},c56c:function(e,t,n){},c645:function(e,t,n){"use strict";n("b6c7")},c68f:function(e,t,n){"use strict";n("2007")},c790:function(e,t,n){"use strict";n("3106")},c860:function(e,t,n){},c88a:function(e,t,n){},ca53:function(e,t,n){"use strict";n("69d5")},caf0:function(e,t,n){},cc63:function(e,t,n){},cd49:function(e,t,n){"use strict";n.r(t);n("7f6b");var o=n("8592"),l=(n("6d2a"),n("9571")),c=(n("ee00"),n("bb76")),a=(n("fbd8"),n("55f1")),r=(n("9d5c"),n("a600")),i=(n("cd17"),n("ed3b")),u=(n("5704"),n("b558")),d=(n("5783"),n("59a5")),s=(n("fbd6"),n("160c")),f=(n("2ef0f"),n("9839")),p=(n("438c"),n("fbdf")),m=(n("5136"),n("681b")),b=(n("9a33"),n("f933")),v=(n("6ba6"),n("5efb")),h=(n("55ec"),n("a79d")),O=(n("922d"),n("09d9")),j=(n("e260"),n("e6cf"),n("cca6"),n("a79df"),n("7a23")),y=n("be92");function g(e,t,n,o,l,c){var a=Object(j["resolveComponent"])("Editor"),r=Object(j["resolveComponent"])("Screen");return e.screening?(Object(j["openBlock"])(),Object(j["createBlock"])(r,{key:1})):(Object(j["openBlock"])(),Object(j["createBlock"])(a,{key:0}))}n("4de4"),n("d3b7"),n("caad"),n("2532"),n("7db0");var x,C,k,w,E,N,I=[{label:"Arial",value:"Arial"},{label:"微软雅黑",value:"Microsoft Yahei"},{label:"宋体",value:"SimSun"},{label:"黑体",value:"SimHei"},{label:"楷体",value:"KaiTi"},{label:"新宋体",value:"NSimSun"},{label:"仿宋",value:"FangSong"},{label:"苹方",value:"PingFang SC"},{label:"华文黑体",value:"STHeiti"},{label:"华文楷体",value:"STKaiti"},{label:"华文宋体",value:"STSong"},{label:"华文仿宋",value:"STFangSong"},{label:"华文中宋",value:"STZhongSong"},{label:"华文琥珀",value:"STHupo"},{label:"华文新魏",value:"STXinwei"},{label:"华文隶书",value:"STLiti"},{label:"华文行楷",value:"STXingkai"},{label:"冬青黑体",value:"Hiragino Sans GB"},{label:"兰亭黑",value:"Lantinghei SC"},{label:"偏偏体",value:"Hanzipen SC"},{label:"手札体",value:"Hannotate SC"},{label:"宋体",value:"Songti SC"},{label:"娃娃体",value:"Wawati SC"},{label:"行楷",value:"Xingkai SC"},{label:"圆体",value:"Yuanti SC"},{label:"华文细黑",value:"STXihei"},{label:"幼圆",value:"YouYuan"},{label:"隶书",value:"LiSu"}],V=[{label:"仓耳小丸子",value:"仓耳小丸子"},{label:"优设标题黑",value:"优设标题黑"},{label:"峰广明锐体",value:"峰广明锐体"},{label:"摄图摩登小方体",value:"摄图摩登小方体"},{label:"站酷快乐体",value:"站酷快乐体"},{label:"字制区喜脉体",value:"字制区喜脉体"},{label:"素材集市康康体",value:"素材集市康康体"},{label:"联盟起艺卢帅正锐黑体",value:"联盟起艺卢帅正锐黑体"},{label:"素材集市酷方体",value:"素材集市酷方体"},{label:"途牛类圆体",value:"途牛类圆体"},{label:"锐字真言体",value:"锐字真言体"},{label:"阿里汉仪智能黑体",value:"阿里汉仪智能黑体"}],S=n("5530"),B=n("b85c"),L=(n("b0c0"),n("1913"),function(e,t){return Array.isArray(e)&&e.indexOf(t.type)>-1||t.type===e}),T=function(e,t){for(var n=e.depth;n>0;n--){var o=e.node(n);if(t(o))return{pos:n>0?e.before(n):0,start:e.start(n),depth:n,node:o}}},M=function(e){return function(t){return T(t.$from,e)}},_=function(e){return function(t){return M((function(t){return L(e,t)}))(t)}},D=function(e,t){var n=t.schema.nodes[e];return!!_(n)(t.selection)},z=function(e){var t,n,o=e.state,l=o.selection,c=o.doc,a=l.from,r=c.nodeAt(a)||c.nodeAt(a-1);return null!==(t=r)&&void 0!==t&&t.lastChild&&(r=r.lastChild),(null===(n=r)||void 0===n?void 0:n.marks)||[]},A=function(e,t,n){var o,l=Object(B["a"])(e);try{for(l.s();!(o=l.n()).done;){var c=o.value;if(c.type.name===t&&c.attrs[n])return c.attrs[n]}}catch(a){l.e(a)}finally{l.f()}return null},F=function(e,t){var n,o=Object(B["a"])(e);try{for(o.s();!(n=o.n()).done;){var l=n.value;if(l.type.name===t)return!0}}catch(c){o.e(c)}finally{o.f()}return!1},R=function(e,t){var n=e.state,o=n.selection,l=n.doc,c=o.from,a=o.to,r=!0,i="";return l.nodesBetween(c,a,(function(e){return r&&e.attrs[t]&&(r=!1,i=e.attrs[t]),r})),i},P={color:"#000",backcolor:"#000",fontsize:"20px",fontname:"微软雅黑",align:"left"},H=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};t=Object(S["a"])(Object(S["a"])({},P),t);var n=z(e),o=F(n,"strong"),l=F(n,"em"),c=F(n,"underline"),a=F(n,"strikethrough"),r=F(n,"superscript"),i=F(n,"subscript"),u=F(n,"code"),d=A(n,"forecolor","color")||t.color,s=A(n,"backcolor","backcolor")||t.backcolor,f=A(n,"fontsize","fontsize")||t.fontsize,p=A(n,"fontname","fontname")||t.fontname,m=R(e,"align")||t.align,b=D("bullet_list",e.state),v=D("ordered_list",e.state),h=D("blockquote",e.state);return{bold:o,em:l,underline:c,strikethrough:a,superscript:r,subscript:i,code:u,color:d,backcolor:s,fontsize:f,fontname:p,align:m,bulletList:b,orderedList:v,blockquote:h}},q={bold:!1,em:!1,underline:!1,strikethrough:!1,superscript:!1,subscript:!1,code:!1,color:"#000",backcolor:"#000",fontsize:"20px",fontname:"微软雅黑",align:"left",bulletList:!1,orderedList:!1,blockquote:!1},X=(n("99af"),n("fb6a"),n("a15b"),function(e){if("string"!==typeof e)return!1;var t="Arial";if(e.toLowerCase()===t.toLowerCase())return!0;var n=100,o=100,l=100,c="a",a=document.createElement("canvas"),r=a.getContext("2d");if(!r)return!1;a.width=o,a.height=l,r.textAlign="center",r.fillStyle="black",r.textBaseline="middle";var i=function(e){r.clearRect(0,0,o,l),r.font="".concat(n,"px ").concat(e,", ").concat(t),r.fillText(c,o/2,l/2);var a=r.getImageData(0,0,o,l).data;return[].slice.call(a).filter((function(e){return 0!==e}))};return i(t).join("")!==i(e).join("")}),W=n("2909"),G=(n("d81d"),n("ac1f"),n("5319"),n("5b81"),n("e9c4"),n("a434"),n("c740"),n("66cb")),U=n.n(G),Y=n("2ef0"),Z=[{id:"test123456",elements:[{type:"shape",id:"4cbRxp",left:0,top:200,width:546,height:362.5,viewBox:200,path:"M 0 0 L 0 200 L 200 200 Z",fill:"#5b9bd5",fixedRatio:!1,opacity:.7,rotate:0},{type:"shape",id:"ookHrf",left:0,top:0,width:300,height:320,viewBox:200,path:"M 0 0 L 0 200 L 200 200 Z",fill:"#5b9bd5",fixedRatio:!1,flipV:!0,rotate:0},{type:"text",id:"idn7Mx",left:355,top:65.25,width:585,height:188,lineHeight:1.2,content:"<p><strong><span style='font-size: 112px'>PPTIST</span></strong></p>",rotate:0,defaultFontName:"Microsoft Yahei",defaultColor:"#333"},{type:"text",id:"7stmVP",left:355,top:253.25,width:585,height:56,content:"<p><span style='font-size: 24px'>基于 Vue 3.x + TypeScript 的在线演示文稿应用</span></p>",rotate:0,defaultFontName:"Microsoft Yahei",defaultColor:"#333"},{type:"line",id:"FnpZs4",left:361,top:238,start:[0,0],end:[549,0],points:["",""],color:"#5b9bd5",style:"solid",width:2}],background:{type:"solid",color:"#ffffff"}}],J={themeColor:"#5b9bd5",fontColor:"#333",fontName:"Microsoft Yahei",backgroundColor:"#fff"},K=[{id:"template",elements:[{type:"shape",id:"4cbRxp",left:0,top:200,width:546,height:362.5,viewBox:200,path:"M 0 0 L 0 200 L 200 200 Z",fill:"{{themeColor}}",fixedRatio:!1,opacity:.7,rotate:0},{type:"shape",id:"ookHrf",left:0,top:0,width:300,height:320,viewBox:200,path:"M 0 0 L 0 200 L 200 200 Z",fill:"{{themeColor}}",fixedRatio:!1,flipV:!0,rotate:0},{type:"text",id:"AkIh3E",left:355,top:95.11111111111111,width:585,height:116,lineHeight:1.2,content:"<p style=''><strong><span style='font-size: 80px'>输入标题</span></strong></p>",rotate:0,defaultFontName:"{{fontName}}",defaultColor:"{{fontColor}}",wordSpace:6},{type:"text",id:"7stmVP",left:355,top:253.25,width:585,height:56,content:"<p><span style='font-size: 24px'>请在此处输入副标题</span></p>",rotate:0,defaultFontName:"{{fontName}}",defaultColor:"{{fontColor}}"},{type:"line",id:"FnpZs4",left:361,top:238,start:[0,0],end:[549,0],points:["",""],color:"{{themeColor}}",style:"solid",width:2}],background:{type:"solid",color:"{{backgroundColor}}"}},{id:"template",elements:[{type:"text",id:"ptNnUJ",left:145,top:148,width:711,height:77,lineHeight:1.2,content:"<p style='text-align: center;'><strong><span style='font-size: 48px'>在此处添加标题</span></strong></p>",rotate:0,defaultFontName:"{{fontName}}",defaultColor:"{{fontColor}}"},{type:"text",id:"mRHvQN",left:207.50000000000003,top:249.84259259259264,width:585,height:56,content:"<p style='text-align: center;'><span style='font-size: 24px'>在此处添加副标题</span></p>",rotate:0,defaultFontName:"{{fontName}}",defaultColor:"{{fontColor}}"},{type:"line",id:"7CQDwc",left:323.09259259259267,top:238.33333333333334,start:[0,0],end:[354.8148148148148,0],points:["",""],color:"{{themeColor}}",style:"solid",width:4},{type:"shape",id:"09wqWw",left:-27.648148148148138,top:432.73148148148147,width:1056.2962962962963,height:162.96296296296296,viewBox:200,path:"M 0 20 C 40 -40 60 60 100 20 C 140 -40 160 60 200 20 L 200 180 C 140 240 160 140 100 180 C 40 240 60 140 0 180 L 0 20 Z",fill:"{{themeColor}}",fixedRatio:!1,rotate:0}],background:{type:"solid",color:"{{backgroundColor}}"}},{id:"template",elements:[{type:"shape",id:"vSheCJ",left:183.5185185185185,top:175.5092592592593,width:605.1851851851851,height:185.18518518518516,viewBox:200,path:"M 0 0 L 200 0 L 200 200 L 0 200 Z",fill:"{{themeColor}}",fixedRatio:!1,rotate:0},{type:"shape",id:"Mpwv7x",left:211.29629629629628,top:201.80555555555557,width:605.1851851851851,height:185.18518518518516,viewBox:200,path:"M 0 0 L 200 0 L 200 200 L 0 200 Z",fill:"{{themeColor}}",fixedRatio:!1,rotate:0,opacity:.7},{type:"text",id:"WQOTAp",left:304.9074074074074,top:198.10185185185182,width:417.9629629629629,height:140,content:"<p style='text-align: center;'><strong><span style='color: #ffffff;'><span style='font-size: 80px'>感谢观看</span></span></strong></p>",rotate:0,defaultFontName:"{{fontName}}",defaultColor:"{{fontColor}}",wordSpace:5}],background:{type:"solid",color:"{{backgroundColor}}"}},{id:"MZVO1kkj",elements:[{type:"shape",id:"cql0h8",left:0,top:0,width:352.59259259259255,height:562.5,viewBox:200,path:"M 0 0 L 200 0 L 200 200 L 0 200 Z",fill:"{{themeColor}}",fixedRatio:!1,rotate:0},{type:"shape",id:"_RTaF4",left:171.4814814814814,top:100.13888888888887,width:362.22222222222223,height:362.22222222222223,viewBox:200,path:"M 100 0 A 50 50 0 1 1 100 200 A 50 50 0 1 1 100 0 Z",fill:"rgba(255,255,255,0)",fixedRatio:!1,rotate:0,outline:{width:10,color:"{{backgroundColor}}",style:"solid"}},{type:"shape",id:"UZfo8N",left:216.66666666666663,top:145.32407407407408,width:271.85185185185185,height:271.85185185185185,viewBox:200,path:"M 100 0 A 50 50 0 1 1 100 200 A 50 50 0 1 1 100 0 Z",fill:"{{backgroundColor}}",fixedRatio:!1,rotate:0,text:{content:"<p style='text-align: center;'><span style='font-size: 80px'>01</span></p>",defaultFontName:"{{fontName}}",defaultColor:"{{fontColor}}",align:"middle"}},{type:"text",id:"ysqtBg",left:561.4814814814814,top:100.1388888888889,width:359.25925925925924,height:80,content:"<p style=''><strong><span style='font-size: 40px'>在此处输入标题</span></strong></p>",rotate:0,defaultFontName:"{{fontName}}",defaultColor:"{{fontColor}}"},{type:"text",id:"lXsoHa",left:572.5925925925925,top:202.3611111111111,width:257.77777777777777,height:260,content:"<ol><li><p style=''>在此处输入内容</p></li><li><p style=''>在此处输入内容</p></li><li><p style=''>在此处输入内容</p></li><li><p style=''>在此处输入内容</p></li><li><p style=''>在此处输入内容</p></li><li><p style=''>在此处输入内容</p></li></ol>",rotate:0,defaultFontName:"{{fontName}}",defaultColor:"{{fontColor}}",lineHeight:2,fill:"{{subColor}}"}],background:{type:"solid",color:"{{backgroundColor}}"}},{id:"template",elements:[{type:"shape",id:"EBBnTr",left:360.5996472663139,top:141.8496472663139,width:278.80070546737215,height:278.80070546737215,viewBox:200,path:"M 100 0 A 50 50 0 1 1 100 200 A 50 50 0 1 1 100 0 Z",fill:"{{themeColor}}",fixedRatio:!0,rotate:0,outline:{width:0,color:"{{backgroundColor}}",style:"solid"}},{type:"shape",id:"gDIWDH",left:456.4373897707231,top:98.287037037037,width:87.12522045855381,height:87.12522045855381,viewBox:200,path:"M 100 0 A 50 50 0 1 1 100 200 A 50 50 0 1 1 100 0 Z",fill:"{{themeColor}}",fixedRatio:!0,rotate:0,outline:{width:4,color:"{{backgroundColor}}",style:"solid"},text:{content:"<p style='text-align: center;'><span style='color: #ffffff;'>1</span></p>",defaultFontName:"{{fontName}}",defaultColor:"{{fontColor}}",align:"middle"}},{type:"shape",id:"DUWT7E",left:317.037037037037,top:237.68738977072314,width:87.12522045855381,height:87.12522045855381,viewBox:200,path:"M 100 0 A 50 50 0 1 1 100 200 A 50 50 0 1 1 100 0 Z",fill:"{{themeColor}}",fixedRatio:!0,rotate:0,outline:{width:4,color:"{{backgroundColor}}",style:"solid"},text:{content:"<p style='text-align: center;'><span style='color: #ffffff;'>4</span></p>",defaultFontName:"{{fontName}}",defaultColor:"{{fontColor}}",align:"middle"}},{type:"shape",id:"pbhn38",left:456.43738977072303,top:377.08774250440916,width:87.12522045855381,height:87.12522045855381,viewBox:200,path:"M 100 0 A 50 50 0 1 1 100 200 A 50 50 0 1 1 100 0 Z",fill:"{{themeColor}}",fixedRatio:!0,rotate:0,outline:{width:4,color:"{{backgroundColor}}",style:"solid"},text:{content:"<p style='text-align: center;'><span style='color: #ffffff;'>3</span></p>",defaultFontName:"{{fontName}}",defaultColor:"{{fontColor}}",align:"middle"}},{type:"shape",id:"CvMKrO",left:595.8377425044091,top:237.6873897707231,width:87.12522045855381,height:87.12522045855381,viewBox:200,path:"M 100 0 A 50 50 0 1 1 100 200 A 50 50 0 1 1 100 0 Z",fill:"{{themeColor}}",fixedRatio:!0,rotate:0,outline:{width:4,color:"{{backgroundColor}}",style:"solid"},text:{content:"<p style='text-align: center;'><span style='color: #ffffff;'>2</span></p>",defaultFontName:"{{fontName}}",defaultColor:"{{fontColor}}",align:"middle"}},{type:"text",id:"adudHB",left:402.962962962963,top:39.39814814814815,width:194.07407407407408,height:50,content:"<p style='text-align: center;'>在此输入内容</p>",rotate:0,defaultFontName:"{{fontName}}",defaultColor:"{{fontColor}}"},{type:"text",id:"9UpDwg",left:402.962962962963,top:473.1018518518518,width:194.07407407407408,height:50,content:"<p style='text-align: center;'>在此输入内容</p>",rotate:0,defaultFontName:"{{fontName}}",defaultColor:"{{fontColor}}"},{type:"text",id:"GERdpB",left:111.48148148148151,top:256.25,width:194.07407407407408,height:50,content:"<p style='text-align: center;'>在此输入内容</p>",rotate:0,defaultFontName:"{{fontName}}",defaultColor:"{{fontColor}}"},{type:"text",id:"G5qoho",left:691.1111111111111,top:256.25,width:194.07407407407408,height:50,content:"<p style='text-align: center;'>在此输入内容</p>",rotate:0,defaultFontName:"{{fontName}}",defaultColor:"{{fontColor}}"},{type:"shape",id:"vdZcI6",left:415.18518518518516,top:196.4351851851852,width:169.62962962962962,height:169.62962962962962,viewBox:200,path:"M 100 0 A 50 50 0 1 1 100 200 A 50 50 0 1 1 100 0 Z",fill:"{{backgroundColor}}",fixedRatio:!1,rotate:0}],background:{type:"solid",color:"{{backgroundColor}}"}},{id:"template",elements:[{type:"shape",id:"tYUmrx",left:156.66666666666683,top:149.02777777777771,width:264.4444444444445,height:264.4444444444445,viewBox:200,path:"M 100 0 A 50 50 0 1 1 100 200 A 50 50 0 1 1 100 0 Z",fill:"{{themeColor}}",fixedRatio:!1,rotate:0,text:{content:"<p style='text-align: center;'><span style='color: #ffffff;'><span style='font-size: 60px'>01</span></span></p>",defaultFontName:"{{fontName}}",defaultColor:"{{fontColor}}",align:"middle"}},{type:"shape",id:"0GVHf8",left:342.2222222222223,top:217.17592592592587,width:128.14814814814812,height:128.14814814814812,viewBox:200,path:"M 100 0 A 50 50 0 1 1 100 200 A 50 50 0 1 1 100 0 Z",fill:"{{backgroundColor}}",fixedRatio:!1,rotate:0},{type:"text",id:"BO33Sv",left:378.8888888888889,top:235.24999999999994,width:464.4444444444444,height:92,content:"<p style=''><strong><span style='font-size: 48px'>在此处添加标题</span></strong></p>",rotate:0,defaultFontName:"{{fontName}}",defaultColor:"{{fontColor}}"}],background:{type:"solid",color:"{{backgroundColor}}"}},{id:"template",elements:[{type:"text",id:"Hj7ttp",left:69.35185185185185,top:49.21759259259262,width:420,height:63,lineHeight:1.2,content:"<p style='text-align: center;'><strong><span style='color: #ffffff;'><span style='font-size: 36px'>1.请输入标题</span></span></strong></p>",rotate:0,defaultFontName:"{{fontName}}",defaultColor:"{{fontColor}}",fill:"{{themeColor}}"},{type:"text",id:"FmKMNB",left:69.35185185185185,top:129.28240740740745,width:420,height:384,content:"<p style='text-align: center;'><span style='font-size: 24px'>在此处输入内容</span></p><p style='text-align: center;'><span style='font-size: 24px'>在此处输入内容</span></p><p style='text-align: center;'><span style='font-size: 24px'>在此处输入内容</span></p><p style='text-align: center;'><span style='font-size: 24px'>在此处输入内容</span></p><p style='text-align: center;'><span style='font-size: 24px'>在此处输入内容</span></p><p style='text-align: center;'><span style='font-size: 24px'>在此处输入内容</span></p><p style='text-align: center;'><span style='font-size: 24px'>在此处输入内容</span></p><p style='text-align: center;'><span style='font-size: 24px'>在此处输入内容</span></p><p style='text-align: center;'><span style='font-size: 24px'>在此处输入内容</span></p>",rotate:0,defaultFontName:"{{fontName}}",defaultColor:"{{fontColor}}",fill:"{{subColor}}"},{type:"text",id:"rI7ZeO",left:510.64814814814815,top:49.21759259259262,width:420,height:63,lineHeight:1.2,content:"<p style='text-align: center;'><strong><span style='color: #ffffff;'><span style='font-size: 36px'>2.请输入标题</span></span></strong></p>",rotate:0,defaultFontName:"{{fontName}}",defaultColor:"{{fontColor}}",fill:"{{themeColor}}"},{type:"text",id:"KspwGc",left:510.64814814814815,top:129.28240740740745,width:420,height:384,content:"<p style='text-align: center;'><span style='font-size: 24px'>在此处输入内容</span></p><p style='text-align: center;'><span style='font-size: 24px'>在此处输入内容</span></p><p style='text-align: center;'><span style='font-size: 24px'>在此处输入内容</span></p><p style='text-align: center;'><span style='font-size: 24px'>在此处输入内容</span></p><p style='text-align: center;'><span style='font-size: 24px'>在此处输入内容</span></p><p style='text-align: center;'><span style='font-size: 24px'>在此处输入内容</span></p><p style='text-align: center;'><span style='font-size: 24px'>在此处输入内容</span></p><p style='text-align: center;'><span style='font-size: 24px'>在此处输入内容</span></p><p style='text-align: center;'><span style='font-size: 24px'>在此处输入内容</span></p>",rotate:0,defaultFontName:"{{fontName}}",defaultColor:"{{fontColor}}",fill:"{{subColor}}"}],background:{type:"solid",color:"{{backgroundColor}}"}},{id:"template",elements:[{type:"text",id:"Rx63Jo",left:69.35185185185179,top:51.71759259259262,width:420,height:58,lineHeight:1.2,content:"<p style='text-align: center;'><strong><span style='color: #ffffff;'><span style='font-size: 32px'>1.请输入标题</span></span></strong></p>",rotate:0,defaultFontName:"{{fontName}}",defaultColor:"{{fontColor}}",fill:"{{themeColor}}"},{type:"text",id:"ulyuzE",left:69.35185185185179,top:131.78240740740745,width:420,height:129,content:"<p style='text-align: center;'><span style='font-size: 22px'>在此处输入内容</span></p><p style='text-align: center;'><span style='font-size: 22px'>在此处输入内容</span></p><p style='text-align: center;'><span style='font-size: 22px'>在此处输入内容</span></p>",rotate:0,defaultFontName:"{{fontName}}",defaultColor:"{{fontColor}}",fill:"{{subColor}}"},{type:"text",id:"kr35Ca",left:510.6481481481481,top:51.71759259259262,width:420,height:58,lineHeight:1.2,content:"<p style='text-align: center;'><strong><span style='color: #ffffff;'><span style='font-size: 32px'>2.请输入标题</span></span></strong></p>",rotate:0,defaultFontName:"{{fontName}}",defaultColor:"{{fontColor}}",fill:"{{themeColor}}"},{type:"text",id:"BNQSpC",left:510.6481481481481,top:131.78240740740745,width:420,height:129,content:"<p style='text-align: center;'><span style='font-size: 22px'>在此处输入内容</span></p><p style='text-align: center;'><span style='font-size: 22px'>在此处输入内容</span></p><p style='text-align: center;'><span style='font-size: 22px'>在此处输入内容</span></p>",rotate:0,defaultFontName:"{{fontName}}",defaultColor:"{{fontColor}}",fill:"{{subColor}}"},{type:"text",id:"Vr38Nu",left:69.35185185185185,top:301.71759259259255,width:420,height:58,lineHeight:1.2,content:"<p style='text-align: center;'><strong><span style='color: #ffffff;'><span style='font-size: 32px'>3.请输入标题</span></span></strong></p>",rotate:0,defaultFontName:"{{fontName}}",defaultColor:"{{fontColor}}",fill:"{{themeColor}}"},{type:"text",id:"IwKRSu",left:69.35185185185185,top:381.7824074074074,width:420,height:129,content:"<p style='text-align: center;'><span style='font-size: 22px'>在此处输入内容</span></p><p style='text-align: center;'><span style='font-size: 22px'>在此处输入内容</span></p><p style='text-align: center;'><span style='font-size: 22px'>在此处输入内容</span></p>",rotate:0,defaultFontName:"{{fontName}}",defaultColor:"{{fontColor}}",fill:"{{subColor}}"},{type:"text",id:"0Opr1v",left:510.64814814814815,top:301.71759259259255,width:420,height:58,lineHeight:1.2,content:"<p style='text-align: center;'><strong><span style='color: #ffffff;'><span style='font-size: 32px'>4.请输入标题</span></span></strong></p>",rotate:0,defaultFontName:"{{fontName}}",defaultColor:"{{fontColor}}",fill:"{{themeColor}}"},{type:"text",id:"4L9Uzz",left:510.64814814814815,top:381.7824074074074,width:420,height:129,content:"<p style='text-align: center;'><span style='font-size: 22px'>在此处输入内容</span></p><p style='text-align: center;'><span style='font-size: 22px'>在此处输入内容</span></p><p style='text-align: center;'><span style='font-size: 22px'>在此处输入内容</span></p>",rotate:0,defaultFontName:"{{fontName}}",defaultColor:"{{fontColor}}",fill:"{{subColor}}"}],background:{type:"solid",color:"{{backgroundColor}}"}},{id:"template",elements:[{type:"text",id:"GdEGxg",left:134.53703703703704,top:127.25,width:152.77777777777777,height:308,lineHeight:1.8,content:"<p style='text-align: center;'><strong><span style='color: #ffffff;'><span style='font-size: 40px'>请在此处输入标题</span></span></strong></p>",rotate:0,defaultFontName:"{{fontName}}",defaultColor:"{{fontColor}}",wordSpace:8,fill:"{{themeColor}}"},{type:"text",id:"y5sAfw",left:332.8703703703704,top:127.25,width:532.5925925925926,height:50,content:"<blockquote><p style=''>请在此处输入内容1</p></blockquote>",rotate:0,defaultFontName:"{{fontName}}",defaultColor:"{{fontColor}}",fill:"{{subColor}}"},{type:"text",id:"VeuocM",left:332.8703703703704,top:212.0648148148148,width:532.5925925925926,height:50,content:"<blockquote><p style=''>请在此处输入内容2</p></blockquote>",rotate:0,defaultFontName:"{{fontName}}",defaultColor:"{{fontColor}}",fill:"{{subColor}}"},{type:"text",id:"RyFWQe",left:332.8703703703704,top:296.8796296296296,width:532.5925925925926,height:50,content:"<blockquote><p style=''>请在此处输入内容3</p></blockquote>",rotate:0,defaultFontName:"{{fontName}}",defaultColor:"{{fontColor}}",fill:"{{subColor}}"},{type:"text",id:"Q56viI",left:332.8703703703704,top:381.69444444444446,width:532.5925925925926,height:50,content:"<blockquote><p style=''>请在此处输入内容4</p></blockquote>",rotate:0,defaultFontName:"{{fontName}}",defaultColor:"{{fontColor}}",fill:"{{subColor}}"}],background:{type:"solid",color:"{{backgroundColor}}"}},{id:"template",elements:[{type:"shape",id:"SUWirT",left:73.8888888888889,top:64.21296296296302,width:49.629629629629626,height:49.629629629629626,viewBox:200,path:"M 100 0 A 50 50 0 1 1 100 200 A 50 50 0 1 1 100 0 Z",fill:"{{themeColor}}",fixedRatio:!1,rotate:0,text:{content:"<p style='text-align: center;'><span style='color: #ffffff;'>1</span></p>",defaultFontName:"{{fontName}}",defaultColor:"{{fontColor}}",align:"middle"}},{type:"text",id:"YjzN1M",left:148.70370370370372,top:64.21296296296302,width:323.7037037037037,height:120,content:"<p style=''>在此输入内容</p><p style=''>在此输入内容</p><p style=''>在此输入内容</p>",rotate:0,defaultFontName:"{{fontName}}",defaultColor:"{{fontColor}}",fill:"{{subColor}}"},{type:"shape",id:"fS09I7",left:527.5925925925926,top:64.21296296296302,width:49.629629629629626,height:49.629629629629626,viewBox:200,path:"M 100 0 A 50 50 0 1 1 100 200 A 50 50 0 1 1 100 0 Z",fill:"{{themeColor}}",fixedRatio:!1,rotate:0,text:{content:"<p style='text-align: center;'><span style='color: #ffffff;'>2</span></p>",defaultFontName:"{{fontName}}",defaultColor:"{{fontColor}}",align:"middle"}},{type:"text",id:"qCnfB1",left:602.4074074074074,top:64.21296296296302,width:323.7037037037037,height:120,content:"<p style=''>在此输入内容</p><p style=''>在此输入内容</p><p style=''>在此输入内容</p>",rotate:0,defaultFontName:"{{fontName}}",defaultColor:"{{fontColor}}",fill:"{{subColor}}"},{type:"shape",id:"difAAT",left:73.8888888888889,top:221.25000000000003,width:49.629629629629626,height:49.629629629629626,viewBox:200,path:"M 100 0 A 50 50 0 1 1 100 200 A 50 50 0 1 1 100 0 Z",fill:"{{themeColor}}",fixedRatio:!1,rotate:0,text:{content:"<p style='text-align: center;'><span style='color: #ffffff;'>3</span></p>",defaultFontName:"{{fontName}}",defaultColor:"{{fontColor}}",align:"middle"}},{type:"text",id:"EUlvMo",left:148.70370370370372,top:221.25000000000003,width:323.7037037037037,height:120,content:"<p style=''>在此输入内容</p><p style=''>在此输入内容</p><p style=''>在此输入内容</p>",rotate:0,defaultFontName:"{{fontName}}",defaultColor:"{{fontColor}}",fill:"{{subColor}}"},{type:"shape",id:"US_9jB",left:527.5925925925926,top:221.25000000000003,width:49.629629629629626,height:49.629629629629626,viewBox:200,path:"M 100 0 A 50 50 0 1 1 100 200 A 50 50 0 1 1 100 0 Z",fill:"{{themeColor}}",fixedRatio:!1,rotate:0,text:{content:"<p style='text-align: center;'><span style='color: #ffffff;'>4</span></p>",defaultFontName:"{{fontName}}",defaultColor:"{{fontColor}}",align:"middle"}},{type:"text",id:"243MnQ",left:602.4074074074074,top:221.25000000000003,width:323.7037037037037,height:120,content:"<p style=''>在此输入内容</p><p style=''>在此输入内容</p><p style=''>在此输入内容</p>",rotate:0,defaultFontName:"{{fontName}}",defaultColor:"{{fontColor}}",fill:"{{subColor}}"},{type:"shape",id:"Y_KUj0",left:73.8888888888889,top:378.287037037037,width:49.629629629629626,height:49.629629629629626,viewBox:200,path:"M 100 0 A 50 50 0 1 1 100 200 A 50 50 0 1 1 100 0 Z",fill:"{{themeColor}}",fixedRatio:!1,rotate:0,text:{content:"<p style='text-align: center;'><span style='color: #ffffff;'>5</span></p>",defaultFontName:"{{fontName}}",defaultColor:"{{fontColor}}",align:"middle"}},{type:"text",id:"9GglMe",left:148.70370370370372,top:378.287037037037,width:323.7037037037037,height:120,content:"<p style=''>在此输入内容</p><p style=''>在此输入内容</p><p style=''>在此输入内容</p>",rotate:0,defaultFontName:"{{fontName}}",defaultColor:"{{fontColor}}",fill:"{{subColor}}"},{type:"shape",id:"eSInje",left:527.5925925925926,top:378.287037037037,width:49.629629629629626,height:49.629629629629626,viewBox:200,path:"M 100 0 A 50 50 0 1 1 100 200 A 50 50 0 1 1 100 0 Z",fill:"{{themeColor}}",fixedRatio:!1,rotate:0,text:{content:"<p style='text-align: center;'><span style='color: #ffffff;'>6</span></p>",defaultFontName:"{{fontName}}",defaultColor:"{{fontColor}}",align:"middle"}},{type:"text",id:"0S3yUg",left:602.4074074074074,top:378.287037037037,width:323.7037037037037,height:120,content:"<p style=''>在此输入内容</p><p style=''>在此输入内容</p><p style=''>在此输入内容</p>",rotate:0,defaultFontName:"{{fontName}}",defaultColor:"{{fontColor}}",fill:"{{subColor}}"}],background:{type:"solid",color:"{{backgroundColor}}"}}],Q=Object(y["b"])("slides",{state:function(){return{theme:J,slides:Z,slideIndex:0,viewportRatio:.5625}},getters:{currentSlide:function(e){return e.slides[e.slideIndex]},currentSlideAnimations:function(e){var t=e.slides[e.slideIndex];if(!t)return null;var n=t.animations;if(!n)return null;var o=t.elements,l=o.map((function(e){return e.id}));return n.filter((function(e){return l.includes(e.elId)}))},layouts:function(e){var t=e.theme,n=t.themeColor,o=t.fontColor,l=t.fontName,c=t.backgroundColor,a=U()(o).isDark()?"rgba(230, 230, 230, 0.5)":"rgba(180, 180, 180, 0.5)",r=JSON.stringify(K).replaceAll("{{themeColor}}",n).replaceAll("{{fontColor}}",o).replaceAll("{{fontName}}",l).replaceAll("{{backgroundColor}}",c).replaceAll("{{subColor}}",a);return JSON.parse(r)}},actions:{setTheme:function(e){this.theme=Object(S["a"])(Object(S["a"])({},this.theme),e)},setViewportRatio:function(e){this.viewportRatio=e},setSlides:function(e){this.slides=e},addSlide:function(e){var t,n=Array.isArray(e)?e:[e],o=this.slideIndex+1;(t=this.slides).splice.apply(t,[o,0].concat(Object(W["a"])(n))),this.slideIndex=o},updateSlide:function(e){var t=this.slideIndex;this.slides[t]=Object(S["a"])(Object(S["a"])({},this.slides[t]),e)},deleteSlide:function(e){for(var t=this,n=Array.isArray(e)?e:[e],o=[],l=function(e){var l=t.slides.findIndex((function(t){return t.id===n[e]}));o.push(l)},c=0;c<n.length;c++)l(c);var a=Math.min.apply(Math,o),r=this.slides.length-n.length-1;a>r&&(a=r),this.slideIndex=a,this.slides=this.slides.filter((function(e){return!n.includes(e.id)}))},updateSlideIndex:function(e){this.slideIndex=e},addElement:function(e){var t=Array.isArray(e)?e:[e],n=this.slides[this.slideIndex].elements,o=[].concat(Object(W["a"])(n),Object(W["a"])(t));this.slides[this.slideIndex].elements=o},updateElement:function(e){var t=e.id,n=e.props,o="string"===typeof t?[t]:t,l=this.slideIndex,c=this.slides[l],a=c.elements.map((function(e){return o.includes(e.id)?Object(S["a"])(Object(S["a"])({},e),n):e}));this.slides[l].elements=a},removeElementProps:function(e){var t=e.id,n=e.propName,o="string"===typeof n?[n]:n,l=this.slideIndex,c=this.slides[l],a=c.elements.map((function(e){return e.id===t?Object(Y["omit"])(e,o):e}));this.slides[l].elements=a}}}),$=Object(y["b"])("main",{state:function(){return{activeElementIdList:[],handleElementId:"",activeGroupElementId:"",canvasPercentage:90,canvasScale:1,thumbnailsFocus:!1,editorAreaFocus:!1,disableHotkeys:!1,showGridLines:!1,creatingElement:null,availableFonts:[],toolbarState:"slideDesign",clipingImageElementId:"",richTextAttrs:q,selectedTableCells:[],isScaling:!1,editingShapeElementId:"",selectedSlidesIndex:[]}},getters:{activeElementList:function(e){var t=Q(),n=t.currentSlide;return n&&n.elements?n.elements.filter((function(t){return e.activeElementIdList.includes(t.id)})):[]},handleElement:function(e){var t=Q(),n=t.currentSlide;return n&&n.elements&&n.elements.find((function(t){return e.handleElementId===t.id}))||null}},actions:{setActiveElementIdList:function(e){1===e.length?this.handleElementId=e[0]:this.handleElementId="",this.activeElementIdList=e},setHandleElementId:function(e){this.handleElementId=e},setActiveGroupElementId:function(e){this.activeGroupElementId=e},setCanvasPercentage:function(e){this.canvasPercentage=e},setCanvasScale:function(e){this.canvasScale=e},setThumbnailsFocus:function(e){this.thumbnailsFocus=e},setEditorareaFocus:function(e){this.editorAreaFocus=e},setDisableHotkeysState:function(e){this.disableHotkeys=e},setGridLinesState:function(e){this.showGridLines=e},setCreatingElement:function(e){this.creatingElement=e},setAvailableFonts:function(){this.availableFonts=I.filter((function(e){return X(e.value)}))},setToolbarState:function(e){this.toolbarState=e},setClipingImageElementId:function(e){this.clipingImageElementId=e},setRichtextAttrs:function(e){this.richTextAttrs=e},setSelectedTableCells:function(e){this.selectedTableCells=e},setScalingState:function(e){this.isScaling=e},setEditingShapeElementId:function(e){this.editingShapeElementId=e},updateSelectedSlidesIndex:function(e){this.selectedSlidesIndex=e}}}),ee=n("1da1"),te=(n("96cf"),n("ddb0"),n("d4ec")),ne=n("257e"),oe=n("262e"),le=n("2caf"),ce=n("ade3"),ae=n("4dec"),re=function(e){Object(oe["a"])(n,e);var t=Object(le["a"])(n);function n(){var e;return Object(te["a"])(this,n),e=t.call(this,"SnapshotDatabase"),Object(ce["a"])(Object(ne["a"])(e),"snapshots",void 0),e.version(1).stores({snapshots:"++id"}),e.snapshots=e.table("snapshots"),e}return n}(ae["a"]),ie=new re,ue=Object(y["b"])("snapshot",{state:function(){return{snapshotCursor:-1,snapshotLength:0}},getters:{canUndo:function(e){return e.snapshotCursor>0},canRedo:function(e){return e.snapshotCursor<e.snapshotLength-1}},actions:{setSnapshotCursor:function(e){this.snapshotCursor=e},setSnapshotLength:function(e){this.snapshotLength=e},initSnapshotDatabase:function(){var e=this;return Object(ee["a"])(regeneratorRuntime.mark((function t(){var n,o,l,c;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return n=Q(),t.next=3,ie.snapshots.orderBy("id").toArray();case 3:return o=t.sent,l=o.slice(-1)[0],l&&ie.snapshots.clear(),c={index:n.slideIndex,slides:n.slides},t.next=9,ie.snapshots.add(c);case 9:e.setSnapshotCursor(0),e.setSnapshotLength(1);case 11:case"end":return t.stop()}}),t)})))()},addSnapshot:function(){var e=this;return Object(ee["a"])(regeneratorRuntime.mark((function t(){var n,o,l,c,a,r;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return n=Q(),t.next=3,ie.snapshots.orderBy("id").keys();case 3:return o=t.sent,l=[],e.snapshotCursor>=0&&e.snapshotCursor<o.length-1&&(l=o.slice(e.snapshotCursor+1)),c={index:n.slideIndex,slides:n.slides},t.next=9,ie.snapshots.add(c);case 9:return a=o.length-l.length+1,r=20,a>r&&(l.push(o[0]),a--),a>=2&&ie.snapshots.update(o[a-2],{index:n.slideIndex}),t.next=15,ie.snapshots.bulkDelete(l);case 15:e.setSnapshotCursor(a-1),e.setSnapshotLength(a);case 17:case"end":return t.stop()}}),t)})))()},unDo:function(){var e=this;return Object(ee["a"])(regeneratorRuntime.mark((function t(){var n,o,l,c,a,r,i,u;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(!(e.snapshotCursor<=0)){t.next=2;break}return t.abrupt("return");case 2:return n=Q(),o=$(),l=e.snapshotCursor-1,t.next=7,ie.snapshots.orderBy("id").toArray();case 7:c=t.sent,a=c[l],r=a.index,i=a.slides,u=r>i.length-1?i.length-1:r,n.setSlides(i),n.updateSlideIndex(u),e.setSnapshotCursor(l),o.setActiveElementIdList([]);case 15:case"end":return t.stop()}}),t)})))()},reDo:function(){var e=this;return Object(ee["a"])(regeneratorRuntime.mark((function t(){var n,o,l,c,a,r,i,u;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(!(e.snapshotCursor>=e.snapshotLength-1)){t.next=2;break}return t.abrupt("return");case 2:return n=Q(),o=$(),l=e.snapshotCursor+1,t.next=7,ie.snapshots.orderBy("id").toArray();case 7:c=t.sent,a=c[l],r=a.index,i=a.slides,u=r>i.length-1?i.length-1:r,n.setSlides(i),n.updateSlideIndex(u),e.setSnapshotCursor(l),o.setActiveElementIdList([]);case 15:case"end":return t.stop()}}),t)})))()}}}),de=Object(y["b"])("keyboard",{state:function(){return{ctrlKeyState:!1,shiftKeyState:!1}},getters:{ctrlOrShiftKeyActive:function(e){return e.ctrlKeyState||e.shiftKeyState}},actions:{setCtrlKeyState:function(e){this.ctrlKeyState=e},setShiftKeyState:function(e){this.shiftKeyState=e}}}),se=Object(y["b"])("screen",{state:function(){return{screening:!1}},actions:{setScreening:function(e){this.screening=e}}}),fe={class:"pptist-editor"},pe={class:"layout-content"},me={class:"layout-content-center"};function be(e,t,n,o,l,c){var a=Object(j["resolveComponent"])("EditorHeader"),r=Object(j["resolveComponent"])("Thumbnails"),i=Object(j["resolveComponent"])("CanvasTool"),u=Object(j["resolveComponent"])("Canvas"),d=Object(j["resolveComponent"])("Remark"),s=Object(j["resolveComponent"])("Toolbar");return Object(j["openBlock"])(),Object(j["createElementBlock"])("div",fe,[Object(j["createVNode"])(a,{class:"layout-header"}),Object(j["createElementVNode"])("div",pe,[Object(j["createVNode"])(r,{class:"layout-content-left"}),Object(j["createElementVNode"])("div",me,[Object(j["createVNode"])(i,{class:"center-top"}),Object(j["createVNode"])(u,{class:"center-body",style:Object(j["normalizeStyle"])({height:"calc(100% - ".concat(e.remarkHeight+40,"px)")})},null,8,["style"]),Object(j["createVNode"])(d,{class:"center-bottom",height:e.remarkHeight,"onUpdate:height":t[0]||(t[0]=function(t){return e.remarkHeight=t}),style:Object(j["normalizeStyle"])({height:"".concat(e.remarkHeight,"px")})},null,8,["height","style"])]),Object(j["createVNode"])(s,{class:"layout-content-right"})])])}(function(e){e["UP"]="up",e["DOWN"]="down",e["TOP"]="top",e["BOTTOM"]="bottom"})(x||(x={})),function(e){e["TOP"]="top",e["BOTTOM"]="bottom",e["LEFT"]="left",e["RIGHT"]="right",e["VERTICAL"]="vertical",e["HORIZONTAL"]="horizontal",e["CENTER"]="center"}(C||(C={})),function(e){e["T"]="top",e["B"]="bottom",e["L"]="left",e["R"]="right"}(k||(k={})),function(e){e["LEFT_TOP"]="left-top",e["TOP"]="top",e["RIGHT_TOP"]="right-top",e["LEFT"]="left",e["RIGHT"]="right",e["LEFT_BOTTOM"]="left-bottom",e["BOTTOM"]="bottom",e["RIGHT_BOTTOM"]="right-bottom"}(w||(w={})),function(e){e["START"]="start",e["END"]="end",e["MID"]="mid"}(E||(E={})),function(e){e["C"]="C",e["X"]="X",e["Z"]="Z",e["Y"]="Y",e["A"]="A",e["G"]="G",e["L"]="L",e["F"]="F",e["D"]="D",e["B"]="B",e["MINUS"]="-",e["EQUAL"]="=",e["DIGIT_0"]="0",e["DELETE"]="DELETE",e["UP"]="ARROWUP",e["DOWN"]="ARROWDOWN",e["LEFT"]="ARROWLEFT",e["RIGHT"]="ARROWRIGHT",e["ENTER"]="ENTER",e["SPACE"]=" ",e["TAB"]="TAB",e["BACKSPACE"]="BACKSPACE"}(N||(N={}));var ve=[{type:"通用",children:[{label:"剪切",value:"Ctrl + X"},{label:"复制",value:"Ctrl + C"},{label:"粘贴",value:"Ctrl + V"},{label:"快速复制粘贴",value:"Ctrl + D"},{label:"全选",value:"Ctrl + A"},{label:"撤销",value:"Ctrl + Z"},{label:"恢复",value:"Ctrl + Y"},{label:"删除",value:"Delete / Backspace"},{label:"多选",value:"按住 Ctrl 或 Shift"}]},{type:"幻灯片放映",children:[{label:"开始放映幻灯片",value:"Ctrl + F"},{label:"切换上一页",value:"↑ / ←"},{label:"切换下一页",value:"↓ / → / Enter / Space"},{label:"退出放映",value:"ESC"}]},{type:"幻灯片编辑",children:[{label:"新建幻灯片",value:"Enter"},{label:"缩放画布",value:"Ctrl + 鼠标滚动"},{label:"放大画布",value:"Ctrl + ="},{label:"缩小画布",value:"Ctrl + -"},{label:"缩放画布到合适大小",value:"Ctrl + 0"},{label:"编辑上一页",value:"↑ / ← / 鼠标上滚"},{label:"编辑下一页",value:"↓ / → / 鼠标下滚"}]},{type:"元素操作",children:[{label:"移动",value:"↑ / ← / ↓ / →"},{label:"锁定",value:"Ctrl + L"},{label:"组合",value:"Ctrl + G"},{label:"取消组合",value:"Ctrl + Shift + G"},{label:"置顶层",value:"Alt + F"},{label:"置底层",value:"Alt + B"},{label:"锁定宽高比例",value:"按住 Ctrl 或 Shift"},{label:"创建水平 / 垂直线条",value:"按住 Ctrl 或 Shift"},{label:"切换焦点元素",value:"Tab"},{label:"确认图片裁剪",value:"Enter"}]},{type:"表格编辑",children:[{label:"聚焦到下一个单元格",value:"Tab"},{label:"在上方插入一行",value:"Ctrl + ↑"},{label:"在下方插入一行",value:"Ctrl + ↓"},{label:"在左侧插入一列",value:"Ctrl + ←"},{label:"在右侧插入一列",value:"Ctrl + →"}]},{type:"图表数据编辑",children:[{label:"聚焦到下一行",value:"Enter"}]},{type:"文本编辑",children:[{label:"加粗",value:"Ctrl + B"},{label:"斜体",value:"Ctrl + I"},{label:"下划线",value:"Ctrl + U"},{label:"删除线",value:"Ctrl + D"}]}],he=(n("3b18"),n("f64c")),Oe=(n("a630"),n("3ca3"),function(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:6,t="_0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz",n=t.length,o="",l=0;l<e;l++){var c=Math.floor(Math.random()*n);o+=t[c]}return o}),je=function(e,t){return Object(Y["padStart"])(""+e,t,"0")},ye=(n("1276"),n("b311")),ge=n.n(ye),xe=(n("25f0"),n("3452")),Ce=n.n(xe),ke="pptist",we=function(e){return Ce.a.AES.encrypt(e,ke).toString()},Ee=function(e){var t=Ce.a.AES.decrypt(e,ke);return t.toString(Ce.a.enc.Utf8)},Ne=function(e){return new Promise((function(t,n){var o=document.createElement("button"),l=new ge.a(o,{text:function(){return e},action:function(){return"copy"},container:document.body});l.on("success",(function(e){l.destroy(),t(e)})),l.on("error",(function(e){l.destroy(),n(e)})),document.body.appendChild(o),o.click(),document.body.removeChild(o)}))},Ie=function(){return new Promise((function(e,t){var n;null!==(n=navigator.clipboard)&&void 0!==n&&n.readText?navigator.clipboard.readText().then((function(n){return n||t("剪贴板为空或者不包含文本"),e(n)})):t("浏览器不支持或禁止访问剪贴板,请使用快捷键 Ctrl + V")}))},Ve=function(e){var t;try{t=JSON.parse(Ee(e))}catch(n){t=e}return t},Se=function(e){var t=e.split("\r\n");""===t[t.length-1]&&t.pop();var n=-1,o=[];for(var l in t){if(o[l]=t[l].split("\t"),1===o[l].length)return null;if(-1===n)n=o[l].length;else if(n!==o[l].length)return null}return o},Be=(n("159b"),function(e){var t=e.left,n=e.top,o=e.width,l=e.height,c=e.rotate,a=void 0===c?0:c,r=Math.sqrt(Math.pow(o,2)+Math.pow(l,2))/2,i=180*Math.atan(l/o)/Math.PI,u=(180-a-i)*Math.PI/180,d=(i-a)*Math.PI/180,s=t+o/2,f=n+l/2,p=[s+r*Math.cos(u),s+r*Math.cos(d),s-r*Math.cos(u),s-r*Math.cos(d)],m=[f-r*Math.sin(u),f-r*Math.sin(d),f+r*Math.sin(u),f+r*Math.sin(d)];return{xRange:[Math.min.apply(Math,p),Math.max.apply(Math,p)],yRange:[Math.min.apply(Math,m),Math.max.apply(Math,m)]}}),Le=function(e){var t=Be({left:e.left,top:e.top,width:e.width,height:e.height,rotate:0}),n=t.xRange,o=t.yRange,l=Be({left:e.left,top:e.top,width:e.width,height:e.height,rotate:e.rotate}),c=l.xRange,a=l.yRange;return{offsetX:c[0]-n[0],offsetY:a[0]-o[0]}},Te=function(e){var t,n,o,l;if("line"===e.type)t=e.left,n=e.left+Math.max(e.start[0],e.end[0]),o=e.top,l=e.top+Math.max(e.start[1],e.end[1]);else if("rotate"in e&&e.rotate){var c=e.left,a=e.top,r=e.width,i=e.height,u=e.rotate,d=Be({left:c,top:a,width:r,height:i,rotate:u}),s=d.xRange,f=d.yRange;t=s[0],n=s[1],o=f[0],l=f[1]}else t=e.left,n=e.left+e.width,o=e.top,l=e.top+e.height;return{minX:t,maxX:n,minY:o,maxY:l}},Me=function(e){var t=[],n=[],o=[],l=[];e.forEach((function(e){var c=Te(e),a=c.minX,r=c.maxX,i=c.minY,u=c.maxY;t.push(a),n.push(i),o.push(r),l.push(u)}));var c=Math.min.apply(Math,t),a=Math.max.apply(Math,o),r=Math.min.apply(Math,n),i=Math.max.apply(Math,l);return{minX:c,maxX:a,minY:r,maxY:i}},_e=function(e){var t=[];return e.forEach((function(e){var n=t.findIndex((function(t){return t.value===e.value}));if(-1===n)t.push(e);else{var o=t[n],l=Math.min(o.range[0],e.range[0]),c=Math.max(o.range[1],e.range[1]),a=[l,c],r={value:e.value,range:a};t[n]=r}})),t},De=function(e){var t,n={},o={},l=Object(B["a"])(e);try{for(l.s();!(t=l.n()).done;){var c=t.value,a=c.groupId;a&&!n[a]&&(n[a]=Oe()),o[c.id]=Oe()}}catch(r){l.e(r)}finally{l.f()}return{groupIdMap:n,elIdMap:o}},ze=function(e){var t=U()(e);return[t.setAlpha(.3).toRgbString(),t.setAlpha(.1).toRgbString()]},Ae=function(e){var t=e.start.join(","),n=e.end.join(",");if(e.broken){var o=e.broken.join(",");return"M".concat(t," L").concat(o," L").concat(n)}if(e.curve){var l=e.curve.join(",");return"M".concat(t," Q").concat(l," ").concat(n)}return"M".concat(t," L").concat(n)},Fe=n("53ca"),Re=(n("07ac"),function(e){var t,n=e.replace(/[\n\r]+/g,"<br>"),o=n.split("<br>"),l="",c=Object(B["a"])(o);try{for(c.s();!(t=c.n()).done;){var a=t.value;a&&(l+="<div>".concat(a,"</div>"))}}catch(r){c.e(r)}finally{c.f()}return l}),Pe=function(){var e=ue(),t=Object(Y["debounce"])((function(){e.addSnapshot()}),300,{trailing:!0}),n=Object(Y["throttle"])((function(){e.reDo()}),100,{leading:!0,trailing:!1}),o=Object(Y["throttle"])((function(){e.unDo()}),100,{leading:!0,trailing:!1});return{addHistorySnapshot:t,redo:n,undo:o}},He=(n("cb29"),function(e){return new Promise((function(t){var n=document.createElement("img");n.src=e,n.style.opacity="0",document.body.appendChild(n),n.onload=function(){var e=n.clientWidth,o=n.clientHeight;n.onload=null,n.onerror=null,document.body.removeChild(n),t({width:e,height:o})},n.onerror=function(){n.onload=null,n.onerror=null}}))}),qe=function(e){return new Promise((function(t){var n=new FileReader;n.addEventListener("load",(function(){t(n.result)})),n.readAsDataURL(e)}))},Xe=1e3,We=function(){var e=$(),t=Q(),n=Object(y["c"])(e),o=n.creatingElement,l=Object(y["c"])(t),c=l.theme,a=l.viewportRatio,r=Pe(),i=r.addHistorySnapshot,u=function(n){t.addElement(n),e.setActiveElementIdList([n.id]),o.value&&e.setCreatingElement(null),setTimeout((function(){e.setEditorareaFocus(!0)}),0),i()},d=function(e){He(e).then((function(t){var n=t.width,o=t.height,l=o/n;l<a.value&&n>Xe?(n=Xe,o=n*l):o>Xe*a.value&&(o=Xe*a.value,n=o/l),u({type:"image",id:Oe(),src:e,width:n,height:o,left:(Xe-n)/2,top:(Xe*a.value-o)/2,fixedRatio:!0,rotate:0})}))},s=function(e){u({type:"chart",id:Oe(),chartType:e,left:300,top:81.25,width:400,height:400,rotate:0,themeColor:[c.value.themeColor],gridColor:c.value.fontColor,data:{labels:["类别1","类别2","类别3","类别4","类别5"],legends:["系列1"],series:[[12,19,5,2,18]]}})},f=function(e,t){for(var n={fontname:c.value.fontName,color:c.value.fontColor},o=[],l=0;l<e;l++){for(var r=[],i=0;i<t;i++)r.push({id:Oe(),colspan:1,rowspan:1,text:"",style:n});o.push(r)}var d=100,s=36,f=new Array(t).fill(1/t),p=t*d,m=e*s;u({type:"table",id:Oe(),width:p,height:m,colWidths:f,rotate:0,data:o,left:(Xe-p)/2,top:(Xe*a.value-m)/2,outline:{width:2,style:"solid",color:"#eeece1"},theme:{color:c.value.themeColor,rowHeader:!0,rowFooter:!1,colHeader:!1,colFooter:!1}})},p=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"请输入内容",n=e.left,o=e.top,l=e.width,a=e.height;u({type:"text",id:Oe(),left:n,top:o,width:l,height:a,content:t,rotate:0,defaultFontName:c.value.fontName,defaultColor:c.value.fontColor})},m=function(e,t){var n=e.left,o=e.top,l=e.width,a=e.height,r={type:"shape",id:Oe(),left:n,top:o,width:l,height:a,viewBox:t.viewBox,path:t.path,fill:c.value.themeColor,fixedRatio:!1,rotate:0};t.special&&(r.special=!0),u(r)},b=function(e,t){var n=e.left,o=e.top,l=e.start,a=e.end,r={type:"line",id:Oe(),left:n,top:o,start:l,end:a,points:t.points,color:c.value.themeColor,style:t.style,width:2};t.isBroken&&(r.broken=[(l[0]+a[0])/2,(l[1]+a[1])/2]),t.isCurve&&(r.curve=[(l[0]+a[0])/2,(l[1]+a[1])/2]),u(r)},v=function(e){u({type:"latex",id:Oe(),width:e.w,height:e.h,rotate:0,left:(Xe-e.w)/2,top:(Xe*a.value-e.h)/2,path:e.path,latex:e.latex,color:c.value.fontColor,strokeWidth:2,viewBox:[e.w,e.h],fixedRatio:!0})},h=function(e){u({type:"video",id:Oe(),width:500,height:300,rotate:0,left:(Xe-500)/2,top:(Xe*a.value-300)/2,src:e})},O=function(e){u({type:"audio",id:Oe(),width:50,height:50,rotate:0,left:(Xe-50)/2,top:(Xe*a.value-50)/2,loop:!1,autoplay:!1,fixedRatio:!0,color:c.value.themeColor,src:e})};return{createImageElement:d,createChartElement:s,createTableElement:f,createTextElement:p,createShapeElement:m,createLineElement:b,createLatexElement:v,createVideoElement:h,createAudioElement:O}},Ge=function(){var e=$(),t=Q(),n=Object(y["c"])(t),o=n.currentSlide,l=Pe(),c=l.addHistorySnapshot,a=We(),r=a.createTextElement,i=function(n){var l,a=De(n),r=a.groupIdMap,i=a.elIdMap,u=o.value.elements.map((function(e){return e.id})),d=Object(B["a"])(n);try{for(d.s();!(l=d.n()).done;){var s=l.value,f=u.includes(s.id);s.id=i[s.id],f&&(s.left=s.left+10,s.top=s.top+10),s.groupId&&(s.groupId=r[s.groupId])}}catch(p){d.e(p)}finally{d.f()}t.addElement(n),e.setActiveElementIdList(Object.values(i)),c()},u=function(e){var n=e.map((function(e){var t,n=De(e.elements),o=n.groupIdMap,l=n.elIdMap,c=Object(B["a"])(e.elements);try{for(c.s();!(t=c.n()).done;){var a=t.value;a.id=l[a.id],a.groupId&&(a.groupId=o[a.groupId])}}catch(d){c.e(d)}finally{c.f()}if(e.animations){var r,i=Object(B["a"])(e.animations);try{for(i.s();!(r=i.n()).done;){var u=r.value;u.elId=l[u.elId]}}catch(d){i.e(d)}finally{i.f()}}return Object(S["a"])(Object(S["a"])({},e),{},{id:Oe(8)})}));t.addSlide(n),c()},d=function(e){r({left:0,top:0,width:600,height:50},e)},s=function(e,t){var n=(null===t||void 0===t?void 0:t.onlySlide)||!1,o=(null===t||void 0===t?void 0:t.onlyElements)||!1,l=Ve(e);if("object"===Object(Fe["a"])(l)){var c=l.type,a=l.data;"elements"!==c||n?"slides"!==c||o||u(a):i(a)}else if(!o&&!n){var r=Re(l);d(r)}};return{addSlidesFromClipboard:u,pasteTextClipboardData:s}},Ue=function(){var e=$(),t=Q(),n=Object(y["c"])(e),o=n.selectedSlidesIndex,l=Object(y["c"])(t),c=l.currentSlide,a=l.slides,r=l.theme,i=l.slideIndex,u=Object(j["computed"])((function(){return[].concat(Object(W["a"])(o.value),[i.value])})),d=Object(j["computed"])((function(){return a.value.filter((function(e,t){return u.value.includes(t)}))})),s=Object(j["computed"])((function(){return d.value.map((function(e){return e.id}))})),f=Ge(),p=f.pasteTextClipboardData,m=f.addSlidesFromClipboard,b=Pe(),v=b.addHistorySnapshot,h=function(){var n={id:Oe(8),elements:[],background:{type:"solid",color:r.value.backgroundColor}};t.updateSlideIndex(0),e.setActiveElementIdList([]),t.setSlides([n])},O=function(e){e===N.UP&&i.value>0?t.updateSlideIndex(i.value-1):e===N.DOWN&&i.value<a.value.length-1&&t.updateSlideIndex(i.value+1)},g=function(){var t=we(JSON.stringify({type:"slides",data:d.value}));Ne(t).then((function(){e.setThumbnailsFocus(!0)}))},x=function(){Ie().then((function(e){p(e,{onlySlide:!0})})).catch((function(e){return he["a"].warning(e)}))},C=function(){var n={id:Oe(8),elements:[],background:{type:"solid",color:r.value.backgroundColor}};e.setActiveElementIdList([]),t.addSlide(n),v()},k=function(n){var o,l=De(n.elements),c=l.groupIdMap,a=l.elIdMap,r=Object(B["a"])(n.elements);try{for(r.s();!(o=r.n()).done;){var i=o.value;i.id=a[i.id],i.groupId&&(i.groupId=c[i.groupId])}}catch(d){r.e(d)}finally{r.f()}var u=Object(S["a"])(Object(S["a"])({},n),{},{id:Oe(8)});e.setActiveElementIdList([]),t.addSlide(u),v()},w=function(){var e=JSON.parse(JSON.stringify(c.value));m([e])},E=function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:s.value;a.value.length===n.length?h():t.deleteSlide(n),e.updateSelectedSlidesIndex([]),v()},I=function(){var e=Object(W["a"])(s.value);g(),E(e)},V=function(){var t=Array.from(Array(a.value.length),(function(e,t){return t}));e.setActiveElementIdList([]),e.updateSelectedSlidesIndex(t)};return{resetSlides:h,updateSlideIndex:O,copySlide:g,pasteSlide:x,createSlide:C,createSlideByTemplate:k,copyAndPasteSlide:w,deleteSlide:E,cutSlide:I,selectAllSlide:V}},Ye=function(){var e=$(),t=Q(),n=Object(y["c"])(e),o=n.activeElementIdList,l=Object(y["c"])(t),c=l.currentSlide,a=Pe(),r=a.addHistorySnapshot,i=function(){var n,l=JSON.parse(JSON.stringify(c.value.elements)),a=Object(B["a"])(l);try{for(a.s();!(n=a.n()).done;){var i=n.value;o.value.includes(i.id)&&(i.lock=!0)}}catch(u){a.e(u)}finally{a.f()}t.updateSlide({elements:l}),e.setActiveElementIdList([]),r()},u=function(n){var o=JSON.parse(JSON.stringify(c.value.elements));if(n.groupId){var l,a=[],i=Object(B["a"])(o);try{for(i.s();!(l=i.n()).done;){var u=l.value;u.groupId===n.groupId&&(u.lock=!1,a.push(u.id))}}catch(p){i.e(p)}finally{i.f()}t.updateSlide({elements:o}),e.setActiveElementIdList(a)}else{var d,s=Object(B["a"])(o);try{for(s.s();!(d=s.n()).done;){var f=d.value;if(f.id===n.id){f.lock=!1;break}}}catch(p){s.e(p)}finally{s.f()}t.updateSlide({elements:o}),e.setActiveElementIdList([n.id])}r()};return{lockElement:i,unlockElement:u}},Ze=function(){var e=$(),t=Q(),n=Object(y["c"])(e),o=n.activeElementIdList,l=n.activeGroupElementId,c=Object(y["c"])(t),a=c.currentSlide,r=Pe(),i=r.addHistorySnapshot,u=function(){if(o.value.length){var n=[];n=l.value?a.value.elements.filter((function(e){return e.id!==l.value})):a.value.elements.filter((function(e){return!o.value.includes(e.id)})),e.setActiveElementIdList([]),t.updateSlide({elements:n}),i()}},d=function(){a.value.elements.length&&(e.setActiveElementIdList([]),t.updateSlide({elements:[]}),i())};return{deleteElement:u,deleteAllElements:d}},Je=function(){var e=$(),t=Q(),n=Object(y["c"])(e),o=n.activeElementIdList,l=n.activeElementList,c=n.handleElementId,a=Object(y["c"])(t),r=a.currentSlide,i=Pe(),u=i.addHistorySnapshot,d=Object(j["computed"])((function(){if(l.value.length<2)return!1;var e=l.value[0].groupId;if(!e)return!0;var t=l.value.every((function(t){return(t.groupId&&t.groupId)===e}));return!t})),s=function(){var e;if(l.value.length){var n,c=JSON.parse(JSON.stringify(r.value.elements)),a=Oe(),i=[],d=Object(B["a"])(c);try{for(d.s();!(n=d.n()).done;){var s=n.value;o.value.includes(s.id)&&(s.groupId=a,i.push(s))}}catch(b){d.e(b)}finally{d.f()}var f=c.findIndex((function(e){return e.id===i[i.length-1].id})),p=i.map((function(e){return e.id}));c=c.filter((function(e){return!p.includes(e.id)}));var m=f-i.length+1;(e=c).splice.apply(e,[m,0].concat(i)),t.updateSlide({elements:c}),u()}},f=function(){if(l.value.length){var n=l.value.some((function(e){return e.groupId}));if(n){var a,i=JSON.parse(JSON.stringify(r.value.elements)),d=Object(B["a"])(i);try{for(d.s();!(a=d.n()).done;){var s=a.value;o.value.includes(s.id)&&s.groupId&&delete s.groupId}}catch(p){d.e(p)}finally{d.f()}t.updateSlide({elements:i});var f=c.value?[c.value]:[];e.setActiveElementIdList(f),u()}}};return{canCombine:d,combineElements:s,uncombineElements:f}},Ke=function(){var e=$(),t=Object(y["c"])(e),n=t.activeElementIdList,o=t.activeElementList,l=Ge(),c=l.pasteTextClipboardData,a=Ze(),r=a.deleteElement,i=function(){if(n.value.length){var t=we(JSON.stringify({type:"elements",data:o.value}));Ne(t).then((function(){e.setEditorareaFocus(!0)}))}},u=function(){i(),r()},d=function(){Ie().then((function(e){c(e)})).catch((function(e){return he["a"].warning(e)}))},s=function(){i(),d()};return{copyElement:i,cutElement:u,pasteElement:d,quickCopyElement:s}},Qe=function(){var e=$(),t=Object(y["c"])(Q()),n=t.currentSlide,o=function(){var t=n.value.elements.filter((function(e){return!e.lock})),o=t.map((function(e){return e.id}));e.setActiveElementIdList(o)};return{selectAllElement:o}},$e=function(){var e=Q(),t=Object(y["c"])($()),n=t.activeElementIdList,o=t.activeGroupElementId,l=Object(y["c"])(e),c=l.currentSlide,a=Pe(),r=a.addHistorySnapshot,i=function(t){var l=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,a=[],i=function(e){var n=e.left,o=e.top;switch(t){case N.LEFT:n-=l;break;case N.RIGHT:n+=l;break;case N.UP:o-=l;break;case N.DOWN:o+=l;break;default:break}return Object(S["a"])(Object(S["a"])({},e),{},{left:n,top:o})};a=o.value?c.value.elements.map((function(e){return o.value===e.id?i(e):e})):c.value.elements.map((function(e){return n.value.includes(e.id)?i(e):e})),e.updateSlide({elements:a}),r()};return{moveElement:i}},et=function(){var e=Q(),t=Object(y["c"])(e),n=t.currentSlide,o=Pe(),l=o.addHistorySnapshot,c=function(e,t){return{minLevel:e.findIndex((function(e){return e.id===t[0].id})),maxLevel:e.findIndex((function(e){return e.id===t[t.length-1].id}))}},a=function(e,t){var n=JSON.parse(JSON.stringify(e));if(t.groupId){var o=n.filter((function(e){return e.groupId===t.groupId})),l=c(e,o),a=l.minLevel,r=l.maxLevel;if(r===e.length-1)return;var i=n[r+1],u=n.splice(a,o.length);if(i.groupId){var d=n.filter((function(e){return e.groupId===i.groupId}));n.splice.apply(n,[a+d.length,0].concat(Object(W["a"])(u)))}else n.splice.apply(n,[a+1,0].concat(Object(W["a"])(u)))}else{var s=e.findIndex((function(e){return e.id===t.id}));if(s===e.length-1)return;var f=n[s+1],p=n.splice(s,1)[0];if(f.groupId){var m=n.filter((function(e){return e.groupId===f.groupId}));n.splice(s+m.length,0,p)}else n.splice(s+1,0,p)}return n},r=function(e,t){var n=JSON.parse(JSON.stringify(e));if(t.groupId){var o=n.filter((function(e){return e.groupId===t.groupId})),l=c(e,o),a=l.minLevel;if(0===a)return;var r=n[a-1],i=n.splice(a,o.length);if(r.groupId){var u=n.filter((function(e){return e.groupId===r.groupId}));n.splice.apply(n,[a-u.length,0].concat(Object(W["a"])(i)))}else n.splice.apply(n,[a-1,0].concat(Object(W["a"])(i)))}else{var d=e.findIndex((function(e){return e.id===t.id}));if(0===d)return;var s=n[d-1],f=n.splice(d,1)[0];if(s.groupId){var p=n.filter((function(e){return e.groupId===s.groupId}));n.splice(d-p.length,0,f)}else n.splice(d-1,0,f)}return n},i=function(e,t){var n=JSON.parse(JSON.stringify(e));if(t.groupId){var o=n.filter((function(e){return e.groupId===t.groupId})),l=c(e,o),a=l.minLevel,r=l.maxLevel;if(r===e.length-1)return null;var i=n.splice(a,o.length);n.push.apply(n,Object(W["a"])(i))}else{var u=e.findIndex((function(e){return e.id===t.id}));if(u===e.length-1)return null;n.splice(u,1),n.push(t)}return n},u=function(e,t){var n=JSON.parse(JSON.stringify(e));if(t.groupId){var o=n.filter((function(e){return e.groupId===t.groupId})),l=c(e,o),a=l.minLevel;if(0===a)return;var r=n.splice(a,o.length);n.unshift.apply(n,Object(W["a"])(r))}else{var i=e.findIndex((function(e){return e.id===t.id}));if(0===i)return;n.splice(i,1),n.unshift(t)}return n},d=function(t,o){var c;o===x.UP?c=a(n.value.elements,t):o===x.DOWN?c=r(n.value.elements,t):o===x.TOP?c=i(n.value.elements,t):o===x.BOTTOM&&(c=u(n.value.elements,t)),c&&(e.updateSlide({elements:c}),l())};return{orderElement:d}},tt=function(){var e=document.documentElement;e.requestFullscreen?e.requestFullscreen():e.mozRequestFullScreen?e.mozRequestFullScreen():e.webkitRequestFullScreen&&e.webkitRequestFullScreen()},nt=function(){document.exitFullscreen?document.exitFullscreen():document.mozCancelFullScreen?document.mozCancelFullScreen():document.webkitCancelFullScreen&&document.webkitCancelFullScreen()},ot=function(){return document.mozFullScreen||document.webkitIsFullScreen||document.webkitFullScreen},lt=function(){var e=se(),t=Q(),n=function(){tt(),e.setScreening(!0)},o=function(){t.updateSlideIndex(0),n()},l=function(){e.setScreening(!1),ot()&&nt()};return{enterScreening:n,enterScreeningFromStart:o,exitScreening:l}},ct=function(){var e=$(),t=Object(y["c"])(e),n=t.canvasPercentage,o=function(t){var o=n.value,l=5,c=120,a=60;"+"===t&&o<=c&&(o+=l),"-"===t&&o>=a&&(o-=l),e.setCanvasPercentage(o)},l=function(t){e.setCanvasPercentage(t)};return{scaleCanvas:o,setCanvasPercentage:l}},at=function(){var e=$(),t=de(),n=Object(y["c"])(e),o=n.activeElementIdList,l=n.disableHotkeys,c=n.handleElement,a=n.handleElementId,r=n.editorAreaFocus,i=n.thumbnailsFocus,u=Object(y["c"])(Q()),d=u.currentSlide,s=Object(y["c"])(t),f=s.ctrlKeyState,p=s.shiftKeyState,m=Ue(),b=m.updateSlideIndex,v=m.copySlide,h=m.createSlide,O=m.deleteSlide,g=m.cutSlide,C=m.copyAndPasteSlide,k=m.selectAllSlide,w=Je(),E=w.combineElements,I=w.uncombineElements,V=Ze(),S=V.deleteElement,B=Ye(),L=B.lockElement,T=Ke(),M=T.copyElement,_=T.cutElement,D=T.quickCopyElement,z=Qe(),A=z.selectAllElement,F=$e(),R=F.moveElement,P=et(),H=P.orderElement,q=Pe(),X=q.redo,W=q.undo,G=lt(),U=G.enterScreening,Y=ct(),Z=Y.scaleCanvas,J=Y.setCanvasPercentage,K=function(){o.value.length?M():i.value&&v()},ee=function(){o.value.length?_():i.value&&g()},te=function(){o.value.length?D():i.value&&C()},ne=function(){r.value&&A(),i.value&&k()},oe=function(){r.value&&L()},le=function(){r.value&&E()},ce=function(){r.value&&I()},ae=function(){o.value.length?S():i.value&&O()},re=function(e){o.value.length?R(e):e!==N.UP&&e!==N.DOWN||b(e)},ie=function(e){c.value&&H(c.value,e)},ue=function(){i.value&&h()},se=function(){if(d.value.elements.length)if(a.value){var t=d.value.elements.findIndex((function(e){return e.id===a.value})),n=t>=d.value.elements.length-1?0:t+1,o=d.value.elements[n].id;e.setActiveElementIdList([o])}else{var l=d.value.elements[0];e.setActiveElementIdList([l.id])}},fe=function(e){var n=e.ctrlKey,o=e.shiftKey,c=e.altKey,a=e.metaKey,u=n||a,d=e.key.toUpperCase();if(u&&!f.value&&t.setCtrlKeyState(!0),o&&!p.value&&t.setShiftKeyState(!0),u&&d===N.F&&(e.preventDefault(),U(),t.setCtrlKeyState(!1)),r.value||i.value){if(u&&d===N.C){if(l.value)return;e.preventDefault(),K()}if(u&&d===N.X){if(l.value)return;e.preventDefault(),ee()}if(u&&d===N.D){if(l.value)return;e.preventDefault(),te()}if(u&&d===N.Z){if(l.value)return;e.preventDefault(),W()}if(u&&d===N.Y){if(l.value)return;e.preventDefault(),X()}if(u&&d===N.A){if(l.value)return;e.preventDefault(),ne()}if(u&&d===N.L){if(l.value)return;e.preventDefault(),oe()}if(!o&&u&&d===N.G){if(l.value)return;e.preventDefault(),le()}if(o&&u&&d===N.G){if(l.value)return;e.preventDefault(),ce()}if(c&&d===N.F){if(l.value)return;e.preventDefault(),ie(x.TOP)}if(c&&d===N.B){if(l.value)return;e.preventDefault(),ie(x.BOTTOM)}if(d===N.DELETE||d===N.BACKSPACE){if(l.value)return;e.preventDefault(),ae()}if(d===N.UP){if(l.value)return;e.preventDefault(),re(N.UP)}if(d===N.DOWN){if(l.value)return;e.preventDefault(),re(N.DOWN)}if(d===N.LEFT){if(l.value)return;e.preventDefault(),re(N.LEFT)}if(d===N.RIGHT){if(l.value)return;e.preventDefault(),re(N.RIGHT)}if(d===N.ENTER){if(l.value)return;e.preventDefault(),ue()}if(d===N.MINUS){if(l.value)return;e.preventDefault(),Z("-")}if(d===N.EQUAL){if(l.value)return;e.preventDefault(),Z("+")}if(d===N.DIGIT_0){if(l.value)return;e.preventDefault(),J(90)}if(d===N.TAB){if(l.value)return;e.preventDefault(),se()}}},pe=function(){f.value&&t.setCtrlKeyState(!1),p.value&&t.setShiftKeyState(!1)};Object(j["onMounted"])((function(){document.addEventListener("keydown",fe),document.addEventListener("keyup",pe),window.addEventListener("blur",pe)})),Object(j["onUnmounted"])((function(){document.removeEventListener("keydown",fe),document.removeEventListener("keyup",pe),window.removeEventListener("blur",pe)}))},rt=function(){var e=Object(y["c"])($()),t=e.editorAreaFocus,n=e.thumbnailsFocus,o=e.disableHotkeys,l=Ge(),c=l.pasteTextClipboardData,a=We(),r=a.createImageElement,i=function(e){qe(e).then((function(e){return r(e)}))},u=function(e){if((t.value||n.value)&&!o.value&&e.clipboardData){var l=e.clipboardData.items,a=l[0];if(a){var r,u=Object(B["a"])(l);try{for(u.s();!(r=u.n()).done;){var d=r.value;if("file"===d.kind&&-1!==d.type.indexOf("image")){var s=d.getAsFile();return void(s&&i(s))}}}catch(f){u.e(f)}finally{u.f()}"string"===a.kind&&"text/plain"===a.type&&a.getAsString((function(e){return c(e)}))}}};Object(j["onMounted"])((function(){document.addEventListener("paste",u)})),Object(j["onUnmounted"])((function(){document.removeEventListener("paste",u)}))},it=function(e){return Object(j["pushScopeId"])("data-v-32a5341e"),e=e(),Object(j["popScopeId"])(),e},ut={class:"editor-header"},dt={class:"left"},st={class:"menu-item"},ft=Object(j["createTextVNode"])(),pt=it((function(){return Object(j["createElementVNode"])("span",{class:"text"},"文件",-1)})),mt=Object(j["createTextVNode"])("导出 JSON"),bt=Object(j["createTextVNode"])("导出 PPTX"),vt={class:"menu-item"},ht=Object(j["createTextVNode"])(),Ot=it((function(){return Object(j["createElementVNode"])("span",{class:"text"},"编辑",-1)})),jt=Object(j["createTextVNode"])("撤销"),yt=Object(j["createTextVNode"])("重做"),gt=Object(j["createTextVNode"])("添加页面"),xt=Object(j["createTextVNode"])("删除页面"),Ct=Object(j["createTextVNode"])("重置幻灯片"),kt={class:"menu-item"},wt=Object(j["createTextVNode"])(),Et=it((function(){return Object(j["createElementVNode"])("span",{class:"text"},"演示",-1)})),Nt=Object(j["createTextVNode"])("从头开始"),It=Object(j["createTextVNode"])("从当前页开始"),Vt={class:"menu-item"},St=Object(j["createTextVNode"])(),Bt=it((function(){return Object(j["createElementVNode"])("span",{class:"text"},"帮助",-1)})),Lt=Object(j["createTextVNode"])("意见反馈"),Tt=Object(j["createTextVNode"])("快捷键"),Mt={class:"right"},_t={href:"https://github.com/pipipi-pikachu/PPTist",target:"_blank"},Dt={class:"menu-item"};function zt(e,t,n,o,l,c){var a=Object(j["resolveComponent"])("IconFolderClose"),r=Object(j["resolveComponent"])("MenuItem"),i=Object(j["resolveComponent"])("Menu"),u=Object(j["resolveComponent"])("Dropdown"),d=Object(j["resolveComponent"])("IconEdit"),s=Object(j["resolveComponent"])("IconPpt"),f=Object(j["resolveComponent"])("IconHelpcenter"),p=Object(j["resolveComponent"])("Tooltip"),m=Object(j["resolveComponent"])("IconGithub"),b=Object(j["resolveComponent"])("HotkeyDoc"),v=Object(j["resolveComponent"])("Drawer"),h=Object(j["resolveComponent"])("FullscreenSpin");return Object(j["openBlock"])(),Object(j["createElementBlock"])("div",ut,[Object(j["createElementVNode"])("div",dt,[Object(j["createVNode"])(u,{trigger:["click"]},{overlay:Object(j["withCtx"])((function(){return[Object(j["createVNode"])(i,null,{default:Object(j["withCtx"])((function(){return[Object(j["createVNode"])(r,{onClick:t[0]||(t[0]=function(t){return e.exportJSON()})},{default:Object(j["withCtx"])((function(){return[mt]})),_:1}),Object(j["createVNode"])(r,{onClick:t[1]||(t[1]=function(t){return e.exportPPTX()})},{default:Object(j["withCtx"])((function(){return[bt]})),_:1})]})),_:1})]})),default:Object(j["withCtx"])((function(){return[Object(j["createElementVNode"])("div",st,[Object(j["createVNode"])(a),ft,pt])]})),_:1}),Object(j["createVNode"])(u,{trigger:["click"]},{overlay:Object(j["withCtx"])((function(){return[Object(j["createVNode"])(i,null,{default:Object(j["withCtx"])((function(){return[Object(j["createVNode"])(r,{onClick:t[2]||(t[2]=function(t){return e.undo()})},{default:Object(j["withCtx"])((function(){return[jt]})),_:1}),Object(j["createVNode"])(r,{onClick:t[3]||(t[3]=function(t){return e.redo()})},{default:Object(j["withCtx"])((function(){return[yt]})),_:1}),Object(j["createVNode"])(r,{onClick:t[4]||(t[4]=function(t){return e.createSlide()})},{default:Object(j["withCtx"])((function(){return[gt]})),_:1}),Object(j["createVNode"])(r,{onClick:t[5]||(t[5]=function(t){return e.deleteSlide()})},{default:Object(j["withCtx"])((function(){return[xt]})),_:1}),Object(j["createVNode"])(r,{onClick:t[6]||(t[6]=function(t){return e.toggleGridLines()})},{default:Object(j["withCtx"])((function(){return[Object(j["createTextVNode"])(Object(j["toDisplayString"])(e.showGridLines?"关闭网格线":"打开网格线"),1)]})),_:1}),Object(j["createVNode"])(r,{onClick:t[7]||(t[7]=function(t){return e.resetSlides()})},{default:Object(j["withCtx"])((function(){return[Ct]})),_:1})]})),_:1})]})),default:Object(j["withCtx"])((function(){return[Object(j["createElementVNode"])("div",vt,[Object(j["createVNode"])(d),ht,Ot])]})),_:1}),Object(j["createVNode"])(u,{trigger:["click"]},{overlay:Object(j["withCtx"])((function(){return[Object(j["createVNode"])(i,null,{default:Object(j["withCtx"])((function(){return[Object(j["createVNode"])(r,{onClick:t[8]||(t[8]=function(t){return e.enterScreeningFromStart()})},{default:Object(j["withCtx"])((function(){return[Nt]})),_:1}),Object(j["createVNode"])(r,{onClick:t[9]||(t[9]=function(t){return e.enterScreening()})},{default:Object(j["withCtx"])((function(){return[It]})),_:1})]})),_:1})]})),default:Object(j["withCtx"])((function(){return[Object(j["createElementVNode"])("div",kt,[Object(j["createVNode"])(s),wt,Et])]})),_:1}),Object(j["createVNode"])(u,{trigger:["click"]},{overlay:Object(j["withCtx"])((function(){return[Object(j["createVNode"])(i,null,{default:Object(j["withCtx"])((function(){return[Object(j["createVNode"])(r,{onClick:t[10]||(t[10]=function(t){return e.goIssues()})},{default:Object(j["withCtx"])((function(){return[Lt]})),_:1}),Object(j["createVNode"])(r,{onClick:t[11]||(t[11]=function(t){return e.hotkeyDrawerVisible=!0})},{default:Object(j["withCtx"])((function(){return[Tt]})),_:1})]})),_:1})]})),default:Object(j["withCtx"])((function(){return[Object(j["createElementVNode"])("div",Vt,[Object(j["createVNode"])(f),St,Bt])]})),_:1})]),Object(j["createElementVNode"])("div",Mt,[Object(j["createVNode"])(p,{mouseLeaveDelay:0,title:"幻灯片放映"},{default:Object(j["withCtx"])((function(){return[Object(j["createElementVNode"])("div",{class:"menu-item",onClick:t[12]||(t[12]=function(t){return e.enterScreening()})},[Object(j["createVNode"])(s,{size:"18",fill:"#666",style:{"margin-top":"2px"}})])]})),_:1}),Object(j["createElementVNode"])("a",_t,[Object(j["createElementVNode"])("div",Dt,[Object(j["createVNode"])(m,{size:"18",fill:"#666"})])])]),Object(j["createVNode"])(v,{width:"320",placement:"right",visible:e.hotkeyDrawerVisible,onClose:t[13]||(t[13]=function(t){return e.hotkeyDrawerVisible=!1})},{default:Object(j["withCtx"])((function(){return[Object(j["createVNode"])(b)]})),_:1},8,["visible"]),Object(j["createVNode"])(h,{loading:e.exporting,tip:"正在导出..."},null,8,["loading"])])}var At=n("3835"),Ft=(n("9911"),n("cc71"),n("21a6")),Rt=n("8f74"),Pt=(n("00b4"),["style","script","template"]),Ht=["html","head","body","p","dt","dd","li","option","thead","th","tbody","tr","td","tfoot","colgroup"],qt={li:["ul","ol","menu"],dt:["dl"],dd:["dl"],tbody:["table"],thead:["table"],tfoot:["table"],tr:["table"],td:["table"]},Xt=["!doctype","area","base","br","col","command","embed","hr","img","input","keygen","link","meta","param","source","track","wbr"],Wt=function(e,t){var n=t-e.position;Gt(e,n)},Gt=function(e,t){e.position=e.position+t},Ut=function(e,t){var n=!1;while(!n){var o=e.indexOf("<",t);if(-1===o)return o;var l=e.charAt(o+1);if("/"===l||"!"===l||/[A-Za-z0-9]/.test(l))return o;t=o+1}return-1},Yt=function(e){var t=e.str,n=Ut(t,e.position);if(n!==e.position){-1===n&&(n=t.length);var o=t.slice(e.position,n);Wt(e,n),e.tokens.push({type:"text",content:o})}},Zt=function(e){var t=e.str;Gt(e,4);var n=t.indexOf("--\x3e",e.position),o=n+3;-1===n&&(n=o=t.length);var l=t.slice(e.position,n);Wt(e,o),e.tokens.push({type:"comment",content:l})},Jt=function(e){var t=e.str,n=t.length,o=e.position;while(o<n){var l=t.charAt(o),c=!(/\s/.test(l)||"/"===l||">"===l);if(c)break;o++}var a=o+1;while(a<n){var r=t.charAt(a),i=!(/\s/.test(r)||"/"===r||">"===r);if(!i)break;a++}Wt(e,a);var u=t.slice(o,a);return e.tokens.push({type:"tag",content:u}),u},Kt=function(e){var t=e.str,n=e.tokens,o=e.position,l=null,c=o,a=[],r=t.length;while(o<r){var i=t.charAt(o);if(l){var u=i===l;u&&(l=null),o++}else{var d="/"===i||">"===i;if(d){o!==c&&a.push(t.slice(c,o));break}var s=/\s/.test(i);if(s)o!==c&&a.push(t.slice(c,o)),c=o+1,o++;else{var f="'"===i||'"'===i;f?(l=i,o++):o++}}}Wt(e,o);for(var p="attribute",m=0;m<a.length;m++){var b=a[m],v=-1===b.indexOf("=");if(v){var h=a[m+1];if(h&&Object(Y["startsWith"])(h,"=")){if(h.length>1){var O=b+h;n.push({type:p,content:O}),m+=1;continue}var j=a[m+2];if(m+=1,j){var y=b+"="+j;n.push({type:p,content:y}),m+=1;continue}}}if(Object(Y["endsWith"])(b,"=")){var g=a[m+1];if(g&&-1===g.indexOf("=")){var x=b+g;n.push({type:p,content:x}),m+=1;continue}var C=b.slice(0,-1);n.push({type:p,content:C})}else n.push({type:p,content:b})}},Qt=function(e,t){var n=t.str,o=t.tokens,l=e.toLowerCase(),c=n.length,a=t.position;while(a<c){var r=n.indexOf("</",a);if(-1===r){Yt(t);break}var i={str:n,position:t.position,tokens:[]};Wt(i,r);var u=$t(i);if(l===u.toLowerCase()){if(r!==t.position){var d=t.position;Wt(t,r),o.push({type:"text",content:n.slice(d,r)})}o.push.apply(o,Object(W["a"])(i.tokens)),Wt(t,i.position);break}a=i.position}},$t=function(e){var t=e.str,n=t.charAt(e.position+1),o="/"===n;Gt(e,o?2:1),e.tokens.push({type:"tag-start",close:o});var l=Jt(e);Kt(e);var c=t.charAt(e.position),a="/"===c;return Gt(e,a?2:1),e.tokens.push({type:"tag-end",close:a}),l},en=function(e){var t=e.str,n=t.length;while(e.position<n){var o=e.position;if(Yt(e),e.position===o){var l=Object(Y["startsWith"])(t,"!--",o+1);if(l)Zt(e);else{var c=$t(e),a=c.toLowerCase();Pt.includes(a)&&Qt(c,e)}}}},tn=function(e){var t={str:e,position:0,tokens:[]};return en(t),t.tokens},nn=function(e){var t={tagName:null,children:[]},n={tokens:e,cursor:0,stack:[t]};return cn(n),t.children},on=function(e,t){var n=qt[e];if(n){var o=t.length-1;while(o>=0){var l=t[o].tagName;if(l===e)break;if(n.includes(l))return!0;o--}}return!1},ln=function(e,t){e.splice(t)},cn=function e(t){var n=t.stack,o=t.tokens,l=t.cursor,c=n[n.length-1].children,a=o.length;while(l<a){var r=o[l];if("tag-start"===r.type){var i=o[++l];l++;var u=i.content.toLowerCase();if(r.close){var d=n.length,s=!1;while(--d>-1)if(n[d].tagName===u){s=!0;break}while(l<a){if("tag-end"!==o[l].type)break;l++}if(s){ln(n,d);break}}else{var f=Ht.includes(u),p=f;if(p&&(p=!on(u,n)),p){var m=n.length-1;while(m>0){if(u===n[m].tagName){ln(n,m);var b=m-1;c=n[b].children;break}m-=1}}var v=[],h=void 0;while(l<a){var O=o[l];if("tag-end"===O.type){h=O;break}v.push(O.content),l++}if(!h)break;l++;var j=[],y={type:"element",tagName:i.content,attributes:v,children:j};c.push(y);var g=!(h.close||Xt.includes(u));if(g){n.push({tagName:u,children:j});var x={tokens:o,cursor:l,stack:n};e(x),l=x.cursor}}}else c.push(r),l++}t.cursor=l},an=(n("498a"),function(e,t){var n=e.indexOf(t);return-1===n?[e]:[e.slice(0,n),e.slice(n+t.length)]}),rn=function(e){var t=e.charAt(0),n=e.length-1,o='"'===t||"'"===t;return o&&t===e.charAt(n)?e.slice(1,n):e},un=function(e){return e.map((function(e){var t=an(e.trim(),"="),n=t[0],o="string"===typeof t[1]?rn(t[1]):null;return{key:n,value:o}}))},dn=function e(t){return t.map((function(t){if("element"===t.type){var n=e(t.children),o={type:"element",tagName:t.tagName.toLowerCase(),attributes:un(t.attributes),children:n};return o}var l={type:t.type,content:t.content};return l}))},sn=function(e){var t=tn(e),n=nn(t);return dn(n)},fn=n("d01f"),pn=n("0b89"),mn={1:"Z",2:"M",4:"H",8:"V",16:"L",32:"C",64:"S",128:"Q",256:"T",512:"A"},bn=function(e){var t,n=new fn["a"](e),o=[],l=Object(B["a"])(n.commands);try{for(l.s();!(t=l.n()).done;){var c=t.value,a=mn[c.type];if(2!==c.type&&16!==c.type||o.push({x:c.x,y:c.y,relative:c.relative,type:a}),32===c.type)o.push({x:c.x,y:c.y,curve:{type:"cubic",x1:c.x1,y1:c.y1,x2:c.x2,y2:c.y2},relative:c.relative,type:a});else if(128===c.type)o.push({x:c.x,y:c.y,curve:{type:"quadratic",x1:c.x1,y1:c.y1},relative:c.relative,type:a});else if(512===c.type){var r=o[o.length-1];if(!["M","L","Q","C"].includes(r.type))continue;var i,u=Object(pn["a"])({px:r.x,py:r.y,cx:c.x,cy:c.y,rx:c.rX,ry:c.rY,xAxisRotation:c.xRot,largeArcFlag:c.lArcFlag,sweepFlag:c.sweepFlag}),d=Object(B["a"])(u);try{for(d.s();!(i=d.n()).done;){var s=i.value;o.push({x:s.x,y:s.y,curve:{type:"cubic",x1:s.x1,y1:s.y1,x2:s.x2,y2:s.y2},relative:!1,type:"C"})}}catch(f){d.e(f)}finally{d.f()}}else{if(1!==c.type)continue;o.push({close:!0,type:a})}}}catch(f){l.e(f)}finally{l.f()}return o},vn="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",hn="data:image/svg+xml;base64,",On=function(e){e=e.replace(/\r\n/g,"\n");for(var t="",n=0;n<e.length;n++){var o=e.charCodeAt(n);o<128?t+=String.fromCharCode(o):o>127&&o<2048?(t+=String.fromCharCode(o>>6|192),t+=String.fromCharCode(63&o|128)):(t+=String.fromCharCode(o>>12|224),t+=String.fromCharCode(o>>6&63|128),t+=String.fromCharCode(63&o|128))}return t},jn=function(e){var t,n,o,l,c,a,r,i="",u=0;e=On(e);while(u<e.length)t=e.charCodeAt(u++),n=e.charCodeAt(u++),o=e.charCodeAt(u++),l=t>>2,c=(3&t)<<4|n>>4,a=(15&n)<<2|o>>6,r=63&o,isNaN(n)?a=r=64:isNaN(o)&&(r=64),i=i+vn.charAt(l)+vn.charAt(c)+vn.charAt(a)+vn.charAt(r);return i},yn=function(e){var t=new XMLSerializer,n=t.serializeToString(e);return hn+jn(n)},gn=function(){var e=Object(y["c"])(Q()),t=e.slides,n=Object(j["ref"])(!1),o=function(){var e=new Blob([JSON.stringify(t.value)],{type:""});Object(Ft["saveAs"])(e,"pptist_slides.json")},l=function(e){var t=U()(e),n=t.getAlpha(),o=0===n?"#ffffff":t.setAlpha(1).toHexString();return{alpha:n,color:o}},c=function(e){var t=sn(e),n=[],o=function e(t){var o,c=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},a=Object(B["a"])(t);try{for(a.s();!(o=a.n()).done;){var r=o.value;if("tagName"in r&&["div","ul","li","p"].includes(r.tagName)&&n.length){var i=n[n.length-1];i.options||(i.options={}),i.options.breakLine=!0}var u=Object(S["a"])({},c),d="attributes"in r?r.attributes.find((function(e){return"style"===e.key})):null;if(d&&d.value){var s,f=d.value.split(";"),p=Object(B["a"])(f);try{for(p.s();!(s=p.n()).done;){var m=s.value,b=m.split(": "),v=Object(At["a"])(b,2),h=v[0],O=v[1],j=[Object(Y["trim"])(h),Object(Y["trim"])(O)],y=j[0],g=j[1];y&&g&&(u[y]=g)}}catch(k){p.e(k)}finally{p.f()}}if("tagName"in r&&("em"===r.tagName&&(u["font-style"]="italic"),"strong"===r.tagName&&(u["font-weight"]="bold"),"sup"===r.tagName&&(u["vertical-align"]="super"),"sub"===r.tagName&&(u["vertical-align"]="sub")),"tagName"in r&&"br"===r.tagName)n.push({text:"",options:{breakLine:!0}});else if("content"in r){var x=r.content.replace(/\n/g,"").replace(/&nbsp;/g," "),C={};u["font-size"]&&(C.fontSize=.75*parseInt(u["font-size"])),u["color"]&&(C.color=l(u["color"]).color),u["background-color"]&&(C.highlight=l(u["background-color"]).color),u["text-decoration-line"]&&(-1!==u["text-decoration-line"].indexOf("underline")&&(C.underline={color:C.color||"#000000",style:"sng"}),-1!==u["text-decoration-line"].indexOf("line-through")&&(C.strike="sngStrike")),u["text-decoration"]&&(-1!==u["text-decoration"].indexOf("underline")&&(C.underline={color:C.color||"#000000",style:"sng"}),-1!==u["text-decoration"].indexOf("line-through")&&(C.strike="sngStrike")),u["vertical-align"]&&("super"===u["vertical-align"]&&(C.superscript=!0),"sub"===u["vertical-align"]&&(C.subscript=!0)),u["text-align"]&&(C.align=u["text-align"]),u["font-weight"]&&(C.bold="bold"===u["font-weight"]),u["font-style"]&&(C.italic="italic"===u["font-style"]),u["font-family"]&&(C.fontFace=u["font-family"]),n.push({text:x,options:C})}else"children"in r&&e(r.children,u)}}catch(k){a.e(k)}finally{a.f()}};return o(t),n},a=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{x:1,y:1};return e.map((function(e){if(void 0!==e.close)return{close:!0};if("M"===e.type)return{x:e.x/100*t.x,y:e.y/100*t.y,moveTo:!0};if(e.curve){if("cubic"===e.curve.type)return{x:e.x/100*t.x,y:e.y/100*t.y,curve:{type:"cubic",x1:e.curve.x1/100*t.x,y1:e.curve.y1/100*t.y,x2:e.curve.x2/100*t.x,y2:e.curve.y2/100*t.y}};if("quadratic"===e.curve.type)return{x:e.x/100*t.x,y:e.y/100*t.y,curve:{type:"quadratic",x1:e.curve.x1/100*t.x,y1:e.curve.y1/100*t.y}}}return{x:e.x/100*t.x,y:e.y/100*t.y}}))},r=function(){n.value=!0;var e,o=new Rt["a"],r=Object(B["a"])(t.value);try{for(r.s();!(e=r.n()).done;){var i=e.value,u=o.addSlide();if(i.background){var d=i.background;if("image"===d.type&&d.image)u.background={data:d.image};else if("solid"===d.type&&d.color){var s=l(d.color);u.background={color:s.color,transparency:100*(1-s.alpha)}}else if("gradient"===d.type&&d.gradientColor){var f=Object(At["a"])(d.gradientColor,2),p=f[0],m=f[1],b=U.a.mix(p,m).toHexString(),v=l(b);u.background={color:v.color,transparency:100*(1-v.alpha)}}}if(i.elements){var h,O=Object(B["a"])(i.elements);try{var j=function(){var e=h.value;if("text"===e.type){var n=c(e.content),r={x:e.left/100,y:e.top/100,w:e.width/100,h:e.height/100,fontSize:15,fontFace:"微软雅黑",color:"#000000",valign:"middle"};if(e.rotate&&(r.rotate=e.rotate),e.wordSpace&&(r.charSpacing=.75*e.wordSpace),e.lineHeight&&(r.lineSpacingMultiple=.75*e.lineHeight),e.fill){var i=l(e.fill),d=void 0===e.opacity?1:e.opacity;r.fill={color:i.color,transparency:100*(1-i.alpha*d)}}if(e.defaultColor&&(r.color=l(e.defaultColor).color),e.defaultFontName&&(r.fontFace=e.defaultFontName),e.shadow){var s=l(e.shadow.color);r.shadow={type:"outer",color:s.color.replace("#",""),opacity:s.alpha,blur:.75*e.shadow.blur,offset:(e.shadow.h+e.shadow.v)/2*.75,angle:45}}u.addText(n,r)}else if("image"===e.type){var f={path:e.src,x:e.left/100,y:e.top/100,w:e.width/100,h:e.height/100};if(e.flipH&&(f.flipH=e.flipH),e.flipV&&(f.flipV=e.flipV),e.rotate&&(f.rotate=e.rotate),e.clip&&"ellipse"===e.clip.shape&&(f.rounding=!0),e.link){var p=e.link,m=p.type,b=p.target;if("web"===m)f.hyperlink={url:b};else if("slide"===m){var v=t.value.findIndex((function(e){return e.id===b}));-1!==v&&(f.hyperlink={slide:v+1})}}u.addImage(f)}else if("shape"===e.type){if(e.special){var O=document.querySelector(".thumbnail-list .base-element-".concat(e.id," svg")),j=yn(O),y={data:j,x:e.left/100,y:e.top/100,w:e.width/100,h:e.height/100};if(e.rotate&&(y.rotate=e.rotate),e.link){var g=e.link,x=g.type,C=g.target;if("web"===x)y.hyperlink={url:C};else if("slide"===x){var k=t.value.findIndex((function(e){return e.id===C}));-1!==k&&(y.hyperlink={slide:k+1})}}u.addImage(y)}else{var w,E,N={x:e.width/e.viewBox,y:e.height/e.viewBox},I=a(bn(e.path),N),V=l(e.fill),S=void 0===e.opacity?1:e.opacity,B={x:e.left/100,y:e.top/100,w:e.width/100,h:e.height/100,fill:{color:V.color,transparency:100*(1-V.alpha*S)},points:I};if(e.flipH&&(B.flipH=e.flipH),e.flipV&&(B.flipV=e.flipV),null!==(w=e.outline)&&void 0!==w&&w.width)B.line={color:l((null===(E=e.outline)||void 0===E?void 0:E.color)||"#000000").color,width:.75*e.outline.width,dashType:"solid"===e.outline.style?"solid":"dash"};if(e.shadow){var L=l(e.shadow.color);B.shadow={type:"outer",color:L.color.replace("#",""),opacity:L.alpha,blur:.75*e.shadow.blur,offset:(e.shadow.h+e.shadow.v)/2*.75,angle:45}}if(e.link){var T=e.link,M=T.type,_=T.target;if("web"===M)B.hyperlink={url:_};else if("slide"===M){var D=t.value.findIndex((function(e){return e.id===_}));-1!==D&&(B.hyperlink={slide:D+1})}}u.addShape("custGeom",B)}if(e.text){var z=c(e.text.content),A={x:e.left/100,y:e.top/100,w:e.width/100,h:e.height/100,fontSize:15,fontFace:"微软雅黑",color:"#000000",valign:e.text.align};e.rotate&&(A.rotate=e.rotate),e.text.defaultColor&&(A.color=l(e.text.defaultColor).color),e.text.defaultFontName&&(A.fontFace=e.text.defaultFontName),u.addText(z,A)}}else if("line"===e.type){var F=Ae(e),R=a(bn(F)),P=Te(e),H=P.minX,q=P.maxX,X=P.minY,G=P.maxY,Y={x:e.left/100,y:e.top/100,w:(q-H)/100,h:(G-X)/100,line:{color:l(e.color).color,width:.75*e.width,dashType:"solid"===e.style?"solid":"dash",beginArrowType:e.points[0]?"arrow":"none",endArrowType:e.points[1]?"arrow":"none"},points:R};u.addShape("custGeom",Y)}else if("chart"===e.type){for(var Z=[],J=0;J<e.data.series.length;J++){var K=e.data.series[J];Z.push({name:"系列".concat(J+1),labels:e.data.labels,values:K})}var Q=[];if(10===e.themeColor.length)Q=e.themeColor.map((function(e){return l(e).color}));else if(1===e.themeColor.length)Q=U()(e.themeColor[0]).analogous(10).map((function(e){return l(e.toHexString()).color}));else{var $=e.themeColor.length,ee=U()(e.themeColor[$-1]).analogous(11-$).map((function(e){return e.toHexString()}));Q=[].concat(Object(W["a"])(e.themeColor.slice(0,$-1)),Object(W["a"])(ee)).map((function(e){return l(e).color}))}var te={x:e.left/100,y:e.top/100,w:e.width/100,h:e.height/100,chartColors:"pie"===e.chartType?Q:Q.slice(0,e.data.series.length)};e.fill&&(te.fill=l(e.fill).color),e.legend&&(te.showLegend=!0,te.legendPos="top"===e.legend?"t":"b",te.legendColor=l(e.gridColor||"#000000").color,te.legendFontSize=10.5);var ne,oe=o.ChartType.bar;if("bar"===e.chartType)oe=o.ChartType.bar,te.barDir=null!==(ne=e.options)&&void 0!==ne&&ne.horizontalBars?"bar":"col";else if("line"===e.chartType){var le,ce,ae;null!==(le=e.options)&&void 0!==le&&le.showArea?oe=o.ChartType.area:!1===(null===(ce=e.options)||void 0===ce?void 0:ce.showLine)?(oe=o.ChartType.scatter,Z.unshift({name:"X-Axis",values:Array(e.data.series[0].length).fill(0).map((function(e,t){return t}))}),te.lineSize=0):oe=o.ChartType.line,null!==(ae=e.options)&&void 0!==ae&&ae.lineSmooth&&(te.lineSmooth=!0)}else if("pie"===e.chartType){var re;null!==(re=e.options)&&void 0!==re&&re.donut?(oe=o.ChartType.doughnut,te.holeSize=75):oe=o.ChartType.pie}u.addChart(oe,Z,te)}else if("table"===e.type){for(var ie=[],ue=0;ue<e.data.length;ue++)for(var de=e.data[ue],se=0;se<de.length;se++){var fe=de[se];if(fe.colspan>1||fe.rowspan>1)for(var pe=ue;pe<ue+fe.rowspan;pe++)for(var me=pe===ue?se+1:se;me<se+fe.colspan;me++)ie.push("".concat(pe,"_").concat(me))}var be=[],ve=e.theme,he=null,Oe=[];ve&&(he=l(ve.color),Oe=ze(ve.color).map((function(e){return l(e)})));for(var je=0;je<e.data.length;je++){for(var ye=e.data[je],ge=[],xe=0;xe<ye.length;xe++){var Ce,ke,we,Ee,Ne,Ie,Ve,Se,Be,Le=ye[xe],Me={colspan:Le.colspan,rowspan:Le.rowspan,bold:(null===(Ce=Le.style)||void 0===Ce?void 0:Ce.bold)||!1,italic:(null===(ke=Le.style)||void 0===ke?void 0:ke.em)||!1,underline:{style:null!==(we=Le.style)&&void 0!==we&&we.underline?"sng":"none"},align:(null===(Ee=Le.style)||void 0===Ee?void 0:Ee.align)||"left",valign:"middle",fontFace:(null===(Ne=Le.style)||void 0===Ne?void 0:Ne.fontname)||"微软雅黑",fontSize:.75*(null!==(Ie=Le.style)&&void 0!==Ie&&Ie.fontsize?parseInt(null===(Ve=Le.style)||void 0===Ve?void 0:Ve.fontsize):14)};if(ve&&he){var _e=void 0;_e=je%2===0?Oe[1]:Oe[0],(ve.rowHeader&&0===je||ve.rowFooter&&je===e.data.length-1||ve.colHeader&&0===xe||ve.colFooter&&xe===ye.length-1)&&(_e=he),Me.fill={color:_e.color,transparency:100*(1-_e.alpha)}}if(null!==(Se=Le.style)&&void 0!==Se&&Se.backcolor){var De=l(Le.style.backcolor);Me.fill={color:De.color,transparency:100*(1-De.alpha)}}null!==(Be=Le.style)&&void 0!==Be&&Be.color&&(Me.color=l(Le.style.color).color),ie.includes("".concat(je,"_").concat(xe))||ge.push({text:Le.text,options:Me})}ge.length&&be.push(ge)}var Fe={x:e.left/100,y:e.top/100,w:e.width/100,h:e.height/100,colW:e.colWidths.map((function(t){return e.width*t/100}))};e.theme&&(Fe.fill={color:"#ffffff"}),e.outline.width&&e.outline.color&&(Fe.border={type:"solid"===e.outline.style?"solid":"dash",pt:.75*e.outline.width,color:l(e.outline.color).color}),u.addTable(be,Fe)}else if("latex"===e.type){var Re=document.querySelector(".thumbnail-list .base-element-".concat(e.id," svg")),Pe=yn(Re),He={data:Pe,x:e.left/100,y:e.top/100,w:e.width/100,h:e.height/100};if(e.link){var qe=e.link,Xe=qe.type,We=qe.target;if("web"===Xe)He.hyperlink={url:We};else if("slide"===Xe){var Ge=t.value.findIndex((function(e){return e.id===We}));-1!==Ge&&(He.hyperlink={slide:Ge+1})}}u.addImage(He)}};for(O.s();!(h=O.n()).done;)j()}catch(y){O.e(y)}finally{O.f()}}}}catch(y){r.e(y)}finally{r.f()}o.writeFile({fileName:"pptist.pptx"}).then((function(){return n.value=!1})).catch((function(){n.value=!1,he["a"].error("导出失败")}))};return{exporting:n,exportJSON:o,exportPPTX:r}},xn={class:"hotkey-doc"},Cn={class:"title"},kn={class:"label"},wn={class:"value"};function En(e,t,n,o,l,c){return Object(j["openBlock"])(),Object(j["createElementBlock"])("div",xn,[(Object(j["openBlock"])(!0),Object(j["createElementBlock"])(j["Fragment"],null,Object(j["renderList"])(e.hotkeys,(function(e){return Object(j["openBlock"])(),Object(j["createElementBlock"])(j["Fragment"],{key:e.type},[Object(j["createElementVNode"])("div",Cn,Object(j["toDisplayString"])(e.type),1),(Object(j["openBlock"])(!0),Object(j["createElementBlock"])(j["Fragment"],null,Object(j["renderList"])(e.children,(function(e){return Object(j["openBlock"])(),Object(j["createElementBlock"])("div",{class:"hotkey-item",key:e.label},[Object(j["createElementVNode"])("div",kn,Object(j["toDisplayString"])(e.label),1),Object(j["createElementVNode"])("div",wn,Object(j["toDisplayString"])(e.value),1)])})),128))],64)})),128))])}var Nn=ve,In=Object(j["defineComponent"])({name:"hotkey-doc",setup:function(){return{hotkeys:Nn}}}),Vn=(n("5353"),n("d959")),Sn=n.n(Vn);const Bn=Sn()(In,[["render",En],["__scopeId","data-v-0418e74e"]]);var Ln=Bn,Tn=Object(j["defineComponent"])({name:"editor-header",components:{HotkeyDoc:Ln},setup:function(){var e=$(),t=Object(y["c"])(e),n=t.showGridLines,o=lt(),l=o.enterScreening,c=o.enterScreeningFromStart,a=Ue(),r=a.createSlide,i=a.deleteSlide,u=a.resetSlides,d=Pe(),s=d.redo,f=d.undo,p=gn(),m=p.exporting,b=p.exportJSON,v=p.exportPPTX,h=function(){e.setGridLinesState(!n.value)},O=Object(j["ref"])(!1),g=function(){window.open("https://github.com/pipipi-pikachu/PPTist/issues")};return{redo:s,undo:f,showGridLines:n,hotkeyDrawerVisible:O,exporting:m,enterScreening:l,enterScreeningFromStart:c,createSlide:r,deleteSlide:i,toggleGridLines:h,resetSlides:u,exportJSON:b,exportPPTX:v,goIssues:g}}});n("35da");const Mn=Sn()(Tn,[["render",zt],["__scopeId","data-v-32a5341e"]]);var _n=Mn,Dn={class:"operates"};function zn(e,t,n,o,l,c){var a=Object(j["resolveComponent"])("ElementCreateSelection"),r=Object(j["resolveComponent"])("AlignmentLine"),i=Object(j["resolveComponent"])("MultiSelectOperate"),u=Object(j["resolveComponent"])("Operate"),d=Object(j["resolveComponent"])("ViewportBackground"),s=Object(j["resolveComponent"])("MouseSelection"),f=Object(j["resolveComponent"])("EditableElement"),p=Object(j["resolveComponent"])("LinkDialog"),m=Object(j["resolveComponent"])("Modal"),b=Object(j["resolveDirective"])("contextmenu"),v=Object(j["resolveDirective"])("click-outside");return Object(j["withDirectives"])((Object(j["openBlock"])(),Object(j["createElementBlock"])("div",{class:"canvas",ref:"canvasRef",onMousewheel:t[3]||(t[3]=function(t){return e.handleMousewheelCanvas(t)}),onMousedown:t[4]||(t[4]=function(t){return e.handleClickBlankArea(t)})},[e.creatingElement?(Object(j["openBlock"])(),Object(j["createBlock"])(a,{key:0,onCreated:t[0]||(t[0]=function(t){return e.insertElementFromCreateSelection(t)})})):Object(j["createCommentVNode"])("",!0),Object(j["createElementVNode"])("div",{class:"viewport-wrapper",style:Object(j["normalizeStyle"])({width:e.viewportStyles.width*e.canvasScale+"px",height:e.viewportStyles.height*e.canvasScale+"px",left:e.viewportStyles.left+"px",top:e.viewportStyles.top+"px"})},[Object(j["createElementVNode"])("div",Dn,[(Object(j["openBlock"])(!0),Object(j["createElementBlock"])(j["Fragment"],null,Object(j["renderList"])(e.alignmentLines,(function(e,t){return Object(j["openBlock"])(),Object(j["createBlock"])(r,{key:t,type:e.type,axis:e.axis,length:e.length},null,8,["type","axis","length"])})),128)),e.activeElementIdList.length>1?(Object(j["openBlock"])(),Object(j["createBlock"])(i,{key:0,elementList:e.elementList,scaleMultiElement:e.scaleMultiElement},null,8,["elementList","scaleMultiElement"])):Object(j["createCommentVNode"])("",!0),(Object(j["openBlock"])(!0),Object(j["createElementBlock"])(j["Fragment"],null,Object(j["renderList"])(e.elementList,(function(t){return Object(j["openBlock"])(),Object(j["createBlock"])(u,{key:t.id,elementInfo:t,isSelected:e.activeElementIdList.includes(t.id),isActive:e.handleElementId===t.id,isActiveGroupElement:e.activeGroupElementId===t.id,isMultiSelect:e.activeElementIdList.length>1,rotateElement:e.rotateElement,scaleElement:e.scaleElement,openLinkDialog:e.openLinkDialog,dragLineElement:e.dragLineElement},null,8,["elementInfo","isSelected","isActive","isActiveGroupElement","isMultiSelect","rotateElement","scaleElement","openLinkDialog","dragLineElement"])})),128)),Object(j["createVNode"])(d)]),Object(j["createElementVNode"])("div",{class:"viewport",ref:"viewportRef",style:Object(j["normalizeStyle"])({transform:"scale(".concat(e.canvasScale,")")})},[e.mouseSelectionState.isShow?(Object(j["openBlock"])(),Object(j["createBlock"])(s,{key:0,top:e.mouseSelectionState.top,left:e.mouseSelectionState.left,width:e.mouseSelectionState.width,height:e.mouseSelectionState.height,quadrant:e.mouseSelectionState.quadrant},null,8,["top","left","width","height","quadrant"])):Object(j["createCommentVNode"])("",!0),(Object(j["openBlock"])(!0),Object(j["createElementBlock"])(j["Fragment"],null,Object(j["renderList"])(e.elementList,(function(t,n){return Object(j["openBlock"])(),Object(j["createBlock"])(f,{key:t.id,elementInfo:t,elementIndex:n+1,isMultiSelect:e.activeElementIdList.length>1,selectElement:e.selectElement,openLinkDialog:e.openLinkDialog},null,8,["elementInfo","elementIndex","isMultiSelect","selectElement","openLinkDialog"])})),128))],4)],4),Object(j["createVNode"])(m,{visible:e.linkDialogVisible,"onUpdate:visible":t[2]||(t[2]=function(t){return e.linkDialogVisible=t}),footer:null,centered:"",width:540,destroyOnClose:""},{default:Object(j["withCtx"])((function(){return[Object(j["createVNode"])(p,{onClose:t[1]||(t[1]=function(t){return e.linkDialogVisible=!1})})]})),_:1},8,["visible"])],544)),[[b,e.contextmenus],[v,e.removeEditorAreaFocus]])}var An=function(){var e=window.getSelection();e&&e.removeAllRanges()},Fn=function(e){var t=Object(j["ref"])(0),n=Object(j["ref"])(0),o=$(),l=Object(y["c"])(o),c=l.canvasPercentage,a=Object(y["c"])(Q()),r=a.viewportRatio,i=function(){if(e.value){var l=e.value.clientWidth,a=e.value.clientHeight;if(a/l>r.value){var i=l*(c.value/100);o.setCanvasScale(i/Xe),t.value=(l-i)/2,n.value=(a-i*r.value)/2}else{var u=a*(c.value/100);o.setCanvasScale(u/(Xe*r.value)),t.value=(l-u/r.value)/2,n.value=(a-u)/2}}};Object(j["watch"])([c,r],i);var u=Object(j["computed"])((function(){return{width:Xe,height:Xe*r.value,left:t.value,top:n.value}})),d=new ResizeObserver(i);return Object(j["onMounted"])((function(){e.value&&d.observe(e.value)})),Object(j["onUnmounted"])((function(){e.value&&d.unobserve(e.value)})),{viewportStyles:u}},Rn=function(e,t){var n=$(),o=Object(y["c"])(n),l=o.canvasScale,c=Object(j["reactive"])({isShow:!1,top:0,left:0,width:0,height:0,quadrant:1}),a=function(o){if(t.value){var a=!0,r=t.value.getBoundingClientRect(),i=5,u=o.pageX,d=o.pageY,s=(u-r.x)/l.value,f=(d-r.y)/l.value;c.isShow=!1,c.quadrant=4,c.top=f,c.left=s,c.width=0,c.height=0,document.onmousemove=function(e){if(a){var t=e.pageX,n=e.pageY,o=(t-u)/l.value,r=(n-d)/l.value,s=Math.abs(o),f=Math.abs(r);if(!(s<i||f<i)){var p=0;o>0&&r>0?p=4:o<0&&r<0?p=1:o>0&&r<0?p=2:o<0&&r>0&&(p=3),c.isShow=!0,c.quadrant=p,c.width=s,c.height=f}}},document.onmouseup=function(){document.onmousemove=null,document.onmouseup=null,a=!1;for(var t=[],o=0;o<e.value.length;o++){var l=e.value[o],r=c.left,i=c.top,u=c.width,d=c.height,s=c.quadrant,f=Te(l),p=f.minX,m=f.maxX,b=f.minY,v=f.maxY,h=!1;4===s?h=p>r&&m<r+u&&b>i&&v<i+d:1===s?h=p>r-u&&m<r-u+u&&b>i-d&&v<i-d+d:2===s?h=p>r&&m<r+u&&b>i-d&&v<i-d+d:3===s&&(h=p>r-u&&m<r-u+u&&b>i&&v<i+d),h&&!l.lock&&t.push(l)}t=t.filter((function(n){if(n.groupId){var o=t.map((function(e){return e.id})),l=e.value.filter((function(e){return e.groupId===n.groupId}));return l.every((function(e){return o.includes(e.id)}))}return!0}));var O=t.map((function(e){return e.id}));n.setActiveElementIdList(O),c.isShow=!1}}};return{mouseSelectionState:c,updateMouseSelection:a}},Pn=function(e){var t=Object(y["c"])($()),n=t.disableHotkeys,o=We(),l=o.createImageElement,c=o.createTextElement,a=function(e){if(e.dataTransfer&&0!==e.dataTransfer.items.length){var t=e.dataTransfer.items[0];if("file"===t.kind&&-1!==t.type.indexOf("image")){var o=t.getAsFile();o&&qe(o).then((function(e){return l(e)}))}else"string"===t.kind&&"text/plain"===t.type&&t.getAsString((function(e){if(!n.value){var t=Re(e);c({left:0,top:0,width:600,height:50},t)}}))}};Object(j["onMounted"])((function(){e.value&&e.value.addEventListener("drop",a),document.ondragleave=function(e){return e.preventDefault()},document.ondrop=function(e){return e.preventDefault()},document.ondragenter=function(e){return e.preventDefault()},document.ondragover=function(e){return e.preventDefault()}})),Object(j["onUnmounted"])((function(){e.value&&e.value.removeEventListener("drop",a),document.ondragleave=null,document.ondrop=null,document.ondragenter=null,document.ondragover=null}))},Hn=function(e,t){var n=Math.atan2(e,t),o=180/Math.PI*n;return o},qn=function(e,t){var n=Q(),o=Object(y["c"])($()),l=o.canvasScale,c=Pe(),a=c.addHistorySnapshot,r=function(o){var c=!0,r=0,i=o.rotate||0,u=o.left,d=o.top,s=o.width,f=o.height,p=u+s/2,m=d+f/2;if(t.value){var b=t.value.getBoundingClientRect();document.onmousemove=function(t){if(c){var n=(t.pageX-b.left)/l.value,a=(t.pageY-b.top)/l.value,i=n-p,u=m-a;r=Hn(i,u);var d=5;Math.abs(r)<=d?r=0:r>0&&Math.abs(r-45)<=d?r-=r-45:r<0&&Math.abs(r+45)<=d?r-=r+45:r>0&&Math.abs(r-90)<=d?r-=r-90:r<0&&Math.abs(r+90)<=d?r-=r+90:r>0&&Math.abs(r-135)<=d?r-=r-135:r<0&&Math.abs(r+135)<=d?r-=r+135:r>0&&Math.abs(r-180)<=d?r-=r-180:r<0&&Math.abs(r+180)<=d&&(r-=r+180),e.value=e.value.map((function(e){return o.id===e.id?Object(S["a"])(Object(S["a"])({},e),{},{rotate:r}):e}))}},document.onmouseup=function(){c=!1,document.onmousemove=null,document.onmouseup=null,i!==r&&(n.updateSlide({elements:e.value}),a())}}};return{rotateElement:r}},Xn={text:"文本",image:"图片",shape:"形状",line:"线条",chart:"图表",table:"表格",video:"视频",audio:"音频"},Wn={text:20,image:20,shape:15,chart:200,table:20,video:250,audio:20},Gn=function(e,t){var n=e.left,o=e.top,l=e.width,c=e.height,a=Math.sqrt(Math.pow(l,2)+Math.pow(c,2))/2,r=180*Math.atan(c/l)/Math.PI,i=(180-t-r)*Math.PI/180,u=(r-t)*Math.PI/180,d=(90-t)*Math.PI/180,s=t*Math.PI/180,f=l/2,p=c/2,m=n+f,b=o+p,v={left:m+a*Math.cos(i),top:b-a*Math.sin(i)},h={left:m+p*Math.cos(d),top:b-p*Math.sin(d)},O={left:m+a*Math.cos(u),top:b-a*Math.sin(u)},j={left:m+f*Math.cos(s),top:b+f*Math.sin(s)},y={left:m-a*Math.cos(i),top:b+a*Math.sin(i)},g={left:m-p*Math.sin(s),top:b+p*Math.cos(s)},x={left:m-a*Math.cos(u),top:b+a*Math.sin(u)},C={left:m-f*Math.cos(s),top:b-f*Math.sin(s)};return{leftTopPoint:v,topPoint:h,rightTopPoint:O,rightPoint:j,rightBottomPoint:y,bottomPoint:g,leftBottomPoint:x,leftPoint:C}},Un=function(e,t){var n,o=(n={},Object(ce["a"])(n,w.RIGHT_BOTTOM,t.leftTopPoint),Object(ce["a"])(n,w.LEFT_BOTTOM,t.rightTopPoint),Object(ce["a"])(n,w.LEFT_TOP,t.rightBottomPoint),Object(ce["a"])(n,w.RIGHT_TOP,t.leftBottomPoint),Object(ce["a"])(n,w.TOP,t.bottomPoint),Object(ce["a"])(n,w.BOTTOM,t.topPoint),Object(ce["a"])(n,w.LEFT,t.rightPoint),Object(ce["a"])(n,w.RIGHT,t.leftPoint),n);return o[e]},Yn=function(e,t){var n=$(),o=Q(),l=Object(y["c"])(n),c=l.activeElementIdList,a=l.activeGroupElementId,r=l.canvasScale,i=Object(y["c"])(o),u=i.viewportRatio,d=Object(y["c"])(de()),s=d.ctrlOrShiftKeyActive,f=Pe(),p=f.addHistorySnapshot,m=function(l,i,d){var f=!0;n.setScalingState(!0);var m,b=i.left,v=i.top,h=i.width,O=i.height,j="rotate"in i&&i.rotate?i.rotate:0,y=Math.PI*j/180,g=s.value||"fixedRatio"in i&&i.fixedRatio,x=h/O,C=l.pageX,k=l.pageY,E=Wn[i.type]||20,N=function(e){return e<E?E:e},I=0,V=0,L=[],T=[];if("rotate"in i&&i.rotate){var M=i.left,_=i.top,D=i.width,z=i.height;m=Gn({left:M,top:_,width:D,height:z},j);var A=Un(d,m);I=A.left,V=A.top}else{var F,R=Xe,P=Xe*u.value,H=i.id===a.value,q=Object(B["a"])(e.value);try{for(q.s();!(F=q.n()).done;){var X=F.value;if((!("rotate"in X)||!X.rotate)&&("line"!==X.type&&(!H||X.id!==i.id)&&(H||!c.value.includes(X.id)))){var G=X.left,U=X.top,Y=X.width,Z=X.height,J=G+Y,K=U+Z,Q={value:U,range:[G,J]},$={value:K,range:[G,J]},ee={value:G,range:[U,K]},te={value:J,range:[U,K]};L.push(Q,$),T.push(ee,te)}}}catch(ue){q.e(ue)}finally{q.f()}var ne={value:0,range:[0,R]},oe={value:P,range:[0,R]},le={value:P/2,range:[0,R]},ce={value:0,range:[0,P]},ae={value:R,range:[0,P]},re={value:R/2,range:[0,P]};L.push(ne,oe,le),T.push(ce,ae,re),L=_e(L),T=_e(T)}var ie=function(e,n){var o=5,l=[],c=!1,a=!1,r={offsetX:0,offsetY:0};if(n||0===n)for(var i=0;i<L.length;i++){var u=L[i],d=u.value,s=u.range,f=Math.min.apply(Math,Object(W["a"])(s).concat([e||0])),p=Math.max.apply(Math,Object(W["a"])(s).concat([e||0]));Math.abs(n-d)<o&&!a&&(r.offsetY=n-d,a=!0,l.push({type:"horizontal",axis:{x:f-50,y:d},length:p-f+100}))}if(e||0===e)for(var m=0;m<T.length;m++){var b=T[m],v=b.value,h=b.range,O=Math.min.apply(Math,Object(W["a"])(h).concat([n||0])),j=Math.max.apply(Math,Object(W["a"])(h).concat([n||0]));Math.abs(e-v)<o&&!c&&(r.offsetX=e-v,c=!0,l.push({type:"vertical",axis:{x:v,y:O-50},length:j-O+100}))}return t.value=l,r};document.onmousemove=function(t){if(f){var n=t.pageX,o=t.pageY,l=n-C,c=o-k,a=h,u=O,s=b,p=v;if(j){var m=(Math.cos(y)*l+Math.sin(y)*c)/r.value,E=(Math.cos(y)*c-Math.sin(y)*l)/r.value;g&&(d!==w.RIGHT_BOTTOM&&d!==w.LEFT_TOP||(E=m/x),d!==w.LEFT_BOTTOM&&d!==w.RIGHT_TOP||(E=-m/x)),d===w.RIGHT_BOTTOM?(a=N(h+m),u=N(O+E)):d===w.LEFT_BOTTOM?(a=N(h-m),u=N(O+E),s=b-(a-h)):d===w.LEFT_TOP?(a=N(h-m),u=N(O-E),s=b-(a-h),p=v-(u-O)):d===w.RIGHT_TOP?(a=N(h+m),u=N(O-E),p=v-(u-O)):d===w.TOP?(u=N(O-E),p=v-(u-O)):d===w.BOTTOM?u=N(O+E):d===w.LEFT?(a=N(h-m),s=b-(a-h)):d===w.RIGHT&&(a=N(h+m));var B=Gn({width:a,height:u,left:s,top:p},j),L=Un(d,B),T=L.left,M=L.top,_=T-I,D=M-V;s-=_,p-=D}else{var z=l/r.value,A=c/r.value;if(g&&(d!==w.RIGHT_BOTTOM&&d!==w.LEFT_TOP||(A=z/x),d!==w.LEFT_BOTTOM&&d!==w.RIGHT_TOP||(A=-z/x)),d===w.RIGHT_BOTTOM){var F=ie(b+h+z,v+O+A),R=F.offsetX,P=F.offsetY;z-=R,A-=P,g&&(P?z=A*x:A=z/x),a=N(h+z),u=N(O+A)}else if(d===w.LEFT_BOTTOM){var H=ie(b+z,v+O+A),q=H.offsetX,X=H.offsetY;z-=q,A-=X,g&&(X?z=-A*x:A=-z/x),a=N(h-z),u=N(O+A),s=b-(a-h)}else if(d===w.LEFT_TOP){var W=ie(b+z,v+A),G=W.offsetX,U=W.offsetY;z-=G,A-=U,g&&(U?z=A*x:A=z/x),a=N(h-z),u=N(O-A),s=b-(a-h),p=v-(u-O)}else if(d===w.RIGHT_TOP){var Y=ie(b+h+z,v+A),Z=Y.offsetX,J=Y.offsetY;z-=Z,A-=J,g&&(J?z=-A*x:A=-z/x),a=N(h+z),u=N(O-A),p=v-(u-O)}else if(d===w.LEFT){var K=ie(b+z,null),Q=K.offsetX;z-=Q,a=N(h-z),s=b-(a-h)}else if(d===w.RIGHT){var $=ie(b+h+z,null),ee=$.offsetX;z-=ee,a=N(h+z)}else if(d===w.TOP){var te=ie(null,v+A),ne=te.offsetY;A-=ne,u=N(O-A),p=v-(u-O)}else if(d===w.BOTTOM){var oe=ie(null,v+O+A),le=oe.offsetY;A-=le,u=N(O+A)}}e.value=e.value.map((function(e){return i.id===e.id?Object(S["a"])(Object(S["a"])({},e),{},{left:s,top:p,width:a,height:u}):e}))}},document.onmouseup=function(l){f=!1,document.onmousemove=null,document.onmouseup=null,t.value=[],C===l.pageX&&k===l.pageY||(o.updateSlide({elements:e.value}),n.setScalingState(!1),p())}},b=function(t,n,l){var a=!0,i=n.minX,u=n.maxX,d=n.minY,f=n.maxY,m=u-i,b=f-d,v=m/b,h=t.pageX,O=t.pageY,j=JSON.parse(JSON.stringify(e.value));document.onmousemove=function(t){if(a){var n=t.pageX,o=t.pageY,p=(n-h)/r.value,y=(o-O)/r.value;s.value&&(l!==w.RIGHT_BOTTOM&&l!==w.LEFT_TOP||(y=p/v),l!==w.LEFT_BOTTOM&&l!==w.RIGHT_TOP||(y=-p/v));var g=i,x=u,C=d,k=f;l===w.RIGHT_BOTTOM?(x=u+p,k=f+y):l===w.LEFT_BOTTOM?(g=i+p,k=f+y):l===w.LEFT_TOP?(g=i+p,C=d+y):l===w.RIGHT_TOP?(x=u+p,C=d+y):l===w.TOP?C=d+y:l===w.BOTTOM?k=f+y:l===w.LEFT?g=i+p:l===w.RIGHT&&(x=u+p);var E=x-g,N=k-C,I=E/m,V=N/b;I<=0&&(I=0),V<=0&&(V=0),e.value=e.value.map((function(e){if(("image"===e.type||"shape"===e.type)&&c.value.includes(e.id)){var t=j.find((function(t){return t.id===e.id}));return Object(S["a"])(Object(S["a"])({},e),{},{width:t.width*I,height:t.height*V,left:g+(t.left-i)*I,top:C+(t.top-d)*V})}return e}))}},document.onmouseup=function(t){a=!1,document.onmousemove=null,document.onmouseup=null,h===t.pageX&&O===t.pageY||(o.updateSlide({elements:e.value}),p())}};return{scaleElement:m,scaleMultiElement:b}},Zn=function(e,t){var n=$(),o=Object(y["c"])(n),l=o.activeElementIdList,c=o.activeGroupElementId,a=o.handleElementId,r=o.editorAreaFocus,i=Object(y["c"])(de()),u=i.ctrlOrShiftKeyActive,d=function(o,i){var d=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];if(r.value||n.setEditorareaFocus(!0),l.value.includes(i.id)){if(u.value){var s=[];if(i.groupId){var f=[];e.value.forEach((function(e){e.groupId===i.groupId&&f.push(e.id)})),s=l.value.filter((function(e){return!f.includes(e)}))}else s=l.value.filter((function(e){return e!==i.id}));s.length>0&&n.setActiveElementIdList(s)}else if(a.value!==i.id)n.setHandleElementId(i.id);else if(c.value!==i.id){var p=o.pageX,m=o.pageY;o.target.onmouseup=function(e){var t=e.pageX,o=e.pageY;p===t&&m===o&&(n.setActiveGroupElementId(i.id),e.target.onmouseup=null)}}}else{var b=[];if(b=u.value?[].concat(Object(W["a"])(l.value),[i.id]):[i.id],i.groupId){var v=[];e.value.forEach((function(e){e.groupId===i.groupId&&v.push(e.id)})),b=[].concat(Object(W["a"])(b),v)}n.setActiveElementIdList(Object(Y["uniq"])(b)),n.setHandleElementId(i.id)}d&&t(o,i)},s=function(){var t=e.value.filter((function(e){return!e.lock})),o=t.map((function(e){return e.id}));n.setActiveElementIdList(o)};return{selectElement:d,selectAllElement:s}},Jn=function(e,t){var n=Q(),o=Object(y["c"])($()),l=o.activeElementIdList,c=o.activeGroupElementId,a=o.canvasScale,r=Object(y["c"])(n),i=r.viewportRatio,u=Pe(),d=u.addHistorySnapshot,s=function(o,r){if(l.value.includes(r.id)){var u,s=!0,f=Xe,p=Xe*i.value,m=5,b=JSON.parse(JSON.stringify(e.value)),v=b.filter((function(e){return l.value.includes(e.id)})),h=r.left,O=r.top,j=r.width,y="height"in r&&r.height?r.height:0,g="rotate"in r&&r.rotate?r.rotate:0,x=o.pageX,C=o.pageY,k=null,w=r.id===c.value,E=[],N=[],I=Object(B["a"])(e.value);try{for(I.s();!(u=I.n()).done;){var V=u.value;if("line"!==V.type&&((!w||V.id!==r.id)&&(w||!l.value.includes(V.id)))){var L=void 0,T=void 0,M=void 0,_=void 0;if("rotate"in V&&V.rotate){var D=Be({left:V.left,top:V.top,width:V.width,height:V.height,rotate:V.rotate}),z=D.xRange,A=D.yRange;L=z[0],T=A[0],M=z[1]-z[0],_=A[1]-A[0]}else L=V.left,T=V.top,M=V.width,_=V.height;var F=L+M,R=T+_,P=T+_/2,H=L+M/2,q={value:T,range:[L,F]},X={value:R,range:[L,F]},G={value:P,range:[L,F]},U={value:L,range:[T,R]},Y={value:F,range:[T,R]},Z={value:H,range:[T,R]};E.push(q,X,G),N.push(U,Y,Z)}}}catch(ne){I.e(ne)}finally{I.f()}var J={value:0,range:[0,f]},K={value:p,range:[0,f]},Q={value:p/2,range:[0,f]},$={value:0,range:[0,p]},ee={value:f,range:[0,p]},te={value:f/2,range:[0,p]};E.push(J,K,Q),N.push($,ee,te),E=_e(E),N=_e(N),document.onmousemove=function(n){var o=n.pageX,c=n.pageY;if(!1!==k&&(k=Math.abs(x-o)<m&&Math.abs(C-c)<m),s&&!k){var i,u,d,f,p=(o-x)/a.value,b=(c-C)/a.value,I=h+p,V=O+b;if(1===l.value.length||w)if(g){var B=Be({left:I,top:V,width:j,height:y,rotate:g}),L=B.xRange,T=B.yRange;i=L[0],u=L[1],d=T[0],f=T[1]}else"line"===r.type?(i=I,u=I+Math.max(r.start[0],r.end[0]),d=V,f=V+Math.max(r.start[1],r.end[1])):(i=I,u=I+j,d=V,f=V+y);else{for(var M=[],_=[],D=[],z=[],A=0;A<v.length;A++){var F=v[A],R=F.left+p,P=F.top+b,H=F.width,q="height"in F&&F.height?F.height:0,X="rotate"in F&&F.rotate?F.rotate:0;if("rotate"in F&&F.rotate){var G=Be({left:R,top:P,width:H,height:q,rotate:X}),U=G.xRange,Y=G.yRange;M.push(U[0]),_.push(Y[0]),D.push(U[1]),z.push(Y[1])}else"line"===F.type?(M.push(R),_.push(P),D.push(R+Math.max(F.start[0],F.end[0])),z.push(P+Math.max(F.start[1],F.end[1]))):(M.push(R),_.push(P),D.push(R+H),z.push(P+q))}i=Math.min.apply(Math,M),u=Math.max.apply(Math,D),d=Math.min.apply(Math,_),f=Math.max.apply(Math,z)}for(var Z=i+(u-i)/2,J=d+(f-d)/2,K=[],Q=!1,$=!1,ee=0;ee<E.length;ee++){var te=E[ee],ne=te.value,oe=te.range,le=Math.min.apply(Math,Object(W["a"])(oe).concat([i,u])),ce=Math.max.apply(Math,Object(W["a"])(oe).concat([i,u]));Math.abs(d-ne)<m&&!$&&(V-=d-ne,$=!0,K.push({type:"horizontal",axis:{x:le-50,y:ne},length:ce-le+100})),Math.abs(f-ne)<m&&!$&&(V-=f-ne,$=!0,K.push({type:"horizontal",axis:{x:le-50,y:ne},length:ce-le+100})),Math.abs(J-ne)<m&&!$&&(V-=J-ne,$=!0,K.push({type:"horizontal",axis:{x:le-50,y:ne},length:ce-le+100}))}for(var ae=0;ae<N.length;ae++){var re=N[ae],ie=re.value,ue=re.range,de=Math.min.apply(Math,Object(W["a"])(ue).concat([d,f])),se=Math.max.apply(Math,Object(W["a"])(ue).concat([d,f]));Math.abs(i-ie)<m&&!Q&&(I-=i-ie,Q=!0,K.push({type:"vertical",axis:{x:ie,y:de-50},length:se-de+100})),Math.abs(u-ie)<m&&!Q&&(I-=u-ie,Q=!0,K.push({type:"vertical",axis:{x:ie,y:de-50},length:se-de+100})),Math.abs(Z-ie)<m&&!Q&&(I-=Z-ie,Q=!0,K.push({type:"vertical",axis:{x:ie,y:de-50},length:se-de+100}))}if(t.value=K,1===l.value.length||w)e.value=e.value.map((function(e){return e.id===r.id?Object(S["a"])(Object(S["a"])({},e),{},{left:I,top:V}):e}));else{var fe=e.value.find((function(e){return e.id===r.id}));if(!fe)return;e.value=e.value.map((function(e){return l.value.includes(e.id)?e.id===r.id?Object(S["a"])(Object(S["a"])({},e),{},{left:I,top:V}):Object(S["a"])(Object(S["a"])({},e),{},{left:e.left+(I-fe.left),top:e.top+(V-fe.top)}):e}))}}},document.onmouseup=function(o){s=!1,document.onmousemove=null,document.onmouseup=null,t.value=[];var l=o.pageX,c=o.pageY;x===l&&C===c||(n.updateSlide({elements:e.value}),d())}}};return{dragElement:s}},Kn=function(e){var t=Q(),n=Object(y["c"])($()),o=n.canvasScale,l=Pe(),c=l.addHistorySnapshot,a=function(n,l,a){for(var r=!0,i=8,u=n.pageX,d=n.pageY,s=[],f=0;f<e.value.length;f++){var p=e.value[f];if("line"!==p.type&&!p.rotate){var m=p.left,b=p.top,v=p.width,h=p.height,O=m+v,j=b+h,y=b+h/2,g=m+v/2,x={x:g,y:b},C={x:g,y:j},k={x:m,y:y},w={x:O,y:y},N={x:m,y:b},I={x:O,y:b},V={x:m,y:j},L={x:O,y:j};s.push(x,C,k,w,N,I,V,L)}}document.onmousemove=function(t){if(r){var n=t.pageX,c=t.pageY,f=(n-u)/o.value,p=(c-d)/o.value,m=l.left+l.start[0],b=l.top+l.start[1],v=l.left+l.end[0],h=l.top+l.end[1],O=l.broken||l.curve||[0,0],j=l.left+O[0],y=l.top+O[1];if(a===E.START){m+=f,b+=p,Math.abs(m-v)<i&&(m=v),Math.abs(b-h)<i&&(b=h);var g,x=Object(B["a"])(s);try{for(x.s();!(g=x.n()).done;){var C=g.value,k=C.x,w=C.y;if(Math.abs(k-m)<i&&Math.abs(w-b)<i){m=k,b=w;break}}}catch(R){x.e(R)}finally{x.f()}}else if(a===E.END){v+=f,h+=p,Math.abs(m-v)<i&&(v=m),Math.abs(b-h)<i&&(h=b);var N,I=Object(B["a"])(s);try{for(I.s();!(N=I.n()).done;){var V=N.value,L=V.x,T=V.y;if(Math.abs(L-v)<i&&Math.abs(T-h)<i){v=L,h=T;break}}}catch(R){I.e(R)}finally{I.f()}}else j+=f,y+=p,Math.abs(j-m)<i&&(j=m),Math.abs(y-b)<i&&(y=b),Math.abs(j-v)<i&&(j=v),Math.abs(y-h)<i&&(y=h),Math.abs(j-(m+v)/2)<i&&Math.abs(y-(b+h)/2)<i&&(j=(m+v)/2,y=(b+h)/2);var M=Math.min(m,v),_=Math.min(b,h),D=Math.max(m,v),z=Math.max(b,h),A=[0,0],F=[D-M,z-_];m>v&&(A[0]=D-M,F[0]=0),b>h&&(A[1]=z-_,F[1]=0),e.value=e.value.map((function(e){if(e.id===l.id){var t=Object(S["a"])(Object(S["a"])({},e),{},{left:M,top:_,start:A,end:F});return a!==E.MID?(l.broken&&(t.broken=[(A[0]+F[0])/2,(A[1]+F[1])/2]),l.curve&&(t.curve=[(A[0]+F[0])/2,(A[1]+F[1])/2])):(l.broken&&(t.broken=[j-M,y-_]),l.curve&&(t.curve=[j-M,y-_])),t}return e}))}},document.onmouseup=function(n){r=!1,document.onmousemove=null,document.onmouseup=null;var o=n.pageX,l=n.pageY;u===o&&d===l||(t.updateSlide({elements:e.value}),c())}};return{dragLineElement:a}},Qn=function(e){var t=$(),n=Object(y["c"])(t),o=n.canvasScale,l=n.creatingElement,c=function(t){var n=t.start,l=t.end;if(e.value){var c=e.value.getBoundingClientRect(),a=Object(At["a"])(n,2),r=a[0],i=a[1],u=Object(At["a"])(l,2),d=u[0],s=u[1],f=Math.min(r,d),p=Math.max(r,d),m=Math.min(i,s),b=Math.max(i,s),v=(f-c.x)/o.value,h=(m-c.y)/o.value,O=(p-f)/o.value,j=(b-m)/o.value;return{left:v,top:h,width:O,height:j}}},a=function(t){var n=t.start,l=t.end;if(e.value){var c=e.value.getBoundingClientRect(),a=Object(At["a"])(n,2),r=a[0],i=a[1],u=Object(At["a"])(l,2),d=u[0],s=u[1],f=Math.min(r,d),p=Math.max(r,d),m=Math.min(i,s),b=Math.max(i,s),v=(f-c.x)/o.value,h=(m-c.y)/o.value,O=(p-f)/o.value,j=(b-m)/o.value,y=[r===f?0:O,i===m?0:j],g=[d===f?0:O,s===m?0:j];return{left:v,top:h,start:y,end:g}}},r=We(),i=r.createTextElement,u=r.createShapeElement,d=r.createLineElement,s=function(e){if(l.value){var n=l.value.type;if("text"===n){var o=c(e);o&&i(o)}else if("shape"===n){var r=c(e);r&&u(r,l.value.data)}else if("line"===n){var s=a(e);s&&d(s,l.value.data)}t.setCreatingElement(null)}};return{insertElementFromCreateSelection:s}},$n=["id"];function eo(e,t,n,o,l,c){return Object(j["openBlock"])(),Object(j["createElementBlock"])("div",{class:"editable-element",ref:"elementRef",id:"editable-element-".concat(e.elementInfo.id),style:Object(j["normalizeStyle"])({zIndex:e.elementIndex})},[(Object(j["openBlock"])(),Object(j["createBlock"])(Object(j["resolveDynamicComponent"])(e.currentElementComponent),{elementInfo:e.elementInfo,selectElement:e.selectElement,contextmenus:e.contextmenus},null,8,["elementInfo","selectElement","contextmenus"]))],12,$n)}var to;n("a9e3");(function(e){e["TEXT"]="text",e["IMAGE"]="image",e["SHAPE"]="shape",e["LINE"]="line",e["CHART"]="chart",e["TABLE"]="table",e["LATEX"]="latex",e["VIDEO"]="video",e["AUDIO"]="audio"})(to||(to={}));var no=function(){var e=Q(),t=Object(y["c"])($()),n=t.activeElementIdList,o=t.activeElementList,l=Object(y["c"])(e),c=l.currentSlide,a=l.viewportRatio,r=Pe(),i=r.addHistorySnapshot,u=function(t){var l,r=Xe,u=Xe*a.value,d=Me(o.value),s=d.minX,f=d.maxX,p=d.minY,m=d.maxY,b=JSON.parse(JSON.stringify(c.value.elements)),v=Object(B["a"])(b);try{for(v.s();!(l=v.n()).done;){var h=l.value;if(n.value.includes(h.id)){if(t===C.CENTER){var O=p+(m-p)/2-u/2,j=s+(f-s)/2-r/2;h.top=h.top-O,h.left=h.left-j}if(t===C.TOP){var y=p-0;h.top=h.top-y}else if(t===C.VERTICAL){var g=p+(m-p)/2-u/2;h.top=h.top-g}else if(t===C.BOTTOM){var x=m-u;h.top=h.top-x}else if(t===C.LEFT){var k=s-0;h.left=h.left-k}else if(t===C.HORIZONTAL){var w=s+(f-s)/2-r/2;h.left=h.left-w}else if(t===C.RIGHT){var E=f-r;h.left=h.left-E}}}}catch(N){v.e(N)}finally{v.f()}e.updateSlide({elements:b}),i()};return{alignElementToCanvas:u}},oo=["src"];function lo(e,t,n,o,l,c){var a=Object(j["resolveComponent"])("ImageClipHandler"),r=Object(j["resolveComponent"])("ImageOutline"),i=Object(j["resolveDirective"])("contextmenu");return Object(j["openBlock"])(),Object(j["createElementBlock"])("div",{class:Object(j["normalizeClass"])(["editable-element-image",{lock:e.elementInfo.lock}]),style:Object(j["normalizeStyle"])({top:e.elementInfo.top+"px",left:e.elementInfo.left+"px",width:e.elementInfo.width+"px",height:e.elementInfo.height+"px"})},[Object(j["createElementVNode"])("div",{class:"rotate-wrapper",style:Object(j["normalizeStyle"])({transform:"rotate(".concat(e.elementInfo.rotate,"deg)")})},[e.isCliping?(Object(j["openBlock"])(),Object(j["createBlock"])(a,{key:0,src:e.elementInfo.src,clipData:e.elementInfo.clip,width:e.elementInfo.width,height:e.elementInfo.height,top:e.elementInfo.top,left:e.elementInfo.left,clipPath:e.clipShape.style,onClip:t[0]||(t[0]=function(t){return e.handleClip(t)})},null,8,["src","clipData","width","height","top","left","clipPath"])):Object(j["withDirectives"])((Object(j["openBlock"])(),Object(j["createElementBlock"])("div",{key:1,class:"element-content",style:Object(j["normalizeStyle"])({filter:e.shadowStyle?"drop-shadow(".concat(e.shadowStyle,")"):"",transform:e.flipStyle}),onMousedown:t[2]||(t[2]=function(t){return e.handleSelectElement(t)})},[Object(j["createVNode"])(r,{elementInfo:e.elementInfo},null,8,["elementInfo"]),Object(j["createElementVNode"])("div",{class:"image-content",style:Object(j["normalizeStyle"])({clipPath:e.clipShape.style})},[Object(j["createElementVNode"])("img",{src:e.elementInfo.src,draggable:!1,style:Object(j["normalizeStyle"])({top:e.imgPosition.top,left:e.imgPosition.left,width:e.imgPosition.width,height:e.imgPosition.height,filter:e.filter}),onDragstart:t[1]||(t[1]=Object(j["withModifiers"])((function(){}),["prevent"])),alt:""},null,44,oo)],4)],36)),[[i,e.contextmenus]])],4)],6)}var co,ao,ro=function(e){var t=Object(j["computed"])((function(){if(e.value){var t=e.value,n=t.h,o=t.v,l=t.blur,c=t.color;return"".concat(n,"px ").concat(o,"px ").concat(l,"px ").concat(c)}return""}));return{shadowStyle:t}},io=function(e,t){var n=Object(j["computed"])((function(){var n="";return e.value&&t.value?n="rotateX(180deg) rotateY(180deg)":t.value?n="rotateX(180deg)":e.value&&(n="rotateY(180deg)"),n}));return{flipStyle:n}};(function(e){e["RECT"]="rect",e["ELLIPSE"]="ellipse",e["POLYGON"]="polygon"})(co||(co={})),function(e){e["RECT"]="rect",e["ROUNDRECT"]="roundRect",e["ELLIPSE"]="ellipse",e["TRIANGLE"]="triangle",e["PENTAGON"]="pentagon",e["RHOMBUS"]="rhombus",e["STAR"]="star"}(ao||(ao={}));var uo={rect:{name:"矩形",type:co.RECT,radius:"0",style:""},rect2:{name:"矩形2",type:co.POLYGON,style:"polygon(0% 0%, 80% 0%, 100% 20%, 100% 100%, 0 100%)",createPath:function(e,t){return"M 0 0 L ".concat(.8*e," 0 L ").concat(e," ").concat(.2*t," L ").concat(e," ").concat(t," L 0 ").concat(t," Z")}},rect3:{name:"矩形3",type:co.POLYGON,style:"polygon(0% 0%, 80% 0%, 100% 20%, 100% 100%, 20% 100%, 0% 80%)",createPath:function(e,t){return"M 0 0 L ".concat(.8*e," 0 L ").concat(e," ").concat(.2*t," L ").concat(e," ").concat(t," L ").concat(.2*e," ").concat(t," L 0 ").concat(.8*t," Z")}},roundRect:{name:"圆角矩形",type:co.RECT,radius:"10%",style:"inset(0 0 0 0 round 10% 10% 10% 10%)"},ellipse:{name:"圆形",type:co.ELLIPSE,style:"ellipse(50% 50% at 50% 50%)"},triangle:{name:"三角形",type:co.POLYGON,style:"polygon(50% 0%, 0% 100%, 100% 100%)",createPath:function(e,t){return"M ".concat(.5*e," 0 L 0 ").concat(t," L ").concat(e," ").concat(t," Z")}},triangle2:{name:"三角形2",type:co.POLYGON,style:"polygon(50% 100%, 0% 0%, 100% 0%)",createPath:function(e,t){return"M ".concat(.5*e," ").concat(t," L 0 0 L ").concat(e," 0 Z")}},triangle3:{name:"三角形3",type:co.POLYGON,style:"polygon(0% 0%, 0% 100%, 100% 100%)",createPath:function(e,t){return"M 0 0 L 0 ".concat(t," L ").concat(e," ").concat(t," Z")}},rhombus:{name:"菱形",type:co.POLYGON,style:"polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%)",createPath:function(e,t){return"M ".concat(.5*e," 0 L ").concat(e," ").concat(.5*t," L ").concat(.5*e," ").concat(t," L 0 ").concat(.5*t," Z")}},hexagon:{name:"六边形",type:co.POLYGON,style:"polygon(20% 0%, 80% 0%, 100% 50%, 80% 100%, 20% 100%, 0% 50%)",createPath:function(e,t){return"M ".concat(.2*e," 0 L ").concat(.8*e," 0 L ").concat(e," ").concat(.5*t," L ").concat(.8*e," ").concat(t," L ").concat(.2*e," ").concat(t," L 0 ").concat(.5*t," Z")}},pentagon:{name:"五边形",type:co.POLYGON,style:"polygon(50% 0%, 100% 38%, 82% 100%, 18% 100%, 0% 38%)",createPath:function(e,t){return"M ".concat(.5*e," 0 L ").concat(e," ").concat(.38*t," L ").concat(.82*e," ").concat(t," L ").concat(.18*e," ").concat(t," L 0 ").concat(.38*t," Z")}},parallelogram:{name:"平行四边形",type:co.POLYGON,style:"polygon(30% 0%, 100% 0%, 70% 100%, 0% 100%)",createPath:function(e,t){return"M ".concat(.3*e," 0 L ").concat(e," 0 L ").concat(.7*e," ").concat(t," L 0 ").concat(t," Z")}},parallelogram2:{name:"平行四边形2",type:co.POLYGON,style:"polygon(30% 100%, 100% 100%, 70% 0%, 0% 0%)",createPath:function(e,t){return"M ".concat(.3*e," ").concat(t," L ").concat(e," ").concat(t," L ").concat(.7*e," 0 L 0 0 Z")}},trapezoid:{name:"梯形",type:co.POLYGON,style:"polygon(25% 0%, 75% 0%, 100% 100%, 0% 100%)",createPath:function(e,t){return"M ".concat(.25*e," 0 L ").concat(.75*e," 0 L ").concat(e," ").concat(t," L 0 ").concat(t," Z")}},trapezoid2:{name:"梯形2",type:co.POLYGON,style:"polygon(0% 0%, 100% 0%, 75% 100%, 25% 100%)",createPath:function(e,t){return"M 0 0 L ".concat(e," 0 L ").concat(.75*e," ").concat(t," L ").concat(.25*e," ").concat(t," Z")}}},so=function(e){var t=Object(j["computed"])((function(){if(!e.value)return uo.rect;var t=e.value.shape||co.RECT;return uo[t]})),n=Object(j["computed"])((function(){if(!e.value)return{top:"0",left:"0",width:"100%",height:"100%"};var t=Object(At["a"])(e.value.range,2),n=t[0],o=t[1],l=(o[0]-n[0])/100,c=(o[1]-n[1])/100,a=n[0]/l,r=n[1]/c;return{left:-a+"%",top:-r+"%",width:100/l+"%",height:100/c+"%"}}));return{clipShape:t,imgPosition:n}},fo=(n("b64b"),function(e){var t=Object(j["computed"])((function(){if(!e.value)return"";for(var t="",n=0,o=Object.keys(e.value);n<o.length;n++){var l=o[n];t+="".concat(l,"(").concat(e.value[l],") ")}return t}));return{filter:t}}),po={class:"image-outline"};function mo(e,t,n,o,l,c){var a=Object(j["resolveComponent"])("ImageRectOutline"),r=Object(j["resolveComponent"])("ImageEllipseOutline"),i=Object(j["resolveComponent"])("ImagePolygonOutline");return Object(j["openBlock"])(),Object(j["createElementBlock"])("div",po,["rect"===e.clipShape.type?(Object(j["openBlock"])(),Object(j["createBlock"])(a,{key:0,width:e.elementInfo.width,height:e.elementInfo.height,radius:e.clipShape.radius,outline:e.elementInfo.outline},null,8,["width","height","radius","outline"])):"ellipse"===e.clipShape.type?(Object(j["openBlock"])(),Object(j["createBlock"])(r,{key:1,width:e.elementInfo.width,height:e.elementInfo.height,outline:e.elementInfo.outline},null,8,["width","height","outline"])):"polygon"===e.clipShape.type?(Object(j["openBlock"])(),Object(j["createBlock"])(i,{key:2,width:e.elementInfo.width,height:e.elementInfo.height,outline:e.elementInfo.outline,createPath:e.clipShape.createPath},null,8,["width","height","outline","createPath"])):Object(j["createCommentVNode"])("",!0)])}var bo=["width","height"],vo=["rx","ry","width","height","stroke","stroke-width","stroke-dasharray"];function ho(e,t,n,o,l,c){return e.outline?(Object(j["openBlock"])(),Object(j["createElementBlock"])("svg",{key:0,class:"image-rect-outline",overflow:"visible",width:e.width,height:e.height},[Object(j["createElementVNode"])("rect",{"vector-effect":"non-scaling-stroke","stroke-linecap":"butt","stroke-miterlimit":"8","stroke-linejoin":"",fill:"transparent",rx:e.radius,ry:e.radius,width:e.width,height:e.height,stroke:e.outlineColor,"stroke-width":e.outlineWidth,"stroke-dasharray":"dashed"===e.outlineStyle?"10 6":"0 0"},null,8,vo)],8,bo)):Object(j["createCommentVNode"])("",!0)}var Oo=function(e){var t=Object(j["computed"])((function(){var t,n;return null!==(t=null===(n=e.value)||void 0===n?void 0:n.width)&&void 0!==t?t:0})),n=Object(j["computed"])((function(){var t;return(null===(t=e.value)||void 0===t?void 0:t.style)||"solid"})),o=Object(j["computed"])((function(){var t;return(null===(t=e.value)||void 0===t?void 0:t.color)||"#d14424"}));return{outlineWidth:t,outlineStyle:n,outlineColor:o}},jo=Object(j["defineComponent"])({name:"image-rect-outline",props:{width:{type:Number,required:!0},height:{type:Number,required:!0},outline:{type:Object},radius:{type:String,default:"0"}},setup:function(e){var t=Oo(Object(j["toRef"])(e,"outline")),n=t.outlineWidth,o=t.outlineStyle,l=t.outlineColor;return{outlineWidth:n,outlineStyle:o,outlineColor:l}}});n("7ae4");const yo=Sn()(jo,[["render",ho],["__scopeId","data-v-48a14431"]]);var go=yo,xo=["width","height"],Co=["cx","cy","rx","ry","stroke","stroke-width","stroke-dasharray"];function ko(e,t,n,o,l,c){return e.outline?(Object(j["openBlock"])(),Object(j["createElementBlock"])("svg",{key:0,class:"image-ellipse-outline",overflow:"visible",width:e.width,height:e.height},[Object(j["createElementVNode"])("ellipse",{"vector-effect":"non-scaling-stroke","stroke-linecap":"butt","stroke-miterlimit":"8","stroke-linejoin":"",fill:"transparent",cx:e.width/2,cy:e.height/2,rx:e.width/2,ry:e.height/2,stroke:e.outlineColor,"stroke-width":e.outlineWidth,"stroke-dasharray":"dashed"===e.outlineStyle?"10 6":"0 0"},null,8,Co)],8,xo)):Object(j["createCommentVNode"])("",!0)}var wo=Object(j["defineComponent"])({name:"image-ellipse-outline",props:{width:{type:Number,required:!0},height:{type:Number,required:!0},outline:{type:Object}},setup:function(e){var t=Oo(Object(j["toRef"])(e,"outline")),n=t.outlineWidth,o=t.outlineStyle,l=t.outlineColor;return{outlineWidth:n,outlineStyle:o,outlineColor:l}}});n("b2b4");const Eo=Sn()(wo,[["render",ko],["__scopeId","data-v-692bbda6"]]);var No=Eo,Io=["width","height"],Vo=["d","stroke","stroke-width","stroke-dasharray"];function So(e,t,n,o,l,c){return e.outline?(Object(j["openBlock"])(),Object(j["createElementBlock"])("svg",{key:0,class:"image-polygon-outline",overflow:"visible",width:e.width,height:e.height},[Object(j["createElementVNode"])("path",{"vector-effect":"non-scaling-stroke","stroke-linecap":"butt","stroke-miterlimit":"8","stroke-linejoin":"",fill:"transparent",d:e.createPath(e.width,e.height),stroke:e.outlineColor,"stroke-width":e.outlineWidth,"stroke-dasharray":"dashed"===e.outlineStyle?"10 6":"0 0"},null,8,Vo)],8,Io)):Object(j["createCommentVNode"])("",!0)}var Bo=Object(j["defineComponent"])({name:"image-polygon-outline",props:{width:{type:Number,required:!0},height:{type:Number,required:!0},outline:{type:Object},createPath:{type:Function,required:!0}},setup:function(e){var t=Oo(Object(j["toRef"])(e,"outline")),n=t.outlineWidth,o=t.outlineStyle,l=t.outlineColor;return{outlineWidth:n,outlineStyle:o,outlineColor:l}}});n("4f7c");const Lo=Sn()(Bo,[["render",So],["__scopeId","data-v-21ca95cc"]]);var To=Lo,Mo=Object(j["defineComponent"])({name:"image-outline",components:{ImageRectOutline:go,ImageEllipseOutline:No,ImagePolygonOutline:To},props:{elementInfo:{type:Object,required:!0}},setup:function(e){var t=Object(j["computed"])((function(){return e.elementInfo.clip})),n=so(t),o=n.clipShape;return{clipShape:o}}});const _o=Sn()(Mo,[["render",mo]]);var Do=_o,zo=function(e){return Object(j["pushScopeId"])("data-v-430c7e6e"),e=e(),Object(j["popScopeId"])(),e},Ao=["src"],Fo=["src"],Ro=["onMousedown"],Po=zo((function(){return Object(j["createElementVNode"])("svg",{width:"16",height:"16",fill:"#fff",stroke:"#333"},[Object(j["createElementVNode"])("path",{"stroke-width":"0.3","shape-rendering":"crispEdges",d:"M 16 0 L 0 0 L 0 16 L 4 16 L 4 4 L 16 4 L 16 0 Z"})],-1)})),Ho=[Po],qo=["onMousedown"],Xo=zo((function(){return Object(j["createElementVNode"])("svg",{width:"16",height:"16",fill:"#fff",stroke:"#333"},[Object(j["createElementVNode"])("path",{"stroke-width":"0.3","shape-rendering":"crispEdges",d:"M 16 0 L 0 0 L 0 4 L 16 4 Z"})],-1)})),Wo=[Xo];function Go(e,t,n,o,l,c){var a=Object(j["resolveDirective"])("click-outside");return Object(j["withDirectives"])((Object(j["openBlock"])(),Object(j["createElementBlock"])("div",{class:"image-clip-handler",style:Object(j["normalizeStyle"])(e.clipWrapperPositionStyle)},[Object(j["createElementVNode"])("img",{class:"bottom-img",src:e.src,draggable:!1,alt:"",style:Object(j["normalizeStyle"])(e.bottomImgPositionStyle)},null,12,Ao),Object(j["createElementVNode"])("div",{class:"top-image-content",style:Object(j["normalizeStyle"])(Object(S["a"])(Object(S["a"])({},e.topImgWrapperPositionStyle),{},{clipPath:e.clipPath}))},[Object(j["createElementVNode"])("img",{class:"top-img",src:e.src,draggable:!1,alt:"",style:Object(j["normalizeStyle"])(e.topImgPositionStyle)},null,12,Fo)],4),Object(j["createElementVNode"])("div",{class:"operate",style:Object(j["normalizeStyle"])(e.topImgWrapperPositionStyle),onMousedown:t[0]||(t[0]=Object(j["withModifiers"])((function(t){return e.moveClipRange(t)}),["stop"]))},[(Object(j["openBlock"])(),Object(j["createElementBlock"])(j["Fragment"],null,Object(j["renderList"])(["t-l","t-r","b-l","b-r"],(function(t){return Object(j["createElementVNode"])("div",{class:Object(j["normalizeClass"])(["clip-point",t]),key:t,onMousedown:Object(j["withModifiers"])((function(n){return e.scaleClipRange(n,t)}),["stop"])},Ho,42,Ro)})),64)),(Object(j["openBlock"])(),Object(j["createElementBlock"])(j["Fragment"],null,Object(j["renderList"])(["t","b","l","r"],(function(t){return Object(j["createElementVNode"])("div",{class:Object(j["normalizeClass"])(["clip-point","",t]),key:t,onMousedown:Object(j["withModifiers"])((function(n){return e.scaleClipRange(n,t)}),["stop"])},Wo,42,qo)})),64))],36)],4)),[[a,e.handleClip]])}var Uo=Object(j["defineComponent"])({name:"image-clip-handler",emits:["clip"],props:{src:{type:String,required:!0},clipData:{type:Object},clipPath:{type:String,required:!0},width:{type:Number,required:!0},height:{type:Number,required:!0},top:{type:Number,required:!0},left:{type:Number,required:!0}},setup:function(e,t){var n=t.emit,o=Object(y["c"])($()),l=o.canvasScale,c=Object(y["c"])(de()),a=c.ctrlOrShiftKeyActive,r=Object(j["reactive"])({top:"0",left:"0"}),i=Object(j["ref"])(!1),u=Object(j["ref"])(null),d=function(){var t=e.clipData?e.clipData.range:[[0,0],[100,100]],n=Object(At["a"])(t,2),o=n[0],l=n[1],c=(l[0]-o[0])/100,a=(l[1]-o[1])/100,r=o[0]/c,i=o[1]/a;return{widthScale:c,heightScale:a,left:r,top:i}},s=Object(j["computed"])((function(){var e=d(),t=e.widthScale,n=e.heightScale,o=e.left,l=e.top;return{left:-o,top:-l,width:100/t,height:100/n}})),f=Object(j["computed"])((function(){return{top:s.value.top+"%",left:s.value.left+"%",width:s.value.width+"%",height:s.value.height+"%"}})),p=Object(j["reactive"])({top:0,left:0,width:0,height:0}),m=Object(j["computed"])((function(){return{top:p.top+"%",left:p.left+"%",width:p.width+"%",height:p.height+"%"}})),b=Object(j["computed"])((function(){var e=s.value.width,t=s.value.height,n=p.left,o=p.top,l=p.width,c=p.height;return{left:100/l*-n+"%",top:100/c*-o+"%",width:e/l*100+"%",height:t/c*100+"%"}})),v=function(){var e=d(),t=e.left,n=e.top;p.left=t,p.top=n,p.width=100,p.height=100,r.top=-n+"%",r.left=-t+"%"},h=function(){if(!i.value)if(u.value){var t=d(),o=t.left,l=t.top,c={left:(p.left-o)/100*e.width,top:(p.top-l)/100*e.height,width:(p.width-100)/100*e.width,height:(p.height-100)/100*e.height},a={range:u.value,position:c};n("clip",a)}else n("clip",null)},O=function(e){var t=e.key.toUpperCase();t===N.ENTER&&h()};Object(j["onMounted"])((function(){v(),document.addEventListener("keydown",O)})),Object(j["onUnmounted"])((function(){document.removeEventListener("keydown",O)}));var g=function(){var e={left:parseInt(b.value.left),top:parseInt(b.value.top),width:parseInt(b.value.width),height:parseInt(b.value.height)},t=100/e.width,n=100/e.height,o=[-e.left*t,-e.top*n],l=[100*t+o[0],100*n+o[1]];u.value=[o,l]},x=function(t){i.value=!0;var n=!0,o=t.pageX,c=t.pageY,a=s.value,r={left:p.left,top:p.top,width:p.width,height:p.height};document.onmousemove=function(t){if(n){var i=t.pageX,u=t.pageY,d=(i-o)/l.value/e.width*100,s=(u-c)/l.value/e.height*100,f=r.left+d,m=r.top+s;f<0?f=0:f+r.width>a.width&&(f=a.width-r.width),m<0?m=0:m+r.height>a.height&&(m=a.height-r.height),p.left=f,p.top=m}},document.onmouseup=function(){n=!1,document.onmousemove=null,document.onmouseup=null,g(),setTimeout((function(){i.value=!1}),0)}},C=function(t,n){i.value=!0;var o=!0,c=50/e.width*100,r=50/e.height*100,u=t.pageX,d=t.pageY,f=s.value,m={left:p.left,top:p.top,width:p.width,height:p.height},b=p.width/p.height;document.onmousemove=function(t){if(o){var i,s,v,h,O=t.pageX,j=t.pageY,y=(O-u)/l.value/e.width*100,g=(j-d)/l.value/e.height*100;a.value&&("b-r"!==n&&"t-l"!==n||(g=y/b),"b-l"!==n&&"t-r"!==n||(g=-y/b)),"t-l"===n?(m.left+y<0&&(y=-m.left),m.top+g<0&&(g=-m.top),m.width-y<c&&(y=m.width-c),m.height-g<r&&(g=m.height-r),v=m.width-y,h=m.height-g,i=m.left+y,s=m.top+g):"t-r"===n?(m.left+m.width+y>f.width&&(y=f.width-(m.left+m.width)),m.top+g<0&&(g=-m.top),m.width+y<c&&(y=c-m.width),m.height-g<r&&(g=m.height-r),v=m.width+y,h=m.height-g,i=m.left,s=m.top+g):"b-l"===n?(m.left+y<0&&(y=-m.left),m.top+m.height+g>f.height&&(g=f.height-(m.top+m.height)),m.width-y<c&&(y=m.width-c),m.height+g<r&&(g=r-m.height),v=m.width-y,h=m.height+g,i=m.left+y,s=m.top):"b-r"===n?(m.left+m.width+y>f.width&&(y=f.width-(m.left+m.width)),m.top+m.height+g>f.height&&(g=f.height-(m.top+m.height)),m.width+y<c&&(y=c-m.width),m.height+g<r&&(g=r-m.height),v=m.width+y,h=m.height+g,i=m.left,s=m.top):"t"===n?(m.top+g<0&&(g=-m.top),m.height-g<r&&(g=m.height-r),v=m.width,h=m.height-g,i=m.left,s=m.top+g):"b"===n?(m.top+m.height+g>f.height&&(g=f.height-(m.top+m.height)),m.height+g<r&&(g=r-m.height),v=m.width,h=m.height+g,i=m.left,s=m.top):"l"===n?(m.left+y<0&&(y=-m.left),m.width-y<c&&(y=m.width-c),v=m.width-y,h=m.height,i=m.left+y,s=m.top):(m.left+m.width+y>f.width&&(y=f.width-(m.left+m.width)),m.width+y<c&&(y=c-m.width),h=m.height,v=m.width+y,i=m.left,s=m.top),p.left=i,p.top=s,p.width=v,p.height=h}},document.onmouseup=function(){o=!1,document.onmousemove=null,document.onmouseup=null,g(),setTimeout((function(){return i.value=!1}),0)}};return{clipWrapperPositionStyle:r,bottomImgPositionStyle:f,topImgWrapperPositionStyle:m,topImgPositionStyle:b,handleClip:h,moveClipRange:x,scaleClipRange:C}}});n("2086");const Yo=Sn()(Uo,[["render",Go],["__scopeId","data-v-430c7e6e"]]);var Zo=Yo,Jo=Object(j["defineComponent"])({name:"editable-element-image",components:{ImageOutline:Do,ImageClipHandler:Zo},props:{elementInfo:{type:Object,required:!0},selectElement:{type:Function,required:!0},contextmenus:{type:Function}},setup:function(e){var t=$(),n=Q(),o=Object(y["c"])(t),l=o.clipingImageElementId,c=Object(j["computed"])((function(){return l.value===e.elementInfo.id})),a=Pe(),r=a.addHistorySnapshot,i=Object(j["computed"])((function(){return e.elementInfo.shadow})),u=ro(i),d=u.shadowStyle,s=Object(j["computed"])((function(){return e.elementInfo.flipH})),f=Object(j["computed"])((function(){return e.elementInfo.flipV})),p=io(s,f),m=p.flipStyle,b=Object(j["computed"])((function(){return e.elementInfo.clip})),v=so(b),h=v.clipShape,O=v.imgPosition,g=Object(j["computed"])((function(){return e.elementInfo.filters})),x=fo(g),C=x.filter,k=function(t){e.elementInfo.lock||(t.stopPropagation(),e.selectElement(t,e.elementInfo))},w=function(o){if(t.setClipingImageElementId(""),o){var l=o.range,c=o.position,a=e.elementInfo.clip||{shape:"rect",range:[[0,0],[100,100]]},i={clip:Object(S["a"])(Object(S["a"])({},a),{},{range:l}),left:e.elementInfo.left+c.left,top:e.elementInfo.top+c.top,width:e.elementInfo.width+c.width,height:e.elementInfo.height+c.height};n.updateElement({id:e.elementInfo.id,props:i}),r()}};return{isCliping:c,handleClip:w,clipingImageElementId:l,shadowStyle:d,handleSelectElement:k,clipShape:h,imgPosition:O,filter:C,flipStyle:m}}});n("34cb");const Ko=Sn()(Jo,[["render",lo],["__scopeId","data-v-d35423d2"]]);var Qo=Ko,$o=function(e){return Object(j["pushScopeId"])("data-v-58d3557f"),e=e(),Object(j["popScopeId"])(),e},el=$o((function(){return Object(j["createElementVNode"])("div",{class:"drag-handler top"},null,-1)})),tl=$o((function(){return Object(j["createElementVNode"])("div",{class:"drag-handler bottom"},null,-1)}));function nl(e,t,n,o,l,c){var a=Object(j["resolveComponent"])("ElementOutline"),r=Object(j["resolveComponent"])("ProsemirrorEditor"),i=Object(j["resolveDirective"])("contextmenu");return Object(j["openBlock"])(),Object(j["createElementBlock"])("div",{class:Object(j["normalizeClass"])(["editable-element-text",{lock:e.elementInfo.lock}]),ref:"elementRef",style:Object(j["normalizeStyle"])({top:e.elementInfo.top+"px",left:e.elementInfo.left+"px",width:e.elementInfo.width+"px"})},[Object(j["createElementVNode"])("div",{class:"rotate-wrapper",style:Object(j["normalizeStyle"])({transform:"rotate(".concat(e.elementInfo.rotate,"deg)")})},[Object(j["withDirectives"])(Object(j["createElementVNode"])("div",{class:"element-content",style:Object(j["normalizeStyle"])({backgroundColor:e.elementInfo.fill,opacity:e.elementInfo.opacity,textShadow:e.shadowStyle,lineHeight:e.elementInfo.lineHeight,letterSpacing:(e.elementInfo.wordSpace||0)+"px",color:e.elementInfo.defaultColor,fontFamily:e.elementInfo.defaultFontName}),onMousedown:t[2]||(t[2]=function(t){return e.handleSelectElement(t)})},[Object(j["createVNode"])(a,{width:e.elementInfo.width,height:e.elementInfo.height,outline:e.elementInfo.outline},null,8,["width","height","outline"]),Object(j["createVNode"])(r,{class:"text",elementId:e.elementInfo.id,defaultColor:e.elementInfo.defaultColor,defaultFontName:e.elementInfo.defaultFontName,editable:!e.elementInfo.lock,value:e.elementInfo.content,onUpdate:t[0]||(t[0]=function(t){return e.updateContent(t)}),onMousedown:t[1]||(t[1]=function(t){return e.handleSelectElement(t,!1)})},null,8,["elementId","defaultColor","defaultFontName","editable","value"]),el,tl],36),[[i,e.contextmenus]])],4)],6)}var ol=["width","height"],ll=["d","stroke","stroke-width","stroke-dasharray"];function cl(e,t,n,o,l,c){return e.outline?(Object(j["openBlock"])(),Object(j["createElementBlock"])("svg",{key:0,class:"element-outline",overflow:"visible",width:e.width,height:e.height},[Object(j["createElementVNode"])("path",{"vector-effect":"non-scaling-stroke","stroke-linecap":"butt","stroke-miterlimit":"8","stroke-linejoin":"",fill:"transparent",d:"M0,0 L".concat(e.width,",0 L").concat(e.width,",").concat(e.height," L0,").concat(e.height," Z"),stroke:e.outlineColor,"stroke-width":e.outlineWidth,"stroke-dasharray":"dashed"===e.outlineStyle?"10 6":"0 0"},null,8,ll)],8,ol)):Object(j["createCommentVNode"])("",!0)}var al=Object(j["defineComponent"])({name:"element-outline",props:{width:{type:Number,required:!0},height:{type:Number,required:!0},outline:{type:Object}},setup:function(e){var t=Oo(Object(j["toRef"])(e,"outline")),n=t.outlineWidth,o=t.outlineStyle,l=t.outlineColor;return{outlineWidth:n,outlineStyle:o,outlineColor:l}}});n("5235");const rl=Sn()(al,[["render",cl],["__scopeId","data-v-722bf8fa"]]);var il=rl,ul={class:"prosemirror-editor",ref:"editorViewRef"};function dl(e,t,n,o,l,c){return Object(j["openBlock"])(),Object(j["createElementBlock"])("div",ul,null,512)}var sl,fl=n("0010"),pl=n("5313"),ml=n("576a"),bl=n("304a"),vl=n("7f06"),hl=n("8726"),Ol=n("23f1"),jl=n("1a16"),yl=n("665f"),gl=n("f95e"),xl=function(e){var t={},n=function(e,n){return t[e]=n};return n("Alt-ArrowUp",fl["c"]),n("Alt-ArrowDown",fl["b"]),n("Ctrl-z",hl["c"]),n("Ctrl-y",hl["b"]),n("Backspace",gl["f"]),n("Escape",fl["e"]),n("Ctrl-b",Object(fl["f"])(e.marks.strong)),n("Ctrl-i",Object(fl["f"])(e.marks.em)),n("Ctrl-u",Object(fl["f"])(e.marks.underline)),n("Ctrl-d",Object(fl["f"])(e.marks.strikethrough)),n("Enter",Object(yl["f"])(e.nodes.list_item)),n("Mod-[",Object(yl["b"])(e.nodes.list_item)),n("Mod-]",Object(yl["e"])(e.nodes.list_item)),t},Cl=function(e){return Object(gl["g"])(/^\s*>\s$/,e)},kl=function(e){return Object(gl["g"])(/^(\d+)\.\s$/,e,(function(e){return{order:+e[1]}}),(function(e,t){return t.childCount+t.attrs.order===+e[1]}))},wl=function(e){return Object(gl["g"])(/^\s*([-+*])\s$/,e)},El=function(e){return Object(gl["e"])(/^```$/,e)},Nl=function(e){var t=[].concat(Object(W["a"])(gl["d"]),[gl["a"],gl["b"]]);return t.push(Cl(e.nodes.blockquote)),t.push(kl(e.nodes.ordered_list)),t.push(wl(e.nodes.bullet_list)),t.push(El(e.nodes.code_block)),Object(gl["c"])({rules:t})},Il=function(e){return[Nl(e),Object(vl["b"])(xl(e)),Object(vl["b"])(fl["a"]),Object(Ol["a"])(),Object(jl["a"])(),Object(hl["a"])()]},Vl=n("2210"),Sl=Object(S["a"])(Object(S["a"])({},yl["d"]),{},{content:"list_item+",group:"block"}),Bl=Object(S["a"])(Object(S["a"])({},yl["a"]),{},{content:"list_item+",group:"block"}),Ll=Object(S["a"])(Object(S["a"])({},yl["c"]),{},{content:"paragraph block*",group:"block"}),Tl={attrs:{align:{default:""}},content:"inline*",group:"block",parseDOM:[{tag:"p",getAttrs:function(e){var t=e.style.textAlign,n=e.getAttribute("align")||t||"";return n=/(left|right|center|justify)/.test(n)?n:"",{align:n}}}],toDOM:function(e){var t=e.attrs.align,n="";return t&&"left"!==t&&(n+="text-align: ".concat(t,";")),["p",{style:n},0]}},Ml=Object(S["a"])(Object(S["a"])({},Vl["b"]),{},{ordered_list:Sl,bullet_list:Bl,list_item:Ll,paragraph:Tl}),_l={excludes:"subscript",parseDOM:[{tag:"sub"},{style:"vertical-align",getAttrs:function(e){return"sub"===e&&null}}],toDOM:function(){return["sub",0]}},Dl={excludes:"superscript",parseDOM:[{tag:"sup"},{style:"vertical-align",getAttrs:function(e){return"super"===e&&null}}],toDOM:function(){return["sup",0]}},zl={parseDOM:[{tag:"strike"},{style:"text-decoration",getAttrs:function(e){return"line-through"===e&&null}},{style:"text-decoration-line",getAttrs:function(e){return"line-through"===e&&null}}],toDOM:function(){return["span",{style:"text-decoration-line: line-through"},0]}},Al={parseDOM:[{tag:"u"},{style:"text-decoration",getAttrs:function(e){return"underline"===e&&null}},{style:"text-decoration-line",getAttrs:function(e){return"underline"===e&&null}}],toDOM:function(){return["span",{style:"text-decoration: underline"},0]}},Fl={attrs:{color:{}},parseDOM:[{style:"color",getAttrs:function(e){return e?{color:e}:{}}}],toDOM:function(e){var t=e.attrs.color,n="";return t&&(n+="color: ".concat(t,";")),["span",{style:n},0]}},Rl={attrs:{backcolor:{}},inline:!0,group:"inline",parseDOM:[{tag:"span[style*=background-color]",getAttrs:function(e){return e?{backcolor:e}:{}}}],toDOM:function(e){var t=e.attrs.backcolor,n="";return t&&(n+="background-color: ".concat(t,";")),["span",{style:n},0]}},Pl={attrs:{fontsize:{}},inline:!0,group:"inline",parseDOM:[{style:"font-size",getAttrs:function(e){return e?{fontsize:e}:{}}}],toDOM:function(e){var t=e.attrs.fontsize,n="";return t&&(n+="font-size: ".concat(t)),["span",{style:n},0]}},Hl={attrs:{fontname:{}},inline:!0,group:"inline",parseDOM:[{style:"font-family",getAttrs:function(e){return{fontname:e&&"string"===typeof e?e.replace(/[\"\']/g,""):""}}}],toDOM:function(e){var t=e.attrs.fontname,n="";return t&&(n+="font-family: ".concat(t)),["span",{style:n},0]}},ql=Object(S["a"])(Object(S["a"])({},Vl["a"]),{},{subscript:_l,superscript:Dl,strikethrough:zl,underline:Al,forecolor:Fl,backcolor:Rl,fontsize:Pl,fontname:Hl}),Xl=Ml,Wl=ql,Gl=new bl["i"]({nodes:Xl,marks:Wl}),Ul=function(e){var t="<div>".concat(e,"</div>"),n=new window.DOMParser,o=n.parseFromString(t,"text/html").body.firstElementChild;return bl["a"].fromSchema(Gl).parse(o)},Yl=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return new ml["c"](e,Object(S["a"])({state:pl["b"].create({doc:Ul(t),plugins:Il(Gl)})},n))},Zl=n("1344");(function(e){e["RICH_TEXT_COMMAND"]="RICH_TEXT_COMMAND",e["OPEN_CHART_DATA_EDITOR"]="OPEN_CHART_DATA_EDITOR",e["OPEN_LATEX_EDITOR"]="OPEN_LATEX_EDITOR"})(sl||(sl={}));var Jl=Object(Zl["a"])(),Kl=Jl,Ql=(n("6062"),function(e,t,n){var o=e,l=o.selection,c=o.doc;if(!l||!c)return e;var a=l.from,r=l.to,i=t.nodes,u=i.blockquote,d=i.list_item,s=i.paragraph,f=[];n=n||"";var p=new Set([u,d,s]);return c.nodesBetween(a,r,(function(e,t){var o=e.type,l=e.attrs.align||"";return l!==n&&p.has(o)&&f.push({node:e,pos:t,nodeType:o}),!0})),f.length?(f.forEach((function(t){var o=t.node,l=t.pos,c=t.nodeType,a=o.attrs;a=n?Object(S["a"])(Object(S["a"])({},a),{},{align:n}):Object(S["a"])(Object(S["a"])({},a),{},{align:null}),e=e.setNodeMarkup(l,c,a,o.marks)})),e):e}),$l=function(e,t){var n=e.state,o=n.schema,l=n.selection,c=Ql(n.tr.setSelection(l),o,t);e.dispatch(c)},ec=function(e,t){return e.type===t.nodes.bullet_list||e.type===t.nodes.ordered_list},tc=function(e,t){return function(n,o){var l=n.schema,c=n.selection,a=c.$from,r=c.$to,i=a.blockRange(r);if(!i)return!1;var u=M((function(e){return ec(e,l)}))(c);if(i.depth>=1&&u&&i.depth-u.depth<=1){if(u.node.type===e)return Object(yl["b"])(t)(n,o);if(ec(u.node,l)&&e.validContent(u.node.content)){var d=n.tr;return d.setNodeMarkup(u.pos,e),o&&o(d),!1}}return Object(yl["g"])(e)(n,o)}},nc=Object(j["defineComponent"])({name:"prosemirror-editor",emits:["update","focus","blur"],props:{elementId:{type:String,required:!0},defaultColor:{type:String,required:!0},defaultFontName:{type:String,required:!0},editable:{type:Boolean,default:!1},value:{type:String,required:!0},autoFocus:{type:Boolean,default:!1}},setup:function(e,t){var n,o=t.emit,l=$(),c=Object(y["c"])(l),a=c.handleElementId,r=Object(j["ref"])(),i=Object(Y["debounce"])((function(){o("update",n.dom.innerHTML)}),300,{trailing:!0}),u=function(){"请输入内容"===e.value&&setTimeout((function(){Object(fl["d"])(n.state,n.dispatch)}),0),l.setDisableHotkeysState(!0),o("focus")},d=function(){l.setDisableHotkeysState(!1),o("blur")},s=Object(Y["debounce"])((function(){var t=H(n,{color:e.defaultColor,fontname:e.defaultFontName});l.setRichtextAttrs(t)}),30,{trailing:!0}),f=function(){i(),s()},p=Object(j["computed"])((function(){return e.value}));Object(j["watch"])(p,(function(){if(n&&!n.hasFocus()){var e=n.state,t=e.doc,o=e.tr;n.dispatch(o.replaceRangeWith(0,t.content.size,Ul(p.value)))}})),Object(j["watch"])((function(){return e.editable}),(function(){n.setProps({editable:function(){return e.editable}})})),Object(j["onMounted"])((function(){n=Yl(r.value,p.value,{handleDOMEvents:{focus:u,blur:d,keydown:f,click:s},editable:function(){return e.editable}}),e.autoFocus&&n.focus()})),Object(j["onUnmounted"])((function(){n&&n.destroy()}));var m=function(t){if(a.value===e.elementId){var o,l="command"in t?[t]:t,c=Object(B["a"])(l);try{for(c.s();!(o=c.n()).done;){var r=o.value;if("fontname"===r.command&&r.value){var u=n.state.schema.marks.fontname.create({fontname:r.value}),d=n.state.selection.empty;d&&Object(fl["d"])(n.state,n.dispatch);var f=n.state.selection,p=f.$from,m=f.$to;n.dispatch(n.state.tr.addMark(p.pos,m.pos,u))}else if("fontsize"===r.command&&r.value){var b=n.state.schema.marks.fontsize.create({fontsize:r.value}),v=n.state.selection.empty;v&&Object(fl["d"])(n.state,n.dispatch);var h=n.state.selection,O=h.$from,j=h.$to;n.dispatch(n.state.tr.addMark(O.pos,j.pos,b))}else if("color"===r.command&&r.value){var y=n.state.schema.marks.forecolor.create({color:r.value}),g=n.state.selection.empty;g&&Object(fl["d"])(n.state,n.dispatch);var x=n.state.selection,C=x.$from,k=x.$to;n.dispatch(n.state.tr.addMark(C.pos,k.pos,y))}else if("backcolor"===r.command&&r.value){var w=n.state.schema.marks.backcolor.create({backcolor:r.value}),E=n.state.selection.empty;E&&Object(fl["d"])(n.state,n.dispatch);var N=n.state.selection,I=N.$from,V=N.$to;n.dispatch(n.state.tr.addMark(I.pos,V.pos,w))}else if("bold"===r.command){var S=n.state.selection.empty;S&&Object(fl["d"])(n.state,n.dispatch),Object(fl["f"])(n.state.schema.marks.strong)(n.state,n.dispatch)}else if("em"===r.command){var L=n.state.selection.empty;L&&Object(fl["d"])(n.state,n.dispatch),Object(fl["f"])(n.state.schema.marks.em)(n.state,n.dispatch)}else if("underline"===r.command){var T=n.state.selection.empty;T&&Object(fl["d"])(n.state,n.dispatch),Object(fl["f"])(n.state.schema.marks.underline)(n.state,n.dispatch)}else if("strikethrough"===r.command){var M=n.state.selection.empty;M&&Object(fl["d"])(n.state,n.dispatch),Object(fl["f"])(n.state.schema.marks.strikethrough)(n.state,n.dispatch)}else if("subscript"===r.command)Object(fl["f"])(n.state.schema.marks.subscript)(n.state,n.dispatch);else if("superscript"===r.command)Object(fl["f"])(n.state.schema.marks.superscript)(n.state,n.dispatch);else if("blockquote"===r.command)Object(fl["g"])(n.state.schema.nodes.blockquote)(n.state,n.dispatch);else if("code"===r.command)Object(fl["f"])(n.state.schema.marks.code)(n.state,n.dispatch);else if("align"===r.command&&r.value)$l(n,r.value);else if("bulletList"===r.command){var _=n.state.schema.nodes,D=_.bullet_list,z=_.list_item;tc(D,z)(n.state,n.dispatch)}else if("orderedList"===r.command){var A=n.state.schema.nodes,F=A.ordered_list,R=A.list_item;tc(F,R)(n.state,n.dispatch)}else if("clear"===r.command){var P=n.state.selection.empty;P&&Object(fl["d"])(n.state,n.dispatch);var H=n.state.selection,q=H.$from,X=H.$to;n.dispatch(n.state.tr.removeMark(q.pos,X.pos))}else"insert"===r.command&&r.value&&n.dispatch(n.state.tr.insertText(r.value))}}catch(W){c.e(W)}finally{c.f()}n.focus(),i(),s()}};return Kl.on(sl.RICH_TEXT_COMMAND,m),Object(j["onUnmounted"])((function(){Kl.off(sl.RICH_TEXT_COMMAND,m)})),{editorViewRef:r}}});n("da17");const oc=Sn()(nc,[["render",dl],["__scopeId","data-v-f0d6ea86"]]);var lc=oc,cc=Object(j["defineComponent"])({name:"editable-element-text",components:{ElementOutline:il,ProsemirrorEditor:lc},props:{elementInfo:{type:Object,required:!0},selectElement:{type:Function,required:!0},contextmenus:{type:Function}},setup:function(e){var t=$(),n=Q(),o=Object(y["c"])(t),l=o.handleElementId,c=o.isScaling,a=Pe(),r=a.addHistorySnapshot,i=Object(j["ref"])(),u=Object(j["computed"])((function(){return e.elementInfo.shadow})),d=ro(u),s=d.shadowStyle,f=function(t){var n=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];e.elementInfo.lock||(t.stopPropagation(),e.selectElement(t,e.elementInfo,n))},p=Object(j["ref"])(-1);Object(j["watch"])(c,(function(){l.value===e.elementInfo.id&&(c.value||-1===p.value||(n.updateElement({id:e.elementInfo.id,props:{height:p.value}}),p.value=-1))}));var m=function(t){var o=t[0].contentRect;if(i.value){var l=o.height;e.elementInfo.height!==l&&(c.value?p.value=l:n.updateElement({id:e.elementInfo.id,props:{height:l}}))}},b=new ResizeObserver(m);Object(j["onMounted"])((function(){i.value&&b.observe(i.value)})),Object(j["onUnmounted"])((function(){i.value&&b.unobserve(i.value)}));var v=function(t){n.updateElement({id:e.elementInfo.id,props:{content:t}}),r()};return{elementRef:i,shadowStyle:s,updateContent:v,handleSelectElement:f}}});n("5083");const ac=Sn()(cc,[["render",nl],["__scopeId","data-v-58d3557f"]]);var rc=ac,ic=["width","height"],uc={key:0},dc=["transform"],sc=["d","fill","stroke","stroke-width","stroke-dasharray"],fc=["innerHTML"];function pc(e,t,n,o,l,c){var a=Object(j["resolveComponent"])("GradientDefs"),r=Object(j["resolveComponent"])("ProsemirrorEditor"),i=Object(j["resolveDirective"])("contextmenu");return Object(j["openBlock"])(),Object(j["createElementBlock"])("div",{class:Object(j["normalizeClass"])(["editable-element-shape",{lock:e.elementInfo.lock}]),style:Object(j["normalizeStyle"])({top:e.elementInfo.top+"px",left:e.elementInfo.left+"px",width:e.elementInfo.width+"px",height:e.elementInfo.height+"px"})},[Object(j["createElementVNode"])("div",{class:"rotate-wrapper",style:Object(j["normalizeStyle"])({transform:"rotate(".concat(e.elementInfo.rotate,"deg)")})},[Object(j["withDirectives"])(Object(j["createElementVNode"])("div",{class:"element-content",style:Object(j["normalizeStyle"])({opacity:e.elementInfo.opacity,filter:e.shadowStyle?"drop-shadow(".concat(e.shadowStyle,")"):"",transform:e.flipStyle,color:e.text.defaultColor,fontFamily:e.text.defaultFontName}),onMousedown:t[2]||(t[2]=function(t){return e.handleSelectElement(t)}),onDblclick:t[3]||(t[3]=function(t){return e.enterEditing()})},[(Object(j["openBlock"])(),Object(j["createElementBlock"])("svg",{overflow:"visible",width:e.elementInfo.width,height:e.elementInfo.height},[e.elementInfo.gradient?(Object(j["openBlock"])(),Object(j["createElementBlock"])("defs",uc,[Object(j["createVNode"])(a,{id:"editabel-gradient-".concat(e.elementInfo.id),type:e.elementInfo.gradient.type,color1:e.elementInfo.gradient.color[0],color2:e.elementInfo.gradient.color[1],rotate:e.elementInfo.gradient.rotate},null,8,["id","type","color1","color2","rotate"])])):Object(j["createCommentVNode"])("",!0),Object(j["createElementVNode"])("g",{transform:"scale(".concat(e.elementInfo.width/e.elementInfo.viewBox,", ").concat(e.elementInfo.height/e.elementInfo.viewBox,") translate(0,0) matrix(1,0,0,1,0,0)")},[Object(j["createElementVNode"])("path",{class:"shape-path","vector-effect":"non-scaling-stroke","stroke-linecap":"butt","stroke-miterlimit":"8","stroke-linejoin":"",d:e.elementInfo.path,fill:e.elementInfo.gradient?"url(#editabel-gradient-".concat(e.elementInfo.id,")"):e.elementInfo.fill,stroke:e.outlineColor,"stroke-width":e.outlineWidth,"stroke-dasharray":"dashed"===e.outlineStyle?"10 6":"0 0"},null,8,sc)],8,dc)],8,ic)),Object(j["createElementVNode"])("div",{class:Object(j["normalizeClass"])(["shape-text",[e.text.align,{editable:e.editable}]])},[e.editable?(Object(j["openBlock"])(),Object(j["createBlock"])(r,{key:0,elementId:e.elementInfo.id,defaultColor:e.text.defaultColor,defaultFontName:e.text.defaultFontName,editable:!e.elementInfo.lock,autoFocus:!0,value:e.text.content,onUpdate:t[0]||(t[0]=function(t){return e.updateText(t)}),onMousedown:t[1]||(t[1]=Object(j["withModifiers"])((function(){}),["stop"]))},null,8,["elementId","defaultColor","defaultFontName","editable","value"])):(Object(j["openBlock"])(),Object(j["createElementBlock"])("div",{key:1,class:"show-text ProseMirror-static",innerHTML:e.text.content},null,8,fc))],2)],36),[[i,e.contextmenus]])],4)],6)}var mc=["id","gradientTransform"],bc=["stop-color"],vc=["stop-color"],hc=["id"],Oc=["stop-color"],jc=["stop-color"];function yc(e,t,n,o,l,c){return"linear"===e.type?(Object(j["openBlock"])(),Object(j["createElementBlock"])("linearGradient",{key:0,id:e.id,x1:"0%",y1:"0%",x2:"100%",y2:"0%",gradientTransform:"rotate(".concat(e.rotate,",0.5,0.5)")},[Object(j["createElementVNode"])("stop",{offset:"0%","stop-color":e.color1},null,8,bc),Object(j["createElementVNode"])("stop",{offset:"100%","stop-color":e.color2},null,8,vc)],8,mc)):(Object(j["openBlock"])(),Object(j["createElementBlock"])("radialGradient",{key:1,id:e.id},[Object(j["createElementVNode"])("stop",{offset:"0%","stop-color":e.color1},null,8,Oc),Object(j["createElementVNode"])("stop",{offset:"100%","stop-color":e.color2},null,8,jc)],8,hc))}var gc=Object(j["defineComponent"])({name:"gradient-defs",props:{id:{type:String,required:!0},type:{type:String},color1:{type:String,required:!0},color2:{type:String,required:!0},rotate:{type:Number,default:0}}});const xc=Sn()(gc,[["render",yc]]);var Cc=xc,kc=Object(j["defineComponent"])({name:"editable-element-shape",components:{GradientDefs:Cc,ProsemirrorEditor:lc},props:{elementInfo:{type:Object,required:!0},selectElement:{type:Function,required:!0},contextmenus:{type:Function}},setup:function(e){var t=$(),n=Q(),o=Object(y["c"])(t),l=o.handleElementId,c=Pe(),a=c.addHistorySnapshot,r=function(t){e.elementInfo.lock||(t.stopPropagation(),e.selectElement(t,e.elementInfo))},i=Object(j["computed"])((function(){return e.elementInfo.outline})),u=Oo(i),d=u.outlineWidth,s=u.outlineStyle,f=u.outlineColor,p=Object(j["computed"])((function(){return e.elementInfo.shadow})),m=ro(p),b=m.shadowStyle,v=Object(j["computed"])((function(){return e.elementInfo.flipH})),h=Object(j["computed"])((function(){return e.elementInfo.flipV})),O=io(v,h),g=O.flipStyle,x=Object(j["ref"])(!1),C=function(){x.value=!0,t.setEditingShapeElementId(e.elementInfo.id)},k=function(){x.value=!1,t.setEditingShapeElementId("")};Object(j["watch"])(l,(function(){l.value!==e.elementInfo.id&&x.value&&k()}));var w=Object(j["computed"])((function(){var t={content:"",defaultFontName:"微软雅黑",defaultColor:"#000",align:"middle"};return e.elementInfo.text?e.elementInfo.text:t})),E=function(t){var o=Object(S["a"])(Object(S["a"])({},w.value),{},{content:t});n.updateElement({id:e.elementInfo.id,props:{text:o}}),a()};return{shadowStyle:b,outlineWidth:d,outlineStyle:s,outlineColor:f,flipStyle:g,editable:x,text:w,handleSelectElement:r,updateText:E,enterEditing:C}}});n("efbe");const wc=Sn()(kc,[["render",pc],["__scopeId","data-v-4faf3734"]]);var Ec=wc,Nc=["width","height"],Ic=["d","stroke","stroke-width","stroke-dasharray","marker-start","marker-end"],Vc=["d"];function Sc(e,t,n,o,l,c){var a=Object(j["resolveComponent"])("LinePointMarker"),r=Object(j["resolveDirective"])("contextmenu");return Object(j["openBlock"])(),Object(j["createElementBlock"])("div",{class:Object(j["normalizeClass"])(["editable-element-shape",{lock:e.elementInfo.lock}]),style:Object(j["normalizeStyle"])({top:e.elementInfo.top+"px",left:e.elementInfo.left+"px"})},[Object(j["createElementVNode"])("div",{class:"element-content",style:Object(j["normalizeStyle"])({filter:e.shadowStyle?"drop-shadow(".concat(e.shadowStyle,")"):""}),onMousedown:t[0]||(t[0]=function(t){return e.handleSelectElement(t)})},[(Object(j["openBlock"])(),Object(j["createElementBlock"])("svg",{overflow:"visible",width:e.svgWidth,height:e.svgHeight},[Object(j["createElementVNode"])("defs",null,[e.elementInfo.points[0]?(Object(j["openBlock"])(),Object(j["createBlock"])(a,{key:0,id:e.elementInfo.id,position:"start",type:e.elementInfo.points[0],color:e.elementInfo.color,baseSize:e.elementInfo.width},null,8,["id","type","color","baseSize"])):Object(j["createCommentVNode"])("",!0),e.elementInfo.points[1]?(Object(j["openBlock"])(),Object(j["createBlock"])(a,{key:1,id:e.elementInfo.id,position:"end",type:e.elementInfo.points[1],color:e.elementInfo.color,baseSize:e.elementInfo.width},null,8,["id","type","color","baseSize"])):Object(j["createCommentVNode"])("",!0)]),Object(j["createElementVNode"])("path",{class:"line-point",d:e.path,stroke:e.elementInfo.color,"stroke-width":e.elementInfo.width,"stroke-dasharray":e.lineDashArray,fill:"none","stroke-linecap":"","stroke-linejoin":"","stroke-miterlimit":"","marker-start":e.elementInfo.points[0]?"url(#".concat(e.elementInfo.id,"-").concat(e.elementInfo.points[0],"-start)"):"","marker-end":e.elementInfo.points[1]?"url(#".concat(e.elementInfo.id,"-").concat(e.elementInfo.points[1],"-end)"):""},null,8,Ic),Object(j["withDirectives"])(Object(j["createElementVNode"])("path",{class:"line-path",d:e.path,stroke:"transparent","stroke-width":"20",fill:"none"},null,8,Vc),[[r,e.contextmenus]])],8,Nc))],36)],6)}var Bc=["id","markerWidth","markerHeight","refX","refY"],Lc=["d","fill","transform"];function Tc(e,t,n,o,l,c){return Object(j["openBlock"])(),Object(j["createElementBlock"])("marker",{id:"".concat(e.id,"-").concat(e.type,"-").concat(e.position),markerUnits:"userSpaceOnUse",orient:"auto",markerWidth:3*e.size,markerHeight:3*e.size,refX:1.5*e.size,refY:1.5*e.size},[Object(j["createElementVNode"])("path",{d:e.path,fill:e.color,transform:"scale(".concat(.3*e.size,", ").concat(.3*e.size,") rotate(").concat(e.rotate,", 5, 5)")},null,8,Lc)],8,Bc)}var Mc={dot:"m0 5a5 5 0 1 0 10 0a5 5 0 1 0 -10 0z",arrow:"M0,0 L10,5 0,10 Z"},_c={"arrow-start":180,"arrow-end":0},Dc=Object(j["defineComponent"])({name:"line-point-marker",props:{id:{type:String,required:!0},position:{type:String,required:!0},type:{type:String,required:!0},color:{type:String},baseSize:{type:Number,required:!0}},setup:function(e){var t=Object(j["computed"])((function(){return Mc[e.type]})),n=Object(j["computed"])((function(){return _c["".concat(e.type,"-").concat(e.position)]||0})),o=Object(j["computed"])((function(){return e.baseSize<2?2:e.baseSize}));return{path:t,rotate:n,size:o}}});const zc=Sn()(Dc,[["render",Tc]]);var Ac=zc,Fc=Object(j["defineComponent"])({name:"editable-element-shape",components:{LinePointMarker:Ac},props:{elementInfo:{type:Object,required:!0},selectElement:{type:Function,required:!0},contextmenus:{type:Function}},setup:function(e){var t=function(t){e.elementInfo.lock||(t.stopPropagation(),e.selectElement(t,e.elementInfo))},n=Object(j["computed"])((function(){return e.elementInfo.shadow})),o=ro(n),l=o.shadowStyle,c=Object(j["computed"])((function(){var t=Math.abs(e.elementInfo.start[0]-e.elementInfo.end[0]);return t<24?24:t})),a=Object(j["computed"])((function(){var t=Math.abs(e.elementInfo.start[1]-e.elementInfo.end[1]);return t<24?24:t})),r=Object(j["computed"])((function(){return"dashed"===e.elementInfo.style?"10 6":"0 0"})),i=Object(j["computed"])((function(){return Ae(e.elementInfo)}));return{handleSelectElement:t,shadowStyle:l,svgWidth:c,svgHeight:a,lineDashArray:r,path:i}}});n("3dc0");const Rc=Sn()(Fc,[["render",Sc],["__scopeId","data-v-603a705d"]]);var Pc=Rc;function Hc(e,t,n,o,l,c){var a=Object(j["resolveComponent"])("ElementOutline"),r=Object(j["resolveComponent"])("Chart"),i=Object(j["resolveDirective"])("contextmenu");return Object(j["openBlock"])(),Object(j["createElementBlock"])("div",{class:Object(j["normalizeClass"])(["editable-element-chart",{lock:e.elementInfo.lock}]),style:Object(j["normalizeStyle"])({top:e.elementInfo.top+"px",left:e.elementInfo.left+"px",width:e.elementInfo.width+"px",height:e.elementInfo.height+"px"})},[Object(j["createElementVNode"])("div",{class:"rotate-wrapper",style:Object(j["normalizeStyle"])({transform:"rotate(".concat(e.elementInfo.rotate,"deg)")})},[Object(j["withDirectives"])(Object(j["createElementVNode"])("div",{class:"element-content",style:Object(j["normalizeStyle"])({backgroundColor:e.elementInfo.fill}),onMousedown:t[0]||(t[0]=function(t){return e.handleSelectElement(t)}),onDblclick:t[1]||(t[1]=function(t){return e.openDataEditor()})},[Object(j["createVNode"])(a,{width:e.elementInfo.width,height:e.elementInfo.height,outline:e.elementInfo.outline},null,8,["width","height","outline"]),Object(j["createVNode"])(r,{width:e.elementInfo.width,height:e.elementInfo.height,type:e.elementInfo.chartType,data:e.elementInfo.data,options:e.elementInfo.options,themeColor:e.elementInfo.themeColor,gridColor:e.elementInfo.gridColor,legends:e.elementInfo.data.legends,legend:e.elementInfo.legend||""},null,8,["width","height","type","data","options","themeColor","gridColor","legends","legend"])],36),[[i,e.contextmenus]])],4)],6)}function qc(e,t,n,o,l,c){return Object(j["openBlock"])(),Object(j["createElementBlock"])("div",{class:"chart",style:Object(j["normalizeStyle"])({flexDirection:"top"===e.legend?"column-reverse":"column"})},[Object(j["createElementVNode"])("div",{class:"chart-content",ref:"chartRef",style:Object(j["normalizeStyle"])({width:e.width+"px",height:e.chartHeight+"px",transform:"scale(".concat(1/e.slideScale,")")})},null,4),e.legend?(Object(j["openBlock"])(),Object(j["createElementBlock"])("div",{key:0,class:"legends",style:Object(j["normalizeStyle"])({transform:"scale(".concat(1/e.slideScale,")")})},[(Object(j["openBlock"])(!0),Object(j["createElementBlock"])(j["Fragment"],null,Object(j["renderList"])(e.legends,(function(t,n){return Object(j["openBlock"])(),Object(j["createElementBlock"])("div",{class:"legend",key:n,style:Object(j["normalizeStyle"])({color:e.gridColor})},[Object(j["createElementVNode"])("div",{class:"block",style:Object(j["normalizeStyle"])({backgroundColor:e.themeColors[n]})},null,4),Object(j["createTextVNode"])(" "+Object(j["toDisplayString"])(t),1)],4)})),128))],4)):Object(j["createCommentVNode"])("",!0)],4)}var Xc=n("ba48"),Wc=n.n(Xc),Gc=(n("aa97"),Object(j["defineComponent"])({name:"chart",props:{width:{type:Number,required:!0},height:{type:Number,required:!0},type:{type:String,required:!0},data:{type:Object,required:!0},options:{type:Object},themeColor:{type:Array,required:!0},legends:{type:Array,required:!0},gridColor:{type:String},legend:{type:String}},setup:function(e){var t,n=Object(j["ref"])(),o=Object(j["inject"])("slideScale")||Object(j["ref"])(1),l=Object(j["computed"])((function(){return e.legend?e.height-20:e.height})),c=function(){var t=e.options||{},n=Object(S["a"])(Object(S["a"])({},t),{},{width:e.width*o.value,height:l.value*o.value}),c="pie"===e.type?Object(S["a"])(Object(S["a"])({},e.data),{},{series:e.data.series[0]}):e.data;return{data:c,options:n}},a=function(){if(n.value){var o=Object(Y["upperFirst"])(e.type),l=c(),a=l.data,r=l.options;t=new Wc.a[o](n.value,a,r)}},r=function(){if(t){var e=c(),n=e.data,o=e.options;t.update(n,o)}else a()};Object(j["watch"])([function(){return e.width},function(){return e.height},function(){return e.data},o],r),Object(j["onMounted"])(a);var i=Object(j["computed"])((function(){var t=[];if(e.themeColor.length>=10)t=e.themeColor;else if(1===e.themeColor.length)t=U()(e.themeColor[0]).analogous(10).map((function(e){return e.toHexString()}));else{var n=e.themeColor.length,o=U()(e.themeColor[n-1]).analogous(11-n).map((function(e){return e.toHexString()}));t=[].concat(Object(W["a"])(e.themeColor.slice(0,n-1)),Object(W["a"])(o))}return t})),u=function(){if(n.value)for(var e=0;e<10;e++)n.value.style.setProperty("--theme-color-".concat(e+1),i.value[e])};Object(j["watch"])(i,u),Object(j["onMounted"])(u);var d=function(){n.value&&e.gridColor&&n.value.style.setProperty("--grid-color",e.gridColor)};return Object(j["watch"])((function(){return e.gridColor}),d),Object(j["onMounted"])(d),{chartHeight:l,themeColors:i,slideScale:o,chartRef:n}}}));n("9a8f"),n("383f");const Uc=Sn()(Gc,[["render",qc],["__scopeId","data-v-3ac5559a"]]);var Yc=Uc,Zc=Object(j["defineComponent"])({name:"editable-element-chart",components:{ElementOutline:il,Chart:Yc},props:{elementInfo:{type:Object,required:!0},selectElement:{type:Function,required:!0},contextmenus:{type:Function}},setup:function(e){var t=function(t){e.elementInfo.lock||(t.stopPropagation(),e.selectElement(t,e.elementInfo))},n=function(){Kl.emit(sl.OPEN_CHART_DATA_EDITOR)};return{handleSelectElement:t,openDataEditor:n}}});n("b05d");const Jc=Sn()(Zc,[["render",Hc],["__scopeId","data-v-c09631b6"]]);var Kc=Jc,Qc={class:"element-content"};function $c(e,t,n,o,l,c){var a=Object(j["resolveComponent"])("EditableTable"),r=Object(j["resolveDirective"])("contextmenu");return Object(j["openBlock"])(),Object(j["createElementBlock"])("div",{class:Object(j["normalizeClass"])(["editable-element-table",{lock:e.elementInfo.lock}]),ref:"elementRef",style:Object(j["normalizeStyle"])({top:e.elementInfo.top+"px",left:e.elementInfo.left+"px",width:e.elementInfo.width+"px"})},[Object(j["createElementVNode"])("div",{class:"rotate-wrapper",style:Object(j["normalizeStyle"])({transform:"rotate(".concat(e.elementInfo.rotate,"deg)")})},[Object(j["withDirectives"])(Object(j["createElementVNode"])("div",Qc,[Object(j["createVNode"])(a,{onMousedown:t[0]||(t[0]=Object(j["withModifiers"])((function(){}),["stop"])),data:e.elementInfo.data,width:e.elementInfo.width,colWidths:e.elementInfo.colWidths,outline:e.elementInfo.outline,theme:e.elementInfo.theme,editable:e.editable,onChange:t[1]||(t[1]=function(t){return e.updateTableCells(t)}),onChangeColWidths:t[2]||(t[2]=function(t){return e.updateColWidths(t)}),onChangeSelectedCells:t[3]||(t[3]=function(t){return e.updateSelectedCells(t)})},null,8,["data","width","colWidths","outline","theme","editable"]),!e.editable||e.elementInfo.lock?(Object(j["openBlock"])(),Object(j["createElementBlock"])("div",{key:0,class:Object(j["normalizeClass"])(["table-mask",{lock:e.elementInfo.lock}]),onDblclick:t[4]||(t[4]=function(t){return e.startEdit()}),onMousedown:t[5]||(t[5]=function(t){return e.handleSelectElement(t)})},[Object(j["createElementVNode"])("div",{class:"mask-tip",style:Object(j["normalizeStyle"])({transform:"scale(".concat(1/e.canvasScale,")")})},"双击编辑",4)],34)):Object(j["createCommentVNode"])("",!0)],512),[[r,e.contextmenus]])],4)],6)}var ea={key:0,class:"handler"},ta=["onMousedown"],na=["width"],oa=["rowspan","colspan","data-cell-index","onMousedown","onMouseenter"],la=["innerHTML"];function ca(e,t,n,o,l,c){var a,r,i,u,d,s=Object(j["resolveComponent"])("CustomTextarea"),f=Object(j["resolveDirective"])("contextmenu");return Object(j["openBlock"])(),Object(j["createElementBlock"])("div",{class:"editable-table",style:Object(j["normalizeStyle"])({width:e.totalWidth+"px"})},[e.editable?(Object(j["openBlock"])(),Object(j["createElementBlock"])("div",ea,[(Object(j["openBlock"])(!0),Object(j["createElementBlock"])(j["Fragment"],null,Object(j["renderList"])(e.dragLinePosition,(function(t,n){return Object(j["openBlock"])(),Object(j["createElementBlock"])("div",{class:"drag-line",key:n,style:Object(j["normalizeStyle"])({left:t+"px"}),onMousedown:function(t){return e.handleMousedownColHandler(t,n)}},null,44,ta)})),128))])):Object(j["createCommentVNode"])("",!0),Object(j["createElementVNode"])("table",{class:Object(j["normalizeClass"])({theme:e.theme,"row-header":null===(a=e.theme)||void 0===a?void 0:a.rowHeader,"row-footer":null===(r=e.theme)||void 0===r?void 0:r.rowFooter,"col-header":null===(i=e.theme)||void 0===i?void 0:i.colHeader,"col-footer":null===(u=e.theme)||void 0===u?void 0:u.colFooter}),style:Object(j["normalizeStyle"])("--themeColor: ".concat(null===(d=e.theme)||void 0===d?void 0:d.color,"; --subThemeColor1: ").concat(e.subThemeColor[0],"; --subThemeColor2: ").concat(e.subThemeColor[1]))},[Object(j["createElementVNode"])("colgroup",null,[(Object(j["openBlock"])(!0),Object(j["createElementBlock"])(j["Fragment"],null,Object(j["renderList"])(e.colSizeList,(function(e,t){return Object(j["openBlock"])(),Object(j["createElementBlock"])("col",{span:"1",key:t,width:e},null,8,na)})),128))]),Object(j["createElementVNode"])("tbody",null,[(Object(j["openBlock"])(!0),Object(j["createElementBlock"])(j["Fragment"],null,Object(j["renderList"])(e.tableCells,(function(t,n){return Object(j["openBlock"])(),Object(j["createElementBlock"])("tr",{key:n},[(Object(j["openBlock"])(!0),Object(j["createElementBlock"])(j["Fragment"],null,Object(j["renderList"])(t,(function(t,o){return Object(j["withDirectives"])((Object(j["openBlock"])(),Object(j["createElementBlock"])("td",{class:Object(j["normalizeClass"])(["cell",{selected:e.selectedCells.includes("".concat(n,"_").concat(o))&&e.selectedCells.length>1,active:e.activedCell==="".concat(n,"_").concat(o)}]),style:Object(j["normalizeStyle"])(Object(S["a"])({borderStyle:e.outline.style,borderColor:e.outline.color,borderWidth:e.outline.width+"px"},e.getTextStyle(t.style))),key:t.id,rowspan:t.rowspan,colspan:t.colspan,"data-cell-index":"".concat(n,"_").concat(o),onMousedown:function(t){return e.handleCellMousedown(t,n,o)},onMouseenter:function(t){return e.handleCellMouseenter(n,o)}},[e.activedCell==="".concat(n,"_").concat(o)?(Object(j["openBlock"])(),Object(j["createBlock"])(s,{key:0,class:Object(j["normalizeClass"])(["cell-text",{active:e.activedCell==="".concat(n,"_").concat(o)}]),contenteditable:"plaintext-only",value:t.text,onUpdateValue:function(t){return e.handleInput(t,n,o)},onInsertExcelData:function(t){return e.insertExcelData(t,n,o)}},null,8,["class","value","onUpdateValue","onInsertExcelData"])):(Object(j["openBlock"])(),Object(j["createElementBlock"])("div",{key:1,class:"cell-text",innerHTML:e.formatText(t.text)},null,8,la))],46,oa)),[[j["vShow"],!e.hideCells.includes("".concat(n,"_").concat(o))],[f,function(t){return e.contextmenus(t)}]])})),128))])})),128))])],6)],4)}var aa=function(e){if(!e)return{};var t=e.bold,n=e.em,o=e.underline,l=e.strikethrough,c=e.color,a=e.backcolor,r=e.fontsize,i=e.fontname,u=e.align,d="".concat(o?"underline":""," ").concat(l?"line-through":"");return" "===d&&(d="none"),{fontWeight:t?"bold":"normal",fontStyle:n?"italic":"normal",textDecoration:d,color:c||"#000",backgroundColor:a||"",fontSize:r||"14px",fontFamily:i||"微软雅黑",textAlign:u||"left"}},ra=function(e){return e.replace(/\n/g,"</br>").replace(/ /g,"&nbsp;")},ia=function(e){var t=Object(j["computed"])((function(){for(var t=[],n=0;n<e.value.length;n++)for(var o=e.value[n],l=0;l<o.length;l++){var c=o[l];if(c.colspan>1||c.rowspan>1)for(var a=n;a<n+c.rowspan;a++)for(var r=a===n?l+1:l;r<l+c.colspan;r++)t.push("".concat(a,"_").concat(r))}return t}));return{hideCells:t}},ua=function(e){var t=Object(j["ref"])(["",""]);return Object(j["watch"])((function(){return e.value}),(function(){e.value&&(t.value=ze(e.value.color))}),{immediate:!0}),{subThemeColor:t}},da=["contenteditable","innerHTML"];function sa(e,t,n,o,l,c){return Object(j["openBlock"])(),Object(j["createElementBlock"])("div",{class:"custom-textarea",ref:"textareaRef",contenteditable:e.contenteditable,onFocus:t[0]||(t[0]=function(){return e.handleFocus&&e.handleFocus.apply(e,arguments)}),onBlur:t[1]||(t[1]=function(){return e.handleBlur&&e.handleBlur.apply(e,arguments)}),onInput:t[2]||(t[2]=function(t){return e.handleInput(t)}),innerHTML:e.text},null,40,da)}var fa=Object(j["defineComponent"])({name:"custom-textarea",emits:["updateValue","insertExcelData"],props:{value:{type:String,default:""},contenteditable:{type:[Boolean,String],default:!1}},setup:function(e,t){var n=t.emit,o=Object(j["ref"])(),l=Object(j["ref"])(""),c=Object(j["ref"])(!1);Object(j["watch"])((function(){return e.value}),(function(){c.value||(l.value=e.value,o.value&&(o.value.innerHTML=e.value))}),{immediate:!0});var a=function(){if(o.value){var e=o.value.innerHTML;n("updateValue",e)}},r=function(){c.value=!0,o.value&&(o.value.onpaste=function(e){if(e.preventDefault(),e.clipboardData){var t=e.clipboardData.items[0];t&&"string"===t.kind&&"text/plain"===t.type&&t.getAsString((function(e){var t=Ve(e);if("object"!==Object(Fe["a"])(t)){var l=Se(e);if(l)return n("insertExcelData",l),void(o.value&&(o.value.innerHTML=l[0][0]));n("updateValue",e),document.execCommand("insertText",!1,e)}}))}})},i=function(){c.value=!1,o.value&&(o.value.onpaste=null)};return Object(j["onUnmounted"])((function(){o.value&&(o.value.onpaste=null)})),{textareaRef:o,handleFocus:r,handleInput:a,handleBlur:i,text:l}}});n("f33f");const pa=Sn()(fa,[["render",sa],["__scopeId","data-v-59f468e0"]]);var ma=pa,ba=Object(j["defineComponent"])({name:"editable-table",emits:["change","changeColWidths","changeSelectedCells"],components:{CustomTextarea:ma},props:{data:{type:Array,required:!0},width:{type:Number,required:!0},colWidths:{type:Array,required:!0},outline:{type:Object,required:!0},theme:{type:Object},editable:{type:Boolean,default:!0}},setup:function(e,t){var n=t.emit,o=Object(y["c"])($()),l=o.canvasScale,c=Object(j["ref"])(!1),a=Object(j["ref"])([]),r=Object(j["ref"])([]),i=Object(j["computed"])({get:function(){return e.data},set:function(e){n("change",e)}}),u=Object(j["computed"])((function(){return e.theme})),d=ua(u),s=d.subThemeColor,f=Object(j["ref"])([]),p=Object(j["computed"])((function(){return f.value.reduce((function(e,t){return e+t}))}));Object(j["watch"])([function(){return e.colWidths},function(){return e.width}],(function(){f.value=e.colWidths.map((function(t){return t*e.width}))}),{immediate:!0});var m=function(){a.value=[],r.value=[]};Object(j["watch"])((function(){return e.editable}),(function(){e.editable||m()}));var b=Object(j["computed"])((function(){for(var e=[],t=1;t<f.value.length+1;t++){var n=f.value.slice(0,t).reduce((function(e,t){return e+t}));e.push(n)}return e})),v=Object(j["computed"])((function(){return e.data})),h=ia(v),O=h.hideCells,g=Object(j["computed"])((function(){if(!a.value.length)return[];var e=Object(At["a"])(a.value,2),t=e[0],n=e[1];if(!r.value.length)return["".concat(t,"_").concat(n)];var o=Object(At["a"])(r.value,2),l=o[0],c=o[1];if(t===l&&n===c)return["".concat(t,"_").concat(n)];for(var u=[],d=Math.min(t,l),s=Math.min(n,c),f=Math.max(t,l),p=Math.max(n,c),m=0;m<i.value.length;m++)for(var b=i.value[m],v=0;v<b.length;v++)m>=d&&m<=f&&v>=s&&v<=p&&u.push("".concat(m,"_").concat(v));return u}));Object(j["watch"])(g,(function(e,t){Object(Y["isEqual"])(e,t)||n("changeSelectedCells",g.value)}));var x=Object(j["computed"])((function(){return g.value.length>1?null:g.value[0]})),C=Object(j["computed"])((function(){if(!a.value.length)return null;var e=Object(At["a"])(a.value,2),t=e[0],n=e[1];if(!r.value.length)return{row:[t,t],col:[n,n]};var o=Object(At["a"])(r.value,2),l=o[0],c=o[1];if(t===l&&n===c)return{row:[t,t],col:[n,n]};var i=Math.min(t,l),u=Math.min(n,c),d=Math.max(t,l),s=Math.max(n,c);return{row:[i,d],col:[u,s]}})),k=function(){return c.value=!1},w=function(e,t,n){0===e.button&&(r.value=[],c.value=!0,a.value=[t,n])},E=function(e,t){c.value&&(r.value=[e,t])};Object(j["onMounted"])((function(){document.addEventListener("mouseup",k)})),Object(j["onUnmounted"])((function(){document.removeEventListener("mouseup",k)}));var I=function(e,t){return O.value.includes("".concat(e,"_").concat(t))},V=function(e){var t=i.value.length-1;a.value=[0,e],r.value=[t,e]},B=function(e){var t=i.value[e].length-1;a.value=[e,0],r.value=[e,t]},L=function(){var e=i.value.length-1,t=i.value[e].length-1;a.value=[0,0],r.value=[e,t]},T=function(e){for(var t=JSON.parse(JSON.stringify(i.value)),n=i.value[e],o=[],l=0;l<n.length;l++)I(e,l)&&o.push(l);for(var c=0,a=o;c<a.length;c++)for(var r=a[c],u=e;u>=0;u--)if(!I(u,r)){t[u][r].rowspan=t[u][r].rowspan-1;break}t.splice(e,1),i.value=t},M=function(e){for(var t=JSON.parse(JSON.stringify(i.value)),o=[],l=0;l<i.value.length;l++)I(l,e)&&o.push(l);for(var c=0,a=o;c<a.length;c++)for(var r=a[c],u=e;u>=0;u--)if(!I(r,u)){t[r][u].colspan=t[r][u].colspan-1;break}i.value=t.map((function(t){return t.splice(e,1),t})),f.value.splice(e,1),n("changeColWidths",f.value)},_=function(e){for(var t=JSON.parse(JSON.stringify(i.value)),n=[],o=0;o<t[0].length;o++)n.push({colspan:1,rowspan:1,text:"",id:Oe()});t.splice(e,0,n),i.value=t},D=function(e){i.value=i.value.map((function(t){var n={colspan:1,rowspan:1,text:"",id:Oe()};return t.splice(e,0,n),t})),f.value.splice(e,0,100),n("changeColWidths",f.value)},z=function(e,t){var o=JSON.parse(JSON.stringify(i.value)),l={colspan:1,rowspan:1,text:""};if(e){for(var c=[],a=0;a<e;a++){for(var r=[],u=0;u<o[0].length;u++)r.push(Object(S["a"])(Object(S["a"])({},l),{},{id:Oe()}));c.push(r)}o=[].concat(Object(W["a"])(o),c)}t&&(o=o.map((function(e){for(var n=[],o=0;o<t;o++){var c=Object(S["a"])(Object(S["a"])({},l),{},{id:Oe()});n.push(c)}return[].concat(Object(W["a"])(e),n)})),f.value=[].concat(Object(W["a"])(f.value),Object(W["a"])(new Array(t).fill(100))),n("changeColWidths",f.value)),i.value=o},A=function(){var e=Object(At["a"])(a.value,2),t=e[0],n=e[1],o=Object(At["a"])(r.value,2),l=o[0],c=o[1],u=Math.min(t,l),d=Math.min(n,c),s=Math.max(t,l),f=Math.max(n,c),p=JSON.parse(JSON.stringify(i.value));p[u][d].rowspan=s-u+1,p[u][d].colspan=f-d+1,i.value=p,m()},F=function(e,t){var n=JSON.parse(JSON.stringify(i.value));n[e][t].rowspan=1,n[e][t].colspan=1,i.value=n,m()},R=function(e,t){m();var o=!0,c=f.value[t],a=e.pageX,r=50;document.onmousemove=function(e){if(o){var n=(e.pageX-a)/l.value,i=c+n<r?r:Math.round(c+n);f.value[t]=i}},document.onmouseup=function(){o=!1,document.onmousemove=null,document.onmouseup=null,n("changeColWidths",f.value)}},P=function(){for(var e=JSON.parse(JSON.stringify(i.value)),t=0;t<e.length;t++)for(var n=0;n<e[t].length;n++)g.value.includes("".concat(t,"_").concat(n))&&(e[t][n].text="");i.value=e},H=function(){var e=function e(t,n){return i.value[t]?i.value[t][n]?I(t,n)?e(t,n+1):[t,n]:e(t+1,0):null};r.value=[];var t=a.value[0],n=a.value[1]+1,o=e(t,n);o?a.value=o:(_(t+1),a.value=[t+1,0]),Object(j["nextTick"])((function(){var e=document.querySelector(".cell-text.active");e&&e.focus()}))},q=function(t){if(e.editable&&g.value.length){var n=t.key.toUpperCase();if(g.value.length<2){if(n===N.TAB&&(t.preventDefault(),H()),t.ctrlKey&&n===N.UP){t.preventDefault();var o=+g.value[0].split("_")[0];_(o)}if(t.ctrlKey&&n===N.DOWN){t.preventDefault();var l=+g.value[0].split("_")[0];_(l+1)}if(t.ctrlKey&&n===N.LEFT){t.preventDefault();var c=+g.value[0].split("_")[1];D(c)}if(t.ctrlKey&&n===N.RIGHT){t.preventDefault();var a=+g.value[0].split("_")[1];D(a+1)}}else n===N.DELETE&&P()}};Object(j["onMounted"])((function(){document.addEventListener("keydown",q)})),Object(j["onUnmounted"])((function(){document.removeEventListener("keydown",q)}));var X=Object(Y["debounce"])((function(e,t,o){i.value[t][o].text=e,n("change",i.value)}),300,{trailing:!0}),G=function(e,t,o){var l=e.length,c=e[0].length,a=0,r=0;t+l>i.value.length&&(a=t+l-i.value.length),o+c>i.value[0].length&&(r=o+c-i.value[0].length),(a||r)&&z(a,r),Object(j["nextTick"])((function(){for(var a=0;a<l;a++)for(var r=0;r<c;r++)i.value[t+a][o+r]&&(i.value[t+a][o+r].text=e[a][r]);n("change",i.value)}))},U=function(){for(var e=[],t=0;t<i.value.length;t++){for(var n=i.value[t],o=[],l=0;l<n.length;l++)I(t,l)||o.push(n[l]);o.length&&e.push(o)}return e},Z=function(){var e=U(),t=e.length>1,n=e[0].length>1;return{canDeleteRow:t,canDeleteCol:n}},J=function(e,t){var n=g.value.length>1,o=i.value[e][t],l=n,c=!n&&(o.rowspan>1||o.colspan>1);return{canMerge:l,canSplit:c}},K=function(e){var t=e.dataset.cellIndex,n=+t.split("_")[0],o=+t.split("_")[1];g.value.includes("".concat(n,"_").concat(o))||(a.value=[n,o],r.value=[]);var l=J(n,o),c=l.canMerge,i=l.canSplit,u=Z(),d=u.canDeleteRow,s=u.canDeleteCol;return[{text:"插入列",children:[{text:"到左侧",handler:function(){return D(o)}},{text:"到右侧",handler:function(){return D(o+1)}}]},{text:"插入行",children:[{text:"到上方",handler:function(){return _(n)}},{text:"到下方",handler:function(){return _(n+1)}}]},{text:"删除列",disable:!s,handler:function(){return M(o)}},{text:"删除行",disable:!d,handler:function(){return T(n)}},{divider:!0},{text:"合并单元格",disable:!c,handler:A},{text:"取消合并单元格",disable:!i,handler:function(){return F(n,o)}},{divider:!0},{text:"选中当前列",handler:function(){return V(o)}},{text:"选中当前行",handler:function(){return B(n)}},{text:"选中全部单元格",handler:L}]};return{getTextStyle:aa,dragLinePosition:b,tableCells:i,colSizeList:f,totalWidth:p,hideCells:O,selectedCells:g,activedCell:x,selectedRange:C,handleCellMousedown:w,handleCellMouseenter:E,selectCol:V,selectRow:B,handleMousedownColHandler:R,contextmenus:K,handleInput:X,insertExcelData:G,subThemeColor:s,formatText:ra}}});n("a215");const va=Sn()(ba,[["render",ca],["__scopeId","data-v-c0c56b6e"]]);var ha=va,Oa=Object(j["defineComponent"])({name:"editable-element-table",components:{EditableTable:ha},props:{elementInfo:{type:Object,required:!0},selectElement:{type:Function,required:!0},contextmenus:{type:Function}},setup:function(e){var t=$(),n=Q(),o=Object(y["c"])(t),l=o.canvasScale,c=o.handleElementId,a=o.isScaling,r=Object(j["ref"])(),i=Pe(),u=i.addHistorySnapshot,d=function(t){e.elementInfo.lock||(t.stopPropagation(),e.selectElement(t,e.elementInfo))},s=Object(j["ref"])(!1);Object(j["watch"])(c,(function(){c.value!==e.elementInfo.id&&(s.value=!1)})),Object(j["watch"])(s,(function(){t.setDisableHotkeysState(s.value)}));var f=function(){e.elementInfo.lock||(s.value=!0)},p=Object(j["ref"])(-1);Object(j["watch"])(a,(function(){c.value===e.elementInfo.id&&(a.value&&(s.value=!1),a.value||-1===p.value||(n.updateElement({id:e.elementInfo.id,props:{height:p.value}}),p.value=-1))}));var m=function(t){var o=t[0].contentRect;if(r.value){var l=o.height;e.elementInfo.height!==l&&(a.value?p.value=l:n.updateElement({id:e.elementInfo.id,props:{height:l}}))}},b=new ResizeObserver(m);Object(j["onMounted"])((function(){r.value&&b.observe(r.value)})),Object(j["onUnmounted"])((function(){r.value&&b.unobserve(r.value)}));var v=function(t){n.updateElement({id:e.elementInfo.id,props:{data:t}}),u()},h=function(t){var o=t.reduce((function(e,t){return e+t})),l=t.map((function(e){return e/o}));n.updateElement({id:e.elementInfo.id,props:{width:o,colWidths:l}}),u()},O=function(e){Object(j["nextTick"])((function(){return t.setSelectedTableCells(e)}))};return{elementRef:r,canvasScale:l,handleSelectElement:d,updateTableCells:v,updateColWidths:h,editable:s,startEdit:f,updateSelectedCells:O}}});n("11f0");const ja=Sn()(Oa,[["render",$c],["__scopeId","data-v-426704b7"]]);var ya=ja,ga=["width","height","stroke","stroke-width"],xa=["transform"],Ca=["d"];function ka(e,t,n,o,l,c){var a=Object(j["resolveDirective"])("contextmenu");return Object(j["openBlock"])(),Object(j["createElementBlock"])("div",{class:Object(j["normalizeClass"])(["editable-element-latex",{lock:e.elementInfo.lock}]),style:Object(j["normalizeStyle"])({top:e.elementInfo.top+"px",left:e.elementInfo.left+"px",width:e.elementInfo.width+"px",height:e.elementInfo.height+"px"})},[Object(j["createElementVNode"])("div",{class:"rotate-wrapper",style:Object(j["normalizeStyle"])({transform:"rotate(".concat(e.elementInfo.rotate,"deg)")})},[Object(j["withDirectives"])(Object(j["createElementVNode"])("div",{class:"element-content",onMousedown:t[0]||(t[0]=function(t){return e.handleSelectElement(t)}),onDblclick:t[1]||(t[1]=function(t){return e.openLatexEditor()})},[(Object(j["openBlock"])(),Object(j["createElementBlock"])("svg",{overflow:"visible",width:e.elementInfo.width,height:e.elementInfo.height,stroke:e.elementInfo.color,"stroke-width":e.elementInfo.strokeWidth,fill:"none","stroke-linecap":"round","stroke-linejoin":"round"},[Object(j["createElementVNode"])("g",{transform:"scale(".concat(e.elementInfo.width/e.elementInfo.viewBox[0],", ").concat(e.elementInfo.height/e.elementInfo.viewBox[1],") translate(0,0) matrix(1,0,0,1,0,0)")},[Object(j["createElementVNode"])("path",{d:e.elementInfo.path},null,8,Ca)],8,xa)],8,ga))],544),[[a,e.contextmenus]])],4)],6)}var wa=Object(j["defineComponent"])({name:"editable-element-latex",props:{elementInfo:{type:Object,required:!0},selectElement:{type:Function,required:!0},contextmenus:{type:Function}},setup:function(e){var t=function(t){e.elementInfo.lock||(t.stopPropagation(),e.selectElement(t,e.elementInfo))},n=function(){Kl.emit(sl.OPEN_LATEX_EDITOR)};return{handleSelectElement:t,openLatexEditor:n}}});n("1190");const Ea=Sn()(wa,[["render",ka],["__scopeId","data-v-3168526a"]]);var Na=Ea;function Ia(e,t,n,o,l,c){var a=Object(j["resolveComponent"])("VideoPlayer"),r=Object(j["resolveDirective"])("contextmenu");return Object(j["openBlock"])(),Object(j["createElementBlock"])("div",{class:Object(j["normalizeClass"])(["editable-element-video",{lock:e.elementInfo.lock}]),style:Object(j["normalizeStyle"])({top:e.elementInfo.top+"px",left:e.elementInfo.left+"px",width:e.elementInfo.width+"px",height:e.elementInfo.height+"px"})},[Object(j["createElementVNode"])("div",{class:"rotate-wrapper",style:Object(j["normalizeStyle"])({transform:"rotate(".concat(e.elementInfo.rotate,"deg)")})},[Object(j["withDirectives"])(Object(j["createElementVNode"])("div",{class:"element-content",onMousedown:t[1]||(t[1]=function(t){return e.handleSelectElement(t,!1)})},[Object(j["createVNode"])(a,{width:e.elementInfo.width,height:e.elementInfo.height,src:e.elementInfo.src,poster:e.elementInfo.poster,scale:e.canvasScale},null,8,["width","height","src","poster","scale"]),(Object(j["openBlock"])(),Object(j["createElementBlock"])(j["Fragment"],null,Object(j["renderList"])(["t","b","l","r"],(function(n){return Object(j["createElementVNode"])("div",{class:Object(j["normalizeClass"])(["handler-border",n]),key:n,onMousedown:t[0]||(t[0]=function(t){return e.handleSelectElement(t)})},null,34)})),64))],544),[[r,e.contextmenus]])],4)],6)}var Va=function(e){return Object(j["pushScopeId"])("data-v-e716fb74"),e=e(),Object(j["popScopeId"])(),e},Sa=["src","poster"],Ba={class:"bezel"},La=Va((function(){return Object(j["createElementVNode"])("div",{class:"controller-mask"},null,-1)})),Ta={class:"controller"},Ma={class:"icons icons-left"},_a={class:"icon-content"},Da={class:"volume"},za={class:"icon-content"},Aa={class:"volume-bar",ref:"volumeBarRef"},Fa=Va((function(){return Object(j["createElementVNode"])("span",{class:"thumb"},null,-1)})),Ra=[Fa],Pa={class:"time"},Ha={class:"ptime"},qa=Object(j["createTextVNode"])(" / "),Xa={class:"dtime"},Wa={class:"icons icons-right"},Ga={class:"speed"},Ua={class:"icon speed-icon"},Ya=["onClick"],Za=Va((function(){return Object(j["createElementVNode"])("span",{class:"icon-content"},"循环",-1)})),Ja=[Za],Ka={class:"bar"},Qa=Va((function(){return Object(j["createElementVNode"])("span",{class:"thumb"},null,-1)})),$a=[Qa];function er(e,t,n,o,l,c){var a=Object(j["resolveComponent"])("IconPause"),r=Object(j["resolveComponent"])("IconPlayOne"),i=Object(j["resolveComponent"])("IconVolumeMute"),u=Object(j["resolveComponent"])("IconVolumeNotice"),d=Object(j["resolveComponent"])("IconVolumeSmall");return Object(j["openBlock"])(),Object(j["createElementBlock"])("div",{class:Object(j["normalizeClass"])(["video-player",{"hide-controller":e.hideController}]),style:Object(j["normalizeStyle"])({width:e.width*e.scale+"px",height:e.height*e.scale+"px",transform:"scale(".concat(1/e.scale,")")}),onMousemove:t[22]||(t[22]=function(t){return e.autoHideController()}),onClick:t[23]||(t[23]=function(t){return e.autoHideController()})},[Object(j["createElementVNode"])("div",{class:"video-wrap",onClick:t[8]||(t[8]=function(t){return e.toggle()})},[Object(j["createElementVNode"])("video",{class:"video",ref:"videoRef",src:e.src,poster:e.poster,"webkit-playsinline":"",playsinline:"",onDurationchange:t[0]||(t[0]=function(t){return e.handleDurationchange()}),onTimeupdate:t[1]||(t[1]=function(t){return e.handleTimeupdate()}),onEnded:t[2]||(t[2]=function(t){return e.handleEnded()}),onProgress:t[3]||(t[3]=function(t){return e.handleProgress()}),onPlay:t[4]||(t[4]=function(t){return e.autoHideController()}),onPause:t[5]||(t[5]=function(t){return e.autoHideController()}),onError:t[6]||(t[6]=function(t){return e.handleError()})},null,40,Sa),Object(j["createElementVNode"])("div",Ba,[Object(j["createElementVNode"])("span",{class:Object(j["normalizeClass"])(["bezel-icon",{"bezel-transition":e.bezelTransition}]),onAnimationend:t[7]||(t[7]=function(t){return e.bezelTransition=!1})},[e.paused?(Object(j["openBlock"])(),Object(j["createBlock"])(a,{key:0})):(Object(j["openBlock"])(),Object(j["createBlock"])(r,{key:1}))],34)])]),La,Object(j["createElementVNode"])("div",Ta,[Object(j["createElementVNode"])("div",Ma,[Object(j["createElementVNode"])("div",{class:"icon play-icon",onClick:t[9]||(t[9]=function(t){return e.toggle()})},[Object(j["createElementVNode"])("span",_a,[e.paused?(Object(j["openBlock"])(),Object(j["createBlock"])(r,{key:0})):(Object(j["openBlock"])(),Object(j["createBlock"])(a,{key:1}))])]),Object(j["createElementVNode"])("div",Da,[Object(j["createElementVNode"])("div",{class:"icon volume-icon",onClick:t[10]||(t[10]=function(t){return e.toggleVolume()})},[Object(j["createElementVNode"])("span",za,[0===e.volume?(Object(j["openBlock"])(),Object(j["createBlock"])(i,{key:0})):1===e.volume?(Object(j["openBlock"])(),Object(j["createBlock"])(u,{key:1})):(Object(j["openBlock"])(),Object(j["createBlock"])(d,{key:2}))])]),Object(j["createElementVNode"])("div",{class:"volume-bar-wrap",onMousedown:t[11]||(t[11]=function(t){return e.handleMousedownVolumeBar(t)}),onTouchstart:t[12]||(t[12]=function(t){return e.handleMousedownVolumeBar(t)}),onClick:t[13]||(t[13]=function(t){return e.handleClickVolumeBar(t)})},[Object(j["createElementVNode"])("div",Aa,[Object(j["createElementVNode"])("div",{class:"volume-bar-inner",style:Object(j["normalizeStyle"])({width:e.volumeBarWidth})},Ra,4)],512)],32)]),Object(j["createElementVNode"])("span",Pa,[Object(j["createElementVNode"])("span",Ha,Object(j["toDisplayString"])(e.ptime),1),qa,Object(j["createElementVNode"])("span",Xa,Object(j["toDisplayString"])(e.dtime),1)])]),Object(j["createElementVNode"])("div",Wa,[Object(j["createElementVNode"])("div",Ga,[Object(j["createElementVNode"])("div",Ua,[Object(j["createElementVNode"])("span",{class:"icon-content",onClick:t[14]||(t[14]=function(t){return e.speedMenuVisible=!e.speedMenuVisible})},"倍速"),e.speedMenuVisible?(Object(j["openBlock"])(),Object(j["createElementBlock"])("div",{key:0,class:"speed-menu",onMouseleave:t[15]||(t[15]=function(t){return e.speedMenuVisible=!1})},[(Object(j["openBlock"])(!0),Object(j["createElementBlock"])(j["Fragment"],null,Object(j["renderList"])(e.speedOptions,(function(t){return Object(j["openBlock"])(),Object(j["createElementBlock"])("div",{class:Object(j["normalizeClass"])(["speed-menu-item",{active:t.value===e.playbackRate}]),key:t.label,onClick:function(n){return e.speed(t.value)}},Object(j["toDisplayString"])(t.label),11,Ya)})),128))],32)):Object(j["createCommentVNode"])("",!0)])]),Object(j["createElementVNode"])("div",{class:"loop",onClick:t[16]||(t[16]=function(t){return e.toggleLoop()})},[Object(j["createElementVNode"])("div",{class:Object(j["normalizeClass"])(["icon loop-icon",{active:e.loop}])},Ja,2)])]),Object(j["createElementVNode"])("div",{class:"bar-wrap",ref:"playBarWrap",onMousedown:t[17]||(t[17]=function(t){return e.handleMousedownPlayBar(t)}),onTouchstart:t[18]||(t[18]=function(t){return e.handleMousedownPlayBar(t)}),onMousemove:t[19]||(t[19]=function(t){return e.handleMousemovePlayBar(t)}),onMouseenter:t[20]||(t[20]=function(t){return e.playBarTimeVisible=!0}),onMouseleave:t[21]||(t[21]=function(t){return e.playBarTimeVisible=!1})},[Object(j["createElementVNode"])("div",{class:Object(j["normalizeClass"])(["bar-time",{hidden:!e.playBarTimeVisible}]),style:Object(j["normalizeStyle"])({left:e.playBarTimeLeft})},Object(j["toDisplayString"])(e.playBarTime),7),Object(j["createElementVNode"])("div",Ka,[Object(j["createElementVNode"])("div",{class:"loaded",style:Object(j["normalizeStyle"])({width:e.loadedBarWidth})},null,4),Object(j["createElementVNode"])("div",{class:"played",style:Object(j["normalizeStyle"])({width:e.playedBarWidth})},$a,4)])],544)])],38)}var tr=function(e,t){Object(j["onMounted"])((function(){if(t.value){var n="normal";if(/m3u8(#|\?|$)/i.exec(e)?n="hls":/.flv(#|\?|$)/i.exec(e)&&(n="flv"),t.value&&"hls"===n&&(t.value.canPlayType("application/x-mpegURL")||t.value.canPlayType("application/vnd.apple.mpegURL"))&&(n="normal"),"hls"===n){var o=window.Hls;if(o&&o.isSupported()){var l=new o;l.loadSource(e),l.attachMedia(t.value)}}else if("flv"===n){var c=window.flvjs;if(c&&c.isSupported()){var a=c.createPlayer({type:"flv",url:e});a.attachMediaElement(t.value),a.load()}}}}))},nr=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;if(0===e||isNaN(e))return"00:00";var t=function(e){return e<10?"0"+e:""+e},n=Math.floor(e/3600),o=Math.floor((e-3600*n)/60),l=Math.floor(e-3600*n-60*o);return(n>0?[n,o,l]:[o,l]).map(t).join(":")},or=function(e){return e.getBoundingClientRect().left},lr=Object(j["defineComponent"])({name:"video-player",props:{width:{type:Number,required:!0},height:{type:Number,required:!0},src:{type:String,required:!0},poster:{type:String,default:""},scale:{type:Number,default:1}},setup:function(e){var t=Object(j["ref"])(),n=Object(j["ref"])(),o=Object(j["ref"])(),l=Object(j["ref"])(.5),c=Object(j["ref"])(!0),a=Object(j["ref"])(0),r=Object(j["ref"])(0),i=Object(j["ref"])(0),u=Object(j["ref"])(!1),d=Object(j["ref"])(!1),s=Object(j["ref"])(1),f=Object(j["ref"])(!1),p=Object(j["ref"])("00:00"),m=Object(j["ref"])("0"),b=Object(j["computed"])((function(){return nr(a.value)})),v=Object(j["computed"])((function(){return nr(r.value)})),h=Object(j["computed"])((function(){return a.value/r.value*100+"%"})),O=Object(j["computed"])((function(){return i.value/r.value*100+"%"})),y=Object(j["computed"])((function(){return 100*l.value+"%"})),g=Object(j["ref"])(!1),x=[{label:"2x",value:2},{label:"1.5x",value:1.5},{label:"1.25x",value:1.25},{label:"1x",value:1},{label:"0.75x",value:.75},{label:"0.5x",value:.5}],C=function(e){t.value&&(e=Math.max(e,0),e=Math.min(e,r.value),t.value.currentTime=e,a.value=e)},k=function(){t.value&&(c.value=!1,t.value.play(),d.value=!0)},w=function(){t.value&&(c.value=!0,t.value.pause(),d.value=!0)},E=function(){c.value?k():w()},N=function(e){t.value&&(e=Math.max(e,0),e=Math.min(e,1),t.value.volume=e,l.value=e,t.value.muted&&0!==e&&(t.value.muted=!1))},I=function(e){t.value&&(t.value.playbackRate=e),s.value=e},V=function(){var e;r.value=(null===(e=t.value)||void 0===e?void 0:e.duration)||0},S=function(){var e;a.value=(null===(e=t.value)||void 0===e?void 0:e.currentTime)||0},B=function(){u.value?(C(0),k()):w()},L=function(){var e;i.value=null!==(e=t.value)&&void 0!==e&&e.buffered.length?t.value.buffered.end(t.value.buffered.length-1):0},T=function(){return he["a"].error("视频加载失败")},M=function(e){if(t.value&&n.value){var o="clientX"in e?e.clientX:e.changedTouches[0].clientX,l=(o-or(n.value))/n.value.clientWidth;l=Math.max(l,0),l=Math.min(l,1);var c=l*r.value;t.value.currentTime=c,a.value=c}},_=function e(o){if(t.value&&n.value){var l="clientX"in o?o.clientX:o.changedTouches[0].clientX,c=(l-or(n.value))/n.value.clientWidth;c=Math.max(c,0),c=Math.min(c,1);var i=c*r.value;t.value.currentTime=i,a.value=i,document.removeEventListener("mousemove",M),document.removeEventListener("touchmove",M),document.removeEventListener("mouseup",e),document.removeEventListener("touchend",e)}},D=function(){document.addEventListener("mousemove",M),document.addEventListener("touchmove",M),document.addEventListener("mouseup",_),document.addEventListener("touchend",_)},z=function(e){if(o.value){var t="clientX"in e?e.clientX:e.changedTouches[0].clientX,n=(t-or(o.value)-5.5)/35;N(n)}},A=function e(){document.removeEventListener("mousemove",z),document.removeEventListener("touchmove",z),document.removeEventListener("mouseup",e),document.removeEventListener("touchend",e)},F=function(){document.addEventListener("mousemove",z),document.addEventListener("touchmove",z),document.addEventListener("mouseup",A),document.addEventListener("touchend",A)},R=function(e){if(o.value){var t=(e.clientX-or(o.value)-5.5)/35;N(t)}},P=function(e){if(r.value&&n.value){var t=n.value.getBoundingClientRect().left,o=e.clientX-t;if(o<0||o>n.value.offsetWidth)return;var l=r.value*(o/n.value.offsetWidth);m.value="".concat(o-(l>=3600?25:20),"px"),p.value=nr(l),f.value=!0}},H=function(){t.value&&(t.value.muted?(t.value.muted=!1,N(.5)):(t.value.muted=!0,N(0)))},q=function(){u.value=!u.value},X=Object(j["ref"])(-1),W=Object(j["ref"])(!1),G=function(){W.value=!1,clearTimeout(X.value),X.value=setTimeout((function(){var e;null!==(e=t.value)&&void 0!==e&&e.played.length&&(W.value=!0)}),3e3)};return tr(e.src,t),{videoRef:t,playBarWrap:n,volumeBarRef:o,volume:l,loop:u,paused:c,ptime:b,dtime:v,playBarTime:p,playBarTimeVisible:f,playBarTimeLeft:m,playedBarWidth:h,loadedBarWidth:O,volumeBarWidth:y,hideController:W,bezelTransition:d,playbackRate:s,speedMenuVisible:g,speedOptions:x,seek:C,play:k,pause:w,toggle:E,setVolume:N,speed:I,handleDurationchange:V,handleTimeupdate:S,handleEnded:B,handleProgress:L,handleMousedownPlayBar:D,handleMousedownVolumeBar:F,handleClickVolumeBar:R,handleMousemovePlayBar:P,toggleVolume:H,toggleLoop:q,autoHideController:G,handleError:T}}});n("a7fe");const cr=Sn()(lr,[["render",er],["__scopeId","data-v-e716fb74"]]);var ar=cr,rr=Object(j["defineComponent"])({name:"editable-element-video",components:{VideoPlayer:ar},props:{elementInfo:{type:Object,required:!0},selectElement:{type:Function,required:!0},contextmenus:{type:Function}},setup:function(e){var t=Object(y["c"])($()),n=t.canvasScale,o=function(t){var n=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];e.elementInfo.lock||(t.stopPropagation(),e.selectElement(t,e.elementInfo,n))};return{canvasScale:n,handleSelectElement:o}}});n("de30");const ir=Sn()(rr,[["render",Ia],["__scopeId","data-v-7f80f8ee"]]);var ur=ir;function dr(e,t,n,o,l,c){var a=Object(j["resolveComponent"])("IconVolumeNotice"),r=Object(j["resolveComponent"])("AudioPlayer"),i=Object(j["resolveDirective"])("contextmenu");return Object(j["openBlock"])(),Object(j["createElementBlock"])("div",{class:Object(j["normalizeClass"])(["editable-element-audio",{lock:e.elementInfo.lock}]),style:Object(j["normalizeStyle"])({top:e.elementInfo.top+"px",left:e.elementInfo.left+"px",width:e.elementInfo.width+"px",height:e.elementInfo.height+"px"})},[Object(j["createElementVNode"])("div",{class:"rotate-wrapper",style:Object(j["normalizeStyle"])({transform:"rotate(".concat(e.elementInfo.rotate,"deg)")})},[Object(j["withDirectives"])(Object(j["createElementVNode"])("div",{class:"element-content",onMousedown:t[1]||(t[1]=function(t){return e.handleSelectElement(t)})},[Object(j["createVNode"])(a,{class:"audio-icon",style:Object(j["normalizeStyle"])({fontSize:e.audioIconSize,color:e.elementInfo.color})},null,8,["style"]),e.handleElementId===e.elementInfo.id?(Object(j["openBlock"])(),Object(j["createBlock"])(r,{key:0,class:"audio-player",style:Object(j["normalizeStyle"])(Object(S["a"])({},e.audioPlayerPosition)),src:e.elementInfo.src,loop:e.elementInfo.loop,scale:e.canvasScale,onMousedown:t[0]||(t[0]=Object(j["withModifiers"])((function(){}),["stop"]))},null,8,["style","src","loop","scale"])):Object(j["createCommentVNode"])("",!0)],544),[[i,e.contextmenus]])],4)],6)}var sr=function(e){return Object(j["pushScopeId"])("data-v-5cabbb47"),e=e(),Object(j["popScopeId"])(),e},fr=["src","autoplay"],pr={class:"controller"},mr={class:"icons"},br={class:"icon-content"},vr={class:"volume"},hr={class:"icon-content"},Or={class:"volume-bar",ref:"volumeBarRef"},jr=sr((function(){return Object(j["createElementVNode"])("span",{class:"thumb"},null,-1)})),yr=[jr],gr={class:"time"},xr={class:"ptime"},Cr=Object(j["createTextVNode"])(" / "),kr={class:"dtime"},wr={class:"bar"},Er=sr((function(){return Object(j["createElementVNode"])("span",{class:"thumb"},null,-1)})),Nr=[Er];function Ir(e,t,n,o,l,c){var a=Object(j["resolveComponent"])("IconPlayOne"),r=Object(j["resolveComponent"])("IconPause"),i=Object(j["resolveComponent"])("IconVolumeMute"),u=Object(j["resolveComponent"])("IconVolumeNotice"),d=Object(j["resolveComponent"])("IconVolumeSmall");return Object(j["openBlock"])(),Object(j["createElementBlock"])("div",{class:"audio-player",style:Object(j["normalizeStyle"])({transform:"scale(".concat(1/e.scale,")")})},[Object(j["createElementVNode"])("audio",{class:"audio",ref:"audioRef",src:e.src,autoplay:e.autoplay,onDurationchange:t[0]||(t[0]=function(t){return e.handleDurationchange()}),onTimeupdate:t[1]||(t[1]=function(t){return e.handleTimeupdate()}),onPlay:t[2]||(t[2]=function(t){return e.handlePlayed()}),onEnded:t[3]||(t[3]=function(t){return e.handleEnded()}),onProgress:t[4]||(t[4]=function(t){return e.handleProgress()}),onError:t[5]||(t[5]=function(t){return e.handleError()})},null,40,fr),Object(j["createElementVNode"])("div",pr,[Object(j["createElementVNode"])("div",mr,[Object(j["createElementVNode"])("div",{class:"icon play-icon",onClick:t[6]||(t[6]=function(t){return e.toggle()})},[Object(j["createElementVNode"])("span",br,[e.paused?(Object(j["openBlock"])(),Object(j["createBlock"])(a,{key:0})):(Object(j["openBlock"])(),Object(j["createBlock"])(r,{key:1}))])]),Object(j["createElementVNode"])("div",vr,[Object(j["createElementVNode"])("div",{class:"icon volume-icon",onClick:t[7]||(t[7]=function(t){return e.toggleVolume()})},[Object(j["createElementVNode"])("span",hr,[0===e.volume?(Object(j["openBlock"])(),Object(j["createBlock"])(i,{key:0})):1===e.volume?(Object(j["openBlock"])(),Object(j["createBlock"])(u,{key:1})):(Object(j["openBlock"])(),Object(j["createBlock"])(d,{key:2}))])]),Object(j["createElementVNode"])("div",{class:"volume-bar-wrap",onMousedown:t[8]||(t[8]=function(t){return e.handleMousedownVolumeBar(t)}),onTouchstart:t[9]||(t[9]=function(t){return e.handleMousedownVolumeBar(t)}),onClick:t[10]||(t[10]=function(t){return e.handleClickVolumeBar(t)})},[Object(j["createElementVNode"])("div",Or,[Object(j["createElementVNode"])("div",{class:"volume-bar-inner",style:Object(j["normalizeStyle"])({width:e.volumeBarWidth})},yr,4)],512)],32)])]),Object(j["createElementVNode"])("span",gr,[Object(j["createElementVNode"])("span",xr,Object(j["toDisplayString"])(e.ptime),1),Cr,Object(j["createElementVNode"])("span",kr,Object(j["toDisplayString"])(e.dtime),1)]),Object(j["createElementVNode"])("div",{class:"bar-wrap",ref:"playBarWrap",onMousedown:t[11]||(t[11]=function(t){return e.handleMousedownPlayBar(t)}),onTouchstart:t[12]||(t[12]=function(t){return e.handleMousedownPlayBar(t)}),onMousemove:t[13]||(t[13]=function(t){return e.handleMousemovePlayBar(t)}),onMouseenter:t[14]||(t[14]=function(t){return e.playBarTimeVisible=!0}),onMouseleave:t[15]||(t[15]=function(t){return e.playBarTimeVisible=!1})},[Object(j["createElementVNode"])("div",{class:Object(j["normalizeClass"])(["bar-time",{hidden:!e.playBarTimeVisible}]),style:Object(j["normalizeStyle"])({left:e.playBarTimeLeft})},Object(j["toDisplayString"])(e.playBarTime),7),Object(j["createElementVNode"])("div",wr,[Object(j["createElementVNode"])("div",{class:"loaded",style:Object(j["normalizeStyle"])({width:e.loadedBarWidth})},null,4),Object(j["createElementVNode"])("div",{class:"played",style:Object(j["normalizeStyle"])({width:e.playedBarWidth})},Nr,4)])],544)])],4)}var Vr=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;if(0===e||isNaN(e))return"00:00";var t=function(e){return e<10?"0"+e:""+e},n=Math.floor(e/3600),o=Math.floor((e-3600*n)/60),l=Math.floor(e-3600*n-60*o);return(n>0?[n,o,l]:[o,l]).map(t).join(":")},Sr=function(e){return e.getBoundingClientRect().left},Br=Object(j["defineComponent"])({name:"audio-player",props:{src:{type:String,required:!0},loop:{type:Boolean,required:!0},autoplay:{type:Boolean,default:!1},scale:{type:Number,default:1}},setup:function(e){var t=Object(j["ref"])(),n=Object(j["ref"])(),o=Object(j["ref"])(),l=Object(j["ref"])(.5),c=Object(j["ref"])(!0),a=Object(j["ref"])(0),r=Object(j["ref"])(0),i=Object(j["ref"])(0),u=Object(j["ref"])(!1),d=Object(j["ref"])("00:00"),s=Object(j["ref"])("0"),f=Object(j["computed"])((function(){return Vr(a.value)})),p=Object(j["computed"])((function(){return Vr(r.value)})),m=Object(j["computed"])((function(){return a.value/r.value*100+"%"})),b=Object(j["computed"])((function(){return i.value/r.value*100+"%"})),v=Object(j["computed"])((function(){return 100*l.value+"%"})),h=function(e){t.value&&(e=Math.max(e,0),e=Math.min(e,r.value),t.value.currentTime=e,a.value=e)},O=function(){t.value&&(c.value=!1,t.value.play())},y=function(){t.value&&(c.value=!0,t.value.pause())},g=function(){c.value?O():y()},x=function(e){t.value&&(e=Math.max(e,0),e=Math.min(e,1),t.value.volume=e,l.value=e,t.value.muted&&0!==e&&(t.value.muted=!1))},C=function(){var e;r.value=(null===(e=t.value)||void 0===e?void 0:e.duration)||0},k=function(){var e;a.value=(null===(e=t.value)||void 0===e?void 0:e.currentTime)||0},w=function(){c.value=!1},E=function(){e.loop?(h(0),O()):y()},N=function(){var e;i.value=null!==(e=t.value)&&void 0!==e&&e.buffered.length?t.value.buffered.end(t.value.buffered.length-1):0},I=function(){return he["a"].error("视频加载失败")},V=function(e){if(t.value&&n.value){var o="clientX"in e?e.clientX:e.changedTouches[0].clientX,l=(o-Sr(n.value))/n.value.clientWidth;l=Math.max(l,0),l=Math.min(l,1);var c=l*r.value;t.value.currentTime=c,a.value=c}},S=function e(o){if(t.value&&n.value){var l="clientX"in o?o.clientX:o.changedTouches[0].clientX,c=(l-Sr(n.value))/n.value.clientWidth;c=Math.max(c,0),c=Math.min(c,1);var i=c*r.value;t.value.currentTime=i,a.value=i,document.removeEventListener("mousemove",V),document.removeEventListener("touchmove",V),document.removeEventListener("mouseup",e),document.removeEventListener("touchend",e)}},B=function(){document.addEventListener("mousemove",V),document.addEventListener("touchmove",V),document.addEventListener("mouseup",S),document.addEventListener("touchend",S)},L=function(e){if(o.value){var t="clientX"in e?e.clientX:e.changedTouches[0].clientX,n=(t-Sr(o.value)-5.5)/35;x(n)}},T=function e(){document.removeEventListener("mousemove",L),document.removeEventListener("touchmove",L),document.removeEventListener("mouseup",e),document.removeEventListener("touchend",e)},M=function(){document.addEventListener("mousemove",L),document.addEventListener("touchmove",L),document.addEventListener("mouseup",T),document.addEventListener("touchend",T)},_=function(e){if(o.value){var t=(e.clientX-Sr(o.value)-5.5)/35;x(t)}},D=function(e){if(r.value&&n.value){var t=n.value.getBoundingClientRect().left,o=e.clientX-t;if(o<0||o>n.value.offsetWidth)return;var l=r.value*(o/n.value.offsetWidth);s.value="".concat(o-(l>=3600?25:20),"px"),d.value=Vr(l),u.value=!0}},z=function(){t.value&&(t.value.muted?(t.value.muted=!1,x(.5)):(t.value.muted=!0,x(0)))};return{audioRef:t,playBarWrap:n,volumeBarRef:o,volume:l,paused:c,ptime:f,dtime:p,playBarTime:d,playBarTimeVisible:u,playBarTimeLeft:s,playedBarWidth:m,loadedBarWidth:b,volumeBarWidth:v,play:O,pause:y,toggle:g,setVolume:x,handleDurationchange:C,handleTimeupdate:k,handlePlayed:w,handleEnded:E,handleProgress:N,handleError:I,handleMousedownPlayBar:B,handleMousedownVolumeBar:M,handleClickVolumeBar:_,handleMousemovePlayBar:D,toggleVolume:z}}});n("195c");const Lr=Sn()(Br,[["render",Ir],["__scopeId","data-v-5cabbb47"]]);var Tr=Lr,Mr=Object(j["defineComponent"])({name:"editable-element-audio",components:{AudioPlayer:Tr},props:{elementInfo:{type:Object,required:!0},selectElement:{type:Function,required:!0},contextmenus:{type:Function}},setup:function(e){var t=Object(y["c"])($()),n=t.canvasScale,o=t.handleElementId,l=Object(y["c"])(Q()),c=l.viewportRatio,a=Object(j["computed"])((function(){return Math.min(e.elementInfo.width,e.elementInfo.height)+"px"})),r=Object(j["computed"])((function(){var t=Xe,o=Xe*c.value,l=280/n.value,a=50/n.value,r=e.elementInfo.width,i=e.elementInfo.height,u=e.elementInfo.left,d=e.elementInfo.top,s=0,f=i;return u+l>=t&&(s=r-l),d+i+a>=o&&(f=-a),{left:s+"px",top:f+"px"}})),i=function(t){e.elementInfo.lock||(t.stopPropagation(),e.selectElement(t,e.elementInfo))};return{canvasScale:n,handleElementId:o,audioIconSize:a,audioPlayerPosition:r,handleSelectElement:i}}});n("2fee");const _r=Sn()(Mr,[["render",dr],["__scopeId","data-v-66dd4448"]]);var Dr=_r,zr=Object(j["defineComponent"])({name:"editable-element",props:{elementInfo:{type:Object,required:!0},elementIndex:{type:Number,required:!0},isMultiSelect:{type:Boolean,required:!0},selectElement:{type:Function,required:!0},openLinkDialog:{type:Function,required:!0}},setup:function(e){var t=Object(j["computed"])((function(){var t,n=(t={},Object(ce["a"])(t,to.IMAGE,Qo),Object(ce["a"])(t,to.TEXT,rc),Object(ce["a"])(t,to.SHAPE,Ec),Object(ce["a"])(t,to.LINE,Pc),Object(ce["a"])(t,to.CHART,Kc),Object(ce["a"])(t,to.TABLE,ya),Object(ce["a"])(t,to.LATEX,Na),Object(ce["a"])(t,to.VIDEO,ur),Object(ce["a"])(t,to.AUDIO,Dr),t);return n[e.elementInfo.type]||null})),n=et(),o=n.orderElement,l=no(),c=l.alignElementToCanvas,a=Je(),r=a.combineElements,i=a.uncombineElements,u=Ze(),d=u.deleteElement,s=Ye(),f=s.lockElement,p=s.unlockElement,m=Ke(),b=m.copyElement,v=m.pasteElement,h=m.cutElement,O=Qe(),y=O.selectAllElement,g=function(){return e.elementInfo.lock?[{text:"解锁",handler:function(){return p(e.elementInfo)}}]:[{text:"剪切",subText:"Ctrl + X",handler:h},{text:"复制",subText:"Ctrl + C",handler:b},{text:"粘贴",subText:"Ctrl + V",handler:v},{divider:!0},{text:"水平居中",handler:function(){return c(C.HORIZONTAL)},children:[{text:"水平垂直居中",handler:function(){return c(C.CENTER)}},{text:"水平居中",handler:function(){return c(C.HORIZONTAL)}},{text:"左对齐",handler:function(){return c(C.LEFT)}},{text:"右对齐",handler:function(){return c(C.RIGHT)}}]},{text:"垂直居中",handler:function(){return c(C.VERTICAL)},children:[{text:"水平垂直居中",handler:function(){return c(C.CENTER)}},{text:"垂直居中",handler:function(){return c(C.VERTICAL)}},{text:"顶部对齐",handler:function(){return c(C.TOP)}},{text:"底部对齐",handler:function(){return c(C.BOTTOM)}}]},{divider:!0},{text:"置于顶层",disable:e.isMultiSelect&&!e.elementInfo.groupId,handler:function(){return o(e.elementInfo,x.TOP)},children:[{text:"置于顶层",handler:function(){return o(e.elementInfo,x.TOP)}},{text:"上移一层",handler:function(){return o(e.elementInfo,x.UP)}}]},{text:"置于底层",disable:e.isMultiSelect&&!e.elementInfo.groupId,handler:function(){return o(e.elementInfo,x.BOTTOM)},children:[{text:"置于底层",handler:function(){return o(e.elementInfo,x.BOTTOM)}},{text:"下移一层",handler:function(){return o(e.elementInfo,x.DOWN)}}]},{divider:!0},{text:"设置链接",handler:e.openLinkDialog},{text:e.elementInfo.groupId?"取消组合":"组合",subText:"Ctrl + G",handler:e.elementInfo.groupId?i:r,hide:!e.isMultiSelect},{text:"全选",subText:"Ctrl + A",handler:y},{text:"锁定",subText:"Ctrl + L",handler:f},{text:"删除",subText:"Delete",handler:d}]};return{currentElementComponent:t,contextmenus:g}}});const Ar=Sn()(zr,[["render",eo]]);var Fr=Ar;function Rr(e,t,n,o,l,c){return Object(j["openBlock"])(),Object(j["createElementBlock"])("div",{class:Object(j["normalizeClass"])("mouse-selection quadrant-".concat(n.quadrant)),style:Object(j["normalizeStyle"])({top:n.top+"px",left:n.left+"px",width:n.width+"px",height:n.height+"px"})},null,6)}var Pr={name:"mouse-selection",props:{top:{type:Number,required:!0},left:{type:Number,required:!0},width:{type:Number,required:!0},height:{type:Number,required:!0},quadrant:{type:Number,required:!0,validator:function(e){return[1,2,3,4].includes(e)}}}};n("2007a");const Hr=Sn()(Pr,[["render",Rr],["__scopeId","data-v-1619c258"]]);var qr=Hr;function Xr(e,t,n,o,l,c){var a=Object(j["resolveComponent"])("GridLines");return Object(j["openBlock"])(),Object(j["createElementBlock"])("div",{class:"viewport-background",style:Object(j["normalizeStyle"])(e.backgroundStyle)},[e.showGridLines?(Object(j["openBlock"])(),Object(j["createBlock"])(a,{key:0})):Object(j["createCommentVNode"])("",!0)],4)}var Wr={class:"grid-lines"},Gr=["d","stroke"];function Ur(e,t,n,o,l,c){return Object(j["openBlock"])(),Object(j["createElementBlock"])("svg",Wr,[Object(j["createElementVNode"])("path",{style:Object(j["normalizeStyle"])({transform:"scale(".concat(e.canvasScale,")")}),d:e.path,fill:"none",stroke:e.gridColor,"stroke-width":"0.3","stroke-dasharray":"5"},null,12,Gr)])}var Yr=Object(j["defineComponent"])({name:"grid-lines",setup:function(){var e=Object(y["c"])($()),t=e.canvasScale,n=Object(y["c"])(Q()),o=n.currentSlide,l=n.viewportRatio,c=Object(j["computed"])((function(){var e;return null===(e=o.value)||void 0===e?void 0:e.background})),a=Object(j["computed"])((function(){var e,t=(null===(e=c.value)||void 0===e?void 0:e.color)||"#fff",n=["#000","#fff"];return U.a.mostReadable(t,n,{includeFallbackColors:!0}).setAlpha(.5).toRgbString()})),r=50,i=function(){for(var e=Xe,t=Xe*l.value,n="",o=0;o<=Math.floor(t/r);o++)n+="M0 ".concat(o*r," L").concat(e," ").concat(o*r," ");for(var c=0;c<=Math.floor(e/r);c++)n+="M".concat(c*r," 0 L").concat(c*r," ").concat(t," ");return n};return{canvasScale:t,gridColor:a,width:Xe,height:Xe*l.value,path:i()}}});n("ffb8");const Zr=Sn()(Yr,[["render",Ur],["__scopeId","data-v-9b94cc34"]]);var Jr=Zr,Kr=function(e){var t=Object(j["computed"])((function(){if(!e.value)return{backgroundColor:"#fff"};var t=e.value,n=t.type,o=t.color,l=t.image,c=t.imageSize,a=t.gradientColor,r=t.gradientRotate,i=t.gradientType;if("solid"===n)return{backgroundColor:o};if("image"===n)return l?"repeat"===c?{backgroundImage:"url(".concat(l),backgroundRepeat:"repeat",backgroundSize:"contain"}:{backgroundImage:"url(".concat(l),backgroundRepeat:"no-repeat",backgroundSize:c||"cover"}:{backgroundColor:"#fff"};if("gradient"===n){var u=r||0,d=a?a[0]:"#fff",s=a?a[1]:"#fff";return"radial"===i?{backgroundImage:"radial-gradient(".concat(d,", ").concat(s)}:{backgroundImage:"linear-gradient(".concat(u,"deg, ").concat(d,", ").concat(s)}}return{backgroundColor:"#fff"}}));return{backgroundStyle:t}},Qr=Object(j["defineComponent"])({name:"viewport-background",components:{GridLines:Jr},setup:function(){var e=Object(y["c"])($()),t=e.showGridLines,n=Object(y["c"])(Q()),o=n.currentSlide,l=Object(j["computed"])((function(){var e;return null===(e=o.value)||void 0===e?void 0:e.background})),c=Kr(l),a=c.backgroundStyle;return{showGridLines:t,backgroundStyle:a}}});n("06b6");const $r=Sn()(Qr,[["render",Xr],["__scopeId","data-v-4d0018d8"]]);var ei=$r;function ti(e,t,n,o,l,c){return Object(j["openBlock"])(),Object(j["createElementBlock"])("div",{class:"alignment-line",style:Object(j["normalizeStyle"])({left:e.left,top:e.top})},[Object(j["createElementVNode"])("div",{class:Object(j["normalizeClass"])(["line",e.type]),style:Object(j["normalizeStyle"])(e.sizeStyle)},null,6)],4)}var ni=Object(j["defineComponent"])({name:"alignment-line",props:{type:{type:String,required:!0},axis:{type:Object,required:!0},length:{type:Number,required:!0}},setup:function(e){var t=Object(y["c"])($()),n=t.canvasScale,o=Object(j["computed"])((function(){return e.axis.x*n.value+"px"})),l=Object(j["computed"])((function(){return e.axis.y*n.value+"px"})),c=Object(j["computed"])((function(){return"vertical"===e.type?{height:e.length*n.value+"px"}:{width:e.length*n.value+"px"}}));return{left:o,top:l,sizeStyle:c}}});n("c790");const oi=Sn()(ni,[["render",ti],["__scopeId","data-v-62c9018e"]]);var li=oi,ci=["width","height"],ai=["d"];function ri(e,t,n,o,l,c){return Object(j["openBlock"])(),Object(j["createElementBlock"])("div",{class:"element-create-selection",ref:"selectionRef",onMousedown:t[0]||(t[0]=Object(j["withModifiers"])((function(t){return e.createSelection(t)}),["stop"])),onContextmenu:t[1]||(t[1]=Object(j["withModifiers"])((function(){}),["stop","prevent"]))},[e.start&&e.end?(Object(j["openBlock"])(),Object(j["createElementBlock"])("div",{key:0,class:Object(j["normalizeClass"])(["selection",e.creatingElement.type]),style:Object(j["normalizeStyle"])(e.position)},["line"===e.creatingElement.type&&e.lineData?(Object(j["openBlock"])(),Object(j["createElementBlock"])("svg",{key:0,overflow:"visible",width:e.lineData.svgWidth,height:e.lineData.svgHeight},[Object(j["createElementVNode"])("path",{d:e.lineData.path,stroke:"#d14424",fill:"none","stroke-width":"1","stroke-linecap":"","stroke-linejoin":"","stroke-miterlimit":""},null,8,ai)],8,ci)):Object(j["createCommentVNode"])("",!0)],6)):Object(j["createCommentVNode"])("",!0)],544)}var ii=Object(j["defineComponent"])({name:"element-create-selection",emits:["created"],setup:function(e,t){var n=t.emit,o=$(),l=Object(y["c"])(o),c=l.creatingElement,a=Object(y["c"])(de()),r=a.ctrlOrShiftKeyActive,i=Object(j["ref"])(),u=Object(j["ref"])(),d=Object(j["ref"])(),s=Object(j["reactive"])({x:0,y:0});Object(j["onMounted"])((function(){if(d.value){var e=d.value.getBoundingClientRect(),t=e.x,n=e.y;s.x=t,s.y=n}}));var f=function(e){var t=!0,l=e.pageX,a=e.pageY;i.value=[l,a],document.onmousemove=function(e){if(c.value&&t){var n=e.pageX,o=e.pageY;if(r.value){var i=n-l,d=o-a,s=Math.abs(i),f=Math.abs(d);if("shape"===c.value.type){var p=d>0&&i<0||d<0&&i>0;s>f?o=p?a-i:a+i:n=p?l-d:l+d}else"line"===c.value.type&&(s>f?o=a:n=l)}u.value=[n,o]}},document.onmouseup=function(e){var r,d;if(document.onmousemove=null,document.onmouseup=null,2!==e.button){t=!1;var s=e.pageX,f=e.pageY,p=30;if("line"===(null===(r=c.value)||void 0===r?void 0:r.type)&&(Math.abs(s-l)>=p||Math.abs(f-a)>=p))n("created",{start:i.value,end:u.value});else if("line"!==(null===(d=c.value)||void 0===d?void 0:d.type)&&Math.abs(s-l)>=p&&Math.abs(f-a)>=p)n("created",{start:i.value,end:u.value});else{var m=200,b=Math.min(s,l),v=Math.min(f,a),h=Math.max(s,l),O=Math.max(f,a),j=h-b>=p?h-b:m,y=O-v>=p?O-v:m;n("created",{start:[b,v],end:[b+j,v+y]})}}else setTimeout((function(){return o.setCreatingElement(null)}),0)}},p=Object(j["computed"])((function(){if(!i.value||!u.value)return null;if(!c.value||"line"!==c.value.type)return null;var e=Object(At["a"])(i.value,2),t=e[0],n=e[1],o=Object(At["a"])(u.value,2),l=o[0],a=o[1],r=Math.min(t,l),d=Math.max(t,l),s=Math.min(n,a),f=Math.max(n,a),p=d-r>=24?d-r:24,m=f-s>=24?f-s:24,b=t===r?0:d-r,v=n===s?0:f-s,h=l===r?0:d-r,O=a===s?0:f-s,j="M".concat(b,", ").concat(v," L").concat(h,", ").concat(O);return{svgWidth:p,svgHeight:m,startX:b,startY:v,endX:h,endY:O,path:j}})),m=Object(j["computed"])((function(){if(!i.value||!u.value)return{};var e=Object(At["a"])(i.value,2),t=e[0],n=e[1],o=Object(At["a"])(u.value,2),l=o[0],c=o[1],a=Math.min(t,l),r=Math.max(t,l),d=Math.min(n,c),f=Math.max(n,c),p=r-a,m=f-d;return{left:a-s.x+"px",top:d-s.y+"px",width:p+"px",height:m+"px"}}));return{selectionRef:d,start:i,end:u,creatingElement:c,createSelection:f,lineData:p,position:m}}});n("86f4");const ui=Sn()(ii,[["render",ri],["__scopeId","data-v-a8c28cdc"]]);var di=ui;function si(e,t,n,o,l,c){var a=Object(j["resolveComponent"])("BorderLine"),r=Object(j["resolveComponent"])("ResizeHandler");return Object(j["openBlock"])(),Object(j["createElementBlock"])("div",{class:"multi-select-operate",style:Object(j["normalizeStyle"])({left:e.minX*e.canvasScale+"px",top:e.minY*e.canvasScale+"px"})},[(Object(j["openBlock"])(!0),Object(j["createElementBlock"])(j["Fragment"],null,Object(j["renderList"])(e.borderLines,(function(e){return Object(j["openBlock"])(),Object(j["createBlock"])(a,{key:e.type,type:e.type,style:Object(j["normalizeStyle"])(e.style)},null,8,["type","style"])})),128)),e.disableResize?Object(j["createCommentVNode"])("",!0):(Object(j["openBlock"])(!0),Object(j["createElementBlock"])(j["Fragment"],{key:0},Object(j["renderList"])(e.resizeHandlers,(function(t){return Object(j["openBlock"])(),Object(j["createBlock"])(r,{key:t.direction,type:t.direction,style:Object(j["normalizeStyle"])(t.style),onMousedown:Object(j["withModifiers"])((function(n){return e.scaleMultiElement(n,{minX:e.minX,maxX:e.maxX,minY:e.minY,maxY:e.maxY},t.direction)}),["stop"])},null,8,["type","style","onMousedown"])})),128))],4)}var fi=function(e,t){var n=Object(j["computed"])((function(){return[{direction:w.LEFT_TOP,style:{}},{direction:w.TOP,style:{left:e.value/2+"px"}},{direction:w.RIGHT_TOP,style:{left:e.value+"px"}},{direction:w.LEFT,style:{top:t.value/2+"px"}},{direction:w.RIGHT,style:{left:e.value+"px",top:t.value/2+"px"}},{direction:w.LEFT_BOTTOM,style:{top:t.value+"px"}},{direction:w.BOTTOM,style:{left:e.value/2+"px",top:t.value+"px"}},{direction:w.RIGHT_BOTTOM,style:{left:e.value+"px",top:t.value+"px"}}]})),o=Object(j["computed"])((function(){return[{direction:w.LEFT,style:{top:t.value/2+"px"}},{direction:w.RIGHT,style:{left:e.value+"px",top:t.value/2+"px"}}]})),l=Object(j["computed"])((function(){return[{type:k.T,style:{width:e.value+"px"}},{type:k.B,style:{top:t.value+"px",width:e.value+"px"}},{type:k.L,style:{height:t.value+"px"}},{type:k.R,style:{left:e.value+"px",height:t.value+"px"}}]}));return{resizeHandlers:n,textElementResizeHandlers:o,borderLines:l}};function pi(e,t,n,o,l,c){return Object(j["openBlock"])(),Object(j["createElementBlock"])("div",{class:Object(j["normalizeClass"])(["resize-handler",e.rotateClassName,e.type])},null,2)}var mi=Object(j["defineComponent"])({name:"resize-handler",props:{type:{type:String,default:""},rotate:{type:Number,default:0}},setup:function(e){var t=Object(j["computed"])((function(){var t="rotate-",n=e.rotate;return n>-22.5&&n<=22.5?t+0:n>22.5&&n<=67.5?t+45:n>67.5&&n<=112.5?t+90:n>112.5&&n<=157.5?t+135:n>157.5||n<=-157.5?t+0:n>-157.5&&n<=-112.5?t+45:n>-112.5&&n<=-67.5?t+90:n>-67.5&&n<=-22.5?t+135:t+0}));return{rotateClassName:t}}});n("0606");const bi=Sn()(mi,[["render",pi],["__scopeId","data-v-680e5917"]]);var vi=bi;function hi(e,t,n,o,l,c){return Object(j["openBlock"])(),Object(j["createElementBlock"])("div",{class:Object(j["normalizeClass"])(["border-line",n.type,{wide:n.isWide}])},null,2)}var Oi={name:"border-line",props:{type:{type:String,required:!0},isWide:{type:Boolean,default:!1}}};n("fb1d");const ji=Sn()(Oi,[["render",hi],["__scopeId","data-v-630e246b"]]);var yi=ji,gi=Object(j["defineComponent"])({name:"multi-select-operate",components:{ResizeHandler:vi,BorderLine:yi},props:{elementList:{type:Array,required:!0},scaleMultiElement:{type:Function,required:!0}},setup:function(e){var t=Object(y["c"])($()),n=t.activeElementIdList,o=t.canvasScale,l=Object(j["computed"])((function(){return e.elementList.filter((function(e){return n.value.includes(e.id)}))})),c=Object(j["reactive"])({minX:0,maxX:0,minY:0,maxY:0}),a=Object(j["computed"])((function(){return(c.maxX-c.minX)*o.value})),r=Object(j["computed"])((function(){return(c.maxY-c.minY)*o.value})),i=fi(a,r),u=i.resizeHandlers,d=i.borderLines,s=function(){var e=Me(l.value),t=e.minX,n=e.maxX,o=e.minY,a=e.maxY;c.minX=t,c.maxX=n,c.minY=o,c.maxY=a};Object(j["watchEffect"])(s);var f=Object(j["computed"])((function(){return l.value.some((function(e){return!!("image"!==e.type&&"shape"!==e.type||e.rotate)}))}));return Object(S["a"])(Object(S["a"])({},Object(j["toRefs"])(c)),{},{canvasScale:o,borderLines:d,disableResize:f,resizeHandlers:u})}});n("a60f");const xi=Sn()(gi,[["render",si],["__scopeId","data-v-2d010d5c"]]);var Ci=xi,ki={key:1,class:"animation-index"};function wi(e,t,n,o,l,c){var a=Object(j["resolveComponent"])("LinkHandler");return Object(j["openBlock"])(),Object(j["createElementBlock"])("div",{class:Object(j["normalizeClass"])(["operate",{"multi-select":e.isMultiSelect&&!e.isActive}]),style:Object(j["normalizeStyle"])({top:e.elementInfo.top*e.canvasScale+"px",left:e.elementInfo.left*e.canvasScale+"px",transform:"rotate(".concat(e.elementInfo.rotate,"deg)"),transformOrigin:"".concat(e.elementInfo.width*e.canvasScale/2,"px ").concat(e.elementInfo.height*e.canvasScale/2,"px")})},[e.isSelected?(Object(j["openBlock"])(),Object(j["createBlock"])(Object(j["resolveDynamicComponent"])(e.currentOperateComponent),{key:0,elementInfo:e.elementInfo,handlerVisible:!e.elementInfo.lock&&(e.isActiveGroupElement||!e.isMultiSelect),rotateElement:e.rotateElement,scaleElement:e.scaleElement,dragLineElement:e.dragLineElement},null,8,["elementInfo","handlerVisible","rotateElement","scaleElement","dragLineElement"])):Object(j["createCommentVNode"])("",!0),"elAnimation"===e.toolbarState&&-1!==e.elementIndexInAnimation?(Object(j["openBlock"])(),Object(j["createElementBlock"])("div",ki,Object(j["toDisplayString"])(e.elementIndexInAnimation+1),1)):Object(j["createCommentVNode"])("",!0),e.isActive&&e.elementInfo.link?(Object(j["openBlock"])(),Object(j["createBlock"])(a,{key:2,elementInfo:e.elementInfo,openLinkDialog:e.openLinkDialog,onMousedown:t[0]||(t[0]=Object(j["withModifiers"])((function(){}),["stop"]))},null,8,["elementInfo","openLinkDialog"])):Object(j["createCommentVNode"])("",!0)],6)}function Ei(e,t,n,o,l,c){var a=Object(j["resolveComponent"])("BorderLine"),r=Object(j["resolveComponent"])("ResizeHandler"),i=Object(j["resolveComponent"])("RotateHandler");return Object(j["openBlock"])(),Object(j["createElementBlock"])("div",{class:Object(j["normalizeClass"])(["image-element-operate",{cliping:e.isCliping}])},[(Object(j["openBlock"])(!0),Object(j["createElementBlock"])(j["Fragment"],null,Object(j["renderList"])(e.borderLines,(function(e){return Object(j["openBlock"])(),Object(j["createBlock"])(a,{class:"operate-border-line",key:e.type,type:e.type,style:Object(j["normalizeStyle"])(e.style)},null,8,["type","style"])})),128)),e.handlerVisible?(Object(j["openBlock"])(),Object(j["createElementBlock"])(j["Fragment"],{key:0},[(Object(j["openBlock"])(!0),Object(j["createElementBlock"])(j["Fragment"],null,Object(j["renderList"])(e.resizeHandlers,(function(t){return Object(j["openBlock"])(),Object(j["createBlock"])(r,{class:"operate-resize-handler",key:t.direction,type:t.direction,rotate:e.elementInfo.rotate,style:Object(j["normalizeStyle"])(t.style),onMousedown:Object(j["withModifiers"])((function(n){return e.scaleElement(n,e.elementInfo,t.direction)}),["stop"])},null,8,["type","rotate","style","onMousedown"])})),128)),Object(j["createVNode"])(i,{class:"operate-rotate-handler",style:Object(j["normalizeStyle"])({left:e.scaleWidth/2+"px"}),onMousedown:t[0]||(t[0]=Object(j["withModifiers"])((function(t){return e.rotateElement(e.elementInfo)}),["stop"]))},null,8,["style"])],64)):Object(j["createCommentVNode"])("",!0)],2)}var Ni={class:"rotate-handler"};function Ii(e,t,n,o,l,c){return Object(j["openBlock"])(),Object(j["createElementBlock"])("div",Ni)}var Vi={name:"rotate-handler"};n("8754");const Si=Sn()(Vi,[["render",Ii],["__scopeId","data-v-9a549510"]]);var Bi=Si,Li=Object(j["defineComponent"])({name:"image-element-operate",inheritAttrs:!1,components:{RotateHandler:Bi,ResizeHandler:vi,BorderLine:yi},props:{elementInfo:{type:Object,required:!0},handlerVisible:{type:Boolean,required:!0},rotateElement:{type:Function,required:!0},scaleElement:{type:Function,required:!0}},setup:function(e){var t=Object(y["c"])($()),n=t.canvasScale,o=t.clipingImageElementId,l=Object(j["computed"])((function(){return o.value===e.elementInfo.id})),c=Object(j["computed"])((function(){return e.elementInfo.width*n.value})),a=Object(j["computed"])((function(){return e.elementInfo.height*n.value})),r=fi(c,a),i=r.resizeHandlers,u=r.borderLines;return{isCliping:l,scaleWidth:c,resizeHandlers:i,borderLines:u}}});n("7ec9");const Ti=Sn()(Li,[["render",Ei],["__scopeId","data-v-24706869"]]);var Mi=Ti,_i={class:"text-element-operate"};function Di(e,t,n,o,l,c){var a=Object(j["resolveComponent"])("BorderLine"),r=Object(j["resolveComponent"])("ResizeHandler"),i=Object(j["resolveComponent"])("RotateHandler");return Object(j["openBlock"])(),Object(j["createElementBlock"])("div",_i,[(Object(j["openBlock"])(!0),Object(j["createElementBlock"])(j["Fragment"],null,Object(j["renderList"])(e.borderLines,(function(e){return Object(j["openBlock"])(),Object(j["createBlock"])(a,{class:"operate-border-line",key:e.type,type:e.type,style:Object(j["normalizeStyle"])(e.style)},null,8,["type","style"])})),128)),e.handlerVisible?(Object(j["openBlock"])(),Object(j["createElementBlock"])(j["Fragment"],{key:0},[(Object(j["openBlock"])(!0),Object(j["createElementBlock"])(j["Fragment"],null,Object(j["renderList"])(e.textElementResizeHandlers,(function(t){return Object(j["openBlock"])(),Object(j["createBlock"])(r,{class:"operate-resize-handler",key:t.direction,type:t.direction,rotate:e.elementInfo.rotate,style:Object(j["normalizeStyle"])(t.style),onMousedown:Object(j["withModifiers"])((function(n){return e.scaleElement(n,e.elementInfo,t.direction)}),["stop"])},null,8,["type","rotate","style","onMousedown"])})),128)),Object(j["createVNode"])(i,{class:"operate-rotate-handler",style:Object(j["normalizeStyle"])({left:e.scaleWidth/2+"px"}),onMousedown:t[0]||(t[0]=Object(j["withModifiers"])((function(t){return e.rotateElement(e.elementInfo)}),["stop"]))},null,8,["style"])],64)):Object(j["createCommentVNode"])("",!0)])}var zi=Object(j["defineComponent"])({name:"text-element-operate",inheritAttrs:!1,components:{RotateHandler:Bi,ResizeHandler:vi,BorderLine:yi},props:{elementInfo:{type:Object,required:!0},handlerVisible:{type:Boolean,required:!0},rotateElement:{type:Function,required:!0},scaleElement:{type:Function,required:!0}},setup:function(e){var t=Object(y["c"])($()),n=t.canvasScale,o=Object(j["computed"])((function(){return e.elementInfo.width*n.value})),l=Object(j["computed"])((function(){return e.elementInfo.height*n.value})),c=fi(o,l),a=c.textElementResizeHandlers,r=c.borderLines;return{scaleWidth:o,textElementResizeHandlers:a,borderLines:r}}});const Ai=Sn()(zi,[["render",Di]]);var Fi=Ai,Ri={class:"shape-element-operate"};function Pi(e,t,n,o,l,c){var a=Object(j["resolveComponent"])("BorderLine"),r=Object(j["resolveComponent"])("ResizeHandler"),i=Object(j["resolveComponent"])("RotateHandler");return Object(j["openBlock"])(),Object(j["createElementBlock"])("div",Ri,[(Object(j["openBlock"])(!0),Object(j["createElementBlock"])(j["Fragment"],null,Object(j["renderList"])(e.borderLines,(function(e){return Object(j["openBlock"])(),Object(j["createBlock"])(a,{class:"operate-border-line",key:e.type,type:e.type,style:Object(j["normalizeStyle"])(e.style)},null,8,["type","style"])})),128)),e.handlerVisible?(Object(j["openBlock"])(),Object(j["createElementBlock"])(j["Fragment"],{key:0},[(Object(j["openBlock"])(!0),Object(j["createElementBlock"])(j["Fragment"],null,Object(j["renderList"])(e.resizeHandlers,(function(t){return Object(j["openBlock"])(),Object(j["createBlock"])(r,{class:"operate-resize-handler",key:t.direction,type:t.direction,rotate:e.elementInfo.rotate,style:Object(j["normalizeStyle"])(t.style),onMousedown:Object(j["withModifiers"])((function(n){return e.scaleElement(n,e.elementInfo,t.direction)}),["stop"])},null,8,["type","rotate","style","onMousedown"])})),128)),Object(j["createVNode"])(i,{class:"operate-rotate-handler",style:Object(j["normalizeStyle"])({left:e.scaleWidth/2+"px"}),onMousedown:t[0]||(t[0]=Object(j["withModifiers"])((function(t){return e.rotateElement(e.elementInfo)}),["stop"]))},null,8,["style"])],64)):Object(j["createCommentVNode"])("",!0)])}var Hi=Object(j["defineComponent"])({name:"shape-element-operate",inheritAttrs:!1,components:{RotateHandler:Bi,ResizeHandler:vi,BorderLine:yi},props:{elementInfo:{type:Object,required:!0},handlerVisible:{type:Boolean,required:!0},rotateElement:{type:Function,required:!0},scaleElement:{type:Function,required:!0}},setup:function(e){var t=Object(y["c"])($()),n=t.canvasScale,o=Object(j["computed"])((function(){return e.elementInfo.width*n.value})),l=Object(j["computed"])((function(){return e.elementInfo.height*n.value})),c=fi(o,l),a=c.resizeHandlers,r=c.borderLines;return{scaleWidth:o,resizeHandlers:a,borderLines:r}}});const qi=Sn()(Hi,[["render",Pi]]);var Xi=qi,Wi={class:"text-element-operate"};function Gi(e,t,n,o,l,c){var a=Object(j["resolveComponent"])("ResizeHandler");return Object(j["openBlock"])(),Object(j["createElementBlock"])("div",Wi,[e.handlerVisible?(Object(j["openBlock"])(!0),Object(j["createElementBlock"])(j["Fragment"],{key:0},Object(j["renderList"])(e.resizeHandlers,(function(t){return Object(j["openBlock"])(),Object(j["createBlock"])(a,{class:"operate-resize-handler",key:t.direction,type:t.direction,style:Object(j["normalizeStyle"])(t.style),onMousedown:Object(j["withModifiers"])((function(n){return e.dragLineElement(n,e.elementInfo,t.handler)}),["stop"])},null,8,["type","style","onMousedown"])})),128)):Object(j["createCommentVNode"])("",!0)])}var Ui=Object(j["defineComponent"])({name:"text-element-operate",inheritAttrs:!1,components:{ResizeHandler:vi},props:{elementInfo:{type:Object,required:!0},handlerVisible:{type:Boolean,required:!0},dragLineElement:{type:Function,required:!0}},setup:function(e){var t=Object(y["c"])($()),n=t.canvasScale,o=Object(j["computed"])((function(){var t=[{handler:E.START,style:{left:e.elementInfo.start[0]*n.value+"px",top:e.elementInfo.start[1]*n.value+"px"}},{handler:E.END,style:{left:e.elementInfo.end[0]*n.value+"px",top:e.elementInfo.end[1]*n.value+"px"}}];if(e.elementInfo.curve||e.elementInfo.broken){var o=e.elementInfo.curve||e.elementInfo.broken;t.push({handler:E.MID,style:{left:o[0]*n.value+"px",top:o[1]*n.value+"px"}})}return t}));return{resizeHandlers:o}}});const Yi=Sn()(Ui,[["render",Gi]]);var Zi=Yi,Ji={class:"table-element-operate"};function Ki(e,t,n,o,l,c){var a=Object(j["resolveComponent"])("BorderLine"),r=Object(j["resolveComponent"])("ResizeHandler"),i=Object(j["resolveComponent"])("RotateHandler");return Object(j["openBlock"])(),Object(j["createElementBlock"])("div",Ji,[(Object(j["openBlock"])(!0),Object(j["createElementBlock"])(j["Fragment"],null,Object(j["renderList"])(e.borderLines,(function(e){return Object(j["openBlock"])(),Object(j["createBlock"])(a,{class:"operate-border-line",key:e.type,type:e.type,style:Object(j["normalizeStyle"])(e.style)},null,8,["type","style"])})),128)),e.handlerVisible?(Object(j["openBlock"])(),Object(j["createElementBlock"])(j["Fragment"],{key:0},[(Object(j["openBlock"])(!0),Object(j["createElementBlock"])(j["Fragment"],null,Object(j["renderList"])(e.textElementResizeHandlers,(function(t){return Object(j["openBlock"])(),Object(j["createBlock"])(r,{class:"operate-resize-handler",key:t.direction,type:t.direction,rotate:e.elementInfo.rotate,style:Object(j["normalizeStyle"])(t.style),onMousedown:Object(j["withModifiers"])((function(n){return e.scaleElement(n,e.elementInfo,t.direction)}),["stop"])},null,8,["type","rotate","style","onMousedown"])})),128)),Object(j["createVNode"])(i,{class:"operate-rotate-handler",style:Object(j["normalizeStyle"])({left:e.scaleWidth/2+"px"}),onMousedown:t[0]||(t[0]=Object(j["withModifiers"])((function(t){return e.rotateElement(e.elementInfo)}),["stop"]))},null,8,["style"])],64)):Object(j["createCommentVNode"])("",!0)])}var Qi=Object(j["defineComponent"])({name:"table-element-operate",inheritAttrs:!1,components:{RotateHandler:Bi,ResizeHandler:vi,BorderLine:yi},props:{elementInfo:{type:Object,required:!0},handlerVisible:{type:Boolean,required:!0},rotateElement:{type:Function,required:!0},scaleElement:{type:Function,required:!0}},setup:function(e){var t=Object(y["c"])($()),n=t.canvasScale,o=Object(j["computed"])((function(){return e.elementInfo.outline.width||1})),l=Object(j["computed"])((function(){return(e.elementInfo.width+o.value)*n.value})),c=Object(j["computed"])((function(){return e.elementInfo.height*n.value})),a=fi(l,c),r=a.textElementResizeHandlers,i=a.borderLines;return{scaleWidth:l,textElementResizeHandlers:r,borderLines:i}}});const $i=Sn()(Qi,[["render",Ki]]);var eu=$i,tu={class:"common-element-operate"};function nu(e,t,n,o,l,c){var a=Object(j["resolveComponent"])("BorderLine"),r=Object(j["resolveComponent"])("ResizeHandler"),i=Object(j["resolveComponent"])("RotateHandler");return Object(j["openBlock"])(),Object(j["createElementBlock"])("div",tu,[(Object(j["openBlock"])(!0),Object(j["createElementBlock"])(j["Fragment"],null,Object(j["renderList"])(e.borderLines,(function(e){return Object(j["openBlock"])(),Object(j["createBlock"])(a,{class:"operate-border-line",key:e.type,type:e.type,style:Object(j["normalizeStyle"])(e.style)},null,8,["type","style"])})),128)),e.handlerVisible?(Object(j["openBlock"])(),Object(j["createElementBlock"])(j["Fragment"],{key:0},[(Object(j["openBlock"])(!0),Object(j["createElementBlock"])(j["Fragment"],null,Object(j["renderList"])(e.resizeHandlers,(function(t){return Object(j["openBlock"])(),Object(j["createBlock"])(r,{class:"operate-resize-handler",key:t.direction,type:t.direction,rotate:e.elementInfo.rotate,style:Object(j["normalizeStyle"])(t.style),onMousedown:Object(j["withModifiers"])((function(n){return e.scaleElement(n,e.elementInfo,t.direction)}),["stop"])},null,8,["type","rotate","style","onMousedown"])})),128)),e.cannotRotate?Object(j["createCommentVNode"])("",!0):(Object(j["openBlock"])(),Object(j["createBlock"])(i,{key:0,class:"operate-rotate-handler",style:Object(j["normalizeStyle"])({left:e.scaleWidth/2+"px"}),onMousedown:t[0]||(t[0]=Object(j["withModifiers"])((function(t){return e.rotateElement(e.elementInfo)}),["stop"]))},null,8,["style"]))],64)):Object(j["createCommentVNode"])("",!0)])}var ou=Object(j["defineComponent"])({name:"common-element-operate",inheritAttrs:!1,components:{RotateHandler:Bi,ResizeHandler:vi,BorderLine:yi},props:{elementInfo:{type:Object,required:!0},handlerVisible:{type:Boolean,required:!0},rotateElement:{type:Function,required:!0},scaleElement:{type:Function,required:!0}},setup:function(e){var t=Object(y["c"])($()),n=t.canvasScale,o=Object(j["computed"])((function(){return e.elementInfo.width*n.value})),l=Object(j["computed"])((function(){return e.elementInfo.height*n.value})),c=fi(o,l),a=c.resizeHandlers,r=c.borderLines,i=Object(j["computed"])((function(){return["video","audio"].includes(e.elementInfo.type)}));return{scaleWidth:o,resizeHandlers:a,borderLines:r,cannotRotate:i}}});const lu=Sn()(ou,[["render",nu]]);var cu=lu,au=["href"],ru={key:1,class:"link"},iu={class:"btns"};function uu(e,t,n,o,l,c){var a=Object(j["resolveComponent"])("Divider");return Object(j["openBlock"])(),Object(j["createElementBlock"])("div",{class:"link-handler",style:Object(j["normalizeStyle"])({top:e.elementInfo.height*e.canvasScale+10+"px"})},["web"===e.elementInfo.link.type?(Object(j["openBlock"])(),Object(j["createElementBlock"])("a",{key:0,class:"link",href:e.elementInfo.link.target,target:"_blank"},Object(j["toDisplayString"])(e.elementInfo.link.target),9,au)):(Object(j["openBlock"])(),Object(j["createElementBlock"])("a",ru,"幻灯片页面 "+Object(j["toDisplayString"])(e.elementInfo.link.target),1)),Object(j["createElementVNode"])("div",iu,[Object(j["createElementVNode"])("div",{class:"btn",onClick:t[0]||(t[0]=function(t){return e.openLinkDialog()})},"更换"),Object(j["createVNode"])(a,{type:"vertical"}),Object(j["createElementVNode"])("div",{class:"btn",onClick:t[1]||(t[1]=function(t){return e.removeLink(e.elementInfo)})},"移除")])],4)}var du=function(){var e=Q(),t=Pe(),n=t.addHistorySnapshot,o=function(t,o){var l=/^(https?):\/\/[\w\-]+(\.[\w\-]+)+([\w\-.,@?^=%&:\/~+#]*[\w\-@?^=%&\/~+#])?$/;if("web"===o.type&&!l.test(o.target))return he["a"].error("不是正确的网页链接地址"),!1;var c={link:o};return e.updateElement({id:t.id,props:c}),n(),!0},l=function(t){e.removeElementProps({id:t.id,propName:"link"}),n()};return{setLink:o,removeLink:l}},su=Object(j["defineComponent"])({name:"link-handler",props:{elementInfo:{type:Object,required:!0},openLinkDialog:{type:Function,required:!0}},setup:function(){var e=Object(y["c"])($()),t=e.canvasScale,n=du(),o=n.removeLink;return{canvasScale:t,removeLink:o}}});n("564c");const fu=Sn()(su,[["render",uu],["__scopeId","data-v-3250b72d"]]);var pu=fu,mu=Object(j["defineComponent"])({name:"operate",components:{LinkHandler:pu},props:{elementInfo:{type:Object,required:!0},isSelected:{type:Boolean,required:!0},isActive:{type:Boolean,required:!0},isActiveGroupElement:{type:Boolean,required:!0},isMultiSelect:{type:Boolean,required:!0},rotateElement:{type:Function,required:!0},scaleElement:{type:Function,required:!0},dragLineElement:{type:Function,required:!0},openLinkDialog:{type:Function,required:!0}},setup:function(e){var t=Object(y["c"])($()),n=t.canvasScale,o=t.toolbarState,l=Object(y["c"])(Q()),c=l.currentSlide,a=Object(j["computed"])((function(){var t,n=(t={},Object(ce["a"])(t,to.IMAGE,Mi),Object(ce["a"])(t,to.TEXT,Fi),Object(ce["a"])(t,to.SHAPE,Xi),Object(ce["a"])(t,to.LINE,Zi),Object(ce["a"])(t,to.TABLE,eu),Object(ce["a"])(t,to.CHART,cu),Object(ce["a"])(t,to.LATEX,cu),Object(ce["a"])(t,to.VIDEO,cu),Object(ce["a"])(t,to.AUDIO,cu),t);return n[e.elementInfo.type]||null})),r=Object(j["computed"])((function(){var t=c.value.animations||[];return t.findIndex((function(t){return t.elId===e.elementInfo.id}))}));return{currentOperateComponent:a,canvasScale:n,toolbarState:o,elementIndexInAnimation:r}}});n("69a7");const bu=Sn()(mu,[["render",wi],["__scopeId","data-v-71428444"]]);var vu=bu,hu=function(e){return Object(j["pushScopeId"])("data-v-5a0d0b33"),e=e(),Object(j["popScopeId"])(),e},Ou={class:"link-dialog"},ju={class:"tabs"},yu=["onClick"],gu={key:2,class:"preview"},xu=hu((function(){return Object(j["createElementVNode"])("div",null,"预览:",-1)})),Cu={class:"btns"},ku=Object(j["createTextVNode"])("取消"),wu=Object(j["createTextVNode"])("确认");function Eu(e,t,n,o,l,c){var a=Object(j["resolveComponent"])("Input"),r=Object(j["resolveComponent"])("SelectOption"),i=Object(j["resolveComponent"])("Select"),u=Object(j["resolveComponent"])("ThumbnailSlide"),d=Object(j["resolveComponent"])("Button");return Object(j["openBlock"])(),Object(j["createElementBlock"])("div",Ou,[Object(j["createElementVNode"])("div",ju,[(Object(j["openBlock"])(!0),Object(j["createElementBlock"])(j["Fragment"],null,Object(j["renderList"])(e.tabs,(function(t){return Object(j["openBlock"])(),Object(j["createElementBlock"])("div",{class:Object(j["normalizeClass"])(["tab",{active:e.type===t.key}]),key:t.key,onClick:function(n){return e.type=t.key}},Object(j["toDisplayString"])(t.label),11,yu)})),128))]),"web"===e.type?(Object(j["openBlock"])(),Object(j["createBlock"])(a,{key:0,class:"input",value:e.address,"onUpdate:value":t[0]||(t[0]=function(t){return e.address=t}),placeholder:"请输入网页链接地址"},null,8,["value"])):Object(j["createCommentVNode"])("",!0),"slide"===e.type?(Object(j["openBlock"])(),Object(j["createBlock"])(i,{key:1,class:"input",value:e.slideId,"onUpdate:value":t[1]||(t[1]=function(t){return e.slideId=t})},{default:Object(j["withCtx"])((function(){return[(Object(j["openBlock"])(!0),Object(j["createElementBlock"])(j["Fragment"],null,Object(j["renderList"])(e.slides,(function(e,t){return Object(j["openBlock"])(),Object(j["createBlock"])(r,{key:e.id,value:e.id},{default:Object(j["withCtx"])((function(){return[Object(j["createTextVNode"])("幻灯片 "+Object(j["toDisplayString"])(t+1),1)]})),_:2},1032,["value"])})),128))]})),_:1},8,["value"])):Object(j["createCommentVNode"])("",!0),"slide"===e.type&&e.selectedSlide?(Object(j["openBlock"])(),Object(j["createElementBlock"])("div",gu,[xu,Object(j["createVNode"])(u,{class:"thumbnail",slide:e.selectedSlide,size:490},null,8,["slide"])])):Object(j["createCommentVNode"])("",!0),Object(j["createElementVNode"])("div",Cu,[Object(j["createVNode"])(d,{onClick:t[2]||(t[2]=function(t){return e.close()}),style:{"margin-right":"10px"}},{default:Object(j["withCtx"])((function(){return[ku]})),_:1}),Object(j["createVNode"])(d,{type:"primary",onClick:t[3]||(t[3]=function(t){return e.save()})},{default:Object(j["withCtx"])((function(){return[wu]})),_:1})])])}var Nu={key:1,class:"placeholder"};function Iu(e,t,n,o,l,c){var a=Object(j["resolveComponent"])("ThumbnailElement");return Object(j["openBlock"])(),Object(j["createElementBlock"])("div",{class:"thumbnail-slide",style:Object(j["normalizeStyle"])({width:e.size+"px",height:e.size*e.viewportRatio+"px"})},[e.visible?(Object(j["openBlock"])(),Object(j["createElementBlock"])("div",{key:0,class:"elements",style:Object(j["normalizeStyle"])({width:e.VIEWPORT_SIZE+"px",height:e.VIEWPORT_SIZE*e.viewportRatio+"px",transform:"scale(".concat(e.scale,")")})},[Object(j["createElementVNode"])("div",{class:"background",style:Object(j["normalizeStyle"])(e.backgroundStyle)},null,4),(Object(j["openBlock"])(!0),Object(j["createElementBlock"])(j["Fragment"],null,Object(j["renderList"])(e.slide.elements,(function(e,t){return Object(j["openBlock"])(),Object(j["createBlock"])(a,{key:e.id,elementInfo:e,elementIndex:t+1},null,8,["elementInfo","elementIndex"])})),128))],4)):(Object(j["openBlock"])(),Object(j["createElementBlock"])("div",Nu,"加载中 ..."))],4)}function Vu(e,t,n,o,l,c){return Object(j["openBlock"])(),Object(j["createElementBlock"])("div",{class:Object(j["normalizeClass"])(["base-element","base-element-".concat(e.elementInfo.id)]),style:Object(j["normalizeStyle"])({zIndex:e.elementIndex})},[(Object(j["openBlock"])(),Object(j["createBlock"])(Object(j["resolveDynamicComponent"])(e.currentElementComponent),{elementInfo:e.elementInfo,target:"thumbnail"},null,8,["elementInfo"]))],6)}var Su=["src"];function Bu(e,t,n,o,l,c){var a=Object(j["resolveComponent"])("ImageOutline");return Object(j["openBlock"])(),Object(j["createElementBlock"])("div",{class:"base-element-image",style:Object(j["normalizeStyle"])({top:e.elementInfo.top+"px",left:e.elementInfo.left+"px",width:e.elementInfo.width+"px",height:e.elementInfo.height+"px",transform:"rotate(".concat(e.elementInfo.rotate,"deg)")})},[Object(j["createElementVNode"])("div",{class:"rotate-wrapper",style:Object(j["normalizeStyle"])({transform:"rotate(".concat(e.elementInfo.rotate,"deg)")})},[Object(j["createElementVNode"])("div",{class:"element-content",style:Object(j["normalizeStyle"])({filter:e.shadowStyle?"drop-shadow(".concat(e.shadowStyle,")"):"",transform:e.flipStyle})},[Object(j["createVNode"])(a,{elementInfo:e.elementInfo},null,8,["elementInfo"]),Object(j["createElementVNode"])("div",{class:"image-content",style:Object(j["normalizeStyle"])({clipPath:e.clipShape.style})},[Object(j["createElementVNode"])("img",{src:e.elementInfo.src,draggable:!1,style:Object(j["normalizeStyle"])({top:e.imgPosition.top,left:e.imgPosition.left,width:e.imgPosition.width,height:e.imgPosition.height,filter:e.filter}),alt:""},null,12,Su)],4)],4)],4)],4)}var Lu=Object(j["defineComponent"])({name:"base-element-image",components:{ImageOutline:Do},props:{elementInfo:{type:Object,required:!0}},setup:function(e){var t=Object(j["computed"])((function(){return e.elementInfo.shadow})),n=ro(t),o=n.shadowStyle,l=Object(j["computed"])((function(){return e.elementInfo.flipH})),c=Object(j["computed"])((function(){return e.elementInfo.flipV})),a=io(l,c),r=a.flipStyle,i=Object(j["computed"])((function(){return e.elementInfo.clip})),u=so(i),d=u.clipShape,s=u.imgPosition,f=Object(j["computed"])((function(){return e.elementInfo.filters})),p=fo(f),m=p.filter;return{imgPosition:s,filter:m,flipStyle:r,shadowStyle:o,clipShape:d}}});n("a576");const Tu=Sn()(Lu,[["render",Bu],["__scopeId","data-v-b0d4d1b2"]]);var Mu=Tu,_u=["innerHTML"];function Du(e,t,n,o,l,c){var a=Object(j["resolveComponent"])("ElementOutline");return Object(j["openBlock"])(),Object(j["createElementBlock"])("div",{class:"base-element-text",style:Object(j["normalizeStyle"])({top:e.elementInfo.top+"px",left:e.elementInfo.left+"px",width:e.elementInfo.width+"px"})},[Object(j["createElementVNode"])("div",{class:"rotate-wrapper",style:Object(j["normalizeStyle"])({transform:"rotate(".concat(e.elementInfo.rotate,"deg)")})},[Object(j["createElementVNode"])("div",{class:"element-content",style:Object(j["normalizeStyle"])({backgroundColor:e.elementInfo.fill,opacity:e.elementInfo.opacity,textShadow:e.shadowStyle,lineHeight:e.elementInfo.lineHeight,letterSpacing:(e.elementInfo.wordSpace||0)+"px",color:e.elementInfo.defaultColor,fontFamily:e.elementInfo.defaultFontName})},[Object(j["createVNode"])(a,{width:e.elementInfo.width,height:e.elementInfo.height,outline:e.elementInfo.outline},null,8,["width","height","outline"]),Object(j["createElementVNode"])("div",{class:"text ProseMirror-static",innerHTML:e.elementInfo.content},null,8,_u)],4)],4)],4)}var zu=Object(j["defineComponent"])({name:"base-element-text",components:{ElementOutline:il},props:{elementInfo:{type:Object,required:!0}},setup:function(e){var t=Object(j["computed"])((function(){return e.elementInfo.shadow})),n=ro(t),o=n.shadowStyle;return{shadowStyle:o}}});n("5264");const Au=Sn()(zu,[["render",Du],["__scopeId","data-v-2ec235c4"]]);var Fu=Au,Ru=["width","height"],Pu={key:0},Hu=["transform"],qu=["d","fill","stroke","stroke-width","stroke-dasharray"],Xu=["innerHTML"];function Wu(e,t,n,o,l,c){var a=Object(j["resolveComponent"])("GradientDefs");return Object(j["openBlock"])(),Object(j["createElementBlock"])("div",{class:"base-element-shape",style:Object(j["normalizeStyle"])({top:e.elementInfo.top+"px",left:e.elementInfo.left+"px",width:e.elementInfo.width+"px",height:e.elementInfo.height+"px"})},[Object(j["createElementVNode"])("div",{class:"rotate-wrapper",style:Object(j["normalizeStyle"])({transform:"rotate(".concat(e.elementInfo.rotate,"deg)")})},[Object(j["createElementVNode"])("div",{class:"element-content",style:Object(j["normalizeStyle"])({opacity:e.elementInfo.opacity,filter:e.shadowStyle?"drop-shadow(".concat(e.shadowStyle,")"):"",transform:e.flipStyle,color:e.text.defaultColor,fontFamily:e.text.defaultFontName})},[(Object(j["openBlock"])(),Object(j["createElementBlock"])("svg",{overflow:"visible",width:e.elementInfo.width,height:e.elementInfo.height},[e.elementInfo.gradient?(Object(j["openBlock"])(),Object(j["createElementBlock"])("defs",Pu,[Object(j["createVNode"])(a,{id:"base-gradient-".concat(e.elementInfo.id),type:e.elementInfo.gradient.type,color1:e.elementInfo.gradient.color[0],color2:e.elementInfo.gradient.color[1],rotate:e.elementInfo.gradient.rotate},null,8,["id","type","color1","color2","rotate"])])):Object(j["createCommentVNode"])("",!0),Object(j["createElementVNode"])("g",{transform:"scale(".concat(e.elementInfo.width/e.elementInfo.viewBox,", ").concat(e.elementInfo.height/e.elementInfo.viewBox,") translate(0,0) matrix(1,0,0,1,0,0)")},[Object(j["createElementVNode"])("path",{"vector-effect":"non-scaling-stroke","stroke-linecap":"butt","stroke-miterlimit":"8","stroke-linejoin":"",d:e.elementInfo.path,fill:e.elementInfo.gradient?"url(#base-gradient-".concat(e.elementInfo.id,")"):e.elementInfo.fill,stroke:e.outlineColor,"stroke-width":e.outlineWidth,"stroke-dasharray":"dashed"===e.outlineStyle?"10 5":"0 0"},null,8,qu)],8,Hu)],8,Ru)),Object(j["createElementVNode"])("div",{class:Object(j["normalizeClass"])(["shape-text",e.text.align])},[Object(j["createElementVNode"])("div",{class:"ProseMirror-static",innerHTML:e.text.content},null,8,Xu)],2)],4)],4)],4)}var Gu=Object(j["defineComponent"])({name:"base-element-shape",components:{GradientDefs:Cc},props:{elementInfo:{type:Object,required:!0}},setup:function(e){var t=Object(j["computed"])((function(){return e.elementInfo.outline})),n=Oo(t),o=n.outlineWidth,l=n.outlineStyle,c=n.outlineColor,a=Object(j["computed"])((function(){return e.elementInfo.shadow})),r=ro(a),i=r.shadowStyle,u=Object(j["computed"])((function(){return e.elementInfo.flipH})),d=Object(j["computed"])((function(){return e.elementInfo.flipV})),s=io(u,d),f=s.flipStyle,p=Object(j["computed"])((function(){var t={content:"",defaultFontName:"微软雅黑",defaultColor:"#000",align:"middle"};return e.elementInfo.text?e.elementInfo.text:t}));return{shadowStyle:i,outlineWidth:o,outlineStyle:l,outlineColor:c,flipStyle:f,text:p}}});n("66f9");const Uu=Sn()(Gu,[["render",Wu],["__scopeId","data-v-68d8af98"]]);var Yu=Uu,Zu=["width","height"],Ju=["d","stroke","stroke-width","stroke-dasharray","marker-start","marker-end"];function Ku(e,t,n,o,l,c){var a=Object(j["resolveComponent"])("LinePointMarker");return Object(j["openBlock"])(),Object(j["createElementBlock"])("div",{class:"editable-element-shape",style:Object(j["normalizeStyle"])({top:e.elementInfo.top+"px",left:e.elementInfo.left+"px"})},[Object(j["createElementVNode"])("div",{class:"element-content",style:Object(j["normalizeStyle"])({filter:e.shadowStyle?"drop-shadow(".concat(e.shadowStyle,")"):""})},[(Object(j["openBlock"])(),Object(j["createElementBlock"])("svg",{overflow:"visible",width:e.svgWidth,height:e.svgHeight},[Object(j["createElementVNode"])("defs",null,[e.elementInfo.points[0]?(Object(j["openBlock"])(),Object(j["createBlock"])(a,{key:0,id:e.elementInfo.id,position:"start",type:e.elementInfo.points[0],color:e.elementInfo.color,baseSize:e.elementInfo.width},null,8,["id","type","color","baseSize"])):Object(j["createCommentVNode"])("",!0),e.elementInfo.points[1]?(Object(j["openBlock"])(),Object(j["createBlock"])(a,{key:1,id:e.elementInfo.id,position:"end",type:e.elementInfo.points[1],color:e.elementInfo.color,baseSize:e.elementInfo.width},null,8,["id","type","color","baseSize"])):Object(j["createCommentVNode"])("",!0)]),Object(j["createElementVNode"])("path",{d:e.path,stroke:e.elementInfo.color,"stroke-width":e.elementInfo.width,"stroke-dasharray":e.lineDashArray,fill:"none","stroke-linecap":"","stroke-linejoin":"","stroke-miterlimit":"","marker-start":e.elementInfo.points[0]?"url(#".concat(e.elementInfo.id,"-").concat(e.elementInfo.points[0],"-start)"):"","marker-end":e.elementInfo.points[1]?"url(#".concat(e.elementInfo.id,"-").concat(e.elementInfo.points[1],"-end)"):""},null,8,Ju)],8,Zu))],4)],4)}var Qu=Object(j["defineComponent"])({name:"editable-element-shape",components:{LinePointMarker:Ac},props:{elementInfo:{type:Object,required:!0}},setup:function(e){var t=Object(j["computed"])((function(){return e.elementInfo.shadow})),n=ro(t),o=n.shadowStyle,l=Object(j["computed"])((function(){var t=Math.abs(e.elementInfo.start[0]-e.elementInfo.end[0]);return t<24?24:t})),c=Object(j["computed"])((function(){var t=Math.abs(e.elementInfo.start[1]-e.elementInfo.end[1]);return t<24?24:t})),a=Object(j["computed"])((function(){return"dashed"===e.elementInfo.style?"10, 5":"0, 0"})),r=Object(j["computed"])((function(){return Ae(e.elementInfo)}));return{shadowStyle:o,svgWidth:l,svgHeight:c,lineDashArray:a,path:r}}});n("78eb");const $u=Sn()(Qu,[["render",Ku],["__scopeId","data-v-4032440c"]]);var ed=$u;function td(e,t,n,o,l,c){var a=Object(j["resolveComponent"])("ElementOutline"),r=Object(j["resolveComponent"])("Chart");return Object(j["openBlock"])(),Object(j["createElementBlock"])("div",{class:"base-element-chart",style:Object(j["normalizeStyle"])({top:e.elementInfo.top+"px",left:e.elementInfo.left+"px",width:e.elementInfo.width+"px",height:e.elementInfo.height+"px"})},[Object(j["createElementVNode"])("div",{class:"rotate-wrapper",style:Object(j["normalizeStyle"])({transform:"rotate(".concat(e.elementInfo.rotate,"deg)")})},[Object(j["createElementVNode"])("div",{class:"element-content",style:Object(j["normalizeStyle"])({backgroundColor:e.elementInfo.fill})},[Object(j["createVNode"])(a,{width:e.elementInfo.width,height:e.elementInfo.height,outline:e.elementInfo.outline},null,8,["width","height","outline"]),Object(j["createVNode"])(r,{class:Object(j["normalizeClass"])({"need-scale":e.needScaleSize}),width:e.chartWidth,height:e.chartHeight,type:e.elementInfo.chartType,data:e.elementInfo.data,options:e.elementInfo.options,themeColor:e.elementInfo.themeColor,gridColor:e.elementInfo.gridColor,legends:e.elementInfo.data.legends,legend:e.elementInfo.legend||""},null,8,["class","width","height","type","data","options","themeColor","gridColor","legends","legend"])],4)],4)],4)}var nd=Object(j["defineComponent"])({name:"base-element-chart",components:{ElementOutline:il,Chart:Yc},props:{elementInfo:{type:Object,required:!0},needScaleSize:{type:Boolean,default:!0}},setup:function(e){return{chartWidth:Object(j["computed"])((function(){return e.needScaleSize?10*e.elementInfo.width:e.elementInfo.width})),chartHeight:Object(j["computed"])((function(){return e.needScaleSize?10*e.elementInfo.height:e.elementInfo.height}))}}});n("c645");const od=Sn()(nd,[["render",td],["__scopeId","data-v-60d9ae43"]]);var ld=od,cd={class:"element-content"};function ad(e,t,n,o,l,c){var a=Object(j["resolveComponent"])("StaticTable");return Object(j["openBlock"])(),Object(j["createElementBlock"])("div",{class:"base-element-table",style:Object(j["normalizeStyle"])({top:e.elementInfo.top+"px",left:e.elementInfo.left+"px",width:e.elementInfo.width+"px"})},[Object(j["createElementVNode"])("div",{class:"rotate-wrapper",style:Object(j["normalizeStyle"])({transform:"rotate(".concat(e.elementInfo.rotate,"deg)")})},[Object(j["createElementVNode"])("div",cd,[Object(j["createVNode"])(a,{data:e.elementInfo.data,width:e.elementInfo.width,colWidths:e.elementInfo.colWidths,outline:e.elementInfo.outline,theme:e.elementInfo.theme},null,8,["data","width","colWidths","outline","theme"])])],4)],4)}var rd=["width"],id=["rowspan","colspan"],ud=["innerHTML"];function dd(e,t,n,o,l,c){var a,r,i,u,d;return Object(j["openBlock"])(),Object(j["createElementBlock"])("div",{class:"static-table",style:Object(j["normalizeStyle"])({width:e.totalWidth+"px"})},[Object(j["createElementVNode"])("table",{class:Object(j["normalizeClass"])({theme:e.theme,"row-header":null===(a=e.theme)||void 0===a?void 0:a.rowHeader,"row-footer":null===(r=e.theme)||void 0===r?void 0:r.rowFooter,"col-header":null===(i=e.theme)||void 0===i?void 0:i.colHeader,"col-footer":null===(u=e.theme)||void 0===u?void 0:u.colFooter}),style:Object(j["normalizeStyle"])("--themeColor: ".concat(null===(d=e.theme)||void 0===d?void 0:d.color,"; --subThemeColor1: ").concat(e.subThemeColor[0],"; --subThemeColor2: ").concat(e.subThemeColor[1]))},[Object(j["createElementVNode"])("colgroup",null,[(Object(j["openBlock"])(!0),Object(j["createElementBlock"])(j["Fragment"],null,Object(j["renderList"])(e.colSizeList,(function(e,t){return Object(j["openBlock"])(),Object(j["createElementBlock"])("col",{span:"1",key:t,width:e},null,8,rd)})),128))]),Object(j["createElementVNode"])("tbody",null,[(Object(j["openBlock"])(!0),Object(j["createElementBlock"])(j["Fragment"],null,Object(j["renderList"])(e.data,(function(t,n){return Object(j["openBlock"])(),Object(j["createElementBlock"])("tr",{key:n},[(Object(j["openBlock"])(!0),Object(j["createElementBlock"])(j["Fragment"],null,Object(j["renderList"])(t,(function(t,o){return Object(j["withDirectives"])((Object(j["openBlock"])(),Object(j["createElementBlock"])("td",{class:"cell",style:Object(j["normalizeStyle"])(Object(S["a"])({borderStyle:e.outline.style,borderColor:e.outline.color,borderWidth:e.outline.width+"px"},e.getTextStyle(t.style))),key:t.id,rowspan:t.rowspan,colspan:t.colspan},[Object(j["createElementVNode"])("div",{class:"cell-text",innerHTML:e.formatText(t.text)},null,8,ud)],12,id)),[[j["vShow"],!e.hideCells.includes("".concat(n,"_").concat(o))]])})),128))])})),128))])],6)],4)}var sd=Object(j["defineComponent"])({name:"static-table",props:{data:{type:Array,required:!0},width:{type:Number,required:!0},colWidths:{type:Array,required:!0},outline:{type:Object,required:!0},theme:{type:Object},editable:{type:Boolean,default:!0}},setup:function(e){var t=Object(j["ref"])([]),n=Object(j["computed"])((function(){return t.value.reduce((function(e,t){return e+t}))}));Object(j["watch"])([function(){return e.colWidths},function(){return e.width}],(function(){t.value=e.colWidths.map((function(t){return t*e.width}))}),{immediate:!0});var o=Object(j["computed"])((function(){return e.data})),l=ia(o),c=l.hideCells,a=Object(j["computed"])((function(){return e.theme})),r=ua(a),i=r.subThemeColor;return{colSizeList:t,totalWidth:n,hideCells:c,getTextStyle:aa,formatText:ra,subThemeColor:i}}});n("9316");const fd=Sn()(sd,[["render",dd],["__scopeId","data-v-74b60291"]]);var pd=fd,md=Object(j["defineComponent"])({name:"base-element-table",components:{StaticTable:pd},props:{elementInfo:{type:Object,required:!0}}});n("4607");const bd=Sn()(md,[["render",ad],["__scopeId","data-v-3bbcc75c"]]);var vd=bd,hd={class:"element-content"},Od=["width","height","stroke","stroke-width"],jd=["transform"],yd=["d"];function gd(e,t,n,o,l,c){return Object(j["openBlock"])(),Object(j["createElementBlock"])("div",{class:"base-element-latex",style:Object(j["normalizeStyle"])({top:e.elementInfo.top+"px",left:e.elementInfo.left+"px",width:e.elementInfo.width+"px",height:e.elementInfo.height+"px"})},[Object(j["createElementVNode"])("div",{class:"rotate-wrapper",style:Object(j["normalizeStyle"])({transform:"rotate(".concat(e.elementInfo.rotate,"deg)")})},[Object(j["createElementVNode"])("div",hd,[(Object(j["openBlock"])(),Object(j["createElementBlock"])("svg",{overflow:"visible",width:e.elementInfo.width,height:e.elementInfo.height,stroke:e.elementInfo.color,"stroke-width":e.elementInfo.strokeWidth,fill:"none","stroke-linecap":"round","stroke-linejoin":"round"},[Object(j["createElementVNode"])("g",{transform:"scale(".concat(e.elementInfo.width/e.elementInfo.viewBox[0],", ").concat(e.elementInfo.height/e.elementInfo.viewBox[1],") translate(0,0) matrix(1,0,0,1,0,0)")},[Object(j["createElementVNode"])("path",{d:e.elementInfo.path},null,8,yd)],8,jd)],8,Od))])],4)],4)}var xd=Object(j["defineComponent"])({name:"base-element-latex",props:{elementInfo:{type:Object,required:!0}}});n("0006");const Cd=Sn()(xd,[["render",gd],["__scopeId","data-v-4118f3dd"]]);var kd=Cd;function wd(e,t,n,o,l,c){var a=Object(j["resolveComponent"])("IconPlayOne");return Object(j["openBlock"])(),Object(j["createElementBlock"])("div",{class:"base-element-video",style:Object(j["normalizeStyle"])({top:e.elementInfo.top+"px",left:e.elementInfo.left+"px",width:e.elementInfo.width+"px",height:e.elementInfo.height+"px"})},[Object(j["createElementVNode"])("div",{class:"rotate-wrapper",style:Object(j["normalizeStyle"])({transform:"rotate(".concat(e.elementInfo.rotate,"deg)")})},[Object(j["createElementVNode"])("div",{class:"element-content",style:Object(j["normalizeStyle"])({backgroundImage:"url(".concat(e.elementInfo.poster,")")})},[Object(j["createVNode"])(a,{class:"icon"})],4)],4)],4)}var Ed=Object(j["defineComponent"])({name:"base-element-video",props:{elementInfo:{type:Object,required:!0}}});n("4b15");const Nd=Sn()(Ed,[["render",wd],["__scopeId","data-v-1c831c75"]]);var Id=Nd,Vd={class:"element-content"};function Sd(e,t,n,o,l,c){var a=Object(j["resolveComponent"])("IconVolumeNotice");return Object(j["openBlock"])(),Object(j["createElementBlock"])("div",{class:"base-element-audio",style:Object(j["normalizeStyle"])({top:e.elementInfo.top+"px",left:e.elementInfo.left+"px",width:e.elementInfo.width+"px",height:e.elementInfo.height+"px"})},[Object(j["createElementVNode"])("div",{class:"rotate-wrapper",style:Object(j["normalizeStyle"])({transform:"rotate(".concat(e.elementInfo.rotate,"deg)")})},[Object(j["createElementVNode"])("div",Vd,[Object(j["createVNode"])(a,{class:"audio-icon",style:Object(j["normalizeStyle"])({fontSize:e.audioIconSize,color:e.elementInfo.color})},null,8,["style"])])],4)],4)}var Bd=Object(j["defineComponent"])({name:"base-element-audio",props:{elementInfo:{type:Object,required:!0}},setup:function(e){var t=Object(j["computed"])((function(){return Math.min(e.elementInfo.width,e.elementInfo.height)+"px"}));return{audioIconSize:t}}});n("dab5");const Ld=Sn()(Bd,[["render",Sd],["__scopeId","data-v-513e91c4"]]);var Td=Ld,Md=Object(j["defineComponent"])({name:"base-element",props:{elementInfo:{type:Object,required:!0},elementIndex:{type:Number,required:!0}},setup:function(e){var t=Object(j["computed"])((function(){var t,n=(t={},Object(ce["a"])(t,to.IMAGE,Mu),Object(ce["a"])(t,to.TEXT,Fu),Object(ce["a"])(t,to.SHAPE,Yu),Object(ce["a"])(t,to.LINE,ed),Object(ce["a"])(t,to.CHART,ld),Object(ce["a"])(t,to.TABLE,vd),Object(ce["a"])(t,to.LATEX,kd),Object(ce["a"])(t,to.VIDEO,Id),Object(ce["a"])(t,to.AUDIO,Td),t);return n[e.elementInfo.type]||null}));return{currentElementComponent:t}}});const _d=Sn()(Md,[["render",Vu]]);var Dd=_d,zd=Object(j["defineComponent"])({name:"thumbnail-slide",components:{ThumbnailElement:Dd},props:{slide:{type:Object,required:!0},size:{type:Number,required:!0},visible:{type:Boolean,default:!0}},setup:function(e){var t=Object(y["c"])(Q()),n=t.viewportRatio,o=Object(j["computed"])((function(){return e.slide.background})),l=Kr(o),c=l.backgroundStyle,a=Object(j["computed"])((function(){return e.size/Xe}));return Object(j["provide"])("slideScale",a),{scale:a,backgroundStyle:c,VIEWPORT_SIZE:Xe,viewportRatio:n}}});n("4405");const Ad=Sn()(zd,[["render",Iu],["__scopeId","data-v-06a163ec"]]);var Fd=Ad,Rd=Object(j["defineComponent"])({name:"link-dialog",emits:["close"],components:{ThumbnailSlide:Fd},setup:function(e,t){var n=t.emit,o=Object(y["c"])($()),l=o.handleElement,c=Object(y["c"])(Q()),a=c.slides,r=Object(j["ref"])("web"),i=Object(j["ref"])(""),u=Object(j["ref"])(""),d=Object(j["computed"])((function(){return u.value&&a.value.find((function(e){return e.id===u.value}))||null})),s=[{key:"web",label:"网页链接"},{key:"slide",label:"幻灯片页面"}],f=du(),p=f.setLink;Object(j["onMounted"])((function(){var e;null!==(e=l.value)&&void 0!==e&&e.link&&("web"===l.value.link.type?i.value=l.value.link.target:"slide"===l.value.link.type&&(u.value=l.value.link.target),r.value=l.value.link.type)}));var m=function(){return n("close")},b=function(){var e={type:r.value,target:"web"===r.value?i.value:u.value};if(l.value){var t=p(l.value,e);t?m():i.value=""}};return{slides:a,tabs:s,type:r,address:i,slideId:u,selectedSlide:d,close:m,save:b}}});n("73f6");const Pd=Sn()(Rd,[["render",Eu],["__scopeId","data-v-5a0d0b33"]]);var Hd=Pd,qd=Object(j["defineComponent"])({name:"editor-canvas",components:{EditableElement:Fr,MouseSelection:qr,ViewportBackground:ei,AlignmentLine:li,ElementCreateSelection:di,MultiSelectOperate:Ci,Operate:vu,LinkDialog:Hd},setup:function(){var e=$(),t=Object(y["c"])(e),n=t.activeElementIdList,o=t.activeGroupElementId,l=t.handleElementId,c=t.editorAreaFocus,a=t.showGridLines,r=t.creatingElement,i=t.canvasScale,u=Object(y["c"])(Q()),d=u.currentSlide,s=Object(y["c"])(de()),f=s.ctrlKeyState,p=s.ctrlOrShiftKeyActive,m=Object(j["ref"])(),b=Object(j["ref"])([]),v=Object(j["ref"])(!1),h=function(){return v.value=!0};Object(j["watch"])(l,(function(){e.setActiveGroupElementId("")}));var O=Object(j["ref"])([]),g=function(){O.value=d.value?JSON.parse(JSON.stringify(d.value.elements)):[]};Object(j["watchEffect"])(g);var x=Object(j["ref"])(),C=Fn(x),k=C.viewportStyles;Pn(x);var w=Rn(O,m),E=w.mouseSelectionState,I=w.updateMouseSelection,V=Jn(O,b),S=V.dragElement,B=Kn(O),L=B.dragLineElement,T=Zn(O,S),M=T.selectElement,_=Yn(O,b),D=_.scaleElement,z=_.scaleMultiElement,A=qn(O,m),F=A.rotateElement,R=Qe(),P=R.selectAllElement,H=Ze(),q=H.deleteAllElements,X=Ke(),W=X.pasteElement,G=lt(),U=G.enterScreening,Z=Ue(),J=Z.updateSlideIndex,K=function(t){e.setActiveElementIdList([]),p.value||I(t),c.value||e.setEditorareaFocus(!0),An()},ee=function(){c.value&&e.setEditorareaFocus(!1)},te=ct(),ne=te.scaleCanvas,oe=Object(Y["throttle"])(ne,100,{leading:!0,trailing:!1}),le=Object(Y["throttle"])(J,300,{leading:!0,trailing:!1}),ce=function(e){e.preventDefault(),f.value?e.deltaY>0?oe("-"):e.deltaY<0&&oe("+"):e.deltaY>0?le(N.DOWN):e.deltaY<0&&le(N.UP)},ae=function(){e.setGridLinesState(!a.value)},re=Qn(m),ie=re.insertElementFromCreateSelection,ue=function(){return[{text:"粘贴",subText:"Ctrl + V",handler:W},{text:"全选",subText:"Ctrl + A",handler:P},{text:"网格线",subText:a.value?"√":"",handler:ae},{text:"重置当前页",handler:q},{divider:!0},{text:"从当前页演示",subText:"Ctrl+F",handler:U}]};return Object(j["provide"])("slideScale",i),{elementList:O,activeElementIdList:n,handleElementId:l,activeGroupElementId:o,canvasRef:x,viewportRef:m,viewportStyles:k,canvasScale:i,mouseSelectionState:E,currentSlide:d,creatingElement:r,alignmentLines:b,linkDialogVisible:v,openLinkDialog:h,handleClickBlankArea:K,removeEditorAreaFocus:ee,insertElementFromCreateSelection:ie,selectElement:M,rotateElement:F,scaleElement:D,dragLineElement:L,scaleMultiElement:z,handleMousewheelCanvas:ce,contextmenus:ue}}});n("2f42");const Xd=Sn()(qd,[["render",zn],["__scopeId","data-v-1386e8fc"]]);var Wd=Xd,Gd={class:"canvas-tool"},Ud={class:"left-handler"},Yd={class:"add-element-handler"},Zd={class:"right-handler"},Jd={class:"text"};function Kd(e,t,n,o,l,c){var a=Object(j["resolveComponent"])("IconBack"),r=Object(j["resolveComponent"])("Tooltip"),i=Object(j["resolveComponent"])("IconNext"),u=Object(j["resolveComponent"])("IconFontSize"),d=Object(j["resolveComponent"])("IconPicture"),s=Object(j["resolveComponent"])("FileInput"),f=Object(j["resolveComponent"])("ShapePool"),p=Object(j["resolveComponent"])("IconGraphicDesign"),m=Object(j["resolveComponent"])("Popover"),b=Object(j["resolveComponent"])("LinePool"),v=Object(j["resolveComponent"])("IconConnection"),h=Object(j["resolveComponent"])("ChartPool"),O=Object(j["resolveComponent"])("IconChartProportion"),y=Object(j["resolveComponent"])("TableGenerator"),g=Object(j["resolveComponent"])("IconInsertTable"),x=Object(j["resolveComponent"])("IconFormula"),C=Object(j["resolveComponent"])("MediaInput"),k=Object(j["resolveComponent"])("IconVideoTwo"),w=Object(j["resolveComponent"])("IconMinus"),E=Object(j["resolveComponent"])("IconPlus"),N=Object(j["resolveComponent"])("IconFullScreen"),I=Object(j["resolveComponent"])("LaTeXEditor"),V=Object(j["resolveComponent"])("Modal");return Object(j["openBlock"])(),Object(j["createElementBlock"])("div",Gd,[Object(j["createElementVNode"])("div",Ud,[Object(j["createVNode"])(r,{mouseLeaveDelay:0,mouseEnterDelay:.5,title:"撤销"},{default:Object(j["withCtx"])((function(){return[Object(j["createVNode"])(a,{class:Object(j["normalizeClass"])(["handler-item",{disable:!e.canUndo}]),onClick:t[0]||(t[0]=function(t){return e.undo()})},null,8,["class"])]})),_:1},8,["mouseEnterDelay"]),Object(j["createVNode"])(r,{mouseLeaveDelay:0,mouseEnterDelay:.5,title:"重做"},{default:Object(j["withCtx"])((function(){return[Object(j["createVNode"])(i,{class:Object(j["normalizeClass"])(["handler-item",{disable:!e.canRedo}]),onClick:t[1]||(t[1]=function(t){return e.redo()})},null,8,["class"])]})),_:1},8,["mouseEnterDelay"])]),Object(j["createElementVNode"])("div",Yd,[Object(j["createVNode"])(r,{mouseLeaveDelay:0,mouseEnterDelay:.5,title:"插入文字"},{default:Object(j["withCtx"])((function(){return[Object(j["createVNode"])(u,{class:"handler-item",onClick:t[2]||(t[2]=function(t){return e.drawText()})})]})),_:1},8,["mouseEnterDelay"]),Object(j["createVNode"])(s,{onChange:t[3]||(t[3]=function(t){return e.insertImageElement(t)})},{default:Object(j["withCtx"])((function(){return[Object(j["createVNode"])(r,{mouseLeaveDelay:0,mouseEnterDelay:.5,title:"插入图片"},{default:Object(j["withCtx"])((function(){return[Object(j["createVNode"])(d,{class:"handler-item"})]})),_:1},8,["mouseEnterDelay"])]})),_:1}),Object(j["createVNode"])(m,{trigger:"click",visible:e.shapePoolVisible,"onUpdate:visible":t[5]||(t[5]=function(t){return e.shapePoolVisible=t})},{content:Object(j["withCtx"])((function(){return[Object(j["createVNode"])(f,{onSelect:t[4]||(t[4]=function(t){return e.drawShape(t)})})]})),default:Object(j["withCtx"])((function(){return[Object(j["createVNode"])(r,{mouseLeaveDelay:0,mouseEnterDelay:.5,title:"插入形状"},{default:Object(j["withCtx"])((function(){return[Object(j["createVNode"])(p,{class:"handler-item"})]})),_:1},8,["mouseEnterDelay"])]})),_:1},8,["visible"]),Object(j["createVNode"])(m,{trigger:"click",visible:e.linePoolVisible,"onUpdate:visible":t[7]||(t[7]=function(t){return e.linePoolVisible=t})},{content:Object(j["withCtx"])((function(){return[Object(j["createVNode"])(b,{onSelect:t[6]||(t[6]=function(t){return e.drawLine(t)})})]})),default:Object(j["withCtx"])((function(){return[Object(j["createVNode"])(r,{mouseLeaveDelay:0,mouseEnterDelay:.5,title:"插入线条"},{default:Object(j["withCtx"])((function(){return[Object(j["createVNode"])(v,{class:"handler-item"})]})),_:1},8,["mouseEnterDelay"])]})),_:1},8,["visible"]),Object(j["createVNode"])(m,{trigger:"click",visible:e.chartPoolVisible,"onUpdate:visible":t[9]||(t[9]=function(t){return e.chartPoolVisible=t})},{content:Object(j["withCtx"])((function(){return[Object(j["createVNode"])(h,{onSelect:t[8]||(t[8]=function(t){e.createChartElement(t),e.chartPoolVisible=!1})})]})),default:Object(j["withCtx"])((function(){return[Object(j["createVNode"])(r,{mouseLeaveDelay:0,mouseEnterDelay:.5,title:"插入图表"},{default:Object(j["withCtx"])((function(){return[Object(j["createVNode"])(O,{class:"handler-item"})]})),_:1},8,["mouseEnterDelay"])]})),_:1},8,["visible"]),Object(j["createVNode"])(m,{trigger:"click",visible:e.tableGeneratorVisible,"onUpdate:visible":t[12]||(t[12]=function(t){return e.tableGeneratorVisible=t})},{content:Object(j["withCtx"])((function(){return[Object(j["createVNode"])(y,{onClose:t[10]||(t[10]=function(t){return e.tableGeneratorVisible=!1}),onInsert:t[11]||(t[11]=function(t){var n=t.row,o=t.col;e.createTableElement(n,o),e.tableGeneratorVisible=!1})})]})),default:Object(j["withCtx"])((function(){return[Object(j["createVNode"])(r,{mouseLeaveDelay:0,mouseEnterDelay:.5,title:"插入表格"},{default:Object(j["withCtx"])((function(){return[Object(j["createVNode"])(g,{class:"handler-item"})]})),_:1},8,["mouseEnterDelay"])]})),_:1},8,["visible"]),Object(j["createVNode"])(r,{mouseLeaveDelay:0,mouseEnterDelay:.5,title:"插入公式"},{default:Object(j["withCtx"])((function(){return[Object(j["createVNode"])(x,{class:"handler-item",onClick:t[13]||(t[13]=function(t){return e.latexEditorVisible=!0})})]})),_:1},8,["mouseEnterDelay"]),Object(j["createVNode"])(m,{trigger:"click",visible:e.mediaInputVisible,"onUpdate:visible":t[17]||(t[17]=function(t){return e.mediaInputVisible=t})},{content:Object(j["withCtx"])((function(){return[Object(j["createVNode"])(C,{onClose:t[14]||(t[14]=function(t){return e.mediaInputVisible=!1}),onInsertVideo:t[15]||(t[15]=function(t){e.createVideoElement(t),e.mediaInputVisible=!1}),onInsertAudio:t[16]||(t[16]=function(t){e.createAudioElement(t),e.mediaInputVisible=!1})})]})),default:Object(j["withCtx"])((function(){return[Object(j["createVNode"])(r,{mouseLeaveDelay:0,mouseEnterDelay:.5,title:"插入音视频"},{default:Object(j["withCtx"])((function(){return[Object(j["createVNode"])(k,{class:"handler-item"})]})),_:1},8,["mouseEnterDelay"])]})),_:1},8,["visible"])]),Object(j["createElementVNode"])("div",Zd,[Object(j["createVNode"])(w,{class:"handler-item viewport-size",onClick:t[18]||(t[18]=function(t){return e.scaleCanvas("-")})}),Object(j["createElementVNode"])("span",Jd,Object(j["toDisplayString"])(e.canvasScalePercentage),1),Object(j["createVNode"])(E,{class:"handler-item viewport-size",onClick:t[19]||(t[19]=function(t){return e.scaleCanvas("+")})}),Object(j["createVNode"])(r,{mouseLeaveDelay:0,mouseEnterDelay:.5,title:"适配屏幕"},{default:Object(j["withCtx"])((function(){return[Object(j["createVNode"])(N,{class:"handler-item viewport-size-adaptation",onClick:t[20]||(t[20]=function(t){return e.setCanvasPercentage(90)})})]})),_:1},8,["mouseEnterDelay"])]),Object(j["createVNode"])(V,{visible:e.latexEditorVisible,"onUpdate:visible":t[23]||(t[23]=function(t){return e.latexEditorVisible=t}),footer:null,centered:"",width:880,destroyOnClose:""},{default:Object(j["withCtx"])((function(){return[Object(j["createVNode"])(I,{onClose:t[21]||(t[21]=function(t){return e.latexEditorVisible=!1}),onUpdate:t[22]||(t[22]=function(t){e.createLatexElement(t),e.latexEditorVisible=!1})})]})),_:1},8,["visible"])])}var Qd={class:"shape-pool"},$d={class:"category-name"},es={class:"shape-list"},ts=["onClick"],ns={overflow:"visible",width:"18",height:"18"},os=["transform"],ls=["d"];function cs(e,t,n,o,l,c){return Object(j["openBlock"])(),Object(j["createElementBlock"])("div",Qd,[(Object(j["openBlock"])(!0),Object(j["createElementBlock"])(j["Fragment"],null,Object(j["renderList"])(e.shapeList,(function(t){return Object(j["openBlock"])(),Object(j["createElementBlock"])("div",{class:"category",key:t.type},[Object(j["createElementVNode"])("div",$d,Object(j["toDisplayString"])(t.type),1),Object(j["createElementVNode"])("div",es,[(Object(j["openBlock"])(!0),Object(j["createElementBlock"])(j["Fragment"],null,Object(j["renderList"])(t.children,(function(t,n){return Object(j["openBlock"])(),Object(j["createElementBlock"])("div",{class:"shape-item",key:n},[Object(j["createElementVNode"])("div",{class:"shape-content",onClick:function(n){return e.selectShape(t)}},[(Object(j["openBlock"])(),Object(j["createElementBlock"])("svg",ns,[Object(j["createElementVNode"])("g",{transform:"scale(".concat(18/t.viewBox,", ").concat(18/t.viewBox,") translate(0,0) matrix(1,0,0,1,0,0)")},[Object(j["createElementVNode"])("path",{class:"shape-path","vector-effect":"non-scaling-stroke","stroke-linecap":"butt","stroke-miterlimit":"8","stroke-linejoin":"",fill:"transparent",stroke:"#999","stroke-width":"2",d:t.path},null,8,ls)],8,os)]))],8,ts)])})),128))])])})),128))])}var as=[{type:"矩形",children:[{viewBox:200,path:"M 0 0 L 200 0 L 200 200 L 0 200 Z"},{viewBox:200,path:"M 20 0 L 180 0 Q 200 0 200 20 L 200 180 Q 200 200 180 200 L 20 200 Q 0 200 0 180 L 0 20 Q 0 0 20 0 Z"},{viewBox:200,path:"M 0 150 L 0 0 L 150 0 L 200 50 L 200 200 L 50 200 L 0 150 Z"},{viewBox:200,path:"M 0 200 L 0 0 L 150 0 L 200 50 L 200 200 L 0 200"},{viewBox:200,path:"M 0 50 L 50 0 L 150 0 L 200 50 L 200 200 L 0 200 L 0 50 Z"},{viewBox:200,path:"M 0 0 L 140 0 Q 200 0 200 60 L 200 200 L 60 200 Q 0 200 0 140 L 0 0 Z"},{viewBox:200,path:"M 0 0 L 140 0 Q 200 0 200 60 L 200 200 L 0 200 L 0 0 Z"},{viewBox:200,path:"M 0 50 Q 0 0 50 0 L 150 0 Q 200 0 200 50 L 200 200 L 0 200 L 0 50 Z"}]},{type:"常用形状",children:[{viewBox:200,path:"M 100 0 A 50 50 0 1 1 100 200 A 50 50 0 1 1 100 0 Z"},{viewBox:200,path:"M 0 200 A 50 100 0 1 1 200 200 L 0 200 Z"},{viewBox:200,path:"M 100 0 A 100 100 102 1 0 200 100 L 100 100 L 100 0 Z"},{viewBox:200,path:"M 100 0 A 100 100 102 1 0 200 100 L 100 0 Z"},{viewBox:200,path:"M 100 0 A 100 100 102 1 0 200 100 L 200 0 L 100 0 Z"},{viewBox:200,path:"M 0 0 L 200 0 Q 200 200 0 200 L 0 0 Z"},{viewBox:200,path:"M 100 0 L 0 200 L 200 200 L 100 0 Z"},{viewBox:200,path:"M 0 0 L 0 200 L 200 200 Z"},{viewBox:200,path:"M 50 0 L 200 0 L 150 200 L 0 200 L 50 0 Z"},{viewBox:200,path:"M 0 0 L 150 0 L 200 200 L 50 200 L 0 0 Z"},{viewBox:200,path:"M 50 0 L 150 0 L 200 200 L 0 200 L 50 0 Z"},{viewBox:200,path:"M 100 0 L 0 100 L 100 200 L 200 100 L 100 0 Z"},{viewBox:200,path:"M 100 0 L 0 90 L 50 200 L 150 200 L 200 90 L 100 0 Z"},{viewBox:200,path:"M 100 0 L 0 60 L 0 140 L 100 200 L 200 140 L 200 60 L 100 0 Z"},{viewBox:200,path:"M 60 0 L 140 0 L 200 60 L 200 140 L 140 200 L 60 200 L 0 140 L 0 60 L 60 0 Z"},{viewBox:200,path:"M 75 0 L 125 0 L 175 25 L 200 75 L 200 125 L 175 175 L 125 200 L 75 200 L 25 175 L 0 125 L 0 75 L 25 25 L 75 0 Z"},{viewBox:200,path:"M 100 0 L 0 50 L 0 200 L 200 200 L 200 50 L 100 0 Z"},{viewBox:200,path:"M 150 0 A 50 100 0 1 1 150 200 L 0 200 L 0 0 L 150 0 Z"},{viewBox:200,path:"M 150 0 A 50 100 0 1 1 150 200 L 0 200 A 50 100 0 0 0 0 0 L 150 0 Z"},{viewBox:200,path:"M 200 100 L 150 0 L 0 0 L 50 100 L 0 200 L 150 200 L 200 100 Z"},{viewBox:200,path:"M 200 0 L 200 200 L 0 200 L 0 100 L 200 0 Z"},{viewBox:200,path:"M 0 0 L 200 100 L 200 200 L 0 200 L 0 0 Z"},{viewBox:200,path:"M 200 0 L 100 0 L 0 100 L 0 200 L 200 0 Z"},{viewBox:200,path:"M 50 0 L 150 0 L 150 50 L 200 50 L 200 150 L 150 150 L 150 200 L 50 200 L 50 150 L 0 150 L 0 50 L 50 50 L 50 0 Z"},{viewBox:200,path:"M 0 0 L 0 200 L 200 200 L 200 140 L 60 140 L 60 0 L 0 0 Z"},{viewBox:200,path:"M0 0 L200 0 L200 200 L0 200 L0 0 Z M50 50 L50 150 L150 150 L150 50 Z"},{viewBox:200,path:"M0 100 A100 100 0 1 1 0 101 Z M150 100 A50 50 0 1 0 150 101 Z"},{viewBox:200,path:"M 70 0 L 70 70 L 0 70 L 0 130 L 70 130 L 70 200 L 130 200 L 130 130 L 200 130 L 200 70 L 130 70 L 130 0 L 70 0 Z"},{viewBox:200,path:"M 40 0 L 0 40 L 60 100 L 0 160 L 40 200 L 100 140 L 160 200 L 200 160 L 140 100 L 200 40 L 160 0 L 100 60 L 40 0 Z"},{viewBox:200,path:"M 0 0 L 200 0 L 200 160 L 100 160 L 60 200 L 60 160 L 0 160 L 0 0 Z"},{viewBox:200,path:"M 0 40 Q 0 0 40 0 L 160 0 Q 200 0 200 40 L 200 120 Q 200 160 160 160 L 100 160 L 60 200 L 60 160 L 40 160 Q 0 160 0 120 L 0 40 Z"},{viewBox:200,path:"M 180 160 A 100 100 0 1 0 100 200 L 200 200 L 200 160 L 180 160 Z"},{viewBox:200,path:"M 200 0 L 0 0 L 200 200 L 0 200 L 200 0 Z"},{viewBox:200,path:"M 0 20 C 60 60 140 -40 200 20 L 200 180 C 140 140 60 240 0 180 L 0 20 Z"},{viewBox:200,path:"M 0 20 C 40 -40 60 60 100 20 C 140 -40 160 60 200 20 L 200 180 C 140 240 160 140 100 180 C 40 240 60 140 0 180 L 0 20 Z"}]},{type:"箭头",children:[{viewBox:200,path:"M 100 0 L 0 100 L 50 100 L 50 200 L 150 200 L 150 100 L 200 100 L 100 0 Z"},{viewBox:200,path:"M 100 200 L 200 100 L 150 100 L 150 0 L 50 0 L 50 100 L 0 100 L 100 200 Z"},{viewBox:200,path:"M 0 100 L 100 0 L 100 50 L 200 50 L 200 150 L 100 150 L 100 200 L 0 100 Z"},{viewBox:200,path:"M 200 100 L 100 0 L 100 50 L 0 50 L 0 150 L 100 150 L 100 200 L 200 100 Z"},{viewBox:200,path:"M 100 0 L 0 60 L 60 60 L 60 140 L 0 140 L 100 200 L 200 140 L 140 140 L 140 60 L 200 60 L 100 0 Z"},{viewBox:200,path:"M 0 100 L 60 0 L 60 60 L 140 60 L 140 0 L 200 100 L 140 200 L 140 140 L 60 140 L 60 200 L 0 100 Z"},{viewBox:200,path:"M 100 0 L 60 40 L 80 40 L 80 80 L 40 80 L 40 60 L 0 100 L 40 140 L 40 120 L 80 120 L 80 160 L 60 160 L 100 200 L 140 160 L 120 160 L 120 120 L 160 120 L 160 140 L 200 100 L 160 60 L 160 80 L 120 80 L 120 40 L 140 40 L 100 0 Z"},{viewBox:200,path:"M 0 100 L 100 0 L 100 50 L 200 50 L 150 100 L 200 150 L 100 150 L 100 200 L 0 100 Z"},{viewBox:200,path:"M 200 100 L 100 0 L 100 50 L 0 50 L 50 100 L 0 150 L 100 150 L 100 200 L 200 100 Z"},{viewBox:200,path:"M 0 100 L 80 20 L 80 80 L 120 80 L 120 0 L 200 0 L 200 200 L 120 200 L 120 120 L 80 120 L 80 180 L 0 100 Z"},{viewBox:200,path:"M 200 100 L 120 20 L 120 80 L 80 80 L 80 0 L 0 0 L 0 200 L 80 200 L 80 120 L 120 120 L 120 180 L 200 100 Z"},{viewBox:200,path:"M 0 0 L 120 0 L 200 100 L 120 200 L 0 200 L 80 100 L 0 0 Z"},{viewBox:200,path:"M 80 0 L 200 0 L 120 100 L 200 200 L 80 200 L 0 100 L 80 0 Z"},{viewBox:200,path:"M 0 0 L 140 0 L 200 100 L 140 200 L 0 200 L 0 100 L 0 0 Z"},{viewBox:200,path:"M 60 0 L 200 0 L 200 100 L 200 200 L 60 200 L 0 100 L 60 0 Z"},{viewBox:200,path:"M 0 0 L 200 100 L 0 200 L 60 100 L 0 0 Z"},{viewBox:200,path:"M 200 0 L 0 100 L 200 200 L 140 100 L 200 0 Z"},{viewBox:200,path:"M 0 0 L 80 0 L 200 100 L 80 200 L 0 200 L 120 100 L 0 0 Z"},{viewBox:200,path:"M 200 0 L 120 0 L 0 100 L 120 200 L 200 200 L 80 100 L 200 0 Z"},{viewBox:200,path:"M 0 200 L 180 200 L 180 40 L 200 40 L 160 0 L 120 40 L 140 40 L 140 160 L 0 160 L 0 200 Z"},{viewBox:200,path:"M 0 200 L 0 20 L 160 20 L 160 0 L 200 40 L 160 80 L 160 60 L 40 60 L 40 200 L 0 200 Z"},{viewBox:200,path:"M 40 180 L 180 180 L 180 40 L 200 40 L 160 0 L 120 40 L 140 40 L 140 140 L 40 140 L 40 120 L 0 160 L 40 200 L 40 180 Z"},{viewBox:1024,path:"M398.208 302.912V64L0 482.112l398.208 418.176V655.36c284.48 0 483.584 95.552 625.792 304.64-56.896-298.688-227.584-597.312-625.792-657.088z",special:!0},{viewBox:1024,path:"M625.792 302.912V64L1024 482.112l-398.208 418.176V655.36C341.312 655.36 142.208 750.912 0 960c56.896-298.688 227.584-597.312 625.792-657.088z",special:!0}]},{type:"其他形状",children:[{viewBox:1024,path:"M995.336 243.4016c-15.7584-36.5736-38.3376-69.26639999-66.91440001-97.37280001-28.5768-27.98879999-61.73999999-49.8624-98.78399999-65.26799998-38.22-15.876-78.6744-23.8728-120.4224-23.87280001-57.97680001 0-114.5424 15.876-163.69919999 45.864-11.76 7.17360001-22.932 15.05279999-33.51600001 23.63760001-10.584-8.5848-21.75600001-16.46400001-33.51600001-23.63760001-49.1568-29.98799999-105.7224-45.86399999-163.69919999-45.864-41.74799999 0-82.2024 7.9968-120.4224 23.87280001-36.9264 15.28799999-70.2072 37.27919999-98.78399999 65.26799998-28.6944 28.10640001-51.156 60.79919999-66.91440001 97.37280001-16.34639999 37.9848-24.696 78.3216-24.696 119.83439999 0 39.1608 7.9968 79.96800001 23.8728 121.48080001 13.28880001 34.692 32.34000001 70.67760001 56.6832 107.016 38.57279999 57.5064 91.61040001 117.4824 157.4664 178.28160001 109.1328 100.78319999 217.2072 170.4024 221.79359999 173.22479998l27.87120001 17.8752c12.348 7.8792 28.224 7.8792 40.572 0l27.87119999-17.8752c4.58639999-2.94 112.54319999-72.44159999 221.79360001-173.22479998 65.85599999-60.79919999 118.89359999-120.7752 157.4664-178.28160001 24.3432-36.33839999 43.512-72.324 56.68319999-107.016 15.876-41.5128 23.8728-82.32 23.87280001-121.48080001 0.1176-41.5128-8.232-81.8496-24.5784-119.83439999z",special:!0},{viewBox:1024,path:"M985.20746667 343.50079998l-303.32586667-44.08319999L546.28693333 24.5248c-3.70346666-7.5264-9.79626667-13.6192-17.32266665-17.32266668-18.87573334-9.3184-41.81333333-1.55306667-51.25120001 17.32266668L342.1184 299.41759999l-303.32586667 44.08319999c-8.36266667 1.19466667-16.00853333 5.13706667-21.8624 11.11040001-14.69440001 15.17226667-14.45546667 39.30453334 0.71679999 54.1184l219.46026668 213.9648-51.84853333 302.1312c-1.43359999 8.24320001-0.11946667 16.8448 3.82293333 24.25173333 9.79626667 18.6368 32.9728 25.92426667 51.6096 16.00853334L512 822.44266665l271.3088 142.64320001c7.40693333 3.9424 16.00853333 5.25653333 24.25173333 3.82293333 20.78719999-3.584 34.7648-23.296 31.1808-44.0832l-51.84853333-302.1312 219.46026668-213.9648c5.97333334-5.85386666 9.91573333-13.49973334 11.11039999-21.8624 3.2256-20.90666667-11.34933333-40.26026667-32.256-43.36640001z",special:!0},{viewBox:1024,path:"M852.65066667 405.84533333C800.54044445 268.40177778 667.76177778 170.66666667 512.22755555 170.66666667S223.91466667 268.288 171.80444445 405.73155555C74.29688889 431.33155555 2.27555555 520.07822222 2.27555555 625.77777778c0 125.72444445 101.83111111 227.55555555 227.44177778 227.55555555h564.56533334C919.89333333 853.33333333 1021.72444445 751.50222222 1021.72444445 625.77777778c0-105.472-71.79377778-194.21866667-169.07377778-219.93244445z",special:!0},{viewBox:1024,path:"M926.25224691 323.7371485H654.6457886L898.88200917 15.14388241c5.05486373-6.53433603 0.49315743-16.02761669-7.76722963-16.02761668H418.30008701c-3.45210206 0-6.78091476 1.84934039-8.50696579 4.93157436L90.35039154 555.76772251c-3.82197013 6.53433603 0.86302552 14.7947231 8.50696578 14.79472311h215.01664245l-110.22068713 440.88274851c-2.34249783 9.61657002 9.24670194 16.39748478 16.39748477 9.49328065L933.03316167 340.62779071c6.41104668-6.0411786 2.09591911-16.8906422-6.78091476-16.89064221z",special:!0},{viewBox:1024,path:"M878.47822222 463.30311111c-22.18666667-49.83466667-53.93066667-93.98044445-94.32177777-131.072l-33.10933334-30.37866666c-4.89244445-4.32355555-12.62933333-2.38933333-14.79111111 3.75466666l-14.79111111 42.43911111c-9.216 26.624-26.16888889 53.81688889-50.176 80.55466667-1.59288889 1.70666667-3.41333333 2.16177778-4.66488889 2.27555556-1.25155555 0.11377778-3.18577778-0.11377778-4.89244445-1.70666667-1.59288889-1.36533333-2.38933333-3.41333333-2.27555555-5.46133333 4.20977778-68.49422222-16.27022222-145.74933333-61.09866667-229.83111112C561.26577778 124.01777778 509.72444445 69.51822222 445.32622222 31.51644445l-46.99022222-27.648c-6.144-3.64088889-13.99466667 1.13777778-13.65333333 8.30577777l2.50311111 54.61333333c1.70666667 37.31911111-2.61688889 70.31466667-12.85688889 97.73511112-12.51555555 33.56444445-30.49244445 64.73955555-53.47555556 92.72888888-16.15644445 19.56977778-34.24711111 37.20533333-54.04444444 52.45155556-47.90044445 36.75022222-87.38133333 84.65066667-114.11911111 138.24C125.72444445 502.10133333 111.50222222 562.74488889 111.50222222 623.50222222c0 53.70311111 10.58133333 105.69955555 31.51644445 154.73777778 20.25244445 47.21777778 49.152 89.77066667 85.90222222 126.17955555 36.864 36.40888889 79.64444445 65.08088889 127.31733333 84.992C405.61777778 1010.11911111 457.95555555 1020.58666667 512 1020.58666667s106.38222222-10.46755555 155.76177778-31.06133334c47.67288889-19.91111111 90.56711111-48.46933333 127.31733333-84.992 36.864-36.40888889 65.76355555-78.96177778 85.90222222-126.17955555 20.93511111-49.03822222 31.51644445-101.03466667 31.51644445-154.73777778 0-55.52355555-11.37777778-109.45422222-34.01955556-160.31288889z",special:!0},{viewBox:1024,path:"M968.20337778 20.11591112H705.44042667c-22.17301333 0-41.92483556 15.16430222-47.14951111 37.33731555C642.36202666 124.73685332 582.08711111 173.03324444 512 173.03324444s-130.36202666-48.29639112-146.29091556-115.58001777c-5.22467555-22.17301333-24.84906667-37.33731556-47.14951111-37.33731555H55.79662222c-30.96576 0-56.06968889 25.10392889-56.06968888 56.06968888v321.12639999c0 30.96576 25.10392889 56.06968889 56.06968888 56.06968889h95.57333334v494.43271112c0 30.96576 25.10392889 56.06968889 56.06968889 56.06968888h609.1207111c30.96576 0 56.06968889-25.10392889 56.06968889-56.06968888V453.38168888h95.57333334c30.96576 0 56.06968889-25.10392889 56.06968888-56.06968889V76.1856c0-30.96576-25.10392889-56.06968889-56.06968888-56.06968888z",special:!0},{viewBox:1024,path:"M980.94648889 239.80714666H523.46880001L373.99210666 96.82944c-1.91146667-1.78403556-4.46008889-2.80348444-7.00871111-2.80348445H43.05351111c-22.55530667 0-40.77795555 18.22264888-40.77795555 40.77795557v754.39217776c0 22.55530667 18.22264888 40.77795555 40.77795555 40.77795557h937.89297778c22.55530667 0 40.77795555-18.22264888 40.77795555-40.77795557V280.58510222c0-22.55530667-18.22264888-40.77795555-40.77795555-40.77795556z",special:!0},{viewBox:1024,path:"M972.60904597 164.57058577L841.30587843 33.39070759c-18.86327195-18.86327195-44.1375906-29.34286748-70.64480282-29.3428675-26.75379095 0-51.90482023 10.47959553-70.76809219 29.3428675L558.60337778 174.68031322c-18.86327195 18.86327195-29.34286748 44.1375906-29.34286749 70.64480283 0 26.75379095 10.47959553 51.90482023 29.34286749 70.76809218l103.31648301 103.31648302c-24.28800376 53.50758189-57.69942011 101.59043198-99.24793416 143.13894603-41.42522469 41.67180341-89.63136414 75.08321976-143.13894603 99.61780223L316.21649759 558.84995649c-18.86327195-18.86327195-44.1375906-29.34286748-70.64480283-29.34286747-26.75379095 0-51.90482023 10.47959553-70.76809217 29.34286747L33.39070759 700.01627278c-18.86327195 18.86327195-29.34286748 44.1375906-29.3428675 70.76809217 0 26.75379095 10.47959553 51.90482023 29.3428675 70.76809219l131.05658883 131.05658883c30.08260365 30.205893 71.63111769 47.34311394 114.28923598 47.34311394 9.00012323 0 17.63037836-0.73973616 26.13734414-2.21920846 166.19405621-27.37023774 331.03192945-115.76870829 464.06114804-248.67463751C901.84095379 636.27567408 990.11613498 471.56109018 1017.85624079 304.87387654c8.38367642-50.91850535-8.50696579-103.31648302-45.24719482-140.30329077z",special:!0},{viewBox:1024,path:"M910.60451556 640.96028445c-20.38897778-65.49959112-43.83630221-120.54983112-79.89930667-210.64362666C836.31217778 193.67708444 737.93535999 2.27555556 511.36284444 2.27555556 282.24170667 2.27555556 186.03121778 197.50001778 192.14791111 430.31665779c-36.19043555 90.22122667-59.51032888 144.88917333-79.89930667 210.64362666-43.32657778 139.53706668-29.30915556 197.26336001-18.60494222 198.53767111 22.9376 2.80348444 89.32920888-105.00323556 89.32920889-105.00323556 0 62.44124445 32.11264001 143.86972444 101.69002667 202.61546667-33.64181333 10.32192-109.20846222 38.10190221-91.24067556 68.55793777 14.52714667 24.59420444 250.01984 15.67402668 317.94062222 8.02816 67.92078222 7.64586667 303.41347556 16.56604444 317.94062223-8.02816 17.96778667-30.32860444-57.72629333-58.23601779-91.24067555-68.55793777 69.57738667-58.87317334 101.69002667-140.30165333 101.69002667-202.61546667 0 0 66.39160889 107.80672 89.32920888 105.00323556 10.83164445-1.40174222 24.84906667-59.12803556-18.47751111-198.53767111z",special:!0},{viewBox:1024,path:"M1016.86992592 199.24764445c-37.13706667 16.01991111-77.55093333 27.54939259-119.17842962 32.03982222 42.96248889-25.60758518 75.60912592-66.02145185 91.02222222-114.08118519-39.68568889 23.66577778-84.58998518 41.02068148-131.31472593 50.00154074C819.53374815 126.79395555 765.76995555 101.79318518 706.18074075 101.79318518c-114.688 0-206.92385185 92.96402963-206.92385186 207.04521482 0 16.01991111 1.94180741 32.03982222 5.09724444 47.45291852-171.72859259-8.98085925-324.88865185-91.02222222-426.71217778-216.63288889-17.96171852 30.82619259-28.15620741 66.02145185-28.1562074 104.49351112 0 71.84687408 36.53025185 135.19834075 92.23585185 172.45677036-33.98162963-1.33499259-66.02145185-10.92266667-93.57084445-26.33576296v2.54862222c0 100.6098963 71.1186963 183.98625185 165.90317037 203.1616-17.3549037 4.49042963-35.92343703 7.03905185-54.49197037 7.03905185-13.47128889 0-26.2144-1.33499259-39.07887407-3.15543704C146.69748148 681.90814815 223.03478518 741.49736297 313.93564445 743.43917037c-71.1186963 55.7056-160.19911111 88.4736-256.9253926 88.4736-17.3549037 0-33.37481482-0.60681482-50.00154074-2.54862222C98.75911111 888.22518518 207.62168889 922.20681482 324.85831111 922.20681482 705.45256297 922.20681482 913.71140741 606.90583703 913.71140741 333.23235555c0-8.98085925 0-17.96171852-0.60681482-26.94257777 40.2925037-29.4912 75.60912592-66.02145185 103.76533333-107.04213333z",special:!0},{viewBox:1024,path:"M917.96720197 1.08889505H106.03279803C53.56084718 1.08889505 9.37393998 45.27580225 9.37393998 97.74775309v5.52336372c0 19.33177108 8.28504494 41.42522469 22.0934536 55.23363205l331.40179753 392.15879462v325.87843379c0 16.57008987 8.28504494 30.37849854 22.09345359 35.90186098l209.88780469 104.94390299 2.76168121 2.76168121c27.61681602 11.04672615 55.23363335-8.28504494 55.23363335-38.66354218V550.66354348l331.40179753-392.15879462c35.90186097-41.42522469 30.37849854-102.18222047-11.04672616-135.32240022-11.04672615-13.80840865-33.14017975-22.0934536-55.23363335-22.09345359z",special:!0},{viewBox:1024,path:"M491.70164031 97.48884502a25.89076502 25.89076502 0 0 1 40.59671938 0L745.66415762 367.01171317a25.89076502 25.89076502 0 0 0 30.49932208 7.72839349l208.00640948-89.14190458a25.89076502 25.89076502 0 0 1 35.56096592 29.06238339l-115.18801541 554.96855704A103.56306132 103.56306132 0 0 1 803.14165689 952.14301275H220.85834311a103.56306132 103.56306132 0 0 1-101.4011828-82.51387024l-115.18801541-554.96855704a25.89076502 25.89076502 0 0 1 35.54802012-29.06238339l208.01935528 89.14190458a25.89076502 25.89076502 0 0 0 30.49932208-7.72839349l213.36579793-269.52286815z",special:!0},{viewBox:1024,path:"M643.02466884 387.7801525c19.85376751-88.69205333 33.718272-152.84087467 41.61900049-192.57389433C704.52292267 95.17283515 652.90057916 2.27555515 550.58614084 2.27555515c-92.26012484 0-138.59407685 45.84971417-165.91530666 137.49816969l-0.70087152 2.67605334c-16.40038399 74.13942085-41.47882668 131.61085116-74.6746315 172.73287031a189.06953915 189.06953915 0 0 1-143.04142182 70.44391902l-26.17434983 0.5606965C77.66380049 387.52529067 27.76177817 438.90551468 27.76177817 501.84374084V881.55022182c0 77.4144 62.25009818 140.17422182 139.05282766 140.17422303h492.82707951c101.23127467 0 191.59267516-63.995904 225.93535999-159.98976l102.37815468-286.22301868c26.04691951-72.82688-11.39234134-153.15945284-83.63303784-179.42300483a138.04612267 138.04612267 0 0 0-47.17499733-8.30850884H643.02466884z",special:!0},{viewBox:1024,path:"M512 512c140.82958222 0 254.86222222-114.03264 254.86222222-254.86222222S652.82958222 2.27555555 512 2.27555555a254.78940445 254.78940445 0 0 0-254.86222222 254.86222223C257.13777778 397.96736 371.17041778 512 512 512z m0 72.81777778c-170.10232889 0-509.72444445 97.57582222-509.72444445 291.27111111v145.63555556h1019.4488889v-145.63555556c0-193.69528889-339.62211555-291.27111111-509.72444445-291.27111111z",special:!0},{viewBox:1024,path:"M1019.81297778 564.50161779l-138.89991111-472.51456c-8.66531556-25.99594668-29.43658667-43.45400889-57.21656889-43.45400891s-50.33528889 15.67402668-59.00060446 41.66997334l-92.00526221 274.48661334H351.69166222L259.6864 90.33045333c-8.66531556-25.99594668-31.22062222-41.66997333-59.00060444-41.66997332s-50.33528889 17.33063112-57.2165689 43.45400887L4.69674667 564.50161779c-5.22467555 17.33063112 1.78403556 36.44529778 15.67402667 46.89464887l491.11950221 368.27591113 492.77610666-368.27591113c13.76256-10.32192 20.77127111-29.43658667 15.54659557-46.89464887z",special:!0},{viewBox:1024,path:"M927.78951111 340.39277037c-12.01493333-47.81700741 12.01493333-124.03294815 89.08041481-150.97552592l-82.40545184-4.36906667s-31.19028148-109.22666667-174.27721483-118.9357037c-143.08693333-9.8304-236.65777778-3.64088889-236.65777777-3.6408889s106.07122963 67.47780741 63.5941926 187.74850371c-31.06891852 63.71555555-79.85682963 116.02299259-132.04290371 175.61220741-1.57771852 1.57771852-3.03407408 3.15543703-4.2477037 4.49042962C278.25493333 624.86755555 7.13007408 934.34311111 7.13007408 934.34311111c298.43152592 78.15774815 498.43768889-7.64586667 616.76657777-110.56165926 24.87940741-0.24272592 43.5693037-0.36408889 56.19105185-0.36408888 164.8109037 0 304.13558518-142.72284445 298.43152593-301.4656-3.88361482-109.1053037-38.71478518-133.74198518-50.72971852-181.5589926z",special:!0}]}],rs=Object(j["defineComponent"])({name:"shape-pool",emits:["select"],setup:function(e,t){var n=t.emit,o=as,l=function(e){n("select",e)};return{shapeList:o,selectShape:l}}});n("d908");const is=Sn()(rs,[["render",cs],["__scopeId","data-v-0f50713a"]]);var us=is,ds={class:"line-pool"},ss={class:"category-name"},fs={class:"line-list"},ps=["onClick"],ms={overflow:"visible",width:"20",height:"20"},bs=["d","stroke-dasharray","marker-start","marker-end"];function vs(e,t,n,o,l,c){var a=Object(j["resolveComponent"])("LinePointMarker");return Object(j["openBlock"])(),Object(j["createElementBlock"])("div",ds,[(Object(j["openBlock"])(!0),Object(j["createElementBlock"])(j["Fragment"],null,Object(j["renderList"])(e.lineList,(function(t){return Object(j["openBlock"])(),Object(j["createElementBlock"])("div",{class:"category",key:t.type},[Object(j["createElementVNode"])("div",ss,Object(j["toDisplayString"])(t.type),1),Object(j["createElementVNode"])("div",fs,[(Object(j["openBlock"])(!0),Object(j["createElementBlock"])(j["Fragment"],null,Object(j["renderList"])(t.children,(function(t,n){return Object(j["openBlock"])(),Object(j["createElementBlock"])("div",{class:"line-item",key:n},[Object(j["createElementVNode"])("div",{class:"line-content",onClick:function(n){return e.selectLine(t)}},[(Object(j["openBlock"])(),Object(j["createElementBlock"])("svg",ms,[Object(j["createElementVNode"])("defs",null,[t.points[0]?(Object(j["openBlock"])(),Object(j["createBlock"])(a,{key:0,class:"line-marker",id:"preset-line-".concat(n),position:"start",type:t.points[0],color:"currentColor",baseSize:2},null,8,["id","type"])):Object(j["createCommentVNode"])("",!0),t.points[1]?(Object(j["openBlock"])(),Object(j["createBlock"])(a,{key:1,class:"line-marker",id:"preset-line-".concat(n),position:"end",type:t.points[1],color:"currentColor",baseSize:2},null,8,["id","type"])):Object(j["createCommentVNode"])("",!0)]),Object(j["createElementVNode"])("path",{class:"line-path",d:t.path,stroke:"currentColor",fill:"none","stroke-width":"2","stroke-dasharray":"solid"===t.style?"0, 0":"4, 1","stroke-linecap":"","stroke-linejoin":"","stroke-miterlimit":"","marker-start":t.points[0]?"url(#".concat("preset-line-".concat(n),"-",t.points[0],"-start)"):"","marker-end":t.points[1]?"url(#".concat("preset-line-".concat(n),"-",t.points[1],"-end)"):""},null,8,bs)]))],8,ps)])})),128))])])})),128))])}var hs=[{type:"直线",children:[{path:"M 0 0 L 20 20",style:"solid",points:["",""]},{path:"M 0 0 L 20 20",style:"dashed",points:["",""]},{path:"M 0 0 L 20 20",style:"solid",points:["","arrow"]},{path:"M 0 0 L 20 20",style:"dashed",points:["","arrow"]},{path:"M 0 0 L 20 20",style:"solid",points:["","dot"]}]},{type:"折线、曲线",children:[{path:"M 0 0 L 0 20 L 20 20",style:"solid",points:["","arrow"],isBroken:!0},{path:"M 0 0 Q 0 20 20 20",style:"solid",points:["","arrow"],isCurve:!0}]}],Os=Object(j["defineComponent"])({name:"line-pool",emits:["select"],components:{LinePointMarker:Ac},setup:function(e,t){var n=t.emit,o=hs,l=function(e){n("select",e)};return{lineList:o,selectLine:l}}});n("e4ed");const js=Sn()(Os,[["render",vs],["__scopeId","data-v-78517932"]]);var ys=js,gs={class:"chart-pool"},xs=["onClick"];function Cs(e,t,n,o,l,c){var a=Object(j["resolveComponent"])("IconChartLine"),r=Object(j["resolveComponent"])("IconChartHistogram"),i=Object(j["resolveComponent"])("IconChartPie");return Object(j["openBlock"])(),Object(j["createElementBlock"])("ul",gs,[(Object(j["openBlock"])(!0),Object(j["createElementBlock"])(j["Fragment"],null,Object(j["renderList"])(e.chartList,(function(t,n){return Object(j["openBlock"])(),Object(j["createElementBlock"])("li",{class:"chart-item",key:n},[Object(j["createElementVNode"])("div",{class:"chart-content",onClick:function(n){return e.selectChart(t)}},["line"===t?(Object(j["openBlock"])(),Object(j["createBlock"])(a,{key:0,size:"24"})):"bar"===t?(Object(j["openBlock"])(),Object(j["createBlock"])(r,{key:1,size:"24"})):"pie"===t?(Object(j["openBlock"])(),Object(j["createBlock"])(i,{key:2,size:"24"})):Object(j["createCommentVNode"])("",!0)],8,xs)])})),128))])}var ks=Object(j["defineComponent"])({name:"chart-pool",emits:["select"],setup:function(e,t){var n=t.emit,o=["bar","line","pie"],l=function(e){n("select",e)};return{chartList:o,selectChart:l}}});n("f076");const ws=Sn()(ks,[["render",Cs],["__scopeId","data-v-ab6a141a"]]);var Es=ws,Ns=function(e){return Object(j["pushScopeId"])("data-v-e325ce98"),e=e(),Object(j["popScopeId"])(),e},Is={class:"table-generator"},Vs={class:"title"},Ss={class:"lef"},Bs=["onMouseenter"],Ls={key:1,class:"custom"},Ts={class:"row"},Ms=Ns((function(){return Object(j["createElementVNode"])("div",{class:"label",style:{flex:"1"}},"行数:",-1)})),_s={class:"row"},Ds=Ns((function(){return Object(j["createElementVNode"])("div",{class:"label",style:{flex:"1"}},"列数:",-1)})),zs={class:"btns"},As=Object(j["createTextVNode"])("取消"),Fs=Object(j["createTextVNode"])("确认");function Rs(e,t,n,o,l,c){var a=Object(j["resolveComponent"])("InputNumber"),r=Object(j["resolveComponent"])("Button");return Object(j["openBlock"])(),Object(j["createElementBlock"])("div",Is,[Object(j["createElementVNode"])("div",Vs,[Object(j["createElementVNode"])("div",Ss,"表格 "+Object(j["toDisplayString"])(e.endCell.length?"".concat(e.endCell[0]," x ").concat(e.endCell[1]):""),1),Object(j["createElementVNode"])("div",{class:"right",onClick:t[0]||(t[0]=function(t){return e.isCustom=!e.isCustom})},Object(j["toDisplayString"])(e.isCustom?"返回":"自定义"),1)]),e.isCustom?(Object(j["openBlock"])(),Object(j["createElementBlock"])("div",Ls,[Object(j["createElementVNode"])("div",Ts,[Ms,Object(j["createVNode"])(a,{min:1,max:20,value:e.customRow,"onUpdate:value":t[3]||(t[3]=function(t){return e.customRow=t}),style:{flex:"3"}},null,8,["value"])]),Object(j["createElementVNode"])("div",_s,[Ds,Object(j["createVNode"])(a,{min:1,max:20,value:e.customCol,"onUpdate:value":t[4]||(t[4]=function(t){return e.customCol=t}),style:{flex:"3"}},null,8,["value"])]),Object(j["createElementVNode"])("div",zs,[Object(j["createVNode"])(r,{class:"btn",onClick:t[5]||(t[5]=function(t){return e.close()})},{default:Object(j["withCtx"])((function(){return[As]})),_:1}),Object(j["createVNode"])(r,{class:"btn",type:"primary",onClick:t[6]||(t[6]=function(t){return e.insertCustomTable()})},{default:Object(j["withCtx"])((function(){return[Fs]})),_:1})])])):(Object(j["openBlock"])(),Object(j["createElementBlock"])("table",{key:0,onMouseleave:t[1]||(t[1]=function(t){return e.endCell=[]}),onClick:t[2]||(t[2]=function(t){return e.handleClickTable()})},[Object(j["createElementVNode"])("tbody",null,[(Object(j["openBlock"])(),Object(j["createElementBlock"])(j["Fragment"],null,Object(j["renderList"])(10,(function(t){return Object(j["createElementVNode"])("tr",{key:t},[(Object(j["openBlock"])(),Object(j["createElementBlock"])(j["Fragment"],null,Object(j["renderList"])(10,(function(n){return Object(j["createElementVNode"])("td",{onMouseenter:function(o){return e.endCell=[t,n]},key:n},[Object(j["createElementVNode"])("div",{class:Object(j["normalizeClass"])(["cell",{active:e.endCell.length&&t<=e.endCell[0]&&n<=e.endCell[1]}])},null,2)],40,Bs)})),64))])})),64))])],32))])}var Ps=Object(j["defineComponent"])({name:"table-generator",emits:["insert","close"],setup:function(e,t){var n=t.emit,o=Object(j["ref"])([]),l=Object(j["ref"])(3),c=Object(j["ref"])(3),a=Object(j["ref"])(!1),r=function(){if(o.value.length){var e=Object(At["a"])(o.value,2),t=e[0],l=e[1];n("insert",{row:t,col:l})}},i=function(){return l.value<1||l.value>20||c.value<1||c.value>20?he["a"].warning("行数/列数必须在0~20之间"):(n("insert",{row:l.value,col:c.value}),void(a.value=!1))},u=function(){n("close"),a.value=!1};return{endCell:o,customRow:l,customCol:c,handleClickTable:r,insertCustomTable:i,isCustom:a,close:u}}});n("5a68");const Hs=Sn()(Ps,[["render",Rs],["__scopeId","data-v-e325ce98"]]);var qs=Hs,Xs={class:"media-input"},Ws={class:"tabs"},Gs=["onClick"],Us={class:"btns"},Ys=Object(j["createTextVNode"])("取消"),Zs=Object(j["createTextVNode"])("确认"),Js={class:"btns"},Ks=Object(j["createTextVNode"])("取消"),Qs=Object(j["createTextVNode"])("确认");function $s(e,t,n,o,l,c){var a=Object(j["resolveComponent"])("Input"),r=Object(j["resolveComponent"])("Button");return Object(j["openBlock"])(),Object(j["createElementBlock"])("div",Xs,[Object(j["createElementVNode"])("div",Ws,[(Object(j["openBlock"])(!0),Object(j["createElementBlock"])(j["Fragment"],null,Object(j["renderList"])(e.tabs,(function(t){return Object(j["openBlock"])(),Object(j["createElementBlock"])("div",{class:Object(j["normalizeClass"])(["tab",{active:e.type===t.key}]),key:t.key,onClick:function(n){return e.type=t.key}},Object(j["toDisplayString"])(t.label),11,Gs)})),128))]),"video"===e.type?(Object(j["openBlock"])(),Object(j["createElementBlock"])(j["Fragment"],{key:0},[Object(j["createVNode"])(a,{value:e.videoSrc,"onUpdate:value":t[0]||(t[0]=function(t){return e.videoSrc=t}),placeholder:"请输入视频地址e.g. https://xxx.mp4"},null,8,["value"]),Object(j["createElementVNode"])("div",Us,[Object(j["createVNode"])(r,{onClick:t[1]||(t[1]=function(t){return e.close()}),style:{"margin-right":"10px"}},{default:Object(j["withCtx"])((function(){return[Ys]})),_:1}),Object(j["createVNode"])(r,{type:"primary",onClick:t[2]||(t[2]=function(t){return e.insertVideo()})},{default:Object(j["withCtx"])((function(){return[Zs]})),_:1})])],64)):Object(j["createCommentVNode"])("",!0),"audio"===e.type?(Object(j["openBlock"])(),Object(j["createElementBlock"])(j["Fragment"],{key:1},[Object(j["createVNode"])(a,{value:e.audioSrc,"onUpdate:value":t[3]||(t[3]=function(t){return e.audioSrc=t}),placeholder:"请输入音频地址e.g. https://xxx.mp3"},null,8,["value"]),Object(j["createElementVNode"])("div",Js,[Object(j["createVNode"])(r,{onClick:t[4]||(t[4]=function(t){return e.close()}),style:{"margin-right":"10px"}},{default:Object(j["withCtx"])((function(){return[Ks]})),_:1}),Object(j["createVNode"])(r,{type:"primary",onClick:t[5]||(t[5]=function(t){return e.insertAudio()})},{default:Object(j["withCtx"])((function(){return[Qs]})),_:1})])],64)):Object(j["createCommentVNode"])("",!0)])}var ef=Object(j["defineComponent"])({name:"media-input",emits:["insertVideo","insertAudio","close"],setup:function(e,t){var n=t.emit,o=Object(j["ref"])("video"),l=Object(j["ref"])("https://mazwai.com/videvo_files/video/free/2019-01/small_watermarked/181004_04_Dolphins-Whale_06_preview.webm"),c=Object(j["ref"])("https://freesound.org/data/previews/614/614107_11861866-lq.mp3"),a=[{key:"video",label:"视频"},{key:"audio",label:"音频"}],r=function(){if(!l.value)return he["a"].error("请先输入正确的视频地址");n("insertVideo",l.value)},i=function(){if(!c.value)return he["a"].error("请先输入正确的音频地址");n("insertAudio",c.value)},u=function(){return n("close")};return{type:o,videoSrc:l,audioSrc:c,tabs:a,insertVideo:r,insertAudio:i,close:u}}});n("3d3c");const tf=Sn()(ef,[["render",$s],["__scopeId","data-v-4916d8ab"]]);var nf=tf,of={class:"latex-editor"},lf={class:"container"},cf={class:"left"},af={class:"input-area"},rf={class:"preview"},uf={key:0,class:"placeholder"},df={key:1,class:"preview-content"},sf={class:"right"},ff={class:"tabs"},pf=["onClick"],mf={class:"content"},bf={key:0,class:"symbol"},vf={class:"symbol-tabs"},hf=["onClick"],Of={class:"symbol-pool"},jf=["onClick"],yf={key:1,class:"formula"},gf={class:"formula-title"},xf=["onClick"],Cf={class:"footer"},kf=Object(j["createTextVNode"])("取消"),wf=Object(j["createTextVNode"])("确定");function Ef(e,t,n,o,l,c){var a=Object(j["resolveComponent"])("TextArea"),r=Object(j["resolveComponent"])("FormulaContent"),i=Object(j["resolveComponent"])("SymbolContent"),u=Object(j["resolveComponent"])("Button");return Object(j["openBlock"])(),Object(j["createElementBlock"])("div",of,[Object(j["createElementVNode"])("div",lf,[Object(j["createElementVNode"])("div",cf,[Object(j["createElementVNode"])("div",af,[Object(j["createVNode"])(a,{value:e.latex,"onUpdate:value":t[0]||(t[0]=function(t){return e.latex=t}),placeholder:"输入 LaTeX 公式",ref:"textAreaRef"},null,8,["value"])]),Object(j["createElementVNode"])("div",rf,[e.latex?(Object(j["openBlock"])(),Object(j["createElementBlock"])("div",df,[Object(j["createVNode"])(r,{width:518,height:138,latex:e.latex},null,8,["latex"])])):(Object(j["openBlock"])(),Object(j["createElementBlock"])("div",uf,"公式预览"))])]),Object(j["createElementVNode"])("div",sf,[Object(j["createElementVNode"])("div",ff,[(Object(j["openBlock"])(!0),Object(j["createElementBlock"])(j["Fragment"],null,Object(j["renderList"])(e.tabs,(function(t){return Object(j["openBlock"])(),Object(j["createElementBlock"])("div",{class:Object(j["normalizeClass"])(["tab",{active:t.value===e.toolbarState}]),key:t.value,onClick:function(n){return e.toolbarState=t.value}},Object(j["toDisplayString"])(t.label),11,pf)})),128))]),Object(j["createElementVNode"])("div",mf,["symbol"===e.toolbarState?(Object(j["openBlock"])(),Object(j["createElementBlock"])("div",bf,[Object(j["createElementVNode"])("div",vf,[(Object(j["openBlock"])(!0),Object(j["createElementBlock"])(j["Fragment"],null,Object(j["renderList"])(e.symbolList,(function(t){return Object(j["openBlock"])(),Object(j["createElementBlock"])("div",{class:Object(j["normalizeClass"])(["symbol-tab",{active:e.selectedSymbolKey===t.type}]),key:t.type,onClick:function(n){return e.selectedSymbolKey=t.type}},Object(j["toDisplayString"])(t.label),11,hf)})),128))]),Object(j["createElementVNode"])("div",Of,[(Object(j["openBlock"])(!0),Object(j["createElementBlock"])(j["Fragment"],null,Object(j["renderList"])(e.symbolPool,(function(t){return Object(j["openBlock"])(),Object(j["createElementBlock"])("div",{class:"symbol-item",key:t.latex,onClick:function(n){return e.insertSymbol(t.latex)}},[Object(j["createVNode"])(i,{latex:t.latex},null,8,["latex"])],8,jf)})),128))])])):(Object(j["openBlock"])(),Object(j["createElementBlock"])("div",yf,[(Object(j["openBlock"])(!0),Object(j["createElementBlock"])(j["Fragment"],null,Object(j["renderList"])(e.formulaList,(function(t){return Object(j["openBlock"])(),Object(j["createElementBlock"])("div",{class:"formula-item",key:t.label},[Object(j["createElementVNode"])("div",gf,Object(j["toDisplayString"])(t.label),1),Object(j["createElementVNode"])("div",{class:"formula-item-content",onClick:function(n){return e.latex=t.latex}},[Object(j["createVNode"])(r,{width:236,height:60,latex:t.latex},null,8,["latex"])],8,xf)])})),128))]))])])]),Object(j["createElementVNode"])("div",Cf,[Object(j["createVNode"])(u,{class:"btn",onClick:t[1]||(t[1]=function(t){return e.close()})},{default:Object(j["withCtx"])((function(){return[kf]})),_:1}),Object(j["createVNode"])(u,{class:"btn",type:"primary",onClick:t[2]||(t[2]=function(t){return e.update()})},{default:Object(j["withCtx"])((function(){return[wf]})),_:1})])])}var Nf=n("e5ca");Nf["a"].SUB_SUP_SCALE=.5;var If=[{label:"高斯公式",latex:"\\int\\int\\int _ { \\Omega } \\left( \\frac { \\partial {P} } { \\partial {x} } + \\frac { \\partial {Q} } { \\partial {y} } + \\frac { \\partial {R} }{ \\partial {z} } \\right) \\mathrm { d } V = \\oint _ { \\partial \\Omega } ( P \\cos \\alpha + Q \\cos \\beta + R \\cos \\gamma ) \\mathrm{ d} S"},{label:"傅里叶级数",latex:"f(x) = \\frac {a_0} 2 + \\sum_{n = 1}^\\infty {({a_n}\\cos {nx} + {b_n}\\sin {nx})}"},{label:"泰勒展开式",latex:"e ^ { x } = 1 + \\frac { x } { 1 ! } + \\frac { x ^ { 2 } } { 2 ! } + \\frac { x ^ { 3 } } { 3 ! } + ... , \\quad - \\infty < x < \\infty"},{label:"定积分",latex:"\\lim_ { n \\rightarrow + \\infty } \\sum _ { i = 1 } ^ { n } f \\left[ a + \\frac { i } { n } ( b - a ) \\right] \\frac { b - a } { n } = \\int _ { a } ^ { b } f ( x ) dx"},{label:"三角恒等式1",latex:"\\sin \\alpha \\pm \\sin \\beta = 2 \\sin \\frac { 1 } { 2 } ( \\alpha \\pm \\beta ) \\cos \\frac { 1 } { 2 } ( \\alpha \\mp \\beta )"},{label:"三角恒等式2",latex:"\\cos \\alpha + \\cos \\beta = 2 \\cos \\frac { 1 } { 2 } ( \\alpha + \\beta ) \\cos \\frac { 1 } { 2 } ( \\alpha - \\beta )"},{label:"和的展开式",latex:"( 1 + x ) ^ { n } = 1 + \\frac { n x } { 1 ! } + \\frac { n ( n - 1 ) x ^ { 2 } } { 2 ! } + ..."},{label:"欧拉公式",latex:" e^{ix} = \\cos {x} + i\\sin {x}"},{label:"贝努利方程",latex:"\\frac {dy} {dx} + P(x)y = Q(x) y^n ({n} \\not= {0,1})"},{label:"全微分方程",latex:"du(x,y) = P(x,y)dx + Q(x,y)dy = 0"},{label:"非齐次方程",latex:"y = (\\int Q(x) e^{\\int {P(x)dx}}dx + C)e^{-\\int {P(x)dx}}"},{label:"柯西中值定理",latex:"\\frac{{f(b) - f(a)}}{{F(b) - F(a)}} = \\frac{{f'(\\xi )}}{{F'(\\xi )}}"},{label:"拉格朗日中值定理",latex:"f(b) - f(a) = f'(\\xi )(b - a)"},{label:"导数公式",latex:"(\\arcsin x)' = \\frac{1}{{\\sqrt {1 - x^2} }}"},{label:"三角函数积分",latex:"\\int {tgxdx = - \\ln \\left| {\\cos x} \\right| + C}"},{label:"二次曲面",latex:"\\frac{{{x^2}}}{{{a^2}}} + \\frac{{{y^2}}}{{{b^2}}} - \\frac{{{z^2}}}{{{c^2}}} = 1"},{label:"二阶微分",latex:"\\frac {{d^2}y} {dx^2} + P(x) \\frac {dy} {dx} + Q(x)y = f(x)"},{label:"方向导数",latex:"\\frac{{\\partial f}}{{\\partial l}} = \\frac{{\\partial f}}{{\\partial x}}\\cos \\phi + \\frac{{\\partial f}}{{\\partial y}}\\sin \\phi"}],Vf=[{type:"operators",label:"数学",children:[{latex:"\\cdot"},{latex:"\\pm"},{latex:"\\mp"},{latex:"+"},{latex:"-"},{latex:"\\times"},{latex:"\\div"},{latex:"<"},{latex:">"},{latex:"="},{latex:"\\neq\\ne"},{latex:"\\leqq"},{latex:"\\geqq"},{latex:"\\leq"},{latex:"\\geq"},{latex:"\\propto"},{latex:"\\sim"},{latex:"\\equiv"},{latex:"\\dagger"},{latex:"\\ddagger"},{latex:"\\ell"},{latex:"\\#"},{latex:"\\$"},{latex:"\\&"},{latex:"\\%"},{latex:"\\langle\\rangle"},{latex:"()"},{latex:"[]"},{latex:"\\{\\}"},{latex:"||"},{latex:"\\|"},{latex:"\\exists"},{latex:"\\in"},{latex:"\\subset"},{latex:"\\supset"},{latex:"\\cup"},{latex:"\\cap"},{latex:"\\infty"},{latex:"\\partial"},{latex:"\\nabla"},{latex:"\\aleph"},{latex:"\\wp"},{latex:"\\therefore"},{latex:"\\mid"},{latex:"\\sum"},{latex:"\\prod"},{latex:"\\bigoplus"},{latex:"\\bigodot"},{latex:"\\int"},{latex:"\\oint"},{latex:"\\oplus"},{latex:"\\odot"},{latex:"\\perp"},{latex:"\\angle"},{latex:"\\triangle"},{latex:"\\Box"},{latex:"\\rightarrow"},{latex:"\\to"},{latex:"\\leftarrow"},{latex:"\\gets"},{latex:"\\circ"},{latex:"\\bigcirc"},{latex:"\\bullet"},{latex:"\\star"},{latex:"\\diamond"},{latex:"\\ast"},{latex:","},{latex:"."},{latex:";"},{latex:"!"}]},{type:"group",label:"组合",children:[{latex:"\\frac{a}{b}"},{latex:"\\frac{dx}{dx}"},{latex:"\\frac{\\partial a}{\\partial b}"},{latex:"\\sqrt{x}"},{latex:"\\sqrt[n]{x}"},{latex:"x^{n}"},{latex:"x_{n}"},{latex:"x_a^b"},{latex:"\\int_{a}^{b}"},{latex:"\\oint_a^b"},{latex:"\\lim_{a \\rightarrow b}"},{latex:"\\prod_a^b"},{latex:"\\sum_a^b"},{latex:"\\left(\\begin{array}a \\\\ b\\end{array}\\right)"},{latex:"\\begin{bmatrix}a & b \\\\ c & d \\end{bmatrix}"},{latex:"\\begin{cases}a & x = 0 \\\\ b & x > 0\\end{cases}"},{latex:"\\hat{a}"},{latex:"\\breve{a}"},{latex:"\\acute{a}"},{latex:"\\grave{a}"},{latex:"\\tilde{a}"},{latex:"\\bar{a}"},{latex:"\\vec{a}"},{latex:"\\underline{a}"},{latex:"\\overline{a}"},{latex:"\\widehat{ab}"},{latex:"\\overleftarrow{ab}"},{latex:"\\overrightarrow{ab}"}]},{type:"verbatim",label:"函数",children:[{latex:"\\log"},{latex:"\\ln"},{latex:"\\exp"},{latex:"\\mod"},{latex:"\\lim"},{latex:"\\sin"},{latex:"\\cos"},{latex:"\\tan"},{latex:"\\csc"},{latex:"\\sec"},{latex:"\\cot"},{latex:"\\sinh"},{latex:"\\cosh"},{latex:"\\tanh"},{latex:"\\csch"},{latex:"\\sech"},{latex:"\\coth"},{latex:"\\arcsin"},{latex:"\\arccos"},{latex:"\\arctan"},{latex:"\\arccsc"},{latex:"\\arcsec"},{latex:"\\arccot"}]},{type:"greek",label:"希腊字母",children:[{latex:"\\alpha"},{latex:"\\beta"},{latex:"\\gamma"},{latex:"\\delta"},{latex:"\\varepsilon"},{latex:"\\zeta"},{latex:"\\eta"},{latex:"\\vartheta"},{latex:"\\iota"},{latex:"\\kappa"},{latex:"\\lambda"},{latex:"\\mu"},{latex:"\\nu"},{latex:"\\xi"},{latex:"\\omicron"},{latex:"\\pi"},{latex:"\\rho"},{latex:"\\sigma"},{latex:"\\tau"},{latex:"\\upsilon"},{latex:"\\varphi"},{latex:"\\chi"},{latex:"\\psi"},{latex:"\\omega"},{latex:"\\epsilon"},{latex:"\\theta"},{latex:"\\phi"},{latex:"\\varsigma"},{latex:"\\Alpha"},{latex:"\\Beta"},{latex:"\\Gamma"},{latex:"\\Delta"},{latex:"\\Epsilon"},{latex:"\\Zeta"},{latex:"\\Eta"},{latex:"\\Theta"},{latex:"\\Iota"},{latex:"\\Kappa"},{latex:"\\Lambda"},{latex:"\\Mu"},{latex:"\\Nu"},{latex:"\\Xi"},{latex:"\\Omicron"},{latex:"\\Pi"},{latex:"\\Rho"},{latex:"\\Sigma"},{latex:"\\Tau"},{latex:"\\Upsilon"},{latex:"\\Phi"},{latex:"\\Chi"},{latex:"\\Psi"},{latex:"\\Omega"}]}],Sf=["width","height"],Bf=["transform"],Lf=["d"];function Tf(e,t,n,o,l,c){return Object(j["openBlock"])(),Object(j["createElementBlock"])("svg",{class:"formula-content",overflow:"visible",width:e.box.w+32,height:e.box.h+32,stroke:"#000","stroke-width":"1",fill:"none","stroke-linecap":"round","stroke-linejoin":"round"},[Object(j["createElementVNode"])("g",{transform:"scale(".concat(e.scale,", ").concat(e.scale,") translate(0,0) matrix(1,0,0,1,0,0)"),"transform-origin":"0 50%"},[Object(j["createElementVNode"])("path",{d:e.pathd},null,8,Lf)],8,Bf)],8,Sf)}var Mf=Object(j["defineComponent"])({name:"formula-content",props:{latex:{type:String,required:!0},width:{type:Number,required:!0},height:{type:Number,required:!0}},setup:function(e){var t=Object(j["ref"])({x:0,y:0,w:0,h:0}),n=Object(j["ref"])("");Object(j["watch"])((function(){return e.latex}),(function(){var o=new Nf["b"](e.latex);n.value=o.pathd({}),t.value=o.box({})}),{immediate:!0});var o=Object(j["computed"])((function(){var n=t.value.w+32,o=t.value.h+32;return n>e.width||o>e.height?n/o>e.width/e.height?e.width/n:e.height/o:1}));return{box:t,pathd:n,scale:o}}});const _f=Sn()(Mf,[["render",Tf]]);var Df=_f,zf=["innerHTML"];function Af(e,t,n,o,l,c){return Object(j["openBlock"])(),Object(j["createElementBlock"])("div",{class:"symbol-content",innerHTML:e.svg},null,8,zf)}var Ff=Object(j["defineComponent"])({name:"symbol-content",props:{latex:{type:String,required:!0}},setup:function(e){var t=Object(j["computed"])((function(){var t=new Nf["b"](e.latex);return t.svg({SCALE_X:10,SCALE_Y:10})}));return{svg:t}}});const Rf=Sn()(Ff,[["render",Af]]);var Pf=Rf,Hf=[{label:"常用符号",value:"symbol"},{label:"预置公式",value:"formula"}],qf=Object(j["defineComponent"])({name:"latex-editor",emits:["update","close"],components:{FormulaContent:Df,SymbolContent:Pf},props:{value:{type:String,default:""}},setup:function(e,t){var n=t.emit,o=Object(j["ref"])(""),l=Object(j["ref"])("symbol"),c=Object(j["ref"])(),a=Object(j["ref"])(Vf[0].type),r=Object(j["computed"])((function(){var e=Vf.find((function(e){return e.type===a.value}));return(null===e||void 0===e?void 0:e.children)||[]}));Object(j["onMounted"])((function(){e.value&&(o.value=e.value)}));var i=function(){if(o.value){var e=new Nf["b"](o.value),t=e.pathd({}),l=e.box({});n("update",{latex:o.value,path:t,w:l.w+32,h:l.h+32})}},u=function(){return n("close")},d=function(e){c.value&&(c.value.focus(),document.execCommand("insertText",!1,e))};return{tabs:Hf,latex:o,toolbarState:l,selectedSymbolKey:a,formulaList:If,symbolList:Vf,symbolPool:r,textAreaRef:c,update:i,close:u,insertSymbol:d}}});n("b824");const Xf=Sn()(qf,[["render",Ef],["__scopeId","data-v-129e1afa"]]);var Wf=Xf,Gf=Object(j["defineComponent"])({name:"canvas-tool",components:{ShapePool:us,LinePool:ys,ChartPool:Es,TableGenerator:qs,MediaInput:nf,LaTeXEditor:Wf},setup:function(){var e=$(),t=Object(y["c"])(e),n=t.canvasScale,o=Object(y["c"])(ue()),l=o.canUndo,c=o.canRedo,a=Object(j["computed"])((function(){return parseInt(100*n.value+"")+"%"})),r=ct(),i=r.scaleCanvas,u=r.setCanvasPercentage,d=Pe(),s=d.redo,f=d.undo,p=We(),m=p.createImageElement,b=p.createChartElement,v=p.createTableElement,h=p.createLatexElement,O=p.createVideoElement,g=p.createAudioElement,x=function(e){var t=e[0];t&&qe(t).then((function(e){return m(e)}))},C=Object(j["ref"])(!1),k=Object(j["ref"])(!1),w=Object(j["ref"])(!1),E=Object(j["ref"])(!1),N=Object(j["ref"])(!1),I=Object(j["ref"])(!1),V=function(){e.setCreatingElement({type:"text"})},S=function(t){e.setCreatingElement({type:"shape",data:t}),C.value=!1},B=function(t){e.setCreatingElement({type:"line",data:t}),k.value=!1};return{scaleCanvas:i,setCanvasPercentage:u,canvasScalePercentage:a,canUndo:l,canRedo:c,redo:s,undo:f,insertImageElement:x,shapePoolVisible:C,linePoolVisible:k,chartPoolVisible:w,tableGeneratorVisible:E,mediaInputVisible:N,latexEditorVisible:I,drawText:V,drawShape:S,drawLine:B,createChartElement:b,createTableElement:v,createLatexElement:h,createVideoElement:O,createAudioElement:g}}});n("044f");const Uf=Sn()(Gf,[["render",Kd],["__scopeId","data-v-4ae7c9aa"]]);var Yf=Uf,Zf={class:"add-slide"},Jf=Object(j["createTextVNode"])("添加幻灯片"),Kf={class:"select-btn"},Qf=["onMousedown"];function $f(e,t,n,o,l,c){var a=Object(j["resolveComponent"])("IconPlus"),r=Object(j["resolveComponent"])("LayoutPool"),i=Object(j["resolveComponent"])("IconDown"),u=Object(j["resolveComponent"])("Popover"),d=Object(j["resolveComponent"])("ThumbnailSlide"),s=Object(j["resolveComponent"])("Draggable"),f=Object(j["resolveDirective"])("contextmenu"),p=Object(j["resolveDirective"])("click-outside");return Object(j["withDirectives"])((Object(j["openBlock"])(),Object(j["createElementBlock"])("div",{class:"thumbnails",onMousedown:t[3]||(t[3]=function(){return e.setThumbnailsFocus(!0)})},[Object(j["createElementVNode"])("div",Zf,[Object(j["createElementVNode"])("div",{class:"btn",onClick:t[0]||(t[0]=function(t){return e.createSlide()})},[Object(j["createVNode"])(a,{class:"icon"}),Jf]),Object(j["createVNode"])(u,{trigger:"click",placement:"bottomLeft",visible:e.presetLayoutPopoverVisible,"onUpdate:visible":t[2]||(t[2]=function(t){return e.presetLayoutPopoverVisible=t})},{content:Object(j["withCtx"])((function(){return[Object(j["createVNode"])(r,{onSelect:t[1]||(t[1]=function(t){e.createSlideByTemplate(t),e.presetLayoutPopoverVisible=!1})})]})),default:Object(j["withCtx"])((function(){return[Object(j["createElementVNode"])("div",Kf,[Object(j["createVNode"])(i)])]})),_:1},8,["visible"])]),Object(j["createVNode"])(s,{class:"thumbnail-list",modelValue:e.slides,animation:300,scroll:!0,scrollSensitivity:50,setData:null,onEnd:e.handleDragEnd,itemKey:"id"},{item:Object(j["withCtx"])((function(t){var n=t.element,o=t.index;return[Object(j["withDirectives"])(Object(j["createElementVNode"])("div",{class:Object(j["normalizeClass"])(["thumbnail-item",{active:e.slideIndex===o,selected:e.selectedSlidesIndex.includes(o)}]),onMousedown:function(t){return e.handleClickSlideThumbnail(t,o)}},[Object(j["createElementVNode"])("div",{class:Object(j["normalizeClass"])(["label",{"offset-left":o>=99}])},Object(j["toDisplayString"])(e.fillDigit(o+1,2)),3),Object(j["createVNode"])(d,{class:"thumbnail",slide:n,size:120,visible:o<e.slidesLoadLimit},null,8,["slide","visible"])],42,Qf),[[f,e.contextmenusThumbnailItem]])]})),_:1},8,["modelValue","onEnd"])],544)),[[p,function(){return e.setThumbnailsFocus(!1)}],[f,e.contextmenusThumbnails]])}var ep=function(){var e=Object(y["c"])(Q()),t=e.slides,n=Object(j["ref"])(null),o=Object(j["ref"])(50),l=function e(){t.value.length>o.value?n.value=setTimeout((function(){o.value=o.value+20,e()}),600):o.value=9999};return Object(j["onMounted"])(l),Object(j["onUnmounted"])((function(){n.value&&clearTimeout(n.value)})),{slidesLoadLimit:o}},tp=n("b76a"),np=n.n(tp),op={class:"layout-pool"},lp=["onClick"];function cp(e,t,n,o,l,c){var a=Object(j["resolveComponent"])("ThumbnailSlide");return Object(j["openBlock"])(),Object(j["createElementBlock"])("div",op,[(Object(j["openBlock"])(!0),Object(j["createElementBlock"])(j["Fragment"],null,Object(j["renderList"])(e.layouts,(function(t){return Object(j["openBlock"])(),Object(j["createElementBlock"])("div",{class:"layout-item",key:t.id,onClick:function(n){return e.selectSlideTemplate(t)}},[Object(j["createVNode"])(a,{class:"thumbnail",slide:t,size:180},null,8,["slide"])],8,lp)})),128))])}var ap=Object(j["defineComponent"])({name:"layout-pool",emits:["select"],components:{ThumbnailSlide:Fd},setup:function(e,t){var n=t.emit,o=Object(y["c"])(Q()),l=o.layouts,c=function(e){n("select",e)};return{layouts:l,selectSlideTemplate:c}}});n("e7b8");const rp=Sn()(ap,[["render",cp],["__scopeId","data-v-741b366e"]]);var ip=rp,up=Object(j["defineComponent"])({name:"thumbnails",components:{Draggable:np.a,ThumbnailSlide:Fd,LayoutPool:ip},setup:function(){var e=$(),t=Q(),n=de(),o=Object(y["c"])(e),l=o.selectedSlidesIndex,c=o.thumbnailsFocus,a=Object(y["c"])(t),r=a.slides,i=a.slideIndex,u=Object(y["c"])(n),d=u.ctrlKeyState,s=u.shiftKeyState,f=ep(),p=f.slidesLoadLimit,m=Object(j["computed"])((function(){return[].concat(Object(W["a"])(l.value),[i.value])})),b=Object(j["ref"])(!1),v=Ue(),h=v.copySlide,O=v.pasteSlide,g=v.createSlide,x=v.createSlideByTemplate,C=v.copyAndPasteSlide,k=v.deleteSlide,w=v.cutSlide,E=v.selectAllSlide,N=function(n){e.setActiveElementIdList([]),i.value!==n&&t.updateSlideIndex(n)},I=function(t,n){var o=m.value.length>1;if(!o||!m.value.includes(n)||0===t.button)if(d.value)if(i.value===n){if(!o)return;var l=m.value.filter((function(e){return e!==n}));e.updateSelectedSlidesIndex(l),N(m.value[0])}else if(m.value.includes(n)){var c=m.value.filter((function(e){return e!==n}));e.updateSelectedSlidesIndex(c)}else{var a=[].concat(Object(W["a"])(m.value),[n]);e.updateSelectedSlidesIndex(a),N(n)}else if(s.value){if(i.value===n&&!o)return;var r=Math.min.apply(Math,Object(W["a"])(m.value)),u=n;n<r&&(u=Math.max.apply(Math,Object(W["a"])(m.value)),r=n);for(var f=[],p=r;p<=u;p++)f.push(p);e.updateSelectedSlidesIndex(f),N(n)}else e.updateSelectedSlidesIndex([]),N(n)},V=function(t){c.value!==t&&(e.setThumbnailsFocus(t),t||e.updateSelectedSlidesIndex([]))},S=function(e){var n=e.newIndex,o=e.oldIndex;if(o!==n){var l=JSON.parse(JSON.stringify(r.value)),c=l[o];l.splice(o,1),l.splice(n,0,c),t.setSlides(l),t.updateSlideIndex(n)}},B=lt(),L=B.enterScreening,T=function(){return[{text:"粘贴",subText:"Ctrl + V",handler:O},{text:"全选",subText:"Ctrl + A",handler:E},{text:"新建页面",subText:"Enter",handler:g},{text:"开始演示",subText:"Ctrl + F",handler:L}]},M=function(){return[{text:"剪切",subText:"Ctrl + X",handler:w},{text:"复制",subText:"Ctrl + C",handler:h},{text:"粘贴",subText:"Ctrl + V",handler:O},{text:"全选",subText:"Ctrl + A",handler:E},{divider:!0},{text:"新建页面",subText:"Enter",handler:g},{text:"复制页面",subText:"Ctrl + D",handler:C},{text:"删除页面",subText:"Delete",handler:function(){return k()}},{divider:!0},{text:"从当前页演示",subText:"Ctrl + F",handler:L}]};return{slides:r,slideIndex:i,selectedSlidesIndex:m,presetLayoutPopoverVisible:b,slidesLoadLimit:p,createSlide:g,createSlideByTemplate:x,setThumbnailsFocus:V,handleClickSlideThumbnail:I,contextmenusThumbnails:T,contextmenusThumbnailItem:M,fillDigit:je,handleDragEnd:S}}});n("2b79b");const dp=Sn()(up,[["render",$f],["__scopeId","data-v-ec4c62e4"]]);var sp,fp=dp,pp={class:"toolbar"},mp={class:"tabs"},bp=["onClick"],vp={class:"content"};function hp(e,t,n,o,l,c){return Object(j["openBlock"])(),Object(j["createElementBlock"])("div",pp,[Object(j["createElementVNode"])("div",mp,[(Object(j["openBlock"])(!0),Object(j["createElementBlock"])(j["Fragment"],null,Object(j["renderList"])(e.currentTabs,(function(t){return Object(j["openBlock"])(),Object(j["createElementBlock"])("div",{class:Object(j["normalizeClass"])(["tab",{active:t.value===e.toolbarState}]),key:t.value,onClick:function(n){return e.setToolbarState(t.value)}},Object(j["toDisplayString"])(t.label),11,bp)})),128))]),Object(j["createElementVNode"])("div",vp,[(Object(j["openBlock"])(),Object(j["createBlock"])(Object(j["resolveDynamicComponent"])(e.currentPanelComponent)))])])}(function(e){e["SYMBOL"]="symbol",e["EL_ANIMATION"]="elAnimation",e["EL_STYLE"]="elStyle",e["EL_POSITION"]="elPosition",e["SLIDE_DESIGN"]="slideDesign",e["SLIDE_ANIMATION"]="slideAnimation",e["MULTI_POSITION"]="multiPosition"})(sp||(sp={}));var Op={class:"element-style-panel"},jp={key:0};function yp(e,t,n,o,l,c){return Object(j["openBlock"])(),Object(j["createElementBlock"])("div",Op,[e.currentPanelComponent?Object(j["createCommentVNode"])("",!0):(Object(j["openBlock"])(),Object(j["createElementBlock"])("div",jp," 请先选中要编辑的元素 ")),e.handleElement?(Object(j["openBlock"])(),Object(j["createBlock"])(Object(j["resolveDynamicComponent"])(e.currentPanelComponent),{key:1})):Object(j["createCommentVNode"])("",!0)])}var gp=function(e){return Object(j["pushScopeId"])("data-v-2d6233f4"),e=e(),Object(j["popScopeId"])(),e},xp={class:"text-style-panel"},Cp={class:"preset-style"},kp=["onClick"],wp={class:"row"},Ep=gp((function(){return Object(j["createElementVNode"])("div",{style:{flex:"2"}},"行间距:",-1)})),Np={class:"row"},Ip=gp((function(){return Object(j["createElementVNode"])("div",{style:{flex:"2"}},"字间距:",-1)}));function Vp(e,t,n,o,l,c){var a=Object(j["resolveComponent"])("Divider"),r=Object(j["resolveComponent"])("IconFontSize"),i=Object(j["resolveComponent"])("SelectOption"),u=Object(j["resolveComponent"])("SelectOptGroup"),d=Object(j["resolveComponent"])("Select"),s=Object(j["resolveComponent"])("IconAddText"),f=Object(j["resolveComponent"])("InputGroup"),p=Object(j["resolveComponent"])("ColorPicker"),m=Object(j["resolveComponent"])("IconText"),b=Object(j["resolveComponent"])("Button"),v=Object(j["resolveComponent"])("Tooltip"),h=Object(j["resolveComponent"])("Popover"),O=Object(j["resolveComponent"])("IconBackgroundColor"),y=Object(j["resolveComponent"])("IconFill"),g=Object(j["resolveComponent"])("ButtonGroup"),x=Object(j["resolveComponent"])("IconTextBold"),C=Object(j["resolveComponent"])("CheckboxButton"),k=Object(j["resolveComponent"])("IconTextItalic"),w=Object(j["resolveComponent"])("IconTextUnderline"),E=Object(j["resolveComponent"])("IconStrikethrough"),N=Object(j["resolveComponent"])("CheckboxButtonGroup"),I=Object(j["resolveComponent"])("IconUpOne"),V=Object(j["resolveComponent"])("IconDownOne"),S=Object(j["resolveComponent"])("IconCode"),B=Object(j["resolveComponent"])("IconQuote"),L=Object(j["resolveComponent"])("IconFormat"),T=Object(j["resolveComponent"])("IconAlignTextLeft"),M=Object(j["resolveComponent"])("RadioButton"),_=Object(j["resolveComponent"])("IconAlignTextCenter"),D=Object(j["resolveComponent"])("IconAlignTextRight"),z=Object(j["resolveComponent"])("RadioGroup"),A=Object(j["resolveComponent"])("IconList"),F=Object(j["resolveComponent"])("IconOrderedList"),R=Object(j["resolveComponent"])("IconRowHeight"),P=Object(j["resolveComponent"])("IconFullwidth"),H=Object(j["resolveComponent"])("ElementOutline"),q=Object(j["resolveComponent"])("ElementShadow"),X=Object(j["resolveComponent"])("ElementOpacity");return Object(j["openBlock"])(),Object(j["createElementBlock"])("div",xp,[Object(j["createElementVNode"])("div",Cp,[(Object(j["openBlock"])(!0),Object(j["createElementBlock"])(j["Fragment"],null,Object(j["renderList"])(e.presetStyles,(function(t){return Object(j["openBlock"])(),Object(j["createElementBlock"])("div",{class:"preset-style-item",key:t.label,style:Object(j["normalizeStyle"])(t.style),onClick:function(n){return e.emitBatchRichTextCommand(t.cmd)}},Object(j["toDisplayString"])(t.label),13,kp)})),128))]),Object(j["createVNode"])(a),Object(j["createVNode"])(f,{compact:"",class:"row"},{default:Object(j["withCtx"])((function(){return[Object(j["createVNode"])(d,{style:{flex:"3"},value:e.richTextAttrs.fontname,onChange:t[0]||(t[0]=function(t){return e.emitRichTextCommand("fontname",t)})},{suffixIcon:Object(j["withCtx"])((function(){return[Object(j["createVNode"])(r)]})),default:Object(j["withCtx"])((function(){return[Object(j["createVNode"])(u,{label:"系统字体"},{default:Object(j["withCtx"])((function(){return[(Object(j["openBlock"])(!0),Object(j["createElementBlock"])(j["Fragment"],null,Object(j["renderList"])(e.availableFonts,(function(e){return Object(j["openBlock"])(),Object(j["createBlock"])(i,{key:e.value,value:e.value},{default:Object(j["withCtx"])((function(){return[Object(j["createElementVNode"])("span",{style:Object(j["normalizeStyle"])({fontFamily:e.value})},Object(j["toDisplayString"])(e.label),5)]})),_:2},1032,["value"])})),128))]})),_:1}),Object(j["createVNode"])(u,{label:"在线字体"},{default:Object(j["withCtx"])((function(){return[(Object(j["openBlock"])(!0),Object(j["createElementBlock"])(j["Fragment"],null,Object(j["renderList"])(e.webFonts,(function(e){return Object(j["openBlock"])(),Object(j["createBlock"])(i,{key:e.value,value:e.value},{default:Object(j["withCtx"])((function(){return[Object(j["createElementVNode"])("span",null,Object(j["toDisplayString"])(e.label),1)]})),_:2},1032,["value"])})),128))]})),_:1})]})),_:1},8,["value"]),Object(j["createVNode"])(d,{style:{flex:"2"},value:e.richTextAttrs.fontsize,onChange:t[1]||(t[1]=function(t){return e.emitRichTextCommand("fontsize",t)})},{suffixIcon:Object(j["withCtx"])((function(){return[Object(j["createVNode"])(s)]})),default:Object(j["withCtx"])((function(){return[(Object(j["openBlock"])(!0),Object(j["createElementBlock"])(j["Fragment"],null,Object(j["renderList"])(e.fontSizeOptions,(function(e){return Object(j["openBlock"])(),Object(j["createBlock"])(i,{key:e,value:e},{default:Object(j["withCtx"])((function(){return[Object(j["createTextVNode"])(Object(j["toDisplayString"])(e),1)]})),_:2},1032,["value"])})),128))]})),_:1},8,["value"])]})),_:1}),Object(j["createVNode"])(g,{class:"row"},{default:Object(j["withCtx"])((function(){return[Object(j["createVNode"])(h,{trigger:"click"},{content:Object(j["withCtx"])((function(){return[Object(j["createVNode"])(p,{modelValue:e.richTextAttrs.color,"onUpdate:modelValue":t[2]||(t[2]=function(t){return e.emitRichTextCommand("color",t)})},null,8,["modelValue"])]})),default:Object(j["withCtx"])((function(){return[Object(j["createVNode"])(v,{mouseLeaveDelay:0,mouseEnterDelay:.5,title:"文字颜色"},{default:Object(j["withCtx"])((function(){return[Object(j["createVNode"])(b,{class:"text-color-btn",style:{flex:"1"}},{default:Object(j["withCtx"])((function(){return[Object(j["createVNode"])(m),Object(j["createElementVNode"])("div",{class:"text-color-block",style:Object(j["normalizeStyle"])({backgroundColor:e.richTextAttrs.color})},null,4)]})),_:1})]})),_:1},8,["mouseEnterDelay"])]})),_:1}),Object(j["createVNode"])(h,{trigger:"click"},{content:Object(j["withCtx"])((function(){return[Object(j["createVNode"])(p,{modelValue:e.richTextAttrs.backcolor,"onUpdate:modelValue":t[3]||(t[3]=function(t){return e.emitRichTextCommand("backcolor",t)})},null,8,["modelValue"])]})),default:Object(j["withCtx"])((function(){return[Object(j["createVNode"])(v,{mouseLeaveDelay:0,mouseEnterDelay:.5,title:"文字高亮"},{default:Object(j["withCtx"])((function(){return[Object(j["createVNode"])(b,{class:"text-color-btn",style:{flex:"1"}},{default:Object(j["withCtx"])((function(){return[Object(j["createVNode"])(O),Object(j["createElementVNode"])("div",{class:"text-color-block",style:Object(j["normalizeStyle"])({backgroundColor:e.richTextAttrs.backcolor})},null,4)]})),_:1})]})),_:1},8,["mouseEnterDelay"])]})),_:1}),Object(j["createVNode"])(h,{trigger:"click"},{content:Object(j["withCtx"])((function(){return[Object(j["createVNode"])(p,{modelValue:e.fill,"onUpdate:modelValue":t[4]||(t[4]=function(t){return e.updateFill(t)})},null,8,["modelValue"])]})),default:Object(j["withCtx"])((function(){return[Object(j["createVNode"])(v,{mouseLeaveDelay:0,mouseEnterDelay:.5,title:"文本框填充"},{default:Object(j["withCtx"])((function(){return[Object(j["createVNode"])(b,{class:"text-color-btn",style:{flex:"1"}},{default:Object(j["withCtx"])((function(){return[Object(j["createVNode"])(y),Object(j["createElementVNode"])("div",{class:"text-color-block",style:Object(j["normalizeStyle"])({backgroundColor:e.fill})},null,4)]})),_:1})]})),_:1},8,["mouseEnterDelay"])]})),_:1})]})),_:1}),Object(j["createVNode"])(N,{class:"row"},{default:Object(j["withCtx"])((function(){return[Object(j["createVNode"])(v,{mouseLeaveDelay:0,mouseEnterDelay:.5,title:"加粗"},{default:Object(j["withCtx"])((function(){return[Object(j["createVNode"])(C,{style:{flex:"1"},checked:e.richTextAttrs.bold,onClick:t[5]||(t[5]=function(t){return e.emitRichTextCommand("bold")})},{default:Object(j["withCtx"])((function(){return[Object(j["createVNode"])(x)]})),_:1},8,["checked"])]})),_:1},8,["mouseEnterDelay"]),Object(j["createVNode"])(v,{mouseLeaveDelay:0,mouseEnterDelay:.5,title:"斜体"},{default:Object(j["withCtx"])((function(){return[Object(j["createVNode"])(C,{style:{flex:"1"},checked:e.richTextAttrs.em,onClick:t[6]||(t[6]=function(t){return e.emitRichTextCommand("em")})},{default:Object(j["withCtx"])((function(){return[Object(j["createVNode"])(k)]})),_:1},8,["checked"])]})),_:1},8,["mouseEnterDelay"]),Object(j["createVNode"])(v,{mouseLeaveDelay:0,mouseEnterDelay:.5,title:"下划线"},{default:Object(j["withCtx"])((function(){return[Object(j["createVNode"])(C,{style:{flex:"1"},checked:e.richTextAttrs.underline,onClick:t[7]||(t[7]=function(t){return e.emitRichTextCommand("underline")})},{default:Object(j["withCtx"])((function(){return[Object(j["createVNode"])(w)]})),_:1},8,["checked"])]})),_:1},8,["mouseEnterDelay"]),Object(j["createVNode"])(v,{mouseLeaveDelay:0,mouseEnterDelay:.5,title:"删除线"},{default:Object(j["withCtx"])((function(){return[Object(j["createVNode"])(C,{style:{flex:"1"},checked:e.richTextAttrs.strikethrough,onClick:t[8]||(t[8]=function(t){return e.emitRichTextCommand("strikethrough")})},{default:Object(j["withCtx"])((function(){return[Object(j["createVNode"])(E)]})),_:1},8,["checked"])]})),_:1},8,["mouseEnterDelay"])]})),_:1}),Object(j["createVNode"])(N,{class:"row"},{default:Object(j["withCtx"])((function(){return[Object(j["createVNode"])(v,{mouseLeaveDelay:0,mouseEnterDelay:.5,title:"上标"},{default:Object(j["withCtx"])((function(){return[Object(j["createVNode"])(C,{style:{flex:"1"},checked:e.richTextAttrs.superscript,onClick:t[9]||(t[9]=function(t){return e.emitRichTextCommand("superscript")})},{default:Object(j["withCtx"])((function(){return[Object(j["createVNode"])(I)]})),_:1},8,["checked"])]})),_:1},8,["mouseEnterDelay"]),Object(j["createVNode"])(v,{mouseLeaveDelay:0,mouseEnterDelay:.5,title:"下标"},{default:Object(j["withCtx"])((function(){return[Object(j["createVNode"])(C,{style:{flex:"1"},checked:e.richTextAttrs.subscript,onClick:t[10]||(t[10]=function(t){return e.emitRichTextCommand("subscript")})},{default:Object(j["withCtx"])((function(){return[Object(j["createVNode"])(V)]})),_:1},8,["checked"])]})),_:1},8,["mouseEnterDelay"]),Object(j["createVNode"])(v,{mouseLeaveDelay:0,mouseEnterDelay:.5,title:"行内代码"},{default:Object(j["withCtx"])((function(){return[Object(j["createVNode"])(C,{style:{flex:"1"},checked:e.richTextAttrs.code,onClick:t[11]||(t[11]=function(t){return e.emitRichTextCommand("code")})},{default:Object(j["withCtx"])((function(){return[Object(j["createVNode"])(S)]})),_:1},8,["checked"])]})),_:1},8,["mouseEnterDelay"]),Object(j["createVNode"])(v,{mouseLeaveDelay:0,mouseEnterDelay:.5,title:"引用"},{default:Object(j["withCtx"])((function(){return[Object(j["createVNode"])(C,{style:{flex:"1"},checked:e.richTextAttrs.blockquote,onClick:t[12]||(t[12]=function(t){return e.emitRichTextCommand("blockquote")})},{default:Object(j["withCtx"])((function(){return[Object(j["createVNode"])(B)]})),_:1},8,["checked"])]})),_:1},8,["mouseEnterDelay"]),Object(j["createVNode"])(v,{mouseLeaveDelay:0,mouseEnterDelay:.5,title:"清除格式"},{default:Object(j["withCtx"])((function(){return[Object(j["createVNode"])(C,{style:{flex:"1"},onClick:t[13]||(t[13]=function(t){return e.emitRichTextCommand("clear")})},{default:Object(j["withCtx"])((function(){return[Object(j["createVNode"])(L)]})),_:1})]})),_:1},8,["mouseEnterDelay"])]})),_:1}),Object(j["createVNode"])(a),Object(j["createVNode"])(z,{class:"row","button-style":"solid",value:e.richTextAttrs.align,onChange:t[14]||(t[14]=function(t){return e.emitRichTextCommand("align",t.target.value)})},{default:Object(j["withCtx"])((function(){return[Object(j["createVNode"])(v,{mouseLeaveDelay:0,mouseEnterDelay:.5,title:"左对齐"},{default:Object(j["withCtx"])((function(){return[Object(j["createVNode"])(M,{value:"left",style:{flex:"1"}},{default:Object(j["withCtx"])((function(){return[Object(j["createVNode"])(T)]})),_:1})]})),_:1},8,["mouseEnterDelay"]),Object(j["createVNode"])(v,{mouseLeaveDelay:0,mouseEnterDelay:.5,title:"居中"},{default:Object(j["withCtx"])((function(){return[Object(j["createVNode"])(M,{value:"center",style:{flex:"1"}},{default:Object(j["withCtx"])((function(){return[Object(j["createVNode"])(_)]})),_:1})]})),_:1},8,["mouseEnterDelay"]),Object(j["createVNode"])(v,{mouseLeaveDelay:0,mouseEnterDelay:.5,title:"右对齐"},{default:Object(j["withCtx"])((function(){return[Object(j["createVNode"])(M,{value:"right",style:{flex:"1"}},{default:Object(j["withCtx"])((function(){return[Object(j["createVNode"])(D)]})),_:1})]})),_:1},8,["mouseEnterDelay"])]})),_:1},8,["value"]),Object(j["createVNode"])(N,{class:"row"},{default:Object(j["withCtx"])((function(){return[Object(j["createVNode"])(v,{mouseLeaveDelay:0,mouseEnterDelay:.5,title:"项目符号"},{default:Object(j["withCtx"])((function(){return[Object(j["createVNode"])(C,{style:{flex:"1"},checked:e.richTextAttrs.bulletList,onClick:t[15]||(t[15]=function(t){return e.emitRichTextCommand("bulletList")})},{default:Object(j["withCtx"])((function(){return[Object(j["createVNode"])(A)]})),_:1},8,["checked"])]})),_:1},8,["mouseEnterDelay"]),Object(j["createVNode"])(v,{mouseLeaveDelay:0,mouseEnterDelay:.5,title:"编号"},{default:Object(j["withCtx"])((function(){return[Object(j["createVNode"])(C,{style:{flex:"1"},checked:e.richTextAttrs.orderedList,onClick:t[16]||(t[16]=function(t){return e.emitRichTextCommand("orderedList")})},{default:Object(j["withCtx"])((function(){return[Object(j["createVNode"])(F)]})),_:1},8,["checked"])]})),_:1},8,["mouseEnterDelay"])]})),_:1}),Object(j["createVNode"])(a),Object(j["createElementVNode"])("div",wp,[Ep,Object(j["createVNode"])(d,{style:{flex:"3"},value:e.lineHeight,onChange:t[17]||(t[17]=function(t){return e.updateLineHeight(t)})},{suffixIcon:Object(j["withCtx"])((function(){return[Object(j["createVNode"])(R)]})),default:Object(j["withCtx"])((function(){return[(Object(j["openBlock"])(!0),Object(j["createElementBlock"])(j["Fragment"],null,Object(j["renderList"])(e.lineHeightOptions,(function(e){return Object(j["openBlock"])(),Object(j["createBlock"])(i,{key:e,value:e},{default:Object(j["withCtx"])((function(){return[Object(j["createTextVNode"])(Object(j["toDisplayString"])(e)+"倍",1)]})),_:2},1032,["value"])})),128))]})),_:1},8,["value"])]),Object(j["createElementVNode"])("div",Np,[Ip,Object(j["createVNode"])(d,{style:{flex:"3"},value:e.wordSpace,onChange:t[18]||(t[18]=function(t){return e.updateWordSpace(t)})},{suffixIcon:Object(j["withCtx"])((function(){return[Object(j["createVNode"])(P)]})),default:Object(j["withCtx"])((function(){return[(Object(j["openBlock"])(!0),Object(j["createElementBlock"])(j["Fragment"],null,Object(j["renderList"])(e.wordSpaceOptions,(function(e){return Object(j["openBlock"])(),Object(j["createBlock"])(i,{key:e,value:e},{default:Object(j["withCtx"])((function(){return[Object(j["createTextVNode"])(Object(j["toDisplayString"])(e)+"px",1)]})),_:2},1032,["value"])})),128))]})),_:1},8,["value"])]),Object(j["createVNode"])(a),Object(j["createVNode"])(H),Object(j["createVNode"])(a),Object(j["createVNode"])(q),Object(j["createVNode"])(a),Object(j["createVNode"])(X)])}var Sp=function(e){return Object(j["pushScopeId"])("data-v-f62a02b6"),e=e(),Object(j["popScopeId"])(),e},Bp={class:"element-opacity"},Lp={class:"row"},Tp=Sp((function(){return Object(j["createElementVNode"])("div",{style:{flex:"2"}},"不透明度:",-1)}));function Mp(e,t,n,o,l,c){var a=Object(j["resolveComponent"])("Slider");return Object(j["openBlock"])(),Object(j["createElementBlock"])("div",Bp,[Object(j["createElementVNode"])("div",Lp,[Tp,Object(j["createVNode"])(a,{class:"slider",min:0,max:1,step:.1,value:e.opacity,onChange:t[0]||(t[0]=function(t){return e.updateOpacity(t)})},null,8,["step","value"])])])}var _p=Object(j["defineComponent"])({name:"element-opacity",setup:function(){var e=Q(),t=Object(y["c"])($()),n=t.handleElement,o=Object(j["ref"])(1);Object(j["watch"])(n,(function(){n.value&&(o.value="opacity"in n.value&&void 0!==n.value.opacity?n.value.opacity:1)}),{deep:!0,immediate:!0});var l=Pe(),c=l.addHistorySnapshot,a=function(t){if(n.value){var o={opacity:t};e.updateElement({id:n.value.id,props:o}),c()}};return{opacity:o,updateOpacity:a}}});n("be11");const Dp=Sn()(_p,[["render",Mp],["__scopeId","data-v-f62a02b6"]]);var zp=Dp,Ap=(n("c7cd"),function(e){return Object(j["pushScopeId"])("data-v-35c4c4a3"),e=e(),Object(j["popScopeId"])(),e}),Fp={class:"element-outline"},Rp={key:0,class:"row"},Pp=Ap((function(){return Object(j["createElementVNode"])("div",{style:{flex:"2"}},"启用边框:",-1)})),Hp={class:"switch-wrapper",style:{flex:"3"}},qp={class:"row"},Xp=Ap((function(){return Object(j["createElementVNode"])("div",{style:{flex:"2"}},"边框样式:",-1)})),Wp=Object(j["createTextVNode"])("实线边框"),Gp=Object(j["createTextVNode"])("虚线边框"),Up={class:"row"},Yp=Ap((function(){return Object(j["createElementVNode"])("div",{style:{flex:"2"}},"边框颜色:",-1)})),Zp={class:"row"},Jp=Ap((function(){return Object(j["createElementVNode"])("div",{style:{flex:"2"}},"边框粗细:",-1)}));function Kp(e,t,n,o,l,c){var a=Object(j["resolveComponent"])("Switch"),r=Object(j["resolveComponent"])("SelectOption"),i=Object(j["resolveComponent"])("Select"),u=Object(j["resolveComponent"])("ColorPicker"),d=Object(j["resolveComponent"])("ColorButton"),s=Object(j["resolveComponent"])("Popover"),f=Object(j["resolveComponent"])("InputNumber");return Object(j["openBlock"])(),Object(j["createElementBlock"])("div",Fp,[e.fixed?Object(j["createCommentVNode"])("",!0):(Object(j["openBlock"])(),Object(j["createElementBlock"])("div",Rp,[Pp,Object(j["createElementVNode"])("div",Hp,[Object(j["createVNode"])(a,{checked:e.hasOutline,onChange:t[0]||(t[0]=function(t){return e.toggleOutline(t)})},null,8,["checked"])])])),e.hasOutline?(Object(j["openBlock"])(),Object(j["createElementBlock"])(j["Fragment"],{key:1},[Object(j["createElementVNode"])("div",qp,[Xp,Object(j["createVNode"])(i,{style:{flex:"3"},value:e.outline.style,onChange:t[1]||(t[1]=function(t){return e.updateOutline({style:t})})},{default:Object(j["withCtx"])((function(){return[Object(j["createVNode"])(r,{value:"solid"},{default:Object(j["withCtx"])((function(){return[Wp]})),_:1}),Object(j["createVNode"])(r,{value:"dashed"},{default:Object(j["withCtx"])((function(){return[Gp]})),_:1})]})),_:1},8,["value"])]),Object(j["createElementVNode"])("div",Up,[Yp,Object(j["createVNode"])(s,{trigger:"click"},{content:Object(j["withCtx"])((function(){return[Object(j["createVNode"])(u,{modelValue:e.outline.color,"onUpdate:modelValue":t[2]||(t[2]=function(t){return e.updateOutline({color:t})})},null,8,["modelValue"])]})),default:Object(j["withCtx"])((function(){return[Object(j["createVNode"])(d,{color:e.outline.color,style:{flex:"3"}},null,8,["color"])]})),_:1})]),Object(j["createElementVNode"])("div",Zp,[Jp,Object(j["createVNode"])(f,{value:e.outline.width,onChange:t[3]||(t[3]=function(t){return e.updateOutline({width:t})}),style:{flex:"3"}},null,8,["value"])])],64)):Object(j["createCommentVNode"])("",!0)])}function Qp(e,t,n,o,l,c){var a=Object(j["resolveComponent"])("IconPlatte"),r=Object(j["resolveComponent"])("Button");return Object(j["openBlock"])(),Object(j["createBlock"])(r,{class:"color-btn"},{default:Object(j["withCtx"])((function(){return[Object(j["createElementVNode"])("div",{class:"color-block",style:Object(j["normalizeStyle"])({backgroundColor:n.color})},null,4),Object(j["createVNode"])(a,{class:"color-btn-icon"})]})),_:1})}var $p={name:"color-button",props:{color:{type:String,required:!0}}};n("1401");const em=Sn()($p,[["render",Qp],["__scopeId","data-v-39016b60"]]);var tm=em,nm=Object(j["defineComponent"])({name:"element-outline",components:{ColorButton:tm},props:{fixed:{type:Boolean,default:!1}},setup:function(){var e=Q(),t=Object(y["c"])($()),n=t.handleElement,o=Object(j["ref"])(),l=Object(j["ref"])(!1);Object(j["watch"])(n,(function(){n.value&&(o.value="outline"in n.value?n.value.outline:void 0,l.value=!!o.value)}),{deep:!0,immediate:!0});var c=Pe(),a=c.addHistorySnapshot,r=function(t){if(n.value){var l={outline:Object(S["a"])(Object(S["a"])({},o.value),t)};e.updateElement({id:n.value.id,props:l}),a()}},i=function(t){if(n.value){if(t){var o={width:2,color:"#000",style:"solid"};e.updateElement({id:n.value.id,props:{outline:o}})}else e.removeElementProps({id:n.value.id,propName:"outline"});a()}};return{outline:o,hasOutline:l,toggleOutline:i,updateOutline:r}}});n("e3df");const om=Sn()(nm,[["render",Kp],["__scopeId","data-v-35c4c4a3"]]);var lm=om,cm=function(e){return Object(j["pushScopeId"])("data-v-c77a6414"),e=e(),Object(j["popScopeId"])(),e},am={class:"element-shadow"},rm={class:"row"},im=cm((function(){return Object(j["createElementVNode"])("div",{style:{flex:"2"}},"启用阴影:",-1)})),um={class:"switch-wrapper",style:{flex:"3"}},dm={class:"row"},sm=cm((function(){return Object(j["createElementVNode"])("div",{style:{flex:"2"}},"水平阴影:",-1)})),fm={class:"row"},pm=cm((function(){return Object(j["createElementVNode"])("div",{style:{flex:"2"}},"垂直阴影:",-1)})),mm={class:"row"},bm=cm((function(){return Object(j["createElementVNode"])("div",{style:{flex:"2"}},"模糊距离:",-1)})),vm={class:"row"},hm=cm((function(){return Object(j["createElementVNode"])("div",{style:{flex:"2"}},"阴影颜色:",-1)}));function Om(e,t,n,o,l,c){var a=Object(j["resolveComponent"])("Switch"),r=Object(j["resolveComponent"])("Slider"),i=Object(j["resolveComponent"])("ColorPicker"),u=Object(j["resolveComponent"])("ColorButton"),d=Object(j["resolveComponent"])("Popover");return Object(j["openBlock"])(),Object(j["createElementBlock"])("div",am,[Object(j["createElementVNode"])("div",rm,[im,Object(j["createElementVNode"])("div",um,[Object(j["createVNode"])(a,{checked:e.hasShadow,onChange:t[0]||(t[0]=function(t){return e.toggleShadow(t)})},null,8,["checked"])])]),e.hasShadow?(Object(j["openBlock"])(),Object(j["createElementBlock"])(j["Fragment"],{key:0},[Object(j["createElementVNode"])("div",dm,[sm,Object(j["createVNode"])(r,{class:"slider",min:0,max:10,step:1,value:e.shadow.h,onChange:t[1]||(t[1]=function(t){return e.updateShadow({h:t})})},null,8,["value"])]),Object(j["createElementVNode"])("div",fm,[pm,Object(j["createVNode"])(r,{class:"slider",min:0,max:10,step:1,value:e.shadow.v,onChange:t[2]||(t[2]=function(t){return e.updateShadow({v:t})})},null,8,["value"])]),Object(j["createElementVNode"])("div",mm,[bm,Object(j["createVNode"])(r,{class:"slider",min:1,max:20,step:1,value:e.shadow.blur,onChange:t[3]||(t[3]=function(t){return e.updateShadow({blur:t})})},null,8,["value"])]),Object(j["createElementVNode"])("div",vm,[hm,Object(j["createVNode"])(d,{trigger:"click"},{content:Object(j["withCtx"])((function(){return[Object(j["createVNode"])(i,{modelValue:e.shadow.color,"onUpdate:modelValue":t[4]||(t[4]=function(t){return e.updateShadow({color:t})})},null,8,["modelValue"])]})),default:Object(j["withCtx"])((function(){return[Object(j["createVNode"])(u,{color:e.shadow.color,style:{flex:"3"}},null,8,["color"])]})),_:1})])],64)):Object(j["createCommentVNode"])("",!0)])}var jm=Object(j["defineComponent"])({name:"element-shadow",components:{ColorButton:tm},setup:function(){var e=Q(),t=Object(y["c"])($()),n=t.handleElement,o=Object(j["ref"])(),l=Object(j["ref"])(!1);Object(j["watch"])(n,(function(){n.value&&(o.value="shadow"in n.value?n.value.shadow:void 0,l.value=!!o.value)}),{deep:!0,immediate:!0});var c=Pe(),a=c.addHistorySnapshot,r=function(t){if(n.value&&o.value){var l=Object(S["a"])(Object(S["a"])({},o.value),t);e.updateElement({id:n.value.id,props:{shadow:l}}),a()}},i=function(t){if(n.value){if(t){var o={h:1,v:1,blur:2,color:"#000"};e.updateElement({id:n.value.id,props:{shadow:o}})}else e.removeElementProps({id:n.value.id,propName:"shadow"});a()}};return{shadow:o,hasShadow:l,toggleShadow:i,updateShadow:r}}});n("f9a0");const ym=Sn()(jm,[["render",Om],["__scopeId","data-v-c77a6414"]]);var gm=ym,xm=[{label:"大标题",style:{fontSize:"26px",fontWeight:700},cmd:[{command:"clear"},{command:"fontsize",value:"48px"},{command:"align",value:"center"},{command:"bold"}]},{label:"小标题",style:{fontSize:"22px",fontWeight:700},cmd:[{command:"clear"},{command:"fontsize",value:"36px"},{command:"align",value:"center"},{command:"bold"}]},{label:"正文",style:{fontSize:"20px"},cmd:[{command:"clear"},{command:"fontsize",value:"20px"}]},{label:"正文[小]",style:{fontSize:"18px"},cmd:[{command:"clear"},{command:"fontsize",value:"18px"}]},{label:"注释 1",style:{fontSize:"16px",fontStyle:"italic"},cmd:[{command:"clear"},{command:"fontsize",value:"16px"},{command:"em"}]},{label:"注释 2",style:{fontSize:"16px",textDecoration:"underline"},cmd:[{command:"clear"},{command:"fontsize",value:"16px"},{command:"underline"}]}],Cm=V,km=Object(j["defineComponent"])({name:"text-style-panel",components:{ElementOpacity:zp,ElementOutline:lm,ElementShadow:gm},setup:function(){var e=Q(),t=Object(y["c"])($()),n=t.handleElement,o=t.handleElementId,l=t.richTextAttrs,c=t.availableFonts,a=Object(j["ref"])(),r=Object(j["ref"])(),i=Object(j["ref"])();Object(j["watch"])(n,(function(){n.value&&"text"===n.value.type&&(a.value=n.value.fill||"#000",r.value=n.value.lineHeight||1.5,i.value=n.value.wordSpace||0)}),{deep:!0,immediate:!0});var u=["12px","14px","16px","18px","20px","22px","24px","28px","32px","36px","40px","44px","48px","54px","60px","66px","72px","76px","80px","88px","96px","104px","112px","120px"],d=[.9,1,1.15,1.2,1.4,1.5,1.8,2,2.5,3],s=[0,1,2,3,4,5,6,8,10],f=function(e,t){Kl.emit(sl.RICH_TEXT_COMMAND,{command:e,value:t})},p=function(e){Kl.emit(sl.RICH_TEXT_COMMAND,e)},m=Pe(),b=m.addHistorySnapshot,v=function(t){e.updateElement({id:o.value,props:t}),b()},h=function(e){v({lineHeight:e})},O=function(e){v({wordSpace:e})},g=function(e){v({fill:e})};return{fill:a,lineHeight:r,wordSpace:i,richTextAttrs:l,availableFonts:c,webFonts:Cm,fontSizeOptions:u,lineHeightOptions:d,wordSpaceOptions:s,updateLineHeight:h,updateWordSpace:O,updateFill:g,emitRichTextCommand:f,emitBatchRichTextCommand:p,presetStyles:xm}}});n("c68f");const wm=Sn()(km,[["render",Vp],["__scopeId","data-v-2d6233f4"]]);var Em=wm,Nm=function(e){return Object(j["pushScopeId"])("data-v-64e5a614"),e=e(),Object(j["popScopeId"])(),e},Im={class:"image-style-panel"},Vm=Object(j["createTextVNode"])(" 裁剪图片"),Sm={class:"clip"},Bm=Nm((function(){return Object(j["createElementVNode"])("div",{class:"title"},"按形状:",-1)})),Lm={class:"shape-clip"},Tm=["onClick"],Mm={key:0,class:"title"},_m=Object(j["createTextVNode"])(" 替换图片"),Dm=Object(j["createTextVNode"])(" 重置样式"),zm=Object(j["createTextVNode"])(" 设为背景");function Am(e,t,n,o,l,c){var a=Object(j["resolveComponent"])("ElementFlip"),r=Object(j["resolveComponent"])("IconTailoring"),i=Object(j["resolveComponent"])("Button"),u=Object(j["resolveComponent"])("ButtonGroup"),d=Object(j["resolveComponent"])("IconDown"),s=Object(j["resolveComponent"])("Popover"),f=Object(j["resolveComponent"])("Divider"),p=Object(j["resolveComponent"])("ElementFilter"),m=Object(j["resolveComponent"])("ElementOutline"),b=Object(j["resolveComponent"])("ElementShadow"),v=Object(j["resolveComponent"])("IconTransform"),h=Object(j["resolveComponent"])("FileInput"),O=Object(j["resolveComponent"])("IconUndo"),y=Object(j["resolveComponent"])("IconTheme");return Object(j["openBlock"])(),Object(j["createElementBlock"])("div",Im,[Object(j["createElementVNode"])("div",{class:"origin-image",style:Object(j["normalizeStyle"])({backgroundImage:"url(".concat(e.handleElement.src,")")})},null,4),Object(j["createVNode"])(a),Object(j["createVNode"])(u,{class:"row"},{default:Object(j["withCtx"])((function(){return[Object(j["createVNode"])(i,{style:{flex:"5"},onClick:t[0]||(t[0]=function(t){return e.clipImage()})},{default:Object(j["withCtx"])((function(){return[Object(j["createVNode"])(r,{class:"btn-icon"}),Vm]})),_:1}),Object(j["createVNode"])(s,{trigger:"click",visible:e.clipPanelVisible,"onUpdate:visible":t[1]||(t[1]=function(t){return e.clipPanelVisible=t})},{content:Object(j["withCtx"])((function(){return[Object(j["createElementVNode"])("div",Sm,[Bm,Object(j["createElementVNode"])("div",Lm,[(Object(j["openBlock"])(!0),Object(j["createElementBlock"])(j["Fragment"],null,Object(j["renderList"])(e.shapeClipPathOptions,(function(t,n){return Object(j["openBlock"])(),Object(j["createElementBlock"])("div",{class:"shape-clip-item",key:n,onClick:function(t){return e.presetImageClip(n)}},[Object(j["createElementVNode"])("div",{class:"shape",style:Object(j["normalizeStyle"])({clipPath:t.style})},null,4)],8,Tm)})),128))]),(Object(j["openBlock"])(!0),Object(j["createElementBlock"])(j["Fragment"],null,Object(j["renderList"])(e.ratioClipOptions,(function(t){return Object(j["openBlock"])(),Object(j["createElementBlock"])(j["Fragment"],{key:t.label},[t.label?(Object(j["openBlock"])(),Object(j["createElementBlock"])("div",Mm,"按"+Object(j["toDisplayString"])(t.label)+"",1)):Object(j["createCommentVNode"])("",!0),Object(j["createVNode"])(u,{class:"row"},{default:Object(j["withCtx"])((function(){return[(Object(j["openBlock"])(!0),Object(j["createElementBlock"])(j["Fragment"],null,Object(j["renderList"])(t.children,(function(t){return Object(j["openBlock"])(),Object(j["createBlock"])(i,{style:{flex:"1"},key:t.key,onClick:function(n){return e.presetImageClip("rect",t.ratio)}},{default:Object(j["withCtx"])((function(){return[Object(j["createTextVNode"])(Object(j["toDisplayString"])(t.key),1)]})),_:2},1032,["onClick"])})),128))]})),_:2},1024)],64)})),128))])]})),default:Object(j["withCtx"])((function(){return[Object(j["createVNode"])(i,{class:"no-padding",style:{flex:"1"}},{default:Object(j["withCtx"])((function(){return[Object(j["createVNode"])(d)]})),_:1})]})),_:1},8,["visible"])]})),_:1}),Object(j["createVNode"])(f),Object(j["createVNode"])(p),Object(j["createVNode"])(f),Object(j["createVNode"])(m),Object(j["createVNode"])(f),Object(j["createVNode"])(b),Object(j["createVNode"])(f),Object(j["createVNode"])(h,{onChange:t[2]||(t[2]=function(t){return e.replaceImage(t)})},{default:Object(j["withCtx"])((function(){return[Object(j["createVNode"])(i,{class:"full-width-btn"},{default:Object(j["withCtx"])((function(){return[Object(j["createVNode"])(v,{class:"btn-icon"}),_m]})),_:1})]})),_:1}),Object(j["createVNode"])(i,{class:"full-width-btn",onClick:t[3]||(t[3]=function(t){return e.resetImage()})},{default:Object(j["withCtx"])((function(){return[Object(j["createVNode"])(O,{class:"btn-icon"}),Dm]})),_:1}),Object(j["createVNode"])(i,{class:"full-width-btn",onClick:t[4]||(t[4]=function(t){return e.setBackgroundImage()})},{default:Object(j["withCtx"])((function(){return[Object(j["createVNode"])(y,{class:"btn-icon"}),zm]})),_:1})])}var Fm={class:"element-flip"},Rm=Object(j["createTextVNode"])(" 垂直翻转"),Pm=Object(j["createTextVNode"])(" 水平翻转");function Hm(e,t,n,o,l,c){var a=Object(j["resolveComponent"])("IconFlipVertically"),r=Object(j["resolveComponent"])("CheckboxButton"),i=Object(j["resolveComponent"])("IconFlipHorizontally"),u=Object(j["resolveComponent"])("CheckboxButtonGroup");return Object(j["openBlock"])(),Object(j["createElementBlock"])("div",Fm,[Object(j["createVNode"])(u,{class:"row"},{default:Object(j["withCtx"])((function(){return[Object(j["createVNode"])(r,{style:{flex:"1"},checked:e.flipV,onClick:t[0]||(t[0]=function(t){return e.updateFlip({flipV:!e.flipV})})},{default:Object(j["withCtx"])((function(){return[Object(j["createVNode"])(a),Rm]})),_:1},8,["checked"]),Object(j["createVNode"])(r,{style:{flex:"1"},checked:e.flipH,onClick:t[1]||(t[1]=function(t){return e.updateFlip({flipH:!e.flipH})})},{default:Object(j["withCtx"])((function(){return[Object(j["createVNode"])(i),Pm]})),_:1},8,["checked"])]})),_:1})])}var qm=Object(j["defineComponent"])({name:"element-flip",setup:function(){var e=Q(),t=Object(y["c"])($()),n=t.handleElement,o=Object(j["ref"])(!1),l=Object(j["ref"])(!1);Object(j["watch"])(n,(function(){!n.value||"image"!==n.value.type&&"shape"!==n.value.type||(o.value=!!n.value.flipH,l.value=!!n.value.flipV)}),{deep:!0,immediate:!0});var c=Pe(),a=c.addHistorySnapshot,r=function(t){n.value&&(e.updateElement({id:n.value.id,props:t}),a())};return{flipH:o,flipV:l,updateFlip:r}}});n("0c35");const Xm=Sn()(qm,[["render",Hm],["__scopeId","data-v-7bd50f1a"]]);var Wm=Xm,Gm=function(e){return Object(j["pushScopeId"])("data-v-181ae0aa"),e=e(),Object(j["popScopeId"])(),e},Um={class:"element-filter"},Ym={class:"row"},Zm=Gm((function(){return Object(j["createElementVNode"])("div",{style:{flex:"2"}},"启用滤镜:",-1)})),Jm={class:"switch-wrapper",style:{flex:"3"}},Km={key:0,class:"filter"},Qm={class:"name"};function $m(e,t,n,o,l,c){var a=Object(j["resolveComponent"])("Switch"),r=Object(j["resolveComponent"])("Slider");return Object(j["openBlock"])(),Object(j["createElementBlock"])("div",Um,[Object(j["createElementVNode"])("div",Ym,[Zm,Object(j["createElementVNode"])("div",Jm,[Object(j["createVNode"])(a,{checked:e.hasFilters,onChange:t[0]||(t[0]=function(t){return e.toggleFilters(t)})},null,8,["checked"])])]),e.hasFilters?(Object(j["openBlock"])(),Object(j["createElementBlock"])("div",Km,[(Object(j["openBlock"])(!0),Object(j["createElementBlock"])(j["Fragment"],null,Object(j["renderList"])(e.filterOptions,(function(t){return Object(j["openBlock"])(),Object(j["createElementBlock"])("div",{class:"filter-item",key:t.key},[Object(j["createElementVNode"])("div",Qm,Object(j["toDisplayString"])(t.label),1),Object(j["createVNode"])(r,{class:"filter-slider",max:t.max,min:t.min,step:t.step,value:t.value,onChange:function(n){return e.updateFilter(t,n)}},null,8,["max","min","step","value","onChange"])])})),128))])):Object(j["createCommentVNode"])("",!0)])}var eb=[{label:"模糊",key:"blur",default:0,value:0,unit:"px",max:10,step:1},{label:"亮度",key:"brightness",default:100,value:100,unit:"%",max:200,step:5},{label:"对比度",key:"contrast",default:100,value:100,unit:"%",max:200,step:5},{label:"灰度",key:"grayscale",default:0,value:0,unit:"%",max:100,step:5},{label:"饱和度",key:"saturate",default:100,value:100,unit:"%",max:200,step:5},{label:"色相",key:"hue-rotate",default:0,value:0,unit:"deg",max:360,step:10},{label:"不透明度",key:"opacity",default:100,value:100,unit:"%",max:100,step:5}],tb=Object(j["defineComponent"])({name:"element-filter",setup:function(){var e=Q(),t=Object(y["c"])($()),n=t.handleElement,o=t.handleElementId,l=Object(j["ref"])(JSON.parse(JSON.stringify(eb))),c=Object(j["ref"])(!1),a=Pe(),r=a.addHistorySnapshot;Object(j["watch"])(n,(function(){if(n.value&&"image"===n.value.type){var e=n.value.filters;e?(l.value=eb.map((function(t){return void 0!==e[t.key]?Object(S["a"])(Object(S["a"])({},t),{},{value:parseInt(e[t.key])}):t})),c.value=!0):(l.value=JSON.parse(JSON.stringify(eb)),c.value=!1)}}),{deep:!0,immediate:!0});var i=function(t,l){var c=n.value,a=c.filters||{},i=Object(S["a"])(Object(S["a"])({},a),{},Object(ce["a"])({},t.key,"".concat(l).concat(t.unit)));e.updateElement({id:o.value,props:{filters:i}}),r()},u=function(t){n.value&&(t?e.updateElement({id:n.value.id,props:{filters:{}}}):e.removeElementProps({id:n.value.id,propName:"filters"}),r())};return{filterOptions:l,hasFilters:c,toggleFilters:u,updateFilter:i}}});n("1842");const nb=Sn()(tb,[["render",$m],["__scopeId","data-v-181ae0aa"]]);var ob=nb,lb=uo,cb=[{label:"纵横比(方形)",children:[{key:"1:1",ratio:1}]},{label:"纵横比(纵向)",children:[{key:"2:3",ratio:1.5},{key:"3:4",ratio:4/3},{key:"3:5",ratio:5/3},{key:"4:5",ratio:5/4}]},{label:"纵横比(横向)",children:[{key:"3:2",ratio:2/3},{key:"4:3",ratio:3/4},{key:"5:3",ratio:.6},{key:"5:4",ratio:.8}]},{children:[{key:"16:9",ratio:9/16},{key:"16:10",ratio:.625}]}],ab=Object(j["defineComponent"])({name:"image-style-panel",components:{ElementOutline:lm,ElementShadow:gm,ElementFlip:Wm,ElementFilter:ob},setup:function(){var e=$(),t=Q(),n=Object(y["c"])(e),o=n.handleElement,l=n.handleElementId,c=Object(y["c"])(t),a=c.currentSlide,r=Object(j["ref"])(!1),i=Pe(),u=i.addHistorySnapshot,d=function(){e.setClipingImageElementId(l.value),r.value=!1},s=function(){var e=o.value,t=e.width,n=e.height,l=e.left,c=e.top,a=e.clip?e.clip.range:[[0,0],[100,100]],r=t/((a[1][0]-a[0][0])/100),i=n/((a[1][1]-a[0][1])/100),u=l-r*(a[0][0]/100),d=c-i*(a[0][1]/100);return{originClipRange:a,originWidth:r,originHeight:i,originLeft:u,originTop:d}},f=function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,c=o.value,a=s(),r=a.originClipRange,i=a.originWidth,f=a.originHeight,p=a.originLeft,m=a.originTop;if(n){var b,v=f/i,h=0,O=100;if(v>n){var j=(1-n/v)/2*100;b=[[h,j],[O,O-j]]}else{var y=(1-v/n)/2*100;b=[[y,h],[O-y,O]]}t.updateElement({id:l.value,props:{clip:Object(S["a"])(Object(S["a"])({},c.clip),{},{shape:e,range:b}),left:p+i*(b[0][0]/100),top:m+f*(b[0][1]/100),width:i*(b[1][0]-b[0][0])/100,height:f*(b[1][1]-b[0][1])/100}})}else t.updateElement({id:l.value,props:{clip:Object(S["a"])(Object(S["a"])({},c.clip),{},{shape:e,range:r})}});d(),u()},p=function(e){var n=e[0];n&&(qe(n).then((function(e){var n={src:e};t.updateElement({id:l.value,props:n})})),u())},m=function(){var e=o.value;if(e.clip){var n=s(),c=n.originWidth,a=n.originHeight,r=n.originLeft,i=n.originTop;t.updateElement({id:l.value,props:{left:r,top:i,width:c,height:a}})}t.removeElementProps({id:l.value,propName:["clip","outline","flip","shadow","filters"]}),u()},b=function(){var e=o.value,n=Object(S["a"])(Object(S["a"])({},a.value.background),{},{type:"image",image:e.src,imageSize:"cover"});t.updateSlide({background:n}),u()};return{clipPanelVisible:r,shapeClipPathOptions:lb,ratioClipOptions:cb,handleElement:o,clipImage:d,presetImageClip:f,replaceImage:p,resetImage:m,setBackgroundImage:b}}});n("56bc");const rb=Sn()(ab,[["render",Am],["__scopeId","data-v-64e5a614"]]);var ib=rb,ub=function(e){return Object(j["pushScopeId"])("data-v-0e201fca"),e=e(),Object(j["popScopeId"])(),e},db={class:"shape-style-panel"},sb={class:"row"},fb=Object(j["createTextVNode"])("纯色填充"),pb=Object(j["createTextVNode"])("渐变填充"),mb=ub((function(){return Object(j["createElementVNode"])("div",{style:{flex:"1"}},null,-1)})),bb=Object(j["createTextVNode"])("线性渐变"),vb=Object(j["createTextVNode"])("径向渐变"),hb={class:"row"},Ob=ub((function(){return Object(j["createElementVNode"])("div",{style:{flex:"2"}},"起点颜色:",-1)})),jb={class:"row"},yb=ub((function(){return Object(j["createElementVNode"])("div",{style:{flex:"2"}},"终点颜色:",-1)})),gb={key:0,class:"row"},xb=ub((function(){return Object(j["createElementVNode"])("div",{style:{flex:"2"}},"渐变角度:",-1)}));function Cb(e,t,n,o,l,c){var a=Object(j["resolveComponent"])("SelectOption"),r=Object(j["resolveComponent"])("Select"),i=Object(j["resolveComponent"])("ColorPicker"),u=Object(j["resolveComponent"])("ColorButton"),d=Object(j["resolveComponent"])("Popover"),s=Object(j["resolveComponent"])("Slider"),f=Object(j["resolveComponent"])("ElementFlip"),p=Object(j["resolveComponent"])("Divider"),m=Object(j["resolveComponent"])("IconFontSize"),b=Object(j["resolveComponent"])("SelectOptGroup"),v=Object(j["resolveComponent"])("IconAddText"),h=Object(j["resolveComponent"])("InputGroup"),O=Object(j["resolveComponent"])("IconText"),y=Object(j["resolveComponent"])("Button"),g=Object(j["resolveComponent"])("Tooltip"),x=Object(j["resolveComponent"])("ButtonGroup"),C=Object(j["resolveComponent"])("IconTextBold"),k=Object(j["resolveComponent"])("CheckboxButton"),w=Object(j["resolveComponent"])("IconTextItalic"),E=Object(j["resolveComponent"])("IconTextUnderline"),N=Object(j["resolveComponent"])("IconFormat"),I=Object(j["resolveComponent"])("CheckboxButtonGroup"),V=Object(j["resolveComponent"])("IconAlignTextLeft"),S=Object(j["resolveComponent"])("RadioButton"),B=Object(j["resolveComponent"])("IconAlignTextCenter"),L=Object(j["resolveComponent"])("IconAlignTextRight"),T=Object(j["resolveComponent"])("RadioGroup"),M=Object(j["resolveComponent"])("IconAlignTextTopOne"),_=Object(j["resolveComponent"])("IconAlignTextMiddleOne"),D=Object(j["resolveComponent"])("IconAlignTextBottomOne"),z=Object(j["resolveComponent"])("ElementOutline"),A=Object(j["resolveComponent"])("ElementShadow"),F=Object(j["resolveComponent"])("ElementOpacity");return Object(j["openBlock"])(),Object(j["createElementBlock"])("div",db,[Object(j["createElementVNode"])("div",sb,[Object(j["createVNode"])(r,{style:{flex:"10"},value:e.fillType,onChange:t[0]||(t[0]=function(t){return e.updateFillType(t)})},{default:Object(j["withCtx"])((function(){return[Object(j["createVNode"])(a,{value:"fill"},{default:Object(j["withCtx"])((function(){return[fb]})),_:1}),Object(j["createVNode"])(a,{value:"gradient"},{default:Object(j["withCtx"])((function(){return[pb]})),_:1})]})),_:1},8,["value"]),mb,"fill"===e.fillType?(Object(j["openBlock"])(),Object(j["createBlock"])(d,{key:0,trigger:"click"},{content:Object(j["withCtx"])((function(){return[Object(j["createVNode"])(i,{modelValue:e.fill,"onUpdate:modelValue":t[1]||(t[1]=function(t){return e.updateFill(t)})},null,8,["modelValue"])]})),default:Object(j["withCtx"])((function(){return[Object(j["createVNode"])(u,{color:e.fill,style:{flex:"10"}},null,8,["color"])]})),_:1})):(Object(j["openBlock"])(),Object(j["createBlock"])(r,{key:1,style:{flex:"10"},value:e.gradient.type,onChange:t[2]||(t[2]=function(t){return e.updateGradient({type:t})})},{default:Object(j["withCtx"])((function(){return[Object(j["createVNode"])(a,{value:"linear"},{default:Object(j["withCtx"])((function(){return[bb]})),_:1}),Object(j["createVNode"])(a,{value:"radial"},{default:Object(j["withCtx"])((function(){return[vb]})),_:1})]})),_:1},8,["value"]))]),"gradient"===e.fillType?(Object(j["openBlock"])(),Object(j["createElementBlock"])(j["Fragment"],{key:0},[Object(j["createElementVNode"])("div",hb,[Ob,Object(j["createVNode"])(d,{trigger:"click"},{content:Object(j["withCtx"])((function(){return[Object(j["createVNode"])(i,{modelValue:e.gradient.color[0],"onUpdate:modelValue":t[3]||(t[3]=function(t){return e.updateGradient({color:[t,e.gradient.color[1]]})})},null,8,["modelValue"])]})),default:Object(j["withCtx"])((function(){return[Object(j["createVNode"])(u,{color:e.gradient.color[0],style:{flex:"3"}},null,8,["color"])]})),_:1})]),Object(j["createElementVNode"])("div",jb,[yb,Object(j["createVNode"])(d,{trigger:"click"},{content:Object(j["withCtx"])((function(){return[Object(j["createVNode"])(i,{modelValue:e.gradient.color[1],"onUpdate:modelValue":t[4]||(t[4]=function(t){return e.updateGradient({color:[e.gradient.color[0],t]})})},null,8,["modelValue"])]})),default:Object(j["withCtx"])((function(){return[Object(j["createVNode"])(u,{color:e.gradient.color[1],style:{flex:"3"}},null,8,["color"])]})),_:1})]),"linear"===e.gradient.type?(Object(j["openBlock"])(),Object(j["createElementBlock"])("div",gb,[xb,Object(j["createVNode"])(s,{class:"slider",min:0,max:360,step:15,value:e.gradient.rotate,onChange:t[5]||(t[5]=function(t){return e.updateGradient({rotate:t})})},null,8,["value"])])):Object(j["createCommentVNode"])("",!0)],64)):Object(j["createCommentVNode"])("",!0),Object(j["createVNode"])(f),Object(j["createVNode"])(p),e.showTextTools?(Object(j["openBlock"])(),Object(j["createElementBlock"])(j["Fragment"],{key:1},[Object(j["createVNode"])(h,{compact:"",class:"row"},{default:Object(j["withCtx"])((function(){return[Object(j["createVNode"])(r,{style:{flex:"3"},value:e.richTextAttrs.fontname,onChange:t[6]||(t[6]=function(t){return e.emitRichTextCommand("fontname",t)})},{suffixIcon:Object(j["withCtx"])((function(){return[Object(j["createVNode"])(m)]})),default:Object(j["withCtx"])((function(){return[Object(j["createVNode"])(b,{label:"系统字体"},{default:Object(j["withCtx"])((function(){return[(Object(j["openBlock"])(!0),Object(j["createElementBlock"])(j["Fragment"],null,Object(j["renderList"])(e.availableFonts,(function(e){return Object(j["openBlock"])(),Object(j["createBlock"])(a,{key:e.value,value:e.value},{default:Object(j["withCtx"])((function(){return[Object(j["createElementVNode"])("span",{style:Object(j["normalizeStyle"])({fontFamily:e.value})},Object(j["toDisplayString"])(e.label),5)]})),_:2},1032,["value"])})),128))]})),_:1}),Object(j["createVNode"])(b,{label:"在线字体"},{default:Object(j["withCtx"])((function(){return[(Object(j["openBlock"])(!0),Object(j["createElementBlock"])(j["Fragment"],null,Object(j["renderList"])(e.webFonts,(function(e){return Object(j["openBlock"])(),Object(j["createBlock"])(a,{key:e.value,value:e.value},{default:Object(j["withCtx"])((function(){return[Object(j["createElementVNode"])("span",null,Object(j["toDisplayString"])(e.label),1)]})),_:2},1032,["value"])})),128))]})),_:1})]})),_:1},8,["value"]),Object(j["createVNode"])(r,{style:{flex:"2"},value:e.richTextAttrs.fontsize,onChange:t[7]||(t[7]=function(t){return e.emitRichTextCommand("fontsize",t)})},{suffixIcon:Object(j["withCtx"])((function(){return[Object(j["createVNode"])(v)]})),default:Object(j["withCtx"])((function(){return[(Object(j["openBlock"])(!0),Object(j["createElementBlock"])(j["Fragment"],null,Object(j["renderList"])(e.fontSizeOptions,(function(e){return Object(j["openBlock"])(),Object(j["createBlock"])(a,{key:e,value:e},{default:Object(j["withCtx"])((function(){return[Object(j["createTextVNode"])(Object(j["toDisplayString"])(e),1)]})),_:2},1032,["value"])})),128))]})),_:1},8,["value"])]})),_:1}),Object(j["createVNode"])(x,{class:"row"},{default:Object(j["withCtx"])((function(){return[Object(j["createVNode"])(d,{trigger:"click"},{content:Object(j["withCtx"])((function(){return[Object(j["createVNode"])(i,{modelValue:e.richTextAttrs.color,"onUpdate:modelValue":t[8]||(t[8]=function(t){return e.emitRichTextCommand("color",t)})},null,8,["modelValue"])]})),default:Object(j["withCtx"])((function(){return[Object(j["createVNode"])(g,{mouseLeaveDelay:0,mouseEnterDelay:.5,title:"文字颜色"},{default:Object(j["withCtx"])((function(){return[Object(j["createVNode"])(y,{class:"text-color-btn",style:{flex:"1"}},{default:Object(j["withCtx"])((function(){return[Object(j["createVNode"])(O),Object(j["createElementVNode"])("div",{class:"text-color-block",style:Object(j["normalizeStyle"])({backgroundColor:e.richTextAttrs.color})},null,4)]})),_:1})]})),_:1},8,["mouseEnterDelay"])]})),_:1})]})),_:1}),Object(j["createVNode"])(I,{class:"row"},{default:Object(j["withCtx"])((function(){return[Object(j["createVNode"])(g,{mouseLeaveDelay:0,mouseEnterDelay:.5,title:"加粗"},{default:Object(j["withCtx"])((function(){return[Object(j["createVNode"])(k,{style:{flex:"1"},checked:e.richTextAttrs.bold,onClick:t[9]||(t[9]=function(t){return e.emitRichTextCommand("bold")})},{default:Object(j["withCtx"])((function(){return[Object(j["createVNode"])(C)]})),_:1},8,["checked"])]})),_:1},8,["mouseEnterDelay"]),Object(j["createVNode"])(g,{mouseLeaveDelay:0,mouseEnterDelay:.5,title:"斜体"},{default:Object(j["withCtx"])((function(){return[Object(j["createVNode"])(k,{style:{flex:"1"},checked:e.richTextAttrs.em,onClick:t[10]||(t[10]=function(t){return e.emitRichTextCommand("em")})},{default:Object(j["withCtx"])((function(){return[Object(j["createVNode"])(w)]})),_:1},8,["checked"])]})),_:1},8,["mouseEnterDelay"]),Object(j["createVNode"])(g,{mouseLeaveDelay:0,mouseEnterDelay:.5,title:"下划线"},{default:Object(j["withCtx"])((function(){return[Object(j["createVNode"])(k,{style:{flex:"1"},checked:e.richTextAttrs.underline,onClick:t[11]||(t[11]=function(t){return e.emitRichTextCommand("underline")})},{default:Object(j["withCtx"])((function(){return[Object(j["createVNode"])(E)]})),_:1},8,["checked"])]})),_:1},8,["mouseEnterDelay"]),Object(j["createVNode"])(g,{mouseLeaveDelay:0,mouseEnterDelay:.5,title:"清除格式"},{default:Object(j["withCtx"])((function(){return[Object(j["createVNode"])(k,{style:{flex:"1"},onClick:t[12]||(t[12]=function(t){return e.emitRichTextCommand("clear")})},{default:Object(j["withCtx"])((function(){return[Object(j["createVNode"])(N)]})),_:1})]})),_:1},8,["mouseEnterDelay"])]})),_:1}),Object(j["createVNode"])(T,{class:"row","button-style":"solid",value:e.richTextAttrs.align,onChange:t[13]||(t[13]=function(t){return e.emitRichTextCommand("align",t.target.value)})},{default:Object(j["withCtx"])((function(){return[Object(j["createVNode"])(g,{mouseLeaveDelay:0,mouseEnterDelay:.5,title:"左对齐"},{default:Object(j["withCtx"])((function(){return[Object(j["createVNode"])(S,{value:"left",style:{flex:"1"}},{default:Object(j["withCtx"])((function(){return[Object(j["createVNode"])(V)]})),_:1})]})),_:1},8,["mouseEnterDelay"]),Object(j["createVNode"])(g,{mouseLeaveDelay:0,mouseEnterDelay:.5,title:"居中"},{default:Object(j["withCtx"])((function(){return[Object(j["createVNode"])(S,{value:"center",style:{flex:"1"}},{default:Object(j["withCtx"])((function(){return[Object(j["createVNode"])(B)]})),_:1})]})),_:1},8,["mouseEnterDelay"]),Object(j["createVNode"])(g,{mouseLeaveDelay:0,mouseEnterDelay:.5,title:"右对齐"},{default:Object(j["withCtx"])((function(){return[Object(j["createVNode"])(S,{value:"right",style:{flex:"1"}},{default:Object(j["withCtx"])((function(){return[Object(j["createVNode"])(L)]})),_:1})]})),_:1},8,["mouseEnterDelay"])]})),_:1},8,["value"]),Object(j["createVNode"])(T,{class:"row","button-style":"solid",value:e.textAlign,onChange:t[14]||(t[14]=function(t){return e.updateTextAlign(t.target.value)})},{default:Object(j["withCtx"])((function(){return[Object(j["createVNode"])(g,{mouseLeaveDelay:0,mouseEnterDelay:.5,title:"顶对齐"},{default:Object(j["withCtx"])((function(){return[Object(j["createVNode"])(S,{value:"top",style:{flex:"1"}},{default:Object(j["withCtx"])((function(){return[Object(j["createVNode"])(M)]})),_:1})]})),_:1},8,["mouseEnterDelay"]),Object(j["createVNode"])(g,{mouseLeaveDelay:0,mouseEnterDelay:.5,title:"居中"},{default:Object(j["withCtx"])((function(){return[Object(j["createVNode"])(S,{value:"middle",style:{flex:"1"}},{default:Object(j["withCtx"])((function(){return[Object(j["createVNode"])(_)]})),_:1})]})),_:1},8,["mouseEnterDelay"]),Object(j["createVNode"])(g,{mouseLeaveDelay:0,mouseEnterDelay:.5,title:"底对齐"},{default:Object(j["withCtx"])((function(){return[Object(j["createVNode"])(S,{value:"bottom",style:{flex:"1"}},{default:Object(j["withCtx"])((function(){return[Object(j["createVNode"])(D)]})),_:1})]})),_:1},8,["mouseEnterDelay"])]})),_:1},8,["value"]),Object(j["createVNode"])(p)],64)):Object(j["createCommentVNode"])("",!0),Object(j["createVNode"])(z),Object(j["createVNode"])(p),Object(j["createVNode"])(A),Object(j["createVNode"])(p),Object(j["createVNode"])(F)])}var kb=V,wb=Object(j["defineComponent"])({name:"shape-style-panel",components:{ElementOpacity:zp,ElementOutline:lm,ElementShadow:gm,ElementFlip:Wm,ColorButton:tm},setup:function(){var e=$(),t=Q(),n=Object(y["c"])(e),o=n.handleElement,l=n.handleElementId,c=n.editingShapeElementId,a=n.richTextAttrs,r=n.availableFonts,i=Object(j["computed"])((function(){return c.value===l.value})),u=Object(j["ref"])(),d=Object(j["ref"])(),s=Object(j["ref"])("fill"),f=Object(j["ref"])("middle");Object(j["watch"])(o,(function(){var e,t;o.value&&"shape"===o.value.type&&(u.value=o.value.fill||"#000",d.value=o.value.gradient||{type:"linear",rotate:0,color:[u.value,"#fff"]},s.value=o.value.gradient?"gradient":"fill",f.value=(null===(e=o.value)||void 0===e||null===(t=e.text)||void 0===t?void 0:t.align)||"middle")}),{deep:!0,immediate:!0});var p=Pe(),m=p.addHistorySnapshot,b=function(e){t.updateElement({id:l.value,props:e}),m()},v=function(e){"fill"===e?(t.removeElementProps({id:l.value,propName:"gradient"}),m()):b({gradient:d.value})},h=function(e){if(d.value){var t=Object(S["a"])(Object(S["a"])({},d.value),e);b({gradient:t})}},O=function(e){b({fill:e})},g=function(e){var t=o.value,n={content:"",defaultFontName:"微软雅黑",defaultColor:"#000",align:"middle"},l=t.text||n;b({text:Object(S["a"])(Object(S["a"])({},l),{},{align:e})})},x=["12px","14px","16px","18px","20px","22px","24px","28px","32px","36px","40px","44px","48px","54px","60px","66px","72px","76px","80px","88px","96px","104px","112px","120px"],C=function(e,t){Kl.emit(sl.RICH_TEXT_COMMAND,{command:e,value:t})};return{fill:u,gradient:d,fillType:s,textAlign:f,richTextAttrs:a,availableFonts:r,fontSizeOptions:x,webFonts:kb,showTextTools:i,emitRichTextCommand:C,updateFillType:v,updateFill:O,updateGradient:h,updateTextAlign:g}}});n("7e0a");const Eb=Sn()(wb,[["render",Cb],["__scopeId","data-v-0e201fca"]]);var Nb=Eb,Ib=function(e){return Object(j["pushScopeId"])("data-v-cbc4d7fa"),e=e(),Object(j["popScopeId"])(),e},Vb={class:"line-style-panel"},Sb={class:"row"},Bb=Ib((function(){return Object(j["createElementVNode"])("div",{style:{flex:"2"}},"线条样式:",-1)})),Lb=Object(j["createTextVNode"])("实线"),Tb=Object(j["createTextVNode"])("虚线"),Mb={class:"row"},_b=Ib((function(){return Object(j["createElementVNode"])("div",{style:{flex:"2"}},"线条颜色:",-1)})),Db={class:"row"},zb=Ib((function(){return Object(j["createElementVNode"])("div",{style:{flex:"2"}},"线条宽度:",-1)})),Ab={class:"row"},Fb=Ib((function(){return Object(j["createElementVNode"])("div",{style:{flex:"2"}},"起点样式:",-1)})),Rb=Object(j["createTextVNode"])("无"),Pb=Object(j["createTextVNode"])("箭头"),Hb=Object(j["createTextVNode"])("圆点"),qb={class:"row"},Xb=Ib((function(){return Object(j["createElementVNode"])("div",{style:{flex:"2"}},"终点样式:",-1)})),Wb=Object(j["createTextVNode"])("无"),Gb=Object(j["createTextVNode"])("箭头"),Ub=Object(j["createTextVNode"])("圆点");function Yb(e,t,n,o,l,c){var a=Object(j["resolveComponent"])("SelectOption"),r=Object(j["resolveComponent"])("Select"),i=Object(j["resolveComponent"])("ColorPicker"),u=Object(j["resolveComponent"])("ColorButton"),d=Object(j["resolveComponent"])("Popover"),s=Object(j["resolveComponent"])("InputNumber"),f=Object(j["resolveComponent"])("Divider"),p=Object(j["resolveComponent"])("ElementShadow");return Object(j["openBlock"])(),Object(j["createElementBlock"])("div",Vb,[Object(j["createElementVNode"])("div",Sb,[Bb,Object(j["createVNode"])(r,{style:{flex:"3"},value:e.handleElement.style,onChange:t[0]||(t[0]=function(t){return e.updateLine({style:t})})},{default:Object(j["withCtx"])((function(){return[Object(j["createVNode"])(a,{value:"solid"},{default:Object(j["withCtx"])((function(){return[Lb]})),_:1}),Object(j["createVNode"])(a,{value:"dashed"},{default:Object(j["withCtx"])((function(){return[Tb]})),_:1})]})),_:1},8,["value"])]),Object(j["createElementVNode"])("div",Mb,[_b,Object(j["createVNode"])(d,{trigger:"click"},{content:Object(j["withCtx"])((function(){return[Object(j["createVNode"])(i,{modelValue:e.handleElement.color,"onUpdate:modelValue":t[1]||(t[1]=function(t){return e.updateLine({color:t})})},null,8,["modelValue"])]})),default:Object(j["withCtx"])((function(){return[Object(j["createVNode"])(u,{color:e.handleElement.color,style:{flex:"3"}},null,8,["color"])]})),_:1})]),Object(j["createElementVNode"])("div",Db,[zb,Object(j["createVNode"])(s,{value:e.handleElement.width,onChange:t[2]||(t[2]=function(t){return e.updateLine({width:t})}),style:{flex:"3"}},null,8,["value"])]),Object(j["createElementVNode"])("div",Ab,[Fb,Object(j["createVNode"])(r,{style:{flex:"3"},value:e.handleElement.points[0],onChange:t[3]||(t[3]=function(t){return e.updateLine({points:[t,e.handleElement.points[1]]})})},{default:Object(j["withCtx"])((function(){return[Object(j["createVNode"])(a,{value:""},{default:Object(j["withCtx"])((function(){return[Rb]})),_:1}),Object(j["createVNode"])(a,{value:"arrow"},{default:Object(j["withCtx"])((function(){return[Pb]})),_:1}),Object(j["createVNode"])(a,{value:"dot"},{default:Object(j["withCtx"])((function(){return[Hb]})),_:1})]})),_:1},8,["value"])]),Object(j["createElementVNode"])("div",qb,[Xb,Object(j["createVNode"])(r,{style:{flex:"3"},value:e.handleElement.points[1],onChange:t[4]||(t[4]=function(t){return e.updateLine({points:[e.handleElement.points[0],t]})})},{default:Object(j["withCtx"])((function(){return[Object(j["createVNode"])(a,{value:""},{default:Object(j["withCtx"])((function(){return[Wb]})),_:1}),Object(j["createVNode"])(a,{value:"arrow"},{default:Object(j["withCtx"])((function(){return[Gb]})),_:1}),Object(j["createVNode"])(a,{value:"dot"},{default:Object(j["withCtx"])((function(){return[Ub]})),_:1})]})),_:1},8,["value"])]),Object(j["createVNode"])(f),Object(j["createVNode"])(p)])}var Zb=Object(j["defineComponent"])({name:"line-style-panel",components:{ElementShadow:gm,ColorButton:tm},setup:function(){var e=Q(),t=Object(y["c"])($()),n=t.handleElement,o=Pe(),l=o.addHistorySnapshot,c=function(t){n.value&&(e.updateElement({id:n.value.id,props:t}),l())};return{handleElement:n,updateLine:c}}});n("04e6");const Jb=Sn()(Zb,[["render",Yb],["__scopeId","data-v-cbc4d7fa"]]);var Kb=Jb,Qb=function(e){return Object(j["pushScopeId"])("data-v-ee2d8b14"),e=e(),Object(j["popScopeId"])(),e},$b={class:"chart-style-panel"},ev=Object(j["createTextVNode"])(" 编辑图表数据 "),tv={class:"row"},nv=Object(j["createTextVNode"])("面积图样式"),ov=Object(j["createTextVNode"])("散点图样式"),lv={class:"row"},cv=Object(j["createTextVNode"])("使用平滑曲线"),av={key:1,class:"row"},rv=Object(j["createTextVNode"])("条形图样式"),iv={key:2,class:"row"},uv=Object(j["createTextVNode"])("环形图样式"),dv={class:"row"},sv=Qb((function(){return Object(j["createElementVNode"])("div",{style:{flex:"2"}},"图例:",-1)})),fv=Object(j["createTextVNode"])("不显示"),pv=Object(j["createTextVNode"])("显示在上方"),mv=Object(j["createTextVNode"])("显示在下方"),bv={class:"row"},vv=Qb((function(){return Object(j["createElementVNode"])("div",{style:{flex:"2"}},"背景填充:",-1)})),hv={class:"row"},Ov=Qb((function(){return Object(j["createElementVNode"])("div",{style:{flex:"2"}},"网格颜色:",-1)})),jv={style:{flex:"2"}},yv={class:"color-btn-wrap",style:{flex:"3"}},gv=["onClick"],xv={class:"preset-themes"},Cv=["onClick"],kv=Object(j["createTextVNode"])("推荐主题"),wv=Object(j["createTextVNode"])(" 添加主题色 ");function Ev(e,t,n,o,l,c){var a=Object(j["resolveComponent"])("IconEdit"),r=Object(j["resolveComponent"])("Button"),i=Object(j["resolveComponent"])("Divider"),u=Object(j["resolveComponent"])("Checkbox"),d=Object(j["resolveComponent"])("SelectOption"),s=Object(j["resolveComponent"])("Select"),f=Object(j["resolveComponent"])("ColorPicker"),p=Object(j["resolveComponent"])("ColorButton"),m=Object(j["resolveComponent"])("Popover"),b=Object(j["resolveComponent"])("IconCloseSmall"),v=Object(j["resolveComponent"])("Tooltip"),h=Object(j["resolveComponent"])("IconPlus"),O=Object(j["resolveComponent"])("ButtonGroup"),y=Object(j["resolveComponent"])("ElementOutline"),g=Object(j["resolveComponent"])("ChartDataEditor"),x=Object(j["resolveComponent"])("Modal");return Object(j["openBlock"])(),Object(j["createElementBlock"])("div",$b,[Object(j["createVNode"])(r,{class:"full-width-btn",onClick:t[0]||(t[0]=function(t){return e.chartDataEditorVisible=!0})},{default:Object(j["withCtx"])((function(){return[Object(j["createVNode"])(a,{class:"btn-icon"}),ev]})),_:1}),Object(j["createVNode"])(i),"line"===e.handleElement.chartType?(Object(j["openBlock"])(),Object(j["createElementBlock"])(j["Fragment"],{key:0},[Object(j["createElementVNode"])("div",tv,[Object(j["createVNode"])(u,{onChange:t[1]||(t[1]=function(t){return e.updateOptions({showArea:t.target.checked})}),checked:e.showArea,style:{flex:"1"}},{default:Object(j["withCtx"])((function(){return[nv]})),_:1},8,["checked"]),Object(j["createVNode"])(u,{onChange:t[2]||(t[2]=function(t){return e.updateOptions({showLine:!t.target.checked})}),checked:!e.showLine,style:{flex:"1"}},{default:Object(j["withCtx"])((function(){return[ov]})),_:1},8,["checked"])]),Object(j["createElementVNode"])("div",lv,[Object(j["createVNode"])(u,{onChange:t[3]||(t[3]=function(t){return e.updateOptions({lineSmooth:t.target.checked})}),checked:e.lineSmooth},{default:Object(j["withCtx"])((function(){return[cv]})),_:1},8,["checked"])])],64)):Object(j["createCommentVNode"])("",!0),"bar"===e.handleElement.chartType?(Object(j["openBlock"])(),Object(j["createElementBlock"])("div",av,[Object(j["createVNode"])(u,{onChange:t[4]||(t[4]=function(t){return e.updateOptions({horizontalBars:t.target.checked})}),checked:e.horizontalBars},{default:Object(j["withCtx"])((function(){return[rv]})),_:1},8,["checked"])])):Object(j["createCommentVNode"])("",!0),"pie"===e.handleElement.chartType?(Object(j["openBlock"])(),Object(j["createElementBlock"])("div",iv,[Object(j["createVNode"])(u,{onChange:t[5]||(t[5]=function(t){return e.updateOptions({donut:t.target.checked})}),checked:e.donut},{default:Object(j["withCtx"])((function(){return[uv]})),_:1},8,["checked"])])):Object(j["createCommentVNode"])("",!0),Object(j["createVNode"])(i),Object(j["createElementVNode"])("div",dv,[sv,Object(j["createVNode"])(s,{style:{flex:"3"},value:e.legend,onChange:t[6]||(t[6]=function(t){return e.updateLegend(t)})},{default:Object(j["withCtx"])((function(){return[Object(j["createVNode"])(d,{value:""},{default:Object(j["withCtx"])((function(){return[fv]})),_:1}),Object(j["createVNode"])(d,{value:"top"},{default:Object(j["withCtx"])((function(){return[pv]})),_:1}),Object(j["createVNode"])(d,{value:"bottom"},{default:Object(j["withCtx"])((function(){return[mv]})),_:1})]})),_:1},8,["value"])]),Object(j["createVNode"])(i),Object(j["createElementVNode"])("div",bv,[vv,Object(j["createVNode"])(m,{trigger:"click"},{content:Object(j["withCtx"])((function(){return[Object(j["createVNode"])(f,{modelValue:e.fill,"onUpdate:modelValue":t[7]||(t[7]=function(t){return e.updateFill(t)})},null,8,["modelValue"])]})),default:Object(j["withCtx"])((function(){return[Object(j["createVNode"])(p,{color:e.fill,style:{flex:"3"}},null,8,["color"])]})),_:1})]),Object(j["createElementVNode"])("div",hv,[Ov,Object(j["createVNode"])(m,{trigger:"click"},{content:Object(j["withCtx"])((function(){return[Object(j["createVNode"])(f,{modelValue:e.gridColor,"onUpdate:modelValue":t[8]||(t[8]=function(t){return e.updateGridColor(t)})},null,8,["modelValue"])]})),default:Object(j["withCtx"])((function(){return[Object(j["createVNode"])(p,{color:e.gridColor,style:{flex:"3"}},null,8,["color"])]})),_:1})]),Object(j["createVNode"])(i),(Object(j["openBlock"])(!0),Object(j["createElementBlock"])(j["Fragment"],null,Object(j["renderList"])(e.themeColor,(function(t,n){return Object(j["openBlock"])(),Object(j["createElementBlock"])("div",{class:"row",key:n},[Object(j["createElementVNode"])("div",jv,Object(j["toDisplayString"])(0===n?"主题配色:":""),1),Object(j["createVNode"])(m,{trigger:"click"},{content:Object(j["withCtx"])((function(){return[Object(j["createVNode"])(f,{modelValue:t,"onUpdate:modelValue":function(t){return e.updateTheme(t,n)}},null,8,["modelValue","onUpdate:modelValue"])]})),default:Object(j["withCtx"])((function(){return[Object(j["createElementVNode"])("div",yv,[Object(j["createVNode"])(p,{color:t,style:{width:"100%"}},null,8,["color"]),Object(j["createVNode"])(v,{mouseLeaveDelay:0,mouseEnterDelay:.5,title:"删除"},{default:Object(j["withCtx"])((function(){return[0!==n?(Object(j["openBlock"])(),Object(j["createElementBlock"])("div",{key:0,class:"delete-color-btn",onClick:Object(j["withModifiers"])((function(t){return e.deleteThemeColor(n)}),["stop"])},[Object(j["createVNode"])(b)],8,gv)):Object(j["createCommentVNode"])("",!0)]})),_:2},1032,["mouseEnterDelay"])])]})),_:2},1024)])})),128)),Object(j["createVNode"])(O,{class:"row"},{default:Object(j["withCtx"])((function(){return[Object(j["createVNode"])(m,{trigger:"click",visible:e.presetThemesVisible,"onUpdate:visible":t[9]||(t[9]=function(t){return e.presetThemesVisible=t})},{content:Object(j["withCtx"])((function(){return[Object(j["createElementVNode"])("div",xv,[(Object(j["openBlock"])(!0),Object(j["createElementBlock"])(j["Fragment"],null,Object(j["renderList"])(e.presetChartThemes,(function(t,n){return Object(j["openBlock"])(),Object(j["createElementBlock"])("div",{class:"preset-theme",key:n,onClick:function(n){return e.applyPresetTheme(t)}},[(Object(j["openBlock"])(!0),Object(j["createElementBlock"])(j["Fragment"],null,Object(j["renderList"])(t,(function(e){return Object(j["openBlock"])(),Object(j["createElementBlock"])("div",{class:"preset-theme-color",key:e,style:Object(j["normalizeStyle"])({backgroundColor:e})},null,4)})),128))],8,Cv)})),128))])]})),default:Object(j["withCtx"])((function(){return[Object(j["createVNode"])(r,{class:"no-padding",style:{flex:"2"}},{default:Object(j["withCtx"])((function(){return[kv]})),_:1})]})),_:1},8,["visible"]),Object(j["createVNode"])(r,{class:"no-padding",disabled:e.themeColor.length>=10,style:{flex:"3"},onClick:t[10]||(t[10]=function(t){return e.addThemeColor()})},{default:Object(j["withCtx"])((function(){return[Object(j["createVNode"])(h,{class:"btn-icon"}),wv]})),_:1},8,["disabled"])]})),_:1}),Object(j["createVNode"])(i),Object(j["createVNode"])(y),Object(j["createVNode"])(x,{visible:e.chartDataEditorVisible,"onUpdate:visible":t[13]||(t[13]=function(t){return e.chartDataEditorVisible=t}),footer:null,centered:"",closable:!1,width:648,destroyOnClose:""},{default:Object(j["withCtx"])((function(){return[Object(j["createVNode"])(g,{data:e.handleElement.data,onClose:t[11]||(t[11]=function(t){return e.chartDataEditorVisible=!1}),onSave:t[12]||(t[12]=function(t){return e.updateData(t)})},null,8,["data"])]})),_:1},8,["visible"])])}var Nv={class:"chart-data-editor"},Iv={class:"editor-content"},Vv={class:"range-box"},Sv=["id","onFocus","onPaste"],Bv={class:"btns"},Lv={class:"left"},Tv=Object(j["createTextVNode"])("清空"),Mv={class:"right"},_v=Object(j["createTextVNode"])("取消"),Dv=Object(j["createTextVNode"])("确认");function zv(e,t,n,o,l,c){var a=Object(j["resolveComponent"])("Button");return Object(j["openBlock"])(),Object(j["createElementBlock"])("div",Nv,[Object(j["createElementVNode"])("div",Iv,[Object(j["createElementVNode"])("div",Vv,[Object(j["createElementVNode"])("div",{class:"temp-range",style:Object(j["normalizeStyle"])({width:e.tempRangeSize.width+"px",height:e.tempRangeSize.height+"px"})},null,4),(Object(j["openBlock"])(!0),Object(j["createElementBlock"])(j["Fragment"],null,Object(j["renderList"])(e.rangeLines,(function(e){return Object(j["openBlock"])(),Object(j["createElementBlock"])("div",{class:Object(j["normalizeClass"])(["range-line",e.type]),key:e.type,style:Object(j["normalizeStyle"])(e.style)},null,6)})),128)),Object(j["createElementVNode"])("div",{class:"resizable",style:Object(j["normalizeStyle"])(e.resizablePointStyle),onMousedown:t[0]||(t[0]=Object(j["withModifiers"])((function(t){return e.changeSelectRange(t)}),["stop"]))},null,36)]),Object(j["createElementVNode"])("table",null,[Object(j["createElementVNode"])("tbody",null,[(Object(j["openBlock"])(),Object(j["createElementBlock"])(j["Fragment"],null,Object(j["renderList"])(31,(function(t){return Object(j["createElementVNode"])("tr",{key:t},[(Object(j["openBlock"])(),Object(j["createElementBlock"])(j["Fragment"],null,Object(j["renderList"])(7,(function(n){return Object(j["createElementVNode"])("td",{key:n,class:Object(j["normalizeClass"])({head:1===n&&t<=e.selectedRange[1]||1===t&&n<=e.selectedRange[0]})},[Object(j["createElementVNode"])("input",{class:Object(j["normalizeClass"])(["item",{selected:t<=e.selectedRange[1]&&n<=e.selectedRange[0]}]),id:"cell-".concat(t-1,"-").concat(n-1),autocomplete:"off",onFocus:function(o){return e.focusCell=[t-1,n-1]},onPaste:function(o){return e.handlePaste(o,t-1,n-1)}},null,42,Sv)],2)})),64))])})),64))])])]),Object(j["createElementVNode"])("div",Bv,[Object(j["createElementVNode"])("div",Lv,[Object(j["createVNode"])(a,{class:"btn",onClick:t[1]||(t[1]=function(t){return e.clear()})},{default:Object(j["withCtx"])((function(){return[Tv]})),_:1})]),Object(j["createElementVNode"])("div",Mv,[Object(j["createVNode"])(a,{class:"btn",onClick:t[2]||(t[2]=function(t){return e.closeEditor()})},{default:Object(j["withCtx"])((function(){return[_v]})),_:1}),Object(j["createVNode"])(a,{type:"primary",class:"btn",onClick:t[3]||(t[3]=function(t){return e.getTableData()}),style:{"margin-left":"10px"}},{default:Object(j["withCtx"])((function(){return[Dv]})),_:1})])])])}var Av=100,Fv=32,Rv=Object(j["defineComponent"])({name:"chart-data-editor",emits:["save","close"],props:{data:{type:Object,required:!0}},setup:function(e,t){var n=t.emit,o=Object(j["ref"])([0,0]),l=Object(j["ref"])({width:0,height:0}),c=Object(j["ref"])(null),a=Object(j["computed"])((function(){var e=o.value[0]*Av,t=o.value[1]*Fv;return[{type:"t",style:{width:e+"px"}},{type:"b",style:{top:t+"px",width:e+"px"}},{type:"l",style:{height:t+"px"}},{type:"r",style:{left:e+"px",height:t+"px"}}]})),r=Object(j["computed"])((function(){var e=o.value[0]*Av,t=o.value[1]*Fv;return{left:e+"px",top:t+"px"}})),i=function(){var t=[],n=e.data,l=n.labels,c=n.legends,a=n.series,r=l.length,i=a.length;t.push([""].concat(Object(W["a"])(c)));for(var u=0;u<r;u++){for(var d=[l[u]],s=0;s<i;s++)d.push(a[s][u]+"");t.push(d)}for(var f=0;f<r+1;f++)for(var p=0;p<i+1;p++){var m=document.querySelector("#cell-".concat(f,"-").concat(p));m&&(m.value=t[f][p]+"")}o.value=[i+1,r+1]};Object(j["onMounted"])(i);var u=function(){if(c.value){var e=Object(At["a"])(c.value,2),t=e[0],n=e[1],o=document.querySelector("#cell-".concat(t+1,"-").concat(n));o&&o.focus()}},d=function(e){var t=e.key.toUpperCase();t===N.ENTER&&u()};Object(j["onMounted"])((function(){document.addEventListener("keydown",d)})),Object(j["onUnmounted"])((function(){document.removeEventListener("keydown",d)}));var s=function(){for(var e=Object(At["a"])(o.value,2),t=e[0],l=e[1],c=[],a=[],r=[],i=1;i<l;i++){var u="类别".concat(i),d=document.querySelector("#cell-".concat(i,"-0"));d&&d.value&&(u=d.value),c.push(u)}for(var s=1;s<t;s++){var f="系列".concat(s),p=document.querySelector("#cell-0-".concat(s));p&&p.value&&(f=p.value),a.push(f)}for(var m=1;m<t;m++){for(var b=[],v=1;v<l;v++){var h=document.querySelector("#cell-".concat(v,"-").concat(m)),O=0;h&&h.value&&+h.value&&(O=+h.value),b.push(O)}r.push(b)}n("save",{labels:c,legends:a,series:r})},f=function(){for(var e=1;e<31;e++)for(var t=1;t<7;t++){var n=document.querySelector("#cell-".concat(e,"-").concat(t));n&&(n.value="")}},p=function(e,t,n){if(e.preventDefault(),e.clipboardData){var o=e.clipboardData.items[0];o&&"string"===o.kind&&"text/plain"===o.type&&o.getAsString((function(e){var o=Ve(e);if("object"!==Object(Fe["a"])(o)){var l=Se(e);if(l)for(var c=t+l.length,a=n+l[0].length,r=t;r<c;r++)for(var i=n;i<a;i++){var u=document.querySelector("#cell-".concat(r,"-").concat(i));u&&(u.value=l[r-t][i-n])}}}))}},m=function(){return n("close")},b=function(e){var t=!0,n=e.pageX,c=e.pageY,a=o.value[0]*Av,r=o.value[1]*Fv;document.onmousemove=function(e){if(t){var o=e.pageX,i=e.pageY,u=o-n,d=i-c,s=a+u,f=r+d;l.value={width:s,height:f}}},document.onmouseup=function(e){t=!1,document.onmousemove=null,document.onmouseup=null;var a=e.pageX,r=e.pageY;if(n!==a||c!==r){var i=l.value.width,u=l.value.height;i%Av>.5*Av&&(i+=Av-i%Av),u%Fv>.5*Fv&&(u+=Fv-u%Fv);var d=Math.round(u/Fv),s=Math.round(i/Av);d<3&&(d=3),s<2&&(s=2),o.value=[s,d],l.value={width:0,height:0}}}};return{tempRangeSize:l,rangeLines:a,resizablePointStyle:r,selectedRange:o,focusCell:c,changeSelectRange:b,getTableData:s,closeEditor:m,clear:f,handlePaste:p}}});n("6856");const Pv=Sn()(Rv,[["render",zv],["__scopeId","data-v-9a62f784"]]);var Hv=Pv,qv=[["#d87c7c","#919e8b","#d7ab82","#6e7074","#61a0a8","#efa18d"],["#dd6b66","#759aa0","#e69d87","#8dc1a9","#ea7e53","#eedd78"],["#516b91","#59c4e6","#edafda","#93b7e3","#a5e7f0","#cbb0e3"],["#893448","#d95850","#eb8146","#ffb248","#f2d643","#ebdba4"],["#4ea397","#22c3aa","#7bd9a5","#d0648a","#f58db2","#f2b3c9"],["#3fb1e3","#6be6c1","#626c91","#a0a7e6","#c4ebad","#96dee8"],["#fc97af","#87f7cf","#f7f494","#72ccff","#f7c5a0","#d4a4eb"],["#c1232b","#27727b","#fcce10","#e87c25","#b5c334","#fe8463"],["#2ec7c9","#b6a2de","#5ab1ef","#ffb980","#d87a80","#8d98b3"],["#e01f54","#001852","#f5e8c8","#b8d2c7","#c6b38e","#a4d8c2"],["#c12e34","#e6b600","#0098d9","#2b821d","#005eaa","#339ca8"],["#8a7ca8","#e098c7","#8fd3e8","#71669e","#cc70af","#7cb4cc"]],Xv=Object(j["defineComponent"])({name:"chart-style-panel",components:{ElementOutline:lm,ChartDataEditor:Hv,ColorButton:tm},setup:function(){var e=$(),t=Q(),n=Object(y["c"])(e),o=n.handleElement,l=n.handleElementId,c=Object(y["c"])(t),a=c.theme,r=Object(j["ref"])(!1),i=Object(j["ref"])(!1),u=Pe(),d=u.addHistorySnapshot,s=Object(j["ref"])(),f=Object(j["ref"])([]),p=Object(j["ref"])(""),m=Object(j["ref"])(""),b=Object(j["ref"])(!0),v=Object(j["ref"])(!0),h=Object(j["ref"])(!1),O=Object(j["ref"])(!1),g=Object(j["ref"])(!1);Object(j["watch"])(o,(function(){if(o.value&&"chart"===o.value.type){if(s.value=o.value.fill||"#000",o.value.options){var e=o.value.options,t=e.lineSmooth,n=e.showLine,l=e.showArea,c=e.horizontalBars,a=e.donut;void 0!==t&&(b.value=t),void 0!==n&&(v.value=n),void 0!==l&&(h.value=l),void 0!==c&&(O.value=c),void 0!==a&&(g.value=a)}f.value=o.value.themeColor,p.value=o.value.gridColor||"rgba(0, 0, 0, 0.4)",m.value=o.value.legend||""}}),{deep:!0,immediate:!0});var x=function(e){t.updateElement({id:l.value,props:e}),d()},C=function(e){r.value=!1,x({data:e})},k=function(e){x({fill:e})},w=function(e){var t=o.value,n=Object(S["a"])(Object(S["a"])({},t.options),e);x({options:n})},E=function(e,t){var n={themeColor:f.value.map((function(n,o){return o===t?e:n}))};x(n)},N=function(){var e={themeColor:[].concat(Object(W["a"])(f.value),[a.value.themeColor])};x(e)},I=function(e){x({themeColor:e}),i.value=!1},V=function(e){var t={themeColor:f.value.filter((function(t,n){return n!==e}))};x(t)},B=function(e){x({gridColor:e})},L=function(e){x({legend:e})},T=function(){return r.value=!0};return Kl.on(sl.OPEN_CHART_DATA_EDITOR,T),Object(j["onUnmounted"])((function(){Kl.off(sl.OPEN_CHART_DATA_EDITOR,T)})),{chartDataEditorVisible:r,presetThemesVisible:i,handleElement:o,updateData:C,fill:s,updateFill:k,lineSmooth:b,showLine:v,showArea:h,horizontalBars:O,donut:g,updateOptions:w,themeColor:f,gridColor:p,legend:m,updateTheme:E,addThemeColor:N,deleteThemeColor:V,updateGridColor:B,updateLegend:L,presetChartThemes:qv,applyPresetTheme:I}}});n("b5ae");const Wv=Sn()(Xv,[["render",Ev],["__scopeId","data-v-ee2d8b14"]]);var Gv=Wv,Uv=function(e){return Object(j["pushScopeId"])("data-v-72e00692"),e=e(),Object(j["popScopeId"])(),e},Yv={class:"table-style-panel"},Zv={class:"row"},Jv=Uv((function(){return Object(j["createElementVNode"])("div",{style:{flex:"2"}},"行数:",-1)})),Kv={class:"set-count",style:{flex:"3"}},Qv={class:"count-text"},$v={class:"row"},eh=Uv((function(){return Object(j["createElementVNode"])("div",{style:{flex:"2"}},"列数:",-1)})),th={class:"set-count",style:{flex:"3"}},nh={class:"count-text"},oh={class:"row theme-switch"},lh=Uv((function(){return Object(j["createElementVNode"])("div",{style:{flex:"2"}},"启用主题表格:",-1)})),ch={class:"switch-wrapper",style:{flex:"3"}},ah={class:"row"},rh=Object(j["createTextVNode"])("标题行"),ih=Object(j["createTextVNode"])("汇总行"),uh={class:"row"},dh=Object(j["createTextVNode"])("第一列"),sh=Object(j["createTextVNode"])("最后一列"),fh={class:"row"},ph=Uv((function(){return Object(j["createElementVNode"])("div",{style:{flex:"2"}},"主题颜色:",-1)}));function mh(e,t,n,o,l,c){var a=Object(j["resolveComponent"])("IconFontSize"),r=Object(j["resolveComponent"])("SelectOption"),i=Object(j["resolveComponent"])("SelectOptGroup"),u=Object(j["resolveComponent"])("Select"),d=Object(j["resolveComponent"])("IconAddText"),s=Object(j["resolveComponent"])("InputGroup"),f=Object(j["resolveComponent"])("ColorPicker"),p=Object(j["resolveComponent"])("IconText"),m=Object(j["resolveComponent"])("Button"),b=Object(j["resolveComponent"])("Tooltip"),v=Object(j["resolveComponent"])("Popover"),h=Object(j["resolveComponent"])("IconFill"),O=Object(j["resolveComponent"])("ButtonGroup"),y=Object(j["resolveComponent"])("IconTextBold"),g=Object(j["resolveComponent"])("CheckboxButton"),x=Object(j["resolveComponent"])("IconTextItalic"),C=Object(j["resolveComponent"])("IconTextUnderline"),k=Object(j["resolveComponent"])("IconStrikethrough"),w=Object(j["resolveComponent"])("CheckboxButtonGroup"),E=Object(j["resolveComponent"])("IconAlignTextLeft"),N=Object(j["resolveComponent"])("RadioButton"),I=Object(j["resolveComponent"])("IconAlignTextCenter"),V=Object(j["resolveComponent"])("IconAlignTextRight"),S=Object(j["resolveComponent"])("RadioGroup"),B=Object(j["resolveComponent"])("Divider"),L=Object(j["resolveComponent"])("ElementOutline"),T=Object(j["resolveComponent"])("IconMinus"),M=Object(j["resolveComponent"])("IconPlus"),_=Object(j["resolveComponent"])("Switch"),D=Object(j["resolveComponent"])("Checkbox"),z=Object(j["resolveComponent"])("ColorButton");return Object(j["openBlock"])(),Object(j["createElementBlock"])("div",Yv,[Object(j["createVNode"])(s,{compact:"",class:"row"},{default:Object(j["withCtx"])((function(){return[Object(j["createVNode"])(u,{style:{flex:"3"},value:e.textAttrs.fontname,onChange:t[0]||(t[0]=function(t){return e.updateTextAttrs({fontname:t})})},{suffixIcon:Object(j["withCtx"])((function(){return[Object(j["createVNode"])(a)]})),default:Object(j["withCtx"])((function(){return[Object(j["createVNode"])(i,{label:"系统字体"},{default:Object(j["withCtx"])((function(){return[(Object(j["openBlock"])(!0),Object(j["createElementBlock"])(j["Fragment"],null,Object(j["renderList"])(e.availableFonts,(function(e){return Object(j["openBlock"])(),Object(j["createBlock"])(r,{key:e.value,value:e.value},{default:Object(j["withCtx"])((function(){return[Object(j["createElementVNode"])("span",{style:Object(j["normalizeStyle"])({fontFamily:e.value})},Object(j["toDisplayString"])(e.label),5)]})),_:2},1032,["value"])})),128))]})),_:1}),Object(j["createVNode"])(i,{label:"在线字体"},{default:Object(j["withCtx"])((function(){return[(Object(j["openBlock"])(!0),Object(j["createElementBlock"])(j["Fragment"],null,Object(j["renderList"])(e.webFonts,(function(e){return Object(j["openBlock"])(),Object(j["createBlock"])(r,{key:e.value,value:e.value},{default:Object(j["withCtx"])((function(){return[Object(j["createElementVNode"])("span",null,Object(j["toDisplayString"])(e.label),1)]})),_:2},1032,["value"])})),128))]})),_:1})]})),_:1},8,["value"]),Object(j["createVNode"])(u,{style:{flex:"2"},value:e.textAttrs.fontsize,onChange:t[1]||(t[1]=function(t){return e.updateTextAttrs({fontsize:t})})},{suffixIcon:Object(j["withCtx"])((function(){return[Object(j["createVNode"])(d)]})),default:Object(j["withCtx"])((function(){return[(Object(j["openBlock"])(!0),Object(j["createElementBlock"])(j["Fragment"],null,Object(j["renderList"])(e.fontSizeOptions,(function(e){return Object(j["openBlock"])(),Object(j["createBlock"])(r,{key:e,value:e},{default:Object(j["withCtx"])((function(){return[Object(j["createTextVNode"])(Object(j["toDisplayString"])(e),1)]})),_:2},1032,["value"])})),128))]})),_:1},8,["value"])]})),_:1}),Object(j["createVNode"])(O,{class:"row"},{default:Object(j["withCtx"])((function(){return[Object(j["createVNode"])(v,{trigger:"click"},{content:Object(j["withCtx"])((function(){return[Object(j["createVNode"])(f,{modelValue:e.textAttrs.color,"onUpdate:modelValue":t[2]||(t[2]=function(t){return e.updateTextAttrs({color:t})})},null,8,["modelValue"])]})),default:Object(j["withCtx"])((function(){return[Object(j["createVNode"])(b,{mouseLeaveDelay:0,mouseEnterDelay:.5,title:"文字颜色"},{default:Object(j["withCtx"])((function(){return[Object(j["createVNode"])(m,{class:"text-color-btn",style:{flex:"1"}},{default:Object(j["withCtx"])((function(){return[Object(j["createVNode"])(p),Object(j["createElementVNode"])("div",{class:"text-color-block",style:Object(j["normalizeStyle"])({backgroundColor:e.textAttrs.color})},null,4)]})),_:1})]})),_:1},8,["mouseEnterDelay"])]})),_:1}),Object(j["createVNode"])(v,{trigger:"click"},{content:Object(j["withCtx"])((function(){return[Object(j["createVNode"])(f,{modelValue:e.textAttrs.backcolor,"onUpdate:modelValue":t[3]||(t[3]=function(t){return e.updateTextAttrs({backcolor:t})})},null,8,["modelValue"])]})),default:Object(j["withCtx"])((function(){return[Object(j["createVNode"])(b,{mouseLeaveDelay:0,mouseEnterDelay:.5,title:"单元格填充"},{default:Object(j["withCtx"])((function(){return[Object(j["createVNode"])(m,{class:"text-color-btn",style:{flex:"1"}},{default:Object(j["withCtx"])((function(){return[Object(j["createVNode"])(h),Object(j["createElementVNode"])("div",{class:"text-color-block",style:Object(j["normalizeStyle"])({backgroundColor:e.textAttrs.backcolor})},null,4)]})),_:1})]})),_:1},8,["mouseEnterDelay"])]})),_:1})]})),_:1}),Object(j["createVNode"])(w,{class:"row"},{default:Object(j["withCtx"])((function(){return[Object(j["createVNode"])(b,{mouseLeaveDelay:0,mouseEnterDelay:.5,title:"加粗"},{default:Object(j["withCtx"])((function(){return[Object(j["createVNode"])(g,{style:{flex:"1"},checked:e.textAttrs.bold,onClick:t[4]||(t[4]=function(t){return e.updateTextAttrs({bold:!e.textAttrs.bold})})},{default:Object(j["withCtx"])((function(){return[Object(j["createVNode"])(y)]})),_:1},8,["checked"])]})),_:1},8,["mouseEnterDelay"]),Object(j["createVNode"])(b,{mouseLeaveDelay:0,mouseEnterDelay:.5,title:"斜体"},{default:Object(j["withCtx"])((function(){return[Object(j["createVNode"])(g,{style:{flex:"1"},checked:e.textAttrs.em,onClick:t[5]||(t[5]=function(t){return e.updateTextAttrs({em:!e.textAttrs.em})})},{default:Object(j["withCtx"])((function(){return[Object(j["createVNode"])(x)]})),_:1},8,["checked"])]})),_:1},8,["mouseEnterDelay"]),Object(j["createVNode"])(b,{mouseLeaveDelay:0,mouseEnterDelay:.5,title:"下划线"},{default:Object(j["withCtx"])((function(){return[Object(j["createVNode"])(g,{style:{flex:"1"},checked:e.textAttrs.underline,onClick:t[6]||(t[6]=function(t){return e.updateTextAttrs({underline:!e.textAttrs.underline})})},{default:Object(j["withCtx"])((function(){return[Object(j["createVNode"])(C)]})),_:1},8,["checked"])]})),_:1},8,["mouseEnterDelay"]),Object(j["createVNode"])(b,{mouseLeaveDelay:0,mouseEnterDelay:.5,title:"删除线"},{default:Object(j["withCtx"])((function(){return[Object(j["createVNode"])(g,{style:{flex:"1"},checked:e.textAttrs.strikethrough,onClick:t[7]||(t[7]=function(t){return e.updateTextAttrs({strikethrough:!e.textAttrs.strikethrough})})},{default:Object(j["withCtx"])((function(){return[Object(j["createVNode"])(k)]})),_:1},8,["checked"])]})),_:1},8,["mouseEnterDelay"])]})),_:1}),Object(j["createVNode"])(S,{class:"row","button-style":"solid",value:e.textAttrs.align,onChange:t[8]||(t[8]=function(t){return e.updateTextAttrs({align:t.target.value})})},{default:Object(j["withCtx"])((function(){return[Object(j["createVNode"])(b,{mouseLeaveDelay:0,mouseEnterDelay:.5,title:"左对齐"},{default:Object(j["withCtx"])((function(){return[Object(j["createVNode"])(N,{value:"left",style:{flex:"1"}},{default:Object(j["withCtx"])((function(){return[Object(j["createVNode"])(E)]})),_:1})]})),_:1},8,["mouseEnterDelay"]),Object(j["createVNode"])(b,{mouseLeaveDelay:0,mouseEnterDelay:.5,title:"居中"},{default:Object(j["withCtx"])((function(){return[Object(j["createVNode"])(N,{value:"center",style:{flex:"1"}},{default:Object(j["withCtx"])((function(){return[Object(j["createVNode"])(I)]})),_:1})]})),_:1},8,["mouseEnterDelay"]),Object(j["createVNode"])(b,{mouseLeaveDelay:0,mouseEnterDelay:.5,title:"右对齐"},{default:Object(j["withCtx"])((function(){return[Object(j["createVNode"])(N,{value:"right",style:{flex:"1"}},{default:Object(j["withCtx"])((function(){return[Object(j["createVNode"])(V)]})),_:1})]})),_:1},8,["mouseEnterDelay"])]})),_:1},8,["value"]),Object(j["createVNode"])(B),Object(j["createVNode"])(L,{fixed:!0}),Object(j["createVNode"])(B),Object(j["createElementVNode"])("div",Zv,[Jv,Object(j["createElementVNode"])("div",Kv,[Object(j["createVNode"])(m,{class:"btn",disabled:e.rowCount<=1,onClick:t[9]||(t[9]=function(t){return e.setTableRow(e.rowCount-1)})},{default:Object(j["withCtx"])((function(){return[Object(j["createVNode"])(T)]})),_:1},8,["disabled"]),Object(j["createElementVNode"])("div",Qv,Object(j["toDisplayString"])(e.rowCount),1),Object(j["createVNode"])(m,{class:"btn",disabled:e.rowCount>=30,onClick:t[10]||(t[10]=function(t){return e.setTableRow(e.rowCount+1)})},{default:Object(j["withCtx"])((function(){return[Object(j["createVNode"])(M)]})),_:1},8,["disabled"])])]),Object(j["createElementVNode"])("div",$v,[eh,Object(j["createElementVNode"])("div",th,[Object(j["createVNode"])(m,{class:"btn",disabled:e.colCount<=1,onClick:t[11]||(t[11]=function(t){return e.setTableCol(e.colCount-1)})},{default:Object(j["withCtx"])((function(){return[Object(j["createVNode"])(T)]})),_:1},8,["disabled"]),Object(j["createElementVNode"])("div",nh,Object(j["toDisplayString"])(e.colCount),1),Object(j["createVNode"])(m,{class:"btn",disabled:e.colCount>=30,onClick:t[12]||(t[12]=function(t){return e.setTableCol(e.colCount+1)})},{default:Object(j["withCtx"])((function(){return[Object(j["createVNode"])(M)]})),_:1},8,["disabled"])])]),Object(j["createVNode"])(B),Object(j["createElementVNode"])("div",oh,[lh,Object(j["createElementVNode"])("div",ch,[Object(j["createVNode"])(_,{checked:e.hasTheme,onChange:t[13]||(t[13]=function(t){return e.toggleTheme(t)})},null,8,["checked"])])]),e.hasTheme?(Object(j["openBlock"])(),Object(j["createElementBlock"])(j["Fragment"],{key:0},[Object(j["createElementVNode"])("div",ah,[Object(j["createVNode"])(D,{onChange:t[14]||(t[14]=function(t){return e.updateTheme({rowHeader:t.target.checked})}),checked:e.theme.rowHeader,style:{flex:"1"}},{default:Object(j["withCtx"])((function(){return[rh]})),_:1},8,["checked"]),Object(j["createVNode"])(D,{onChange:t[15]||(t[15]=function(t){return e.updateTheme({rowFooter:t.target.checked})}),checked:e.theme.rowFooter,style:{flex:"1"}},{default:Object(j["withCtx"])((function(){return[ih]})),_:1},8,["checked"])]),Object(j["createElementVNode"])("div",uh,[Object(j["createVNode"])(D,{onChange:t[16]||(t[16]=function(t){return e.updateTheme({colHeader:t.target.checked})}),checked:e.theme.colHeader,style:{flex:"1"}},{default:Object(j["withCtx"])((function(){return[dh]})),_:1},8,["checked"]),Object(j["createVNode"])(D,{onChange:t[17]||(t[17]=function(t){return e.updateTheme({colFooter:t.target.checked})}),checked:e.theme.colFooter,style:{flex:"1"}},{default:Object(j["withCtx"])((function(){return[sh]})),_:1},8,["checked"])]),Object(j["createElementVNode"])("div",fh,[ph,Object(j["createVNode"])(v,{trigger:"click"},{content:Object(j["withCtx"])((function(){return[Object(j["createVNode"])(f,{modelValue:e.theme.color,"onUpdate:modelValue":t[18]||(t[18]=function(t){return e.updateTheme({color:t})})},null,8,["modelValue"])]})),default:Object(j["withCtx"])((function(){return[Object(j["createVNode"])(z,{color:e.theme.color,style:{flex:"3"}},null,8,["color"])]})),_:1})])],64)):Object(j["createCommentVNode"])("",!0)])}var bh=V,vh=Object(j["defineComponent"])({name:"table-style-panel",components:{ElementOutline:lm,ColorButton:tm},setup:function(){var e=Q(),t=Object(y["c"])($()),n=t.handleElement,o=t.handleElementId,l=t.selectedTableCells,c=t.availableFonts,a=Object(j["computed"])((function(){return e.theme.themeColor})),r=["12px","14px","16px","18px","20px","22px","24px","28px","32px"],i=Object(j["ref"])({bold:!1,em:!1,underline:!1,strikethrough:!1,color:"#000",backcolor:"#000",fontsize:"12px",fontname:"微软雅黑",align:"left"}),u=Object(j["ref"])(),d=Object(j["ref"])(!1),s=Object(j["ref"])(0),f=Object(j["ref"])(0),p=Object(j["ref"])(0),m=Object(j["ref"])(0);Object(j["watch"])(n,(function(){n.value&&"table"===n.value.type&&(u.value=n.value.theme,d.value=!!u.value,s.value=n.value.data.length,f.value=n.value.data[0].length,p.value=n.value.data.length,m.value=n.value.data[0].length)}),{deep:!0,immediate:!0});var b=Pe(),v=b.addHistorySnapshot,h=function(){if(n.value&&"table"===n.value.type){var e=0,t=0;if(l.value.length){var o=l.value[0];e=+o.split("_")[0],t=+o.split("_")[1]}var c=n.value.data[e][t].style;i.value=c?{bold:!!c.bold,em:!!c.em,underline:!!c.underline,strikethrough:!!c.strikethrough,color:c.color||"#000",backcolor:c.backcolor||"#000",fontsize:c.fontsize||"12px",fontname:c.fontname||"微软雅黑",align:c.align||"left"}:{bold:!1,em:!1,underline:!1,strikethrough:!1,color:"#000",backcolor:"#000",fontsize:"12px",fontname:"微软雅黑",align:"left"}}};Object(j["onMounted"])((function(){l.value.length&&h()})),Object(j["watch"])(l,h);var O=function(t){e.updateElement({id:o.value,props:t}),v()},g=function(e){for(var t=n.value,o=JSON.parse(JSON.stringify(t.data)),c=0;c<o.length;c++)for(var a=0;a<o[c].length;a++)if(!l.value.length||l.value.includes("".concat(c,"_").concat(a))){var r=o[c][a].style||{};o[c][a].style=Object(S["a"])(Object(S["a"])({},r),e)}O({data:o}),h()},x=function(e){if(u.value){var t=Object(S["a"])(Object(S["a"])({},u.value),e);O({theme:t})}},C=function(t){if(t){var n={theme:{color:a.value,rowHeader:!0,rowFooter:!1,colHeader:!1,colFooter:!1}};O(n)}else e.removeElementProps({id:o.value,propName:"theme"}),v()},k=function(e){var t=n.value,o=t.data.length;if(e>o){var l=new Array(f.value).fill({id:Oe(),colspan:1,rowspan:1,text:""}),c=new Array(e-o).fill(l),a=JSON.parse(JSON.stringify(t.data));a.push.apply(a,Object(W["a"])(c)),O({data:a})}else{var r=t.data.slice(0,e);O({data:r})}},w=function(e){var t=n.value,o=t.data[0].length,l=t.data,c=t.colWidths.map((function(e){return e*t.width}));if(e>o){var a;l=l.map((function(t){var n=new Array(e-o).fill({id:Oe(),colspan:1,rowspan:1,text:""});return t.push.apply(t,Object(W["a"])(n)),t}));var r=new Array(e-o).fill(100);(a=c).push.apply(a,Object(W["a"])(r))}else l=l.map((function(t){return t.slice(0,e)})),c=c.slice(0,e);var i=c.reduce((function(e,t){return e+t})),u=c.map((function(e){return e/i})),d={width:i,data:l,colWidths:u};O(d)};return{handleElement:n,availableFonts:c,fontSizeOptions:r,textAttrs:i,updateTextAttrs:g,theme:u,rowCount:s,colCount:f,minRowCount:p,minColCount:m,hasTheme:d,toggleTheme:C,updateTheme:x,setTableRow:k,setTableCol:w,webFonts:bh}}});n("eacc");const hh=Sn()(vh,[["render",mh],["__scopeId","data-v-72e00692"]]);var Oh=hh,jh=function(e){return Object(j["pushScopeId"])("data-v-69f903b1"),e=e(),Object(j["popScopeId"])(),e},yh={class:"latex-style-panel"},gh={class:"row"},xh=Object(j["createTextVNode"])("编辑 LaTeX"),Ch={class:"row"},kh=jh((function(){return Object(j["createElementVNode"])("div",{style:{flex:"2"}},"颜色:",-1)})),wh={class:"row"},Eh=jh((function(){return Object(j["createElementVNode"])("div",{style:{flex:"2"}},"粗细:",-1)}));function Nh(e,t,n,o,l,c){var a=Object(j["resolveComponent"])("Button"),r=Object(j["resolveComponent"])("Divider"),i=Object(j["resolveComponent"])("ColorPicker"),u=Object(j["resolveComponent"])("ColorButton"),d=Object(j["resolveComponent"])("Popover"),s=Object(j["resolveComponent"])("InputNumber"),f=Object(j["resolveComponent"])("LaTeXEditor"),p=Object(j["resolveComponent"])("Modal");return Object(j["openBlock"])(),Object(j["createElementBlock"])("div",yh,[Object(j["createElementVNode"])("div",gh,[Object(j["createVNode"])(a,{style:{flex:"1"},onClick:t[0]||(t[0]=function(t){return e.latexEditorVisible=!0})},{default:Object(j["withCtx"])((function(){return[xh]})),_:1})]),Object(j["createVNode"])(r),Object(j["createElementVNode"])("div",Ch,[kh,Object(j["createVNode"])(d,{trigger:"click"},{content:Object(j["withCtx"])((function(){return[Object(j["createVNode"])(i,{modelValue:e.handleElement.color,"onUpdate:modelValue":t[1]||(t[1]=function(t){return e.updateLatex({color:t})})},null,8,["modelValue"])]})),default:Object(j["withCtx"])((function(){return[Object(j["createVNode"])(u,{color:e.handleElement.color,style:{flex:"3"}},null,8,["color"])]})),_:1})]),Object(j["createElementVNode"])("div",wh,[Eh,Object(j["createVNode"])(s,{min:1,max:3,value:e.handleElement.strokeWidth,onChange:t[2]||(t[2]=function(t){return e.updateLatex({strokeWidth:t})}),style:{flex:"3"}},null,8,["value"])]),Object(j["createVNode"])(p,{visible:e.latexEditorVisible,"onUpdate:visible":t[5]||(t[5]=function(t){return e.latexEditorVisible=t}),footer:null,centered:"",width:880,destroyOnClose:""},{default:Object(j["withCtx"])((function(){return[Object(j["createVNode"])(f,{value:e.handleElement.latex,onClose:t[3]||(t[3]=function(t){return e.latexEditorVisible=!1}),onUpdate:t[4]||(t[4]=function(t){e.updateLatexData(t),e.latexEditorVisible=!1})},null,8,["value"])]})),_:1},8,["visible"])])}var Ih=Object(j["defineComponent"])({name:"latex-style-panel",components:{ColorButton:tm,LaTeXEditor:Wf},setup:function(){var e=Q(),t=Object(y["c"])($()),n=t.handleElement,o=Object(j["ref"])(!1),l=Pe(),c=l.addHistorySnapshot,a=function(t){n.value&&(e.updateElement({id:n.value.id,props:t}),c())},r=function(e){a({path:e.path,latex:e.latex,width:e.w,height:e.h,viewBox:[e.w,e.h]})},i=function(){return o.value=!0};return Kl.on(sl.OPEN_LATEX_EDITOR,i),Object(j["onUnmounted"])((function(){Kl.off(sl.OPEN_LATEX_EDITOR,i)})),{handleElement:n,latexEditorVisible:o,updateLatex:a,updateLatexData:r}}});n("e5a8");const Vh=Sn()(Ih,[["render",Nh],["__scopeId","data-v-69f903b1"]]);var Sh=Vh,Bh=function(e){return Object(j["pushScopeId"])("data-v-61bcaa2a"),e=e(),Object(j["popScopeId"])(),e},Lh={class:"video-style-panel"},Th=Bh((function(){return Object(j["createElementVNode"])("div",{class:"title"},"视频预览封面",-1)})),Mh={class:"background-image-wrapper"},_h={class:"background-image"},Dh={class:"row"},zh=Object(j["createTextVNode"])("重置封面");function Ah(e,t,n,o,l,c){var a=Object(j["resolveComponent"])("IconPlus"),r=Object(j["resolveComponent"])("FileInput"),i=Object(j["resolveComponent"])("Button");return Object(j["openBlock"])(),Object(j["createElementBlock"])("div",Lh,[Th,Object(j["createElementVNode"])("div",Mh,[Object(j["createVNode"])(r,{onChange:t[0]||(t[0]=function(t){return e.setVideoPoster(t)})},{default:Object(j["withCtx"])((function(){return[Object(j["createElementVNode"])("div",_h,[Object(j["createElementVNode"])("div",{class:"content",style:Object(j["normalizeStyle"])({backgroundImage:"url(".concat(e.handleElement.poster,")")})},[Object(j["createVNode"])(a)],4)])]})),_:1})]),Object(j["createElementVNode"])("div",Dh,[Object(j["createVNode"])(i,{style:{flex:"1"},onClick:t[1]||(t[1]=function(t){return e.updateVideo({poster:""})})},{default:Object(j["withCtx"])((function(){return[zh]})),_:1})])])}var Fh=Object(j["defineComponent"])({name:"video-style-panel",setup:function(){var e=Q(),t=Object(y["c"])($()),n=t.handleElement,o=Pe(),l=o.addHistorySnapshot,c=function(t){n.value&&(e.updateElement({id:n.value.id,props:t}),l())},a=function(e){var t=e[0];t&&qe(t).then((function(e){return c({poster:e})}))};return{handleElement:n,updateVideo:c,setVideoPoster:a}}});n("c43a");const Rh=Sn()(Fh,[["render",Ah],["__scopeId","data-v-61bcaa2a"]]);var Ph=Rh,Hh=function(e){return Object(j["pushScopeId"])("data-v-80767a46"),e=e(),Object(j["popScopeId"])(),e},qh={class:"audio-style-panel"},Xh={class:"row"},Wh=Hh((function(){return Object(j["createElementVNode"])("div",{style:{flex:"2"}},"图标颜色:",-1)})),Gh={class:"row switch-row"},Uh=Hh((function(){return Object(j["createElementVNode"])("div",{style:{flex:"2"}},"自动播放:",-1)})),Yh={class:"switch-wrapper",style:{flex:"3"}},Zh={class:"row switch-row"},Jh=Hh((function(){return Object(j["createElementVNode"])("div",{style:{flex:"2"}},"循环播放:",-1)})),Kh={class:"switch-wrapper",style:{flex:"3"}};function Qh(e,t,n,o,l,c){var a=Object(j["resolveComponent"])("ColorPicker"),r=Object(j["resolveComponent"])("ColorButton"),i=Object(j["resolveComponent"])("Popover"),u=Object(j["resolveComponent"])("Switch");return Object(j["openBlock"])(),Object(j["createElementBlock"])("div",qh,[Object(j["createElementVNode"])("div",Xh,[Wh,Object(j["createVNode"])(i,{trigger:"click"},{content:Object(j["withCtx"])((function(){return[Object(j["createVNode"])(a,{modelValue:e.handleElement.color,"onUpdate:modelValue":t[0]||(t[0]=function(t){return e.updateAudio({color:t})})},null,8,["modelValue"])]})),default:Object(j["withCtx"])((function(){return[Object(j["createVNode"])(r,{color:e.handleElement.color,style:{flex:"3"}},null,8,["color"])]})),_:1})]),Object(j["createElementVNode"])("div",Gh,[Uh,Object(j["createElementVNode"])("div",Yh,[Object(j["createVNode"])(u,{checked:e.handleElement.autoplay,onChange:t[1]||(t[1]=function(t){return e.updateAudio({autoplay:t})})},null,8,["checked"])])]),Object(j["createElementVNode"])("div",Zh,[Jh,Object(j["createElementVNode"])("div",Kh,[Object(j["createVNode"])(u,{checked:e.handleElement.loop,onChange:t[2]||(t[2]=function(t){return e.updateAudio({loop:t})})},null,8,["checked"])])])])}var $h=Object(j["defineComponent"])({name:"audio-style-panel",components:{ColorButton:tm},setup:function(){var e=Q(),t=Object(y["c"])($()),n=t.handleElement,o=Pe(),l=o.addHistorySnapshot,c=function(t){n.value&&(e.updateElement({id:n.value.id,props:t}),l())};return{handleElement:n,updateAudio:c}}});n("d129");const eO=Sn()($h,[["render",Qh],["__scopeId","data-v-80767a46"]]);var tO=eO,nO=Object(j["defineComponent"])({name:"element-style-panel",setup:function(){var e=Object(y["c"])($()),t=e.handleElement,n=Object(j["computed"])((function(){var e;if(!t.value)return null;var n=(e={},Object(ce["a"])(e,to.TEXT,Em),Object(ce["a"])(e,to.IMAGE,ib),Object(ce["a"])(e,to.SHAPE,Nb),Object(ce["a"])(e,to.LINE,Kb),Object(ce["a"])(e,to.CHART,Gv),Object(ce["a"])(e,to.TABLE,Oh),Object(ce["a"])(e,to.LATEX,Sh),Object(ce["a"])(e,to.VIDEO,Ph),Object(ce["a"])(e,to.AUDIO,tO),e);return n[t.value.type]||null}));return{handleElement:t,currentPanelComponent:n}}});const oO=Sn()(nO,[["render",yp]]);var lO=oO,cO=function(e){return Object(j["pushScopeId"])("data-v-3476ee65"),e=e(),Object(j["popScopeId"])(),e},aO={class:"element-positopn-panel"},rO=cO((function(){return Object(j["createElementVNode"])("div",{class:"title"},"层级:",-1)})),iO=Object(j["createTextVNode"])(" 置于顶层"),uO=Object(j["createTextVNode"])(" 置于底层"),dO=Object(j["createTextVNode"])(" 上移一层"),sO=Object(j["createTextVNode"])(" 下移一层"),fO=cO((function(){return Object(j["createElementVNode"])("div",{class:"title"},"对齐:",-1)})),pO={class:"row"},mO=cO((function(){return Object(j["createElementVNode"])("div",{style:{flex:"3"}},"位置:",-1)})),bO=cO((function(){return Object(j["createElementVNode"])("div",{style:{flex:"1"}},null,-1)})),vO=Object(j["createStaticVNode"])('<div class="row" data-v-3476ee65><div style="flex:3;" data-v-3476ee65></div><div style="flex:4;" class="label" data-v-3476ee65>X</div><div style="flex:1;" data-v-3476ee65></div><div style="flex:4;" class="label" data-v-3476ee65>Y</div></div>',1),hO={class:"row"},OO=cO((function(){return Object(j["createElementVNode"])("div",{style:{flex:"3"}},"大小:",-1)})),jO={key:1,style:{flex:"1"}},yO=Object(j["createStaticVNode"])('<div class="row" data-v-3476ee65><div style="flex:3;" data-v-3476ee65></div><div style="flex:4;" class="label" data-v-3476ee65>宽</div><div style="flex:1;" data-v-3476ee65></div><div style="flex:4;" class="label" data-v-3476ee65>高</div></div>',1),gO={class:"row"},xO=cO((function(){return Object(j["createElementVNode"])("div",{style:{flex:"3"}},"旋转:",-1)})),CO=cO((function(){return Object(j["createElementVNode"])("div",{style:{flex:"1"}},null,-1)}));function kO(e,t,n,o,l,c){var a=Object(j["resolveComponent"])("IconSendToBack"),r=Object(j["resolveComponent"])("Button"),i=Object(j["resolveComponent"])("IconBringToFrontOne"),u=Object(j["resolveComponent"])("ButtonGroup"),d=Object(j["resolveComponent"])("IconBringToFront"),s=Object(j["resolveComponent"])("IconSentToBack"),f=Object(j["resolveComponent"])("Divider"),p=Object(j["resolveComponent"])("IconAlignLeft"),m=Object(j["resolveComponent"])("Tooltip"),b=Object(j["resolveComponent"])("IconAlignVertically"),v=Object(j["resolveComponent"])("IconAlignRight"),h=Object(j["resolveComponent"])("IconAlignTop"),O=Object(j["resolveComponent"])("IconAlignHorizontally"),y=Object(j["resolveComponent"])("IconAlignBottom"),g=Object(j["resolveComponent"])("InputNumber"),x=Object(j["resolveComponent"])("IconLock"),C=Object(j["resolveComponent"])("IconUnlock"),k=Object(j["resolveComponent"])("IconRotate");return Object(j["openBlock"])(),Object(j["createElementBlock"])("div",aO,[rO,Object(j["createVNode"])(u,{class:"row"},{default:Object(j["withCtx"])((function(){return[Object(j["createVNode"])(r,{style:{flex:"1"},onClick:t[0]||(t[0]=function(t){return e.orderElement(e.handleElement,"top")})},{default:Object(j["withCtx"])((function(){return[Object(j["createVNode"])(a,{class:"btn-icon"}),iO]})),_:1}),Object(j["createVNode"])(r,{style:{flex:"1"},onClick:t[1]||(t[1]=function(t){return e.orderElement(e.handleElement,"bottom")})},{default:Object(j["withCtx"])((function(){return[Object(j["createVNode"])(i,{class:"btn-icon"}),uO]})),_:1})]})),_:1}),Object(j["createVNode"])(u,{class:"row"},{default:Object(j["withCtx"])((function(){return[Object(j["createVNode"])(r,{style:{flex:"1"},onClick:t[2]||(t[2]=function(t){return e.orderElement(e.handleElement,"up")})},{default:Object(j["withCtx"])((function(){return[Object(j["createVNode"])(d,{class:"btn-icon"}),dO]})),_:1}),Object(j["createVNode"])(r,{style:{flex:"1"},onClick:t[3]||(t[3]=function(t){return e.orderElement(e.handleElement,"down")})},{default:Object(j["withCtx"])((function(){return[Object(j["createVNode"])(s,{class:"btn-icon"}),sO]})),_:1})]})),_:1}),Object(j["createVNode"])(f),fO,Object(j["createVNode"])(u,{class:"row"},{default:Object(j["withCtx"])((function(){return[Object(j["createVNode"])(m,{mouseLeaveDelay:0,mouseEnterDelay:.5,title:"左对齐"},{default:Object(j["withCtx"])((function(){return[Object(j["createVNode"])(r,{style:{flex:"1"},onClick:t[4]||(t[4]=function(t){return e.alignElementToCanvas("left")})},{default:Object(j["withCtx"])((function(){return[Object(j["createVNode"])(p)]})),_:1})]})),_:1},8,["mouseEnterDelay"]),Object(j["createVNode"])(m,{mouseLeaveDelay:0,mouseEnterDelay:.5,title:"水平居中"},{default:Object(j["withCtx"])((function(){return[Object(j["createVNode"])(r,{style:{flex:"1"},onClick:t[5]||(t[5]=function(t){return e.alignElementToCanvas("horizontal")})},{default:Object(j["withCtx"])((function(){return[Object(j["createVNode"])(b)]})),_:1})]})),_:1},8,["mouseEnterDelay"]),Object(j["createVNode"])(m,{mouseLeaveDelay:0,mouseEnterDelay:.5,title:"右对齐"},{default:Object(j["withCtx"])((function(){return[Object(j["createVNode"])(r,{style:{flex:"1"},onClick:t[6]||(t[6]=function(t){return e.alignElementToCanvas("right")})},{default:Object(j["withCtx"])((function(){return[Object(j["createVNode"])(v)]})),_:1})]})),_:1},8,["mouseEnterDelay"])]})),_:1}),Object(j["createVNode"])(u,{class:"row"},{default:Object(j["withCtx"])((function(){return[Object(j["createVNode"])(m,{mouseLeaveDelay:0,mouseEnterDelay:.5,title:"上对齐"},{default:Object(j["withCtx"])((function(){return[Object(j["createVNode"])(r,{style:{flex:"1"},onClick:t[7]||(t[7]=function(t){return e.alignElementToCanvas("top")})},{default:Object(j["withCtx"])((function(){return[Object(j["createVNode"])(h)]})),_:1})]})),_:1},8,["mouseEnterDelay"]),Object(j["createVNode"])(m,{mouseLeaveDelay:0,mouseEnterDelay:.5,title:"垂直居中"},{default:Object(j["withCtx"])((function(){return[Object(j["createVNode"])(r,{style:{flex:"1"},onClick:t[8]||(t[8]=function(t){return e.alignElementToCanvas("vertical")})},{default:Object(j["withCtx"])((function(){return[Object(j["createVNode"])(O)]})),_:1})]})),_:1},8,["mouseEnterDelay"]),Object(j["createVNode"])(m,{mouseLeaveDelay:0,mouseEnterDelay:.5,title:"下对齐"},{default:Object(j["withCtx"])((function(){return[Object(j["createVNode"])(r,{style:{flex:"1"},onClick:t[9]||(t[9]=function(t){return e.alignElementToCanvas("bottom")})},{default:Object(j["withCtx"])((function(){return[Object(j["createVNode"])(y)]})),_:1})]})),_:1},8,["mouseEnterDelay"])]})),_:1}),Object(j["createVNode"])(f),Object(j["createElementVNode"])("div",pO,[mO,Object(j["createVNode"])(g,{step:5,value:e.left,onChange:t[10]||(t[10]=function(t){return e.updateLeft(t)}),style:{flex:"4"}},null,8,["value"]),bO,Object(j["createVNode"])(g,{step:5,value:e.top,onChange:t[11]||(t[11]=function(t){return e.updateTop(t)}),style:{flex:"4"}},null,8,["value"])]),vO,"line"!==e.handleElement.type?(Object(j["openBlock"])(),Object(j["createElementBlock"])(j["Fragment"],{key:0},[Object(j["createElementVNode"])("div",hO,[OO,Object(j["createVNode"])(g,{min:e.minSize,max:1500,step:5,value:e.width,onChange:t[12]||(t[12]=function(t){return e.updateWidth(t)}),style:{flex:"4"}},null,8,["min","value"]),["image","shape","audio"].includes(e.handleElement.type)?(Object(j["openBlock"])(),Object(j["createElementBlock"])(j["Fragment"],{key:0},[e.fixedRatio?(Object(j["openBlock"])(),Object(j["createBlock"])(m,{key:0,mouseLeaveDelay:0,mouseEnterDelay:.5,title:"解除宽高比锁定"},{default:Object(j["withCtx"])((function(){return[Object(j["createVNode"])(x,{style:{flex:"1"},class:"icon-btn",onClick:t[13]||(t[13]=function(t){return e.updateFixedRatio(!1)})})]})),_:1},8,["mouseEnterDelay"])):(Object(j["openBlock"])(),Object(j["createBlock"])(m,{key:1,mouseLeaveDelay:0,mouseEnterDelay:.5,title:"宽高比锁定"},{default:Object(j["withCtx"])((function(){return[Object(j["createVNode"])(C,{style:{flex:"1"},class:"icon-btn",onClick:t[14]||(t[14]=function(t){return e.updateFixedRatio(!0)})})]})),_:1},8,["mouseEnterDelay"]))],64)):(Object(j["openBlock"])(),Object(j["createElementBlock"])("div",jO)),Object(j["createVNode"])(g,{min:e.minSize,max:800,step:5,disabled:"text"===e.handleElement.type,value:e.height,onChange:t[15]||(t[15]=function(t){return e.updateHeight(t)}),style:{flex:"4"}},null,8,["min","disabled","value"])]),yO],64)):Object(j["createCommentVNode"])("",!0),["line","video","audio"].includes(e.handleElement.type)?Object(j["createCommentVNode"])("",!0):(Object(j["openBlock"])(),Object(j["createElementBlock"])(j["Fragment"],{key:1},[Object(j["createVNode"])(f),Object(j["createElementVNode"])("div",gO,[xO,Object(j["createVNode"])(m,{mouseLeaveDelay:0,mouseEnterDelay:.5,title:"逆时针旋转"},{default:Object(j["withCtx"])((function(){return[Object(j["createVNode"])(k,{class:"icon-btn",onClick:t[16]||(t[16]=function(t){return e.updateRotate45("-")}),style:{flex:"2"}})]})),_:1},8,["mouseEnterDelay"]),Object(j["createVNode"])(m,{mouseLeaveDelay:0,mouseEnterDelay:.5,title:"顺时针旋转"},{default:Object(j["withCtx"])((function(){return[Object(j["createVNode"])(k,{class:"icon-btn",onClick:t[17]||(t[17]=function(t){return e.updateRotate45("+")}),style:Object(j["normalizeStyle"])({flex:2,transform:"rotateY(180deg)"})},null,8,["style"])]})),_:1},8,["mouseEnterDelay"]),CO,Object(j["createVNode"])(g,{min:-180,max:180,step:5,value:e.rotate,onChange:t[18]||(t[18]=function(t){return e.updateRotate(t)}),style:{flex:"4"}},null,8,["value"])])],64))])}var wO=Object(j["defineComponent"])({name:"element-positopn-panel",setup:function(){var e=Q(),t=Object(y["c"])($()),n=t.handleElement,o=t.handleElementId,l=Object(j["ref"])(0),c=Object(j["ref"])(0),a=Object(j["ref"])(0),r=Object(j["ref"])(0),i=Object(j["ref"])(0),u=Object(j["ref"])(!1),d=Object(j["computed"])((function(){return n.value&&Wn[n.value.type]||20}));Object(j["watch"])(n,(function(){n.value&&(l.value=Object(Y["round"])(n.value.left,1),c.value=Object(Y["round"])(n.value.top,1),u.value="fixedRatio"in n.value&&!!n.value.fixedRatio,"line"!==n.value.type&&(a.value=Object(Y["round"])(n.value.width,1),r.value=Object(Y["round"])(n.value.height,1),i.value="rotate"in n.value&&void 0!==n.value.rotate?Object(Y["round"])(n.value.rotate,1):0))}),{deep:!0,immediate:!0});var s=et(),f=s.orderElement,p=no(),m=p.alignElementToCanvas,b=Pe(),v=b.addHistorySnapshot,h=function(t){var n={left:t};e.updateElement({id:o.value,props:n}),v()},O=function(t){var n={top:t};e.updateElement({id:o.value,props:n}),v()},g=function(t){var n={width:t};e.updateElement({id:o.value,props:n}),v()},x=function(t){var n={height:t};e.updateElement({id:o.value,props:n}),v()},C=function(t){var n={rotate:t};e.updateElement({id:o.value,props:n}),v()},k=function(t){var n={fixedRatio:t};e.updateElement({id:o.value,props:n}),v()},w=function(t){var n=45*Math.floor(i.value/45);"+"===t?n+=45:"-"===t&&(n-=45),n<-180&&(n=-180),n>180&&(n=180);var l={rotate:n};e.updateElement({id:o.value,props:l}),v()};return{handleElement:n,orderElement:f,alignElementToCanvas:m,left:l,top:c,width:a,height:r,rotate:i,fixedRatio:u,minSize:d,updateLeft:h,updateTop:O,updateWidth:g,updateHeight:x,updateRotate:C,updateFixedRatio:k,updateRotate45:w}}});n("f10d");const EO=Sn()(wO,[["render",kO],["__scopeId","data-v-3476ee65"]]);var NO=EO,IO=function(e){return Object(j["pushScopeId"])("data-v-696c81e2"),e=e(),Object(j["popScopeId"])(),e},VO={class:"element-animation-panel"},SO={key:0,class:"element-animation"},BO={class:"animation-pool"},LO={class:"type-title"},TO={class:"pool-item-wrapper"},MO=["onMouseenter","onClick"],_O={key:0,class:"mask"},DO=Object(j["createTextVNode"])(" 该元素暂不支持动画 "),zO={key:1,class:"tip"},AO=Object(j["createTextVNode"])(" 选中画布中的元素添加动画"),FO={class:"index"},RO={class:"text"},PO={class:"handler"},HO={key:2,class:"configs"},qO={class:"duration"},XO=IO((function(){return Object(j["createElementVNode"])("div",{style:{flex:"4"}},"持续时间(毫秒):",-1)}));function WO(e,t,n,o,l,c){var a=Object(j["resolveComponent"])("IconEffects"),r=Object(j["resolveComponent"])("Button"),i=Object(j["resolveComponent"])("Popover"),u=Object(j["resolveComponent"])("IconClick"),d=Object(j["resolveComponent"])("Divider"),s=Object(j["resolveComponent"])("IconPlayOne"),f=Object(j["resolveComponent"])("Tooltip"),p=Object(j["resolveComponent"])("IconCloseSmall"),m=Object(j["resolveComponent"])("Draggable"),b=Object(j["resolveComponent"])("InputNumber");return Object(j["openBlock"])(),Object(j["createElementBlock"])("div",VO,[e.handleElement?(Object(j["openBlock"])(),Object(j["createElementBlock"])("div",SO,[["chart","video"].includes(e.handleElement.type)?(Object(j["openBlock"])(),Object(j["createBlock"])(r,{key:1,class:"element-animation-btn",disabled:""},{default:Object(j["withCtx"])((function(){return[Object(j["createVNode"])(a,{style:{"margin-right":"5px"}}),DO]})),_:1})):(Object(j["openBlock"])(),Object(j["createBlock"])(i,{key:0,trigger:"click",visible:e.animationPoolVisible,"onUpdate:visible":t[1]||(t[1]=function(t){return e.animationPoolVisible=t}),onVisibleChange:t[2]||(t[2]=function(t){return e.handlePopoverVisibleChange(t)})},{content:Object(j["withCtx"])((function(){return[Object(j["createElementVNode"])("div",BO,[(Object(j["openBlock"])(!0),Object(j["createElementBlock"])(j["Fragment"],null,Object(j["renderList"])(e.animations,(function(n){return Object(j["openBlock"])(),Object(j["createElementBlock"])("div",{class:"pool-type",key:n.name},[Object(j["createElementVNode"])("div",LO,Object(j["toDisplayString"])(n.name)+"",1),Object(j["createElementVNode"])("div",TO,[(Object(j["openBlock"])(!0),Object(j["createElementBlock"])(j["Fragment"],null,Object(j["renderList"])(n.children,(function(n){return Object(j["openBlock"])(),Object(j["createElementBlock"])("div",{class:"pool-item",key:n.name,onMouseenter:function(t){return e.hoverPreviewAnimation=n.value},onMouseleave:t[0]||(t[0]=function(t){return e.hoverPreviewAnimation=""}),onClick:function(t){return e.addAnimation(n.value)}},[Object(j["createElementVNode"])("div",{class:Object(j["normalizeClass"])(["animation-box",["animate__animated","animate__faster",e.hoverPreviewAnimation===n.value&&"animate__".concat(n.value)]])},Object(j["toDisplayString"])(n.name),3)],40,MO)})),128))])])})),128)),e.popoverMaskHide?Object(j["createCommentVNode"])("",!0):(Object(j["openBlock"])(),Object(j["createElementBlock"])("div",_O))])]})),default:Object(j["withCtx"])((function(){return[Object(j["createVNode"])(r,{class:"element-animation-btn"},{default:Object(j["withCtx"])((function(){return[Object(j["createVNode"])(a,{style:{"margin-right":"5px"}}),Object(j["createTextVNode"])(" "+Object(j["toDisplayString"])(e.handleElementAnimationName||"点击选择动画"),1)]})),_:1})]})),_:1},8,["visible"]))])):(Object(j["openBlock"])(),Object(j["createElementBlock"])("div",zO,[Object(j["createVNode"])(u,{style:{"margin-right":"5px"}}),AO])),Object(j["createVNode"])(d),Object(j["createVNode"])(m,{class:"animation-sequence",modelValue:e.animationSequence,animation:300,scroll:!0,scrollSensitivity:50,onEnd:e.handleDragEnd,itemKey:"id"},{item:Object(j["withCtx"])((function(t){var n,o=t.element,l=t.index;return[Object(j["createElementVNode"])("div",{class:Object(j["normalizeClass"])(["sequence-item",{active:(null===(n=e.handleElement)||void 0===n?void 0:n.id)===o.elId}])},[Object(j["createElementVNode"])("div",FO,Object(j["toDisplayString"])(l+1),1),Object(j["createElementVNode"])("div",RO,"【"+Object(j["toDisplayString"])(o.elType)+"】"+Object(j["toDisplayString"])(o.animationType),1),Object(j["createElementVNode"])("div",PO,[Object(j["createVNode"])(f,{mouseLeaveDelay:0,mouseEnterDelay:.5,title:"预览"},{default:Object(j["withCtx"])((function(){return[Object(j["createVNode"])(s,{class:"handler-btn",onClick:function(t){return e.runAnimation(o.elId,o.type,o.duration)}},null,8,["onClick"])]})),_:2},1032,["mouseEnterDelay"]),Object(j["createVNode"])(f,{mouseLeaveDelay:0,mouseEnterDelay:.5,title:"删除"},{default:Object(j["withCtx"])((function(){return[Object(j["createVNode"])(p,{class:"handler-btn",onClick:function(t){return e.deleteAnimation(o.elId)}},null,8,["onClick"])]})),_:2},1032,["mouseEnterDelay"])])],2)]})),_:1},8,["modelValue","onEnd"]),e.handleElementAnimation?(Object(j["openBlock"])(),Object(j["createElementBlock"])("div",HO,[Object(j["createVNode"])(d),Object(j["createElementVNode"])("div",qO,[XO,Object(j["createVNode"])(b,{min:100,max:5e3,step:100,value:e.handleElementAnimation.duration,onChange:t[3]||(t[3]=function(t){return e.updateElementAnimationDuration(t)}),style:{flex:"3"}},null,8,["value"])])])):Object(j["createCommentVNode"])("",!0)])}var GO,UO=[{type:"bounce",name:"弹跳",children:[{name:"弹入",value:"bounceIn"},{name:"向右弹入",value:"bounceInLeft"},{name:"向左弹入",value:"bounceInRight"},{name:"向上弹入",value:"bounceInUp"},{name:"向下弹入",value:"bounceInDown"}]},{type:"fade",name:"浮现",children:[{name:"浮入",value:"fadeIn"},{name:"向下浮入",value:"fadeInDown"},{name:"向下长距浮入",value:"fadeInDownBig"},{name:"向右浮入",value:"fadeInLeft"},{name:"向右长距浮入",value:"fadeInLeftBig"},{name:"向左浮入",value:"fadeInRight"},{name:"向左长距浮入",value:"fadeInRightBig"},{name:"向上浮入",value:"fadeInUp"},{name:"向上长距浮入",value:"fadeInUpBig"},{name:"从左上浮入",value:"fadeInTopLeft"},{name:"从右上浮入",value:"fadeInTopRight"},{name:"从左下浮入",value:"fadeInBottomLeft"},{name:"从右下浮入",value:"fadeInBottomRight"}]},{type:"rotate",name:"旋转",children:[{name:"旋转进入",value:"rotateIn"},{name:"绕左下旋转进入",value:"rotateInDownLeft"},{name:"绕右下旋转进入",value:"rotateInDownRight"},{name:"绕左上旋转进入",value:"rotateInUpLeft"},{name:"绕右上旋转进入",value:"rotateInUpRight"}]},{type:"zoom",name:"缩放",children:[{name:"放大进入",value:"zoomIn"},{name:"向下放大进入",value:"zoomInDown"},{name:"从左放大进入",value:"zoomInLeft"},{name:"从右放大进入",value:"zoomInRight"},{name:"向上放大进入",value:"zoomInUp"}]},{type:"slide",name:"滑入",children:[{name:"向下滑入",value:"slideInDown"},{name:"从右滑入",value:"slideInLeft"},{name:"从左滑入",value:"slideInRight"},{name:"向上滑入",value:"slideInUp"}]},{type:"flip",name:"翻转",children:[{name:"X轴翻转进入",value:"flipInX"},{name:"Y轴翻转进入",value:"flipInY"}]},{type:"back",name:"放大滑入",children:[{name:"向下放大滑入",value:"backInDown"},{name:"从左放大滑入",value:"backInLeft"},{name:"从右放大滑入",value:"backInRight"},{name:"向上放大滑入",value:"backInUp"}]},{type:"lightSpeed",name:"飞入",children:[{name:"从右飞入",value:"lightSpeedInRight"},{name:"从左飞入",value:"lightSpeedInLeft"}]}],YO=1e3,ZO={},JO=Object(B["a"])(UO);try{for(JO.s();!(GO=JO.n()).done;){var KO,QO=GO.value,$O=Object(B["a"])(QO.children);try{for($O.s();!(KO=$O.n()).done;){var ej=KO.value;ZO[ej.value]=ej.name}}catch(Cw){$O.e(Cw)}finally{$O.f()}}}catch(Cw){JO.e(Cw)}finally{JO.f()}var tj=Object(j["defineComponent"])({name:"element-animation-panel",components:{Draggable:np.a},setup:function(){var e=Q(),t=Object(y["c"])($()),n=t.handleElement,o=t.handleElementId,l=Object(y["c"])(e),c=l.currentSlide,a=l.currentSlideAnimations,r=Object(j["ref"])(""),i=Object(j["ref"])(!1),u=Pe(),d=u.addHistorySnapshot,s=UO,f=Object(j["computed"])((function(){if(!a.value)return[];var e,t=[],n=Object(B["a"])(a.value);try{var o=function(){var n=e.value,o=c.value.elements.find((function(e){return e.id===n.elId}));if(!o)return"continue";var l=Xn[o.type],a=ZO[n.type];t.push(Object(S["a"])(Object(S["a"])({},n),{},{elType:l,animationType:a}))};for(n.s();!(e=n.n()).done;)o()}catch(Cw){n.e(Cw)}finally{n.f()}return t})),p=Object(j["computed"])((function(){var e=a.value||[],t=e.find((function(e){return e.elId===o.value}));return t||null})),m=Object(j["computed"])((function(){return p.value?ZO[p.value.type]:null})),b=function(t){var n=a.value.filter((function(e){return e.elId!==t}));e.updateSlide({animations:n}),d()},v=function(t){var n=t.newIndex,o=t.oldIndex;if(o!==n){var l=JSON.parse(JSON.stringify(a.value)),c=l[o];l.splice(o,1),l.splice(n,0,c),e.updateSlide({animations:l}),d()}},h=function(e,t,n){var o="animate__",l=document.querySelector("#editable-element-".concat(e," [class^=editable-element-]"));if(l){var c="".concat(o).concat(t);document.documentElement.style.setProperty("--animate-duration","".concat(n,"ms")),l.classList.add("".concat(o,"animated"),c);var a=function(){document.documentElement.style.removeProperty("--animate-duration"),l.classList.remove("".concat(o,"animated"),c)};l.addEventListener("animationend",a,{once:!0})}},O=function(t){if(a.value){var n=a.value.map((function(e){return e.elId===o.value?Object(S["a"])(Object(S["a"])({},e),{},{type:t}):e}));e.updateSlide({animations:n}),i.value=!1,d();var l=a.value.find((function(e){return e.elId===o.value})),c=(null===l||void 0===l?void 0:l.duration)||YO;h(o.value,t,c)}},g=function(t){if(a.value&&!(t<100||t>5e3)){var n=a.value.map((function(e){return e.elId===o.value?Object(S["a"])(Object(S["a"])({},e),{},{duration:t}):e}));e.updateSlide({animations:n}),d()}},x=function(t){if(m.value)O(t);else{var n=a.value?JSON.parse(JSON.stringify(a.value)):[];n.push({elId:o.value,type:t,duration:YO}),e.updateSlide({animations:n}),i.value=!1,d(),h(o.value,t,YO)}},C=Object(j["ref"])(!1),k=function(e){e?setTimeout((function(){return C.value=!0}),500):C.value=!1};return{handleElement:n,animationPoolVisible:i,animations:s,animationSequence:f,hoverPreviewAnimation:r,handleElementAnimation:p,handleElementAnimationName:m,popoverMaskHide:C,addAnimation:x,deleteAnimation:b,handleDragEnd:v,runAnimation:h,updateElementAnimationDuration:g,handlePopoverVisibleChange:k}}});n("c390");const nj=Sn()(tj,[["render",WO],["__scopeId","data-v-696c81e2"]]);var oj=nj,lj=function(e){return Object(j["pushScopeId"])("data-v-0e2f846d"),e=e(),Object(j["popScopeId"])(),e},cj={class:"slide-design-panel"},aj=lj((function(){return Object(j["createElementVNode"])("div",{class:"title"},"背景填充",-1)})),rj={class:"row"},ij=Object(j["createTextVNode"])("纯色填充"),uj=Object(j["createTextVNode"])("图片填充"),dj=Object(j["createTextVNode"])("渐变填充"),sj=lj((function(){return Object(j["createElementVNode"])("div",{style:{flex:"1"}},null,-1)})),fj=Object(j["createTextVNode"])("缩放"),pj=Object(j["createTextVNode"])("拼贴"),mj=Object(j["createTextVNode"])("缩放铺满"),bj=Object(j["createTextVNode"])("线性渐变"),vj=Object(j["createTextVNode"])("径向渐变"),hj={key:0,class:"background-image-wrapper"},Oj={class:"background-image"},jj={key:1,class:"background-gradient-wrapper"},yj={class:"row"},gj=lj((function(){return Object(j["createElementVNode"])("div",{style:{flex:"2"}},"起点颜色:",-1)})),xj={class:"row"},Cj=lj((function(){return Object(j["createElementVNode"])("div",{style:{flex:"2"}},"终点颜色:",-1)})),kj={key:0,class:"row"},wj=lj((function(){return Object(j["createElementVNode"])("div",{style:{flex:"2"}},"渐变角度:",-1)})),Ej={class:"row"},Nj=Object(j["createTextVNode"])("应用背景到全部"),Ij={class:"row"},Vj=lj((function(){return Object(j["createElementVNode"])("div",{style:{flex:"2"}},"画布尺寸:",-1)})),Sj=Object(j["createTextVNode"])("宽屏 16 : 9"),Bj=Object(j["createTextVNode"])("宽屏 16 10"),Lj=Object(j["createTextVNode"])("标准 4 3"),Tj=lj((function(){return Object(j["createElementVNode"])("div",{class:"title"},"全局主题",-1)})),Mj={class:"row"},_j=lj((function(){return Object(j["createElementVNode"])("div",{style:{flex:"2"}},"字体:",-1)})),Dj={class:"row"},zj=lj((function(){return Object(j["createElementVNode"])("div",{style:{flex:"2"}},"字体颜色:",-1)})),Aj={class:"row"},Fj=lj((function(){return Object(j["createElementVNode"])("div",{style:{flex:"2"}},"背景颜色:",-1)})),Rj={class:"row"},Pj=lj((function(){return Object(j["createElementVNode"])("div",{style:{flex:"2"}},"主题色:",-1)})),Hj=Object(j["createTextVNode"])(" 预置主题 "),qj={key:2,class:"theme-list"},Xj=["onClick"],Wj={class:"theme-item-content"},Gj={class:"row"},Uj=Object(j["createTextVNode"])("应用主题到全部");function Yj(e,t,n,o,l,c){var a=Object(j["resolveComponent"])("SelectOption"),r=Object(j["resolveComponent"])("Select"),i=Object(j["resolveComponent"])("ColorPicker"),u=Object(j["resolveComponent"])("ColorButton"),d=Object(j["resolveComponent"])("Popover"),s=Object(j["resolveComponent"])("IconPlus"),f=Object(j["resolveComponent"])("FileInput"),p=Object(j["resolveComponent"])("Slider"),m=Object(j["resolveComponent"])("Button"),b=Object(j["resolveComponent"])("Divider"),v=Object(j["resolveComponent"])("SelectOptGroup"),h=Object(j["resolveComponent"])("IconDown");return Object(j["openBlock"])(),Object(j["createElementBlock"])("div",cj,[aj,Object(j["createElementVNode"])("div",rj,[Object(j["createVNode"])(r,{style:{flex:"10"},value:e.background.type,onChange:t[0]||(t[0]=function(t){return e.updateBackgroundType(t)})},{default:Object(j["withCtx"])((function(){return[Object(j["createVNode"])(a,{value:"solid"},{default:Object(j["withCtx"])((function(){return[ij]})),_:1}),Object(j["createVNode"])(a,{value:"image"},{default:Object(j["withCtx"])((function(){return[uj]})),_:1}),Object(j["createVNode"])(a,{value:"gradient"},{default:Object(j["withCtx"])((function(){return[dj]})),_:1})]})),_:1},8,["value"]),sj,"solid"===e.background.type?(Object(j["openBlock"])(),Object(j["createBlock"])(d,{key:0,trigger:"click"},{content:Object(j["withCtx"])((function(){return[Object(j["createVNode"])(i,{modelValue:e.background.color,"onUpdate:modelValue":t[1]||(t[1]=function(t){return e.updateBackground({color:t})})},null,8,["modelValue"])]})),default:Object(j["withCtx"])((function(){return[Object(j["createVNode"])(u,{color:e.background.color||"#fff",style:{flex:"10"}},null,8,["color"])]})),_:1})):"image"===e.background.type?(Object(j["openBlock"])(),Object(j["createBlock"])(r,{key:1,style:{flex:"10"},value:e.background.imageSize||"cover",onChange:t[2]||(t[2]=function(t){return e.updateBackground({imageSize:t})})},{default:Object(j["withCtx"])((function(){return[Object(j["createVNode"])(a,{value:"contain"},{default:Object(j["withCtx"])((function(){return[fj]})),_:1}),Object(j["createVNode"])(a,{value:"repeat"},{default:Object(j["withCtx"])((function(){return[pj]})),_:1}),Object(j["createVNode"])(a,{value:"cover"},{default:Object(j["withCtx"])((function(){return[mj]})),_:1})]})),_:1},8,["value"])):(Object(j["openBlock"])(),Object(j["createBlock"])(r,{key:2,style:{flex:"10"},value:e.background.gradientType,onChange:t[3]||(t[3]=function(t){return e.updateBackground({gradientType:t})})},{default:Object(j["withCtx"])((function(){return[Object(j["createVNode"])(a,{value:"linear"},{default:Object(j["withCtx"])((function(){return[bj]})),_:1}),Object(j["createVNode"])(a,{value:"radial"},{default:Object(j["withCtx"])((function(){return[vj]})),_:1})]})),_:1},8,["value"]))]),"image"===e.background.type?(Object(j["openBlock"])(),Object(j["createElementBlock"])("div",hj,[Object(j["createVNode"])(f,{onChange:t[4]||(t[4]=function(t){return e.uploadBackgroundImage(t)})},{default:Object(j["withCtx"])((function(){return[Object(j["createElementVNode"])("div",Oj,[Object(j["createElementVNode"])("div",{class:"content",style:Object(j["normalizeStyle"])({backgroundImage:"url(".concat(e.background.image,")")})},[Object(j["createVNode"])(s)],4)])]})),_:1})])):Object(j["createCommentVNode"])("",!0),"gradient"===e.background.type?(Object(j["openBlock"])(),Object(j["createElementBlock"])("div",jj,[Object(j["createElementVNode"])("div",yj,[gj,Object(j["createVNode"])(d,{trigger:"click"},{content:Object(j["withCtx"])((function(){return[Object(j["createVNode"])(i,{modelValue:e.background.gradientColor[0],"onUpdate:modelValue":t[5]||(t[5]=function(t){return e.updateBackground({gradientColor:[t,e.background.gradientColor[1]]})})},null,8,["modelValue"])]})),default:Object(j["withCtx"])((function(){return[Object(j["createVNode"])(u,{color:e.background.gradientColor[0],style:{flex:"3"}},null,8,["color"])]})),_:1})]),Object(j["createElementVNode"])("div",xj,[Cj,Object(j["createVNode"])(d,{trigger:"click"},{content:Object(j["withCtx"])((function(){return[Object(j["createVNode"])(i,{modelValue:e.background.gradientColor[1],"onUpdate:modelValue":t[6]||(t[6]=function(t){return e.updateBackground({gradientColor:[e.background.gradientColor[0],t]})})},null,8,["modelValue"])]})),default:Object(j["withCtx"])((function(){return[Object(j["createVNode"])(u,{color:e.background.gradientColor[1],style:{flex:"3"}},null,8,["color"])]})),_:1})]),"linear"===e.background.gradientType?(Object(j["openBlock"])(),Object(j["createElementBlock"])("div",kj,[wj,Object(j["createVNode"])(p,{class:"slider",min:0,max:360,step:15,value:e.background.gradientRotate,onChange:t[7]||(t[7]=function(t){return e.updateBackground({gradientRotate:t})})},null,8,["value"])])):Object(j["createCommentVNode"])("",!0)])):Object(j["createCommentVNode"])("",!0),Object(j["createElementVNode"])("div",Ej,[Object(j["createVNode"])(m,{style:{flex:"1"},onClick:t[8]||(t[8]=function(t){return e.applyBackgroundAllSlide()})},{default:Object(j["withCtx"])((function(){return[Nj]})),_:1})]),Object(j["createVNode"])(b),Object(j["createElementVNode"])("div",Ij,[Vj,Object(j["createVNode"])(r,{style:{flex:"3"},value:e.viewportRatio,onChange:t[9]||(t[9]=function(t){return e.updateViewportRatio(t)})},{default:Object(j["withCtx"])((function(){return[Object(j["createVNode"])(a,{value:.5625},{default:Object(j["withCtx"])((function(){return[Sj]})),_:1},8,["value"]),Object(j["createVNode"])(a,{value:.625},{default:Object(j["withCtx"])((function(){return[Bj]})),_:1},8,["value"]),Object(j["createVNode"])(a,{value:.75},{default:Object(j["withCtx"])((function(){return[Lj]})),_:1},8,["value"])]})),_:1},8,["value"])]),Object(j["createVNode"])(b),Tj,Object(j["createElementVNode"])("div",Mj,[_j,Object(j["createVNode"])(r,{style:{flex:"3"},value:e.theme.fontName,onChange:t[10]||(t[10]=function(t){return e.updateTheme({fontName:t})})},{default:Object(j["withCtx"])((function(){return[Object(j["createVNode"])(v,{label:"系统字体"},{default:Object(j["withCtx"])((function(){return[(Object(j["openBlock"])(!0),Object(j["createElementBlock"])(j["Fragment"],null,Object(j["renderList"])(e.availableFonts,(function(e){return Object(j["openBlock"])(),Object(j["createBlock"])(a,{key:e.value,value:e.value},{default:Object(j["withCtx"])((function(){return[Object(j["createElementVNode"])("span",{style:Object(j["normalizeStyle"])({fontFamily:e.value})},Object(j["toDisplayString"])(e.label),5)]})),_:2},1032,["value"])})),128))]})),_:1}),Object(j["createVNode"])(v,{label:"在线字体"},{default:Object(j["withCtx"])((function(){return[(Object(j["openBlock"])(!0),Object(j["createElementBlock"])(j["Fragment"],null,Object(j["renderList"])(e.webFonts,(function(e){return Object(j["openBlock"])(),Object(j["createBlock"])(a,{key:e.value,value:e.value},{default:Object(j["withCtx"])((function(){return[Object(j["createElementVNode"])("span",null,Object(j["toDisplayString"])(e.label),1)]})),_:2},1032,["value"])})),128))]})),_:1})]})),_:1},8,["value"])]),Object(j["createElementVNode"])("div",Dj,[zj,Object(j["createVNode"])(d,{trigger:"click"},{content:Object(j["withCtx"])((function(){return[Object(j["createVNode"])(i,{modelValue:e.theme.fontColor,"onUpdate:modelValue":t[11]||(t[11]=function(t){return e.updateTheme({fontColor:t})})},null,8,["modelValue"])]})),default:Object(j["withCtx"])((function(){return[Object(j["createVNode"])(u,{color:e.theme.fontColor,style:{flex:"3"}},null,8,["color"])]})),_:1})]),Object(j["createElementVNode"])("div",Aj,[Fj,Object(j["createVNode"])(d,{trigger:"click"},{content:Object(j["withCtx"])((function(){return[Object(j["createVNode"])(i,{modelValue:e.theme.backgroundColor,"onUpdate:modelValue":t[12]||(t[12]=function(t){return e.updateTheme({backgroundColor:t})})},null,8,["modelValue"])]})),default:Object(j["withCtx"])((function(){return[Object(j["createVNode"])(u,{color:e.theme.backgroundColor,style:{flex:"3"}},null,8,["color"])]})),_:1})]),Object(j["createElementVNode"])("div",Rj,[Pj,Object(j["createVNode"])(d,{trigger:"click"},{content:Object(j["withCtx"])((function(){return[Object(j["createVNode"])(i,{modelValue:e.theme.themeColor,"onUpdate:modelValue":t[13]||(t[13]=function(t){return e.updateTheme({themeColor:t})})},null,8,["modelValue"])]})),default:Object(j["withCtx"])((function(){return[Object(j["createVNode"])(u,{color:e.theme.themeColor,style:{flex:"3"}},null,8,["color"])]})),_:1})]),Object(j["createElementVNode"])("div",{class:Object(j["normalizeClass"])(["title dropdown",{active:e.showPresetThemes}]),onClick:t[14]||(t[14]=function(t){return e.togglePresetThemesVisible()}),style:{"margin-top":"20px"}},[Hj,Object(j["createVNode"])(h,{class:"icon"})],2),e.showPresetThemes?(Object(j["openBlock"])(),Object(j["createElementBlock"])("div",qj,[(Object(j["openBlock"])(!0),Object(j["createElementBlock"])(j["Fragment"],null,Object(j["renderList"])(e.themes,(function(t,n){return Object(j["openBlock"])(),Object(j["createElementBlock"])("div",{class:"theme-item",key:n,style:Object(j["normalizeStyle"])({backgroundColor:t.background}),onClick:function(n){return e.updateTheme({fontColor:t.text,backgroundColor:t.background,themeColor:t.color})}},[Object(j["createElementVNode"])("div",Wj,[Object(j["createElementVNode"])("div",{class:"text",style:Object(j["normalizeStyle"])({color:t.text})},"Aa",4),Object(j["createElementVNode"])("div",{class:"color-block",style:Object(j["normalizeStyle"])({backgroundColor:t.color})},null,4)])],12,Xj)})),128))])):Object(j["createCommentVNode"])("",!0),Object(j["createElementVNode"])("div",Gj,[Object(j["createVNode"])(m,{style:{flex:"1"},onClick:t[15]||(t[15]=function(t){return e.applyThemeAllSlide()})},{default:Object(j["withCtx"])((function(){return[Uj]})),_:1})])])}var Zj=[{color:"#d14424",background:"#ffffff",text:"#333"},{color:"#42464b",background:"#ffffff",text:"#333"},{color:"#5d82ba",background:"#ffffff",text:"#333"},{color:"#005a6f",background:"#ffffff",text:"#333"},{color:"#d0614c",background:"#dfb044",text:"#333"},{color:"#86a1ad",background:"#dfdbd4",text:"#333"},{color:"#697586",background:"#d5c4a4",text:"#333"},{color:"#333333",background:"#7acfa6",text:"#333"},{color:"#42464b",background:"#415065",text:"#fff"},{color:"#0c5999",background:"#35a2cd",text:"#fff"},{color:"#c49a41",background:"#8c4357",text:"#fff"},{color:"#dfaa00",background:"#2e4e7d",text:"#fff"},{color:"#d1ad88",background:"#f99070",text:"#fff"},{color:"#464d52",background:"#657984",text:"#fff"},{color:"#ffcfb6",background:"#1e4c6f",text:"#fff"},{color:"#c3a043",background:"#43292a",text:"#fff"},{color:"#464d52",background:"#60546f",text:"#fff"},{color:"#df9636",background:"#5b89a0",text:"#fff"},{color:"#b898a4",background:"#93716b",text:"#fff"},{color:"#c47a11",background:"#187db1",text:"#fff"},{color:"#333333",background:"#759564",text:"#fff"},{color:"#355b5e",background:"#424b50",text:"#fff"},{color:"#d29090",background:"#942a32",text:"#fff"},{color:"#00cfdf",background:"#3b434d",text:"#fff"},{color:"#424246",background:"#c70042",text:"#fff"},{color:"#2e4155",background:"#b35d44",text:"#fff"},{color:"#11bfce",background:"#8f98aa",text:"#fff"},{color:"#333333",background:"#549688",text:"#fff"}],Jj=Zj,Kj=V,Qj=Object(j["defineComponent"])({name:"slide-design-panel",components:{ColorButton:tm},setup:function(){var e=Q(),t=Object(y["c"])($()),n=t.availableFonts,o=Object(y["c"])(e),l=o.slides,c=o.currentSlide,a=o.viewportRatio,r=o.theme,i=Object(j["computed"])((function(){return c.value.background?c.value.background:{type:"solid",value:"#fff"}})),u=Pe(),d=u.addHistorySnapshot,s=function(t){if("solid"===t){var n=Object(S["a"])(Object(S["a"])({},i.value),{},{type:"solid",color:i.value.color||"#fff"});e.updateSlide({background:n})}else if("image"===t){var o=Object(S["a"])(Object(S["a"])({},i.value),{},{type:"image",image:i.value.image||"",imageSize:i.value.imageSize||"cover"});e.updateSlide({background:o})}else{var l=Object(S["a"])(Object(S["a"])({},i.value),{},{type:"gradient",gradientType:i.value.gradientType||"linear",gradientColor:i.value.gradientColor||["#fff","#fff"],gradientRotate:i.value.gradientRotate||0});e.updateSlide({background:l})}d()},f=function(t){e.updateSlide({background:Object(S["a"])(Object(S["a"])({},i.value),t)}),d()},p=function(e){var t=e[0];t&&qe(t).then((function(e){return f({image:e})}))},m=function(){var t=l.value.map((function(e){return Object(S["a"])(Object(S["a"])({},e),{},{background:c.value.background})}));e.setSlides(t),d()},b=function(t){e.setTheme(t)},v=function(){var t,n=JSON.parse(JSON.stringify(l.value)),o=r.value,c=o.themeColor,a=o.backgroundColor,i=o.fontColor,u=o.fontName,s=Object(B["a"])(n);try{for(s.s();!(t=s.n()).done;){var f=t.value;f.background&&"image"===f.background.type||(f.background=Object(S["a"])(Object(S["a"])({},f.background),{},{type:"solid",color:a}));var p,m=f.elements,b=Object(B["a"])(m);try{for(b.s();!(p=b.n()).done;){var v=p.value;if("shape"===v.type)v.fill=c;else if("line"===v.type)v.color=c;else if("text"===v.type)v.defaultColor=i,v.defaultFontName=u,v.fill&&(v.fill=c);else if("table"===v.type){v.theme&&(v.theme.color=c);var h,O=Object(B["a"])(v.data);try{for(O.s();!(h=O.n()).done;){var j,y=h.value,g=Object(B["a"])(y);try{for(g.s();!(j=g.n()).done;){var x=j.value;x.style&&(x.style.color=i,x.style.fontname=u)}}catch(Cw){g.e(Cw)}finally{g.f()}}}catch(Cw){O.e(Cw)}finally{O.f()}}else"chart"===v.type?(v.themeColor=[c],v.gridColor=i):"latex"===v.type?v.color=i:"audio"===v.type&&(v.color=c)}}catch(Cw){b.e(Cw)}finally{b.f()}}}catch(Cw){s.e(Cw)}finally{s.f()}e.setSlides(n),d()},h=Object(j["ref"])(!0),O=function(){h.value=!h.value},g=function(t){e.setViewportRatio(t)};return{availableFonts:n,background:i,updateBackgroundType:s,updateBackground:f,uploadBackgroundImage:p,applyBackgroundAllSlide:m,themes:Jj,theme:r,webFonts:Kj,updateTheme:b,applyThemeAllSlide:v,viewportRatio:a,updateViewportRatio:g,showPresetThemes:h,togglePresetThemesVisible:O}}});n("eb2c");const $j=Sn()(Qj,[["render",Yj],["__scopeId","data-v-0e2f846d"]]);var ey=$j,ty={class:"slide-animation-panel"},ny={class:"animation-pool"},oy=["onClick"],ly={class:"animation-text"},cy=Object(j["createTextVNode"])("应用到全部");function ay(e,t,n,o,l,c){var a=Object(j["resolveComponent"])("Button");return Object(j["openBlock"])(),Object(j["createElementBlock"])("div",ty,[Object(j["createElementVNode"])("div",ny,[(Object(j["openBlock"])(!0),Object(j["createElementBlock"])(j["Fragment"],null,Object(j["renderList"])(e.animations,(function(t){return Object(j["openBlock"])(),Object(j["createElementBlock"])("div",{class:Object(j["normalizeClass"])(["animation-item",{active:e.currentTurningMode===t.value}]),key:t.label,onClick:function(n){return e.updateTurningMode(t.value)}},[Object(j["createElementVNode"])("div",{class:Object(j["normalizeClass"])(["animation-block",t.value])},null,2),Object(j["createElementVNode"])("div",ly,Object(j["toDisplayString"])(t.label),1)],10,oy)})),128))]),Object(j["createVNode"])(a,{style:{width:"100%"},onClick:t[0]||(t[0]=function(t){return e.applyAllSlide()})},{default:Object(j["withCtx"])((function(){return[cy]})),_:1})])}var ry=Object(j["defineComponent"])({name:"slide-animation-panel",setup:function(){var e=Q(),t=Object(y["c"])(e),n=t.slides,o=t.currentSlide,l=Object(j["computed"])((function(){return o.value.turningMode||"slideY"})),c=[{label:"无",value:"no"},{label:"淡入淡出",value:"fade"},{label:"左右推移",value:"slideX"},{label:"上下推移",value:"slideY"}],a=Pe(),r=a.addHistorySnapshot,i=function(t){t!==l.value&&(e.updateSlide({turningMode:t}),r())},u=function(){var t=n.value.map((function(e){return Object(S["a"])(Object(S["a"])({},e),{},{turningMode:o.value.turningMode})}));e.setSlides(t),r()};return{currentTurningMode:l,animations:c,updateTurningMode:i,applyAllSlide:u}}});n("6e42");const iy=Sn()(ry,[["render",ay],["__scopeId","data-v-251ceb05"]]);var uy=iy,dy={class:"multi-position-panel"},sy=Object(j["createTextVNode"])("水平均匀分布"),fy=Object(j["createTextVNode"])("垂直均匀分布"),py=Object(j["createTextVNode"])("组合"),my=Object(j["createTextVNode"])("取消组合");function by(e,t,n,o,l,c){var a=Object(j["resolveComponent"])("IconAlignLeft"),r=Object(j["resolveComponent"])("Button"),i=Object(j["resolveComponent"])("Tooltip"),u=Object(j["resolveComponent"])("IconAlignHorizontally"),d=Object(j["resolveComponent"])("IconAlignRight"),s=Object(j["resolveComponent"])("ButtonGroup"),f=Object(j["resolveComponent"])("IconAlignTop"),p=Object(j["resolveComponent"])("IconAlignVertically"),m=Object(j["resolveComponent"])("IconAlignBottom"),b=Object(j["resolveComponent"])("Divider"),v=Object(j["resolveComponent"])("IconGroup"),h=Object(j["resolveComponent"])("IconUngroup");return Object(j["openBlock"])(),Object(j["createElementBlock"])("div",dy,[Object(j["createVNode"])(s,{class:"row"},{default:Object(j["withCtx"])((function(){return[Object(j["createVNode"])(i,{mouseLeaveDelay:0,mouseEnterDelay:.5,title:"左对齐"},{default:Object(j["withCtx"])((function(){return[Object(j["createVNode"])(r,{style:{flex:"1"},onClick:t[0]||(t[0]=function(t){return e.alignElement("left")})},{default:Object(j["withCtx"])((function(){return[Object(j["createVNode"])(a)]})),_:1})]})),_:1},8,["mouseEnterDelay"]),Object(j["createVNode"])(i,{mouseLeaveDelay:0,mouseEnterDelay:.5,title:"水平居中"},{default:Object(j["withCtx"])((function(){return[Object(j["createVNode"])(r,{style:{flex:"1"},onClick:t[1]||(t[1]=function(t){return e.alignElement("horizontal")})},{default:Object(j["withCtx"])((function(){return[Object(j["createVNode"])(u)]})),_:1})]})),_:1},8,["mouseEnterDelay"]),Object(j["createVNode"])(i,{mouseLeaveDelay:0,mouseEnterDelay:.5,title:"右对齐"},{default:Object(j["withCtx"])((function(){return[Object(j["createVNode"])(r,{style:{flex:"1"},onClick:t[2]||(t[2]=function(t){return e.alignElement("right")})},{default:Object(j["withCtx"])((function(){return[Object(j["createVNode"])(d)]})),_:1})]})),_:1},8,["mouseEnterDelay"])]})),_:1}),Object(j["createVNode"])(s,{class:"row"},{default:Object(j["withCtx"])((function(){return[Object(j["createVNode"])(i,{mouseLeaveDelay:0,mouseEnterDelay:.5,title:"上对齐"},{default:Object(j["withCtx"])((function(){return[Object(j["createVNode"])(r,{style:{flex:"1"},onClick:t[3]||(t[3]=function(t){return e.alignElement("top")})},{default:Object(j["withCtx"])((function(){return[Object(j["createVNode"])(f)]})),_:1})]})),_:1},8,["mouseEnterDelay"]),Object(j["createVNode"])(i,{mouseLeaveDelay:0,mouseEnterDelay:.5,title:"垂直居中"},{default:Object(j["withCtx"])((function(){return[Object(j["createVNode"])(r,{style:{flex:"1"},onClick:t[4]||(t[4]=function(t){return e.alignElement("vertical")})},{default:Object(j["withCtx"])((function(){return[Object(j["createVNode"])(p)]})),_:1})]})),_:1},8,["mouseEnterDelay"]),Object(j["createVNode"])(i,{mouseLeaveDelay:0,mouseEnterDelay:.5,title:"下对齐"},{default:Object(j["withCtx"])((function(){return[Object(j["createVNode"])(r,{style:{flex:"1"},onClick:t[5]||(t[5]=function(t){return e.alignElement("bottom")})},{default:Object(j["withCtx"])((function(){return[Object(j["createVNode"])(m)]})),_:1})]})),_:1},8,["mouseEnterDelay"])]})),_:1}),e.displayItemCount>2?(Object(j["openBlock"])(),Object(j["createBlock"])(s,{key:0,class:"row"},{default:Object(j["withCtx"])((function(){return[Object(j["createVNode"])(r,{style:{flex:"1"},onClick:t[6]||(t[6]=function(t){return e.uniformHorizontalDisplay()})},{default:Object(j["withCtx"])((function(){return[sy]})),_:1}),Object(j["createVNode"])(r,{style:{flex:"1"},onClick:t[7]||(t[7]=function(t){return e.uniformVerticalDisplay()})},{default:Object(j["withCtx"])((function(){return[fy]})),_:1})]})),_:1})):Object(j["createCommentVNode"])("",!0),Object(j["createVNode"])(b),Object(j["createVNode"])(s,{class:"row"},{default:Object(j["withCtx"])((function(){return[Object(j["createVNode"])(r,{disabled:!e.canCombine,onClick:t[8]||(t[8]=function(t){return e.combineElements()}),style:{flex:"1"}},{default:Object(j["withCtx"])((function(){return[Object(j["createVNode"])(v,{style:{"margin-right":"3px"}}),py]})),_:1},8,["disabled"]),Object(j["createVNode"])(r,{disabled:e.canCombine,onClick:t[9]||(t[9]=function(t){return e.uncombineElements()}),style:{flex:"1"}},{default:Object(j["withCtx"])((function(){return[Object(j["createVNode"])(h,{style:{"margin-right":"3px"}}),my]})),_:1},8,["disabled"])]})),_:1})])}var vy=function(){var e=Q(),t=Object(y["c"])($()),n=t.activeElementIdList,o=t.activeElementList,l=Object(y["c"])(e),c=l.currentSlide,a=Pe(),r=a.addHistorySnapshot,i=function(t){var l,a=Me(o.value),i=a.minX,u=a.maxX,d=a.minY,s=a.maxY,f=JSON.parse(JSON.stringify(c.value.elements)),p={},m=Object(B["a"])(o.value);try{var b=function(){var e=l.value;if(e.groupId&&!p[e.groupId]){var t=o.value.filter((function(t){return t.groupId===e.groupId}));p[e.groupId]=Me(t)}};for(m.s();!(l=m.n()).done;)b()}catch(Cw){m.e(Cw)}finally{m.f()}if(t===C.LEFT)f.forEach((function(e){if(n.value.includes(e.id))if(e.groupId){var t=p[e.groupId],o=t.minX-i;e.left=e.left-o}else if("rotate"in e&&e.rotate){var l=Le({left:e.left,top:e.top,width:e.width,height:e.height,rotate:e.rotate}),c=l.offsetX;e.left=i-c}else e.left=i}));else if(t===C.RIGHT)f.forEach((function(e){if(n.value.includes(e.id))if(e.groupId){var t=p[e.groupId],o=t.maxX-u;e.left=e.left-o}else{var l="line"===e.type?Math.max(e.start[0],e.end[0]):e.width;if("rotate"in e&&e.rotate){var c=Le({left:e.left,top:e.top,width:e.width,height:e.height,rotate:e.rotate}),a=c.offsetX;e.left=u-l+a}else e.left=u-l}}));else if(t===C.TOP)f.forEach((function(e){if(n.value.includes(e.id))if(e.groupId){var t=p[e.groupId],o=t.minY-d;e.top=e.top-o}else if("rotate"in e&&e.rotate){var l=Le({left:e.left,top:e.top,width:e.width,height:e.height,rotate:e.rotate}),c=l.offsetY;e.top=d-c}else e.top=d}));else if(t===C.BOTTOM)f.forEach((function(e){if(n.value.includes(e.id))if(e.groupId){var t=p[e.groupId],o=t.maxY-s;e.top=e.top-o}else{var l="line"===e.type?Math.max(e.start[1],e.end[1]):e.height;if("rotate"in e&&e.rotate){var c=Le({left:e.left,top:e.top,width:e.width,height:e.height,rotate:e.rotate}),a=c.offsetY;e.top=s-l+a}else e.top=s-l}}));else if(t===C.HORIZONTAL){var v=(i+u)/2;f.forEach((function(e){if(n.value.includes(e.id))if(e.groupId){var t=p[e.groupId],o=(t.maxX+t.minX)/2,l=o-v;e.left=e.left-l}else{var c="line"===e.type?Math.max(e.start[0],e.end[0]):e.width;e.left=v-c/2}}))}else if(t===C.VERTICAL){var h=(d+s)/2;f.forEach((function(e){if(n.value.includes(e.id))if(e.groupId){var t=p[e.groupId],o=(t.maxY+t.minY)/2,l=o-h;e.top=e.top-l}else{var c="line"===e.type?Math.max(e.start[1],e.end[1]):e.height;e.top=h-c/2}}))}e.updateSlide({elements:f}),r()};return{alignActiveElement:i}},hy=(n("4e82"),function(){var e=Q(),t=Object(y["c"])($()),n=t.activeElementIdList,o=t.activeElementList,l=Object(y["c"])(e),c=l.currentSlide,a=Pe(),r=a.addHistorySnapshot,i=Object(j["computed"])((function(){var e,t=0,n=[],l=Object(B["a"])(o.value);try{for(l.s();!(e=l.n()).done;){var c=e.value;c.groupId?n.includes(c.groupId)||(n.push(c.groupId),t+=1):t+=1}}catch(Cw){l.e(Cw)}finally{l.f()}return t})),u=function(){var t,l=Me(o.value),a=l.minX,i=l.maxX,u=JSON.parse(JSON.stringify(o.value)),d=JSON.parse(JSON.stringify(c.value.elements)),s=[],f=[],p=Object(B["a"])(u);try{var m=function(){var e=t.value;if(e.groupId){var n=f.find((function(t){return t.groupId===e.groupId}));n?f=f.map((function(t){return t.groupId===e.groupId?Object(S["a"])(Object(S["a"])({},t),{},{els:[].concat(Object(W["a"])(t.els),[e])}):t})):f.push({groupId:e.groupId,els:[e]})}else{var o=Te(e),l=o.minX,c=o.maxX;s.push({min:l,max:c,el:e})}};for(p.s();!(t=p.n()).done;)m()}catch(Cw){p.e(Cw)}finally{p.f()}var b,v=[],h=Object(B["a"])(f);try{for(h.s();!(b=h.n()).done;){var O=b.value,j=Me(O.els),y=j.minX,g=j.maxX;v.push({min:y,max:g,els:O.els})}}catch(Cw){h.e(Cw)}finally{h.f()}var x=[].concat(s,v);x.sort((function(e,t){return e.min-t.min}));var C,k=0,w=Object(B["a"])(x);try{for(w.s();!(C=w.n()).done;){var E=C.value,N=E.max-E.min;k+=N}}catch(Cw){w.e(Cw)}finally{w.f()}var I=(i-a-k)/(x.length-1),V=[],L=x[0],T={min:L.min,max:L.max};if("el"in L)V.push({pos:L.min,el:L.el});else{var M,_=Object(B["a"])(L.els);try{for(_.s();!(M=_.n()).done;){var D=M.value,z=Te(D),A=z.minX;V.push({pos:A,el:D})}}catch(Cw){_.e(Cw)}finally{_.f()}}for(var F=1;F<x.length;F++){var R=x[F],P=T.max-T.min,H=T.min+P+I,q=R.max-R.min;if(T={min:H,max:H+q},"el"in R)V.push({pos:H,el:R.el});else{var X,G=Object(B["a"])(R.els);try{for(G.s();!(X=G.n()).done;){var U=X.value,Y=Te(U),Z=Y.minX,J=Z-R.min;V.push({pos:H+J,el:U})}}catch(Cw){G.e(Cw)}finally{G.f()}}}var K,Q=Object(B["a"])(d);try{for(Q.s();!(K=Q.n()).done;){var $=K.value;if(n.value.includes($.id)){var ee,te=Object(B["a"])(V);try{for(te.s();!(ee=te.n()).done;){var ne=ee.value;if(ne.el.id===$.id)if("rotate"in $&&$.rotate){var oe=Le({left:$.left,top:$.top,width:$.width,height:$.height,rotate:$.rotate}),le=oe.offsetX;$.left=ne.pos-le}else $.left=ne.pos}}catch(Cw){te.e(Cw)}finally{te.f()}}}}catch(Cw){Q.e(Cw)}finally{Q.f()}e.updateSlide({elements:d}),r()},d=function(){var t,l=Me(o.value),a=l.minY,i=l.maxY,u=JSON.parse(JSON.stringify(o.value)),d=JSON.parse(JSON.stringify(c.value.elements)),s=[],f=[],p=Object(B["a"])(u);try{var m=function(){var e=t.value;if(e.groupId){var n=f.find((function(t){return t.groupId===e.groupId}));n?f=f.map((function(t){return t.groupId===e.groupId?Object(S["a"])(Object(S["a"])({},t),{},{els:[].concat(Object(W["a"])(t.els),[e])}):t})):f.push({groupId:e.groupId,els:[e]})}else{var o=Te(e),l=o.minY,c=o.maxY;s.push({min:l,max:c,el:e})}};for(p.s();!(t=p.n()).done;)m()}catch(Cw){p.e(Cw)}finally{p.f()}var b,v=[],h=Object(B["a"])(f);try{for(h.s();!(b=h.n()).done;){var O=b.value,j=Me(O.els),y=j.minY,g=j.maxY;v.push({min:y,max:g,els:O.els})}}catch(Cw){h.e(Cw)}finally{h.f()}var x=[].concat(s,v);x.sort((function(e,t){return e.min-t.min}));var C,k=0,w=Object(B["a"])(x);try{for(w.s();!(C=w.n()).done;){var E=C.value,N=E.max-E.min;k+=N}}catch(Cw){w.e(Cw)}finally{w.f()}var I=(i-a-k)/(x.length-1),V=[],L=x[0],T={min:L.min,max:L.max};if("el"in L)V.push({pos:L.min,el:L.el});else{var M,_=Object(B["a"])(L.els);try{for(_.s();!(M=_.n()).done;){var D=M.value,z=Te(D),A=z.minY;V.push({pos:A,el:D})}}catch(Cw){_.e(Cw)}finally{_.f()}}for(var F=1;F<x.length;F++){var R=x[F],P=T.max-T.min,H=T.min+P+I,q=R.max-R.min;if(T={min:H,max:H+q},"el"in R)V.push({pos:H,el:R.el});else{var X,G=Object(B["a"])(R.els);try{for(G.s();!(X=G.n()).done;){var U=X.value,Y=Te(U),Z=Y.minY,J=Z-R.min;V.push({pos:H+J,el:U})}}catch(Cw){G.e(Cw)}finally{G.f()}}}var K,Q=Object(B["a"])(d);try{for(Q.s();!(K=Q.n()).done;){var $=K.value;if(n.value.includes($.id)){var ee,te=Object(B["a"])(V);try{for(te.s();!(ee=te.n()).done;){var ne=ee.value;if(ne.el.id===$.id)if("rotate"in $&&$.rotate){var oe=Le({left:$.left,top:$.top,width:$.width,height:$.height,rotate:$.rotate}),le=oe.offsetY;$.top=ne.pos-le}else $.top=ne.pos}}catch(Cw){te.e(Cw)}finally{te.f()}}}}catch(Cw){Q.e(Cw)}finally{Q.f()}e.updateSlide({elements:d}),r()};return{displayItemCount:i,uniformHorizontalDisplay:u,uniformVerticalDisplay:d}}),Oy=Object(j["defineComponent"])({name:"multi-position-panel",setup:function(){var e=Je(),t=e.canCombine,n=e.combineElements,o=e.uncombineElements,l=vy(),c=l.alignActiveElement,a=no(),r=a.alignElementToCanvas,i=hy(),u=i.displayItemCount,d=i.uniformHorizontalDisplay,s=i.uniformVerticalDisplay,f=function(e){t.value?c(e):r(e)};return{canCombine:t,displayItemCount:u,combineElements:n,uncombineElements:o,uniformHorizontalDisplay:d,uniformVerticalDisplay:s,alignElement:f}}});n("306b");const jy=Sn()(Oy,[["render",by],["__scopeId","data-v-88d13362"]]);var yy=jy,gy={class:"symbol-panel"},xy={class:"tabs"},Cy=["onClick"],ky={class:"pool"},wy=["onClick"],Ey={class:"symbol"};function Ny(e,t,n,o,l,c){return Object(j["openBlock"])(),Object(j["createElementBlock"])("div",gy,[Object(j["createElementVNode"])("div",xy,[(Object(j["openBlock"])(!0),Object(j["createElementBlock"])(j["Fragment"],null,Object(j["renderList"])(e.symbolPoolList,(function(t){return Object(j["openBlock"])(),Object(j["createElementBlock"])("div",{class:Object(j["normalizeClass"])(["tab",{active:e.selectedSymbolKey===t.key}]),key:t.key,onClick:function(n){return e.selectedSymbolKey=t.key}},Object(j["toDisplayString"])(t.label),11,Cy)})),128))]),Object(j["createElementVNode"])("div",ky,[(Object(j["openBlock"])(!0),Object(j["createElementBlock"])(j["Fragment"],null,Object(j["renderList"])(e.symbolPool,(function(t,n){return Object(j["openBlock"])(),Object(j["createElementBlock"])("div",{class:"symbol-item",key:n,onClick:function(n){return e.selectSymbol(t)}},[Object(j["createElementVNode"])("div",Ey,Object(j["toDisplayString"])(t),1)],8,wy)})),128))])])}var Iy=[{key:"letter",label:"字母",children:["α","β","γ","δ","ϵ","ε","ζ","η","θ","ϑ","ι","κ","λ","μ","ν","ξ","π","ϖ","ρ","ϱ","σ","ς","τ","υ","ϕ","φ","χ","ψ","ω","Γ","Δ","Θ","Λ","Ξ","Π","Σ","Υ","Φ","Ψ","Ω","𝐀","𝐁","𝐂","𝐃","𝐄","𝐅","𝐆","𝐇","𝐈","𝐉","𝐊","𝐋","𝐌","𝐍","𝐎","𝐏","𝐐","𝐑","𝐒","𝐓","𝐔","𝐕","𝐖","𝐗","𝐘","𝐙","𝐚","𝐛","𝐜","𝐝","𝐞","𝐟","𝐠","𝐡","𝐢","𝐣","𝐤","𝐥","𝐦","𝐧","𝐨","𝐩","𝐪","𝐫","𝐬","𝐭","𝐮","𝐯","𝐰","𝐱","𝐲","𝐳","𝓐","𝓑","𝓒","𝓓","𝓔","𝓕","𝓖","𝓗","𝓘","𝓙","𝓚","𝓛","𝓜","𝓝","𝓞","𝓟","𝓠","𝓡","𝓢","𝓣","𝓤","𝓥","𝓦","𝓧","𝓨","𝓩","𝓪","𝓫","𝓬","𝓭","𝓮","𝓯","𝓰","𝓱","𝓲","𝓳","𝓴","𝓵","𝓶","𝓷","𝓸","𝓹","𝓺","𝓻","𝓼","𝓽","𝓾","𝓿","𝔀","𝔁","𝔂","𝔃"]},{key:"number",label:"序号",children:["①","②","③","④","⑤","⑥","⑦","⑧","⑨","⑩","⑪","⑫","⑬","⑭","⑮","⑯","⑰","⑱","⑲","⑳","⑴","⑵","⑶","⑷","⑸","⑹","⑺","⑻","⑼","⑽","⑾","⑿","⒀","⒁","⒂","⒃","⒄","⒅","⒆","⒇","º","¹","²","³","⁴","⁵","⁶","⁷","⁸","⁹","₀","₁","₂","₃","₄","₅","₆","₇","₈","₉","","Ⅱ","Ⅲ","Ⅳ","","Ⅵ","Ⅶ","Ⅷ","Ⅸ","","Ⅺ","Ⅻ","","","","","","ⅱ","ⅲ","ⅳ","","ⅵ","ⅶ","ⅷ","ⅸ","","ⅺ","ⅻ","","","","ⅿ","ↀ","ↁ","ↂ","㊀","㊁","㊂","㊃","㊄","㊅","㊆","㊇","㊈","㊉","㈠","㈡","㈢","㈣","㈤","㈥","㈦","㈧","㈨","㈩","𝟘","𝟙","𝟚","𝟛","𝟜","𝟝","𝟞","𝟟","𝟠","𝟡"]},{key:"math",label:"数学",children:["+","-","×","÷","=","~","¬","±","%","°","ǃ","‰","‱","½","⅓","⅔","¼","¾","<",">","l","o","g","l","g","l","n","⨂","⨁","⨄","⨃","⨅","⨆","√","∛","∜","∝","∞","∟","∠","∡","∢","∧","","∩","","∫","∬","∭","∮","∯","∰","∱","∲","∳","∴","∵","","∽","∾","∿","≃","≄","≅","≆","≇","≈","≊","≋","≌","≍","≎","≏","≐","≑","≒","≓","≔","≕","≤","≥","≦","≧","≨","≩","≪","≫","≺","≻","≼","≽","≾","≿","⊀","⊁","⊂","⊃","⊄","⊅","⊆","⊇","⊈","⊉","⊊","⊋","⊏","⊐","⊑","⊒","⊓","⊔","⊢","⊣","","⊥","⊦","⊧","⊨","⊩","⊪","⊫","⊬","⊭","⊮","⊯","⊲","⊳","⊴","⊵","⋀","","⋂","","⋉","⋊","⋋","⋌","⟨","⟩","⟪","⟫","⟮","⟯","⧼","⧽","⦰"]},{key:"arrow",label:"箭头",children:["←","↑","→","↓","↔","↕","↖","↗","↘","↙","↚","↛","↜","↝","↞","↟","↠","↡","↢","↣","↤","↥","↦","↧","↨","↫","↬","↭","↮","↯","↰","↱","↲","↳","↴","↵","↶","↷","↸","↹","↺","↻","↼","↽","↾","↿","⇀","⇁","⇂","⇃","⇄","⇅","⇆","⇇","⇈","⇉","⇊","⇋","⇌","⇍","⇎","⇏","⇐","⇑","⇒","⇓","⇔","⇕","⇖","⇗","⇘","⇙","⇚","⇛","⇜","⇝","⇞","⇟","⇠","⇡","⇢","⇣","⇤","⇥","⇦","⇧","⇨","⇩","⇪","⇫","⇬","⇭","⇮","⇯","⇰","⇱","⇲","⇳","⇴","⇵","⇶","⇷","⇸","⇹","⇺","⇻","⇼","⇽","⇾","⇿"]},{key:"graph",label:"图形",children:["▢","▣","▤","▥","▦","▧","▨","▩","▭","▮","▯","▰","▱","▲","▷","▼","◁","◈","◉","◍","◐","◑","◒","◓","◔","◕","◧","◨","◩","◪","◫","◬","◭","◮"]}],Vy=Iy,Sy=Object(j["defineComponent"])({name:"symbol-panel",setup:function(){var e=Object(j["ref"])(Vy[0].key),t=Object(j["computed"])((function(){var t=Vy.find((function(t){return t.key===e.value}));return(null===t||void 0===t?void 0:t.children)||[]})),n=function(e){Kl.emit(sl.RICH_TEXT_COMMAND,{command:"insert",value:e})};return{symbolPoolList:Vy,symbolPool:t,selectedSymbolKey:e,selectSymbol:n}}});n("56b6");const By=Sn()(Sy,[["render",Ny],["__scopeId","data-v-6b8c5938"]]);var Ly=By,Ty=Object(j["defineComponent"])({name:"toolbar",setup:function(){var e=$(),t=Object(y["c"])(e),n=t.activeElementIdList,o=t.handleElement,l=t.toolbarState,c=Object(j["computed"])((function(){var e;return"text"===(null===(e=o.value)||void 0===e?void 0:e.type)?[{label:"样式",value:sp.EL_STYLE},{label:"符号",value:sp.SYMBOL},{label:"位置",value:sp.EL_POSITION},{label:"动画",value:sp.EL_ANIMATION}]:[{label:"样式",value:sp.EL_STYLE},{label:"位置",value:sp.EL_POSITION},{label:"动画",value:sp.EL_ANIMATION}]})),a=[{label:"设计",value:sp.SLIDE_DESIGN},{label:"切换",value:sp.SLIDE_ANIMATION},{label:"动画",value:sp.EL_ANIMATION}],r=[{label:"位置",value:sp.MULTI_POSITION},{label:"样式",value:sp.EL_STYLE}],i=function(t){e.setToolbarState(t)},u=Object(j["computed"])((function(){return n.value.length?n.value.length>1?r:c.value:a}));Object(j["watch"])(u,(function(){var t=u.value.map((function(e){return e.value}));t.includes(l.value)||e.setToolbarState(t[0])}));var d=Object(j["computed"])((function(){var e,t=(e={},Object(ce["a"])(e,sp.EL_STYLE,lO),Object(ce["a"])(e,sp.EL_POSITION,NO),Object(ce["a"])(e,sp.EL_ANIMATION,oj),Object(ce["a"])(e,sp.SLIDE_DESIGN,ey),Object(ce["a"])(e,sp.SLIDE_ANIMATION,uy),Object(ce["a"])(e,sp.MULTI_POSITION,yy),Object(ce["a"])(e,sp.SYMBOL,Ly),e);return t[l.value]||null}));return{toolbarState:l,currentTabs:u,setToolbarState:i,currentPanelComponent:d}}});n("6d15");const My=Sn()(Ty,[["render",hp],["__scopeId","data-v-0df9576a"]]);var _y=My,Dy={class:"remark"},zy=["value"];function Ay(e,t,n,o,l,c){return Object(j["openBlock"])(),Object(j["createElementBlock"])("div",Dy,[Object(j["createElementVNode"])("div",{class:"resize-handler",onMousedown:t[0]||(t[0]=function(t){return e.resize(t)})},null,32),Object(j["createElementVNode"])("textarea",{value:e.remark,placeholder:"点击输入演讲者备注",onInput:t[1]||(t[1]=function(t){return e.handleInput(t)})},null,40,zy)])}var Fy=Object(j["defineComponent"])({name:"remark",emits:["update:height"],props:{height:{type:Number,required:!0}},setup:function(e,t){var n=t.emit,o=Q(),l=Object(y["c"])(o),c=l.currentSlide,a=Object(j["computed"])((function(){var e;return(null===(e=c.value)||void 0===e?void 0:e.remark)||""})),r=function(e){var t=e.target.value;o.updateSlide({remark:t})},i=function(t){var o=!0,l=t.pageY,c=e.height;document.onmousemove=function(e){if(o){var t=e.pageY,a=t-l,r=-a+c;r<40&&(r=40),r>120&&(r=120),n("update:height",r)}},document.onmouseup=function(){o=!1,document.onmousemove=null,document.onmouseup=null}};return{remark:a,handleInput:r,resize:i}}});n("c329");const Ry=Sn()(Fy,[["render",Ay],["__scopeId","data-v-5a6e24c6"]]);var Py=Ry,Hy=Object(j["defineComponent"])({name:"editor",components:{EditorHeader:_n,Canvas:Wd,CanvasTool:Yf,Thumbnails:fp,Toolbar:_y,Remark:Py},setup:function(){var e=Object(j["ref"])(40);return at(),rt(),{remarkHeight:e}}});n("1fec");const qy=Sn()(Hy,[["render",be],["__scopeId","data-v-55178b6a"]]);var Xy=qy,Wy={class:"pptist-screen"},Gy={class:"tools"};function Uy(e,t,n,o,l,c){var a=Object(j["resolveComponent"])("ScreenSlide"),r=Object(j["resolveComponent"])("SlideThumbnails"),i=Object(j["resolveComponent"])("WritingBoardTool"),u=Object(j["resolveComponent"])("IconLeftTwo"),d=Object(j["resolveComponent"])("IconRightTwo"),s=Object(j["resolveComponent"])("IconWrite"),f=Object(j["resolveDirective"])("contextmenu");return Object(j["openBlock"])(),Object(j["createElementBlock"])("div",Wy,[Object(j["withDirectives"])(Object(j["createElementVNode"])("div",{class:"slide-list",onMousewheel:t[0]||(t[0]=function(t){return e.mousewheelListener(t)}),onTouchstart:t[1]||(t[1]=function(t){return e.touchStartListener(t)}),onTouchend:t[2]||(t[2]=function(t){return e.touchEndListener(t)})},[(Object(j["openBlock"])(!0),Object(j["createElementBlock"])(j["Fragment"],null,Object(j["renderList"])(e.slides,(function(t,n){return Object(j["openBlock"])(),Object(j["createElementBlock"])("div",{class:Object(j["normalizeClass"])(["slide-item","turning-mode-".concat(t.turningMode||"slideY"),{current:n===e.slideIndex,before:n<e.slideIndex,after:n>e.slideIndex,hide:(n===e.slideIndex-1||n===e.slideIndex+1)&&t.turningMode!==e.currentSlide.turningMode}]),key:t.id},[Math.abs(e.slideIndex-n)<2?(Object(j["openBlock"])(),Object(j["createElementBlock"])("div",{key:0,class:"slide-content",style:Object(j["normalizeStyle"])({width:e.slideWidth+"px",height:e.slideHeight+"px"})},[Object(j["createVNode"])(a,{slide:t,scale:e.scale,animationIndex:e.animationIndex,turnSlideToId:e.turnSlideToId},null,8,["slide","scale","animationIndex","turnSlideToId"])],4)):Object(j["createCommentVNode"])("",!0)],2)})),128))],544),[[f,e.contextmenus]]),e.slideThumbnailModelVisible?(Object(j["openBlock"])(),Object(j["createBlock"])(r,{key:0,turnSlideToIndex:e.turnSlideToIndex,onClose:t[3]||(t[3]=function(t){return e.slideThumbnailModelVisible=!1})},null,8,["turnSlideToIndex"])):Object(j["createCommentVNode"])("",!0),e.writingBoardToolVisible?(Object(j["openBlock"])(),Object(j["createBlock"])(i,{key:1,onClose:t[4]||(t[4]=function(t){return e.writingBoardToolVisible=!1})})):Object(j["createCommentVNode"])("",!0),Object(j["createElementVNode"])("div",Gy,[Object(j["createVNode"])(u,{class:"tool-btn",theme:"two-tone",fill:["#111","#fff"],onClick:t[5]||(t[5]=function(t){return e.execPrev()})}),Object(j["createVNode"])(d,{class:"tool-btn",theme:"two-tone",fill:["#111","#fff"],onClick:t[6]||(t[6]=function(t){return e.execNext()})}),Object(j["createVNode"])(s,{class:"tool-btn",theme:"two-tone",fill:["#111","#fff"],onClick:t[7]||(t[7]=function(t){return e.writingBoardToolVisible=!0})})]),e.showPageNumber?(Object(j["openBlock"])(),Object(j["createElementBlock"])("div",{key:2,class:"page-number",onClick:t[8]||(t[8]=function(t){return e.slideThumbnailModelVisible=!0})},Object(j["toDisplayString"])(e.slideIndex+1)+" / "+Object(j["toDisplayString"])(e.slides.length),1)):Object(j["createCommentVNode"])("",!0)])}function Yy(e,t,n,o,l,c){var a=Object(j["resolveComponent"])("ScreenElement");return Object(j["openBlock"])(),Object(j["createElementBlock"])("div",{class:"screen-slide",style:Object(j["normalizeStyle"])({width:e.VIEWPORT_SIZE+"px",height:e.VIEWPORT_SIZE*e.viewportRatio+"px",transform:"scale(".concat(e.scale,")")})},[Object(j["createElementVNode"])("div",{class:"background",style:Object(j["normalizeStyle"])(Object(S["a"])({},e.backgroundStyle))},null,4),(Object(j["openBlock"])(!0),Object(j["createElementBlock"])(j["Fragment"],null,Object(j["renderList"])(e.slide.elements,(function(t,n){return Object(j["openBlock"])(),Object(j["createBlock"])(a,{key:t.id,elementInfo:t,elementIndex:n+1,animationIndex:e.animationIndex,turnSlideToId:e.turnSlideToId},null,8,["elementInfo","elementIndex","animationIndex","turnSlideToId"])})),128))],4)}var Zy=["id","title"];function Jy(e,t,n,o,l,c){var a;return Object(j["openBlock"])(),Object(j["createElementBlock"])("div",{class:Object(j["normalizeClass"])(["screen-element",{link:e.elementInfo.link}]),id:"screen-element-".concat(e.elementInfo.id),style:Object(j["normalizeStyle"])({zIndex:e.elementIndex,color:e.theme.fontColor,fontFamily:e.theme.fontName,visibility:e.needWaitAnimation?"hidden":"visible"}),title:(null===(a=e.elementInfo.link)||void 0===a?void 0:a.target)||"",onClick:t[0]||(t[0]=function(t){return e.openLink()})},[(Object(j["openBlock"])(),Object(j["createBlock"])(Object(j["resolveDynamicComponent"])(e.currentElementComponent),{elementInfo:e.elementInfo},null,8,["elementInfo"]))],14,Zy)}function Ky(e,t,n,o,l,c){var a=Object(j["resolveComponent"])("BaseChartElement");return Object(j["openBlock"])(),Object(j["createBlock"])(a,{class:"screen-element-chart",elementInfo:e.elementInfo,needScaleSize:!1},null,8,["elementInfo"])}var Qy=Object(j["defineComponent"])({name:"screen-element-chart",components:{BaseChartElement:ld},props:{elementInfo:{type:Object,required:!0}}});const $y=Sn()(Qy,[["render",Ky]]);var eg=$y,tg={class:"element-content"};function ng(e,t,n,o,l,c){var a=Object(j["resolveComponent"])("VideoPlayer");return Object(j["openBlock"])(),Object(j["createElementBlock"])("div",{class:"screen-element-video",style:Object(j["normalizeStyle"])({top:e.elementInfo.top+"px",left:e.elementInfo.left+"px",width:e.elementInfo.width+"px",height:e.elementInfo.height+"px"})},[Object(j["createElementVNode"])("div",{class:"rotate-wrapper",style:Object(j["normalizeStyle"])({transform:"rotate(".concat(e.elementInfo.rotate,"deg)")})},[Object(j["createElementVNode"])("div",tg,[e.inCurrentSlide?(Object(j["openBlock"])(),Object(j["createBlock"])(a,{key:0,width:e.elementInfo.width,height:e.elementInfo.height,src:e.elementInfo.src,poster:e.elementInfo.poster,scale:e.scale},null,8,["width","height","src","poster","scale"])):Object(j["createCommentVNode"])("",!0)])],4)],4)}var og=Object(j["defineComponent"])({name:"screen-element-video",components:{VideoPlayer:ar},props:{elementInfo:{type:Object,required:!0}},setup:function(){var e=Object(y["c"])(Q()),t=e.currentSlide,n=Object(j["inject"])("slideScale")||Object(j["ref"])(1),o=Object(j["inject"])("slideId")||Object(j["ref"])(""),l=Object(j["computed"])((function(){return t.value.id===o.value}));return{scale:n,inCurrentSlide:l}}});n("7893");const lg=Sn()(og,[["render",ng],["__scopeId","data-v-a45a17a4"]]);var cg=lg,ag={class:"element-content"};function rg(e,t,n,o,l,c){var a=Object(j["resolveComponent"])("IconVolumeNotice"),r=Object(j["resolveComponent"])("AudioPlayer");return Object(j["openBlock"])(),Object(j["createElementBlock"])("div",{class:"screen-element-audio",style:Object(j["normalizeStyle"])({top:e.elementInfo.top+"px",left:e.elementInfo.left+"px",width:e.elementInfo.width+"px",height:e.elementInfo.height+"px"})},[Object(j["createElementVNode"])("div",{class:"rotate-wrapper",style:Object(j["normalizeStyle"])({transform:"rotate(".concat(e.elementInfo.rotate,"deg)")})},[Object(j["createElementVNode"])("div",ag,[Object(j["createVNode"])(a,{class:"audio-icon",style:Object(j["normalizeStyle"])({fontSize:e.audioIconSize,color:e.elementInfo.color}),onClick:t[0]||(t[0]=function(t){return e.toggle()})},null,8,["style"]),e.inCurrentSlide?(Object(j["openBlock"])(),Object(j["createBlock"])(r,{key:0,class:"audio-player",ref:"audioPlayerRef",style:Object(j["normalizeStyle"])(Object(S["a"])({},e.audioPlayerPosition)),src:e.elementInfo.src,loop:e.elementInfo.loop,autoplay:e.elementInfo.autoplay,scale:e.scale},null,8,["style","src","loop","autoplay","scale"])):Object(j["createCommentVNode"])("",!0)])],4)],4)}var ig=Object(j["defineComponent"])({name:"screen-element-audio",components:{AudioPlayer:Tr},props:{elementInfo:{type:Object,required:!0}},setup:function(e){var t=Object(y["c"])(Q()),n=t.viewportRatio,o=t.currentSlide,l=Object(j["inject"])("slideScale")||Object(j["ref"])(1),c=Object(j["inject"])("slideId")||Object(j["ref"])(""),a=Object(j["computed"])((function(){return o.value.id===c.value})),r=Object(j["computed"])((function(){return Math.min(e.elementInfo.width,e.elementInfo.height)+"px"})),i=Object(j["computed"])((function(){var t=Xe,o=Xe*n.value,c=280/l.value,a=50/l.value,r=e.elementInfo.width,i=e.elementInfo.height,u=e.elementInfo.left,d=e.elementInfo.top,s=0,f=i;return u+c>=t&&(s=r-c),d+i+a>=o&&(f=-a),{left:s+"px",top:f+"px"}})),u=Object(j["ref"])(),d=function(){u.value&&u.value.toggle()};return{scale:l,inCurrentSlide:a,audioIconSize:r,audioPlayerPosition:i,audioPlayerRef:u,toggle:d}}});n("eed2");const ug=Sn()(ig,[["render",rg],["__scopeId","data-v-b08df80e"]]);var dg=ug,sg=Object(j["defineComponent"])({name:"screen-element",props:{elementInfo:{type:Object,required:!0},elementIndex:{type:Number,required:!0},animationIndex:{type:Number,default:-1},turnSlideToId:{type:Function,required:!0}},setup:function(e){var t=Object(j["computed"])((function(){var t,n=(t={},Object(ce["a"])(t,to.IMAGE,Mu),Object(ce["a"])(t,to.TEXT,Fu),Object(ce["a"])(t,to.SHAPE,Yu),Object(ce["a"])(t,to.LINE,ed),Object(ce["a"])(t,to.CHART,eg),Object(ce["a"])(t,to.TABLE,vd),Object(ce["a"])(t,to.LATEX,kd),Object(ce["a"])(t,to.VIDEO,cg),Object(ce["a"])(t,to.AUDIO,dg),t);return n[e.elementInfo.type]||null})),n=Object(y["c"])(Q()),o=n.currentSlide,l=n.theme,c=Object(j["computed"])((function(){var t=o.value.animations||[],n=t.findIndex((function(t){return t.elId===e.elementInfo.id}));return-1!==n&&n>=e.animationIndex})),a=function(){var t=e.elementInfo.link;t&&("web"===t.type?window.open(t.target):"slide"===t.type&&e.turnSlideToId(t.target))};return{currentElementComponent:t,needWaitAnimation:c,theme:l,openLink:a}}});n("6042");const fg=Sn()(sg,[["render",Jy],["__scopeId","data-v-3b227002"]]);var pg=fg,mg=Object(j["defineComponent"])({name:"screen-slide",components:{ScreenElement:pg},props:{slide:{type:Object,required:!0},scale:{type:Number,required:!0},animationIndex:{type:Number,default:-1},turnSlideToId:{type:Function,required:!0}},setup:function(e){var t=Object(y["c"])(Q()),n=t.viewportRatio,o=Object(j["computed"])((function(){return e.slide.background})),l=Kr(o),c=l.backgroundStyle,a=Object(j["computed"])((function(){return e.slide.id}));return Object(j["provide"])("slideId",a),{backgroundStyle:c,VIEWPORT_SIZE:Xe,viewportRatio:n}}});n("d530");const bg=Sn()(mg,[["render",Yy],["__scopeId","data-v-7827b40a"]]);var vg=bg,hg={class:"slide-thumbnails"},Og={class:"return-button"},jg={class:"slide-thumbnails-content"},yg=["onClick"];function gg(e,t,n,o,l,c){var a=Object(j["resolveComponent"])("IconArrowCircleLeft"),r=Object(j["resolveComponent"])("ThumbnailSlide");return Object(j["openBlock"])(),Object(j["createElementBlock"])("div",hg,[Object(j["createElementVNode"])("div",Og,[Object(j["createVNode"])(a,{class:"icon",onClick:t[0]||(t[0]=function(t){return e.close()})})]),Object(j["createElementVNode"])("div",jg,[(Object(j["openBlock"])(!0),Object(j["createElementBlock"])(j["Fragment"],null,Object(j["renderList"])(e.slides,(function(t,n){return Object(j["openBlock"])(),Object(j["createElementBlock"])("div",{class:Object(j["normalizeClass"])(["thumbnail",{active:n===e.slideIndex}]),key:t.id,onClick:function(t){return e.turnSlideToIndex(n)}},[Object(j["createVNode"])(r,{slide:t,size:150,visible:n<e.slidesLoadLimit},null,8,["slide","visible"])],10,yg)})),128))])])}var xg=Object(j["defineComponent"])({name:"slide-thumbnails",emits:["close"],components:{ThumbnailSlide:Fd},props:{turnSlideToIndex:{type:Function}},setup:function(e,t){var n=t.emit,o=Object(y["c"])(Q()),l=o.slides,c=o.slideIndex,a=ep(),r=a.slidesLoadLimit,i=function(){return n("close")};return{slides:l,slideIndex:c,slidesLoadLimit:r,close:i}}});n("ca53");const Cg=Sn()(xg,[["render",gg],["__scopeId","data-v-2236d5e3"]]);var kg=Cg,wg={class:"writing-board-tool"},Eg={class:"tools"},Ng={class:"colors"},Ig=["onClick"];function Vg(e,t,n,o,l,c){var a=Object(j["resolveComponent"])("WritingBoard"),r=Object(j["resolveComponent"])("IconWrite"),i=Object(j["resolveComponent"])("Tooltip"),u=Object(j["resolveComponent"])("IconErase"),d=Object(j["resolveComponent"])("IconClear"),s=Object(j["resolveComponent"])("IconFill"),f=Object(j["resolveComponent"])("IconClose");return Object(j["openBlock"])(),Object(j["createElementBlock"])("div",wg,[(Object(j["openBlock"])(),Object(j["createBlock"])(j["Teleport"],{to:"body"},[Object(j["createVNode"])(a,{ref:"writingBoardRef",color:e.writingBoardColor,blackboard:e.blackboard,model:e.writingBoardModel},null,8,["color","blackboard","model"])])),Object(j["createElementVNode"])("div",Eg,[Object(j["createVNode"])(i,{mouseLeaveDelay:0,mouseEnterDelay:.3,title:"画笔"},{default:Object(j["withCtx"])((function(){return[Object(j["createElementVNode"])("div",{class:Object(j["normalizeClass"])(["btn",{active:"pen"===e.writingBoardModel}]),onClick:t[0]||(t[0]=function(t){return e.changePen()})},[Object(j["createVNode"])(r,{class:"icon"})],2)]})),_:1},8,["mouseEnterDelay"]),Object(j["createVNode"])(i,{mouseLeaveDelay:0,mouseEnterDelay:.3,title:"橡皮擦"},{default:Object(j["withCtx"])((function(){return[Object(j["createElementVNode"])("div",{class:Object(j["normalizeClass"])(["btn",{active:"eraser"===e.writingBoardModel}]),onClick:t[1]||(t[1]=function(t){return e.changeEraser()})},[Object(j["createVNode"])(u,{class:"icon"})],2)]})),_:1},8,["mouseEnterDelay"]),Object(j["createVNode"])(i,{mouseLeaveDelay:0,mouseEnterDelay:.3,title:"清除墨迹"},{default:Object(j["withCtx"])((function(){return[Object(j["createElementVNode"])("div",{class:"btn",onClick:t[2]||(t[2]=function(t){return e.clearCanvas()})},[Object(j["createVNode"])(d,{class:"icon"})])]})),_:1},8,["mouseEnterDelay"]),Object(j["createVNode"])(i,{mouseLeaveDelay:0,mouseEnterDelay:.3,title:"黑板"},{default:Object(j["withCtx"])((function(){return[Object(j["createElementVNode"])("div",{class:Object(j["normalizeClass"])(["btn",{active:e.blackboard}]),onClick:t[3]||(t[3]=function(t){return e.blackboard=!e.blackboard})},[Object(j["createVNode"])(s,{class:"icon"})],2)]})),_:1},8,["mouseEnterDelay"]),Object(j["createElementVNode"])("div",Ng,[(Object(j["openBlock"])(!0),Object(j["createElementBlock"])(j["Fragment"],null,Object(j["renderList"])(e.writingBoardColors,(function(t){return Object(j["openBlock"])(),Object(j["createElementBlock"])("div",{class:Object(j["normalizeClass"])(["color",{active:t===e.writingBoardColor}]),key:t,style:Object(j["normalizeStyle"])({backgroundColor:t}),onClick:function(n){return e.changeColor(t)}},null,14,Ig)})),128))]),Object(j["createVNode"])(i,{mouseLeaveDelay:0,mouseEnterDelay:.3,title:"关闭画笔"},{default:Object(j["withCtx"])((function(){return[Object(j["createElementVNode"])("div",{class:"btn",onClick:t[4]||(t[4]=function(t){return e.closeWritingBoard()})},[Object(j["createVNode"])(f,{class:"icon"})])]})),_:1},8,["mouseEnterDelay"])])])}var Sg={class:"writing-board",ref:"writingBoardRef"},Bg={key:0,class:"blackboard"};function Lg(e,t,n,o,l,c){var a=Object(j["resolveComponent"])("IconWrite");return Object(j["openBlock"])(),Object(j["createElementBlock"])("div",Sg,[e.blackboard?(Object(j["openBlock"])(),Object(j["createElementBlock"])("div",Bg)):Object(j["createCommentVNode"])("",!0),Object(j["createElementVNode"])("canvas",{class:"canvas",ref:"canvasRef",onMousedown:t[0]||(t[0]=function(t){return e.handleMousedown(t)}),onMousemove:t[1]||(t[1]=function(t){return e.handleMousemove(t)}),onMouseup:t[2]||(t[2]=function(t){return e.handleMouseup()}),onTouchstart:t[3]||(t[3]=function(t){return e.handleMousedown(t)}),onTouchmove:t[4]||(t[4]=function(t){return e.handleMousemove(t)}),onTouchend:t[5]||(t[5]=function(t){e.handleMouseup(),e.mouseInCanvas=!1}),onMouseleave:t[6]||(t[6]=function(t){e.handleMouseup(),e.mouseInCanvas=!1}),onMouseenter:t[7]||(t[7]=function(t){return e.mouseInCanvas=!0})},null,544),e.mouseInCanvas&&"pen"===e.model?(Object(j["openBlock"])(),Object(j["createElementBlock"])("div",{key:1,class:"pen",style:Object(j["normalizeStyle"])({left:e.mouse.x-e.penSize/2+"px",top:e.mouse.y-36+e.penSize/2+"px",color:e.color})},[Object(j["createVNode"])(a,{class:"icon",size:"36"})],4)):Object(j["createCommentVNode"])("",!0),e.mouseInCanvas&&"eraser"===e.model?(Object(j["openBlock"])(),Object(j["createElementBlock"])("div",{key:2,class:"eraser",style:Object(j["normalizeStyle"])({left:e.mouse.x-e.rubberSize/2+"px",top:e.mouse.y-e.rubberSize/2+"px",width:e.rubberSize+"px",height:e.rubberSize+"px"})},null,4)):Object(j["createCommentVNode"])("",!0)],512)}var Tg=6,Mg=80,_g=Object(j["defineComponent"])({name:"writing-board",props:{color:{type:String,default:"#ffcc00"},model:{type:String,default:"pen"},blackboard:{type:Boolean,default:!1}},setup:function(e){var t=null,n=Object(j["ref"])(),o=Object(j["ref"])(),l={x:0,y:0},c=!1,a=0,r=-1,i=Object(j["reactive"])({x:0,y:0}),u=function(e,t){i.x=e,i.y=t},d=Object(j["ref"])(!1),s=function(){o.value&&n.value&&(t=o.value.getContext("2d"),t&&(o.value.width=n.value.clientWidth,o.value.height=n.value.clientHeight,o.value.style.width=n.value.clientWidth+"px",o.value.style.height=n.value.clientHeight+"px",t.lineCap="round",t.lineJoin="round"))};Object(j["onMounted"])(s);var f=function(n,o,c){if(t){var a=l.x,r=l.y;t.lineWidth=c,t.strokeStyle=e.color,t.beginPath(),t.moveTo(a,r),t.lineTo(n,o),t.stroke(),t.closePath()}},p=function(e,n){var c,a,r,i;if(t&&o.value){var u=l.x,d=l.y,s=Mg/2,f=s*Math.sin(Math.atan((n-d)/(e-u))),p=s*Math.cos(Math.atan((n-d)/(e-u))),m=[u+f,d-p],b=[u-f,d+p],v=[e+f,n-p],h=[e-f,n+p];t.save(),t.beginPath(),t.arc(e,n,s,0,2*Math.PI),t.clip(),t.clearRect(0,0,o.value.width,o.value.height),t.restore(),t.save(),t.beginPath(),(c=t).moveTo.apply(c,m),(a=t).lineTo.apply(a,v),(r=t).lineTo.apply(r,h),(i=t).lineTo.apply(i,b),t.closePath(),t.clip(),t.clearRect(0,0,o.value.width,o.value.height),t.restore()}},m=function(e,t){var n=l.x,o=l.y;return Math.sqrt((e-n)*(e-n)+(t-o)*(t-o))},b=function(e,t){var n,o=10,l=.1,c=Tg,a=3,i=e/t;return n=i<=l?c:i>=o?a:c-i/o*c,-1===r?n:1*n/3+2*r/3},v=function(t,n){var o=(new Date).getTime();if("pen"===e.model){var c=m(t,n),i=o-a,u=b(c,i);f(t,n,u),r=u}else p(t,n);l={x:t,y:n},a=(new Date).getTime()},h=function(e){var t=e instanceof MouseEvent?e.offsetX:e.changedTouches[0].pageX,n=e instanceof MouseEvent?e.offsetY:e.changedTouches[0].pageY;c=!0,l={x:t,y:n},a=(new Date).getTime(),e instanceof TouchEvent&&(u(t,n),d.value=!0)},O=function(e){var t=e instanceof MouseEvent?e.offsetX:e.changedTouches[0].pageX,n=e instanceof MouseEvent?e.offsetY:e.changedTouches[0].pageY;u(t,n),c&&v(t,n)},y=function(){c&&(c=!1)},g=function(){t&&o.value&&t.clearRect(0,0,o.value.width,o.value.height)};return{mouse:i,mouseInCanvas:d,penSize:Tg,rubberSize:Mg,writingBoardRef:n,canvasRef:o,handleMousedown:h,handleMousemove:O,handleMouseup:y,clearCanvas:g}}});n("097f");const Dg=Sn()(_g,[["render",Lg],["__scopeId","data-v-7ff9fa00"]]);var zg=Dg,Ag=["#000000","#ffffff","#1e497b","#4e81bb","#e2534d","#9aba60","#8165a0","#47acc5","#f9974c"],Fg=Object(j["defineComponent"])({name:"writing-board-tool",emits:["close"],components:{WritingBoard:zg},setup:function(e,t){var n=t.emit,o=Object(j["ref"])(),l=Object(j["ref"])("#e2534d"),c=Object(j["ref"])("pen"),a=Object(j["ref"])(!1),r=function(){c.value="pen"},i=function(){c.value="eraser"},u=function(){o.value.clearCanvas()},d=function(e){"pen"!==c.value&&(c.value="pen"),l.value=e},s=function(){n("close")};return{writingBoardRef:o,writingBoardColors:Ag,writingBoardColor:l,writingBoardModel:c,blackboard:a,changePen:r,changeEraser:i,clearCanvas:u,changeColor:d,closeWritingBoard:s}}});n("4c08");const Rg=Sn()(Fg,[["render",Vg],["__scopeId","data-v-7a2e5324"]]);var Pg=Rg,Hg=Object(j["defineComponent"])({name:"screen",components:{ScreenSlide:vg,SlideThumbnails:kg,WritingBoardTool:Pg},setup:function(){var e=Q(),t=Object(y["c"])(e),n=t.slides,o=t.slideIndex,l=t.currentSlide,c=t.viewportRatio,a=Object(j["ref"])(0),r=Object(j["ref"])(0),i=Object(j["computed"])((function(){return a.value/Xe})),u=Object(j["ref"])(!1),d=Object(j["ref"])(!1),s=Object(j["ref"])(!1),f=function(){var e,t,n=document.body.clientWidth,o=document.body.clientHeight;o/n===c.value?(e=n,t=o):o/n>c.value?(e=n,t=n*c.value):(e=o/c.value,t=o),a.value=e,r.value=t},p=lt(),m=p.exitScreening,b=function(){f(),ot()||m()};Object(j["onMounted"])((function(){f(),window.addEventListener("resize",b)})),Object(j["onUnmounted"])((function(){window.removeEventListener("resize",b)}));var v=Object(j["computed"])((function(){return l.value.animations||[]})),h=Object(j["ref"])(0),O=function(){var e="animate__",t=v.value[h.value];h.value+=1;var n=document.querySelector("#screen-element-".concat(t.elId," [class^=base-element-]"));if(n){var o="".concat(e).concat(t.type);document.documentElement.style.setProperty("--animate-duration","".concat(t.duration,"ms")),n.classList.add("".concat(e,"animated"),o);var l=function(){document.documentElement.style.removeProperty("--animate-duration"),n.classList.remove("".concat(e,"animated"),o)};n.addEventListener("animationend",l,{once:!0})}},g=Object(j["ref"])(0),x=function(){g.value&&(clearInterval(g.value),g.value=0)};Object(j["onUnmounted"])(x);var C=Object(Y["throttle"])((function(e){he["a"].success(e)}),1e3,{leading:!0,trailing:!1}),k=function(){if(v.value.length&&h.value>0)h.value-=1;else if(o.value>0){e.updateSlideIndex(o.value-1);var t=v.value?v.value.length:0;h.value=t}else C("已经是第一页了")},w=function(){v.value.length&&h.value<v.value.length?O():o.value<n.value.length-1?(e.updateSlideIndex(o.value+1),h.value=0):(C("已经是最后一页了"),x())},E=function(){x(),he["a"].success("开始自动放映"),g.value=setInterval(w,2500)},I=Object(Y["throttle"])((function(e){e.deltaY<0?k():e.deltaY>0&&w()}),500,{leading:!0,trailing:!1}),V=Object(j["ref"])(null),S=function(e){V.value={x:e.changedTouches[0].pageX,y:e.changedTouches[0].pageY}},B=function(e){if(V.value){var t=Math.abs(V.value.x-e.changedTouches[0].pageX),n=e.changedTouches[0].pageY-V.value.y;Math.abs(n)>t&&Math.abs(n)>50&&(V.value=null,n>0?k():w())}},L=function(e){var t=e.key.toUpperCase();t===N.UP||t===N.LEFT?k():t!==N.DOWN&&t!==N.RIGHT&&t!==N.SPACE&&t!==N.ENTER||w()};Object(j["onMounted"])((function(){document.addEventListener("keydown",L)})),Object(j["onUnmounted"])((function(){document.removeEventListener("keydown",L)}));var T=function(){e.updateSlideIndex(o.value-1),h.value=0},M=function(){e.updateSlideIndex(o.value+1),h.value=0},_=function(t){d.value=!1,e.updateSlideIndex(t),h.value=0},D=function(t){var o=n.value.findIndex((function(e){return e.id===t}));-1!==o&&(e.updateSlideIndex(o),h.value=0)},z=function(){return[{text:"上一页",subText:"↑ ←",disable:o.value<=0,handler:function(){return T()}},{text:"下一页",subText:"↓ →",disable:o.value>=n.value.length-1,handler:function(){return M()}},{text:"第一页",disable:0===o.value,handler:function(){return _(0)}},{text:"最后一页",disable:o.value===n.value.length-1,handler:function(){return _(n.value.length-1)}},{divider:!0},{text:"显示页码",subText:u.value?"√":"",handler:function(){return u.value=!u.value}},{text:"查看所有幻灯片",handler:function(){return d.value=!0}},{text:"画笔",handler:function(){return s.value=!0}},{divider:!0},{text:g.value?"取消自动放映":"自动放映",handler:g.value?x:E},{text:"结束放映",subText:"ESC",handler:m}]};return Object(j["provide"])("slideScale",i),{slides:n,slideIndex:o,currentSlide:l,slideWidth:a,slideHeight:r,scale:i,mousewheelListener:I,touchStartListener:S,touchEndListener:B,animationIndex:h,contextmenus:z,execPrev:k,execNext:w,slideThumbnailModelVisible:d,turnSlideToIndex:_,turnSlideToId:D,writingBoardToolVisible:s,showPageNumber:u}}});n("ad18");const qg=Sn()(Hg,[["render",Uy],["__scopeId","data-v-1d67bb30"]]);var Xg=qg,Wg=Object(j["defineComponent"])({name:"app",components:{Editor:Xy,Screen:Xg},setup:function(){var e=$(),t=ue(),n=Object(y["c"])(se()),o=n.screening;return window.onbeforeunload=function(){return!1},Object(j["onMounted"])((function(){t.initSnapshotDatabase(),e.setAvailableFonts()})),{screening:o}}});n("8881");const Gg=Sn()(Wg,[["render",g]]);var Ug=Gg,Yg=(n("793f"),n("41ed"),n("77ed"),n("5952"),n("c860"),n("ae3f"),n("8c56"),n("b28e")),Zg=n("f914"),Jg=n("0e0a"),Kg=n("f807"),Qg=n("9312"),$g=n("84e7"),ex=n("1e27"),tx=n("8845"),nx=n("a3ef"),ox=n("8331"),lx=n("4040"),cx=n("f745"),ax=n("2e2d"),rx=n("6010"),ix=n("1fcb"),ux=n("500e"),dx=n("0996"),sx=n("1646"),fx=n("fbe7"),px=n("b8af"),mx=n("bf2c"),bx=n("f259"),vx=n("23fa"),hx=n("c53e"),Ox=n("8377"),jx=n("246f"),yx=n("33a2"),gx=n("fdbcb"),xx=n("ccc7"),Cx=n("e3b9"),kx=n("3a3e"),wx=n("2e67"),Ex=n("e792"),Nx=n("e483"),Ix=n("eac5"),Vx=n("694b"),Sx=n("e9ec"),Bx=n("ea01"),Lx=n("74f3"),Tx=n("4bad"),Mx=n("e7f4"),_x=n("eb50"),Dx=n("0be2"),zx=n("a90c"),Ax=n("c90a"),Fx=n("d41d"),Rx=n("2c06"),Px=n("a5dc"),Hx=n("8678"),qx=n("d7fb"),Xx=n("ce42"),Wx=n("7abc"),Gx=n("5b20"),Ux=n("69de"),Yx=n("d0c6"),Zx=n("dcc2"),Jx=n("f1d2"),Kx=n("d16b"),Qx=n("a5f1"),$x=n("df0d"),eC=n("70f2"),tC=n("b7c8"),nC=n("f99d"),oC=n("40bb"),lC=n("ae33"),cC=n("8c1a"),aC=n("b7b3"),rC=n("96be"),iC=n("5a69"),uC=n("f9e5"),dC=n("bbce"),sC=n("77ad"),fC=n("46cd"),pC=n("3ee3"),mC=n("dde4"),bC=n("cead"),vC=n("af8a"),hC=n("d887"),OC=n("fa00"),jC=n("e970"),yC=n("f3c2"),gC=n("7312"),xC=n("5294"),CC=n("9fbc"),kC={install:function(e){e.component("IconFontSize",CC["a"]),e.component("IconPicture",xC["a"]),e.component("IconGraphicDesign",gC["a"]),e.component("IconConnection",yC["a"]),e.component("IconChartProportion",jC["a"]),e.component("IconInsertTable",OC["a"]),e.component("IconVideoTwo",hC["a"]),e.component("IconFormula",vC["a"]),e.component("IconLock",bC["a"]),e.component("IconUnlock",mC["a"]),e.component("IconFullScreen",pC["a"]),e.component("IconBack",fC["a"]),e.component("IconNext",sC["a"]),e.component("IconAlignTop",dC["a"]),e.component("IconAlignLeft",uC["a"]),e.component("IconAlignRight",iC["a"]),e.component("IconAlignBottom",rC["a"]),e.component("IconAlignVertically",aC["a"]),e.component("IconAlignHorizontally",cC["a"]),e.component("IconBringToFront",lC["a"]),e.component("IconSentToBack",oC["a"]),e.component("IconBringToFrontOne",nC["a"]),e.component("IconSendToBack",tC["a"]),e.component("IconGroup",eC["a"]),e.component("IconUngroup",$x["a"]),e.component("IconFill",Qx["a"]),e.component("IconBackgroundColor",Kx["a"]),e.component("IconPlatte",Jx["a"]),e.component("IconTailoring",Zx["a"]),e.component("IconColorFilter",Yx["a"]),e.component("IconFlipVertically",Ux["a"]),e.component("IconFlipHorizontally",Gx["a"]),e.component("IconText",Wx["a"]),e.component("IconAddText",Xx["a"]),e.component("IconAlignTextLeft",qx["a"]),e.component("IconAlignTextRight",Hx["a"]),e.component("IconAlignTextCenter",Px["a"]),e.component("IconRowHeight",Rx["a"]),e.component("IconFullwidth",Fx["a"]),e.component("IconCode",Ax["a"]),e.component("IconTextBold",zx["a"]),e.component("IconTextItalic",Dx["a"]),e.component("IconTextUnderline",_x["a"]),e.component("IconStrikethrough",Mx["a"]),e.component("IconQuote",Tx["a"]),e.component("IconList",Lx["a"]),e.component("IconOrderedList",Bx["a"]),e.component("IconUpOne",Sx["a"]),e.component("IconDownOne",Vx["a"]),e.component("IconFormat",Ix["a"]),e.component("IconAlignTextTopOne",Nx["a"]),e.component("IconAlignTextBottomOne",Ex["a"]),e.component("IconAlignTextMiddleOne",wx["a"]),e.component("IconDown",kx["a"]),e.component("IconLeftTwo",Cx["a"]),e.component("IconRightTwo",xx["a"]),e.component("IconPlus",gx["a"]),e.component("IconMinus",yx["a"]),e.component("IconClose",jx["a"]),e.component("IconCloseSmall",Ox["a"]),e.component("IconChartHistogram",hx["a"]),e.component("IconChartLine",vx["a"]),e.component("IconChartPie",bx["a"]),e.component("IconPlayOne",mx["a"]),e.component("IconPpt",px["a"]),e.component("IconHelpcenter",fx["a"]),e.component("IconGithub",sx["a"]),e.component("IconWrite",dx["a"]),e.component("IconErase",ux["a"]),e.component("IconEffects",ix["a"]),e.component("IconRotate",rx["a"]),e.component("IconEdit",ax["a"]),e.component("IconUndo",cx["a"]),e.component("IconTransform",lx["a"]),e.component("IconClick",ox["a"]),e.component("IconTheme",nx["a"]),e.component("IconArrowCircleLeft",tx["a"]),e.component("IconLogout",ex["a"]),e.component("IconClear",$g["a"]),e.component("IconFolderClose",Qg["a"]),e.component("IconPause",Kg["a"]),e.component("IconVolumeMute",Jg["a"]),e.component("IconVolumeNotice",Zg["a"]),e.component("IconVolumeSmall",Yg["a"])}},wC=["accept"];function EC(e,t,n,o,l,c){return Object(j["openBlock"])(),Object(j["createElementBlock"])("div",{class:"file-input",onClick:t[1]||(t[1]=function(t){return e.handleClick()})},[Object(j["renderSlot"])(e.$slots,"default",{},void 0,!0),Object(j["createElementVNode"])("input",{class:"input",type:"file",name:"upload",ref:"inputRef",accept:e.accept,onChange:t[0]||(t[0]=function(t){return e.handleChange(t)})},null,40,wC)])}var NC=Object(j["defineComponent"])({name:"file-input",emits:["change"],props:{accept:{type:String,default:"image/*"}},setup:function(e,t){var n=t.emit,o=Object(j["ref"])(),l=function(){o.value&&(o.value.value="",o.value.click())},c=function(e){var t=e.target.files;t&&n("change",t)};return{handleClick:l,handleChange:c,inputRef:o}}});n("f349");const IC=Sn()(NC,[["render",EC],["__scopeId","data-v-d6089858"]]);var VC=IC;function SC(e,t,n,o,l,c){return Object(j["openBlock"])(),Object(j["createElementBlock"])("button",{class:Object(j["normalizeClass"])(["checkbox-button",{checked:n.checked}])},[Object(j["renderSlot"])(e.$slots,"default",{},void 0,!0)],2)}var BC={name:"checkbox-button",props:{checked:{type:Boolean,default:!1}}};n("782e");const LC=Sn()(BC,[["render",SC],["__scopeId","data-v-7cae2b90"]]);var TC=LC,MC={class:"checkbox-button-group"};function _C(e,t,n,o,l,c){return Object(j["openBlock"])(),Object(j["createElementBlock"])("div",MC,[Object(j["renderSlot"])(e.$slots,"default",{},void 0,!0)])}var DC={name:"checkbox-button-group"};n("69d58");const zC=Sn()(DC,[["render",_C],["__scopeId","data-v-7dafd0a9"]]);var AC=zC,FC={class:"color-picker"},RC={class:"picker-saturation-wrap"},PC={class:"picker-controls"},HC={class:"picker-color-wrap"},qC={class:"picker-sliders"},XC={class:"picker-hue-wrap"},WC={class:"picker-alpha-wrap"},GC={class:"picker-field"},UC={class:"picker-presets"},YC=["onClick"],ZC={class:"picker-gradient-presets"},JC=["onClick"],KC={class:"picker-presets"},QC=["onClick"],$C={key:0,class:"recent-colors-title"},ek={class:"recent-colors"},tk=["onClick"];function nk(e,t,n,o,l,c){var a=Object(j["resolveComponent"])("Saturation"),r=Object(j["resolveComponent"])("Checkboard"),i=Object(j["resolveComponent"])("Hue"),u=Object(j["resolveComponent"])("Alpha"),d=Object(j["resolveComponent"])("EditableInput");return Object(j["openBlock"])(),Object(j["createElementBlock"])("div",FC,[Object(j["createElementVNode"])("div",RC,[Object(j["createVNode"])(a,{value:e.color,hue:e.hue,onColorChange:t[0]||(t[0]=function(t){return e.changeColor(t)})},null,8,["value","hue"])]),Object(j["createElementVNode"])("div",PC,[Object(j["createElementVNode"])("div",HC,[Object(j["createElementVNode"])("div",{class:"picker-current-color",style:Object(j["normalizeStyle"])({background:e.currentColor})},null,4),Object(j["createVNode"])(r)]),Object(j["createElementVNode"])("div",qC,[Object(j["createElementVNode"])("div",XC,[Object(j["createVNode"])(i,{value:e.color,hue:e.hue,onColorChange:t[1]||(t[1]=function(t){return e.changeColor(t)})},null,8,["value","hue"])]),Object(j["createElementVNode"])("div",WC,[Object(j["createVNode"])(u,{value:e.color,onColorChange:t[2]||(t[2]=function(t){return e.changeColor(t)})},null,8,["value"])])])]),Object(j["createElementVNode"])("div",GC,[Object(j["createVNode"])(d,{value:e.color,onColorChange:t[3]||(t[3]=function(t){return e.changeColor(t)})},null,8,["value"])]),Object(j["createElementVNode"])("div",UC,[(Object(j["openBlock"])(!0),Object(j["createElementBlock"])(j["Fragment"],null,Object(j["renderList"])(e.themeColors,(function(t){return Object(j["openBlock"])(),Object(j["createElementBlock"])("div",{class:"picker-presets-color",key:t,style:Object(j["normalizeStyle"])({background:t}),onClick:function(n){return e.selectPresetColor(t)}},null,12,YC)})),128))]),Object(j["createElementVNode"])("div",ZC,[(Object(j["openBlock"])(!0),Object(j["createElementBlock"])(j["Fragment"],null,Object(j["renderList"])(e.presetColors,(function(t,n){return Object(j["openBlock"])(),Object(j["createElementBlock"])("div",{class:"picker-gradient-col",key:n},[(Object(j["openBlock"])(!0),Object(j["createElementBlock"])(j["Fragment"],null,Object(j["renderList"])(t,(function(t){return Object(j["openBlock"])(),Object(j["createElementBlock"])("div",{class:"picker-gradient-color",key:t,style:Object(j["normalizeStyle"])({background:t}),onClick:function(n){return e.selectPresetColor(t)}},null,12,JC)})),128))])})),128))]),Object(j["createElementVNode"])("div",KC,[(Object(j["openBlock"])(!0),Object(j["createElementBlock"])(j["Fragment"],null,Object(j["renderList"])(e.standardColors,(function(t){return Object(j["openBlock"])(),Object(j["createElementBlock"])("div",{key:t,class:"picker-presets-color",style:Object(j["normalizeStyle"])({background:t}),onClick:function(n){return e.selectPresetColor(t)}},null,12,QC)})),128))]),e.recentColors.length?(Object(j["openBlock"])(),Object(j["createElementBlock"])("div",$C,"最近使用:")):Object(j["createCommentVNode"])("",!0),Object(j["createElementVNode"])("div",ek,[(Object(j["openBlock"])(!0),Object(j["createElementBlock"])(j["Fragment"],null,Object(j["renderList"])(e.recentColors,(function(t){return Object(j["openBlock"])(),Object(j["createElementBlock"])("div",{key:t,class:"picker-presets-color",style:Object(j["normalizeStyle"])({background:t}),onClick:function(n){return e.selectPresetColor(t)}},null,12,tk)})),128))])])}var ok=function(e){return Object(j["pushScopeId"])("data-v-6f2cb744"),e=e(),Object(j["popScopeId"])(),e},lk={class:"alpha"},ck={class:"alpha-checkboard-wrap"},ak=ok((function(){return Object(j["createElementVNode"])("div",{class:"alpha-picker"},null,-1)})),rk=[ak];function ik(e,t,n,o,l,c){var a=Object(j["resolveComponent"])("Checkboard");return Object(j["openBlock"])(),Object(j["createElementBlock"])("div",lk,[Object(j["createElementVNode"])("div",ck,[Object(j["createVNode"])(a)]),Object(j["createElementVNode"])("div",{class:"alpha-gradient",style:Object(j["normalizeStyle"])({background:e.gradientColor})},null,4),Object(j["createElementVNode"])("div",{class:"alpha-container",ref:"alphaRef",onMousedown:t[0]||(t[0]=function(t){return e.handleMouseDown(t)})},[Object(j["createElementVNode"])("div",{class:"alpha-pointer",style:Object(j["normalizeStyle"])({left:100*e.color.a+"%"})},rk,4)],544)])}function uk(e,t,n,o,l,c){return Object(j["openBlock"])(),Object(j["createElementBlock"])("div",{class:"checkerboard",style:Object(j["normalizeStyle"])(e.bgStyle)},null,4)}var dk={},sk=function(e,t,n){var o=document.createElement("canvas");o.width=o.height=2*n;var l=o.getContext("2d");return l?(l.fillStyle=e,l.fillRect(0,0,o.width,o.height),l.fillStyle=t,l.fillRect(0,0,n,n),l.translate(n,n),l.fillRect(0,0,n,n),o.toDataURL()):null},fk=function(e,t,n){var o=e+","+t+","+n;if(dk[o])return dk[o];var l=sk(e,t,n);return dk[o]=l,l},pk=Object(j["defineComponent"])({name:"checkboard",emits:["colorChange"],props:{size:{type:Number,default:8},white:{type:String,default:"#fff"},grey:{type:String,default:"#e6e6e6"}},setup:function(e){var t=Object(j["computed"])((function(){var t=fk(e.white,e.grey,e.size);return{backgroundImage:"url(".concat(t,")")}}));return{bgStyle:t}}});n("7e17");const mk=Sn()(pk,[["render",uk],["__scopeId","data-v-0a544b87"]]);var bk=mk,vk=Object(j["defineComponent"])({name:"alpha",components:{Checkboard:bk},emits:["colorChange"],props:{value:{type:Object,required:!0}},setup:function(e,t){var n=t.emit,o=Object(j["computed"])((function(){return e.value})),l=Object(j["computed"])((function(){var e=[o.value.r,o.value.g,o.value.b].join(",");return"linear-gradient(to right, rgba(".concat(e,", 0) 0%, rgba(").concat(e,", 1) 100%)")})),c=Object(j["ref"])(),a=function(e){if(e.preventDefault(),c.value){var t,l=c.value.clientWidth,a=c.value.getBoundingClientRect().left+window.pageXOffset,r=e.pageX-a;t=r<0?0:r>l?1:Math.round(100*r/l)/100,o.value.a!==t&&n("colorChange",{r:o.value.r,g:o.value.g,b:o.value.b,a:t})}},r=function e(){window.removeEventListener("mousemove",a),window.removeEventListener("mouseup",e)},i=function(e){a(e),window.addEventListener("mousemove",a),window.addEventListener("mouseup",r)};return Object(j["onUnmounted"])(r),{alphaRef:c,gradientColor:l,handleMouseDown:i,color:o}}});n("f418");const hk=Sn()(vk,[["render",ik],["__scopeId","data-v-6f2cb744"]]);var Ok=hk,jk=function(e){return Object(j["pushScopeId"])("data-v-1766620e"),e=e(),Object(j["popScopeId"])(),e},yk={class:"hue"},gk=jk((function(){return Object(j["createElementVNode"])("div",{class:"hue-picker"},null,-1)})),xk=[gk];function Ck(e,t,n,o,l,c){return Object(j["openBlock"])(),Object(j["createElementBlock"])("div",yk,[Object(j["createElementVNode"])("div",{class:"hue-container",ref:"hueRef",onMousedown:t[0]||(t[0]=function(t){return e.handleMouseDown(t)})},[Object(j["createElementVNode"])("div",{class:"hue-pointer",style:Object(j["normalizeStyle"])({left:e.pointerLeft})},xk,4)],544)])}var kk=Object(j["defineComponent"])({name:"hue",emits:["colorChange"],props:{value:{type:Object,required:!0},hue:{type:Number,required:!0}},setup:function(e,t){var n=t.emit,o=Object(j["ref"])(0),l=Object(j["ref"])(""),c=Object(j["computed"])((function(){var t=U()(e.value).toHsl();return-1!==e.hue&&(t.h=e.hue),t})),a=Object(j["computed"])((function(){return 0===c.value.h&&"right"===l.value?"100%":100*c.value.h/360+"%"}));Object(j["watch"])((function(){return e.value}),(function(){var t=U()(e.value).toHsl(),n=0===t.s?e.hue:t.h;0!==n&&n-o.value>0&&(l.value="right"),0!==n&&n-o.value<0&&(l.value="left"),o.value=n}));var r=Object(j["ref"])(),i=function(t){if(t.preventDefault(),r.value){var o,l,a=r.value.clientWidth,i=r.value.getBoundingClientRect().left+window.pageXOffset,u=t.pageX-i;u<0?o=0:u>a?o=360:(l=100*u/a,o=360*l/100),-1!==e.hue&&c.value.h===o||n("colorChange",{h:o,l:c.value.l,s:c.value.s,a:c.value.a})}},u=function e(){window.removeEventListener("mousemove",i),window.removeEventListener("mouseup",e)},d=function(e){i(e),window.addEventListener("mousemove",i),window.addEventListener("mouseup",u)};return Object(j["onUnmounted"])(u),{hueRef:r,handleMouseDown:d,pointerLeft:a}}});n("468f");const wk=Sn()(kk,[["render",Ck],["__scopeId","data-v-1766620e"]]);var Ek=wk,Nk=function(e){return Object(j["pushScopeId"])("data-v-8982eb4a"),e=e(),Object(j["popScopeId"])(),e},Ik=Nk((function(){return Object(j["createElementVNode"])("div",{class:"saturation-white"},null,-1)})),Vk=Nk((function(){return Object(j["createElementVNode"])("div",{class:"saturation-black"},null,-1)})),Sk=Nk((function(){return Object(j["createElementVNode"])("div",{class:"saturation-circle"},null,-1)})),Bk=[Sk];function Lk(e,t,n,o,l,c){return Object(j["openBlock"])(),Object(j["createElementBlock"])("div",{class:"saturation",ref:"saturationRef",style:Object(j["normalizeStyle"])({background:e.bgColor}),onMousedown:t[0]||(t[0]=function(t){return e.handleMouseDown(t)})},[Ik,Vk,Object(j["createElementVNode"])("div",{class:"saturation-pointer",style:Object(j["normalizeStyle"])({top:e.pointerTop,left:e.pointerLeft})},Bk,4)],36)}var Tk=Object(j["defineComponent"])({name:"saturation",emits:["colorChange"],props:{value:{type:Object,required:!0},hue:{type:Number,required:!0}},setup:function(e,t){var n=t.emit,o=Object(j["computed"])((function(){var t=U()(e.value).toHsv();return-1!==e.hue&&(t.h=e.hue),t})),l=Object(j["computed"])((function(){return"hsl(".concat(o.value.h,", 100%, 50%)")})),c=Object(j["computed"])((function(){return-100*o.value.v+1+100+"%"})),a=Object(j["computed"])((function(){return 100*o.value.s+"%"})),r=Object(Y["throttle"])((function(e){n("colorChange",e)}),20,{leading:!0,trailing:!1}),i=Object(j["ref"])(),u=function(e){if(e.preventDefault(),i.value){var t=i.value.clientWidth,n=i.value.clientHeight,l=i.value.getBoundingClientRect().left+window.pageXOffset,c=i.value.getBoundingClientRect().top+window.pageYOffset,a=Object(Y["clamp"])(e.pageX-l,0,t),u=Object(Y["clamp"])(e.pageY-c,0,n),d=a/t,s=Object(Y["clamp"])(-u/n+1,0,1);r({h:o.value.h,s:d,v:s,a:o.value.a})}},d=function e(){window.removeEventListener("mousemove",u),window.removeEventListener("mouseup",e)},s=function(e){u(e),window.addEventListener("mousemove",u),window.addEventListener("mouseup",d)};return Object(j["onUnmounted"])(d),{saturationRef:i,bgColor:l,handleMouseDown:s,pointerTop:c,pointerLeft:a}}});n("a46e");const Mk=Sn()(Tk,[["render",Lk],["__scopeId","data-v-8982eb4a"]]);var _k=Mk,Dk={class:"editable-input"},zk=["value"];function Ak(e,t,n,o,l,c){return Object(j["openBlock"])(),Object(j["createElementBlock"])("div",Dk,[Object(j["createElementVNode"])("input",{class:"input-content",value:e.val,onInput:t[0]||(t[0]=function(t){return e.handleInput(t)})},null,40,zk)])}var Fk=Object(j["defineComponent"])({name:"editable-input",emits:["colorChange"],props:{value:{type:Object,required:!0}},setup:function(e,t){var n=t.emit,o=Object(j["computed"])((function(){var t="";return t=e.value.a<1?U()(e.value).toHex8String().toUpperCase():U()(e.value).toHexString().toUpperCase(),t.replace("#","")})),l=function(e){var t=e.target.value;t.length>=6&&n("colorChange",U()(t).toRgb())};return{val:o,handleInput:l}}});n("1a34");const Rk=Sn()(Fk,[["render",Ak],["__scopeId","data-v-00ea8dfc"]]);var Pk=Rk,Hk="RECENT_COLORS",qk=[["#7f7f7f","#f2f2f2"],["#0d0d0d","#808080"],["#1c1a10","#ddd8c3"],["#0e243d","#c6d9f0"],["#233f5e","#dae5f0"],["#632623","#f2dbdb"],["#4d602c","#eaf1de"],["#3f3150","#e6e0ec"],["#1e5867","#d9eef3"],["#99490f","#fee9da"]],Xk=function(e,t,n){for(var o=U()(e).toRgb(),l=U()(t).toRgb(),c=(l.r-o.r)/n,a=(l.g-o.g)/n,r=(l.b-o.b)/n,i=[],u=0;u<n;u++){var d=U()({r:o.r+c*u,g:o.g+a*u,b:o.b+r*u}).toRgbString();i.push(d)}return i},Wk=function(){var e,t=[],n=Object(B["a"])(qk);try{for(n.s();!(e=n.n()).done;){var o=e.value;t.push(Xk(o[1],o[0],5))}}catch(Cw){n.e(Cw)}finally{n.f()}return t},Gk=Object(j["defineComponent"])({name:"color-picker",components:{Alpha:Ok,Checkboard:bk,Hue:Ek,Saturation:_k,EditableInput:Pk},emits:["update:modelValue"],props:{modelValue:{type:String,default:"#e86b99"}},setup:function(e,t){var n=t.emit,o=Object(j["ref"])(-1),l=Object(j["ref"])([]),c=Object(j["computed"])({get:function(){return U()(e.modelValue).toRgb()},set:function(e){var t="rgba(".concat([e.r,e.g,e.b,e.a].join(","),")");n("update:modelValue",t)}}),a=["#000000","#ffffff","#eeece1","#1e497b","#4e81bb","#e2534d","#9aba60","#8165a0","#47acc5","#f9974c"],r=["#c21401","#ff1e02","#ffc12a","#ffff3a","#90cf5b","#00af57","#00afee","#0071be","#00215f","#72349d"],i=Wk(),u=Object(j["computed"])((function(){return"rgba(".concat([c.value.r,c.value.g,c.value.b,c.value.a].join(","),")")})),d=function(e){o.value=U()(e).toHsl().h,n("update:modelValue",e)},s=Object(Y["debounce"])((function(){var e=U()(c.value).toRgbString();if(!l.value.includes(e)){l.value=[e].concat(Object(W["a"])(l.value));var t=10;l.value.length>t&&(l.value=l.value.slice(0,t))}}),300,{trailing:!0});Object(j["onMounted"])((function(){var e=localStorage.getItem(Hk);e&&(l.value=JSON.parse(e))})),Object(j["watch"])(l,(function(){var e=JSON.stringify(l.value);localStorage.setItem(Hk,e)}));var f=function(e){"h"in e?(o.value=e.h,c.value=U()(e).toRgb()):(o.value=U()(e).toHsl().h,c.value=e),s()};return{themeColors:a,standardColors:r,presetColors:i,color:c,hue:o,currentColor:u,changeColor:f,selectPresetColor:d,recentColors:l}}});n("6c3c");const Uk=Sn()(Gk,[["render",nk],["__scopeId","data-v-210672ee"]]);var Yk=Uk,Zk={key:0,class:"fullscreen-spin"};function Jk(e,t,n,o,l,c){var a=Object(j["resolveComponent"])("Spin");return n.loading?(Object(j["openBlock"])(),Object(j["createElementBlock"])("div",Zk,[Object(j["createVNode"])(a,{tip:n.tip,size:"large"},null,8,["tip"])])):Object(j["createCommentVNode"])("",!0)}var Kk={name:"fullscreen-spin",props:{loading:{type:Boolean,default:!1},tip:{type:String,default:""}}};n("3f8e");const Qk=Sn()(Kk,[["render",Jk],["__scopeId","data-v-6275c730"]]);var $k=Qk,ew={install:function(e){e.component("FileInput",VC),e.component("CheckboxButton",TC),e.component("CheckboxButtonGroup",AC),e.component("ColorPicker",Yk),e.component("FullscreenSpin",$k)}};function tw(e,t,n,o,l,c){var a=Object(j["resolveComponent"])("MenuContent");return Object(j["openBlock"])(),Object(j["createElementBlock"])(j["Fragment"],null,[Object(j["createElementVNode"])("div",{class:"mask",onContextmenu:t[0]||(t[0]=Object(j["withModifiers"])((function(t){return e.removeContextmenu()}),["prevent"])),onMousedown:t[1]||(t[1]=function(t){return e.removeContextmenu()})},null,32),Object(j["createElementVNode"])("div",{class:"contextmenu",style:Object(j["normalizeStyle"])({left:e.style.left+"px",top:e.style.top+"px"}),onContextmenu:t[2]||(t[2]=Object(j["withModifiers"])((function(){}),["prevent"]))},[Object(j["createVNode"])(a,{menus:e.menus,handleClickMenuItem:e.handleClickMenuItem},null,8,["menus","handleClickMenuItem"])],36)],64)}var nw={class:"menu-content"},ow=["onClick"],lw={class:"text"},cw={key:0,class:"sub-text"};function aw(e,t,n,o,l,c){var a=Object(j["resolveComponent"])("menu-content",!0);return Object(j["openBlock"])(),Object(j["createElementBlock"])("ul",nw,[(Object(j["openBlock"])(!0),Object(j["createElementBlock"])(j["Fragment"],null,Object(j["renderList"])(e.menus,(function(t,n){return Object(j["openBlock"])(),Object(j["createElementBlock"])(j["Fragment"],{key:t.text||n},[t.hide?Object(j["createCommentVNode"])("",!0):(Object(j["openBlock"])(),Object(j["createElementBlock"])("li",{key:0,class:Object(j["normalizeClass"])(["menu-item",{divider:t.divider,disable:t.disable}]),onClick:Object(j["withModifiers"])((function(n){return e.handleClickMenuItem(t)}),["stop"])},[t.divider?Object(j["createCommentVNode"])("",!0):(Object(j["openBlock"])(),Object(j["createElementBlock"])("div",{key:0,class:Object(j["normalizeClass"])(["menu-item-content",{"has-children":t.children,"has-handler":t.handler}])},[Object(j["createElementVNode"])("span",lw,Object(j["toDisplayString"])(t.text),1),t.subText&&!t.children?(Object(j["openBlock"])(),Object(j["createElementBlock"])("span",cw,Object(j["toDisplayString"])(t.subText),1)):Object(j["createCommentVNode"])("",!0),t.children&&t.children.length?(Object(j["openBlock"])(),Object(j["createBlock"])(a,{key:1,class:"sub-menu",menus:t.children,handleClickMenuItem:e.handleClickMenuItem},null,8,["menus","handleClickMenuItem"])):Object(j["createCommentVNode"])("",!0)],2))],10,ow))],64)})),128))])}var rw=Object(j["defineComponent"])({name:"menu-content",props:{menus:{type:Array,required:!0},handleClickMenuItem:{type:Function,required:!0}}});n("0c74");const iw=Sn()(rw,[["render",aw],["__scopeId","data-v-eb1555e8"]]);var uw=iw,dw=Object(j["defineComponent"])({name:"contextmenu",components:{MenuContent:uw},props:{axis:{type:Object,required:!0},el:{type:Object,required:!0},menus:{type:Array,required:!0},removeContextmenu:{type:Function,required:!0}},setup:function(e){var t=Object(j["computed"])((function(){var t=170,n=30,o=11,l=5,c=e.axis,a=c.x,r=c.y,i=e.menus.filter((function(e){return!(e.divider||e.hide)})).length,u=e.menus.filter((function(e){return e.divider})).length,d=t,s=i*n+u*o+2*l,f=document.body.clientWidth,p=document.body.clientHeight;return{left:f<=a+d?a-d:a,top:p<=r+s?r-s:r}})),n=function(t){t.disable||t.children&&!t.handler||(t.handler&&t.handler(e.el),e.removeContextmenu())};return{style:t,handleClickMenuItem:n}}});n("b837");const sw=Sn()(dw,[["render",tw]]);var fw=sw,pw="CTX_CONTEXTMENU_HANDLER",mw=function(e,t,n){t.stopPropagation(),t.preventDefault();var o=n.value(e);if(o){var l=null,c=function t(){l&&(document.body.removeChild(l),l=null),e.classList.remove("contextmenu-active"),document.body.removeEventListener("scroll",t),window.removeEventListener("resize",t)},a={axis:{x:t.x,y:t.y},el:e,menus:o,removeContextmenu:c};l=document.createElement("div");var r=Object(j["createVNode"])(fw,a,null);Object(j["render"])(r,l),document.body.appendChild(l),e.classList.add("contextmenu-active"),document.body.addEventListener("scroll",c),window.addEventListener("resize",c)}},bw={mounted:function(e,t){e[pw]=function(n){return mw(e,n,t)},e.addEventListener("contextmenu",e[pw])},unmounted:function(e){e&&e[pw]&&(e.removeEventListener("contextmenu",e[pw]),delete e[pw])}},vw=bw,hw="CTX_CLICK_OUTSIDE_HANDLER",Ow=function(e,t,n){var o=n.value,l=t.composedPath(),c=l?l.indexOf(e)<0:!e.contains(t.target);c&&o(t)},jw={mounted:function(e,t){e[hw]=function(n){return Ow(e,n,t)},setTimeout((function(){document.addEventListener("click",e[hw])}),0)},unmounted:function(e){e[hw]&&(document.removeEventListener("click",e[hw]),delete e[hw])}},yw=jw,gw={install:function(e){e.directive("contextmenu",vw),e.directive("click-outside",yw)}},xw=Object(j["createApp"])(Ug);xw.component("InputNumber",O["a"]),xw.component("Divider",h["a"]),xw.component("Button",v["a"]),xw.component("ButtonGroup",v["a"].Group),xw.component("Tooltip",b["a"]),xw.component("Popover",m["a"]),xw.component("Slider",p["a"]),xw.component("Select",f["a"]),xw.component("SelectOption",f["a"].Option),xw.component("SelectOptGroup",f["a"].OptGroup),xw.component("Switch",s["a"]),xw.component("Radio",d["a"]),xw.component("RadioGroup",d["a"].Group),xw.component("RadioButton",d["a"].Button),xw.component("Input",u["a"]),xw.component("InputGroup",u["a"].Group),xw.component("TextArea",u["a"].TextArea),xw.component("Modal",i["a"]),xw.component("Dropdown",r["a"]),xw.component("Menu",a["a"]),xw.component("MenuItem",a["a"].Item),xw.component("Checkbox",c["a"]),xw.component("Drawer",l["a"]),xw.component("Spin",o["a"]),xw.use(kC),xw.use(ew),xw.use(gw),xw.use(Object(y["a"])()),xw.mount("#app")},cdff:function(e,t,n){},d0e2:function(e,t,n){},d129:function(e,t,n){"use strict";n("1b9e")},d2f4:function(e,t,n){},d4cb:function(e,t,n){},d530:function(e,t,n){"use strict";n("c242")},d572:function(e,t,n){},d65a:function(e,t,n){},d6d3:function(e,t,n){},d908:function(e,t,n){"use strict";n("2ab1")},da17:function(e,t,n){"use strict";n("e44d")},dab5:function(e,t,n){"use strict";n("6702")},dbe5:function(e,t,n){},dc2f:function(e,t,n){},dc5e:function(e,t,n){},ddc3:function(e,t,n){},de30:function(e,t,n){"use strict";n("ddc3")},e09c:function(e,t,n){},e1f8:function(e,t,n){},e3df:function(e,t,n){"use strict";n("f0f3")},e44d:function(e,t,n){},e4ed:function(e,t,n){"use strict";n("1160")},e4fe:function(e,t,n){},e5a8:function(e,t,n){"use strict";n("6532")},e5b9:function(e,t,n){},e6a5:function(e,t,n){},e7b8:function(e,t,n){"use strict";n("46ba")},e9e0:function(e,t,n){},eacc:function(e,t,n){"use strict";n("50c5")},eaff:function(e,t,n){},eb2c:function(e,t,n){"use strict";n("fa63")},ec3f:function(e,t,n){},eed2:function(e,t,n){"use strict";n("4c0a")},efbe:function(e,t,n){"use strict";n("4fda")},f076:function(e,t,n){"use strict";n("e09c")},f0f3:function(e,t,n){},f10d:function(e,t,n){"use strict";n("4a74")},f33f:function(e,t,n){"use strict";n("a9ab")},f349:function(e,t,n){"use strict";n("013f")},f418:function(e,t,n){"use strict";n("0f92")},f9a0:function(e,t,n){"use strict";n("803b")},fa63:function(e,t,n){},fb1d:function(e,t,n){"use strict";n("d572")},ff8b:function(e,t,n){},ffb8:function(e,t,n){"use strict";n("3831")}});
//# sourceMappingURL=app.196cd4ec.js.map