PPTist/js/app.a8c3b061.js

2 lines
542 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")},"042a":function(e,t,n){"use strict";n("6c80")},"044f":function(e,t,n){"use strict";n("e5b9")},"04e6":function(e,t,n){"use strict";n("90ef")},"0543":function(e,t,n){"use strict";n("c2f9")},"06b6":function(e,t,n){"use strict";n("c123")},"0737":function(e,t,n){},"078f":function(e,t,n){},"07f7":function(e,t,n){},"097f":function(e,t,n){"use strict";n("4b78")},"0a42":function(e,t,n){},"0c35":function(e,t,n){"use strict";n("2581")},"0c74":function(e,t,n){"use strict";n("77a7")},"0d8e":function(e,t,n){},"0f5b":function(e,t,n){},"0f92":function(e,t,n){},1:function(e,t,n){e.exports=n("cd49")},1118:function(e,t,n){"use strict";n("27bc")},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){},"161f":function(e,t,n){"use strict";n("fd3b")},1756:function(e,t,n){"use strict";n("2b08")},"195c":function(e,t,n){"use strict";n("eaff")},"19f2":function(e,t,n){},"1b9e":function(e,t,n){},"1fec":function(e,t,n){"use strict";n("0737")},2:function(e,t){},2007:function(e,t,n){},"247e":function(e,t,n){"use strict";n("d7f8")},2581:function(e,t,n){},"27bc":function(e,t,n){},"27cd":function(e,t,n){"use strict";n("a4a7")},"2b08":function(e,t,n){},"2b79b":function(e,t,n){"use strict";n("07f7")},"2c50":function(e,t,n){},"2dff":function(e,t,n){},"2f5f":function(e,t,n){},"2fee":function(e,t,n){"use strict";n("6ea7")},3:function(e,t){},3106:function(e,t,n){},3150:function(e,t,n){},"31d7":function(e,t,n){},"344c":function(e,t,n){},"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")},"3ae7":function(e,t,n){"use strict";n("496b")},"3b1d":function(e,t,n){"use strict";n("a75f")},"3bb9":function(e,t,n){},"3dc0":function(e,t,n){"use strict";n("344c")},"3e44":function(e,t,n){},"42a5":function(e,t,n){},"42d4":function(e,t,n){},4405:function(e,t,n){"use strict";n("84d9")},4607:function(e,t,n){"use strict";n("96e4")},"468f":function(e,t,n){"use strict";n("e1f8")},"46ba":function(e,t,n){},4821:function(e,t,n){"use strict";n("0f5b")},"483c":function(e,t,n){},4855:function(e,t,n){},"496b":function(e,t,n){},"4a74":function(e,t,n){},"4b15":function(e,t,n){"use strict";n("42d4")},"4b78":function(e,t,n){},"4c0a":function(e,t,n){},"4d0e":function(e,t,n){"use strict";n("8cc4")},"4eba":function(e,t,n){"use strict";n("19f2")},"4f7c":function(e,t,n){"use strict";n("e9e0")},5083:function(e,t,n){"use strict";n("6ab0")},"50c5":function(e,t,n){},5264:function(e,t,n){"use strict";n("dc5e")},5545:function(e,t,n){},"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")},"5ba7":function(e,t,n){},"5efd":function(e,t,n){"use strict";n("5ba7")},6042:function(e,t,n){"use strict";n("5a61")},6236:function(e,t,n){},6532:function(e,t,n){},"65bb":function(e,t,n){},6702:function(e,t,n){},6856:function(e,t,n){"use strict";n("2f5f")},"69d5":function(e,t,n){"use strict";n("b42f")},"6ab0":function(e,t,n){},"6c80":function(e,t,n){},"6d82":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){},"77a7":function(e,t,n){},7893:function(e,t,n){"use strict";n("8f56")},"78eb":function(e,t,n){"use strict";n("65bb")},"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")},"7f52":function(e,t,n){"use strict";n("0d8e")},"81ab":function(e,t,n){"use strict";n("483c")},"84d9":function(e,t,n){},"850a":function(e,t,n){"use strict";n("31d7")},"86ee":function(e,t,n){"use strict";n("cb38")},8754:function(e,t,n){"use strict";n("13c8")},"8b77":function(e,t,n){},"8c56":function(e,t,n){},"8cc4":function(e,t,n){},"8e58":function(e,t,n){},"8f07":function(e,t,n){},"8f56":function(e,t,n){},9031:function(e,t,n){},"90ef":function(e,t,n){},9316:function(e,t,n){"use strict";n("bf06")},"933d":function(e,t,n){"use strict";n("c029")},"94e5":function(e,t,n){},"950c":function(e,t,n){"use strict";n("8b77")},"96e4":function(e,t,n){},"9a18":function(e,t,n){},"9a8f":function(e,t,n){"use strict";n("5545")},"9d5f":function(e,t,n){"use strict";n("d65a")},"9efd":function(e,t,n){"use strict";n("42a5")},a215:function(e,t,n){"use strict";n("7023")},a46e:function(e,t,n){"use strict";n("8e58")},a4a7:function(e,t,n){},a75f:function(e,t,n){},a7fe:function(e,t,n){"use strict";n("6236")},a838:function(e,t,n){},a8ac:function(e,t,n){"use strict";n("8f07")},a9ab:function(e,t,n){},a9d5:function(e,t,n){},aa92:function(e,t,n){"use strict";n("de82")},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")},b42f:function(e,t,n){},b45c:function(e,t,n){"use strict";n("3e44")},b5a4:function(e,t,n){"use strict";n("0a42")},b5ae:function(e,t,n){"use strict";n("d65aa")},b6c7:function(e,t,n){},b702:function(e,t,n){},b824:function(e,t,n){"use strict";n("caf0")},b837:function(e,t,n){"use strict";n("94e5")},b8ce:function(e,t,n){"use strict";n("e71e")},b994:function(e,t,n){},bac8:function(e,t,n){},bc9a:function(e,t,n){"use strict";n("3bb9")},bd59:function(e,t,n){"use strict";n("b702")},be11:function(e,t,n){"use strict";n("e4fe")},bf06:function(e,t,n){},c029:function(e,t,n){},c123:function(e,t,n){},c15d:function(e,t,n){"use strict";n("2c50")},c242:function(e,t,n){},c2f9:function(e,t,n){},c390:function(e,t,n){"use strict";n("9a18")},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){},caf0:function(e,t,n){},cb38:function(e,t,n){},cb7c:function(e,t,n){"use strict";n("a9d5")},cd49:function(e,t,n){"use strict";n.r(t);n("ab9e");var o=n("2c92"),l=(n("7f6b"),n("8592")),c=(n("6d2a"),n("9571")),a=(n("ee00"),n("bb76")),r=(n("fbd8"),n("55f1")),i=(n("9d5c"),n("a600")),u=(n("cd17"),n("ed3b")),d=(n("5704"),n("b558")),s=(n("5783"),n("59a5")),f=(n("fbd6"),n("160c")),p=(n("2ef0f"),n("9839")),m=(n("438c"),n("fbdf")),b=(n("5136"),n("681b")),v=(n("9a33"),n("f933")),h=(n("6ba6"),n("5efb")),O=(n("55ec"),n("a79d")),j=(n("922d"),n("09d9")),y=(n("e260"),n("e6cf"),n("cca6"),n("a79df"),n("7a23")),g=n("be92");function x(e,t,n,o,l,c){var a=Object(y["resolveComponent"])("Screen"),r=Object(y["resolveComponent"])("Editor"),i=Object(y["resolveComponent"])("Mobile");return e.screening?(Object(y["openBlock"])(),Object(y["createBlock"])(a,{key:0})):e.isPC?(Object(y["openBlock"])(),Object(y["createBlock"])(r,{key:1})):(Object(y["openBlock"])(),Object(y["createBlock"])(i,{key:2}))}var C;n("4de4"),n("d3b7"),n("caad"),n("2532"),n("7db0");(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"})(C||(C={}));var k,E,w,N,I,V,S=[{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"}],B=[{label:"仓耳小丸子",value:"仓耳小丸子"},{label:"优设标题黑",value:"优设标题黑"},{label:"峰广明锐体",value:"峰广明锐体"},{label:"摄图摩登小方体",value:"摄图摩登小方体"},{label:"站酷快乐体",value:"站酷快乐体"},{label:"字制区喜脉体",value:"字制区喜脉体"},{label:"素材集市康康体",value:"素材集市康康体"},{label:"素材集市酷方体",value:"素材集市酷方体"},{label:"途牛类圆体",value:"途牛类圆体"},{label:"锐字真言体",value:"锐字真言体"}],L=n("5530"),T=n("b85c"),M=(n("b0c0"),n("1913"),function(e,t){return Array.isArray(e)&&e.indexOf(t.type)>-1||t.type===e}),_=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}}},D=function(e){return function(t){return _(t.$from,e)}},z=function(e){return function(t){return D((function(t){return M(e,t)}))(t)}},A=function(e,t){var n=t.schema.nodes[e];return!!z(n)(t.selection)},R=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)||[]},F=function(e,t,n){var o,l=Object(T["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},P=function(e,t){var n,o=Object(T["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},H=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},q={color:"#000",backcolor:"#000",fontsize:"20px",fontname:"微软雅黑",align:"left"},G=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};t=Object(L["a"])(Object(L["a"])({},q),t);var n=R(e),o=P(n,"strong"),l=P(n,"em"),c=P(n,"underline"),a=P(n,"strikethrough"),r=P(n,"superscript"),i=P(n,"subscript"),u=P(n,"code"),d=F(n,"forecolor","color")||t.color,s=F(n,"backcolor","backcolor")||t.backcolor,f=F(n,"fontsize","fontsize")||t.fontsize,p=F(n,"fontname","fontname")||t.fontname,m=H(e,"align")||t.align,b=A("bullet_list",e.state),v=A("ordered_list",e.state),h=A("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}},U={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"),Y=(n("d81d"),n("ac1f"),n("5319"),n("5b81"),n("e9c4"),n("a434"),n("c740"),n("66cb")),Z=n.n(Y),J=n("2ef0"),K=[{id:"test123456",elements:[{type:"shape",id:"4cbRxp",left:0,top:200,width:546,height:362.5,viewBox:[200,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,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"}}],Q={themeColor:"#5b9bd5",fontColor:"#333",fontName:"Microsoft Yahei",backgroundColor:"#fff"},$=[{id:"template",elements:[{type:"shape",id:"4cbRxp",left:0,top:200,width:546,height:362.5,viewBox:[200,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,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,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,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,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,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,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,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,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,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,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,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,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,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,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,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,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,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,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,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,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,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}}"}}],ee=Object(g["b"])("slides",{state:function(){return{theme:Q,slides:K,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=Z()(o).isDark()?"rgba(230, 230, 230, 0.5)":"rgba(180, 180, 180, 0.5)",r=JSON.stringify($).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(L["a"])(Object(L["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(L["a"])(Object(L["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(L["a"])(Object(L["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(J["omit"])(e,o):e}));this.slides[l].elements=a}}}),te=Object(g["b"])("main",{state:function(){return{activeElementIdList:[],handleElementId:"",activeGroupElementId:"",canvasPercentage:90,canvasScale:1,thumbnailsFocus:!1,editorAreaFocus:!1,disableHotkeys:!1,showGridLines:!1,creatingElement:null,availableFonts:[],toolbarState:C.SLIDE_DESIGN,clipingImageElementId:"",richTextAttrs:U,selectedTableCells:[],isScaling:!1,editingShapeElementId:"",selectedSlidesIndex:[]}},getters:{activeElementList:function(e){var t=ee(),n=t.currentSlide;return n&&n.elements?n.elements.filter((function(t){return e.activeElementIdList.includes(t.id)})):[]},handleElement:function(e){var t=ee(),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=S.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}}}),ne=n("1da1"),oe=(n("96cf"),n("ddb0"),n("d4ec")),le=n("257e"),ce=n("262e"),ae=n("2caf"),re=n("ade3"),ie=n("4dec"),ue=function(e){Object(ce["a"])(n,e);var t=Object(ae["a"])(n);function n(){var e;return Object(oe["a"])(this,n),e=t.call(this,"SnapshotDatabase"),Object(re["a"])(Object(le["a"])(e),"snapshots",void 0),e.version(1).stores({snapshots:"++id"}),e.snapshots=e.table("snapshots"),e}return n}(ie["a"]),de=new ue,se=Object(g["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(ne["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=ee(),t.next=3,de.snapshots.orderBy("id").toArray();case 3:return o=t.sent,l=o.slice(-1)[0],l&&de.snapshots.clear(),c={index:n.slideIndex,slides:n.slides},t.next=9,de.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(ne["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=ee(),t.next=3,de.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,de.snapshots.add(c);case 9:return a=o.length-l.length+1,r=20,a>r&&(l.push(o[0]),a--),a>=2&&de.snapshots.update(o[a-2],{index:n.slideIndex}),t.next=15,de.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(ne["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=ee(),o=te(),l=e.snapshotCursor-1,t.next=7,de.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(ne["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=ee(),o=te(),l=e.snapshotCursor+1,t.next=7,de.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)})))()}}}),fe=Object(g["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}}}),pe=Object(g["b"])("screen",{state:function(){return{screening:!1}},actions:{setScreening:function(e){this.screening=e}}}),me=(n("466d"),function(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:8,t="_0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz",n=t.length,o="",l=0;l<e;l++){var c=Math.floor(Math.random()*n);o+=t[c]}return o}),be=function(e,t){return Object(J["padStart"])(""+e,t,"0")},ve=function(){return!navigator.userAgent.match(/(iPhone|iPod|iPad|Android|Mobile|BlackBerry|Symbian|Windows Phone)/i)},he={class:"pptist-editor"},Oe={class:"layout-content"},je={class:"layout-content-center"};function ye(e,t,n,o,l,c){var a=Object(y["resolveComponent"])("EditorHeader"),r=Object(y["resolveComponent"])("Thumbnails"),i=Object(y["resolveComponent"])("CanvasTool"),u=Object(y["resolveComponent"])("Canvas"),d=Object(y["resolveComponent"])("Remark"),s=Object(y["resolveComponent"])("Toolbar");return Object(y["openBlock"])(),Object(y["createElementBlock"])("div",he,[Object(y["createVNode"])(a,{class:"layout-header"}),Object(y["createElementVNode"])("div",Oe,[Object(y["createVNode"])(r,{class:"layout-content-left"}),Object(y["createElementVNode"])("div",je,[Object(y["createVNode"])(i,{class:"center-top"}),Object(y["createVNode"])(u,{class:"center-body",style:Object(y["normalizeStyle"])({height:"calc(100% - ".concat(e.remarkHeight+40,"px)")})},null,8,["style"]),Object(y["createVNode"])(d,{class:"center-bottom",height:e.remarkHeight,"onUpdate:height":t[0]||(t[0]=function(t){return e.remarkHeight=t}),style:Object(y["normalizeStyle"])({height:"".concat(e.remarkHeight,"px")})},null,8,["height","style"])]),Object(y["createVNode"])(s,{class:"layout-content-right"})])])}(function(e){e["UP"]="up",e["DOWN"]="down",e["TOP"]="top",e["BOTTOM"]="bottom"})(k||(k={})),function(e){e["TOP"]="top",e["BOTTOM"]="bottom",e["LEFT"]="left",e["RIGHT"]="right",e["VERTICAL"]="vertical",e["HORIZONTAL"]="horizontal",e["CENTER"]="center"}(E||(E={})),function(e){e["T"]="top",e["B"]="bottom",e["L"]="left",e["R"]="right"}(w||(w={})),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"}(N||(N={})),function(e){e["START"]="start",e["END"]="end",e["C"]="ctrl",e["C1"]="ctrl1",e["C2"]="ctrl2"}(I||(I={})),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"}(V||(V={}));var ge,xe,Ce,ke=[{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"}]}],Ee=(n("3b18"),n("f64c")),we=(n("a630"),n("3ca3"),n("1276"),n("b311")),Ne=n.n(we),Ie=(n("25f0"),n("3452")),Ve=n.n(Ie),Se="pptist",Be=function(e){return Ve.a.AES.encrypt(e,Se).toString()},Le=function(e){var t=Ve.a.AES.decrypt(e,Se);return t.toString(Ve.a.enc.Utf8)},Te=function(e){return new Promise((function(t,n){var o=document.createElement("button"),l=new Ne.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)}))},Me=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")}))},_e=function(e){var t;try{t=JSON.parse(Le(e))}catch(n){t=e}return t},De=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},ze=n("3835"),Ae=(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)]}}),Re=function(e){var t=Ae({left:e.left,top:e.top,width:e.width,height:e.height,rotate:0}),n=t.xRange,o=t.yRange,l=Ae({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]}},Fe=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=Ae({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}},Pe=function(e){var t=[],n=[],o=[],l=[];e.forEach((function(e){var c=Fe(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}},He=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},qe=function(e){var t,n={},o={},l=Object(T["a"])(e);try{for(l.s();!(t=l.n()).done;){var c=t.value,a=c.groupId;a&&!n[a]&&(n[a]=me()),o[c.id]=me()}}catch(r){l.e(r)}finally{l.f()}return{groupIdMap:n,elIdMap:o}},Ge=function(e){var t=Z()(e);return[t.setAlpha(.3).toRgbString(),t.setAlpha(.1).toRgbString()]},Ue=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)}if(e.cubic){var c=Object(ze["a"])(e.cubic,2),a=c[0],r=c[1],i=a.join(","),u=r.join(",");return"M".concat(t," C").concat(i," ").concat(u," ").concat(n)}return"M".concat(t," L").concat(n)},Xe=n("53ca"),We=(n("07ac"),function(e){var t,n=e.replace(/[\n\r]+/g,"<br>"),o=n.split("<br>"),l="",c=Object(T["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}),Ye=function(){var e=se(),t=Object(J["debounce"])((function(){e.addSnapshot()}),300,{trailing:!0}),n=Object(J["throttle"])((function(){e.reDo()}),100,{leading:!0,trailing:!1}),o=Object(J["throttle"])((function(){e.unDo()}),100,{leading:!0,trailing:!1});return{addHistorySnapshot:t,redo:n,undo:o}},Ze=(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}}))}),Je=function(e){return new Promise((function(t){var n=new FileReader;n.addEventListener("load",(function(){t(n.result)})),n.readAsDataURL(e)}))},Ke=1e3;(function(e){e["ROUND_RECT"]="roundRect",e["ROUND_RECT_DIAGONAL"]="roundRectDiagonal",e["ROUND_RECT_SINGLE"]="roundRectSingle",e["ROUND_RECT_SAMESIDE"]="roundRectSameSide",e["CUT_RECT_DIAGONAL"]="cutRectDiagonal",e["CUT_RECT_SINGLE"]="cutRectSingle",e["CUT_RECT_SAMESIDE"]="cutRectSameSide",e["MESSAGE"]="message",e["ROUND_MESSAGE"]="roundMessage"})(ge||(ge={})),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"}(xe||(xe={}));var Qe=(Ce={},Object(re["a"])(Ce,ge.ROUND_RECT,(function(e,t){var n=Math.min(e,t)/8;return"M ".concat(n," 0 L ").concat(e-n," 0 Q ").concat(e," 0 ").concat(e," ").concat(n," L ").concat(e," ").concat(t-n," Q ").concat(e," ").concat(t," ").concat(e-n," ").concat(t," L ").concat(n," ").concat(t," Q 0 ").concat(t," 0 ").concat(t-n," L 0 ").concat(n," Q 0 0 ").concat(n," 0 Z")})),Object(re["a"])(Ce,ge.CUT_RECT_DIAGONAL,(function(e,t){var n=Math.min(e,t)/5;return"M 0 ".concat(t-n," L 0 0 L ").concat(e-n," 0 L ").concat(e," ").concat(n," L ").concat(e," ").concat(t," L ").concat(n," ").concat(t," Z")})),Object(re["a"])(Ce,ge.CUT_RECT_SINGLE,(function(e,t){var n=Math.min(e,t)/5;return"M 0 ".concat(t," L 0 0 L ").concat(e-n," 0 L ").concat(e," ").concat(n," L ").concat(e," ").concat(t," Z")})),Object(re["a"])(Ce,ge.CUT_RECT_SAMESIDE,(function(e,t){var n=Math.min(e,t)/5;return"M 0 ".concat(n," L ").concat(n," 0 L ").concat(e-n," 0 L ").concat(e," ").concat(n," L ").concat(e," ").concat(t," L 0 ").concat(t," Z")})),Object(re["a"])(Ce,ge.ROUND_RECT_DIAGONAL,(function(e,t){var n=Math.min(e,t)/8;return"M 0 0 L ".concat(e-n," 0 Q ").concat(e," 0 ").concat(e," ").concat(n," L ").concat(e," ").concat(t," L ").concat(n," ").concat(t," Q 0 ").concat(t," 0 ").concat(t-n," L 0 0 Z")})),Object(re["a"])(Ce,ge.ROUND_RECT_SINGLE,(function(e,t){var n=Math.min(e,t)/8;return"M 0 0 L ".concat(e-n," 0 Q ").concat(e," 0 ").concat(e," ").concat(n," L ").concat(e," ").concat(t," L 0 ").concat(t," L 0 0 Z")})),Object(re["a"])(Ce,ge.ROUND_RECT_SAMESIDE,(function(e,t){var n=Math.min(e,t)/8;return"M 0 ".concat(n," Q 0 0 ").concat(n," 0 L ").concat(e-n," 0 Q ").concat(e," 0 ").concat(e," ").concat(n," L ").concat(e," ").concat(t," L 0 ").concat(t," Z")})),Object(re["a"])(Ce,ge.MESSAGE,(function(e,t){var n=e/5,o=t/5;return"M 0 0 L ".concat(e," 0 L ").concat(e," ").concat(t-o," L ").concat(e/2," ").concat(t-o," L ").concat(e/2-n," ").concat(t," L ").concat(e/2-n," ").concat(t-o," L 0 ").concat(t-o," Z")})),Object(re["a"])(Ce,ge.ROUND_MESSAGE,(function(e,t){var n=Math.min(e,t)/8,o=e/5,l=t/5;return"M 0 ".concat(n," Q 0 0 ").concat(n," 0 L ").concat(e-n," 0 Q ").concat(e," 0 ").concat(e," ").concat(n," L ").concat(e," ").concat(t-n-l," Q ").concat(e," ").concat(t-l," ").concat(e-n," ").concat(t-l," L ").concat(e/2," ").concat(t-l," L ").concat(e/2-o," ").concat(t," L ").concat(e/2-o," ").concat(t-l," L ").concat(n," ").concat(t-l," Q 0 ").concat(t-l," 0 ").concat(t-n-l," L 0 ").concat(n," Z")})),Ce),$e=[{type:"矩形",children:[{viewBox:[200,200],path:"M 0 0 L 200 0 L 200 200 L 0 200 Z"},{viewBox:[200,200],path:"M 50 0 L 150 0 Q 200 0 200 50 L 200 150 Q 200 200 150 200 L 50 200 Q 0 200 0 150 L 0 50 Q 0 0 50 0 Z",pathFormula:ge.ROUND_RECT},{viewBox:[200,200],path:"M 0 150 L 0 0 L 150 0 L 200 50 L 200 200 L 50 200 Z",pathFormula:ge.CUT_RECT_DIAGONAL},{viewBox:[200,200],path:"M 0 200 L 0 0 L 150 0 L 200 50 L 200 200 Z",pathFormula:ge.CUT_RECT_SINGLE},{viewBox:[200,200],path:"M 0 50 L 50 0 L 150 0 L 200 50 L 200 200 L 0 200 Z",pathFormula:ge.CUT_RECT_SAMESIDE},{viewBox:[200,200],path:"M 0 0 L 150 0 Q 200 0 200 50 L 200 200 L 50 200 Q 0 200 0 150 L 0 0 Z",pathFormula:ge.ROUND_RECT_DIAGONAL},{viewBox:[200,200],path:"M 0 0 L 150 0 Q 200 0 200 50 L 200 200 L 0 200 L 0 0 Z",pathFormula:ge.ROUND_RECT_SINGLE},{viewBox:[200,200],path:"M 0 50 Q 0 0 50 0 L 150 0 Q 200 0 200 50 L 200 200 L 0 200 Z",pathFormula:ge.ROUND_RECT_SAMESIDE}]},{type:"常用形状",children:[{viewBox:[200,200],path:"M 100 0 A 50 50 0 1 1 100 200 A 50 50 0 1 1 100 0 Z"},{viewBox:[200,200],path:"M 0 200 A 50 100 0 1 1 200 200 L 0 200 Z"},{viewBox:[200,200],path:"M 100 0 A 100 100 102 1 0 200 100 L 100 100 L 100 0 Z"},{viewBox:[200,200],path:"M 100 0 A 100 100 102 1 0 200 100 L 100 0 Z"},{viewBox:[200,200],path:"M 100 0 A 100 100 102 1 0 200 100 L 200 0 L 100 0 Z"},{viewBox:[200,200],path:"M 0 0 L 200 0 Q 200 200 0 200 L 0 0 Z"},{viewBox:[200,200],path:"M 100 0 L 0 200 L 200 200 L 100 0 Z"},{viewBox:[200,200],path:"M 0 0 L 0 200 L 200 200 Z"},{viewBox:[200,200],path:"M 50 0 L 200 0 L 150 200 L 0 200 L 50 0 Z"},{viewBox:[200,200],path:"M 0 0 L 150 0 L 200 200 L 50 200 L 0 0 Z"},{viewBox:[200,200],path:"M 50 0 L 150 0 L 200 200 L 0 200 L 50 0 Z"},{viewBox:[200,200],path:"M 100 0 L 0 100 L 100 200 L 200 100 L 100 0 Z"},{viewBox:[200,200],path:"M 100 0 L 0 90 L 50 200 L 150 200 L 200 90 L 100 0 Z"},{viewBox:[200,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,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,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,200],path:"M 100 0 L 0 50 L 0 200 L 200 200 L 200 50 L 100 0 Z"},{viewBox:[200,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,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,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,200],path:"M 200 0 L 200 200 L 0 200 L 0 100 L 200 0 Z"},{viewBox:[200,200],path:"M 0 0 L 200 100 L 200 200 L 0 200 L 0 0 Z"},{viewBox:[200,200],path:"M 200 0 L 100 0 L 0 100 L 0 200 L 200 0 Z"},{viewBox:[200,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,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,200],path:"M0 0 L200 0 L200 200 L0 200 L0 0 Z M50 50 L50 150 L150 150 L150 50 Z"},{viewBox:[200,200],path:"M0 100 A100 100 0 1 1 0 101 Z M150 100 A50 50 0 1 0 150 101 Z"},{viewBox:[200,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,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,200],path:"M 0 0 L 200 0 L 200 160 L 100 160 L 60 200 L 60 160 L 0 160 Z",pathFormula:ge.MESSAGE},{viewBox:[200,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",pathFormula:ge.ROUND_MESSAGE},{viewBox:[200,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,200],path:"M 200 0 L 0 0 L 200 200 L 0 200 L 200 0 Z"},{viewBox:[200,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,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,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,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,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,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,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,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,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,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,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,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,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,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,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,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,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,200],path:"M 0 0 L 200 100 L 0 200 L 60 100 L 0 0 Z"},{viewBox:[200,200],path:"M 200 0 L 0 100 L 200 200 L 140 100 L 200 0 Z"},{viewBox:[200,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,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,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,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,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,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,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,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,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,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,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,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,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,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,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,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,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,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,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,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,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,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,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}]}],et=function(){var e=te(),t=ee(),n=Object(g["c"])(e),o=n.creatingElement,l=Object(g["c"])(t),c=l.theme,a=l.viewportRatio,r=Ye(),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){Ze(e).then((function(t){var n=t.width,o=t.height,l=o/n;l<a.value&&n>Ke?(n=Ke,o=n*l):o>Ke*a.value&&(o=Ke*a.value,n=o/l),u({type:"image",id:me(),src:e,width:n,height:o,left:(Ke-n)/2,top:(Ke*a.value-o)/2,fixedRatio:!0,rotate:0})}))},s=function(e){u({type:"chart",id:me(),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:me(),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:me(),width:p,height:m,colWidths:f,rotate:0,data:o,left:(Ke-p)/2,top:(Ke*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:me(),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:me(),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),t.pathFormula&&(r.pathFormula=t.pathFormula,r.viewBox=[l,a],r.path=Qe[t.pathFormula](l,a)),u(r)},b=function(e,t){var n=e.left,o=e.top,l=e.start,a=e.end,r={type:"line",id:me(),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]),t.isCubic&&(r.cubic=[[(l[0]+a[0])/2,(l[1]+a[1])/2],[(l[0]+a[0])/2,(l[1]+a[1])/2]]),u(r)},v=function(e){u({type:"latex",id:me(),width:e.w,height:e.h,rotate:0,left:(Ke-e.w)/2,top:(Ke*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:me(),width:500,height:300,rotate:0,left:(Ke-500)/2,top:(Ke*a.value-300)/2,src:e})},O=function(e){u({type:"audio",id:me(),width:50,height:50,rotate:0,left:(Ke-50)/2,top:(Ke*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}},tt=function(){var e=te(),t=ee(),n=Object(g["c"])(t),o=n.currentSlide,l=Ye(),c=l.addHistorySnapshot,a=et(),r=a.createTextElement,i=function(n){var l,a=qe(n),r=a.groupIdMap,i=a.elIdMap,u=o.value.elements.map((function(e){return e.id})),d=Object(T["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=qe(e.elements),o=n.groupIdMap,l=n.elIdMap,c=Object(T["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(T["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(L["a"])(Object(L["a"])({},e),{},{id:me()})}));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=_e(e);if("object"===Object(Xe["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=We(l);d(r)}};return{addSlidesFromClipboard:u,pasteTextClipboardData:s}},nt=function(){var e=te(),t=ee(),n=Object(g["c"])(e),o=n.selectedSlidesIndex,l=Object(g["c"])(t),c=l.currentSlide,a=l.slides,r=l.theme,i=l.slideIndex,u=Object(y["computed"])((function(){return[].concat(Object(W["a"])(o.value),[i.value])})),d=Object(y["computed"])((function(){return a.value.filter((function(e,t){return u.value.includes(t)}))})),s=Object(y["computed"])((function(){return d.value.map((function(e){return e.id}))})),f=tt(),p=f.pasteTextClipboardData,m=f.addSlidesFromClipboard,b=Ye(),v=b.addHistorySnapshot,h=function(){var n={id:me(),elements:[],background:{type:"solid",color:r.value.backgroundColor}};t.updateSlideIndex(0),e.setActiveElementIdList([]),t.setSlides([n])},O=function(e){e===V.UP&&i.value>0?t.updateSlideIndex(i.value-1):e===V.DOWN&&i.value<a.value.length-1&&t.updateSlideIndex(i.value+1)},j=function(){var t=Be(JSON.stringify({type:"slides",data:d.value}));Te(t).then((function(){e.setThumbnailsFocus(!0)}))},x=function(){Me().then((function(e){p(e,{onlySlide:!0})})).catch((function(e){return Ee["a"].warning(e)}))},C=function(){var n={id:me(),elements:[],background:{type:"solid",color:r.value.backgroundColor}};e.setActiveElementIdList([]),t.addSlide(n),v()},k=function(n){var o,l=qe(n.elements),c=l.groupIdMap,a=l.elIdMap,r=Object(T["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(L["a"])(Object(L["a"])({},n),{},{id:me()});e.setActiveElementIdList([]),t.addSlide(u),v()},E=function(){var e=JSON.parse(JSON.stringify(c.value));m([e])},w=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()},N=function(){var e=Object(W["a"])(s.value);j(),w(e)},I=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:j,pasteSlide:x,createSlide:C,createSlideByTemplate:k,copyAndPasteSlide:E,deleteSlide:w,cutSlide:N,selectAllSlide:I}},ot=function(){var e=te(),t=ee(),n=Object(g["c"])(e),o=n.activeElementIdList,l=Object(g["c"])(t),c=l.currentSlide,a=Ye(),r=a.addHistorySnapshot,i=function(){var n,l=JSON.parse(JSON.stringify(c.value.elements)),a=Object(T["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(T["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(T["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}},lt=function(){var e=te(),t=ee(),n=Object(g["c"])(e),o=n.activeElementIdList,l=n.activeGroupElementId,c=Object(g["c"])(t),a=c.currentSlide,r=Ye(),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}},ct=function(){var e=te(),t=ee(),n=Object(g["c"])(e),o=n.activeElementIdList,l=n.activeElementList,c=n.handleElementId,a=Object(g["c"])(t),r=a.currentSlide,i=Ye(),u=i.addHistorySnapshot,d=Object(y["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=me(),i=[],d=Object(T["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(T["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}},at=function(){var e=te(),t=Object(g["c"])(e),n=t.activeElementIdList,o=t.activeElementList,l=tt(),c=l.pasteTextClipboardData,a=lt(),r=a.deleteElement,i=function(){if(n.value.length){var t=Be(JSON.stringify({type:"elements",data:o.value}));Te(t).then((function(){e.setEditorareaFocus(!0)}))}},u=function(){i(),r()},d=function(){Me().then((function(e){c(e)})).catch((function(e){return Ee["a"].warning(e)}))},s=function(){i(),d()};return{copyElement:i,cutElement:u,pasteElement:d,quickCopyElement:s}},rt=function(){var e=te(),t=Object(g["c"])(ee()),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}},it=function(){var e=ee(),t=Object(g["c"])(te()),n=t.activeElementIdList,o=t.activeGroupElementId,l=Object(g["c"])(e),c=l.currentSlide,a=Ye(),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 V.LEFT:n-=l;break;case V.RIGHT:n+=l;break;case V.UP:o-=l;break;case V.DOWN:o+=l;break;default:break}return Object(L["a"])(Object(L["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}},ut=function(){var e=ee(),t=Object(g["c"])(e),n=t.currentSlide,o=Ye(),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===k.UP?c=a(n.value.elements,t):o===k.DOWN?c=r(n.value.elements,t):o===k.TOP?c=i(n.value.elements,t):o===k.BOTTOM&&(c=u(n.value.elements,t)),c&&(e.updateSlide({elements:c}),l())};return{orderElement:d}},dt=function(){var e=document.documentElement;e.requestFullscreen?e.requestFullscreen():e.mozRequestFullScreen?e.mozRequestFullScreen():e.webkitRequestFullScreen&&e.webkitRequestFullScreen()},st=function(){document.exitFullscreen?document.exitFullscreen():document.mozCancelFullScreen?document.mozCancelFullScreen():document.webkitCancelFullScreen&&document.webkitCancelFullScreen()},ft=function(){return document.mozFullScreen||document.webkitIsFullScreen||document.webkitFullScreen},pt=function(){var e=pe(),t=ee(),n=function(){dt(),e.setScreening(!0)},o=function(){t.updateSlideIndex(0),n()},l=function(){e.setScreening(!1),ft()&&st()};return{enterScreening:n,enterScreeningFromStart:o,exitScreening:l}},mt=function(){var e=te(),t=Object(g["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}},bt=function(){var e=te(),t=fe(),n=Object(g["c"])(e),o=n.activeElementIdList,l=n.disableHotkeys,c=n.handleElement,a=n.handleElementId,r=n.editorAreaFocus,i=n.thumbnailsFocus,u=Object(g["c"])(ee()),d=u.currentSlide,s=Object(g["c"])(t),f=s.ctrlKeyState,p=s.shiftKeyState,m=nt(),b=m.updateSlideIndex,v=m.copySlide,h=m.createSlide,O=m.deleteSlide,j=m.cutSlide,x=m.copyAndPasteSlide,C=m.selectAllSlide,E=ct(),w=E.combineElements,N=E.uncombineElements,I=lt(),S=I.deleteElement,B=ot(),L=B.lockElement,T=at(),M=T.copyElement,_=T.cutElement,D=T.quickCopyElement,z=rt(),A=z.selectAllElement,R=it(),F=R.moveElement,P=ut(),H=P.orderElement,q=Ye(),G=q.redo,U=q.undo,X=pt(),W=X.enterScreening,Y=mt(),Z=Y.scaleCanvas,J=Y.setCanvasPercentage,K=function(){o.value.length?M():i.value&&v()},Q=function(){o.value.length?_():i.value&&j()},$=function(){o.value.length?D():i.value&&x()},ne=function(){r.value&&A(),i.value&&C()},oe=function(){r.value&&L()},le=function(){r.value&&w()},ce=function(){r.value&&N()},ae=function(){o.value.length?S():i.value&&O()},re=function(e){o.value.length?F(e):e!==V.UP&&e!==V.DOWN||b(e)},ie=function(e){c.value&&H(c.value,e)},ue=function(){i.value&&h()},de=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])}},se=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===V.F&&(e.preventDefault(),W(),t.setCtrlKeyState(!1)),r.value||i.value){if(u&&d===V.C){if(l.value)return;e.preventDefault(),K()}if(u&&d===V.X){if(l.value)return;e.preventDefault(),Q()}if(u&&d===V.D){if(l.value)return;e.preventDefault(),$()}if(u&&d===V.Z){if(l.value)return;e.preventDefault(),U()}if(u&&d===V.Y){if(l.value)return;e.preventDefault(),G()}if(u&&d===V.A){if(l.value)return;e.preventDefault(),ne()}if(u&&d===V.L){if(l.value)return;e.preventDefault(),oe()}if(!o&&u&&d===V.G){if(l.value)return;e.preventDefault(),le()}if(o&&u&&d===V.G){if(l.value)return;e.preventDefault(),ce()}if(c&&d===V.F){if(l.value)return;e.preventDefault(),ie(k.TOP)}if(c&&d===V.B){if(l.value)return;e.preventDefault(),ie(k.BOTTOM)}if(d===V.DELETE||d===V.BACKSPACE){if(l.value)return;e.preventDefault(),ae()}if(d===V.UP){if(l.value)return;e.preventDefault(),re(V.UP)}if(d===V.DOWN){if(l.value)return;e.preventDefault(),re(V.DOWN)}if(d===V.LEFT){if(l.value)return;e.preventDefault(),re(V.LEFT)}if(d===V.RIGHT){if(l.value)return;e.preventDefault(),re(V.RIGHT)}if(d===V.ENTER){if(l.value)return;e.preventDefault(),ue()}if(d===V.MINUS){if(l.value)return;e.preventDefault(),Z("-")}if(d===V.EQUAL){if(l.value)return;e.preventDefault(),Z("+")}if(d===V.DIGIT_0){if(l.value)return;e.preventDefault(),J(90)}if(d===V.TAB){if(l.value)return;e.preventDefault(),de()}}},pe=function(){f.value&&t.setCtrlKeyState(!1),p.value&&t.setShiftKeyState(!1)};Object(y["onMounted"])((function(){document.addEventListener("keydown",se),document.addEventListener("keyup",pe),window.addEventListener("blur",pe)})),Object(y["onUnmounted"])((function(){document.removeEventListener("keydown",se),document.removeEventListener("keyup",pe),window.removeEventListener("blur",pe)}))},vt=function(){var e=Object(g["c"])(te()),t=e.editorAreaFocus,n=e.thumbnailsFocus,o=e.disableHotkeys,l=tt(),c=l.pasteTextClipboardData,a=et(),r=a.createImageElement,i=function(e){Je(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(T["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(y["onMounted"])((function(){document.addEventListener("paste",u)})),Object(y["onUnmounted"])((function(){document.removeEventListener("paste",u)}))},ht=function(e){return Object(y["pushScopeId"])("data-v-32a5341e"),e=e(),Object(y["popScopeId"])(),e},Ot={class:"editor-header"},jt={class:"left"},yt={class:"menu-item"},gt=Object(y["createTextVNode"])(),xt=ht((function(){return Object(y["createElementVNode"])("span",{class:"text"},"文件",-1)})),Ct=Object(y["createTextVNode"])("导出 JSON"),kt=Object(y["createTextVNode"])("导出 PPTX"),Et={class:"menu-item"},wt=Object(y["createTextVNode"])(),Nt=ht((function(){return Object(y["createElementVNode"])("span",{class:"text"},"编辑",-1)})),It=Object(y["createTextVNode"])("撤销"),Vt=Object(y["createTextVNode"])("重做"),St=Object(y["createTextVNode"])("添加页面"),Bt=Object(y["createTextVNode"])("删除页面"),Lt=Object(y["createTextVNode"])("重置幻灯片"),Tt={class:"menu-item"},Mt=Object(y["createTextVNode"])(),_t=ht((function(){return Object(y["createElementVNode"])("span",{class:"text"},"演示",-1)})),Dt=Object(y["createTextVNode"])("从头开始"),zt=Object(y["createTextVNode"])("从当前页开始"),At={class:"menu-item"},Rt=Object(y["createTextVNode"])(),Ft=ht((function(){return Object(y["createElementVNode"])("span",{class:"text"},"帮助",-1)})),Pt=Object(y["createTextVNode"])("意见反馈"),Ht=Object(y["createTextVNode"])("快捷键"),qt={class:"right"},Gt={href:"https://github.com/pipipi-pikachu/PPTist",target:"_blank"},Ut={class:"menu-item"};function Xt(e,t,n,o,l,c){var a=Object(y["resolveComponent"])("IconFolderClose"),r=Object(y["resolveComponent"])("MenuItem"),i=Object(y["resolveComponent"])("Menu"),u=Object(y["resolveComponent"])("Dropdown"),d=Object(y["resolveComponent"])("IconEdit"),s=Object(y["resolveComponent"])("IconPpt"),f=Object(y["resolveComponent"])("IconHelpcenter"),p=Object(y["resolveComponent"])("Tooltip"),m=Object(y["resolveComponent"])("IconGithub"),b=Object(y["resolveComponent"])("HotkeyDoc"),v=Object(y["resolveComponent"])("Drawer"),h=Object(y["resolveComponent"])("FullscreenSpin");return Object(y["openBlock"])(),Object(y["createElementBlock"])("div",Ot,[Object(y["createElementVNode"])("div",jt,[Object(y["createVNode"])(u,{trigger:["click"]},{overlay:Object(y["withCtx"])((function(){return[Object(y["createVNode"])(i,null,{default:Object(y["withCtx"])((function(){return[Object(y["createVNode"])(r,{onClick:t[0]||(t[0]=function(t){return e.exportJSON()})},{default:Object(y["withCtx"])((function(){return[Ct]})),_:1}),Object(y["createVNode"])(r,{onClick:t[1]||(t[1]=function(t){return e.exportPPTX()})},{default:Object(y["withCtx"])((function(){return[kt]})),_:1})]})),_:1})]})),default:Object(y["withCtx"])((function(){return[Object(y["createElementVNode"])("div",yt,[Object(y["createVNode"])(a),gt,xt])]})),_:1}),Object(y["createVNode"])(u,{trigger:["click"]},{overlay:Object(y["withCtx"])((function(){return[Object(y["createVNode"])(i,null,{default:Object(y["withCtx"])((function(){return[Object(y["createVNode"])(r,{onClick:t[2]||(t[2]=function(t){return e.undo()})},{default:Object(y["withCtx"])((function(){return[It]})),_:1}),Object(y["createVNode"])(r,{onClick:t[3]||(t[3]=function(t){return e.redo()})},{default:Object(y["withCtx"])((function(){return[Vt]})),_:1}),Object(y["createVNode"])(r,{onClick:t[4]||(t[4]=function(t){return e.createSlide()})},{default:Object(y["withCtx"])((function(){return[St]})),_:1}),Object(y["createVNode"])(r,{onClick:t[5]||(t[5]=function(t){return e.deleteSlide()})},{default:Object(y["withCtx"])((function(){return[Bt]})),_:1}),Object(y["createVNode"])(r,{onClick:t[6]||(t[6]=function(t){return e.toggleGridLines()})},{default:Object(y["withCtx"])((function(){return[Object(y["createTextVNode"])(Object(y["toDisplayString"])(e.showGridLines?"关闭网格线":"打开网格线"),1)]})),_:1}),Object(y["createVNode"])(r,{onClick:t[7]||(t[7]=function(t){return e.resetSlides()})},{default:Object(y["withCtx"])((function(){return[Lt]})),_:1})]})),_:1})]})),default:Object(y["withCtx"])((function(){return[Object(y["createElementVNode"])("div",Et,[Object(y["createVNode"])(d),wt,Nt])]})),_:1}),Object(y["createVNode"])(u,{trigger:["click"]},{overlay:Object(y["withCtx"])((function(){return[Object(y["createVNode"])(i,null,{default:Object(y["withCtx"])((function(){return[Object(y["createVNode"])(r,{onClick:t[8]||(t[8]=function(t){return e.enterScreeningFromStart()})},{default:Object(y["withCtx"])((function(){return[Dt]})),_:1}),Object(y["createVNode"])(r,{onClick:t[9]||(t[9]=function(t){return e.enterScreening()})},{default:Object(y["withCtx"])((function(){return[zt]})),_:1})]})),_:1})]})),default:Object(y["withCtx"])((function(){return[Object(y["createElementVNode"])("div",Tt,[Object(y["createVNode"])(s),Mt,_t])]})),_:1}),Object(y["createVNode"])(u,{trigger:["click"]},{overlay:Object(y["withCtx"])((function(){return[Object(y["createVNode"])(i,null,{default:Object(y["withCtx"])((function(){return[Object(y["createVNode"])(r,{onClick:t[10]||(t[10]=function(t){return e.goIssues()})},{default:Object(y["withCtx"])((function(){return[Pt]})),_:1}),Object(y["createVNode"])(r,{onClick:t[11]||(t[11]=function(t){return e.hotkeyDrawerVisible=!0})},{default:Object(y["withCtx"])((function(){return[Ht]})),_:1})]})),_:1})]})),default:Object(y["withCtx"])((function(){return[Object(y["createElementVNode"])("div",At,[Object(y["createVNode"])(f),Rt,Ft])]})),_:1})]),Object(y["createElementVNode"])("div",qt,[Object(y["createVNode"])(p,{mouseLeaveDelay:0,title:"幻灯片放映"},{default:Object(y["withCtx"])((function(){return[Object(y["createElementVNode"])("div",{class:"menu-item",onClick:t[12]||(t[12]=function(t){return e.enterScreening()})},[Object(y["createVNode"])(s,{size:"18",fill:"#666",style:{"margin-top":"2px"}})])]})),_:1}),Object(y["createElementVNode"])("a",Gt,[Object(y["createElementVNode"])("div",Ut,[Object(y["createVNode"])(m,{size:"18",fill:"#666"})])])]),Object(y["createVNode"])(v,{width:"320",placement:"right",visible:e.hotkeyDrawerVisible,onClose:t[13]||(t[13]=function(t){return e.hotkeyDrawerVisible=!1})},{default:Object(y["withCtx"])((function(){return[Object(y["createVNode"])(b)]})),_:1},8,["visible"]),Object(y["createVNode"])(h,{loading:e.exporting,tip:"正在导出..."},null,8,["loading"])])}n("9911"),n("cc71");var Wt=n("21a6"),Yt=n("8f74"),Zt=(n("00b4"),["style","script","template"]),Jt=["html","head","body","p","dt","dd","li","option","thead","th","tbody","tr","td","tfoot","colgroup"],Kt={li:["ul","ol","menu"],dt:["dl"],dd:["dl"],tbody:["table"],thead:["table"],tfoot:["table"],tr:["table"],td:["table"]},Qt=["!doctype","area","base","br","col","command","embed","hr","img","input","keygen","link","meta","param","source","track","wbr"],$t=function(e,t){var n=t-e.position;en(e,n)},en=function(e,t){e.position=e.position+t},tn=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},nn=function(e){var t=e.str,n=tn(t,e.position);if(n!==e.position){-1===n&&(n=t.length);var o=t.slice(e.position,n);$t(e,n),e.tokens.push({type:"text",content:o})}},on=function(e){var t=e.str;en(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);$t(e,o),e.tokens.push({type:"comment",content:l})},ln=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++}$t(e,a);var u=t.slice(o,a);return e.tokens.push({type:"tag",content:u}),u},cn=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++}}}$t(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(J["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(J["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})}},an=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){nn(t);break}var i={str:n,position:t.position,tokens:[]};$t(i,r);var u=rn(i);if(l===u.toLowerCase()){if(r!==t.position){var d=t.position;$t(t,r),o.push({type:"text",content:n.slice(d,r)})}o.push.apply(o,Object(W["a"])(i.tokens)),$t(t,i.position);break}a=i.position}},rn=function(e){var t=e.str,n=t.charAt(e.position+1),o="/"===n;en(e,o?2:1),e.tokens.push({type:"tag-start",close:o});var l=ln(e);cn(e);var c=t.charAt(e.position),a="/"===c;return en(e,a?2:1),e.tokens.push({type:"tag-end",close:a}),l},un=function(e){var t=e.str,n=t.length;while(e.position<n){var o=e.position;if(nn(e),e.position===o){var l=Object(J["startsWith"])(t,"!--",o+1);if(l)on(e);else{var c=rn(e),a=c.toLowerCase();Zt.includes(a)&&an(c,e)}}}},dn=function(e){var t={str:e,position:0,tokens:[]};return un(t),t.tokens},sn=function(e){var t={tagName:null,children:[]},n={tokens:e,cursor:0,stack:[t]};return mn(n),t.children},fn=function(e,t){var n=Kt[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},pn=function(e,t){e.splice(t)},mn=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){pn(n,d);break}}else{var f=Jt.includes(u),p=f;if(p&&(p=!fn(u,n)),p){var m=n.length-1;while(m>0){if(u===n[m].tagName){pn(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||Qt.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},bn=(n("498a"),function(e,t){var n=e.indexOf(t);return-1===n?[e]:[e.slice(0,n),e.slice(n+t.length)]}),vn=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},hn=function(e){return e.map((function(e){var t=bn(e.trim(),"="),n=t[0],o="string"===typeof t[1]?vn(t[1]):null;return{key:n,value:o}}))},On=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:hn(t.attributes),children:n};return o}var l={type:t.type,content:t.content};return l}))},jn=function(e){var t=dn(e),n=sn(t);return On(n)},yn=n("d01f"),gn=n("0b89"),xn={1:"Z",2:"M",4:"H",8:"V",16:"L",32:"C",64:"S",128:"Q",256:"T",512:"A"},Cn=function(e){var t,n=new yn["a"](e),o=[],l=Object(T["a"])(n.commands);try{for(l.s();!(t=l.n()).done;){var c=t.value,a=xn[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(gn["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(T["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},kn="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",En="data:image/svg+xml;base64,",wn=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},Nn=function(e){var t,n,o,l,c,a,r,i="",u=0;e=wn(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+kn.charAt(l)+kn.charAt(c)+kn.charAt(a)+kn.charAt(r);return i},In=function(e){var t=new XMLSerializer,n=t.serializeToString(e);return En+Nn(n)},Vn=function(){var e=Object(g["c"])(ee()),t=e.slides,n=Object(y["ref"])(!1),o=function(){var e=new Blob([JSON.stringify(t.value)],{type:""});Object(Wt["saveAs"])(e,"pptist_slides.json")},l=function(e){var t=Z()(e),n=t.getAlpha(),o=0===n?"#ffffff":t.setAlpha(1).toHexString();return{alpha:n,color:o}},c=function(e){var t=jn(e),n=[],o=function e(t){var o,c=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},a=Object(T["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(L["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(T["a"])(f);try{for(p.s();!(s=p.n()).done;){var m=s.value,b=m.split(": "),v=Object(ze["a"])(b,2),h=v[0],O=v[1],j=[Object(J["trim"])(h),Object(J["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 Yt["a"],r=Object(T["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(ze["a"])(d.gradientColor,2),p=f[0],m=f[1],b=Z.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(T["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=In(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 E,w,N={x:e.width/e.viewBox[0],y:e.height/e.viewBox[1]},I=a(Cn(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!==(E=e.outline)&&void 0!==E&&E.width)B.line={color:l((null===(w=e.outline)||void 0===w?void 0:w.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 R=Ue(e),F=a(Cn(R)),P=Fe(e),H=P.minX,q=P.maxX,G=P.minY,U=P.maxY,X={x:e.left/100,y:e.top/100,w:(q-H)/100,h:(U-G)/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:F};u.addShape("custGeom",X)}else if("chart"===e.type){for(var Y=[],J=0;J<e.data.series.length;J++){var K=e.data.series[J];Y.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=Z()(e.themeColor[0]).analogous(10).map((function(e){return l(e.toHexString()).color}));else{var $=e.themeColor.length,ee=Z()(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,Y.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,Y,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=Ge(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,Ee,we,Ne,Ie,Ve,Se,Be,Le=ye[xe],Te={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!==(Ee=Le.style)&&void 0!==Ee&&Ee.underline?"sng":"none"},align:(null===(we=Le.style)||void 0===we?void 0:we.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 Me=void 0;Me=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)&&(Me=he),Te.fill={color:Me.color,transparency:100*(1-Me.alpha)}}if(null!==(Se=Le.style)&&void 0!==Se&&Se.backcolor){var _e=l(Le.style.backcolor);Te.fill={color:_e.color,transparency:100*(1-_e.alpha)}}null!==(Be=Le.style)&&void 0!==Be&&Be.color&&(Te.color=l(Le.style.color).color),ie.includes("".concat(je,"_").concat(xe))||ge.push({text:Le.text,options:Te})}ge.length&&be.push(ge)}var De={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&&(De.fill={color:"#ffffff"}),e.outline.width&&e.outline.color&&(De.border={type:"solid"===e.outline.style?"solid":"dash",pt:.75*e.outline.width,color:l(e.outline.color).color}),u.addTable(be,De)}else if("latex"===e.type){var ze=document.querySelector(".thumbnail-list .base-element-".concat(e.id," svg")),Ae=In(ze),Re={data:Ae,x:e.left/100,y:e.top/100,w:e.width/100,h:e.height/100};if(e.link){var Pe=e.link,He=Pe.type,qe=Pe.target;if("web"===He)Re.hyperlink={url:qe};else if("slide"===He){var Xe=t.value.findIndex((function(e){return e.id===qe}));-1!==Xe&&(Re.hyperlink={slide:Xe+1})}}u.addImage(Re)}};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,Ee["a"].error("导出失败")}))};return{exporting:n,exportJSON:o,exportPPTX:r}},Sn={class:"hotkey-doc"},Bn={class:"title"},Ln={class:"label"},Tn={class:"value"};function Mn(e,t,n,o,l,c){return Object(y["openBlock"])(),Object(y["createElementBlock"])("div",Sn,[(Object(y["openBlock"])(!0),Object(y["createElementBlock"])(y["Fragment"],null,Object(y["renderList"])(e.hotkeys,(function(e){return Object(y["openBlock"])(),Object(y["createElementBlock"])(y["Fragment"],{key:e.type},[Object(y["createElementVNode"])("div",Bn,Object(y["toDisplayString"])(e.type),1),(Object(y["openBlock"])(!0),Object(y["createElementBlock"])(y["Fragment"],null,Object(y["renderList"])(e.children,(function(e){return Object(y["openBlock"])(),Object(y["createElementBlock"])("div",{class:"hotkey-item",key:e.label},[Object(y["createElementVNode"])("div",Ln,Object(y["toDisplayString"])(e.label),1),Object(y["createElementVNode"])("div",Tn,Object(y["toDisplayString"])(e.value),1)])})),128))],64)})),128))])}var _n=Object(y["defineComponent"])({name:"hotkey-doc",setup:function(){return{hotkeys:ke}}}),Dn=(n("161f"),n("d959")),zn=n.n(Dn);const An=zn()(_n,[["render",Mn],["__scopeId","data-v-b6d79f64"]]);var Rn=An,Fn=Object(y["defineComponent"])({name:"editor-header",components:{HotkeyDoc:Rn},setup:function(){var e=te(),t=Object(g["c"])(e),n=t.showGridLines,o=pt(),l=o.enterScreening,c=o.enterScreeningFromStart,a=nt(),r=a.createSlide,i=a.deleteSlide,u=a.resetSlides,d=Ye(),s=d.redo,f=d.undo,p=Vn(),m=p.exporting,b=p.exportJSON,v=p.exportPPTX,h=function(){e.setGridLinesState(!n.value)},O=Object(y["ref"])(!1),j=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:j}}});n("35da");const Pn=zn()(Fn,[["render",Xt],["__scopeId","data-v-32a5341e"]]);var Hn=Pn,qn={class:"operates"};function Gn(e,t,n,o,l,c){var a=Object(y["resolveComponent"])("ElementCreateSelection"),r=Object(y["resolveComponent"])("AlignmentLine"),i=Object(y["resolveComponent"])("MultiSelectOperate"),u=Object(y["resolveComponent"])("Operate"),d=Object(y["resolveComponent"])("ViewportBackground"),s=Object(y["resolveComponent"])("MouseSelection"),f=Object(y["resolveComponent"])("EditableElement"),p=Object(y["resolveComponent"])("LinkDialog"),m=Object(y["resolveComponent"])("Modal"),b=Object(y["resolveDirective"])("contextmenu"),v=Object(y["resolveDirective"])("click-outside");return Object(y["withDirectives"])((Object(y["openBlock"])(),Object(y["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(y["openBlock"])(),Object(y["createBlock"])(a,{key:0,onCreated:t[0]||(t[0]=function(t){return e.insertElementFromCreateSelection(t)})})):Object(y["createCommentVNode"])("",!0),Object(y["createElementVNode"])("div",{class:"viewport-wrapper",style:Object(y["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(y["createElementVNode"])("div",qn,[(Object(y["openBlock"])(!0),Object(y["createElementBlock"])(y["Fragment"],null,Object(y["renderList"])(e.alignmentLines,(function(e,t){return Object(y["openBlock"])(),Object(y["createBlock"])(r,{key:t,type:e.type,axis:e.axis,length:e.length},null,8,["type","axis","length"])})),128)),e.activeElementIdList.length>1?(Object(y["openBlock"])(),Object(y["createBlock"])(i,{key:0,elementList:e.elementList,scaleMultiElement:e.scaleMultiElement},null,8,["elementList","scaleMultiElement"])):Object(y["createCommentVNode"])("",!0),(Object(y["openBlock"])(!0),Object(y["createElementBlock"])(y["Fragment"],null,Object(y["renderList"])(e.elementList,(function(t){return Object(y["openBlock"])(),Object(y["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(y["createVNode"])(d)]),Object(y["createElementVNode"])("div",{class:"viewport",ref:"viewportRef",style:Object(y["normalizeStyle"])({transform:"scale(".concat(e.canvasScale,")")})},[e.mouseSelectionState.isShow?(Object(y["openBlock"])(),Object(y["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(y["createCommentVNode"])("",!0),(Object(y["openBlock"])(!0),Object(y["createElementBlock"])(y["Fragment"],null,Object(y["renderList"])(e.elementList,(function(t,n){return Object(y["openBlock"])(),Object(y["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(y["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(y["withCtx"])((function(){return[Object(y["createVNode"])(p,{onClose:t[1]||(t[1]=function(t){return e.linkDialogVisible=!1})})]})),_:1},8,["visible"])],32)),[[b,e.contextmenus],[v,e.removeEditorAreaFocus]])}var Un=function(){var e=window.getSelection();e&&e.removeAllRanges()},Xn=function(e){var t=Object(y["ref"])(0),n=Object(y["ref"])(0),o=te(),l=Object(g["c"])(o),c=l.canvasPercentage,a=Object(g["c"])(ee()),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/Ke),t.value=(l-i)/2,n.value=(a-i*r.value)/2}else{var u=a*(c.value/100);o.setCanvasScale(u/(Ke*r.value)),t.value=(l-u/r.value)/2,n.value=(a-u)/2}}};Object(y["watch"])([c,r],i);var u=Object(y["computed"])((function(){return{width:Ke,height:Ke*r.value,left:t.value,top:n.value}})),d=new ResizeObserver(i);return Object(y["onMounted"])((function(){e.value&&d.observe(e.value)})),Object(y["onUnmounted"])((function(){e.value&&d.unobserve(e.value)})),{viewportStyles:u}},Wn=function(e,t){var n=te(),o=Object(g["c"])(n),l=o.canvasScale,c=Object(y["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=Fe(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}},Yn=function(e){var t=Object(g["c"])(te()),n=t.disableHotkeys,o=et(),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&&Je(o).then((function(e){return l(e)}))}else"string"===t.kind&&"text/plain"===t.type&&t.getAsString((function(e){if(!n.value){var t=We(e);c({left:0,top:0,width:600,height:50},t)}}))}};Object(y["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(y["onUnmounted"])((function(){e.value&&e.value.removeEventListener("drop",a),document.ondragleave=null,document.ondrop=null,document.ondragenter=null,document.ondragover=null}))},Zn=function(e,t){var n=Math.atan2(e,t),o=180/Math.PI*n;return o},Jn=function(e,t){var n=ee(),o=Object(g["c"])(te()),l=o.canvasScale,c=Ye(),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=Zn(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(L["a"])(Object(L["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}},Kn={text:"文本",image:"图片",shape:"形状",line:"线条",chart:"图表",table:"表格",video:"视频",audio:"音频"},Qn={text:20,image:20,shape:15,chart:200,table:20,video:250,audio:20},$n=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}},eo=function(e,t){var n,o=(n={},Object(re["a"])(n,N.RIGHT_BOTTOM,t.leftTopPoint),Object(re["a"])(n,N.LEFT_BOTTOM,t.rightTopPoint),Object(re["a"])(n,N.LEFT_TOP,t.rightBottomPoint),Object(re["a"])(n,N.RIGHT_TOP,t.leftBottomPoint),Object(re["a"])(n,N.TOP,t.bottomPoint),Object(re["a"])(n,N.BOTTOM,t.topPoint),Object(re["a"])(n,N.LEFT,t.rightPoint),Object(re["a"])(n,N.RIGHT,t.leftPoint),n);return o[e]},to=function(e,t){var n=te(),o=ee(),l=Object(g["c"])(n),c=l.activeElementIdList,a=l.activeGroupElementId,r=l.canvasScale,i=Object(g["c"])(o),u=i.viewportRatio,d=Object(g["c"])(fe()),s=d.ctrlOrShiftKeyActive,f=Ye(),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=Qn[i.type]||20,w=function(e){return e<E?E:e},I=0,V=0,S=[],B=[];if("rotate"in i&&i.rotate){var M=i.left,_=i.top,D=i.width,z=i.height;m=$n({left:M,top:_,width:D,height:z},j);var A=eo(d,m);I=A.left,V=A.top}else{var R,F=Ke,P=Ke*u.value,H=i.id===a.value,q=Object(T["a"])(e.value);try{for(q.s();!(R=q.n()).done;){var G=R.value;if((!("rotate"in G)||!G.rotate)&&("line"!==G.type&&(!H||G.id!==i.id)&&(H||!c.value.includes(G.id)))){var U=G.left,X=G.top,Y=G.width,Z=G.height,J=U+Y,K=X+Z,Q={value:X,range:[U,J]},$={value:K,range:[U,J]},ee={value:U,range:[X,K]},te={value:J,range:[X,K]};S.push(Q,$),B.push(ee,te)}}}catch(ue){q.e(ue)}finally{q.f()}var ne={value:0,range:[0,F]},oe={value:P,range:[0,F]},le={value:P/2,range:[0,F]},ce={value:0,range:[0,P]},ae={value:F,range:[0,P]},re={value:F/2,range:[0,P]};S.push(ne,oe,le),B.push(ce,ae,re),S=He(S),B=He(B)}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<S.length;i++){var u=S[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<B.length;m++){var b=B[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!==N.RIGHT_BOTTOM&&d!==N.LEFT_TOP||(E=m/x),d!==N.LEFT_BOTTOM&&d!==N.RIGHT_TOP||(E=-m/x)),d===N.RIGHT_BOTTOM?(a=w(h+m),u=w(O+E)):d===N.LEFT_BOTTOM?(a=w(h-m),u=w(O+E),s=b-(a-h)):d===N.LEFT_TOP?(a=w(h-m),u=w(O-E),s=b-(a-h),p=v-(u-O)):d===N.RIGHT_TOP?(a=w(h+m),u=w(O-E),p=v-(u-O)):d===N.TOP?(u=w(O-E),p=v-(u-O)):d===N.BOTTOM?u=w(O+E):d===N.LEFT?(a=w(h-m),s=b-(a-h)):d===N.RIGHT&&(a=w(h+m));var S=$n({width:a,height:u,left:s,top:p},j),B=eo(d,S),T=B.left,M=B.top,_=T-I,D=M-V;s-=_,p-=D}else{var z=l/r.value,A=c/r.value;if(g&&(d!==N.RIGHT_BOTTOM&&d!==N.LEFT_TOP||(A=z/x),d!==N.LEFT_BOTTOM&&d!==N.RIGHT_TOP||(A=-z/x)),d===N.RIGHT_BOTTOM){var R=ie(b+h+z,v+O+A),F=R.offsetX,P=R.offsetY;z-=F,A-=P,g&&(P?z=A*x:A=z/x),a=w(h+z),u=w(O+A)}else if(d===N.LEFT_BOTTOM){var H=ie(b+z,v+O+A),q=H.offsetX,G=H.offsetY;z-=q,A-=G,g&&(G?z=-A*x:A=-z/x),a=w(h-z),u=w(O+A),s=b-(a-h)}else if(d===N.LEFT_TOP){var U=ie(b+z,v+A),X=U.offsetX,W=U.offsetY;z-=X,A-=W,g&&(W?z=A*x:A=z/x),a=w(h-z),u=w(O-A),s=b-(a-h),p=v-(u-O)}else if(d===N.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=w(h+z),u=w(O-A),p=v-(u-O)}else if(d===N.LEFT){var K=ie(b+z,null),Q=K.offsetX;z-=Q,a=w(h-z),s=b-(a-h)}else if(d===N.RIGHT){var $=ie(b+h+z,null),ee=$.offsetX;z-=ee,a=w(h+z)}else if(d===N.TOP){var te=ie(null,v+A),ne=te.offsetY;A-=ne,u=w(O-A),p=v-(u-O)}else if(d===N.BOTTOM){var oe=ie(null,v+O+A),le=oe.offsetY;A-=le,u=w(O+A)}}e.value=e.value.map((function(e){return i.id!==e.id?e:"shape"===e.type&&"pathFormula"in e&&e.pathFormula?Object(L["a"])(Object(L["a"])({},e),{},{left:s,top:p,width:a,height:u,viewBox:[a,u],path:Qe[e.pathFormula](a,u)}):Object(L["a"])(Object(L["a"])({},e),{},{left:s,top:p,width:a,height:u})}))}},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!==N.RIGHT_BOTTOM&&l!==N.LEFT_TOP||(y=p/v),l!==N.LEFT_BOTTOM&&l!==N.RIGHT_TOP||(y=-p/v));var g=i,x=u,C=d,k=f;l===N.RIGHT_BOTTOM?(x=u+p,k=f+y):l===N.LEFT_BOTTOM?(g=i+p,k=f+y):l===N.LEFT_TOP?(g=i+p,C=d+y):l===N.RIGHT_TOP?(x=u+p,C=d+y):l===N.TOP?C=d+y:l===N.BOTTOM?k=f+y:l===N.LEFT?g=i+p:l===N.RIGHT&&(x=u+p);var E=x-g,w=k-C,I=E/m,V=w/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(L["a"])(Object(L["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}},no=function(e,t){var n=te(),o=Object(g["c"])(n),l=o.activeElementIdList,c=o.activeGroupElementId,a=o.handleElementId,r=o.editorAreaFocus,i=Object(g["c"])(fe()),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(J["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}},oo=function(e,t){var n=ee(),o=Object(g["c"])(te()),l=o.activeElementIdList,c=o.activeGroupElementId,a=o.canvasScale,r=Object(g["c"])(n),i=r.viewportRatio,u=Ye(),d=u.addHistorySnapshot,s=function(o,r){if(l.value.includes(r.id)){var u,s=!0,f=Ke,p=Ke*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,E=r.id===c.value,w=[],N=[],I=Object(T["a"])(e.value);try{for(I.s();!(u=I.n()).done;){var V=u.value;if("line"!==V.type&&((!E||V.id!==r.id)&&(E||!l.value.includes(V.id)))){var S=void 0,B=void 0,M=void 0,_=void 0;if("rotate"in V&&V.rotate){var D=Ae({left:V.left,top:V.top,width:V.width,height:V.height,rotate:V.rotate}),z=D.xRange,A=D.yRange;S=z[0],B=A[0],M=z[1]-z[0],_=A[1]-A[0]}else S=V.left,B=V.top,M=V.width,_=V.height;var R=S+M,F=B+_,P=B+_/2,H=S+M/2,q={value:B,range:[S,R]},G={value:F,range:[S,R]},U={value:P,range:[S,R]},X={value:S,range:[B,F]},Y={value:R,range:[B,F]},Z={value:H,range:[B,F]};w.push(q,G,U),N.push(X,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]};w.push(J,K,Q),N.push($,ee,te),w=He(w),N=He(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||E)if(g){var S=Ae({left:I,top:V,width:j,height:y,rotate:g}),B=S.xRange,T=S.yRange;i=B[0],u=B[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 R=v[A],F=R.left+p,P=R.top+b,H=R.width,q="height"in R&&R.height?R.height:0,G="rotate"in R&&R.rotate?R.rotate:0;if("rotate"in R&&R.rotate){var U=Ae({left:F,top:P,width:H,height:q,rotate:G}),X=U.xRange,Y=U.yRange;M.push(X[0]),_.push(Y[0]),D.push(X[1]),z.push(Y[1])}else"line"===R.type?(M.push(F),_.push(P),D.push(F+Math.max(R.start[0],R.end[0])),z.push(P+Math.max(R.start[1],R.end[1]))):(M.push(F),_.push(P),D.push(F+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<w.length;ee++){var te=w[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||E)e.value=e.value.map((function(e){return e.id===r.id?Object(L["a"])(Object(L["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(L["a"])(Object(L["a"])({},e),{},{left:I,top:V}):Object(L["a"])(Object(L["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}},lo=function(e){var t=ee(),n=Object(g["c"])(te()),o=n.canvasScale,l=Ye(),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},E={x:O,y:y},w={x:m,y:b},N={x:O,y:b},V={x:m,y:j},S={x:O,y:j};s.push(x,C,k,E,w,N,V,S)}}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],g=l.cubic||[[0,0],[0,0]],x=Object(ze["a"])(g,2),C=x[0],k=x[1],E=l.left+C[0],w=l.top+C[1],N=l.left+k[0],V=l.top+k[1];if(a===I.START){m+=f,b+=p,Math.abs(m-v)<i&&(m=v),Math.abs(b-h)<i&&(b=h);var S,B=Object(T["a"])(s);try{for(B.s();!(S=B.n()).done;){var M=S.value,_=M.x,D=M.y;if(Math.abs(_-m)<i&&Math.abs(D-b)<i){m=_,b=D;break}}}catch(Y){B.e(Y)}finally{B.f()}}else if(a===I.END){v+=f,h+=p,Math.abs(m-v)<i&&(v=m),Math.abs(b-h)<i&&(h=b);var z,A=Object(T["a"])(s);try{for(A.s();!(z=A.n()).done;){var R=z.value,F=R.x,P=R.y;if(Math.abs(F-v)<i&&Math.abs(P-h)<i){v=F,h=P;break}}}catch(Y){A.e(Y)}finally{A.f()}}else a===I.C?(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)):a===I.C1?(E+=f,w+=p,Math.abs(E-m)<i&&(E=m),Math.abs(w-b)<i&&(w=b),Math.abs(E-v)<i&&(E=v),Math.abs(w-h)<i&&(w=h)):a===I.C2&&(N+=f,V+=p,Math.abs(N-m)<i&&(N=m),Math.abs(V-b)<i&&(V=b),Math.abs(N-v)<i&&(N=v),Math.abs(V-h)<i&&(V=h));var H=Math.min(m,v),q=Math.min(b,h),G=Math.max(m,v),U=Math.max(b,h),X=[0,0],W=[G-H,U-q];m>v&&(X[0]=G-H,W[0]=0),b>h&&(X[1]=U-q,W[1]=0),e.value=e.value.map((function(e){if(e.id===l.id){var t=Object(L["a"])(Object(L["a"])({},e),{},{left:H,top:q,start:X,end:W});return a===I.START||a===I.END?(l.broken&&(t.broken=[(X[0]+W[0])/2,(X[1]+W[1])/2]),l.curve&&(t.curve=[(X[0]+W[0])/2,(X[1]+W[1])/2]),l.cubic&&(t.cubic=[[(X[0]+W[0])/2,(X[1]+W[1])/2],[(X[0]+W[0])/2,(X[1]+W[1])/2]])):a===I.C?(l.broken&&(t.broken=[j-H,y-q]),l.curve&&(t.curve=[j-H,y-q])):l.cubic&&(t.cubic=[[E-H,w-q],[N-H,V-q]]),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}},co=function(e){var t=te(),n=Object(g["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(ze["a"])(n,2),r=a[0],i=a[1],u=Object(ze["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(ze["a"])(n,2),r=a[0],i=a[1],u=Object(ze["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=et(),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}},ao=["id"];function ro(e,t,n,o,l,c){return Object(y["openBlock"])(),Object(y["createElementBlock"])("div",{class:"editable-element",ref:"elementRef",id:"editable-element-".concat(e.elementInfo.id),style:Object(y["normalizeStyle"])({zIndex:e.elementIndex})},[(Object(y["openBlock"])(),Object(y["createBlock"])(Object(y["resolveDynamicComponent"])(e.currentElementComponent),{elementInfo:e.elementInfo,selectElement:e.selectElement,contextmenus:e.contextmenus},null,8,["elementInfo","selectElement","contextmenus"]))],12,ao)}n("a9e3");var io=function(){var e=ee(),t=Object(g["c"])(te()),n=t.activeElementIdList,o=t.activeElementList,l=Object(g["c"])(e),c=l.currentSlide,a=l.viewportRatio,r=Ye(),i=r.addHistorySnapshot,u=function(t){var l,r=Ke,u=Ke*a.value,d=Pe(o.value),s=d.minX,f=d.maxX,p=d.minY,m=d.maxY,b=JSON.parse(JSON.stringify(c.value.elements)),v=Object(T["a"])(b);try{for(v.s();!(l=v.n()).done;){var h=l.value;if(n.value.includes(h.id)){if(t===E.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===E.TOP){var y=p-0;h.top=h.top-y}else if(t===E.VERTICAL){var g=p+(m-p)/2-u/2;h.top=h.top-g}else if(t===E.BOTTOM){var x=m-u;h.top=h.top-x}else if(t===E.LEFT){var C=s-0;h.left=h.left-C}else if(t===E.HORIZONTAL){var k=s+(f-s)/2-r/2;h.left=h.left-k}else if(t===E.RIGHT){var w=f-r;h.left=h.left-w}}}}catch(N){v.e(N)}finally{v.f()}e.updateSlide({elements:b}),i()};return{alignElementToCanvas:u}},uo=["src"];function so(e,t,n,o,l,c){var a=Object(y["resolveComponent"])("ImageClipHandler"),r=Object(y["resolveComponent"])("ImageOutline"),i=Object(y["resolveDirective"])("contextmenu");return Object(y["openBlock"])(),Object(y["createElementBlock"])("div",{class:Object(y["normalizeClass"])(["editable-element-image",{lock:e.elementInfo.lock}]),style:Object(y["normalizeStyle"])({top:e.elementInfo.top+"px",left:e.elementInfo.left+"px",width:e.elementInfo.width+"px",height:e.elementInfo.height+"px"})},[Object(y["createElementVNode"])("div",{class:"rotate-wrapper",style:Object(y["normalizeStyle"])({transform:"rotate(".concat(e.elementInfo.rotate,"deg)")})},[e.isCliping?(Object(y["openBlock"])(),Object(y["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,rotate:e.elementInfo.rotate,clipPath:e.clipShape.style,onClip:t[0]||(t[0]=function(t){return e.handleClip(t)})},null,8,["src","clipData","width","height","top","left","rotate","clipPath"])):Object(y["withDirectives"])((Object(y["openBlock"])(),Object(y["createElementBlock"])("div",{key:1,class:"element-content",style:Object(y["normalizeStyle"])({filter:e.shadowStyle?"drop-shadow(".concat(e.shadowStyle,")"):"",transform:e.flipStyle}),onMousedown:t[2]||(t[2]=function(t){return e.handleSelectElement(t)})},[Object(y["createVNode"])(r,{elementInfo:e.elementInfo},null,8,["elementInfo"]),Object(y["createElementVNode"])("div",{class:"image-content",style:Object(y["normalizeStyle"])({clipPath:e.clipShape.style})},[Object(y["createElementVNode"])("img",{src:e.elementInfo.src,draggable:!1,style:Object(y["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(y["withModifiers"])((function(){}),["prevent"])),alt:""},null,44,uo)],4)],36)),[[i,e.contextmenus]])],4)],6)}var fo,po,mo=function(e){var t=Object(y["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}},bo=function(e,t){var n=Object(y["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"})(fo||(fo={})),function(e){e["RECT"]="rect",e["ROUNDRECT"]="roundRect",e["ELLIPSE"]="ellipse",e["TRIANGLE"]="triangle",e["PENTAGON"]="pentagon",e["RHOMBUS"]="rhombus",e["STAR"]="star"}(po||(po={}));var vo={rect:{name:"矩形",type:fo.RECT,radius:"0",style:""},rect2:{name:"矩形2",type:fo.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:fo.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:fo.RECT,radius:"10%",style:"inset(0 0 0 0 round 10% 10% 10% 10%)"},ellipse:{name:"圆形",type:fo.ELLIPSE,style:"ellipse(50% 50% at 50% 50%)"},triangle:{name:"三角形",type:fo.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:fo.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:fo.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:fo.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:fo.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:fo.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:fo.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:fo.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:fo.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:fo.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")}}},ho=function(e){var t=Object(y["computed"])((function(){if(!e.value)return vo.rect;var t=e.value.shape||fo.RECT;return vo[t]})),n=Object(y["computed"])((function(){if(!e.value)return{top:"0",left:"0",width:"100%",height:"100%"};var t=Object(ze["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}},Oo=(n("b64b"),function(e){var t=Object(y["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}}),jo={class:"image-outline"};function yo(e,t,n,o,l,c){var a=Object(y["resolveComponent"])("ImageRectOutline"),r=Object(y["resolveComponent"])("ImageEllipseOutline"),i=Object(y["resolveComponent"])("ImagePolygonOutline");return Object(y["openBlock"])(),Object(y["createElementBlock"])("div",jo,["rect"===e.clipShape.type?(Object(y["openBlock"])(),Object(y["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(y["openBlock"])(),Object(y["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(y["openBlock"])(),Object(y["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(y["createCommentVNode"])("",!0)])}var go=["width","height"],xo=["rx","ry","width","height","stroke","stroke-width","stroke-dasharray"];function Co(e,t,n,o,l,c){return e.outline?(Object(y["openBlock"])(),Object(y["createElementBlock"])("svg",{key:0,class:"image-rect-outline",overflow:"visible",width:e.width,height:e.height},[Object(y["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,xo)],8,go)):Object(y["createCommentVNode"])("",!0)}var ko=function(e){var t=Object(y["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(y["computed"])((function(){var t;return(null===(t=e.value)||void 0===t?void 0:t.style)||"solid"})),o=Object(y["computed"])((function(){var t;return(null===(t=e.value)||void 0===t?void 0:t.color)||"#d14424"}));return{outlineWidth:t,outlineStyle:n,outlineColor:o}},Eo=Object(y["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=ko(Object(y["toRef"])(e,"outline")),n=t.outlineWidth,o=t.outlineStyle,l=t.outlineColor;return{outlineWidth:n,outlineStyle:o,outlineColor:l}}});n("7ae4");const wo=zn()(Eo,[["render",Co],["__scopeId","data-v-48a14431"]]);var No=wo,Io=["width","height"],Vo=["cx","cy","rx","ry","stroke","stroke-width","stroke-dasharray"];function So(e,t,n,o,l,c){return e.outline?(Object(y["openBlock"])(),Object(y["createElementBlock"])("svg",{key:0,class:"image-ellipse-outline",overflow:"visible",width:e.width,height:e.height},[Object(y["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,Vo)],8,Io)):Object(y["createCommentVNode"])("",!0)}var Bo=Object(y["defineComponent"])({name:"image-ellipse-outline",props:{width:{type:Number,required:!0},height:{type:Number,required:!0},outline:{type:Object}},setup:function(e){var t=ko(Object(y["toRef"])(e,"outline")),n=t.outlineWidth,o=t.outlineStyle,l=t.outlineColor;return{outlineWidth:n,outlineStyle:o,outlineColor:l}}});n("b2b4");const Lo=zn()(Bo,[["render",So],["__scopeId","data-v-692bbda6"]]);var To=Lo,Mo=["width","height"],_o=["d","stroke","stroke-width","stroke-dasharray"];function Do(e,t,n,o,l,c){return e.outline?(Object(y["openBlock"])(),Object(y["createElementBlock"])("svg",{key:0,class:"image-polygon-outline",overflow:"visible",width:e.width,height:e.height},[Object(y["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,_o)],8,Mo)):Object(y["createCommentVNode"])("",!0)}var zo=Object(y["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=ko(Object(y["toRef"])(e,"outline")),n=t.outlineWidth,o=t.outlineStyle,l=t.outlineColor;return{outlineWidth:n,outlineStyle:o,outlineColor:l}}});n("4f7c");const Ao=zn()(zo,[["render",Do],["__scopeId","data-v-21ca95cc"]]);var Ro=Ao,Fo=Object(y["defineComponent"])({name:"image-outline",components:{ImageRectOutline:No,ImageEllipseOutline:To,ImagePolygonOutline:Ro},props:{elementInfo:{type:Object,required:!0}},setup:function(e){var t=Object(y["computed"])((function(){return e.elementInfo.clip})),n=ho(t),o=n.clipShape;return{clipShape:o}}});const Po=zn()(Fo,[["render",yo]]);var Ho=Po,qo=function(e){return Object(y["pushScopeId"])("data-v-1448be6e"),e=e(),Object(y["popScopeId"])(),e},Go=["src"],Uo=["src"],Xo=["onMousedown"],Wo=qo((function(){return Object(y["createElementVNode"])("svg",{width:"16",height:"16",fill:"#fff",stroke:"#333"},[Object(y["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)})),Yo=[Wo],Zo=["onMousedown"],Jo=qo((function(){return Object(y["createElementVNode"])("svg",{width:"16",height:"16",fill:"#fff",stroke:"#333"},[Object(y["createElementVNode"])("path",{"stroke-width":"0.3","shape-rendering":"crispEdges",d:"M 16 0 L 0 0 L 0 4 L 16 4 Z"})],-1)})),Ko=[Jo];function Qo(e,t,n,o,l,c){var a=Object(y["resolveDirective"])("click-outside");return Object(y["withDirectives"])((Object(y["openBlock"])(),Object(y["createElementBlock"])("div",{class:"image-clip-handler",style:Object(y["normalizeStyle"])(e.clipWrapperPositionStyle)},[Object(y["createElementVNode"])("img",{class:"bottom-img",src:e.src,draggable:!1,alt:"",style:Object(y["normalizeStyle"])(e.bottomImgPositionStyle)},null,12,Go),Object(y["createElementVNode"])("div",{class:"top-image-content",style:Object(y["normalizeStyle"])(Object(L["a"])(Object(L["a"])({},e.topImgWrapperPositionStyle),{},{clipPath:e.clipPath}))},[Object(y["createElementVNode"])("img",{class:"top-img",src:e.src,draggable:!1,alt:"",style:Object(y["normalizeStyle"])(e.topImgPositionStyle)},null,12,Uo)],4),Object(y["createElementVNode"])("div",{class:"operate",style:Object(y["normalizeStyle"])(e.topImgWrapperPositionStyle),onMousedown:t[0]||(t[0]=Object(y["withModifiers"])((function(t){return e.moveClipRange(t)}),["stop"]))},[(Object(y["openBlock"])(),Object(y["createElementBlock"])(y["Fragment"],null,Object(y["renderList"])(["left-top","right-top","left-bottom","right-bottom"],(function(t){return Object(y["createElementVNode"])("div",{class:Object(y["normalizeClass"])(["clip-point",t,e.rotateClassName]),key:t,onMousedown:Object(y["withModifiers"])((function(n){return e.scaleClipRange(n,t)}),["stop"])},Yo,42,Xo)})),64)),(Object(y["openBlock"])(),Object(y["createElementBlock"])(y["Fragment"],null,Object(y["renderList"])(["top","bottom","left","right"],(function(t){return Object(y["createElementVNode"])("div",{class:Object(y["normalizeClass"])(["clip-point",t,e.rotateClassName]),key:t,onMousedown:Object(y["withModifiers"])((function(n){return e.scaleClipRange(n,t)}),["stop"])},Ko,42,Zo)})),64))],36)],4)),[[a,e.handleClip]])}var $o=Object(y["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},rotate:{type:Number,required:!0}},setup:function(e,t){var n=t.emit,o=Object(g["c"])(te()),l=o.canvasScale,c=Object(g["c"])(fe()),a=c.ctrlOrShiftKeyActive,r=Object(y["reactive"])({top:"0",left:"0"}),i=Object(y["ref"])(!1),u=Object(y["ref"])(null),d=function(){var t=e.clipData?e.clipData.range:[[0,0],[100,100]],n=Object(ze["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(y["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(y["computed"])((function(){return{top:s.value.top+"%",left:s.value.left+"%",width:s.value.width+"%",height:s.value.height+"%"}})),p=Object(y["reactive"])({top:0,left:0,width:0,height:0}),m=Object(y["computed"])((function(){return{top:p.top+"%",left:p.left+"%",width:p.width+"%",height:p.height+"%"}})),b=Object(y["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===V.ENTER&&h()};Object(y["onMounted"])((function(){v(),document.addEventListener("keydown",O)})),Object(y["onUnmounted"])((function(){document.removeEventListener("keydown",O)}));var j=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;e.rotate>45&&e.rotate<135&&(d=(u-c)/l.value/e.width*100,s=-(i-o)/l.value/e.height*100),(e.rotate>=135&&e.rotate<=180||e.rotate>=-180&&e.rotate<=-135)&&(d=-d,s=-s),e.rotate>-135&&e.rotate<-45&&(d=-(u-c)/l.value/e.width*100,s=(i-o)/l.value/e.height*100);var 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,j(),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;e.rotate>45&&e.rotate<135&&(y=(j-d)/l.value/e.width*100,g=-(O-u)/l.value/e.height*100),(e.rotate>=135&&e.rotate<=180||e.rotate>=-180&&e.rotate<=-135)&&(y=-y,g=-g),e.rotate>-135&&e.rotate<-45&&(y=-(j-d)/l.value/e.width*100,g=(O-u)/l.value/e.height*100),a.value&&(n!==N.RIGHT_BOTTOM&&n!==N.LEFT_TOP||(g=y/b),n!==N.LEFT_BOTTOM&&n!==N.RIGHT_TOP||(g=-y/b)),n===N.LEFT_TOP?(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):n===N.RIGHT_TOP?(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):n===N.LEFT_BOTTOM?(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):n===N.RIGHT_BOTTOM?(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):n===N.TOP?(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):n===N.BOTTOM?(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):n===N.LEFT?(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,j(),setTimeout((function(){return i.value=!1}),0)}},k=Object(y["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{clipWrapperPositionStyle:r,bottomImgPositionStyle:f,topImgWrapperPositionStyle:m,topImgPositionStyle:b,rotateClassName:k,handleClip:h,moveClipRange:x,scaleClipRange:C}}});n("bc9a");const el=zn()($o,[["render",Qo],["__scopeId","data-v-1448be6e"]]);var tl=el,nl=Object(y["defineComponent"])({name:"editable-element-image",components:{ImageOutline:Ho,ImageClipHandler:tl},props:{elementInfo:{type:Object,required:!0},selectElement:{type:Function,required:!0},contextmenus:{type:Function}},setup:function(e){var t=te(),n=ee(),o=Object(g["c"])(t),l=o.clipingImageElementId,c=Object(y["computed"])((function(){return l.value===e.elementInfo.id})),a=Ye(),r=a.addHistorySnapshot,i=Object(y["computed"])((function(){return e.elementInfo.shadow})),u=mo(i),d=u.shadowStyle,s=Object(y["computed"])((function(){return e.elementInfo.flipH})),f=Object(y["computed"])((function(){return e.elementInfo.flipV})),p=bo(s,f),m=p.flipStyle,b=Object(y["computed"])((function(){return e.elementInfo.clip})),v=ho(b),h=v.clipShape,O=v.imgPosition,j=Object(y["computed"])((function(){return e.elementInfo.filters})),x=Oo(j),C=x.filter,k=function(t){e.elementInfo.lock||(t.stopPropagation(),e.selectElement(t,e.elementInfo))},E=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=e.elementInfo.left+c.left,u=e.elementInfo.top+c.top,d=e.elementInfo.width+c.width,s=e.elementInfo.height+c.height,f=0,p=0;if(e.elementInfo.rotate){var m=i+d/2-(e.elementInfo.left+e.elementInfo.width/2),b=-(u+s/2-(e.elementInfo.top+e.elementInfo.height/2)),v=-e.elementInfo.rotate*Math.PI/180,h=m*Math.cos(v)-b*Math.sin(v),O=m*Math.sin(v)+b*Math.cos(v);f=h-m,p=-(O-b)}var j={clip:Object(L["a"])(Object(L["a"])({},a),{},{range:l}),left:i+f,top:u+p,width:d,height:s};n.updateElement({id:e.elementInfo.id,props:j}),r()}};return{isCliping:c,handleClip:E,clipingImageElementId:l,shadowStyle:d,handleSelectElement:k,clipShape:h,imgPosition:O,filter:C,flipStyle:m}}});n("fc7e");const ol=zn()(nl,[["render",so],["__scopeId","data-v-288ee59d"]]);var ll=ol,cl=function(e){return Object(y["pushScopeId"])("data-v-58d3557f"),e=e(),Object(y["popScopeId"])(),e},al=cl((function(){return Object(y["createElementVNode"])("div",{class:"drag-handler top"},null,-1)})),rl=cl((function(){return Object(y["createElementVNode"])("div",{class:"drag-handler bottom"},null,-1)}));function il(e,t,n,o,l,c){var a=Object(y["resolveComponent"])("ElementOutline"),r=Object(y["resolveComponent"])("ProsemirrorEditor"),i=Object(y["resolveDirective"])("contextmenu");return Object(y["openBlock"])(),Object(y["createElementBlock"])("div",{class:Object(y["normalizeClass"])(["editable-element-text",{lock:e.elementInfo.lock}]),ref:"elementRef",style:Object(y["normalizeStyle"])({top:e.elementInfo.top+"px",left:e.elementInfo.left+"px",width:e.elementInfo.width+"px"})},[Object(y["createElementVNode"])("div",{class:"rotate-wrapper",style:Object(y["normalizeStyle"])({transform:"rotate(".concat(e.elementInfo.rotate,"deg)")})},[Object(y["withDirectives"])((Object(y["openBlock"])(),Object(y["createElementBlock"])("div",{class:"element-content",style:Object(y["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(y["createVNode"])(a,{width:e.elementInfo.width,height:e.elementInfo.height,outline:e.elementInfo.outline},null,8,["width","height","outline"]),Object(y["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"]),al,rl],36)),[[i,e.contextmenus]])],4)],6)}var ul=["width","height"],dl=["d","stroke","stroke-width","stroke-dasharray"];function sl(e,t,n,o,l,c){return e.outline?(Object(y["openBlock"])(),Object(y["createElementBlock"])("svg",{key:0,class:"element-outline",overflow:"visible",width:e.width,height:e.height},[Object(y["createElementVNode"])("path",{"vector-effect":"non-scaling-stroke","stroke-linecap":"butt","stroke-miterlimit":"8",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,dl)],8,ul)):Object(y["createCommentVNode"])("",!0)}var fl=Object(y["defineComponent"])({name:"element-outline",props:{width:{type:Number,required:!0},height:{type:Number,required:!0},outline:{type:Object}},setup:function(e){var t=ko(Object(y["toRef"])(e,"outline")),n=t.outlineWidth,o=t.outlineStyle,l=t.outlineColor;return{outlineWidth:n,outlineStyle:o,outlineColor:l}}});n("0543");const pl=zn()(fl,[["render",sl],["__scopeId","data-v-34c0a0a8"]]);var ml=pl,bl={class:"prosemirror-editor",ref:"editorViewRef"};function vl(e,t,n,o,l,c){return Object(y["openBlock"])(),Object(y["createElementBlock"])("div",bl,null,512)}var hl,Ol=n("0010"),jl=n("5313"),yl=n("576a"),gl=n("304a"),xl=n("7f06"),Cl=n("8726"),kl=n("23f1"),El=n("1a16"),wl=n("665f"),Nl=n("f95e"),Il=function(e){var t={},n=function(e,n){return t[e]=n};return n("Alt-ArrowUp",Ol["c"]),n("Alt-ArrowDown",Ol["b"]),n("Ctrl-z",Cl["c"]),n("Ctrl-y",Cl["b"]),n("Backspace",Nl["f"]),n("Escape",Ol["e"]),n("Ctrl-b",Object(Ol["f"])(e.marks.strong)),n("Ctrl-i",Object(Ol["f"])(e.marks.em)),n("Ctrl-u",Object(Ol["f"])(e.marks.underline)),n("Ctrl-d",Object(Ol["f"])(e.marks.strikethrough)),n("Enter",Object(wl["f"])(e.nodes.list_item)),n("Mod-[",Object(wl["b"])(e.nodes.list_item)),n("Mod-]",Object(wl["e"])(e.nodes.list_item)),t},Vl=function(e){return Object(Nl["g"])(/^\s*>\s$/,e)},Sl=function(e){return Object(Nl["g"])(/^(\d+)\.\s$/,e,(function(e){return{order:+e[1]}}),(function(e,t){return t.childCount+t.attrs.order===+e[1]}))},Bl=function(e){return Object(Nl["g"])(/^\s*([-+*])\s$/,e)},Ll=function(e){return Object(Nl["e"])(/^```$/,e)},Tl=function(e){var t=[].concat(Object(W["a"])(Nl["d"]),[Nl["a"],Nl["b"]]);return t.push(Vl(e.nodes.blockquote)),t.push(Sl(e.nodes.ordered_list)),t.push(Bl(e.nodes.bullet_list)),t.push(Ll(e.nodes.code_block)),Object(Nl["c"])({rules:t})},Ml=function(e){return[Tl(e),Object(xl["b"])(Il(e)),Object(xl["b"])(Ol["a"]),Object(kl["a"])(),Object(El["a"])(),Object(Cl["a"])()]},_l=n("2210"),Dl=Object(L["a"])(Object(L["a"])({},wl["d"]),{},{content:"list_item+",group:"block"}),zl=Object(L["a"])(Object(L["a"])({},wl["a"]),{},{content:"list_item+",group:"block"}),Al=Object(L["a"])(Object(L["a"])({},wl["c"]),{},{content:"paragraph block*",group:"block"}),Rl={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]}},Fl=Object(L["a"])(Object(L["a"])({},_l["b"]),{},{ordered_list:Dl,bullet_list:zl,list_item:Al,paragraph:Rl}),Pl={excludes:"subscript",parseDOM:[{tag:"sub"},{style:"vertical-align",getAttrs:function(e){return"sub"===e&&null}}],toDOM:function(){return["sub",0]}},Hl={excludes:"superscript",parseDOM:[{tag:"sup"},{style:"vertical-align",getAttrs:function(e){return"super"===e&&null}}],toDOM:function(){return["sup",0]}},ql={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]}},Gl={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]}},Ul={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]}},Xl={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]}},Wl={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]}},Yl={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]}},Zl=Object(L["a"])(Object(L["a"])({},_l["a"]),{},{subscript:Pl,superscript:Hl,strikethrough:ql,underline:Gl,forecolor:Ul,backcolor:Xl,fontsize:Wl,fontname:Yl}),Jl=Fl,Kl=Zl,Ql=new gl["i"]({nodes:Jl,marks:Kl}),$l=function(e){var t="<div>".concat(e,"</div>"),n=new window.DOMParser,o=n.parseFromString(t,"text/html").body.firstElementChild;return gl["a"].fromSchema(Ql).parse(o)},ec=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return new yl["c"](e,Object(L["a"])({state:jl["b"].create({doc:$l(t),plugins:Ml(Ql)})},n))},tc=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"})(hl||(hl={}));var nc=Object(tc["a"])(),oc=nc,lc=(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(L["a"])(Object(L["a"])({},a),{},{align:n}):Object(L["a"])(Object(L["a"])({},a),{},{align:null}),e=e.setNodeMarkup(l,c,a,o.marks)})),e):e}),cc=function(e,t){var n=e.state,o=n.schema,l=n.selection,c=lc(n.tr.setSelection(l),o,t);e.dispatch(c)},ac=function(e,t){return e.type===t.nodes.bullet_list||e.type===t.nodes.ordered_list},rc=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=D((function(e){return ac(e,l)}))(c);if(i.depth>=1&&u&&i.depth-u.depth<=1){if(u.node.type===e)return Object(wl["b"])(t)(n,o);if(ac(u.node,l)&&e.validContent(u.node.content)){var d=n.tr;return d.setNodeMarkup(u.pos,e),o&&o(d),!1}}return Object(wl["g"])(e)(n,o)}},ic=Object(y["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=te(),c=Object(g["c"])(l),a=c.handleElementId,r=Object(y["ref"])(),i=Object(J["debounce"])((function(){o("update",n.dom.innerHTML)}),300,{trailing:!0}),u=function(){"请输入内容"===e.value&&setTimeout((function(){Object(Ol["d"])(n.state,n.dispatch)}),0),l.setDisableHotkeysState(!0),o("focus")},d=function(){l.setDisableHotkeysState(!1),o("blur")},s=Object(J["debounce"])((function(){var t=G(n,{color:e.defaultColor,fontname:e.defaultFontName});l.setRichtextAttrs(t)}),30,{trailing:!0}),f=function(){i(),s()},p=Object(y["computed"])((function(){return e.value}));Object(y["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,$l(p.value)))}})),Object(y["watch"])((function(){return e.editable}),(function(){n.setProps({editable:function(){return e.editable}})})),Object(y["onMounted"])((function(){n=ec(r.value,p.value,{handleDOMEvents:{focus:u,blur:d,keydown:f,click:s},editable:function(){return e.editable}}),e.autoFocus&&n.focus()})),Object(y["onUnmounted"])((function(){n&&n.destroy()}));var m=function(t){if(a.value===e.elementId){var o,l="command"in t?[t]:t,c=Object(T["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(Ol["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(Ol["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(Ol["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 E=n.state.schema.marks.backcolor.create({backcolor:r.value}),w=n.state.selection.empty;w&&Object(Ol["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,E))}else if("bold"===r.command){var S=n.state.selection.empty;S&&Object(Ol["d"])(n.state,n.dispatch),Object(Ol["f"])(n.state.schema.marks.strong)(n.state,n.dispatch)}else if("em"===r.command){var B=n.state.selection.empty;B&&Object(Ol["d"])(n.state,n.dispatch),Object(Ol["f"])(n.state.schema.marks.em)(n.state,n.dispatch)}else if("underline"===r.command){var L=n.state.selection.empty;L&&Object(Ol["d"])(n.state,n.dispatch),Object(Ol["f"])(n.state.schema.marks.underline)(n.state,n.dispatch)}else if("strikethrough"===r.command){var M=n.state.selection.empty;M&&Object(Ol["d"])(n.state,n.dispatch),Object(Ol["f"])(n.state.schema.marks.strikethrough)(n.state,n.dispatch)}else if("subscript"===r.command)Object(Ol["f"])(n.state.schema.marks.subscript)(n.state,n.dispatch);else if("superscript"===r.command)Object(Ol["f"])(n.state.schema.marks.superscript)(n.state,n.dispatch);else if("blockquote"===r.command)Object(Ol["g"])(n.state.schema.nodes.blockquote)(n.state,n.dispatch);else if("code"===r.command)Object(Ol["f"])(n.state.schema.marks.code)(n.state,n.dispatch);else if("align"===r.command&&r.value)cc(n,r.value);else if("bulletList"===r.command){var _=n.state.schema.nodes,D=_.bullet_list,z=_.list_item;rc(D,z)(n.state,n.dispatch)}else if("orderedList"===r.command){var A=n.state.schema.nodes,R=A.ordered_list,F=A.list_item;rc(R,F)(n.state,n.dispatch)}else if("clear"===r.command){var P=n.state.selection.empty;P&&Object(Ol["d"])(n.state,n.dispatch);var H=n.state.selection,q=H.$from,G=H.$to;n.dispatch(n.state.tr.removeMark(q.pos,G.pos))}else"insert"===r.command&&r.value&&n.dispatch(n.state.tr.insertText(r.value))}}catch(U){c.e(U)}finally{c.f()}n.focus(),i(),s()}};return oc.on(hl.RICH_TEXT_COMMAND,m),Object(y["onUnmounted"])((function(){oc.off(hl.RICH_TEXT_COMMAND,m)})),{editorViewRef:r}}});n("da17");const uc=zn()(ic,[["render",vl],["__scopeId","data-v-f0d6ea86"]]);var dc=uc,sc=Object(y["defineComponent"])({name:"editable-element-text",components:{ElementOutline:ml,ProsemirrorEditor:dc},props:{elementInfo:{type:Object,required:!0},selectElement:{type:Function,required:!0},contextmenus:{type:Function}},setup:function(e){var t=te(),n=ee(),o=Object(g["c"])(t),l=o.handleElementId,c=o.isScaling,a=Ye(),r=a.addHistorySnapshot,i=Object(y["ref"])(),u=Object(y["computed"])((function(){return e.elementInfo.shadow})),d=mo(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(y["ref"])(-1);Object(y["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(y["onMounted"])((function(){i.value&&b.observe(i.value)})),Object(y["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 fc=zn()(sc,[["render",il],["__scopeId","data-v-58d3557f"]]);var pc=fc,mc=["width","height"],bc={key:0},vc=["transform"],hc=["d","fill","stroke","stroke-width","stroke-dasharray"],Oc=["innerHTML"];function jc(e,t,n,o,l,c){var a=Object(y["resolveComponent"])("GradientDefs"),r=Object(y["resolveComponent"])("ProsemirrorEditor"),i=Object(y["resolveDirective"])("contextmenu");return Object(y["openBlock"])(),Object(y["createElementBlock"])("div",{class:Object(y["normalizeClass"])(["editable-element-shape",{lock:e.elementInfo.lock}]),style:Object(y["normalizeStyle"])({top:e.elementInfo.top+"px",left:e.elementInfo.left+"px",width:e.elementInfo.width+"px",height:e.elementInfo.height+"px"})},[Object(y["createElementVNode"])("div",{class:"rotate-wrapper",style:Object(y["normalizeStyle"])({transform:"rotate(".concat(e.elementInfo.rotate,"deg)")})},[Object(y["withDirectives"])((Object(y["openBlock"])(),Object(y["createElementBlock"])("div",{class:"element-content",style:Object(y["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(y["openBlock"])(),Object(y["createElementBlock"])("svg",{overflow:"visible",width:e.elementInfo.width,height:e.elementInfo.height},[e.elementInfo.gradient?(Object(y["openBlock"])(),Object(y["createElementBlock"])("defs",bc,[Object(y["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(y["createCommentVNode"])("",!0),Object(y["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(y["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,hc)],8,vc)],8,mc)),Object(y["createElementVNode"])("div",{class:Object(y["normalizeClass"])(["shape-text",[e.text.align,{editable:e.editable}]])},[e.editable?(Object(y["openBlock"])(),Object(y["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(y["withModifiers"])((function(){}),["stop"]))},null,8,["elementId","defaultColor","defaultFontName","editable","value"])):(Object(y["openBlock"])(),Object(y["createElementBlock"])("div",{key:1,class:"show-text ProseMirror-static",innerHTML:e.text.content},null,8,Oc))],2)],36)),[[i,e.contextmenus]])],4)],6)}var yc=["id","gradientTransform"],gc=["stop-color"],xc=["stop-color"],Cc=["id"],kc=["stop-color"],Ec=["stop-color"];function wc(e,t,n,o,l,c){return"linear"===e.type?(Object(y["openBlock"])(),Object(y["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(y["createElementVNode"])("stop",{offset:"0%","stop-color":e.color1},null,8,gc),Object(y["createElementVNode"])("stop",{offset:"100%","stop-color":e.color2},null,8,xc)],8,yc)):(Object(y["openBlock"])(),Object(y["createElementBlock"])("radialGradient",{key:1,id:e.id},[Object(y["createElementVNode"])("stop",{offset:"0%","stop-color":e.color1},null,8,kc),Object(y["createElementVNode"])("stop",{offset:"100%","stop-color":e.color2},null,8,Ec)],8,Cc))}var Nc=Object(y["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 Ic=zn()(Nc,[["render",wc]]);var Vc=Ic,Sc=Object(y["defineComponent"])({name:"editable-element-shape",components:{GradientDefs:Vc,ProsemirrorEditor:dc},props:{elementInfo:{type:Object,required:!0},selectElement:{type:Function,required:!0},contextmenus:{type:Function}},setup:function(e){var t=te(),n=ee(),o=Object(g["c"])(t),l=o.handleElementId,c=Ye(),a=c.addHistorySnapshot,r=function(t){e.elementInfo.lock||(t.stopPropagation(),e.selectElement(t,e.elementInfo))},i=Object(y["computed"])((function(){return e.elementInfo.outline})),u=ko(i),d=u.outlineWidth,s=u.outlineStyle,f=u.outlineColor,p=Object(y["computed"])((function(){return e.elementInfo.shadow})),m=mo(p),b=m.shadowStyle,v=Object(y["computed"])((function(){return e.elementInfo.flipH})),h=Object(y["computed"])((function(){return e.elementInfo.flipV})),O=bo(v,h),j=O.flipStyle,x=Object(y["ref"])(!1),C=function(){x.value=!0,t.setEditingShapeElementId(e.elementInfo.id)},k=function(){x.value=!1,t.setEditingShapeElementId("")};Object(y["watch"])(l,(function(){l.value!==e.elementInfo.id&&x.value&&k()}));var E=Object(y["computed"])((function(){var t={content:"",defaultFontName:"微软雅黑",defaultColor:"#000",align:"middle"};return e.elementInfo.text?e.elementInfo.text:t})),w=function(t){var o=Object(L["a"])(Object(L["a"])({},E.value),{},{content:t});n.updateElement({id:e.elementInfo.id,props:{text:o}}),a()};return{shadowStyle:b,outlineWidth:d,outlineStyle:s,outlineColor:f,flipStyle:j,editable:x,text:E,handleSelectElement:r,updateText:w,enterEditing:C}}});n("a8ac");const Bc=zn()(Sc,[["render",jc],["__scopeId","data-v-bd9c8dc2"]]);var Lc=Bc,Tc=["width","height"],Mc=["d","stroke","stroke-width","stroke-dasharray","marker-start","marker-end"],_c=["d"];function Dc(e,t,n,o,l,c){var a=Object(y["resolveComponent"])("LinePointMarker"),r=Object(y["resolveDirective"])("contextmenu");return Object(y["openBlock"])(),Object(y["createElementBlock"])("div",{class:Object(y["normalizeClass"])(["editable-element-shape",{lock:e.elementInfo.lock}]),style:Object(y["normalizeStyle"])({top:e.elementInfo.top+"px",left:e.elementInfo.left+"px"})},[Object(y["createElementVNode"])("div",{class:"element-content",style:Object(y["normalizeStyle"])({filter:e.shadowStyle?"drop-shadow(".concat(e.shadowStyle,")"):""}),onMousedown:t[0]||(t[0]=function(t){return e.handleSelectElement(t)})},[(Object(y["openBlock"])(),Object(y["createElementBlock"])("svg",{overflow:"visible",width:e.svgWidth,height:e.svgHeight},[Object(y["createElementVNode"])("defs",null,[e.elementInfo.points[0]?(Object(y["openBlock"])(),Object(y["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(y["createCommentVNode"])("",!0),e.elementInfo.points[1]?(Object(y["openBlock"])(),Object(y["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(y["createCommentVNode"])("",!0)]),Object(y["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,Mc),Object(y["withDirectives"])(Object(y["createElementVNode"])("path",{class:"line-path",d:e.path,stroke:"transparent","stroke-width":"20",fill:"none"},null,8,_c),[[r,e.contextmenus]])],8,Tc))],36)],6)}var zc=["id","markerWidth","markerHeight","refX","refY"],Ac=["d","fill","transform"];function Rc(e,t,n,o,l,c){return Object(y["openBlock"])(),Object(y["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(y["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,Ac)],8,zc)}var Fc={dot:"m0 5a5 5 0 1 0 10 0a5 5 0 1 0 -10 0z",arrow:"M0,0 L10,5 0,10 Z"},Pc={"arrow-start":180,"arrow-end":0},Hc=Object(y["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(y["computed"])((function(){return Fc[e.type]})),n=Object(y["computed"])((function(){return Pc["".concat(e.type,"-").concat(e.position)]||0})),o=Object(y["computed"])((function(){return e.baseSize<2?2:e.baseSize}));return{path:t,rotate:n,size:o}}});const qc=zn()(Hc,[["render",Rc]]);var Gc=qc,Uc=Object(y["defineComponent"])({name:"editable-element-shape",components:{LinePointMarker:Gc},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(y["computed"])((function(){return e.elementInfo.shadow})),o=mo(n),l=o.shadowStyle,c=Object(y["computed"])((function(){var t=Math.abs(e.elementInfo.start[0]-e.elementInfo.end[0]);return t<24?24:t})),a=Object(y["computed"])((function(){var t=Math.abs(e.elementInfo.start[1]-e.elementInfo.end[1]);return t<24?24:t})),r=Object(y["computed"])((function(){return"dashed"===e.elementInfo.style?"10 6":"0 0"})),i=Object(y["computed"])((function(){return Ue(e.elementInfo)}));return{handleSelectElement:t,shadowStyle:l,svgWidth:c,svgHeight:a,lineDashArray:r,path:i}}});n("3dc0");const Xc=zn()(Uc,[["render",Dc],["__scopeId","data-v-603a705d"]]);var Wc=Xc;function Yc(e,t,n,o,l,c){var a=Object(y["resolveComponent"])("ElementOutline"),r=Object(y["resolveComponent"])("Chart"),i=Object(y["resolveDirective"])("contextmenu");return Object(y["openBlock"])(),Object(y["createElementBlock"])("div",{class:Object(y["normalizeClass"])(["editable-element-chart",{lock:e.elementInfo.lock}]),style:Object(y["normalizeStyle"])({top:e.elementInfo.top+"px",left:e.elementInfo.left+"px",width:e.elementInfo.width+"px",height:e.elementInfo.height+"px"})},[Object(y["createElementVNode"])("div",{class:"rotate-wrapper",style:Object(y["normalizeStyle"])({transform:"rotate(".concat(e.elementInfo.rotate,"deg)")})},[Object(y["withDirectives"])((Object(y["openBlock"])(),Object(y["createElementBlock"])("div",{class:"element-content",style:Object(y["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(y["createVNode"])(a,{width:e.elementInfo.width,height:e.elementInfo.height,outline:e.elementInfo.outline},null,8,["width","height","outline"]),Object(y["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 Zc(e,t,n,o,l,c){return Object(y["openBlock"])(),Object(y["createElementBlock"])("div",{class:"chart",style:Object(y["normalizeStyle"])({flexDirection:"top"===e.legend?"column-reverse":"column"})},[Object(y["createElementVNode"])("div",{class:"chart-content",ref:"chartRef",style:Object(y["normalizeStyle"])({width:e.width+"px",height:e.chartHeight+"px",transform:"scale(".concat(1/e.slideScale,")")})},null,4),e.legend?(Object(y["openBlock"])(),Object(y["createElementBlock"])("div",{key:0,class:"legends",style:Object(y["normalizeStyle"])({transform:"scale(".concat(1/e.slideScale,")")})},[(Object(y["openBlock"])(!0),Object(y["createElementBlock"])(y["Fragment"],null,Object(y["renderList"])(e.legends,(function(t,n){return Object(y["openBlock"])(),Object(y["createElementBlock"])("div",{class:"legend",key:n,style:Object(y["normalizeStyle"])({color:e.gridColor})},[Object(y["createElementVNode"])("div",{class:"block",style:Object(y["normalizeStyle"])({backgroundColor:e.themeColors[n]})},null,4),Object(y["createTextVNode"])(" "+Object(y["toDisplayString"])(t),1)],4)})),128))],4)):Object(y["createCommentVNode"])("",!0)],4)}var Jc=n("ba48"),Kc=n.n(Jc),Qc=(n("aa97"),Object(y["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(y["ref"])(),o=Object(y["inject"])("slideScale")||Object(y["ref"])(1),l=Object(y["computed"])((function(){return e.legend?e.height-20:e.height})),c=function(){var t=e.options||{},n=Object(L["a"])(Object(L["a"])({},t),{},{width:e.width*o.value,height:l.value*o.value}),c="pie"===e.type?Object(L["a"])(Object(L["a"])({},e.data),{},{series:e.data.series[0]}):e.data;return{data:c,options:n}},a=function(){if(n.value){var o=Object(J["upperFirst"])(e.type),l=c(),a=l.data,r=l.options;t=new Kc.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(y["watch"])([function(){return e.width},function(){return e.height},function(){return e.data},o],r),Object(y["onMounted"])(a);var i=Object(y["computed"])((function(){var t=[];if(e.themeColor.length>=10)t=e.themeColor;else if(1===e.themeColor.length)t=Z()(e.themeColor[0]).analogous(10).map((function(e){return e.toHexString()}));else{var n=e.themeColor.length,o=Z()(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(y["watch"])(i,u),Object(y["onMounted"])(u);var d=function(){n.value&&e.gridColor&&n.value.style.setProperty("--grid-color",e.gridColor)};return Object(y["watch"])((function(){return e.gridColor}),d),Object(y["onMounted"])(d),{chartHeight:l,themeColors:i,slideScale:o,chartRef:n}}}));n("9a8f"),n("383f");const $c=zn()(Qc,[["render",Zc],["__scopeId","data-v-3ac5559a"]]);var ea=$c,ta=Object(y["defineComponent"])({name:"editable-element-chart",components:{ElementOutline:ml,Chart:ea},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(){oc.emit(hl.OPEN_CHART_DATA_EDITOR)};return{handleSelectElement:t,openDataEditor:n}}});n("b05d");const na=zn()(ta,[["render",Yc],["__scopeId","data-v-c09631b6"]]);var oa=na,la={class:"element-content"};function ca(e,t,n,o,l,c){var a=Object(y["resolveComponent"])("EditableTable"),r=Object(y["resolveDirective"])("contextmenu");return Object(y["openBlock"])(),Object(y["createElementBlock"])("div",{class:Object(y["normalizeClass"])(["editable-element-table",{lock:e.elementInfo.lock}]),ref:"elementRef",style:Object(y["normalizeStyle"])({top:e.elementInfo.top+"px",left:e.elementInfo.left+"px",width:e.elementInfo.width+"px"})},[Object(y["createElementVNode"])("div",{class:"rotate-wrapper",style:Object(y["normalizeStyle"])({transform:"rotate(".concat(e.elementInfo.rotate,"deg)")})},[Object(y["withDirectives"])((Object(y["openBlock"])(),Object(y["createElementBlock"])("div",la,[Object(y["createVNode"])(a,{onMousedown:t[0]||(t[0]=Object(y["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(y["openBlock"])(),Object(y["createElementBlock"])("div",{key:0,class:Object(y["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(y["createElementVNode"])("div",{class:"mask-tip",style:Object(y["normalizeStyle"])({transform:"scale(".concat(1/e.canvasScale,")")})},"双击编辑",4)],34)):Object(y["createCommentVNode"])("",!0)])),[[r,e.contextmenus]])],4)],6)}var aa={key:0,class:"handler"},ra=["onMousedown"],ia=["width"],ua=["rowspan","colspan","data-cell-index","onMousedown","onMouseenter"],da=["innerHTML"];function sa(e,t,n,o,l,c){var a,r,i,u,d,s=Object(y["resolveComponent"])("CustomTextarea"),f=Object(y["resolveDirective"])("contextmenu");return Object(y["openBlock"])(),Object(y["createElementBlock"])("div",{class:"editable-table",style:Object(y["normalizeStyle"])({width:e.totalWidth+"px"})},[e.editable?(Object(y["openBlock"])(),Object(y["createElementBlock"])("div",aa,[(Object(y["openBlock"])(!0),Object(y["createElementBlock"])(y["Fragment"],null,Object(y["renderList"])(e.dragLinePosition,(function(t,n){return Object(y["openBlock"])(),Object(y["createElementBlock"])("div",{class:"drag-line",key:n,style:Object(y["normalizeStyle"])({left:t+"px"}),onMousedown:function(t){return e.handleMousedownColHandler(t,n)}},null,44,ra)})),128))])):Object(y["createCommentVNode"])("",!0),Object(y["createElementVNode"])("table",{class:Object(y["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(y["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(y["createElementVNode"])("colgroup",null,[(Object(y["openBlock"])(!0),Object(y["createElementBlock"])(y["Fragment"],null,Object(y["renderList"])(e.colSizeList,(function(e,t){return Object(y["openBlock"])(),Object(y["createElementBlock"])("col",{span:"1",key:t,width:e},null,8,ia)})),128))]),Object(y["createElementVNode"])("tbody",null,[(Object(y["openBlock"])(!0),Object(y["createElementBlock"])(y["Fragment"],null,Object(y["renderList"])(e.tableCells,(function(t,n){return Object(y["openBlock"])(),Object(y["createElementBlock"])("tr",{key:n},[(Object(y["openBlock"])(!0),Object(y["createElementBlock"])(y["Fragment"],null,Object(y["renderList"])(t,(function(t,o){return Object(y["withDirectives"])((Object(y["openBlock"])(),Object(y["createElementBlock"])("td",{class:Object(y["normalizeClass"])(["cell",{selected:e.selectedCells.includes("".concat(n,"_").concat(o))&&e.selectedCells.length>1,active:e.activedCell==="".concat(n,"_").concat(o)}]),style:Object(y["normalizeStyle"])(Object(L["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(y["openBlock"])(),Object(y["createBlock"])(s,{key:0,class:Object(y["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(y["openBlock"])(),Object(y["createElementBlock"])("div",{key:1,class:"cell-text",innerHTML:e.formatText(t.text)},null,8,da))],46,ua)),[[y["vShow"],!e.hideCells.includes("".concat(n,"_").concat(o))],[f,function(t){return e.contextmenus(t)}]])})),128))])})),128))])],6)],4)}var fa=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"}},pa=function(e){return e.replace(/\n/g,"</br>").replace(/ /g,"&nbsp;")},ma=function(e){var t=Object(y["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}},ba=function(e){var t=Object(y["ref"])(["",""]);return Object(y["watch"])((function(){return e.value}),(function(){e.value&&(t.value=Ge(e.value.color))}),{immediate:!0}),{subThemeColor:t}},va=["contenteditable","innerHTML"];function ha(e,t,n,o,l,c){return Object(y["openBlock"])(),Object(y["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,va)}var Oa=Object(y["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(y["ref"])(),l=Object(y["ref"])(""),c=Object(y["ref"])(!1);Object(y["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=_e(e);if("object"!==Object(Xe["a"])(t)){var l=De(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(y["onUnmounted"])((function(){o.value&&(o.value.onpaste=null)})),{textareaRef:o,handleFocus:r,handleInput:a,handleBlur:i,text:l}}});n("f33f");const ja=zn()(Oa,[["render",ha],["__scopeId","data-v-59f468e0"]]);var ya=ja,ga=Object(y["defineComponent"])({name:"editable-table",emits:["change","changeColWidths","changeSelectedCells"],components:{CustomTextarea:ya},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(g["c"])(te()),l=o.canvasScale,c=Object(y["ref"])(!1),a=Object(y["ref"])([]),r=Object(y["ref"])([]),i=Object(y["computed"])({get:function(){return e.data},set:function(e){n("change",e)}}),u=Object(y["computed"])((function(){return e.theme})),d=ba(u),s=d.subThemeColor,f=Object(y["ref"])([]),p=Object(y["computed"])((function(){return f.value.reduce((function(e,t){return e+t}))}));Object(y["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(y["watch"])((function(){return e.editable}),(function(){e.editable||m()}));var b=Object(y["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(y["computed"])((function(){return e.data})),h=ma(v),O=h.hideCells,j=Object(y["computed"])((function(){if(!a.value.length)return[];var e=Object(ze["a"])(a.value,2),t=e[0],n=e[1];if(!r.value.length)return["".concat(t,"_").concat(n)];var o=Object(ze["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(y["watch"])(j,(function(e,t){Object(J["isEqual"])(e,t)||n("changeSelectedCells",j.value)}));var x=Object(y["computed"])((function(){return j.value.length>1?null:j.value[0]})),C=Object(y["computed"])((function(){if(!a.value.length)return null;var e=Object(ze["a"])(a.value,2),t=e[0],n=e[1];if(!r.value.length)return{row:[t,t],col:[n,n]};var o=Object(ze["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},E=function(e,t,n){0===e.button&&(r.value=[],c.value=!0,a.value=[t,n])},w=function(e,t){c.value&&(r.value=[e,t])};Object(y["onMounted"])((function(){document.addEventListener("mouseup",k)})),Object(y["onUnmounted"])((function(){document.removeEventListener("mouseup",k)}));var N=function(e,t){return O.value.includes("".concat(e,"_").concat(t))},I=function(e){var t=i.value.length-1;a.value=[0,e],r.value=[t,e]},S=function(e){var t=i.value[e].length-1;a.value=[e,0],r.value=[e,t]},B=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++)N(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(!N(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++)N(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(!N(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:me()});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:me()};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(L["a"])(Object(L["a"])({},l),{},{id:me()}));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(L["a"])(Object(L["a"])({},l),{},{id:me()});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(ze["a"])(a.value,2),t=e[0],n=e[1],o=Object(ze["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()},R=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()},F=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++)j.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]?N(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(y["nextTick"])((function(){var e=document.querySelector(".cell-text.active");e&&e.focus()}))},q=function(t){if(e.editable&&j.value.length){var n=t.key.toUpperCase();if(j.value.length<2){if(n===V.TAB&&(t.preventDefault(),H()),t.ctrlKey&&n===V.UP){t.preventDefault();var o=+j.value[0].split("_")[0];_(o)}if(t.ctrlKey&&n===V.DOWN){t.preventDefault();var l=+j.value[0].split("_")[0];_(l+1)}if(t.ctrlKey&&n===V.LEFT){t.preventDefault();var c=+j.value[0].split("_")[1];D(c)}if(t.ctrlKey&&n===V.RIGHT){t.preventDefault();var a=+j.value[0].split("_")[1];D(a+1)}}else n===V.DELETE&&P()}};Object(y["onMounted"])((function(){document.addEventListener("keydown",q)})),Object(y["onUnmounted"])((function(){document.removeEventListener("keydown",q)}));var G=Object(J["debounce"])((function(e,t,o){i.value[t][o].text=e,n("change",i.value)}),300,{trailing:!0}),U=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(y["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)}))},X=function(){for(var e=[],t=0;t<i.value.length;t++){for(var n=i.value[t],o=[],l=0;l<n.length;l++)N(t,l)||o.push(n[l]);o.length&&e.push(o)}return e},Y=function(){var e=X(),t=e.length>1,n=e[0].length>1;return{canDeleteRow:t,canDeleteCol:n}},Z=function(e,t){var n=j.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];j.value.includes("".concat(n,"_").concat(o))||(a.value=[n,o],r.value=[]);var l=Z(n,o),c=l.canMerge,i=l.canSplit,u=Y(),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 R(n,o)}},{divider:!0},{text:"选中当前列",handler:function(){return I(o)}},{text:"选中当前行",handler:function(){return S(n)}},{text:"选中全部单元格",handler:B}]};return{getTextStyle:fa,dragLinePosition:b,tableCells:i,colSizeList:f,totalWidth:p,hideCells:O,selectedCells:j,activedCell:x,selectedRange:C,handleCellMousedown:E,handleCellMouseenter:w,selectCol:I,selectRow:S,handleMousedownColHandler:F,contextmenus:K,handleInput:G,insertExcelData:U,subThemeColor:s,formatText:pa}}});n("a215");const xa=zn()(ga,[["render",sa],["__scopeId","data-v-c0c56b6e"]]);var Ca=xa,ka=Object(y["defineComponent"])({name:"editable-element-table",components:{EditableTable:Ca},props:{elementInfo:{type:Object,required:!0},selectElement:{type:Function,required:!0},contextmenus:{type:Function}},setup:function(e){var t=te(),n=ee(),o=Object(g["c"])(t),l=o.canvasScale,c=o.handleElementId,a=o.isScaling,r=Object(y["ref"])(),i=Ye(),u=i.addHistorySnapshot,d=function(t){e.elementInfo.lock||(t.stopPropagation(),e.selectElement(t,e.elementInfo))},s=Object(y["ref"])(!1);Object(y["watch"])(c,(function(){c.value!==e.elementInfo.id&&(s.value=!1)})),Object(y["watch"])(s,(function(){t.setDisableHotkeysState(s.value)}));var f=function(){e.elementInfo.lock||(s.value=!0)},p=Object(y["ref"])(-1);Object(y["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(y["onMounted"])((function(){r.value&&b.observe(r.value)})),Object(y["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(y["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 Ea=zn()(ka,[["render",ca],["__scopeId","data-v-426704b7"]]);var wa=Ea,Na=["width","height","stroke","stroke-width"],Ia=["transform"],Va=["d"];function Sa(e,t,n,o,l,c){var a=Object(y["resolveDirective"])("contextmenu");return Object(y["openBlock"])(),Object(y["createElementBlock"])("div",{class:Object(y["normalizeClass"])(["editable-element-latex",{lock:e.elementInfo.lock}]),style:Object(y["normalizeStyle"])({top:e.elementInfo.top+"px",left:e.elementInfo.left+"px",width:e.elementInfo.width+"px",height:e.elementInfo.height+"px"})},[Object(y["createElementVNode"])("div",{class:"rotate-wrapper",style:Object(y["normalizeStyle"])({transform:"rotate(".concat(e.elementInfo.rotate,"deg)")})},[Object(y["withDirectives"])((Object(y["openBlock"])(),Object(y["createElementBlock"])("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(y["openBlock"])(),Object(y["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(y["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(y["createElementVNode"])("path",{d:e.elementInfo.path},null,8,Va)],8,Ia)],8,Na))],32)),[[a,e.contextmenus]])],4)],6)}var Ba=Object(y["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(){oc.emit(hl.OPEN_LATEX_EDITOR)};return{handleSelectElement:t,openLatexEditor:n}}});n("1190");const La=zn()(Ba,[["render",Sa],["__scopeId","data-v-3168526a"]]);var Ta=La;function Ma(e,t,n,o,l,c){var a=Object(y["resolveComponent"])("VideoPlayer"),r=Object(y["resolveDirective"])("contextmenu");return Object(y["openBlock"])(),Object(y["createElementBlock"])("div",{class:Object(y["normalizeClass"])(["editable-element-video",{lock:e.elementInfo.lock}]),style:Object(y["normalizeStyle"])({top:e.elementInfo.top+"px",left:e.elementInfo.left+"px",width:e.elementInfo.width+"px",height:e.elementInfo.height+"px"})},[Object(y["createElementVNode"])("div",{class:"rotate-wrapper",style:Object(y["normalizeStyle"])({transform:"rotate(".concat(e.elementInfo.rotate,"deg)")})},[Object(y["withDirectives"])((Object(y["openBlock"])(),Object(y["createElementBlock"])("div",{class:"element-content",onMousedown:t[1]||(t[1]=function(t){return e.handleSelectElement(t,!1)})},[Object(y["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(y["openBlock"])(),Object(y["createElementBlock"])(y["Fragment"],null,Object(y["renderList"])(["t","b","l","r"],(function(n){return Object(y["createElementVNode"])("div",{class:Object(y["normalizeClass"])(["handler-border",n]),key:n,onMousedown:t[0]||(t[0]=function(t){return e.handleSelectElement(t)})},null,34)})),64))],32)),[[r,e.contextmenus]])],4)],6)}var _a=function(e){return Object(y["pushScopeId"])("data-v-e716fb74"),e=e(),Object(y["popScopeId"])(),e},Da=["src","poster"],za={class:"bezel"},Aa=_a((function(){return Object(y["createElementVNode"])("div",{class:"controller-mask"},null,-1)})),Ra={class:"controller"},Fa={class:"icons icons-left"},Pa={class:"icon-content"},Ha={class:"volume"},qa={class:"icon-content"},Ga={class:"volume-bar",ref:"volumeBarRef"},Ua=_a((function(){return Object(y["createElementVNode"])("span",{class:"thumb"},null,-1)})),Xa=[Ua],Wa={class:"time"},Ya={class:"ptime"},Za=Object(y["createTextVNode"])(" / "),Ja={class:"dtime"},Ka={class:"icons icons-right"},Qa={class:"speed"},$a={class:"icon speed-icon"},er=["onClick"],tr=_a((function(){return Object(y["createElementVNode"])("span",{class:"icon-content"},"循环",-1)})),nr=[tr],or={class:"bar"},lr=_a((function(){return Object(y["createElementVNode"])("span",{class:"thumb"},null,-1)})),cr=[lr];function ar(e,t,n,o,l,c){var a=Object(y["resolveComponent"])("IconPause"),r=Object(y["resolveComponent"])("IconPlayOne"),i=Object(y["resolveComponent"])("IconVolumeMute"),u=Object(y["resolveComponent"])("IconVolumeNotice"),d=Object(y["resolveComponent"])("IconVolumeSmall");return Object(y["openBlock"])(),Object(y["createElementBlock"])("div",{class:Object(y["normalizeClass"])(["video-player",{"hide-controller":e.hideController}]),style:Object(y["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(y["createElementVNode"])("div",{class:"video-wrap",onClick:t[8]||(t[8]=function(t){return e.toggle()})},[Object(y["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,Da),Object(y["createElementVNode"])("div",za,[Object(y["createElementVNode"])("span",{class:Object(y["normalizeClass"])(["bezel-icon",{"bezel-transition":e.bezelTransition}]),onAnimationend:t[7]||(t[7]=function(t){return e.bezelTransition=!1})},[e.paused?(Object(y["openBlock"])(),Object(y["createBlock"])(a,{key:0})):(Object(y["openBlock"])(),Object(y["createBlock"])(r,{key:1}))],34)])]),Aa,Object(y["createElementVNode"])("div",Ra,[Object(y["createElementVNode"])("div",Fa,[Object(y["createElementVNode"])("div",{class:"icon play-icon",onClick:t[9]||(t[9]=function(t){return e.toggle()})},[Object(y["createElementVNode"])("span",Pa,[e.paused?(Object(y["openBlock"])(),Object(y["createBlock"])(r,{key:0})):(Object(y["openBlock"])(),Object(y["createBlock"])(a,{key:1}))])]),Object(y["createElementVNode"])("div",Ha,[Object(y["createElementVNode"])("div",{class:"icon volume-icon",onClick:t[10]||(t[10]=function(t){return e.toggleVolume()})},[Object(y["createElementVNode"])("span",qa,[0===e.volume?(Object(y["openBlock"])(),Object(y["createBlock"])(i,{key:0})):1===e.volume?(Object(y["openBlock"])(),Object(y["createBlock"])(u,{key:1})):(Object(y["openBlock"])(),Object(y["createBlock"])(d,{key:2}))])]),Object(y["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(y["createElementVNode"])("div",Ga,[Object(y["createElementVNode"])("div",{class:"volume-bar-inner",style:Object(y["normalizeStyle"])({width:e.volumeBarWidth})},Xa,4)],512)],32)]),Object(y["createElementVNode"])("span",Wa,[Object(y["createElementVNode"])("span",Ya,Object(y["toDisplayString"])(e.ptime),1),Za,Object(y["createElementVNode"])("span",Ja,Object(y["toDisplayString"])(e.dtime),1)])]),Object(y["createElementVNode"])("div",Ka,[Object(y["createElementVNode"])("div",Qa,[Object(y["createElementVNode"])("div",$a,[Object(y["createElementVNode"])("span",{class:"icon-content",onClick:t[14]||(t[14]=function(t){return e.speedMenuVisible=!e.speedMenuVisible})},"倍速"),e.speedMenuVisible?(Object(y["openBlock"])(),Object(y["createElementBlock"])("div",{key:0,class:"speed-menu",onMouseleave:t[15]||(t[15]=function(t){return e.speedMenuVisible=!1})},[(Object(y["openBlock"])(!0),Object(y["createElementBlock"])(y["Fragment"],null,Object(y["renderList"])(e.speedOptions,(function(t){return Object(y["openBlock"])(),Object(y["createElementBlock"])("div",{class:Object(y["normalizeClass"])(["speed-menu-item",{active:t.value===e.playbackRate}]),key:t.label,onClick:function(n){return e.speed(t.value)}},Object(y["toDisplayString"])(t.label),11,er)})),128))],32)):Object(y["createCommentVNode"])("",!0)])]),Object(y["createElementVNode"])("div",{class:"loop",onClick:t[16]||(t[16]=function(t){return e.toggleLoop()})},[Object(y["createElementVNode"])("div",{class:Object(y["normalizeClass"])(["icon loop-icon",{active:e.loop}])},nr,2)])]),Object(y["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(y["createElementVNode"])("div",{class:Object(y["normalizeClass"])(["bar-time",{hidden:!e.playBarTimeVisible}]),style:Object(y["normalizeStyle"])({left:e.playBarTimeLeft})},Object(y["toDisplayString"])(e.playBarTime),7),Object(y["createElementVNode"])("div",or,[Object(y["createElementVNode"])("div",{class:"loaded",style:Object(y["normalizeStyle"])({width:e.loadedBarWidth})},null,4),Object(y["createElementVNode"])("div",{class:"played",style:Object(y["normalizeStyle"])({width:e.playedBarWidth})},cr,4)])],544)])],38)}var rr=function(e,t){Object(y["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()}}}}))},ir=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(":")},ur=function(e){return e.getBoundingClientRect().left},dr=Object(y["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(y["ref"])(),n=Object(y["ref"])(),o=Object(y["ref"])(),l=Object(y["ref"])(.5),c=Object(y["ref"])(!0),a=Object(y["ref"])(0),r=Object(y["ref"])(0),i=Object(y["ref"])(0),u=Object(y["ref"])(!1),d=Object(y["ref"])(!1),s=Object(y["ref"])(1),f=Object(y["ref"])(!1),p=Object(y["ref"])("00:00"),m=Object(y["ref"])("0"),b=Object(y["computed"])((function(){return ir(a.value)})),v=Object(y["computed"])((function(){return ir(r.value)})),h=Object(y["computed"])((function(){return a.value/r.value*100+"%"})),O=Object(y["computed"])((function(){return i.value/r.value*100+"%"})),j=Object(y["computed"])((function(){return 100*l.value+"%"})),g=Object(y["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)},E=function(){t.value&&(c.value=!0,t.value.pause(),d.value=!0)},w=function(){c.value?k():E()},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()):E()},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 Ee["a"].error("视频加载失败")},M=function(e){if(t.value&&n.value){var o="clientX"in e?e.clientX:e.changedTouches[0].clientX,l=(o-ur(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-ur(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-ur(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)},R=function(){document.addEventListener("mousemove",z),document.addEventListener("touchmove",z),document.addEventListener("mouseup",A),document.addEventListener("touchend",A)},F=function(e){if(o.value){var t=(e.clientX-ur(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=ir(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},G=Object(y["ref"])(-1),U=Object(y["ref"])(!1),X=function(){U.value=!1,clearTimeout(G.value),G.value=setTimeout((function(){var e;null!==(e=t.value)&&void 0!==e&&e.played.length&&(U.value=!0)}),3e3)};return rr(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:j,hideController:U,bezelTransition:d,playbackRate:s,speedMenuVisible:g,speedOptions:x,seek:C,play:k,pause:E,toggle:w,setVolume:N,speed:I,handleDurationchange:V,handleTimeupdate:S,handleEnded:B,handleProgress:L,handleMousedownPlayBar:D,handleMousedownVolumeBar:R,handleClickVolumeBar:F,handleMousemovePlayBar:P,toggleVolume:H,toggleLoop:q,autoHideController:X,handleError:T}}});n("a7fe");const sr=zn()(dr,[["render",ar],["__scopeId","data-v-e716fb74"]]);var fr=sr,pr=Object(y["defineComponent"])({name:"editable-element-video",components:{VideoPlayer:fr},props:{elementInfo:{type:Object,required:!0},selectElement:{type:Function,required:!0},contextmenus:{type:Function}},setup:function(e){var t=Object(g["c"])(te()),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 mr=zn()(pr,[["render",Ma],["__scopeId","data-v-7f80f8ee"]]);var br=mr;function vr(e,t,n,o,l,c){var a=Object(y["resolveComponent"])("IconVolumeNotice"),r=Object(y["resolveComponent"])("AudioPlayer"),i=Object(y["resolveDirective"])("contextmenu");return Object(y["openBlock"])(),Object(y["createElementBlock"])("div",{class:Object(y["normalizeClass"])(["editable-element-audio",{lock:e.elementInfo.lock}]),style:Object(y["normalizeStyle"])({top:e.elementInfo.top+"px",left:e.elementInfo.left+"px",width:e.elementInfo.width+"px",height:e.elementInfo.height+"px"})},[Object(y["createElementVNode"])("div",{class:"rotate-wrapper",style:Object(y["normalizeStyle"])({transform:"rotate(".concat(e.elementInfo.rotate,"deg)")})},[Object(y["withDirectives"])((Object(y["openBlock"])(),Object(y["createElementBlock"])("div",{class:"element-content",onMousedown:t[1]||(t[1]=function(t){return e.handleSelectElement(t)})},[Object(y["createVNode"])(a,{class:"audio-icon",style:Object(y["normalizeStyle"])({fontSize:e.audioIconSize,color:e.elementInfo.color})},null,8,["style"]),e.handleElementId===e.elementInfo.id?(Object(y["openBlock"])(),Object(y["createBlock"])(r,{key:0,class:"audio-player",style:Object(y["normalizeStyle"])(Object(L["a"])({},e.audioPlayerPosition)),src:e.elementInfo.src,loop:e.elementInfo.loop,scale:e.canvasScale,onMousedown:t[0]||(t[0]=Object(y["withModifiers"])((function(){}),["stop"]))},null,8,["style","src","loop","scale"])):Object(y["createCommentVNode"])("",!0)],32)),[[i,e.contextmenus]])],4)],6)}var hr=function(e){return Object(y["pushScopeId"])("data-v-5cabbb47"),e=e(),Object(y["popScopeId"])(),e},Or=["src","autoplay"],jr={class:"controller"},yr={class:"icons"},gr={class:"icon-content"},xr={class:"volume"},Cr={class:"icon-content"},kr={class:"volume-bar",ref:"volumeBarRef"},Er=hr((function(){return Object(y["createElementVNode"])("span",{class:"thumb"},null,-1)})),wr=[Er],Nr={class:"time"},Ir={class:"ptime"},Vr=Object(y["createTextVNode"])(" / "),Sr={class:"dtime"},Br={class:"bar"},Lr=hr((function(){return Object(y["createElementVNode"])("span",{class:"thumb"},null,-1)})),Tr=[Lr];function Mr(e,t,n,o,l,c){var a=Object(y["resolveComponent"])("IconPlayOne"),r=Object(y["resolveComponent"])("IconPause"),i=Object(y["resolveComponent"])("IconVolumeMute"),u=Object(y["resolveComponent"])("IconVolumeNotice"),d=Object(y["resolveComponent"])("IconVolumeSmall");return Object(y["openBlock"])(),Object(y["createElementBlock"])("div",{class:"audio-player",style:Object(y["normalizeStyle"])({transform:"scale(".concat(1/e.scale,")")})},[Object(y["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,Or),Object(y["createElementVNode"])("div",jr,[Object(y["createElementVNode"])("div",yr,[Object(y["createElementVNode"])("div",{class:"icon play-icon",onClick:t[6]||(t[6]=function(t){return e.toggle()})},[Object(y["createElementVNode"])("span",gr,[e.paused?(Object(y["openBlock"])(),Object(y["createBlock"])(a,{key:0})):(Object(y["openBlock"])(),Object(y["createBlock"])(r,{key:1}))])]),Object(y["createElementVNode"])("div",xr,[Object(y["createElementVNode"])("div",{class:"icon volume-icon",onClick:t[7]||(t[7]=function(t){return e.toggleVolume()})},[Object(y["createElementVNode"])("span",Cr,[0===e.volume?(Object(y["openBlock"])(),Object(y["createBlock"])(i,{key:0})):1===e.volume?(Object(y["openBlock"])(),Object(y["createBlock"])(u,{key:1})):(Object(y["openBlock"])(),Object(y["createBlock"])(d,{key:2}))])]),Object(y["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(y["createElementVNode"])("div",kr,[Object(y["createElementVNode"])("div",{class:"volume-bar-inner",style:Object(y["normalizeStyle"])({width:e.volumeBarWidth})},wr,4)],512)],32)])]),Object(y["createElementVNode"])("span",Nr,[Object(y["createElementVNode"])("span",Ir,Object(y["toDisplayString"])(e.ptime),1),Vr,Object(y["createElementVNode"])("span",Sr,Object(y["toDisplayString"])(e.dtime),1)]),Object(y["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(y["createElementVNode"])("div",{class:Object(y["normalizeClass"])(["bar-time",{hidden:!e.playBarTimeVisible}]),style:Object(y["normalizeStyle"])({left:e.playBarTimeLeft})},Object(y["toDisplayString"])(e.playBarTime),7),Object(y["createElementVNode"])("div",Br,[Object(y["createElementVNode"])("div",{class:"loaded",style:Object(y["normalizeStyle"])({width:e.loadedBarWidth})},null,4),Object(y["createElementVNode"])("div",{class:"played",style:Object(y["normalizeStyle"])({width:e.playedBarWidth})},Tr,4)])],544)])],4)}var _r=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(":")},Dr=function(e){return e.getBoundingClientRect().left},zr=Object(y["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(y["ref"])(),n=Object(y["ref"])(),o=Object(y["ref"])(),l=Object(y["ref"])(.5),c=Object(y["ref"])(!0),a=Object(y["ref"])(0),r=Object(y["ref"])(0),i=Object(y["ref"])(0),u=Object(y["ref"])(!1),d=Object(y["ref"])("00:00"),s=Object(y["ref"])("0"),f=Object(y["computed"])((function(){return _r(a.value)})),p=Object(y["computed"])((function(){return _r(r.value)})),m=Object(y["computed"])((function(){return a.value/r.value*100+"%"})),b=Object(y["computed"])((function(){return i.value/r.value*100+"%"})),v=Object(y["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())},j=function(){t.value&&(c.value=!0,t.value.pause())},g=function(){c.value?O():j()},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},E=function(){c.value=!1},w=function(){e.loop?(h(0),O()):j()},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 Ee["a"].error("视频加载失败")},V=function(e){if(t.value&&n.value){var o="clientX"in e?e.clientX:e.changedTouches[0].clientX,l=(o-Dr(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-Dr(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-Dr(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-Dr(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=_r(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:j,toggle:g,setVolume:x,handleDurationchange:C,handleTimeupdate:k,handlePlayed:E,handleEnded:w,handleProgress:N,handleError:I,handleMousedownPlayBar:B,handleMousedownVolumeBar:M,handleClickVolumeBar:_,handleMousemovePlayBar:D,toggleVolume:z}}});n("195c");const Ar=zn()(zr,[["render",Mr],["__scopeId","data-v-5cabbb47"]]);var Rr=Ar,Fr=Object(y["defineComponent"])({name:"editable-element-audio",components:{AudioPlayer:Rr},props:{elementInfo:{type:Object,required:!0},selectElement:{type:Function,required:!0},contextmenus:{type:Function}},setup:function(e){var t=Object(g["c"])(te()),n=t.canvasScale,o=t.handleElementId,l=Object(g["c"])(ee()),c=l.viewportRatio,a=Object(y["computed"])((function(){return Math.min(e.elementInfo.width,e.elementInfo.height)+"px"})),r=Object(y["computed"])((function(){var t=Ke,o=Ke*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 Pr=zn()(Fr,[["render",vr],["__scopeId","data-v-66dd4448"]]);var Hr=Pr,qr=Object(y["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(y["computed"])((function(){var t,n=(t={},Object(re["a"])(t,xe.IMAGE,ll),Object(re["a"])(t,xe.TEXT,pc),Object(re["a"])(t,xe.SHAPE,Lc),Object(re["a"])(t,xe.LINE,Wc),Object(re["a"])(t,xe.CHART,oa),Object(re["a"])(t,xe.TABLE,wa),Object(re["a"])(t,xe.LATEX,Ta),Object(re["a"])(t,xe.VIDEO,br),Object(re["a"])(t,xe.AUDIO,Hr),t);return n[e.elementInfo.type]||null})),n=ut(),o=n.orderElement,l=io(),c=l.alignElementToCanvas,a=ct(),r=a.combineElements,i=a.uncombineElements,u=lt(),d=u.deleteElement,s=ot(),f=s.lockElement,p=s.unlockElement,m=at(),b=m.copyElement,v=m.pasteElement,h=m.cutElement,O=rt(),j=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(E.HORIZONTAL)},children:[{text:"水平垂直居中",handler:function(){return c(E.CENTER)}},{text:"水平居中",handler:function(){return c(E.HORIZONTAL)}},{text:"左对齐",handler:function(){return c(E.LEFT)}},{text:"右对齐",handler:function(){return c(E.RIGHT)}}]},{text:"垂直居中",handler:function(){return c(E.VERTICAL)},children:[{text:"水平垂直居中",handler:function(){return c(E.CENTER)}},{text:"垂直居中",handler:function(){return c(E.VERTICAL)}},{text:"顶部对齐",handler:function(){return c(E.TOP)}},{text:"底部对齐",handler:function(){return c(E.BOTTOM)}}]},{divider:!0},{text:"置于顶层",disable:e.isMultiSelect&&!e.elementInfo.groupId,handler:function(){return o(e.elementInfo,k.TOP)},children:[{text:"置于顶层",handler:function(){return o(e.elementInfo,k.TOP)}},{text:"上移一层",handler:function(){return o(e.elementInfo,k.UP)}}]},{text:"置于底层",disable:e.isMultiSelect&&!e.elementInfo.groupId,handler:function(){return o(e.elementInfo,k.BOTTOM)},children:[{text:"置于底层",handler:function(){return o(e.elementInfo,k.BOTTOM)}},{text:"下移一层",handler:function(){return o(e.elementInfo,k.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:j},{text:"锁定",subText:"Ctrl + L",handler:f},{text:"删除",subText:"Delete",handler:d}]};return{currentElementComponent:t,contextmenus:g}}});const Gr=zn()(qr,[["render",ro]]);var Ur=Gr;function Xr(e,t,n,o,l,c){return Object(y["openBlock"])(),Object(y["createElementBlock"])("div",{class:Object(y["normalizeClass"])("mouse-selection quadrant-".concat(e.quadrant)),style:Object(y["normalizeStyle"])({top:e.top+"px",left:e.left+"px",width:e.width+"px",height:e.height+"px"})},null,6)}var Wr=Object(y["defineComponent"])({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("aa92");const Yr=zn()(Wr,[["render",Xr],["__scopeId","data-v-25d4b5f8"]]);var Zr=Yr;function Jr(e,t,n,o,l,c){var a=Object(y["resolveComponent"])("GridLines");return Object(y["openBlock"])(),Object(y["createElementBlock"])("div",{class:"viewport-background",style:Object(y["normalizeStyle"])(e.backgroundStyle)},[e.showGridLines?(Object(y["openBlock"])(),Object(y["createBlock"])(a,{key:0})):Object(y["createCommentVNode"])("",!0)],4)}var Kr={class:"grid-lines"},Qr=["d","stroke"];function $r(e,t,n,o,l,c){return Object(y["openBlock"])(),Object(y["createElementBlock"])("svg",Kr,[Object(y["createElementVNode"])("path",{style:Object(y["normalizeStyle"])({transform:"scale(".concat(e.canvasScale,")")}),d:e.path,fill:"none",stroke:e.gridColor,"stroke-width":"0.3","stroke-dasharray":"5"},null,12,Qr)])}var ei=Object(y["defineComponent"])({name:"grid-lines",setup:function(){var e=Object(g["c"])(te()),t=e.canvasScale,n=Object(g["c"])(ee()),o=n.currentSlide,l=n.viewportRatio,c=Object(y["computed"])((function(){var e;return null===(e=o.value)||void 0===e?void 0:e.background})),a=Object(y["computed"])((function(){var e,t=(null===(e=c.value)||void 0===e?void 0:e.color)||"#fff",n=["#000","#fff"];return Z.a.mostReadable(t,n,{includeFallbackColors:!0}).setAlpha(.5).toRgbString()})),r=50,i=function(){for(var e=Ke,t=Ke*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:Ke,height:Ke*l.value,path:i()}}});n("ffb8");const ti=zn()(ei,[["render",$r],["__scopeId","data-v-9b94cc34"]]);var ni=ti,oi=function(e){var t=Object(y["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}},li=Object(y["defineComponent"])({name:"viewport-background",components:{GridLines:ni},setup:function(){var e=Object(g["c"])(te()),t=e.showGridLines,n=Object(g["c"])(ee()),o=n.currentSlide,l=Object(y["computed"])((function(){var e;return null===(e=o.value)||void 0===e?void 0:e.background})),c=oi(l),a=c.backgroundStyle;return{showGridLines:t,backgroundStyle:a}}});n("06b6");const ci=zn()(li,[["render",Jr],["__scopeId","data-v-4d0018d8"]]);var ai=ci;function ri(e,t,n,o,l,c){return Object(y["openBlock"])(),Object(y["createElementBlock"])("div",{class:"alignment-line",style:Object(y["normalizeStyle"])({left:e.left,top:e.top})},[Object(y["createElementVNode"])("div",{class:Object(y["normalizeClass"])(["line",e.type]),style:Object(y["normalizeStyle"])(e.sizeStyle)},null,6)],4)}var ii=Object(y["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(g["c"])(te()),n=t.canvasScale,o=Object(y["computed"])((function(){return e.axis.x*n.value+"px"})),l=Object(y["computed"])((function(){return e.axis.y*n.value+"px"})),c=Object(y["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 ui=zn()(ii,[["render",ri],["__scopeId","data-v-62c9018e"]]);var di=ui,si=["width","height"],fi=["d"];function pi(e,t,n,o,l,c){var a,r;return Object(y["openBlock"])(),Object(y["createElementBlock"])("div",{class:"element-create-selection",ref:"selectionRef",onMousedown:t[0]||(t[0]=Object(y["withModifiers"])((function(t){return e.createSelection(t)}),["stop"])),onContextmenu:t[1]||(t[1]=Object(y["withModifiers"])((function(){}),["stop","prevent"]))},[e.start&&e.end?(Object(y["openBlock"])(),Object(y["createElementBlock"])("div",{key:0,class:Object(y["normalizeClass"])(["selection",null===(a=e.creatingElement)||void 0===a?void 0:a.type]),style:Object(y["normalizeStyle"])(e.position)},["line"===(null===(r=e.creatingElement)||void 0===r?void 0:r.type)&&e.lineData?(Object(y["openBlock"])(),Object(y["createElementBlock"])("svg",{key:0,overflow:"visible",width:e.lineData.svgWidth,height:e.lineData.svgHeight},[Object(y["createElementVNode"])("path",{d:e.lineData.path,stroke:"#d14424",fill:"none","stroke-width":"2"},null,8,fi)],8,si)):Object(y["createCommentVNode"])("",!0)],6)):Object(y["createCommentVNode"])("",!0)],544)}var mi=Object(y["defineComponent"])({name:"element-create-selection",emits:["created"],setup:function(e,t){var n=t.emit,o=te(),l=Object(g["c"])(o),c=l.creatingElement,a=Object(g["c"])(fe()),r=a.ctrlOrShiftKeyActive,i=Object(y["ref"])(),u=Object(y["ref"])(),d=Object(y["ref"])(),s=Object(y["reactive"])({x:0,y:0});Object(y["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(y["computed"])((function(){if(!i.value||!u.value)return null;if(!c.value||"line"!==c.value.type)return null;var e=Object(ze["a"])(i.value,2),t=e[0],n=e[1],o=Object(ze["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(y["computed"])((function(){if(!i.value||!u.value)return{};var e=Object(ze["a"])(i.value,2),t=e[0],n=e[1],o=Object(ze["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("b8ce");const bi=zn()(mi,[["render",pi],["__scopeId","data-v-7be36746"]]);var vi=bi;function hi(e,t,n,o,l,c){var a=Object(y["resolveComponent"])("BorderLine"),r=Object(y["resolveComponent"])("ResizeHandler");return Object(y["openBlock"])(),Object(y["createElementBlock"])("div",{class:"multi-select-operate",style:Object(y["normalizeStyle"])({left:e.minX*e.canvasScale+"px",top:e.minY*e.canvasScale+"px"})},[(Object(y["openBlock"])(!0),Object(y["createElementBlock"])(y["Fragment"],null,Object(y["renderList"])(e.borderLines,(function(e){return Object(y["openBlock"])(),Object(y["createBlock"])(a,{key:e.type,type:e.type,style:Object(y["normalizeStyle"])(e.style)},null,8,["type","style"])})),128)),e.disableResize?Object(y["createCommentVNode"])("",!0):(Object(y["openBlock"])(!0),Object(y["createElementBlock"])(y["Fragment"],{key:0},Object(y["renderList"])(e.resizeHandlers,(function(t){return Object(y["openBlock"])(),Object(y["createBlock"])(r,{key:t.direction,type:t.direction,style:Object(y["normalizeStyle"])(t.style),onMousedown:Object(y["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 Oi=function(e,t){var n=Object(y["computed"])((function(){return[{direction:N.LEFT_TOP,style:{}},{direction:N.TOP,style:{left:e.value/2+"px"}},{direction:N.RIGHT_TOP,style:{left:e.value+"px"}},{direction:N.LEFT,style:{top:t.value/2+"px"}},{direction:N.RIGHT,style:{left:e.value+"px",top:t.value/2+"px"}},{direction:N.LEFT_BOTTOM,style:{top:t.value+"px"}},{direction:N.BOTTOM,style:{left:e.value/2+"px",top:t.value+"px"}},{direction:N.RIGHT_BOTTOM,style:{left:e.value+"px",top:t.value+"px"}}]})),o=Object(y["computed"])((function(){return[{direction:N.LEFT,style:{top:t.value/2+"px"}},{direction:N.RIGHT,style:{left:e.value+"px",top:t.value/2+"px"}}]})),l=Object(y["computed"])((function(){return[{type:w.T,style:{width:e.value+"px"}},{type:w.B,style:{top:t.value+"px",width:e.value+"px"}},{type:w.L,style:{height:t.value+"px"}},{type:w.R,style:{left:e.value+"px",height:t.value+"px"}}]}));return{resizeHandlers:n,textElementResizeHandlers:o,borderLines:l}};function ji(e,t,n,o,l,c){return Object(y["openBlock"])(),Object(y["createElementBlock"])("div",{class:Object(y["normalizeClass"])(["resize-handler",e.rotateClassName,e.type])},null,2)}var yi=Object(y["defineComponent"])({name:"resize-handler",props:{type:{type:String,default:""},rotate:{type:Number,default:0}},setup:function(e){var t=Object(y["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("7f52");const gi=zn()(yi,[["render",ji],["__scopeId","data-v-c9559332"]]);var xi=gi;function Ci(e,t,n,o,l,c){return Object(y["openBlock"])(),Object(y["createElementBlock"])("div",{class:Object(y["normalizeClass"])(["border-line",e.type,{wide:e.isWide}])},null,2)}var ki=Object(y["defineComponent"])({name:"border-line",props:{type:{type:String,required:!0},isWide:{type:Boolean,default:!1}}});n("9d5f");const Ei=zn()(ki,[["render",Ci],["__scopeId","data-v-1430bedc"]]);var wi=Ei,Ni=Object(y["defineComponent"])({name:"multi-select-operate",components:{ResizeHandler:xi,BorderLine:wi},props:{elementList:{type:Array,required:!0},scaleMultiElement:{type:Function,required:!0}},setup:function(e){var t=Object(g["c"])(te()),n=t.activeElementIdList,o=t.canvasScale,l=Object(y["computed"])((function(){return e.elementList.filter((function(e){return n.value.includes(e.id)}))})),c=Object(y["reactive"])({minX:0,maxX:0,minY:0,maxY:0}),a=Object(y["computed"])((function(){return(c.maxX-c.minX)*o.value})),r=Object(y["computed"])((function(){return(c.maxY-c.minY)*o.value})),i=Oi(a,r),u=i.resizeHandlers,d=i.borderLines,s=function(){var e=Pe(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(y["watchEffect"])(s);var f=Object(y["computed"])((function(){return l.value.some((function(e){return!!("image"!==e.type&&"shape"!==e.type||e.rotate)}))}));return Object(L["a"])(Object(L["a"])({},Object(y["toRefs"])(c)),{},{canvasScale:o,borderLines:d,disableResize:f,resizeHandlers:u})}});n("4eba");const Ii=zn()(Ni,[["render",hi],["__scopeId","data-v-5bb500e0"]]);var Vi=Ii,Si={key:1,class:"animation-index"};function Bi(e,t,n,o,l,c){var a=Object(y["resolveComponent"])("LinkHandler");return Object(y["openBlock"])(),Object(y["createElementBlock"])("div",{class:Object(y["normalizeClass"])(["operate",{"multi-select":e.isMultiSelect&&!e.isActive}]),style:Object(y["normalizeStyle"])({top:e.elementInfo.top*e.canvasScale+"px",left:e.elementInfo.left*e.canvasScale+"px",transform:"rotate(".concat(e.rotate,"deg)"),transformOrigin:"".concat(e.elementInfo.width*e.canvasScale/2,"px ").concat(e.height*e.canvasScale/2,"px")})},[e.isSelected?(Object(y["openBlock"])(),Object(y["createBlock"])(Object(y["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(y["createCommentVNode"])("",!0),"elAnimation"===e.toolbarState&&-1!==e.elementIndexInAnimation?(Object(y["openBlock"])(),Object(y["createElementBlock"])("div",Si,Object(y["toDisplayString"])(e.elementIndexInAnimation+1),1)):Object(y["createCommentVNode"])("",!0),e.isActive&&e.elementInfo.link?(Object(y["openBlock"])(),Object(y["createBlock"])(a,{key:2,elementInfo:e.elementInfo,link:e.elementInfo.link,openLinkDialog:e.openLinkDialog,onMousedown:t[0]||(t[0]=Object(y["withModifiers"])((function(){}),["stop"]))},null,8,["elementInfo","link","openLinkDialog"])):Object(y["createCommentVNode"])("",!0)],6)}function Li(e,t,n,o,l,c){var a=Object(y["resolveComponent"])("BorderLine"),r=Object(y["resolveComponent"])("ResizeHandler"),i=Object(y["resolveComponent"])("RotateHandler");return Object(y["openBlock"])(),Object(y["createElementBlock"])("div",{class:Object(y["normalizeClass"])(["image-element-operate",{cliping:e.isCliping}])},[(Object(y["openBlock"])(!0),Object(y["createElementBlock"])(y["Fragment"],null,Object(y["renderList"])(e.borderLines,(function(e){return Object(y["openBlock"])(),Object(y["createBlock"])(a,{class:"operate-border-line",key:e.type,type:e.type,style:Object(y["normalizeStyle"])(e.style)},null,8,["type","style"])})),128)),e.handlerVisible?(Object(y["openBlock"])(),Object(y["createElementBlock"])(y["Fragment"],{key:0},[(Object(y["openBlock"])(!0),Object(y["createElementBlock"])(y["Fragment"],null,Object(y["renderList"])(e.resizeHandlers,(function(t){return Object(y["openBlock"])(),Object(y["createBlock"])(r,{class:"operate-resize-handler",key:t.direction,type:t.direction,rotate:e.elementInfo.rotate,style:Object(y["normalizeStyle"])(t.style),onMousedown:Object(y["withModifiers"])((function(n){return e.scaleElement(n,e.elementInfo,t.direction)}),["stop"])},null,8,["type","rotate","style","onMousedown"])})),128)),Object(y["createVNode"])(i,{class:"operate-rotate-handler",style:Object(y["normalizeStyle"])({left:e.scaleWidth/2+"px"}),onMousedown:t[0]||(t[0]=Object(y["withModifiers"])((function(t){return e.rotateElement(e.elementInfo)}),["stop"]))},null,8,["style"])],64)):Object(y["createCommentVNode"])("",!0)],2)}var Ti={class:"rotate-handler"};function Mi(e,t,n,o,l,c){return Object(y["openBlock"])(),Object(y["createElementBlock"])("div",Ti)}var _i={name:"rotate-handler"};n("8754");const Di=zn()(_i,[["render",Mi],["__scopeId","data-v-9a549510"]]);var zi=Di,Ai=Object(y["defineComponent"])({name:"image-element-operate",inheritAttrs:!1,components:{RotateHandler:zi,ResizeHandler:xi,BorderLine:wi},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(g["c"])(te()),n=t.canvasScale,o=t.clipingImageElementId,l=Object(y["computed"])((function(){return o.value===e.elementInfo.id})),c=Object(y["computed"])((function(){return e.elementInfo.width*n.value})),a=Object(y["computed"])((function(){return e.elementInfo.height*n.value})),r=Oi(c,a),i=r.resizeHandlers,u=r.borderLines;return{isCliping:l,scaleWidth:c,resizeHandlers:i,borderLines:u}}});n("5efd");const Ri=zn()(Ai,[["render",Li],["__scopeId","data-v-db6d5ba6"]]);var Fi=Ri,Pi={class:"text-element-operate"};function Hi(e,t,n,o,l,c){var a=Object(y["resolveComponent"])("BorderLine"),r=Object(y["resolveComponent"])("ResizeHandler"),i=Object(y["resolveComponent"])("RotateHandler");return Object(y["openBlock"])(),Object(y["createElementBlock"])("div",Pi,[(Object(y["openBlock"])(!0),Object(y["createElementBlock"])(y["Fragment"],null,Object(y["renderList"])(e.borderLines,(function(e){return Object(y["openBlock"])(),Object(y["createBlock"])(a,{class:"operate-border-line",key:e.type,type:e.type,style:Object(y["normalizeStyle"])(e.style)},null,8,["type","style"])})),128)),e.handlerVisible?(Object(y["openBlock"])(),Object(y["createElementBlock"])(y["Fragment"],{key:0},[(Object(y["openBlock"])(!0),Object(y["createElementBlock"])(y["Fragment"],null,Object(y["renderList"])(e.textElementResizeHandlers,(function(t){return Object(y["openBlock"])(),Object(y["createBlock"])(r,{class:"operate-resize-handler",key:t.direction,type:t.direction,rotate:e.elementInfo.rotate,style:Object(y["normalizeStyle"])(t.style),onMousedown:Object(y["withModifiers"])((function(n){return e.scaleElement(n,e.elementInfo,t.direction)}),["stop"])},null,8,["type","rotate","style","onMousedown"])})),128)),Object(y["createVNode"])(i,{class:"operate-rotate-handler",style:Object(y["normalizeStyle"])({left:e.scaleWidth/2+"px"}),onMousedown:t[0]||(t[0]=Object(y["withModifiers"])((function(t){return e.rotateElement(e.elementInfo)}),["stop"]))},null,8,["style"])],64)):Object(y["createCommentVNode"])("",!0)])}var qi=Object(y["defineComponent"])({name:"text-element-operate",inheritAttrs:!1,components:{RotateHandler:zi,ResizeHandler:xi,BorderLine:wi},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(g["c"])(te()),n=t.canvasScale,o=Object(y["computed"])((function(){return e.elementInfo.width*n.value})),l=Object(y["computed"])((function(){return e.elementInfo.height*n.value})),c=Oi(o,l),a=c.textElementResizeHandlers,r=c.borderLines;return{scaleWidth:o,textElementResizeHandlers:a,borderLines:r}}});const Gi=zn()(qi,[["render",Hi]]);var Ui=Gi,Xi={class:"shape-element-operate"};function Wi(e,t,n,o,l,c){var a=Object(y["resolveComponent"])("BorderLine"),r=Object(y["resolveComponent"])("ResizeHandler"),i=Object(y["resolveComponent"])("RotateHandler");return Object(y["openBlock"])(),Object(y["createElementBlock"])("div",Xi,[(Object(y["openBlock"])(!0),Object(y["createElementBlock"])(y["Fragment"],null,Object(y["renderList"])(e.borderLines,(function(e){return Object(y["openBlock"])(),Object(y["createBlock"])(a,{class:"operate-border-line",key:e.type,type:e.type,style:Object(y["normalizeStyle"])(e.style)},null,8,["type","style"])})),128)),e.handlerVisible?(Object(y["openBlock"])(),Object(y["createElementBlock"])(y["Fragment"],{key:0},[(Object(y["openBlock"])(!0),Object(y["createElementBlock"])(y["Fragment"],null,Object(y["renderList"])(e.resizeHandlers,(function(t){return Object(y["openBlock"])(),Object(y["createBlock"])(r,{class:"operate-resize-handler",key:t.direction,type:t.direction,rotate:e.elementInfo.rotate,style:Object(y["normalizeStyle"])(t.style),onMousedown:Object(y["withModifiers"])((function(n){return e.scaleElement(n,e.elementInfo,t.direction)}),["stop"])},null,8,["type","rotate","style","onMousedown"])})),128)),Object(y["createVNode"])(i,{class:"operate-rotate-handler",style:Object(y["normalizeStyle"])({left:e.scaleWidth/2+"px"}),onMousedown:t[0]||(t[0]=Object(y["withModifiers"])((function(t){return e.rotateElement(e.elementInfo)}),["stop"]))},null,8,["style"])],64)):Object(y["createCommentVNode"])("",!0)])}var Yi=Object(y["defineComponent"])({name:"shape-element-operate",inheritAttrs:!1,components:{RotateHandler:zi,ResizeHandler:xi,BorderLine:wi},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(g["c"])(te()),n=t.canvasScale,o=Object(y["computed"])((function(){return e.elementInfo.width*n.value})),l=Object(y["computed"])((function(){return e.elementInfo.height*n.value})),c=Oi(o,l),a=c.resizeHandlers,r=c.borderLines;return{scaleWidth:o,resizeHandlers:a,borderLines:r}}});const Zi=zn()(Yi,[["render",Wi]]);var Ji=Zi,Ki={class:"text-element-operate"};function Qi(e,t,n,o,l,c){var a=Object(y["resolveComponent"])("ResizeHandler");return Object(y["openBlock"])(),Object(y["createElementBlock"])("div",Ki,[e.handlerVisible?(Object(y["openBlock"])(!0),Object(y["createElementBlock"])(y["Fragment"],{key:0},Object(y["renderList"])(e.resizeHandlers,(function(t){return Object(y["openBlock"])(),Object(y["createBlock"])(a,{class:"operate-resize-handler",key:t.handler,style:Object(y["normalizeStyle"])(t.style),onMousedown:Object(y["withModifiers"])((function(n){return e.dragLineElement(n,e.elementInfo,t.handler)}),["stop"])},null,8,["style","onMousedown"])})),128)):Object(y["createCommentVNode"])("",!0)])}var $i=Object(y["defineComponent"])({name:"text-element-operate",inheritAttrs:!1,components:{ResizeHandler:xi},props:{elementInfo:{type:Object,required:!0},handlerVisible:{type:Boolean,required:!0},dragLineElement:{type:Function,required:!0}},setup:function(e){var t=Object(g["c"])(te()),n=t.canvasScale,o=Object(y["computed"])((function(){var t=[{handler:I.START,style:{left:e.elementInfo.start[0]*n.value+"px",top:e.elementInfo.start[1]*n.value+"px"}},{handler:I.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:I.C,style:{left:o[0]*n.value+"px",top:o[1]*n.value+"px"}})}else if(e.elementInfo.cubic){var l=Object(ze["a"])(e.elementInfo.cubic,2),c=l[0],a=l[1];t.push({handler:I.C1,style:{left:c[0]*n.value+"px",top:c[1]*n.value+"px"}}),t.push({handler:I.C2,style:{left:a[0]*n.value+"px",top:a[1]*n.value+"px"}})}return t}));return{resizeHandlers:o}}});const eu=zn()($i,[["render",Qi]]);var tu=eu,nu={class:"table-element-operate"};function ou(e,t,n,o,l,c){var a=Object(y["resolveComponent"])("BorderLine"),r=Object(y["resolveComponent"])("ResizeHandler"),i=Object(y["resolveComponent"])("RotateHandler");return Object(y["openBlock"])(),Object(y["createElementBlock"])("div",nu,[(Object(y["openBlock"])(!0),Object(y["createElementBlock"])(y["Fragment"],null,Object(y["renderList"])(e.borderLines,(function(e){return Object(y["openBlock"])(),Object(y["createBlock"])(a,{class:"operate-border-line",key:e.type,type:e.type,style:Object(y["normalizeStyle"])(e.style)},null,8,["type","style"])})),128)),e.handlerVisible?(Object(y["openBlock"])(),Object(y["createElementBlock"])(y["Fragment"],{key:0},[(Object(y["openBlock"])(!0),Object(y["createElementBlock"])(y["Fragment"],null,Object(y["renderList"])(e.textElementResizeHandlers,(function(t){return Object(y["openBlock"])(),Object(y["createBlock"])(r,{class:"operate-resize-handler",key:t.direction,type:t.direction,rotate:e.elementInfo.rotate,style:Object(y["normalizeStyle"])(t.style),onMousedown:Object(y["withModifiers"])((function(n){return e.scaleElement(n,e.elementInfo,t.direction)}),["stop"])},null,8,["type","rotate","style","onMousedown"])})),128)),Object(y["createVNode"])(i,{class:"operate-rotate-handler",style:Object(y["normalizeStyle"])({left:e.scaleWidth/2+"px"}),onMousedown:t[0]||(t[0]=Object(y["withModifiers"])((function(t){return e.rotateElement(e.elementInfo)}),["stop"]))},null,8,["style"])],64)):Object(y["createCommentVNode"])("",!0)])}var lu=Object(y["defineComponent"])({name:"table-element-operate",inheritAttrs:!1,components:{RotateHandler:zi,ResizeHandler:xi,BorderLine:wi},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(g["c"])(te()),n=t.canvasScale,o=Object(y["computed"])((function(){return e.elementInfo.outline.width||1})),l=Object(y["computed"])((function(){return(e.elementInfo.width+o.value)*n.value})),c=Object(y["computed"])((function(){return e.elementInfo.height*n.value})),a=Oi(l,c),r=a.textElementResizeHandlers,i=a.borderLines;return{scaleWidth:l,textElementResizeHandlers:r,borderLines:i}}});const cu=zn()(lu,[["render",ou]]);var au=cu,ru={class:"common-element-operate"};function iu(e,t,n,o,l,c){var a=Object(y["resolveComponent"])("BorderLine"),r=Object(y["resolveComponent"])("ResizeHandler"),i=Object(y["resolveComponent"])("RotateHandler");return Object(y["openBlock"])(),Object(y["createElementBlock"])("div",ru,[(Object(y["openBlock"])(!0),Object(y["createElementBlock"])(y["Fragment"],null,Object(y["renderList"])(e.borderLines,(function(e){return Object(y["openBlock"])(),Object(y["createBlock"])(a,{class:"operate-border-line",key:e.type,type:e.type,style:Object(y["normalizeStyle"])(e.style)},null,8,["type","style"])})),128)),e.handlerVisible?(Object(y["openBlock"])(),Object(y["createElementBlock"])(y["Fragment"],{key:0},[(Object(y["openBlock"])(!0),Object(y["createElementBlock"])(y["Fragment"],null,Object(y["renderList"])(e.resizeHandlers,(function(t){return Object(y["openBlock"])(),Object(y["createBlock"])(r,{class:"operate-resize-handler",key:t.direction,type:t.direction,rotate:e.elementInfo.rotate,style:Object(y["normalizeStyle"])(t.style),onMousedown:Object(y["withModifiers"])((function(n){return e.scaleElement(n,e.elementInfo,t.direction)}),["stop"])},null,8,["type","rotate","style","onMousedown"])})),128)),e.cannotRotate?Object(y["createCommentVNode"])("",!0):(Object(y["openBlock"])(),Object(y["createBlock"])(i,{key:0,class:"operate-rotate-handler",style:Object(y["normalizeStyle"])({left:e.scaleWidth/2+"px"}),onMousedown:t[0]||(t[0]=Object(y["withModifiers"])((function(t){return e.rotateElement(e.elementInfo)}),["stop"]))},null,8,["style"]))],64)):Object(y["createCommentVNode"])("",!0)])}var uu=Object(y["defineComponent"])({name:"common-element-operate",inheritAttrs:!1,components:{RotateHandler:zi,ResizeHandler:xi,BorderLine:wi},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(g["c"])(te()),n=t.canvasScale,o=Object(y["computed"])((function(){return e.elementInfo.width*n.value})),l=Object(y["computed"])((function(){return e.elementInfo.height*n.value})),c=Oi(o,l),a=c.resizeHandlers,r=c.borderLines,i=Object(y["computed"])((function(){return["video","audio"].includes(e.elementInfo.type)}));return{scaleWidth:o,resizeHandlers:a,borderLines:r,cannotRotate:i}}});const du=zn()(uu,[["render",iu]]);var su=du,fu=["href"],pu={key:1,class:"link"},mu={class:"btns"};function bu(e,t,n,o,l,c){var a=Object(y["resolveComponent"])("Divider");return Object(y["openBlock"])(),Object(y["createElementBlock"])("div",{class:"link-handler",style:Object(y["normalizeStyle"])({top:e.height*e.canvasScale+10+"px"})},["web"===e.link.type?(Object(y["openBlock"])(),Object(y["createElementBlock"])("a",{key:0,class:"link",href:e.link.target,target:"_blank"},Object(y["toDisplayString"])(e.link.target),9,fu)):(Object(y["openBlock"])(),Object(y["createElementBlock"])("a",pu,"幻灯片页面 "+Object(y["toDisplayString"])(e.link.target),1)),Object(y["createElementVNode"])("div",mu,[Object(y["createElementVNode"])("div",{class:"btn",onClick:t[0]||(t[0]=function(t){return e.openLinkDialog()})},"更换"),Object(y["createVNode"])(a,{type:"vertical"}),Object(y["createElementVNode"])("div",{class:"btn",onClick:t[1]||(t[1]=function(t){return e.removeLink(e.elementInfo)})},"移除")])],4)}var vu=function(){var e=ee(),t=Ye(),n=t.addHistorySnapshot,o=function(t,o){var l=/^(https?):\/\/[\w\-]+(\.[\w\-]+)+([\w\-.,@?^=%&:\/~+#]*[\w\-@?^=%&\/~+#])?$/;if("web"===o.type&&!l.test(o.target))return Ee["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}},hu=Object(y["defineComponent"])({name:"link-handler",props:{elementInfo:{type:Object,required:!0},link:{type:Object,required:!0},openLinkDialog:{type:Function,required:!0}},setup:function(e){var t=Object(g["c"])(te()),n=t.canvasScale,o=vu(),l=o.removeLink,c=Object(y["computed"])((function(){return"line"===e.elementInfo.type?0:e.elementInfo.height}));return{canvasScale:n,height:c,removeLink:l}}});n("c15d");const Ou=zn()(hu,[["render",bu],["__scopeId","data-v-2b77dbb0"]]);var ju=Ou,yu=Object(y["defineComponent"])({name:"operate",components:{LinkHandler:ju},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(g["c"])(te()),n=t.canvasScale,o=t.toolbarState,l=Object(g["c"])(ee()),c=l.currentSlide,a=Object(y["computed"])((function(){var t,n=(t={},Object(re["a"])(t,xe.IMAGE,Fi),Object(re["a"])(t,xe.TEXT,Ui),Object(re["a"])(t,xe.SHAPE,Ji),Object(re["a"])(t,xe.LINE,tu),Object(re["a"])(t,xe.TABLE,au),Object(re["a"])(t,xe.CHART,su),Object(re["a"])(t,xe.LATEX,su),Object(re["a"])(t,xe.VIDEO,su),Object(re["a"])(t,xe.AUDIO,su),t);return n[e.elementInfo.type]||null})),r=Object(y["computed"])((function(){var t=c.value.animations||[];return t.findIndex((function(t){return t.elId===e.elementInfo.id}))})),i=Object(y["computed"])((function(){return"rotate"in e.elementInfo?e.elementInfo.rotate:0})),u=Object(y["computed"])((function(){return"height"in e.elementInfo?e.elementInfo.height:0}));return{currentOperateComponent:a,canvasScale:n,toolbarState:o,elementIndexInAnimation:r,rotate:i,height:u}}});n("1118");const gu=zn()(yu,[["render",Bi],["__scopeId","data-v-6abdbdd6"]]);var xu=gu,Cu=function(e){return Object(y["pushScopeId"])("data-v-3adaaa8e"),e=e(),Object(y["popScopeId"])(),e},ku={class:"link-dialog"},Eu={class:"tabs"},wu=["onClick"],Nu={key:2,class:"preview"},Iu=Cu((function(){return Object(y["createElementVNode"])("div",null,"预览:",-1)})),Vu={class:"btns"},Su=Object(y["createTextVNode"])("取消"),Bu=Object(y["createTextVNode"])("确认");function Lu(e,t,n,o,l,c){var a=Object(y["resolveComponent"])("Input"),r=Object(y["resolveComponent"])("SelectOption"),i=Object(y["resolveComponent"])("Select"),u=Object(y["resolveComponent"])("ThumbnailSlide"),d=Object(y["resolveComponent"])("Button");return Object(y["openBlock"])(),Object(y["createElementBlock"])("div",ku,[Object(y["createElementVNode"])("div",Eu,[(Object(y["openBlock"])(!0),Object(y["createElementBlock"])(y["Fragment"],null,Object(y["renderList"])(e.tabs,(function(t){return Object(y["openBlock"])(),Object(y["createElementBlock"])("div",{class:Object(y["normalizeClass"])(["tab",{active:e.type===t.key}]),key:t.key,onClick:function(n){return e.type=t.key}},Object(y["toDisplayString"])(t.label),11,wu)})),128))]),"web"===e.type?(Object(y["openBlock"])(),Object(y["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(y["createCommentVNode"])("",!0),"slide"===e.type?(Object(y["openBlock"])(),Object(y["createBlock"])(i,{key:1,class:"input",value:e.slideId,"onUpdate:value":t[1]||(t[1]=function(t){return e.slideId=t})},{default:Object(y["withCtx"])((function(){return[(Object(y["openBlock"])(!0),Object(y["createElementBlock"])(y["Fragment"],null,Object(y["renderList"])(e.slides,(function(e,t){return Object(y["openBlock"])(),Object(y["createBlock"])(r,{key:e.id,value:e.id},{default:Object(y["withCtx"])((function(){return[Object(y["createTextVNode"])("幻灯片 "+Object(y["toDisplayString"])(t+1),1)]})),_:2},1032,["value"])})),128))]})),_:1},8,["value"])):Object(y["createCommentVNode"])("",!0),"slide"===e.type&&e.selectedSlide?(Object(y["openBlock"])(),Object(y["createElementBlock"])("div",Nu,[Iu,Object(y["createVNode"])(u,{class:"thumbnail",slide:e.selectedSlide,size:490},null,8,["slide"])])):Object(y["createCommentVNode"])("",!0),Object(y["createElementVNode"])("div",Vu,[Object(y["createVNode"])(d,{onClick:t[2]||(t[2]=function(t){return e.close()}),style:{"margin-right":"10px"}},{default:Object(y["withCtx"])((function(){return[Su]})),_:1}),Object(y["createVNode"])(d,{type:"primary",onClick:t[3]||(t[3]=function(t){return e.save()})},{default:Object(y["withCtx"])((function(){return[Bu]})),_:1})])])}var Tu={key:1,class:"placeholder"};function Mu(e,t,n,o,l,c){var a=Object(y["resolveComponent"])("ThumbnailElement");return Object(y["openBlock"])(),Object(y["createElementBlock"])("div",{class:"thumbnail-slide",style:Object(y["normalizeStyle"])({width:e.size+"px",height:e.size*e.viewportRatio+"px"})},[e.visible?(Object(y["openBlock"])(),Object(y["createElementBlock"])("div",{key:0,class:"elements",style:Object(y["normalizeStyle"])({width:e.VIEWPORT_SIZE+"px",height:e.VIEWPORT_SIZE*e.viewportRatio+"px",transform:"scale(".concat(e.scale,")")})},[Object(y["createElementVNode"])("div",{class:"background",style:Object(y["normalizeStyle"])(e.backgroundStyle)},null,4),(Object(y["openBlock"])(!0),Object(y["createElementBlock"])(y["Fragment"],null,Object(y["renderList"])(e.slide.elements,(function(e,t){return Object(y["openBlock"])(),Object(y["createBlock"])(a,{key:e.id,elementInfo:e,elementIndex:t+1},null,8,["elementInfo","elementIndex"])})),128))],4)):(Object(y["openBlock"])(),Object(y["createElementBlock"])("div",Tu,"加载中 ..."))],4)}function _u(e,t,n,o,l,c){return Object(y["openBlock"])(),Object(y["createElementBlock"])("div",{class:Object(y["normalizeClass"])(["base-element","base-element-".concat(e.elementInfo.id)]),style:Object(y["normalizeStyle"])({zIndex:e.elementIndex})},[(Object(y["openBlock"])(),Object(y["createBlock"])(Object(y["resolveDynamicComponent"])(e.currentElementComponent),{elementInfo:e.elementInfo,target:"thumbnail"},null,8,["elementInfo"]))],6)}var Du=["src"];function zu(e,t,n,o,l,c){var a=Object(y["resolveComponent"])("ImageOutline");return Object(y["openBlock"])(),Object(y["createElementBlock"])("div",{class:"base-element-image",style:Object(y["normalizeStyle"])({top:e.elementInfo.top+"px",left:e.elementInfo.left+"px",width:e.elementInfo.width+"px",height:e.elementInfo.height+"px"})},[Object(y["createElementVNode"])("div",{class:"rotate-wrapper",style:Object(y["normalizeStyle"])({transform:"rotate(".concat(e.elementInfo.rotate,"deg)")})},[Object(y["createElementVNode"])("div",{class:"element-content",style:Object(y["normalizeStyle"])({filter:e.shadowStyle?"drop-shadow(".concat(e.shadowStyle,")"):"",transform:e.flipStyle})},[Object(y["createVNode"])(a,{elementInfo:e.elementInfo},null,8,["elementInfo"]),Object(y["createElementVNode"])("div",{class:"image-content",style:Object(y["normalizeStyle"])({clipPath:e.clipShape.style})},[Object(y["createElementVNode"])("img",{src:e.elementInfo.src,draggable:!1,style:Object(y["normalizeStyle"])({top:e.imgPosition.top,left:e.imgPosition.left,width:e.imgPosition.width,height:e.imgPosition.height,filter:e.filter}),alt:""},null,12,Du)],4)],4)],4)],4)}var Au=Object(y["defineComponent"])({name:"base-element-image",components:{ImageOutline:Ho},props:{elementInfo:{type:Object,required:!0}},setup:function(e){var t=Object(y["computed"])((function(){return e.elementInfo.shadow})),n=mo(t),o=n.shadowStyle,l=Object(y["computed"])((function(){return e.elementInfo.flipH})),c=Object(y["computed"])((function(){return e.elementInfo.flipV})),a=bo(l,c),r=a.flipStyle,i=Object(y["computed"])((function(){return e.elementInfo.clip})),u=ho(i),d=u.clipShape,s=u.imgPosition,f=Object(y["computed"])((function(){return e.elementInfo.filters})),p=Oo(f),m=p.filter;return{imgPosition:s,filter:m,flipStyle:r,shadowStyle:o,clipShape:d}}});n("3ae7");const Ru=zn()(Au,[["render",zu],["__scopeId","data-v-0b1f9460"]]);var Fu=Ru,Pu=["innerHTML"];function Hu(e,t,n,o,l,c){var a=Object(y["resolveComponent"])("ElementOutline");return Object(y["openBlock"])(),Object(y["createElementBlock"])("div",{class:"base-element-text",style:Object(y["normalizeStyle"])({top:e.elementInfo.top+"px",left:e.elementInfo.left+"px",width:e.elementInfo.width+"px"})},[Object(y["createElementVNode"])("div",{class:"rotate-wrapper",style:Object(y["normalizeStyle"])({transform:"rotate(".concat(e.elementInfo.rotate,"deg)")})},[Object(y["createElementVNode"])("div",{class:"element-content",style:Object(y["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(y["createVNode"])(a,{width:e.elementInfo.width,height:e.elementInfo.height,outline:e.elementInfo.outline},null,8,["width","height","outline"]),Object(y["createElementVNode"])("div",{class:"text ProseMirror-static",innerHTML:e.elementInfo.content},null,8,Pu)],4)],4)],4)}var qu=Object(y["defineComponent"])({name:"base-element-text",components:{ElementOutline:ml},props:{elementInfo:{type:Object,required:!0}},setup:function(e){var t=Object(y["computed"])((function(){return e.elementInfo.shadow})),n=mo(t),o=n.shadowStyle;return{shadowStyle:o}}});n("5264");const Gu=zn()(qu,[["render",Hu],["__scopeId","data-v-2ec235c4"]]);var Uu=Gu,Xu=["width","height"],Wu={key:0},Yu=["transform"],Zu=["d","fill","stroke","stroke-width","stroke-dasharray"],Ju=["innerHTML"];function Ku(e,t,n,o,l,c){var a=Object(y["resolveComponent"])("GradientDefs");return Object(y["openBlock"])(),Object(y["createElementBlock"])("div",{class:"base-element-shape",style:Object(y["normalizeStyle"])({top:e.elementInfo.top+"px",left:e.elementInfo.left+"px",width:e.elementInfo.width+"px",height:e.elementInfo.height+"px"})},[Object(y["createElementVNode"])("div",{class:"rotate-wrapper",style:Object(y["normalizeStyle"])({transform:"rotate(".concat(e.elementInfo.rotate,"deg)")})},[Object(y["createElementVNode"])("div",{class:"element-content",style:Object(y["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(y["openBlock"])(),Object(y["createElementBlock"])("svg",{overflow:"visible",width:e.elementInfo.width,height:e.elementInfo.height},[e.elementInfo.gradient?(Object(y["openBlock"])(),Object(y["createElementBlock"])("defs",Wu,[Object(y["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(y["createCommentVNode"])("",!0),Object(y["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(y["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,Zu)],8,Yu)],8,Xu)),Object(y["createElementVNode"])("div",{class:Object(y["normalizeClass"])(["shape-text",e.text.align])},[Object(y["createElementVNode"])("div",{class:"ProseMirror-static",innerHTML:e.text.content},null,8,Ju)],2)],4)],4)],4)}var Qu=Object(y["defineComponent"])({name:"base-element-shape",components:{GradientDefs:Vc},props:{elementInfo:{type:Object,required:!0}},setup:function(e){var t=Object(y["computed"])((function(){return e.elementInfo.outline})),n=ko(t),o=n.outlineWidth,l=n.outlineStyle,c=n.outlineColor,a=Object(y["computed"])((function(){return e.elementInfo.shadow})),r=mo(a),i=r.shadowStyle,u=Object(y["computed"])((function(){return e.elementInfo.flipH})),d=Object(y["computed"])((function(){return e.elementInfo.flipV})),s=bo(u,d),f=s.flipStyle,p=Object(y["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("042a");const $u=zn()(Qu,[["render",Ku],["__scopeId","data-v-2bad8b7f"]]);var ed=$u,td=["width","height"],nd=["d","stroke","stroke-width","stroke-dasharray","marker-start","marker-end"];function od(e,t,n,o,l,c){var a=Object(y["resolveComponent"])("LinePointMarker");return Object(y["openBlock"])(),Object(y["createElementBlock"])("div",{class:"editable-element-shape",style:Object(y["normalizeStyle"])({top:e.elementInfo.top+"px",left:e.elementInfo.left+"px"})},[Object(y["createElementVNode"])("div",{class:"element-content",style:Object(y["normalizeStyle"])({filter:e.shadowStyle?"drop-shadow(".concat(e.shadowStyle,")"):""})},[(Object(y["openBlock"])(),Object(y["createElementBlock"])("svg",{overflow:"visible",width:e.svgWidth,height:e.svgHeight},[Object(y["createElementVNode"])("defs",null,[e.elementInfo.points[0]?(Object(y["openBlock"])(),Object(y["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(y["createCommentVNode"])("",!0),e.elementInfo.points[1]?(Object(y["openBlock"])(),Object(y["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(y["createCommentVNode"])("",!0)]),Object(y["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,nd)],8,td))],4)],4)}var ld=Object(y["defineComponent"])({name:"editable-element-shape",components:{LinePointMarker:Gc},props:{elementInfo:{type:Object,required:!0}},setup:function(e){var t=Object(y["computed"])((function(){return e.elementInfo.shadow})),n=mo(t),o=n.shadowStyle,l=Object(y["computed"])((function(){var t=Math.abs(e.elementInfo.start[0]-e.elementInfo.end[0]);return t<24?24:t})),c=Object(y["computed"])((function(){var t=Math.abs(e.elementInfo.start[1]-e.elementInfo.end[1]);return t<24?24:t})),a=Object(y["computed"])((function(){return"dashed"===e.elementInfo.style?"10, 5":"0, 0"})),r=Object(y["computed"])((function(){return Ue(e.elementInfo)}));return{shadowStyle:o,svgWidth:l,svgHeight:c,lineDashArray:a,path:r}}});n("78eb");const cd=zn()(ld,[["render",od],["__scopeId","data-v-4032440c"]]);var ad=cd;function rd(e,t,n,o,l,c){var a=Object(y["resolveComponent"])("ElementOutline"),r=Object(y["resolveComponent"])("Chart");return Object(y["openBlock"])(),Object(y["createElementBlock"])("div",{class:"base-element-chart",style:Object(y["normalizeStyle"])({top:e.elementInfo.top+"px",left:e.elementInfo.left+"px",width:e.elementInfo.width+"px",height:e.elementInfo.height+"px"})},[Object(y["createElementVNode"])("div",{class:"rotate-wrapper",style:Object(y["normalizeStyle"])({transform:"rotate(".concat(e.elementInfo.rotate,"deg)")})},[Object(y["createElementVNode"])("div",{class:"element-content",style:Object(y["normalizeStyle"])({backgroundColor:e.elementInfo.fill})},[Object(y["createVNode"])(a,{width:e.elementInfo.width,height:e.elementInfo.height,outline:e.elementInfo.outline},null,8,["width","height","outline"]),Object(y["createVNode"])(r,{class:Object(y["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 id=Object(y["defineComponent"])({name:"base-element-chart",components:{ElementOutline:ml,Chart:ea},props:{elementInfo:{type:Object,required:!0},needScaleSize:{type:Boolean,default:!0}},setup:function(e){return{chartWidth:Object(y["computed"])((function(){return e.needScaleSize?10*e.elementInfo.width:e.elementInfo.width})),chartHeight:Object(y["computed"])((function(){return e.needScaleSize?10*e.elementInfo.height:e.elementInfo.height}))}}});n("c645");const ud=zn()(id,[["render",rd],["__scopeId","data-v-60d9ae43"]]);var dd=ud,sd={class:"element-content"};function fd(e,t,n,o,l,c){var a=Object(y["resolveComponent"])("StaticTable");return Object(y["openBlock"])(),Object(y["createElementBlock"])("div",{class:"base-element-table",style:Object(y["normalizeStyle"])({top:e.elementInfo.top+"px",left:e.elementInfo.left+"px",width:e.elementInfo.width+"px"})},[Object(y["createElementVNode"])("div",{class:"rotate-wrapper",style:Object(y["normalizeStyle"])({transform:"rotate(".concat(e.elementInfo.rotate,"deg)")})},[Object(y["createElementVNode"])("div",sd,[Object(y["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 pd=["width"],md=["rowspan","colspan"],bd=["innerHTML"];function vd(e,t,n,o,l,c){var a,r,i,u,d;return Object(y["openBlock"])(),Object(y["createElementBlock"])("div",{class:"static-table",style:Object(y["normalizeStyle"])({width:e.totalWidth+"px"})},[Object(y["createElementVNode"])("table",{class:Object(y["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(y["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(y["createElementVNode"])("colgroup",null,[(Object(y["openBlock"])(!0),Object(y["createElementBlock"])(y["Fragment"],null,Object(y["renderList"])(e.colSizeList,(function(e,t){return Object(y["openBlock"])(),Object(y["createElementBlock"])("col",{span:"1",key:t,width:e},null,8,pd)})),128))]),Object(y["createElementVNode"])("tbody",null,[(Object(y["openBlock"])(!0),Object(y["createElementBlock"])(y["Fragment"],null,Object(y["renderList"])(e.data,(function(t,n){return Object(y["openBlock"])(),Object(y["createElementBlock"])("tr",{key:n},[(Object(y["openBlock"])(!0),Object(y["createElementBlock"])(y["Fragment"],null,Object(y["renderList"])(t,(function(t,o){return Object(y["withDirectives"])((Object(y["openBlock"])(),Object(y["createElementBlock"])("td",{class:"cell",style:Object(y["normalizeStyle"])(Object(L["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(y["createElementVNode"])("div",{class:"cell-text",innerHTML:e.formatText(t.text)},null,8,bd)],12,md)),[[y["vShow"],!e.hideCells.includes("".concat(n,"_").concat(o))]])})),128))])})),128))])],6)],4)}var hd=Object(y["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(y["ref"])([]),n=Object(y["computed"])((function(){return t.value.reduce((function(e,t){return e+t}))}));Object(y["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(y["computed"])((function(){return e.data})),l=ma(o),c=l.hideCells,a=Object(y["computed"])((function(){return e.theme})),r=ba(a),i=r.subThemeColor;return{colSizeList:t,totalWidth:n,hideCells:c,getTextStyle:fa,formatText:pa,subThemeColor:i}}});n("9316");const Od=zn()(hd,[["render",vd],["__scopeId","data-v-74b60291"]]);var jd=Od,yd=Object(y["defineComponent"])({name:"base-element-table",components:{StaticTable:jd},props:{elementInfo:{type:Object,required:!0}}});n("4607");const gd=zn()(yd,[["render",fd],["__scopeId","data-v-3bbcc75c"]]);var xd=gd,Cd={class:"element-content"},kd=["width","height","stroke","stroke-width"],Ed=["transform"],wd=["d"];function Nd(e,t,n,o,l,c){return Object(y["openBlock"])(),Object(y["createElementBlock"])("div",{class:"base-element-latex",style:Object(y["normalizeStyle"])({top:e.elementInfo.top+"px",left:e.elementInfo.left+"px",width:e.elementInfo.width+"px",height:e.elementInfo.height+"px"})},[Object(y["createElementVNode"])("div",{class:"rotate-wrapper",style:Object(y["normalizeStyle"])({transform:"rotate(".concat(e.elementInfo.rotate,"deg)")})},[Object(y["createElementVNode"])("div",Cd,[(Object(y["openBlock"])(),Object(y["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(y["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(y["createElementVNode"])("path",{d:e.elementInfo.path},null,8,wd)],8,Ed)],8,kd))])],4)],4)}var Id=Object(y["defineComponent"])({name:"base-element-latex",props:{elementInfo:{type:Object,required:!0}}});n("0006");const Vd=zn()(Id,[["render",Nd],["__scopeId","data-v-4118f3dd"]]);var Sd=Vd;function Bd(e,t,n,o,l,c){var a=Object(y["resolveComponent"])("IconPlayOne");return Object(y["openBlock"])(),Object(y["createElementBlock"])("div",{class:"base-element-video",style:Object(y["normalizeStyle"])({top:e.elementInfo.top+"px",left:e.elementInfo.left+"px",width:e.elementInfo.width+"px",height:e.elementInfo.height+"px"})},[Object(y["createElementVNode"])("div",{class:"rotate-wrapper",style:Object(y["normalizeStyle"])({transform:"rotate(".concat(e.elementInfo.rotate,"deg)")})},[Object(y["createElementVNode"])("div",{class:"element-content",style:Object(y["normalizeStyle"])({backgroundImage:"url(".concat(e.elementInfo.poster,")")})},[Object(y["createVNode"])(a,{class:"icon"})],4)],4)],4)}var Ld=Object(y["defineComponent"])({name:"base-element-video",props:{elementInfo:{type:Object,required:!0}}});n("4b15");const Td=zn()(Ld,[["render",Bd],["__scopeId","data-v-1c831c75"]]);var Md=Td,_d={class:"element-content"};function Dd(e,t,n,o,l,c){var a=Object(y["resolveComponent"])("IconVolumeNotice");return Object(y["openBlock"])(),Object(y["createElementBlock"])("div",{class:"base-element-audio",style:Object(y["normalizeStyle"])({top:e.elementInfo.top+"px",left:e.elementInfo.left+"px",width:e.elementInfo.width+"px",height:e.elementInfo.height+"px"})},[Object(y["createElementVNode"])("div",{class:"rotate-wrapper",style:Object(y["normalizeStyle"])({transform:"rotate(".concat(e.elementInfo.rotate,"deg)")})},[Object(y["createElementVNode"])("div",_d,[Object(y["createVNode"])(a,{class:"audio-icon",style:Object(y["normalizeStyle"])({fontSize:e.audioIconSize,color:e.elementInfo.color})},null,8,["style"])])],4)],4)}var zd=Object(y["defineComponent"])({name:"base-element-audio",props:{elementInfo:{type:Object,required:!0}},setup:function(e){var t=Object(y["computed"])((function(){return Math.min(e.elementInfo.width,e.elementInfo.height)+"px"}));return{audioIconSize:t}}});n("dab5");const Ad=zn()(zd,[["render",Dd],["__scopeId","data-v-513e91c4"]]);var Rd=Ad,Fd=Object(y["defineComponent"])({name:"base-element",props:{elementInfo:{type:Object,required:!0},elementIndex:{type:Number,required:!0}},setup:function(e){var t=Object(y["computed"])((function(){var t,n=(t={},Object(re["a"])(t,xe.IMAGE,Fu),Object(re["a"])(t,xe.TEXT,Uu),Object(re["a"])(t,xe.SHAPE,ed),Object(re["a"])(t,xe.LINE,ad),Object(re["a"])(t,xe.CHART,dd),Object(re["a"])(t,xe.TABLE,xd),Object(re["a"])(t,xe.LATEX,Sd),Object(re["a"])(t,xe.VIDEO,Md),Object(re["a"])(t,xe.AUDIO,Rd),t);return n[e.elementInfo.type]||null}));return{currentElementComponent:t}}});const Pd=zn()(Fd,[["render",_u]]);var Hd=Pd,qd=Object(y["defineComponent"])({name:"thumbnail-slide",components:{ThumbnailElement:Hd},props:{slide:{type:Object,required:!0},size:{type:Number,required:!0},visible:{type:Boolean,default:!0}},setup:function(e){var t=Object(g["c"])(ee()),n=t.viewportRatio,o=Object(y["computed"])((function(){return e.slide.background})),l=oi(o),c=l.backgroundStyle,a=Object(y["computed"])((function(){return e.size/Ke}));return Object(y["provide"])("slideScale",a),{scale:a,backgroundStyle:c,VIEWPORT_SIZE:Ke,viewportRatio:n}}});n("4405");const Gd=zn()(qd,[["render",Mu],["__scopeId","data-v-06a163ec"]]);var Ud=Gd,Xd=Object(y["defineComponent"])({name:"link-dialog",emits:["close"],components:{ThumbnailSlide:Ud},setup:function(e,t){var n=t.emit,o=Object(g["c"])(te()),l=o.handleElement,c=Object(g["c"])(ee()),a=c.slides,r=Object(y["ref"])("web"),i=Object(y["ref"])(""),u=Object(y["ref"])(""),d=Object(y["computed"])((function(){return u.value&&a.value.find((function(e){return e.id===u.value}))||null})),s=[{key:"web",label:"网页链接"},{key:"slide",label:"幻灯片页面"}],f=vu(),p=f.setLink;Object(y["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("fe34");const Wd=zn()(Xd,[["render",Lu],["__scopeId","data-v-3adaaa8e"]]);var Yd=Wd,Zd=Object(y["defineComponent"])({name:"editor-canvas",components:{EditableElement:Ur,MouseSelection:Zr,ViewportBackground:ai,AlignmentLine:di,ElementCreateSelection:vi,MultiSelectOperate:Vi,Operate:xu,LinkDialog:Yd},setup:function(){var e=te(),t=Object(g["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(g["c"])(ee()),d=u.currentSlide,s=Object(g["c"])(fe()),f=s.ctrlKeyState,p=s.ctrlOrShiftKeyActive,m=Object(y["ref"])(),b=Object(y["ref"])([]),v=Object(y["ref"])(!1),h=function(){return v.value=!0};Object(y["watch"])(l,(function(){e.setActiveGroupElementId("")}));var O=Object(y["ref"])([]),j=function(){O.value=d.value?JSON.parse(JSON.stringify(d.value.elements)):[]};Object(y["watchEffect"])(j);var x=Object(y["ref"])(),C=Xn(x),k=C.viewportStyles;Yn(x);var E=Wn(O,m),w=E.mouseSelectionState,N=E.updateMouseSelection,I=oo(O,b),S=I.dragElement,B=lo(O),L=B.dragLineElement,T=no(O,S),M=T.selectElement,_=to(O,b),D=_.scaleElement,z=_.scaleMultiElement,A=Jn(O,m),R=A.rotateElement,F=rt(),P=F.selectAllElement,H=lt(),q=H.deleteAllElements,G=at(),U=G.pasteElement,X=pt(),W=X.enterScreening,Y=nt(),Z=Y.updateSlideIndex,K=function(t){e.setActiveElementIdList([]),p.value||N(t),c.value||e.setEditorareaFocus(!0),Un()},Q=function(){c.value&&e.setEditorareaFocus(!1)},$=mt(),ne=$.scaleCanvas,oe=Object(J["throttle"])(ne,100,{leading:!0,trailing:!1}),le=Object(J["throttle"])(Z,300,{leading:!0,trailing:!1}),ce=function(e){e.preventDefault(),f.value?e.deltaY>0?oe("-"):e.deltaY<0&&oe("+"):e.deltaY>0?le(V.DOWN):e.deltaY<0&&le(V.UP)},ae=function(){e.setGridLinesState(!a.value)},re=co(m),ie=re.insertElementFromCreateSelection,ue=function(){return[{text:"粘贴",subText:"Ctrl + V",handler:U},{text:"全选",subText:"Ctrl + A",handler:P},{text:"网格线",subText:a.value?"√":"",handler:ae},{text:"重置当前页",handler:q},{divider:!0},{text:"从当前页演示",subText:"Ctrl+F",handler:W}]};return Object(y["provide"])("slideScale",i),{elementList:O,activeElementIdList:n,handleElementId:l,activeGroupElementId:o,canvasRef:x,viewportRef:m,viewportStyles:k,canvasScale:i,mouseSelectionState:w,creatingElement:r,alignmentLines:b,linkDialogVisible:v,openLinkDialog:h,handleClickBlankArea:K,removeEditorAreaFocus:Q,insertElementFromCreateSelection:ie,selectElement:M,rotateElement:R,scaleElement:D,dragLineElement:L,scaleMultiElement:z,handleMousewheelCanvas:ce,contextmenus:ue}}});n("4821");const Jd=zn()(Zd,[["render",Gn],["__scopeId","data-v-27f90f5c"]]);var Kd=Jd,Qd={class:"canvas-tool"},$d={class:"left-handler"},es={class:"add-element-handler"},ts={class:"right-handler"},ns={class:"text"};function os(e,t,n,o,l,c){var a=Object(y["resolveComponent"])("IconBack"),r=Object(y["resolveComponent"])("Tooltip"),i=Object(y["resolveComponent"])("IconNext"),u=Object(y["resolveComponent"])("IconFontSize"),d=Object(y["resolveComponent"])("IconPicture"),s=Object(y["resolveComponent"])("FileInput"),f=Object(y["resolveComponent"])("ShapePool"),p=Object(y["resolveComponent"])("IconGraphicDesign"),m=Object(y["resolveComponent"])("Popover"),b=Object(y["resolveComponent"])("LinePool"),v=Object(y["resolveComponent"])("IconConnection"),h=Object(y["resolveComponent"])("ChartPool"),O=Object(y["resolveComponent"])("IconChartProportion"),j=Object(y["resolveComponent"])("TableGenerator"),g=Object(y["resolveComponent"])("IconInsertTable"),x=Object(y["resolveComponent"])("IconFormula"),C=Object(y["resolveComponent"])("MediaInput"),k=Object(y["resolveComponent"])("IconVideoTwo"),E=Object(y["resolveComponent"])("IconMinus"),w=Object(y["resolveComponent"])("IconPlus"),N=Object(y["resolveComponent"])("IconFullScreen"),I=Object(y["resolveComponent"])("LaTeXEditor"),V=Object(y["resolveComponent"])("Modal");return Object(y["openBlock"])(),Object(y["createElementBlock"])("div",Qd,[Object(y["createElementVNode"])("div",$d,[Object(y["createVNode"])(r,{mouseLeaveDelay:0,mouseEnterDelay:.5,title:"撤销"},{default:Object(y["withCtx"])((function(){return[Object(y["createVNode"])(a,{class:Object(y["normalizeClass"])(["handler-item",{disable:!e.canUndo}]),onClick:t[0]||(t[0]=function(t){return e.undo()})},null,8,["class"])]})),_:1},8,["mouseEnterDelay"]),Object(y["createVNode"])(r,{mouseLeaveDelay:0,mouseEnterDelay:.5,title:"重做"},{default:Object(y["withCtx"])((function(){return[Object(y["createVNode"])(i,{class:Object(y["normalizeClass"])(["handler-item",{disable:!e.canRedo}]),onClick:t[1]||(t[1]=function(t){return e.redo()})},null,8,["class"])]})),_:1},8,["mouseEnterDelay"])]),Object(y["createElementVNode"])("div",es,[Object(y["createVNode"])(r,{mouseLeaveDelay:0,mouseEnterDelay:.5,title:"插入文字"},{default:Object(y["withCtx"])((function(){return[Object(y["createVNode"])(u,{class:"handler-item",onClick:t[2]||(t[2]=function(t){return e.drawText()})})]})),_:1},8,["mouseEnterDelay"]),Object(y["createVNode"])(s,{onChange:t[3]||(t[3]=function(t){return e.insertImageElement(t)})},{default:Object(y["withCtx"])((function(){return[Object(y["createVNode"])(r,{mouseLeaveDelay:0,mouseEnterDelay:.5,title:"插入图片"},{default:Object(y["withCtx"])((function(){return[Object(y["createVNode"])(d,{class:"handler-item"})]})),_:1},8,["mouseEnterDelay"])]})),_:1}),Object(y["createVNode"])(m,{trigger:"click",visible:e.shapePoolVisible,"onUpdate:visible":t[5]||(t[5]=function(t){return e.shapePoolVisible=t})},{content:Object(y["withCtx"])((function(){return[Object(y["createVNode"])(f,{onSelect:t[4]||(t[4]=function(t){return e.drawShape(t)})})]})),default:Object(y["withCtx"])((function(){return[Object(y["createVNode"])(r,{mouseLeaveDelay:0,mouseEnterDelay:.5,title:"插入形状"},{default:Object(y["withCtx"])((function(){return[Object(y["createVNode"])(p,{class:"handler-item"})]})),_:1},8,["mouseEnterDelay"])]})),_:1},8,["visible"]),Object(y["createVNode"])(m,{trigger:"click",visible:e.linePoolVisible,"onUpdate:visible":t[7]||(t[7]=function(t){return e.linePoolVisible=t})},{content:Object(y["withCtx"])((function(){return[Object(y["createVNode"])(b,{onSelect:t[6]||(t[6]=function(t){return e.drawLine(t)})})]})),default:Object(y["withCtx"])((function(){return[Object(y["createVNode"])(r,{mouseLeaveDelay:0,mouseEnterDelay:.5,title:"插入线条"},{default:Object(y["withCtx"])((function(){return[Object(y["createVNode"])(v,{class:"handler-item"})]})),_:1},8,["mouseEnterDelay"])]})),_:1},8,["visible"]),Object(y["createVNode"])(m,{trigger:"click",visible:e.chartPoolVisible,"onUpdate:visible":t[9]||(t[9]=function(t){return e.chartPoolVisible=t})},{content:Object(y["withCtx"])((function(){return[Object(y["createVNode"])(h,{onSelect:t[8]||(t[8]=function(t){e.createChartElement(t),e.chartPoolVisible=!1})})]})),default:Object(y["withCtx"])((function(){return[Object(y["createVNode"])(r,{mouseLeaveDelay:0,mouseEnterDelay:.5,title:"插入图表"},{default:Object(y["withCtx"])((function(){return[Object(y["createVNode"])(O,{class:"handler-item"})]})),_:1},8,["mouseEnterDelay"])]})),_:1},8,["visible"]),Object(y["createVNode"])(m,{trigger:"click",visible:e.tableGeneratorVisible,"onUpdate:visible":t[12]||(t[12]=function(t){return e.tableGeneratorVisible=t})},{content:Object(y["withCtx"])((function(){return[Object(y["createVNode"])(j,{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(y["withCtx"])((function(){return[Object(y["createVNode"])(r,{mouseLeaveDelay:0,mouseEnterDelay:.5,title:"插入表格"},{default:Object(y["withCtx"])((function(){return[Object(y["createVNode"])(g,{class:"handler-item"})]})),_:1},8,["mouseEnterDelay"])]})),_:1},8,["visible"]),Object(y["createVNode"])(r,{mouseLeaveDelay:0,mouseEnterDelay:.5,title:"插入公式"},{default:Object(y["withCtx"])((function(){return[Object(y["createVNode"])(x,{class:"handler-item",onClick:t[13]||(t[13]=function(t){return e.latexEditorVisible=!0})})]})),_:1},8,["mouseEnterDelay"]),Object(y["createVNode"])(m,{trigger:"click",visible:e.mediaInputVisible,"onUpdate:visible":t[17]||(t[17]=function(t){return e.mediaInputVisible=t})},{content:Object(y["withCtx"])((function(){return[Object(y["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(y["withCtx"])((function(){return[Object(y["createVNode"])(r,{mouseLeaveDelay:0,mouseEnterDelay:.5,title:"插入音视频"},{default:Object(y["withCtx"])((function(){return[Object(y["createVNode"])(k,{class:"handler-item"})]})),_:1},8,["mouseEnterDelay"])]})),_:1},8,["visible"])]),Object(y["createElementVNode"])("div",ts,[Object(y["createVNode"])(E,{class:"handler-item viewport-size",onClick:t[18]||(t[18]=function(t){return e.scaleCanvas("-")})}),Object(y["createElementVNode"])("span",ns,Object(y["toDisplayString"])(e.canvasScalePercentage),1),Object(y["createVNode"])(w,{class:"handler-item viewport-size",onClick:t[19]||(t[19]=function(t){return e.scaleCanvas("+")})}),Object(y["createVNode"])(r,{mouseLeaveDelay:0,mouseEnterDelay:.5,title:"适配屏幕"},{default:Object(y["withCtx"])((function(){return[Object(y["createVNode"])(N,{class:"handler-item viewport-size-adaptation",onClick:t[20]||(t[20]=function(t){return e.setCanvasPercentage(90)})})]})),_:1},8,["mouseEnterDelay"])]),Object(y["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(y["withCtx"])((function(){return[Object(y["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 ls={class:"shape-pool"},cs={class:"category-name"},as={class:"shape-list"},rs=["onClick"],is={overflow:"visible",width:"18",height:"18"},us=["transform"],ds=["d"];function ss(e,t,n,o,l,c){return Object(y["openBlock"])(),Object(y["createElementBlock"])("div",ls,[(Object(y["openBlock"])(!0),Object(y["createElementBlock"])(y["Fragment"],null,Object(y["renderList"])(e.shapeList,(function(t){return Object(y["openBlock"])(),Object(y["createElementBlock"])("div",{class:"category",key:t.type},[Object(y["createElementVNode"])("div",cs,Object(y["toDisplayString"])(t.type),1),Object(y["createElementVNode"])("div",as,[(Object(y["openBlock"])(!0),Object(y["createElementBlock"])(y["Fragment"],null,Object(y["renderList"])(t.children,(function(t,n){return Object(y["openBlock"])(),Object(y["createElementBlock"])("div",{class:"shape-item",key:n},[Object(y["createElementVNode"])("div",{class:"shape-content",onClick:function(n){return e.selectShape(t)}},[(Object(y["openBlock"])(),Object(y["createElementBlock"])("svg",is,[Object(y["createElementVNode"])("g",{transform:"scale(".concat(18/t.viewBox[0],", ").concat(18/t.viewBox[1],") translate(0,0) matrix(1,0,0,1,0,0)")},[Object(y["createElementVNode"])("path",{class:"shape-path","vector-effect":"non-scaling-stroke","stroke-linecap":"butt","stroke-miterlimit":"8",fill:"transparent",stroke:"#999","stroke-width":"2",d:t.path},null,8,ds)],8,us)]))],8,rs)])})),128))])])})),128))])}var fs=Object(y["defineComponent"])({name:"shape-pool",emits:["select"],setup:function(e,t){var n=t.emit,o=$e,l=function(e){n("select",e)};return{shapeList:o,selectShape:l}}});n("4d0e");const ps=zn()(fs,[["render",ss],["__scopeId","data-v-ba3deaea"]]);var ms=ps,bs={class:"line-pool"},vs={class:"category-name"},hs={class:"line-list"},Os=["onClick"],js={overflow:"visible",width:"20",height:"20"},ys=["d","stroke-dasharray","marker-start","marker-end"];function gs(e,t,n,o,l,c){var a=Object(y["resolveComponent"])("LinePointMarker");return Object(y["openBlock"])(),Object(y["createElementBlock"])("div",bs,[(Object(y["openBlock"])(!0),Object(y["createElementBlock"])(y["Fragment"],null,Object(y["renderList"])(e.lineList,(function(t,n){return Object(y["openBlock"])(),Object(y["createElementBlock"])("div",{class:"category",key:t.type},[Object(y["createElementVNode"])("div",vs,Object(y["toDisplayString"])(t.type),1),Object(y["createElementVNode"])("div",hs,[(Object(y["openBlock"])(!0),Object(y["createElementBlock"])(y["Fragment"],null,Object(y["renderList"])(t.children,(function(t,o){return Object(y["openBlock"])(),Object(y["createElementBlock"])("div",{class:"line-item",key:o},[Object(y["createElementVNode"])("div",{class:"line-content",onClick:function(n){return e.selectLine(t)}},[(Object(y["openBlock"])(),Object(y["createElementBlock"])("svg",js,[Object(y["createElementVNode"])("defs",null,[t.points[0]?(Object(y["openBlock"])(),Object(y["createBlock"])(a,{key:0,class:"line-marker",id:"preset-line-".concat(n,"-").concat(o),position:"start",type:t.points[0],color:"currentColor",baseSize:2},null,8,["id","type"])):Object(y["createCommentVNode"])("",!0),t.points[1]?(Object(y["openBlock"])(),Object(y["createBlock"])(a,{key:1,class:"line-marker",id:"preset-line-".concat(n,"-").concat(o),position:"end",type:t.points[1],color:"currentColor",baseSize:2},null,8,["id","type"])):Object(y["createCommentVNode"])("",!0)]),Object(y["createElementVNode"])("path",{class:"line-path",d:t.path,stroke:"currentColor",fill:"none","stroke-width":"2","stroke-dasharray":"solid"===t.style?"0, 0":"4, 1","marker-start":t.points[0]?"url(#".concat("preset-line-".concat(n,"-").concat(o),"-",t.points[0],"-start)"):"","marker-end":t.points[1]?"url(#".concat("preset-line-".concat(n,"-").concat(o),"-",t.points[1],"-end)"):""},null,8,ys)]))],8,Os)])})),128))])])})),128))])}var xs=[{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},{path:"M 0 0 C 20 0 0 20 20 20",style:"solid",points:["","arrow"],isCubic:!0}]}],Cs=Object(y["defineComponent"])({name:"line-pool",emits:["select"],components:{LinePointMarker:Gc},setup:function(e,t){var n=t.emit,o=xs,l=function(e){n("select",e)};return{lineList:o,selectLine:l}}});n("fc12");const ks=zn()(Cs,[["render",gs],["__scopeId","data-v-7fa1d412"]]);var Es=ks,ws={class:"chart-pool"},Ns=["onClick"];function Is(e,t,n,o,l,c){var a=Object(y["resolveComponent"])("IconChartLine"),r=Object(y["resolveComponent"])("IconChartHistogram"),i=Object(y["resolveComponent"])("IconChartPie");return Object(y["openBlock"])(),Object(y["createElementBlock"])("ul",ws,[(Object(y["openBlock"])(!0),Object(y["createElementBlock"])(y["Fragment"],null,Object(y["renderList"])(e.chartList,(function(t,n){return Object(y["openBlock"])(),Object(y["createElementBlock"])("li",{class:"chart-item",key:n},[Object(y["createElementVNode"])("div",{class:"chart-content",onClick:function(n){return e.selectChart(t)}},["line"===t?(Object(y["openBlock"])(),Object(y["createBlock"])(a,{key:0,size:"24"})):"bar"===t?(Object(y["openBlock"])(),Object(y["createBlock"])(r,{key:1,size:"24"})):"pie"===t?(Object(y["openBlock"])(),Object(y["createBlock"])(i,{key:2,size:"24"})):Object(y["createCommentVNode"])("",!0)],8,Ns)])})),128))])}var Vs=Object(y["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 Ss=zn()(Vs,[["render",Is],["__scopeId","data-v-ab6a141a"]]);var Bs=Ss,Ls=function(e){return Object(y["pushScopeId"])("data-v-e325ce98"),e=e(),Object(y["popScopeId"])(),e},Ts={class:"table-generator"},Ms={class:"title"},_s={class:"lef"},Ds=["onMouseenter"],zs={key:1,class:"custom"},As={class:"row"},Rs=Ls((function(){return Object(y["createElementVNode"])("div",{class:"label",style:{flex:"1"}},"行数:",-1)})),Fs={class:"row"},Ps=Ls((function(){return Object(y["createElementVNode"])("div",{class:"label",style:{flex:"1"}},"列数:",-1)})),Hs={class:"btns"},qs=Object(y["createTextVNode"])("取消"),Gs=Object(y["createTextVNode"])("确认");function Us(e,t,n,o,l,c){var a=Object(y["resolveComponent"])("InputNumber"),r=Object(y["resolveComponent"])("Button");return Object(y["openBlock"])(),Object(y["createElementBlock"])("div",Ts,[Object(y["createElementVNode"])("div",Ms,[Object(y["createElementVNode"])("div",_s,"表格 "+Object(y["toDisplayString"])(e.endCell.length?"".concat(e.endCell[0]," x ").concat(e.endCell[1]):""),1),Object(y["createElementVNode"])("div",{class:"right",onClick:t[0]||(t[0]=function(t){return e.isCustom=!e.isCustom})},Object(y["toDisplayString"])(e.isCustom?"返回":"自定义"),1)]),e.isCustom?(Object(y["openBlock"])(),Object(y["createElementBlock"])("div",zs,[Object(y["createElementVNode"])("div",As,[Rs,Object(y["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(y["createElementVNode"])("div",Fs,[Ps,Object(y["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(y["createElementVNode"])("div",Hs,[Object(y["createVNode"])(r,{class:"btn",onClick:t[5]||(t[5]=function(t){return e.close()})},{default:Object(y["withCtx"])((function(){return[qs]})),_:1}),Object(y["createVNode"])(r,{class:"btn",type:"primary",onClick:t[6]||(t[6]=function(t){return e.insertCustomTable()})},{default:Object(y["withCtx"])((function(){return[Gs]})),_:1})])])):(Object(y["openBlock"])(),Object(y["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(y["createElementVNode"])("tbody",null,[(Object(y["openBlock"])(),Object(y["createElementBlock"])(y["Fragment"],null,Object(y["renderList"])(10,(function(t){return Object(y["createElementVNode"])("tr",{key:t},[(Object(y["openBlock"])(),Object(y["createElementBlock"])(y["Fragment"],null,Object(y["renderList"])(10,(function(n){return Object(y["createElementVNode"])("td",{onMouseenter:function(o){return e.endCell=[t,n]},key:n},[Object(y["createElementVNode"])("div",{class:Object(y["normalizeClass"])(["cell",{active:e.endCell.length&&t<=e.endCell[0]&&n<=e.endCell[1]}])},null,2)],40,Ds)})),64))])})),64))])],32))])}var Xs=Object(y["defineComponent"])({name:"table-generator",emits:["insert","close"],setup:function(e,t){var n=t.emit,o=Object(y["ref"])([]),l=Object(y["ref"])(3),c=Object(y["ref"])(3),a=Object(y["ref"])(!1),r=function(){if(o.value.length){var e=Object(ze["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?Ee["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 Ws=zn()(Xs,[["render",Us],["__scopeId","data-v-e325ce98"]]);var Ys=Ws,Zs={class:"media-input"},Js={class:"tabs"},Ks=["onClick"],Qs={class:"btns"},$s=Object(y["createTextVNode"])("取消"),ef=Object(y["createTextVNode"])("确认"),tf={class:"btns"},nf=Object(y["createTextVNode"])("取消"),of=Object(y["createTextVNode"])("确认");function lf(e,t,n,o,l,c){var a=Object(y["resolveComponent"])("Input"),r=Object(y["resolveComponent"])("Button");return Object(y["openBlock"])(),Object(y["createElementBlock"])("div",Zs,[Object(y["createElementVNode"])("div",Js,[(Object(y["openBlock"])(!0),Object(y["createElementBlock"])(y["Fragment"],null,Object(y["renderList"])(e.tabs,(function(t){return Object(y["openBlock"])(),Object(y["createElementBlock"])("div",{class:Object(y["normalizeClass"])(["tab",{active:e.type===t.key}]),key:t.key,onClick:function(n){return e.type=t.key}},Object(y["toDisplayString"])(t.label),11,Ks)})),128))]),"video"===e.type?(Object(y["openBlock"])(),Object(y["createElementBlock"])(y["Fragment"],{key:0},[Object(y["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(y["createElementVNode"])("div",Qs,[Object(y["createVNode"])(r,{onClick:t[1]||(t[1]=function(t){return e.close()}),style:{"margin-right":"10px"}},{default:Object(y["withCtx"])((function(){return[$s]})),_:1}),Object(y["createVNode"])(r,{type:"primary",onClick:t[2]||(t[2]=function(t){return e.insertVideo()})},{default:Object(y["withCtx"])((function(){return[ef]})),_:1})])],64)):Object(y["createCommentVNode"])("",!0),"audio"===e.type?(Object(y["openBlock"])(),Object(y["createElementBlock"])(y["Fragment"],{key:1},[Object(y["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(y["createElementVNode"])("div",tf,[Object(y["createVNode"])(r,{onClick:t[4]||(t[4]=function(t){return e.close()}),style:{"margin-right":"10px"}},{default:Object(y["withCtx"])((function(){return[nf]})),_:1}),Object(y["createVNode"])(r,{type:"primary",onClick:t[5]||(t[5]=function(t){return e.insertAudio()})},{default:Object(y["withCtx"])((function(){return[of]})),_:1})])],64)):Object(y["createCommentVNode"])("",!0)])}var cf=Object(y["defineComponent"])({name:"media-input",emits:["insertVideo","insertAudio","close"],setup:function(e,t){var n=t.emit,o=Object(y["ref"])("video"),l=Object(y["ref"])("https://mazwai.com/videvo_files/video/free/2019-01/small_watermarked/181004_04_Dolphins-Whale_06_preview.webm"),c=Object(y["ref"])("https://freesound.org/data/previews/614/614107_11861866-lq.mp3"),a=[{key:"video",label:"视频"},{key:"audio",label:"音频"}],r=function(){if(!l.value)return Ee["a"].error("请先输入正确的视频地址");n("insertVideo",l.value)},i=function(){if(!c.value)return Ee["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("81ab");const af=zn()(cf,[["render",lf],["__scopeId","data-v-ec37f828"]]);var rf=af,uf={class:"latex-editor"},df={class:"container"},sf={class:"left"},ff={class:"input-area"},pf={class:"preview"},mf={key:0,class:"placeholder"},bf={key:1,class:"preview-content"},vf={class:"right"},hf={class:"tabs"},Of=["onClick"],jf={class:"content"},yf={key:0,class:"symbol"},gf={class:"symbol-tabs"},xf=["onClick"],Cf={class:"symbol-pool"},kf=["onClick"],Ef={key:1,class:"formula"},wf={class:"formula-title"},Nf=["onClick"],If={class:"footer"},Vf=Object(y["createTextVNode"])("取消"),Sf=Object(y["createTextVNode"])("确定");function Bf(e,t,n,o,l,c){var a=Object(y["resolveComponent"])("TextArea"),r=Object(y["resolveComponent"])("FormulaContent"),i=Object(y["resolveComponent"])("SymbolContent"),u=Object(y["resolveComponent"])("Button");return Object(y["openBlock"])(),Object(y["createElementBlock"])("div",uf,[Object(y["createElementVNode"])("div",df,[Object(y["createElementVNode"])("div",sf,[Object(y["createElementVNode"])("div",ff,[Object(y["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(y["createElementVNode"])("div",pf,[e.latex?(Object(y["openBlock"])(),Object(y["createElementBlock"])("div",bf,[Object(y["createVNode"])(r,{width:518,height:138,latex:e.latex},null,8,["latex"])])):(Object(y["openBlock"])(),Object(y["createElementBlock"])("div",mf,"公式预览"))])]),Object(y["createElementVNode"])("div",vf,[Object(y["createElementVNode"])("div",hf,[(Object(y["openBlock"])(!0),Object(y["createElementBlock"])(y["Fragment"],null,Object(y["renderList"])(e.tabs,(function(t){return Object(y["openBlock"])(),Object(y["createElementBlock"])("div",{class:Object(y["normalizeClass"])(["tab",{active:t.value===e.toolbarState}]),key:t.value,onClick:function(n){return e.toolbarState=t.value}},Object(y["toDisplayString"])(t.label),11,Of)})),128))]),Object(y["createElementVNode"])("div",jf,["symbol"===e.toolbarState?(Object(y["openBlock"])(),Object(y["createElementBlock"])("div",yf,[Object(y["createElementVNode"])("div",gf,[(Object(y["openBlock"])(!0),Object(y["createElementBlock"])(y["Fragment"],null,Object(y["renderList"])(e.symbolList,(function(t){return Object(y["openBlock"])(),Object(y["createElementBlock"])("div",{class:Object(y["normalizeClass"])(["symbol-tab",{active:e.selectedSymbolKey===t.type}]),key:t.type,onClick:function(n){return e.selectedSymbolKey=t.type}},Object(y["toDisplayString"])(t.label),11,xf)})),128))]),Object(y["createElementVNode"])("div",Cf,[(Object(y["openBlock"])(!0),Object(y["createElementBlock"])(y["Fragment"],null,Object(y["renderList"])(e.symbolPool,(function(t){return Object(y["openBlock"])(),Object(y["createElementBlock"])("div",{class:"symbol-item",key:t.latex,onClick:function(n){return e.insertSymbol(t.latex)}},[Object(y["createVNode"])(i,{latex:t.latex},null,8,["latex"])],8,kf)})),128))])])):(Object(y["openBlock"])(),Object(y["createElementBlock"])("div",Ef,[(Object(y["openBlock"])(!0),Object(y["createElementBlock"])(y["Fragment"],null,Object(y["renderList"])(e.formulaList,(function(t){return Object(y["openBlock"])(),Object(y["createElementBlock"])("div",{class:"formula-item",key:t.label},[Object(y["createElementVNode"])("div",wf,Object(y["toDisplayString"])(t.label),1),Object(y["createElementVNode"])("div",{class:"formula-item-content",onClick:function(n){return e.latex=t.latex}},[Object(y["createVNode"])(r,{width:236,height:60,latex:t.latex},null,8,["latex"])],8,Nf)])})),128))]))])])]),Object(y["createElementVNode"])("div",If,[Object(y["createVNode"])(u,{class:"btn",onClick:t[1]||(t[1]=function(t){return e.close()})},{default:Object(y["withCtx"])((function(){return[Vf]})),_:1}),Object(y["createVNode"])(u,{class:"btn",type:"primary",onClick:t[2]||(t[2]=function(t){return e.update()})},{default:Object(y["withCtx"])((function(){return[Sf]})),_:1})])])}var Lf=n("e5ca");Lf["a"].SUB_SUP_SCALE=.5;var Tf=[{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"}],Mf=[{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"}]}],_f=["width","height"],Df=["transform"],zf=["d"];function Af(e,t,n,o,l,c){return Object(y["openBlock"])(),Object(y["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(y["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(y["createElementVNode"])("path",{d:e.pathd},null,8,zf)],8,Df)],8,_f)}var Rf=Object(y["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(y["ref"])({x:0,y:0,w:0,h:0}),n=Object(y["ref"])("");Object(y["watch"])((function(){return e.latex}),(function(){var o=new Lf["b"](e.latex);n.value=o.pathd({}),t.value=o.box({})}),{immediate:!0});var o=Object(y["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 Ff=zn()(Rf,[["render",Af]]);var Pf=Ff,Hf=["innerHTML"];function qf(e,t,n,o,l,c){return Object(y["openBlock"])(),Object(y["createElementBlock"])("div",{class:"symbol-content",innerHTML:e.svg},null,8,Hf)}var Gf=Object(y["defineComponent"])({name:"symbol-content",props:{latex:{type:String,required:!0}},setup:function(e){var t=Object(y["computed"])((function(){var t=new Lf["b"](e.latex);return t.svg({SCALE_X:10,SCALE_Y:10})}));return{svg:t}}});const Uf=zn()(Gf,[["render",qf]]);var Xf=Uf,Wf=[{label:"常用符号",value:"symbol"},{label:"预置公式",value:"formula"}],Yf=Object(y["defineComponent"])({name:"latex-editor",emits:["update","close"],components:{FormulaContent:Pf,SymbolContent:Xf},props:{value:{type:String,default:""}},setup:function(e,t){var n=t.emit,o=Object(y["ref"])(""),l=Object(y["ref"])("symbol"),c=Object(y["ref"])(),a=Object(y["ref"])(Mf[0].type),r=Object(y["computed"])((function(){var e=Mf.find((function(e){return e.type===a.value}));return(null===e||void 0===e?void 0:e.children)||[]}));Object(y["onMounted"])((function(){e.value&&(o.value=e.value)}));var i=function(){if(o.value){var e=new Lf["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:Wf,latex:o,toolbarState:l,selectedSymbolKey:a,formulaList:Tf,symbolList:Mf,symbolPool:r,textAreaRef:c,update:i,close:u,insertSymbol:d}}});n("b824");const Zf=zn()(Yf,[["render",Bf],["__scopeId","data-v-129e1afa"]]);var Jf=Zf,Kf=Object(y["defineComponent"])({name:"canvas-tool",components:{ShapePool:ms,LinePool:Es,ChartPool:Bs,TableGenerator:Ys,MediaInput:rf,LaTeXEditor:Jf},setup:function(){var e=te(),t=Object(g["c"])(e),n=t.canvasScale,o=Object(g["c"])(se()),l=o.canUndo,c=o.canRedo,a=Object(y["computed"])((function(){return parseInt(100*n.value+"")+"%"})),r=mt(),i=r.scaleCanvas,u=r.setCanvasPercentage,d=Ye(),s=d.redo,f=d.undo,p=et(),m=p.createImageElement,b=p.createChartElement,v=p.createTableElement,h=p.createLatexElement,O=p.createVideoElement,j=p.createAudioElement,x=function(e){var t=e[0];t&&Je(t).then((function(e){return m(e)}))},C=Object(y["ref"])(!1),k=Object(y["ref"])(!1),E=Object(y["ref"])(!1),w=Object(y["ref"])(!1),N=Object(y["ref"])(!1),I=Object(y["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:E,tableGeneratorVisible:w,mediaInputVisible:N,latexEditorVisible:I,drawText:V,drawShape:S,drawLine:B,createChartElement:b,createTableElement:v,createLatexElement:h,createVideoElement:O,createAudioElement:j}}});n("044f");const Qf=zn()(Kf,[["render",os],["__scopeId","data-v-4ae7c9aa"]]);var $f=Qf,ep={class:"add-slide"},tp=Object(y["createTextVNode"])("添加幻灯片"),np={class:"select-btn"},op=["onMousedown"];function lp(e,t,n,o,l,c){var a=Object(y["resolveComponent"])("IconPlus"),r=Object(y["resolveComponent"])("LayoutPool"),i=Object(y["resolveComponent"])("IconDown"),u=Object(y["resolveComponent"])("Popover"),d=Object(y["resolveComponent"])("ThumbnailSlide"),s=Object(y["resolveComponent"])("Draggable"),f=Object(y["resolveDirective"])("contextmenu"),p=Object(y["resolveDirective"])("click-outside");return Object(y["withDirectives"])((Object(y["openBlock"])(),Object(y["createElementBlock"])("div",{class:"thumbnails",onMousedown:t[3]||(t[3]=function(){return e.setThumbnailsFocus(!0)})},[Object(y["createElementVNode"])("div",ep,[Object(y["createElementVNode"])("div",{class:"btn",onClick:t[0]||(t[0]=function(t){return e.createSlide()})},[Object(y["createVNode"])(a,{class:"icon"}),tp]),Object(y["createVNode"])(u,{trigger:"click",placement:"bottomLeft",visible:e.presetLayoutPopoverVisible,"onUpdate:visible":t[2]||(t[2]=function(t){return e.presetLayoutPopoverVisible=t})},{content:Object(y["withCtx"])((function(){return[Object(y["createVNode"])(r,{onSelect:t[1]||(t[1]=function(t){e.createSlideByTemplate(t),e.presetLayoutPopoverVisible=!1})})]})),default:Object(y["withCtx"])((function(){return[Object(y["createElementVNode"])("div",np,[Object(y["createVNode"])(i)])]})),_:1},8,["visible"])]),Object(y["createVNode"])(s,{class:"thumbnail-list",modelValue:e.slides,animation:300,scroll:!0,scrollSensitivity:50,setData:null,onEnd:e.handleDragEnd,itemKey:"id"},{item:Object(y["withCtx"])((function(t){var n=t.element,o=t.index;return[Object(y["withDirectives"])((Object(y["openBlock"])(),Object(y["createElementBlock"])("div",{class:Object(y["normalizeClass"])(["thumbnail-item",{active:e.slideIndex===o,selected:e.selectedSlidesIndex.includes(o)}]),onMousedown:function(t){return e.handleClickSlideThumbnail(t,o)}},[Object(y["createElementVNode"])("div",{class:Object(y["normalizeClass"])(["label",{"offset-left":o>=99}])},Object(y["toDisplayString"])(e.fillDigit(o+1,2)),3),Object(y["createVNode"])(d,{class:"thumbnail",slide:n,size:120,visible:o<e.slidesLoadLimit},null,8,["slide","visible"])],42,op)),[[f,e.contextmenusThumbnailItem]])]})),_:1},8,["modelValue","onEnd"])],32)),[[p,function(){return e.setThumbnailsFocus(!1)}],[f,e.contextmenusThumbnails]])}var cp=function(){var e=Object(g["c"])(ee()),t=e.slides,n=Object(y["ref"])(null),o=Object(y["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(y["onMounted"])(l),Object(y["onUnmounted"])((function(){n.value&&clearTimeout(n.value)})),{slidesLoadLimit:o}},ap=n("b76a"),rp=n.n(ap),ip={class:"layout-pool"},up=["onClick"];function dp(e,t,n,o,l,c){var a=Object(y["resolveComponent"])("ThumbnailSlide");return Object(y["openBlock"])(),Object(y["createElementBlock"])("div",ip,[(Object(y["openBlock"])(!0),Object(y["createElementBlock"])(y["Fragment"],null,Object(y["renderList"])(e.layouts,(function(t){return Object(y["openBlock"])(),Object(y["createElementBlock"])("div",{class:"layout-item",key:t.id,onClick:function(n){return e.selectSlideTemplate(t)}},[Object(y["createVNode"])(a,{class:"thumbnail",slide:t,size:180},null,8,["slide"])],8,up)})),128))])}var sp=Object(y["defineComponent"])({name:"layout-pool",emits:["select"],components:{ThumbnailSlide:Ud},setup:function(e,t){var n=t.emit,o=Object(g["c"])(ee()),l=o.layouts,c=function(e){n("select",e)};return{layouts:l,selectSlideTemplate:c}}});n("e7b8");const fp=zn()(sp,[["render",dp],["__scopeId","data-v-741b366e"]]);var pp=fp,mp=Object(y["defineComponent"])({name:"thumbnails",components:{Draggable:rp.a,ThumbnailSlide:Ud,LayoutPool:pp},setup:function(){var e=te(),t=ee(),n=fe(),o=Object(g["c"])(e),l=o.selectedSlidesIndex,c=o.thumbnailsFocus,a=Object(g["c"])(t),r=a.slides,i=a.slideIndex,u=Object(g["c"])(n),d=u.ctrlKeyState,s=u.shiftKeyState,f=cp(),p=f.slidesLoadLimit,m=Object(y["computed"])((function(){return[].concat(Object(W["a"])(l.value),[i.value])})),b=Object(y["ref"])(!1),v=nt(),h=v.copySlide,O=v.pasteSlide,j=v.createSlide,x=v.createSlideByTemplate,C=v.copyAndPasteSlide,k=v.deleteSlide,E=v.cutSlide,w=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=pt(),L=B.enterScreening,T=function(){return[{text:"粘贴",subText:"Ctrl + V",handler:O},{text:"全选",subText:"Ctrl + A",handler:w},{text:"新建页面",subText:"Enter",handler:j},{text:"开始演示",subText:"Ctrl + F",handler:L}]},M=function(){return[{text:"剪切",subText:"Ctrl + X",handler:E},{text:"复制",subText:"Ctrl + C",handler:h},{text:"粘贴",subText:"Ctrl + V",handler:O},{text:"全选",subText:"Ctrl + A",handler:w},{divider:!0},{text:"新建页面",subText:"Enter",handler:j},{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:j,createSlideByTemplate:x,setThumbnailsFocus:V,handleClickSlideThumbnail:I,contextmenusThumbnails:T,contextmenusThumbnailItem:M,fillDigit:be,handleDragEnd:S}}});n("2b79b");const bp=zn()(mp,[["render",lp],["__scopeId","data-v-ec4c62e4"]]);var vp=bp,hp={class:"toolbar"},Op={class:"tabs"},jp=["onClick"],yp={class:"content"};function gp(e,t,n,o,l,c){return Object(y["openBlock"])(),Object(y["createElementBlock"])("div",hp,[Object(y["createElementVNode"])("div",Op,[(Object(y["openBlock"])(!0),Object(y["createElementBlock"])(y["Fragment"],null,Object(y["renderList"])(e.currentTabs,(function(t){return Object(y["openBlock"])(),Object(y["createElementBlock"])("div",{class:Object(y["normalizeClass"])(["tab",{active:t.value===e.toolbarState}]),key:t.value,onClick:function(n){return e.setToolbarState(t.value)}},Object(y["toDisplayString"])(t.label),11,jp)})),128))]),Object(y["createElementVNode"])("div",yp,[(Object(y["openBlock"])(),Object(y["createBlock"])(Object(y["resolveDynamicComponent"])(e.currentPanelComponent)))])])}var xp={class:"element-style-panel"},Cp={key:0};function kp(e,t,n,o,l,c){return Object(y["openBlock"])(),Object(y["createElementBlock"])("div",xp,[e.currentPanelComponent?Object(y["createCommentVNode"])("",!0):(Object(y["openBlock"])(),Object(y["createElementBlock"])("div",Cp," 请先选中要编辑的元素 ")),e.handleElement?(Object(y["openBlock"])(),Object(y["createBlock"])(Object(y["resolveDynamicComponent"])(e.currentPanelComponent),{key:1})):Object(y["createCommentVNode"])("",!0)])}var Ep=function(e){return Object(y["pushScopeId"])("data-v-2d6233f4"),e=e(),Object(y["popScopeId"])(),e},wp={class:"text-style-panel"},Np={class:"preset-style"},Ip=["onClick"],Vp={class:"row"},Sp=Ep((function(){return Object(y["createElementVNode"])("div",{style:{flex:"2"}},"行间距:",-1)})),Bp={class:"row"},Lp=Ep((function(){return Object(y["createElementVNode"])("div",{style:{flex:"2"}},"字间距:",-1)}));function Tp(e,t,n,o,l,c){var a=Object(y["resolveComponent"])("Divider"),r=Object(y["resolveComponent"])("IconFontSize"),i=Object(y["resolveComponent"])("SelectOption"),u=Object(y["resolveComponent"])("SelectOptGroup"),d=Object(y["resolveComponent"])("Select"),s=Object(y["resolveComponent"])("IconAddText"),f=Object(y["resolveComponent"])("InputGroup"),p=Object(y["resolveComponent"])("ColorPicker"),m=Object(y["resolveComponent"])("IconText"),b=Object(y["resolveComponent"])("Button"),v=Object(y["resolveComponent"])("Tooltip"),h=Object(y["resolveComponent"])("Popover"),O=Object(y["resolveComponent"])("IconBackgroundColor"),j=Object(y["resolveComponent"])("IconFill"),g=Object(y["resolveComponent"])("ButtonGroup"),x=Object(y["resolveComponent"])("IconTextBold"),C=Object(y["resolveComponent"])("CheckboxButton"),k=Object(y["resolveComponent"])("IconTextItalic"),E=Object(y["resolveComponent"])("IconTextUnderline"),w=Object(y["resolveComponent"])("IconStrikethrough"),N=Object(y["resolveComponent"])("CheckboxButtonGroup"),I=Object(y["resolveComponent"])("IconUpOne"),V=Object(y["resolveComponent"])("IconDownOne"),S=Object(y["resolveComponent"])("IconCode"),B=Object(y["resolveComponent"])("IconQuote"),L=Object(y["resolveComponent"])("IconFormat"),T=Object(y["resolveComponent"])("IconAlignTextLeft"),M=Object(y["resolveComponent"])("RadioButton"),_=Object(y["resolveComponent"])("IconAlignTextCenter"),D=Object(y["resolveComponent"])("IconAlignTextRight"),z=Object(y["resolveComponent"])("RadioGroup"),A=Object(y["resolveComponent"])("IconList"),R=Object(y["resolveComponent"])("IconOrderedList"),F=Object(y["resolveComponent"])("IconRowHeight"),P=Object(y["resolveComponent"])("IconFullwidth"),H=Object(y["resolveComponent"])("ElementOutline"),q=Object(y["resolveComponent"])("ElementShadow"),G=Object(y["resolveComponent"])("ElementOpacity");return Object(y["openBlock"])(),Object(y["createElementBlock"])("div",wp,[Object(y["createElementVNode"])("div",Np,[(Object(y["openBlock"])(!0),Object(y["createElementBlock"])(y["Fragment"],null,Object(y["renderList"])(e.presetStyles,(function(t){return Object(y["openBlock"])(),Object(y["createElementBlock"])("div",{class:"preset-style-item",key:t.label,style:Object(y["normalizeStyle"])(t.style),onClick:function(n){return e.emitBatchRichTextCommand(t.cmd)}},Object(y["toDisplayString"])(t.label),13,Ip)})),128))]),Object(y["createVNode"])(a),Object(y["createVNode"])(f,{compact:"",class:"row"},{default:Object(y["withCtx"])((function(){return[Object(y["createVNode"])(d,{style:{flex:"3"},value:e.richTextAttrs.fontname,onChange:t[0]||(t[0]=function(t){return e.emitRichTextCommand("fontname",t)})},{suffixIcon:Object(y["withCtx"])((function(){return[Object(y["createVNode"])(r)]})),default:Object(y["withCtx"])((function(){return[Object(y["createVNode"])(u,{label:"系统字体"},{default:Object(y["withCtx"])((function(){return[(Object(y["openBlock"])(!0),Object(y["createElementBlock"])(y["Fragment"],null,Object(y["renderList"])(e.availableFonts,(function(e){return Object(y["openBlock"])(),Object(y["createBlock"])(i,{key:e.value,value:e.value},{default:Object(y["withCtx"])((function(){return[Object(y["createElementVNode"])("span",{style:Object(y["normalizeStyle"])({fontFamily:e.value})},Object(y["toDisplayString"])(e.label),5)]})),_:2},1032,["value"])})),128))]})),_:1}),Object(y["createVNode"])(u,{label:"在线字体"},{default:Object(y["withCtx"])((function(){return[(Object(y["openBlock"])(!0),Object(y["createElementBlock"])(y["Fragment"],null,Object(y["renderList"])(e.webFonts,(function(e){return Object(y["openBlock"])(),Object(y["createBlock"])(i,{key:e.value,value:e.value},{default:Object(y["withCtx"])((function(){return[Object(y["createElementVNode"])("span",null,Object(y["toDisplayString"])(e.label),1)]})),_:2},1032,["value"])})),128))]})),_:1})]})),_:1},8,["value"]),Object(y["createVNode"])(d,{style:{flex:"2"},value:e.richTextAttrs.fontsize,onChange:t[1]||(t[1]=function(t){return e.emitRichTextCommand("fontsize",t)})},{suffixIcon:Object(y["withCtx"])((function(){return[Object(y["createVNode"])(s)]})),default:Object(y["withCtx"])((function(){return[(Object(y["openBlock"])(!0),Object(y["createElementBlock"])(y["Fragment"],null,Object(y["renderList"])(e.fontSizeOptions,(function(e){return Object(y["openBlock"])(),Object(y["createBlock"])(i,{key:e,value:e},{default:Object(y["withCtx"])((function(){return[Object(y["createTextVNode"])(Object(y["toDisplayString"])(e),1)]})),_:2},1032,["value"])})),128))]})),_:1},8,["value"])]})),_:1}),Object(y["createVNode"])(g,{class:"row"},{default:Object(y["withCtx"])((function(){return[Object(y["createVNode"])(h,{trigger:"click"},{content:Object(y["withCtx"])((function(){return[Object(y["createVNode"])(p,{modelValue:e.richTextAttrs.color,"onUpdate:modelValue":t[2]||(t[2]=function(t){return e.emitRichTextCommand("color",t)})},null,8,["modelValue"])]})),default:Object(y["withCtx"])((function(){return[Object(y["createVNode"])(v,{mouseLeaveDelay:0,mouseEnterDelay:.5,title:"文字颜色"},{default:Object(y["withCtx"])((function(){return[Object(y["createVNode"])(b,{class:"text-color-btn",style:{flex:"1"}},{default:Object(y["withCtx"])((function(){return[Object(y["createVNode"])(m),Object(y["createElementVNode"])("div",{class:"text-color-block",style:Object(y["normalizeStyle"])({backgroundColor:e.richTextAttrs.color})},null,4)]})),_:1})]})),_:1},8,["mouseEnterDelay"])]})),_:1}),Object(y["createVNode"])(h,{trigger:"click"},{content:Object(y["withCtx"])((function(){return[Object(y["createVNode"])(p,{modelValue:e.richTextAttrs.backcolor,"onUpdate:modelValue":t[3]||(t[3]=function(t){return e.emitRichTextCommand("backcolor",t)})},null,8,["modelValue"])]})),default:Object(y["withCtx"])((function(){return[Object(y["createVNode"])(v,{mouseLeaveDelay:0,mouseEnterDelay:.5,title:"文字高亮"},{default:Object(y["withCtx"])((function(){return[Object(y["createVNode"])(b,{class:"text-color-btn",style:{flex:"1"}},{default:Object(y["withCtx"])((function(){return[Object(y["createVNode"])(O),Object(y["createElementVNode"])("div",{class:"text-color-block",style:Object(y["normalizeStyle"])({backgroundColor:e.richTextAttrs.backcolor})},null,4)]})),_:1})]})),_:1},8,["mouseEnterDelay"])]})),_:1}),Object(y["createVNode"])(h,{trigger:"click"},{content:Object(y["withCtx"])((function(){return[Object(y["createVNode"])(p,{modelValue:e.fill,"onUpdate:modelValue":t[4]||(t[4]=function(t){return e.updateFill(t)})},null,8,["modelValue"])]})),default:Object(y["withCtx"])((function(){return[Object(y["createVNode"])(v,{mouseLeaveDelay:0,mouseEnterDelay:.5,title:"文本框填充"},{default:Object(y["withCtx"])((function(){return[Object(y["createVNode"])(b,{class:"text-color-btn",style:{flex:"1"}},{default:Object(y["withCtx"])((function(){return[Object(y["createVNode"])(j),Object(y["createElementVNode"])("div",{class:"text-color-block",style:Object(y["normalizeStyle"])({backgroundColor:e.fill})},null,4)]})),_:1})]})),_:1},8,["mouseEnterDelay"])]})),_:1})]})),_:1}),Object(y["createVNode"])(N,{class:"row"},{default:Object(y["withCtx"])((function(){return[Object(y["createVNode"])(v,{mouseLeaveDelay:0,mouseEnterDelay:.5,title:"加粗"},{default:Object(y["withCtx"])((function(){return[Object(y["createVNode"])(C,{style:{flex:"1"},checked:e.richTextAttrs.bold,onClick:t[5]||(t[5]=function(t){return e.emitRichTextCommand("bold")})},{default:Object(y["withCtx"])((function(){return[Object(y["createVNode"])(x)]})),_:1},8,["checked"])]})),_:1},8,["mouseEnterDelay"]),Object(y["createVNode"])(v,{mouseLeaveDelay:0,mouseEnterDelay:.5,title:"斜体"},{default:Object(y["withCtx"])((function(){return[Object(y["createVNode"])(C,{style:{flex:"1"},checked:e.richTextAttrs.em,onClick:t[6]||(t[6]=function(t){return e.emitRichTextCommand("em")})},{default:Object(y["withCtx"])((function(){return[Object(y["createVNode"])(k)]})),_:1},8,["checked"])]})),_:1},8,["mouseEnterDelay"]),Object(y["createVNode"])(v,{mouseLeaveDelay:0,mouseEnterDelay:.5,title:"下划线"},{default:Object(y["withCtx"])((function(){return[Object(y["createVNode"])(C,{style:{flex:"1"},checked:e.richTextAttrs.underline,onClick:t[7]||(t[7]=function(t){return e.emitRichTextCommand("underline")})},{default:Object(y["withCtx"])((function(){return[Object(y["createVNode"])(E)]})),_:1},8,["checked"])]})),_:1},8,["mouseEnterDelay"]),Object(y["createVNode"])(v,{mouseLeaveDelay:0,mouseEnterDelay:.5,title:"删除线"},{default:Object(y["withCtx"])((function(){return[Object(y["createVNode"])(C,{style:{flex:"1"},checked:e.richTextAttrs.strikethrough,onClick:t[8]||(t[8]=function(t){return e.emitRichTextCommand("strikethrough")})},{default:Object(y["withCtx"])((function(){return[Object(y["createVNode"])(w)]})),_:1},8,["checked"])]})),_:1},8,["mouseEnterDelay"])]})),_:1}),Object(y["createVNode"])(N,{class:"row"},{default:Object(y["withCtx"])((function(){return[Object(y["createVNode"])(v,{mouseLeaveDelay:0,mouseEnterDelay:.5,title:"上标"},{default:Object(y["withCtx"])((function(){return[Object(y["createVNode"])(C,{style:{flex:"1"},checked:e.richTextAttrs.superscript,onClick:t[9]||(t[9]=function(t){return e.emitRichTextCommand("superscript")})},{default:Object(y["withCtx"])((function(){return[Object(y["createVNode"])(I)]})),_:1},8,["checked"])]})),_:1},8,["mouseEnterDelay"]),Object(y["createVNode"])(v,{mouseLeaveDelay:0,mouseEnterDelay:.5,title:"下标"},{default:Object(y["withCtx"])((function(){return[Object(y["createVNode"])(C,{style:{flex:"1"},checked:e.richTextAttrs.subscript,onClick:t[10]||(t[10]=function(t){return e.emitRichTextCommand("subscript")})},{default:Object(y["withCtx"])((function(){return[Object(y["createVNode"])(V)]})),_:1},8,["checked"])]})),_:1},8,["mouseEnterDelay"]),Object(y["createVNode"])(v,{mouseLeaveDelay:0,mouseEnterDelay:.5,title:"行内代码"},{default:Object(y["withCtx"])((function(){return[Object(y["createVNode"])(C,{style:{flex:"1"},checked:e.richTextAttrs.code,onClick:t[11]||(t[11]=function(t){return e.emitRichTextCommand("code")})},{default:Object(y["withCtx"])((function(){return[Object(y["createVNode"])(S)]})),_:1},8,["checked"])]})),_:1},8,["mouseEnterDelay"]),Object(y["createVNode"])(v,{mouseLeaveDelay:0,mouseEnterDelay:.5,title:"引用"},{default:Object(y["withCtx"])((function(){return[Object(y["createVNode"])(C,{style:{flex:"1"},checked:e.richTextAttrs.blockquote,onClick:t[12]||(t[12]=function(t){return e.emitRichTextCommand("blockquote")})},{default:Object(y["withCtx"])((function(){return[Object(y["createVNode"])(B)]})),_:1},8,["checked"])]})),_:1},8,["mouseEnterDelay"]),Object(y["createVNode"])(v,{mouseLeaveDelay:0,mouseEnterDelay:.5,title:"清除格式"},{default:Object(y["withCtx"])((function(){return[Object(y["createVNode"])(C,{style:{flex:"1"},onClick:t[13]||(t[13]=function(t){return e.emitRichTextCommand("clear")})},{default:Object(y["withCtx"])((function(){return[Object(y["createVNode"])(L)]})),_:1})]})),_:1},8,["mouseEnterDelay"])]})),_:1}),Object(y["createVNode"])(a),Object(y["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(y["withCtx"])((function(){return[Object(y["createVNode"])(v,{mouseLeaveDelay:0,mouseEnterDelay:.5,title:"左对齐"},{default:Object(y["withCtx"])((function(){return[Object(y["createVNode"])(M,{value:"left",style:{flex:"1"}},{default:Object(y["withCtx"])((function(){return[Object(y["createVNode"])(T)]})),_:1})]})),_:1},8,["mouseEnterDelay"]),Object(y["createVNode"])(v,{mouseLeaveDelay:0,mouseEnterDelay:.5,title:"居中"},{default:Object(y["withCtx"])((function(){return[Object(y["createVNode"])(M,{value:"center",style:{flex:"1"}},{default:Object(y["withCtx"])((function(){return[Object(y["createVNode"])(_)]})),_:1})]})),_:1},8,["mouseEnterDelay"]),Object(y["createVNode"])(v,{mouseLeaveDelay:0,mouseEnterDelay:.5,title:"右对齐"},{default:Object(y["withCtx"])((function(){return[Object(y["createVNode"])(M,{value:"right",style:{flex:"1"}},{default:Object(y["withCtx"])((function(){return[Object(y["createVNode"])(D)]})),_:1})]})),_:1},8,["mouseEnterDelay"])]})),_:1},8,["value"]),Object(y["createVNode"])(N,{class:"row"},{default:Object(y["withCtx"])((function(){return[Object(y["createVNode"])(v,{mouseLeaveDelay:0,mouseEnterDelay:.5,title:"项目符号"},{default:Object(y["withCtx"])((function(){return[Object(y["createVNode"])(C,{style:{flex:"1"},checked:e.richTextAttrs.bulletList,onClick:t[15]||(t[15]=function(t){return e.emitRichTextCommand("bulletList")})},{default:Object(y["withCtx"])((function(){return[Object(y["createVNode"])(A)]})),_:1},8,["checked"])]})),_:1},8,["mouseEnterDelay"]),Object(y["createVNode"])(v,{mouseLeaveDelay:0,mouseEnterDelay:.5,title:"编号"},{default:Object(y["withCtx"])((function(){return[Object(y["createVNode"])(C,{style:{flex:"1"},checked:e.richTextAttrs.orderedList,onClick:t[16]||(t[16]=function(t){return e.emitRichTextCommand("orderedList")})},{default:Object(y["withCtx"])((function(){return[Object(y["createVNode"])(R)]})),_:1},8,["checked"])]})),_:1},8,["mouseEnterDelay"])]})),_:1}),Object(y["createVNode"])(a),Object(y["createElementVNode"])("div",Vp,[Sp,Object(y["createVNode"])(d,{style:{flex:"3"},value:e.lineHeight,onChange:t[17]||(t[17]=function(t){return e.updateLineHeight(t)})},{suffixIcon:Object(y["withCtx"])((function(){return[Object(y["createVNode"])(F)]})),default:Object(y["withCtx"])((function(){return[(Object(y["openBlock"])(!0),Object(y["createElementBlock"])(y["Fragment"],null,Object(y["renderList"])(e.lineHeightOptions,(function(e){return Object(y["openBlock"])(),Object(y["createBlock"])(i,{key:e,value:e},{default:Object(y["withCtx"])((function(){return[Object(y["createTextVNode"])(Object(y["toDisplayString"])(e)+"倍",1)]})),_:2},1032,["value"])})),128))]})),_:1},8,["value"])]),Object(y["createElementVNode"])("div",Bp,[Lp,Object(y["createVNode"])(d,{style:{flex:"3"},value:e.wordSpace,onChange:t[18]||(t[18]=function(t){return e.updateWordSpace(t)})},{suffixIcon:Object(y["withCtx"])((function(){return[Object(y["createVNode"])(P)]})),default:Object(y["withCtx"])((function(){return[(Object(y["openBlock"])(!0),Object(y["createElementBlock"])(y["Fragment"],null,Object(y["renderList"])(e.wordSpaceOptions,(function(e){return Object(y["openBlock"])(),Object(y["createBlock"])(i,{key:e,value:e},{default:Object(y["withCtx"])((function(){return[Object(y["createTextVNode"])(Object(y["toDisplayString"])(e)+"px",1)]})),_:2},1032,["value"])})),128))]})),_:1},8,["value"])]),Object(y["createVNode"])(a),Object(y["createVNode"])(H),Object(y["createVNode"])(a),Object(y["createVNode"])(q),Object(y["createVNode"])(a),Object(y["createVNode"])(G)])}var Mp=function(e){return Object(y["pushScopeId"])("data-v-f62a02b6"),e=e(),Object(y["popScopeId"])(),e},_p={class:"element-opacity"},Dp={class:"row"},zp=Mp((function(){return Object(y["createElementVNode"])("div",{style:{flex:"2"}},"不透明度:",-1)}));function Ap(e,t,n,o,l,c){var a=Object(y["resolveComponent"])("Slider");return Object(y["openBlock"])(),Object(y["createElementBlock"])("div",_p,[Object(y["createElementVNode"])("div",Dp,[zp,Object(y["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 Rp=Object(y["defineComponent"])({name:"element-opacity",setup:function(){var e=ee(),t=Object(g["c"])(te()),n=t.handleElement,o=Object(y["ref"])(1);Object(y["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=Ye(),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 Fp=zn()(Rp,[["render",Ap],["__scopeId","data-v-f62a02b6"]]);var Pp=Fp,Hp=(n("c7cd"),function(e){return Object(y["pushScopeId"])("data-v-35c4c4a3"),e=e(),Object(y["popScopeId"])(),e}),qp={class:"element-outline"},Gp={key:0,class:"row"},Up=Hp((function(){return Object(y["createElementVNode"])("div",{style:{flex:"2"}},"启用边框:",-1)})),Xp={class:"switch-wrapper",style:{flex:"3"}},Wp={class:"row"},Yp=Hp((function(){return Object(y["createElementVNode"])("div",{style:{flex:"2"}},"边框样式:",-1)})),Zp=Object(y["createTextVNode"])("实线边框"),Jp=Object(y["createTextVNode"])("虚线边框"),Kp={class:"row"},Qp=Hp((function(){return Object(y["createElementVNode"])("div",{style:{flex:"2"}},"边框颜色:",-1)})),$p={class:"row"},em=Hp((function(){return Object(y["createElementVNode"])("div",{style:{flex:"2"}},"边框粗细:",-1)}));function tm(e,t,n,o,l,c){var a=Object(y["resolveComponent"])("Switch"),r=Object(y["resolveComponent"])("SelectOption"),i=Object(y["resolveComponent"])("Select"),u=Object(y["resolveComponent"])("ColorPicker"),d=Object(y["resolveComponent"])("ColorButton"),s=Object(y["resolveComponent"])("Popover"),f=Object(y["resolveComponent"])("InputNumber");return Object(y["openBlock"])(),Object(y["createElementBlock"])("div",qp,[e.fixed?Object(y["createCommentVNode"])("",!0):(Object(y["openBlock"])(),Object(y["createElementBlock"])("div",Gp,[Up,Object(y["createElementVNode"])("div",Xp,[Object(y["createVNode"])(a,{checked:e.hasOutline,onChange:t[0]||(t[0]=function(t){return e.toggleOutline(t)})},null,8,["checked"])])])),e.hasOutline?(Object(y["openBlock"])(),Object(y["createElementBlock"])(y["Fragment"],{key:1},[Object(y["createElementVNode"])("div",Wp,[Yp,Object(y["createVNode"])(i,{style:{flex:"3"},value:e.outline.style,onChange:t[1]||(t[1]=function(t){return e.updateOutline({style:t})})},{default:Object(y["withCtx"])((function(){return[Object(y["createVNode"])(r,{value:"solid"},{default:Object(y["withCtx"])((function(){return[Zp]})),_:1}),Object(y["createVNode"])(r,{value:"dashed"},{default:Object(y["withCtx"])((function(){return[Jp]})),_:1})]})),_:1},8,["value"])]),Object(y["createElementVNode"])("div",Kp,[Qp,Object(y["createVNode"])(s,{trigger:"click"},{content:Object(y["withCtx"])((function(){return[Object(y["createVNode"])(u,{modelValue:e.outline.color,"onUpdate:modelValue":t[2]||(t[2]=function(t){return e.updateOutline({color:t})})},null,8,["modelValue"])]})),default:Object(y["withCtx"])((function(){return[Object(y["createVNode"])(d,{color:e.outline.color,style:{flex:"3"}},null,8,["color"])]})),_:1})]),Object(y["createElementVNode"])("div",$p,[em,Object(y["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(y["createCommentVNode"])("",!0)])}function nm(e,t,n,o,l,c){var a=Object(y["resolveComponent"])("IconPlatte"),r=Object(y["resolveComponent"])("Button");return Object(y["openBlock"])(),Object(y["createBlock"])(r,{class:"color-btn"},{default:Object(y["withCtx"])((function(){return[Object(y["createElementVNode"])("div",{class:"color-block",style:Object(y["normalizeStyle"])({backgroundColor:e.color})},null,4),Object(y["createVNode"])(a,{class:"color-btn-icon"})]})),_:1})}var om=Object(y["defineComponent"])({name:"color-button",props:{color:{type:String,required:!0}}});n("27cd");const lm=zn()(om,[["render",nm],["__scopeId","data-v-dffe32bc"]]);var cm=lm,am=Object(y["defineComponent"])({name:"element-outline",components:{ColorButton:cm},props:{fixed:{type:Boolean,default:!1}},setup:function(){var e=ee(),t=Object(g["c"])(te()),n=t.handleElement,o=Object(y["ref"])(),l=Object(y["ref"])(!1);Object(y["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=Ye(),a=c.addHistorySnapshot,r=function(t){if(n.value){var l={outline:Object(L["a"])(Object(L["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 rm=zn()(am,[["render",tm],["__scopeId","data-v-35c4c4a3"]]);var im=rm,um=function(e){return Object(y["pushScopeId"])("data-v-73616cd6"),e=e(),Object(y["popScopeId"])(),e},dm={class:"element-shadow"},sm={class:"row"},fm=um((function(){return Object(y["createElementVNode"])("div",{style:{flex:"2"}},"启用阴影:",-1)})),pm={class:"switch-wrapper",style:{flex:"3"}},mm={class:"row"},bm=um((function(){return Object(y["createElementVNode"])("div",{style:{flex:"2"}},"水平阴影:",-1)})),vm={class:"row"},hm=um((function(){return Object(y["createElementVNode"])("div",{style:{flex:"2"}},"垂直阴影:",-1)})),Om={class:"row"},jm=um((function(){return Object(y["createElementVNode"])("div",{style:{flex:"2"}},"模糊距离:",-1)})),ym={class:"row"},gm=um((function(){return Object(y["createElementVNode"])("div",{style:{flex:"2"}},"阴影颜色:",-1)}));function xm(e,t,n,o,l,c){var a=Object(y["resolveComponent"])("Switch"),r=Object(y["resolveComponent"])("Slider"),i=Object(y["resolveComponent"])("ColorPicker"),u=Object(y["resolveComponent"])("ColorButton"),d=Object(y["resolveComponent"])("Popover");return Object(y["openBlock"])(),Object(y["createElementBlock"])("div",dm,[Object(y["createElementVNode"])("div",sm,[fm,Object(y["createElementVNode"])("div",pm,[Object(y["createVNode"])(a,{checked:e.hasShadow,onChange:t[0]||(t[0]=function(t){return e.toggleShadow(t)})},null,8,["checked"])])]),e.hasShadow&&e.shadow?(Object(y["openBlock"])(),Object(y["createElementBlock"])(y["Fragment"],{key:0},[Object(y["createElementVNode"])("div",mm,[bm,Object(y["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(y["createElementVNode"])("div",vm,[hm,Object(y["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(y["createElementVNode"])("div",Om,[jm,Object(y["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(y["createElementVNode"])("div",ym,[gm,Object(y["createVNode"])(d,{trigger:"click"},{content:Object(y["withCtx"])((function(){return[Object(y["createVNode"])(i,{modelValue:e.shadow.color,"onUpdate:modelValue":t[4]||(t[4]=function(t){return e.updateShadow({color:t})})},null,8,["modelValue"])]})),default:Object(y["withCtx"])((function(){return[Object(y["createVNode"])(u,{color:e.shadow.color,style:{flex:"3"}},null,8,["color"])]})),_:1})])],64)):Object(y["createCommentVNode"])("",!0)])}var Cm=Object(y["defineComponent"])({name:"element-shadow",components:{ColorButton:cm},setup:function(){var e=ee(),t=Object(g["c"])(te()),n=t.handleElement,o=Object(y["ref"])(),l=Object(y["ref"])(!1);Object(y["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=Ye(),a=c.addHistorySnapshot,r=function(t){if(n.value&&o.value){var l=Object(L["a"])(Object(L["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("247e");const km=zn()(Cm,[["render",xm],["__scopeId","data-v-73616cd6"]]);var Em=km,wm=[{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"}]}],Nm=B,Im=Object(y["defineComponent"])({name:"text-style-panel",components:{ElementOpacity:Pp,ElementOutline:im,ElementShadow:Em},setup:function(){var e=ee(),t=Object(g["c"])(te()),n=t.handleElement,o=t.handleElementId,l=t.richTextAttrs,c=t.availableFonts,a=Object(y["ref"])(),r=Object(y["ref"])(),i=Object(y["ref"])();Object(y["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){oc.emit(hl.RICH_TEXT_COMMAND,{command:e,value:t})},p=function(e){oc.emit(hl.RICH_TEXT_COMMAND,e)},m=Ye(),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})},j=function(e){v({fill:e})};return{fill:a,lineHeight:r,wordSpace:i,richTextAttrs:l,availableFonts:c,webFonts:Nm,fontSizeOptions:u,lineHeightOptions:d,wordSpaceOptions:s,updateLineHeight:h,updateWordSpace:O,updateFill:j,emitRichTextCommand:f,emitBatchRichTextCommand:p,presetStyles:wm}}});n("c68f");const Vm=zn()(Im,[["render",Tp],["__scopeId","data-v-2d6233f4"]]);var Sm=Vm,Bm=function(e){return Object(y["pushScopeId"])("data-v-64e5a614"),e=e(),Object(y["popScopeId"])(),e},Lm={class:"image-style-panel"},Tm=Object(y["createTextVNode"])(" 裁剪图片"),Mm={class:"clip"},_m=Bm((function(){return Object(y["createElementVNode"])("div",{class:"title"},"按形状:",-1)})),Dm={class:"shape-clip"},zm=["onClick"],Am={key:0,class:"title"},Rm=Object(y["createTextVNode"])(" 替换图片"),Fm=Object(y["createTextVNode"])(" 重置样式"),Pm=Object(y["createTextVNode"])(" 设为背景");function Hm(e,t,n,o,l,c){var a=Object(y["resolveComponent"])("ElementFlip"),r=Object(y["resolveComponent"])("IconTailoring"),i=Object(y["resolveComponent"])("Button"),u=Object(y["resolveComponent"])("ButtonGroup"),d=Object(y["resolveComponent"])("IconDown"),s=Object(y["resolveComponent"])("Popover"),f=Object(y["resolveComponent"])("Divider"),p=Object(y["resolveComponent"])("ElementFilter"),m=Object(y["resolveComponent"])("ElementOutline"),b=Object(y["resolveComponent"])("ElementShadow"),v=Object(y["resolveComponent"])("IconTransform"),h=Object(y["resolveComponent"])("FileInput"),O=Object(y["resolveComponent"])("IconUndo"),j=Object(y["resolveComponent"])("IconTheme");return Object(y["openBlock"])(),Object(y["createElementBlock"])("div",Lm,[Object(y["createElementVNode"])("div",{class:"origin-image",style:Object(y["normalizeStyle"])({backgroundImage:"url(".concat(e.handleElement.src,")")})},null,4),Object(y["createVNode"])(a),Object(y["createVNode"])(u,{class:"row"},{default:Object(y["withCtx"])((function(){return[Object(y["createVNode"])(i,{style:{flex:"5"},onClick:t[0]||(t[0]=function(t){return e.clipImage()})},{default:Object(y["withCtx"])((function(){return[Object(y["createVNode"])(r,{class:"btn-icon"}),Tm]})),_:1}),Object(y["createVNode"])(s,{trigger:"click",visible:e.clipPanelVisible,"onUpdate:visible":t[1]||(t[1]=function(t){return e.clipPanelVisible=t})},{content:Object(y["withCtx"])((function(){return[Object(y["createElementVNode"])("div",Mm,[_m,Object(y["createElementVNode"])("div",Dm,[(Object(y["openBlock"])(!0),Object(y["createElementBlock"])(y["Fragment"],null,Object(y["renderList"])(e.shapeClipPathOptions,(function(t,n){return Object(y["openBlock"])(),Object(y["createElementBlock"])("div",{class:"shape-clip-item",key:n,onClick:function(t){return e.presetImageClip(n)}},[Object(y["createElementVNode"])("div",{class:"shape",style:Object(y["normalizeStyle"])({clipPath:t.style})},null,4)],8,zm)})),128))]),(Object(y["openBlock"])(!0),Object(y["createElementBlock"])(y["Fragment"],null,Object(y["renderList"])(e.ratioClipOptions,(function(t){return Object(y["openBlock"])(),Object(y["createElementBlock"])(y["Fragment"],{key:t.label},[t.label?(Object(y["openBlock"])(),Object(y["createElementBlock"])("div",Am,"按"+Object(y["toDisplayString"])(t.label)+"",1)):Object(y["createCommentVNode"])("",!0),Object(y["createVNode"])(u,{class:"row"},{default:Object(y["withCtx"])((function(){return[(Object(y["openBlock"])(!0),Object(y["createElementBlock"])(y["Fragment"],null,Object(y["renderList"])(t.children,(function(t){return Object(y["openBlock"])(),Object(y["createBlock"])(i,{style:{flex:"1"},key:t.key,onClick:function(n){return e.presetImageClip("rect",t.ratio)}},{default:Object(y["withCtx"])((function(){return[Object(y["createTextVNode"])(Object(y["toDisplayString"])(t.key),1)]})),_:2},1032,["onClick"])})),128))]})),_:2},1024)],64)})),128))])]})),default:Object(y["withCtx"])((function(){return[Object(y["createVNode"])(i,{class:"no-padding",style:{flex:"1"}},{default:Object(y["withCtx"])((function(){return[Object(y["createVNode"])(d)]})),_:1})]})),_:1},8,["visible"])]})),_:1}),Object(y["createVNode"])(f),Object(y["createVNode"])(p),Object(y["createVNode"])(f),Object(y["createVNode"])(m),Object(y["createVNode"])(f),Object(y["createVNode"])(b),Object(y["createVNode"])(f),Object(y["createVNode"])(h,{onChange:t[2]||(t[2]=function(t){return e.replaceImage(t)})},{default:Object(y["withCtx"])((function(){return[Object(y["createVNode"])(i,{class:"full-width-btn"},{default:Object(y["withCtx"])((function(){return[Object(y["createVNode"])(v,{class:"btn-icon"}),Rm]})),_:1})]})),_:1}),Object(y["createVNode"])(i,{class:"full-width-btn",onClick:t[3]||(t[3]=function(t){return e.resetImage()})},{default:Object(y["withCtx"])((function(){return[Object(y["createVNode"])(O,{class:"btn-icon"}),Fm]})),_:1}),Object(y["createVNode"])(i,{class:"full-width-btn",onClick:t[4]||(t[4]=function(t){return e.setBackgroundImage()})},{default:Object(y["withCtx"])((function(){return[Object(y["createVNode"])(j,{class:"btn-icon"}),Pm]})),_:1})])}var qm={class:"element-flip"},Gm=Object(y["createTextVNode"])(" 垂直翻转"),Um=Object(y["createTextVNode"])(" 水平翻转");function Xm(e,t,n,o,l,c){var a=Object(y["resolveComponent"])("IconFlipVertically"),r=Object(y["resolveComponent"])("CheckboxButton"),i=Object(y["resolveComponent"])("IconFlipHorizontally"),u=Object(y["resolveComponent"])("CheckboxButtonGroup");return Object(y["openBlock"])(),Object(y["createElementBlock"])("div",qm,[Object(y["createVNode"])(u,{class:"row"},{default:Object(y["withCtx"])((function(){return[Object(y["createVNode"])(r,{style:{flex:"1"},checked:e.flipV,onClick:t[0]||(t[0]=function(t){return e.updateFlip({flipV:!e.flipV})})},{default:Object(y["withCtx"])((function(){return[Object(y["createVNode"])(a),Gm]})),_:1},8,["checked"]),Object(y["createVNode"])(r,{style:{flex:"1"},checked:e.flipH,onClick:t[1]||(t[1]=function(t){return e.updateFlip({flipH:!e.flipH})})},{default:Object(y["withCtx"])((function(){return[Object(y["createVNode"])(i),Um]})),_:1},8,["checked"])]})),_:1})])}var Wm=Object(y["defineComponent"])({name:"element-flip",setup:function(){var e=ee(),t=Object(g["c"])(te()),n=t.handleElement,o=Object(y["ref"])(!1),l=Object(y["ref"])(!1);Object(y["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=Ye(),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 Ym=zn()(Wm,[["render",Xm],["__scopeId","data-v-7bd50f1a"]]);var Zm=Ym,Jm=function(e){return Object(y["pushScopeId"])("data-v-95955a74"),e=e(),Object(y["popScopeId"])(),e},Km={class:"element-filter"},Qm={class:"row"},$m=Jm((function(){return Object(y["createElementVNode"])("div",{style:{flex:"2"}},"启用滤镜:",-1)})),eb={class:"switch-wrapper",style:{flex:"3"}},tb={key:0,class:"filter"},nb={class:"name"};function ob(e,t,n,o,l,c){var a=Object(y["resolveComponent"])("Switch"),r=Object(y["resolveComponent"])("Slider");return Object(y["openBlock"])(),Object(y["createElementBlock"])("div",Km,[Object(y["createElementVNode"])("div",Qm,[$m,Object(y["createElementVNode"])("div",eb,[Object(y["createVNode"])(a,{checked:e.hasFilters,onChange:t[0]||(t[0]=function(t){return e.toggleFilters(t)})},null,8,["checked"])])]),e.hasFilters?(Object(y["openBlock"])(),Object(y["createElementBlock"])("div",tb,[(Object(y["openBlock"])(!0),Object(y["createElementBlock"])(y["Fragment"],null,Object(y["renderList"])(e.filterOptions,(function(t){return Object(y["openBlock"])(),Object(y["createElementBlock"])("div",{class:"filter-item",key:t.key},[Object(y["createElementVNode"])("div",nb,Object(y["toDisplayString"])(t.label),1),Object(y["createVNode"])(r,{class:"filter-slider",max:t.max,min:0,step:t.step,value:t.value,onChange:function(n){return e.updateFilter(t,n)}},null,8,["max","step","value","onChange"])])})),128))])):Object(y["createCommentVNode"])("",!0)])}var lb=[{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}],cb=Object(y["defineComponent"])({name:"element-filter",setup:function(){var e=ee(),t=Object(g["c"])(te()),n=t.handleElement,o=t.handleElementId,l=Object(y["ref"])(JSON.parse(JSON.stringify(lb))),c=Object(y["ref"])(!1),a=Ye(),r=a.addHistorySnapshot;Object(y["watch"])(n,(function(){if(n.value&&"image"===n.value.type){var e=n.value.filters;e?(l.value=lb.map((function(t){return void 0!==e[t.key]?Object(L["a"])(Object(L["a"])({},t),{},{value:parseInt(e[t.key])}):t})),c.value=!0):(l.value=JSON.parse(JSON.stringify(lb)),c.value=!1)}}),{deep:!0,immediate:!0});var i=function(t,l){var c=n.value,a=c.filters||{},i=Object(L["a"])(Object(L["a"])({},a),{},Object(re["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("fb04");const ab=zn()(cb,[["render",ob],["__scopeId","data-v-95955a74"]]);var rb=ab,ib=vo,ub=[{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}]}],db=Object(y["defineComponent"])({name:"image-style-panel",components:{ElementOutline:im,ElementShadow:Em,ElementFlip:Zm,ElementFilter:rb},setup:function(){var e=te(),t=ee(),n=Object(g["c"])(e),o=n.handleElement,l=n.handleElementId,c=Object(g["c"])(t),a=c.currentSlide,r=Object(y["ref"])(!1),i=Ye(),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(L["a"])(Object(L["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(L["a"])(Object(L["a"])({},c.clip),{},{shape:e,range:r})}});d(),u()},p=function(e){var n=e[0];n&&(Je(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(L["a"])(Object(L["a"])({},a.value.background),{},{type:"image",image:e.src,imageSize:"cover"});t.updateSlide({background:n}),u()};return{clipPanelVisible:r,shapeClipPathOptions:ib,ratioClipOptions:ub,handleElement:o,clipImage:d,presetImageClip:f,replaceImage:p,resetImage:m,setBackgroundImage:b}}});n("56bc");const sb=zn()(db,[["render",Hm],["__scopeId","data-v-64e5a614"]]);var fb=sb,pb=function(e){return Object(y["pushScopeId"])("data-v-0e201fca"),e=e(),Object(y["popScopeId"])(),e},mb={class:"shape-style-panel"},bb={class:"row"},vb=Object(y["createTextVNode"])("纯色填充"),hb=Object(y["createTextVNode"])("渐变填充"),Ob=pb((function(){return Object(y["createElementVNode"])("div",{style:{flex:"1"}},null,-1)})),jb=Object(y["createTextVNode"])("线性渐变"),yb=Object(y["createTextVNode"])("径向渐变"),gb={class:"row"},xb=pb((function(){return Object(y["createElementVNode"])("div",{style:{flex:"2"}},"起点颜色:",-1)})),Cb={class:"row"},kb=pb((function(){return Object(y["createElementVNode"])("div",{style:{flex:"2"}},"终点颜色:",-1)})),Eb={key:0,class:"row"},wb=pb((function(){return Object(y["createElementVNode"])("div",{style:{flex:"2"}},"渐变角度:",-1)}));function Nb(e,t,n,o,l,c){var a=Object(y["resolveComponent"])("SelectOption"),r=Object(y["resolveComponent"])("Select"),i=Object(y["resolveComponent"])("ColorPicker"),u=Object(y["resolveComponent"])("ColorButton"),d=Object(y["resolveComponent"])("Popover"),s=Object(y["resolveComponent"])("Slider"),f=Object(y["resolveComponent"])("ElementFlip"),p=Object(y["resolveComponent"])("Divider"),m=Object(y["resolveComponent"])("IconFontSize"),b=Object(y["resolveComponent"])("SelectOptGroup"),v=Object(y["resolveComponent"])("IconAddText"),h=Object(y["resolveComponent"])("InputGroup"),O=Object(y["resolveComponent"])("IconText"),j=Object(y["resolveComponent"])("Button"),g=Object(y["resolveComponent"])("Tooltip"),x=Object(y["resolveComponent"])("ButtonGroup"),C=Object(y["resolveComponent"])("IconTextBold"),k=Object(y["resolveComponent"])("CheckboxButton"),E=Object(y["resolveComponent"])("IconTextItalic"),w=Object(y["resolveComponent"])("IconTextUnderline"),N=Object(y["resolveComponent"])("IconFormat"),I=Object(y["resolveComponent"])("CheckboxButtonGroup"),V=Object(y["resolveComponent"])("IconAlignTextLeft"),S=Object(y["resolveComponent"])("RadioButton"),B=Object(y["resolveComponent"])("IconAlignTextCenter"),L=Object(y["resolveComponent"])("IconAlignTextRight"),T=Object(y["resolveComponent"])("RadioGroup"),M=Object(y["resolveComponent"])("IconAlignTextTopOne"),_=Object(y["resolveComponent"])("IconAlignTextMiddleOne"),D=Object(y["resolveComponent"])("IconAlignTextBottomOne"),z=Object(y["resolveComponent"])("ElementOutline"),A=Object(y["resolveComponent"])("ElementShadow"),R=Object(y["resolveComponent"])("ElementOpacity");return Object(y["openBlock"])(),Object(y["createElementBlock"])("div",mb,[Object(y["createElementVNode"])("div",bb,[Object(y["createVNode"])(r,{style:{flex:"10"},value:e.fillType,onChange:t[0]||(t[0]=function(t){return e.updateFillType(t)})},{default:Object(y["withCtx"])((function(){return[Object(y["createVNode"])(a,{value:"fill"},{default:Object(y["withCtx"])((function(){return[vb]})),_:1}),Object(y["createVNode"])(a,{value:"gradient"},{default:Object(y["withCtx"])((function(){return[hb]})),_:1})]})),_:1},8,["value"]),Ob,"fill"===e.fillType?(Object(y["openBlock"])(),Object(y["createBlock"])(d,{key:0,trigger:"click"},{content:Object(y["withCtx"])((function(){return[Object(y["createVNode"])(i,{modelValue:e.fill,"onUpdate:modelValue":t[1]||(t[1]=function(t){return e.updateFill(t)})},null,8,["modelValue"])]})),default:Object(y["withCtx"])((function(){return[Object(y["createVNode"])(u,{color:e.fill,style:{flex:"10"}},null,8,["color"])]})),_:1})):(Object(y["openBlock"])(),Object(y["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(y["withCtx"])((function(){return[Object(y["createVNode"])(a,{value:"linear"},{default:Object(y["withCtx"])((function(){return[jb]})),_:1}),Object(y["createVNode"])(a,{value:"radial"},{default:Object(y["withCtx"])((function(){return[yb]})),_:1})]})),_:1},8,["value"]))]),"gradient"===e.fillType?(Object(y["openBlock"])(),Object(y["createElementBlock"])(y["Fragment"],{key:0},[Object(y["createElementVNode"])("div",gb,[xb,Object(y["createVNode"])(d,{trigger:"click"},{content:Object(y["withCtx"])((function(){return[Object(y["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(y["withCtx"])((function(){return[Object(y["createVNode"])(u,{color:e.gradient.color[0],style:{flex:"3"}},null,8,["color"])]})),_:1})]),Object(y["createElementVNode"])("div",Cb,[kb,Object(y["createVNode"])(d,{trigger:"click"},{content:Object(y["withCtx"])((function(){return[Object(y["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(y["withCtx"])((function(){return[Object(y["createVNode"])(u,{color:e.gradient.color[1],style:{flex:"3"}},null,8,["color"])]})),_:1})]),"linear"===e.gradient.type?(Object(y["openBlock"])(),Object(y["createElementBlock"])("div",Eb,[wb,Object(y["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(y["createCommentVNode"])("",!0)],64)):Object(y["createCommentVNode"])("",!0),Object(y["createVNode"])(f),Object(y["createVNode"])(p),e.showTextTools?(Object(y["openBlock"])(),Object(y["createElementBlock"])(y["Fragment"],{key:1},[Object(y["createVNode"])(h,{compact:"",class:"row"},{default:Object(y["withCtx"])((function(){return[Object(y["createVNode"])(r,{style:{flex:"3"},value:e.richTextAttrs.fontname,onChange:t[6]||(t[6]=function(t){return e.emitRichTextCommand("fontname",t)})},{suffixIcon:Object(y["withCtx"])((function(){return[Object(y["createVNode"])(m)]})),default:Object(y["withCtx"])((function(){return[Object(y["createVNode"])(b,{label:"系统字体"},{default:Object(y["withCtx"])((function(){return[(Object(y["openBlock"])(!0),Object(y["createElementBlock"])(y["Fragment"],null,Object(y["renderList"])(e.availableFonts,(function(e){return Object(y["openBlock"])(),Object(y["createBlock"])(a,{key:e.value,value:e.value},{default:Object(y["withCtx"])((function(){return[Object(y["createElementVNode"])("span",{style:Object(y["normalizeStyle"])({fontFamily:e.value})},Object(y["toDisplayString"])(e.label),5)]})),_:2},1032,["value"])})),128))]})),_:1}),Object(y["createVNode"])(b,{label:"在线字体"},{default:Object(y["withCtx"])((function(){return[(Object(y["openBlock"])(!0),Object(y["createElementBlock"])(y["Fragment"],null,Object(y["renderList"])(e.webFonts,(function(e){return Object(y["openBlock"])(),Object(y["createBlock"])(a,{key:e.value,value:e.value},{default:Object(y["withCtx"])((function(){return[Object(y["createElementVNode"])("span",null,Object(y["toDisplayString"])(e.label),1)]})),_:2},1032,["value"])})),128))]})),_:1})]})),_:1},8,["value"]),Object(y["createVNode"])(r,{style:{flex:"2"},value:e.richTextAttrs.fontsize,onChange:t[7]||(t[7]=function(t){return e.emitRichTextCommand("fontsize",t)})},{suffixIcon:Object(y["withCtx"])((function(){return[Object(y["createVNode"])(v)]})),default:Object(y["withCtx"])((function(){return[(Object(y["openBlock"])(!0),Object(y["createElementBlock"])(y["Fragment"],null,Object(y["renderList"])(e.fontSizeOptions,(function(e){return Object(y["openBlock"])(),Object(y["createBlock"])(a,{key:e,value:e},{default:Object(y["withCtx"])((function(){return[Object(y["createTextVNode"])(Object(y["toDisplayString"])(e),1)]})),_:2},1032,["value"])})),128))]})),_:1},8,["value"])]})),_:1}),Object(y["createVNode"])(x,{class:"row"},{default:Object(y["withCtx"])((function(){return[Object(y["createVNode"])(d,{trigger:"click"},{content:Object(y["withCtx"])((function(){return[Object(y["createVNode"])(i,{modelValue:e.richTextAttrs.color,"onUpdate:modelValue":t[8]||(t[8]=function(t){return e.emitRichTextCommand("color",t)})},null,8,["modelValue"])]})),default:Object(y["withCtx"])((function(){return[Object(y["createVNode"])(g,{mouseLeaveDelay:0,mouseEnterDelay:.5,title:"文字颜色"},{default:Object(y["withCtx"])((function(){return[Object(y["createVNode"])(j,{class:"text-color-btn",style:{flex:"1"}},{default:Object(y["withCtx"])((function(){return[Object(y["createVNode"])(O),Object(y["createElementVNode"])("div",{class:"text-color-block",style:Object(y["normalizeStyle"])({backgroundColor:e.richTextAttrs.color})},null,4)]})),_:1})]})),_:1},8,["mouseEnterDelay"])]})),_:1})]})),_:1}),Object(y["createVNode"])(I,{class:"row"},{default:Object(y["withCtx"])((function(){return[Object(y["createVNode"])(g,{mouseLeaveDelay:0,mouseEnterDelay:.5,title:"加粗"},{default:Object(y["withCtx"])((function(){return[Object(y["createVNode"])(k,{style:{flex:"1"},checked:e.richTextAttrs.bold,onClick:t[9]||(t[9]=function(t){return e.emitRichTextCommand("bold")})},{default:Object(y["withCtx"])((function(){return[Object(y["createVNode"])(C)]})),_:1},8,["checked"])]})),_:1},8,["mouseEnterDelay"]),Object(y["createVNode"])(g,{mouseLeaveDelay:0,mouseEnterDelay:.5,title:"斜体"},{default:Object(y["withCtx"])((function(){return[Object(y["createVNode"])(k,{style:{flex:"1"},checked:e.richTextAttrs.em,onClick:t[10]||(t[10]=function(t){return e.emitRichTextCommand("em")})},{default:Object(y["withCtx"])((function(){return[Object(y["createVNode"])(E)]})),_:1},8,["checked"])]})),_:1},8,["mouseEnterDelay"]),Object(y["createVNode"])(g,{mouseLeaveDelay:0,mouseEnterDelay:.5,title:"下划线"},{default:Object(y["withCtx"])((function(){return[Object(y["createVNode"])(k,{style:{flex:"1"},checked:e.richTextAttrs.underline,onClick:t[11]||(t[11]=function(t){return e.emitRichTextCommand("underline")})},{default:Object(y["withCtx"])((function(){return[Object(y["createVNode"])(w)]})),_:1},8,["checked"])]})),_:1},8,["mouseEnterDelay"]),Object(y["createVNode"])(g,{mouseLeaveDelay:0,mouseEnterDelay:.5,title:"清除格式"},{default:Object(y["withCtx"])((function(){return[Object(y["createVNode"])(k,{style:{flex:"1"},onClick:t[12]||(t[12]=function(t){return e.emitRichTextCommand("clear")})},{default:Object(y["withCtx"])((function(){return[Object(y["createVNode"])(N)]})),_:1})]})),_:1},8,["mouseEnterDelay"])]})),_:1}),Object(y["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(y["withCtx"])((function(){return[Object(y["createVNode"])(g,{mouseLeaveDelay:0,mouseEnterDelay:.5,title:"左对齐"},{default:Object(y["withCtx"])((function(){return[Object(y["createVNode"])(S,{value:"left",style:{flex:"1"}},{default:Object(y["withCtx"])((function(){return[Object(y["createVNode"])(V)]})),_:1})]})),_:1},8,["mouseEnterDelay"]),Object(y["createVNode"])(g,{mouseLeaveDelay:0,mouseEnterDelay:.5,title:"居中"},{default:Object(y["withCtx"])((function(){return[Object(y["createVNode"])(S,{value:"center",style:{flex:"1"}},{default:Object(y["withCtx"])((function(){return[Object(y["createVNode"])(B)]})),_:1})]})),_:1},8,["mouseEnterDelay"]),Object(y["createVNode"])(g,{mouseLeaveDelay:0,mouseEnterDelay:.5,title:"右对齐"},{default:Object(y["withCtx"])((function(){return[Object(y["createVNode"])(S,{value:"right",style:{flex:"1"}},{default:Object(y["withCtx"])((function(){return[Object(y["createVNode"])(L)]})),_:1})]})),_:1},8,["mouseEnterDelay"])]})),_:1},8,["value"]),Object(y["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(y["withCtx"])((function(){return[Object(y["createVNode"])(g,{mouseLeaveDelay:0,mouseEnterDelay:.5,title:"顶对齐"},{default:Object(y["withCtx"])((function(){return[Object(y["createVNode"])(S,{value:"top",style:{flex:"1"}},{default:Object(y["withCtx"])((function(){return[Object(y["createVNode"])(M)]})),_:1})]})),_:1},8,["mouseEnterDelay"]),Object(y["createVNode"])(g,{mouseLeaveDelay:0,mouseEnterDelay:.5,title:"居中"},{default:Object(y["withCtx"])((function(){return[Object(y["createVNode"])(S,{value:"middle",style:{flex:"1"}},{default:Object(y["withCtx"])((function(){return[Object(y["createVNode"])(_)]})),_:1})]})),_:1},8,["mouseEnterDelay"]),Object(y["createVNode"])(g,{mouseLeaveDelay:0,mouseEnterDelay:.5,title:"底对齐"},{default:Object(y["withCtx"])((function(){return[Object(y["createVNode"])(S,{value:"bottom",style:{flex:"1"}},{default:Object(y["withCtx"])((function(){return[Object(y["createVNode"])(D)]})),_:1})]})),_:1},8,["mouseEnterDelay"])]})),_:1},8,["value"]),Object(y["createVNode"])(p)],64)):Object(y["createCommentVNode"])("",!0),Object(y["createVNode"])(z),Object(y["createVNode"])(p),Object(y["createVNode"])(A),Object(y["createVNode"])(p),Object(y["createVNode"])(R)])}var Ib=B,Vb=Object(y["defineComponent"])({name:"shape-style-panel",components:{ElementOpacity:Pp,ElementOutline:im,ElementShadow:Em,ElementFlip:Zm,ColorButton:cm},setup:function(){var e=te(),t=ee(),n=Object(g["c"])(e),o=n.handleElement,l=n.handleElementId,c=n.editingShapeElementId,a=n.richTextAttrs,r=n.availableFonts,i=Object(y["computed"])((function(){return c.value===l.value})),u=Object(y["ref"])(),d=Object(y["ref"])(),s=Object(y["ref"])("fill"),f=Object(y["ref"])("middle");Object(y["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=Ye(),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(L["a"])(Object(L["a"])({},d.value),e);b({gradient:t})}},O=function(e){b({fill:e})},j=function(e){var t=o.value,n={content:"",defaultFontName:"微软雅黑",defaultColor:"#000",align:"middle"},l=t.text||n;b({text:Object(L["a"])(Object(L["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){oc.emit(hl.RICH_TEXT_COMMAND,{command:e,value:t})};return{fill:u,gradient:d,fillType:s,textAlign:f,richTextAttrs:a,availableFonts:r,fontSizeOptions:x,webFonts:Ib,showTextTools:i,emitRichTextCommand:C,updateFillType:v,updateFill:O,updateGradient:h,updateTextAlign:j}}});n("7e0a");const Sb=zn()(Vb,[["render",Nb],["__scopeId","data-v-0e201fca"]]);var Bb=Sb,Lb=function(e){return Object(y["pushScopeId"])("data-v-cbc4d7fa"),e=e(),Object(y["popScopeId"])(),e},Tb={class:"line-style-panel"},Mb={class:"row"},_b=Lb((function(){return Object(y["createElementVNode"])("div",{style:{flex:"2"}},"线条样式:",-1)})),Db=Object(y["createTextVNode"])("实线"),zb=Object(y["createTextVNode"])("虚线"),Ab={class:"row"},Rb=Lb((function(){return Object(y["createElementVNode"])("div",{style:{flex:"2"}},"线条颜色:",-1)})),Fb={class:"row"},Pb=Lb((function(){return Object(y["createElementVNode"])("div",{style:{flex:"2"}},"线条宽度:",-1)})),Hb={class:"row"},qb=Lb((function(){return Object(y["createElementVNode"])("div",{style:{flex:"2"}},"起点样式:",-1)})),Gb=Object(y["createTextVNode"])("无"),Ub=Object(y["createTextVNode"])("箭头"),Xb=Object(y["createTextVNode"])("圆点"),Wb={class:"row"},Yb=Lb((function(){return Object(y["createElementVNode"])("div",{style:{flex:"2"}},"终点样式:",-1)})),Zb=Object(y["createTextVNode"])("无"),Jb=Object(y["createTextVNode"])("箭头"),Kb=Object(y["createTextVNode"])("圆点");function Qb(e,t,n,o,l,c){var a=Object(y["resolveComponent"])("SelectOption"),r=Object(y["resolveComponent"])("Select"),i=Object(y["resolveComponent"])("ColorPicker"),u=Object(y["resolveComponent"])("ColorButton"),d=Object(y["resolveComponent"])("Popover"),s=Object(y["resolveComponent"])("InputNumber"),f=Object(y["resolveComponent"])("Divider"),p=Object(y["resolveComponent"])("ElementShadow");return Object(y["openBlock"])(),Object(y["createElementBlock"])("div",Tb,[Object(y["createElementVNode"])("div",Mb,[_b,Object(y["createVNode"])(r,{style:{flex:"3"},value:e.handleElement.style,onChange:t[0]||(t[0]=function(t){return e.updateLine({style:t})})},{default:Object(y["withCtx"])((function(){return[Object(y["createVNode"])(a,{value:"solid"},{default:Object(y["withCtx"])((function(){return[Db]})),_:1}),Object(y["createVNode"])(a,{value:"dashed"},{default:Object(y["withCtx"])((function(){return[zb]})),_:1})]})),_:1},8,["value"])]),Object(y["createElementVNode"])("div",Ab,[Rb,Object(y["createVNode"])(d,{trigger:"click"},{content:Object(y["withCtx"])((function(){return[Object(y["createVNode"])(i,{modelValue:e.handleElement.color,"onUpdate:modelValue":t[1]||(t[1]=function(t){return e.updateLine({color:t})})},null,8,["modelValue"])]})),default:Object(y["withCtx"])((function(){return[Object(y["createVNode"])(u,{color:e.handleElement.color,style:{flex:"3"}},null,8,["color"])]})),_:1})]),Object(y["createElementVNode"])("div",Fb,[Pb,Object(y["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(y["createElementVNode"])("div",Hb,[qb,Object(y["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(y["withCtx"])((function(){return[Object(y["createVNode"])(a,{value:""},{default:Object(y["withCtx"])((function(){return[Gb]})),_:1}),Object(y["createVNode"])(a,{value:"arrow"},{default:Object(y["withCtx"])((function(){return[Ub]})),_:1}),Object(y["createVNode"])(a,{value:"dot"},{default:Object(y["withCtx"])((function(){return[Xb]})),_:1})]})),_:1},8,["value"])]),Object(y["createElementVNode"])("div",Wb,[Yb,Object(y["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(y["withCtx"])((function(){return[Object(y["createVNode"])(a,{value:""},{default:Object(y["withCtx"])((function(){return[Zb]})),_:1}),Object(y["createVNode"])(a,{value:"arrow"},{default:Object(y["withCtx"])((function(){return[Jb]})),_:1}),Object(y["createVNode"])(a,{value:"dot"},{default:Object(y["withCtx"])((function(){return[Kb]})),_:1})]})),_:1},8,["value"])]),Object(y["createVNode"])(f),Object(y["createVNode"])(p)])}var $b=Object(y["defineComponent"])({name:"line-style-panel",components:{ElementShadow:Em,ColorButton:cm},setup:function(){var e=ee(),t=Object(g["c"])(te()),n=t.handleElement,o=Ye(),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 ev=zn()($b,[["render",Qb],["__scopeId","data-v-cbc4d7fa"]]);var tv=ev,nv=function(e){return Object(y["pushScopeId"])("data-v-ee2d8b14"),e=e(),Object(y["popScopeId"])(),e},ov={class:"chart-style-panel"},lv=Object(y["createTextVNode"])(" 编辑图表数据 "),cv={class:"row"},av=Object(y["createTextVNode"])("面积图样式"),rv=Object(y["createTextVNode"])("散点图样式"),iv={class:"row"},uv=Object(y["createTextVNode"])("使用平滑曲线"),dv={key:1,class:"row"},sv=Object(y["createTextVNode"])("条形图样式"),fv={key:2,class:"row"},pv=Object(y["createTextVNode"])("环形图样式"),mv={class:"row"},bv=nv((function(){return Object(y["createElementVNode"])("div",{style:{flex:"2"}},"图例:",-1)})),vv=Object(y["createTextVNode"])("不显示"),hv=Object(y["createTextVNode"])("显示在上方"),Ov=Object(y["createTextVNode"])("显示在下方"),jv={class:"row"},yv=nv((function(){return Object(y["createElementVNode"])("div",{style:{flex:"2"}},"背景填充:",-1)})),gv={class:"row"},xv=nv((function(){return Object(y["createElementVNode"])("div",{style:{flex:"2"}},"网格颜色:",-1)})),Cv={style:{flex:"2"}},kv={class:"color-btn-wrap",style:{flex:"3"}},Ev=["onClick"],wv={class:"preset-themes"},Nv=["onClick"],Iv=Object(y["createTextVNode"])("推荐主题"),Vv=Object(y["createTextVNode"])(" 添加主题色 ");function Sv(e,t,n,o,l,c){var a=Object(y["resolveComponent"])("IconEdit"),r=Object(y["resolveComponent"])("Button"),i=Object(y["resolveComponent"])("Divider"),u=Object(y["resolveComponent"])("Checkbox"),d=Object(y["resolveComponent"])("SelectOption"),s=Object(y["resolveComponent"])("Select"),f=Object(y["resolveComponent"])("ColorPicker"),p=Object(y["resolveComponent"])("ColorButton"),m=Object(y["resolveComponent"])("Popover"),b=Object(y["resolveComponent"])("IconCloseSmall"),v=Object(y["resolveComponent"])("Tooltip"),h=Object(y["resolveComponent"])("IconPlus"),O=Object(y["resolveComponent"])("ButtonGroup"),j=Object(y["resolveComponent"])("ElementOutline"),g=Object(y["resolveComponent"])("ChartDataEditor"),x=Object(y["resolveComponent"])("Modal");return Object(y["openBlock"])(),Object(y["createElementBlock"])("div",ov,[Object(y["createVNode"])(r,{class:"full-width-btn",onClick:t[0]||(t[0]=function(t){return e.chartDataEditorVisible=!0})},{default:Object(y["withCtx"])((function(){return[Object(y["createVNode"])(a,{class:"btn-icon"}),lv]})),_:1}),Object(y["createVNode"])(i),"line"===e.handleElement.chartType?(Object(y["openBlock"])(),Object(y["createElementBlock"])(y["Fragment"],{key:0},[Object(y["createElementVNode"])("div",cv,[Object(y["createVNode"])(u,{onChange:t[1]||(t[1]=function(t){return e.updateOptions({showArea:t.target.checked})}),checked:e.showArea,style:{flex:"1"}},{default:Object(y["withCtx"])((function(){return[av]})),_:1},8,["checked"]),Object(y["createVNode"])(u,{onChange:t[2]||(t[2]=function(t){return e.updateOptions({showLine:!t.target.checked})}),checked:!e.showLine,style:{flex:"1"}},{default:Object(y["withCtx"])((function(){return[rv]})),_:1},8,["checked"])]),Object(y["createElementVNode"])("div",iv,[Object(y["createVNode"])(u,{onChange:t[3]||(t[3]=function(t){return e.updateOptions({lineSmooth:t.target.checked})}),checked:e.lineSmooth},{default:Object(y["withCtx"])((function(){return[uv]})),_:1},8,["checked"])])],64)):Object(y["createCommentVNode"])("",!0),"bar"===e.handleElement.chartType?(Object(y["openBlock"])(),Object(y["createElementBlock"])("div",dv,[Object(y["createVNode"])(u,{onChange:t[4]||(t[4]=function(t){return e.updateOptions({horizontalBars:t.target.checked})}),checked:e.horizontalBars},{default:Object(y["withCtx"])((function(){return[sv]})),_:1},8,["checked"])])):Object(y["createCommentVNode"])("",!0),"pie"===e.handleElement.chartType?(Object(y["openBlock"])(),Object(y["createElementBlock"])("div",fv,[Object(y["createVNode"])(u,{onChange:t[5]||(t[5]=function(t){return e.updateOptions({donut:t.target.checked})}),checked:e.donut},{default:Object(y["withCtx"])((function(){return[pv]})),_:1},8,["checked"])])):Object(y["createCommentVNode"])("",!0),Object(y["createVNode"])(i),Object(y["createElementVNode"])("div",mv,[bv,Object(y["createVNode"])(s,{style:{flex:"3"},value:e.legend,onChange:t[6]||(t[6]=function(t){return e.updateLegend(t)})},{default:Object(y["withCtx"])((function(){return[Object(y["createVNode"])(d,{value:""},{default:Object(y["withCtx"])((function(){return[vv]})),_:1}),Object(y["createVNode"])(d,{value:"top"},{default:Object(y["withCtx"])((function(){return[hv]})),_:1}),Object(y["createVNode"])(d,{value:"bottom"},{default:Object(y["withCtx"])((function(){return[Ov]})),_:1})]})),_:1},8,["value"])]),Object(y["createVNode"])(i),Object(y["createElementVNode"])("div",jv,[yv,Object(y["createVNode"])(m,{trigger:"click"},{content:Object(y["withCtx"])((function(){return[Object(y["createVNode"])(f,{modelValue:e.fill,"onUpdate:modelValue":t[7]||(t[7]=function(t){return e.updateFill(t)})},null,8,["modelValue"])]})),default:Object(y["withCtx"])((function(){return[Object(y["createVNode"])(p,{color:e.fill,style:{flex:"3"}},null,8,["color"])]})),_:1})]),Object(y["createElementVNode"])("div",gv,[xv,Object(y["createVNode"])(m,{trigger:"click"},{content:Object(y["withCtx"])((function(){return[Object(y["createVNode"])(f,{modelValue:e.gridColor,"onUpdate:modelValue":t[8]||(t[8]=function(t){return e.updateGridColor(t)})},null,8,["modelValue"])]})),default:Object(y["withCtx"])((function(){return[Object(y["createVNode"])(p,{color:e.gridColor,style:{flex:"3"}},null,8,["color"])]})),_:1})]),Object(y["createVNode"])(i),(Object(y["openBlock"])(!0),Object(y["createElementBlock"])(y["Fragment"],null,Object(y["renderList"])(e.themeColor,(function(t,n){return Object(y["openBlock"])(),Object(y["createElementBlock"])("div",{class:"row",key:n},[Object(y["createElementVNode"])("div",Cv,Object(y["toDisplayString"])(0===n?"主题配色:":""),1),Object(y["createVNode"])(m,{trigger:"click"},{content:Object(y["withCtx"])((function(){return[Object(y["createVNode"])(f,{modelValue:t,"onUpdate:modelValue":function(t){return e.updateTheme(t,n)}},null,8,["modelValue","onUpdate:modelValue"])]})),default:Object(y["withCtx"])((function(){return[Object(y["createElementVNode"])("div",kv,[Object(y["createVNode"])(p,{color:t,style:{width:"100%"}},null,8,["color"]),Object(y["createVNode"])(v,{mouseLeaveDelay:0,mouseEnterDelay:.5,title:"删除"},{default:Object(y["withCtx"])((function(){return[0!==n?(Object(y["openBlock"])(),Object(y["createElementBlock"])("div",{key:0,class:"delete-color-btn",onClick:Object(y["withModifiers"])((function(t){return e.deleteThemeColor(n)}),["stop"])},[Object(y["createVNode"])(b)],8,Ev)):Object(y["createCommentVNode"])("",!0)]})),_:2},1032,["mouseEnterDelay"])])]})),_:2},1024)])})),128)),Object(y["createVNode"])(O,{class:"row"},{default:Object(y["withCtx"])((function(){return[Object(y["createVNode"])(m,{trigger:"click",visible:e.presetThemesVisible,"onUpdate:visible":t[9]||(t[9]=function(t){return e.presetThemesVisible=t})},{content:Object(y["withCtx"])((function(){return[Object(y["createElementVNode"])("div",wv,[(Object(y["openBlock"])(!0),Object(y["createElementBlock"])(y["Fragment"],null,Object(y["renderList"])(e.presetChartThemes,(function(t,n){return Object(y["openBlock"])(),Object(y["createElementBlock"])("div",{class:"preset-theme",key:n,onClick:function(n){return e.applyPresetTheme(t)}},[(Object(y["openBlock"])(!0),Object(y["createElementBlock"])(y["Fragment"],null,Object(y["renderList"])(t,(function(e){return Object(y["openBlock"])(),Object(y["createElementBlock"])("div",{class:"preset-theme-color",key:e,style:Object(y["normalizeStyle"])({backgroundColor:e})},null,4)})),128))],8,Nv)})),128))])]})),default:Object(y["withCtx"])((function(){return[Object(y["createVNode"])(r,{class:"no-padding",style:{flex:"2"}},{default:Object(y["withCtx"])((function(){return[Iv]})),_:1})]})),_:1},8,["visible"]),Object(y["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(y["withCtx"])((function(){return[Object(y["createVNode"])(h,{class:"btn-icon"}),Vv]})),_:1},8,["disabled"])]})),_:1}),Object(y["createVNode"])(i),Object(y["createVNode"])(j),Object(y["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(y["withCtx"])((function(){return[Object(y["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 Bv={class:"chart-data-editor"},Lv={class:"editor-content"},Tv={class:"range-box"},Mv=["id","onFocus","onPaste"],_v={class:"btns"},Dv={class:"left"},zv=Object(y["createTextVNode"])("清空"),Av={class:"right"},Rv=Object(y["createTextVNode"])("取消"),Fv=Object(y["createTextVNode"])("确认");function Pv(e,t,n,o,l,c){var a=Object(y["resolveComponent"])("Button");return Object(y["openBlock"])(),Object(y["createElementBlock"])("div",Bv,[Object(y["createElementVNode"])("div",Lv,[Object(y["createElementVNode"])("div",Tv,[Object(y["createElementVNode"])("div",{class:"temp-range",style:Object(y["normalizeStyle"])({width:e.tempRangeSize.width+"px",height:e.tempRangeSize.height+"px"})},null,4),(Object(y["openBlock"])(!0),Object(y["createElementBlock"])(y["Fragment"],null,Object(y["renderList"])(e.rangeLines,(function(e){return Object(y["openBlock"])(),Object(y["createElementBlock"])("div",{class:Object(y["normalizeClass"])(["range-line",e.type]),key:e.type,style:Object(y["normalizeStyle"])(e.style)},null,6)})),128)),Object(y["createElementVNode"])("div",{class:"resizable",style:Object(y["normalizeStyle"])(e.resizablePointStyle),onMousedown:t[0]||(t[0]=Object(y["withModifiers"])((function(t){return e.changeSelectRange(t)}),["stop"]))},null,36)]),Object(y["createElementVNode"])("table",null,[Object(y["createElementVNode"])("tbody",null,[(Object(y["openBlock"])(),Object(y["createElementBlock"])(y["Fragment"],null,Object(y["renderList"])(31,(function(t){return Object(y["createElementVNode"])("tr",{key:t},[(Object(y["openBlock"])(),Object(y["createElementBlock"])(y["Fragment"],null,Object(y["renderList"])(7,(function(n){return Object(y["createElementVNode"])("td",{key:n,class:Object(y["normalizeClass"])({head:1===n&&t<=e.selectedRange[1]||1===t&&n<=e.selectedRange[0]})},[Object(y["createElementVNode"])("input",{class:Object(y["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,Mv)],2)})),64))])})),64))])])]),Object(y["createElementVNode"])("div",_v,[Object(y["createElementVNode"])("div",Dv,[Object(y["createVNode"])(a,{class:"btn",onClick:t[1]||(t[1]=function(t){return e.clear()})},{default:Object(y["withCtx"])((function(){return[zv]})),_:1})]),Object(y["createElementVNode"])("div",Av,[Object(y["createVNode"])(a,{class:"btn",onClick:t[2]||(t[2]=function(t){return e.closeEditor()})},{default:Object(y["withCtx"])((function(){return[Rv]})),_:1}),Object(y["createVNode"])(a,{type:"primary",class:"btn",onClick:t[3]||(t[3]=function(t){return e.getTableData()}),style:{"margin-left":"10px"}},{default:Object(y["withCtx"])((function(){return[Fv]})),_:1})])])])}var Hv=100,qv=32,Gv=Object(y["defineComponent"])({name:"chart-data-editor",emits:["save","close"],props:{data:{type:Object,required:!0}},setup:function(e,t){var n=t.emit,o=Object(y["ref"])([0,0]),l=Object(y["ref"])({width:0,height:0}),c=Object(y["ref"])(null),a=Object(y["computed"])((function(){var e=o.value[0]*Hv,t=o.value[1]*qv;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(y["computed"])((function(){var e=o.value[0]*Hv,t=o.value[1]*qv;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(y["onMounted"])(i);var u=function(){if(c.value){var e=Object(ze["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===V.ENTER&&u()};Object(y["onMounted"])((function(){document.addEventListener("keydown",d)})),Object(y["onUnmounted"])((function(){document.removeEventListener("keydown",d)}));var s=function(){for(var e=Object(ze["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=_e(e);if("object"!==Object(Xe["a"])(o)){var l=De(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]*Hv,r=o.value[1]*qv;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%Hv>.5*Hv&&(i+=Hv-i%Hv),u%qv>.5*qv&&(u+=qv-u%qv);var d=Math.round(u/qv),s=Math.round(i/Hv);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 Uv=zn()(Gv,[["render",Pv],["__scopeId","data-v-9a62f784"]]);var Xv=Uv,Wv=[["#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"]],Yv=Object(y["defineComponent"])({name:"chart-style-panel",components:{ElementOutline:im,ChartDataEditor:Xv,ColorButton:cm},setup:function(){var e=te(),t=ee(),n=Object(g["c"])(e),o=n.handleElement,l=n.handleElementId,c=Object(g["c"])(t),a=c.theme,r=Object(y["ref"])(!1),i=Object(y["ref"])(!1),u=Ye(),d=u.addHistorySnapshot,s=Object(y["ref"])(),f=Object(y["ref"])([]),p=Object(y["ref"])(""),m=Object(y["ref"])(""),b=Object(y["ref"])(!0),v=Object(y["ref"])(!0),h=Object(y["ref"])(!1),O=Object(y["ref"])(!1),j=Object(y["ref"])(!1);Object(y["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&&(j.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})},E=function(e){var t=o.value,n=Object(L["a"])(Object(L["a"])({},t.options),e);x({options:n})},w=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)},S=function(e){x({gridColor:e})},B=function(e){x({legend:e})},T=function(){return r.value=!0};return oc.on(hl.OPEN_CHART_DATA_EDITOR,T),Object(y["onUnmounted"])((function(){oc.off(hl.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:j,updateOptions:E,themeColor:f,gridColor:p,legend:m,updateTheme:w,addThemeColor:N,deleteThemeColor:V,updateGridColor:S,updateLegend:B,presetChartThemes:Wv,applyPresetTheme:I}}});n("b5ae");const Zv=zn()(Yv,[["render",Sv],["__scopeId","data-v-ee2d8b14"]]);var Jv=Zv,Kv=function(e){return Object(y["pushScopeId"])("data-v-72e00692"),e=e(),Object(y["popScopeId"])(),e},Qv={class:"table-style-panel"},$v={class:"row"},eh=Kv((function(){return Object(y["createElementVNode"])("div",{style:{flex:"2"}},"行数:",-1)})),th={class:"set-count",style:{flex:"3"}},nh={class:"count-text"},oh={class:"row"},lh=Kv((function(){return Object(y["createElementVNode"])("div",{style:{flex:"2"}},"列数:",-1)})),ch={class:"set-count",style:{flex:"3"}},ah={class:"count-text"},rh={class:"row theme-switch"},ih=Kv((function(){return Object(y["createElementVNode"])("div",{style:{flex:"2"}},"启用主题表格:",-1)})),uh={class:"switch-wrapper",style:{flex:"3"}},dh={class:"row"},sh=Object(y["createTextVNode"])("标题行"),fh=Object(y["createTextVNode"])("汇总行"),ph={class:"row"},mh=Object(y["createTextVNode"])("第一列"),bh=Object(y["createTextVNode"])("最后一列"),vh={class:"row"},hh=Kv((function(){return Object(y["createElementVNode"])("div",{style:{flex:"2"}},"主题颜色:",-1)}));function Oh(e,t,n,o,l,c){var a=Object(y["resolveComponent"])("IconFontSize"),r=Object(y["resolveComponent"])("SelectOption"),i=Object(y["resolveComponent"])("SelectOptGroup"),u=Object(y["resolveComponent"])("Select"),d=Object(y["resolveComponent"])("IconAddText"),s=Object(y["resolveComponent"])("InputGroup"),f=Object(y["resolveComponent"])("ColorPicker"),p=Object(y["resolveComponent"])("IconText"),m=Object(y["resolveComponent"])("Button"),b=Object(y["resolveComponent"])("Tooltip"),v=Object(y["resolveComponent"])("Popover"),h=Object(y["resolveComponent"])("IconFill"),O=Object(y["resolveComponent"])("ButtonGroup"),j=Object(y["resolveComponent"])("IconTextBold"),g=Object(y["resolveComponent"])("CheckboxButton"),x=Object(y["resolveComponent"])("IconTextItalic"),C=Object(y["resolveComponent"])("IconTextUnderline"),k=Object(y["resolveComponent"])("IconStrikethrough"),E=Object(y["resolveComponent"])("CheckboxButtonGroup"),w=Object(y["resolveComponent"])("IconAlignTextLeft"),N=Object(y["resolveComponent"])("RadioButton"),I=Object(y["resolveComponent"])("IconAlignTextCenter"),V=Object(y["resolveComponent"])("IconAlignTextRight"),S=Object(y["resolveComponent"])("RadioGroup"),B=Object(y["resolveComponent"])("Divider"),L=Object(y["resolveComponent"])("ElementOutline"),T=Object(y["resolveComponent"])("IconMinus"),M=Object(y["resolveComponent"])("IconPlus"),_=Object(y["resolveComponent"])("Switch"),D=Object(y["resolveComponent"])("Checkbox"),z=Object(y["resolveComponent"])("ColorButton");return Object(y["openBlock"])(),Object(y["createElementBlock"])("div",Qv,[Object(y["createVNode"])(s,{compact:"",class:"row"},{default:Object(y["withCtx"])((function(){return[Object(y["createVNode"])(u,{style:{flex:"3"},value:e.textAttrs.fontname,onChange:t[0]||(t[0]=function(t){return e.updateTextAttrs({fontname:t})})},{suffixIcon:Object(y["withCtx"])((function(){return[Object(y["createVNode"])(a)]})),default:Object(y["withCtx"])((function(){return[Object(y["createVNode"])(i,{label:"系统字体"},{default:Object(y["withCtx"])((function(){return[(Object(y["openBlock"])(!0),Object(y["createElementBlock"])(y["Fragment"],null,Object(y["renderList"])(e.availableFonts,(function(e){return Object(y["openBlock"])(),Object(y["createBlock"])(r,{key:e.value,value:e.value},{default:Object(y["withCtx"])((function(){return[Object(y["createElementVNode"])("span",{style:Object(y["normalizeStyle"])({fontFamily:e.value})},Object(y["toDisplayString"])(e.label),5)]})),_:2},1032,["value"])})),128))]})),_:1}),Object(y["createVNode"])(i,{label:"在线字体"},{default:Object(y["withCtx"])((function(){return[(Object(y["openBlock"])(!0),Object(y["createElementBlock"])(y["Fragment"],null,Object(y["renderList"])(e.webFonts,(function(e){return Object(y["openBlock"])(),Object(y["createBlock"])(r,{key:e.value,value:e.value},{default:Object(y["withCtx"])((function(){return[Object(y["createElementVNode"])("span",null,Object(y["toDisplayString"])(e.label),1)]})),_:2},1032,["value"])})),128))]})),_:1})]})),_:1},8,["value"]),Object(y["createVNode"])(u,{style:{flex:"2"},value:e.textAttrs.fontsize,onChange:t[1]||(t[1]=function(t){return e.updateTextAttrs({fontsize:t})})},{suffixIcon:Object(y["withCtx"])((function(){return[Object(y["createVNode"])(d)]})),default:Object(y["withCtx"])((function(){return[(Object(y["openBlock"])(!0),Object(y["createElementBlock"])(y["Fragment"],null,Object(y["renderList"])(e.fontSizeOptions,(function(e){return Object(y["openBlock"])(),Object(y["createBlock"])(r,{key:e,value:e},{default:Object(y["withCtx"])((function(){return[Object(y["createTextVNode"])(Object(y["toDisplayString"])(e),1)]})),_:2},1032,["value"])})),128))]})),_:1},8,["value"])]})),_:1}),Object(y["createVNode"])(O,{class:"row"},{default:Object(y["withCtx"])((function(){return[Object(y["createVNode"])(v,{trigger:"click"},{content:Object(y["withCtx"])((function(){return[Object(y["createVNode"])(f,{modelValue:e.textAttrs.color,"onUpdate:modelValue":t[2]||(t[2]=function(t){return e.updateTextAttrs({color:t})})},null,8,["modelValue"])]})),default:Object(y["withCtx"])((function(){return[Object(y["createVNode"])(b,{mouseLeaveDelay:0,mouseEnterDelay:.5,title:"文字颜色"},{default:Object(y["withCtx"])((function(){return[Object(y["createVNode"])(m,{class:"text-color-btn",style:{flex:"1"}},{default:Object(y["withCtx"])((function(){return[Object(y["createVNode"])(p),Object(y["createElementVNode"])("div",{class:"text-color-block",style:Object(y["normalizeStyle"])({backgroundColor:e.textAttrs.color})},null,4)]})),_:1})]})),_:1},8,["mouseEnterDelay"])]})),_:1}),Object(y["createVNode"])(v,{trigger:"click"},{content:Object(y["withCtx"])((function(){return[Object(y["createVNode"])(f,{modelValue:e.textAttrs.backcolor,"onUpdate:modelValue":t[3]||(t[3]=function(t){return e.updateTextAttrs({backcolor:t})})},null,8,["modelValue"])]})),default:Object(y["withCtx"])((function(){return[Object(y["createVNode"])(b,{mouseLeaveDelay:0,mouseEnterDelay:.5,title:"单元格填充"},{default:Object(y["withCtx"])((function(){return[Object(y["createVNode"])(m,{class:"text-color-btn",style:{flex:"1"}},{default:Object(y["withCtx"])((function(){return[Object(y["createVNode"])(h),Object(y["createElementVNode"])("div",{class:"text-color-block",style:Object(y["normalizeStyle"])({backgroundColor:e.textAttrs.backcolor})},null,4)]})),_:1})]})),_:1},8,["mouseEnterDelay"])]})),_:1})]})),_:1}),Object(y["createVNode"])(E,{class:"row"},{default:Object(y["withCtx"])((function(){return[Object(y["createVNode"])(b,{mouseLeaveDelay:0,mouseEnterDelay:.5,title:"加粗"},{default:Object(y["withCtx"])((function(){return[Object(y["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(y["withCtx"])((function(){return[Object(y["createVNode"])(j)]})),_:1},8,["checked"])]})),_:1},8,["mouseEnterDelay"]),Object(y["createVNode"])(b,{mouseLeaveDelay:0,mouseEnterDelay:.5,title:"斜体"},{default:Object(y["withCtx"])((function(){return[Object(y["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(y["withCtx"])((function(){return[Object(y["createVNode"])(x)]})),_:1},8,["checked"])]})),_:1},8,["mouseEnterDelay"]),Object(y["createVNode"])(b,{mouseLeaveDelay:0,mouseEnterDelay:.5,title:"下划线"},{default:Object(y["withCtx"])((function(){return[Object(y["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(y["withCtx"])((function(){return[Object(y["createVNode"])(C)]})),_:1},8,["checked"])]})),_:1},8,["mouseEnterDelay"]),Object(y["createVNode"])(b,{mouseLeaveDelay:0,mouseEnterDelay:.5,title:"删除线"},{default:Object(y["withCtx"])((function(){return[Object(y["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(y["withCtx"])((function(){return[Object(y["createVNode"])(k)]})),_:1},8,["checked"])]})),_:1},8,["mouseEnterDelay"])]})),_:1}),Object(y["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(y["withCtx"])((function(){return[Object(y["createVNode"])(b,{mouseLeaveDelay:0,mouseEnterDelay:.5,title:"左对齐"},{default:Object(y["withCtx"])((function(){return[Object(y["createVNode"])(N,{value:"left",style:{flex:"1"}},{default:Object(y["withCtx"])((function(){return[Object(y["createVNode"])(w)]})),_:1})]})),_:1},8,["mouseEnterDelay"]),Object(y["createVNode"])(b,{mouseLeaveDelay:0,mouseEnterDelay:.5,title:"居中"},{default:Object(y["withCtx"])((function(){return[Object(y["createVNode"])(N,{value:"center",style:{flex:"1"}},{default:Object(y["withCtx"])((function(){return[Object(y["createVNode"])(I)]})),_:1})]})),_:1},8,["mouseEnterDelay"]),Object(y["createVNode"])(b,{mouseLeaveDelay:0,mouseEnterDelay:.5,title:"右对齐"},{default:Object(y["withCtx"])((function(){return[Object(y["createVNode"])(N,{value:"right",style:{flex:"1"}},{default:Object(y["withCtx"])((function(){return[Object(y["createVNode"])(V)]})),_:1})]})),_:1},8,["mouseEnterDelay"])]})),_:1},8,["value"]),Object(y["createVNode"])(B),Object(y["createVNode"])(L,{fixed:!0}),Object(y["createVNode"])(B),Object(y["createElementVNode"])("div",$v,[eh,Object(y["createElementVNode"])("div",th,[Object(y["createVNode"])(m,{class:"btn",disabled:e.rowCount<=1,onClick:t[9]||(t[9]=function(t){return e.setTableRow(e.rowCount-1)})},{default:Object(y["withCtx"])((function(){return[Object(y["createVNode"])(T)]})),_:1},8,["disabled"]),Object(y["createElementVNode"])("div",nh,Object(y["toDisplayString"])(e.rowCount),1),Object(y["createVNode"])(m,{class:"btn",disabled:e.rowCount>=30,onClick:t[10]||(t[10]=function(t){return e.setTableRow(e.rowCount+1)})},{default:Object(y["withCtx"])((function(){return[Object(y["createVNode"])(M)]})),_:1},8,["disabled"])])]),Object(y["createElementVNode"])("div",oh,[lh,Object(y["createElementVNode"])("div",ch,[Object(y["createVNode"])(m,{class:"btn",disabled:e.colCount<=1,onClick:t[11]||(t[11]=function(t){return e.setTableCol(e.colCount-1)})},{default:Object(y["withCtx"])((function(){return[Object(y["createVNode"])(T)]})),_:1},8,["disabled"]),Object(y["createElementVNode"])("div",ah,Object(y["toDisplayString"])(e.colCount),1),Object(y["createVNode"])(m,{class:"btn",disabled:e.colCount>=30,onClick:t[12]||(t[12]=function(t){return e.setTableCol(e.colCount+1)})},{default:Object(y["withCtx"])((function(){return[Object(y["createVNode"])(M)]})),_:1},8,["disabled"])])]),Object(y["createVNode"])(B),Object(y["createElementVNode"])("div",rh,[ih,Object(y["createElementVNode"])("div",uh,[Object(y["createVNode"])(_,{checked:e.hasTheme,onChange:t[13]||(t[13]=function(t){return e.toggleTheme(t)})},null,8,["checked"])])]),e.hasTheme?(Object(y["openBlock"])(),Object(y["createElementBlock"])(y["Fragment"],{key:0},[Object(y["createElementVNode"])("div",dh,[Object(y["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(y["withCtx"])((function(){return[sh]})),_:1},8,["checked"]),Object(y["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(y["withCtx"])((function(){return[fh]})),_:1},8,["checked"])]),Object(y["createElementVNode"])("div",ph,[Object(y["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(y["withCtx"])((function(){return[mh]})),_:1},8,["checked"]),Object(y["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(y["withCtx"])((function(){return[bh]})),_:1},8,["checked"])]),Object(y["createElementVNode"])("div",vh,[hh,Object(y["createVNode"])(v,{trigger:"click"},{content:Object(y["withCtx"])((function(){return[Object(y["createVNode"])(f,{modelValue:e.theme.color,"onUpdate:modelValue":t[18]||(t[18]=function(t){return e.updateTheme({color:t})})},null,8,["modelValue"])]})),default:Object(y["withCtx"])((function(){return[Object(y["createVNode"])(z,{color:e.theme.color,style:{flex:"3"}},null,8,["color"])]})),_:1})])],64)):Object(y["createCommentVNode"])("",!0)])}var jh=B,yh=Object(y["defineComponent"])({name:"table-style-panel",components:{ElementOutline:im,ColorButton:cm},setup:function(){var e=ee(),t=Object(g["c"])(te()),n=t.handleElement,o=t.handleElementId,l=t.selectedTableCells,c=t.availableFonts,a=Object(y["computed"])((function(){return e.theme.themeColor})),r=["12px","14px","16px","18px","20px","22px","24px","28px","32px"],i=Object(y["ref"])({bold:!1,em:!1,underline:!1,strikethrough:!1,color:"#000",backcolor:"#000",fontsize:"12px",fontname:"微软雅黑",align:"left"}),u=Object(y["ref"])(),d=Object(y["ref"])(!1),s=Object(y["ref"])(0),f=Object(y["ref"])(0),p=Object(y["ref"])(0),m=Object(y["ref"])(0);Object(y["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=Ye(),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(y["onMounted"])((function(){l.value.length&&h()})),Object(y["watch"])(l,h);var O=function(t){e.updateElement({id:o.value,props:t}),v()},j=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(L["a"])(Object(L["a"])({},r),e)}O({data:o}),h()},x=function(e){if(u.value){var t=Object(L["a"])(Object(L["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:me(),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})}},E=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:me(),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:j,theme:u,rowCount:s,colCount:f,minRowCount:p,minColCount:m,hasTheme:d,toggleTheme:C,updateTheme:x,setTableRow:k,setTableCol:E,webFonts:jh}}});n("eacc");const gh=zn()(yh,[["render",Oh],["__scopeId","data-v-72e00692"]]);var xh=gh,Ch=function(e){return Object(y["pushScopeId"])("data-v-69f903b1"),e=e(),Object(y["popScopeId"])(),e},kh={class:"latex-style-panel"},Eh={class:"row"},wh=Object(y["createTextVNode"])("编辑 LaTeX"),Nh={class:"row"},Ih=Ch((function(){return Object(y["createElementVNode"])("div",{style:{flex:"2"}},"颜色:",-1)})),Vh={class:"row"},Sh=Ch((function(){return Object(y["createElementVNode"])("div",{style:{flex:"2"}},"粗细:",-1)}));function Bh(e,t,n,o,l,c){var a=Object(y["resolveComponent"])("Button"),r=Object(y["resolveComponent"])("Divider"),i=Object(y["resolveComponent"])("ColorPicker"),u=Object(y["resolveComponent"])("ColorButton"),d=Object(y["resolveComponent"])("Popover"),s=Object(y["resolveComponent"])("InputNumber"),f=Object(y["resolveComponent"])("LaTeXEditor"),p=Object(y["resolveComponent"])("Modal");return Object(y["openBlock"])(),Object(y["createElementBlock"])("div",kh,[Object(y["createElementVNode"])("div",Eh,[Object(y["createVNode"])(a,{style:{flex:"1"},onClick:t[0]||(t[0]=function(t){return e.latexEditorVisible=!0})},{default:Object(y["withCtx"])((function(){return[wh]})),_:1})]),Object(y["createVNode"])(r),Object(y["createElementVNode"])("div",Nh,[Ih,Object(y["createVNode"])(d,{trigger:"click"},{content:Object(y["withCtx"])((function(){return[Object(y["createVNode"])(i,{modelValue:e.handleElement.color,"onUpdate:modelValue":t[1]||(t[1]=function(t){return e.updateLatex({color:t})})},null,8,["modelValue"])]})),default:Object(y["withCtx"])((function(){return[Object(y["createVNode"])(u,{color:e.handleElement.color,style:{flex:"3"}},null,8,["color"])]})),_:1})]),Object(y["createElementVNode"])("div",Vh,[Sh,Object(y["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(y["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(y["withCtx"])((function(){return[Object(y["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 Lh=Object(y["defineComponent"])({name:"latex-style-panel",components:{ColorButton:cm,LaTeXEditor:Jf},setup:function(){var e=ee(),t=Object(g["c"])(te()),n=t.handleElement,o=Object(y["ref"])(!1),l=Ye(),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 oc.on(hl.OPEN_LATEX_EDITOR,i),Object(y["onUnmounted"])((function(){oc.off(hl.OPEN_LATEX_EDITOR,i)})),{handleElement:n,latexEditorVisible:o,updateLatex:a,updateLatexData:r}}});n("e5a8");const Th=zn()(Lh,[["render",Bh],["__scopeId","data-v-69f903b1"]]);var Mh=Th,_h=function(e){return Object(y["pushScopeId"])("data-v-61bcaa2a"),e=e(),Object(y["popScopeId"])(),e},Dh={class:"video-style-panel"},zh=_h((function(){return Object(y["createElementVNode"])("div",{class:"title"},"视频预览封面",-1)})),Ah={class:"background-image-wrapper"},Rh={class:"background-image"},Fh={class:"row"},Ph=Object(y["createTextVNode"])("重置封面");function Hh(e,t,n,o,l,c){var a=Object(y["resolveComponent"])("IconPlus"),r=Object(y["resolveComponent"])("FileInput"),i=Object(y["resolveComponent"])("Button");return Object(y["openBlock"])(),Object(y["createElementBlock"])("div",Dh,[zh,Object(y["createElementVNode"])("div",Ah,[Object(y["createVNode"])(r,{onChange:t[0]||(t[0]=function(t){return e.setVideoPoster(t)})},{default:Object(y["withCtx"])((function(){return[Object(y["createElementVNode"])("div",Rh,[Object(y["createElementVNode"])("div",{class:"content",style:Object(y["normalizeStyle"])({backgroundImage:"url(".concat(e.handleElement.poster,")")})},[Object(y["createVNode"])(a)],4)])]})),_:1})]),Object(y["createElementVNode"])("div",Fh,[Object(y["createVNode"])(i,{style:{flex:"1"},onClick:t[1]||(t[1]=function(t){return e.updateVideo({poster:""})})},{default:Object(y["withCtx"])((function(){return[Ph]})),_:1})])])}var qh=Object(y["defineComponent"])({name:"video-style-panel",setup:function(){var e=ee(),t=Object(g["c"])(te()),n=t.handleElement,o=Ye(),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&&Je(t).then((function(e){return c({poster:e})}))};return{handleElement:n,updateVideo:c,setVideoPoster:a}}});n("c43a");const Gh=zn()(qh,[["render",Hh],["__scopeId","data-v-61bcaa2a"]]);var Uh=Gh,Xh=function(e){return Object(y["pushScopeId"])("data-v-80767a46"),e=e(),Object(y["popScopeId"])(),e},Wh={class:"audio-style-panel"},Yh={class:"row"},Zh=Xh((function(){return Object(y["createElementVNode"])("div",{style:{flex:"2"}},"图标颜色:",-1)})),Jh={class:"row switch-row"},Kh=Xh((function(){return Object(y["createElementVNode"])("div",{style:{flex:"2"}},"自动播放:",-1)})),Qh={class:"switch-wrapper",style:{flex:"3"}},$h={class:"row switch-row"},eO=Xh((function(){return Object(y["createElementVNode"])("div",{style:{flex:"2"}},"循环播放:",-1)})),tO={class:"switch-wrapper",style:{flex:"3"}};function nO(e,t,n,o,l,c){var a=Object(y["resolveComponent"])("ColorPicker"),r=Object(y["resolveComponent"])("ColorButton"),i=Object(y["resolveComponent"])("Popover"),u=Object(y["resolveComponent"])("Switch");return Object(y["openBlock"])(),Object(y["createElementBlock"])("div",Wh,[Object(y["createElementVNode"])("div",Yh,[Zh,Object(y["createVNode"])(i,{trigger:"click"},{content:Object(y["withCtx"])((function(){return[Object(y["createVNode"])(a,{modelValue:e.handleElement.color,"onUpdate:modelValue":t[0]||(t[0]=function(t){return e.updateAudio({color:t})})},null,8,["modelValue"])]})),default:Object(y["withCtx"])((function(){return[Object(y["createVNode"])(r,{color:e.handleElement.color,style:{flex:"3"}},null,8,["color"])]})),_:1})]),Object(y["createElementVNode"])("div",Jh,[Kh,Object(y["createElementVNode"])("div",Qh,[Object(y["createVNode"])(u,{checked:e.handleElement.autoplay,onChange:t[1]||(t[1]=function(t){return e.updateAudio({autoplay:t})})},null,8,["checked"])])]),Object(y["createElementVNode"])("div",$h,[eO,Object(y["createElementVNode"])("div",tO,[Object(y["createVNode"])(u,{checked:e.handleElement.loop,onChange:t[2]||(t[2]=function(t){return e.updateAudio({loop:t})})},null,8,["checked"])])])])}var oO=Object(y["defineComponent"])({name:"audio-style-panel",components:{ColorButton:cm},setup:function(){var e=ee(),t=Object(g["c"])(te()),n=t.handleElement,o=Ye(),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 lO=zn()(oO,[["render",nO],["__scopeId","data-v-80767a46"]]);var cO=lO,aO=Object(y["defineComponent"])({name:"element-style-panel",setup:function(){var e=Object(g["c"])(te()),t=e.handleElement,n=Object(y["computed"])((function(){var e;if(!t.value)return null;var n=(e={},Object(re["a"])(e,xe.TEXT,Sm),Object(re["a"])(e,xe.IMAGE,fb),Object(re["a"])(e,xe.SHAPE,Bb),Object(re["a"])(e,xe.LINE,tv),Object(re["a"])(e,xe.CHART,Jv),Object(re["a"])(e,xe.TABLE,xh),Object(re["a"])(e,xe.LATEX,Mh),Object(re["a"])(e,xe.VIDEO,Uh),Object(re["a"])(e,xe.AUDIO,cO),e);return n[t.value.type]||null}));return{handleElement:t,currentPanelComponent:n}}});const rO=zn()(aO,[["render",kp]]);var iO=rO,uO=function(e){return Object(y["pushScopeId"])("data-v-3476ee65"),e=e(),Object(y["popScopeId"])(),e},dO={class:"element-positopn-panel"},sO=uO((function(){return Object(y["createElementVNode"])("div",{class:"title"},"层级:",-1)})),fO=Object(y["createTextVNode"])(" 置于顶层"),pO=Object(y["createTextVNode"])(" 置于底层"),mO=Object(y["createTextVNode"])(" 上移一层"),bO=Object(y["createTextVNode"])(" 下移一层"),vO=uO((function(){return Object(y["createElementVNode"])("div",{class:"title"},"对齐:",-1)})),hO={class:"row"},OO=uO((function(){return Object(y["createElementVNode"])("div",{style:{flex:"3"}},"位置:",-1)})),jO=uO((function(){return Object(y["createElementVNode"])("div",{style:{flex:"1"}},null,-1)})),yO=Object(y["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),gO={class:"row"},xO=uO((function(){return Object(y["createElementVNode"])("div",{style:{flex:"3"}},"大小:",-1)})),CO={key:1,style:{flex:"1"}},kO=Object(y["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),EO={class:"row"},wO=uO((function(){return Object(y["createElementVNode"])("div",{style:{flex:"3"}},"旋转:",-1)})),NO=uO((function(){return Object(y["createElementVNode"])("div",{style:{flex:"1"}},null,-1)}));function IO(e,t,n,o,l,c){var a=Object(y["resolveComponent"])("IconSendToBack"),r=Object(y["resolveComponent"])("Button"),i=Object(y["resolveComponent"])("IconBringToFrontOne"),u=Object(y["resolveComponent"])("ButtonGroup"),d=Object(y["resolveComponent"])("IconBringToFront"),s=Object(y["resolveComponent"])("IconSentToBack"),f=Object(y["resolveComponent"])("Divider"),p=Object(y["resolveComponent"])("IconAlignLeft"),m=Object(y["resolveComponent"])("Tooltip"),b=Object(y["resolveComponent"])("IconAlignVertically"),v=Object(y["resolveComponent"])("IconAlignRight"),h=Object(y["resolveComponent"])("IconAlignTop"),O=Object(y["resolveComponent"])("IconAlignHorizontally"),j=Object(y["resolveComponent"])("IconAlignBottom"),g=Object(y["resolveComponent"])("InputNumber"),x=Object(y["resolveComponent"])("IconLock"),C=Object(y["resolveComponent"])("IconUnlock"),k=Object(y["resolveComponent"])("IconRotate");return Object(y["openBlock"])(),Object(y["createElementBlock"])("div",dO,[sO,Object(y["createVNode"])(u,{class:"row"},{default:Object(y["withCtx"])((function(){return[Object(y["createVNode"])(r,{style:{flex:"1"},onClick:t[0]||(t[0]=function(t){return e.orderElement(e.handleElement,"top")})},{default:Object(y["withCtx"])((function(){return[Object(y["createVNode"])(a,{class:"btn-icon"}),fO]})),_:1}),Object(y["createVNode"])(r,{style:{flex:"1"},onClick:t[1]||(t[1]=function(t){return e.orderElement(e.handleElement,"bottom")})},{default:Object(y["withCtx"])((function(){return[Object(y["createVNode"])(i,{class:"btn-icon"}),pO]})),_:1})]})),_:1}),Object(y["createVNode"])(u,{class:"row"},{default:Object(y["withCtx"])((function(){return[Object(y["createVNode"])(r,{style:{flex:"1"},onClick:t[2]||(t[2]=function(t){return e.orderElement(e.handleElement,"up")})},{default:Object(y["withCtx"])((function(){return[Object(y["createVNode"])(d,{class:"btn-icon"}),mO]})),_:1}),Object(y["createVNode"])(r,{style:{flex:"1"},onClick:t[3]||(t[3]=function(t){return e.orderElement(e.handleElement,"down")})},{default:Object(y["withCtx"])((function(){return[Object(y["createVNode"])(s,{class:"btn-icon"}),bO]})),_:1})]})),_:1}),Object(y["createVNode"])(f),vO,Object(y["createVNode"])(u,{class:"row"},{default:Object(y["withCtx"])((function(){return[Object(y["createVNode"])(m,{mouseLeaveDelay:0,mouseEnterDelay:.5,title:"左对齐"},{default:Object(y["withCtx"])((function(){return[Object(y["createVNode"])(r,{style:{flex:"1"},onClick:t[4]||(t[4]=function(t){return e.alignElementToCanvas("left")})},{default:Object(y["withCtx"])((function(){return[Object(y["createVNode"])(p)]})),_:1})]})),_:1},8,["mouseEnterDelay"]),Object(y["createVNode"])(m,{mouseLeaveDelay:0,mouseEnterDelay:.5,title:"水平居中"},{default:Object(y["withCtx"])((function(){return[Object(y["createVNode"])(r,{style:{flex:"1"},onClick:t[5]||(t[5]=function(t){return e.alignElementToCanvas("horizontal")})},{default:Object(y["withCtx"])((function(){return[Object(y["createVNode"])(b)]})),_:1})]})),_:1},8,["mouseEnterDelay"]),Object(y["createVNode"])(m,{mouseLeaveDelay:0,mouseEnterDelay:.5,title:"右对齐"},{default:Object(y["withCtx"])((function(){return[Object(y["createVNode"])(r,{style:{flex:"1"},onClick:t[6]||(t[6]=function(t){return e.alignElementToCanvas("right")})},{default:Object(y["withCtx"])((function(){return[Object(y["createVNode"])(v)]})),_:1})]})),_:1},8,["mouseEnterDelay"])]})),_:1}),Object(y["createVNode"])(u,{class:"row"},{default:Object(y["withCtx"])((function(){return[Object(y["createVNode"])(m,{mouseLeaveDelay:0,mouseEnterDelay:.5,title:"上对齐"},{default:Object(y["withCtx"])((function(){return[Object(y["createVNode"])(r,{style:{flex:"1"},onClick:t[7]||(t[7]=function(t){return e.alignElementToCanvas("top")})},{default:Object(y["withCtx"])((function(){return[Object(y["createVNode"])(h)]})),_:1})]})),_:1},8,["mouseEnterDelay"]),Object(y["createVNode"])(m,{mouseLeaveDelay:0,mouseEnterDelay:.5,title:"垂直居中"},{default:Object(y["withCtx"])((function(){return[Object(y["createVNode"])(r,{style:{flex:"1"},onClick:t[8]||(t[8]=function(t){return e.alignElementToCanvas("vertical")})},{default:Object(y["withCtx"])((function(){return[Object(y["createVNode"])(O)]})),_:1})]})),_:1},8,["mouseEnterDelay"]),Object(y["createVNode"])(m,{mouseLeaveDelay:0,mouseEnterDelay:.5,title:"下对齐"},{default:Object(y["withCtx"])((function(){return[Object(y["createVNode"])(r,{style:{flex:"1"},onClick:t[9]||(t[9]=function(t){return e.alignElementToCanvas("bottom")})},{default:Object(y["withCtx"])((function(){return[Object(y["createVNode"])(j)]})),_:1})]})),_:1},8,["mouseEnterDelay"])]})),_:1}),Object(y["createVNode"])(f),Object(y["createElementVNode"])("div",hO,[OO,Object(y["createVNode"])(g,{step:5,value:e.left,onChange:t[10]||(t[10]=function(t){return e.updateLeft(t)}),style:{flex:"4"}},null,8,["value"]),jO,Object(y["createVNode"])(g,{step:5,value:e.top,onChange:t[11]||(t[11]=function(t){return e.updateTop(t)}),style:{flex:"4"}},null,8,["value"])]),yO,"line"!==e.handleElement.type?(Object(y["openBlock"])(),Object(y["createElementBlock"])(y["Fragment"],{key:0},[Object(y["createElementVNode"])("div",gO,[xO,Object(y["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(y["openBlock"])(),Object(y["createElementBlock"])(y["Fragment"],{key:0},[e.fixedRatio?(Object(y["openBlock"])(),Object(y["createBlock"])(m,{key:0,mouseLeaveDelay:0,mouseEnterDelay:.5,title:"解除宽高比锁定"},{default:Object(y["withCtx"])((function(){return[Object(y["createVNode"])(x,{style:{flex:"1"},class:"icon-btn",onClick:t[13]||(t[13]=function(t){return e.updateFixedRatio(!1)})})]})),_:1},8,["mouseEnterDelay"])):(Object(y["openBlock"])(),Object(y["createBlock"])(m,{key:1,mouseLeaveDelay:0,mouseEnterDelay:.5,title:"宽高比锁定"},{default:Object(y["withCtx"])((function(){return[Object(y["createVNode"])(C,{style:{flex:"1"},class:"icon-btn",onClick:t[14]||(t[14]=function(t){return e.updateFixedRatio(!0)})})]})),_:1},8,["mouseEnterDelay"]))],64)):(Object(y["openBlock"])(),Object(y["createElementBlock"])("div",CO)),Object(y["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"])]),kO],64)):Object(y["createCommentVNode"])("",!0),["line","video","audio"].includes(e.handleElement.type)?Object(y["createCommentVNode"])("",!0):(Object(y["openBlock"])(),Object(y["createElementBlock"])(y["Fragment"],{key:1},[Object(y["createVNode"])(f),Object(y["createElementVNode"])("div",EO,[wO,Object(y["createVNode"])(m,{mouseLeaveDelay:0,mouseEnterDelay:.5,title:"逆时针旋转"},{default:Object(y["withCtx"])((function(){return[Object(y["createVNode"])(k,{class:"icon-btn",onClick:t[16]||(t[16]=function(t){return e.updateRotate45("-")}),style:{flex:"2"}})]})),_:1},8,["mouseEnterDelay"]),Object(y["createVNode"])(m,{mouseLeaveDelay:0,mouseEnterDelay:.5,title:"顺时针旋转"},{default:Object(y["withCtx"])((function(){return[Object(y["createVNode"])(k,{class:"icon-btn",onClick:t[17]||(t[17]=function(t){return e.updateRotate45("+")}),style:Object(y["normalizeStyle"])({flex:2,transform:"rotateY(180deg)"})},null,8,["style"])]})),_:1},8,["mouseEnterDelay"]),NO,Object(y["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 VO=Object(y["defineComponent"])({name:"element-positopn-panel",setup:function(){var e=ee(),t=Object(g["c"])(te()),n=t.handleElement,o=t.handleElementId,l=Object(y["ref"])(0),c=Object(y["ref"])(0),a=Object(y["ref"])(0),r=Object(y["ref"])(0),i=Object(y["ref"])(0),u=Object(y["ref"])(!1),d=Object(y["computed"])((function(){return n.value&&Qn[n.value.type]||20}));Object(y["watch"])(n,(function(){n.value&&(l.value=Object(J["round"])(n.value.left,1),c.value=Object(J["round"])(n.value.top,1),u.value="fixedRatio"in n.value&&!!n.value.fixedRatio,"line"!==n.value.type&&(a.value=Object(J["round"])(n.value.width,1),r.value=Object(J["round"])(n.value.height,1),i.value="rotate"in n.value&&void 0!==n.value.rotate?Object(J["round"])(n.value.rotate,1):0))}),{deep:!0,immediate:!0});var s=ut(),f=s.orderElement,p=io(),m=p.alignElementToCanvas,b=Ye(),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()},j=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()},E=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:j,updateHeight:x,updateRotate:C,updateFixedRatio:k,updateRotate45:E}}});n("f10d");const SO=zn()(VO,[["render",IO],["__scopeId","data-v-3476ee65"]]);var BO=SO,LO=function(e){return Object(y["pushScopeId"])("data-v-696c81e2"),e=e(),Object(y["popScopeId"])(),e},TO={class:"element-animation-panel"},MO={key:0,class:"element-animation"},_O={class:"animation-pool"},DO={class:"type-title"},zO={class:"pool-item-wrapper"},AO=["onMouseenter","onClick"],RO={key:0,class:"mask"},FO=Object(y["createTextVNode"])(" 该元素暂不支持动画 "),PO={key:1,class:"tip"},HO=Object(y["createTextVNode"])(" 选中画布中的元素添加动画"),qO={class:"index"},GO={class:"text"},UO={class:"handler"},XO={key:2,class:"configs"},WO={class:"duration"},YO=LO((function(){return Object(y["createElementVNode"])("div",{style:{flex:"4"}},"持续时间(毫秒):",-1)}));function ZO(e,t,n,o,l,c){var a=Object(y["resolveComponent"])("IconEffects"),r=Object(y["resolveComponent"])("Button"),i=Object(y["resolveComponent"])("Popover"),u=Object(y["resolveComponent"])("IconClick"),d=Object(y["resolveComponent"])("Divider"),s=Object(y["resolveComponent"])("IconPlayOne"),f=Object(y["resolveComponent"])("Tooltip"),p=Object(y["resolveComponent"])("IconCloseSmall"),m=Object(y["resolveComponent"])("Draggable"),b=Object(y["resolveComponent"])("InputNumber");return Object(y["openBlock"])(),Object(y["createElementBlock"])("div",TO,[e.handleElement?(Object(y["openBlock"])(),Object(y["createElementBlock"])("div",MO,[["chart","video"].includes(e.handleElement.type)?(Object(y["openBlock"])(),Object(y["createBlock"])(r,{key:1,class:"element-animation-btn",disabled:""},{default:Object(y["withCtx"])((function(){return[Object(y["createVNode"])(a,{style:{"margin-right":"5px"}}),FO]})),_:1})):(Object(y["openBlock"])(),Object(y["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(y["withCtx"])((function(){return[Object(y["createElementVNode"])("div",_O,[(Object(y["openBlock"])(!0),Object(y["createElementBlock"])(y["Fragment"],null,Object(y["renderList"])(e.animations,(function(n){return Object(y["openBlock"])(),Object(y["createElementBlock"])("div",{class:"pool-type",key:n.name},[Object(y["createElementVNode"])("div",DO,Object(y["toDisplayString"])(n.name)+"",1),Object(y["createElementVNode"])("div",zO,[(Object(y["openBlock"])(!0),Object(y["createElementBlock"])(y["Fragment"],null,Object(y["renderList"])(n.children,(function(n){return Object(y["openBlock"])(),Object(y["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(y["createElementVNode"])("div",{class:Object(y["normalizeClass"])(["animation-box",["animate__animated","animate__faster",e.hoverPreviewAnimation===n.value&&"animate__".concat(n.value)]])},Object(y["toDisplayString"])(n.name),3)],40,AO)})),128))])])})),128)),e.popoverMaskHide?Object(y["createCommentVNode"])("",!0):(Object(y["openBlock"])(),Object(y["createElementBlock"])("div",RO))])]})),default:Object(y["withCtx"])((function(){return[Object(y["createVNode"])(r,{class:"element-animation-btn"},{default:Object(y["withCtx"])((function(){return[Object(y["createVNode"])(a,{style:{"margin-right":"5px"}}),Object(y["createTextVNode"])(" "+Object(y["toDisplayString"])(e.handleElementAnimationName||"点击选择动画"),1)]})),_:1})]})),_:1},8,["visible"]))])):(Object(y["openBlock"])(),Object(y["createElementBlock"])("div",PO,[Object(y["createVNode"])(u,{style:{"margin-right":"5px"}}),HO])),Object(y["createVNode"])(d),Object(y["createVNode"])(m,{class:"animation-sequence",modelValue:e.animationSequence,animation:300,scroll:!0,scrollSensitivity:50,onEnd:e.handleDragEnd,itemKey:"id"},{item:Object(y["withCtx"])((function(t){var n,o=t.element,l=t.index;return[Object(y["createElementVNode"])("div",{class:Object(y["normalizeClass"])(["sequence-item",{active:(null===(n=e.handleElement)||void 0===n?void 0:n.id)===o.elId}])},[Object(y["createElementVNode"])("div",qO,Object(y["toDisplayString"])(l+1),1),Object(y["createElementVNode"])("div",GO,"【"+Object(y["toDisplayString"])(o.elType)+"】"+Object(y["toDisplayString"])(o.animationType),1),Object(y["createElementVNode"])("div",UO,[Object(y["createVNode"])(f,{mouseLeaveDelay:0,mouseEnterDelay:.5,title:"预览"},{default:Object(y["withCtx"])((function(){return[Object(y["createVNode"])(s,{class:"handler-btn",onClick:function(t){return e.runAnimation(o.elId,o.type,o.duration)}},null,8,["onClick"])]})),_:2},1032,["mouseEnterDelay"]),Object(y["createVNode"])(f,{mouseLeaveDelay:0,mouseEnterDelay:.5,title:"删除"},{default:Object(y["withCtx"])((function(){return[Object(y["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(y["openBlock"])(),Object(y["createElementBlock"])("div",XO,[Object(y["createVNode"])(d),Object(y["createElementVNode"])("div",WO,[YO,Object(y["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(y["createCommentVNode"])("",!0)])}var JO,KO=[{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"}]}],QO=1e3,$O={},ej=Object(T["a"])(KO);try{for(ej.s();!(JO=ej.n()).done;){var tj,nj=JO.value,oj=Object(T["a"])(nj.children);try{for(oj.s();!(tj=oj.n()).done;){var lj=tj.value;$O[lj.value]=lj.name}}catch(_E){oj.e(_E)}finally{oj.f()}}}catch(_E){ej.e(_E)}finally{ej.f()}var cj=Object(y["defineComponent"])({name:"element-animation-panel",components:{Draggable:rp.a},setup:function(){var e=ee(),t=Object(g["c"])(te()),n=t.handleElement,o=t.handleElementId,l=Object(g["c"])(e),c=l.currentSlide,a=l.currentSlideAnimations,r=Object(y["ref"])(""),i=Object(y["ref"])(!1),u=Ye(),d=u.addHistorySnapshot,s=KO,f=Object(y["computed"])((function(){if(!a.value)return[];var e,t=[],n=Object(T["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=Kn[o.type],a=$O[n.type];t.push(Object(L["a"])(Object(L["a"])({},n),{},{elType:l,animationType:a}))};for(n.s();!(e=n.n()).done;)o()}catch(_E){n.e(_E)}finally{n.f()}return t})),p=Object(y["computed"])((function(){var e=a.value||[],t=e.find((function(e){return e.elId===o.value}));return t||null})),m=Object(y["computed"])((function(){return p.value?$O[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(L["a"])(Object(L["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)||QO;h(o.value,t,c)}},j=function(t){if(a.value&&!(t<100||t>5e3)){var n=a.value.map((function(e){return e.elId===o.value?Object(L["a"])(Object(L["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:QO}),e.updateSlide({animations:n}),i.value=!1,d(),h(o.value,t,QO)}},C=Object(y["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:j,handlePopoverVisibleChange:k}}});n("c390");const aj=zn()(cj,[["render",ZO],["__scopeId","data-v-696c81e2"]]);var rj=aj,ij=function(e){return Object(y["pushScopeId"])("data-v-0e2f846d"),e=e(),Object(y["popScopeId"])(),e},uj={class:"slide-design-panel"},dj=ij((function(){return Object(y["createElementVNode"])("div",{class:"title"},"背景填充",-1)})),sj={class:"row"},fj=Object(y["createTextVNode"])("纯色填充"),pj=Object(y["createTextVNode"])("图片填充"),mj=Object(y["createTextVNode"])("渐变填充"),bj=ij((function(){return Object(y["createElementVNode"])("div",{style:{flex:"1"}},null,-1)})),vj=Object(y["createTextVNode"])("缩放"),hj=Object(y["createTextVNode"])("拼贴"),Oj=Object(y["createTextVNode"])("缩放铺满"),jj=Object(y["createTextVNode"])("线性渐变"),yj=Object(y["createTextVNode"])("径向渐变"),gj={key:0,class:"background-image-wrapper"},xj={class:"background-image"},Cj={key:1,class:"background-gradient-wrapper"},kj={class:"row"},Ej=ij((function(){return Object(y["createElementVNode"])("div",{style:{flex:"2"}},"起点颜色:",-1)})),wj={class:"row"},Nj=ij((function(){return Object(y["createElementVNode"])("div",{style:{flex:"2"}},"终点颜色:",-1)})),Ij={key:0,class:"row"},Vj=ij((function(){return Object(y["createElementVNode"])("div",{style:{flex:"2"}},"渐变角度:",-1)})),Sj={class:"row"},Bj=Object(y["createTextVNode"])("应用背景到全部"),Lj={class:"row"},Tj=ij((function(){return Object(y["createElementVNode"])("div",{style:{flex:"2"}},"画布尺寸:",-1)})),Mj=Object(y["createTextVNode"])("宽屏 16 : 9"),_j=Object(y["createTextVNode"])("宽屏 16 10"),Dj=Object(y["createTextVNode"])("标准 4 3"),zj=ij((function(){return Object(y["createElementVNode"])("div",{class:"title"},"全局主题",-1)})),Aj={class:"row"},Rj=ij((function(){return Object(y["createElementVNode"])("div",{style:{flex:"2"}},"字体:",-1)})),Fj={class:"row"},Pj=ij((function(){return Object(y["createElementVNode"])("div",{style:{flex:"2"}},"字体颜色:",-1)})),Hj={class:"row"},qj=ij((function(){return Object(y["createElementVNode"])("div",{style:{flex:"2"}},"背景颜色:",-1)})),Gj={class:"row"},Uj=ij((function(){return Object(y["createElementVNode"])("div",{style:{flex:"2"}},"主题色:",-1)})),Xj=Object(y["createTextVNode"])(" 预置主题 "),Wj={key:2,class:"theme-list"},Yj=["onClick"],Zj={class:"theme-item-content"},Jj={class:"row"},Kj=Object(y["createTextVNode"])("应用主题到全部");function Qj(e,t,n,o,l,c){var a=Object(y["resolveComponent"])("SelectOption"),r=Object(y["resolveComponent"])("Select"),i=Object(y["resolveComponent"])("ColorPicker"),u=Object(y["resolveComponent"])("ColorButton"),d=Object(y["resolveComponent"])("Popover"),s=Object(y["resolveComponent"])("IconPlus"),f=Object(y["resolveComponent"])("FileInput"),p=Object(y["resolveComponent"])("Slider"),m=Object(y["resolveComponent"])("Button"),b=Object(y["resolveComponent"])("Divider"),v=Object(y["resolveComponent"])("SelectOptGroup"),h=Object(y["resolveComponent"])("IconDown");return Object(y["openBlock"])(),Object(y["createElementBlock"])("div",uj,[dj,Object(y["createElementVNode"])("div",sj,[Object(y["createVNode"])(r,{style:{flex:"10"},value:e.background.type,onChange:t[0]||(t[0]=function(t){return e.updateBackgroundType(t)})},{default:Object(y["withCtx"])((function(){return[Object(y["createVNode"])(a,{value:"solid"},{default:Object(y["withCtx"])((function(){return[fj]})),_:1}),Object(y["createVNode"])(a,{value:"image"},{default:Object(y["withCtx"])((function(){return[pj]})),_:1}),Object(y["createVNode"])(a,{value:"gradient"},{default:Object(y["withCtx"])((function(){return[mj]})),_:1})]})),_:1},8,["value"]),bj,"solid"===e.background.type?(Object(y["openBlock"])(),Object(y["createBlock"])(d,{key:0,trigger:"click"},{content:Object(y["withCtx"])((function(){return[Object(y["createVNode"])(i,{modelValue:e.background.color,"onUpdate:modelValue":t[1]||(t[1]=function(t){return e.updateBackground({color:t})})},null,8,["modelValue"])]})),default:Object(y["withCtx"])((function(){return[Object(y["createVNode"])(u,{color:e.background.color||"#fff",style:{flex:"10"}},null,8,["color"])]})),_:1})):"image"===e.background.type?(Object(y["openBlock"])(),Object(y["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(y["withCtx"])((function(){return[Object(y["createVNode"])(a,{value:"contain"},{default:Object(y["withCtx"])((function(){return[vj]})),_:1}),Object(y["createVNode"])(a,{value:"repeat"},{default:Object(y["withCtx"])((function(){return[hj]})),_:1}),Object(y["createVNode"])(a,{value:"cover"},{default:Object(y["withCtx"])((function(){return[Oj]})),_:1})]})),_:1},8,["value"])):(Object(y["openBlock"])(),Object(y["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(y["withCtx"])((function(){return[Object(y["createVNode"])(a,{value:"linear"},{default:Object(y["withCtx"])((function(){return[jj]})),_:1}),Object(y["createVNode"])(a,{value:"radial"},{default:Object(y["withCtx"])((function(){return[yj]})),_:1})]})),_:1},8,["value"]))]),"image"===e.background.type?(Object(y["openBlock"])(),Object(y["createElementBlock"])("div",gj,[Object(y["createVNode"])(f,{onChange:t[4]||(t[4]=function(t){return e.uploadBackgroundImage(t)})},{default:Object(y["withCtx"])((function(){return[Object(y["createElementVNode"])("div",xj,[Object(y["createElementVNode"])("div",{class:"content",style:Object(y["normalizeStyle"])({backgroundImage:"url(".concat(e.background.image,")")})},[Object(y["createVNode"])(s)],4)])]})),_:1})])):Object(y["createCommentVNode"])("",!0),"gradient"===e.background.type?(Object(y["openBlock"])(),Object(y["createElementBlock"])("div",Cj,[Object(y["createElementVNode"])("div",kj,[Ej,Object(y["createVNode"])(d,{trigger:"click"},{content:Object(y["withCtx"])((function(){return[Object(y["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(y["withCtx"])((function(){return[Object(y["createVNode"])(u,{color:e.background.gradientColor[0],style:{flex:"3"}},null,8,["color"])]})),_:1})]),Object(y["createElementVNode"])("div",wj,[Nj,Object(y["createVNode"])(d,{trigger:"click"},{content:Object(y["withCtx"])((function(){return[Object(y["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(y["withCtx"])((function(){return[Object(y["createVNode"])(u,{color:e.background.gradientColor[1],style:{flex:"3"}},null,8,["color"])]})),_:1})]),"linear"===e.background.gradientType?(Object(y["openBlock"])(),Object(y["createElementBlock"])("div",Ij,[Vj,Object(y["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(y["createCommentVNode"])("",!0)])):Object(y["createCommentVNode"])("",!0),Object(y["createElementVNode"])("div",Sj,[Object(y["createVNode"])(m,{style:{flex:"1"},onClick:t[8]||(t[8]=function(t){return e.applyBackgroundAllSlide()})},{default:Object(y["withCtx"])((function(){return[Bj]})),_:1})]),Object(y["createVNode"])(b),Object(y["createElementVNode"])("div",Lj,[Tj,Object(y["createVNode"])(r,{style:{flex:"3"},value:e.viewportRatio,onChange:t[9]||(t[9]=function(t){return e.updateViewportRatio(t)})},{default:Object(y["withCtx"])((function(){return[Object(y["createVNode"])(a,{value:.5625},{default:Object(y["withCtx"])((function(){return[Mj]})),_:1},8,["value"]),Object(y["createVNode"])(a,{value:.625},{default:Object(y["withCtx"])((function(){return[_j]})),_:1},8,["value"]),Object(y["createVNode"])(a,{value:.75},{default:Object(y["withCtx"])((function(){return[Dj]})),_:1},8,["value"])]})),_:1},8,["value"])]),Object(y["createVNode"])(b),zj,Object(y["createElementVNode"])("div",Aj,[Rj,Object(y["createVNode"])(r,{style:{flex:"3"},value:e.theme.fontName,onChange:t[10]||(t[10]=function(t){return e.updateTheme({fontName:t})})},{default:Object(y["withCtx"])((function(){return[Object(y["createVNode"])(v,{label:"系统字体"},{default:Object(y["withCtx"])((function(){return[(Object(y["openBlock"])(!0),Object(y["createElementBlock"])(y["Fragment"],null,Object(y["renderList"])(e.availableFonts,(function(e){return Object(y["openBlock"])(),Object(y["createBlock"])(a,{key:e.value,value:e.value},{default:Object(y["withCtx"])((function(){return[Object(y["createElementVNode"])("span",{style:Object(y["normalizeStyle"])({fontFamily:e.value})},Object(y["toDisplayString"])(e.label),5)]})),_:2},1032,["value"])})),128))]})),_:1}),Object(y["createVNode"])(v,{label:"在线字体"},{default:Object(y["withCtx"])((function(){return[(Object(y["openBlock"])(!0),Object(y["createElementBlock"])(y["Fragment"],null,Object(y["renderList"])(e.webFonts,(function(e){return Object(y["openBlock"])(),Object(y["createBlock"])(a,{key:e.value,value:e.value},{default:Object(y["withCtx"])((function(){return[Object(y["createElementVNode"])("span",null,Object(y["toDisplayString"])(e.label),1)]})),_:2},1032,["value"])})),128))]})),_:1})]})),_:1},8,["value"])]),Object(y["createElementVNode"])("div",Fj,[Pj,Object(y["createVNode"])(d,{trigger:"click"},{content:Object(y["withCtx"])((function(){return[Object(y["createVNode"])(i,{modelValue:e.theme.fontColor,"onUpdate:modelValue":t[11]||(t[11]=function(t){return e.updateTheme({fontColor:t})})},null,8,["modelValue"])]})),default:Object(y["withCtx"])((function(){return[Object(y["createVNode"])(u,{color:e.theme.fontColor,style:{flex:"3"}},null,8,["color"])]})),_:1})]),Object(y["createElementVNode"])("div",Hj,[qj,Object(y["createVNode"])(d,{trigger:"click"},{content:Object(y["withCtx"])((function(){return[Object(y["createVNode"])(i,{modelValue:e.theme.backgroundColor,"onUpdate:modelValue":t[12]||(t[12]=function(t){return e.updateTheme({backgroundColor:t})})},null,8,["modelValue"])]})),default:Object(y["withCtx"])((function(){return[Object(y["createVNode"])(u,{color:e.theme.backgroundColor,style:{flex:"3"}},null,8,["color"])]})),_:1})]),Object(y["createElementVNode"])("div",Gj,[Uj,Object(y["createVNode"])(d,{trigger:"click"},{content:Object(y["withCtx"])((function(){return[Object(y["createVNode"])(i,{modelValue:e.theme.themeColor,"onUpdate:modelValue":t[13]||(t[13]=function(t){return e.updateTheme({themeColor:t})})},null,8,["modelValue"])]})),default:Object(y["withCtx"])((function(){return[Object(y["createVNode"])(u,{color:e.theme.themeColor,style:{flex:"3"}},null,8,["color"])]})),_:1})]),Object(y["createElementVNode"])("div",{class:Object(y["normalizeClass"])(["title dropdown",{active:e.showPresetThemes}]),onClick:t[14]||(t[14]=function(t){return e.togglePresetThemesVisible()}),style:{"margin-top":"20px"}},[Xj,Object(y["createVNode"])(h,{class:"icon"})],2),e.showPresetThemes?(Object(y["openBlock"])(),Object(y["createElementBlock"])("div",Wj,[(Object(y["openBlock"])(!0),Object(y["createElementBlock"])(y["Fragment"],null,Object(y["renderList"])(e.themes,(function(t,n){return Object(y["openBlock"])(),Object(y["createElementBlock"])("div",{class:"theme-item",key:n,style:Object(y["normalizeStyle"])({backgroundColor:t.background}),onClick:function(n){return e.updateTheme({fontColor:t.text,backgroundColor:t.background,themeColor:t.color})}},[Object(y["createElementVNode"])("div",Zj,[Object(y["createElementVNode"])("div",{class:"text",style:Object(y["normalizeStyle"])({color:t.text})},"Aa",4),Object(y["createElementVNode"])("div",{class:"color-block",style:Object(y["normalizeStyle"])({backgroundColor:t.color})},null,4)])],12,Yj)})),128))])):Object(y["createCommentVNode"])("",!0),Object(y["createElementVNode"])("div",Jj,[Object(y["createVNode"])(m,{style:{flex:"1"},onClick:t[15]||(t[15]=function(t){return e.applyThemeAllSlide()})},{default:Object(y["withCtx"])((function(){return[Kj]})),_:1})])])}var $j=[{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"}],ey=$j,ty=B,ny=Object(y["defineComponent"])({name:"slide-design-panel",components:{ColorButton:cm},setup:function(){var e=ee(),t=Object(g["c"])(te()),n=t.availableFonts,o=Object(g["c"])(e),l=o.slides,c=o.currentSlide,a=o.viewportRatio,r=o.theme,i=Object(y["computed"])((function(){return c.value.background?c.value.background:{type:"solid",value:"#fff"}})),u=Ye(),d=u.addHistorySnapshot,s=function(t){if("solid"===t){var n=Object(L["a"])(Object(L["a"])({},i.value),{},{type:"solid",color:i.value.color||"#fff"});e.updateSlide({background:n})}else if("image"===t){var o=Object(L["a"])(Object(L["a"])({},i.value),{},{type:"image",image:i.value.image||"",imageSize:i.value.imageSize||"cover"});e.updateSlide({background:o})}else{var l=Object(L["a"])(Object(L["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(L["a"])(Object(L["a"])({},i.value),t)}),d()},p=function(e){var t=e[0];t&&Je(t).then((function(e){return f({image:e})}))},m=function(){var t=l.value.map((function(e){return Object(L["a"])(Object(L["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(T["a"])(n);try{for(s.s();!(t=s.n()).done;){var f=t.value;f.background&&"image"===f.background.type||(f.background=Object(L["a"])(Object(L["a"])({},f.background),{},{type:"solid",color:a}));var p,m=f.elements,b=Object(T["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(T["a"])(v.data);try{for(O.s();!(h=O.n()).done;){var j,y=h.value,g=Object(T["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(_E){g.e(_E)}finally{g.f()}}}catch(_E){O.e(_E)}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(_E){b.e(_E)}finally{b.f()}}}catch(_E){s.e(_E)}finally{s.f()}e.setSlides(n),d()},h=Object(y["ref"])(!0),O=function(){h.value=!h.value},j=function(t){e.setViewportRatio(t)};return{availableFonts:n,background:i,updateBackgroundType:s,updateBackground:f,uploadBackgroundImage:p,applyBackgroundAllSlide:m,themes:ey,theme:r,webFonts:ty,updateTheme:b,applyThemeAllSlide:v,viewportRatio:a,updateViewportRatio:j,showPresetThemes:h,togglePresetThemesVisible:O}}});n("eb2c");const oy=zn()(ny,[["render",Qj],["__scopeId","data-v-0e2f846d"]]);var ly=oy,cy={class:"slide-animation-panel"},ay={class:"animation-pool"},ry=["onClick"],iy={class:"animation-text"},uy=Object(y["createTextVNode"])("应用到全部");function dy(e,t,n,o,l,c){var a=Object(y["resolveComponent"])("Button");return Object(y["openBlock"])(),Object(y["createElementBlock"])("div",cy,[Object(y["createElementVNode"])("div",ay,[(Object(y["openBlock"])(!0),Object(y["createElementBlock"])(y["Fragment"],null,Object(y["renderList"])(e.animations,(function(t){return Object(y["openBlock"])(),Object(y["createElementBlock"])("div",{class:Object(y["normalizeClass"])(["animation-item",{active:e.currentTurningMode===t.value}]),key:t.label,onClick:function(n){return e.updateTurningMode(t.value)}},[Object(y["createElementVNode"])("div",{class:Object(y["normalizeClass"])(["animation-block",t.value])},null,2),Object(y["createElementVNode"])("div",iy,Object(y["toDisplayString"])(t.label),1)],10,ry)})),128))]),Object(y["createVNode"])(a,{style:{width:"100%"},onClick:t[0]||(t[0]=function(t){return e.applyAllSlide()})},{default:Object(y["withCtx"])((function(){return[uy]})),_:1})])}var sy=Object(y["defineComponent"])({name:"slide-animation-panel",setup:function(){var e=ee(),t=Object(g["c"])(e),n=t.slides,o=t.currentSlide,l=Object(y["computed"])((function(){return o.value.turningMode||"slideY"})),c=[{label:"无",value:"no"},{label:"淡入淡出",value:"fade"},{label:"左右推移",value:"slideX"},{label:"上下推移",value:"slideY"}],a=Ye(),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(L["a"])(Object(L["a"])({},e),{},{turningMode:o.value.turningMode})}));e.setSlides(t),r()};return{currentTurningMode:l,animations:c,updateTurningMode:i,applyAllSlide:u}}});n("6e42");const fy=zn()(sy,[["render",dy],["__scopeId","data-v-251ceb05"]]);var py=fy,my={class:"multi-position-panel"},by=Object(y["createTextVNode"])("水平均匀分布"),vy=Object(y["createTextVNode"])("垂直均匀分布"),hy=Object(y["createTextVNode"])("组合"),Oy=Object(y["createTextVNode"])("取消组合");function jy(e,t,n,o,l,c){var a=Object(y["resolveComponent"])("IconAlignLeft"),r=Object(y["resolveComponent"])("Button"),i=Object(y["resolveComponent"])("Tooltip"),u=Object(y["resolveComponent"])("IconAlignHorizontally"),d=Object(y["resolveComponent"])("IconAlignRight"),s=Object(y["resolveComponent"])("ButtonGroup"),f=Object(y["resolveComponent"])("IconAlignTop"),p=Object(y["resolveComponent"])("IconAlignVertically"),m=Object(y["resolveComponent"])("IconAlignBottom"),b=Object(y["resolveComponent"])("Divider"),v=Object(y["resolveComponent"])("IconGroup"),h=Object(y["resolveComponent"])("IconUngroup");return Object(y["openBlock"])(),Object(y["createElementBlock"])("div",my,[Object(y["createVNode"])(s,{class:"row"},{default:Object(y["withCtx"])((function(){return[Object(y["createVNode"])(i,{mouseLeaveDelay:0,mouseEnterDelay:.5,title:"左对齐"},{default:Object(y["withCtx"])((function(){return[Object(y["createVNode"])(r,{style:{flex:"1"},onClick:t[0]||(t[0]=function(t){return e.alignElement("left")})},{default:Object(y["withCtx"])((function(){return[Object(y["createVNode"])(a)]})),_:1})]})),_:1},8,["mouseEnterDelay"]),Object(y["createVNode"])(i,{mouseLeaveDelay:0,mouseEnterDelay:.5,title:"水平居中"},{default:Object(y["withCtx"])((function(){return[Object(y["createVNode"])(r,{style:{flex:"1"},onClick:t[1]||(t[1]=function(t){return e.alignElement("horizontal")})},{default:Object(y["withCtx"])((function(){return[Object(y["createVNode"])(u)]})),_:1})]})),_:1},8,["mouseEnterDelay"]),Object(y["createVNode"])(i,{mouseLeaveDelay:0,mouseEnterDelay:.5,title:"右对齐"},{default:Object(y["withCtx"])((function(){return[Object(y["createVNode"])(r,{style:{flex:"1"},onClick:t[2]||(t[2]=function(t){return e.alignElement("right")})},{default:Object(y["withCtx"])((function(){return[Object(y["createVNode"])(d)]})),_:1})]})),_:1},8,["mouseEnterDelay"])]})),_:1}),Object(y["createVNode"])(s,{class:"row"},{default:Object(y["withCtx"])((function(){return[Object(y["createVNode"])(i,{mouseLeaveDelay:0,mouseEnterDelay:.5,title:"上对齐"},{default:Object(y["withCtx"])((function(){return[Object(y["createVNode"])(r,{style:{flex:"1"},onClick:t[3]||(t[3]=function(t){return e.alignElement("top")})},{default:Object(y["withCtx"])((function(){return[Object(y["createVNode"])(f)]})),_:1})]})),_:1},8,["mouseEnterDelay"]),Object(y["createVNode"])(i,{mouseLeaveDelay:0,mouseEnterDelay:.5,title:"垂直居中"},{default:Object(y["withCtx"])((function(){return[Object(y["createVNode"])(r,{style:{flex:"1"},onClick:t[4]||(t[4]=function(t){return e.alignElement("vertical")})},{default:Object(y["withCtx"])((function(){return[Object(y["createVNode"])(p)]})),_:1})]})),_:1},8,["mouseEnterDelay"]),Object(y["createVNode"])(i,{mouseLeaveDelay:0,mouseEnterDelay:.5,title:"下对齐"},{default:Object(y["withCtx"])((function(){return[Object(y["createVNode"])(r,{style:{flex:"1"},onClick:t[5]||(t[5]=function(t){return e.alignElement("bottom")})},{default:Object(y["withCtx"])((function(){return[Object(y["createVNode"])(m)]})),_:1})]})),_:1},8,["mouseEnterDelay"])]})),_:1}),e.displayItemCount>2?(Object(y["openBlock"])(),Object(y["createBlock"])(s,{key:0,class:"row"},{default:Object(y["withCtx"])((function(){return[Object(y["createVNode"])(r,{style:{flex:"1"},onClick:t[6]||(t[6]=function(t){return e.uniformHorizontalDisplay()})},{default:Object(y["withCtx"])((function(){return[by]})),_:1}),Object(y["createVNode"])(r,{style:{flex:"1"},onClick:t[7]||(t[7]=function(t){return e.uniformVerticalDisplay()})},{default:Object(y["withCtx"])((function(){return[vy]})),_:1})]})),_:1})):Object(y["createCommentVNode"])("",!0),Object(y["createVNode"])(b),Object(y["createVNode"])(s,{class:"row"},{default:Object(y["withCtx"])((function(){return[Object(y["createVNode"])(r,{disabled:!e.canCombine,onClick:t[8]||(t[8]=function(t){return e.combineElements()}),style:{flex:"1"}},{default:Object(y["withCtx"])((function(){return[Object(y["createVNode"])(v,{style:{"margin-right":"3px"}}),hy]})),_:1},8,["disabled"]),Object(y["createVNode"])(r,{disabled:e.canCombine,onClick:t[9]||(t[9]=function(t){return e.uncombineElements()}),style:{flex:"1"}},{default:Object(y["withCtx"])((function(){return[Object(y["createVNode"])(h,{style:{"margin-right":"3px"}}),Oy]})),_:1},8,["disabled"])]})),_:1})])}var yy=function(){var e=ee(),t=Object(g["c"])(te()),n=t.activeElementIdList,o=t.activeElementList,l=Object(g["c"])(e),c=l.currentSlide,a=Ye(),r=a.addHistorySnapshot,i=function(t){var l,a=Pe(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(T["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]=Pe(t)}};for(m.s();!(l=m.n()).done;)b()}catch(_E){m.e(_E)}finally{m.f()}if(t===E.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=Re({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===E.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=Re({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===E.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=Re({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===E.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=Re({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===E.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===E.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}},gy=(n("4e82"),function(){var e=ee(),t=Object(g["c"])(te()),n=t.activeElementIdList,o=t.activeElementList,l=Object(g["c"])(e),c=l.currentSlide,a=Ye(),r=a.addHistorySnapshot,i=Object(y["computed"])((function(){var e,t=0,n=[],l=Object(T["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(_E){l.e(_E)}finally{l.f()}return t})),u=function(){var t,l=Pe(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(T["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(L["a"])(Object(L["a"])({},t),{},{els:[].concat(Object(W["a"])(t.els),[e])}):t})):f.push({groupId:e.groupId,els:[e]})}else{var o=Fe(e),l=o.minX,c=o.maxX;s.push({min:l,max:c,el:e})}};for(p.s();!(t=p.n()).done;)m()}catch(_E){p.e(_E)}finally{p.f()}var b,v=[],h=Object(T["a"])(f);try{for(h.s();!(b=h.n()).done;){var O=b.value,j=Pe(O.els),y=j.minX,g=j.maxX;v.push({min:y,max:g,els:O.els})}}catch(_E){h.e(_E)}finally{h.f()}var x=[].concat(s,v);x.sort((function(e,t){return e.min-t.min}));var C,k=0,E=Object(T["a"])(x);try{for(E.s();!(C=E.n()).done;){var w=C.value,N=w.max-w.min;k+=N}}catch(_E){E.e(_E)}finally{E.f()}var I=(i-a-k)/(x.length-1),V=[],S=x[0],B={min:S.min,max:S.max};if("el"in S)V.push({pos:S.min,el:S.el});else{var M,_=Object(T["a"])(S.els);try{for(_.s();!(M=_.n()).done;){var D=M.value,z=Fe(D),A=z.minX;V.push({pos:A,el:D})}}catch(_E){_.e(_E)}finally{_.f()}}for(var R=1;R<x.length;R++){var F=x[R],P=B.max-B.min,H=B.min+P+I,q=F.max-F.min;if(B={min:H,max:H+q},"el"in F)V.push({pos:H,el:F.el});else{var G,U=Object(T["a"])(F.els);try{for(U.s();!(G=U.n()).done;){var X=G.value,Y=Fe(X),Z=Y.minX,J=Z-F.min;V.push({pos:H+J,el:X})}}catch(_E){U.e(_E)}finally{U.f()}}}var K,Q=Object(T["a"])(d);try{for(Q.s();!(K=Q.n()).done;){var $=K.value;if(n.value.includes($.id)){var ee,te=Object(T["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=Re({left:$.left,top:$.top,width:$.width,height:$.height,rotate:$.rotate}),le=oe.offsetX;$.left=ne.pos-le}else $.left=ne.pos}}catch(_E){te.e(_E)}finally{te.f()}}}}catch(_E){Q.e(_E)}finally{Q.f()}e.updateSlide({elements:d}),r()},d=function(){var t,l=Pe(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(T["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(L["a"])(Object(L["a"])({},t),{},{els:[].concat(Object(W["a"])(t.els),[e])}):t})):f.push({groupId:e.groupId,els:[e]})}else{var o=Fe(e),l=o.minY,c=o.maxY;s.push({min:l,max:c,el:e})}};for(p.s();!(t=p.n()).done;)m()}catch(_E){p.e(_E)}finally{p.f()}var b,v=[],h=Object(T["a"])(f);try{for(h.s();!(b=h.n()).done;){var O=b.value,j=Pe(O.els),y=j.minY,g=j.maxY;v.push({min:y,max:g,els:O.els})}}catch(_E){h.e(_E)}finally{h.f()}var x=[].concat(s,v);x.sort((function(e,t){return e.min-t.min}));var C,k=0,E=Object(T["a"])(x);try{for(E.s();!(C=E.n()).done;){var w=C.value,N=w.max-w.min;k+=N}}catch(_E){E.e(_E)}finally{E.f()}var I=(i-a-k)/(x.length-1),V=[],S=x[0],B={min:S.min,max:S.max};if("el"in S)V.push({pos:S.min,el:S.el});else{var M,_=Object(T["a"])(S.els);try{for(_.s();!(M=_.n()).done;){var D=M.value,z=Fe(D),A=z.minY;V.push({pos:A,el:D})}}catch(_E){_.e(_E)}finally{_.f()}}for(var R=1;R<x.length;R++){var F=x[R],P=B.max-B.min,H=B.min+P+I,q=F.max-F.min;if(B={min:H,max:H+q},"el"in F)V.push({pos:H,el:F.el});else{var G,U=Object(T["a"])(F.els);try{for(U.s();!(G=U.n()).done;){var X=G.value,Y=Fe(X),Z=Y.minY,J=Z-F.min;V.push({pos:H+J,el:X})}}catch(_E){U.e(_E)}finally{U.f()}}}var K,Q=Object(T["a"])(d);try{for(Q.s();!(K=Q.n()).done;){var $=K.value;if(n.value.includes($.id)){var ee,te=Object(T["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=Re({left:$.left,top:$.top,width:$.width,height:$.height,rotate:$.rotate}),le=oe.offsetY;$.top=ne.pos-le}else $.top=ne.pos}}catch(_E){te.e(_E)}finally{te.f()}}}}catch(_E){Q.e(_E)}finally{Q.f()}e.updateSlide({elements:d}),r()};return{displayItemCount:i,uniformHorizontalDisplay:u,uniformVerticalDisplay:d}}),xy=Object(y["defineComponent"])({name:"multi-position-panel",setup:function(){var e=ct(),t=e.canCombine,n=e.combineElements,o=e.uncombineElements,l=yy(),c=l.alignActiveElement,a=io(),r=a.alignElementToCanvas,i=gy(),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("cb7c");const Cy=zn()(xy,[["render",jy],["__scopeId","data-v-2e982d59"]]);var ky=Cy,Ey={class:"symbol-panel"},wy={class:"tabs"},Ny=["onClick"],Iy={class:"pool"},Vy=["onClick"],Sy={class:"symbol"};function By(e,t,n,o,l,c){return Object(y["openBlock"])(),Object(y["createElementBlock"])("div",Ey,[Object(y["createElementVNode"])("div",wy,[(Object(y["openBlock"])(!0),Object(y["createElementBlock"])(y["Fragment"],null,Object(y["renderList"])(e.symbolPoolList,(function(t){return Object(y["openBlock"])(),Object(y["createElementBlock"])("div",{class:Object(y["normalizeClass"])(["tab",{active:e.selectedSymbolKey===t.key}]),key:t.key,onClick:function(n){return e.selectedSymbolKey=t.key}},Object(y["toDisplayString"])(t.label),11,Ny)})),128))]),Object(y["createElementVNode"])("div",Iy,[(Object(y["openBlock"])(!0),Object(y["createElementBlock"])(y["Fragment"],null,Object(y["renderList"])(e.symbolPool,(function(t,n){return Object(y["openBlock"])(),Object(y["createElementBlock"])("div",{class:"symbol-item",key:n,onClick:function(n){return e.selectSymbol(t)}},[Object(y["createElementVNode"])("div",Sy,Object(y["toDisplayString"])(t),1)],8,Vy)})),128))])])}var Ly=[{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:["▢","▣","▤","▥","▦","▧","▨","▩","▭","▮","▯","▰","▱","▲","▷","▼","◁","◈","◉","◍","◐","◑","◒","◓","◔","◕","◧","◨","◩","◪","◫","◬","◭","◮"]}],Ty=Ly,My=Object(y["defineComponent"])({name:"symbol-panel",setup:function(){var e=Object(y["ref"])(Ty[0].key),t=Object(y["computed"])((function(){var t=Ty.find((function(t){return t.key===e.value}));return(null===t||void 0===t?void 0:t.children)||[]})),n=function(e){oc.emit(hl.RICH_TEXT_COMMAND,{command:"insert",value:e})};return{symbolPoolList:Ty,symbolPool:t,selectedSymbolKey:e,selectSymbol:n}}});n("56b6");const _y=zn()(My,[["render",By],["__scopeId","data-v-6b8c5938"]]);var Dy=_y,zy=Object(y["defineComponent"])({name:"toolbar",setup:function(){var e=te(),t=Object(g["c"])(e),n=t.activeElementIdList,o=t.handleElement,l=t.toolbarState,c=Object(y["computed"])((function(){var e;return"text"===(null===(e=o.value)||void 0===e?void 0:e.type)?[{label:"样式",value:C.EL_STYLE},{label:"符号",value:C.SYMBOL},{label:"位置",value:C.EL_POSITION},{label:"动画",value:C.EL_ANIMATION}]:[{label:"样式",value:C.EL_STYLE},{label:"位置",value:C.EL_POSITION},{label:"动画",value:C.EL_ANIMATION}]})),a=[{label:"设计",value:C.SLIDE_DESIGN},{label:"切换",value:C.SLIDE_ANIMATION},{label:"动画",value:C.EL_ANIMATION}],r=[{label:"位置",value:C.MULTI_POSITION},{label:"样式",value:C.EL_STYLE}],i=function(t){e.setToolbarState(t)},u=Object(y["computed"])((function(){return n.value.length?n.value.length>1?r:c.value:a}));Object(y["watch"])(u,(function(){var t=u.value.map((function(e){return e.value}));t.includes(l.value)||e.setToolbarState(t[0])}));var d=Object(y["computed"])((function(){var e,t=(e={},Object(re["a"])(e,C.EL_STYLE,iO),Object(re["a"])(e,C.EL_POSITION,BO),Object(re["a"])(e,C.EL_ANIMATION,rj),Object(re["a"])(e,C.SLIDE_DESIGN,ly),Object(re["a"])(e,C.SLIDE_ANIMATION,py),Object(re["a"])(e,C.MULTI_POSITION,ky),Object(re["a"])(e,C.SYMBOL,Dy),e);return t[l.value]||null}));return{toolbarState:l,currentTabs:u,setToolbarState:i,currentPanelComponent:d}}});n("3b1d");const Ay=zn()(zy,[["render",gp],["__scopeId","data-v-84601b0a"]]);var Ry=Ay,Fy={class:"remark"},Py=["value"];function Hy(e,t,n,o,l,c){return Object(y["openBlock"])(),Object(y["createElementBlock"])("div",Fy,[Object(y["createElementVNode"])("div",{class:"resize-handler",onMousedown:t[0]||(t[0]=function(t){return e.resize(t)})},null,32),Object(y["createElementVNode"])("textarea",{value:e.remark,placeholder:"点击输入演讲者备注",onInput:t[1]||(t[1]=function(t){return e.handleInput(t)})},null,40,Py)])}var qy=Object(y["defineComponent"])({name:"remark",emits:["update:height"],props:{height:{type:Number,required:!0}},setup:function(e,t){var n=t.emit,o=ee(),l=Object(g["c"])(o),c=l.currentSlide,a=Object(y["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("b45c");const Gy=zn()(qy,[["render",Hy],["__scopeId","data-v-33d67f34"]]);var Uy=Gy,Xy=Object(y["defineComponent"])({name:"editor",components:{EditorHeader:Hn,Canvas:Kd,CanvasTool:$f,Thumbnails:vp,Toolbar:Ry,Remark:Uy},setup:function(){var e=Object(y["ref"])(40);return bt(),vt(),{remarkHeight:e}}});n("1fec");const Wy=zn()(Xy,[["render",ye],["__scopeId","data-v-55178b6a"]]);var Yy=Wy,Zy={class:"pptist-screen"},Jy={class:"tools"};function Ky(e,t,n,o,l,c){var a=Object(y["resolveComponent"])("ScreenSlide"),r=Object(y["resolveComponent"])("SlideThumbnails"),i=Object(y["resolveComponent"])("WritingBoardTool"),u=Object(y["resolveComponent"])("IconLeftTwo"),d=Object(y["resolveComponent"])("IconRightTwo"),s=Object(y["resolveComponent"])("IconWrite"),f=Object(y["resolveDirective"])("contextmenu");return Object(y["openBlock"])(),Object(y["createElementBlock"])("div",Zy,[Object(y["withDirectives"])((Object(y["openBlock"])(),Object(y["createElementBlock"])("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(y["openBlock"])(!0),Object(y["createElementBlock"])(y["Fragment"],null,Object(y["renderList"])(e.slides,(function(t,n){return Object(y["openBlock"])(),Object(y["createElementBlock"])("div",{class:Object(y["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(y["openBlock"])(),Object(y["createElementBlock"])("div",{key:0,class:"slide-content",style:Object(y["normalizeStyle"])({width:e.slideWidth+"px",height:e.slideHeight+"px"})},[Object(y["createVNode"])(a,{slide:t,scale:e.scale,animationIndex:e.animationIndex,turnSlideToId:e.turnSlideToId},null,8,["slide","scale","animationIndex","turnSlideToId"])],4)):Object(y["createCommentVNode"])("",!0)],2)})),128))],32)),[[f,e.contextmenus]]),e.slideThumbnailModelVisible?(Object(y["openBlock"])(),Object(y["createBlock"])(r,{key:0,turnSlideToIndex:e.turnSlideToIndex,onClose:t[3]||(t[3]=function(t){return e.slideThumbnailModelVisible=!1})},null,8,["turnSlideToIndex"])):Object(y["createCommentVNode"])("",!0),e.writingBoardToolVisible?(Object(y["openBlock"])(),Object(y["createBlock"])(i,{key:1,onClose:t[4]||(t[4]=function(t){return e.writingBoardToolVisible=!1})})):Object(y["createCommentVNode"])("",!0),Object(y["createElementVNode"])("div",Jy,[Object(y["createVNode"])(u,{class:"tool-btn",theme:"two-tone",fill:["#111","#fff"],onClick:t[5]||(t[5]=function(t){return e.execPrev()})}),Object(y["createVNode"])(d,{class:"tool-btn",theme:"two-tone",fill:["#111","#fff"],onClick:t[6]||(t[6]=function(t){return e.execNext()})}),Object(y["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(y["openBlock"])(),Object(y["createElementBlock"])("div",{key:2,class:"page-number",onClick:t[8]||(t[8]=function(t){return e.slideThumbnailModelVisible=!0})},Object(y["toDisplayString"])(e.slideIndex+1)+" / "+Object(y["toDisplayString"])(e.slides.length),1)):Object(y["createCommentVNode"])("",!0)])}function Qy(e,t,n,o,l,c){var a=Object(y["resolveComponent"])("ScreenElement");return Object(y["openBlock"])(),Object(y["createElementBlock"])("div",{class:"screen-slide",style:Object(y["normalizeStyle"])({width:e.VIEWPORT_SIZE+"px",height:e.VIEWPORT_SIZE*e.viewportRatio+"px",transform:"scale(".concat(e.scale,")")})},[Object(y["createElementVNode"])("div",{class:"background",style:Object(y["normalizeStyle"])(Object(L["a"])({},e.backgroundStyle))},null,4),(Object(y["openBlock"])(!0),Object(y["createElementBlock"])(y["Fragment"],null,Object(y["renderList"])(e.slide.elements,(function(t,n){return Object(y["openBlock"])(),Object(y["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 $y=["id","title"];function eg(e,t,n,o,l,c){var a;return Object(y["openBlock"])(),Object(y["createElementBlock"])("div",{class:Object(y["normalizeClass"])(["screen-element",{link:e.elementInfo.link}]),id:"screen-element-".concat(e.elementInfo.id),style:Object(y["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(y["openBlock"])(),Object(y["createBlock"])(Object(y["resolveDynamicComponent"])(e.currentElementComponent),{elementInfo:e.elementInfo},null,8,["elementInfo"]))],14,$y)}function tg(e,t,n,o,l,c){var a=Object(y["resolveComponent"])("BaseChartElement");return Object(y["openBlock"])(),Object(y["createBlock"])(a,{class:"screen-element-chart",elementInfo:e.elementInfo,needScaleSize:!1},null,8,["elementInfo"])}var ng=Object(y["defineComponent"])({name:"screen-element-chart",components:{BaseChartElement:dd},props:{elementInfo:{type:Object,required:!0}}});const og=zn()(ng,[["render",tg]]);var lg=og,cg={class:"element-content"};function ag(e,t,n,o,l,c){var a=Object(y["resolveComponent"])("VideoPlayer");return Object(y["openBlock"])(),Object(y["createElementBlock"])("div",{class:"screen-element-video",style:Object(y["normalizeStyle"])({top:e.elementInfo.top+"px",left:e.elementInfo.left+"px",width:e.elementInfo.width+"px",height:e.elementInfo.height+"px"})},[Object(y["createElementVNode"])("div",{class:"rotate-wrapper",style:Object(y["normalizeStyle"])({transform:"rotate(".concat(e.elementInfo.rotate,"deg)")})},[Object(y["createElementVNode"])("div",cg,[e.inCurrentSlide?(Object(y["openBlock"])(),Object(y["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(y["createCommentVNode"])("",!0)])],4)],4)}var rg=Object(y["defineComponent"])({name:"screen-element-video",components:{VideoPlayer:fr},props:{elementInfo:{type:Object,required:!0}},setup:function(){var e=Object(g["c"])(ee()),t=e.currentSlide,n=Object(y["inject"])("slideScale")||Object(y["ref"])(1),o=Object(y["inject"])("slideId")||Object(y["ref"])(""),l=Object(y["computed"])((function(){return t.value.id===o.value}));return{scale:n,inCurrentSlide:l}}});n("7893");const ig=zn()(rg,[["render",ag],["__scopeId","data-v-a45a17a4"]]);var ug=ig,dg={class:"element-content"};function sg(e,t,n,o,l,c){var a=Object(y["resolveComponent"])("IconVolumeNotice"),r=Object(y["resolveComponent"])("AudioPlayer");return Object(y["openBlock"])(),Object(y["createElementBlock"])("div",{class:"screen-element-audio",style:Object(y["normalizeStyle"])({top:e.elementInfo.top+"px",left:e.elementInfo.left+"px",width:e.elementInfo.width+"px",height:e.elementInfo.height+"px"})},[Object(y["createElementVNode"])("div",{class:"rotate-wrapper",style:Object(y["normalizeStyle"])({transform:"rotate(".concat(e.elementInfo.rotate,"deg)")})},[Object(y["createElementVNode"])("div",dg,[Object(y["createVNode"])(a,{class:"audio-icon",style:Object(y["normalizeStyle"])({fontSize:e.audioIconSize,color:e.elementInfo.color}),onClick:t[0]||(t[0]=function(t){return e.toggle()})},null,8,["style"]),e.inCurrentSlide?(Object(y["openBlock"])(),Object(y["createBlock"])(r,{key:0,class:"audio-player",ref:"audioPlayerRef",style:Object(y["normalizeStyle"])(Object(L["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(y["createCommentVNode"])("",!0)])],4)],4)}var fg=Object(y["defineComponent"])({name:"screen-element-audio",components:{AudioPlayer:Rr},props:{elementInfo:{type:Object,required:!0}},setup:function(e){var t=Object(g["c"])(ee()),n=t.viewportRatio,o=t.currentSlide,l=Object(y["inject"])("slideScale")||Object(y["ref"])(1),c=Object(y["inject"])("slideId")||Object(y["ref"])(""),a=Object(y["computed"])((function(){return o.value.id===c.value})),r=Object(y["computed"])((function(){return Math.min(e.elementInfo.width,e.elementInfo.height)+"px"})),i=Object(y["computed"])((function(){var t=Ke,o=Ke*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(y["ref"])(),d=function(){u.value&&u.value.toggle()};return{scale:l,inCurrentSlide:a,audioIconSize:r,audioPlayerPosition:i,audioPlayerRef:u,toggle:d}}});n("eed2");const pg=zn()(fg,[["render",sg],["__scopeId","data-v-b08df80e"]]);var mg=pg,bg=Object(y["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(y["computed"])((function(){var t,n=(t={},Object(re["a"])(t,xe.IMAGE,Fu),Object(re["a"])(t,xe.TEXT,Uu),Object(re["a"])(t,xe.SHAPE,ed),Object(re["a"])(t,xe.LINE,ad),Object(re["a"])(t,xe.CHART,lg),Object(re["a"])(t,xe.TABLE,xd),Object(re["a"])(t,xe.LATEX,Sd),Object(re["a"])(t,xe.VIDEO,ug),Object(re["a"])(t,xe.AUDIO,mg),t);return n[e.elementInfo.type]||null})),n=Object(g["c"])(ee()),o=n.currentSlide,l=n.theme,c=Object(y["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 vg=zn()(bg,[["render",eg],["__scopeId","data-v-3b227002"]]);var hg=vg,Og=Object(y["defineComponent"])({name:"screen-slide",components:{ScreenElement:hg},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(g["c"])(ee()),n=t.viewportRatio,o=Object(y["computed"])((function(){return e.slide.background})),l=oi(o),c=l.backgroundStyle,a=Object(y["computed"])((function(){return e.slide.id}));return Object(y["provide"])("slideId",a),{backgroundStyle:c,VIEWPORT_SIZE:Ke,viewportRatio:n}}});n("d530");const jg=zn()(Og,[["render",Qy],["__scopeId","data-v-7827b40a"]]);var yg=jg,gg={class:"slide-thumbnails"},xg={class:"return-button"},Cg={class:"slide-thumbnails-content"},kg=["onClick"];function Eg(e,t,n,o,l,c){var a=Object(y["resolveComponent"])("IconArrowCircleLeft"),r=Object(y["resolveComponent"])("ThumbnailSlide");return Object(y["openBlock"])(),Object(y["createElementBlock"])("div",gg,[Object(y["createElementVNode"])("div",xg,[Object(y["createVNode"])(a,{class:"icon",onClick:t[0]||(t[0]=function(t){return e.close()})})]),Object(y["createElementVNode"])("div",Cg,[(Object(y["openBlock"])(!0),Object(y["createElementBlock"])(y["Fragment"],null,Object(y["renderList"])(e.slides,(function(t,n){return Object(y["openBlock"])(),Object(y["createElementBlock"])("div",{class:Object(y["normalizeClass"])(["thumbnail",{active:n===e.slideIndex}]),key:t.id,onClick:function(t){return e.turnSlideToIndex(n)}},[Object(y["createVNode"])(r,{slide:t,size:150,visible:n<e.slidesLoadLimit},null,8,["slide","visible"])],10,kg)})),128))])])}var wg=Object(y["defineComponent"])({name:"slide-thumbnails",emits:["close"],components:{ThumbnailSlide:Ud},props:{turnSlideToIndex:{type:Function,required:!0}},setup:function(e,t){var n=t.emit,o=Object(g["c"])(ee()),l=o.slides,c=o.slideIndex,a=cp(),r=a.slidesLoadLimit,i=function(){return n("close")};return{slides:l,slideIndex:c,slidesLoadLimit:r,close:i}}});n("950c");const Ng=zn()(wg,[["render",Eg],["__scopeId","data-v-52c41cd2"]]);var Ig=Ng,Vg={class:"writing-board-tool"},Sg={class:"tools"},Bg={class:"colors"},Lg=["onClick"];function Tg(e,t,n,o,l,c){var a=Object(y["resolveComponent"])("WritingBoard"),r=Object(y["resolveComponent"])("IconWrite"),i=Object(y["resolveComponent"])("Tooltip"),u=Object(y["resolveComponent"])("IconErase"),d=Object(y["resolveComponent"])("IconClear"),s=Object(y["resolveComponent"])("IconFill"),f=Object(y["resolveComponent"])("IconClose");return Object(y["openBlock"])(),Object(y["createElementBlock"])("div",Vg,[(Object(y["openBlock"])(),Object(y["createBlock"])(y["Teleport"],{to:"body"},[Object(y["createVNode"])(a,{ref:"writingBoardRef",color:e.writingBoardColor,blackboard:e.blackboard,model:e.writingBoardModel},null,8,["color","blackboard","model"])])),Object(y["createElementVNode"])("div",Sg,[Object(y["createVNode"])(i,{mouseLeaveDelay:0,mouseEnterDelay:.3,title:"画笔"},{default:Object(y["withCtx"])((function(){return[Object(y["createElementVNode"])("div",{class:Object(y["normalizeClass"])(["btn",{active:"pen"===e.writingBoardModel}]),onClick:t[0]||(t[0]=function(t){return e.changePen()})},[Object(y["createVNode"])(r,{class:"icon"})],2)]})),_:1},8,["mouseEnterDelay"]),Object(y["createVNode"])(i,{mouseLeaveDelay:0,mouseEnterDelay:.3,title:"橡皮擦"},{default:Object(y["withCtx"])((function(){return[Object(y["createElementVNode"])("div",{class:Object(y["normalizeClass"])(["btn",{active:"eraser"===e.writingBoardModel}]),onClick:t[1]||(t[1]=function(t){return e.changeEraser()})},[Object(y["createVNode"])(u,{class:"icon"})],2)]})),_:1},8,["mouseEnterDelay"]),Object(y["createVNode"])(i,{mouseLeaveDelay:0,mouseEnterDelay:.3,title:"清除墨迹"},{default:Object(y["withCtx"])((function(){return[Object(y["createElementVNode"])("div",{class:"btn",onClick:t[2]||(t[2]=function(t){return e.clearCanvas()})},[Object(y["createVNode"])(d,{class:"icon"})])]})),_:1},8,["mouseEnterDelay"]),Object(y["createVNode"])(i,{mouseLeaveDelay:0,mouseEnterDelay:.3,title:"黑板"},{default:Object(y["withCtx"])((function(){return[Object(y["createElementVNode"])("div",{class:Object(y["normalizeClass"])(["btn",{active:e.blackboard}]),onClick:t[3]||(t[3]=function(t){return e.blackboard=!e.blackboard})},[Object(y["createVNode"])(s,{class:"icon"})],2)]})),_:1},8,["mouseEnterDelay"]),Object(y["createElementVNode"])("div",Bg,[(Object(y["openBlock"])(!0),Object(y["createElementBlock"])(y["Fragment"],null,Object(y["renderList"])(e.writingBoardColors,(function(t){return Object(y["openBlock"])(),Object(y["createElementBlock"])("div",{class:Object(y["normalizeClass"])(["color",{active:t===e.writingBoardColor}]),key:t,style:Object(y["normalizeStyle"])({backgroundColor:t}),onClick:function(n){return e.changeColor(t)}},null,14,Lg)})),128))]),Object(y["createVNode"])(i,{mouseLeaveDelay:0,mouseEnterDelay:.3,title:"关闭画笔"},{default:Object(y["withCtx"])((function(){return[Object(y["createElementVNode"])("div",{class:"btn",onClick:t[4]||(t[4]=function(t){return e.closeWritingBoard()})},[Object(y["createVNode"])(f,{class:"icon"})])]})),_:1},8,["mouseEnterDelay"])])])}var Mg={class:"writing-board",ref:"writingBoardRef"},_g={key:0,class:"blackboard"};function Dg(e,t,n,o,l,c){var a=Object(y["resolveComponent"])("IconWrite");return Object(y["openBlock"])(),Object(y["createElementBlock"])("div",Mg,[e.blackboard?(Object(y["openBlock"])(),Object(y["createElementBlock"])("div",_g)):Object(y["createCommentVNode"])("",!0),Object(y["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(y["openBlock"])(),Object(y["createElementBlock"])("div",{key:1,class:"pen",style:Object(y["normalizeStyle"])({left:e.mouse.x-e.penSize/2+"px",top:e.mouse.y-36+e.penSize/2+"px",color:e.color})},[Object(y["createVNode"])(a,{class:"icon",size:"36"})],4)):Object(y["createCommentVNode"])("",!0),e.mouseInCanvas&&"eraser"===e.model?(Object(y["openBlock"])(),Object(y["createElementBlock"])("div",{key:2,class:"eraser",style:Object(y["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(y["createCommentVNode"])("",!0)],512)}var zg=6,Ag=80,Rg=Object(y["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(y["ref"])(),o=Object(y["ref"])(),l={x:0,y:0},c=!1,a=0,r=-1,i=Object(y["reactive"])({x:0,y:0}),u=function(e,t){i.x=e,i.y=t},d=Object(y["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(y["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=Ag/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=zg,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)},j=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:zg,rubberSize:Ag,writingBoardRef:n,canvasRef:o,handleMousedown:h,handleMousemove:O,handleMouseup:j,clearCanvas:g}}});n("097f");const Fg=zn()(Rg,[["render",Dg],["__scopeId","data-v-7ff9fa00"]]);var Pg=Fg,Hg=["#000000","#ffffff","#1e497b","#4e81bb","#e2534d","#9aba60","#8165a0","#47acc5","#f9974c"],qg=Object(y["defineComponent"])({name:"writing-board-tool",emits:["close"],components:{WritingBoard:Pg},setup:function(e,t){var n=t.emit,o=Object(y["ref"])(),l=Object(y["ref"])("#e2534d"),c=Object(y["ref"])("pen"),a=Object(y["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:Hg,writingBoardColor:l,writingBoardModel:c,blackboard:a,changePen:r,changeEraser:i,clearCanvas:u,changeColor:d,closeWritingBoard:s}}});n("9efd");const Gg=zn()(qg,[["render",Tg],["__scopeId","data-v-a2836dba"]]);var Ug=Gg,Xg=Object(y["defineComponent"])({name:"screen",components:{ScreenSlide:yg,SlideThumbnails:Ig,WritingBoardTool:Ug},setup:function(){var e=ee(),t=Object(g["c"])(e),n=t.slides,o=t.slideIndex,l=t.currentSlide,c=t.viewportRatio,a=Object(y["ref"])(0),r=Object(y["ref"])(0),i=Object(y["computed"])((function(){return a.value/Ke})),u=Object(y["ref"])(!1),d=Object(y["ref"])(!1),s=Object(y["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=pt(),m=p.exitScreening,b=function(){f(),ft()||m()};Object(y["onMounted"])((function(){f(),window.addEventListener("resize",b)})),Object(y["onUnmounted"])((function(){window.removeEventListener("resize",b)}));var v=Object(y["computed"])((function(){return l.value.animations||[]})),h=Object(y["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})}},j=Object(y["ref"])(0),x=function(){j.value&&(clearInterval(j.value),j.value=0)};Object(y["onUnmounted"])(x);var C=Object(J["throttle"])((function(e){Ee["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("已经是第一页了")},E=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())},w=function(){x(),Ee["a"].success("开始自动放映"),j.value=setInterval(E,2500)},N=Object(J["throttle"])((function(e){e.deltaY<0?k():e.deltaY>0&&E()}),500,{leading:!0,trailing:!1}),I=Object(y["ref"])(null),S=function(e){I.value={x:e.changedTouches[0].pageX,y:e.changedTouches[0].pageY}},B=function(e){if(I.value){var t=Math.abs(I.value.x-e.changedTouches[0].pageX),n=e.changedTouches[0].pageY-I.value.y;Math.abs(n)>t&&Math.abs(n)>50&&(I.value=null,n>0?k():E())}},L=function(e){var t=e.key.toUpperCase();t===V.UP||t===V.LEFT?k():t!==V.DOWN&&t!==V.RIGHT&&t!==V.SPACE&&t!==V.ENTER||E()};Object(y["onMounted"])((function(){document.addEventListener("keydown",L)})),Object(y["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:j.value?"取消自动放映":"自动放映",handler:j.value?x:w},{text:"结束放映",subText:"ESC",handler:m}]};return Object(y["provide"])("slideScale",i),{slides:n,slideIndex:o,currentSlide:l,slideWidth:a,slideHeight:r,scale:i,mousewheelListener:N,touchStartListener:S,touchEndListener:B,animationIndex:h,contextmenus:z,execPrev:k,execNext:E,slideThumbnailModelVisible:d,turnSlideToIndex:_,turnSlideToId:D,writingBoardToolVisible:s,showPageNumber:u}}});n("ad18");const Wg=zn()(Xg,[["render",Ky],["__scopeId","data-v-1d67bb30"]]);var Yg=Wg,Zg={class:"mobile",ref:"mobileRef"},Jg={class:"thumbnail-list"};function Kg(e,t,n,o,l,c){var a=Object(y["resolveComponent"])("Alert"),r=Object(y["resolveComponent"])("ThumbnailSlide");return Object(y["openBlock"])(),Object(y["createElementBlock"])("div",Zg,[Object(y["createVNode"])(a,{class:"tip",message:"注意",description:"移动设备下仅支持预览请在PC上进行编辑",type:"warning",closable:"","show-icon":""}),Object(y["createElementVNode"])("div",Jg,[(Object(y["openBlock"])(!0),Object(y["createElementBlock"])(y["Fragment"],null,Object(y["renderList"])(e.slides,(function(t,n){return Object(y["openBlock"])(),Object(y["createElementBlock"])("div",{class:"thumbnail-item",key:t.id},[Object(y["createVNode"])(r,{slide:t,size:e.slideWidth,visible:n<e.slidesLoadLimit},null,8,["slide","size","visible"])])})),128))])],512)}var Qg=Object(y["defineComponent"])({name:"thumbnails",components:{ThumbnailSlide:Ud},setup:function(){var e=Object(g["c"])(ee()),t=e.slides,n=cp(),o=n.slidesLoadLimit,l=pt(),c=l.enterScreening,a=Object(y["ref"])(),r=Object(y["ref"])(0);return Object(y["onMounted"])((function(){a.value&&(r.value=a.value.clientWidth-10)})),{slides:t,slidesLoadLimit:o,mobileRef:a,slideWidth:r,enterScreening:c}}});n("ec9c");const $g=zn()(Qg,[["render",Kg],["__scopeId","data-v-72b587f9"]]);var ex=$g,tx=Object(y["defineComponent"])({name:"app",components:{Editor:Yy,Screen:Yg,Mobile:ex},setup:function(){var e=te(),t=se(),n=Object(g["c"])(pe()),o=n.screening;return window.onbeforeunload=function(){return!1},Object(y["onMounted"])((function(){t.initSnapshotDatabase(),e.setAvailableFonts()})),{screening:o,isPC:ve()}}});n("b5a4");const nx=zn()(tx,[["render",x]]);var ox=nx,lx=(n("793f"),n("41ed"),n("77ed"),n("5952"),n("c860"),n("ae3f"),n("8c56"),n("b28e")),cx=n("f914"),ax=n("0e0a"),rx=n("f807"),ix=n("4a80"),ux=n("9312"),dx=n("84e7"),sx=n("1e27"),fx=n("8845"),px=n("a3ef"),mx=n("8331"),bx=n("4040"),vx=n("f745"),hx=n("2e2d"),Ox=n("6010"),jx=n("1fcb"),yx=n("500e"),gx=n("0996"),xx=n("1646"),Cx=n("fbe7"),kx=n("b8af"),Ex=n("bf2c"),wx=n("f259"),Nx=n("23fa"),Ix=n("c53e"),Vx=n("8377"),Sx=n("246f"),Bx=n("33a2"),Lx=n("fdbcb"),Tx=n("ccc7"),Mx=n("e3b9"),_x=n("3a3e"),Dx=n("2e67"),zx=n("e792"),Ax=n("e483"),Rx=n("eac5"),Fx=n("694b"),Px=n("e9ec"),Hx=n("ea01"),qx=n("74f3"),Gx=n("4bad"),Ux=n("e7f4"),Xx=n("eb50"),Wx=n("0be2"),Yx=n("a90c"),Zx=n("c90a"),Jx=n("d41d"),Kx=n("2c06"),Qx=n("a5dc"),$x=n("8678"),eC=n("d7fb"),tC=n("ce42"),nC=n("7abc"),oC=n("5b20"),lC=n("69de"),cC=n("d0c6"),aC=n("dcc2"),rC=n("f1d2"),iC=n("d16b"),uC=n("a5f1"),dC=n("df0d"),sC=n("70f2"),fC=n("b7c8"),pC=n("f99d"),mC=n("40bb"),bC=n("ae33"),vC=n("8c1a"),hC=n("b7b3"),OC=n("96be"),jC=n("5a69"),yC=n("f9e5"),gC=n("bbce"),xC=n("77ad"),CC=n("46cd"),kC=n("3ee3"),EC=n("dde4"),wC=n("cead"),NC=n("af8a"),IC=n("d887"),VC=n("fa00"),SC=n("e970"),BC=n("f3c2"),LC=n("7312"),TC=n("5294"),MC=n("9fbc"),_C={install:function(e){e.component("IconFontSize",MC["a"]),e.component("IconPicture",TC["a"]),e.component("IconGraphicDesign",LC["a"]),e.component("IconConnection",BC["a"]),e.component("IconChartProportion",SC["a"]),e.component("IconInsertTable",VC["a"]),e.component("IconVideoTwo",IC["a"]),e.component("IconFormula",NC["a"]),e.component("IconLock",wC["a"]),e.component("IconUnlock",EC["a"]),e.component("IconFullScreen",kC["a"]),e.component("IconBack",CC["a"]),e.component("IconNext",xC["a"]),e.component("IconAlignTop",gC["a"]),e.component("IconAlignLeft",yC["a"]),e.component("IconAlignRight",jC["a"]),e.component("IconAlignBottom",OC["a"]),e.component("IconAlignVertically",hC["a"]),e.component("IconAlignHorizontally",vC["a"]),e.component("IconBringToFront",bC["a"]),e.component("IconSentToBack",mC["a"]),e.component("IconBringToFrontOne",pC["a"]),e.component("IconSendToBack",fC["a"]),e.component("IconGroup",sC["a"]),e.component("IconUngroup",dC["a"]),e.component("IconFill",uC["a"]),e.component("IconBackgroundColor",iC["a"]),e.component("IconPlatte",rC["a"]),e.component("IconTailoring",aC["a"]),e.component("IconColorFilter",cC["a"]),e.component("IconFlipVertically",lC["a"]),e.component("IconFlipHorizontally",oC["a"]),e.component("IconText",nC["a"]),e.component("IconAddText",tC["a"]),e.component("IconAlignTextLeft",eC["a"]),e.component("IconAlignTextRight",$x["a"]),e.component("IconAlignTextCenter",Qx["a"]),e.component("IconRowHeight",Kx["a"]),e.component("IconFullwidth",Jx["a"]),e.component("IconCode",Zx["a"]),e.component("IconTextBold",Yx["a"]),e.component("IconTextItalic",Wx["a"]),e.component("IconTextUnderline",Xx["a"]),e.component("IconStrikethrough",Ux["a"]),e.component("IconQuote",Gx["a"]),e.component("IconList",qx["a"]),e.component("IconOrderedList",Hx["a"]),e.component("IconUpOne",Px["a"]),e.component("IconDownOne",Fx["a"]),e.component("IconFormat",Rx["a"]),e.component("IconAlignTextTopOne",Ax["a"]),e.component("IconAlignTextBottomOne",zx["a"]),e.component("IconAlignTextMiddleOne",Dx["a"]),e.component("IconDown",_x["a"]),e.component("IconLeftTwo",Mx["a"]),e.component("IconRightTwo",Tx["a"]),e.component("IconPlus",Lx["a"]),e.component("IconMinus",Bx["a"]),e.component("IconClose",Sx["a"]),e.component("IconCloseSmall",Vx["a"]),e.component("IconChartHistogram",Ix["a"]),e.component("IconChartLine",Nx["a"]),e.component("IconChartPie",wx["a"]),e.component("IconPlayOne",Ex["a"]),e.component("IconPpt",kx["a"]),e.component("IconHelpcenter",Cx["a"]),e.component("IconGithub",xx["a"]),e.component("IconWrite",gx["a"]),e.component("IconErase",yx["a"]),e.component("IconEffects",jx["a"]),e.component("IconRotate",Ox["a"]),e.component("IconEdit",hx["a"]),e.component("IconUndo",vx["a"]),e.component("IconTransform",bx["a"]),e.component("IconClick",mx["a"]),e.component("IconTheme",px["a"]),e.component("IconArrowCircleLeft",fx["a"]),e.component("IconLogout",sx["a"]),e.component("IconClear",dx["a"]),e.component("IconFolderClose",ux["a"]),e.component("IconElectronicPen",ix["a"]),e.component("IconPause",rx["a"]),e.component("IconVolumeMute",ax["a"]),e.component("IconVolumeNotice",cx["a"]),e.component("IconVolumeSmall",lx["a"])}},DC=["accept"];function zC(e,t,n,o,l,c){return Object(y["openBlock"])(),Object(y["createElementBlock"])("div",{class:"file-input",onClick:t[1]||(t[1]=function(t){return e.handleClick()})},[Object(y["renderSlot"])(e.$slots,"default",{},void 0,!0),Object(y["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,DC)])}var AC=Object(y["defineComponent"])({name:"file-input",emits:["change"],props:{accept:{type:String,default:"image/*"}},setup:function(e,t){var n=t.emit,o=Object(y["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("bd59");const RC=zn()(AC,[["render",zC],["__scopeId","data-v-0a87e9c4"]]);var FC=RC;function PC(e,t,n,o,l,c){return Object(y["openBlock"])(),Object(y["createElementBlock"])("button",{class:Object(y["normalizeClass"])(["checkbox-button",{checked:e.checked}])},[Object(y["renderSlot"])(e.$slots,"default",{},void 0,!0)],2)}var HC=Object(y["defineComponent"])({name:"checkbox-button",props:{checked:{type:Boolean,default:!1}}});n("850a");const qC=zn()(HC,[["render",PC],["__scopeId","data-v-4074d5c2"]]);var GC=qC,UC={class:"checkbox-button-group"};function XC(e,t,n,o,l,c){return Object(y["openBlock"])(),Object(y["createElementBlock"])("div",UC,[Object(y["renderSlot"])(e.$slots,"default",{},void 0,!0)])}var WC={name:"checkbox-button-group"};n("69d5");const YC=zn()(WC,[["render",XC],["__scopeId","data-v-7dafd0a9"]]);var ZC=YC,JC={class:"color-picker"},KC={class:"picker-saturation-wrap"},QC={class:"picker-controls"},$C={class:"picker-color-wrap"},ek={class:"picker-sliders"},tk={class:"picker-hue-wrap"},nk={class:"picker-alpha-wrap"},ok={class:"picker-field"},lk={class:"picker-presets"},ck=["onClick"],ak={class:"picker-gradient-presets"},rk=["onClick"],ik={class:"picker-presets"},uk=["onClick"],dk={key:0,class:"recent-colors-title"},sk={class:"recent-colors"},fk=["onClick"];function pk(e,t,n,o,l,c){var a=Object(y["resolveComponent"])("Saturation"),r=Object(y["resolveComponent"])("Checkboard"),i=Object(y["resolveComponent"])("Hue"),u=Object(y["resolveComponent"])("Alpha"),d=Object(y["resolveComponent"])("EditableInput"),s=Object(y["resolveComponent"])("IconElectronicPen");return Object(y["openBlock"])(),Object(y["createElementBlock"])("div",JC,[Object(y["createElementVNode"])("div",KC,[Object(y["createVNode"])(a,{value:e.color,hue:e.hue,onColorChange:t[0]||(t[0]=function(t){return e.changeColor(t)})},null,8,["value","hue"])]),Object(y["createElementVNode"])("div",QC,[Object(y["createElementVNode"])("div",$C,[Object(y["createElementVNode"])("div",{class:"picker-current-color",style:Object(y["normalizeStyle"])({background:e.currentColor})},null,4),Object(y["createVNode"])(r)]),Object(y["createElementVNode"])("div",ek,[Object(y["createElementVNode"])("div",tk,[Object(y["createVNode"])(i,{value:e.color,hue:e.hue,onColorChange:t[1]||(t[1]=function(t){return e.changeColor(t)})},null,8,["value","hue"])]),Object(y["createElementVNode"])("div",nk,[Object(y["createVNode"])(u,{value:e.color,onColorChange:t[2]||(t[2]=function(t){return e.changeColor(t)})},null,8,["value"])])])]),Object(y["createElementVNode"])("div",ok,[Object(y["createVNode"])(d,{class:"input",value:e.color,onColorChange:t[3]||(t[3]=function(t){return e.changeColor(t)})},null,8,["value"]),Object(y["createElementVNode"])("div",{class:"straw",onClick:t[4]||(t[4]=function(t){return e.pickColor()})},[Object(y["createVNode"])(s,{theme:"two-tone",fill:["#333","#e2c2c2"]})])]),Object(y["createElementVNode"])("div",lk,[(Object(y["openBlock"])(!0),Object(y["createElementBlock"])(y["Fragment"],null,Object(y["renderList"])(e.themeColors,(function(t){return Object(y["openBlock"])(),Object(y["createElementBlock"])("div",{class:"picker-presets-color",key:t,style:Object(y["normalizeStyle"])({background:t}),onClick:function(n){return e.selectPresetColor(t)}},null,12,ck)})),128))]),Object(y["createElementVNode"])("div",ak,[(Object(y["openBlock"])(!0),Object(y["createElementBlock"])(y["Fragment"],null,Object(y["renderList"])(e.presetColors,(function(t,n){return Object(y["openBlock"])(),Object(y["createElementBlock"])("div",{class:"picker-gradient-col",key:n},[(Object(y["openBlock"])(!0),Object(y["createElementBlock"])(y["Fragment"],null,Object(y["renderList"])(t,(function(t){return Object(y["openBlock"])(),Object(y["createElementBlock"])("div",{class:"picker-gradient-color",key:t,style:Object(y["normalizeStyle"])({background:t}),onClick:function(n){return e.selectPresetColor(t)}},null,12,rk)})),128))])})),128))]),Object(y["createElementVNode"])("div",ik,[(Object(y["openBlock"])(!0),Object(y["createElementBlock"])(y["Fragment"],null,Object(y["renderList"])(e.standardColors,(function(t){return Object(y["openBlock"])(),Object(y["createElementBlock"])("div",{key:t,class:"picker-presets-color",style:Object(y["normalizeStyle"])({background:t}),onClick:function(n){return e.selectPresetColor(t)}},null,12,uk)})),128))]),e.recentColors.length?(Object(y["openBlock"])(),Object(y["createElementBlock"])("div",dk,"最近使用:")):Object(y["createCommentVNode"])("",!0),Object(y["createElementVNode"])("div",sk,[(Object(y["openBlock"])(!0),Object(y["createElementBlock"])(y["Fragment"],null,Object(y["renderList"])(e.recentColors,(function(t){return Object(y["openBlock"])(),Object(y["createElementBlock"])("div",{key:t,class:"picker-presets-color",style:Object(y["normalizeStyle"])({background:t}),onClick:function(n){return e.selectPresetColor(t)}},null,12,fk)})),128))])])}n("b680");var mk=n("e774"),bk=function(e){return Object(y["pushScopeId"])("data-v-6f2cb744"),e=e(),Object(y["popScopeId"])(),e},vk={class:"alpha"},hk={class:"alpha-checkboard-wrap"},Ok=bk((function(){return Object(y["createElementVNode"])("div",{class:"alpha-picker"},null,-1)})),jk=[Ok];function yk(e,t,n,o,l,c){var a=Object(y["resolveComponent"])("Checkboard");return Object(y["openBlock"])(),Object(y["createElementBlock"])("div",vk,[Object(y["createElementVNode"])("div",hk,[Object(y["createVNode"])(a)]),Object(y["createElementVNode"])("div",{class:"alpha-gradient",style:Object(y["normalizeStyle"])({background:e.gradientColor})},null,4),Object(y["createElementVNode"])("div",{class:"alpha-container",ref:"alphaRef",onMousedown:t[0]||(t[0]=function(t){return e.handleMouseDown(t)})},[Object(y["createElementVNode"])("div",{class:"alpha-pointer",style:Object(y["normalizeStyle"])({left:100*e.color.a+"%"})},jk,4)],544)])}function gk(e,t,n,o,l,c){return Object(y["openBlock"])(),Object(y["createElementBlock"])("div",{class:"checkerboard",style:Object(y["normalizeStyle"])(e.bgStyle)},null,4)}var xk={},Ck=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},kk=function(e,t,n){var o=e+","+t+","+n;if(xk[o])return xk[o];var l=Ck(e,t,n);return xk[o]=l,l},Ek=Object(y["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(y["computed"])((function(){var t=kk(e.white,e.grey,e.size);return{backgroundImage:"url(".concat(t,")")}}));return{bgStyle:t}}});n("7e17");const wk=zn()(Ek,[["render",gk],["__scopeId","data-v-0a544b87"]]);var Nk=wk,Ik=Object(y["defineComponent"])({name:"alpha",components:{Checkboard:Nk},emits:["colorChange"],props:{value:{type:Object,required:!0}},setup:function(e,t){var n=t.emit,o=Object(y["computed"])((function(){return e.value})),l=Object(y["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(y["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(y["onUnmounted"])(r),{alphaRef:c,gradientColor:l,handleMouseDown:i,color:o}}});n("f418");const Vk=zn()(Ik,[["render",yk],["__scopeId","data-v-6f2cb744"]]);var Sk=Vk,Bk=function(e){return Object(y["pushScopeId"])("data-v-1766620e"),e=e(),Object(y["popScopeId"])(),e},Lk={class:"hue"},Tk=Bk((function(){return Object(y["createElementVNode"])("div",{class:"hue-picker"},null,-1)})),Mk=[Tk];function _k(e,t,n,o,l,c){return Object(y["openBlock"])(),Object(y["createElementBlock"])("div",Lk,[Object(y["createElementVNode"])("div",{class:"hue-container",ref:"hueRef",onMousedown:t[0]||(t[0]=function(t){return e.handleMouseDown(t)})},[Object(y["createElementVNode"])("div",{class:"hue-pointer",style:Object(y["normalizeStyle"])({left:e.pointerLeft})},Mk,4)],544)])}var Dk=Object(y["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(y["ref"])(0),l=Object(y["ref"])(""),c=Object(y["computed"])((function(){var t=Z()(e.value).toHsl();return-1!==e.hue&&(t.h=e.hue),t})),a=Object(y["computed"])((function(){return 0===c.value.h&&"right"===l.value?"100%":100*c.value.h/360+"%"}));Object(y["watch"])((function(){return e.value}),(function(){var t=Z()(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(y["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(y["onUnmounted"])(u),{hueRef:r,handleMouseDown:d,pointerLeft:a}}});n("468f");const zk=zn()(Dk,[["render",_k],["__scopeId","data-v-1766620e"]]);var Ak=zk,Rk=function(e){return Object(y["pushScopeId"])("data-v-8982eb4a"),e=e(),Object(y["popScopeId"])(),e},Fk=Rk((function(){return Object(y["createElementVNode"])("div",{class:"saturation-white"},null,-1)})),Pk=Rk((function(){return Object(y["createElementVNode"])("div",{class:"saturation-black"},null,-1)})),Hk=Rk((function(){return Object(y["createElementVNode"])("div",{class:"saturation-circle"},null,-1)})),qk=[Hk];function Gk(e,t,n,o,l,c){return Object(y["openBlock"])(),Object(y["createElementBlock"])("div",{class:"saturation",ref:"saturationRef",style:Object(y["normalizeStyle"])({background:e.bgColor}),onMousedown:t[0]||(t[0]=function(t){return e.handleMouseDown(t)})},[Fk,Pk,Object(y["createElementVNode"])("div",{class:"saturation-pointer",style:Object(y["normalizeStyle"])({top:e.pointerTop,left:e.pointerLeft})},qk,4)],36)}var Uk=Object(y["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(y["computed"])((function(){var t=Z()(e.value).toHsv();return-1!==e.hue&&(t.h=e.hue),t})),l=Object(y["computed"])((function(){return"hsl(".concat(o.value.h,", 100%, 50%)")})),c=Object(y["computed"])((function(){return-100*o.value.v+1+100+"%"})),a=Object(y["computed"])((function(){return 100*o.value.s+"%"})),r=Object(J["throttle"])((function(e){n("colorChange",e)}),20,{leading:!0,trailing:!1}),i=Object(y["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(J["clamp"])(e.pageX-l,0,t),u=Object(J["clamp"])(e.pageY-c,0,n),d=a/t,s=Object(J["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(y["onUnmounted"])(d),{saturationRef:i,bgColor:l,handleMouseDown:s,pointerTop:c,pointerLeft:a}}});n("a46e");const Xk=zn()(Uk,[["render",Gk],["__scopeId","data-v-8982eb4a"]]);var Wk=Xk,Yk={class:"editable-input"},Zk=["value"];function Jk(e,t,n,o,l,c){return Object(y["openBlock"])(),Object(y["createElementBlock"])("div",Yk,[Object(y["createElementVNode"])("input",{class:"input-content",value:e.val,onInput:t[0]||(t[0]=function(t){return e.handleInput(t)})},null,40,Zk)])}var Kk=Object(y["defineComponent"])({name:"editable-input",emits:["colorChange"],props:{value:{type:Object,required:!0}},setup:function(e,t){var n=t.emit,o=Object(y["computed"])((function(){var t="";return t=e.value.a<1?Z()(e.value).toHex8String().toUpperCase():Z()(e.value).toHexString().toUpperCase(),t.replace("#","")})),l=function(e){var t=e.target.value;t.length>=6&&n("colorChange",Z()(t).toRgb())};return{val:o,handleInput:l}}});n("933d");const Qk=zn()(Kk,[["render",Jk],["__scopeId","data-v-20bfe6b0"]]);var $k=Qk,eE="RECENT_COLORS",tE=[["#7f7f7f","#f2f2f2"],["#0d0d0d","#808080"],["#1c1a10","#ddd8c3"],["#0e243d","#c6d9f0"],["#233f5e","#dae5f0"],["#632623","#f2dbdb"],["#4d602c","#eaf1de"],["#3f3150","#e6e0ec"],["#1e5867","#d9eef3"],["#99490f","#fee9da"]],nE=function(e,t,n){for(var o=Z()(e).toRgb(),l=Z()(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=Z()({r:o.r+c*u,g:o.g+a*u,b:o.b+r*u}).toRgbString();i.push(d)}return i},oE=function(){var e,t=[],n=Object(T["a"])(tE);try{for(n.s();!(e=n.n()).done;){var o=e.value;t.push(nE(o[1],o[0],5))}}catch(_E){n.e(_E)}finally{n.f()}return t},lE=Object(y["defineComponent"])({name:"color-picker",components:{Alpha:Sk,Checkboard:Nk,Hue:Ak,Saturation:Wk,EditableInput:$k},emits:["update:modelValue"],props:{modelValue:{type:String,default:"#e86b99"}},setup:function(e,t){var n=t.emit,o=Object(y["ref"])(-1),l=Object(y["ref"])([]),c=Object(y["computed"])({get:function(){return Z()(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=oE(),u=Object(y["computed"])((function(){return"rgba(".concat([c.value.r,c.value.g,c.value.b,c.value.a].join(","),")")})),d=function(e){o.value=Z()(e).toHsl().h,n("update:modelValue",e)},s=Object(J["debounce"])((function(){var e=Z()(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(y["onMounted"])((function(){var e=localStorage.getItem(eE);e&&(l.value=JSON.parse(e))})),Object(y["watch"])(l,(function(){var e=JSON.stringify(l.value);localStorage.setItem(eE,e)}));var f=function(e){"h"in e?(o.value=e.h,c.value=Z()(e).toRgb()):(o.value=Z()(e).toHsl().h,c.value=e),s()},p=function(){var e=document.querySelector(".canvas");if(e){var t=document.createElement("div");t.style.cssText="position: fixed; top: 0; left: 0; bottom: 0; right: 0; z-index: 9999; cursor: wait;",document.body.appendChild(t);var n=document.createElement("div");n.style.cssText="position: absolute; top: -100px; left: -100px; width: 16px; height: 16px; border: 1px solid #000; z-index: 999",t.appendChild(n);var l=e.getBoundingClientRect(),a=l.left,r=l.top,i=function(e){return!(e.classList&&e.classList.contains("operate"))};Object(mk["a"])(e,{filter:i,fontEmbedCSS:""}).then((function(e){e.style.cssText="position: absolute; top: ".concat(r,"px; left: ").concat(a,"px; cursor: crosshair;"),t.style.cursor="default",t.appendChild(e);var l=e.getContext("2d");if(l){var i="",u=function(e){var t=e.x,o=e.y,c=t-a,u=o-r,d=Object(ze["a"])(l.getImageData(c,u,1,1).data,4),s=d[0],f=d[1],p=d[2],m=d[3];i="rgba(".concat(s,", ").concat(f,", ").concat(p,", ").concat((m/255).toFixed(2),")"),n.style.left=t+10+"px",n.style.top=o+10+"px",n.style.backgroundColor=i},d=function(){i="",n.style.left="-100px",n.style.top="-100px",n.style.backgroundColor=""},f=function n(l){if(i&&0===l.button){var a=Z()(i);o.value=a.toHsl().h,c.value=a.toRgb(),s()}document.body.removeChild(t),e.removeEventListener("mousemove",u),e.removeEventListener("mouseleave",d),window.removeEventListener("mousedown",n)};e.addEventListener("mousemove",u),e.addEventListener("mouseleave",d),window.addEventListener("mousedown",f)}}))}};return{themeColors:a,standardColors:r,presetColors:i,color:c,hue:o,currentColor:u,changeColor:f,selectPresetColor:d,recentColors:l,pickColor:p}}});n("86ee");const cE=zn()(lE,[["render",pk],["__scopeId","data-v-0569d589"]]);var aE=cE,rE={key:0,class:"fullscreen-spin"};function iE(e,t,n,o,l,c){var a=Object(y["resolveComponent"])("Spin");return e.loading?(Object(y["openBlock"])(),Object(y["createElementBlock"])("div",rE,[Object(y["createVNode"])(a,{tip:e.tip,size:"large"},null,8,["tip"])])):Object(y["createCommentVNode"])("",!0)}var uE=Object(y["defineComponent"])({name:"fullscreen-spin",props:{loading:{type:Boolean,default:!1},tip:{type:String,default:""}}});n("1756");const dE=zn()(uE,[["render",iE],["__scopeId","data-v-5e77feb8"]]);var sE=dE,fE={install:function(e){e.component("FileInput",FC),e.component("CheckboxButton",GC),e.component("CheckboxButtonGroup",ZC),e.component("ColorPicker",aE),e.component("FullscreenSpin",sE)}};function pE(e,t,n,o,l,c){var a=Object(y["resolveComponent"])("MenuContent");return Object(y["openBlock"])(),Object(y["createElementBlock"])(y["Fragment"],null,[Object(y["createElementVNode"])("div",{class:"mask",onContextmenu:t[0]||(t[0]=Object(y["withModifiers"])((function(t){return e.removeContextmenu()}),["prevent"])),onMousedown:t[1]||(t[1]=function(t){return e.removeContextmenu()})},null,32),Object(y["createElementVNode"])("div",{class:"contextmenu",style:Object(y["normalizeStyle"])({left:e.style.left+"px",top:e.style.top+"px"}),onContextmenu:t[2]||(t[2]=Object(y["withModifiers"])((function(){}),["prevent"]))},[Object(y["createVNode"])(a,{menus:e.menus,handleClickMenuItem:e.handleClickMenuItem},null,8,["menus","handleClickMenuItem"])],36)],64)}var mE={class:"menu-content"},bE=["onClick"],vE={class:"text"},hE={key:0,class:"sub-text"};function OE(e,t,n,o,l,c){var a=Object(y["resolveComponent"])("menu-content",!0);return Object(y["openBlock"])(),Object(y["createElementBlock"])("ul",mE,[(Object(y["openBlock"])(!0),Object(y["createElementBlock"])(y["Fragment"],null,Object(y["renderList"])(e.menus,(function(t,n){return Object(y["openBlock"])(),Object(y["createElementBlock"])(y["Fragment"],{key:t.text||n},[t.hide?Object(y["createCommentVNode"])("",!0):(Object(y["openBlock"])(),Object(y["createElementBlock"])("li",{key:0,class:Object(y["normalizeClass"])(["menu-item",{divider:t.divider,disable:t.disable}]),onClick:Object(y["withModifiers"])((function(n){return e.handleClickMenuItem(t)}),["stop"])},[t.divider?Object(y["createCommentVNode"])("",!0):(Object(y["openBlock"])(),Object(y["createElementBlock"])("div",{key:0,class:Object(y["normalizeClass"])(["menu-item-content",{"has-children":t.children,"has-handler":t.handler}])},[Object(y["createElementVNode"])("span",vE,Object(y["toDisplayString"])(t.text),1),t.subText&&!t.children?(Object(y["openBlock"])(),Object(y["createElementBlock"])("span",hE,Object(y["toDisplayString"])(t.subText),1)):Object(y["createCommentVNode"])("",!0),t.children&&t.children.length?(Object(y["openBlock"])(),Object(y["createBlock"])(a,{key:1,class:"sub-menu",menus:t.children,handleClickMenuItem:e.handleClickMenuItem},null,8,["menus","handleClickMenuItem"])):Object(y["createCommentVNode"])("",!0)],2))],10,bE))],64)})),128))])}var jE=Object(y["defineComponent"])({name:"menu-content",props:{menus:{type:Array,required:!0},handleClickMenuItem:{type:Function,required:!0}}});n("0c74");const yE=zn()(jE,[["render",OE],["__scopeId","data-v-eb1555e8"]]);var gE=yE,xE=Object(y["defineComponent"])({name:"contextmenu",components:{MenuContent:gE},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(y["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 CE=zn()(xE,[["render",pE]]);var kE=CE,EE="CTX_CONTEXTMENU_HANDLER",wE=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(y["createVNode"])(kE,a,null);Object(y["render"])(r,l),document.body.appendChild(l),e.classList.add("contextmenu-active"),document.body.addEventListener("scroll",c),window.addEventListener("resize",c)}},NE={mounted:function(e,t){e[EE]=function(n){return wE(e,n,t)},e.addEventListener("contextmenu",e[EE])},unmounted:function(e){e&&e[EE]&&(e.removeEventListener("contextmenu",e[EE]),delete e[EE])}},IE=NE,VE="CTX_CLICK_OUTSIDE_HANDLER",SE=function(e,t,n){var o=n.value,l=t.composedPath(),c=l?l.indexOf(e)<0:!e.contains(t.target);c&&o(t)},BE={mounted:function(e,t){e[VE]=function(n){return SE(e,n,t)},setTimeout((function(){document.addEventListener("click",e[VE])}),0)},unmounted:function(e){e[VE]&&(document.removeEventListener("click",e[VE]),delete e[VE])}},LE=BE,TE={install:function(e){e.directive("contextmenu",IE),e.directive("click-outside",LE)}},ME=Object(y["createApp"])(ox);ME.component("InputNumber",j["a"]),ME.component("Divider",O["a"]),ME.component("Button",h["a"]),ME.component("ButtonGroup",h["a"].Group),ME.component("Tooltip",v["a"]),ME.component("Popover",b["a"]),ME.component("Slider",m["a"]),ME.component("Select",p["a"]),ME.component("SelectOption",p["a"].Option),ME.component("SelectOptGroup",p["a"].OptGroup),ME.component("Switch",f["a"]),ME.component("Radio",s["a"]),ME.component("RadioGroup",s["a"].Group),ME.component("RadioButton",s["a"].Button),ME.component("Input",d["a"]),ME.component("InputGroup",d["a"].Group),ME.component("TextArea",d["a"].TextArea),ME.component("Modal",u["a"]),ME.component("Dropdown",i["a"]),ME.component("Menu",r["a"]),ME.component("MenuItem",r["a"].Item),ME.component("Checkbox",a["a"]),ME.component("Drawer",c["a"]),ME.component("Spin",l["a"]),ME.component("Alert",o["a"]),ME.use(_C),ME.use(fE),ME.use(TE),ME.use(Object(g["a"])()),ME.mount("#app")},d0e2:function(e,t,n){},d129:function(e,t,n){"use strict";n("1b9e")},d530:function(e,t,n){"use strict";n("c242")},d65a:function(e,t,n){},d65aa:function(e,t,n){},d6d3:function(e,t,n){},d72c:function(e,t,n){},d783:function(e,t,n){},d7f8:function(e,t,n){},da17:function(e,t,n){"use strict";n("e44d")},dab5:function(e,t,n){"use strict";n("6702")},dc2f:function(e,t,n){},dc5e:function(e,t,n){},ddc3:function(e,t,n){},de30:function(e,t,n){"use strict";n("ddc3")},de82:function(e,t,n){},e09c:function(e,t,n){},e1f8:function(e,t,n){},e3df:function(e,t,n){"use strict";n("f0f3")},e44d:function(e,t,n){},e4fe:function(e,t,n){},e5a8:function(e,t,n){"use strict";n("6532")},e5b9:function(e,t,n){},e6a5:function(e,t,n){},e71e: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")},ec9c:function(e,t,n){"use strict";n("b994")},eed2:function(e,t,n){"use strict";n("4c0a")},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")},f418:function(e,t,n){"use strict";n("0f92")},fa63:function(e,t,n){},fb04:function(e,t,n){"use strict";n("d783")},fc12:function(e,t,n){"use strict";n("d72c")},fc7e:function(e,t,n){"use strict";n("9031")},fd3b:function(e,t,n){},fe34:function(e,t,n){"use strict";n("078f")},ff8b:function(e,t,n){},ffb8:function(e,t,n){"use strict";n("3831")}});
//# sourceMappingURL=app.a8c3b061.js.map