@mescius/spread-sheets-shapes
Version:
SpreadJS Shape plugin
12 lines • 978 kB
JavaScript
/*!
*
* SpreadJS Library 19.1.0
*
* Copyright(c) MESCIUS inc. All rights reserved.
*
* Licensed under the SpreadJS Commercial License.
* us.sales@mescius.com
* https://developer.mescius.com/spreadjs
*
*/
!function(t){"object"==typeof module&&"object"==typeof module.exports?module.exports=t(require("@mescius/spread-sheets")):"function"==typeof define&&define.amd?define(["@mescius/spread-sheets"],t):"object"==typeof exports?exports.Spread=t(require("@mescius/spread-sheets")):t(GC)}((function(t){!function(){"use strict";var n,V={8:function(t,n,V){var i,e,r,c,o,d,a,s,h,u,x,f,y,l,g,A,v,w,p,b,L,m,j,C,R,_,M,I,E,F,S,X,O,Y;function T(t,n){return t.reduce((function(t,V){var i;return t+(i="function"==typeof n?n(V):Number(V))}),0)}function P(t,n){return t-n}function N(t){var n={},V=[];return t.forEach((function(t){n[t]===C&&(n[t]=t,V.push(t))})),V}function D(t,n){return"string"===n&&t.length>0&&"="===t[0]}function k(){var t,n;p||(t=document,(n=(p=t.createElement("span")).style).position="absolute",n.left="-10000px",n.top="-10000px",t.body.appendChild(p))}function q(t){return b[t]||(p||k(),t&&(p.style.font=t),p.innerHTML="H",b[t]=p.offsetHeight),b[t]}function U(){var t=navigator.platform;return t&&t.indexOf("Mac")>-1}function B(t,n){var V,i;n&&(U()?(V=(i=m)[n])||(V=i[n]=Z(n)):V=n,t.font=V)}function Z(t){if(t.indexOf(j)>=0)return t;p||k();var n=p.style;return n.font=t,n.fontFamily=[].concat(n.fontFamily.split(","),j.split(",")).join(","),n.font}function z(t){var n,V;return L[t]||(p||(n=document,(V=(p=n.createElement("span")).style).position="absolute",V.left="-1000px",n.body.appendChild(p)),t&&(p.style.font=t),p.innerHTML="H",L[t]=p.style.fontSize),L[t]}function H(t){var n,V,i,e,r,c,o=[];for(n=1;n<arguments.length;n++)o[n-1]=arguments[n];for(V=Object(t),i=o.length,e=0;e<i;e++)if(null!=(r=o[e]))for(c in r)Object.prototype.hasOwnProperty.call(r,c)&&(V[c]=r[c]);return V}function Q(t){return t/180*Math.PI}function J(t){return 180*t/Math.PI}function G(t,n,V){var i=t.x,e=t.y,r=K({x:i-n.x,y:e-n.y},V);return{x:r.x+n.x,y:r.y+n.y}}function W(t,n){return{x:(t.x+n.x)/2,y:(t.y+n.y)/2}}function K(t,n){var V=Math.sin(n),i=Math.cos(n),e,r;return{x:t.x*i-t.y*V,y:t.x*V+t.y*i}}function $(t,n,V){var i;return et([{x:t.left,y:t.top},{x:t.right,y:t.top},{x:t.left,y:t.bottom},{x:t.right,y:t.bottom}].map((function(t){return G(t,n,V)})))}function tt(t){t.width=t.right-t.left,t.height=t.bottom-t.top}function nt(t,n,V){var i={left:t.left+n,right:t.right+n,top:t.top+V,bottom:t.bottom+V};return tt(i),i}function Vt(t,n,V,i,e){V===C&&i===C&&e===C?V=i=e=n:i===C&&e===C&&(i=n,e=V);var r={left:t.left-e,right:t.right+V,top:t.top-n,bottom:t.bottom+i};return tt(r),r}function it(t,n,V){return n>=t.left&&n<=t.right&&V>=t.top&&V<=t.bottom}function et(t){var n=Number.MAX_VALUE,V=Number.MAX_VALUE,i=Number.MIN_VALUE,e=Number.MIN_VALUE;return t.forEach((function(t){n=v(n,t.x),V=v(V,t.y),i=w(i,t.x),e=w(e,t.y)})),{left:n,top:V,right:i,bottom:e,width:i-n,height:e-V}}function rt(t){var n,V,i=Number.MAX_VALUE,e=Number.MIN_VALUE,r=Number.MAX_VALUE,c=Number.MIN_VALUE;for(n=0;n<t.length;n++)V=t[n],i=v(i,V.left),e=w(e,V.right),r=v(r,V.top),c=w(c,V.bottom);return{left:i,top:r,right:e,bottom:c,width:e-i,height:c-r}}function ct(t,n,V,i){return{x:t+V/2,y:n+i/2}}function ot(t,n){var V,i,e=typeof t;return"function"===e?t(n):"string"==typeof t&&D(V=t,e)&&(i=n&&n.getValueResolver())?i.getValue(V).substring(1):t}function dt(t){return JSON.parse(JSON.stringify(t))}function at(t,n,V){V.configurable=!0,V.enumerable=!0,Object.defineProperty(t,n,V)}function st(t){return t&&t.length}function ht(t,n,V){var i,e;if(n){if(e=[].indexOf)return e.call(n,t,V);for(i=n.length,null==V&&(V=0),V=V<0?Math.max(0,i+V):V;V<i;V++)if(void 0!==n[V]&&n[V]===t)return V}return-1}function ut(t,n){t.push(n)}function xt(t,n){var V=t,i=V.indexOf(n);i>=0&&V.splice(i,1)}function ft(t){return document.createElement(t)}function yt(t,n,V,i,e,r){var c,o,d=0,a=Lt(V,i,e,r),s=Lt(V,i,t,n),h=Lt(t,n,e,r);return h+s===a?d:a<=1e-5||h*h>=a*a+s*s?d=s:s*s>=a*a+h*h?d=h:(c=(a+s+h)/2,d=2*(o=Math.sqrt(c*(c-a)*(c-s)*(c-h)))/a)}function lt(t,n){var V,i=Object.keys(t);for(V=0;V<i.length;V++)if(n===t[i[V]])return!0;return!1}function gt(t){return atob(t.slice(d.length))}function At(t){var n,V;if(t)return(V=(n=(new DOMParser).parseFromString(gt(t),"image/svg+xml")).documentElement)instanceof SVGSVGElement?V:void 0}function vt(t){var n=0,V=0,i=At(t);return i&&(n=i.width.baseVal.value,V=i.height.baseVal.value),{width:n,height:V}}function wt(t,n){var V,i="data-size-cache";return x(t[i])?((V={width:t.naturalWidth,height:t.naturalHeight}).width&&V.height||s(n)&&(V=vt(n)),t[i]=V,V):t[i]}function pt(t){var n,V=At(t);if(V)return V.width.baseVal.valueAsString=V.width.baseVal.value.toString(),V.height.baseVal.valueAsString=V.height.baseVal.value.toString(),n=btoa((new XMLSerializer).serializeToString(V)),d+n}function bt(t,n){u(t,(function(t){n(t.naturalWidth,t.naturalHeight)}))}function Lt(t,n,V,i){return(0,o.fixNumber)(Math.sqrt((t-V)*(t-V)+(n-i)*(n-i)))}function mt(t,n){var V=t.reduce((function(t,n){return t+n}),0);return t.map((function(t){return 0===V?0:t/V*n}))}function jt(){var t=this;return t._fn.apply(null,[].concat.apply([t.YC,t.ZC],arguments))}function Ct(t,n,V){var i={_fn:t,YC:n,ZC:V};return jt.bind(i)}function Rt(t,n){var V=[n].concat(t.values);return t.apply(null,V)}function _t(t,n,V,i,e,r,c){var o,d,a,s,h,u,x,f,y,l,g,A,v,w,p,b,L,m,j,C=r[0],R=r[1],_=R-C,E=c.F0V,F=c.S0V,S=E[t[0]],X=E[t[1]];if(S||X){if(o=Ct(S||X,n,V),(d=S?F[t[0]]:F[t[1]]).length>1&&(a=d.slice(1).map((function(t){return c.getVariable(t)}))),o.values=a||[],x=(s=Rt(o,C))-(h=Rt(o,R)),A={min:l=(f=[s,h])[(y=(u=s>h)?1:0)%2],max:g=f[(y+1)%2],reversed:u},(p=S?i:e)<l)v=u?R:C;else if(p>g)v=u?C:R;else{for(m=0,j=0,w=(L=Rt(o,b=Math.abs((p-s)*_/x)+C))-p;Math.abs(w)>M&&!(j-(w=(L=Rt(o,b+=_*w/x))-p)<M)&&(j=w,!(++m>I)););v=b}return A.value=v,A}}function Mt(t,n,V,i,e,r){var c=Math.atan2(e-V,i-n)*F;return r?r.toHalfCircle&&c<0?c+=X:r.toNegative&&c>0&&(c-=X):c<0&&(c+=S),c}function It(t,n,V,i,e,r,c,o,d){t.ellipse?t.ellipse(n,V,i,e,r,c,o,d):(t.save(),t.translate(n,V),t.rotate(r),t.scale(i,e),t.arc(0,0,1,c,o,d),t.restore())}function Et(t,n,V){var i,e,r,c,o,d,a,s,h,u,x,v,w,p,b=t.left,L=t.top,m=t.width,j=t.height;if(0===(n%=360))return i=b+m,e=L+j,V?{left:b,top:L,right:i,bottom:e}:[{x:b,y:L},{x:i,y:L},{x:i,y:e},{x:b,y:e}];for(n=Q(n),c=(r=t.getShapeCenter()).x,o=r.y,d=l(m*m+j*j)/2,s=[],h=[],v=[a=g(j,m),-a,A-a,A+a],w=0;w<4;w++)p=v[w]+n,u=s[w]=c+d*f(p),x=s[w+4]=o+d*y(p),h.push({x:u,y:x});return V?s:h}function Ft(t){var n,V,i=0,r=[i];for(n=0;n<t.getRowCount(e.SheetArea.viewport);n++)V=t.Gt(n,e.SheetArea.viewport),r.push(i+V/2),i+=V,r.push(i);return r}function St(t){var n,V,i=0,r=[i];for(n=0;n<t.getColumnCount(e.SheetArea.viewport);n++)V=t.nn(n,e.SheetArea.viewport),r.push(i+V/2),i+=V,r.push(i);return r}function Xt(t){return t&&"object"==typeof t&&"SparklineExValue"===t.typeName}function Ot(t){return Xt(t)&&"IMAGE"===t.name}function Yt(t){if(t.startsWith("data:"))return e.Util.Qr(t).type}function Tt(t){var n=t.Mf,V=t.startRow(),i=t.startColumn(),e=n.C0(V),r=n.S0(i);return n.shapeLayers[3*e+r]}function Pt(t,n){if(!n||!t||!t.Lp)return n;var V=t.Lp.parse(t.Uw(),n,0,0,!1,!1,!1);return t.Lp.unparse(t.Uw(),V,0,0,!1,!1,1)}function Nt(t,n){var V,i;if(!x(n)&&""!==n&&"#REF!"!==n&&"=#REF!"!==n){try{V=(i=(0,c.formulaToExpression)(t.parent&&t.parent.getActiveSheet()||t,n,void 0,void 0,!1))&&kt(t,i)}catch(t){V=C}return V}}function Dt(t,n){var V,i,c;if(t&&t instanceof r.CalcReference&&1===t.SDt)return V=t.$gt[0],{cellRange:i=new e.Range(V.row,V.col,V.rowCount||1,V.colCount||1),sheet:c=t.rT&&t.rT.Mf||n}}function kt(t,n){var V,i;if(!(n.row<0||n.column<0||n.endRow<0||n.endColumn<0||void 0===n.row||void 0===n.column||n.hHr))return V=n.source,i=new e.Range(n.row,n.column,n.endRow?n.endRow-n.row+1:1,n.endColumn?n.endColumn-n.column+1:1),{sheet:V&&V.getSheet?V.getSheet():t,cellRange:i}}function qt(t){var n=(0,c.rangeToFormula)(t.cellRange,0,0,0),V=(0,e.qTe)(t.sheet.name());return"=".concat(V,"!").concat(n)}function Ut(t,n,V){var i,e,r;if(t){for(i={};n&&8===n.type;){if(!(e=n.value)||i[e])return;i[e]=!0,V&&t.parent&&t.parent.yC.addUsedCustomName(e),!(r=t.getCustomName(e))&&t.parent&&(r=t.parent.getCustomName(e)),n=r&&r.getExpression()}return n}}function Bt(t){return t&&t.ayt&&t.cyt}function Zt(t,n,V,i,e){var r,c,o,d=t.ctV,a=d&&d.getService();a&&(c=(r=t.Mf)&&r.Uw(),a.setFormula(d.id,n,V,i,c,e,r.options.keepUnknownFormulas),t.D0V&&c&&(o=zt(r,a.getExpression(d.id,n)))&&c.addReferenceSheetName(o.name()))}function zt(t,n){var V,i;if(t&&n)return 1===n.type&&(i=(V=n.source)&&V.getSheet&&V.getSheet())!==t?i:void 0}function Ht(t,n){var V=Qt(t,n);return V||(V=Tt(t)),V.getPointer(n)}function Qt(t,n){var V,i=t.Mf,e=i.uw(),r=i.FL(n.pageY-e.top),c=i.PL(n.pageX-e.left),o=function(t,n,V){return t>=n&&t<=V};return o(r,0,2)&&o(c,0,2)&&(V=i.shapeLayers[3*r+c]),V}function Jt(t){var n=t.ctV,V=n.left,i=n.top,r=n.width,c=n.height,o=Tt(t),d=(0,e.GC$)(o.host).offset(),a=V-o.scrollLeft||0,s=i-o.scrollTop||0,h=d.left+a,u=d.top+s;return new R(h,u,r,c)}function Gt(t){var n=Jt(t),V=(0,e.GC$)(t.Mf.parent.j2()).offset();return n.x-=V.left,n.y-=V.top,n.x=Math.max(n.x,0),n.y=Math.max(n.y,0),n}Object.defineProperty(n,"__esModule",{value:!0}),n.getDomRectBaseSheetLayer=n.getShapeLayerByMouseEvt=n.getPointerByMouseEvt=n.getReferenceSheetByExpression=n.setFormulaImp=n.isExternalSource=n.getExpressionReferencedByNameExpr=n.getRangeFormula=n.expressionToRangeInfo=n.convertCalcReferenceToRangeInfo=n.getRangeInfo=n.addWorkSheetNameIfNeed=n.getShapeStartLayer=n.getImageTypeFromDataUrl=n.isImageSparkLineValue=n.isSparkLineValue=n.getHorizontalGridLine=n.getVerticalGridLine=n.getShapePoints=n.Common=n.drawEllipse=n.getLineShapeInGroup=n.getShapeNameList=n.getAdjustAngle=n.getAdjustValue=n.Point=n.Rect=n.toRadius=n.distinct=n.ascSortFunc=n.sum=void 0,i=V(7234),e=V(1376),r=V(5035),c=V(3789),o=V(5311),d=e.WAe.SVG_IMAGE_DATA_URL_PREFIX,a=e.WAe.isBase64ImageStr,s=e.WAe.isSVGBase64ImageStr,h=e.WAe.isVectorBase64ImageStr,u=e.WAe.loadImageElement,x=i.Common.lt.ht,f=Math.cos,y=Math.sin,l=Math.sqrt,g=Math.atan2,A=Math.PI,v=Math.min,w=Math.max,b={},L={},m={},j='"Helvetica Neue", Arial, sans-serif',C=void 0,n.sum=T,n.ascSortFunc=P,n.distinct=N,n.toRadius=Q,R=function(){function t(t,n,V,i){var e=this;V<0&&(t-=V=-V),i<0&&(n-=i=-i),e.x=t,e.y=n,e.width=V,e.height=i}return t.prototype.getIntersectRect=function(t){return this.getIntersect(t.x,t.y,t.width,t.height)},t.prototype.getIntersect=function(n,V,i,e){i<0&&(n-=i=-i),e<0&&(V-=e=-e);var r=this,c=r.x,o=r.y,d=r.x+r.width,a=r.y+r.height,s=n,h=V,u=n+i,x=V+e,f=Math.max(c,s),y=Math.max(o,h),l,g,A,v,w=Math.min(d,u)-f,p=Math.min(a,x)-y;if(w>0&&p>0)return new t(f,y,w,p)},t.prototype.intersect=function(t,n,V,i){var e=this;return V<0&&(t-=V=-V),i<0&&(n-=i=-i),t<e.x+e.width&&e.x<t+V&&n<e.y+e.height&&e.y<n+i},t.prototype.expand=function(t){var n=this;n.x-=t,n.y-=t,n.width+=2*t,n.height+=2*t},t}(),n.Rect=R,_=function(){function t(t,n){var V=this;V.x=t,V.y=n}return t.prototype.clone=function(){var n=this;return new t(n.x,n.y)},t}(),n.Point=_,M=1e-10,I=100,n.getAdjustValue=_t,F=180*(E=6e4)/Math.PI,S=360*E,X=180*E,n.getAdjustAngle=Mt,O=function(t){var V=[];return t.forEach((function(t){3===t.ttV?V=V.concat((0,n.getShapeNameList)(t.tin)):V.push(t.name())})),V},n.getShapeNameList=O,Y=function(t){var V=[];return t.tin.forEach((function(t){4===t.ttV&&V.push(t),3===t.ttV&&(V=V.concat((0,n.getLineShapeInGroup)(t)))})),V},n.getLineShapeInGroup=Y,n.drawEllipse=It,n.Common={getFontHeight:q,setContextFont:B,getFontSize:z,extend:H,toRadius:Q,toAngle:J,distance:Lt,distributeByWeight:mt,isEnumValue:lt,isBase64ImageStr:a,isSVGBase64ImageStr:s,isVectorBase64ImageStr:h,getImgNaturalSize:wt,fixSVGBase64ImageForFirefox:pt,getBase64ImageSize:bt,rotatePoint:G,middlePoint:W,rotateVector:K,rotateBound:$,setRectSize:tt,translateRectangle:nt,expandRectangle:Vt,pointIsInRectangle:it,calculateBoundByPoints:et,calculateBoundByRects:rt,calculateRectangleCenterPoint:ct,getOptionValue:ot,cloneOptions:dt,defineProperty:at,ocV:st,Rh:ht,arrayPush:ut,Array_remove:xt,createElement:ft,fixNumber:o.fixNumber,getPointToLine:yt},n.getShapePoints=Et,n.getVerticalGridLine=Ft,n.getHorizontalGridLine=St,n.isSparkLineValue=Xt,n.isImageSparkLineValue=Ot,n.getImageTypeFromDataUrl=Yt,n.getShapeStartLayer=Tt,n.addWorkSheetNameIfNeed=Pt,n.getRangeInfo=Nt,n.convertCalcReferenceToRangeInfo=Dt,n.expressionToRangeInfo=kt,n.getRangeFormula=qt,n.getExpressionReferencedByNameExpr=Ut,n.isExternalSource=Bt,n.setFormulaImp=Zt,n.getReferenceSheetByExpression=zt,n.getPointerByMouseEvt=Ht,n.getShapeLayerByMouseEvt=Qt,n.getDomRectBaseSheetLayer=Gt},156:function(t,n,V){var i,e,r,c,o,d,a,s,h,u,x;function f(t,n){x[t]=n}function y(t){return x[t]}Object.defineProperty(n,"__esModule",{value:!0}),n.getFormControlCtor=n.registerCustomFormControl=void 0,i=V(590),e=V(5917),r=V(5858),c=V(8741),o=V(1409),d=V(6517),a=V(1340),s=V(6798),h=V(1778),u=V(1889),(x={})[i.FormControlType.button]=e.ButtonFormControl,x[i.FormControlType.spinButton]=u.SpinButtonFormControl,x[i.FormControlType.listBox]=a.ListBoxFormControl,x[i.FormControlType.checkBox]=r.CheckBoxFormControl,x[i.FormControlType.optionButton]=s.RadioFormControl,x[i.FormControlType.comboBox]=c.ComboFormControl,x[i.FormControlType.label]=d.LabelFormControl,x[i.FormControlType.groupBox]=o.GroupBoxFormControl,x[i.FormControlType.scrollBar]=h.ScrollFormControl,n.registerCustomFormControl=f,n.getFormControlCtor=y},233:function(t,n,V){var i,e,r,c,o,d,a,s,h,u,x,f,y,l,g,A,v,w=this&&this.vJr||(p=function(t,n){return p=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,n){t.__proto__=n}||function(t,n){for(var V in n)Object.prototype.hasOwnProperty.call(n,V)&&(t[V]=n[V])},p(t,n)},function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function V(){this.constructor=t}p(t,n),t.prototype=null===n?Object.create(n):(V.prototype=n.prototype,new V)}),p;Object.defineProperty(n,"__esModule",{value:!0}),n.CameraShape=void 0,i=V(8724),e=V(590),r=V(6435),c=V(9233),o=V(8),d=V(4372),a=V(5103),s=V(4953),h=e.ShapeUtility.syncShapeOptions,u=i.Drawing.UnitHelper.IsNullOrEmpty,x=void 0,f=999,y="range",l="rotate",g="angle",A="style",v=function(t){function n(n,V,i,e,o,d,a){var s,h,f=t.call(this)||this;return f.ttV=1,s=f,h=V&&n.eeV(V)||n.eeV("Picture ",!0),s.Mf=n,s.ytV=new c.CameraShapeData(n,h,i,e||0,o||0,d||200,a||160),d===x&&a===x&&(s.ytV.rtV=!0),s.yiV=r.ResizeMode.aspect,s.ytV.noChangeAspect=!0,s.RiV=!0,u(i)||(s.tnV(),s.Fct(i,!0)),delete s.RiV,f}return w(n,t),Object.defineProperty(n.prototype,"zIndex",{get:function(){var t=this;if(t.mnV)return t.mnV.zIndex(t.name())},enumerable:!1,configurable:!0}),n.prototype.tnV=function(){var t,n,V,i,r,c=this,o=c.Mf,d=o.zoom();c.VnV=!0,t=c.ytV,n=o.shapeLayers[0],V=(0,a.getBuiltInShapeModelWhenInit)(t,e.AutoShapeType.rectangle,d),i=(0,a.removeOldShapeUIWhenInitShapeUI)(c,n),h(V,t,n),(r=n.createCameraShape(V)).ttV=3,r.getShapeCenter(),r.hyperlink=t.ku,c.ZnV(r.id),t.ltV&&(c.flipX=!0),t.gtV&&(c.flipY=!0),(0,a.addNewShapeUIWhenInitShapeUI)(c,r,n,i),delete c.VnV},n.prototype.soV=function(t){var n=this;t&&(t.angle&&n.rotate(t.angle),t.line&&n.j0V(t.line),t.fill&&n.VeV(t.fill))},n.prototype.IoV=function(t){"angle"===t?(delete this.yXn,(0,a.removeFormula)(this,"rotate")):"line"===t?(delete this.Tin,(0,a.clearCalcObjectValues)(this,"options.line")):"fill"===t&&(delete this.S0t,(0,a.clearCalcObjectValues)(this,"options.fill"))},n.prototype.rotate=function(t){var n=this;if((0,a.noArguments)(arguments))return n.ytV.RotationWithParent;(0,a.rotateImp)(n,t)},n.prototype.style=function(t){var n,V,i,e=this;if((0,a.noArguments)(arguments))return e.getStyle(!0,!1);n=e.style(),e.DT("style",t),(V=t.fill)&&((0,a.adjustTransparentColor)(V),e.VeV(V)),(i=t.line)&&((0,a.adjustTransparentColor)(i),e.j0V(i)),e.enV("style",n),e.refresh()},n.prototype.getStyle=function(t,n){var V=this,i=new s.ShapeStyle;return i.fill=V.n0V(t,n),i.line=V.ydV(t,n),delete i.textEffect,delete i.textFrame,i},n.prototype.range=function(t){var n=this,V=n.ytV;if((0,a.noArguments)(arguments))return V.Range;n.Fct(t)},n.prototype.Fct=function(t,n){var V,i,e,r;void 0===n&&(n=!1),((e=(i=(V=this).ytV).Range)!==t||n)&&(V.DT("range",t),r=V.AsV("cameraCellRange"),(0,o.setFormulaImp)(V,y,t,!0,!0),i.Range=(0,a.getFormula)(V,y)||t,V.usV("cameraCellRange",{changingContext:r}),V.ctV&&V.ctV.JrV(),V.mtV(),V.refresh())},n.prototype.GrV=function(t){var n=this,V=(0,o.convertCalcReferenceToRangeInfo)(t,n.Mf),i=n.AsV("cameraCellRange");n.ytV.Range=(0,a.getFormula)(n,"range"),n.usV("cameraCellRange",{changingContext:i}),n.ytV.QVV(V),n.mtV(),n.sft&&n.sft.updateGroup(),n.ctV&&n.ctV.JrV()},n.prototype.mtV=function(){var t,n,V,i=this,e=i.ytV,r=e.AnV;e.rtV&&(r?(n=(t=e.ZoV()).width>0?t.width:200,V=t.height>0?t.height:160,i.$l(n,V,!0)):"#REF!"===e.Range&&i.$l(0,0,!0))},n.prototype.type=function(){if((0,a.noArguments)(arguments))return f},n.prototype.postProcessShapeDataToJson=function(n,V){var i,e,r,c,o,d,a=this,s=a.ctV;function h(t,n,V){t.vmlStyle=n,t.anchor=V,t.cameraTool=!0,t.size={width:s.width,height:s.height}}t.prototype.postProcessShapeDataToJson.call(this,n),i=.75*s.left,e=.75*s.top,r=.75*s.width,c=.75*s.height,o=[a.startColumn(),a.startColumnOffset(),a.startRow(),a.startRowOffset(),a.endColumn(),a.endColumnOffset(),a.endRow(),a.endRowOffset()].toString(),d="position:absolute;margin-left:".concat(i,"pt;margin-top:").concat(e,"pt;width:").concat(r,"pt;height:").concat(c,"pt;z-index:").concat(a.zIndex+1,";visibility:visible;mso-wrap-style:square;"),h(V?n:n.shapeData.pic,d,o)},n.prototype.formulaFromJSON=function(n){var V,i,e,r;t.prototype.formulaFromJSON.call(this,n),(V=this).Fct(V.ytV.Range,!0),V.JrV(),i=V.ytV.AnV,e=V.Mf,i&&i.sheet&&e&&(r=i.sheet,n&&r!==e&&r.nre&&(r.nre(),V.afterRefSheetLazyLoaded()))},n.prototype.afterRefSheetLazyLoaded=function(){this.JrV()},n.prototype.OiV=function(t){return t.nvPicPr.cNvPr},n.prototype.DiV=function(t){return t.pic},n.prototype.doubleClickCommand=function(t){var n,V=this,i=V.ytV;if((0,a.noArguments)(arguments))return i.VtV;V.DT("doubleClickCommand",t),n=V.AsV("cameraDoubleClickCommand"),i.VtV=t,V.usV("cameraDoubleClickCommand",{changingContext:n})},n.prototype.QiV=function(t){var n=this;return t===l?(0,a.getFormula)(n,g):t.substr(0,5)===A?(0,a.getStyleFormula)(n,t,!1):""},n.prototype.ziV=function(t,n){var V=this;t===l?V.rotate(n):t.substring(0,5)===A&&(0,a.setStyleFormula)(V,t,n,!1)},n.prototype.WiV=function(t){return new n(t)},n.prototype.sdV=function(){t.prototype.sdV.call(this),this.JrV()},n.prototype.urV=function(){t.prototype.urV.call(this),this.JrV()},n.prototype.JrV=function(){var t=this.ctV;t&&(t.cameraImageCache=null)},n}(d.ShapeBase),n.CameraShape=v},321:function(t,n,V){var i,e,r,c,o=this&&this.vJr||(d=function(t,n){return d=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,n){t.__proto__=n}||function(t,n){for(var V in n)Object.prototype.hasOwnProperty.call(n,V)&&(t[V]=n[V])},d(t,n)},function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function V(){this.constructor=t}d(t,n),t.prototype=null===n?Object.create(n):(V.prototype=n.prototype,new V)}),d;Object.defineProperty(n,"__esModule",{value:!0}),n.FormControlShapeUI=void 0,i=V(6435),e=V(7807),r={hAlign:0,vAlign:0,wrapText:!0},c=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return o(n,t),n.prototype.hitTest=function(n,V,e){var r=this,c=r.formControl,o=t.prototype.hitTest.call(this,n,V,e);return o&&o.type!==i.HitTestType.body?o:c&&c.hitTest({x:n,y:V})?r.isSelected?t.prototype.hitTest.call(this,n,V,e):{shape:r}:{}},n.prototype.Dn=function(t,n,V,i,e){var r,c=this,o=c.formControl,d=c.zoom;i&&void 0!==e&&(c.TtV=!0,c.OtV=e),r=c.zoom,o&&(c.vcV(t,n,V,i),t.save(),t.scale(r,r),o.render(t,i),t.restore()),c.OtV=d},n.prototype.Me=function(n,V,i){var e,c=this,o=c.formControl,d=o.styleSupportInfo();d.supportText&&(c.setTextRect(d.textRect),e=c.JVV&&c.JVV.ytV.Mfn||r,d.supportHAlign||(V.horizontalAlignment=e.hAlign),d.supportVAlign||(V.verticalAlignment=e.vAlign),d.supportWrapText||(V.wrapTextInShape=e.wrapText),t.prototype.Me.call(this,n,V,i))},n.prototype.vcV=function(t,n,V,i){var e,r,c=this,o=c.options;o&&((e=c.formControl.styleSupportInfo()).supportFill||e.supportLine)&&((r=o.stroke)&&!r.color&&(r.color="transparent"),t.save(),i?(t.isPrintContext=!0,e.supportFill&&c.renderPath(t,o,n,V,!1,!0,!0),e.supportLine&&c.renderPath(t,o,n,V,!0,!0,!1)):c.renderPath(t,o,n,V,!e.supportFill,!0,!e.supportLine),t.restore())},n.prototype.getCursor=function(t){var n=this.formControl;if(!n.isNeedControlCursorBySelf||!n.isNeedControlCursorBySelf())return this.isSelected?void 0:"default"},n.prototype.onMouseDown=function(t,n){var V={evt:t,canvas:n,cancelDefault:!1};return this.formControl.onMouseDown(V),V.cancelDefault},n.prototype.onMouseMove=function(t,n){var V={evt:t,canvas:n,cancelDefault:!1};return this.formControl.onMouseMove(V),V.cancelDefault},n.prototype.onMouseUp=function(t,n){var V={evt:t,canvas:n,cancelDefault:!1};return this.formControl.onMouseUp(V),V.cancelDefault},n.prototype.setTextRect=function(t){var n,V=this,i=V.zoom;t.x*=i,t.y*=i,t.w*=i,t.h*=i,n={left:t.x,top:t.y,width:t.w,height:t.h,right:t.x+t.w,bottom:t.y+t.h},V.textRect=n},Object.defineProperty(n.prototype,"zoom",{get:function(){var t=this;return t.TtV?t.OtV:1},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"formControl",{get:function(){var t;return this.JVV.GtV},enumerable:!1,configurable:!0}),n}(e.ControlUI),n.FormControlShapeUI=c},354:function(t,n,V){var i,e,r,c,o,d,a,s,h,u,x,f,y,l,g,A,v,w,p,b,L=this&&this.vJr||(m=function(t,n){return m=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,n){t.__proto__=n}||function(t,n){for(var V in n)Object.prototype.hasOwnProperty.call(n,V)&&(t[V]=n[V])},m(t,n)},function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function V(){this.constructor=t}m(t,n),t.prototype=null===n?Object.create(n):(V.prototype=n.prototype,new V)}),m;function j(t,n,V,i,e,r,c,o,d,a){var s=(0,h.flipPoint)(t,n,V,i,e,r,c,o),u=(0,h.rotatePoint)(s,d,a);return{x:(0,h.fixNumber)(u.x),y:(0,h.fixNumber)(u.y)}}function C(t){return t.map((function(t,n){return["adj"+(n+1),(0,r.convertAdjustmentValueToExcelUnit)(t,A,!0)]}))}function R(t,n,V){var i,e,r,c,o,d=t.ytV,a=t.Mf,s=t.PoV();null===(e=null===(i=a.parent)||void 0===i?void 0:i.suspendOp)||void 0===e||e.call(i),d.left=n.left/V,d.top=n.top/V,d.width=n.width/V,d.height=n.height/V,d.RotationWithoutParent=n.rot,d.ltV=n.flipH,d.gtV=n.flipV,d.zrt(),null===(c=null===(r=a.parent)||void 0===r?void 0:r.resumeOp)||void 0===c||c.call(r),t.NoV({changingContext:s}),o=t.AsV("presetGeometry"),d.PointNum=n.pointNum,d.AdjustValues=C(n.adjs),t.usV("presetGeometry",{changingContext:o})}function _(t){return 2===t.length?I(t):M(t)}function M(t){var n,V,i,e,r,c,o,d,a,s,u,x,f=t[0],y=t.length,l=t[y-1],A=f.x,v=f.y,w=l.x,b=l.y,L=t[1],m=L.x,j=L.y,C=w-A,R=b-v,_=0,M={x:(A+w)/2,y:(v+b)/2};for((0,h.fixNumber)(A,5)===(0,h.fixNumber)(m,5)?(_=90,n=Math.PI/2):(0,h.fixNumber)(v,5)!==(0,h.fixNumber)(j,5)&&(_=180*(n=Math.atan2(j-v,m-A))/Math.PI,n<0&&(n+=2*Math.PI,_+=360)),_&&(n=-n,A=(f=(t=t.map((function(t){return(0,h.rotatePoint)(t,M,n)})))[0]).x,v=f.y,C=(w=(l=t[y-1]).x)-A,R=(b=l.y)-v),e=(V=C<0)?-1:1,r=(i=R<0)?-1:1,c=g(C),o=g(R),c<p&&(c=p),o<p&&(o=p),d=[],a=0;a<y-3;a++)s=t[a+1],a%2?d.push((s.y-v)/o*r):d.push((s.x-A)/c*e);return{rot:_,left:u=M.x-c/2,top:x=M.y-o/2,width:c,height:o,flipH:V,flipV:i,adjs:d}}function I(t){var n=t[0],V=t[1],i=l(n.x,V.x),e=l(n.y,V.y),r=g(V.x-n.x),c=g(V.y-n.y),o=n.x>V.x,d=n.y>V.y;return{rot:0,left:i,top:e,width:r,height:c,flipH:o,flipV:d,adjs:[]}}Object.defineProperty(n,"__esModule",{value:!0}),n.ConnectorShape=n.getConnectorProperties=n.syncShapeData=void 0,i=V(7234),e=V(590),r=V(3832),c=V(9622),o=V(6938),d=V(7323),a=V(4372),s=V(5103),h=V(5311),u=V(4953),x=i.Common.lt,f=x.ht,y=e.ShapeUtility.syncShapeOptions,l=Math.min,g=Math.abs,A=void 0,v={color:"color",linestyle:"lineStyle",width:"width",captype:"capType",jointype:"joinType",transparency:"transparency",compoundtype:"compoundType"},w=["color","linestyle","width","captype","jointype","transparency","compoundtype"],n.syncShapeData=R,p=.2,n.getConnectorProperties=_,b=function(t){function n(n,V,i,e,r,c,d){var a,s=t.call(this)||this,h=s;return s.ttV=4,a=V&&n.eeV(V)||n.eeV("ConnectorShape ",!0),h.Mf=n,h.ytV=new o.ConnectorShapeData(n,a,i,e,r,c,d),h.RiV=!0,i!==A&&h.tnV(),delete h.RiV,s}return L(n,t),n.prototype.type=function(){if((0,s.noArguments)(arguments))return this.ytV.ConnectorFormat.Type},n.prototype.tnV=function(t){var n,V,i,e,r,c,o,d,a=this,h=a.Mf,u=a.ytV;a.VnV=!0,n=u.ConnectorFormat.Type,V=a.z0V(),e=a.KVV(),r=h.shapeLayers[0],0===n?c="Line":1===n?c="ZipLine":2===n&&(c="CurveLine"),o=h.zoom(),e=e.map((function(t){return{x:t.x*o,y:t.y*o}})),c&&(y(d={points:e,options:V},u,r),(i=r.createLine(c,d)).getShapeCenter(),i.hyperlink=u.ku,i.JVV=a,a.ZnV(i.id)),a.ctV=i,t||(0,s.syncConnectors)([a.startConnector(),a.endConnector()],a),a.gnV(),delete a.VnV},n.prototype.z0V=function(){var t=this,n=t.H0V(),V=t.Q0V();return{stroke:{type:1,color:t.ydV(!1,!1).color,width:1},endPoints:{beginArrow:{type:n.style,widthType:n.width,lengthType:n.length},endArrow:{type:V.style,widthType:V.width,lengthType:V.length}}}},n.prototype.getPoints=function(t){return this.KVV(t)},n.prototype.KVV=function(t){var n,V,i,e,r,c,o,d,a,s=this,h=s.Btn;return h&&!t||(V=(n=s.ytV).left||0,i=n.top||0,e=n.width||0,r=n.height||0,c=n.gtV,o=n.ltV,d=n.ConnectorFormat.Type,a=n.RotationWithoutParent,0===d?h=s.Btn=s.G0V(i,V,e,r,c,o,a):1!==d&&2!==d||(h=s.Btn=s.J0V(i,V,e,r,c,o,a,n.AdjustValues))),h},n.prototype.G0V=function(t,n,V,i,e,r,c){var o,d,a,s,u,x,f,y;return e&&r?(o=n+V,d=t+i,a=n,s=t):e?(o=n,d=t+i,a=n+V,s=t):r?(o=n+V,d=t,a=n,s=t+i):(o=n,d=t,a=n+V,s=t+i),u={x:n+V/2,y:t+i/2},x=c/180*Math.PI,[f=(0,h.rotatePoint)({x:o,y:d},u,x),y=(0,h.rotatePoint)({x:a,y:s},u,x)]},n.prototype.W0V=function(t,n,V,i,e,r,c,o){var d,a,s;return[d=j(0,0,e,r,n,t,V,i,o,c),a=j(V,0,e,r,n,t,V,i,o,c),s=j(V,i,e,r,n,t,V,i,o,c)]},n.prototype.K0V=function(t,n,V,i,e,r,c,o,d){var a,s,h,u;return d||(d=[.5]),[a=j(0,0,e,r,n,t,V,i,o,c),s=j(V*d[0],0,e,r,n,t,V,i,o,c),h=j(V*d[0],i,e,r,n,t,V,i,o,c),u=j(V,i,e,r,n,t,V,i,o,c)]},n.prototype.$0V=function(t,n,V,i,e,r,c,o,d){var a=j(0,0,e,r,n,t,V,i,o,c),s=j(V*d[0],0,e,r,n,t,V,i,o,c),h=j(V*d[0],i*d[1],e,r,n,t,V,i,o,c),u=j(V,i*d[1],e,r,n,t,V,i,o,c),x=j(V,i,e,r,n,t,V,i,o,c);return[a,s,h,u,x]},n.prototype.tcV=function(t,n,V,i,e,r,c,o,d){var a=j(0,0,e,r,n,t,V,i,o,c),s=j(V*d[0],0,e,r,n,t,V,i,o,c),h=j(V*d[0],i*d[1],e,r,n,t,V,i,o,c),u=j(V*d[2],i*d[1],e,r,n,t,V,i,o,c),x=j(V*d[2],i,e,r,n,t,V,i,o,c),f=j(V,i,e,r,n,t,V,i,o,c);return[a,s,h,u,x,f]},n.prototype.VcV=function(t,n,V,i,e,r,c,o,d){var a;switch(this.ytV.PointNum){case 2:a=this.W0V;break;case 3:a=this.K0V;break;case 4:a=this.$0V;break;case 5:a=this.tcV}return a&&a(t,n,V,i,e,r,c,o,d)},n.prototype.J0V=function(t,n,V,i,e,r,c,o){var a,s={x:n+V/2,y:t+i/2},h=c/180*Math.PI;return o&&o.length>0&&(a=o.map((function(t){return t[1]/d.ADJUSTMENT_UNIT}))),this.VcV(t,n,V,i,e,r,h,s,a)},n.prototype.ncV=function(t){var n,V,i;for(t===A&&(t=this.ctV.getPoints()),n=[],V=0,i=t.length;V<i;V++)n.push({x:t[V].x,y:t[V].y});return n},n.prototype.ecV=function(){var t=[],n=_(this.ncV()),V=n.adjs;return V&&V.length&&V.forEach((function(n,V){t.push(["adj"+(V+1),n])})),t},n.prototype.OiV=function(t){return t.nvCxnSpPr.cNvPr},n.prototype.DiV=function(t){return t.cxnSp},n.prototype.preProcessShapeDataToJson=function(n,V){t.prototype.preProcessShapeDataToJson.call(this,n,V),this.XoV()},n.prototype.XoV=function(){var t,n=this,V=_(n.ncV());V.pointNum=n.Btn.length-1,t=n.Mf.zoom(),R(n,V,t)},n.prototype.nnV=function(t){var n,V=this,i=V.ncV(V.Btn);V.DT("points",{points:t},{points:i}),n=V.Mf.zoom(),V.Btn=t,V.ctV.setPoints(V.Btn,n),V.XoV()},n.prototype.adjustments=function(t){var n,V,i,e,r,c,o,d,a,h=this;if((0,s.noArguments)(arguments))return(n=h.ecV())&&n.length>0?n.map((function(t){return t[1]})):[];t&&t.length>0&&h.Btn.length>2&&(V=h.x(),i=h.y(),o={x:V+(e=h.width())/2,y:i+(r=h.height())/2},d=(c=h.ytV.RotationWithoutParent)/180*Math.PI,a=h.VcV(h.y(),h.x(),h.width(),h.height(),h.ytV.gtV,h.ytV.ltV,d,o,t),h.nnV(a),h.refresh())},n.prototype.QiV=function(t){var n,V,i,e,r,c,o=this;return"style"===t.substr(0,5)&&3===(n=t.split(".")).length&&(V=o.style(),i=n[1],e=n[2],"line"===i&&w.indexOf(e)>-1)?(r=v[e],c=V[i][r],(0,h.isFormula)(c)?c:""):""},n.prototype.ziV=function(t,n){var V,i,e,r,c,o=this;"style"===t.substr(0,5)&&3===(V=t.split(".")).length&&(i=o.style(),e=V[1],r=V[2],"line"===e&&w.indexOf(r)>-1&&(c=v[r],i[e][c]=n),o.style(i))},n.prototype.style=function(t){var n,V,i,e,r,c,o=this;if((0,s.noArguments)(arguments))return o.getStyle(!0,!1);n=o.style(),o.DT("style",t,n),(V=t.line)&&(i=o.AsV("line"),e=V.color,f(e)||o.j0V({color:e,lineStyle:V.lineStyle,width:V.width,capType:V.capType,joinType:V.joinType,compoundType:V.compoundType,transparency:V.transparency}),r=V.beginArrowheadStyle,f(r)||o.H0V({style:r,width:V.beginArrowheadWidth,length:V.beginArrowheadLength}),c=V.endArrowheadStyle,f(c)||o.Q0V({style:c,width:V.endArrowheadWidth,length:V.endArrowheadLength}),o.usV("line",{changingContext:i})),o.enV("style",n),o.refresh()},n.prototype.getStyle=function(t,n){var V,i=this,e=new u.ShapeStyle,r=e.line=i.ydV(t,n),c=i.H0V();return r.beginArrowheadStyle=c.style,r.beginArrowheadWidth=c.width,r.beginArrowheadLength=c.length,V=i.Q0V(),r.endArrowheadStyle=V.style,r.endArrowheadWidth=V.width,r.endArrowheadLength=V.length,delete e.fill,delete e.textEffect,delete e.textFrame,e},n.prototype.icV=function(t){var n,V,i=this,e=i.ctV;!i.ignoreLayoutConnection&&t&&t.length&&i.Mf&&(i.Mf.QnV(e),n=i.Mf.zoom(),V=e.getPoints().map((function(t){return{x:t.x/n,y:t.y/n}})),i.nnV(V)),i.refresh()},n.prototype.startConnector=function(t,n){var V,i,e,r,c,o,d,a,h,u,x=this,f=x.ytV.ConnectorFormat;if((0,s.noArguments)(arguments))return f.BeginConnected?{name:f.BeginConnected,index:f.BeginConnectionSite,shape:f.BeginConnectedShape}:null;V=x.ctV,i=x.startConnector(),x.DT("startConnector",{name:t?t.name:"",index:t?t.index:-1},i?{name:i.name,index:i.index}:null),null==(r=(0,s.getCollaboration)(x))||r.startBatchOp(),c=x.AsV("startConnector"),f.BeginConnected=t?t.name:"",f.BeginConnectionSite=t?t.index:-1,t&&(d=t.index,a=t.name,(h=x.Mf.shapes.get(a))&&(o={id:h.ctV.id,index:d},n||((u=(e=h.ctV.getActualConnectorPoints())[d])?V.moveStartPoint(u.x,u.y):o=null))),V.updateStartConnector(o),x.enV("startConnector",i),x.icV(e),x.usV("startConnector",{changingContext:c}),null==r||r.endBatchOp()},n.prototype.endConnector=function(t,n){var V,i,e,r,c,o,d,a,h,u,x=this,f=x.ytV.ConnectorFormat;if((0,s.noArguments)(arguments))return f.EndConnected?{name:f.EndConnected,index:f.EndConnectionSite,shape:f.EndConnectedShape}:null;V=x.ctV,i=x.endConnector(),x.DT("endConnector",{name:f.EndConnected,index:f.EndConnectionSite},i?{name:i.name,index:i.index}:null),null==(r=(0,s.getCollaboration)(x))||r.startBatchOp(),c=x.AsV("endConnector"),f.EndConnected=t?t.name:"",f.EndConnectionSite=t?t.index:-1,t&&(d=t.index,a=t.name,(h=x.Mf.shapes.get(a))&&(o={id:h.ctV.id,index:d},n||((u=(e=h.ctV.getActualConnectorPoints())[d])?V.moveEndPoint(u.x,u.y):o=null))),V.updateEndConnector(o),x.enV("endConnector",i),x.icV(e),x.usV("endConnector",{changingContext:c}),null==r||r.endBatchOp()},n.prototype.soV=function(t,n){var V=this;t&&t.line&&V.j0V(t.line)},n.prototype.KiV=function(t){var n=this,V=n.ctV;!1!==(null==t?void 0:t.layoutConnectionLine)&&V instanceof c.ZipLine&&n.Mf.QnV(V)},n.prototype.t0V=function(n,V){var i=this;switch(n){case"startConnector":case"endConnector":i[n](V);break;case"points":i.nnV(V.points);break;default:t.prototype.t0V.call(this,n,V)}},n.prototype.WiV=function(t){return new n(t)},n}(a.ShapeBase),n.ConnectorShape=b},530:function(t,n,V){var i,e,r,c,o,d,a,s,h;function u(t,n){return t&&r.util.isThemeColor(t)&&n&&n(t)||t}function x(t,n,V){if(t=u(t,n),!V||!t)return t;var i=o.fromString(t);return c(V.tint)||0===V.tint||i.applyTint(V.tint),c(V.shade)||0===V.shade||i.applyShade(V.shade),c(V.brightness)||0===V.brightness||i.applyBrightness(V.brightness),c(V.satMod)||1===V.satMod||i.applySatMod(V.satMod),i.toRgbString()}function f(t,n){var V,i,e,r,o={type:1,color:x(t.color||"#4472C4",n,t),width:t.width||1,transparency:t.transparency||0};return c(t.capType)||(o.capType="string"==typeof t.capType?t.capType:d[t.capType]||"butt"),c(t.joinType)||(o.joinType="string"==typeof t.joinType?t.joinType:a[t.joinType]||"round"),c(t.compoundType)||(o.compoundType=t.compoundType),V=t.lineStyle,i=o.width,!c(V)&&V>0&&i?(r=(e=s[V])&&h[e]||[],o.dashType=r.map((function(t){return t*i}))):o.dashType=[],o}function y(t){var n,V,i,e,r,o,d=!c(t.beginArrowheadStyle)||!c(t.beginArrowheadWidth)||!c(t.beginArrowheadLength),a=!c(t.endArrowheadStyle)||!c(t.endArrowheadWidth)||!c(t.endArrowheadLength);return d||a?{beginArrow:{type:null!==(n=t.beginArrowheadStyle)&&void 0!==n?n:0,widthType:null!==(V=t.beginArrowheadWidth)&&void 0!==V?V:1,lengthType:null!==(i=t.beginArrowheadLength)&&void 0!==i?i:1},endArrow:{type:null!==(e=t.endArrowheadStyle)&&void 0!==e?e:0,widthType:null!==(r=t.endArrowheadWidth)&&void 0!==r?r:1,lengthType:null!==(o=t.endArrowheadLength)&&void 0!==o?o:1}}:null}function l(t,n){var V,i,e,r,o,d=JSON.parse(JSON.stringify(t)),a={};if(d.fill){if(d.fill.color&&(d.fill.color=x(d.fill.color,n,d.fill)),d.fill.stops)for(V=0;V<d.fill.stops.length;V++)(i=d.fill.stops[V]).color&&(i.color=x(i.color,n,i));a.fill=d.fill}return d.line&&(a.stroke=f(d.line,n),(e=y(d.line))&&(a.endPoints=e)),d.textEffect&&(r=d.textEffect.color,c(r)||(r=x(r,n,d.textEffect)),a.textFormatOptions={fill:c(r)?void 0:{type:1,color:r,transparency:d.textEffect.transparency||0},font:d.textEffect.font||void 0}),d.textFrame&&(o=a.textFormatOptions||(a.textFormatOptions={}),c(d.textFrame.vAlign)||(o.verticalAlignment=d.textFrame.vAlign),c(d.textFrame.hAlign)||(o.horizontalAlignment=d.textFrame.hAlign)),a}Object.defineProperty(n,"__esModule",{value:!0}),n.styleToRenderOptions=n.convertArrowEndpoints=n.convertLineToStroke=void 0,i=V(7234),e=V(8724),r=V(1376),c=i.Common.lt.ht,o=e.Drawing.DrawingColorHelper,d=["round","square","butt"],a=["round","miter","bevel"],s=["solid","dot","dash","lgDash","dashDot","lgDashDot","lgDashDotDot","sysDash","sysDot","sysDashDot","sysDashDotDot"],h={solid:[],dash:[4,3],dashDot:[4,3,1,3],dot:[1,3],lgDash:[8,3],lgDashDot:[8,3,1,3],lgDashDotDot:[8,3,1,3,1,3],sysDash:[3,1],sysDashDot:[3,1,1,1],sysDashDotDot:[3,1,1,1,1,1],sysDot:[1,1]},n.convertLineToStroke=f,n.convertArrowEndpoints=y,n.styleToRenderOptions=l},590:function(t,n,V){var i,e,r,c,o,d,a,s,h,u,x,f,y,l,g,A,v,w,p,b,L,m,j,C,R,_,M,I,E,F,S,X,O,Y,T,P,N,D,k,q,U=this&&this.mJr||function(){return U=Object.assign||function(t){var n,V,i,e;for(V=1,i=arguments.length;V<i;V++)for(e in n=arguments[V])Object.prototype.hasOwnProperty.call(n,e)&&(t[e]=n[e]);return t},U.apply(this,arguments)};function B(t){return nt(t,!0,x,!0)}function Z(t){return+t.split(" ")[1]}function z(t){return[t.name,Z(t.fmla)]}function H(t){return{name:t[0],fmla:"val "+At(t[1])}}function Q(t,n){return h(t)?n:t}function J(t,n,V){var i=n,e=V;switch(t){case d.TextDirection.vert:case d.TextDirection.wordArtVertRtl:case d.TextDirection.eaVert:i=2-V,e=n;break;case d.TextDirection.vert270:i=V,e=2-n;break;case d.TextDirection.wordArtVert:case d.TextDirection.eaVertLtr:i=V,e=n}return{hAlign:i,vAlign:e}}function G(t){var V,i,e,r=t.O0t[0],c=r?r.Algn:n.ST_TextAlignType.l,o=t.Inset,a={rIns:Q(o.right,y),lIns:Q(o.left,y),tIns:Q(o.top,f),bIns:Q(o.bottom,f),anchorCtr:Q(t.anchorCtr,!1),anchor:Q(t.anchor,n.ST_TextAnchoringType.t),vert:Q(t.vert,n.ST_TextVerticalType.horz),wrap:Q(t.wrap,n.ST_TextWrappingType.square),horzOverflow:Q(t.horzOverflow,n.ST_TextHorzOverflowType.overflow),vertOverflow:Q(t.vertOverflow,n.ST_TextVertOverflowType.overflow)},s=0,h=0,x=!1,l=!0,g=0,A=!1,v=d.TextDirection.horz;return a&&Object.keys(a).length>0&&(v=a.vert||0,V=[a.lIns,a.rIns,a.tIns,a.bIns].map(u),x=!a.horzOverflow,l=0!==a.wrap,i=a.anchor||0,A=!!a.anchorCtr,i>2&&(i=1),c>2&&(c=0),h=i,s=c),{center:A,hAlign:(e=J(v,s,h)).hAlign,vAlign:e.vAlign,overflow:x,wrap:l,angle:g,margins:V,textDirection:v}}function W(t){return{fontSize:t.Size,fontName:t.Name,bold:!!t.Bold,italic:!!t.Italic,color:B(t)}}function K(t){var n=t.O0t[0],V=(n.j0t&&n.j0t[0]||n).Font;return W(V)}function $(t){var n=[];return t.italic&&n.push("italic"),t.bold&&n.push("bold"),n.push(t.fontSize+"px"),n.push(t.fontName),n.join(" ")}function tt(t){var n,V;if(t&&0!==t.Count&&(n=t.Get(0))&&0!==n.Count)return!(!(V=n.Get(0))||!0!==V.Kumimoji)||void 0}function nt(t,V,i,e,r){var c,o,d,h;if(void 0===r&&(r=!1),o="transparent",!(c=t&&t.Color))return o;if(c.ColorType===n.SolidColorType.None)return i?"":o;if(c.ColorType===n.SolidColorType.Theme&&r){for(;!c.HasOwnColor()&&c.sft;)c=c.sft;return a[c.GetColorData().Value]}return(d=c.NoTransformedRGB)&&((h=c.GetColorData()).ApplyBrightness=!!e,d=s(d,h),o=V?n.Color.fromARGBColor(d).toRgbaString():n.Color.fromARGBColor(d).toRgbString()),o}function Vt(t){var n,V=t&&t.Color&&t.Color.Transparency;return isNaN(V)&&(V=0),{color:n=nt(t,!1,!0,!0),transparency:V}}function it(t){var n=t.Color,V={color:nt(t,!1,!0,!1,!0)};return 0!==n.Brightness&&(V.brightness=n.Brightness),0!==n.TintAndShade&&(V.tint=n.TintAndShade),0!==n.Shade&&(V.shade=n.Shade),1!==n.SatMod&&(V.satMod=n.SatMod),V}function et(t,n){var V;return(D[N[t]]||[]).map((function(t){return t*n}))}function rt(t){return P[t]}function ct(t){return T[t]}function ot(t){var V=n.FillType.Solid;return t.Type===n.FillType.Gradient?V=n.FillType.Gradient:t.Type===n.FillType.Picture&&(V=n.FillType.Picture),V}function dt(t){var n=1;return 0===t.Color.ColorType&&(n=0),n}function at(t){return!0===t.u0t?g.linear:t.Bft===n.ST_PathShadeType.circle?g.radial:void 0}function st(t){return t.u0t?t.GradientAngle:void 0}function ht(t){var n=at(t);return n===g.linear?xt(t):n===g.radial?ft(t):void 0}function ut(t){var n,V,i=t.GradientStops,e=[];for(n=0;n<i.Count;n++)V=i.Item(n),e.push({color:nt(V,!1,!0,!1),position:V.Position,transparency:V.Transparency,brightness:V.Color.Brightness});return e}function xt(t){var n=st(t);if(t.Rft&&n%45==0)return n}function ft(t){return t.GradientStyle===n.GradientStyle.GradientFromCenter?v.fromCenter:t.GradientStyle===n.GradientStyle.GradientFromCorner?t.GradientVariant:void 0}function yt(t){var V,i=t.GradientStyle;return i===n.GradientStyle.GradientTopSpotlight?V=v.fromTopLeft:i===n.GradientStyle.GradientBottomSpotlight&&(V=v.fromBottomLeft),V}function lt(t){var V,i=t&&t.Fill;if(i)return i._type===n.FillType.Group&&t.XtV&&(i=t.XtV.Fill),V=Vt(i),{type:ot(i),solid:{type:dt(i),color:V.color,transparency:V.transparency},gradient:{type:at(i),angle:st(i),direction:ht(i),stops:ut(i)},picture:U({src:i.PictureFormat.PicSrc,transparency:i.PictureFormat.Transparency,tilePictureAsTexture:i.PictureFormat.PictureFormatType===n.PictureFormatType.TextureFill,offsetLeft:i.PictureFormat.Stretch.left,offsetRight:i.PictureFormat.Stretch.right,offsetTop:i.PictureFormat.Stretch.top,offsetBottom:i.PictureFormat.Stretch.bottom},i.PictureFormat.Tile)}}function gt(t,V){var i=lt(V);i.type===n.FillType.Gradient?(t.fill=i.gradient,h(t.fill.direction)&&(t.fill.direction=yt(V.Fill))):i.type===n.FillType.Picture?t.fill=i.picture:t.fill=i.solid}function At(t){return parseInt(t,10)}Object.defineProperty(n,"__esModule",{value:!0}),n.ST_FontCollectionIndex=n.ConnectorType=n.ST_CompoundLine=n.ST_PresetLineDashVal=n.ST_TextHorzOverflowType=n.ST_TextVertOverflowType=n.ST_TextWrappingType=n.ST_TextVerticalType=n.ST_TextAnchoringType=n.ST_TextAlignType=n.ft=n.StatefulBase=n.ARGBColor=n.ThreeDFormat=n.ReflectionFormat=n.SoftEdgeFormat=n.GlowFormat=n.ShadowFormat=n.DrawingText=n.FontFormat=n.LineFormat=n.PictureFormat=n.PictureFormatType=n.FillFormat=n.ThreeDFormatStates=n.ColorFormat=n.GradientStyle=n.ColorType=n.GradientStop=n.GradientStops=n.ST_PathShadeType=n.FillType=n.DrawingType=n.Placement=n.SolidColorType=n.ThemeFont=n.ThemeColor=n.ShapeType=n.FormControlType=n.ListBoxSelectionType=n.TextureFillMirrorType=n.TextureFillAlignment=n.RadialGradientFillDirection=n.LinearGradientFillDirection=n.GradientFillType=n.AutoShapeType=n.Color=n.DrawingUtility=n.sR=n.SR=void 0,n.getWholeNumber=n.ST_EditAs=n.ShapeUtility=n.ShapeConstants=n.ArrowheadWidth=n.ArrowheadLength=n.ArrowheadStyle=n.CompoundType=n.LineJoinStyle=n.LineCapStyle=n.PresetLineDashStyle=n.CT_ShapeType=n.ST_SchemeColorVal=n.ST_ShapeType=void 0,i=V(7234),e=V(2657),n.SR={en:e},r=new i.Common.ResourceManager(n.SR,"Shapes"),n.sR=r.getResource.bind(r),c=V(1376),o=V(8724),d=V(6435),n.DrawingUtility=o.Drawing.DrawingUtility,n.Color=o.Drawing.DrawingColorHelper,a=o.Drawing.ThemeColorDict,s=o.Drawing.transformColor,h=i.Common.lt.ht,u=Math.round,x=void 0,f=4.8,y=9.6,function(t){t[t.none=0]="none",t[t.rectangle=1]="rectangle",t[t.parallelogram=2]="parallelogram",t[t.trapezoid=3]="trapezoid",t[t.diamond=4]="diamond",t[t.roundedRectangle=5]="roundedRectangle",t[t.octagon=6]="octagon",t[t.isoscelesTriangle=7]="isoscelesTriangle",t[t.rightTriangle=8]="rightTriangle",t[t.oval=9]="oval",t[t.hexagon=10]="hexagon",t[t.cross=11]="cross",t[t.regularPentagon=12]="regularPentagon",t[t.can=13]="can",t[t.cube=14]="cube",t[t.bevel=15]="bevel",t[t.foldedCorner=16]="foldedCorner",t[t.smileyFace=17]="smileyFace",t[t.donut=18]="donut",t[t.noSymbol=19]="noSymbol",t[t.blockArc=20]="blockArc",t[t.heart=21]="heart",t[t.lightningBolt=22]="lightningBolt",t[t.sun=23]="sun",t[t.moon=24]="moon",t[t.arc=25]="arc",t[t.doubleBracket=26]="doubleBracket",t[t.doubleBrace=27]="doubleBrace",t[t.plaque=28]="plaque",t[t.leftBracket=29]="leftBracket",t[t.rightBracket=30]="rightBracket",t[t.leftBrace=31]="leftBrace",t[t.rightBrace=32]="rightBrace",t[t.rightArrow=33]="rightArrow",t[t.leftArrow=34]="leftArrow",t[t.upArrow=35]="upArrow",t[t.downArrow=36]="downArrow",t[t.leftRightArrow=37]="leftRightArrow",t[t.upDownArrow=38]="upDownArrow",t[t.quadArrow=39]="quadArrow",t[t.leftRightUpArrow=40]="leftRightUpArrow",t[t.bentArrow=41]="bentArrow",t[t.uTurnArrow=42]="uTurnArrow",t[t.leftUpArrow=43]="leftUpArrow",t[t.bentUpArrow=44]="bentUpArrow",t[t.curvedRightArrow=45]="curvedRightArrow",t[t.curvedLeftArrow=46]="curvedLeftArrow",t[t.curvedUpArrow=47]="curvedUpArrow",t[t.curvedDownArrow=48]="curvedDownArrow",t[t.stripedRightArrow=49]="stripedRightArrow",t[t.notchedRightArrow=50]="notchedRightArrow",t[t.pentagon=51]="pentagon",t[t.chevron=52]="chevron",t[t.rightArrowCallout=53]="rightArrowCallout",t[t.leftArrowCallout=54]="leftArrowCallout",t[t.upArrowCallout=55]="upArrowCallout",t[t.downArrowCallout=56]="downArrowCallout",t[t.leftRightArrowCallout=57]="leftRightArrowCallout",t[t.upDownArrowCallout=58]="upDownArrowCallout",t[t.quadArrowCallout=59]="quadArrowCallout",t[t.circularArrow=60]="circularArrow",t[t.flowchartProcess=61]="flowchartProcess",t[t.flowchartAlternateProcess=62]="flowchartAlternateProcess",t[t.flowchartDecision=63]="flowchartDecision",t[t.flowchartData=64]="flowchartData",t[t.flowchartPredefinedProcess=65]="flowchartPredefinedProcess",t[t.flowchartInternalStorage=66]="flowchartInternalStorage",t[t.flowchartDocument=67]="flowchartDocument",t[t.flowchartMultidocument=68]="flowchartMultidocument",t[t.flowchartTerminator=69]="flowchartTerminator",t[t.flowchartPreparation=70]="flowchartPreparation",t[t.flowchartManualInput=71]="flowchartManualInput",t[t.flowchartManualOperation=72]="flowchartManualOperation",t[t.flowchartConnector=73]="flowchartConnector",t[t.flowchartOffpageConnector=74]="flowchartOffpageConnector",t[t.flowchartCard=75]="flowchartCard",t[t.flowchartPunchedTape=76]="flowchartPunchedTape",t[t.flowchartSummingJunction=77]="flowchartSummingJunction",t[t.flowchartOr=78]="flowchartOr",t[t.flowchartCollate=79]="flowchartCollate",t[t.flowchartSort=80]="flowchartSort",t[t.flowchartExtract=81]="flowchartExtract",t[t.flowchartMerge=82]="flowchartMerge",t[t.flowchartStoredData=83]="flowchartStoredData",t[t.flowchartDelay=84]="flowchartDelay",t[t.flowchartSequentialAccessStorage=85]="flowchartSequentialAccessStorage",t[t.flowchartMagneticDisk=86]="flowchartMagneticDisk",t[t.flowchartDirectAccessStorage=87]="flowchartDirectAccessStorage",t[t.flowchartDisplay=88]="flowchartDisplay",t[t.explosion1=89]="explosion1",t[t.explosion2=90]="explosion2",t[t.shape4pointStar=91]="shape4pointStar",t[t.shape5pointStar=92]="shape5pointStar",t[t.shape8pointStar=93]="shape8pointStar",t[t.shape16pointStar=94]="shape16pointStar",t[t.shape24pointStar=95]="shape24pointStar",t[t.shape32pointStar=96]="shape32pointStar",t[t.upRibbon=97]="upRibbon",t[t.downRibbon=98]="downRibbon",t[t.curvedUpRibbon=99]="curvedUpRibbon",t[t.curvedDownRibbon=100]="curvedDownRibbon",t[t.verticalScroll=101]="verticalScroll",t[t.horizontalScroll=102]="horizontalScroll",t[t.wave=103]="wave",t[t.doubleWave=104]="doubleWave",t[t.rectangularCallout=105]="rectangularCallout",t[t.roundedRectangularCallout=106]="roundedRectangularCallout",t[t.ovalCallout=107]="ovalCallout",t[t.cloudCallout=108]="cloudCallout",t[t.lineCallout1=109]="lineCallout1",t[t.lineCallout2=110]="lineCallout2",t[t.lineCallout3=111]="lineCallout3",t[t.lineCallout4=112]="lineCallout4",t[t.lineCallout1AccentBar=113]="lineCallout1AccentBar",t[t.lineCallout2AccentBar=114]="lineCallout2AccentBar",t[t.lineCallout3AccentBar=115]="lineCallout3AccentBar",t[t.lineCallout4AccentBar=116]="lineCallout4AccentBar",t[t.lineCallout1NoBorder=117]="lineCallout1NoBorder",t[t.lineCallout2NoBorder=118]="lineCallout2NoBorder",t[t.lineCallout3NoBorder=119]="lineCallout3NoBorder",t[t.lineCallout4NoBorder=120]="lineCallout4NoBorder",t[t.lineCallout1BorderandAccentBar=121]="lineCallout1BorderandAccentBar",t[t.lineCallout2BorderandAccentBar=122]="lineCallout2BorderandAccentBar",t[t.lineCallout3BorderandAccentBar=123]="lineCallout3BorderandAccentBar",t[t.lineCallout4BorderandAccentBar=124]="lineCallout4BorderandAccentBar",t[t.actionButtonCustom=125]="actionButtonCustom",t[t.actionButtonHome=126]="actionButtonHome",t[t.actionButtonHelp=127]="actionButtonHelp",t[t.actionButtonInformation=128]="actionButtonInformation",t[t.actionButtonBackorPrevious=129]="actionButtonBackorPrevious",t[t.actionButtonForwardorNext=130]="actionButtonForwardorNext",t[t.actionButtonBeginning=131]="actionButtonBeginning",t[t.actionButtonEnd=132]="actionButtonEnd",t[t.actionButtonReturn=133]="actionButtonReturn",t[t.actionButtonDocument=134]="actionButtonDocument",t[t.actionButtonSound=135]="actionButtonSound",t[t.actionButtonMovie=136]="actionButtonMovie",t[t.balloon=137]="balloon",t[t.flowchartOfflineStorage=138]="flowchartOfflineStorage",t[t.leftRightRibbon=139]="leftRightRibbon",t[t.diagonalStripe=140]="diagonalStripe",t[t.pie=141]="pie",t[t.nonIsoscelesTrapezoid=142]="nonIsoscelesTrapezoid",t[t.decagon=143]="decagon",t[t.heptagon=144]="heptagon",t[t.dodecagon=145]="dodecagon",t[t.star6Point=146]="star6Point",t[t.star7Point=147]="star7Point",t[t.star10Point=148]="star10Point",t[t.star12Point=149]="star12Point",t[t.round1Rectangle=150]="round1Rectangle",t[t.round2SameRectangle=151]="round2SameRectangle",t[t.round2DiagRectangle=152]="round2DiagRectangle",t[t.snipRoundRectangle=153]="snipRoundRectangle",t[t.snip1Rectangle=154]="snip1Rectangle",t[t.snip2SameRectangle=155]="snip2SameRectangle",t[t.snip2DiagRectangle=156]="snip2DiagRectangle",t[t.frame=157]="frame",t[t.halfFrame=158]="halfFrame",t[t.tear=159]="tear",t[t.chord=160]="chord",t[t.corner=161]="corner",t[t.mathPlus=162]="mathPlus",t[t.mathMinus=163]="mathMinus",t[t.mathMultiply=164]="mathMultiply",t[t.mathDivide=165]="mathDivide",t[t.mathEqual=166]="mathEqual",t[t.mathNotEqual=167]="mathNotEqual",t[t.cornerTabs=168]="cornerTabs",t[t.squareTabs=169]="squareTabs",t[t.plaqueTabs=170]="plaqueTabs",t[t.gear6=171]="gear6",t[t.gear9=172]="gear9",t[t.funnel=173]="funnel",t[t.pieWedge=174]="pieWedge",t[t.leftCircularArrow=175]="leftCircularArrow",t[t.leftRightCircularArrow=176]="leftRightCircularArrow",t[t.swooshArrow=177]="swooshArrow",t[t.cloud=178]="cloud",t[t.chartX=179]="chartX",t[t.chartStar=180]="chartStar",t[t.chartPlus=181]="chartPlus",t[t.lineInverse=182]="lineInverse",t[t.line=183]="line"}(l=n.AutoShapeType||(n.AutoShapeType={})),function(t){t[t.linear=0]="linear",t[t.radial=1]="radial"}(g=n.GradientFillType||(n.GradientFillType={})),function(t){t[t.linearRight=0]="linearRight",t[t.topLeftToBottomRight=45]="topLeftToBottomRight",t[t.linearDown=90]="linearDown",t[t.topRightToBottomLeft=135]="topRightToBottomLeft",t[t.linearLeft=180]="linearLeft",t[t.bottomRightToTopLeft=225]="bottomRightToTopLeft",t[t.linearUp=270]="linearUp",t[t.bottomLeftToTopRight=315]="bottomLeftToTopRight"}(A=n.LinearGradientFillDirection||(n.LinearGradientFillDirection={})),function(t){t[t.fromCenter=0]="fromCenter",t[t.fromTopLeft=1]="fromTopLeft",t[t.fromTopRight=2]="fromTopRight",t[t.fromBottomLeft=3]="fromBottomLeft",t[t.fromBottomRight=4]="fromBottomRight"}(v=n.RadialGradientFillDirection||(n.RadialGradientFillDirection={})),function(t){t[t.topLeft=0]="topLeft",t[t.top=1]="top",t[t.topRight=2]="topRight",t[t.left=3]="left",t[t.center=4]="center",t[t.right=5]="right",t[t.bottomLeft=6]="bottomLeft",t[t.bottom=7]="bottom",t[t.bottomRight=8]="bottomRight"}(w=n.TextureFillAlignment||(n.TextureFillAlignment={})),function(t){t[t.none=0]="none",t[t.horizontal=1]="horizontal",t[t.vertical=2]="vertical",t[t.both=3]="both"}(p=n.TextureFillMirrorType||(n.TextureFillMirrorType={})),function(t){t.single="single",t.multi="multi",t.extend="extended"}(b=n.ListBoxSelectionType||(n.ListBoxSelectionType={})),function(t){t.button="button",t.spinButton="spinButton",t.scrollBar="scrollBar",t.listBox="listBox",t.checkBox="checkBox",t.optionButton="optionButton",t.label="label",t.groupBox="groupBox",t.combo