import{bx as af,cn as of,a5 as Ue,R as fe,X as yS,w as ir,ae as te,al as He,am as mn,af as de,ak as q,P as oe,ag as Ge,at as Ut,aq as ze,aB as mS,co as _S,bG as Ke,bq as Fv,bt as sf,aC as SS,e5 as bS,e6 as Ma,bB as wS,bv as kt,e7 as CS,e3 as TS,bA as xS,e8 as bn,cp as IS,e9 as AS,ea as kS,eb as MS,ec as PS,ed as $v,bE as zv,cv as mh,s as Te,E as er,bz as cn,ct as RS,aj as vl,au as Se,ai as nt,ad as Hl,ah as Ht,a_ as Rr,aY as Qe,bo as Ly,bH as Hi,bI as Gi,ee as LS,bD as ES,az as Sn,aA as DS,an as Ey,bw as lr,$ as _h,ay as wa,aZ as Sh,as as zn,ef as ls,a$ as Uv,ac as BS}from"./index-RSBmXPSf.js";var tn=(t=>(t.C="C",t.X="X",t.Z="Z",t.Y="Y",t.A="A",t.G="G",t.L="L",t.F="F",t.D="D",t.B="B",t.P="P",t.O="O",t.R="R",t.T="T",t.MINUS="-",t.EQUAL="=",t.DIGIT_0="0",t.DELETE="DELETE",t.UP="ARROWUP",t.DOWN="ARROWDOWN",t.LEFT="ARROWLEFT",t.RIGHT="ARROWRIGHT",t.ENTER="ENTER",t.SPACE=" ",t.TAB="TAB",t.BACKSPACE="BACKSPACE",t.ESC="ESCAPE",t.PAGEUP="PAGEUP",t.PAGEDOWN="PAGEDOWN",t.F5="F5",t))(tn||{});const yO=[{type:"通用",children:[{label:"剪切",value:"Ctrl + X"},{label:"复制",value:"Ctrl + C"},{label:"粘贴",value:"Ctrl + V"},{label:"粘贴为纯文本",value:"Ctrl + Shift + 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"},{label:"打开搜索替换",value:"Ctrl + F"},{label:"关闭弹窗",value:"ESC"}]},{type:"幻灯片放映",children:[{label:"从头开始放映幻灯片",value:"F5"},{label:"从当前开始放映幻灯片",value:"Shift + F5"},{label:"切换上一页",value:"↑ / ← / PgUp"},{label:"切换下一页",value:"↓ / → / PgDown"},{label:"切换下一页",value:"Enter / Space"},{label:"退出放映",value:"ESC"}]},{type:"幻灯片编辑",children:[{label:"新建幻灯片",value:"Enter"},{label:"移动画布",value:"Space + 鼠标拖拽"},{label:"缩放画布",value:"Ctrl + 鼠标滚轮"},{label:"放大画布",value:"Ctrl + ="},{label:"缩小画布",value:"Ctrl + -"},{label:"使画布适应当前屏幕",value:"Ctrl + 0"},{label:"上一页(未选中元素)",value:"↑"},{label:"下一页(未选中元素)",value:"↓"},{label:"上一页",value:"鼠标上滚 / PgUp"},{label:"下一页",value:"鼠标下滚 / PgDown"},{label:"快速创建文本",value:"双击空白处 / T"},{label:"快速创建矩形",value:"R"},{label:"快速创建圆形",value:"O"},{label:"快速创建线条",value:"L"},{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"},{label:"完成自定义形状绘制",value:"Enter"}]},{type:"表格编辑",children:[{label:"聚焦到下一个单元格",value:"Tab"},{label:"移动焦点单元格",value:"↑ / ← / ↓ / →"},{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 + E"},{label:"上角标",value:"Ctrl + ;"},{label:"下角标",value:"Ctrl + '"},{label:"选中段落",value:"ESC"}]}],lf=t=>{const{left:e,top:r,width:n,height:i,rotate:a=0}=t,o=Math.sqrt(Math.pow(n,2)+Math.pow(i,2))/2,s=Math.atan(i/n)*180/Math.PI,l=(180-a-s)*Math.PI/180,u=(s-a)*Math.PI/180,f=e+n/2,c=r+i/2,h=[f+o*Math.cos(l),f+o*Math.cos(u),f-o*Math.cos(l),f-o*Math.cos(u)],v=[c-o*Math.sin(l),c-o*Math.sin(u),c+o*Math.sin(l),c+o*Math.sin(u)];return{xRange:[Math.min(...h),Math.max(...h)],yRange:[Math.min(...v),Math.max(...v)]}},mO=t=>{const{xRange:e,yRange:r}=lf({left:t.left,top:t.top,width:t.width,height:t.height,rotate:0}),{xRange:n,yRange:i}=lf({left:t.left,top:t.top,width:t.width,height:t.height,rotate:t.rotate});return{offsetX:n[0]-e[0],offsetY:i[0]-r[0]}},Dy=t=>{let e,r,n,i;if(t.type==="line")e=t.left,r=t.left+Math.max(t.start[0],t.end[0]),n=t.top,i=t.top+Math.max(t.start[1],t.end[1]);else if("rotate"in t&&t.rotate){const{left:a,top:o,width:s,height:l,rotate:u}=t,{xRange:f,yRange:c}=lf({left:a,top:o,width:s,height:l,rotate:u});e=f[0],r=f[1],n=c[0],i=c[1]}else e=t.left,r=t.left+t.width,n=t.top,i=t.top+t.height;return{minX:e,maxX:r,minY:n,maxY:i}},_O=t=>{const e=[],r=[],n=[],i=[];t.forEach(u=>{const{minX:f,maxX:c,minY:h,maxY:v}=Dy(u);e.push(f),r.push(h),n.push(c),i.push(v)});const a=Math.min(...e),o=Math.max(...n),s=Math.min(...r),l=Math.max(...i);return{minX:a,maxX:o,minY:s,maxY:l}},SO=t=>{const e=[];return t.forEach(r=>{const n=e.findIndex(i=>i.value===r.value);if(n===-1)e.push(r);else{const i=e[n],a=Math.min(i.range[0],r.range[0]),o=Math.max(i.range[1],r.range[1]),s=[a,o],l={value:r.value,range:s};e[n]=l}}),e},bO=t=>{const e={};for(const r of t)e[r.id]=af(10);return e},wO=t=>{const e={},r={};for(const n of t){const i=n.groupId;i&&!e[i]&&(e[i]=af(10)),r[n.id]=af(10)}return{groupIdMap:e,elIdMap:r}},OS=t=>{const e=of(t);return[e.setAlpha(.3).toRgbString(),e.setAlpha(.1).toRgbString()]},NS=t=>{const e=t.start.join(","),r=t.end.join(",");if(t.broken){const n=t.broken.join(",");return`M${e} L${n} L${r}`}else if(t.broken2){const{minX:n,maxX:i,minY:a,maxY:o}=Dy(t);return i-n>=o-a?`M${e} L${t.broken2[0]},${t.start[1]} L${t.broken2[0]},${t.end[1]} ${r}`:`M${e} L${t.start[0]},${t.broken2[1]} L${t.end[0]},${t.broken2[1]} ${r}`}else if(t.curve){const n=t.curve.join(",");return`M${e} Q${n} ${r}`}else if(t.cubic){const[n,i]=t.cubic,a=n.join(","),o=i.join(",");return`M${e} C${a} ${o} ${r}`}return`M${e} L${r}`},CO=(t,e)=>{const r=t.getBoundingClientRect(),n=e.getBoundingClientRect();return r.top>=n.top&&r.bottom<=n.bottom},FS=["id"],$S={class:"icons"},zS={class:"content"},US={key:0,class:"title"},VS={class:"description"},HS={key:0,class:"control"},GS=Ue({__name:"Message",props:{id:{},message:{},type:{default:"success"},title:{default:""},duration:{default:3e3},closable:{type:Boolean,default:!1}},emits:["close","destroy"],setup(t,{expose:e,emit:r}){const{IconAttention:n,IconCheckOne:i,IconCloseOne:a,IconInfo:o,IconCloseSmall:s}=_S,l=t,u=r,f=fe(!0),c=fe(null),h=()=>{l.duration<=0||(c.value=setTimeout(d,l.duration))},v=()=>{c.value&&clearTimeout(c.value)},d=()=>f.value=!1;return yS(()=>{v()}),ir(()=>{h()}),e({close:d}),(p,g)=>(te(),He(mS,{name:"message-fade",appear:"",mode:"in-out",onBeforeLeave:g[3]||(g[3]=y=>u("close")),onAfterLeave:g[4]||(g[4]=y=>u("destroy"))},{default:mn(()=>[f.value?(te(),de("div",{key:0,class:"message",id:p.id},[q("div",{class:"message-container",onMouseenter:g[1]||(g[1]=y=>v()),onMouseleave:g[2]||(g[2]=y=>h())},[q("div",$S,[p.type==="warning"?(te(),He(oe(n),{key:0,theme:"filled",size:"18",fill:"#faad14"})):Ge("",!0),p.type==="success"?(te(),He(oe(i),{key:1,theme:"filled",size:"18",fill:"#52c41a"})):Ge("",!0),p.type==="error"?(te(),He(oe(a),{key:2,theme:"filled",size:"18",fill:"#ff4d4f"})):Ge("",!0),p.type==="info"?(te(),He(oe(o),{key:3,theme:"filled",size:"18",fill:"#1677ff"})):Ge("",!0)]),q("div",zS,[p.title?(te(),de("div",US,Ut(p.title),1)):Ge("",!0),q("div",VS,Ut(p.message),1)]),p.closable?(te(),de("div",HS,[q("span",{class:"close-btn",onClick:g[0]||(g[0]=y=>d())},[ze(oe(s))])])):Ge("",!0)],32)],8,FS)):Ge("",!0)]),_:1}))}}),WS=Ke(GS,[["__scopeId","data-v-bfa2994d"]]),uf=[];let Yr=null,jS=0;const qS={duration:3e3},yr=t=>{const e="message-"+jS++,r={...qS,...t,id:e};Yr||(Yr=document.createElement("div"),Yr.className="message-wrap",Yr.style.cssText=`
width: 100%;
position: fixed;
top: 0;
left: 0;
z-index: 6000;
pointer-events: none;
display: flex;
flex-direction: column;
box-sizing: border-box;
padding: 15px;
background-color: rgba(255, 255, 255, 0);
transition: all 1s ease-in-out;
align-items: center;
`,document.body.appendChild(Yr));const n=ze(WS,r,null),i=document.createElement("div");n.appContext=t.ctx||yr._context||null,n.props.onClose=t.onClose,n.props.onDestroy=()=>{Yr&&Yr.childNodes.length<=1&&(Yr.remove(),Yr=null),Fv(null,i)},Fv(n,i),Yr.appendChild(i.firstElementChild);const a={id:e,close:()=>{var o,s;return(s=(o=n==null?void 0:n.component)==null?void 0:o.exposed)==null?void 0:s.close()}};return uf.push(a),a};yr.success=(t,e)=>yr({...e,type:"success",message:t});yr.info=(t,e)=>yr({...e,type:"info",message:t});yr.warning=(t,e)=>yr({...e,type:"warning",message:t});yr.error=(t,e)=>yr({...e,type:"error",message:t});yr.closeAll=function(){for(let t=uf.length-1;t>=0;t--)uf[t].close()};const XS=t=>{const r=t.replace(/[\n\r]+/g,"
").split("
");let n="";for(const i of r)i&&(n+=`
>>6*(3-I)&63));var M=g.charAt(64);if(M)for(;y.length%4;)y.push(M);return y.join("")},parse:function(v){var d=v.length,p=this._map,g=p.charAt(64);if(g){var y=v.indexOf(g);y!=-1&&(d=y)}for(var m=[],w=0,k=0;k "&&C[_]!==" "&&C[_]!==" "&&C[_]!==`
`&&C[_]!=="\r";_++)R+=C[_];if(R=R.trim(),R[R.length-1]==="/"&&(R=R.substring(0,R.length-1),_--),!w(R)){let U;return R.trim().length===0?U="Invalid space after '<'.":U="Tag '"+R+"' is an invalid name.",y("InvalidTag",U,k(C,_))}const O=h(C,_);if(O===!1)return y("InvalidAttr","Attributes for '"+R+"' have open quote.",k(C,_));let E=O.value;if(_=O.index,E[E.length-1]==="/"){const U=_-E.length;E=E.substring(0,E.length-1);const N=d(E,I);if(N===!0)b=!0;else return y(N.err.code,N.err.msg,k(C,U+N.err.line))}else if(A)if(O.tagClosed){if(E.trim().length>0)return y("InvalidTag","Closing tag '"+R+"' can't have attributes or invalid starting.",k(C,x));if(M.length===0)return y("InvalidTag","Closing tag '"+R+"' has not been opened.",k(C,x));{const U=M.pop();if(R!==U.tagName){let N=k(C,U.tagStartPos);return y("InvalidTag","Expected closing tag '"+U.tagName+"' (opened in line "+N.line+", col "+N.col+") instead of closing tag '"+R+"'.",k(C,x))}M.length==0&&(T=!0)}}else return y("InvalidTag","Closing tag '"+R+"' doesn't have proper closing.",k(C,_));else{const U=d(E,I);if(U!==!0)return y(U.err.code,U.err.msg,k(C,_-E.length+U.err.line));if(T===!0)return y("InvalidXml","Multiple possible root nodes found.",k(C,_));I.unpairedTags.indexOf(R)!==-1||M.push({tagName:R,tagStartPos:x}),b=!0}for(_++;_ c.options.UploadQueueSize;){var M=h[I].state==="waiting"||h[I].state==="checking"||h[I].state==="uploading";!h[I]||!M?(v[h[I].id]&&delete v[h[I].id],h.splice(I,1),p--):I++}y()}},w=function C(){if(!(d>=c.options.FileParallelLimit)){for(;h[p]&&h[p].state!=="waiting";)p++;if(!(p>=h.length)){var I=h[p];p++,d++,I.state="checking",I.params.onTaskStart&&I.params.onTaskStart(g(I)),!I.params.UploadData&&(I.params.UploadData={});var M=o.formatParams(I.api,I.params);s[I.api].call(c,M,function(b,T){c._isRunningTask(I.id)&&((I.state==="checking"||I.state==="uploading")&&(I.state=b?"error":"success",b&&(I.error=b),d--,y(),C(),I.callback&&I.callback(b,T),I.state==="success"&&(I.params&&(delete I.params.UploadData,delete I.params.Body,delete I.params),delete I.callback)),m())}),y(),setTimeout(C)}}},k=function(I,M){var b=v[I];if(b){var T=b&&b.state==="waiting",_=b&&(b.state==="checking"||b.state==="uploading");if(M==="canceled"&&b.state!=="canceled"||M==="paused"&&T||M==="paused"&&_){b.state=M,c.emit("inner-kill-task",{TaskId:I,toState:M});try{var x=b&&b.params&&b.params.UploadData.UploadId}catch{}M==="canceled"&&x&&a.removeUsing(x),y(),_&&(d--,w()),M==="canceled"&&(b.params&&(delete b.params.UploadData,delete b.params.Body,delete b.params),delete b.callback)}m()}};c._addTasks=function(C){o.each(C,function(I){c._addTask(I.api,I.params,I.callback,!0)}),y()};var P=!0;c._addTask=function(C,I,M,b){I=o.formatParams(C,I);var T=o.uuid();I.TaskId=T,I.onTaskReady&&I.onTaskReady(T),I.TaskReady&&(I.TaskReady(T),P&&console.warn('warning: Param "TaskReady" has been deprecated. Please use "onTaskReady" instead.'),P=!1);var _={params:I,callback:M,api:C,index:h.length,id:T,Bucket:I.Bucket,Region:I.Region,Key:I.Key,FilePath:I.FilePath||"",state:"waiting",loaded:0,size:0,speed:0,percent:0,hashPercent:0,error:null,_custom:I._custom},x=I.onHashProgress;I.onHashProgress=function(R){c._isRunningTask(_.id)&&(_.hashPercent=R.percent,x&&x(R),y())};var A=I.onProgress;return I.onProgress=function(R){c._isRunningTask(_.id)&&(_.state==="checking"&&(_.state="uploading"),_.loaded=R.loaded,_.speed=R.speed,_.percent=R.percent,A&&A(R),y())},o.getFileSize(C,I,function(R,O){if(R)return M(o.error(R));v[T]=_,h.push(_),_.size=O,!b&&y(),w(),m()}),T},c._isRunningTask=function(C){var I=v[C];return!!(I&&(I.state==="checking"||I.state==="uploading"))},c.getTaskList=function(){return o.map(h,g)},c.cancelTask=function(C){k(C,"canceled")},c.pauseTask=function(C){k(C,"paused")},c.restartTask=function(C){var I=v[C];I&&(I.state==="paused"||I.state==="error")&&(I.state="waiting",y(),p=Math.min(p,I.index),w())},c.isUploadRunning=function(){return d||p 0?r:1:r))}var $M=function(t,e,r,n){for(;r =0){var k=u?Nt(l,d,g,m,I):Nt(s,v,p,y,I);return u?[r,k]:[k,r]}}s=y,l=m;break}}},e}(it),LP=function(t){be(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e}(l_),EP=function(t){be(e,t);function e(r){var n=t.call(this,r)||this;return n.type="ec-polygon",n}return e.prototype.getDefaultShape=function(){return new LP},e.prototype.buildPath=function(r,n){var i=n.points,a=n.stackedOnPoints,o=0,s=i.length/2,l=n.smoothMonotone;if(n.connectNulls){for(;s>0&&Ui(i[s*2-2],i[s*2-1]);s--);for(;o1&&n&&n.length>1){var a=id(n)/id(i);!isFinite(a)&&(a=1),e.pinchScale=a;var o=gC(n);return e.pinchX=o[0],e.pinchY=o[1],{type:"pinch",target:t[0].target,event:e}}}}};function po(){return[1,0,0,1,0,0]}function Mh(t){return t[0]=1,t[1]=0,t[2]=0,t[3]=1,t[4]=0,t[5]=0,t}function yC(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4],t[5]=e[5],t}function ya(t,e,r){var n=e[0]*r[0]+e[2]*r[1],i=e[1]*r[0]+e[3]*r[1],a=e[0]*r[2]+e[2]*r[3],o=e[1]*r[2]+e[3]*r[3],s=e[0]*r[4]+e[2]*r[5]+e[4],l=e[1]*r[4]+e[3]*r[5]+e[5];return t[0]=n,t[1]=i,t[2]=a,t[3]=o,t[4]=s,t[5]=l,t}function ad(t,e,r){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4]+r[0],t[5]=e[5]+r[1],t}function im(t,e,r,n){n===void 0&&(n=[0,0]);var i=e[0],a=e[2],o=e[4],s=e[1],l=e[3],u=e[5],f=Math.sin(r),c=Math.cos(r);return t[0]=i*c+s*f,t[1]=-i*f+s*c,t[2]=a*c+l*f,t[3]=-a*f+c*l,t[4]=c*(o-n[0])+f*(u-n[1])+n[0],t[5]=c*(u-n[1])-f*(o-n[0])+n[1],t}function mC(t,e,r){var n=r[0],i=r[1];return t[0]=e[0]*n,t[1]=e[1]*i,t[2]=e[2]*n,t[3]=e[3]*i,t[4]=e[4]*n,t[5]=e[5]*i,t}function Ph(t,e){var r=e[0],n=e[2],i=e[4],a=e[1],o=e[3],s=e[5],l=r*o-a*n;return l?(l=1/l,t[0]=o*l,t[1]=-a*l,t[2]=-n*l,t[3]=r*l,t[4]=(n*s-o*i)*l,t[5]=(a*i-r*s)*l,t):null}var Ne=function(){function t(e,r){this.x=e||0,this.y=r||0}return t.prototype.copy=function(e){return this.x=e.x,this.y=e.y,this},t.prototype.clone=function(){return new t(this.x,this.y)},t.prototype.set=function(e,r){return this.x=e,this.y=r,this},t.prototype.equal=function(e){return e.x===this.x&&e.y===this.y},t.prototype.add=function(e){return this.x+=e.x,this.y+=e.y,this},t.prototype.scale=function(e){this.x*=e,this.y*=e},t.prototype.scaleAndAdd=function(e,r){this.x+=e.x*r,this.y+=e.y*r},t.prototype.sub=function(e){return this.x-=e.x,this.y-=e.y,this},t.prototype.dot=function(e){return this.x*e.x+this.y*e.y},t.prototype.len=function(){return Math.sqrt(this.x*this.x+this.y*this.y)},t.prototype.lenSquare=function(){return this.x*this.x+this.y*this.y},t.prototype.normalize=function(){var e=this.len();return this.x/=e,this.y/=e,this},t.prototype.distance=function(e){var r=this.x-e.x,n=this.y-e.y;return Math.sqrt(r*r+n*n)},t.prototype.distanceSquare=function(e){var r=this.x-e.x,n=this.y-e.y;return r*r+n*n},t.prototype.negate=function(){return this.x=-this.x,this.y=-this.y,this},t.prototype.transform=function(e){if(e){var r=this.x,n=this.y;return this.x=e[0]*r+e[2]*n+e[4],this.y=e[1]*r+e[3]*n+e[5],this}},t.prototype.toArray=function(e){return e[0]=this.x,e[1]=this.y,e},t.prototype.fromArray=function(e){this.x=e[0],this.y=e[1]},t.set=function(e,r,n){e.x=r,e.y=n},t.copy=function(e,r){e.x=r.x,e.y=r.y},t.len=function(e){return Math.sqrt(e.x*e.x+e.y*e.y)},t.lenSquare=function(e){return e.x*e.x+e.y*e.y},t.dot=function(e,r){return e.x*r.x+e.y*r.y},t.add=function(e,r,n){e.x=r.x+n.x,e.y=r.y+n.y},t.sub=function(e,r,n){e.x=r.x-n.x,e.y=r.y-n.y},t.scale=function(e,r,n){e.x=r.x*n,e.y=r.y*n},t.scaleAndAdd=function(e,r,n,i){e.x=r.x+n.x*i,e.y=r.y+n.y*i},t.lerp=function(e,r,n,i){var a=1-i;e.x=a*r.x+i*n.x,e.y=a*r.y+i*n.y},t}(),hs=Math.min,vs=Math.max,fi=new Ne,hi=new Ne,vi=new Ne,di=new Ne,Fa=new Ne,$a=new Ne,ht=function(){function t(e,r,n,i){n<0&&(e=e+n,n=-n),i<0&&(r=r+i,i=-i),this.x=e,this.y=r,this.width=n,this.height=i}return t.prototype.union=function(e){var r=hs(e.x,this.x),n=hs(e.y,this.y);isFinite(this.x)&&isFinite(this.width)?this.width=vs(e.x+e.width,this.x+this.width)-r:this.width=e.width,isFinite(this.y)&&isFinite(this.height)?this.height=vs(e.y+e.height,this.y+this.height)-n:this.height=e.height,this.x=r,this.y=n},t.prototype.applyTransform=function(e){t.applyTransform(this,this,e)},t.prototype.calculateTransform=function(e){var r=this,n=e.width/r.width,i=e.height/r.height,a=po();return ad(a,a,[-r.x,-r.y]),mC(a,a,[n,i]),ad(a,a,[e.x,e.y]),a},t.prototype.intersect=function(e,r){if(!e)return!1;e instanceof t||(e=t.create(e));var n=this,i=n.x,a=n.x+n.width,o=n.y,s=n.y+n.height,l=e.x,u=e.x+e.width,f=e.y,c=e.y+e.height,h=!(a0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s),o+=i,l+=i}else{for(s=i+1;ls&&(l=s);var u=o;o=i-l,l=i-u}for(o++;os&&(l=s);var u=o;o=i-l,l=i-u}else{for(s=n-i;l=0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s),o+=i,l+=i}for(o++;or);f++);f=h(f-1,s-2)}d=o[f+1],v=o[f]}if(v&&d){this._lastFr=f,this._lastFrP=r;var g=d.percent-v.percent,y=g===0?1:h((r-v.percent)/g,1);d.easingFunc&&(y=d.easingFunc(y));var m=n?this._additiveValue:u?Va:e[l];if((bs(a)||u)&&!m&&(m=this._additiveValue=[]),this.discrete)e[l]=y<1?v.rawValue:d.rawValue;else if(bs(a))a===il?Ku(m,v[i],d[i],y):GC(m,v[i],d[i],y);else if(bd(a)){var w=v[i],k=d[i],P=a===xf;e[l]={type:P?"linear":"radial",x:_n(w.x,k.x,y),y:_n(w.y,k.y,y),colorStops:xe(w.colorStops,function(I,M){var b=k.colorStops[M];return{offset:_n(I.offset,b.offset,y),color:nl(Ku([],I.color,b.color,y))}}),global:k.global},P?(e[l].x2=_n(w.x2,k.x2,y),e[l].y2=_n(w.y2,k.y2,y)):e[l].r=_n(w.r,k.r,y)}else if(u)Ku(m,v[i],d[i],y),n||(e[l]=nl(m));else{var C=_n(v[i],d[i],y);n?this._additiveValue=C:e[l]=C}n&&this._addToTarget(e)}}},t.prototype._addToTarget=function(e){var r=this.valType,n=this.propName,i=this._additiveValue;r===Ss?e[n]=e[n]+i:r===ao?(ln(e[n],Va),_s(Va,Va,i,1),e[n]=nl(Va)):r===il?_s(e[n],e[n],i,1):r===bm&&_d(e[n],e[n],i,1)},t}(),Eh=function(){function t(e,r,n,i){if(this._tracks={},this._trackKeys=[],this._maxTime=0,this._started=0,this._clip=null,this._target=e,this._loop=r,r&&i){Jy("Can' use additive animation on looped animation.");return}this._additiveAnimators=i,this._allowDiscrete=n}return t.prototype.getMaxTime=function(){return this._maxTime},t.prototype.getDelay=function(){return this._delay},t.prototype.getLoop=function(){return this._loop},t.prototype.getTarget=function(){return this._target},t.prototype.changeTarget=function(e){this._target=e},t.prototype.when=function(e,r,n){return this.whenWithKeys(e,r,et(r),n)},t.prototype.whenWithKeys=function(e,r,n,i){for(var a=this._tracks,o=0;og[1]&&(g[1]=p)}return this._rawCount=this._count=l,{start:s,end:l}},t.prototype._initDataFromProvider=function(e,r,n){for(var i=this._provider,a=this._chunks,o=this._dimensions,s=o.length,l=this._rawExtent,u=xe(o,function(m){return m.property}),f=0;fy[1]&&(y[1]=g)}}!i.persistent&&i.clean&&i.clean(),this._rawCount=this._count=r,this._extent=[]},t.prototype.count=function(){return this._count},t.prototype.get=function(e,r){if(!(r>=0&&re){a?r.push(o(a,l,e)):i&&r.push(o(i,l,0),o(i,l,e));break}else i&&(r.push(o(i,l,0)),i=null),r.push(l),a=l}return r}function NP(t,e,r){var n=t.getVisual("visualMeta");if(!(!n||!n.length||!t.count())&&e.type==="cartesian2d"){for(var i,a,o=n.length-1;o>=0;o--){var s=t.getDimensionInfo(n[o].dimension);if(i=s&&s.coordDim,i==="x"||i==="y"){a=n[o];break}}if(a){var l=e.getAxis(i),u=xe(a.stops,function(w){return{coord:l.toGlobalCoord(l.dataToCoord(w.value)),color:w.color}}),f=u.length,c=a.outerColors.slice();f&&u[0].coord>u[f-1].coord&&(u.reverse(),c.reverse());var h=OP(u,i==="x"?r.getWidth():r.getHeight()),v=h.length;if(!v&&f)return u[0].coord<0?c[1]?c[1]:u[f-1].color:c[0]?c[0]:u[0].color;var d=10,p=h[0].coord-d,g=h[v-1].coord+d,y=g-p;if(y<.001)return"transparent";G(h,function(w){w.offset=(w.coord-p)/y}),h.push({offset:v?h[v-1].offset:.5,color:c[1]||"transparent"}),h.unshift({offset:v?h[0].offset:.5,color:c[0]||"transparent"});var m=new c0(0,0,0,0,h,!0);return m[i]=p,m[i+"2"]=g,m}}}function FP(t,e,r){var n=t.get("showAllSymbol"),i=n==="auto";if(!(n&&!i)){var a=r.getAxesByScale("ordinal")[0];if(a&&!(i&&$P(a,e))){var o=e.mapDimension(a.dim),s={};return G(a.getViewLabels(),function(l){var u=a.scale.getRawOrdinalNumber(l.tickValue);s[u]=1}),function(l){return!s.hasOwnProperty(e.get(o,l))}}}}function $P(t,e){var r=t.getExtent(),n=Math.abs(r[1]-r[0])/t.scale.count();isNaN(n)&&(n=0);for(var i=e.count(),a=Math.max(1,Math.round(i/5)),o=0;on)return!1;return!0}function zP(t,e){return isNaN(t)||isNaN(e)}function UP(t){for(var e=t.length/2;e>0&&zP(t[e*2-2],t[e*2-1]);e--);return e-1}function Vg(t,e){return[t[e*2],t[e*2+1]]}function VP(t,e,r){for(var n=t.length/2,i=r==="x"?0:1,a,o,s=0,l=-1,u=0;u