@grapecity-software/spread-sheets-core 17.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,12 @@
1
+ /*!
2
+ *
3
+ * SpreadJS Library 17.0.2
4
+ *
5
+ * Copyright(c) GrapeCity Software inc. All rights reserved.
6
+ *
7
+ * Licensed under the SpreadJS Commercial License.
8
+ * info.xa@grapecity.com
9
+ * https://www.grapecity.com.cn/developer/spreadjs
10
+ *
11
+ */
12
+ !function(t){var e;"object"==typeof module&&"object"==typeof module.exports?(e=require("@grapecity-software/spread-common"),module.exports=t(e)):"function"==typeof define&&define.amd?define(["@grapecity-software/spread-common"],t):"object"==typeof exports?(e=require("@grapecity-software/spread-common"),exports.Spread=t(e)):t(GC)}(function(e){function n(t){var e,e,e=r[t];return void 0!==e||(e=r[t]={exports:{}},i[t].call(e.exports,e,e.exports,n)),e.exports}var i,r,t;i={"./dist/core/celltype/basecelltype.js":function(e,s,t){"use strict";var c,v,ht,dt,g,z,n,l,h,d,p,t,W,o,J,Ct,Z,vt,b,C,Q,F,nt,y,_,M,T,X,q,$,P,tt,S,R,x,gt,B,mt,pt,yt,i,St,r,u,k,wt,Mt,N,E,I,H,U,A,L,D,G,j,a,O;function et(t){var e=t.isPrinting,t=t.printZoomFactor;return e&&typeof t===S&&1!==t}function V(t){var e;return!(t instanceof CanvasRenderingContext2D)&&!y(t._ae)}function Y(t,e){var n,i,r,n=0,i=t.font+e,r=!V(t);return r&&E[i]?n=E[i]:(n=Q(t,t.font,e),r&&(E[i]=n)),n}function w(){}function K(t,e){var n;return e/2-t/2+(8<t?gt((t-8)/5+2):1)-1}function it(t,e,n){return W(t.x)||(t.x+=e.width),t.width=t.width-e.width-n.width,t}function rt(t,e,n,i,r){var o,a,o=n+" - "+e+" - "+t;return s.wordWrapInfoCache||(s.wordWrapInfoCache={}),a=2e3,y(s.clearCacheTimer)&&(s.clearCacheTimer=setTimeout(function(){s.wordWrapInfoCache=null,s.clearCacheTimer=null},a)),s.wordWrapInfoCache[o]||(s.wordWrapInfoCache[o]=ht.q.un(t,e,n,!1,r)),s.wordWrapInfoCache[o]}function ot(t,e){return dt.W.gfe(t,z.IconPosition.left)&&(e+=1),dt.W.gfe(t,z.IconPosition.right)&&(e+=2),e}function at(t,e){return dt.W.gfe(t,z.IconPosition.left)&&--e,dt.W.gfe(t,z.IconPosition.right)&&(e-=2),e}function f(){this.allowOverflow=!1,this.typeName="0"}function st(t,e,n,i){var r,o,r=t.conditionalFormats;return r&&(o=t.getValue(e,n,i),r.O(e,n,i))&&r.U(t,e,n,o,i).iconSet}function ut(t,e,n){for(var i,r,o,i=0,r=0;r<t.length;r++)o=void 0,o=t[r].style&&t[r].style.font?t[r].style.font:e,i=Math.max(J(o,x,Z(t[r].text))/n,i),(t[r].style&&1===t[r].style.vertAlign||2===t[r].style.vertAlign)&&(i=Math.max(J(o,x,Z(t[r].text))/n+2*dt.W.V(o,N).fontSize*.218,i));return i}function ct(t,e,n,i,r){var o,a,s,u,c,f,o=ht.q.J();if(!o)return 0;for(s=a=0;s<t.length;s++)u=void 0,u=t[s].style&&t[s].style.font?t[s].style.font:e,t[s].style&&t[s].style.vertAlign&&(u=dt.W.V(u,N).font),vt(o,u),c="",c=s===t.length-1&&r?ht.q.tt(t[s].text):t[s].text,f=0,i?f=J(u)*c.length/n:W(t[s].text)||(f=Q(o,u,t[s].text)/n),a+=f;return a}function ft(t,e,n,i,r){var o,a,s,o;if(!ht.q.J())return 0;for(s=a=0;s<t.length;s++)a+=ct(t[s],e,n,i,r);return a}function lt(t,e,n,i,r,o,a,s,u){var c,f,l,h,d,v,g,m,p,S,u,a,g,m,w,b,C,y,M,k,p,S,c=a.backColor,f=a.backgroundImage,l=a.textOrientation,h=a.isVerticalText,d=a.textIndent&&0!==a.textIndent,v=a.backgroundImageLayout,g=u.row,m=u.col,p=u.sheet,S=p.Jt,u=u.sheet&&u.sheet.getSpan(g,m,u.sheetArea),a=a&&(a.borderLeft||a.borderTop||a.borderRight||a.borderBottom),w=0,b=e;t.save(),m+1<p.getColumnCount()&&(M=S.qt(g,m+1)),0<=m-1&&(k=S.qt(g,m-1)),p=function(t){return t!==x&&t&&-90<=t&&t<=90},S=function(){t.fillRect(e,n,i,r)},l&&0!==l&&a&&s&&!u&&!h&&!d&&(g=St(l*Math.PI/180),m=yt(g),w=gt(r/m),-90<l&&l<0&&(M&&!p(M.textOrientation)&&(y=M.backColor),b=e-w),0<l&&l<90&&(k&&!p(k.textOrientation)&&(y=k.backColor),b=e+w),C=function(){t.beginPath(),t.moveTo(b,n),t.lineTo(b+i,n),t.lineTo(e+i,n+r),t.lineTo(e,n+r),t.fill()}),(c||f)&&(y&&dt.W.setFillStyle(t,y,e,n,i,r,S),C?dt.W.setFillStyle(t,c,Math.min(b,e),n,i+w,r,C):c&&dt.W.setFillStyle(t,c,e,n,i,r,S),G.nt(t,e,n,i,r,f,v,o)),t.restore()}function kt(t,e,n,i,r,o,a){var t;(0===t||5===t||a)&&st(e,n,i,r)&&(t=Tt(e),o.x+=t,o.width-=t)}function Tt(t){return parseInt(P*t.zoom(),10)}function bt(t,e,n,i){var r=t.cellPadding,o=0,t=t.labelOptions;return(r=n?t?t.margin:"0":r)&&(o=typeof(o=parseInt(Rt(r)[e],10))===S&&0<o?o:0),i===x?o:o*i}function xt(t){var e={context:t,value:0};return a.et(t.sheet,"getOutlineColumnOffset",e),e.value}function Gt(t,e){var e={context:t,value:0,cellStyle:e};return a.et(t.sheet,"getCellButtonAutoWidth",e),e.value}function Bt(t,e){var e={context:t,value:0,cellStyle:e};return le(e),a.et(t.sheet,"getSpecialIconsAutoWidth",e),e.value}function It(t,e){var e={context:t,value:0,cellStyle:e};return a.et(t.sheet,"getCellButtonAutoHeight",e),e.value}function Pt(t,e){var e={context:t,value:0,cellStyle:e};return he(e),a.et(t.sheet,"getSpecialIconsAutoHeight",e),e.value}function Nt(t,e,n,i){var r,i,r,e,o,r=i&&i.sheet;r&&n&&(i=i.canvasOffset||r.rt.it(),r=r.ot(),(e=(e=e.backColor||"white").stops?(o=e.stops)[0]&&o[0].color:e).backgroundColor&&(e=e.backgroundColor),(0,v.GC$)(t).width(n.width).height(n.height).css({top:i.top+r.y+n.y-2,left:i.left+r.x+n.x-2,"background-color":e}))}function Rt(t){var e,t,n,i,r,e=["0","0","0","0"];return typeof t===tt&&(r=i=void 0,1===(n=(t=t.split(" ",4)).length)?e=[i=t[0],i,i,i]:2===n?e=[i=t[0],r=t[1],i,r]:3===n?(r=t[1],e=[t[0],r,t[2],r]):4===n&&(e=[t[0],t[1],t[2],t[3]])),e}function Et(t,e){var n,i,r,o,a,n=bt(t,0),i=bt(t,2),r=bt(t,0,!0),o=bt(t,2,!0);if(!(bt(t,3,!0)+bt(t,1,!0)>=e.width))if(0===(a=(a=t.labelOptions.alignment)===x?t.labelOptions.alignment=0:a)||1===a||2===a){if(0<n&&r+o<n)return 1}else if((3===a||4===a||5===a)&&n<e.height&&0<i&&r+o<i)return 1}function Ht(t,e){var n,i,r,o,a,n=bt(e,0),i=bt(e,3,!0),r=bt(e,2,!0),o=t.clone(),a=e.labelOptions.alignment;return 0===a||1===a||2===a?n<t.height&&(o.height=n-r+1):3!==a&&4!==a&&5!==a||(o.height=t.height-r),o.x+=i,o.width-=i+bt(e,1,!0),o}function Ut(t){var e="left";return 1===t||4===t?e="center":2!==t&&5!==t||(e="right"),e}function Ft(t,e,n,i){var r,n,o,a,s,u,c,t,f,l,h,i,d,v,r=new ht.Point(t.x,t.y),n=parseInt(n.fontSize,10),o=bt(e,0),a=bt(e,2),s=bt(e,3,!0),u=bt(e,1,!0),c=t.width,t=t.height,f,l,h=8<n?1:2,i=i-(i/2-n/2+(8<n?Math.floor((n-8)/5+2):1)-1)+bt(e,0,!0),d=i+1,v=t<o+a?o+i:t-a+i-1;switch(e.labelOptions.alignment){case 0:r.x+=s+h+1,r.y+=d;break;case 1:r.x+=s+(c-s-u)/2,r.y+=d;break;case 2:r.x+=c-u-2,r.y+=d;break;case 3:r.x+=s+h+1,r.y+=v;break;case 4:r.x+=s+(c-s-u)/2,r.y+=v;break;case 5:r.x+=c-u-2,r.y+=v}return r}function _t(t,e){var n,i,r,o,a,s,n=bt(e,3,!0),i=bt(e,1,!0),r=bt(e,0,!0),o=bt(e,2,!0),a=t.clone(),s=e.labelOptions.alignment;return a.x=n+1,a.width-=n+i,0===s||1===s||2===s?(a.y=r,a.height=bt(e,0)-r-o):3!==s&&4!==s&&5!==s||(a.y=t.height-bt(e,2)+r,a.height=bt(e,2)-r-o),2!==s&&5!==s||(a.width-=2),a}function At(t,e,n){var i,r;if(o(e,tt))return Y(t,e);if(n&&e&&e[0]&&e[0].value)return e[0].value.length*J(t.font);for(r=i=0;r<e.length;r++)"fillingChar"!==e[r].type&&(i+=Y(t,e[r].value));return i}function Lt(t){for(var e,n,i,r,o,e=t[0].type,n=0,i=[t[0]],r=1;r<t.length;r++)o=t[r],e===k&&o.type===k?i[n].value+=o.value:(i.push(o),e=o.type,n++);return i}function Dt(t,e,n,i,r){var i,i=i?Math.floor(e/r):Math.floor(e/Q(t,t.font,n));return new Array(i+1).join(n)}function jt(t){var t=t.clone();return t.width--,t.height--,t}function Ot(t,e,n,i){for(var r,o,a,r=0;r<t.length;r++)o=void 0,t[r].style=t[r].style||{},(a=t[r].style).font?(o=dt.W.V(a.font,n).font,W(i)||(o=dt.W.V(o,i).font)):o="object"==typeof e?e.font:e,a.font=o}function Vt(t,e,n,i,r){var o=n*pt(-i)+r*mt(-i),n=n*pt(-i)+r*mt(-i),a,s;return new ht.Rect(t-o/2,e-n/2,o,n)}function Yt(t){return"string"==typeof t.src&&0<t.src.length&&-1===t.src.indexOf("<script")}function Kt(t,e,n,i){var r,r,r,o;y(n)||(a.et(i.sheet,"beforePaintDecoration",o={context:i,style:n}),null!=(r=n.decoration)&&r.cornerFold&&zt(t,e,n.decoration.cornerFold,i),0<(null==(r=null==(r=n.decoration)?void 0:r.icons)?void 0:r.length)&&Wt(t,e,n.decoration.icons.filter(Yt),n.vAlign,i))}function zt(t,e,n,i){var r,o,n,a,s,u,e,c,r,i,n,f,l,h,d,r=n.size,o=n.position,n=n.color;y(r)&&(r=6),y(o)&&(o=g.CornerPosition.leftTop),a=e.x,s=e.y,u=e.height,e=e.width,r=r*(c=i.sheet).zoom(),t&&0<e&&0<u&&(t.save(),t.rect(a,s,e,u),t.clip(),t.fillStyle=n||"#FF3D00",t.beginPath(),t.fillStyle=n,d=h=l=f=n=i=void 0,o&g.CornerPosition.leftTop&&(f=i=a,l=(n=s)+r,h=i+r,d=n,t.moveTo(i,n),t.lineTo(f,l),t.lineTo(h,d),t.fill()),o&g.CornerPosition.rightBottom&&(l=(n=s+u)-r,h=(f=i=a+e)-r,d=n,t.moveTo(i,n),t.lineTo(f,l),t.lineTo(h,d),t.fill()),o&g.CornerPosition.leftBottom&&(f=i=a,l=(n=s+u)-r,h=i+r,d=n,t.moveTo(i,n),t.lineTo(f,l),t.lineTo(h,d),t.fill()),o&g.CornerPosition.rightTop&&(l=(n=s)+r,h=(f=i=a+e)-r,d=n,t.moveTo(i,n),t.lineTo(f,l),t.lineTo(h,d),t.fill()),t.closePath(),t.restore())}function Wt(t,e,n,i,r){var o,n,a,a,s,u,c;!r.cellOverflowLayout&&0<n.length&&(o=n.filter(function(t){return y(t.position)||t.position===z.IconPosition.left}),n=n.filter(function(t){return t.position===z.IconPosition.right}),0<(a=o.concat(n)).length)&&(ce(a,r),t)&&(a=fe(e.clone(),r),t.save(),t.rect(a.x,a.y,a.width,a.height),t.clip(),t.beginPath(),u=s=a.x,c=a.x+a.width,0<o.length&&(u=s=$t(t,o,a,i,r)),0<n.length&&(c=s=Xt(t,n,a,i,r)),t.restore(),e.width=e.x+e.width-(a.x+a.width-c)-u,e.x=u)}function Jt(t,e,n,i,r){var o,n,a,s;t&&0<n.length&&(o=n.filter(function(t){return t.position===z.IconPosition.outsideLeft&&Yt(t)}),n=n.filter(function(t){return t.position===z.IconPosition.outsideRight&&Yt(t)}),a=3,s=e.x,0<o.length||0<n.length)&&(ce(o,r),ce(n,r),2===r.columnHeaderFitMode&&r.cornerX&&((e=e.clone()).height=e.height-(r.cornerY-e.y)-1,e.y=r.cornerY-1),0<o.length&&(e.x=s-3,Zt(t,o,e,i,r)),0<n.length)&&(e.x=s+3,Qt(t,n,e,i,r))}function Zt(t,e,n,i,r){qt(t,e,n.x,n,i,r)}function Qt(t,e,n,i,r){te(t,e,n.x+n.width,n,i,r)}function Xt(t,e,n,i,r){return qt(t,e,n.x+n.width,n,i,r)}function qt(t,e,n,i,r,o){var a,s,u,c,a,s;for(n-=se(o),u=e.length-1;0<=u;u--)n-=c=m(o,e[u],"width"),ne(t,e[u],n,i.y,c,i.height,o,i,r);return n}function $t(t,e,n,i,r){return te(t,e,n.x,n,i,r)}function te(t,e,n,i,r,o){var a,s,u,c,a,s;for(n+=se(o),u=0;u<e.length;u++)c=m(o,e[u],"width"),ne(t,e[u],n,i.y,c,i.height,o,i,r),n+=c;return n}function ee(t,e){var n,i,r,o,e,a,t,s,s,e,n=e.ctx,i=e.style,r=e.context,o=e.textRect,e=e.availRect;!y(i.decoration)&&n&&(a="beforeFillTextArea"===t?z.IconPosition.leftOfText:z.IconPosition.rightOfText,t=i.decoration.icons&&i.decoration.icons.filter(function(t){return t.position===a&&Yt(t)}))&&0<t.length&&(ce(t,r),2===r.columnHeaderFitMode&&r.cornerX&&(s=r.cellRect.x+r.cellRect.width-(e.x+e.width),(e=e.clone()).width=r.cornerX-e.x-s,e.height=e.height-(r.cornerY-e.y)-1,e.y=r.cornerY-1),s=void 0,e=oe(e,o,a),n.save(),n.rect(e.x,e.y,e.width,e.height),n.clip(),n.beginPath(),a===z.IconPosition.leftOfText?(s=Xt(n,t,e,i.vAlign,r),o.x=s):(s=$t(n,t,e,i.vAlign,r),o.width=s-o.x),n.restore())}function ne(t,e,n,i,r,o,a,s,u){var c,f,l,n,r,o,h,u,e,a,e,h,i,d;t.save(),t.beginPath(),t.rect(n,i,r,o),t.clip(),c=0,f=ue(a),l=e.src,f.getState(l)?f.qh(l)&&(n=new ht.Rect(n,i,r,o),r=m(a,e,"width"),o=m(a,e,"height"),u=ae(n,h=new ht.Rect(0,0,r,o),u,se(a)),e.position!==z.IconPosition.leftOfText&&e.position!==z.IconPosition.rightOfText||((e=a.textRect)&&(u.y=wt(e.y-e.height/2-h.height/2,i+4)),u.y+u.height>n.y+n.height&&(u.y=wt(u.y-(u.y+u.height-n.y-n.height),n.y))),e=(a=f.getImage(l)).width,h=a.height,ht.mt.Tt.msie&&(H[l]||(a.style.position="absolute",a.style.left="-10000px",a.style.top="-100000px",document.body.appendChild(a),H[l]={width:a.width,height:a.height},document.body.removeChild(a)),e=H[l].width,h=H[l].height),s&&ht.mt.Tt.msie&&u.x+u.width>s.x+s.width?0<(i=c=s.x+s.width-u.x)&&t.drawImage(a,0,0,i*(d=e/r),h,B(u.x),B(u.y),i,o):(c=r,t.drawImage(a,0,0,e,h,B(u.x),B(u.y),c,o))):f.addImage(l,"anonymous"),t.restore()}function ie(t){var e=t.context,n=t.style,t=t.externals;dt.W.Xue(n)&&(t.left=t.left.concat(re(e,n,z.IconPosition.leftOfText)),t.right=t.right.concat(re(e,n,z.IconPosition.rightOfText)))}function re(e,t,n){for(var i,r,o,a,i=!1,r=0,o=t.decoration.icons;r<o.length;r++)if((a=o[r]).v_i){i=!0;break}return t.decoration.icons.filter(function(t){return t.position===n&&(!e.cellOverflowLayout||i)}).map(function(t){return{width:m(e,t,"width"),height:m(e,t,"height"),isStick:t.v_i}})}function oe(t,e,n){switch(n){case z.IconPosition.leftOfText:return new ht.Rect(t.x,t.y,e.x-t.x,t.height);case z.IconPosition.rightOfText:return new ht.Rect(e.x+e.width,t.y,t.x+t.width-e.x-e.width,t.height)}}function ae(t,e,n,i){var r,o=2*i;switch(n){case z.VerticalAlign.top:r=0+o;break;case z.VerticalAlign.bottom:r=Math.max(0,t.height-e.height)-o;break;default:r=Math.max(0,(t.height-e.height)/2)}return new ht.Rect(t.x,t.y+r,Math.min(e.width,t.width),Math.min(e.height,t.height))}function se(t){return et(t)?t.printZoomFactor:t.sheet.zoom()}function m(t,e,n){var e=e[n],n=se(t);return(e=y(e)||isNaN(e)||e<=0?12:e)*n}function ue(t){var e=t.sheet,n;return e.MC||t.imageLoader||e.BO()}function ce(t,e){for(var n,i,r,n=ue(e),i=0;i<t.length;i++)(r=t[i].src)&&n.addImage(r,"anonymous")}function fe(t,e){return 2===e.columnHeaderFitMode&&e.cornerX&&(t.width=e.cornerX-t.x,t.height=t.height-(e.cornerY-t.y)-1,t.y=e.cornerY-1),t}function le(t){de(t,"width")}function he(t){de(t,"height")}function de(t,e){var n,i,r,o,a,n=t.cellStyle;if(n.decoration&&n.decoration.icons&&0!==n.decoration.icons.length){for(i=n.decoration.icons,o=r=0;o<i.length;o++)a=i[o],dt.W.Kue(a)&&(r+=m(t.context,a,e));t.value=r}}function ve(t,e,n){var e,i,t,r,o,n,i,e=(t.length-1)*e,i=t[0],t=t[t.length-1],r,o=document.createElement("canvas").getContext("2d");return o.font=n.font,n=o.measureText(i),i=o.measureText(t),{height:e=n.actualBoundingBoxAscent+i.actualBoundingBoxDescent+e,descenderHeight:i.actualBoundingBoxDescent}}function ge(t,e,n,i,r,o,a,s){var u,c,f,l,h,u=n.content;if(u&&0<u.length)for(l=0<(l=o-a-(f=At(t,u,!0))-2)?l:0,h=void 0,c=0;c<u.length;c++)"fillingChar"===u[c].type||"numberPlaceholder"===u[c].type?r+=l:"placeholder"===u[c].type?r+=u[c].value?u[c].value.length*s:0:r+=h=u[c].value?u[c].value.length*s:0;else if(e)for(c=0;c<e.length;c++)r=me(t,e[c],i,r).y;return r}function me(t,e,n,i){var t,r,o,a;if(e&&0<e.length)for(t=t.font,r=J(t,x,Z(e)),o=K(dt.W.V(t,1).fontSize,r),a=0;a<e.length;a++)i=i+r-o,i+=o;return{x:n,y:i}}Object.defineProperty(s,"__esModule",{value:!0}),s.Context=s.Base=s.paintStyleDecorationOutSideIcons=s.paintDecoration=s.clearCacheTimer=s.wordWrapInfoCache=void 0,c=t("Common"),v=t("./dist/core/util/domUtil.js"),ht=t("./dist/core/util/common.js"),dt=t("./dist/core/worksheet/stylehelper.js"),g=t("./dist/core/core.interface.js"),z=t("./dist/core/core.enum.js"),n=t("./dist/core/celltype/celltype.ns.js"),l=t("CalcEngine"),h=c.Common.CultureManager,d=c.Common.st,p=c.Common.ct,t=c.Common.lt,W=t.ht,o=t.dt,J=ht.mt.vt,Ct=ht.mt.gt,Z=ht.mt.pt,vt=ht.mt.bt,b=ht.mt.yt,C=ht.mt.wt,Q=ht.mt.Mt,F=ht.mt.Ct,nt=ht.mt.St,y=c.Common.lt.ht,_=v.GC$.extend,M=ht.mt.Tt,T="left",X="right",q="center",$="alphabetic",P=16,tt="string",S="number",R=null,x=void 0,gt=Math.floor,B=Math.ceil,mt=Math.sin,pt=Math.cos,yt=Math.tan,i=Math.PI,St=Math.abs,r="none",u="General",k="text",wt=Math.max,Mt=Math.min,N=.7,E={},I="...",H={},A=" ",L=new RegExp(U="\xa0","g"),O=D={top:0,0:"top",right:1,1:"right",bottom:2,2:"bottom",left:3,3:"left"},w.At=function(t){var t,e,n,t=t.split("e")[1];if(t&&0<t.length&&("+"===t[0]?e=!0:"-"===t[0]&&(e=!1),n=t.slice(1)),void 0!==e)return{isAdd:e,length:n}},w.It=function(t,e,n){var i,r,i=w.xt,r=i[e+n];return r||(r=Q(t,e,n),i[e+n]=r),r},w.Nt=function(t,e,n,i,r){var o,r,a,a,r,a,s,u,u,c,s,f,a,l,h,o,d,v,g,m,p,o=i.font;if(n=n-1-at(i,3)*r,r=i.textIndent&&0!==i.textIndent,a=i.isVerticalText,typeof e!==S||!0===i.shrinkToFit||a||r)return i._autoFormatter;if(a=e<0,e=St(e),r=a?w.It(t,o,"-"):0,a=e.toString(),(s=w.At(a))&&!1===s.isAdd&&(u=ht.mt.toPlainString(e)).split(".")[1].length<10&&(a=u,s=x),u=void 0,c=w.Dt(i._autoFormatter,e),s)return u=s.length.toString().length,u=wt(u,2),w._t(t,n,i,u,r,s.isAdd,c);if(s=r,f=w.It(t,o,"0"),a=a.split("."),s+=h=f*(l=Math.round(e).toString().length),o=w.It(t,o,"."),d=void 0,h<=n){if(!a[1]||0===a[1].length)return i._autoFormatter;if((s=s+a[1].length*f+o)<=n)return i._autoFormatter;if(e<.001)return u=a[1].length.toString().length,u=wt(u,2),w._t(t,n,i,u,r,!1,c);for(g=Math.floor((v=n-r-h-o)/f),d="0",0<(g=Math.min(g,a[1].length))&&(d+="."),m=0;m<g;m++)d+="0";return d}return u=(p=Math.round(e)).toString().length.toString().length,u=wt(u,2),w._t(t,n,i,u,r,!0,c)},w._t=function(t,e,n,i,r,o,a){var n,s,u,c,f,l,h,e,r,d,v,g,n=n.font,s=w.It(t,n,"0"),u=w.It(t,n,"E"),c=w.It(t,n,"+"),f=w.It(t,n,"-"),l,h,e=e-r-i*s-u-(o?c:f)-s,r=e-w.It(t,n,".");if(r<=s)return o?"0E+00":0<e?"0E-00":"0";for(d=Math.floor(r/s),d=Math.min(d,a),v="0",g=0;g<d;g++)0===g&&(v+="."),v+="0";return v+=o?"E+00":"E-00"},w.Et=function(t,e,n,i,r){var o,r,a,s,u,i,c,f,l,o=i.font;if(n=n-1-at(i,3)*r,r=i.textIndent||0,s=n,(s=1!==(a=i.hAlign)&&0<r?n-8*r:n)<(u=Q(t,o,e))){for(i=w.It(t,o,"#"),c=Math.floor(n/i),f="",l=0;l<c;l++)f+="#";return f}return e},w.nt=function(t,e,n,i,r,o,a,s){var u,c,f,l,h,d,v,g,m,p,S,w;if(o&&"none"!==o&&s)try{s.getState(o)?(u=s.getImage(o),c=void 0,M.msie&&((c=document.createElement("div")).appendChild(u),document.body.appendChild(c)),f=u.width,l=u.height,M.msie&&(c.removeChild(u),document.body.removeChild(c)),d=h=0,v=f,g=l,m=i,p=r,S=e,w=n,1===a?(v=f<=i?f:i,g=l<=r?l:r,S=f<i&&0<f?B(e+i/2-f/2):e,w=l<r&&0<l?B(n+r/2-l/2):n,m=v,p=g):2===a?0<r&&0<l&&f/l<i/r?S=e+i/2-(m=f/l*r)/2:0<i&&0<f&&l/f<r/i&&(w=n+r/2-(p=l/f*i)/2):3===a&&(m=v=f<=i?f:i,p=g=l<=r?l:r),t.drawImage(u,0,0,v,g,S,w,m,p)):s.addImage(o)}catch(t){}},w.Bt=function(t,e,n,i,r){var o,a,s,u,c,f,l,h,d,v,g,m,p,S,w,S,b,C,y,M,y,k,T,x,M,t,y,G,B,I,t,o=0,a=r&&r.sheet,s=r.sheetArea,u=r.row,c=r.col,f=n.textIndent,l=n.hAlign,h=n.isVerticalText,d,v=1===s&&1===a.Lt(c)?-90:n.textOrientation,g=n.borderTop||n.borderBottom||n.borderLeft||n.borderRight,w=n.font;if(v&&-90<=v&&v<=90&&(S=St(v*Math.PI/180),p=mt(S),S=pt(S)),a&&typeof e===tt&&e)if(b=[],C=void 0,t&&t.richText)if(y=n.formatter||n._autoFormatter,y=(M=a.getCellType(u,c,s)).Ft(y,t.text),Ot(C=_(!0,[],M.Pt(t,e,y,w,n.foreColor)),w,i),h)if(n.wordWrap||5===l){if(k=a.Gt(u,s),(T=a.Ut.findSpan(u,c,s))&&T.row>=u&&T.col>=c&&1<T.rowCount)for(x=u+1;x<u+T.rowCount;x++)k+=a.Gt(x,s);for((M=0)<f&&(M=8*f*i),0<(t=bt(n,0))&&(k-=t),0<(y=bt(n,2))&&(k-=y),b=ht.q.Ht(e,++k-at(n,3)-M,w,C,h),m=0;m<b.length;m++)o+=ut(b[m].textInfos,w,i)}else o=ut(C,w,i);else{if(n.wordWrap||5===l){for(G=e.split(/\r\n|\r|\n/),m=0;m<G.length;m++)b.push((0,ht.zt)(G[m]));for(b=ht.q.Vt(b,ht.q.Yt(C)),m=0;m<b.length;m++)o=Math.max(o,ft(b[m],w,i,h,!0))}else o=ct(C,w,i);0<f&&4!==l&&(o+=1===l||5===l?8*f*2:8*f),st(a,u,c,r.sheetArea)&&(o+=Tt(a))}else if(b=e.split(/\r\n|\r|\n/),I=J(B=w)/i,h)if(n.wordWrap||5===l)for(m=0;m<b.length;m++)o+=I;else o=I;else{if(n.wordWrap||5===l){if(v)return t=a.Gt(u,s),ht.q.Zt(u,c,p,S,e,B,t);for(m=0;m<b.length;m++)o=Math.max(o,ht.q.Wt(b[m],B,!0)/i)}else o=v?g?(4+I)/p:S*(a.Qt(e,B)/i)+I*p:4===n.hAlign?a.Jt.Kt(c,s):a.Qt(e,B)/i;0<f&&4!==l&&(o+=1===l||5===l?8*f*2:8*f),st(a,u,c,r.sheetArea)&&(o+=P)}return o},w.Xt=function(t,e,n,i){for(var r,o,a,s,r=t.Jt.Kt(n,i),o=n+1;o<t.getColumnCount(i)&&(a=t.Jt.qt(e,o,i),s=t.Jt.$t(e,o,i,1,a),y(s))&&!a.watermark&&!(a.cellType&&"1"!==a.cellType.typeName||a.cellButtons&&0<a.cellButtons.length||dt.W.Jue(a))&&4===a.hAlign;o++)r+=t.Jt.Kt(o,i);return r},w.tn=function(t,e,n,i,r){var o,a,s,u,c,f,l,h,d,v,g,m,p,S,w,b,C,y,M,k,T,h,x,G,B,h,I,h,T,P,T,N,P,R,E,l,H,U,o=0,s=r&&r.sheet,u=n.font,c=n.isVerticalText,f=n.textIndent,l=n.vAlign,h=n.hAlign,d=n.textOrientation,v=r.row,g=r.col,m=r.sheetArea,B=0<f?8*f*i:0;if(1!==h&&5!==h||(B*=2),d&&-90<=d&&d<=90&&(h=St(d*Math.PI/180),x=mt(h),G=pt(h)),s&&typeof e===tt&&e)if(I=[],h=void 0,t&&t.richText)if(T=n.formatter||n._autoFormatter,T=(P=s.getCellType(v,g,m)).Ft(T,t.text),Ot(h=_(!0,[],P.Pt(t,e,T,u,n.foreColor)),u,i),c){if(n.wordWrap||5===n.hAlign){for(N=e.split(/\r\n|\r|\n/),a=0;a<N.length;a++)I.push((0,ht.zt)(N[a]));for(I=ht.q.Vt(I,ht.q.Yt(h)),a=0;a<I.length;a++)o=Math.max(o,ft(I[a],u,i,c,!0))}else o=ct(h,u,i,c);0<f&&(o+=1===l?8*f*2:8*f)}else if(n.wordWrap||5===n.hAlign){if(p=s.nn(g,m),(b=s.Ut.findSpan(v,g,m))&&b.row>=v&&b.col>=g&&1<b.colCount)for(C=g+1;C<g+b.colCount;C++)p+=s.nn(C,m);for(M=bt(n,1),0<(k=bt(n,3))&&(p-=k),0<M&&(p-=M),I=ht.q.Ht(e,++p-at(n,3)-B,u,h),a=0;a<I.length;a++)o+=ut(I[a].textInfos,u,i)}else o=ut(h,u,i);else if(P=n.font,R=J(P)/i,c){if(n.wordWrap||5===n.hAlign)for(I=e.split(/\r\n|\r|\n/),a=0;a<I.length;a++)E=I[a].length*R,o=Math.max(o,E);else o=e.length*R;0<f&&(o+=1===l?8*f*2:8*f)}else if(n.wordWrap||5===n.hAlign){if(m=r.sheetArea,p=4===n.hAlign?this.Xt(r.sheet,v,g,m):s.nn(g,m),S=s.Gt(v,m),(b=s.Ut.findSpan(v,g,m))&&b.row>=v&&b.col>=g&&1<b.colCount){for(C=g+1;C<g+b.colCount;C++)p+=s.nn(C,m);for(y=v+1;y<v+b.colCount;y++)S+=s.Gt(y,m)}if(M=bt(n,1),0<(k=bt(n,3))&&(p-=k),0<M&&(p-=M),0<(T=bt(n,0))&&(S-=T),0<(h=bt(n,2))&&(S-=h),n.cellButtons&&0<n.cellButtons.length&&(p-=Gt(r,n)),dt.W.Jue(n)&&(p-=Bt(r,n)),n.cellType&&n.cellType.Tfe&&(p-=n.cellType.Tfe(i)),1===m&&(H=!!((l=s.rowFilter&&s.rowFilter())&&l.rn(v,g,m)&&l.filterButtonVisible(g)))&&(p-=s.an(new ht.Rect(0,0,p,S),m).width),d)return I=ht.q.un(e,U=(S-R*G)/x,P),o=x*(w=s.Qt(I[0],P)/i)+R*G;o=(I=F(t)?[e]:ht.q.un(e,p-at(n,3)-B,P)).length*R}else o=d?x*(w=s.Qt(e,P)/i)+R*G:R;return o},w.cn=function(t,e,n,i,r,o,a,s,u,c,f){var l;1===u?(t.beginPath(),(l=t.createLinearGradient(e,n+1,e,n+r-2)).addColorStop(0,s.borderLeftColor),l.addColorStop(1,s.borderRightColor),t.strokeStyle!==l&&(t.strokeStyle=l),o.borderLeft||(t.moveTo(e+.5,n),t.lineTo(e+.5,n+r)),o.borderRight||(t.moveTo(e+i-.5,n),t.lineTo(e+i-.5,n+r)),c&&!o.borderTop&&(t.moveTo(e,n+.5),t.lineTo(e+i,n+.5)),t.stroke(),s.borderBottomWidth&&!o.borderBottom&&(t.beginPath(),t.strokeStyle!==s.borderBottomColor&&(t.strokeStyle=s.borderBottomColor),t.moveTo(e+1,n+r-.5),t.lineTo(e+i,n+r-.5),t.stroke())):(t.beginPath(),(l=t.createLinearGradient(e,n,e+i-2,n)).addColorStop(0,s.borderTopColor),l.addColorStop(1,s.borderBottomColor),t.strokeStyle!==l&&(t.strokeStyle=l),o.borderTop||(t.moveTo(e,n+.5),t.lineTo(e+i,n+.5)),o.borderBottom||(t.moveTo(e,n+r-.5),t.lineTo(e+i,n+r-.5)),f&&!o.borderLeft&&(t.moveTo(e+.5,n),t.lineTo(e+.5,n+r)),t.stroke(),s.borderRightWidth&&!o.borderRight&&(t.beginPath(),t.strokeStyle!==s.borderRightColor&&(t.strokeStyle=s.borderRightColor),t.moveTo(e+i-.5,n+1),t.lineTo(e+i-.5,n+r),t.stroke()))},w.hn=function(t,e){var e,e=2===e?"active":4===e?"inactive":0===e?"disabled":"auto";(0,v.GC$)(t).css("ime-mode",e)},w.dn=function(t,e,n,i,r,o,a){var s,u,u,c,f;return!!(e&&"SparklineExValue"===e.typeName&&(u=(s=a.sheet)&&s.parent)&&(u=u.getSparklineEx(e.name)))&&(f={zoomFactor:c=et(a)?a.printZoomFactor:s.zoom(),sheet:s,rowIndex:a.row,columnIndex:a.col},2===a.columnHeaderFitMode&&(r=s.getColumnWidth(a.col,a.sheetArea)+1),u.paint(t,e.value,n,i,r,o,f),!0)},w.xt={},w.Dt=function(t,e){var n,t,e,e,t,t;return t&&t.vn&&(t=(n=t.vn(e)).format(e))&&t[1]&&"decimalSeparator"===t[1].type?(e=t[2])&&e.type===S?(e=e.value,t=(t=t[3])&&"exponent"===t.type&&t.value&&-1<t.value.indexOf("E"),!W(e)&&t?e.length:5):0:5},w.gn=bt,G=w,s.Context=G,j={"\u2329":1,"\u232a":1,"\u27e8":1,"\u27e9":1,"\u276c":1,"\u276d":1,"\u2770":1,"\u2771":1,"\u3008":1,"\u3009":1,"\u23a1":1,"\u23a6":1,"\u300c":1,"\u300d":1,"\uff62":1,"\uff63":1,"(":1,")":1,"[":1,"]":1,"\uff3b":1,"\uff3d":1,"{":1,"}":1,"\u2774":1,"\u2775":1,"\ufe5b":1,"\ufe5c":1,"\uff5b":1,"\uff5d":1,"\u3016":1,"\u3017":1,"\u2772":1,"\u2773":1,"\u3014":1,"\u3015":1,"\ufe5d":1,"\ufe5e":1,"\u3010":1,"\u3011":1,"\u27ea":1,"\u27eb":1,"\u300a":1,"\u300b":1,"\u300e":1,"\u300f":1},f.prototype.Rge=function(t,e){var n;f.et(t.sheet,"beforePaintCellContent",{context:t,style:e})},f.prototype.pn=function(t,e,n,i){var t={ctx:t,options:{rect:e,context:n,value:i}};return f.et(n.sheet,"paintCellPadding",t),t.options.rect},f.prototype.bn=function(t,e,n){var e={context:t,options:{dom:e,cellRect:n,contentRect:n.clone(),leftExternalRect:new ht.Rect(0,0,0,0),rightExternalRect:new ht.Rect(0,0,0,0)}};return f.et(t.sheet,"onCreateCellEditor",e),e.options.dom},f.prototype.yn=function(t,e,n){var e={ctx:null,options:{rect:e.clone(),context:t,value:null,style:n}};return f.et(t.sheet,"getCellButtonRect",e),e.options.rect},f.prototype.wn=function(t,e,n,i){var e={context:t,options:{dom:e,cellRect:n,cellStyle:i,contentRect:n.clone(),leftExternalRect:new ht.Rect(0,0,0,0),rightExternalRect:new ht.Rect(0,0,0,0)}};return f.et(t.sheet,"onActivateCellEditor",e),e},f.prototype.Mn=function(t,e,n,i){var e={context:t,contentContainer:e,editorBounds:n,cellStyle:i,contentRect:n.clone(),leftExternalRect:new ht.Rect(0,0,0,0),rightExternalRect:new ht.Rect(0,0,0,0)};return f.et(t.sheet,"onUpdateContainer",e),e},f.prototype.Cn=function(t,e,n){var e={context:t,options:{dom:e,cellRect:n,contentRect:n.clone(),leftExternalRect:new ht.Rect(0,0,0,0),rightExternalRect:new ht.Rect(0,0,0,0)}};return f.et(t.sheet,"onDeactivateCellEditor",e),e.options.dom},f.prototype.Sn=function(t,e,n){var i=this;i.deactivateEditor(t,e),i.Cn(e,t,n)},f.prototype.Tn=function(t,e,n,i){var r,o,a,s,i,s,o,i,o,s,u,r=n.labelOptions;r&&(o=i.sheet,a=n.watermark)&&(s=r.visibility,i=o.getText(i.row,i.col,i.sheetArea),1!==s)&&(2!==s&&s!==x||""!==i)&&(s=o.zoom(),i=void 0,i=(o=r.font)?dt.W.V(o,s):dt.W.Lge(n,1),o=J(i.font),s=Ht(e,n),u=void 0,u=Et(n,e)?Ft(e,n,i,o):u)&&(t.save(),t.textAlign=Ut(r.alignment),t.textBaseline="alphabetic",vt(t,i.font),t.fillStyle=r.foreColor||n.foreColor||"grey",t.rect(s.x,s.y,s.width,s.height),t.clip(),t.beginPath(),t.fillText(a,u.x,u.y),t.restore())},f.prototype.An=function(t,e,n){var i,r,o,a,e,i=t.clone(),r=bt(e,0,!1,n),o=bt(e,1,!1,n),a=bt(e,2,!1,n),e=bt(e,3,!1,n);return 0<r&&(i.y+=r,i.height-=r),0<a&&(i.height-=a),0<e&&(i.x+=e,i.width-=e),0<o&&(i.width-=o),o+e>=t.width&&(i.width=0),r+a>=t.height&&(i.height=0),i},f.prototype.In=function(t,e,n,i){var r,o,r,r=this,o=et(i)?i.printZoomFactor:i.sheet.zoom();return e=r.An(e,n,o),f.et(i.sheet,"getCellPaddingRect",r={ctx:t,options:{rect:e,context:i}}),r.options.rect},f.prototype.xn=function(t,e,n,i){var r,o,i,a,s,u,c,o,f,l,e,a,h,d,r=n.labelOptions;r&&(i=(o=i.sheet).getText(i.row,i.col,i.sheetArea),a=n.watermark,1!==(s=r.visibility))&&a&&(u=r.font||n.font||o.Dn.Nn(),1!==(c=o.zoom())&&(u=o.Dn._n(u)),o=J(u),f=Et(n,e)?_t(e,n):f)&&((l=(0,v.GC$)(ht.mt.En("span"))).text(a),e=(2===s||s===x)&&""===i,a=f.height-o,h=f.y+(e&&0<a?a:0),l.css({display:"block",position:"absolute",left:f.x,top:h,width:f.width,height:f.height,font:b(u),color:r.foreColor||n.foreColor||"grey",textAlign:Ut(r.alignment),overflow:"hidden",whiteSpace:"nowrap"}).attr("gcUIElement","gcEditorLabel"),(0,v.GC$)(t).append(l),e)&&(d=setInterval(function(){h--,l.css("top",h),h<=f.y&&clearInterval(d)},20))},f.prototype.jn=function(t){var e,n,i,r,i,e=this,n=ht.mt.En("div");return n.style.cssText="position: absolute; margin: 0;padding: 0 ;overflow: hidden; box-sizing: content-box;resize: none;outline: none;border: 2px #5292f7 solid;box-shadow: 1px 2px 5px rgba(0,0,0,0.4);background-color: white",(i=ht.mt.En("div")).style.cssText="position: absolute; outline: none; border: none",(0,v.GC$)(n).append((0,v.GC$)(i)),(r=e.createEditorElement(t,n))&&(0,v.GC$)(i).append((0,v.GC$)(r)),i=t.sheetArea,e.bn(t,n,t.sheet.getCellRect(t.row,t.col,1===i?-1:x,2===i?-1:x)),n},f.prototype.On=function(t,e,n,i){var r,n,n,o,a,s,n,u,o,c;t&&t.firstChild&&(r=this,Nt(t,e,n=jt(n),i),o=(n=r.wn(i,t,n,e)).options.contentRect,a=n.options.cellRect,s=n.options.leftExternalRect,n=n.options.rightExternalRect,r.xn&&r.xn(t,o,e,i),u=i.sheet.zoom(),o=it(o=r.An?r.An(o,e,u):o,s,n),c=t.firstChild,(0,v.GC$)(c).css({left:(+(0,v.GC$)(c).css("left").replace("px","")||0)+bt(e,3,!1,u),top:(+(0,v.GC$)(c).css("top").replace("px","")||0)+bt(e,0,!1,u)}),r.activateEditor(t.firstChild.firstChild,e,o,i,a,s,n))},f.prototype.updateEditorContainer=function(t,e,n,i,r,o,a){var e,t,e,s,u,t;t&&e&&(t=(e=t.parentNode)?e.parentNode:x)&&r&&(e=(0,v.GC$)(t),s=r.width,u=r.height,0<s&&(e.width(s),t=t.lastChild,n)&&"gcEditorLabel"===t.getAttribute("gcUIElement")&&(0,v.GC$)(t).width(s-bt(n,3,!0)-bt(n,1,!0)-2),0<u&&e.height(u),W(r.x)||e.css("left",r.x+"px"),W(r.y)||e.css("top",r.y+"px"))},f.prototype.Rn=function(t,e,n,i){var r,o,n,t,n,a,s,t,o,a,a,s,t,u,c,n,r=this,o=t.firstChild,n=jt(n);Nt(t,e,n,i),n=(t=r.Mn(i,o,n,e)).editorBounds,a=t.contentRect,s=t.leftExternalRect,t=t.rightExternalRect,o=o.firstChild,a=it(a=r.An?r.An(a,e,i.sheet.zoom()):a,s,t),a=r.updateEditor(o,e,a,i,n,s,t),s={width:s.width,height:s.height},t={width:t.width,height:t.height},c=!isNaN(a&&a.width)&&a.width+s.width+t.width>n.width?a.width+s.width+t.width:n.width,n=!isNaN(a&&a.height)&&a.height+s.height+t.height>n.height?a.height+s.height+t.height:n.height,r.updateEditorContainer(o,a,e,i,u={width:c,height:n},s,t)},f.prototype.Bn=function(t,e,n,i,r){return this.getCellAndPaddingHitInfo(t,e,n,i,r)},f.prototype.Ln=function(t,e,n,i,r){var o,t,o=Gt(r,n)+xt(r)+Bt(r,n),t=this.getAutoFitWidth(t,e,n,i,r);return 0<t&&(o+=t+bt(n,3,!1)+bt(n,1,!1)),o},f.prototype.Fn=function(t,e,n,i,r){var o,t,o=0,t=this.getAutoFitHeight(t,e,n,i,r);return 0<t&&(o+=t+bt(n,0,!1)+bt(n,2,!1)),o=Math.max(Pt(r,n),o),Math.max(It(r,n),o)},f.prototype.paintValue=function(t,e,n,i,r,o,a,s){var u,c,f,l,l,u=this,c={};s.quotePrefix=a.quotePrefix,(f=this.format(C(e),a.formatter||a._autoFormatter,c,s))&&(l=new ht.Rect(n,i,r,o),this.adjustRectForIconSet(a.hAlign,s.sheet,s.row,s.col,s.sheetArea,l,c.content&&this.hasInfilling(c.content)),n=l.x,r=l.width,l=u.Pn(t,f,a,s,n,i,r,o),this.paintText(t,e,n,i,r,o,a,s,f,c,x,l.externals))},f.prototype.Gn=function(t,e,n,i){var t=0<t?8*t*i:0;return t=e&&e.Un(n)?0:t},f.prototype.Ft=function(t,e){return!!(!t||o(t,tt)&&t===u||t&&t.formatString&&t.formatString()===u)||!(e&&(!isNaN(e)||"TRUE"===e.toUpperCase()||"FALSE"===e.toUpperCase())&&"@"!==t)},f.prototype.Hn=function(t){for(var e,n,e=0,n=0;n<t.length;n++)e+=t[n].width;return e},f.prototype.Fge=function(t){for(var e,t,n,i,r,o,a,e=t.left,t=t.right,n=0,i=e;n<i.length;n++)if((r=i[n]).isStick)return!0;for(o=0,a=t;o<a.length;o++)if((r=a[o]).isStick)return!0;return!1},f.prototype.zn=function(t){for(var e,n,e=0,n=0;n<t.length;n++)e+=t[n].height;return e},f.prototype.Vn=function(t,e,n,i,r){var o;f.et(e.sheet,"beforePaintLabel",{ctx:t,options:{rect:n,context:e,value:i,style:r}})},f.prototype.Pn=function(t,e,n,i,r,o,a,s){var t={ctx:t,text:e,rect:new ht.Rect(r,o,a,s),style:n,context:i,externals:{left:[],right:[]}};return f.et(i.sheet,"beforePaintText",t),ie(t),t},f.prototype.Yn=function(t,e,n,i,r,o,a,s,u){var t={ctx:t,style:e,context:n,textRect:new ht.Rect(i,r,o,a),availRect:s};return f.et(n.sheet,u,t),ee(u,t),t},f.prototype.Zn=function(t,e,n,i,r,o,a,s){return this.Yn(t,e,n,i,r,o,a,s,"beforeFillTextArea")},f.prototype.Wn=function(t,e,n,i,r,o,a,s){return this.Yn(t,e,n,i,r,o,a,s,"afterFillTextArea")},f.prototype.paintText=function(t,e,n,i,r,o,a,s,u,c,f,l){var h,d,v,g,m,p,S,w,b,C,w,b,p,h=this;t.save(),t.beginPath(),d=a.textOrientation,v=a.textIndent&&0!==a.textIndent,g=a.hAlign,m=a.isVerticalText&&4!==g,4===g&&(d=0,v=!1),p=s.sheet,S=s.sheetArea,w=p.rowFilter&&p.rowFilter(),b=s.columnHeaderFitMode,!(C=!!(w&&w.rn(s.row,s.col,S)&&w.filterButtonVisible(s.col)))||b!==z.ColumnHeaderFitMode.normal&&b!==z.ColumnHeaderFitMode.vertical||(y(s.cornerX)||(r=s.cornerX-n),r-=p.an(new ht.Rect(n,i,r,o),S).width),w=a.wordWrap,b=a.shrinkToFit,p=a.showEllipsis,5===g&&(s.sheet.options.showFormulas&&s.isFormula?(a.hAlign=1,a.wordWrap=!1):a.wordWrap=!0,a.shrinkToFit=!1,a.showEllipsis=!1),e&&e.richText&&0<e.richText.length&&e.text===u||m?h.Qn(t,e,n,i,r,o,a,s,u,c,f,l):0!==d&&!W(d)&&-90<=d&&d<=90&&!v&&!m?h.Kn(t,e,n,i,r,o,a,s,u,c,f,l):h.Jn(t,e,n,i,r,o,a,s,u,c,f,l),5===g&&(a.hAlign=5,a.wordWrap=w,a.shrinkToFit=b,a.showEllipsis=p),t.restore()},f.prototype.Xn=function(t,e,n,i,r,o,a,s,u,c){for(var f,l,h,d,v,g,m,p,S,w,b,C,y,M,k,T,x,G,f=e.sheet,l=e.row,h=e.col,d=r.vAlign,v=e.sheetArea,g=0;g<n.length;g++)if(m=n[g].text,p=i[g].lineHeight,S=1===d?0:s,w=this.qn(t,"0"),b="",(C=o)-1-2-S<m.length*p){if(C<3*w)c.push(0),b=I;else if(y=gt((C-1-2-3*w-(1===d?0:s))/p),(M=0)===d){for(k=0;k<y;k++)b+=m[k];T=b.length,3*w+((b+=I).length-3)*p+s>C-1-2?(b=b.substring(0,b.length-4)+I,c.push(b.split(I)[0].length)):c.push(T)}else if(1===d){for(x=0;x<B(y/2);x++)b+=G=m.charAt(x),M=x;for(T=b.length,b+=I,x=B(m.length-y/2);x<m.length;x++)b+=G=m.charAt(x);3*w+(b.length-3)*p+s>C-1-2?(b=b.replace(m[M],""),c.push(b.split(I)[0].length)):c.push(T),u[g].y=a+(o-(3*w+(b.length-3)*p))/2}else{for(c.push(0),k=m.length-1;k>=m.length-y;k--)b=m[k]+b;3*w+((b=I+b).length-3)*p+s>C-1-2&&(b=b.replace(m[m.length-y],"")),u[g].y=a+o-s-(3*w+(b.length-3)*p)-2}n[g].textInfos[0].text=b,f.Ut.$n(l,h,m,v)}else f.Ut.$n(l,h,null,v)},f.prototype.Qn=function(t,e,n,i,r,o,a,s,u,c,f,l){var h,d,v,g,m,p,S,w,b,C,y,w,M,v,g,k,l,v,T,x,g,k,G,B,I,p,y,P,N,h=this,d=new ht.Rect(n,i,r,o),v=s.sheet?s.sheet.zoom():1,g=s.printZoomFactor;if(g=et(s)?g:R,m=h.Gn(a.textIndent,s.sheet.outlineColumn,s.col,g?g*v:v),p=s.cellOverflowLayout&&s.cellOverflowLayout.expandedWidth,S=a.hAlign,w=a.formatter||a._autoFormatter,3===S&&(S=Ct(S,e,w)),C=!!(b=a.isVerticalText&&4!==S)&&Z(u),y=a.font,w=h.Ft(w,e.text),M=_(!0,[],h.Pt(e,u,w,y,a.foreColor)),(0,ht.resetFillStyle)(t,s.sheet,a,f),e&&e.richText&&0<e.richText.length&&h.te(M,y,v,g),g=v=0,l&&(v=h.Hn(l.left),g=h.Hn(l.right),k=h.Fge(l)),l=v+g,v={left:v,right:g,isStick:k},!a.wordWrap&&a.shrinkToFit&&(4===a.hAlign?h.ne(M,p-l,o,a,y,1,b):h.ne(M,r-l,o,a,y,1,b)),T=h.ee(t,u,a.font,b?o:r-l,m,b?a.vAlign:a.hAlign,a.wordWrap,b,M),x=h.re(T,a,S,f),g=h.oe(t,a,n,i,r,o,a.wordWrap,s.cellOverflowLayout,S,m,b,T[0].textLength,x[0].lineHeight),k=!1,a.showEllipsis&&b&&!e.richText&&(k=!0),G=[],G=4===S?h.ae(n,i,s.cellOverflowLayout.expandedWidth,o,S,a.vAlign,m,b,C,T,x,v,k,a):h.ae(n,i,r,o,S,a.vAlign,m,b,C,T,x,v,k,a),B=T.length,I=[],k&&c&&(c.content&&1===c.content.length&&"text"===c.content[0].type||!c.content&&1===T.length&&T[0].text)&&this.Xn(t,s,T,x,a,o,i,m,G,I),1===B&&c&&!w)h.ue(t,s.sheet,u,c,G[0].x,G[0].y,r,o,S,a,g.width,g.height,m,b,T[0].textLength,s,v,d);else{for(p=h.se(T),y=G[0].x,t.textAlign===q?y-=p/2:t.textAlign===X&&(y-=p),h.Zn(t,a,s,G[0].x,G[0].y,p,0,d),P=r-l-4-2*m,N=0;N<B;N++)h.ce(t,s.sheet,G[N].x,G[N].y,x[N],S,T[N],I[N],P);h.Zn(t,a,s,y,G[0].x,p,0,d)}},f.prototype.se=function(t){for(var e,n,e=t[0].textLength,n=0;n<t.length;n++)e=wt(e,t[n].textLength);return e},f.prototype.qn=Y,f.prototype.fe=function(t,e,n,i,r,o,a){var s,u,n,c,f,t,l,h,r,d,v,g,m,p,S,w,b,C,y,M,y,u=t.sheetArea,s=n,n=this.qn(i,s),c=t.sheet,f=t.row,t=t.col,l=r,h=0,r=this.qn(i,"0"),d;if(h=this.qn(i,I),l-1-2-(v=1===o?0:a)<n){if(g="",2===o)for(m=s.length-1;0<=m;m--){if(l-1-2-a<h){p=g.length,g=I+g.substring(1,p);break}g=(S=s.charAt(m))+g,h+=w=this.qn(i,S)}else if(1===o){for(b=B((l-h)/r),m=0;m<b/2;m++)g+=S=s.charAt(m);for(g+=I,m=gt(s.length-b/2);m<s.length;m++)g+=S=s.charAt(m);for(C=this.qn(i,g);l-1-2<C&&g!==I;)M=(y=g.split(I))[0],y=y[1],g=M.length>y.length?M.substring(0,M.length-1)+I+y:M+I+y.substring(1,y.length),C=this.qn(i,g)}else for(m=0;m<s.length;m++){if(l-1-2-a<h){p=g.length,g=g.substring(0,p-1)+I;break}g+=S=s.charAt(m),h+=w=this.qn(i,S)}e.content=[{value:g,type:"text"}],c.Ut.$n(f,t,s,u)}},f.prototype.Jn=function(t,e,n,i,r,o,a,s,u,c,f,l){var h,d,v,g,m,p,S,F,w,b,C,y,_,M,k,T,x,A,L,G,B,f,v,f,I,P,D,l,j,O,V,N,Y,P,T,S,K,I,w,S,p,I,v,S,R,p,E,g,H,U,U,H,o,f,e,P,U,H,g,h=this,d=0,v=a.textIndent,g=a.wordWrap,m=a.hAlign,p=a.vAlign,S=a.shrinkToFit,F=a.textDecoration,w="left",b=2,C=2,y=a.font,_=0,M=[],k=0,T=s.sheet,x=new ht.Rect(n,i,r,o),A=s.cellOverflowLayout&&s.cellOverflowLayout.expandedWidth,L=s.offsetX;if(L=L||0,4===m&&(v=0),W(s.fontInfo)&&(s.fontInfo=dt.W.Lge(a,T.zoom()),et(s))&&(s.fontInfo=dt.W.V(s.fontInfo.font,s.printZoomFactor)),G=parseInt(s.fontInfo.fontSize,10),W(s.lineHeight)&&(s.lineHeight=J(dt.W.Lge(a,T.zoom()).font,!1,Z(u))),B=s.lineHeight,(0,ht.resetFillStyle)(t,T,a,f),f=T.zoom()||1,et(s)&&(f*=s.printZoomFactor),0<v&&(d=8*v*f),T.outlineColumn&&T.outlineColumn.Un(s.col)&&(d=0),3===m&&(m=Ct(m,e,a.formatter||a._autoFormatter)),v=1,vt(t,y),I=f=0,l&&(f=h.Hn(l.left),I=h.Hn(l.right),P=h.Fge(l)),D=f+I,l={left:f,right:I,isStick:P},!g&&S){for(O={value:!1},V=void(j=0),N=0;N<3&&!1===O.value&&(Y=t.measureText(u).width,j=wt(0,r-4-(1===m?0:d)-D),(j=4===m?wt(0,A-4-d-D):j)<Y);N++)y=(V=dt.W.V(y,j/Y,O,!0)).font,vt(t,y);V&&(v=G/V.fontSize,G=V.fontSize)}if(P=(P=T.parent&&T.parent.options.numbersFitMode===z.NumbersFitMode.overflow||!1)||(c&&c.content?!(!c.content||1!==c.content.length||"text"!==c.content[0].type):"string"==typeof e&&e===u),!g&&!S&&a.showEllipsis&&P&&this.fe(s,c,u,t,r,m,d),b+=d+f,1===m||4===m||5===m?(b=(r+f-I)/2,w=q):2===m&&(b=r-I-1-2,w=X,b=ot(a,b-=d)),t.textAlign!==w&&(t.textAlign=w),T=0,g&&(T=r-D-(S=at(a,3))-(1===m||5===m?2*d:d),4===m&&(T=A-D-S-d),--T,1<(k=(M=s.isPrinting?ht.q.un(u,T,y,!1,t):rt(u,T,y,!1,t)).length))&&0!==p&&(_=(k-1)*B),C=(C+(B-(I=B/2-G/2+(K=8<G?gt((G-8)/5+2):1)-1)))/v,1===p?C=(o-_)/2+B/2-I:2===p&&(C=o-(_+2+I)/v),t.textBaseline!==$&&(t.textBaseline=$),p={x:(S=(w=s.cellOverflowLayout)&&w.layout)?S.x:n+1,y:S?S.y:i+1,width:S?S.width:r-2,height:S?S.height:o-2},w&&4===m&&(b+=(w.expandedWidth-r)/2),b+=L,I=S&&S.width>r||4===m,v=p.x,S=p.y,R=p.width,p=p.height,g)if(t.rect(v,S,R,p),t.clip(),t.beginPath(),E=i+C,1<k||5===m)if(g=n+b,t.textAlign===q?g-=T/2:t.textAlign===X&&(g-=T),U=E,(H=ve(M,B,a)).descenderHeight&&(U+=H.descenderHeight),s.textRect=new ht.Rect(g,Mt(U+(M.length-1)*B,i+o),T,Mt(H.height,o)),5===m)U=b,H=2+d+f+L,!P&&!nt(a.formatter)&&typeof a.formatter===tt&&"object"!=typeof e||P&&1===k&&!h.Bge(M[0])?h.he(t,u,c,n+U,i+C,1,R,d,F,K,G,s,a,l,x,I):(h.Zn(t,a,s,g,E,T,B*k,x),h.Pge(t,M,n,E,T,U,H,B,a,G,K),h.Wn(t,a,s,g,E,T,B*k,x));else{for(h.Zn(t,a,s,g,E,T,B*k,x),N=0;N<k;N++)t.fillText(M[N],n+b,E),F&&(Y=t.measureText(M[N]).width,h.le(t,F,n+b,E,Y,G,K)),E+=B;h.Wn(t,a,s,g,E,T,B*k,x)}else h.he(t,u,c,n+b,i+C,m,R,d,F,K,G,s,a,l,x,I);else f=R-(n+1-v)<(o=Q(t,t.font,u)+D)||p<B||0!==L,4===m&&(f=!0),e=bt(a,0),P=bt(a,1),U=bt(a,2),H=bt(a,3),f||(1===m||4===m?w&&((g=o/2)>w.backgroundLeftWidth||g>w.backgroundRightWidth)&&(f=!0):(R<o+d+e+U||p<_+H+P)&&(f=!0)),f&&(t.rect(v,S,R,p),t.clip(),t.beginPath()),h.he(t,u,c,n+b,i+C,m,R,d,F,K,G,s,a,l,x,I)},f.prototype.Bge=function(t){var t=ht.q.Gge(t);return 1<t.length||1===t.length&&0<t[0].prefixSpaceCount},f.prototype.Pge=function(t,e,n,i,r,o,a,s,u,c,f){for(var l,h,d,v,g,m,p,S,w,b,w,C,y,M,k,k,l=e.length,h=i,d=u.textDecoration,v=this,g=r,m=0;m<l;m++){if(p=e[m]){if(1===(S=ht.q.Gge(p)).length)t.textAlign=q,t.fillText(p,n+o,h),d&&(w=t.measureText(p).width,v.le(t,d,n+o,h,w,c,f));else for(t.textAlign=T,b=t.measureText(" ").width,w=t.measureText(p).width,C=n+a,(y=0)<S[0].prefixSpaceCount?C+=y=(g-w)/S.length:y=(g-w)/(S.length-1),M=0;M<S.length;M++)C+=(k=S[M]).prefixSpaceCount*b,t.fillText(k.word,C,h),k=t.measureText(k.word).width,d&&v.le(t,d,C,h,k,c,f),C+=k+y}h+=s}},f.prototype.Kn=function(t,F,_,e,n,i,r,o,a,s,A,L){var D,u,c,f,j,O,V,l,h,d,Y,v,g,m,K,p,z,S,W,w,w,b,C,J,y,Z,M,k,T,x,w,Q,X,G,w,B,I,q,$,P,N,R,tt,et,E,nt,it,rt,ot,at,H,U,st,ut,ct,ft,lt,s,A,F,L,O,Z,j,c,u=this,c=r.wordWrap,f=r.hAlign,j=r.vAlign,O=r.shrinkToFit,V=r.textDecoration,l=2,h=2,d=r.font,Y=[],v=0,p=parseInt(o.fontInfo.fontSize,10),z=o.sheet,W=new ht.Rect(_,e,n,i),w=o.cellOverflowLayout,w=w&&w.layout,b=r&&(r.borderLeft||r.borderTop||r.borderRight||r.borderBottom)&&!z.getSpan(o.row,o.col,o.sheetArea),C=r.textOrientation,J=C*Math.PI/180,y=St(J),Z=pt(y),M=mt(y),k=yt(y),T=o.lineHeight,x=90===C||-90===C;if(b&&(-90<C&&C<0&&(S=!1),0<C)&&C<90&&(S=!0),Q=(w={x:w?w.x:_+1,y:w?w.y:e+1,width:w?w.width:n-2,height:w?w.height:i-2}).x,X=w.y,G=w.width,w=w.height,B=T/2*mt(y),I=T/2*pt(y),$=T/2-p/2+(q=8<p?gt((p-8)/5+2):1)-1,s&&s.content&&0<s.content.length&&!O&&(a=u.de(t,s.content,i-4,d)),P=z.Qt(a,d),(0,ht.resetFillStyle)(t,z,r,A),3===f&&(f=Ct(f,F,r.formatter||r._autoFormatter,C)),vt(t,d),R=N=0,L&&(N=u.Hn(L.left),R=u.Hn(L.right)),!c&&O)for(et={value:!1},E=tt=0;E<3&&!1===et.value&&(tt=wt(0,(i-4-2*I)/M))<P;E++)d=dt.W.V(d,tt/P,et,!0).font,vt(t,d),p=null!=(D=r.Uge)?D:parseInt(o.fontInfo.fontSize,10),P=z.Qt(a,d),B=(T=ht.mt.vt(d))/2*mt(y),I=T/2*pt(y);if(it=nt=0,c)for(v=(Y=ht.q.un(a,it=(i-4-2*I)/M,d,!1,t)).length,P=z.Qt(Y[0],d),rt=0;rt<v;rt++)nt<(ot=z.Qt(Y[rt],d))&&(nt=ot);switch(g=P/2*Z,m=(c?nt:P)/2*M,5===f&&(C<0&&(f=2,x)&&1===v&&(R=(G-T)/2),0<C&&(f=0,x)&&1===v&&(N=(G-T)/2),x)&&1<v&&(T=(G-T)/(v-1))<o.lineHeight&&(T=o.lineHeight),at=""+f+(j=i<=(K=(c?nt:P)*M+2*I)?2:j)){case"00":l+=g+B+N,h+=m,x||(h+=I),b&&(l=(i-h)/k*(S?1:-1)+(T/2+2)/M+N);break;case"01":l+=g+B+N,h=i/2,b&&(l=(i-h)/k*(S?1:-1)+(T/2+2)/M+N);break;case"02":l+=g+B+N,h+=m,x||(h+=I),b&&(l=h/k*(S?1:-1)+(T/2+2)/M+N),h=i-h;break;case"10":l=(n+N-R)/2,h+=m,x||(h+=I),b&&(l+=(S?1:-1)*(i-h)/k);break;case"11":l=(n+N-R)/2,h=i/2,b&&(l+=(S?1:-1)*(i-h)/k);break;case"12":l=(n+N-R)/2,h+=m,x||(h+=I),b&&(l+=(S?1:-1)*h/k),h=i-h;break;case"20":l=n-2-g-B-R,h+=m,x||(h+=I),b&&(l=n+(i-h)/k*(S?1:-1)-(T/2+2)/M-R);break;case"21":l=n-2-g-B-R,h=i/2,b&&(l=n+(i-h)/k*(S?1:-1)-(T/2+2)/M-R);break;case"22":l=n-2-g-B-R,h+=m,x||(h+=I),b&&(l=n+h/k*(S?1:-1)-(T/2+2)/M-R),h=i-h}if(c)if(H=_+l,U=T/M,st=void 0,90===Math.abs(C)&&(ft=G<P*v+(ut=bt(r,1))+(ct=bt(r,3)))&&(t.rect(Q,X,G,w),t.clip()),1<v){for(1===f&&(H-=(lt=v%2!=0)?U*(v-1)/2:v/2*U-.5*U),A=(s=Vt(H,e+h,P,J,T)).width+U*(v-1),F=s.height,L=s.y,O=s.x-U*(v-1),o.textRect=new ht.Rect(O,Mt(e+2*h,W.y+W.height),A,2*h-T/2),u.Zn(t,r,o,O,L,A,F,W),E=0;E<v;E++)st=E,(0<r.textOrientation&&2===f||r.textOrientation<0&&(0===f||1===f))&&(st=v-E-1),u.ve(t,J,Y[st],H,e+h,V,p,q,$),H=2===f?H-U:H+U;u.Zn(t,r,o,O,L,A,F,W)}else u.me(t,a,_,e,l,h,o,r,P,J,V,p,q,T,$,W);else Z=P*M+p*M+2,j=bt(r,0),c=bt(r,2),(ft=w-(e+1-X)<Z||w<T||w<Z+j+c)&&(t.rect(Q,X,G,w),t.clip()),u.me(t,a,_,e,l,h,o,r,P,J,V,p,q,T,$,W)},f.prototype.me=function(t,e,n,i,r,o,a,s,u,c,f,l,h,d,v,g){var m,p,S,w,b,p,C,m=this,p=Vt(n,i,u,c,d),S=p.width,w=p.height,b=p.x,p=p.y;(dt.W.Hge(s)||dt.W.Vge(s))&&(C=St(c),b=n+r-(S=u*pt(C)+d*mt(C))/2,p=i+o-(w=u*mt(C)+d*pt(C))/2),a.textRect=new ht.Rect(b,Mt(p+w,g.height+g.y),S,w),m.Zn(t,s,a,b,p,S,w,g),m.ve(t,c,e,n+r,i+o,f,l,h,v),m.Wn(t,s,a,b,p,S,w,g)},f.prototype.te=function(t,e,n,i){Ot(t,e,n,i)},f.prototype.ne=function(t,e,n,i,r,o,a){for(var s,u,c,f,l,s=0,u={value:!1},c=0;c<3&&!1===u.value&&(f=ct(t,r,o,a),s=wt(0,(a?n:e)-4),(s=(a?i.vAlign:1!==i.hAlign&&i.textIndent)?wt(0,s-8*i.textIndent*o):s)<f);c++)for(l=0;l<t.length;l++)t[l].style.font=dt.W.V(t[l].style.font,s/f,u,!0).font},f.prototype.Pt=function(t,e,n,i,r){var t=t.richText;return t=!W(t)&&n?t:[{style:{font:i,foreColor:r},text:e}]},f.prototype.oe=function(t,e,n,i,r,o,a,s,u,c,f,l,h){var d,r,d,o,v,g,m,d=s&&s.layout,r={x:d?d.x:n+1,y:d?d.y:i+1,width:d?d.width:r-2,height:d?d.height:o-2},d=r.x,o=r.y,v=r.width,g=r.height;return(a||(m=this.ge(e,u,e.vAlign,n,i,g,v,d,o,l,h,c,f,s)))&&(t.rect(d,o,v,g),t.clip(),t.beginPath()),r},f.prototype.ge=function(t,e,n,i,r,o,a,s,u,c,f,l,h,d){var v,g,m,p,t,h,g=bt(t,0),m=bt(t,1),p=bt(t,2),t=bt(t,3);return h?(!(v=o-(r+1-u)<c||a<f)&&1!==n&&o<c+l+g+p||a<f+t+m)&&(v=!0):(v=a-(i+1-s)<c||o<f)||(1===e?d&&((h=c/2)>d.backgroundLeftWidth||h>d.backgroundRightWidth)&&(v=!0):(a<c+l+t+m||o<f+g+p)&&(v=!0)),v},f.prototype.ee=function(t,e,n,i,r,o,a,s,u){var c,f,l,h,h;if(i=1===o||5===o?i-3-2*r:i-3-r,a)return ht.q.Ht(e,i,n,u,s,t);for(f=c=0;f<u.length;f++)l=u[f].text,s?c+=J(u[f].style.font)*(l?l.length:0):(h=dt.W.V(u[f].style.font,1),h=u[f].style.vertAlign?h.fontSize*N+"px "+h.fontFamily:u[f].style.font,c+=Q(t,h,l));return[{textLength:c,text:e,textInfos:u}]},f.prototype.ue=function(t,e,n,i,r,o,a,s,u,c,f,l,h,d,v,g,m,p){var S,w,b,S=dt.W.Lge(c,1).fontSize,w=8<S?gt((S-8)/5+2):1;this.pe(t,e,c),d?this.be(t,n,i,c,r,o,l,h,l,g,m,p):this.he(t,n,i,r,o,u,f,h,c.textDecoration,w,S,g,c,m,p,b=a<f,v)},f.prototype.be=function(t,e,n,i,r,o,a,s,u,c,f,l){var h,d,v,g,m,p,S,w,h=this,d=n.content,g=o;if(c.textRect=new ht.Rect(r,g,u,ge(t,e,n,r,o,a,s,u)-g),h.Zn(t,i,c,r,g,u,u*e.length,l),d&&0<d.length)for(p=0<(p=a-s-(m=At(t,d,!0))-2)?p:0,S=void 0,v=0;v<d.length;v++)"fillingChar"===d[v].type?(w=Dt(t,p,d[v].value,!0),this.ye(t,w,r,o),o+=p):"placeholder"===d[v].type?o+=d[v].value?d[v].value.length*u:0:"numberPlaceholder"===d[v].type?o+=u:(this.ye(t,d[v].value,r,o),o+=S=d[v].value?d[v].value.length*u:0);else if(e)for(v=0;v<e.length;v++)o=this.ye(t,e[v],r,o,u).y;h.Wn(t,i,c,r,g,u,o-g,l)},f.prototype.we=function(t){var e=T;return 1===t?e=q:2===t&&(e=X),e},f.prototype.ce=function(t,e,n,i,r,o,a,s,u){for(var c,f,l,h,d,c=[],f=a.textInfos,l=0;l<f.length;l++)c.push(_(!0,{},r,f[l].style));for(h=0,!r.isVerticalText&&5===o&&1<a.textInfos.length&&a.text.includes(" ")&&u&&(h=(u-a.textLength)/(a.textInfos.length-1))<0&&(h=0),l=0;l<f.length;l++)n=(d=this.Me(t,e,n,i,c[l],f[l].text,s)).x+h,i=d.y},f.prototype.re=function(t,e,n,i){for(var r,o,a,s,r=[],o=t.length,a=0;a<o;a++)s=this.Ce(e,n,i,t[a].textInfos),r.push(s);return r},f.prototype.Ce=function(t,e,n,i){var r,o,a,s,u,c,f,r=this,o=0,a=0;if(i)for(s=0;s<i.length;s++)u=void 0,u=(i[s].style&&i[s].style.font&&i[s].text?i[s].style:t).font,o=Math.max(J(u,x,Z(i[s].text)),o),a=Math.max(dt.W.V(u,1).fontSize,a),(i[s].style&&1===i[s].style.vertAlign||2===i[s].style.vertAlign)&&(o=Math.max(J(u,x,Z(i[s].text))+2*dt.W.V(u,N).fontSize*.218,o));return{lineHeight:o,fontSize:a,baselineOffset:c=8<a?gt((a-8)/5+2):1,lineOffset:f=o/2-a/2+c-1,font:t.font,foreColor:t.foreColor,textDecoration:t.textDecoration,isVerticalText:t.isVerticalText,textAlign:r.we(e),textBaseline:$,opacity:n}},f.prototype.Se=function(t,e,n){for(var i=0,r=0,o,o=0;o<t.length;o++)r+=e[o].lineHeight,i=Math.max(t[o].textLength,i);return{width:n?r:i,height:n?i:r}},f.prototype.ae=function(t,e,n,i,r,o,a,s,u,c,f,l,h,d){var v,g,m,p,S,w,b,v,v=this.Se(c,f,s),g=v.height,m=v.width,p=[];if(s)for(b=0,5===(w=r)&&(1===c.length?w=1:(w=0,m<(v=n-4-l.left-l.right)&&(b=(v-m)/(c.length-1)))),S=0;S<c.length;S++)p.push(this.Te(t,e,n,i,w,o,a,m,c[S].textLength,f[S].lineHeight,f[S].lineOffset,u,l,c[S],h,d)),u?t-=f[S].lineHeight+b:t+=f[S].lineHeight+b;else for(S=0;S<c.length;S++)5===(w=r)&&(w=c[S].text.includes(" ")?0:1),p.push(this.Ae(t,e,n,i,w,o,a,c[S].textLength,g,f[S].lineHeight,f[S].lineOffset,l,d)),e+=f[S].lineHeight;return p},f.prototype.Ae=function(t,e,n,i,r,o,a,s,u,c,f,l,h){var d,v,g,l,d=0,v=0,g=l.left,l=l.right;return v=1===o?(i-u)/2+c-f:2===o?i-u-2+c-f:2+c-f,1===r||4===r?d=(n-s+g-l)/2:2===r?(d=ot(h,d=n-1-2-s-l),d-=a):d=2+a+g,{x:t+d,y:e+v}},f.prototype.Te=function(t,e,n,i,r,o,a,s,u,c,f,l,h,d,v,g){var m,p,S,w,h,m=0,p=0,w=h.left,h=h.right;return l?0===r?m=2+s+h-c/2:1===r?m=(n-w+h+s)/2-c/2:2===r&&(m=ot(g,m=n-w-1-2-c/2)):1===r?m=(n-s+w-h)/2+c/2:2===r?m=ot(g,m=n-1-2-h-s+c/2):0===r&&(m=2+w+c/2),{x:t+m,y:e+(p=1===o?(i-u)/2:2===o?i-a-u-2:2+a)}},f.prototype.Me=function(t,e,n,i,r,o,a){var e,a;return t.save(),this.pe(t,e,r),e=r.vertAlign,a=r.isVerticalText?this.ye(t,o,n,i,r.textDecoration,r.baselineOffset,a):this.Ie(t,n,i,r,o,e),t.restore(),a},f.prototype.pe=function(t,e,n){(0,ht.resetFillStyle)(t,e,n);var e=n.vertAlign?this.xe(n.font):n.font;W(n.textBaseline)||t.textBaseline===n.textBaseline?W(t.textBaseline)&&t.textBaseline!==$&&(t.textBaseline=$):t.textBaseline=n.textBaseline,n.isVerticalText?t.textAlign!==q&&(t.textAlign=q):t.textAlign!==T&&(t.textAlign=T),vt(t,e)},f.prototype.xe=function(t){var t,e,t=dt.W.Ne(t),e=parseFloat(t.fontSize)*N;return t.fontSize=e+"px",this.ke(t)},f.prototype.ke=function(t){var e,n,i,r,o,a,t,e="",n="normal",i,r=t.fontStyle,o=t.fontSize,a=t.fontWeight,t=t.fontFamily;return e=void 0!==r?r:n,e=(e=(e+=void 0!==a?(e?" ":"")+a:(e?" ":"")+n)+((e?" ":"")+o))+(void 0!==t?(e?" ":"")+t:(e?" ":"")+"Calibri")},f.prototype.OCe=function(t,e,n,i,r,o){e.save(),e.translate(n+o-r/2,i+o-r/2),e.rotate(Math.PI/2),e.fillText(t,0,0),e.restore()},f.prototype.ye=function(t,e,n,i,r,o,a){var s,u,c,f,l,h,d,v,g,m,g;if(e&&0<e.length)for(s=this,u=t.font,c=J(u,x,Z(e)),f=K(dt.W.V(u,1).fontSize,c),h=(l=s.qn(t,"0"))/2,d=0;d<e.length;d++)v=e[d],i=i+(m=(g=void 0!==a&&a<=d&&d<=a+2&&(a+3===e.length||0===a&&a+3<e.length||0!==a&&a+3<e.length))?l:c)-(g=g?h:f),j[v]?s.OCe(v,t,n,i,c,f):t.fillText(v,n,i),this.De(t,r,n,i,Q(t,t.font,v),dt.W.V(t.font,1).fontSize,o),i+=g;return{x:n,y:i}},f.prototype.De=function(t,e,n,i,r,o,a){var s,u,c,f,u;t.strokeStyle!==t.fillStyle&&(t.strokeStyle=t.fillStyle),u=s=0,c=.5,u=gt(((f=o<=12?12:o)-12)/21+1),t.lineWidth!==u&&(t.lineWidth=u),0==(1&u)&&(c=0),(u=t.textAlign)===q?n-=r/2:u===X&&(n-=r),t.beginPath(),2==(2&e)&&(s=B(i+a-o/2)-c,t.moveTo(n,s),t.lineTo(n+r,s)),t.stroke()},f.prototype.Ie=function(t,e,n,i,r,o){var a,s,u,o,r;return W(r)?{x:e,y:n}:(s=8<(a=dt.W.V(t.font,1).fontSize)?gt((a-8)/5+2):1,u=0,o?t.fillText(r,e,n-(u=1===o?.74*a:.28*-a)):t.fillText(r,e,n),o=Q(t,t.font,r),r=i.textDecoration,this.le(t,r,e,n,o,a,s-u),{x:e+o,y:n})},f.prototype._e=function(t,e,n,i,r,o,a,s){var u={row:s.row,col:s.col,sheet:s.sheet,sheetArea:s.sheetArea,style:a,underline:a.textDecoration,foreColor:a.foreColor};f.et(s.sheet,"applyHyperlinkStyle",u),this.paint(t,e,n,i,r,o,a,s)},f.prototype.paint=function(t,e,n,i,r,o,a,s){var u,u,c,f,c,f,c;t&&(u=a.backColor,s.parentBackColor!==u&&lt(t,n,i,r,o,s.imageLoader,a,e,s),2!==(u=s.sheetArea)&&1!==u||(c=s.visualState||0,f="columnHeader",c=this.getThemeStyle(s.visualState,"gc-"+(f=2===u?"rowHeader":f)+"-"+ht.I.Ee(c)),G.cn(t,n,i,r,o,a,f,c,u)),f=this,c=new ht.Rect(n,i,r,o),s.cellRect=c.clone(),f.Vn(t,s,c,e,a),Kt(t,c,a,s),f.Tn&&(f.Tn(t,c,a,s),c=f.An(c,a,et(s)?s.printZoomFactor:s.sheet.zoom())),s.cellOverflowLayout||f.pn(t,c,s,C(e)),0<c.width)&&0<c.height&&(a&&a.showEllipsis&&s.sheet.Ut.$n(s.row,s.col,null,s.sheetArea),f.paintContent(t,e,c.x,c.y,c.width,c.height,a,s))},f.prototype.paintContent=function(t,e,n,i,r,o,a,s){var u,c,c,c,u,c=s.conditionalFormats;c&&(u=c._e(t,C(e),n,i,r,o,a,s)),s.showBarIconOnly=u,(c=s.sparkline)&&c.paintSparkline(t,n,i,r,o),c=G.dn(t,C(e),n,i,r,o,s),s.cellOverflowLayout||u||c||(u=new ht.Rect(n,i,r,o),this.Rge(s,a),this.paintValue(t,e,u.x,u.y,u.width,u.height,a,s))},f.prototype.adjustRectForIconSet=function(t,e,n,i,r,o,a){kt(t,e,n,i,r,o,a)},f.prototype.hasInfilling=function(t){for(var e=0;e<t.length;e++)if("fillingChar"===t[e].type)return!0;return!1},f.prototype.createEditorElement=function(t,e){return R},f.prototype.getEditorValue=function(t,e){return R},f.prototype.je=function(t,e,n,i){return n},f.prototype.setEditorValue=function(t,e,n){},f.prototype.getEditingElement=function(){return R},f.prototype.parse=function(t,e,n){var i,r,o,a,i=W(e),r=W(t);try{if(o=c.Formatter&&c.Formatter.GeneralFormatter,!i&&!r&&o)return(a=typeof e===tt?new o(e):e).parse(t)}catch(t){}return r?"":t.toString()},f.prototype.format=function(e,t,n,i){var r,o,a,a,i,s,u,r=nt(t);if(i&&r&&(a=(o=i.sheet).Oe(i.row,i.col,i.sheetArea,t),W(a)||(e=a)),W(e)||""===e)return"";if(i&&i.quotePrefix&&typeof e===tt)return e.toString();if(!r&&typeof t===tt&&"object"!=typeof e)return ht.Be.Re(e,t,n);if(!t||"General"===t||r)return"boolean"==typeof e||e instanceof Boolean?(e=l?e?l.getBoolean().boolean_true:l.getBoolean().boolean_false:e).toString().toUpperCase():e instanceof Date?(i=(a=h.Fe(h.culture()).DateTimeFormat).shortDatePattern,0===e.getHours()&&0===e.getMinutes()&&0===e.getSeconds()&&0===e.getMilliseconds()||(i=a.defaultDatePattern),p.Pe(e,i)):(e=typeof e===S?d.Ge(e.toString()):e).toString();try{return(s=c.Formatter&&c.Formatter.GeneralFormatter)?(u=void 0,(u=typeof t===tt?ht.Be.Ue(t):t).format(e,n)):e.toString()}catch(t){return e.toString()}},f.prototype.focus=function(t,e){t&&t.focus&&t.focus()},f.prototype.getThemeStyle=function(t,e){return ht.I.He(t,e)},f.prototype.activateEditor=function(t,e,n,i,r,o,a){},f.prototype.deactivateEditor=function(t,e){},f.prototype.selectAll=function(t,e){t&&t.select&&t.select()},f.prototype.updateEditor=function(t,e,n,i,r,o,a){},f.prototype.setImeMode=function(t,e,n){this.isImeAware(n)?this.updateImeMode(t,e,n):t&&G.hn(t,0)},f.prototype.updateImeMode=function(t,e,n){t&&G.hn(t,e)},f.prototype.getHitInfo=function(t,e,n,i,r){return R},f.prototype.getCellAndPaddingHitInfo=function(t,e,n,i,r){var o,a,s,o=this;if(r){if(a={x:t,y:e,context:r,cellStyle:n,cellRect:i,paddingHitInfo:null},f.et(r.sheet,"getCellButtonHitInfo",a,function(){return null!==a.paddingHitInfo&&void 0!==a.paddingHitInfo}),s=a.paddingHitInfo,a.paddingHitInfo&&!W(a.paddingHitInfo.cellButtonHitInfo)&&!W(a.paddingHitInfo.cellButtonHitInfo.buttonConfig))return a.paddingHitInfo;if(a.cellRect=o.An?o.An(a.cellRect,n,r.sheet.zoom()):a.cellRect,f.et(r.sheet,"getCellTextHitInfo",a,function(){return!W(a.paddingHitInfo)&&a.paddingHitInfo.isReservedLocation}),a.paddingHitInfo&&a.paddingHitInfo.isReservedLocation)return a.paddingHitInfo;if(3===r.sheetArea)return f.et(r.sheet,"getCellPaddingHitInfo",a,function(){return!W(a.paddingHitInfo)&&a.paddingHitInfo.isReservedLocation}),a.paddingHitInfo||s||this.getHitInfo(t,e,n,i,r)}return this.getHitInfo(t,e,n,i,r)},f.prototype.processCellAndPaddingMouseDown=function(t){return f.et(t.sheet,"processMouseDownOnCellPadding",t),this.processMouseDown(t)},f.prototype.processMouseDown=function(t){return!1},f.prototype.ze=function(t){return f.et(t.sheet,"processMouseMoveOnCellPadding",t),this.processMouseMove(t)},f.prototype.processMouseMove=function(t){return!1},f.prototype.Ve=function(t){return f.et(t.sheet,"processMouseUpOnCellPadding",t),this.processMouseUp(t)},f.prototype.processMouseUp=function(t){return!1},f.prototype.processMouseEnter=function(t){return!1},f.prototype.Ye=function(t){return f.et(t.sheet,"processMouseLeaveOnCellPadding",t),this.processMouseLeave(t)},f.prototype.processMouseLeave=function(t){return!1},f.prototype.isReservedKey=function(t,e){return!1},f.prototype.isEditingValueChanged=function(t,e,n){var i,r,o,n,i,i=n.sheet,r=n.row,o=n.col,n=n.sheetArea||z.SheetArea.viewport,i=i&&i.getValue(r,o,n,z.ValueType.richText);return i&&i.richText&&(t=t.replace(/\r\n?/g,"\n").replace(L,A),e)&&e.replace&&(e=e.replace(/\r\n?/g,"\n").replace(L,A)),(t=t===R?x:t)!==(e=e===R?x:e)},f.prototype.processCompositionStart=function(t,e){return!1},f.prototype.processKeyDown=function(t,e){return!1},f.prototype.processKeyUp=function(t,e){return!1},f.prototype.getAutoFitWidth=function(t,e,n,i,r){return G.Bt(t,e,n,i,r)},f.prototype.getAutoFitHeight=function(t,e,n,i,r){return G.tn(t,e,n,i,r)},f.prototype.he=function(t,e,n,i,r,o,a,s,u,c,f,l,h,d,v,g,m,p){var S,w,p,g,n,a,o,S=this,w=d.isStick;n&&n.content&&0<n.content.length&&(p||!g||4===o)?this.Ze(t,n.content,i,r,o,a,s,u,c,f,l,h,d,v,m):(m=m||Q(t,t.font,e),p=i,g=void 0,t.textAlign===q?(p-=m/2,0<d.left&&v.width<m+d.left&&(i=m/2+d.left+v.x)):t.textAlign===X&&(p-=m,0<d.left)&&v.width<m+d.left&&(g={x:v.x+d.left,y:v.y,width:v.width-d.left,height:v.height}),n=p,0<d.left&&p-v.x<d.left&&w&&(n=v.x+d.left),o=r,(a=ve([e],l.lineHeight,h)).descenderHeight&&(o+=a.descenderHeight),l.textRect=new ht.Rect(p,o,m,a.height),S.Zn(t,h,l,n,r,m,l.lineHeight,v),g&&w?(t.save(),t.beginPath(),t.rect(g.x,g.y,g.width,g.height),t.clip(),t.fillText(e,i,r),t.restore()):t.fillText(e,i,r),u&&this.le(t,u,i,r,m,f,c),S.Wn(t,h,l,p,r,m,l.lineHeight,v))},f.prototype.ve=function(t,e,n,i,r,o,a,s,u){var i;t.save(),t.textAlign="center",t.textBaseline="middle",t.translate(i,r),t.rotate(-e),t.fillText(n,0,0),o&&(i=t.measureText(n).width,this.le(t,o,0,u,i,a,s)),t.restore()},f.prototype.de=function(t,e,n,i){var r,o,a,s;for(t.font||vt(t,i),o=0<(o=n-(r=At(t,e)))?o:0,a=[],s=0;s<e.length;s++)"fillingChar"===e[s].type?a.push(Dt(t,o,e[s].value)):"placeholder"!==e[s].type&&"numberPlaceholder"!==e[s].type&&a.push(e[s].value);return a.join("")},f.prototype.Ze=function(t,e,n,i,r,o,a,s,u,c,f,l,h,d,v){var g,m,p,S,h,w,b,o,C,y,M,a,h;t.save(),t.textAlign!==T&&(t.textAlign=T),g=this,m=At(t,e=Lt(JSON.parse(JSON.stringify(e)))),p=h.isStick,b=0<(b=o-a-m-(w=(S=h?h.left:0)+(h=h?h.right:0))-2)?b:0,W(v)?this.hasInfilling(e)?1===r||4===r?n=n-(o+S-h)/2+(a+S):2===r&&(n=n-o+h+2,n+=a+S):W(m)||(1===r||4===r?n-=m/2:2===r&&(n-=m)):this.hasInfilling(e)?1===r?(n=n+(v||m)/2-(o+S-h)/2,n+=a+S):2===r&&(n=n+(v||m)-o+h+2,n+=a+S):W(m)||(1===r?n=n+v/2-m/2:2===r&&(n=n+v-m)),o=n,0<S&&S>n-d.x&&p&&(o=d.x+S+1,C=d.width-S-1),M="",e.forEach(function(t){return M+=t.value}),h=i,(a=ve([M],f.lineHeight,l)).descenderHeight&&(h+=a.descenderHeight),f.textRect=new ht.Rect(n,h,n,a.height),g.Zn(t,l,f,o,i,m,f.lineHeight,d),C?(t.save(),t.beginPath(),t.rect(o,d.y,C,d.height),t.clip(),y=this.We(t,e,n,i,b,s,u,c),t.restore()):y=this.We(t,e,n,i,b,s,u,c),g.Wn(t,l,f,n,i,y-n,f.lineHeight,d),t.restore()},f.prototype.We=function(t,e,n,i,r,o,a,s,u){for(var c,f,l,l,c=this.qn(t,"0"),f=0;f<e.length;f++)"fillingChar"===e[f].type?(t.fillText(Dt(t,r,e[f].value),n,i),o&&this.le(t,o,n,i,r,s,a),n+=r):"placeholder"===e[f].type?n+=Q(t,t.font,e[f].value):"numberPlaceholder"===e[f].type?n+=c:((l=e[f].value)!==R&&t.fillText(l,n,i),l=Q(t,t.font,l),o&&this.le(t,o,n,i,l,s,a),n+=l);return n},f.prototype.le=function(t,e,n,i,r,o,a){var s,u,c,f,l;t.strokeStyle!==t.fillStyle&&(t.strokeStyle=t.fillStyle),s=t.textAlign,c=u=0,f=.5,c=gt(((l=o<=12?12:o)-12)/21+1),t.lineWidth!==c&&(t.lineWidth=c),0==(1&c)&&(f=0),s===q?n-=r/2:s===X&&(n-=r),t.beginPath(),4==(4&e)&&(u=B(i+a-o-1)-f,t.moveTo(n,u),t.lineTo(n+r,u)),2==(2&e)&&(u=B(i+a-o/2)-f,t.moveTo(n,u),t.lineTo(n+r,u)),1==(1&e)&&(u=B(i+a-1)-f,t.moveTo(n,u),t.lineTo(n+r,u)),8==(8&e)&&(u=B(i+a-1)-f,t.moveTo(n,u-c),t.lineTo(n+r,u-c),t.moveTo(n,u+c),t.lineTo(n+r,u+c)),t.stroke()},f.prototype.Qe=function(t,e){var n=4==(4&e)?"overline":"";2==(2&e)&&(n+=" line-through"),1==(1&e)&&(n+=" underline"),t.css("text-decoration",n)},f.prototype.Ke=function(){return R},f.prototype.isImeAware=function(t){return!1},f.prototype.isEditing=function(){return!1},f.prototype.Je=function(t){},f.prototype.Xe=function(t,e,n,i,r){},f.prototype.qe=function(t,e,n,i,r){},f.prototype.lfe=function(t,e){return t},f.prototype.toJSON=function(){var t,e,n,t={},e=this;for(n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);return t},f.prototype.fromJSON=function(t){if(t)for(var e in t)W(t[e])||(this[e]=t[e])},a=f,s.Base=a,(0,ht.$e)(a),n.ti[0]=a,s.paintDecoration=Kt,s.paintStyleDecorationOutSideIcons=Jt},"./dist/core/celltype/cellType.entry.js":function(t,e,n){"use strict";var i,r,o,a,i=this&&this.__createBinding||(Object.create?function(t,e,n,i){void 0===i&&(i=n);var r=Object.getOwnPropertyDescriptor(e,n);r&&("get"in r?e.__esModule:!r.writable&&!r.configurable)||(r={enumerable:!0,get:function(){return e[n]}}),Object.defineProperty(t,i,r)}:function(t,e,n,i){t[i=void 0===i?n:i]=e[n]}),r=this&&this.__exportStar||function(t,e){for(var n in t)"default"===n||Object.prototype.hasOwnProperty.call(e,n)||i(e,t,n)};Object.defineProperty(e,"__esModule",{value:!0}),o=n("./dist/core/celltype/headercelltype.js"),a=n("./dist/core/celltype/textcelltype.js"),Object.defineProperty(e,"Corner",{set:function(t){t!==o.Corner&&(o.Corner=t)},get:function(){return o.Corner}}),Object.defineProperty(e,"ColumnHeader",{set:function(t){t!==o.ColumnHeader&&(o.ColumnHeader=t)},get:function(){return o.ColumnHeader}}),Object.defineProperty(e,"RowHeader",{set:function(t){t!==o.RowHeader&&(o.RowHeader=t)},get:function(){return o.RowHeader}}),Object.defineProperty(e,"Text",{set:function(t){t!==a.Text&&(a.Text=t)},get:function(){return a.Text}}),r(n("./dist/core/celltype/celltype.ns.js"),e),r(n("./dist/core/celltype/basecelltype.js"),e),r(n("./dist/core/celltype/textcelltype.js"),e),r(n("./dist/core/celltype/headercelltype.js"),e)},"./dist/core/celltype/celltype.ns.js":function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ti=void 0,e.ti={}},"./dist/core/celltype/headercelltype.js":function(p,t,e){"use strict";var n,i,r,S,F,o,M,_,w,A,k,N,L,D,R,E,T,H,j,O,e,i,r,a,s,u,c;function d(t,e){return w.He(t=t||0,"gc-"+e+"-"+w.Ee(t))}function x(t,e,n,i,r,o){var a,o,a=new Image,o=o;o=(o=o.replace('url("',"")).replace('")',""),a.src=o,t.drawImage(a,e,n,i,r)}function v(t,e,n,i,r,o,a,s,u){var c,f,l,h,d,v,g,m,p,S,w,b,C;function y(){t.fillRect(e+1,n+1,i-1,r-1)}if(!D(s)){if(t.save(),t.beginPath(),c=o.backColor,0===s&&c)F.W.setFillStyle(t,c,e,n,i,r,y);else try{if(c=u&&u.backgroundColor,f=u&&u.backgroundImage,l=a.sheet,h=a.row,d=a.col,v=a.sheetArea,g=void 0,m=!1,l.cellStates&&s===_.VisualState.hover&&(g=l.cellStates.getStyle(h,d,v))&&g.backColor&&(c=g.backColor,m=!0),!m&&f&&-1!==f.indexOf("linear-gradient")){for(p=k(f),S={degree:90,stops:[]},w=0,b=p.length;w<b;w++)C=p[w],S.stops.push({position:C.point,color:C.color});F.W.setFillStyleGradient(t,S,e,n,i,r,y)}else c?(t.fillStyle=c,y()):f&&f!==T&&x(t,e+1,n+1,i-1,r-1,f)}catch(t){}2===a.columnHeaderFitMode&&(i=a.sheet.getColumnWidth(a.col)+1),M.Context.nt(t,e,n,i,r,o.backgroundImage,o.backgroundImageLayout,a.imageLoader),t.restore()}}function f(t,e,n,i,r,o,a,s,u,c,f,l){var h,h,c,h,f;e&&(v(e,i,r,o,a,s,u,h=u.visualState||0,h=d(h,c)),M.Context.cn(e,i,r,o,a,s,c,h,f,u.needTopGridline,u.needLeftGridline),c=new S.Rect(i,r,o,a),u.cellRect=c.clone(),t.Vn(e,u,c,n,s),(0,M.paintDecoration)(e,c,s,u),t.Tn&&(t.Tn(e,c,s,u),h=u.printZoomFactor,f=u.isPrinting&&"number"==typeof h&&1!==h?h:u.sheet.zoom(),c=t.An(c,s,f)),0<c.width)&&0<c.height&&t.paintContent(e,n,c.x,c.y,c.width,c.height,s,u,l)}function V(t,e,n,i,r,o){var e,n,o,a,e={font:e,fillStyle:n},n=i.sheet;return 0!==i.visualState&&2007<parseInt(o.zIndex,10)&&n.ni(i.row,i.col,r)&&(o=void 0,a=r===_.SheetArea.rowHeader?"gc-rowHeader":"gc-columnHeader",o=n.ei(i.row,i.col,r)?t(i.visualState,a+"-selected"):t(i.visualState,a+"-highlight"),e.fillStyle=o.color,e.font=F.W.ii(e.font,"bold")),e}function l(t,e,n,i,r,o,a,s,u,c,f,l){var h,d,v,v,g,m,p,g,l,g,l,g,d,h={},d=u.sheet,v={sheet:d,row:u.row,col:u.col,sheetArea:c,quotePrefix:s.quotePrefix},v=t.format(R(n),s.formatter,h,v);v&&(e.save(),e.beginPath(),g=d.rowFilter&&d.rowFilter(),m=u.columnHeaderFitMode,!(p=!!(g&&g.rn(u.row,u.col,c)&&g.filterButtonVisible(u.col)))&&!l||m!==_.ColumnHeaderFitMode.normal&&m!==_.ColumnHeaderFitMode.vertical||(D(u.cornerX)||(o=u.cornerX-i),o-=d.an(new S.Rect(i,r,o,a),c).width),(g=(g=s.foreColor)||f.color)&&e.fillStyle!==g&&(e.fillStyle=g),l=s.textOrientation,g=s.isVerticalText,l=0===m&&d.NMi&&0!==l&&!D(l)&&-90<=l&&l<=90&&!g,n&&n.richText&&0<n.richText.length||g?b(t,d,e,n,i,r,o,a,s,v,h,u,c,f):1===m||l?(g=V(t.getThemeStyle,s.font||e.font,e.fillStyle,u,c,f),s.foreColor=g.fillStyle,s.font=S.util.yt(g.font),1===m&&(s.textOrientation=-90),d=t.Pn(e,v,s,u,i,r,o,a),t.Kn(e,n,i,r,o,a,s,u,v,h,H,d.externals)):C(t,e,n,i,r,o,a,s,v,h,u,c,f),e.restore())}function b(t,e,n,i,r,o,a,s,u,c,f,l,h,d){var v,h,d,g,m,p,S,w,b,w,b,w,C,b,y,M,w,h,k,T,x,G,B,I,P,v=new O(r,o,a,s),h=V(t.getThemeStyle,u.font||n.font,n.fillStyle,l,h,d),d=u.isVerticalText,g=u.hAlign,m=Y(u),p=t.Ft(u.formatter||u._autoFormatter,i.text),S=E(!0,[],t.Pt(i,c,p,h.font,h.fillStyle));if(i&&i.richText&&0<i.richText.length&&(w=l.sheet?l.sheet.zoom():1,b=l.printZoomFactor,b=l.isPrinting&&"number"==typeof b&&1!==b?b:H,t.te(S,h,w,b)),w=t.Pn(n,R(i),u,l,r,o,a,s),C=(b=t.Hn(w.externals.left))+(w=t.Hn(w.externals.right)),b={left:b,right:w},!u.wordWrap&&u.shrinkToFit&&t.ne(S,a-C,s,u,h,1,d),y=t.ee(n,c,u.font,d?s:a-C,m,d?u.vAlign:u.hAlign,u.wordWrap,d,S),M=t.re(y,u,g),U(n,u,r,o,a,s,m,y[0].textLength,M[0].lineHeight),w=d?N(c):H,h=!1,u.wordWrap||u.shrinkToFit||!u.showEllipsis||!d||i.richText||(h=!0),k=t.ae(v.x,v.y,v.width,v.height,g,u.vAlign,m,d,w,y,M,b,h),T=[],h&&f&&(f.content&&1===f.content.length&&"text"===f.content[0].type||!f.content&&1===y.length&&y[0].text)&&t.Xn(n,l,y,M,u,s,o,m,k,T),1===(x=y.length)&&f.content&&!p)t.ue(n,e,c,f,k[0].x,k[0].y,a,s,g,u,v.width,v.height,m,d,y[0].textLength,l,b,v);else for(G=0;G<x;G++)B=t.se(y),I=k[0].x,"center"===n.textAlign?I-=B/2:"right"===n.textAlign&&(I-=B),t.Zn(n,u,l,I,k[0].y,B,0,v),t.ce(n,e,k[G].x,k[G].y,M[G],g,y[G],T[G],P=a-C-3-2*m),t.Zn(n,u,l,I,k[0].x,B,0,v)}function C(t,e,n,i,r,o,a,s,u,c,f,l,h){var d,v,l,g,h,m,p,h,S,w,b,C,b,y,M,v,v,C,b,S,n,v,C,b,k,T,x,G,B,I,P,N,b,R,y,E,l,C,h,a,H,U,d=new O(i,r,o,a),v=f.columnHeaderFitMode,l=V(t.getThemeStyle,s.font||e.font,e.fillStyle,f,l,h);if(L(e,l.font),e.fillStyle=l.fillStyle,(g=0)<(h=s.textIndent)&&(g=8*h),m=parseInt(f.fontInfo.fontSize,10),p=s.hAlign,h=s.vAlign,S="left",w=2,b=t.Pn(e,u,s,f,i,r,o,a),y=(C=t.Hn(b.externals.left))+(b=t.Hn(b.externals.right)),M={left:C,right:b},w+=g+C,1===(p=v!==_.ColumnHeaderFitMode.stack||D(f.cornerX)||(a=f.cornerY-r,(v=f.colStyle)&&!D(v.hAlign))?p:0))w=(o+C-b)/2,S="center";else if(2===p)w=o-b-1,w-=g,S="right";else if(5===p)return v=s.wordWrap,C=s.shrinkToFit,b=s.showEllipsis,f.sheet.options.showFormulas&&f.isFormula?(s.hAlign=1,s.wordWrap=!1):s.wordWrap=!0,s.shrinkToFit=!1,s.showEllipsis=!1,t.Jn(e,n,i,r,o,a,s,f,u,c,null,M),s.hAlign=5,s.wordWrap=v,s.shrinkToFit=C,void(s.showEllipsis=b);if(e.textAlign!==S&&(e.textAlign=S),n="alphabetic",v=2,C=s.wordWrap,b=s.shrinkToFit,k=s.font,T=f.lineHeight,x=[],G=S=0,!C&&b)for(I={value:!1},P=B=0;P<3&&!1===I.value&&(N=e.measureText(u).width,(B=Math.max(0,o-4-(1===p?0:g)))<N);P++)k=F.W.V(k,B/N,I,!0).font,L(e,k);if(b=0,C&&(b=o-y-3-g,1<(G=(x=A.un(u,--b,l.font)).length))&&0!==h&&(S=(G-1)*T),y=T/2-m/2+(R=8<m?j((m-8)/5+2):1)-1,!C&&s.showEllipsis&&t.fe(f,c,u,e,o,p,g),v+=T-y,1===h?v=(a-S)/2+T/2-y:2===h&&(v=a-S-2-y),e.textBaseline!==n&&(e.textBaseline=n),E=s.textDecoration,l=d.x,C=d.y,h=d.width,a=d.height,s.wordWrap)if(e.rect(l,C,h,a),e.clip(),e.beginPath(),H=r+v,1<G){for(t.Zn(e,s,f,i+w,H,b,T*G,d),P=0;P<G;P++)e.fillText(x[P],i+w,H),E&&(N=e.measureText(x[P]).width,t.le(e,E,i+w,H,N,m,R)),H+=T;t.Zn(e,s,f,i+w,H,b,T*G,d)}else t.he(e,u,c,i+w,r+v,p,h,g,E,R,m,f,s,M,d);else(h<(U=e.measureText(u).width)||a<T)&&(e.rect(l,C,h,a),e.clip(),e.beginPath()),t.he(e,u,c,i+w,r+v,p,h,g,E,R,m,f,s,M,d,void 0,void 0,s.showEllipsis)}function U(t,e,n,i,r,o,a,s,u){var c=!1,c;(c=!!e.wordWrap||(e.isVerticalText?o<s+a||r<u:r<s+a||o<u))&&(t.rect(n,i,r,o),t.clip(),t.beginPath())}function Y(t){var e=0,t=t.textIndent;return e=0<t?8*t:e}function h(){var t=s.call(this)||this;return t.typeName="2",t}function g(){var t=u.call(this)||this;return t.typeName="3",t}function m(){var t=c.call(this)||this;return t.typeName="4",t}n=this&&this.__extends||(a=function(t,e){return(a=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(t,e){t.__proto__=e}:function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])}))(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}a(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),Object.defineProperty(t,"__esModule",{value:!0}),t.RowHeader=t.ColumnHeader=t.Corner=void 0,i=e("Common"),r=e("./dist/core/util/domUtil.js"),S=e("./dist/core/util/common.js"),F=e("./dist/core/worksheet/stylehelper.js"),o=e("./dist/core/celltype/celltype.ns.js"),M=e("./dist/core/celltype/basecelltype.js"),_=e("./dist/core/core.enum.js"),w=S.I,A=S.q,k=S.mt.ri,N=S.mt.pt,L=S.mt.bt,D=i.Common.lt.ht,R=S.mt.wt,E=r.GC$.extend,T="none",H=void 0,j=Math.floor,O=S.Rect,s=M.Base,n(h,s),h.prototype.paint=function(t,e,n,i,r,o,a,s,u){f(this,t,e,n,i,r,o,a,s,"columnHeader",1,u)},h.prototype.paintContent=function(t,e,n,i,r,o,a,s,u){var c,f,c;M.Context.dn(t,R(e),n,i,r,o,s)||l(this,t,e,n,i,r,o,a,s,1,f=d(s.visualState,"columnHeader"),u)},t.ColumnHeader=e=h,o.ti[2]=e,u=M.Base,n(g,u),g.prototype.paint=function(t,e,n,i,r,o,a,s){f(this,t,e,n,i,r,o,a,s,"rowHeader",2)},g.prototype.paintContent=function(t,e,n,i,r,o,a,s){var u,c,u;M.Context.dn(t,R(e),n,i,r,o,s)||l(this,t,e,n,i,r,o,a,s,2,c=d(s.visualState,"rowHeader"))},t.RowHeader=i=g,o.ti[3]=i,c=M.Base,n(m,c),m.prototype.paint=function(t,e,n,i,r,o,a,s){var u,c,f,l,h,f,l,h,d,v,g,m,p,u,c,S,l;if(t){t.save(),t.rect(n,i,r,o),t.clip(),t.beginPath(),u=this,c=s.visualState||0;try{l=(f=u.getThemeStyle(s.visualState,"gc-corner-"+w.Ee(c)))&&f.backgroundColor,h=f&&f.backgroundImage,l?(t.fillStyle=l,t.fillRect(n,i,r,o)):h&&h!==T&&x(t,n,i,r,o,h)}catch(t){}if(l=(f=u.getThemeStyle(4,"gc-corner-triangle-"+w.Ee(c)))&&f.backgroundImage,h=f&&f.backgroundColor,d=t.createLinearGradient(n+r/2,i,n+r/2,i+o),l&&-1!==l.indexOf("linear-gradient")){for(g=0,m=(v=k(l)).length;g<m;g++)p=v[g],d.addColorStop(p.point,p.color);t.fillStyle=d}else h&&(d.addColorStop(.125,"#f6fafb"),d.addColorStop(1,h),t.fillStyle=d);(u=t.createLinearGradient(n+r,i+1,n+r,i+o-2)).addColorStop(0,f.borderLeftColor),u.addColorStop(1,f.borderRightColor),t.beginPath(),t.strokeStyle=u,t.moveTo(n+r-.5,i),t.lineTo(n+r-.5,i+o),t.stroke(),s.needLeftGridline&&(t.beginPath(),t.strokeStyle=f.borderLeftColor,t.moveTo(n+.5,i),t.lineTo(n+.5,i+o),t.stroke()),(c=t.createLinearGradient(n,i,n+r-2,i)).addColorStop(0,f.borderTopColor),c.addColorStop(1,f.borderBottomColor),t.beginPath(),t.strokeStyle=c,t.moveTo(n,i+o-.5),t.lineTo(n+r,i+o-.5),t.stroke(),s.needTopGridline&&(t.beginPath(),t.strokeStyle=f.borderTopColor,t.moveTo(n,i+.5),t.lineTo(n+r,i+.5),t.stroke()),t.beginPath(),t.moveTo(n+r-(l=r<(l=o)?r:o)+(S=3),i+o-3),t.lineTo(n+r-3,i+o-3),t.lineTo(n+r-3,i+o-l+3),t.fill(),t.restore()}},t.Corner=r=m,o.ti[4]=r},"./dist/core/celltype/textcelltype.js":function(a,t,e){"use strict";var s,n,d,H,i,v,U,T,F,e,I,_,Q,P,g,r,u,N,m,c,A,R,X,b,q,p,S,f,$,w,E,tt,et,nt,it,L,rt,ot,at,C,D,y,M,j,O,st,V,Y,K,ut,z,ct,ft,lt,ht,dt,k,x,vt,gt,mt,G,B,pt,St,wt,bt,Ct,yt,W,Mt,h,kt,Tt,xt,Gt,Bt,n,It,e,l;function Pt(t){return mt||0===t}function Nt(t){return Pt(t)?(0,H.GC$)(m("textarea")):(0,H.GC$)(m("div"))}function J(t){return t&&"DIV"===t.tagName&&"true"===t.contentEditable}function Z(t){return J(t)?A&&parseFloat(c.version)<10?r.oi(t):t.innerText:t.value}function Rt(t,e){J(t)?t.innerText=_(e)?"":e:t.value=e}function Et(t){var e;J(t)?((e=k.getSelection()).selectAllChildren(t),0<e.rangeCount&&e.collapseToEnd()):t.selectionStart=t.selectionEnd=t.value.length}function Ht(t){var e,n;return J(t)?0<(e=k.getSelection()).rangeCount?(n=e.getRangeAt(0)).startOffset:0:t.selectionStart}function Ut(t){var e,n;return J(t)?0<(e=k.getSelection()).rangeCount?(n=e.getRangeAt(0)).endOffset:0:t.selectionEnd}function Ft(t){var e,t,n,i,r,o,e=t.keyCode,t=t.shiftKey,n={106:42,107:43,109:45,110:46,111:47,173:45},i={186:59,187:61,188:44,189:45,190:46,191:47,192:96,219:91,220:92,221:93,222:39},r={186:58,187:43,188:60,189:95,190:62,191:63,192:126,219:123,220:124,221:125,222:34},o=e;return 96<=e&&e<=105?o=e-48:n[e]?o=n[e]:t&&r[e]?o=r[e]:!t&&i[e]?o=i[e]:!t&&65<=e&&e<=90&&(o=e+32),o}function _t(t){return t&&"BR"===t.tagName}function At(t){return t&&"SPAN"===t.tagName}function Lt(t){return t&&"DIV"===t.tagName}function Dt(t){return t instanceof Text}function jt(t){return t===h}function Ot(t,e,n,i){var r,o,r,o;return t.substr(0,e)+i+t.substr(n,t.length-n)}function Vt(t,e,n,i,r,o){for(var a,s,u,c,f,l,h,d,a="",s=t.childNodes,u=s.length,c=0;c<u;c++)At(f=s[c])?a+=Vt(f,e,n,i,r,o):Dt(f)?(l=e&&e.startContainer,h=e&&e.endContainer,d=f.textContent,f===l||f===h?l!==h?o=f===l?(a+=Ot(d,n,d.length,r),!0):(a+=Ot(d,0,i,""),!1):a+=Ot(d,n,i,r):o||(a+=d)):_t(f)&&!o&&(a+="\n");return a}function Yt(t,e,n,i,r){var r,o,a,r=String.fromCharCode(Ft(r));return J(t)?0<(o=k.getSelection()).rangeCount&&Dt((a=o.getRangeAt(0)).startContainer)?Vt(t,a,n,i,r):a&&a.startOffset===a.endOffset?e+r:r:Ot(e,n,i,r)}function Kt(t){var t=Zt(t);return t=t&&0<=t.indexOf(" ")?tt(t," ",Mt):t}function zt(t,e,n,i,r,o){var a,s,u,n,c,f,l,f,c,l,n,f,a=t.srcElement||t.target;a&&a.getAttribute(C)===M&&13===t.keyCode&&(t.ctrlKey||t.altKey)&&((s=g.ai())instanceof d.Worksheet&&(u=s.getCellType(s.ui,s.ci))&&(J(a)?(n&&(a.blur(),a.focus()),0<(n=k.getSelection()).rangeCount&&(c=n.getRangeAt(0),f=x.createElement("br"),l=x.createTextNode(h),c.insertNode(l),c.insertNode(f),Wt(c),(f=x.createRange()).setStartAfter(l),f.setEndAfter(l),f.collapse(!1),n.removeAllRanges(),n.addRange(f))):(c=a.selectionStart,n=(l=a.value).substr(0,c),f=l.substr(c,l.length-c),a.value=n+"\n"+f,a.selectionStart=c+1,a.selectionEnd=c+1),u.fi(s.li,G,G,t,e,!0)),b(t))}function Wt(t){var t,e,n,t=t.endContainer,e=t.lastChild;Dt(e)&&0===e.textContent.length&&t.removeChild(e),n=(e=t.lastChild).previousSibling,jt(e.textContent)&&!_t(n)&&0===n.textContent.length&&t.removeChild(n)}function Jt(t){var e,t,e=t;return e&&(e.indexOf(h)<0&&e.indexOf("\n")<0?e:((t=t.split("\n")).forEach(function(t,e,n){jt(t[0])&&(n[e]=t.substr(1))}),t.join("\n")))}function Zt(t){var t,e,t=t;return t=t&&0<(e=t.length)?t.replace(/\n/g,"\n"+h):t}function Qt(t){var e,n,i,r,o,e,a,s,u,e,c,f,l,h,d,e=k.getSelection(),n=!1,i=0,r=0,o="";if(0<e.rangeCount){if(e=e.getRangeAt(0),a=Ht(t),s=Ut(t),u=e.startContainer,e=e.endContainer,Lt(u))n=!0,i=a;else if(l=void 0,0<(f=(c=u.childNodes).length))for(l=0;l<f;l++){if(!(h=c[l]).tagName||"br"!==h.tagName.toLocaleLowerCase()){u=h;break}o+="\n"}return o+(d=Xt(t,a,s,u,e,n,i,r=Lt(e)?s:r)).content}}function Xt(t,e,n,i,r,o,a,s){var u,c,f,l,h,d,v;if(i===r&&!o)return{content:Jt(i.textContent.slice(e,n))};for(u="",c=a,h=t.childNodes,d=s||h.length;c<d;c++)if(At(v=h[c])){if(u+=(f=Xt(v,e,n,i,r,o,0,0)).content,f.startFlag&&(o=!0),f.endFlag){l=!0;break}}else if(Dt(v)&&v===i)u+=v.textContent.slice(e,v.textContent.length),o=!0;else{if(Dt(v)&&v===r){u+=v.textContent.slice(0,n),l=!0;break}o&&(_t(v)?u+="\n":u+=v.innerText||v.textContent)}return{content:Jt(u),startFlag:o,endFlag:l}}function qt(t,e){for(var n,i,r,n=t.length,i=[],r=0;r<n;r++)i.push(w(t[r],e));return i}function $t(t){for(var e,n,i,e=t.length,n=0,i=0;i<e;i++)n+=t[i];return n}function te(t,e,n,i){for(var r,o,a,s,r=0,o=n,a=0;a<t.length;a++)X&&(o=i[a]),t[a]>e?r+=o*(s=pt(t[a]/e)):r+=o;return r}function ee(t,e,n){var t=Z(t);return t&&"="===t[0]||""===t&&"="===e[0]||0===n&&"="===e[0]}function ne(t){var t=t&&t.tagName;return"TEXTAREA"===t||"INPUT"===t}function ie(t){return(t.ctrlKey||t.metaKey)&&t.keyCode===(t.shiftKey?Tt:kt)}function re(t){return(t.ctrlKey||t.metaKey)&&t.keyCode===(t.shiftKey?kt:Tt)}function o(t){var e=l.call(this)||this;return e.allowOverflow=!0,e.typeName="1",e.editorType=_(t)?1:t,e}function oe(t){var e,t,n,i,r,e=["0","0","0","0"];return typeof t===xt&&(r=i=void 0,1===(n=(t=t.split(" ",4)).length)?e=[i=t[0],i,i,i]:2===n?e=[i=t[0],r=t[1],i,r]:3===n?(r=t[1],e=[t[0],r,t[2],r]):4===n&&(e=[t[0],t[1],t[2],t[3]])),e}s=this&&this.__extends||(It=function(t,e){return(It=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(t,e){t.__proto__=e}:function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])}))(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}It(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),Object.defineProperty(t,"__esModule",{value:!0}),t.Text=t.TextCellType=t.EditorType=void 0,n=e("Common"),d=e("./dist/core/worksheet/worksheet.js"),H=e("./dist/core/util/domUtil.js"),i=e("./dist/core/util/common.js"),v=e("./dist/core/celltype/celltype.ns.js"),U=e("./dist/core/celltype/basecelltype.js"),T=e("./dist/core/core.enum.js"),F=e("./dist/core/util/common.js"),e=e("CalcEngine"),I=!!e,_=n.Common.lt.ht,Q=i.q,P=i.Events.EditChange,g=i.hi,r=i.mt,u=i.di,N=r.St,m=r.En,c=r.Tt,A=c.msie,R=c.edge,X=c.chrome,b=r.vi,q=r.gt,p=r.mi,S=r.gi,f=r.pi(),$=r.vt,w=r.bi,E=r.Mt,tt=r.yi,et=r.yt,nt=r.wt,it=r.Ct,L="left",rt="right",ot="center",at="top",C="gcUIElement",D="none",y=".gcEditingInput",M="gcEditingInput",j="width",O="height",st="text-align",V="hidden",Y="word-wrap",K="overflow",ut="vertical-align",z="normal",ct="break-word",ft="overflow-y",lt="scroll",ht="word-break",dt="float",k=window,x=document,vt=.337,gt=f.ipad,mt=f.iphone||gt||f.android,G=null,B=void 0,pt=Math.ceil,St=Math.min,wt=Math.sin,bt=Math.cos,Ct=Math.abs,yt=Math.max,W=parseInt,Mt="\xa0",h="\u200b",kt=90,Tt=89,xt="string",Gt="number",(e=Bt=t.EditorType||(t.EditorType={}))[e.textarea=0]="textarea",e[e.editableDiv=1]="editableDiv",l=U.Base,s(o,l),o.prototype.getText=function(t,e){return t},o.prototype.paintValue=function(t,e,n,i,r,o,a,s){var u,c,f,l,h,d,v,g,m,p,S,w,p,m,b,p,C,y,C,M,y,k,p,v,C,u=this,c=s.sheet,f=c.zoom?c.zoom():1;if(e=u.getText(e,s),l={},s.quotePrefix=a.quotePrefix,v=(d=a.formatter)&&"General"!==d,g=N(d),"string"==typeof d&&(v=v&&!g),m=a.textOrientation,p=a.textIndent&&0!==a.textIndent,S=a.isVerticalText,w=r,m&&-90<=m&&m<=90&&!p&&!S&&(p=Ct(m*Math.PI/180),w=(o-s.lineHeight*bt(p))/wt(p)),m=(b=u.Pn(t,h,a,s,n,i,r,o)).externals,p=u.Hn(m.left),C=u.Hn(m.right),2===(y=3===(y=a.hAlign)?q(y,e,a.formatter||a._autoFormatter):y)?w-=C:0===y&&(w-=p),C=a._autoFormatter&&a._autoFormatter.formatCached&&"General"!==a._autoFormatter.formatCached,v?M=a.formatter:C?M=a._autoFormatter:c.parent&&c.parent.options.numbersFitMode===T.NumbersFitMode.mask?M=U.Context.Nt(t,e,w,a,f):c.parent&&c.parent.options.numbersFitMode===T.NumbersFitMode.overflow&&(M=a._autoFormatter),h=g&&(e instanceof Date||"boolean"==typeof e||e instanceof Boolean||"number"==typeof e)?u.format(e,d,{}):u.format(nt(e),M,l,s),y=new F.Rect(n,i,r,o),this.adjustRectForIconSet(a.hAlign,s.sheet,s.row,s.col,s.sheetArea,y,l.content&&this.hasInfilling(l.content)),n=y.x,r=y.width,!0!==a.shrinkToFit&&!S)if(it(e)){if(c.parent){switch(k=h,c.parent.options.numbersFitMode){case T.NumbersFitMode.mask:k=this.wi(t,h,w,a,f,s,l,c);break;case T.NumbersFitMode.overflow:k=this.overflow(t,s,e,a,c,h,l)}h=k}}else void 0===c.Ut.Ci(s.row,s.col,s.sheetArea)||a.showEllipsis||c.Ut.$n(s.row,s.col,void 0,s.sheetArea);p=a.labelOptions,v=a.watermark,C=!p||0!==p.visibility,v&&!h&&C?u.paintText(t,v,n,i,r,o,a,s,v,l,vt):(h||l.content&&l.content.length||a.cellButtons&&a.cellButtons.length)&&u.paintText(t,e,n,i,r,o,a,s,h,l,B,m)},o.prototype.wi=function(t,e,n,i,r,o,a,s){var u,t,n,u,u=o.cellOverflowLayout&&o.cellOverflowLayout.expandedWidth,t=U.Context.Et(t,e,_(u)?n:u,i,r),n=o.row,u=o.col;return e!==t?(delete a.content,i.textIndent=0,s.Ut.$n(n,u,s.getText(n,u,o.sheetArea),o.sheetArea)):s.Ut.$n(n,u,void 0,o.sheetArea),t},o.prototype.overflow=function(t,e,n,i,r,o,a){var s,u,t,c,f,l,h,s=e.row,u=e.col;if(i.wordWrap&&(i.wordWrap=!1),t=E(t,i.font,o),c=r.Jt.Kt(u),l=void 0,!(f=e.cellOverflowLayout)&&c<t)l=r.getText(s,u,e.sheetArea);else if(f&&c<t&&this.Si(f.backgroundWidth)&&this.Si(f.valueWidth)){if(!this.Si(i.hAlign))return;h=void 0,l=(h=1!==i.hAlign?f.valueWidth>f.backgroundWidth:f.valueWidth/2>f.backgroundLeftWidth||f.valueWidth/2>f.backgroundRightWidth)?r.getText(s,u,e.sheetArea):void 0}return r.Ut.$n(s,u,l,e.sheetArea),o},o.prototype.Si=function(t){return null!=t},o.prototype.createEditorElement=function(t,e){var t,t,e,n,t=t&&t.sheet&&t.sheet.parent&&t.sheet.parent.Ti,t=S(t)+1e3;return(0,H.GC$)(e).css("z-index",t),e=Nt(this.editorType),(0,H.GC$)(e).css({font:"normal 11pt calibri",outline:D,resize:D,border:D,"vertical-align":"top","min-height":"0px","box-sizing":"content-box",background:"transparent"}).css(Y,z).attr({tabindex:-1,autocomplete:"off",contenteditable:!0}).css(K,V).attr(C,M),c.safari&&(0,H.GC$)(e).css("-webkit-user-select","auto"),(n=J((0,H.GC$)(e)[0]))&&((0,H.GC$)(e).css("display","table-cell"),(0,H.GC$)(e).css(ht,z)),(0,H.GC$)(e)[0]},o.prototype.getEditorValue=function(t,e){var n,i,e,t;return t&&(n=Z(t),i=!_(n)&&0<n.length,U.Base.et(e&&e.sheet,"getEditorValue",e={editor:t,ns:y,editorValue:n}),i)?(t=(t=Jt(n=e.editorValue)).replace(/\r\n?/g,"\n")).indexOf(Mt)<0?t:tt(t,Mt," "):G},o.prototype.setEditorValue=function(t,e,n,i,r){var o,a,e,a,r;t&&(a=o=void 0,n&&n.sheet&&(o=n.sheet.Ai,a=n.sheet.getValue(n.row,n.col)),e=Kt(e),U.Base.et(n&&n.sheet,"setEditorValue",a={editor:t,ns:y,editorValue:e,originValue:a,startEditByKeydown:o,addPercent:i||r,cancel:!1}),!0===a.cancel?(Rt(t,a.editorValue),this.qmt(t,a.caret),n&&n.sheet&&(r=n.sheet).ki(F.Events.FormulaTextBoxTextChanged,{sheet:r,sheetName:r.name(),text:a.editorValue})):A?o&&n.isImeInput||Rt(t,e=_(e)?i?"%":"":e):Rt(t,e=o?i?"%":"":e))},o.prototype.selectAll=function(t,e){var n;t&&t.select?t.select():k.getSelection().selectAllChildren(t)},o.prototype.focus=function(t,e){var n,i,t,e,n=this;n.isImeAware()&&t?Et(i=t):i=t.parentNode.parentNode,i.focus(),t=n.Xmt(i),U.Base.et(e&&e.sheet,"afterSetEditorFocus",e={editor:i,caret:t,cancel:!1}),!0===e.cancel&&e.caret&&n.qmt(i,e.caret)},o.prototype.je=function(t,e,n,i){var r,o,e,r=t&&i&&i.sheet,o={},e=p(e,n,r,i,o);return t.Ii=o.formatter||B,e},o.prototype.Xmt=function(t){var e,n,i,r,o,r;return t&&(e=x.activeElement===t)?(i=n=-1,o=r=void 0,ne(t)?(n=t.selectionStart,i=t.selectionEnd):J(t)&&0<(r=k.getSelection()).rangeCount&&((r=(o=r.getRangeAt(0)).cloneRange()).selectNodeContents(t),r.setEnd(o.endContainer,o.endOffset),i=r.toString().length,(r=o.cloneRange()).selectNodeContents(t),r.setEnd(o.startContainer,o.startOffset),n=r.toString().length,r.detach()),{start:n,end:i,length:i-n}):null},o.prototype.qmt=function(t,e){var n,i,r,o,a,s,n=e.start,i=e.end,r=document.createRange(),o=window.getSelection();if(t.childNodes[0]){if((a=t.childNodes[0].textContent.length)<n){for(s=0;t.childNodes[s]&&0<=n;)n-=t.childNodes[s].textContent.length,s++;r.setStart(t.childNodes[s-1],n+t.childNodes[s-1].textContent.length)}else r.setStart(t.childNodes[0],n);if(a<(i=i>e.start?i-1:i)){for(s=0;t.childNodes[s]&&0<=i;)i-=t.childNodes[s].textContent.length,s++;r.setEnd(t.childNodes[s-1],i+t.childNodes[s-1].textContent.length)}else r.setEnd(t.childNodes[0],i);r.collapse(!0),o.removeAllRanges(),o.addRange(r)}},o.prototype.activateEditor=function(e,l,h,d,v,g,m){var p,S,w,e,o,e,t,n,i,r,a,s,n,p=d&&d.sheet;if(p&&(S=this,w=e)){if(e=(0,H.GC$)(w),o=J(w),S._editingElement=w,e.attr(C)||e.attr(C,M),f.android&&e.bind("input"+y,function(t){try{S.fi(w,l,h,t,d,!1,v,g,m)}catch(t){}}),e.bind("keydown"+y,function(t){var e,n,i;try{e=t.keyCode,o&&(n={event:t,editor:w,value:w.innerText,caret:S.Xmt(w),cancel:!1},8===e?(U.Base.et(p,"editorBackspace",n),!0===n.cancel?(b(t),w.innerText=n.value,S.qmt(w,n.caret),p.ki(F.Events.FormulaTextBoxTextChanged,{sheet:p,sheetName:p.name(),text:n.value})):u.processBackspaceAndLeftArrowKeyEvent(t,!0)):46===e?(U.Base.et(p,"editorDelete",n),!0===n.cancel?(b(t),w.innerText=n.value,S.qmt(w,n.caret),p.ki(F.Events.FormulaTextBoxTextChanged,{sheet:p,sheetName:p.name(),text:n.value})):u.processDeleteAndRightArrowKeyEvent(t,!0)):37===e?u.processBackspaceAndLeftArrowKeyEvent(t,!1):39===e&&u.processDeleteAndRightArrowKeyEvent(t,!1),ie(t)?(U.Base.et(p,"editorUndo",n),!0===n.cancel&&(b(t),w.innerText=n.value,S.qmt(w,n.caret),p.ki(F.Events.FormulaTextBoxTextChanged,{sheet:p,sheetName:p.name(),text:n.value}))):re(t)&&(U.Base.et(p,"editorRedo",n),!0===n.cancel)&&(b(t),w.innerText=n.value,S.qmt(w,n.caret),p.ki(F.Events.FormulaTextBoxTextChanged,{sheet:p,sheetName:p.name(),text:n.value}))),((i=229===e||0===e)||S.Ni)&&!f.android||S.fi(w,l,h,t,d,!0,v,g,m),zt(t,d,S.Ni,v,g,m)}catch(t){}}),e.bind("keyup"+y,function(t){var e,n,i,r,e=t.keyCode,n=t.ctrlKey,i=t.altKey,r;(!(229===e||0===e)&&!S.Ni||f.android)&&(46!==e&&8!==e&&(90!==e&&89!==e||!n||i)||(o&&"\n"===w.innerText&&(0,H.GC$)(w).empty(),S.fi(w,l,h,t,d,!1,v,g,m)),13!==e&&9!==e&&27!==e&&16!==e||n||i)&&p.ki(P,{sheet:p,sheetName:p.name(),row:p.ui,col:p.ci,editingText:S.getEditorValue(w,d)})}),e.bind("mousedown"+y,function(){1===p.Di&&(p.Di=2,p._i(1,2))}),e.bind("textInput"+y,function(t){var e,e,n,n;if(c.safari){if(t.metaKey||t.altKey||t.ctrlKey||"Enter"===t.key)return;e=t.key||t.data,e={editor:w,value:e,caret:S.Xmt(w),cancel:!1},U.Base.et(p,"editorInput",e),!0===e.cancel&&(b(t),w.innerText=e.value,n=p.getCellType(d.row,d.col),w.parentNode&&w.parentNode.parentNode&&n&&n.Rn(w.parentNode.parentNode,l,p.getCellRect(d.row,d.col),d),S.qmt(w,e.caret),p.ki(F.Events.FormulaTextBoxTextChanged,{sheet:p,sheetName:p.name(),text:e.value}))}t.data&&(S.probabilityAddPercentSpec||S.probabilityAddPercent)&&/^[0-9]+.?[0-9]*/.test(t.data)&&((n=document.createElement("span")).innerText="%",n.id="updateEditorImpAddPercent",("#text"===w.firstChild.nodeName?w:w.firstChild).appendChild(n),delete S.probabilityAddPercentSpec,delete S.probabilityAddPercent)}),e.bind("compositionstart"+y,function(){S.Ni=!0,S.Ei=Z(w)}),e.bind("compositionupdate"+y,function(t){S.fi(w,l,h,t||G,d,!0,v,g,m)}),e.bind("compositionend"+y,function(t){var e,e,n,n,e,t,i,e=t.data,e={editor:w,value:e,caret:S.Xmt(w),isImeInputting:!0,cancel:!1};U.Base.et(p,"editorInput",e),!0===e.cancel&&(b(t),w.innerText=e.value,n=p.getCellType(d.row,d.col),w.parentNode&&w.parentNode.parentNode&&n&&n.Rn(w.parentNode.parentNode,l,p.getCellRect(d.row,d.col),d),S.qmt(w,e.caret),p.ki(F.Events.FormulaTextBoxTextChanged,{sheet:p,sheetName:p.name(),text:e.value})),S.fi(w,l,h,t||G,d,!1,v,g,m),S.Ni=!1,n=t.keyCode,e=t.ctrlKey,t=t.altKey,i=S.getEditorValue(w,d)||"",S.Ei!==i&&(n===B||13!==n&&9!==n||e||t)&&p.ki(P,{sheet:p,sheetName:p.name(),row:p.ui,col:p.ci,editingText:i})}),o&&(e.bind("copy"+y,function(t){var e=k.clipboardData,n=t.clipboardData,i=Qt(t.currentTarget);_(i)||(e&&e.setData?(e.setData("text",i),b(t)):n&&n.setData&&(n.setData("text/plain",i),b(t)))}),e.bind("cut"+y,function(t){var e,e,n,i,r,r,e=Qt(t.currentTarget),n="editorCut";!_(e)&&w.Rse&&(k.clipboardData&&k.clipboardData.setData?(i="text",r=k.clipboardData):t.clipboardData&&t.clipboardData.setData&&(i="text/plain",r=t.clipboardData),e={editor:w,clipboardData:r,dataName:i,caret:S.Xmt(w)},U.Base.et(p,n,e),b(t),w.innerText=e.value,r=p.getCellType(d.row,d.col),w.parentNode&&w.parentNode.parentNode&&r&&r.Rn(w.parentNode.parentNode,l,p.getCellRect(d.row,d.col),d),S.qmt(w,e.caret))}),e.bind("paste"+y,function(t){var e,n,i,r,o,a,s,u,c,f,e=!1;try{n=void 0,A&&!R&&k.clipboardData&&k.clipboardData.getData?n=k.clipboardData.getData("text"):t.clipboardData&&t.clipboardData.getData&&(n=t.clipboardData.getData("text/plain")),n=Kt(n=n.replace(/\r\n?/g,"\n")),i={editor:w,pasteValue:n,caret:S.Xmt(w),cancel:!1},U.Base.et(p,"editorPaste",i),!0===i.cancel?(e=!0,w.innerText=i.pasteValue,S.qmt(w,i.caret),p.ki(F.Events.FormulaTextBoxTextChanged,{sheet:p,sheetName:p.name(),text:i.pasteValue})):0<(r=k.getSelection()).rangeCount&&((a=(o=r.getRangeAt(0)).startOffset)!==(s=o.endOffset)&&o.deleteContents(),ee(w,n,a)||(u=x.createElement("span"),"\n"===(n=n.replace(/\u200B/g,""))[(c=n.length)-1]&&(n="\r"===n[c-2]?n.substr(0,c-2):n.substr(0,c-1)),u.innerText=n,o.insertNode(u),(f=document.createRange()).setStartAfter(u),f.setEndAfter(u),f.collapse(!1),r.removeAllRanges(),r.addRange(f),e=!0))}catch(t){}if(S.ji=k.setTimeout(function(){S.fi(w,l,h,t,d,!1,v,g,m),p.parent&&p.parent.ki(F.Events.FormulaTextBoxUpdatePosition,void 0),S.ji&&(clearTimeout(S.ji),delete S.ji)},10),e)return!1}),e.bind("keypress"+y,function(t){var e,e,t;t.metaKey||t.altKey||t.ctrlKey||"Enter"===t.key||(e=t.key||t.data,e={editor:w,value:e,caret:S.Xmt(w),cancel:!1},U.Base.et(p,"editorInput",e),!0===e.cancel&&(b(t),w.innerText=e.value,t=p.getCellType(d.row,d.col),w.parentNode&&w.parentNode.parentNode&&t&&t.Rn(w.parentNode.parentNode,l,p.getCellRect(d.row,d.col),d),S.qmt(w,e.caret),p.ki(F.Events.FormulaTextBoxTextChanged,{sheet:p,sheetName:p.name(),text:e.value})))})),t=e=void 0,(e=!d||(t=I&&p.getFormula(d.row,d.col))?e:l.mask)&&e.pattern&&"="===e.pattern[0]){n=p.Lp,i=p.Uw(3),r=0<=d.row?d.row:0,a=0<=d.col?d.col:0;try{s=n.evaluate(i,e.pattern,r,a),e.pattern="object"==typeof s?"":""+s}catch(t){e.pattern=""}}n={editor:w,ns:y,mask:e,text:Z(w)},U.Base.et(p,"activateEditor",n)}},o.prototype.deactivateEditor=function(t,e){var n,i,r,o,a,s,u,c,f,l,n=this;if(U.Base.et(e&&e.sheet,"deactivateEditor",{editor:t}),t&&e&&e.sheet){if(i=e.sheet,n.Ni&&gt&&i.Oi)try{(0,H.GC$)(t).trigger("compositionend"+y)}catch(t){}if(r=i.getActualStyle(e.row,e.col,e.sheetArea).cellPadding)for(o=[L,at],a=[3,0],s=0;s<o.length;s++)u=parseInt(oe(r)[a[s]],10),n.shiftPadding(t,o[s],u=typeof u==Gt&&0<u?u:0);(0,H.GC$)(t).unbind(y),c=i.getActiveRowIndex(),f=i.getActiveColumnIndex(),l=i.getActualStyle(c,f),i.Ri(n,t,c,f,l,B,B,B,B,e.sheetArea)}n._editingElement=G},o.prototype.shiftPadding=function(t,e,n){var t=(0,H.GC$)(t).parent();t&&(e===L?t.css({left:(+(0,H.GC$)(t).css(L).replace("px","")||0)-n}):e===at&&t.css({top:(+(0,H.GC$)(t).css(at).replace("px","")||0)-n}))},o.prototype.getEditingElement=function(){return this._editingElement},o.prototype.Bi=function(t,e,n,i,r,o,a,s,u){var c,f,l,h,d,v,r,g,m,p,S,w,b,C,y,M,k,T,b,T,t,x,a,x,l,t,n,G,v,n,B,I,P,N,v,G,R,E,n,a,x,g,f,i,c=r&&r.sheet,f=this,l=c.options.sheetAreaOffset,h=t;if(h&&c&&(d=(0,H.GC$)(h),v=c.Dn,r=r.preventOverflow,g=Z(h),c.isEditing())){if(m=J(h),S=L,w=p=void 0,b=U.Context.gn,k=M=y=C=0,e&&(C=b(e,0,!1,T=c.zoom()),y=b(e,1,!1,T),M=b(e,2,!1,T),k=b(e,3,!1,T),1===(p=q(e.hAlign,t.Li))||5===p?S=ot:2===p&&(S=rt),d.css(st,S),e.foreColor&&d.css("color",e.foreColor),(w=e.font||v.Nn())&&(1<c.zoom()&&(w=v._n(w)),d.css("font",et(w))),e.textDecoration)&&f.Qe(d,e.textDecoration),b=(W(d.css("padding-left"),10)||0)+(W(d.css("padding-right"),10)||0),T=(W(d.css("padding-top"),10)||0)+(W(d.css("padding-bottom"),10)||0),n||(b+=2*Number(d.parent().css("left").replace("px","")),T+=2*Number(d.parent().css("top").replace("px",""))),(a=_(a)?n:a)&&(t=c.Fi(),x=n.width,a.x+a.width-l.left>t.width&&(x=n.width=t.width-n.x,a.width=t.width-a.x),d.css(j,x-b).css(O,n.height-T),h.maxWidth=l.left+t.width-n.x-b-y,d.css("max-width",h.maxWidth+"px"),h.maxHeight=l.top+t.height-n.y-T-M,h.minWidth=W(h.style.width,10),h.minHeight=W(h.style.height,10)),a=Ht(h),x=Ut(h),l=(o=(o=o&&i&&i.keyCode&&c.rt.Pi(i)&&0===a&&x===g.length)||c.Ai)&&!e.mask?"":g,w=(w=h.style.font)||v._n(v.Nn()),t=$(w),i&&f.probabilityAddPercent&&(n=i.key)&&-1!==F.NUMBER_ARRAY.indexOf(n)&&(c.parent.options.enableFormulaTextbox?(v=h.innerText,/[a-z]/i.test(v)?f.probabilityAddPercent=!1:((G=document.createElement("span")).innerText="%",G.id="updateEditorImpAddPercent",h.appendChild(G),delete f.probabilityAddPercent)):((G=document.createElement("span")).innerText="%",G.id="updateEditorImpAddPercent",h.firstChild.appendChild(G),delete f.probabilityAddPercent)),!o&&i&&(n=c.parent,c.rt.Pi(i)&&8!==i.keyCode&&_(n.contextMenu.menuView.getHost())&&(l=Yt(h,l,a,x,i)),f.Ni)&&(l=A?g:f.Ei+i.data),B=[],P=I=void 0,N=(B=e&&(e.wordWrap||5===p)?Q.un(l,W(h.style.width)-b,w):l.split(/\r\n|\r|\n/)).length,h.minWidth=St(h.minWidth,h.maxWidth),h.minHeight=St(h.minHeight,h.maxHeight),e&&(e.wordWrap||5===p)||0<N){if(G=v=void 0,v=X?$t(G=qt(B,w)):N*t,e&&(e.wordWrap||5===p))d.css(Y,ct).css(K,V).css("max-width",h.style.width);else{for(E=[],I=R=0;I<N;I++)P=pt(c.Gi(B[I],w)),E.push(P),R=yt(R,P);n=d.css(Y),a=W(h.style.width),e||n!==ct?R<=h.minWidth?(d.css(j,h.minWidth).css(Y,z).css(K,V),m&&d.css(ht,z)):R>h.minWidth&&R<=h.maxWidth&&!r?(d.css(j,R).css(Y,z).css(K,V),m&&d.css(ht,z)):R>h.maxWidth&&!r&&(d.css(j,h.maxWidth-2).css(Y,ct).css(K,V),v=te(E,h.maxWidth,t,G)):a<R&&!r&&(v=te(E,a,t,G))}v<=h.minHeight?d.css(O,h.minHeight).css(dt,D):v>h.minHeight&&v<=h.maxHeight?d.css(O,v).css(dt,D):v>h.maxHeight&&d.css(O,h.maxHeight-1).css(ft,lt).css(dt,L)}return S=d.css(st),x=d.width()-h.minWidth,_(S)||S===L||(S===ot?d.css(L,h.originalLeft-x/2):S===rt&&d.css(L,h.originalLeft-x)),e&&m&&(1===(g=e.vAlign)?d.css(ut,"middle"):2===g&&d.css(ut,"bottom")),f=W(h.style.height)+T+C+M,i=b+k+y,d.css(ft)===lt?{width:h.offsetWidth+i,height:o?0:f}:{width:W(h.style.width)+i,height:f}}},o.prototype.updateEditor=function(t,e,n,i,r,o,a){var e,i,s;return n=this.Bi(t,e,n,G,i,!1,r,o,a),A&&t&&(i=(e=(0,H.GC$)(t))[0].style.width,e.width(i+1).width(i)),s=!_(n)&&t?new F.Rect(t.style.left?parseFloat(t.style.left):0,t.style.top?parseFloat(t.style.top):0,n.width,n.height):s},o.prototype.fi=function(t,e,n,i,r,o,a,s,u){var i,o;n=this.Bi(t,e,n,i,r,o,a,s,u),A&&t&&(o=(i=(0,H.GC$)(t))[0].style.width,i.width(o+1).width(o)),!_(n)&&t&&(_(a)?a=n:(a.x=B,a.y=B),this.updateEditorContainer(t,n,e,r,a,s,u))},o.prototype.updateEditorContainer=function(t,e,n,i,r,o,a){var s,s,u;i&&i.preventOverflow?(l.prototype.updateEditorContainer.call(this,t,e,n,i,r,o,a),(s=t.parentNode)&&e&&(s=(0,H.GC$)(s),0<(u=e.width))&&s.width(u)):(e&&e.width&&r&&r.width&&(r.width=e.width),e&&e.height&&r&&r.height&&(r.height=e.height),l.prototype.updateEditorContainer.call(this,t,e,n,i,r,o,a))},o.prototype.updateImeMode=function(t,e,n){this.isImeAware()&&t&&U.Context.hn(t,e)},o.prototype.isReservedKey=function(t,e){var n=t.srcElement||t.target,i=t.keyCode,r=t.ctrlKey,o=t.altKey,a=t.metaKey;return!!(n&&e&&e.isEditing&&n.getAttribute(C)===M)&&(13===i&&(r&&!t.shiftKey||o)||90===i&&r&&!o||89===i&&r&&!o||67===i&&(r||a)&&!o||88===i&&(r||a)&&!o)},o.prototype.isImeAware=function(t){return!0},o.prototype.toJSON=function(){var t,e,n,t={},e=this;for(n in e)e.hasOwnProperty(n)&&"_editingElement"!==n&&(t[n]=e[n]);return t},o.prototype.lfe=function(t,e){var e={eventName:e,eventArg:t};return U.Base.et(t.sheet,"onCreateEventArg",e),e.eventArg},t.TextCellType=n=o,t.Text=n,v.ti[1]=n},"./dist/core/core.definition.js":function(){},"./dist/core/core.entry.js":function(t,e,n){"use strict";var i,r,o,a,s,u,u,r,n;function c(t,e){return a.n1e(t,e)}i=this&&this.__createBinding||(Object.create?function(t,e,n,i){void 0===i&&(i=n);var r=Object.getOwnPropertyDescriptor(e,n);r&&("get"in r?e.__esModule:!r.writable&&!r.configurable)||(r={enumerable:!0,get:function(){return e[n]}}),Object.defineProperty(t,i,r)}:function(t,e,n,i){t[i=void 0===i?n:i]=e[n]}),r=this&&this.__exportStar||function(t,e){for(var n in t)"default"===n||Object.prototype.hasOwnProperty.call(e,n)||i(e,t,n)},Object.defineProperty(e,"__esModule",{value:!0}),e.Aoe=e.n1e=e.CellTypes=void 0,n("./dist/core/core.res.en.js"),o=n("./dist/core/util/common.js"),Object.defineProperty(e,"getTypeFromString",{set:function(t){o.getTypeFromString=t},get:function(){return o.getTypeFromString}}),r(n("./dist/core/core.ns.js"),e),r(n("./dist/core/core.interface.js"),e),r(n("./dist/core/core.enum.js"),e),r(n("./dist/core/util/common.js"),e),r(n("./dist/core/excel-io-util/common.js"),e),r(n("./dist/core/excel-io-util/excel-types.js"),e),r(n("./dist/core/excel-io-util/range-parser.js"),e),r(n("./dist/core/excel-io-util/excel-helper.js"),e),r(n("./dist/core/excel-io-util/excel-style.js"),e),r(n("./dist/core/util/domUtil.js"),e),n("./dist/core/core.definition.js"),u=-1,1===(s=(a=n("./dist/core/lc/releaseLc.js"))._pt)&&(u=Math.floor(5*Math.random()),e["G".concat("C","$")]["s".concat("d")]=u),r(n("./dist/core/util/theme.js"),e),r(n("./dist/core/util/basedialog.js"),e),r(n("./dist/core/util/imageLoader.js"),e),r(n("./dist/core/util/tasks.js"),e),r(n("./dist/core/util/crypto.js"),e),r(n("./dist/core/util/dataManager.js"),e),0===u&&n("./dist/core/lc/lcRegister.js"),r(n("./dist/core/worksheet/stylehelper.js"),e),1===u&&n("./dist/core/lc/lcRegister.js"),r(n("./dist/core/worksheet/style.js"),e),2===u&&n("./dist/core/lc/lcRegister.js"),r(n("./dist/core/worksheet/clipboardhelper.js"),e),3===u&&n("./dist/core/lc/lcRegister.js"),r(n("./dist/core/worksheet/worksheet-model.js"),e),4===u&&n("./dist/core/lc/lcRegister.js"),r(n("./dist/core/worksheet/worksheet.js"),e),r(n("./dist/core/worksheet/worksheet-formatter.js"),e),r(n("./dist/core/worksheet/worksheet-actions.js"),e),r(n("./dist/core/worksheet/worksheet-border.js"),e),n("./dist/core/worksheet/worksheet-edit.js"),r(n("./dist/core/worksheet/worksheet-event.js"),e),n("./dist/core/worksheet/worksheet-json.js"),r(n("./dist/core/worksheet/worksheet-render.js"),e),n("./dist/core/worksheet/worksheet-selection.js"),n("./dist/core/worksheet/worksheet-sort.js"),r(n("./dist/core/worksheet/worksheet-ui.js"),e),r(n("./dist/core/worksheet/worksheet-static.js"),e),r(n("./dist/core/worksheet/worksheet-clipboard.js"),e),r(n("./dist/core/workbook/workbook.js"),e),r(n("./dist/core/workbook/workbook-json.js"),e),r(n("./dist/core/workbook/sheettabbase.js"),e),r(n("./dist/core/workbook/sheettab.js"),e),r(n("./dist/core/workbook/sheettab2007.js"),e),r(n("./dist/core/workbook/workbookpanelex.js"),e),r(n("./dist/core/util/styleManager.js"),e),u=n("./dist/core/celltype/cellType.entry.js"),e.CellTypes=u,r=n("./dist/core/celltype/headercelltype.js"),n=n("./dist/core/celltype/textcelltype.js"),u.Hi=r,u.zi=n,1!==s&&2!==s||a.Vi(e),e.n1e=c,e.Aoe=a.Aoe},"./dist/core/core.enum.js":function(F,t){"use strict";var e,n,i,r,o,a,s,u,c,f,l,h,d,v,g,m,p,S,w,b,C,y,M,k,T,x,G,B,I,P,N,R,E,_,A,L,D,j,O,V,Y,K,z,W,H,J,Z,Q,X,q,$,tt,et,nt,it,rt,ot,at,st,ut,ct,ft,lt,ht,dt,vt,gt,mt,pt,St,wt,bt,Ct,yt,H,H,H,H,H,H,H,H,H,H,H,H,H,H,H,H,H,H,H,H,H,H,H,H,H,H,H,H,H,H,H,H,H,H,H,H,H,H,H,H,H,H,H,H,U,U,H,U,H,U,H,U,H,U,H,U,H,U,H,U,H,U,H,U,H,U,H,U,H,U,H,U,H,U;Object.defineProperty(t,"__esModule",{value:!0}),t.LayoutDirection=t.CaptionAlignment=t.IconPosition=t.ButtonPosition=t.DropDownType=t.ButtonImageType=t.ButtonVisibility=t.RowColumnStates=t.CellStatesType=t.SortState=t.SheetArea=t.VerticalPosition=t.HorizontalPosition=t.Yi=t.ImageLayout=t.ValueType=t.RangeChangedAction=t.HeaderAutoText=t.StorageType=t.SelectionUnit=t.SelectionPolicy=t.ImeMode=t.EditorStatus=t.VisualState=t.Zi=t.VertAlign=t.VerticalAlign=t.HorizontalAlign=t.TextDecorationType=t.LabelVisibility=t.LabelAlignment=t.PasteOperationOptions=t.CopyToOptions=t.ClipboardPasteOptions=t.AutoFitType=t.InvalidOperationType=t.ResizeZeroIndicator=t.HeaderOptions=t.CalculationType=t.CalculationMode=t.CopyPasteHeaderOptions=t.ResizeMode=t.InsertShiftCell=t.ShowScrollTip=t.ScrollbarAppearance=t.ShowResizeTip=t.WorksheetType=t.ScrollbarState=t.AxisInfoChangeType=t.ScrollType=void 0,t.SheetTabState=t.DefaultChangeValueType=t.ClipboardActionType=t.OpenMode=t.OpenSaveFileType=t.FileType=t.TableStyleElement=t.SortBy=t.UsedRangeType=t.ColumnHeaderFitMode=t.AllSheetsListVisibility=t.SheetTabVisible=t.SheetType=t.HyperlinkTargetType=t.TabStripPosition=t.NumbersFitMode=t.PatternType=t.DropDownAlignment=t.DropDownDirection=t.DropdownListValue=t.GroupSort=t.CalendarStartDay=t.CalendarPage=t.LayoutDisplayAs=void 0,(H=e=t.ScrollType||(t.ScrollType={}))[H.pixels=0]="pixels",H[H.continuous=1]="continuous",(H=n=t.AxisInfoChangeType||(t.AxisInfoChangeType={}))[H.setRowCount=0]="setRowCount",H[H.setColumnCount=1]="setColumnCount",H[H.addRows=2]="addRows",H[H.deleteRows=3]="deleteRows",H[H.addColumns=4]="addColumns",H[H.deleteColumns=5]="deleteColumns",H[H.setRowHeight=6]="setRowHeight",H[H.setColumnWidth=7]="setColumnWidth",H[H.setRowVisible=8]="setRowVisible",H[H.setColumnVisible=9]="setColumnVisible",H[H.filterRows=10]="filterRows",H[H.outlineExpandRows=11]="outlineExpandRows",H[H.outlineExpandColumns=12]="outlineExpandColumns",(H=i=t.ScrollbarState||(t.ScrollbarState={}))[H.hide=0]="hide",H[H.show=1]="show",H[H.active=2]="active",H[H.inactive=3]="inactive",(H=r=t.WorksheetType||(t.WorksheetType={}))[H.worksheet=0]="worksheet",H[H.reportTemplateSheet=1]="reportTemplateSheet",(H=o=t.ShowResizeTip||(t.ShowResizeTip={}))[H.none=0]="none",H[H.column=1]="column",H[H.row=2]="row",H[H.both=3]="both",(H=a=t.ScrollbarAppearance||(t.ScrollbarAppearance={}))[H.skin=0]="skin",H[H.mobile=1]="mobile",(H=s=t.ShowScrollTip||(t.ShowScrollTip={}))[H.none=0]="none",H[H.horizontal=1]="horizontal",H[H.vertical=2]="vertical",H[H.both=3]="both",(H=u=t.InsertShiftCell||(t.InsertShiftCell={}))[H.right=0]="right",H[H.down=1]="down",(H=c=t.ResizeMode||(t.ResizeMode={}))[H.normal=0]="normal",H[H.split=1]="split",(H=f=t.CopyPasteHeaderOptions||(t.CopyPasteHeaderOptions={}))[H.noHeaders=0]="noHeaders",H[H.rowHeaders=1]="rowHeaders",H[H.columnHeaders=2]="columnHeaders",H[H.allHeaders=3]="allHeaders",(H=l=t.CalculationMode||(t.CalculationMode={}))[H.auto=0]="auto",H[H.manual=1]="manual",(H=h=t.CalculationType||(t.CalculationType={}))[H.all=0]="all",H[H.rebuild=1]="rebuild",H[H.minimal=2]="minimal",H[H.regular=3]="regular",(H=d=t.HeaderOptions||(t.HeaderOptions={}))[H.noHeaders=0]="noHeaders",H[H.rowHeaders=1]="rowHeaders",H[H.columnHeaders=2]="columnHeaders",H[H.allHeaders=3]="allHeaders",(H=v=t.ResizeZeroIndicator||(t.ResizeZeroIndicator={}))[H.default=0]="default",H[H.enhanced=1]="enhanced",(H=g=t.InvalidOperationType||(t.InvalidOperationType={}))[H.setFormula=0]="setFormula",H[H.copyPaste=1]="copyPaste",H[H.dragFill=2]="dragFill",H[H.dragDrop=3]="dragDrop",H[H.changePartOfArrayFormula=4]="changePartOfArrayFormula",H[H.changeSheetName=5]="changeSheetName",H[H.table=6]="table",H[H.filter=7]="filter",H[H.hideSheet=8]="hideSheet",H[H.sort=9]="sort",H[H.pivotTable=10]="pivotTable",H[H.ptOverlapValue=11]="ptOverlapValue",H[H.groupProtected=12]="groupProtected",H[H.editProtected=13]="editProtected",H[H.cutProtected=14]="cutProtected",H[H.customName=15]="customName",H[H.dataObjectCellTypeInsertData=16]="dataObjectCellTypeInsertData",H[H.reportSheet=17]="reportSheet",(H=m=t.AutoFitType||(t.AutoFitType={}))[H.cell=0]="cell",H[H.cellWithHeader=1]="cellWithHeader",(H=p=t.ClipboardPasteOptions||(t.ClipboardPasteOptions={}))[H.all=0]="all",H[H.values=1]="values",H[H.formatting=2]="formatting",H[H.formulas=3]="formulas",H[H.valuesAndFormatting=4]="valuesAndFormatting",H[H.formulasAndFormatting=5]="formulasAndFormatting",H[H.comments=6]="comments",H[H.validation=7]="validation",H[H.usingSourceTheme=8]="usingSourceTheme",H[H.noBorder=9]="noBorder",H[H.columnWidths=10]="columnWidths",H[H.formulasAndNumberFormatting=11]="formulasAndNumberFormatting",H[H.valuesAndNumberFormatting=12]="valuesAndNumberFormatting",H[H.valuesAndSourceFormatting=13]="valuesAndSourceFormatting",H[H.allAndColumnWidth=14]="allAndColumnWidth",(H=S=t.CopyToOptions||(t.CopyToOptions={}))[H.value=1]="value",H[H.formula=2]="formula",H[H.comment=4]="comment",H[H.outline=8]="outline",H[H.sparkline=16]="sparkline",H[H.span=32]="span",H[H.style=64]="style",H[H.tag=128]="tag",H[H.bindingPath=256]="bindingPath",H[H.conditionalFormat=512]="conditionalFormat",H[H.hyperlink=1024]="hyperlink",H[H.defaultValue=2048]="defaultValue",H[H.altText=4096]="altText",H[H.all=8191]="all",(H=w=t.PasteOperationOptions||(t.PasteOperationOptions={}))[H.none=0]="none",H[H.add=1]="add",H[H.subtract=2]="subtract",H[H.multiply=3]="multiply",H[H.divide=4]="divide",(H=b=t.LabelAlignment||(t.LabelAlignment={}))[H.topLeft=0]="topLeft",H[H.topCenter=1]="topCenter",H[H.topRight=2]="topRight",H[H.bottomLeft=3]="bottomLeft",H[H.bottomCenter=4]="bottomCenter",H[H.bottomRight=5]="bottomRight",(H=C=t.LabelVisibility||(t.LabelVisibility={}))[H.visible=0]="visible",H[H.hidden=1]="hidden",H[H.auto=2]="auto",(H=y=t.TextDecorationType||(t.TextDecorationType={}))[H.underline=1]="underline",H[H.lineThrough=2]="lineThrough",H[H.overline=4]="overline",H[H.doubleUnderline=8]="doubleUnderline",H[H.none=0]="none",(H=M=t.HorizontalAlign||(t.HorizontalAlign={}))[H.left=0]="left",H[H.center=1]="center",H[H.right=2]="right",H[H.general=3]="general",H[H.centerContinuous=4]="centerContinuous",H[H.distributed=5]="distributed",(H=k=t.VerticalAlign||(t.VerticalAlign={}))[H.top=0]="top",H[H.center=1]="center",H[H.bottom=2]="bottom",(H=T=t.VertAlign||(t.VertAlign={}))[H.normal=0]="normal",H[H.superscript=1]="superscript",H[H.subscript=2]="subscript",(H=x=t.Zi||(t.Zi={}))[H.smallDecrement=0]="smallDecrement",H[H.smallIncrement=1]="smallIncrement",H[H.largeDecrement=2]="largeDecrement",H[H.largeIncrement=3]="largeIncrement",H[H.thumbPosition=4]="thumbPosition",H[H.thumbTrack=5]="thumbTrack",H[H.endScroll=6]="endScroll",(H=G=t.VisualState||(t.VisualState={}))[H.normal=0]="normal",H[H.highlight=1]="highlight",H[H.selected=2]="selected",H[H.active=3]="active",H[H.hover=4]="hover",H[H.activeNotSelected=5]="activeNotSelected",(H=B=t.EditorStatus||(t.EditorStatus={}))[H.ready=0]="ready",H[H.enter=1]="enter",H[H.edit=2]="edit",(H=I=t.ImeMode||(t.ImeMode={}))[H.auto=1]="auto",H[H.active=2]="active",H[H.inactive=4]="inactive",H[H.disabled=0]="disabled",(H=P=t.SelectionPolicy||(t.SelectionPolicy={}))[H.single=0]="single",H[H.range=1]="range",H[H.multiRange=2]="multiRange",(H=N=t.SelectionUnit||(t.SelectionUnit={}))[H.cell=0]="cell",H[H.row=1]="row",H[H.column=2]="column",(H=R=t.StorageType||(t.StorageType={}))[H.data=1]="data",H[H.style=2]="style",H[H.comment=4]="comment",H[H.tag=8]="tag",H[H.sparkline=16]="sparkline",H[H.axis=32]="axis",H[H.bindingPath=64]="bindingPath",H[H.hyperlink=256]="hyperlink",H[H.altText=512]="altText",(H=E=t.HeaderAutoText||(t.HeaderAutoText={}))[H.blank=0]="blank",H[H.numbers=1]="numbers",H[H.letters=2]="letters",(H=_=t.RangeChangedAction||(t.RangeChangedAction={}))[H.dragDrop=0]="dragDrop",H[H.dragFill=1]="dragFill",H[H.clear=2]="clear",H[H.paste=3]="paste",H[H.sort=4]="sort",H[H.setArrayFormula=5]="setArrayFormula",H[H.evaluateFormula=6]="evaluateFormula",(H=A=t.ValueType||(t.ValueType={}))[H.normal=0]="normal",H[H.richText=1]="richText",(H=L=t.ImageLayout||(t.ImageLayout={}))[H.stretch=0]="stretch",H[H.center=1]="center",H[H.zoom=2]="zoom",H[H.none=3]="none",(H=D=t.Yi||(t.Yi={})).ThumbButton="thumbButton",H.TrackButton="trackButton",H.LeftButton="leftButton",H.RightButton="rightButton",H.UpButton="upButton",H.DownButton="downButton",(H=j=t.HorizontalPosition||(t.HorizontalPosition={}))[H.left=0]="left",H[H.center=1]="center",H[H.right=2]="right",H[H.nearest=3]="nearest",(H=O=t.VerticalPosition||(t.VerticalPosition={}))[H.top=0]="top",H[H.center=1]="center",H[H.bottom=2]="bottom",H[H.nearest=3]="nearest",(H=V=t.SheetArea||(t.SheetArea={}))[H.corner=0]="corner",H[H.colHeader=1]="colHeader",H[H.rowHeader=2]="rowHeader",H[H.viewport=3]="viewport",(H=Y=t.SortState||(t.SortState={}))[H.none=0]="none",H[H.ascending=1]="ascending",H[H.descending=2]="descending",(H=K=t.CellStatesType||(t.CellStatesType={}))[H.hover=1]="hover",H[H.invalid=2]="invalid",H[H.readonly=4]="readonly",H[H.edit=8]="edit",H[H.active=16]="active",H[H.selected=32]="selected",H[H.dirty=64]="dirty",H[H.invalidFormula=128]="invalidFormula",(H=z=t.RowColumnStates||(t.RowColumnStates={}))[H.hover=1]="hover",H[H.invalid=2]="invalid",H[H.edit=8]="edit",H[H.active=16]="active",H[H.selected=32]="selected",H[H.dirty=64]="dirty",H[H.inserted=128]="inserted",H[H.invalidFormula=512]="invalidFormula",(H=W=t.ButtonVisibility||(t.ButtonVisibility={}))[H.always=0]="always",H[H.onSelected=1]="onSelected",H[H.onEditing=2]="onEditing",(U=H=t.ButtonImageType||(t.ButtonImageType={}))[U.none=0]="none",U[U.custom=1]="custom",U[U.clear=2]="clear",U[U.cancel=3]="cancel",U[U.ok=4]="ok",U[U.dropdown=5]="dropdown",U[U.ellipsis=6]="ellipsis",U[U.left=7]="left",U[U.right=8]="right",U[U.plus=9]="plus",U[U.minus=10]="minus",U[U.undo=11]="undo",U[U.redo=12]="redo",U[U.search=13]="search",U[U.separator=14]="separator",U[U.spinLeft=15]="spinLeft",U[U.spinRight=16]="spinRight",U[U.collapse=17]="collapse",U[U.expand=18]="expand",H.calcel=H.cancel,(U=J=t.DropDownType||(t.DropDownType={}))[U.colorPicker=0]="colorPicker",U[U.dateTimePicker=1]="dateTimePicker",U[U.timePicker=2]="timePicker",U[U.monthPicker=3]="monthPicker",U[U.list=4]="list",U[U.slider=5]="slider",U[U.calculator=6]="calculator",U[U.workflowList=7]="workflowList",U[U.multiColumn=8]="multiColumn",(H=Z=t.ButtonPosition||(t.ButtonPosition={}))[H.left=0]="left",H[H.right=1]="right",H[H.leftOfText=2]="leftOfText",H[H.rightOfText=3]="rightOfText",(U=Q=t.IconPosition||(t.IconPosition={}))[U.left=0]="left",U[U.right=1]="right",U[U.leftOfText=2]="leftOfText",U[U.rightOfText=3]="rightOfText",U[U.outsideLeft=4]="outsideLeft",U[U.outsideRight=5]="outsideRight",(H=X=t.CaptionAlignment||(t.CaptionAlignment={}))[H.left=0]="left",H[H.right=1]="right",(U=q=t.LayoutDirection||(t.LayoutDirection={}))[U.horizontal=0]="horizontal",U[U.vertical=1]="vertical",(H=$=t.LayoutDisplayAs||(t.LayoutDisplayAs={}))[H.inline=0]="inline",H[H.popup=1]="popup",H[H.tree=2]="tree",(U=tt=t.CalendarPage||(t.CalendarPage={}))[U.year=1]="year",U[U.month=2]="month",U[U.day=3]="day",(H=et=t.CalendarStartDay||(t.CalendarStartDay={}))[H.monday=1]="monday",H[H.tuesday=2]="tuesday",H[H.wednesday=3]="wednesday",H[H.thursday=4]="thursday",H[H.friday=5]="friday",H[H.saturday=6]="saturday",H[H.sunday=7]="sunday",(U=nt=t.GroupSort||(t.GroupSort={}))[U.none=0]="none",U[U.group=1]="group",U[U.child=2]="child",U[U.full=3]="full",(H=it=t.DropdownListValue||(t.DropdownListValue={}))[H.string=0]="string",H[H.array=1]="array",(U=rt=t.DropDownDirection||(t.DropDownDirection={}))[U.Down=0]="Down",U[U.Up=1]="Up",U[U.Left=2]="Left",U[U.Right=3]="Right",(H=ot=t.DropDownAlignment||(t.DropDownAlignment={}))[H.Near=0]="Near",H[H.Center=1]="Center",H[H.Far=2]="Far",(U=at=t.PatternType||(t.PatternType={}))[U.solid=1]="solid",U[U.darkGray=2]="darkGray",U[U.mediumGray=3]="mediumGray",U[U.lightGray=4]="lightGray",U[U.gray125=5]="gray125",U[U.gray0625=6]="gray0625",U[U.darkHorizontal=7]="darkHorizontal",U[U.darkVertical=8]="darkVertical",U[U.darkDown=9]="darkDown",U[U.darkUp=10]="darkUp",U[U.darkGrid=11]="darkGrid",U[U.darkTrellis=12]="darkTrellis",U[U.lightHorizontal=13]="lightHorizontal",U[U.lightVertical=14]="lightVertical",U[U.lightDown=15]="lightDown",U[U.lightUp=16]="lightUp",U[U.lightGrid=17]="lightGrid",U[U.lightTrellis=18]="lightTrellis",(H=st=t.NumbersFitMode||(t.NumbersFitMode={}))[H.mask=0]="mask",H[H.overflow=1]="overflow",(U=ut=t.TabStripPosition||(t.TabStripPosition={}))[U.bottom=0]="bottom",U[U.top=1]="top",U[U.left=2]="left",U[U.right=3]="right",(H=ct=t.HyperlinkTargetType||(t.HyperlinkTargetType={}))[H.blank=0]="blank",H[H.self=1]="self",H[H.parent=2]="parent",H[H.top=3]="top",(U=ft=t.SheetType||(t.SheetType={}))[U.tableSheet=0]="tableSheet",U[U.ganttSheet=1]="ganttSheet",U[U.customSheetTab=2]="customSheetTab",U[U.reportSheet=3]="reportSheet",U[U.printSheet=9007199254740991]="printSheet",(H=lt=t.SheetTabVisible||(t.SheetTabVisible={}))[H.hidden=0]="hidden",H[H.visible=1]="visible",H[H.veryHidden=2]="veryHidden",(U=ht=t.AllSheetsListVisibility||(t.AllSheetsListVisibility={}))[U.hide=0]="hide",U[U.show=1]="show",U[U.auto=2]="auto",(H=dt=t.ColumnHeaderFitMode||(t.ColumnHeaderFitMode={}))[H.normal=0]="normal",H[H.vertical=1]="vertical",H[H.stack=2]="stack",(U=vt=t.UsedRangeType||(t.UsedRangeType={}))[U.all=262143]="all",U[U.axis=1]="axis",U[U.style=2]="style",U[U.rowStyle=4]="rowStyle",U[U.colStyle=8]="colStyle",U[U.data=16]="data",U[U.formula=32]="formula",U[U.span=64]="span",U[U.shape=128]="shape",U[U.table=256]="table",U[U.sparkLine=512]="sparkLine",U[U.comment=1024]="comment",U[U.slicer=2048]="slicer",U[U.pivottable=4096]="pivottable",U[U.filter=8192]="filter",U[U.dataValidation=16384]="dataValidation",U[U.conditionFormat=32768]="conditionFormat",U[U.chart=65536]="chart",U[U.picture=131072]="picture",(H=gt=t.SortBy||(t.SortBy={})).cellColor="cellColor",H.fontColor="fontColor",H.icon="icon",H.value="value",(U=mt=t.TableStyleElement||(t.TableStyleElement={})).wholeTable="wholeTable",U.firstColumnStripe="firstColumnStripe",U.secondColumnStripe="secondColumnStripe",U.firstRowStripe="firstRowStripe",U.secondRowStripe="secondRowStripe",U.lastColumn="lastColumn",U.firstColumn="firstColumn",U.headerRow="headerRow",U.totalRow="totalRow",U.firstHeaderCell="firstHeaderCell",U.lastHeaderCell="lastHeaderCell",U.firstTotalCell="firstTotalCell",U.lastTotalCell="lastTotalCell",(H=pt=t.FileType||(t.FileType={}))[H.excel=0]="excel",H[H.ssjson=1]="ssjson",H[H.csv=2]="csv",(U=St=t.OpenSaveFileType||(t.OpenSaveFileType={}))[U.excel=0]="excel",U[U.sjs=1]="sjs",(H=wt=t.OpenMode||(t.OpenMode={}))[H.normal=0]="normal",H[H.lazy=1]="lazy",H[H.incremental=2]="incremental",(U=bt=t.ClipboardActionType||(t.ClipboardActionType={}))[U.copy=1]="copy",U[U.cut=2]="cut",U[U.reset=3]="reset",(H=Ct=t.DefaultChangeValueType||(t.DefaultChangeValueType={})).Expression="expr",H.Value="value",(U=yt=t.SheetTabState||(t.SheetTabState={}))[U.hover=1]="hover",U[U.selected=2]="selected",U[U.active=4]="active",U[U.protected=8]="protected",U[U.normal=16]="normal"},"./dist/core/core.interface.js":function(t,e){"use strict";var n,e;Object.defineProperty(e,"__esModule",{value:!0}),e.CornerPosition=void 0,(e=n=e.CornerPosition||(e.CornerPosition={}))[e.leftTop=1]="leftTop",e[e.rightTop=2]="rightTop",e[e.leftBottom=4]="leftBottom",e[e.rightBottom=8]="rightBottom"},"./dist/core/core.ns.js":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.SR=void 0;var n=n("./dist/core/core.res.en.js");e.SR={en:n}},"./dist/core/core.res.en.js":function(t,e,n){"use strict";var i,r;for(r in Object.defineProperty(e,"__esModule",{value:!0}),e.ARIA_HasValue=e.ARIA_Cell=e.ARIA_Scrollbar_TRACK_Button=e.ARIA_Scrollbar_Bottom_Button=e.ARIA_Scrollbar_Right_Button=e.ARIA_Scrollbar_Thumb_Button=e.ARIA_Scrollbar_Top_Button=e.ARIA_Scrollbar_Left_Button=e.ARIA_Blank=e.ARIA_NewSheet=e.ARIA_SheetTab=e.ARIA_NextButton=e.ARIA_PreviousButton=e.ARIA_Last=e.ARIA_NextArrow=e.ARIA_PreviousArrow=e.ARIA_First=e.ARIA_Resize=e.NeedCanvasSupport=e.Exp_OverlappingSpans=e.Exp_SheetIsNull=e.Exp_DestSheetIsNull=e.Exp_ArrayFormulaSpan=e.Exp_SheetNameConflict=e.Exp_SheetNameInvalid=e.Exp_EmptyNamedStyle=e.NewTab=e.Tip_Width=e.Tip_Height=e.Tip_Column_Offset=e.Tip_Column=e.Tip_Row=e.Exp_PasteChangeMergeCell=e.Exp_PasteDestinationCellsLocked=e.Exp_InvalidCopyPasteSize=e.Exp_PasteSourceCellsLocked=e.Exp_ArgumentOutOfRange=e.Exp_NotAFunction=e.Exp_InvalidRange=e.Exp_IndexOutOfRange=e.Exp_InvalidCustomName=e.Exp_InvalidCustomFunction=e.Exp_DestIsNull=e.Exp_SrcIsNull=e.Exp_InvalidAndSpace=e.Exp_ChangePartOfArray=e.Exp_MultipleSelections=e.Exp_InvalidPastedArea=e.Exp_PasteExtentIsNull=e.Exp_NotSupported=void 0,e.cancel=e.ok=e.pasteSpecialOptionDialog=e.STEP=e.EXP_UNSUPPORT_CRYPTO_ALGORITHM=e.GENERAL=e.NORMAL=e.EXP_INVALID_PASSWORD=e.EXP_NO_PASSWORD=e.EXP_FILE_FORMAT=e.EXP_IO=e.Exp_InvalidOperationInProtect=e.Exp_InvalidSortPartTableOrMultiTableInRange=e.Exp_InvalidSortSpanInRange=e.Exp_InvalidSortArrayFormulaInRange=e.Exp_InsertCopiedCutCellsAffectTable=e.Exp_InsertCopiedCutCellsOverlap=e.Exp_InsertCopiedCutCellsNoRange=e.Exp_InsertCopiedCutCellsOnSpanTable=e.Exp_InsertCopiedCutCells=e.REPORT_SUMMARY=e.SHEET_NAME=e.ARIA_ColumnHeader=e.ARIA_RowHeader=e.ARIA_HasComment=e.ARIA_HasHyperlink=e.ARIA_HasButton=e.ARIA_HasCheckbox=e.ARIA_HasFormula=void 0,e.Exp_NotSupported="Not supported exception",e.Exp_PasteExtentIsNull="pasteExtent is null",e.Exp_InvalidPastedArea="The pasted area should have the same size as the copy or cut area.",e.Exp_MultipleSelections="This action won't work on multiple selections.",e.Exp_ChangePartOfArray="Cannot change part of an array.",e.Exp_InvalidAndSpace="Invalid {0}: {1} (must be between {2} and {3}).",e.Exp_SrcIsNull="The argument 'src' is null",e.Exp_DestIsNull="The argument 'dest' is null",e.Exp_InvalidCustomFunction="invalid custom function",e.Exp_InvalidCustomName="invalid custom name",e.Exp_IndexOutOfRange="Index is out of range!",e.Exp_InvalidRange="Invalid range",e.Exp_NotAFunction="Not A Function",e.Exp_ArgumentOutOfRange="ArgumentOutOfRange",e.Exp_PasteSourceCellsLocked="Source sheet's cells are locked.",e.Exp_InvalidCopyPasteSize="The copy and paste areas are not the same size.",e.Exp_PasteDestinationCellsLocked="The cell you are trying to change is protected and therefore read-only.",e.Exp_PasteChangeMergeCell="Cannot change part of a merged cell.",e.Tip_Row="Row: ",e.Tip_Column="Column: ",e.Tip_Column_Offset="Offset: ",e.Tip_Height="Height: {0} pixels",e.Tip_Width="Width: {0} pixels",e.NewTab="New...",e.Exp_EmptyNamedStyle="The name of named style cannot be empty or null",e.Exp_SheetNameInvalid="The sheet name can not be blank or contains these characters : *, :, [, ], ?, \\, /",e.Exp_SheetNameConflict="That name is already taken. Try a different one.",e.Exp_ArrayFormulaSpan="Array formulas are not valid in merged cells.",e.Exp_DestSheetIsNull="destSheet is null",e.Exp_SheetIsNull="sheet is null.",e.Exp_OverlappingSpans="This operation will cause overlapping spans.",e.NeedCanvasSupport="You need a browser which full supports HTML5 Canvas to run SpreadJS",e.ARIA_Resize="resize",e.ARIA_First="first",e.ARIA_PreviousArrow="previous arrow",e.ARIA_NextArrow="next arrow",e.ARIA_Last="last",e.ARIA_PreviousButton="previous button",e.ARIA_NextButton="next button",e.ARIA_SheetTab="sheet tab",e.ARIA_NewSheet="new sheet",e.ARIA_Blank="blank",e.ARIA_Scrollbar_Left_Button="scrollbar left button",e.ARIA_Scrollbar_Top_Button="scrollbar top button",e.ARIA_Scrollbar_Thumb_Button="scrollbar thumb button",e.ARIA_Scrollbar_Right_Button="scrollbar right button",e.ARIA_Scrollbar_Bottom_Button="scrollbar bottom button",e.ARIA_Scrollbar_TRACK_Button="scrollbar track button",e.ARIA_Cell="cell",e.ARIA_HasValue="has value {0}",e.ARIA_HasFormula="has formula {0}",e.ARIA_HasCheckbox="has checkbox {0}",e.ARIA_HasButton="has button {0}",e.ARIA_HasHyperlink="has hyperlink {0}",e.ARIA_HasComment="has comment {0}",e.ARIA_RowHeader="row header",e.ARIA_ColumnHeader="column header",e.SHEET_NAME="Sheet",e.REPORT_SUMMARY="Sum",i=n("./dist/core/lc/lr.gcn.js"))i.hasOwnProperty(r)&&(e[r]=i[r]);e.Exp_InsertCopiedCutCells="This selection is not valid. The copy/paste area must be the same size",e.Exp_InsertCopiedCutCellsOnSpanTable="This won\u2019t work because it would move cells in a table on your worksheet or will cause some merged cells to unmerge.",e.Exp_InsertCopiedCutCellsNoRange="New cells can not be inserted as there are non-empty cells that would extend beyond the worksheet.",e.Exp_InsertCopiedCutCellsOverlap="This selection isn't valid. Make sure the copy and paste areas don't overlap unless they are the same size and shape.",e.Exp_InsertCopiedCutCellsAffectTable="You can't rearrange cells within a table this way, because it might affect other table cells in an unexpected way.",e.Exp_InvalidSortArrayFormulaInRange="Can't sort current range as array formula exist.",e.Exp_InvalidSortSpanInRange="Can't sort current range as span exist.",e.Exp_InvalidSortPartTableOrMultiTableInRange="Can't sort current range as part table or more than one table exist.",e.Exp_InvalidOperationInProtect="The cell or chart you're trying to change is on a protected sheet. To make a change, unprotect the sheet.",e.EXP_IO="File read and write exception.",e.EXP_FILE_FORMAT="Incorrect file format.",e.EXP_NO_PASSWORD="The Excel file cannot be opened because the workbook/worksheet is password protected.",e.EXP_INVALID_PASSWORD="The specified password is incorrect.",e.NORMAL="Normal",e.GENERAL="General",e.EXP_UNSUPPORT_CRYPTO_ALGORITHM="Unsupported cryptographic algorithms",e.STEP={start:"start load {0}",loadFileData:"load {0}'s data to spread",loadSheetData:"load {0}'s data",startCalc:"start reCalc",loadSheetFormula:"load {0}'s formula",parseFile:"parse {0} content"},e.pasteSpecialOptionDialog={title:"Paste Special",paste:"Paste",pasteOptions:{all:"All",formulas:"Formulas",values:"Values",formats:"Formats",comments:"Comments",validation:"Validation",usingSourceTheme:"All using Source theme",noBorders:"All except borders",columnWidth:"Column widths",formulasAndNumberFormats:"Formulas and number formats",valueAndNumberFormats:"Value and number formats"},operation:"Operation",operationOptions:{none:"None",add:"Add",subtract:"Subtract",multiply:"Multiply",divide:"Divide"},skipBlanks:"Skip blanks",transpose:"Transpose",pasteLink:"Paste Link"},e.ok="OK",e.cancel="Cancel"},"./dist/core/excel-io-util/common.js":function(t,e,n){"use strict";var i,r,s,v,g,u,c,f,l,o,a,h,d,m,n,p,S,w,b,C,y;function M(){}function k(){}function T(){}function x(t,e){var e,e,n,e=e.toUpperCase(),e=p[e];return e?(n=m,(n=e.reg?e.prefix:m)+t):t}function G(e,t,n){var i,r,n,t,i,r=function(t){return e.getColumnWidth(t)},n=B(n,function(t){return e.getRowHeight(t)},e.getRowCount(),e.defaults.rowHeight),t=B(t,r,e.getColumnCount(),e.defaults.colWidth);return{rowIndex:n.index,rowOffset:n.offset,colIndex:t.index,colOffset:t.offset}}function B(t,e,n,i){for(var r,o,a,s,u,c,r=-1,o=-1,a=0,s=0;s<n;s++)if(t<(a+=u=e(s))){r=s,o=t-(a-u);break}return-1===r&&a<t&&(r=n+(c=i?Math.floor((t-a)/i):0),o=t-(a+c*i)),{index:r,offset:o}}function I(t,e){for(var n=e;n<t.length;n++)if("'"===t[n]||'"'===t[n])return n;return n}function P(t,e){var n,i,r;if(t&&"string"==typeof t){for(n=[],i=0;i<t.length&&(r=I(t,i),n.push(e(t.substring(i,r))),r<t.length);i++){if(-1===(i=t.indexOf(t[r],r+1))){n.push(t.substring(r));break}n.push(t.substring(r,i+1))}return n.join("")}return t}function N(){}function R(){}Object.defineProperty(e,"__esModule",{value:!0}),e.ExtendedNumberFormatHelper=e.excelSupportProtectionOptions=e.protectionOptionsMap=e.SJSStylePropsToStyleProps=e.Util=e.NodeHelper=e.IndexHelper=e.StringEx=e.STEP_RATE=void 0,i=n("Common"),r=n("./dist/core/core.enum.js"),s=n("./dist/core/util/domUtil.js"),v=n("./dist/core/util/common.js"),g=n("./dist/core/excel-io-util/excel-types.js"),u=n("./dist/core/excel-io-util/excel-helper.js"),c=/_x00[0-1][0-9A-Fa-f]_/,f=i.Common.lt.ht,l=null,o=g.XFileConstants.Wi,a=g.XFileConstants.Qi,h=g.XFileConstants.Ki,d=/([A-Z][A-Z.]+)\(/gi,m="_xlfn.",p={AVERAGEIF:/\bAVERAGEIF\b\(/gi,AVERAGEIFS:/\bAVERAGEIFS\b\(/gi,CUBEKPIMEMBER:/\bCUBEKPIMEMBER\b\(/gi,CUBEMEMBER:/\bCUBEMEMBER\b\(/gi,CUBEMEMBERPROPERTY:/\bCUBEMEMBERPROPERTY\b\(/gi,CUBERANKEDMEMBER:/\bCUBERANKEDMEMBER\b\(/gi,CUBESET:/\bCUBESET\b\(/gi,CUBESETCOUNT:/\bCUBESETCOUNT\b\(/gi,CUBEVALUE:/\bCUBEVALUE\b\(/gi,COUNTIFS:/\bCOUNTIFS\b\(/gi,IFERROR:/\bIFERROR\b\(/gi,SUMIFS:/\bSUMIFS\b\(/gi,ACOT:/\bACOT\b\(/gi,ACOTH:/\bACOTH\b\(/gi,AGGREGATE:/\bAGGREGATE\b\(/gi,ARABIC:/\bARABIC\b\(/gi,BASE:/\bBASE\b\(/gi,"BETA.DIST":/\bBETA\.DIST\b\(/gi,"BETA.INV":/\bBETA\.INV\b\(/gi,"BINOM.DIST":/\bBINOM\.DIST\b\(/gi,"BINOM.DIST.RANGE":/\bBINOM\.DIST\.RANGE\b\(/gi,"BINOM.INV":/\bBINOM\.INV\b\(/gi,BITAND:/\bBITAND\b\(/gi,BITLSHIFT:/\bBITLSHIFT\b\(/gi,BITOR:/\bBITOR\b\(/gi,BITRSHIFT:/\bBITRSHIFT\b\(/gi,BITXOR:/\bBITXOR\b\(/gi,"CEILING.MATH":/\bCEILING\.MATH\b\(/gi,"CEILING.PRECISE":/\bCEILING\.PRECISE\b\(/gi,"CHISQ.DIST":/\bCHISQ\.DIST\b\(/gi,"CHISQ.DIST.RT":/\bCHISQ\.DIST\.RT\b\(/gi,"CHISQ.INV":/\bCHISQ\.INV\b\(/gi,"CHISQ.INV.RT":/\bCHISQ\.INV\.RT\b\(/gi,"CHISQ.TEST":/\bCHISQ\.TEST\b\(/gi,COMBINA:/\bCOMBINA\b\(/gi,CONCAT:/\bCONCAT\b\(/gi,"CONFIDENCE.T":/\bCONFIDENCE\.T\b\(/gi,"CONFIDENCE.NORM":/\bCONFIDENCE\.NORM\b\(/gi,COT:/\bCOT\b\(/gi,"COVARIANCE.P":/\bCOVARIANCE\.P\b\(/gi,"COVARIANCE.S":/\bCOVARIANCE\.S\b\(/gi,CSC:/\bCSC\b\(/gi,CSCH:/\bCSCH\b\(/gi,DAYS:/\bDAYS\b\(/gi,DECIMAL:/\bDECIMAL\b\(/gi,ENCODEURL:/\bENCODEURL\b\(/gi,"ERF.PRECISE":/\bERF\.PRECISE\b\(/gi,"ERFC.PRECISE":/\bERFC\.PRECISE\b\(/gi,"EXPON.DIST":/\bEXPON\.DIST\b\(/gi,"F.DIST":/\bF\.DIST\b\(/gi,"F.DIST.RT":/\bF\.DIST\.RT\b\(/gi,"F.INV":/\bF\.INV\b\(/gi,"F.INV.RT":/\bF\.INV\.RT\b\(/gi,FILTERXML:/\bFILTERXML\b\(/gi,"FLOOR.MATH":/\bFLOOR\.MATH\b\(/gi,"FLOOR.PRECISE":/\bFLOOR\.PRECISE\b\(/gi,FORMULATEXT:/\bFORMULATEXT\b\(/gi,GAMMA:/\bGAMMA\b\(/gi,"GAMMA.DIST":/\bGAMMA\.DIST\b\(/gi,"GAMMA.INV":/\bGAMMA\.INV\b\(/gi,"GAMMALN.PRECISE":/\bGAMMALN\.PRECISE\b\(/gi,"HYPGEOM.DIST":/\bHYPGEOM\.DIST\b\(/gi,IFNA:/\bIFNA\b\(/gi,IFS:/\bIFS\b\(/gi,IMCOSH:/\bIMCOSH\b\(/gi,IMCOT:/\bIMCOT\b\(/gi,IMCSCH:/\bIMCSCH\b\(/gi,IMSEC:/\bIMSEC\b\(/gi,IMSECH:/\bIMSECH\b\(/gi,IMSINH:/\bIMSINH\b\(/gi,IMTAN:/\bIMTAN\b\(/gi,ISFORMULA:/\bISFORMULA\b\(/gi,ISOWEEKNUM:/\bISOWEEKNUM\b\(/gi,"LOGNORM.DIST":/\bLOGNORM\.DIST\b\(/gi,"LOGNORM.INV":/\bLOGNORM\.INV\b\(/gi,MAXIFS:/\bMAXIFS\b\(/gi,MINIFS:/\bMINIFS\b\(/gi,"MODE.MULT":/\bMODE\.MULT\b\(/gi,"MODE.SNGL":/\bMODE\.SNGL\b\(/gi,MUNIT:/\bMUNIT\b\(/gi,"NEGBINOM.DIST":/\bNEGBINOM\.DIST\b\(/gi,"NORM.DIST":/\bNORM\.DIST\b\(/gi,"NORM.INV":/\bNORM\.INV\b\(/gi,"NORM.S.DIST":/\bNORM\.S\.DIST\b\(/gi,"NORM.S.INV":/\bNORM\.S\.INV\b\(/gi,NUMBERVALUE:/\bNUMBERVALUE\b\(/gi,PDURATION:/\bPDURATION\b\(/gi,"PERCENTILE.EXC":/\bPERCENTILE\.EXC\b\(/gi,"PERCENTILE.INC":/\bPERCENTILE\.INC\b\(/gi,"PERCENTRANK.EXC":/\bPERCENTRANK\.EXC\b\(/gi,"PERCENTRANK.INC":/\bPERCENTRANK\.INC\b\(/gi,PERMUTATIONA:/\bPERMUTATIONA\b\(/gi,PHI:/\bPHI\b\(/gi,"POISSON.DIST":/\bPOISSON\.DIST\b\(/gi,"QUARTILE.EXC":/\bQUARTILE\.EXC\b\(/gi,"QUARTILE.INC":/\bQUARTILE\.INC\b\(/gi,"RANK.AVG":/\bRANK\.AVG\b\(/gi,"RANK.EQ":/\bRANK\.EQ\b\(/gi,RRI:/\bRRI\b\(/gi,SECH:/\bSECH\b\(/gi,SHEET:/\bSHEET\b\(/gi,SHEETS:/\bSHEETS\b\(/gi,"STDEV.P":/\bSTDEV\.P\b\(/gi,"STDEV.S":/\bSTDEV\.S\b\(/gi,SWITCH:/\bSWITCH\b\(/gi,"T.DIST":/\bT\.DIST\b\(/gi,"T.DIST.2T":/\bT\.DIST\.2T\b\(/gi,"T.DIST.RT":/\bT\.DIST\.RT\b\(/gi,"T.INV":/\bT\.INV\b\(/gi,"T.INV.2T":/\bT\.INV\.2T\b\(/gi,TEXTJOIN:/\bTEXTJOIN\b\(/gi,UNICHAR:/\bUNICHAR\b\(/gi,UNICODE:/\bUNICODE\b\(/gi,"VAR.P":/\bVAR\.P\b\(/gi,"VAR.S":/\bVAR\.S\b\(/gi,WEBSERVICE:/\bWEBSERVICE\b\(/gi,"WEIBULL.DIST":/\bWEIBULL\.DIST\b\(/gi,XOR:/\bXOR\b\(/gi,"Z.TEST":/\bZ\.TEST\b\(/gi,XMATCH:/\bXLOOKUP\b\(/gi,XLOOKUP:/\bXLOOKUP\b\(/gi,RANDARRAY:/RANDARRAY\(/gi,SEQUENCE:/SEQUENCE\(/gi,IMAGE:/IMAGE\(/gi,SORTBY:/SORTBY\(/gi,UNIQUE:/UNIQUE\(/gi,ANCHORARRAY:/ANCHORARRAY\(/gi,SINGLE:/SINGLE\(/gi,LET:/\bLET\b\(/gi,LAMBDA:/\bLAMBDA\b\(/gi,MAP:/\bMAP\b\(/gi,REDUCE:/\bREDUCE\b\(/gi,SCAN:/\bSCAN\b\(/gi,MAKEARRAY:/\bMAKEARRAY\b\(/gi,BYCOL:/\bBYCOL\b\(/gi,BYROW:/\bBYROW\b\(/gi,ISOMITTED:/\bISOMITTED\b\(/gi,FILTER:{reg:/FILTER\(/gi,prefix:n="_xlfn._xlws."},SORT:{reg:/SORT\(/gi,prefix:n},TEXTBEFORE:/\bTEXTBEFORE\b\(/gi,TEXTAFTER:/\bTEXTAFTER\b\(/gi,TEXTSPLIT:/\bTEXTSPLIT\b\(/gi,VSTACK:/\bVSTACK\b\(/gi,HSTACK:/\bHSTACK\b\(/gi,TOROW:/\bTOROW\b\(/gi,TOCOL:/\bTOCOL\b\(/gi,WRAPROWS:/\bWRAPROWS\b\(/gi,WRAPCOLS:/\bWRAPCOLS\b\(/gi,TAKE:/\bTAKE\b\(/gi,DROP:/\bDROP\b\(/gi,EXPAND:/\bEXPAND\b\(/gi,CHOOSEROWS:/\bCHOOSEROWS\b\(/gi,CHOOSECOLS:/\bCHOOSECOLS\b\(/gi},e.STEP_RATE={start:0,loadFileData:.1,loadSheetData:.4,loadSheetDataWithCalc:.3,startCalc:.2,loadSheetFormula:.4,loadSheetFormulaWithCalc:.3,parseFile:.1,end:1},M.Ji=function(t){return!t||""===t},M.Xi=function(t){return!t||" "===t},S=M,e.StringEx=S,k.qi=function(t){if(S.Ji(t))return 0;for(var e=0,n=0;n<t.length&&isNaN(parseInt(t[n],10));)n++;return(e=n<t.length?parseInt(t.substring(n),10):e)-1},k.$i=function(t){for(var e,n,i,r,o,a,e=0,n=t.length,i=0;i<n&&!(25<(a=(o=(r=t[i]).charCodeAt())-97))&&!((a=a<0?o-65:a)<0);i++)e=26*e+a+1;return--e},k.nr=function(t){var e,n,i,r,o,a;if(t<0)return"";if(!(e=k.er[t])){for(n=t,r=(i="").length,t+=1;0<t;t=Math.floor((t-1)/26))o=i.substring(0,r),a=i.substring(r),i=o+String.fromCharCode(65+(t-1)%26)+a;e=i.toString(),k.er[n]=e}return e},k.er=["A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"],w=k,e.IndexHelper=w,T.ar=function(t,e){if(!f(t)){var t=parseFloat(t);if(!isNaN(t))return t}return e},T.ur=function(t,e){return"1"===t||"true"===t||"0"!==t&&"false"!==t&&e},T.sr=function(t,e){if(!isNaN(t)){var t=parseInt(t,10);if(!isNaN(t))return t}return e},T.cr=function(t){return t=Array.isArray(t)?t:t?[t]:[]},T.lr=function(t,e){var n,i,r;if(t){for(n=e.split("."),i=t;n.length;){if(r=n.shift(),f(i[r]))return;i=i[r]}return i}},T.dr=function(t,e){return f(t)?e:t?"1":"0"},e.NodeHelper=T,N.vr=function(t){return t.split("/").pop().slice(0,-4)},N.mr=function(t){return P(t,function(t){return 0<=t.toLowerCase().indexOf("_xl")?t.replace(/_xlfn\.|_xlws\.|_xll\./gi,""):t})},N.gr=function(t,e,n){return t.split(e).join(n)},N.pr=function(t,e){var n,i,r,o,a,s;if(f(t)||""===t)return t;for(t.match(c)!==l&&(t=t.replace(n=/(_x00[0-1][0-9A-Fa-f]_)/g,function(t){return"_x005F"+t})),i=["_x0000_","_x0001_","_x0002_","_x0003_","_x0004_","_x0005_","_x0006_","_x0007_","_x0008_","_x0009_","_x000A_","_x000B_","_x000C_","_x000D_","_x000E_","_x000F_","_x0010_","_x0011_","_x0012_","_x0013_","_x0014_","_x0015_","_x0016_","_x0017_","_x0018_","_x0019_","_x001A_","_x001B_","_x001C_","_x001D_","_x001E_","_x001F_"],r=[],o=0;o<t.length;o++)a=t.charCodeAt(o),s=t[o],r.push(31<a||(10===a||13===a)&&e?s:i[a]);return r.join("")},N.addXLFNPrefix=function(t){return P(t,function(t){return t.replace(d,x)})},N.wr=function(t){return t.c_||(t.c_=[]),t.c_.length+1},N.Mr=function(t){return t+"."+g.XFileConstants.Cr},N.Sr=function(t,e){for(var n,i,r,n=0,i=t;n<i.length;n++)if((r=i[n]).Id===e)return r},N.Tr=function(t,e,n){var t,e,t,t=t&&N.Sr(t.c_,e);if(t)return e=N.vr(t.Target),(t=n.drawings)&&t[e]},N.Ir=function(t,e){var n=v.util.xr(t,o);if(n)return N.Tr(t.rels,n[h],e)},N.Nr=function(t){t.rels||(t.rels={n_:g.XFileConstants.Dr,xmlns:g.RelationshipConstants._r,c_:[]})},N.Er=function(t,e){var n,e,n,e,n=v.util.xr(e,o),e=n&&N.Sr(e.rels.c_,n[h]),n=e&&N.vr(e.Target);if(n)return t.drawings||(t.drawings={}),(e=t.drawings)[n]||(e[n]={n_:"wsDr",r_:[5,4],c_:[],rels:{n_:g.XFileConstants.Dr,xmlns:g.RelationshipConstants._r,c_:[]}}),e[n]},N.jr=function(t,e){var n,i,i,e,n=t.rels;v.util.xr(t,o)||(e.drawing++,i=N.wr(n),i=g.XFileConstants.Rr+i,e=g.XFileConstants.Wi+e.drawing,n.c_.push({n_:g.XFileConstants.Lr,Id:i,Type:g.RelationshipConstants.Fr,Target:"../drawings/"+e+"."+g.XFileConstants.Cr}),t.c_||(t.c_=[]),t.c_.push({n_:o,"r:id":i}),v.util.Pr(t,g.WorkSheetNodeOrder))},N.Gr=function(t,e,n){return N.Tr(t,e,n)},N.Ur=function(t,e,n){var n,e,n,e,i,n=v.util.xr(e,n||a),e=n&&N.Sr(e.rels.c_,n[h]),n=e&&N.vr(e.Target);if(n)return t.drawings||(t.drawings={}),(e=t.drawings)[n]||(e[n]={n_:"xml",r_:[10,11,12],c_:[i={n_:"shapelayout","v:ext":"edit",c_:[{n_:"idmap","v:ext":"edit",data:"1"}]}]}),e[n]},N.Hr=function(t,e,n){var i,e,r,r,e,i=t.rels;v.util.xr(t,n=n||a)||(e.vmlDrawing++,e=e.vmlDrawing,r=N.wr(i),r=g.XFileConstants.Rr+r,e=g.XFileConstants.zr+e,i.c_.push({n_:g.XFileConstants.Lr,Id:r,Type:g.RelationshipConstants.Vr,Target:"../drawings/"+e+"."+g.XFileConstants.Yr}),t.c_||(t.c_=[]),t.c_.push({n_:n,"r:id":r}))},N.Zr=function(t,e,n){var e,t,i,e,e,e=N.Sr(e.c_,t),t=e&&e.Target;if(t)return-1!==(e=(t=-1!==(e=t.lastIndexOf("/"))?t.substring(e+1):t).lastIndexOf("."))&&(i=t.substring(e+1)),{blob:e=(e=n.media[t])&&i?N.Wr(e,i):e,type:i}},N.Wr=function(t,e){var e=e;return"data:image/".concat(e="svg"===e?"svg+xml":e,";base64,").concat(t)},N.Qr=function(t){var e,n,i,e=t.indexOf(";base64,");if(-1!==e)return n=t.substring(e+8),{type:i=t.substring(11,e),base64Content:n}},N.Kr=function(t,e,n){var i,t,r,o,a,s,t,i=N.Qr(t);if(i){for(n.media||(n.media={}),"svg+xml"===(t=i.type)?t="svg":"x-icon"===t&&(t="png"),r="",o=Object.keys(n.media),a=0;a<o.length;a++)s=o[a],n.media[s]===i.base64Content&&(r=s);return r||(r=g.XFileConstants.Jr+Object.keys(n.media).length+"."+t,n.media[r]=i.base64Content),f(e)?r:(t=g.XFileConstants.Rr+N.wr(e),e.c_.push({n_:g.XFileConstants.Lr,Id:t,Type:g.RelationshipConstants.Xr,Target:"../media/"+r}),t)}},N.qr=function(t,e){var t=1024*(t+1)+1;return e&&(t+=e.c_.filter(function(t){return t.n_===g.XFileConstants.$r}).length),t},N.StringToByteArray=function(t){var e,n,i,e=[];if(t&&!(t instanceof Array))for(n=t.length,i=0;i<n;i+=2)e[i/2]=parseInt(t.substr(i,2),16);return e},N.no=function(){return"{xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx}".replace(/[xy]/g,function(t){var e=16*Math.random()|0,n;return("x"===t?e:3&e|8).toString(16)})},N.eo=function(t,e){var n,i,r,n=t.split("/"),i=e.split("/");for(n.pop();0<i.length;)if(".."===(r=i[0]))i.shift(),n.pop();else{if("."!==r)break;i.shift()}return n.concat(i).join("/")},N.io=function(t){var e;return f(t)||t.match(c)===l?t:t.replace(/(_x005[fF])?_x00([0-1][0-9A-Fa-f])_/g,function(t,e,n){var i=0;return n&&(i=parseInt(n,16)),e?"_x00"+n+"_":String.fromCharCode(i)}).replace(/(\r)+\n/g,"\r\n")},N.ro=function(){var t,e,n,i;try{e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol?"symbol":typeof t},n="object"===("undefined"==typeof global?"undefined":e(global))&&global&&global.Object===Object&&global,i="object"===("undefined"==typeof self?"undefined":e(self))&&self&&self.Object===Object&&self,t=n||i||Function("return this")()}catch(t){}return t},N.oo=function(){var t=N.ro();return t&&t.gcCultureInfo},N.ao=function(){var t=N.ro();return t&&t.gcCultureObj},N.uo=function(t){var e,n,n,e=!0,n=N.ro(),n=n&&n.GC&&n.GC.Spread&&n.GC.Spread.Formatter&&n.GC.Spread.Formatter.GeneralFormatter;if(t&&"="!==t[0]&&!f(n))try{new n(t)}catch(t){e=!1}return e},N.so=function(t,o){var a;return s.GC$.each(t,function(t,e){var n,i,r,n=e.rels&&e.rels.c_;if(n&&n.length)for(i=0;i<n.length;i++)if((r=N.vr(n[i].Target))===o)return a=t,!1}),a},N.co=function(t,e){var n,i,r,o,a,s,u,c;if(e&&e.rels&&e.c_&&e.c_.length){for(n=e.rels.c_,i={},r=0;r<n.length;r++)(o=n[r]).Type===g.RelationshipConstants.fo&&(i[o.Id]=N.vr(o.Target));for(r=0;r<e.c_.length;r++)if("sheets"===(a=e.c_[r]).n_)for(s=a.c_,u=0;u<s.length;u++)if(i[(c=s[u])[g.XFileConstants.Ki]]===t)return c.name}},N.ho=function(t,e){var n,i,r,o,a,s,u,c,f,l,h,d;for(e=v.util.vo(e),i=t.workbook,o=-1,s=0,u=r=v.util.xr(i,g.XFileConstants.mo).c_;s<u.length;s++)if(e===(c=u[s]).name){o=c[g.XFileConstants.Ki];break}if(-1!==o){for(l=0,h=f=v.util.go(i.rels,g.XFileConstants.Lr);l<h.length;l++)if(o===(d=h[l]).Id){a=N.vr(d.Target);break}a&&(n=t.sheets[a])}return n},N.po=function(t,e){var t=N.ho(t,e);return t&&v.util.xr(t,g.XFileConstants.bo)},N.yo=function(t,e,n,i,r){var o,a;f(i)||t&&((a=(a=(o=(o=t[e])||(t[e]={}))[n])||(o[n]={})).v=r.getTextIndex(i))},N.wo=function(t,e){return t&&t.openMode&r.OpenMode.lazy&&!f(e)},N.Mo=function(t){return t&&t.openMode&r.OpenMode.incremental},N.Co=function(t){return t&&t.fileType===r.OpenSaveFileType.excel},N.So=function(t,e,n,i){var r,o,a,s,r=t.getRowCount(),o=t.getColumnCount(),s=i&&i.dataEffectByInflate&&i.dataEffectByInflate[t.name()];r<e&&(a=new v.Range(r,-1,e-r,-1),t.setRowCount(e),s)&&Object.keys(s).forEach(function(t){s[t](a)}),o<n&&(a=new v.Range(-1,o,-1,n-o),t.setColumnCount(n),s)&&Object.keys(s).forEach(function(t){s[t](a)})},N.ume=function(a,t){var t=t.sheetColumnInfos,e=a.name(),t=t&&t[e],e=a.Ut,s=a.getColumnCount(),u=e.Q_(!1,3);t&&t.forEach(function(t){for(var e,n,i,r,o,e=t.columnSize,n=t.hidden,i=t.colStyle,r=Math.min(t.maxCol,s),o=t.minCol;o<=r;o++)N.cme(a,u,o-1,e,n,i)})},N.cme=function(t,e,n,i,r,o){i!==l&&e.setSize(n,i),r&&t.setColumnVisible(n,!1),o!==l&&t.setStyle(-1,n,o)},N.To=function(t,e,n,i){var r,o,a,s,e,a,o,s,e;void 0===n&&(n=2),o=e.from,a=e.to,s=e.pos,e=e.ext,a?N.Ege(t,a,n,i):e&&(o||s)&&(a={x:0,y:0},o?(N.Ege(t,o,n,i),a=N.Gce(t,o)):(a.x=u.ExcelHelper.emuToPixles(parseInt(s.x,10)),a.y=u.ExcelHelper.emuToPixles(parseInt(s.y,10))),a.x+=u.ExcelHelper.emuToPixles(parseInt(e.cx,10)),a.y+=u.ExcelHelper.emuToPixles(parseInt(e.cy,10)),s=(o=G(t,a.x,a.y)).rowIndex,e=o.colIndex,N.So(t,s+n,e+n,i))},N.Ege=function(t,e,n,i){var e=N.Uce(e),r=e.row,e=e.col;N.So(t,r+n,e+n,i)},N.Ao=function(n,t,i,r){t&&t.forEach(function(t){var e,t,e=t.row+(0<t.rowCount?t.rowCount:1),t=t.col+(0<t.colCount?t.colCount:1);i&&(e>=g.XmlConstants.Io||t>=g.XmlConstants.xo)||N.So(n,e,t,r)})},N.Uce=function(t){var e,n,i,r;function o(t,e){var t=parseInt(t.v_||0,10);return e?u.ExcelHelper.emuToPixles(t):t}return{row:e=o(t.row),col:n=o(t.col),rowOff:i=o(t.rowOff,!0),colOff:r=o(t.colOff,!0)}},N.Gce=function(t,e){var e,n,i,e=N.Uce(e),n,i;return{x:v.util.w0(t,0,e.col,!1)+e.colOff,y:v.util.w0(t,0,e.row,!0)+e.rowOff}},N.No=function(t){return t=Math.min(t,g.XmlConstants.xo-1),w.nr(t)},N.ko=function(t){return!t||f(t.fileType)||t.fileType===r.OpenSaveFileType.sjs},N.encodeNameFormula=function(t){if(t)return t.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;")},N.Oge=function(t,e){var e,n,i,r,o,a,t,e={n_:"definedName",c_:[N.addXLFNPrefix(N.encodeNameFormula(e))]},n=t.name,i=t.localSheetId,r=t.e,o=t.comment,a=t.isReadOnly,t=t.hidden;return f(n)||(e.name=v.util.vo(n)),f(i)||(e.localSheetId=i),f(r)||(e.e=r),f(o)||(e.comment=v.util.vo(o)),f(a)||(e.isReadOnly=a),f(t)||(e.hidden=t),e},C=N,e.Util=C,e.SJSStylePropsToStyleProps={wholeSlicerStyle:"wholeTable",headerStyle:"headerRow",wholeTableStyle:"wholeTable",headerRowStyle:"headerRow",footerRowStyle:"totalRow",highlightFirstColumnStyle:"firstColumn",highlightLastColumnStyle:"lastColumn",firstRowStripStyle:"firstRowStripe",secondRowStripStyle:"secondRowStripe",firstColumnStripStyle:"firstColumnStripe",secondColumnStripStyle:"secondColumnStripe",firstHeaderCellStyle:"firstHeaderCell",lastHeaderCellStyle:"lastHeaderCell",firstFooterCellStyle:"firstTotalCell",lastFooterCellStyle:"lastTotalCell",reportFilterLabelsStyle:"pageFieldLabels",reportFilterValuesStyle:"pageFieldValues",firstRowStripeStyle:"firstRowStripe",secondRowStripeStyle:"secondRowStripe",firstColumnStripeStyle:"firstColumnStripe",secondColumnStripeStyle:"secondColumnStripe",subtotalColumn1Style:"firstSubtotalColumn",subtotalColumn2Style:"secondSubtotalColumn",subtotalColumn3Style:"thirdSubtotalColumn",subtotalRow1Style:"firstSubtotalRow",subtotalRow2Style:"secondSubtotalRow",subtotalRow3Style:"thirdSubtotalRow",columnSubheading1Style:"firstColumnSubheading",columnSubheading2Style:"secondColumnSubheading",columnSubheading3Style:"thirdColumnSubheading",rowSubheading1Style:"firstRowSubheading",rowSubheading2Style:"secondRowSubheading",rowSubheading3Style:"thirdRowSubheading",blankRowStyle:"blankRow",grandTotalColumnStyle:"lastColumn",grandTotalRowStyle:"totalRow",firstHeaderCellStyleL:"firstHeaderCell",firstColumnStyle:"firstColumn"},e.protectionOptionsMap={allowSelectLockedCells:"selectLockedCells",allowSelectUnlockedCells:"selectUnlockedCells",allowFilter:"autoFilter",allowSort:"sort",allowInsertColumns:"insertColumns",allowInsertRows:"insertRows",allowDeleteColumns:"deleteColumns",allowDeleteRows:"deleteRows",allowEditObjects:"objects"},e.excelSupportProtectionOptions={formatCells:!0,formatColumns:!0,formatRows:!0,insertColumns:!0,insertRows:!0,insertHyperlinks:!0,deleteColumns:!0,deleteRows:!0,sort:!0,autoFilter:!0,pivotTables:!0},R.builtInNumberFormat=function(){return 0===(R.Md=R.Md?R.Md:{count:0}).count&&R.initBuiltNumberFormat(),R.Md},R.languageIndepedentNumberFormat=function(){return 0===(R.Ch=R.Ch?R.Ch:{count:0}).count&&R.initLanguageIndepedentNumberFormat(),R.Ch},R.formatCodeTable=function(){return R.Sh=R.Sh?R.Sh:[]},R.customNumberFormat=function(){return R.Th=R.Th?R.Th:{count:0}},R.getCultureInfo=function(){var t,e,t=C.ro(),e;return t&&t.GC&&t.GC.Spread&&t.GC.Spread.Common&&C.ro().GC.Spread.Common.CultureManager.getCultureInfo()||C.ao()},R.initBuiltNumberFormat=function(){var t,e,e,n,i,r,o,a,t=R.Md;if(t[0]="General",t[1]="0",t[2]="0.00",t[3]="#,##0",t[4]="#,##0.00",t[9]="0%",t[10]="0.00%",t[11]="0.00E+00",t[12]="# ?/?",t[13]="# ??/??",t[14]="m/d/yyyy",t[15]="d-mmm-yy",t[16]="d-mmm",t[17]="mmm-yy",t[18]="h:mm AM/PM",t[19]="h:mm:ss AM/PM",t[20]="h:mm",t[21]="h:mm:ss",t[22]="m/d/yyyy h:mm",t[37]="#,##0_);(#,##0)",t[38]="#,##0_);[Red](#,##0)",t[39]="#,##0.00_);(#,##0.00)",t[40]="#,##0.00_);[Red](#,##0.00)",t[45]="mm:ss",t[46]="[h]:mm:ss",t[47]="mm:ss.0",t[48]="##0.0E+0",t[49]="@",t.count=49,C.oo())if("zh-cn"===(e=C.oo()))t[14]="yyyy/m/d",t[17]="mmm-yy",t[22]="yyyy/m/d h:mm",t[27]='yyyy"\u5e74"m"\u6708"',t[28]='m"\u6708"d"\u65e5"',t[29]='m"\u6708"d"\u65e5"',t[30]="m-d-yy",t[31]='yyyy"\u5e74"m"\u6708"d"\u65e5"',t[32]='h"\u65f6"mm"\u5206"',t[33]='h"\u65f6"mm"\u5206"ss"\u79d2"',t[34]='\u4e0a\u5348/\u4e0b\u5348h"\u65f6"mm"\u5206"',t[35]='\u4e0a\u5348/\u4e0b\u5348h"\u65f6"mm"\u5206"ss"\u79d2"',t[36]='yyyy"\u5e74"m"\u6708"',t[39]="#,##0.00;-#,##0.00",t[40]="#,##0.00;[Red]-#,##0.00",t[50]='yyyy"\u5e74"m"\u6708"',t[51]='m"\u6708"d"\u65e5"',t[52]='yyyy"\u5e74"m"\u6708"',t[53]='m"\u6708"d"\u65e5"',t[54]='m"\u6708"d"\u65e5"',t[55]='\u4e0a\u5348/\u4e0b\u5348h"\u65f6"mm"\u5206"',t[56]='\u4e0a\u5348/\u4e0b\u5348h"\u65f6"mm"\u5206"ss"\u79d2"',t[57]='yyyy"\u5e74"m"\u6708"',t[58]='m"\u6708"d"\u65e5"',t.count=58;else if("ja-jp"===e)t[14]="yyyy/m/d",t[15]="dd-mmm-yy",t[16]="dd-mmm",t[17]="mmm-yy",t[22]="yyyy/mm/dd h:mm",t[27]="[$-411]ge.m.d",t[28]='[$-411]ggge"\u5e74"m"\u6708"d"',t[29]='[$-411]ggge"\u5e74"m"\u6708"d"',t[30]="m/d/yy",t[31]='yyyy"\u5e74"m"\u6708"d"\u65e5"',t[32]='h"\u6642"mm"\u5206"',t[33]='h"\u6642"mm"\u5206"ss"\u79d2"',t[34]='yyyy"\u5e74"m"\u6708"',t[35]='m"\u6708"d"\u65e5"',t[36]="[$-411]ge.m.d",t[38]="#,##0;[Red]-#,##0",t[39]="#,##0.00;-#,##0.00",t[40]="#,##0.00;[Red]-#,##0.00",t[50]="[$-411]ge.m.d",t[51]='[$-411]ggge"\u5e74"m"\u6708"d"\u65e5"',t[52]='yyyy"\u5e74"m"\u6708"',t[53]='m"\u6708"d"\u65e5"',t[54]='[$-411]ggge"\u5e74"m"\u6708"d"\u65e5"',t[55]='yyyy"\u5e74"m"\u6708"',t[56]='m"\u6708"d"\u65e5"',t[57]="[$-411]ge.m.d",t[58]='[$-411]ggge"\u5e74"m"\u6708"d"\u65e5"',t.count=58;else if(n=(e=R.getCultureInfo())&&e.LocalNumberFormat,!f(n)&&!Array.isArray(n)&&"object"==typeof n){for(i in n)isNaN(Number(i))||(r=n[i],C.uo(r)&&(t[i]=n[i]));for(i in o=0,t)isNaN(Number(i))||o<(a=Number(i))&&(o=a);t.count=o}},R.initLanguageIndepedentNumberFormat=function(){var t=R.Ch;t[27]="m/d/yyyy",t[28]="m/d/yyyy",t[29]="m/d/yyyy",t[30]="m/d/yyyy",t[31]="m/d/yyyy",t[32]="h:mm:ss",t[33]="h:mm:ss",t[34]="m/d/yyyy",t[35]="m/d/yyyy",t[36]="m/d/yyyy",t[50]="m/d/yyyy",t[51]="m/d/yyyy",t[52]="m/d/yyyy",t[53]="m/d/yyyy",t[54]="m/d/yyyy",t[55]="m/d/yyyy",t[56]="m/d/yyyy",t[57]="m/d/yyyy",t[58]="m/d/yyyy"},R.getFormatCode=function(t){var e,n,i,r,t,o,t,e=R.builtInNumberFormat(),n=R.customNumberFormat(),i=R.languageIndepedentNumberFormat(),r=t.numberFormatIndex;return t.numberFormat?(o=(t=t.numberFormat).numberFormatId,t=t.numberFormatCode,e[o]&&e[o]!==t?e[o]=t:(n[t]||(n[t]=o,n.count++),t)):e[r]||i[r]||"General"},R.getFormatId=function(t){var e,n,i,r,o,a,s,u,e=R.Ah();if(e[t])return e[t];if(i=R.builtInNumberFormat())for(r in i)if(i[r]===t)return n={isBuiltIn:!0,id:parseInt(r,10)},e[t]=n;if((o=R.customNumberFormat())&&o[t])return n={isBuiltIn:!1,id:o[t]},e[t]=n;if((a=0)<o.count){for(u in s=0,o)o[u]>s&&(s=o[u]);a=s}return R.Ih++,a=Math.max(R.Ih,a)+1,n={isBuiltIn:!1,id:o[t]=a}},R.Ah=function(){return R.xh=R.xh?R.xh:{}},R.resetBuiltInNumberFormat=function(){R.Md={count:0},R.Ch={count:0}},R.Sh=null,R.xh=null,R.Md={count:0},R.Ch={count:0},R.Th={count:0},R.Ih=170,e.ExtendedNumberFormatHelper=R},"./dist/core/excel-io-util/excel-helper.js":function(t,e){"use strict";function n(t,e){var e=Math.pow(10,e);return Math.round(t*e)/e}var i;function r(){}Object.defineProperty(e,"__esModule",{value:!0}),e.ExcelHelper=void 0,r.pointToPixel=function(t){return n(96*t/72,2)},r.pixelToPoint=function(t){return 72*t/96},r.emuToPixles=function(t,e){return n(96*t/914400,e||2)},r.pixelToEMU=function(t){return Math.round(914400*t/96)},r.getActualColumnWidth=function(t,e,n){for(var i,r,i=0,r=e;r<n;r++)t.getColumnVisible(r)&&(i+=t.Do(r,3));return i},r.getActualRowHeight=function(t,e,n){for(var i,r,i=0,r=e;r<n;r++)t.getRowVisible(r)&&(i+=t._o(r,3));return i},r.getImageContent=function(t,e){var n,i,i,n="png",i=t.lastIndexOf(".");return"svg"===(n=-1!==i?t.substr(i+1):n)&&(n="svg+xml"),(i=e(t,!0))?"data:image/"+n+";base64,"+i:null},e.ExcelHelper=r},"./dist/core/excel-io-util/excel-style.js":function(t,e){"use strict";var n,e;Object.defineProperty(e,"__esModule",{value:!0}),e.ExcelBorderStyle=void 0,(e=n=e.ExcelBorderStyle||(e.ExcelBorderStyle={}))[e.none=0]="none",e[e.thin=1]="thin",e[e.medium=2]="medium",e[e.dashed=3]="dashed",e[e.dotted=4]="dotted",e[e.thick=5]="thick",e[e.double=6]="double",e[e.hair=7]="hair",e[e.mediumDashed=8]="mediumDashed",e[e.dashDot=9]="dashDot",e[e.mediumDashDot=10]="mediumDashDot",e[e.dashDotDot=11]="dashDotDot",e[e.mediumDashDotDot=12]="mediumDashDotDot",e[e.slantDashDot=13]="slantDashDot"},"./dist/core/excel-io-util/excel-types.js":function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.WorkSheetNodeOrder=e.WorkbookNodeOrder=e.RelationshipConstants=e.XFileConstants=e.XmlConstants=void 0,e.XmlConstants={xo:16384,Io:1048576},e.XFileConstants={Eo:"_rels",jo:"/xl",Oo:"[Content_Types].xml",Rr:"rId",Ki:"r:id",Dr:"Relationships",Lr:"Relationship",Qi:"legacyDrawing",Ro:"legacyDrawingHF",Bo:"AlternateContent",Lo:"Choice",Fo:"controls",Po:"control",$r:"shape",Go:"bin",Uo:"application/vnd.openxmlformats-officedocument.spreadsheetml.printerSettings",Ho:"rels",zo:"application/vnd.openxmlformats-package.relationships+xml",Vo:"application/vnd.openxmlformats-officedocument.spreadsheetml.sharedStrings+xml",Yo:"application/vnd.openxmlformats-officedocument.spreadsheetml.styles+xml",Zo:"application/vnd.openxmlformats-officedocument.theme+xml",Wo:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet.main+xml",Qo:"application/vnd.openxmlformats-officedocument.spreadsheetml.worksheet+xml",Ko:"application/vnd.openxmlformats-officedocument.spreadsheetml.externalLink+xml",Jo:"application/vnd.openxmlformats-officedocument.spreadsheetml.table+xml",Xo:"application/vnd.openxmlformats-officedocument.drawing+xml",qo:"application/vnd.openxmlformats-officedocument.drawingml.chart+xml",$o:"application/vnd.ms-office.chartex+xml",ta:"application/vnd.ms-office.chartstyle+xml",na:"application/vnd.ms-office.chartcolorstyle+xml",ia:"application/vnd.openxmlformats-officedocument.drawingml.chartshapes+xml",ra:"application/vnd.openxmlformats-officedocument.drawingml.diagramColors+xml",oa:"application/vnd.openxmlformats-officedocument.drawingml.diagramData+xml",aa:"application/vnd.ms-office.drawingml.diagramDrawing+xml",ua:"application/vnd.openxmlformats-officedocument.drawingml.diagramLayout+xml",sa:"application/vnd.openxmlformats-officedocument.drawingml.diagramStyle+xml",ca:"application/vnd.openxmlformats-officedocument.spreadsheetml.comments+xml",fa:"application/vnd.ms-excel.threadedcomments+xml",la:"application/vnd.ms-excel.person+xml",ha:"application/vnd.openxmlformats-officedocument.spreadsheetml.pivotCacheDefinition+xml",da:"application/vnd.openxmlformats-officedocument.spreadsheetml.pivotCacheRecords+xml",va:"application/vnd.openxmlformats-officedocument.spreadsheetml.pivotTable+xml",ma:"application/vnd.ms-excel.slicer+xml",ga:"application/vnd.ms-excel.slicerCache+xml",pa:"application/vnd.ms-excel.timeline+xml",ba:"application/vnd.ms-excel.timelineCache+xml",ya:"application/vnd.ms-office.vbaProject",wa:"application/vnd.openxmlformats-officedocument.vmlDrawing",Ma:"application/vnd.ms-excel.controlproperties+xml",SrV:"application/vnd.openxmlformats-officedocument.spreadsheetml.calcChain+xml",zge:"application/vnd.ms-excel.rdrichvaluetypes+xml",Yge:"application/vnd.ms-excel.rdrichvaluestructure+xml",Zge:"application/vnd.ms-excel.rdrichvalue+xml",Wge:"application/vnd.ms-excel.rdrichvaluewebimage+xml",gee:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheetMetadata+xml",Cr:"xml",Yr:"vml",Ca:"application/xml",Sa:"jpg",Ta:"image/jpg",Aa:"tiff",Ia:"image/tiff",xa:"jpeg",Na:"image/jpeg",ka:"svg",Da:"image/svg+xml",_a:"png",Ea:"image/png",ja:"bmp",Oa:"image/bmp",Ra:"gif",Ba:"image/gif",La:"emf",Fa:"image/x-emf",Pa:"wmf",Ga:"image/x-wmf",Ua:"drawings",zr:"vmlDrawing",Ha:"/xl/charts",za:"/xl/drawings",Va:"/xl/persons",Ya:"/xl/media",Za:"/xl/threadedComments",Wa:"/xl/worksheets",Qa:"/xl/tables",Ka:"/xl/slicers",Ja:"/xl/slicerCaches",Xa:"/xl/timelines",qa:"/xl/timelineCaches",$a:"/xl/ctrlProps",tu:"externalLink",nu:"/xl/externalLinks",eu:"/xl/pivotCache",iu:"/xl/pivotTables",Qge:"/xl/richData",Kge:"rdRichValueTypes.xml",Jge:"rdRichValueWebImage.xml",Xge:"rdrichvalue.xml",qge:"rdrichvaluestructure.xml",mo:"sheets",ru:"sheet",ou:"comments",au:"chart",uu:"chartEx",su:"style",cu:"person",fu:"colors",Wi:"drawing",lu:"ctrlProp",hu:"threadedComment",Jr:"image",du:"table",vu:"slicer",mu:"slicerCache",gu:"timeline",pu:"timelineCache",bu:"pivotCacheDefinition",yu:"pivotCache",wu:"pivotCacheRecords",Mu:"pivotTable",Cu:"External",Su:"sheetPr",Tu:"dimension",Au:"extLst",Iu:"mergeCells",xu:"mergeCell",Nu:"hyperlinks",ku:"hyperlink",Du:"sheetViews",_u:"sheetFormatPr",Eu:"cols",bo:"sheetData",fQt:"sortState",ju:"conditionalFormatting",Ou:"dataValidations",Ru:"dataValidation",Bu:"tableParts",Lu:"/xl/sharedStrings.xml",Fu:"/xl/theme/theme1.xml",Pu:"/xl/worksheets",Gu:"/xl/workbook.xml",Uu:"/docProps/core.xml",Hu:"/docProps/app.xml",zu:"/docProps/custom.xml",Vu:"/xl/styles.xml",Yu:"/xl/theme/theme1.xml",Zu:"metadata.xml",$ge:"calcChain.xml",Wu:"/xl/_rels/workbook.xml.rels",Qu:"http://schemas.openxmlformats.org/spreadsheetml/2006/main",Ku:"http://schemas.openxmlformats.org/markup-compatibility/2006",Ju:"http://schemas.openxmlformats.org/drawingml/2006/spreadsheetDrawing",Xu:"http://schemas.openxmlformats.org/drawingml/2006/main",qu:"http://schemas.microsoft.com/office/spreadsheetml/2009/9/ac",$u:"x14ac",ts:"x14ac xr xr2 xr3",ns:"xr",os:"http://schemas.microsoft.com/office/spreadsheetml/2014/revision",as:"http://schemas.microsoft.com/office/spreadsheetml/2015/revision2",us:"http://schemas.microsoft.com/office/spreadsheetml/2016/revision3",ss:"http://schemas.openxmlformats.org/officeDocument/2006/relationships",fs:"http://schemas.openxmlformats.org/package/2006/content-types",_r:"http://schemas.openxmlformats.org/package/2006/relationships",ls:"http://schemas.openxmlformats.org/drawingml/2006/main",hs:"http://schemas.microsoft.com/office/drawing/2010/main",vs:"http://schemas.microsoft.com/office/drawing/2016/SVG/main",ms:"http://schemas.microsoft.com/office/spreadsheetml/2009/9/main",ps:"http://schemas.microsoft.com/office/excel/2006/main",bs:"http://schemas.openxmlformats.org/markup-compatibility/2006",ys:"http://schemas.microsoft.com/office/spreadsheetml/2009/9/main",ws:"http://schemas.openxmlformats.org/spreadsheetml/2006/main",Ms:"http://schemas.microsoft.com/office/spreadsheetml/2010/11/main",Cs:"http://schemas.microsoft.com/office/spreadsheetml/2018/calcfeatures",Ss:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheetMetadata+xml",Ts:"http://schemas.microsoft.com/office/spreadsheetml/2017/dynamicarray",As:"http://schemas.microsoft.com/office/spreadsheetml/2017/richdata",Is:"http://schemas.microsoft.com/office/spreadsheetml/2018/threadedcomments",xs:"http://schemas.microsoft.com/office/spreadsheetml/2018/threadedcomments",Ns:"http://schemas.microsoft.com/office/spreadsheetml/2014/revision",ks:"http://schemas.openxmlformats.org/package/2006/metadata/core-properties",Ds:"http://purl.org/dc/elements/1.1/",_s:"http://purl.org/dc/terms/",Es:"http://purl.org/dc/dcmitype/",js:"http://www.w3.org/2001/XMLSchema-instance",Os:"application/vnd.openxmlformats-package.core-properties+xml",Ls:"http://schemas.openxmlformats.org/officeDocument/2006/extended-properties",Fs:"http://schemas.openxmlformats.org/officeDocument/2006/docPropsVTypes",Ps:"application/vnd.openxmlformats-officedocument.extended-properties+xml",Gs:"http://schemas.openxmlformats.org/officeDocument/2006/custom-properties",Us:"http://schemas.openxmlformats.org/officeDocument/2006/docPropsVTypes",Hs:"application/vnd.openxmlformats-officedocument.custom-properties+xml"},e.RelationshipConstants={zs:"rId",_r:"http://schemas.openxmlformats.org/package/2006/relationships",Vs:"http://schemas.openxmlformats.org/package/2006/relationships/metadata/core-properties",Ys:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/extended-properties",Zs:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/custom-properties",Ws:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/officeDocument",Qs:"http://purl.oclc.org/ooxml/officeDocument/relationships/officeDocument",Ks:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/styles",Js:"http://purl.oclc.org/ooxml/officeDocument/relationships/styles",fo:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/worksheet",Xs:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/sharedStrings",qs:"http://purl.oclc.org/ooxml/officeDocument/relationships/sharedStrings",$s:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/theme",tc:"http://purl.oclc.org/ooxml/officeDocument/relationships/theme",ec:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/pivotCacheDefinition",ic:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/pivotCacheRecords",oc:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/pivotTable",uc:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/externalLink",fc:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/externalLinkPath",lc:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/table",hc:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/comments",Vr:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/vmlDrawing",dc:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/ctrlProp",vc:"http://purl.oclc.org/ooxml/officeDocument/relationships/extendedProperties",Fr:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/drawing",gc:"http://purl.oclc.org/ooxml/officeDocument/relationships/drawing",pc:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/hyperlink",Xr:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/image",bc:"http://purl.oclc.org/ooxml/officeDocument/relationships/image",yc:"http://schemas.microsoft.com/office/2007/relationships/slicer",wc:"http://schemas.microsoft.com/office/2007/relationships/slicerCache",Mc:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/chart",Cc:"http://schemas.microsoft.com/office/2014/relationships/chartEx",Sc:"http://purl.oclc.org/ooxml/officeDocument/relationships/chart",Tc:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/chartUserShapes",Ac:"http://schemas.microsoft.com/office/2011/relationships/chartColorStyle",Ic:"http://schemas.microsoft.com/office/2011/relationships/chartStyle",xc:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/sheetMetadata",zge:"http://schemas.microsoft.com/office/2017/06/relationships/rdRichValueTypes",Yge:"http://schemas.microsoft.com/office/2017/06/relationships/rdRichValueStructure",n2e:"http://schemas.microsoft.com/office/2017/06/relationships/rdRichValue",Wge:"http://schemas.microsoft.com/office/2020/07/relationships/rdRichValueWebImage",SrV:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/calcChain",Nc:"http://schemas.microsoft.com/office/2011/relationships/timeline",kc:"http://schemas.microsoft.com/office/2011/relationships/timelineCache"},e.WorkbookNodeOrder=["bookViews",e.XFileConstants.mo,"externalReferences","definedNames","calcPr","pivotCaches","extLst"],e.WorkSheetNodeOrder=[e.XFileConstants.Su,e.XFileConstants.Tu,e.XFileConstants.Du,e.XFileConstants._u,e.XFileConstants.Eu,e.XFileConstants.bo,"sheetProtection","autoFilter",e.XFileConstants.fQt,e.XFileConstants.Iu,e.XFileConstants.ju,e.XFileConstants.Ou,e.XFileConstants.Nu,"printOptions","pageMargins","pageSetup","headerFooter","rowBreaks","colBreaks","picture","drawing",e.XFileConstants.Qi,e.XFileConstants.Ro,e.XFileConstants.Po,e.XFileConstants.Bo,e.XFileConstants.Bu,e.XFileConstants.Au]},"./dist/core/excel-io-util/range-parser.js":function(t,e,n){"use strict";var i,r,c,s,f,l,o,a;function h(t){return-1===t.col||-1===t.colCount}function d(t){return-1===t.row||-1===t.rowCount}function u(){}Object.defineProperty(e,"__esModule",{value:!0}),e.range_parser=void 0,i=n("Common"),r=n("./dist/core/excel-io-util/excel-types.js"),c=n("./dist/core/excel-io-util/common.js"),s=n("./dist/core/util/common.js"),f=r.XmlConstants.Io,l=r.XmlConstants.xo,o=i.Common.lt.ht,u.Dc=function(t,e){var n,i,n=[];return o(t)||(i=t.replace(/('.+')/g,"").split(" ")).forEach(function(t){var t=u._c(t,e);!t||t.row>f||t.col>l||t.rowCount>f||t.col>l||n.push(t)}),n},u._c=function(t,e){var n,i,i,r,o,i,a,a,t,n=(0,s.Ec)(0,0,0,0),i=t.indexOf("!");if(1===(i=(i=(t=-1<i?t.substr(i+1):t).split("$").join("")).split(":")).length){if(a=i[0],r=c.IndexHelper.qi(a),o=c.IndexHelper.$i(a),-1===r&&-1===o)return null;n.row=r,n.col=o,n.rowCount=1,n.colCount=1}else 2===i.length&&(a=i[0],t=i[1],r=c.IndexHelper.qi(a),o=c.IndexHelper.$i(a),i=c.IndexHelper.qi(t),a=c.IndexHelper.$i(t),n.row=r,n.col=o,n.rowCount=i-r+1,n.colCount=a-o+1,e||0!==r||n.rowCount!==f||(n.row=-1,n.rowCount=-1),e||0!==o||n.colCount!==l||(n.col=-1,n.colCount=-1));return n},u.jc=function(t,e){var e,n,i,r,t,o;if(t)return e=e?"$":"",n=t.row,i=t.col,r=t.rowCount,t=t.colCount,o=c.IndexHelper.nr(i),1===r&&1===t?e+o+e+(n+1):-1===n||-1===r?e+o+e+"1:"+e+c.IndexHelper.nr(i+t-1)+e+f:-1===i||-1===t?e+"A"+e+(n+1)+":"+e+c.IndexHelper.nr(l)+e+(n+r):0===r&&0===t?e+o+e+(n+1):e+o+e+(n+1)+":"+e+c.IndexHelper.nr(i+t-1)+e+(n+r)},u.Oc=function(t,e){var n,i,r,o;if(t){for(n=[],i=0,r=t;i<r.length;i++)o=r[i],n.push(u.jc(o,e));return n.join(" ")}},u.getRangeString=function(t){for(var e,n,i,r,o,a,s,u,s,e=[],n=0,i=t;n<i.length;n++)h(r=i[n])&&(r.col=0,r.colCount=l),d(r)&&(r.row=0,r.rowCount=f),o=r.row,a=r.row+r.rowCount-1,s=r.col,u=r.col+r.colCount-1,s=c.IndexHelper.nr(s)+(o+1),(1<r.rowCount||1<r.colCount)&&(s+=":"+c.IndexHelper.nr(u)+(1+a)),e.push(s);return e.join(" ")},e.range_parser=u},"./dist/core/lc/common.js":function(F,t,e){"use strict";var n,i,o,r,l,r,p,r,s,a,e,r,u,c,v,g,m,S,w,b,C,y,M,k,T,x,G,B,f,h,I;function _(){return I}function P(t,e){for(var n,i,r,o,a,s,i="",a=0,n=0;n<t.length;n++)a=Math.max(a,t[n].length);for(n=0;n<a;n++){for(e&&(r=""),s=0;s<t.length;s++)e?n>=t[s].length?r+="00":r+=t[s].charAt(n)+t[s].charAt(n+1):n<t[s].length&&(i+=t[s].charAt(n));e&&(o=parseInt(r,16),i+=String.fromCharCode(o),n++)}return i}function d(e,n,i){var t,r,o,a,t=P(["Lcnee","iesKy"]),r=I[t],o="QKAU";return s(r,{pK:"l6/zrbWoSbcLFwEetFh38rH3ErBZE9H+Cqix3R+wTlfA1wD5B+lUcCQn+EJ60I4RGrm0x1sFjkiLWwB0jAn6BWZv0W4WbqAKriOdeoivxDp1Wmjs3qkEDhvbsjPtfvwx2BHil6o+/tDrdMJQSGs18WZm2PoQLQuL+9VhZ4FNRHUQU3Jtioke/OZEGHJOdYVwvCGalzBad6QFOiVbDBQPePpS3++GJzOxN8SN/7lyS5/IdKiy3WJRaVGkB370+HbN6hKraDfUgReLX26yxRaKC/5aWnGAJ2NnWLoGyAGRcwT9dVjo4bcAZNrrA0U9JVKQxaSskhdv2p49XzJkltXx5w==",aC:"B1"},function(t){(a=N(t,o)).hl=!!r,a.m=r?a.m:-1,n.call(e,a),L(a,e,r,i)},function(){(a=N()).hl=!!r,a.m=r?a.m:-1,n.call(e,a),L(a,e,r,i)}),a}function N(s,u){var t,c,f,l,h,d,e,t={isVd:function(t){var e=this;return t=1===I.Workbook.lm||t,e.s&&!e.e&&(!e.adr||!!e.adr.dsr==!!t)}},d=z(),e=function(){var t,e,n,i,r,o,a;if(!s)return!1;if(!(t=s[y])||!t.length)return!1;for(i=0,r=t.length;i<r;i++)if(n=(e=t[i])&&e[k]===u){c=e[M];break}if(!n)return!1;if(s[B]&&(h=s[B]),s[G]){if(o=new Date,a=A(s[G]),l=Math.ceil((a-o)/864e5),f=l<=0)return!1}else l=void 0;return!!(d||!s[T]&&!s[x]||Y(s[T],s[x])||K(s[T],s[x]))};return t[m]=d,t.s=e(),t[v]=s?s[C]?-1:1:0,t[g]=c,(t[w]=f)||(t[S]=l),t[b]=h,t}function A(t){return new Date(R(t.substr(0,4))||0,R(t.substr(4,2))-1||0,R(t.substr(6,2))||0)}function R(t){return parseInt(t,10)}function L(t,e,n,i){var r,r,o,a,s,u,c,f,l,h,d,v;if(E(t)){if(t&&t.adr&&!0!==t.adr.dsr&&(r=t.adr.flg||[],o=t.m,a=t.d,I.Workbook.et(e,"adlc",{flg:r,checkRs:r={},m:o,d:a,fn:D}),void 0!==r.nwm)){if(t.wm=r.wm,t.nwm=r.nwm,r.dis){for(s=t.disL||[],u=0,c=r.dis;u<c.length;u++)f=c[u],s.push(P(["",f],!0));t.disL=s}if(r.state)for(l=0,h=r.state;l<h.length;l++)t[(d=h[l])[0]]=d[1]}n||(r={},o=t.m,a=t.d,(v=1)!==I.Workbook.lm&&I.Workbook.et(e,"adlc",{flg:[],checkRs:r,m:o,d:a,nl:1}),void 0!==r.nwm&&(t.wm=r.wm,t.nwm=r.nwm)),i||e.repaint&&!e.xT&&e.repaint()}else $(e,t)}function D(e,t,n){var i=["rs"];e&&t.forEach(function(t){var t=P(["",t],!0);e[t]&&e[t][n+i]&&e[t][n+i]()})}function j(t,e){var t,n,i,r,o;if(t&&0===t.indexOf("//")&&!((t=t.slice(2).split("/")).length<1))for(n=t[0],i=0,r=e.length;i<r;i++)if((o=e[i])===n)return 1}function O(t,e){for(var n,i,r,o,o,n=0,i=e.length;n<i;n++){if(o=!1,(r=(o=(r=e[n])&&0===r.lastIndexOf("*.",0)?!0:o)?r.slice(2):r)===t)return 1;if(o&&0<(o=t.indexOf("."+r))&&o===t.length-r.length-1)return 1}}function V(t,e){var n,i,r,o;if(t&&4===t.split(".").length)for(n=0,i=e.length;n<i;n++)if((r=e[n])&&0<(o=r.length-2)&&(r===t||".*"===r.substr(o)&&t.substr(0,o)===r.substr(0,o)&&c.test(t)))return 1}function Y(t,e){var n,i,n,i;return!!(Q()&&(n=a(f),i=a("1agFGc#UHbw5"),n=u[n]&&u[n][i])&&(n=n.toLowerCase(),i=t.split(","),t)&&j(n,i))}function K(t,e){var n,i,n,i,n=a(f),i=a("Zdg3Ga#UHbw5"),n=u[n]&&u[n][i];return!n||(n=n.toLowerCase(),i=t.split(","),t&&O(n,i))||!(!t||!V(n,i))}function z(){var t=a(f);return W(u[t])}function W(t){var e,n,e=a("VdgJHc#wJb59"),n=a("Zdg3Ga#UHbw5");return t&&(J(t[e])||Z(t[e])||X(t[n]))}function J(t){var e=a("MlSZto#Z");return t&&t===e}function Z(t){var e=a("yXbog&w");return t&&t===e}function Q(){var t,e,n,t,t=a(f),e=a("VdgJHc#wJb59"),n=a("Udg36Y#oUddV"),t=u[t];return t&&t[e]===n}function X(t){var e,n,i,e=a("4LJITMx8UMcA"),n=a("jOxo"),i=a("JYw3Gb4NOb6x");return t&&(t===e||t===n||t===i)}function E(t){return t&&(t.isVd(!1)||t.b&&!t.hl)}function q(n,t){var i,e,r,e,o,e,a,e,s,u,e=(I=t).Workbook.prototype,r=e.Hc;e.Hc=function(){var e=this;if(d(e,function(t){e.ls=t,i=t,e.ul=function(){d(e,function(t){e.ls=t,i=t})}}),!i||E(i))return r.apply(e,arguments)},e.nslc=function(){this.xU=!0},t.PivotTableManager&&(e=t.PivotTableManager.prototype,o=e._Qt,e._Qt=function(){o.apply(this,arguments),i||this.parent||d(this,function(t){i=t})}),e=t.Worksheet.prototype,a=e.Hc,e.Hc=function(){if(i||this.parent||d(this,function(t){i=t}),!i||E(i))return a.apply(this,arguments)},e=t.g7.prototype,s=e.jy,e.jy=function(t,e){s.apply(this,arguments),i&&(-1===i.m||!i.hl&&i.b||i.m&&i.nwm&&(1===i.m||1===i.m&&void 0===i.d))&&n(this.Mf,t,e,i)},u=e.cet,e.cet=function(t,e){u.apply(this,arguments),i&&(-1===i.m||!i.hl&&i.b)&&n(this.Mf,t,e,i)}}function $(t,e){var n,i;function r(){i.width=(0,o.GC$)(n).width(),i.height=(0,o.GC$)(n).height(),rt(i.getContext("2d"),i.width,i.height,e)}t.yoe||(t.yoe=!0,n=t.Ti,t.sheets=[],t.mp=[],t.dse=[],t.L0(),n&&(i=document.createElement("canvas"),n.appendChild(i),r(),(0,o.GC$)(window).bind("resize",function(){setTimeout(r,100)})))}function H(t){var e;return new n.Common.ResourceManager(i.SR).getResource()[t]}function tt(t){return 1===t.m&&!0===t.s}function et(t,e,n){n&&!tt(n)&&U(t,e,n,!0)}function U(t,e,n,i){var t,r,o,a,s,u,c,t,f,l,h,d,v,g,v,m,e,r,i,t=H(P([t,"s"])),r=1===I.Workbook.lm?H(P(["ld","se"])):H(P(["lr","su"])),o=it(t,e);for(r=it(r,e),o=(o=o.replace("{0}",n.d)).replace("{1}",r).replace("{1}",r),a=[],u=s=0;u<o.length;u++)"\r"!==o[u]&&"\n"!==o[u]||(a.push(o.substring(s,u)),"\r"===o[u]&&u<o.length-1&&"\n"===o[u+1]&&u++,s=u+1);if(s<o.length&&a.push(o.substring(s,o.length)),!0===i)return a;for(t=[],f=[],l=[],h=0,d=(c=n.wm||[]).length;h<d;h++)g=(v=c[h])[0],v=v[1],m=void 0,""!==(m=g instanceof Array?P(g,!0):P(["",g],!0))&&(0===v?l.push(m):1===v&&f.push(m));return(0<f.length||0<l.length)&&(t.push(""),e=P(p().ls11,!0),0<f.length&&(r=(r=p().ls9)instanceof Array?P(r,!0):P(["",r],!0),t.push(r.replace(/\{0\}/,f.join(e)))),0<l.length)&&(i=(i=p().ls10)instanceof Array?P(i,!0):P(["",i],!0),t.push(i.replace(/\{0\}/,l.join(e)))),1===n.m&&n.nwm?[].concat(t):n.wm&&0<n.wm.length?a.concat(t):a}function nt(t){return H(P([t,"sa"]))}function it(t,e){var n,i,r,o,a,n=!0,i="";if(t)if("string"==typeof t)(t=t.trim())&&(r=[t]);else if(Array.isArray(t)){for(o=!0,r=[],a=0;a<t.length;a++)i=t[a].trim(),r.push(i),o&&i&&(o=!1);o&&(r=null)}return r||(n=!1,r=e),P(r,n)}function rt(t,e,n,i){var r,o,a,s,u,c,f,r="16pt calibri";if(!i||!i.isVd(!1))for(a=U(o=i.hl?(!i.adr||!i.adr.dsr)&&i.e?"l5":"l4":"l3",h,i),l(t,r),t.fillStyle="black",t.fillRect(0,0,e,n),t.fillStyle="white",s=20,u=30,c=0;c<a.length;c++)f=a[c],t.fillText(f,20,u),u+=25}Object.defineProperty(t,"__esModule",{value:!0}),t.Moe=t.Toe=t.eG=t.Vi=t.Aoe=t.decode=void 0,n=e("Common"),i=e("./dist/core/core.ns.js"),o=e("./dist/core/util/domUtil.js"),r=e("./dist/core/util/common.js"),l=r.mt.bt,r=new n.Common.ResourceManager(i.SR),p=r.getResource.bind(r),r=e("./dist/core/lc/lcValidator.js"),s=r.Aoe,a=r.Ioe,e="object"==typeof global&&global&&global.Object===Object&&global,r="object"==typeof self&&self&&self.Object===Object&&self,u=e||r||Function("return this")(),c=/^[0-9.]+$/,v="m",g="n",m="b",S="d",w="e",b="adr",C=a("XRsZ"),y=a("HUkJ"),M=a("T&g"),k=a("Q&w"),T=a("GRz1"),x=a("XSzB"),G=a("XRwh"),B=a("WQs5"),f="JYx3Gb#8Pb5R",h=["Ivldlcneky","nai ies e."],t.decode=P,t.Aoe=d,t.Vi=q,t.eG=$,t.Toe=U,t.Moe=nt},"./dist/core/lc/lcRegister.js":function(t,e,n){"use strict";var v,e,g,n,i,r;function o(h){if(r=null,i[0])try{var d=i[0].jS;d&&d.Ti&&v.Aoe(d,function(t){var e,n,i,r,o,a,s,u,c,f,l;if(d.ls=t,(e=d.getActiveSheetOrSheetTab())&&(n=e._gi)!==g.SheetType.customSheetTab&&((o=(r=(i="number"==typeof n)?e.Mf:e).l)&&(t=o),h||o||t.b||-1!==t.m||!t.d||(t.s=!1,v.eG(d,t)),t.nwm))for(s=0,u=a=t.disL||[];s<u.length;s++)(f=r[c=u[s]])&&(l=f.adrs)&&l.apply(f),i&&n===g.SheetType[c]&&(l=e.adrs)&&l.apply(e)},!0)}finally{i=[]}}Object.defineProperty(e,"__esModule",{value:!0}),v=n("./dist/core/lc/releaseLc.js"),e=n("./dist/core/util/domUtil.js"),g=n("./dist/core/core.enum.js"),n=e.GC$.sd,i=[],e.GC$[n]=function(t,e){i.push(t),e?o(e):r=r||setTimeout(o,5e3*Math.random()+3e3)}},"./dist/core/lc/lcValidator.js":function(t){var e=(n=[function(t,P){!function(t){"use strict";var i,h,d,o,v,t,e,g,n,r;function a(t){var e,n;if("number"==typeof t)for(e=new Array(t),n=0;n<t;++n)e[n]=0;else e=t.slice(0);return(e.buffer=e).byteLength=e.length,"object"===(void 0===t?"undefined":i(t))&&t.buffer&&(e.buffer=t.buffer),e}function s(t,e,n,i){1!=t.length&&t.splice(n,1,i(t.splice(e,1,i(t[n]))[0]))}function u(t,e){var e,n,e=1<arguments.length&&void 0!==e?e:1,n=t.charCodeAt(0);return 65<=n&&n<=90?t.toLowerCase():97<=n&&n<=122?t.toUpperCase():48<=n&&n<=57?d(48+(n-48+10+e)%10):t}function c(t){for(var e,n,i,e=t.split(""),n=function t(e){return u(e,-1)},i=e.length-5;0<=i;i--)s(e,i+1,i+3,n),s(e,i,i+2,n);return e.join("")}function f(t){return t.split("").reverse().join("")}function l(t){var e,n,i,r,o,a,s,u,c,f,l,h,t,d,c=[],f="",d=v,h=t,l=h.length%3;if(0<l)for(;l++<3;)f+="=",h+="\0";for(l=0;l<h.length;l+=3)a=(r=(e=h.charCodeAt(l))<<16|(n=h.charCodeAt(l+1))<<8|(i=h.charCodeAt(l+2)))>>12&63,s=r>>6&63,u=63&r,c[l/3]=d.charAt(o=r>>18&63)+d.charAt(a)+d.charAt(s)+d.charAt(u);return t=(t=c.join("")).slice(0,t.length-f.length)+f}function m(t){for(var e,n,i,r,e,o,a,r,s,u,c,f,l,s=[],f=v,c=t,l=0;l<c.length;l+=4)r=f.indexOf(c.charAt(l)),e=f.indexOf(c.charAt(l+1)),o=f.indexOf(c.charAt(l+2)),a=f.indexOf(c.charAt(l+3)),s[l/4]=d(e=(r=r<<18|e<<12|o<<6|a)>>>16&255,n=r>>>8&255,i=255&r),64==a&&(s[l/4]=d(e,n)),64==o&&(s[l/4]=d(e));return u=s.join("")}function p(t){return(h&&window.atob||m)(t)}function S(t){return(h&&window.btoa||l)(t)}function w(t){return decodeURIComponent(Array.prototype.map.call(p(t),function(t){return"%"+("00"+t.charCodeAt(0).toString(16)).slice(-2)}).join(""))}function b(t){return S(encodeURIComponent(t).replace(/%([0-9A-F]{2})/g,function(t,e){return d(parseInt(e,16))}))}function C(t){var t,e;return t?(t=f(t=c(t)),e=Math.ceil(t.length/2),w(t=(t=(t=t.substr(e)+t.substr(0,e)).replace("#","=")).replace("&","=="))):""}function y(t){for(var e,n,i,r,e=p(t),n=e.length,i=new o(n),r=0;r<n;r++)i[r]=e.charCodeAt(r);return i.buffer}function M(t){for(var e,n,i,r,e=new ArrayBuffer(t.length),n=new o(e),i=0,r=t.length;i<r;i++)n[i]=t.charCodeAt(i);return e}function k(t){return d.apply(null,new o(t))}function T(t){return t.replace(/\+/g,"-").replace(/\//g,"_").replace(/\=+$/,"")}function x(t){for(var e,n,i,r,o,a,e=0,n=5381,i=0,r=t.length-1;0<=r;r--)e=(o=t.charCodeAt(r))+(e<<6)+(e<<16)-e,n=o+((n<<5)+n),i=o+((i<<5)-i),i&=i;return(a=(a=e^n^i)<0?~a:a).toString(16).toUpperCase()}function G(t){t&&JSON.parse(t)}function B(t,e){try{e="#"+e;var n=t.indexOf(e);if(-1<n)return{prefix:t.substring(0,n),licData:JSON.parse(C(t.substr(n+e.length)))}}catch(t){}return!1}function I(n){return"oncomplete"in n&&(n.then=function(t,e){n.resolve=t,n.reject=e},n.oncomplete=function(t){n.resolve(n.result)},n.onerror=function(){n.reject()}),n}Object.defineProperty(P,"__esModule",{value:!0}),i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},h="undefined"!=typeof window,d=String.fromCharCode,o=h&&window.Uint8Array||a,v="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",t="object"==(void 0===t?"undefined":i(t))&&t&&t.Object===Object&&t,e="object"==("undefined"==typeof self?"undefined":i(self))&&self&&self.Object===Object&&self,g=t||e,n=P.iDe=C,P.attorn=function t(e,n,i,r){var o,e,a,s,u,e,c,e,f,o=h?window.msCrypto||window.crypto:void 0,e=B(e,n.aC);return e?(a=e.licData,s=e.prefix+"#"+n.aC,u=k(y(b(s+JSON.stringify(a.D)))),e=C("JYx3Gb#8Pb5R"),c=C("VdgJHc#wJb59"),(!g[e]||!g[e][c]||location.protocol.match(/^https/i))&&o&&o.subtle?(e={alg:"PS256",e:"AQAB",kty:"RSA",n:T(n.pK)},e=window.msCrypto?M(JSON.stringify(e)):e,void I(o.subtle.importKey("jwk",e,f={name:"RSA-PSS",saltLength:32,hash:{name:"SHA-256"}},!1,["verify"])).then(function(t){I(o.subtle.verify(f,t,y(a.S),M(u))).then(function(t){return t?i(a.D):r()})},l)):l()):r();function l(){return x(s+JSON.stringify(a.D))===a.H?i(a.D):r()}}}.call(P,function(){return this}())}],i={},r.m=n,r.c=i,r.p="dist",r(0)),n,i;function r(t){var e;return(i[t]||(e=i[t]={exports:{},id:t,loaded:!1},n[t].call(e.exports,e,e.exports,r),e.loaded=!0,e)).exports}t.exports={Aoe:e.attorn,Ioe:e.iDe}},"./dist/core/lc/lr.gcn.js":function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ls11=e.ls10=e.ls9=e.ls8=e.ls7=e.ls6=e.ls5=e.ls4=e.ls3=e.ls2=e.ls1=e.lsde=e.lsru=void 0,e.lsru=["907f","e872"],e.lsde=["8b8b56","bea168"],e.ls1=["895b848457000000000000000000008868634e634f62676563300000678b4f72674e966757000000304e6500000063674e966d8b75903000008b60548b8b5390904e520000000000000000000000000000000000000000000030","7f896104ce205370726561644a5320683ca7f6d09b802f2f01020d0a2cc430482cc5502c307b317d0234f67b317d8843c5504bd52814020d0ae6c5a8e2f7d101aef63020696e666f2e7861406772617065636974792e636f6d02"],e.ls2=["895b848457000000000000000000008868634e634f626765633000004e650000006367524f0000005930","7f896104ce205370726561644a5320683ca7f6d09b802f2f01020d0a34f67b317d884369597b307d2902"],e.ls3=["67625263674f603000008f88000000000000000000008868634eff6097899951535f546c63674f603000004e6563674e968b4f7590300000595d8d4eff8b578d4e904e4e676263674f6030000059975e52ff8b5390904e520000000000000000000000000000000000000000000030","2a7e308843e16f020d0ad04c205370726561644a5320683ca7f60ca800819648d69708d58843e16f020d0a34f68843c550c4302814020d0a82f22d700cf7282d70aef62de57e8843e16f020d0a82002ea90cf7d101aef63020696e666f2e7861406772617065636974792e636f6d02"],e.ls4=["656563674f6030000059975e52ff8b5390904e520000000000000000000000000000000000000000000030","e0488843e16f020d0a82002ea90cf7d101aef63020696e666f2e7861406772617065636974792e636f6d02"],e.ls5=["895b848457000000000000000000008868634e634f626765633000004e6500000063675d8f67ff8b5390904e52000000000000000000000000000000000000000000000083535e5230","7f896104ce205370726561644a5320683ca7f6d09b802f2f01020d0a34f67b317d8843f2c71f0cf7d101aef63020696e666f2e7861406772617065636974792e636f6d20b7d62ea902"],e.ls6=["6772674e895b848457000000000000000000008868634e4e548b7572ff67535f51525363673000005997835f6b5f6367ff8b81750000000000000000000000000030","2c482c3a7f896104ce205370726561644a5320683ca7f6a7c1d528480c2ad6978d06d18843020d0a8200b797630f88430cf7f435203430302d3635372d3630303802"],e.ls7=["67625263674f60300000008f88000000000000000000008868634eff6097899951535f546c63674f60300000004e6563674e968b4f759030000000595d8d4eff8b578d4e904e4e676263674f603000000059975e52ff8b5390904e520000000000000000000000000000000000000000000030","2a7e308843e16f020d0a0ad04c205370726561644a5320683ca7f60ca800819648d69708d58843e16f020d0a0a34f68843c550c4302814020d0a0a82f22d700cf7282d70aef62de57e8843e16f020a0d0a82002ea90cf7d101aef63020696e666f2e7861406772617065636974792e636f6d02"],e.ls8=["656563674f603000000059975e52ff8b5390904e520000000000000000000000000000000000000000000030","e0488843e16f020d0a0a82002ea90cf7d101aef63020696e666f2e7861406772617065636974792e636f6d02"],e.ls9=["634eff0000000000006765636730","d2f61a7b307d202d200948884302"],e.ls10=["634eff00000000000065636730","d2f61a7b307d202d20e0884302"],e.ls11=["30","01"]},"./dist/core/lc/releaseLc.js":function(t,e,n){"use strict";var C,n,y,M,k;function i(e,t,n,i){var r,o,a,s,u,c,f,l,h,d,v,g,m,p,S,w,b,r=e.Fi(),o=203,a=e.parent,s="11pt calibri",u=i.hl&&i.isVd(!1)&&i.d,c=a&&a.xU,f="";for(u?l="l2":i.e?l="l5":i.hl&&!i.d?l="l6":h=C.Moe(l="l1"),r=r||e.Fi(),d=C.Toe(l,M,i),v=0,h&&d.forEach(function(t){v=k(v,e.Qt(t,s))}),e.l=d[0]?i:void 0,g=0;g<d.length&&(203<r.width||203<r.height)&&!c;g++)f=d[g],m=v||e.Qt(f,s),w=r.width-m-(p=10),b=r.height-10-(S=20)*(d.length-g),!t||n&&!n.intersect(w,b,m,20)||(t.save(),t.fillStyle="rgba(0, 0, 0, 0.5)",y(t,s),n&&(t.rect(n.x,n.y,n.width,n.height),t.clip(),t.beginPath()),t.fillText(f,w,20+b),f&&(e.l=i),t.restore())}function r(t){C.Vi(i,t)}function o(t,e){return C.decode(t,e)}Object.defineProperty(e,"__esModule",{value:!0}),e.eG=e.Aoe=e._pt=e.n1e=e.Vi=void 0,C=n("./dist/core/lc/common.js"),n=n("./dist/core/util/common.js"),y=n.mt.bt,M=["LcneNtFud\no edavldlcnekyt u pedSet.\neprr esaeaalbefreauto.\nfyuprhsdalcne orkyi nyu ucaecnimto mi.","ies o on\rYune ai ies e ornSra.hes\rTmoayky r vial o vlain\rI o ucae ies,yu e si orprhs ofraineal"],k=Math.max,e.Vi=r,e.n1e=o,e._pt=1,e.Aoe=C.Aoe,e.eG=C.eG},"./dist/core/util/basedialog.js":function(t,e,n){"use strict";var i,r,n,l,a,s,u,h,c,o,f,d,v,n,g,m,p;function S(t,e,n){this.Bc="gc-popup",this.Lc="gc-overlay",this.Fc=null;var i=this;i.Ti=t,i.Pc=n,i.Gc={position:"fixed",width:"100%",height:"100%",margin:0,padding:0,top:0,left:0,border:"none",zIndex:e=e||0,backgroundColor:"rgba(0,0,0,0)"},i.Uc={position:"absolute",padding:0,margin:0,height:"auto",zIndex:e+1,outline:"none"},i.Hc()}function w(t,e,n){var o=p.call(this,t,e,n)||this;return o.Mse=!1,o.Cse={mouseOriginalX:0,mouseOriginalY:0,domOriginalX:0,domOriginalY:0,domWidth:0,domHeight:0,parentRect:null,screenWidth:0,screenHeight:0},o.Sse=function(t){var e,n,t,n,i,t,r,i,t,e=o;e.Mse&&e.mouseInScreen(t.pageX-window.scrollX,t.pageY-window.scrollY)&&(n=t.pageX,t=t.pageY,i=n-(n=e.Cse).mouseOriginalX,t=t-n.mouseOriginalY,n.parentRect)&&(r=e.Wc[0],i=Math.max(0,n.domOriginalX+Math.min(i,n.screenWidth-n.domOriginalX-n.domWidth+(e.Pc?0:window.scrollX))),t=Math.max(0,n.domOriginalY+Math.min(t,n.screenHeight-n.domOriginalY-n.domHeight+(e.Pc?0:window.scrollY))),r.style.left="".concat(i,"px"),r.style.top="".concat(t,"px"))},o.Ise=function(){window.removeEventListener("mousemove",o.Sse),o.Mse=!1},o}i=this&&this.__extends||(m=function(t,e){return(m=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(t,e){t.__proto__=e}:function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])}))(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}m(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),Object.defineProperty(e,"__esModule",{value:!0}),e.Ase=e.zc=void 0,r=n("./dist/core/util/common.js"),n=n("./dist/core/util/domUtil.js"),l=n.GC$,a=r.util.En,s=r.util.Tt,u=r.util.vi,h=document,c=window,o=c.gcGlobal,f="touchstart",d="MSPointerDown",v="pointerdown",S.prototype.Hc=function(){var t=this;t.Yc(t.Zc)?t.Wc=l("#"+t.Zc):(t.Zc=t.Qc(),t.Kc=t.Lc+"-"+t.Zc,t.Jc=t.Bc+"-"+t.Zc,t.Wc=l(a("div")).addClass(t.Jc+" ui-widget").attr({id:t.Zc,tabIndex:-1}).css(t.Uc))},S.prototype.Qc=function(){for(var t,e,t=0,e="gc-dialog";this.Yc(e+t.toString());)t++;return e+t.toString()},S.prototype.Xc=function(){if(this.Wc)return this.Wc},S.prototype.qc=function(){return this.Ti||h.body},S.prototype.$c=function(t){var e=this,n=e.Wc;e.tf()||e.nf(),o.ef(),e.Yc(e.Zc)||(l(e.qc()).append(n),e.if(),n.css("display","none")),n.show(t)},S.prototype.rf=function(){return"block"===this.Wc.css("display")},S.prototype.close=function(){var t=this;t.af(),t.Yc(t.Zc)&&t.Wc.remove(),l("."+t.Jc).isVisible()||t.uf(),o.cf()},S.prototype.uf=function(){l("."+this.Kc).remove(),this.Fc=null},S.prototype.af=function(){var e=this.Zc;[f,d,v].forEach(function(t){l(h).unbind(t+"."+e)})},S.prototype.if=function(){var t,e,e,n,i,r,o,a,s,u,c,u,f,t=this.Wc,e=this.qc();0===t.length||(e=l(e).offset(),n=parseInt(t.css("left"),10)+e.left,i=parseInt(t.css("top"),10)+e.top,r=t.width(),o=t.height(),isNaN(n))||isNaN(i)||isNaN(r)||isNaN(o)||(c=(u=h.documentElement).clientWidth,u=u.clientHeight,(f=t[s=a=0].getBoundingClientRect()).left+r>c&&(s=f.left+r-c),f.top+o>u&&(a=f.top+o-u),(n<0||i<0||0<a||0<s)&&t.css({left:(n=(n-=s)<0?0:n)-e.left+"px",top:(i=(i-=a)<0?0:i)-e.top+"px"}))},S.prototype.Yc=function(t){return 0<l("#"+t).length},S.prototype.nf=function(){var n,e,t,i,r,o,n=this,e=n.Zc,t=l(a("div")).addClass(n.Kc),i=n.Wc;(n.Fc=t).css(n.Gc),l(n.qc()).append(t),(r=s&&s.mozilla)&&(o=(new Date).valueOf()),t.bind("mousedown",function(t){if(!n.Pc){var e;if(r)if((new Date).valueOf()-o<100)return;n.close(),r&&n.ff&&clearTimeout(n.ff)}u(t)}),t.bind("contextmenu",function(t){n.Pc&&u(t)}),i.bind("contextmenu",function(t){u(t)}),[f,d,v].forEach(function(t){l(h).bind(t+"."+e,function(t){var e=t.target;n.Fc&&!n.lf(e)&&(n.Pc||(r?n.ff=c.setTimeout(function(){n.close()},100):n.close()),u(t))})})},S.prototype.hf=function(t,e){for(var n=t;e&&e!==document.body;){if(e===n)return!0;e=e.parentNode}return!1},S.prototype.lf=function(t){return!!this.Wc&&this.hf(this.Wc.get(0),t)},S.prototype.tf=function(){return 0<l("."+this.Kc).length},e.zc=n=S,i(w,p=n),w.prototype.bindMoveEvent=function(t){var i,e,i=this,e=function(t){var e,n,t,t,e=i.Wc[0],n=i.Cse;n.mouseOriginalX=t.pageX,n.mouseOriginalY=t.pageY,t=e.getBoundingClientRect(),n.domOriginalX=t.left+(i.Pc?0:window.scrollX),n.domOriginalY=t.top+(i.Pc?0:window.scrollY),n.domWidth=t.width,n.domHeight=t.height,(t=e.offsetParent)?n.parentRect=t.getBoundingClientRect():"fixed"===e.style.position&&(n.parentRect=e.getBoundingClientRect()),n.screenWidth=window.innerWidth,n.screenHeight=window.innerHeight,i.Mse=!0,window.addEventListener("mousemove",i.Sse)};return t.addEventListener("mousedown",e),document.addEventListener("mouseup",i.Ise),function(){t.removeEventListener("mousedown",e),document.removeEventListener("mouseup",i.Ise)}},w.prototype.mouseInScreen=function(t,e){return 0<=t&&t<=this.Cse.screenWidth&&0<=e&&e<=this.Cse.screenHeight},e.Ase=w},"./dist/core/util/common.js":function(F,f,s){"use strict";var h,t,_,k,e,A,L,D,y,j,O,V,Y,d,K,T,z,W,J,t,Z,Q,l,v,X,q,$,tt,g,x,et,G,B,m,nt,S,it,rt,ot,at,st,ut,ct,ft,lt,ht,dt,vt,p,gt,mt,pt,St,wt,bt,Ct,yt,Mt,kt,Tt,xt,Gt,Bt,It,Pt,Nt,Rt,w,b,Et,Ht,u,Ut,Ft,_t,At,Lt,Dt,jt,Ot,_,Vt,Yt,Kt,zt,Wt,Jt,Zt,Qt,Xt,qt,$t,te,ee,ne,_,t,e,ie,re;function oe(t){return t!==g}function ae(t){return v.createElement(t)}function se(t){v.body&&v.body.insertBefore(t,x)}function ue(t,n,i){Object.defineProperty(t,n,{get:function(){return this._ps[n]},set:function(t){var e=this._ps[n];e!==t&&(this._ps[n]=t,i)&&i(n,t,e)},enumerable:!0})}function ce(t,e){var t;return t.style&&t.style.vertAlign?(t=D.W.V(e,1)).fontSize*lt+"px "+t.fontFamily:e}function fe(t){return t.preventDefault?(t.preventDefault(),t.stopPropagation()):(t.cancelBubble=!1,t.returnValue=!1),!1}function le(t){var e,n,i,e=!1;if(t)for(n=0;n<t.length;n++)if(11904<=(i=t.charCodeAt(n))&&i<12032||12288<=i&&i<40960||43360<=i&&i<43392||63744<=i&&i<64256){e=!0;break}return e}function he(t){return Math.random().toString(16).slice(-t)}function de(n){return function(t,e){return String.fromCharCode(parseInt(e,n))}}function ve(t){if(!t||"string"!=typeof t)return!1;var e;switch((t=t.toLowerCase())[0]){case"b":return 0===t.indexOf("background ");case"t":return 0===t.indexOf("text ");case"a":return 0===t.indexOf("accent ");case"h":return 0===t.indexOf("hyperlink");case"f":return 0===t.indexOf("followedhyperlink");default:return!1}}function ge(t,e,n){var i,r,o,a,i=0,o=t.split(" ");if(3<=o.length&&(i=parseFloat(o[2]),isNaN(i)||(i/=100)),"Background 1"===t.substring(0,12)&&(r=e?243:0),"Text 1"===t.substring(0,6)&&(r=e?241:1),"Background 2"===t.substring(0,12)&&(r=e?244:2),"Text 2"===t.substring(0,6)&&(r=e?242:3),"Accent 1"===t.substring(0,8)&&(r=4),"Accent 2"===t.substring(0,8)&&(r=5),"Accent 3"===t.substring(0,8)&&(r=6),"Accent 4"===t.substring(0,8)&&(r=7),"Accent 5"===t.substring(0,8)&&(r=8),"Accent 6"===t.substring(0,8)&&(r=9),"hyperlink"===t.substring(0,8)&&(r=10),(r="followedHyperlink"===t.substring(0,8)?11:r)!==g)return{n_:a=n||"color",theme:r,tint:i}}function me(t,e){var n=t.tint?Math.round(100*t.tint):0,t=+t.theme;return 0==t||243==t?"Background 1 "+n:1==t||241==t?"Text 1 "+n:2==t||244==t?"Background 2 "+n:3==t||242==t?"Text 2 "+n:4==t?"Accent 1 "+n:5==t?"Accent 2 "+n:6==t?"Accent 3 "+n:7==t?"Accent 4 "+n:8==t?"Accent 5 "+n:9==t?"Accent 6 "+n:10==t?"hyperlink":11==t?"followedHyperlink":void 0}function c(){}function pe(t){return Tt.getIndexedColor(+t.indexed)}function Se(t,e){var t,n,t=Tt.convertColorToHex(t);if(t)return{n_:n=e||"color",rgb:t}}function we(t,e){var n,i,r,o,a,o,n=0,i,r=document.createElement("canvas").getContext("2d");return r||(o=s("canvas"))&&o.createCanvas&&(r=(a=o.createCanvas(2,2)).getContext("2d")),r&&(r.font=t,n=(o=r.measureText(e)).emHeightAscent+o.emHeightDescent),n}function I(){}function be(t){t=t.toLowerCase();var t=/(chrome)[ \/]([\w.]+)/.exec(t)||/(webkit)[ \/]([\w.]+)/.exec(t)||/(opera)(?:.*version|)[ \/]([\w.]+)/.exec(t)||/(msie) ([\w.]+)/.exec(t)||t.indexOf("compatible")<0&&/(mozilla)(?:.*? rv:([\w.]+)|)/.exec(t)||[];return{browser:t[1]||"",version:t[2]||"0"}}function Ce(){var e,n,e=x,n=!1;try{new ActiveXObject("")}catch(t){e=t.name}try{n=!!new ActiveXObject("htmlfile")}catch(t){n=!1}return!(n="ReferenceError"===e||!1!==n)}function ye(){}function Me(t,e){var n=ae("span");return n.className=t,e&&(n.id=e),n.style.display="none",se(n),n}function ke(t,e,n,i){t.addEventListener(e,n,i)}function Te(t){var e,n,e=t.currentStyle,n=v.defaultView;return e=n&&n.getComputedStyle?n.getComputedStyle(t,""):e}function xe(t){var e,e,n,i,n,e,r,o,e=l.gcGlobal;0<e.vf||(16!==t.keyCode&&(e.mf=!0),(n=(e=Et.ai())&&e.gf)&&(i=y(n)).isVisible())||e&&e.rt&&e.rt.pf&&(e.rt.pf(t),e.isEditing()||(n=t.keyCode,e=t.ctrlKey,r=t.altKey,o=t.shiftKey,90!==n&&89!==n||!e||r?86!==n||!e||r||o||t.stopPropagation&&t.stopPropagation():fe(t)))}function Ge(t){var e,e,e=l.gcGlobal;0<e.vf||(e.mf=!1,(e=Et.ai())&&e.rt&&e.rt.bf&&e.rt.bf(t))}function Be(t){var e,n,e;0<l.gcGlobal.vf||(n=Et.ai())&&n.rt&&n.rt.yf&&n.rt.yf(t)}function Ie(t){var e,e,e=l.gcGlobal;0<e.vf||!0!==e.mf&&(e=Et.ai())&&e.rt&&e.rt.yf&&e.rt.yf(t)}function Pe(t){return v.all===g&&Et.ai()&&fe(t),!1}function n(){this.vf=0,this.wf=[],this.mf=!1,this.Hc()}function r(){}function Ne(t,e){this.x=t,this.y=e}function C(t,e,n,i){var r=this;r.x=t,r.y=e,r.width=n,r.height=i}function M(t,e,n,i){var r=this;r.row=t,r.rowCount=n,r.col=e,r.colCount=i}function Re(t,e,n,i){return new At(t,e,n,i)}function Ee(t,e){var n,i,r,t;if(t&&e){if(n=B(t.row,e.row),i=B(t.col,e.col),r=m(t.row+t.rowCount-1,e.row+e.rowCount-1),t=m(t.col+t.colCount-1,e.col+e.colCount-1),0<=n&&0<=i)return new At(n,i,r-n+1,t-i+1);if(0<=n)return new At(n,-1,r-n+1,-1);if(0<=i)return new At(-1,i,-1,t-i+1)}return new At(-1,-1,-1,-1)}function He(){}function i(){}function o(t){this.Mf=t}function P(){}function Ue(t){var e=t.Cf||{scaleX:1,scaleY:1,translateX:0,translateY:0,skewX:0,skewY:0,orgTranslateX:0,orgTranslateY:0};return t.Cf=e}function Fe(){}function _e(t,e){t&&(t.Sf=e)}function Ae(t,e){t&&(t.Tf=e)}function Le(t,e){t.Af=e}function De(t,e){t.If=e}function N(){}function R(){var t,t;return Kt.xf||(Kt.xf=ae("canvas").getContext("2d")),Kt.xf||(t=s("canvas"))&&t.createCanvas&&(t=t.createCanvas(2,2),Kt.xf=t.getContext("2d")),Kt.xf}function je(t){return h.Common.CultureManager.Fe().hse(t)}function E(t){for(var e=t.length-1;" "===t.charAt(e);)e--;return t=e!==t.length-1?t.substring(0,e+1):t}function Oe(t){var e,n,e=t instanceof Array?[]:{};for(n in t)t.hasOwnProperty(n)&&(e[n]="object"==typeof t[n]&&t[n]!==x?Oe(t[n]):t[n]);return e}function Ve(t,e,n,i,r){var o,a,s,u,c,f,l,h,d,v,h,o=[],a=r||R();if(a){for(u=n?(c=t.length*i,G(e/i)):(s=(c=b(a,a.font,t))/t.length,G(e/s));e<c&&t;)for(f=!1,l=u;;){if(t.length<l){o.push(t),t="";break}if(h=t.substring(0,l),d=n?l*i:b(a,a.font,h),(d="-"===h.charAt(h.length-1)?n?l*i:b(a,a.font,h)-b(a,a.font,"-"):d)===e||f&&d<e){o.push(h),t=t.substring(l),c-=d;break}if(e<d){if(1===h.length){(v=t.substring(h.length)).trim()?(o.push(h),t=t.substring(l),c-=d):(o.push(t),t="");break}--l,f=!0}else l+=h=1<=(h=n?(e-d)/i:(e-d)/s)?h:1}t&&-1===t.search(/^[ ]*$/)&&o.push(t)}return o}function Ye(t,e,n,i,r,o){var a,s,u,c,f,l,h,d,v,g,m,p,a=o||R();if(!a)return[t];for(s=[],c=e,f=[],l=u=0;l<t.length;l++)if(h=t[l].style&&t[l].style.font||r,d=w.vt(h),h=ce(t[l],h),t[l].text&&0<t[l].text.length?u+=i?d*t[l].text.length:b(a,h,t[l].text):u=0,u<c)f.push(t[l]);else for(u-=i?d*t[l].text.length:b(a,h,t[l].text),v=0,g=t[l].text.length;v<g;v++){if(n<(m=i?d:b(a,h,t[l].text.charAt(v)))&&0===v){0<f.length&&(s.push(f),f=[]),f.push({style:t[l].style,text:t[l].text.substring(0,1)}),s.push(f),f=[],(p=t[l].text.substring(1,t[l].text.length)).length&&t.splice(l+1,0,{style:t[l].style,text:p}),u=0,c=n;break}if(c<(u+=m)){f.push({style:t[l].style,text:t[l].text.substring(0,v)}),s.push(f),f=[],(p=t[l].text.substring(v,t[l].text.length)).length&&t.splice(l+1,0,{style:t[l].style,text:p}),u=0,c=n;break}v===g-1&&(f.push({style:t[l].style,text:t[l].text}),s.push(f),f=[],u=0,c=n)}return 0<f.length&&s.push(f),s}function Ke(t,e,n,i,r){var o,a,s,r,r,u,c,f,l,h,d,v,g,g,m,p,S,o=[],a=je(t),s=r||R();if(s){for(r=b(s,s.font,t),r=n?i:r/t.length,u=ut(e/r+"",10),h=l=f=c=0,v=!(d=[]);h<a.length;){if(!1===v){if(g=a[h],d.push(g),(f+=g.length)<u&&h<a.length-1){h++;continue}l=f,f=0}if(e<(g=n?d.join("").length*i:Kt.Wt(d.join(""),s.font,!0,s)))if(m=d.pop(),0===d.length){for(p=Ve(m,e,n,i,s),S=0;S<p.length-1;S++)o[c]=p[S],c++;1===p.length&&(o[c]=p[0],c++),2<=p.length?a[h]=p[p.length-1]:h++,v=!1}else v=!0,h--;else g<e&&!0===v||g===e?(v=!1,o[c]=E(d.join("")),c++,d=[],h++):g<e&&(h++,f=l)}0!==d.length&&(o[c]=E(d.join("")))}return o}function ze(t,e,n,i,r){var o,a,s,u,c,f,l,h,d,v,g,m,p,o=[],a=r||R();if(a)if(0===t.length)o.push({textLength:0,text:"",textInfos:[{style:{font:n},text:""}]});else{for(u=[],c=s=0;c<t.length;c++){for(f=t[c],d=h=l=0;d<f.length;d++)v=void 0,v=f[d].style&&f[d].style.font?f[d].style.font:n,i?l+=(h=w.vt(v))*f[d].text.length:T(f[d].text)||(v=ce(f[d],v),l+=b(a,v,f[d].text));if(e<l){for(0<u.length&&(o.push({textLength:s,text:E(Je(u)),textInfos:Oe(u)}),u=[],s=0),g=Ye(f,e-s,e,i,n,a),u=u.concat(g[0]),T(g[0])||o.push({textLength:s+We(g[0],n,i,a),text:E(Je(u)),textInfos:Oe(u)}),u=[],s=0,m=1;m<g.length-1;m++)T(g[m])||o.push({textLength:We(g[m],n,i,a),text:E(Je(g[m])),textInfos:Oe(g[m])});1<g.length&&(p=g[g.length-1],u=u.concat(p),T(p)||(s+=We(p,n,i,a)))}else e<s+l?(o.push({textLength:s,text:E(Je(u)),textInfos:Oe(u)}),u=(u=[]).concat(f),s=l):(u=u.concat(f),s+=l)}0<u.length&&o.push({textLength:s,text:E(Je(u)),textInfos:Oe(u)})}return o}function We(t,e,n,i){for(var r,o,a,s,u,r=0,o=i||R(),a=0;a<t.length;a++)s=t[a].style&&t[a].style.font||e,u=ce(t[a],s),r+=n?w.vt(s)*t[a].text.length:b(o,u,t[a].text);return r}function Je(t){for(var e,n,e="",n=0;n<t.length;n++)e+=t[n].text;return e}function Ze(t,e,n,i){for(var r,o,a,s,u,c,c,r=-1,o=!0,a=0;a<e.length;a++)if(!T(e[a].text))for(s=0;s<e[a].text.length;s++)u=e[a].text.charAt(s),c=e[a].style?e[a].style.font:n,w.bt(t,c),c=w.vt(c)," "===u||o?" "!==u&&o&&(r=i?c:b(t,n,u),o=!1):r=B(r,i?c:b(t,n,u));return r}function H(){}function Qe(){this.Nf={}}function Xe(){}function qe(t){var e,n,e,i,n,e,n,n,e=t.getRangeAt(0),n=e.startContainer,e=e.startOffset,i;tn(n)&&(n=fn(n,e))&&n.zeroWidthCharNode&&(e=n.zeroWidthCharNode,(n=t.getRangeAt(0)).setStart(e,1),n.deleteContents(),(n=v.createRange()).setStart(e,1),n.setEnd(e,1),t.removeAllRanges(),t.addRange(n),fe(event))}function $e(t){return t.textContent&&1===t.textContent.length&&t.textContent.split("")[0]===bt}function tn(t){return t.textContent&&t.textContent.split("")[0]===bt}function en(t,e,n){if(1===e&&nn(n.firstChild)&&nn(n.firstChild.firstChild)){var e=n.firstChild.firstChild.lastChild,i=void 0;if(t===n)return 1===(i=e.textContent).length&&i[0]!==bt&&rn(e.previousSibling);if(e===t||rn(e)&&t===e.previousSibling)return 1===(i=t.textContent).length&&i[0]!==bt&&rn(t.previousSibling)}}function nn(t){return t&&"SPAN"===t.tagName}function rn(t){return t&&"BR"===t.tagName}function on(t){return t&&"DIV"===t.tagName}function an(t){return t instanceof Text}function sn(t){var e;return!!t&&(e=t.childNodes,nn(t))&&2===e.length&&rn(e[0])&&cn(e[1])}function un(t,e){var n;if(t)return n=t.childNodes,nn(t)&&rn(n[e-2])&&cn(n[e-1])}function cn(t){if(t&&an(t)){var t=t.textContent;if(1===t.length&&vn(t[0]))return!0}return!1}function fn(t,e){var n,i,r,o,i,n,e,n=t.childNodes.length,o;if(!vn((t.innerText||t.textContent)[0])||0!==e&&1!==e)if(0===e)i=(i=gn(r=(r=t)===t.parentNode.firstChild?t.parentNode:r,sn))&&i.lastChild;else{if(on(t))return 1===n&&1===e?i=t.firstChild.firstChild.lastChild:1<n&&e===n&&(i=t.lastChild),cn(i)?{zeroWidthCharNode:i,previousTextNode:i.previousSibling.previousSibling}:sn(i)?{zeroWidthCharNode:i,previousTextNode:gn(r,an)}:x;!nn(t)||e!==n&&e!==n-1||(sn(t)?i=t:sn(t.lastChild)?i=t.lastChild:un(t,e)&&(i=t.childNodes[e-1]))}else i=t;return i?(nn(i)?r=i:an(i)&&(r=(n=i.previousSibling)===(e=i.parentNode).firstChild?e:n),{zeroWidthCharNode:i,previousTextNode:gn(r,an)}):x}function ln(t){var e,t,n,i,r,t,e=t.anchorNode,t=t.anchorOffset,n=e.textContent,i;if(t!==n.length)return 0===t&&vn(n[0])?{node:e,offset:0}:x;if(t=void 0,!(r=mn(e)))return x;if(nn(r)&&vn(r.textContent[0])){for(;nn(r.firstChild);)r=r.firstChild;t=r.childNodes[1]}else rn(r)&&vn(r.nextSibling.textContent[0])&&(t=r.nextSibling);return{node:t,offset:1}}function hn(t,e,n,i,r,o){for(var a,s,u,c,f,l,h,d,a="",s=t.childNodes,u=s.length,c=0;c<u;c++)nn(f=s[c])?a+=hn(f,e,n,i,r,o):an(f)?(l=e&&e.startContainer,h=e&&e.endContainer,d=f.textContent,f===l||f===h?l!==h?o=f===l?(a+=dn(d,n,d.length,r),!0):(a+=dn(d,0,i,""),!1):a+=dn(d,n,i,r):o||(a+=d)):rn(f)&&!o&&(a+="\n");return a}function dn(t,e,n,i){var r,o,r,o;return t.substr(0,e)+i+t.substr(n,t.length-n)}function vn(t){return t===bt}function gn(t,e){for(var n=t&&t.previousSibling;n;){if(e(n))return n;n=n.lastChild}return x}function mn(t){for(var e,n,e=t;e;){if(e!==(n=e.parentNode).lastChild)return e.nextSibling;e=n}return x}function pn(t){var e,t;return e=t&&!(e=t.getActiveSheet())&&(t=t.getActiveSheetTab())?t.Mf:e}function Sn(t,e){var n,i;t&&((n=t._f(e))?t.setActiveSheet(e):(i=t.Ofe(e))&&t.setActiveSheetTab(e))}function wn(t,e){var n,t,n=t._f(e);return n||(t=t.Ofe(e))&&(n=t.Mf),n}function bn(t){var e,n,i,r,e=[].concat(t.parent.sheets);for(t&&t.NMi&&e.push(t),n=t.parent.getSheetTabCount(),i=0;i<n;i++)(r=t.parent.getSheetTab(i))&&r.Mf&&e.push(r.Mf);return e}function Cn(t){return"="===t||"+"===t||"-"===t}function yn(t){var t;return 1<t.length&&Cn(t[0])&&Cn(t[1])||!0===(t=w.Xf(void 0,t,!0))||!1===t?NaN:t}function Mn(t){return t&&0<t.length&&Cn(t[0])&&!Cn(t)&&isNaN(yn(t))}function kn(){}function Tn(){var t=this;t.rowInfo=[],t.colInfo=[],t.wholeCols={},t.wholeRows={}}function xn(){this.reset()}function Gn(t,e){var e=S(10,e);return Math.round(t*e)/e}function U(){}function Bn(t,e){this.numberFormatId=t,this.numberFormatCode=e}function In(t){return!1===t}function Pn(t){var e,n,i,r,o,a;t&&(e=t.applyFont,n=t.applyFill,i=t.applyBorder,r=t.applyAlignment,o=t.applyNumberFormat,a=t.applyProtection,!1===e&&(delete t.foreColor,delete t.textDecoration,delete t.themeFont,delete t.font),!1===n&&delete t.backColor,!1===i&&(delete t.borderLeft,delete t.borderTop,delete t.borderRight,delete t.borderBottom,delete t.diagonalDown,delete t.diagonalUp),!1===r&&(delete t.textIndent,delete t.wordWrap,delete t.hAlign,delete t.vAlign,delete t.isVerticalText,delete t.shrinkToFit,delete t.textOrientation),!1===o&&delete t.formatter,!1===a)&&delete t.locked}function Nn(t,e,n,i){var r,e;n&&(r=n.foreColor,r=Ut.m(e,r),i=T(n.opacity)?i:n.opacity,T(i)||((e=O._(r)).a=i,r=O.j(e)),t.fillStyle!==r)&&(t.fillStyle=r||"#000000")}function Rn(t){return A.Cmt(t.split(""),!1)?t:"'"+t.replace(/'/g,"''")+"'"}function En(t,e,n,i,r){if(ee=ee||s("SheetsCalc"))return ee.rangeToFormula(t,e,n,i,r)}function Hn(t){var e,n,i,r,e=Array.isArray(t),n="[object Object]"===Object.prototype.toString.call(t);if(e){for(i=[],r=0;r<t.length;r++)i[r]=Hn(t[r]);return i}if(n){for(r in i=void 0,t)T(t[r])||((i=void 0===i?{}:i)[r]=Hn(t[r]));return i}return t}function a(){}function Un(t){t&&t.length&&t.forEach(function(t){var e=t.sheet,n=t.table,i=t.oldRange,t=t.newRange;e.S4t(n,i,t)})}Object.defineProperty(f,"__esModule",{value:!0}),f.RF=f.rangeToFormula=f.i2e=f.resetFillStyle=f.AL=f.ExcelNumerFormat=f.SJSColumnWidthHelper=f.unknownFontMaxDigitWidthMap=f.SharedStrings=f.NUMBER_ARRAY=f.BaseUsedRange=f.UsedRangeUtil=f.kf=f.Df=f.hCe=f._f=f.Ef=f.jf=f.Of=f.di=f.Rf=f.$e=f.q=f.r2e=f.zt=f.Bf=f.Lf=f.Be=f.Ff=f.Events=f.Pf=f.getUnionRange=f.Ec=f.Range=f.Rect=f.Point=f.I=f.hi=f.mt=f.util=f.getFontHeightWithCanvas=f.ColorHelper=f.isThemeColor=f.findControl=f.getTypeFromString=f.CursorResource=f.productInfo=f.isDefined=f.FormulaPrefix=f.FallbackFontFamily=void 0,f.handleRestoredTableResizedArgs=f.oCe=void 0,h=s("Common"),t=s("./dist/core/util/domUtil.js"),_=s("./dist/core/core.ns.js"),k=s("./dist/core/core.enum.js"),e=s("./dist/core/excel-io-util/common.js"),A=s("CalcEngine"),L=s("./dist/core/util/imageLoader.js"),D=s("./dist/core/worksheet/stylehelper.js"),y=t.GC$,j=y.extend,O=h.Common.ft,V=h.Common.st,Y=h.Common.Uf.Gf,d=h.Formatter&&h.Formatter.GeneralFormatter,K=h.Formatter&&h.Formatter.Hf,T=h.Common.lt.ht,z=e.StringEx.Xi,W=h.Common.zf,J=!!A,t=new h.Common.ResourceManager(_.SR),Z=t.getResource.bind(t),f.FallbackFontFamily='"Helvetica Neue", Arial, sans-serif',Q=e.Util.addXLFNPrefix,l=window,v=document,X="boolean",q="date",$="undefined",tt="function",g=void 0,x=null,et=Math.floor,G=Math.ceil,B=Math.min,m=Math.max,nt=Math.round,S=Math.pow,it=Math.sqrt,rt=Math.atan2,ot=Math.cos,at=Math.abs,st=Math.sin,ut=parseInt,ct=parseFloat,ft=isNaN,lt=.7,ht="px",dt=" ",vt=".",p="string",gt="number",mt="touch",pt="MSPOINTER_TYPE_TOUCH",St=new RegExp("^/Date\\((-?\\d+)([-+]{1}\\d+)?\\)/\\s*$"),wt=new RegExp("^/OADate\\(([-+]?(\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)\\)/\\s*$"),bt="\u200b",f.FormulaPrefix=["=","+","-"],f.isDefined=oe,f.productInfo={productVersion:"17.0.2"},f.CursorResource={ResizeCol:"col-Resize",ResizeRow:"row-resize",ResizeHiddenCol:"w-resize",ResizeHiddenRow:"n-resize"},f.getTypeFromString=Ct=function(t){var e,n,i,r,o,e=!1,n=l;if(typeof t==p){for(r=0,o=(i=t.split(".")).length;r<o&&n;r++)n=n[i[r]];n&&r===o&&0<o&&(e=!0)}return e?n:g},f.findControl=yt=function(t){return typeof t==p&&(t=v.getElementById(t)),y(t).data("workbook")},f.isThemeColor=ve,Mt=[4278190080,4294967295,4294901760,4278255360,4278190335,4294967040,4294902015,4278255615,4278190080,4294967295,4294901760,4278255360,4278190335,4294967040,4294902015,4278255615,4286578688,4278222848,4278190208,4286611456,4286578816,4278222976,4290822336,4286611584,4288256511,4288230246,4294967244,4291624959,4284874854,4294934656,4278216396,4291611903,4278190208,4294902015,4294967040,4278255615,4286578816,4286578688,4278222976,4278190335,4278242559,4291624959,4291624908,4294967193,4288269567,4294941132,4291598847,4294954137,4281558783,4281584844,4288269312,4294953984,4294940928,4294927872,4284901017,4288059030,4278203238,4281571686,4278203136,4281545472,4288230144,4288230246,4281545625,4281545523,4278190080,4294967295],kt={aliceblue:4293982463,antiquewhite:4294634455,aqua:4278255615,aquamarine:4286578644,azure:4293984255,beige:4294309340,bisque:4294960324,black:4278190080,blanchedalmond:4294962125,blue:4278190335,blueviolet:4287245282,brown:4289014314,burlywood:4292786311,cadetblue:4284456608,chartreuse:4286578432,chocolate:4291979550,coral:4294934352,cornflowerblue:4284782061,cornsilk:4294965468,crimson:4292613180,cyan:4278255615,darkblue:4278190219,darkcyan:4278225803,darkgoldenrod:4290283019,darkgray:4289309097,darkgreen:4278215680,darkkhaki:4290623339,darkmagenta:4287299723,darkolivegreen:4283788079,darkorange:4294937600,darkorchid:4288230092,darkred:4287299584,darksalmon:4293498490,darkseagreen:4287609999,darkslateblue:4282924427,darkslategray:4281290575,darkturquoise:4278243025,darkviolet:4287889619,deeppink:4294907027,deepskyblue:4278239231,dimgray:4285098345,dodgerblue:4280193279,feldspar:4291924597,firebrick:4289864226,floralwhite:4294966e3,forestgreen:4280453922,fuchsia:4294902015,gainsboro:4292664540,ghostwhite:4294506751,gold:4294956800,goldenrod:4292519200,gray:4286611584,green:4278222848,greenyellow:4289593135,honeydew:4293984240,hotpink:4294928820,"indianred ":4291648604,"indigo ":4283105410,ivory:4294967280,khaki:4293977740,lavender:4293322490,lavenderblush:4294963445,lawngreen:4286381056,lemonchiffon:4294965965,lightblue:4289583334,lightcoral:4293951616,lightcyan:4292935679,lightgoldenrodyellow:4294638290,lightgrey:4292072403,lightgreen:4287688336,lightpink:4294948545,lightsalmon:4294942842,lightseagreen:4280332970,lightskyblue:4287090426,lightslateblue:4286869759,lightslategray:4286023833,lightsteelblue:4289774814,lightyellow:4294967264,lime:4278255360,limegreen:4281519410,linen:4294635750,magenta:4294902015,maroon:4286578688,mediumaquamarine:4284927402,mediumblue:4278190285,mediumorchid:4290401747,mediumpurple:4287852760,mediumseagreen:4282168177,mediumslateblue:4286277870,mediumspringgreen:4278254234,mediumturquoise:4282962380,mediumvioletred:4291237253,midnightblue:4279834992,mintcream:4294311930,mistyrose:4294960353,moccasin:4294960309,navajowhite:4294958765,navy:4278190208,oldlace:4294833638,olive:4286611456,olivedrab:4285238819,orange:4294944e3,orangered:4294919424,orchid:4292505814,palegoldenrod:4293847210,palegreen:4288215960,paleturquoise:4289720046,palevioletred:4292374675,papayawhip:4294963157,peachpuff:4294957753,peru:4291659071,pink:4294951115,plum:4292714717,powderblue:4289781990,purple:4286578816,red:4294901760,rosybrown:4290547599,royalblue:4282477025,saddlebrown:4287317267,salmon:4294606962,sandybrown:4294222944,seagreen:4281240407,seashell:4294964718,sienna:4288696877,silver:4290822336,skyblue:4287090411,slateblue:4285160141,slategray:4285563024,snow:4294966010,springgreen:4278255487,steelblue:4282811060,tan:4291998860,teal:4278222976,thistle:4292394968,tomato:4294927175,turquoise:4282441936,violet:4293821166,violetred:4291829904,wheat:4294303411,white:4294967295,whitesmoke:4294309365,yellow:4294967040,yellowgreen:4288335154,transparent:16777215},c.hexToARGB=function(t){return{r:(t="string"==typeof t?parseInt(t,16):t)>>16&255,g:t>>8&255,b:255&t,a:t>>24&255}},c.convertRgbToXyz=function(t){var e,n,i,t,n,i,e,r,o,a,e=function(t){return t=.04045<(t/=255)?S((t+.055)/1.055,2.4):t/12.92,t*=100},n=t.r,i=t.g,t=t.b,n=e(n),i=e(i),e=e(t),r,o,a;return{x:.4124564*n+.3575761*i+.1804375*e,y:.2126729*n+.7151522*i+.072175*e,z:.0193339*n+.119192*i+.9503041*e}},c.convertXyzToLab=function(t){var e,n,i,t,r,o,a,e=function(t){return.008856<t?S(t,1/3):7.787*t+16/116},n=t.x,i=t.y,t=t.z;return i/=100,t/=107.304,n=e(n/=94.811),{lightness:r=116*(i=e(i))-16,redGreen:o=500*(n-i),blueYellow:a=200*(i-(t=e(t)))}},c.calculateDeltaE2000=function(t,e){var n,i,t,r,o,e,a,s,u,c,f,l,l,i,o,l,h,d,t,i,a,e,o,i,t,r,n,l,h,v,u,g,m,p,n=t.lightness,i=t.redGreen,t=t.blueYellow,r=e.lightness,o=e.redGreen,e=e.blueYellow,a=function(t){return 360*t/(2*Math.PI)},s=function(t){return 2*Math.PI*t/360},u=(n+r)/2,c,f,l=(it(S(i,2)+S(t,2))+it(S(o,2)+S(e,2)))/2,l=(1-it(S(l,7)/(S(l,7)+S(25,7))))/2,i=i*(1+l),o=o*(1+l),l=it(S(i,2)+S(t,2)),h=it(S(o,2)+S(e,2)),d=(l+h)/2,t=a(rt(t,i));return t<0&&(t+=360),(i=a(rt(e,o)))<0&&(i+=360),a=180<at(t-i)?(t+i+360)/2:(t+i)/2,e=1-.17*ot(s(a-30))+.24*ot(s(2*a))+.32*ot(s(3*a+6))-.2*ot(s(4*a-63)),180<at(o=i-t)&&(i<=t?o+=360:o-=360),i=r-n,t=h-l,o=2*it(l*h)*st(s(o)/2),r=1+.015*S(u-50,2)/it(20+S(u-50,2)),n=1+.045*d,l=1+.015*d*e,h=30*Math.exp(-S((a-275)/25,2)),u=-(v=2*it(S(d,7)/(S(d,7)+S(25,7))))*st(2*s(h)),p=m=g=1,it(S(i/r,2)+S(t/n,2)+S(o/l,2)+t/n*u*(o/l))},c.getClosestColorIndex=function(t,e){var n,i,r,o,a,a;for(e===g&&(e=64),n=-1,i=Number.MAX_VALUE,r=c.convertXyzToLab(c.convertRgbToXyz(t)),o=Math.min(c.paletteInLab.length-1,e);0<=o;o--)a=c.paletteInLab[o],(a=c.calculateDeltaE2000(a,r))<i&&(i=a,n=o);return n},c.getHexNumString=function(t){var e,e,e=+t;return isNaN(e)?t+"":(e=(t=e).toString(16),t<16?"0"+e:e)},c.convertColorToHex=function(t){var t,e,n,i,r,o;if(t)return"string"!=typeof t?t:("#"===(t=t.toLowerCase()).substring(0,1)?7===t.length?e="FF"+t.substring(1).toUpperCase():4===t.length&&(e="FF"+(n=t[1]+t[1]+t[2]+t[2]+t[3]+t[3]).toUpperCase()):"rgb("===t.substring(0,4)?(r=t.indexOf("("),o=t.indexOf(")"),i=t.substring(r+1,o).split(","),e="FF"+(n=c.getHexNumString(i[0])+c.getHexNumString(i[1])+c.getHexNumString(i[2])).toUpperCase()):"rgba("===t.substring(0,5)?(r=t.indexOf("("),o=t.indexOf(")"),i=t.substring(r+1,o).split(","),e=(n=c.getHexNumString(i[3])+c.getHexNumString(i[0])+c.getHexNumString(i[1])+c.getHexNumString(i[2])).toUpperCase()):kt[t]&&(e=kt[t].toString(16).toUpperCase()),e)},c.convertHexColorToArgb=function(t){return c.hexToARGB(c.convertColorToHex(t))},c.getIndexedColor=function(t){var t,e,n,i;return 32767===t||t<0||Mt.length<=t?"#000000":Mt[t]!==g?"rgb("+(e=(t=Mt[t])>>16&255)+","+(n=t>>8&255)+","+(i=255&t)+")":void 0},c.palette=[4278190080,4294967295,4294901760,4278255360,4278190335,4294967040,4294902015,4278255615,4278190080,4294967295,4294901760,4278255360,4278190335,4294967040,4294902015,4278255615,4286578688,4278222848,4278190208,4286611456,4286578816,4278222976,4290822336,4286611584,4288256511,4288230246,4294967244,4291624959,4284874854,4294934656,4278216396,4291611903,4278190208,4294902015,4294967040,4278255615,4286578816,4286578688,4278222976,4278190335,4278242559,4291624959,4291624908,4294967193,4288269567,4294941132,4291598847,4294954137,4281558783,4281584844,4288269312,4294953984,4294940928,4294927872,4284901017,4288059030,4278203238,4281571686,4278203136,4281545472,4288230144,4288230246,4281545625,4281545523,4278190080],c.paletteInLab=[{lightness:0,redGreen:0,blueYellow:0},{lightness:100.00000386666655,redGreen:.41450003183252093,blueYellow:-.9762337974368318},{lightness:53.24079414130722,redGreen:80.40628534603033,blueYellow:66.9485076645686},{lightness:87.73472235279792,redGreen:-85.88347705836918,blueYellow:82.71231806483974},{lightness:32.297010932850725,redGreen:79.42575443955474,blueYellow:-108.79311020157895},{lightness:97.13926722430631,redGreen:-21.167322894165398,blueYellow:93.98697624453854},{lightness:60.32421212836874,redGreen:98.58848986524677,blueYellow:-61.76412516100469},{lightness:91.11321981275862,redGreen:-47.74463372340881,blueYellow:-15.101613782352352},{lightness:0,redGreen:0,blueYellow:0},{lightness:100.00000386666655,redGreen:.41450003183252093,blueYellow:-.9762337974368318},{lightness:53.24079414130722,redGreen:80.40628534603033,blueYellow:66.9485076645686},{lightness:87.73472235279792,redGreen:-85.88347705836918,blueYellow:82.71231806483974},{lightness:32.297010932850725,redGreen:79.42575443955474,blueYellow:-108.79311020157895},{lightness:97.13926722430631,redGreen:-21.167322894165398,blueYellow:93.98697624453854},{lightness:60.32421212836874,redGreen:98.58848986524677,blueYellow:-61.76412516100469},{lightness:91.11321981275862,redGreen:-47.74463372340881,blueYellow:-15.101613782352352},{lightness:25.53553096346318,redGreen:48.23338316760745,blueYellow:37.96950789833623},{lightness:46.22743146876261,redGreen:-51.51899057263506,blueYellow:49.61670487243066},{lightness:12.9719668574308,redGreen:47.64519130280251,blueYellow:-65.26181066276018},{lightness:51.86894337734398,redGreen:-12.69765903738712,blueYellow:56.380043157800905},{lightness:29.784666617920195,redGreen:59.1403568405364,blueYellow:-37.05049551887899},{lightness:48.2540934618616,redGreen:-28.64061189579556,blueYellow:-9.059017225814237},{lightness:77.7043667134314,redGreen:.3348315663007084,blueYellow:-.7885979888260453},{lightness:53.585015771669404,redGreen:.2486464680258038,blueYellow:-.5856141545440119},{lightness:67.10642818332406,redGreen:24.661563327250835,blueYellow:-51.70481284997233},{lightness:38.02326868659504,redGreen:47.530276772876526,blueYellow:-7.41000863702892},{lightness:98.88366982816507,redGreen:-7.647377025903346,blueYellow:23.604961406243042},{lightness:96.64610006552223,redGreen:-15.626896975835969,blueYellow:-6.286449794841897},{lightness:22.946593663526578,redGreen:50.30757275587142,blueYellow:-31.51689638909162},{lightness:68.21369400049187,redGreen:48.529707503769,blueYellow:22.097909906924063},{lightness:44.03181574544729,redGreen:15.497390355584283,blueYellow:-60.313393374835414},{lightness:83.56960561788927,redGreen:10.660290354444879,blueYellow:-25.869538462689157},{lightness:12.9719668574308,redGreen:47.64519130280251,blueYellow:-65.26181066276018},{lightness:60.32421212836874,redGreen:98.58848986524677,blueYellow:-61.76412516100469},{lightness:97.13926722430631,redGreen:-21.167322894165398,blueYellow:93.98697624453854},{lightness:91.11321981275862,redGreen:-47.74463372340881,blueYellow:-15.101613782352352},{lightness:29.784666617920195,redGreen:59.1403568405364,blueYellow:-37.05049551887899},{lightness:25.53553096346318,redGreen:48.23338316760745,blueYellow:37.96950789833623},{lightness:48.2540934618616,redGreen:-28.64061189579556,blueYellow:-9.059017225814237},{lightness:32.297010932850725,redGreen:79.42575443955474,blueYellow:-108.79311020157895},{lightness:76.31433784805343,redGreen:-24.045184322556313,blueYellow:-37.63232479221295},{lightness:96.64610006552223,redGreen:-15.626896975835969,blueYellow:-6.286449794841897},{lightness:95.46123799053612,redGreen:-25.20013221308681,blueYellow:18.33180794427749},{lightness:98.0661672083006,redGreen:-13.832882960730986,blueYellow:47.940897645383274},{lightness:80.27790732349922,redGreen:-3.692924875082826,blueYellow:-31.192993832087378},{lightness:75.08051024268852,redGreen:44.9470828980269,blueYellow:-10.53443113754624},{lightness:71.44638619892534,redGreen:38.40169770146873,blueYellow:-44.58196770374543},{lightness:85.37715784474301,redGreen:11.871131967975845,blueYellow:31.5700614950422},{lightness:48.789468602187014,redGreen:37.72886428748323,blueYellow:-81.46151935827358},{lightness:74.97920661167659,redGreen:-37.437024973414836,blueYellow:-12.053212107002897},{lightness:76.04314994204388,redGreen:-38.98270545611504,blueYellow:75.18013610138723},{lightness:84.19958734726818,redGreen:4.040877427542666,blueYellow:84.79018925434798},{lightness:72.2607240884026,redGreen:30.50579205114734,blueYellow:76.85864017596677},{lightness:62.312481453511026,redGreen:55.3256388060856,blueYellow:71.01583749339153},{lightness:45.11897896728884,redGreen:12.741665540704494,blueYellow:-28.39942907333195},{lightness:62.082179778109094,redGreen:.2790091803857031,blueYellow:-.6571246580693746},{lightness:21.3066228635372,redGreen:6.957317762469661,blueYellow:-34.694697216998314},{lightness:56.52959107095738,redGreen:-41.28375003303447,blueYellow:17.929912574393892},{lightness:17.308442495122094,redGreen:-27.576541316135987,blueYellow:24.11521195522933},{lightness:20.328171424265783,redGreen:-6.796668862699029,blueYellow:28.392687041649655},{lightness:36.25649980036505,redGreen:41.047060654411325,blueYellow:47.86323594949912},{lightness:38.02326868659504,redGreen:47.530276772876526,blueYellow:-7.41000863702892},{lightness:27.765685279866425,redGreen:33.339639613412324,blueYellow:-56.37161392120451},{lightness:21.24673253653905,redGreen:.13309285609849897,blueYellow:-.31346136150179893},{lightness:0,redGreen:0,blueYellow:0}],Tt=c,f.ColorHelper=Tt,f.getFontHeightWithCanvas=we,xt=/&#(\d+);/g,Gt=/&#x([0-9A-F]+);/gi,Bt=/&amp;/g,It=/&gt;/g,Pt=/&lt;/g,Nt=/&quot;/g,Rt=/&apos;/g,I.Vf=function(t){for(var e,n,e="";0<t;t=parseInt((t-1)/26+"",10))e=String.fromCharCode(65+(n=(t-1)%26))+e;return e},I.gt=function(t,e,n,i){var r;return 3===t&&(r=y.getType(e),t=!n||"@"!==n&&"@"!==n.formatCached?r===X?1:r===gt||r===q||r===p&&I.Yf(e)?2:0:0,i)&&0!==i&&(0<i?t=0:i<0&&(t=2),-90===i?t=0:90===i&&(t=2)),t},I.Yf=function(t){return I.Zf.test(t)},I.j=function(t){var e,e,e=y.getType(t);return t=t===x||t===g?"":e===X?t.toString().toUpperCase():e===q?(e=0===t.getHours()&&0===t.getMinutes()&&0===t.getSeconds()&&0===t.getMilliseconds(),h.Common.ct.Pe(t,e?"M/d/yyyy":"M/d/yyyy h:mm:ss")):t.richText?I.wt(t):t.toString()},I.Wf=function(t,e,n,i,r,o,a){var s,u,c,f,l,h,d,v,g,m,p,S,w,b,C,s=y(t),u=e,c=n,f="background-position",l="background-size",h="auto",d="0%",v="50%",g="100%";switch(o){case 0:a?s.css(f,a.position).css(l,a.size):s.css(f,"0% 0%").css(l,"100% 100%");break;case 1:p=m=v,s.css(f,(m=u<i?d:v)+" "+(p=c<r?d:v)).css(l,"auto auto");break;case 2:b=u,(w=S=0)<(C=c)&&0<r&&i/r<u/c?S=S+u/2-(b=i/r*c)/2:0<u&&0<i&&r/i<c/u&&(w=w+c/2-(C=r/i*u)/2),s.css(f,S+ht+" "+w+ht).css(l,b+ht+" "+C+ht);break;case 3:s.css(f,"0% 0%").css(l,"auto auto")}},I.device=function(){var t,e,n,i,r,o,t=navigator.userAgent,e=t.match(/iPad/i);if(e)(n=e[0])&&(i="ipad"===n.toLowerCase());else if((e=t.match(/Macintosh/i))&&(n=e[0]))try{document.createEvent("TouchEvent"),i="macintosh"===n.toLowerCase()}catch(t){}return{ipad:i,iphone:r=(e=t.match(/iPhone/i))&&(n=e[0])?"iphone"===n.toLowerCase():r,android:o=(e=t.match(/android/i))&&(n=e[0])?"android"===n.toLowerCase():o}},I.Qf=function(){var t=navigator.platform;return t&&-1<t.indexOf("Mac")},I.Kf=function(t){var t,t;return t!==g&&t!==x&&(t=t.toString(),t=V.Jf(t),!ft(Number(""===t.trim()?NaN:t))||/^[1-9]\d{0,2}(?:(,\d{3})*|\d*)(?:\.\d*)?$/.test(t))},I.Xf=function(t,e,n,i,r){var o,a,s,s,u,t,o,a,o=x,a=!1;if(t&&((s=t.formatter)?(r?o=r:I.St(s)||(o=s,a=!0),typeof o==p&&d&&(o=new d(o))):o=t._autoFormatter),o&&!o.isAuto){s=x;try{if(s=o.parse(e),typeof(s=a&&s instanceof Date&&(u=(new d).getPreferredDisplayFormatter(e,r))?u.parse(e):s)==gt)return s}catch(t){}return s===g||s===x?e:s}if(n){if(t=void 0,t={},o=void 0,a=x,d)try{a=(new d).getPreferredDisplayFormatter(e,t)}catch(t){}return typeof(o=t.value)==gt?e=o:I.Kf(e)&&(o=t.value=e),i&&(i.value=a),o!==g&&o!==x?o:e}return e},I.gi=function(t){for(var e,n,t,i,e=v.body,n=t;n&&n.parentElement&&n.parentElement!==e;)n=n.parentElement;return t=1e3,n&&n.parentElement===e&&(i=ut(y(n).css("z-index")),ft(i)||(t+=i)),t},I.ri=function(t){var e,n,i,r,o,a,s,u,c,f,l,h,d,v,d;if(!t)return[];if(e=t.indexOf("("),n=t.lastIndexOf(")"),!(i=t.substring(e+1,n)))return[];for(r=[],a="",u=s=o=0;u<i.length;)s=i.indexOf("rgb",o),-1===(u=i.indexOf("rgb",o+1))&&(u=i.length),a=i.substring(s,u),r.push(a),o=u;for(c=[],f=0,l=r.length;f<l;f++)d=(h=r[f]).indexOf(")"),v=h.substring(0,d+1),d=ct(h.substring(d+1,h.length)),ft(d)&&(f===l-1?d=100:f<=1&&(d=0)),!v&&0===f||c.push({color:v,point:d/=100});return c},I.qf=function(t,e,n,i,r){var o,a,s,u,c,f,l,h,d,v,d,g,m,m,m,p,p,S,w,b,C,y,w,M,o=e.Dn,a=0,s=[n],u=e.zoom();for(i===k.AutoFitType.cellWithHeader&&(n===k.SheetArea.viewport?s.push(1):n===k.SheetArea.rowHeader&&s.push(0)),c=0;c<s.length;c++)for(f=0,l=s[c],h=r||e.getRowCount(l);0<=f&&f<h;)(d=e.Ut.findSpan(f,t,l))&&(d.col<t||1<d.colCount||d.row<f)?f=d.row+d.rowCount:(d=0,(g=(v=e.o2e(f,t,l)).cellType||e.$f(l))&&(m=v.font||o.Nn(),v.font=o._n(m),(m=!(!(m=e.rowFilter&&e.rowFilter())||!m.rn(f,t,l)))||3!==l||(p=e.tables?e.tables.find(f,t):x)&&p.showHeader()&&p.headerIndex()===f&&p.rowFilter()&&p.filterButtonVisible(t-p.range().col)&&(m=!0),p=v.formatter||v._autoFormatter,S={sheet:e,row:f,col:t,sheetArea:l,quotePrefix:v.quotePrefix},w={},b=e.$t(f,t,l,k.ValueType.richText),C=e.t0(f,t,n),y="",y=b&&b.richText?e.getText(f,t,l):T(C)?g.format(b,p,w,S):C,d=g.Ln(b,y,v,u,S),m)&&(w=B(u,1),d+=M=ut((e.defaults.rowHeight*w).toString(),10)),a<d&&(a=d),l===k.SheetArea.viewport?f=I.n0(f,t,e,l):f++);return 0===a?a=e.defaults.colWidth:a+=G(3),G(a)},I.n0=function(t,e,n,i){for(var r,o,a,s,u,r=-1,o=n.getRowCount(i),a=t+1;a<o;a++){if(s=n.$t(a,e,i)){r=a;break}if((u=n.getActualStyle(a,e,i))&&(u.cellType||u.cellButtons&&0<u.cellButtons.length||D.W.Jue(u))){r=a;break}}return r},I.e0=function(t,e,n,i){var r,o,a,s,u,c,f,l,h,d,v,v,g,g,u,m,p,S,r=e.Dn,o=0,a=[n],s=e.zoom();for(1===i&&(3===n?a.push(2):1===n&&a.push(0)),f=!1,l=c=0;l<a.length;l++)for(h=0,d=e.getColumnCount(n=a[l]);0<=h&&h<d;)(v=e.Ut.findSpan(t,h,n))&&(v.row<t||1<v.rowCount||v.col<h)?h=v.col+v.colCount:(0<parseFloat(e.getColumnWidth(h,n).toString())&&(g=(v=e.o2e(t,h,n)).font||r.Nn(),v.font=r._n(g),g=0,(u=e.getCellType(t,h,n))&&(m=e.getText(t,h,n),p=e.$t(t,h,n,k.ValueType.richText),g=u.Fn(p,m,v,s,S={sheet:e,row:t,col:h,sheetArea:n})),2===(u=e.Lt(h))?c=c+g+G(3):(c&&(g+=c,c=0),1===u&&(f=!0)),o<(g=c?c:g))&&(o=g),3===n?h=I.i0(t,h,e,n):h++);return 0===(o=f&&o<60?60:o)?o=e.defaults.rowHeight:o+=G(3),G(o)},I.i0=function(t,e,n,i){for(var r,o,a,s,u,r=-1,o=n.getColumnCount(i),a=e+1;a<o;a++){if(s=n.$t(t,a,i)){r=a;break}if((u=n.getActualStyle(t,a,i))&&u.cellType){r=a;break}}return r},I.Eve=function(t){var e,n,i,r;if(t instanceof Date)return t;if("string"!=typeof t)return"number"==typeof t&&!isNaN(t)&&(e=h.Common.ct.Y0(t))||x;if(!(e=h.Common.ct.yU(t)))if(isNaN(t)){if(h.Common.ct.u6t(t))return x;if(e=new Date(t),isNaN(e.valueOf()))return x;try{if(n=/^[-+=\s]*(\d+)\W+(\d+)\W+(\d+)$/,i=W.s6t(W.cJ(t.replace(/[ \n]/g,"")," ")," "),(r=n.exec(i))&&4===r.length&&(-1===r.indexOf(e.getFullYear().toString())||-1===r.indexOf(e.getMonth().toString())||-1===r.indexOf(e.getDate().toString())))return x}catch(t){return x}}else if(!(e=h.Common.ct.Y0(parseFloat(t))))return x;return e},I.mi=function(t,e,n,i,r){var o,a,i,t,r,s,u,c,f,l;if(n&&(o=i.row,a=i.col,i=i.sheetArea,t=t.formatter||t._autoFormatter,r=r||{},d)&&e!==x&&e!==g)if(s=void 0,t&&t.isAuto)s=typeof e==gt,u=I.Kf(e),!s&&u&&(e=V.Jf(e)),e=t.getPreferredEditingFormatter?t.getPreferredEditingFormatter(e).format(e):e;else if(t=typeof t!=p||I.St(t)?t:new d(t))try{e instanceof Date?((c=A&&A.Convert.r0(e))&&(e=c),f=h.Common.CultureManager.Fe().DateTimeFormat,l=h.Common.ct.o0(e),t=!K.a0(t.formatString(),["d","y"])&&0<=l&&l<1?new d(f.longTimePattern):0===e.getHours()&&0===e.getMinutes()&&0===e.getSeconds()&&0===e.getMilliseconds()?new d(f.shortDatePattern):new d(f.shortDatePattern+" "+f.longTimePattern),n.u0=!0,e=t.format(e),r.formatter=t):typeof e==gt&&(e=t.getPreferredEditingFormatter?t.getPreferredEditingFormatter(e).format(e):V.Ge(e.toString()))}catch(t){e=n.getText(o,a,i)}else e=0===e?"0":n.getText(o,a,i);return e=e!==x&&e!==g?I.j(e):e},I.s0=function(t,e,n,i){var n,i,r,o,a,s;if(n&&(n=i||{},d)&&e!==x&&e!==g)if(i=void 0,t&&t.isAuto)i=typeof e==gt,r=I.Kf(e),!i&&r&&(e=V.Jf(e)),e=t.getPreferredEditingFormatter?t.getPreferredEditingFormatter(e).format(e):e;else if(t)try{e instanceof Date?(typeof t!=p||I.St(t)||(t=new d(t)),(o=A&&A.Convert.r0(e))&&(e=o),a=h.Common.CultureManager.Fe().DateTimeFormat,s=h.Common.ct.o0(e),e=(t=!K.a0(t.formatString(),["d","y"])&&0<=s&&s<1?new d(a.longTimePattern):0===e.getHours()&&0===e.getMinutes()&&0===e.getSeconds()&&0===e.getMilliseconds()?new d(a.shortDatePattern):new d(a.shortDatePattern+" "+a.longTimePattern)).format(e),n.formatter=t):typeof e==gt&&(e=V.Ge(e.toString()))}catch(t){}return e=e!==x&&e!==g?I.j(e):e},I.c0=function(t,e,n,i){return!T(t)&&"string"==typeof t&&!!(e||-1===f.FormulaPrefix.indexOf(t)&&0<t.length&&-1!==f.FormulaPrefix.indexOf(t[0])&&n&&!i)},I.f0=function(t,e,n){var i,r,r,i="";if(t)if((r=t.getFormulaInformation(e,n,3))&&r.hasFormula){if(i="="+r.formulaWithCulture,r.isDynamicArray)return""}else{if(r=t.getValue(e,n),T(r))return r;i=I.s0(t.getFormatter(e,n)||t.l0(e,n,"_autoFormatter"),r,t)||""}return i},I.h0=function(t,e){var n,e,i,r,n=t,e=h.Common.CultureManager.Fe(e).NumberFormat,i;return!!(e&&e.percentSymbol&&t)&&"object"!=typeof(n="object"==typeof t&&t.formatCached?t.formatCached:n)&&"string"==typeof n&&0<(r=V.v0(n)).d0},I.m0=function(t){var e,n,t,e=I.Tt.msie||I.Tt.edge,n=e&&l.MSPointerEvent&&1<(navigator.msMaxTouchPoints||0);return t?n:(t=e&&l.PointerEvent&&1<(navigator.maxTouchPoints||0),n||t)},I.wt=function(t){return t&&t.richText&&0<t.richText.length?(t=t.text?t:I.g0(t)).text:t},I.g0=function(t){var e,n,i;if(t&&(e=t.richText)&&0<e.length){for(n=[],i=0;i<e.length;i++)n.push(e[i].text||"");t.text=n.join("")}return t},I.St=function(t){return"string"==typeof t&&("="===t.charAt(0)||0<=t.indexOf("{{")&&0<=t.indexOf("}}"))},I.p0=function(t,e,o,a){var s,u,t,s=t,u=e,t=function(t,e){var n,i,r,n=this;return n.hasOwnProperty("_ps")||(n._ps={}),i=n._ps,0===arguments.length?i[s]!==g?i[s]:u:(!1!==e&&a&&!a.call(n,t)||(r=i[s]!==g?i[s]:u)!==t&&(i[s]=t,!1!==e)&&o&&o.call(n,t,r),n)};return t.isDefault=function(t){return t===u},t},I.b0=function(t,e){var n={_ps:{}};return h.Common.lt.y0(t,function(t){ue(n,t,e)}),n},I.w0=function(t,e,n,i,r,o,a){for(var s,u,c,f,s=B(e,n),u=m(e,n),c=0,f=s;f<u&&(c+=i?o?t.getRowHeight(f,3):t.Gt(f,3,a):o?t.getColumnWidth(f,3):t.nn(f,3,a),!(r&&r<c));f++);return c},I.M0=function(t,e,n,i,r){for(var o,a,s,u,c,o=B(e,n),a=m(e,n),s=0,u=o;u<a&&(i?(c=t.C0(u),t.getViewportTopRow(c)<=u&&t.getViewportBottomRow(c)>=u&&(s+=t.Gt(u,3))):(c=t.S0(u),t.getViewportLeftColumn(c)<=u&&t.getViewportRightColumn(c)>=u&&(s+=t.nn(u,3))),!(r&&r<s));u++);return s},I.T0=function(t,e){var n,i,t,e,n=0,i=0;return t!==e&&(t=y(t).offset(),e=y(e).offset(),n=t.left-e.left,i=t.top-e.top),{A0:i,I0:n}},I.x0=function(t,e,n,i){var r,o,a,s,u,r=i||{};if(!t||"string"!=typeof t)return r.message=Z().Exp_SheetNameInvalid,!1;for(a=0;a<t.length;a++)if("*"===(o=t.charAt(a))||":"===o||"["===o||"]"===o||"?"===o||"\\"===o||"/"===o)return r.message=Z().Exp_SheetNameInvalid,!1;if("'"===t.charAt(0)||"'"===t.charAt(t.length-1))return r.message=Z().Exp_SheetNameInvalid,!1;if(e)for(s=e.length,a=0;a<s;a++)if(n!==(u=e[a])&&t.toUpperCase()===u.name().toUpperCase())return r.message=Z().Exp_SheetNameConflict,!1;return!0},I.yi=function(t,e,n){var i,r,o;if(!t)return t;for(i=0,r=t.length,o=[];i<r;)t[i]===e?o[i]=n:o[i]=t[i],i++;return o.join("")},I.N0=function(){var t,e,n,i,t=I;return t.k0||(i="-10000px",(n=(e=ae("span")).style).visibility="hidden",n.top=i,n.left=i,n.position="absolute",e.setAttribute("gcUIElement","gcStringWidthSpan"),v.body.insertBefore(e,x),t.k0=e),t.k0},I.vt=function(t,e,n){var i,r,o,o,i,i=I,r=i.D0;if(!e)if(r){if(o=(r=n?r.CJKFontCache:r)[t])return o}else r=i.D0={CJKFontCache:{}},n&&(r=r.CJKFontCache);return(o=i.N0()).style.font=I.yt(t),I.Tt&&I.Tt.safari&&(o.style.lineHeight="normal"),o.innerHTML=n?String.fromCharCode(20013):"H",i=(i=o.offsetHeight)||we(t,o.innerHTML),e||(r[t]=i),i},I._0=function(t){var e,n,i,e,e=I,n=e.E0;if(n){if(n[t])return n[t]}else n=e.E0={};return(e=e.N0()).style.font=t,e.innerHTML="H",(i={}).fontFamily=e.style.fontFamily,i.fontSize=e.style.fontSize,i.fontStyle=e.style.fontStyle,i.fontWeight=e.style.fontWeight,n[t]=i},I.bi=function(t,e){var n,i,n=I.N0();return n.style.font=I.yt(e),I.Tt&&I.Tt.safari&&(n.style.lineHeight="normal"),n.innerHTML=W.j0(t||"H"),i=(i=n.offsetHeight)||we(e,n.innerHTML)},I.O0=function(t){var e,n,e,e=I;return 0<=t.indexOf(f.FallbackFontFamily)?t:(t=t.replace("("+String.fromCharCode(27491)+String.fromCharCode(25991)+")","").replace("(Body)","").replace("("+String.fromCharCode(26631)+String.fromCharCode(39064)+")",""),(e=(n=e.N0()).style).font=t,e.fontFamily=[].concat(e.fontFamily.split(","),f.FallbackFontFamily.split(",")).join(","),e.font)},I.yt=function(t){var e,n,i,e=I;return t&&e.R0?(i=(n=(n=e.B0)||(e.B0={}))[t])||(n[t]=e.O0(t)):t},I.bt=function(t,e,n){void 0===n&&(n=!1),e&&(e=I.yt(e),t.font===e&&!0!==n||(t.font=e))},I.Mt=function(t,e,n){return!e||T(n)?0:(I.bt(t,e),t.measureText(n).width)},I.L0=function(){var t,e,t=I,e=t.k0;e&&(y(e).remove(),t.k0=g),t.D0=g,t.E0=g,I.F0&&(I.F0=g),t.B0=g},I.oi=function(t){var e,t,e=I.F0;return e=e||(I.F0=ae("div")),t=t.innerHTML,e.innerHTML=t,e.innerText},I.P0=function(t){return t&&/^[A-Za-z_\\\u0080-\uFFFF][A-Za-z0-9_\.\\\?\u0080-\uFFFF]*$/.test(t)&&!(-1!==["C","c","R","r"].indexOf(t)||/^[A-Za-z]{1,3}(\$)?\d+$/.test(t)||/^[Rr]\d*[Cc]\d*$/.test(t)||255<=t.length)},I.G0=function(t){t&&(t.U0(!0),t.initExpression(),t.H0())},I.z0=function(t){var e,n,i,r,o,e=0,n=0,i=t.length;for(0<i&&(e=t[0].row,n=t[0].col),r=1;r<i;r++)e>(o=t[r]).row&&(e=o.row),n>o.col&&(n=o.col);return{r:e=e<0?0:e,c:n=n<0?0:n}},I.V0=function(t){var t,t=typeof t==p&&"/"===t.charAt(0)?I.a2e(t):t;return t},I.a2e=function(t){var e,e,e=wt.test(t)?(e=t.match(wt),h.Common.ct.Y0(ct(e[1]))):St.test(t)?(e=t.match(St),new Date(ct(e[1]))):t;return e},I.Z0=function(t){var t,t=!T(t)&&h.Common.ct.W0(t)?h.Common.ct.Q0(t):t;return t},I.K0=function(t,e){for(var n,i,r,o,n=t.getImageData(e.x,e.y,e.width,e.height),i=n.data,r=0;r<i.length-4;r+=4)o=et((30*i[r]+59*i[r+1]+11*i[r+2]+50)/100),i[r]=o,i[r+1]=o,i[r+2]=o;t.putImageData(n,e.x,e.y)},I.J0=function(t,e,n){t.rowCount>e&&(t.rowCount=e),t.colCount>n&&(t.colCount=n)},I.X0=function(t,e,n,i){for(var r=n;r<n+i;r++)if(!T(t.getValue(e,r)))return!0;return!1},I.q0=function(t,e,n,i){for(var r=e;r<e+i;r++)if(!T(t.getValue(r,n)))return!0},I.$0=function(t){return!t||""===t},I.qi=function(t){if(I.$0(t))return 0;for(var e=0,n=0;n<t.length&&isNaN(parseInt(t[n],10));)n++;return(e=n<t.length?parseInt(t.substring(n),10):e)-1},I.$i=function(t){for(var e,n,i,r,o,e=0,n=t.length,i=0;i<n&&!(25<(o=(r=t[i].charCodeAt())-97))&&!((o=o<0?r-65:o)<0);i++)e=26*e+o+1;return--e},I.t1=function(t){var t=""+t;return"="===t.charAt(0)?t.substr(1):t},I.getFormulaString=function(t){return"string"==typeof t?(t="="===t[0]?t.substr(1):t,Q(t)):t},I.vo=function(t,e){return!T(t)&&(e=e||/(&)|(<)|(>)|(")|(')/g).test(t)?typeof t==p?t.replace(e,function(t){switch(t){case"&":return"&amp;";case"<":return"&lt;";case">":return"&gt;";case'"':return"&quot;";case"'":return"&apos;"}}):""+t:t},I.Nfe=function(t,e){return(e=void 0!==e&&e)?t&&t.replace(/\%/g,"%25").replace(/\ /g,"%20").replace(/\#/g,"%23").replace(/\[/g,"%5b").replace(/\]/g,"%5d").replace(/\^/g,"%5e").replace(/\`/g,"%60").replace(/\{/g,"%7b").replace(/\}/g,"%7d").replace(/\&/g,"&amp;").replace(/\"/g,"&quot;"):t&&t.replace(/\&/g,"&amp;").replace(/\"/g,"&quot;").replace(/\>/g,"&gt;").replace(/\</g,"&lt;")},I.kfe=function(t,e){return(e=void 0!==e&&e)?t&&t.replace(/&amp;/g,"&").replace(/&quot;/g,'"').replace(/%20/g," ").replace(/%23/g,"#").replace(/%5[bB]/g,"[").replace(/%5[cC]/g,"\\").replace(/%5[dD]/g,"]").replace(/%5[eE]/g,"^").replace(/%60/g,"`").replace(/%7[bB]/g,"{").replace(/%7[dD]/g,"}").replace(/%25/g,"%"):t&&t.replace(/&amp;/g,"&").replace(/&quot;/g,'"').replace(/&gt;/g,">").replace(/&lt;/g,"<")},I.n1=function(t){var e,n;return T(t)?t:!(e=typeof t==p)||-1===t.indexOf("&")?""+t:(n=/(&amp;)|(&gt;)|(&lt;)|(&quot;)|(&apos;)/g,(t=-1!==t.indexOf("&#")?t.replace(xt,de(10)).replace(Gt,de(16)):t).replace(n,function(t){switch(t){case"&amp;":return"&";case"&gt;":return">";case"&lt;":return"<";case"&quot;":return'"';case"&apos;":return"'"}}))},I.e1=function(t,e,n){var i,r;if(t&&typeof t==p)for(i=0;i<n.length;i++)if((r=n[i])!==e&&(-1<t.indexOf(r+"!")||-1<t.indexOf("'"+r+"'!")))return!0;return!1},I.i1=function(t){var e,n,e;return"string"==typeof t&&(e=t.indexOf("/OADate(")+1,n=t.indexOf(")"),0!==e)&&e<n&&(e=parseFloat(t.substring(e+7,n)),isNaN(e)||(t=""+e)),t},I.r1=function(t){var e,n,i;if(!t)return null;if(e=-1!==(e=t).indexOf(n=",")?e.split(",")[0]:e){for(i=e.length-1;0<=i&&"/"!==e[i];)i--;'"'===(e=(e=0<=i?e.substring(i):e)&&"/#"===e.substring(0,2)?e.substring(2):e)[0]&&'"'===e[e.length-1]&&(e=e.substring(1,e.length-1))}return e},I.o1=function(t,e){for(var n,i,r,o,a,o,n=e.split("&"),i=0,r=n.length;i<r;i++){if(a=(o=n[i].split("."))[0],o=o[1],!t)return;t=I.xr(t,a,o)}return t},I.Hue=function(t,e){var n,i,r;if(t&&t.c_){for(i=t.c_,r=0;r<i.length&&!(n=I.xr(i[r],e));r++);return n}},I.xr=function(t,e,n){var i,r,o,a;if(!t||!t.c_)return g;for(n=n?+n:0,r=0,o=(i=t.c_).length;r<o;r++)if((a=i[r])&&a.n_===e){if(0===n)return a;n--}},I.u1=function(t,e){var n,i;if(t)for(n=t.c_||[],i=0;i<n.length;i++)if(n[i][e])return n[i][e]},I.s1=function(t,e){var n,i,r,o,o;if(!t||!t.c_)return g;for(i=0,r=(n=t.c_).length;i<r;i++){if((o=n[i])&&o.n_===e)return o;if(o=I.s1(o,e),!T(o))return o}},I.c1=function(t){return t&&t.c_?t.c_[0]:g},I.go=function(t,e){var n,i,r,o,a;if(!t||!t.c_)return g;for(i=[],r=0,o=(n=t.c_).length;r<o;r++)(a=n[r])&&a.n_===e&&i.push(a);return i},I.Pr=function(t,e){var n,i,r,o,o;if(t&&t.c_){for(n=[],i=0,r=e.length;i<r;i++)o=e[i],(o=I.go(t,o))&&0<o.length&&(n=n.concat(o));t.c_=n}},I.f1=function(t,e,n){var i,r,o;if(t&&e)for(n=n||e.name,i=0,r=t.length;i<r;i++)(o=t[i])&&o.n_===n&&(t[i]=e)},I.l1=function(){var t;return("{"+he(8)+"-"+he(4)+"-"+he(4)+"-"+he(4)+"-"+he(12)+"}").toUpperCase()},I.h1=function(t,e,n){if(t)return ve(t)?ge(t,e,n):Se(t,n)},I.d1=function(t,e){var e;if(t)return"1"===t.auto?"#000000":t.theme!==g?me(t,e):t.rgb?"#"+(e="number"==typeof(e=t.rgb)?e.toString(16):e).substring(2,e.length):t.indexed!==g?pe(t):void 0},I.hueToRGB=function(t,e,n){return n<0&&(n+=255),255<n&&(n-=255),n<42?t+((e-t)*n+21)/42:n<127?e:n<170?t+((e-t)*(170-n)+21)/42:t},I.v1=function(t,e,n){var i,r,o,a,e,i=0,r=0,o=0;return o=0===n?r=i=255*e/255|0:(a=void 0,e=2*e-(a=e<=127?(e*(255+n)+127)/255:e+n-(e*n+127)/255),i=parseInt(((255*I.hueToRGB(e,a,t+85)+127)/255).toString(),10),r=parseInt(((255*I.hueToRGB(e,a,t)+127)/255).toString(),10),parseInt(((255*I.hueToRGB(e,a,t-85)+127)/255).toString(),10)),{r:i=(i=0<i?i:0)<255?i:255,g:r=(r=0<r?r:0)<255?r:255,b:o=255<(o=0<o?o:0)?o:255,a:0}},I.m1=function(t){var t=kt[t];if(t!==g)return Tt.hexToARGB(t)},I.g1=function(t){if(!z(t))return"="===t[0]?t:"="+t},I.p1=function(t){return z(t)||t.length<=2?t:t.substr(1,t.length-2)},I.b1=function(t){if(!T(t))return"="===t[0]?t.substring(1,t.length):t},I.w1=function(t,e){if(t&&e)for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);return t},I.C1=function(t){var e,n,i,r;if("string"==typeof t){if(e=/\[[^\]]+\]|@/,(n=t.split(/\'|\"/g))&&0<n.length)for(i=0;i<n.length;i++)if(r=n[i],i%2==0&&r.match(e))return!0;return!1}},I.S1=function(t,e){var n,i,r,e,o,t,n=e.row,i=e.col,r=e.rowCount,e=e.colCount,o=t.getRowCount(),t=t.getColumnCount();return-1===n&&(n=0,r=o),-1===i&&(i=0,e=t),Re(n,i,r=o<n+r?o-n:r,e=t<i+e?t-i:e)},I.isInfinityNumberString=function(t){return"string"==typeof t&&(parseFloat(t)===Number.POSITIVE_INFINITY||parseFloat(t)===Number.NEGATIVE_INFINITY)},I.repeatString=function(t,e){var n="";if(!(!t||e<1||e>Number.POSITIVE_INFINITY))for(;e%2&&(n+=t),(e=Math.floor(e/2))&&(t+=t),e;);return n},I.toPlainString=function(t){var e,n;return(""+t).replace(/(-?)(\d*)\.?(\d*)e([+-]\d+)/,function(t,e,n,i,r){return+r<0?e+"0."+I.repeatString("0",1-+r-n.length-1)+n+i:e+n+i+I.repeatString("0",+r-i.length)})},I.jse=function(t){var e=document.createElement("div");return e.innerHTML=t.trim(),e.firstChild},I.rfe=function(t,e){var n,i,r,o;if(t===x||e===x||"object"!=typeof t||"object"!=typeof e)return t===e;if(n=Object.keys(t),i=Object.keys(e),n.length!==i.length)return!1;for(r=0;r<n.length;r++)if(o=n[r],!I.rfe(t[o],e[o]))return!1;return!0},I.bme=function(t,e){for(var n,i,r,o,a,s,n=e.row,i=e.col,r=e.rowCount,o=e.colCount,a=n;a<n+r;a++)for(s=i;s<i+o;s++)if(t.getCell(a,s).locked())return!0;return!1},I.wme=function(t){for(var e,n,i,r,o,a,i,s,e=t.getSelections(),n=0;n<e.length;n++)if(r=-1===(i=e[n]).col?0:i.col,o=-1===i.row?0:i.row,a=-1===i.col?t.getColumnCount():i.colCount,i=-1===i.row?t.getRowCount():i.rowCount,s=I.bme(t,{col:r,row:o,colCount:a,rowCount:i}))return!0;return!1},I.ige=function(t){return 4<t?t=4:t<.25&&(t=.25),this.mge(t)},I.mge=function(t,e){return void 0===e&&(e=12),+parseFloat(t.toPrecision(e))},I.isEnablePasteSpecial=function(t){return!!t&&!t.NMi&&!(!t.ST()._S||t.ST().ES||t.isPasteShapes&&t.isPasteShapes()||t.isPasteFloatingObject&&t.isPasteFloatingObject())},I.Zf=/[\u0600-\u06FF\u0750-\u077F]/,I.vi=fe,I.pi=I.device,I.Tt=(t=be(_=navigator.userAgent),e={version:g,chrome:g,webkit:g,safari:g,mozilla:g,msie:g,metroMode:g,edge:g},t.browser&&(e[t.browser]=!0,e.version=t.version),e.chrome?e.webkit=!0:e.webkit&&(e.safari=!0),(ie=0<=_.indexOf("PhantomJS"))&&(e.safari=!1,e.chrome=!0),(re=(t=_.toLowerCase()).indexOf("compatible")<0&&/(trident)(?:.*? rv ([\w.]+)|)/.exec(t)!==x)&&(e.mozilla=g,e.msie=!0),(t=/Edge\/\d+/.exec(_))!==x&&0<t.length&&(e.webkit=g,e.chrome=g,e.msie=!0,e.edge=!0,e.version=t[0].substr(t[0].indexOf("/")+1)),e.msie&&Ce()&&(e.metroMode=!0),e),I.browser=I.Tt,I.En=ae,I.T1=oe,I.pt=le,I.R0=I.Qf(),I.Ct=function(t){return!T(t)&&(typeof t==gt||typeof t==X||t instanceof Date||A&&t instanceof A.CalcError)},w=I,f.util=w,f.mt=w,b=w.Mt,ye.A1=function(t){return!(ye.ai()!==t||!t.rt||!t.rt.I1)},ye.ai=function(){return l&&l.gcGlobal&&l.gcGlobal.activeElement},ye.N1=function(i){var r,o,a,t,e,t,n,s,u,c,f;function l(t){for(var e,n,e=0;e<=2;e++)(n=t.call(r,e))&&0!==n.width&&0!==n.height&&(i.k1=!0,o.D1(a,n))}if(i&&!ye.A1(i)&&i.parent&&i.parent.options.hideSelection)if(r=i.Fi(),o=i.Dn,a=o.J(),e=(t=i._1)&&t.isEnable(k.RowColumnStates.selected,!0),t=t&&t.isEnable(k.RowColumnStates.selected,!1),n=i.getSelections(),u=s=void 0,e||t){for(c=void 0,s=0;s<n.length;s++)f=n[s],c=c?c.union(f):f;c&&o.E1(c)}else{for(s=0;s<n.length;s++)f=n[s],0<=(u=i.j1(f)).width&&0<=u.height&&(u.x-=9,u.y-=9,u.width+=18,u.height+=30,o.O1(u));u=r.R1(),i.k1=!0,o.D1(a,u),l(r.B1),l(r.L1)}},ye.F1=function(t,e){var n=ye.ai();(l.gcGlobal.activeElement=t)===n||e||(n&&(n.endEdit(),ye.N1(n),n.G1)&&n.G1(),t&&t.Dn.E1())},Et=ye,f.hi=Et,n.prototype.U1=function(){var t="gc-theme-version ui-widget-header ui-state-default wijmoThemeHelper btn-default",e="span."+t.split(" ").join(".");return u.H1?y(v).find(e).length<=0&&se(u.H1):u.H1=Me(t),u.H1},n.prototype.z1=function(){var t="gc-theme-version ui-widget-content wijmoThemeHelper btn-default",e="span."+t.split(" ").join(".");return u.V1?y(v).find(e).length<=0&&se(u.V1):u.V1=Me(t),u.V1},n.prototype.Y1=function(){var t="gc-theme-version ui-state-hover wijmoThemeHelper btn-primary",e="span."+t.split(" ").join(".");return u.Z1?y(v).find(e).length<=0&&se(u.Z1):u.Z1=Me(t),u.Z1},n.prototype.W1=function(){var t="gc-theme-version ui-state-highlight wijmoThemeHelper btn-warning",e="span."+t.split(" ").join(".");return u.K1?y(v).find(e).length<=0&&se(u.K1):u.K1=Me(t),u.K1},n.prototype.J1=function(){var t="gc-theme-version",e="gcDummyElement";return u.X1?y(v).find("#"+e).length<=0&&se(u.X1):u.X1=Me(t,e),u.X1},n.prototype.nl=function(){u.U1(),u.z1(),u.Y1(),u.W1()},n.prototype.Hc=function(){var r,t,o;function a(t,e){for(var n,i,n=!1,i=t;i;){if("gcSpread"===y(i).attr("gcUIElement")){n=e.qc()!==i;break}i=i.parentElement}return n}function n(t){var e,n,i,i,e=Et.ai();if(e&&(n=u.el(t.target),i=e.il&&e.il.rl,r.wf.forEach(function(t){t&&t(e,n)}),!n||a(n,e)))if(e.ol(g,g,i))o&&(i=e.rt)&&i.al&&i.al(),Et.F1(x);else if(t.cancelable)return!1}function e(t){var e=t.pointerType;e!==t[pt]&&e!==mt||n(t)}(r=this).vf=0,ke(l,"keydown",xe,!0),ke(l,"keyup",Ge,!0),ke(l,"compositionstart",Be,!0),ke(l,"selectstart",Pe,!0),t=w.pi(),o=t.ipad||t.iphone,w.browser.safari&&!o&&ke(l,"textInput",Ie,!0),w.m0()?(y(v).bind("MSPointerDown",e),y(v).bind("pointerdown",e)):y(v).bind("touchstart",n),ke(v,"mousedown",function(t){var e;!1===n(t)&&fe(t)},!0),y(v).bind("DOMContentLoaded",function(){u.nl()})},n.prototype.el=function(t){for(var e,n,e=t;e&&"BODY"!==e.tagName&&typeof e.getAttribute==tt;){if(n=(n=e.getAttribute("gcUIElement"))||e.gcUIElement)return e;e=e.parentNode}return x},n.prototype.ul=function(t,e){var n,t,i,r,o,a,t,n=u.U1();return t===k.VisualState.highlight||t===k.VisualState.selected?n=u.W1():t===k.VisualState.hover&&(n=u.Y1()),t=n.className,y(n).removeClass(t).addClass(e),o=(i=Te(n)).backgroundColor,a=i.backgroundImage,y(n).addClass(t),(t={backgroundColor:(i=Te(n)).backgroundColor,backgroundImage:i.backgroundImage,color:i.color,zIndex:i.zIndex}).borderLeftColor=i.borderLeftColor,t.borderRightColor=i.borderRightColor,t.borderBottomColor=i.borderBottomColor,t.borderBottomWidth=i.borderBottomWidth,t.borderTopColor=i.borderTopColor,t.borderRightWidth=i.borderRightWidth,t.backgroundImage===a&&t.backgroundColor!==o&&(t.backgroundImage=g),y(n).removeClass(e),t},n.prototype.sl=function(t){var e,t,e=u.J1();return y(e).removeClass(e.className).addClass("gc-theme-version "+t),t=Te(e),j({},t)},n.prototype.cl=function(t){var e,t,e=u.z1();return y(e).removeClass(e.className).addClass("gc-theme-version ui-widget-content wijmoThemeHelper btn-default "+t),t=Te(e),j({},t)},n.prototype.ef=function(){var t;l.gcGlobal.vf++},n.prototype.cf=function(){var t=l.gcGlobal;t.vf--,t.vf<0&&(t.vf=0)},u=n.prototype,l.gcGlobal||(l.gcGlobal=new n),r.Ee=function(t){var e;return{0:"normal",1:"highlight",2:"selected",3:"active",4:"hover",5:"activeNotSelected"}[t]||""},r.He=function(t,e){var n=r.Ee(t)+e,i=r.styleCache;return i[n]||(i[n]=u.ul(t,e)),i[n]},r.fl=function(t){var e=t,n=r.styleCache;return n[e]||(n[e]=u.sl(t)),n[e]},r.ll=function(t){var e="content"+t,n=r.styleCache;return n[e]||(n[e]=u.cl(t)),n[e]},r.m=function(t,e){var t=t.hl;return e=t&&t.getColor?t.getColor(e):e},r.dl=function(){r.styleCache={}},r.styleCache={},Ut=r,f.I=Ut,Ne.prototype.clone=function(){return new Ne(this.x,this.y)},f.Point=Ne,C.prototype.intersect=function(t,e,n,i){var r=this;return t<r.x+r.width&&r.x<t+n&&e<r.y+r.height&&r.y<e+i},C.prototype.intersectRect=function(t){return this.intersect(t.x,t.y,t.width,t.height)},C.prototype.contains=function(t,e,n){var i=this;return n?i.x<=t&&t<=i.x+i.width&&i.y<=e&&e<=i.y+i.height:i.x<t&&t<i.x+i.width&&i.y<e&&e<i.y+i.height},C.prototype.containsRect=function(t,e){return this.contains(t.x,t.y,e)&&this.contains(t.x+t.width,t.y+t.height,e)},C.prototype.getIntersectRect=function(t){return this.getIntersect(t.x,t.y,t.width,t.height)},C.prototype.getIntersect=function(t,e,n,i){var r=this,o=r.x,a=r.y,s=r.x+r.width,r=r.y+r.height,u,c=e,n=t+n,e=e+i,i=m(o,t),o=m(a,c),f,l,h,d,t=B(s,n)-i,a=B(r,e)-o;return 0<t&&0<a?new C(i,o,t,a):x},C.prototype.round=function(){var t=this;t.x=et(t.x),t.y=et(t.y),t.width=G(t.width),t.height=G(t.height)},C.prototype.clone=function(){var t=this;return new C(t.x,t.y,t.width,t.height)},f.Rect=C,M.prototype.intersect=function(t,e,n,i){var r=this;return(-1===t||-1===r.row||r.row<t+n&&t<r.row+r.rowCount)&&(-1===e||-1===r.col||r.col<e+i&&e<r.col+r.colCount)},M.prototype.getIntersect=function(t,e,n){var i,r,n,o,e,a,r,n,i,s,u,i=this;return t&&i.intersect(t.row,t.col,t.rowCount,t.colCount)?(r=-1===i.col?n-1:i.col+i.colCount-1,n=-1===t.col?n-1:t.col+t.colCount-1,o=-1===i.row?e-1:i.row+i.rowCount-1,e=-1===t.row?e-1:t.row+t.rowCount-1,a=m(i.col,t.col),r=B(r,n),n=m(i.row,t.row),i=B(o,e),new M(n,a,s=-1===n?-1:i-n+1,u=-1===a?-1:r-a+1)):x},M.prototype.contains=function(t,e,n,i){var r=this,o=arguments.length,a=!1;return 2!==o&&4!==o||(2===o&&(i=n=1),a=(-1===r.row||r.row<=t&&t+n<=r.row+r.rowCount)&&(-1===r.col||r.col<=e&&e+i<=r.col+r.colCount)),a},M.prototype.containsRange=function(t){return this.contains(t.row,t.col,t.rowCount,t.colCount)},M.prototype.offset=function(t,e){var n,i,r,n=this,i=n.col,r=n.row;return-1!==i&&(i+=t),-1!==r&&(r+=e),new M(r,i,n.rowCount,n.colCount)},M.prototype.union=function(t){return Ee(this,t)},M.prototype.equals=function(t){var e=this;return t instanceof M&&e.row===t.row&&e.col===t.col&&e.rowCount===t.rowCount&&e.colCount===t.colCount},M.prototype.toJSON=function(){var t=this;return{row:t.row,col:t.col,rowCount:t.rowCount,colCount:t.colCount}},M.prototype.fromJSON=function(t){var e=this;t&&(e.row=t.row,e.col=t.col,e.rowCount=t.rowCount,e.colCount=t.colCount)},At=M,f.Range=At,f.Ec=Re,f.getUnionRange=Ee,He.vl=function(t,e){if(t&&e){var t=t.currentTheme();if(t)return t.getColor(e)}return e},He.ml=function(t,e){var t;return t&&e?(t=t.currentTheme())?t.getFont(e):e:x},f.Pf=He,i.ValidationError="ValidationError",i.CellClick="CellClick",i.CellDoubleClick="CellDoubleClick",i.ColumnChanging="ColumnChanging",i.RowChanging="RowChanging",i.EnterCell="EnterCell",i.LeaveCell="LeaveCell",i.ValueChanged="ValueChanged",i.TopRowChanged="TopRowChanged",i.SheetChanging="SheetChanging",i.SheetChanged="SheetChanged",i.PivotTableChanged="PivotTableChanged",i.LeftColumnChanged="LeftColumnChanged",i.InvalidOperation="InvalidOperation",i.RangeFiltering="RangeFiltering",i.RangeFiltered="RangeFiltered",i.RangeFilterClearing="RangeFilterClearing",i.TableFilterClearing="TableFilterClearing",i.RangeFilterCleared="RangeFilterCleared",i.TableFilterCleared="TableFilterCleared",i.TableFiltering="TableFiltering",i.TableFiltered="TableFiltered",i.RangeSorting="RangeSorting",i.RangeSorted="RangeSorted",i.ClipboardChanging="ClipboardChanging",i.ClipboardChanged="ClipboardChanged",i.ClipboardPasting="ClipboardPasting",i.ClipboardPasted="ClipboardPasted",i.ColumnWidthChanging="ColumnWidthChanging",i.ColumnWidthChanged="ColumnWidthChanged",i.RowHeightChanging="RowHeightChanging",i.RowHeightChanged="RowHeightChanged",i.DragDropBlock="DragDropBlock",i.DragDropBlockCompleted="DragDropBlockCompleted",i.DragFillBlock="DragFillBlock",i.DragFillBlockCompleted="DragFillBlockCompleted",i.EditStarting="EditStarting",i.EditStarted="EditStarted",i.EditChange="EditChange",i.EditEnding="EditEnding",i.EditEnd="EditEnd",i.EditEnded="EditEnded",i.RangeGroupStateChanging="RangeGroupStateChanging",i.RangeGroupStateChanged="RangeGroupStateChanged",i.InternalSelectionChanging="InternalSelectionChanging",i.SelectionChanging="SelectionChanging",i.SelectionChanged="SelectionChanged",i.SheetTabClick="SheetTabClick",i.SheetTabDoubleClick="SheetTabDoubleClick",i.SheetNameChanging="SheetNameChanging",i.SheetNameChanged="SheetNameChanged",i.ViewZooming="ViewZooming",i.ViewZoomed="ViewZoomed",i.UserZooming="UserZooming",i.UserFormulaEntered="UserFormulaEntered",i.CellChanged="CellChanged",i.ColumnChanged="ColumnChanged",i.RowChanged="RowChanged",i.ActiveSheetChanging="ActiveSheetChanging",i.ActiveSheetChanged="ActiveSheetChanged",i.SparklineChanged="SparklineChanged",i.OutlineColumnCheckStatusChanged="OutlineColumnCheckStatusChanged",i.RangeChanged="RangeChanged",i.ButtonClicked="ButtonClicked",i.EditorStatusChanged="EditorStatusChanged",i.FloatingObjectChanged="FloatingObjectChanged",i.DrawingElementZIndexChanged="DrawingElementZIndexChanged",i.ProgressChanged="ProgressChanged",i.FloatingObjectSelectionChanged="FloatingObjectSelectionChanged",i.ShapeChanged="ShapeChanged",i.ShapeSelectionChanged="ShapeSelectionChanged",i.FormControlButtonClicked="FormControlButtonClicked",i.FormControlValueChanged="FormControlValueChanged",i.PictureChanged="PictureChanged",i.FloatingObjectRemoving="FloatingObjectRemoving",i.ShapeRemoving="ShapeRemoving",i.FloatingObjectRemoved="FloatingObjectRemoved",i.ShapeRemoved="ShapeRemoved",i.PictureSelectionChanged="PictureSelectionChanged",i.FloatingObjectLoaded="FloatingObjectLoaded",i.TouchToolStripOpening="TouchToolStripOpening",i.CommentChanged="CommentChanged",i.CommentRemoving="CommentRemoving",i.CommentRemoved="CommentRemoved",i.SlicerChanged="SlicerChanged",i.BeforeDragDrop="BeforeDragDrop",i.ActiveSheetChangingInternal="ActiveSheetChangingInternal",i.ActiveSheetChangedInternal="ActiveSheetChangedInternal",i.EnterCellInternal="EnterCellInternal",i.SheetOptionsChangedInternal="SheetOptionsChangedInternal",i.WorkbookOptionsChangedInternal="WorkbookOptionsChangedInternal",i.RangeChangedInternal="RangeChangedInternal",i.CustomNameChangedInternal="CustomNameChangedInternal",i.FormulaTextboxEditStarted="FormulaTextboxEditStarted",i.FormulaTextboxEditEnded="FormulaTextboxEditEnded",i.SheetMoving="SheetMoving",i.SheetMoved="SheetMoved",i.DragMerging="DragMerging",i.DragMerged="DragMerged",i.ChartClicked="ChartClicked",i.FloatingElementSelected="FloatingElementSelected",i.BeforePrint="BeforePrint",i.TableResizing="TableResizing",i.TableResized="TableResized",i.TableRowsChanged="TableRowsChanged",i.TableColumnsChanged="TableColumnsChanged",i.DropdownSpreadMouseClick="DropdownSpreadMouseClick",i.DropdownSpreadKeyboardEnter="DropdownSpreadKeyboardEnter",i.PasteEnd="PasteEnd",i.WorkbookUndo="WorkbookUndo",i.WorkbookRedo="WorkbookRedo",i.SheetTabAllSheetsListContextMenuOpening="SheetTabAllSheetsListContextMenuOpening",i.SheetTabAllSheetsListContextMenuOpened="SheetTabAllSheetsListContextMenuOpened",i.ReportSheetAddRecord="ReportSheetAddRecord",i.ReportSheetDeleteRecord="ReportSheetDeleteRecord",i.ActiveCellChanged="ActiveCellChanged",i.WorksheetDataChanged="WorksheetDataChanged",i.ReportSheetModeChanged="ReportSheetModeChanged",i.ReportPaginationSettingChanged="ReportPaginationSettingChanged",i.ReportPaginationPageChanged="ReportPaginationPageChanged",f.Events=i,o.prototype.L0=function(){this.Mf=x},o.prototype.gl=function(t,e,n){var i,t,e,i=this.pl,t=t<<4+e;return i?((e=i[t])||(e=n(),i[t]=e),e):n()},o.prototype.yl=function(t,e){var n,n,n=this.wl;return n&&(n=n[t])?n[e]:x},o.prototype.Ml=function(t,e,n,i){var r,o,r=this.wl;r&&(r[t]||(r[t]={}),(o=r[t])[e]={d:n,i:i})},o.prototype.$t=function(t,e,n,i,r){var o,a,s,o=this,a=o.Mf;return s=a.t0(t,e,n=n===g?3:n),T(s)?!T(r)&&w.St(r.formatter)?Ot.Cl(a,r,o.Sl(t,e,n,0),{},{row:t,col:e,sheet:a}):o.Sl(t,e,n,i):s},o.prototype.Sl=function(t,e,n,i){var r,o,r,a,r,a,r=this,o=r.Mf,r=r.Tl;return n===g&&(n=3),r?((a=r[n])||(r[n]=a={}),(r=a[t])||(a[t]=r={}),(a=r[e])===g&&(a=o.$t(t,e,n,i),r[e]=a),a):o.$t(t,e,n,i)},o.prototype.qt=function(t,e,n){var i,r,i,o,i,o,i=this,r=i.Mf,i=i.Al;return n===g&&(n=3),i?((o=i[n])||(i[n]=o={}),(i=o[t])||(o[t]=i={}),(o=i[e])||(o=r.Il(t,e,n,!1,!0),i[e]=o),o.clone(!0)):r.Il(t,e,n,!1,!1)},o.prototype.o2e=function(t,e,n){var i,r,i,o,i,o,i=this,r=i.Mf,i=i.Al;return n===g&&(n=3),i?((o=i[n])||(i[n]=o={}),(i=o[t])||(o[t]=i={}),(o=i[e])||(o=r.o2e(t,e,n,!1,!0),i[e]=o),o.clone(!0)):r.o2e(t,e,n,!1,!1)},o.prototype.Gt=function(t,e){var n,i,n,r,n;return void 0===e&&(e=k.SheetArea.viewport),i=(n=this).Mf,(n=n.xl)?(n=(r=(r=n[e])===g?n[e]={}:r)[t])===g?r[t]=i.Gt(t,e):n:i.Gt(t,e)},o.prototype.Kt=function(t,e){var n,i,n,r,n;return void 0===e&&(e=k.SheetArea.viewport),i=(n=this).Mf,(n=n.Nl)?(n=(r=(r=n[e])===g?n[e]={}:r)[t])===g?r[t]=i.nn(t,e):n:i.nn(t,e)},o.prototype.kl=function(t){var e=this;return e.Tl?(e.Dl||(e.Dl=t()),e.Dl):t()},o.prototype._l=function(t){var e=this;return e.Tl?(e.El||(e.El=t()),e.El):t()},o.prototype.jl=function(){var t=this;t.Ol=!0,t.pl={},t.wl={},t.Tl={},t.Al={},t.xl={},t.Nl={}},o.prototype.Rl=function(){this.Ol=!1},o.prototype.Bl=function(){var t=this;t.Ol=!1,t.pl=x,t.wl=x,t.Tl=x,t.Al=x,t.Nl=x,t.xl=x,t.Dl=x,t.El=x},f.Ff=o,P.Ll=function(t,e,n,i,r){var o,a,s,u;if(P.Fl=!0,(o=t.tables)&&o.Pl(e,n,i-e+1,r-n+1))for(a=-1,s=P.Gl=[],u=0;u<=i;u++)t.getRowVisible(u)?s[u]=++a:s[u]=-1},P.dl=function(){P.Gl=x,P.Fl=!1},P.Ue=function(t){var e=P.Ul;return e[t]||(e[t]=d?new d(t):x),e[t]},P.Re=function(t,e,n){var i,r,i,o,o,a,o,e,i,i=P.Hl,r=t+"_"+typeof t;return d?(i[e]||(i[e]={}),(o=(i=i[e])[r])?(n&&(n.conditionalForeColor=n.value=o.color,n.content=Y(o.content)),o.text):((o=P.Ul)[e]||(o[e]=new d(e)),e=(a=o[e]).format(t,o={}),(i=i[r]={}).text=e,i.color=o.conditionalForeColor,i.content=o.content,n&&(n.conditionalForeColor=n.value=o.conditionalForeColor,n.content=Y(o.content)),e)):t.toString()},P.Cl=function(t,e,n,i,r){var t,e;return n&&"SparklineExValue"===n.typeName?"":(t=e.cellType||t.$f(),e=e.formatter||e._autoFormatter,t.format(n,e,i,r))},P.zl=function(){P.Ul={},P.Hl={}},P.Fl=!1,P.Ul={},P.Hl={},P.Gl=[],Ot=P,f.Be=Ot,Fe.Vl=function(t,e,n){var i=Ue(t);i.scaleX=e,i.scaleY=n,i.translateX=i.orgTranslateX*e,i.translateY=i.orgTranslateY*n,t.setTransform(i.scaleX,i.skewX,i.skewY,i.scaleY,i.translateX,i.translateY)},Fe.Yl=function(t,e,n){var i=Ue(t);i.orgTranslateX+=e,i.orgTranslateY+=n,i.translateX=i.orgTranslateX*i.scaleX,i.translateY=i.orgTranslateY*i.scaleY,t.setTransform(i.scaleX,i.skewX,i.skewY,i.scaleY,i.translateX,i.translateY)},Fe.d5=function(t){var e=null==t?void 0:t.getContext("2d");e&&(e.clearRect(0,0,t.width,t.height),t.width=1,t.height=1)},f.Lf=_=Fe,Vt=_,N.Zl=function(){var t,e,e,t,n,t=l.screen,e=t.deviceXDPI,e=l.devicePixelRatio||(e?e/t.logicalXDPI:1),t=20*e,n=nt(t);return.82<n-t?n/20:nt(100*e)/100},N.Wl=function(t,e,n){var i,r,o,a,s,u,c,f,l,i=N;if(_e(t,1),Ae(t,1),(1!==(r=N.Zl())||1!==i.dpr)&&(i.dpr=r,o=e||n&&n.parent)){for(a=i.Ql,s=void 0,u=0;u<a.length;u++)if(o===a[u].workbook){s=a[u];break}if(s||a.push(s={workbook:o,sheets:[],canvases:[]}),e)s.canvases.push(t);else{for(c=void 0,f=s.sheets,l=0;l<f.length;l++)if(f[l].sheet===n){c=f[l];break}c||f.push(c={sheet:n,canvases:[]}),c.canvases.push(t)}}},N.Kl=function(t){return t&&t.Sf||1},N.Jl=function(t){return t&&t.Tf||1},N.Xl=function(t){return t.Af},N.ql=function(t){return t.If},N.$l=function(t,e,n){var i,r,o,i,a,r,e,i=N,r=i.dpr,o=i.Kl(t),i=i.Jl(t);Le(t,e),De(t,n),1===r&&1===o&&1===i?(t.width=e,t.height=n):(a=t.getContext("2d"),Vt.Vl(a,1,1),w.Tt.mozilla?(t.width=G(e*r),t.height=G(n*r)):(t.width=nt(e*r),t.height=nt(n*r)),t.style.width=e+ht,t.style.height=n+ht,r=t.width/e,e=t.height/n,r===o&&e===i||(_e(t,r),Ae(t,e)),Vt.Vl(a,r,e))},N.th=function(t,e){for(var n,i,r,o,a,s,u,n=N.Ql,i=t.parent,a=0;a<n.length;a++)if(!i||n[a].workbook===i)for(r=n[a].sheets,s=0;s<r.length;s++)if(r[s].sheet===t){for(o=r[s].canvases,u=0;u<o.length;u++)if(o[u]===e){o.splice(u,1);break}break}},N.nh=function(t,e){for(var n,i,r,o,n=N.Ql,r=0;r<n.length;r++)if(n[r].workbook===t)for(i=n[r].canvases,o=0;o<i.length;o++)if(i[o]===e){i.splice(o,1);break}},N.eh=function(t){for(var e,n,i,r,o,e=N.Ql,n=t.parent,r=0;r<e.length;r++)if(!n||e[r].workbook===n){for(i=e[r].sheets,o=0;o<i.length;o++)i[o].sheet===t&&i.splice(o,1);return}},N.ih=function(t){for(var e,n,e=N.Ql,n=0;n<e.length;n++)if(e[n].workbook===t)return void e.splice(n,1)},N.rh=function(){var t,e,n,i,r,o,a,s,u,c,t=N,e=t.Zl();if(t.dpr!==e)for(n=t.Ql,a=o=r=i=void 0,t.dpr=e,s=0;s<n.length;s++){for(o=(r=n[s]).canvases,i=r.sheets,u=0;u<i.length;u++)o=o.concat(i[u].canvases);for(c=0;c<o.length;c++)a=o[c],t.$l(a,t.Xl(a),t.ql(a))}},N.dpr=1,N.Ql=[],f.Bf=N,f.zt=je,f.r2e=E,H.un=function(t,e,n,i,r){var o,a,s,u,c,f,l,h,d,v,g,o=[];if(t&&0!==t.length&&!isNaN(e)&&(a=r||R())){if(w.bt(a,n),s=w.vt(n),e<=0){for(u=-1,c=!0,f=0;f<t.length;f++)" "===(l=t.charAt(f))||c?" "!==l&&c&&(u=i?s:b(a,a.font,l),c=!1):u=B(u,i?s:b(a,a.font,l));if((e=u)<=0)return[t]}for(h=t.split(/\r\n|\r|\n/),d=0;d<h.length;d++)if(v=Ke(h[d],e,i,s,a))if(0===v.length)o.push("");else for(g=0;g<v.length;g++)o.push(v[g])}return o},H.oh=function(t,e,n,i,r){var o,a,s,u,c,o=[];if(0!==e.length)if(i)o=H.un(e,r,n,!0);else for(a=e.split(/\r\n|\r|\n/),s=0;s<a.length;s++){for(u=[],c=0;c<a[s].length;c++)u.push(a[s][c]);o.push(u)}return o},H.Ht=function(t,e,n,i,r,o){var a,s,u,c,o,f,l,h,a=[];if(0!==t.length&&(s=o||R())){if(e<=0&&(e=Ze(s,i,n,r))<=0){for(c=[],u=0;u<i.length;u++)T(i[u].text)||c.push({textLength:H.ah([i[u]],n,1,r,!1,s),text:i[u].text,textInfos:[i[u]]});return c}for(o=H.uh(t),f=H.Vt(o,H.Yt(i)),u=0;u<f.length;u++)if(l=ze(f[u],e,n,r,s))if(0===l.length)a.push("");else for(h=0;h<l.length;h++)a.push(l[h])}return a},H.uh=function(t){for(var e,n,i,e=[],n=t.split(/\r\n|\r|\n/),i=0;i<n.length;i++)e.push(je(n[i]));return e},H.Vt=function(t,e){for(var n,i,r,o,a,s,u,c,f,n=[],i=0,r=0,o=0;o<t.length;o++){for(a=[],s=0;s<t[o].length&&i<e.length;s++)if((u=t[o][s]).length<=e[i].text.length-r)a.push([{style:e[i].style,text:u}]),r+=u.length;else{for((c=[]).push({style:e[i].style,text:e[i].text.substring(r)}),f=u.length-(e[i].text.length-r),i++;i<e.length;i++){if(f<e[i].text.length){c.push({style:e[i].style,text:u.substring(u.length-f)}),r=f;break}if(f===e[i].text.length){c.push({style:e[i].style,text:u.substring(u.length-f)}),i++,r=0;break}c.push({style:e[i].style,text:e[i].text}),f-=e[i].text.length}a.push(c)}n.push(a)}return n},H.Wt=function(t,e,n,i){var i,e,i=i||R();return i?(e&&w.bt(i,e),e=n?E(t):t,b(i,i.font,e)):0},H.Yt=function(t){for(var e,n,e=[],n=0;n<t.length;n++)e.push({style:t[n].style,text:t[n].text&&t[n].text.replace(/\r\n|\r|\n/g,"")});return e},H.ah=function(t,e,n,i,r,o){var a,s,u,c,f,l,a=o||R();if(!a)return 0;for(u=s=0;u<t.length;u++)c=void 0,c=t[u].style&&t[u].style.font?t[u].style.font:e,w.bt(a,c),f="",f=u===t.length-1&&r?E(t[u].text):t[u].text,l=0,i?l=w.vt(c)*f.length/n:T(t[u].text)||(l=b(a,a.font,t[u].text)/n),t[u].style&&t[u].style.vertAlign&&(l*=lt),s+=l;return s},H.Zt=function(t,e,n,i,r,o,a,s){var u,c,f,r,a,l,h,u=0,c=w.vt(o),f,r=H.un(r,(a-4-c*i)/n,o),a=r.length,l,h=c*n;return u=(a-1)*(c/n),u=(u+=H.Wt(r[0],o)/2*i+h)+(H.Wt(r[a-1],o)/2*i+h)},H.tt=E,H.J=R,H.Gge=function(t){for(var e,n,i,r,o,a,s,e=[],n,i,r=0,o=0,a=h.Common.CultureManager.Fe().tCe(t);o<a.length;o++)" "===(s=a[o])?r++:(e.push({word:s,prefixSpaceCount:r}),r=0);return e},Kt=H,f.q=Kt,f.$e=zt=function(f,l){(l=void 0===l?!1:l)&&(f.s2e=function(t){var e;f.c2e=null!=(e=f.registerCallBack)?e:[],f.c2e.push(t)},f.f2e=function(t){var e,e;f.c2e=null!=(e=f.registerCallBack)?e:[],-1!==(e=f.c2e.indexOf(t))&&f.c2e.splice(e,1)}),f.ch=function(t,e){var t,n,i;for(f.fh||(f.fh=[]),f.lh={},n=f.fh,e.name=t,e.priority=e.priority||5e3,i=0;;i++)if(i>=n.length||e.priority>n[i].priority){n.splice(i,0,e);break}l&&(null!=(t=f.c2e)?t:[]).forEach(function(t){t()})},f.et=function(t,e,n,i){var r,r,o,a,s,u,c,o=f.fh;if(o){if(t&&!t.lh&&(t.lh={}),!(a=l&&t?null==(r=t.lh)?void 0:r[e]:null==(r=f.lh)?void 0:r[e]))for(a=l&&t?t.lh[e]=[]:f.lh[e]=[],s=0;s<o.length;s++)(u=o[s])[e]&&(c=!u.isValid||u.isValid.call(t,e))&&a.push(u[e]);for(s=0;s<a.length&&(a[s].call(t,n),!i||!i());s++);}}},Qe.prototype.get=function(t,e){var t=this.Nf[t];return t?t[e]:g},Qe.prototype.set=function(t,e,n){var i,i;(i=(i=this.Nf[t])||(this.Nf[t]={}))[e]=n},f.Rf=Qe,Xe.processBackspaceAndLeftArrowKeyEvent=function(t,e){var n,i,r,o,a,s,s,o,u,c,s,f,o,u,c,s,i,n=l.getSelection();if(!(n.rangeCount<=0))if(i=n.anchorNode,r=n.anchorOffset,o=t.target,w.browser.msie&&!w.browser.edge&&e&&en(i,r,o))s=(a=parseFloat(w.browser.version)<10?hn(o):o.innerText).slice(0,-1),o.innerHTML=s.replace(/\r/g,"").replace(/\n/g,"<br>\u200b"),n.selectAllChildren(o),0<n.rangeCount&&n.collapseToEnd(),fe(t);else if(o=(s=n.getRangeAt(0)).startContainer,u=s.endContainer,c=s.startOffset,s=s.endOffset,f=o===u&&c===s){if((o=fn(i,r))&&o.zeroWidthCharNode){if(u=o.zeroWidthCharNode,c=o.previousTextNode,e)if(nn(u))u.parentNode.removeChild(u);else{if(u.parentNode.removeChild(u.previousSibling),rn(c))return void fe(t);(s=n.getRangeAt(0)).setStart(u,0),s.setEnd(u,1),s.deleteContents()}i=v.createRange(),$e(c)?(i.setStart(c,1),i.setEnd(c,1)):(i.setStartAfter(c),i.setEndAfter(c)),i.collapse(!1),n.removeAllRanges(),n.addRange(i),fe(t)}}else e&&qe(n)},Xe.processDeleteAndRightArrowKeyEvent=function(t,e){var n,i,r,o,a,i,s,r,o,a,i,r,i,u,n=l.getSelection();n.rangeCount<=0||(r=(i=n.getRangeAt(0)).startContainer,o=i.endContainer,a=i.startOffset,i=i.endOffset,(s=r===o&&a===i)?(r=ln(n))&&r.node&&(i=fn(o=r.node,a=r.offset),e?(r=n.getRangeAt(0),1===a?(r.setStart(o,0),r.setEnd(o,1),o.parentNode.removeChild(o.previousSibling),r.deleteContents(),i&&i.previousTextNode&&(i=i.previousTextNode,u=v.createRange(),$e(i)?(u.setStart(i,1),u.setEnd(i,1)):(u.setStartAfter(i),u.setEndAfter(i)),u.collapse(!1),n.removeAllRanges(),n.addRange(u))):0===a&&(r.setStart(o,1),r.setEnd(o,2),r.deleteContents())):((u=v.createRange()).setStart(o,a),u.setEnd(o,a),u.collapse(!1),n.removeAllRanges(),n.addRange(u)),fe(t)):e&&qe(n))},f.di=Xe,f.Of={touch:!1},f.jf=pn,f.Ef=Sn,f._f=wn,f.hCe=bn,f.Df=Cn,f.kf=Mn,kn.hh=function(t){var e,n,i;if(!T(t))return n=t.row+t.rowCount-1,i=t.col+t.colCount-1,(e={}).minRow=t.row,e.minCol=t.col,e.maxRow=n,e.maxCol=i,e},kn.vh=function(t,e){if(T(e)||T(e.minRow))return t;t.minRow=T(t.minRow)?e.minRow:B(t.minRow,e.minRow),t.minCol=T(t.minCol)?e.minCol:B(t.minCol,e.minCol),t.maxRow=T(t.maxRow)?e.maxRow:m(t.maxRow,e.maxRow),t.maxCol=T(t.maxCol)?e.maxCol:m(t.maxCol,e.maxCol)},kn.updateUsedRangeByData=function(t,e,n,i,r){i===r||!T(i)&&!T(r)||T(t)||(!T(i)&&T(r)&&t.removeRowAndColInfo(e,n),T(i)&&!T(r)&&t.addRowAndColInfo(e,n))},f.UsedRangeUtil=kn,Tn.prototype.getRowUsedRange=function(){var t,e,e,n,i,r,o,t,e=this.wholeRows,e=Object.keys(e);return 0<e.length&&(n=+e[0],r=+e[e.length-1],o=1/(i=0)),{minRow:n,minCol:i,maxRow:r,maxCol:o}},Tn.prototype.getColUsedRange=function(){var t,e,e,n,i,r,o,t,e=this.wholeCols,e=Object.keys(e);return 0<e.length&&(i=+e[0],o=+e[e.length-1],r=1/(n=0)),{minRow:n,minCol:i,maxRow:r,maxCol:o}},Tn.prototype.getUsedRange=function(){for(var t,e,n,i,r,o,a,s,u,c,f,l,h,t=this,e=t.rowInfo,n=t.colInfo,s=e.length-1,u=n.length-1,c=0;c<=s;c++)if(e[c]){i=c;break}for(f=s;0<=f;f--)if(e[f]){o=f;break}for(l=0;l<=u;l++)if(n[l]){r=l;break}for(h=u;0<=h;h--)if(n[h]){a=h;break}return{minRow:i,minCol:r,maxRow:o,maxCol:a}},Tn.prototype.addRowAndColInfo=function(t,e){var n=this,i=n.rowInfo,r=n.colInfo;T(t)||T(e)||-1===t&&-1===e||(-1===t?n.wholeCols[e]=!0:-1===e?n.wholeRows[t]=!0:(T(i[t])?i[t]=1:i[t]++,T(r[e])?r[e]=1:r[e]++))},Tn.prototype.removeRowAndColInfo=function(t,e){var n=this,i=n.rowInfo,r=n.colInfo;-1===t&&-1===e||(-1===t?delete n.wholeCols[e]:-1===e?delete n.wholeRows[t]:i[t]&&r[e]&&(i[t]--,r[e]--))},Tn.prototype.addHeadInfo=function(t,e,n){var i,r,o,e,t,i=this,r=n?i.rowInfo:i.colInfo,o=[];o.length=e,e=r.slice(0,t),t=r.slice(t),r=e.concat(o).concat(t),n?i.rowInfo=r:i.colInfo=r},Tn.prototype.removeHeadInfo=function(t,e,n){var i=this,r;(n?i.rowInfo:i.colInfo).splice(t,e)},Tn.prototype.dispose=function(){var t=this;t.rowInfo=g,t.colInfo=g,t.wholeCols=g,t.wholeRows=g},f.BaseUsedRange=Tn,f.NUMBER_ARRAY=["0","1","2","3","4","5","6","7","8","9"],xn.prototype.getTextIndex=function(t){var e,n,i,r,o,a,e=this;if(t.richText)if((i=t.text)===g&&(i=t.text=w.g0(t).text),(n=e.mh[i])===g||e.gh[i]===g)n=e.ph.push(t)-1,e.mh[i]=n,e.gh[i]=[],e.gh[i].push({i:n,v:t});else{for(r=void 0,o=0,a=e.gh[i].length;o<a;o++)if(e.gh[i][o]&&e.gh[i][o].v===t){r=o;break}0<=r?n=e.gh[i][r].i:(n=e.ph.push(t)-1,e.gh[i].push({i:n,v:t}))}else(n=e.mh[t])!==g&&!e.gh[t]||(n=e.ph.push(t)-1,e.mh[t]=n);return n},xn.prototype.getText=function(t){var e=this.ph[t];return T(e)?t:e},xn.prototype.getCount=function(){return this.bh},xn.prototype.reset=function(){var t=this;t.ph=[],t.mh={},t.gh={},t.bh=0},xn.prototype.rebuildSSTDict=function(){var i=this;i.ph.forEach(function(t,e){var n;t.richText?((n=t.text)===g&&(n=t.text=w.g0(t).text),i.mh[n]=e):i.mh[t]=e})},xn.prototype.yh=function(t){var e;t&&0<t.length&&((e=this).reset(),e.ph=t)},xn.prototype.wh=function(){return this.ph},f.SharedStrings=xn,qt={8:{"Gill Sans MT":6,Abadi:7,"Abadi Extra Light":6,"Agency FB":5,Aharoni:5,Aldhabi:4,Algerian:7,"Ami R":5,"Angsana New":4,AngsanaUPC:4,Aparajita:4,"Arabic Typesetting":4,Arial:6,"Arial Black":7,"Arial Narrow":5,"Arial Nova":6,"Arial Nova Cond":6,"Arial Nova Cond Light":5,"Arial Nova Light":6,"Arial Rounded MT Bold":7,"Baskerville Old Face":5,Batang:6,BatangChe:6,"Bauhaus 93":6,"Bell MT":6,Bembo:5,"Berlin Sans FB":7,"Berlin Sans FB Demi":7,"Bernard MT Condensed":5,"Blackadder ITC":4,"Bodoni MT":5,"Bodoni MT Black":7,"Bodoni MT Condensed":4,"Bodoni MT Poster Compressed":4,"Book Antiqua":6,"Bookman Old Style":7,"Bookshelf Symbol 7":8,"Bradley Hand ITC":7,"Britannic Bold":7,Broadway:7,"Browallia New":4,BrowalliaUPC:4,"Brush Script MT":6,Calibri:6,"Calibri Light":6,"Californian FB":5,"Calisto MT":6,Cambria:6,"Cambria Math":6,Candara:6,Castellar:8,Centaur:5,Century:6,"Century Gothic":6,"Century Schoolbook":6,Chiller:5,"Colonna MT":6,"Comic Sans MS":7,Consolas:6,Constantia:6,"Cooper Black":7,"Copperplate Gothic Bold":8,"Copperplate Gothic Light":8,Corbel:6,"Cordia New":4,CordiaUPC:4,"Courier New":7,"Curlz MT":6,Dante:5,DaunPenh:4,David:5,DilleniaUPC:3,DokChampa:6,Dotum:6,DotumChe:6,Dubai:6,"Dubai Light":6,"Dubai Medium":6,Ebrima:6,"Edwardian Script ITC":5,Elephant:8,"Engravers MT":7,"Eras Bold ITC":7,"Eras Demi ITC":7,"Eras Light ITC":6,"Eras Medium ITC":6,EucrosiaUPC:4,Euphemia:6,"Expo M":10,FangSong:6,"Felix Titling":6,"Footlight MT Light":6,Forte:6,"Franklin Gothic Book":6,"Franklin Gothic Demi":6,"Franklin Gothic Demi Cond":6,"Franklin Gothic Heavy":6,"Franklin Gothic Medium":6,"Franklin Gothic Medium Cond":6,FrankRuehl:5,FreesiaUPC:5,"Freestyle Script":4,"French Script MT":4,Gabriola:4,Gadugi:6,Garamond:5,Gautami:7,Georgia:8,"Georgia Pro":6,"Georgia Pro Black":8,"Georgia Pro Cond":6,"Georgia Pro Cond Black":7,"Georgia Pro Cond Light":6,"Georgia Pro Cond Semibold":6,"Georgia Pro Light":6,"Georgia Pro Semibold":7,Gigi:5,"Gill Sans MT Condensed":4,"Gill Sans MT Ext Condensed Bold":4,"Gill Sans Nova":6,"Gill Sans Nova Cond":4,"Gill Sans Nova Cond Lt":3,"Gill Sans Nova Cond Ultra Bold":6,"Gill Sans Nova Cond XBd":6,"Gill Sans Nova Light":6,"Gill Sans Nova Ultra Bold":9,"Gill Sans Ultra Bold":9,"Gill Sans Ultra Bold Condensed":6,Gisha:6,"Gloucester MT Extra Condensed":4,"Goudy Old Style":6,"Goudy Stout":9,Grotesque:5,"Grotesque Light":5,Gulim:6,GulimChe:6,Gungsuh:6,GungsuhChe:6,"Hadassah Friedlaender":6,Haettenschweiler:5,"Harlow Solid Italic":5,Harrington:6,"Headline R":8,HGGothicE:6,HGGothicM:6,HGGyoshotai:6,HGKyokashotai:6,HGMaruGothicMPRO:8,HGMinchoB:7,HGMinchoE:7,HGPGothicE:7,HGPGothicM:7,HGPGyoshotai:6,HGPKyokashotai:6,HGPMinchoB:6,HGPMinchoE:7,HGPSoeiKakugothicUB:8,HGPSoeiKakupoptai:8,HGPSoeiPresenceEB:7,HGSeikaishotaiPRO:7,HGSGothicE:6,HGSGothicM:6,HGSGyoshotai:5,HGSKyokashotai:5,HGSMinchoB:6,HGSMinchoE:7,HGSoeiKakugothicUB:7,HGSoeiKakupoptai:7,HGSoeiPresenceEB:7,HGSSoeiKakugothicUB:7,HGSSoeiKakupoptai:7,HGSSoeiPresenceEB:6,"High Tower Text":5,"HYGothic-Extra":7,"HYGothic-Medium":6,"HYGraphic-Medium":6,"HYGungSo-Bold":6,"HYHeadLine-Medium":6,"HYMyeongJo-Extra":7,"HYPMokGak-Bold":8,"HYPost-Light":7,"HYPost-Medium":8,"HYShortSamul-Medium":4,"HYSinMyeongJo-Medium":7,Impact:6,"Imprint MT Shadow":6,"Informal Roman":6,"Ink Free":6,IrisUPC:6,"Iskoola Pota":6,JasmineUPC:6,"Javanese Text":6,Jokerman:8,"Juice ITC":4,KaiTi:6,Kalinga:6,Kartika:6,"Khmer UI":6,KodchiangUPC:6,Kokila:6,"Kristen ITC":7,"Kunstler Script":4,"Lao UI":6,Latha:6,Leelawadee:6,"Leelawadee UI":6,"Leelawadee UI Semilight":6,"Levenim MT":6,LilyUPC:6,"Lucida Bright":7,"Lucida Calligraphy":7,"Lucida Console":8,"Lucida Fax":7,"Lucida Handwriting":8,"Lucida Sans":7,"Lucida Sans Typewriter":7,"Lucida Sans Unicode":8,"Magic R":7,Magneto:8,"Maiandra GD":7,"Malgun Gothic":6,"Malgun Gothic Semilight":7,Mangal:7,Marlett:12,"Matura MT Script Capitals":8,Meiryo:7,"Meiryo UI":7,"Microsoft GothicNeo":7,"Microsoft Himalaya":5,"Microsoft JhengHei":7,"Microsoft JhengHei Light":7,"Microsoft JhengHei UI":7,"Microsoft JhengHei UI Light":7,"Microsoft New Tai Lue":6,"Microsoft PhagsPa":6,"Microsoft Sans Serif":7,"Microsoft Tai Le":6,"Microsoft Uighur":4,"Microsoft YaHei Light":7,"Microsoft YaHei UI":7,"Microsoft YaHei UI Light":7,"Microsoft Yi Baiti":7,MingLiU:7,MingLiU_HKSCS:7,"MingLiU_HKSCS-ExtB":7,"MingLiU-ExtB":7,Miriam:7,"Miriam Fixed":7,Mistral:6,"Modern No. 20":6,"MoeumT R":7,"Mongolian Baiti":7,"Monotype Corsiva":6,MoolBoran:7,"MS Gothic":6,"MS Mincho":7,"MS Outlook":7,"MS PGothic":7,"MS PMincho":7,"MS Reference Sans Serif":8,"MS Reference Specialty":14,"MS UI Gothic":7,"MT Extra":12,"MV Boli":9,"Myanmar Text":6,Narkisim:7,"Neue Haas Grotesk Text Pro":7,"New Gulim":7,"News Gothic MT":7,"Niagara Engraved":5,"Niagara Solid":5,"Nirmala UI":6,"Nirmala UI Semilight":7,Nyala:7,"OCR A Extended":8,OCRB:8,"Old English Text MT":7,Onyx:5,"Palace Script MT":4,"Palatino Linotype":6,Papyrus:7,Parchment:3,Perpetua:5,"Perpetua Titling MT":7,"Plantagenet Cherokee":7,Playbill:5,PMingLiU:6,"PMingLiU-ExtB":6,"Poor Richard":7,Pristina:6,"Pyunji R":6,Raavi:7,"Rage Italic":7,Ravie:11,Rockwell:6,"Rockwell Condensed":5,"Rockwell Extra Bold":8,"Rockwell Light":7,"Rockwell Nova":7,"Rockwell Nova Cond":7,"Rockwell Nova Cond Light":7,"Rockwell Nova Extra Bold":7,"Rockwell Nova Light":7,Rod:7,"Sakkal Majalla":7,"Sanskrit Text":7,"Script MT Bold":6,"Segoe MDL2 Assets":4,"Segoe Print":8,"Segoe Script":8,"Segoe UI":6,"Segoe UI Black":7,"Segoe UI Emoji":6,"Segoe UI Historic":6,"Segoe UI Light":6,"Segoe UI Semibold":6,"Segoe UI Semilight":6,"Segoe UI Symbol":6,Selawik:6,"Selawik Light":6,"Selawik Semibold":6,"Shonar Bangla":6,"Showcard Gothic":6,Shruti:6,"Simplified Arabic":6,"Simplified Arabic Fixed":6,"SimSun-ExtB":6,"Sitka Banner":6,"Sitka Display":6,"Sitka Heading":6,"Sitka Small":8,"Sitka Subheading":6,"Sitka Text":7,"Snap ITC":10,"Source Sans Pro":6,"Source Sans Pro Black":6,"Source Sans Pro ExtraLight":6,"Source Sans Pro Light":6,"Source Sans Pro SemiBold":6,Stencil:6,Sylfaen:6,Symbol:6,Tahoma:6,"Tempus Sans ITC":7,"TH SarabunPSK":6,"Times New Roman":6,"Traditional Arabic":6,"Trebuchet MS":6,Tunga:6,"Tw Cen MT":6,"Tw Cen MT Condensed":4,"Tw Cen MT Condensed Extra Bold":5,"UD Digi Kyokasho N-B":6,"UD Digi Kyokasho NK-B":6,"UD Digi Kyokasho NK-R":6,"UD Digi Kyokasho NP-B":6,"UD Digi Kyokasho NP-R":6,"UD Digi Kyokasho N-R":6,Univers:6,"Univers Condensed":6,"Univers Condensed Light":6,"Univers Light":6,"Urdu Typesetting":6,Utsaah:6,Vani:6,Verdana:7,"Verdana Pro":6,"Verdana Pro Black":6,"Verdana Pro Cond":6,"Verdana Pro Cond Black":6,"Verdana Pro Cond Light":6,"Verdana Pro Cond SemiBold":6,"Verdana Pro Light":6,"Verdana Pro SemiBold":6,Vijaya:6,"Viner Hand ITC":7,Vivaldi:5,"Vladimir Script":5,Vrinda:6,Webdings:11,"Wide Latin":14,Wingdings:15,"Wingdings 2":12,"Wingdings 3":10,"Yet R":6,"Yu Gothic":6,"Yu Gothic Light":6,"Yu Gothic Medium":6,"Yu Gothic UI":6,"Yu Gothic UI Light":6,"Yu Gothic UI Semibold":6,"Yu Gothic UI Semilight":6,"Yu Mincho":6,"Yu Mincho Demibold":6,"Yu Mincho Light":6,"\u4eff\u5b8b":6,"\u534e\u6587\u4e2d\u5b8b":7,"\u534e\u6587\u4eff\u5b8b":5,"\u534e\u6587\u5b8b\u4f53":5,"\u534e\u6587\u5f69\u4e91":6,"\u534e\u6587\u65b0\u9b4f":6,"\u534e\u6587\u6977\u4f53":5,"\u534e\u6587\u7425\u73c0":6,"\u534e\u6587\u7ec6\u9ed1":6,"\u534e\u6587\u884c\u6977":6,"\u534e\u6587\u96b6\u4e66":5,"\u5b8b\u4f53":6,"\u5e7c\u5706":6,"\u5fae\u8f6f\u96c5\u9ed1":6,"\u5fae\u8f6f\u96c5\u9ed1 Light":6,"\u65b0\u5b8b\u4f53":6,"\u65b9\u6b63\u59da\u4f53":6,"\u65b9\u6b63\u8212\u4f53":6,"\u6977\u4f53":6,"\u7b49\u7ebf":6,"\u7b49\u7ebf Light":6,"\u96b6\u4e66":6,"\u9ed1\u4f53":6,"\u6e38\u30b4\u30b7\u30c3\u30af":6,"\uff2d\uff33 \uff30\u660e\u671d":6,'"\uff2d\uff33 \uff30\u30b4\u30b7\u30c3\u30af"':6,"\u30e1\u30a4\u30ea\u30aa":7,"HG\uff7a\uff9e\uff7c\uff6f\uff78E":6,"HG\u660e\u671dB":6,"HG\uff7a\uff9e\uff7c\uff6f\uff78M":6},9:{"Gill Sans MT":6,Abadi:7,"Abadi Extra Light":7,"Agency FB":5,Aharoni:5,Aldhabi:4,Algerian:7,"Ami R":5,"Angsana New":4,AngsanaUPC:4,Aparajita:5,"Arabic Typesetting":4,Arial:7,"Arial Black":8,"Arial Narrow":5,"Arial Nova":7,"Arial Nova Cond":6,"Arial Nova Cond Light":5,"Arial Nova Light":7,"Arial Rounded MT Bold":7,"Baskerville Old Face":6,Batang:6,BatangChe:6,"Bauhaus 93":7,"Bell MT":6,Bembo:6,"Berlin Sans FB":7,"Berlin Sans FB Demi":8,"Bernard MT Condensed":6,"Blackadder ITC":5,"Bodoni MT":6,"Bodoni MT Black":8,"Bodoni MT Condensed":4,"Bodoni MT Poster Compressed":4,"Book Antiqua":6,"Bookman Old Style":7,"Bookshelf Symbol 7":9,"Bradley Hand ITC":8,"Britannic Bold":7,Broadway:8,"Browallia New":4,BrowalliaUPC:4,"Brush Script MT":6,Calibri:6,"Calibri Light":6,"Californian FB":7,"Calisto MT":6,Cambria:7,"Cambria Math":7,Candara:7,Castellar:9,Centaur:6,Century:7,"Century Gothic":7,"Century Schoolbook":7,Chiller:6,"Colonna MT":6,"Comic Sans MS":7,Consolas:7,Constantia:7,"Cooper Black":7,"Copperplate Gothic Bold":9,"Copperplate Gothic Light":9,Corbel:6,"Cordia New":4,CordiaUPC:4,"Courier New":7,"Curlz MT":6,Dante:5,DaunPenh:4,David:5,DilleniaUPC:4,DokChampa:7,Dotum:6,DotumChe:6,Dubai:6,"Dubai Light":6,"Dubai Medium":6,Ebrima:6,"Edwardian Script ITC":6,Elephant:9,"Engravers MT":8,"Eras Bold ITC":8,"Eras Demi ITC":7,"Eras Light ITC":6,"Eras Medium ITC":7,EucrosiaUPC:5,Euphemia:7,"Expo M":10,FangSong:6,"Felix Titling":7,"Footlight MT Light":7,Forte:6,"Franklin Gothic Book":7,"Franklin Gothic Demi":7,"Franklin Gothic Demi Cond":6,"Franklin Gothic Heavy":7,"Franklin Gothic Medium":7,"Franklin Gothic Medium Cond":6,FrankRuehl:5,FreesiaUPC:5,"Freestyle Script":5,"French Script MT":4,Gabriola:5,Gadugi:6,Garamond:6,Gautami:7,Georgia:8,"Georgia Pro":7,"Georgia Pro Black":9,"Georgia Pro Cond":6,"Georgia Pro Cond Black":8,"Georgia Pro Cond Light":6,"Georgia Pro Cond Semibold":7,"Georgia Pro Light":7,"Georgia Pro Semibold":7,Gigi:7,"Gill Sans MT Condensed":4,"Gill Sans MT Ext Condensed Bold":4,"Gill Sans Nova":6,"Gill Sans Nova Cond":4,"Gill Sans Nova Cond Lt":4,"Gill Sans Nova Cond Ultra Bold":7,"Gill Sans Nova Cond XBd":6,"Gill Sans Nova Light":6,"Gill Sans Nova Ultra Bold":10,"Gill Sans Ultra Bold":10,"Gill Sans Ultra Bold Condensed":7,Gisha:6,"Gloucester MT Extra Condensed":5,"Goudy Old Style":6,"Goudy Stout":10,Grotesque:6,"Grotesque Light":6,Gulim:6,GulimChe:6,Gungsuh:6,GungsuhChe:6,"Hadassah Friedlaender":7,Haettenschweiler:5,"Harlow Solid Italic":6,Harrington:7,"Headline R":9,HGGothicE:6,HGGothicM:6,HGGyoshotai:6,HGKyokashotai:6,HGMaruGothicMPRO:9,HGMinchoB:7,HGMinchoE:7,HGPGothicE:8,HGPGothicM:8,HGPGyoshotai:7,HGPKyokashotai:7,HGPMinchoB:7,HGPMinchoE:7,HGPSoeiKakugothicUB:9,HGPSoeiKakupoptai:9,HGPSoeiPresenceEB:8,HGSeikaishotaiPRO:7,HGSGothicE:7,HGSGothicM:7,HGSGyoshotai:6,HGSKyokashotai:6,HGSMinchoB:7,HGSMinchoE:7,HGSoeiKakugothicUB:7,HGSoeiKakupoptai:7,HGSoeiPresenceEB:7,HGSSoeiKakugothicUB:8,HGSSoeiKakupoptai:8,HGSSoeiPresenceEB:7,"High Tower Text":6,"HYGothic-Extra":8,"HYGothic-Medium":7,"HYGraphic-Medium":7,"HYGungSo-Bold":7,"HYHeadLine-Medium":7,"HYMyeongJo-Extra":8,"HYPMokGak-Bold":9,"HYPost-Light":8,"HYPost-Medium":9,"HYShortSamul-Medium":5,"HYSinMyeongJo-Medium":8,Impact:7,"Imprint MT Shadow":6,"Informal Roman":7,"Ink Free":6,IrisUPC:6,"Iskoola Pota":6,JasmineUPC:6,"Javanese Text":7,Jokerman:9,"Juice ITC":4,KaiTi:6,Kalinga:6,Kartika:6,"Khmer UI":6,KodchiangUPC:6,Kokila:6,"Kristen ITC":7,"Kunstler Script":4,"Lao UI":6,Latha:6,Leelawadee:6,"Leelawadee UI":6,"Leelawadee UI Semilight":7,"Levenim MT":6,LilyUPC:6,"Lucida Bright":7,"Lucida Calligraphy":9,"Lucida Console":8,"Lucida Fax":8,"Lucida Handwriting":9,"Lucida Sans":8,"Lucida Sans Typewriter":7,"Lucida Sans Unicode":9,"Magic R":8,Magneto:9,"Maiandra GD":8,"Malgun Gothic":7,"Malgun Gothic Semilight":8,Mangal:7,Marlett:13,"Matura MT Script Capitals":9,Meiryo:8,"Meiryo UI":8,"Microsoft GothicNeo":7,"Microsoft Himalaya":5,"Microsoft JhengHei":7,"Microsoft JhengHei Light":8,"Microsoft JhengHei UI":7,"Microsoft JhengHei UI Light":8,"Microsoft New Tai Lue":7,"Microsoft PhagsPa":7,"Microsoft Sans Serif":8,"Microsoft Tai Le":7,"Microsoft Uighur":5,"Microsoft YaHei Light":8,"Microsoft YaHei UI":7,"Microsoft YaHei UI Light":8,"Microsoft Yi Baiti":7,MingLiU:7,MingLiU_HKSCS:7,"MingLiU_HKSCS-ExtB":7,"MingLiU-ExtB":7,Miriam:7,"Miriam Fixed":7,Mistral:6,"Modern No. 20":6,"MoeumT R":8,"Mongolian Baiti":7,"Monotype Corsiva":6,MoolBoran:7,"MS Gothic":6,"MS Mincho":7,"MS Outlook":7,"MS PGothic":7,"MS PMincho":7,"MS Reference Sans Serif":9,"MS Reference Specialty":15,"MS UI Gothic":7,"MT Extra":13,"MV Boli":9,"Myanmar Text":7,Narkisim:7,"Neue Haas Grotesk Text Pro":7,"New Gulim":8,"News Gothic MT":7,"Niagara Engraved":5,"Niagara Solid":5,"Nirmala UI":7,"Nirmala UI Semilight":8,Nyala:7,"OCR A Extended":8,OCRB:8,"Old English Text MT":7,Onyx:5,"Palace Script MT":5,"Palatino Linotype":6,Papyrus:8,Parchment:4,Perpetua:6,"Perpetua Titling MT":8,"Plantagenet Cherokee":7,Playbill:5,PMingLiU:7,"PMingLiU-ExtB":7,"Poor Richard":8,Pristina:6,"Pyunji R":7,Raavi:7,"Rage Italic":7,Ravie:12,Rockwell:7,"Rockwell Condensed":5,"Rockwell Extra Bold":8,"Rockwell Light":7,"Rockwell Nova":7,"Rockwell Nova Cond":7,"Rockwell Nova Cond Light":7,"Rockwell Nova Extra Bold":7,"Rockwell Nova Light":7,Rod:7,"Sakkal Majalla":7,"Sanskrit Text":7,"Script MT Bold":6,"Segoe MDL2 Assets":5,"Segoe Print":9,"Segoe Script":9,"Segoe UI":6,"Segoe UI Black":7,"Segoe UI Emoji":6,"Segoe UI Historic":6,"Segoe UI Light":6,"Segoe UI Semibold":7,"Segoe UI Semilight":7,"Segoe UI Symbol":6,Selawik:6,"Selawik Light":6,"Selawik Semibold":6,"Shonar Bangla":6,"Showcard Gothic":8,Shruti:6,"Simplified Arabic":6,"Simplified Arabic Fixed":6,"SimSun-ExtB":6,"Sitka Banner":6,"Sitka Display":6,"Sitka Heading":7,"Sitka Small":8,"Sitka Subheading":7,"Sitka Text":8,"Snap ITC":10,"Source Sans Pro":6,"Source Sans Pro Black":6,"Source Sans Pro ExtraLight":6,"Source Sans Pro Light":6,"Source Sans Pro SemiBold":6,Stencil:7,Sylfaen:6,Symbol:6,Tahoma:7,"Tempus Sans ITC":8,"TH SarabunPSK":6,"Times New Roman":6,"Traditional Arabic":6,"Trebuchet MS":6,Tunga:6,"Tw Cen MT":7,"Tw Cen MT Condensed":4,"Tw Cen MT Condensed Extra Bold":6,"UD Digi Kyokasho N-B":6,"UD Digi Kyokasho NK-B":6,"UD Digi Kyokasho NK-R":6,"UD Digi Kyokasho NP-B":6,"UD Digi Kyokasho NP-R":6,"UD Digi Kyokasho N-R":6,Univers:6,"Univers Condensed":6,"Univers Condensed Light":6,"Univers Light":6,"Urdu Typesetting":6,Utsaah:6,Vani:6,Verdana:8,"Verdana Pro":6,"Verdana Pro Black":6,"Verdana Pro Cond":6,"Verdana Pro Cond Black":6,"Verdana Pro Cond Light":6,"Verdana Pro Cond SemiBold":6,"Verdana Pro Light":6,"Verdana Pro SemiBold":6,Vijaya:6,"Viner Hand ITC":8,Vivaldi:5,"Vladimir Script":6,Vrinda:6,Webdings:12,"Wide Latin":15,Wingdings:16,"Wingdings 2":14,"Wingdings 3":11,"Yet R":6,"Yu Gothic":7,"Yu Gothic Light":6,"Yu Gothic Medium":7,"Yu Gothic UI":6,"Yu Gothic UI Light":6,"Yu Gothic UI Semibold":7,"Yu Gothic UI Semilight":7,"Yu Mincho":7,"Yu Mincho Demibold":6,"Yu Mincho Light":6,"\u4eff\u5b8b":6,"\u534e\u6587\u4e2d\u5b8b":7,"\u534e\u6587\u4eff\u5b8b":6,"\u534e\u6587\u5b8b\u4f53":6,"\u534e\u6587\u5f69\u4e91":7,"\u534e\u6587\u65b0\u9b4f":7,"\u534e\u6587\u6977\u4f53":6,"\u534e\u6587\u7425\u73c0":7,"\u534e\u6587\u7ec6\u9ed1":7,"\u534e\u6587\u884c\u6977":6,"\u534e\u6587\u96b6\u4e66":5,"\u5b8b\u4f53":6,"\u5e7c\u5706":6,"\u5fae\u8f6f\u96c5\u9ed1":7,"\u5fae\u8f6f\u96c5\u9ed1 Light":7,"\u65b0\u5b8b\u4f53":6,"\u65b9\u6b63\u59da\u4f53":6,"\u65b9\u6b63\u8212\u4f53":7,"\u6977\u4f53":6,"\u7b49\u7ebf":6,"\u7b49\u7ebf Light":6,"\u96b6\u4e66":6,"\u9ed1\u4f53":6,"\u6e38\u30b4\u30b7\u30c3\u30af":7,"\uff2d\uff33 \uff30\u660e\u671d":6,'"\uff2d\uff33 \uff30\u30b4\u30b7\u30c3\u30af"':6,"\u30e1\u30a4\u30ea\u30aa":7,"HG\uff7a\uff9e\uff7c\uff6f\uff78E":6,"HG\u660e\u671dB":6,"HG\uff7a\uff9e\uff7c\uff6f\uff78M":6},10:{"Gill Sans MT":7,Abadi:8,"Abadi Extra Light":7,"Agency FB":5,Aharoni:5,Aldhabi:4,Algerian:8,"Ami R":5,"Angsana New":4,AngsanaUPC:4,Aparajita:5,"Arabic Typesetting":4,Arial:7,"Arial Black":9,"Arial Narrow":6,"Arial Nova":7,"Arial Nova Cond":7,"Arial Nova Cond Light":6,"Arial Nova Light":7,"Arial Rounded MT Bold":8,"Baskerville Old Face":6,Batang:7,BatangChe:7,"Bauhaus 93":7,"Bell MT":7,Bembo:6,"Berlin Sans FB":8,"Berlin Sans FB Demi":8,"Bernard MT Condensed":6,"Blackadder ITC":5,"Bodoni MT":6,"Bodoni MT Black":9,"Bodoni MT Condensed":4,"Bodoni MT Poster Compressed":5,"Book Antiqua":7,"Bookman Old Style":8,"Bookshelf Symbol 7":10,"Bradley Hand ITC":8,"Britannic Bold":8,Broadway:8,"Browallia New":5,BrowalliaUPC:5,"Brush Script MT":7,Calibri:7,"Calibri Light":7,"Californian FB":7,"Calisto MT":7,Cambria:7,"Cambria Math":7,Candara:7,Castellar:9,Centaur:6,Century:7,"Century Gothic":7,"Century Schoolbook":7,Chiller:6,"Colonna MT":7,"Comic Sans MS":8,Consolas:7,Constantia:7,"Cooper Black":8,"Copperplate Gothic Bold":9,"Copperplate Gothic Light":9,Corbel:7,"Cordia New":5,CordiaUPC:5,"Courier New":8,"Curlz MT":7,Dante:6,DaunPenh:4,David:6,DilleniaUPC:4,DokChampa:7,Dotum:6,DotumChe:7,Dubai:7,"Dubai Light":7,"Dubai Medium":7,Ebrima:7,"Edwardian Script ITC":6,Elephant:10,"Engravers MT":8,"Eras Bold ITC":8,"Eras Demi ITC":8,"Eras Light ITC":7,"Eras Medium ITC":7,EucrosiaUPC:5,Euphemia:8,"Expo M":11,FangSong:7,"Felix Titling":8,"Footlight MT Light":7,Forte:7,"Franklin Gothic Book":8,"Franklin Gothic Demi":8,"Franklin Gothic Demi Cond":7,"Franklin Gothic Heavy":8,"Franklin Gothic Medium":8,"Franklin Gothic Medium Cond":7,FrankRuehl:5,FreesiaUPC:6,"Freestyle Script":5,"French Script MT":5,Gabriola:5,Gadugi:7,Garamond:6,Gautami:8,Georgia:9,"Georgia Pro":7,"Georgia Pro Black":9,"Georgia Pro Cond":7,"Georgia Pro Cond Black":8,"Georgia Pro Cond Light":7,"Georgia Pro Cond Semibold":7,"Georgia Pro Light":7,"Georgia Pro Semibold":8,Gigi:7,"Gill Sans MT Condensed":5,"Gill Sans MT Ext Condensed Bold":4,"Gill Sans Nova":7,"Gill Sans Nova Cond":4,"Gill Sans Nova Cond Lt":4,"Gill Sans Nova Cond Ultra Bold":8,"Gill Sans Nova Cond XBd":7,"Gill Sans Nova Light":7,"Gill Sans Nova Ultra Bold":11,"Gill Sans Ultra Bold":11,"Gill Sans Ultra Bold Condensed":8,Gisha:7,"Gloucester MT Extra Condensed":5,"Goudy Old Style":7,"Goudy Stout":11,Grotesque:6,"Grotesque Light":6,Gulim:7,GulimChe:7,Gungsuh:6,GungsuhChe:7,"Hadassah Friedlaender":7,Haettenschweiler:6,"Harlow Solid Italic":6,Harrington:7,"Headline R":9,HGGothicE:7,HGGothicM:7,HGGyoshotai:7,HGKyokashotai:7,HGMaruGothicMPRO:10,HGMinchoB:8,HGMinchoE:8,HGPGothicE:8,HGPGothicM:9,HGPGyoshotai:7,HGPKyokashotai:7,HGPMinchoB:7,HGPMinchoE:8,HGPSoeiKakugothicUB:9,HGPSoeiKakupoptai:9,HGPSoeiPresenceEB:8,HGSeikaishotaiPRO:8,HGSGothicE:7,HGSGothicM:8,HGSGyoshotai:6,HGSKyokashotai:6,HGSMinchoB:7,HGSMinchoE:8,HGSoeiKakugothicUB:8,HGSoeiKakupoptai:8,HGSoeiPresenceEB:8,HGSSoeiKakugothicUB:8,HGSSoeiKakupoptai:8,HGSSoeiPresenceEB:7,"High Tower Text":6,"HYGothic-Extra":8,"HYGothic-Medium":8,"HYGraphic-Medium":8,"HYGungSo-Bold":8,"HYHeadLine-Medium":8,"HYMyeongJo-Extra":9,"HYPMokGak-Bold":9,"HYPost-Light":9,"HYPost-Medium":9,"HYShortSamul-Medium":5,"HYSinMyeongJo-Medium":8,Impact:7,"Imprint MT Shadow":7,"Informal Roman":7,"Ink Free":7,IrisUPC:7,"Iskoola Pota":7,JasmineUPC:7,"Javanese Text":8,Jokerman:9,"Juice ITC":5,KaiTi:7,Kalinga:7,Kartika:7,"Khmer UI":7,KodchiangUPC:4,Kokila:7,"Kristen ITC":8,"Kunstler Script":5,"Lao UI":7,Latha:7,Leelawadee:7,"Leelawadee UI":7,"Leelawadee UI Semilight":7,"Levenim MT":7,LilyUPC:7,"Lucida Bright":8,"Lucida Calligraphy":10,"Lucida Console":9,"Lucida Fax":9,"Lucida Handwriting":10,"Lucida Sans":9,"Lucida Sans Typewriter":8,"Lucida Sans Unicode":9,"Magic R":8,Magneto:10,"Maiandra GD":9,"Malgun Gothic":8,"Malgun Gothic Semilight":8,Mangal:8,Marlett:14,"Matura MT Script Capitals":10,Meiryo:9,"Meiryo UI":9,"Microsoft GothicNeo":8,"Microsoft Himalaya":5,"Microsoft JhengHei":8,"Microsoft JhengHei Light":8,"Microsoft JhengHei UI":8,"Microsoft JhengHei UI Light":8,"Microsoft New Tai Lue":7,"Microsoft PhagsPa":7,"Microsoft Sans Serif":8,"Microsoft Tai Le":7,"Microsoft Uighur":5,"Microsoft YaHei Light":8,"Microsoft YaHei UI":8,"Microsoft YaHei UI Light":8,"Microsoft Yi Baiti":8,MingLiU:8,MingLiU_HKSCS:8,"MingLiU_HKSCS-ExtB":8,"MingLiU-ExtB":8,Miriam:8,"Miriam Fixed":8,Mistral:7,"Modern No. 20":7,"MoeumT R":8,"Mongolian Baiti":8,"Monotype Corsiva":7,MoolBoran:8,"MS Gothic":7,"MS Mincho":8,"MS Outlook":8,"MS PGothic":8,"MS PMincho":8,"MS Reference Sans Serif":9,"MS Reference Specialty":17,"MS UI Gothic":8,"MT Extra":14,"MV Boli":10,"Myanmar Text":7,Narkisim:8,"Neue Haas Grotesk Text Pro":8,"New Gulim":8,"News Gothic MT":8,"Niagara Engraved":5,"Niagara Solid":5,"Nirmala UI":7,"Nirmala UI Semilight":8,Nyala:8,"OCR A Extended":9,OCRB:9,"Old English Text MT":8,Onyx:6,"Palace Script MT":5,"Palatino Linotype":7,Papyrus:9,Parchment:4,Perpetua:6,"Perpetua Titling MT":9,"Plantagenet Cherokee":8,Playbill:6,PMingLiU:7,"PMingLiU-ExtB":7,"Poor Richard":8,Pristina:8,"Pyunji R":7,Raavi:8,"Rage Italic":8,Ravie:13,Rockwell:7,"Rockwell Condensed":6,"Rockwell Extra Bold":9,"Rockwell Light":8,"Rockwell Nova":8,"Rockwell Nova Cond":8,"Rockwell Nova Cond Light":8,"Rockwell Nova Extra Bold":8,"Rockwell Nova Light":8,Rod:8,"Sakkal Majalla":8,"Sanskrit Text":8,"Script MT Bold":7,"Segoe MDL2 Assets":5,"Segoe Print":10,"Segoe Script":10,"Segoe UI":7,"Segoe UI Black":8,"Segoe UI Emoji":7,"Segoe UI Historic":7,"Segoe UI Light":7,"Segoe UI Semibold":7,"Segoe UI Semilight":7,"Segoe UI Symbol":7,Selawik:7,"Selawik Light":7,"Selawik Semibold":7,"Shonar Bangla":7,"Showcard Gothic":8,Shruti:7,"Simplified Arabic":7,"Simplified Arabic Fixed":7,"SimSun-ExtB":7,"Sitka Banner":7,"Sitka Display":7,"Sitka Heading":7,"Sitka Small":9,"Sitka Subheading":8,"Sitka Text":8,"Snap ITC":11,"Source Sans Pro":7,"Source Sans Pro Black":7,"Source Sans Pro ExtraLight":7,"Source Sans Pro Light":7,"Source Sans Pro SemiBold":7,Stencil:7,Sylfaen:7,Symbol:7,Tahoma:7,"Tempus Sans ITC":9,"TH SarabunPSK":7,"Times New Roman":6,"Traditional Arabic":7,"Trebuchet MS":7,Tunga:7,"Tw Cen MT":7,"Tw Cen MT Condensed":5,"Tw Cen MT Condensed Extra Bold":6,"UD Digi Kyokasho N-B":7,"UD Digi Kyokasho NK-B":7,"UD Digi Kyokasho NK-R":7,"UD Digi Kyokasho NP-B":7,"UD Digi Kyokasho NP-R":7,"UD Digi Kyokasho N-R":7,Univers:7,"Univers Condensed":7,"Univers Condensed Light":7,"Univers Light":7,"Urdu Typesetting":7,Utsaah:7,Vani:7,Verdana:8,"Verdana Pro":8,"Verdana Pro Black":7,"Verdana Pro Cond":7,"Verdana Pro Cond Black":7,"Verdana Pro Cond Light":7,"Verdana Pro Cond SemiBold":7,"Verdana Pro Light":7,"Verdana Pro SemiBold":7,Vijaya:7,"Viner Hand ITC":9,Vivaldi:6,"Vladimir Script":6,Vrinda:7,Webdings:13,"Wide Latin":16,Wingdings:17,"Wingdings 2":15,"Wingdings 3":12,"Yet R":7,"Yu Gothic":7,"Yu Gothic Light":7,"Yu Gothic Medium":7,"Yu Gothic UI":7,"Yu Gothic UI Light":7,"Yu Gothic UI Semibold":7,"Yu Gothic UI Semilight":7,"Yu Mincho":7,"Yu Mincho Demibold":7,"Yu Mincho Light":7,"\u4eff\u5b8b":7,"\u534e\u6587\u4e2d\u5b8b":8,"\u534e\u6587\u4eff\u5b8b":6,"\u534e\u6587\u5b8b\u4f53":6,"\u534e\u6587\u5f69\u4e91":7,"\u534e\u6587\u65b0\u9b4f":8,"\u534e\u6587\u6977\u4f53":6,"\u534e\u6587\u7425\u73c0":7,"\u534e\u6587\u7ec6\u9ed1":7,"\u534e\u6587\u884c\u6977":7,"\u534e\u6587\u96b6\u4e66":6,"\u5b8b\u4f53":7,"\u5e7c\u5706":7,"\u5fae\u8f6f\u96c5\u9ed1":8,"\u5fae\u8f6f\u96c5\u9ed1 Light":7,"\u65b0\u5b8b\u4f53":7,"\u65b9\u6b63\u59da\u4f53":7,"\u65b9\u6b63\u8212\u4f53":7,"\u6977\u4f53":7,"\u7b49\u7ebf":7,"\u7b49\u7ebf Light":7,"\u96b6\u4e66":7,"\u9ed1\u4f53":7,"\u6e38\u30b4\u30b7\u30c3\u30af":7,"\uff2d\uff33 \uff30\u660e\u671d":7,'"\uff2d\uff33 \uff30\u30b4\u30b7\u30c3\u30af"':7,"\u30e1\u30a4\u30ea\u30aa":8,"HG\uff7a\uff9e\uff7c\uff6f\uff78E":7,"HG\u660e\u671dB":7,"HG\uff7a\uff9e\uff7c\uff6f\uff78M":7},11:{"Gill Sans MT":8,Abadi:9,"Abadi Extra Light":8,"Agency FB":6,Aharoni:6,Aldhabi:5,Algerian:9,"Ami R":6,"Angsana New":5,AngsanaUPC:5,Aparajita:6,"Arabic Typesetting":5,Arial:8,"Arial Black":10,"Arial Narrow":7,"Arial Nova":8,"Arial Nova Cond":8,"Arial Nova Cond Light":7,"Arial Nova Light":8,"Arial Rounded MT Bold":9,"Baskerville Old Face":7,Batang:8,BatangChe:8,"Bauhaus 93":9,"Bell MT":8,Bembo:7,"Berlin Sans FB":9,"Berlin Sans FB Demi":9,"Bernard MT Condensed":7,"Blackadder ITC":6,"Bodoni MT":7,"Bodoni MT Black":10,"Bodoni MT Condensed":5,"Bodoni MT Poster Compressed":5,"Book Antiqua":8,"Bookman Old Style":9,"Bookshelf Symbol 7":11,"Bradley Hand ITC":10,"Britannic Bold":9,Broadway:10,"Browallia New":5,BrowalliaUPC:5,"Brush Script MT":8,Calibri:7,"Calibri Light":8,"Californian FB":9,"Calisto MT":8,Cambria:8,"Cambria Math":8,Candara:8,Castellar:11,Centaur:7,Century:8,"Century Gothic":8,"Century Schoolbook":8,Chiller:7,"Colonna MT":8,"Comic Sans MS":9,Consolas:8,Constantia:8,"Cooper Black":9,"Copperplate Gothic Bold":11,"Copperplate Gothic Light":11,Corbel:8,"Cordia New":5,CordiaUPC:5,"Courier New":9,"Curlz MT":8,Dante:7,DaunPenh:5,David:7,DilleniaUPC:5,DokChampa:8,Dotum:9,DotumChe:8,Dubai:8,"Dubai Light":8,"Dubai Medium":8,Ebrima:8,"Edwardian Script ITC":7,Elephant:11,"Engravers MT":10,"Eras Bold ITC":10,"Eras Demi ITC":9,"Eras Light ITC":8,"Eras Medium ITC":9,EucrosiaUPC:6,Euphemia:9,"Expo M":13,FangSong:8,"Felix Titling":9,"Footlight MT Light":8,Forte:8,"Franklin Gothic Book":9,"Franklin Gothic Demi":9,"Franklin Gothic Demi Cond":8,"Franklin Gothic Heavy":9,"Franklin Gothic Medium":9,"Franklin Gothic Medium Cond":8,FrankRuehl:6,FreesiaUPC:7,"Freestyle Script":6,"French Script MT":5,Gabriola:6,Gadugi:8,Garamond:7,Gautami:9,Georgia:9,"Georgia Pro":8,"Georgia Pro Black":11,"Georgia Pro Cond":8,"Georgia Pro Cond Black":10,"Georgia Pro Cond Light":8,"Georgia Pro Cond Semibold":8,"Georgia Pro Light":8,"Georgia Pro Semibold":9,Gigi:7,"Gill Sans MT Condensed":5,"Gill Sans MT Ext Condensed Bold":5,"Gill Sans Nova":8,"Gill Sans Nova Cond":5,"Gill Sans Nova Cond Lt":5,"Gill Sans Nova Cond Ultra Bold":9,"Gill Sans Nova Cond XBd":8,"Gill Sans Nova Light":8,"Gill Sans Nova Ultra Bold":13,"Gill Sans Ultra Bold":13,"Gill Sans Ultra Bold Condensed":9,Gisha:8,"Gloucester MT Extra Condensed":6,"Goudy Old Style":8,"Goudy Stout":12,Grotesque:7,"Grotesque Light":7,Gulim:8,GulimChe:8,Gungsuh:7,GungsuhChe:8,"Hadassah Friedlaender":9,Haettenschweiler:7,"Harlow Solid Italic":7,Harrington:8,"Headline R":11,HGGothicE:8,HGGothicM:8,HGGyoshotai:8,HGKyokashotai:8,HGMaruGothicMPRO:11,HGMinchoB:9,HGMinchoE:9,HGPGothicE:9,HGPGothicM:10,HGPGyoshotai:8,HGPKyokashotai:8,HGPMinchoB:8,HGPMinchoE:9,HGPSoeiKakugothicUB:10,HGPSoeiKakupoptai:11,HGPSoeiPresenceEB:9,HGSeikaishotaiPRO:9,HGSGothicE:8,HGSGothicM:9,HGSGyoshotai:7,HGSKyokashotai:7,HGSMinchoB:8,HGSMinchoE:9,HGSoeiKakugothicUB:9,HGSoeiKakupoptai:9,HGSoeiPresenceEB:9,HGSSoeiKakugothicUB:9,HGSSoeiKakupoptai:10,HGSSoeiPresenceEB:8,"High Tower Text":7,"HYGothic-Extra":9,"HYGothic-Medium":9,"HYGraphic-Medium":9,"HYGungSo-Bold":9,"HYHeadLine-Medium":9,"HYMyeongJo-Extra":10,"HYPMokGak-Bold":11,"HYPost-Light":10,"HYPost-Medium":11,"HYShortSamul-Medium":6,"HYSinMyeongJo-Medium":9,Impact:8,"Imprint MT Shadow":8,"Informal Roman":8,"Ink Free":8,IrisUPC:8,"Iskoola Pota":8,JasmineUPC:8,"Javanese Text":9,Jokerman:11,"Juice ITC":6,KaiTi:8,Kalinga:8,Kartika:8,"Khmer UI":8,KodchiangUPC:5,Kokila:8,"Kristen ITC":9,"Kunstler Script":5,"Lao UI":8,Latha:8,Leelawadee:8,"Leelawadee UI":8,"Leelawadee UI Semilight":8,"Levenim MT":9,LilyUPC:8,"Lucida Bright":9,"Lucida Calligraphy":11,"Lucida Console":10,"Lucida Fax":10,"Lucida Handwriting":11,"Lucida Sans":10,"Lucida Sans Typewriter":9,"Lucida Sans Unicode":10,"Magic R":9,Magneto:12,"Maiandra GD":10,"Malgun Gothic":9,"Malgun Gothic Semilight":9,Mangal:9,Marlett:16,"Matura MT Script Capitals":11,Meiryo:9,"Meiryo UI":10,"Microsoft GothicNeo":9,"Microsoft Himalaya":6,"Microsoft JhengHei":9,"Microsoft JhengHei Light":10,"Microsoft JhengHei UI":9,"Microsoft JhengHei UI Light":10,"Microsoft New Tai Lue":9,"Microsoft PhagsPa":9,"Microsoft Sans Serif":9,"Microsoft Tai Le":9,"Microsoft Uighur":6,"Microsoft YaHei Light":10,"Microsoft YaHei UI":9,"Microsoft YaHei UI Light":10,"Microsoft Yi Baiti":9,MingLiU:9,MingLiU_HKSCS:9,"MingLiU_HKSCS-ExtB":9,"MingLiU-ExtB":9,Miriam:9,"Miriam Fixed":10,Mistral:8,"Modern No. 20":8,"MoeumT R":9,"Mongolian Baiti":9,"Monotype Corsiva":8,MoolBoran:9,"MS Gothic":8,"MS Mincho":9,"MS Outlook":9,"MS PGothic":9,"MS PMincho":9,"MS Reference Sans Serif":11,"MS Reference Specialty":19,"MS UI Gothic":9,"MT Extra":16,"MV Boli":12,"Myanmar Text":9,Narkisim:7,"Neue Haas Grotesk Text Pro":9,"New Gulim":10,"News Gothic MT":9,"Niagara Engraved":5,"Niagara Solid":6,"Nirmala UI":9,"Nirmala UI Semilight":9,Nyala:9,"OCR A Extended":10,OCRB:10,"Old English Text MT":9,Onyx:6,"Palace Script MT":6,"Palatino Linotype":8,Papyrus:10,Parchment:4,Perpetua:7,"Perpetua Titling MT":10,"Plantagenet Cherokee":9,Playbill:6,PMingLiU:8,"PMingLiU-ExtB":8,"Poor Richard":9,Pristina:9,"Pyunji R":8,Raavi:9,"Rage Italic":9,Ravie:15,Rockwell:8,"Rockwell Condensed":6,"Rockwell Extra Bold":10,"Rockwell Light":9,"Rockwell Nova":9,"Rockwell Nova Cond":9,"Rockwell Nova Cond Light":9,"Rockwell Nova Extra Bold":9,"Rockwell Nova Light":9,Rod:9,"Sakkal Majalla":9,"Sanskrit Text":9,"Script MT Bold":8,"Segoe MDL2 Assets":6,"Segoe Print":11,"Segoe Script":11,"Segoe UI":8,"Segoe UI Black":9,"Segoe UI Emoji":8,"Segoe UI Historic":8,"Segoe UI Light":8,"Segoe UI Semibold":9,"Segoe UI Semilight":8,"Segoe UI Symbol":8,Selawik:8,"Selawik Light":8,"Selawik Semibold":8,"Shonar Bangla":8,"Showcard Gothic":9,Shruti:8,"Simplified Arabic":8,"Simplified Arabic Fixed":8,"SimSun-ExtB":8,"Sitka Banner":8,"Sitka Display":8,"Sitka Heading":8,"Sitka Small":10,"Sitka Subheading":9,"Sitka Text":9,"Snap ITC":13,"Source Sans Pro":8,"Source Sans Pro Black":8,"Source Sans Pro ExtraLight":8,"Source Sans Pro Light":8,"Source Sans Pro SemiBold":8,Stencil:9,Sylfaen:8,Symbol:8,Tahoma:8,"Tempus Sans ITC":10,"TH SarabunPSK":8,"Times New Roman":7,"Traditional Arabic":8,"Trebuchet MS":8,Tunga:8,"Tw Cen MT":8,"Tw Cen MT Condensed":5,"Tw Cen MT Condensed Extra Bold":7,"UD Digi Kyokasho N-B":8,"UD Digi Kyokasho NK-B":8,"UD Digi Kyokasho NK-R":8,"UD Digi Kyokasho NP-B":8,"UD Digi Kyokasho NP-R":8,"UD Digi Kyokasho N-R":8,Univers:8,"Univers Condensed":8,"Univers Condensed Light":8,"Univers Light":8,"Urdu Typesetting":8,Utsaah:8,Vani:8,Verdana:10,"Verdana Pro":10,"Verdana Pro Black":8,"Verdana Pro Cond":8,"Verdana Pro Cond Black":8,"Verdana Pro Cond Light":8,"Verdana Pro Cond SemiBold":8,"Verdana Pro Light":8,"Verdana Pro SemiBold":8,Vijaya:8,"Viner Hand ITC":10,Vivaldi:6,"Vladimir Script":7,Vrinda:9,Webdings:15,"Wide Latin":19,Wingdings:20,"Wingdings 2":17,"Wingdings 3":13,"Yet R":8,"Yu Gothic":8,"Yu Gothic Light":8,"Yu Gothic Medium":8,"Yu Gothic UI":8,"Yu Gothic UI Light":8,"Yu Gothic UI Semibold":9,"Yu Gothic UI Semilight":8,"Yu Mincho":8,"Yu Mincho Demibold":8,"Yu Mincho Light":8,"\u4eff\u5b8b":8,"\u534e\u6587\u4e2d\u5b8b":9,"\u534e\u6587\u4eff\u5b8b":7,"\u534e\u6587\u5b8b\u4f53":7,"\u534e\u6587\u5f69\u4e91":9,"\u534e\u6587\u65b0\u9b4f":9,"\u534e\u6587\u6977\u4f53":7,"\u534e\u6587\u7425\u73c0":9,"\u534e\u6587\u7ec6\u9ed1":8,"\u534e\u6587\u884c\u6977":8,"\u534e\u6587\u96b6\u4e66":7,"\u5b8b\u4f53":8,"\u5e7c\u5706":8,"\u5fae\u8f6f\u96c5\u9ed1":9,"\u5fae\u8f6f\u96c5\u9ed1 Light":9,"\u65b0\u5b8b\u4f53":8,"\u65b9\u6b63\u59da\u4f53":8,"\u65b9\u6b63\u8212\u4f53":8,"\u6977\u4f53":8,"\u7b49\u7ebf":8,"\u7b49\u7ebf Light":8,"\u96b6\u4e66":8,"\u9ed1\u4f53":8,"\u6e38\u30b4\u30b7\u30c3\u30af":8,"\uff2d\uff33 \uff30\u660e\u671d":8,'"\uff2d\uff33 \uff30\u30b4\u30b7\u30c3\u30af"':8,"\u30e1\u30a4\u30ea\u30aa":9,"HG\uff7a\uff9e\uff7c\uff6f\uff78E":8,"HG\u660e\u671dB":8,"HG\uff7a\uff9e\uff7c\uff6f\uff78M":8},12:{"Gill Sans MT":8,Abadi:10,"Abadi Extra Light":9,"Agency FB":6,Aharoni:7,Aldhabi:5,Algerian:10,"Ami R":7,"Angsana New":5,AngsanaUPC:5,Aparajita:6,"Arabic Typesetting":5,Arial:9,"Arial Black":11,"Arial Narrow":7,"Arial Nova":9,"Arial Nova Cond":8,"Arial Nova Cond Light":7,"Arial Nova Light":9,"Arial Rounded MT Bold":10,"Baskerville Old Face":8,Batang:9,BatangChe:8,"Bauhaus 93":9,"Bell MT":8,Bembo:8,"Berlin Sans FB":10,"Berlin Sans FB Demi":10,"Bernard MT Condensed":8,"Blackadder ITC":6,"Bodoni MT":8,"Bodoni MT Black":11,"Bodoni MT Condensed":5,"Bodoni MT Poster Compressed":6,"Book Antiqua":8,"Bookman Old Style":10,"Bookshelf Symbol 7":12,"Bradley Hand ITC":10,"Britannic Bold":10,Broadway:10,"Browallia New":6,BrowalliaUPC:6,"Brush Script MT":8,Calibri:8,"Calibri Light":8,"Californian FB":9,"Calisto MT":8,Cambria:9,"Cambria Math":9,Candara:9,Castellar:12,Centaur:8,Century:9,"Century Gothic":9,"Century Schoolbook":9,Chiller:8,"Colonna MT":8,"Comic Sans MS":10,Consolas:9,Constantia:9,"Cooper Black":10,"Copperplate Gothic Bold":11,"Copperplate Gothic Light":12,Corbel:8,"Cordia New":6,CordiaUPC:6,"Courier New":10,"Curlz MT":9,Dante:7,DaunPenh:5,David:7,DilleniaUPC:5,DokChampa:9,Dotum:8,DotumChe:8,Dubai:9,"Dubai Light":9,"Dubai Medium":9,Ebrima:9,"Edwardian Script ITC":8,Elephant:12,"Engravers MT":10,"Eras Bold ITC":10,"Eras Demi ITC":10,"Eras Light ITC":9,"Eras Medium ITC":9,EucrosiaUPC:6,Euphemia:9,"Expo M":14,FangSong:8,"Felix Titling":9,"Footlight MT Light":9,Forte:8,"Franklin Gothic Book":9,"Franklin Gothic Demi":9,"Franklin Gothic Demi Cond":8,"Franklin Gothic Heavy":9,"Franklin Gothic Medium":9,"Franklin Gothic Medium Cond":8,FrankRuehl:7,FreesiaUPC:7,"Freestyle Script":6,"French Script MT":6,Gabriola:6,Gadugi:9,Garamond:8,Gautami:10,Georgia:10,"Georgia Pro":9,"Georgia Pro Black":11,"Georgia Pro Cond":8,"Georgia Pro Cond Black":10,"Georgia Pro Cond Light":8,"Georgia Pro Cond Semibold":9,"Georgia Pro Light":9,"Georgia Pro Semibold":10,Gigi:7,"Gill Sans MT Condensed":6,"Gill Sans MT Ext Condensed Bold":6,"Gill Sans Nova":8,"Gill Sans Nova Cond":5,"Gill Sans Nova Cond Lt":5,"Gill Sans Nova Cond Ultra Bold":9,"Gill Sans Nova Cond XBd":8,"Gill Sans Nova Light":8,"Gill Sans Nova Ultra Bold":14,"Gill Sans Ultra Bold":14,"Gill Sans Ultra Bold Condensed":9,Gisha:9,"Gloucester MT Extra Condensed":6,"Goudy Old Style":8,"Goudy Stout":13,Grotesque:8,"Grotesque Light":8,Gulim:9,GulimChe:8,Gungsuh:9,GungsuhChe:8,"Hadassah Friedlaender":9,Haettenschweiler:7,"Harlow Solid Italic":7,Harrington:9,"Headline R":11,HGGothicE:8,HGGothicM:8,HGGyoshotai:8,HGKyokashotai:8,HGMaruGothicMPRO:12,HGMinchoB:9,HGMinchoE:9,HGPGothicE:10,HGPGothicM:10,HGPGyoshotai:9,HGPKyokashotai:8,HGPMinchoB:9,HGPMinchoE:9,HGPSoeiKakugothicUB:11,HGPSoeiKakupoptai:11,HGPSoeiPresenceEB:10,HGSeikaishotaiPRO:10,HGSGothicE:9,HGSGothicM:9,HGSGyoshotai:8,HGSKyokashotai:7,HGSMinchoB:9,HGSMinchoE:9,HGSoeiKakugothicUB:9,HGSoeiKakupoptai:9,HGSoeiPresenceEB:9,HGSSoeiKakugothicUB:10,HGSSoeiKakupoptai:10,HGSSoeiPresenceEB:9,"High Tower Text":8,"HYGothic-Extra":10,"HYGothic-Medium":9,"HYGraphic-Medium":9,"HYGungSo-Bold":9,"HYHeadLine-Medium":9,"HYMyeongJo-Extra":11,"HYPMokGak-Bold":11,"HYPost-Light":11,"HYPost-Medium":11,"HYShortSamul-Medium":6,"HYSinMyeongJo-Medium":10,Impact:9,"Imprint MT Shadow":8,"Informal Roman":9,"Ink Free":8,IrisUPC:8,"Iskoola Pota":8,JasmineUPC:8,"Javanese Text":9,Jokerman:11,"Juice ITC":6,KaiTi:8,Kalinga:9,Kartika:8,"Khmer UI":8,KodchiangUPC:5,Kokila:8,"Kristen ITC":10,"Kunstler Script":6,"Lao UI":8,Latha:8,Leelawadee:9,"Leelawadee UI":9,"Leelawadee UI Semilight":9,"Levenim MT":9,LilyUPC:7,"Lucida Bright":10,"Lucida Calligraphy":12,"Lucida Console":11,"Lucida Fax":11,"Lucida Handwriting":12,"Lucida Sans":11,"Lucida Sans Typewriter":10,"Lucida Sans Unicode":11,"Magic R":10,Magneto:12,"Maiandra GD":10,"Malgun Gothic":9,"Malgun Gothic Semilight":10,Mangal:9,Marlett:17,"Matura MT Script Capitals":12,Meiryo:11,"Meiryo UI":11,"Microsoft GothicNeo":9,"Microsoft Himalaya":6,"Microsoft JhengHei":10,"Microsoft JhengHei Light":10,"Microsoft JhengHei UI":10,"Microsoft JhengHei UI Light":10,"Microsoft New Tai Lue":9,"Microsoft PhagsPa":9,"Microsoft Sans Serif":10,"Microsoft Tai Le":9,"Microsoft Uighur":6,"Microsoft YaHei Light":10,"Microsoft YaHei UI":10,"Microsoft YaHei UI Light":10,"Microsoft Yi Baiti":9,MingLiU:9,MingLiU_HKSCS:9,"MingLiU_HKSCS-ExtB":9,"MingLiU-ExtB":9,Miriam:9,"Miriam Fixed":11,Mistral:8,"Modern No. 20":8,"MoeumT R":10,"Mongolian Baiti":9,"Monotype Corsiva":8,MoolBoran:7,"MS Gothic":8,"MS Mincho":9,"MS Outlook":9,"MS PGothic":9,"MS PMincho":9,"MS Reference Sans Serif":11,"MS Reference Specialty":20,"MS UI Gothic":9,"MT Extra":17,"MV Boli":12,"Myanmar Text":9,Narkisim:8,"Neue Haas Grotesk Text Pro":9,"New Gulim":10,"News Gothic MT":9,"Niagara Engraved":6,"Niagara Solid":6,"Nirmala UI":9,"Nirmala UI Semilight":10,Nyala:9,"OCR A Extended":11,OCRB:11,"Old English Text MT":9,Onyx:7,"Palace Script MT":6,"Palatino Linotype":8,Papyrus:10,Parchment:4,Perpetua:7,"Perpetua Titling MT":11,"Plantagenet Cherokee":9,Playbill:7,PMingLiU:9,"PMingLiU-ExtB":9,"Poor Richard":10,Pristina:9,"Pyunji R":9,Raavi:8,"Rage Italic":9,Ravie:16,Rockwell:9,"Rockwell Condensed":7,"Rockwell Extra Bold":11,"Rockwell Light":10,"Rockwell Nova":9,"Rockwell Nova Cond":9,"Rockwell Nova Cond Light":9,"Rockwell Nova Extra Bold":9,"Rockwell Nova Light":9,Rod:9,"Sakkal Majalla":9,"Sanskrit Text":9,"Script MT Bold":8,"Segoe MDL2 Assets":7,"Segoe Print":12,"Segoe Script":12,"Segoe UI":9,"Segoe UI Black":10,"Segoe UI Emoji":9,"Segoe UI Historic":9,"Segoe UI Light":8,"Segoe UI Semibold":9,"Segoe UI Semilight":9,"Segoe UI Symbol":9,Selawik:8,"Selawik Light":8,"Selawik Semibold":8,"Shonar Bangla":8,"Showcard Gothic":9,Shruti:8,"Simplified Arabic":8,"Simplified Arabic Fixed":8,"SimSun-ExtB":8,"Sitka Banner":8,"Sitka Display":8,"Sitka Heading":9,"Sitka Small":11,"Sitka Subheading":9,"Sitka Text":10,"Snap ITC":14,"Source Sans Pro":8,"Source Sans Pro Black":8,"Source Sans Pro ExtraLight":8,"Source Sans Pro Light":8,"Source Sans Pro SemiBold":8,Stencil:9,Sylfaen:8,Symbol:8,Tahoma:9,"Tempus Sans ITC":11,"TH SarabunPSK":8,"Times New Roman":8,"Traditional Arabic":8,"Trebuchet MS":8,Tunga:8,"Tw Cen MT":9,"Tw Cen MT Condensed":6,"Tw Cen MT Condensed Extra Bold":8,"UD Digi Kyokasho N-B":8,"UD Digi Kyokasho NK-B":8,"UD Digi Kyokasho NK-R":8,"UD Digi Kyokasho NP-B":8,"UD Digi Kyokasho NP-R":8,"UD Digi Kyokasho N-R":8,Univers:8,"Univers Condensed":8,"Univers Condensed Light":8,"Univers Light":8,"Urdu Typesetting":8,Utsaah:6,Vani:8,Verdana:10,"Verdana Pro":10,"Verdana Pro Black":8,"Verdana Pro Cond":8,"Verdana Pro Cond Black":8,"Verdana Pro Cond Light":8,"Verdana Pro Cond SemiBold":8,"Verdana Pro Light":8,"Verdana Pro SemiBold":8,Vijaya:8,"Viner Hand ITC":11,Vivaldi:7,"Vladimir Script":7,Vrinda:9,Webdings:16,"Wide Latin":20,Wingdings:22,"Wingdings 2":18,"Wingdings 3":14,"Yet R":9,"Yu Gothic":9,"Yu Gothic Light":9,"Yu Gothic Medium":9,"Yu Gothic UI":9,"Yu Gothic UI Light":9,"Yu Gothic UI Semibold":9,"Yu Gothic UI Semilight":9,"Yu Mincho":9,"Yu Mincho Demibold":8,"Yu Mincho Light":8,"\u4eff\u5b8b":8,"\u534e\u6587\u4e2d\u5b8b":10,"\u534e\u6587\u4eff\u5b8b":8,"\u534e\u6587\u5b8b\u4f53":8,"\u534e\u6587\u5f69\u4e91":9,"\u534e\u6587\u65b0\u9b4f":9,"\u534e\u6587\u6977\u4f53":8,"\u534e\u6587\u7425\u73c0":9,"\u534e\u6587\u7ec6\u9ed1":9,"\u534e\u6587\u884c\u6977":8,"\u534e\u6587\u96b6\u4e66":7,"\u5b8b\u4f53":8,"\u5e7c\u5706":8,"\u5fae\u8f6f\u96c5\u9ed1":9,"\u5fae\u8f6f\u96c5\u9ed1 Light":9,"\u65b0\u5b8b\u4f53":8,"\u65b9\u6b63\u59da\u4f53":8,"\u65b9\u6b63\u8212\u4f53":9,"\u6977\u4f53":8,"\u7b49\u7ebf":8,"\u7b49\u7ebf Light":8,"\u96b6\u4e66":8,"\u9ed1\u4f53":8,"\u6e38\u30b4\u30b7\u30c3\u30af":9,"\uff2d\uff33 \uff30\u660e\u671d":8,'"\uff2d\uff33 \uff30\u30b4\u30b7\u30c3\u30af"':8,"\u30e1\u30a4\u30ea\u30aa":10,"HG\uff7a\uff9e\uff7c\uff6f\uff78E":8,"HG\u660e\u671dB":8,"HG\uff7a\uff9e\uff7c\uff6f\uff78M":8},14:{"Gill Sans MT":10,Abadi:11,"Abadi Extra Light":11,"Agency FB":8,Aharoni:8,Aldhabi:6,Algerian:11,"Ami R":8,"Angsana New":6,AngsanaUPC:6,Aparajita:8,"Arabic Typesetting":6,Arial:11,"Arial Black":13,"Arial Narrow":9,"Arial Nova":11,"Arial Nova Cond":10,"Arial Nova Cond Light":9,"Arial Nova Light":11,"Arial Rounded MT Bold":11,"Baskerville Old Face":9,Batang:10,BatangChe:10,"Bauhaus 93":11,"Bell MT":10,Bembo:9,"Berlin Sans FB":11,"Berlin Sans FB Demi":12,"Bernard MT Condensed":9,"Blackadder ITC":8,"Bodoni MT":9,"Bodoni MT Black":12,"Bodoni MT Condensed":6,"Bodoni MT Poster Compressed":6,"Book Antiqua":10,"Bookman Old Style":12,"Bookshelf Symbol 7":14,"Bradley Hand ITC":12,"Britannic Bold":12,Broadway:12,"Browallia New":7,BrowalliaUPC:7,"Brush Script MT":10,Calibri:10,"Calibri Light":10,"Californian FB":11,"Calisto MT":10,Cambria:11,"Cambria Math":11,Candara:10,Castellar:14,Centaur:9,Century:11,"Century Gothic":11,"Century Schoolbook":11,Chiller:9,"Colonna MT":10,"Comic Sans MS":12,Consolas:10,Constantia:10,"Cooper Black":11,"Copperplate Gothic Bold":14,"Copperplate Gothic Light":14,Corbel:10,"Cordia New":7,CordiaUPC:7,"Courier New":11,"Curlz MT":10,Dante:9,DaunPenh:6,David:8,DilleniaUPC:6,DokChampa:11,Dotum:10,DotumChe:10,Dubai:10,"Dubai Light":10,"Dubai Medium":10,Ebrima:10,"Edwardian Script ITC":9,Elephant:14,"Engravers MT":12,"Eras Bold ITC":12,"Eras Demi ITC":12,"Eras Light ITC":10,"Eras Medium ITC":11,EucrosiaUPC:8,Euphemia:11,"Expo M":16,FangSong:10,"Felix Titling":11,"Footlight MT Light":11,Forte:10,"Franklin Gothic Book":11,"Franklin Gothic Demi":11,"Franklin Gothic Demi Cond":10,"Franklin Gothic Heavy":11,"Franklin Gothic Medium":11,"Franklin Gothic Medium Cond":10,FrankRuehl:8,FreesiaUPC:8,"Freestyle Script":7,"French Script MT":7,Gabriola:8,Gadugi:10,Garamond:9,Gautami:11,Georgia:12,"Georgia Pro":11,"Georgia Pro Black":13,"Georgia Pro Cond":10,"Georgia Pro Cond Black":12,"Georgia Pro Cond Light":10,"Georgia Pro Cond Semibold":11,"Georgia Pro Light":10,"Georgia Pro Semibold":12,Gigi:10,"Gill Sans MT Condensed":7,"Gill Sans MT Ext Condensed Bold":7,"Gill Sans Nova":10,"Gill Sans Nova Cond":6,"Gill Sans Nova Cond Lt":6,"Gill Sans Nova Cond Ultra Bold":11,"Gill Sans Nova Cond XBd":10,"Gill Sans Nova Light":10,"Gill Sans Nova Ultra Bold":16,"Gill Sans Ultra Bold":16,"Gill Sans Ultra Bold Condensed":11,Gisha:10,"Gloucester MT Extra Condensed":7,"Goudy Old Style":10,"Goudy Stout":16,Grotesque:9,"Grotesque Light":9,Gulim:10,GulimChe:10,Gungsuh:10,GungsuhChe:10,"Hadassah Friedlaender":11,Haettenschweiler:8,"Harlow Solid Italic":9,Harrington:11,"Headline R":14,HGGothicE:10,HGGothicM:10,HGGyoshotai:10,HGKyokashotai:10,HGMaruGothicMPRO:14,HGMinchoB:11,HGMinchoE:11,HGPGothicE:11,HGPGothicM:12,HGPGyoshotai:10,HGPKyokashotai:10,HGPMinchoB:10,HGPMinchoE:11,HGPSoeiKakugothicUB:13,HGPSoeiKakupoptai:13,HGPSoeiPresenceEB:12,HGSeikaishotaiPRO:11,HGSGothicE:10,HGSGothicM:11,HGSGyoshotai:9,HGSKyokashotai:9,HGSMinchoB:10,HGSMinchoE:11,HGSoeiKakugothicUB:11,HGSoeiKakupoptai:11,HGSoeiPresenceEB:11,HGSSoeiKakugothicUB:12,HGSSoeiKakupoptai:12,HGSSoeiPresenceEB:11,"High Tower Text":9,"HYGothic-Extra":12,"HYGothic-Medium":11,"HYGraphic-Medium":11,"HYGungSo-Bold":11,"HYHeadLine-Medium":11,"HYMyeongJo-Extra":13,"HYPMokGak-Bold":13,"HYPost-Light":13,"HYPost-Medium":13,"HYShortSamul-Medium":7,"HYSinMyeongJo-Medium":12,Impact:10,"Imprint MT Shadow":10,"Informal Roman":10,"Ink Free":10,IrisUPC:10,"Iskoola Pota":10,JasmineUPC:10,"Javanese Text":11,Jokerman:14,"Juice ITC":7,KaiTi:10,Kalinga:11,Kartika:11,"Khmer UI":10,KodchiangUPC:7,Kokila:10,"Kristen ITC":11,"Kunstler Script":7,"Lao UI":10,Latha:10,Leelawadee:10,"Leelawadee UI":10,"Leelawadee UI Semilight":10,"Levenim MT":11,LilyUPC:8,"Lucida Bright":12,"Lucida Calligraphy":14,"Lucida Console":12,"Lucida Fax":13,"Lucida Handwriting":14,"Lucida Sans":13,"Lucida Sans Typewriter":11,"Lucida Sans Unicode":13,"Magic R":12,Magneto:15,"Maiandra GD":12,"Malgun Gothic":11,"Malgun Gothic Semilight":12,Mangal:11,Marlett:20,"Matura MT Script Capitals":13,Meiryo:13,"Meiryo UI":13,"Microsoft GothicNeo":11,"Microsoft Himalaya":7,"Microsoft JhengHei":11,"Microsoft JhengHei Light":12,"Microsoft JhengHei UI":11,"Microsoft JhengHei UI Light":12,"Microsoft New Tai Lue":11,"Microsoft PhagsPa":11,"Microsoft Sans Serif":11,"Microsoft Tai Le":11,"Microsoft Uighur":7,"Microsoft YaHei Light":12,"Microsoft YaHei UI":12,"Microsoft YaHei UI Light":12,"Microsoft Yi Baiti":11,MingLiU:11,MingLiU_HKSCS:11,"MingLiU_HKSCS-ExtB":11,"MingLiU-ExtB":11,Miriam:10,"Miriam Fixed":12,Mistral:10,"Modern No. 20":10,"MoeumT R":11,"Mongolian Baiti":11,"Monotype Corsiva":9,MoolBoran:8,"MS Gothic":10,"MS Mincho":11,"MS Outlook":11,"MS PGothic":11,"MS PMincho":11,"MS Reference Sans Serif":13,"MS Reference Specialty":24,"MS UI Gothic":11,"MT Extra":20,"MV Boli":14,"Myanmar Text":11,Narkisim:9,"Neue Haas Grotesk Text Pro":11,"New Gulim":12,"News Gothic MT":12,"Niagara Engraved":7,"Niagara Solid":7,"Nirmala UI":11,"Nirmala UI Semilight":11,Nyala:11,"OCR A Extended":12,OCRB:12,"Old English Text MT":11,Onyx:7,"Palace Script MT":7,"Palatino Linotype":10,Papyrus:12,Parchment:5,Perpetua:9,"Perpetua Titling MT":13,"Plantagenet Cherokee":11,Playbill:8,PMingLiU:10,"PMingLiU-ExtB":10,"Poor Richard":11,Pristina:10,"Pyunji R":10,Raavi:10,"Rage Italic":11,Ravie:19,Rockwell:10,"Rockwell Condensed":8,"Rockwell Extra Bold":13,"Rockwell Light":11,"Rockwell Nova":11,"Rockwell Nova Cond":11,"Rockwell Nova Cond Light":11,"Rockwell Nova Extra Bold":11,"Rockwell Nova Light":11,Rod:11,"Sakkal Majalla":11,"Sanskrit Text":12,"Script MT Bold":10,"Segoe MDL2 Assets":8,"Segoe Print":14,"Segoe Script":14,"Segoe UI":10,"Segoe UI Black":12,"Segoe UI Emoji":10,"Segoe UI Historic":10,"Segoe UI Light":10,"Segoe UI Semibold":11,"Segoe UI Semilight":10,"Segoe UI Symbol":10,Selawik:10,"Selawik Light":10,"Selawik Semibold":10,"Shonar Bangla":10,"Showcard Gothic":11,Shruti:11,"Simplified Arabic":10,"Simplified Arabic Fixed":11,"SimSun-ExtB":10,"Sitka Banner":10,"Sitka Display":10,"Sitka Heading":11,"Sitka Small":13,"Sitka Subheading":11,"Sitka Text":12,"Snap ITC":16,"Source Sans Pro":9,"Source Sans Pro Black":10,"Source Sans Pro ExtraLight":9,"Source Sans Pro Light":10,"Source Sans Pro SemiBold":10,Stencil:11,Sylfaen:10,Symbol:10,Tahoma:10,"Tempus Sans ITC":13,"TH SarabunPSK":7,"Times New Roman":10,"Traditional Arabic":10,"Trebuchet MS":10,Tunga:10,"Tw Cen MT":10,"Tw Cen MT Condensed":7,"Tw Cen MT Condensed Extra Bold":9,"UD Digi Kyokasho N-B":10,"UD Digi Kyokasho NK-B":10,"UD Digi Kyokasho NK-R":10,"UD Digi Kyokasho NP-B":10,"UD Digi Kyokasho NP-R":10,"UD Digi Kyokasho N-R":10,Univers:10,"Univers Condensed":10,"Univers Condensed Light":8,"Univers Light":10,"Urdu Typesetting":10,Utsaah:8,Vani:11,Verdana:12,"Verdana Pro":12,"Verdana Pro Black":10,"Verdana Pro Cond":10,"Verdana Pro Cond Black":10,"Verdana Pro Cond Light":10,"Verdana Pro Cond SemiBold":10,"Verdana Pro Light":10,"Verdana Pro SemiBold":10,Vijaya:10,"Viner Hand ITC":13,Vivaldi:8,"Vladimir Script":9,Vrinda:11,Webdings:19,"Wide Latin":24,Wingdings:26,"Wingdings 2":22,"Wingdings 3":17,"Yet R":10,"Yu Gothic":11,"Yu Gothic Light":10,"Yu Gothic Medium":11,"Yu Gothic UI":10,"Yu Gothic UI Light":10,"Yu Gothic UI Semibold":11,"Yu Gothic UI Semilight":10,"Yu Mincho":10,"Yu Mincho Demibold":10,"Yu Mincho Light":10,"\u4eff\u5b8b":10,"\u534e\u6587\u4e2d\u5b8b":12,"\u534e\u6587\u4eff\u5b8b":9,"\u534e\u6587\u5b8b\u4f53":9,"\u534e\u6587\u5f69\u4e91":11,"\u534e\u6587\u65b0\u9b4f":11,"\u534e\u6587\u6977\u4f53":9,"\u534e\u6587\u7425\u73c0":11,"\u534e\u6587\u7ec6\u9ed1":11,"\u534e\u6587\u884c\u6977":10,"\u534e\u6587\u96b6\u4e66":8,"\u5b8b\u4f53":10,"\u5e7c\u5706":10,"\u5fae\u8f6f\u96c5\u9ed1":11,"\u5fae\u8f6f\u96c5\u9ed1 Light":11,"\u65b0\u5b8b\u4f53":10,"\u65b9\u6b63\u59da\u4f53":10,"\u65b9\u6b63\u8212\u4f53":10,"\u6977\u4f53":10,"\u7b49\u7ebf":10,"\u7b49\u7ebf Light":10,"\u96b6\u4e66":10,"\u9ed1\u4f53":10,"\u6e38\u30b4\u30b7\u30c3\u30af":11,"\uff2d\uff33 \uff30\u660e\u671d":10,'"\uff2d\uff33 \uff30\u30b4\u30b7\u30c3\u30af"':10,"\u30e1\u30a4\u30ea\u30aa":12,"HG\uff7a\uff9e\uff7c\uff6f\uff78E":10,"HG\u660e\u671dB":10,"HG\uff7a\uff9e\uff7c\uff6f\uff78M":10},16:{"Gill Sans MT":11,Abadi:13,"Abadi Extra Light":12,"Agency FB":9,Aharoni:9,Aldhabi:7,Algerian:13,"Ami R":9,"Angsana New":7,AngsanaUPC:7,Aparajita:8,"Arabic Typesetting":7,Arial:12,"Arial Black":14,"Arial Narrow":10,"Arial Nova":12,"Arial Nova Cond":11,"Arial Nova Cond Light":9,"Arial Nova Light":12,"Arial Rounded MT Bold":12,"Baskerville Old Face":10,Batang:10,BatangChe:11,"Bauhaus 93":12,"Bell MT":11,Bembo:10,"Berlin Sans FB":13,"Berlin Sans FB Demi":13,"Bernard MT Condensed":10,"Blackadder ITC":8,"Bodoni MT":10,"Bodoni MT Black":14,"Bodoni MT Condensed":7,"Bodoni MT Poster Compressed":7,"Book Antiqua":11,"Bookman Old Style":13,"Bookshelf Symbol 7":16,"Bradley Hand ITC":14,"Britannic Bold":13,Broadway:14,"Browallia New":8,BrowalliaUPC:8,"Brush Script MT":11,Calibri:11,"Calibri Light":11,"Californian FB":12,"Calisto MT":11,Cambria:12,"Cambria Math":12,Candara:12,Castellar:15,Centaur:10,Century:12,"Century Gothic":12,"Century Schoolbook":12,Chiller:10,"Colonna MT":11,"Comic Sans MS":13,Consolas:12,Constantia:11,"Cooper Black":13,"Copperplate Gothic Bold":15,"Copperplate Gothic Light":15,Corbel:11,"Cordia New":8,CordiaUPC:8,"Courier New":13,"Curlz MT":11,Dante:9,DaunPenh:7,David:9,DilleniaUPC:7,DokChampa:12,Dotum:11,DotumChe:11,Dubai:11,"Dubai Light":11,"Dubai Medium":11,Ebrima:11,"Edwardian Script ITC":10,Elephant:16,"Engravers MT":14,"Eras Bold ITC":14,"Eras Demi ITC":13,"Eras Light ITC":11,"Eras Medium ITC":12,EucrosiaUPC:9,Euphemia:12,"Expo M":18,FangSong:11,"Felix Titling":12,"Footlight MT Light":12,Forte:11,"Franklin Gothic Book":12,"Franklin Gothic Demi":12,"Franklin Gothic Demi Cond":11,"Franklin Gothic Heavy":12,"Franklin Gothic Medium":12,"Franklin Gothic Medium Cond":11,FrankRuehl:9,FreesiaUPC:9,"Freestyle Script":8,"French Script MT":8,Gabriola:8,Gadugi:11,Garamond:10,Gautami:13,Georgia:13,"Georgia Pro":12,"Georgia Pro Black":15,"Georgia Pro Cond":11,"Georgia Pro Cond Black":13,"Georgia Pro Cond Light":11,"Georgia Pro Cond Semibold":12,"Georgia Pro Light":12,"Georgia Pro Semibold":13,Gigi:12,"Gill Sans MT Condensed":8,"Gill Sans MT Ext Condensed Bold":7,"Gill Sans Nova":11,"Gill Sans Nova Cond":7,"Gill Sans Nova Cond Lt":6,"Gill Sans Nova Cond Ultra Bold":12,"Gill Sans Nova Cond XBd":11,"Gill Sans Nova Light":11,"Gill Sans Nova Ultra Bold":18,"Gill Sans Ultra Bold":18,"Gill Sans Ultra Bold Condensed":12,Gisha:11,"Gloucester MT Extra Condensed":8,"Goudy Old Style":11,"Goudy Stout":17,Grotesque:10,"Grotesque Light":10,Gulim:11,GulimChe:11,Gungsuh:11,GungsuhChe:11,"Hadassah Friedlaender":12,Haettenschweiler:9,"Harlow Solid Italic":10,Harrington:12,"Headline R":15,HGGothicE:11,HGGothicM:11,HGGyoshotai:11,HGKyokashotai:11,HGMaruGothicMPRO:16,HGMinchoB:12,HGMinchoE:12,HGPGothicE:12,HGPGothicM:13,HGPGyoshotai:11,HGPKyokashotai:11,HGPMinchoB:11,HGPMinchoE:12,HGPSoeiKakugothicUB:14,HGPSoeiKakupoptai:15,HGPSoeiPresenceEB:13,HGSeikaishotaiPRO:12,HGSGothicE:11,HGSGothicM:12,HGSGyoshotai:10,HGSKyokashotai:10,HGSMinchoB:11,HGSMinchoE:12,HGSoeiKakugothicUB:12,HGSoeiKakupoptai:12,HGSoeiPresenceEB:12,HGSSoeiKakugothicUB:13,HGSSoeiKakupoptai:14,HGSSoeiPresenceEB:12,"High Tower Text":10,"HYGothic-Extra":13,"HYGothic-Medium":12,"HYGraphic-Medium":12,"HYGungSo-Bold":12,"HYHeadLine-Medium":12,"HYMyeongJo-Extra":14,"HYPMokGak-Bold":15,"HYPost-Light":14,"HYPost-Medium":15,"HYShortSamul-Medium":8,"HYSinMyeongJo-Medium":13,Impact:11,"Imprint MT Shadow":11,"Informal Roman":11,"Ink Free":11,IrisUPC:11,"Iskoola Pota":11,JasmineUPC:10,"Javanese Text":12,Jokerman:15,"Juice ITC":8,KaiTi:11,Kalinga:12,Kartika:12,"Khmer UI":11,KodchiangUPC:7,Kokila:8,"Kristen ITC":13,"Kunstler Script":7,"Lao UI":11,Latha:11,Leelawadee:11,"Leelawadee UI":11,"Leelawadee UI Semilight":12,"Levenim MT":12,LilyUPC:9,"Lucida Bright":13,"Lucida Calligraphy":15,"Lucida Console":14,"Lucida Fax":14,"Lucida Handwriting":15,"Lucida Sans":14,"Lucida Sans Typewriter":13,"Lucida Sans Unicode":14,"Magic R":13,Magneto:16,"Maiandra GD":13,"Malgun Gothic":12,"Malgun Gothic Semilight":13,Mangal:12,Marlett:22,"Matura MT Script Capitals":15,Meiryo:14,"Meiryo UI":14,"Microsoft GothicNeo":12,"Microsoft Himalaya":8,"Microsoft JhengHei":13,"Microsoft JhengHei Light":13,"Microsoft JhengHei UI":13,"Microsoft JhengHei UI Light":13,"Microsoft New Tai Lue":12,"Microsoft PhagsPa":12,"Microsoft Sans Serif":13,"Microsoft Tai Le":12,"Microsoft Uighur":8,"Microsoft YaHei Light":13,"Microsoft YaHei UI":13,"Microsoft YaHei UI Light":13,"Microsoft Yi Baiti":12,MingLiU:12,MingLiU_HKSCS:12,"MingLiU_HKSCS-ExtB":12,"MingLiU-ExtB":12,Miriam:11,"Miriam Fixed":14,Mistral:10,"Modern No. 20":11,"MoeumT R":13,"Mongolian Baiti":12,"Monotype Corsiva":10,MoolBoran:8,"MS Gothic":11,"MS Mincho":12,"MS Outlook":12,"MS PGothic":12,"MS PMincho":12,"MS Reference Sans Serif":14,"MS Reference Specialty":26,"MS UI Gothic":12,"MT Extra":22,"MV Boli":16,"Myanmar Text":12,Narkisim:10,"Neue Haas Grotesk Text Pro":12,"New Gulim":13,"News Gothic MT":14,"Niagara Engraved":8,"Niagara Solid":8,"Nirmala UI":12,"Nirmala UI Semilight":13,Nyala:12,"OCR A Extended":14,OCRB:14,"Old English Text MT":12,Onyx:8,"Palace Script MT":8,"Palatino Linotype":11,Papyrus:14,Parchment:5,Perpetua:10,"Perpetua Titling MT":14,"Plantagenet Cherokee":12,Playbill:8,PMingLiU:11,"PMingLiU-ExtB":11,"Poor Richard":13,Pristina:11,"Pyunji R":11,Raavi:11,"Rage Italic":12,Ravie:21,Rockwell:11,"Rockwell Condensed":9,"Rockwell Extra Bold":14,"Rockwell Light":12,"Rockwell Nova":12,"Rockwell Nova Cond":12,"Rockwell Nova Cond Light":12,"Rockwell Nova Extra Bold":12,"Rockwell Nova Light":12,Rod:12,"Sakkal Majalla":12,"Sanskrit Text":13,"Script MT Bold":11,"Segoe MDL2 Assets":8,"Segoe Print":15,"Segoe Script":15,"Segoe UI":11,"Segoe UI Black":13,"Segoe UI Emoji":11,"Segoe UI Historic":11,"Segoe UI Light":11,"Segoe UI Semibold":12,"Segoe UI Semilight":11,"Segoe UI Symbol":11,Selawik:11,"Selawik Light":11,"Selawik Semibold":12,"Shonar Bangla":11,"Showcard Gothic":12,Shruti:13,"Simplified Arabic":11,"Simplified Arabic Fixed":13,"SimSun-ExtB":11,"Sitka Banner":11,"Sitka Display":11,"Sitka Heading":12,"Sitka Small":14,"Sitka Subheading":12,"Sitka Text":13,"Snap ITC":18,"Source Sans Pro":10,"Source Sans Pro Black":11,"Source Sans Pro ExtraLight":10,"Source Sans Pro Light":11,"Source Sans Pro SemiBold":11,Stencil:12,Sylfaen:11,Symbol:11,Tahoma:11,"Tempus Sans ITC":14,"TH SarabunPSK":8,"Times New Roman":11,"Traditional Arabic":10,"Trebuchet MS":11,Tunga:11,"Tw Cen MT":12,"Tw Cen MT Condensed":8,"Tw Cen MT Condensed Extra Bold":10,"UD Digi Kyokasho N-B":11,"UD Digi Kyokasho NK-B":11,"UD Digi Kyokasho NK-R":11,"UD Digi Kyokasho NP-B":11,"UD Digi Kyokasho NP-R":11,"UD Digi Kyokasho N-R":11,Univers:11,"Univers Condensed":11,"Univers Condensed Light":9,"Univers Light":11,"Urdu Typesetting":11,Utsaah:8,Vani:13,Verdana:13,"Verdana Pro":13,"Verdana Pro Black":11,"Verdana Pro Cond":11,"Verdana Pro Cond Black":11,"Verdana Pro Cond Light":11,"Verdana Pro Cond SemiBold":11,"Verdana Pro Light":11,"Verdana Pro SemiBold":11,Vijaya:11,"Viner Hand ITC":14,Vivaldi:9,"Vladimir Script":10,Vrinda:12,Webdings:21,"Wide Latin":26,Wingdings:28,"Wingdings 2":24,"Wingdings 3":19,"Yet R":11,"Yu Gothic":12,"Yu Gothic Light":11,"Yu Gothic Medium":12,"Yu Gothic UI":11,"Yu Gothic UI Light":11,"Yu Gothic UI Semibold":12,"Yu Gothic UI Semilight":12,"Yu Mincho":11,"Yu Mincho Demibold":11,"Yu Mincho Light":11,"\u4eff\u5b8b":11,"\u534e\u6587\u4e2d\u5b8b":13,"\u534e\u6587\u4eff\u5b8b":10,"\u534e\u6587\u5b8b\u4f53":10,"\u534e\u6587\u5f69\u4e91":12,"\u534e\u6587\u65b0\u9b4f":12,"\u534e\u6587\u6977\u4f53":10,"\u534e\u6587\u7425\u73c0":12,"\u534e\u6587\u7ec6\u9ed1":12,"\u534e\u6587\u884c\u6977":11,"\u534e\u6587\u96b6\u4e66":9,"\u5b8b\u4f53":11,"\u5e7c\u5706":11,"\u5fae\u8f6f\u96c5\u9ed1":12,"\u5fae\u8f6f\u96c5\u9ed1 Light":12,"\u65b0\u5b8b\u4f53":11,"\u65b9\u6b63\u59da\u4f53":11,"\u65b9\u6b63\u8212\u4f53":11,"\u6977\u4f53":11,"\u7b49\u7ebf":11,"\u7b49\u7ebf Light":11,"\u96b6\u4e66":11,"\u9ed1\u4f53":11,"\u6e38\u30b4\u30b7\u30c3\u30af":12,"\uff2d\uff33 \uff30\u660e\u671d":11,'"\uff2d\uff33 \uff30\u30b4\u30b7\u30c3\u30af"':11,"\u30e1\u30a4\u30ea\u30aa":13,"HG\uff7a\uff9e\uff7c\uff6f\uff78E":11,"HG\u660e\u671dB":11,"HG\uff7a\uff9e\uff7c\uff6f\uff78M":11},18:{"Gill Sans MT":12,Abadi:15,"Abadi Extra Light":13,"Agency FB":10,Aharoni:10,Aldhabi:8,Algerian:14,"Ami R":10,"Angsana New":8,AngsanaUPC:8,Aparajita:10,"Arabic Typesetting":8,Arial:13,"Arial Black":16,"Arial Narrow":11,"Arial Nova":13,"Arial Nova Cond":12,"Arial Nova Cond Light":11,"Arial Nova Light":13,"Arial Rounded MT Bold":14,"Baskerville Old Face":12,Batang:12,BatangChe:12,"Bauhaus 93":14,"Bell MT":12,Bembo:12,"Berlin Sans FB":14,"Berlin Sans FB Demi":15,"Bernard MT Condensed":12,"Blackadder ITC":9,"Bodoni MT":12,"Bodoni MT Black":16,"Bodoni MT Condensed":8,"Bodoni MT Poster Compressed":8,"Book Antiqua":12,"Bookman Old Style":15,"Bookshelf Symbol 7":18,"Bradley Hand ITC":15,"Britannic Bold":15,Broadway:16,"Browallia New":9,BrowalliaUPC:9,"Brush Script MT":12,Calibri:12,"Calibri Light":12,"Californian FB":13,"Calisto MT":12,Cambria:13,"Cambria Math":13,Candara:13,Castellar:17,Centaur:12,Century:13,"Century Gothic":13,"Century Schoolbook":13,Chiller:11,"Colonna MT":12,"Comic Sans MS":15,Consolas:13,Constantia:13,"Cooper Black":14,"Copperplate Gothic Bold":17,"Copperplate Gothic Light":17,Corbel:13,"Cordia New":9,CordiaUPC:9,"Courier New":14,"Curlz MT":13,Dante:11,DaunPenh:8,David:11,DilleniaUPC:7,DokChampa:13,Dotum:13,DotumChe:12,Dubai:13,"Dubai Light":13,"Dubai Medium":13,Ebrima:13,"Edwardian Script ITC":11,Elephant:18,"Engravers MT":16,"Eras Bold ITC":16,"Eras Demi ITC":15,"Eras Light ITC":13,"Eras Medium ITC":14,EucrosiaUPC:10,Euphemia:14,"Expo M":21,FangSong:12,"Felix Titling":14,"Footlight MT Light":13,Forte:13,"Franklin Gothic Book":14,"Franklin Gothic Demi":14,"Franklin Gothic Demi Cond":12,"Franklin Gothic Heavy":14,"Franklin Gothic Medium":14,"Franklin Gothic Medium Cond":12,FrankRuehl:10,FreesiaUPC:11,"Freestyle Script":9,"French Script MT":9,Gabriola:10,Gadugi:13,Garamond:11,Gautami:14,Georgia:15,"Georgia Pro":14,"Georgia Pro Black":17,"Georgia Pro Cond":13,"Georgia Pro Cond Black":15,"Georgia Pro Cond Light":12,"Georgia Pro Cond Semibold":13,"Georgia Pro Light":13,"Georgia Pro Semibold":15,Gigi:12,"Gill Sans MT Condensed":9,"Gill Sans MT Ext Condensed Bold":8,"Gill Sans Nova":12,"Gill Sans Nova Cond":8,"Gill Sans Nova Cond Lt":7,"Gill Sans Nova Cond Ultra Bold":14,"Gill Sans Nova Cond XBd":13,"Gill Sans Nova Light":12,"Gill Sans Nova Ultra Bold":20,"Gill Sans Ultra Bold":21,"Gill Sans Ultra Bold Condensed":14,Gisha:13,"Gloucester MT Extra Condensed":9,"Goudy Old Style":12,"Goudy Stout":20,Grotesque:12,"Grotesque Light":12,Gulim:13,GulimChe:12,Gungsuh:13,GungsuhChe:12,"Hadassah Friedlaender":14,Haettenschweiler:11,"Harlow Solid Italic":11,Harrington:13,"Headline R":17,HGGothicE:12,HGGothicM:12,HGGyoshotai:12,HGKyokashotai:12,HGMaruGothicMPRO:18,HGMinchoB:13,HGMinchoE:13,HGPGothicE:14,HGPGothicM:15,HGPGyoshotai:12,HGPKyokashotai:12,HGPMinchoB:12,HGPMinchoE:13,HGPSoeiKakugothicUB:16,HGPSoeiKakupoptai:17,HGPSoeiPresenceEB:14,HGSeikaishotaiPRO:14,HGSGothicE:13,HGSGothicM:14,HGSGyoshotai:11,HGSKyokashotai:11,HGSMinchoB:12,HGSMinchoE:13,HGSoeiKakugothicUB:13,HGSoeiKakupoptai:13,HGSoeiPresenceEB:13,HGSSoeiKakugothicUB:15,HGSSoeiKakupoptai:16,HGSSoeiPresenceEB:13,"High Tower Text":12,"HYGothic-Extra":15,"HYGothic-Medium":14,"HYGraphic-Medium":14,"HYGungSo-Bold":14,"HYHeadLine-Medium":14,"HYMyeongJo-Extra":16,"HYPMokGak-Bold":17,"HYPost-Light":16,"HYPost-Medium":17,"HYShortSamul-Medium":9,"HYSinMyeongJo-Medium":15,Impact:13,"Imprint MT Shadow":12,"Informal Roman":13,"Ink Free":12,IrisUPC:12,"Iskoola Pota":12,JasmineUPC:11,"Javanese Text":14,Jokerman:17,"Juice ITC":8,KaiTi:12,Kalinga:13,Kartika:14,"Khmer UI":13,KodchiangUPC:8,Kokila:9,"Kristen ITC":14,"Kunstler Script":8,"Lao UI":13,Latha:12,Leelawadee:13,"Leelawadee UI":13,"Leelawadee UI Semilight":13,"Levenim MT":14,LilyUPC:11,"Lucida Bright":15,"Lucida Calligraphy":17,"Lucida Console":15,"Lucida Fax":16,"Lucida Handwriting":17,"Lucida Sans":16,"Lucida Sans Typewriter":14,"Lucida Sans Unicode":16,"Magic R":14,Magneto:19,"Maiandra GD":15,"Malgun Gothic":14,"Malgun Gothic Semilight":14,Mangal:14,Marlett:25,"Matura MT Script Capitals":17,Meiryo:16,"Meiryo UI":16,"Microsoft GothicNeo":13,"Microsoft Himalaya":9,"Microsoft JhengHei":14,"Microsoft JhengHei Light":15,"Microsoft JhengHei UI":14,"Microsoft JhengHei UI Light":15,"Microsoft New Tai Lue":14,"Microsoft PhagsPa":14,"Microsoft Sans Serif":14,"Microsoft Tai Le":14,"Microsoft Uighur":9,"Microsoft YaHei Light":15,"Microsoft YaHei UI":15,"Microsoft YaHei UI Light":15,"Microsoft Yi Baiti":13,MingLiU:13,MingLiU_HKSCS:13,"MingLiU_HKSCS-ExtB":13,"MingLiU-ExtB":13,Miriam:12,"Miriam Fixed":15,Mistral:12,"Modern No. 20":12,"MoeumT R":14,"Mongolian Baiti":13,"Monotype Corsiva":12,MoolBoran:9,"MS Gothic":12,"MS Mincho":13,"MS Outlook":13,"MS PGothic":13,"MS PMincho":13,"MS Reference Sans Serif":16,"MS Reference Specialty":30,"MS UI Gothic":13,"MT Extra":25,"MV Boli":18,"Myanmar Text":14,Narkisim:11,"Neue Haas Grotesk Text Pro":13,"New Gulim":15,"News Gothic MT":16,"Niagara Engraved":9,"Niagara Solid":9,"Nirmala UI":14,"Nirmala UI Semilight":14,Nyala:13,"OCR A Extended":15,OCRB:15,"Old English Text MT":13,Onyx:9,"Palace Script MT":9,"Palatino Linotype":12,Papyrus:15,Parchment:6,Perpetua:11,"Perpetua Titling MT":16,"Plantagenet Cherokee":13,Playbill:10,PMingLiU:12,"PMingLiU-ExtB":12,"Poor Richard":14,Pristina:13,"Pyunji R":13,Raavi:12,"Rage Italic":13,Ravie:24,Rockwell:13,"Rockwell Condensed":10,"Rockwell Extra Bold":17,"Rockwell Light":14,"Rockwell Nova":13,"Rockwell Nova Cond":13,"Rockwell Nova Cond Light":13,"Rockwell Nova Extra Bold":13,"Rockwell Nova Light":13,Rod:15,"Sakkal Majalla":10,"Sanskrit Text":15,"Script MT Bold":13,"Segoe MDL2 Assets":10,"Segoe Print":18,"Segoe Script":18,"Segoe UI":13,"Segoe UI Black":15,"Segoe UI Emoji":13,"Segoe UI Historic":13,"Segoe UI Light":12,"Segoe UI Semibold":14,"Segoe UI Semilight":13,"Segoe UI Symbol":13,Selawik:12,"Selawik Light":13,"Selawik Semibold":14,"Shonar Bangla":12,"Showcard Gothic":14,Shruti:14,"Simplified Arabic":13,"Simplified Arabic Fixed":14,"SimSun-ExtB":12,"Sitka Banner":12,"Sitka Display":13,"Sitka Heading":13,"Sitka Small":16,"Sitka Subheading":14,"Sitka Text":15,"Snap ITC":21,"Source Sans Pro":12,"Source Sans Pro Black":12,"Source Sans Pro ExtraLight":11,"Source Sans Pro Light":12,"Source Sans Pro SemiBold":12,Stencil:14,Sylfaen:12,Symbol:12,Tahoma:13,"Tempus Sans ITC":16,"TH SarabunPSK":9,"Times New Roman":12,"Traditional Arabic":12,"Trebuchet MS":13,Tunga:13,"Tw Cen MT":13,"Tw Cen MT Condensed":9,"Tw Cen MT Condensed Extra Bold":12,"UD Digi Kyokasho N-B":12,"UD Digi Kyokasho NK-B":12,"UD Digi Kyokasho NK-R":12,"UD Digi Kyokasho NP-B":17,"UD Digi Kyokasho NP-R":12,"UD Digi Kyokasho N-R":12,Univers:12,"Univers Condensed":12,"Univers Condensed Light":11,"Univers Light":12,"Urdu Typesetting":12,Utsaah:10,Vani:15,Verdana:15,"Verdana Pro":15,"Verdana Pro Black":12,"Verdana Pro Cond":12,"Verdana Pro Cond Black":12,"Verdana Pro Cond Light":12,"Verdana Pro Cond SemiBold":12,"Verdana Pro Light":12,"Verdana Pro SemiBold":12,Vijaya:12,"Viner Hand ITC":16,Vivaldi:10,"Vladimir Script":11,Vrinda:14,Webdings:24,"Wide Latin":30,Wingdings:32,"Wingdings 2":27,"Wingdings 3":21,"Yet R":13,"Yu Gothic":13,"Yu Gothic Light":13,"Yu Gothic Medium":13,"Yu Gothic UI":13,"Yu Gothic UI Light":13,"Yu Gothic UI Semibold":14,"Yu Gothic UI Semilight":13,"Yu Mincho":13,"Yu Mincho Demibold":13,"Yu Mincho Light":12,"\u4eff\u5b8b":12,"\u534e\u6587\u4e2d\u5b8b":15,"\u534e\u6587\u4eff\u5b8b":11,"\u534e\u6587\u5b8b\u4f53":11,"\u534e\u6587\u5f69\u4e91":14,"\u534e\u6587\u65b0\u9b4f":14,"\u534e\u6587\u6977\u4f53":11,"\u534e\u6587\u7425\u73c0":14,"\u534e\u6587\u7ec6\u9ed1":13,"\u534e\u6587\u884c\u6977":12,"\u534e\u6587\u96b6\u4e66":11,"\u5b8b\u4f53":12,"\u5e7c\u5706":12,"\u5fae\u8f6f\u96c5\u9ed1":14,"\u5fae\u8f6f\u96c5\u9ed1 Light":14,"\u65b0\u5b8b\u4f53":12,"\u65b9\u6b63\u59da\u4f53":12,"\u65b9\u6b63\u8212\u4f53":13,"\u6977\u4f53":12,"\u7b49\u7ebf":13,"\u7b49\u7ebf Light":12,"\u96b6\u4e66":12,"\u9ed1\u4f53":12,"\u6e38\u30b4\u30b7\u30c3\u30af":13,"\uff2d\uff33 \uff30\u660e\u671d":12,'"\uff2d\uff33 \uff30\u30b4\u30b7\u30c3\u30af"':12,"\u30e1\u30a4\u30ea\u30aa":15,"HG\uff7a\uff9e\uff7c\uff6f\uff78E":12,"HG\u660e\u671dB":12,"HG\uff7a\uff9e\uff7c\uff6f\uff78M":12},20:{"Gill Sans MT":14,Abadi:16,"Abadi Extra Light":15,"Agency FB":11,Aharoni:11,Aldhabi:9,Algerian:16,"Ami R":11,"Angsana New":9,AngsanaUPC:9,Aparajita:11,"Arabic Typesetting":9,Arial:15,"Arial Black":18,"Arial Narrow":12,"Arial Nova":15,"Arial Nova Cond":14,"Arial Nova Cond Light":12,"Arial Nova Light":15,"Arial Rounded MT Bold":16,"Baskerville Old Face":13,Batang:16,BatangChe:14,"Bauhaus 93":15,"Bell MT":14,Bembo:13,"Berlin Sans FB":16,"Berlin Sans FB Demi":17,"Bernard MT Condensed":13,"Blackadder ITC":11,"Bodoni MT":13,"Bodoni MT Black":18,"Bodoni MT Condensed":9,"Bodoni MT Poster Compressed":8,"Book Antiqua":14,"Bookman Old Style":17,"Bookshelf Symbol 7":20,"Bradley Hand ITC":17,"Britannic Bold":17,Broadway:17,"Browallia New":10,BrowalliaUPC:10,"Brush Script MT":14,Calibri:14,"Calibri Light":14,"Californian FB":14,"Calisto MT":14,Cambria:15,"Cambria Math":15,Candara:15,Castellar:19,Centaur:13,Century:15,"Century Gothic":15,"Century Schoolbook":15,Chiller:13,"Colonna MT":14,"Comic Sans MS":16,Consolas:15,Constantia:15,"Cooper Black":16,"Copperplate Gothic Bold":19,"Copperplate Gothic Light":19,Corbel:14,"Cordia New":10,CordiaUPC:10,"Courier New":16,"Curlz MT":15,Dante:12,DaunPenh:9,David:12,DilleniaUPC:8,DokChampa:15,Dotum:16,DotumChe:14,Dubai:15,"Dubai Light":15,"Dubai Medium":15,Ebrima:15,"Edwardian Script ITC":13,Elephant:20,"Engravers MT":17,"Eras Bold ITC":18,"Eras Demi ITC":16,"Eras Light ITC":14,"Eras Medium ITC":15,EucrosiaUPC:11,Euphemia:16,"Expo M":23,FangSong:14,"Felix Titling":16,"Footlight MT Light":15,Forte:14,"Franklin Gothic Book":16,"Franklin Gothic Demi":16,"Franklin Gothic Demi Cond":14,"Franklin Gothic Heavy":16,"Franklin Gothic Medium":16,"Franklin Gothic Medium Cond":14,FrankRuehl:11,FreesiaUPC:12,"Freestyle Script":10,"French Script MT":10,Gabriola:11,Gadugi:15,Garamond:13,Gautami:16,Georgia:17,"Georgia Pro":15,"Georgia Pro Black":19,"Georgia Pro Cond":14,"Georgia Pro Cond Black":17,"Georgia Pro Cond Light":14,"Georgia Pro Cond Semibold":15,"Georgia Pro Light":15,"Georgia Pro Semibold":17,Gigi:14,"Gill Sans MT Condensed":10,"Gill Sans MT Ext Condensed Bold":9,"Gill Sans Nova":14,"Gill Sans Nova Cond":9,"Gill Sans Nova Cond Lt":8,"Gill Sans Nova Cond Ultra Bold":16,"Gill Sans Nova Cond XBd":14,"Gill Sans Nova Light":14,"Gill Sans Nova Ultra Bold":23,"Gill Sans Ultra Bold":23,"Gill Sans Ultra Bold Condensed":16,Gisha:15,"Gloucester MT Extra Condensed":10,"Goudy Old Style":14,"Goudy Stout":22,Grotesque:13,"Grotesque Light":13,Gulim:16,GulimChe:14,Gungsuh:16,GungsuhChe:14,"Hadassah Friedlaender":15,Haettenschweiler:12,"Harlow Solid Italic":13,Harrington:15,"Headline R":19,HGGothicE:14,HGGothicM:14,HGGyoshotai:14,HGKyokashotai:14,HGMaruGothicMPRO:20,HGMinchoB:15,HGMinchoE:15,HGPGothicE:16,HGPGothicM:17,HGPGyoshotai:14,HGPKyokashotai:14,HGPMinchoB:14,HGPMinchoE:15,HGPSoeiKakugothicUB:18,HGPSoeiKakupoptai:19,HGPSoeiPresenceEB:16,HGSeikaishotaiPRO:16,HGSGothicE:15,HGSGothicM:16,HGSGyoshotai:13,HGSKyokashotai:13,HGSMinchoB:14,HGSMinchoE:15,HGSoeiKakugothicUB:15,HGSoeiKakupoptai:15,HGSoeiPresenceEB:15,HGSSoeiKakugothicUB:17,HGSSoeiKakupoptai:18,HGSSoeiPresenceEB:15,"High Tower Text":13,"HYGothic-Extra":17,"HYGothic-Medium":16,"HYGraphic-Medium":16,"HYGungSo-Bold":16,"HYHeadLine-Medium":16,"HYMyeongJo-Extra":18,"HYPMokGak-Bold":19,"HYPost-Light":18,"HYPost-Medium":19,"HYShortSamul-Medium":10,"HYSinMyeongJo-Medium":17,Impact:15,"Imprint MT Shadow":14,"Informal Roman":15,"Ink Free":14,IrisUPC:14,"Iskoola Pota":14,JasmineUPC:12,"Javanese Text":16,Jokerman:19,"Juice ITC":10,KaiTi:14,Kalinga:15,Kartika:16,"Khmer UI":15,KodchiangUPC:9,Kokila:10,"Kristen ITC":16,"Kunstler Script":10,"Lao UI":15,Latha:14,Leelawadee:15,"Leelawadee UI":15,"Leelawadee UI Semilight":15,"Levenim MT":15,LilyUPC:12,"Lucida Bright":16,"Lucida Calligraphy":19,"Lucida Console":17,"Lucida Fax":18,"Lucida Handwriting":19,"Lucida Sans":18,"Lucida Sans Typewriter":16,"Lucida Sans Unicode":18,"Magic R":16,Magneto:21,"Maiandra GD":17,"Malgun Gothic":16,"Malgun Gothic Semilight":16,Mangal:16,Marlett:28,"Matura MT Script Capitals":19,Meiryo:18,"Meiryo UI":18,"Microsoft GothicNeo":15,"Microsoft Himalaya":10,"Microsoft JhengHei":16,"Microsoft JhengHei Light":17,"Microsoft JhengHei UI":16,"Microsoft JhengHei UI Light":17,"Microsoft New Tai Lue":16,"Microsoft PhagsPa":16,"Microsoft Sans Serif":16,"Microsoft Tai Le":16,"Microsoft Uighur":10,"Microsoft YaHei Light":16,"Microsoft YaHei UI":17,"Microsoft YaHei UI Light":16,"Microsoft Yi Baiti":15,MingLiU:15,MingLiU_HKSCS:15,"MingLiU_HKSCS-ExtB":15,"MingLiU-ExtB":15,Miriam:14,"Miriam Fixed":17,Mistral:13,"Modern No. 20":13,"MoeumT R":16,"Mongolian Baiti":15,"Monotype Corsiva":13,MoolBoran:10,"MS Gothic":14,"MS Mincho":15,"MS Outlook":15,"MS PGothic":15,"MS PMincho":15,"MS Reference Sans Serif":18,"MS Reference Specialty":33,"MS UI Gothic":15,"MT Extra":29,"MV Boli":20,"Myanmar Text":16,Narkisim:12,"Neue Haas Grotesk Text Pro":15,"New Gulim":17,"News Gothic MT":18,"Niagara Engraved":9,"Niagara Solid":9,"Nirmala UI":16,"Nirmala UI Semilight":16,Nyala:15,"OCR A Extended":17,OCRB:17,"Old English Text MT":15,Onyx:9,"Palace Script MT":9,"Palatino Linotype":14,Papyrus:16,Parchment:7,Perpetua:12,"Perpetua Titling MT":18,"Plantagenet Cherokee":15,Playbill:11,PMingLiU:14,"PMingLiU-ExtB":14,"Poor Richard":16,Pristina:14,"Pyunji R":14,Raavi:14,"Rage Italic":15,Ravie:27,Rockwell:15,"Rockwell Condensed":12,"Rockwell Extra Bold":19,"Rockwell Light":15,"Rockwell Nova":15,"Rockwell Nova Cond":15,"Rockwell Nova Cond Light":15,"Rockwell Nova Extra Bold":15,"Rockwell Nova Light":15,Rod:17,"Sakkal Majalla":11,"Sanskrit Text":17,"Script MT Bold":14,"Segoe MDL2 Assets":11,"Segoe Print":20,"Segoe Script":20,"Segoe UI":15,"Segoe UI Black":17,"Segoe UI Emoji":15,"Segoe UI Historic":15,"Segoe UI Light":14,"Segoe UI Semibold":15,"Segoe UI Semilight":15,"Segoe UI Symbol":15,Selawik:14,"Selawik Light":14,"Selawik Semibold":15,"Shonar Bangla":14,"Showcard Gothic":16,Shruti:16,"Simplified Arabic":14,"Simplified Arabic Fixed":16,"SimSun-ExtB":14,"Sitka Banner":14,"Sitka Display":14,"Sitka Heading":15,"Sitka Small":18,"Sitka Subheading":16,"Sitka Text":17,"Snap ITC":23,"Source Sans Pro":13,"Source Sans Pro Black":14,"Source Sans Pro ExtraLight":12,"Source Sans Pro Light":12,"Source Sans Pro SemiBold":14,Stencil:16,Sylfaen:14,Symbol:14,Tahoma:15,"Tempus Sans ITC":18,"TH SarabunPSK":10,"Times New Roman":14,"Traditional Arabic":13,"Trebuchet MS":14,Tunga:14,"Tw Cen MT":15,"Tw Cen MT Condensed":10,"Tw Cen MT Condensed Extra Bold":13,"UD Digi Kyokasho N-B":14,"UD Digi Kyokasho NK-B":14,"UD Digi Kyokasho NK-R":14,"UD Digi Kyokasho NP-B":19,"UD Digi Kyokasho NP-R":14,"UD Digi Kyokasho N-R":14,Univers:14,"Univers Condensed":14,"Univers Condensed Light":12,"Univers Light":14,"Urdu Typesetting":14,Utsaah:11,Vani:17,Verdana:17,"Verdana Pro":17,"Verdana Pro Black":14,"Verdana Pro Cond":14,"Verdana Pro Cond Black":14,"Verdana Pro Cond Light":14,"Verdana Pro Cond SemiBold":14,"Verdana Pro Light":14,"Verdana Pro SemiBold":14,Vijaya:14,"Viner Hand ITC":18,Vivaldi:12,"Vladimir Script":13,Vrinda:16,Webdings:27,"Wide Latin":33,Wingdings:36,"Wingdings 2":31,"Wingdings 3":24,"Yet R":14,"Yu Gothic":15,"Yu Gothic Light":14,"Yu Gothic Medium":15,"Yu Gothic UI":15,"Yu Gothic UI Light":14,"Yu Gothic UI Semibold":16,"Yu Gothic UI Semilight":15,"Yu Mincho":15,"Yu Mincho Demibold":14,"Yu Mincho Light":14,"\u4eff\u5b8b":14,"\u534e\u6587\u4e2d\u5b8b":17,"\u534e\u6587\u4eff\u5b8b":13,"\u534e\u6587\u5b8b\u4f53":13,"\u534e\u6587\u5f69\u4e91":15,"\u534e\u6587\u65b0\u9b4f":16,"\u534e\u6587\u6977\u4f53":13,"\u534e\u6587\u7425\u73c0":15,"\u534e\u6587\u7ec6\u9ed1":15,"\u534e\u6587\u884c\u6977":14,"\u534e\u6587\u96b6\u4e66":12,"\u5b8b\u4f53":14,"\u5e7c\u5706":14,"\u5fae\u8f6f\u96c5\u9ed1":16,"\u5fae\u8f6f\u96c5\u9ed1 Light":15,"\u65b0\u5b8b\u4f53":14,"\u65b9\u6b63\u59da\u4f53":14,"\u65b9\u6b63\u8212\u4f53":15,"\u6977\u4f53":14,"\u7b49\u7ebf":14,"\u7b49\u7ebf Light":14,"\u96b6\u4e66":14,"\u9ed1\u4f53":14,"\u6e38\u30b4\u30b7\u30c3\u30af":15,"\uff2d\uff33 \uff30\u660e\u671d":14,'"\uff2d\uff33 \uff30\u30b4\u30b7\u30c3\u30af"':14,"\u30e1\u30a4\u30ea\u30aa":17,"HG\uff7a\uff9e\uff7c\uff6f\uff78E":14,"HG\u660e\u671dB":14,"HG\uff7a\uff9e\uff7c\uff6f\uff78M":14},22:{"Gill Sans MT":15,Abadi:18,"Abadi Extra Light":16,"Agency FB":11,Aharoni:12,Aldhabi:9,Algerian:17,"Ami R":12,"Angsana New":10,AngsanaUPC:10,Aparajita:12,"Arabic Typesetting":10,Arial:16,"Arial Black":19,"Arial Narrow":13,"Arial Nova":16,"Arial Nova Cond":15,"Arial Nova Cond Light":13,"Arial Nova Light":16,"Arial Rounded MT Bold":17,"Baskerville Old Face":14,Batang:17,BatangChe:15,"Bauhaus 93":16,"Bell MT":15,Bembo:14,"Berlin Sans FB":17,"Berlin Sans FB Demi":18,"Bernard MT Condensed":14,"Blackadder ITC":11,"Bodoni MT":14,"Bodoni MT Black":19,"Bodoni MT Condensed":10,"Bodoni MT Poster Compressed":9,"Book Antiqua":15,"Bookman Old Style":18,"Bookshelf Symbol 7":21,"Bradley Hand ITC":19,"Britannic Bold":18,Broadway:19,"Browallia New":11,BrowalliaUPC:11,"Brush Script MT":15,Calibri:15,"Calibri Light":15,"Californian FB":15,"Calisto MT":15,Cambria:16,"Cambria Math":16,Candara:16,Castellar:21,Centaur:14,Century:16,"Century Gothic":16,"Century Schoolbook":16,Chiller:14,"Colonna MT":15,"Comic Sans MS":18,Consolas:16,Constantia:16,"Cooper Black":17,"Copperplate Gothic Bold":21,"Copperplate Gothic Light":21,Corbel:15,"Cordia New":11,CordiaUPC:11,"Courier New":17,"Curlz MT":16,Dante:13,DaunPenh:10,David:13,DilleniaUPC:9,DokChampa:16,Dotum:17,DotumChe:15,Dubai:16,"Dubai Light":16,"Dubai Medium":16,Ebrima:16,"Edwardian Script ITC":14,Elephant:22,"Engravers MT":19,"Eras Bold ITC":19,"Eras Demi ITC":18,"Eras Light ITC":16,"Eras Medium ITC":17,EucrosiaUPC:12,Euphemia:17,"Expo M":25,FangSong:15,"Felix Titling":17,"Footlight MT Light":16,Forte:15,"Franklin Gothic Book":17,"Franklin Gothic Demi":17,"Franklin Gothic Demi Cond":15,"Franklin Gothic Heavy":17,"Franklin Gothic Medium":17,"Franklin Gothic Medium Cond":15,FrankRuehl:12,FreesiaUPC:13,"Freestyle Script":10,"French Script MT":11,Gabriola:12,Gadugi:16,Garamond:14,Gautami:17,Georgia:18,"Georgia Pro":16,"Georgia Pro Black":21,"Georgia Pro Cond":15,"Georgia Pro Cond Black":18,"Georgia Pro Cond Light":15,"Georgia Pro Cond Semibold":16,"Georgia Pro Light":16,"Georgia Pro Semibold":18,Gigi:14,"Gill Sans MT Condensed":11,"Gill Sans MT Ext Condensed Bold":10,"Gill Sans Nova":15,"Gill Sans Nova Cond":10,"Gill Sans Nova Cond Lt":9,"Gill Sans Nova Cond Ultra Bold":17,"Gill Sans Nova Cond XBd":15,"Gill Sans Nova Light":15,"Gill Sans Nova Ultra Bold":25,"Gill Sans Ultra Bold":25,"Gill Sans Ultra Bold Condensed":17,Gisha:16,"Gloucester MT Extra Condensed":11,"Goudy Old Style":15,"Goudy Stout":24,Grotesque:14,"Grotesque Light":14,Gulim:17,GulimChe:15,Gungsuh:17,GungsuhChe:15,"Hadassah Friedlaender":17,Haettenschweiler:13,"Harlow Solid Italic":14,Harrington:16,"Headline R":21,HGGothicE:15,HGGothicM:15,HGGyoshotai:15,HGKyokashotai:15,HGMaruGothicMPRO:22,HGMinchoB:16,HGMinchoE:16,HGPGothicE:17,HGPGothicM:18,HGPGyoshotai:15,HGPKyokashotai:14,HGPMinchoB:15,HGPMinchoE:16,HGPSoeiKakugothicUB:19,HGPSoeiKakupoptai:20,HGPSoeiPresenceEB:17,HGSeikaishotaiPRO:17,HGSGothicE:16,HGSGothicM:17,HGSGyoshotai:14,HGSKyokashotai:13,HGSMinchoB:15,HGSMinchoE:16,HGSoeiKakugothicUB:16,HGSoeiKakupoptai:16,HGSoeiPresenceEB:16,HGSSoeiKakugothicUB:18,HGSSoeiKakupoptai:19,HGSSoeiPresenceEB:16,"High Tower Text":14,"HYGothic-Extra":18,"HYGothic-Medium":17,"HYGraphic-Medium":17,"HYGungSo-Bold":17,"HYHeadLine-Medium":17,"HYMyeongJo-Extra":19,"HYPMokGak-Bold":21,"HYPost-Light":19,"HYPost-Medium":21,"HYShortSamul-Medium":11,"HYSinMyeongJo-Medium":18,Impact:16,"Imprint MT Shadow":15,"Informal Roman":16,"Ink Free":15,IrisUPC:15,"Iskoola Pota":15,JasmineUPC:13,"Javanese Text":17,Jokerman:21,"Juice ITC":11,KaiTi:15,Kalinga:16,Kartika:17,"Khmer UI":16,KodchiangUPC:10,Kokila:11,"Kristen ITC":17,"Kunstler Script":10,"Lao UI":16,Latha:15,Leelawadee:16,"Leelawadee UI":16,"Leelawadee UI Semilight":16,"Levenim MT":17,LilyUPC:13,"Lucida Bright":18,"Lucida Calligraphy":20,"Lucida Console":18,"Lucida Fax":19,"Lucida Handwriting":21,"Lucida Sans":19,"Lucida Sans Typewriter":17,"Lucida Sans Unicode":19,"Magic R":17,Magneto:22,"Maiandra GD":18,"Malgun Gothic":17,"Malgun Gothic Semilight":17,Mangal:17,Marlett:30,"Matura MT Script Capitals":20,Meiryo:20,"Meiryo UI":20,"Microsoft GothicNeo":16,"Microsoft Himalaya":11,"Microsoft JhengHei":17,"Microsoft JhengHei Light":18,"Microsoft JhengHei UI":17,"Microsoft JhengHei UI Light":18,"Microsoft New Tai Lue":17,"Microsoft PhagsPa":17,"Microsoft Sans Serif":17,"Microsoft Tai Le":17,"Microsoft Uighur":11,"Microsoft YaHei Light":18,"Microsoft YaHei UI":18,"Microsoft YaHei UI Light":18,"Microsoft Yi Baiti":16,MingLiU:16,MingLiU_HKSCS:16,"MingLiU_HKSCS-ExtB":16,"MingLiU-ExtB":16,Miriam:15,"Miriam Fixed":18,Mistral:14,"Modern No. 20":14,"MoeumT R":17,"Mongolian Baiti":16,"Monotype Corsiva":14,MoolBoran:11,"MS Gothic":15,"MS Mincho":16,"MS Outlook":16,"MS PGothic":16,"MS PMincho":16,"MS Reference Sans Serif":19,"MS Reference Specialty":36,"MS UI Gothic":16,"MT Extra":31,"MV Boli":21,"Myanmar Text":17,Narkisim:13,"Neue Haas Grotesk Text Pro":16,"New Gulim":18,"News Gothic MT":19,"Niagara Engraved":10,"Niagara Solid":10,"Nirmala UI":17,"Nirmala UI Semilight":17,Nyala:16,"OCR A Extended":19,OCRB:18,"Old English Text MT":16,Onyx:10,"Palace Script MT":10,"Palatino Linotype":15,Papyrus:18,Parchment:7,Perpetua:13,"Perpetua Titling MT":20,"Plantagenet Cherokee":16,Playbill:11,PMingLiU:15,"PMingLiU-ExtB":15,"Poor Richard":17,Pristina:15,"Pyunji R":15,Raavi:15,"Rage Italic":16,Ravie:29,Rockwell:16,"Rockwell Condensed":12,"Rockwell Extra Bold":20,"Rockwell Light":16,"Rockwell Nova":16,"Rockwell Nova Cond":16,"Rockwell Nova Cond Light":16,"Rockwell Nova Extra Bold":16,"Rockwell Nova Light":16,Rod:18,"Sakkal Majalla":12,"Sanskrit Text":18,"Script MT Bold":15,"Segoe MDL2 Assets":12,"Segoe Print":21,"Segoe Script":21,"Segoe UI":16,"Segoe UI Black":18,"Segoe UI Emoji":16,"Segoe UI Historic":16,"Segoe UI Light":15,"Segoe UI Semibold":17,"Segoe UI Semilight":16,"Segoe UI Symbol":16,Selawik:15,"Selawik Light":15,"Selawik Semibold":16,"Shonar Bangla":15,"Showcard Gothic":17,Shruti:17,"Simplified Arabic":15,"Simplified Arabic Fixed":17,"SimSun-ExtB":15,"Sitka Banner":15,"Sitka Display":15,"Sitka Heading":16,"Sitka Small":20,"Sitka Subheading":17,"Sitka Text":18,"Snap ITC":25,"Source Sans Pro":14,"Source Sans Pro Black":15,"Source Sans Pro ExtraLight":13,"Source Sans Pro Light":13,"Source Sans Pro SemiBold":14,Stencil:17,Sylfaen:15,Symbol:15,Tahoma:16,"Tempus Sans ITC":19,"TH SarabunPSK":11,"Times New Roman":15,"Traditional Arabic":14,"Trebuchet MS":15,Tunga:15,"Tw Cen MT":16,"Tw Cen MT Condensed":11,"Tw Cen MT Condensed Extra Bold":14,"UD Digi Kyokasho N-B":15,"UD Digi Kyokasho NK-B":15,"UD Digi Kyokasho NK-R":15,"UD Digi Kyokasho NP-B":21,"UD Digi Kyokasho NP-R":15,"UD Digi Kyokasho N-R":15,Univers:15,"Univers Condensed":15,"Univers Condensed Light":13,"Univers Light":15,"Urdu Typesetting":15,Utsaah:12,Vani:18,Verdana:18,"Verdana Pro":18,"Verdana Pro Black":15,"Verdana Pro Cond":15,"Verdana Pro Cond Black":15,"Verdana Pro Cond Light":15,"Verdana Pro Cond SemiBold":15,"Verdana Pro Light":15,"Verdana Pro SemiBold":15,Vijaya:12,"Viner Hand ITC":20,Vivaldi:12,"Vladimir Script":13,Vrinda:17,Webdings:29,"Wide Latin":36,Wingdings:39,"Wingdings 2":33,"Wingdings 3":26,"Yet R":16,"Yu Gothic":16,"Yu Gothic Light":16,"Yu Gothic Medium":16,"Yu Gothic UI":16,"Yu Gothic UI Light":15,"Yu Gothic UI Semibold":17,"Yu Gothic UI Semilight":16,"Yu Mincho":16,"Yu Mincho Demibold":15,"Yu Mincho Light":15,"\u4eff\u5b8b":15,"\u534e\u6587\u4e2d\u5b8b":18,"\u534e\u6587\u4eff\u5b8b":14,"\u534e\u6587\u5b8b\u4f53":14,"\u534e\u6587\u5f69\u4e91":16,"\u534e\u6587\u65b0\u9b4f":17,"\u534e\u6587\u6977\u4f53":14,"\u534e\u6587\u7425\u73c0":16,"\u534e\u6587\u7ec6\u9ed1":16,"\u534e\u6587\u884c\u6977":15,"\u534e\u6587\u96b6\u4e66":13,"\u5b8b\u4f53":15,"\u5e7c\u5706":15,"\u5fae\u8f6f\u96c5\u9ed1":17,"\u5fae\u8f6f\u96c5\u9ed1 Light":17,"\u65b0\u5b8b\u4f53":15,"\u65b9\u6b63\u59da\u4f53":15,"\u65b9\u6b63\u8212\u4f53":16,"\u6977\u4f53":15,"\u7b49\u7ebf":15,"\u7b49\u7ebf Light":15,"\u96b6\u4e66":15,"\u9ed1\u4f53":15,"\u6e38\u30b4\u30b7\u30c3\u30af":16,"\uff2d\uff33 \uff30\u660e\u671d":15,'"\uff2d\uff33 \uff30\u30b4\u30b7\u30c3\u30af"':15,"\u30e1\u30a4\u30ea\u30aa":18,"HG\uff7a\uff9e\uff7c\uff6f\uff78E":15,"HG\u660e\u671dB":15,"HG\uff7a\uff9e\uff7c\uff6f\uff78M":15},24:{"Gill Sans MT":16,Abadi:19,"Abadi Extra Light":18,"Agency FB":14,Aharoni:13,Aldhabi:10,Algerian:19,"Ami R":13,"Angsana New":11,AngsanaUPC:11,Aparajita:13,"Arabic Typesetting":11,Arial:18,"Arial Black":21,"Arial Narrow":15,"Arial Nova":18,"Arial Nova Cond":16,"Arial Nova Cond Light":14,"Arial Nova Light":18,"Arial Rounded MT Bold":19,"Baskerville Old Face":16,Batang:19,BatangChe:16,"Bauhaus 93":18,"Bell MT":16,Bembo:16,"Berlin Sans FB":19,"Berlin Sans FB Demi":20,"Bernard MT Condensed":16,"Blackadder ITC":13,"Bodoni MT":16,"Bodoni MT Black":21,"Bodoni MT Condensed":11,"Bodoni MT Poster Compressed":9,"Book Antiqua":16,"Bookman Old Style":20,"Bookshelf Symbol 7":24,"Bradley Hand ITC":21,"Britannic Bold":20,Broadway:21,"Browallia New":12,BrowalliaUPC:12,"Brush Script MT":16,Calibri:16,"Calibri Light":16,"Californian FB":17,"Calisto MT":16,Cambria:18,"Cambria Math":18,Candara:18,Castellar:23,Centaur:16,Century:18,"Century Gothic":18,"Century Schoolbook":18,Chiller:15,"Colonna MT":16,"Comic Sans MS":20,Consolas:18,Constantia:17,"Cooper Black":19,"Copperplate Gothic Bold":23,"Copperplate Gothic Light":23,Corbel:17,"Cordia New":12,CordiaUPC:12,"Courier New":19,"Curlz MT":17,Dante:14,DaunPenh:11,David:14,DilleniaUPC:10,DokChampa:18,Dotum:19,DotumChe:16,Dubai:17,"Dubai Light":17,"Dubai Medium":17,Ebrima:17,"Edwardian Script ITC":15,Elephant:24,"Engravers MT":21,"Eras Bold ITC":21,"Eras Demi ITC":20,"Eras Light ITC":17,"Eras Medium ITC":18,EucrosiaUPC:13,Euphemia:19,"Expo M":28,FangSong:16,"Felix Titling":19,"Footlight MT Light":18,Forte:17,"Franklin Gothic Book":19,"Franklin Gothic Demi":19,"Franklin Gothic Demi Cond":16,"Franklin Gothic Heavy":19,"Franklin Gothic Medium":19,"Franklin Gothic Medium Cond":16,FrankRuehl:13,FreesiaUPC:14,"Freestyle Script":12,"French Script MT":12,Gabriola:13,Gadugi:17,Garamond:15,Gautami:19,Georgia:20,"Georgia Pro":18,"Georgia Pro Black":23,"Georgia Pro Cond":17,"Georgia Pro Cond Black":20,"Georgia Pro Cond Light":16,"Georgia Pro Cond Semibold":18,"Georgia Pro Light":18,"Georgia Pro Semibold":20,Gigi:17,"Gill Sans MT Condensed":12,"Gill Sans MT Ext Condensed Bold":11,"Gill Sans Nova":16,"Gill Sans Nova Cond":11,"Gill Sans Nova Cond Lt":10,"Gill Sans Nova Cond Ultra Bold":19,"Gill Sans Nova Cond XBd":17,"Gill Sans Nova Light":16,"Gill Sans Nova Ultra Bold":27,"Gill Sans Ultra Bold":27,"Gill Sans Ultra Bold Condensed":19,Gisha:17,"Gloucester MT Extra Condensed":12,"Goudy Old Style":16,"Goudy Stout":26,Grotesque:15,"Grotesque Light":15,Gulim:18,GulimChe:16,Gungsuh:19,GungsuhChe:16,"Hadassah Friedlaender":18,Haettenschweiler:14,"Harlow Solid Italic":15,Harrington:18,"Headline R":23,HGGothicE:16,HGGothicM:16,HGGyoshotai:16,HGKyokashotai:16,HGMaruGothicMPRO:24,HGMinchoB:17,HGMinchoE:17,HGPGothicE:18,HGPGothicM:20,HGPGyoshotai:16,HGPKyokashotai:16,HGPMinchoB:16,HGPMinchoE:18,HGPSoeiKakugothicUB:21,HGPSoeiKakupoptai:22,HGPSoeiPresenceEB:19,HGSeikaishotaiPRO:19,HGSGothicE:17,HGSGothicM:19,HGSGyoshotai:15,HGSKyokashotai:15,HGSMinchoB:16,HGSMinchoE:18,HGSoeiKakugothicUB:17,HGSoeiKakupoptai:17,HGSoeiPresenceEB:17,HGSSoeiKakugothicUB:20,HGSSoeiKakupoptai:21,HGSSoeiPresenceEB:18,"High Tower Text":15,"HYGothic-Extra":20,"HYGothic-Medium":19,"HYGraphic-Medium":19,"HYGungSo-Bold":19,"HYHeadLine-Medium":19,"HYMyeongJo-Extra":21,"HYPMokGak-Bold":23,"HYPost-Light":21,"HYPost-Medium":23,"HYShortSamul-Medium":12,"HYSinMyeongJo-Medium":20,Impact:17,"Imprint MT Shadow":16,"Informal Roman":17,"Ink Free":16,IrisUPC:16,"Iskoola Pota":16,JasmineUPC:15,"Javanese Text":19,Jokerman:23,"Juice ITC":11,KaiTi:16,Kalinga:18,Kartika:18,"Khmer UI":17,KodchiangUPC:11,Kokila:12,"Kristen ITC":19,"Kunstler Script":11,"Lao UI":17,Latha:16,Leelawadee:17,"Leelawadee UI":17,"Leelawadee UI Semilight":18,"Levenim MT":18,LilyUPC:14,"Lucida Bright":19,"Lucida Calligraphy":22,"Lucida Console":20,"Lucida Fax":21,"Lucida Handwriting":23,"Lucida Sans":21,"Lucida Sans Typewriter":19,"Lucida Sans Unicode":21,"Magic R":19,Magneto:25,"Maiandra GD":20,"Malgun Gothic":19,"Malgun Gothic Semilight":19,Mangal:18,Marlett:33,"Matura MT Script Capitals":22,Meiryo:22,"Meiryo UI":22,"Microsoft GothicNeo":17,"Microsoft Himalaya":12,"Microsoft JhengHei":19,"Microsoft JhengHei Light":19,"Microsoft JhengHei UI":19,"Microsoft JhengHei UI Light":19,"Microsoft New Tai Lue":18,"Microsoft PhagsPa":18,"Microsoft Sans Serif":19,"Microsoft Tai Le":18,"Microsoft Uighur":12,"Microsoft YaHei Light":19,"Microsoft YaHei UI":20,"Microsoft YaHei UI Light":19,"Microsoft Yi Baiti":17,MingLiU:17,MingLiU_HKSCS:17,"MingLiU_HKSCS-ExtB":17,"MingLiU-ExtB":17,Miriam:16,"Miriam Fixed":20,Mistral:15,"Modern No. 20":16,"MoeumT R":19,"Mongolian Baiti":17,"Monotype Corsiva":15,MoolBoran:12,"MS Gothic":16,"MS Mincho":17,"MS Outlook":17,"MS PGothic":17,"MS PMincho":17,"MS Reference Sans Serif":21,"MS Reference Specialty":39,"MS UI Gothic":17,"MT Extra":34,"MV Boli":23,"Myanmar Text":18,Narkisim:14,"Neue Haas Grotesk Text Pro":17,"New Gulim":19,"News Gothic MT":21,"Niagara Engraved":11,"Niagara Solid":11,"Nirmala UI":18,"Nirmala UI Semilight":19,Nyala:17,"OCR A Extended":20,OCRB:20,"Old English Text MT":17,Onyx:10,"Palace Script MT":11,"Palatino Linotype":16,Papyrus:20,Parchment:8,Perpetua:15,"Perpetua Titling MT":22,"Plantagenet Cherokee":18,Playbill:12,PMingLiU:16,"PMingLiU-ExtB":16,"Poor Richard":19,Pristina:16,"Pyunji R":17,Raavi:16,"Rage Italic":18,Ravie:31,Rockwell:17,"Rockwell Condensed":14,"Rockwell Extra Bold":22,"Rockwell Light":18,"Rockwell Nova":17,"Rockwell Nova Cond":17,"Rockwell Nova Cond Light":17,"Rockwell Nova Extra Bold":17,"Rockwell Nova Light":17,Rod:20,"Sakkal Majalla":13,"Sanskrit Text":19,"Script MT Bold":17,"Segoe MDL2 Assets":13,"Segoe Print":23,"Segoe Script":23,"Segoe UI":17,"Segoe UI Black":20,"Segoe UI Emoji":17,"Segoe UI Historic":17,"Segoe UI Light":16,"Segoe UI Semibold":18,"Segoe UI Semilight":17,"Segoe UI Symbol":17,Selawik:17,"Selawik Light":17,"Selawik Semibold":18,"Shonar Bangla":13,"Showcard Gothic":19,Shruti:19,"Simplified Arabic":17,"Simplified Arabic Fixed":19,"SimSun-ExtB":16,"Sitka Banner":16,"Sitka Display":17,"Sitka Heading":18,"Sitka Small":22,"Sitka Subheading":19,"Sitka Text":20,"Snap ITC":28,"Source Sans Pro":15,"Source Sans Pro Black":17,"Source Sans Pro ExtraLight":15,"Source Sans Pro Light":15,"Source Sans Pro SemiBold":16,Stencil:18,Sylfaen:16,Symbol:16,Tahoma:17,"Tempus Sans ITC":21,"TH SarabunPSK":12,"Times New Roman":16,"Traditional Arabic":16,"Trebuchet MS":17,Tunga:17,"Tw Cen MT":18,"Tw Cen MT Condensed":12,"Tw Cen MT Condensed Extra Bold":16,"UD Digi Kyokasho N-B":16,"UD Digi Kyokasho NK-B":16,"UD Digi Kyokasho NK-R":16,"UD Digi Kyokasho NP-B":23,"UD Digi Kyokasho NP-R":16,"UD Digi Kyokasho N-R":16,Univers:16,"Univers Condensed":16,"Univers Condensed Light":14,"Univers Light":16,"Urdu Typesetting":16,Utsaah:13,Vani:20,Verdana:20,"Verdana Pro":20,"Verdana Pro Black":16,"Verdana Pro Cond":16,"Verdana Pro Cond Black":16,"Verdana Pro Cond Light":16,"Verdana Pro Cond SemiBold":16,"Verdana Pro Light":16,"Verdana Pro SemiBold":16,Vijaya:13,"Viner Hand ITC":22,Vivaldi:14,"Vladimir Script":15,Vrinda:18,Webdings:32,"Wide Latin":40,Wingdings:43,"Wingdings 2":36,"Wingdings 3":29,"Yet R":17,"Yu Gothic":18,"Yu Gothic Light":17,"Yu Gothic Medium":18,"Yu Gothic UI":17,"Yu Gothic UI Light":17,"Yu Gothic UI Semibold":18,"Yu Gothic UI Semilight":18,"Yu Mincho":17,"Yu Mincho Demibold":17,"Yu Mincho Light":16,"\u4eff\u5b8b":16,"\u534e\u6587\u4e2d\u5b8b":20,"\u534e\u6587\u4eff\u5b8b":15,"\u534e\u6587\u5b8b\u4f53":15,"\u534e\u6587\u5f69\u4e91":18,"\u534e\u6587\u65b0\u9b4f":19,"\u534e\u6587\u6977\u4f53":15,"\u534e\u6587\u7425\u73c0":18,"\u534e\u6587\u7ec6\u9ed1":18,"\u534e\u6587\u884c\u6977":16,"\u534e\u6587\u96b6\u4e66":14,"\u5b8b\u4f53":16,"\u5e7c\u5706":16,"\u5fae\u8f6f\u96c5\u9ed1":19,"\u5fae\u8f6f\u96c5\u9ed1 Light":18,"\u65b0\u5b8b\u4f53":16,"\u65b9\u6b63\u59da\u4f53":16,"\u65b9\u6b63\u8212\u4f53":18,"\u6977\u4f53":16,"\u7b49\u7ebf":17,"\u7b49\u7ebf Light":16,"\u96b6\u4e66":16,"\u9ed1\u4f53":16,"\u6e38\u30b4\u30b7\u30c3\u30af":18,"\uff2d\uff33 \uff30\u660e\u671d":16,'"\uff2d\uff33 \uff30\u30b4\u30b7\u30c3\u30af"':16,"\u30e1\u30a4\u30ea\u30aa":20,"HG\uff7a\uff9e\uff7c\uff6f\uff78E":16,"HG\u660e\u671dB":16,"HG\uff7a\uff9e\uff7c\uff6f\uff78M":16}},f.unknownFontMaxDigitWidthMap={},U.pixelToPoint=function(t){return 72*t/96},U.pointToPixel=function(t,e){return Gn(96*t/72,e=void 0===e?2:e)},U.setMaxDigitWidth=function(t){var e,n,i,r,o,a,s,u,c,e=0;try{if((n=ae("span")).style.font=t,i=n.style.fontSize,r=void 0,-1!==i.indexOf("px")?r=Math.round(U.pixelToPoint(parseFloat(i))):-1!==i.indexOf("pt")&&(r=Math.round(parseFloat(i))),!isNaN(r)&&r||(r=Math.round(U.pixelToPoint(parseFloat(t.match(/(\d|\.)+/)+"")))),(o=n.style.fontFamily)||t.split(" ").forEach(function(t){"normal"!==t&&"italic"!==t&&"bold"!==t&&-1===t.indexOf("px")&&-1===t.indexOf("pt")&&isNaN(+t)&&(o=t)}),o&&'"'===o[0]&&(o=o.slice(1,o.length-1)),f.unknownFontMaxDigitWidthMap[r]&&f.unknownFontMaxDigitWidthMap[r][o]?e=f.unknownFontMaxDigitWidthMap[r][o]:qt[r]&&qt[r][o]&&(e=qt[r][o]),0<e)return void(U.maxDigitWidth=e)}catch(t){}for(a="0123456789",s=0,(u=R()).font=t,c=0;c<a.length;c++)e<(s=u.measureText(a.charAt(c)).width)&&(e=s);return U.maxDigitWidth=0<e?e:U.maxDigitWidth},U.defaultColumnWidthToPixel=function(t){var e,t,e=2*Math.ceil(U.maxDigitWidth/4)+1,t=U.columnWidthToPixel(t)+e;return 8*Math.ceil(t/8)},U.columnWidthToPixel=function(t){return 0===t?0:Math.floor(Math.floor(256*t)/256*U.maxDigitWidth+.5)},U.pixelToColumnWidth=function(t){var e,t;return 0===t?0:(e=U.maxDigitWidth,t=Math.floor((t-5)/e*100+.5)/100,Math.floor((t*e+5)/e*256)/256)},U.maxDigitWidth=7,f.SJSColumnWidthHelper=U,Bn.prototype.equals=function(t){var e=this;return e===t||!!t&&e.numberFormatId===t.numberFormatId&&e.numberFormatCode===t.numberFormatCode},Bn.prototype.compose=function(t){var e=this;e.numberFormatId===g&&(e.numberFormatId=t.numberFormatId),e.numberFormatCode===g&&(e.numberFormatCode=t.numberFormatCode)},Bn.prototype.clone=function(){var t=this;return new Bn(t.numberFormatId,t.numberFormatCode)},f.ExcelNumerFormat=Bn,f.AL=Pn,f.resetFillStyle=Nn,f.i2e=Rn,f.rangeToFormula=En,f.RF=Hn,a.isBase64ImageStr=function(t){return"string"==typeof t&&a.BASE64_IMAGE_REGULAR.test(t)},a.isSVGBase64ImageStr=function(t){return"string"==typeof t&&0===t.indexOf(a.SVG_IMAGE_DATA_URL_PREFIX)},a.isVectorBase64ImageStr=function(t){return a.isSVGBase64ImageStr(t)},a.loadImageElement=function(e,n,i){var r=new L.Wh(function(){var t;r.qh(e)&&(t=r.getImage(e))?n(t):i&&i(),r.L0(),r=g});r.addImage(e,"anonymous")},a.loadBase64ImageByUrl=function(t,i,r){a.loadImageElement(t,function(t){var e,n,e=document.createElement("canvas");e.width=t.naturalWidth,e.height=t.naturalHeight,e.getContext("2d").drawImage(t,0,0);try{n=e.toDataURL(),i(n)}catch(t){r&&r()}},r)},a.BASE64_IMAGE_REGULAR=/^data:image\/(.*);base64,(.*)$/,a.SVG_IMAGE_DATA_URL_PREFIX="data:image/svg+xml;base64,",f.oCe=a,f.handleRestoredTableResizedArgs=Un},"./dist/core/util/crypto.js":function(t,e){"use strict";var n,u,c,p,i,f,r,et,l,o,a,h,s,d,v,g;function m(t,e){this.bits=t,this.init(e)}function S(t,e,n){var i,r,o,a,s,i=this;for(128<t.length&&(t=new l(e,!0).update(t).digest()),r=[],o=[],a=0;a<128;++a)s=t[a]||0,r[a]=92^s,o[a]=54^s;return(i=g.call(this,e,n)||this).update(o),i.oKeyPad=r,i.inner=!0,i.sharedMemory=n,i}for(n=this&&this.__extends||(v=function(t,e){return(v=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(t,e){t.__proto__=e}:function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])}))(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}v(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),Object.defineProperty(e,"__esModule",{value:!0}),e.e1e=e.i1e=e.Qoe=void 0,u="input is invalid type",c="finalize already called",p="0123456789abcdef".split(""),i=[],f=[24,16,8,0],r=[-2147483648,8388608,32768,128],et=[1116352408,3609767458,1899447441,602891725,3049323471,3964484399,3921009573,2173295548,961987163,4081628472,1508970993,3053834265,2453635748,2937671579,2870763221,3664609560,3624381080,2734883394,310598401,1164996542,607225278,1323610764,1426881987,3590304994,1925078388,4068182383,2162078206,991336113,2614888103,633803317,3248222580,3479774868,3835390401,2666613458,4022224774,944711139,264347078,2341262773,604807628,2007800933,770255983,1495990901,1249150122,1856431235,1555081692,3175218132,1996064986,2198950837,2554220882,3999719339,2821834349,766784016,2952996808,2566594879,3210313671,3203337956,3336571891,1034457026,3584528711,2466948901,113926993,3758326383,338241895,168717936,666307205,1188179964,773529912,1546045734,1294757372,1522805485,1396182291,2643833823,1695183700,2343527390,1986661051,1014477480,2177026350,1206759142,2456956037,344077627,2730485921,1290863460,2820302411,3158454273,3259730800,3505952657,3345764771,106217008,3516065817,3606008344,3600352804,1432725776,4094571909,1467031594,275423344,851169720,430227734,3100823752,506948616,1363258195,659060556,3750685593,883997877,3785050280,958139571,3318307427,1322822218,3812723403,1537002063,2003034995,1747873779,3602036899,1955562222,1575990012,2024104815,1125592928,2227730452,2716904306,2361852424,442776044,2428436474,593698344,2756734187,3733110249,3204031479,2999351573,3329325298,3815920427,3391569614,3928383900,3515267271,566280711,3940187606,3454069534,4118630271,4000239992,116418474,1914138554,174292421,2731055270,289380356,3203993006,460393269,320620315,685471733,587496836,852142971,1086792851,1017036298,365543100,1126000580,2618297676,1288033470,3409855158,1501505948,4234509866,1607167915,987167468,1816402316,1246189591],m.prototype.init=function(t){t?(i[0]=i[1]=i[2]=i[3]=i[4]=i[5]=i[6]=i[7]=i[8]=i[9]=i[10]=i[11]=i[12]=i[13]=i[14]=i[15]=i[16]=i[17]=i[18]=i[19]=i[20]=i[21]=i[22]=i[23]=i[24]=i[25]=i[26]=i[27]=i[28]=i[29]=i[30]=i[31]=i[32]=0,this.blocks=i):this.blocks=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];var t=this.bits;384===t?(this.h0h=3418070365,this.h0l=3238371032,this.h1h=1654270250,this.h1l=914150663,this.h2h=2438529370,this.h2l=812702999,this.h3h=355462360,this.h3l=4144912697,this.h4h=1731405415,this.h4l=4290775857,this.h5h=2394180231,this.h5l=1750603025,this.h6h=3675008525,this.h6l=1694076839,this.h7h=1203062813,this.h7l=3204075428):256===t?(this.h0h=573645204,this.h0l=4230739756,this.h1h=2673172387,this.h1l=3360449730,this.h2h=596883563,this.h2l=1867755857,this.h3h=2520282905,this.h3l=1497426621,this.h4h=2519219938,this.h4l=2827943907,this.h5h=3193839141,this.h5l=1401305490,this.h6h=721525244,this.h6l=746961066,this.h7h=246885852,this.h7l=2177182882):224===t?(this.h0h=2352822216,this.h0l=424955298,this.h1h=1944164710,this.h1l=2312950998,this.h2h=502970286,this.h2l=855612546,this.h3h=1738396948,this.h3l=1479516111,this.h4h=258812777,this.h4l=2077511080,this.h5h=2011393907,this.h5l=79989058,this.h6h=1067287976,this.h6l=1780299464,this.h7h=286451373,this.h7l=2446758561):(this.h0h=1779033703,this.h0l=4089235720,this.h1h=3144134277,this.h1l=2227873595,this.h2h=1013904242,this.h2l=4271175723,this.h3h=2773480762,this.h3l=1595750129,this.h4h=1359893119,this.h4l=2917565137,this.h5h=2600822924,this.h5l=725511199,this.h6h=528734635,this.h6l=4215389547,this.h7h=1541459225,this.h7l=327033209),this.block=this.start=this.bytes=this.hBytes=0,this.finalized=this.hashed=!1},m.prototype.update=function(t){var e,n,i,r,o,a,s;if(this.finalized)throw new Error(c);if("string"!=(n=typeof t)){if("object"!=n)throw new Error(u);if(null===t)throw new Error(u);if(!Array.isArray(t)&&!ArrayBuffer.isView(t))throw new Error(u);e=!0}for(r=0,a=t.length,s=this.blocks;r<a;){if(this.hashed&&(this.hashed=!1,s[0]=this.block,s[1]=s[2]=s[3]=s[4]=s[5]=s[6]=s[7]=s[8]=s[9]=s[10]=s[11]=s[12]=s[13]=s[14]=s[15]=s[16]=s[17]=s[18]=s[19]=s[20]=s[21]=s[22]=s[23]=s[24]=s[25]=s[26]=s[27]=s[28]=s[29]=s[30]=s[31]=s[32]=0),e)for(o=this.start;r<a&&o<128;++r)s[o>>2]|=t[r]<<f[3&o++];else for(o=this.start;r<a&&o<128;++r)(i=t.charCodeAt(r))<128?s[o>>2]|=i<<f[3&o++]:(i<2048?s[o>>2]|=(192|i>>6)<<f[3&o++]:(i<55296||57344<=i?s[o>>2]|=(224|i>>12)<<f[3&o++]:(i=65536+((1023&i)<<10|1023&t.charCodeAt(++r)),s[o>>2]|=(240|i>>18)<<f[3&o++],s[o>>2]|=(128|i>>12&63)<<f[3&o++]),s[o>>2]|=(128|i>>6&63)<<f[3&o++]),s[o>>2]|=(128|63&i)<<f[3&o++]);this.lastByteIndex=o,this.bytes+=o-this.start,128<=o?(this.block=s[32],this.start=o-128,this.hash(),this.hashed=!0):this.start=o}return 4294967295<this.bytes&&(this.hBytes+=this.bytes/4294967296<<0,this.bytes=this.bytes%4294967296),this},m.prototype.finalize=function(){var t,e;this.finalized||(this.finalized=!0,t=this.blocks,e=this.lastByteIndex,t[32]=this.block,t[e>>2]|=r[3&e],this.block=t[32],112<=e&&(this.hashed||this.hash(),t[0]=this.block,t[1]=t[2]=t[3]=t[4]=t[5]=t[6]=t[7]=t[8]=t[9]=t[10]=t[11]=t[12]=t[13]=t[14]=t[15]=t[16]=t[17]=t[18]=t[19]=t[20]=t[21]=t[22]=t[23]=t[24]=t[25]=t[26]=t[27]=t[28]=t[29]=t[30]=t[31]=t[32]=0),t[30]=this.hBytes<<3|this.bytes>>>29,t[31]=this.bytes<<3,this.hash())},m.prototype.hash=function(){for(var F,_,A,L,D,j,O,V,Y,K,z,W,J,Z,Q,X,t,e,n,i,r,o,a,s,u,c,f,l,q,f,l,q,$,tt,h,d,v,g,m,p,S,w,b,C,y,M,k,T,x,G,B,I,P,N,R,E,H,U,F=this.h0h,_=this.h0l,A=this.h1h,L=this.h1l,D=this.h2h,j=this.h2l,O=this.h3h,V=this.h3l,Y=this.h4h,K=this.h4l,z=this.h5h,W=this.h5l,J=this.h6h,Z=this.h6l,Q=this.h7h,X=this.h7l,t=this.blocks,e=32;e<160;e+=2)n=((v=t[e-30])>>>1|(g=t[e-29])<<31)^(v>>>8|g<<24)^v>>>7,i=(g>>>1|v<<31)^(g>>>8|v<<24)^(g>>>7|v<<25),r=((v=t[e-4])>>>19|(g=t[e-3])<<13)^(g>>>29|v<<3)^v>>>6,o=(g>>>19|v<<13)^(v>>>29|g<<3)^(g>>>6|v<<26),v=t[e-32],g=t[e-31],m=t[e-14],p=t[e-13],t[e]=(c=(m>>>16)+(v>>>16)+(n>>>16)+(r>>>16)+((u=(65535&m)+(65535&v)+(65535&n)+(65535&r)+((s=(p>>>16)+(g>>>16)+(i>>>16)+(o>>>16)+((a=(65535&p)+(65535&g)+(65535&i)+(65535&o))>>>16))>>>16))>>>16))<<16|65535&u,t[e+1]=s<<16|65535&a;for(b=F,C=_,x=O,G=V,B=Y,I=K,P=z,N=W,R=J,E=Z,H=Q,U=X,$=(y=A)&(k=D),tt=(M=L)&(T=j),e=0;e<160;e+=8)v=t[e],g=t[e+1],v=(c=((m=et[e])>>>16)+(v>>>16)+((S=B&P^~B&R)>>>16)+((r=(B>>>14|I<<18)^(B>>>18|I<<14)^(I>>>9|B<<23))>>>16)+(H>>>16)+((u=(65535&m)+(65535&v)+(65535&S)+(65535&r)+(65535&H)+((s=((p=et[e+1])>>>16)+(g>>>16)+((w=I&N^~I&E)>>>16)+((o=(I>>>14|B<<18)^(I>>>18|B<<14)^(B>>>9|I<<23))>>>16)+(U>>>16)+((a=(65535&p)+(65535&g)+(65535&w)+(65535&o)+(65535&U))>>>16))>>>16))>>>16))<<16|65535&u,g=s<<16|65535&a,m=(c=((h=(f=b&y)^b&k^$)>>>16)+((n=(b>>>28|C<<4)^(C>>>2|b<<30)^(C>>>7|b<<25))>>>16)+((u=(65535&h)+(65535&n)+((s=((d=(l=C&M)^C&T^tt)>>>16)+((i=(C>>>28|b<<4)^(b>>>2|C<<30)^(b>>>7|C<<25))>>>16)+((a=(65535&d)+(65535&i))>>>16))>>>16))>>>16))<<16|65535&u,p=s<<16|65535&a,H=(c=(x>>>16)+(v>>>16)+((u=(65535&x)+(65535&v)+((s=(G>>>16)+(g>>>16)+((a=(65535&G)+(65535&g))>>>16))>>>16))>>>16))<<16|65535&u,U=s<<16|65535&a,x=(c=(m>>>16)+(v>>>16)+((u=(65535&m)+(65535&v)+((s=(p>>>16)+(g>>>16)+((a=(65535&p)+(65535&g))>>>16))>>>16))>>>16))<<16|65535&u,G=s<<16|65535&a,v=t[e+2],g=t[e+3],v=(c=((m=et[e+2])>>>16)+(v>>>16)+((S=H&B^~H&P)>>>16)+((r=(H>>>14|U<<18)^(H>>>18|U<<14)^(U>>>9|H<<23))>>>16)+(R>>>16)+((u=(65535&m)+(65535&v)+(65535&S)+(65535&r)+(65535&R)+((s=((p=et[e+3])>>>16)+(g>>>16)+((w=U&I^~U&N)>>>16)+((o=(U>>>14|H<<18)^(U>>>18|H<<14)^(H>>>9|U<<23))>>>16)+(E>>>16)+((a=(65535&p)+(65535&g)+(65535&w)+(65535&o)+(65535&E))>>>16))>>>16))>>>16))<<16|65535&u,g=s<<16|65535&a,m=(c=((h=(q=x&b)^x&y^f)>>>16)+((n=(x>>>28|G<<4)^(G>>>2|x<<30)^(G>>>7|x<<25))>>>16)+((u=(65535&h)+(65535&n)+((s=((d=(f=G&C)^G&M^l)>>>16)+((i=(G>>>28|x<<4)^(x>>>2|G<<30)^(x>>>7|G<<25))>>>16)+((a=(65535&d)+(65535&i))>>>16))>>>16))>>>16))<<16|65535&u,p=s<<16|65535&a,R=(c=(k>>>16)+(v>>>16)+((u=(65535&k)+(65535&v)+((s=(T>>>16)+(g>>>16)+((a=(65535&T)+(65535&g))>>>16))>>>16))>>>16))<<16|65535&u,E=s<<16|65535&a,k=(c=(m>>>16)+(v>>>16)+((u=(65535&m)+(65535&v)+((s=(p>>>16)+(g>>>16)+((a=(65535&p)+(65535&g))>>>16))>>>16))>>>16))<<16|65535&u,T=s<<16|65535&a,v=t[e+4],g=t[e+5],v=(c=((m=et[e+4])>>>16)+(v>>>16)+((S=R&H^~R&B)>>>16)+((r=(R>>>14|E<<18)^(R>>>18|E<<14)^(E>>>9|R<<23))>>>16)+(P>>>16)+((u=(65535&m)+(65535&v)+(65535&S)+(65535&r)+(65535&P)+((s=((p=et[e+5])>>>16)+(g>>>16)+((w=E&U^~E&I)>>>16)+((o=(E>>>14|R<<18)^(E>>>18|R<<14)^(R>>>9|E<<23))>>>16)+(N>>>16)+((a=(65535&p)+(65535&g)+(65535&w)+(65535&o)+(65535&N))>>>16))>>>16))>>>16))<<16|65535&u,g=s<<16|65535&a,m=(c=((h=(l=k&x)^k&b^q)>>>16)+((n=(k>>>28|T<<4)^(T>>>2|k<<30)^(T>>>7|k<<25))>>>16)+((u=(65535&h)+(65535&n)+((s=((d=(q=T&G)^T&C^f)>>>16)+((i=(T>>>28|k<<4)^(k>>>2|T<<30)^(k>>>7|T<<25))>>>16)+((a=(65535&d)+(65535&i))>>>16))>>>16))>>>16))<<16|65535&u,p=s<<16|65535&a,P=(c=(y>>>16)+(v>>>16)+((u=(65535&y)+(65535&v)+((s=(M>>>16)+(g>>>16)+((a=(65535&M)+(65535&g))>>>16))>>>16))>>>16))<<16|65535&u,N=s<<16|65535&a,y=(c=(m>>>16)+(v>>>16)+((u=(65535&m)+(65535&v)+((s=(p>>>16)+(g>>>16)+((a=(65535&p)+(65535&g))>>>16))>>>16))>>>16))<<16|65535&u,M=s<<16|65535&a,v=t[e+6],g=t[e+7],v=(c=((m=et[e+6])>>>16)+(v>>>16)+((S=P&R^~P&H)>>>16)+((r=(P>>>14|N<<18)^(P>>>18|N<<14)^(N>>>9|P<<23))>>>16)+(B>>>16)+((u=(65535&m)+(65535&v)+(65535&S)+(65535&r)+(65535&B)+((s=((p=et[e+7])>>>16)+(g>>>16)+((w=N&E^~N&U)>>>16)+((o=(N>>>14|P<<18)^(N>>>18|P<<14)^(P>>>9|N<<23))>>>16)+(I>>>16)+((a=(65535&p)+(65535&g)+(65535&w)+(65535&o)+(65535&I))>>>16))>>>16))>>>16))<<16|65535&u,g=s<<16|65535&a,m=(c=((h=($=y&k)^y&x^l)>>>16)+((n=(y>>>28|M<<4)^(M>>>2|y<<30)^(M>>>7|y<<25))>>>16)+((u=(65535&h)+(65535&n)+((s=((d=(tt=M&T)^M&G^q)>>>16)+((i=(M>>>28|y<<4)^(y>>>2|M<<30)^(y>>>7|M<<25))>>>16)+((a=(65535&d)+(65535&i))>>>16))>>>16))>>>16))<<16|65535&u,p=s<<16|65535&a,B=(c=(b>>>16)+(v>>>16)+((u=(65535&b)+(65535&v)+((s=(C>>>16)+(g>>>16)+((a=(65535&C)+(65535&g))>>>16))>>>16))>>>16))<<16|65535&u,I=s<<16|65535&a,b=(c=(m>>>16)+(v>>>16)+((u=(65535&m)+(65535&v)+((s=(p>>>16)+(g>>>16)+((a=(65535&p)+(65535&g))>>>16))>>>16))>>>16))<<16|65535&u,C=s<<16|65535&a;this.h0h=(c=(F>>>16)+(b>>>16)+((u=(65535&F)+(65535&b)+((s=(_>>>16)+(C>>>16)+((a=(65535&_)+(65535&C))>>>16))>>>16))>>>16))<<16|65535&u,this.h0l=s<<16|65535&a,this.h1h=(c=(A>>>16)+(y>>>16)+((u=(65535&A)+(65535&y)+((s=(L>>>16)+(M>>>16)+((a=(65535&L)+(65535&M))>>>16))>>>16))>>>16))<<16|65535&u,this.h1l=s<<16|65535&a,this.h2h=(c=(D>>>16)+(k>>>16)+((u=(65535&D)+(65535&k)+((s=(j>>>16)+(T>>>16)+((a=(65535&j)+(65535&T))>>>16))>>>16))>>>16))<<16|65535&u,this.h2l=s<<16|65535&a,this.h3h=(c=(O>>>16)+(x>>>16)+((u=(65535&O)+(65535&x)+((s=(V>>>16)+(G>>>16)+((a=(65535&V)+(65535&G))>>>16))>>>16))>>>16))<<16|65535&u,this.h3l=s<<16|65535&a,this.h4h=(c=(Y>>>16)+(B>>>16)+((u=(65535&Y)+(65535&B)+((s=(K>>>16)+(I>>>16)+((a=(65535&K)+(65535&I))>>>16))>>>16))>>>16))<<16|65535&u,this.h4l=s<<16|65535&a,this.h5h=(c=(z>>>16)+(P>>>16)+((u=(65535&z)+(65535&P)+((s=(W>>>16)+(N>>>16)+((a=(65535&W)+(65535&N))>>>16))>>>16))>>>16))<<16|65535&u,this.h5l=s<<16|65535&a,this.h6h=(c=(J>>>16)+(R>>>16)+((u=(65535&J)+(65535&R)+((s=(Z>>>16)+(E>>>16)+((a=(65535&Z)+(65535&E))>>>16))>>>16))>>>16))<<16|65535&u,this.h6l=s<<16|65535&a,this.h7h=(c=(Q>>>16)+(H>>>16)+((u=(65535&Q)+(65535&H)+((s=(X>>>16)+(U>>>16)+((a=(65535&X)+(65535&U))>>>16))>>>16))>>>16))<<16|65535&u,this.h7l=s<<16|65535&a},m.prototype.hex=function(){var t,e,n,i,r,o,a,s,u,c,f,l,h,d,v,g,m,t;return this.finalize(),t=this.h0h,e=this.h0l,n=this.h1h,i=this.h1l,r=this.h2h,o=this.h2l,a=this.h3h,s=this.h3l,u=this.h4h,c=this.h4l,f=this.h5h,l=this.h5l,h=this.h6h,d=this.h6l,v=this.h7h,g=this.h7l,m=this.bits,t=p[t>>28&15]+p[t>>24&15]+p[t>>20&15]+p[t>>16&15]+p[t>>12&15]+p[t>>8&15]+p[t>>4&15]+p[15&t]+p[e>>28&15]+p[e>>24&15]+p[e>>20&15]+p[e>>16&15]+p[e>>12&15]+p[e>>8&15]+p[e>>4&15]+p[15&e]+p[n>>28&15]+p[n>>24&15]+p[n>>20&15]+p[n>>16&15]+p[n>>12&15]+p[n>>8&15]+p[n>>4&15]+p[15&n]+p[i>>28&15]+p[i>>24&15]+p[i>>20&15]+p[i>>16&15]+p[i>>12&15]+p[i>>8&15]+p[i>>4&15]+p[15&i]+p[r>>28&15]+p[r>>24&15]+p[r>>20&15]+p[r>>16&15]+p[r>>12&15]+p[r>>8&15]+p[r>>4&15]+p[15&r]+p[o>>28&15]+p[o>>24&15]+p[o>>20&15]+p[o>>16&15]+p[o>>12&15]+p[o>>8&15]+p[o>>4&15]+p[15&o]+p[a>>28&15]+p[a>>24&15]+p[a>>20&15]+p[a>>16&15]+p[a>>12&15]+p[a>>8&15]+p[a>>4&15]+p[15&a],256<=m&&(t+=p[s>>28&15]+p[s>>24&15]+p[s>>20&15]+p[s>>16&15]+p[s>>12&15]+p[s>>8&15]+p[s>>4&15]+p[15&s]),384<=m&&(t+=p[u>>28&15]+p[u>>24&15]+p[u>>20&15]+p[u>>16&15]+p[u>>12&15]+p[u>>8&15]+p[u>>4&15]+p[15&u]+p[c>>28&15]+p[c>>24&15]+p[c>>20&15]+p[c>>16&15]+p[c>>12&15]+p[c>>8&15]+p[c>>4&15]+p[15&c]+p[f>>28&15]+p[f>>24&15]+p[f>>20&15]+p[f>>16&15]+p[f>>12&15]+p[f>>8&15]+p[f>>4&15]+p[15&f]+p[l>>28&15]+p[l>>24&15]+p[l>>20&15]+p[l>>16&15]+p[l>>12&15]+p[l>>8&15]+p[l>>4&15]+p[15&l]),512===m&&(t+=p[h>>28&15]+p[h>>24&15]+p[h>>20&15]+p[h>>16&15]+p[h>>12&15]+p[h>>8&15]+p[h>>4&15]+p[15&h]+p[d>>28&15]+p[d>>24&15]+p[d>>20&15]+p[d>>16&15]+p[d>>12&15]+p[d>>8&15]+p[d>>4&15]+p[15&d]+p[v>>28&15]+p[v>>24&15]+p[v>>20&15]+p[v>>16&15]+p[v>>12&15]+p[v>>8&15]+p[v>>4&15]+p[15&v]+p[g>>28&15]+p[g>>24&15]+p[g>>20&15]+p[g>>16&15]+p[g>>12&15]+p[g>>8&15]+p[g>>4&15]+p[15&g]),t},m.prototype.digest=function(){var t,e,n,i,r,o,a,s,u,c,f,l,h,d,v,g,e,t;return this.finalize(),t=this.h0h,e=this.h0l,n=this.h1h,i=this.h1l,r=this.h2h,o=this.h2l,a=this.h3h,s=this.h3l,u=this.h4h,c=this.h4l,f=this.h5h,l=this.h5l,h=this.h6h,d=this.h6l,v=this.h7h,g=this.h7l,t=[t>>24&255,t>>16&255,t>>8&255,255&t,e>>24&255,e>>16&255,e>>8&255,255&e,n>>24&255,n>>16&255,n>>8&255,255&n,i>>24&255,i>>16&255,i>>8&255,255&i,r>>24&255,r>>16&255,r>>8&255,255&r,o>>24&255,o>>16&255,o>>8&255,255&o,a>>24&255,a>>16&255,a>>8&255,255&a],256<=(e=this.bits)&&t.push(s>>24&255,s>>16&255,s>>8&255,255&s),384<=e&&t.push(u>>24&255,u>>16&255,u>>8&255,255&u,c>>24&255,c>>16&255,c>>8&255,255&c,f>>24&255,f>>16&255,f>>8&255,255&f,l>>24&255,l>>16&255,l>>8&255,255&l),512===e&&t.push(h>>24&255,h>>16&255,h>>8&255,255&h,d>>24&255,d>>16&255,d>>8&255,255&d,v>>24&255,v>>16&255,v>>8&255,255&v,g>>24&255,g>>16&255,g>>8&255,255&g),t},m.prototype.arrayBuffer=function(){var t,e,n;return this.finalize(),t=this.bits,e=new ArrayBuffer(t/8),(n=new DataView(e)).setUint32(0,this.h0h),n.setUint32(4,this.h0l),n.setUint32(8,this.h1h),n.setUint32(12,this.h1l),n.setUint32(16,this.h2h),n.setUint32(20,this.h2l),n.setUint32(24,this.h3h),256<=t&&n.setUint32(28,this.h3l),384<=t&&(n.setUint32(32,this.h4h),n.setUint32(36,this.h4l),n.setUint32(40,this.h5h),n.setUint32(44,this.h5l)),512===t&&(n.setUint32(48,this.h6h),n.setUint32(52,this.h6l),n.setUint32(56,this.h7h),n.setUint32(60,this.h7l)),e},m.prototype.clone=function(){var t=new m(this.bits,!1);return this.copyTo(t),t},m.prototype.copyTo=function(t){for(var e,n=["h0h","h0l","h1h","h1l","h2h","h2l","h3h","h3l","h4h","h4l","h5h","h5l","h6h","h6l","h7h","h7l","start","bytes","hBytes","finalized","hashed","lastByteIndex"],e=0;e<n.length;++e)t[n[e]]=this[n[e]];for(e=0;e<this.blocks.length;++e)t.blocks[e]=this.blocks[e]},l=m,e.i1e=l,n(S,g=l),S.prototype.finalize=function(){var t;g.prototype.finalize.call(this),this.inner&&(this.inner=!1,t=this.digest(),this.init(this.sharedMemory),this.update(this.oKeyPad),this.update(t),g.prototype.finalize.call(this))},e.e1e=S,a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",h=new Uint8Array(255),s=0;s<a.length;s++)h[a.charCodeAt(s)]=s;function w(){}w.r1e=function(t){var e=new Uint8Array(4);return e[0]=255&t,e[1]=(65280&t)>>8,e[2]=(16711680&t)>>16,e[3]=(4278190080&t)>>24,e},w.Joe=function(t){var e,n,i,r,o,a,s,u,e,c,e=.75*t.length,n=t.length,r=0;for("="===t[t.length-1]&&(e--,"="===t[t.length-2])&&e--,e=new ArrayBuffer(e),c=new Uint8Array(e),i=0;i<n;i+=4)o=h[t.charCodeAt(i)],a=h[t.charCodeAt(i+1)],s=h[t.charCodeAt(i+2)],u=h[t.charCodeAt(i+3)],c[r++]=o<<2|a>>4,c[r++]=(15&a)<<4|s>>2,c[r++]=(3&s)<<6|63&u;return new Uint8Array(e)},w.Xoe=function(t){for(var e,n=t.length,i="",e=0;e<n;e+=3)i=(i=(i=(i+=a[t[e]>>2])+a[(3&t[e])<<4|t[e+1]>>4])+a[(15&t[e+1])<<2|t[e+2]>>6])+a[63&t[e+2]];return n%3==2?i=i.substring(0,i.length-1)+"=":n%3==1&&(i=i.substring(0,i.length-2)+"=="),i},w.qoe=function(t){for(var e,n,e=new DataView(new ArrayBuffer(2*t.length)),n=0;n<t.length;n++)e.setUint16(2*n,t.charCodeAt(n),!0);return new Uint8Array(e.buffer)},w.$oe=function(t,e){var n,i,n=t.length,i=new Uint8Array(n+e.length);return i.set(t,0),i.set(e,n),i},w.tue=function(t,e,n,i){for(var r,o,a,r,o=i(w.$oe(w.Joe(e),w.qoe(t))),a=0;a<n;a++)o=i(w.$oe(new Uint8Array(o),w.r1e(a)));return o},w.nue=function(t,e,n,i){return w.Xoe(new Uint8Array(w.tue(t,e,n,i)))},w.eue=function(t){var e;return new l(512,!0).update(t).arrayBuffer()},w.o1e=function(t){for(var e,n,e=new Uint8Array(256),n=0;n<=255;n++)e[n]=Date.now()*Math.random()+Date.now()&255;return new Uint8Array(w.eue(e)).slice(0,t)},w.iue=function(){for(var t,e,t=new Uint8Array(256),e=0;e<=255;e++)t[e]=Date.now()*Math.random()+Date.now()&255;return w.Xoe(w.o1e(16))},w.rue=function(t,e,n,i,r){var o;return w.nue(t,n,i,r)===e},w.a1e=function(t,e,n){for(var i,r,i=0,r=n;r<e+n;r++)i+=t[r]*(1<<8*(r-n));return i},e.Qoe=w},"./dist/core/util/dataManager.js":function(t,e){"use strict";function n(t,e){var e,e,n,e=e.workbook.lossless,e=e&&e.dataManager;if(e)return t.N3=null,(n=t.dataManager()).fromJSON(e)}function i(t,e){var e,n,e=e.dataManager;if(e)return t.N3=null,(n=t.dataManager()).fromJSON(e)}function r(t,e){var t=t.N3;t&&(e.dataManager=t.toJSON())}function o(t,e){var t=t.N3;t&&(e.workbook.lossless.dataManager=t.toJSON())}Object.defineProperty(e,"__esModule",{value:!0}),e.l2e=e.h2e=e.d2e=e.v2e=void 0,e.v2e=n,e.d2e=i,e.h2e=r,e.l2e=o},"./dist/core/util/domUtil.js":function(r,t,e){"use strict";var n,_,e,g,h,m,u,f,a,d,c,s,l,v,p,S,w,b,C,y,i,M,k,T,x,A,o,G,B,L,D,I,n,j,P,O;function V(t,e){var n,i;for(Array.call(this),"string"==typeof t?n=(e||f).querySelectorAll(t):t&&(n=I.isArray(t)||t instanceof HTMLCollection?t:[t]),i=0;n&&i<n.length;i++)this.push(n[i])}function Y(t){for(var e,n,e=K(t);t.parentElement;)e<(n=K(t=t.parentElement))&&(e=n);return e}function K(t){var t=getComputedStyle(t).zIndex;return"auto"===t||""===t?0:Number(t)}function z(t){return I.isWindow(t)?t:9===t.nodeType&&(t.defaultView||t.parentWindow)}function W(t,e){var t=t.nodeName;return t&&t.toLowerCase()===e.toLowerCase()}function J(t,e){return 0<="top left right bottom width height border-radius border-width border-left-width border-right-width border-top-width border-bottom-width line-height padding padding-left padding-right padding-top padding-bottom margin margin-left margin-right margin-top margin-bottom".split(" ").indexOf(t)&&isFinite(e)?(e=0<="width height".split(" ").indexOf(t)&&e<0?0:e)+"px":e}function Z(t,e,n){var i,r,o,a=t.nodeType;if(t&&3!==a&&8!==a&&2!==a)return(o=1!==a)&&(r=A[e=x[e]||e]),U(n)?r&&c in r&&(i=r.get(t,e))!==m?i:t[e]:r&&s in r&&!U(i=r.set(t,n,e))?i:t[e]=n}function Q(t){var e,n,e,e,e=t.nodeType;return!(e&&1!==e&&9!==e||(e=(e=t.nodeName)&&(n={embed:!0,object:"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000",applet:!0})[e.toLowerCase()])&&(!0===e||t.getAttribute("classid")!==e))}function N(t){return t.replace(/^-ms-/,"ms-").replace(/-([\da-z])/gi,function(t,e){return e.toUpperCase()})}function R(t,e,n,i){if(Q(t)){var t,r,o=B,a=E(e),s=t.nodeType,u=s?G:t,c=s?t[o]:t[o]&&o;if(c&&u[c]&&(i||u[c].data)||!a||!U(n))return c||(s?(t[o]=c=L,L++):c=o),u[c]||(u[c]={},s)||(u[c].toJSON=function(){}),!H(e)&&"function"!=typeof e||(i?u[c]=I.extend(u[c],e):u[c].data=I.extend(u[c].data,e)),t=u[c],i||(t.data||(t.data={}),t=t.data),U(n)||(t[N(e)]=n),a?(r=t[e])!==m&&r!==h||(r=t[N(e)]):r=t,r}}function X(t){var e;for(e in t)if(("data"!==e||!I.isEmptyObject(t[e]))&&"toJSON"!==e)return;return 1}function q(t,e,n){if(Q(t)){var i,r,o,a=t.nodeType,s=a?G:t,u=a?t[B]:B;if(s[u]){if(e&&(o=n?s[u]:s[u].data)){r=(e=I.isArray(e)?e.concat(I.map(e,N)):e in o||(e=N(e))in o?[e]:e.split(" ")).length;for(i=0;i<r;i++)delete o[e[i]];if(!(n?X:I.isEmptyObject)(o))return}(n||(delete s[u].data,X(s[u])))&&(a?$([t],!0):s!==s.window?delete s[u]:s[u]=m)}}}function $(t,e){for(var n,i,r,o,a,s,u,c,f,l,h,d,v,o=0,a=B,s=G,n=t[o];n!==m&&void 0!==n;){if((e||Q(n))&&(r=(i=n[a])&&s[i])){if(u=r.events)for(c in u)if(g(u,c)&&(f=u[c]))for(l in f)if(g(f,l)&&(h=f[l]))for(d=0,v=h.length;d<v;d++)F(n,c,h[d]);s[i]&&(delete s[i],delete n[a])}n=t[++o]}}function E(t){return"string"==typeof t}function H(t){return"object"==typeof t}function U(t){return typeof t==typeof h}function tt(t){var s=t;return function(t){var e,n,i,r,o,a,e=this,n="border-box"===e.css("box-sizing"),r=s?l:v,o=s?p:w,a=s?S:b;return 0===arguments.length?(i=Math.round(u(e.css(r)))||0,n&&(i-=u(e.css("padding-"+o))+u(e.css("padding-"+a))+u(e.css("border-"+o+"-"+l))+u(e.css("border-"+a+"-"+l))),i):(e.css(r,t),e)}}function et(t){var i=t;return function(){var t,e,n,t=this,e=i?p:w,n=i?S:b;return i?t.width():t.height()+u(t.css("padding-"+e))+u(t.css("padding-"+n))}}function nt(t){var o=t;return function(t){var e,n,i,r,e=o?p:w,n=o?S:b,i=this,r=o?i.innerWidth():i.innerHeight();return r+=u(i.css("border-"+e+"-"+l))+u(i.css("border-"+n+"-"+l)),t&&(r+=u(i.css("margin-"+e))+u(i.css("margin-"+n))),r}}function it(t){var n=t;return function(e){return this.forEach(function(t){t.style[T]=n?y:i,e&&e.apply(t)}),this}}function rt(t){var u=t;return function(t){var e,n,i,r,o,a,s,e="scrollLeft",n="scrollTop",i=u?e:n,r=u?"pageXOffset":"pageYOffset",o=this,a=o[0],s=z(a);return U(t)?s?r in s?s[r]:f.documentElement[i]:a[i]:(s?s.scrollTo(u?t:I(s)[e](),u?I(s)[n]():t):a[i]=t,o)}}function F(t,e,n){t.removeEventListener(e,n)}function ot(i,r,t){var o,a,s,u,c,f,l,e,h,n,l=0,e=!1,h=!1,n=!0;if("function"!=typeof i)throw new TypeError("Expected a function");function d(t){var e,n,e=o,n=a;return o=a=void 0,l=t,u=i.apply(n,e)}function v(t,e){return setTimeout(t,e)}function g(t){clearTimeout(t)}function m(t){return l=t,c=v(w,r),e?d(t):u}function p(t){var e,n,t,e,n=t-l,t=r-(t-f);return h?Math.min(t,s-n):t}function S(t){var e,n,e=t-f,n;return void 0===f||r<=e||e<0||h&&s<=t-l}function w(){var t=Date.now();if(S(t))return b(t);c=v(w,p(t))}function b(t){return c=void 0,n&&o?d(t):(o=a=void 0,u)}function C(){void 0!==c&&g(c),o=f=a=c=void(l=0)}function y(){return void 0===c?u:b(Date.now())}function M(){return void 0!==c}function k(){for(var t,e,n,i,t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];if(i=S(n=Date.now()),o=t,a=this,f=n,i){if(void 0===c)return m(f);if(h)return c=v(w,r),d(f)}return void 0===c&&(c=v(w,r)),u}return r=+r||0,H(t)&&(e=!!t.leading,h="maxWait"in t,s=h?Math.max(+t.maxWait||0,r):s,n="trailing"in t?!!t.trailing:n),k.cancel=C,k.flush=y,k.pending=M,k}function at(t,e,n){var i,r,i=!0,r=!0;if("function"!=typeof t)throw new TypeError("Expected a function");return H(n)&&(i="leading"in n?!!n.leading:i,r="trailing"in n?!!n.trailing:r),ot(t,e,{leading:i,trailing:r,maxWait:e})}function st(t,e,n){var i,r,o;if(t){if(i=t,!e||0===e.length)return i=!(i=t[a])&&n?t[a]={}:i;for(r=e.length-1;0<=r;r--){if(!i[o=e[r]]){if(!n)return;i[o]={}}i=i[o]}return i}}function ut(t,e){var n,i,r,o;for(n in t)if(g(t,n)&&(i=t[n]))if(I.isArray(i))for(r=i.length,o=0;o<r;o++)F(e,n,i[o]);else ut(i,e)}function ct(t,e,n,i,r){var o,a,s,u,c;if(!(!t||2<r||t instanceof Function))for(o in r+=1,t)if(g(t,o)&&(a=t[o])){if((s=a[n])&&I.isArray(s))for(u=0,c=s.length;u<c;u++)s[u].apply(e,[{type:n},i]);ct(a,e,n,i,r)}}function ft(t,e,n){this.zue=t.clientHeight,this.Vue=t.clientWidth,this.sse=_.mt.Tt.safari,this.cse(t,e,n)}Object.defineProperty(t,"__esModule",{value:!0}),t.Ose=t.GC$=t.getHostMaxZIndex=void 0,n=e("Common"),_=e("./dist/core/util/common.js"),e=n.Common.lt,g=n.Common.kh,h=void 0,m=null,u=parseFloat,f=document,a="_nonamespace",d="events",c="get",s="set",l="width",v="height",p="left",S="right",w="top",b="bottom",C="hidden",y="block",i="none",M="position",k="visibility",T="display",x={tabindex:"tabIndex",readonly:"readOnly",for:"htmlFor",class:"className",maxlength:"maxLength",cellspacing:"cellSpacing",cellpadding:"cellPadding",rowspan:"rowSpan",colspan:"colSpan",usemap:"useMap",frameborder:"frameBorder",contenteditable:"contentEditable"},A={tabIndex:{get:function(t){var e,n,i,r,e=t.getAttributeNode("tabindex"),n=/^(?:input|select|textarea|button|object)$/i,i=/^(?:a|area)$/i,r=t.nodeName;return e&&e.specified?parseInt(e.value,10):n.test(r)||i.test(r)&&t.href?0:h}}},o={option:{get:function(t){var e=t.attributes.value;return!e||e.specified?t.value:t.text}},select:{get:function(t){var e,e,n=t.options,i=t.selectedIndex,r="select-one"===t.type||i<0,o=r?m:[],a=r?i+1:n.length,s=r?i:0;for(i<0&&(s=a);s<a;s++)if(((e=n[s]).selected||s===i)&&!e.disabled&&(!e.parentNode.disabled||!W(e.parentNode,"optgroup"))){if(e=I(e).val(),r)return e;o.push(e)}return o},set:function(t,e){var n,i,n=I.makeArray(e),i;return I(t).find("option").getAll().forEach(function(t){t.selected=0<=I.inArray(I(t).val(),n)}),n.length||(t.selectedIndex=-1),n}}},G={},B="$"+(""+Math.random()).replace(/\D/g,""),L=1,D={},[v,l].forEach(function(c){D[c]={get:function(t){var e,n,i,r,o,a,e,s,u,e=getComputedStyle(t),n=t.style,i=n[M],r=n[k],o=n[T],a=0===t.offsetWidth&&/^(none|table(?!-c[ea]).+)/.test(e[T]);if(a&&(n[M]="absolute",n[k]=C,n[T]=y),e=e&&e[c],a&&(n[M]=i,n[k]=r,n[T]=o),""===e){for(s=t.parentElement,u=f.body;s&&s!==u;)s=s.parentElement;s!==u&&(e=n[c])}return e}}}),I=function(t,e){return t instanceof V?t:new V(t,e)},t.GC$=I,n={get:function(t){return this[t]},getAll:function(){return this},bind:function(a,s,u){var t=this;return U(u)&&(u=s,s=h),t.forEach(function(n){var t,e,i,r,t,e,o,t=R(n,d,h,!0);t||R(n,d,t={},!0),i=(e=a.split("."))[0],t=st(t,r=e.slice(1),!0),(e=function(t){U(s)||(t.data=s);var e=u.apply(n,arguments);!1===(t.result=e)&&(t.preventDefault?(t.preventDefault(),t.stopPropagation()):(t.cancelBubble=!1,t.returnValue=!1))}).original=u,(o=(o=t[i])||(t[i]=[])).push(e),n.addEventListener(i,e)}),t},unbind:function(f,l){var t=this;return t.forEach(function(t){var e,n,i,r,o,a,s,n,u,c,e=R(t,d,h,!0),n=f.split("."),i=n[0],r=n.slice(1),n=st(e,r);if(n)if(l){if(i&&(o=n[i])&&I.isArray(o))for(s=o.length,a=0;a<s;a++)if(o[a].original===l){F(t,i,o[a]),o.splice(a,1);break}}else if(i){if((o=n[i])&&I.isArray(o))for(s=o.length,a=0;a<s;a++)F(t,i,o[a]);n[i]=h}else{for(ut(n,t),u=e,c=r.length-1;0<c&&(u=u[r[c]]);c--);u&&(u[r[0]]=h)}}),t},trigger:function(t,e){var n,i,r,o,a,s,u,n=this;if(t)for(i=0,r=n.length;i<r;i++)(a=R(o=n[i],d,h,!0))&&ct(a,o,u=(s=t.split("."))[0],e,0);return n},css:function(n,i){var t,r,e,o,a,a;function s(e,n){r.forEach(function(t){t.style[e]=J(e,n)})}if(r=t=this,1===(e=arguments.length)){if(!H(n))return o=t[0],(a=D[n])&&c in a?a.get(o):(a=getComputedStyle(o))&&a[n];r.forEach(function(t){for(var e in n)g(n,e)&&(t.style[e]=J(e,n[e]))})}else 2===e&&(I.isArray(n)&&I.isArray(i)&&n.length===i.length?n.forEach(function(t,e){s(t,i[e])}):s(n,i));return t},width:tt(!0),height:tt(),innerWidth:et(!0),innerHeight:et(),outerWidth:nt(!0),outerHeight:nt(),append:function(t){var e,t,n,e=[t];return t instanceof I&&(e=t.getAll()),n=(t=this)[0],e.forEach(function(t){t&&n.appendChild(t)}),t},appendTo:function(t){var e,t,e=t;return t instanceof I&&(e=t[0]),(t=this).forEach(function(t){e.appendChild(t)}),t},prepend:function(t){var e=this,n=e[0];return n.insertBefore(t,n.firstChild),e},insertBefore:function(e){var t=this,n=e.parentElement;return t.forEach(function(t){n.insertBefore(t,e)}),t},addClass:function(t){for(var e,n,i,r,o,a=0,s=this,u=s.length,c,f=/[\t\r\n]/g,e=(t||"").match(/\S+/g)||[];a<u;a++)if(i=1===(n=s[a]).nodeType&&(n.className?(" "+n.className+" ").replace(f," "):" ")){for(r=e[o=0];r;)i.indexOf(" "+r+" ")<0&&(i+=r+" "),r=e[++o];n.className=I.trim(i)}return this},removeClass:function(t){for(var e,n,i,r,o,a=0,s=this,u=s.length,c,f=/[\t\r\n]/g,e=(t||"").match(/\S+/g)||[];a<u;a++)if(i=1===(n=s[a]).nodeType&&(n.className?(" "+n.className+" ").replace(f," "):"")){for(r=e[o=0];r;){for(;0<=i.indexOf(" "+r+" ");)i=i.replace(" "+r+" "," ");r=e[++o]}n.className=t?I.trim(i):""}return this},hasClass:function(t){var e,n,i,r,o,e=0,n=this,i=n.length,r=/[\t\r\n]/g;for(t=" "+t+" ";e<i;e++)if(1===(o=n[e]).nodeType&&0<=(" "+o.className+" ").replace(r," ").indexOf(t))return!0;return!1},toggle:function(){var t,e,t=this,e;return t[0].style[T]===i?t.show():t.hide(),t},show:it(!0),hide:it(),attr:function(n,e){var t=this,i=t,r=arguments.length;if(1===r){if(!H(n))return t[0].getAttribute(n);i.forEach(function(t){for(var e in n)g(n,e)&&t.setAttribute(e,n[e])})}else 2===r&&i.forEach(function(t){t.setAttribute(n,e)});return t},removeAttr:function(e){return this.forEach(function(t){t.removeAttribute(e)}),this},prop:function(n,e){var t=this,i=t,r=arguments.length;if(1===r){if(!H(n))return Z(t[0],n);i.forEach(function(t){for(var e in n)g(n,e)&&Z(t,e,n[e])})}else 2===r&&i.forEach(function(t){Z(t,n,e)});return t},removeProp:function(e){e=x[e]||e;var t=this,n;return t.forEach(function(t){try{t[e]=h,delete t[e]}catch(t){}}),t},text:function(e){var t=this,n=t;return 0===arguments.length?t[0].textContent:(n.forEach(function(t){t.textContent=e}),t)},val:function(n){var t,i,t,e,r,t=this;return arguments.length?(r=I.isFunction(n),t.forEach(function(t,e){var e;1!==t.nodeType||((e=r?n.call(t,e,I(t).val()):n)===m||e===h?e="":"number"==typeof e?e+="":I.isArray(e)&&(e=I.map(e,function(t){return t===m||t===h?"":t+""})),(i=o[t.type]||o[t.nodeName.toLowerCase()])&&s in i&&!U(i.set(t,e,"value")))||(t.value=e)}),t):(e=void 0,(t=t[0])?(i=o[t.type]||o[t.nodeName.toLowerCase()])&&c in i&&!U(e=i.get(t,"value"))?e:E(e=t.value)?e.replace(/\r/g,""):e===m||e===h?"":e:void 0)},position:function(){var t,e,n,i,r,t=this[0];if(t){if(e={top:0,left:0},n={top:0,left:0},"fixed"===I(t).css(M))try{e=t.getBoundingClientRect()}catch(t){}else i=this.offsetParent(),e=this.offset(),W(r=i[0],"html")||((n=i.offset()).left-=r.scrollLeft,n.top-=r.scrollTop),n.top+=u(I(r).css("borderTopWidth")),n.left+=u(I(r).css("borderLeftWidth"));return{top:e.top-n.top-u(I(t).css("marginTop")),left:e.left-n.left-u(I(t).css("marginLeft"))}}},offsetParent:function(){var t=I.map(this,function(t){for(var e,n,e=f.documentElement,n=t.offsetParent||e;n&&!W(n,"html")&&"static"===I(n).css(M);)n=n.offsetParent;return n||e});return I(t)},offset:function(){var t,e,n={top:0,left:0},e=this[0],i=e&&e.ownerDocument;if(i){if(t=i.documentElement,!U(e.getBoundingClientRect))try{n=e.getBoundingClientRect()}catch(t){}return e=z(i),{top:n.top+(e.pageYOffset||t.scrollTop)-(t.clientTop||0),left:n.left+(e.pageXOffset||t.scrollLeft)-(t.clientLeft||0)}}},scrollLeft:rt(!0),scrollTop:rt(),html:function(e){var t=this,n=t;return 0===arguments.length?t[0].innerHTML:(n.forEach(function(t){t.innerHTML=e}),t)},remove:function(){var t;this.forEach(function(t){var e=t.parentElement;e&&(e.removeChild(t),$([t]))})},empty:function(){return this.forEach(function(t){I(t.children).remove()}),this},find:function(e){var n=[];return E(e)&&this.forEach(function(t){var t=t.querySelectorAll(e);I.merge(n,t)}),I(n)},parent:function(){var e=[];return this.forEach(function(t){var t=t.parentElement;t&&e.push(t)}),I(e)},index:function(t){var e=this[0];return t?E(t)?I.inArray(e,I(t).getAll()):I.inArray(t,this):e&&e.parentElement?I.inArray(e,e.parentElement.children):-1},focus:function(){var t=this,e=t[0];return e!==f.activeElement&&e.focus&&e.focus(),t},isVisible:function(){var e=0;return this.forEach(function(t){var t=getComputedStyle(t);t[k]!==C&&t[T]!==i&&e++}),0<e},data:function(n,i){var r,o,r=this,o=U(i);return o&&(r=void 0),I.each(this,function(t,e){var e=R(e,n,i);if(o)return r=e,!1}),r},removeData:function(n){return I.each(this,function(t,e){q(e,n)}),this}},j=V.prototype=[],e.Dh(j,n),I.prototype=j,I.each=e.y0,I.isEmptyObject=e._h,I.isFunction=e.Eh,I.isArray=e.Nh,I.isNumeric=e.jh,I.getType=e.Oh,I.inArray=e.Rh,I.merge=e.Bh,I.map=e.Lh,I.extend=e.Dh,I.inherit=e.Fh,I.isPlainObject=e.Ph,I.isArraylike=e.Gh,I.isWindow=e.Uh,I.makeArray=e.Hh,I.trim=function(t){var e;return t.trim?t.trim():t===m||t===h?"":(t+"").replace(/(^[\s\uFEFF\xA0]+)|([\s\uFEFF\xA0]+$)/g,"")},I.En=function(t,e,n,i,r){var t=I(f.createElement(t));return e&&n&&t.css(e,n),i&&t.addClass(i),r&&(r instanceof I?r:I(r)).append(t),t},t.getHostMaxZIndex=Y,P="px",ft.prototype.cse=function(r,o,t){var a=this;this.sse?this.fse=setInterval(function(){var t;r.style.width===a.Vue+P&&r.style.height===a.zue+P||o()},100):(this.Yue=new MutationObserver(at(function(t){for(var e,n,i,e=0;e<t.length;e++)if("attributes"===(n=t[e]).type&&(i=r.style.width!==a.Vue+P||r.style.height!==a.zue+P))return void o()},t)),this.Yue.observe(r,{attributes:!0}))},ft.prototype.disconnect=function(){this.sse?clearInterval(this.fse):(this.Yue.disconnect(),this.Yue=null)},t.Ose=ft},"./dist/core/util/imageLoader.js":function(t,e,n){"use strict";var n,u,c,i;function r(t){var e;this.zh=0,this.Vh=0,this.Yh={},this.Zh=t}Object.defineProperty(e,"__esModule",{value:!0}),e.Wh=void 0,n=n("./dist/core/util/domUtil.js"),u=n.GC$,c=".gcSheet",r.prototype.addImage=function(t,e){var n,i,r,o;function a(){n.Qh(t,!0)}function s(){n.Qh(t,!1)}(r=(i=(n=this).Yh)[t])||(o=u(document.createElement("img")),e&&o.attr("crossOrigin",e),o.bind("load"+c,a),o.bind("error"+c,s),o.bind("abort"+c,s),n.zh++,i[t]={Kh:!1,Jh:o[0],Xh:!1},o[0].src=t)},r.prototype.getState=function(t){var t=this.Yh[t];return!!t&&t.Kh},r.prototype.qh=function(t){var t=this.Yh[t];return!!t&&t.Xh},r.prototype.getImage=function(t){var t=this.Yh[t];return t?t.Jh:null},r.prototype.Qh=function(t,e){var n=this;n.Vh++,n.Yh[t].Kh=!0,n.Yh[t].Xh=e,n.$h()&&n.Zh&&n.Zh()},r.prototype.$h=function(){return this.Vh>=this.zh},r.prototype.L0=function(){var t,e,n,t=this.Yh;if(t)for(e in t)t[e]&&(n=u(t[e].Jh)).unbind(c);this.Zh=null},e.Wh=r},"./dist/core/util/styleManager.js":function(F,t,e){"use strict";var _,A,d,v,u,o,L,a,c,g,m,f,p,r,s,D,n,j,l,h,O,S,w,b,C,V,Y,i,e;function y(t,e){var n=this;this.td=[],this.Lh={},t&&(e?t.forEach(function(t,e){n.Lh[t]=""+e,n.td[e]=t}):t.forEach(function(t,e){n.getTextIndex(t)}))}function M(){this.td=[]}function k(t){return t?1:0}function T(t,e){var n,i,n="{";return g(t.style)||"object"!=typeof(i="string"==typeof(i=t.style)?'"'+L.ExcelBorderStyle[i]+'"':i)&&(n+='"s":'+i+","),g(t.color)||(n+='"c":'+e.getTextIndex(t.color)+","),n.substring(0,n.length-1)+"}"}function K(t,e,n){var i,t;if(t)return i=new v.LineBorder,t=JSON.parse(t),n||0!==t.s?(g(t.s)||(i.style=+t.s),g(t.c)||(i.color=e.getText(+t.c)),i):f}function z(){var t,e,t=n(),e;t&&t.GC&&t.GC.Spread&&t.GC.Spread.Common&&n().GC.Spread.Common.CultureManager.getCultureInfo()||j()}function x(t,e){var n=this;n.nd=[],n.ed=new h(e),n.rd=t}function G(t,e){var n=this;n.od=[],n.ad=new h,n.ud=new h,n.m2e=new h,n.g2e=new h,n.p2e=new h,n.Pre=new h,n.rd=t,n.cd=e}function B(t){return!t||t.color===m&&t.level===m&&t.style===m}function I(t){var e=this;e.fd=[],e.ld=[],e.hd=new h,e.dd=new h,e.rd=t,e.hd.getTextIndex('{"s":0}'),e.dd.getTextIndex("l:0,r:0,t:0,b:0")}function P(t,e){var n,i,r,n=this;n.vd=[],n.md=new h,n.pd=new h,n.bd={},n.cd=t,n.yd=e,n.wd={},o.ExtendedNumberFormatHelper.resetBuiltInNumberFormat(),i=o.ExtendedNumberFormatHelper.builtInNumberFormat(),Object.keys(i).forEach(function(t){"count"!==t&&(P.Cd[i[t]]=t)}),r=o.ExtendedNumberFormatHelper.languageIndepedentNumberFormat(),Object.keys(r).forEach(function(t){"count"!==t&&(P.Cd[r[t]]=t)})}function N(){var t=this;t.Td=[],t.Ad=new h}function R(){var t=this;t.xd=[],t.Nd=new h}function E(t,e){if(t&&e)for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])}function H(t,e,n){var i=this;i.kd=new h,i.Dd=new C(e,n),i._d=new w(t,e),i.Lfe=new w(t,e),i.Ed=new S(t),i.jd=new b(t),i.Vve=new V,i.Yve=new Y}function U(){var t=this;t.Od=new h,t.cd=new h,t.yd=new O,t.Dd=new C(t.cd,t.yd),t._d=new w(t.Od,t.cd),t.Ed=new S(t.Od,['{"t":0}','{"t":5}']),t.jd=new b(t.Od),t.Rd=new h,t.Bd=new h,t.Ld=new h,t.kd=new i(t.Od,t.cd,t.yd),t.Fd={},t.Pd={},t.Gd={},t.Ud={},t.Hd={},t.zd=[],t.Vd={},t.Yd={},t.Zd={},t.originCellXfs=new h,t.originNamedStylesXfs=new h,t.Wd={},t.Qd={},t.Kd={},t.Jd="__builtInStyle",t.Xd="__builtInTableStyle",t.qd=/^(__builtInTableStyle\d+)?__builtInStyle\d+$/,t.$d=0}Object.defineProperty(t,"__esModule",{value:!0}),t.StyleManager=t.SharedDxfs=t.SimpleSharedStrings=void 0,_=e("./dist/core/util/common.js"),A=e("./dist/core/celltype/celltype.ns.js"),d=e("./dist/core/util/common.js"),v=e("./dist/core/worksheet/style.js"),u=e("./dist/core/util/common.js"),o=e("./dist/core/excel-io-util/common.js"),L=e("./dist/core/excel-io-util/excel-style.js"),a=e("Common"),c=e("./dist/core/util/domUtil.js"),g=a.Common.lt.ht,m=void 0,f=null,p=o.NodeHelper.ur,r=c.GC$.each,s=a.Common.lt.tv,D=o.Util.oo,n=o.Util.ro,j=o.Util.ao,l=_.mt.St,y.prototype.dispose=function(){this.td=m,this.Lh=m},y.prototype.setTextValue=function(t){var e;this.Lh[t]===m&&(e=this.td.push(t)-1,this.Lh[t]=e)},y.prototype.getTextIndex=function(t){return this.setTextValue(t),this.Lh[t]},y.prototype.getText=function(t){return this.td[t]},y.prototype.setTextIndex=function(t,e){this.td[e]=t,this.Lh[t]=e},y.prototype.replaceText=function(t,e){this.td[t]=e},y.prototype.getCount=function(){return this.td.length},y.prototype.yh=function(t){var e,n,i,r,e=this,n=e.Lh;if(t)for(i=0,r=(e.td=t).length;i<r;i++)n[t[i]]=""+i},y.prototype.wh=function(){return this.td},h=y,t.SimpleSharedStrings=h,M.prototype.dispose=function(){this.td=m},M.prototype.getObjectIndex=function(t){var e,n=this.td,i=0,r=n.length,o;if(t.toJSON?o=t.toJSON():!g(t)&&t instanceof Object&&(o=JSON.stringify(t)),o){for(;i<r;i++)if(n[i]===o)return i;return n[i]=o,i}},M.prototype.getObject=function(t){return this.td[t]},M.prototype.yh=function(t){this.td=t},M.prototype.wh=function(){return this.td},O=M,x.prototype.dispose=function(){var t=this;t.ed&&(t.ed.dispose(),t.ed=m),t.nd=m,t.rd=m},x.prototype.nv=function(t){var e,n,i,t,r,o,a,s,e=this,n=e.rd;return t.backColor===f?e.ed.getTextIndex('{"t":0}'):t.backColor!==m?("object"==typeof(a=o=r=t=t.backColor)?(i="{",o.stops?(i+='"s":[',(s=o.stops).forEach(function(t){i+='{"p":'+t.position+',"c":'+n.getTextIndex(t.color)+"},"}),i=i.substring(0,i.length-1),i+="],","path"===a.type?(i+='"t":"p"',(0,u.isDefined)(a.left)&&(i+=',"l":'+a.left),(0,u.isDefined)(a.right)&&(i+=',"r":'+a.right),(0,u.isDefined)(a.top)&&(i+=',"a":'+a.top),(0,u.isDefined)(a.bottom)&&(i+=',"c":'+a.bottom)):i+='"d":'+(o.degree||0)):r.type!==m&&(i+='"t":'+r.type,(0,u.isDefined)(r.patternColor)&&""!==r.patternColor&&(i+=',"p":'+n.getTextIndex(r.patternColor)),(0,u.isDefined)(r.backgroundColor))&&""!==r.backgroundColor&&(i+=',"b":'+n.getTextIndex(r.backgroundColor)),i+="}"):i=""===t?'{"t":0}':n.getTextIndex(t),e.ed.getTextIndex(i)):void 0},x.prototype.ev=function(t,e){var n,i,r,o,n,a,s,u,s,n=this,i=n.rd,r=n.nd;return r[t]||("string"==typeof(n=n.ed.getText(+t))&&"{"===n[0]?(s=(a=JSON.parse(n)).s,o={},0===a.t?f:(s&&0<s.length?(u=o.stops=[],s.forEach(function(t){var e={};g(t.p)||(e.position=t.p),g(t.c)||(e.color=i.getText(t.c)),u.push(e)}),"p"===a.t?(o.type="path",g(a.l)||(o.left=a.l),g(a.r)||(o.right=a.r),g(a.a)||(o.top=a.a),g(a.c)||(o.bottom=a.c)):g(a.d)||(o.degree=a.d)):g(a.t)?g(a.b)||(o=i.getText(a.b)):1===(s=a.t)?e||g(a.p)?g(a.b)||(o=i.getText(a.b)):o=i.getText(a.p):(o.type=s,g(a.p)||(o.patternColor=i.getText(a.p)),g(a.b)||(o.backgroundColor=i.getText(a.b))),o=c.GC$.isEmptyObject(o)?m:o,r[t]=o)):(o=i.getText(n),o=c.GC$.isEmptyObject(o)?m:o,r[t]=o))},x.prototype.iv=function(t){t.fills=this.ed.wh()},x.prototype.rv=function(t){this.ed.yh(t.fills)},S=x,G.prototype.dispose=function(){var t=this;t.ad&&(t.ad.dispose(),t.ad=m),t.ud&&(t.ud.dispose(),t.ud=m),t.m2e&&(t.m2e.dispose(),t.m2e=m),t.g2e&&(t.g2e.dispose(),t.g2e=m),t.p2e&&(t.p2e.dispose(),t.p2e=m),t.Pre&&(t.Pre.dispose(),t.Pre=m),t.od=m,t.rd=m,t.cd=m},G.prototype.nv=function(t){var e,n,e=this;if(!(g(t.font)&&g(t.vertAlign)&&g(t.textDecoration)&&t.foreColor===m&&g(t.themeFont)))return n="",g(t.font)||(n+="f:"+e.ud.getTextIndex(t.font)+","),t.fontStyle!==m&&(n+="i:"+e.m2e.getTextIndex(t.fontStyle)+","),t.fontWeight!==m&&(n+="b:"+e.g2e.getTextIndex(t.fontWeight)+","),g(t.fontSize)||(n+="s:"+e.p2e.getTextIndex(t.fontSize)+","),g(t.fontFamily)||(n+="n:"+e.Pre.getTextIndex(t.fontFamily)+","),g(t.b2e)||(n+="a:"+e.cd.getTextIndex(t.b2e)+","),g(t.w2e)||(n+="l:"+e.cd.getTextIndex(t.w2e)+","),g(t.y2e)||(n+="r:"+e.cd.getTextIndex(t.y2e)+","),g(t.vertAlign)||(n+="v:"+t.vertAlign+","),g(t.textDecoration)||(n+="d:"+t.textDecoration+","),t.foreColor!==m&&(n+="c:"+e.rd.getTextIndex(t.foreColor)+","),g(t.themeFont)||(n+="t:"+e.cd.getTextIndex(t.themeFont)+","),e.ad.getTextIndex(n.substring(0,n.length-1))},G.prototype.ev=function(t){var i,r,e,n,o,i=this,r=i.rd,e=i.od;return e[t]||((n=i.ad.getText(+t))?(o={},n.split(",").forEach(function(t){var t=t.split(":"),e=t[0],n=t[1];switch(e){case"f":o.font=i.ud.getText(+n);break;case"v":o.vertAlign=+n;break;case"d":o.textDecoration=+n;break;case"c":o.foreColor=r.getText(+n);break;case"t":o.themeFont=i.cd.getText(+n);break;case"i":o.fontStyle=i.m2e.getText(+n);break;case"b":o.fontWeight=i.g2e.getText(+n);break;case"s":o.fontSize=i.p2e.getText(+n);break;case"n":o.fontFamily=i.Pre.getText(+n);break;case"a":o.b2e=i.cd.getText(+n);break;case"l":o.w2e=i.cd.getText(+n);break;case"r":o.y2e=i.cd.getText(+n)}}),e[t]=o):void 0)},G.prototype.iv=function(t){var e=this;t.fonts=e.ad.wh(),t.htmlFonts=e.ud.wh(),t.fontStyles=e.m2e.wh(),t.fontWeights=e.g2e.wh(),t.fontSizes=e.p2e.wh(),t.fontFamilies=e.Pre.wh()},G.prototype.rv=function(t,e){var n=this;e?(n.ad.yh(t.partFonts),n.ud.yh(t.partHtmlFonts)):(n.ad.yh(t.fonts),n.ud.yh(t.htmlFonts),n.m2e.yh(t.fontStyles),n.g2e.yh(t.fontWeights),n.p2e.yh(t.fontSizes),n.Pre.yh(t.fontFamilies))},w=G,I.prototype.dispose=function(){var t=this;t.hd&&(t.hd.dispose(),t.hd=m),t.dd&&(t.dd.dispose(),t.dd=m),t.fd=m,t.ld=m,t.rd=m},I.prototype.nv=function(t){var e,n,i,e=this,n=e.rd;if(!(B(t.borderLeft)&&B(t.borderTop)&&B(t.borderRight)&&B(t.borderBottom)&&B(t.borderVertical)&&B(t.borderHorizontal)&&B(t.diagonalDown)&&B(t.diagonalUp)))return i="",B(t.borderLeft)||(i+="l:"+e.hd.getTextIndex(T(t.borderLeft,n))+","),B(t.borderRight)||(i+="r:"+e.hd.getTextIndex(T(t.borderRight,n))+","),B(t.borderTop)||(i+="t:"+e.hd.getTextIndex(T(t.borderTop,n))+","),B(t.borderBottom)||(i+="b:"+e.hd.getTextIndex(T(t.borderBottom,n))+","),B(t.borderVertical)||(i+="v:"+e.hd.getTextIndex(T(t.borderVertical,n))+","),B(t.borderHorizontal)||(i+="h:"+e.hd.getTextIndex(T(t.borderHorizontal,n))+","),B(t.diagonalUp)||(i+="u:"+e.hd.getTextIndex(T(t.diagonalUp,n))+","),B(t.diagonalDown)||(i+="d:"+e.hd.getTextIndex(T(t.diagonalDown,n))+","),e.dd.getTextIndex(i.substring(0,i.length-1))},I.prototype.ov=function(t,e){var n,i,r,n,o,r,n=this,i=n.ld;return i[t]||(r=n.hd,n=n.rd,r=K(o=r.getText(+t),n,e),i[t]=r)},I.prototype.ev=function(t,i){var r,e,n,o,r=this,e=r.fd;return e[t]||(n=r.dd.getText(t),o={},n?(n.split(",").forEach(function(t){var t=t.split(":"),e=t[0],n=t[1];switch(e){case"l":o.borderLeft=r.ov(n,i);break;case"r":o.borderRight=r.ov(n,i);break;case"t":o.borderTop=r.ov(n,i);break;case"b":o.borderBottom=r.ov(n,i);break;case"v":o.borderVertical=r.ov(n,i);break;case"h":o.borderHorizontal=r.ov(n,i);break;case"u":o.diagonalUp=r.ov(n,i);break;case"d":o.diagonalDown=r.ov(n,i)}}),e[t]=o):void 0)},I.prototype.iv=function(t){var e=this;t.borderItems=e.hd.wh(),t.borders=e.dd.wh()},I.prototype.rv=function(t){var e=this;e.dd.yh(t.borders),e.hd.yh(t.borderItems)},b=I,P.prototype.dispose=function(){var t=this;t.md&&(t.md.dispose(),t.md=m),t.pd&&(t.pd.dispose(),t.pd=m),t.vd=m,t.bd=m},P.prototype.nv=function(t){var e,n,i,t,r,o,a,e=this,n="",i=t._autoFormatter,t=t.formatter;if(!g(i)){if(r=(o=e.av(i))&&"a"+o.c,!o)return;e.bd[r]!==m?n+="a:"+e.bd[r]+",":(a=e.pd.getTextIndex(JSON.stringify(o)),n+="a:"+(e.bd[r]=a)+",")}if(!g(t)&&!l(t)){if(r=(o=e.av(t))&&"f"+o.c,!o)return;e.bd[r]!==m?n+="f:"+e.bd[r]+",":(a=e.pd.getTextIndex(JSON.stringify(o)),n+="f:"+(e.bd[r]=a)+",")}if(n)return e.md.getTextIndex(n.substring(0,n.length-1))},P.prototype.ev=function(t){var r,e,n,o,r=this,e=r.vd;return e[t]||(n=r.md.getText(t),o={},n.split(",").forEach(function(t){var t,e,t,n,i,i,t=t.split(":"),e=t[0],t=t[1];"a"===e?(n=r.fromSJSFormatString(r.pd.getText(+t)),(i=(i=a.Formatter)&&i.GeneralFormatter)&&(o._autoFormatter=new i(n.formatCached,n.customerCultureName),o._autoFormatter.isAuto=!0)):"f"===e&&(o.formatter=r.fromSJSFormatString(r.pd.getText(+t)))}),e[t]=o)},P.prototype.uv=function(t){var e=this,n=e.wd;return n[t]||e.sv(t)},P.prototype.sv=function(t){var e,e;if(t!==m)return(e=o.ExtendedNumberFormatHelper.builtInNumberFormat())[t]!==m?e[t]:(e=o.ExtendedNumberFormatHelper.languageIndepedentNumberFormat())[t]!==m?e[t]:void 0},P.prototype.fromSJSFormatString=function(t){var e,n,t,i,r,t,t,e=this,n=e.wd,t=JSON.parse(t),i=t.n,r=t.c;return"string"==typeof(r=g(t.json)?r:JSON.parse(e.yd.getObject(t.json)))?n[i]=r:r&&!g(r.typeName)&&(t=d.getTypeFromString(r.typeName))?((t=new t).fromJSON(r),n[i]=t):(g(i)||r&&r.formatCached||(r=e.sv(i)),n[i]=r)},P.prototype.av=function(t){var e,t,n,i,e=this,t=t;if("object"==typeof t&&(t.toJSON&&(n=t.toJSON()),t.formatCached?t=t.formatCached:n&&(t=JSON.stringify(n))),t)return{n:i=(i=P.Cd[t])===m&&this.bd[t]===m?++o.ExtendedNumberFormatHelper.Ih:i,c:t,json:n&&e.yd.getObjectIndex(n)}},P.prototype.iv=function(t){var e=this;t.numFmts=e.md.wh(),t.formatStrings=e.pd.wh()},P.prototype.rv=function(t){var e,n,i,e=this;if(e.md.yh(t.numFmts),e.pd.yh(t.formatStrings),t.numFmts&&0<t.numFmts.length)for(n=0,i=t.numFmts.length;n<i;n++)e.ev(n)},P.Cd={},C=P,N.prototype.dispose=function(){var t=this;t.Ad&&(t.Ad.dispose(),t.Ad=m),t.Td=m},N.prototype.nv=function(t,e){var n,i,i,n="",i=t.hAlign;if(g(i)||(3===e||!e)&&3===i||2===e&&1===i||1===e&&1===i||(n+="h:"+i+","),i=t.vAlign,g(i)||(3===e||!e)&&2===i||2===e&&1===i||1===e&&1===i||(n+="v:"+i+","),g(t.textOrientation)||(n+="x:"+t.textOrientation+","),g(t.textIndent)||(n+="i:"+t.textIndent+","),g(t.shrinkToFit)||(n+="s:"+k(t.shrinkToFit)+","),g(t.wordWrap)||(n+="w:"+k(t.wordWrap)+","),n)return this.Ad.getTextIndex(n.substring(0,n.length-1))},N.prototype.ev=function(t){var e,n,n,i,e=this,n=e.Td;return n[t]||(n=e.Ad.getText(t),i=new v.Style,n.split(",").forEach(function(t){var t=t.split(":"),e=t[0],n=t[1];switch(e){case"h":i.hAlign=+n;break;case"v":i.vAlign=+n;break;case"x":i.textOrientation=+n;break;case"i":i.textIndent=+n;break;case"s":i.shrinkToFit=p(n);break;case"w":i.wordWrap=p(n)}}),i)},N.prototype.iv=function(t){t.alignments=this.Ad.wh()},N.prototype.rv=function(t){this.Ad.yh(t.alignments)},V=N,R.prototype.dispose=function(){var t=this;t.Nd&&(t.Nd.dispose(),t.Nd=m),t.xd=m},R.prototype.nv=function(t){var e;if(!g(t.locked))return e="",e+="l:"+k(t.locked)+",",this.Nd.getTextIndex(e.substring(0,e.length-1))},R.prototype.ev=function(t){var e,n,n,i,e=this,n=e.xd;return n[t]||(n=e.Nd.getText(t),i=new v.Style,n.split(",").forEach(function(t){var t=t.split(":"),e=t[0],t=t[1];"l"===e&&(i.locked=p(t))}),i)},R.prototype.iv=function(t){t.protections=this.Nd.wh()},R.prototype.rv=function(t){this.Nd.yh(t.protections)},Y=R,H.prototype.dispose=function(){var t=this;t.kd&&(t.kd.dispose(),t.kd=m),t.Dd&&(t.Dd.dispose(),t.Dd=m),t._d&&(t._d.dispose(),t._d=m),t.Ed&&(t.Ed.dispose(),t.Ed=m),t.jd&&(t.jd.dispose(),t.jd=m),t.Vve&&(t.Vve.dispose(),t.Vve=m),t.Yve&&(t.Yve.dispose(),t.Yve=m)},H.prototype.cv=function(t,e){var n,i,r,r,r,r,r,r,n=this,i="";if(t&&((r=n.Vve.nv(t))!==m&&e&&(i+="a:"+r+","),(r=n.Ed.nv(t))!==m&&(i+="c:"+r+","),(r=n._d.nv(t))!==m&&(i+="f:"+r+","),(r=n.jd.nv(t))!==m&&(i+="b:"+r+","),(r=n.Dd.nv(t))!==m&&(i+="j:"+r+","),(r=n.Yve.nv(t))!==m&&e&&(i+="pr:"+r+","),""!==(i=i.substring(0,i.length-1))))return n.kd.getTextIndex(i)},H.prototype.fv=function(t,o,a,s){var u=this,t=u.kd.getText(t);if(t)return o=o||new v.Style,t.split(",").forEach(function(t){var t,e,n,i,i,r,i,r,i,t=t.split(":"),e=t[0],n=t[1];switch(e){case"a":s&&(i=u.Vve.ev(+n),E(o,i));break;case"c":i=u.Ed.ev(+n,a),o.backColor=i;break;case"f":r=u._d.ev(+n),E(o,r);break;case"pf":r=u.Lfe.ev(+n),E(o,r);break;case"b":i=u.jd.ev(+n),E(o,i);break;case"j":r=u.Dd.ev(+n),E(o,r);break;case"pr":s&&(i=u.Yve.ev(+n),E(o,i))}}),o},H.prototype.iv=function(){var t=this,e={};return e.cellXfs=t.kd.wh(),t.Dd.iv(e),t._d.iv(e),t.Ed.iv(e),t.jd.iv(e),t.Vve.iv(e),t.Yve.iv(e),e},H.prototype.rv=function(t){var e;t&&(e=this,t)&&(e.kd.yh(t.cellXfs),e.Dd.rv(t),e._d.rv(t),e.Lfe.rv(t,!0),e.Ed.rv(t),e.jd.rv(t),e.Vve.rv(t),e.Yve.rv(t))},i=H,t.SharedDxfs=i,U.prototype.dispose=function(){var t=this;t.Od&&(t.Od.dispose(),t.Od=m),t.cd&&(t.cd.dispose(),t.cd=m),t.yd&&(t.yd.dispose(),t.yd=m),t.Dd&&(t.Dd.dispose(),t.Dd=m),t._d&&(t._d.dispose(),t._d=m),t.Ed&&(t.Ed.dispose(),t.Ed=m),t.jd&&(t.jd.dispose(),t.jd=m),t.Rd&&(t.Rd.dispose(),t.Rd=m),t.Bd&&(t.Bd.dispose(),t.Bd=m),t.Ld&&(t.Ld.dispose(),t.Ld=m),t.kd&&(t.kd.dispose(),t.kd=m),t.Fd={},t.Pd={},t.Gd={},t.Ud={},t.Hd={},t.Vd={},t.zd.length=0,t.Yd={},t.Zd={},t.originCellXfs&&(t.originCellXfs.dispose(),t.originCellXfs=m),t.originNamedStylesXfs&&(t.originNamedStylesXfs.dispose(),t.originNamedStylesXfs=m),t.Wd={},t.Qd={},t.Kd={}},U.prototype.lv=function(t,e,n,i){var r,o,a,s,n,n,n,n,e,i,n,e,i,n,e,u,i,r=this,o=r.cd,a=r.yd,s="";return n!==m&&(s+="t:"+n+","),(n=r.Ed.nv(t))!==m&&(s+="c:"+n+","),(n=r._d.nv(t))!==m&&(s+="f:"+n+","),n=t.hAlign,g(n)||!i&&((3===e||!e)&&3===n||2===e&&1===n||1===e&&1===n)||(s+="h:"+n+","),n=t.vAlign,2===e&&1===n||1===e&&1===n||(g(n)?i||(s+="v:0,"):s+="v:"+n+","),(e=r.jd.nv(t))!==m&&(s+="b:"+e+","),g(t.locked)||(s+="l:"+k(t.locked)+","),g(t.wordWrap)||(s+="w:"+k(t.wordWrap)+","),g(t.showEllipsis)||(s+="se:"+k(t.showEllipsis)+","),g(t.hv)||(s+="st:"+k(t.hv)+","),g(t.shrinkToFit)||(s+="s:"+k(t.shrinkToFit)+","),g(t.tabStop)||(s+="ts:"+k(t.tabStop)+","),g(t.quotePrefix)||(s+="q:"+k(t.quotePrefix)+","),g(t.isVerticalText)||(s+="va:"+k(t.isVerticalText)+","),g(t.applyFont)||(s+="y:"+k(t.applyFont)+","),g(t.applyFill)||(s+="z:"+k(t.applyFill)+","),g(t.applyAlignment)||(s+="r:"+k(t.applyAlignment)+","),g(t.applyBorder)||(s+="e:"+k(t.applyBorder)+","),g(t.applyProtection)||(s+="u:"+k(t.applyProtection)+","),g(t.applyNumberFormat)||(s+="g:"+k(t.applyNumberFormat)+","),g(t.textIndent)||(s+="i:"+t.textIndent+","),i=t.imeMode,g(i)||1===i||(s+="im:"+i+","),g(t.opacity)||(s+="o:"+t.opacity+","),g(t.backgroundImageLayout)||(s+="bl:"+t.backgroundImageLayout+","),g(t.textOrientation)||(s+="x:"+t.textOrientation+","),g(t.backgroundImage)||(s+="bi:"+o.getTextIndex(t.backgroundImage)+","),g(t.watermark)||(s+="k:"+o.getTextIndex(t.watermark)+","),g(t.cellPadding)||(s+="p:"+o.getTextIndex(t.cellPadding)+","),g(t.textBaseline)||(s+="tb:"+o.getTextIndex(t.textBaseline)+","),g(t.labelOptions)||(s+="lo:"+o.getTextIndex(JSON.stringify(t.labelOptions))+","),g(t.cellType)||(n=a.getObjectIndex(t.cellType),g(n))||(s+="ct:"+n+","),g(t.cellButtons)||(e=a.getObjectIndex(t.cellButtons),g(e))||(s+="cb:"+e+","),g(t.dropDowns)||(i=a.getObjectIndex(t.dropDowns),g(i))||(s+="dd:"+i+","),g(t.decoration)||(n=a.getObjectIndex(t.decoration),g(n))||(s+="dc:"+n+","),g(t.mask)||(e=a.getObjectIndex(t.mask),g(e))||(s+="ma:"+e+","),!g(t.formatter)&&l(t.formatter)&&(s+="fs:"+(u=o.getTextIndex(t.formatter))+","),(i=r.Dd.nv(t))!==m&&(s+="j:"+i+","),s.substring(0,s.length-1)},U.prototype.vv=function(t,s){var u,c,f,l,h;if(t)return u=new v.Style,f=(c=this).cd,l=c.yd,h=c.Hd,t.split(",").forEach(function(t){var t,e,n,i,i,i,i,r,o,a,i,o,t=t.split(":"),e=t[0],n=t[1];switch(e){case"t":u.sheetId=+n;break;case"c":i=c.Ed.ev(+n),u.backColor=i;break;case"f":i=c._d.ev(+n),E(u,i);break;case"h":u.hAlign=+n;break;case"v":u.vAlign=+n;break;case"b":i=c.jd.ev(+n,s),E(u,i);break;case"l":u.locked=p(n);break;case"w":u.wordWrap=p(n);break;case"se":u.showEllipsis=p(n);break;case"st":u.hv=p(n);break;case"s":u.shrinkToFit=p(n);break;case"ts":u.tabStop=p(n);break;case"q":u.quotePrefix=p(n);break;case"va":u.isVerticalText=p(n);break;case"y":u.applyFont=p(n);break;case"z":u.applyFill=p(n);break;case"r":u.applyAlignment=p(n);break;case"e":u.applyBorder=p(n);break;case"u":u.applyProtection=p(n);break;case"g":u.applyNumberFormat=p(n);break;case"i":u.textIndent=+n;break;case"im":u.imeMode=+n;break;case"o":u.opacity=+n;break;case"bl":u.backgroundImageLayout=+n;break;case"x":u.textOrientation=+n;break;case"bi":u.backgroundImage=f.getText(+n);break;case"n":u.parentName=g(n)||!s&&0==+n?m:h[n];break;case"k":u.watermark=f.getText(+n);break;case"p":u.cellPadding=f.getText(+n);break;case"tb":u.textBaseline=f.getText(+n);break;case"lo":u.labelOptions=JSON.parse(f.getText(+n));break;case"ct":i=A.ti,(r=l.getObject(+n))&&(o=r.typeName,a=void 0,(i=i[r.type]||i[o]||d.getTypeFromString(o))&&(a=new i).fromJSON(r,!0),u.cellType=a);break;case"cb":u.cellButtons=JSON.parse(l.getObject(+n));break;case"dd":u.dropDowns=JSON.parse(l.getObject(+n));break;case"dc":u.decoration=JSON.parse(l.getObject(+n));break;case"ma":u.mask=JSON.parse(l.getObject(+n));break;case"fs":u.formatter=f.getText(+n);break;case"j":o=c.Dd.ev(+n),E(u,o)}}),u},U.prototype.mv=function(t,e){var n=this;if(!g(t))return t=e&&n.gv&&n.gv[t]&&n.gv[t][e]?n.gv[t][e]:t},U.prototype.getNamedStyle=function(t,e,n){var i,r,o,o,i=this,r,o=i.Rd.getText(t);if(o!==m)return(o=o?i.vv(o,n):new v.Style).name=e,i.Hd[t]=e,o},U.prototype.getNamedStyleIndex=function(t,e,n,i,r){var o,a,s,u,c,f,l,n;if(t)return a=(o=this).Rd,s=o.Pd,u=o.qd,f=o.Kd,l=t.name,l=o.mv(l,n),n=o.lv(t,e,i,!0),r&&(!l||u.test(l))||(c=a.getTextIndex(n),f[s[l]=c]={parentName:t.parentName,name:l}),c},U.prototype.updateNamedStylesParentName=function(){var t=this,i=t.Rd,r=t.Pd,o=t.Kd;Object.keys(o).forEach(function(t){var e,n,e,t,t,e=o[t],n=e.parentName,e=e.name;g(n)||g(r[n])||(t=i.getText(+t),t=i.getTextIndex(t+(0<t.length?",n:":"n")+r[n]),r[e]=+t)})},U.prototype.addStyleParent=function(t,e,n){var n,i,r,o,a,s;if(e)for(r=(i=this).originNamedStylesXfs,o=n?t:null==(n=e.u8(t))?void 0:n.parentName;o&&a!==o;)r.setTextValue(o),o=null==(s=e.u8(o))?void 0:s.parentName,a=null==s?void 0:s.name},U.prototype.getStyle=function(t){var e,n,i,i,r,o,o,e=this,n,i=e.Yd[t];return i!==m?i:(r=(i=e.Ud)[t])!==m?r:(o=(o=e.Bd)&&o.getText(t))!==m?(r=e.vv(o,!1),i[t]=r):void 0},U.prototype.getStyleIndex=function(t,e,n){var i,r,o,a,s,u,c,f,a,f,l;if(t)return o=(i=this).Pd,a=i.Rd,s=i.Bd,u=i.qd,"string"==typeof t?(f=o[t=i.mv(t,n)],(c=a.getText(f))?(c.length&&","!==c[c.length-1]&&(c+=","),+s.getTextIndex(c+="d:"+f)):void 0):(a=t._id,f=i.Fd,a!==m&&(r=f[a])!==m?r:((l=t.name)!==m&&!u.test(l)||(l=t.parentName),l=i.mv(l,n),(c=i.lv(t,e))?(c.length&&","!==c[c.length-1]&&(c+=","),l!==m&&o[l]!==m?c+="n:"+o[l]:c+="n:0",r=s.getTextIndex(c),f[a]=r):void 0))},U.prototype.getOriginNamedStyleIndex=function(t,e){var n=this,i=n.originNamedStylesXfs;return n.addStyleParent(t,e),+i.getTextIndex(t)},U.prototype.getOriginStyleIndex=function(t,e,n){var i,r,o,r,a,a,r,n,i=this,r=i.Wd,o=i.originCellXfs;return t?(a=t._id)!==m&&(r=r[a])!==m?r:(a=i.Pd,r=i.lv(t,n,void 0,!0),t.name&&!g(a[t.name])&&(r.length&&","!==r[r.length-1]&&(r+=","),r+="d:"+a[t.name]),(n=t.parentName)&&!g(a[n])&&(i.addStyleParent(n,e,!0),r.length&&","!==r[r.length-1]&&(r+=","),r+="n:"+a[n]),+o.getTextIndex(r)):+o.getTextIndex(f)},U.prototype.getOriginStyle=function(t){var e,n,i,n,e,e=this,n=e.originCellXfs,i=e.Qd;return i[t]!==m?i[t]:(n=n.getText(t))?(e=e.vv(n,!0),i[t]=e):f},U.prototype.getOriginNamedStyle=function(t){var e,n;return this.originNamedStylesXfs.getText(t)},U.prototype.getDxf=function(t,e,n,i){var r,o;return this.kd.fv(t,e,n,i)},U.prototype.getDxfIndex=function(t,e){var n,i=this.kd;return t?i.cv(t,e):m},U.prototype.addTableStyle=function(e){0<this.zd.filter(function(t){return t.name===e.name}).length||this.zd.push(e)},U.prototype.addDefaultStyleName=function(t,e){this.Vd[t]=e},U.prototype.getDefaultStyleName=function(t){return this.Vd[t]},U.prototype.getFormatCodeByNumFmtId=function(t){return this.Dd.uv(t)},U.prototype.buildDummyNamedStyles=function(t){var e,n,i,r,o,a,s,u,c,f,l,h,e=this,n=e.Bd,i=e.Jd,r=n.td.length,o=e.Yd,a=0,s=e.Hd,u=e.Xd,c=e.$d;if(s&&(Object.keys(s).forEach(function(t){var t,e,n,e,t=s[t],e=t&&t.indexOf(i);0<=e&&(n=parseInt(t.substring(e+14),10),a<n)&&(a=n),0<=(e=t&&t.indexOf(u))&&(n=parseInt(t.substring(e+19),10),c<n)&&(c=n)}),e.$d=c),0<r)for(f=0;f<r;f++)l=e.getStyle(f),h=i+(f+a),l.name=h,t.addNamedStyle(l),o[f]=h},U.prototype.yh=function(n,t){var i=this;n&&(n.sharedColors&&i.Od.yh(n.sharedColors),n.commonSharedStrings&&i.cd.yh(n.commonSharedStrings),n.cellXfs&&i.Bd.yh(n.cellXfs),n.cellStyleXfs&&i.Rd.yh(n.cellStyleXfs),n.sharedObjects&&i.yd.yh(n.sharedObjects),n.originCellXfs&&i.originCellXfs.yh(n.originCellXfs),n.originNamedStylesXfs&&i.originNamedStylesXfs.yh(n.originNamedStylesXfs),i.Ed.rv(n),i.Dd.rv(n),i._d.rv(n),i.jd.rv(n),i.kd.rv(n.dxfs),i.Vd=s(n.defaultStyleNames)||{},U.fh)&&r(U.fh,function(t,e){e.yh&&e.yh.call(i,n)})},U.prototype.wh=function(t){var n=this,i={sharedColors:n.Od.wh(),commonSharedStrings:n.cd.wh(),cellXfs:n.Bd.wh(),cellStyleXfs:n.Rd.wh(),sharedObjects:n.yd.wh(),namedStylesMap:n.Pd,defaultStyleNames:s(n.Vd),originCellXfs:n.originCellXfs.wh(),originNamedStylesXfs:n.originNamedStylesXfs.wh()};return n.Dd.iv(i),n._d.iv(i),n.Ed.iv(i),n.jd.iv(i),i.dxfs=n.kd.iv(),0<n.zd.length&&(i.tableStyles={n_:"tableStyles",c_:[].concat(n.zd),defaultPivotStyle:n.getDefaultStyleName("defaultPivotStyle")||"PivotStyleLight16",defaultTableStyle:n.getDefaultStyleName("defaultTableStyle")||"TableStyleMedium2",count:n.zd.length}),U.fh&&r(U.fh,function(t,e){e.wh&&e.wh.call(n,i)}),i},U.prototype.bv=function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);return t},t.StyleManager=e=U,(0,u.$e)(e)},"./dist/core/util/tasks.js":function(t,e){"use strict";var n,i,r,o,a,s,u,c,f,l;function h(t,e){this.fn=t,this.args=e}function d(t,e){var n=this;n.tasks=[],n.nextTaskFunc=t.bind(n),n.isBusyFunc=e.bind(n)}function v(t,e,n,i,r){var t=f.call(this,t,e)||this;return t.description=n,t.progress=i,t.sheetName=r,t}function g(t,e,n){void 0===n&&(n=function(t){});var t=l.call(this,t,e)||this;return t.progress=n,t}n=this&&this.__extends||(c=function(t,e){return(c=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(t,e){t.__proto__=e}:function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])}))(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}c(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),Object.defineProperty(e,"__esModule",{value:!0}),e.LoadTasks=e.LoadTask=e.Tasks=e.Task=void 0,i=100,r=10,h.prototype.dispose=function(){this.fn=void 0,this.args=void 0},h.prototype.run=function(){this.fn.apply(null,this.args)},o=h,e.Task=o,d.prototype.addTask=function(t,e,n){this.tasks.splice(0,0,new o(t,e))},d.prototype.pushTask=function(t,e,n){this.tasks.push(new o(t,e))},d.prototype.runNextTask=function(){var t,e,n,t=this,e=t.tasks;t.isTerminated||(e.length<1?t.endingCallback&&t.endingCallback():t.isBusyFunc()?setTimeout(function(){t.runNextTask()},100):((n=t.nextTaskFunc()).run(),setTimeout(function(){t.runNextTask()},10)))},d.prototype.start=function(){var t;this.runNextTask()},d.prototype.terminate=function(){var t=this;t.tasks&&(t.tasks.forEach(function(t){t.dispose()}),t.tasks=[]),t.endingCallback=void 0,t.isTerminated=!0},e.Tasks=a=d,n(v,f=o),v.prototype.dispose=function(){this.description=void 0,this.progress=void 0,this.sheetName=void 0,f.prototype.dispose.call(this)},s=v,e.LoadTask=s,n(g,l=a),g.prototype.runNextTask=function(){var t,e,n,e,t=this,e=t.tasks,n=t.progress;t.isTerminated||(e.length<1?t.endingCallback&&t.endingCallback():t.isBusyFunc()?setTimeout(function(){t.runNextTask()},100):((e=t.nextTaskFunc()).description&&n({progress:e.progress&&e.progress(),step:e.description,sheetName:e.sheetName}),e.run(),e.dispose(),setTimeout(function(){t.runNextTask()},0)))},g.prototype.addTask=function(t,e,n,i,r){this.tasks.splice(0,0,new s(t,e,n,i,r))},g.prototype.pushTask=function(t,e,n,i,r){this.tasks.push(new s(t,e,n,i,r))},g.prototype.terminate=function(){this.progress=void 0,l.prototype.terminate.call(this)},e.LoadTasks=g},"./dist/core/util/theme.js":function(F,t,e){"use strict";var n,i,a,p,o,v,s,u,r,c,e,n,i,f,l,h,d,g,_,A,L,D,j,O,V,m,S,w,b,C,y,M,M,y,k,C;function T(e){var n=e;return function(t){return 0===arguments.length?this.yv[n]:(this.yv[e]=v(t),this)}}function x(t){return t<=0?0:t<=.0031308?255*t*12.92+.5:t<1?255*(1.055*Math.pow(t,.4166666666666667)-.055)+.5:255}function Y(t){var e,n,i,i,r,i,r,o,i,r,o,e=t.n_.split(":").pop(),n=t.val;return"sysClr"===e?void 0!==(i=m[n.toUpperCase()])?a.ColorHelper.hexToARGB(i):(i=t.lastClr)?(r=4278190080+(16777215&parseInt(i,16)),a.ColorHelper.hexToARGB(r)):void 0:"srgbClr"===e&&n?(r=4278190080+(16777215&parseInt(n,16)),a.ColorHelper.hexToARGB(r)):"scrgbClr"===e?(i=parseFloat(t._r),r=parseFloat(t.g),o=parseFloat(t.b),{a:255,r:x(i),g:x(r),b:x(o)}):"hslClr"===e?(i=parseFloat(t.wv),r=parseFloat(t.sat),o=parseFloat(t.lum),a.util.v1(i,o,r)):"prstClr"===e&&n?a.util.m1(n):void 0}function G(t){var t=t.toString(16).toUpperCase();return t=1===t.length?"0"+t:t}function B(t,e){return{n_:t,c_:[{n_:"srgbClr",val:G(e.r)+G(e.g)+G(e.b)}]}}function I(t,e,n,i,r,o,a,s,u,c,f,l,h){this.background1=T(0),this.background2=T(1),this.textColor1=T(2),this.textColor2=T(3),this.accent1=T(4),this.accent2=T(5),this.accent3=T(6),this.accent4=T(7),this.accent5=T(8),this.accent6=T(9),this.hyperlink=T(10),this.followedHyperlink=T(11),this.Zc=t,this.yv=[];for(var d=1;d<13;d++)this.yv.push(v(arguments[d]))}function P(t){return t=t&&"'"===t[0]?t.slice(1,t.length-1):t}function N(t,e,n){this.Zc=t,this.Ide=e,this.See=n}function R(t,e,n,i){var r,o,r=this;this.name=u("name"),this.colors=u("colors"),this.fmtTheme=u("fmtTheme",void 0,function(){r.Mv={}}),(o=this).name(t),o.colors(e||new w(t)),"string"!=typeof n&&n instanceof b?this.font(n):this._font=new b(void 0,n,i)}function E(){}function H(){}function U(){}Object.defineProperty(t,"__esModule",{value:!0}),t.Themes=t.ThemeFonts=t.ThemeColors=t.Theme=t.ThemeFont=t.ColorScheme=void 0,n=e("Common"),i=e("./dist/core/util/common.js"),a=e("./dist/core/util/common.js"),p=n.Common.lt.ht,o=n.Common.ft,v=o._,s=parseInt,u=i.util.p0,r=a.util.xr,c=a.util.o1,e="Gill Sans MT",n="Franklin Gothic Book",i="Trebuchet MS",l=1,h=2,d=3,g=4,_=5,A=6,L=7,D=8,j=9,O=10,V=11,m={"3DDKSHADOW":4288716960,"3DLIGHT":4293125091,ACTIVEBORDER:4290032820,ACTIVECAPTION:4288263377,APPWORKSPACE:4289440683,BACKGROUND:1044480,BTNFACE:4293980400,BTNHIGHLIGHT:4294967295,BTNSHADOW:4288716960,BTNTEXT:1044480,CAPTIONTEXT:1044480,GRAYTEXT:4285361517,HIGHLIGHT:4281571839,HIGHLIGHTTEXT:4294967295,INACTIVEBORDER:4294244348,INACTIVECAPTION:4290760155,INACTIVECAPTIONTEXT:4282601044,INFOBK:4294967265,INFOTEXT:1044480,MENU:4293980400,GRADIENTACTIVECAPTION:4290367978,HOTLIGHT:267413196,GRADIENTINACTIVECAPTION:4292338930,MENUBAR:4293980400,MENUHIGHLIGHT:4281571839,MENUTEXT:1044480,SCROLLBAR:4291348680,WINDOW:4294967295,WINDOWFRAME:4284769380,WINDOWTEXT:4278190080},(C=S=S||{})[C.lt1=f=0]="lt1",C[C.lt2=1]="lt2",C[C.dk1=2]="dk1",C[C.dk2=3]="dk2",C[C.accent1=4]="accent1",C[C.accent2=5]="accent2",C[C.accent3=6]="accent3",C[C.accent4=7]="accent4",C[C.accent5=8]="accent5",C[C.accent6=9]="accent6",C[C.hlink=10]="hlink",C[C.folHlink=11]="folHlink",I.prototype.name=function(t){return 0===arguments.length?this.Zc:(this.Zc=t,this)},I.prototype.getColor=function(t){var e,n,i,r,n;if(t&&"string"==typeof t&&(n=void 0,e=t.split(" "))){if(i=-1,1<(r=e.length)){if(!e[0])return t;"background"===(n=e[0].toLowerCase())?i=s(e[1],10)-1:"text"===n?i=s(e[1],10)+1:"accent"===n&&(i=s(e[1],10)+3)}else 1===r&&("hyperlink"===(n=e[0].toLowerCase())?i=10:"followedhyperlink"===n&&(i=11));if(0<=i&&i<=11)return 2<r?(n=s(e[2],10)/100,o.j(o.Cv(this.yv[i],n))):o.j(this.yv[i])}return t},I.prototype.toJSON=function(){var t=this,e=t.yv;return{name:t.Zc,background1:e[0],background2:e[1],text1:e[2],text2:e[3],accent1:e[4],accent2:e[5],accent3:e[6],accent4:e[7],accent5:e[8],accent6:e[9],hyperlink:e[10],followedHyperlink:e[11]}},I.prototype.fromJSON=function(t,e){var n,i,r,o,a,s,u,c,f,l,h,d,v,g,i,e,e;function m(t,e){p(e)||(n.yv[t]={a:e.a,r:e.r,g:e.g,b:e.b})}t&&(n=this,i="_colorList",i=e?(e=t.name||t[r="_name"],p(e)||(n.Zc=e),o=(e=t.colorList||t[i])[0],a=e[1],s=e[2],u=e[3],c=e[4],f=e[5],l=e[6],h=e[7],d=e[8],v=e[9],g=e[10],e[11]):(p(t.name)||(n.Zc=t.name),o=t.background1,a=t.background2,s=t.text1,u=t.text2,c=t.accent1,f=t.accent2,l=t.accent3,h=t.accent4,d=t.accent5,v=t.accent6,g=t.hyperlink,t.followedHyperlink),m(0,o),m(1,a),m(2,s),m(3,u),m(4,c),m(5,f),m(6,l),m(7,h),m(8,d),m(9,v),m(10,g),m(11,i))},I.prototype.yh=function(t){var e,n,i,r,o,a,o;if(t)for(n=t.c_,(e=this).Zc=t.name,i=0,r=n.length;i<r;i++)(o=n[i])&&(a=o.n_.split(":").pop(),o=o.c_[0],e.yv[S[a]]=Y(o))},I.prototype.wh=function(){for(var t,e,n,i,r,o,a,t=this,e={n_:"clrScheme",name:t.name()},n=[],i=t.yv,r=0,o=i.length;r<o;r++)a=i[r],2===r?n[0]=a.r+a.g+a.b===0?{n_:"dk1",c_:[{n_:"sysClr",val:"windowText",lastClr:G(a.r)+G(a.g)+G(a.b)}]}:B("dk1",a):0===r?n[1]=a.r+a.g+a.b===765?{n_:"lt1",c_:[{n_:"sysClr",val:"window",lastClr:G(a.r)+G(a.g)+G(a.b)}]}:B("lt1",a):3===r?n[2]=B("dk2",a):1===r?n[3]=B("lt2",a):n.push(B(""+S[r],a));return e.c_=n,e},I.prototype.Sv=function(t){var e,n,i,r;if(this.name()!==t.name())return!1;for(n=0,i=(e=["textColor1","textColor2","background1","background2","accent1","accent2","accent3","accent4","accent5","accent6","hyperlink","followedHyperlink"]).length;n<i;n++)if(!o.Tv(this[r=e[n]](),t[r]()))return!1;return!0},w=I,t.ColorScheme=w,Object.defineProperty(N.prototype,"name",{get:function(){return this.Zc},set:function(t){this.Zc=t},enumerable:!1,configurable:!0}),Object.defineProperty(N.prototype,"headerFont",{get:function(){return this.Ide},set:function(t){this.Ide=t},enumerable:!1,configurable:!0}),Object.defineProperty(N.prototype,"bodyFont",{get:function(){return this.See},set:function(t){this.See=t},enumerable:!1,configurable:!0}),N.prototype.toJSON=function(){return{name:this.Zc,headerFont:this.Ide,bodyFont:this.See}},N.prototype.fromJSON=function(t){this.Zc=t.name,this.Ide=t.headerFont,this.See=t.bodyFont},b=N,t.ThemeFont=b,R.prototype.headerFont=function(t){if(0===arguments.length)return this._font.headerFont;this._font.headerFont=t},R.prototype.bodyFont=function(t){if(0===arguments.length)return this._font.bodyFont;this._font.bodyFont=t},R.prototype.font=function(t){if(0===arguments.length)return this._font;this._font=new b,this._font.fromJSON(t.toJSON())},R.prototype.getColor=function(t){return this.colors().getColor(t)},R.prototype.getFont=function(t){return"Body"===t?this.bodyFont():"Headings"===t?this.headerFont():t},R.prototype.toJSON=function(){var t=this,e=t.name();return R.Av(t)?e:{name:e,themeColor:t.colors()?t.colors().toJSON():void 0,headingFont:t.headerFont(),bodyFont:t.bodyFont(),font:t._font.toJSON()}},R.prototype.fromJSON=function(t){var e;"string"==typeof t?(e=k[t],this.name(e.name()),this.colors(e.colors()),this.headerFont(e.headerFont()),this.bodyFont(e.bodyFont()),this.font(e.font())):(this.name(t.name),this.bodyFont(t.bodyFont),this.headerFont(t.headingFont),this.colors().fromJSON(t.themeColor),t.font&&this._font.fromJSON(t.font))},R.prototype.wh=function(t){var e,n,i,r,t,e=this,n=e.name();return!1!==t&&R.Av(e)?n:(t={n_:"themeElements",c_:[]},(r=(i=e.colors())?i.wh():r)&&t.c_.push(r),t.c_.push({n_:"fontScheme",c_:[{n_:"majorFont",c_:[{n_:"latin",typeface:P(e.headerFont())}]},{n_:"minorFont",c_:[{n_:"latin",typeface:P(e.bodyFont())}]}],name:e._font.name}),{n_:"theme",name:n,c_:[t]})},R.prototype.yh=function(t){var e,t,n,i,n,i,e=this;"string"==typeof t?e.Iv(t):(e.Iv(t.name),t=r(t,"themeElements"),n=r(t,"clrScheme"),(i=new w("")).yh(n),e.colors(i),(n=r(t,"fontScheme"))&&(e.headerFont(c(n,"majorFont&latin").typeface),e.bodyFont(c(n,"minorFont&latin").typeface),n.name)&&(e._font.name=n.name),(i=r(t,"fmtScheme"))&&e.fmtTheme(i))},R.prototype.Iv=function(t){var e,t,e=this;t&&"OFFICE"===t.toUpperCase().substring(0,6)&&(t="Office"),e.name(t),(t=k[t])&&(e.colors(t.colors()),e.font(t.font()))},R.Av=function(t){var e,e,e=t.name();return!!k[e]&&(e=k[e],t.bodyFont()===e.bodyFont())&&t.headerFont()===e.headerFont()&&t.font().name===e.font().name&&t.colors().Sv(e.colors())},C=R,t.Theme=C,E.Default=new w("Default",M="#FFFFFF","#EEECE1",y="#000000","#1F497D","#4F81BD","#C0504D","#9BBB59","#8064A2","#4BACC6","#F79646","#0000FF","#800080"),E.Office2007=new w("Office2007",M,"#EEECE1",y,"#1F497D","#4F81BD","#C0504D","#9BBB59","#8064A2","#4BACC6","#F79646","#0000FF","#800080"),E.Office=new w("Office",M,"#E7E6E6",y,"#44546A","#5B9BD5","#ED7D31","#A5A5A5","#FFC000","#4472C4","#70AD47","#0563C1","#954F72"),E.Apex=new w("Apex",M,"#C9C2D1",y,"#69676D","#CEB966","#9CB084","#6BB1C9","#6585CF","#7E6BC9","#A379BB","#410082","#932968"),E.Aspect=new w("Aspect",M,"#E3DED1",y,"#323232","#F07F09","#9F2936","#1B587C","#4E8542","#604878","#C19859","#6B9F25","#B26B02"),E.Concourse=new w("Concourse",M,"#DEF5FA",y,"#464646","#2DA2BF","#DA1F28","#EB641B","#39639D","#474B78","#7D3C4A","#FF8119","#44B9E8"),E.Civic=new w("Civic",M,"#C5D1D7",y,"#646B86","#D16349","#CCB400","#8CADAE","#8C7B70","#8FB08C","#D19049","#00A3D6","#694F07"),E.Oriel=new w("Oriel",M,"#FFF39D",y,"#575F6D","#FE8637","#7598D9","#B32C16","#F5CD2D","#AEBAD5","#777C84","#D2611C","#3B435B"),E.Origin=new w("Origin",M,"#DDE9EC",y,"#464653","#727CA3","#9FB8CD","#D2DA7A","#FADA7A","#B88472","#8E736A","#B292CA","#6B5680"),E.Paper=new w("Paper",M,"#FEFAC9",y,"#444D26","#A5B592","#F3A447","#E7BC29","#D092A7","#9C85C0","#809EC2","#8E58B6","#7F6F6F"),E.Solstice=new w("Solstice",M,"#E7DEC9",y,"#4F271C","#3891A7","#FEB80A","#C32D2E","#84AA33","#964305","#475A8D","#8DC765","#AA8A14"),E.Technic=new w("Technic",M,"#D4D2D0",y,"#3B3B3B","#6EA0B0","#CCAF0A","#8D89A4","#748560","#9E9273","#7E848D","#00C8C3","#A116E0"),E.Trek=new w("Trek",M,"#FBEEC9",y,"#4E3B30","#F0A22E","#A5644E","#B58B80","#C3986D","#A19574","#C17529","#AD1F1F","#FFC42F"),E.Urban=new w("Urban",M,"#DEDEDE",y,"#424456","#53548A","#438086","#A04DA3","#C4652D","#8B5D3D","#5C92B5","#67AFBD","#C2A874"),E.Verve=new w("Verve",M,"#D2D2D2",y,"#666666","#FF388C","#E40059","#9C007F","#68007F","#005BD3","#00349E","#17BBFD","#FF79C2"),E.Equity=new w("Equity",M,"#E9E5DC",y,"#696464","#D34817","#9B2D1F","#A28E6A","#956251","#918485","#855D5D","#CC9900","#96A9A9"),E.Flow=new w("Flow",M,"#DBF5F9",y,"#04617B","#0F6FC6","#009DD9","#0BD0D9","#10CF9B","#7CCA62","#A5C249","#E2D700","#85DFD0"),E.Foundry=new w("Foundry",M,"#EAEBDE",y,"#676A55","#72A376","#B0CCB0","#A8CDD7","#C0BEAF","#CEC597","#E8B7B7","#DB5353","#903638"),E.Median=new w("Median",M,"#EBDDC3",y,"#775F55","#94B6D2","#DD8047","#A5AB81","#D8B25C","#7BA79D","#968C8C","#F7B615","#704404"),E.Metro=new w("Metro",M,"#D6ECFF",y,"#4E5B6F","#7FD13B","#EA157A","#FEB80A","#00ADDC","#738AC8","#1AB39F","#EB8803","#5F7791"),E.Module=new w("Module",M,"#D4D4D6",y,"#5A6378","#F0AD00","#60B5CC","#E66C7D","#6BB76D","#E88651","#C64847","#168BBA","#680000"),E.Opulent=new w("Opulent",M,"#F4E7ED",y,"#B13F9A","#B83D68","#AC66BB","#DE6C36","#F9B639","#CF6DA4","#FA8D3D","#FFDE66","#D490C5"),t.ThemeColors=M=E,H.Office=new b("Office","Calibri Light","Calibri"),H.Office2007=new b("Office2007","Cambria","Calibri"),H.LucidaBook=new b("LucidaBook","Lucida Sans","Book Antiqua"),H.Verdana=new b("Verdana","Verdana","Verdana"),H.LucidaSansUnicode=new b("LucidaSansUnicode","Lucida Sans Unicode","Lucida Sans Unicode"),H.Georgia=new b("Georgia","Georgia","Georgia"),H.CenturySchoolbook=new b("CenturySchoolbook","Century Schoolbook","Century Schoolbook"),H.BookmanGillSansMT=new b("BookmanGillSansMT","Bookman Old Style",e),H.Constantia=new b("Constantia","Constantia","Constantia"),H.GillSansMT=new b("GillSansMT",e,e),H.FranklinGothicArial=new b("FranklinGothicArial",n,"Arial"),H.FranklinGothic=new b("FranklinGothic","Franklin Gothic Medium",n),H.TrebuchetGeorgia=new b("TrebuchetGeorgia",i,"Georgia"),H.CenturyGothic=new b("CenturyGothic","Century Gothic","Century Gothic"),H.FranklinGothicPerpetua=new b("FranklinGothicPerpetua",n,"Perpetua"),H.CalibriConstantia=new b("CalibriConstantia","Calibri","Constantia"),H.Rockwell=new b("Rockwell","Rockwell","Rockwell"),H.TwCenMT=new b("TwCenMT","Tw Cen MT","Tw Cen MT"),H.ConsolasCorbel=new b("ConsolasCorbel","Consolas","Corbel"),H.Corbel=new b("Corbel","Corbel","Corbel"),H.TrebuchetMS=new b("TrebuchetMS",i,i),t.ThemeFonts=y=H,U.Default=new C("Default",M.Default,"Cambria","Calibri"),U.Office=new C("Office",M.Office,y.Office),U.Office2007=new C("Office2007",M.Office2007,y.Office2007),U.Apex=new C("Apex",M.Apex,y.LucidaBook),U.Aspect=new C("Aspect",M.Aspect,y.Verdana),U.Concourse=new C("Concourse",M.Concourse,y.LucidaSansUnicode),U.Civic=new C("Civic",M.Civic,y.Georgia),U.Oriel=new C("Oriel",M.Oriel,y.CenturySchoolbook),U.Origin=new C("Origin",M.Origin,y.BookmanGillSansMT),U.Paper=new C("Paper",M.Paper,y.Constantia),U.Solstice=new C("Solstice",M.Solstice,y.GillSansMT),U.Technic=new C("Technic",M.Technic,y.FranklinGothicArial),U.Trek=new C("Trek",M.Trek,y.FranklinGothic),U.Urban=new C("Urban",M.Urban,y.TrebuchetGeorgia),U.Verve=new C("Verve",M.Verve,y.CenturyGothic),U.Equity=new C("Equity",M.Equity,y.FranklinGothicPerpetua),U.Flow=new C("Flow",M.Flow,y.CalibriConstantia),U.Foundry=new C("Foundry",M.Foundry,y.Rockwell),U.Median=new C("Median",M.Median,y.TwCenMT),U.Metro=new C("Metro",M.Metro,y.ConsolasCorbel),U.Module=new C("Module",M.Module,y.Corbel),U.Opulent=new C("Opulent",M.Opulent,y.TrebuchetMS),k=U,t.Themes=k},"./dist/core/workbook/sheettab.js":function(t,e,n){"use strict";var i,b,r,g,m,p,o,a,s,M,f,u,c,l,h,d;function v(t){var t,e,t=d.call(this,t)||this;return t.xv=4,t.Nv="white",(e=t).kv=13,e.Dv=12,e._v=0,e.Ev=30,e.jv=28,e.Ov=28,e.Rv=m.NEW_TAB_SIZE_ASIDE,e.Bv=15,e.Lv=28,e.Fv=0,e._font="10pt Segoe UI",t}i=this&&this.__extends||(h=function(t,e){return(h=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(t,e){t.__proto__=e}:function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])}))(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}h(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),b=this&&this.__spreadArray||function(t,e,n){if(n||2===arguments.length)for(var i=0,r=e.length,o;i<r;i++)!o&&i in e||((o=o||Array.prototype.slice.call(e,0,i))[i]=e[i]);return t.concat(o||Array.prototype.slice.call(e))},Object.defineProperty(e,"__esModule",{value:!0}),e.Gv=void 0,r=n("Common"),g=n("./dist/core/util/common.js"),m=n("./dist/core/workbook/sheettabbase.js"),p=n("./dist/core/core.enum.js"),o=r.Common.ft,a=o.Uv,s=o._,M=g.mt.Tt,f=null,u="blank",c="nextButton",d=m.Hv,i(v,d),v.prototype.zv=function(){var t=this.Vv,t=t&&t.options;return t&&t.tabNavigationVisible?this.jv*(t.useTouchLayout?1.5:1):0},v.prototype.Yv=function(){var t=this.Vv;return t&&t.options.tabNavigationVisible?t.Zv():0},v.prototype.Wv=function(){return this.Ov},v.prototype.Qv=function(){return this.Kv?0:this.Ov},v.prototype.Jv=function(){var t,e,t,e;return!this.Vv.options.newTabVisible||this.Kv?0:this.Rv},v.prototype.Xv=function(){var t,e,n,i,r,o,a,s,u,c,t=this,e=t.Vv.qv(),n=t.$v,i=t.M2e,r=t.tm();for(t.nm()&&(r-=t.em()),o=t.im(),a=t.ot(),s=o?a.x+a.width-t.rm()-t.Jv()-t.Qv():a.y+a.height-t.Yv(),u=t.om,c=e.length;u<c;u++)if(e[u].visible()===p.SheetTabVisible.visible&&(r+=(o?n:i)[u]),s<r){r=s;break}return r},v.prototype.tm=function(){var t,e,n,e,n,e,t=this,e=t.Vv.options,n=t.im(),e=e.tabNavigationVisible;return n?(n=2*t.em(),e&&(n-=t.em()),2*t.zv()+t.Wv()+t.um()+n):(e=t.cm(),t.nm()&&(e=0),Math.max(t.Jv(),e))},v.prototype.um=function(){var t=this,e=t.Vv;return e&&e.options.tabNavigationVisible?t.rm()/2:0},v.prototype.getResizeBarBounds=function(){var t,e,t=this,e=t.ot();return{x:e.x+e.width-t.rm(),y:f,width:t.rm(),height:f}},v.prototype.getNavButtonBounds=function(){var t,e,n,i,r,o,a,s,o,u,t,t=this,e,o=t.im()?(n=t.rm()/2,i=f,r=t.zv(),f):(o=t.ot(),u=t.Yv(),t=t.zv(),n=o.width/2-t,i=o.height-u,r=t,u),a=1,s=3;return{x:n,y:i,width:r,height:o,startIndex:1,endIndex:3}},v.prototype.getSheetTabBounds=function(){var t,e,n,i,t=this,e=t.ot(),n=t.Qv(),i=t.tm();return t.nm()&&(i-=t.em()),{x:i,y:f,height:f,secondMoreTabWidth:t.Qv(),moreTabPos:e.x+e.width-t.rm()-t.Jv()-n}},v.prototype.getPreMoreTabBounds=function(){var t,e,t=this,e=t.tm();return t.nm()&&(e-=t.em()),{x:e-t.Wv(),width:t.Wv()}},v.prototype.getAllSheetsBounds=function(){var t,e,n,i,r,o,a,s,u,c,f,r,e,e,a,i,t=this,e=t.im(),n=t.Vv.options.newTabVisible,i=t.Vv.options.tabNavigationVisible,r=t.Vv.options.useTouchLayout,o=t.ot(),a=t.getNavButtonBounds(),s=t.em(),u=t.cm(),e=(r=e?(c=a.x+2*a.width,c+=t.em()-t.rm()/2,0===t.rm()&&i&&(c-=t.em()),f=o.y,s):r?(e=o.x,a=o.width,n&&(e=o.x+o.width/2,a=o.width/2),c=e,f=o.y,a):(i=n?0:t.Bv/-2,c=(o.x+o.width)/2+i,f=5,s+4),u);return{x:c,y:f,width:r,height:e}},v.prototype.fm=function(){var t,e,t=this,e;return t.im()?t.lm+t.$v[t.hm]>t.dm():t.lm+2*t.M2e[t.hm]>t.dm()},v.prototype.dm=function(){var t,e,t=this,e;return t.im()?t.ot().width-t.rm()-t.Jv()-t.Qv():t.ot().height-t.Yv()},v.prototype.vm=function(){return 6},v.prototype.mm=function(){return[u,c]},v.prototype.gm=function(){return this.tm()},v.prototype.pm=function(t,e){var n,i,n=this;t.save(),t.beginPath(),i=g.I.He(0,"gc-tabStripBackground").backgroundColor,n.bm=s(i),t.fillStyle=i,t.fillRect(e.x,e.y,e.width,e.height),t.restore()},v.prototype.ym=function(t,e){var n,i,i,r,o,a,s,u,n,i=this.Vv,i=i&&i.options.tabStripPosition,r=g.I.He(0,"gc-tabStripBackground").borderTopColor;t.save(),t.beginPath(),t.strokeStyle=r,i===p.TabStripPosition.bottom?(o=e.x,a=e.y,s=e.x+e.width,u=e.y+.5):i===p.TabStripPosition.top?(o=e.x,a=e.height-.5,s=e.x+e.width,u=e.y+e.height-.5):i===p.TabStripPosition.left?(o=e.x+e.width-.5,a=e.y,s=e.x+e.width-.5,u=e.y+e.height):i===p.TabStripPosition.right&&(o=e.x+.5,a=e.y,s=e.x+.5,u=e.y+e.height),t.moveTo(o,a),t.lineTo(s,u),t.stroke(),t.restore()},v.prototype.wm=function(t,e){var n=this;n.pm(t,e),n.ym(t,e)},v.prototype.Mm=function(t,e,n){var i,r,o,a,s,u,n,c,f,l,a,l,l,u,i=this,r,o=i.Vv.options.newTabVisible,a=i.im(),s=i.tm(),u=i.jv,n=n,c=0,f=u;a?(i.nm()&&(s-=i.em()),n+=a=i.Qv(),(l=e.x+e.width-i.rm()-i.Jv())<n&&((l=(n=l)-a)<s&&(n=(l=s)+u),i.Cm(t,l,0,a,e.height)),l=e.height):(u=i.em(),i.nm()&&(u=0),n=(e.width-s)/2-u,f=l=s),o&&i.Sm(t,n,0,f,l,-2===i.Tm)},v.prototype.Am=function(t,e,n,i){var r=this.Wv();this.Cm(t,i-r,0,r,e.height)},v.prototype.Im=function(t,e){var n,i,r,o,a,s,u,c,n=this,i=n.im(),r=n.xm,o=n.zv(),a=n.Yv(),s=n.Nm;i?(u=n.rm()/2+o/2,n.km(t,u,c=a/2,u+r,c+r,u+r,c-r,m.NavButtonDirection.left,f,1===s),n.km(t,u+=o,c,u-r,c+r,u-r,c-r,m.NavButtonDirection.right,f,2===s)):(u=(e.width-o)/2,c=e.height-a/2,n.km(t,u,c,u+r,c+r,u-r,c+r,m.NavButtonDirection.top,f,1===s),n.km(t,u+=o,c,u-r,c+r,u-r,c-r,m.NavButtonDirection.bottom,f,2===s))},v.prototype.Dm=function(t,e){var n,i,r,o,i,a,s,u,c,a,n=this,i=n.Vv.options,r=i.allSheetsListVisible,o=i.newTabVisible,i=i.tabNavigationVisible,a=n.im(),s=n.tm();n.nm()&&(s-=n.em()),u=0,c=10,a?(u=2*n.zv()+n.em(),0===n.rm()&&i&&(u-=n.em())):(a=o?n.em():n.em()/2,u=(e.width-s)/2+a),r!==p.AllSheetsListVisibility.hide&&n._m(t,u,10,-3===n.Tm)},v.prototype.Em=function(t,e){var n,n,i,i,r,n=this,i=n.rm(),r=g.I.He(0,"gc-tabStripResizeBarInner");n.Vv.options.showHorizontalScrollbar&&(t.beginPath(),t.rect(e.x+e.width-i,0,i,e.height),t.clip(),n=e.x+e.width-i/2,i=e.y+e.height/2,t.fillStyle=r.color,t.fillRect(n,i,2,2),t.fillRect(n,i-4,2,2),t.fillRect(n,i+4,2,2))},v.prototype.jm=function(t,e,n,i,r,o,a){var s,u,c,f,l,h,d,s,u,a,v,g,s=this,u=s.Vv,c=u.options.tabStripPosition,f=s.Om,l=s.Nv,h=s.xv,d=s.Rm,s=s.im(),u=u.sheetTabStyles.C2e(a),a=u&p.SheetTabState.active,v=u&p.SheetTabState.selected;t.save(),a&&v&&(t.fillStyle=l,c===p.TabStripPosition.bottom?t.fillRect(e,n,i,r-h):c===p.TabStripPosition.top?t.fillRect(e,n+h,i,r):c===p.TabStripPosition.left?t.fillRect(e+f,n,i-f,r):t.fillRect(e,n,i-f,r)),u&p.SheetTabState.selected?(t.fillStyle=l,c===p.TabStripPosition.bottom?t.fillRect(e,n+1,i,r-h):c===p.TabStripPosition.top?t.fillRect(e,n+h-1,i,r):u&p.SheetTabState.active?c===p.TabStripPosition.left?t.fillRect(e+f,n,i-f,r+1):t.fillRect(e,n,i-f,r+1):t.fillRect(e+f,n,i-2*f,r+1)):u&p.SheetTabState.active&&(t.fillStyle=l,c===p.TabStripPosition.bottom?t.fillRect(e,n,i,1):c===p.TabStripPosition.top?t.fillRect(e,n+r,i,1):c===p.TabStripPosition.left?t.fillRect(e+f,n,i-f,r+1):t.fillRect(e,n,i-f,r+1)),t.fillStyle=o,s?c===p.TabStripPosition.bottom?t.fillRect(e+d,n+(g=a?d-1:d),i-2*d+1,r-2*d):t.fillRect(e+d,n+(g=a?d+1:d),i-2*d+1,r-2*d):u&p.SheetTabState.active?c===p.TabStripPosition.left?t.fillRect(e+f,n,i-f,r+1):t.fillRect(e,n,i-f,r+1):t.fillRect(e+f,n,i-2*f,r+1),t.restore()},v.prototype.Bm=function(t,e,n,i,r,o,a){var s,u,c,f,l,s,u,s=this,u=s.Vv,c=u.options.tabStripPosition,f=s.xv,l=s.Om,s=s.im(),u=u.sheetTabStyles.C2e(a);t.save(),s?(t.beginPath(),t.lineWidth=1,t.strokeStyle=o,u&p.SheetTabState.active?c===p.TabStripPosition.bottom?(t.moveTo(e+.5,n),t.lineTo(e+.5,n+r-f),t.moveTo(e+i+.5,n),t.lineTo(e+i+.5,n+r-f)):c===p.TabStripPosition.top&&(t.moveTo(e+.5,n+f),t.lineTo(e+.5,n+r),t.moveTo(e+i+.5,n+f),t.lineTo(e+i+.5,n+r)):(t.moveTo(e+.5,n+f),t.lineTo(e+.5,n+r-f),t.moveTo(e+i+.5,n+f),t.lineTo(e+i+.5,n+r-f))):(t.beginPath(),t.lineWidth=1,t.strokeStyle=o,u&p.SheetTabState.active?c===p.TabStripPosition.left?(t.moveTo(e+l,n+.5),t.lineTo(e+l+i,n+.5),t.moveTo(e+l,n+r+.5),t.lineTo(e+l+i,n+r+.5)):(t.moveTo(e,n+.5),t.lineTo(e+i-l,n+.5),t.moveTo(e,n+r+.5),t.lineTo(e+i-l,n+r+.5)):(t.moveTo(e+l,n+.5),t.lineTo(e-l+i,n+.5),t.moveTo(e+l,n+r+.5),t.lineTo(e-l+i,n+r+.5))),t.stroke(),t.restore()},v.prototype.Lm=function(t,e,n,i,r,o,a){var s,u,c,f,s,l,s=this,u=s.Vv,c=u.options.tabStripPosition,f=s.xv,s=s.Om,l;u.sheetTabStyles.C2e(a)&p.SheetTabState.selected&&(t.save(),t.beginPath(),t.strokeStyle=o,t.lineWidth=2,c===p.TabStripPosition.bottom?(t.moveTo(e,n+r-f),t.lineTo(e+i+1,n+r-f)):c===p.TabStripPosition.top?(t.moveTo(e,n+f),t.lineTo(e+i+1,n+f)):c===p.TabStripPosition.left?(t.moveTo(e+s,n),t.lineTo(e+s,n+r+1)):(t.moveTo(i-s,n),t.lineTo(i-s,n+r+1)),t.stroke(),t.restore())},v.prototype.S2e=function(t,e,s,n){var i,u,c,f,r,l,o,e,r,n,h,a,d,v,n,g,m,p,S,w,w,i=this;if(i.im())return{text:s,leftIcons:null==n?void 0:n.leftIcons,rightIcons:null==n?void 0:n.rightIcons};if(u=0,c={text:s},f={text:""},r=i.Rm+i.Om,l=e-2*r-2-1,o=n.font,e=n.leftIcons,r=n.rightIcons,n=i.T2e,h=n.iconSpace,a=n.iconTextSpace,d=n.defaultSize,v=i.Mt(t,i.A2e,o),n=function(t,e){for(var n,i,r,o,a,n,n,i=[],r=0;r<t.length;r++){if(n=(null!=(n=(o=t[r]).width)?n:d)+((a=0===r)?0:h),l<(n=u+n))return 0!==r||e||(f.hasEllipsis=!0),!0;i.push(o),n+v<=l?(f.hasEllipsis||(f.hasEllipsis=!0),e?(f.rightIcons=b([],i,!0),f.text=s):(f.leftIcons=b([],i,!0),f.text="")):e||0!==r||(f.hasEllipsis=!0),u=n}return e?c.rightIcons=i:c.leftIcons=i,!1},e&&0<e.length){if(g=n(e))return f;u+=a}else f.text=i.A2e;for(m="",p=0;p<s.length;p++){if(S=s[p],w=i.Mt(t,S,o),l<(w=u+w))return f;m+=S,w+v<=l&&(f.text=m+i.A2e,f.hasEllipsis)&&(f.hasEllipsis=!1),u=w}return r&&0<r.length&&(u+=a,g=n(r,!0))?f:c},v.prototype.x2e=function(t){var e,n,i,e=this,n=0;return e.im()?(i=e.Vv.options.tabStripPosition)===p.TabStripPosition.bottom?n-=t?2:1:n+=t?-1:1:n+=2,n},v.prototype.I2e=function(h,d,v,g,t,m){var p,S,w,t,b,C,y,p=this,S=t,w=p.BO(),t=p.T2e,b=t.defaultSize,C=t.iconSpace,y=p.im();return m.forEach(function(t,e){var n,t,i,r,o,a,s,n,t,u,c,f,l;w.getState(t.src)&&w.qh(t.src)&&(i=w.getImage(t.src),o=r=0,a=d,s=v,n=null!=(n=t.width)?n:b,t=null!=(t=t.height)?t:b,u=(g-t)/2+(y?p.x2e(!0):0),c=void 0,M.msie&&((c=document.createElement("div")).appendChild(i),document.body.appendChild(c)),f=i.width,l=i.height,M.msie&&(c.removeChild(i),document.body.removeChild(c)),h.drawImage(i,0,0,f,l,a+S,s+u,n,t),S=S+n+(e===m.length-1?0:C))}),S},v.prototype.N2e=function(t,e,n,i,r,o,a){var s,o,u,c,f,o,l,a,h,d,v,g,i,v,d,s=this,o=s.S2e(t,i,o,a),u=o.leftIcons,c=o.rightIcons,f=o.text,o=o.hasEllipsis,l=a.font,a=a.foreColor,h=s.T2e.iconTextSpace,d=s.im(),v=d?s.kv:s.Rm+s.Om,g,i=i-v-(d?s.Dv:s.Rm+s.Om)-(d?0:3),v=v+(d?0:2),d=r/2+s.x2e();t.save(),t.beginPath(),t.rect(e+v,n,i,r),t.clip(),u&&(v=s.I2e(t,e,n,r,v,u)),t.font=null!=l?l:t.font,t.fillStyle=a,t.textBaseline="middle",0<f.length&&(u&&0<u.length&&(v+=h),t.fillText(f,e+v,n+d),v+=t.measureText(f).width),c&&(0<f.length&&(v+=h),v=s.I2e(t,e,n,r,v,c)),o&&t.fillText(s.A2e,e+v,n+d),t.restore()},v.prototype.Hm=function(t,e,n,i,r,o,a){var s,u,c,a,s=this,u=a.composedStyle,c=a.borderLeftColor,a=a.borderBottomColor;s.jm(t,e,n,i,r,u.backColor,o),s.Bm(t,e,n,i,r,c,o),s.Lm(t,e,n,i,r,a,o),s.N2e(t,e,n,i,r,o,u)},v.prototype.km=function(t,e,n,i,r,o,a,s,u,c){var f,l,h,d,v,c,f;t.save(),f=this,l=s===m.NavButtonDirection.left||s===m.NavButtonDirection.top,h=p.VisualState.highlight,c&&(h=p.VisualState.hover),l?(s===m.NavButtonDirection.left?e-=2:n-=2,-1===(d=f.Vm(f.om))&&(h=p.VisualState.normal)):(s===m.NavButtonDirection.right?e+=2:n+=2,-1===(v=f.Ym(f.Zm()))&&(h=p.VisualState.normal)),c=g.I.He(h,"gc-navButton-"+g.I.Ee(h)),t.strokeStyle=this.Wm(c.borderTopColor),t.beginPath(),f=l?1:-1,s===m.NavButtonDirection.left||s===m.NavButtonDirection.right?(t.moveTo(e-.5,n),t.lineTo(e-.5,n+1),t.moveTo(e+f-.5,n-1),t.lineTo(e+f-.5,n+2),t.moveTo(e+2*f-.5,n-2),t.lineTo(e+2*f-.5,n+3),t.moveTo(e+3*f-.5,n-3),t.lineTo(e+3*f-.5,n+4)):s!==m.NavButtonDirection.top&&s!==m.NavButtonDirection.bottom||(t.moveTo(e,n-.5),t.lineTo(e+1,n-.5),t.moveTo(e-1,n+f-.5),t.lineTo(e+2,n+f-.5),t.moveTo(e-2,n+2*f-.5),t.lineTo(e+3,n+2*f-.5),t.moveTo(e-3,n+3*f-.5),t.lineTo(e+4,n+3*f-.5)),t.stroke(),t.restore()},v.prototype.Sm=function(t,e,n,i,r,o){var a,s,u,o,a=this;t.save(),t.beginPath(),s=(r-2*a.Qm)/2,u=p.VisualState.highlight,o&&(u=p.VisualState.hover),o=g.I.He(u,"gc-tabStripNewTab-"+g.I.Ee(u)),t.lineWidth=1.5,t.strokeStyle=a.Wm(o.borderTopColor),t.arc(e+i/2,n+r/2,s,0,2*Math.PI),t.stroke(),t.beginPath(),t.lineWidth=2,t.moveTo(e+i/2-4,n+r/2),t.lineTo(e+i/2+4,n+r/2),t.moveTo(e+i/2,n+r/2-4),t.lineTo(e+i/2,n+r/2+4),t.stroke(),t.restore()},v.prototype._m=function(t,e,n,i){var r,o,a,s,i,r=this,o=15,a=5;r.nm()&&(o=0),t.save(),t.beginPath(),s=p.VisualState.highlight,i&&(s=p.VisualState.hover),i=g.I.He(s,"gc-tab-strip-all-sheets-"+g.I.Ee(s)),t.strokeStyle=r.Wm(i.borderTopColor),t.lineWidth=2,t.moveTo(e,n),t.lineTo(e+o,n),t.moveTo(e,n+5),t.lineTo(e+o,n+5),t.moveTo(e,n+10),t.lineTo(e+o,n+10),t.stroke(),t.restore()},v.prototype.Cm=function(t,e,n,i,r){var o,a,a;t.save(),t.beginPath(),o=p.VisualState.highlight,5!==(a=this.Nm)&&6!==a||(o=p.VisualState.hover),a=g.I.He(o,"gc-navMoreButton-"+g.I.Ee(o)),t.fillStyle=this.Wm(a.borderTopColor),t.fillRect(e+i/2,n+r/2,2,2),t.fillRect(e+i/2-4,n+r/2,2,2),t.fillRect(e+i/2+4,n+r/2,2,2),t.restore()},v.prototype.Wm=function(t){var e=s(t),n=this.bm;return e.a<=.01?a(n):o.Km(n,e)?a(e):t},e.Gv=v},"./dist/core/workbook/sheettab2007.js":function(t,e,n){"use strict";var i,b,r,o,M,k,C,u,T,y,x,G,B,v,a,I,n,h,s,c,f;function l(t){var t,e,t=f.call(this,t)||this,e=t;return e.kv=12,e.Dv=8,e._v=3,e.Ev=12,e.Rv=48,e.Bv=15,e.Lv=28,e.Fv=5,e._font="10pt Arial",t}i=this&&this.__extends||(c=function(t,e){return(c=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(t,e){t.__proto__=e}:function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])}))(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}c(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),b=this&&this.__spreadArray||function(t,e,n){if(n||2===arguments.length)for(var i=0,r=e.length,o;i<r;i++)!o&&i in e||((o=o||Array.prototype.slice.call(e,0,i))[i]=e[i]);return t.concat(o||Array.prototype.slice.call(e))},Object.defineProperty(e,"__esModule",{value:!0}),e.Jm=void 0,r=n("./dist/core/core.ns.js"),o=n("Common"),M=n("./dist/core/util/common.js"),k=n("./dist/core/workbook/sheettabbase.js"),C=n("./dist/core/core.enum.js"),u=n("./dist/core/worksheet/stylehelper.js"),T=M.mt.ri,y=M.mt.Tt,x=null,G=Math.min,B=Math.max,v="#92A5C7",a="newSheet",I="linear-gradient",n=new o.Common.ResourceManager(r.SR,"Sheets"),h=n.getResource.bind(n),f=k.Hv,i(l,f),l.prototype.zv=function(){var t,e,n,t=this.Vv,e=t&&t.options,n=0;return n=e&&e.tabNavigationVisible?t.Xm()*(e.useTouchLayout?2:1):n},l.prototype.Yv=function(){var t=this.Vv;return t&&t.options.tabNavigationVisible?t.Xm():0},l.prototype.tm=function(){var t,e,n,t=this,e;return t.im()?4*t.zv()+t.qm()+t.em():(n=t.cm(),t.nm()&&(n=0),Math.max(t.Jv(),n))},l.prototype.qm=function(){var t,e=this.Vv;return e&&e.options.tabNavigationVisible?2:0},l.prototype.getResizeBarBounds=function(){var t,e,t=this,e=t.ot();return{x:e.x+e.width-t.rm(),y:x,width:t.rm(),height:x}},l.prototype.getNavButtonBounds=function(){var t,e,n,i,r,o,a,s,o,u,t,t=this,e,o=t.im()?(n=0,i=x,r=t.zv(),x):(o=t.ot(),u=t.Yv(),t=t.zv(),n=o.width/2-2*t,i=o.height-u,r=t,u),a=0,s=4;return{x:n,y:i,width:r,height:o,startIndex:0,endIndex:4}},l.prototype.getSheetTabBounds=function(){var t,e,t=this,e=t.tm();return t.nm()&&(e-=t.em()),{x:e,y:x,height:x,secondMoreTabWidth:0,moreTabPos:0}},l.prototype.getPreMoreTabBounds=function(){var t,e,t=this,e=t.tm();return t.nm()&&(e-=t.em()),{x:e,width:t._v+t.Fv}},l.prototype.getAllSheetsBounds=function(){var t,e,n,i,r,o,a,s,u,c,f,r,e,e,a,i,t=this,e=t.im(),n=t.Vv.options.newTabVisible,i=t.Vv.options.tabNavigationVisible,r=t.Vv.options.useTouchLayout,o=t.ot(),a=t.getNavButtonBounds(),s=t.em(),u=t.cm(),e=(r=e?(c=a.x+4*a.width,c+=t.em()/2-t.rm()/2,0===t.rm()&&i&&(c-=t.em()/2),f=o.y,s):r?(e=o.x,a=o.width,n&&(e=o.x+o.width/2,a=o.width/2),c=e,f=o.y,a):(i=n?0:t.Bv/-2,c=(o.x+o.width)/2+i,f=5,s+4),u);return{x:c,y:f,width:r,height:e}},l.prototype.fm=function(){var t,e,t=this,e;return t.im()?t.lm+t.$v[t.hm]+t.Jv()>t.dm():t.lm+2*t.M2e[t.hm]>t.dm()},l.prototype.dm=function(){var t,e,t=this,e;return t.im()?t.ot().width-t.rm():t.ot().height-t.Yv()},l.prototype.vm=function(){var t;return this.im()?1:4},l.prototype.mm=function(){return[a]},l.prototype.gm=function(){var t,e,n,t=this,e=t.im(),n=t.tm();return n=e&&(n+=t.ot().height,t.Vv.options.newTabVisible)?(n+=t.Jv())+t._v:n},l.prototype.wm=function(t,e){var n,i,r,i,o,a,s,u;if(t.save(),t.beginPath(),n=t.createLinearGradient(e.x,e.y,e.width,e.height),r=(i=M.I.He(0,"gc-tabStripBackground"))&&i.backgroundImage,i=i&&i.backgroundColor,r&&-1!==r.indexOf(I))for(a=0,s=(o=T(r)).length;a<s;a++)u=o[a],n.addColorStop(u.point,u.color);else i&&(n.addColorStop(0,"#DDDDDD"),n.addColorStop(1,i));t.fillStyle=n,t.fillRect(e.x,e.y,e.width,e.height),t.restore()},l.prototype.k2e=function(t,e,n,i){var r,o,r,a,o,t,s,u,c,f,r=this,o=r.im(),r=r.ot(),a=o?t.createLinearGradient(r.x+.7*r.height,r.y+0,.7*r.height,r.height):t.createLinearGradient(r.x+.7*n,e,.7*n,e+n),o=i.backgroundImage,t=i.backgroundColor;if(o&&-1!==o.indexOf("linear-gradient"))for(u=0,c=(s=T(o)).length;u<c;u++)f=s[u],a.addColorStop(f.point,f.color);else t&&a.addColorStop(0,t);return a},l.prototype._2e=function(t,e,n){var i,r,o,o,a,t,e,s,i=this,r=-2===i.Tm,o=r?C.VisualState.hover:C.VisualState.normal,o=M.I.He(o,"gc-tab-"+M.I.Ee(o)),a=M.I.He(C.VisualState.normal,"gc-tab-"+M.I.Ee(C.VisualState.normal)),t=i.k2e(t,e,n,o),e=i._font;return{composedStyle:{backColor:t,font:e=r?u.W.ii(e,"bold"):e,foreColor:s=i.Um(o.color)},borderLeftColor:null==a?void 0:a.borderLeftColor,borderBottomColor:null==a?void 0:a.borderBottomColor}},l.prototype.Mm=function(t,e,n){var i,r,o,a,s,r,u,c,f,l,a,o,n,i=this,r=i.Vv,o=h().NewTab,a=i.im(),s;r.options.newTabVisible&&(f=c=void(u=r=0),l=-2===i.Tm,a?(t.font=i._font,i.Rv=t.measureText(o).width+i.kv,r=n,c=i.Jv(),f=e.height,a=i._2e(t,0,f),i.Hm(t,r,0,c,f,void 0,a)):(o=i.em(),i.nm()&&(o=0),n=k.NEW_TAB_SIZE_ASIDE,i.Rv=n,r=(e.width-n)/2-o,i.$m(t,r,0,c=n,f=n,l)))},l.prototype.$m=function(t,e,n,i,r,o){var a,a,s,s,o,u,c,f,l,h,a=this;if(t.save(),t.beginPath(),a=(r-2*a.Qm)/2,s=C.VisualState.normal,o&&(s=C.VisualState.hover),s=M.I.He(s,"gc-tab-"+M.I.Ee(s)),(o=o?s.backgroundColor:s.backgroundImage)&&-1!==o.indexOf(I))for(u=t.createLinearGradient(e+.7*r,n+0,.7*r,r),f=0,l=(c=T(o)).length;f<l;f++)h=c[f],u.addColorStop(h.point,h.color);else u=o;t.lineWidth=1.5,t.strokeStyle=u,t.arc(e+i/2,n+r/2,a,0,2*Math.PI),t.stroke(),t.beginPath(),t.lineWidth=2,t.moveTo(e+i/2-4,n+r/2),t.lineTo(e+i/2+4,n+r/2),t.moveTo(e+i/2,n+r/2-4),t.lineTo(e+i/2,n+r/2+4),t.stroke(),t.restore()},l.prototype.Am=function(t,e,n,i){var r,r,o,o,r,a,o,n,s,u,n,r,o,o,a=this,o=a.Vv,n=n-1,s="",u=a.D2e(t,0,"",n),n=a.Vv.e2(n);n&&(r=null==(r=null==(r=o.sheetTabStyles.all()[n.name()])?void 0:r[C.SheetTabState.normal])?void 0:r.backColor,o=null==(o=null==(o=o.options.defaultSheetTabStyles)?void 0:o[C.SheetTabState.normal])?void 0:o.backColor,o=n?M.Pf.vl(n,null!=(r=null!=r?r:o)?r:n.R2e()):void 0)&&(u.composedStyle.backColor=o),a.Hm(t,i,0,a.Fv,e.height,"",u)},l.prototype.Im=function(t,e){var n,i,r,o,a,s,u,c,f,n=this,i=n.im(),r=n.tm(),o=n.xm,a=n.zv(),s=n.Yv(),u=n.Nm;t.fillStyle=v,i?t.fillRect(e.x,e.y,r-n.em()-2,e.height):t.fillRect(e.x,e.height-s,e.width,s),i?(n.km(t,c=a/2,f=s/2,c+o,f+o,c+o,f-o,k.NavButtonDirection.left,c-o,0===u),n.km(t,c+=a,f,c+o,f+o,c+o,f-o,k.NavButtonDirection.left,x,1===u),n.km(t,c+=a,f,c-o,f+o,c-o,f-o,k.NavButtonDirection.right,x,2===u),n.km(t,c+=a,f,c-o,f+o,c-o,f-o,k.NavButtonDirection.right,c+4,3===u)):(c=e.width/2-1.5*a,f=e.height-s/2,n.km(t,c,f,c+o,f+o,c-o,f+o,k.NavButtonDirection.top,f-o,0===u),n.km(t,c+=a,f,c+o,f+o,c-o,f+o,k.NavButtonDirection.top,x,1===u),n.km(t,c+=a,f,c+o,f-o,c-o,f-o,k.NavButtonDirection.bottom,x,2===u),n.km(t,c+=a,f,c+o,f-o,c-o,f-o,k.NavButtonDirection.bottom,f+o,3===u))},l.prototype.Dm=function(t,e){var n,i,r,i,o,a,s,u,o,n=this,i=n.Vv.options,r=i.allSheetsListVisible,i=i.newTabVisible,o=n.im(),a=n.tm();n.nm()&&(a-=n.em()),u=s=0,u=o?(s=4*n.zv()+1,5):(o=i?n.em():n.em()/2,s=(e.width-a)/2+o,10),r!==C.AllSheetsListVisibility.hide&&n._m(t,s,u,-3===n.Tm)},l.prototype._m=function(t,e,n,i){var r,o,a,s,u,c,u,f,l,h,d,v,g,m,l,f,s,a,p,S,w,c;if(t.save(),t.beginPath(),o=(r=this).im(),a=r.ot(),s=r.em(),c=(u=M.I.He)(4,"gc-all-sheets-button-hover"),f=(u=u(0,"gc-all-sheets-button-normal"))&&u.backgroundColor,(l=u&&u.backgroundImage)&&-1!==l.indexOf(I))for(h=t.createLinearGradient(a.x+.7*a.height,a.y+0,.7*a.height,a.height),v=0,g=(d=T(l)).length;v<g;v++)m=d[v],h.addColorStop(m.point,m.color);if(o&&(i?(t.fillStyle=c.backgroundColor,t.fillRect(e+2,a.y+2,s-4,a.height-4)):(h?t.fillStyle=h:f&&(t.fillStyle=f),t.fillRect(e-s/2,a.y+1,r.cm(),a.height-2))),o)t.strokeStyle=(i?c:u).color;else{if(l=C.VisualState.normal,i&&(l=C.VisualState.hover),m=void 0,f=M.I.He(l,"gc-all-sheets-button-"+M.I.Ee(l)),(s=i?f.backgroundColor:f.backgroundImage)&&-1!==s.indexOf(I))for(a=r.em(),m=t.createLinearGradient(e+.7*a,n+0,.7*a,a),v=0,g=(d=T(s)).length;v<g;v++)p=d[v],m.addColorStop(p.point,p.color);else m=s;t.strokeStyle=m}c=o?(S=3,w=12,4):(S=0,w=15,5),r.nm()&&(S=c=w=0),t.stroke(),t.lineWidth=1,t.moveTo(e+S,n),t.lineTo(e+w,n),t.moveTo(e+S,n+c),t.lineTo(e+w,n+c),t.moveTo(e+S,n+2*c),t.lineTo(e+w,n+2*c),t.stroke(),t.fill(),t.restore()},l.prototype.Em=function(t,e){var n,i,i,n,r,o,r,n=this,i=n.Vv,n=n.rm(),r=M.I.He,o=r(4,"gc-tabStripResizeBarInner"),r=r(0,"gc-tabStripResizeBarOuter");i.options.showHorizontalScrollbar&&(i=e.x+e.width-n,t.fillStyle=r.backgroundColor,t.fillRect(i,e.y,n,e.height),t.fillStyle=o.backgroundColor,t.fillRect(1+i,e.y+1,n-2,e.height-2),t.fillStyle=o.color,t.fillRect(i+n/2-1,e.y+4,2,e.height-8))},l.prototype.S2e=function(t,e,s,n){var i,u,c,f,r,r,l,o,e,r,n,h,a,d,v,n,g,m,p,S,w,w,i=this;if(i.im())return{text:s,leftIcons:null==n?void 0:n.leftIcons,rightIcons:null==n?void 0:n.rightIcons};if(u=0,c={text:s},f={text:""},r=i.Om*(i.Vv.options.tabStripPosition===C.TabStripPosition.right?1:2),r=i.Rm+r,l=e-2*r,o=n.font,e=n.leftIcons,r=n.rightIcons,n=i.T2e,h=n.iconSpace,a=n.iconTextSpace,d=n.defaultSize,v=i.Mt(t,i.A2e,o),n=function(t,e){for(var n,i,r,o,a,n,n,i=[],r=0;r<t.length;r++){if(n=(null!=(n=(o=t[r]).width)?n:d)+((a=0===r)?0:h),l<(n=u+n))return 0!==r||e||(f.hasEllipsis=!0),!0;i.push(o),n+v<=l?(f.hasEllipsis||(f.hasEllipsis=!0),e?(f.rightIcons=b([],i,!0),f.text=s):(f.leftIcons=b([],i,!0),f.text="")):e||0!==r||(f.hasEllipsis=!0),u=n}return e?c.rightIcons=i:c.leftIcons=i,!1},e&&0<e.length){if(g=n(e))return f;u+=a}for(m="",p=0;p<s.length;p++){if(S=s[p],w=i.Mt(t,S,o),l<(w=u+w))return f;m+=S,w+v<=l&&(f.text=m+i.A2e,f.hasEllipsis)&&(f.hasEllipsis=!1),u=w}return r&&0<r.length&&(u+=a,g=n(r,!0))?f:c},l.prototype.j2e=function(t,e,n,i,r,o,a){var s,u,c,f,l,h,u,a,l,d,s,s=this,u=s.Vv,c=u.sheetTabStyles.C2e(a),f=u.options.tabStripPosition,l=u.sheets,h,u=u.getSheetPosition(a)===l.length-1,a=s.eg,l=s.Om,d=s.xm,s=s.im();t.save(),t.beginPath(),s?f===C.TabStripPosition.bottom?(t.moveTo(e,n),t.lineTo(e,n+r-a),t.arcTo(e,n+r,e+i,n+r,a),t.lineTo(e+i,n+r),t.lineTo(e+i+r,n),c&C.SheetTabState.active||t.lineTo(e,n)):(t.moveTo(e,n+r),t.lineTo(e,n-a),t.arcTo(e,n,e+i,n,a),t.lineTo(e+i,n),t.lineTo(e+i+r,n+r),c&C.SheetTabState.active||t.lineTo(e,n+r)):f===C.TabStripPosition.left?(t.moveTo((e+=l)+(i-=l),n),t.lineTo(e+a,n),t.arcTo(e,n,e,n+a,a),t.lineTo(e,n+r-a),t.arcTo(e,n+r,e+a,n+r,a),u?t.lineTo(e+i,n+r):(t.lineTo(e+i-d,n+r),t.lineTo(e+i,n+r+d)),c&C.SheetTabState.active||t.lineTo(e+i,n)):(i-=l,t.moveTo(e,n),t.lineTo(e+i-a,n),t.arcTo(e+i,n,e+i,n+a,a),t.lineTo(e+i,n+r-a),t.arcTo(e+i,n+r,e+i-a,n+r,a),u?t.lineTo(e,n+r):(t.lineTo(e+d,n+r),t.lineTo(e,n+r+d)),c&C.SheetTabState.active||t.lineTo(e,n)),t.fillStyle=o,t.fill(),t.strokeStyle=v,t.stroke(),t.restore()},l.prototype.I2e=function(h,d,v,g,t,m){var e,p,S,t,w,b,e=this,p=t,S=e.BO(),t=e.T2e,w=t.defaultSize,b=t.iconSpace;return m.forEach(function(t,e){var n,t,i,r,o,a,s,n,t,u,c,f,l;S.getState(t.src)&&S.qh(t.src)&&(i=S.getImage(t.src),a=d,s=v,n=null!=(n=t.width)?n:w,t=null!=(t=t.height)?t:w,u=(g-t)/2,c=void(o=r=0),y.msie&&((c=document.createElement("div")).appendChild(i),document.body.appendChild(c)),f=i.width,l=i.height,y.msie&&(c.removeChild(i),document.body.removeChild(c)),h.drawImage(i,0,0,f,l,a+p,s+u,n,t),p=p+n+(e===m.length-1?0:b))}),p},l.prototype.N2e=function(t,e,n,i,r,o,a,s){var u,o,c,f,l,o,h,a,d,v,g,g,m,i,s,m,u=this,o=u.S2e(t,i,o,a),c=o.leftIcons,f=o.rightIcons,l=o.text,o=o.hasEllipsis,h=a.font,a=a.foreColor,d=u.T2e.iconTextSpace,v=u.im(),g=u.Om*(u.Vv.options.tabStripPosition===C.TabStripPosition.right?1:2),g=v?u.kv:u.Rm+g,m=v?u.Dv:u.Rm+u.Om,i=i-g-(s?0:m),s=g,m=r/2+(v?0:2);t.save(),t.beginPath(),t.rect(e+s,n,i,r),t.clip(),c&&(s=u.I2e(t,e,n,r,s,c)),t.font=null!=h?h:t.font,t.fillStyle=a,t.textBaseline="middle",0<l.length&&(c&&0<c.length&&(s+=d),t.fillText(l,e+s,n+m),s+=t.measureText(l).width),f&&(0<l.length&&(s+=d),s=u.I2e(t,e,n,r,s,f)),o&&t.fillText(u.A2e,e+s,n+m),t.restore()},l.prototype.Hm=function(t,e,n,i,r,o,a){var s,u,c,u=this,c=null!=o?o:h().NewTab;u.j2e(t,e,n,i,r,null==(s=null==a?void 0:a.composedStyle)?void 0:s.backColor,c),u.N2e(t,e,n,i,r,c,null==a?void 0:a.composedStyle,!o)},l.prototype.km=function(t,e,n,i,r,o,a,s,u,c){var f,l,h,d,f,v,g,v,m,p,S,w,b,C,y;if(t.save(),l=(f=this).im(),h=s===k.NavButtonDirection.left||s===k.NavButtonDirection.top,d=f.ot(),f=f.zv(),g=(v=M.I.He)(4,"gc-navButton-hover"),m=(v=v(0,"gc-navButton-normal"))&&v.backgroundColor,(p=v&&v.backgroundImage)&&-1!==p.indexOf(I))for(S=t.createLinearGradient(d.x+.7*d.height,d.y+0,.7*d.height,d.height),b=0,C=(w=T(p)).length;b<C;b++)y=w[b],S.addColorStop(y.point,y.color);l&&(c?(t.fillStyle=g.backgroundColor,t.fillRect(e-f/2+2,d.y+2,f-4,d.height-4)):(S?t.fillStyle=S:m&&(t.fillStyle=m),t.fillRect(e-f/2,d.y+1,f,d.height-2))),t.fillStyle=l?(c?g:v).color:!c&&S||m,void 0!==u&&u!==x&&(s===k.NavButtonDirection.left||s===k.NavButtonDirection.right?t.fillRect(u,G(r,a),1,B(r,a)-G(r,a)):t.fillRect(G(i,o),u,B(i,o)-G(i,o),1)),h?s===k.NavButtonDirection.left?(e-=2,i-=2,o-=2):(n-=2,r-=2,a-=2):s===k.NavButtonDirection.right?(e+=2,i+=2,o+=2):(n+=2,r+=2,a+=2),t.beginPath(),t.moveTo(e,n),t.lineTo(i,r),t.lineTo(o,a),t.lineTo(e,n),t.fill(),t.restore()},e.Jm=l},"./dist/core/workbook/sheettabStyleManager.js":function(t,e,n){"use strict";var s,u,i,c,f,r,o;function a(t){this.Vv=t,this.O2e={}}s=this&&this.__assign||function(){return(s=Object.assign||function(t){for(var e,n,i,r,n=1,i=arguments.length;n<i;n++)for(r in e=arguments[n])Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t}).apply(this,arguments)},u=this&&this.__spreadArray||function(t,e,n){if(n||2===arguments.length)for(var i=0,r=e.length,o;i<r;i++)!o&&i in e||((o=o||Array.prototype.slice.call(e,0,i))[i]=e[i]);return t.concat(o||Array.prototype.slice.call(e))},Object.defineProperty(e,"__esModule",{value:!0}),i=n("Common"),c=n("./dist/core/core.enum.js"),f=n("./dist/core/worksheet/stylehelper.js"),r=i.Common.lt.ht,a.prototype.C2e=function(t){var e,n,t,i,e,e=this.Vv,n=e.getSheetPosition(t),t=e.Gm(t),i=c.SheetTabState.normal;return!r(t)&&(t.b2()&&(i|=c.SheetTabState.selected),e.w2.Tm===n&&(i|=c.SheetTabState.hover),e.ep()===n&&(i|=c.SheetTabState.active),e=t._gi,r(e)&&t.options.isProtected||e===c.SheetType.reportSheet&&t.Y3i())&&(i|=c.SheetTabState.protected),i},a.prototype.E2e=function(t){var e,n,n,n,e,n,e,n,e,n,e,n,i,r,n,i,n,o,e,a,t,r={},n=this.Vv,i=this.C2e(t),n=n.Gm(t),o=null!=(e=this.Vv.options.defaultSheetTabStyles)?e:{},e=n.R2e(),a=null!=(n=this.O2e[t])?n:o,t=function(t){var e,e,n,i,t,n=r.icons,i,t=(null==(e=a[t])?void 0:e.icons)&&0<a[t].icons.length?a[t].icons:null==(e=o[t])?void 0:e.icons;return t&&0<t.length?u(u([],null!=n?n:[],!0),t,!0):n};return i&c.SheetTabState.normal&&(r=s(s(s({},null!=(n=o[c.SheetTabState.normal])?n:{}),a[c.SheetTabState.normal]),{icons:t(c.SheetTabState.normal)}),e)&&!r.backColor&&(r.backColor=e),i&c.SheetTabState.protected&&(r=s(s(s(s({},r),null!=(n=o[c.SheetTabState.protected])?n:{}),a[c.SheetTabState.protected]),{icons:t(c.SheetTabState.protected)})),i&c.SheetTabState.selected&&(null!=(e=o[c.SheetTabState.selected])&&e.font||null!=(n=a[c.SheetTabState.selected])&&n.font||!r.font||(r.font=f.W.ii(r.font,"bold")),r=s(s(s(s({},r),null!=(e=o[c.SheetTabState.selected])?e:{}),a[c.SheetTabState.selected]),{icons:t(c.SheetTabState.selected)})),i&c.SheetTabState.active&&(null!=(n=o[c.SheetTabState.active])&&n.font||null!=(e=a[c.SheetTabState.active])&&e.font||!r.font||(r.font=f.W.ii(r.font,"bold")),r=s(s(s(s({},r),null!=(n=o[c.SheetTabState.active])?n:{}),a[c.SheetTabState.active]),{icons:t(c.SheetTabState.active)})),i&c.SheetTabState.hover&&(null!=(e=o[c.SheetTabState.hover])&&e.font||null!=(n=a[c.SheetTabState.hover])&&n.font||!r.font||(r.font=f.W.ii(r.font,"bold")),r=s(s(s(s({},r),null!=(i=o[c.SheetTabState.hover])?i:{}),a[c.SheetTabState.hover]),{icons:t(c.SheetTabState.hover)})),r},a.prototype.L2e=function(t){delete this.O2e[t],this.F2e()},a.prototype.all=function(t){var e,n,e=this;return t&&0!==t.length&&0!==Object.keys(this.O2e).length?(n={},t.forEach(function(t){n[t]=e.O2e[t]}),n):this.O2e},a.prototype.B2e=function(t){var e=t;return e=t&&0!==t.length?e:this.Vv.qv().map(function(t){return t.name()})},a.prototype.add=function(e,n,t){var i,r,i=this,r;this.B2e(t).forEach(function(t){i.O2e[t]||(i.O2e[t]={}),i.O2e[t][e]=n}),this.F2e()},a.prototype.remove=function(n,t){var i,e,i=this,e;this.B2e(t).forEach(function(t){var e,e,e,e;null!=(e=null==(e=i.O2e)?void 0:e[t])&&delete e[n],0===Object.keys(null!=(e=null==(e=i.O2e)?void 0:e[t])?e:{}).length&&delete i.O2e[t]}),this.F2e()},a.prototype.clear=function(t){var e,n,e=this,n;this.B2e(t).forEach(function(t){delete e.O2e[t]}),this.F2e()},a.prototype.F2e=function(){this.Vv.w2.Cg()},a.prototype.L0=function(){this.Vv=null,this.O2e=null},e.default=a},"./dist/core/workbook/sheettabbase.js":function(h,t,e){"use strict";var g,n,i,C,y,d,m,M,r,v,A,p,k,L,D,j,S,a,T,w,b,f,O,x,G,e,o,s,u,c,V,Y,e,K,z,e,W,J,Z,Q,B,I,P,N,R,E,H,X,U,q,$,F,_,e,tt,et,n,i;function nt(t,e,n){t.ki(y.Events.SheetTabClick,{sheet:e,sheetName:e?e.name():T,sheetTabIndex:p(n)?-1:n})}function l(t){this.Zc=t,this.Kv=!1,this.Fv=0,this._v=0,this.Om=6,this.ig=3,this.eg=5,this.xm=5,this.Rm=3,this.Qm=7,this.A2e="...",this.buffer=null,this.T2e={defaultSize:16,iconSpace:2,iconTextSpace:4},this.nCe={};var t=this;t.Vv=T,t.hm=0,t.om=0,t.lm=70,t.Nm=-1,t.Tm=-1,t._font="",t.$v=[],t.M2e=[],t.rg=-1,t.og=-1,t.ag=T,t.ug=T,t.sg=0,t.cg(new y.Rect(0,0,200,28))}g=this&&this.__spreadArray||function(t,e,n){if(n||2===arguments.length)for(var i=0,r=e.length,o;i<r;i++)!o&&i in e||((o=o||Array.prototype.slice.call(e,0,i))[i]=e[i]);return t.concat(o||Array.prototype.slice.call(e))},Object.defineProperty(t,"__esModule",{value:!0}),t.Hv=t.NavButtonDirection=t.NEW_TAB_SIZE_ASIDE=void 0,n=e("./dist/core/core.ns.js"),i=e("Common"),C=e("./dist/core/util/domUtil.js"),y=e("./dist/core/util/common.js"),d=e("./dist/core/util/imageLoader.js"),m=e("./dist/core/worksheet/stylehelper.js"),M=e("./dist/core/core.enum.js"),r=i.Common.ft,v=y.mt.ri,A=y.mt.x0,p=i.Common.lt.ht,k=y.mt.En,L=y.mt.vt,D=y.mt.bt,j=parseInt,S=window,a=document,T=null,w=Math.max,b=Math.min,f=Math.pow,O=Math.round,x="px",G="none",o="mousedown"+(e=".gcTab"),s="mousemove"+e,u="mouseup"+e,c="mouseout"+e,V="dblclick"+e,Y="mousewheel"+e,K="mousemove"+(e=".spliter"),z="mouseup"+e,W="keydown"+(e=".tabNameEditor"),J="focus"+e,Z="blur"+e,Q="canvas",B="2d",I="resize",N="tab",R="newSheet",E="blank",H="allSheets",X="black",U="white",q=7,$=10,F=P="navButton",_="sheetTab",t.NEW_TAB_SIZE_ASIDE=28,e=new i.Common.ResourceManager(n.SR,"Sheets"),tt=e.getResource.bind(e),(i=et=t.NavButtonDirection||(t.NavButtonDirection={}))[i.left=0]="left",i[i.right=1]="right",i[i.top=2]="top",i[i.bottom=3]="bottom",l.prototype.getNewTabBounds=function(){var t,e,n,i,r,o,a,s,t,e,e,t=this,e=t.Vv.options.useTouchLayout,n=t.ot(),i=t.Jv(),r=(i-2*t.Qm)/2,t=e?(e=n.width,t.nm()||(e/=2),o=n.x,a=n.y,s=e,i):(e=(n.x+n.width-2*r)/2,t.nm()||(e-=t.em()),o=e,a=(n.y+i-2*r)/2,s=2*r);return{x:o,y:a,width:s,height:t}},l.prototype.getCanvas=function(){return this.fg},l.prototype.im=function(){var t,e,t,e=this.Vv.options.tabStripPosition;return e===M.TabStripPosition.bottom||e===M.TabStripPosition.top},l.prototype.hg=function(t){var e,n,i;t&&((n=(e=this).fg)&&e.L0(!0),i=k(Q),y.Bf.Wl(i,e.Vv),i.setAttribute("id",e.Zc),e.dg=e.vg(),e.mg(),t.appendChild(e.dg[0]),t.appendChild(i),e.fg=i,(0,C.GC$)(i).bind(o,function(t){return e.gg(t)}).bind(s,function(t){return e.pg(t)}).bind(u,function(t){return e.bg(t)}).bind(c,function(t){return e.yg(t)}).bind(V,function(t){return e.wg(t)}).bind(Y,function(t){return e.Mg(t)}),e.Cg(),l.et(e,"setHost"))},l.prototype.Sg=function(t){var e,t,e=this;(e.Vv=t)&&((t=t.options.font)&&0<t.length&&(e._font=t),e.mg())},l.prototype.Tg=function(t){var e=this.Vv;e.suspendPaint(),this.Ag(t),e.resumePaint()},l.prototype.Ag=function(t){var e,n,i,r,e=this,n=-1,i=e.Zm();if(!(i.length<=0))for(;;){if(n===(r=e.Ig().tabsInfo)[0].index)return;if(n=r[0].index,r[0].index>t)e.xg(i);else{if(!(r[r.length-1].index<t||r[r.length-1].index===t&&1<r.length))return;e.Ng(i)}}},l.prototype.ot=function(){var t=this.kg;return new y.Rect(t.x,t.y,t.width,t.height)},l.prototype.cg=function(t){var e=this.kg=new y.Rect(0,0,0,0);e.x=t.x,e.y=t.y,e.width=t.width,e.height=t.height},l.prototype.Jv=function(){var t,e,t,e;return this.Vv.options.newTabVisible?this.Rv:0},l.prototype.em=function(){var t,e,n,t,e,n;return this.Vv.options.allSheetsListVisible!==M.AllSheetsListVisibility.hide?this.Bv:0},l.prototype.cm=function(){var t,e,n,t,e,n;return this.Vv.options.allSheetsListVisible!==M.AllSheetsListVisibility.hide?this.Lv:0},l.prototype.Xv=function(){var t,e,n,t=this,e=t.ot(),n;return t.im()?e.x+e.width-t.rm():e.y+e.height-t.Yv()},l.prototype.tm=function(){return 0},l.prototype.rm=function(){var t,e,n,t=this,e=M.TabStripPosition.bottom,n=t.Vv;return(e=n?n.options.tabStripPosition:e)===M.TabStripPosition.bottom?t.Ev:0},l.prototype.Cg=function(){var t,e,n,i,n,r,t=this,e=t.Dg();e&&e.parentNode&&0!==(n=(0,C.GC$)(e.parentNode)).width()&&0!==n.height()&&(i=w(n.width(),0),n=w(n.height(),0),e.style.display=G,e.width=i,e.height=n,e.style.display="",e.style.width=i+x,e.style.height=n+x,i=e.clientWidth||e.width,n=e.clientHeight||e.height,r=t.ot(),t.cg(new y.Rect(r.x,r.y,i,n)),y.Bf.$l(e,i,n),t.repaint())},l.prototype.fm=function(){return!1},l.prototype.Yv=function(){return 0},l.prototype.dm=function(){return 0},l.prototype.vm=function(){return 0},l.prototype.mm=function(){return[]},l.prototype.gm=function(){return 0},l.prototype.vg=function(){return this.dg||(0,C.GC$)(k("div"))},l.prototype.mg=function(){var t,e,t,t,n,t=this,e=t.dg;e&&(n=void 0,(t=(t=t.Vv)?t.options.tabStripPosition:M.TabStripPosition.bottom)===M.TabStripPosition.bottom?n="gc-tab-indicator-bottom":t===M.TabStripPosition.top?n="gc-tab-indicator-top":t===M.TabStripPosition.left?n="gc-tab-indicator-left":t===M.TabStripPosition.right&&(n="gc-tab-indicator-right"),e.removeClass(),e.addClass(n))},l.prototype.L0=function(t){var e,n,i,e=this,n=e.fg;n&&(i=n.parentNode,(0,C.GC$)(n).unbind(o).unbind(s).unbind(u).unbind(V).unbind(c).unbind(Y),i)&&i.removeChild(n),(0,C.GC$)(e.dg).remove(),l.et(e,"dispose"),t||(e.Vv=T),e.MC&&(e.MC.L0(),e.MC=T)},l.prototype._g=function(t,e){var n,i,r,o,a,o,s,u,r,c,f,l,h,o,a,r,a,o,d,v,g,m,p,S,n=this,i=n.Vv,r=i.options.scrollbarAppearance===M.ScrollbarAppearance.mobile,o=i.options.showHorizontalScrollbar,a=n.ot();if(o&&!r&&(o=n.getResizeBarBounds(),i.options.showHorizontalScrollbar)&&t>o.x&&t<a.x+a.width)return{type:"resize",element:I};for(u=-1,r=(s=n.getNavButtonBounds()).startIndex,c=s.x,f=s.endIndex,l=["first","prevArrow","nextArrow","last","","prevButton","nextButton"],h=r;h<f;h++){if(c<t&&t<c+s.width){P=l[u=h];break}c+=s.width}if(-1!==u)return{type:F,element:P,index:h};if(c=(o=n.getAllSheetsBounds()).x,a=i.options.allSheetsListVisible,r=!0,n.nm()&&(r=!1),a!==M.AllSheetsListVisibility.hide&&c<=t&&t<c+o.width&&r)return{type:_,element:H,position:c,index:-1};if(c=(a=n.getPreMoreTabBounds()).x,o=0,-1!==(d=n.Vm(n.om))){if(c<=t&&t<c+a.width)return{type:F,element:P=l[5],index:5,position:c};o=n.Fv}if(v=n.getSheetTabBounds(),g=i.qv(),m=n.$v,p=n._v,S=0,c=v.x+o,-1<n.om)for(h=n.om;h<g.length&&h<m.length;h++)if(g[h].visible()===M.SheetTabVisible.visible){if(S=m[h],c<t&&t<c+S+p&&(0<v.moreTabPos&&t<v.moreTabPos||0===v.moreTabPos))return{type:_,element:N,index:h,position:c};c+=S+p}if(c>v.moreTabPos&&0<v.moreTabPos&&(c=v.moreTabPos),-1!==n.Ym(n.Zm())){if(c<t&&t<c+v.secondMoreTabWidth)return{type:F,element:P=l[6],index:6,position:c}}else if(c<t&&t<c+v.secondMoreTabWidth)return{element:E,position:c};return c+=v.secondMoreTabWidth,i.options.newTabVisible&&c<t&&t<c+n.Jv()?{type:_,element:R,position:c,index:-1}:{element:E}},l.prototype.Eg=function(t,e){for(var n,i,r,o,a,s,u,c,f,l,c,h,d,v,g,m,c,d,n=this,i=n.Vv,o=n.getNavButtonBounds(),a=-1,s=o.x,u=o.y,c=o.startIndex,f=o.endIndex,l=["first","prevArrow","nextArrow","last","","prevButton","nextButton"],r=c;r<f;r++){if(s<t&&t<s+o.width&&u<e&&e<u+o.height){P=l[a=r];break}s+=o.width}if(-1!==a)return{type:F,element:P,index:r};if(c=n.Jv(),h=i.options.allSheetsListVisible,d=n.cm(),v=!0,n.nm()&&(d=0,v=!1),u=w(c,d),g=i.qv(),m=n.M2e,-1<n.om)for(r=n.om;r<g.length&&r<m.length;r++)if(g[r].visible()===M.SheetTabVisible.visible){if(u<e&&e<u+m[r])return{type:_,element:N,index:r,position:u};u+=m[r]}return c=n.getNewTabBounds(),i.options.newTabVisible&&c.x<t&&t<c.x+c.width&&c.y<e&&e<c.y+c.height?{type:_,element:R,position:u,index:-1}:(d=n.getAllSheetsBounds(),h!==M.AllSheetsListVisibility.hide&&d.x<t&&t<d.x+d.width&&d.y<e&&e<d.y+d.height&&v?{type:_,element:H,position:u,index:-1}:u<e&&e<u+o.y?-1!==n.Ym(n.Zm())?{type:F,element:P=l[6],index:6,position:u}:{element:E,position:u}:{element:E})},l.prototype.hitTest=function(t,e){var n,i,n,n=this,i,n=n.im()?n._g(t,e):n.Eg(t,e);return n},l.prototype.gg=function(t){var e,n,n,i,r,i,o,o,r,e=this,n={e:t,r:T};return l.et(e,"preProcessMouseDown",n),p(n=n.r)?(i=(0,C.GC$)(e.Dg()).offset(),r=t.pageX-i.left,i=t.pageY-i.top,o=e.Vv.jg(),e.Og&&e.Rg(o,!1),r=(o=e.hitTest(r,i)).element,0===t.button&&(r===I?(e.Bg=!0,e.Lg=t.pageX,e.Fg()):r===P?e.Pg(o.index):r===N?(e.Gg(o.index,o.position,t),e.Ug(t,o)):r===R?e.Hg(o.position):r===H&&e.zg(t),e.Vg()),!(e.Yg=!0)):n},l.prototype.Vg=function(){var t,e,t,e=this.Vv.jg();e&&!e.isEditing()&&e.Zg()},l.prototype.zg=function(t){var e,n,e,n;return this.Vv.commandManager().execute({cmd:"showAllSheetsDialog",mouseEvent:t})},l.prototype.pg=function(t){var e,n,i,r,r,r,o,a,s,u,i,i,u,c,u,i,n,t,u,i,e=this,n=e.Vv,i=(0,y.jf)(n),r={e:t,r:T};if(l.et(e,"preProcessMouseMove",r),!p(r=r.r))return r;if(r=e.fg.style,o="default",a="w-resize",e.Wg&&!e.Qg&&10<(s=Math.sqrt(f(e.Wg.x-t.pageX,2)+f(e.Wg.y-t.pageY,2)))&&(e.Qg=!0),e.Bg)r.cursor=a,u=t.pageX-e.Lg,i=i.getHDockScrollbarWidth(),i=e.Vv.Kg.clientWidth-i,n.options.tabStripRatio=n.Jg()+u/i,u=e.rm()/i,c=1,n.Jg()<u?(n.options.tabStripRatio=u,e.Lg=e.rm()):1<=n.Jg()?(n.options.tabStripRatio=1,e.Lg=i):e.Lg=t.pageX,n.Xg();else if(e.Qg)e.qg(t.pageX,t.pageY),e.$g(t);else{if(e.Nm=-1,e.Tm=-1,u=(0,C.GC$)(e.Dg()).offset(),i=t.pageX-u.left,n=t.pageY-u.top,u=(t=e.hitTest(i,n)).element,e.Vv&&e.Vv.options.enableAccessibility&&(i=e.t2(t),e.Vv.n2(i)),""===u)return r.cursor=o,e.repaint(),!1;u===I?r.cursor=a:(r.cursor=o,u===P?e.Nm=t.index:u===N?e.Tm=t.index:u===R?e.Tm=-2:u===H&&(e.Tm=-3)),e.repaint()}return!1},l.prototype.t2=function(t){var e,n,i,r,t,e=tt(),n="",i=t.element;return i===I?n=e.ARIA_Resize:i===P?n=(r={first:e.ARIA_First,prevArrow:e.ARIA_PreviousArrow,nextArrow:e.ARIA_NextArrow,last:e.ARIA_Last,prevButton:e.ARIA_PreviousButton,nextButton:e.ARIA_NextButton})[P]||"":i===N?(t=this.Vv.e2(t.index).name(),n=e.ARIA_SheetTab+" "+t.replace(/([0-9]+)/," $1 ")):i===R?n=e.ARIA_NewSheet:i===E&&(n=e.ARIA_Blank),n},l.prototype.bg=function(t){var e,t,t,e=this,t={e:t,r:T};return l.et(e,"preProcessMouseUp",t),p(t=t.r)?(e.Bg&&(e.Bg=!1,e.Vv.Xg()),e.i2(),e.Qg&&(e.Qg=!1,e.r2.remove(),e.o2(),e.dg.hide()),e.Wg=T,e.a2(),e.u2(),!e.Yg||(e.Yg=!1)):t},l.prototype.yg=function(t){var e,t,t,n,i,e=this,t={e:t,r:T};return l.et(e,"preProcessMouseOut",t),p(t=t.r)?(e.a2(),n=e.Nm,e.Nm=-1,i=e.Tm,e.Tm=-1,e.Nm===n&&e.Tm===i||e.repaint(),!1):t},l.prototype.Fg=function(){var e=this;e.s2||((0,C.GC$)(a).bind(K,function(t){e.pg(t)}).bind(z,function(t){e.bg(t)}),e.c2(!0),e.s2=!0)},l.prototype.c2=function(t){var e,n,e,n=this.Vv.getActiveSheet();n&&(n.f2=t)},l.prototype.u2=function(){var t;this.s2&&((this.s2=!1,C.GC$)(a).unbind(K).unbind(z),t=this.Vv.getActiveSheet())&&delete t.f2},l.prototype.Pg=function(t,e){var n,i,r,n=this;n.a2(),(i=n.Zm()).length<=0||(r=200,0===(t%=4)?n.l2(i):1===t?(e||(n.h2=S.setTimeout(function(){n.Pg(1)},200)),n.xg(i)):2===t?(e||(n.h2=S.setTimeout(function(){n.Pg(2)},200)),n.Ng(i)):3===t&&n.d2(i))},l.prototype.Gg=function(t,e,n){var i,r,o,r,o,i=this,r=i.Vv,o=r.v2,r=r.e2(t),o=o&&o.sheetsState;o&&0===o[r.name()]?(i.ug!==T&&clearTimeout(i.ug),i.ug=window.setTimeout(function(){i.m2(t,e,n),i.c2(!0),i.ug=T,i.Vg()})):i.m2(t,e,n)},l.prototype.m2=function(t,e,n){var i,r,e,o,e,i=this,r=i.Vv;i.hm=t,i.lm=e,r.suspendPaint(),e=r.getActiveSheet(),(o=r.e2(t))&&o.isEditing()&&o!==e&&(e=e&&e.il&&e.il.rl,!o.ol(void 0,void 0,e))||(nt(r,o,t),i.g2(t,n),r.resumePaint(),i.repaint())},l.prototype.p2=function(t,e,n,i,r,o){var n={oldValue:n,newValue:i,sheetName:r,propertyName:"isSelected",cancel:!1,sheetIndex:o,sheetPosition:t.getSheetPosition(r)};t.ki(y.Events.SheetChanging,n),n.cancel||(e.b2(i),t&&t.w2&&t.w2.repaint(),delete n.cancel,t.ki(y.Events.SheetChanged,n))},l.prototype.Hg=function(t){var e,n,i,r,r,o,a,r,s,e=this,n=e.Vv,i=e.im(),r=n.getActiveSheet();if((!e.C2||e.C2(r))&&(nt(n,T,T),r=n.qv(),o=n.getSheetCount(),a=n.S2(n.T2(o)),r.forEach(function(t){t.b2(!1,!0)}),s={sheetName:r=a.name(),propertyName:"insertSheet",cancel:!1,sheetIndex:o,sheetPosition:n.getSheetPosition(r)},e.p2(n,a,!1,!0,r,o),n.ki(y.Events.SheetChanging,s),!s.cancel)){for(n.A2(o,1,a),n.ki(y.Events.SheetChanged,{sheetName:a.name(),propertyName:"insertSheet",sheetIndex:o,sheetPosition:n.getSheetPosition(a.name())}),e.hm=o,e.lm=t,n.I2(n.qv().length-1,1,!1,!0);e.hm>e.om&&(e.fm()||e.om<e.N2(-1));)e.k2(e.om)&&(e.lm-=(i?e.$v:e.M2e)[e.om]),e.om++;e.repaint()}},l.prototype.g2=function(t,e){var n,i,r,o,a,s,u,c,f,l,h,e,c,d,a,e,c,n=this,i=n.Vv,r=i.qv(),o=n.im(),a=i.getActiveSheet();n.D2&&!n.D2(a)||(s=!1,a&&a.il&&a.il.rl&&(s=!0),(u=!!e)&&(c=(l=y.mt.Qf())?e.metaKey:e.ctrlKey,f=e.shiftKey),t!==i.ep()?(c?(h=r[t]).b2()?h.b2(!1,!0):(h.b2(!0,!0),a&&!a.b2()&&a.b2(!0,!0)):f?(c=(e=i.jg())?i.getSheetPosition(e.name()):-1,d=r.slice(b(c,t),w(c,t)+1),r.forEach(function(t){t.visible()===M.SheetTabVisible.visible&&(-1!==d.indexOf(t)?t.b2()||t.b2(!0,!0):t.b2()&&t.b2(!1,!0))})):(a=r.every(function(t){return t.visible()!==M.SheetTabVisible.visible||t.b2()}),r[t].b2()&&!a||r.forEach(function(t){t.b2(!1,!0)}),(h=r[t]).b2()||h.b2(!0,!0),i.I2(t,1,s,!0)),e=n.N2(n.om),c=!1,c=o?n.lm+n.$v[n.hm]>n.dm():n.lm+n.M2e[n.hm]>=n.dm(),n.hm>n.om&&c&&-1!==e&&(n.om=e)):f&&r.forEach(function(t){var e,n,e=t.name(),n;i.getSheetPosition(e)!==i.ep()&&t.b2()&&t.visible()===M.SheetTabVisible.visible&&t.b2(!1,!0)}),n.hm<n.om&&(n.om=n.Vm(n.om)))},l.prototype.E2=function(t,e){var n,i,r,o,a,t,e,s,t,e,t,i,u,c,f,l,h,d,v,g,m,p,S,m,w,r,b,S,n=this,i=n.Vv,r=n.im(),o=i.options.tabStripPosition,a=j(y.I.fl("").zIndex),t=n.hitTest(t,e);if(t.element===N){if(e=n.hm,s=i.e2(e),t.index!==e)return;if(i.ki(y.Events.SheetTabDoubleClick,{sheet:s,sheetName:s.name(),sheetTabIndex:e}),!i.options.tabEditable)return!1;if((t=y.hi.ai())&&t.endEdit&&!t.endEdit())return;y.hi.F1(T),e=(0,C.GC$)(n.Dg()).offset(),t=i.j2(),i=(0,C.GC$)(t).offset(),u=(0,C.GC$)(t).width(),f=(c=k("input")).style,c.type="text",c.value=s.name(),c.setAttribute("contentEditable","true"),c.setAttribute("autocomplete","off"),f.position="absolute",f.margin="0px",f.padding="0px",v=d=h=l=void 0,g=s.name(),p=(m=n.nCe[g].composedStyle).font,S=m.leftIcons,m=m.foreColor,w=n.Mt(this.Dg().getContext(B),g,p),r?((r=0)<S.length&&(r=(b=S.reduce(function(t,e){var t;return null!==(t=t+e.width)?t:n.T2e.defaultSize},0)+(S.length-1)*n.T2e.iconSpace)+n.T2e.iconTextSpace),v=w+2,d=e.top-i.top+n.vm()-n.ig-1,l=e.left-i.left+n.lm+n.kv+r,f.height="20px"):(S=n.ot(),v=w+2,d=e.top-i.top+n.lm+n.vm()-n.ig-1,l=e.left-i.left+S.x+n.Om+n.Rm,o===M.TabStripPosition.left&&2007===a&&(l+=n.Om),o===M.TabStripPosition.right&&u<l+v&&(h=e.left+S.width-u+n.Om+n.Rm),f.height=(0,y.getFontHeightWithCanvas)(p,g)+x),h?f.right=h+x:l&&(f.left=l+x),f.top=d+x,f.width=v+x,f.backgroundColor=U,f.borderWidth="0px",f.outline=G,f.zIndex="1",f.font=p,f.color=m,(0,C.GC$)(c).appendTo(t),n.Og=c,(0,C.GC$)(c).addClass("gc-sheetTabEditor").bind(W,function(t){return 13===t.keyCode?(n.Rg(s,!1),!1):27===t.keyCode?(n.Rg(s,!0),!1):void 0}).bind(J,function(){c.selectionStart=0,c.selectionEnd=c.value.length}).bind(Z,function(){n.Rg(s,!1)}),c.focus()}return!1},l.prototype.wg=function(t){var e,n,n,i,r,t,e=this,n={e:t,r:T};return l.et(e,"preProcessMouseDbClick",n),p(n=n.r)?(i=(0,C.GC$)(e.Dg()).offset(),r=t.pageX-i.left,t=t.pageY-i.top,e.E2(r,t)):n},l.prototype.Mg=function(t){var e,n,i,n,i,e=this,n=e.im(),i=!p(e.Og);return n||i||(p(t.wheelDelta)&&p(t.detail)&&(t.wheelDelta=t.originalEvent.wheelDelta,t.detail=t.originalEvent.detail),n=t.detail||t.wheelDelta,i=e.Zm(),0<n?e.xg(i):e.Ng(i)),!1},l.prototype.Rg=function(t,e){var n,i,r,e,o,n=this,i=n.Og;i&&((0,C.GC$)(i).unbind(W).unbind(J).unbind(Z),r=i.value,!1===e&&r!==(e=t.name())&&(o={message:""},A(r,n.Vv.qv(),t,o)&&!p(r)&&""!==r?t.getParent().commandManager().execute({cmd:"renameSheet",sheetName:e,name:r}):t.ki(y.Events.InvalidOperation,{sheet:t,sheetName:t.name(),invalidType:5,message:o.message})),i.parentNode.removeChild(i),delete n.Og)},l.prototype.O2=function(){return this.Vv.options.allowSheetReorder},l.prototype.Ug=function(t,e){var n=this;n.O2()?(n.og=e.index,n.r2=n.R2(n.og),n.Wg=new y.Point(t.pageX,t.pageY),n.Fg()):n.Qg=!1},l.prototype.R2=function(t){var e,n,n,e,e=this.Vv.qv(),n=e.length;if(!(n<=t||t<0))return n=(n=e[t].name())||"sheet",(e=(0,C.GC$)(k("span")).text(n).css({position:"absolute",cursor:"default","border-radius":"5px",opacity:".7"})).addClass("ui-widget-header gc-tab-tip-span btn-primary"),e},l.prototype.a2=function(){var t=this.h2;t&&(clearTimeout(t),this.h2=T)},l.prototype.qg=function(t,e){var n,i,r,o,n,i=this.r2;i&&0===(0,C.GC$)(".gc-tab-tip-span").length&&(i.appendTo(a.body),i.hide()),r=i.width(),o=i.height(),i.css({left:t-r/2,top:e-o/2}),i.show()},l.prototype.$g=function(t){var e,n,i,r,i,o,t,i,a,s,u,c,f,l,n,h,d,o,t,v,g,n,t,o,e=this,n=e.Vv,i=(0,C.GC$)(e.Dg()),r=i.position(),i=i.offset(),o=t.pageX-i.left,t=t.pageY-i.top,i=e.hitTest(o,t),a=i.element,s=e.ot(),u=e.tm(),c=e.Vv.qv().length,f=100,l=n.options.tabStripPosition,n=e.im(),h=e.Jv(),d=e.dg,o=n?o:t,t=n?s.x+e.dm():s.y+e.dm()+h;t<o?e.ag===T&&e.rg<c&&(e.ag=S.setInterval(function(){e.Ng(e.Zm()),e.rg===c?(e.i2(),l===M.TabStripPosition.bottom?(v=r.left+e.B2()-3.5,g=r.top-3.5):l===M.TabStripPosition.top?(v=r.left+e.B2()-3.5,g=r.top+s.height):l===M.TabStripPosition.left?(v=r.left+s.width,g=r.top+e.B2()-3.5):l===M.TabStripPosition.right&&(v=r.left-3.5,g=r.top+e.B2()-3.5),d.show()):(e.rg++,d.hide()),d.css({left:v,top:g})},100)):o<u?e.ag===T&&0<e.rg&&(e.ag=S.setInterval(function(){e.xg(e.Zm()),0===e.rg?(e.i2(),l===M.TabStripPosition.bottom?(v=r.left+u-3.5,g=r.top-3.5):l===M.TabStripPosition.top?(v=r.left+u-3.5,g=r.top+s.height):l===M.TabStripPosition.left?(v=r.left+s.width,g=r.top+h-3.5):l===M.TabStripPosition.right&&(v=r.left-7,g=r.top+h-3.5),d.show()):(e.rg--,d.hide()),d.css({left:v,top:g})},100)):(e.i2(),a!==N&&-1===e.mm().indexOf(a)||(n=i.index,a===E&&(n=e.rg),t=n=a===N&&!p(n)?n:c,o=i.position,e.rg=t,l===M.TabStripPosition.bottom?(v=r.left+o-3.5,g=r.top-7):l===M.TabStripPosition.top?(v=r.left+o-3.5,g=r.top+s.height):l===M.TabStripPosition.left?(v=r.left+s.width,g=r.top+o-3.5):l===M.TabStripPosition.right&&(v=r.left-7,g=r.top+o-3.5),d.css({left:v,top:g}),d.show()))},l.prototype.B2=function(){for(var t,e,n,i,r,o,a,s,u,c,t=this,e=t.im(),n=t.$v,i=t.Zm(),r=t.L2(t.om,i),o=0,a=t.tm(),s=t.M2e,u=e?a+t.Fv:a,c=r;c<i.length;c++)o=i[c],e?u=(u+=n[o])+t._v:u+=s[o];return u},l.prototype.i2=function(){var t=this.ag;t&&(clearInterval(t),this.ag=T)},l.prototype.o2=function(){var t,e,n,i,r,o,a,s,t=this,e=t.Vv,n=t.rg,i=t.og,r=e.qv();if(e.suspendPaint(),this.F2(r)){for(o=[],a=0;a<r.length;a++)r[a].b2()&&(r[a].b2(!1),o.push(r[a]));for(a=o.length-1;0<=a&&!(e.getSheetPosition(o[a].name())<=n);a--)e.commandManager().execute({cmd:"moveSheet",sheetName:o[a].name(),targetIndex:n});for(n-=1,a=0;a<o.length&&!(e.getSheetPosition(o[a].name())>n);a++)e.commandManager().execute({cmd:"moveSheet",sheetName:o[a].name(),targetIndex:n})}else s=e.e2(i),-1!==n&&-1!==i&&i!==n&&i!==n-1&&t.dg.isVisible()&&(i<n-1&&(n-=1),e.commandManager().execute({cmd:"moveSheet",sheetName:s.name(),targetIndex:n}));e.resumePaint()},l.prototype.F2=function(t){for(var e,n,e=[],n=0;n<t.length;n++)if(t[n].b2()&&(e.push(t[n]),1<e.length))return!0;return!1},l.prototype.scrollTabToActive=function(t,e){var n,i,r,o,a,n=this,i=n.Vv,r=n.Zm(),o;e===i.getSheetCount()+i.getSheetTabCount()-1?(n.d2(r),n.Cg()):0===e?(n.l2(r),n.Cg()):(a=n.U2(t,e))&&(t<e&&e++,n.Tg(e))},l.prototype.U2=function(t,e){for(var n,i,r,o,a,n=this,i=n.Ig().tabsInfo,r=!1,o=!1,a=0;a<i.length-2;a++)if(t===i[a].index&&(r=!0),e===i[a].index&&(o=!0),r&&o)return n.Cg(),!1;return!0},l.prototype.Zm=function(){for(var t,e,n,t=[],n=this.Vv.qv(),e=0;e<n.length;e++)this.k2(e)&&t.push(e);return t},l.prototype.l2=function(t){0<t.length&&this.om!==t[0]&&this.Vv.startSheetIndex(t[0])},l.prototype.xg=function(t){var e,t;0<t.length&&(e=this).om>t[0]&&-1!==(t=e.Vm(e.om))&&e.Vv.startSheetIndex(t)},l.prototype.Ng=function(t){var e,n;0<t.length&&(e=this).om<t[t.length-1]&&-1!==(n=e.Ym(t))&&e.Vv.startSheetIndex(e.N2(e.om))},l.prototype.d2=function(t){var t;0<t.length&&this.om<t[t.length-1]&&-1!==(t=this.Ym(t))&&this.Vv.startSheetIndex(t)},l.prototype.Ym=function(t){var e,n,i,r,o,a,s,u,c,f,l,h,h;if(0<t.length)for(n=(e=this).im(),i=e.M2e,r=e.dm(),a=e.$v,u=s=void(o=0),c=e.gm(),-1===(f=e.L2(e.om,t))&&(f=0),s=t.length-1;f<=s;s--)if(o+=l=(n?a:i)[u=t[s]],s!==t.length-1&&(o+=n?e._v:0),h=c+o,0!==s&&(h+=n?e.Fv:i[u]),r<h)return h=void 0,h=s+1<t.length?t[s+1]:t[t.length-1],e.om<h?h:-1;return-1},l.prototype.Vm=function(t){for(var e,e=t-1;0<=e;e--)if(this.k2(e))return e;return-1},l.prototype.N2=function(t){for(var e,n,e=this.Vv.qv().length,n=t+1;n<e;n++)if(this.k2(n))return n;return-1},l.prototype.L2=function(t,e){for(var n,n=0;n<=e.length-1;n++)if(t===e[n])return n;return-1},l.prototype.k2=function(t){var t=this.Vv.e2(t);return!(!t||t.visible()!==M.SheetTabVisible.visible)},l.prototype.H2=function(){var n,t,e,i,r,o,a,n=this,t=n.Vm(n.om),e=n.Zm().reduce(function(t,e){return t+n.M2e[e]},0),i=n.Lv,r=n.Yv()/2,o,a;return n.ot().height<e+i+r||-1!==t},l.prototype.z2=function(){var t,e,t,t=this,e=t.Vm(t.om),t=t.Ym(t.Zm());return-1!==e||-1!==t},l.prototype.nm=function(){var t,e,n,i,t=this,e,n=t.Vv.options.allSheetsListVisible,i;if(t.im()){if(!t.z2()&&n===M.AllSheetsListVisibility.auto)return!0}else if(!t.H2()&&n===M.AllSheetsListVisibility.auto)return!0},l.prototype.V2=function(){this.sg++},l.prototype.Y2=function(){var t=this;t.sg--,t.sg<=0&&(t.sg=0,t.repaint())},l.prototype.repaint=function(t){var e=this.Dg();e&&e.getContext&&this._e(e.getContext(B),t)},l.prototype._e=function(t,e){var n,i,r,o,o,a,s,u,c,f,l,h,d,v,n=this;if(!(0<n.sg)){if(i=n.ot(),r=n.fg,e){if(e.x>=i.x+i.width)return;if(e.y>=i.y+i.height)return;if(e.x+e.width>i.width&&(e.width=i.width-e.x,e.width<=0))return;if(e.y+e.height>i.height&&(e.height=i.height-e.y,e.height<=0))return;if(e.width<=0||e.height<=0)return}if((o=n.buffer)&&o.width===r.width&&o.height===r.height&&(o||o.width===i.width&&o.height===i.height)||(o&&y.Bf.nh(n.Vv,o),n.buffer=o=k(Q),y.Bf.Wl(o,n.Vv),y.Bf.$l(o,i.width,i.height)),!(i.width<=0||i.height<=0||e&&(e.width<=0||e.height<=0))){(o=n.buffer.getContext(B)).clearRect(0,0,i.width,i.height),y.Lf.Yl(o,-i.x,-i.y),n.Z2(o,e),y.Lf.Yl(o,i.x,i.y),u=a=0<=i.x?0:-i.x,c=s=0<=i.y?0:-i.y,e&&(u=i.x+e.x,c=i.y+e.y,i=new y.Rect(u,c,e.width,e.height)),a=0<=i.x?i.x:0,s=0<=i.y?i.y:0,h=T,d=y.Bf.Kl(r),v=y.Bf.Jl(r),r&&1!==d&&(u*=d,c*=v,i.x*=d,i.y*=v,i.width*=d,i.height*=v);try{l=r?e?(f=w(i.width-u,0),w(i.height-c,0)):(f=b(i.width-u,w(r.width-i.x,3)),b(i.height-c,w(r.height-i.y,3))):(u=e.x,c=e.y,f=e.width,e.height),r?(y.Lf.Vl(t,1,1),t.clearRect(a,s,f,l),t.drawImage(n.buffer,u,c,f,l,a,s,f,l),y.Lf.Vl(t,d,v)):h=(o=n.buffer.getContext(B)).getImageData(u,c,f,l)}catch(t){return}!r&&h&&0<i.width&&0<i.height&&t.putImageData(h,a,s)}}},l.prototype.W2=function(t,e){var n,i,n,i=this.ot();e?t.rect(e.x,e.y,e.width,e.height):t.rect(i.x,i.y,i.width,i.height),t.clip()},l.prototype.P2e=function(t){var e,n,e,n=this.BO();t&&t.forEach(function(t){var t=t.src;t&&!n.getImage(t)&&n.addImage(t,"anonymous")})},l.prototype.G2e=function(s,u){var c,t,f,e,l,h,d,v,n,c=this,t=c.Vv,f=c.im(),e=c.T2e,l=e.iconSpace,h=e.iconTextSpace,d=e.defaultSize;s.save(),c.$v=[],c.M2e=[],v=s.font,(n=t.qv()).forEach(function(t){var e,n,i,e,t,e,n,i,e,r,n,o,i,e,o,a,n,e=null==(e=u[t.name()])?void 0:e.composedStyle,n=null!=(n=null==e?void 0:e.font)?n:v,i=null!=(i=null==e?void 0:e.leftIcons)?i:[],e=null!=(e=null==e?void 0:e.rightIcons)?e:[],r=g(g([],i,!0),e,!0);s.font=m.W.ii(n,"bold"),n=c.Dv+c.kv,(o=0)<r.length&&(c.P2e(r),o=r.reduce(function(t,e){var t;return t+(null!=(t=e.width)?t:d)},0),n=(n=(n+=l*(r.length-1))+(0<i.length?h:0))+(0<e.length?h:0)),i=Math.round(s.measureText(t.name()).width)+o+n,c.$v.push(i),f||(e=L(s.font),o=null!=(t=null==r?void 0:r.reduce(function(t,e){var t;return Math.max(t,null!=(t=e.height)?t:d)},0))?t:0,n=(a=Math.max(e,o))+2*c.ig,c.M2e.push(n))}),s.restore()},l.prototype.Ig=function(t){var e,n,i,r,o,a,s,u,c,f,s,l,h,e=this,n,i=e.Vv.qv(),r=e.im(),o=e.ot(),a=[],s=e.tm();for(e.nm()&&r&&(s-=e.em()),u=s,s=e.om,r&&0<s&&0<=e.Vm(s)&&(u+=e.Fv),s<0&&(e.om=0),l=e.om;l<i.length;l++){if(h=i[l].visible(),c=e.$v[l],f=e.M2e[l],r){if(u>o.x+o.width)break}else if(u>o.y+o.height)break;a.push({index:l,position:u,width:c,height:f,text:i[l].name(),visible:h,style:t&&t[i[l].name()]}),h===M.SheetTabVisible.visible&&(u+=r?c+e._v:f)}return{tabsInfo:a,newTabStartPosition:u}},l.prototype.U2e=function(t){var e,n,i,e,n=M.VisualState.normal,i;return 2007<this.Vv.SC?(t&M.SheetTabState.hover&&(n=M.VisualState.hover),t&M.SheetTabState.selected&&(n=M.VisualState.selected),t&M.SheetTabState.active&&(n=M.VisualState.active),t&M.SheetTabState.active&&!(t&M.SheetTabState.selected)&&(n=M.VisualState.activeNotSelected)):(t&M.SheetTabState.selected||t&M.SheetTabState.hover)&&(n=M.VisualState.hover),n},l.prototype.H2e=function(e,n){var i;return e&&0!==Object.keys(e).length?(i={},Object.keys(n.composedStyle).forEach(function(t){void 0===e[t]||0===e[t].length?i[t]=n.composedStyle[t]:i[t]=e[t]}),{composedStyle:i,borderLeftColor:n.borderLeftColor,borderBottomColor:n.borderBottomColor}):n},l.prototype.D2e=function(t,e,n,i){var r,o,o,o,a,i,s,u,c,r=this,o=this.Vv.sheetTabStyles.C2e(n),o=r.U2e(o),o=y.I.He(o,"gc-tab-"+y.I.Ee(o)),a=y.I.He(M.VisualState.normal,"gc-tab-"+y.I.Ee(M.VisualState.normal)),i=r.V2e(t,i,2007<this.Vv.SC?a:o,e),s,u,c;return{composedStyle:{backColor:i,foreColor:r.Um(o.color,"string"==typeof i?i:void 0),font:r.z2e(t,n),leftIcons:[],rightIcons:[]},borderLeftColor:null==a?void 0:a.borderLeftColor,borderBottomColor:o.borderBottomColor}},l.prototype.Y2e=function(t,e,n,i,r){var o,o,a,s,u,c,c,c,o,t;if(r&&0!==Object.keys(r).length)return s={},u=(a=this).Vv.e2(i),c=this.Vv.sheetTabStyles.C2e(n),c=a.U2e(c),c=y.I.He(c,"gc-tab-"+y.I.Ee(c)),r.icons&&(s.leftIcons=null==(o=null==r?void 0:r.icons)?void 0:o.filter(function(t){return!t.position}),s.rightIcons=null==(o=null==r?void 0:r.icons)?void 0:o.filter(function(t){return t.position===M.IconPosition.right})),r.backColor&&(o=y.Pf.vl(u,r.backColor),s.backColor=a.zm(t,n,i,e,o)),r.foreColor?s.foreColor=y.Pf.vl(u,r.foreColor):r.backColor&&(t="string"==typeof s.backColor?y.Pf.vl(u,s.backColor):void 0,s.foreColor=a.Um(c.color,t)),r.font&&(s.font=r.font),s},l.prototype.Z2e=function(i,r){var o,a,t,s,o=this,a=o.Vv,t=a.qv(),s={};return t.forEach(function(t){var t,e,n,n,e,n,t=t.name(),e=a.getSheetPosition(t),n=a.sheetTabStyles.E2e(t),n=o.Y2e(i,r,t,e,n),e=o.D2e(i,r,t,e),n=o.H2e(n,e);s[t]=n}),s},l.prototype.W2e=function(o,a,s){var u,t,c,f,e,l,h,u=this,c=this,f=c.Vv,e=f.qv(),l=c.im(),h=null!=(t=f.SC)?t:0;return e.forEach(function(t,e){var e,e,n,i,t,t,t,r,e,r,t,i,n=t.name(),i=f.getSheetPosition(n),t=u.Vv.sheetTabStyles.C2e(t.name()),t=c.U2e(t),t=y.I.He(t,"gc-tab-"+y.I.Ee(t)),r=y.I.He(M.VisualState.normal,"gc-tab-"+y.I.Ee(M.VisualState.normal)),e=!l&&null!=(e=null==(e=s[e])?void 0:e.position)?e:0,r=c.V2e(o,i,2007<h?r:t,e),t=c.Vv.sheetTabStyles.E2e(n),i=c.zm(o,n,i,e,null==t?void 0:t.backColor);a[n].composedStyle.backColor=null!=i?i:r}),a},l.prototype.Z2=function(t,e){var n,i,r,o,a,i,s,e,n=this,i=n.Vv,r=i.options.scrollbarAppearance===M.ScrollbarAppearance.mobile,o=i.options.tabStripPosition,a=i.options.showHorizontalScrollbar;t&&i&&(i=n.ot(),s=n.Z2e(t,i.y),t.save(),n.W2(t,e),t.beginPath(),n.G2e(t,s),e=n.Ig(),s=n.W2e(t,s,e.tabsInfo),n.wm(t,i),n.Mm(t,i,e.newTabStartPosition,s),n.Dm(t,i),e=n.Ig(s),n.nCe=s,n.J2(t,i,e.tabsInfo),n.Vv&&n.Vv.options.tabNavigationVisible&&n.Im(t,i),a&&!r&&o===M.TabStripPosition.bottom&&n.Em(t,i),t.beginPath(),t.restore())},l.prototype.wm=function(t,e){},l.prototype.Mm=function(t,e,n,i){},l.prototype.X2=function(t,e){var n,i,r,i,i,n=this,i=n.im(),r=n.tm();n.nm()&&(r-=n.em()),i?(i=e.x+n.dm(),t.rect(r,0,i-r,e.height)):(i=n.Yv(),t.rect(0,r,e.width,e.height-r-i)),t.clip()},l.prototype.np=function(t,e){var n,i,r,o,n=this,i=n.om,r=n.im(),o=n.tm();0<i&&0<=n.Vm(i)&&r&&n.Am(t,e,i,o)},l.prototype.Q2e=function(t,e,n){var i,r,i=this,r;i.im()?i.Hm(t,n.position,0,n.width,e.height,n.text,n.style):i.Hm(t,0,n.position,e.width,n.height,n.text,n.style)},l.prototype.J2=function(t,e,n){var i,r,o,a,s,i=this,r=i.Vv;if(i.hm=r.ep(),0<n.length){for(t.save(),t.beginPath(),i.X2(t,e),o=void 0,a=n.length-1;-1<a;a--)(s=n[a]).index===i.hm?o=s:s.visible===M.SheetTabVisible.visible&&i.Q2e(t,e,s);o&&o.visible===M.SheetTabVisible.visible&&i.Q2e(t,e,o),t.restore(),t.save(),t.beginPath(),i.np(t,e),t.restore()}},l.prototype.Am=function(t,e,n,i){},l.prototype.Im=function(t,e){},l.prototype.Dm=function(t,e){},l.prototype.Em=function(t,e){},l.prototype.km=function(t,e,n,i,r,o,a,s,u,c){},l.prototype.Hm=function(t,e,n,i,r,o,a){},l.prototype.Dg=function(){return this.fg},l.prototype.ip=function(t,e){var n,t,e,t,i,r,o,a,n=t.createLinearGradient(e.x,e.y,e.width,e.height),t=y.I.He(M.VisualState.normal,"gc-tabStripBackground"),e=t&&t.backgroundImage,t=t&&t.backgroundColor;if(e&&-1!==e.indexOf("linear-gradient"))for(r=0,o=(i=v(e)).length;r<o;r++)a=i[r],n.addColorStop(a.point,a.color);else t&&(n.addColorStop(0,"#DDDDDD"),n.addColorStop(1,t));return n},l.prototype.K2e=function(t){var e,n,e=this,n=e.Vv.Gm(t);return n=""===t&&0<e.om?e.Vv.e2(e.om-1):n},l.prototype.zm=function(t,e,n,i,r){var i,o,a,s,u,e,c,f,e,n,u,l,h,i,a;if(r)return a=(o=this).ot(),s=o.K2e(e),u=o.im(),c=(e=o.Vv.sheetTabStyles.C2e(e))&M.SheetTabState.active,f=e&M.SheetTabState.selected,e=e&M.SheetTabState.hover,n=u?t.createLinearGradient(a.x+.7*a.height,a.y+0,.7*a.height,a.height):(u=a.y,(l=0)<=i&&(u=i,l=null!=(i=o.M2e[n])?i:0),t.createLinearGradient(a.x+.7*l,u,.7*l,u+l)),t.fillStyle=h="rgba(0, 0, 0, 0)",i=t.fillStyle,t.fillStyle=y.Pf.vl(s,r),(a=t.fillStyle)!==i&&((2007<o.Vv.SC?c:f||e)?(n.addColorStop(0,U),n.addColorStop(.45,"#F1F6FD"),n.addColorStop(.9,a),n.addColorStop(1,U)):n=a),n},l.prototype.V2e=function(t,e,n,i){var i,r,o,a,s,u,c,r,e,f,l,h,d,r=this,o=r.ot(),a,s=r.im()?t.createLinearGradient(o.x+.7*o.height,o.y+0,.7*o.height,o.height):(u=o.y,(c=0)<=i&&(u=i,c=null!=(i=r.M2e[e])?i:0),t.createLinearGradient(o.x+.7*c,u,.7*c,u+c));if(n)if(r=n.backgroundImage,e=n.backgroundColor,r&&-1!==r.indexOf("linear-gradient"))for(l=0,h=(f=v(r)).length;l<h;l++)d=f[l],s.addColorStop(d.point,d.color);else e&&s.addColorStop(0,e);return s},l.prototype.Um=function(t,e){var e=e?r._(e):null;return e&&r.rp(e)<127.5?U:t||X},l.prototype.z2e=function(t,e){var n,n,i,e,n,n=this,i,e=n.Vv.sheetTabStyles.C2e(e),n=null!=(n=n._font)?n:t.font;return n=e&M.SheetTabState.selected||e&M.SheetTabState.hover||e&M.SheetTabState.active?m.W.ii(n,"bold"):n},l.prototype.BO=function(){var t=this;return t.MC||(t.MC=new d.Wh(function(){t.MC&&t.repaint()})),t.MC},l.prototype.Mt=function(t,e,n){var i,n,i=t.font;return t.font=null!=n?n:t.font,t.textBaseline="middle",n=t.measureText(e).width,t.font=i,n},t.Hv=n=l,(0,y.$e)(n)},"./dist/core/workbook/workbook-json.js":function(i,t,e){"use strict";var o,Q,F,X,yt,q,$,n,tt,et,Mt,kt,nt,r,it,rt,ot,L,_,Z,at,Tt,a,st,xt,h,d,ut,ct,Gt,Bt,It,Pt,s,u,ft,lt,ht,v,dt,Nt,vt,gt,e,mt,c,pt,St,f;function A(t,e){return t.hasOwnProperty(e)}function D(t){var t,e,n,e;if(t&&"string"==typeof t){if(3<(e=(t=t.split(".")).length))return 3;if(n=f(t[0]),e<=2)return isNaN(n)?1:n;if(e=f(t[1]),10<=n)return n;if(3<=n){if(20143<=e)return 3;if(20142<=e)return 2}}return 1}function Rt(t){var e,n,i,t,r,o,a,s,u,e=this,n=t&&t.frozenColumnsAsRowHeaders,i=t&&t.frozenRowsAsColumnHeaders;if(n||i)for(ot&&(t=e.op()).isAdjustSuspended()&&t.resumeAdjust(),o=(r=e.sheets).length,a=0;a<o;a++)u=(s=r[a]).Ut,i&&St(u.ap)&&(s.cp=!0,s.deleteRows(0,u.ap)),n&&St(u.fp)&&s.deleteColumns(0,u.fp)}function j(t,e){var n,i,r,o,a,s,u,c,a,n=this,i=e&&e.frozenColumnsAsRowHeaders,r=e&&e.frozenRowsAsColumnHeaders,o=0,s=t.sheets;if(r||i)for(u in s)"string"==typeof u&&(c=s[u],a=St(c.index)?c.index:c.lp,a=n.sheets[St(a)?a:o],r&&St(c.frozenRowCount)&&(a.cp=!0,a.deleteRows(0,c.frozenRowCount)),i&&St(c.frozenColCount)&&a.deleteColumns(0,c.frozenColCount),o++)}function O(t,e){t.hp(e,0)}function g(p,S,w){return function(){for(var n,n,m,t,e,i,r,m=S.dataManager(),t=function(t){var e,d,v,g;if(null==(n=t[0])||!n.getParent())return"continue";e=null==(n=t[1])?void 0:n.dataView,(d=m.tables[e&&e.tableName])&&(v=d.views[e.name])&&((g=v).dp=function(){w(t),delete g.dp},v.vp=function(){for(var t,e,n,i,r,o,a,s,u,c,f,l,h,h,t=function(t){if(!t[0].getParent())return"continue";var e=t[1].dataView;(d=m.tables[e&&e.tableName])&&(v=d.views[e.name])&&g!==v&&v.fetch().then(function(){w(t)})},e=0,n=p;e<n.length;e++)t(i=n[e]);for(o in r=m.tables)if(r.hasOwnProperty(o))for(u in s=(a=r[o]).views)s.hasOwnProperty(u)&&delete(c=s[u]).vp;for(f=0,l=p;f<l.length;f++)if((i=l[f])[0].getParent()&&(h=i[1].dataView,d=m.tables[h&&h.tableName])&&(v=d.views[h.name],g===v)){h=i[0],S.suspendPaint(),h.Mf.recalcAll(!0),S.resumePaint();break}})},e=0,i=p;e<i.length;e++)t(r=i[e])}}function Et(o,a,s,i){var u,t,c,e,f,l,h;if(0<o.length){for(u=a.dataManager(),t=void 0,e=0;e<o.length;e++)if(t=o[e][1]&&o[e][1].dataView){c=e;break}(f=u.tables[t&&t.tableName])&&(l=f.views[t.name])&&(h=function(t){var e=t[0],n=t[1],t=t[2];e.getParent()&&(e.ANi(n,i),t)&&m(a,t,e)},l.fetch().then(function(){var n,t,e,i,r;if(o[c][0].getParent()){for(h(o[c]),n=[],t=function(t){var e=t[1]&&t[1].dataView;e&&(f=u.tables[e.tableName])&&(l=f.views[e.name])&&n.push(l.fetch().then(function(){h(t)}))},e=0,i=o.slice(1);e<i.length;e++)t(r=i[e]);Promise.all(n).then(function(){a.suspendPaint(),s&&a.calculate(1),a.resumePaint()})}}).catch(g(o,a,h)))}}function l(t,e,n){var i,n,n,i=null==e?void 0:e.dataView;return i&&(n=n.tables[i&&i.tableName])&&(n=n.views[i.name])?n.fetch().then(function(){t.ANi(e,!0)}):void 0}function V(t,e,n,i){for(var r,o,a,s,u,c,f,l,h,d,v,g,m,p,S,w,b,C,y,M,r=0,o=e.sheetTabs,a=[],s=i&&i.gp,u=t.mp,c=[],f=e.sheetCount,l=0,h=Object.keys(o);l<h.length;l++)(v=o[d=h[l]])&&(g=v.index-f,c.splice(g,0,v));if(u&&u.length&&c){for(m=0,p=c;m<p.length;m++)if("string"==typeof(S=(v=p[m]).name)&&(w=t.mp[r])){if(w.fromJSON(v,!1,n,i,!0),vt(v.order)||(w.E0i=v.order),!s&&(w._gi===nt.SheetType.tableSheet||w._gi===nt.SheetType.ganttSheet||w._gi===gt)){for(b=e.formatStringNames,C=[],y=0;b&&y<b.length;y++)(M=b[y]).sheetTabName===w.name()&&C.push(M);a.push([w,v.addition,C])}r++}Et(a,t,!(i&&i.doNotRecalculateAfterLoad),!0)}}function m(t,e,n){var i,r;if(e)for(i=0;i<e.length;i++)r=e[i],t.pp(t.bp,r.name,r.formula,r.row,r.col,!0,r.comment,n)}function Y(t,e){var n,e,n=t.getActiveSheetTab(),e=e.activeSheetTabIndex;St(e)?(t.yp(e,0),t.u3(n)):(t.f3(),n&&n.b2(!1,!1))}function Ht(t,e,n,i,r){var o;return n===gt&&i===gt&&t===gt&&e===gt?gt:(o="",n!==gt&&(o+="$"+a(n)),t!==gt&&(o+="$"+(t+1)),o+=":",i!==gt&&(o+="$"+a(i)),e!==gt&&(o+="$"+(e+1)),r?(0,tt.i2e)(r)+"!"+o:o)}function K(n,i,r){Q.Workbook.fh&&pt(Q.Workbook.fh,function(t,e){var e=e[i];e&&e.call.apply(e,o([n],r,!1))})}function Ut(t,e){for(var n,i,r,o,a,s,u,c,f,l,l,l,l,f,n=wt(t),i=[],r=0,o=0,a=0,s=0,u=0,c=0;c<n;c++)(f=bt(t,c))&&(f.wp=c+1,(l=f.tables)&&0<l.all().length&&l.all().forEach(function(t){++r,t._id=r+""}),(l=f.charts)&&0<l.all().length&&l.all().forEach(function(t){++o,t.wp=o}),(l=f.pictures)&&0<l.all().length&&l.all().forEach(function(t){++a,t.wp=a}),(l=f.pivotTables)&&0<l.all().length&&l.all().forEach(function(t){++u,t.Mp=u}),f=h(e),i.push(f),e.c_.push({n_:v,Id:ht+f,Type:$.RelationshipConstants.fo,Target:d("worksheets/"+ft+f)}));return p(e),t.Cp={slicer:0,timeline:0,drawing:0,vmlDrawing:0},i}function p(t){var e=ht+h(t);t.c_.push({n_:v,Id:e,Type:$.RelationshipConstants.Xs,Target:d("sharedStrings")}),e=ht+h(t),t.c_.push({n_:v,Id:e,Type:$.RelationshipConstants.Ks,Target:d("styles")}),e=ht+h(t),t.c_.push({n_:v,Id:e,Type:$.RelationshipConstants.$s,Target:d("theme/theme1")})}function wt(t){return t.getSheetCount()+t.getSheetTabCount()}function bt(t,e){var t=t.e2(e);return t instanceof it.Worksheet?t:t&&t.Mf}function Ft(t,e){for(var n,i,r,o,n=0,i=t.getSheetCount();n<i;n++)if(r=t.getSheet(n),e===(o=t.getSheetPosition(r.name())))return null;for(n=0,i=t.getSheetTabCount();n<i;n++)if(r=t.getSheetTab(n),e===(o=t.getSheetPosition(r.name())))return r}function _t(t){return t.substring(0,19)===u}function At(t){return t.substring(0,23)===s}function Lt(t,e){var n=t;return 255<n.length?n=n.slice(-240):250<(n=e+" "+n).length&&(n=t+" "+Math.random().toString(36).slice(-6)),n}function S(t){for(var e,n,i,e=wt(t),n=0;n<e;n++)if(i=bt(t,n).hl)return i}function Dt(t,e,n,i){var r,o,a,s,n,a=t.themeFont;return"Body"===a?o=n||(s=S(e))&&s.bodyFont():"Headings"===a&&(o=i||(s=S(e))&&s.headerFont()),r=o&&t.font?(n=tt.util._0(t.font)).fontWeight+" "+n.fontStyle+" "+n.fontSize+" "+o:t.font||c}function jt(){return{fileVer:"1.0",proName:"sjs",proVer:tt.productInfo.productVersion}}function Ot(){var t=new F.Style;return t.font="14.67px Calibri",t.foreColor="Text 1",t.borderLeft=new F.LineBorder,t.borderRight=new F.LineBorder,t.borderTop=new F.LineBorder,t.borderBottom=new F.LineBorder,t.name="Normal",t.backColor=null,t}function Vt(t,e){var e=e.state;"hidden"===e?t.visible(nt.SheetTabVisible.hidden):"veryHidden"===e&&t.visible(nt.SheetTabVisible.veryHidden)}function Yt(t,e,n,i,r,o){var a,s,t,n,n,a=bt(t,n),s=r.loadStatus,t=Ft(t,n);a.loading=!0,n=(n=st(e,"sheetData"))&&n.rowCount||200,s.total+=n,t?(t.yh(e,i,r),vt(e.order)||(t.E0i=e.order)):(a.yh(e,i,r,o),vt(e.order)||(a.E0i=e.order))}function Ct(t){var e,t,e=t.getActiveSheet();return e||(t=t.getActiveSheetTab())&&(e=t.Mf),e}function Kt(t){for(var e,n,i,e=0,n=wt(t);e<n;e++)delete(i=bt(t,e)).loading,it.Worksheet.et(i,"onSheetLoaded")}function zt(t,e,n,i){var t=t;Z.culture(e),t.Bp=!1,n&&i&&i.Zg(),t.resumeEvent(),t.Cg(),t.resumePaint()}function w(t){var e,n,i,e=document.createElement("canvas"),n=e.getContext("2d");e.width=t.width,e.height=t.height,n.drawImage(t,0,0);try{i=e.toDataURL("image/png")}catch(t){}}function Wt(t){for(var e,n,i,r,o,a,e={},n=[],i=0,r=t;i<r.length;i++)a=(o=r[i]).f,e.hasOwnProperty(a)||n.push(e[a]=o);return n}o=this&&this.__spreadArray||function(t,e,n){if(n||2===arguments.length)for(var i=0,r=e.length,o;i<r;i++)!o&&i in e||((o=o||Array.prototype.slice.call(e,0,i))[i]=e[i]);return t.concat(o||Array.prototype.slice.call(e))},Object.defineProperty(t,"__esModule",{value:!0}),t.Sp=t.Tp=t.Ap=t.Ip=void 0,Q=e("./dist/core/workbook/workbook.js"),F=e("./dist/core/worksheet/style.js"),X=e("./dist/core/util/domUtil.js"),yt=e("./dist/core/util/tasks.js"),q=e("./dist/core/excel-io-util/common.js"),$=e("./dist/core/excel-io-util/excel-types.js"),n=e("Common"),tt=e("./dist/core/util/common.js"),et=e("CalcEngine"),Mt=e("./dist/core/util/styleManager.js"),kt=e("./dist/core/util/theme.js"),nt=e("./dist/core/core.enum.js"),r=e("./dist/core/core.ns.js"),it=e("./dist/core/worksheet/worksheet.js"),rt=e("./dist/core/util/dataManager.js"),ot=!!et,L=F.Style.xp,_=n.Commands.UndoManager,Z=n.Common.CultureManager,at=n.Common.lt.tv,Tt=q.Util.Kr,a=q.IndexHelper.nr,st=tt.util.xr,xt=tt.util.o1,h=q.Util.wr,d=q.Util.Mr,ut=q.Util.Sr,ct=q.Util.Oge,Gt=tt.util.Pr,Bt=tt.mt.n1,It=tt.mt.vo,Pt=q.Util.io,s="__builtInValidatorStyle",u="__builtInTableStyle",ft=$.XFileConstants.ru,lt=$.XFileConstants.mo,ht=$.XFileConstants.Rr,v=$.XFileConstants.Lr,dt=$.XFileConstants.Ki,Nt=$.XFileConstants.ou,vt=n.Common.lt.ht,gt=void 0,e=new n.Common.ResourceManager(r.SR,"Sheets"),mt=e.getResource.bind(e),c="normal normal normal 11pt/normal Calibri",pt=X.GC$.each,St=tt.mt.T1,f=parseFloat,t.Ip=l,Q.Workbook.prototype.toJSON=function(t){return this.Np(t)},Q.Workbook.prototype.Np=function(i,t){var r,n,e,o,a,s,u,c,f,l,h,d,v,g,m,p,l,f,l,S,w,b,b,C,y,M,k,T,x,G,B,I,P,N,f,l,r=this,n={version:tt.productInfo.productVersion,name:r.name},a=i&&i.rowHeadersAsFrozenColumns,s=i&&i.columnHeadersAsFrozenRows,u=a||s;if(u&&(i.kp=!0),r.Dp&&(n.docProps=at(r.Dp)),ot&&(e=et.Functions.setLanguagepackage)&&(o=e(),e("en")),this._p&&this._p.Ep(this),c=r.getSheetCount(),n.sheetCount=c,u)for(f=new Q.Workbook,l=i&&i.includeAutoMergedCells,f.fromJSON(r.toJSON({includeBindingSource:!0,includeAutoMergedCells:l,convertReportSheetToWorksheet:i&&i.convertReportSheetToWorksheet}),{gp:!0}),r=f,h=0;h<c;h++)v=(d=r.getSheet(h)).getRowCount(1),g=d.getColumnCount(2),p=s&&0<v,(m=a&&0<g)&&d.addColumns(0,g),p&&d.ffe(0,v,3,p),m&&d.jp(g,p?v:0),p&&d.Op(v,m?g:0);for(r.Bp=!0,r.suspendPaint(),r.suspendEvent(),ot&&((l=r.Lp).calcOnDemand&&(l.calcOnDemand=!1,r.Fp(),l.suspend(!0),l.resume(!0),l.calcOnDemand=!0),l.forceR1C1Formula=i&&i.forceR1C1Formula,l.suspend(!0)),(f=r.startSheetIndex())&&(n.startSheetIndex=f),pt(r.options,function(t,e){"_ps"!==t&&Q.Workbook.Pp[t]!==e&&(n[t]=e)}),(l=r.getActiveSheetIndex())!==Q.Workbook.Gp&&(n.activeSheetIndex=l),S={},w=0;w<c;w++)d=r.getSheet(w),b=i,vt(t)||w===t||(b={}),(b=d.toJSON(b)).index=w,b.order=d.E0i,S[d.name()]=b;for(X.GC$.isEmptyObject(S)||(n.sheets=S),C={},y=r.getSheetTabCount(),M=r.getActiveSheetTabIndex(),G=function(n){var t,e,t=r.Ofe(n),e=t.toJSON(i);Array.isArray(e)?(e.forEach(function(t,e){t.index=c+n+e-k+1,C[t.sheet.name]=t,T++}),x=e.length-1):e?(e.sheetType=e.sheetType||t._gi,e.index=c+n+x-k,e.order=t.E0i,C[t.name()]=e,T++):(k++,n<=M&&M--)},B=x=T=k=0;B<y;B++)G(B);if(n.sheetTabCount=T,-1!==M&&(n.activeSheetTabIndex=M),X.GC$.isEmptyObject(C)||(n.sheetTabs=C),I=[],P=r.Hp){for(N in P)A(P,N)&&I.push(P[N]);0<I.length&&(n.namedStyles=I)}return(f=r.sheetTabStyles)&&(l=f.all(),X.GC$.isEmptyObject(l)||(n.sheetTabStylesMap=l)),Q.Workbook.fh&&pt(Q.Workbook.fh,function(t,e){e.toJson&&e.toJson.call(r,n,i)}),(0,rt.h2e)(r,n),ot&&e&&e(o),r.Bp=!1,ot&&(delete r.Lp.forceR1C1Formula,r.Lp.resume(!1)),r.resumeEvent(),r.resumePaint(),u&&delete i.kp,n},Q.Workbook.prototype.fromJSON=function(n,i){var t,e,r,o,a,s,o,u,c,f,l,h,d,v,g,m,p,S,w,b,C,y,M,k,T,x,G,B,I,P,N,R,E,H,U,e=[],r=this;if(r.zp(),n){if(r.Vp&&r.Vp.terminate(),i&&i.incrementalLoading)return!0===i.incrementalLoading&&(i.incrementalLoading={}),r.Yp(n,i);o=D(n.version),s={noSchema:a=o<3,version:o},o=tt.hi.ai(),r.Bp=!0,r.suspendPaint(),r.suspendEvent(),u=Z.culture(),Z.culture("");try{for(v in r.Zp(),r.Wp=new _(r,-1,r.options.allowUndo),ot&&(r.Qp(!0),r.Lp.suspendAdjust(),r.Lp.forceR1C1Formula=i&&i.forceR1C1Formula),r.Kp=-1,r.clearSheets(),r.clearSheetTabs(),c=n.name,St(c)&&(r.name=c),f=r.options,l=n.canUserEditFormula,St(l)&&(f.allowUserEditFormula=l),h=n.allowDragDrop,St(h)&&(f.allowUserDragDrop=h),d=n.allowDragFill,St(d)&&(f.allowUserDragFill=d),f)A(f,v)&&(g=n[v],St(g))&&(f[v]=g);if(r.Dp=at(n.docProps),K(r,"preFromJson",[n,a,i]),e.push((0,rt.d2e)(r,n)),m=n.sheetCount,St(m)||(m=Q.Workbook.Jp),r.Xp(n.sheets||m,0),r.Hp={},r.qp={},p=n.namedStyles)for(S=0,w=p;S<w.length;S++)b=w[S],C=new F.Style,L(b,r),C.fromJSON(b,a,r),r.$p(C);if(M=void(y=0),k=n.sheets,x=T=void 0,B=!(G=!1),k)for(I in k)"string"==typeof I&&(P=k[I],N=St(P.index)?P.index:P.lp,M=r.sheets[St(N)?N:y])&&(P.isApplyRefilter=i&&i.isApplyRefilter,M.fromJSON(P,!1,s,i,!0),vt(P.order)||(M.E0i=P.order),y++,x=P.allowUndo,G?B=B&&x===T:(T=x,G=!0));St(T)&&B&&(f.allowUndo=T),O(r,n),0<r.mp.length?(V(r,n,s,i),Y(r,n)):0<=n.activeSheetTabIndex&&(n.activeSheetIndex=0),R=n.activeSheetIndex,St(R)||(R=Q.Workbook.Gp),r.tb(R,0,gt,gt,!0),(E=r.sheets[R])&&E.b2(!0,!1),r.dse=r.vse(r.sheets,r.mp),H=n.startSheetIndex,St(H)&&r.startSheetIndex(H),U=n.backgroundImage,St(U)&&r.nb(),r.sheetTabStyles.O2e=null!=(t=n.sheetTabStylesMap)?t:{},Q.Workbook.fh&&pt(Q.Workbook.fh,function(t,e){var e=e.fromJson;e&&e.call(r,n,a,i)}),ot&&r.Lp.resumeAdjust(),j.call(r,n,i),Q.Workbook.et(r,"initCustomName")}finally{ot&&(r.Lp.resumeAdjust(),delete r.Lp.forceR1C1Formula),Z.culture(u),r.Bp=!1,E=r.getActiveSheet(),o&&E&&E.Zg(),r.resumeEvent(),r.Cg(),r.resumePaint(),E&&r.ki(tt.Events.ActiveSheetChangedInternal,{oldSheet:void 0,newSheet:E}),ot&&r.Lp.processDynamicRef()}return Promise.all(e)}},Q.Workbook.prototype.Yp=function(n,i){var t,o,e,a,r,e,s,u,c,f,l,h,d,v,g,m,p,S,w,b,C,y,M,k,T,x,G,B,I,P,N,R,E,t=[],o=this;o.Vp=new yt.Tasks(function(){var t,e,n,n,t=o.getActiveSheet();if(t&&!t.loaded)for(e=this.tasks.length-1;0<=e;e--)if((n=this.tasks[e].args[0])&&n.Ut&&n.name&&n.name()===t.name())return n=this.tasks[e],this.tasks.splice(e,1),n;return this.tasks.pop()},function(){var t=o.getActiveSheet();return t&&(o.ib.eb||t.isEditing()||t.rt.rb||t.rt.ob||t.rt.ab)}),e=D(n.version),r={noSchema:a=e<3,version:e},e=tt.hi.ai(),o.Bp=!0,o.suspendPaint(),o.suspendEvent(),s=Z.culture(),Z.culture("");try{for(d in o.Zp(),o.Wp=new _(o,-1,o.options.allowUndo),ot&&(o.Qp(!0),o.Lp.suspendAdjust()),o.Kp=-1,o.clearSheets(),o.clearSheetTabs(),u=n.name,St(u)&&(o.name=u),c=o.options,f=n.canUserEditFormula,St(f)&&(c.allowUserEditFormula=f),l=n.allowDragDrop,St(l)&&(c.allowUserDragDrop=l),h=n.allowDragFill,St(h)&&(c.allowUserDragFill=h),c)A(c,d)&&(v=n[d],St(v))&&(c[d]=v);if(o.Dp=at(n.docProps),K(o,"preFromJson",[n,a,i]),t.push((0,rt.d2e)(o,n)),g=n.sheetCount,St(g)||(g=Q.Workbook.Jp),o.Xp(n.sheets||g,0),o.Hp={},m=n.namedStyles)for(p=0;p<m.length;p++)S=m[p],w=new F.Style,L(S,o),w.fromJSON(S,a,o),o.$p(w);if(b=0,y=n.sheets,k=M=void 0,x=!(T=!1),y)for(B in G={total:0,valuesLoad:0,formulaLoad:0},i.incrementLoadTask=o.Vp,i.incrementalLoading.loadStatus=G,y)"string"==typeof B&&(I=y[B],P=St(I.index)?I.index:I.lp,(C=o.sheets[St(P)?P:b]).loading=!0,C.ub(I.name+"",!0),C.b2(I.isSelected),C.setRowCount(I.rowCount),C.setColumnCount(I.columnCount),St(I.visible)&&C.visible(I.visible),G.total+=C.getRowCount(),o.Vp.addTask(function(t,e){e.isApplyRefilter=i&&i.isApplyRefilter,t.Yp(e,!1,r,i,!0),vt(e.order)||(t.E0i=e.order)},[C,I]),b++,k=I.allowUndo,T?x=x&&k===M:(M=k,T=!0));St(M)&&x&&(c.allowUndo=M),O(o,n),0<o.mp.length?(V(o,n,r,i),Y(o,n)):0<=n.activeSheetTabIndex&&(n.activeSheetIndex=0),N=n.activeSheetIndex,St(N)||(N=Q.Workbook.Gp),o.tb(N,0,gt,gt,!0),(R=o.sheets[N])&&R.b2(!0,!1),E=n.startSheetIndex,St(E)&&o.startSheetIndex(E),o.Vp.endingCallback=function(){Q.Workbook.fh&&pt(Q.Workbook.fh,function(t,r){r.Yp?o.Vp.addTask(function(t,e,n,i){r.Yp.call(t,e,n,i)},[o,n,a,i]):r.fromJson&&r.fromJson.call(o,n,a,i)}),o.Vp.endingCallback=function(){var t,e,e;for(o.dse=o.vse(o.sheets,o.mp),ot&&o.Lp.resumeAdjust(),j.call(o,n,i),Q.Workbook.et(o,"initCustomName"),ot&&o.Lp.processDynamicRef(),t=0;t<o.sheets.length;t++)delete o.sheets[t].loading;(C=o.getActiveSheet())&&o.ki(tt.Events.ActiveSheetChangedInternal,{oldSheet:void 0,newSheet:C}),i&&i.incrementalLoading&&(e=i.incrementalLoading,o.ki(tt.Events.ProgressChanged,{loadStatus:e.loadStatus,progress:1,sheet:C}),e.loading)&&e.loading(1,{sheet:C}),(e=i&&i.incrementalLoading&&i.incrementalLoading.loaded)&&e(),C&&C.repaint(),o.w2.repaint(),o.Vp.endingCallback=void 0},o.Vp.start()},o.Vp.start()}finally{Z.culture(s),o.Bp=!1,R=o.getActiveSheet(),e&&R&&R.Zg(),o.resumeEvent(),o.Cg(),o.resumePaint()}return Promise.all(t)},Q.Workbook.prototype.getSheetRelsName=function(t){var t,e,t=t.split("/").pop(),e=t.lastIndexOf(".xml");return t.substring(0,e)},Q.Workbook.prototype.getSheetRelsDir=function(t){var t,t,t=t.split("/"),t=t[t.length-2];return"worksheets"!==t?t:"sheets"},t.Ap=wt,t.Tp=bt,Q.Workbook.prototype.wh=function(n){var i,t,e,r,o,F,e,r,t,a,_,r,e,s,u,c,f,s,l,A,h,L,d,v,s,g,m,p,S,w,D,j,b,C,y,O,r,V,Y,e,K,z,W,M,k,T,x,T,G,B,I,P,N,R,E,P,N,R,E,H,U,J,R,P,N,E,H,J,U,R,Z,r,e,i=this;if(i._p&&i._p.Ep(i),t=0<i.mp.length&&(n&&n.fileType)===nt.OpenSaveFileType.excel,e=n&&n.rowHeadersAsFrozenColumns,r=n&&n.columnHeadersAsFrozenRows,o=!n||!1!==n.includeStyles,(F=e||r||t)&&(e=new Q.Workbook,r=n&&n.includeAutoMergedCells,e.fromJSON(i.toJSON({includeBindingSource:!0,includeAutoMergedCells:r,convertReportSheetToWorksheet:n&&n.fileType===nt.OpenSaveFileType.excel}),{sb:!0,cb:n&&n.fileType}),i=e),t=i.options,(_=(a={}).workbook={n_:"workbook",c_:[],lossless:{version:jt(),renamedStylesMap:{},richValueDataArray:[],customData:n&&n.customData},rels:{}}).c_.push(r={n_:"bookViews",c_:[]}),!(e={n_:"workbookView"})===t.showHorizontalScrollbar&&(e.showHorizontalScroll="0"),!1===t.showVerticalScrollbar&&(e.showVerticalScroll="0"),!1===t.tabStripVisible&&(e.showSheetTabs="0"),(s=i.startSheetIndex())&&(e.firstSheet=s),-1!==(u=i.ep()))for(c=u;0<=c;c--)2===(f=i.e2(c))._gi&&u--;for(u!==Q.Workbook.Gp&&(e.activeTab=u),"number"==typeof(s=t.tabStripRatio)&&.6!==s&&(e.tabRatio=1e3*s),r.c_.push(e),i.Dp&&(a.docProps=at(i.Dp)),pt(i.options,function(t,e){"_ps"!==t&&Q.Workbook.Pp[t]!==e&&(_.lossless[t]=e)}),ot&&(l=et.Functions.setLanguagepackage)&&(A=l(),l("en")),h={},L=wt(i),d=i.getNamedStyles(),v=new Mt.StyleManager,s=new tt.SharedStrings,m=!(g={styleManager:v,sharedStrings:s}),p=[{style:null}],S={},w={},D=_.lossless.renamedStylesMap,Object.keys(d).forEach(function(t){var e=d[t].name;e!==mt().NORMAL?p.push({style:d[t]}):(p[0].style=d[t],m=!0),S[e]=1}),j=function(r){var o,t,a,o=bt(i,r);if(!o)return"continue";t={sheet:o},it.Worksheet.et(o,"getActualToSJSFormatSheet",t),a=(o=t.sheet).getNamedStyles(),Object.keys(a).forEach(function(t){var e,n,i,e=a[t].name;if(!At(e)&&!_t(e)){for(n=e,i=at(a[t]);S[n]||255<n.length;)n=Lt(n,o.name());i.name=n,m||i.name!==mt().NORMAL?p.push({sheetId:r,style:i}):(p[0]={sheetId:r,style:a[t]},m=!0),S[n]=1,e!==n&&(w[e]=w[e]||{},w[e][o.name()]=n,D[n]=e)}})},c=0;c<L;c++)j(c);for(v.gv=w,(b=q.Util.ko(n))||o&&p[0]&&p[0].style?!b||p[0]&&p[0].style||p.shift():(y=bt(i,0),C=o&&y&&!y.NMi?y.getDefaultStyle():{},O=Ot(),Object.keys(C).forEach(function(t){"_id"!==t&&"name"!==t&&(O[t]=C[t])}),p[0]={style:O},m=!0),p.forEach(function(t){v.getNamedStyleIndex(t.style,3,gt,t.sheetId,!b)}),b||(r=p[0].style.clone(!0),(0,tt.AL)(r),v.getStyleIndex(r)),v.updateNamedStylesParentName(),C=m?p[0]&&p[0].style:(y=bt(i,0),o&&y&&!y.NMi?y.getDefaultStyle():Ot()),g.defaultStyle=C,tt.SJSColumnWidthHelper.setMaxDigitWidth(Dt(C,i)),Q.Workbook.fh&&pt(Q.Workbook.fh,function(t,e){e.preToSJSFormat&&e.preToSJSFormat.call(i,a,g,n)}),Y={n_:lt,c_:[]},e={n_:$.XFileConstants.Dr,xmlns:$.RelationshipConstants._r},K=Ut(i,e),z=0,a.workbook.rels=e,M=W=0;M<L;M++)if(y=bt(i,M)){if(k=K[z],f=Ft(i,M),z++,T=ft+k,(x=(f||y).wh(a,g,n)).order=(f||y).E0i-W,h[T]=x,T=y.name(),o&&y.hl&&!V&&(a.theme=V=x&&x.lossless&&x.lossless.theme),(G=x.lossless.definedNames||[])&&G.length)for(c=0;c<G.length;c++)B=G[c],G[c]=ct({name:B.name,localSheetId:M,e:B.e,comment:B.comment,isReadOnly:B.isReadOnly},B.formula);x.richValueDataArray&&0<x.richValueDataArray.length&&(x.richValueDataArray.forEach(function(t){t.imgFileName=Tt(t.imageBase64Data,gt,a)}),a.workbook.lossless.richValueDataArray=a.workbook.lossless.richValueDataArray.concat(x.richValueDataArray),delete x.richValueDataArray),(I=x.printInfo)&&(P=I.rowStart,N=I.rowEnd,R=I.columnStart,E=I.columnEnd,-1===P&&-1===N&&-1===R&&-1===E||(P=y.getCalcService(),N=y.Uw(),P&&N&&(R=y.getCustomName("Print_Area"))&&(E=R.getExpression(),H=R.getRow(),U=R.getColumn(),J=R.getComment(),R=R.isReadOnly(),P=P.unparse(N,E,H,U,!1,!0,1),G.push(ct({name:"_xlnm.Print_Area",localSheetId:M,comment:J,isReadOnly:R},P)))),N=Ht(I.repeatRowStart,I.repeatRowEnd,gt,gt,T),E=Ht(gt,gt,I.repeatColumnStart,I.repeatColumnEnd,T),H=void 0,N&&E?H=E+","+N:N?H=N:E&&(H=E),H&&G.push(ct({name:"_xlnm.Print_Titles",localSheetId:M},H)),delete x.printInfo),x.lossless.definedNames=G,U=void 0,(J=y.visible())===nt.SheetTabVisible.hidden?U="hidden":J===nt.SheetTabVisible.veryHidden&&(U="veryHidden"),R={n_:ft,"r:id":ht+k,name:It(T),sheetId:k,state:U,lossless:{tabSelected:y.b2()?"1":gt}},Y.c_.push(R)}else W++;return a.workbook.c_.push(Y),a.workbook.lossless.richValueDataArray=Wt(a.workbook.lossless.richValueDataArray),X.GC$.isEmptyObject(h)||(a.sheets=h),a.styles={},Q.Workbook.fh&&pt(Q.Workbook.fh,function(t,e){e.wh&&e.wh.call(i,a,g,n)}),(0,rt.l2e)(i,a),a.styles=v.bv(a.styles,v.wh(n)),a.sharedStrings=s.wh(),(Z=i.sheetTabStyles)&&(r=i.sheetTabStyles.all(),X.GC$.isEmptyObject(r)||(a.workbook.lossless.sheetTabStylesMap=r)),v.dispose(),1!==t.referenceStyle&&vt(t.iterativeCalculation)&&vt(t.iterativeCalculationMaximumIterations)&&vt(t.iterativeCalculationMaximumChange)||(e={n_:"calcPr",calcId:0},1===t.referenceStyle&&(e.refMode="R1C1"),t.calculationMode===nt.CalculationMode.manual&&(e.calcMode="manual"),!0===t.iterativeCalculation&&(e.iterate=1),vt(t.iterativeCalculationMaximumIterations)||(e.iterateCount=t.iterativeCalculationMaximumIterations),vt(t.iterativeCalculationMaximumChange)||(e.iterateDelta=t.iterativeCalculationMaximumChange),a.workbook.c_.push(e)),Gt(a.workbook,$.WorkbookNodeOrder),ot&&l&&l(A),a},Q.Workbook.prototype.fb=function(t,e){var n,t,n=this;Z.culture(""),n.Zp(),e&&e.calcOnDemand&&(n.options.calcOnDemand=!0),e&&!1===e.dynamicReferences&&(n.options.dynamicReferences=!1),!0===t&&(n.options.allowDynamicArray=!0),n.Wp=new _(n,-1,n.options.allowUndo),ot&&(n.Qp(!0),(t=n.Lp).suspendAdjust(),t.suspend(),t.lb=e&&!e.fullRecalc),n.Kp=-1,n.clearSheets(),n.clearSheetTabs()},Q.Workbook.prototype.hb=function(t){var e,n,i,r,r,r,o,a,r,r,e,n=this.options,i=t.workbook.lossless;if(i)for(o in r=i.canUserEditFormula,St(r)&&(n.allowUserEditFormula=r),r=i.allowDragDrop,St(r)&&(n.allowUserDragDrop=r),r=i.allowDragFill,St(r)&&(n.allowUserDragFill=r),n)A(n,o)&&(a=i[o],St(a))&&(n[o]=a);(r=st(t.workbook,"extLst"))&&r.c_&&r.c_[0]&&r.c_[0]["xmlns:xcalcf"]===$.XFileConstants.Cs&&(n.allowDynamicArray=!0),(r=st(t.workbook,"calcPr"))&&("R1C1"===r.refMode&&(n.referenceStyle=1),"manual"===r.calcMode&&(n.calculationMode=nt.CalculationMode.manual),n.iterativeCalculation=1===parseInt(r.iterate,10),n.iterativeCalculationMaximumIterations=vt(r.iterateCount)?100:parseInt(r.iterateCount,10),n.iterativeCalculationMaximumChange=vt(r.iterateDelta)?.001:parseFloat(r.iterateDelta))},Q.Workbook.prototype.db=function(t){var e,e,n,i,r,r,o,a,s,u,c,f,l,l,l,h,h,h,i,d,v,r,i,g,n=this,i=n.options,r=st(t.workbook,"bookViews"),r=st(r,"workbookView");if(r){if(r.showHorizontalScroll&&(i.showHorizontalScrollbar="0"!==r.showHorizontalScroll),r.showVerticalScroll&&(i.showVerticalScrollbar="0"!==r.showVerticalScroll),r.showSheetTabs&&(i.tabStripVisible="0"!==r.showSheetTabs),i.tabStripRatio=vt(r.tabRatio)?.6:r.tabRatio/1e3,r.firstSheet&&n.startSheetIndex(+r.firstSheet),o=0,r.activeTab!==gt)o=+r.activeTab;else if(t.sheets){if(a=st(t.workbook,lt).c_,s=t.workbook.rels&&t.workbook.rels.c_,a&&s){for(u=[],c=0;c<a.length;c++)l=(f=a[c])[dt],(l=(l=ut(s,l))&&l.Target)&&u.push(n.getSheetRelsName(l));for(c=0;c<u.length;c++)if((h=t.sheets[u[c]])&&(h=st(h,"sheetViews"))&&(h=st(h,"sheetView"))&&"1"===h.tabSelected){o=c;break}}}else if((d=null==(i=st(t.workbook,"sheets"))?void 0:i.c_)&&0<d.length)for(v=0;v<d.length;v++)if("1"===(null==(e=null==(e=null==d?void 0:d[v])?void 0:e.lossless)?void 0:e.tabSelected)){o=v;break}i=(r=n.getActiveSheetOrSheetTab())&&r.b2(),n.I2(o,2),null!=(g=n.getActiveSheet())&&g.b2(!0,!1),r&&i&&n.getActiveSheetOrSheetTab()!==r&&r.b2(!0,!1)}},Q.Workbook.prototype.mb=function(t,e,n,i,r,o,a){var s,u,c,f,l,h,d,v,g,m,p,S,w,p,S,p,b,S,p,p,s=this,u=r.sheetNamedStyles;for(d in o=o||{},c=!(s.Hp={})!==a.includeUnusedStyles,f=e.styles&&e.styles.namedStylesMap,l=q.Util.ko(a),h=!0,f)f.hasOwnProperty(d)&&(v=h&&(d===mt().NORMAL||!l&&0===f[d]),l&&!c&&!v&&vt(t.originNamedStylesXfs.Lh[d])||(g=t.getNamedStyle(f[d],d,l),vt(g)&&(g={foreColor:"Text 1 0",themeFont:"Body",font:"normal normal 14.7px Calibri",locked:!0,textIndent:0,wordWrap:!1,vAlign:2,hAlign:3}),l||g.formatter!==mt().GENERAL||delete g.formatter,v&&(h=!1,g.name="Normal",g.font=Dt(g,s,i,n),tt.SJSColumnWidthHelper.setMaxDigitWidth(g.font),delete(m=g.clone()).name,r.defaultStyle=m),g.name=o[g.name]||g.name,g.sheetId!==gt?(u[g.sheetId]||(u[g.sheetId]=[]),u[g.sheetId].push(g)):s.$p(g)));!1!==h&&(p=st(e.workbook,lt).c_,S=e.workbook.rels&&e.workbook.rels.c_,p=(w=p[0])[dt],m=b=void 0,m=(m=(b=(p=(S=ut(S,p))&&S.Target)?(S=s.getSheetRelsName(p),e[p=s.getSheetRelsDir(p)]&&e[p][S]):e.sheets.sheet1)?b.lossless&&b.lossless.defaultStyle:m)||{hAlign:3,imeMode:1,themeFont:"Body",vAlign:0},(p=new F.Style).fromJSON(m,gt,gt),p.font=Dt(p,s,i,n),tt.SJSColumnWidthHelper.setMaxDigitWidth(p.font),r.defaultStyle=p),a&&a.fileType===nt.OpenSaveFileType.excel&&t.buildDummyNamedStyles(s)},t.Sp=Ct,Q.Workbook.prototype.yh=function(r,o,n){var t,e,i,a,F,_,A,L,D,s,u,c,f,l,h,d,j,v,g,m,p,S,O,w,b,C,y,M,k,T,x,G,V,Y,K,B,z,W,I,P,N,R,E,H,J,U,D=[],s=this;if(s.zp(),r){n=n||function(){},u=q.Util.Mo(o),(o=o||{}).progress||(o.progress=function(t){}),o.loadStatus={total:0,valuesLoad:0,formulaLoad:0},c=function(t){s.pb(tt.Events.ProgressChanged,{loadStatus:o.loadStatus,progress:t.progress,sheetName:t.sheetName}),o.progress({step:t.step,sheetName:t.sheetName,progress:t.progress})},s.Vp&&s.Vp.terminate(),s.Vp=new yt.LoadTasks(function(){var t,e,n,n,t=Ct(s);if(t&&!t.loaded)for(e=this.tasks.length-1;0<=e;e--)if((n=this.tasks[e].args[0])&&n.Ut&&n.name&&n.name()===t.name())return n=this.tasks[e],this.tasks.splice(e,1),n;return this.tasks.pop()},function(){var t=Ct(s);return u&&t&&(s.ib.eb||t.isEditing()||t.rt.rb||t.rt.ob||t.rt.ab)},c),s.suspendPaint(),s.suspendEvent(),f=tt.hi.ai(),s.Bp=!0,l=Z.culture(),h=!1;try{if(s.fb(r.workbook.lossless&&r.workbook.lossless.allowDynamicArray,o),s.hb(r),s.Dp=at(r.docProps),(d=new Mt.StyleManager).yh(r.styles),(j=new tt.SharedStrings).yh(r.sharedStrings),v={},Object.keys(r).forEach(function(t){-1<t.indexOf(Nt)&&(v[t]=r[t])}),g=void 0,g=(r.sheets&&r.sheets.sheet1&&r.sheets.sheet1.lossless&&r.sheets.sheet1.lossless.theme?r.sheets.sheet1.lossless:r).theme,p=m=void 0,g&&"string"!=typeof g?g&&(O=st(g,"themeElements"),w=st(O,"fontScheme"),m=xt(w,"majorFont&latin").typeface,p=xt(w,"minorFont&latin").typeface):((S=new kt.Theme(gt)).yh("string"==typeof g?g:"Office"),m=S.headerFont(),p=S.bodyFont()),b={drawings:r.drawings,tables:r.tables,charts:r.charts,media:r.media,ctrlProps:r.ctrlProps,comments:v,pivotTables:r.pivotTables,slicers:r.slicers,slicerCaches:r.slicerCaches,timelineCaches:r.timelineCaches,timelines:r.timelines,styleManager:d,sharedStrings:j,theme:r.theme,sheetNamedStyles:{},dataEffectByInflate:{}},s.mb(d,r,m,p,b,r.workbook.lossless&&r.workbook.lossless.renamedStylesMap,o),Q.Workbook.fh&&pt(Q.Workbook.fh,function(t,e){var e=e.preFromSJSFormat;e&&e.call(s,r,b,o)}),D.push((0,rt.v2e)(s,r)),C=st(r.workbook,"definedNames"),b.workbookNames=C&&C.c_,M=(y=st(r.workbook,lt).c_||[]).length,St(M)||(M=Q.Workbook.Jp),k=r.workbook.rels&&r.workbook.rels.c_,o&&(o.incrementLoadTask=s.Vp),k){for(T=[],x=[],G=0;G<M;G++)Y=(V=y[G])[dt],B=(K=ut(k,Y))&&K.Target||"",z=s.getSheetRelsName(B),W=s.getSheetRelsDir(B),I=null==(t=null==r?void 0:r[W])?void 0:t[z],P=Pt(Bt(V.name)),N=!0,R=null==(e=null==I?void 0:I.lossless)?void 0:e.addition,E=(null==I?void 0:I.sheetType)||(null==(i=null==I?void 0:I.lossless)?void 0:i.sheetType),R||E?(H=s.bb(P,E||0))?(s.yb(G-s.sheets.length,0,H),T.push([H,R])):N=!1:(J=s.S2(P),s.A2(G,0,J)),N&&(x[G]=I);for(G=0;G<M;G++)(I=x[G])&&Yt(s,I,G,b,o,!q.Util.wo(o,s.v2)),Vt(bt(s,G),y[G]);Et(T,s,o&&o.fullRecalc,!0)}s.db(r),U={},null!=(F=null==(a=r.workbook)?void 0:a.lossless)&&F.customData&&(U.customData=r.workbook.lossless.customData),s.sheetTabStyles.O2e=null!=(L=null==(A=null==(_=r.workbook)?void 0:_.lossless)?void 0:A.sheetTabStylesMap)?L:{},s.Vp.endingCallback=function(){s.UCe(),Q.Workbook.fh&&pt(Q.Workbook.fh,function(t,e){var i=u&&e.Mb||e.yh;i&&s.Vp.addTask(function(t,e,n){i.call(s,r,b,o)},[s,r,o])}),s.Vp.endingCallback=function(){var t,e,e;d.dispose(),q.Util.wo(o,s.v2)||Rt.call(s,o),t=!1,ot&&((e=s.Lp).resumeAdjust(),o.fullRecalc?(Kt(s),e.resume(!(t=!0),!1,!e.calcOnDemand)):(e.resumeWithoutCalc(),delete e.lb,s.Lp.processDynamicRef())),Q.Workbook.et(s,"initCustomName"),t||Kt(s),s.options.backgroundImage&&s.nb(),e=Ct(s),c({progress:1,step:"whole workbook loaded.",sheetName:e&&e.name()}),u?e&&e.repaint():zt(s,l,f,e),e&&s.ki(tt.Events.ActiveSheetChangedInternal,{oldSheet:void 0,newSheet:e}),n(U)},s.Vp.start()},s.Vp.start()}catch(t){throw h=!0,t}finally{(u||h)&&zt(s,l,f,Ct(s))}return Promise.all(D)}}},"./dist/core/workbook/workbook.js":function(P,N,t){"use strict";var s,e,o,b,E,R,L,D,j,O,V,v,Y,K,C,z,W,J,Z,Q,X,q,w,H,c,t,$,tt,et,nt,y,U,f,F,it,_,rt,A,ot,at,st,ut,a,u,ct,ft,lt,g,ht,n,dt,l,vt,d,gt,h,m,p,mt,pt,St,wt,bt,Ct,S,yt,Mt,kt,M,k,T,Tt,x,G,xt,Gt,Bt,It,Pt,Nt,e,B,Rt,Et,Ht,r,Ut,e;function Ft(t){t.getActiveSheet()}function _t(t,e){return E.Bf.Zl()%1!=0||t.zoom()%1!=0||t.parent&&t.parent.options.scrollByPixel&&e&&t.Cb&&t.Cb.Sb((0,E.Ec)(t.Tb,t.Ab,1,1))}function At(e,n){return U.setTimeout(function(){e.invalidateLayout(),e.repaint(),n.Ib=F;var t=e.ot();n.xb(e,t.x,t.width),n.Nb(e,t.y,t.height)},200)}function Lt(t,e,n){t.ki(E.Events.ActiveSheetChanged,{oldSheet:e,newSheet:n})}function Dt(t,e){t.ki(E.Events.ActiveSheetChanging,e)}function jt(t,e){t.ki(E.Events.ActiveSheetChangingInternal,e)}function Ot(t,e,n){t.ki(E.Events.ActiveSheetChangedInternal,{oldSheet:e,newSheet:n})}function i(t){this.kb=t}function Vt(t,e){e?(0,b.GC$)(t).removeClass(M):(0,b.GC$)(t).addClass(M)}function Yt(t,e,n){var i,r,e,o,e,i=E.I.fl("gc-vertical-scrollbar"+Ct),o=2007<y(i.zIndex)?1:0,e=e-n,e=e%2==0?(r=e/2)-o:r=(e-o)/2;(0,b.GC$)(t).css({"box-sizing":wt,border:p,"border-color":p,"border-left-style":bt,"border-left-width":o+d,"border-left-color":i.borderLeftColor,"background-color":i.backgroundColor,width:n,padding:"0px "+r+"px 0px "+e+d,margin:0})}function Kt(t,e,n){var i,r,e,o,e,i=E.I.fl("gc-horizontal-scrollbar"+Ct),o=2007<y(i.zIndex)?1:0,e=e-n,e=e%2==0?(r=e/2)-o:r=(e-o)/2;(0,b.GC$)(t).css({"box-sizing":wt,border:p,"border-color":p,"border-top-style":bt,"border-top-width":o+d,"border-top-color":i.borderTopColor,"background-color":i.backgroundColor,height:n,padding:e+"px 0px "+r+"px 0px",margin:0})}function zt(t){var e=E.I.fl("gc-footer-corner"+Ct);(0,b.GC$)(t).css({border:p,padding:0,margin:0,"background-color":e.backgroundColor})}function Wt(t,e,n,i,r){var o,a,e,o=t._b(),a=e.left-n.left,e=e.top-n.top;if(a<i&&i<o.width+a&&e<r&&r<o.height+e)return{horizontalScrollBarHitInfo:{element:t.hitTest(i-a,r-e).element},x:i,y:r}}function Jt(t,e,n,i,r){var o,a,e,o=t._b(),a=e.left-n.left,e=e.top-n.top;if(a<i&&i<o.width+a&&e<r&&r<o.height+e)return{verticalScrollBarHitInfo:{element:t.hitTest(i-a,r-e).element},x:i,y:r}}function Zt(t){var t=(0,b.GC$)(t);return{top:Qt(t,"borderTopWidth"),right:Qt(t,"borderRightWidth"),bottom:Qt(t,"borderBottomWidth"),left:Qt(t,"borderLeftWidth")}}function Qt(t,e){var n=t.css(e);switch(n){case"thin":return 1;case"medium":return 3;case"thick":return 5;default:return parseFloat(n)}}function Xt(t){var t=(0,b.GC$)(t);return{top:parseFloat(t.css("paddingTop")),right:parseFloat(t.css("paddingRight")),bottom:parseFloat(t.css("paddingBottom")),left:parseFloat(t.css("paddingLeft"))}}function qt(t){var e,n,i,n,t,r,o,e=t.getBoundingClientRect().width,n=Zt(t),i=n.left,n=n.right,t=Xt(t),r,o;return e-i-n-t.left-t.right}function $t(t){return C.SheetType[t]}function te(t){var e,n,i,r,o,e=t.getSheetCount(),n=t.getSheetTabCount();if(0!==e&&0!==n)for(i=t.qv(),r=0;r<i.length;r++)if(o=i[r],r<e&&o.NMi||e<=r&&!o.NMi)return;return 1}function ee(t){var e={calcSources:[]};return v.Worksheet.et(t,"getRelatedCalcSources",e),e.calcSources}function I(t,e){var i,n,e,i=this;i.name="",i.sheetTabStyles=new W.default(i),i.Eb=!1,i.Kp=-1,i._2=0,i.jb=-1,i.Bp=!1,i.options=$(Ut,function(t,e,n){i.Ob(t,e,n)}),i.Zp(e),e&&"white"===e.backColor?i.Rb=!0:i.Rb=!1,n=1,e&&typeof(e=e.sheetCount)==ot&&(n=e),"string"==typeof t&&(t=f.getElementById(t)),i.Ti=t,i.Hc(n,t)}Object.defineProperty(N,"__esModule",{value:!0}),N.Workbook=void 0,s=t("./dist/core/workbook/workbookpanelex.js"),e=t("./dist/core/core.ns.js"),o=t("Common"),b=t("./dist/core/util/domUtil.js"),E=t("./dist/core/util/common.js"),R=t("./dist/core/util/imageLoader.js"),L=t("./dist/core/worksheet/worksheet-actions.js"),D=t("./dist/core/workbook/sheettab.js"),j=t("./dist/core/workbook/sheettab2007.js"),O=t("./dist/core/worksheet/stylehelper.js"),V=t("./dist/core/worksheet/clipboardhelper.js"),v=t("./dist/core/worksheet/worksheet.js"),Y=t("CalcEngine"),K=!!Y,C=t("./dist/core/core.enum.js"),z=t("DataManager"),W=t("./dist/core/workbook/sheettabStyleManager.js"),J=o.Common.zf,Z=o.Commands.UndoManager,Q=o.Commands.CommandManager,X=b.GC$.each,q=b.GC$.extend,w=K,H=o.Common.lt.ht,c=E.mt.En,t=E.mt.p0,$=E.mt.b0,tt=E.mt.yt,et=E.mt.T1,nt=o.Common.CultureManager,y=parseInt,U=window,f=document,F=null,it=Math.round,_=Math.min,rt=Math.floor,A=Math.abs,ot="number",at="mousedown",st="mousemove",ut="mouseup",a="mouseenter",u="mouseleave",ct="scroll",ft="resize",lt="focus",g=".gcSpread",ht=".gcSpreadInternal",n=".gcScrollbar",dt="span",l="div",vt="table",d="px",gt="100%",h="gc-scroll-handle",m="gc-scroll-bar",p="none",mt="display",pt="block",St="absolute",wt="content-box",bt="solid",Ct=" ui-widget-header ui-state-default btn btn-default",S="gc-scroll-mobile-container",yt="gc-scroll-mobile-container-horizontal",Mt="gc-scroll-mobile-container-vertical",kt="gc-scroll-mobile-spread-hovering",M="gc-scroll-mobile-state-hide",k="gc-scroll-mobile-state-hover",T=U.jQuery,Tt="cultureChanged",x="workbook",G="gcUIElement",xt="gc-no-user-select",Gt="visible",Bt="overflow",It="en-US",Pt=80,Nt=1,e=new o.Common.ResourceManager(e.SR,"Sheets"),B=e.getResource.bind(e),Rt=100,Et=30,Ht=40,i.Bb=function(t,e){var t,n,n,t=t.data,n=t.ib;n.Lb&&(U.clearTimeout(n.Lb),n.Lb=F),(n=t.jg())&&e&&n.Fb(t,e)},i.Pb=function(t){var t,e,t=t.data,e=t.jg();e&&e.Gb(t)},i.Ub=function(t,e){var n,i,r,r,i,r,i,n=t.data;n&&((i=n.getActiveSheet())?((r=n.zb.Hb)&&r.Vb&&(i.Oi=!0),i.Zg()):(r=n.getActiveSheetTab())&&r.Zg(),1===(i=n.options.showScrollTip)||3===i)&&(i=(r=(0,b.GC$)(t.srcElement||t.target)).parent(),r&&(r.hasClass(h)||r.hasClass(m))||i&&(i.hasClass(h)||i.hasClass(m)))&&n.ib.Yb(!1,t,e)},i.Zb=function(t,e){var t,n,n,t=t.data,n=t.ib;n.Lb&&(U.clearTimeout(n.Lb),n.Lb=F),(n=t.jg())&&e&&n.Wb(t,e)},i.Qb=function(t){var t,e,t=t.data,e=t.jg();e&&e.Kb(t)},i.Jb=function(t){var e,n,i,i,n,i,n,e=t.data;e&&((n=e.getActiveSheet())?((i=e.Xb.Hb)&&i.Vb&&(n.Oi=!0),n.Zg()):(i=e.getActiveSheetTab())&&i.Zg(),2!==(n=e.options.showScrollTip)&&3!==n||(i=(0,b.GC$)(t.srcElement||t.target))&&(n=i.parent(),i.hasClass(h)||n&&n.hasClass(h)||i.hasClass(m)||n&&n.hasClass(m))&&e.ib.Yb(!0,t))},i.qb=function(t,e){var t,n,n,n,e,t=t.data,n=t.ib;n.Lb&&(U.clearTimeout(n.Lb),n.Lb=F),(n=t.jg())&&e&&(n.onHorizontalDockScroll(t,e),1!==(n=t.options.showScrollTip)&&3!==n||(e=t.ib.$b(!1,!0),t.ny(e)))},i.ey=function(t){var t=t.data;t&&t.iy()},i.ry=function(t){var e,n,i,r,i,o,t,e=B(),n=t.data,i=t.scrollbar;n.options.enableAccessibility&&(r=(0,b.GC$)(i.oy()).offset(),i=i.hitTest(t.x-r.left,t.y-r.top),t=(o={thumbButton:e.ARIA_Scrollbar_Thumb_Button,trackButton:e.ARIA_Scrollbar_TRACK_Button,leftButton:e.ARIA_Scrollbar_Left_Button,rightButton:e.ARIA_Scrollbar_Right_Button,upButton:e.ARIA_Scrollbar_Top_Button,downButton:e.ARIA_Scrollbar_Bottom_Button})[i.element],n.n2(t))},i.prototype.L0=function(){this.kb=F},i.prototype.ay=function(t,e,n,i){var r=this;t&&(r.eb=!0,r.uy=i?t.Tb:e,r.fy=i?t.ly:n,r.hy=i?e:t.Ab,r.vy=i?n:t.my,U.setTimeout(function(){r.gy(t)},0))},i.prototype.gy=function(t){var e=this;t&&e.eb&&(e.eb=!1,e.py(t))},i.prototype.py=function(t){var e,n,i,r,o,a,s,e=this;e.by||(e.by=!0,n=e.kb,t&&(i=n.options.showScrollTip,r=e.uy,o=e.fy,a=e.hy,s=e.vy,r!==t.Tb||o!==t.ly?(e.yy(t,r,o),2!==i&&3!==i||n.ny(e.$b(!0))):a===t.Ab&&s===t.my||(e.wy(t,a,s),1!==i&&3!==i)||n.ny(e.$b(!1))),e.by=!1)},i.prototype.yy=function(t,e,n,i){var r,o,a,s,u,c,c,i,f,l,h,d,v,g,m,p,S,w,b,C,y,M,k,T,x,x,G,B,I,x,P,N,l,i,x,d,R,h,S,r=this;if(r.Ib&&(U.clearTimeout(r.Ib),r.Ib=F),t&&(o=t.Tb,a=t.ly,s=t.zoom(),u=t.parent.options.scrollByPixel,(c=!H(i))||e!==o||n!==a))if(c&&(o=i),t.Tb=e,t.ly=n,0<t.My)(o!==e||u&&a!==n)&&t.ki(E.Events.TopRowChanged,{sheet:t,sheetName:t.name(),oldTopRow:o,newTopRow:e,oldOffset:A(a/s),newOffset:A(n/s)});else{if(c=!1,l=(f=(i=t.options).sheetAreaOffset.top)+2,h=t.kg,v=(d=t.Fi()).Cy,g=t.Sy(d),m=d.Ty,p=d.Ay,S=d.Iy,w=d.width+i.sheetAreaOffset.left,y=C=b=void 0,k=(M=t.Dn).J(),T=t.Ny,t.tables&&0===t.frozenRowCount()&&(x=t.tables.Dy())&&(x.x=x.x-2,x.width=x.width+4,x.y=f,x.height=v,t.k1=!0,M.D1(k,x)),o<e||e===o&&A(n)>A(a)){if(G=x=void 0,x=(B=t._y(1))&&0<B.length?B.findRow(e):x){for(G=B[I=B.length-1];G&&G.y+G.height>v+g;)G=B[I-=1];G&&G.row>e&&(c=!0,C=(h||d).x,y=x.y+A(n),b=G.y+G.height-y-l,M.Ey(C,y,w,b,C,v),i.colHeaderVisible||(t.invalidateLayout(),M.D1(k,new E.Rect(C,0,w,f+1))),t.invalidateLayout(),M.D1(k,new E.Rect(C,v+b,w,(x=T?g:g+S+m)-b)),M.jy(k,new E.Rect(C,v-2,w,2+(x-=T?0:m))),this.xb(t,C,w))}}else{for(P=0,N=e;N<o&&P<g;N++)P+=t.Gt(N);(P+=A(a)-A(n))<g&&(c=!0,C=(h||d).x,y=v,b=g-P,0<t.frozenTrailingRowCount()&&--b,l=0,!T&&0<m&&(i=_(h.height-(l=S)-1,p-1+P),M.Ey(C,p-1,w,l+1,C,i)),x=T?0:_(P,m)-1,M.Ey(C,y,w,b+x,C,y+P),t.invalidateLayout(),d=t.rowOutlines&&!t.rowOutlines.Oy()?t.rowOutlines.Ry()+f+1:0,M.D1(k,new E.Rect(C,y-f,w,P+f+d+5)),M.jy(k,new E.Rect(C,y-2,w,R=g+x+l+2)),this.xb(t,C,w))}c||(t.invalidateLayout(),t.repaint()),(o!==e||u&&a!==n)&&t.ki(E.Events.TopRowChanged,{sheet:t,sheetName:t.name(),oldTopRow:o,newTopRow:e,oldOffset:A(a/s),newOffset:A(n/s)}),(h=t.rt)&&h.By(),S=o===t.Tb&&a!==t.ly,c&&_t(t,S)&&(r.Ib=At(t,r))}},i.prototype.xb=function(t,e,n){var i=t.Dn,r=i.J();this.Ly(t).concat(this.Fy(t)).forEach(function(t){var t=t.layout,t=new E.Rect(e,t.y,n,t.height);i.O1(t),i.jy(r,t)})},i.prototype.Ly=function(t){var e,n,e,i,r,o,n,a,n,e=this,n=t.getSelections();return!(1===n.length&&0<t.frozenRowCount())||(e=e.kb.options.scrollByPixel,i=t.Tb,r=t.ly,o=n[0].row,n=n[0].row+n[0].rowCount-1,e&&n==i-1)?[]:(a=[],(o===i+1||o<i&&i<=n||n==i-1||e&&o===i&&0!==r)&&(n=t._y(0))&&0<n.length&&a.push({layout:n[n.length-1]}),a)},i.prototype.Fy=function(t){var e,n,e,i,r,n,o,a,s,a,t,u,t,u,e=this,n=t.getSelections();return 1===n.length&&0<t.frozenTrailingRowCount()?(e=e.kb.options.scrollByPixel,i=t.getViewportBottomRow(1),r=n[0].row,n=n[0].row+n[0].rowCount-1,o=[],a=(s=(a=t._y(2))&&0<a.length)?a[0]:F,t=(u=(t=t._y(1))&&0<t.length)?t.findRow(i):F,u=s&&u&&a.y!==t.y+t.height,(n==i-1||r<=i&&i<n||r===i+1||e&&n===i&&u)&&s&&o.push({layout:a}),o):[]},i.prototype.wy=function(t,e,n,i){var r,o,a,s,u,c,u,i,f,l,h,d,v,g,m,p,S,w,b,C,y,M,k,T,x,G,B,I,x,P,N,l,i,x,d,R,h,S,r=this;if(r.Ib&&(U.clearTimeout(r.Ib),r.Ib=F),t&&(o=t.Ab,a=t.my,s=t.zoom(),(u=!H(i))||e!==o||n!==a))if(c=t.parent.options.scrollByPixel,u&&(o=i),t.Ab=e,t.my=n,0<t.My)(o!==e||c&&n!==a)&&t.ki(E.Events.LeftColumnChanged,{sheet:t,sheetName:t.name(),oldLeftCol:o,newLeftCol:e,oldOffset:A(a/s),newOffset:A(n/s)});else{if(u=!1,l=(f=(i=t.options).sheetAreaOffset.left)+2,h=t.kg,v=(d=t.Fi()).Py,g=t.Gy(d),m=d.Uy,p=d.Hy,S=d.zy,w=d.height+i.sheetAreaOffset.top,y=C=b=void 0,k=(M=t.Dn).J(),T=t.Vy,o<e||e===o&&A(n)>A(a)){if(G=x=void 0,x=(B=t.Yy(1))&&0<B.length?B.findCol(e):x){for(G=B[I=B.length-1];G&&G.x+G.width>v+g;)G=B[I-=1];G&&G.col>e&&(u=!0,b=x.x+A(n),C=(h||d).y,y=G.x+G.width-b-l,M.Ey(b,C,y,w,v,C),i.rowHeaderVisible||(t.invalidateLayout(),M.D1(k,new E.Rect(0,C,f+1,w))),t.invalidateLayout(),M.D1(k,new E.Rect(v+y,C,(x=T?g:g+S+m)-y,w)),M.jy(k,new E.Rect(v-2,C,2+(x-=T?0:m),w)),this.Nb(t,C,w))}}else{for(P=0,N=e;N<o&&P<g;N++)P+=t.nn(N);(P+=A(a)-A(n))<g&&(u=!0,b=v,C=(h||d).y,y=g-P,0<t.frozenTrailingColumnCount()&&--y,l=0,!T&&0<m&&(i=_(h.width-(l=S)-1,p-1+P),M.Ey(p-1,C,l+1,w,i,C)),x=T?0:_(P,m)-1,M.Ey(b,C,y+x,w,b+P,C),t.invalidateLayout(),d=t.columnOutlines&&!t.columnOutlines.Oy()?t.columnOutlines.Ry()+f+1:0,M.D1(k,new E.Rect(b-f,C,P+f+d+5,w)),M.jy(k,new E.Rect(v-2,C,R=g+x+l+2,w)),this.Nb(t,C,w))}u||(t.invalidateLayout(),t.repaint()),(o!==e||c&&a!==n)&&t.ki(E.Events.LeftColumnChanged,{sheet:t,sheetName:t.name(),oldLeftCol:o,newLeftCol:e,oldOffset:A(a/s),newOffset:A(n/s)}),(h=t.rt)&&h.By(),S=o===t.Ab&&a!==t.my,u&&_t(t,S)&&(r.Ib=At(t,r))}},i.prototype.Nb=function(t,e,n){var i=t.Dn,r=i.J();this.Zy(t).concat(this.Wy(t)).forEach(function(t){var t=t.layout,t=new E.Rect(t.x,e,t.width,n);i.O1(t),i.jy(r,t)})},i.prototype.Zy=function(t){var e,n,e,i,r,o,n,a,n,e=this,n=t.getSelections();return!(1===n.length&&0<t.frozenColumnCount())||(e=e.kb.options.scrollByPixel,i=t.Ab,r=t.my,o=n[0].col,n=n[0].col+n[0].colCount-1,e&&n==i-1)?[]:(a=[],(o===i+1||o<i&&i<=n||n==i-1||e&&o===i&&0!==r)&&(n=t.Yy(0))&&0<n.length&&a.push({layout:n[n.length-1]}),a)},i.prototype.Wy=function(t){var e,n,e,i,r,n,o,a,s,a,t,u,t,u,e=this,n=t.getSelections();return 1===n.length&&0<t.frozenTrailingColumnCount()?(e=e.kb.options.scrollByPixel,i=t.getViewportRightColumn(1),r=n[0].col,n=n[0].col+n[0].colCount-1,o=[],a=(s=(a=t.Yy(2))&&0<a.length)?a[0]:F,t=(u=(t=t.Yy(1))&&0<t.length)?t.findCol(i):F,u=s&&u&&a.x!==t.x+t.width,(n==i-1||r<=i&&i<n||r===i+1||e&&n===i&&u)&&s&&o.push({layout:a}),o):[]},i.prototype.Mg=function(t,e,n,i){var r,o,a,s,u,c,f,l,h,o,d,d,h,o,d,h,n,h,o,d,u,n,h,u,o,d,l,c,r=this,o=r.kb,a=!1,s=!1,u=o.Xb,c=o.zb,f=o.options.scrollbarShowMax,l=o.options.scrollbarAppearance===C.ScrollbarAppearance.mobile;if(t){if(h=t.name(),e.ctrlKey){if(!o.options.allowUserZoom)return!0;if(o=t.zoom(),d=E.mt.ige(o-.05*n),t.isEditing()&&!t.endEdit())return;if(d={sheet:t,sheetName:t.name(),oldZoomFactor:o,newZoomFactor:d,cancel:!1},t.ki(E.Events.ViewZooming,d),!0===d.cancel)return!1;h={cmd:"zoom",sheetName:h,oldZoomFactor:o,zoomFactor:d.newZoomFactor},t.Qy().execute(h)}else i=i||0,o=t.Tb,d=t.ly,n=(h=r.Jy(t,n)).Ky,h=h.Xy,o!==n||d!==h?(l&&(u.qy(C.ScrollbarState.show),r.$y(!0)),r.yy(t,n,h),t.tw(),f||t.ew()):a=!0,o=t.Ab,d=t.my,n=(u=r.rw(t,i)).iw,h=u.Xy,o===n&&d===h||(l&&(c.qy(C.ScrollbarState.show),r.$y(!1)),r.wy(t,n,h),t.ow(),f)||t.aw();u=t.uw(),o=t.hitTest(e.pageX-u.left,e.pageY-u.top),(l=(d=t.sw)&&d.cellTypeHitInfo)&&(l.cellRect=t.getCellRect(d.row,d.col)),(c=t.rt).cw(o),c.fw(o)}return a&&0===i},i.prototype.hw=function(t,e){var n,i,r,o,a,s,u,c,e,o,o,e,r,f,e,r,n=t.Tb,i=t.ly,r=t.parent,o=t.zoom(),a=it(e*r.options.scrollPixel*o),s=0,e=t.Fi().Cy,o=t.dw(1).findRow(n);if(o)if(a<0){for(u=t.vw(-1),s=-(e-o.y);u<n&&a<=s;)s-=t.Gt(--n);i=s-a,n===u&&0<i&&(i=0)}else if(0<a){for(c=t.mw().Ky,s=o.y+o.height-e;n<c&&s<=a;)s+=t.Gt(++n);i=s-a-(o=t.Gt(n)),r.options.scrollbarMaxAlign?(e=t.Fi(),r=t.frozenRowCount(),f=t.getRowCount()-t.frozenTrailingRowCount()-1,c=(e=t.gw(t.Sy(e),r,f)).Ky,r=e.Xy,c<n?(n=c,i=r):n===c&&A(i)>A(r)&&(i=r)):n<c&&s-a==0?(n++,i=0):n===c&&s-a<0&&(i=-o)}return{Ky:n,Xy:i}},i.prototype.Jy=function(t,e){var n,i,r,r,o,o,e,n=t.Tb,i=t.ly,r=t.parent;return r&&r.options.scrollByPixel?r.ib.hw(t,e):(0<(r=t.frozenRowCount())&&(0===n&&0<e?n=r:e<0&&n===r-e&&(n=0)),-1!==(o=t.vw(n+e,e<0))?n=o:n+=e,o=t.pw(),e=t.mw().Ky,t.getRowCount()-r-t.frozenTrailingRowCount()<=0||o===F?n=t.Tb:(n<o?n=o:e<n&&(n=e),n===F&&(n=-1)),{Ky:n,Xy:i})},i.prototype.bw=function(t,e){var n,i,r,o,a,s,u,c,e,o,o,e,r,f,e,r,n=t.Ab,i=t.my,r=t.parent,o=t.zoom(),a=it(e*r.options.scrollPixel*o),s=0,e=t.Fi().Py,o=t.yw(1).findCol(n);if(o)if(a<0){for(u=t.ww(-1),s=-(e-o.x);u<n&&a<=s;)s-=t.nn(--n);i=s-a,n===u&&0<i&&(i=0)}else if(0<a){for(c=t.Mw().iw,s=o.x+o.width-e;n<c&&s<=a;)s+=t.nn(++n);i=s-a-(o=t.nn(n)),r.options.scrollbarMaxAlign?(e=t.Fi(),r=t.frozenColumnCount(),f=t.getColumnCount()-t.frozenTrailingColumnCount()-1,c=(e=t.Cw(t.Gy(e),r,f)).iw,r=e.Xy,c<n?(n=c,i=r):n===c&&A(i)>A(r)&&(i=r)):n<c&&s-a==0?(n++,i=0):n===c&&s-a<0&&(i=-o)}return{iw:n,Xy:i}},i.prototype.rw=function(t,e){var n,i,r,r,o,o,e,n=t.Ab,i=t.my,r=t.parent;return r&&r.options.scrollByPixel?r.ib.bw(t,e):(0<(r=t.frozenColumnCount())&&(0===n&&0<e?n=r:e<0&&n===r-e&&(n=0)),-1!==(o=t.ww(n+e,e<0))?n=o:n+=e,o=t.Sw(),e=t.Mw().iw,t.getColumnCount()-r-t.frozenTrailingColumnCount()<=0||o===F?n=t.Ab:(n<o?n=o:e<n&&(n=e),n===F&&(n=-1)),{iw:n,Xy:i})},i.prototype.Yb=function(t,e,n){var i,r,o,n,a,i,i=this,r=i.kb,a;(0,E.jf)(r)&&(i=i.$b(t,n),n=t?(o=e.pageY,e.pageX-100):(o=e.pageY-40,e.pageX-30),r.Tw(J.j0(i),n,o,!0))},i.prototype.$b=function(t,e){var n,i,n=(0,E.jf)(this.kb);return i=n?n.getScrollTooltipContent(t,e):i},i.prototype.Aw=function(t){(0,b.GC$)(t).addClass(M)},i.prototype.Iw=function(t){(0,b.GC$)(t).removeClass(M)},i.prototype.xw=function(t){(0,b.GC$)(t).addClass(k)},i.prototype.Nw=function(t){(0,b.GC$)(t).removeClass(k)},i.prototype.$y=function(t,e){var n,i,r,o,a;void 0===e&&(e=1e3),i=(n=this).kb,r=t?i.kw:i.Dw,a=function(){n.Nw(r),n.Aw(r)},(o=i.options.scrollbarAppearance=C.ScrollbarAppearance.mobile)&&(n._w(t),t?n.Ew=setTimeout(a,e):n.jw=setTimeout(a,e))},i.prototype._w=function(t){var e=this;t&&e.Ew?(clearTimeout(e.Ew),e.Ew=null):!t&&e.jw&&(clearTimeout(e.jw),e.jw=null)},r=i,Ut={allowUserDragDrop:!0,allowUserDragFill:!0,allowUserZoom:!0,allowUserResize:!0,allowUndo:!0,allowSheetReorder:!0,allowContextMenu:!0,allowUserDeselect:!0,defaultDragFillType:5,showDragFillSmartTag:!0,showHorizontalScrollbar:!0,showVerticalScrollbar:!0,scrollbarShowMax:!0,scrollbarMaxAlign:!1,tabStripVisible:!0,tabStripRatio:.5,tabStripPosition:C.TabStripPosition.bottom,tabStripWidth:80,tabEditable:!0,newTabVisible:!0,allSheetsListVisible:C.AllSheetsListVisibility.auto,cutCopyIndicatorVisible:!0,cutCopyIndicatorBorderColor:"#217346",tabNavigationVisible:!0,backColor:"white",backgroundImage:F,backgroundImageLayout:0,showResizeTip:C.ShowResizeTip.none,showDragDropTip:!0,showDragFillTip:!0,scrollIgnoreHidden:!1,highlightInvalidData:!1,showScrollTip:C.ShowScrollTip.none,grayAreaBackColor:F,useTouchLayout:!1,hideSelection:!1,resizeZeroIndicator:C.ResizeZeroIndicator.enhanced,allowUserEditFormula:!0,pivotAreaReference:1,enableFormulaTextbox:!0,referenceStyle:0,allowDynamicArray:!1,iterativeCalculation:!0,iterativeCalculationMaximumIterations:1e3,iterativeCalculationMaximumChange:.01,calcOnDemand:!1,dynamicReferences:!0,autoFitType:C.AutoFitType.cell,allowCopyPasteExcelStyle:!0,allowExtendPasteRange:!1,copyPasteHeaderOptions:C.CopyPasteHeaderOptions.allHeaders,calculationMode:C.CalculationMode.auto,allowUserDragMerge:!1,rowResizeMode:C.ResizeMode.normal,columnResizeMode:C.ResizeMode.normal,scrollByPixel:!1,scrollPixel:5,enableAccessibility:!1,allowAutoCreateHyperlink:!0,scrollbarAppearance:C.ScrollbarAppearance.skin,font:F,customList:[],numbersFitMode:C.NumbersFitMode.mask,pasteSkipInvisibleRange:!1,allowAutoExtendFilterRange:!1,allowInvalidFormula:!1,formulaFormatHint:!0,defaultSheetTabStyles:{}},I.prototype.commandManager=function(){return this.Qy},I.prototype.undoManager=function(){return this.Wp},I.prototype.Ow=function(){var t=this.Rw(),e=this.Bw;return e instanceof Array?e.concat(t):t},I.prototype.Rw=function(){var t=nt.culture(),e=[],n=[],i=nt.Fe(It).DateTimeFormat,r=nt.Fe(t).DateTimeFormat,e=this.Lw(i);return t!==It&&(n=this.Lw(r)),e.concat(n)},I.prototype.Lw=function(e){var n=[],i,r;return this.Fw=["abbreviatedDayNames","dayNames","abbreviatedMonthNames","monthNames"],this.Fw.forEach(function(t){(i=e[t])instanceof Array&&0<i.length&&(r=-1<t.indexOf("month")||-1<t.indexOf("Month"),i=r?i.slice(0,12):i,n.push(i))}),n},I.prototype.Fp=function(){var t,e,t,e=w&&this.op();e&&e.clearDirties(),this.sheets.forEach(function(t){var e;t.Uw().Gw()})},I.prototype.Ob=function(t,e,n){var i,r,o,a,i=this,r=(0,E.jf)(i),o=i.w2,a=w&&i.op();switch(t){case"allowUndo":i.Wp&&(i.Wp.Hw=e);break;case"backColor":i.Rb=!0,r&&r.zw();break;case"cutCopyIndicatorBorderColor":case"cutCopyIndicatorVisible":case"grayAreaBackColor":case"hideSelection":case"highlightInvalidData":case"resizeZeroIndicator":case"allowUserDragFill":case"allowUserDragMerge":case"numbersFitMode":case"pasteSkipInvisibleRange":r&&r.zw();break;case"backgroundImage":case"backgroundImageLayout":i.nb(),r&&r.zw();break;case"newTabVisible":case"allSheetsListVisible":case"tabNavigationVisible":case"tabStripPosition":e!==n&&i.Vw(e);break;case"tabStripWidth":e!==n&&i.Yw(e);break;case"showHorizontalScrollbar":case"showVerticalScrollbar":case"useTouchLayout":case"tabStripVisible":i.Cg();break;case"tabStripRatio":i.Xg();break;case"scrollIgnoreHidden":case"scrollbarMaxAlign":case"scrollbarShowMax":r&&(r.Zw=!0,r.Ww=!0,r.zw());break;case"scrollByPixel":r&&(r.Zw=!0,r.Ww=!0,r.ly=0,r.my=0,r.zw());break;case"scrollPixel":e<=0&&(i.options.scrollPixel=n);break;case"scrollbarAppearance":i.ib&&e!==n&&i.Qw(e);break;case"calcOnDemand":a&&(!e&&a.calcOnDemand&&i.Fp(),a.calcOnDemand=e);break;case"dynamicReferences":a&&(a.dynamicReferences=e);break;case"customList":i.Bw=e;break;case"referenceStyle":case"allowDynamicArray":case"calculationMode":case"iterativeCalculation":case"iterativeCalculationMaximumIterations":case"iterativeCalculationMaximumChange":i.Kw(t,e),r&&r.zw();break;case"defaultSheetTabStyles":o&&o.repaint()}i.ki(E.Events.WorkbookOptionsChangedInternal,{propertyName:t,value:e})},I.prototype.Qw=function(t){var e,n,n=(t=H(t)?C.ScrollbarAppearance.skin:t)===C.ScrollbarAppearance.mobile;(e=this).Xb.Jw(t),e.zb.Jw(t),e.Xw.Jw(t),e.qw(),n?e.$w():e.tM(),e.refresh()},I.prototype.Vw=function(t){var e=this;H(t)&&(t=C.TabStripPosition.bottom,e.options.tabStripPosition=t),e.nM&&(e.eM(),e.iM(),e.Cg())},I.prototype.Yw=function(t){var e=this;H(t)?e.options.tabStripWidth=t=80:t<80&&(e.options.tabStripWidth=80),e.nM&&(e.iM(),e.Cg())},I.prototype.Kw=function(t,e){var n,i,n,i=w&&this.op();if(i)switch(t){case"referenceStyle":i.useR1C1=1===e;break;case"allowDynamicArray":case"calculationMode":case"iterativeCalculation":case"iterativeCalculationMaximumIterations":case"iterativeCalculationMaximumChange":i[t]=e}},I.prototype.Hc=function(t,e){var r,n,i,o,n,r=this;for(w&&r.Qp(),r.rM=[],r.oM=c("input"),r.vf=0,r.sg=0,r.aM={fromSheet:F,isCutting:!1},r.uM={fromSheet:F,isCutting:!1},r.sM=F,r.sheets=[],r.mp=[],r.dse=[],r.Hp={},r.Bw=r.options.customList,r.Wp=new Z(r,-1,r.options.allowUndo),(n=r.Qy=new Q(r)).cM("beforeWorkbookExecute",function(t){r.fM(t)}),n.addListener("workbookUndo",function(t){var e,n,i,i,e=t.command,n=L.Commands.lM(e),i=r.Qy[e.cmd];i&&i.canUndo()&&!n&&!e.hM&&((i=r.getSheetFromName(e.sheetName))&&(e.sheetId=i._id),r.undoManager().dM(e,t.vM)),1!==t.vM&&2!==t.vM||r.mM(t)}),L.Commands.gM(n),I.et(r,"init"),i=0;i<t;i++)o=r.S2(r.T2(i)),r.sheets.push(o),r.dse.push(o),o.E0i=i,o.pM(r);(n=r.sheets[r._2])&&n.isSelected(!0),r.suspendPaint(),e&&r.hg(e),r.bM=new V.yM(r),r.resumePaint()},I.prototype.hitTest=function(t,e,n){var i,r,o,a,s,u,c,u,f,l,c,h,c,c,d,v,c,d,r,v,c,g,m,p,n,S,w,d,r,o,v,c,n,d,r,a,o,v,c,n,i=this,r=i.jg(),o=i.w2,a=i.zb,s=i.Xb,u=(0,b.GC$)(i.getHost()).width(),c=(0,b.GC$)(i.getHost()).height();if(t<0||u<t||e<0||c<e)return F;if(u=i.wM(),f=i.options.scrollbarAppearance===C.ScrollbarAppearance.mobile){if(c=Wt(a,l=(0,b.GC$)(i.Dw).offset(),u,t,e))return c;if(c=Jt(s,h=(0,b.GC$)(i.kw).offset(),u,t,e))return c}if(r&&(c=r.uw(),d=r.ot(),v=c.left-u.left,c=c.top-u.top,v<t)&&t<d.width+v&&c<e&&e<d.height+c)return{worksheetHitInfo:r.hitTest(t-v,e-c,!1,n),x:t,y:e};if(d=(0,b.GC$)(o.Dg()).offset(),r=o.ot(),v=d.left-u.left,c=d.top-u.top,v<t&&t<r.width+v&&c<e&&e<r.height+c){switch(m={},p=(g=o.hitTest(t-v,e-c)).index,S=(n=i.e2(p))&&n.name(),w=F,n&&$t(n._gi)&&(w=n._gi),g.type){case"navButton":m={navButton:g.element};break;case"sheetTab":m={sheetTab:{sheetName:S||g.element,sheetIndex:p}},w!==F&&(m.sheetTab.sheetType=w);break;case"resize":m={resize:!0};break;default:m={blank:!0}}return{tabStripHitInfo:m,x:t,y:e}}return d=(0,b.GC$)(a.oy()).offset(),r=a._b(),o=d.left-u.left,v=d.top-u.top,o<t&&t<r.width+o&&v<e&&e<r.height+v?{horizontalScrollBarHitInfo:{element:a.hitTest(t-o,e-v).element},x:t,y:e}:(c=(0,b.GC$)(s.oy()).offset(),n=s._b(),d=c.left-u.left,r=c.top-u.top,d<t&&t<n.width+d&&r<e&&e<n.height+r?{verticalScrollBarHitInfo:{element:s.hitTest(t-d,e-r).element},x:t,y:e}:(a=(0,b.GC$)(i.MM).offset(),o=parseInt(i.MM.style.width.substr(0,i.MM.style.width.indexOf("px")),10),v=parseInt(i.MM.style.height.substr(0,i.MM.style.height.indexOf("px")),10),c=a.left-u.left,n=a.top-u.top,c<t&&t<o+c&&n<e&&e<v+n?{footerCornerHitInfo:{element:"footerCorner"},x:t,y:e}:void 0))},I.prototype.wM=function(){var t=this,t,t=(T||b.GC$)(t.Ti).offset();return t?(t.top+=f.body.clientTop||0,t.left+=f.body.clientLeft||0):t={top:0,left:0},t},I.prototype.Zp=function(t){var n,t,n=this.options,t=t||{};t=q(!0,{},Ut,t),X(t,function(t,e){n.hasOwnProperty(t)&&(n[t]=e)})},I.prototype.j2=function(){var t=this;return!t.sM&&t.Ti&&(t.sM=c(l),(0,b.GC$)(t.sM).css({position:"relative",left:0,top:0,height:0}).attr(G,"gcLayerContainer"),(0,b.GC$)(t.Ti).prepend(t.sM)),t.sM},I.prototype.T2=function(t){var e,n,i,r,o,a,s,u,e=this,n=e.getSheetCount();e.Kp<n?e.Kp=n:e.Kp++,(H(t)||t<e.Kp)&&(t=e.Kp),i=!1,o=e.qv();do{for(r=(B().SHEET_NAME||"Sheet")+(t+1),a=o.length,s=0;s<a;s++)if(u=o[s]){if(u.name().toUpperCase()===r.toUpperCase()){t++,i=!0;break}i=i&&!1}}while(i);return r},I.prototype.S2=function(t,e){var n={name:t,type:e,sheet:null};return I.et(this,"createSheet",n,function(){return n.sheet!==F}),n.sheet||new v.Worksheet(t)},I.prototype.setHost=function(t){this.hg(t)},I.prototype.hg=function(t){var e=this;t&&(e.Ti=t,e.CM(),e.nl(),e.SM(),e.TM(),e.AM(),e.IM(),e.xM(),e.NM(),e.kM(),e.DM(),e._M(),e.$w(),e.EM(),e.jM(),e.OM(),e.BM(),e.iM(),e.Cg(),e.LM(t),I.et(e,"setHost",t))},I.prototype.CM=function(){var t,e,t=this,e=t.Ti;T&&T(e).data(x,t),(0,b.GC$)(e).data(x,t).attr(G,"gcSpread").addClass(xt).css(Bt,Gt)},I.prototype.nl=function(){U.gcGlobal.nl()},I.prototype.SM=function(){var t=this;t.cultureChangedHandler=function(){t.FM()},f.addEventListener(Tt,t.cultureChangedHandler)},I.prototype.TM=function(){var t=this;t.PM(),t.GM(),t.HM()},I.prototype.GM=function(){var t,e,n,i,r,o,a,s,u,t=this,e=t.Ti,n=c(vt),i=n.style;for(n.cellSpacing="0px",n.cellPadding="0px",n.border="0",i.width=gt,i.height=gt,i.border="0",i.margin="0",i.borderCollapse="collapse",i.float="left",r=0;r<3;r++){for(o=c("tr"),a=0;a<2;a++)(u=(s=c("td")).style).padding="0",u.border="0",o.appendChild(s);n.appendChild(o)}e.appendChild(n),t.nM=n},I.prototype.PM=function(){var t,e,n,i,t=this,e=t.Ti,n=c(l),i=n.style;i.width="0",i.height="0",i.float="left",e.appendChild(n),t.zM=n},I.prototype.HM=function(){var t,e,n,i,t=this,e=t.Ti,n=c(l),i=n.style;i.width="0",i.height="0",i.float="left",e.appendChild(n),t.VM=n},I.prototype.AM=function(){var t,e,n,i,r,t=this,e=t.Ti,n,i=t.nM.rows[1].cells[0],r=c(l);r.id=e.id+"vp",(0,b.GC$)(i).append(r),t.Kg=r},I.prototype.IM=function(){var t,e,n,i,r,i,r,r,i,o,t=this,e,n=t.nM.rows[1].cells[1],i=t.options,r=i.scrollByPixel,i=i.scrollbarAppearance,r=r?C.ScrollType.pixels:C.ScrollType.continuous,r=new s.YM(!1,F,F,F,F,F,r,i,function(){t.ZM(!0)}),i=c(l),o=r.oy();(0,b.GC$)(i).append(o),t.Xb=r,t.kw=i,t.WM=n},I.prototype.QM=function(){var i,t,i=this,t=i.Xb.oy();(0,b.GC$)(t).bind(ct+n,function(t,e){var n=e.scrollEventType;t.data=i,e.scrollOrientation===s.ScrollOrientation.verticalScroll&&(n===C.Zi.smallDecrement||n===C.Zi.smallIncrement||n===C.Zi.largeDecrement||n===C.Zi.largeIncrement||n===C.Zi.thumbTrack?r.Zb(t,e):n===C.Zi.thumbPosition&&r.Qb(t))}).bind(at+n,function(t){t.data=i,r.Jb(t)}).bind(ut+n,function(t){t.data=i,r.ey(t)}).bind(st+n,function(t){t.data=i,t.scrollbar=i.Xb,r.ry(t)})},I.prototype.xM=function(){var t,e,n,i,r,o,a,s,u,t=this,e,n=t.nM.rows[2].cells[0],i=c(vt),r=i.style;for(i.cellSpacing="0",i.cellPadding="0",i.border="0",r.border="0",r.margin="0",(0,b.GC$)(i).css("user-select",p),o=c("tr"),a=0;a<2;a++)(u=(s=c("td")).style).padding="0",u.border="0",o.appendChild(s);i.appendChild(o),(0,b.GC$)(n).append(i),t.JM=i},I.prototype.NM=function(){var t,e,n,i,t=this,e=t.Ti,n=c(l),i=n.style;i.width=t.Jg()*(0,b.GC$)(e).width()+d,i.height=t.Zv()+d,i.fontSize="10pt",i.fontFamily="Arial",t.XM=n},I.prototype.kM=function(){var t,e,n,i,r,i,r,r,o,a,o,r,t=this,e,n=t.JM.rows[0].cells[1],i=t.options,r=i.scrollByPixel,i=i.scrollbarAppearance,r=r?C.ScrollType.pixels:C.ScrollType.continuous,r=new s.YM(!0,F,F,F,F,F,r,i,function(){t.ZM(!1)}),o=r.oy(),a=c(l);(0,b.GC$)(a).append(o),t.zb=r,r=(o=new s.YM(!0,F,F,F,F,F,C.ScrollType.pixels,i,function(){t.ZM(!1)})).oy(),(0,b.GC$)(a).append(r),t.Xw=o,t.Dw=a,t.qM=n},I.prototype.$M=function(){var i,t,i=this,t=i.zb.oy();(0,b.GC$)(t).bind(ct+n,function(t,e){var n=e.scrollEventType;t.data=i,e.scrollOrientation===s.ScrollOrientation.horizontalScroll&&(n===C.Zi.smallDecrement||n===C.Zi.smallIncrement||n===C.Zi.largeDecrement||n===C.Zi.largeIncrement||n===C.Zi.thumbTrack?r.Bb(t,e):n===C.Zi.thumbPosition&&i.iy())}).bind(at+n,function(t){t.data=i,r.Ub(t)}).bind(ut+n,function(t){t.data=i,r.ey(t)}).bind(st+n,function(t){t.data=i,t.scrollbar=i.zb,r.ry(t)})},I.prototype.tC=function(){var i,t,i=this,t=i.Xw.oy();(0,b.GC$)(t).bind(ct+n,function(t,e){var n=e.scrollEventType;t.data=i,e.scrollOrientation===s.ScrollOrientation.horizontalScroll&&(n===C.Zi.smallDecrement||n===C.Zi.smallIncrement||n===C.Zi.largeDecrement||n===C.Zi.largeIncrement||n===C.Zi.thumbTrack?r.qb(t,e):n===C.Zi.thumbPosition&&r.Pb(t))}).bind(at+n,function(t){t.data=i,r.Ub(t,!0)}).bind(ut+n,function(t){t.data=i,r.ey(t)}).bind(st+n,function(t){t.data=i,t.scrollbar=i.Xw,r.ry(t)})},I.prototype.DM=function(){var t=this;t.nC(),t.eC()},I.prototype.nC=function(){var t,e,n,i,t=this,e,n=t.nM.rows[0].cells[1],i=c(l);(0,b.GC$)(n).append(i),t.iC=i},I.prototype.eC=function(){var t,e,n,i,t=this,e,n=t.nM.rows[2].cells[1],i=c(l);(0,b.GC$)(n).append(i),t.MM=i},I.prototype.EM=function(){var t=this;t.ib=new r(t)},I.prototype._M=function(){var t=this;t.QM(),t.$M(),t.tC()},I.prototype.$w=function(){var t,e,n,i,r,o,t=this,e,n;t.options.scrollbarAppearance===C.ScrollbarAppearance.mobile&&(i=t.Ti,r=t.kw,o=t.Dw,(0,b.GC$)(r).bind(a,function(){t.Xb.qy(C.ScrollbarState.active)}).bind(u,function(){t.Xb.qy(C.ScrollbarState.inactive)}),(0,b.GC$)(o).bind(a,function(){t.zb.qy(C.ScrollbarState.active),t.Xw.qy(C.ScrollbarState.active)}).bind(u,function(){t.zb.qy(C.ScrollbarState.inactive),t.Xw.qy(C.ScrollbarState.inactive)}),(0,b.GC$)(i).bind(a,t.oC).bind(u,t.aC))},I.prototype.tM=function(){var t,e,n,t=this,e=t.kw,n=t.Dw;e&&((0,b.GC$)(e).unbind(a).unbind(u),t.ib._w(!0)),n&&((0,b.GC$)(n).unbind(a).unbind(u),t.ib._w(!1)),(0,b.GC$)(t.Ti).unbind(a,t.oC).bind(u,t.aC)},I.prototype.oC=function(){(0,b.GC$)(this).find("."+S).addClass(kt)},I.prototype.aC=function(){(0,b.GC$)(this).find("."+S).removeClass(kt)},I.prototype.jM=function(){var t=this;t.eM(),t.qw()},I.prototype.uC=function(){var t,e,n,t,i,r,t,t=this,e=t.w2,n=t.options.tabStripPosition,t=t.options.tabStripVisible,i=0,r=0;return e&&t&&(t=e.ot(),n===C.TabStripPosition.top?r=t.height:n===C.TabStripPosition.left&&(i=t.width)),{left:i,top:r}},I.prototype.sC=function(){var t,e,t,t=this,e=t.j2(),t=t.uC();(0,b.GC$)(e).css({left:t.left,top:t.top})},I.prototype.qw=function(){var t,e,n,i,r,o,a,n,t=this,e=t.Ti;t.ib&&(n=t.options.scrollbarAppearance===C.ScrollbarAppearance.mobile,i=t.WM,r=t.qM,o=t.kw,a=t.Dw,(0,b.GC$)(o).removeAttr("style"),(0,b.GC$)(a).removeAttr("style"),(0,b.GC$)(a).addClass("gc-clear-float"),n?(n=t.j2(),o.style.position="absolute",o.style.top="0px",o.style.left="0px",(0,b.GC$)(o).addClass(S+" "+Mt),(0,b.GC$)(n).append(o),a.style.position="absolute",a.style.top="0px",a.style.left="0px",(0,b.GC$)(a).addClass(S+" "+yt),(0,b.GC$)(n).append(a)):((0,b.GC$)(i).append(o),(0,b.GC$)(r).append(a),(0,b.GC$)(o).removeClass(S+" "+M+" "+Mt+" "+k),(0,b.GC$)(a).removeClass(S+" "+M+" "+yt+" "+k),(0,b.GC$)(e).css("position","auto")))},I.prototype.eM=function(){var t,e,n,i,r,o,a,t,s,t=this,e=t.nM,n=t.zM,i=t.VM,r=t.JM,o=t.XM,a=t.options.tabStripPosition,t=t.options.tabStripVisible;a===C.TabStripPosition.bottom?s=r.rows[0].cells[0]:a===C.TabStripPosition.top?s=e.rows[0].cells[0]:a===C.TabStripPosition.left?s=n:a===C.TabStripPosition.right&&(s=i),a!==C.TabStripPosition.bottom&&a!==C.TabStripPosition.top&&t?e.style.tableLayout="fixed":e.style.tableLayout="",(0,b.GC$)(s).append(o)},I.prototype.LM=function(t){var e,n,i,r,e=this,n="tabindex",i=y((0,b.GC$)(t).attr(n),10)||0,r=c(l);(0,b.GC$)(r).css({position:St,overflow:"hidden"}).attr(G,"gcSheetFocusElementForTab").attr(n,i).bind(lt,function(){e.fC||(0,E.jf)(e).Zg(),e.fC=!1}),t.insertBefore(r,F),e.lC=r},I.prototype.OM=function(){var t,e,t=this,e=function(){t.hC()};(0,b.GC$)(U).bind(ft+g,e),t.dC=e},I.prototype.BM=function(){var t,e,t=this,e=(0,E.jf)(t);e&&e.hg(t.Kg)},I.prototype.vC=function(){var t=this,e=t.lC;e&&(t.fC=!0,e.focus())},I.prototype.mC=function(){var t,e,n,i,r,o,t=this.getActiveSheet();if(t)if(E.hi.A1(t)){if(n=this.Ti)for(i=document.activeElement,r=document.body,o=i;o;){if(o===n){e=i;break}if(o===r)break;o=o.parentElement}}else t.fg&&(e=t.fg);return e},I.prototype.n2=function(n){var i=this;i.Q1e(),i.gC=U.setTimeout(function(){var t,e,t=i.mC();t&&("gcWorksheetCanvas"!==(e=t.getAttribute(G))&&"gcSheetClipboard"!==e&&t.setAttribute("aria-label",n),E.mt.Qf())&&(t.textContent="",i.vC(),setTimeout(function(){t.focus()},50)),U.clearTimeout(i.gC),i.gC=F},50)},I.prototype.Q1e=function(){var t=this;t.gC&&(U.clearTimeout(t.gC),t.gC=F)},I.prototype.L0=function(){var t,e,n,i,r,o,a,s,e,e,u,n,i,t=this,e=t.zb,n=t.Xb,i=t.Xw,o=t.sheets,a=t.options.scrollbarAppearance===C.ScrollbarAppearance.mobile;for(t.zp(),E.Bf.ih(t),E.mt.L0(),t.dC&&(0,b.GC$)(U).unbind(ft+g,t.dC),t.dC=F,t.pC&&clearTimeout(t.pC),e&&e.dispose(),n&&n.dispose(),i&&i.dispose(),t.bC(),t.iy(),E.hi.ai()===t.getActiveSheet()&&E.hi.F1(F),r=0;r<o.length;r++)o[r].L0(!0);for(o.splice(0,o.length),s=t.mp,r=0;r<s.length;r++)s[r].L0(!0);s.splice(0,s.length),t.dse.splice(0,t.dse.length),(e=t.bM)&&(e.L0(),t.bM=F),n="class",i="unselectable",(e=t.Ti)&&(u=(0,b.GC$)(e),f.removeEventListener(Tt,t.cultureChangedHandler),u.html("").removeAttr(G).removeClass(xt),u.attr(n)||u.removeAttr(n),u.attr(i)||u.removeAttr(i),u.data(x)&&u.data(x,F),T)&&T(e).data(x)&&T(e).data(x,F),a&&t.tM(),t.Dw=F,t.kw=F,t.Wp&&(t.Wp.L0(),t.Wp=F),t.sheetTabStyles&&(t.sheetTabStyles.L0(),t.sheetTabStyles=F),t.w2&&(t.w2.L0(),t.w2=F),I.et(t,"dispose"),t.lC&&((0,b.GC$)(t.lC).unbind(lt),t.lC=F),t.Lp&&(t.Lp.dispose(),t.Lp=F,t.yC=F,t.wC=F),t.MC&&(t.MC.L0(),t.MC=F),O.W.L0(),t.Qy&&(t.Qy.L0(),t.Qy=F),t.ib&&(t.ib.L0(),t.ib=F),t.v2&&(t.v2.dispose(),t.v2=F)},I.prototype.bC=function(){var t,e,n,i,r,o,a,s,t=this,e=t.sheets;for((0,b.GC$)(t.oM).unbind(g),n=0;n<e.length;n++)(i=e[n]).bC();for(o=0,a=r=t.mp;o<a.length;o++)(s=a[o]).bC();t.rM&&(t.rM.length=0)},I.prototype.zp=function(){var t,e,n,i,r,t=this,e=t.CC;if(e)for(n=0,i=e;n<i.length;n++)(r=i[n]).close&&r.close();t.CC=[]},I.prototype.iM=function(){var t,e,n,t=this,e=y(E.I.fl("").zIndex),n=e!==t.SC;n&&t.TC(e),t.AC(n),t.IC(),t.xC()},I.prototype.TC=function(t){this.SC=t},I.prototype.AC=function(t){var e,n,i,n,r,e=this,n=e.Ti,i=e.SC,n=n.getAttribute("id")+"_tabStrip",r=e.w2;r&&!t?(r.mg(),r.repaint()):(r&&r.L0(),r=new(2007<i?D.Gv:j.Jm)(n),(e.w2=r).Sg(e),r.hg(e.XM))},I.prototype.IC=function(){var t,e,n,i,r,t=this,e=t.options.scrollbarAppearance===C.ScrollbarAppearance.mobile,n=t.Zv(),i=t.Xm(),r=t.NC();e?t.kC():(Yt(t.kw,r,i),Kt(t.Dw,n,i))},I.prototype.xC=function(){var t=this;zt(t.MM),zt(t.iC)},I.prototype.hC=function(){var t=this,e=t.pC;e&&clearTimeout(e),t.pC=U.setTimeout(function(){E.Bf.rh(),t.Cg(),t.pC=F},100)},I.prototype.Cg=function(){var t=this;t.Eb||(t.Eb=!0,t.DC(),t.Eb=!1)},I.prototype.DC=function(){var t,e,t=this,e;t.Ti&&(t._C(),t.EC(),t.jC(),t.OC(),t.RC(),t.BC(),t.LC(),t.PC(),t.GC(),t.UC(),t.HC(),t.sC(),t.zC())},I.prototype._C=function(){var t,e,e,n,i,r,i,n,t,o,n,t=this,e=t.zM;e&&(e=e.style,i=(n=t.options).tabStripVisible,r=n.tabStripPosition,i=i?n.tabStripWidth:0,n=t.Ti,t=(0,b.GC$)(n).height(),n=r===C.TabStripPosition.left?(o=i,t):o=0,e.width=o+d,e.height=n+d)},I.prototype.EC=function(){var t,e,e,n,i,r,n,o,i,a,t=this,e=t.nM;e&&(e=e.style,i=(n=t.options).tabStripVisible,r=n.tabStripPosition,n=n.tabStripWidth,o=(0,b.GC$)(t.Ti).width(),i=!i||r!==C.TabStripPosition.left&&r!==C.TabStripPosition.right?o+d:(a=rt(qt(t.Ti)))-n+d,e.width=i)},I.prototype.OC=function(){var t,e,e,n,i,r,i,n,t,o,n,t=this,e=t.VM;e&&(e=e.style,i=(n=t.options).tabStripVisible,r=n.tabStripPosition,i=i?n.tabStripWidth:0,n=t.Ti,t=(0,b.GC$)(n).height(),n=r===C.TabStripPosition.right?(o=i,t):o=0,e.width=o+d,e.height=n+d)},I.prototype.jC=function(){var t,e,n,i,i,r,n,o,a,t,s,u,c,f,l,t,c,h,e,r,t=this,e=t.Ti,n=(0,b.GC$)(e),i=t.Kg;i&&(i=i.style,r=n.width(),n=n.height(),o=t.NC(),a=t.Zv(),s=(t=t.options).showVerticalScrollbar,u=t.showHorizontalScrollbar,c=t.scrollbarAppearance,f=t.tabStripVisible,l=t.tabStripPosition,t=f?t.tabStripWidth:0,c=c===C.ScrollbarAppearance.mobile,e=(h=l===C.TabStripPosition.left||l===C.TabStripPosition.right)?rt(qt(e)):r,s&&!c&&(e-=o),h&&(e-=t),r=n,l===C.TabStripPosition.top?(u&&!c&&(r-=a),f&&(r-=a)):(u&&!c||f&&l===C.TabStripPosition.bottom)&&(r-=a),r<2&&(r=2),i.width=e+d,i.height=r+d)},I.prototype.RC=function(t){var e,n,n,i,n,i,r,o,a,s,u,c,f,l,a,c,h,d,v,g,g,m,e,n,o,e=this,n=e.Ti,n=(0,b.GC$)(n),i=e.Kg;i&&(H(t)&&(t=n.width()),n=(0,b.GC$)(i).height(),i=e.zb,r=e.Xw,o=e.Xb,s=(a=e.options).showVerticalScrollbar,u=a.showHorizontalScrollbar,c=a.scrollbarAppearance,f=a.tabStripVisible,l=a.tabStripPosition,a=f?a.tabStripWidth:0,c=c===C.ScrollbarAppearance.mobile,h=e.Xm(),d=e.NC(),v=e.VC(),g=(g=(0,E.jf)(e))?g.getHDockScrollbarWidth():0,s?((0,b.GC$)(e.kw).show(),(0,b.GC$)(o.oy()).show()):((0,b.GC$)(e.kw).hide(),(0,b.GC$)(o.oy()).hide()),u?((0,b.GC$)(e.Dw).show(),(0,b.GC$)(i.oy()).show(),(0,b.GC$)(r.oy()).show()):((0,b.GC$)(e.Dw).hide(),(0,b.GC$)(i.oy()).hide(),(0,b.GC$)(r.oy()).hide()),0===g?(0,b.GC$)(r.oy()).hide():(0,b.GC$)(r.oy()).show(),e=n,o.YC(h),o.ZC(e),n=t-g,l!==C.TabStripPosition.left&&l!==C.TabStripPosition.right||(n-=a),f&&!c&&l===C.TabStripPosition.bottom&&(n-=v),s&&!c&&(n-=d),o=h,u||f||l!==C.TabStripPosition.bottom||(o=0),i.YC(n=n<=0?1:n),i.ZC(o),r.YC(g),r.ZC(o))},I.prototype.VC=function(){var t,e,n,i,r,n,o,e,a,s,t=this,e=t.Kg,n=t.options,i=n.tabStripPosition,r=n.tabStripWidth,n=n.scrollbarAppearance,o=(0,E.jf)(t),e=(0,b.GC$)(e).width();return i===C.TabStripPosition.bottom||i===C.TabStripPosition.top?(o&&i===C.TabStripPosition.bottom&&n===C.ScrollbarAppearance.skin&&(e-=s=o.getHDockScrollbarWidth()),a=it(t.Jg()*e),i===C.TabStripPosition.bottom&&a===e&&(a=e-1)):a=r,a},I.prototype.BC=function(){var t,e,e,n,n,i,r,i,o,t,i,t=this,e=t.Ti,e=(0,b.GC$)(e).height(),n=t.XM;n&&(n=n.style,r=(i=t.options).tabStripVisible,i=i.tabStripPosition,o=t.Zv(),t=t.VC(),i=i===C.TabStripPosition.bottom||i===C.TabStripPosition.top?o:e,r||(i=0),n.width=t+d,n.height=i+d)},I.prototype.LC=function(){var t,e,n,i,r,o,a,s,i,u,t,c,f,c,l,t=this,e=t.iC,n=t.MM,i=t.options,r=i.showVerticalScrollbar,o=i.showHorizontalScrollbar,a=i.tabStripVisible,s=i.tabStripPosition,i=i.scrollbarAppearance===C.ScrollbarAppearance.mobile,u=t.NC(),t=t.Zv(),f=s===C.TabStripPosition.top?(c=r&&!i?u:0,a?t:0):c=0;(0,b.GC$)(e).css("width",c+d),(0,b.GC$)(e).css("height",f+d),c=r&&!i?u:0,(o||a&&s===C.TabStripPosition.bottom)&&(l=t,!i||a&&s===C.TabStripPosition.bottom)||(l=0),(0,b.GC$)(n).css("width",c+d),(0,b.GC$)(n).css("height",l+d)},I.prototype.PC=function(){var t,e,n,i,n,t,t=this;t.Kg&&(e=t.nM,i=(n=t.options).scrollbarAppearance===C.ScrollbarAppearance.mobile,n=n.showVerticalScrollbar,t=[(0,b.GC$)(t.Kg).width(),t.NC()],!i&&n||(t[1]=0),e.rows[0].cells[0].style.width=t[0]+d,e.rows[0].cells[1].style.width=t[1]+d)},I.prototype.UC=function(){var t,e,n,t=this,e,n=t.options.scrollbarAppearance===C.ScrollbarAppearance.mobile;n&&t.kC(),t.WC(),t.QC(),n&&(t.Xb.qy(C.ScrollbarState.hide),t.zb.qy(C.ScrollbarState.hide))},I.prototype.HC=function(){var t,e,n,t=this,e,n;t.options.tabStripVisible?(0,b.GC$)(t.XM).show():(0,b.GC$)(t.XM).hide(),t.w2&&t.w2.Cg()},I.prototype.GC=function(t){var e,n,t;void 0===t&&(t=!0),(n=(0,E.jf)(e=this))?(0===n.Tb&&(n.Tb=n.pw()),0===n.Ab&&(n.Ab=n.Sw()),t&&n.Cg()):(t=e.getActiveSheetTab())&&t.Cg()},I.prototype.zC=function(){var t,e,n,t=this,e=(0,E.jf)(t);e&&(e.invalidateLayout(),e.repaint()),(n=t.KC())&&!t.JC&&(t.JC=!0,setTimeout(function(){delete t.JC,t.DC()},1))},I.prototype.KC=function(){var t,e,n,i,e,n,r,o,a,s,o,a,s,s,o,a,e,u,c,t=this,e=(0,b.GC$)(t.Ti),n=e.width(),i=2,e=e.width(),n=n!==e&&2<A(n-e),r=!1,o=t.zM,a=t.VM,s=t.nM;return o&&a&&s&&(o=(0,b.GC$)(o).width(),a=(0,b.GC$)(a).width(),s=(0,b.GC$)(s).width(),r=2<A(o+s+a-e)),o=t.Xw,a=(s=!1,E.jf)(t),o&&a&&(e=a.getDockScrollbarAttachedIndex(),H(e)||(u=o.YC())!==(c=a.getHDockScrollbarWidth())&&(s=!0)),n||r||s},I.prototype.kC=function(){var t,e,n,i,r,o,a,e,s,u,c,f,l,u,c,n,h,o,f,e,c,o,d,v,g,a,l,u,h,m,p,S,t=this;!H(t.Ti)&&(e=(0,b.GC$)(t.Ti),n=(0,E.jf)(t))&&(i=(0,b.GC$)(t.kw),r=(0,b.GC$)(t.Dw),o=n.Fi(),a=e.width(),e=e.height(),s=2,c=(u=t.options).tabStripVisible,f=u.showVerticalScrollbar,l=u.tabStripPosition,u=c?u.tabStripWidth:0,c=c?t.Zv():0,n=n.getHDockScrollbarWidth(),h=o.x+o.XC,o=o.y+o.qC,f=f?i.width():0,e=e-o,l!==C.TabStripPosition.bottom&&l!==C.TabStripPosition.top||(e-=c),c=0,l!==C.TabStripPosition.right&&l!==C.TabStripPosition.left||(c+=u),o=o,g=e-(d=y(i.css("padding-top")))-(v=y(i.css("padding-bottom"))),a=a-h,0===n&&(a-=f),l!==C.TabStripPosition.left&&l!==C.TabStripPosition.right||(a-=u),l=r.height(),u=-(e+o),h=h,S=a-(m=y(r.css("padding-left")))-(p=y(r.css("padding-right")))-n,0===n?S-=2:n-=f+p+2,t.Xb.YC(f),t.Xb.ZC(g),t.zb.YC(S),t.zb.ZC(l),t.Xw.YC(n),t.Xw.ZC(l),i.css(["height","left","right","top"],[e,"auto",c,o]),r.css(["width","top","bottom","left"],[a,"auto",u,h]))},I.prototype.WC=function(){var t=this,e=t.jg(),n=t.options;e?(e.WC(n.scrollbarMaxAlign,n.scrollbarShowMax,t.zb),e.$C(t.Xw)):t.zb&&t.zb.w4()},I.prototype.QC=function(){var t=this,e=t.jg(),n=t.options;e&&e.QC(n.scrollbarMaxAlign,n.scrollbarShowMax,t.Xb)},I.prototype.Xg=function(){var t,e,n,t=this,e;t.Ti&&(n=t.t3(),t.BC(),t.RC(n),t.GC(!1),t.UC(),t.HC())},I.prototype.t3=function(){var t,e,n,i,t=this.Ti,e=t.parentNode;return n=e&&"flex"===(i=e.style.display||getComputedStyle(e).display)?(0,b.GC$)(t).width():n},I.prototype.suspendPaint=function(){var t,e,n,i,r,o,a,s,u,c,t=this,e=t.w2,n=t.sheets,i=t.mp;for(t.sg++,r=0,o=n;r<o.length;r++)(a=o[r]).suspendPaint();for(s=0,u=i;s<u.length;s++)(c=u[s]).suspendPaint();e&&e.V2()},I.prototype.resumePaint=function(){var t,e,n,i,r,o,a,s,u,c,t=this,e=t.w2,n=t.sheets,i=t.mp;for(t.sg-=0<t.sg?1:0,r=0,o=n;r<o.length;r++)(a=o[r]).resumePaint();for(s=0,u=i;s<u.length;s++)(c=u[s]).resumePaint();e&&e.Y2()},I.prototype.UCe=function(){var t=this,e=t.getActiveSheet();try{e&&(e.My--,e.n3(),e.repaint(),e.My++),t.w2&&(t.w2.sg--,t.w2.repaint(),t.w2.sg++)}catch(t){}},I.prototype.isPaintSuspended=function(){return 0<this.sg},I.prototype.nb=function(){var t,e,n,i,r,o,a,s,u,c,t=this,e=t.options.backgroundImage,n=t.options.backgroundImageLayout,i=(0,E.jf)(t);if(i&&e&&((r=(o=void 0,b.GC$)(i.Dg())).css({"background-image":"url('"+e+"')","background-repeat":"no-repeat"}),!H(n))){o=(o=t.MC)||(t.MC=new R.Wh(function(){t.MC&&t.nb()}));try{o.getState(e)?(a=o.getImage(e),u=(s=i.ot()).width,c=s.height,E.mt.Wf(i.Dg(),u,c,a.width,a.height,n)):o.addImage(e)}catch(t){}}},I.prototype.e3=function(t){var e,t,t,e=this,t=t.name(),t=e.getSheetPosition(t);e.w2.g2(t)},I.prototype.startSheetIndex=function(t){var e=this,n=e.w2;return 0===arguments.length?n?n.om:0:(n&&(n.k2(t)||-1===(t=n.N2(t))&&(t=n.Vm(t)),n.om=t),e.Xg(),e)},I.prototype.Jg=function(){var t,e,n,i,n,i,e,t,e,t=this,e=t.options,n=t.options.scrollbarAppearance===C.ScrollbarAppearance.mobile,i=e.tabStripPosition;return e.showHorizontalScrollbar&&!n&&i===C.TabStripPosition.bottom?(n=e.tabStripRatio,isNaN(n)?.5:(i=0,e=t.Kg,t=t.w2,e&&t&&(e=(0,b.GC$)(e).width(),i=t.rm()/e),n<i?n=i:1<n&&(n=1),n)):1},I.prototype.destroy=function(){this.dC&&(0,b.GC$)(U).unbind(ft+g,this.dC),this.L0()},I.prototype.repaint=function(){var t,e,e,t=this,e=t.w2;e&&e.repaint(),(e=(0,E.jf)(t))&&e.repaint()},I.prototype.refresh=function(){var t=this;t.Ti&&(E.I.dl(),t.r3(),t.iM(),t.Cg(),t.repaint())},I.prototype.getHost=function(){return this.Ti},I.prototype.invalidateLayout=function(){var t=(0,E.jf)(this);t&&t.invalidateLayout()},I.prototype.addNamedStyle=function(t){this.$p(t);var t=(0,E.jf)(this);t&&t.zw()},I.prototype.$p=function(t){if(t){if(!t.name)throw new Error(B().Exp_EmptyNamedStyle);var e=t.name.toUpperCase();this.Hp[e]=t,this.r3()}},I.prototype.getNamedStyle=function(t){return this.i3(t,!0)},I.prototype.i3=function(t,e){var n,n,n=this.Hp;return n&&t?((n=n[t=t.toUpperCase()])&&e&&this.r3(),n):F},I.prototype.r3=function(){for(var t,e,n,i,t,e=0,n=this.sheets;e<n.length;e++)(i=n[e]).r3()},I.prototype.removeNamedStyle=function(t){var e,n,n,e=this.Hp;e&&t&&(t=t.toUpperCase(),e.hasOwnProperty(t))&&((n=e[t].formatter)&&"string"==typeof n&&this.bp[n]&&this.o3(n),delete e[t],this.r3(),n=(0,E.jf)(this))&&n.zw()},I.prototype.getNamedStyles=function(){var n=[],t=this.Hp;return t&&X(t,function(t,e){n.push(e)}),n},I.prototype.getActiveSheet=function(){return this.sheets&&0<this.sheets.length?this.sheets[this._2]:F},I.prototype.getActiveSheetTab=function(){return this.mp&&0<this.mp.length?this.mp[this.jb]:F},I.prototype.setActiveSheet=function(t){var e,n,e=this.getActiveSheet(),n=this.getActiveSheetTab();this.vb(t,2),this.a3(e),this.u3(n)},I.prototype.setActiveSheetTab=function(t){var e,n,e=this.getActiveSheet(),n=this.getActiveSheetTab();"number"==typeof t?this.yp(t,2):"string"==typeof t&&this.s3(t,2),this.a3(e),this.u3(n)},I.prototype.vb=function(t,e,n,i){for(var r,o,r=this.sheets,o=0;o<r.length;o++)if(r[o].name()===t){this.tb(o,e,n,i);break}},I.prototype.s3=function(t,e,n,i){for(var r,o,r=this.mp,o=0;o<r.length;o++)if(r[o].name()===t){this.yp(o,e,n,i);break}},I.prototype.getActiveSheetIndex=function(){return this._2},I.prototype.getActiveSheetTabIndex=function(){return this.jb},I.prototype.setActiveSheetIndex=function(t){var e,n,n,i,e=this,n=e.getSheetCount();(t=n<=t?n-1:t)<0&&(t=0),n=e.getActiveSheet(),i=e.getActiveSheetTab(),e.tb(t,2),e.a3(n),e.u3(i)},I.prototype.tb=function(t,e,n,i,r){var o,a,r,s,s,u,c,c,f,c;typeof t==ot&&t!==(o=this)._2&&((a=o.sheets[t])&&a.visible()===C.SheetTabVisible.visible||r)&&!(((r=E.mt.pi()).ipad||r.iphone)&&(s=o.c3)&&(new Date).valueOf()-s<300)&&(u=(u=s=o.getActiveSheet())||(c=o.getActiveSheetTab())&&c.Mf,jt(o,c={oldSheet:u,newSheet:a,needTriggerSheetChange:!0}),f={oldSheet:u,newSheet:a,cancel:!1},(c=c.needTriggerSheetChange&&i)&&Dt(o,f),!1===f.cancel&&(o._2=t,o.f3(),a!==s&&(s&&(s.L0(!1),s.charts)&&s.charts.all().forEach(function(t){t.clearflexDVs()}),a)&&o.l3(a,e,!1,c,n),o.Cg(),Ot(o,u,a),c)&&Lt(o,u,a),r.ipad||r.iphone)&&(o.c3=(new Date).valueOf())},I.prototype.yp=function(t,e,n,i){var r,o,a,s,u,u,c,f,l,f;typeof t==ot&&t!==(r=this).jb&&(o=r.mp[t])&&o.visible()===C.SheetTabVisible.visible&&(a=o.Mf,((s=E.mt.pi()).ipad||s.iphone)&&(u=r.c3)&&(new Date).valueOf()-u<300||(c=(u=r.getActiveSheetTab())?u.Mf:r.getActiveSheet(),jt(r,f={oldSheet:c,newSheet:a,needTriggerSheetChange:!0}),l={oldSheet:c,newSheet:a,cancel:!1},(f=f.needTriggerSheetChange&&i)&&Dt(r,l),!1===l.cancel&&(r.f3(),r.jb=t,r.h3(),o!==u&&(u&&u.L0(!1),r.d3(o,e,!1,f,n),o.b2(!0)),r.Cg(),Ot(r,c,a),f)&&Lt(r,c,a),(s.ipad||s.iphone)&&(r.c3=(new Date).valueOf())))},I.prototype.l3=function(t,e,n,i,r){var n,n,n;n||t.hg(this.Kg),n=(n=E.hi.ai())&&n.parent===this,n=2===e?n:1===e,E.hi.F1(F),!this.Bp&&n&&t.Zg(r),t.aw(),t.tw()},I.prototype.d3=function(t,e,n,i,r){var n,n,n;n||t.hg(this.Kg),n=(n=E.hi.ai())&&n.parent===this,n=2===e?n:1===e,E.hi.F1(F),!this.Bp&&n&&t.Zg(r),t.aw(),t.tw()},I.prototype.a3=function(t){var e=this.getActiveSheet();t&&t.b2(!1,!1),e&&e.b2(!0,!1)},I.prototype.u3=function(t){var e=this.getActiveSheetTab();t&&t.b2(!1,!1),e&&e.b2(!0,!1)},I.prototype.addSheet=function(t,e){var n,i,n=this.getActiveSheet(),i=this.getActiveSheetTab();this.A2(t,2,e),this.a3(n),this.u3(i)},I.prototype.addSheetTab=function(t,e,n){var i,r,e,i=this.getActiveSheet(),r=this.getActiveSheetTab(),e=this.bb(e,n);if(e)return this.suspendPaint(),this.yb(t,2,e),this.a3(i),this.u3(r),this.resumePaint(),e},I.prototype.J2e=function(t,e){var n,i,n=this.getActiveSheet(),i=this.getActiveSheetTab();if(e)return this.suspendPaint(),this.yb(t,2,e),this.a3(n),this.u3(i),this.resumePaint(),e},I.prototype.gse=function(t,e,n){for(var i,r,o,i=t.length,r=[],o=0;o<n&&0<i;o++)r.push(t.pop());for(t.push(e);0<r.length;)t.push(r.pop())},I.prototype.pse=function(t,e,n){for(var i,r,o,a,s,u,i=t.length,r=[],o=0,a=e instanceof v.Worksheet;o<n&&0<i;)s=t[t.length-1]instanceof v.Worksheet,(a&&s||!a&&!s)&&o++,r.push(t.pop());for(t.push(e),e.E0i=t.length-1;0<r.length;)u=r.pop(),t.push(u),u.E0i=t.length-1},I.prototype.bse=function(t,e){for(var n,i,r,n=0;n<t.length;n++)if(t[n].name()===e){for(i=n;i<t.length-1;i++)(r=t[i+1]).E0i--,t[i]=r;t.length=t.length-1;break}},I.prototype.A2=function(t,e,n,i){var r,o,i,a,s,u,c,t,r=this;if(n=n||r.S2(r.T2(t),i),a=(i=r.sheets).length,n.name()){for(s=r.qv(),o=0;o<s.length;o++)if(s[o].name()===n.name())throw B().Exp_NotSupported}else n.ub(r.T2(t));r.v3(n),u=r.getActiveSheet(),c=r._2,r.gse(i,n,a-t),n.pM(r),r.pse(r.dse,n,a-t),r.f3(),1===(a=i.length)?(r.Kg&&n.hg(r.Kg),r._2=0):(c<0&&r.w2&&(c=r.w2.N2(c)),r._2=c),(t=r.getActiveSheet())!==u&&(u&&u.L0(!1),t&&r.l3(t,e,1===a,!0),r.Cg()),r.w2&&(r.w2.om<0&&(r.w2.om=r._2),r.w2.repaint())},I.prototype.yb=function(t,e,n){var i,r,o,a,s,u,c,o;if(n){for(a=(o=(i=this).mp).length,s=i.qv(),r=0;r<s.length;r++)if(s[r].name()===n.name())throw B().Exp_NotSupported;i.v3(n),u=i.getActiveSheetTab(),c=i.jb,i.gse(o,n,a-t),n.pM(i),i.pse(i.dse,n,a-t),1===(a=o.length)?(i.Kg&&n.hg(i.Kg),i.jb=0):(c<0&&i.w2&&(c=i.w2.N2(c)),i.jb=t<=c?c+1:c),i.h3(),(o=i.getActiveSheetTab())!==u&&(u&&u.L0(!1),o&&i.d3(o,e,1===a,!0),i.Cg()),i.w2&&(i.w2.om<0&&(i.w2.om=i.jb),i.w2.repaint())}},I.prototype.removeSheet=function(t){var e,t,e=this.getActiveSheet();this.m3(t,2),(t=this.getActiveSheet())&&t!==e&&t.b2(!0,!1)},I.prototype.removeSheetTab=function(t){var e,t;"string"==typeof t&&(t=this.getSheetTabIndex(t)),e=this.getActiveSheetTab(),this.g3(t,2),(t=this.getActiveSheet())&&t!==e&&t.b2(!0,!1)},I.prototype.m3=function(t,e){var t,n,i,r,o,a,s,u,c,f,l,u,s,h,d,v,g,m,p,S,e,c,u,e,n=this,i=n.sheets,r=n.Lp,o=n.w2,a=i.length;if(isNaN(t)||t<0||a<=t)throw new Error(B().Exp_IndexOutOfRange);if(s=n._2,u=t<=n._2||t===a-1,c=n.getActiveSheet(),t<n._2&&n._2--,(f=i[t]).bC(),i.splice(t,1),n.bse(n.dse,f.name()),0===(a=i.length))n._2=-1;else if(n._2>=a&&o)n._2=o.Vm(a);else{for(l=void 0,l=Math.max(0,n._2);l<a;l++)if(i[l].visible()===C.SheetTabVisible.visible){n._2=l;break}a<=l&&o&&(n._2=o.Vm(a))}if(n.f3(),(u||s!==n._2)&&c!==(u=i[n._2])&&(c&&c.L0(!1),u)&&(jt(n,c),n.l3(u,e,!1,!0),Ot(n,c,u)),r){if(r.suspend(),f.b3().p3(),h=(s=ee(f)).map(function(t){return t.id}),d={},v=r.y3)for(m in g=f.b3().getSource().id,v)if(v.hasOwnProperty(m))for(d[m]=[],p=v[m];p;)g!==(S=p.w3&&p.w3.getSource().id)&&-1===h.indexOf(S)&&d[m].push(p),p=p.C3;for(m in(e=f.Uw()).S3=t,r.removeSource(e),c=f.T3,r.removeSource(c),u=f.A3,r.removeSource(u),s.forEach(function(t){r.removeSource(t)}),d)if(d.hasOwnProperty(m))for(p=d[m],l=0;l<p.length;l++)r.I3(p[l],parseInt(m,10));r.resume(!1)}null!=(t=n.sheetTabStyles)&&t.O2e[f.name()]&&n.sheetTabStyles.L2e(f.name()),f.L0(!0,-1!==n._2),w&&!r.x3&&n.sheets&&0<n.sheets.length&&(e=n.sheets[0],r.initParserContext(e.Uw())),o&&(o.om>=a?n.startSheetIndex(o.Vm(a)):o.om<0?n.startSheetIndex(o.N2(-1)):n.Cg())},I.prototype.g3=function(t,e){var n,i,r,o,a,s,u,c,f,l,u,s,c,n=this,i=n.mp,r=n.Lp,o=n.w2,a=i.length;if(isNaN(t)||t<0||a<=t)throw new Error(B().Exp_IndexOutOfRange);if(s=n.jb,u=t<=n.jb||t===a-1,c=n.getActiveSheetTab(),t<n.jb&&n.jb--,(f=i[t]).bC(),i.splice(t,1),n.bse(n.dse,f.name()),0===(a=i.length))n.jb=-1;else if(n.jb>=a)n.jb=o.Vm(a);else{for(l=void 0,l=Math.max(0,n.jb);l<a;l++)if(i[l].visible()===C.SheetTabVisible.visible){n.jb=l;break}a<=l&&(n.jb=o.Vm(a))}n.h3(),(u||s!==n.jb)&&c!==(u=i[n.jb])&&(c&&c.L0(!1),u)&&n.d3(u,e,!1,!0),r&&(r.suspend(),(c=(s=f.Mf).Uw())&&(c.S3=t),[c,s.T3,s.A3,s.Dnn].forEach(function(t){t&&r.removeSource(t)}),r.resume(!1)),n.sheetTabStyles&&n.sheetTabStyles[f.name()]&&n.sheetTabStyles.L2e(f.name()),f.L0(!0,-1!==n.jb),o&&(o.om>=a?n.startSheetIndex(o.Vm(a)):o.om<0?n.startSheetIndex(o.N2(-1)):n.Cg())},I.prototype.clearSheets=function(){for(var t,e,n,i,r,o,a,t=this,e=t.sheets,n=t.Lp,i=t.w2,r=0,o=e;r<o.length;r++)(a=o[r]).bC(),a.L0(!0);e.splice(0,e.length),t.dse=t.yse(t.mp),n&&n.clearSource(),t._2=-1,i&&(i.om=-1,i.repaint())},I.prototype.clearSheetTabs=function(){for(var t,e,n,i,r,o,t=this,e=t.mp,n=t.w2,i=0,r=e;i<r.length;i++)(o=r[i]).bC(),o.L0(!0);e.splice(0,e.length),t.dse=t.yse(t.sheets),t.jb=-1,n&&(n.om=-1,n.repaint())},I.prototype.getSheet=function(t){var e=this.sheets;return 0<=t&&t<e.length?e[t]:F},I.prototype.getSheetTab=function(t){return this.Ofe(t)},I.prototype.Ofe=function(t){var e,n,i,r,e=this.mp;if("number"==typeof t)return 0<=t&&t<e.length?e[t]:F;if("string"==typeof t)for(n=0,i=e;n<i.length;n++)if((r=i[n]).name()===t)return r;return F},I.prototype.getSheetFromName=function(t){return this._f(t)},I.prototype._f=function(t){for(var e,n,i,r,e,n=0,i=this.sheets;n<i.length;n++)if((r=i[n]).name()===t)return r;return F},I.prototype.getSheetIndex=function(t){for(var e,n,e=this.sheets,n=0;n<e.length;n++)if(e[n].name()===t)return n;return F},I.prototype.getSheetTabIndex=function(t){for(var e,n,e=this.mp,n=0;n<e.length;n++)if(e[n].name()===t)return n;return F},I.prototype.getSheetPosition=function(t){for(var e,n,e=this.dse,n=0;n<e.length;n++)if(e[n].name()===t)return n;return-1},I.prototype.getSheetCount=function(){return this.sheets.length},I.prototype.getSheetTabCount=function(){return this.mp.length},I.prototype.setSheetCount=function(t){var e,n,i,e=this,n=e.getActiveSheet(),i=e.getActiveSheetTab();e.Xp(t,2),e.a3(n),e.u3(i)},I.prototype.Xp=function(t,e){var n,i,r,o,a,s,u,n=this,i="object"==typeof t,r=i?Object.keys(t).length:t,o=i?Object.keys(t):null;if(r<0)throw B().Exp_ArgumentOutOfRange;if(0===r&&n.clearSheets(),r<(a=n.sheets.length))for(s=a-1;r<=s;s--)n.m3(s,e);else if(a<r)for(s=a;s<r;s++)u=i?t[o[s]].type:F,n.A2(s,e,null,u)},I.prototype.hp=function(t,e){var n,i,r,o,t,a,s,u,c,f,l,h,d,v,g,m,n=this,i=t.sheetTabCount;if(et(i)){if(i<0)throw B().Exp_ArgumentOutOfRange;if(0===i)n.clearSheetTabs();else{for(r=t.sheetTabs,o=t.sheetCount,t=n.mp.length,a=[],s=0,u=Object.keys(r);s<u.length;s++)(f=r[c=u[s]])&&(l=f.index-o,a.splice(l,0,f));if(i<t)for(h=t-1;i<=h;h--)n.g3(h,e);for(h=0;h<a.length;h++)d=n.mp[h],v="number"==typeof(f=a[h]).sheetType?f.sheetType:C.SheetType.tableSheet,g=o+h,d?(m=d._gi)!==v&&(n.g3(g,e),d=n.bb(F,v),n.yb(g,e,d)):(d=n.bb(F,v),n.yb(g,e,d))}}},I.prototype.bb=function(t,e){var n={name:t,type:e,sheetTab:F};return I.et(this,"createSheetTab",n,function(){return n.sheetTab!==F}),n.sheetTab},I.prototype.dataManager=function(){var t=this,e=t.N3;return e=!e&&z.DataManager?t.N3=new z.DataManager(F,t.Lp):e},I.prototype.setDataManager=function(t){this.N3=t},I.prototype.bind=function(t,e,n){var i,r,o,a,s,u,c,f,l,i=this,r=i.sheets;for(i.rM&&i.rM.push({type:t,data:e,fn:n}),(0,b.GC$)(i.oM).bind(t+g,e,n),o=0,a=r;o<a.length;o++)(s=a[o]).bind(t,e,n);for(c=0,f=u=i.mp;c<f.length;c++)(l=f[c]).bind(t,e,n)},I.prototype.unbind=function(t,e){var n,i,r,o,a,s,u,c,f,l,h,d,n=this,i=n.sheets,r=n.rM;if(r)for(o=r.length-1;0<=o;o--)(a=r[o]).type!==t&&!n.k3(a.type,t)||r.splice(o,1);for((0,b.GC$)(n.oM).unbind(t+g,e),s=0,u=i;s<u.length;s++)(c=u[s]).unbind(t,e);for(l=0,h=f=n.mp;l<h.length;l++)(d=h[l]).unbind(t,e)},I.prototype.k3=function(t,e){return 0===e.indexOf(".")&&t.substring(t.length-e.length)===e},I.prototype.unbindAll=function(){var t,e,n,i,r,o,a,s,u,t=this,e=t.sheets;for((t.rM.length=0,b.GC$)(t.oM).unbind(g),n=0,i=e;n<i.length;n++)(r=i[n]).unbindAll();for(a=0,s=o=t.mp;a<s.length;a++)(u=s[a]).unbindAll()},I.prototype.D3=function(t,e,n){var i,r,o,a,s,u,c,f,l,i=this,r=i.sheets;for(i.rM.push({type:t,data:e,fn:n}),(0,b.GC$)(i.oM).bind(t+ht,e,n),o=0,a=r;o<a.length;o++)(s=a[o]).D3(t,e,n);for(c=0,f=u=i.mp;c<f.length;c++)(l=f[c]).D3(t,e,n)},I.prototype._3=function(t,e){for(var n,i,r,o,a,s,u,c,f,l,h,d,n=this,i=n.sheets,r=n.rM,o=0;o<r.length;o++)(a=r[o]).type!==t&&!n.k3(a.type,t)||r.splice(o,1);for((0,b.GC$)(n.oM).unbind(t+ht,e),s=0,u=i;s<u.length;s++)(c=u[s])._3(t,e);for(l=0,h=f=n.mp;l<h.length;l++)(d=h[l])._3(t,e)},I.prototype.E3=function(){var t,e,n,i,r,o,a,s,u,t=this,e=t.sheets;for((t.rM.length=0,b.GC$)(t.oM).unbind(ht),n=0,i=e;n<i.length;n++)(r=i[n]).E3();for(a=0,s=o=t.mp;a<s.length;a++)(u=s[a]).E3()},I.prototype.ki=function(t,e){0===this.vf&&(0,b.GC$)(this.oM).trigger(t,e)},I.prototype.pb=function(t,e){(0,b.GC$)(this.oM).trigger(t,e)},I.prototype.j3=function(t,e,n,i){this.ki(E.Events.ButtonClicked,{sheet:t,sheetName:t.name(),row:e,col:n,sheetArea:i})},I.prototype.v3=function(t){for(var e,n,i,r,e,n=0,i=this.rM;n<i.length;n++)r=i[n],t.bind(r.type,r.data,r.fn)},I.prototype.suspendEvent=function(){var t,e,n,i,r,o,a,s,u,t=this,e=t.sheets;for(t.vf++,n=0,i=e;n<i.length;n++)(r=i[n]).suspendEvent();for(a=0,s=o=t.mp;a<s.length;a++)(u=s[a]).suspendEvent()},I.prototype.resumeEvent=function(){var t,e,n,i,r,o,a,s,u,t=this,e=t.sheets;for(t.vf--,t.vf<0&&(t.vf=0),n=0,i=e;n<i.length;n++)(r=i[n]).resumeEvent();for(a=0,s=o=t.mp;a<s.length;a++)(u=s[a]).resumeEvent()},I.prototype.focus=function(t){var t,t;!1===t?E.hi.F1(F):(t=this.getActiveSheet())?t.Zg():(t=this.getActiveSheetTab())&&t.Zg()},I.prototype.Xm=function(){return 2007<this.SC?15:18},I.prototype.NC=function(){return 2007<this.SC?22:this.Xm()},I.prototype.ZM=function(t){var e,n,i,r,o,a,e=this,n=t?e.kw:e.Dw,i=t?e.Xb:e.zb,r=e.options.scrollbarAppearance===C.ScrollbarAppearance.mobile;if(n&&i&&r)switch(o=e.ib,a=i.O3){case C.ScrollbarState.hide:o.$y(t);break;case C.ScrollbarState.show:o.Iw(n),o._w(t);break;case C.ScrollbarState.active:o.Iw(n),o._w(t),o.xw(n);break;case C.ScrollbarState.inactive:o.Nw(n),o.$y(t)}},I.prototype.Zv=function(){return 2007<this.SC?28:this.Xm()},I.prototype.Tw=function(t,e,n,i,r){var o,a,s,u,o="auto",a=this;a.R3||(s=(0,b.getHostMaxZIndex)(a.Ti)+1,u=c(l),r?(0,b.GC$)(u).addClass(r):(0,b.GC$)(u).addClass("gc-spread-toolTip"),(0,b.GC$)(u).addClass("ui-state-default ui-widget-content btn-default").css({position:St,padding:"0px 3px 0px 3px",font:tt("normal normal normal 11pt calibri"),"box-shadow":"1px 2px 5px rgba(0,0,0,0.4)","white-space":"pre-wrap","z-index":s,top:0}).width(o).height(o).appendTo(f.body),a.R3=u),a.ny(t,e,n,i)},I.prototype.ny=function(t,e,n,i){var r,o,r,r,t,i,o,i,r=this,o=r.jg();o&&(r=r.R3)&&(r=(0,b.GC$)(r),t?(r.html(t),r.show()):r.hide(),t=o.uw(),i&&(n-=t.top,e-=t.left),o=(i=o.ot()).x+i.width-r.outerWidth(),i=i.y+i.height-r.outerHeight(),o<0?e=0:i<0?n=0:(n=_(n,i),e=_(e,o)),H(n)||r.css("top",n+t.top),H(e)||r.css("left",e+t.left))},I.prototype.iy=function(){var t=this,e=t.R3;e&&((0,b.GC$)(e).remove(),t.R3=F)},I.prototype.FM=function(){var t,e,n,i,r,t=this,e=t.qv();for(E.Be.zl(),t.invalidateLayout(),n=0,i=e.length;n<i;n++)(r=e[n]).FM();B(),o.Common.B3(),K&&Y.sR(),t.repaint(),I.et(t,"onCultureChanged")},I.prototype.getTab=function(){return this.w2},I.prototype.changeSheetIndex=function(t,e){var n,i,r,o,o,t,n=this,i=n.getSheetPosition(t),r=n.getTab(),o=n.getSheetCount()+n.getSheetTabCount();return!("number"!=typeof e||-1===i||i===e||e<0||o<=e||e%1!=0||n.L3(t)||((o=n.jg().name())!==t?(n.suspendPaint(),n.setActiveSheetOrSheetTabIndex(i,2),n.o2(i,e),t=n.getSheetPosition(o),n.setActiveSheetOrSheetTabIndex(t,2),n.resumePaint()):(n.o2(i,e),r.scrollTabToActive(i,e)),0))},I.prototype.changeSheetPosition=function(t,e){var n,i,r,o,o,t,n=this,i=n.getSheetPosition(t),r=n.getTab(),o=n.getSheetCount()+n.getSheetTabCount();return!("number"!=typeof e||-1===i||i===e||e<0||o<=e||e%1!=0||n.L3(t)||((o=n.jg().name())!==t?(n.suspendPaint(),n.setActiveSheetOrSheetTabIndex(i,2),n._se(i,e),t=n.getSheetPosition(o),n.setActiveSheetOrSheetTabIndex(t,2),n.resumePaint()):(n._se(i,e),r.scrollTabToActive(i,e)),0))},I.prototype.L3=function(t){for(var e,n,i,r,o,a,s,u,c,e=this,n,i=0,r=e.sheets;i<r.length;i++)if((o=r[i]).name()===t)return!1;for(s=0,u=a=e.mp;s<u.length;s++)if((c=u[s]).name()===t)return!1;return!0},I.prototype.o2=function(t,e){var n,i,r,o,a,s,u,c,f,l,h,d,n=this,i=-1,r=n.qv(),a=r[t],s=n.sheets.length;if(te(n)){if(e<t)if(s<=t&&e<s)r.splice(t,1),r.splice(s,0,a),i=s;else{for(o=t;e<o;o--)r[o]=r[o-1];r[e]=a,i=e}else if(t<e)if(t<s&&s<=e)r.splice(s,0,a),r.splice(t,1),i=s-1;else{for(o=t;o<e;o++)r[o]=r[o+1];r[e]=a,i=e}}else if(u=n.getSheetTabCount(),l=void(f=c=0),h=H(a._gi),0<=t&&t<s&&0<=e&&e<s||s<=t&&t<s+u&&s<=e&&e<s+u){for(o=0;o<r.length;o++)if(d=r[o],H(d._gi)?c++:f++,h&&c-1===e||!h&&f-1===e){l=o;break}if(l<t){for(o=t;l<o;o--)r[o]=r[o-1];r[l]=a,i=l}else if(t<l){for(o=t;o<l;o++)r[o]=r[o+1];r[l]=a,i=l}}n.P3(r),n.setActiveSheetOrSheetTabIndex(i,2)},I.prototype._se=function(t,e){var n,i,r,o,a,n=this,i=-1,r=n.qv(),a=r[t];if(e<t){for(o=t;e<o;o--)r[o]=r[o-1];r[e]=a,i=e}else if(t<e){for(o=t;o<e;o++)r[o]=r[o+1];r[e]=a,i=e}n.P3(r),n.setActiveSheetOrSheetTabIndex(i,2)},I.prototype.F3=function(t,e){t?this.setActiveSheetTab(e):this.setActiveSheet(e)},I.prototype.setActiveSheetOrSheetTab=function(t){var e=this.getSheetIndex(t),n=!1;H(e)&&(e=this.getSheetTabIndex(t),n=!0),H(e)||this.F3(n,t)},I.prototype.isFocus=function(){var t=E.hi.ai();return t&&t.getParent&&t.getParent()===this},I.prototype.clone=function(t,e,n,i){var r,t,o,a,s,u,c,f,l,h,d,r=this,t=r.Gm(t);if(H(i)&&(i=!0),!(H(t)||H(n)||r.Gm(n))&&(o=t instanceof v.Worksheet,r.suspendPaint(),r.suspendCalcService(),t.canClone)){if(a=JSON.stringify(t.toJSON({newWorkSheetName:n})),e<0&&(e=0),o?((s=r.S2(n)).Uw().G3=!0,r.addSheet(e,s)):((s=r.bb(n,t._gi)).Mf&&(s.Mf.Uw().G3=!0),r.yb(e,2,s)),r.getSheetPosition(n)!==e&&r.changeSheetPosition(n,e),s.fromJSON(JSON.parse(a)),r.setActiveSheetOrSheetTab(s.name()),o){for(c=t.tables.U3,f=s.tables.U3,l=void 0,h=0;h<c.length;h++)c[h].H3&&i&&(u=c[h].z3(),f[h].V3(u)),l=f[h].range(),s.Q1i&&s.Q1i(l.row,l.col,l.rowCount,l.colCount,C.SheetArea.viewport);(u=t.H3._dataSource)&&i&&(d=s.H3).bind(u)}else(u=t.Mf&&t.Mf.H3._dataSource)&&i&&(d=s.Mf.H3).bind(u);return r.resumeCalcService(!1),r.resumePaint(),s}},I.prototype.fM=function(t){var e,n,t,e,i,t,e=this,n=t.command;0!==t.vM&&n.hM||(t=n.sheetName?(0,E._f)(e,n.sheetName):(0,E.jf)(e))&&(e=t.getActiveRowIndex(),i=t.getActiveColumnIndex(),t=t.getSelections(),n.Z3={W3:t,K3:{row:e,col:i}})},I.prototype.mM=function(t){var e,t,n,i,r,t,o,a,n,s,u,c,f,l,h,e=this,t=t.command,n=t.Z3,i=(0,E.jf)(e),r;if((i&&i.name())!==t.sheetName&&((0,E.Ef)(e,t.sheetName),i=(0,E.jf)(e)),!H(n)&&i){if(i.suspendPaint(),t=n.K3,o=n.W3,a=n.J3,n=n.X3,H(t)||i.t4(t.row,t.col),!H(o))if(1===(s=o.length))i.setSelection(o[0].row,o[0].col,o[0].rowCount,o[0].colCount);else for(u=0;u<s;u++)c=o[u].row,f=o[u].col,l=o[u].rowCount,h=o[u].colCount,i.n4(c,f,l,h);if(I.et(e,"onCommandExecuting",i),!H(a)){for(u=0;u<a.length;u++)a[u].isSelected&&a[u].isSelected(!0);n||i.e4()}i.showCell(t.row,t.col,3,3),i.resumePaint()}},I.prototype.changeSelectionInCommandExecuting=function(t,e,n,i,r){var t,o;t&&t.Z3&&(o=(t=t.Z3).K3,H(o)||(H(e)||(o.row=e),H(n))||(o.col=n),H(i)||(t.W3=i),H(r)||(t.J3=r))},I.prototype.h3=function(){var t=this.getActiveSheet();t&&(t.L0(!1),t.b2(!1,!1)),this._2=-1},I.prototype.f3=function(){var t=this.getActiveSheetTab();t&&(t.L0(!1),t.b2(!1,!1)),this.jb=-1},I.prototype.yse=function(t){for(var e,n,i,e=[],n=0;n<t.length;n++)e[(i=t[n]).E0i=n]=i;return e},I.prototype.vse=function(t,e){for(var n,i,n=[],i=0;i<t.length;i++)n.push(t[i]);for(i=0;i<e.length;i++)n.push(e[i]);for(n.sort(function(t,e){return t.E0i-e.E0i}),i=0;i<n.length;i++)n[i].E0i=i;return n},I.prototype.qv=function(){var t=this;return t.sheets.length+t.mp.length!==t.dse.length&&(t.dse=[].concat(t.sheets).concat(t.mp)),t.dse},I.prototype.P3=function(t){var e,n,i,r,o,a,s,u,c,e=this,r=e.getActiveSheet(),o=e.getActiveSheetTab();for(r?n=r.name():o&&(i=o.name()),e.sheets.length=0,e.mp.length=0,a=e.sheets,s=e.mp,u=0;u<t.length;u++)(c=t[u]).E0i=u,(c instanceof v.Worksheet?a:s).push(c);n?e._2=e.getSheetIndex(n):i&&(e.jb=e.getSheetTabIndex(i)),e.dse=t},I.prototype.Gm=function(t){return this._f(t)||this.Ofe(t)},I.prototype.e2=function(t){return this.qv()[t]},I.prototype.getActiveSheetOrSheetTab=function(){return this.jg()},I.prototype.jg=function(){return this.getActiveSheet()||this.getActiveSheetTab()},I.prototype.I2=function(t,e,n,i){var t=this.e2(t);t&&(t instanceof v.Worksheet?this.vb(t.name(),e,n,i):this.s3(t.name(),e,n,i))},I.prototype.setActiveSheetOrSheetTabIndex=function(t,e,n,i){var r,o,r=this.getActiveSheet(),o=this.getActiveSheetTab();this.I2(t,H(e)?2:e,n,i),this.a3(r),this.u3(o)},I.prototype.getActiveSheetOrSheetTabIndex=function(){return this.ep()},I.prototype.ep=function(){var t=this.jg();return t?t.E0i:-1},I.prototype.i4=function(){var e=[].concat(this.sheets);return this.mp.forEach(function(t){t.Mf&&e.push(t.Mf)}),e},I.prototype.r4=function(){for(var t,e,n,i,r,o,t,e=this.sheets,n=e.length,i=[],r=0;r<n;r++)(o=e[r])&&i.push(o.name());return i},I.prototype.Ese=function(t){var e=this.getSheetIndex(t);return e=H(e)?this.getSheetTabIndex(t):e},I.Pp=Ut,I.Jp=1,I.Gp=0,N.Workbook=e=I,(0,E.$e)(e),e.prototype.nextControl=t("nextControl",F),e.prototype.previousControl=t("previousControl",F)},"./dist/core/workbook/workbookpanelex.js":function(m,t,e){"use strict";var E,n,i,H,e,f,p,w,b,X,i,a,C,U,y,q,$,tt,et,nt,it,rt,ot,at,st,ut,M,ct,ft,lt,F,_,u,ht,A,dt,L,vt,gt,D,j,O,V,mt,Y,pt,K,St,z,W,J,wt,r,k,o,T,x,G,s,Z,Q,c,S,B,l,I,h,P,n,h;function d(t){t.preventDefault?t.preventDefault():t.returnValue=!1}function v(t,e,n,i,r,o,a,s,u){this.updateStateFn=u;var u=this;u.o4=s,u.a4=!1,u.u4=!1,u.s4=p,u.c4=p,u.f4=300,u.l4=70,u.h4=t,u.qy(H.ScrollbarState.show),u.YC("number"==typeof e?e:0),u.ZC("number"==typeof n?n:0),u.d4("number"==typeof i?i:0),u.v4("number"==typeof r?r:0),u.m4("number"==typeof o?o:0),u.g4="number"==typeof a?a:1,u.p4=!1,u.b4=0,u.y4=u.m4(),u.w4()}function bt(t,e){var t=t.get(0);t&&(t.style[e]="")}function g(t,e){var n=this;n.C4=!0,n.S4=!0,n.T4=18,n.A4=t&&(0,E.GC$)(t),n.I4=e&&(0,E.GC$)(e),n.w4(!0)}Object.defineProperty(t,"__esModule",{value:!0}),t.x4=t.YM=t.ScrollOrientation=void 0,E=e("./dist/core/util/domUtil.js"),n=e("./dist/core/util/common.js"),i=e("Common"),H=e("./dist/core/core.enum.js"),e=e("./dist/core/workbook/sheettabbase.js"),f=i.Common.lt.ht,p=null,w=n.mt.Tt,b=n.mt.vi,X=n.mt.En,i=n.mt.p0,a=document,C=window,U=Math.round,y=Math.ceil,q="gc-scroll-container",$="gc-scroll-corner-all",tt="gc-scroll-arrow",et="gc-scrollbar-wrapper",nt="gc-scroll-bar",it="gc-scroll-arrowUp",rt="gc-scroll-arrowDown",ot="gc-scroll-arrowLeft",at="gc-scroll-arrowRight",st="gc-scroll-mobile-track",ut="gc-scroll-mobile-thumb",M="gc-scroll-mobile-state-active",ct="gc-scrollbar-vertical",ft="gc-scrollbar-horizontal",lt="gc-no-user-select",F="width",_="height",u="gc-scrollbar-stateActive ui-state-active",ht="float",A="left",dt="right",L="top",vt="bottom",gt="margin-left",D="position",j="border",O="padding",V="margin",mt="overflow",Y="display",pt="outline",K="100%",St="borderWidth",z="boxSizing",W="absolute",J="relative",wt="margin-top",k="mousedown"+(r=".gcScrollbar"),o="mouseup"+r,T="mousemove"+r,x="mouseover"+r,G="mouseout"+r,s="mousewheel",Z="inline-block",Q="content-box",c="DOMMouseScroll",S="scroll"+r,B="scrollbar",(h=l=t.ScrollOrientation||(t.ScrollOrientation={}))[h.horizontalScroll=0]="horizontalScroll",h[h.verticalScroll=1]="verticalScroll",v.prototype.oy=function(){return this.N4},v.prototype.qy=function(t){t===H.ScrollbarState.inactive&&this.a4||(this.O3=t,this.updateStateFn&&this.updateStateFn())},v.prototype.value=function(t){var e,t,e=this;return 0===arguments.length?e.y4:("number"==typeof t&&t<=e.v4()&&t>=e.m4()&&(t=((e.y4=t)-e.m4())*e.k4,e.scrollTo(t,!0)),e)},v.prototype.w4=function(){var e,t,n,i,r,o,a,s,u,c,f,l,h,d,v,g,m,p,S,w,b,C,y,M,k,T,x,G;function B(){e.N4=X("div"),e.D4=(0,E.GC$)(e.N4),e.D4.css([D,A,L,mt,pt,O,V],[J,0,0,"hidden","none",0,0]).addClass(q+" "+$+" "+s+" "),e.h4&&e.D4.css(ht,A)}function I(t){e._4=E.GC$.En("div",[D,Y,St,O,V,z],[W,Z,"1px",0,0,Q],tt+" "+w,t),e.E4=E.GC$.En("span",[Y,j,O,V],["block","none",0,0],g+" "+b,e._4)}function P(t){e.j4=E.GC$.En("div",[D,Y,z,j,O,V],[W,Z,Q,"none",0,0],et+" "+et,t)}function N(t){e.O4=E.GC$.En("div",[],[],lt+" "+C+" "+nt,t),e.R4=E.GC$.En("span",[Y,j,O,V],["block","none",0,0],p+" "+y,e.O4)}function R(t){e.B4=E.GC$.En("div",[D,Y,St,O,V,z],[W,Z,"1px",0,0,Q],tt+" "+M,t),e.L4=E.GC$.En("span",[Y,j,O,V],["block","none",0,0],m+" "+k,e.B4)}n=t=0,i=!1,a=(o=(r=(e=this).o4)===H.ScrollbarAppearance.mobile)?0:2,s="ui-widget ui-corner-all",u=e.ZC(),c=e.YC(),h=f=o?0:u,d=A,v=dt,g=ot,m=at,p=ft,S=gt,w="ui-button ui-state-default ui-corner-bl btn btn-default",b="ui-icon ui-icon-triangle-1-w",C="gc-scroll-handle ui-button ui-state-default ui-corner-all ui-draggable btn btn-default",y="ui-icon ui-icon-grip-solid-vertical",M="ui-button ui-state-default ui-corner-br btn btn-default",k="ui-icon ui-icon-triangle-1-e",e.F4=l=c-2*f,e.h4||(l=f=o?0:c,d=L,v=vt,g=it,m=rt,p=ct,S=wt,w="ui-button ui-state-default ui-corner-tr btn btn-default",b="ui-icon ui-icon-triangle-1-n",C="gc-scroll-handle ui-button ui-state-default ui-corner-all ui-draggable btn btn-default",y="ui-icon ui-icon-grip-solid-horizontal",M="ui-button ui-state-default ui-corner-br btn btn-default",k="ui-icon ui-icon-triangle-1-s",e.F4=h=u-2*f),T=e.F4,x=e.v4()-e.m4(),e.P4=e.d4()*T/(x+e.d4()),e.P4>T&&(e.P4=T),e.P4<10&&(e.P4=10),G=e.P4,e.k4=0==x?1:(T-G)/x,n=e.h4?(t=G,f):(t=f,G),e.D4||(i=!0,B()),o?e.D4.addClass(st):e.D4.removeClass(st),e._4||I(e.D4),e.j4||P(e.D4),e.O4?e.O4.removeAttr("style"):N(e.j4),o?e.O4.css(D,W).addClass(ut):e.O4.css([D,St,O,V,z],[W,"1px",0,0,Q]).removeClass(ut),e.B4||R(e.D4),o?(bt(e.D4,j),bt(e.D4,V),e.h4?(e.D4.css([F,_],[c,K]),e.j4.css([d,F,_],[f,K,K]),e.O4.css([d,F,_],[e.b4,U(t-a),K])):(e.D4.css([F,_,V],[K,K,0]),e.j4.css([d,F,_],[f,K,K]),e.O4.css([d,F,_],[e.b4,K,U(n-a)])),e.R4.remove(),e._4.remove(),e.B4.remove()):(e.D4.css([F,_,j],[c,u,"none"]),e.j4.css([d,F,_],[f,l,h]),e.O4.css([d,F,_],[e.b4,U(t-a),U(n-a)]),e._4.css([d,F,_],[0,f-a,f-a]),e.E4.css([F,_],[K,K]),e.B4.css([v,F,_],[0,f-a,f-a]),e.L4.css([F,_],[K,K]),e.R4.css([F,_,S],[f-a,f-a,Math.floor((e.P4-f)/2)]),e.O4.append(e.R4),e.D4.append(e._4),e.D4.append(e.B4)),i&&e.G4()},v.prototype.G4=function(){var r=this;function t(t,e){t.bind(k,function(t){r.U4(t,e)}).bind(o,function(t){r.H4(t,e)}).bind(x,function(t){r.z4(t,e)}).bind(G,function(t){r.V4(t,e)})}t(r._4,!0),t(r.B4,!1),r.O4.bind(k,function(t){r.Y4(t)}).bind(T,function(t){r.Z4(t)}).bind(o,function(t){r.W4(t)}).bind(x,function(t){r.K4(t)}).bind(G,function(t){r.J4(t)}),r.j4.bind(k,function(t){var e,n,i,e;w&&w.mozilla&&(n=(new Date).valueOf(),i=r.X4,r.X4=n,i)&&n-i<100||r.q4(t)}).bind(o,function(t){r.tS(t)}),r.nS=function(t){r.eS(t)},r.D4.bind(s,r.nS),r.D4.bind(c,r.nS),v.et(r,"initEvents",r.N4)},v.prototype.Jw=function(t){this.o4=t},v.prototype.dispose=function(){var t=this;function e(t){t&&t.unbind(r)}e(t.B4),e(t.O4),e(t._4),e(t.j4),t.D4&&(t.nS&&(t.D4.unbind(s,t.nS),t.D4.unbind(c,t.nS)),v.et(t,"dispose",t.N4),t.D4.unbind(r).remove())},v.prototype.Fg=function(){var e=this;e.p4||((0,E.GC$)(a).bind(T,function(t){e.Z4(t)}).bind(o,function(t){e.W4(t)}),e.p4=!0)},v.prototype.u2=function(){this.p4&&(this.p4=!1,E.GC$)(a).unbind(T).unbind(o)},v.prototype.U4=function(t,e){var n,i,r,o,n=0,i=this,r=!0;i.u4=!0,null===i.s4&&(e?(i._4.addClass(u),n=0-i.iS(),i.rS=H.Zi.smallDecrement):(i.B4.addClass(u),n=i.iS(),i.rS=1),(o=function(){i.scrollTo(i.b4+n*i.k4,!1),i.s4=C.setTimeout(o,r?i.f4:i.l4),r=!1})(),d(t))},v.prototype.H4=function(t,e){var n,i,n=this,i;(e?n._4:n.B4).removeClass(u),n.oS(),d(t)},v.prototype.z4=function(t,e){var n,i,n=this,i;(e?n._4:n.B4).addClass("gc-scroll-arrow-hover ui-state-hover"),d(t)},v.prototype.V4=function(t,e){var n,i,n=this,i;(e?n._4:n.B4).removeClass("gc-scroll-arrow-hover ui-state-hover "+u),n.oS(),d(t)},v.prototype.Y4=function(t){var e,n,i,r,o,a,s,e=this;0===t.button&&(e.a4=!0,e.Z3={x:t.pageX,y:t.pageY},e.qy(H.ScrollbarState.show),e.Fg(),e.D4.addClass(M),e.O4.addClass(u),n=e.O4.offset(),i=e.O4.outerWidth(!0),r=e.O4.outerHeight(!0),o=e.j4.offset(),a=e.j4.outerWidth(!0),s=e.j4.outerHeight(!0),e.aS={isBeyondEdge:!1,startEdgePosition:{x:o.left+t.pageX-n.left,y:o.top+t.pageY-n.top},endEdgePosition:{x:o.left+a-(i-t.pageX+n.left),y:o.top+s-(r-t.pageY+n.top)}}),d(t)},v.prototype.Z4=function(t){var e=this;e.a4&&(e.qy(H.ScrollbarState.active),e.uS={x:t.pageX,y:t.pageY},e.sS(),e.Z3=e.uS,(0,E.GC$)(a.body).attr("unselectable","on").addClass(lt)),d(t)},v.prototype.W4=function(t){var e,n,i,r,o,o,e=this;e.a4=!1,e.rS=H.Zi.thumbPosition,e.aS=null,e.D4.trigger(S,{newValue:e.y4,oldValue:e.y4,scrollOrientation:e.h4?l.horizontalScroll:l.verticalScroll,scrollEventType:e.rS}),i=((n=e.y4)-e.m4())*e.k4,r="left",o=(o=t.target.classList)&&o.contains(ut),e.h4||(r="top"),o?e.qy(H.ScrollbarState.hide):e.qy(H.ScrollbarState.inactive),e.b4=i,e.O4.css(r,U(i)),e.u2(),(0,E.GC$)(a.body).removeClass(lt),(0,E.GC$)(a.body).attr("unselectable")&&(0,E.GC$)(a.body).removeAttr("unselectable"),e.O4.removeClass(u),e.D4.removeClass(M),e.rS=6,e.D4.trigger(S,{newValue:e.y4,oldValue:e.y4,scrollOrientation:e.h4?l.horizontalScroll:l.verticalScroll,scrollEventType:e.rS}),d(t)},v.prototype.K4=function(t){this.O4.addClass("gc-scrollbar-stateHover ui-state-hover"),d(t)},v.prototype.J4=function(t){this.O4.removeClass("gc-scrollbar-stateHover ui-state-hover"),d(t)},v.prototype.eS=function(t){var e,n,i,i,e=this;f(t.wheelDelta)&&f(t.detail)&&(t.wheelDelta=t.originalEvent.wheelDelta,t.detail=t.originalEvent.detail),i=(n=t.detail||t.wheelDelta/-40)/3*e.iS()*e.k4,e.rS=0<=i?1:0,e.scrollTo(e.b4+i,!1),e.rS=6,i={newValue:e.y4,oldValue:e.y4,scrollOrientation:e.h4?l.horizontalScroll:l.verticalScroll,scrollEventType:e.rS},e.D4.trigger(S,i),d(t)},v.prototype.q4=function(t){var n,i,r,o,a,s,u,c,n=this,i=!0,r=t.pageX,o=t.pageY,a=0,s=n.j4.offset(),u=n.cS();null===n.c4&&(a=n.h4?r-s.left-n.b4:o-s.top-n.b4,(c=function(){var t=0,e=n.b4,t;if((t=n.h4?r-s.left-e:o-s.top-e)*a<0||0<=t&&t<n.P4)n.fS();else{if(a<0)n.rS=H.Zi.largeDecrement,n.scrollTo(e-u*n.k4,!1);else{if(!(0<a))return void n.fS();n.rS=H.Zi.largeIncrement,n.scrollTo(e+u*n.k4,!1)}n.c4=C.setTimeout(c,i?n.f4:n.l4),i=!1}})(),d(t))},v.prototype.tS=function(t){this.fS(),d(t)},v.prototype.fS=function(){var t,e,t=this;t.c4&&clearTimeout(t.c4),t.c4=p,t.rS=H.Zi.endScroll,e={newValue:t.y4,oldValue:t.y4,scrollOrientation:t.h4?l.horizontalScroll:l.verticalScroll,scrollEventType:t.rS},t.D4.trigger(S,e)},v.prototype.oS=function(){var t,e,t=this;t.u4&&(t.u4=!1,t.s4&&clearTimeout(t.s4),t.s4=p,t.rS=6,e={newValue:t.y4,oldValue:t.y4,scrollOrientation:t.h4?l.horizontalScroll:l.verticalScroll,scrollEventType:t.rS},t.D4.trigger(S,e))},v.prototype.sS=function(){var n,t,e,i,r,o,e,a,s,i,u,s;function c(t){return n.h4?t.x:t.y}function f(t,e){n.h4?t.x=e:t.y=e}if(t=(n=this).b4,e=n.uS,i=n.aS,e=c(e),a=c(n.Z3),i&&i.isBeyondEdge){if(s=c(i.startEdgePosition),i=c(i.endEdgePosition),(r=e<s)||(o=i<e))return;a<s&&f(n.Z3,s),i<a&&f(n.Z3,i)}(s=t+(u=e-a))!==t&&(n.rS=5,n.scrollTo(s,!1))},v.prototype.scrollTo=function(t,e){var n,i,r,o,a,s,r,s,u,c,e,n=this,i=L,r=n.F4-n.P4;n.h4&&(i=A),s=a=o=!1,r<t&&(t=r,a=s=!0),t<0&&(o=s=!(t=0)),n.aS&&(n.aS.isBeyondEdge=s),r=n.g4===H.ScrollType.continuous?U(t/n.k4)+n.m4():t/n.k4+n.m4(),s=n.y4,u=!1,e||(e={newValue:r,oldValue:s,scrollOrientation:n.h4?l.horizontalScroll:l.verticalScroll,scrollEventType:n.rS,isBeyondMaxEdge:a,isBeyondMinEdge:o},n.D4.trigger(S,e),u=e.ignoreUpdatePosition,e.newValue>n.v4()&&(e.newValue=n.v4()),r=e.newValue,c=e.newValueWithOffset),f(c)&&(c=r),n.y4=r,5!==n.rS&&(t=(c-n.m4())*n.k4),n.b4=t,u||n.O4.css(i,U(t))},v.prototype.hitTest=function(t,e){var n,i,r,o,a,s,u,c,f,s,o,f,a,n=this,i=0,r=0,o=n.O4.outerWidth(),a=n._4.outerWidth(),s=n.j4.outerWidth(),u=n.O4.offset(),c=(0,E.GC$)(n.oy()).offset(),f=u.left-c.left-18;return n.h4?t<0+s+a&&0+a<t?t<f+o+a&&f<t?{element:H.Yi.ThumbButton,x:t,y:e}:{element:H.Yi.TrackButton}:t<=0+a&&0<t?{element:H.Yi.LeftButton,x:t,y:e}:{element:H.Yi.RightButton,x:t,y:e}:(s=n.O4.outerHeight(),o=n._4.outerHeight(),f=n.j4.outerHeight(),a=u.top-c.top-18,e<0+f+o&&0+o<e?e<a+s+o&&a<e?{element:H.Yi.ThumbButton,x:t,y:e}:{element:H.Yi.TrackButton}:e<=0+o&&0<e?{element:H.Yi.UpButton,x:t,y:e}:{element:H.Yi.DownButton,x:t,y:e})},v.prototype._b=function(){var t=this;return{x:0,y:0,width:t.YC(),height:t.ZC()}},v.prototype.show=function(){this.j4.show()},v.prototype.hide=function(){this.j4.hide()},v.prototype.lS=function(t){var e,e,e=this,e=e.D4.parent()&&e.D4.parent().parent();return e?t?e.height():e.width():p},I=v,t.YM=I,(0,n.$e)(I),(h=I.prototype).iS=i("smallChange",1),h.cS=i("largeChange",10),h.d4=i("pageValue",10,function(t){t<=0&&this.d4(1)}),h.v4=i("maximum",100,function(t){t<=0&&this.v4(0)}),h.m4=i("minimum",0,function(t){t<=0&&this.m4(0)}),h.YC=i("width",0),h.ZC=i("height",0),g.prototype.w4=function(t){var a,e,n,i,r,o,s,u,c,t,r,o,f,l;function h(t){return t===W?E.GC$.En("div",[D,A,L,j,O,V],[W,0,0,"none",0,0]):t===J?E.GC$.En("div",[D,A,L,j,O,V],[J,0,0,"none",0,0]):p}function d(t,e){var n,n,i,e,n=e?a.hS:a.dS;return n||(n=new I(e),i=E.GC$.En("div"),e?(a.vS=i,a.hS=n,i.css([D,A,vt,j,O,V],[W,0,0,"none",0,0])):(a.mS=i,a.dS=n,i.css([D,dt,L,j,O,V],[W,0,0,"none",0,0])),e=(e?a.hS:a.dS).oy(),i.append(e),t.append(i),n)}function v(t,e,n,i,r,o){o?(a.vS.css([F,_],[e,i]),t.YC(e),t.ZC(i)):(a.mS.css([F,_],[i,e]),t.YC(i),t.ZC(e)),t.m4(0),t.v4(r-e),t.d4(e),t.iS(o?a.gS():a.pS()),t.cS(e),t.w4(),(0,E.GC$)(t.oy()).bind(S,function(t,e){n.css(o?A:L,0-e.newValue)}),(o?a.vS:a.mS).show()}function g(t){a.bS||(a.bS=h(J),a.bS.css([mt,Y,F],["hidden",Z,K]),t.append(a.bS))}function m(t){a.yS||(a.yS=E.GC$.En("div",D,J,p,t))}(a=this).A4&&a.I4&&(e=a.T4,n=a.I4.width(),i=a.I4.height(),s=(r=a.A4.width())-e,u=(o=a.A4.height())-e,c=!1,a.wS||(a.wS=h(J),a.wS.css([D,mt],[J,"hidden"]),c=!0),a.wS.css(_,o),g(a.wS),m(a.bS),t&&a.yS.append(a.I4).css([L,A],[0,0]),w.chrome&&(n=U(n),i=U(i),r=y(r),o=y(o)),r=(t=a.CS(n,i,r,o)).MS,(o=t.SS)?(r||(s+=e),v(f=d(a.wS,!0),s,a.yS,e,n,!0)):a.vS&&a.vS.hide(),r?(o||(u+=e),v(l=d(a.wS,!1),u,a.yS,e,i,!1)):a.mS&&a.mS.hide(),o||r||(s+=e,u+=e),a.C4=o,a.S4=r,a.TS=s,a.AS=u,a.bS.css(_,u),c)&&(a.A4.append(a.wS),a.IS())},g.prototype.xS=function(t){var e,t,n,t,e=this,t=e.NS(t),n=t.I0,t=t.A0;!f(n)&&e.hS&&e.wy(n),!f(t)&&e.dS&&e.yy(t)},g.prototype.wy=function(t){var e,n,i,e=this;e.hS.value(t),n=e.TS,i=e.I4.width(),0<=t&&t<=i-n&&e.yS.css(A,0-t)},g.prototype.yy=function(t){var e,n,i,e=this;e.dS.value(t),n=e.AS,i=e.I4.height(),0<=t&&t<=i-n&&e.yS.css(L,0-t)},g.prototype.CS=function(t,e,n,i){var r,o=n,a=i-this.T4,s={SS:!1,MS:!1};return n<t&&(s.SS=!0,s.MS=a<e),i<e&&(s.MS=!0,s.SS=o<t),s},g.prototype.NS=function(t){var e=(0,E.GC$)(t),n=this.bS,i=this.yS,t,i,r,e,o,e,o,a={I0:p,A0:p};return t&&(t=e.offset(),i=i.offset(),r=n.offset(),t.leftWidth=t.left+e.outerWidth(),t.topHeight=t.top+e.outerHeight(),r.leftWidth=r.left+n.outerWidth(),r.topHeight=r.top+n.outerHeight(),e=t.left-i.left,t.left<r.left?a.I0=e:t.leftWidth>r.leftWidth&&(o=t.leftWidth-i.left-n.innerWidth(),a.I0=e<o?e:o),e=t.top-i.top,t.top<r.top?a.A0=e:t.topHeight>r.topHeight&&(o=t.topHeight-i.top-n.innerHeight(),a.A0=e<o?e:o)),a},g.prototype.IS=function(){var e=this;this.yS&&(e.nS=function(t){e.kS(t)},e.yS.bind(s,e.nS),e.yS.bind(c,e.nS))},g.prototype.kS=function(t){var e,n,i,r,o,a,s,i,e=this;f(t.wheelDelta)&&f(t.detail)&&(t.wheelDelta=t.originalEvent.wheelDelta,t.detail=t.originalEvent.detail),i=n=t.detail||t.wheelDelta/-40,r=e.dS,o=parseInt(e.yS.css(L),10),a=e.AS,(s=e.I4.height())<a&&(s=a),(i=(i=0<=(i=(o=isNaN(o)?0:o)-i*e.pS())?0:i)<0&&s-a<0-i?0-(s-a):i)!==o&&(e.yS.css(L,i),e.S4)&&r.value(0-i),b(t)},g.prototype.dispose=function(){var t=this;t.wS&&(t.hS&&t.hS.dispose(),t.dS&&t.dS.dispose(),t.yS&&t.nS&&(t.yS.unbind(s,t.nS),t.yS.unbind(c,t.nS)),(0,E.GC$)(t.wS).remove())},(n=(t.x4=P=g).prototype).gS=i("horizontalSmallChange",10),n.pS=i("verticalSmallChange",10),e.Hv.ch(B,{preProcessMouseMove:function(t){var e=this.Vv,n;(e.Xb.a4||e.zb.a4)&&(t.r=!0)}})},"./dist/core/worksheet/actionbase.js":function(t,e){"use strict";function i(t,e){t.suspendPaint(),e||t.suspendEvent()}function r(t,e){e||t.resumeEvent(),t.resumePaint()}var n;function o(t,e){this.X5=i,this.q5=r;var n=this;n.Mf=t,n.tT=e}Object.defineProperty(e,"__esModule",{value:!0}),e.ActionBase=void 0,o.prototype.execute=function(){},o.prototype.canExecute=function(){return!0},o.prototype.canUndo=function(){return!0},o.prototype.undo=function(){return!0},e.ActionBase=o},"./dist/core/worksheet/clipboardhelper.js":function(t,e,n){"use strict";var A,i,f,l,x,L,h,D,d,j,O,r,G,o;function a(t){return t&&t.options.allowCopyPasteExcelStyle}function v(t,e){var n,i;if(D.msie){for(n=[],i=0;i<t.length;i++)e&&""===t[i].trim()||n.push(t[i]);return n.join("")}return t.join("")}function s(t){for(var e,n,i,e="picture",n=1,i=e+n.toString();t.get(i);)i=e+(++n).toString();return i}function B(t,e,n,i){for(var r,o,a,r=[],o=0,a=n;o<a;o++)r[e+o]=t.getRowHeight(e+o,i);return r}function I(t,e,n,i){for(var r,o,a,r=[],o=0,a=n;o<a;o++)r[e+o]=t.getColumnWidth(e+o,i);return r}function S(t,e,n){var i,r;if(e=e||"\x3c!--",n=n||"--\x3e",t)for(;;){if((i=t.indexOf(e))<0)break;if((r=t.indexOf(n))<0)break;t=t.substring(0,i)+t.substring(r+n.length)}return t}function c(t,e,n){var i,r,i=-1;if(n)for(r=i=0;r<e;r++)i+=n[t+r]||0;return i}function g(t,e,n){var i,r,i=-1;if(n)for(r=i=0;r<e;r++)i+=n[t+r]||0;return i}function u(t){this.Nf=[],this.Zc=t}function m(t){this.Nf={},this.Doe=t,this.joe=t.map(function(t){return new r(t)}),this.Lre=1}function V(t){var e=this;e.DS=O,e._S=O,e.ES=!1,e.jS=t,e.En()}Object.defineProperty(e,"__esModule",{value:!0}),e.yM=e.Ooe=e.Boe=void 0,A=n("./dist/core/util/common.js"),i=n("Common"),f=n("./dist/core/worksheet/stylehelper.js"),l=n("./dist/core/worksheet/style.js"),x=n("./dist/core/core.enum.js"),L=i.Common.zf,h=/<img[^>]+>/g,D=A.mt.Tt,d=i.Common.lt.ht,j=i.Common.Uf.OS,O=null,u.prototype.add=function(t){var e=this.Nf,n=e.indexOf(t);return-1===n&&(e.push(t),n=e.length-1),n},u.prototype.toString=function(t){var t=this.Nf[t];return d(t)?"":this.Zc+":"+t},r=u,e.Boe=r,m.prototype.Loe=function(n){var i=this.joe;return this.Doe.map(function(t,e){return i[e].add(n[t])}).join("_")},m.prototype.add=function(t){var e=this.Nf,t=this.Loe(t);return e[t]||(e[t]="sjs"+this.Lre,this.Lre++),e[t]},m.prototype.toString=function(){var t,e,n,i,r,o,a,s,u,t=this.joe,e=[],n=this.Nf;for(i in n)if(n.hasOwnProperty(i)){for(r=i.split("_"),o=[],a=0;a<this.Doe.length;a++)(s=t[a].toString(+r[a]))&&o.push(s);u="."+n[i]+"{\r\n"+o.join(";\r\n")+"\r\n}\r\n",e.push(u)}return e.join("")},G=m,e.Ooe=G,V.prototype.En=function(){var c,t,e,n,i,c=this,t=document.createElement("div");t.style.position="fixed",t.style.top="0px",t.style.left="0px",t.style.width="0px",t.style.height="0px",t.style.overflow="hidden",(e=document.createElement("div")).setAttribute("contenteditable","true"),e.setAttribute("gcUIElement","gcSheetClipboard"),e.setAttribute("tabindex","-1"),e.style.position="absolute",e.style.overflow="hidden",e.style.background="white",e.style.webkitUserSelect="text",t.appendChild(e),c.RS=e,(n=document.createElement("textarea")).setAttribute("gcUIElement","gcSheetClipboard"),c.jS&&c.jS.options.enableAccessibility&&(n.setAttribute("aria-hidden","true"),n.setAttribute("role","none"),n.setAttribute("title","")),n.setAttribute("tabindex","-1"),n.style.position="absolute",n.style.overflow="hidden",n.style.background="white",n.style.webkitUserSelect="text",t.appendChild(n),c.BS=n,(i=c.jS.getHost())&&i.appendChild(t),D.msie||D.edge||(c.qfe=function(t){var e,n,i,i,e=t.clipboardData;e&&(i=(n=c.DS).bT(c._S),e.setData("text/plain",i),i=n.MT(c._S),e.setData("text/html",i),t.preventDefault())},c.FS=function(t){var n,e,i,r,o,a,s,u,r,n=(0,A.jf)(c.jS),e=t.clipboardData;if(e)if(i=(i=e.getData("text/html")).replace(h,""),(r=c.PS()).innerHTML=i,o=i?c.GS(r,!0):V.formatClipboardData(e.getData("text/plain")),r.innerHTML="",o||i&&0<=i.indexOf("<table"))n.US(o,i);else{for(a=void 0,s=e.items,u=0;u<s.length&&(0!==s[u].type.indexOf("image")||!(a=s[u].getAsFile()));u++);a&&((r=new FileReader).onload=function(t){var e=new Image;e.src=t.target.result,e.onload=function(){n.US(o,i,e.src)}},r.readAsDataURL(a))}t.preventDefault()},e.addEventListener("cut",c.qfe),e.addEventListener("copy",c.qfe),e.addEventListener("paste",c.FS),c.HS=function(t){var e,n,i,n,r,e=(0,A.jf)(c.jS),n=t.clipboardData;n&&((i=V.formatClipboardData(n.getData("text/plain")))||(n=n.getData("text/html"))&&((r=c.PS()).innerHTML=n,i=c.GS(r,!1),r.innerHTML=""),e.US(i,"")),t.preventDefault()},n.addEventListener("paste",c.HS))},V.prototype.L0=function(){var t,e,e,n,n,e,e,n,t=this,e=t.RS;e&&(D.msie||D.edge||(e.removeEventListener("cut",t.qfe),e.removeEventListener("copy",t.qfe),e.removeEventListener("paste",t.FS),t.BS.removeEventListener("paste",t.HS)),(e=e.parentElement)&&(n=e.parentElement)&&n.removeChild(e),t.RS=O,t.BS=O),(n=t.zS)&&((e=n.parentElement)&&e.removeChild(n),t.zS=O),(e=t.VS)&&((n=e.parentElement)&&n.removeChild(e),t.VS=O),t.jS=O},V.prototype.YS=function(t){a(this.jS)?this.RS.innerHTML=t:this.BS.value=t},V.prototype.ZS=function(){(a(this.jS)?this.RS:this.BS).focus({preventScroll:!0})},V.prototype.WS=function(){a(this.jS)?document.execCommand("selectAll"):this.BS.select()},V.prototype.QS=function(){var t,e,n,i,r,r,t="",e="",n="";return e=a(this.jS)?((i=this.RS)&&(0<(r=i.getElementsByTagName("table")).length?t=r[0].outerHTML:0<(r=i.getElementsByTagName("img")).length&&(n=r[0].src)),this.GS(this.RS,!0)):V.formatClipboardData(this.BS.value),{html:t,text:e,image:n}},V.KS=function(t,e,n,i,r,o,a,s,u,c,f,l,h,d){var v,g,m,p,S,e,f,w,b,C,y,y,M,k,T,e,S,S;return d||!D.chrome&&!D.edge||(V.Foe=new G(["background-color","color","font","white-space","vertical-align","text-align","border-left","border-right","border-top","border-bottom"])),v=t.JS((0,A.Ec)(n,r,i,o),a),g=new RegExp(String.fromCharCode(32),"g"),S=p=!(m="&nbsp;"),a===x.SheetArea.viewport&&(n<0&&2==(2&e)&&(p=!0),r<0)&&1==(1&e)&&(S=!0),n=v.row,r=v.col,i=v.rowCount,o=v.colCount,e=f?t.options.gridline:O,f=f?{color:"#d4d4d4",showHorizontalGridline:!0,showVerticalGridline:!0}:O,w=h?B(t,n,i,a):O,b=h?I(t,r,o,a):O,C=!d&&4e3<i*o&&(D.safari||D.mozilla||A.mt.Qf()&&D.chrome),a===x.SheetArea.viewport?(M=y=void 0,T=k=O,e=V.XS(t,n,i,r,o,3,u,c,s,v,g,m,e,l,w,b,d),S&&(y=h?I(t,r,o,2):O,S=t.getColumnCount(2),k=V.XS(t,n,i,0,S,2,u,[],s,v,g,m,f,l,w,y,d)),p&&(M=h?B(t,n,i,1):O,S=t.getRowCount(1),T=V.XS(t,0,S,r,o,1,[],c,s,v,g,m,f,l,M,b,d)),y=V.qS(e,k,T,d,C)):a===x.SheetArea.rowHeader?(k=V.XS(t,n,i,r,o,2,u,c,s,v,g,m,f,l,w,b,d),y=V.qS(k,O,O,d,C)):a===x.SheetArea.colHeader&&(T=V.XS(t,n,i,r,o,1,u,c,s,v,g,m,f,l,w,b,d),y=V.qS(T,O,O,d,C)),V.Foe&&(V.Foe=O),y},V.qS=function(t,e,n,i,r){var o,a,s,e,u,o=t,a=0,s=function(t,e){for(var n,i,r,n=[],i=t.length,r=0;r<i;r++)n.push(t[r].concat(e[r]));return n};return e&&(a=e[0].length,o=s(e,t)),n&&(e=n.length,o=(n=a?s(u=V.XS(O,0,e,0,a,O,[],[],!1,O,O,O,O,!1,[],[],i),n):n).concat(o)),r&&V.$S(o),V.t5(o,i)},V.$S=function(t){for(var e,n,e=t.length,n=t.length-1;0<=n&&-1===t[n].join("").search(/>\S+</);n--)e=n;t.length=e},V.t5=function(t,e){var n,i,r,o,a,n="",i=!!V.Foe;for(i&&(n=(n+="<html>\r\n<head>\r\n<style>\r\n")+V.Foe.toString()+"</style>\r\n</head>\r\n<body>\r\n"),r=t.length,n+=e?'<table style="border-collapse: collapse">':'<table gc-sjs-clipboard="true" style="min-width:1px;min-height:1px;">',o=0;o<r;o++){for(n+="<tr>",a=0;a<t[o].length;a++)n+=t[o][a];n+="</tr>"}return n+="</table>",i&&(n+="\r\n</body>\r\n</html>"),n},V.n5=function(t){return t&&0<=t.indexOf('gc-sjs-clipboard="true"')},V.vI=function(t,e,n,i,r,o,a){var s,u,c,i,r,f,l,l,l,o,l,s,o,u,a,e,l,s,l,s,l,s=V.convertVAlign,u=V.convertHAlign,c=V.convertLineBorder,i=i,r=r,f={},l=t.backColor;return l&&(f["background-color"]=l,r=i=!1),(l=t.foreColor)&&(f.color=l),(l=t.font)&&(o&&(l=l+", "+A.FallbackFontFamily),f.font=l.replace(/"/g,"'").replace(/([\.\d]+px)/,function(t){return(3*parseFloat(t.substring(0,t.length-2))/4).toFixed(2)+"pt"})),f["white-space"]=t.wordWrap?a?"pre":"normal":"nowrap",o=t.vAlign,d(o)||(f["vertical-align"]=s(o)),l=t.hAlign,d(l)||(s=u(l=a?A.mt.gt(l,e):l))&&(f["text-align"]=s),o="border-left",u="border-right",a="border-top",e="border-bottom",(l=t.borderLeft)&&(f[o]=c(l),r=!1),(s=t.borderRight)&&(f[u]=c(s),r=!1),(l=t.borderTop)&&(f[a]=c(l),i=!1),(s=t.borderBottom)&&(f[e]=c(s),i=!1),l="1px solid "+n,i&&(f[a]=l,f[e]=l),r&&(f[o]=l,f[u]=l),f},V.dge=function(t,e,n,i,r){var o,a,s,u,c,o=t.row===e&&t.col===n;if(i&&r){for(s=t.row;s<t.row+t.rowCount;s++)if(0<i[s]){a=s;break}for(u=void 0,c=t.col;c<t.col+t.colCount;c++)if(0<r[c]){u=c;break}o=a===e&&u===n}return o},V.hge=function(t,e,n){var i,r,i=e;if(n)for(r=t;r<t+e;r++)n[r]<=0&&i--;return i},V.XS=function(t,e,n,i,r,o,a,s,u,c,f,l,h,F,d,v,g){var m,p,S,w,b,C,y,M,k,T,x,G,B,I,P,N,R,R,E,H,_,U,B,x,I,P,N;for(h&&(m=h.color,p=h.showHorizontalGridline,S=h.showVerticalGridline),w=[],b=0;b<n;b++)if(!(j(a,C=e+b)||g&&d&&d[C]<=0)){for(y=[],M=0;M<r;M++)if(!(j(s,k=i+M)||g&&v&&v[k]<=0)){if(T="",G=x=void 0,N=P=I=B=1,u&&t&&(x=(x=t.getSpan(C,k,o))&&V.isPartSpan(x,c,a,s)?O:x)){if(x.row!==C||x.col!==k){if(!V.dge(x,C,k,d,v))continue;C=x.row,k=x.col}G=t.getActualStyle(C,k,o),R=t.getActualStyle(x.row+x.rowCount-1,x.col+x.colCount-1,o),!G.borderRight&&R.borderRight&&(G.borderRight=R.borderRight),!G.borderBottom&&R.borderBottom&&(G.borderBottom=R.borderBottom)}if(T+="<td",R=t&&t.getValue(C,k,o),u&&t){if(x&&(B=V.hge(x.row,x.rowCount,d),P=x.rowCount,1<B&&(T+=" rowSpan="+B),I=V.hge(x.col,x.colCount,v),N=x.colCount,1<I)&&(T+=" colSpan="+I),G=G||t.getActualStyle(C,k,o),E=g?"padding: 0; ":"",H=V.vI(G,R,m,p,S,F,g),V.Foe)T+=' class="'+(_=V.Foe.add(H))+'"';else for(U in H)H.hasOwnProperty(U)&&(E+=U+": "+H[U]+"; ");B=H.font?A.mt.vt(H.font):0,(E+=V.e5(C,k,P,N,d,v,B))&&(T+=' style="'+E+'"')}T+=">",I=x=void 0,u&&t&&((x=2==(2&(P=G.textDecoration)))&&(T+="<s>"),I=(I=1==(1&P))||8==(8&P))&&(T+="<u>"),(N=t?t.getText(C,k,o):"")?(" "!==N[0]&&" "!==N[N.length-1]||"number"!=typeof R||(N=N.trim()),"number"!=typeof R&&(N=L.j0(N).replace(f,l))):D.chrome?N="":D.safari&&(N="&nbsp;"),T+=N=g?N:N.replace(/\n/g," "),u&&(I&&(T+="</u>"),x)&&(T+="</s>"),y.push(T+="</td>")}w.push(y)}return w},V.e5=function(t,e,n,i,r,o,a){var s,t,n,u,s="",t=c(t,n,r);return 0<t&&(t-=1),0<(n=g(e,i,o))&&(n-=1),s=0<=t&&0<=n?"overflow: hidden;height: "+t+"px;line-height: "+(u=Math.min(a,t))+"px; width: "+n+"px;max-width: "+n+"px;min-width: "+n+"px;":s},V.prototype.PS=function(){var t,e,n,t=this;return t.zS||((e=document.createElement("div")).style.display="none",(n=t.jS.getHost())&&n.appendChild(e),t.zS=e),t.zS},V.prototype.i5=function(){var t,e,n,t=this;return t.VS||((e=document.createElement("div")).style.display="none",(n=t.jS.getHost())&&n.appendChild(e),t.VS=e),t.VS},V.prototype.r5=function(t,e,n,i){var r,t,o,a,s,u,c,f,l,h,d,h,v,r=this.PS();if(r.innerHTML=t,t=r.getElementsByTagName("table"),o=e.o5(),0<t.length)for(a=this.a5(t[0],!0),u=n+(s=0);s<a.length;s++,u++){if(c=a[s],o)for(;0===e.getRowHeight(u);)u++;for(l=i+(f=0);f<c.length;f++,l++)if(h=c[f]){if(o)for(;0===e.getColumnWidth(l);)l++;e.u5(u,l,h.style),d=h.rowSpan,h=h.colSpan,(1<d||1<h)&&((v=e.getSpan(u,l))?(v.row=u,v.col=l,v.rowCount=d,v.colCount=h):e.addSpan(u,l,d,h))}}r.innerHTML=""},V.prototype.s5=function(t,e,n,i){var r,r,e,r;e.shapes?((r=e.shapes.addPictureShape("",t,0,0)).startRow(n),r.startColumn(i)):e.pictures&&(e=s(r=e.pictures),(r=r.add(e,t,0,0)).startRow(n),r.startColumn(i))},V.prototype.a5=function(t,e){for(var n,i,r,o,a,s,u,c,f,l,h,d,v,d,g,m,p,n=this.i5(),i=[],r=/ +/g,o=0;o<t.rows.length;o++)for(a=t.rows[o],i[o]||(i[o]=[]),s=i[o],c=u=0;u<a.cells.length;u++){for(f=a.cells[u];s[c];)c++;for(l=s[c]={},h=void 0,e&&(h=V.getStyleFromDOM(f),l.style=h),d=S(d=f.innerHTML,"\x3c!--[if","[endif]--\x3e"),n.innerHTML=d.replace(r," "),v=n.innerText,0<=d.indexOf("<table")&&(v=v.trim()),l.text=v,l.rowSpan=f.rowSpan,(d=f.getAttribute("style"))&&0<=d.search(/mso-ignore:\s*colspan/)?l.colSpan=1:l.colSpan=f.colSpan,g=0;g<f.rowSpan;g++)for(m=0;m<f.colSpan;m++)0===g&&0===m||(i[o+g]||(i[o+g]=[]),(p=i[o+g])[c+m]={style:h,text:"",rowSpan:1,colSpan:1});c+=f.colSpan}return n.innerHTML="",i},V.prototype.GS=function(t,e){var n,i,r,o,a,s,u,c,f,l,h,n=[];if(t)if(0<(i=t.getElementsByTagName("table")).length)for(r=this.a5(i[0],!1),o=new RegExp(String.fromCharCode(160),"g"),a=String.fromCharCode(32),s=0,u=r.length;s<u;s++){for(f=0,l=(c=r[s]).length;f<l;f++)0<=(h=0<=(h=c[f]?c[f].text:"").indexOf("\n")?e?(0<=h.indexOf("\r\n")&&(h=v(h.split("\r\n"),!0)),v(h.split("\n"),!0)):'"'+h+'"':h).indexOf("\t")&&(h=v(h.split("\t"),!0)),n.push(h.replace(o,a)),f<l-1&&n.push("\t");s<u-1&&n.push("\r\n")}else n.push(S(t.innerText||t.innerHTML).trim());return n.join("")},V.prototype.c5=function(t){var e,n,e=this,n=e.QS();e.DS&&e.DS.ki(A.Events.ClipboardChanging,{sheet:e.DS,sheetName:e.DS.name(),copyData:{text:n.text,html:n.html},ranges:e._S,cancel:!1,action:x.ClipboardActionType.reset},!0),e.DS=O,e._S=O,e.ES=!1,e.TT=!1,e.jS.ki("ClipboardStatusChanged",{isReset:!0,isSystemPasted:!!t})},V.isPartSpan=function(t,e,n,i){var r,o,a,s,u,c;if(!e.containsRange(t))return!0;for(r=0,o=n;r<o.length;r++)if(a=o[r],t.row<=a&&a<t.row+t.rowCount)return!0;for(s=0,u=i;s<u.length;s++)if(c=u[s],t.col<=c&&c<t.col+t.colCount)return!0;return!1},V.formatClipboardData=function(t){var e,n,i,r,o,a,e=[];if(t){for(i=!(n='"'),r=0;r<t.length;r++)o=0<r?t[r-1]:"",'"'===(a=t[r])?(i=!i,e.push('"')):e.push(i||"\n"!==a||"\r"===o?a:"\r\n");return e.join("")}return""},V.convertHAlign=function(t){var e;return{0:"left",1:"center",2:"right"}[t]},V.convertVAlign=function(t){var e;return{0:"top",1:"middle",2:"bottom"}[t]},V.convertLineBorder=function(t){var e,n,e,n;return{9:.5,1:.5,3:.5,4:.5,7:.5,11:.5,2:1,10:1,12:1,8:1,13:1,5:1.5,6:1.5}[t.style]+"pt "+{0:"none",1:"solid",2:"solid",3:"dashed",4:"dotted",5:"solid",6:"double",7:"dotted",8:"dashed",9:"dashed",10:"dashed",11:"dashed",12:"dashed",13:"dashed"}[t.style]+" "+t.color},V.convertToHAlign=function(t){var e;return{left:0,center:1,right:2}[t]},V.convertToVAlign=function(t){var e;return{top:0,middle:1,bottom:2}[t]},V.convertToLineBorder=function(t,e,n){var i={none:0,solid:1,dashed:3,dotted:4,double:6};return(D.msie||D.edge)&&"2px"===n?i.solid=5:(n=Math.round(10*parseFloat(n)*3/4)/10)<=.8?i.solid=1:n<=1?(i.solid=2,i.dashed=8):n<=1.5&&(i.solid=5),new l.LineBorder(t,i[e])},V.convertToTextDecoration=function(t){var e;return{underline:1,"line-through":2,"underline line-through":3,none:0}[t]},V.isTransparent=function(t){return 0===i.Common.ft._(t).a},V.isBlack=function(t){var t=i.Common.ft._(t);return 0!==t.a&&0===t.r&&0===t.g&&0===t.b},V.getStyleFromDOM=function(t){var e,n,i,r,o,o,o,a,e,s,o,u,c,e,i,e,o,i,e,o,e=t.getElementsByTagName("font")[0],n=getComputedStyle(t),i=t.style,r=new l.Style,o=n.backgroundColor;return o&&!V.isTransparent(o)&&(r.backColor=o),o=n.color,(o=e?e.color:o)&&!V.isBlack(o)&&(r.foreColor=o),e?r.font=f.W.f5(getComputedStyle(e)):(o=f.W.f5(n))&&(o=o.replace(/\/.+?\s/gi," "),r.font=o),"normal"===(a=n.whiteSpace)&&(r.wordWrap=!0),e=n.verticalAlign,o=V.convertToHAlign,u=V.convertToLineBorder,c=V.convertToTextDecoration,e&&(r.vAlign=(s=V.convertToVAlign)(e)),e=i.textAlign,i=n.textAlign,D.msie||D.edge?r.hAlign=o(""!==e?e:"general"):i&&(r.hAlign=o(i)),"none"!==(e=n.borderLeftStyle)&&(r.borderLeft=u(n.borderLeftColor,e,n.borderLeftWidth)),"none"!==(o=n.borderRightStyle)&&(r.borderRight=u(n.borderRightColor,o,n.borderRightWidth)),"none"!==(i=n.borderTopStyle)&&(r.borderTop=u(n.borderTopColor,i,n.borderTopWidth)),"none"!==(e=n.borderBottomStyle)&&(r.borderBottom=u(n.borderBottomColor,e,n.borderBottomWidth)),o=c(n.textDecorationLine||n.textDecoration),0<t.getElementsByTagName("u").length&&(o|=c("underline")),0<t.getElementsByTagName("s").length&&(o|=c("line-through")),0!==o&&(r.textDecoration=o),r},e.yM=V},"./dist/core/worksheet/paste-special-dialog.js":function(t,e,i){"use strict";var n,r,o,a,s,u,s,c,f,l,h,d,v,g,m,p,S,w,b;function C(e,i,r){for(var o,t,n,o="",t=function(n){var t=e.slice(n,n+i);o+='<div class="gc-sjs-vertical-container gc-sjs-column-container">',t.forEach(function(t,e){o+=h(t,r,r+(e+n))}),o+="</div>"},n=0;n<e.length;n+=i)t(n);return o}function y(t,e,n){var t,e,t=b.call(this,t,e,n)||this;return t.data={pasteOptions:a.ClipboardPasteOptions.all,operationOptions:a.PasteOperationOptions.none,skipBlanks:!1,transpose:!1,pasteLink:!1},t.X2e=!1,e=i("SheetsCalc"),t.X2e=!!e,t}n=this&&this.__extends||(w=function(t,e){return(w=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(t,e){t.__proto__=e}:function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])}))(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}w(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),r=this&&this.__assign||function(){return(r=Object.assign||function(t){for(var e,n,i,r,n=1,i=arguments.length;n<i;n++)for(r in e=arguments[n])Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t}).apply(this,arguments)},Object.defineProperty(e,"__esModule",{value:!0}),e.PasteSpecialDialog=void 0,o=i("./dist/core/util/basedialog.js"),a=i("./dist/core/core.enum.js"),s=i("Common"),u=i("./dist/core/core.ns.js"),s=new s.Common.ResourceManager(u.SR,"Sheets"),c=s.getResource.bind(s),f=function(){return[{value:a.ClipboardPasteOptions.all,text:c().pasteSpecialOptionDialog.pasteOptions.all},{value:a.ClipboardPasteOptions.formulas,text:c().pasteSpecialOptionDialog.pasteOptions.formulas},{value:a.ClipboardPasteOptions.values,text:c().pasteSpecialOptionDialog.pasteOptions.values},{value:a.ClipboardPasteOptions.formatting,text:c().pasteSpecialOptionDialog.pasteOptions.formats},{value:a.ClipboardPasteOptions.comments,text:c().pasteSpecialOptionDialog.pasteOptions.comments},{value:a.ClipboardPasteOptions.validation,text:c().pasteSpecialOptionDialog.pasteOptions.validation},{value:a.ClipboardPasteOptions.usingSourceTheme,text:c().pasteSpecialOptionDialog.pasteOptions.usingSourceTheme},{value:a.ClipboardPasteOptions.noBorder,text:c().pasteSpecialOptionDialog.pasteOptions.noBorders},{value:a.ClipboardPasteOptions.columnWidths,text:c().pasteSpecialOptionDialog.pasteOptions.columnWidth},{value:a.ClipboardPasteOptions.formulasAndNumberFormatting,text:c().pasteSpecialOptionDialog.pasteOptions.formulasAndNumberFormats},{value:a.ClipboardPasteOptions.valuesAndNumberFormatting,text:c().pasteSpecialOptionDialog.pasteOptions.valueAndNumberFormats}]},l=function(){return[{value:a.PasteOperationOptions.none,text:c().pasteSpecialOptionDialog.operationOptions.none},{value:a.PasteOperationOptions.add,text:c().pasteSpecialOptionDialog.operationOptions.add},{value:a.PasteOperationOptions.subtract,text:c().pasteSpecialOptionDialog.operationOptions.subtract},{value:a.PasteOperationOptions.multiply,text:c().pasteSpecialOptionDialog.operationOptions.multiply},{value:a.PasteOperationOptions.divide,text:c().pasteSpecialOptionDialog.operationOptions.divide}]},h=function(t,e,n){return'<div><input type="radio" value="'.concat(t.value,'" name="').concat(e,'" id="').concat(n,'"/><label for="').concat(n,'">').concat(t.text,"</label></div>")},d="pasteOptions",v="operationOptions",g="skipBlanks",m="transpose",p="pasteLink",b=o.Ase,n(y,b),y.prototype.$c=function(t){this.Dn(),b.prototype.$c.call(this,t),this.q2e(),this.$2e()},y.prototype.rQ=function(t){this.submitCallback=t,this.$c()},y.prototype.npe=function(t,e){return this.Wc[0].querySelector('input[name="'.concat(t,'"][value="').concat(e,'"]'))},y.prototype.Dn=function(){this.Wc.html(this.ipe),this.npe(d,this.data.pasteOptions).checked=!0,this.X2e&&(this.npe(v,this.data.operationOptions).checked=!0)},y.prototype.$2e=function(){var t=this.Wc.width(),e=this.Wc.height(),n=this.Fc.width(),i=this.Fc.height();this.Wc.css(["position","left","top"],["absolute",(n-t)/2+"px",(i-e)/2+"px"])},Object.defineProperty(y.prototype,"ipe",{get:function(){return'\n<div class="gc-sjs-paste-special-dialog-container">\n <div class="gc-sjs-paste-special-dialog-title gc-sjs-horzation-container">\n <span class="gc-sjs-paste-special-dialog-title-text">'.concat(c().pasteSpecialOptionDialog.title,'</span>\n <span class="cancel-icon" data-cmd="close">\xd7</span>\n </div>\n <div class="gc-sjs-paste-special-dialog-content">\n <div class="gc-sjs-horzation-container">\n <span>').concat(c().pasteSpecialOptionDialog.paste,'</span>\n <div class="gc-sjs-separator"></div>\n </div>\n <div class="gc-sjs-paste-special-dialog-paste-options gc-sjs-horzation-container">\n ').concat(C(f(),6,d),"\n </div>\n ").concat(this.X2e?'\n <div class="gc-sjs-horzation-container">\n <span>'.concat(c().pasteSpecialOptionDialog.operation,'</span>\n <div class="gc-sjs-separator"></div>\n </div>\n <div class="gc-sjs-paste-special-dialog-operation-options gc-sjs-horzation-container">\n ').concat(C(l(),3,v),"\n </div>\n "):"",'\n <div class="gc-sjs-separator"></div>\n <div class="gc-sjs-horzation-container">\n <div class="gc-sjs-column-container">\n <input type="checkbox" id="').concat(g,'"/><label for="').concat(g,'">').concat(c().pasteSpecialOptionDialog.skipBlanks,'</label>\n </div>\n <div class="gc-sjs-column-container">\n <input type="checkbox" id="').concat(m,'"/><label for="').concat(m,'">').concat(c().pasteSpecialOptionDialog.transpose,'</label>\n </div>\n </div>\n </div>\n <div class="gc-sjs-paste-special-dialog-footer gc-sjs-horzation-container">\n ').concat(this.X2e?'<span class="gc-sjs-dialog-button" data-cmd="'.concat(p,'">').concat(c().pasteSpecialOptionDialog.pasteLink,"</span>"):"<span></span>",'\n <div>\n <span class="gc-sjs-dialog-button" data-cmd="submit">').concat(c().ok,'</span>\n <span class="gc-sjs-dialog-button" data-cmd="close">').concat(c().cancel,"</span>\n </div>\n </div>\n</div>\n ")},enumerable:!1,configurable:!0}),y.prototype.submit=function(t){var t=t||this.data;this.submitCallback&&this.submitCallback(t),this.close()},y.prototype.rpe=function(t){var e,t,e,t=t.target.dataset.cmd;if(t)switch(t){case"close":this.close();break;case"submit":this.submit();break;case p:this.submit(r(r({},this.data),{pasteLink:!0}))}},y.prototype.ope=function(t){var t=t.target;t.name?(t.name===d&&t.checked&&(this.data.pasteOptions=+t.value),t.name===v&&t.checked&&(this.data.operationOptions=+t.value)):(t.id===g&&(this.data.skipBlanks=t.checked),t.id===m&&(this.data.transpose=t.checked)),this.ape()},y.prototype.q2e=function(){var e,t,n,i,r,e=this,t=function(t){e.rpe(t)},n=function(t){e.ope(t)},i=function(t){"Escape"!==t.key&&27!==t.keyCode||e.close(),"Enter"!==t.key&&13!==t.keyCode||e.submit()};this.Wc.bind("click",t),this.Wc.bind("change",n),document.addEventListener("keyup",i),r=this.bindMoveEvent(this.Wc[0].querySelector(".gc-sjs-paste-special-dialog-title")),this.wpt=function(){e.Wc.unbind("click",t),e.Wc.unbind("change",n),document.removeEventListener("keyup",i),r()}},y.prototype.close=function(){this.wpt&&this.wpt(),b.prototype.close.call(this)},y.prototype.ape=function(){var t,e,t,n,e;this.X2e&&(e=[(t=a.ClipboardPasteOptions).formatting,t.comments,t.validation],t=[t.all,t.noBorder],n=this.Wc[0].querySelectorAll("[name=".concat(v,"]")),e.includes(this.data.pasteOptions)?n.forEach(function(t){return t.disabled=!0}):n.forEach(function(t){return t.disabled=!1}),e=this.Wc[0].querySelector('[data-cmd="'.concat(p,'"]')),!t.includes(this.data.pasteOptions)||this.data.operationOptions!==a.PasteOperationOptions.none||this.data.skipBlanks||this.data.transpose?e.classList.add("disable"):e.classList.remove("disable"))},e.PasteSpecialDialog=y},"./dist/core/worksheet/style.js":function(F,t,e){"use strict";var a,o,s,u,S,c,r,i,e,f,w,l,b,C,h,d,e,v,g,m,p,y,M,k,n,T,_,A,L,D,j,O,V,x,G,B,I,I,I;function Y(t){var e,n,e={};return t&&t.option&&t.option.dataSource?(n=t.option.dataSource,t.option.dataSource=C,(e=w(t)).option.dataSource=n,t.option.dataSource=n):e=w(t),e}function P(t,e,n){this.color=t||"black",this.style=e||0,this.level=n}function K(t){return!(!t||"object"!=typeof t||t.patternColor||t.stops)}function z(t){return(!t||!t.stops)&&t&&t.type?{type:H(r.PatternType,t.type,C),patternColor:t.patternColor,backgroundColor:t.backgroundColor}:t}function N(t){return t?new x(t.color,H(O,t.style,C)):C}function W(t){var e,n,n,n;if(t){if(!(n=(e={checkbox:"5",combobox:"7",hyperlink:"8",radioButtonList:"11",checkboxList:"12"})[t.type]))return rt(t,!0,void 0);if(n=c.ti[n])return(n=new n).Je(t),n}return t}function J(t){return t?{alignment:H(r.LabelAlignment,t.alignment,C),visibility:H(r.LabelVisibility,t.visibility,C),font:t.font,foreColor:t.foreColor,margin:t.margin}:C}function Z(t){return t?{cornerFold:t.cornerFold,icons:t.icons&&0<t.icons.length?t.icons.map(function(t){return{src:t.src,width:t.width,height:t.height,position:H(r.IconPosition,t.position,C)}}):C}:C}function Q(t){return t?t.map(function(t){return{position:H(r.ButtonPosition,t.position,C),useButtonStyle:t.useButtonStyle,enabled:t.enabled,width:t.width,caption:t.caption,imageSrc:t.imageSrc,imageSize:t.imageSize,captionAlign:H(r.CaptionAlignment,t.captionAlign,C),command:t.command,imageType:H(r.ButtonImageType,t.imageType,C),visibility:H(r.ButtonVisibility,t.visibility,C),hoverBackColor:t.hoverBackColor,buttonBackColor:t.buttonBackColor}}):C}function X(t){var e,n,n,n,i,i,n,i;if(t)return e=s.GC$.extend(!0,{},t),n=t.calendarPage,l(n)||(e.calendarPage=H(r.CalendarPage,n)),n=t.startDay,l(n)||(e.startDay=r.CalendarStartDay[n]),(n=t.layout)&&(i=n.direction,l(i)||(e.layout.direction=r.LayoutDirection[i]),i=n.displayAs,l(i)||(e.layout.displayAs=r.LayoutDisplayAs[i])),n=t.valueType,l(n)||(e.valueType=r.DropdownListValue[n]),i=t.direction,l(i)||(e.direction=r.LayoutDirection[i]),e}function q(t){return t?t.map(function(t){return{type:H(r.DropDownType,t.type,C),option:X(t.option),submitCommand:t.submitCommand}}):C}function $(t){var t,t="lineThroughUnderline"===t?r.TextDecorationType.lineThrough|r.TextDecorationType.underline:"lineThroughDoubleUnderline"===t?r.TextDecorationType.lineThrough|r.TextDecorationType.doubleUnderline:H(r.TextDecorationType,t,r.TextDecorationType.none);return t}function tt(t){var e,n,i,r,e=w(t.decoration);if(!l(e)&&!l(e.icons))for(e.icons=[],n=t.decoration.icons,i=0;i<n.length;i++)r=n[i],e.icons.push(w(r));return e}function et(t,e){var n,i,r,o;for(l(t.decoration)&&(t.decoration={}),l(t.decoration.icons)&&(t.decoration.icons=[]),n=t.decoration.icons,i=e.decoration.icons,r=0;r<i.length;r++)o=i[r],n.push(w(o))}function R(n){var i;return n&&n instanceof Object?(i={},Object.keys(n).forEach(function(t){var e=n[t];l(e)||(e instanceof Array?i[t]=JSON.parse(JSON.stringify(e)):e instanceof Object?i[t]=R(e):i[t]=e)}),i):n}function E(){for(var t,e,n,i,r,t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];if((n=this)._id=E.l5,E.l5++,0!==t.length)if(i=t[0],1===t.length&&K(i))n.Je(i);else for(r=0;r<G.length&&r<t.length;r++)n[G[r]]=t[r]}function nt(t,e){l(t.applyFill)||(e.applyFill=t.applyFill),l(t.applyFont)||(e.applyFont=t.applyFont),l(t.applyAlignment)||(e.applyAlignment=t.applyAlignment),l(t.applyBorder)||(e.applyBorder=t.applyBorder),l(t.applyProtection)||(e.applyProtection=t.applyProtection),l(t.applyNumberFormat)||(e.applyNumberFormat=t.applyNumberFormat)}function H(t,e,n){var i;if(n=n||C,!l(e)){if(!isNaN(e))return parseInt(e,10);i=t[e]}return l(i)?n:i}function it(t,e,n,i){var e=rt(e,n,i);t.cellType=e}function rt(t,e,n){var i,r,e,o,e,i=t;if(e&&t){if(r=t.Ke&&t.Ke())return i;t.toJSON&&(t=t.toJSON()),e=c.ti,o=t.typeName,(e=e[t.type]||e[o]||u.getTypeFromString(o))?(i=new e).fromJSON(t,n):i=C}return i}function ot(t,e,n,i){var r,o;if(e===h&&(t.cellButtons=e),e){if(r=e,n)for(r=[],o=0;o<e.length;o++)r.push(w(e[o]));t.cellButtons=r}}function at(t,e,n,i){var r;e===h&&(t.decoration=e),e&&(r=e,n&&(r=w(e),e.icons)&&0<e.icons.length&&(r.icons=e.icons.map(function(t){return w(t)})),t.decoration=r)}function st(t,e,n,i){var r,o;if(e===h&&(t.dropDowns=e),e){if(r=a([],e,!0),n)for(r=[],o=0;o<e.length;o++)r.push(w(e[o]));t.dropDowns=r}}function ut(t,e,n){var i,n,n,r,r,i=e;n&&e&&"object"==typeof e&&(e.toJSON&&(e=e.toJSON()),n=(n=o.Formatter)&&n.GeneralFormatter)&&((r=e.typeName)?(r=u.getTypeFromString(r))&&(i=new r).fromJSON(e):i=new n(e.formatCached,e.customerCultureName)),t.formatter=i}function ct(t,e,n){var i,n,n,i=e;n&&e&&(e.toJSON&&(e=e.toJSON()),n=(n=o.Formatter)&&n.GeneralFormatter)&&((i=new n(e.formatCached,e.customerCultureName)).isAuto=!0),t._autoFormatter=i}function U(t,e,n){(e=e&&t.getColor(e))&&n(e)}function ft(t,e,n){return t===g?2===n||1===n?1===e:3===e:t===m?2===n||1===n?1===e:0===e:t===p?1===e:t===d&&e===C}function lt(t,e,n,i,r,o){for(var a,s,u,a=t.parentName;a&&a!==s&&(u=n.u8(a));)e.h5(u,i,r,o),a=u.parentName,s=u.name}a=this&&this.__spreadArray||function(t,e,n){if(n||2===arguments.length)for(var i=0,r=e.length,o;i<r;i++)!o&&i in e||((o=o||Array.prototype.slice.call(e,0,i))[i]=e[i]);return t.concat(o||Array.prototype.slice.call(e))},Object.defineProperty(t,"__esModule",{value:!0}),t.composeParentStyle=t.Style=t.LineBorder=t.LineBorderComposeLevel=t.LineStyle=void 0,o=e("Common"),s=e("./dist/core/util/domUtil.js"),u=e("./dist/core/util/common.js"),S=e("./dist/core/worksheet/stylehelper.js"),c=e("./dist/core/celltype/celltype.ns.js"),r=e("./dist/core/core.enum.js"),i=s.GC$.each,e=u.mt,f=e.T1,w=o.Common.lt.tv,l=o.Common.lt.ht,b=S.W.upe,d="autoFormatter",e="formatter",v="cellType",g="hAlign",m="vAlign",p="imeMode",y="labelOptions",M="cellButtons",k="dropDowns",n="applyFont",T="applyFill",_="applyAlignment",A="applyBorder",L="applyNumberFormat",D="applyProtection",j={borderLeft:!(h=null),borderRight:!(C=void 0),borderTop:!0,borderBottom:!0,borderHorizontal:!0,borderVertical:!0,diagonalDown:!0,diagonalUp:!0},(I=O=t.LineStyle||(t.LineStyle={}))[I.empty=0]="empty",I[I.thin=1]="thin",I[I.medium=2]="medium",I[I.dashed=3]="dashed",I[I.dotted=4]="dotted",I[I.thick=5]="thick",I[I.double=6]="double",I[I.hair=7]="hair",I[I.mediumDashed=8]="mediumDashed",I[I.dashDot=9]="dashDot",I[I.mediumDashDot=10]="mediumDashDot",I[I.dashDotDot=11]="dashDotDot",I[I.mediumDashDotDot=12]="mediumDashDotDot",I[I.slantedDashDot=13]="slantedDashDot",(I=V=t.LineBorderComposeLevel||(t.LineBorderComposeLevel={}))[I.conditionalFormat=1]="conditionalFormat",I[I.cell=10]="cell",I[I.table=20]="table",I[I.row=30]="row",I[I.column=40]="column",I[I.sheet=50]="sheet",P.prototype.Gf=function(){return new P(this.color,this.style,this.level)},P.prototype.toJSON=function(){var t,e,n,e,t={},e=this,n=e.color,e=e.style;return"black"!==n&&(t.color=n),t.style=e,t},P.prototype.fromJSON=function(t,e){var n,i,t;t&&(n=this,i=t.color,t=t.style,f(i)&&(n.color=i),f(t))&&(n.style=t)},P.YC=function(t){var e,n,e,n;return{9:1,1:1,3:1,4:1,7:1,11:1,2:2,10:2,12:2,8:2,13:2,5:3,6:3}[t&&t.style]||0},x=P,t.LineBorder=x,G=["backColor","foreColor",g,m,"font","themeFont",e,"borderLeft","borderTop","borderRight","borderBottom","locked","textIndent","wordWrap","showEllipsis","_showTip","shrinkToFit","backgroundImage",v,"backgroundImageLayout","tabStop","textDecoration",p,"name","parentName","watermark","cellPadding",y,"quotePrefix","diagonalDown","diagonalUp","isVerticalText",M,k,"textOrientation","decoration","mask","fontStyle","fontWeight","fontSize","fontFamily","_fontVariant","_fontStretch","_lineHeight"],B=[n,T,_,A,L,D],E.xp=function(t,e){var n=t.parentName;n&&!e.getNamedStyle(n)&&delete t.parentName},E.prototype.compose=function(t,e,n,i,r){this.h5(t,e,n,i,r)},E.prototype.h5=function(t,e,n,i,r){var o,a,s,u,c,f,l,h,d,v,g,m,p,e,o=this,v=t.labelOptions,g=t.cellButtons;if(t.cellButtons&&0<t.cellButtons.length)for(g=[],m=0;m<t.cellButtons.length;m++)g.push(w(t.cellButtons[m]));if(p=t.dropDowns,t.dropDowns&&0<t.dropDowns.length)for(p=[],m=0;m<t.dropDowns.length;m++)p.push(Y(t.dropDowns[m]));e?(o._autoFormatter=t._autoFormatter,o.backgroundImage=t.backgroundImage,o.backgroundImageLayout=t.backgroundImageLayout,o.backColor=R(t.backColor),o.foreColor=t.foreColor,o.hAlign=t.hAlign,o.vAlign=t.vAlign,o.spe=t.spe,o.cpe=t.cpe,o.lre=t.lre,o.Uge=t.Uge,o.fpe=t.fpe,o.lpe=t.lpe,o.b2e=t.b2e,o.y2e=t.y2e,o.w2e=t.w2e,o._font=b(o.spe,o.cpe,o.lre,o.lpe,o.b2e,o.y2e,o.w2e),o.themeFont=t.themeFont,o.formatter=t.formatter,o.mask=R(t.mask),o.showEllipsis=t.showEllipsis,o.hv=t.hv,a=t.borderLeft,o.borderLeft=a&&a.Gf&&a.Gf()||a,o.borderLeft&&n&&(o.borderLeft.level=n),s=t.borderTop,o.borderTop=s&&s.Gf&&s.Gf()||s,o.borderTop&&n&&(o.borderTop.level=n),u=t.borderRight,o.borderRight=u&&u.Gf&&u.Gf()||u,o.borderRight&&n&&(o.borderRight.level=n),c=t.borderBottom,o.borderBottom=c&&c.Gf&&c.Gf()||c,o.borderBottom&&n&&(o.borderBottom.level=n),h=t.borderHorizontal,o.borderHorizontal=h&&h.Gf&&h.Gf()||h,o.borderHorizontal&&n&&(o.borderHorizontal.level=n),d=t.borderVertical,o.borderVertical=d&&d.Gf&&d.Gf()||d,o.borderVertical&&n&&(o.borderVertical.level=n),f=t.diagonalDown,o.diagonalDown=f&&f.Gf&&f.Gf()||f,o.diagonalDown&&n&&(o.diagonalDown.level=n),l=t.diagonalUp,o.diagonalUp=l&&l.Gf&&l.Gf()||l,o.diagonalUp&&n&&(o.diagonalUp.level=n),o.locked=t.locked,o.textIndent=t.textIndent,o.wordWrap=t.wordWrap,o.shrinkToFit=t.shrinkToFit,o.cellType=t.cellType,o.name=t.name,o.parentName=t.parentName,o.tabStop=t.tabStop,o.textDecoration=t.textDecoration,o.imeMode=t.imeMode,o.watermark=t.watermark,o.cellPadding=t.cellPadding,o.isVerticalText=t.isVerticalText,o.textOrientation=t.textOrientation,v&&(o.labelOptions={alignment:v.alignment,font:v.font,foreColor:v.foreColor,visibility:v.visibility,margin:v.margin}),o.quotePrefix=t.quotePrefix,o.cellButtons=g,o.dropDowns=p,o.decoration=tt(t)):(o.backgroundImage===C&&(o.backgroundImage=t.backgroundImage),o.backgroundImageLayout===C&&(o.backgroundImageLayout=t.backgroundImageLayout),o.backColor===C&&(o.backColor=R(t.backColor)),o.foreColor===C&&(o.foreColor=t.foreColor),o.hAlign===C&&(o.hAlign=t.hAlign),o.vAlign===C&&(o.vAlign=t.vAlign),o.themeFont===C&&o.font===C&&(o.themeFont=t.themeFont),o.spe===C&&(o.spe=t.spe),o.cpe===C&&(o.cpe=t.cpe),o.lre===C&&(o.lre=t.lre,o.Uge=t.Uge,o.fpe=t.fpe),o.lpe===C&&(o.lpe=t.lpe),o.b2e===C&&(o.b2e=t.b2e),o.y2e===C&&(o.y2e=t.y2e),o.w2e===C&&(o.w2e=t.w2e),o._font=b(o.spe,o.cpe,o.lre,o.lpe,o.b2e,o.y2e,o.w2e),o.formatter===C&&(o.formatter=t.formatter),o.showEllipsis===C&&(o.showEllipsis=t.showEllipsis),o.hv===C&&(o.hv=t.hv),o._autoFormatter===C&&(o._autoFormatter=t._autoFormatter),o.mask===C&&(o.mask=R(t.mask)),o.borderLeft===C&&(a=t.borderLeft,o.borderLeft=a&&a.Gf&&a.Gf()||a,o.borderLeft)&&n&&(o.borderLeft.level=n),o.borderTop===C&&(s=t.borderTop,o.borderTop=s&&s.Gf&&s.Gf()||s,o.borderTop)&&n&&(o.borderTop.level=n),o.borderRight===C&&(u=t.borderRight,o.borderRight=u&&u.Gf&&u.Gf()||u,o.borderRight)&&n&&(o.borderRight.level=n),o.borderBottom===C&&(c=t.borderBottom,o.borderBottom=c&&c.Gf&&c.Gf()||c,o.borderBottom)&&n&&(o.borderBottom.level=n),o.borderHorizontal===C&&(h=t.borderHorizontal,o.borderHorizontal=h&&h.Gf&&h.Gf()||h,o.borderHorizontal)&&n&&(o.borderHorizontal.level=n),o.borderVertical===C&&(d=t.borderVertical,o.borderVertical=d&&d.Gf&&d.Gf()||d,o.borderVertical)&&n&&(o.borderVertical.level=n),o.diagonalDown===C&&(f=t.diagonalDown,o.diagonalDown=f&&f.Gf&&f.Gf()||f,o.diagonalDown)&&n&&(o.diagonalDown.level=n),o.diagonalUp===C&&(l=t.diagonalUp,o.diagonalUp=l&&l.Gf&&l.Gf()||l,o.diagonalUp)&&n&&(o.diagonalUp.level=n),o.locked===C&&(o.locked=t.locked),o.textIndent===C&&(o.textIndent=t.textIndent),o.wordWrap===C&&(o.wordWrap=t.wordWrap),o.shrinkToFit===C&&(o.shrinkToFit=t.shrinkToFit),o.cellType===C&&(o.cellType=t.cellType),o.tabStop===C&&(o.tabStop=t.tabStop),o.textDecoration===C&&(o.textDecoration=t.textDecoration),o.imeMode===C&&(o.imeMode=t.imeMode),o.name===C&&(o.name=t.name),o.parentName===C&&(o.parentName=t.parentName),o.watermark===C&&(o.watermark=t.watermark),o.cellPadding===C&&(o.cellPadding=t.cellPadding),!o.labelOptions&&v&&(o.labelOptions={}),(e=o.labelOptions)&&v&&(e.alignment===C&&(e.alignment=v.alignment),e.font===C&&(e.font=v.font),e.foreColor===C&&(e.foreColor=v.foreColor),e.visibility===C&&(e.visibility=v.visibility),e.margin===C)&&(e.margin=v.margin),i||o.quotePrefix!==C||(o.quotePrefix=t.quotePrefix),o.isVerticalText===C&&(o.isVerticalText=t.isVerticalText),o.textOrientation===C&&(o.textOrientation=t.textOrientation),o.cellButtons===C&&(o.cellButtons=g),o.dropDowns===C&&(o.dropDowns=p),o.decoration===C?o.decoration=tt(t):r&&S.W.Xue(t)&&et(o,t))},E.prototype.d5=function(t){var n=this;0===arguments.length?(i(G,function(t,e){n[e]=C}),i(B,function(t,e){f(n[e])&&(n[e]=C)})):n[t]=C},E.prototype.clone=function(t){var e,n,i,r,o,a,s,u,c,f,e=this,n=e.borderLeft,i=e.borderTop,r=e.borderRight,o=e.borderBottom,a=e.diagonalDown,s=e.diagonalUp,u=e.borderHorizontal,c=e.borderVertical,f=new E;return f.backColor=R(e.backColor),f.foreColor=e.foreColor,f.hAlign=e.hAlign,f.vAlign=e.vAlign,f.spe=e.spe,f.cpe=e.cpe,f.lre=e.lre,f.Uge=e.Uge,f.fpe=e.fpe,f.lpe=e.lpe,f.b2e=e.b2e,f.y2e=e.y2e,f.w2e=e.w2e,f._font=b(f.spe,f.cpe,f.lre,f.lpe,e.b2e,e.y2e,e.w2e),f.themeFont=e.themeFont,f.formatter=C,f.mask=R(e.mask),f.borderLeft=n&&!t&&n.Gf&&n.Gf()||n,f.borderTop=i&&!t&&i.Gf&&i.Gf()||i,f.borderRight=r&&!t&&r.Gf&&r.Gf()||r,f.borderBottom=o&&!t&&o.Gf&&o.Gf()||o,f.borderHorizontal=u&&!t&&u.Gf&&u.Gf()||u,f.borderVertical=c&&!t&&c.Gf&&c.Gf()||c,f.locked=e.locked,f.textIndent=e.textIndent,f.wordWrap=e.wordWrap,f.shrinkToFit=e.shrinkToFit,f.backgroundImage=e.backgroundImage,f.cellType=C,f.backgroundImageLayout=e.backgroundImageLayout,f.tabStop=e.tabStop,f.textDecoration=e.textDecoration,f.imeMode=e.imeMode,f.name=e.name,f.parentName=e.parentName,f.watermark=e.watermark,f.cellPadding=e.cellPadding,f.labelOptions=e.labelOptions,f.quotePrefix=e.quotePrefix,f.diagonalDown=a&&!t&&a.Gf()||a,f.diagonalUp=s&&!t&&s.Gf()||s,f.isVerticalText=e.isVerticalText,f.showEllipsis=e.showEllipsis,f.hv=e.hv,f.textOrientation=e.textOrientation,at(f,e.decoration,!t,!0),nt(e,f),ut(f,e.formatter,!t),ct(f,e._autoFormatter,!t),it(f,e.cellType,!t,!0),ot(f,e.cellButtons,!t,!0),st(f,e.dropDowns,!t,!0),f},E.prototype.v5=function(i){var e,n,t,r,o,a,s,u,c,e=this;if(i&&i.getColor){if(U(i,e.foreColor,function(t){e.foreColor=t}),"string"==typeof(n=e.backColor))U(i,n,function(t){e.backColor=t});else if(n&&(n.backgroundColor&&U(i,n.backgroundColor,function(t){n.backgroundColor=t}),n.patternColor&&U(i,n.patternColor,function(t){n.patternColor=t}),n.stops))for(t=function(e){U(i,n.stops[e].color,function(t){n.stops[e].color=t})},r=0;r<n.stops.length;r++)t(r);for(a=function(t,e){var n=o[t];n&&n.color&&U(i,n.color,function(t){n.color=t})},r=0,s=(o=[e.borderLeft,e.borderTop,e.borderRight,e.borderBottom,e.borderHorizontal,e.borderVertical,e.diagonalDown,e.diagonalUp]).length;r<s;r++)a(r,s)}if(u=e.themeFont,i&&i.getFont){if(c=void 0,!(c=u?i.getFont(u):e.lpe||i.bodyFont()))return e;e.lpe=c,e.lre||(e.lre=S.hpe),e._font=b(e.spe,e.cpe,e.lre,e.lpe,e.b2e,e.y2e,e.w2e)}return e},E.prototype.g5=function(t){var e,n,n,e=this,n=e._autoFormatter;n&&t!==h&&((n=n.getPreferredEditingFormatter(t)).isAuto=!0,e._autoFormatter=n)},E.prototype.toJSON=function(t,e){var n,i,r,o,a,n=this,i={},r=n._autoFormatter;for(!f(r)||e&&ft(d,r,t)||(r.toJSON&&(r=r.toJSON()),s.GC$.isEmptyObject(r))||(i[d]=r),o=0;o<G.length;o++)r=n[a=G[o]],a!==y||s.GC$.isEmptyObject(r)?a!==k&&a!==M||s.GC$.isEmptyObject(r)?!f(r)||e&&ft(a,r,t)||(i[a]=r&&r.toJSON?r.toJSON():r):i[a]=r:i[y]=r;for(o=0;o<B.length;o++)r=n[a=B[o]],f(r)&&(i[a]=r);return s.GC$.isEmptyObject(i)?C:i},E.prototype.fromJSON=function(t,e,n){var i,r,o,a,a;if(t)for(r in i=this,t)t.hasOwnProperty(r)&&(o=t[r],f(o))&&((a={p:r,v:o,r:!1}).noSchema=e,a.context=n,E.et(i,"fromJson",a),a.r||("formatter"===r?ut(i,o,!0):"autoFormatter"===r?ct(i,o,!0):r===v?it(i,o,!0,e):j[r]?o===h?i[r]=null:((a=new x).fromJSON(o,e),i[r]=a):i[r]=o))},E.prototype.Je=function(t){var e=this;e.backColor=z(t.backColor),e.foreColor=t.foreColor,e.hAlign=H(r.HorizontalAlign,t.hAlign,C),e.vAlign=H(r.VerticalAlign,t.vAlign,C),t.font?e.font=t.font:(e.spe=t.fontStyle,e.cpe=t.fontWeight,e.lre=t.fontSize,e.lpe=t.fontFamily,e.b2e=t.fontVariant,e.y2e=t.fontStretch,e.w2e=t.lineHeight,e._font=b(e.spe,e.cpe,e.lre,e.lpe,e.b2e,e.y2e,e.w2e)),e.themeFont=t.themeFont,e.formatter=t.formatter,e.borderLeft=N(t.borderLeft),e.borderTop=N(t.borderTop),e.borderRight=N(t.borderRight),e.borderBottom=N(t.borderBottom),e.borderHorizontal=N(t.borderHorizontal),e.borderVertical=N(t.borderVertical),e.diagonalDown=N(t.diagonalDown),e.diagonalUp=N(t.diagonalUp),e.locked=t.locked,e.textIndent=t.textIndent,e.wordWrap=t.wordWrap,e.shrinkToFit=t.shrinkToFit,e.backgroundImage=t.backgroundImage,e.cellType=W(t.cellType),e.backgroundImageLayout=H(r.ImageLayout,t.backgroundImageLayout,C),e.tabStop=t.tabStop,e.textDecoration=$(t.textDecoration),e.imeMode=H(r.ImeMode,t.imeMode,C),e.name=t.name,e.parentName=t.parentName,e.watermark=t.watermark,e.cellPadding=t.cellPadding,e.labelOptions=J(t.labelOptions),e.isVerticalText=t.isVerticalText,e.textOrientation=t.textOrientation,e.showEllipsis=t.showEllipsis,e.cellButtons=Q(t.cellButtons),e.dropDowns=q(t.dropDowns),e.decoration=Z(t.decoration),nt(t,e)},Object.defineProperty(E.prototype,"font",{get:function(){return this._font},set:function(t){S.W.oce(this,t)},enumerable:!1,configurable:!0}),Object.defineProperty(E.prototype,"fontSize",{get:function(){return this.lre},set:function(t){S.W.dpe(this,t)},enumerable:!1,configurable:!0}),Object.defineProperty(E.prototype,"fontStyle",{get:function(){return this.spe},set:function(t){var e=this,n;e.spe!==t&&(e.spe=t,e._font=b(e.spe,e.cpe,e.lre,e.lpe,e.b2e,e.y2e,e.w2e))},enumerable:!1,configurable:!0}),Object.defineProperty(E.prototype,"fontWeight",{get:function(){return this.cpe},set:function(t){var e=this,n;e.cpe!==t&&(e.cpe=t,e._font=b(e.spe,e.cpe,e.lre,e.lpe,e.b2e,e.y2e,e.w2e))},enumerable:!1,configurable:!0}),Object.defineProperty(E.prototype,"fontFamily",{get:function(){return this.lpe},set:function(t){var e=this,n;e.lpe!==t&&(e.lpe=t,e._font=b(e.spe,e.cpe,e.lre,e.lpe,e.b2e,e.y2e,e.w2e))},enumerable:!1,configurable:!0}),I=E,t.Style=I,t.composeParentStyle=lt,u.$e(I),I.l5=0},"./dist/core/worksheet/stylehelper.js":function(t,o,e){"use strict";var a,h,i,d,v,n,b,C,g,m,p,S,w,y,M,k,T,x,r;function s(t){return t=v(t=t||0,0),t=n(t,1)}function G(){}Object.defineProperty(o,"__esModule",{value:!0}),o.W=o.hpe=o.p5=void 0,a=e("./dist/core/util/domUtil.js"),h=e("./dist/core/util/common.js"),i=e("./dist/core/core.enum.js"),d=document,v=Math.max,n=Math.min,b=void 0,C=null,g="#FFFFFF",m="#000000",p=Math.abs,S=Math.PI,w=Math.cos,y=Math.sin,M=Math.atan,k=Math.tan,T=/^(small-caps|all-small-caps|all-petite-caps|petite-caps|unicase|titling-caps|historical-forms|common-ligatures|no-common-ligatures|discretionary-ligatures|no-discretionary-ligatures|historical-ligatures|no-historical-ligatures|contextual|no-contextual|lining-nums|oldstyle-nums|proportional-nums|tabular-nums|diagonal-fractions|stacked-fractions|jis78|jis83|jis90|jis04|simplified|traditional|full-width|proportional-width|stylistic\([\d\.]+\)|styleset\([\d\.]+\)|character-variant\([\d\.]+\)|swash\([\d\.]+\)|ornaments\([\d\.]+\)|annotation\([\d\.]+\)|ruby|sub|super|text|emoji|unicode|ordinal|slashed-zero)$/i,o.p5="11pt",o.hpe="14.6667px",x={1:[[1]],2:[[1,0,1,1],[1,1,1,0]],3:[[0,1],[1,0]],4:[[0,0,1,0],[1,0,0,0]],5:[[0,0,0,0],[0,0,1,0],[0,0,0,0],[1,0,0,0]],6:[[0,0,0,0,0,0,0,0],[1,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0],[0,0,0,0,1,0,0,0]],7:[[0],[1],[1],[0]],8:[[1,1,0,0]],9:[[0,1,1,0],[0,0,1,1],[1,0,0,1],[1,1,0,0]],10:[[0,1,1,0],[1,1,0,0],[1,0,0,1],[0,0,1,1]],11:[[0,0,1,1],[0,0,1,1],[1,1,0,0],[1,1,0,0]],12:[[0,1,1,0],[1,1,1,1],[1,0,0,1],[1,1,1,1]],13:[[0],[1],[0],[0]],14:[[1,0,0,0]],15:[[0,1,0,0],[0,0,1,0],[0,0,0,1],[1,0,0,0]],16:[[0,0,1,0],[0,1,0,0],[1,0,0,0],[0,0,0,1]],17:[[0,0,1,0],[1,1,1,1],[0,0,1,0],[0,0,1,0]],18:[[1,0,1,0],[0,0,0,1],[1,0,1,0],[0,1,0,0]]},G.vpe=function(t){var e,e,i,r,o,a,s,u,c,f,l,h,d,v,n,g,m,p,S,w,e;if(G.mpe[t])return G.mpe[t];if((e=G.y5()).style.font=t,e=e.style,d=h=l=f=c=u=s=a=o=r=i=b,"normal"===e.fontStyle||"normal"===e.fontWeight){for(v=0,g=(t=t.replace(/"/g,"'")).length,m=!(n=[]),p="",S=0;S<g;S++)"'"===(w=t[S])?(p+=w,!1===(m=!m)&&(n.push(p),p="")):!m&&" "===w?(n.push(p),p=""):p+=w;0!==p.length&&n.push(p),n.forEach(function(t,e){var n;/^(italic|oblique)$/i.test(t)?(i=t,f=e):/^[\d\.]+deg$/i.test(t)&&"oblique"===i?(i+=" "+t,f=e):T.test(t)?u===b?u=t:u+=" "+t:/(condensed|expanded)$/i.test(t)||/^[\d\.]+%$/i.test(t)?c=t:/^(bold|bolder|lighter|[1-9]00)$/i.test(t)?(r=t,l=e):/^[\d\.]+(px|em|rem|%|pt)\/([\d\.]+(px|em|rem|%|pt)|normal)$/.test(t)?(n=t.split("/"),o=n[0],s=n[1],h=e):/^[\d\.]+(px|em|rem|%|pt)$/.test(t)?(o=t,h=e):"normal"===t?v++:t&&(a===b?a=t:a+=" "+t,d=e)}),i!==b&&(h<=f||d<=f)&&(i=b),r!==b&&(h<=l||d<=l)&&(r=b),1<=v&&(i===b&&(i=C),r===b)&&(r=C)}else i=e.fontStyle,r=e.fontWeight;return e={fontStyle:i,fontWeight:r,fontSize:e.fontSize||o,fontFamily:e.fontFamily?e.fontFamily.replace(/"/g,"'"):a,lineHeight:("normal"===e.lineHeight?b:e.lineHeight)||s,fontVariant:("normal"===e.fontVariant?b:e.fontVariant)||u,fontStretch:("normal"===e.fontStretch?b:e.fontStretch)||c},G.mpe[t]=e},G.gpe=function(t){var e,n,e;return t&&(G.aCe[t]||(e=t.split(","),n=[],e.forEach(function(t){t&&("'"!==(t=t.trim())[0]&&'"'!==t[0]&&0<t.indexOf(" ")?n.push("'"+t+"'"):n.push(t))}),e=n.join(", "),G.aCe[t]=e))},G.upe=function(t,e,n,i,r,o,a){var s,u,t,s=t+","+r+","+e+","+o+","+n+","+a+","+i;return G.ppe[s]||(u="",t===b&&e===b&&n===b&&i===b?G.ppe[s]=b:t===C&&e===C&&n===C&&i===C?G.ppe[s]=C:(t===C?u+="normal":t!==b&&(u+=t),t=u[u.length-1]&&" "!==u[u.length-1]?" ":"",r!==b&&(u+=t+r),t=u[u.length-1]&&" "!==u[u.length-1]?" ":"",e===C?u+=t+"normal":e!==b&&(u+=t+e),t=u[u.length-1]&&" "!==u[u.length-1]?" ":"",o!==b&&(u+=t+o),t=u[u.length-1]&&" "!==u[u.length-1]?" ":"",n!==b&&(u+=t+n),t=u[u.length-1]&&" "!==u[u.length-1]?" ":"",a!==b&&(u+=t+"/"+t+a),t=u[u.length-1]&&" "!==u[u.length-1]?" ":"",i!==b&&(u+=t+(i=G.gpe(i))),G.ppe[s]=u))},G.oce=function(t,e){var t,n,i,r,t=t,n;t._font!==e&&(e?(i=G.vpe(e),t.spe="normal"===i.fontStyle?C:i.fontStyle,t.cpe="normal"===i.fontWeight?C:i.fontWeight,t.lre=i.fontSize,i.fontSize?(r=i.fontSize.match(/^([\d\.]+)(px|em|rem|%|pt)$/),t.Uge=r&&+r[1],t.fpe=r&&r[2]):(t.Uge=b,t.fpe=b),t.lpe=i.fontFamily,t.b2e=i.fontVariant,t.y2e=i.fontStretch,t.w2e=i.lineHeight,t._font=G.upe(t.spe,t.cpe,t.lre,t.lpe,t.b2e,t.y2e,t.w2e)):(t.spe=e,t.cpe=e,t.lre=e,t.Uge=b,t.fpe=b,t.lpe=e,t.b2e=b,t.y2e=b,t.w2e=b,t._font=e))},G.dpe=function(t,e){var t,n,i,t=t,n;t.lre!==e&&(i=void 0,(i=e?e.match(/^([\d\.]+)(px|em|rem|%|pt)$/):i)?(t.Uge=+i[1],t.fpe=i[2]):(t.Uge=b,t.fpe=b),t.lre=e,t._font=G.upe(t.spe,t.cpe,t.lre,t.lpe,t.b2e,t.y2e,t.w2e))},G.m5=function(t,e){return e?G.b5(t,e):t},G.Ne=function(t){var e,t;return t?((e=G.y5()).style.font=t,{fontFamily:(t=e.style).fontFamily,fontSize:t.fontSize,fontStyle:t.fontStyle,fontWeight:t.fontWeight}):{}},G.f5=function(t){var e,n,i,r,o,a,s,u,c,f,l;return h.mt.Tt.safari?t.font:(e="",n="normal",a=t.fontStyle,s=t.fontVariant,u=t.fontWeight,c=t.lineHeight,a&&a!==n&&(e=a),s&&s!==n&&(e+=(e?" ":"")+s),u&&u!==n&&u!==(i="400")&&(e+=(e?" ":"")+u),e+=(e?" ":"")+(f=(f=t.fontSize)||(r="11pt")),c&&c!==n&&(e+="/"+c),e+(" "+(l=(l=t.fontFamily)||(o="Calibri"))))},G.b5=function(t,e){var n,i,r,t,e;if(!t&&!e)return t;if(t){if(r=G.w5[i=e?t+"+"+e:t])return r;n=G.y5(),(0,a.GC$)(n).css("font",t)}else{if(r=G.w5[i=e])return r;n=G.y5(),(0,a.GC$)(n).css("fontSize",o.p5)}return e&&(0,a.GC$)(n).css("fontFamily",e),t=n.currentStyle,(e=d.defaultView)&&e.getComputedStyle&&(t=e.getComputedStyle(n,"")),r=G.f5(t),G.w5[i]=r,G.w5[r]=r},G.V=function(t,e,n,i){var r,o,a,s,u,u,c,f,n,l,r=G.C5[e];if(!i)if(r){if(o=r[t])return o}else r=G.C5[e]={};return(a=G.y5()).style.font=t,s=a.currentStyle,-1!==(u=(s=(u=d.defaultView)&&u.getComputedStyle?u.getComputedStyle(a,""):s).fontSize||a.style.fontSize).indexOf(c="px")?(f=v(1,parseFloat(u.replace(c,""))*e),n&&1===f&&(n.value=!0),u=f+c):-1!==u.indexOf("pt")&&(f=h.SJSColumnWidthHelper.pointToPixel(v(1,parseFloat(u.replace("pt",""))*e),4),n&&1===f&&(n.value=!0),u=f+c),-1!==(n=s.lineHeight).indexOf(c)&&(n=(l=v(1,parseFloat(n.replace(c,""))*e))+c),o=1===e?{font:t,fontFamily:a.style.fontFamily,fontSize:f}:(a.style.fontSize=u,a.style.lineHeight=n,{font:a.style.font,fontFamily:a.style.fontFamily,fontSize:f}),i||(r[t]=o),o},G.mpe={},G.ppe={},G.aCe={},G.Lge=function(t,e,n,i){var r,o,a,s,s,u;if(t){if(r=G.C5[e],a=t.font,!i)if(r){if(o=r[a])return o}else r=G.C5[e]={};return o=(s=t.Uge)?(s=v(1,s*e),n&&1===s&&(n.value=!0),u=t.fpe,"pt"===t.fpe&&(s=h.SJSColumnWidthHelper.pointToPixel(s,4),u="px"),{font:G.upe(t.fontStyle,t.fontWeight,s+u,t.fontFamily,t.b2e,t.y2e,t.w2e),fontFamily:t.fontFamily,fontSize:s}):G.V(a,e,n,!0),i||(r[a]=o),o}},G.y5=function(){var t,e,n;if(G.S5)G.S5.style.cssText=G.T5;else{if(t="-10000px",(n=(e=h.mt.En("span")).style).visibility="hidden",n.top=t,n.left=t,n.lineHeight="normal",n.position="absolute",n.fontWeight="normal",n.fontStretch="normal",n.fontVariant="normal",n.fontStyle="normal",!d.body)return e;d.body.insertBefore(e,null),G.S5=e,G.T5=n.cssText}return G.S5},G.L0=function(){var t=G.S5;t&&((0,a.GC$)(t).remove(),G.S5=b,G.T5=b)},G.stringFontCatch={},G.ii=function(t,e){var n,i,r,o,n=t+","+e,i=G.stringFontCatch,r=i[n];return r||((o=G.y5()).style.font=t,e&&(o.style.fontWeight=e),r=i[n]=o.style.font),r},G.w5={},G.C5={},G.A5=function(t){var e;return t<=0?"none":(e="",(1|t)===t&&(e+="underline "),(2|t)===t&&(e+="line-through "),(4|t)===t&&(e+="overline "),e.trim())},G.setFillStyle=function(t,e,n,i,r,o,a){"string"==typeof e?(t.fillStyle!==e&&(t.fillStyle=e),a()):"path"===e.type?G.setFillStylePath(t,e,n,i,r,o,a):e.stops?G.setFillStyleGradient(t,e,n,i,r,o,a):e.type&&G.setFillStylepatternFill(t,e,n,i,r,o,a)},G.setFillStylepatternFill=function(t,e,n,i,r,o,a){var s,u,c,f,l,h,d,v,e,s=x[e.type],u=s.length,c=s[0].length,f=document.createElement("canvas");for(f.width=c,f.height=u,(l=f.getContext("2d")).fillStyle=e.backgroundColor||g,l.fillRect(0,0,c,u),l.fillStyle=e.patternColor||m,h=0;h<u;h++)for(d=0;d<c;d++)(v=s[h][d])&&l.fillRect(d,h,1,1);t.createPattern(f,"repeat"),e=t.createPattern(f,"repeat"),t.fillStyle=e,a()},G.processStops=function(t){var e,n;if(t.stops||"path"===t.type){if(e=t.stops)if(0===e.length)e=[{position:0,color:m},{position:1,color:m}];else{for((e=e.filter(function(t,e,n){return t.position<=1&&0<=t.position})).sort(function(t,e){return t.position-e.position}),n=0;n<e.length;n++)e[n].color=e[n].color||m;0!==e[0].position&&e.splice(0,0,{position:0,color:m}),1!==e[e.length-1].position&&e.push({position:1,color:m})}else e=[{position:0,color:g},{position:1,color:g}];t.stops=e}"path"===t.type?(t.left=s(t.left),t.right=s(t.right),t.top=s(t.top),t.bottom=s(t.bottom)):t.stops&&(delete t.type,t.degree=t.degree||0)},G.setFillStyleGradient=function(t,e,n,i,r,o,a){var s,u,c,f,s,l,h,d,s=e.degree||0;for(s%90==0?(c=s/180*S,f=p(s%180/180*S)-M(o/r)):(c=M(r/o*k(s/180*S)),f=p(c)-M(o/r),c=Math.round(s/180)*S+c),s=Math.sqrt(r*r+o*o)/2,u=t.createLinearGradient(n+r/2-s*w(f)*w(c),i+o/2-s*w(f)*y(c),n+r/2+s*w(f)*w(c),i+o/2+s*w(f)*y(c)),h=0,d=(l=e.stops).length;h<d;h++)u.addColorStop(l[h].position,l[h].color||g);t.fillStyle=u,a()},G.setFillStylePath=function(t,e,n,i,r,o,a){var s,u,c,f,l,h,d,v,s=e.left||0,u=e.right||0,c=e.top||0,f=e.bottom||0,l=e.stops;if(u<s&&(u=s),f<c&&(f=c),0<s){for(t.save(),t.beginPath(),h=t.createLinearGradient(n+r*s,0,n,0),d=0,v=l.length;d<v;d++)h.addColorStop(l[d].position,l[d].color||g);t.fillStyle=h,t.moveTo(n,i-1),t.lineTo(n+r*s+1,i+o*c),t.lineTo(n+r*s+1,i+o*f),t.lineTo(n,i+o+1),t.clip(),a(),t.restore()}if(u<1){for(t.save(),t.beginPath(),h=t.createLinearGradient(n+r*u,0,n+r,0),d=0,v=l.length;d<v;d++)h.addColorStop(l[d].position,l[d].color||g);t.fillStyle=h,t.moveTo(n+r,i-1),t.lineTo(n+r,i+o+1),t.lineTo(n+r*u-1,i+o*f),t.lineTo(n+r*u-1,i+o*c),t.clip(),a(),t.restore()}if(0<c){for(t.save(),t.beginPath(),h=t.createLinearGradient(0,i+o*c,0,i),d=0,v=l.length;d<v;d++)h.addColorStop(l[d].position,l[d].color||g);t.fillStyle=h,t.moveTo(n,i),t.lineTo(n+r,i),t.lineTo(n+r*u,i+o*c+1),t.lineTo(n+r*s,i+o*c+1),t.clip(),a(),t.restore()}if(f<1){for(t.save(),t.beginPath(),h=t.createLinearGradient(0,i+o*f,0,i+o),d=0,v=l.length;d<v;d++)h.addColorStop(l[d].position,l[d].color||g);t.fillStyle=h,t.moveTo(n+r,i+o),t.lineTo(n,i+o),t.lineTo(n+r*s,i+o*f-1),t.lineTo(n+r*u,i+o*f-1),t.clip(),a(),t.restore()}s<u&&c<f&&(t.save(),t.beginPath(),t.fillStyle=l[0].color,t.rect(n+r*s,i+o*c,r*(u-s),o*(f-c)),t.clip(),a(),t.restore())},G.Xue=function(t){var e;return(null==(e=null==t?void 0:t.decoration)?void 0:e.icons)&&0<t.decoration.icons.length},G.bpe=function(t){return(null==t?void 0:t.cellButtons)&&0<t.cellButtons.length},G.Hge=function(t){return G.gfe(t,i.IconPosition.leftOfText)||G.gfe(t,i.IconPosition.rightOfText)},G.gfe=function(t,e){var n=e===i.IconPosition.left;return G.Xue(t)&&t.decoration.icons.some(function(t){return n?t.position===i.IconPosition.left||t.position===C||t.position===b:t.position===e})},G.Vge=function(t){return G.wpe(t,i.IconPosition.leftOfText)||G.wpe(t,i.IconPosition.rightOfText)},G.wpe=function(t,e){var n=e===i.ButtonPosition.left;return G.bpe(t)&&t.cellButtons.some(function(t){return n?t.position===i.ButtonPosition.left||t.position===C||t.position===b:t.position===e})},G.Jue=function(t){return G.Xue(t)&&t.decoration.icons.some(function(t){return G.Kue(t)})},G.Kue=function(t){return t.position===C||t.position===b||t.position===i.IconPosition.left||t.position===i.IconPosition.leftOfText||t.position===i.IconPosition.right||t.position===i.IconPosition.rightOfText},o.W=G},"./dist/core/worksheet/worksheet-actions.js":function(S,t,e){"use strict";var n,_,d,A,b,M,i,p,w,L,u,D,j,i,x,G,O,V,Y,K,C,y,k,T,z,W,e,B,I,J,Z,Q,X,_,q,P,$,tt,et,nt,it,rt,ot,at,st,ut,ct,ft,lt,ht,dt,vt,gt,mt,pt,St,wt,bt,Ct,yt,Mt,kt,Tt,xt,r,o,Gt,Bt,It,Pt,Nt,Rt,Et,Ht,Ut,Ft,_t,At,Lt,Dt,jt,Ot,Vt,Yt,Kt,zt,Wt,Jt,Zt,Qt,Xt,qt,$t,te,ee,ne,ie,s,re,oe,ae,se,ue,ce,fe,le,he,de,ve,ge,me,pe,Se,we,be,Ce,ye,Me,ke,Te,xe,Ge,Be;function N(t,e){return t.getRowCount(e)}function R(t,e){return t.getColumnCount(e)}function E(t){return t.rowCount}function H(t){return t.colCount}function Ie(t){var t=t.parent;return t&&t.options.allowCopyPasteExcelStyle}function Pe(t){var t=t.parent;return t&&t.options.copyPasteHeaderOptions}function Ne(t,e,n,i){throw new Error(V.I5(q().Exp_InvalidAndSpace,[t,e,n,i]))}function Re(t){t.suspendPaint()}function U(t){t.resumePaint()}function Ee(t){t.suspendEvent()}function F(t){t.resumeEvent()}function He(t,e){t&&x&&t.suspendCalcService(e)}function Ue(t,e){t&&x&&t.resumeCalcService(e)}function Fe(t,e,n,i,r){var i=t.getSpan(e,n,i);return!(!(i&&r&&t.getRowVisible(i.row)&&t.getColumnVisible(i.col))||i.row===e&&i.col===n)}function _e(t){var e=this;e.x5=1==(1&t),e.N5=2==(2&t),e.k5=8==(8&t),e.D5=x&&16==(16&t),e._5=!0,e.E5=!0}function Ae(t,e,n,i,r,o){var a,s,u,c,f,l,h,d,v,g,m,p,S,w,b,r,r;if(G(t)||""===t)return B;for(!G(e)&&""!==e||(e="\r\n"),a="\n",!G(n)&&""!==n||(n="\t"),!G(i)&&""!==i||(i='"'),Y(t,e)||(t+=e),s=!r,u=[],f="",h=!(c=[]),d=i.length,v=e.length,g=a.length,m=n.length,p=t.length,S=0;S<p;S++)l=(f+=t[S]).length,s&&(l===d&&i===f||d<l&&i===f.substr(l-d,d))?h&&S+1+d<=p&&i===t.substr(S+1,d)?S+=d:h?(f=f.substr(0,l-d),h=!1):0===f.indexOf(i)&&(f=f.substr(0,l-d),h=!0):!h&&(l===m&&n===f||m<l&&n===f.substr(l-m,m))?(f=f.substr(0,l-m),c.push(f),f=""):!h&&(l===v&&e===f||v<l&&e===f.substr(l-v,v))?(f=f.substr(0,l-v),c.push(f),u.push(c),c=[],f=""):!h&&(l===g&&a===f||g<l&&a===f.substr(l-g,g))?(f=f.substr(0,l-g),c.push(f),u.push(c),c=[],f=""):h&&S+1+m<=p&&n===t.substr(S+1,m)&&","!==n&&(S+=d);if(h){if(0<c.length){for(b=void 0,b=0;b<u.length&&u[b]!==c;b++);u.length<=b&&u.push(c)}(r=f.toString())&&(r=r.replace(new RegExp(n,"g"),""),Y(r,e)&&(r=r.substr(0,r.length-v)),0===u.length)&&u.push([r])}return 0===u.length&&(Y(r=t,e)&&(r=r.substr(0,r.length-v)),u.push([r])),o&&Le(u)&&/^(\s)*$/.test(t)&&t.substr(t.length-g,g)===a&&u.push([""]),u}function Le(t){var e,n;if(t){for(e=0;e<t.length&&((n=t[e])&&1===n.length);e++);if(e===t.length)return 1}}function De(t,e,n,i,r){var o,a,s,u,c,r,f,l,h,d,v,o=i.length,a=Ve(i);if(0!==o&&0!==a)for(s=new _e(r),t&&(R(t,2)<=0&&(s.x5=!1),N(t,1)<=0)&&(s.N5=!1),(a-=u=s.x5?R(t,2):0)<=(r=0)&&(a=0),(o=(o-=c=s.N5?N(t,1):0)-(r=o<=0?0:r))<=0&&(o=0),s._5&&e+o>N(t)&&t.setRowCount(e+o),s.E5&&n+a>R(t)&&t.setColumnCount(n+a),f={},h=l=0;l<i.length;l++,h++)d=i[l],v=t.o5(),d.length<=0||(0<c&&l<c?je(t,d,h,n,a,1,s,f):0<o&&h<N(t)&&(je(t,d,h=l===c?e:h,0,u,2,s,f),d.splice(0,u),v&&(h=t.j5(h-1,3)),je(t,d,h,n,a,3,s,f,v)))}function je(t,e,n,i,r,o,a,s,u){for(var c,f,l,c=R(t,o),f=0,l=i;f<e.length;f++,l++)0<r&&l<c&&(u&&(l=t.O5(l-1,3)),Oe(t,o,n,l,e[f],a,s))}function Oe(e,n,i,r,o,t,a){var s,u,c,f,l,l,a,f,t,h,c,s=o,u=B;if(!1===t.k5&&(c={value:B},l=a[f=o.toString()],!G(o)&&l?(s=l.setValue,u=l.formatter):o&&!isNaN(o)&&0<=o.indexOf("\t")?s=o:(s=M.mt.Xf(B,o,!t.k5,c),u=c.value,G(o)||(a[f]={setValue:s,formatter:u}))),G(s))e.setValue(i,r,s,n);else if(""!==o)if(t.D5&&"="===o[0]&&1<o.length)try{e.setFormula(i,r,o.substr(1))}catch(t){e.setText(i,r,o,n)}else l=e.l0(i,r,"formatter",n),!1===t.k5&&u?l?(c=(l="string"==typeof l&&d.Formatter?new d.Formatter.GeneralFormatter(l):l).parse&&l.parse(o),s=G(c)?s:c):(u.isAuto=!0,e.getCell(i,r,n).R5("_autoFormatter",u),a=void 0,f=e.getCellType(i,r,n),t=u.formatString(),f&&"7"===f.typeName&&(a=f.parse(o,t,h={sheet:e,row:i,col:r,sheetArea:n}),s=G(a)?o:a)):l&&e.getCell(i,r,n).formatter(B),e.setValue(i,r,s,n);else e.setValue(i,r,B,n)}function Ve(t){for(var e,n,i,e=0,n=0;n<(t&&t.length);n++)i=t[n],e=J(i.length,e);return e}function Ye(t,e,n,i,r,o,a,s,u,c){if(!t)throw new Error(q().Exp_SheetIsNull);var i;(e<-1||e>=N(t))&&Ne("row",e,"-1",N(t)-1),(n<-1||n>=R(t))&&Ne("column",n,"-1",R(t)-1),G(i)||""===i||(-1===e&&(e=0),-1===n&&(n=0),(i=Ae(i,r,o,a,u,c))&&0<i.length&&De(t,e,n,i,s))}function Ke(t,e,n,i,r,o,a,s,u,c,f,l,h,d){var v,g,v,g,m,p,S,w,b,C,p,e,y;if(t)return v=N(t),g=R(t),(e<-1||v<=e)&&Ne("row",e,"-1",v-1),(n<-1||v<e+n)&&Ne("rowCount",n,"-1",v-e),(i<-1||g<=i)&&Ne("column",i,"-1",g-1),(r<-1||g<i+r)&&Ne("columnCount",r,"-1",g-i),p=m=!(g=v=-1),g=-1===e&&-1===i&&-1===n&&-1===r?(i=e=0,v=(n=N(t))-1,(r=R(t))-1):(-1===e&&(e=0,2==(2&Pe(t)))&&(m=!0),-1===i&&(i=0,1==(1&Pe(t)))&&(p=!0),v=e+(n=-1===n?N(t)-e:n)-1,i+(r=-1===r?R(t)-i:r)-1),b=w=null,C=Ze(t,e,v,i,g,3,c,f,o=!G(o)&&""!==o?o:"\r\n",a=!G(a)&&""!==a?a:"\t",s=!G(s)&&""!==s?s:'"',S=new RegExp(s,"g"),u,l,h,d),p&&(p=t.getColumnCount(2),w=Ze(t,e,v,0,p-1,2,c,f,o,a,s,S,u,l,h,d)),m&&(e=t.getRowCount(1),b=Ze(t,0,e-1,i,g,1,c,f,o,a,s,S,u,l,h,d)),ze(C,w,b,o,a,y=l&&4e3<n*r&&(z.safari||z.mozilla||M.mt.Qf()&&z.chrome));throw new Error(q().Exp_SheetIsNull)}function ze(t,e,n,i,r,o){var a,s,u,e,c,a=t,s=0,u=function(t,e){for(var n,i,r,n=[],i=t.length,r=0;r<i;r++)n.push(t[r].concat(e[r]));return n};return e&&(s=e[0].length,a=u(e,t)),n&&(e=n.length,c=null,a=(n=s?u(c=Ze(null,0,e-1,0,s-1,null,[],[],i,r,null,null,null,!1,!1),n):n).concat(a)),o&&We(a),Je(a,i,r)}function We(t){for(var e,n,e=t.length,n=t.length-1;0<=n&&-1===t[n].join("").search(/\S+/);n--)e=n;t.length=e}function Je(t,e,n){for(var i,r,o,a,o="",a=t.length,i=0;i<a;i++){for(r=0;r<t[i].length;r++)0!==r&&(o+=n),o+=t[i][r];o+=e}return o}function Ze(t,e,n,i,r,o,a,s,u,c,f,l,h,d,v,g){for(var m,p,S,w,b,C,m=[],w=t&&Ie(t),p=e;p<=n;p++)if(!a||!O(a,p)){for(b=[],S=i;S<=r;S++)s&&O(s,S)||(C="",C=Qe(C=t&&!Fe(t,p,S,o,d)&&(C=t.getText(p,S,o),g)&&w?C&&(" "!==C[0]&&" "!==C[C.length-1]||"number"!=typeof t.getValue(p,S,o)?C.replace(/[\r\n]+/g,"\n"):C.trim()):C,d,w,l,f,v,h,c,u),b.push(C));m.push(b)}return m}function Qe(t,e,n,i,r,o,a,s,u){var c="";return G(t)||(c=t,e&&n)||(c=c.replace(i,r+r)),o&&!c&&(c=" "),e&&n?c=c.replace(/\n/g," "):!a&&-1===c.indexOf(r)&&-1===c.indexOf(s)&&-1===c.indexOf(u)&&-1===c.indexOf("\n")||(c=r+c+r),c}function c(t,e){if(t.sheets){var e=(0,M._f)(t,e.sheetName);if(e)return e}return t}function a(t,e,n,i){var t,e,t=c(t,n),e=new e(t,n,i);return i?e.undo(t):e.execute(t)}function Xe(t){var n=t;return function(t,e){var t=c(t,e);return P.B5(t,n)}}function f(t,e){var n,i,n=t,i=e;return function(t,e){var t=c(t,e);return P.L5(t,n,i)}}function qe(t,e){var t,n,i,r,e,t=t.parent;t&&(n=t.getSheetCount(),r=i=void 0,i=r=t.getActiveSheetIndex(),e?r<n-1&&r++:0<r&&r--,i!==r)&&(e=t.getActiveSheet(),t.tb(r,1),t.a3(e),t.repaint())}function $e(t,e,n,i){t.F5=!0,tn(t)?t.P5(e):t.G5(e,n,void 0,void 0,i),t.F5=!1}function tn(t){var e,n,e=t.Ut.getSelections().length;return 1<e||!(!((n=t.U5())&&0<e)||t.ui===n.row&&t.ci===n.col&&t.H5>=E(n)&&t.z5>=H(n))}function en(t,e){var n,n,t,e;return!!t.endEdit()&&((n=t.rt).V5(),n.Y5(),M.hi.F1(B),n=!1,(t=t.parent)&&((e=e.call(t))&&e.focus?(e.focus(),n=!0):t.vC()),{ignoreCancelDefault:!n})}function l(t,e,n){var i=this;i.Mf=t,i.Z5=e,i.W5=n,i.Q5=[],i.K5=[],i.J5()}function nn(e,t){var n,i,n=[];return"string"==typeof t?(i=(0,M._f)(e,t))&&n.push(i):Array.isArray(t)&&t.forEach(function(t){var t=(0,M._f)(e,t);t&&n.push(t)}),n}function rn(t){return t instanceof b.Worksheet?t:t.Mf instanceof b.Worksheet?t.Mf:void 0}function on(t,e){G(t.Tb)&&(t.Tb=e.Tb,t.Ab=e.Ab)}function an(t,e){var n=Se.call(this,t,e)||this;return on(e,t),n}function sn(t,e){var n=we.call(this,t,e)||this;return on(e,t),n}function un(t,e){var n,i,n=be.call(this)||this,i=n;return i.Mf=t,i.tT=e,n}function cn(t,e){var n,i,n=Ce.call(this)||this,i=n;return i.Mf=t,i.tT=e,n}function h(t,e){var n,i,t,n=ye.call(this,t,e)||this,i=n,t=t.parent;return i.nT=e.rowHeader?2:3,W(e.autoFitType)||(e.autoFitType=t?t.options.autoFitType:0),n}function v(t,e){var n,i,t,n=Me.call(this,t,e)||this,i=n,t=t.parent;return i.nT=e.columnHeader?1:3,W(e.autoFitType)||(e.autoFitType=t?t.options.autoFitType:0),n}function fn(t,e){"value"===e.propertyName&&t.eT(e.row,e.col,e.oldValue,e.newValue)}function g(t,e){var n,i,t,n=ke.call(this,t,e)||this;return x&&e.ranges&&1===e.endEditType&&(i=t.JS(e.ranges[0]),1===E(e.ranges[0]=i))&&1===H(i)&&(t=t.iT(i.row,i.col,1,1))&&t.ranges&&0<t.ranges.length&&(e.ranges=[t.ranges[0]]),n}function ln(t){var t=t.parent,t=t&&t.w2;t&&t.repaint()}function hn(t,i){t&&t.forEach(function(t){var e,n,e=t.w3.getFormula(t.row,t.column),n=t.w3.sT(t.row,t.column);t.w3.rT.setFormula(t.row,t.column,e,n,i)})}function dn(t,e){return Te.call(this,t,e)||this}function vn(t,e){return xe.call(this,t,e)||this}function gn(t,e){return!(!0===t.isEditing()&&!t.endEdit()||(t.suspendPaint(),t.zoom(e),t.resumePaint(),0))}function m(t,e){return Ge.call(this,t,e)||this}function mn(t,e,n){var i,r,o,i=Be.call(this,t,e)||this;if(!n&&(e.cachedActions=[],r=e.ranges)&&0<r.length)for(o=0;o<r.length;o++)e.cachedActions[o]=new ge(t,{clearRange:r[o]});return i}n=this&&this.__extends||(pe=function(t,e){return(pe=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(t,e){t.__proto__=e}:function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])}))(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}pe(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),Object.defineProperty(t,"__esModule",{value:!0}),t.ChangedCells=t.Commands=t.getRangeText=t.getMaxLength=t.parseText=void 0,_=e("./dist/core/core.ns.js"),d=e("Common"),A=e("./dist/core/worksheet/style.js"),b=e("./dist/core/worksheet/worksheet.js"),M=e("./dist/core/util/common.js"),i=e("./dist/core/util/domUtil.js"),p=e("./dist/core/core.enum.js"),w=i.GC$,L=e("CalcEngine"),u=e("./dist/core/util/crypto.js"),D=e("./dist/core/worksheet/worksheet-formatter.js"),j=e("./dist/core/worksheet/worksheet-clipboard.js"),i=e("./dist/core/worksheet/actionbase.js"),x=!!L,G=d.Common.lt.ht,O=d.Common.Uf.OS,V=d.Common.zf,Y=V.dT,K=M.Events.CellChanged,C=M.Events.ColumnWidthChanging,y=M.Events.ColumnWidthChanged,k=M.Events.RowHeightChanging,T=M.Events.RowHeightChanged,z=M.mt.Tt,W=M.mt.T1,e=w.extend,B=null,I=void 0,J=Math.max,Z=Math.ceil,Q=1e5,X="SHA-512",_=new d.Common.ResourceManager(_.SR,"Sheets"),q=_.getResource.bind(_),t.parseText=Ae,t.getMaxLength=Ve,t.getRangeText=Ke,e(b.Worksheet.prototype,{autoFitColumn:function(t){0<=t&&t<R(this)&&this.Qy().execute({cmd:"autoFitColumn",sheetName:this.name(),columns:[{col:t}],rowHeader:!1})},autoFitRow:function(t){0<=t&&t<N(this)&&this.Qy().execute({cmd:"autoFitRow",sheetName:this.name(),rows:[{row:t}],columnHeader:!1})},setCsv:function(t,e,n,i,r,o,a,s){var u=this;Re(u),Ee(u),He(u),Ye(u,t,e,n,i,r,'"',o,a,s),Ue(u,!1),F(u),U(u)},setDataToCell:function(t,e,n,i){De(t,e,n,i,0)},getCsv:function(t,e,n,i,r,o){return Ke(this,t,n,e,i,r,o,'"',!0)},getRangeTextHasIgnore:function(t,e,n,i,r,o){return Ke(this,t,n,e,i,"\r\n","\t",'"',!0,r,o)},findSpecialNonNullCellInRange:function(t,e){for(var n,t,i,r,o,a,s,u,n=this.Ut.sheetModels[3],t=M.mt.S1(this,t),i=t.row,r=t.row+t.rowCount,o=t.col,a=t.col+t.colCount,s=n.gT(i-1);-1!==s&&s<=r;){for(u=n.pT(s,o-1);-1!==u&&u<=a;){if(e(this,s,u))return{row:s,col:u};u=n.pT(s,u)}s=n.gT(s)}return I},nA:function(t){var e,n,i,r,o,a,s,e=this,n=t.length;if(e.isActualProtected())for(i=0;i<n;i++)for(o=(r=t[i]).row;o<r.row+r.rowCount;o++)for(a=r.col;a<r.col+r.colCount;a++)if(!1!==(s=e.getActualStyle(o,a)).locked)return!0;return!1},ET:function(t){for(var e=0;e<t.length;e++)if(this.dA(t[e],I,p.SheetArea.viewport))return!0;return!1},G5:function(t,e,n,i,r){var o,a,a,a,s,o=this,a=o.vA&&1===o.vA.sheetArea;o.endEdit&&!o.endEdit()||a||(a={sheet:o,sheetName:o.name(),row:o.ui,col:o.ci,cancel:!1},o.ki(M.Events.LeaveCell,a),!0!==a.cancel&&(a=o.ui,s=o.ci,G(n)&&(n=o.ui),G(i)&&(i=o.ci),3===t?o.mA(n,i,e):4===t?o.gA(n,i,e):1===t?o.pA(n,i,e,r):2===t?o.bA(n,i,e):5===t?o.yA():6===t&&o.wA(),o.MA(t,a,s,!1)))},P5:function(t){var e,n,n,i,e=this;e.endEdit()&&(n={sheet:e,sheetName:e.name(),row:e.ui,col:e.ci,cancel:!1},e.ki(M.Events.LeaveCell,n),!0!==n.cancel)&&(n=e.ui,i=e.ci,3===t?e.CA(e.ui,e.ci):4===t?e.SA(e.ui,e.ci):1===t?e.TA(e.ui,e.ci):2===t&&e.AA(e.ui,e.ci),e.MA(t,n,i,!0))},MA:function(t,e,n,i){var r,o,a,s,u,u,c,f,f,l,h,l,h,f,l,h,s,d,v,d,h,s,g,m,l,v,d,h,s,r=this,o=r.rt,a=r.Ut.getSelections(),s=!1;if(i||(u=r.JS(r.U5()),!(s=1<a.length||1<E(u)||1<H(u)?!0:s)&&r.Cb&&r.Cb.Sb(u)&&(s=!0),r.IA()),u=r.ui,c=r.ci,f=r.Ut.getSpan(u,c),r.H5=E(f),r.z5=H(f),i||(f=r.xA(u,c),l=r.selectionPolicy(),h=r.selectionUnit(),0!==l&&1!==l||r.Ut.do("clearSelection"),1===h?(f.col=-1,f.colCount=-1):2===h&&(f.row=-1,f.rowCount=-1),r.kA(f.row,f.col,E(f),H(f),!1),l=r.Ut.getSelections(),o._A(a,l)&&(r.EA(a,l),r.jA(a))),r.OA(u,c),e!==u&&(h=r.H3)&&h.RA(),f=r.Dn,s){if(h=(l=r.Fi()).BA,s=l.LA,d=l.width-h,v=l.height-s,f.FA(h,s,d,v),f.repaint(new M.Rect(h,s,d,l.qC)),f.repaint(new M.Rect(h,s,l.XC,v)),h=(d=r._1)&&d.isEnable(p.RowColumnStates.selected,!0),s=d&&d.isEnable(p.RowColumnStates.selected,!1),h||s){for(g=a[0],m=1;m<a.length;m++)g=g.union(a[m]);g&&(l=new M.Range(u,c,r.H5,r.z5),f.E1(l.union(g),null,null,null,null,i))}f.jy(f.J())}else d=E(v=r.Ut.getSpan(e,n)),h=H(v),f.E1(new M.Range(u,c,r.H5,r.z5).union(new M.Range(e,n,d,h)),null,null,null,null,i);s={sheet:r,sheetName:r.name(),row:u,col:c},r.ki(M.Events.EnterCell,s),r.ki(M.Events.EnterCellInternal,s),o.PA&&o.PA(u,c)},GA:function(t,e,n){var i,r,t,i=this,r=i.getDataValidator&&i.getDataValidator(t,e),t={sheet:i,sheetName:i.name(),row:t,col:e,editingValue:n,validator:r,validationResult:0};return i.ki(M.Events.ValidationError,t),t.validationResult},protect:function(t){this.aue(t)},aue:function(t){var e,n,n,i,t,e=this,n="string"==typeof t;!0!==e.options.isProtected&&(G(t)||n&&0===t.length?e.options.isProtected=!0:n&&(n=u.Qoe.iue(),t=u.Qoe.nue(t,n,i=1e5,u.Qoe.eue),e.oue={algorithmName:X,hashValue:t,saltValue:n,spinCount:1e5},e.options.isProtected=!0))},unprotect:function(t){return this.uue(t)},uue:function(t){var e,n,n,i,r,o,a,s,e=this,n=e.sue();if(e.options.isProtected){if(!n)return!(e.options.isProtected=!1);if(G(t)||"string"!=typeof t||0===t.length)return!1;if(i=(n=e.oue).hashValue,r=n.saltValue,o=n.spinCount,(a=n.algorithmName)!==X)throw new Error(q().EXP_UNSUPPORT_CRYPTO_ALGORITHM);if(!(s=u.Qoe.rue(t,i,r,o,u.Qoe.eue)))return!1;e.options.isProtected=!1,e.oue=I}return!0},hasPassword:function(){return this.sue()},sue:function(){return!G(this.oue)}}),P={},(t.Commands=P).B5=function(t,e){return!!t&&2!==t.Di&&(t.G5(e,!1),!0)},P.UA=function(t,e,n,i){return!!t&&2!==t.Di&&(t.G5(e,!1,n,i),!0)},P.L5=function(t,e,n){return!!t&&2!==t.Di&&!(t.endEdit&&!t.endEdit()||(t.HA(e,n),0))},$="navigationLeft",tt="navigationRight",et="navigationUp",nt="navigationDown",it="navigationHome2",rt="navigationEnd2",ot="navigationTop",at="navigationBottom",st="navigationHome",ut="navigationFirst",ct="navigationEnd",ft="navigationLast",lt="moveToNextCell",ht="moveToPreviousCell",dt="navigationPageUp",vt="navigationPageDown",gt="navigationPreviousSheet",mt="navigationNextSheet",pt="clear",St="clearAndEditing",wt="commitInputNavigationDown",bt="commitInputNavigationUp",Ct="cancelInput",yt="commitArrayFormula",Mt="selectionLeft",kt="selectionRight",Tt="selectionUp",xt="selectionDown",r="selectionHome",o="selectionEnd",Gt="selectionPageUp",Bt="selectionPageDown",It="selectionTop",Pt="selectionBottom",Nt="selectionFirst",Rt="selectionLast",Et="copy",Ht="cut",Ut="paste",Ft="undo",_t="redo",At="resizeColumn",Lt="resizeRow",Dt="splitResizeRow",jt="splitResizeColumn",Ot="autoFitColumn",Vt="autoFitRow",Yt="editCell",Kt="renameSheet",zt="zoom",Wt="clearValues",Jt="clipboardPaste",Zt="selectNextControl",Qt="selectPreviousControl",Xt="moveToNextCellThenControl",qt="moveToPreviousCellThenControl",$t="changeFormulaReference",te="moveSheet",ee="copySheet",ne="showAllSheetsDialog",ie="openPasteSpecialDialog",P.Tp=c,P.zA=a,P.gM=function(t){var e=M.mt.Qf(),n=!e,i=e;t.register($,P[$],37,!1,!1,!1,!1),t.register(tt,P[tt],39,!1,!1,!1,!1),t.register(et,P[et],38,!1,!1,!1,!1),t.register(nt,P[nt],40,!1,!1,!1,!1),t.register(it,P[it],37,n,!1,!1,i),t.register(rt,P[rt],39,n,!1,!1,i),t.register(ot,P[ot],38,n,!1,!1,i),t.register(at,P[at],40,n,!1,!1,i),t.register(st,P[st],36,!1,!1,!1,!1),t.register(ut,P[ut],36,!0,!1,!1,!1),t.register(ct,P[ct],35,!1,!1,!1,!1),t.register(ft,P[ft],35,!0,!1,!1,!1),t.register(lt,P[lt],9,!1,!1,!1,!1),t.register(ht,P[ht],9,!1,!0,!1,!1),t.register(dt,P[dt],33,!1,!1,!1,!1),t.register(vt,P[vt],34,!1,!1,!1,!1),t.register(gt,P[gt],33,n,!1,!1,i),t.register(mt,P[mt],34,n,!1,!1,i),t.register(pt,P[pt],46,!1,!1,!1,!1),t.register(St,P[St],8,!1,!1,!1,!1),t.register(wt,P[wt],13,!1,!1,!1,!1),t.register(bt,P[bt],13,!1,!0,!1,!1),t.register(Ct,P[Ct],27,!1,!1,!1,!1),t.register(yt,P[yt],13,!0,!0,!1,!1),t.register(Mt,P[Mt],37,!1,!0,!1,!1),t.register(kt,P[kt],39,!1,!0,!1,!1),t.register(Tt,P[Tt],38,!1,!0,!1,!1),t.register(xt,P[xt],40,!1,!0,!1,!1),t.register(r,P[r],36,!1,!0,!1,!1),t.register(o,P[o],35,!1,!0,!1,!1),t.register(Gt,P[Gt],33,!1,!0,!1,!1),t.register(Bt,P[Bt],34,!1,!0,!1,!1),t.register(r,P[r],37,n,!0,!1,i),t.register(o,P[o],39,n,!0,!1,i),t.register(It,P[It],38,n,!0,!1,i),t.register(Pt,P[Pt],40,n,!0,!1,i),t.register(Nt,P[Nt],36,!0,!0,!1,!1),t.register(Rt,P[Rt],35,!0,!0,!1,!1),t.register(Et,P.copy,67,n,!1,!1,i),t.register(Ht,P.cut,88,n,!1,!1,i),t.register(Ut,P[Ut],86,n,!1,!1,i),t.register(Ft,P.undo,90,n,!1,!1,i),t.register(_t,P.redo,89,n,!1,!1,i),e&&t.register(_t,P.redo,90,n,!0,!1,i),t.register(Zt,P[Zt]),t.register(Qt,P[Qt]),t.register(Xt,P[Xt]),t.register(qt,P[qt]),t.register($t,P[$t]),t.register(At,P[At]),t.register(Lt,P[Lt]),t.register(jt,P[jt]),t.register(Dt,P[Dt]),t.register(Ot,P[Ot]),t.register(Vt,P[Vt]),t.register(Yt,P[Yt]),t.register(Kt,P[Kt]),t.register(zt,P.zoom),t.register(Wt,P[Wt]),t.register(Jt,P[Jt]),t.register(te,P[te]),t.register(ee,P[ee]),t.register(ne,P[ne]),t.register(ie,P[ie],86,!0,!1,!0,!1)},s={256:"bindingPath",4:"comment",2:"formula",16:"sparkline",64:"style",128:"tag",1024:"hyperlink",2048:"defaultValue",4096:"altText",1:"value"},P[$]={canUndo:!(re=".cellEditAction"),execute:Xe(3)},P[tt]={canUndo:!1,execute:Xe(4)},P[et]={canUndo:!1,execute:Xe(1)},P[nt]={canUndo:!1,execute:Xe(2)},P[yt]={canUndo:!1,execute:function(t,e){var t,e,t=c(t,e),e=P.VA;return(t=e?e.YA(t):t).YA&&t.YA(),!0}},P[wt]={canUndo:!1,execute:function(t,e){var t,e,t=c(t,e),e=P.VA;return $e(t=e?e.ZA(t):t,2,!1),!0}},P[bt]={canUndo:!1,execute:function(t,e){var t,e,t=c(t,e),e=P.VA;return $e(t=e?e.WA(t):t,1,!1,!0),!0}},P[st]={canUndo:!1,execute:function(t,e){var t=c(t,e);return P.UA(t,4,B,t.frozenColumnCount()-1)}},P[it]={canUndo:!1,execute:function(t,e){var t,n,t=c(t,e);return!!(t&&0<(n=t.getSelections()).length)&&P.UA(t,4,B,-1)}},P[ct]={canUndo:!1,execute:function(t,e){var t=c(t,e);return P.UA(t,3,B,R(t)-t.frozenTrailingColumnCount())}},P[rt]={canUndo:!1,execute:function(t,e){var t,n,t=c(t,e);return!!(t&&0<(n=t.getSelections()).length)&&P.UA(t,3,B,R(t))}},P[ot]={canUndo:!1,execute:function(t,e){var t=c(t,e);return P.UA(t,2,-1,B)}},P[at]={canUndo:!1,execute:function(t,e){var t=c(t,e);return P.UA(t,1,N(t),B)}},P[dt]={canUndo:!1,execute:function(t,e){var t,e,n,n,i,i,t=c(t,e);if(!t||2===t.Di)return!1;if((e=t.QA())!==B&&e!==t.Tb){if(n=t._y(1,3),(n=t.j5(t.ui-n.length))<e&&(n=e),i=P.VA){if((i=i.KA(t,n,e)).r)return!0;t=i.sheet}if(!t.endEdit())return!1;t.JA(n,t.getActiveColumnIndex())&&(t.XA(n,B),t.qA=n,t.G5()),t.$A(e,0)}return!0}},P[vt]={canUndo:!1,execute:function(t,e){var t,e,n,n,i,i,t=c(t,e);if(!t||2===t.Di)return!1;if((e=t.tI())!==B&&e!==t.Tb){if(n=t._y(1,3),(n=t.nI(t.ui+n.length))<e&&(n=e),i=P.VA){if((i=i.eI(t,n,e)).r)return!0;t=i.sheet}if(!t.endEdit())return!1;t.JA(n,t.getActiveColumnIndex())&&(t.XA(n,B),t.qA=n,t.G5()),t.$A(e,0)}return!0}},P[mt]={canUndo:!1,execute:function(t,e){var n;qe(c(t,e),!0)}},P[gt]={canUndo:!1,execute:function(t,e){var n;qe(c(t,e),!1)}},P[ut]={canUndo:!1,execute:function(t,e){var t,e,e,t=c(t,e);if(!t||2===t.Di)return!1;if(e=P.VA){if((e=e.iI(t)).r)return!0;t=e.sheet}return t.G5(5,!1,t.ui,t.ci),!0}},P[ft]={canUndo:!1,execute:function(t,e){var t,e,e,t=c(t,e);if(!t||2===t.Di)return!1;if(e=P.VA){if((e=e.rI(t)).r)return!0;t=e.sheet}return t.G5(6,!1,t.ui,t.ci),!0}},P[Zt]={canUndo:!1,execute:function(t,e){var t=c(t,e);return!!t.parent&&en(t,t.parent.nextControl)}},P[Qt]={canUndo:!1,execute:function(t,e){var t=c(t,e);return!!t.parent&&en(t,t.parent.previousControl)}},P[lt]={canUndo:!1,execute:function(t,e){var t,e,t=c(t,e),e=P.VA;return $e(t=e?e.oI(t):t,4,!0),!0}},P[ht]={canUndo:!1,execute:function(t,e){var t,e,t=c(t,e),e=P.VA;return $e(t=e?e.aI(t):t,3,!0),!0}},P[Xt]={canUndo:!1,execute:function(t,e){var n,i,r,o,a,n=c(t,e),i=n.qA,r=n.getActiveColumnIndex();return n.F5=!0,o=n.uI(n.getActiveRowIndex(),r,!0,i),n.F5=!1,((a=!o||o.leadingCellRow<i||o.leadingCellRow===i&&r>o.col)?P[Zt]:P[lt]).execute(t,e)}},P[qt]={canUndo:!1,execute:function(t,e){var n,i,r,o,a,n=c(t,e),i=n.qA,r=n.getActiveColumnIndex();return n.F5=!0,o=n.sI(n.getActiveRowIndex(),r,!0,i),n.F5=!1,((a=!o||o.leadingCellRow>i||o.leadingCellRow===i&&r<o.col)?P[Qt]:P[ht]).execute(t,e)}},P[Ct]={canUndo:!1,execute:function(t,e){var t,e,n,e,t=c(t,e),e=P.VA;return e&&(n=e.cI(t)),t.isEditing()?!!t.endEdit(!0):G(n)?(P.fI(t.parent),t.bM=B,t.parent.bM.c5(),(e=t).AT&&e.AT(),void(e.ieV&&e.ieV())):n}},P.fI=function(t){var e,t,n,i,r,o;if(t&&(e=t.sheets,t=t.mp.map(function(t){return t.Mf}),n=e.concat(t)))for(i=0,r=n.length;i<r;i++)(o=n[i])&&o.lA&&o.lA.lI()},P[pt]={canUndo:!1,execute:function(t,e){var t,e,t=c(t,e);return!t.isEditing()&&(e=t.getSelections(),t.Qy().execute({cmd:Wt,sheetName:t.name(),ranges:e}))}},P[St]={canUndo:!1,execute:function(t,e){var n=c(t,e);return!n.isEditing()&&(M.mt.Qf()?P[pt].execute(t,e):(n.Ai=!0,n.startEdit(!0,""),n.Ai=!1),!0)}},P.copy={canUndo:!1,execute:function(t,e){var n,t,n,t,t=c(t,e),n=!e.vge&&(null==(n=e.ignoreClipboard)||n),t=e.copyData=t.eA(n);return e.callback&&e.callback(),!t||I}},P.cut={canUndo:!1,execute:function(t,e){var n,t,n,t,t=c(t,e),n=!e.vge&&(null==(n=e.ignoreClipboard)||n),t=e.cutData=t.tA(n);return e.callback&&e.callback(),!t||I}},P[Ut]={canUndo:!1,execute:function(t,e){var n,n,i,n=null!=(n=e.vge)&&n,i;c(t,e).rA(e,n)}},P[Mt]={canUndo:!1,execute:f(37)},P[kt]={canUndo:!1,execute:f(39)},P[Tt]={canUndo:!1,execute:f(38)},P[xt]={canUndo:!1,execute:f(40)},P[r]={canUndo:!1,execute:f(37,!0)},P[o]={canUndo:!1,execute:f(39,!0)},P[Gt]={canUndo:!1,execute:f(33)},P[Bt]={canUndo:!1,execute:f(34)},P[It]={canUndo:!1,execute:f(38,!0)},P[Pt]={canUndo:!1,execute:f(40,!0)},P[Nt]={canUndo:!1,execute:f(36,!0)},P[Rt]={canUndo:!1,execute:f(35,!0)},P[$t]={canUndo:!1,execute:function(t,e){var t,e,t=c(t,e),e=t&&t.rt;if(e){Re(t);try{e.hI&&e.hI()}finally{U(t)}}}},P.undo={canUndo:!1,execute:function(t){var t,e,t=t;return t&&(e=t.undoManager())&&e.canUndo()&&(e.undo(),t.ki(M.Events.WorkbookUndo,{spread:t})),!0}},P.redo={canUndo:!1,execute:function(t){var t,e,t=t;return t&&(e=t.undoManager())&&e.canRedo()&&(e.redo(),t.ki(M.Events.WorkbookRedo,{spread:t})),!0}},P[At]={canUndo:!0,execute:function(t,e,n){return a(t,ae,e,n)}},P[Lt]={canUndo:!0,execute:function(t,e,n){return a(t,se,e,n)}},P[jt]={canUndo:!0,execute:function(t,e,n){return a(t,ue,e,n)}},P[Dt]={canUndo:!0,execute:function(t,e,n){return a(t,ce,e,n)}},P[Ot]={canUndo:!0,execute:function(t,e,n){return a(t,fe,e,n)}},P[Vt]={canUndo:!0,execute:function(t,e,n){return a(t,le,e,n)}},P[Yt]={canUndo:!0,execute:function(t,e,n){return a(t,he,e,n)}},P[Kt]={canUndo:!0,execute:function(t,e,n){return a(t,de,e,n)}},P.zoom={canUndo:!0,execute:function(t,e,n){return a(t,ve,e,n)}},P[Wt]={canUndo:!0,execute:function(t,e,n){var i,r,i=c(t,e),r=i.getSelections();return i.isActualProtected()&&i.ET(r)?(i.jT(13,i.FT()),!1):a(t,me,e,n)}},P[Jt]={canUndo:!0,execute:function(t,e,n){return a(t,j.ClipboardPasteUndoAction,e,n)}},P[te]={canUndo:!1,execute:function(t,e){var n,e,i,r,i,o,a,a,n=e.sheetName,e=e.targetIndex,i=t.getSheetPosition(n),r=t.jg(),i=i,o=e,a={sheet:r,sheetName:r.name(),oldIndex:i,newIndex:o,cancel:!1};return t.ki(M.Events.SheetMoving,a),!a.cancel&&(a=t.changeSheetPosition(n,e),t.ki(M.Events.SheetMoved,{sheet:r,sheetName:r?r.name():B,oldIndex:i,newIndex:o}),a)}},P[ee]={canUndo:!1,execute:function(t,e){var n,i,r,n,e,o,a,i=e.sheetName,r=e.targetIndex,n=e.newName,e=e.includeBindingSource,o=t.Gm(i);return t.ki(M.Events.SheetChanging,{sheetName:n,propertyName:"insertSheet",cancel:!1,sheetIndex:r,sheetPosition:t.getSheetPosition(n)}),t.ki(M.Events.ActiveSheetChanging,{oldSheet:o,newSheet:a,cancel:!1}),a=t.clone(i,r,n,e),!G(a)&&(t.ki(M.Events.SheetChanged,{sheetName:a.name(),propertyName:"insertSheet",sheetIndex:r,sheetPosition:t.getSheetPosition(a.name())}),t.ki(M.Events.ActiveSheetChanged,{oldSheet:o,newSheet:a}),t.sheetTabStyles.all()[i]&&(t.sheetTabStyles.O2e[a.name()]=t.sheetTabStyles.all()[i],null!=(n=t.w2))&&n.Cg(),!0)}},P[ne]={canUndo:!1,execute:function(t,e){for(var t,n,i,r,o,a,s,u,c,c,f,l,h,t=t,n="gc.spread.",i="gc.spread.contextMenu.allSheets",r="sheetTab",o=[],a=t.qv(),u=0;u<a.length;u++)a[u].visible()===p.SheetTabVisible.visible&&(c=21<a[u].name().length?a[u].name().substr(0,18)+"...":a[u].name(),c={text:c=V.dI(c),name:n+a[u].name(),command:i,workArea:r,itemClass:"",title:a[u].name()},a[u].b2()&&(s=u,c.itemClass="gc-ui-contextmenu-menuitem-all-sheets-select-sheets-background-color"),o.push(c));return f=(0,M.jf)(t),t.ki(M.Events.ActiveSheetChangingInternal,l={oldSheet:f,newSheet:f,needTriggerSheetChange:!0}),h={items:o,mouseEvent:e.mouseEvent,cancel:!1},t.ki(M.Events.SheetTabAllSheetsListContextMenuOpening,h),!h.cancel&&(t.contextMenu.openAllSheetsListContextMenu(o,t,e.mouseEvent,s),t.ki(M.Events.SheetTabAllSheetsListContextMenuOpened,h),t.ki(M.Events.ActiveSheetChangedInternal,{oldSheet:void 0,newSheet:f}),!0)}},P[ie]={canUndo:!1,execute:function(t,e,n){return a(t,j.OpenPasteSpecialDialogActive,e,n)}},l.prototype.toJSON=function(){var t=this;return{sheetName:t.Mf.name(),range:t.Z5,dataType:t.W5,cellsData:t.Q5}},l.prototype.fromJSON=function(t,e){var n,i,n=t.sheetName,i=e;"Workbook"===e.constructor.name&&(i=e.getSheetFromName(n)),this.Mf=i,this.Z5=t.range,this.W5=t.dataType,this.Q5=t.cellsData},l.prototype.J5=function(){var t,e,n,i,r,o,a,s,u,c,f,l,h,d,v,g,m,p,S,w,b,C,y,M,h,k,k,T,T,t=this,e=t.Z5,n=t.Mf;if(n&&e){if(i=t.W5,r=e.row,o=e.col,a=E(e),s=H(e),u=t.Q5,c=!1,-1===r&&(c=!0,r=0,a=N(n)),-1===o&&(c=!0,o=0,s=R(n)),l=[],0<(64&i))for(d=0;d<s;d++)l[d]=n.vI(-1,d)||B;for(v=0;v<a;v++)for(g=r+v,0<(64&i)&&(f=n.vI(g,-1)||B),m=0;m<s;m++){if(p=void 0,S=o+m,x&&0<(2&i)&&n.getFormulaInformation&&(p=n.getFormulaInformation(g,S,3)).hasFormula)if(p.isArrayFormula){if((w=p.baseRange).row===g&&w.col===S)for(b=w.row,C=w.row+E(w);b<C;b++)for(y=w.col,M=w.col+H(w);y<M;y++)t.mI(u,b-r,y-o,p,2)}else t.mI(u,v,m,p.formula,2);!(0<(1&i))||p&&p.hasFormula||t.mI(u,v,m,n.getValue(g,S,3),1),0<(16&i)&&n.getSparkline&&(h=n.getSparkline(g,S),k=B,h&&(G(h.data())&&h.data(h.gI),k=h.data()),h)&&k&&t.mI(u,v,m,h,16),0<(64&i)&&(k=void 0,k=c?n.getActualStyle(g,S,3):(h=n.vI(g,S)||B,n.getCompositeStyle(g,S,3,h,f,l[m])),T=I,k&&k.toJSON&&(T=JSON.stringify(k.toJSON(3,!0))),t.mI(u,v,m,T,64)),T=n.Ut.pI,0<(4&i)&&T&&t.mI(u,v,m,T.get(g,S),4),0<(128&i)&&t.mI(u,v,m,n.getTag(g,S,3),128),0<(256&i)&&t.mI(u,v,m,n.getBindingPath&&n.getBindingPath(g,S,3),256),0<(1024&i)&&t.mI(u,v,m,n.getHyperlink&&n.getHyperlink(v,m,3),1024),0<(2048&i)&&t.mI(u,v,m,n.getDefaultValue(g,S,3),2048),0<(4096&i)&&t.mI(u,v,m,n.getAltText(v,m,3),4096)}}},l.prototype.bI=function(){return this.Q5},l.prototype.mI=function(t,e,n,i,r){!G(i)&&t&&(t[e]===I&&(t[e]=[]),t[e][n]===I&&(t[e][n]={}),t[e][n][s[r]]=i)},l.prototype.yI=function(t){var e,n,i,r,o,a,s,u,c;if(t)for(n=(e=this).Q5,i=0,r=t.length;i<r;i++)if(o=t[i])for(a=0,s=o.length;a<s;a++)(u=o[a])&&(n[i]||(n[i]=[]),(c=n[i][a])?e.wI(u,c)&&(n[i][a]=I):n[i][a]=u)},l.prototype.wI=function(t,e){var n,i,r,o,a,n=this.W5,i=[];for(256&n&&i.push(s[256]),4&n&&i.push(s[4]),2&n&&i.push(s[2]),16&n&&i.push(s[16]),64&n&&i.push(s[64]),128&n&&i.push(s[128]),1024&n&&i.push(s[1024]),2048&n&&i.push(s[2048]),4096&n&&i.push(s[4096]),1&n&&i.push(s[1]),r=0,o=i.length;r<o;r++)if(t[a=i[r]]!==e[a])return!1;return!0},l.prototype.MI=function(){var t,e,n,i,r,o,a,s,u,c,t=this,e=t.Z5.row,n=t.Z5.col,i=t.Q5,r=t.K5;if(!(r&&0<r.length)){for(r=[],e=-1===e?0:e,n=-1===n?0:n,o=0,a=i.length;o<a;o++)if(s=i[o])for(u=0,c=s.length;u<c;u++)s[u]&&r.push({row:o+e,col:u+n});t.K5=r}return r},oe=l,t.ChangedCells=oe,P.CI=oe,P.SI=function(t,e,n,i,r,o,a,s,u,c){t&&(e<0&&(e=0,i=N(t)),n<0&&(n=0,r=R(t)),t.SI(e,n,i,r,o,a,I,I,s,u,c))},P.TI=function(t){return"changes"+t},P.AI=function(t){return t&&(0!==t.length||!w.isEmptyObject(t))},P.lM=function(e){var t,n,n=e.sheetName;return"string"==typeof n?t=[n]:Array.isArray(n)&&(t=n),!!t&&t.every(function(t){var t,t,t=P.TI(t),t=e[t];return t&&0===t.length&&w.isEmptyObject(t)})},P.startTransaction=function(t,e){nn(t,e.sheetName).forEach(function(t){t.Ut.startTransaction()})},P.endTransaction=function(t,n){nn(t,n.sheetName).forEach(function(t){var e=P.TI(t.name());n[e]=t.Ut.endTransaction()})},P.undoTransaction=function(t,n){nn(t,n.sheetNames||n.sheetName).forEach(function(t){var e=P.TI(t.name());t.Ut.undo(n[e]),t.zw()})},P.II=function(t){t.forEach(function(t){var t=rn(t);t&&t.Ut.startTransaction()})},P.startTransactionAll=function(t){P.II(t)},P.xI=function(t,i){var r=[];t.forEach(function(t){var t,e,n,t,t=rn(t);t&&(e=t.name(),n=P.TI(e),t=t.Ut.endTransaction())&&(i[n]=t,r.push(e))}),i.sheetNames=r},P.endTransactionAll=function(t,e){P.xI(t,e)},P.NI=function(t,n){t.forEach(function(t){var t,e,t=rn(t);t&&(t.Nj=!0,e=P.TI(t.name()),t.Ut.undo(n[e]),t.Nj=!1)})},P.ActionBase=i.ActionBase,Se=i.ActionBase,n(an,Se),an.prototype.execute=function(){var t,e,n,i,r,o,a,s,u,c,f,l,h,d,v,g,m,p,S,t=this,e=!1;if(t.canExecute()&&(n=t.tT,i=t.Mf,r=n.columns,o=n.rowHeader,a=r&&r.length,i)&&0<a){if(s=t.kI(r),u={sheet:i,sheetName:i.name(),colList:s,header:o,cancel:!1},i.ki(C,u),!0===u.cancel)return e;n.DI=!0,i.Ut.startTransaction(),t.X5(i);try{for(c=2,f=3,l=R(i,o?2:3),i.Ab=n.Ab,h=n.size,d=0;d<a;d++)for(g=(v=r[d]).firstCol,m=v.lastCol,p=g;p<=m;p++)0<=p&&p<l&&(o&&i.getColumnResizable(p,2)&&h!==i.Do(p,2)?(i.setColumnWidth(p,h,2),e=!0):!o&&i.getColumnResizable(p,3)&&h!==i.Do(p,3)&&(i.setColumnWidth(p,h,3),e=!0))}finally{F(i),w[w.sd]({jS:i.parent}),i.ki(y,{sheet:i,sheetName:i.name(),colList:s,header:n.rowHeader}),U(i),n[S=P.TI(i.name())]=i.Ut.endTransaction()}i.ow()}return e},an.prototype.undo=function(){var t,e,n,i,r,o,a,a,r,s,t=this,e=!1;if(t.canUndo()&&(n=t.tT,i=t.Mf,r=n.columns,o=n.rowHeader,a=r&&r.length,i)&&0<a){if(a=t.kI(r),r={sheet:i,sheetName:i.name(),colList:a,header:o,cancel:!1},i.ki(C,r),!0===r.cancel)return e;t.X5(i);try{s=P.TI(i.name()),i.Ut.undo(n[s]),i.Zw=!0,i.showCell(i.getActiveRowIndex(),i.getActiveColumnIndex(),1,1),i.Ab=n.Ab,e=!0}finally{F(i),w[w.sd]({jS:i.parent}),i.ki(y,{sheet:i,sheetName:i.name(),colList:a,header:n.rowHeader}),U(i)}}return e},an.prototype.kI=function(t){for(var e,n,i,r,o,a,s,e=[],n=0,i=t.length;n<i;n++)for(o=(r=t[n]).firstCol,a=r.lastCol,s=o;s<=a;s++)e.push(s);return e},an.prototype.canUndo=function(){return this.tT.DI},ae=an,we=i.ActionBase,n(sn,we),sn.prototype.execute=function(){var t,e,n,i,r,o,a,s,u,c,f,l,h,d,v,g,m,p,S,t=this,e=!1;if(t.canExecute()&&(n=t.Mf,o=(r=(i=t.tT).rows)&&r.length,n)&&0<o){if(a=t._I(r),s={sheet:n,sheetName:n.name(),rowList:a,header:i.columnHeader,cancel:!1},n.ki(k,s),!0===s.cancel)return e;i.DI=!0,n.Ut.startTransaction(),t.X5(n);try{for(u=3,c=1,l=N(n,(f=i.columnHeader)?1:3),n.Tb=i.Tb,h=i.size,d=0;d<o;d++)for(g=(v=r[d]).firstRow,m=v.lastRow,p=g;p<=m;p++)0<=p&&p<l&&(f&&n.getRowResizable(p,1)&&h!==n._o(p,1)?(n.setRowHeight(p,h,1),e=!0):!f&&n.getRowResizable(p,3)&&h!==n._o(p,3)&&(n.setRowHeight(p,h,3),e=!0))}finally{F(n),w[w.sd]({jS:n.parent}),n.ki(T,{sheet:n,sheetName:n.name(),rowList:a,header:i.columnHeader}),U(n),i[S=P.TI(n.name())]=n.Ut.endTransaction()}n.tw()}return e},sn.prototype.undo=function(){var t,e,n,i,r,o,o,r,a,t=this,e=!1;if(t.canUndo()&&(n=t.Mf,o=(r=(i=t.tT).rows)&&r.length,n)&&0<o){if(o=t._I(r),r={sheet:n,sheetName:n.name(),rowList:o,header:i.columnHeader,cancel:!1},n.ki(k,r),!0===r.cancel)return e;t.X5(n);try{a=P.TI(n.name()),n.Ut.undo(i[a]),n.Ww=!0,n.showCell(n.getActiveRowIndex(),n.getActiveColumnIndex(),1,1),n.Tb=i.Tb,e=!0}finally{F(n),w[w.sd]({jS:n.parent}),n.ki(T,{sheet:n,sheetName:n.name(),rowList:o,header:i.columnHeader}),U(n)}}return e},sn.prototype._I=function(t){for(var e,n,i,r,o,a,s,e=[],n=0,i=t.length;n<i;n++)for(o=(r=t[n]).firstRow,a=r.lastRow,s=o;s<=a;s++)e.push(s);return e},sn.prototype.canUndo=function(){return this.tT.DI},se=sn,be=i.ActionBase,n(un,be),un.prototype.execute=function(){var t,e,n,i,r,o,a,s,u,c,f,l,h,d,v,t=this,e=!1,n=t.tT,i=t.Mf,r=n.columns,o=n.rowHeader,a=t.kI(r);if(i&&r&&0<r.length){if(s={sheet:i,sheetName:i.Zc,colList:a,header:o,cancel:!1},i.ki(C,s),!0===s.cancel)return e;i.Ut.startTransaction(),t.X5(i);try{u=Z(n.size),c=o?2:3,f=r[0].firstCol,d=h=l=void 0,u!==(l=i.Do(f,c))&&(h=u-l,d=i.O5(f,c),i.setColumnWidth(f,u,c),i.setColumnWidth(d,i.Do(d,c)-h,c)),e=!0}finally{F(i),w[w.sd]({jS:i.parent}),i.ki(y,{sheet:i,sheetName:i.Zc,colList:a,header:n.rowHeader}),U(i),n[v=P.TI(i.name())]=i.Ut.endTransaction()}}return e},un.prototype.undo=function(){var t,e,n,i,r,e,r,o,t=this.Mf,e=this.tT.columns,n=!1,i=this.tT,r=this.tT.rowHeader,e=this.kI(e),r={sheet:t,sheetName:t.Zc,colList:e,header:r,cancel:!1};if(t.ki(C,r),!0!==r.cancel){this.X5(t);try{o=P.TI(t.name()),t.Ut.undo(i[o]),n=!0}finally{F(t),w[w.sd]({jS:t.parent}),t.ki(y,{sheet:t,sheetName:t.Zc,colList:e,header:i.rowHeader}),U(t)}}return n},un.prototype.kI=function(t){for(var e,n,i,r,o,a,s,e=[],n=0,i=t.length;n<i;n++)for(o=(r=t[n]).firstCol,a=r.lastCol,s=o;s<=a;s++)e.push(s);return e},ue=un,Ce=i.ActionBase,n(cn,Ce),cn.prototype.execute=function(){var t,e,n,i,r,o,a,s,u,c,f,l,h,d,v,t=this,e=!1,n=t.tT,i=t.Mf,r=n.rows,o=n.columnHeader,a=t._I(r);if(i&&r&&0<r.length){if(s={sheet:i,sheetName:i.Zc,rowList:a,header:o,cancel:!1},i.ki(k,s),!0===s.cancel)return e;i.Ut.startTransaction(),t.X5(i);try{u=Z(n.size),c=o?1:3,f=r[0].firstRow,d=h=l=void 0,u!==(l=i._o(f,c))&&(h=u-l,d=i.j5(f,c),i.setRowHeight(f,u,c),i.setRowHeight(d,i._o(d,c)-h,c)),e=!0}finally{F(i),w[w.sd]({jS:i.parent}),i.ki(T,{sheet:i,sheetName:i.Zc,rowList:a,header:n.columnHeader}),U(i),n[v=P.TI(i.name())]=i.Ut.endTransaction()}}return e},cn.prototype.undo=function(){var t,e,n,i,r,e,r,o,t=this.Mf,e=this.tT.rows,n=!1,i=this.tT,r=this.tT.columnHeader,e=this._I(e),r={sheet:t,sheetName:t.Zc,rowList:e,header:r,cancel:!1};if(t.ki(k,r),!0!==r.cancel){this.X5(t);try{o=P.TI(t.name()),t.Ut.undo(i[o]),n=!0}finally{F(t),w[w.sd]({jS:t.parent}),t.ki(T,{sheet:t,sheetName:t.Zc,rowList:e,header:i.columnHeader}),U(t)}}return n},cn.prototype._I=function(t){for(var e,n,i,r,o,a,s,e=[],n=0,i=t.length;n<i;n++)for(o=(r=t[n]).firstRow,a=r.lastRow,s=o;s<=a;s++)e.push(s);return e},ce=cn,ye=i.ActionBase,n(h,ye),h.prototype.canExecute=function(){var t=this.tT;return this.Mf&&t.columns&&0<t.columns.length},h.prototype.execute=function(){var t,e,n,i,r,o,a,s,u,c,f,l,h,d,v,g,m,t=this,e=!1;if(t.canExecute()){if(n=t.tT,i=t.Mf,r=t.nT,o=t.kI(n.columns),a=2===r,s={sheet:i,sheetName:i.name(),colList:o,header:a,cancel:!1},i.ki(C,s),!0===s.cancel)return e;for(n.DI=!0,c=(u=R(i,r))-1,l=void(f=0),h=0,d=n.columns.length;h<d;h++)c=(l=n.columns[h].col)<c?l:c,f=f<l?l:f;M.Be.Ll(i,0,c,N(i)-1,f),i.Ut.startTransaction(),t.X5(i);try{for(v=void 0,h=0,d=n.columns.length;h<d;h++)0<=(g=n.columns[h].col)&&g<u&&i.getColumnResizable(g,r)&&((v=t.qf(g))===i.getColumnWidth(g,r)&&G(i.getColumnWidth(g,r,!0))||(i.setColumnWidth(g,v,r),e=!0))}finally{M.Be.dl(),F(i),w[w.sd]({jS:i.parent}),i.ki(y,{sheet:i,sheetName:i.name(),colList:o,header:a}),U(i),n[m=P.TI(i.name())]=i.Ut.endTransaction()}}return e},h.prototype.undo=function(){var t,e,n,i,r,o,r,a,s,t=this,e=!1;if(t.canUndo()){if(n=t.tT,i=t.Mf,r=t.nT,o=t.kI(n.columns),r=2===r,a={sheet:i,sheetName:i.name(),colList:o,header:r,cancel:!1},i.ki(C,a),!0===a.cancel)return e;t.X5(i);try{s=P.TI(i.name()),i.Ut.undo(n[s]),e=!0}finally{F(i),w[w.sd]({jS:i.parent}),i.ki(y,{sheet:i,sheetName:i.name(),colList:o,header:r}),U(i)}}return e},h.prototype.kI=function(t){for(var e,n,i,e=[],n=0;n<t.length;n++)i=t[n],e.push(i.col);return e},h.prototype.qf=function(t){return M.mt.qf(t,this.Mf,this.nT,this.tT.autoFitType)},h.prototype.canUndo=function(){return this.tT.DI},fe=h,Me=i.ActionBase,n(v,Me),v.prototype.canExecute=function(){var t=this.tT;return this.Mf&&t.rows&&0<t.rows.length},v.prototype.execute=function(){var t,e,n,i,r,o,a,s,u,c,f,l,h,d,t=this,e=!1;if(t.canExecute()){if(n=t.tT,i=t.Mf,r=t._I(n.rows),o=t.nT,a=1===t.nT,s={sheet:i,sheetName:i.name(),rowList:r,header:a,cancel:!1},i.ki(k,s),!0===s.cancel)return e;n.DI=!0,i.Ut.startTransaction(),t.X5(i);try{for(u=N(i,o),c=void 0,f=0,l=n.rows.length;f<l;f++)0<=(h=n.rows[f].row)&&h<u&&i.getRowResizable(h,o)&&((c=t.e0(h))===i.getRowHeight(h,o)&&G(i.getRowHeight(h,o,!0))||(i.setRowHeight(h,c,o),e=!0))}finally{F(i),w[w.sd]({jS:i.parent}),i.ki(T,{sheet:i,sheetName:i.name(),rowList:r,header:a}),U(i),n[d=P.TI(i.name())]=i.Ut.endTransaction()}}return e},v.prototype.undo=function(){var t,e,n,i,r,o,a,s,t=this,e=!1;if(t.canUndo()){if(n=t.tT,i=t.Mf,r=t._I(n.rows),o=1===t.nT,a={sheet:i,sheetName:i.name(),rowList:r,header:o,cancel:!1},i.ki(k,a),!0===a.cancel)return e;t.X5(i);try{s=P.TI(i.name()),i.Ut.undo(n[s]),e=!0}finally{F(i),w[w.sd]({jS:i.parent}),i.ki(T,{sheet:i,sheetName:i.name(),rowList:r,header:o}),U(i)}}return e},v.prototype._I=function(t){for(var e,n,i,r,e=[],n=0,i=t.length;n<i;n++)r=t[n],e.push(r.row);return e},v.prototype.e0=function(t){return M.mt.e0(t,this.Mf,this.nT,this.tT.autoFitType)},v.prototype.canUndo=function(){return this.tT.DI},le=v,ke=i.ActionBase,n(g,ke),g.prototype.canExecute=function(){var t,e,t,n,i,r,o,a,s,t=this,e=t.Mf,t=t.tT,n=t.ranges,i=t.row,r=t.col,o={lockErrorMsg:e.FT(),sheetArea:t.sheetArea,invalidType:13};if(n){for(a=0;a<n.length;a++)if(s=n[a],!e.PT(s.row,s.col,E(s),H(s),o))return!1}else if(!e.PT(i,r,1,1,o))return!1;return!0},g.prototype.EI=function(t){var e,n,i,r,o,a,s,e,n=this.tT,i=n.ranges;if(i)for(r=0;r<i.length;r++)for(a=(o=i[r]).row;a<o.row+E(o);a++)for(s=o.col;s<o.col+H(o);s++)t(a,s);else t(n.row,n.col)},g.prototype.undo=function(){var t,n,e,i,t=this;if(t.canUndo()){n=t.Mf,e=t.tT,t.X5(n,!0);try{n.D3(K+re,function(t,e){fn(n,e)}),i=P.TI(n.name()),n.Ut.undo(e[i])}catch(t){return!1}finally{n._3(K+re),t.q5(n,!0)}return!0}return!1},g.prototype.execute=function(){var t,e,n,i,t=this,e=!1;if(t.canExecute()){i=(n=t.Mf).parent.i4(),P.II(i),t.X5(n,!0);try{n.D3(K+re,function(t,e){fn(n,e)}),t.tT.applyResult=t.jI(),e=!0}catch(t){e=!1}finally{n._3(K+re),P.xI(i,t.tT),t.q5(n,!0)}}return e},g.prototype.OI=function(t,e){return t+"_"+e},g.prototype.RI=function(t){var e,n,i,r,o,a,s,u,c,r,s,f,r,s,l,e=this,n=0,i=e.Mf,r=e.tT,o=r.row,a=r.col,s=r.sheetArea,u=r.newValue,c=!r.hasOwnProperty("autoFormat")||r.autoFormat;if(x&&!0!==r.ignoreFormula&&(0,M.kf)(u)){if(i.getDataValidator&&i.getDataValidator(o,a,s)&&""!==(r="="===u[0]?u.substring(1):u)&&r!==i.getFormula(o,a,s)&&(s=i.op())){f=void 0;try{f=s.parse(i.Uw(),r,0<=o?o:0,0<=a?a:0,!0)}catch(t){n=i.GA(o,a,u)}f&&(r=s.evaluateParsedFormula(i.Uw(),f,{row:o,col:a}),i.isValid)&&!i.isValid(o,a,r,!1)&&(n=i.GA(o,a,r))}}else s=e.LI(o,a,u,c,t),(l=!i.isValid||i.isValid(o,a,s,!1))||(n=i.GA(o,a,s),i.rt.FI=!0);return n},g.prototype.jI=function(){var t,i,e,r,o,n,a,s,u,n,c,f,l,h,d,v,g,m,l,p,S,w,w,l,S,e,d,t=this,i=t.Mf,e=t.tT,r=e.sheetArea,o=e.newValue,n=e.ignoreValidate,a={GI:!1,UI:!1,_autoFormatter:I,quotePrefix:I},s=0;if(!0===n||1!==(s=t.RI(a))&&2!==s){if(n=!e.hasOwnProperty("autoFormat")||e.autoFormat,c=0<=(c=e.row)?c:0,f=0<=(f=e.col)?f:0,l=x&&L&&L.Parser,g=i.parent,!(m=i.NMi&&3===r)&&l)if(v=i.op(),l=g&&g.options.allowUserEditFormula,S=!1,"@"!==(p=i.getFormatter(c,f,r))&&l&&v&&!0!==e.ignoreFormula&&(0,M.kf)(o)){"="===o[0]&&(o=o.substring(1),S=!0);try{if(w={row:c,col:f,sheetArea:r,text:o,isAllow:!0},b.Worksheet.et(i,"applyEditingSetFormula",w),w.isAllow){if(e.ranges&&1===e.endEditType)return d=e.ranges[0],i.setArrayFormula(d.row,d.col,E(d),H(d),o,r),s;h=v.parse(i.Uw(),o,c,f,!0)}}catch(t){if(!g||!g.options.allowInvalidFormula)throw i.jT(0,"string"==typeof t?t:t.message),t;o=S?"="+o:o}}else e.ranges&&1===e.endEditType&&(d=e.ranges[0],i.getRange(d.row,d.col,E(d),H(d),r).clear(1));h||(o&&"'"===o[0]?t.HI(c,f,!0,a):t.HI(c,f,I,a),u=t.LI(c,f,o,n,a)),t.EI(function(e,n){if(h)try{var t=v.unparse(i.Uw(r),h,e,n);i.zI(e,n,t,h,I,r),i.ki(M.Events.UserFormulaEntered,{sheet:i,sheetName:i.name(),row:e,col:n,isCircularReference:i.VI(e,n),formula:t}),g&&g.options.formulaFormatHint&&(0,D.Fue)(i,g,h,c,f)}catch(t){throw i.jT(0,"string"==typeof t?t:t.message),t}else{try{i.hasFormula&&i.hasFormula(e,n,r)&&i.setFormula(e,n,B,r)}catch(t){throw i.jT(0,"string"==typeof t?t:t.message),t}try{i.YI(e,n,u,r),"string"!=typeof u&&null!==u||b.Worksheet.et(i,"setHyperlinkWhenEditing",{url:u,row:e,col:n,sheetArea:r})}catch(t){i.setValue(e,n,o,r)}}}),l=a.UI,((w=a.GI)||l)&&(e="string"==typeof(S=i.vI(c,f,r)),S&&!e||(d=new A.Style,e&&(d.parentName=S),S=d),w&&!m&&(S._autoFormatter=a._autoFormatter),l&&(S.quotePrefix=a.quotePrefix),i.setStyle(c,f,S,r))}return s},g.prototype.canUndo=function(){return 0===this.tT.applyResult},g.prototype.LI=function(t,e,n,i,r){var o,a,o,s,a,t,e,s,n,o=this,a=o.Mf,o=o.tT,s=o.ignoreFormatting,a=a.getActualStyle(t,e),t={},e="string"!=typeof n||s?n:n&&"'"===n[0]?n.substring(1):M.mt.Xf(a,n,i,t,o.editingFormatter);return r.quotePrefix?(r._autoFormatter=I,r.GI=!0):(s=t.value,i&&s&&((e===(n=B)||"General"===s.formatString())&&a._autoFormatter||(s.isAuto=!0,n=s),n)&&(r.GI=!0,r._autoFormatter=n)),e},g.prototype.HI=function(t,e,n,i){var r,o,t,e,a,r,o,t=this.Mf.vI(t,e),e="string"==typeof t;t&&!e||(a=new A.Style,e&&(a.parentName=t),t=a),t.quotePrefix!==n&&(i.UI=!0,i.quotePrefix=n)},he=g,Te=i.ActionBase,n(dn,Te),dn.prototype.canUndo=function(){return!!this.tT.oldName},dn.prototype.canExecute=function(){var t,e,t=this,e=t.tT;return t.Mf&&e.name&&e.name!==e.oldName},dn.prototype.execute=function(){var t,e,n,i,r,o,a,s,s,u,c,t=this,e=t.Mf,n=t.tT,i=n.name,r=!1;return t.canExecute()&&(o=e.name(),e.ki(M.Events.SheetNameChanging,s={sheet:e,oldValue:o,newValue:a=i,cancel:!1}),!1===s.cancel)&&(s=e.parent.sheets,P.II(s),u=null,e.parent.options&&e.parent.options.saveChangesForSheet&&hn(u=e.getCrossSheetReferences(),!0),n.oldName=o,t.X5(e,!0),He(e),e.ub(i),ln(e),u&&hn(u,!1),P.xI(s,n),r=!0,n.sheetName=i,Ue(e,!1),t.q5(e,!0),e.ki(M.Events.SheetNameChanged,c={sheet:e,oldValue:o,newValue:a})),r},dn.prototype.undo=function(){var t,e,n,i,r,o,o,a,t=this;return!(!t.canUndo()||(e=t.Mf,i=(n=t.tT).name,r=n.oldName,e.ki(M.Events.SheetNameChanging,o={sheet:e,oldValue:i,newValue:r,cancel:!1}),!1!==o.cancel)||(t.X5(e,!0),He(e),o=P.TI(e.name()),e.Ut.undo(n[o]),ln(e),n.sheetName=n.oldName,Ue(e,!1),t.q5(e,!0),e.ki(M.Events.SheetNameChanged,a={sheet:e,oldValue:i,newValue:r}),0))},de=dn,xe=i.ActionBase,n(vn,xe),vn.prototype.canExecute=function(){var t,e,t=this,e=M.mt.ige(t.tT.zoomFactor);return t.Mf&&t.Mf.parent.options.allowUserZoom&&t.Mf.zoom()!==e},vn.prototype.execute=function(){var t,e,n,t,i,r,o,a,t=this,e=t.tT,n=!1;return t.canExecute()&&(i=(t=t.Mf).Ut,r=e.zoomFactor,o=e.oldZoomFactor,i.startTransaction(),n=gn(t,r),t.Oj(r,o),i.ZI(["zoomChanged",o,r]),e[a=P.TI(t.name())]=t.Ut.endTransaction()),n},vn.prototype.undo=function(){var t,e,t=this.Mf;if(this.canUndo())return!(!0===t.isEditing()&&!t.endEdit()||(t.suspendPaint(),e=P.TI(t.name()),t.Ut.undo(this.tT[e]),t.resumePaint(),0))},ve=vn,Ge=i.ActionBase,n(m,Ge),m.prototype.execute=function(){var t,e,n,i,r,o,o,n,a,s,o,r,r,r,t=this,e=t.Mf;t.canExecute()&&e&&(n=t.tT.clearRange,i=e.tables&&e.tables.WI&&e.tables.WI(n.row,n.col,n.rowCount,n.colCount),r=!!e.isReportTemplateSheet,e.isDirtySuspended()||(o=1027|(r?256:0),t.tT.K5=new oe(e,e.JS(n),o)),i&&0<i.length&&(t.tT.tableNames=i),n=(o=e.JS(n)).row,a=o.col,s=E(o),0<(o=H(o)))&&0<s&&(e.Ut.startTransaction(),t.X5(e),e.QI=!0,r=p.StorageType.data|p.StorageType.hyperlink|(r?p.StorageType.bindingPath:0),e.KI(n,a,s,o,3,r,!0),t.q5(e),e.QI=!1,r=P.TI(e.name()),t.tT[r]=e.Ut.endTransaction(),r=t.tT.K5,P.SI(e,n,a,s,o,r?r.MI():[],2,i))},m.prototype.canExecute=function(){var t=this.tT.clearRange;return this.Mf&&this.Mf.PT(t.row,t.col,E(t),H(t),{sheetArea:p.SheetArea.viewport})},m.prototype.canUndo=function(){var t,t;if(this.Mf)return t=P.TI(this.Mf.name()),t=this.tT[t],P.AI(t)},m.prototype.undo=function(){var t,e,n,i,i,t=this,e=t.Mf;if(t.canUndo()&&e&&0<H(n=e.JS(t.tT.clearRange))&&0<E(n)){t.X5(e),e.QI=!0;try{i=P.TI(e.name()),e.Ut.undo(t.tT[i])}finally{t.q5(e),e.QI=!1}return i=t.tT.K5,P.SI(e,n.row,n.col,E(n),H(n),i?i.MI():[],2,t.tT.tableNames,!0),!0}return!1},m.prototype.toJSON=function(){var t=this;return{sheetName:t.Mf?t.Mf.name():"",command:t.tT}},m.prototype.fromJSON=function(t){var e,n,i,e=this,n=t.sheetName;e.Mf&&!G(n)&&(i=e.Mf.parent,e.Mf=i.getSheetFromName(n)),e.tT=t.command},ge=m,P.ClearRangeValueUndoAction=ge,Be=i.ActionBase,n(mn,Be),mn.prototype.canExecute=function(){var t,e,n,t=this.tT.cachedActions;if(t){for(e=0;e<t.length;e++)if(!(n=t[e]).canExecute())return!1;return!0}return!1},mn.prototype.execute=function(){var t,e,n,i,r,t=this;if(t.canExecute()&&(e=t.tT.cachedActions,n=t.Mf,e)){for(t.X5(n,!0),i=0;i<e.length;i++)(r=e[i]).execute();return t.q5(n,!0),!0}return!1},mn.prototype.canUndo=function(){var t,e,n,t=this.tT.cachedActions;if(t){for(e=0;e<t.length;e++)if(!(n=t[e]).canUndo())return!1;return!0}return!1},mn.prototype.undo=function(){var t,e,n,i,r,r,t=this,e=t.tT.cachedActions;if(t.canUndo()){for(n=t.Mf,i=e.length-1;0<=i;i--)if(r=e[i],t.X5(n,!0),r=r.undo(),t.q5(n,!0),!r)return!1;return!0}return!1},me=mn,P.JI=me},"./dist/core/worksheet/worksheet-border.js":function(G,t,e){"use strict";var n,B,i,V,e,Y,K,I,v,P,z,W,h,J,R,o,Z,H,w,b,C,y,U,g,m,p,S,M,k,T,F,i,f,u,_,l,A,E,L,D,j,O,Q,X,q;function r(){}function $(t,e,n,i,r,o,a,s){var u,o,c,f,u=j.call(this)||this,o=Z(s)||1===s?o:h(o*s),c;return o%2||(t!==n?(e-=.5,i-=.5):(t-=.5,n-=.5)),(f=u).Ix=t,f.xx=e,f.Nx=n,f.Dx=i,f._x=r,f.Ex=o,f.jx=a,f._zoomFactor=s,u}function a(t,e,n,i,r,o,a,s,u){var c,o,f,l,c=O.call(this)||this,o=Z(u)||1===u?o:h(o*u),f;return o%2||(t!==n?(e-=.5,i-=.5):(t-=.5,n-=.5)),(l=c).Ix=t,l.xx=e,l.Nx=n,l.Dx=i,l._x=r,l.Ex=o,l.Ox=a,l.jx=s,l._zoomFactor=u,c}function tt(t,e,n,i,r,o,a,s,u){var c,f,c=Q.call(this)||this;return o?(--t,--n):(--e,--i),(f=c).Ix=t,f.xx=e,f.Nx=n,f.Dx=i,f._x=r,f.Rx=o,f.Ex=1,f.Bx=a,f.Lx=s,f.jx=u,c}function s(t,e,n,i,r,o,a){var s,u,s=X.call(this)||this,u=s;return u.Ix=t,u.xx=e,u.Nx=n,u.Dx=i,u._x=r,u.Fx=o,u.jx=a,u.Px=new f(u.Ix,u.xx,u.Nx,u.Dx,r,1,a),u.Gx=null,s}function c(t,e,n,i,r,o){var a,s,u,c,a=q.call(this)||this,s=a,u=0,c=0;return t===n&&(u=1),e===i&&(c=1),t!==n&&e!==i?o?(s.Px=new f(t-(u=2),e,n-u,i,r,1,o),s.Gx=new f(t+u,e,n+u,i,r,1,o)):(c=u=2,n<t?(s.Px=new l(t-u,e,n,i-c,r,!1,o),s.Gx=new l(t,e+c,n+u,i,r,!1,o)):(s.Px=new l(t,e+c,n-u,i,r,!0,o),s.Gx=new l(t+u,e,n,i-c,r,!0,o))):(s.Px=new f(t-u,e-c,n-u,i-c,r,1,o),s.Gx=new f(t+u,e+c,n+u,i+c,r,1,o)),s.jx=o,s._x=r,s.Ex=1,a}function N(t,e,n,i,r,o,a,s){switch(void 0===s&&(s=1),o=o!==Y&&o!==K?o:1){case 1:return new f(t,e,n,i,r,1,a);case 2:return new f(t,e,n,i,r,2,a,s);case 5:return new f(t,e,n,i,r,3,a,s);case 3:return new u(t,e,n,i,r,1,[3,1],a);case 9:return new u(t,e,n,i,r,1,[8,2,2,2],a);case 4:return new u(t,e,n,i,r,1,[2,2],a);case 11:return new u(t,e,n,i,r,1,[9,3,3,3,3,3],a);case 13:return new _(t,e,n,i,r,t!==n,[11,1,5,1],[10,2,4,2],a);case 10:return new u(t,e,n,i,r,2,[9,3,3,3],a,s);case 12:return new u(t,e,n,i,r,2,[9,3,3,3,3,3],a,s);case 8:return new u(t,e,n,i,r,2,[9,3],a,s);case 7:return new u(t,e,n,i,r,1,[1],a);case 6:return new A(t,e,n,i,r,a)}return K}function x(){}function d(t,e,n,i){var r=this;r.Ux=!1,r.Hx=!1,r.Mf=t,r.nT=i,r.zx=e,r.Vx=n}n=this&&this.__extends||(D=function(t,e){return(D=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(t,e){t.__proto__=e}:function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])}))(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}D(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),Object.defineProperty(t,"__esModule",{value:!0}),t.Yx=t.Zx=void 0,B=e("./dist/core/worksheet/style.js"),i=e("./dist/core/util/domUtil.js"),V=e("./dist/core/core.enum.js"),e=e("Common"),Y=void 0,K=null,I=Math.sqrt,v=Math.pow,P=Math.min,z=Math.abs,W=Math.tan,h=Math.ceil,J=Math.PI,R=i.GC$.inherit,o=i.GC$.isEmptyObject,Z=e.Common.lt.ht,g=w=0,m=b=1,p=C=2,S=y=3,M=4,k=5,T=6,F=7,r.prototype.Wx=function(t){var e=this;0===t._orientation?(t.Kx&&(e.Nx+=t.Kx),t.Jx&&(e.Ix+=t.Jx)):(t.Kx&&(e.Dx+=t.Kx),t.Jx&&(e.xx+=t.Jx))},r.prototype._e=function(t){var e=this._x||"#9eb6ce",n=this.Ex,i=t.lineWidth,r=t.strokeStyle;i===n&&r===e||(i!==n&&(t.lineWidth=n),r!==e&&(t.strokeStyle=e)),this.Xx(t)},r.prototype.Xx=function(t){var e,n,i,n,i,e=this,n=e.Ix===e.Nx,i=e.xx===e.Dx;n&&i||(n||i?(t.beginPath(),e.qx(t),t.stroke()):(t.save(),n=Math.min(e.Ix,e.Nx),i=Math.min(e.xx,e.Dx),t.rect(n,i,Math.abs(e.Nx-e.Ix),Math.abs(e.Dx-e.xx)),t.clip(),t.beginPath(),e.qx(t),t.stroke(),t.beginPath(),t.restore()))},r.prototype.qx=function(t){var e=this;t.moveTo(e.Ix,e.xx),t.lineTo(e.Nx,e.Dx)},n($,j=i=r),f=$,n(a,O=i),a.prototype.qx=function(t){var e=this;a.Dn(t,e.Ix,e.xx,e.Nx,e.Dx,e.Ox)},a.Dn=function(t,e,n,i,r,o){var a,s,u,c,f,l,h,d,a=I(v(i-e,2)+v(r-n,2)),u=(i-e)/a,c=(r-n)/a,f=0,l=0;for(o=o&&o.length?o:[4,4];f<a;)f+=h=P(o[l%o.length],a-f),(d=++l%2)&&t.moveTo(e,n),e+=h*u,n+=h*c,d&&t.lineTo(e,n)},u=a,n(tt,Q=i),tt.prototype.qx=function(t){var e,n,i,e=this,n=e.Rx?0:1,i=e.Rx?1:0;u.Dn(t,e.Ix-n,e.xx-i,e.Nx-n,e.Dx-i,e.Bx),u.Dn(t,e.Ix,e.xx,e.Nx,e.Dx,e.Lx)},_=tt,n(s,X=i),s.prototype.Xx=function(t){this.Px&&this.Px.Xx(t),this.Gx&&this.Gx.Xx(t)},s.prototype.Wx=function(t){var e=this;e.Gx?(t.Jx&&e.Px&&e.Px.Wx(t),t.Kx&&e.Gx.Wx(t)):e.Px&&e.Px.Wx(t)},s.prototype.$x=function(t){var e,n,t,i,r,o,a,s,u,e=this;t&&t.severX&&t.severY?(n=t.severX||0,t=t.severY||0,n=e.Fx?n:-n,s=(i=parseInt(e.Ix+(e.Nx-e.Ix)/2,10))+n,u=(r=parseInt(e.xx+(e.Dx-e.xx)/2,10))+t,e.Px=new f(e.Ix,e.xx,o=i-n,a=r-t,e._x,1,e.jx),e.Gx=new f(s,u,e.Nx,e.Dx,e._x,1,e.jx)):(e.Px=new f(e.Ix,e.xx,e.Nx,e.Dx,e._x,1,e.jx),e.Gx=null)},l=s,n(c,q=i),c.prototype.Xx=function(t){this.Px.Xx(t),this.Gx.Xx(t)},c.prototype.Wx=function(t){var e=this;t.tN?1===t.tN?e.Px.Wx(t):2===t.tN&&e.Gx.Wx(t):(e.Px.Wx(t),e.Gx.Wx(t))},c.prototype.$x=function(){var t,e,n,t,t=this,e={severX:1,severY:1},n=t.Px,t=t.Gx;n.$x(e),t.$x(e)},A=c,t.Zx=N,x.nN=function(t,e,n){var i,i;return t?e?0!=(i=(i=x.eN)[t.style]-i[e.style])||n?i:(e.level||0)-(t.level||0):1:e?-1:0},x.iN=function(t){var t,e,t;if(t){if(t.isGridLine)return 1;if(t.style)return e=B.LineBorder.YC(t.style),t=null==(t=t.line)?void 0:t._zoomFactor,Z(t)?e:h(e*t)}return 0},x.rN=function(t){return t&&6===t.style},x.oN=function(t){return t&&13===t.style},x.aN=function(t,e){return t&&(!e||0<=x.nN(t.style,e.style))?t:e},x.uN=function(t,e){t&&t.line?t.line.Wx(e):t.Wx&&t.Wx(e)},x.sN=function(t,e,n){return t===e?0:t?e?t.isGridLine?e.isGridLine?0:-1:e.isGridLine?1:x.nN(t.style,e.style,n):1:-1},x.cN=function(t){return t&&t.style&&6===t.style.style},x.fN=function(t,e,n,i){var t;return!(!t.style||6!==t.style.style)||(t=0,(t=(t=(t+=e&&e.style&&6===e.style.style?1:0)+(n&&n.style&&6===n.style.style?1:0))+(i&&i.style&&6===i.style.style?1:0))<2)},x.lN=function(t,e,n,i,r,o){var o,n,i,o={_orientation:o?1:0,Jx:0,Kx:0},n=this.sN(t,n),i=this.sN(t,i);0<=n&&0<=i?0===n&&0===i?-1!==r&&1===r&&(o.Kx-=r):-1===r?o.Jx-=r:1===r&&(o.Kx-=2*r):0<=i?(o.tN=2,o.Jx+=r):0<=n&&(o.tN=1,o.Jx+=r),this.uN(t,o)},x.hN=function(t,e,n,i,r,o,a,s,u){var c,s,u,f,l,h,d,d,h,v,o,d,h,i,c={_orientation:s?1:0,tN:u?2:1,Jx:0,Kx:0},s={_orientation:s?1:0,tN:u?1:2,Jx:0,Kx:0},u=1===o?i:r,f=1===a?n:e,l;this.cN(f)?0===(h=this.sN(t,u))?0===(d=this.sN(t,f))?1===a&&(s.Kx-=a):0<d&&(-1===a?s.Jx-=2*a:1===a&&(s.Kx-=2*a)):0<h?0===(d=this.sN(t,f))?1===a&&(s.Kx-=a):0<d&&(-1===a?s.Jx-=2*a:1===a&&(s.Kx-=2*a)):0===(h=this.sN(t,f))?-1===a?c.Jx+=2*a:1===a&&(c.Kx+=2*a):0<h&&(-1===a?c.Jx-=3*a:1===a&&(c.Kx-=3*a)):0<=this.sN(t,u)?-1===a?s.Jx-=2*a:1===a&&(s.Kx-=2*a):-1===a?c.Jx+=2*a:1===a&&(c.Kx+=2*a),d=!1,h=0,this.cN(o=1==(v=1===o?2:1)?i:r)&&0<this.sN(o,t)&&(d=!0,i=x.iN(o),0<this.sN(o,u)?0<i&&(h=1===a&&this.cN(n)?2<=i?2:1:-1===a&&this.cN(e)?3<=i?2:1:3===i?3:2):h=3===i?3:2),d||this.cN(f)||!(f&&!f.isGridLine||o&&!o.isGridLine)||(d=!0,h=-1===a?2:1),d&&(-1===a?(c.Jx+=a*h,s.Jx+=a*h):1===a&&(c.Kx+=a*h,s.Kx+=a*h)),(c.Jx||c.Kx)&&this.uN(t,c),(s.Jx||s.Kx)&&this.uN(t,s)},x.dN=function(t,e,n,i,r,o){var n;0<=this.sN(t,n)&&0<=this.sN(t,i)&&(n={_orientation:o?1:0,Jx:0,Kx:0},-1===r?(n.Jx-=2*r,this.cN(t)&&0<this.sN(e,t)&&--n.Jx):1===r&&(n.Kx-=2*r,this.cN(t))&&0<this.sN(e,t)&&(n.Kx+=1),this.uN(t,n))},x.vN=function(t,e,n,i,r,o){var n,i,n;this.cN(t)&&(n=this.aN(n,i))&&!n.isGridLine&&0<(i=x.iN(n))&&(n={_orientation:o?1:0,Jx:0,Kx:0},-1===r?n.Jx+=i*r:n.Kx+=i*r,n.Jx||n.Kx)&&this.uN(t,n)},x.mN=function(t,e,n,i,r,o,a){var s,u,c,f,n,c=x;(e||n||i)&&(f=c.aN(n,i),c.fN(t,e,n,i)?0<(u=c.sN(f,t,!0))?(s=c.iN(f),c.cN(t)&&(c.cN(n)||c.cN(i)||c.cN(e))||3===s&&c.uN(t,{_orientation:0,Jx:1})):f&&u<0?0<(u=c.sN(t,e,!0))?3===(s=c.iN(f))||2===s?c.uN(t,{_orientation:0,Jx:-2}):1===s&&c.uN(t,{_orientation:0,Jx:-1}):0!==u&&0<c.sN(e,f,!0)&&3===(s=c.iN(f))&&c.uN(t,{_orientation:0,Jx:1}):0===u&&(!e||0<c.sN(t,e,!0))&&(3===(s=c.iN(f))||2===s?c.uN(t,{_orientation:0,Jx:-2}):1===s&&c.uN(t,{_orientation:0,Jx:-1})):c.uN(t,{_orientation:0,Jx:1})),(r||o||a)&&(n=c.aN(o,a),c.fN(t,r,o,a)?0<(u=c.sN(n,t,!0))?(s=c.iN(n),c.cN(t)&&(c.cN(o)||c.cN(a)||c.cN(r))||(3===s?c.uN(t,{_orientation:0,Kx:-2}):2!==s&&1!==s||c.uN(t,{_orientation:0,Kx:-1}))):u<=0&&(0<(u=c.sN(t,r,!0))?3===(s=c.iN(n))&&c.uN(t,{_orientation:0,Kx:1}):0!==u&&c.uN(t,{_orientation:0,Kx:-1})):c.uN(t,{_orientation:0,Kx:-2}))},x.gN=function(t,e,n,i,r,o,a){var s,u,c,f,n,c=x;(e||n||i)&&(f=c.aN(n,i),u=c.sN(f,t,!0),c.fN(t,e,n,i)?0<u?(s=c.iN(f),c.cN(t)&&(c.cN(n)||c.cN(i)||c.cN(e))||3===s&&c.uN(t,{_orientation:1,Jx:1})):u<0?0<(u=c.sN(t,e,!0))?3===(s=c.iN(f))||2===s?c.uN(t,{_orientation:1,Jx:-2}):1===s&&c.uN(t,{_orientation:1,Jx:-1}):0!==u&&0<c.sN(e,f,!0)&&3===(s=c.iN(f))&&c.uN(t,{_orientation:1,Jx:1}):0===u&&0<c.sN(t,e,!0)&&(3===(s=c.iN(f))||2===s?c.uN(t,{_orientation:1,Jx:-2}):1===s&&c.uN(t,{_orientation:1,Jx:-1})):c.uN(t,{_orientation:1,Jx:1})),(r||o||a)&&(n=c.aN(o,a),u=c.sN(t,n,!0),c.fN(t,r,o,a)?u<0?(s=c.iN(n),c.cN(t)&&(c.cN(o)||c.cN(a)||c.cN(r))||(3===s||2===s?c.uN(t,{_orientation:1,Kx:-2}):1===s&&c.uN(t,{_orientation:1,Kx:-1}))):n!==K&&0<=u&&(0<(u=c.sN(t,r,!0))?3===(s=c.iN(n))&&c.uN(t,{_orientation:1,Kx:1}):0!==u&&c.uN(t,{_orientation:1,Kx:-1})):c.uN(t,{_orientation:1,Kx:-2}))},x.pN=function(t,e,n,i,r,o,a,s){var u,c,f,l,l,u=x;s?this.gN(t,e,n,i,r,o,a):this.mN(t,e,n,i,r,o,a),c=u.cN(n),f=u.cN(i),l=u.cN(e),c&&f&&l?u.lN(t,e,n,i,-1,s):c&&!f?u.hN(t,e,r,n,i,1,-1,s,!0):!c&&f?u.hN(t,e,r,n,i,2,-1,s,!1):c&&f&&!l?u.dN(t,e,n,i,-1,s):l&&u.vN(t,e,n,i,-1,s),c=u.cN(o),f=u.cN(a),l=u.cN(r),c&&f&&l?u.lN(t,r,o,a,1,s):c&&!f?u.hN(t,e,r,o,a,1,1,s,!0):!c&&f?u.hN(t,e,r,o,a,2,1,s,!1):c&&f&&!l?u.dN(t,r,o,a,1,s):l&&u.vN(t,r,o,a,1,s)},x.eN=[0,101,199,100,100,300,90,100,198,100,198,100,198,198],x.bN=function(t,e){return!(!t||!e||t.color!==e.color||t.level!==e.level||t.style!==e.style)},E=x,d.prototype.yN=function(){var t,e,n,i,r,o,a,s,u,c,f,t=this;if(t.wN=[],t.MN=[],t.CN=[],t.SN=[],t.TN=[],t.AN={},t.IN={},t.xN={},t.NN={},t.kN={},t.DN={},t._N={},e=t.zx,n=t.Vx,e&&0<e.length&&n&&0<n.length){for(i=t.MN,r=e.length,o=void 0,a=0;a<r;a++)0<(o=e[a]).height&&i.push(o.row);for(i.push(i[i.length-1]+1),s=t.CN,u=n.length,c=void 0,f=0;f<u;f++)0<(c=n[f]).width&&s.push(c.col);s.push(s[s.length-1]+1)}t.Ux=!0},d.prototype.EN=function(t,e,n,i,r,o,a,s){var t;n&&(t={Ky:t,iw:e,jN:n.startColumn,ON:n.endColumn,RN:i,_x:r,_y:o,YC:a,ZC:s},this.SN.push(t))},d.prototype.PN=function(t,e,n,i,r,o,a,s,u,c,f){var l,h,d,v,g,m,p,S,w,b,C,l=this;l.Ux||l.yN(),s&&l.wN.push(s),!c&&!u&&s||(C=b=w=S=p=m=g=v=d=h=void 0,a&&!s&&(h=a.borderLeft,d=a.borderTop,v=a.borderRight,g=a.borderBottom,C=a.backColor,f&&2===f.columnHeaderFitMode||(m=a.diagonalDown,p=a.diagonalUp),f&&f.sheetArea!==Y&&3!==f.sheetArea||(S=a.textOrientation),w=a.isVerticalText,b=a.textIndent),!C||h||v||d||g||l.TN.push({r:t,c:e,rc:1,cc:1}),l.GN(t,e,n,i,r,o,h,d,v,g,m,p,C,!1,!1,u,c,S,w,b&&0!==b,f))},d.prototype.GN=function(t,e,n,i,r,o,a,s,u,c,f,l,h,d,v,F,_,g,m,p,S){var w,b,C,y,M,A,L,k,T,x,G,x,C,B,I,P,N,R,E,H,U,C,m,D,p,P,g,j,O,w=this,b=w.Mf,C=b.Jt,y=!1,M=!1,A=!1,L=!1,k=function(t){return t!==Y&&t&&-90<=t&&t<=90},T=k(g),x=a||s||u||c,P=0,N=0,R=n,E=r;e+1<b.getColumnCount()&&(H=C.qt(t,e+1)),0<=e-1&&(U=C.qt(t,e-1)),C=T&&!m&&!p&&S&&S.data,m=Z(S&&S.printZoomFactor)?1:S.printZoomFactor,p=!(D=x&&C&&g%90!=0),x&&(C&&(B=z(g*J/180),I=W(B),P=Math.floor(o/I),-90<g&&g<0&&(R=n-P),0<g)&&g<90&&(R=n+P),T||(H&&k(H.textOrientation)&&(B=z(H.textOrientation*J/180),I=W(B),N=Math.floor(o/I),0<H.textOrientation&&H.textOrientation<90&&(E=r+N),H.textOrientation<0)&&-90<H.textOrientation&&(E=r-N),U&&k(U.textOrientation)&&(B=z(U.textOrientation*J/180),I=W(B),N=Math.floor(o/I),-90<U.textOrientation&&U.textOrientation<0&&(E+=N,R=n-N),0<U.textOrientation)&&U.textOrientation<90&&(E-=N,R=n+N))),f&&p&&w.UN(t,e,n-1,i-1,n+r,i+o,f,w.kN,K,{printZoomFactor:m}),l&&p&&w.UN(t,e,n+r,i-1,n-1,i+o,l,w.DN,K,{printZoomFactor:m}),s&&0<o&&(y=w.UN(t,e,R,i-.5,R+E,i-.5,s,w.xN,T,{printZoomFactor:m})),a&&0<E&&(M=w.UN(t,e,R-.5,i,n-.5,i+o,a,w.NN,T,{printZoomFactor:m})),u&&0<E&&(L=S&&S.columnHeaderFitMode===V.ColumnHeaderFitMode.stack&&!Z(S.cornerX)?(G=S.cornerX,x=S.cornerY,w.UN(t,e+1,R+E-.5,i,n+r-.5,i+(C=x-i),u,w.NN,T,{isMultiLine:!0,multiLinePart:"topVertical",printZoomFactor:m}),w.UN(t,e+1,G,i+C-.5,n+r-.5,i+C-.5,u,w.xN,T,{isMultiLine:!0,multiLinePart:"horizontal",printZoomFactor:m}),w.UN(t,e+1,G-.5,x,G-.5,i+o,u,w.NN,T,{isMultiLine:!0,multiLinePart:"bottomVertical",printZoomFactor:m})):w.UN(t,e+1,R+E-.5,i,n+r-.5,i+o,u,w.NN,T,{printZoomFactor:m})),c&&0<o&&(A=S&&S.columnHeaderFitMode===V.ColumnHeaderFitMode.stack&&!Z(S.cornerX)?(G=S.cornerX,w.UN(t+1,e,n,i+o-.5,G,i+o-.5,c,w.xN,T,{printZoomFactor:m})):w.UN(t+1,e,n,i+o-.5,n+r,i+o-.5,c,w.xN,T,{printZoomFactor:m})),h&&0!==b.Jt.Gt(t)&&0!==b.Jt.Kt(e)||(g=!L&&!v,((P=!A&&!d)||g||(j=!y&&!d)||(O=!M&&!v))&&w.HN(t,e,n,i,r,o,P,g,F,_)),!y&&!h||T||w.zN(t-1,e,w.AN),(M||h)&&w.zN(t,e-1,w.IN),!h||a||u||s||c||(w.VN(t-1,e-1,w.IN,!1),w.VN(t-1,e-1,w.AN,!0))},d.prototype.UN=function(t,e,n,i,r,o,a,s,u,c){var f,l,h,c,d,d;return!!a&&(h=l=f=void 0,c&&(f=c.isMultiLine,l=c.multiLinePart,h=c.printZoomFactor),(c=this.YN(t,e,s,!0))?f?((d=N(n,i,r,o,a.color,a.style,u,h)).multiLinePart=l,c.splitLines||(c.splitLines=[]),"horizontal"===l&&(c.line=d),c.splitLines.push(d)):u||6!==c.style.style&&(6===a.style||0<E.nN(a,c.style))?(c.line=N(n,i,r,o,a.color,a.style,u,h),c.style=a):c.line&&!c.splitLines&&o-i!=c.line.Dx-c.line.xx&&(c.line.Dx=o,c.line.xx=i):(d=N(n,i,r,o,a.color,a.style,u,h))&&((c=this.YN(t,e,s)).line=d,c.style=a,f)&&(c.line.multiLinePart=l,c.splitLines=[c.line]),c)&&c.line!==K},d.prototype.HN=function(t,e,n,i,r,o,a,s,u,c){var f,l,h,l,a,a,u,a,f=this,l=3===f.nT,h=f.Mf.options.gridline;l&&h&&(l=h.color,h.showHorizontalGridline&&(a&&((a=f.YN(t,e,f.AN)).isGridLine=!0,a.line=N(n,i+o-.5,n+r,i+o-.5,l)),u)&&((a=f.YN(-1,e,f.AN,!1,!0)).isGridLine=!0,a.line=N(n,i-.5,n+r,i-.5,l)),h.showVerticalGridline)&&(s&&((u=f.YN(t,e,f.IN)).isGridLine=!0,u.line=N(n+r-.5,i,n+r-.5,i+o,l)),c)&&((a=f.YN(t,-1,f.IN,!1,!0)).isGridLine=!0,a.line=N(n-.5,i,n-.5,i+o,l))},d.prototype.VN=function(t,e,n,i){var t,r,t=this.YN(t,e,n,!0);t&&t.line&&t.line.Wx({_orientation:i?0:1,Kx:-1})},d.prototype.zN=function(t,e,n){var n,i;(0<=t&&0<=e||0===t&&-1===e||-1===t&&0===e)&&(n=n[t])&&(i=n[e])&&delete n[e]},d.prototype.YN=function(t,e,n,i,r){var r,n;if(!r&&(-1===t||-1===e))return K;if(!(r=n[t])){if(i)return K;n[t]=r={}}if(!(n=r[e])){if(i)return K;r[e]=n={}}return n},d.prototype.ZN=function(){for(var t,e,n,i,r,o,a,s,u,c,f,l,h,d,v,g,m,u,p,S,w,h,b,C,b,f,y,M,k,T,x,G,B,I,P,t=this,e=t.SN,n=e.length,i=t.NN,r=t.xN,o=t.IN,a=t.AN,s=0;s<n;s++)if(c=(u=e[s]).Ky,f=u.iw,l=u.jN,h=u.RN,d=u.ON,g=u._x,m=u.YC,u=u.ZC,p=g,S=v=void 0,w=h.textOrientation,h=h.borderTop,!(b=e[s-1])||b.Ky!==c||b.jN!==l||b.ON!==d){for(C=l;C<d;C++)(v=t.YN(c,C+1,i,!0))&&!w?t.zN(c,C+1,i):(v=t.YN(c,C,o,!0))&&t.zN(c,C,o);if(b=t.YN(c,f,r,!0),w&&h&&!b)for(f=void 0,f=u/Math.tan(Math.abs(w*Math.PI/180)),-90<w&&w<0&&(p=g-f),S=(p=0<w&&w<90?g+f:p)+m,y=l;y<d+1;y++)if(k=(M=t.YN(c-1,y,a,!0))&&M.line)for(M.splitLines||(M.splitLines=[],M.splitLines.push(k)),T=0;T<M.splitLines.length;T++)if(G=(x=M.splitLines[T]).Ix,B=x.Nx,I=x.xx,P=x.Dx,G<p&&B<S&&p<B)x.Nx=p;else if(p<G&&B<S)t.zN(c-1,y,t.AN);else if(p<G&&S<B&&G<S)x.Ix=S;else if(G<p&&S<B){M.splitLines.splice(T,1,N(G,I,p,I,x.color),N(S,P,B,P,x.color));break}}},d.prototype.WN=function(t){var e,n,i,r,e=this.wN,n=e.length;if(0<n)for(r=0;r<n;r++)i=e[r],this.QN(i,t)},d.prototype.KN=function(){var t,e,n,i,r,o,a,s;if(this._N={},0<(e=(t=this.wN).length))for(i=0;i<e;i++)for(n=t[i],r=0;r<n.rowCount;r++)for(o=r+n.row,this._N[o]=this._N[o]||{},a=0;a<n.colCount;a++)s=a+n.col,this._N[o][s]=n},d.prototype.QN=function(t,e){var n,i,r,o,a,s,u,c,f,l,h,d,v,g,m,p,S,w,b,C,y,M,k,T,x,G,B,I,P,N,n=this,i=t.row,r=t.col,o=t.x,a=t.y,s=t.spanSizeInfo,h=s.styleList[0][0],d=h?h.backColor:K,k=o,T=a,x=null,G=!0,B=null,I=!0;if(1===t.rowCount)for(g=i,p=s.rowSizes[0],v=0;v<t.colCount;v++)w=0===v,C=v===t.colCount-1,m=r+v,S=s.colSizes[v],M=s.styleList[0][v],g===t.row&&m===t.col&&(x=(P=M)&&P.diagonalDown,B=P&&P.diagonalUp),M?(u=M.borderLeft,c=M.borderTop,f=M.borderRight,l=M.borderBottom,G=G&&E.bN(x,M.diagonalDown),I=I&&E.bN(B,M.diagonalUp)):u=c=f=l=K,w?n.GN(g,m,k,T,S,p,u,c,K,l,K,K,d,!1,!0,K,K,K,K,K,{printZoomFactor:e}):C?n.GN(g,m,k,T,S,p,K,c,f,l,K,K,d,!1,!1,K,K,K,K,K,{printZoomFactor:e}):n.GN(g,m,k,T,S,p,K,c,K,l,K,K,d,!1,!0,K,K,K,K,K,{printZoomFactor:e}),k+=S;else if(1===t.colCount)for(m=r,S=s.colSizes[0],v=0;v<t.rowCount;v++)b=0===v,y=v===t.rowCount-1,p=s.rowSizes[v],M=s.styleList[v][0],(g=i+v)===t.row&&m===t.col&&(x=(P=M)&&P.diagonalDown,B=P&&P.diagonalUp),M?(u=M.borderLeft,c=M.borderTop,f=M.borderRight,l=M.borderBottom,G=G&&E.bN(x,M.diagonalDown),I=I&&E.bN(B,M.diagonalUp)):u=c=f=l=K,b?n.GN(g,m,k,T,S,p,u,c,f,K,K,K,d,!0,!1,K,K,K,K,K,{printZoomFactor:e}):y?n.GN(g,m,k,T,S,p,u,K,f,l,K,K,d,!1,!1,K,K,K,K,K,{printZoomFactor:e}):n.GN(g,m,k,T,S,p,u,K,f,K,K,K,d,!0,!1,K,K,K,K,K,{printZoomFactor:e}),T+=p;else for(v=0;v<t.rowCount;v++){for(g=i+v,b=0===v,y=v===t.rowCount-1,p=s.rowSizes[v],N=0;N<t.colCount;N++)m=r+N,w=0===N,C=N===t.colCount-1,S=s.colSizes[N],M=s.styleList[v][N],g===t.row&&m===t.col&&(x=(P=M)&&P.diagonalDown,B=P&&P.diagonalUp),M?(u=M.borderLeft,c=M.borderTop,f=M.borderRight,l=M.borderBottom,G=G&&E.bN(x,M.diagonalDown),I=I&&E.bN(B,M.diagonalUp)):u=c=f=l=K,b?w?n.GN(g,m,k,T,S,p,u,c,K,K,K,K,d,!0,!0,K,K,K,K,K,{printZoomFactor:e}):C?n.GN(g,m,k,T,S,p,K,c,f,K,K,K,d,!0,!1,K,K,K,K,K,{printZoomFactor:e}):n.GN(g,m,k,T,S,p,K,c,K,K,K,K,d,!0,!0,K,K,K,K,K,{printZoomFactor:e}):y?w?n.GN(g,m,k,T,S,p,u,K,K,l,K,K,d,!1,!0,K,K,K,K,K,{printZoomFactor:e}):C?n.GN(g,m,k,T,S,p,K,K,f,l,K,K,d,!1,!1,K,K,K,K,K,{printZoomFactor:e}):n.GN(g,m,k,T,S,p,K,K,K,l,K,K,d,!1,!0,K,K,K,K,K,{printZoomFactor:e}):w?n.GN(g,m,k,T,S,p,u,K,K,K,K,K,d,!0,!0,K,K,K,K,K,{printZoomFactor:e}):C&&n.GN(g,m,k,T,S,p,K,K,f,K,K,K,d,!0,!1,K,K,K,K,K,{printZoomFactor:e}),k+=S;k=o,T+=p}n.GN(t.row,t.col,t.x,t.y,t.width,t.height,K,K,K,K,x=G?x:null,B=I?B:null,K,!0,!0,K,K,K,K,K,{printZoomFactor:e}),!d||u||f||c||l||n.TN.push({r:i,c:r,rc:t.rowCount,cc:t.colCount})},d.prototype.Wx=function(){var t,e,n,i,r,t=this,e=!1,n=!1,i=!1,r=!1;o(t.NN)||(e=!0),o(t.xN)||(n=!0),(e||n)&&(t.JN(),t.XN()),o(t.kN)||(i=!0),o(t.DN)||(r=!0),(i||r)&&t.qN(),0<t.TN.length&&t.$N()},d.prototype.t6=function(t,e,n,i,r){var o,a,o=this,a=this._N[t]?this._N[t][e]:null;if(a)switch(r){case g:return o.n6(t,e,n,i);case m:case p:return o.n6(t,e+a.colCount-1,n,i);case S:case M:return o.n6(t+a.rowCount-1,e+a.colCount-1,n,i);case k:case T:return o.n6(t+a.rowCount-1,e,n,i);case F:return o.n6(t,e,n,i)}return o.n6(t,e,n,i)},d.prototype.qN=function(){for(var t,e,n,i,r,o,a,s,u,c,c,c,c,f,l,c,c,c,c,h,d,v,t=this,e=t.MN,n=t.CN,i=e.length,r=n.length,f={},l={},o=0;o<i;o++)for(s=e[o],a=0;a<r;a++)u=n[a],h=t.YN(s,u,t.kN,!1),d=t.YN(s,u,t.DN,!1),(h||d)&&(E.cN(h)&&E.cN(d)&&(h.line.$x(),d.line.$x()),(c=t.t6(s,u,!(v=[]),f,g))&&c.line&&!c.isGridLine&&t.e6(v=[1,1,2],c,h,!0,1),(c=t.t6(s,u,!1,f,m))&&c.line&&!c.isGridLine&&t.e6(v=[1,1,2],c,d,!0,1),(c=t.t6(s,u,!0,l,F))&&c.line&&!c.isGridLine&&t.e6(v=[1,1,2],c,h,!0,0),(c=t.t6(s,u,!0,l,T))&&c.line&&!c.isGridLine&&t.e6(v=[1,1,2],c,d,!1,0),(c=t.t6(s+1,u,!1,f,k))&&c.line&&!c.isGridLine&&t.e6(v=[-1,-2,-2],c,d,!1,1),(c=t.t6(s+1,u,!1,f,M))&&c.line&&!c.isGridLine&&t.e6(v=[-1,-2,-2],c,h,!1,1),(c=t.t6(s,u+1,!0,l,p))&&c.line&&!c.isGridLine&&t.e6(v=[-1,-2,-2],c,d,!0,0),c=t.t6(s,u+1,!0,l,S))&&c.line&&!c.isGridLine&&t.e6(v=[-1,-2,-2],c,h,!1,0)},d.prototype.e6=function(t,e,n,i,r){var o,a,e,o,t,o=E.cN(e),a=E.oN(e),e=e.line.Ex;o&&(e=3),o=t[(e=a?2:e)-1],n&&n.line&&(t={_orientation:r},i?t.Jx=o:t.Kx=o,n.line.Wx(t))},d.prototype.$N=function(){for(var t,e,n,i,r,o,a,s,u,c,f,l,h,d,v,t=this,e=t.TN,n=e.length,i=0;i<n;i++){for(u=(s=o=(r=e[i]).r)-1,c=(a=r.c)-1,f=a,1<r.rc&&(s+=r.rc-1),1<r.cc&&(f+=r.cc-1),h=l=!1,d=i+1;d<n&&((v=e[d]).c===f+1&&v.r===o&&(h=!0),!(l=v.r===s+1&&v.c===a?!0:l)||!h)&&!(v.r>o+1&&v.c>a+1);d++);l||t.VN(s,c,t.AN,!0),h||t.VN(u,f,t.IN,!1)}},d.prototype.JN=function(){for(var t,e,n,i,r,o,a,s,u,c,f,l,h,d,v,g,m,p,S,w,b,C,y,M,k,T,x,G,B,I,P,N,R,b,t=this,e=t.Mf,n=e.Ut,i=t.MN,r=t.CN,o=i.length,a=r.length,l={},h={},s=0;s<o;s++)for(c=i[s],u=0;u<a;u++){if(f=r[u],T=t.YN(c,f,t.NN,!(k=M=0))){if(T.line&&T.line.jx)continue;M++}else T=t.YN(c,f-1,t.IN,!0);if((x=t.YN(c,f,t.xN,!0))?k++:x=t.YN(c-1,f,t.AN,!0),T||x){if((d=0===s?K:t.n6(i[s-1],f,!0,h))&&d.line&&!d.isGridLine&&(M++,k++),(v=0===u?K:t.n6(c,r[u-1],!1,l))&&v.line&&!v.isGridLine&&(M++,k++),T)for(G=[T],T.splitLines&&0<T.splitLines.length&&(G=T.splitLines),B=0;B<G.length;B++)(I=G[B]).style=T.style,(g=t.n6(c,f,!1,l))&&g.line&&!g.isGridLine&&M++,s!==o-1&&(p=t.n6(i[s+1],f,!0,h))&&p.line&&!p.isGridLine&&M++,0!==u&&s!==o-1&&(S=t.n6(i[s+1],r[u-1],!1,l))&&S.line&&!S.isGridLine&&M++,s!==o-1&&(w=t.n6(i[s+1],f,!1,l))&&w.line&&!w.isGridLine&&M++,0<M&&("topVertical"===I.multiLinePart?(P=n.i6(f,0),N=e.r6(P),2===e.Lt(N)&&(P=e.O5(P)),R=e.O5(f),g=t.n6(c,P,!1,l),p=t.n6(c,R,!0,h),S=I,w=K):"bottomVertical"===I.multiLinePart&&(g=I,p=v=d=K,S=t.n6(i[s+1],r[u-1],!1,l),w=t.n6(i[s+1],r[u],!1,l)),E.rN(T.style)?E.pN(I,d,v,g,p,S,w,!0):E.oN(T.style)||E.gN(I,d,v,g,p,S,w));x&&((m=t.n6(c,f,!0,h))&&m.line&&!m.isGridLine&&k++,u!==a-1&&(b=r[u+1],2===e.Lt(b)&&(b=n.i6(b,0),b=e.O5(b)),b=t.n6(c,b,!1,l))&&b.line&&!b.isGridLine&&k++,0!==s&&u!==a-1&&(C=t.n6(i[s-1],r[u+1],!0,h))&&C.line&&!C.isGridLine&&k++,u!==a-1&&(y=t.n6(c,r[u+1],!0,h))&&y.line&&!y.isGridLine&&k++,0<k)&&(x.line&&"horizontal"===x.line.multiLinePart&&(P=n.i6(f,0),N=e.r6(P),2===e.Lt(N)&&(P=e.O5(P)),b=d=v=K,C=m=x,y=t.n6(c,P,!0,h)),E.rN(x.style)?E.pN(x,v,d,m,b,C,y,!1):E.oN(x.style)||E.mN(x,v,d,m,b,C,y))}}},d.prototype.o6=function(t,e,n,i){var r,o,n,r=this,o=this._N[t]?this._N[t][e]:null,n=n?r.DN:r.kN;return o?t===o.row&&e===o.col&&i===w||t===o.row&&e===o.col+o.colCount-1&&i===b||t===o.row+o.rowCount-1&&e===o.col+o.colCount-1&&i===C||t===o.row+o.rowCount-1&&e===o.col&&i===y?r.YN(o.row,o.col,n,!1):void 0:r.YN(t,e,n,!1)},d.prototype.XN=function(){for(var t,e,n,i,r,o,a,s,u,c,f,l,h,d,v,g,m,p,S,S,t=this,e=t.MN,n=t.CN,i=e.length,r=n.length,o=0;o<i;o++)for(s=e[o],a=0;a<r;a++)u=n[a],(S=t.YN(s,u,t.NN,!0))&&S.line&&S.line._noNeedAdjust||(S&&S.line&&E.cN(S)&&(c=t.o6(s,u,!1,w),f=t.o6(s,u,!0,y),l=E.cN(c),h=E.cN(f),d=t.o6(s,u-1,!1,C),v=t.o6(s,u-1,!0,b),g=E.cN(d),m=E.cN(v),c&&l&&S.line.Wx(p={tN:2,_orientation:1,Jx:2}),f&&h&&S.line.Wx(p={tN:2,_orientation:1,Kx:-2}),d&&g&&S.line.Wx(p={tN:1,_orientation:1,Kx:-2}),v)&&m&&S.line.Wx(p={tN:1,_orientation:1,Jx:2}),(S=t.YN(s,u,t.xN,!0))&&S.line&&E.cN(S)&&(c=t.o6(s,u,!1,w),f=t.o6(s,u,!0,b),l=E.cN(c),h=E.cN(f),d=t.o6(s-1,u,!1,C),v=t.o6(s-1,u,!0,y),g=E.cN(d),m=E.cN(v),c&&l&&S.line.Wx(p={tN:2,_orientation:0,Jx:2}),f&&h&&S.line.Wx(p={tN:2,_orientation:0,Kx:-2}),d&&g&&S.line.Wx(p={tN:1,_orientation:0,Kx:-2}),v)&&m&&S.line.Wx(p={tN:1,_orientation:0,Jx:2}))},d.prototype.n6=function(t,e,n,i){var r,i,r=i[t];return i=(i=(r=r||(i[t]={}))[e])===Y?r[e]=this.a6(t,e,n):i},d.prototype.a6=function(t,e,n){var i,r,o;if(t===Y||t<0||e===Y||e<0)return K;if(i=this,r=n?i.NN:i.xN,o=i.YN(t,e,r,!0))return o;if(r=n?i.IN:i.AN,n){if(--e<0)return K}else if(--t<0)return K;return(o=i.YN(t,e,r,!0))||K},d.prototype.paint=function(t,e){var n=this;n.Ux&&(n.Hx||(n.KN(),n.WN(e),n.ZN(),n.Wx(),n.Hx=!0),t.save(),n._e(t),t.restore())},d.prototype._e=function(t){this.u6(t),this.s6(t)},d.prototype.u6=function(t){var e=this;e.c6(t,e.AN),e.c6(t,e.IN)},d.prototype.s6=function(t){var e=this;e.c6(t,e.xN),e.c6(t,e.NN),e.c6(t,e.kN),e.c6(t,e.DN)},d.prototype.c6=function(t,e){var n,i,r,o,a,s;for(n in e)if(e[n])for(i in r=e[n])if(r[i])if(o=r[i].line,(a=r[i].splitLines)&&0<a.length)for(s=0;s<a.length;s++)a[s]&&a[s]._e(t);else o&&o._e(t)},t.Yx=d},"./dist/core/worksheet/worksheet-clipboard.js":function(a,t,e){"use strict";var n,s,et,nt,Q,u,f,p,G,m,l,i,r,h,b,X,it,d,U,c,F,C,e,rt,ot,w,M,B,v,g,i,k,T,x,N,R;function y(t){var t=t.parent;return t&&t.options.allowCopyPasteExcelStyle}function ht(t){var t=t.parent;return t&&t.options.allowExtendPasteRange}function I(t){var t=t.parent;return t&&t.options.copyPasteHeaderOptions}function E(t,e,n,i,r,o){var a,s,u,c,f,l,h,a=X,s=(0,Q.parseText)(t,e,n,i,r,o);if(s){for(u=s.length,c=(0,Q.getMaxLength)(s),f=[],l=0;l<u;l++)for(f[l]=[],h=0;h<c;h++)h<s[l].length?f[l][h]=s[l][h]:f[l][h]=X;a=f}return a}function at(t,e){return t.tables&&t.tables.Uue(e)}function K(t,e){for(var n,i,n=e.row;n<e.row+e.rowCount;n++)for(i=e.col;i<e.col+e.colCount;i++)if(!ot(t.getValue(n,i)))return;return 1}function st(t,e){return-1!==t.col&&-1!==t.colCount&&t.colCount!==e}function ut(t,e){return-1===t.row||-1===t.rowCount||t.rowCount===e}function S(t,e,n,i,r){if(!(t<=r.row&&e<=r.col&&t+n>=r.row+r.rowCount&&e+i>=r.col+r.colCount||r.col>e+i||r.col+r.colCount-1<e||r.col>e+i-1||r.col+r.colCount-1<e||r.row+r.rowCount-1<t||e===r.col&&i===r.colCount&&t>r.row))return!0}function ct(t,e){return t.tables&&t.tables.Uue(e)}function dt(t,e,n,i,r){return t.tables&&t.tables.oSt(e,n,i,r)}function ft(t,e,n,i,r){var o,e,a,o=e.rowCount,e=e.colCount,a=!1;return r===et.InsertShiftCell.right?(e=1,i===t.col&&(a=!0)):(o=1,n===t.row&&(a=!0)),(-1===t.row||-1===t.col)&&t.intersect(n,i,o,e)&&!t.equals(new nt.Range(n,i,o,e))&&!a}function P(t){return(t&et.CopyToOptions.style)<=0}function H(t,e){var n,i,r,t,o,a,s,e,u,n,o,i,a,n=t.row,i=t.col,r=t.row+t.rowCount,t=t.col+t.colCount,o=e.row,a=e.col,s=e.row+e.rowCount,e=e.col+e.colCount,u;return U(n,o)<=c(r,s)&&U(i,a)<=c(t,e)&&(n=U(n,o),o=U(i,a),i=c(r,s)-n,a=c(t,e)-o,new nt.Range(n,o,i,a))}function A(e,t){var n=[];return t.forEach(function(t){var t=H(e,t);t&&n.push(t)}),n}function L(t,e){t&&b&&t.suspendCalcService(e)}function D(t,e){t&&b&&t.resumeCalcService(e)}function _(t,e){return e===et.ClipboardPasteOptions.formatting&&t.options.protectionOptions.formatCells}function Y(t,e,n,i,r){t.ki("shiftCellsDown",{row:i,col:r,changedRowCount:i-e,changedColCount:r-n,srcRow:e,srcColumn:n},!0)}function q(t,e,n,i){var n,i,r,o,a;e&&n&&i!==it&&(n=e.Ky,i=e.iw,r=e.Sx,o=e.Tx,a={showHeader:e.showHeader(),showFooter:e.showFooter(),useFooterDropDownList:e.useFooterDropDownList(),showResizeHandle:e.showResizeHandle()},t.tables._Qt(e.name(),n,i,r,o,e.style(),a,!0),e.L0())}function vt(t,e,n,i,r,o){for(var a,s,u,c,f,l,h,d,v,d,g,a=t.Ut.getSpans(),s=t.tables&&t.tables.U3,u=t.pivotTables&&t.pivotTables.all(),c=0;c<a.length;c++)if(!(e<=(f=a[c]).row&&n<=f.col&&e+i>=f.row+f.rowCount&&n+r>=f.col+f.colCount||f.row>e+i||f.row+f.rowCount-1<e||f.row>e+i-1||f.row+f.rowCount-1<e||f.col+f.colCount-1<n))return 1;if(s)for(c=0;c<s.length;c++)if(l=s[c],(ot(o)||l.name()!==o)&&!(e<=l.Ky&&n<=l.iw&&e+i>=l.Ky+l.Sx&&n+r>=l.iw+l.Tx||l.Ky>e+i||l.Ky+l.Sx-1<e||l.Ky>e+i-1||l.Ky+l.Sx-1<e||l.iw+l.Tx-1<n))return 1;if(u)for(c=0;c<u.length;c++)if(v=(d=(h=u[c]).getRange()).content,d=d.page,g=void 0,g=!(g=v?S(e,n,i,r,v):g)&&d?S(e,n,i,r,d):g)return 1}function j(t,e){var n,t,i,e,r,o,a;return!t||(n=t.row,t=t.col,i=e.row,e=e.col,-1!==n&&-1!==t)||(r=-1===n&&-1!==t)&&i<=0||(o=-1===t&&-1!==n)&&e<=0||(a=-1===n&&-1===t)&&i<=0&&e<=0}function gt(t,e,n,i,r,o){for(var a,s,u,c,f,l,h,d,v,d,g,a=t.Ut.getSpans(),s=t.tables&&t.tables.U3,u=t.pivotTables&&t.pivotTables.all(),c=0;c<a.length;c++)if(!(e<=(f=a[c]).row&&n<=f.col&&e+i>=f.row+f.rowCount&&n+r>=f.col+f.colCount||f.col>n+r||f.col+f.colCount-1<n||f.col>n+r-1||f.col+f.colCount-1<n||f.row+f.rowCount-1<e))return 1;if(s)for(c=0;c<s.length;c++)if(l=s[c],(ot(o)||l.name()!==o)&&!(e<=l.Ky&&n<=l.iw&&e+i>=l.Ky+l.Sx&&n+r>=l.iw+l.Tx||l.iw>n+r||l.iw+l.Tx-1<n||l.iw>n+r-1||l.iw+l.Tx-1<n||l.Ky+l.Sx-1<e||n===l.iw&&r===l.Tx&&e>l.Ky))return 1;if(u)for(c=0;c<u.length;c++)if(v=(d=(h=u[c]).getRange()).content,d=d.page,g=void 0,g=!(g=v?S(e,n,i,r,v):g)&&d?S(e,n,i,r,d):g)return 1}function lt(t,e,n,i,r){for(var o,a,s,u,c,f,l,h,d,o=t.Ut.getSpans(),a=t.tables.U3,s=e;s<e+i;s++)for(u=n;u<n+r;u++){if(c=t.getCell(s,u),!ot(c.value())||c.backColor()||c.comment()||c.tag())return!0;for(f=0;f<o.length;f++)if(s>=(l=o[f]).row&&s<=l.row+l.rowCount-1&&u>=l.col&&u<=l.col+l.colCount-1)return!0;for(h=0;h<a.length;h++)if(s>=(d=a[h]).Ky&&s<=d.Ky+d.Sx-1&&u>=d.iw&&u<=d.iw+d.Tx-1)return!0}return!1}function O(t,e){var t;return null!=(t=t.getSpan(e.row,e.col))&&t.equals(e)}function V(t,e){var n,i,r,o,a,s,u;if(t&&1<(n=t.length)){for(i=void 0,i=0;i<n;i++)for(r=t[i],o=i+1;o<n;o++)if(a=t[o],r.intersect(a.row,a.col,a.rowCount,a.colCount))return;for(s=t[0],u=void 0,i=1;i<n&&(u=t[i],s.row===u.row&&s.rowCount===u.rowCount);i++);if(n<=i)return e&&(e.inSameRow=!0),1;for(i=1;i<n&&(u=t[i],s.col===u.col&&s.colCount===u.colCount);i++);if(n<=i)return e&&(e.inSameCol=!0),1}}function $(t,e){return x.call(this,t,e)||this}function o(t,e,n){var n,i,r,o,a,s,u,c,f,l,h,d,v,g,m,n,p,r,S,w,b,C,y,M,k,T,M,x,G,i=this;if(i=N.call(this,t,e)||this,!n){if(a=e.fromSheet,!(o=t))throw new Error(rt().Exp_DestSheetIsNull);if(u=(s=e).pastedRanges,c=o.o5(),u&&!(u.length<=0))if(e.cachedActions=[],l=(f=s.fromRanges||[s.fromRange]).length,h=s.isCutting,d=s.clipboardText,v=s.clipboardHtml,g=s.clipboardImage,m=s.pasteOption,n={},p=u[0],r=null==(r=s.pasteSpecialOptions)?void 0:r.transpose,!h&&a&&V(f,n)&&p.equals(a.fT(f,p,r))){for(S=n.inSameRow,w=n.inSameCol,r&&(S=(n=[w,S])[0],w=n[1]),S?f.sort(function(t,e){return t.col-e.col}):w&&f.sort(function(t,e){return t.row-e.row}),b=p.row,C=p.col,y=0;y<l;y++)k=(M=f[y]).rowCount,T=M.colCount,c&&(k+=t.lT(b,k,!0),T+=t.lT(C,T)),M={sourceRange:M,targetRange:(0,nt.Ec)(b,C,k,T),isCutting:h,clipboardText:d,clipboardHtml:v,clipboardImage:g,includeFilteredOutRow:!0,pasteSpecialOptions:s.pasteSpecialOptions},e.cachedActions[y]=new B(t,{fromSheet:a,toSheet:o,pasteExtent:M,pasteOption:m}),S?C+=T:w&&(b+=k);e.hT=!0}else for(x=0;x<u.length;x++)G={sourceRange:f[0],targetRange:u[x],isCutting:h,clipboardText:d,clipboardHtml:v,clipboardImage:g,pasteSpecialOptions:s.pasteSpecialOptions},e.cachedActions[x]=new B(t,{fromSheet:a,toSheet:o,pasteExtent:G,pasteOption:m})}return i}function z(t,e){return R.call(this,t,e)||this}function W(t,e,n,i,r,o,a){var s,u,c,f,e,l,h,d,n,v,g,i,s=e.row,u=e.col,c=e.rowCount,f=e.colCount,e=0===n||2===n||4===n||5===n;if(r&&e)for(d=(h=(l=t.Ut).getSpans((0,nt.Ec)(s,u,c,f))).length-1;0<=d;d--)l.do("removeSpan",h[d]);if(b&&0<(1&i)&&t.clearFormula(s,u,c,f,function(t,e){return!t.XT||!t.XT(e)}),n=t.ST(),r&&""!==r)t.parent&&t.parent.options.allowAutoCreateHyperlink&&1===c&&1===f&&(m.Common.$T.qT(w).test(r)||m.Common.$T.qT(M).test(r))&&t.setHyperlink&&t.setHyperlink(s,u,{url:r,tooltip:r}),i=t.parent&&t.parent.options.allowUserEditFormula?16:0,t.setCsv(s,u,r,"\r\n","\t",i,y(t),p.yM.n5(a));else if(n&&e&&o)n.s5(o,t,s,u);else for(v=0;v<c;v++)for(g=0;g<f;g++)t.setValue(s+v,u+g,X);n&&e&&a&&n.r5(a,t,s,u)}function J(t,n,i,e,r,o,a){var s,u,r,c,f,l,h,d,v,s,g,m,p,S,w,b,C,y,M,k,T,x,u=B.WT(r),r=e.row<0?n.getRowCount():e.rowCount,c=e.col<0?n.getColumnCount():e.colCount,f=i.row<0?t.getRowCount():i.rowCount,l=i.col<0?t.getColumnCount():i.colCount,h=e.row,d=e.col;for(e.row<0&&f<n.getRowCount()&&(h=0),e.col<0&&l<n.getColumnCount()&&(d=0),(v=(null==(s=t.getSpan(i.row,i.col))?void 0:s.equals(i))&&1===e.rowCount&&1===e.colCount)&&(r=(s=t.getSpan(i.row,i.col)).rowCount,c=s.colCount),g=F(r/f),m=F(c/l),p=0;p<g&&g&&m;p++)for(S=0;S<m;S++)G.staticMembers.copyTo(t,i.row,i.col,n,h+f*p,d+l*S,f,l,u,o,I(t),it,P(u),a);for(k=-33&u,w=h+f*g,b=d,C=r-f*g,y=l,M=A(new nt.Range(i.row,i.col,C,y),t.getSpans(i)),T=function(e){M.forEach(function(t){n.addSpan(w+t.row-i.row,b+l*e+t.col-i.col,t.rowCount,t.colCount)}),G.staticMembers.copyTo(t,i.row<0?0:i.row,i.col<0?0:i.col,n,w,b+l*e,C,y,k,o,I(t),it,P(k),a)},S=0;S<m&&C&&y;S++)T(S);for(w=h,b=d+l*m,C=f,y=c-l*m,M=A(new nt.Range(i.row,i.col,C,y),t.getSpans(i)),x=function(e){M.forEach(function(t){n.addSpan(w+f*e+t.row-i.row,b+t.col-i.col,t.rowCount,t.colCount)}),G.staticMembers.copyTo(t,i.row<0?0:i.row,i.col<0?0:i.col,n,w+f*e,b,C,y,k,o,I(t),it,P(k),a)},p=0;p<g&&C&&y;p++)x(p);w=h+f*g,b=d+l*m,C=r-f*g,y=c-l*m,M=A(new nt.Range(i.row,i.col,C,y),t.getSpans(i)),C&&y&&(M.forEach(function(t){n.addSpan(w+t.row-i.row,b+t.col-i.col,t.rowCount,t.colCount)}),G.staticMembers.copyTo(t,i.row<0?0:i.row,i.col<0?0:i.col,n,w,b,C,y,k,o,I(t),it,P(k),a))}function Z(t,e,n,i,r,o,a,s){var u,c,f,l,h,d,v,g,m,p,S,w,b,C,y,M,k,u=i.row<0?n.getRowCount():i.rowCount,c=i.col<0?n.getColumnCount():i.colCount,f=e.row<0?t.getRowCount():e.rowCount,l=e.col<0?t.getColumnCount():e.colCount,h=n.o5();if(h&&(u=(u-=n.lT(i.row,U(u,f),!0))<1?1:u,c=(c-=n.lT(i.col,U(c,l)))<1?1:c),f<u||l<c)for(d=i.row,v=i.col,i.row<0&&f<n.getRowCount()&&(d=0),i.col<0&&l<n.getColumnCount()&&(v=0),u%f==0&&1===c?c=l:1===u&&c%l==0?u=f:u%f==0&&c%l==0||(u=f,c=l),g=F(u/f),m=F(c/l),p=f,S=l,y=C=b=w=void 0,M=0;M<g;M++){for(w=ot(C)?d<0?-1:d+M*f:C,k=0;k<m;k++)b=ot(y)?v<0?-1:v+k*l:y,f=d<0?-1:p,l=v<0?-1:S,h&&(f=d<0?-1:f+n.lT(w,p,!0),l=v<0?-1:l+n.lT(b,S)),G.staticMembers.copyTo(t,e.row,e.col,n,w,b,p,S,r,o,I(t),a,P(r),s),y=b+(l<0?0:l);C=w+(f<0?0:f),y=null}else G.staticMembers.copyTo(t,e.row,e.col,n,i.row,i.col,e.rowCount,e.colCount,r,o,I(t),a,P(r),s)}function tt(t,e,n,i,r){var o,a,s,u,c,f,l,o=r.isCutting,a=r.clipboardPasteOptions,s=r.ignoreFilteredOutRow,u=r.ignorePasteSkipInvisibleRange,c=r.pasteSpecialOptions;if(t&&n.name()===t.name()&&n.parent&&!t.NMi&&!d(n.parent.sheets,t)&&n.parent!==t.parent)t.YT();else{f=B.WT(a),L(t),L(n);try{if(t&&e){if(0!=(2&f)&&o&&b&&t.KT(e.row,e.col,e.rowCount,e.colCount||n.KT(i.row,i.col,i.rowCount,i.colCount)))throw rt().Exp_ChangePartOfArray;l=a===et.ClipboardPasteOptions.formatting,o?(G.staticMembers.moveTo(t,e.row,e.col,n,i.row,i.col,e.rowCount,e.colCount,f,t.JT,u),t.YT()):l?J(t,n,e,i,a,s,c):Z(t,e,n,i,f,s,u,c)}else W(n,i,a,f,r.clipboardText,r.clipboardImage,r.clipboardHtml)}finally{D(t,!1),D(n,!1)}}}n=this&&this.__extends||(T=function(t,e){return(T=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(t,e){t.__proto__=e}:function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])}))(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}T(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),s=this&&this.__assign||function(){return(s=Object.assign||function(t){for(var e,n,i,r,n=1,i=arguments.length;n<i;n++)for(r in e=arguments[n])Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t}).apply(this,arguments)},Object.defineProperty(t,"__esModule",{value:!0}),t.OpenPasteSpecialDialogActive=t.ClipboardPasteUndoAction=t.ClipboardPasteRangeUndoAction=void 0,et=e("./dist/core/core.enum.js"),nt=e("./dist/core/util/common.js"),Q=e("./dist/core/worksheet/worksheet-actions.js"),u=e("./dist/core/worksheet/worksheet.js"),f=e("./dist/core/util/domUtil.js"),p=e("./dist/core/worksheet/clipboardhelper.js"),G=e("./dist/core/worksheet/worksheet-static.js"),m=e("Common"),l=e("./dist/core/core.ns.js"),i=e("CalcEngine"),r=e("./dist/core/worksheet/actionbase.js"),h=e("./dist/core/worksheet/paste-special-dialog.js"),b=!!i,X=null,it=void 0,d=m.Common.Uf.OS,U=Math.max,c=Math.min,F=Math.floor,C=nt.mt.Tt,e=new m.Common.ResourceManager(l.SR,"Sheets"),rt=e.getResource.bind(e),ot=m.Common.lt.ht,w="^(((ht|f)tp(s?)):\\/\\/(?:www.|(?!www))[a-zA-Z0-9][a-zA-Z0-9-]+[a-zA-Z0-9]\\.[^\\s]{2,}|www\\.[a-zA-Z0-9][a-zA-Z0-9-]+[a-zA-Z0-9]\\.[^\\s]{2,}|((ht|f)tp(s?)):\\/\\/(?:www\\.|(?!www))[a-zA-Z0-9]+\\.[^\\s]{2,}|www\\.[a-zA-Z0-9]+\\.[^\\s]{2,})$",M="^(mailto:\\/\\/)?([A-Za-z0-9_\\-\\.\\!\\#$%&'*\\+/=?^`{|}~])+\\@([A-Za-z0-9\\-])+\\.([A-Za-z0-9\\-]){2,63}(\\?subject=.+)?$",x=r.ActionBase,n($,x),$.WT=function(t){var e,n,e=0,n=[et.ClipboardPasteOptions.all,et.ClipboardPasteOptions.usingSourceTheme,et.ClipboardPasteOptions.noBorder,et.ClipboardPasteOptions.allAndColumnWidth].includes(t);return!n&&1!==t&&t!==et.ClipboardPasteOptions.valuesAndNumberFormatting&&t!==et.ClipboardPasteOptions.valuesAndSourceFormatting||(e|=1),!n&&2!==t&&t!==et.ClipboardPasteOptions.valuesAndSourceFormatting||(e|=608),!n&&3!==t&&t!==et.ClipboardPasteOptions.formulasAndNumberFormatting||(e|=2),!n&&4!==t||(e|=609),!n&&5!==t||(e|=610),n&&(e|=8116),t===et.ClipboardPasteOptions.comments&&(e|=et.CopyToOptions.comment),e},$.prototype.canExecute=function(){var t,e,n,i,r,i,n,t=this,e=t.tT,n=e.pasteExtent,i=n.targetRange,r=n.sourceRange,i=e.toSheet.PT(i.row,i.col,i.rowCount,i.colCount,{sheetArea:et.SheetArea.viewport})||_(e.toSheet,t.tT.pasteOption),n=!n.isCutting||e.fromSheet.PT(r.row,r.col,r.rowCount,r.colCount,{sheetArea:et.SheetArea.viewport})||_(e.fromSheet,t.tT.pasteOption);return i&&n},$.prototype.XI=function(){var t,e,n,i,r,o,e,a,t,t=this,e=t.tT.pasteExtent,n=t.tT.Kh={},i=e.isCutting,r=$.WT(t.tT.pasteOption),o=e.sourceRange,e=e.targetRange,a=t.tT.fromSheet,t=t.tT.toSheet;a&&o&&i&&!a.isDirtySuspended()&&(n.qI=new Q.ChangedCells(a,o,r)),t.isDirtySuspended()||(n.$I=new Q.ChangedCells(t,e,r))},$.prototype.nx=function(){return this.tT.pasteExtent.targetRange},$.prototype.ex=function(t,e,n,i,r,o){var F,a,s,u,c,o,_,A,L,D,j,O,f,l,h,d,v,g,m,p,V,Y,K,z,W,S,w,b,C,y,M,k,T,x,J,Z,G,B,I,P,N,Q,X,R,q,E,$,tt,H,N,U,C,S,w,H,S,h,v,N,w,C,k,S,F=!1,a=e.row,s=e.col,u=e.rowCount,c=e.colCount,o=r!==o,_=!1,A=!1,L=!1,D=!1,j=ht(r),O=!1,f=r.o5(),g=r.getRowCount(),m=r.getColumnCount(),p=u,V=c,Y=0,K=0,z=0,W=0;if(f&&(p-=r.ix(a,p,!0),V-=r.ix(s,V)),S=r.tables&&r.tables.AB(a,s,u,c),b=st(n,m),C=ut(n,g),T=this.bx,x=this.kse,J=i===et.InsertShiftCell.right,Z=i===et.InsertShiftCell.down,N=w=!1,-1===(G=n.row)&&(N=!(G=0)),-1===(B=n.col)&&(B=0),-1===(I=n.rowCount)&&(I=g),-1===(P=n.colCount)&&(P=m),Q=!1,-1===s&&(Q=!(s=0)),-1===a&&(Q=!(a=0)),x){if(1<S.length)return r.jT(1,rt().Exp_InsertCopiedCutCellsOnSpanTable),{returnFunc:!0};if(1===S.length){if(y=S[0])if(M=y.Tx,k=y.Sx,J){if(!o&&(k+y.Ky!==I&&(s!==y.iw||I<y.Ky+k)&&!(I<=y.Ky||!t&&s===y.iw&&p%I==0)||!T&&t&&at(r,n)))return r.jT(1,rt().Exp_InsertCopiedCutCellsOnSpanTable),{returnFunc:!0};s===y.iw&&p%I==0||(w=!0),s===y.iw&&(y=it)}else if(Z){if(!o&&b&&a<=G&&P>y.iw&&P<y.iw+y.Tx&&(t||V%P!=0))return r.jT(1,rt().Exp_InsertCopiedCutCellsOnSpanTable),{returnFunc:!0};P===M&&0===y.iw&&a!==y.Ky&&(w=!0),a===y.Ky&&(y=it)}}else if(t&&(!b||C)&&r.tables&&r.tables.Uue(n))return r.jT(1,rt().Exp_InsertCopiedCutCellsAffectTable),{returnFunc:!0}}if(x&&y&&(X=y.name()),w||t||y&&!b||!(J&&p%I==0||Z&&V%P==0)){if(J){if(S=void 0,l=a,d=C=I,w=!y||!x||T||!ut(e,g),H=y&&I<=y.Ky,R=w||H,f&&(C+=S=r.lT(a,C),d+=S),S=!1,!o){if(v=(h=G)+I,R&&a!==h&&(0!==G||-1!==a||!N)&&n.intersect(a,s,C,r.getColumnCount()-s))return r.jT(1,rt().Exp_InsertCopiedCutCells),{returnFunc:!0};if(!y&&x&&ft(n,e,a,s,i))return r.jT(1,rt().Exp_InsertCopiedCutCellsOverlap),{returnFunc:!0};if(B<s&&s<=B+P-1&&h<a&&a<=v-1)return r.jT(1,rt().Exp_InsertCopiedCutCells),{returnFunc:!0};if(vt(r,a,s,C,r.getColumnCount()-s,X)||!R&&y&&s<B&&h>=y.Ky&&h<y.Ky+k&&v>y.Ky+k)return r.jT(1,rt().Exp_InsertCopiedCutCellsOnSpanTable),{returnFunc:!0};if(!T&&t&&B<s&&!ct(r,n)&&dt(r,G,B+P,I,s-B-P+(y?y.Tx-(s-y.iw):0)))return r.jT(1,rt().Exp_InsertCopiedCutCellsAffectTable),{returnFunc:!0};if(!w&&y)if(H)$=I;else{if(0!==y.Ky&&s!==y.iw)return r.jT(1,rt().Exp_InsertCopiedCutCellsOnSpanTable),{returnFunc:!0};s===y.iw&&(S=!0),s<B&&h>=y.Ky&&v<=y.Ky+k&&I===y.Sx&&(E=P),$=S?I:y.Sx}}if(o||(a!==G&&-1!==a||!(s<=B)||y&&!S&&!H)&&ot(E)||(f?(n.col+=n.colCount,n.col=r.O5(n.col-1),K=r.lT(n.col,n.colCount),n.colCount+=K):n.col=n.col+(ot(E)?n.colCount:E),_=!0),h=r.getColumnCount()-n.colCount,v=n.colCount,f&&(W=r.lT(s,n.colCount),h=m-(v=(N=n.colCount+W)+r.ox(m-1,N)),_)&&(n.col+=W),(O=lt(r,l,h,d,v))&&!j)return r.jT(1,rt().Exp_InsertCopiedCutCellsNoRange),{returnFunc:!0}}else if(Z){if(C=void 0,h=s,v=w=P,R=!y||!x||T||st(e,m)||P<=y.iw,f&&(w+=C=r.lT(s,w),v+=C),!R&&y&&b&&(P<M||P<y.iw+M||(!y.showHeader||y.Ky!==a)&&P!==y.iw+M))return r.jT(1,rt().Exp_InsertCopiedCutCellsOnSpanTable),{returnFunc:!0};if(!o){if(y&&b&&y.iw<w&&y.iw+y.Tx!==w&&n.intersect(a,s,r.getRowCount()-a,w))return r.jT(1,rt().Exp_InsertCopiedCutCellsOverlap),{returnFunc:!0};if(!y&&x&&ft(n,e,a,s,i))return r.jT(1,rt().Exp_InsertCopiedCutCellsOverlap),{returnFunc:!0};if(b&&R&&s!==B&&n.intersect(a,s,r.getRowCount()-a,w))return r.jT(1,rt().Exp_InsertCopiedCutCells),{returnFunc:!0};if(b&&s!==B&&n.intersect(a,s,r.getRowCount()-a,n.colCount))return r.jT(1,rt().Exp_InsertCopiedCutCells),{returnFunc:!0};if(G<a&&a<=G+I-1&&B<s&&s<=B+w-1)return r.jT(1,rt().Exp_InsertCopiedCutCells),{returnFunc:!0};if(gt(r,a,s,r.getRowCount()-a,w,X))return r.jT(1,rt().Exp_InsertCopiedCutCellsOnSpanTable),{returnFunc:!0};if(!T&&t&&G<a&&!ct(r,n)&&dt(r,G+I,B,a-G-I+(y?y.Sx-(a-y.Ky):0),w))return r.jT(1,rt().Exp_InsertCopiedCutCellsAffectTable),{returnFunc:!0};!R&&y&&(k=I,t&&(!b&&n.intersect(y.Ky,0,y.Sx,y.endColumn()+1)||new nt.Range(y.Ky,0,y.Sx,y.endColumn()+1).containsRange(n))&&(k=G+I-1-y.endRow()),r.getColumnCount()%w==0)&&(0<k?!b&&a<G?q=k:w===M&&(tt=M):t&&k<0&&(s===B||-1===s)&&a<=G&&(q=I))}if(o||ot(q)&&(s!==B&&-1!==s||!(a<=G)||y&&!b)||(f?(n.row=n.row+n.rowCount,n.row=r.j5(n.row-1),Y=r.lT(n.row,n.rowCount,!0),n.rowCount+=Y):n.row=n.row+(ot(q)?n.rowCount:q),A=!0),l=g-n.rowCount,d=n.rowCount,f&&(z=r.lT(a,n.rowCount,!0),l=g-(d=(S=n.rowCount+z)+r.ox(g-1,S,!0)),A)&&(n.row+=z),(O=lt(r,l,h,d,v))&&!j)return r.jT(1,rt().Exp_InsertCopiedCutCellsNoRange),{returnFunc:!0}}}else if(p%I==(N=H=0)&&V%P!=0?(c=e.colCount=P,f&&(H=r.lT(s,c),e.colCount=c+=H)):p%I!=0&&V%P==0&&(u=e.rowCount=I,f)&&(N=r.lT(a,u,!0),e.rowCount=u+=N),F=!0,J){if(U=!1,R=!y||!x||T||!ut(e,g),!o){if((a<=n.row&&a+u>=n.row+n.rowCount||Q&&-1===n.row)&&(U=!0),!y&&x&&ft(n,e,a,s,i))return r.jT(1,rt().Exp_InsertCopiedCutCellsOverlap),{returnFunc:!0};if(B<s&&s<=B+P-1&&G<a&&a<=G+I-1)return r.jT(1,rt().Exp_InsertCopiedCutCells),{returnFunc:!0};if(!U&&n.intersect(a,s,u,m-s))return r.jT(1,rt().Exp_InsertCopiedCutCells),{returnFunc:!0};if(vt(r,a,s,u,m-s,X))return r.jT(1,rt().Exp_InsertCopiedCutCellsOnSpanTable),{returnFunc:!0};if(!R&&y&&I===y.Sx){if(0!==y.Ky)return r.jT(1,rt().Exp_InsertCopiedCutCellsOnSpanTable),{returnFunc:!0};s<B&&(E=c),$=y.Sx}(U&&s<=B&&(!y||b)||!ot(E))&&(f?(n.col+=c,n.col=r.O5(n.col-1),K=r.lT(n.col,c),n.colCount+=K):n.col+=ot(E)?c:E,L=!0)}if(l=a,d=u,h=m-c,v=c,f&&(h=m-(v=c+(W=r.ox(m-1,c))+H)),(O=lt(r,l,h,d,v))&&!j)return r.jT(1,rt().Exp_InsertCopiedCutCellsNoRange),{returnFunc:!0}}else if(Z){if(U=!1,R=!y||!x||T||st(e,m),!o){if(s<=B&&B+P<=s+c&&(U=!0),!y&&x&&ft(n,e,a,s,i))return r.jT(1,rt().Exp_InsertCopiedCutCellsOverlap),{returnFunc:!0};if(G<a&&a<=G+I-1&&B<s&&s<=B+P-1)return r.jT(1,rt().Exp_InsertCopiedCutCells),{returnFunc:!0};if(!U&&n.intersect(a,s,r.getRowCount()-a,c))return r.jT(1,rt().Exp_InsertCopiedCutCells),{returnFunc:!0};if(gt(r,a,s,r.getRowCount()-a,c,X))return r.jT(1,rt().Exp_InsertCopiedCutCellsOnSpanTable),{returnFunc:!0};if(G<a&&a<G+I||st(e,m)&&y&&P>y.iw&&y.iw+M>P&&n.intersect(a,s,r.getRowCount()-a,c))return r.jT(1,rt().Exp_InsertCopiedCutCellsOverlap),{returnFunc:!0};!R&&y&&0<u&&r.getColumnCount()%P==0&&P===M&&0===y.iw&&(tt=M),(!y||b)&&U&&a<=G&&(f?(n.row+=u,n.row=r.j5(n.row-1),Y=r.lT(n.row,u,!0),n.rowCount+=Y):n.row+=u,D=!0)}if(l=r.getRowCount()-u,d=u,h=s,v=c,f&&(l=g-(d=u+(z=r.ox(g-1,u,!0))+N)),(O=lt(r,l,h,d,v))&&!j)return r.jT(1,rt().Exp_InsertCopiedCutCellsNoRange),{returnFunc:!0}}return{changePasteDataRangeCol:_,changePasteDataRangeRow:A,changePasteDataRangeCols:L,changePasteDataRangeRows:D,moveRangeHaveValue:O,returnFunc:!1,selectRange:F,adjustedTableRowCount:$,adjustedTableColCount:tt,changePasteDataRangeRowInvisibleCount:Y,changePasteDataRangeColInvisibleCount:K,invisibleRowCountInAcRange:z,invisibleColCountInAcRange:W}},$.prototype.fx=function(F,t,e,n,_,i,r,o,a,s,u,c){var f,l,h,d,v,g,m,p,t,S,A,w,e,b,C,L,y,M,k,T,x,G,B,I,D,j,P,N,R,E,O,H,V,U,f=!1,l=!1,h=this.kse,d=n.o5(),v=n.getColumnCount(),g=-1!==i.col&&i.colCount!==v,m=!1,p=t===et.InsertShiftCell.right,t=t===et.InsertShiftCell.down,S=at(n,new nt.Range(r,o,t?1:a,p?1:s)),A=0,w=!1,e=n!==e;if(h&&S&&(-1===r&&(r=0),-1===o)&&(o=0),S&&(p&&o===S.iw||t&&r===S.Ky)&&(S=it),F){if(p)if(n.mT(r,o+s,a,n.getColumnCount()-o-s,!0))if(b=S&&i.rowCount>S.Ky&&S.showHeader(),o+s<n.getColumnCount()){if(C=S&&o===S.iw,d)if(L=a,y=s+n.ox(n.getColumnCount()-1,s),-1===r)-1!==i.row||e?n.moveTo(r,o,r,o+s,a,n.getColumnCount()-o-s,et.CopyToOptions.all,!0):(n.addColumns(o,s),n.deleteColumns(n.getColumnCount()-s,s));else for(M=r;M<r+L&&M<n.getRowCount();M++)0!==n.getRowHeight(M)&&n.moveTo(M,o,M,o+s,1,n.getColumnCount()-o-y,et.CopyToOptions.all,!0);else h&&S&&!C&&(S.showFooter()||b)?(k=S.endRow(),S.showFooter()&&(A=k),i.rowCount>k+1&&n.moveTo(k+1,o,k+1,o+i.colCount,i.rowCount-k-1,n.getColumnCount()-o-i.colCount,et.CopyToOptions.all,!0)):-1!==r||-1!==i.row||e?n.moveTo(r,o,r,o+s,a,n.getColumnCount()-o-s,et.CopyToOptions.all,!0):(n.addColumns(o,s),n.deleteColumns(n.getColumnCount()-s,s));Y(n,r,o,r,o+s),(x=(T=n.rowFilter())&&T.range)&&-1===r&&1<x.colCount&&o>x.col&&o<=x.col+x.colCount-1&&(x.colCount=x.colCount+i.colCount),h&&S&&(C||i.rowCount!==S.Sx&&!ut(i,n.getRowCount())||(S.showFooter()||b?(S.insertColumns(o-S.iw,i.colCount),m=!0):S.K5t(new nt.Range(S.Ky,S.iw,S.Sx,S.Tx+s))))}else o+s>n.getColumnCount()&&(l=f=!0);else l=f=!0;else if(t)if(n.mT(r+a,o,n.getRowCount()-r-a,s,!0))if(r+a<n.getRowCount()){if(G=0,h&&S&&(I=(B=S.dataRange()).col+B.colCount,(D=r===S.Ky)||(G=a,0<(G=c&&i.row>=S.startRow()&&i.row<=S.endRow()?i.row+i.rowCount-1-S.endRow():G)&&(u=S.footerIndex())),!c&&g&&v%i.colCount==0||!g&&!K(n,{row:i.row,col:I,rowCount:i.rowCount,colCount:i.colCount-I})||(m=!0)),d)if(j=s,P=a+n.ox(n.getRowCount()-1,a,!0),-1===o)-1!==i.col||e?n.moveTo(r,o,r+a,o,n.getRowCount()-r-P,i.colCount,et.CopyToOptions.all,!0):(n.addRows(r,a),n.deleteRows(n.getRowCount()-a,a));else for(N=o;N<o+j&&N<n.getColumnCount();N++)0!==n.getColumnWidth(N)&&n.moveTo(r,N,r+a,N,n.getRowCount()-r-P,1,et.CopyToOptions.all,!0);else R=0<G,ot(u)||-1===u?(R&&S.K5t(new nt.Range(S.Ky,S.iw,S.Sx+G,S.Tx)),-1!==o||-1!==i.col||e?n.moveTo(r,o,r+a,o,n.getRowCount()-r-a,s,et.CopyToOptions.all,!0):(n.addRows(r,a),n.deleteRows(n.getRowCount()-a,a))):(n.moveTo(u+1,o,u+1+a,o,n.getRowCount()-u-1-a,s,et.CopyToOptions.all,!0),R&&S.K5t(new nt.Range(S.Ky,S.iw,S.Sx+G,S.Tx)),0<(E=u+G-r-a)&&n.moveTo(r,o,r+a,o,E,s,et.CopyToOptions.all,!0));Y(n,r,o,r+a,o)}else r+a>n.getRowCount()&&(l=f=!0);else l=f=!0}else if(p)if(n.mT(r,o+i.colCount,i.rowCount,n.getColumnCount()-o-i.colCount,!0))if(o+i.colCount<n.getColumnCount()){if(C=S&&o===S.iw,b=S&&i.rowCount>S.Ky&&S.showHeader(),d)if(O=i.rowCount,y=(H=i.colCount+n.lT(o,i.colCount))+n.ox(n.getColumnCount()-1,H),-1===r)-1!==i.row||e?n.moveTo(r,o,r,o+H,i.rowCount,n.getColumnCount()-o-y,et.CopyToOptions.all,!0):(n.addColumns(o,i.colCount),w=!0);else for(M=r;M<r+O&&M<n.getRowCount();M++)0===n.getRowHeight(M)?O++:n.moveTo(M,o,M,o+H,1,n.getColumnCount()-o-y,et.CopyToOptions.all,!0);else h&&!c&&S&&!C&&(S.showFooter()||b)?(k=S.endRow(),S.showFooter()&&(A=k),i.rowCount>k+1&&n.moveTo(k+1,o,k+1,o+i.colCount,i.rowCount-k-1,n.getColumnCount()-o-i.colCount,et.CopyToOptions.all,!0)):-1!==r||-1!==i.row||e?n.moveTo(r,o,r,o+i.colCount,i.rowCount,n.getColumnCount()-o-i.colCount,et.CopyToOptions.all,!0):(n.addColumns(o,i.colCount),w=!0);Y(n,r,o,r,o+i.colCount),(x=(T=n.rowFilter())&&T.range)&&-1===r&&1<x.colCount&&o>x.col&&o<=x.col+x.colCount-1&&(x.colCount=x.colCount+i.colCount),h&&S&&i.rowCount>S.Ky&&(C||i.rowCount!==S.Sx&&!ut(i,n.getRowCount())||(c||!S.showFooter()&&!b?S.K5t(new nt.Range(S.Ky,S.iw,S.Sx,S.Tx+i.colCount)):(S.insertColumns(o-S.iw,i.colCount),m=!0)))}else o+i.colCount>n.getColumnCount()&&(l=f=!0);else l=f=!0;else if(t)if(n.mT(r+i.rowCount,o,n.getRowCount()-r-i.rowCount,i.colCount,!0))if(r+i.rowCount<n.getRowCount()){if(G=0,h&&S&&i.colCount>S.iw&&(I=(B=S.dataRange()).col+B.colCount,(D=r===S.Ky)||(G=i.rowCount,0<(G=c&&(!g&&i.intersect(S.Ky,0,S.Sx,S.endColumn()+1)||new nt.Range(S.Ky,0,S.Sx,S.endColumn()+1).containsRange(i))?i.row+i.rowCount-1-S.endRow():G)&&(u=S.footerIndex())),!c&&g&&v%i.colCount==0||!g&&!K(n,{row:i.row,col:I,rowCount:i.rowCount,colCount:i.colCount-I})||(m=!0)),d)if(V=i.colCount,P=(U=i.rowCount+n.lT(r,i.rowCount,!0))+n.ox(n.getRowCount()-1,U,!0),-1===o)-1!==i.col||e?n.moveTo(r,o,r+U,o,n.getRowCount()-r-P,i.colCount,et.CopyToOptions.all,!0):(n.addRows(r,i.rowCount),w=!0);else for(N=o;N<o+V&&N<n.getColumnCount();N++)0===n.getColumnWidth(N)?V++:n.moveTo(r,N,r+U,N,n.getRowCount()-r-P,1,et.CopyToOptions.all,!0);else R=0<G,ot(u)||-1===u?(R&&S.K5t(new nt.Range(S.Ky,S.iw,S.Sx+G,S.Tx)),-1!==o||-1!==i.col||e?n.moveTo(r,o,r+i.rowCount,o,n.getRowCount()-r-i.rowCount,i.colCount,et.CopyToOptions.all,!0):(n.addRows(r,i.rowCount),w=!0)):(n.moveTo(u+1,o,u+1+i.rowCount,o,n.getRowCount()-u-1-i.rowCount,i.colCount,et.CopyToOptions.all,!0),R&&S.K5t(new nt.Range(S.Ky,S.iw,S.Sx+G,S.Tx)),0<(E=u+G-r-i.rowCount)&&n.moveTo(r,o,r+i.rowCount,o,E,i.colCount,et.CopyToOptions.all,!0));Y(n,r,o,r+i.rowCount,o)}else r+i.rowCount>n.getRowCount()&&(l=f=!0);else l=f=!0;return{ignoreTableExpand:m,ignoreTableFooterIndex:A,raiseInvalidOperation:f,returnFunc:l,isInsert:w}},$.prototype.hx=function(t,e,n,i,r,o,a,s){var u,c,f,l,h,u=s.changePasteDataRangeRowInvisibleCount,c=s.changePasteDataRangeColInvisibleCount,f=s.invisibleRowCountInAcRange,l=s.invisibleColCountInAcRange,h=this.tT.pasteExtent.targetRange;t&&(e.colCount-=c,e.col-=e.colCount,e.col-=l,h.colCount-=c),n&&(e.rowCount-=u,e.row-=e.rowCount,e.row-=f,h.rowCount-=u),i&&(e.colCount-=c,e.col-=o,e.col-=l,h.colCount-=c),r&&(e.rowCount-=u,e.row-=a,e.row-=f,h.rowCount-=u),s.changePasteDataRangeRowInvisibleCount=0,s.changePasteDataRangeColInvisibleCount=0,s.invisibleRowCountInAcRange=0,s.invisibleColCountInAcRange=0},$.prototype.vx=function(t,e){var n=[].concat(e.parent.sheets);return t&&(t.NMi||t.isReportTemplateSheet)&&n.push(t),e&&e!==t&&(e.NMi||e.isReportTemplateSheet)&&n.push(e),n},$.prototype.execute=function(){var t,t,e,n,i,r,o,a,s,u,c,f,F,l,l,t,h,d,h,d,h,v,g,m,p,S,d,t,w,_,A,L,D,h,b,C,y,j,O,M,M,k,M,k,M,T,x,V,G,B,Y,K,I,P,N,z,W,R,E,H,U,J,Z,h,b,G,S,l,v,g,I,P,e=this;if(e.canExecute()&&(n=e.tT.fromSheet,i=e.tT.toSheet,r=e.tT.pasteExtent,o=e.tT.pasteOption,a=r.sourceRange,s=r.targetRange,u=r.isCutting,!n||!a||n.zT(a.row,a.col,a.rowCount,a.colCount,n.getRowCount(),n.getColumnCount()))&&i&&s&&i.HT(s.row,s.col,s.rowCount,s.colCount,!0)&&!(i.tables&&i.tables.mx(n,a,i,s,u)||i.pivotTables&&i.pivotTables.KYt(a,s,i))){if(n&&(F=n.ST(),c=e.sA,f=e.fA)&&(l=f.row,t=f.col,h=f.rowCount,d=f.colCount,l=new nt.Range(l,t,h,d),null!=(t=r.pasteSpecialOptions)&&t.transpose&&(h=f.row<0?0:f.row,d=f.col<0?0:f.col,f=new nt.Range(h,d,f.colCount,f.rowCount)),null!=(t=r.pasteSpecialOptions))&&t.pasteLink&&(f=new nt.Range(f.row,f.col,s.rowCount,s.colCount),h=n.getSpan(f.row,f.col))&&h.rowCount===a.rowCount&&h.colCount===a.colCount&&(f=new nt.Range(f.row,f.col,1,1)),e.cA&&(v=e.cA.row,g=e.cA.col,m=e.cA.rowCount,p=e.cA.colCount),d=e.kse,t=i===n,h=ht(i),b=D=L=A=_=!1,O=j=y=C=0,c!==it&&f){if(t&&u&&c===et.InsertShiftCell.right&&ut(f,i.getRowCount())&&(w=at(i,f))&&(M=at(i,new nt.Range(v,g,m,p)))&&M.name()===w.name()&&(e.tT.Hfe=w,i.tables.remove(w,1)),(M=this.ex(u,e.cA,f,c,i,n)).returnFunc)return void q(i,w,u,c);_=M.changePasteDataRangeCol,A=M.changePasteDataRangeRow,C=M.changePasteDataRangeRowInvisibleCount,y=M.changePasteDataRangeColInvisibleCount,j=M.invisibleRowCountInAcRange,O=M.invisibleColCountInAcRange,L=M.changePasteDataRangeCols,D=M.changePasteDataRangeRows,b=M.moveRangeHaveValue,S=M.selectRange,m=e.cA.rowCount,p=e.cA.colCount,s.rowCount+=C,s.colCount+=y,k=M.adjustedTableRowCount,M=M.adjustedTableColCount,ot(k)||(s.row=0,s.rowCount=k),ot(M)||(s.col=0,s.colCount=M)}e.XI(),k=e.vx(n,i),Q.Commands.II(k),i.suspendPaint(),i.suspendEvent(),M=!(i.QI=!0),n&&(n.suspendEvent(),n.QI=!0);try{if(h&&!(V=this.ype(n,i,a,s,v,g,c,b,l,w,u)))M=!0,T=1,x=rt().Exp_InvalidCopyPasteSize,G=i.U5(),s.colCount=G.colCount,s.rowCount=G.rowCount;else if((M=(B=c!==it&&this.fx(S,c,n,i,e.cA,l,v,g,m,p,e.px,u)).raiseInvalidOperation)&&(T=1,x=rt().Exp_InsertCopiedCutCellsNoRange),B.returnFunc)q(i,w,u,c);else{if(a&&nt.Be.Ll(n,a.row,a.col,a.row+a.rowCount-1,a.col+a.colCount-1),!B.ignoreTableExpand)try{Y={shiftCells:e.bx&&c===et.InsertShiftCell.down,isCopy:!u,isFirst:!1,isHeaderPaste:e.kse},K=[],I=ot(B.ignoreTableFooterIndex)?0:B.ignoreTableFooterIndex,P=new nt.Range(s.row,s.col,s.rowCount-I,s.colCount),i.tables&&i.tables.yx(n,P,a,X,X,X,{shiftInfo:Y,backupTableResizedArgs:K}),this.tT.Kh.lCe=K}catch(t){return M=!0,T=6,x=t.message,void q(i,w,u,c)}N=f||a,z=u&&c!==it&&(c===et.InsertShiftCell.right&&(-1===N.row||N.row===s.row)||c===et.InsertShiftCell.down&&(-1===N.col||N.col===s.col)),tt(n,f||a,i,s,W={isCutting:u,clipboardText:r.clipboardText,clipboardHtml:r.clipboardHtml,clipboardImage:r.clipboardImage,clipboardPasteOptions:o,ignoreFilteredOutRow:!r.includeFilteredOutRow,ignorePasteSkipInvisibleRange:!0===z,pasteSpecialOptions:r.pasteSpecialOptions}),u&&c!==it&&(R=N.row,E=N.col,H=N.rowCount,U=N.colCount,J=s.row,Z=s.col,c!==et.InsertShiftCell.right||-1!==N.row&&N.row!==s.row||(t&&d&&E<Z&&ct(i,s)&&(s.col-=U),-1===R&&B.isInsert&&t?n.deleteColumns(E,U):n.moveTo(R,E+U,J,E,H,i.getColumnCount()-E-U,et.CopyToOptions.all,!0)),c!==et.InsertShiftCell.down||-1!==N.col&&N.col!==s.col||(t&&d&&R<J&&ct(i,s)&&(s.row-=H),-1===E&&B.isInsert&&t?n.deleteRows(R,H):n.moveTo(R+H,E,R,Z,i.getRowCount()-R-H,U,et.CopyToOptions.all,!0)))}}finally{q(i,w,u,c),a&&nt.Be.dl(),i.resumeEvent(),i.QI=!1,n&&(n.resumeEvent(),n.QI=!1),i.resumePaint(),Q.Commands.xI(k,e.tT),h=e.tT.Kh,b=$.WT(o),r.isCutting&&n&&(G=[],n.isDirtySuspended()||((S=new Q.ChangedCells(n,a,b)).yI(h.qI.bI()),G=(h.wx=S).MI()),Q.Commands.SI(n,a.row,a.col,a.rowCount,a.colCount,G,3,it,it,c)),i&&(l=[],i.isDirtySuspended()||((v=new Q.ChangedCells(i,s,b)).yI(h.$I.bI()),l=(h.Mx=v).MI()),g=i.tables&&i.tables.WI&&i.tables.WI(s.row,s.col,s.rowCount,s.colCount),I=s.rowCount,P=s.colCount,Q.Commands.SI(i,s.row,s.col,I,P,l,3,g,it,c),e.tableNamesObj={r:s.row,c:s.col,rc:I,cc:P,tableNames:g}),e.Cx={changePasteDataRangeCol:_,changePasteDataRangeRow:A,changePasteDataRangeCols:L,changePasteDataRangeRows:D,acColCount:p,acRowCount:m,changePasteDataRangeRowInvisibleCount:C,changePasteDataRangeColInvisibleCount:y,invisibleRowCountInAcRange:j,invisibleColCountInAcRange:O},F&&delete F.TT,M&&i.jT(T,x)}}},$.prototype.ype=function(t,e,n,i,r,o,a,s,u,c,f){var l,h,d,v,l,l,d,l=-1,h=-1;if(-1!==i.row?l=i.row+i.rowCount:-1===n.row&&(l=t.getRowCount()),v=l-(d=e.getRowCount()),(l=d<l)&&j(n,i))a===et.InsertShiftCell.down&&s?e.addRows(d,d-r+v):e.addRows(d,v);else if(s||r+i.rowCount!==d||a!==et.InsertShiftCell.down){if(s&&a===et.InsertShiftCell.down)e.addRows(d,d-r+v);else if(l)return q(e,c,f,a),!1}else e.addRows(d,d-r+v-u.rowCount);if(-1!==i.col?h=i.col+i.colCount:-1===n.col&&(h=t.getColumnCount()),(d=(l=e.getColumnCount())<h)&&j(n,i))a===et.InsertShiftCell.right&&s?e.setColumnCount(h+l-o):e.setColumnCount(h);else if(s||o+i.colCount!==l||a!==et.InsertShiftCell.right){if(s&&a===et.InsertShiftCell.right)e.setColumnCount(h+l-o);else if(d)return q(e,c,f,a),!1}else e.setColumnCount(h+l-o-u.colCount);return!0},$.prototype.undo=function(){var t,e,n,i,r,o,a,a,s,u,c,f,l,h,d,v,g,m,p,S,w,b,C,y,M,k,t=this;if(t.canUndo()){if(e=t.tT.fromSheet,n=t.tT.toSheet,r=(i=t.tT.pasteExtent).sourceRange,o=i.targetRange,!n||!o)return!1;if(t.Cx&&(a=t.Cx,this.hx(a.changePasteDataRangeCol,r,a.changePasteDataRangeRow,a.changePasteDataRangeCols,a.changePasteDataRangeRows,a.acColCount,a.acRowCount,a)),!n.zT(o.row,o.col,o.rowCount,o.colCount,n.getRowCount(),n.getColumnCount()))return!1;if(e&&r){if(!e.zT(r.row,r.col,r.rowCount,r.colCount,e.getRowCount(),e.getColumnCount()))return!1;if(e.name()===n.name()&&n.parent&&!e.NMi&&n.parent!==e.parent)return!1}a=t.tT.Kh,n.suspendPaint();try{s=o.row<0?0:o.row,u=o.col<0?0:o.col,c=o.row<0?n.getRowCount():o.rowCount,f=o.col<0?n.getColumnCount():o.colCount,l=t.vx(e,n),Q.Commands.NI(l,t.tT),(d=(h=n.rowFilter())&&h.range)&&-1===o.row&&d.col<o.col&&d.col+d.colCount>=o.col+o.colCount&&(d.colCount=d.colCount-o.colCount),p=m=g=v=0,e&&r&&(v=r.row<0?0:r.row,g=r.col<0?0:r.col,m=r.row<0?e.getRowCount():r.rowCount,p=r.col<0?e.getColumnCount():r.colCount),S=[],w=[],(b=t.tableNamesObj)&&(n&&b.r===s&&b.c===u&&b.rc===c&&b.cc===f&&(w=b.tableNames),e)&&b.r===v&&b.c===g&&b.rc===m&&b.cc===p&&(S=b.tableNames),C=t.sA,n&&(y=a.Mx,Q.Commands.SI(n,s,u,c,f,y?y.MI():[],3,S,!0,C)),i.isCutting&&e&&(M=a.wx,Q.Commands.SI(e,v,g,m,p,M?M.MI():[],3,w,!0,C)),(k=t.tT.Hfe)&&q(n,k,i.isCutting,C),(0,nt.handleRestoredTableResizedArgs)(a.lCe)}finally{n.resumePaint()}}return!0},$.prototype.toJSON=function(){var t=this;return{sheetName:t.Mf?t.Mf.name():"",command:t.tT}},B=$,t.ClipboardPasteRangeUndoAction=B,N=r.ActionBase,n(o,N),o.prototype.execute=function(){var t,e,n,i,r,o,a,s,u,c,f,l,h,d,v,g,m,p,S,w,b,t=this,e=t.tT,n=e.cachedActions,i=!1;if(t.canExecute()&&n){o=(r=t.Mf).parent.jg(),t.X5(o,!0);try{for(a=!1,s=e.fA&&(Array.isArray(e.fA)?e.fA:[e.fA]),u=0;u<n.length;u++)(c=n[u]).sA=e.sA,c.kse=e.kse,c.cA=e.cA,c.fA=s&&(e.hT?s[u]:s[0]),c.bx=e.bx,c.px=e.px,r?(f=c.tT.pasteExtent,h=(l=t.tT).fromSheet,d=l.fromRanges&&l.fromRanges[u],v=f.clipboardText,(g=f.clipboardHtml)&&(m="<html>\r\n<body>\r\n\x3c!--StartFragment--\x3e",p="\x3c!--EndFragment--\x3e\r\n</body>\r\n</html>",g.substr(0,m.length)===m&&g.substr(g.length-p.length,p.length)===p&&(g=g.substring(m.length,g.length-p.length)),nt.mt.Qf())&&(S="<meta charset='utf-8'>",g.substr(0,S.length)===S)&&(g=g.substring(S.length,g.length)),!v&&h&&d&&(v=h.bT([d])),!g&&h&&d&&y(r)&&(g=h.MT([d])),w={sheet:r,sheetName:r.name(),cellRange:c.nx(),pasteOption:c.tT.pasteOption,pasteData:{text:v,html:g},shiftCells:e.sA,fromSheet:h,fromRange:d,isCutting:!!l.isCutting,cancel:!1,action:l.isCutting?et.ClipboardActionType.cut:et.ClipboardActionType.copy},(b=f.clipboardImage)&&(w.pasteData.image=b),r.ki(nt.Events.ClipboardPasting,w),w.cancel||(i=c.execute(),delete w.cancel,a=!0,r.ki(nt.Events.ClipboardPasted,w))):i=c.execute();a&&t.Ax()}finally{t.q5(o,!0)}}return i},o.prototype.Ax=function(){var t,e,n,i,t,r,o,a,s,u,c,a,t=this,e=t.tT,n=e.cachedActions,i=t.Mf;if(i&&n){if(t=i.getSelections(),r=[],o=i.parent,i.IA(),e.hT)a=e.pastedRanges[0],i.n4(a.row,a.col,a.rowCount,a.colCount);else if(1<n.length)for(s=0;s<n.length;s++)c=(u=n[s]).nx(),i.n4(c.row,c.col,c.rowCount,c.colCount);else 0<n.length&&(a=n[0].nx(),i.n4(a.row,a.col,a.rowCount,a.colCount),a.contains(i.ui,i.ci)||i.XA(a.row,a.col));r=i.getSelections(),i.EA(t,r)&&i.jA(t),o&&e.Z3&&o.changeSelectionInCommandExecuting(e,null,null,r)}},o.prototype.canExecute=function(){var t,e,n,t=this.tT.cachedActions;if(t){for(e=0;e<t.length;e++)if(!(n=t[e]).canExecute())return!1;return!0}return!1},o.prototype.canUndo=function(){var t,e,n,t=this.tT.cachedActions;if(t){for(e=0;e<t.length;e++)if(!(n=t[e]).canUndo())return!1;return!0}return!1},o.prototype.undo=function(){var t,e,n,i,r,o,t=this,e=t.tT.cachedActions;if(t.canUndo()&&e){n=!0,i=t.Mf.parent.jg(),t.X5(i,!0);try{for(r=e.length-1;0<=r;r--)o=e[r],n=n&&o.undo()}finally{t.q5(i,!0)}return n}return!1},t.ClipboardPasteUndoAction=o,R=r.ActionBase,n(z,R),z.prototype.canExecute=function(){return nt.mt.isEnablePasteSpecial(this.Mf)},z.prototype.execute=function(){var e,n,t,e=this;return!!this.canExecute()&&(n=this.Mf.parent,(t=new h.PasteSpecialDialog(document.body,2e3,!0)).rQ(function(t){n.commandManager().execute({cmd:"paste",sheetName:e.tT.sheetName,pasteOption:t.pasteOptions,pasteSpecialOptions:t})}),!0)},t.OpenPasteSpecialDialogActive=z,i=f.GC$,k=function(t,e){var t=s({},t);return[et.ClipboardPasteOptions.formatting,et.ClipboardPasteOptions.comments,et.ClipboardPasteOptions.validation,et.ClipboardPasteOptions.columnWidths].includes(e)&&(t.operationOptions=et.PasteOperationOptions.none),(e!==et.ClipboardPasteOptions.all&&e!==et.ClipboardPasteOptions.noBorder||t.operationOptions)&&(t.pasteLink=!1),t.advancedPasteOptions={},e===et.ClipboardPasteOptions.validation?t.advancedPasteOptions.validator=!0:e===et.ClipboardPasteOptions.usingSourceTheme||e===et.ClipboardPasteOptions.valuesAndSourceFormatting?t.advancedPasteOptions.usingSourceTheme=!0:e===et.ClipboardPasteOptions.noBorder?t.advancedPasteOptions.noBorder=!0:e===et.ClipboardPasteOptions.columnWidths||e===et.ClipboardPasteOptions.allAndColumnWidth?t.advancedPasteOptions.columnWidth=!0:e!==et.ClipboardPasteOptions.valuesAndNumberFormatting&&e!==et.ClipboardPasteOptions.formulasAndNumberFormatting||(t.advancedPasteOptions.numberFormats=!0),t},i.extend(u.Worksheet.prototype,{copyTo:function(t,e,n,i,r,o,a){this.vT(t,e,n,i,r,o,a)},vT:function(t,e,n,i,r,o,a,s,u,c,f){var l=this;l.suspendPaint(),l.suspendEvent(),G.staticMembers.copyTo(l,t,e,c||l,n,i,r,o,a,s,0,u,void 0,void 0,f),l.resumeEvent(),l.resumePaint()},moveTo:function(t,e,n,i,r,o,a,s){var u=this;if(!(b&&a&et.CopyToOptions.formula)||u.mT(t,e,r,o,!0)&&u.mT(n,i,r,o,!0))try{u.suspendPaint(),u.suspendEvent(),G.staticMembers.moveTo(u,t,e,u,n,i,r,o,a,s)}finally{u.resumeEvent(),u.resumePaint()}},bT:function(t){var e,n,i,r,o,t,e=this,n=e.yT(t);if(n)return i="\t",r="\r\n",o='"',t=e.wT(t),(0,Q.getRangeText)(e,n.row,n.rowCount,n.col,n.colCount,r,i,'"',!1,t.rows,t.cols,!0)},MT:function(t){var e,n,t,i,e=this,n=e.yT(t);if(n)return t=e.wT(t),i=I(e),p.yM.KS(e,i,n.row,n.rowCount,n.col,n.colCount,et.SheetArea.viewport,y(e),t.rows,t.cols,!1,!1,!1,!1)},CT:function(t,e,n){var i,r,o,a,s,u,c,i=this,r=i.rt,o=i.bT(t);if(o){(a=i.ST()).DS=i,a._S=t,e&&i.NMi&&1===t.length&&-1===t[0].row&&-1===t[0].col&&(e=!1),a.ES=e,(s=i.ST()).TT=!0,u=i.MT(t),i.AT&&i.AT(),i.ieV&&i.ieV();try{if(c={sheet:i,sheetName:i.name(),copyData:{text:o,html:u},ranges:t,isCutting:e,cancel:!1,action:e?et.ClipboardActionType.cut:et.ClipboardActionType.copy},i.ki(nt.Events.ClipboardChanging,c),!1===c.cancel)return r&&!n&&r.IT(y(i)?u:o),i.ki(nt.Events.ClipboardChanged,{sheet:i,sheetName:i.name(),copyData:{text:o,html:u}}),setTimeout(function(){!r||n||i.xT||r.NT()},100),{copyText:o,copyHtml:u};a.c5()}catch(t){}}},kT:function(t,e,n,i,r,o,a,s,u,c,f,l){var h,d,v,g,m,m,c,h=rt().Exp_PasteSourceCellsLocked;if(a.pastedInternal=!1,a.pastedRange=X,d=!o&&!u,!t&&d)return!1;if(m=(g=v=this).wT(e),v._T(t,v.yT(e),g,o,m.rows,m.cols,c)||d){if(a.pastedInternal=!0,r&&t.isActualProtected()&&t.ET(e)&&!_(t,i))return v.jT(1,h),!1;a.pastedRange=v.OT(t,e,g,n,i,r,s,l)}else m=v.RT(g,n,o,p.yM.n5(u)),c=v.BT(g,n,u),a.pastedRange=m.union(c);return v.LT(t,e,n,i,r,a,s,f,l)},LT:function(t,e,n,i,r,o,a,s,u){var c,c,f,l,h,d,v,g,m,p,S,w,b,C,y,M,k,c,h,T,x,v,G,B,I,P,N,R,E,H,f=this,l=rt().Exp_InvalidCopyPasteSize,h=f.FT(),d=rt().Exp_PasteChangeMergeCell,v=rt().Exp_ChangePartOfArray,g=f,m=o.pastedRange,p=g.o5(),S=null==u?void 0:u.pasteLink;if(!m)return f.jT(1,l),!1;if(!_(g,i)&&!g.PT(m.row,m.col,m.rowCount,m.colCount,{lockErrorMsg:h,arrayFormulaErrorMsg:v,shiftCells:a,sheetArea:et.SheetArea.viewport}))return!1;if(o.pastedInternal){if(1===(w=e.length)){if(b=e[0],C=m.rowCount,y=m.colCount,M=b.rowCount,k=b.colCount,null!=u&&u.transpose&&(C=(c=[y,C])[0],y=c[1],M=(c=[k,M])[0],k=c[1]),r&&!t.PT(b.row,b.col,b.rowCount,b.colCount,{lockErrorMsg:h,arrayFormulaErrorMsg:v,sheetArea:et.SheetArea.viewport}))return!1;if(!S&&t.GT(b.row,b.col,M,k))return f.jT(1,d),!1;if(c=m.row<0?g.getRowCount():m.rowCount,h=m.col<0?g.getColumnCount():m.colCount,T=b.row<0?t.getRowCount():b.rowCount,x=b.col<0?t.getColumnCount():b.colCount,p&&(c=(c-=g.lT(n.row,U(c,T),!0))<1?1:c,h=(h-=g.lT(n.col,U(h,x)))<1?1:h),v=2===i||(null==u?void 0:u.pasteLink),(T<c||x<h)&&!v){if(G=n.row,B=n.col,n.row<0&&T<g.getRowCount()&&(G=0),n.col<0&&x<g.getColumnCount()&&(B=0),c%T==0&&1===h?(h=x,p||(m=o.pastedRange=new nt.Range(G,B,c,h))):1===c&&h%x==0?(c=T,p||(m=o.pastedRange=new nt.Range(G,B,c,h))):c%T==0&&h%x==0||(m=o.pastedRange=new nt.Range(G,B,c=T,h=x)),I=F(c/T),P=F(h/x),a===it||r&&(!s||!at(g,new nt.Range(G,B,c,h))))for(N=0;N<I;N++)for(R=0;R<P;R++)if(!f.UT(b,m)&&g.GT(G<0?-1:G+N*T,B<0?-1:B+R*x,G<0?-1:T,B<0?-1:x))return f.jT(1,d),!1}else if(a===it&&!f.UT(b,m)&&g.GT(m.row,m.col,C,y))return f.jT(1,d),!1}else if(1<w){for(E=0;E<w;E++)if(H=e[E],t.GT(H.row,H.col,H.rowCount,H.colCount))return f.jT(1,d),!1;if(g.GT(m.row,m.col,m.rowCount,m.colCount))return f.jT(1,d),!1}}else{if(g.GT(m.row,m.col,m.rowCount,m.colCount))return f.jT(1,d),!1;if(!g.HT(m.row,m.col,m.rowCount,m.colCount))return f.jT(1,l),!1}return!0},UT:function(t,e){if(t&&1===t.rowCount&&1===t.colCount){var t=this.getSpan(e.row,e.col);if(t&&t.equals(e))return!0}return!1},_T:function(t,e,n,i,r,o,a){var s,u,c,f;if(t&&e&&n)try{return(u=(u=(s=(0,Q.getRangeText)(t,e.row,e.rowCount,e.col,e.colCount,"\r\n","\t",'"',!1,r,o,!0,C.safari,!0))===i)||((u=!(u=s===i+"\r\n")&&C.chrome?s===i+"\t\r\n":u)||!(C.safari||C.mozilla||a)&&y(n)?u:s.replace(/\s/g,"")===i.replace(/\s/g,"")))||(c=new RegExp(String.fromCharCode(160),"g"),f=String.fromCharCode(32),u=(s=s.replace(c,f)).replace(/\s+$/,"")===i.replace(/\s+$/,"")),u}catch(t){}return!1},OT:function(t,e,n,i,r,o,a,s){var u,u,c,f,l,c,e,h,d,v,g,m,p,S,w,b,r,s,c,r,u=this,c=e.length,f=n.o5(),l=null==s?void 0:s.transpose;if(1!==c)return 1<c?u.fT(e,i,l):X;if(e=(c=e[0]).row<0?0:c.row,h=c.col<0?0:c.col,d=c.row<0?t.getRowCount():c.rowCount,v=c.col<0?t.getColumnCount():c.colCount,g=i.row<0?0:i.row,m=i.col<0?0:i.col,p=i.row<0?n.getRowCount():i.rowCount,S=i.col<0?n.getColumnCount():i.colCount,b=w=void 0,f&&(p=(p-=w=n.lT(g,U(p,d),!0))<1?1:p,S=(S-=b=n.lT(m,U(S,v)))<1?1:S),r=2===r||(null==s?void 0:s.pasteLink),o||1===p&&1===S&&!O(u,c))p=d,S=v;else if(!r&&(p%d==0&&1===S?S=v:1===p&&S%v==0?p=d:p%d==0&&S%v==0||(p=d,S=v),!u.zT(e,h,d,v,t.getRowCount(),t.getColumnCount())))return X;if(!o&&t.name()===n.name()&&ot(a))if(s=new nt.Range(g,m,p,S),c=d,r=v,l&&(c=(u=[r,c])[0],r=u[1]),s.contains(e,h,c,r)){if((e-g)%c!=0||(h-m)%r!=0)return X}else if(s.intersect(e,h,c,r)&&(c<p||r<S))return X;return f&&(p+=w,S+=b),n.HT(g,m,p,S)?(-1===i.row&&(p=g=-1),-1===i.col&&(S=m=-1),new nt.Range(g,m,p,S)):X},fT:function(t,e,n){var i,r,o,e,a,s,u,c,f,a,l,s,h,u,i=this,r=i.o5();if(1<t.length){if(o=-1===e.row?0:e.row,e=e.col<0?0:e.col,a=t[0],s=t[1],u=a.rowCount,c=a.colCount,f=a.row===s.row&&u===s.rowCount,a=a.col===s.col&&c===s.colCount,f&&!n||a&&n)return l=0,s=u,t.forEach(function(t){l+=t.colCount}),r&&(s+=i.lT(o,s,!0),l+=i.lT(e,l)),(0,nt.Ec)(o,e,s,l);if(a&&!n||f&&n)return h=0,u=c,t.forEach(function(t){h+=t.rowCount}),r&&(h+=i.lT(o,h,!0),u+=i.lT(e,u)),(0,nt.Ec)(o,e,h,u)}return X},RT:function(t,e,n,i){var r,e,o,n,i,n,r=e.row<0?0:e.row,e=e.col<0?0:e.col,o=new nt.Range(r,e,1,1),n=E(n,"\r\n","\t",'"',y(t),i);return n&&(i=n.length,n=(0,Q.getMaxLength)(n),0<i)&&0<n&&(t.o5()&&(i+=t.lT(r,i,!0),n+=t.lT(e,n)),o=new nt.Range(r,e,i,n)),o},BT:function(t,e,n){var i,e,r,o,a,a,n,a,n,a,i=e.row<0?0:e.row,e=e.col<0?0:e.col,r=1,o=1,a=t.ST();return a&&((a=a.i5()).innerHTML=n,a=(n=a.getElementsByTagName("table"))&&n[0])&&((n=a.rows)&&(r=n.length,a=n[0]&&n[0].cells)&&(o=a.length),0<r)&&0<o&&t.o5()&&(r+=t.lT(i,r,!0),o+=t.lT(e,o)),new nt.Range(i,e,r,o)},YT:function(){var t=this.ST();t&&t.c5()},tA:function(t){if(!this.isEditing()){var e=this.getSelections();if(e&&1===e.length)return this.isActualProtected()&&this.ET(e)?(this.jT(14,this.FT()),X):this.CT(e,!0,t)}return X},yT:function(t){var e,n,i,r,o;if(t){if(1===(e=t.length))return t[0];if(1<e){if(n=t[0],i=t[e-1],o=r=void 0,n.row===i.row&&n.rowCount===i.rowCount){for(r=0;r<e;r++)(o=t[r]).col<n.col&&(n=o),o.col>i.col&&(i=o);return(0,nt.Ec)(n.row,n.col,n.rowCount,i.col+i.colCount-n.col)}if(n.col===i.col&&n.colCount===i.colCount){for(r=0;r<e;r++)(o=t[r]).row<n.row&&(n=o),o.row>i.row&&(i=o);return(0,nt.Ec)(n.row,n.col,i.row+i.rowCount-n.row,n.colCount)}}}return X},wT:function(t){var e,n,i,r,o,a,r,s,u,c,u,f,l,h,e=[],n=[];if(t&&1<(i=t.length)&&(r=t[0],o=t[i-1],a=r.row===o.row&&r.rowCount===o.rowCount,r=r.col===o.col&&r.colCount===o.colCount,a||r))for(t.sort(a?function(t,e){return t.col-e.col}:function(t,e){return t.row-e.row}),s=1;s<i;s++)for(u=t[s-1],c=t[s],u=a?u.col+u.colCount:u.row+u.rowCount,f=a?c.col:c.row,l=a?n:e,h=u;h<f;h++)l.push(h);return{rows:e,cols:n}},eA:function(t){var e,n,i,r,o,a,s,u,c,e=this;if(!e.isEditing()){if((n=e.getSelections())&&1===n.length){if((i=e.ST()).TT=!0,r=n[0],e.iA&&e.iA()){for(o=[],s=(a=-1)===r.row?1:0,u=0;u<r.rowCount;u++)c=r.row+s+u,e.XT(c)?-1!==a&&(o.push((0,nt.Ec)(a,r.col,c-a,r.colCount)),a=-1):-1===a&&(a=c);-1!==a&&o.push((0,nt.Ec)(a,r.col,r.row+s+r.rowCount-a,r.colCount)),n=o}return e.CT(n,!1,t)}if(V(n))return e.CT(n,!1,t);e.jT(1,rt().Exp_MultipleSelections)}return X},rA:function(u,c){var f,l,h,d,v,g,m,p,S,w,f=this,l=f.rt;f.isEditing()||(u&&(h=u.pasteText,d=u.pasteHtml,v=void 0===u.pasteOption?f.options.clipBoardOptions:u.pasteOption,g=u.shiftCells,S=u.isHeaderPaste,p=u.isFromDesigner,m=f.getSelections()[0],!b)&&u.pasteSpecialOptions&&(u.pasteSpecialOptions.operationOptions=0,u.pasteSpecialOptions.pasteLink=!1),l&&!h&&c&&l.IT(""),(w=f.ST())&&(w.oA=!1),setTimeout(function(){var t,e,n,i,i,r,o,a,s;if(!f.xT){if(t=h||"",e=d||"",l&&!h){if(w&&(i=w.QS(),r=w.DS,t=i.text,e=i.html,i=i.image,n=w._S,r)&&n)for(o=0,a=n;o<a.length;o++)s=a[o],nt.mt.J0(s,r.getRowCount(),r.getColumnCount());c&&l.NT()}(C.msie||C.edge||h||!t&&!e&&!w.oA)&&f.US(t,e,i,v,g,m,n,p,S,null==u?void 0:u.pasteSpecialOptions),f.rt.aA(),f.ki(nt.Events.PasteEnd)}},100))},US:function(t,e,n,i,r,o,a,s,u,c){var f,l,l,f=this,l=f.ST();if(l&&(l.oA=!0),!(l=f.uA(t,i,r,e,s,u,c))){if(!n)return;l={pasteOption:void 0===i?f.options.clipBoardOptions:i,pastedRanges:[(0,nt.Ec)(f.getActiveRowIndex(),f.getActiveColumnIndex(),1,1)],clipboardText:""}}r!==it&&(l.sA=r),ot(u)||(l.kse=u),o&&(l.cA=o),a&&(l.fA=a),l.cmd="clipboardPaste",l.sheetName=f.name(),l.pasteSpecialOptions=k(c,l.pasteOption),y(f)&&(l.clipboardHtml=e,l.clipboardImage=n),f.Qy().execute(l)},uA:function(t,e,n,i,r,o,a){var s,u,c,f,l,h,d,v,g,m,p,S,w,b,C,y,M,n,n,k,s=this,u=rt().Exp_InvalidPastedArea,c=s.ST(),f=c.DS,l=c._S,h=c.ES;if(c._S&&null!=a&&a.transpose){for(l=[],d=0;d<c._S.length;d++)g=(v=c._S[d]).row<0?0:v.row,m=v.col<0?0:v.col,p=v.row<0?f.getRowCount():v.rowCount,S=v.col<0?f.getColumnCount():v.colCount,l.push(new nt.Range(g,m,p,S));for(d=0;d<l.length;d++)l[d]=new nt.Range(l[d].row,l[d].col,l[d].colCount,l[d].rowCount)}if(h&&f&&l&&f.isActualProtected()&&f.ET(l)&&(h=!1),w={pastedRange:X,pastedInternal:!1},b=[],1<(C=s.getSelections()).length)for(M=2===e,d=0;d<C.length;d++){if(y=C[d],!s.kT(f,l,y,e,h,t,w,it,i,r,o,a))return;if(y.containsRange(w.pastedRange)&&!y.equals(w.pastedRange)&&!M)return void s.jT(1,u);b.push(w.pastedRange)}else{if(y=0<C.length?C[0]:s.Ut.getSpan(s.ui,s.ci),!s.kT(f,l,y,e,h,t,w,n,i,r,o,a))return;b.push(w.pastedRange)}if((n=s.lA)&&n._T(w.pastedInternal),w.pastedInternal||(l=f=X,h=!1),n=void 0===e?s.options.clipBoardOptions:e,h&&(n=s.hA),l&&1===l.length)for(k=0;k<b.length;k++)s.UT(l[0],v=b[k])&&(v.rowCount=1,v.colCount=1);if(!((!l||1<l.length)&&1<b.length))return{fromSheet:f,fromRanges:l,isCutting:h,pasteOption:n,pastedRanges:b,clipboardText:t};s.jT(1,rt().Exp_MultipleSelections)},HT:function(t,e,n,i,r){var o,a,s,o=this,a=o.getRowCount(),s=o.getColumnCount();return ht(o)?-1<=t&&(r||t<a)&&-1<=e&&(r||e<s):o.zT(t,e,n,i,a,s)}})},"./dist/core/worksheet/worksheet-edit.js":function(t,e,n){"use strict";var e,G,B,i,I,i,P,n,N,R,E,H,r,U,F,y,o,g,n,a,s,u;Object.defineProperty(e,"__esModule",{value:!0}),e=n("./dist/core/core.ns.js"),G=n("./dist/core/worksheet/worksheet.js"),B=n("./dist/core/util/common.js"),i=n("./dist/core/util/domUtil.js"),I=i.GC$,i=n("Common"),P=n("./dist/core/core.enum.js"),n=n("CalcEngine"),N=!!n,R=B.mt.Tt,E=B.mt.pi(),H=i.Common.lt.ht,r=i.Common.zf,U=i.Common.CultureManager,F=null,y=void 0,o="string",g=B.mt.wt,a=(n=new i.Common.ResourceManager(e.SR,"Sheets")).getResource.bind(n),s="=",I.extend(G.Worksheet.prototype,u={startEdit:function(t,e){var n=this;n.f6(n.Dg(),n.ui,n.ci,F,F,t,e)},editorStatus:function(){return this.Di||0},isEditing:function(){var t=this.Di;return 1===t||2===t},endEdit:function(t){return this.ol(t)},ol:function(t,e,n,i){var r,o,a,s,u,r=this;if(!r.isEditing())return!0;r.suspendPaint();try{return o=r.ui,a=r.ci,s=P.SheetArea.viewport,(u=r.vA)&&(o=u.row,a=u.col,s=u.sheetArea,r.vA=y),r.l6(o,a,s,t,e,n,i)}finally{r.resumePaint()}},l6:function(t,e,n,i,r,o,a){var s,u,c,f,t,e,l,h,d,v,g,g,g,m,p,g,S,m,w,p,g,b,C,r,m,p;if(void 0===n&&(n=P.SheetArea.viewport),u=(s=this).rt,c=s.li,f=s.name(),(d=s.getCellType(t=t,e=e,n)).isImeAware(v={sheet:s,row:t,col:e,sheetArea:n})||u.aA(),c&&c.parentNode){if(h=d.getEditorValue(c,v),s.ki(B.Events.EditEnd,g={sheet:s,sheetName:f,row:t,col:e,editor:c,editingText:h,cancel:!1,committed:!i}),g.cancel&&!a)return;if(s.ki(B.Events.EditEnding,g),g.cancel&&!a)return;if(g=(g=s.parent)&&g.h6,document.activeElement===(g&&g.Ti)&&u.aA(),0<=t&&0<=e&&(m=c.d6,p=s.getFormulaInformation&&s.getFormulaInformation(t,e,3),d.isEditingValueChanged(m,h,v)||1===r||p&&p.isArrayFormula&&1!==r))if(i)d.setEditorValue(c,m,v),d.selectAll(c,v);else if(g=d.v6,H(g)&&(g=!0),m={cmd:"editCell",sheetName:f,row:t,col:e,sheetArea:n,newValue:h=(S=s.getActualStyle(t,e)).mask&&p&&!p.hasFormula&&h&&-1<B.FormulaPrefix.indexOf(h[0])?"'"+h:h,autoFormat:g,editingFormatter:c.Ii},1===r&&(m.ranges=[s.U5()],m.endEditType=r),null!==h&&(w=s.tables&&s.tables.find&&(s.tables.find(t-1,e)||s.tables.find(t,e-1)))&&s.tables.yx(F,new B.Range(t,e,1,1),null,h,!0),s.Qy().execute(m),2===(l=m.applyResult)&&(d.focus(c,v),!a))return!1;if(s.k1=!0,p=n===P.SheetArea.colHeader?-1:y,g=n===P.SheetArea.rowHeader?-1:y,d.Sn(c,v,s.getCellRect(t,e,p,g)),d.isImeAware(v))R.msie&&9===parseFloat(R.version)?u.aA():I(c.parentNode.parentNode).css({width:0,height:0,overflow:"hidden",border:"none"});else for(b=s.qc(),C=c;C;)C.parentNode===b?b.removeChild(C):C=C.parentNode}return s.u0=!1,m=I.extend({},r={sheet:s,sheetName:f,row:t,col:e,editingText:h,ignoreValueChange:i,sheetArea:n,committed:!i}),s.ki(B.Events.EditEnded,r),s.ki(B.Events.FormulaTextboxEditEnded,m),!(!0!==o&&m.ignore&&!a)&&(0!==s.Di&&(p=s.Di,s.Di=0,s._i(p,0)),s.Ut.setCellState(t,e,P.CellStatesType.edit,!1,n),G.Worksheet.et(s,"endEdit"),s.li=F,1!==l)},m6:function(t,e,n){var i,r,o,a,s,t,s,r,u,e,i=this,r=i.hitTest(e,n);!r||r.cellTypeHitInfo&&(r.cellTypeHitInfo.outlineColumnHitInfo||r.cellTypeHitInfo.cellButtonHitInfo)||(o=r.row,a=r.col,0<=o&&0<=a&&0<=r.rowViewportIndex&&0<=r.colViewportIndex&&!r.resizeInfo&&!r.dragInfo&&o===i.ui&&a===i.ci&&(s=i.isEditing(),i.f6(t,o,a),!s)&&i.isEditing()&&(t=r.hitTestType,(s=i.getCellType(o,a)).j3)&&(r=i.getCellRect(o,a,1===t?-1:y,2===t?-1:y),u=i.getActualStyle(o,a,t),e=s.Bn(e,n,u,r,{sheet:i,row:o,col:a,sheetArea:t}))&&e.isReservedLocation&&s.j3(i,o,a,3))},inputFormulaAndSelectFormulaRange:function(t,e,n,i){var r,o,a,s,u,c,f,l,h,d,c,r=this,o=r.options,a=r.getCellRect(t,e),s=r.getActualStyle(t,e),u=r.getCellType(t,e),c=r.rt;c.Zg(),f={sheet:r,row:t,col:e,sheetArea:3},(h=(l=c.g6)&&l.firstChild?l.firstChild.firstChild:h)&&(r.li=h,d=r.Fi(),u.isImeAware(f)&&c.p6(),u.On(l,s,a,f),r.Ri(u,h,t,e,s,y,y,y,y,3),u.Rn(l,s,a,f),o.allowCellOverflow&&((c=a.clone()).y-=2,c.height+=4,c.x=d.b6,c.width=r.Gy(d),r.repaint(c)),G.Worksheet.et(r,"startEdit",{element:u.getEditingElement(),row:t,col:e,sheetArea:3}),r.Di=2,r.il.text(i),r.il.caret(i.length-1),n&&r.il.y6(3,4),r.il.w6(),B.hi.F1(r))},f6:function(t,e,n,i,r,o,a,s,u){var c,f,l,h,d,v,g,m,p,p,S,w,b,C,y,M,k,C,k,C,k,k,u,k,C,u,k,C,u,i,T,x,r,p;I[I.sd]({jS:this.parent}),e<0||n<0||(f=(c=this).name(),l=c.options,c.isEditing())||(h=c.C6(i,r),H(h)&&(h=3),(d=c.Ut).setCellState(e,n,P.CellStatesType.edit,!0,h),v=c.getActualStyle(e,n,h),c.isActualProtected()&&!1!==v.locked?(d.setCellState(e,n,P.CellStatesType.edit,!1,h),c.jT(13,c.FT())):(g=c.getCellType(e,n,h))&&(G.Worksheet.et(c,"allowStartEdit",p={row:e,col:n,sheetArea:h,isAllow:m=!0}),p.isAllow)&&((p=c.rt).Zg(),b=(w=g.isImeAware(S={sheet:c,row:e,col:n,sheetArea:h})?p.g6:g.jn(S))&&w.firstChild?w.firstChild.firstChild:b)?(C=v,y=!1,k=U.culture(),(C.formatter&&B.util.h0(C.formatter,k)||!C.formatter&&C._autoFormatter&&C._autoFormatter.formatCached&&B.util.h0(C._autoFormatter,k))&&(u&&u.key&&(C=u.key,k=u.code,C&&-1!==B.NUMBER_ARRAY.indexOf(C)&&(y=!0),"+"!==C&&"-"!==C||(g.probabilityAddPercent=!0),"process"===C.toLowerCase())&&(!u.shiftKey&&0<k.length-k.replace(/[0-9]/,"").length&&(y=!0),!u.shiftKey&&(0<k.length-k.replace("Minus","").length||0<k.length-k.replace("Subtract","").length||0<k.length-k.replace("Add","").length)&&(g.probabilityAddPercentSpec=!0),u.shiftKey)&&0<k.length-k.replace("Equal","").length&&(g.probabilityAddPercentSpec=!0),C=w.innerText,R.msie&&(C=C.replace("\r\n","")),k=U.Fe(U.culture()).NumberFormat.numberDecimalSeparator,k=new RegExp("^[-]?[0-9]+(\\"+k+"[0-9]+)?$"),!u)&&C&&k.test(C)&&(M=!0),c.li=b,c.ki(B.Events.EditStarting,u={sheet:c,sheetName:f,row:e,col:n,cancel:!1}),u.cancel?(E.ipad&&p.aA(),d.setCellState(e,n,P.CellStatesType.edit,!1,h)):(c.vA={row:e,col:n,sheetArea:h},3===h&&c.showCell(e,n,3,3),c.S6=!0,k=c.getValue(e,n,h),C=N&&c.getFormula(e,n,h),u=c.Di,c.Ai||H(k)&&H(C)?c.Di=1:c.Di=2,c._i(u,c.Di),c.isPaintSuspended()&&c.n3(),k=c.Fi(),!(C=c.getCellRect(e,n,i,r))||H(C.width)||H(C.height)||H(C.x)||H(C.y)||C.width<=0||C.height<=0||(g.isImeAware(S)&&p.p6(),g.On(w,v,C,S),c.Ri(g,b,e,n,v,a,s,y,M,h),u=c.qc(),g.isImeAware(S)||u.insertBefore(w,F),delete c.S6,g.Rn(w,v,C,S),g.isImeAware(S)&&o||g.focus(b,S),l.allowCellOverflow&&((i=C.clone()).y-=2,i.height+=4,c._1&&c._1.isEnable(P.RowColumnStates.edit,!1)&&(i.y=k.T6,i.height=k.A6),i.x=k.b6,i.width=c.Gy(k),c.repaint(i)),G.Worksheet.et(c,"startEdit",{element:g.getEditingElement(),row:e,col:n,sheetArea:h,preventFormulaTextBox:!!v.mask}),y||!o||v.mask||g.selectAll(b,S),y&&(T=window.getSelection(),(x=document.createRange()).setStart(b,0),T.removeAllRanges(),T.addRange(x)),M&&(T=window.getSelection(),(r=document.createElement("span")).innerText="%",x=document.createRange(),c.parent.options.enableFormulaTextbox&&c.parent.options.allowUserEditFormula&&!v.mask?(b.firstChild.appendChild(r),x.setStart(b.firstChild,1),c.il&&c.il.I6()):(b.appendChild(r),x.setStart(b,1)),T.removeAllRanges(),T.addRange(x)),B.hi.F1(c),c.ki(B.Events.EditStarted,p={sheet:c,sheetName:f,row:e,col:n,sheetArea:h}),c.ki(B.Events.FormulaTextboxEditStarted,p)))):d.setCellState(e,n,P.CellStatesType.edit,!1,h))},Ri:function(t,e,n,i,r,o,a,s,u,c){var f,l,h,a,d,v,d,f=this,l=N&&f.getFormula(n,i,c,!0),a={sheet:f,row:n,col:i,sheetArea:c,isImeInput:a,cellStyle:r};(h=l=l&&"="+l)&&0!==l.length||((l=f.getValue(n,i,c,1))&&l.richText&&(l=g(l)),d=f.parent,v=N&&d&&d.options.allowUserEditFormula,d=N&&d&&d.options.allowInvalidFormula,B.util.c0(l,r.quotePrefix,v,d)?h=l="'"+l:(h=l,l=t.je(e,r,l,a))),e.d6=l,H(o)||(l=o),u&&(l=l&&this.x6(l,r)),r.mask&&r.mask.pattern&&"'"!==r.mask.pattern[0]&&l&&"'"===l[0]&&-1<B.FormulaPrefix.indexOf(l[1])&&(l=l.substring(1,l.length)),t.setEditorValue(e,l,a,s,u),f.parent&&f.parent.options.enableAccessibility&&(f.parent.Q1e(),f.K1e(e,l,n,i,c)),e.Li=h},K1e:function(t,e,n,i,r){var o,a,s,a,e,n,o=this,a=e&&"="===e[0],s=o.getText(n,i,r),a=a?e:o.getFormula(n,i,r),e=3===r&&o.comments&&o.comments.get(n,i),n=o.N6(n,i,r,s,a,e&&e.text());t.setAttribute("aria-label",n),o.setAccessibilityPrefixSuffixContent&&o.setAccessibilityPrefixSuffixContent()},k6:function(t){var e="",t=t&&(t.formatter||t._autoFormatter);return e=t?typeof t==o?t:t.formatCached:e},x6:function(t,e){var n,i,n,e,r,o,e,r,e,r,e,e,a,s,n=U.Fe(U.culture()).NumberFormat,i=n.negativeSign,n=n.numberDecimalSeparator,e=this.k6(e),r="%"===e[0],e=e.split(";");if(r?o=e[0].split("%")[1].split(".")[1]:-1<e[0].indexOf("%")&&(o="00"),void 0===o&&(o=""),1<t.split("e").length)return r=t.split("e")[0],e=t.split("e")[1],r+"e+"+(parseInt(e.split("+")[1],10)+2);if(1<t.split(n).length){for(r=!1,t.charAt(0)===i&&(t=t.substr(1,t.length-1),r=!0),e=(t+=o).indexOf(n),a=(e=(t=(t=t.split(n).join("")).substr(0,e+2)+n+t.substr(e+2,t.length-1)).split(n))[0],s=e[1];a&&"0"===a.charAt(0);)a=a.substr(1,a.length-1);for(;s&&"0"===s.charAt(s.length-1);)s=s.substr(0,s.length-1);return(a=r?a&&i+a:a)&&s?a+n+s:!a&&s?(r?i+"0"+n:"0"+n)+s:a&&!s?a:"0"}return"0"===t?t:t+o}})},"./dist/core/worksheet/worksheet-event.js":function(r,o,t){"use strict";var a,p,b,u,h,S,d,t,v,O,c,g,m,V,Y,K,f,z,w,W,e,J,Z,Q,X,q,$,tt,et,C,y,M,nt,k,s,T,x,it,rt,ot,at,st,ut,ct,ft,lt,ht,dt,vt,gt,mt,pt,St,wt,G,B,I,bt,Ct,yt,e,Mt,kt,Tt,xt;function Gt(t,e){var n,e,n=[e,e];return n=t<3*e?2===t?[1,0]:1===t?[0,0]:[e=s(t/3),e]:n}function Bt(t,e){var n=3;return H(e)<0&&(n=1),!(3===(n=U(e)<0?2:n)||!t.ni(e.row,e.col,n,!0))}function It(t,e,n){var i,r,o,a,s,u,s,u,c,u,c,i=!1,r=t.Fi();return e&&(o=H(e),s=(a=U(e))<0&&e.col>=t.getFreeAreaColumnCount(d.SheetArea.rowHeader),u=o<0&&e.row>=t.getFreeAreaRowCount(d.SheetArea.colHeader),s||u)&&(s=t.getCellRect(e.row,e.col,o,a,!0))&&0<s.width&&0<s.height&&(u=r.x,c=r.y,s.x<r.XC+u||s.y<r.qC+c||s.y>=r.height-r.D6)&&(u=new S.Rect(s.x-2,s.y-2,s.width+4,s.height+4),c=void 0,c=o<0&&a<0?r.R1():o<0?r.L1(a):r.B1(o),u=u.getIntersectRect(c),n._6(u.x,u.y,u.width,u.height),i=Bt(t,e)),i}function P(t){return t.isEditing()}function N(t){return t.endEdit()}function Pt(t){return t.frozenRowCount()}function Nt(t){return t.frozenColumnCount()}function R(t,e){return t.getRowCount(e)}function E(t,e){return t.getColumnCount(e)}function H(t){return t.rowViewportIndex}function U(t){return t.colViewportIndex}function F(t){return t.hitTestType}function Rt(t){return t.getActiveRowIndex()}function Et(t){return t.getActiveColumnIndex()}function l(t){return t.keyCode}function _(t){return t.ctrlKey}function A(t){return t.shiftKey}function Ht(t){return t.altKey}function Ut(t){return t.metaKey}function L(t){return t.colCount}function Ft(t){return t.rowCount}function D(t,e,n){return{action:t,index:e,sheetArea:n}}function _t(t,e,n){return C===e.O5(t,n,!0)}function At(t,e,n){return C===e.j5(t,n,!0)}function Lt(t,e){return e?t.E6?t.startY-t.movingY:t.movingY-t.startY:t.j6?t.startX-t.movingX:t.movingX-t.startX}function j(t,e,n,i,r,o,a){var e,r,e={sheet:t,sheetName:e,sheetArea:r,row:n,col:i},r=t.getCellType(n,i);return r&&(e=r.lfe(e,a)),o&&(e.cancel=!1),e}function Dt(t,e,n,i,r,o){var a,s,a=t.Mf,s=j(a,a.name(),a.ui,a.ci,y,!0);if(a.ki(S.Events.LeaveCell,s),s&&!0===s.cancel)return!0;a.O6(e,n,i,r,o),a.ki(S.Events.EnterCell,j(a,a.name(),e,n)),a.ki(S.Events.EnterCellInternal,j(a,a.name(),e,n,y,y,S.Events.EnterCellInternal)),t.PA&&t.PA(e,n)}function jt(t,e,n,i,r,o,a){var s,e,u,s=t.Mf,e=e.call(s,o.sheetArea);return(a&&!s.getRowVisible(o.index,o.sheetArea)||!a&&!s.getColumnVisible(o.index,o.sheetArea))&&(o.index=n.call(t,o.index,o.sheetArea)),u=(u=i.call(e,o.index))||i.call(e,r)}function Ot(t,e,n,i,r){var o,a,s,e,n,o=i?"movingY":"movingX",a=i?"startY":"startX";t[o]=e,(s=t.j6||t.E6?t[o]>t[a]:t[o]<t[a])&&(t[o]=t[a]),e=i?n.y+n.height:n.x+n.width,n=i?t.R6:t.B6,t[o]>e&&!n&&(t[o]=e),r!==C&&t[o]>t[a]+r&&(t[o]=t[a]+r)}function Vt(t,e){var n=t.Fi();return 0<Pt(t)&&e<n.T6+n.L6?0:0<t.frozenTrailingRowCount()&&e>n.Ay?2:1}function Yt(t,e){var n=t.Fi();return 0<Nt(t)&&e<n.b6+n.F6?0:0<t.frozenTrailingColumnCount()&&e>n.Hy?2:1}function Kt(t,e,n){var t=t._y(e);return t?t.findNearY(n):C}function zt(t,e){var t=t._y(-1,d.SheetArea.colHeader);return t?t.findNearY(e):C}function Wt(t,e,n){var t=t.Yy(e);return t?t.findNearX(n):C}function Jt(t,e){var t=t.Yy(-1,d.SheetArea.rowHeader);return t?t.findNearX(e):C}function Zt(t){return!t.isActualProtected()||t.options.protectionOptions.allowResizeRows}function Qt(t){return!t.isActualProtected()||t.options.protectionOptions.allowResizeColumns}function Xt(t,e){var n,i,r,e,o,t,n=e.row,i=e.rowCount,r=e.col,e=e.colCount,o=t.getColumnCount(),t=t.getRowCount();return{row:n,col:r,rowCount:i=t<i+n?t-n:i,colCount:e=o<e+r?o-r:e}}function qt(t,e){var n,i,n=t.getViewportBottomRow(t.C0(e));if(e<(n=-1===n?t.P6():n))for(i=n;e<i;i--)if(0!==t.getRowHeight(i))return;return 1}function $t(r){var t,o,a,t=r.Ut.getSelections();if(0<t.length)return o=0,a=r.getRowCount(),t.every(function(t){var t,e,n,i,t=Xt(r,t),e=!1;return 1===t.rowCount&&(e=(o+=1)<=1),n=t.row<a,(i=-1!==t.col)||e&&n})}function te(t,e,n){var i,r,i,r=t.parent.options.rowResizeMode;return n&&0===r&&(r=1),e.action!==G&&1===r&&!qt(t,e.index)&&!(!t.getRowResizable(e.index,e.sheetArea)||!t.getRowResizable(e.index+1,e.sheetArea))&&$t(t)}function ee(t,e,n,i){return te(t,e,i)&&1===n.length&&n[0].firstRow===n[0].lastRow}function ne(t,e){var n,i,n=t.getViewportRightColumn(t.S0(e));if(e<(n=-1===n?t.G6():n))for(i=n;e<i;i--)if(0!==t.getColumnWidth(i))return;return 1}function ie(r){var t,o,a,t=r.Ut.getSelections();if(0<t.length)return o=0,a=r.getColumnCount(),t.every(function(t){var t,e,n,i,t=Xt(r,t),e=!1;return 1===t.colCount&&(e=(o+=1)<=1),n=t.col<a,(i=-1!==t.row)||e&&n})}function re(t,e,n){var i,r,i,r=t.parent.options.columnResizeMode;return n&&0===r&&(r=1),e.action!==bt&&1===r&&!ne(t,e.index)&&!(!t.getColumnResizable(e.index,e.sheetArea)||!t.getColumnResizable(e.index+1,e.sheetArea))&&ie(t)}function oe(t,e,n,i){return re(t,e,i)&&1===n.length&&n[0].firstColumn===n[0].lastColumn}function ae(t,e,n,i,r){var o,a,r,s,o=e.index,a=t.Fi();te(t,e,r)?(r=t.j5(o,n),Ot(e,i,a,!0,s=t.Gt(o,n)+t.Gt(r,n))):Ot(e,i,a,!0)}function se(t,e,n,i,r){var o,a,r,s,o=e.index,a=t.Fi();re(t,e,r)?(r=t.O5(o,n),Ot(e,i,a,!1,s=t.nn(o,n)+t.nn(r,n))):Ot(e,i,a,!1)}function ue(t,e,n){var i,r,o,a,s,u,c,f,i=n?t.frozenRowCount():t.frozenColumnCount(),r=n?t.Tb:t.Ab,o=!1,s=r-1;if(0<i&&i<r)for(u=r-1;i<=u;){if(a=n?t.getRowVisible(u):t.getColumnVisible(u)){if(c=n?t.getRowHeight(u):t.getColumnWidth(u),u===s&&0===c)break;if(0<c){o=!0;break}}else s--;u--}for(f=o?i:e,f--;0<=f;){if(a=n?t.getRowVisible(f):t.getColumnVisible(f))return f;f--}return-1}function ce(t){var t=t.il;return t&&t.U6}function fe(t){for(;t!==O.body;){var e;if(getComputedStyle(t).transform.match(/matrix\([^\)]+\)/))return 1;if(!t.parentNode)break;t=t.parentNode}}function n(t){var e=this;e.Ti=t,e.H6=C,e.z6=C,e.V6=C,e.Y6=C,e.Z6=!1,e.W6=!1}function i(t){this.Q6=0;var e=this;e.K6=0,e.J6=!1,e.X6=!1,e.q6={},e.Mf=t,e.tk="gcEvent"+t._id}Object.defineProperty(o,"__esModule",{value:!0}),o.nk=void 0,a=t("./dist/core/core.ns.js"),p=t("./dist/core/worksheet/worksheet.js"),b=t("Common"),u=t("./dist/core/worksheet/worksheet-model.js"),h=t("./dist/core/util/domUtil.js"),S=t("./dist/core/util/common.js"),d=t("./dist/core/core.enum.js"),t=t("./dist/core/workbook/sheettabbase.js"),v=window,O=document,c=h.GC$.each,g=S.mt.Tt,m=S.mt.pi(),V=S.mt.vi,Y=S.mt.En,K=b.Common.zf,f=b.Common.zf.I5,z=S.Ec,w=b.Common.lt.ht,J="mousedown"+(e=".handler"),Z="mouseup"+e,Q="mousemove"+e,X="mousewheel"+e,q="DOMMouseScroll"+e,$="wheel"+e,tt="mouseout"+e,et="dblclick"+e,C=null,y=void 0,M=isNaN,nt=parseInt,k=Math.max,s=Math.floor,T=Math.min,x=Math.abs,it=Math.ceil,rt="function",ot="position",at="absolute",st="border",ut="overflow",ct="top",ft="left",lt="width",ht="height",dt="resize",vt="hidden",gt="visible",mt="none",pt="tabindex",St="gcUIElement",wt="corner",G="sizeHiddenRow",B="sizeRow",I="sizeCol",bt="sizeHiddenCol",Ct="default",yt=m.iphone||m.ipad||m.android,e=new b.Common.ResourceManager(a.SR,"Sheets"),Mt=e.getResource.bind(e),kt=30,n.prototype.ek=function(t){typeof t==rt&&(this.z6=t)},n.prototype.ik=function(t){var e,n,e=this;M(t)||0===t?e.rk():(e.W6=0<t,t=x(t),(n=e.H6)!==(e.H6=t)&&e.ak())},n.prototype.ak=function(){var t=this;t.d5(),M(t.H6)||(t.V6=v.setInterval(function(){t.uk()},t.H6))},n.prototype.uk=function(){var t=this,e=t.z6;t.Z6=!0,typeof e==rt&&(t.Y6=e.call(t.Ti,t.W6))},n.prototype.rk=function(){var t=this;t.d5(),t.H6=C,t.V6=C,t.Y6=C,t.Z6=!1},n.prototype.d5=function(){var t=this.V6;t&&clearInterval(t)},n.prototype.L0=function(){this.rk()},Tt=n,i.prototype.L0=function(){var t=this;t.sk&&t.sk.L0(),t.ck&&t.ck.L0(),t.fk=C},i.prototype.lk=function(){var t=this;return t.sk||(t.sk=new Tt(t)),t.sk},i.prototype.hk=function(){var t=this;return t.ck||(t.ck=new Tt(t)),t.ck},i.prototype.uw=function(){return this.Mf.uw()},i.prototype.it=function(){var t,t;return t=(t=(0,h.GC$)(this.Mf.Dg()).position())||{top:0,left:0}},i.prototype.gg=function(t){var e,n,e,n,e,i,r,o,a,a,i,r,o,e=S.mt.Qf(),n=_(t),e=e&&!0===n&&0===t.button;return!(2!==t.button&&!e&&(e=(n=this).Mf,n.Fg(),g&&g.msie&&t.offsetX!==y&&t.offsetY!==y&&(r=i=0,o=e.fg,t.target!==o&&(i=(a=S.mt.T0(t.target,o)).I0,r=a.A0),o)&&(a=t.pageX-(t.offsetX+i),i=t.pageY-(t.offsetY+r),o.canvasOffset={top:i,left:a}),r=e.uw(),o=n.dk(t,t.pageX-r.left,t.pageY-r.top),P(e)||o||n.Zg(),e.vk=!0))},i.prototype.Fg=function(){var e=this;e.p4||((0,h.GC$)(O).bind("mousemove.gcSheet."+e.tk,function(t){e.pg(t)}).bind("mouseup.gcSheet."+e.tk,function(t){e.bg(t)}),e.p4=!0)},i.prototype.u2=function(){this.p4&&(this.p4=!1,h.GC$)(O).unbind("mousemove.gcSheet."+this.tk).unbind("mouseup.gcSheet."+this.tk)},i.prototype.dk=function(t,e,n){var i,r,o,a,s,u,c,f,l,h,e,n,e,h,u,c,l,d,v,g,m,i=this,r=i.Mf,o=r.hitTest(e,n),a=o.row,s=o.col,u=o.dragInfo,c=o.formulaRangeHitInfo,f=o.cellTypeHitInfo,l=o.resizeTableHitInfo,h={hitInfo:o,e:t,r:C};if(p.Worksheet.et(r,"processMouseDown",h),e>=(e=r.Fi()).x&&n>=e.y&&(r.sw=o,!h.r))if(i.ab=!0,o.tableSelectInfo&&!r.Nde)i.mk(o,r);else if(o.resizeInfo)(ce(r)||N(r))&&i.gk(o);else if(o.dragMergeInfo)N(r)&&i.pk&&i.pk(o);else if(u&&u.side&&u.side!==wt)N(r)&&(i.bk&&i.bk(o),i.yk(t));else if(u&&u.side===wt)N(r)&&i.wk&&i.wk(o);else if(o.filterButtonHitInfo)N(r);else{if(c)return c.inBorder?(i.Mk(o),!0):c.inTopLeft||c.inTopRight||c.inBottomLeft||c.inBottomRight?(i.Ck(o),!0):void 0;if(l)i.Sk&&i.Sk(o);else if(r.JA(H(o)<0?-1:a,U(o)<0?-1:s)){if(n=r.Nde,o.tableSelectInfo&&n?(e=this.Tk(o,r),o.tableSelectInfo.tableSelection=e,n.Ak(e)):n&&n.Hce(),i.Ik&&i.Ik(r,o))return!0;if(h=Rt(r),u=Et(r),f){if(c=r.getCellType(f.row,f.col,F(o)),f.sheet||(f.sheet=r),i.xk(c,f)&&(l=f.sheetArea,w(l)||3===l)&&(a!==h||s!==u)){r.suspendPaint();try{if(!N(r))return;if(d=j(r,r.name(),h,u,y,!0),r.ki(S.Events.LeaveCell,d),d&&!0===d.cancel)return;v=r.Ut.getSelections(),g=r.Ut.getSpan(a,s),m=[new S.Range(g.row,g.col,g.rowCount,g.colCount)],r.ki(S.Events.FloatingElementSelected,{type:"worksheet"}),r.EA(v,m),r.t4(a,s,y,y,1),r.ki(S.Events.EnterCell,j(r,r.name(),a,s)),r.ki(S.Events.EnterCellInternal,j(r,r.name(),a,s)),r.jA(v),r.Nk=!0,i.PA&&i.PA(a,s)}finally{r.resumePaint()}}c.processCellAndPaddingMouseDown(f)}if(f&&f.isReservedLocation)return!0;i.yk(t),i.kk(r,o,a,s)}}},i.prototype.kk=function(t,e,n,i){var r,n,i,r=this;try{if(r.Dk=e,P(t)&&!N(t))return}finally{r.Dk=C}w(n)||w(i)||(3===F(e)&&r.PA&&r.PA(n,i),t.ki(S.Events.FloatingElementSelected,{type:"worksheet"}),n=t.Ut.getSelections(),r._k(e,n),i=t.Ut.getSelections(),t.EA(n,i))},i.prototype.xk=function(t,e){return t&&e&&e.isReservedLocation&&(!t.activeOnClick||t.activeOnClick())},i.prototype.Ek=function(t){var e,n,e=this.Mf;return!e||(n=e.Fi(),w(t.x))||w(t.y)||w(t.width)||w(t.height)||t.x+t.width>n.Py+e.Gy(n)+n.zy||t.y+t.height>n.Cy+e.Sy(n)+n.Iy},i.prototype.jk=function(t,e,n,i,r){for(var o,a,s,u,c,f,r,r,l,o=this.Mf,s=0,u=t.options,c=u.length;s<c;s++)if((f=u[s]).selected){a=i[s].value;break}r={cmd:"editCell",sheetName:o.name(),row:e,col:n,newValue:a,autoFormat:!0,ignoreFormatting:r,ignoreFormula:!0},r=o.Qy().execute(r),!w(a)&&r&&(l=o.tables&&o.tables.find&&(o.tables.find(e-1,n)||o.tables.find(e,n-1)))&&o.tables.yx(C,new S.Range(e,n,1,1),null,a,!0),(0,h.GC$)(t).hide()},i.prototype.Ok=function(){var t,e,t=this;t.Rk&&(3!==(e=t.Rk.Bk)&&2!==e||t.hk().ek(t.Lk),3!==e&&1!==e||t.lk().ek(t.Fk))},i.prototype.Pk=function(){var t=this;t.ob&&t.Gk(),t.Uk&&t.Hk&&t.Hk(),t.zk&&t.Vk&&t.Vk(),t.Yk&&t.Zk&&t.Zk(),t.Wk&&t.Qk(),t.Kk&&t.Jk(),t.Xk&&t.qk(),t.$k&&t.t9&&t.t9()},i.prototype.Lk=function(t){var e,n,i,r,i,o,a,s,u,t,a,i,e=this,n;e.n9()||(i=e.Rk,r=e.Mf,i=i.e9,o=r.getViewportTopRow(i),a=r.getViewportBottomRow(i),u=(s=r.pge())===o?o:r.j5(o),t?(a<R(r)-r.frozenTrailingRowCount()-1||(t=r._y(i))&&0<t.length&&(a=r.Fi(),(i=t[t.length-1]).y+i.height>=a.Cy+r.Sy(a)))&&r.$A(u):o>Pt(r)&&r.$A(r.nI(o))),e.Pk()},i.prototype.Fk=function(t){var e,n,i,r,o,a,s,u,c,t,s,o,e=this,n;e.i9()||(i=e.Mf,o=(r=e.Rk).r9,a=i.getViewportLeftColumn(o),s=i.getViewportRightColumn(o),c=(u=i.bge())===a?a:i.O5(a),t?(s<E(i)-i.frozenTrailingColumnCount()-1||(t=i.Yy(o))&&0<t.length&&(s=i.Fi(),(o=t[t.length-1]).x+o.width>=s.Py+i.Gy(s)))&&i.o9(c):a>Nt(i)&&i.o9(i.r6(a))),e.Pk()},i.prototype.n9=function(){var t,e,n,i,r,o,a,s,u,c,f,l,h,t=this.Mf,e=t.Fi(),n=Pt(t),i=t.frozenTrailingRowCount(),r=this.fk,o=this.Rk,a=o.e9;if(0===a){if(r.y>e.Cy)return t.$A(t.pw()),o.e9=1,!0}else if(1===a){if((s=t._y(1))&&0<s.length){if(u=s[0],0<n&&r.y<e.Cy&&u.row<=t.pw())return!(o.e9=0);if(u=s[s.length-1],0<i&&r.y>e.Ay&&u.row>=t.P6()&&u.y+u.height<=e.Ay)return o.e9=2,!0}}else if(2===a&&(s=t._y(1))&&0<s.length&&r.y<e.Ay){if((u=s[s.length-1]).y+u.height>e.Ay){for(c=t.Sy(e),l=0,h=f=R(t)-i-1;n<=h;h--)if(c<(l+=t.Gt(h))){f=T(h+1,f);break}t.$A(t.j5(f-1))}return o.e9=1,!0}return!1},i.prototype.i9=function(){var t,e,n,i,r,o,a,s,u,c,f,l,h,t=this.Mf,e=t.frozenTrailingColumnCount(),n=Nt(t),i=t.Fi(),r=this.fk,o=this.Rk,a=o.r9;if(0===a){if(r.x>i.Py)return t.o9(t.Sw()),o.r9=1,!0}else if(1===a){if((s=t.Yy(1))&&0<s.length){if(u=s[0],0<n&&r.x<i.Py&&u.col<=t.Sw())return!(o.r9=0);if(u=s[s.length-1],0<e&&r.x>i.Hy&&u.col>=t.G6()&&u.x+u.width<=i.Hy)return o.r9=2,!0}}else if(2===a&&(s=t.Yy(1))&&0<s.length&&r.x<i.Hy){if((u=s[s.length-1]).x+u.width>i.Hy){for(c=t.Gy(i),l=0,h=f=E(t)-e-1;n<=h;h--)if(c<(l+=t.nn(h))){f=T(h+1,f);break}t.o9(t.O5(f-1))}return o.r9=1,!0}return!1},i.prototype.a9=function(){var t,e,n,i,r,i,o,a,s,s,r,n,i,e,u,t=this;(t.rb||t.u9||t.s9)&&(n=(e=t.Mf).Fi(),i=t.Rk,w(i)||(r=i.e9,i=i.r9,o=t.fk,a=C,0<=r&&0<=i?(a=n.c9(r,i),0===r&&e.Tb===e.frozenRowCount()&&(s=n.c9(1,i),a.height+=s.height),0===i&&e.Ab===e.frozenColumnCount()&&(s=n.c9(r,1),a.width+=s.width)):0<=r?a=n.B1(r):0<=i&&(a=n.L1(i)),a&&(r=(s=e.parent)&&s.options.scrollbarAppearance===d.ScrollbarAppearance.mobile,i=n=0,u=e=!1,o.x<=a.x?(n=o.x-a.x,r&&(u=!0)):o.x>=a.x+a.width?(0===(n=o.x-(a.x+a.width))&&(n=50),r&&(u=!0)):r&&o.x===a.x+a.width-1&&(n=50,u=!0),o.y<=a.y?(i=o.y-a.y,r&&(e=!0)):o.y>=a.y+a.height&&(i=o.y-(a.y+a.height),r)&&(e=!0),s&&r&&(e&&(s.Xb.qy(d.ScrollbarState.show),s.ib.$y(!0)),u)&&(s.zb.qy(d.ScrollbarState.show),s.ib.$y(!1)),t.lk().ik(t.f9(n)),t.hk().ik(t.f9(i)))))},i.prototype.l9=function(){this.lk().rk(),this.hk().rk()},i.prototype.gk=function(t){var e,n,i,r,o,o,n,o,i,t,e=this,n=u.h9.prototype,i=e.Mf,r=t.resizeInfo;r.action===B||r.action===G?(o=jt(e,i.d9,e.v9,n.findRow,t.row,r,!0),r.startY=o.y+(r.E6?o.height:0)):(o=jt(e,i.m9,e.g9,n.findCol,t.col,r,!1),r.startX=o.x+(r.j6?o.width:0)),n=i.parent,o=t.x,i=t.y,!n||(1!==(t=n.options.showResizeTip)||r.action!==I&&r.action!==bt)&&(2!==t||r.action!==B&&r.action!==G)&&3!==t||(i-30<0?i+=15:i-=30,n.Tw(K.j0(e.p9()),o,i)),e.isResizing=!0,e.rb=!0,e.ctrl&&(e.b9=!0)},i.prototype.y9=function(){var t,e,n,i,r,o,r,a,s,u,n,r,u,t=this,e=t.Mf,n=e.sw,i=n.resizeInfo,r=t.fk,o=r.x,r=r.y,a=e.Fi(),s=e.parent,u=i.sheetArea;i&&t.rb&&t.isResizing&&(n.x===o&&n.y===r||(i.action===B||i.action===G?ae(e,i,u,r,t.b9):se(e,i,u,o,t.b9),r=(n=e.Dn).J(),n.FA(a.x,a.y,a.width,a.height),n.jy(r),!s)||(1!==(u=s.options.showResizeTip)||i.action!==I&&i.action!==bt)&&(2!==u||i.action!==B&&i.action!==G)&&3!==u||s.ny(t.w9(i)))},i.prototype.C9=function(){var t,e,n,i,r,o,a,i,s,u,i,s,i,t=this;t.isResizing=!1,e=!(t.rb=!1),i=(n=t.Mf).sw,(r=i.resizeInfo)&&(t.iy(),r.action===B||r.action===G?w(r.movingY)?e=!1:(o=k(0,Lt(r,!0)/n.zoom()),a=[],i="resizeRow",n.S9(r.index)?h.GC$.each(n.Ut.getSelections(),function(t,e){var e;-1===e.col&&(1===r.sheetArea?a.push({firstRow:r.index,lastRow:r.index}):(e=n.JS(e),a.push({firstRow:e.row,lastRow:e.row+Ft(e)-1})))}):a.push({firstRow:r.index,lastRow:r.index}),ee(n,r,a,t.b9)&&(i="splitResizeRow"),s=1===r.sheetArea,n.Qy().execute({cmd:i,sheetName:n.name(),rows:a,size:o,columnHeader:s})):w(r.movingX)?e=!1:(o=k(0,Lt(r)/n.zoom()),u=[],i="resizeColumn",n.T9(r.index)?h.GC$.each(n.Ut.getSelections(),function(t,e){var e;-1===e.row&&(e=n.JS(e),2===r.sheetArea?u.push({firstCol:r.index,lastCol:r.index}):u.push({firstCol:e.col,lastCol:e.col+L(e)-1}))}):u.push({firstCol:r.index,lastCol:r.index}),oe(n,r,u,t.b9)&&(i="splitResizeColumn"),s=2===r.sheetArea,n.Qy().execute({cmd:i,sheetName:n.name(),columns:u,size:o,rowHeader:s})),(i=n.hitTest(t.fk.x,t.fk.y))&&t.cw(i),e||n.repaint(),t.b9=!1)},i.prototype.A9=function(t,e){var n,i,r,o,a,s,u,c,f,l,h,d,v,g,m,p,S,d,c,n=0,i=0,r=0,o=0,a=this,s=a.Mf,u=s.H3,c=Pt(s),f=Nt(s),h=F(t),d=1===h&&s.NMi&&s.NMi.options.isDesignMode&&t.row<s.Ut.getFreeAreaRowCount(h);if(a.I9=a.x9=s.Ut.getSelections(h),s.isCtrlPressed(h)||a.shift||(d?s.IA(h):s.IA()),0===h)!a.shift&&(l=Dt(a,v=c?s.N9():s.Tb,p=f?s.k9():s.Ab,1,1,e))||(s.isCtrlPressed(h)||s.IA(),a.wse(s)?(s.IA(),s.D9(0,0,1,1,!0)):s.D9(-1,-1,R(s),E(s),!0));else if(1===h)d?(S=s.Ut.getSpan(t.row,t.col,1),s.Ut._9(S.row,S.col,S.rowCount,S.colCount),s.D9(S.row,S.col,S.rowCount,S.colCount,!0,1),a.E9=!0):!a.shift&&(v=c?s.N9():s.Tb,g=a.j9(v,t.col,!1),l=Dt(a,g.row,g.col,1,U(t),e))||(a.shift||s.O9?(n=T(s.ci,t.col),o=x(s.ci-t.col)+1,s.kA(-1,n,R(s),o,!0)):s.D9(-1,s.ci,R(s),1,!0));else if(2===h){if(!a.shift){if(d=f?s.k9():s.Ab,g=a.j9(t.row,d,!0),m=s.ui!==g.row,l=Dt(a,g.row,g.col,H(t),1,e))return;m&&u&&u.RA()}a.shift||s.O9?(i=T(s.ui,t.row),r=x(s.ui-t.row)+1,s.kA(i,-1,r,E(s),!0)):s.D9(s.ui,-1,1,E(s),!0)}else if(3===h)if(M(t.row)||M(t.col))P(s)&&(c=s.getCellRect(s.ui,s.ci,s.R9,s.B9),s.Dn._6(c.x,c.y,c.width,c.height));else{if(!a.shift&&(s.ui!==t.row||s.ci!==t.col)){if(m=s.ui!==t.row,l=Dt(a,t.row,t.col,H(t),U(t),e))return;m&&u&&u.RA()}a.shift?s.L9(t.row,t.col,!0):(S=s.Ut.getSpan(t.row,t.col),s.O9||s.D9(S.row,S.col,Ft(S),L(S),!0))}},i.prototype.wse=function(t){for(var e,n,i,r,o,a,e,n=0,i=t.getSelections();n<i.length;n++)if(r=i[n],o=R(t),a=E(t),-1===r.row&&-1===r.col&&r.colCount===a&&r.rowCount===o)return!0;return!1},i.prototype.F9=function(t){var e;!t||3===F(t)&&(M(t.row)||M(t.col))||((e=this).rb=!0,e.ob=!0,e.Rk={e9:H(t),r9:U(t),Bk:F(t)},e.Ok())},i.prototype.P9=function(t,e){var n,i,r,o,t,e,a,s,i,u,n,i=this.Mf,o=i.getSpan(t,e),t=t,e=e,a=1,s=1,i=i.selectionUnit(),u=!1;return 1===i?(s=e=-1,t=o?o.row:t,a=o?o.rowCount:a):2===i?(a=t=-1,e=o?o.col:e,s=o?o.colCount:s):u=!0,r=o&&u?o:new S.Range(t,e,a,s)},i.prototype._k=function(t,e){var n=this,i=n.Mf,r=t.row,o=t.col;i.O9=n.G9(r,o,e,F(t))&&i.parent.options.allowUserDeselect,i.O9&&(i.U9=i.ui,i.H9=i.ci,i.z9=n.P9(r,o)),n.A9(t),n.F9(t)},i.prototype.G9=function(t,e,n,i){var r,o,a,r=this,o=r.Mf,a;return r.V9(t,e,n,i)&&2===o.selectionPolicy()},i.prototype.V9=function(t,e,n,i){var r,o,a,s,u,c,r=this.Mf,o=r.getRowCount(),a=r.getColumnCount();if(!r.isCtrlPressed(i))return!1;for(s=!1,u=n.length,c=0;c<u;c++)if(3===i){if(n[c].contains(t,e,1,1)){s=!0;break}}else if(2===i){if(n[c].contains(t,-1,1,a)||n[c].contains(t,0,1,a)){s=!0;break}}else if(1===i&&(n[c].contains(-1,e,o,1)||n[c].contains(0,e,o,1))){s=!0;break}return s},i.prototype.Gk=function(){var t,e,t=this;t.Rk&&t.rb&&!0!==t.FI&&(3===(e=t.Rk.Bk)?t.Y9():2===e?t.Z9():1===e&&t.W9())},i.prototype.Y9=function(){var t,e,n,i,t,r,o,o,t=this,e=t.Mf,n=t.Q9(),i=t.K9();0<=n&&0<=i&&e.JA(n,i)&&(t.a9(),t=e.Ut.getSelections(),r=e.xA(n,i,e.ui,e.ci),1===t.length&&(o=t[0],!e.O9)&&r.equals(o)||(e.L9(n,i,!0),o=e.Ut.getSelections(),e.O9?e.ki(S.Events.InternalSelectionChanging,{sheet:this,sheetName:e.name(),oldSelections:t,newSelections:r}):e.EA(t,o)))},i.prototype.Z9=function(){var t,e,n,i,n,r,o,a,s,u,i,t=this,e=t.Mf,n=t.Q9(!0);if(0<=n&&e.JA(n,-1)){if(i=T(e.ui,n),n=k(e.ui,n)-i+1,r=-1,o=E(e),0===(a=e.selectionPolicy()))return;2===(s=e.selectionUnit())&&(n=i=-1),u=e.Ut.getSelections(),e.kA(i,-1,n,o,!0),i=e.Ut.getSelections(),e.EA(u,i)}t.a9()},i.prototype.W9=function(){var t,e,n,i,r,n,i,n,i,o,r,a,s,u,n,t=this,e=t.Mf,n=t.Rk.Bk,i=t.Q9(!0,n),r=t.K9(!0,n);if(t.E9&&i<e.Ut.getFreeAreaRowCount(n))n=e.Ut.J9(),i=e.xA(i,r,n.row,n.col,y,1),e.D9(i.row,i.col,i.rowCount,i.colCount,!0,1);else if(t.E9=!1,0<=r&&e.JA(-1,r)){if(n=T(e.ci,r),i=k(e.ci,r)-n+1,o=-1,r=R(e),0===(a=e.selectionPolicy()))return;1===(s=e.selectionUnit())&&(i=n=-1),u=e.Ut.getSelections(),e.kA(-1,n,r,i,!0),n=e.Ut.getSelections(),e.EA(u,n)}t.a9()},i.prototype.X9=function(){var t,e,n,n,i,t=this;t.Rk=C,t.l9(),t.FI=C,t.rb=!1,t.ob=!1,t.q9=t.E9,t.E9=!1,0!==(e=t.Mf).Ut.getSelections().length&&(e.O9&&(e.O9=!1,n=e.z9,e.z9=null,e.tD(e.Ut.getSelections(),n),delete e.U9,delete e.H9),e.Nk?delete e.Nk:((n=!t.x9)||(i=e.Ut.getSelections(),n=t._A(t.x9,i)),n&&e.jA(t.I9,t.shift)),t.x9=e.Ut.getSelections())},i.prototype.nD=function(){var t,e,n,i,t=this.Mf,e=Vt(t,this.fk.y),n=this.Rk.e9,i=t._y(1);return e=0===e&&0<n&&0<i.length&&i[0].row>t.pw()||2===e&&n<2&&0<i.length&&i[i.length-1].row<t.P6()?1:e},i.prototype.eD=function(){var t,e,n,i,t=this.Mf,e=Yt(t,this.fk.x),n=this.Rk.r9,i=t.Yy(1);return e=0===e&&0<n&&0<i.length&&i[0].col>t.Sw()||2===e&&n<2&&0<i.length&&i[i.length-1].col<t.G6()?1:e},i.prototype.Q9=function(t,e,n){var i,r,o,a,r,e,n,r,a;if(void 0===e&&(e=d.SheetArea.viewport),r=(i=this.Mf).Ut,o=this.fk.y,e===d.SheetArea.colHeader){if(a=zt(i,o))return r=r.getFreeAreaRowCount(e),n&&0<r&&a.row>=r?r-1:a.row}else if(a=Kt(i,e=this.nD(),o)){if(n=i.Fi(),r=a.row,1===e&&o<n.Cy){if((a=i.pw())<r)return i.j5(r-1)||r;if(r===a&&t)return 0}else if(0===e&&o<n.T6&&t)return 0;return 1===e&&o>n.Ay&&r>i.getLastFullyVisibleRow()?i.nI(r)||r:r}return-1},i.prototype.K9=function(t,e,n){var i,r,o,a,r,e,n,r,a;if(void 0===e&&(e=d.SheetArea.viewport),r=(i=this.Mf).Ut,o=this.fk.x,e===d.SheetArea.rowHeader){if(a=Jt(i,o))return r=r.getFreeAreaColumnCount(e),n&&0<r&&a.col>=r?r-1:a.col}else if(a=Wt(i,e=this.eD(),o)){if(n=i.Fi(),r=a.col,1===e&&o<n.Py){if((a=i.Sw())<r)return i.O5(r-1)||r;if(r===a&&t)return 0}else if(0===e&&o<n.b6&&t)return 0;return 1===e&&o>n.Hy&&r>i.getLastFullyVisibleColumn()?i.r6(r)||r:r}return-1},i.prototype.f9=function(t){var e,n,e=0;return M(t)||0===t||(n=t<0,e=it(500/x(t)),200<(e=k(20,10*e))&&(e=200),n&&(e=-e)),e},i.prototype.v9=function(t,e){var n,e=this.Mf.nI(t,e);return e!==C?e:t},i.prototype.g9=function(t,e){var n,e=this.Mf.r6(t,e);return e!==C?e:t},i.prototype.oD=function(t,e,n){for(var i=this.Mf;e<t;)if(i.getRowVisible(--t,n))return t;return t},i.prototype.aD=function(t,e,n){for(var i=this.Mf;e<t;)if(i.getColumnVisible(--t,n))return t;return t},i.prototype.uD=function(t,e,n){for(var i=this.Mf;t<e;)if(i.getColumnVisible(++t,n))return t;return t},i.prototype.sD=function(t,e,n){for(var i=this.Mf;t<e;)if(i.getRowVisible(++t,n))return t;return t},i.prototype.cD=function(t,e,n,i,r){var o,a,s,u,c,f,s,u,l,h,d,v,d,g,g,m,m,d,g,c,m,p,S,o=C;if(Zt(t)){if(a=this,s=t.options.reversalTrailingResizeOrder,u=t.Ny,c=2===H(e),s=s&&(f=c&&u),u=c&&!u||s,!(l=t._y(H(e),i))||M(e.row)||M(e.col)){if(M(e.row)&&1===H(e))for(p=3,S=0;S<3&&(o=a.fD(t,S,n,i,r))===C;S++);}else t.getRowVisible(e.row,i)||(e.row=this.v9(e.row,i)),(h=l.findRow(e.row))&&(v=(d=Gt(h.height,n))[0],d=d[1],g=!(s&&l[l.length-1].row===h.row),h.y+h.height-d<=r&&r<=h.y+h.height+d&&g?(o=D(B,e.row,i),0<=(g=l[l.length-1].row)&&(m=t.P6(i),o.index===m)&&o.index!==g&&h.y+h.height-d/2<=r&&(o=D(a.lD(t,g,i),g,i)),c&&At(o.index,t,i)&&(o.R6=!0),s&&(m=a.sD(o.index,l[l.length-1].row,i),(o=D(a.lD(t,m,i),m,i)).E6=s)):h.y-v<=r&&r<h.y+v&&(0<b.Common.Uf.hD(l,h)||u)&&(d=a.oD(e.row,0,i),o=D(a.lD(t,d,i),d,i),s)&&(o=D(B,e.row,i),(o=0<=(g=l[0].row)&&(c=t.j5(g-1,i,!0),o.index===c)&&o.index!==g&&r<h.y+v/2?D(a.lD(t,g,i),g,i):o).E6=s)),!o&&1===H(e)&&0<l.length&&(h=l[0],k(0,h.y-n)<=r)&&r<=h.y+n&&0<=(m=ue(t,e.row,!0))&&(o=D(a.lD(t,m,i),m,i));o&&!t.getRowResizable(o.index,i)&&(o=C)}return o},i.prototype.fD=function(t,e,n,i,r){var o=this,a=C,s=2===e,e=t._y(e,i),e=e[s?0:e.length-1],u,e;return w(e)||0!==e.height||(u=s?e.y:e.y+e.height,e=e.row,k(0,u-n)<=r&&r<=u+n&&(a=D(o.lD(t,e,i),e,i),s)&&(a.E6=!0)),a},i.prototype.lD=function(t,e,n){var i=t.parent;return i&&1===i.options.resizeZeroIndicator&&t.getRowVisible(e)&&0===t._o(e,n)?G:B},i.prototype.dD=function(t,e,n,i,r){var o,a,s,u,c,f,s,u,l,h,d,v,d,g,m,p,m,p,p,g,d,m,c,S,w,o=C;if(Qt(t)){if(a=this,s=t.options.reversalTrailingResizeOrder,u=t.Vy,c=2===U(e),s=s&&(f=c&&u),u=c&&!u||s,!(l=t.Yy(U(e),i))||M(e.col)||M(e.row)){if(M(e.col)&&1===U(e))for(S=3,w=0;w<3&&(o=a.vD(t,w,n,i,r))===C;w++);}else t.getColumnVisible(e.col,i)||(e.col=this.g9(e.col,i)),(h=l.findCol(e.col))&&(v=(d=Gt(h.width,n))[0],d=d[1],g=t.getColumnWidth(e.col,i),m=t.zoom(),p=!(s&&l[l.length-1].col===h.col),h.x+(g*=m)-d<=r&&r<=h.x+g+d&&p?(o=D(I,e.col,i),0<=(m=l[l.length-1].col)&&(p=t.G6(i),o.index===p)&&o.index!==m&&h.x+g-d/2<=r&&(o=D(a.mD(t,m,i),m,i)),c&&_t(o.index,t,i)&&(o.B6=!0),s&&(p=a.uD(o.index,l[l.length-1].col,i),(o=D(a.mD(t,p,i),p,i)).j6=s)):h.x-v<=r&&r<h.x+v&&(0<b.Common.Uf.hD(l,h)||u)&&(g=a.aD(e.col,0,i),o=D(a.mD(t,g,i),g,i),s)&&(o=D(I,e.col,i),(o=0<=(d=l[0].col)&&(m=t.O5(d-1,i,!0),o.index===m)&&o.index!==d&&r<h.x+v/2?D(a.mD(t,d,i),d,i):o).j6=s)),!o&&1===U(e)&&0<l.length&&(h=l[0],k(0,h.x-n)<=r)&&r<=h.x+n&&0<=(c=ue(t,e.col,!1))&&(o=D(a.mD(t,c,i),c,i));(o=o&&t.gD&&t.pD(e,o.index)?C:o)&&!t.getColumnResizable(o.index,i)&&(o=C)}return o},i.prototype.vD=function(t,e,n,i,r){var o=this,a=C,s=2===e,e=t.Yy(e,i),e=e[s?0:e.length-1],u,e;return w(e)||0!==e.width||(u=s?e.x:e.x+e.width,e=e.col,k(0,u-n)<=r&&r<=u+n&&(a=D(o.mD(t,e,i),e,i),s)&&(a.j6=!0)),a},i.prototype.mD=function(t,e,n){var i=t.parent;return i&&1===i.options.resizeZeroIndicator&&t.getColumnVisible(e)&&0===t.Do(e,n)?bt:I},i.prototype.bD=function(t,e,n,i){var r,o,a,s,u,s,c,f,l,a,h,h,h,t,r=this,o=r.Mf,a=o.parent,s=o.options,u=s.colHeaderVisible,s=s.rowHeaderVisible,c=C;return a&&!a.options.allowUserResize||(a=o.Fi(),H(t)<0&&0<=U(t)&&u&&t.row>=o.getFreeAreaRowCount(d.SheetArea.colHeader)?c=(c=r.dD(o,t,i,1,e))||r.cD(o,t,i,1,n):0<=H(t)&&U(t)<0&&s&&t.col>=o.getFreeAreaRowCount(d.SheetArea.rowHeader)?c=(c=r.cD(o,t,i,2,n))||r.dD(o,t,i,2,e):H(t)<0&&U(t)<0?o.P6(2)===C&&x(n-a.qC)<=i?(h=o._y(1))&&0<h.length&&0<=(f=h[h.length-1].row)&&o.getRowResizable(f,2)&&(c=D(r.lD(o,f,2),f,2)):o.G6(1)===C&&x(e-a.XC)<=i&&(h=o.Yy(1))&&0<h.length&&0<=(l=h[h.length-1].col)&&o.getColumnResizable(l,1)&&(c=D(r.mD(o,l,1),l,1)):0<=H(t)&&0<=U(t)&&(f=R(o,1)-1,l=E(o,2)-1,h=o.options.sheetAreaOffset.top,t=o.options.sheetAreaOffset.left,0<=f&&0===a.qC&&h<=n&&n<=i+h&&u?c=D(r.lD(o,f,1),f,1):0<=l&&0===a.XC&&t<=e&&e<=i+t&&s&&(c=D(r.mD(o,l,2),l,2)))),c},i.prototype.yD=function(t,e,n,i){var r,o,a,e,e,e,r,r=this.Mf,o,a=r.Fi().c9(1,1);if(1===e)if((e=r.Yy(e))&&0<e.length){if((e=e[e.length-1]).x+e.width<=n&&n<a.x+a.width)return!0}else if(a.contains(n,i))return!0;if(1===t)if((e=r._y(t))&&0<e.length){if((r=e[e.length-1]).y+r.height<=i&&i<a.y+a.height)return!0}else if(a.contains(n,i))return!0;return!1},i.prototype.pg=function(t){var e=this.uw();this.wD(t,t.pageX-e.left,t.pageY-e.top)},i.prototype.yg=function(){var t,e,n,i,n,n,e,n,t=this.Mf,e=t.sw;e&&(n=e.cellTypeHitInfo)&&(i=t.getCellType(n.row,n.col,F(e))).Ye(n),this.rb||(t.Nk=y,n={x:-1e4,y:-1e4,rowViewportIndex:C,colViewportIndex:C,row:-1,col:-1,resizeInfo:C,hitTestType:C},this.fw(n),e&&(n=e.row,e=e.col,n=t.getActualStyle(n,e),t.MD&&(clearTimeout(t.MD),delete t.MD),t.Mpe&&(clearTimeout(t.Mpe),delete t.Mpe),t.parent)&&n&&n.showEllipsis&&t.parent.iy())},i.prototype.wD=function(t,e,n){var i,t,e,r,n,o,a,s,u,c,f,l,h,d,v,g,m,f,i=this;i.fk={e:t,x:e,y:n},t=i.Mf,i.ab&&!S.hi.A1(t)&&S.hi.F1(t),i.ab&&i.rb?i.isResizing?i.y9():i.Uk?i.Hk&&i.Hk():i.zk?i.Vk&&i.Vk():i.Yk?i.Zk&&i.Zk():i.Wk?i.Qk():i.Kk?i.Jk():i.Xk?i.qk():i.$k?i.t9&&i.t9():i.ob&&i.Gk():(e=t.hitTest(e,n),i.CD(t,e,i),e&&(0===i.Q6&&e.tableSelectInfo&&i.ab&&i.SD(t,i,e),r=t.parent,n=e.row,o=e.col,a=t.C6(e.rowViewportIndex,e.colViewportIndex),c=e.pivotTableInfo,f=!w(c)&&c.options.showToolTip,l=t.isReportTemplateSheet&&t.showToolTip(),r?(u=t.getActualStyle(n,o,a),h=t.getCellRect(n,o,e.rowViewportIndex,e.colViewportIndex),!f||t.isEditing&&t.isEditing()?!l||t.isEditing&&t.isEditing()?(clearTimeout(t.MD),delete t.MD,(s=t.Ci(n,o,a))&&!1!==u.hv&&a?r.Tw(K.j0(s),h.x+h.width+5,h.y+h.height+5,!1):(g=r.options.showScrollTip&&(r.Xb.a4||r.zb.a4||r.Xw.a4))||r.iy()):(s=t.getCellTipContent(n,o),v="gc-spread-template-sheet-toolTip",clearTimeout(t.Mpe),delete t.Mpe,r.iy(),s&&!1!==u.hv&&(t.Mpe=setTimeout(function(t,e){r.Tw(s,t,e+15,!1,v)}.bind(void 0,e.x,e.y),300))):(s=c.sJt(n,o),d="gc-spread-pivot-toolTip",clearTimeout(t.MD),delete t.MD,r.iy(),s&&!1!==u.hv&&(t.MD=setTimeout(function(t,e){r.Tw(s,t,e+15,!1,d)}.bind(void 0,e.x,e.y),700)))):(clearTimeout(t.MD),delete t.MD),i.cw(e),m=i.fw(e))&&r&&r.options.enableAccessibility&&(f=t.t2(e),r.n2(f)))},i.prototype.CD=function(t,e,n){var i,r,o,a,o;1===n.Q6?(i=n.TD.row,r=n.TD.col,o=e.col,a=t.getSelections()[0],t.kA(i,o<r?o:r,a.rowCount,0<r-o?r-o+1:o-r+1,!0)):2===n.Q6&&(i=n.TD.row,r=n.TD.col,o=e.row,a=t.getSelections()[0],t.kA(o<i?o:i,r,0<i-o?i-o+1:o-i+1,a.colCount,!0))},i.prototype.SD=function(t,e,n){var i,t,i,i=t.getActiveRowIndex(),t=t.getActiveColumnIndex();e.TD={row:i,col:t},"tableColSelect"===(i=n.tableSelectInfo.action)?e.Q6=1:"tableRowSelect"===i&&(e.Q6=2)},i.prototype.cw=function(t){var e,n,i,r,o,a,s,r,s,u,c,f,l,h,d,d,r,s,u,e=this,n=e.Mf,i=n.Dg();i&&(a=!(r=n.sw)||t.row!==r.row||t.col!==r.col||F(t)!==F(r)||t.resizeInfo&&!r.resizeInfo||!t.resizeInfo&&r.resizeInfo||t.resizeInfo&&t.resizeInfo.action!==r.resizeInfo.action||t.dragInfo&&!r.dragInfo||!t.dragInfo&&r.dragInfo||t.dragInfo&&t.dragInfo.action!==r.dragInfo.action||t.resizeTableHitInfo&&!r.resizeTableHitInfo||!t.cellTypeHitInfo&&r.cellTypeHitInfo,r&&a&&(s=r.cellTypeHitInfo)&&(o=n.getCellType(s.row,s.col,F(r))).Ye(s),r=t.resizeInfo,s=t.dragMergeInfo,u=t.dragInfo,c=t.formulaRangeHitInfo,f=t.cellTypeHitInfo,l=n.Dn,h=t.resizeTableHitInfo,(d=t.tableSelectInfo)?"tableRowSelect"===d.action?i.style.cursor="url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiIHN0YW5kYWxvbmU9Im5vIj8+CjwhRE9DVFlQRSBzdmcgUFVCTElDICItLy9XM0MvL0RURCBTVkcgMS4xLy9FTiIgImh0dHA6Ly93d3cudzMub3JnL0dyYXBoaWNzL1NWRy8xLjEvRFREL3N2ZzExLmR0ZCI+CjxzdmcgdmVyc2lvbj0iMS4xIiBpZD0iTGF5ZXJfMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayIgeD0iMHB4IiB5PSIwcHgiIHdpZHRoPSI4cHgiIGhlaWdodD0iOHB4IiB2aWV3Qm94PSIwIDAgOCA4IiBlbmFibGUtYmFja2dyb3VuZD0ibmV3IDAgMCA4IDgiIHhtbDpzcGFjZT0icHJlc2VydmUiPiAgPGltYWdlIGlkPSJpbWFnZTAiIHdpZHRoPSI4IiBoZWlnaHQ9IjgiIHg9IjAiIHk9IjAiCiAgICBocmVmPSJkYXRhOmltYWdlL3BuZztiYXNlNjQsaVZCT1J3MEtHZ29BQUFBTlNVaEVVZ0FBQUFnQUFBQUlDQVFBQUFCdUJuWUFBQUFBQkdkQlRVRUFBTEdQQy94aEJRQUFBQ0JqU0ZKTgpBQUI2SmdBQWdJUUFBUG9BQUFDQTZBQUFkVEFBQU9wZ0FBQTZtQUFBRjNDY3VsRThBQUFBQW1KTFIwUUEvNGVQekw4QUFBQUhkRWxOClJRZm1BeDBHTURRVFpSbFpBQUFBUzBsRVFWUUkxMlhOc1ExQVVBQkYwZU9qVWxFYXdTNFM0Mmh0d0JCS0kyQXVJcUhReUhmcW0vZDQKNVZxbGo5eGlWSkRwSlFnYW5jdVF1RC9kYVE0aXFjTm10YXRWSnYxdlZIejdBRU5GRE9OV3daY3lBQUFBSlhSRldIUmtZWFJsT21OeQpaV0YwWlFBeU1ESXlMVEF6TFRJNVZEQTJPalE0T2pVeUt6QXdPakF3VkVsRUpBQUFBQ1YwUlZoMFpHRjBaVHB0YjJScFpua0FNakF5Ck1pMHdNeTB5T1ZRd05qbzBPRG8xTWlzd01Eb3dNQ1VVL0pnQUFBQUFTVVZPUks1Q1lJST0iIC8+Cjwvc3ZnPgo=) 8 4,auto":"tableColSelect"===d.action?i.style.cursor="url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiIHN0YW5kYWxvbmU9Im5vIj8+CjwhRE9DVFlQRSBzdmcgUFVCTElDICItLy9XM0MvL0RURCBTVkcgMS4xLy9FTiIgImh0dHA6Ly93d3cudzMub3JnL0dyYXBoaWNzL1NWRy8xLjEvRFREL3N2ZzExLmR0ZCI+CjxzdmcgdmVyc2lvbj0iMS4xIiBpZD0iTGF5ZXJfMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayIgeD0iMHB4IiB5PSIwcHgiIHdpZHRoPSI4cHgiIGhlaWdodD0iOHB4IiB2aWV3Qm94PSIwIDAgOCA4IiBlbmFibGUtYmFja2dyb3VuZD0ibmV3IDAgMCA4IDgiIHhtbDpzcGFjZT0icHJlc2VydmUiPiAgPGltYWdlIGlkPSJpbWFnZTAiIHdpZHRoPSI4IiBoZWlnaHQ9IjgiIHg9IjAiIHk9IjAiCiAgICBocmVmPSJkYXRhOmltYWdlL3BuZztiYXNlNjQsaVZCT1J3MEtHZ29BQUFBTlNVaEVVZ0FBQUFnQUFBQUlDQVFBQUFCdUJuWUFBQUFBQkdkQlRVRUFBTEdQQy94aEJRQUFBQ0JqU0ZKTgpBQUI2SmdBQWdJUUFBUG9BQUFDQTZBQUFkVEFBQU9wZ0FBQTZtQUFBRjNDY3VsRThBQUFBQW1KTFIwUUEvNGVQekw4QUFBQUhkRWxOClJRZm1BeDBHTlRobnBLRTNBQUFBVGtsRVFWUUkxMlhJTVFwQVVBQUEwUGQ5UlprZHdlNFFWanVUZ3pBN25LTllETCtVb3V5ODhRR1QKMjIyQ0hBUVJBVElmdjRocXZVNkxRMm5QSkkwQmpCb0pDb3ZUYVZZUThkaFVOcXVMRjkwZUQzQ2dxdzV5QUFBQUpYUkZXSFJrWVhSbApPbU55WldGMFpRQXlNREl5TFRBekxUSTVWREEyT2pVek9qVTJLekF3T2pBd21XaEVBQUFBQUNWMFJWaDBaR0YwWlRwdGIyUnBabmtBCk1qQXlNaTB3TXkweU9WUXdOam8xTXpvMU5pc3dNRG93TU9nMS9Md0FBQUFBU1VWT1JLNUNZSUk9IiAvPgo8L3N2Zz4K) 8 4,auto":"tableCornerSelect"===d.action?i.style.cursor="url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiIHN0YW5kYWxvbmU9Im5vIj8+CjwhRE9DVFlQRSBzdmcgUFVCTElDICItLy9XM0MvL0RURCBTVkcgMS4xLy9FTiIgImh0dHA6Ly93d3cudzMub3JnL0dyYXBoaWNzL1NWRy8xLjEvRFREL3N2ZzExLmR0ZCI+CjxzdmcgdmVyc2lvbj0iMS4xIiBpZD0iTGF5ZXJfMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayIgeD0iMHB4IiB5PSIwcHgiIHdpZHRoPSIxMHB4IiBoZWlnaHQ9IjEwcHgiIHZpZXdCb3g9IjAgMCAxMCAxMCIgZW5hYmxlLWJhY2tncm91bmQ9Im5ldyAwIDAgMTAgMTAiIHhtbDpzcGFjZT0icHJlc2VydmUiPiAgPGltYWdlIGlkPSJpbWFnZTAiIHdpZHRoPSIxMCIgaGVpZ2h0PSIxMCIgeD0iMCIgeT0iMCIKICAgIGhyZWY9ImRhdGE6aW1hZ2UvcG5nO2Jhc2U2NCxpVkJPUncwS0dnb0FBQUFOU1VoRVVnQUFBQW9BQUFBS0NBUUFBQUFuT3djMkFBQUFCR2RCVFVFQUFMR1BDL3hoQlFBQUFDQmpTRkpOCkFBQjZKZ0FBZ0lRQUFQb0FBQUNBNkFBQWRUQUFBT3BnQUFBNm1BQUFGM0NjdWxFOEFBQUFBbUpMUjBRQS80ZVB6TDhBQUFBSGRFbE4KUlFmbUF4MEdOd1BrbVNxUkFBQUFZRWxFUVZRSTExM01zUTJETUJRRTBDZTZVRUxDQnBHeUhOUFEyeVVNeFFRWkFjVXhCV0FCZDkzVAovMGVsTitsYzB2djZDNW96anBJc2lZVnJYc0tGbndab3hKMkR0eWh0RHdjdlpvdDhMTGVDbjd5MzVHTytZeXZlTHg4R3FWQmVBYnlQCk1QNG1OSW4zQUFBQUpYUkZXSFJrWVhSbE9tTnlaV0YwWlFBeU1ESXlMVEF6TFRJNVZEQTJPalUxT2pBekt6QXdPakF3anE0VmhBQUEKQUNWMFJWaDBaR0YwWlRwdGIyUnBabmtBTWpBeU1pMHdNeTB5T1ZRd05qbzFOVG93TXlzd01Eb3dNUC96clRnQUFBQUFTVVZPUks1QwpZSUk9IiAvPgo8L3N2Zz4K) 10 5,auto":"tableSelect"===d.action?i.style.cursor="move":"default"===d.action&&(i.style.cursor=""):r?r.action===I?i.style.cursor=S.CursorResource.ResizeCol:r.action===B?i.style.cursor=S.CursorResource.ResizeRow:r.action===bt?i.style.cursor=S.CursorResource.ResizeHiddenCol:r.action===G?i.style.cursor=S.CursorResource.ResizeHiddenRow:i.style.cursor=Ct:s?s.left||s.right?i.style.cursor="w-resize":(s.top||s.bottom)&&(i.style.cursor="n-resize"):u&&"drag"===u.action?u.side===wt?i.style.cursor="crosshair":u.side?i.style.cursor="move":i.style.cursor=Ct:c?(c.inBorder?i.style.cursor="move":c.inTopLeft?i.style.cursor="nw-resize":c.inTopRight?i.style.cursor="ne-resize":c.inBottomLeft?i.style.cursor="sw-resize":c.inBottomRight&&(i.style.cursor="se-resize"),d=e.isFormulaRangeHovering,s=(r=e.AD)&&r.paramRange,u=c.paramRange,e.isFormulaRangeHovering=!0,e.AD={paramRange:u},d&&u.index===s.index||l.kde()):h?i.style.cursor="se-resize":(f&&(o=n.getCellType(f.row,f.col,F(t)),f.sheet=n,a&&o.processMouseEnter(f),o.ze(f)),!a&&f&&f.isReservedLocation||(i.style.cursor=Ct),e.isFormulaRangeHovering&&(e.isFormulaRangeHovering=!1,e.AD=C,l.kde())))},i.prototype.bg=function(t){var e,n,e=this,n=e.Mf;return e.u2(),!n.vk||(n.vk=!1,e.xD(t),!1)},i.prototype.xD=function(t){var e,n,i,i,r,o,e=this,n=e.Mf,i=S.hi.ai();e.ab=!1,e.Q6=0,i&&i!==n&&i.endEdit&&(i.il&&i.il.rl||(i.endEdit(),i.repaint())),S.hi.F1(n),e.isResizing?e.C9():e.Uk?e.ND&&e.ND():e.zk?e.kD&&e.kD(t):e.Yk?e.DD&&e.DD():e.Wk?e._D():e.Kk?e.ED():e.Xk?e.jD():e.$k?e.OD&&e.OD():n.sw&&(r=(i=n.sw).cellTypeHitInfo,!i.filterButtonHitInfo)&&!i.resizeInfo&&0<=i.row&&0<=i.col&&(r&&(o=n.getCellType(r.row,r.col,F(i)),r.sheet||(r.sheet=n),o.Ve(r)),r&&r.isReservedLocation||n.ki(S.Events.CellClick,j(n,n.name(),i.row,i.col,F(i))),e.X9(),n.RD)&&n.BD&&n.BD(),e.LD=!1,e.yk(t)},i.prototype.FD=function(t,e,n){var i,r,i=this.Mf;!i.isEditing||i!==S.hi.ai()||(r=i.Dg(),A(t))||_(t)||i.m6(r,e,n)},i.prototype.pf=function(t){var e,n,i,r,o,a,i,r,o,s,i,u,a,e=this,n=e.Mf;if(n){if(i=Rt(n),r=Et(n),o=n.getCellType(i,r),a={isEditing:P(n),sheet:n,row:i,col:r,sheetArea:3},i={sheet:n,row:i,col:r,sheetArea:3},o&&o.isReservedKey(t,a))return void(P(n)||o.processKeyDown(t,i));if(r={e:t,r:C,c:a},p.Worksheet.et(n,"preProcessKeyDown",r),r.r)return}o=!(P(n)||_(t)||Ut(t)||34!==l(t)&&33!==l(t)&&37!==l(t)&&39!==l(t)&&9!==l(t)&&13!==l(t)&&38!==l(t)&&40!==l(t)),n.Oi&&(n.Oi=!1,n.Dn.PD()),a=27===(i=l(t)),n.RD&&n.GD&&((u=13===i)||a)?n.GD(a):s=o?e.UD?e.HD:e.HD=e.zD(t):e.zD(t),o&&s&&S.hi.A1(n)&&(e.VD=new Date,e.UD?(e.YD<25&&e.YD++,V(t)):(e.UD=!0,e.YD=1,e.ZD(t,!0)))},i.prototype.p9=function(){var t,e,n,i,i,t=this.Mf,e,n=t.sw.resizeInfo;return n.action===B||n.action===G?(i=t.getRowHeight(n.index),f(Mt().Tip_Height,[i])):(i=t.getColumnWidth(n.index),f(Mt().Tip_Width,[i]))},i.prototype.w9=function(t){var e=this.Mf;return t.action===B||t.action===G?f(Mt().Tip_Height,[k(0,s((t.movingY-t.startY)/e.zoom()))]):f(Mt().Tip_Width,[k(0,s((t.movingX-t.startX)/e.zoom()))])},i.prototype.ZD=function(t,e){var n=this;n.UD&&(new Date-n.VD>(1<n.YD?100:600)?n.V5():(e||(n.HD=n.zD(t)),n.UD&&(n.K6=v.setTimeout(function(){n.ZD(t)},e?500:20))))},i.prototype.WD=function(t,e){var n,i,r,o,i,n=this.Mf,i=n.Dg();if(i){n.Ai=!0;try{r=P(n),n.f6&&n.f6(i,n.ui,n.ci,C,C,!0,C,e,t),!r&&P(n)&&(!(o=n.getCellType(n.ui,n.ci)).j3||32!==l(t)||_(t)||A(t)||Ht(t)||o.j3(n,n.ui,n.ci,3),o.QD)&&o.QD(t)}finally{n.Ai=!1,(i=n.ST()).TT&&delete i.TT}}},i.prototype.zD=function(t){var e,n,i,i,r,o,a,s,u,i,r,c,i,f,e=this,n=e.Mf;if(e.yk(t),P(n)||27!==l(t)||Ht(t)||_(t)||A(t)||!n.KD||((0,h.GC$)(n.KD).remove(),n.KD=C),i=n.ST(),P(n)||27!==l(t)||Ht(t)||_(t)||A(t)||!i.TT||delete i.TT,P(n)||34!==l(t)&&33!==l(t)&&35!==l(t)&&36!==l(t)&&38!==l(t)&&40!==l(t)||V(t),P(n)||37!==l(t)&&39!==l(t)||V(t),P(n)&&_(t)&&(89===l(t)||90===l(t)))V(t);else{if(r=(i=n.Qy()).getShortcutKey(l(t),_(t),A(t),Ht(t),Ut(t)),o=i.getCommands(r))for(a=0;a<o.length;a++)if(s={sheetName:n.name(),vge:!0},(u=o[a].execute(n.parent,s))||s.JD)return u.ignoreCancelDefault||V(t),!0;if(i={e:t,r:C},p.Worksheet.et(n,"processKeyDown",i),i.r)return!0;e.Pi(t)&&((r=n.il)&&r.XD&&r.qD(),(c=P(n))||(f=(i=v.gcGlobal.el(t.target))&&"gcAttachedFormulaTextBox"===i.getAttribute(St))||e.WD(t))}return!1},i.prototype.V5=function(){var t=this;t.UD=!1,t.HD=y,(t.YD=0)<t.K6&&(clearTimeout(t.K6),t.K6=0)},i.prototype.bf=function(t){var e,n,i,r,o,a,i,r,a,e=this;if(e.V5(),n=e.Mf){if(i=Rt(n),r=Et(n),o=n.getCellType(i,r),a={isEditing:P(n),sheet:n,row:i,col:r,sheetArea:3},i={sheet:n,row:i,col:r,sheetArea:3},o&&o.isReservedKey(t,a))return void(P(n)||o.processKeyUp(t,i));if((r=n.il)&&r.$D(t))return;if((a=n.parent&&n.parent.h6)&&a.$D(t))return}e.yk(t)},i.prototype.yf=function(t){var e,n,i,e,n=this.Mf,i={e:t,r:C};p.Worksheet.et(n,"processCompositionStart",i),i.r||this.WD(t,!0)},i.prototype.Pi=function(t){return!(_(t)||Ht(t)||Ut(t))&&(65<=l(t)&&l(t)<=90||48<=l(t)&&l(t)<=59||96<=l(t)&&l(t)<=105||186<=l(t)&&l(t)<=192||220<=l(t)&&l(t)<=222||219===l(t)||106<=l(t)&&l(t)<=111||32===l(t)||61===l(t)||173===l(t)||229===l(t)||0===l(t)||8===l(t))},i.prototype.yk=function(t){var e,n,i,r,o,e=this,n=e.Mf,i,r=(S.mt.Qf()?Ut:_)(t);e.ctrl=r&&!A(t),e.shift=A(t)&&!r,e.isPressShiftKey=A(t),!0===e.zk&&(e.t_=r,o=A(t),e.e_&&(o=!A(t)),e.i_=o,n.Dn.o_)&&n.Dn.o_(),e.a_=r},i.prototype.Y5=function(){var t=this;t.shift=!1,t.ctrl=!1,t.zk=!1,t.i_=!1,t.t_=!1,t.a_=!1},i.prototype.By=function(t){var e,n,i,r,o,a,s,t,u,u,c,f,a,s,n,l,c;t&&t.sheet?(e=t.sheet,n=t.editor,i=t.canvasOffset):n=(e=this.Mf).li,P(e)&&(t=d.SheetArea.viewport,(u=e.vA)?(r=u.row,o=u.col,w(u.sheetArea)||(t=u.sheetArea)):(r=e.ui,o=e.ci),t===d.SheetArea.rowHeader?s=-1:t===d.SheetArea.colHeader&&(a=-1),u=e.getCellType(r,o,t),c=e.Fi(),f=e.getActualStyle(r,o,t),a=e.getCellRect(r,o,a,s),n&&n.parentNode&&(s=n.parentNode.parentNode,n=!1,t===d.SheetArea.rowHeader?n=a.x>=c.x&&a.y>=c.y+c.qC&&a.x+a.width<=c.Py&&a.y+a.height<=c.Ay+c.Iy:t===d.SheetArea.colHeader?n=a.x>=c.x+c.XC&&a.y>=c.y&&a.x+a.width<=c.Hy+c.zy&&a.y+a.height<=c.Cy:t===d.SheetArea.viewport&&(n=a.x>=c.b6&&a.y>=c.T6&&a.x+a.width<=c.Hy+c.zy&&a.y+a.height<=c.Ay+c.Iy),a&&0<a.width&&0<a.height&&n?u.Rn(s,f,a,l={sheet:e,row:r,col:o,sheetArea:t,canvasOffset:i}):(0,h.GC$)(s).css({top:-1e4,left:-1e4})),c=e.il)&&c.u_()},i.prototype.s_=function(t,e){var n,i;if(t)for(n=t.firstChild;n;){if(n.id===e||n.name===e)return n;if(i=this.s_(n,e))return i;n=n.nextSibling}return C},i.prototype._A=function(t,e){var n,i,r,o,n=!0;if(t.length===e.length)for(i=0;i<t.length;i++){if(r=t[i],o=e[i],r.row!==o.row||r.col!==o.col||Ft(r)!==Ft(o)||L(r)!==L(o)){n=!0;break}n=!1}return n},i.prototype.f_=function(t,e,n,i){var r,o,a,s,u,c,f,i,i,l,l,t,i,a,r=this,o=r.Mf,a={sheet:o,row:e,col:n,sheetArea:3},s=o.qc(),u=t.isImeAware(a),f=yt?at:"fixed";return i&&!o.isEditing()&&r.l_(),u&&!r.g6&&(i=(c=t.jn(a)).style,r.h_||(r.h_={overflow:gt,border:mt,position:at}),r.h_.overflow=i.overflow,r.h_.border=i.border,r.h_.position=i.position,(0,h.GC$)(c).css([ot,ut,ct,ft,lt,ht,st],[f,vt,"0px","0px","0px","0px",mt]),o.Ri&&c.firstChild&&(i=c.firstChild.firstChild,o.Ri(t,i,e,n,o.getActualStyle(e,n),y,y,y,y,3),l=t.getEditorValue(i,a),g.safari)&&(""===l||w(l))&&t.setEditorValue(i," ",a),s&&s.insertBefore(c,C),r.g6=c),r.d_||(c=Y("div"),(0,h.GC$)(c).css([ot,ut,ct,ft,lt,ht],[f,vt,"0px","0px","0px","0px"]),r.d_=c,l=Y("textarea"),(0,h.GC$)(l).attr(St,"gcSheetFocusInput").attr(pt,-1).css([ot,ut,st,dt],[at,vt,mt,mt]),l.value=" ",c.insertBefore(l,C),r.I1=l,t=Y("div"),(0,h.GC$)(t).css(ot,at).css(ut,vt).attr(St,"gcSheetFocusInput").attr("aria-hidden","true").attr("title","").attr(pt,-1),c.insertBefore(t,C),r.m_=t,s&&s.insertBefore(c,C)),!u&&o.parent&&o.parent.options.enableAccessibility&&(o.parent.Q1e(),o.K1e(r.I1,"",e,n,3)),i=v.location!==v.parent.location,a=0<v.scrollX||0<v.scrollY,(yt||(g.mozilla||g.chrome||g.safari)&&i||a)&&(r.g6&&r.g_(o,r.g6),r.g_(o,r.d_)),u?r.g6:r.I1},i.prototype.p6=function(){var t=this;t.g6&&t.h_&&(0,h.GC$)(t.g6).css(ut,t.h_.overflow).css(st,t.h_.border).css(ot,t.h_.position)},i.prototype.l_=function(){var t=this;t.g6&&(t.g6.parentElement&&t.g6.parentElement.removeChild(t.g6),t.g6.comboBox&&(t.g6.comboBox=C),t.g6=C)},i.prototype.Zg=function(t){S.hi.A1(this.Mf)||this.p_(!0,!0,t)},i.prototype.al=function(){var t=this.m_;t&&t.focus()},i.prototype.aA=function(){this.p_(!0,!0)},i.prototype.b_=function(){this.y_&&(clearTimeout(this.y_),this.y_=C)},i.prototype.p_=function(t,e,n){var i,r,o,a,s,u,c,f,l,h,d,t;0===arguments.length&&(t=!0),(i=this).X6||(i.J6=!1,i.b_(),r=i.Mf,o=Rt(r),a=Et(r),s=r.getCellType(o,a),i.f_(s,o,a,e),u={sheet:r,row:o,col:a,sheetArea:3},c=s.isImeAware(u)&&i.g6.firstChild?i.g6.firstChild.firstChild:i.I1,f=c,e&&!g.msie&&s.setImeMode(f,r.getActualStyle(o,a).imeMode,u),O.body.focus(),l=function(){var t=function(){try{s.isImeAware(u)?(s.focus(f,u),r.isEditing()||s.selectAll(f,u)):(c.focus(),r.isEditing()||c.select())}catch(t){}};e&&g.msie&&s.setImeMode(f,r.getActualStyle(o,a).imeMode,u),t()},d=g.metroMode||m.ipad||m.iphone||m.android,!r.Oi&&!d||!t&&s.isImeAware(u)?!1===r._enhanceIme||n||i.w_(r)||l():!P(r)&&d?e&&(t=i.g6&&i.g6.firstChild&&i.g6.firstChild.firstChild,s.setImeMode(t,r.getActualStyle(o,a).imeMode,u)):i.y_=v.setTimeout(function(){i.w_(r)||(i.b_(),P(r))||!1===r._enhanceIme||n||l()},200),S.hi.A1(r)||i.w_(r)||S.hi.F1(r),i.M_(r))||i.PA&&i.PA(r.ui,r.ci)},i.prototype.g_=function(t,e){var t,n,n,i,r,o,n,i,r,o,t,i,a,t,s,u,c,s,i,c,u,n=Rt(t),i=Et(t),r=t.R9,o=t.B9,n=t.getCellRect(n,i,r,o),i=this,r=t.uw(),o=i.it(),t=i.g6,i=0,a=0;t&&(t=(0,h.GC$)(t),i=parseInt(t.css(ht),10),a=parseInt(t.css(lt),10)),t=n.y+o.top-2,n=n.x+o.left-2,s=v.pageYOffset,u=v.pageXOffset,(c="fixed"===e.style.position&&!fe(e))&&(t-=s,n-=u),s=c?0:s-r.top+o.top,i=v.innerHeight+s-i,c=c?0:u-r.left+o.left,u=v.innerWidth+c-a,(M(t)||t<s||i<t)&&(t=s),(M(n)||n<c||u<n)&&(n=c),(0,h.GC$)(e).css(ct,t).css(ft,n)},i.prototype.C_=function(t){var e,n,i,t,n,e=this;e.b_(),P(e.Mf)||e.J6&&O.activeElement===e.m_||(n=e.Mf,t=t?(i=t.row,t.col):(i=n.ui,n.ci),n=n.getCellType(i,t),e.f_(n,i,t,!1),e.m_.focus(),e.J6=!0)},i.prototype.S_=function(t,e){var n=this;n.J6&&(n.J6=!1,e||n.p_(t))},i.prototype.IT=function(t){var e,n,e,n=this.Mf.ST();n&&(n.YS(t),n.ZS(),this.X6=!0,t)&&n.WS()},i.prototype.NT=function(){var t,e,t=this,e=t.Mf.ST();e&&e.YS(""),t.X6=!1,t.p_(!0,!1)},i.prototype.T_=function(){var t,e,t=this;t.b_(),(e=t.g6)&&((0,h.GC$)(e).remove(),t.g6=y),(e=t.d_)&&((0,h.GC$)(e).remove(),t.I1=y,t.d_=C,t.m_=C)},i.prototype.Tw=function(t,e,n,i){var r=this.Mf.parent;r&&r.Tw(K.j0(t),e,n,i)},i.prototype.ny=function(t,e,n,i){var r=this.Mf.parent;r&&r.ny(t,e,n,i)},i.prototype.iy=function(){var t=this.Mf.parent;t&&t.iy()},i.prototype.fw=function(t){var e,n,i,r,o,a,s,u,s,c,i,r,i,u;function f(t,e){var n=!1;return t||e?t&&e&&(n=t.action===e.action&&t.index===e.index&&t.sheetArea===e.sheetArea):n=!0,n}return i=(n=(e=this).Mf).A_,r=n.I_,a=(a=(a=(o=n.sw)?!1:!0)||t?a:!0)||t.col!==o.col||t.row!==o.row||U(t)!==U(o)||H(t)!==H(o)||F(t)!==F(o)||!f(t.resizeInfo,o.resizeInfo),n.sw=t,a&&(u=(s=n._1)&&s.isEnable(d.RowColumnStates.hover,!0),s=s&&s.isEnable(d.RowColumnStates.hover,!1),c=t.hitTestType,o&&!w(o.hitTestType)&&(n.A_=null,n.I_=null,n.Ut.setCellState(i,r,d.CellStatesType.hover,!1,o.hitTestType),u&&n.x_(i,o.rowViewportIndex,o.colViewportIndex),s&&n.N_(r,o.rowViewportIndex,o.colViewportIndex),u||s||n.k_&&n.k_(d.CellStatesType.hover,i,r,o.hitTestType,o.rowViewportIndex,o.colViewportIndex)),t&&!w(c)&&(i=void 0!==t.row&&void 0!==t.col&&c===d.SheetArea.viewport,n.A_=t.row,n.I_=t.col,t.resizeInfo||(n.Ut.setCellState(t.row,t.col,d.CellStatesType.hover,!0,c),u&&i&&n.x_(t.row,t.rowViewportIndex,t.colViewportIndex),s&&i&&n.N_(t.col,t.rowViewportIndex,t.colViewportIndex),u)||s||n.k_&&n.k_(d.CellStatesType.hover,t.row,t.col,c,t.rowViewportIndex,t.colViewportIndex)),n.D_=!0,i=It(n,o,r=n.Dn),u=It(n,t,r),i=i||u,n.D_=!1,(i||n.gD)&&r.E1(),n.NMi)&&n.NMi.options.isDesignMode&&1===c&&r.E1(y,y,y,y,1),a},i.prototype.j9=function(t,e,n){var t=this.__(t,e,n);return this.E_(t)},i.prototype.__=function(t,e,n){var i,r,o,i=this.Mf.Ut.getSpan(t,e),r=Ft(i),o=L(i);return 1===r&&1===o||n&&1===r||!n&&1===o?i:(n?e++:t++,this.__(t,e,n))},i.prototype.E_=function(t){for(var e,n,i,r,o,a,e=this.Mf,n=t.row,r=R(e),i=n;i<r&&!0!==e.getRowVisible(i);i++);for(i<r&&(n=i),o=t.col,a=E(e),i=o;i<a&&!0!==e.getColumnVisible(i);i++);return z(n,o=i<a?i:o,Ft(t),L(t))},i.prototype.M_=function(t){var e,n,i,r,e=t.floatingObjects&&t.floatingObjects.all(),n=t.shapes&&t.shapes.all();if(!w(e))for(i=0;i<e.length;i++)if(e[i].isSelected())return!0;if(!w(n))for(r=0;r<n.length;r++)if(n[r].isSelected())return!0},i.prototype.w_=function(t){return"function"==typeof t.isShapeTextEditorOpened&&t.isShapeTextEditorOpened()},i.prototype.j_=function(t){var r,e,n,o,a,n,e,i,s,s,i,r=this.Mf,e=t.resizeInfo;return e?(n=r.Ut.getSelections(),e.action===B||e.action===G?(o=[],r.S9(e.index)?c(n,function(t,e){var n,i;if(-1===e.col)for(n=r.JS(e),i=0;i<Ft(n);i++)o.push({row:n.row+i})}):o.push({row:e.index}),r.Qy().execute({cmd:"autoFitRow",sheetName:r.name(),rows:o,columnHeader:1===e.sheetArea})):(a=[],r.T9(e.index)?c(n,function(t,e){var n,i;if(-1===e.row)for(n=r.JS(e),i=0;i<L(n);i++)a.push({col:n.col+i})}):a.push({col:e.index}),r.Qy().execute({cmd:"autoFitColumn",sheetName:r.name(),columns:a,rowHeader:2===e.sheetArea})),!0):(n=t.row,e=t.col,i=t.hitTestType,(s=r.O_(t.rowViewportIndex,t.colViewportIndex,t.hitTestType,t.row,t.col))&&(n=s.row,e=s.col),s=void 0,i=r.getFormula&&r.getFormula(n,e,i,!0),r.f6(r.fg,n,e,t.rowViewportIndex,t.colViewportIndex,!1,s=i?"="+i:s,!1),!1)},xt=i,o.nk=xt,p.Worksheet.ch("eventHandler",{beforeSetHost:function(){var t=this;t.rt=new xt(t)},dispose:function(t){var e,n,i,r,r,i,e=this,n=e.rt;n&&(n.u2(),i=n.tk,(0,h.GC$)(e.Dg()).unbind(J+"."+i).unbind(Z+"."+i).unbind(Q+"."+i).unbind(X+"."+i).unbind(tt+"."+i).unbind(et+"."+i),g.mozilla&&(r="onwheel"in document?$:q,(0,h.GC$)(e.Dg()).unbind(r+"."+i)),n.L0(),n.T_()),(r=e.li)&&(0,h.GC$)(r).remove(),(i=e.R_)&&(i.close(),e.R_=null),!1!==t.clearCache&&(e.B_=C,e.L_=C,e.F_=C,e.P_=C,e.G_=C,e.U_=C,e.rt=C)},setHost:function(t){var f,i,e,n;function r(t,e){var n,i,n,r,o,n=f.uw(),i=e.pageX-n.left,n=e.pageY-n.top,r=f.hitTest(i,n),o=r.dragInfo;r.tableSelectInfo||(o&&t.H_&&"corner"===o.side?t.H_():t.FD(e,i,n))}t&&(i=(f=this).rt,f.B_=function(t){var e={e:t,r:C};if(p.Worksheet.et(f,"preProcessMouseDown",e),!e.r)return i.gg(t)},f.L_=function(t){var e={e:t,r:C};p.Worksheet.et(f,"preProcessMouseMove",e),e.r||i.p4||i.pg(t)},f.F_=function(t){var e={e:t,r:C};return p.Worksheet.et(f,"preProcessMouseUp",e),e.r||f.f2||i.p4?void 0:i.bg(t)},f.wge=function(t,e,n){var i,r,o,a,i=(new Date).valueOf(),a=!f.z_||200<i-f.z_;return w(t)||(a?(r=(0<=(r=t/n)?1:-1)*s(x(r)),f.V_=0):(f.V_+=r=t/n,r=(0<=r?1:-1)*s(x(f.V_)),f.V_-=r)),w(e)||(a?(o=(0<=(o=e/n)?1:-1)*s(x(o)),f.Y_=0):(f.Y_+=o=e/n,o=(0<=o?1:-1)*s(x(f.Y_)),f.Y_-=o)),f.z_=i,{detailY:r,detailX:o}},f.P_=function(t){var e,e,n,i,r,o,a,s,u,a,c,n,e={e:t=t||v.event,r:C};if(p.Worksheet.et(f,"preProcessMouseWheel",e),!e.r)return n=(e=f.parent)&&e.options.scrollByPixel,i=t.detail||t.wheelDelta/-40,r=0,"wheel"===t.type?(o=17,a=t.wheelDeltaY&&Math.abs(t.wheelDeltaY- -3*t.deltaY)<1,s=g.mozilla&&88<=+g.version&&!a?17:1,i=t.deltaY/s,r=t.deltaX/s,n||(x(i)>=x(r)?r=0:i=0),a&&(i=(u=f.wge(i,r,1)).detailY,r=u.detailX)):(a=t.wheelDeltaY,c=t.wheelDeltaX,n||(x(a)>=x(c)?c=0:a=0),(g.safari||g.chrome)&&(s=g.safari?-4:-40,i=(u=f.wge(a,c,s)).detailY,r=u.detailX)),(0!==i||0!==r)&&(n=f.parent.ib.Mg(f,t,nt(i,10)||0,nt(r,10)||0),e.iy(),!!n)&&void 0},f.G_=function(t){var e={e:t,r:C};if(p.Worksheet.et(f,"preProcessMouseOut",e),!e.r)return i.yg(t)},f.U_=function(t){var e,e,n,e={e:t,r:C};p.Worksheet.et(f,"preProcessMouseDbClick",e),e.r||(e=f.sw)&&(n=!1,3===F(e)?r(i,t):n=i.j_(e),n||f.ki(S.Events.CellDoubleClick,j(f,f.name(),e.row,e.col,F(e))))},e=i.tk,t.bind(J+"."+e,function(t){return f.B_(t)}).bind(Z+"."+e,function(t){return f.F_(t)}).bind(Q+"."+e,function(t){return f.L_(t)}).bind(X+"."+e,function(t){return f.P_(t)}).bind(tt+"."+e,function(t){return f.G_(t)}).bind(et+"."+e,function(t){return f.U_(t)}),g.mozilla)&&(n="onwheel"in document?$:q,t.bind(n+"."+e,function(t){return f.P_(t)}))}}),t.Hv.ch("worksheet-event",{preProcessMouseMove:function(t){var e,e,e=this.Vv.getActiveSheet();e&&(e=e.rt)&&e.ab&&e.rb&&e.isResizing&&(e.pg(t.e),t.r=!1)}})},"./dist/core/worksheet/worksheet-formatter.js":function(t,e,s){"use strict";var n,i,r,o,a,l,u,h,c,d,v,g;function f(t,e,n,i,r){var o,e,a,o=e.getRange(n,i);if(e.source&&(t=e.source.Mf),e=o.row,a=o.col,r)if(1===o.rowCount)a=i;else{if(1!==o.colCount)return d;e=n}return m(t,e,a)}function m(t,e,n){var i,r,o,r,t,r;return t&&t.getFormatter?(i=t.getFormatter(e,n))&&"General"!==i?b(i,function(t,e){return a.Be.Re(t,e)}):(r=t.getStyle(e,n),(o=r&&r._autoFormatter)?b(o.formatCached,function(t,e){return o.format(t)}):(t=(r=t.pivotTables)&&r.findPivotTable(e,n))&&(i=(r=t.hqt(e,n))&&r.formatter)?b(i,function(t,e){return a.Be.Re(t,e)}):d):d}function p(t,e){var e=u(t,"E")&&e(1,t);return e&&u(e,"E")}function S(t,e){var e=e(123,t);return u(e,"123")&&0<(e=e.replace(/[1230. ]+/g,"")).length}function w(t,e){var e;if(t=t.replace("DBNum",""),n.Common.$T.qT("[mMdDyYhHseg]").test(t))return e=e(123,t),!u(e,"123")}function b(t,e){var n,i,r,o;if("string"!=typeof t||"="===t[0])return d;if(n={f:t},w(t,e)){if(i=e(44955,t),r=e(44955.11,t),o=e(45323,t),i!==r)return n.t=i===o?6:8,n;if(i!==o)return n.t=7,n}if(u(t,"%"))n.t=0;else if(u(t,"/"))n.t=4;else if(p(t,e))n.t=3;else if(S(t,e))n.t=5;else if(u(t,"0")||u(t,"DBNum",!0))n.t=2;else if(u(t,"GENERAL",!0))n.t=1;else{if(!u(t,"@"))return d;n.t=9}return n}function C(t,e,n,i,r){var n,t,n=n.value;if(n&&2===n.type)return{f:"0.00%",t:0};if(n&&9===n.type)if(0===n.operatorType||1===n.operatorType){if(n.value&&2===n.value.type)return{f:"0.00%",t:0}}else if(2===n.operatorType)return(t=C(t,e,n,i,r))&&0===t.t&&(t.f=t.f.replace("%","00%")),t;return d}function y(t,e,n,i,r){var o,t,o=T(t,e,n.value,i,r),t=T(t,e,n.value2,i,r);if(7===o.t||8===o.t){if(7===t.t||8===t.t)return d;if(6===t.t)return 8===o.t?o:{f:o.f+" "+t.f,t:8}}else if(6===o.t){if(8===t.t)return t;if(7===t.t)return{f:t.f+" "+o.f,t:8}}return 0===o.t&&0===t.t?{f:(t.f.length>o.f.length?t:o).f,t:0}:1!==o.t?o:t}function M(t,e,n,i,r){var o,t,o=T(t,e,n.value,i,r),t=T(t,e,n.value2,i,r);return 9===o.t?o:9===t.t?t:5<=o.t?5<=t.t?d:o:5<=t.t?t:3===o.t?o:3===t.t?t:4===o.t?o:4===t.t?t:2!==o.t&&1!==o.t&&2!==t.t&&1!==t.t&&0===o.t&&0===t.t?{f:(t.f.length>o.f.length?t:o).f,t:0}:d}function k(t,e,n,i,r){var o,a,s,u,c,f,o=n.functionName&&n.functionName.toUpperCase(),a=g[o];if(l(v[o]))return"number"==typeof a?T(t,e,f=n.arguments[a],i,r):a?a(t,e,n,i,r):d;switch(v[o]){case 6:s="H:mm:ss";break;case 7:s=h.Fe().DateTimeFormat.shortDatePattern||"M/d/yyyy";break;case 8:s=h.Fe().DateTimeFormat.defaultDatePattern||"M/d/yyyy H:mm:ss";break;case 0:s="0.00%";break;case 5:u=h.Fe().NumberFormat.currencySymbol||"$",s=(c=h.Fe().predefinedFormats.Currency)&&c[c.length-1]||"".concat(u,"#,##0.00_);[Red](").concat(u,"#,##0.00)")}return{f:s,t:v[o]}}function T(t,e,n,i,r){if(n)if(9===n.type){if(2===n.operatorType)return C(t,e,n,i,r);if(3===n.operatorType||4===n.operatorType)return y(t,e,n,i,r);if(5===n.operatorType||6===n.operatorType||7===n.operatorType)return M(t,e,n,i,r);if(0===n.operatorType||1===n.operatorType)return T(t,e,n.value,i,r)}else{if(1===n.type||13===n.type||22===n.type)return f(t,n,i,r);if(7===n.type)return k(t,e,n,i,r);if(10===n.type)return T(t,e,n.value,i,r)}return d}function x(t,e,n,i,r){var o=t.getFormatter(i,r);(!o||o.toUpperCase&&"GENERAL"===o.toUpperCase())&&(n=t.oMt.Fyt(i,r)||n,G(t,i,r,T(t,e,n,i,r)))}function G(t,e,n,i){var r=t.Z_(e,n)||new o.Style;(i="string"==typeof i?b(i,function(t,e){return a.Be.Re(t,e)}):i)&&1!==i.t?r._autoFormatter=new c(i.f):delete r._autoFormatter,delete r.formatter,t.setStyle(e,n,r)}Object.defineProperty(e,"__esModule",{value:!0}),e.Ffe=e.Fue=e.Pue=void 0,n=s("Common"),i=s("./dist/core/util/domUtil.js"),r=s("./dist/core/worksheet/worksheet.js"),o=s("./dist/core/worksheet/style.js"),a=s("./dist/core/util/common.js"),l=n.Common.lt.ht,u=n.Common.zf.OS,h=n.Common.CultureManager,c=n.Formatter&&n.Formatter.GeneralFormatter,d={t:1},i.GC$.extend(r.Worksheet.prototype,{getFormatter:function(t,e,n){return this.l0(t,e,"formatter",n)},setFormatter:function(t,e,n,i){var r=this.Z_(t,e,i),r;(r=r||new o.Style).formatter=n,this.setStyle(t,e,r,i)}}),r.Worksheet.ch("formatter",{settingText:function(t){var e,e,e=a.util.Kf(t.value);c&&e&&(e={},(new c).getPreferredDisplayFormatter(t.value,e),"number"==typeof e.value)&&(t.value=e.value)}}),v={NOW:8,TODAY:7,TIME:6,DATE:7,IRR:0,XIRR:0,MIRR:0,RATE:0,YIELD:0,INTRATE:0,NPV:5,XNPV:5},(g={SUM:0,MAX:0,MIN:0,AVEDEV:0,FLOOR:0,ROUND:0,ROUNDUP:0,ROUNDDOWN:0,INT:0,TRUNC:0}).SINGLE=g["@"]=function(t,e,n,i,r){var n=n.arguments[0];return!n||1!==n.type&&13!==n.type?d:f(t,n,i,r,!0)},g.INDIRECT=g.OFFSET=g.INDEX=function(i,t,e,r,o){var n,a,n=s("SheetsCalc"),a=d;return n&&(e.Gue=function(t,e,n){a=l(e)?f(i,t,r,o):m(n&&n.Mf||i,t,e)},n.evaluateExpression(i,e,r,o)),a},e.Pue=T,e.Fue=x,e.Ffe=G},"./dist/core/worksheet/worksheet-json.js":function(r,t,e){"use strict";var t,Y,K,z,at,W,n,C,st,o,ut,i,ct,p,e,ft,e,a,G,s,pt,c,J,Z,lt,Q,ht,B,X,dt,St,d,v,l,g,wt,y,I,P,u,f,bt,M,N,vt,m,S,b,R,k,h,Ct,yt,Mt,w,E,kt,Tt,xt,H,nt,q,$,gt,T,U,F,_,mt,e;function x(t,e){return dt(t)?e:dt(e)?t:Math.max(t,e)}function A(t,e,n,i){var t,t;t.dataTable&&(e.dataTable||(e.dataTable={}),t=t.dataTable[n])&&(e.dataTable[n]||(e.dataTable[n]={}),t=t[i])&&(e.dataTable[n][i]||(e.dataTable[n][i]={}),t.formula)&&(e.dataTable[n][i].formula=t.formula)}function it(t,e,n,i,r){var o,a,s,u,c,f,l,h,d,v,g,o=t.Ut,a=o.W_(),s=o.W_(st.SheetArea.colHeader),u=o.Q_(!0),c=o.Q_(!0,st.SheetArea.colHeader),f=o.K_(),l=o.K_(st.SheetArea.colHeader),h=a.getColumnCount();for(!r&&dt(e.colHeaderData)?e.colHeaderData={}:o.ap=n,s.setRowCount(n),d=0;d<n;d++)for(s.setNode(d,-1,a.J_(d,-1)),c.X_(d,u.q_(d)),v=i;v<h;v++)s.setNode(d,v,a.J_(d,v)),r||A(e.data,e.colHeaderData,d,v);(g=f.getSpans((0,at.Ec)(0,0,n,h))).forEach(function(t){l.add(t)}),t.frozenRowCount(0)}function rt(t,e,n,i,r){var o,a,s,u,c,f,l,h,d,v,g,o=t.Ut,a=o.W_(),s=o.W_(st.SheetArea.rowHeader),u=o.Q_(!1),c=o.Q_(!1,st.SheetArea.rowHeader),f=o.K_(),l=o.K_(st.SheetArea.rowHeader),h=a.getRowCount();for(!r&&dt(e.rowHeaderData)?e.rowHeaderData={}:o.fp=n,s.setColumnCount(n),d=0;d<n;d++)for(s.setNode(-1,d,a.J_(-1,d)),c.X_(d,u.q_(d)),v=i;v<h;v++)s.setNode(v,d,a.J_(v,d)),r||A(e.data,e.rowHeaderData,v,d);(g=f.getSpans((0,at.Ec)(0,0,h,n))).forEach(function(t){l.add(t)}),t.frozenColumnCount(0)}function L(t,e){switch(t){case"frozenRowCount":case"frozenColCount":case"frozenTrailingRowCount":case"frozenTrailingColCount":case"activeRow":case"activeCol":case"frozenTopRow":case"frozenLeftCol":return 0===e;case"rowCount":return 200===e;case"columnCount":return 20===e;case"zoomFactor":case"rowHeaderColCount":case"colHeaderRowCount":return 1===e;case"visible":case"frozenTrailingRowStickToEdge":case"frozenTrailingColumnStickToEdge":return!0===e}}function tt(t,e){return Q(t)?t:e}function et(t,e,n,i){Q(n)&&e.call(t,n,!!Q(i)&&i)}function ot(n,i,r,o,a,s){lt&&ht(lt,function(t,e){var e=e.fromJson;e&&e.call(n,i,r,o,!Q(a)||a,s)})}function D(t,i){var t=t.Uw&&t.Uw(3).t8.jme(-1,-1,-1,-1);t&&t.forEach(function(t){var e,n;t.isValid||(e=i[t.minX]&&i[t.minX][t.minY])&&(n={row:t.minX,rowCount:t.maxX-t.minX+1,col:t.minY,colCount:t.maxY-t.minY+1,isDynamicArray:!0},t.isValid||(n.isInvalid=!0),e.arrayInfo=n)})}function j(t,e){var e=I(e,Ct+"&tabColor");e&&(t.sheetTabColor=f(e))}function O(t,e,n){_t(t,e,n),ut.Util.wo(n,t.parent&&t.parent.v2)&&V(t,n)}function V(t,e){J&&t.Lp.resumeAdjust(),Ot(t,e)}function Gt(t,e,n){t.showCell(e,n,st.VerticalPosition.top,st.HorizontalPosition.left)}function Bt(t){var t,e,n,t,t=y(t,yt);return t&&t.ref&&(t=M(t.ref,!0))&&(e=t.row+t.rowCount,n=t.col+t.colCount),{rowCount:e=dt(e)||e<-1?Y.Worksheet.n8:e,colCount:n=dt(n)||n<-1?Y.Worksheet.e8:n}}function It(t,e){var t,e,n,t=t.defaults,e=y(e,Tt);e&&(n=e.defaultColWidth,isNaN(n)?(t.colWidth=at.SJSColumnWidthHelper.defaultColumnWidthToPixel(8),t._isExcelDefaultColumnWidth=!0):t.colWidth=at.SJSColumnWidthHelper.columnWidthToPixel(parseFloat(n)),t.rowHeight=at.SJSColumnWidthHelper.pointToPixel(e.defaultRowHeight))}function Pt(r,o,a,t){var e,n,i,s,u,c,f,l,h,d,v,g,m,p,S,w,b,b,C,C,y,b,i,C,d,e=I(o,"sheetViews&sheetView"),n=r.Ut,i=r.options,d=!a||!1!==a.includeStyles,v=ut.Util.Co(a),g=r.getRowCount(),m=r.getColumnCount(),p=o.lossless,S=0,w=0;return e&&((b=e.topLeftCell)&&(f=M(b),S=f?f.row:0,w=f?f.col:0),e.zoomScale&&r.zoom(e.zoomScale/100),b=i.gridline,(C=o.lossless&&o.lossless.gridline)?(b.showHorizontalGridline=!!dt(C.showHorizontalGridline)||C.showHorizontalGridline,b.showVerticalGridline=!!dt(C.showVerticalGridline)||C.showVerticalGridline):"0"===e.showGridLines&&(b.showHorizontalGridline=!1,b.showVerticalGridline=!1),C&&!dt(C.color)?b.color=C.color:e.colorId&&64!=+e.colorId&&(b.color=at.ColorHelper.getIndexedColor(e.colorId)),k(e.showRowColHeaders,!0)||(i.rowHeaderVisible=!1,i.colHeaderVisible=!1),k(e.showFormulas)&&(i.showFormulas=!0),i.showZeros=k(e.showZeros,!0),k(e.tabSelected)&&r.b2(!0,!1),C=P(e,"pane"),y=3,d&&C&&0<C.length&&C.forEach(function(t){var e,e,t,n,i,e=t.state;"frozen"!==e&&"frozenSplit"!==e||(t.topLeftCell&&(c=t.topLeftCell),e=t.xSplit,t=t.ySplit,n=S,i=w,t&&g<=(l=+t+n)&&(g=x(g,l)),e&&m<=(h=+e+i)&&(m=x(m,h)),Ut(r,o,a,l,h,S,w),t&&e?(f=M(c),S=f.row||0,w=f.col||0):t&&!e?(f=M(c),S=f.row||0,w=i):!t&&e&&(f=M(c),S=n,w=f.col),g<S&&(g=S+1),m<w&&(m=w+1))}),d&&Ft(r,o),d&&(p&&p.defaultStyle?((b=new K.Style).fromJSON(p.defaultStyle,gt,r),r.setDefaultStyle(b)):t.defaultStyle&&r.setDefaultStyle(t.defaultStyle)),(i=P(e,"selection"))&&0<i.length&&i.forEach(function(t){var e,e,e,t,e,e=t.activeCell;e&&(e=M(e),s=e.row,u=e.col,g=x(g,e.row+1),m=x(m,e.col+1)),e=t.panel,!(t=t.sqref)||e&&3!==e||(e=N(t),n.selectionModel.selections=e,v&&e&&e.forEach(function(t){var e=t.row+(0<t.rowCount?t.rowCount:1),t=t.col+(0<t.colCount?t.colCount:1);g=x(g,e),m=x(m,t)}))}),v)&&ut.Util.So(r,g,m,t),C=p?tt(p.rowHeaderColCount,Y.Worksheet.r8):Y.Worksheet.r8,d=p?tt(p.colHeaderRowCount,Y.Worksheet.o8):Y.Worksheet.o8,r.setColumnCount(C,st.SheetArea.rowHeader),r.setRowCount(d,st.SheetArea.colHeader),r.O6(s||0,u||0,gt,gt,!0),{showCellRow:S,showCellCol:w}}function Nt(l,t,h,d,e,v){var g,n,m,i,i,p,S,w,n,e,b,C,i,g=!e||!1!==e.includeStyles,n=l.Ut,m=n.Q_(!1,3),i=y(t,xt),i=i&&i.c_,p=n.W_(3),S=p.a8,w=R(e);i&&0<i.length&&(n=l.name(),e=(e=v.sheetColumnInfos)||(v.sheetColumnInfos={}),b=[],C=l.getColumnCount(),i.forEach(function(t,e){var n,r,i,o,a,a,s,u,c,n,i,f,n=t.width,r=k(t.hidden,!1),i=t.outlineLevel,a=p.J_(-1,e,!0),a=a&&a.style,s=+t.min,u=+t.max,c=T;for(dt(n)||(c=at.SJSColumnWidthHelper.columnWidthToPixel(parseFloat(n)),r&&0===c&&(c=gt)),r=r&&dt(i)?r:T,w?t.t!==gt?o=h.getOriginNamedStyle(t.t):t.e!==gt&&(o=_(h.getOriginStyle(t.e))):o=h.getStyle(t.style),S&&G(S.style,-1,e,a,o),o=g&&o?o:T,1==s&&u===Y.MAX_COLUMN_COUNT&&(v.dataEffectByInflate[l.name()]||(v.dataEffectByInflate[l.name()]={}),v.dataEffectByInflate[l.name()].setColumnInfo=function(t){var e,n,i;if(!(t.col<0||t.colCount<=0))for(e=t.col,n=0,i=t.colCount;n<i;n++)ut.Util.cme(l,m,e+n,c,r,o)}),n=u===Y.MAX_COLUMN_COUNT,i=+t.max,u=n?x(s,d):i,f=s;f<=u;f++)ut.Util.cme(l,m,f-1,c,r,o);C<i&&b.push({minCol:+t.min,maxCol:i,columnSize:c,hidden:r,colStyle:o})}),e[n]=b),(i=t.lossless&&t.lossless.colInfos)&&i.forEach(function(t,e){dt(t)||(dt(t.colTag)||(l.setTag(-1,e,t.colTag),delete t.colTag),m.X_(e,t))})}function Rt(t,e){var e,n,i,e=y(e,w);e&&(n=t.spanModels[3],(i=e.c_).forEach(function(t){var t=M(t.ref);n.find(t.row,t.col)||n.add(t)}))}function Et(t,o,a){var e,s;if(0<t.length)return e={n_:E},s=[],t.forEach(function(t){var e,n,n,n,i,r,r,i,r,e={n_:ct.XFileConstants.ku,lossless:{}},n=o[t.row+","+t.col],n=vt(n||(0,at.Ec)(t.row,t.col,1,1));e.ref=n,(i=(n=t.hyperlink).url)&&(i.substring(0,(r="sjs://").length)===r?e.location=u(i.replace(r,"")):(r=ct.XFileConstants.Rr+ut.Util.wr(a),a.c_.push({n_:ct.XFileConstants.Lr,Id:r,Target:u(i),Type:ct.RelationshipConstants.pc,TargetMode:ct.XFileConstants.Cu}),e[h]=r),"string"==typeof(i=t.value))&&(e.display=u(i)),n.tooltip&&(e.tooltip=u(n.tooltip)),r=e.lossless,dt(n.visitedLinkColor)||(r.visitedLinkColor=n.visitedLinkColor),dt(n.drawUnderline)||(r.drawUnderline=n.drawUnderline),dt(n.command)||(r.command=n.command),dt(n.target)||(r.target=n.target),dt(n.linkColor)||(r.linkColor=n.linkColor),s.push(e)}),e.c_=s,e}function Ht(u,t){var e,e,c,f,e=y(t,E);e&&(e=e.c_)&&(c=u.Ut.sheetModels[3].dataTable,f=t.rels&&t.rels.c_||[],e.forEach(function(t){var e,n,e,i,r,r,o,a,o,s,s,e=t.ref.split(":"),n=v(e[0]),e=d(e[0]),i=l(t.tooltip);t[h]&&(r=g(f,t[h]),r=l(r&&r.Target)),(o=l(t.location))&&(r=r?r+"#"+o:"sjs://"+(o="#"===o[0]?o.substr(1):o)),o="hyperlink",o="string"==typeof(a=c[n]&&c[n][e]&&c[n][e].style)?(s=u.u8(a))&&s.foreColor:a&&a.foreColor,s=t.lossless||{},u.setHyperlink(n,e,{url:r,tooltip:i,linkColor:s.linkColor||o,visitedLinkColor:s.visitedLinkColor||"followedHyperlink",drawUnderline:!!dt(s.drawUnderline)||s.drawUnderline,command:s.command,target:s.target||0},3)}))}function Ut(t,e,n,i,r,o,a){t.ome(i,o,!0),t.ame(r,a,!0)}function Ft(t,e){var e=e.lossless;e&&(et(t,t.frozenTrailingRowCount,e.frozenTrailingRowCount),et(t,t.frozenTrailingColumnCount,e.frozenTrailingColCount),t.Ny=!Q(e.frozenTrailingRowStickToEdge)||e.frozenTrailingRowStickToEdge,t.Vy=!Q(e.frozenTrailingColumnStickToEdge)||e.frozenTrailingColumnStickToEdge,dt(e.frozenlineColor)||(t.options.frozenlineColor=e.frozenlineColor))}function _t(t,e,n){var i=n&&n.frozenColumnsAsRowHeaders,n=n&&n.frozenRowsAsColumnHeaders,r=t.frozenRowCount(),o=t.frozenColumnCount();0<r&&n&&it(t,gt,r,o,!0),0<o&&i&&rt(t,gt,o,r,!0)}function At(t,e){var n,i,r,o,a,s,n=t.options,i=y(e,"sheetProtection"),r=n.protectionOptions;if(i)for(o in i.algorithmName&&i.hashValue&&i.saltValue&&i.spinCount&&(t.oue={algorithmName:i.algorithmName,hashValue:i.hashValue,saltValue:i.saltValue,spinCount:+i.spinCount}),delete i.algorithmName,delete i.hashValue,delete i.saltValue,delete i.spinCount,i)if(i.hasOwnProperty(o))switch(s="0"===(a=i[o]),o){case ct.XFileConstants.ru:n.isProtected="1"===a;break;case"selectLockedCells":r.allowSelectLockedCells=s;break;case"selectUnlockedCells":r.allowSelectUnlockedCells=s;break;case"autoFilter":r.allowFilter=s;break;case"sort":r.allowSort=s;break;case"insertColumns":r.allowInsertColumns=s;break;case"insertRows":r.allowInsertRows=s;break;case"deleteColumns":r.allowDeleteColumns=s;break;case"deleteRows":r.allowDeleteRows=s;break;case"objects":r.allowEditObjects=s;break;default:"1"===i[o]||"0"===i[o]?r[o]="0"===i[o]:"n_"!==o&&"c_"!==o&&(r[o]=i[o])}t.isActualProtected()&&!0!==r.allowEditObjects&&i.objects===gt&&(r.allowEditObjects=!0)}function Lt(e,n){var i={sheetAreaOffset:function(t){dt(t.left)||(e.sheetAreaOffset.left=t.left),dt(t.top)||(e.sheetAreaOffset.top=t.top)}};n&&n.sheetOptions&&Object.keys(n.sheetOptions).forEach(function(t){dt(n.sheetOptions[t])||(i[t]&&"function"==typeof i[t]?i[t](n.sheetOptions[t]):e[t]=n.sheetOptions[t])})}function Dt(t,e){t&&e&&(t.ghe=e.parameter)}function jt(t,e){var n={rowHeaderAutoText:t.rowHeaderAutoText,colHeaderAutoText:t.colHeaderAutoText,rowHeaderAutoTextIndex:t.rowHeaderAutoTextIndex,colHeaderAutoTextIndex:t.colHeaderAutoTextIndex,allowCellOverflow:t.allowCellOverflow,clipBoardOptions:t.clipBoardOptions,selectionBackColor:t.selectionBackColor,selectionBorderColor:t.selectionBorderColor,sheetAreaOffset:{left:t.sheetAreaOffset.left,top:t.sheetAreaOffset.top}};return e&&(n.rowHeaderVisible=t.rowHeaderVisible,n.colHeaderVisible=t.colHeaderVisible),n}function Ot(t,e){var n,e,i,n=e&&e.frozenColumnsAsRowHeaders,e=e&&e.frozenRowsAsColumnHeaders;(n||e)&&(i=t.Ut,e&&Q(i.ap)&&(t.cp=!0,t.deleteRows(0,i.ap)),n)&&Q(i.fp)&&t.deleteColumns(0,i.fp)}function Vt(t,e,n,i,r,o){var a,s,u,c,f,l;if(t){if(n.col=Math.max(t.getActiveColumnIndex(),0),n.row=Math.max(t.getActiveRowIndex(),0),a=0<r,s=0<o,0===i){if(!a||!s)return}else if(1===i){if(!s)return;a&&(n.col=o,n.row=0)}else if(2===i){if(!a)return;s&&(n.col=0,n.row=r)}if(n.col=Math.min(ct.XmlConstants.xo,n.col),n.row=Math.min(ct.XmlConstants.Io,n.row),e)if(u=void 0,c=t.getSelections())for(f=0;f<c.length;f++)"object"==typeof(l=c[f])&&(u=new at.Range(0<l.row?l.row:0,0<l.col?l.col:0,0<l.rowCount?l.rowCount:ct.XmlConstants.Io,0<l.colCount?l.colCount:ct.XmlConstants.xo),e.push(u));else e.push(new at.Range(n.row,n.col,1,1));return 1}}function Yt(t,e,n){var i,r,o,a,s,u,c,f,l,h,d,v,g,m,p,p,m,S,w,i=t.getSelections();if(i&&0!==i.length)for(r=n?t.frozenRowCount():0,o=n?t.frozenColumnCount():0,a=[],s=new at.Range(0,0,1,1),u=0,f=-(c=1),l=3;0<=l;l--)if(a.length=0,Vt(t,a,s,l,r,o)){for(c=a.length,u=0;u<c;u++)-1!==(h=-1!==(h=a[u]).col&&-1!==h.colCount?h:new at.Range(h.row,0,h.rowCount,ct.XmlConstants.xo)).row&&-1!==h.rowCount||(h=new at.Range(0,h.col,ct.XmlConstants.Io,h.colCount)),s.col>=h.col&&s.col<=h.col+h.colCount-1&&s.row>=h.row&&s.row<=h.row+h.rowCount-1&&(f=u);if(f<0&&0<c&&(s.row=a[0].row,s.col=a[0].col),d=""+b(s.col)+(s.row+1),v="",0<o&&0<r&&(1===l||2===l))v=d;else{for(u=0;u<c;u++)g=a[u],m=Math.min(ct.XmlConstants.Io,g.row+1),p=Math.min(g.col,ct.XmlConstants.xo),v+=""+b(p)+m,(1<g.colCount||1<g.rowCount)&&(p=Math.min(p+g.colCount-1,ct.XmlConstants.xo),m=Math.min(m+g.rowCount-1,ct.XmlConstants.Io),v+=":"+(S=""+b(p)+m)),v+=" ";v=v.trim()}ut.StringEx.Xi(v)||3===l&&(0<o||0<r||3!==l)||(w={n_:"selection"},3!==l&&(w.pane=mt[l]),w.activeCell=d,0!==f&&0===l&&(w.activeCellId=f.toString()),w.sqref=v,e.c_.push(w))}}function Kt(t,e,n,i){var e,i,e=(e&&e.theme?e:i).theme,i=new W.Theme(void 0);n&&e?e&&i.yh(e):i.yh("Office"),t.currentTheme(i)}function zt(t,e){t&&(t[e]=2)}function Wt(t,e){var n,i,r,o,a,s,s,n=t.options.protectionOptions,i,r={n_:"sheetProtection"};for(a in t.isActualProtected()&&(r.sheet="1"),o=function(t){return t?"0":"1"},n)n.hasOwnProperty(a)&&(s=n[a],["allowSelectLockedCells","allowSelectUnlockedCells","allowEditObjects"].includes(a)&&s||(s=ut.protectionOptionsMap[a]||a,(e||ut.excelSupportProtectionOptions[s])&&(r[s]=o(n[a]))));if(t.oue&&(at.util.w1(r,t.oue),r.spinCount=!dt(r.spinCount)&&""+r.spinCount),1<Object.keys(r).length)return r}function Jt(t,e){var t,n,n=function(t){var t=t.range();return e.intersect(t.row,t.col,t.rowCount,t.colCount)};return null==(t=t.tables)?void 0:t.all().some(n)}function Zt(t,e,n){for(var i,r,o,a,s,u,c,i=[],r=t.getSpans(),o={},a=0;a<r.length;a++)s=r[a],u=!e&&Jt(t,s),s&&!u&&(i.push({n_:ct.XFileConstants.xu,ref:vt(s)}),o[s.row+","+s.col]=s);return{spanRowColInfos:o,sjsMergeCells:c=n&&0<i.length?{n_:w,c_:i}:c}}Object.defineProperty(t,"__esModule",{value:!0}),t=e("Common"),Y=e("./dist/core/worksheet/worksheet.js"),K=e("./dist/core/worksheet/style.js"),z=K.Style.xp,at=e("./dist/core/util/common.js"),W=e("./dist/core/util/theme.js"),n=e("./dist/core/util/domUtil.js"),C=e("./dist/core/worksheet/stylehelper.js"),st=e("./dist/core/core.enum.js"),o=e("CalcEngine"),ut=e("./dist/core/excel-io-util/common.js"),i=e("./dist/core/excel-io-util/range-parser.js"),ct=e("./dist/core/excel-io-util/excel-types.js"),p=e("./dist/core/worksheet/worksheet-model.js"),e=e("./dist/core/core.ns.js"),ft=void 0,e=new t.Common.ResourceManager(e.SR,"Sheets"),a=e.getResource.bind(e),G=at.UsedRangeUtil.updateUsedRangeByData,pt=16384,c=1048576,J=!!o,Z=t.Common.CultureManager,lt=Y.Worksheet.fh,Q=at.util.T1,ht=n.GC$.each,B=n.GC$.isEmptyObject,X=t.Common.kh,dt=t.Common.lt.ht,St=ut.IndexHelper.nr,d=ut.IndexHelper.$i,v=ut.IndexHelper.qi,l=at.util.n1,g=ut.Util.Sr,wt=at.util.Pr,y=at.util.xr,I=at.util.o1,P=at.util.go,u=at.util.vo,f=at.util.d1,bt=at.util.h1,M=i.range_parser._c,N=i.range_parser.Dc,vt=i.range_parser.jc,m=i.range_parser.Oc,S=t.Common.zf,b=ut.Util.No,R=ut.Util.ko,k=ut.NodeHelper.ur,h=ct.XFileConstants.Ki,Ct=ct.XFileConstants.Su,yt=ct.XFileConstants.Tu,Mt=ct.XFileConstants.Au,w=ct.XFileConstants.Iu,E=ct.XFileConstants.Nu,kt=ct.XFileConstants.Du,Tt=ct.XFileConstants._u,xt=ct.XFileConstants.Eu,H=ct.XFileConstants.bo,nt="string",q=parseInt,$=isNaN,gt=void 0,T=null,U="1",F="0",_=t.Common.lt.tv,(e=mt=mt||{})[e.bottomRight=0]="bottomRight",e[e.topRight=1]="topRight",e[e.bottomLeft=2]="bottomLeft",e[e.topLeft=3]="topLeft",n.GC$.extend(Y.Worksheet.prototype,{s8:function(t,e,n,i,r,o){var t,e;t[e]||(t[e]={}),(t=t[e])[n]||(t[n]={}),e=t[n],r&&!dt(e.value)||(e.value=i),dt(o)||(e.style=o)},c8:function(t,e,n,i,r,o){var t,a,s,u,c,f,c,t=y(t,H),a=t[e],s=(s=(a=a||(t[e]={}))[n])||(a[n]={});switch(u=typeof i){case"boolean":s.b=i?1:0;break;case"string":f=(c=(0,p.getOADateNumber)(i,r)).OADateNumber,c=c.valueIndex,s.o=f,s.v=c;break;case"object":i&&i.richText?s.v=r.getTextIndex(i):s.v=i;break;default:s.n=i}dt(o)||(s.s=o)},Op:function(t,e){for(var n,i,r,o,a,s,u,c,f,l,h,d,v,g,m,m,n=this,i=n.Ut,r=i.W_(),o=i.W_(st.SheetArea.colHeader),a=i.Q_(!0),s=i.Q_(!0,st.SheetArea.colHeader),u=i.K_(),c=i.K_(st.SheetArea.colHeader),f=n.rowFilter(),l=r.getColumnCount(),h=0;h<t;h++)for(r.setNode(h,-1,o.J_(h,-1)),d=s.q_(h),n.NMi&&(v=n.defaults.colHeaderRowHeight)!==p.DEFAULT_COL_HEADER_ROW_HEIGHT&&(d?dt(d.size)&&(d.size=v):d={size:v}),a.X_(h,d),g=e;g<l;g++)(m=(m=o.J_(h,g))||{}).style=n.getActualStyle(h,g,st.SheetArea.colHeader),r.setNode(h,g,m),(m=n.getFormula(h,g,st.SheetArea.colHeader))&&n.setFormula(h,g,m,st.SheetArea.viewport);c.getSpans().forEach(function(t){u.add(t)}),f&&f.range&&-1===f.range.row&&(f.f8=!0),n.frozenRowCount(t),i.l8(Y.Worksheet.o8,l,st.SheetArea.colHeader),i.h8(!1,st.SheetArea.colHeader),i.d8(st.SheetArea.colHeader),n.b3(st.SheetArea.colHeader).clearAll()},jp:function(t,e){for(var n,i,r,o,a,s,u,c,f,l,h,d,d,n=this,i=n.Ut,r=i.W_(),o=i.W_(st.SheetArea.rowHeader),a=i.Q_(!1),s=i.Q_(!1,st.SheetArea.rowHeader),u=i.K_(),c=i.K_(st.SheetArea.rowHeader),f=r.getRowCount(),l=0;l<t;l++)for(r.setNode(-1,l,o.J_(-1,l)),a.X_(l,s.q_(l)),h=e;h<f;h++)(d=(d=o.J_(h,l))||{}).style=n.getActualStyle(h,l,st.SheetArea.rowHeader),r.setNode(h,l,d),(d=n.getFormula(h,l,st.SheetArea.rowHeader))&&n.setFormula(h,l,d,st.SheetArea.viewport);c.getSpans().forEach(function(t){u.add(t)}),n.frozenColumnCount(t),i.l8(f,Y.Worksheet.r8,st.SheetArea.rowHeader),i.h8(!1,st.SheetArea.rowHeader),i.d8(st.SheetArea.rowHeader),n.b3(st.SheetArea.rowHeader).clearAll()},toJSON:function(n){var a,t,e,i,r,o,r,s,s,e,r,i,u,s,c,f,l,h,d,v,g,m,p,S,w,S,a=this,t=n&&n.ignoreStyle;for(l in!n||n.kp||a.NMi||(e=a.getRowCount(st.SheetArea.colHeader),i=a.getColumnCount(st.SheetArea.rowHeader),r=n.rowHeadersAsFrozenColumns,s=(o=n.columnHeadersAsFrozenRows)&&0<e,(r=r&&0<i)&&a.addColumns(0,i),s&&a.ffe(0,e,3,s),r&&a.jp(i,s?e:0),s&&a.Op(e,r?i:0)),s=a.getRowCount(),e=a.getColumnCount(),r=a.getRowCount(st.SheetArea.colHeader),i=a.getColumnCount(st.SheetArea.rowHeader),u={name:n&&n.newWorkSheetName||a.name(),isSelected:a.b2(),rowCount:s,columnCount:e,activeRow:a.ui,activeCol:a.ci,zoomFactor:a.zoom(),rowHeaderColCount:i,colHeaderRowCount:r,visible:a.visible(),parameter:a.ghe},s=a.getDockScrollbarAttachedIndex(),dt(s)||(u.dockScrollbarAttachedIndex=s),t||(u.frozenRowCount=a.frozenRowCount(),u.frozenColCount=a.frozenColumnCount(),u.frozenTopRow=a.bve,u.frozenLeftCol=a.yve,u.frozenTrailingRowCount=a.frozenTrailingRowCount(),u.frozenTrailingColCount=a.frozenTrailingColumnCount(),u.frozenTrailingRowStickToEdge=a.Ny,u.frozenTrailingColumnStickToEdge=a.Vy,u.theme=a.hl.toJSON()),f=(c=a.Ut).toJSON(n))u[l]=f[l];for(d in lt&&ht(lt,function(t,e){e.toJson&&e.toJson.call(a,u,n)}),h={},u)!X(u,d)||dt(v=u[d])||L(d,v)||(h[d]=v);if(D(a,u.data.dataTable),ht(a.options,function(t,e){var n,i,r,o,n=e;"gridline"===t&&(n={},i=e.color,r=e.showHorizontalGridline,o=e.showVerticalGridline,i&&i!==at.I.fl("gc-gridlineColor").borderTopColor&&(n.color=i),!1===r&&(n.showHorizontalGridline=r),!1===o)&&(n.showVerticalGridline=o),"sheetAreaOffset"===t&&(n={},e.left&&(n.left=e.left),e.top)&&(n.top=e.top),"protectionOptions"===t&&a.oue&&at.util.w1(n,a.oue),"_ps"===t||dt(n)||Y.Worksheet.Pp[t]===n||"object"==typeof n&&B(n)||(h[t]=n)}),g=[],m=a.Hp){for(p in m)X(m,p)&&(S=m[p])&&(w=S.toJSON(),S=S.font,B(w)||(S&&(w.font=C.W.b5(S)),g.push(w)));0<g.length&&(h.namedStyles=g)}return h},fromJSON:function(t,F,e,n,i){var r,o,a,e,s,u,c,f,l,h,d,v,g,m,p,S,w,b,C,y,M,k,T,x,G,_,B,A,I,L,P,D,j,N,O,R,V,E,H,U;if(e&&(r=e.noSchema,o=e.version),t){e=(a=this).Ut,s=n&&n.ignoreStyle,a.Zp(),(u=a.Uw&&a.Uw())&&!u.G3&&(c=u.G3=!0),Y.Worksheet.et(a,"preFromJson"),a.suspendPaint(),e.v8(),e.m8(),f=Z.culture(),Z.culture(""),l=tt(t.rowCount,Y.Worksheet.n8),h=tt(t.columnCount,Y.Worksheet.e8);try{if(a.ub(t.name+"",!0),a.b2(t.isSelected),a.setRowCount(l),a.setColumnCount(h),a.ghe=t.parameter,a.Hp={},d=t.namedStyles)for(v=0;v<d.length;v++)g=d[v],m=new K.Style,z(g,a),m.fromJSON(g,r,a),a.$p(m);for(S in p=a.options)if(X(p,S)&&(w=t[S],"protectionOptions"===S?(w=w||t.protectionOption)&&(w.algorithmName&&w.hashValue&&w.saltValue&&w.spinCount&&(a.oue={algorithmName:w.algorithmName,hashValue:w.hashValue,saltValue:w.saltValue,spinCount:w.spinCount}),delete w.algorithmName,delete w.hashValue,delete w.saltValue,delete w.spinCount):"allowCellOverflow"===S&&(w=Q(t[S])?t[S]:!o||11<=o),Q(w)))if("object"==typeof w)for(b in w)X(w,b)&&(p[S][b]=w[b]);else"borderWidth"===S?(p.sheetAreaOffset.left=w,p.sheetAreaOffset.top=w):p[S]=w;if(C=tt(t.activeRow,a.ui),y=tt(t.activeCol,a.ci),a.O6(C,y,gt,gt,!0),s||(et(a,a.frozenRowCount,t.frozenRowCount,t.frozenTopRow||0),et(a,a.frozenColumnCount,t.frozenColCount,t.frozenLeftCol||0),et(a,a.frozenTrailingRowCount,t.frozenTrailingRowCount),et(a,a.frozenTrailingColumnCount,t.frozenTrailingColCount),a.Ny=!Q(t.frozenTrailingRowStickToEdge)||t.frozenTrailingRowStickToEdge,a.Vy=!Q(t.frozenTrailingColumnStickToEdge)||t.frozenTrailingColumnStickToEdge),!s){if(M=t.colStyles)for(k in M)$(k)||a.setStyle(-1,q(k,10),M[k],st.SheetArea.viewport);if(T=t.rowStyles)for(x in T)$(x)||a.setStyle(q(x,10),-1,T[x],st.SheetArea.viewport)}G=tt(t.rowHeaderColCount,Y.Worksheet.r8),_=tt(t.colHeaderRowCount,Y.Worksheet.o8),a.setColumnCount(G,st.SheetArea.rowHeader),a.setRowCount(_,st.SheetArea.colHeader),a.g8(tt(t._zoomFactor||t.zoomFactor,a.zoom())),!1===t.visible?t.visible=st.SheetTabVisible.hidden:!0===t.visible&&(t.visible=st.SheetTabVisible.visible),et(a,a.visible,t.visible),B=a.b8,A={sheet:a,setValidator:function(t,e,n){B&&B.y8(t,e,n)},ignoreStyle:s},a.w8(t),e.fromJSON(t,r,A,a.Lp&&a.Lp.allowDynamicArray),a.defaults=e.defaults,B&&B.C8(!0),I=t.dockScrollbarAttachedIndex,dt(I)||a.setDockScrollbarAttachedIndex(I),(L=t.theme)&&!s&&(typeof(P=L)!=nt&&Q(P)&&(D="_themeColor",j="_name",N=P.themeColor||P[D],(O=new W.ColorScheme(N.name||N[j])).fromJSON(N,r),P=new W.Theme(P.name||P.Zc,O,P.headingFont||P.Aee,P.bodyFont||P.See)),a.currentTheme(P)),ot(a,t,r,n,F,i),R=n&&n.frozenColumnsAsRowHeaders&&!a.NMi,E=(V=n&&n.frozenRowsAsColumnHeaders&&!a.NMi)&&t.frozenRowCount||0,H=R&&t.frozenColCount||0,V&&0<E&&it(a,t,E,H),R&&0<H&&rt(a,t,H,E),J&&(U=a.Uw(),0<E&&(U.S8=E),0<H)&&(U.T8=H),i||(0<E&&a.deleteRows(0,E),0<H&&a.deleteColumns(0,H)),a.clearPendingChanges()}finally{c&&delete u.G3,Z.culture(f),e.A8(),a.resumePaint()}}},Yp:function(a,s,t,u,c){var f,e,l,h,d,v,n,i,r,o,g,m,p,S,t,w,b,C,y,M,t,w,k,t;if(t&&(f=t.noSchema,e=t.version),a){if(h=(l=this).Ut,d=u.ignoreStyle,l.Zp(),Y.Worksheet.et(l,"preFromJson"),h.v8(),h.m8(),v=Z.culture(),Z.culture(""),l.Hp={},n=a.namedStyles)for(i=0;i<n.length;i++)r=n[i],o=new K.Style,z(r,l),o.fromJSON(r,f,l),l.$p(o);for(m in g=l.options)if(X(g,m)&&(p=a[m],"protectionOptions"===m?p=p||a.protectionOption:"allowCellOverflow"===m&&(p=Q(a[m])?a[m]:!e||11<=e),Q(p)))if("object"==typeof p)for(S in p)X(p,S)&&(g[m][S]=p[S]);else"borderWidth"===m?(g.sheetAreaOffset.left=p,g.sheetAreaOffset.top=p):g[m]=p;if(t=tt(a.activeRow,l.ui),w=tt(a.activeCol,l.ci),l.O6(t,w,gt,gt,!0),d||(et(l,l.frozenRowCount,a.frozenRowCount),et(l,l.frozenColumnCount,a.frozenColCount),et(l,l.frozenTrailingRowCount,a.frozenTrailingRowCount),et(l,l.frozenTrailingColumnCount,a.frozenTrailingColCount),l.Ny=!Q(a.frozenTrailingRowStickToEdge)||a.frozenTrailingRowStickToEdge,l.Vy=!Q(a.frozenTrailingColumnStickToEdge)||a.frozenTrailingColumnStickToEdge),!d){if(b=a.colStyles)for(C in b)$(C)||l.setStyle(-1,q(C,10),b[C],st.SheetArea.viewport);if(y=a.rowStyles)for(M in y)$(M)||l.setStyle(q(M,10),-1,y[M],st.SheetArea.viewport)}t=tt(a.rowHeaderColCount,Y.Worksheet.r8),w=tt(a.colHeaderRowCount,Y.Worksheet.o8),l.setColumnCount(t,st.SheetArea.rowHeader),l.setRowCount(w,st.SheetArea.colHeader),l.g8(tt(a._zoomFactor||a.zoomFactor,l.zoom())),k=l.b8,t={sheet:l,setValidator:function(t,e,n){k&&k.y8(t,e,n)},ignoreStyle:d,incrementalLoading:u.incrementalLoading,incrementLoadTask:u.incrementLoadTask},l.w8(a),h.fromJSON(a,f,t,l.Lp&&l.Lp.allowDynamicArray,function(){var t,t,e,n,i,r,i,r,t,o,r;l.defaults=h.defaults,k&&k.C8(!0),(t=a.theme)&&!d&&(typeof(t=t)!=nt&&Q(t)&&(i=t.themeColor||t[e="_themeColor"],(r=new W.ColorScheme(i.name||i[n="_name"])).fromJSON(i,f),t=new W.Theme(t.name||t.Zc,r,t.headingFont||t.Aee,t.bodyFont||t.See)),l.currentTheme(t)),ot(l,a,f,u,s,c),i=u&&u.frozenColumnsAsRowHeaders&&!l.NMi,t=(r=u&&u.frozenRowsAsColumnHeaders&&!l.NMi)&&a.frozenRowCount||0,o=i&&a.frozenColCount||0,r&&0<t&&it(l,a,t,o),i&&0<o&&rt(l,a,o,t),J&&(r=l.Uw(),0<t&&(r.S8=t),0<o)&&(r.T8=o),c||(0<t&&l.deleteRows(0,t),0<o&&l.deleteColumns(0,o)),l.clearPendingChanges(),Z.culture(v),h.A8(),l.loaded=!0})}},wh:function(F,_,n){var i,t,e,r,A,o,a,s,u,c,s,c,u,c,s,f,l,h,d,v,g,m,p,u,u,m,s,S,w,b,v,C,g,l,d,y,f,h,m,s,b,w,S,v,g,L,M,D,d,k,j,O,h,m,s,b,w,T,S,x,M,o,a,p,c,V,Y,v,g,G,K,z,B,I,I,P,W,N,J,Z,Q,X,q,$,L,k,t,D,d,tt,m,s,b,w,et,nt,R,it,E,rt,H,ot,U,i=this,t=i.options,e=ut.Util.ko(n),r=!n||!1!==n.includeStyles;for(t.sheetTabColor&&(A={n_:Ct,c_:[bt(t.sheetTabColor,gt,"tabColor")]}),o=i.getRowCount(st.SheetArea.colHeader)||1,a=i.getColumnCount(st.SheetArea.rowHeader)||1,s=i.NMi&&(n&&n.fileType)===st.OpenSaveFileType.excel,u=n&&n.rowHeadersAsFrozenColumns,c=n&&n.columnHeadersAsFrozenRows,(u||c||s)&&(c=(c||s)&&0<o,(s=u&&0<a)&&i.addColumns(0,a),c&&i.ffe(0,o,3,c),s&&i.jp(a,c?o:0),c)&&i.Op(o,s?a:0),u=t.gridline,c=t.frozenlineColor,s=i.zoom(),f=i.frozenRowCount(),l=i.frozenColumnCount(),h=i.bve||0,d=i.yve||0,v=i.getViewportLeftColumn(1),g=i.getViewportTopRow(1),i.NMi?m="A1":h||d?m=vt((0,at.Ec)(h,d,1,1)):v!==gt&&g!==gt&&(f||l?l&&!f?m="A"+(g+1):!l&&f&&(m=vt((0,at.Ec)(0,v,1,1))):m=vt((0,at.Ec)(g,v,1,1))),u=(u=(p=u?{color:u.color,showVerticalGridline:u.showVerticalGridline,showHorizontalGridline:u.showHorizontalGridline}:p)&&p.color&&p.color!==at.I.fl("gc-gridlineColor").borderTopColor?p&&p.color:gt)&&at.ColorHelper.getClosestColorIndex(at.ColorHelper.convertHexColorToArgb(u)),u={n_:"sheetView",showGridLines:!p||!1!==p.showVerticalGridline&&!1!==p.showHorizontalGridline?gt:"0",showRowColHeaders:!1===t.rowHeaderVisible&&!1===t.colHeaderVisible?"0":gt,defaultGridColor:u?0:gt,colorId:u,showFormulas:t.showFormulas?"1":gt,showZeros:t.showZeros?gt:"0",topLeftCell:m||gt,zoomScale:1===s?gt:Math.round(100*s),workbookViewId:0,tabSelected:i.b2()?"1":gt,c_:[]},s=m=0,S=3,w="1",b="A",r&&(0<l||0<f)&&(0<l&&(m=l,b=St(v)),0<f&&(s=f,w=g+1+""),0<l&&0===f?S=1:0===l&&0<f?S=2:0<l&&0<f&&(S=0),v={n_:"pane",xSplit:0<l?l-d:gt,ySplit:0<f?f-h:gt,topLeftCell:b+w==="A1"?vt((0,at.Ec)(m,s,1,1)):b+w,activePane:mt[S],state:"frozen"},u.c_.push(v)),Yt(i,u,r),C=_.styleManager,g=_.sharedStrings,y=(d=(l=i.Ut).wh(C,g,n)).sheetData,f=d.hyperlinks,h=d.rowHeaderData,m=d.colHeaderData,s=d.rowHeaderColInfos,b=d.colHeaderRowInfos,w=d.rowHeaderSpan,S=d.colHeaderSpan,v=d.defaults,g=d.selectionPolicy,L=d.selectionUnit,M=d.rowInfos,D=d.defaultData,d=d.tag,k=!i.NMi&&i.getDefaultStyle(),h={rowHeaderData:h,colHeaderData:m,rowHeaderColInfos:s,colHeaderRowInfos:b,rowHeaderSpan:w,colHeaderSpan:S,rowInfos:M,colHeaderRowCount:o,rowHeaderColCount:a,gridline:p,frozenlineColor:c,defaults:v,selectionPolicy:g,selectionUnit:L,defaultStyle:j=r&&k&&k.toJSON(),sheetOptions:O=jt(t,e),defaultData:D,tag:d,parameter:i.ghe},r&&(w=b=s=m=void 0,m=i.frozenTrailingRowCount(),s=i.frozenTrailingColumnCount(),b=i.Ny,w=i.Vy,0!==m&&(h.frozenTrailingRowCount=m),0!==s&&(h.frozenTrailingColCount=s),!0!==b&&(h.frozenTrailingRowStickToEdge=b),!0!==w)&&(h.frozenTrailingColumnStickToEdge=w),r&&(h.theme=i.hl.wh(e)),T=l.Q_(!1,3).wh(n),x=(S=l.defaults).colWidth,M=S.rowHeight,o={n_:Tt,defaultRowHeight:at.SJSColumnWidthHelper.pixelToPoint(M),defaultColWidth:at.SJSColumnWidthHelper.pixelToColumnWidth(x),customHeight:2<=Math.abs(76-M)?"1":gt},a=n&&!1===n.includeEmptyRegionCells,c=p=0,V=i.getRowCount(),Y=i.getColumnCount(),a&&(v=st.UsedRangeType.all-st.UsedRangeType.colStyle-st.UsedRangeType.rowStyle-st.UsedRangeType.style-st.UsedRangeType.axis,g=i.getUsedRange(v))&&(p=g.row,c=g.col,V=g.row+g.rowCount,Y=g.col+g.colCount),G=[],K=h.colInfos=[],z=l.W_(3),B=c;B<Y;B++)I=(I=z.J_(-1,B))&&I.style,P=T[B],W=i.getTag(-1,B),!P&&!I&&dt(W)||(N=P&&P.size,J=P&&P.visible,X=Q=Z=void 0,r&&I&&(e?"string"==typeof I?Z=C.getOriginNamedStyleIndex(I,i):I!==gt&&(Q=C.getOriginStyleIndex(I,i)):("string"==typeof I&&0===I.indexOf(C.Jd)&&(q=I,I=(I=i.i3(q,!1))||($=i.parent)&&$.i3(q,!1)),X=C.getStyleIndex(I))),(!dt(N)&&N!==x||!1===J||I||Z!==gt||Q!==gt)&&(G[B]={width:dt(N)?at.SJSColumnWidthHelper.pixelToColumnWidth(x):at.SJSColumnWidthHelper.pixelToColumnWidth(N),hidden:!1===J?"1":gt,customWidth:dt(N)||N===x?gt:1,style:X,t:Z,e:Q}),dt(W)||(T[B]=T[B]||{},T[B].colTag=W),K[B]=T[B]);for(k=(L=Zt(i,e,r)).spanRowColInfos,t=L.sjsMergeCells,d=Et(f,k,D={n_:ct.XFileConstants.Dr,xmlns:ct.RelationshipConstants._r,c_:[]}),B=p;B<V;B++)tt=i.getTag(B,-1),!y[B]&&dt(tt)&&!1!==i.getRowVisible(B)||(y[B]||(y[B]={r:B+1}),!1===i.getRowVisible(B)&&(y[B].v="1"),dt(tt))||(y[B].lossless={tag:tt});for(m=Wt(i,e),s=i.getRowCount()||1,b=i.getColumnCount()||1,w={n_:yt,ref:vt((0,at.Ec)(0,0,s,b))},R={n_:"worksheet",c_:[A,w,et={n_:kt,c_:[u]},o,y,m,t,d,nt={n_:Mt,c_:[]}],rels:D,tempCols:G,lossless:h},lt&&ht(lt,function(t,e){e.wh&&e.wh.call(i,R,_,n)}),it=[],B=0;B<G.length;B++)if(E=G[B]){if(pt<=(rt=B))break;for(H=B+1,ot=rt;H<G.length&&(U=G[H])&&H===ot+1&&H<pt&&U.style===E.style&&U.hidden===E.hidden&&U.outlineLevel===E.outlineLevel&&U.collapsed===E.collapsed&&Math.abs(U.width-E.width)<=1e-4&&U.t===E.t&&U.e===E.e;)B=ot=H,H++;P={n_:"col",min:rt+1+"",max:ot+1+""},E.style!==ft&&(P.style=E.style+""),E.t!==ft&&(P.t=E.t+""),E.e!==ft&&(P.e=E.e+""),isNaN(E.width)||E.width===ft||(P.width=E.width+""),P.hidden=E.hidden,E.collapsed&&(P.collapsed="1"),!isNaN(E.width)&&1e-4<Math.abs(E.width-i.defaults.colWidth)&&(P.customWidth="1"),"number"==typeof E.outlineLevel&&0!==E.outlineLevel&&(P.outlineLevel=E.outlineLevel+""),it.push(P)}return 0<it.length&&R.c_.push({n_:xt,c_:it}),delete R.tempCols,wt(R,ct.WorkSheetNodeOrder),R},rv:function(n,i,r,o){var a,t,e,s,u,c,u,f,c,l,h,l,d,v,g,c,a=this,t=a.options,e=y(n,H),s=n.lossless;j(t,n),c=(u=Bt(n)).rowCount,u=u.colCount,e&&(r.fileType===st.OpenSaveFileType.excel?(dt(e.rowCount)||(c=Math.max(e.rowCount,c||0)),dt(e.colCount)||(u=Math.max(e.colCount,u||0))):(dt(e.rowCount)||(c=e.rowCount),dt(e.colCount)||(u=e.colCount))),a.setRowCount(c),a.setColumnCount(u),c=(f=a.parent)&&f.getSheetPosition(a.name()),(l=i.sheetNamedStyles)[c]&&l[c].forEach(function(t){delete t.sheetId,a.addNamedStyle(t)}),It(h=a.Ut,n),l=Pt(a,n,r,i),d=l.showCellRow,v=l.showCellCol,g=!r||!1!==r.includeStyles,Kt(a,s,g,i),c=i.styleManager,Nt(a,n,c,u,r,i),Lt(t,s),Dt(a,s),h.yh(e,i,r,s,function(){g&&Rt(h,n),Ht(a,n),At(a,n),lt&&ht(lt,function(t,e){e.yh&&e.yh.call(a,n,i,r,o)}),ut.Util.ume(a,i);var t=f&&f.v2,t=t&&t.sheetsState;o?(zt(t,a.name()),O(a,n,r),Gt(a,d,v)):r.incrementLoadTask.addTask(function(t,e,n,i){zt(i,t.name()),O(t,e,n),Gt(a,d,v)},[a,n,r,t])},o,a.Lp&&a.Lp.allowDynamicArray)},yh:function(t,e,n,i){var r,o,i,r=this;i?r.rv(t,e,n,i):((n=n||{}).progress||(n.progress=function(t){}),n.loadStatus||(n.loadStatus={total:0,valuesLoad:0,formulaLoad:0}),o=ut.Util.wo(n,r.parent&&r.parent.v2),i=n.incrementLoadTask&&n.incrementLoadTask.tasks&&0===n.incrementLoadTask.tasks.length,n.incrementLoadTask.addTask(function(t,e,n){r.rv(t,e,n)},[t,e,n],S.I5(a().STEP.loadSheetData,[r.name()]),function(){var t=n.loadStatus.valuesLoad/n.loadStatus.total;return o?.2:n.fullRecalc?t*ut.STEP_RATE.loadSheetDataWithCalc+ +ut.STEP_RATE.parseFile+ut.STEP_RATE.loadFileData:t*ut.STEP_RATE.loadSheetData+ut.STEP_RATE.parseFile+ut.STEP_RATE.loadFileData},r.name()),i&&n.incrementLoadTask.start())}})},"./dist/core/worksheet/worksheet-model.js":function(s,g,h){"use strict";var c,l,v,P,E,tt,M,H,U,F,et,t,nt,_,A,ut,L,N,D,it,j,O,rt,ot,m,k,V,p,x,Y,K,S,w,z,u,b,at,W,J,Z,ct,Q,st,X,q,$,ft,lt,d,ht,R,C,y,dt,vt,gt,mt,t,pt,St,L,wt,bt,Ct,yt,Mt,kt,Tt,f,xt,Gt,Bt,It,Pt,Nt,Rt,Et,Ht,Ut,Ft;function _t(t,e){return at(t)?e:t}function B(t,e){return t.hasOwnProperty(e)}function At(t){return"number"==typeof t}function G(t){return t.rowCount}function I(t){return t.colCount}function Lt(t,n,e,i){var r=e;Object.defineProperty(t,n,{get:function(){return r},set:function(t){var e=r;i(this,r=t,n,e)}})}function Dt(e,t){e.cache={},t&&t.forEach(function(t){jt(e,t)})}function jt(t,e){var n,i;if(t.I8=p(t.I8,e.row+G(e)-1),t.x8=p(t.x8,e.col+I(e)-1),!t.suspendUpdatingCache)for(n=0;n<e.rowCount;n++)for(i=0;i<e.colCount;i++)t.cache[e.row+n+"_"+(e.col+i)]=e}function Ot(t,e){var n,i;if(!t.suspendUpdatingCache)for(n=0;n<e.rowCount;n++)for(i=0;i<e.colCount;i++)t.cache[e.row+n+"_"+(e.col+i)]=ot}function Vt(t,e){var n,i,n,n=t.indexOf("/OADate(")+1,i=t.indexOf(")");return 0!==n&&n<i&&(n=parseFloat(t.substring(n+7,i)),!isNaN(n))?{OADateNumber:n,valueIndex:ot}:{OADateNumber:ot,valueIndex:e.getTextIndex(t)}}function e(){Lt(this,"spans",[],Dt),this.x8=-1,this.I8=-1,this.cache={},this.suspendUpdatingCache=!1}function Yt(){Array.apply(this,arguments)}function Kt(){var t=Ut.call(this)||this;return t.headingOverflowLayouts=rt,t.trailingOverflowLayouts=rt,t}function zt(t,e,n,i,r,o,a,s,u){var c=this;c.column=t,c.startColumn=e,c.endColumn=n,c.valueWidth=i,c.columnWidth=r,c.backgroundWidth=o,c.backgroundLeftWidth=a,c.backgroundRightWidth=s,c.expandedWidth=u}function Wt(t,e,n){var i,r,o,a,s,i=(0,et.Ec)(-1,-1,-1,-1);return t&&(r=t.col,o=t.row,s=-1===r,i.row=(a=-1===o)?0:o,i.rowCount=a?e:G(t),i.col=s?0:r,i.colCount=s?n:I(t)),i}function n(){this.selections=[],this.selectionPolicy=2,this.selectionUnit=0}function Jt(t,e,n,i,r,o){for(var a,s,u,c,f,a=t.length,u=!1,c=[],f=0;f<a;f++)if(s=t[f],u=at(e)||at(n)?at(e)?at(n)?at(i)?s.containsY(r):s.containsX(i):s.col===n:s.row===e:s.contains(e,n)){if(!o)return s;c.push(s)}return o&&0<c.length?c:rt}function Zt(t,e,n){var i=rt,r=t.length,o=!at(e);return i=0<r?(i=o?t.findX(e):t.findY(n))||(o&&e<t[0].x||!o&&n<t[0].y?t[0]:t[r-1]):i}function i(){return Ft.call(this)||this}function Qt(t,e,n,i,r,o,a,s,u,c){var f=this;f.rowCount=a,f.colCount=s,f.row=t,f.col=e,f.x=n,f.y=i,f.width=r,f.height=o,f.isAutoMerge=u,f.offsetX=c}function Xt(t,e){var t=t.valuesLoad/t.total;return e?.4*t+.1:.3*t+.1}function qt(t,e,n,i,r,o,a,s,u,c,f){var l,h,d,v,g,m,p,S,w,b,C,y,l,a,l=r&&r.incrementLoadTask;if(l&&!l.isTerminated){for(h=l.isBusyFunc,d=a=a||0,v=!1,g=30,m=new Date;d<n;){if(p=e[d])for(S=0;S<i;S++)(w=p[S])&&se(w,t.J_(d,S,v=!0),o,d,S,r,u,c,f);if(d++,h&&h())break;if(30<(b=new Date)-m)break}if(v){if(C=r&&r.sheet,0!==a&&C.parent.getActiveSheet()===C)for(y=a;y<d;y++)if(C.N8.viewport[1].findRow(y)){C.repaint();break}(l=r&&r.incrementalLoading)&&(l.loadStatus.valuesLoad+=d-a,a=Xt(l.loadStatus,r.doNotRecalculateAfterLoad),C.parent&&C.parent.ki(et.Events.ProgressChanged,{loadStatus:l.loadStatus,progress:a,sheet:C}),l.loading)&&l.loading(a,{sheet:C})}d<n?r.incrementLoadTask.pushTask(qt,[t,e,n,i,r,o,d,s,u]):s&&r.incrementLoadTask.pushTask(s,[])}}function $t(t,e,n,i,r,o,a,s,u){for(var c,f,l,h,c=0;c<n;c++)if(f=e[c])for(l=0;l<i;l++)(h=f[l])&&se(h,t.J_(c,l,!0),o,c,l,r,a,s,u)}function te(a,t,e,s,n,i,r,o,u,c,f){var l,h,d,v,g,m,p,S,w,b,C,y,M,k,T,x,G,B,I,x,P,i,i,l=A.Util.Mo(n);if(e){for(h=a.a8,d=n&&!1===n.includeStyles,v=Q(n),g=s.styleManager,p=(m=n&&n.incrementLoadTask).isBusyFunc,S=!1,w=30,l&&(b=new Date),C=i=i||0,y=e.rowCount,M=e.colCount;C<y;)if(k=e[C]){for(x=(T=a.J_(C,-1,!0))&&T.style,G=void 0,T&&!d&&(v?k.t!==ot?G=g.getOriginNamedStyle(k.t):k.e!==ot&&(G=st(g.getOriginStyle(k.e))):G=g.getStyle(k.s),T.style=G),T&&k.lossless&&!at(k.lossless.tag)&&(T.tag=k.lossless.tag),h&&R(h.style,C,-1,x,T&&T.style),B=function(t){var e,n,i,r,e,e,o,e=k[t];if(e===ot)return"continue";S=!0,n=a.J_(C,t,!0),r=void 0,i=(r=e).v!==ot?"number"==typeof(e=r.v)?s.sharedStrings.getText(e):e&&(e._calcError||e._error&&!at(e._code)||e.error&&!at(e.code))?N&&U.CalcError.parse(e._calcError||e._error||e.error):e:r.b!==ot?!!r.b:r.o!==ot?"/OADate("+r.o+")/":r.n,at(r.f)&&h&&R(h.data,C,t,n.value,i),at(i)||("object"==typeof i&&0<Object.keys(i).length&&("SparklineExValue"===i.typeName&&"IMAGE"===i.name?i.toString=function(){return i.value.altText+""}:i=Ee(i)),n.value=i),e=n.style,v||(at(r.s)&&(G||f[t])?r.s=0:0!==r.s||G||f[t]||(r.s=ot)),d||(o=void 0,v?r.t!==ot?o=g.getOriginNamedStyle(r.t):r.e!==ot&&(o=st(g.getOriginStyle(r.e))):o=g.getStyle(r.s),n.style=o),h&&R(h.style,C,t,e,n.style),r.lossless&&(at(r.lossless.bindingPath)||(n.bindingPath=r.lossless.bindingPath),at(r.lossless.tag)||(n.tag=r.lossless.tag),at(r.lossless.altText)||(n.altText=r.lossless.altText)),-1<C&&Me(n,i,!!r.f||!!r.g||!!r.si,n.style,u,ot,c)},I=0;I<M;I++)B(I);if(C++,!o&&p&&p())break;if(l&&(x=new Date,!o)&&30<x-b)break}else C++;if(S){if(0!==i&&t.parent.getActiveSheet()===t)for(P=i;P<C;P++)if(t.N8.viewport[1].findRow(P)){t.repaint();break}n.loadStatus.valuesLoad+=C-i,!o&&l&&(i=n.loadStatus.valuesLoad/n.loadStatus.total,i=+(n.fullRecalc?.3*i+.2:.4*i+.2).toFixed(5),n.incrementLoadTask.progress)&&n.incrementLoadTask.progress({progress:i,sheetName:t.name(),step:W.I5(pt().STEP.loadSheetData,[t.name()])})}C<y?n.incrementLoadTask.pushTask(te,[a,t,e,s,n,C,r,ot,u,c,f]):o?r():r&&n.incrementLoadTask.pushTask(r,[])}else r&&setTimeout(r,0)}function ee(t,e,n,i,r){var i,o,i,n;0<=t&&0<=e&&(i[t]||(i[t]={}),o=(i=i[t])[e],i=null==(i[e]=n)?void 0:n.value,n=null==n?void 0:n.expr,r)&&(R(r,t,e,o&&o.value,i),R(r,t,e,o&&o.expr,n))}function ne(t,e,n,i,r,o,a,s,u){var o,c,o;0<=n&&0<=i?(o[n]||(o[n]={}),c=(o=o[n])[i],o=(o[i]=r)&&r.value,u.a8&&(o&&"SparklineExValue"===o.typeName&&(o=rt),R(u.a8.data,n,i,c&&c.value,o),R(u.a8.style,n,i,c&&c.style,r&&r.style))):0<=n&&-1===i&&0<=t&&-1===e?a[n]=r:0<=i&&-1===n&&0<=e&&-1===t&&(s[i]=r)}function ie(t,e,n,i,r,o,a){var o;0<=n&&0<=i&&(o[n]||(o[n]={}),o[n].rs="e",(o=o[n]).originalItem=a,o[i]=r)}function re(t,e,n){var i,r,o,a,s,u,i={};for(r in t)t[r]&&(o=V(r),!isNaN(o))&&e<=o&&(a=t[o],s=t[o+n],u=i[o],s&&(i[o+n]=s),u?t[o+n]=u:(delete t[o],t[o+n]=a))}function oe(t,e,n){var i,r,o;for(i in t)t[i]&&(r=Math.floor(i),!isNaN(r))&&e<=r&&(o=t[r],delete t[r],e+n<=r)&&(t[r-n]=o)}function ae(t,e,n,i,r){var o=t.op(),t=t.Uw(),a=e.Uw(),s;o&&t&&a&&r&&(s=o.unparse(a,r,n,i)),e.Ut.setDefaultValue(n,i,s,rt,nt.DefaultChangeValueType.Expression,rt,!0)}function r(t,e,n){var i=this;i.Mf=t,i.Sx=e,i.Tx=n,i.defaultCellData={},i.Gve=new et.BaseUsedRange,i.I8=-1,i.x8=-1}function o(t,e,n,i){var r=this;r.Sx=t,r.Tx=e,at(n)||(r.j8=n),at(i)||(r.O8=i),r.Hc()}function a(){this.infos=[],this.R8=[]}function se(t,e,n,i,r,o,a,s,u){var c,f,l,l,h,d,v,h,n,a,v,o,d,h;t&&(c=t.value,f=t.formula,c!==ot&&(c!==rt&&(c._calcError||c._error&&!at(c._code))&&(l=N&&U.CalcError.parse(c._calcError||c._error))!==ot&&(c=l=Z(l)),at(f)&&a&&R(a.data,i,r,e.value,c),!at(c)&&"object"==typeof c&&0<Object.keys(c).length&&(c=Ee(c)),e.value=c),l=t.style,h=o&&o.sheet,l!==ot&&o&&!o.ignoreStyle&&(d=rt,v=e.style,typeof l===m?(e.style=l,d=h&&(h.i3(l,!1)||h.parent&&h.parent.i3(l,!1))):l&&((d=new tt.Style).fromJSON(l,n),d.name=ot,e.style=d),a&&R(a.style,i,r,v,e.style),d)&&d.validator&&o.setValidator&&o.setValidator(i,r,d.validator),(h=t.visualState)!==ot&&(e.visualState=h),(n=t.bindingPath)!==ot&&(e.bindingPath=n),(a=t.tag)!==ot&&a!==rt&&(typeof(v=a.typeName)===m&&(o=F.getTypeFromString(v))&&(a=new o).fromJSON&&a.fromJSON(t.tag),e.tag=a),(d=t.altText)!==ot&&d!==rt&&(e.altText=d),(h=t.hyperlink)!==ot&&(e.hyperlink=st(h)),-1<i)&&-1<r&&Me(e,c,!!f,l,s,ot,u)}function ue(t,e,n){var i=0<t.P8?[["selectionModel"],ot]:ot;t.selectionModel.setProperty(e,n,i),i&&t.G8.push(i)}function ce(t,e){[t,e].join(",")}function fe(t){return t[0].slice(0,3)}function le(t){return t[0].slice(3).filter(function(t){return"style"!==t}).join("-")}function he(t,n){return t.find(function(t){if(t.path.length!==n.length)return!1;for(var e=0;e<=n.length;e++)if(t.path[e]!==n[e])return!1;return!0})}function de(t,e,n){var i;if(t)return(i=t.caches)||(t.caches=i=H.createMap(),t.forEach(function(t){void 0===t[2]&&i.set(t[0]+","+t[1],1)})),i.has(e+","+n)}function ve(t,e,n,i){var r=t[e];r&&delete r[n],i&&it(r)&&delete t[e]}function ge(t){return t&&t.filter(function(t){return!t.isAutoMerge})}function T(t,e,n,i,r,o){var a,s,s,s,u,s;function c(t,e,n,i){0<a.P8&&a.G8.push([["defaults",n],i,e]),a.Mf.zw()}this.lh={},(a=this).Cpe=this.Spe.bind(this),T.s2e(a.Cpe),a.Mf=t,s=new Tt(e,n,e,n),a.sheetModels=[ot,new Tt(i,n,0,0),new Tt(e,r,0,0),s],s.z8(),(s=a.rowInfos=[])[0]=s[1]=new f,s[2]=s[3]=new f,(s=a.colInfos=[])[0]=s[2]=new f,s[1]=s[3]=new f,a.spanModels=[ot,new St,new St,new St],a.defaultValueModels=[ot,new kt(t,i,n),new kt(t,e,r),new kt(t,e,n)],a.selectionModel=new Ct,(u=a.colHeaderSelectionModel=new Ct).selectionPolicy=1,a.name=o||"",a.isSelected=!1,a.zoomFactor=1,Lt(s=a.defaults={},"rowHeight",20,c),Lt(s,"colWidth",62,c),Lt(s,"rowHeaderColWidth",40,c),Lt(s,"colHeaderRowHeight",g.DEFAULT_COL_HEADER_ROW_HEIGHT,c),Lt(s,"_isExcelDefaultColumnWidth",!1,c),a.P8=0,T.et(this,"init"),a.V8(e,n),a.F8={}}function me(e,t,n){var i,r,o,a,s,u,i,c,f,l,f,h,r,d,v,g,g,d,r,v,t,g;if(t[0]===vt)pe(t,function(t){me(e,t,n)});else if("selectionModel"!==(o=(r=-1!==(i=t.indexOf("style"))&&!Array.isArray(t[0]))?t.slice(0,i+1):t[0])[0]){for(a=e,s=0;s<o.length-1;s++)u=o[s],a=u===Y?a.B8:(a[u]||(a[u]={}),a[u]);c=o[(i=o.length)-1],f=e.sheetModels[3],l=e.defaultValueModels[3],f=f.a8,h=a[o[s]],r?Se(t,a,n):(r=o[0],d=t[1],v=null,2<t.length&&(v=t[2]),v=n?v:d,r===C||"colInfos"===r||"rowInfos"===r||r===y?n&&v!==a[o[s]]?a[o[s]]=v:n||("bindingPath"===o[s]&&e.Mf.setTemplateCell?(g={row:o[s-2],col:o[s-1],value:d},Pt.et(e,"undoBindingPath",g)):a[o[s]]=d):"spanModels"===r?(a.cache={},a.spans=[],v.forEach(function(t){a.add((0,et.Ec)(t.row,t.col,t.rowCount,t.colCount))})):(a[o[s]]=t[1],g=void 0,d=o[i-2],r=o[1],"size"===c?g=o[0]===S?nt.AxisInfoChangeType.setRowHeight:nt.AxisInfoChangeType.setColumnWidth:"visible"===c&&(g=o[0]===S?nt.AxisInfoChangeType.setRowVisible:nt.AxisInfoChangeType.setColumnVisible),at(g)||e.L8({type:g,index:d,sheetArea:r}))),"style"===c?((v=f&&f.style)&&R(v,o[i-3],o[i-2],h,a[o[s]]),a&&(h&&h.quotePrefix||a.style&&a.style.quotePrefix)&&(h&&h.quotePrefix)!==(a.style&&a.style.quotePrefix)&&Me(a,a.value,!!a.formula,a.style,e.F8)):"value"===c?((t=f&&f.data)&&R(t,o[i-3],o[i-2],h,a[o[s]]),a&&h!==a.value&&Me(a,a.value,!!a.formula,a.style,e.F8)):c===dt&&(g=l.Gve)&&R(g,o[i-3],o[i-2],h,a[o[s]])}}function pe(t,n){var e,i,r,a,e;t[0]===vt&&(i=t[1],r=t[2],a=function(t,e){"number"==typeof e?t.push(r[e]):(t.push(e.old),t.push(e.new)),n(t)},i.forEach(function(t){var r,o,e,r=t.path,o=t.change,e;Object.keys(o).forEach(function(t){var e,n,i,e=P(P(P([],r,!0),t.split("-").map(function(t){return+t}),!0),["style"],!1),n=o[t];if(Array.isArray(n))for(i=n.length-1;0<=i;i--)a(P([],e,!0),n[i]);else a(e,n)})}))}function Se(t,e,n){var i,r,t,o,i=t.indexOf("style");t.length-i==3?e.style=n?t[i+2]:t[i+1]:(r=t[i+1],t=Object.keys(r),(o=e.style)&&t.forEach(function(t){var e=n?r[t].new:r[t].old;o[t]!==e&&(o[t]=e)}))}function we(t,e){return!e&&!at(t)&&"string"==typeof t}function be(t,e,n,i){var e;return(!e||!e.quotePrefix)&&(n&&n[t]||(-1!==Nt.indexOf(t[0])&&1<t.length&&(Pt.et(ot,"isInvalidFormula",e={value:t,isInvalid:!1,allowDynamicArray:i}),e.isInvalid)?(n&&(n[t]=!0),1):void 0))}function Ce(t){at(t.cellState)||(t.cellState&=~nt.CellStatesType.invalidFormula)}function ye(t){at(t.cellState)&&(t.cellState=0),t.cellState|=nt.CellStatesType.invalidFormula}function Me(t,e,n,i,r,o,a){at(t)||(we(e,n)&&be(e,i=o&&i&&"string"==typeof i?Te(i,o):i,r,a=o&&at(a)?o.options.allowDynamicArray:a)?ye:Ce)(t)}function ke(t,e,n){return!(at(t)&&at(e)||("string"==typeof t&&(t=Te(t,n)),"string"==typeof e&&(e=Te(e,n)),(t&&t.quotePrefix)===(e&&e.quotePrefix)))}function Te(t,e){var n,i,r,o,a;if(e){if(n=e.getNamedStyle(t))return n;for(i=0,r=e.sheets;i<r.length;i++)if(a=(o=r[i]).getNamedStyle(t))return a;return rt}}function xe(t,e){var n,i,t;if("string"==typeof t&&"/OADate"===t.substring(0,7)&&!e.formatter){if((e=at(e)?new tt.Style:e)._autoFormatter)return e.formatter=e._autoFormatter.formatCached,e;n=t.indexOf("("),i=t.indexOf(")"),-1!==n&&-1!==i&&((t=parseInt(t.substring(n+1,i),10))<1?e.formatter="h:mm:ss":1<t&&(e.formatter="M/d/yyyy"))}return e}function Ge(t,e){return e=t.renamedStyles&&t.renamedStyles[e]?t.renamedStyles[e]:e}function Be(t,e){var n,i,r;return"object"==typeof e?e:"string"==typeof e?(Rt.test(n=e)&&(i=e.indexOf(Et),n=Ge(t,e.substring(i))),(r=t.u8(n))||new tt.Style):void 0}function Ie(t,e,n){n&&Pe(e,n=Be(t,n))}function Pe(t,e){t.backColor===ot&&e.backColor!==ot&&!1!==e.applyFill&&(t.backColor=e.backColor),!1!==e.applyFont&&(t.foreColor===ot&&e.foreColor!==ot&&(t.foreColor=e.foreColor),t.themeFont===ot&&t.font===ot&&(t.themeFont=e.themeFont),t.spe===ot&&(t.spe=e.spe),t.cpe===ot&&(t.cpe=e.cpe),t.lre===ot&&(t.lre=e.lre),t.lpe===ot&&(t.lpe=e.lpe),t.b2e===ot&&(t.b2e=e.b2e),t.y2e===ot&&(t.y2e=e.y2e),t.w2e===ot&&(t.w2e=e.w2e),t._font=lt(t.spe,t.cpe,t.lre,t.lpe,t.b2e,t.y2e,t.w2e),t.textDecoration===ot)&&e.textDecoration!==ot&&(t.textDecoration=e.textDecoration),!1!==e.applyAlignment&&(t.hAlign===ot&&e.hAlign!==ot&&(t.hAlign=e.hAlign),t.vAlign===ot&&e.vAlign!==ot&&(t.vAlign=e.vAlign),t.textIndent===ot&&e.textIndent!==ot&&(t.textIndent=e.textIndent),t.wordWrap===ot&&e.wordWrap!==ot&&(t.wordWrap=e.wordWrap),t.isVerticalText===ot&&e.isVerticalText!==ot&&(t.isVerticalText=e.isVerticalText),t.shrinkToFit===ot&&e.shrinkToFit!==ot&&(t.shrinkToFit=e.shrinkToFit),t.textOrientation===ot)&&e.textOrientation!==ot&&(t.textOrientation=e.textOrientation),t.formatter===ot&&e.formatter!==ot&&!1!==e.applyNumberFormat&&(t.formatter=e.formatter),!1!==e.applyBorder&&(t.borderLeft===ot&&e.borderLeft!==ot&&(t.borderLeft=Ne(e.borderLeft)),t.borderTop===ot&&e.borderTop!==ot&&(t.borderTop=Ne(e.borderTop)),t.borderRight===ot&&e.borderRight!==ot&&(t.borderRight=Ne(e.borderRight)),t.borderBottom===ot&&e.borderBottom!==ot&&(t.borderBottom=Ne(e.borderBottom)),t.diagonalUp===ot&&e.diagonalUp!==ot&&(t.diagonalUp=Ne(e.diagonalUp)),t.diagonalDown===ot)&&e.diagonalDown!==ot&&(t.diagonalDown=Ne(e.diagonalDown)),t.locked===ot&&!1!==e.applyProtection&&(t.locked=e.locked),t.quotePrefix===ot&&e.quotePrefix!==ot&&(t.quotePrefix=e.quotePrefix)}function Ne(t){var e;return t&&(e={},at(t.color)||(e.color=t.color),at(t.style)||(e.style=t.style),at(t.level)||(e.level=t.level),e)}function Re(t){var e,n,i,e=st(t);for(n in e)e.hasOwnProperty(n)&&(i=e[n],!at(i)&&"object"==typeof i&&0<Object.keys(i).length?Re(i):M.Common.ct.W0(i)&&(e[n]=M.Common.ct.Q0(i)));return e}function Ee(t){var e,n,i,e=st(t);for(n in e)e.hasOwnProperty(n)&&(i=e[n],!at(i)&&"object"==typeof i&&0<Object.keys(i).length?Ee(i):typeof i===m&&"/"===i.charAt(0)&&(e[n]=et.util.a2e(i)));return e}c=this&&this.__extends||(Ht=function(t,e){return(Ht=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(t,e){t.__proto__=e}:function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])}))(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}Ht(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),l=this&&this.__assign||function(){return(l=Object.assign||function(t){for(var e,n,i,r,n=1,i=arguments.length;n<i;n++)for(r in e=arguments[n])Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t}).apply(this,arguments)},v=this&&this.__rest||function(t,e){var n,i,r,n={};for(i in t)Object.prototype.hasOwnProperty.call(t,i)&&e.indexOf(i)<0&&(n[i]=t[i]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols)for(r=0,i=Object.getOwnPropertySymbols(t);r<i.length;r++)e.indexOf(i[r])<0&&Object.prototype.propertyIsEnumerable.call(t,i[r])&&(n[i[r]]=t[i[r]]);return n},P=this&&this.__spreadArray||function(t,e,n){if(n||2===arguments.length)for(var i=0,r=e.length,o;i<r;i++)!o&&i in e||((o=o||Array.prototype.slice.call(e,0,i))[i]=e[i]);return t.concat(o||Array.prototype.slice.call(e))},Object.defineProperty(g,"__esModule",{value:!0}),g.Y8=g.DEFAULT_COL_HEADER_ROW_HEIGHT=g.copyDefaultFormula=g.W8=g.h9=g.Q8=g.K8=g.getOADateNumber=void 0,E=h("./dist/core/core.ns.js"),tt=h("./dist/core/worksheet/style.js"),M=h("Common"),H=h("CalcEngine"),U=h("CalcEngine"),F=h("./dist/core/util/common.js"),et=h("./dist/core/util/common.js"),t=h("./dist/core/util/domUtil.js"),nt=h("./dist/core/core.enum.js"),_=h("./dist/core/celltype/celltype.ns.js"),A=h("./dist/core/excel-io-util/common.js"),ut=h("./dist/core/excel-io-util/excel-types.js"),L=h("./dist/core/worksheet/stylehelper.js"),N=!!H,D=t.GC$.each,it=t.GC$.isEmptyObject,j=t.GC$.extend,O=new RegExp("^\\d*(\\.\\d+)?\\*$"),rt=null,ot=void 0,m="string",k=Math.min,V=Math.floor,p=Math.max,x=Math.ceil,Y="dirtyNodes",K="undo",S="rowInfos",w="colInfos",z="default_size",u=M.Common.J8,b=M.Common.X8,at=M.Common.lt.ht,W=M.Common.zf,J=et.util.wt,Z=et.util.g0,ct=et.util.St,Q=A.Util.ko,st=M.Common.lt.tv,X=M.Common.lt.q8,q=200,$=20,ft="bindingPath",lt=L.W.upe,d=et.UsedRangeUtil.vh,ht=et.UsedRangeUtil.hh,R=et.UsedRangeUtil.updateUsedRangeByData,C="sheetModels",y="defaultValueModels",dt="defaultCellData",vt="style-changes",gt=["borderLeft","borderTop","borderRight","borderBottom","borderHorizontal","borderVertical","diagonalDown","diagonalUp"],mt=["cellButtons","dropDowns"],t=new M.Common.ResourceManager(E.SR,"Sheets"),pt=t.getResource.bind(t),g.getOADateNumber=Vt,e.prototype.find=function(t,e){return this.cache[t+"_"+e]||rt},e.prototype.get=function(t,e){return this.find(t,e)||(0,et.Ec)(t,e,1,1)},e.prototype.remove=function(t,e){var t=this.spans.indexOf(t);0<=t?(e&&(e[0].push("spans"),e[1]=[].concat(this.spans)),this.removeSpan(t,1),e&&(e[2]=[].concat(this.spans))):e&&(e.length=0)},e.prototype.removeSpan=function(t,e){for(var n=0;n<e;n++)Ot(this,this.spans[t+n]);this.spans.splice(t,e)},e.prototype.update=function(t,e){var n=this;Ot(n,n.spans[t]),n.spans[t]=e,jt(n,e)},e.prototype.add=function(t,e){e&&(e[0].push("spans"),e[1]=[].concat(this.spans)),jt(this,t),this.spans.push(t),e&&(e[2]=[].concat(this.spans))},e.prototype.tE=function(t,e,n,i,r,o,a,s){var u,u,u,c,f,l,h,d,v,g,m,p,S,w,b,C,y,M,k,T,c=this,f=!1;for(a&&(l=[].concat(c.spans)),h=c.spans.length,v=[],d=0;d<h;d++)m=(g=c.spans[d]).col,S=(p=g.row)-t,w=m-e,b=G(g),C=I(g),y=r,M=o,s&&(b=(u=[C,b])[0],C=u[1],S=(u=[w,S])[0],w=u[1],y=(u=[o,r])[0],M=u[1]),(-1===t||t<=p&&p<t+y)&&(-1===e||e<=m&&m<e+M)?(v.push((0,et.Ec)(k=-1===t?p:n+S,T=-1===e?m:i+w,b,C)),f=!0):(-1===t||n<=p&&p<n+r)&&(-1===e||i<=m&&m<i+o)&&(c.removeSpan(d,1),d--,h--,f=!0);for(d=0;d<v.length;d++){if(!c.nE(c.spans,0,c.spans.length,g=v[d]))throw new Error(pt().Exp_OverlappingSpans);c.add(g)}a&&(f?(a[0].push("spans"),a[1]=l,a[2]=[].concat(c.spans)):a.length=0)},e.prototype.nE=function(t,e,n,i){for(var r=e;r<n&&r<t.length;r++)if(t[r].intersect(i.row,i.col,G(i),I(i)))return!1;return!0},e.prototype.getSpans=function(t){var e,n,i,r,e=this.spans;if(!t)return[].concat(e);for(n=[],i=0;i<e.length;i++)(r=e[i]).intersect(t.row,t.col,G(t),I(t))&&n.push(r);return n},e.prototype.GT=function(t,e,n,i){for(var r,o,a,r=this.spans,o=0;o<r.length;o++)if((a=r[o]).intersect(t,e,n,i)&&(-1!==t&&(a.row<t||a.row+G(a)>t+n)||-1!==e&&(a.col<e||a.col+I(a)>e+i)))return!0;return!1},e.prototype.eE=function(t,e,n,i){for(var r,o,a,s,r=!1,o=this.spans,a=0,s=o.length;a<s;a++){if(0<=t||0<=e)for(;a<s&&!o[a].intersect(t,e,n,i);)a++;if(a<s){r=!0;break}}return r},e.prototype.d5=function(t,e,n,i,r){var o,a,s,u,c,f,c,o=this.spans,a=!1;for(r&&(s=[].concat(o)),u=0;u<o.length;u++)f=(c=o[u]).row,c=c.col,(-1===t||t<=f&&f<t+n)&&(-1===e||e<=c&&c<e+i)&&(this.removeSpan(u,1),u--,a=!0);r&&(a?(r[0].push("spans"),r[1]=s,r[2]=[].concat(this.spans)):r.length=0)},e.prototype.iE=function(t,e,n,i,r,o,a){var s,u,c,f,l,h,d,v,g,m,p,s=this,u=!1;for(a&&(c=[].concat(s.spans)),f=[],l=[],h=s.spans.length,m=0;m<h;m++)v=(d=s.spans[m]).row,g=d.col,(-1===t||t<=v&&v<t+r)&&(-1===e||e<=g&&g<e+o)?(p=(0,et.Ec)(-1===t?v:n+v-t,-1===e?g:i+g-e,G(d),I(d)),l.push(p),u=!0):(-1===t||n<=v&&v<n+r)&&(-1===e||i<=g&&g<i+o)?u=!0:f.push(d);if(u){if(0<l.length)for(m=0;m<l.length;m++){if(!s.nE(f,0,f.length,p=l[m]))throw new Error(pt().Exp_OverlappingSpans);f.push(p)}for(s.spans.length=0,s.cache={},m=0;m<f.length;m++)s.add(f[m]);a&&(a[0].push("spans"),a[1]=c,a[2]=[].concat(s.spans))}else a&&(a.length=0)},e.prototype.rE=function(t,e,n){var i,r,o,a,s,u,c,f,l,h,c,i=this,r=i.spans,o=!(i.suspendUpdatingCache=!0);for(n&&(a=[].concat(r)),s=r.length,u=0;u<s;u++)f=(c=r[u]).row,l=c.col,h=G(c),c=I(c),t<=f?(i.update(u,(0,et.Ec)(f+e,l,h,c)),o=!0):t<f+h&&(i.update(u,(0,et.Ec)(f,l,h+e,c)),o=!0);i.suspendUpdatingCache=!1,o&&Dt(i,r),n&&(o?(n[0].push("spans"),n[1]=a,n[2]=[].concat(i.spans)):n.length=0)},e.prototype.oE=function(t,e,n){var i,r,o,a,s,u,c,f,l,h,c,i=this,r=i.spans,o=!(i.suspendUpdatingCache=!0);for(n&&(a=[].concat(r)),s=r.length,u=0;u<s;u++)f=(c=r[u]).row,l=c.col,h=G(c),c=I(c),t<=l?(i.update(u,(0,et.Ec)(f,l+e,h,c)),o=!0):t<l+c&&(i.update(u,(0,et.Ec)(f,l,h,c+e)),o=!0);i.suspendUpdatingCache=!1,o&&Dt(i,r),n&&(o?(n[0].push("spans"),n[1]=a,n[2]=[].concat(i.spans)):n.length=0)},e.prototype.aE=function(t,e,n){var i,r,o,a,s,u,c,f,l,h,d,f,h,v,i=this,r=i.spans,o=!(i.suspendUpdatingCache=!0);for(n&&(a=[].concat(r)),s=[],u=r.length,c=0;c<u;c++)l=(f=r[c]).row,h=f.col,d=G(f),f=I(f),t<=l?o=(l<t+e?l+d<=t+e?s.push(c):i.update(c,(0,et.Ec)(t,h,l+d-(t+e),f)):i.update(c,(0,et.Ec)(l-e,h,d,f)),!0):t<l+d&&(h=(0,et.Ec)(l,h,d-k(l+d-t,e),f),i.update(c,h),1===h.rowCount&&1===h.colCount&&s.push(c),o=!0);for(c=s.length-1;0<=c;c--)i.removeSpan(v=s[c],1);i.suspendUpdatingCache=!1,o&&Dt(i,r),n&&(o?(n[0].push("spans"),n[1]=a,n[2]=[].concat(i.spans)):n.length=0)},e.prototype.uE=function(t,e,n){var i,r,o,a,s,u,c,f,l,h,d,f,l,v,i=this,r=i.spans,o=!(i.suspendUpdatingCache=!0);for(n&&(a=[].concat(r)),s=[],u=r.length,c=0;c<u;c++)l=(f=r[c]).row,h=f.col,d=G(f),f=I(f),t<=h?o=(h<t+e?h+f<=t+e?s.push(c):i.update(c,(0,et.Ec)(l,t,d,h+f-(t+e))):i.update(c,(0,et.Ec)(l,h-e,d,f)),!0):t<h+f&&(l=(0,et.Ec)(l,h,d,f-k(h+f-t,e)),i.update(c,l),1===l.rowCount&&1===l.colCount&&s.push(c),o=!0);for(c=s.length-1;0<=c;c--)i.removeSpan(v=s[c],1);i.suspendUpdatingCache=!1,o&&Dt(i,r),n&&(o?(n[0].push("spans"),n[1]=a,n[2]=[].concat(i.spans)):n.length=0)},e.prototype.toJSON=function(){var t=[].concat(this.spans);return 0===t.length?ot:t},e.prototype.fromJSON=function(t,e,n){var i,r,o,a,s,a,s;if(t)for(this.spans=[],i=t,r=0;r<i.length;r++)a=G(o=i[r]),s=I(o),a=at(e)?a:k(a,e),s=at(n)?s:k(s,n),this.add((0,et.Ec)(o.row,o.col,a,s))},St=e,Yt.prototype.pop=function(){return rt},Yt.prototype.push=function(t){return 0},Yt.prototype.splice=function(t,e){for(var n,i,n=[],i=2;i<arguments.length;i++)n[i-2]=arguments[i];return rt},Yt.prototype.slice=function(t,e){return null},(L=Yt).prototype=[],c(Kt,Ut=L),Kt.prototype.find=function(t){for(var e,n,i,r,o,e=this,n=e.length,r=[],o=0;o<n;o++)(i=e[o]).contains(t)&&r.push(i);return r},g.K8=Kt,zt.prototype.contains=function(t){return t>=this.startColumn&&t<=this.endColumn},g.Q8=zt,n.prototype.getProperty=function(t){return this[t]},n.prototype.setProperty=function(t,e,n){n&&(n[0].push(t),n[1]=this[t],n[2]=e),this[t]=e},n.prototype.clear=function(t){t&&(t.push(["selections",this.get()]),t.push(["activeSelectedRangeIndex",this.activeSelectedRangeIndex])),this.selections=[],this.activeSelectedRangeIndex=-1},n.prototype.add=function(t,e,n,i,r,o){r&&(r.push(["selections",this.get()]),r.push(["activeSelectedRangeIndex",this.activeSelectedRangeIndex]));var r=this,a=r.selectionPolicy,s=r.selectionUnit;0===a?(n=k(n,1),i=k(i,1),r.clear()):1===a&&r.clear(),1===s?i=e=-1:2===s&&(n=t=-1),r.selections.push((0,et.Ec)(t,e,n,i)),!1!==o&&(r.activeSelectedRangeIndex=r.selections.length-1)},n.prototype.get=function(){return[].concat(this.selections)},n.prototype.set=function(t,e){e&&(e.push(["selections",this.get()]),e.push(["activeSelectedRangeIndex",this.activeSelectedRangeIndex])),this.selections=t,this.activeSelectedRangeIndex>=t.length&&(this.activeSelectedRangeIndex=0)},n.prototype.toJSON=function(){var t,e,n,i,r,o,a,t=this,e={},n=t.selectionPolicy,i=t.selectionUnit,r=t.activeSelectedRangeIndex,o=t.selections.length;for(2!==n&&(e.selectionPolicy=n),0!==i&&(e.selectionUnit=i),0!==r&&(e.activeSelectedRangeIndex=r),e.length=o,a=0;a<o;a++)e[a]=t.selections[a];return it(e)?ot:e},n.prototype.fromJSON=function(t,e,n){var i,r,o,a,s,e,n,u,c,f,i=e||200,r=n||20;if(t){for((s=this).clear(),e=t.selectionPolicy,n=t.selectionUnit,u=t.length,at(u)&&(u=1),c=0;c<u;c++)f=t[c],o=k(f?G(f):1,i),a=k(f?I(f):1,r),s.selections.push((0,et.Ec)(f?f.row:0,f?f.col:0,o,a));s.activeSelectedRangeIndex=t.activeSelectedRangeIndex||0,at(e)||(s.selectionPolicy=e),at(n)||(s.selectionUnit=n)}},n.prototype.T9=function(t){for(var e,n,i,r,e=this.selections,n=0;n<e.length;n++)if(r=-1===(i=e[n]).col?0:i.col,-1===i.row&&r<=t&&t<r+I(i))return!0;return!1},n.prototype.S9=function(t){for(var e,n,i,r,e=this.selections,n=0;n<e.length;n++)if(r=-1===(i=e[n]).row?0:i.row,-1===i.col&&r<=t&&t<r+G(i))return!0;return!1},n.prototype.ni=function(t,e,n,i,r,o){for(var a,s,u,c,f,l,h,d,v,d,v,a=!1,s=this.selections,u=o?1:0,c=0,f=s.length;c<f&&(d=(h=Wt(l=s[c],i,r)).row,v=h.col,d=d-u<=t&&t<d+G(h)+u,v=v-u<=e&&e<v+I(h)+u,3===n||at(n)?a=d&&v:2===n?a=d:1===n?a=v:0===n&&(a=-1===l.row&&-1===l.col),!a);c++);return a},n.prototype.ei=function(t,e,n,i,r){for(var o,a,s,u,c,f,l,u,h,d,c,c,o=this.selections,a=!1,s=0;s<o.length&&(c=(u=o[s]).row,f=u.col,l=G(u),u=I(u),h=-1===f,d=-1===c,at(n)||3===n||(2===n?(c=d?0:c,a=h&&c<=t&&t<c+l):1===n?(c=h?0:f,a=d&&c<=e&&e<c+u):0===n&&(a=d&&h&&l===i&&u===r),!a));s++);return a},Ct=n,c(i,Ft=L),i.prototype.findCell=function(t,e){for(var n,i,r,n=this.length,r=0;r<n;r++)if((i=this[r]).contains(t,e))return i;return rt},i.prototype.sE=function(){this.cE={}},i.prototype.fE=function(t,e){this.cE[t]=e},i.prototype.findRow=function(t){var e,n,i,r,e=this.cE;if(e)return e[t];for(n=this.length,r=0;r<n;r++)if((i=this[r]).row===t)return i;return rt},i.prototype.findCol=function(t){for(var e,n,i,e=this.length,i=0;i<e;i++)if((n=this[i]).col===t)return n;return rt},i.prototype.findLargestRow=function(t){var e,n,i,r,o,e=this.length;if(0===e)return rt;for(r=n=0;r<e;r++)(o=this[r]).row===t&&o.height>n&&(n=o.height,i=r);return X(i)&&this[i]},i.prototype.findLargestCol=function(t){var e,n,i,r,o,e=this.length;if(0===e)return rt;for(r=n=0;r<e;r++)(o=this[r]).col===t&&o.width>n&&(n=o.width,i=r);return X(i)&&this[i]},i.prototype.findLargestRange=function(t,e){var n,i,r,o,a,s,u,c,f,l,n=this.length;if(0===n)return rt;for(i=t.row,r=t.col,o=t.rowCount,a=t.colCount,c=u=0;c<n;c++)if(e)for(f=t.row;f<i+o;f++)(l=this[c]).row===f&&l.height>u&&(u=l.height,s=c);else for(f=t.col;f<r+a;f++)(l=this[c]).col===f&&l.width>u&&(u=l.width,s=c);return X(s)&&this[s]},i.prototype.findX=function(t,e){return Jt(this,ot,ot,t,ot,e)},i.prototype.findY=function(t){return Jt(this,ot,ot,ot,t)},i.prototype.findNearX=function(t){return Zt(this,t)},i.prototype.findNearY=function(t){return Zt(this,ot,t)},i.prototype.findXByExactY=function(t,e,n){var i,t,r,o,a,s,i=this.findX(t,!0);if(!Array.isArray(i))return i;for(t=i.length,r=n.y,o=n.height,a=t-1;0<=a;a--)if(e>r+(s=i[a]).y*o)return s},g.h9=i,Qt.prototype.contains=function(t,e){var n=this;return t<n.row+G(n)&&n.row<=t&&e<n.col+I(n)&&n.col<=e},Qt.prototype.intersect=function(t){var e=this;return(e.x<0||t.x<e.x+e.width&&e.x<t.x+t.width)&&(e.y<0||t.y<e.y+e.height&&e.y<t.y+t.height)},Qt.prototype.containsX=function(t){return this.x<=t&&t<this.x+this.width},Qt.prototype.containsY=function(t){return this.y<=t&&t<this.y+this.height},g.W8=Qt,g.copyDefaultFormula=ae,r.prototype.dispose=function(){this.Mf=rt,this.defaultCellData=rt},r.prototype.getRowCount=function(){return this.Sx},r.prototype.setRowCount=function(t){this.Sx=t},r.prototype.getColumnCount=function(){return this.Tx},r.prototype.setColumnCount=function(t){this.Tx=t},r.prototype.X1e=function(t,e,n,i,r,o){var a;e&&(a=void 0,t&&(a=o===nt.DefaultChangeValueType.Expression?t.expr:t.value),e[0].push(dt,n,i,o),e[1]=at(a)?rt:a,e[2]=r)},r.prototype.Uve=function(t,e){var n=this;n.x8<e&&(n.x8=e),n.I8<t&&(n.I8=t)},r.prototype.q1e=function(t,e){var n,t=this.defaultCellData[t],i;return i=at(t)?i:t[e]},r.prototype.getValue=function(t,e){var n=this,i;return t<n.Sx&&e<n.Tx&&(i=0<=t&&0<=e?n.q1e(t,e):i)&&!at(i.value)?i.value:rt},r.prototype.setValue=function(t,e,n,i,r){var o,a,o,s,r,a=this;t<a.Sx&&e<a.Tx&&0<=t&&0<=e&&(s=(o=a.defaultCellData)[t],at(s)&&(s=o[t]={}),n=et.util.Z0(n),a.X1e(s[e],r,t,e,n,nt.DefaultChangeValueType.Value),i?(s[e]||(s[e]={}),s[e].value=n):(r=null==(o=s[e])?void 0:o.value,s[e]&&s[e].expr&&a.$1e(t,e,rt),s[e]={value:n},a.Uve(t,e),a.Gve&&R(a.Gve,t,e,r,n)))},r.prototype.getFormulaFromExpression=function(t,e,n){var t,i,r,o,i,i=this;if(t)return o=void 0,(r=h("SheetsCalc"))&&((i=i.Mf).vle=!0,o=r.expressionToFormula(i,t,e,n,(null==(t=i.parent)?void 0:t.options.referenceStyle)===r.ReferenceStyle.r1c1),delete i.vle),et.util.g1(o)},r.prototype.getFormula=function(t,e){var n,i,i,n=this;return t<n.Sx&&e<n.Tx&&(i=0<=t&&0<=e?n.q1e(t,e):i)&&i.expr?(i=i.expr,n.getFormulaFromExpression(i,t,e)):rt},r.prototype.getExpression=function(t,e){var n=this,i;return t<n.Sx&&e<n.Tx?(i=0<=t&&0<=e?n.q1e(t,e):i)&&i.expr:rt},r.prototype.$1e=function(t,e,n,i,r,o){var a,s,u,a,c,a=this,s,u=a.defaultCellData[t];if(u&&u[e]&&u[e].expr&&(c=(a=a.Mf).op()))try{a.vle=!0,o&&(u[e].value=rt,i=u[e].expr),a.zI(t,e,n,i,!1,r,!0,!0)}finally{delete a.vle}},r.prototype.setFormula=function(t,e,n,i,r,o){var a,s,u,c,f,u,l,a,u,s=this;t<s.Sx&&e<s.Tx&&0<=t&&0<=e&&(c=(u=s.defaultCellData)[t],f=void 0,(c=at(c)?u[t]={}:c)[e]||(c[e]={}),n&&((u=h("SheetsCalc"))&&(a=(null==(a=(l=s.Mf).parent)?void 0:a.options.referenceStyle)===u.ReferenceStyle.r1c1,f=u.formulaToExpression(l,n,t,e,a,!0),n=u.expressionToFormula(l,f,t,e,a)),n=et.util.g1(n)),s.X1e(c[e],o,t,e,f,nt.DefaultChangeValueType.Expression),u=c[e].expr,c[e].expr=f,s.Uve(t,e),s.Gve&&R(s.Gve,t,e,u,f),N?r||s.$1e(t,e,n,f,i):(s.X1e(c[e],o,t,e,n,nt.DefaultChangeValueType.Value),c[e].value=n))},r.prototype.resetFormulaToCalc=function(t,e,n,i,r){var o=this,a=o.Sx,s=o.Tx,u,c;if(0<=t&&0<=e&&(n=k(n,a-t),i=k(i,s-e),0<n)&&0<i)for(c=t;c<t+n;c++)for(u=e;u<e+i;u++)o.$1e(c,u,rt,rt,r,!0)},r.prototype.gle=function(){return this.defaultCellData},r.prototype.ble=function(t){var e,n,i,r;if(t)for(e in t)if(t.hasOwnProperty(e)&&(n=t[e]))for(i in n)n.hasOwnProperty(i)&&(r=n[i])&&r.expr&&(r.oldRow=e,r.oldCol=i)},r.prototype.hE=function(t){var e,n=this.Gve,i={};if(!at(n))return t&nt.UsedRangeType.data&&d(i,n.getUsedRange()),i},r.prototype.rE=function(t,e){var n,i,r,n=this,i=n.Sx;0<=t&&t<=i&&0<=e&&(r=n.defaultCellData,n.ble(r),u(r,i,t,e),n.Sx+=e,n.Gve)&&this.Gve.addHeadInfo(t,e,!0)},r.prototype.yE=function(t,e,n){var i,r,o,a,s,u,c,f,l,h,i=this,r=i.Sx;if(0<=t&&t<r&&0<e){if(r<t+e&&(e=r-t),o=i.defaultCellData,n)for(a=0;a<e;a++)n.push([[dt,s=t+a],o[s]]);if(i.Gve){for(c=(u=t)+e,f=i.defaultCellData,l=void 0;u<c;u++)if(f[u])for(h=0;h<i.Tx;h++)!(l=f[u]&&f[u][h])||at(l.value)&&!l.expr||i.Gve.removeRowAndColInfo(u,h);i.Gve.removeHeadInfo(t,e,!0)}i.ble(o),b(o,r,t,e),i.Sx-=e}},r.prototype.oE=function(t,e){var n,i,r,o,a,n=this,i=n.Tx;if(0<=t&&t<=i&&0<=e){for(r=n.defaultCellData,n.ble(r),o=0;o<n.Sx;o++)(a=r[o])&&t<i&&u(a,i,t,e);n.Tx+=e,n.Gve&&n.Gve.addHeadInfo(t,e,!1)}},r.prototype.wE=function(t,e,n){var i,r,o,a,s,u,c,f,i=this,r=i.Tx;if(0<=t&&t<r&&0<e){for(o=i.defaultCellData,a=void 0,i.ble(o),s=0;s<i.Sx;s++)if(u=o[s]){if(n)for(c=0;c<e;c++)a=u[f=t+c],n.push([[dt,s,f],a]),a&&i.Gve&&(at(a.value)&&!a.expr||i.Gve.removeRowAndColInfo(s,f));b(u,r,t,e)}i.Tx-=e=r<t+e?r-t:e,i.Gve&&i.Gve.removeHeadInfo(t,e,!1)}},r.prototype.SE=function(t,e,n,i,r){var o,a,s,u,c,f,l,h,r;r&&(o=[[y,3],ot],a=[[y,3],ot],s=[[y,3],ot],u=[[y,3],ot],r.push(o,a,s,u)),f=(c=this).defaultCellData,l=c.q1e(t,e),h=c.q1e(n,i),r&&(c.X1e(l,o,t,e,h.value,nt.DefaultChangeValueType.Value),c.X1e(h,a,n,i,l.value,nt.DefaultChangeValueType.Value),c.X1e(l,s,t,e,h.expr,nt.DefaultChangeValueType.Expression),c.X1e(h,u,n,i,l.expr,nt.DefaultChangeValueType.Expression)),r=c.Gve,l?ee(n,i,l,f,r):h&&ee(n,i,rt,f,r),h?ee(t,e,h,f,r):l&&ee(t,e,rt,f,r)},r.prototype.fromJSON=function(t){var o,a,s,e,n;if(t)for(a in(o=this).defaultCellData={},t)if(t.hasOwnProperty(a)&&(s=t[a]))for(n in e=function(t){var e,n,i,r;if(!s.hasOwnProperty(t)||!s[t])return"continue";try{e=s[t],n=+a,i=+t,e.f&&o.setFormula(n,i,et.util.n1(e.f),ot,!0),r=e.v,at(r)||(r.error&&!at(r.code)||r._calcError&&!at(r._code)?r=N&&U.CalcError.parse(r.error||r._calcError):"SparklineExValue"===r.typeName&&(r.toString=function(){return r.value&&!at(r.value.altText)?r.value.altText+"":""}),o.setValue(n,i,r,!!e.f))}catch(t){}},s)e(n)},r.prototype.toJSON=function(t){var e,n,i,r,o,a,s,u,c,u,c,e=this,n=e.defaultCellData,i={};if(n)for(r in n)if(n.hasOwnProperty(r)&&(o=n[r]))for(a in i[r]||(i[r]={}),o)o.hasOwnProperty(a)&&(s=o[a])&&(at(s.value)||(c=u=s.value,t&&(u&&u instanceof Date?c=u.toISOString():at(u._error)&&at(u._code)||(c={error:u._error,code:u._code})),i[r][a]={v:c}),u=s.expr)&&(i[r][a]||(i[r][a]={}),c=e.getFormulaFromExpression(u,+r,+a),i[r][a].f=et.util.vo(c));return i},r.prototype.yh=function(t){this.fromJSON(t)},r.prototype.wh=function(t){var e;if(Q(t))return this.toJSON(!0)},kt=r,o.prototype.Hc=function(){var t=this;t.dataTable={},t.rowDataArray=[],t.columnDataArray=[],t.defaultDataNode=rt,t.B8={},t.lE=0,t.x8=-1,t.I8=-1},o.prototype.z8=function(){var t;this.a8={data:new et.BaseUsedRange,style:new et.BaseUsedRange}},o.prototype.hE=function(t){var e,n=this.a8,i={};if(!at(n))return t&nt.UsedRangeType.data&&d(i,n.data.getUsedRange()),t&nt.UsedRangeType.style&&d(i,n.style.getUsedRange()),t&nt.UsedRangeType.rowStyle&&d(i,n.style.getRowUsedRange()),t&nt.UsedRangeType.colStyle&&d(i,n.style.getColUsedRange()),i},o.prototype.getRowCount=function(){return this.Sx},o.prototype.getColumnCount=function(){return this.Tx},o.prototype.setRowCount=function(t){this.Sx=t},o.prototype.setColumnCount=function(t){this.Tx=t},o.prototype.getFreeAreaRowCount=function(){return this.j8},o.prototype.getFreeAreaColumnCount=function(){return this.O8},o.prototype.setFreeAreaRowCount=function(t){this.j8=t},o.prototype.setFreeAreaColumnCount=function(t){this.O8=t},o.prototype.dE=function(t,e,n,i,r){var o,a,s,o,s,o,a,t,o=this,a=o.B8;if(!(0<o.lE)){if(o=t+"_"+e,(s=this.B8.vE)&&s[o]){if(s[o].oldCalcValue===n.mE)return;delete s[o]}0<=t&&0<=e&&(i&&(i.type="updateDirty",i.row=t,i.col=e,i.skipUndo=r,a[t]?a[t][e]||(i.isEmptyCol=!0):i.isEmptyRow=!0),a[t]||(a[t]={}),(s=a[t])[e]||(s[e]={}),o=s[e],"n"!==s.rs&&(s.rs="e"),a=n.gE,t=n.d6,at(a)||(i&&(i.originalItem=s.originalItem),s.originalItem=a),at(t)||(i&&(i.oldValue=o.oldValue,r)&&(i.oldCalcValue=t),o.oldValue=t))}},o.prototype.pE=function(t){var e,n,i,e=this.B8,n=t.row,i=t.col;t.skipUndo&&(this.B8.vE=this.B8.vE||{},this.B8.vE[n+"_"+i]=t),t.isEmptyRow&&e?delete e[n]:t.isEmptyCol&&e[n]?delete e[n][i]:(t.hasOwnProperty("originalItem")&&(at(t.originalItem)&&!at(e[n].originalItem)?delete e[n].originalItem:e[n].originalItem=t.originalItem),t.hasOwnProperty("oldValue")&&e[n]&&(at(t.oldValue)&&!at(e[n][i].oldValue)?delete e[n][i].oldValue:e[n][i].oldValue=t.oldValue))},o.prototype.getValue=function(t,e,n){var t=this.J_(t,e);return t&&!at(t.value)?1!==n?J(t.value):at(t.value.richText)?t.value:j(!0,{},t.value):rt},o.prototype.setValue=function(t,e,n,i,r,o){var a,s,a=this.J_(t,e,!0,i?i[0]:ot);!a||at(a.value)&&at(n)||a.value===n?i&&(i.length=0):(s=a.value,a.value=n,this.dE(t,e,{d6:s,mE:n},r,o),i&&(i[0].push("value"),i[1]=s,i[2]=n),this.a8&&(n&&"SparklineExValue"===n.typeName&&("IMAGE"===n.name&&(a.altText=n.value&&n.value.altText),n=rt),R(this.a8.data,t,e,s,n)))},o.prototype.getStyle=function(t,e,n){var t,e,t=this.J_(t,e),e=t&&t.style;return e=e&&n&&e.clone?e.clone(!0):e},o.prototype.setStyle=function(t,e,n,i,r,o){var a,s,a,r,a=this.J_(t,e,!0,i?i[0]:ot);a&&a.style!==n?(s=a.style,a.style=n,i&&(i[0].push("style"),a=function(){i.push(s),i.push(n)},r&&o&&s&&n&&"object"==typeof s&&"object"==typeof n&&this.HCe(s)&&this.HCe(n)&&-1!==(r=this.LCe(i,s,n,r,o))?i.push(r):a()),this.a8&&R(this.a8.style,t,e,s,n)):i&&(i.length=0)},o.prototype.HCe=function(t){return!(t.cellButtons&&t.cellButtons.some(function(t){return t.command&&"function"==typeof t.command})||t.dropDowns&&t.dropDowns.some(function(t){return t.submitCommand&&"function"==typeof t.submitCommand}))},o.prototype.FCe=function(t,e){var n,e,t,n,e=he(e,fe(t)),t=le(t);return e&&e.change[t]!==ot?e.change[t]:null},o.prototype.LCe=function(t,e,n,i,r){var t,o,a,i,s,u,i,t=this.FCe(t,i);return t!==rt&&"number"!=typeof t?-1:(o=function(t,e,n){var i,r;return gt.includes(n)&&t&&e?t.color===e.color&&t.style===e.style&&t.level===e.level:mt.includes(n)&&t&&e?JSON.stringify(t)===JSON.stringify(e):t===e},a=Object.keys(e),i=Object.keys(n).filter(function(t){return!a.includes(t)}),s={},a.forEach(function(t){"_id"===t||o(e[t],n[t],t)||(s[t]={old:e[t],new:n[t]})}),i.forEach(function(t){s[t]={old:void 0,new:n[t]}}),t!==rt&&"number"==typeof t&&r[t]&&this.BCe(r[t],s),u=Object.keys(s),-1!==(i=r.findIndex(function(e){return u.every(function(t){return e[t]&&o(e[t].old,s[t].old,t)&&o(e[t].new,s[t].new,t)})}))?i:(r.push(s),r.length-1))},o.prototype.BCe=function(e,n){var t;Object.keys(e).forEach(function(t){n[t]?n[t].old=e[t].old:n[t]=e[t]})},o.prototype.getCellState=function(t,e){var t=this.J_(t,e);return t?t.cellState:rt},o.prototype.setCellState=function(t,e,n,i){var i,r,o=this.getCellState(t,e)||0,i=i?o|n:o&~n;0!==i?(r=this.J_(t,e,!0,ot,!0))&&(r.cellState=i):((r=this.J_(t,e))&&delete r.cellState,it(r)&&(ve(this.dataTable,t,e),it(this.dataTable[t]))&&delete this.dataTable[t])},o.prototype.getValueForKey=function(t,e,n){var t=this.J_(t,e);return t&&t[n]},o.prototype.setValueForKey=function(t,e,n,i,r){var o,a,o=this.J_(t,e,!0,r?r[0]:ot);o&&o[n]!==i?(a=o[n],o[n]=i,r&&(r[0].push(n),r[1]=a,r[2]=i),this.bE(t,e,n,a,i)):r&&(r.length=0)},o.prototype.bE=function(t,e,n,i,r){var o,a=this.a8;n===ft&&a&&R(a.data,t,e,i,r)},o.prototype.rE=function(t,e,n){var i,r,o,a,s,i=this,r=i.Sx,o=i.dataTable,a=i.B8;if(0<=t&&t<=r&&0<=e){if(u(o,r,t,e),u(i.rowDataArray,r,t,e),u(a,r,t,e),i.Sx+=e,!n)for(s=0;s<e;s++)o[t+s]={rs:"n"},a[t+s]={rs:"n"};this.a8&&(this.a8.data.addHeadInfo(t,e,!0),this.a8.style.addHeadInfo(t,e,!0))}},o.prototype.yE=function(t,e,n){var i,r,o,a,s,u,c,f,l,i=this,r=i.Sx;if(0<=t&&t<r&&0<e){if(r<t+e&&(e=r-t),n)for(o=0;o<e;o++)n.push([["dataTable",a=t+o],i.dataTable[a]]),n.push([["rowDataArray",a],i.rowDataArray[a]]),n.push([[Y,a],i.B8[a]]);if(this.a8){for(u=(s=t)+e,c=i.dataTable,f=void 0;s<u;s++)if(c[s])for(l=0;l<i.Tx;l++)(f=c[s]&&c[s][l])&&(at(f.value)&&at(f.bindingPath)||this.a8.data.removeRowAndColInfo(s,l),f.style)&&this.a8.style.removeRowAndColInfo(s,l);this.a8.data.removeHeadInfo(t,e,!0),this.a8.style.removeHeadInfo(t,e,!0)}b(i.dataTable,r,t,e),b(i.rowDataArray,r,t,e),b(i.B8,r,t,e),i.Sx-=e}},o.prototype.oE=function(t,e){var n,i,r,o,a,a,n=this,i=n.Tx,r=n.B8;if(0<=t&&t<=i&&0<=e){for(o=0;o<n.Sx;o++)(a=n.dataTable[o])&&t<i&&(u(a,i,t,e),a=r[o])&&re(a,t,e);u(n.columnDataArray,i,t,e),n.Tx+=e,this.a8&&(this.a8.data.addHeadInfo(t,e,!1),this.a8.style.addHeadInfo(t,e,!1))}},o.prototype.wE=function(t,e,n){var i,r,o,a,s,u,c,f,l,h,d,v,i=this,r=i.Tx,o=i.B8,a=i.dataTable;if(0<=t&&t<r&&0<e){for(u=0;u<i.Sx;u++)if(c=i.dataTable[u]){if(n)for(f=0;f<e;f++)n.push([["dataTable",u,l=t+f],c[l]]),i.B8[u]&&n.push([[Y,u,l],i.B8[u][l]]),(s=a[u]&&a[u][l])&&this.a8&&(at(s.value)&&at(s.bindingPath)||this.a8.data.removeRowAndColInfo(u,l),s.style)&&this.a8.style.removeRowAndColInfo(u,l);b(c,r,t,e),oe(h=o[u],t,e)}if(n)for(d=0;d<e;d++)n.push([["columnDataArray",v=t+d],i.columnDataArray[v]]);b(i.columnDataArray,r,t,e),i.Tx-=e=r<t+e?r-t:e,this.a8&&(this.a8.data.removeHeadInfo(t,e,!1),this.a8.style.removeHeadInfo(t,e,!1))}},o.prototype.ME=function(t,e,n,i){var r=this,o=t[e];return n&&(o=o||(t[e]={}),!i)&&e>r.I8&&(r.I8=e),o},o.prototype.CE=function(t,e,n,i){var r,o;if(t)return r=this,o=t[e],n&&(o=o||(t[e]={}),!i)&&r.x8<e&&(r.x8=e),o},o.prototype.J_=function(t,e,n,i,r){var o,a,s,u,c,a,o=this,a=o.dataTable,s=o.columnDataArray,u=o.rowDataArray,c=rt;return t<o.Sx&&e<o.Tx&&(0<=t&&0<=e?(a=o.ME(a,t,n,r),c=o.CE(a,e,n,r),i&&i.push("dataTable",t,e)):-1===t&&0<=e?(c=s[e],n&&(c=c||(s[e]={}),!r)&&o.x8<e&&(o.x8=e),i&&i.push("columnDataArray",e)):0<=t&&-1===e?(c=u[t],n&&(c=c||(u[t]={}),!r)&&o.I8<t&&(o.I8=t),i&&i.push("rowDataArray",t)):-1===t&&-1===e&&(c=o.defaultDataNode,n&&!c&&(c=o.defaultDataNode={}),i)&&i.push("defaultDataNode")),c},o.prototype.setNode=function(t,e,n){var i,r,o,a,s,i=this,r=i.dataTable,o=i.columnDataArray,a=i.rowDataArray;t<i.Sx&&e<i.Tx&&(0<=t&&0<=e?(s=(s=r[t])||(r[t]={}))[e]=n:-1===t&&0<=e?o[e]=n:-1===e&&0<=t&&(a[t]=n))},o.prototype.SE=function(t,e,n,i,r){var o,a,s,u,c,f,l,h,d,v,g,m,p;r&&(o=[],a=[]),u=(s=this).dataTable,c=s.rowDataArray,f=s.columnDataArray,l=s.B8,h=s.J_(t,e,ot,o),d=l[t]&&l[t][e],v=l[t]&&l[t].originalItem,g=s.J_(n,i,ot,a),m=l[n]&&l[n][i],p=l[n]&&l[n].originalItem,r&&(r.push([o,h]),r.push([a,g])),h?ne(t,e,n,i,h,u,c,f,s):g&&ne(t,e,n,i,rt,u,c,f,s),g?ne(n,i,t,e,g,u,c,f,s):h&&ne(n,i,t,e,rt,u,c,f,s),d?ie(t,e,n,i,d,l,v):m&&ie(t,e,n,i,rt,l,v),m?ie(n,i,t,e,m,l,p):d&&ie(n,i,t,e,rt,l,p)},o.prototype.gT=function(t){t++;for(var e=this.Sx,n=this.dataTable;0<=t&&t<e&&!n[t];)t++;return t<e?t:-1},o.prototype.pT=function(t,e){var n,i,r,n=this,i=rt,r=n.Tx;if(i=0<=t&&t<n.Sx?n.dataTable[t]:i){for(e++;0<=e&&e<r&&!i[e];)e++;if(e<r)return e}return-1},o.prototype.TE=function(t,e,n){var n=n&&n.getFormatter(t,e);return!!ct(n)&&n},o.prototype.clear=function(t,e,n,i,r,o,a){var s,u,c,f,l,h,d,v,g,m,p,S,w,b,C,y,s=this,u=s.Sx,c=s.Tx,f=[],l=[],g=!!a,m=[];if(0<=t&&0<=e){if(n=k(n,u-t),i=k(i,c-e),0<n&&0<i)for(v=t;v<t+n;v++)if(!o||M.Common.Uf.hD(o,v)<0)for(d=e;d<e+i;d++)g&&(p=[]),(h=s.J_(v,d,ot,p))&&(f.push(h),l.push({r:v,c:d}),g&&m.push(p),0<(1&r))&&!at(h.value)&&(S=g?{}:void 0,s.dE(v,d,{d6:h.value},S),S)&&a.push(S)}else if(0<=t&&-1===e){if(0<(n=k(n,u-t)))for(v=t;v<t+n;v++)g&&(p=[]),(h=s.J_(v,-1,ot,p))&&(f.push(h),l.push({r:v,c:d}),g)&&m.push(p)}else if(-1===t&&0<=e){if(0<(i=k(i,c-e)))for(d=e;d<e+i;d++)g&&(p=[]),(h=s.J_(-1,d,ot,p))&&(f.push(h),l.push({r:v,c:d}),g)&&m.push(p)}else-1===t&&-1===e&&(g&&(p=[]),h=s.J_(-1,-1,ot,p))&&(f.push(h),l.push({r:v,c:d}),g)&&m.push(p);for(s.a8&&(w=s.a8.style,b=s.a8.data),C=function(n){var t;(h=f[n])&&(t=g?[]:ot,0<(8&r)&&(t&&t.push(["tag",h.tag]),h.tag=rt),0<(2&r)&&(t&&t.push(["style",h.style]),w&&R(w,l[n].r,l[n].c,h.style,rt),h.style=rt),0<(1&r)&&(t&&t.push(["value",h.value]),b&&R(b,l[n].r,l[n].c,h.value,rt),h.value=rt),0<(16&r)&&(t&&t.push(["sparkline",h.sparkline]),h.sparkline=rt),0<(64&r)&&(t&&t.push(["bindingPath",h.bindingPath]),b&&R(b,l[n].r,l[n].c,h.bindingPath,rt),h.bindingPath=rt),0<(256&r)&&(t&&t.push(["hyperlink",h.hyperlink]),h.hyperlink=rt),0<(4&r)&&(t&&t.push(["comment",h.comment]),h.comment=rt),0<(512&r)&&(t&&t.push(["altText",h.altText]),h.altText=rt),g)&&t.forEach(function(t){var e=[].concat(m[n]);e.push(t[0]),t[0]=e,a.push(t)})},y=0;y<f.length;y++)C(y)},o.prototype.toJSON=function(t,f,l){var h,e,n,i,r,o,a,s,u,c,d,v,g,m,p,S,w,b,C,y,M,k,T,x,t;function G(t,e,n,i,r,o){var a,s,u,u,o,t,c,e,u,o,t,i,r;return n&&(s=!(a={}),u=n.value,at(u)||(a.value=u,s=!0),f&&f.saveAsView&&(u=void 0,o?u=o:h&&(u=l&&l.getFormatter(t,e)),u)&&ct(u)&&(o=l.Oe(t,e,i,u),at(o)||(a.value=o,s=!0)),!at(t=a.value)&&"object"==typeof t&&0<Object.keys(t).length&&(a.value=Re(t)),(c=f&&f.ignoreStyle)||(e=n.style)&&!it(e)&&("string"==typeof e?(a.style=e,s=!0):(u=e.toJSON(i,r))&&(u.name=ot,u.fontForColumnWidth=e.fontForColumnWidth,a.style=u,s=!0)),o=n.bindingPath,at(o)||(a.bindingPath=o,s=!0),t=n.tag,at(t)||(a.tag=t,s=!0),i=n.altText,at(i)||(a.altText=i,s=!0),r=n.hyperlink,at(r)||(a.hyperlink=st(r),delete a.hyperlink.isVisited,s=!0),!0===s)?a:rt}if(h=l&&l.parent&&!it(l.parent.bp),n={},i={},r=(e=this).Sx,o=e.Tx,a=e.dataTable,s=e.rowDataArray,u=e.columnDataArray,f&&f.saveAsView)for(v=0,g=3===t&&h;v<r;){if((m=a[v])||g){for(S=!(p={}),w=0;w<o;)b=void 0,m&&m[w]?b=G(v,w,m[w]):g&&(C=this.TE(v,w,l))&&(m=m||e.ME(a,v,!0),b=G(v,w,e.CE(m,w,!0),3,!1,C)),at(b)||(p[w]=b,S=!0),w++;S&&(i[v]=p)}v++}else for(c=e.gT(-1);0<=c;){for(S=!(p={}),d=e.pT(c,-1);0<=d;)(y=e.J_(c,d))&&(b=G(c,d,y),it(b)||(p[d]=b,S=!0)),d=e.pT(c,d);S&&(i[c]=p),c=e.gT(c)}for(it(i)||(n.dataTable=i),M=[],c=0;c<r;c++)B(s,c)&&s[c]&&(k=G(c,-1,s[c]),it(k)||(M[c]=k));for(0<M.length&&(n.rowDataArray=M),T=[],d=0;d<o;d++)B(u,d)&&u[d]&&(x=G(-1,d,u[d]),it(x)||(T[d]=x));return 0<T.length&&(n.columnDataArray=T),t=G(-1,-1,e.defaultDataNode,t,!0),it(t)||(n.defaultDataNode=t),n},o.prototype.fromJSON=function(t,e,n,i,r,o,a){var s,u,c,f,l,h,d,v,g,m,p,o,s=n&&n.incrementalLoading;if(t){if((u=this).Hc(),u.lE++,c=t.dataTable,h=u.Sx,d=u.Tx,c?s&&3===o?qt(u,c,h,d,n,e,ot,a,u.a8,i,r):$t(u,c,h,d,n,e,u.a8,i,r):s&&a&&setTimeout(a,0),m=t.rowDataArray||t.AE)for(f=0;f<h;f++)B(m,f)&&m[f]&&se(m[f],u.J_(f,-1,!0),e,f,-1,n,u.a8);if(p=t.columnDataArray||t.IE)for(l=0;l<d;l++)B(p,l)&&p[l]&&se(p[l],u.J_(-1,l,!0),e,-1,l,n,u.a8);(o=t.defaultDataNode||t.xE)&&se(o,u.J_(-1,-1,!0),e,-1,-1,n,u.a8),u.lE--}else s&&a&&setTimeout(a,0)},o.prototype.wh=function(t,F,e,_,n,i){var r,A,L,D,j,O,V,o,Y,a,K,s,i,a,u,i,c,z,f,l,h,d,v,g,m,g,W,p,S,w,b,b,C,y,M,k,J,T,x,G,B,I,P,N,R,E,Z,Q,X,q,R,H,U,H,$,N,r=this,A=0,L=0,D=r.Sx,j=r.Tx,O=r.dataTable,V=[],o=i&&!1===i.includeStyles,Y=i&&i.saveAsView,a=i&&!1===i.includeEmptyRegionCells,K=t&&t.parent&&!it(t.parent.bp),s=i&&i.fileType===nt.OpenSaveFileType.excel;for(a&&(i=nt.UsedRangeType.all-nt.UsedRangeType.colStyle-nt.UsedRangeType.rowStyle-nt.UsedRangeType.style-nt.UsedRangeType.axis,a=t.getUsedRange(i))&&(A=a.row,L=a.col,D=a.row+a.rowCount,j=a.col+a.colCount),i={sheetData:u={n_:ut.XFileConstants.bo,rowCount:r.Sx,colCount:r.Tx},hyperlinks:V},c=!t.NMi&&t.getDefaultStyle(3),Object.keys(F).forEach(function(t){var e,n,i,e,t,e=F[t],n=e&&e.size,i=!at(n)&&n!==_,e=e&&!1===e.visible?1:ot;!0!=i&&!e||((t=u[t]={}).h=i&&n!==ot?+et.SJSColumnWidthHelper.pixelToPoint(n).toFixed(2):ot,t.v=e)}),z=s?t.Ut.yle().gle():{},f=A;f<D;f++){if(l=u[f]||{r:f+1},h=O[f],d=z[f],v=void 0,m=(g=r.J_(f,-1))&&g.style,at(m)||o||(s?("string"==typeof m&&0===m.indexOf(e.Jd)&&(g=m,m=(m=t.i3(g,!1))||(W=t.parent)&&W.i3(g,!1)),l.s=e.getStyleIndex(m)):"string"==typeof m?l.t=e.getOriginNamedStyleIndex(m,t):m!==ot&&(l.e=e.getOriginStyleIndex(m,t)),v=!0),h||d){for(p=L;p<j;p++){if(w={},!(S=h&&h[p]))if(d&&d[p])S=d[p];else if(!s||!t.tables.find(f,p))continue;if(S&&(at(S.tag)||(w.tag=S.tag),at(S.altText)||(w.altText=S.altText),b=S.bindingPath,at(b)||(w.bindingPath=b)),b=r.getStyle(-1,p,!0),C=rt,B=null==S?void 0:S.value,I=r.getStyle(f,p,!(G=x=T=J=k=M=y=void 0)),P=null==S?void 0:S.hyperlink,at(B)&&d&&d[p]&&(B=d[p].value),N=!1,Y&&(!(R=r.TE(f,p,t))&&K&&(R=t.getFormatter(f,p)),ct(R))&&(E=t.Oe(f,p,3,R),!at(E))){switch(Z=typeof E){case"boolean":k=E?1:0;break;case"string":G=X=(Q=Vt(E,n)).OADateNumber,y=q=Q.valueIndex;break;case"object":y=E instanceof Date?(E=et.util.Z0(E),I.formatter="M/d/yyyy",n.getTextIndex(E)):E;break;default:M=isFinite(E)?E:ot}N=!0}if(!o)if(s){if(R=P||"string"==typeof B&&"/OADate"===B.substring(0,7)||B!==rt&&void 0!==B&&(b||m),I?C=Be(t,I):R?C=new tt.Style:(b||m)&&(H=t.getValue(f,p),at(H)||(C=new tt.Style)),C){if(C.parentName)for((U=Be(t,C.parentName))&&Ie(t,C,U);U&&U.parentName;)(U=Be(t,U.parentName))&&Ie(t,C,U);m&&Ie(t,C,m),b&&Ie(t,C,b),c&&Ie(t,C,c),C=xe(B,C)}}else"string"==typeof I?T=e.getOriginNamedStyleIndex(I,t):I!==ot&&(x=e.getOriginStyleIndex(I,t));if(at(B)&&(T===ot&&x===ot&&at(C)||o)&&at(P))it(w)||(l[p]={lossless:w},v=!0);else{if(v=!0,!N&&!at(B))switch("object"==(H=typeof B)&&0<Object.keys(B).length&&(B=Re(B)),H){case"boolean":k=B?1:0;break;case"string":G=X=($=Vt(B,n)).OADateNumber,y=q=$.valueIndex;break;case"object":y=B&&B.richText?n.getTextIndex(B):B&&B instanceof Date?n.getTextIndex(B.toISOString()):at(B._error)&&at(B._code)?B:{error:B._error,code:B._code};break;default:M=isFinite(B)?B:ot}at(P)||(s&&(C?"string"==typeof C&&(C=t.u8(C)):C=new tt.Style,at(P.linkColor)?P.linkColor===ot&&C.foreColor||(C.foreColor="hyperlink"):C.foreColor=P.linkColor,P.drawUnderline&&at(C.textDecoration)?C.textDecoration=1:2!==C.textDecoration&&4!==C.textDecoration||(C.textDecoration+=1)),V.push({row:f,col:p,value:S.value,hyperlink:st(P)})),N={s:J=C?e.getStyleIndex(C,3,t.name()):J,v:y,n:M,b:k,t:T,e:x,o:G},it(w)||(N.lossless=w),l[p]=N}}}v&&(u[f]=l)}return i},o.prototype.yh=function(t,e,n,i,r,o,a,s,u){var c,f,l,h,d,c=this,f={};if(e)for(l=e.colCount,h=0;h<l;h++)(d=c.J_(-1,h))&&d.style&&(f[h]=1);te(this,t,e,n,i,r,o,a,s,u,f)},Tt=o,a.prototype.NE=function(t,e){var n,i,n=this.infos,i=n[t];return i=!i&&e?n[t]={}:i},a.prototype.kE=function(t,e){var n=this.infos,i=n.length;0<=t&&t<=i&&0<e&&u(n,i,t,e)},a.prototype.DE=function(t,e,n){var i,r,o,a,i=this.infos,r=i.length;if(0<=t&&t<r&&0<e){if(e=k(e,r-t),n)for(o=0;o<e;o++)n.push([["infos",a=t+o],i[a]]);b(i,r,t,e)}},a.prototype._E=function(){return this.infos.length},a.prototype.EE=function(){return this.infos},a.prototype.q_=function(t){return this.infos[t]},a.prototype.X_=function(t,e,n){var i=this.infos[t];this.infos[t]=e,n&&(n[0].push("infos",t),n[1]=i,n[2]=e)},a.prototype.getSize=function(t){var t=this.infos[t],e=rt;return t&&(!1===t.visible?e=0:At(t.size)&&(e=V(t.size))),e},a.prototype.getColumnHeaderFitMode=function(t){var t=this.infos[t],e=nt.ColumnHeaderFitMode.normal;return e=t?t.columnHeaderFitMode||e:e},a.prototype.setColumnHeaderFitMode=function(t,e,n){var i,r,i=this.NE(t,!0),r=i.columnHeaderFitMode;r!==e&&(i.columnHeaderFitMode=e),n&&(n[0].push("infos",t,"columnHeaderFitMode"),n[1]=r)},a.prototype.getActualSize=function(t){var t=this.infos[t];return t?V(t.size):rt},a.prototype.setSize=function(t,e,n){var i,r,i=this.NE(t,!0),r=i.size;r!==e&&(i.size=e),n&&(n[0].push("infos",t,"size"),n[1]=r,n[2]=e)},a.prototype.getStarSize=function(t){var t=this.infos[t];return t?t.starSize:ot},a.prototype.setStarSize=function(t,e,n){var i,r,i=this.NE(t,!0),r=i.starSize;at(e)&&at(r)||(r!==e&&(at(e)?delete i.starSize:i.starSize=e),n&&(n[0].push("infos",t,"starSize"),n[1]=r,n[2]=e))},a.prototype.getScrollOffsetX=function(t){var t,e,t=this.q_(t),e=0;return e=t&&At(t.scrollOffsetX)?t.scrollOffsetX:e},a.prototype.setScrollOffsetX=function(t,e,n){var t=this.NE(t,!0);n&&(e+=t.scrollOffsetX||0),t.scrollOffsetX=e},a.prototype.getScrollContentWidth=function(t){var e,t,n,e=this.q_(t),t=this.getSize(t),n=t;return e&&At(e.scrollContentWidth)&&(n=e.scrollContentWidth),p(n,t)},a.prototype.setScrollContentWidth=function(t,e){var n,t,n=this.NE(t,!0),t=this.getSize(t);n.scrollContentWidth=e=e<t?t:e},a.prototype.getHiddenRows=function(){return this.R8},a.prototype.wh=function(t){return this.infos},a.prototype.yh=function(t,e){var n,i,r,o,a,s,u,n=this,i=t;if(i)for(r=t.rowCount,o=0;o<r;o++)(a=i[o])&&(u=s=void 0,a.h!==ot&&(s=Math.round(et.SJSColumnWidthHelper.pointToPixel(a.h))),a.v&&(at(a.l)||0===a.l)&&(u=!1,n.R8.push(o)),at(s=!1===u&&0===s?ot:s)||n.setSize(+o,s),at(u)||n.setVisible(+o,u))},a.prototype.toJSON=function(t){var e,n,i,r,o,r,r,a,r,a,e=this.infos,n=[];if(t&&t.ignoreStarSize)for(i=0;i<e.length;i++)at(e[i])||(o=(r=e[i]).cellType,r=v(r,["cellType"]),n[i]=st(r),o&&(o.toJSON&&(o=o.toJSON()),r=_.ti,a=o.typeName,r=r[o.type]||r[a]||F.getTypeFromString(a))&&((a=new r).fromJSON(o,t),n[i].cellType=a),delete n[i].starSize);else for(i=0;i<e.length;i++)at(e[i])||(n[i]=e[i]);return 0<n.length?n:ot},a.prototype.fromJSON=function(t){t&&(this.infos=t)},xt=(f=a).prototype,D({visible:!0,resizable:!0,pageBreak:!1},function(o,n){var t=o[0].toUpperCase()+o.substr(1);xt["get"+t]=function(t){var e,t,e=n,t=this.infos[t];return e=t&&!at(t[o])?t[o]:e},xt["set"+t]=function(t,e,n){var i,r,i=this.NE(t,!0),r=i[o];r!==e&&(i[o]=e),n&&(n[0].push("infos",t,o),n[1]=r,n[2]=e)}}),Bt=62,It=40,g.DEFAULT_COL_HEADER_ROW_HEIGHT=Gt=20,T.prototype.Spe=function(){this.lh={}},T.prototype.getUsedRange=function(t){var e=this,n={};return d(n,e.ZE(t)),d(n,e.sheetModels[3].hE(t)),d(n,e.defaultValueModels[3].hE(t)),d(n,e.WE(t)),d(n,e.QE(t)),n},T.prototype.ZE=function(t){var e,n,t,i,r,o,a;if(t&nt.UsedRangeType.span&&(t=(n=(e=this).spanModels[nt.SheetArea.viewport]).spans,!at(t))&&0<t.length){for(i={},r=0,o=t;r<o.length;r++)a=o[r],d(i,ht(a));return i}},T.prototype.WE=function(t){var e,n,i,r,t,o,e,a,s,u,c,f,l,e=!(t&nt.UsedRangeType.axis);if(t&nt.UsedRangeType.data||!e){if(n=e?function(t){return!at(t)&&!at(t.name)}:function(t){return!at(t)},r=(i=this).colInfos[3].infos,t={},0<(e=(o=Object.keys(r)).length)){for(u=0,c=o;u<c.length;u++)if(n(r[f=c[u]])){a=+f;break}for(l=e-1;0<=l;l--)if(n(r[o[l]])){s=+o[l];break}at(a)||at(s)||d(t,{minRow:0,minCol:a,maxRow:1/0,maxCol:s})}return t}},T.prototype.QE=function(t){var e,n,t,i,r,o,a,s,u,c,f;if(t&nt.UsedRangeType.axis){if(n=(e=this).rowInfos[3].infos,t={},0<(a=(o=Object.keys(n)).length)){for(s=0,u=o;s<u.length;s++)if(c=u[s],!at(n[c])){i=+c;break}for(f=a-1;0<=f;f--)if(!at(n[o[f]])){r=+o[f];break}at(i)||at(r)||d(t,{minRow:i,minCol:0,maxRow:r,maxCol:1/0})}return t}},T.prototype.KE=function(t,e,n,i,r){var r;3!==n||t<0||e<0||!this.Mf||this.Mf.hasFormula===ot||Me(r=this.W_(3).J_(t,e,!!r),i,this.Mf.hasFormula(t,e,n),r&&r.style,this.F8,this.Mf.parent)},T.prototype.JE=function(t,e,n){var n;3!==n||t<0||e<0||(n=this.W_(3).J_(t,e))&&Ce(n)},T.prototype.V8=function(t,e){var n=this;n.L8({type:nt.AxisInfoChangeType.setRowCount,count:t}),n.L8({type:nt.AxisInfoChangeType.setColumnCount,count:e})},T.prototype.L8=function(t){var e,n,i,r,r,o,a,s,u,c,f,l,h,d,e=this,n=e.Mf,i=t.type,r=t.sheetArea,r=void 0===r?nt.SheetArea.viewport:r;if(r===nt.SheetArea.viewport)if(at(e.XE)&&(e.XE=[]),at(e.qE)&&(e.qE=[]),e.$E)e.tj(t);else switch(o=e.XE,a=e.qE,i){case nt.AxisInfoChangeType.deleteRows:s=t.index,u=t.count,o.splice(s,u);break;case nt.AxisInfoChangeType.deleteColumns:s=t.index,u=t.count,a.splice(s,u);break;case nt.AxisInfoChangeType.setRowHeight:case nt.AxisInfoChangeType.setRowVisible:s=t.index,c=t.value,o[s]=c;break;case nt.AxisInfoChangeType.setColumnWidth:case nt.AxisInfoChangeType.setColumnVisible:s=t.index,c=t.value,a[s]=c;break;case nt.AxisInfoChangeType.filterRows:for(l=0,h=f=t.index;l<h.length;l++)s=h[l],c=n.getRowHeight(s),o[s]=c;break;case nt.AxisInfoChangeType.outlineExpandRows:for(f=t.index,d=0;d<f.length;d++)s=f[d],c=n.getRowHeight(s),o[s]=c;break;case nt.AxisInfoChangeType.outlineExpandColumns:for(f=t.index,d=0;d<f.length;d++)s=f[d],c=n.getColumnWidth(s),a[s]=c}},T.prototype.nj=function(t){var t;if(this.XE)return t=this.XE[t],at(t)?this.defaults.rowHeight:t},T.prototype.ej=function(t){var t;if(this.qE)return t=this.qE[t],at(t)?this.defaults.colWidth:t},T.prototype.v8=function(){this.$E=[]},T.prototype.A8=function(){var t,e,n,i,r,t=this,e=t.$E;if(t.$E=rt,e)for(n=0,i=e;n<i.length;n++)r=i[n],t.L8(r)},T.prototype.tj=function(t){this.$E&&this.$E.push(t)},T.prototype.m8=function(){var t=this;t.XE=rt,t.qE=rt},T.prototype.ij=function(){this.F8=rt},T.prototype.L0=function(t){var e;!1!==t&&((e=this).Mf=rt,e.sheetModels=rt,e.defaultValueModels&&(e.defaultValueModels.forEach(function(t){null!=t&&t.dispose()}),e.defaultValueModels=rt),e.m8(),e.ij(),T.f2e(this.Cpe)),T.et(this,"dispose",{clearCache:t})},T.prototype.addRows=function(t,e,n,i,r){var o,a;void 0===r&&(r=nt.SheetArea.viewport),0<(o=this).P8&&o.G8.push(a={row:t,rowCount:e,type:"addRows",sheetArea:r}),1===r?(o.W_(1).rE(t,e,i),o.yle(1).rE(t,e),o.K_(1).rE(t,e),o.Q_(!0,1).kE(t,e)):(o.W_(3).rE(t,e,i),o.W_(2).rE(t,e,i),o.yle(3).rE(t,e),o.yle(2).rE(t,e),o.K_(3).rE(t,e),o.K_(2).rE(t,e),o.Q_(!0,3).kE(t,e),!i&&N&&o.Mf.Uw(3).t8.rE(t,e)),n||T.et(o,"addRows",{row:t,rowCount:e,sheetArea:r,changes:o.G8}),o.L8({type:nt.AxisInfoChangeType.addRows,index:t,count:e,sheetArea:r})},T.prototype.rj=function(t,e){var n,i,r,t,n=this,i=t.row,r=t.rowCount,t=t.sheetArea;e?n.addRows(i,r,!0,!e,t):n.deleteRows(i,r,!0,t),T.et(n,"undoAddRows",{row:i,rowCount:r,sheetArea:t})},T.prototype.deleteRows=function(t,e,n,i){var r,o,a,s,u,c,f,l,h,d,v,g,o=(i=void 0===i?nt.SheetArea.viewport:i)===nt.SheetArea.colHeader;if(0<(r=this).P8&&(s=[],u=[],c=o?[]:[["spanModels",3],ot],f=o?[]:[["spanModels",2],ot],l=[],h=[],a={row:t,rowCount:e,type:"deleteRows",sheetArea:i}),o?(r.W_(1).yE(t,e),r.yle(1).yE(t,e),r.K_(1).aE(t,e),r.Q_(!0,1).DE(t,e)):(N&&r.Mf.Uw(3).t8.aE(t,e,!0),r.W_(3).yE(t,e,s),r.W_(2).yE(t,e,u),r.yle(3).yE(t,e,h),r.yle(2).yE(t,e),r.K_(3).aE(t,e,c),r.K_(2).aE(t,e,f),r.Q_(!0,3).DE(t,e,l)),n||T.et(r,"deleteRows",{row:t,rowCount:e,changes:r.G8,sheetArea:i}),a){for(r.G8.push(a),d=a.changes=[],v=[C,3],g=0;g<s.length;g++)s[g][0]=v.concat(s[g][0]),d.push(s[g]);for(v=[C,2],g=0;g<u.length;g++)u[g][0]=v.concat(u[g][0]),d.push(u[g]);for(0<c.length&&d.push(c),0<f.length&&d.push(f),v=[S,3],g=0;g<l.length;g++)l[g][0]=v.concat(l[g][0]),d.push(l[g]);for(v=[y,3],g=0;g<h.length;g++)h[g][0]=v.concat(h[g][0]),d.push(h[g])}r.L8({type:nt.AxisInfoChangeType.deleteRows,index:t,count:e,sheetArea:i})},T.prototype.oj=function(t,e){var n,i,r,o,a,s,e,n=this,i=t.row,r=t.rowCount,o=t.sheetArea;if(e)n.deleteRows(i,r,!0,o);else{for(n.addRows(i,r,!0,!0,o),s=(a=t.changes).length-1;0<=s;s--)me(n,a[s]);N&&n.Mf.Uw(3).t8.Eme(i,r)}(e=n.Mf&&n.Mf.aj)&&e.splice(e.length-r,r)},T.prototype.addColumns=function(t,e,n,i,r){var o,a;void 0===i&&(i=nt.SheetArea.viewport),0<(o=this).P8&&o.G8.push(a={col:t,colCount:e,type:"addColumns",sheetArea:i}),2===i?(o.W_(2).oE(t,e),o.yle(2).oE(t,e),o.K_(2).oE(t,e),o.Q_(!1,2).kE(t,e)):(o.W_(3).oE(t,e),o.W_(1).oE(t,e),o.yle(3).oE(t,e),o.yle(1).oE(t,e),o.K_(3).oE(t,e),o.K_(1).oE(t,e),o.Q_(!1,3).kE(t,e),!r&&N&&o.Mf.Uw(3).t8.oE(t,e)),n||T.et(o,"addColumns",{col:t,colCount:e,changes:o.G8,sheetArea:i}),o.L8({type:nt.AxisInfoChangeType.addColumns,index:t,count:e,sheetArea:i})},T.prototype.uj=function(t,e){var n,i,r,t,n=this,i=t.col,r=t.colCount,t=t.sheetArea;e?n.addColumns(i,r,!0,t):n.deleteColumns(i,r,!0,t)},T.prototype.deleteColumns=function(t,e,n,i){var r,o,a,s,u,c,f,l,h,d,v,g,o=(i=void 0===i?nt.SheetArea.viewport:i)===nt.SheetArea.rowHeader;if(0<(r=this).P8&&(s=[],u=[],c=o?[]:[["spanModels",3],ot],f=o?[]:[["spanModels",1],ot],l=[],h=[],a={col:t,colCount:e,type:"deleteColumns",sheetArea:i}),o?(r.W_(2).wE(t,e),r.yle(2).wE(t,e),r.K_(2).uE(t,e),r.Q_(!1,2).DE(t,e)):(N&&r.Mf.Uw(3).t8.uE(t,e,!0),r.W_(3).wE(t,e,s),r.W_(1).wE(t,e,u),r.yle(3).wE(t,e,h),r.yle(1).wE(t,e),r.K_(3).uE(t,e,c),r.K_(1).uE(t,e,f),r.Q_(!1,3).DE(t,e,l)),n||T.et(r,"deleteColumns",{col:t,colCount:e,changes:r.G8,sheetArea:i}),a){for(r.G8.push(a),d=a.changes=[],v=[C,3],g=0;g<s.length;g++)s[g][0]=v.concat(s[g][0]),d.push(s[g]);for(v=[C,1],g=0;g<u.length;g++)u[g][0]=v.concat(u[g][0]),d.push(u[g]);for(0<c.length&&d.push(c),0<f.length&&d.push(f),v=[w,3],g=0;g<l.length;g++)l[g][0]=v.concat(l[g][0]),d.push(l[g]);for(v=[y,3],g=0;g<h.length;g++)h[g][0]=v.concat(h[g][0]),d.push(h[g])}r.L8({type:nt.AxisInfoChangeType.deleteColumns,index:t,count:e,sheetArea:i})},T.prototype.sj=function(t,e){var n,i,r,o,a,s,n=this,i=t.col,r=t.colCount,o=t.sheetArea;if(e)n.deleteColumns(i,r,!0,o);else{for(n.addColumns(i,r,!0,o,!0),s=(a=t.changes).length-1;0<=s;s--)me(n,a[s]);N&&n.Mf.Uw().t8.Ome(i,r)}},T.prototype.getRowCount=function(t){return this.W_(t).getRowCount()},T.prototype.setRowCount=function(t,e,n){var i,r,i=this,r=i.getRowCount(e);0<i.P8&&i.G8.push({oldRowCount:r,sheetArea:e,type:"setRowCount"}),3===e||2===e?(t<r&&i.deleteRows(t,r-t,n),i.W_(3).setRowCount(t),i.W_(2).setRowCount(t),i.yle(3).setRowCount(t),i.Mf.ki(et.Events.WorksheetDataChanged,{type:"count"})):1===e&&(t<r&&i.Q_(!0,e).DE(t,r-t),i.W_(e).setRowCount(t)),i.L8({type:nt.AxisInfoChangeType.setRowCount,count:t,sheetArea:e})},T.prototype.cj=function(t){var e=this;e.W_(3).setRowCount(t),e.W_(2).setRowCount(t),e.yle(3).setRowCount(t),e.L8({type:nt.AxisInfoChangeType.setRowCount,count:t,sheetArea:3})},T.prototype.fj=function(t,e){e?this.setRowCount(t.rowCount,t.sheetArea,!0):this.setRowCount(t.oldRowCount,t.sheetArea,!0)},T.prototype.getColumnCount=function(t){return this.W_(t).getColumnCount()},T.prototype.setColumnCount=function(t,e,n){var i,r,i=this,r=i.getColumnCount(e);0<i.P8&&i.G8.push({oldColCount:r,sheetArea:e,type:"setColumnCount"}),3===e||1===e?(t<r&&i.deleteColumns(t,r-t,n),i.W_(3).setColumnCount(t),i.W_(1).setColumnCount(t),i.yle(3).setColumnCount(t),i.Mf.ki(et.Events.WorksheetDataChanged,{type:"count"})):2===e&&(t<r&&i.Q_(!1,e).DE(t,r-t),i.W_(e).setColumnCount(t)),i.L8({type:nt.AxisInfoChangeType.setColumnCount,count:t,sheetArea:e})},T.prototype.lj=function(t,e){e?this.setColumnCount(t.colCount,t.sheetArea,!0):this.setColumnCount(t.oldColCount,t.sheetArea,!0)},T.prototype.getLastNonNullRow=function(t,e){var n,n;return n={isRow:!0,sheetArea:t=at(t)?3:t,index:ot,isIndexGet:!1},T.et(this,"getLastNonNullRowOrCol",n),n.isIndexGet?n.index:(n=e?0:this.Q_(!0,t)._E()-1,p(this.W_(t).I8,this.K_(t).I8,this.yle(t).I8,n))},T.prototype.getLastNonNullCol=function(t,e){var n,n;return n={isRow:!1,sheetArea:t=at(t)?3:t,index:ot,isIndexGet:!1},T.et(this,"getLastNonNullRowOrCol",n),n.isIndexGet?n.index:(n=e?0:this.Q_(!1,t)._E()-1,p(this.W_(t).x8,this.K_(t).x8,this.yle(t).x8,n))},T.prototype.getFreeAreaRowCount=function(t){var t=this.W_(t);return t&&t.getFreeAreaRowCount()},T.prototype.getFreeAreaColumnCount=function(t){var t=this.W_(t);return t&&t.getFreeAreaColumnCount()},T.prototype.setFreeAreaRowCount=function(t,e){this.W_(e).setFreeAreaRowCount(t)},T.prototype.setFreeAreaColumnCount=function(t,e){this.W_(e).setFreeAreaColumnCount(t)},T.prototype.hj=function(){var t,s,e,t;function n(t,e){for(var n,i,r,o,a,n=e.length,i=0;i<n;i++)r=e[i][0],o=e[i][1],(a=e[i][2])!==o&&(t?s.dj(r,3,"height",o,a):s.vj(r,3,"width",o,a))}e=0!==(s=(t=this).Mf).ot().height&&t.mj(!0,s.defaults.rowHeight),t=0!==s.ot().width&&t.mj(!1,s.defaults.colWidth),e&&n(!0,e),t&&n(!1,t)},T.prototype.mj=function(t,e){var n,i,r,o,a,s,u,c,f,l,h,d,v,g,m,p,S,w,b,C,y,M,f,k,T,T,n=this,i=n.Mf,r=[],o=i.zoom(),a=t?i.getRowCount():i.getColumnCount(),s=n.Q_(t,3),u=0,f=0;if(i.gj&&(f=t?i.gj().height:i.gj().width),t){if(i.options.colHeaderVisible)for(l=0;l<i.getRowCount(1);l++)u+=x(o*i.getRowHeight(l,1));c=i.ot().height-i.options.sheetAreaOffset.top-f-u}else{if(i.options.rowHeaderVisible)for(l=0;l<i.getColumnCount(2);l++)u+=x(o*i.getColumnWidth(l,2));c=i.ot().width-i.options.sheetAreaOffset.left-f-u}for(h=[],d=[],v=[],m=t?i.getRowVisible:i.getColumnVisible,l=g=0;l<a;l++)if(p=m.call(i,l),S=i.Ut.getSize(t,3,l),w=i.Ut.getStarSize(t,3,l),O.test(w))b="*"===w?1:parseFloat(w.replace("*","")),p&&0<b?(g+=b,h.push(l),d.push(b),v.push(S)):r.push([l,0,S]);else if(S=At(S)?Math.floor(S):e,p&&(c-=x(o*S))<1)return;if(!(g+r.length===0||c<1)){for(C=h.length,l=0;l<C-1;l++)if(S=V((y=c/g/o)*(b=d[l])),M=x(o*S),r.push([h[l],S,v[l]]),c-=M,g-=b,M<1||c<1)return;for(f=x((c-1e-4)/o),r.push([h[C-1],f,v[C-1]]),l=0;l<r.length;l++)k=r[l][0],T=r[l][1],s.setSize(k,T),T=t?nt.AxisInfoChangeType.setRowHeight:nt.AxisInfoChangeType.setColumnWidth,n.L8({type:T,index:k});return r}},T.prototype.setCellState=function(t,e,n,i,r){var r=this.W_(r);r&&r.setCellState(t,e,n,i)},T.prototype.toJSON=function(t){var e,n,i,r,i,t,o,e=this,n={},i=e.Mf;return n.data=e.W_(3).toJSON(3,t,e.Mf),n.rowHeaderData=e.W_(2).toJSON(2,t),n.colHeaderData=e.W_(1).toJSON(1,t),n.rows=e.Q_(!0,3).toJSON(t),n.columns=e.Q_(!1,3).toJSON(t),n.rowHeaderColInfos=e.Q_(!1,2).toJSON(t),n.colHeaderRowInfos=e.Q_(!0,1).toJSON(t),n.defaultData=e.yle(3).toJSON(),i.filterRowsVisibleInfo&&!i.filterRowsVisibleInfo.empty&&e.updateToJsonRowInfo(i.filterRowsVisibleInfo.rowsVisibleInfo,n,i),n.leftCellIndex=i.getViewportLeftColumn(1),n.topCellIndex=i.getViewportTopRow(1),(r=t&&t.ignoreStyle)||(n.spans=ge(e.K_(3).toJSON()),n.rowHeaderSpan=ge(e.K_(2).toJSON()),n.colHeaderSpan=ge(e.K_(1).toJSON())),n.selections=e.selectionModel.toJSON(),(o=20===(t={colHeaderRowHeight:(i=e.defaults).colHeaderRowHeight,colWidth:i.colWidth,rowHeaderColWidth:i.rowHeaderColWidth,rowHeight:i.rowHeight,_isExcelDefaultColumnWidth:i._isExcelDefaultColumnWidth}).rowHeight&&62===t.colWidth&&40===t.rowHeaderColWidth&&t.colHeaderRowHeight===g.DEFAULT_COL_HEADER_ROW_HEIGHT)||(n.defaults=t),n},T.prototype.updateToJsonRowInfo=function(t,e,n){var i,r,o,a;for(at(e.rows)&&(e.rows=[]),i=e.rows,r=n.getRowCount(),o=0;o<r;o++)(a=!1===t[o])&&(at(i[o])?i[o]={}:i[o]=l({},i[o]),i[o].visible=!1,i[o].isFilter=!0)},T.prototype.fromJSON=function(t,e,n,i,r){var o,a,s,u,c,f,l,h,d,v,i,r,o=this,a=o.F8;if(o.W_(3).fromJSON(t.data,e,n,a,i,3,r),o.W_(2).fromJSON(t.rowHeaderData,e,n,a),o.W_(1).fromJSON(t.colHeaderData,e,n,a),o.Mf.showCell(t.topCellIndex||0,t.leftCellIndex||0,nt.VerticalPosition.top,nt.HorizontalPosition.left),o.Q_(!0,3).fromJSON(t.rows),o.Q_(!1,3).fromJSON(t.columns),o.Q_(!1,2).fromJSON(t.rowHeaderColInfos),o.Q_(!0,1).fromJSON(t.colHeaderRowInfos),o.yle(3).fromJSON(t.defaultData),t&&t.rows)for(u=0,c=s=Object.keys(t.rows);u<c.length;u++)f=c[u],l=t.rows[f],at(l)||o.L8({type:nt.AxisInfoChangeType.setRowHeight,index:+f});if(t&&t.columns)for(h=0,d=s=Object.keys(t.columns);h<d.length;h++)f=d[h],l=t.columns[f],at(l)||o.L8({type:nt.AxisInfoChangeType.setColumnWidth,index:+f});(v=n&&n.ignoreStyle)||(o.K_(3).fromJSON(t.spans,o.getRowCount(),o.getColumnCount()),o.K_(2).fromJSON(t.rowHeaderSpan),o.K_(1).fromJSON(t.colHeaderSpan)),o.selectionModel.fromJSON(t.selections,t.rowCount,t.columnCount),o.Rue(t.tag),(i=t.defaults)!==ot&&((r=o.defaults).colHeaderRowHeight=_t(i.colHeaderRowHeight,g.DEFAULT_COL_HEADER_ROW_HEIGHT),r.colWidth=_t(i.colWidth,62),r.rowHeaderColWidth=_t(i.rowHeaderColWidth,40),r.rowHeight=_t(i.rowHeight,20),r._isExcelDefaultColumnWidth=i._isExcelDefaultColumnWidth)},T.prototype.Rue=function(t){var e,n,n,n;t!==ot&&t!==rt&&(e=this,typeof(n=t.typeName)===m&&(n=F.getTypeFromString(n))&&((n=new n).fromJSON&&n.fromJSON(t),t=n),e.do("setValueForKey",-1,-1,"tag",t,3))},T.prototype.wh=function(t,e,n){var i,r,o,t,r,e,t,a,s,u,t,c,f,l,h,n,n,d,o,i,v,i=this,r=i.defaults.rowHeight,o=i.Q_(!0,3).wh(n),t=i.W_(3).wh(i.Mf,o,t,r,e,n),r=t.sheetData,e=t.hyperlinks,t={};return n&&(t.saveAsView=n.saveAsView,t.ignoreStyle=!1===n.includeStyles),a=i.W_(2).toJSON(2,t),s=i.W_(1).toJSON(1,t),u=i.Q_(!1,2).toJSON(t),t=i.Q_(!0,1).toJSON(t),c=i.yle(3).wh(n),f=i.getValueForKey(-1,-1,"tag",3),n&&!1===n.includeStyles||(l=ge(i.K_(2).toJSON()),h=ge(i.K_(1).toJSON())),n={colHeaderRowHeight:(n=i.defaults).colHeaderRowHeight,rowHeaderColWidth:n.rowHeaderColWidth},d=[],o.forEach(function(t,e){t&&t.starSize&&(d[e]={starSize:t.starSize})}),o=i.selectionModel.selectionPolicy,i=i.selectionModel.selectionUnit,v=40===n.rowHeaderColWidth&&n.colHeaderRowHeight===g.DEFAULT_COL_HEADER_ROW_HEIGHT,{sheetData:r,hyperlinks:e,rowHeaderData:a,colHeaderData:s,rowHeaderColInfos:u,colHeaderRowInfos:t,rowHeaderSpan:l,colHeaderSpan:h,rowInfos:d,defaultData:c,tag:f,defaults:v?void 0:n,selectionPolicy:o,selectionUnit:i}},T.prototype.yh=function(t,e,n,i,r,o,a){var s,t,u,c,e,r,o,a,s=this;s.Q_(!0,3).yh(t,n),s.W_(3).yh(s.Mf,t,e,n,ot,r,o,s.F8,a),i&&(t={},n&&(t.ignoreStyle=!1===n.includeStyles,A.Util.Mo(n))&&(t.incrementalLoading=!0),s.W_(2).fromJSON(i.rowHeaderData,ot,t),s.W_(1).fromJSON(i.colHeaderData,ot,t),s.Q_(!1,2).fromJSON(i.rowHeaderColInfos),s.Q_(!0,1).fromJSON(i.colHeaderRowInfos),s.yle(3).yh(i.defaultData),n&&!1===n.includeStyles||(s.K_(2).fromJSON(i.rowHeaderSpan),s.K_(1).fromJSON(i.colHeaderSpan)),u=s.Q_(!0,3),(c=i.rowInfos||[]).forEach(function(t,e){at(t&&t.starSize)||u.setStarSize(e,t.starSize)}),(e=i.defaults)!==ot&&((r=s.defaults).colHeaderRowHeight=_t(e.colHeaderRowHeight,g.DEFAULT_COL_HEADER_ROW_HEIGHT),r.rowHeaderColWidth=_t(e.rowHeaderColWidth,40)),(o=i.selectionPolicy)!==ot&&(s.selectionModel.selectionPolicy=+o),(a=i.selectionUnit)!==ot&&(s.selectionModel.selectionUnit=+a),s.Rue(i.tag))},T.prototype.startTransaction=function(){var t,e;0===this.P8&&(this.G8=[],this.Mf.isEventSuspended()||(this.G8.events=[]),T.et(this,"startTransaction")),this.P8++},T.prototype.endTransaction=function(){var t,e;return this.P8--,0===this.P8?(T.et(this,"endTransaction"),t=this.G8,this.G8=ot,(e=t.events)&&0===e.length&&delete t.events,delete t.diffCache,delete t.styleChanges,t):(this.P8<0&&(this.P8=0),[])},T.prototype.pj=function(){var t=this.G8;if(t)return t.calc||(t.calc=[]),t.calc},T.prototype.applyChange=function(t,e,n){var i,r,o,a,s,o,a,u,i=this,r=t.type;!r&&0<t.length?(me(i,t,e),a=(o=Array.isArray(t[0])?t[0]:t)[1],s=o[3],o=o[4],0<a&&0<=s&&0<=o&&(u=(a=i.W_(a)).J_(s,o))&&se(u,u,!1,s,o,{},a.a8)):"addRows"===r?i.rj(t,e):"addColumns"===r?i.uj(t,e):"deleteRows"===r?i.oj(t,e):"deleteColumns"===r?i.sj(t,e):"setRowCount"===r?i.fj(t,e):"setColumnCount"===r?i.lj(t,e):"setZoomFactor"===r?i.wj(e?t.newValue:t.value):"updateDirty"===r?n.push(t):"setName"===r?e?i.Mj(t.newValue):i.Mj(t.value):"sortRange"===r?i.Cj(t,e):"sheetProperty"===r&&i.Mf[t.pname](e?t.value:t.oldValue)},T.prototype.applyChanges=function(t,e,u){var n,i,r,o,a;function c(t,e,n,i,r){r?t.setArrayFormula(e,n,r.rowCount,r.colCount,i):t.setFormula(e,n,i)}function s(t,e){var n,i,r,o,a,s;if(e)for(n in e)if(!isNaN(n))for(o in i=parseInt(n,10),r=e[n])isNaN(o)||(a=parseInt(o,10),u?c(t,i,a,s=r[o].formula!==r[o].oldFormula?r[o].formula:null,s?r[o].arrayInfo:null):c(t,i,a,r[o].oldFormula,r[o].oldArrayInfo))}if(n=this,i=[],e)if(r=function(t){t[0]===vt?pe(t,function(t){n.applyChange(t,u,i)}):n.applyChange(t,u,i)},u)for(o=0;o<e.length;o++)r(e[o]);else for(o=e.length-1;0<=o;o--)r(e[o]);(a=n.Mf).Sj={},a.r3(),s(a,e&&e.formulas),T.et(n,"applyChanges",{command:t,changes:e,isUndo:!u}),0<i.length&&a.Tj()},T.prototype.undo=function(t){var e,n,i,r,o,a,s,u,c,f,f,e=[],n=t&&t.events;if(n&&this.Aj(n,!0),t)for(i=t.length-1;0<=i;i--)(o=(r=t[i]).type)?"addRows"===o?this.rj(r):"addColumns"===o?this.uj(r):"deleteRows"===o?this.oj(r):"deleteColumns"===o?this.sj(r):"setRowCount"===o?this.fj(r):"setColumnCount"===o?this.lj(r):"setZoomFactor"===o?this.wj(r.value):"updateDirty"===o?(this.pE(r),e.push(r)):"setName"===o?this.Mj(r.value):"sortRange"===o&&this.Cj(r):r.skipUndo||me(this,r);(a=this.Mf).Sj={},a.r3(),s=t&&t.calc,(u=0<e.length||s&&0<s.length)&&(c=a.Lp)&&c.suspend(),0<e.length&&e.forEach(function(t){a.Ij(t.row,t.col,3,!1)}),(f=t&&t.tableChanges)&&0<f.length&&(T.et(this,K,{tableChanges:f}),t.tableChanges.isRestored=!0),(f=t&&t.pivotTableChanges)&&0<f.length&&(T.et(this,K,{pivotTableChanges:f}),t.pivotTableChanges.isRestored=!0),s&&s.length&&a.xj(s),T.et(this,"undoValue",t),u&&(c&&c.resume(!1),a.Tj()),delete this.W_(3).B8.vE,t&&T.et(this,K,t),n&&this.Aj(n,!1)},T.prototype.do=function(t){for(var e,n,i,t,e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];i=this,t&&(t=i[t])&&t.apply(i,e)},T.prototype.W_=function(t){return at(t)&&(t=3),this.sheetModels[t]},T.prototype.l8=function(t,e,n){var i=0,r=0;at(n)&&(n=3,i=t,r=e),this.sheetModels[n]=new Tt(t,e,i,r)},T.prototype.yle=function(t){return at(t)&&(t=3),this.defaultValueModels[t]},T.prototype.ZI=function(t){var e,n=this.G8,n=n&&n.events;n&&n.push(t)},T.prototype.Aj=function(t,e){for(var n,i,r,o,a,n=this.Mf,i=t.length-1;0<=i;i--)a=void 0,"cellChanged"!==(o=(r=t[i])[0])||e?"rowChanged"!==o||e?"columnChanged"!==o||e?"zoomChanged"!==o||e?"rowChanging"===o&&e?a=n.kj:"columnChanging"===o&&e?a=n.Dj:"tableRowsChanged"!==o||e?"tableColumnsChanged"!==o||e?"rangeChanged"!==o||e||(a=n._j):a=n.Ej:a=n.jj:a=n.Oj:a=n.vj:a=n.dj:a=n.Rj,a&&([].splice.call(t,i,1),a.apply(n,[].slice.call(r,1)))},T.prototype.Rve=function(t,e,n){var n=this.yle(n);if(n)return n.getValue(t,e)},T.prototype.gge=function(t,e,n,i){var r=this,o=r.Mf;o.hasFormula&&!o.hasFormula(t,e,i,!0)&&r.yle(i).$1e(t,e,rt,rt,i,n)},T.prototype.yge=function(t,e,n,i){var r,o,a,s,u,c,f,l,h,r=this,o=r.Mf;if(o.hasFormula)for(a=r.yle(),s=k(n,a.getRowCount()),u=k(i,a.getColumnCount()),c=0;c<s;c++)for(f=t+c,l=0;l<u;l++)a.getExpression(f,h=e+l)&&!o.hasFormula(f,h,3,!0)&&r.gge(f,h)},T.prototype.getValue=function(t,e,n,i,r){var o,a,r;return at(n)&&(n=3),!i&&(o={row:t,col:e,sheetArea:n,isValueGet:!1,value:ot,valueType:r},T.et(this,"getValue",o,function(){return o.isValueGet}),o.isValueGet)?this.wle||!at(o.value)||(a=this.Rve(t,e,n),at(a))?o.value:a:(r=this.W_(n).getValue(t,e,r),this.wle||i||!at(r)||(a=this.Rve(t,e,n),at(a))?r:a)},T.prototype.setValue=function(t,e,n,i,r,o,a,s,u){var c,f,l,o,u,h,r,u,a,s,r,f;at(i)&&(i=3),l=(f=this).Mf,(o=!o&&!l.isEventSuspended())&&(c=l.getValue(t,e,i,1)),u||f.KE(t,e,i,n,!0),u=!1,r||(h={row:t,col:e,value:n,sheetArea:i,isValueSet:!1,changes:f.G8},T.et(f,"setValue",h,function(){return h.isValueSet}),u=h.isValueSet),u||(u=r=void 0,0<f.P8&&(!a||l.parent&&l.parent.options.saveChangesForSheet)&&(r=[[C,i],ot],u={sheetArea:i}),l.vle?(f.setDefaultValue(t,e,n,i,rt,!0,rt),f.W_(i).setValue(t,e,rt,r,u,s)):(f.gge(t,e,at(n),i),f.W_(i).setValue(t,e,n,r,u,s)),s&&r&&!de(this.pj(),t,e)&&(r.skipUndo=!0),r&&0<r.length&&f.G8.push(r),u&&u.type&&f.G8.push(u),l.Tj()),o?(a=c!==n,s=!1,r=void 0,(a=typeof n===m&&((r=et.util.V0(n))instanceof Date&&(s=!0),c instanceof Date)?c.valueOf()!==r.valueOf():a)&&l.Rj("value",t,e,i,c,s&&r?r:n)):l.Lj(l,[{row:t,col:e}],0),(f=l.getCellType(t,e,i))&&f.Xe(l,t,e,n,i)},T.prototype.Mle=function(t,e,n){at(n)&&(n=3);var n=this.yle(n);if(n)return n.q1e(t,e)},T.prototype.getDefaultValue=function(t,e,n,i){var n=this.yle(n);if(n)return i===nt.DefaultChangeValueType.Expression?n.getFormula(t,e):i!==nt.DefaultChangeValueType.Value&&n.getFormula(t,e)||n.getValue(t,e)},T.prototype.setDefaultValue=function(t,e,n,i,r,o,a){var s,u,c;at(i)&&(i=3),(u=(s=this).yle(i))&&(c=void 0,0<s.P8&&(c=[[y,i],ot]),at(a)&&(s.wle=!0,a=!at(s.getValue(t,e,i))||s.Mf.hasFormula(t,e,i,!0),delete s.wle),!r&&F.kf(n)||r===nt.DefaultChangeValueType.Expression?u.setFormula(t,e,n,i,a,c):u.setValue(t,e,n,o,c),c)&&0<c.length&&s.G8.push(c)},T.prototype.getStyle=function(t,e,n){var i={row:t,col:e,sheetArea:n=at(n)?3:n,isStyleGet:!1,style:ot};return T.et(this,"getStyle",i),i.isStyleGet?i.style:this.W_(n).getStyle(t,e,0<this.P8)},T.prototype.setStyle=function(t,e,n,i){var r,r,o,a,r;at(i)&&(i=3),n&&n.cellType&&n.cellType.qe(this.Mf,t,e,n,i),o=0<this.P8?[[C,i]]:ot,a=this.W_(i).getStyle(t,e,!1),this.G8&&this.G8.diffCache===ot&&(this.G8.diffCache=[]),this.G8&&this.G8.styleChanges===ot&&(this.G8.styleChanges=[]),this.W_(i).setStyle(t,e,n,o,null==(r=this.G8)?void 0:r.styleChanges,null==(r=this.G8)?void 0:r.diffCache),this.Mf.ki(et.Events.WorksheetDataChanged,{type:"style"}),o&&0<o.length&&this.PCe(o),r=this.Mf.parent,i===nt.SheetArea.viewport&&ke(a,n,r)&&this.KE(t,e,i,this.getValue(t,e,i,!0),!1)},T.prototype.PCe=function(t){var e,e,n,e,i,r;0===(null==(e=this.G8)?void 0:e.styleChanges.length)&&this.G8.push([vt,this.G8.styleChanges,this.G8.diffCache]),e=fe(t),(n=he(this.G8.styleChanges,e))||this.G8.styleChanges.push(n={path:e,change:{}}),e=le(t),i=n.change[e],r=3===t.length?{old:t[1],new:t[2]}:t[1],i!==ot&&Array.isArray(i)?"object"==typeof i[i.length-1]?i[i.length-1].new=t[2]:i.push(r):3===t.length&&i!==ot?"object"==typeof i?i.new=t[2]:n.change[e]=[i,r]:n.change[e]=r},T.prototype.getValueForKey=function(t,e,n,i){return this.W_(i).getValueForKey(t,e,n)},T.prototype.setValueForKey=function(t,e,n,i,r){at(r)&&(r=3);var o=0<this.P8?[[C,r],ot]:ot;this.W_(r).setValueForKey(t,e,n,i,o),o&&0<o.length&&this.G8.push(o)},T.prototype.RCe=function(t,e,n,i,r,o){this.W_(o).clear(t,e,n,i,r)},T.prototype.clear=function(t,e,n,i,r,o,a){var s,u,c,f,l,h,d,v,g,m,p,S;if(at(a)&&(a=3),s=0<this.P8?[]:ot,c=(u=this).Mf,N&&3===a&&u.Mf.Uw(3).t8.Fgt(t,e,n,i),this.W_(a).clear(t,e,n,i,r,o,s),this.yle(a).resetFormulaToCalc(t,e,n,i,a),this.Mf.ki(et.Events.WorksheetDataChanged,{type:nt.StorageType[r]}),T.et(this,"clear",{row:t,col:e,rowCount:n,colCount:i,type:r,ignoredRowList:o,sheetArea:a,changes:this.G8}),s)for(f=[C,a],l=0,h=s.length;l<h;l++)(d=s[l])[0]=f.concat(d[0]),this.G8.push(d);for(v=0;v<n;v++)for(g=0;g<i;g++)this.KE(m=t+v,p=e+g,a,rt,!1),(S=c.getCellType(m,p,a))&&S.Xe(c,m,p,rt,a)},T.prototype.swapNode=function(t,e,n,i,r){var o,a,s,u,c;if(at(r)&&(r=3),o=0<this.P8?[]:ot,this.W_(r).SE(t,e,n,i,o),this.yle(r).SE(t,e,n,i,o),o)for(a=[C,r],s=0,u=o.length;s<u;s++)(c=o[s])[0]=a.concat(c[0]),this.G8.push(c)},T.prototype.dE=function(t,e,n,i){var r;0<this.P8&&(r={sheetArea:i},at(i))&&(r.sheetArea=3),this.W_(i).dE(t,e,n,r),r&&this.G8.push(r)},T.prototype.pE=function(t){this.W_(t.sheetArea).pE(t)},T.prototype.Fj=function(t){return this.W_(t).B8},T.prototype.Pj=function(t,e,n){var i,n,r,i,n=this.Fj(n)[t];return!(!n||!(r=n[e]))},T.prototype.Gj=function(t,e,n){for(var i,r,o,i=this.W_(n).B8,r=0;r<e;r++)(o=t+r)in i&&delete i[o]},T.prototype.Uj=function(t,e){var n,i,r,o,n,i=this.Mf.aj;if(i)for(r=i.length-1;0<=r;r--)t<=(o=i[r].row)&&o<t+e&&i.splice(r)},T.prototype.Hj=function(t){this.W_(t).B8={}},T.prototype.zj=function(t,e,n,i){var r=this.Fj(),o,a,s;if(r)for(o in r)B(r,o)&&(a=r[o],s=parseInt(o,10),a)&&"n"===a.rs&&(t||e&&n<=s&&s<n+i)&&(r[o]={})},T.prototype.Vj=function(o,t,a,e,s){var n,u,c,f,i,r,l,n,h,d,v,n=this,u=n.Fj(),c=n.Mf,f=c.tables;if(!it(u)){if(i=[],0<=t)for(r=t;r<t+e;r++)i.push(r);else for(l in u)B(u,l)&&i.push(parseInt(l,10));n=[],h=[],f&&(n=f.Yj(t,a,e,s),h=f.Zj(t,a,e,s),0<n.length)&&T.et(this,"clearPendingChanges",{tableList:n}),D(i,function(t,e){var n,i,r;if((d=u[e])&&"e"===d.rs)if(n=h.length,o)if(f&&0!==n&&f.Wj(h,e,-1))for(i=c.getColumnCount(),r=0;r<i;r++)f&&0!==n&&f.Wj(h,e,r)||(v=d[r])&&delete d[r];else u[e]={};else for(r=a;r<a+s;r++)f&&0!==n&&f.Wj(h,e,r)||(v=d[r])&&delete d[r]})}},T.prototype.Qj=function(){var t,e,n,t,e=this.Fj();for(n in e)B(e,n)&&e[n]&&"e"===e[n].rs&&(e[n]={})},T.prototype.Kj=function(t){this.W_(t).lE++},T.prototype.Jj=function(t){var t,e,t=this.W_(t);t.lE--,(e=t.lE)<0&&(t.lE=0)},T.prototype.getName=function(){return this.name||""},T.prototype.setName=function(t){var e,n,e=this,n=e.name;n!==t&&(0<e.P8&&e.G8.push({type:"setName",value:n}),e.name=t)},T.prototype.Xj=function(){return this.isSelected},T.prototype.qj=function(t){this.isSelected=t},T.prototype.Mj=function(t){this.Mf.name(t)},T.prototype.Cj=function(t,e){var n,i,e,n=t.byRows?t.row:t.column;e||(i=[],t.array.map(function(t,e){i[t-n]=e+n})),this.Mf.sortRange(t.row,t.column,t.rowCount,t.columnCount,t.byRows,t.sortInfo,rt,i),(e=t.sortState)?this.Mf.Tpe(e.row,e.col,e.rowCount,e.colCount,e.byRow,e.sortConditions):this.Mf.Ape()},T.prototype.getZoomFactor=function(){return this.zoomFactor},T.prototype.setZoomFactor=function(t){var e=this;0<e.P8&&e.G8.push({type:"setZoomFactor",value:e.zoomFactor}),e.zoomFactor=t},T.prototype.wj=function(t){this.Mf.zoom(t)},T.prototype.K_=function(t){return at(t)&&(t=3),this.spanModels[t]},T.prototype.d8=function(t){at(t)&&(t=3),this.spanModels[t]=new St},T.prototype.getSpans=function(t,e,n){var i,r,o,a,r,i;return at(e)&&(e=3),t&&(i=t.row,r=t.col,o=t.rowCount,a=t.colCount),T.et(this,"getSpans",i={row:i,col:r,rowCount:o,colCount:a,isAll:!t,sheetArea:e,isSpansGet:!1,spans:[]}),r=i.isSpansGet?i.spans:this.K_(e).getSpans(t),r=n?r.filter(function(t){return!t.isAutoMerge}):r},T.prototype.getSpan=function(t,e,n){var i={row:t,col:e,sheetArea:n=at(n)?3:n,isSpansGet:!1,spans:[]};return T.et(this,"getSpans",i),i.isSpansGet?i.spans[0]||(0,et.Ec)(t,e,1,1):this.K_(n).get(t,e)},T.prototype.Ci=function(t,e,n){var n,n;return at(n)&&(n=3),(n=this.W_(n))&&n.J_&&(n=n.J_(t,e))&&n.tipContent?n.tipContent:null},T.prototype.$n=function(t,e,n,i){at(i)&&(i=3);var r=this.W_(i).J_(t,e);!n&&r?delete r.tipContent:n&&r?r.tipContent=n:n&&!r&&((r=this.W_(i).J_(t,e,!0)).tipContent=n)},T.prototype.eE=function(t,e,n,i,r){return this.K_(r).eE(t,e,n,i)},T.prototype.GT=function(t,e,n,i,r){return this.K_(r).GT(t,e,n,i)},T.prototype.findSpan=function(t,e,n){var i={row:t,col:e,sheetArea:n=at(n)?3:n,isSpansGet:!1,spans:[]};return T.et(this,"getSpans",i),i.isSpansGet?i.spans[0]:this.K_(n).find(t,e)},T.prototype.removeSpan=function(t,e){at(e)&&(e=3);var n=0<this.P8?[["spanModels",e],ot]:ot;this.K_(e).remove(t,n),this.Mf.ki(et.Events.WorksheetDataChanged,{type:"span",isClear:!0,sheet:this.Mf}),n&&0<n.length&&this.G8.push(n)},T.prototype.addSpan=function(t,e){at(e)&&(e=3);var n=0<this.P8?[["spanModels",e],ot]:ot;this.K_(e).add(t,n),this.Mf.ki(et.Events.WorksheetDataChanged,{type:"span",range:t,isAdd:!0,sheet:this.Mf}),n&&0<n.length&&this.G8.push(n)},T.prototype.clearSpan=function(t,e,n,i,r){at(r)&&(r=3);var o=0<this.P8?[["spanModels",r],ot]:ot;this.K_(r).d5(t,e,n,i,o),this.Mf.ki(et.Events.WorksheetDataChanged,{type:"span",isClear:!0,sheet:this.Mf}),o&&0<o.length&&this.G8.push(o)},T.prototype.moveSpan=function(t,e,n,i,r,o,a){at(a)&&(a=3);var s=0<this.P8?[["spanModels",a],ot]:ot;this.K_(a).iE(t,e,n,i,r,o,s),this.Mf.ki(et.Events.WorksheetDataChanged,{type:"span"}),s&&0<s.length&&this.G8.push(s)},T.prototype.copySpan=function(t,e,n,i,r,o,a,s){at(a)&&(a=3);var u=0<this.P8?[["spanModels",a],ot]:ot;this.K_(a).tE(t,e,n,i,r,o,u,s),this.Mf.ki(et.Events.WorksheetDataChanged,{type:"span"}),u&&0<u.length&&this.G8.push(u)},T.prototype._9=function(t,e,n,i){this.colHeaderSelectionModel.$j=new et.Range(t,e,n,i)},T.prototype.J9=function(){return this.colHeaderSelectionModel.$j},T.prototype.addSelection=function(t,e,n,i,r,o){var a,s,u;if(1===o)this.colHeaderSelectionModel.add(t,e,n,i,ot);else if(a=0<this.P8?[]:ot,this.selectionModel.add(t,e,n,i,a,r),a)for(s=0;s<a.length;s++)(u=a[s])[0]=["selectionModel"].concat(u[0]),this.G8.push(u)},T.prototype.getSelections=function(t){return(1===t?this.colHeaderSelectionModel:this.selectionModel).get()},T.prototype.setSelections=function(t,e){var n,i,r;if(1===e)this.colHeaderSelectionModel.set(t,ot);else if(n=0<this.P8?[]:ot,this.selectionModel.set(t,n),n)for(i=0;i<n.length;i++)(r=n[i])[0]=["selectionModel"].concat(r[0]),this.G8.push(r)},T.prototype.clearSelection=function(t){var e,n,i;if(1===t)this.colHeaderSelectionModel.clear(ot);else if(e=0<this.P8?[]:ot,this.selectionModel.clear(e),e)for(n=0;n<e.length;n++)(i=e[n])[0]=["selectionModel"].concat(i[0]),this.G8.push(i)},T.prototype.getActiveSelectedRangeIndex=function(){return this.selectionModel.getProperty("activeSelectedRangeIndex")},T.prototype.setActiveSelectedRangeIndex=function(t){var e=0<this.P8?[["selectionModel"],ot]:ot;this.selectionModel.setProperty("activeSelectedRangeIndex",t,e),e&&this.G8.push(e)},T.prototype.getSelectionPolicy=function(){return this.selectionModel.getProperty("selectionPolicy")},T.prototype.setSelectionPolicy=function(t){ue(this,"selectionPolicy",t)},T.prototype.getSelectionUnit=function(){return this.selectionModel.getProperty("selectionUnit")},T.prototype.setSelectionUnit=function(t){ue(this,"selectionUnit",t)},T.prototype.T9=function(t){return this.selectionModel.T9(t)},T.prototype.S9=function(t){return this.selectionModel.S9(t)},T.prototype.ni=function(t,e,n,i,r,o){return this.selectionModel.ni(t,e,n,i,r,o)},T.prototype.ei=function(t,e,n,i,r){return this.selectionModel.ei(t,e,n,i,r)},T.prototype.Q_=function(t,e){var n;return at(e)&&(e=3),(t?this.rowInfos:this.colInfos)[e]},T.prototype.h8=function(t,e){var n;at(e)&&(e=3),(t?this.rowInfos:this.colInfos)[e]=new f},T.prototype.getPageBreak=function(t,e,n){var i;return this.Q_(t,e).getPageBreak(n)},T.prototype.setPageBreak=function(t,e,n,i){var r,o;at(e)&&(e=3),r=0<this.P8?[[t?S:w,e],ot]:ot,(o=this.Q_(t,e)).setPageBreak(n,i,r),r&&this.G8.push(r)},T.prototype.getVisible=function(t,e,n){var i;return this.Q_(t,e).getVisible(n)},T.prototype.setVisible=function(t,e,n,i){var r,o,a,i,r=this;at(e)&&(e=3),o=0<r.P8?[[t?S:w,e],ot]:ot,(a=r.Q_(t,e)).setVisible(n,i,o),o&&r.G8.push(o),i=t?nt.AxisInfoChangeType.setRowVisible:nt.AxisInfoChangeType.setColumnVisible,r.L8({type:i,index:n,sheetArea:e})},T.prototype.getResizable=function(t,e,n){var i;return this.Q_(t,e).getResizable(n)},T.prototype.setResizable=function(t,e,n,i){var r,o;at(e)&&(e=3),r=0<this.P8?[[t?S:w,e],ot]:ot,(o=this.Q_(t,e)).setResizable(n,i,r),r&&this.G8.push(r)},T.prototype.getSize=function(t,e,n){var i,r;return i={index:n,isRow:t,isSizeGet:!1,sheetArea:e=at(e)?3:e,size:ot},T.et(this,"getSize",i),i.isSizeGet?i.size:(r=this.Q_(t,e)).getSize(n)},T.prototype.getColumnHeaderFitMode=function(t,e,n){var i;return this.Q_(t,e).getColumnHeaderFitMode(n)},T.prototype.setColumnHeaderFitMode=function(t,e,n,i){var r,o,a,s,u,c,f,t,l,h,d,v,g,r=this,o=60,u=r.Mf,c=u.getRowCount(1);if(at(e)&&(e=3),r.P8&&(a=[[w,e],ot],s=[[S,e],ot]),l=(t=r.Q_(t,e)).getColumnHeaderFitMode(n),t.setColumnHeaderFitMode(n,i,a),d=!1,i===nt.ColumnHeaderFitMode.vertical?(h=60,u.gD&&2===l&&u.gD--):i===nt.ColumnHeaderFitMode.stack?(r.t7(n,e),u.gD||(u.gD=0),2!==l&&u.gD++):i===nt.ColumnHeaderFitMode.normal&&(h=u.defaults.colHeaderRowHeight,u.gD)&&2===l&&u.gD--,h){for(v=r.Q_(!0,e),g=0;g<c;g++)f=u.getRowHeight(g,e),(h=p(h,f))!==f&&(v.setSize(g,z,s),s)&&(r.G8.push(s),s=[[S,e],ot]);u.defaults.colHeaderRowHeight=h}a&&r.G8.push(a)},T.prototype.t7=function(t,e){var n,i,r,o,a,s,u,c,f,l,n=this,o=n.Mf,a=n.Q_(!0,e);if(n.P8&&(i=[[S,e],ot]),s=n.Mf.defaults.rowHeight||g.DEFAULT_COL_HEADER_ROW_HEIGHT,c=n.getRowCount(nt.SheetArea.colHeader),f=n.n7(t),!n.e7(t)){for(l=0;l<c;l++)r=s*f,u=o.getRowHeight(l,e),(r=p(r,u))!==u&&(a.setSize(l,z,i),i)&&(n.G8.push(i),i=[[S,e],ot]);o.defaults.colHeaderRowHeight=r}},T.prototype.e7=function(t){var e,n,i,n,e,e=this,n=e.Mf,i=n.frozenColumnCount()-1,n=n.frozenTrailingColumnCount(),e=e.getColumnCount()-1;return t===i||t===e||t===e-n},T.prototype.i7=function(t){var e,n,i,n,e,r,o,e=this,n=e.Mf,i=n.frozenColumnCount(),n=n.frozenTrailingColumnCount(),e=e.getColumnCount();return n&&(o=t===e-n),(r=i?t===i:r)||o},T.prototype.n7=function(t,e){for(var n,i,r,t,o,a,s,u,c,f,t,l,h,n=this,o=nt.SheetArea.colHeader,a={},s=n.Mf,u=s.getColumnCount(),i=r=t=(e=e||n.Q_(!1,o).infos)[t]&&e[t].columnHeaderFitMode===nt.ColumnHeaderFitMode.stack?t:t-1,c=t;0<=c;c--)if(s.getColumnWidth(c,o)){if(!e[c]||e[c].columnHeaderFitMode!==nt.ColumnHeaderFitMode.stack||n.eE(-1,c,-1,1,nt.SheetArea.colHeader))break;if(n.i7(c)){i=c;break}i=c}else a[i=c]=!0;for(c=t;c<u;c++)if(s.getColumnWidth(c,o)){if(!e[c]||e[c].columnHeaderFitMode!==nt.ColumnHeaderFitMode.stack||n.eE(-1,c,-1,1,nt.SheetArea.colHeader))break;if(n.e7(c))break;r=c}else if(a[r=c]=!0,n.e7(c))break;return t=r-i-(f=Object.keys(a).length)+1,l=1,!(h=s.O5(r,o,!0))||n.e7(r)||n.eE(-1,h,-1,1,nt.SheetArea.colHeader)?t:1+t},T.prototype.r7=function(t,e,n){var i,r,o,a,s,u,c,i=this,r=0,o=i.Mf,a=o.Ut;for(e=e||i.Q_(!1,nt.SheetArea.colHeader).infos,s=i.o7(t),u=t-1;s<=u;u--)if(c=o.getColumnWidth(u))if(e[u]&&e[u].columnHeaderFitMode===nt.ColumnHeaderFitMode.stack&&!a.eE(-1,u,-1,1,nt.SheetArea.colHeader))r++;else if(!n||!e[u]||e[u].columnHeaderFitMode!==nt.ColumnHeaderFitMode.vertical||a.eE(-1,u,-1,1,nt.SheetArea.colHeader))return r;return r},T.prototype.i6=function(t,e){for(var n,i,r,o,a,n=this,i,r=n.Mf.getColumnCount(),a=t+1;a<r;a++)if((o=n.getColumnHeaderFitMode(!1,1,a))===e)return a;return rt},T.prototype.o7=function(t){var e,n,i,n,e,e=this,n=e.Mf,i=n.frozenColumnCount(),n=n.frozenTrailingColumnCount(),e=e.getColumnCount();return t<i?0:t<e-n?i:e-n},T.prototype.getStarSize=function(t,e,n){var i;return this.Q_(t,e).getStarSize(n)},T.prototype.getActualSize=function(t,e,n){var i;return this.Q_(t,e).getActualSize(n)},T.prototype.setSize=function(t,e,n,i){var r,o,a,o,r=this;at(e)&&(e=3),o=0<r.P8?[[t?S:w,e],ot]:ot,(a=r.Q_(t,e)).setSize(n,i,o),this.Mf.ki(et.Events.WorksheetDataChanged,{type:"size"}),o&&r.G8.push(o),r.setStarSize(t,e,n,rt),o=t?nt.AxisInfoChangeType.setRowHeight:nt.AxisInfoChangeType.setColumnWidth,r.L8({type:o,index:n,value:i,sheetArea:e})},T.prototype.setStarSize=function(t,e,n,i){var r,o;at(e)&&(e=3),r=0<this.P8?[[t?S:w,e],ot]:ot,(o=this.Q_(t,e)).setStarSize(n,i,r),r&&!at(r[1])&&this.G8.push(r)},T.prototype._E=function(t,e){var n;return this.Q_(t,e)._E()},T.prototype.EE=function(t,e){var n;return this.Q_(t,e).EE()},T.prototype.q_=function(t,e,n){var i;return this.Q_(t,e).q_(n)},T.prototype.setItem=function(t,e,n,i){var r,o,a,s,r=this;at(e)&&(e=3),o=0<r.P8?[[t?S:w,e],ot]:ot,(a=r.Q_(t,e)).X_(n,i,o),i&&(at(i.size)||(s=t?nt.AxisInfoChangeType.setRowHeight:nt.AxisInfoChangeType.setColumnWidth,r.L8({type:s,index:n,value:i.size,sheetArea:e})),at(i.visible)||(s=t?nt.AxisInfoChangeType.setRowVisible:nt.AxisInfoChangeType.setColumnVisible,r.L8({type:s,index:n,sheetArea:e}))),o&&r.G8.push(o)},Pt=T,g.Y8=Pt,(0,et.$e)(Pt,!0),Nt=["=","+","-"],Rt=/^(__builtInTableStyle\d+)?__builtInStyle\d+$/,Et="__builtInStyle"},"./dist/core/worksheet/worksheet-render.js":function(o,t,ht){"use strict";var dt,vt,q,e,u,gt,mt,pt,d,St,wt,kt,y,$,tt,Tt,ot,bt,p,B,c,et,nt,it,T,R,E,w,b,C,f,l,Ct,I,rt,a,v,g,h,at,M,m,xt,S,s,k,x,G,N,H,U,F,_,A,L,D;function yt(t){return t.height}function Mt(t){return t.width}function j(t,e,n,i,r,o,a){t.beginPath(),t.lineWidth=e,t.strokeStyle=n,t.moveTo(i,r),t.lineTo(o,a),t.stroke()}function O(t,e){var n,t,i,n=0;return"string"==typeof t&&(1===(i=(t=t.split(" ",4)).length)?n=2*I(t[0]):2===i||3===i?n=2*I(t[1]):4===i&&(n=I(t[1])+I(t[3]))),n*e}function P(t,e,n,i,r,o,a,s){var u,c,f,l,h,d,v,g,m,s,t,g,i,p,S,d,v,u=r.zoom(),c=u||1,f=n.font,l=n.textIndent,h=n.textOrientation,d=n.isVerticalText,v=n.textIndent&&0!==n.textIndent,g=0!==h&&!bt(h);return f=f?nt(n,u).font:i,typeof s===at&&1!==s&&(f=et(f,s).font,c=u*s),i=0,i=t&&t.richText?Y(t.richText,f,u):t&&g&&!d&&!v?(s=w(h*Math.PI/180),t=b(s),g=C(s),n.wordWrap?(d=(S=r.Jt).Gt(o),q.q.Zt(o,a,t,g,e,f,d)):(v=$(f),q.q.Wt(e,f)*g+v*t)):q.q.Wt(e,f),m=(i+=z(r,l,o,a,c)+M)+O(n.cellPadding,u)}function V(t,e,n){var i;if(t&&-90<=t&&t<=90)return l(n/f(w(t*Math.PI/180)))+e+4}function Y(t,e,n){var t=u.GC$.extend(!0,[],t);return K(t,e,n),q.q.ah(t,e,1)}function K(t,e,n){for(var i,r,o,a,o,i=0,r=t;i<r.length;i++)a=void 0,(o=r[i]).style=o.style||{},a=(o=o.style).font?et(o.font,n).font:e,o.font=a}function z(t,e,n,i,r){if(!bt(n)&&!bt(i)&&t.outlineColumn){var t=t.outlineColumn.a7(n,i);if(t)return t}return e?8*e*r:0}function W(t,e,n,i,r,o,a,s,u){var c,f,l,h,d,v,g,m,p,S,w,b,C,y,n,M,M,k,T,x;if(B(r.data)&&t.parent&&t.parent.options.numbersFitMode!==pt.NumbersFitMode.overflow)return it;if(c=t.Jt,f=Mt(r),l=Mt(r),d=r.style,g=r.text,m=r.printZoomFactor,p=d.watermark,S=d.wordWrap,w=d.textOrientation,y=t.options.allowCellOverflow,e.findCell(o,a))return it;if(d.cellButtons&&0<d.cellButtons.length)return it;if(St.W.Xue(d))return it;if(n=d.cellType||n,M=(M=t.parent&&t.parent.options.numbersFitMode)===pt.NumbersFitMode.mask||M===pt.NumbersFitMode.overflow&&!B(r.data),!n.allowOverflow||!g&&!p||!w&&S&&M)return it;if(!y&&!w)return it;if((b=P(r.data,g=g||p,d,i,t,o,a,m))<=l)return it;if(90===Math.abs(w)&&S)return it;for(v=(T=k=a)+(u?1:-1);(u?v<=s:s<=v)&&!e.findCell(o,v)&&(C=c.qt(o,v),h=c.$t(o,v,3,1,C),x=C.textOrientation,bt(h)||x&&w)&&!C.watermark&&!(C.cellType&&"1"!==C.cellType.typeName||C.cellButtons&&0<C.cellButtons.length||St.W.Xue(C))&&(u?T=v:k=v,!(b<=(l+=c.Kt(v))));v+=u?1:-1);return u&&T===a||!u&&k===a?it:new gt.Q8(a,k,T,b,f,l,u?-1:l,u?l:-1)}function n(t,e,n){var i=this;i.Mf=t,i.Vx=t.Yy(n),i.u7=t.s7(e,n,pt.SheetArea.viewport,!0),i.c7=et(t.Dn.Nn(),t.zoom()).font,i.f7=t.$f(),i.l7={}}function J(t){var e,n,e=t.parent,n={nps:!0};return vt.Worksheet.et(t,"needPaintSelection",n),(q.hi.A1(t)||e&&!e.options.hideSelection)&&n.nps}function st(t){var t=t.parent;return t&&t.options.backColor||h}function i(t){this.Mf=t}function r(t){var e=this;e.h7=!1,e.d7=!1,e.Mf=t,e.v7()}Object.defineProperty(t,"__esModule",{value:!0}),t.m7=t.g7=t.needPaintSelection=t.p7=void 0,dt=ht("Common"),vt=ht("./dist/core/worksheet/worksheet.js"),q=ht("./dist/core/util/common.js"),e=ht("./dist/core/worksheet/stylehelper.js"),u=ht("./dist/core/util/domUtil.js"),gt=ht("./dist/core/worksheet/worksheet-model.js"),mt=ht("./dist/core/worksheet/worksheet-border.js"),pt=ht("./dist/core/core.enum.js"),d=ht("./dist/core/celltype/basecelltype.js"),St=ht("./dist/core/worksheet/stylehelper.js"),wt=function(t){return t.getSparkline},kt=dt.Common.Uf,y=q.mt.gt,$=q.mt.vt,tt=q.mt.bt,Tt=q.mt.St,ot=q.mt.Tt.safari,bt=dt.Common.lt.ht,p=dt.Common.lt.q8,B=q.mt.Ct,c=e.p5,et=e.W.V,nt=e.W.Lge,it=null,T=void 0,R=Math.min,E=Math.max,w=Math.abs,b=Math.sin,C=Math.cos,f=Math.tan,l=Math.floor,Ct=Math.round,I=parseInt,rt="black",a="transparent",v="rowHeader",g="columnHeader",h="white",at="number",M=2,m=100,n.prototype.b7=function(t,e,n){var i,r,o,a,s,u,c,i=this,r=i.l7[t];if(r)return r;if(a=(o=i.Vx).length,s=new gt.K8,e=e||q.q.J(),0<a){for(s.headingOverflowLayouts=i.y7(t,e),c=0;c<a;c++)(u=this.w7(t,c,e,n))&&s.push(u);s.trailingOverflowLayouts=i.C7(t,e)}return i.l7[t]=s},n.prototype.w7=function(t,e,n,i){var r,o,a,s,u,c,f,l,s,h,d,v,s,e,a,g,m,p,u,S,e,s,e,s,e,a,w,r=this,o=r.Mf,a=o.Jt,s=r.Vx,u=s.length;if(0!==u&&(p=s[0].col,u=s[u-1].col,n=n||q.q.J(),!(Mt(s=s[e])<=0))&&(h=s.col,d=a.o2e(t,h),v=a.$t(t,h,3,1),c=d.textOrientation,f=d.isVerticalText,l=d.textIndent&&0!==d.textIndent,S=d&&(d.borderLeft||d.borderTop||d.borderRight||d.borderBottom),!bt(v)||d.watermark||d.cellType)&&(e=o.parent&&o.parent.options.numbersFitMode,!((d.shrinkToFit||!c&&d.wordWrap&&(e===pt.NumbersFitMode.mask||e===pt.NumbersFitMode.overflow&&!B(v))||f)&&4!==d.hAlign||4!==d.hAlign&&!1===o.options.allowCellOverflow||(s=o.conditionalFormats)&&(s=(e=s.U(o,t,h,v,3))&&e.dataBar,e=e&&e.iconSet,s&&s.showBarOnly||e&&e.showIconOnly))))return s=a.Kt(h),e=a.Gt(t),a=d.cellType||r.f7,g=q.Be.Cl(o,d,v,w={},{row:t,col:h,sheet:o}),w.content&&0<w.content.length&&!d.shrinkToFit&&c&&(g=a.de(n,w.content,e-4,d.font)),3===(a=d.hAlign)&&(a=y(a,v,d.formatter||d._autoFormatter,c)),!S||!c||f&&4!==a||l?0===a?m=r.S7({data:v,style:d,width:s,text:g,printZoomFactor:i},t,h,u):2===a?m=r.T7({data:v,style:d,width:s,text:g,printZoomFactor:i},t,h,p):1===a?m=r.A7({data:v,style:d,width:s,text:g,printZoomFactor:i},t,h,p,u):4===a&&(m=r.I7({data:v,style:d,width:s,text:g,printZoomFactor:i},t,h,0,o.getColumnCount()-1)):c<0&&-90<c?m=r.x7({data:v,style:d,width:s,text:g,printZoomFactor:i},t,h,p):0<c&&c<90&&(m=r.x7({data:v,style:d,width:s,text:g,printZoomFactor:i},t,h,u,!0)),m},n.prototype.N7=function(t){for(var e,n,i,r,o,a,s,u,c,f,e=this,n=e.Vx,i=n.length,r,o=e.Mf.Jt,f=i-1;0<=f;f--)if(c=(a=n[f]).col,s=o.qt(t,c),(u=o.$t(t,c,3,1))||s.watermarks)return this.w7(t,f)},n.prototype.S7=function(t,e,n,i){var r=this;return W(r.Mf,r.u7,r.f7,r.c7,t,e,n,i,!0)},n.prototype.T7=function(t,e,n,i){var r=this;return W(r.Mf,r.u7,r.f7,r.c7,t,e,n,i)},n.prototype.x7=function(t,e,n,i,r){var o,a,s,u,o,c,f,l,h,d,v,g,m,p,S,w,b,C,y,M,k,T,x,G,o=this,a=o.Mf,s=o.u7,u=o.f7,o=o.c7,c=a.Jt,f=Mt(t),l=Mt(t),h=t.style,v=t.text,g=t.printZoomFactor,m=h.watermark,p=h.wordWrap,S=h.textOrientation,C=h&&(h.borderLeft||h.borderTop||h.borderRight||h.borderBottom),y=h.isVerticalText,M=h.textIndent&&0!==h.textIndent,k=a.options.allowCellOverflow;if(s.findCell(e,n))return it;if(h.cellButtons&&0<h.cellButtons.length)return it;if(St.W.Xue(h))return it;if(!(T=h.cellType||u).allowOverflow||!v&&!m||!S&&p)return it;if(v=v||m,!k&&!S)return it;if((w=!C||y||M?P(t.data,v,h,o,a,e,n,g):V(S,c.Kt(n),c.Gt(e)))<=l)return it;for(d=(G=x=n)+(r?1:-1);(r?d<=i:i<=d)&&!s.findCell(e,d)&&!(b=c.qt(e,d)).watermark&&!(b.cellType&&"1"!==b.cellType.typeName||b.cellButtons&&0<b.cellButtons.length||St.W.Xue(b))&&(r?G=d:x=d,!(w<=(l+=c.Kt(d))));d+=r?1:-1);return r&&G===n||!r&&x===n?it:new gt.Q8(n,x,G,w,f,l,r?-1:l,r?l:-1)},n.prototype.A7=function(t,e,n,i,r){var o,a,s,u,c,f,l,h,d,v,g,m,p,S,w,b,C,y,M,k,T,x,G;if(B(t.data)&&this.Mf.parent&&this.Mf.parent.options.numbersFitMode!==pt.NumbersFitMode.overflow)return it;if(s=(a=(o=this).Mf).Jt,u=o.u7,c=Mt(t),f=Mt(t),h=t.style,v=t.text,g=t.printZoomFactor,m=h.textOrientation,p=h.watermark,S=h.wordWrap,C=a.options.allowCellOverflow,u.findCell(e,n))return it;if(h.cellButtons&&0<h.cellButtons.length)return it;if(St.W.Xue(h))return it;if(!(y=h.cellType||o.f7).allowOverflow||!v&&!p||!m&&S&&a.parent&&a.parent.options.numbersFitMode!==pt.NumbersFitMode.overflow)return it;if(!C&&!m)return it;if((w=P(t.data,v=v||p,h,o.c7,a,e,n,g))<=f)return it;if(90===Math.abs(m)&&S)return it;for(k=f/2,d=(M=n)-1;i<=d&&!u.findCell(e,d)&&(b=s.qt(e,d),l=s.$t(e,d,3,1,b),T=b.textOrientation,bt(l)||T&&m)&&!b.watermark&&!(b.cellType&&"1"!==b.cellType.typeName||b.cellButtons&&0<b.cellButtons.length||St.W.Xue(b))&&(M=d,!(w/2<=(k+=s.Kt(d))));d--);for(G=f/2,d=(x=n)+1;d<=r&&!u.findCell(e,d)&&(b=s.qt(e,d),l=s.$t(e,d,3,1,b),T=b.textOrientation,bt(l)||T&&m)&&!b.watermark&&!(b.cellType&&"1"!==b.cellType.typeName||b.cellButtons&&0<b.cellButtons.length||St.W.Xue(b))&&(x=d,!(w/2<=(G+=s.Kt(d))));d++);return M===x?it:new gt.Q8(n,M,x,w,c,k+G,k,G)},n.prototype.k7=function(t,e,n){var i,t,i=t.qt(e,n),t=t.$t(e,n,3,1,i);return!(!i.textOrientation&&!bt(t)||i.watermark||i.cellType&&"1"!==i.cellType.typeName||i.cellButtons&&0<i.cellButtons.length||St.W.Xue(i))},n.prototype.I7=function(t,e,n,i,r){var o,a,s,u,c,f,l,h,d,v,g,m,p,m,S,v,w,b,C,y,M,k,T,x,o=this,a=o.Mf,s=a.Jt,u=o.u7,c=Mt(t),l=t.style,h=l.shrinkToFit,v=t.text,g=t.printZoomFactor,m=l.watermark,p=l.wordWrap;if(u.findCell(e,n))return it;if(l.cellButtons&&0<l.cellButtons.length)return it;if(St.W.Xue(l))return it;for(m=P(t.data,v=v||m,l,o.c7,a,e,n,g),b=s.Kt(w=v=n),C=v+1;C<=r&&(S=s.qt(e,C),f=s.$t(e,C,3,1,S),bt(f)&&4===S.hAlign&&bt(a.getSpan(e,C)))&&!S.watermark&&!(S.cellType&&"1"!==S.cellType.typeName||S.cellButtons&&0<S.cellButtons.length||St.W.Xue(S));C++)w=C,b+=s.Kt(C);if(y=(m-b)/2,B(t.data)&&this.Mf.parent&&this.Mf.parent.options.numbersFitMode!==pt.NumbersFitMode.overflow&&(y=0),M=v,T=w,x=k=b/2,!h&&!p&&!1!==a.options.allowCellOverflow){for(d=n-1;i<=d&&0<y&&(this.k7(s,e,d)&&!u.findCell(e,d))&&(M=d,!(y<=(k+=s.Kt(d))-b/2));d--);for(d=w+1;d<=r&&0<y&&(this.k7(s,e,d)&&!u.findCell(e,d))&&(T=d,!(y<=(x+=s.Kt(d))-b/2));d++);}return new gt.Q8(n,M,T,m,c,k+x,k,x,b)},n.prototype.y7=function(t,e){var n,i,r,o,a,s,u,c,f,l,h,d,v,g,m,f,p,S,w,b,n=this,i=n.Mf,r=i.Jt,o=n.Vx;if(0===o.length)return[];for(a=o[0].col,s=o[o.length-1].col,u=i.Ut,w=[],e=e||q.q.J(),b=1;b<100;b++){if((v=a-b)<0)return w;if(u.findSpan(t,v)||i.Cb&&i.Cb.D7(t,v,pt.SheetArea.viewport))return w;f=r.$t(t,v,3,1),0<(l=r.Kt(v))&&!bt(f)&&(4!==(d=(c=r.qt(t,v)).hAlign)&&!1===i.options.allowCellOverflow||(3===d&&(d=y(d,f,T,c.textOrientation)),h=r.Gt(t),p=c.cellType||n.f7,m=q.Be.Cl(i,c,f,S={},{row:t,col:v,sheet:i}),f={data:f,style:c,width:l,text:m=S.content&&0<S.content.length&&!c.shrinkToFit&&c.textOrientation?p.de(e,S.content,h-4,c.font):m},0<c.textOrientation&&c.textOrientation<90?g=n.x7(f,t,v,s,!0):0===d?g=n.S7(f,t,v,s):1===d?g=n.A7(f,t,v,a,s):4===d&&(g=n.I7(f,t,v,a,s)),g&&g.endColumn>=a&&w.push(g)))}return w},n.prototype.C7=function(t,e){var n,i,r,o,a,s,u,c,f,l,h,d,v,g,m,p,S,w,f,b,C,n=this,i=n.Mf,r=i.Jt,o=n.Vx;if(0===o.length)return[];for(a=o[0].col,s=o[o.length-1].col,u=i.Ut,m=i.getColumnCount(),b=[],e=e||q.q.J(),C=1;C<100;C++){if(m<=(p=s+C))return b;if(u.findSpan(t,p)||i.Cb&&i.Cb.D7(t,p,pt.SheetArea.viewport))return b;f=r.$t(t,p,3,1),0<(l=r.Kt(p))&&!bt(f)&&(4!==(d=(c=r.o2e(t,p)).hAlign)&&!1===i.options.allowCellOverflow||(3===d&&(d=y(d,f,T,c.textOrientation)),h=r.Gt(t),v=c.cellType||n.f7,w=q.Be.Cl(i,c,f,g={},{row:t,col:p,sheet:i}),f={data:f,style:c,width:l,text:w=g.content&&0<g.content.length&&!c.shrinkToFit&&c.textOrientation?v.de(e,g.content,h-4,c.font):w},c.textOrientation<0&&-90<c.textOrientation?S=n.x7(f,t,p,a,!1):2===d?S=n.T7(f,t,p,a):1===d?S=n.A7(f,t,p,a,s):4===d&&(S=n.I7(f,t,p,0,s+100)),S&&S.startColumn<=s&&b.push(S)))}return b},xt=n,t.p7=xt,t.needPaintSelection=J,i.prototype.xpe=function(t,e){var n,i,e,n=this.Mf,i=n.getParent(),e={sheetArea:t,isPrinting:e,isNeedHighlightInvalid:!e&&3===t&&i&&i.options.highlightInvalidData};return vt.Worksheet.et(n,"sheetHighlightInvalid",e),e.isNeedHighlightInvalid},i.prototype.J=function(){var t,e,t,t=this.Mf,e=it,t=t.Dg();return e=t&&t.getContext?t.getContext("2d"):e},i.prototype._7=function(){var t,e,n,i,r,i,o,r,t=this,e=t.Mf,n=e.ot(),i=e.fg,r=Mt(i),i=yt(i),o=t.E7;return o&&Mt(o)===r&&yt(o)===i||(o&&q.Bf.th(e,o),t.E7=o=q.mt.En("canvas"),o.getContext&&(t.j7=o.getContext("2d"),q.Bf.Wl(o,it,e),q.Bf.$l(o,Mt(n),yt(n)))),(r=t.j7)&&(r.beginPath(),tt(r,t._n(t.Nn())),r.name="bufferContext"),r},i.prototype.Nn=function(){return this.c7||(this.c7=c+" "+this.Mf.currentTheme().bodyFont()),this.c7},i.prototype.O7=function(){this.c7=it},i.prototype.R7=function(t){var e,n,i,e,r,e=this.Mf,n=e.parent,i=n?n.options.grayAreaBackColor||q.I.ll("gc-grayArea").backgroundColor:"gray",e=q.Pf.vl(e,i);return e=t&&(r=n?n.options.backgroundImage:it)?a:e},i.prototype._n=function(t){var e,n=this.Mf.zoom();return 1===n?t:et(t,n).font},i.prototype.FA=function(t,e,n,i,r){var o,a,s,o,u,r,r,r,o=this,a=o.E7,s=o.J();!(n<=0||i<=0)&&a&&s&&(r=r||o.Mf.ot(),o=q.Bf.Kl(a),u=q.Bf.Jl(a),1!==o&&(t*=o,e*=u,n*=o,i*=u,r=new q.Rect(r.x*o,r.y*u,Mt(r)*o,yt(r)*u)),r=r.getIntersect(t,e,n,i))&&(r.round(),t=r.x,e=r.y,n=Mt(r),i=yt(r),(r=Mt(a))&&r<t+n&&(t=r-n)<0&&(n+=t,t=0),(r=yt(a))&&r<e+i&&(e=r-i)<0&&(i+=e,e=0),q.Lf.Vl(s,1,1),s.clearRect(t,e,n,i),s.drawImage(a,t,e,n,i,t,e,n,i),q.Lf.Vl(s,o,u))},i.prototype.O1=function(t,e){t&&this.FA(t.x,t.y,Mt(t),yt(t),e)},i.prototype.Ey=function(t,e,n,i,r,o){var a,s,u,c,f,l,h,d,v,g,m,p,S,w,b,C;if(0<n&&0<i)try{s=(a=this).Mf,u=a.J(),c=s.Dg(),f=a._7(),l=a.E7,v=r,g=o,m=n,p=i,S=q.Bf.Kl(c),w=q.Bf.Jl(c),t=Ct(t*S),e=Ct(e*w),n=Ct(n*S),i=Ct(i*w),v=Ct(v*S),g=Ct(g*w),m=Ct(m*S),p=Ct(p*w),b=Mt(l),C=yt(l),b&&b<t+n&&(t=b-n)<0&&(n+=t,t=0),C&&C<e+i&&(e=C-i)<0&&(i+=e,e=0),b&&b<v+m&&(v=b-m)<0&&(m+=v,v=0),C&&C<g+p&&(g=C-p)<0&&(p+=g,g=0),q.Lf.Vl(u,1,1),q.Lf.Vl(f,1,1),u.clearRect(v,g,m,p),u.drawImage(l,t,e,n,i,v,g,m,p),f.clearRect(v,g,m,p),f.drawImage(c,v,g,m,p,v,g,m,p),q.Lf.Vl(u,S,w),q.Lf.Vl(f,S,w)}catch(t){}},i.prototype.E1=function(t,e,n,i,r,o){var a,s,u,c,f,l,h,d,v,g,m,p,S,w,b,u,C,y,C,M,k,T,x,x,G,x,k,T,M,M,t,M,G,k,B,I,P,N,T,a=this,s=a.Mf,u=bt(r)||3===r;if(n=n||a.J(),f=(c=!1,q.Ec)(-1,-1,-1,-1),l=s.Ut,t&&(f=s.options.allowCellOverflow||s.gD?(0,q.Ec)(t.row,0,t.rowCount,s.getColumnCount(r)):(0,q.Ec)(t.row,t.col,t.rowCount,t.colCount),u)&&!o){if(0<=f.col){for(d=f.col,v=f.col+f.colCount-1,g=s.getRowCount(1),m=0;m<g;m++)(h=l.findSpan(m,f.col,1))?d=R(h.col,d):s.z9&&(d=R(s.z9.col,d)),(h=l.findSpan(m,f.col+f.colCount-1,1))?v=E(h.col+h.colCount-1,v):s.z9&&(v=E(s.z9.col+s.z9.colCount-1,v));f.col=d,f.colCount=v-d+1}if(0<=f.row){for(p=f.row,S=f.row+f.rowCount-1,w=s.getColumnCount(2),b=0;b<w;b++)(h=l.findSpan(f.row,b,2))?p=R(h.row,p):s.z9&&(p=R(s.z9.row,p)),(h=l.findSpan(f.row+f.rowCount-1,b,2))?S=E(h.row+h.rowCount-1,S):s.z9&&(S=E(s.z9.row+s.z9.rowCount-1,S));f.row=p,f.rowCount=S-p+1}}if(u=s.j1(f,r),s.cellStates&&s.cellStates.hasIntersectInSelectionState(f.row,f.col,f.rowCount,f.colCount)&&s.repaint(u),y=(C=s._1)&&C.isEnable(pt.RowColumnStates.selected,!0),C=C&&C.isEnable(pt.RowColumnStates.selected,!1),t&&(M=void 0,(y||C)&&(M=s.s7(s.C0(t.row),s.S0(t.col),pt.SheetArea.viewport,!1)),y&&(k=t.row,T=t.rowCount,M&&0<M.length&&(x=M.findLargestRange(t,!0))&&(x=(0,q.Ec)(x.row,x.col,x.rowCount,x.colCount),k=(G=t.union(x)).row,T=G.rowCount),x=s.j1((0,q.Ec)(k,-1,T,-1),r),u.x=R(u.x,x.x),u.y=R(u.y,x.y),u.width=E(u.width,x.width),u.height=E(u.height,x.height)),C)&&(k=t.col,T=t.colCount,M&&0<M.length&&(M=M.findLargestRange(t,!1))&&(M=(0,q.Ec)(M.row,M.col,M.rowCount,M.colCount),k=(G=t.union(M)).col,T=G.colCount),x=s.j1((0,q.Ec)(-1,k,-1,T),r),u.x=R(u.x,x.x),u.y=R(u.y,x.y),u.width=E(u.width,x.width),u.height=E(u.height,x.height)),t=Mt(u),M=yt(u),G=u.x,k=u.y,0<=t||0<=M){if(P=18,N=30,u.x+=I=B=-9,u.y+=-9,u.width+=18,u.height+=30,e&&!(u=u.getIntersectRect(e)))return;T=s.Fi(),0<M&&!o&&(s.k1=!0,a._e(n,new q.Rect(T.x,E(T.T6,k),T.XC,M),i)),0<t&&!o&&(s.k1=!0,a._e(n,new q.Rect(E(T.b6,G),T.y,t,T.qC),i)),-1!==f.row||-1!==f.col||o||(s.k1=!0,a._e(n,T.R1(),i)),0<t&&0<M&&((y||C)&&(s.k1=!0),a._e(n,u,i)),c=!0}return c},i.prototype._6=function(t,e,n,i,r){var o,a,s,o=this,a=o.Mf;a.My<=0&&(s=o.J())&&(r||(a.k1=!0),o._e(s,new q.Rect(t,e,n,i)))},i.prototype.repaint=function(t){var e,n,i,e=this,n=e.Mf;0<n.My||(i=e.J())&&(n.k1=!0,e._e(i,t))},i.prototype._e=function(t,e,n){var i=this;t&&i.Mf.My<=0&&(n||i.D1(t,e),i.jy(t,e))},i.prototype.D1=function(t,e,n){var i,r,o,t,a,i=this,r=i.Mf;t&&r.My<=0&&(t=(o=i._7())||t,a=r.ot(),(e=e||a)&&e.round(),n&&n.round(),r.k1&&(r.k1=!1,o&&(o.clearRect(e.x,e.y,Mt(e),yt(e)),n&&o.clearRect(n.x,n.y,Mt(n),yt(n)),q.Lf.Yl(o,-a.x,-a.y)),i.B7(t,e),n&&i.B7(t,n),o)&&q.Lf.Yl(o,a.x,a.y),o)&&(i.O1(e),n)&&i.O1(n)},i.prototype.jy=function(t,e){var n,i,r,o,a,s,u,c,n=this,i=n.Mf,r=i.Oi;if(t&&!(0<i.My)&&(e&&e.round(),o=i.Fi(),vt.Worksheet.et(i,"beforePaintAdornment",{ctx:t,clipRect:e}),!i.D_)){if(r){for(a=o.R1(),n.O1(a),u=0;u<=2;u++)(a=o.B1(u))&&0!==Mt(a)&&0!==yt(a)&&n.O1(a);for(c=0;c<=2;c++)(a=o.L1(c))&&0!==Mt(a)&&0!==yt(a)&&n.O1(a)}else if(i.NMi&&i.NMi.options.isDesignMode)for(c=0;c<=2;c++)!(a=o.L1(c))||0===Mt(a)||0===yt(a)||(s=e)&&!a.intersectRect(s)||n.L7(t,-1,c,s,1);for(u=0;u<=2;u++)for(c=0;c<=2;c++)(a=o.c9(u,c))&&0!==Mt(a)&&0!==yt(a)&&(s=e,(r&&(1!==u||1!==c)||i.parent&&i.parent.options.allowUserDragMerge)&&(n.O1(a),s=a),s&&!a.intersectRect(s)||n.L7(t,u,c,s));n.F7(t),vt.Worksheet.et(i,"paintAdornment",{ctx:t,clipRect:e})}},i.prototype.wm=function(t,e){var n,i,i,r,n,o,n=this.Mf,i=n.parent,i=i?i.options:{},r=st(n),n=q.Pf.vl(n,r),o;i.backgroundImage&&(n=a),t.save(),t.fillStyle=n,t.fillRect(e.x,e.y,Mt(e),yt(e)),t.restore()},i.prototype.P7=function(t,e){var n,i,r,n=this.Mf,i=n.Fi(),r=0<n.frozenRowCount()?0:1;return 0===i.qC&&(t===n.getViewportTopRow(r)||e)},i.prototype.G7=function(t,e){var n,i,r,n=this.Mf,i=n.Fi(),r=0<n.frozenColumnCount()?0:1;return 0===i.XC&&(t===n.getViewportLeftColumn(r)||e)},i.prototype.U7=function(t,e,n,i,r){var o,a,s,i,u,c,u,n,o=this,a=o.Mf,s=0===i.width,i=0===i.height,u=a.options,c=u.sheetAreaOffset.top,u=u.sheetAreaOffset.left,n=n.c9(t,e);return n&&(i&&o.P7(a.H7(t),r)&&(n.y=n.y-c,n.height=n.height+c),s)&&o.G7(a.z7(e),r)&&(n.x=n.x-u,n.width=n.width+u),n},i.prototype.V7=function(t,e,n,i){for(var r,o,a,s,u,c,f,l,h,d,v,g,m,p,S,w,b,o,r=this,o=r.Mf,a=o.options,s=o.Fi(),u=a.sheetAreaOffset.top,c=a.sheetAreaOffset.left,f=0!==s.qC,l=0!==s.XC,h=o.gj&&o.gj()||{x:a.sheetAreaOffset.left,y:a.sheetAreaOffset.top,width:0,height:0},d=0===h.width,v=0===h.height,m=0;m<=2;m++)(S=s.L1(m))&&(f&&v&&(S.y=S.y-u,S.height=S.height+u,!l)&&d&&(S.x=S.x-c,S.width=S.width+c),p=e?S.getIntersectRect(e):S)&&r.Y7(t,m,p,n,i);for(g=0;g<=2;g++)for((w=s.B1(g))&&(l&&d&&(w.x=w.x-c,w.width=w.width+c,!f)&&v&&(w.y=w.y-u,w.height=w.height+u),p=e?w.getIntersectRect(e):w)&&r.Z7(t,g,p,n,i),m=0;m<=2;m++)(b=r.U7(g,m,s,h,n))&&(p=e?b.getIntersectRect(e):b)&&r.W7(t,g,m,p,n,i);(o=s.R1())&&(p=e?o.getIntersectRect(e):o)&&r.Q7(t,p,n,i)},i.prototype.K7=function(t){var e,n,i,r,o,a,s,u,c,f,l,i,h,e=this,n=e.Mf,i=n.Fi(),r=i.BA,o=i.LA,a=Mt(i),s=i.Ay,u=i.Iy,c=i.J7,f=i.Uy,l=i.X7,i=i.Ty;0<i&&(t.fillStyle=e.R7(!1),t.fillRect(r,l,a,i)),0<f&&(t.fillStyle=e.R7(!1),t.fillRect(c,o,f,l),h=n.Ny)&&t.fillRect(c,s,f,u)},i.prototype.q7=function(t,e){var n,i,r,i,o,i,a,s,u,e,n=this,i=n.Mf,r=n.R7(!1),i=i.options,o=i.sheetAreaOffset.left,i=i.sheetAreaOffset.top,a=e.x,s=e.y,u=Mt(e),e=yt(e);t.save(),0<o&&j(t,o,r,a+o/2,0<i?s+i:s,a+o/2,s+E(0,e)),0<i&&j(t,i,r,0<o?a+o:a,s+i/2,a+E(0,u),s+i/2),0<o&&0<i&&(t.fillStyle=n.R7(!1),t.fillRect(a,s,o,i)),t.beginPath(),t.restore()},i.prototype.B7=function(t,e){var n,i,r,n=this,i=n.Mf;!t||0<i.My||(r=i.ot(),t.save(),e?t.rect(e.x,e.y,Mt(e),yt(e)):t.rect(r.x,r.y,Mt(r),yt(r)),t.clip(),t.beginPath(),n.wm(t,r),vt.Worksheet.et(i,"paint",{ctx:t,clipRect:e}),n.q7(t,r),n.V7(t,e,!1),n.K7(t),n.tO(t),vt.Worksheet.et(i,"paintSheetEnd",{ctx:t,clipRect:e}),t.beginPath(),t.restore())},i.prototype.nO=function(t,e,n){var i,r,r,e,i=this,r=i.Mf;t&&(r=r.ot(),t.save(),e=e||new q.Rect(r.x,r.y,Mt(r),yt(r)),t.rect(e.x,e.y,Mt(e),yt(e)),t.clip(),t.beginPath(),i.wm(t,r),i.V7(t,e,!0,n),t.beginPath(),t.restore())},i.prototype.F7=function(t){var e,n,i,r,o,a,s,u,c,u,c,s,s=this.Mf,u=s.rt,c=s.sw;if(u&&u.isResizing&&c&&(u=c.resizeInfo)){if(c=s.Fi(),s=rt,t.save(),t.strokeStyle!==s&&(t.strokeStyle=s),1!==t.lineWidth&&(t.lineWidth=1),t.beginPath(),"sizeRow"===u.action||"sizeHiddenRow"===u.action)for(n=E(0,u.startY-.5),r=u.movingY-.5,o=c.x+Mt(c),e=c.x;e<o;e+=2)t.moveTo(e,n),t.lineTo(e+1,n),t.moveTo(e,r),t.lineTo(e+1,r);else for(e=E(0,u.startX-.5),i=u.movingX-.5,a=c.y+yt(c),n=c.y;n<a;n+=2)t.moveTo(e,n),t.lineTo(e,n+1),t.moveTo(i,n),t.lineTo(i,n+1);t.stroke(),t.beginPath(),t.restore()}},i.prototype.TCe=function(){q.Lf.d5(this.E7),this.E7=null,this.j7=null},i.prototype.Q7=function(t,e,n,i){var r,o,a,s,u,o,c,c,r=this.Mf;t.beginPath(),a=(o=r.Fi().R1()).x,s=o.y,u=Mt(o),o=yt(o),c=r.getActualStyle(-1,-1,0),this.eO(t,[{data:it,row:-1,col:-1,x:a,y:s,width:u,height:o,style:c.clone()}],0,n,i),(c=new mt.Yx(r,r._y(0,0),r.Yy(0,0),0)).PN(0,0,a,s,u,o,it,it,it,it,{printZoomFactor:i}),c.paint(t,i)},i.prototype.tO=function(t){var e,n,i,r,o,a,s,u,c,f,l,h,d,a,e=this.Mf,n=e.frozenRowCount(),i=e.frozenColumnCount(),r=e.frozenTrailingRowCount(),o=e.frozenTrailingColumnCount();(n||i||r||o)&&(s=(a=e.Fi()).Py,u=a.Cy,c=a.Hy,f=a.Ay,l=a.x,h=a.y,d=Mt(a),a=yt(a),t.save(),t.strokeStyle=q.Pf.vl(e,e.options.frozenlineColor),t.lineWidth=1,t.beginPath(),i&&(t.moveTo(s-.5,h),t.lineTo(s-.5,h+a)),n&&(t.moveTo(l,u-.5),t.lineTo(l+d,u-.5)),o&&(t.moveTo(c-.5,h),t.lineTo(c-.5,h+a)),r&&(t.moveTo(l,f-.5),t.lineTo(l+d,f-.5)),t.stroke(),t.restore())},i.prototype.Y7=function(t,e,n,i,r){this.iO(t,-1,e,1,n,i,r)},i.prototype.Z7=function(t,e,n,i,r){this.iO(t,e,-1,2,n,i,r)},i.prototype.W7=function(t,e,n,i,r,o){var a,a,s,u,c,r,a=this.Mf,a=a.getCalcService&&a.getCalcService(),s=a&&a.rO;for(u in s)s[u].getSource().startCalculation();if(this.iO(t,e,n,3,i,r,o),s)for(u in c=!a.calcOnDemand,s)s[u].getSource().endCalculation(c);(r=this.Mf.lA)&&r.oO(t,i,e,n)},i.prototype.aO=function(t,e,n,i,r){var o,a,s,a,e,n,o,a=this.Mf,s=a.getRangeRect(e,n,(0,q.Ec)(r.row,r.col,r.rowCount,r.colCount));(s=s.getIntersectRect(a.Fi().c9(e,n)))&&(s.round(),a=r.isValid,t.save(),t.lineWidth=1,t.strokeStyle="mediumblue",a||t.setLineDash([6,2]),e=s.x+.5,n=s.y+.5,t.strokeRect(e,n,Mt(s),yt(s)),t.beginPath(),t.restore())},i.prototype.L7=function(t,e,n,i,r){var o,a,s,u,c,f,l,h,d,v,g,m,p,p,S,w,b,p,C,y,M,k,l,M,l,T,x,G,k,M,l,T,o=bt(r)||3===r,a=this,s=a.Mf;if(J(s)&&s.addSelection&&(l=s.Ut,h=s.rt,v=(d=l.getSelections(r)).length,i=a.uO(e,n,i))&&(g=q.I.fl("gc-selection"),m=I(g.zIndex),o&&(2007<m&&a.sO(t,e,n,i),p=s.Uw&&s.Uw(3),p=l.cO=p&&p.t8.getAnchorInfo(s.getActiveRowIndex(),s.getActiveColumnIndex()))&&a.aO(t,e,n,i,p),b=void 0,!((w=(S=a.fO(e,n,d,i)).length)<=0))){for(p=o&&a.fO(e,n,[s.z9],i)[0],C=!1,y=void 0,y=0;y<w;y++)if(b=S[y],!i.containsRect(b)){C=!0;break}if(p&&!i.containsRect(p)&&(C=!0),t.save(),C&&(t.rect(i.x,i.y,Mt(i),yt(i)),t.clip()),t.beginPath(),0<w)for(f=q.Pf.vl(s,s.getSelectionBackColor()),t.fillStyle!==f&&(t.fillStyle=f),c=u=0,2007<m&&(u=1,c=-3),y=0;y<w;y++)b=S[y],t.fillRect(b.x+u,b.y+u,Mt(b)+c,yt(b)+c);s.RD||(M=s.ui,k=s.ci,1===r?(M=(l=l.J9()||d[0]).row,k=l.col):p&&(M=s.U9,k=s.H9),G=x=T=l=void 0,(M=s.getCellRect(M,k,e,n))&&M.intersectRect(i)&&(l=M.x,T=M.y,x=Mt(M),G=yt(M),u=1,c=-2,2007<m&&(c=u=0),a.FA(l+u,T+u,x+c,G+c),1<v)&&(t.strokeStyle=q.Pf.vl(s,s.getSelectionBorderColor()),t.lineWidth=1,t.strokeRect(l+1.5,T+1.5,x-4,G-4))),t.restore(),t.save(),t.beginPath(),1===v&&(o&&h&&h.Yk&&h.lO&&h.lO()&&!h.hO&&(k=h.dO&&h.dO(),l=Mt(M=s.getRangeRect(e,n,k)),T=yt(M),M)&&0<l&&0<T&&(t.fillStyle=g&&g.color,t.fillRect(M.x,M.y,l,T)),b)&&0<=Mt(b)&&0<=yt(b)&&(a.vO(i,s,e,n,m),a.mO(t,e,n,b,i,d[0],r)),p&&(t.save(),C&&(t.rect(i.x,i.y,Mt(i),yt(i)),t.clip()),t.beginPath(),t.fillStyle="rgba(255,255,255,0.4)",t.fillRect(p.x+u,p.y+u,Mt(p)+c,yt(p)+c),t.fillStyle=f,t.strokeStyle="rgb(124,124,124)",t.lineWidth=1,t.strokeRect(p.x-.5,p.y-.5,Mt(p),yt(p)),t.restore()),t.beginPath(),t.restore()}},i.prototype.vO=function(t,e,n,i,r){var o,a,s,u,o,a,c,f,r,l,s,h,d,v,s,r,l,f,c,o=e.frozenTrailingRowCount(),a=e.frozenTrailingColumnCount(),s=e.getSelections(),u=e.Fi(),o=e.getRowCount()-o-1,a=e.getColumnCount()-a-1,c=e.Yy(1,3),f=e._y(1,3);1===s.length&&2007<r&&(r=e.frozenRowCount(),l=e.frozenColumnCount(),h=(s=s[0]).row,d=s.col,v=s.rowCount,s=s.colCount,0<r&&(r<=h&&e.nI(h)<r?(t.y-=2,t.height+=2):h+v<=r&&e.j5(h+v-1)===e.Tb&&(t.height+=2)),0<l&&(l<=d&&e.r6(d)<l?(t.x-=2,t.width+=2):d+s<=l&&e.O5(d+s-1)===e.Ab&&(t.width+=2)),0===h&&0===d&&(t.x-=2,t.y-=2,t.width+=2,t.height+=2),-1===h&&(h=0,v=e.getRowCount()),-1===d&&(d=0,s=e.getColumnCount()),l=r=!1,f=f.findRow(o),c=c.findCol(a),f&&f.y+yt(f)<u.Cy+e.Sy(u)&&(r=!0),c&&c.x+Mt(c)<u.Py+e.Gy(u)&&(l=!0),r&&h+v-1==o&&(t.height+=2),l)&&d+s-1==a&&(t.width+=2)},i.prototype.sO=function(t,e,n,i){var r,o,a,s,u,c,f,F,s,a,l,h,d,a,v,g,m,p,S,w,b,C,y,M,k,T,x,G,B,I,P,N,R,E,H,U,r=this,o=r.Mf,a=o.Ut.getSelections(),s=o.Fi(),u=s.b6,c=s.T6,f=a.length,F=0!==s.qC,s=0!==s.XC;if(!(f<=0)){if(l=(a=a[0]).row,h=a.rowCount,d=a.col,a=a.colCount,-1===l&&(l=0),-1===d&&(d=0),-1===h&&(h=o.getRowCount()),-1===a&&(a=o.getColumnCount()),t.save(),t.beginPath(),t.lineWidth=2,t.strokeStyle=o.getSelectionBorderColor(),v=i.x,g=i.y,m=Mt(i),p=yt(i),S=o.frozenRowCount(),F&&(1!==f||0!==S||o.Tb<=l||o.Tb>=l+h))for(b=0,C=(w=r.gO(n)).length;b<C;b++)k=M=0,T=(y=w[b]).x,x=y.x+Mt(y),y.x<v+m&&v<y.x+Mt(y)&&(1===f&&(0===S&&o.Tb===l||0<S&&0===l)&&(M=-1,k=1),y.x<v&&(M=0,T=v),y.x+Mt(y)>v+m&&(k=0,x=v+m),t.moveTo(T+M-1,c-1),t.lineTo(x+k,c-1),t.stroke());if(G=o.frozenColumnCount(),s&&(1!==f||0!==G||o.Ab<=d||o.Ab>=d+a))for(I=0,P=(B=r.pO(e)).length;I<P;I++)E=R=0,H=(N=B[I]).y,U=N.y+yt(N),N.y<g+p&&g<N.y+yt(N)&&(1===f&&(0===G&&o.Ab===d||0<G&&0===d)&&(R=-1,E=1),N.y<g&&(R=0,H=g),N.y+yt(N)>g+p&&(E=0,U=g+p),t.moveTo(u-1,H+R-1),t.lineTo(u-1,U+E),t.stroke());t.beginPath(),t.restore()}},i.prototype.gO=function(t){for(var e,n,i,r,o,a,s,u,c,f,l,h,d,s,v,l,h,d,e=this.Mf,n=e.Ut.getSelections(),i=n.length,r=e.Yy(t),o=[],a={},u=0;u<i;u++)(c=n[u])&&(-1===(f=c.col)?(l=e.Yy(0,3),h=e.Yy(1,3),d=e.Yy(2,3),v=s=-1,0<l.length&&(s=l[0].x,v=l[l.length-1].x+l[l.length-1].width-s,o.push(new q.Rect(s,-1,v,-1))),0<h.length&&(s=h[0].x,v=h[h.length-1].x+h[h.length-1].width-s,o.push(new q.Rect(s,-1,v,-1))),0<d.length&&(s=d[0].x,v=d[d.length-1].x+d[d.length-1].width-s,o.push(new q.Rect(s,-1,v,-1)))):r&&(l=r.findCol(f),h=r.findCol(f+c.colCount-1),l||h)&&((d=new q.Rect(-1,-1,-1,-1)).x=(l||r[0]).x,d.width=h?h.x+Mt(h)-d.x:r[r.length-1].x+r[r.length-1].width-d.x,a[s=[d.x,d.width].join("_")]||(a[s]=!0,o.push(d))));return o},i.prototype.pO=function(t){for(var e,n,i,r,o,a,s,u,c,f,l,h,d,s,v,l,h,d,e=this.Mf,n=e.Ut.getSelections(),i=n.length,r=e._y(t),o=[],a={},u=0;u<i;u++)(c=n[u])&&(-1===(f=c.row)?(l=e._y(0,3),h=e._y(1,3),d=e._y(2,3),v=s=-1,0<l.length&&(s=l[0].y,v=l[l.length-1].y+l[l.length-1].height-s,o.push(new q.Rect(-1,s,-1,v))),0<h.length&&(s=h[0].y,v=h[h.length-1].y+h[h.length-1].height-s,o.push(new q.Rect(-1,s,-1,v))),0<d.length&&(s=d[0].y,v=d[d.length-1].y+d[d.length-1].height-s,o.push(new q.Rect(-1,s,-1,v)))):r&&(l=r.findRow(f),h=r.findRow(f+c.rowCount-1),l||h)&&((d=new q.Rect(-1,-1,-1,-1)).y=(l||r[0]).y,d.height=h?h.y+yt(h)-d.y:r[r.length-1].y+r[r.length-1].height-d.y,a[s=[d.y,d.height].join("_")]||(a[s]=!0,o.push(d))));return o},i.prototype.mO=function(t,e,n,i,r,o,a){var s,u,c,f,l,h,d,v,g,m,p,S,w,b,C,y,M,C,k,s=this,u=s.Mf,c=u.parent,f=u.rt,l=i.x,h=i.y,d=Mt(i),v=yt(i),g=u.getViewportTopRow(e),m=u.getViewportLeftColumn(n),p=u.getViewportBottomRow(e),S=u.getViewportRightColumn(n),w=0,b=0,C=u.Fi(),y=0!==C.qC,M;0!==C.XC||o.col!==m&&-1!==o.col||(w=2),y||o.row!==g&&-1!==o.row||(b=2),o.row+o.rowCount===p+1&&(r.height=r.height+1),o.col+o.colCount===S+1&&(r.width=r.width+1),0<=d&&0<=v&&(!r||i.intersect(r.x-1,r.y-1,Mt(r)+2,yt(r)+2))&&(t.save(),r&&!r.containsRect(i)&&(t.rect(r.x-w,r.y-b,Mt(r),yt(r)),t.clip()),t.beginPath(),t.strokeStyle=q.Pf.vl(u,u.getSelectionBorderColor()),t.lineWidth=2,0<d&&0<v?(f&&f.Yk?2===(C=f.bO)?(t.moveTo(l+.5,h-.5),t.lineTo(l+d-1,h-.5)):3===C?(t.moveTo(l+.5,h+v-.5),t.lineTo(l+d-1,h+v-.5)):0===C?(t.moveTo(l-.5,h+.5),t.lineTo(l-.5,h+v-1)):1===C&&(t.moveTo(l+d-.5,h+.5),t.lineTo(l+d-.5,h+v-1)):2007<(k=c&&c.SC)?t.rect(l-1,h-1,d+1,v+1):t.rect(l-.5,h-.5,d,v),t.stroke(),(bt(a)||3===a)&&c&&c.options.allowUserDragFill&&s.yO&&s.yO(t,e,n,i,r)):0!==d&&0!==v||t.strokeRect(l-1,h-1,d+1,v+1),t.beginPath(),t.restore())},i.prototype.uO=function(t,e,n){var i,r,o,e,e,e,i,i=this.Mf,r=i.Fi();return 0<=t&&0<=e?o=r.c9(t,e):-1===t?o=r.L1(e):-1===e&&(o=r.B1(t)),1===e&&(e=0<(e=i.Yy(e)).length?e[e.length-1]:it)&&(o.width=R(Mt(o),e.x+Mt(e)-r.Py)),1===t&&(i=0<(e=i._y(t)).length?e[e.length-1]:it)&&(o.height=R(yt(o),i.y+yt(i)-r.Cy)),n=n?n.getIntersect(o.x,o.y,Mt(o),yt(o)):o},i.prototype.fO=function(t,e,n,i){for(var r,o,a,s,u,c,a,f,l,r=this.Mf,o=r.Ut,s=n.length,c=[],f=r.C6(t,e),l=0;l<s;l++)(u=n[l])&&((a=o.findSpan(u.row,u.col,f))&&a.containsRange(u)&&(u=a),a=r.getRangeRect(t,e,u))&&a.x<=i.x+Mt(i)&&a.y<=i.y+yt(i)&&i.x<=a.x+Mt(a)&&i.y<=a.y+yt(a)&&c.push(a);return c},i.prototype.wO=function(t,e,n){var i,r,o,e,a,s,u,c,f,l,h;if(t.save(),i=e.x,r=e.y,o=Mt(e),e=yt(e),a=[6,6],t.setLineDash)t.beginPath(),t.lineWidth=2,t.strokeStyle=n,t.setLineDash(a),t.rect(i,r,o-1,e-1);else{for(t.beginPath(),t.lineWidth=2,t.strokeStyle=n,s=a[0],u=a[1],h=l=f=c=void 0,c=i,f=r,l=o;0<l;)if(s+u<=l)t.moveTo(c,f),t.lineTo(c+s,f),c=c+s+u,l=l-s-u;else{if(s<=l){t.moveTo(c,f),t.lineTo(c+s,f),l=l-s-u;break}if(0<l){t.moveTo(c,f),t.lineTo(c+l,f),l=l-s-u;break}}for(c=i+o-1,f=r+1,h=e-1,l<0&&(u<(l=w(l))&&(t.moveTo(c,f-2),t.lineTo(c,f+(l-u))),f+=l,h-=l);0<h;)s+u<=h?(t.moveTo(c,f),t.lineTo(c,f+s),f=f+s+u,h=h-s-u):s<=h?(t.moveTo(c,f),t.lineTo(c,f+s),h=h-s-u):0<h&&(t.moveTo(c,f),t.lineTo(c,f+h),h=h-s-u);for(c=i+o-2,f=r+e-1,l=o-1,h<0&&(u<(h=w(h))&&(t.moveTo(c+2,f),t.lineTo(c-(h-u),f)),c-=h,l-=h);0<l;)if(s+u<=l)t.moveTo(c,f),t.lineTo(c-s,f),c=c-s-u,l=l-s-u;else{if(s<=l){t.moveTo(c,f),t.lineTo(c-s,f),l=l-s-u;break}if(0<l){t.moveTo(c,f),t.lineTo(c-l,f),l=l-s-u;break}}for(c=i,f=r+e-2,h=e-1,l<0&&(u<(l=w(l))&&(t.moveTo(c,f+2),t.lineTo(c,f-(l-u))),f-=l,h-=l);0<h;)s+u<=h?(t.moveTo(c,f),t.lineTo(c,f-s),f=f-s-u,h=h-s-u):s<=h?(t.moveTo(c,f),f-s===r?t.lineTo(c,f-s-1):t.lineTo(c,f-s),h=h-s-u):0<h&&(r<f&&(t.moveTo(c,f),t.lineTo(c,f-h)),h=h-s-u)}t.stroke(),t.beginPath(),t.restore()},i.prototype.mfe=function(t,e,n,i,r,o){var i,a,s,u,c,f,l,h,d,v,g,m,g;if(!i&&0!==e.length){for(i=n.row,h=l=f=c=u=s=a=void 0,d=e.length-1;0<=d&&(v=e[d]).isOutside;d--)h=d;for(f=(p(h)?(a=(g=e[h]).col,s=g.x,u=g.width,2!==g.columnHeaderFitMode?(c=e[h].y,e[h]):(c=e[h+1].y,e[h+1])):(a=e[e.length-1].col+1,s=e[e.length-1].x+e[e.length-1].width,u=r.Jt.Kt(a,o),c=n.y,n)).height,a<r.getColumnCount(o)&&(l=r.Jt.qt(i,a,o)),St.W.gfe(l,4)&&0<u&&r.getColumnVisible(a,o)&&t.push({style:l,x:s,y:c,width:u,height:f}),m=void 0,d=0;d<e.length&&(v=e[d]).isOutside;d++)m=d;f=(p(m)?(a=(g=e[m]).col,s=g.x,u=g.width,2!==g.columnHeaderFitMode?(c=e[m].y,e[m]):(c=e[m+1].y,e[m+1])):(a=e[0].col-1,u=r.Jt.Kt(a,o),s=e[0].x-u,c=n.y,n)).height,a<0||(l=r.Jt.qt(i,a,o),St.W.gfe(l,5)&&0<u&&r.getColumnVisible(a,o)&&t.push({style:l,x:s,y:c,width:u,height:f}))}},i.prototype.MO=function(t,e,n,i,r,o,a){var r,s,u,u,r;r&&0!==e.length&&(r=e[0].col-1,s=e[e.length-1].col+1,u=n.Sl(i.row,r,a,1),0<=r&&o.isValid&&!o.isValid(i.row,r,u)&&t.push({style:o.getDataValidator(i.row,r).highlightStyle(),x:e[0].x-o.getColumnWidth(r),y:i.y,width:o.getColumnWidth(r),height:i.height}),u=n.Sl(i.row,s,a,1),o.isValid)&&!o.isValid(i.row,s,u)&&(r=e[e.length-1],t.push({style:o.getDataValidator(i.row,s).highlightStyle(),x:r.x+r.width,y:i.y,width:o.getColumnWidth(s),height:i.height}))},i.prototype.CO=function(t,e,n){for(var i,r,o,a,s,u,c,f,l,h,d,v,i=e.Jt,r=t.row,o=t.col,a={},s={},u=[],c=t.rowCount,f=t.colCount,l=0;l<f;l++)s[l]=e.nn(l+o,n);for(h=0;h<c;h++){if(a[h]=e.Gt(h+r,n),d=[],0<a[h])for(v=0;v<f;v++)d.push(0<s[v]?i.qt(r+h,o+v,n):T);u.push(d)}return{rowSizes:a,colSizes:s,styleList:u}},i.prototype.iO=function(t,l,h,d,v,g,m){var p,S,e,D,s,w,e,e,n,b,u,C,i,y,j,c,O,M,k,T,x,G,B,I,P,N,R,E,H,U,V,F,f,E,Y,K,z,W,J,Z,Q,r,X,q,$,tt,et,r,e,_,nt,A,L,it,rt,ot,r,at,st,o,ut,ct,ft,lt,lt,e,a;if(bt(d)&&(d=3),e=(S=(p=this).Mf).parent,D=e&&e.options.resizeZeroIndicator,s=S._y(l,d),w=S.yfe(h,d),e=S.options.sheetAreaOffset,e=S.gj&&S.gj()||{x:e.left,y:e.top,width:0,height:0},n=p.U7(l,h,S.Fi(),e,g),b=!1,u=s.length,C=w.length,!(u<0||C<0)){for(i=new gt.h9,y=0;y<C;y++)w[y].isOutside||i.push(w[y]);for(j=p.xpe(d,g),c=S.s7(l,h,d,!0),O=0<c.length,x=S.Jt,R=N=P=I=0,U=new mt.Yx(S,s,i,d),V=[],F=[],f=[],Y=[],K=[],t.save(),t.beginPath(),z=[],J=W=-1,Z=S.N9(3),Q=S.k9(3),r=S.Fi(),X=0===r.qC&&0===e.height,q=0===r.XC&&0===e.width,$=!!wt(this.Mf),tt=!1,et=ht("SheetsCalc"),r=S.getActiveRowIndex(),e=S.getActiveColumnIndex(),_=this.SO(d,S,r,e),A={},O&&(nt=new dt.Common.rbush,c.forEach(function(t){nt.insert({minX:t.row,minY:t.col,maxX:t.row+t.rowCount-1,maxY:t.col+t.colCount-1,item:t})})),y=0;y<u;y++){for(M=s[y],p.MO(Y,i,x,M,j,S,d),L=[],it=function(n){var t,t,t,e,e,i,r,o,a,s,u,c,u,f,a,s,u,a,u,s;if(k=w[n],O&&(A.minX=M.row,A.minY=k.col,A.maxX=M.row,A.maxY=k.col,t=nt.search(A)[0],T=t&&t.item),T?(G=T.row,B=T.col,I=T.x,P=T.y,N=Mt(T),R=yt(T),T.isAutoMerge&&(t=p.TO(T,l,h,d),I=t.x,P=t.y,N=t.width,R=t.height),T.spanSizeInfo||(T.spanSizeInfo=p.CO(T,S,d))):(G=M.row,B=k.col,I=k.x,N=Mt(k),-1===k.y?P=M.y:(P=Ct(k.y*M.height+M.y),b=!0),-1===yt(k)?R=yt(M):(R=M.height+M.y-P,b=!0)),1===D&&(-1===l&&S.getColumnVisible(B)&&0===S.Do(B)&&((J<0||J!==B-1)&&z.push({x1:I,y1:P,x2:I,y2:P+R,horizontal:!1}),J=B),-1===h)&&S.getRowVisible(G)&&0===S._o(G)&&((W<0||W!==G-1)&&z.push({x1:I,y1:P,x2:I+N,y2:P,horizontal:!0}),W=G),v&&(I+N<=v.x||I>=v.x+Mt(v)||P+R<=v.y||P>=v.y+yt(v))&&(!b||I>v.x+Mt(v))&&!k.isOutside)return"continue";if(0===N||0===R)return"continue";if(1===d&&n<C-1&&w[n+1].x-I==0)return"continue";if(L.push({col:B,x:I,y:P,width:N,height:R}),t=function(t){var e,e;t.columnHeaderFitMode!==pt.ColumnHeaderFitMode.normal&&n<C-1&&(e=S.O5(k.col,d,!0))&&(e=w.findCol(e))&&-1!==e.y&&(t.cornerX=e.x,t.columnHeaderFitMode===pt.ColumnHeaderFitMode.stack?t.cornerY=Ct(e.y*M.height)+M.y:t.cornerY=M.height+M.y)},k.isOutside)return(e=L[L.length-1]).isOutside=!0,e.columnHeaderFitMode=1===d&&S.Lt(B),t(e),e.columnHeaderFitMode===pt.ColumnHeaderFitMode.stack&&(e.width=x.Kt(B,d)),"continue";if(e=!1,!T||!kt.OS(V,T)){if(i=!1,E=x.$t(G,B,d,1),r=S.AO&&S.AO(),o=S.getRowCount(pt.SheetArea.colHeader)-1,a=S.frozenRowCount(),s=S.getViewportTopRow(0),u=S.getViewportTopRow(1),!g&&_&&G===o&&B>=_.iw&&(0===a&&_.Ky+_.Sx>u||0<a&&0<s&&_.Ky+_.Sx>s)&&B<_.iw+_.Tx){if(E=S.getCell(_.Ky,B).text()+"",e=!0,i=_.filterButtonVisible(),r)for(c=0;c<r.length;c++)if(r[c].col===B&&r[c].rowFilter.nM===_){rt.IO(r[c],1,o,!0);break}}else if(r&&0<r.length&&(f=r[u=r.length-1].rowFilter&&r[u].rowFilter.nM))for(c=r.length-1;0<=c;c--)if(r[c].tableColumnHeaderFilter&&r[c].col===B){rt.IO(r[c],3,f.Ky,!1);break}H=x.qt(G,B,d),j&&(a=x.Sl(G,B,d,1),S.isValid)&&!S.isValid(G,B,a)&&Y.push({style:S.getDataValidator(G,B).highlightStyle(),x:I,y:P,width:N,height:R}),3===d&&(s=H.formatter,et)&&s&&Tt(s)&&(!g||S.pivotTables&&S.pivotTables.findPivotTable(G,B))&&(u=S.parent&&S.parent.xO(s))&&(a=u.getExpression(),E=S.NO(s,a,G,B)),e&&(H.hAlign=0),t(E={data:E,row:G,col:B,x:I,y:P,width:N,sparkline:$&&S.getSparkline(G,B),height:R,style:H,colStyle:S.Z_(-1,B,d),cellLayout:T,tableFilter:i,columnHeaderFitMode:1===d&&S.Lt(B),offsetX:k.offsetX,printZoomFactor:m,sheetArea:d}),F.push(E),St.W.Xue(H)&&K.push({style:H,x:I,y:P,width:E.columnHeaderFitMode===pt.ColumnHeaderFitMode.stack?S.getColumnWidth(B,d):N,height:R,columnHeaderFitMode:E.columnHeaderFitMode,cornerY:E.cornerY,cornerX:E.cornerX}),T&&V.push(T),E.style&&4===E.style.hAlign&&(tt=!0),u=(G===Z||g&&0===y)&&X,s=(B===Q||g&&0===n)&&q,U.PN(G,B,I,P,N,R,H,T,u,s,E)}},rt=this,ot=0;ot<C;ot++)it(ot);0<L.length&&p.mfe(K,L,M,g,S,d)}if(0<F.length){if(3===d&&(S.options.allowCellOverflow||tt)&&(r=x.gl(l,h,function(){return new xt(S,l,h)}),0<(f=p.kO(t,r,F,U,m)).length)){for(at=v.x,st=v.x+v.width,y=0;y<f.length;y++)(o=f[y])&&(ut=o.row,ct=o.col,(ft=o.cellOverflowLayout&&o.cellOverflowLayout.layout)&&((lt=ft.x)<at&&(at=lt),st<(lt=lt+ft.width))&&(st=lt),o.printZoomFactor=m,U.PN(ut,ct,o.x,o.y,o.width,o.height,o.style,o.cellLayout,ut===Z&&X,ct===Q&&q,o));F=F.concat(f),g||(v.x=at,v.width=st-at,n&&(v=v?n.getIntersectRect(v):n))}1===d&&b&&p.DO(F,i,U,v,g,n,Z,Q,X,q,m),v&&(e=S.printInfo&&S.printInfo(),g&&e&&(0<e.columnStart()||0<e.rowStart())&&!e.showBorder()?t.rect(v.x-(0<e.columnStart()?2:0),v.y-(0<e.rowStart()?2:0),Mt(v)+(0<e.columnStart()?4:0),yt(v)+(0<e.rowStart()?4:0)):t.rect(v.x,v.y,Mt(v),yt(v)),t.clip()),p.eO(t,F,d,g,m)}vt.Worksheet.et(S,"paintViewport",{ctx:t,rowViewportIndex:l,colViewportIndex:h,sheetArea:d,clipRect:v,isPrinting:g}),U.paint(t,m),0<z.length&&p._O(t,z,1,3),0<Y.length&&(a=n.getIntersectRect(v),t.rect(a.x,a.y,Mt(a),yt(a)),t.clip(),p.EO(t,Y)),0<K.length&&(a=n?n.getIntersectRect(v):v,t.rect(a.x,a.y,Mt(a),yt(a)),t.clip(),p.que(t,K,{isPrinting:g,printZoomFactor:m,sheet:S})),t.restore()}},i.prototype.IO=function(t,e,n,i){t.sheetArea=e,t.row=n,t.tableColumnHeaderFilter=i},i.prototype.SO=function(t,e,n,i){if(e.tables&&1===t){var t=e.tables.find(n,i),n=e.frozenRowCount(),i=e.getViewportTopRow(0),e=e.getViewportTopRow(1);if(t&&t.jO&&(0===n&&t.Ky<e||0<n&&0<i&&t.Ky<i))return t}return null},i.prototype.TO=function(t,e,n,i){var r,o,a,s,u,c,f,l,h,e,d,v,g,e,r,d,v,r=t.row,o=t.col,a=t.x,s=t.y,u=t.width,c=t.height,f=this.Mf,l=f.Fi();return 1!==e||3!==i&&2!==i||(h=l.B1(e),e=f.frozenRowCount(),d=f.getRowCount(i)-f.frozenTrailingRowCount()-1,s<(v=h.y)&&e<=r&&r<=d&&(c-=v-s,s=v),v+(g=h.height)<s+c&&e<=r+t.rowCount-1&&r+t.rowCount-1<=d&&(c-=s+c-(v+g))),1!==n||3!==i&&1!==i||(h=l.L1(n),e=f.frozenColumnCount(),r=f.getColumnCount(i)-f.frozenTrailingColumnCount()-1,a<(d=h.x)&&e<=o&&o<=r&&(u-=d-a,a=d),d+(v=h.width)<a+u&&e<=o+t.colCount-1&&o+t.colCount-1<=r&&(u-=a+u-(d+v))),new q.Rect(a,s,u,c)},i.prototype._O=function(t,e,n,i){var r,o,a,s,u,c,f,a,l,h,d,v,g,m,p,S;if(0!==e.length)for(r=0,o=e.length;r<o;r++)s=(a=e[r]).x1,u=a.y1,c=a.x2,f=a.y2,a=a.horizontal,t.beginPath(),t.save(),t.lineWidth=n,t.strokeStyle=this.OO(t,a,s,u,c,f),t.fillStyle=this.RO(t,a,s,u,c,f),a?(d=-(h=1),v=-2,t.fillRect(s,u+(l=-3),c-s-1,i+2*n),f+=.5,t.moveTo(s+-1,(u+=.5)+-3),t.lineTo(c+-2,f+-3),t.moveTo(s+-1,u+1),t.lineTo(c+-2,f+1)):(S=-(m=1),t.fillRect(s+(g=-3),u+(p=0),i+2*n,f-u-1),c+=.5,t.moveTo((s+=.5)+-3,u+0),t.lineTo(c+-3,f+-1),t.moveTo(s+1,u+0),t.lineTo(c+1,f+-1)),t.stroke(),t.restore()},i.prototype.RO=function(t,e,n,i,r,o){var a,s,u,c,u,f,l,h,d,s,u=q.I.He(0,"gc-"+(e?v:g)+"-normal"),c=u&&u.backgroundColor,u=u&&u.backgroundImage;if(!e&&u&&-1!==u.indexOf("linear-gradient"))for(f=q.mt.ri(u),a=t.createLinearGradient(n,i,r,o),l=0,h=f.length;l<h;l++)d=f[l],a.addColorStop(d.point,d.color);else c&&(a=c);return a},i.prototype.OO=function(t,e,n,i,r,o){var t,a,n,t=t.createLinearGradient(n,i,r,o),a,n=q.I.He(0,"gc-"+(e?v:g)+"-normal");return e?(t.addColorStop(0,n.borderTopColor),t.addColorStop(1,n.borderBottomColor)):(t.addColorStop(0,n.borderLeftColor),t.addColorStop(1,n.borderRightColor)),t},i.prototype.que=function(t,e,n){for(var i,r,o,a,s,u,c,f,l,h,o,i=e.length,r=0;r<i;r++)a=(o=e[r]).x,s=o.y,u=o.width,c=o.height,f=o.style,l=o.columnHeaderFitMode,h=o.cornerY,o=o.cornerX,n.columnHeaderFitMode=l,n.cornerY=h,n.cornerX=o,(0,d.paintStyleDecorationOutSideIcons)(t,new q.Rect(a,s,u,c),f.decoration.icons,f.vAlign,n)},i.prototype.EO=function(t,e){var n,i,r,o,a,s,u,c,f,l,s,h,n,i,r=this.Mf.BO();if(e)for(o=e.length,a=0;a<o;a++)u=(s=e[a]).x,c=s.y,f=s.width,l=s.height,0===(h=(s=s.style).type)&&this.LO(t,u,c,f,l,s),1===h&&this.FO(t,u,c,f,l,s),2===h&&this.PO(t,u,c,f,l,s,r)},i.prototype.LO=function(t,e,n,i,r,o){var o,e,n,i,r,a,s,a,u,c,i,r,o=o.color,e=e-4,n=n-4,i=i+8,r=r+8,a=.5522848,s=i/2*a,a=r/2*a,u=e+i,c=n+r,i=e+i/2,r=n+r/2;t.save(),t.lineWidth=2,t.strokeStyle=o,t.beginPath(),t.moveTo(e,r),t.bezierCurveTo(e,r-a,i-s,n,i,n),t.bezierCurveTo(i+s,n,u,r-a,u,r),t.bezierCurveTo(u,r+a,i+s,c,i,c),t.bezierCurveTo(i-s,c,e,r+a,e,r),t.closePath(),t.stroke(),t.restore()},i.prototype.FO=function(t,e,n,i,r,o){var a,s,u,c,f,l,h,d,o;e-=.5,n-=.5,h=Math.min(i/2,r/2),d=o.color,o=o.position,t.save(),t.lineWidth=2,t.strokeStyle=d,t.beginPath(),t.rect(e,n,i,r),t.stroke(),t.restore(),t.save(),t.beginPath(),0===o?(u=a=e,c=(s=n)+h,f=a+h,l=s):2===o?(c=(s=n+r)-h,f=(u=a=e+i)-h,l=s):3===o?(u=a=e,c=(s=n+r)-h,f=a+h,l=s):1===o&&(c=(s=n)+h,f=(u=a=e+i)-h,l=s),t.moveTo(a,s),t.lineTo(u,c),t.lineTo(f,l),t.fillStyle=d,t.fill(),t.closePath(),t.restore()},i.prototype.PO=function(t,e,n,i,r,o,a){var s,u,c,f,l,h,d,v,g,o,m;if(e-=.5,n-=.5,u=(s=this.Mf).zoom(),h=l=15,d=o.image,v=o.position,g=3,o=o.color,t.save(),t.beginPath(),t.lineWidth=2,t.strokeStyle=o,t.rect(e,n,i,r),t.stroke(),d&&"none"!==d&&a){4===v?c=e-18:5===v&&(c=e+i+3);try{a.getState(d)?(m=a.getImage(d),f=n+r/2-7.5,t.drawImage(m,c,f,15,15)):a.addImage(d)}catch(t){}}else 4===v?c=e-18*u:5===v&&(c=e+i+3*u),t.translate(c,f=n+r/2-15*u/2),t.scale(.015*u,.015*u),t.beginPath(),t.moveTo(512,0),t.bezierCurveTo(229.248,0,0,229.184,0,512),t.bezierCurveTo(0,794.816,229.248,1024,512,1024),t.bezierCurveTo(794.752,1024,1024,794.752,1024,512),t.bezierCurveTo(1024,229.24800000000005,794.752,0,512,0),t.closePath(),t.moveTo(783.488,692.992),t.lineTo(692.9920000000001,783.4879999999999),t.lineTo(512,602.496),t.lineTo(331.00800000000004,783.4879999999999),t.lineTo(240.51200000000006,692.992),t.lineTo(421.504,512),t.lineTo(240.512,330.944),t.lineTo(331.008,240.44800000000004),t.lineTo(512,421.44),t.lineTo(692.992,240.384),t.lineTo(783.4879999999999,330.88),t.lineTo(602.496,512),t.lineTo(783.488,692.992),t.closePath(),t.fillStyle=o,t.fill(),t.stroke();t.restore()},i.prototype.eO=function(t,e,n,i,r,o,a,s,u){var c,f,l,h,d,u,F,_,v,A,L,D,o,g,m,p,S,w,b,C,y,M,k,T,x,G,j,B,O,V,Y,I,K,P,N,P,z,R,W,E,H,U,U,B,J,Z,Q,X;for(void 0===a&&(a=0),void 0===s&&(s=0),void 0===u&&(u=1),f=(c=this).Mf,l=3===n,h=(o||f).zoom()*u,d=et(c.Nn(),h),u=f.getDefaultStyle(n),F=f.$f(n),_=c.Mf.conditionalFormats,v=st(f),A=f.k9(2),L=f.N9(1),D=(o||f).BO(),t.save(),t.beginPath(),o=rt,u&&u.foreColor?(0,q.resetFillStyle)(t,f,u):t.fillStyle=o,tt(t,d.font),t.textAlign=l?"right":"center",p=e.length,R=[],E={sheet:f,row:-1,col:-1,fontInfo:it,lineHeight:-1,imageLoader:D,conditionalFormats:_,sheetArea:n,parentBackColor:v},H=[],g=0;g<p;g++)b=(S=e[g]).data,j=S.tableFilter,C=S.row,y=S.col,M=S.x,k=S.y,T=Mt(S),x=yt(S),1!==n||H[C]||(H[C]=f.getRowHeight(C,n)),G=S.style,I=S.cellOverflowLayout,B=S.columnHeaderFitMode,O=S.cornerX,V=S.cornerY,z=S.offsetX,Y=S.colStyle,N=G.font?nt(G,h):d,i&&typeof r===at&&1!==r&&(N=et(N.font,r)),G.font=N.font,0<T&&0<x&&(w=G.cellType||F,M--,k--,T++,x++,l?E.sparkline=S.sparkline:(P=i?0:c.GO(C,y,n),E.visualState=P),ot&&tt(t,G.font,!0),P=$(N.font),E.lineHeight=P,E.row=C+a,E.col=y+s,E.fontInfo=N,E.cellOverflowLayout=I,U=H.length&&x!==H[C]+1,E.needTopGridline=1===n&&C===L||0===n||U,E.needLeftGridline=2===n&&y===A||0===n||U,E.isPrinting=i,E.printZoomFactor=r,E.columnHeaderFitMode=B,E.cornerX=O,E.cornerY=V,E.offsetX=z,E.colStyle=Y,E.isFormula=!bt(f.t0(S.row,S.col,n)),w._e(t,b,M,k,T,x,G,E,j),I)&&!E.showBarIconOnly&&(U=new q.Rect(M,k,T,x),B=w.In?w.In(t,U,G,E):U,R.push({cellType:w,data:b,x:B.x,y:B.y,width:B.width,height:B.height,style:G,richText:K,options:{sheet:f,row:C,col:y,fontInfo:N,lineHeight:P,cellOverflowLayout:I,parentBackColor:v,imageLoader:D}}));if(0<(p=R.length))for(J=f.isEditing(),Z=f.ui,Q=f.ci,m=0;m<p;m++)b=(W=R[m]).data,E=W.options,J&&f.li&&E.row===Z&&E.col===Q||(X=wt(this.Mf))&&b&&"SparklineExValue"===b.typeName||c.UO(t,W);for(t.restore(),p=e.length,g=0;g<p;g++)S=e[g],vt.Worksheet.et(f,"paintCell",{ctx:t,sheetArea:n,cell:S,isPrinting:i})},i.prototype.UO=function(t,e){var n,i,r,o,a,s,u,e,c,c,c,n=e.cellType,i=e.data,r=e.x,o=e.y,a=Mt(e),s=yt(e),u=e.style,e=e.options,c=e.cellOverflowLayout;c&&n.pn&&(c=c.layout,c=new q.Rect(c?c.x:r,c?c.y:o,c?c.width:a,c?c.height:s),n.pn(t,c,e,i)),n.paintValue&&n.paintValue(t,i,r,o,a,s,u,e)},i.prototype.GO=function(t,e,n){var i,r,i=this.Mf,r=0;return J(i)&&(3===n||bt(n)?!i.isEditing()&&i.HO(t,e)?r=3:i.ni(t,e,n)&&(r=2):(i.ni(t,e,n)&&(r=1,i.ei(t,e,n))&&(r=2),i.zO(t,e,n)&&(r=4))),r},i.prototype.kO=function(m,p,S,w,b){for(var C,y,t,M,k,T,x,G,B,I,P,N,R,E,H,U,F,_,A,L,D,j,e,n,i,C=this.Mf,y=C.Jt,t=S.length,G=[],D={},j=[],e=function(t){var e,n,i,r,o,a,s,u,c,f,l,h,d,v,g;if(M=S[t],x=M.row,B=M.col,I=M.y,N=yt(M),F=p.b7(x,m,b),_=F.headingOverflowLayouts,A=F.trailingOverflowLayouts,!D[x]){for(e={},n=0,i=F;n<i.length;n++)r=i[n],e[r.column]=!1;_&&_.forEach(function(t){e[t.column]=!1}),A&&A.forEach(function(t){e[t.column]=!1}),D[x]=e}for(o=D[x],L=F.find(B),a=0;a<L.length;a++)if(s=L[a]){if(u=C.getCellRect(x,s.column,it,it,!0),!o[s.column]){if(c=s.column,(T=y.o2e(x,c)).showEllipsis)continue;k=y.$t(x,c,3,1,T),P=s.columnWidth,R=s.backgroundWidth,E=s.backgroundLeftWidth<0?u.x:s.backgroundRightWidth<0?u.x+Mt(u)-R:4===T.hAlign?u.x+s.expandedWidth/2-s.backgroundLeftWidth:u.x+Mt(u)/2-s.backgroundLeftWidth,U={data:k,row:x,col:c,x:u.x,y:I,width:P,height:N,cellOverflowLayout:s,style:T},G.push(U),s.layout=new q.Rect(E,I,R,N),T=y.o2e(x,c),w.EN(x,c,s,T,u.x,I,P,N),o[s.column]=!0}s.column===B&&o[s.column]&&j.push(t)}if(_)for(f=0;f<_.length;f++)(l=_[f])&&!o[l.column]&&l.contains(M.col)&&(B=l.column,(T=y.o2e(x,B)).showEllipsis||(k=y.$t(x,B,3,1,T),P=l.columnWidth,R=l.backgroundWidth,h=C.getCellRect(x,l.endColumn,it,it,!0),E=h.x+Mt(h)-R,U={data:k,row:x,col:B,x:E,y:I,width:P,height:N,style:T,cellOverflowLayout:l},G.push(U),l.layout=new q.Rect(E,I,R,N),o[l.column]=!0,w.EN(x,B,l,T,E,I,P,N)));if(A)for(d=0;d<A.length;d++)(v=A[d])&&!o[v.column]&&v.contains(M.col)&&(B=v.column,(T=y.o2e(x,B)).showEllipsis||(k=y.$t(x,B,3,1,T),P=v.columnWidth,R=v.backgroundWidth,g=C.getCellRect(x,v.startColumn,it,it,!0),E=g.x,H=g.x+R-P,U={data:k,row:x,col:B,x:H,y:I,width:P,height:N,style:T,cellOverflowLayout:v},G.push(U),v.layout=new q.Rect(E,I,R,N),w.EN(x,B,v,T,E,I,P,N),o[v.column]=!0))},n=0;n<t;n++)e(n);if(0<j.length)for(i=j.length-1;0<=i;i--)S.splice(j[i],1);function r(t,e){var n,i,t,e,n=t.row,i=e.row,t=t.col,e=e.col;return n!==i?n-i:t!==e?t-e:void 0}return 0<G.length&&G.sort(r),G},i.prototype.DO=function(t,e,n,i,r,o,a,s,u,c,f){for(var l,h,d,v,g,m,p,S,w,b,C,y,M,k,k,l=this,h=[],d=l.VO(t[0].col,t[0].x),v=[],g=0;g<d.length;g++)v.push(d[g]);for(g=0;g<e.length;g++)v.push(e[g]);for(n.Vx=v,m=[],p=n.Vx.length,w=0;w<p;w++)0<(S=n.Vx[w]).width&&m.push(S.col);if(m.push(m[m.length-1]+1),n.CN=m,0<(h=l.YO(d,t)).length){for(b=i.x,C=i.x+i.width,g=h.length-1;0<=g;g--)(y=h[g])&&((M=y.overflowLayout)&&((k=M.x)<b&&(b=k),C<(k=k+M.width))&&(C=k),t.unshift(y),y.printZoomFactor=f,n.PN(y.row,y.col,y.x,y.y,y.width,y.height,y.style,T,y.row===a&&u,y.col===s&&c,y));r||(i.width=C-b,o&&i&&o.getIntersectRect(i))}},i.prototype.VO=function(t,e){for(var n,i,r,o,a,s,u,c,f,l,h,d,v,g,m,p,S,w,b,n=new gt.h9,i,r=this.Mf,o=r.Jt,a=r.Ut,s=t,u=[],c=[],f=[],l=[],d=s,g=e,m=r.getColumnCount()-r.frozenTrailingColumnCount(),p=r.frozenColumnCount()-1,S=s-1;p<S;S--)if(u[S]=h=o.Kt(S),h){if(c[S]=a.getColumnHeaderFitMode(!1,pt.SheetArea.colHeader,S),f[S]=a.eE(-1,S,-1,1,pt.SheetArea.colHeader),l[S]=r.ZO(S,g,m,d,u,c,f,l),c[S]===pt.ColumnHeaderFitMode.normal)break;d=S,g-=h}for(w=d;w<s;w++)u[w]||(u[w]=o.Kt(w)),bt(c[w])&&(c[w]=a.getColumnHeaderFitMode(!1,pt.SheetArea.colHeader,w)),v=u[w],b=r.ZO(w,g,m,d,u,c,f,l),n.push(l[w]=b),g+=v;return n},i.prototype.YO=function(r,o){for(var t,a,s,u,n,c,f,l,h,d,v,g,m,p,S,v,e,w,i,b,t,a=this.Mf,s=a.Ut,u=a.Jt,n=a._y(1,1),f=[],e=n.length,w=r.length,i=function(i){var t,e;for(c=n[i],t=function(t){var e,n,e,t,e,e=r[t];if(e){if(l=c.row,h=e.col,p=e.x,S=-1===e.y?c.y:Ct(e.y*c.height+c.y),g=Mt(e),m=-1===yt(e)?yt(c):c.height+c.y-S,v=u.$t(l,h,1,1,d),d=u.qt(l,h,1),v={data:v,row:l,col:h,x:p,y:S,width:g,height:m,style:d,overflowLayout:e,columnHeaderFitMode:s.getColumnHeaderFitMode(!1,pt.SheetArea.colHeader,h),SheetArea:1},d.showEllipsis&&v.columnHeaderFitMode!==pt.ColumnHeaderFitMode.stack)return"continue";v.columnHeaderFitMode===pt.ColumnHeaderFitMode.stack&&(t===w-1?(n=o[0].col,e=o.filter(function(t){return t.row===i&&t.col===n})[0],v.cornerX=e&&e.x,v.cornerY=e&&e.y):(t=a.O5(h,1,!0))&&(e=r.findCol(t))&&-1!==e.y&&(v.cornerX=e.x,v.cornerY=Ct(e.y*c.height)+c.y)),f.push(v)}},e=0;e<w;e++)t(e)},b=0;b<e;b++)i(b);return f},S=i,t.g7=S,s=".cutCopyIndicator",k=q.Events.CellChanged,x=q.Events.ClipboardChanged,G=q.Events.ValueChanged,N=q.Events.ColumnChanged,H=q.Events.RowChanged,U=q.Events.RangeChanged,F=q.Events.ClipboardPasting,_=q.Events.ClipboardPasted,A=q.Events.DragMerging,L=q.Events.FloatingElementSelected,r.prototype._T=function(t){var e=this;if(0===arguments.length)return e.d7;e.d7=t},r.prototype.WO=function(t,e){var n,i,n=this;if(0===arguments.length)return n.h7;(n.h7!==t||t||e)&&(n.h7=t,i=n.Mf)&&(i.zw(),bt(n.QO)||clearTimeout(n.QO),n.QO=window.setTimeout(function(){var t;n.h7||(t=i.ST())&&t.c5(e),n.QO=it}))},r.prototype.v7=function(){var c,n,f,i,r;function o(){c.h7&&c.WO(!1)}function a(t,e,n){t||e===i||e===n||e===r||o()}n=(c=this).Mf,f=!1,i="resizable",r="isVisible",n.D3(x+s,function(){c.WO(!0)}),n.D3(G+s,o),n.D3(k+s,function(t,e){e.isUndo||"tag"===e.propertyName||e.KO||o()}),n.D3(N+s,function(t,e){a(e.isUndo,e.propertyName,"width")}),n.D3(H+s,function(t,e){a(e.isUndo,e.propertyName,"height")}),n.D3(U+s,function(t,e){e.isUndo||6===e.action||3===e.action||o()}),n.D3(F+s,function(){f=c.WO()}),n.D3(_+s,function(t,e){var n,e,i,r,o,a,s,u,n=e.cellRange,e=e.sheet.ST(),i=e._S,r=f;if(n&&i&&e.DS){if(c._T()){for(a=0,s=i;a<s.length;a++)if((u=s[a]).intersect(n.row,n.col,n.rowCount,n.colCount)&&!u.equals(n)){r=!1;break}}else o=!(r=!1);c.WO(r,o)}}),n.D3(A+s,o),n.D3(L+s,function(t,e){"worksheet"!==e.type&&(n.endEdit(),q.hi.N1(n))})},r.prototype.oO=function(t,e,n,i){var r,r,o,a,a,s,u,c,f,a,c,l,h,d,r=this;if(r.h7&&(o=(r=r.Mf).Dn,a=(a=r.parent)?a.options:{},u=(s=r.ST())._S,c=a.cutCopyIndicatorVisible,bt(c)&&(c=!0),f=q.Pf.vl(r,a.cutCopyIndicatorBorderColor||"blue"),c)&&s.DS===r&&u&&(a=o.uO(n,i,it),c=o.fO(n,i,u,e))&&a){for(t.save(),t.rect(a.x,a.y,Mt(a),yt(a)),t.clip(),l=0,h=c;l<h.length;l++)d=h[l],o.wO(t,d,f);t.beginPath(),t.restore()}},r.prototype.JO=function(){this.WO(!1)},r.prototype.XO=function(){this.WO(!1)},r.prototype.qO=function(){this.WO(!1)},r.prototype.$O=function(){this.WO(!1)},r.prototype.lI=function(){this.WO(!1)},r.prototype.L0=function(){var t=this.Mf;t._3(k+s),t._3(x+s),t._3(G+s),t._3(N+s),t._3(H+s),t._3(U+s),t._3(F+s),t._3(_+s),t._3(A+s),t._3(L+s)},D=r,t.m7=D,vt.Worksheet.ch("render",{init:function(){var t=this;t.Dn=new S(t),t.lA&&t.lA.L0(),t.lA=new D(t)},dispose:function(t){var e,t,e=this;e.Dn&&e.Dn.TCe(),!1!==t.clearCache&&(e.Dn&&(e.Dn.Mf=it,e.Dn=it),t=e.lA)&&(t.L0(),e.lA=it)},onLayoutChanged:function(t){var e,n,t,e,n=this.lA;n&&("addRows"===(t=t.changeType)?n.JO():"deleteRows"===t?n.XO():"addColumns"===t?n.qO():"deleteColumns"===t&&n.$O())}})},"./dist/core/worksheet/worksheet-selection.js":function(t,e,n){"use strict";var i,b,e,r,o,d,p,C,y,M,a;function k(t,e){return t.getColumnCount(e)}function T(t,e){return t.getRowCount(e)}function x(t){return t.rowCount}function G(t){return t.colCount}function f(t,e,n){for(var i,r,o,a,i=[],r=t.length,a=0;a<r;a++)o=t[a],a===e?i=i.concat(n):i.push(o);return i}function B(t,e,n){for(var i=n-1;0<=i;i--)if(t.getColumnVisible(e+i)&&0<t.getColumnWidth(e+i))return e+i;return e+n-1}function I(t,e,n){for(var i=n-1;0<=i;i--)if(t.getRowVisible(e+i)&&0<t.getRowHeight(e+i))return e+i;return e+n-1}Object.defineProperty(e,"__esModule",{value:!0}),i=n("./dist/core/worksheet/worksheet.js"),b=n("./dist/core/util/common.js"),e=n("Common"),r=n("./dist/core/util/domUtil.js"),o=n("./dist/core/core.enum.js"),d=e.Common.lt.ht,p=e.Common.Uf.tR,C=null,y=Math.max,M=Math.min,a="gc-selection",r.GC$.extend(i.Worksheet.prototype,{addSelection:function(t,e,n,i){this.n4(t,e,n,i,!1)},n4:function(t,e,n,i,r){var o,a,s,u,c,f,f,o=this,a=t,s=e,u=n,c=i;-1!==a&&-1!==s&&(f=o.Ut.getSpans())&&0<p(f)&&(a=(f=o.nR(f,(0,b.Ec)(t,e,n,i))).row,s=f.col,u=x(f),c=G(f)),o.Ut.do("addSelection",a,s,u,c,r),o.zw()},setSelection:function(t,e,n,i){this.eR(t,e,n,i,2)},eR:function(t,e,n,i,r){var o,a,s,s,a,r,o=this,a=T(o),s=k(o);s<=e&&(e=s-1),s=y(0,t=a<=t?a-1:t),a=y(0,e),o.IA(),r=2===r?b.hi.A1(o):1===r,o.O6(s,a,o.C0(s),o.S0(a),!r),o.n4(t,e,n,i)},getSelections:function(){return this.Ut.getSelections()},clearSelection:function(t){var e,t;void 0===t&&(t=1),(e=this).IA(),t=2===t?b.hi.A1(e):1===t,e.O6(0,0,e.C0(0),e.S0(0),!t),i.Worksheet.et(e,"clearSelection"),e.zw()},IA:function(t){this.Ut.do("clearSelection",t)},JA:function(t,e,n){var i,r,o,a,o,s,o,u,c,f,l,h,d,v,i=this,r,o=i.options.protectionOptions,a=!1!==o.allowSelectLockedCells,o=!1!==o.allowSelectUnlockedCells;if(!i.isActualProtected()||a&&o)return!0;if(!a&&!o)return!1;if(o=e<0,u=t<0,a===(s=n?n.locked:i.l0(t,e,"locked"))&&(u||o)){for(l=(t=u?0:t)+(c=u?T(i):1)-1,h=(e=o?0:e)+(f=o?k(i):1)-1,v=d=void 0,d=t;d<=l;d++)for(v=e;v<=h;v++)if((n=i.getCompositeStyle(d,v))&&a!==n.locked)return!1;if(u)for(d=t;d<=l;d++)if((n=i.getCompositeStyle(d,-1))&&a!==n.locked)return!1;if(o)for(v=e;v<=h;v++)if((n=i.getCompositeStyle(-1,v))&&a!==n.locked)return!1}return a===s},iR:function(t,e,n,i){var r,o,a,r=this;for(e=e<0?0:e,o=t=t<0?0:t;o<t+n;o++)for(a=e;a<e+i;a++)if(r.l0(o,a,"locked"))return!0},rR:function(){for(var t,e,t=this.getSelections(),e=0;e<t.length;e++)if(-1!==t[e].col)return!1;return!0},oR:function(){for(var t,e,t=this.getSelections(),e=0;e<t.length;e++)if(-1!==t[e].row)return!1;return!0},selectionPolicy:function(t){var e=this,n=e.Ut;return 0===arguments.length?n.getSelectionPolicy():(n.do("setSelectionPolicy",t),e)},selectionUnit:function(t){var e=this,n=e.Ut;return 0===arguments.length?n.getSelectionUnit():(n.do("setSelectionUnit",t),e)},getSelectionBackColor:function(){return this.options.selectionBackColor||b.I.fl(a).backgroundColor},getSelectionBorderColor:function(){return this.options.selectionBorderColor||b.I.fl(a).borderTopColor},aR:function(t){if(!t)return this.options.aR;this.options.aR=t},e4:function(){var t,e,e,n,t=this,e=t.Ut.getSelections();0<p(e)&&(e={selections:e},0!==(n=t.Ut.getActiveSelectedRangeIndex())&&(e.activeSelectedRangeIndex=n),t.uR=e,t.IA(),t.Dn.E1())},cR:function(){var t=this,e=t.uR,n=e&&e.selections;n&&(t.Ut.do("setSelections",n),t.Ut.do("setActiveSelectedRangeIndex",e.activeSelectedRangeIndex||0))},pA:function(t,e,n,i){var r,o,a,i,a,t,r=this,a=r.tables,o=(n||i)&&(o=a&&a.fR(t,e))||r.lR(t,e,n,r.hR||0);o&&(i=o.row,a=o.col,t=o.leadingCellCol,r.dR(i,a))&&(r.qA=i,r.hR=t,r.XA(i,a))},lR:function(t,e,n,i){var r,o,a,s,u,c,r=this,o=T(r),a=k(r),s=t;return 0===s&&!n||0===o||0===a||(c=r.vR(s,i),n||r.mR(c),s=c.r,u=c.c,s<0&&n&&(i=u=(u=r.r6(u))<0||d(u)?r.r6(a):u,s=(c=r.vR(o,u)).r,(u=c.c)===e)&&s<=t)?C:{row:s,col:u,leadingCellCol:i}},bA:function(t,e,n){var i,n,t,e,n,i=this,n=i.gR(t,e,n,i.hR||0);!n||n.row===t&&n.col===e||(t=n.row,e=n.col,n=n.leadingCellCol,i.dR(t,e)&&(i.qA=t,i.hR=n,i.XA(t,e)))},gR:function(t,e,n,i){var r,o,a,s,u,c,r=this,o=T(r),a=k(r),s=t;if((s!==o-1||n)&&0!==o&&0!==a&&(c=r.pR(s,i),n||r.mR(c),s=c.r,u=c.c,!(s===o&&n&&(i=u=a<=(u=r.O5(u))||d(u)?r.O5(-1):u,s=(c=r.pR(-1,u)).r,(u=c.c)===e)&&t<=s)))return{row:s,col:u,leadingCellCol:i}},wA:function(){var t,e,n,e,t=this,e=t.bR();e&&(n=e.row,e=e.col,t.qA=n,t.hR=e,t.XA(n,e))},bR:function(){var t,e,n,i,r,o,a,o,s,t=this,e=t.P6(),n=t.G6(),i=n;if(e||i){if(a=!1!==(o=(r=t.options).protectionOptions).allowSelectLockedCells,o=!1!==o.allowSelectUnlockedCells,!t.isActualProtected()||a&&o)return{row:e,col:i};if(a||o)for(;e!==C&&0<=e;e=t.nI(e))for(i=n;i!==C&&0<=i;i=t.r6(i))if(a===(s=t.l0(e,i,"locked")))return{row:e,col:i}}return C},yA:function(){var t,e,n,e,t=this,e=t.yR();e&&(n=e.row,e=e.col,t.qA=n,t.hR=e,t.XA(n,e))},yR:function(){var t,e,n,i,r,o,a,s,u,s,c,t=this,e=t.j5(t.frozenRowCount()-1),n=t.O5(t.frozenColumnCount()-1),i=n,r=t.P6(),o=t.G6();if(e!==C&&i!==C){if(u=!1!==(s=(a=t.options).protectionOptions).allowSelectLockedCells,s=!1!==s.allowSelectUnlockedCells,!t.isActualProtected()||u&&s)return{row:e,col:i};if(u||s)for(;e!==C&&e<=r;e=t.j5(e))for(i=n;i!==C&&i<=o;i=t.O5(i))if(u===(c=t.l0(e,i,"locked")))return{row:e,col:i}}return C},mA:function(t,e,n){var i,r,o,o,t,e,i=this,o=i.tables,r=n&&(r=o&&o.wR(t,e))||i.sI(t,e,n,i.qA||0);r&&(o=r.row,t=r.col,e=r.leadingCellRow,i.dR(o,t))&&(i.qA=e,i.hR=t,i.XA(o,t))},sI:function(t,e,n,i){var r,o,a,s,u,c,f,r=this,o=T(r),a=k(r),u=e;if(0===u&&!n||0===o||0===a)return C;for(c=r.MR(i,u),f=i,n||r.mR(c),s=c.r,u=c.c;u<0&&n;){if(i=s=(s=r.nI(s,3,!0))<0||d(s)?r.nI(o,3,!0):s,s=(c=r.MR(i,a)).r,u=c.c,s===t&&u<e)return C;if(s===t&&u===e){if(i===f)return C;s=(c=r.MR(i,u)).r,u=c.c}}return{row:s,col:u,leadingCellRow:i}},mR:function(t){var e,n,n,e=this,n=!1;t.r<0?t.r=e.N9():t.r>=T(e)&&(t.r=e.P6(),n=!0),t.c<0?t.c=e.k9():t.c>=k(e)&&(t.c=e.G6(),n=!0),n&&((n=e.Ut.getSpan(t.r,t.c)).row!==t.r&&(t.r=n.row),n.col!==t.c)&&(t.c=n.col)},CA:function(t,e){for(var n,i,r,o,a,s,u,c,f,l,h,h,n=this,i=n.Ut,r=i.getActiveSelectedRangeIndex(),o=-1,a=n.JS(n.U5()),s=a.row,u=a.col,c=a.col+G(a)-1,f=t,l=e;f=(h=n.CR(f,l)).r,!(u<=(l=h.c));){if(o===r&&f===t&&l<=e)return;l=s<=--f?c+1:(h=n.JS(n.U5(3)),o=i.getActiveSelectedRangeIndex(),s=h.row,u=h.col,c=h.col+G(h)-1,f=h.row+x(h)-1,h.col+G(h))}0<=f&&(n.XA(f,l),n.qA=f,n.hR=l)},SA:function(t,e){for(var n,i,r,o,a,s,u,c,f,l,h,h,n=this,i=n.Ut,r=i.getActiveSelectedRangeIndex(),o=-1,a=n.JS(n.U5()),s=a.col,u=a.row+x(a)-1,c=a.col+G(a)-1,f=t,l=e;f=(h=n.TR(f,l)).r,!((l=h.c)<=c);){if(o===r&&f===t&&e<=l)return;l=++f<=u?s-1:(h=n.JS(n.U5(4)),o=i.getActiveSelectedRangeIndex(),s=h.col,u=h.row+x(h)-1,c=h.col+G(h)-1,f=h.row,h.col-1)}0<=f&&(n.XA(f,l),n.qA=f,n.hR=l)},TA:function(t,e){for(var n,i,r,o,a,s,u,c,f,l,h,h,n=this,i=n.Ut,r=i.getActiveSelectedRangeIndex(),o=-1,a=n.JS(n.U5()),s=a.row,u=a.row+x(a)-1,c=a.col,f=t,l=e;f=(h=n.AR(f,l)).r,l=h.c,!(s<=f);){if(o===r&&l===e&&f<=t)return;c<=--l?f=u+1:(h=n.JS(n.U5(1)),o=i.getActiveSelectedRangeIndex(),s=h.row,u=h.row+x(h)-1,c=h.col,f=h.row+x(h),l=h.col+G(h)-1)}0<=l&&(n.XA(f,l),n.qA=f,n.hR=l)},AA:function(t,e){for(var n,i,r,o,a,s,u,c,f,l,h,h,n=this,i=n.Ut,r=i.getActiveSelectedRangeIndex(),o=-1,a=n.JS(n.U5()),s=a.row,u=a.row+x(a)-1,c=a.col+G(a)-1,f=t,l=e;f=(h=n.IR(f,l)).r,l=h.c,!(f<=u);){if(o===r&&l===e&&t<=f)return;++l<=c?f=s-1:(h=n.JS(n.U5(2)),o=i.getActiveSelectedRangeIndex(),u=h.row+x(h)-1,c=h.col+G(h)-1,f=h.row-1,l=h.col)}0<=l&&(n.XA(f,l),n.qA=f,n.hR=l)},gA:function(t,e,n){var i,r,o,o,n,t,i=this,o=i.tables,r=n&&(r=o&&o.xR(t,e))||i.uI(t,e,n,i.qA||0);!r||r.row===t&&r.col===e||(o=r.row,n=r.col,t=r.leadingCellRow,i.dR(o,n)&&(i.qA=t,i.hR=n,i.XA(o,n)))},uI:function(t,e,n,i){var r,o,a,s,u,c,f,r=this,o=T(r),a=k(r),u=e;if(u===a-1&&!n||0===o||0===a)return C;for(c=r.NR(i,u),f=i,n||r.mR(c),s=c.r,u=c.c;u===a&&n;){if(t===o-1&&t===s&&(!r.getRowVisible(s,3)||r.Gt(s,3)<=0))return C;if(i=s=o<=(s=r.j5(s,3,!0))||d(s)?r.j5(-1,3,!0):s,s=(c=r.NR(i,-1)).r,u=c.c,s===t&&e<u)return C;if(s===t&&u===e){if(i===f)return C;s=(c=r.NR(i,u)).r,u=c.c}}return{row:s,col:u,leadingCellRow:i}},MR:function(t,e){for(var n,i,r,o,o,n=this,r=e;0<=r&&(i=t,!(--r<0));)if(n.getColumnVisible(r)&&((o=n.Ut.getSpans((0,b.Ec)(i,r,1,1)))&&0<p(o)&&r>=(o=o[0]).col&&(r=o.col,i=o.row),n.dR(i,r)))return{r:i,c:r};return{r:i,c:r}},CR:function(t,e){for(var n,i,r,n=this;0<=e&&!(--e<0);){if(i=n.Ut.findSpan(t,e)){if(!((r=n.U5()).row<=i.row&&i.row+x(i)<=r.row+x(r)&&r.col<=i.col&&i.col+G(i)<=r.col+G(r)))continue;if(i.row!==t||i.col!==e)continue;e>=i.col&&(e=i.col,t=i.row)}if(n.dR(t,e))return{r:t,c:e}}return{r:t,c:e}},NR:function(t,e){for(var n,i,r,o,a,a,s,n=this,i=k(n),o=e;o<i&&!(i<=(o=(a=n.Ut.getSpan(r=t,o)).col+G(a)));)if(n.getColumnVisible(o)&&((a=n.Ut.getSpans((0,b.Ec)(r,o,1,1)))&&0<p(a)&&(o>(s=a[0]).col?o=y(o,s.col+G(s)):r=s.row),n.dR(r,o)))return{r:r,c:o};return{r:r,c:o}},TR:function(t,e){for(var n,i,r,o,o,a,n=this,i=n.Ut,r=k(n);e<r&&!(r<=(e=(o=i.getSpan(t,e)).col+G(o)));){if(o=i.findSpan(t,e)){if(!((a=n.U5()).row<=o.row&&o.row+x(o)<=a.row+x(a)&&a.col<=o.col&&o.col+G(o)<=a.col+G(a)))continue;if(o.row!==t||o.col!==e)continue;e>o.col?e=y(e,o.col+G(o)):t=o.row}if(n.dR(t,e))return{r:t,c:e}}return{r:t,c:e}},dR:function(t,e){var n,i,r,o,n=this;return!!n.JA(t,e)&&(i=0<=t&&t<T(n)&&0<=e&&e<k(n)&&n.getRowVisible(t)&&n.getColumnVisible(e)&&0<n.Gt(t)&&0<n.nn(e),r=!!n.F5,!0!==i||!0!=r||!1!==(o=n.l0(t,e,"tabStop")))&&i},vR:function(t,e){for(var n,i,i,n=this;0<=t&&!(--t<0);)if(n.getRowVisible(t)&&((i=n.Ut.getSpans((0,b.Ec)(t,e,1,1)))&&0<p(i)&&t>=(i=i[0]).row&&(t=i.row,e=i.col),n.dR(t,e)))return{r:t,c:e};return{r:t,c:e}},AR:function(t,e){for(var n,i,r,n=this;0<=t&&!(--t<0);){if(i=n.Ut.findSpan(t,e)){if(!((r=n.U5()).row<=i.row&&i.row+x(i)<=r.row+x(r)&&r.col<=i.col&&i.col+G(i)<=r.col+G(r)))continue;if(i.row!==t||i.col!==e)continue;t>=i.row&&(e=i.col,t=i.row)}if(n.dR(t,e))return{r:t,c:e}}return{r:t,c:e}},pR:function(t,e){for(var n,i,r,r,o,n=this,i=T(n);t<i&&!(i<=(t=(r=n.Ut.getSpan(t,e)).row+x(r)));)if(r=n.Ut.getSpans((0,b.Ec)(t,e,1,1)),n.getRowVisible(t)&&(r&&0<p(r)&&(t>(o=r[0]).row?t=y(t,o.row+x(o)):e=o.col),n.dR(t,e)))return{r:t,c:e};return{r:t,c:e}},IR:function(t,e){for(var n,i,r,o,o,a,n=this,i=n.Ut,r=T(n);t<r&&!(r<=(t=(o=i.getSpan(t,e)).row+x(o)));){if(o=i.findSpan(t,e)){if(!((a=n.U5()).row<=o.row&&o.row+x(o)<=a.row+x(a)&&a.col<=o.col&&o.col+G(o)<=a.col+G(a)))continue;if(o.col!==e||o.row!==t)continue;t>o.row?t=y(t,o.row+x(o)):e=o.col}if(n.dR(t,e))return{r:t,c:e}}return{r:t,c:e}},D9:function(t,e,n,i,r,o){var a=this;a.Ut.do("addSelection",t,e,n,i,C,o),r&&a.My<=0&&a.Dn.E1(C,C,C,C,o)},L9:function(t,e,n){var i,t,e,r,o,t,a,s,i=this,t=i.xA(t,e,i.ui,i.ci),e=t.row,r=t.col,o=x(t),t=G(t),a=i.selectionPolicy(),s=i.selectionUnit();0!==a&&(1===a&&i.Ut.do("clearSelection"),1===s?t=r=-1:2===s&&(o=e=-1),i.kA(e,r,o,t,n))},xA:function(t,e,n,i,r,o){var a,s,n,i,s,t,a=this;return d(n)&&(n=a.ui),d(i)&&(i=a.ci),n=(s=a.Ut).getSpan(n,i,o),i=s.getSpan(t,e,o),r&&n.equals(i)?new b.Range(n.row,n.col,1,1):(s=n.union(i),(t=a.Ut.getSpans(C,o))&&0<p(t)?a.kR(t,s):s)},kA:function(t,e,n,i,r){var o,a,s,u,c,f,c,f,a,o=this,a=o.Ut,s=o.U5();0<p(a.getSelections())?(c=(0,b.Ec)(t,e,n,i),o.O9?(u=o.z9,o.z9=c):((f=a.getSelections())[a.getActiveSelectedRangeIndex()]=c,a.do("setSelections",f))):o.O9||a.do("addSelection",t,e,n,i),r&&o.My<=0&&(c=o.U5(),!o.O9&&c.row===s.row&&c.col===s.col&&x(c)===x(s)&&G(c)===G(s)||(f=o.Dn,o.O9&&(a=o.z9,u&&u.containsRange(a)?a=u:u&&(a=u.union(a)),s=(a=a.union((0,b.Ec)(o.getActiveRowIndex(),o.getActiveColumnIndex(),1,1))).union(s),c=a.union(c)),s.containsRange(c)?f.E1(s):c.containsRange(s)?f.E1(c):(f.E1(s),f.E1(c),f.E1(o.z9))))},DR:function(t){var e=[];return e=t?this.Ut.getSpans(t):e},_R:function(t,e){var n=t.row,i=t.col,r=t.rowCount,o=t.colCount,a=e.row,s=e.col,u=e.rowCount,c=e.colCount,r=n+r,o=i+o,f=a+u,l=s+c,h=!1,d=!1,v;return t.intersect(a,s,u,c)&&(d=!(h=v=a<n||s<i||r<f||o<l)),e.ER=e.ER||d,h},jR:function(t,e,n,i){for(var r,o,a,r=[],o=[],a=0;a<t.length;a++)o=this.RR(t[a],e,n,i),r=r.concat(o);return r},RR:function(t,e,n,i){var r,o,a,s,a,u,c,r=[],o=e.length;for(r.push(t),u=o-1;0<=u;u--)for(s=e[u],c=0;c<r.length;)a=r[c],this._R(a,s)?(r=f(r,c,a=this.BR(a,s,n,i)),c+=a.length):c++;return r},LR:function(t,e){var n=e.row,i=e.col,r=e.rowCount,e=e.colCount;return t.intersect(n,i,r,e)},FR:function(t,e){for(var n,i,r,o,n,i=[],o=t.length-1;0<=o;o--)r=t[o],this.LR(r,e)||i.push(r);return i},PR:function(t){var e=!1,n=this.Ut.getSpans(t);return e=1===n.length?t.equals(n[0]):e},GR:function(t,e){for(var n,t,i,r,o,a,s,u,n=t,t=e.length,i=n.length,r=!0,s=t-1;0<=s;s--){for(a=e[s],u=i-1;0<=u;u--)if((o=n[u]).equals(a)){r=!1;break}r&&n.push(a)}return n},UR:function(t){for(var e,n,i,r,o,a,e,n=[],r=t.length-1;0<=r;r--)(i=t[r]).ER&&(delete i.ER,n.push(r));for(o=n.length,a=0;a<o;a++)t.splice(n[a],1)},BR:function(t,e,n,i){var r,e,n,i,o,a,s,u,c,f,o,l,h,e;return e=this.JS(e),r=[],e=t.getIntersect(e,n,i),t&&e?(n=0<=t.row?t.row:0,i=0<=t.col?t.col:0,o=t.rowCount,a=t.colCount,s=e.row,u=e.col,c=e.rowCount,l=i+a,e=u+(f=e.colCount),0<(o=n+o)-(h=s+c)&&r.push((0,b.Ec)(h,i,o-h,a)),0<l-e&&r.push((0,b.Ec)(s,e,c,l-e)),0<u-i&&r.push((0,b.Ec)(s,i,c,u-i)),0<s-n&&r.push((0,b.Ec)(n,i,s-n,a))):r.push(t),r},tD:function(t,e){var n,i,r,o,a,s,u,c,f,l,h,d,v,g,m,n=[],i=this.getRowCount(3),r=this.getColumnCount(3),o=this.deselectIgnoreSpan();if(t&&0<t.length){for(u=[],c=[],h=l=void 0,a=!(f=[]),d=(s=t.length)-1;0<=d;d--)l=t[d],o||!this.PR(l)||this.LR(l,e)?(u=this.BR(l,e,i,r),o||0<(h=this.DR(l)).length&&(u=this.jR(u,h,i,r),f=this.FR(h,e),c=this.GR(c,f),this.UR(c)),v=p(u),!a&&0<v&&(this.setSelection(u[v-1].row,u[v-1].col,1,1),a=!0),n=u.concat(n)):c=this.GR(c,[l]);o||(n=c.concat(n))}for(this.IA(),g=n.length,this.suspendPaint(),m=0;m<g;m++)this.n4(n[m].row,n[m].col,n[m].rowCount,n[m].colCount);a||this.setActiveCell(this.ui,this.ci),this.resumePaint()},HA:function(t,e){var n,i,r,r,t,e,o,r,a,s,a,n=this,i=n.Ut.getSelections();p(i)<=0||(r=n.U5(),(r=n.HR(r,t,e))&&(t=r.row,e=r.col,o=x(r),r=G(r),a=n.selectionPolicy(),s=n.selectionUnit(),0!==a)&&(1===a&&n.Ut.do("clearSelection"),1===s?r=e=-1:2===s&&(o=t=-1),n.kA(t,e,o,r,!0),a=n.Ut.getSelections(),n.rt._A(i,a))&&(n.EA(i,a),n.jA(i)))},HR:function(t,e,n,i,r){var o,a,s,o=this,a=o.JS(t),s=C;return 37===e?s=n?o.zR(a,!1,i,r):o.VR(a,i,r):39===e?s=n?o.YR(a,!1,i,r):o.ZR(a,i,r):38===e?s=n?o.WR(a,!1,i,r):o.QR(a,i,r):40===e?s=n?o.KR(a,!1,i,r):o.JR(a,i,r):36===e?s=n?o.XR(a,i,r):o.qR(a,i,r):35===e?s=n?o.$R(a,i,r):o.tB(a,i,r):33===e?s=o.nB(a,i,r):34===e&&(s=o.eB(a,i,r)),s&&(t.row<0&&(s.row=-1,s.rowCount=o.getRowCount()),t.col<0)&&(s.col=-1,s.colCount=o.getColumnCount()),s},VR:function(t,e,n){for(var i,r,o,a,s,u,c,f,l,h,d,v,l,g,m,p,S,w,i=this,r=t.row,o=t.col,a=x(t),s=G(t),u=o+s-1,c=0,f=I(i,r,a);0<u;)if(i.dR(f,--u)&&(l=i.xA(f,u,e,n),h=M(r,l.row),d=M(o,l.col),g=(v=y(r+a-1,l.row+x(l)-1))-h+1,m=(l=M(o+s-1,l.col+G(l)-1))-d+1,h!==r||d!==o||g!==a||m!==s))return p=i.Ab,o<(S=i.ci)?d<=p&&i.o9(d):o===S&&l<=p&&i.o9(l),(w=i.parent&&i.parent.options.scrollByPixel)&&d===p&&0!==i.my&&i.o9(d,0),(0,b.Ec)(h,d,g,m);return C},zR:function(t,e,n,i){var r,o,a,s,u,u,s,e,r,u,n,c,f,r=this,o=t.row,a=t.col,s=r.frozenColumnCount(),u=s?r.O5(s-1):r.k9(),u=e?u:r.k9();if(!d(u))return(s<=0||e)&&r.o9(u),s=r.xA(o,u,n,i),e=M(o,s.row),r=M(a,s.col),u=y(o+x(t)-1,s.row+x(s)-1),n=M(a+G(t)-1,s.col+G(s)-1),(0,b.Ec)(e,r,c=u-e+1,f=n-r+1)},iB:function(t){var e,n,i,r,o,i,a,e=this,n;if(e.parent&&e.parent.options.scrollByPixel){for(o=e.Jt,i=e.S0(t),a=e.getViewportWidth(i);0<=t&&!((a-=o.Kt(t))<0);t--);i=t,r=a}else i=e.rB(t,2).col,r=0;return{iw:i,Xy:r}},ZR:function(t,e,n){for(var i,r,o,a,s,u,c,f,l,h,d,v,l,g,m,p,S,w,i=this,r=t.row,o=t.col,a=x(t),s=G(t),u=o,c=k(i)-1,f=I(i,r,a);u<c;)if(i.dR(f,++u)&&(l=i.xA(f,u,e,n),h=M(r,l.row),d=y(o,l.col),g=(v=y(r+a-1,l.row+x(l)-1))-h+1,m=(l=y(o+s-1,l.col+G(l)-1))-d+1,h!==r||d!==o||g!==a||m!==s))return p=i.oB(),o<(S=i.ci)?p<=d&&(w=i.iB(d),i.o9(w.iw,w.Xy)):o===S&&p<=l&&(w=i.iB(l),i.o9(w.iw,w.Xy)),(0,b.Ec)(h,d,g,m);return C},YR:function(t,e,n,i){var r,o,a,s,s,e,r,s,n,i,u,c,r=this,o=t.row,a=t.col,s=r.aB();if(!d(s))return r.o9(s),s=r.G6(),e||(s+=r.frozenTrailingColumnCount()),e=r.xA(o,s,n,i),r=M(o,e.row),s=y(a,e.col),n=y(o+x(t)-1,e.row+x(e)-1),i=y(a+G(t)-1,e.col+G(e)-1),(0,b.Ec)(r,s,u=n-r+1,c=i-s+1)},QR:function(t,e,n){for(var i,r,o,a,s,u,c,f,l,h,d,v,g,m,l,p,S,w,i=this,r=t.row,o=t.col,a=x(t),s=G(t),u=r+a-1,c=0,f=B(i,o,s);0<u;)if(i.dR(--u,f)&&(l=i.xA(u,f,e,n),h=M(r,l.row),d=M(o,l.col),m=(v=M(r+a-1,l.row+x(l)-1))-h+1,l=(g=y(o+s-1,l.col+G(l)-1))-d+1,h!==r||d!==o||m!==a||l!==s))return p=i.Tb,r<(S=i.ui)?h<=p&&i.$A(h):r===S&&v<=p&&i.$A(v),(w=i.parent&&i.parent.options.scrollByPixel)&&h===p&&0!==i.ly&&i.$A(h,0),(0,b.Ec)(h,d,m,l);return C},WR:function(t,e,n,i){var r,o,a,s,u,u,s,e,r,u,n,c,f,r=this,o=t.row,a=t.col,s=r.frozenRowCount(),u=s?r.j5(s-1):r.N9(),u=e?u:r.N9();if(!d(u))return(s<=0||e)&&r.$A(u),s=r.xA(u,a,n,i),e=M(o,s.row),r=M(a,s.col),u=M(o+x(t)-1,s.row+x(s)-1),n=y(a+G(t)-1,s.col+G(s)-1),(0,b.Ec)(e,r,c=u-e+1,f=n-r+1)},uB:function(t){var e,n,i,r,o,i,a,e=this,n;if(e.parent&&e.parent.options.scrollByPixel){for(o=e.Jt,i=e.C0(t),a=e.getViewportHeight(i);0<=t&&!((a-=o.Gt(t))<0);t--);i=t,r=a}else i=e.Jy(t,2),r=0;return{Ky:i,Xy:r}},JR:function(t,e,n){for(var i,r,o,a,s,u,c,f,l,h,d,v,g,m,l,p,S,w,i=this,r=t.row,o=t.col,a=x(t),s=G(t),u=r,c=T(i)-1,f=B(i,o,s);u<c;)if(i.dR(++u,f)&&(l=i.xA(u,f,e,n),h=y(r,l.row),d=M(o,l.col),m=(v=y(r+a-1,l.row+x(l)-1))-h+1,l=(g=y(o+s-1,l.col+G(l)-1))-d+1,h!==r||d!==o||m!==a||l!==s))return p=i.sB(),r<(S=i.ui)?p<=h&&(w=i.uB(h),i.$A(w.Ky,w.Xy)):r===S&&p<=v&&(w=i.uB(v),i.$A(w.Ky,w.Xy)),(0,b.Ec)(h,d,m,l);return C},KR:function(t,e,n,i){var r,o,a,s,s,e,r,s,n,i,u,c,r=this,o=t.row,a=t.col,s=r.cB();if(!d(s))return r.$A(s),s=r.P6(),e||(s+=r.frozenTrailingRowCount()),e=r.xA(s,a,n,i),r=y(o,e.row),s=M(a,e.col),n=y(o+x(t)-1,e.row+x(e)-1),i=y(a+G(t)-1,e.col+G(e)-1),(0,b.Ec)(r,s,u=n-r+1,c=i-s+1)},qR:function(t,e,n){for(var i,r,o,a,s,u,c,f,l,h,d,v,g,m,l,i=this,r=t.row,o=t.col,a=x(t),s=G(t),u=i.frozenColumnCount()-1,c=i.ci,f=r+a-1;u<c;)if(i.dR(f,++u)){if(o<=u&&o+s-1===i.ci)break;return l=i.xA(f,u,e,n),h=M(r,l.row),d=M(o,l.col),m=(v=y(r+a-1,l.row+x(l)-1))-h+1,l=(g=M(o+s-1,l.col+G(l)-1))-d+1,i.o9(i.k9()),(0,b.Ec)(h,d,m,l)}return C},XR:function(t,e,n){return t=this.zR(t,!0,e,n),t=this.WR(t,!0,e,n)},tB:function(t,e,n){for(var i,r,o,a,s,u,c,f,l,h,d,v,g,m,l,i=this,r=t.row,o=t.col,a=x(t),s=G(t),u=k(i),c=i.ci,f=r+a-1;c<u;)if(i.dR(f,--u)){if(u<=o+s-1&&o===i.ci)break;return l=i.xA(f,u,e,n),h=M(r,l.row),d=y(o,l.col),m=(v=y(r+a-1,l.row+x(l)-1))-h+1,l=(g=y(o+s-1,l.col+G(l)-1))-d+1,i.o9(i.aB()),(0,b.Ec)(h,d,m,l)}return C},$R:function(t,e,n){return t=this.YR(t,!0,e,n),t=this.KR(t,!0,e,n)},nB:function(t,e,n){var i,r,o,a,s,u,c,f,s,u,i,f,e,l,h,i=this,r=t.row,o=t.col,a=x(t),s=i.QA();return d(s)?C:(u=i._y(1),f=-1,(c=i.$A(s))?f=i.j5(r+a-1-p(u)):i.frozenRowCount()<=0&&(f=i.N9()),f<i.Tb?f=i.Tb:f>=i.sB()&&(f=i.nI(i.sB())),s=i.xA(f,o,e,n),u=M(r,s.row),i=M(o,s.col),f=M(r+a-1,s.row+x(s)-1),e=y(o+G(t)-1,s.col+G(s)-1),(0,b.Ec)(u,i,l=f-u+1,h=e-i+1))},eB:function(t,e,n){var i,r,o,a,s,u,s,u,i,s,e,n,c,f,i=this,r=t.row,o=t.col,a=x(t),s=i.tI();return d(s)?C:(u=i._y(1),i.$A(s),(s=i.nI(r+a-1+p(u)))<i.Tb?s=i.Tb:s>=i.sB()&&(s=i.Tb>=i.cB()?i.sB():i.nI(i.sB())),u=i.xA(s,o,e,n),i=y(r,u.row),s=M(o,u.col),e=y(r+a-1,u.row+x(u)-1),n=y(o+G(t)-1,u.col+G(u)-1),(0,b.Ec)(i,s,c=e-i+1,f=n-s+1))},QA:function(){var t,e,e,n,i,r,o,t=this,e=t._y(1);if(!e||p(e)<=0)return C;for(n=(e=t.frozenRowCount())?t.j5(e-1):t.N9(),i=0,r=t.Tb,o=t.Fi();n<r&&!((i+=t.Gt(--r))>t.Sy(o)););return r},fB:function(){var t,e,e,n,i,r,o,t=this,e=t.Yy(1);if(!e||p(e)<=0)return C;for(n=(e=t.frozenColumnCount())?t.O5(e-1):t.k9(),i=0,r=t.Ab,o=t.Fi();n<r&&!((i+=t.nn(--r))>t.Gy(o)););return r},tI:function(){var t,e,t,t=this._y(1),e=p(t);return t&&0<e?(t=t[e-1].row,this.P6()<=t?this.Tb:t):C},cB:function(){var t,e,n,i,n,i,r,t=this;if(t.P6()===t.sB()&&(e=t.Fi(),n=t._y(1),i=p(n),n)&&1<=i&&(n=n[i-1]).y+n.height<=e.Cy+t.Sy(e))return t.Tb;i=t.Tb;try{return t.Tb=t.P6(),r=t.QA(),r=t.j5(r)}catch(t){}finally{t.Tb=i}},aB:function(){var t,e,n,i,n,r,o,t=this;if(t.G6()===t.oB()&&(e=t.Fi(),n=t.Yy(1),i=p(n),n)&&1<=i&&(n=n[i-1]).x+n.width<=e.Py+e.width)return t.Ab;for(e=t.Fi(),r=0,o=t.G6();0<o&&!((r+=t.nn(o))>t.Gy(e));)o--;return o=0<o?t.O5(o):o},sB:function(){var t=this._y(1),e=p(t);return t&&0<e?t[e-1].row:C},oB:function(){var t=this.Yy(1),e=p(t);return t&&0<e?t[e-1].col:C},getLastFullyVisibleRow:function(){var t,e,n,i,n,t=this,e=t._y(1),n=p(e);return e&&0<n?(i=t.Fi(),(e[n=n-1].y+e[n].height<=i.Cy+t.Sy(i)?e[n]:e[y(n-1,0)]).row):C},getLastFullyVisibleColumn:function(){var t,e,n,i,n,t=this,e=t.Yy(1),n=p(e);return e&&0<n?(i=t.Fi(),(e[n=n-1].x+e[n].width<=i.Py+t.Gy(i)?e[n]:e[y(n-1,0)]).col):C},P6:function(t){var e=T(this,t=d(t)?3:t);return 3!==t&&2!==t||(e-=this.frozenTrailingRowCount()),this.nI(e,t)},G6:function(t){var e=k(this,t=d(t)?3:t);return 3!==t&&1!==t||(e-=this.frozenTrailingColumnCount()),this.r6(e,t)},kR:function(t,e){var n,i,r;if(t)for(n=0,i=p(t);n<i;n++)if(r=t[n],e.intersect(r.row,r.col,x(r),G(r)))return t.splice(n,1),n--,this.kR(t,e.union(r));return e},U5:function(t){var e,n,i,r,o,e,n=this.Ut,i=p(n.getSelections()),r=(0,b.Ec)(-1,-1,0,0);return i<=0||(o=n.getActiveSelectedRangeIndex(),3===t||1===t?n.do("setActiveSelectedRangeIndex",o=--o<0?i-1:o):4!==t&&2!==t||n.do("setActiveSelectedRangeIndex",o=i<=++o?0:o),0<=(o=n.getActiveSelectedRangeIndex())&&(r=n.getSelections()[o])),r}}),i.Worksheet.ch("selection",{init:function(){this.Ut.do("addSelection",0,0,1,1),this.Ut.setCellState(0,0,o.CellStatesType.active,!0,o.SheetArea.viewport)}})},"./dist/core/worksheet/worksheet-sort.js":function(r,t,o){"use strict";var n,t,b,w,e,C,e,y,M,e,S,s,h,k,u,c,T,f,l,x,i;function P(t,e,n){for(var i=t[n-e];i<n;)i=t[i-e];return i}function d(t,e){return"object"==typeof t?JSON.stringify(t):(t=e.getColor(t),n.Common.ft.j(n.Common.ft._(t)))}function G(t,e){return t instanceof Date&&e instanceof Date?s(t)===s(e):typeof t==c&&typeof e==c?t.toLowerCase()===e.toLowerCase():t===e}function B(t,e,n,i,r){var o,a,s,t,t=t.currentTheme();return o=(a=(a=k(e)||(a=r?e.backColor:e.foreColor,k(a))?a:d(a,t))||"")===(s=(s=k(n)||(s=r?n.backColor:n.foreColor,k(s))?s:d(s,t))||"")?0:a===i?1:s===i?-1:0}function I(t,e){var n,i,r,o,a;return t instanceof Date&&(t=s(t)),e instanceof Date&&(e=s(e)),r=(n=typeof t)==c,o=(i=typeof e)==c,a=i==T,n==i||n!=T&&!a?n==u&&o||(!r||i!=u)&&(r&&o?t.toLowerCase()>e.toLowerCase():e<t):a}function v(t,e,n,i,r,o){var a,s,u,c,f,l,h,d,v,g,m,p,h,S,w,S,w,s=r,u=t,c=e;if(s)for(f=0;f<s.length&&(s[f]&&(l=s[f].ascending,0<=(h=s[f].index))&&(v=d=void 0,g=i?u:h,m=i?h:u,p=i?c:h,h=i?h:c,v=o?(d=o[g][m],o[p][h]):(d=n.getValue(g,m),n.getValue(p,h)),s[f].compareFunction?(a=s[f].compareFunction(d,v),l||(a*=-1)):k(s[f].color)?(S=k(d)||""===d||typeof d==T&&isNaN(d),w=k(v)||""===v||typeof v==T&&isNaN(v),S||w?S&&w?a=0:S&&!w?a=1:!S&&w&&(a=-1):a=G(d,v)?0:I(d,v)?l?1:-1:l?-1:1):(S=n.getActualStyle(g,m,3,!1,!1,!(w=S=void 0)),w=n.getActualStyle(p,h,3,!1,!1,!0),a=B(n,S,w,s[f].color,s[f].isBackColor),l||(a*=-1))),0===a);f++);return a}function m(t,e,n,i,r){var o,a,s,u,c,f,l,h,o=t.length;if(o<=1)return t;for(s=t[a=Math.floor(o/2)],u=[],c=[],f=[],l=0;l<o;l++)(a===l?f:(h=v(t[l],s,e,n,i,r))<0?u:0<h?c:f).push(t[l]);return m(u,e,n,i,r).concat(f,m(c,e,n,i,r))}function p(t,e,n){var i,r,o,i=[];if(e)for(r=n.length-1;0<=r;r--)o=n[r],0===t.getRowHeight(o)&&(n.splice(r,1),i.push({lp:r,y4:o}));else for(r=n.length-1;0<=r;r--)o=n[r],0===t.getColumnWidth(o)&&(n.splice(r,1),i.push({lp:r,y4:o}));return i}function N(t,e){for(var n,i,n=t.length-1;0<=n;n--)i=t[n],e.splice(i.lp,0,i.y4)}function R(t,e,n,i,r,o,a,s,u){for(var c,f,l,h,i,d,v,g,c=o?i:r,f=o?e:n,l=[],h=0;h<c;h++)l[h]=f+h;for(i=s.ignoreHidden?p(t,o,l):[],d=l.concat([]),v=!1,l=m(l,t,o,a,u),g=0;g<l.length;g++)if(l[g]!==d[g]){v=!0;break}return N(i,l),{array:l,isChanged:v}}function E(t,e,n,i,r,o,a,s,u){var c,f,i,r,l,h,d,e,n,c=o?i:r,f=o?e:n,i=o?t.rowOutlines:t.columnOutlines,r=i.lB(f,c),l=i.hB(r,s.groupSort);if(!l){for(h=[],d=0;d<c;d++)h.push(f+d);l=[h]}for(d=0;d<l.length;d++)l[d]=m(l[d],t,o,a,u);return n=(e=i.dB(l,r,s.groupSort)).array,e.isChanged&&g(t,o,e,n,r,f,c),{array:n,isChanged:e.isChanged}}function g(t,e,n,i,r,o,a){var s,u,c,f,l,s=e?t.rowOutlines:t.columnOutlines,u=[],c=[];if(e){for(f=o;f<o+a;f++)t.XT(f)||t.rowOutlines&&t.rowOutlines.isCollapsed(f)||(t.getRowVisible(f,3,!0)?0===t.getRowHeight(f)&&(u.push(f),t.setRowHeight(f,t.defaults.rowHeight)):(c.push(f),t.setRowVisible(f,!0)));for(s.vB(n.groupSwap,n.array,r.start),f=0;f<c.length;f++)l=h.hD(i,c[f])+o,t.setRowVisible(l,!1);for(f=0;f<u.length;f++)l=h.hD(i,u[f])+o,t.setRowHeight(l,0)}else{for(f=o;f<o+a;f++)t.columnOutlines&&t.columnOutlines.isCollapsed(f)||(t.getColumnVisible(f,3)?0===t.getColumnWidth(f)&&(u.push(f),t.setColumnWidth(f,t.defaults.colWidth)):(c.push(f),t.setColumnVisible(f,!0)));for(s.vB(n.groupSwap,n.array,r.start),f=0;f<c.length;f++)l=h.hD(i,c[f])+o,t.setColumnVisible(l,!1);for(f=0;f<u.length;f++)l=h.hD(i,u[f])+o,t.setColumnWidth(l,0)}}function H(t,e,n){var t=t.oT(e,n,!1);t&&t.hasListeners()&&t.mB()}function U(t,e,n,i){var r,r,i,r=o("SheetsCalc");r&&(r=r.CalcOperatorAdjustor.gB(t.rT,t.rT,t.pB(e,n),e,n,0,0),t.bB(e,n,r,i),i=t.oT(e,n,!!r))&&(t.Ile(e,n)&&i.isDefault(!0),i.yB())}function A(t,e,n,i,r,o,a,s,u,c,f,l){for(var h,d,v,g,m,p,S,w,b,C,y,M,k,T,x,G,B,I,b=t.Ut,C=b.pI,M=C&&0<C.wB.length,T=o?e:n,x=o?e+i:n+r,B=o?n:e,I=o?n+r:e+i,k=T;k<x;k++)if(k!==(y=P(s,T,k)))for(o?(h=k,v=y):(d=k,g=y),G=B;G<I;G++)o?g=d=G:v=h=G,a&&(m=u[h][d],p=u[v][g]),M&&(S=C.get(h,d),w=C.get(v,g)),f&&l&&(H(f,h,d),H(f,v,g),f.SE(h,d,v,g),U(f,h,d),U(f,v,g)),b.do("swapNode",h,d,v,g),t.b8&&t.MB(h,d,v,g),M&&C.CB(S,h,d,w,v,g),a&&(u[h][d]=p,u[v][g]=m),c.push({row:h,col:d}),c.push({row:v,col:g})}function L(t,e,n,i,r,o,a,s,u,c,f){var l,h,d,e,v,g,m,p,S,l=[],h=t.Ut.P8;if(0<h&&(e&&(t.Ut.P8=0),[].push.apply(t.Ut.G8,[{row:n,column:i,rowCount:r,columnCount:o,byRows:a,sortInfo:s,type:"sortRange",array:c.concat([]),sortState:t.getSortState()}])),d=C&&t.b3(),e=C&&t.Uw(),A(t,n,i,r,o,a,u,c,f,l,d,e),u)for(v=n;v<n+r;v++)for(g=i;g<i+o;g++)t.setValue(v,g,f[v][g]);if(d){for(m=n;m<n+r;m++)for(p=i;p<i+o;p++)(S=d.pB(m,p))&&d.SB(m,p,S,x);t.getCalcService().recalcRange(e,n,i,r,o)}return w.Worksheet.et(t,"sortRangeChanged",{column:i,columnCount:o}),0<h&&(t.Ut.P8=h),l}function D(t,e,n,i,r,o,a,s,u,c){var f,l,h,d,v,g;t.suspendPaint(),t.suspendEvent(),C&&t.suspendCalcService();try{if(c)for(l=[],h=e;h<e+i;h++)for(l[h]=[],d=n;d<n+r;d++)l[h][d]=t.getValue(h,d);return g=v=void 0,(v=u||(g=(0===s.groupSort?R:E)(t,e,n,i,r,o,a,s,l)).array)?(f=L(t,g&&g.isChanged,e,n,i,r,o,a,c,v,l),!0):!1}finally{C&&t.resumeCalcService(!1),t.resumeEvent(),t.resumePaint(),t.SI(e,n,i,r,f,4,x,x,x,!!u)}}function F(t,e){for(var n,i,r,o,a,s,u,n=[],i=0,r=e;i<r.length;i++)(o=r[i]).compareFunction?(a=o,n.push({index:a.index,ascending:a.ascending,compareFunction:a.compareFunction})):o.order&&o.hasOwnProperty(f)?(s="top"!==(a=o).order,u=k(a.backColor)?"":d(a.backColor,t.currentTheme()),n.push({index:a.index,ascending:s,color:u,isBackColor:!0})):o.order&&o.hasOwnProperty(l)?(s="top"!==(a=o).order,u=k(a.fontColor)?"":d(a.fontColor,t.currentTheme()),n.push({index:a.index,ascending:s,color:u,isBackColor:!1})):(o.color&&(o.color=d(o.color,t.currentTheme())),n.push(o));return n}function j(t,e){var n,i,r;if(e){for(n=t[0],i=1;i<t.length;i++)if((r=t[i]).row!==n.row||r.rowCount!==n.rowCount)return;return 1}}function O(t,e){for(var n,i,r,o,a,s,n=t[0],i=n.row,r=1;r<t.length;r++)(o=t[r])&&o.row<i&&(i=o.row,n=o);if(i===e.row-1)return a=e.row,s=n.row+n.rowCount,e.row=s,e.rowCount=e.rowCount-(s-a),e}function _(t,e,n,i){var r,o;if(t.sortConditions)for(r in t.sortConditions)t.sortConditions&&t.sortConditions.hasOwnProperty(r)&&((o=t.sortConditions[r]).index>=e&&o.index<e+n?i.push(o.index):o.index>=e+n&&(o.index-=n))}Object.defineProperty(t,"__esModule",{value:!0}),n=o("Common"),t=o("./dist/core/util/domUtil.js"),b=o("./dist/core/util/common.js"),w=o("./dist/core/worksheet/worksheet.js"),e=o("CalcEngine"),C=!!e,e=o("./dist/core/core.ns.js"),y=o("./dist/core/core.enum.js"),M=o("./dist/core/excel-io-util/range-parser.js"),e=new n.Common.ResourceManager(e.SR,"Sheets"),S=e.getResource.bind(e),s=n.Common.ct.o0,h=n.Common.Uf,k=n.Common.lt.ht,u="boolean",c="string",T="number",f="backColor",l="fontColor",x=void 0,t.GC$.extend(w.Worksheet.prototype,{sortRange:function(t,e,n,i,r,o,a,s,u){var c,f,f,l,h,d,v,l,h,l,h,g,h,l,m,p,h,g,l,c=!1;if(0===arguments.length){if(!(f=this.getSortState()))return!1;t=f.row,e=f.col,n=f.rowCount,i=f.colCount,o=f.sortConditions,r=f.byRow,c=!0}if(l=(f=this).getRowCount(),h=f.getColumnCount(),-1===n&&(n=l),-1===e&&(e=0),-1===i&&(i=h),(t=-1===t?0:t)<0||l<=t||e<0||h<=e||n<0||l<t+n||i<0||h<e+i||!o)return!1;if(a=f.TB(b.Ec(t,e,n,i),r,a),l=r?f.rowOutlines:f.columnOutlines,!s&&0<a.groupSort){if(!l)return!1;h=l.lB(v=r?t:e,d=r?n:i),r?(n=h.count,t=h.start):(i=h.count,e=h.start)}return C&&!f.mT(t,e,n,i,!1)?(u&&f.jT(7,S().Exp_InvalidSortArrayFormulaInRange),!1):(l=b.Ec(t,e,n,i),(h=f.Ut.getSpans(l))&&0<h.length&&(g=!0,j(h,r)&&(h=O(h,l))&&(t=h.row,n=h.rowCount,g=!1),g)?(u&&f.jT(7,S().Exp_InvalidSortSpanInRange),!1):!(l=f.tables)||(p=1===(m=l.AB(t,e,n,i)).length&&m[0].dataRange().equals(b.Ec(t,e,n,i)),m.length<=0)||p?(h=f.H3,g=(!f.NMi||f.NMi._gi!==y.SheetType.ganttSheet)&&h&&h._dataSource||p&&m[0]&&m[0].z3(),(l=D(f,t,e,n,i,r,F(f,o),a,s,g))&&0!==a.groupSort&&f.IB&&f.IB.reFilter(),c||s||this.Tpe(t,e,n,i,r,o),l):(u&&f.jT(7,S().Exp_InvalidSortPartTableOrMultiTableInRange),!1))},TB:function(t,e,n){var i,t,r,o,a,e,i=this,t=i.JS(t),r=e?t.rowCount:t.colCount,o=e?t.row:t.col,a=e?i.rowOutlines:i.columnOutlines;return k(n)&&(n={}),i.outlineColumn&&i.outlineColumn.xB()&&e&&(e=i.outlineColumn.NB.columnIndex,t.col<=e&&e<=t.col+t.colCount||(n.groupSort=0)),k(n.groupSort)&&(k(n.ignoreHidden)?n.groupSort=a&&a.kB(o,r)?1:0:n.groupSort=0),0===n.groupSort?n.ignoreHidden=!!k(n.ignoreHidden)||n.ignoreHidden:n.ignoreHidden=!1,n},_B:function(){var t=this.options;return!this.isActualProtected()||t.protectionOptions.allowSort},MB:function(t,e,n,i){var r=this,o=r.getDataValidator(t,e),a=r.getDataValidator(n,i);r.setDataValidator(t,e,a),r.setDataValidator(n,i,o)},Tpe:function(t,e,n,i,r,o){var a,s,a,a,u,s=this,a=null==(a=s.rowFilter())?void 0:a.Ipe;if(!a){if(o.length<1)return s.Ape();(a={row:t,col:e,rowCount:n,colCount:i,byRow:r}).sortConditions=o,s.fQt=a}},Ape:function(){var t;this.fQt=void 0},getSortState:function(){var t,e,t=this;return t.fQt&&((e=b.RF(t.fQt)).sortConditions=e.sortConditions.map(function(t){return(Object.hasOwnProperty.call(t,"backColor")||Object.hasOwnProperty.call(t,"fontColor"))&&(t.ascending=void 0,delete t.ascending),t}),e)},Npe:function(t,e){var n,i,r,o,a,n=this.getSortState();if(n&&!(t>=n.row+n.rowCount))if(t<=n.row){if(n.row=n.row+e,!n.byRow)for(i=0,r=n.sortConditions;i<r.length;i++)(o=r[i]).index=o.index+e}else if(n.rowCount=n.rowCount+e,!n.byRow&&n.sortConditions)for(a in n.sortConditions)n.sortConditions.hasOwnProperty(a)&&(o=n.sortConditions[a]).index>=t&&(o.index+=e)},kpe:function(t,e){var n,i,r,o,a,n=this.getSortState();if(n&&!(t>=n.col+n.colCount))if(t<=n.col){if(n.col=n.col+e,n.byRow)for(i=0,r=n.sortConditions;i<r.length;i++)(o=r[i]).index=o.index+e}else if(n.colCount=n.colCount+e,n.byRow&&n.sortConditions)for(a in n.sortConditions)n.sortConditions.hasOwnProperty(a)&&(o=n.sortConditions[a]).index>=t&&(o.index+=e)},_pe:function(t,e){var n,i,r,o,a,s,n=this.getSortState();if(n&&(i=[],!(t>=n.row+n.rowCount))){if(t+e<=n.row){if(n.row=n.row-e,!n.byRow)for(r=0,o=n.sortConditions;r<o.length;r++)(a=o[r]).index=a.index-e}else if(t>=n.row&&t+e<n.row+n.rowCount){if(n.rowCount=n.rowCount-e,!n.byRow&&n.sortConditions)for(s in n.sortConditions)n.sortConditions.hasOwnProperty(s)&&((a=n.sortConditions[s]).index>=t&&a.index<t+e?i.push(a.index):a.index>=t+e&&(a.index-=e))}else t<n.row?(n.rowCount-=t+e-n.row,n.row=t):n.rowCount-=n.row+n.rowCount-t,n.byRow||_(n,t,e,i);return 0<i.length&&(n.sortConditions=n.sortConditions.filter(function(t){return-1===i.indexOf(t.index)})),0===n.sortConditions.length||n.rowCount<=0?this.Ape():void 0}},Dpe:function(t,e){var n,i,r,o,a,s,n=this.getSortState();if(n&&(i=[],!(t>=n.col+n.colCount))){if(t+e<=n.col){if(n.col=n.col-e,n.byRow)for(r=0,o=n.sortConditions;r<o.length;r++)(a=o[r]).index=a.index-e}else if(t>=n.col&&t+e<n.col+n.colCount){if(n.colCount=n.colCount-e,n.byRow&&n.sortConditions)for(s in n.sortConditions)n.sortConditions.hasOwnProperty(s)&&((a=n.sortConditions[s]).index>=t&&a.index<t+e?i.push(a.index):a.index>=t+e&&(a.index-=e))}else t<n.col?(n.colCount-=t+e-n.col,n.col=t):n.colCount-=n.col+n.colCount-t,n.byRow&&_(n,t,e,i);return 0<i.length&&(n.sortConditions=n.sortConditions.filter(function(t){return-1===i.indexOf(t.index)})),0===n.sortConditions.length||n.colCount<=0?this.Ape():void 0}}}),w.Worksheet.ch("Sort",i={yh:function(t,e,n){var i,r,o,t,a,s,u,c,f,l,h,d,v,g,g,m,p,h,h,S,w,i=this,r=b.util.go,o,t=(0,b.util.xr)(t,"sortState");if(t&&(a="1"!==t.columnSort,s=M.range_parser._c(t.ref),t)){for(c=[],f=0,l=u=r(t,"sortCondition");f<l.length;f++)if(d=(h=l[f]).sortBy,v=!h.descending,g=M.range_parser._c(h.ref),g=a?g.col:g.row,p=m=void 0,"icon"!==d){for(w in d!==y.SortBy.fontColor&&d!==y.SortBy.cellColor||(h=Number.parseInt(h.dxfId,10),h=e.styleManager.getDxf(h),p=d===y.SortBy.cellColor,h&&(m=p?h.backColor:h.foreColor)),S={index:g,ascending:v},d===y.SortBy.cellColor?(S.backColor=m,S.order=v?"top":"bottom"):d===y.SortBy.fontColor&&(S.fontColor=m,S.order=v?"top":"bottom"),S)void 0===S[w]&&delete S[w];c.push(S)}i.Tpe(s.row,s.col,s.rowCount,s.colCount,a,c)}},wh:function(t,e,n){var i,r,t,o,a,s,u,c,f,l,h,d,v,v,i=this,t=t.c_,o=this.getSortState();if(o){for(r={n_:"sortState",ref:a=M.range_parser.getRangeString([new b.Range(o.row,o.col,o.rowCount,o.colCount)]),c_:[]},o.byRow||(r.columnSort=1),u=0,c=s=F(i,o.sortConditions);u<c.length;u++)f=c[u],l=void 0,h={n_:"sortCondition",ref:l=o.byRow?M.range_parser.jc(new b.Range(o.row,f.index,o.rowCount,1)):M.range_parser.jc(new b.Range(f.index,o.col,1,o.colCount))},d=f.isBackColor,v=f.color,k(v)?f.ascending||(h.descending=1):("{"===v[0]&&(v=JSON.parse(v)),v=d?{backColor:v}:{foreColor:v},h.sortBy=d?y.SortBy.cellColor:y.SortBy.fontColor,h.dxfId=e.styleManager.getDxfIndex(v),f.ascending?h.descending=1:(h.descending=null,delete h.descending)),r.c_.push(h);r&&t.push(r)}},toJson:function(t,e){var n=this.getSortState();n&&(t.sortState=n)},fromJson:function(t,e,n){var i,t,r,o,a,s,u,t,i,t=t.sortState;t&&(r=t.row,o=t.col,a=t.rowCount,s=t.colCount,u=t.byRow,t=t.sortConditions,this.Tpe(r,o,a,s,u,t))},onLayoutChanged:function(t){var e,n,i,r,o,a,t,t,e;this.getSortState()&&(n=t.changeType,i=t.row,r=t.rowCount,o=t.col,a=t.colCount,t=t.sheetArea,t=k(t)||t===y.SheetArea.viewport,"addRows"===n&&t?this.Npe(i,r):"deleteRows"===n&&t?this._pe(i,r):"addColumns"===n&&t?this.kpe(o,a):"deleteColumns"===n&&t&&this.Dpe(o,a))}})},"./dist/core/worksheet/worksheet-static.js":function(s,t,O){"use strict";var F,p,e,_,r,V,n,Y,S,w,$,K,A,b,z,B,W,J,n,f,Z,L,tt;function Q(t,e){return t.getRowCount(e)}function X(t,e){return t.getColumnCount(e)}function E(t,e,n){return t.Do(e,n)}function H(t,e,n){return t._o(e,n)}function I(t,e,n,i){t.setColumnWidth(e,n,i)}function P(t,e,n,i){t.setRowHeight(e,n,i)}function N(t,e,n,i,r){return t.getActualStyle(e,n,i,B,B,B,r)}function o(t,e){return t.getDefaultStyle(e)}function a(t,e,n){t.setDefaultStyle(e,n)}function R(t,e,n,i,r){t.u5(e,n,i,r)}function l(t,e,n,i){throw new Error(r.Common.zf.I5(f().Exp_InvalidAndSpace,[t,e,n,i]))}function q(t,e,n){return e&&n.XT&&n.XT(t)}function C(t,e,n){return n?[e,t]:[t,e]}function et(t,e,n,i,r,o,a,s){var u,t,c,i,n,o,s,t;if(!t)throw new Error(f().Exp_SrcIsNull);if(!i)throw new Error(f().Exp_DestIsNull);u=Q(t),t=X(t),c=Q(i),i=X(i),(e<-1||u<=e)&&l("from row index",e,"-1",u-1),(n<-1||t<=n)&&l("from column index",n,"-1",t-1),(r<-1||c<=r)&&l("to row index",r,"-1",c-1),(o<-1||i<=o)&&l("to column index",o,"-1",i-1),(n=n)<0&&(n=0,s=t),o=o<0?0:o,(s<1||t<n+s||i<o+s)&&l("column count",s,"1",W(t-n,i-o)),(s=e)<0&&(s=0,a=u),t=r<0?0:r,(a<1||u<s+a||c<t+a)&&l("row count",a,"1",W(u-s,c-t))}function D(t){if(!t)return t;if("number"==typeof t||"string"==typeof t||"boolean"==typeof t||A(t))return t;if(t.clone)return t.clone();if(t instanceof Date)return new Date(t.valueOf());var e,n,i,e=t instanceof Object?new t.constructor:new t.constructor(t.valueOf());for(n in t)t.hasOwnProperty(n)&&(i=t[n],t.hasOwnProperty(n))&&e[n]!==i&&(e[n]="object"==typeof i?D(i):i);return e.toString=t.toString,e.valueOf=t.valueOf,e}function d(t,e,n,i,r,o,a,s,u,c){var f,l,h,d,v,g,m,p,S,w,b,C,C,f=t.getSpans(B,u),l=i.getSpans(B,u),h=[];if(f)for(d=0;d<f.length;d++)g=(v=f[d]).row,m=v.col,p=v.rowCount,S=v.colCount,-1===e?n<=m&&m+S<=n+s&&h.push(Z(g,o+m-n,p,S,c)):-1===n?e<=g&&g+p<=e+a&&h.push(Z(r+g-e,m,p,S,c)):e<=g&&g<e+a&&n<=m&&m<n+s&&h.push(Z(r+g-e,o+m-n,p,S,c));if(l)for(d=0;d<l.length;d++)g=(v=l[d]).row,w=void 0,b=o<=(m=v.col)&&m<o+s,C=r<=g&&g<r+a,(w=-1===e?b:-1===n?C:C&&b)&&(C=i.findSpan(g,m,u))&&C.row===g&&C.col===m&&i.do("removeSpan",C,u);for(d=0;d<h.length;d++)i.do("addSpan",h[d],u)}function nt(t){t.forEach(function(t){var e=t.sheet,n=t.r,i=t.c,t=t.value;e.setTemplateCell?e.setTemplateCell(n,i,t):e.setBindingPath&&e.setBindingPath(n,i,t)})}function y(t,e,n){for(var t,i,r,o,a,s,u,c,t=t.JS(e),i=t.row,r=t.col,o=t.rowCount,a=t.colCount,s=0;s<o;s++)for(u=n[i+s]=n[i+s]||{},c=0;c<a;c++)u[r+c]=!0}function v(t,e){return t===e&&t.name()===e.name()}function M(t){var e=p([],t.sheets,!0);return t.mp&&0<t.mp.length&&t.mp.forEach(function(t){t.Mf&&e.push(t.Mf)}),e}function it(r,o,a,s,u,c,f,l){var t,h,d,v,g,t,m,t,e,n,t=O("SheetsCalc");if(t)if(h=t.QB,g=r.Ut.pj(),r.parent&&r.parent.sheets)for(m=M(r.parent),(t=r.parent.getCustomNames())&&b(t,function(t,e){d=e.getExpression(),(v=h(null,r,o,a,s,u,c,f,l,d))!==d&&e.SB(v,g)}),e=function(n){var t,i,t=m[n].getCustomNames();t&&(i=[],b(t,function(t,e){d=e.getExpression(),(v=h(m[n],r,o,a,s,u,c,f,l,d))!==d&&(e.SB(v,g),i.push({nameInfo:e,oldExpr:d,newExpr:v}))}),0<i.length)&&"function"==typeof m[n].onCustomNameFormulaChanged&&m[n].onCustomNameFormulaChanged(i)},n=0;n<m.length;n++)e(n);else(t=r.getCustomNames())&&b(t,function(t,e){d=e.getExpression(),(v=h(r,r,o,a,s,u,c,f,l,d))!==d&&e.SB(v,g)})}function k(t,e,n,i,r,o,a,s,u){var t;n&&r&&(r=t.adjustFormulaOnMoveSwap(i,o,a,r,s,!0,{crossSheetMoved:u}),t=n.unparse(i,r,o,a),e.setDefaultValue(o,a,t,z,V.DefaultChangeValueType.Expression,z,!0))}function g(t,e,n,i,r,o){var a,s,u,c,f,l,h,d,v,g,m,p,S,w,b;if(t)for(l in a=n!==i,s=n.Ut,u=i.Ut,c=n.Uw(),f=n.op(),t)if(t.hasOwnProperty(l)&&(h=t[l]))for(d in h)h.hasOwnProperty(d)&&(v=h[d])&&v.expr&&(o?k(e,u,f,c,S=v.expr,w=v.destRow,b=v.destCol,r,a):A(n.getValueIgnoreDefault(g=+l,m=+d))||k(e,s,f,c,v.expr,g,m,r,a))}function rt(t,e,n,i,r,o,a,s,u){var c,f,l,h,f,l,e,d,c=O("SheetsCalc");c&&(f=t.op(),l=t.Uw(),h=i.Uw(),f)&&l&&h&&(f=new c.MoveSwapInfo(l,e,n,h,r,o,a,s),g(d=(e=(l=t.Ut)&&l.yle())&&e.gle(),c,t,i,f),g(u,c,t,i,f,!0))}function h(t,e,n,i,r,o,a,s,u,c,f){var l,t,h,l=!(t===i&&t.name()===i.name()),t=t.Ut,h=t.K_(c);l?(d(t,e,n,i.Ut,r,o,a,s,c,f),u&&h&&t.do("clearSpan",e,n,a,s,c)):u?t.do("moveSpan",e,n,r,o,a,s,c):t.do("copySpan",e,n,r,o,a,s,c,f)}function T(t,e,a,s,u,c,f,l){var h,n,i,d,r,o,v,g,h={},n=Z(a,s,u,c),i=t.Uw(3).t8,d=e.Uw(3).t8,r=i&&i.jme(a,s,u,c),o=d&&d.jme(f,l,u,c),v=d&&d.b3();return t===e&&n.intersect(f,l,u,c)?(g=[],r&&r.forEach(function(t){i.Rme(t),t.minX>=a&&t.minY>=s&&g.push(t)}),o&&o.forEach(function(t){i.Rme(t),v.gF(t.minX,t.minY,1,1),t.minX>=f&&t.minY>=l&&d.Lme(t,!0)}),g.forEach(function(t){var t={minX:t.minX+f-a,minY:t.minY+l-s,maxX:t.maxX+f-a,maxY:t.maxY+l-s,isValid:t.isValid};d.Bme(t,!0)})):(o&&o.forEach(function(t){t.minX>=f&&t.minY>=l?d.Rme(t,!0,!0):(d.Rme(t),v.gF(t.minX,t.minY,1,1))}),r&&r.forEach(function(t){var e,n,i,r,o;if(t.minX>=a&&t.minY>=s)(e={minX:t.minX+f-a,minY:t.minY+l-s,maxX:W(t.maxX+f-a,f+u-1),maxY:W(t.maxY+l-s,l+c-1),isValid:t.isValid}).isValid||(e.maxX=e.minX,e.maxY=e.minY),d&&d.Bme(e,!0);else if(t.isValid)for(n=W(t.maxX,a+u-1),i=W(t.maxY,s+c-1),r=J(t.minX,a);r<=n;r++)for(h[r]=h[r]||{},o=J(t.minY,s);o<=i;o++)h[r][o]=1})),h}function ot(t,e,n,i,r,o,a,s){var u=O("SheetsCalc");u&&u.CalcOperatorAdjustor.moveFormula(t,e,n,i,r,o,a,s)}function at(t,e,n,i,r,o,a,s,u){var c,f,l,e,h,d,v,g,m,c={};if(t===e&&t.tables)for(f=Z(n,i,r,o),l=Z(a,s,r,o),h=(e=t.tables).all(),d=void 0,v=0,g=(h=e.zB?h.concat(e.zB):h).length;v<g;v++)(d=(m=h[v]).VB||m.range()).containsRange(f)&&d.containsRange(l)?y(t,f,c):(d.intersect(l.row,l.col,l.rowCount,l.colCount)||u&&f.containsRange(d))&&y(t,d,c);return c}function i(t,e,n,i,r,o,a,s,u,c){var t;this.src=t,this.dest=e,this.srcRow=n,this.srcColumn=i,this.destRow=r,this.destColumn=o,this.copyRowCount=a,this.copyColumnCount=s,this.isMove=u,null!=(t=(this.options=c).pasteSpecialOptions)&&t.skipBlanks&&(this.jpe=new _.Rf)}function m(t,e,n,i,r,o,a,s,u,c,f){var l,h,d,v,g,m,d,p,S,w,b,C,l,c,h,d,y,M,k,T,x,G,F,_,A,B,M,l,I,f,M,f,P,L,N,D,R,E,H,U,j;if(et(t,e,n,i,r,o,a,s),v=c.copyToOption,g=c.ignoreFilteredOutRow,m=c.ignorePasteSkipInvisibleRange,b=null==(d=c.pasteSpecialOptions)?void 0:d.pasteLink,(null!=d&&d.operationOptions||null!=d&&d.transpose)&&(C={operationOptions:null!=d&&d.operationOptions?{option:null==d?void 0:d.operationOptions,useValue:0<(1&v)&&(2&v)<=0}:void 0,transpose:d.transpose}),l=null==(l=null==d?void 0:d.advancedPasteOptions)?void 0:l.validator,c=new tt(t,i,e,n,r,o,a,s,u,c),h=null==(h=null==d?void 0:d.advancedPasteOptions)?void 0:h.columnWidth,d=null==(d=null==d?void 0:d.advancedPasteOptions)?void 0:d.numberFormats,b&&(v=0),0<(1&(v=null!=C&&C.operationOptions?(v&=~V.CopyToOptions.value)|V.CopyToOptions.formula:v))&&0<(2&v)&&(M=t.pivotTables)&&(y=M.KB(Z(J(0,e),J(0,n),e<0?W(Q(t),Q(i)):a,n<0?W(X(t),X(i)):s),u)),u&&i.UB&&e<0)for(w=s,(S=n)<0&&(S=0,w=W(X(t),X(i))),(k=o)<0&&(k=0),p=!0,T=0;T<w;T++)x=t.Ut.q_(!1,3,S+T),G=t.Ut.q_(!1,3,k+T),F=x&&x.name,_=G&&G.name,x&&G&&F&&_||(p=!1),(G=Y.GC$.extend(!0,{},i.Ut.q_(!1,3,k+T)||{})).displayName=x&&x.displayName,G.name=x&&x.name,i.Ut.do("setItem",!1,3,k+T,G);!(0<(64&v)||l)||null!=f&&f.ignoreValidator||(c.copyMoveMultiColumnPrecedents(),t.EB)||t.b8&&c.copyMoveValidator(),0<(64&v)&&(A=at(t,i,e,n,a,s,r,o,u)),0<(512&v)&&c.copyOrMoveConditionalFormat(),0<(1&v)&&0<(2&v)&&(M=t.tables)&&(B=M.KB(Z(J(0,e),J(0,n),e<0?W(Q(t),Q(i)):a,n<0?W(X(t),X(i)):s),u)),(l=K)&&(t.suspendCalcService(),i.suspendCalcService()),I=[],f=z,M=[],0<(256&v)&&(I=(f=c.copyMoveBindingPath()).savedValues,M=f.bindingPathInfos),0<(2048&v)&&(f=c.copyMoveDefaultValue(),u)&&f&&rt(t,e,n,i,r,o,a,s,f);try{if(b&&c.copyCellLink(),P=i.pivotTables,0<(1&v)&&0<(2&v)&&P&&P.JB(y,t,J(0,e),J(0,n),i,J(0,r),J(0,o),a,s,u),0<(1&v)&&!p){if(u?c.moveValue():c.copyValue(),K&&0==(2&v)&&i.clearFormula(r,o,a,s,function(t,e){return!g||!t.XT||!t.XT(e)}),0<(256&v))for(nt(M),L=I.length,N=r<0?0:r,D=o<0?0:o,R=0;R<L;R++)E=I[R],!u&&q(N+E.row,g,i)||i.setValue(N+E.row,D+E.col,E.value)}else 0<(256&v)&&nt(M);(0<(64&v)||d)&&c.copyMoveStyle(A),H=i.tables,0<(1&v)&&0<(2&v)&&H&&H.JB(B,J(0,e),J(0,n),J(0,r),J(0,o),u),K&&(u?(U={needAdjustCustomNameOnMove:!0},$.Worksheet.et(t,"adjustCustomNameOnMove",U),!t.EB&&U.needAdjustCustomNameOnMove&&it(t,e,n,i,r,o,a,s),0<(2&v)&&ot(t,e,n,i,r,o,a,s)):0<(2&v)&&(j=O("SheetsCalc"))&&j.XB(t,e,n,i,r,o,a,s,g,m,!0,C),0<(1&v))&&0<(2&v)&&H&&H.qB(B),0<(4&v)&&c.copyMoveComment(),0<(128&v)&&c.copyMoveTag(),0<(1024&v)&&c.copyMoveHyperlink(),0<(4096&v)&&c.copyMoveAltText()}finally{l&&(t.resumeCalcService(!1),i.resumeCalcService(!1))}if(0<(16&v)&&c.copyOrMoveSparkline(),0<(8&v)&&(e<0&&c.copyOrMoveColumnRangeGroup(),n<0)&&c.copyOrMoveRowRangeGroup(),0<(32&v)&&(!u&&1===a&&1===s||c.copyOrMoveSpan()),e<0&&r<=0&&c.copyOrMoveColumnAxis(),n<0&&o<=0&&c.copyOrMoveRowAxis(),e<0&&r<=0&&n<0&&o<=0&&c.copyOrMoveSheetInfo(),h&&c.copyColumnWidth(),u&&t.UB&&e<0)for(w=s,(S=n)<0&&(S=0,w=W(X(t),X(i))),T=0;T<w;T++)t.getDataColumnName&&t.getDataColumnName(S+T)&&t.Ut.do("setItem",!1,3,S+T,z)}F=this&&this.__assign||function(){return(F=Object.assign||function(t){for(var e,n,i,r,n=1,i=arguments.length;n<i;n++)for(r in e=arguments[n])Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t}).apply(this,arguments)},p=this&&this.__spreadArray||function(t,e,n){if(n||2===arguments.length)for(var i=0,r=e.length,o;i<r;i++)!o&&i in e||((o=o||Array.prototype.slice.call(e,0,i))[i]=e[i]);return t.concat(o||Array.prototype.slice.call(e))},Object.defineProperty(t,"__esModule",{value:!0}),t.staticMembers=void 0,e=O("./dist/core/core.ns.js"),_=O("./dist/core/util/common.js"),r=O("Common"),V=O("./dist/core/core.enum.js"),n=O("CalcEngine"),Y=O("./dist/core/util/domUtil.js"),S=O("./dist/core/worksheet/worksheet-model.js"),w=O("./dist/core/worksheet/style.js"),$=O("./dist/core/worksheet/worksheet.js"),K=!!n,A=r.Common.lt.ht,b=Y.GC$.each,z=null,B=void 0,W=Math.min,J=Math.max,n=new r.Common.ResourceManager(e.SR,"Sheets"),f=n.getResource.bind(n),Z=function(t,e,n,i,r){return new _.Range(t,e,r?i:n,r?n:i)},L=function(t,e,n,i,r,o,a,s,u,c,f){var l,h,d,v,g,m,p,S,w,b,l=f.pasteSkipInvisibleRange,h=f.sheetArea,d=s,v;if(!(t===e&&t.name()===e.name()))for(m=g=0;g<a&&g<Q(e,h);g++)if(l&&0===e.getRowHeight(i+g,h))a++;else{for(s=d,S=p=0;p<s&&p<X(e,h);p++)l&&0===e.getColumnWidth(o+p,h)?s++:(c(e,i+g,o+p,D(w=u(t,n+m,r+S,h)),h),S++);m++}else{for(b=new _.Rf,g=0;g<a;g++)for(p=0;p<s;p++)w=u(t,n+g,r+p,h),A(w)||b.set(g,p,D(w));for(m=g=0;g<a&&g<Q(e,h);g++)if(l&&0===e.getRowHeight(i+g,1))a++;else{for(s=d,S=p=0;p<s&&p<X(e,1);p++)l&&0===e.getColumnWidth(o+p,1)?s++:(c(e,i+g,o+p,b.get(m,S),h),S++);m++}}},i.prototype.Ope=function(t,e,n){var i,r,o,a,s,u,c,f,l,r,n,h,d,i,v,g,m,n,i,p,S,n,i,w,b,C,y,M,k,T,x,G,B,I,P,N,R,E,H,U,r=this,o=r.src,a=r.srcRow,s=r.srcColumn,u=r.dest,c=r.destRow,f=r.destColumn,l=r.copyRowCount,r=r.copyColumnCount,n=F(F({},this.options),n),h=n.ignoreFilteredOutRow,d=n.copyPasteHeaders,i=n.ignorePasteSkipInvisibleRange,v=!(o===u&&o.name()===u.name()),g=!i&&u.o5(),m=null==(i=n.pasteSpecialOptions)?void 0:i.transpose;if(2==(2&d)&&a<0&&(n=s,i=f,p=W(Q(o,1),Q(u,1)),S=r,s<0&&(n=0,S=X(o)),L(o,u,0,0,n,i=f<0?0:i,p,S,t,e,{pasteSkipInvisibleRange:g,sheetArea:1})),1==(1&d)&&s<0&&(n=a,i=c,p=l,S=W(X(o,2),X(u,2)),a<0&&(n=0,p=Q(o)),L(o,u,n,i=c<0?0:i,0,0,p,S,t,e,{pasteSkipInvisibleRange:g,sheetArea:2})),w=a,b=s,C=c,y=f,M=l,k=r,T=Q(u),x=X(u),a<0&&(w=0,M=W(Q(o),T)),s<0&&(b=0,k=W(X(o),x)),c<0&&(C=0),f<0&&(y=0),G=k,v)for(I=B=0;I<M&&C+I<T;I++)if(g&&0===u.getRowHeight(C+I))M++;else{if(!q(C+I,h,u))for(k=G,N=P=0;N<k&&y+N<x;N++)g&&0===u.getColumnWidth(y+N)?k++:(e(u,C+I,y+N,D(H=t(o,R=w+(m?P:B),E=b+(m?B:P),3)),3),P++);B++}else{U=new _.Rf;try{for(I=0;I<M;I++)for(N=0;N<k;N++)H=t(o,R=w+(m?N:I),E=b+(m?I:N),3),A(H)||U.set(I,N,D(H));for(I=B=0;I<M&&C+I<T;I++)if(g&&0===u.getRowHeight(C+I))M++;else{if(!q(C+I,h,u))for(k=G,N=P=0;N<k&&y+N<x;N++)g&&0===u.getColumnWidth(y+N)?k++:(e(u,C+I,y+N,U.get(B,P),3),P++);B++}}catch(t){}}},i.prototype.copyOrMoveConditionalFormat=function(){var t,e,n,i,r,o,a,s,u,c,e,f,t,l,h,i,n,e=this,n=e.src,i=e.dest,r=e.srcRow,o=e.srcColumn,a=e.destRow,s=e.destColumn,u=e.copyRowCount,c=e.copyColumnCount,e=e.isMove,f=this.options.ignorePasteSkipInvisibleRange,t=null==(t=this.options.pasteSpecialOptions)?void 0:t.transpose,l=n.conditionalFormats,h=i.conditionalFormats,i=v(n,i);l&&h&&!n.EB&&(n=l.jB(r,o,h,a,s,u,c,i,f,t),e)&&l.OB(r,o,u,c,n,i)},i.prototype.copyOrMoveSparkline=function(){var t,e,n,i,r,o,a,s,u,t,c,f,l,t=this,e=t.src,n=t.dest,i=t.srcRow,r=t.srcColumn,o=t.destRow,a=t.destColumn,s=t.copyRowCount,u=t.copyColumnCount,t=t.isMove,c=this.options.ignorePasteSkipInvisibleRange;i<0&&(i=0,s=W(Q(e),Q(n))),o<0&&(o=0),r<0&&(r=0,u=W(X(e),X(n))),a<0&&(a=0),(f=!(e===n&&e.name()===n.name()))?(l=n.RB)&&(t?0<e.RB.count()&&l.BB(e,i,r,o,a,s,u):l.LB(e,i,r,o,a,s,u,B,c)):(l=e.RB)&&(t?0<l.count()&&l.iE(i,r,o,a,s,u):l.tE(i,r,o,a,s,u,B,c))},i.prototype.copyOrMoveColumnRangeGroup=function(){var t,e,n,i,r,o,t,a,s,u,t=this,e=t.src,n=t.srcColumn,i=t.dest,r=t.destColumn,o=t.copyColumnCount,t=t.isMove;n<0&&(n=0,o=W(X(e),X(i))),r<0&&(r=0),a=e.columnOutlines,s=i.columnOutlines,(u=!(e===i&&e.name()===i.name()))?a&&s&&s.FB(a,n,r,o,t):a&&a.PB(n,r,o,t)},i.prototype.copyOrMoveRowRangeGroup=function(){var t,e,n,i,r,o,t,a,e,i,t=this,e=t.src,n=t.srcRow,i=t.dest,r=t.destRow,o=t.copyRowCount,t=t.isMove;n<0&&(n=0,o=W(Q(e),Q(i))),r<0&&(r=0),a=!(e===i&&e.name()===i.name()),e=e.rowOutlines,i=i.rowOutlines,a?e&&i&&i.FB(e,n,r,o,t):e&&e.PB(n,r,o,t)},i.prototype.copyOrMoveSpan=function(){var t,e,n,i,r,o,a,s,u,c,e,t,f,l,e=this,n=e.src,i=e.srcRow,r=e.srcColumn,o=e.dest,a=e.destRow,s=e.destColumn,u=e.copyRowCount,c=e.copyColumnCount,e=e.isMove,t=null==(t=this.options.pasteSpecialOptions)?void 0:t.transpose,f=i,l=r;f<0&&(f=0,u=W(Q(n),Q(o))),a<0&&(a=0),l<0&&(l=0,c=W(X(n),X(o))),s<0&&(s=0),i<0&&h(n,-1,l,o,-1,s,-1,c,e,1,t),r<0&&h(n,f,-1,o,a,-1,u,-1,e,2,t),h(n,f,l,o,a,s,u,c,e,V.SheetArea.viewport,t)},i.prototype.copyOrMoveColumnAxis=function(){var t,e,n,i,r,o,a,t,s,u,c,t,f,l,h,d,v,g,m,p,S,w,b,C,y,M,k,T,t=this,e=t.src,n=t.srcColumn,i=t.dest,r=t.destColumn,o=t.copyColumnCount,a=t.isMove,t=this.options,s=t.copyToOption,u=t.ignorePasteSkipInvisibleRange,c=t.ignoreSheet;for(n<0&&(n=0,o=W(X(e),X(i))),t=o,r<0&&(r=0),f=!u&&i.o5(),l=1,h=[],v=d=0;d<o&&d<X(i,1);d++)f&&0===i.getColumnWidth(r+d)?o++:(g={},0<(64&s)&&(m=E(e,v+n),A(m)||(g.size=m,a&&I(e,d+n,e.defaults.colWidth)),p=e.getColumnVisible(v+n),A(p)||(g.visible=p,a&&e.setColumnVisible(d+n,!0)),S=N(e,-1,v+n,B,c),g.style=S,a&&R(e,-1,d+n,z),S=N(e,-1,v+n,1,c),g.headerStyle=S,a&&R(e,-1,d+n,z,1),w=e.Lt(v+n),A(w)||(g.columnHeaderFitMode=w,a&&e.GB(d+n,V.ColumnHeaderFitMode.normal))),0<(128&s)&&(b=e.getTag(-1,v+n),A(b)||(g.tag=b,a&&e.setTag(-1,d+n,B))),h[v+n]=g,v++);for(o=t,v=d=0;d<o&&d<X(i,1);d++)f&&0===i.getColumnWidth(r+d)?o++:(g=h[v+n],0<(64&s)&&(m=g.size,A(m)||I(i,d+r,m),p=g.visible,A(p)||i.setColumnVisible(d+r,p),R(i,-1,d+r,(S=g.style)?S.clone():z),R(i,-1,d+r,(S=g.headerStyle)?S.clone():z,1),w=g.columnHeaderFitMode,A(w)||i.GB(d+r,w)),0<(128&s)&&(b=g.tag,A(b)||i.setTag(-1,d+r,b)),v++);for(C=Q(i,1),y=W(Q(e,1),C),k=M=0;M<y&&M<C;M++)f&&0===i.getRowHeight(M,1)?y++:(T=H(e,k,1),A(T)||(a&&P(e,M,e.defaults.colHeaderRowHeight,1),P(i,M,T,1)),k++)},i.prototype.copyOrMoveRowAxis=function(){var t,e,n,i,r,o,a,t,s,u,c,f,t,l,h,d,v,g,m,p,S,w,b,C,y,M,k,T,x,G,t=this,e=t.src,n=t.srcRow,i=t.dest,r=t.destRow,o=t.copyRowCount,a=t.isMove,t=this.options,s=t.copyToOption,u=t.ignoreFilteredOutRow,c=t.ignorePasteSkipInvisibleRange,f=t.ignoreSheet;for(n<0&&(n=0,o=W(Q(e),Q(i))),t=o,r<0&&(r=0),l=!c&&i.o5(),h=2,d=[],g=v=0;v<o&&r+v<Q(i,2);v++)l&&0===i.getRowHeight(r+v)?o++:(!a&&q(r+v,u,i)||(m={},0<(64&s)&&(p=H(e,g+n),A(p)||(m.size=p,a&&P(e,v+n,e.defaults.rowHeight)),S=e.getRowVisible(g+n),A(S)||(m.visible=S,a&&e.setRowVisible(v+n,!0)),w=N(e,g+n,-1,B,f),m.style=w,a&&R(e,v+n,-1,z),w=N(e,g+n,-1,2,f),m.headerStyle=w,a)&&R(e,v+n,-1,z,2),0<(128&s)&&(b=e.getTag(g+n,-1),A(b)||(m.tag=b,a&&e.setTag(v+n,-1,B))),d[g+n]=m),g++);for(o=t,C=i.rowFilter&&i.rowFilter()&&i.rowFilter().extendedRange,g=v=0;v<o&&r+v<Q(i,2);v++)y=r+v,l&&0===i.getRowHeight(y)?o++:(!a&&q(y,u,i)||(m=d[g+n],0<(64&s)&&(p=m.size,A(p)||P(i,y,p),S=m.visible,A(S)||(C&&C.intersect(y,-1,1,0)?i.filterRowsVisibleInfo.rowsVisibleInfo[y]=!!S:i.setRowVisible(y,S)),R(i,y,-1,(w=m.style)?w.clone():z),R(i,y,-1,(w=m.headerStyle)?w.clone():z,2)),0<(128&s)&&(b=m.tag,A(b)||i.setTag(y,-1,b))),g++);for(M=X(i,2),k=W(X(e,2),M),x=T=0;T<k&&T<M;T++)l&&0===i.getColumnWidth(T,2)?k++:(G=E(e,x,2),A(G)||(a&&I(e,T,e.defaults.rowHeaderColWidth,2),I(i,T,G,2)),x++)},i.prototype.copyOrMoveSheetInfo=function(){var t,e,n,t,i,i,i,n,t=this,e=t.src,n=t.dest,t=t.isMove,i=this.options.copyToOption;e===n&&e.name()===n.name()||(0<(64&i)&&(i=o(e),a(n,t?i:i.clone()),i=o(e,1),a(n,t?i:i.clone(),1),i=o(e,2),a(n,t?i:i.clone(),2),t)&&(a(e,z),a(e,z,1),a(e,z,2)),i=n.defaults,n=e.defaults,i.colWidth=n.colWidth,i.rowHeight=n.rowHeight,i.rowHeaderColWidth=n.rowHeaderColWidth,i.colHeaderRowHeight=n.colHeaderRowHeight,t&&(n.colWidth=62,n.rowHeight=20,n.rowHeaderColWidth=40,n.colHeaderRowHeight=20))},i.prototype.copyValue=function(){var o,t,t,e,n,i,r,u,a,s,c,e,t,f,l,h,t,d,v,g,m,o=this,e=this,n=e.src,i=e.srcRow,r=e.srcColumn,u=e.dest,a=e.destRow,s=e.destColumn,c=e.copyRowCount,e=e.copyColumnCount,t=this.options,f=t.copyToOption,l=t.treatRichTextAsNormal,h=null==(t=this.options.pasteSpecialOptions)?void 0:t.skipBlanks,t=null==(t=this.options.pasteSpecialOptions)?void 0:t.transpose,d;0<(2&f)&&K&&(v=T.apply(void 0,p(p([n,u,i,r],C(c,e,t),!1),[a,s],!1))),this.Ope(g=function(t,e,n,i){var r,o,a,s,a,a,s,r,a=l?0:1,s=t.Ut;return 3===i?o=v&&v[e]&&v[e][n]?B:t.getValueIgnoreDefault(e,n,i,a):(o=s.getValue(e,n,i,!0,a),1===i&&A(o)&&u.UB&&(a=t.H3)&&a._dataSource&&(a=s.q_(!1,3,n),s=t.options.colHeaderAutoTextIndex,a)&&(0<=s&&e===s||-1===s&&e===Q(t,i)-1)&&(o=a.displayName||a.name)),o},m=function(t,e,n,i,r){A(i)?h?o.jpe.set(e,n,!0):t.YI(e,n,z,r,!!t.HB,!0):A(i)||t.YI(e,n,i,r,!!t.HB,!0)})},i.prototype.moveValue=function(){var t,s,u,c,f,o,a,l,h,t,e,d,n,v,g,m,p,S,i,r,w,b,t=this,s=t.src,u=t.srcRow,c=t.srcColumn,f=t.dest,o=t.destRow,a=t.destColumn,l=t.copyRowCount,h=t.copyColumnCount,t=this.options,e=t.copyToOption,d=t.treatRichTextAsNormal,n,v={},g={},m=[];0<(2&e)&&K&&(p=s.Uw(3).t8,S=f.Uw(3).t8,(i=p&&p.jme(u,c,l,h)).forEach(function(t){var e,n,i,r,o,a;if(t.minX>=u&&t.minY>=c)if(!t.isValid||t.maxX<u+l&&t.maxY<c+h)m.push(t);else{for(e=[],n=t.minX;n<=t.maxX;n++)for(e.push(i=[]),r=t.minY;r<=t.maxY;r++)i.push(s.getValueIgnoreDefault(n,r,3));m.push(t),t._v=e,p.Rme(t,!1,!0)}else for(o=W(t.maxX,u+l-1),a=W(t.maxY,c+h-1),n=J(t.minX,u);n<=o;n++)for(v[n]=v[n]||{},r=J(t.minY,c);r<=a;r++)v[n][r]=1}),(r=S&&S.jme(o,a,l,h)).forEach(function(t){var e,n,i,r;if(!(0<=m.indexOf(t)))if(t.minX>=o&&t.minY>=a)S.Rme(t,!0,!0,!0);else if(t.isValid)for(e=W(t.maxX,o+l-1),n=W(t.maxY,a+h-1),i=J(t.minX,o);i<=e;i++)for(g[i]=g[i]||{},r=J(t.minY,a);r<=n;r++)g[i][r]=t})),this.Ope(w=function(t,e,n,i){var r,o,a,s,a,a,u,r=3===i,a=d?0:1,s=t.Ut;return r?o=v&&v[e]&&v[e][n]?B:t.getValueIgnoreDefault(e,n,i,a):(o=s.getValue(e,n,i,!0,a),1===i&&A(o)&&f.UB&&(a=t.H3)&&a._dataSource&&(a=s.q_(!1,3,n),u=t.options.colHeaderAutoTextIndex,a)&&(0<=u&&e===u||-1===u&&e===Q(t,i)-1)&&(o=a.displayName||a.name)),A(o)||(r?t.YI(e,n,z,i,!1,!0):s.do("setValue",e,n,z,i,!0,!0)),o},b=function(t,e,n,i,r){var o=g&&g[e]&&g[e][n];A(i)?o&&o.isValid||t.YI(e,n,z,r,!!t.HB,!0):(o&&o.isValid&&S.Rme(o,!0,s.Ut.G8),t.YI(e,n,i,r,!!t.HB,!0))}),(m=m.map(function(t){p.Lme(t,!0);var e={minX:t.minX+o-u,minY:t.minY+a-c,maxX:t.maxX+o-u,maxY:t.maxY+a-c,_v:t._v,isValid:t.isValid};return t._v=null,e})).forEach(function(t){t._v?S.setArray(t.minX,t.minY,t.maxX-t.minX+1,t.maxY-t.minY+1,t._v,!1,!0):S.Bme(t,!0)})},i.prototype.copyMoveStyle=function(a){var d,t,t,s,u,v,t,c,g,m,e,n,d=this,s=this.isMove,u=this.options.ignoreSheet,v=null==(t=this.options.pasteSpecialOptions)?void 0:t.skipBlanks,t=null==(t=this.options.pasteSpecialOptions)?void 0:t.advancedPasteOptions,c=null==t?void 0:t.usingSourceTheme,g=null==t?void 0:t.noBorder,m=null==t?void 0:t.numberFormats,e,n;this.Ope(function(t,e,n,i){var r,o,r=(3===i||A(i))&&a&&a[e]&&a[e][n];return c?delete(o=t.getActualStyle(e,n,i,B,B,B,u)).themeFont:o=t.getCompositeStyle(e,n,i,B,B,B,B,r,B,B,u),s&&o&&R(t,e,n,z,i),o},function(t,e,n,i,r){var o,o,a,s,u,c,f,l,h,o;v&&d.jpe.get(e,n)||(m&&(o=i.formatter,(i=(i=t.getStyle(e,n))||new w.Style).formatter=o),g&&(a=(o=t.getCompositeStyle(e,n)).diagonalUp,s=o.diagonalDown,u=o.borderTop,c=o.borderBottom,f=o.borderLeft,l=o.borderRight,h=o.borderHorizontal,o=o.borderVertical,Object.assign(i,{diagonalUp:a,diagonalDown:s,borderTop:u,borderBottom:c,borderLeft:f,borderRight:l,borderHorizontal:h,borderVertical:o})),R(t,e,n,i,r))})},i.prototype.copyMoveValidator=function(){var t,r,e,n,o,i,a,s,u,c,f,l,l,l,h,d,t=this,r=t.src,e=t.srcRow,n=t.srcColumn,o=t.dest,i=t.copyRowCount,a=t.copyColumnCount,s=t.isMove,u=r.b8.YB;for(c in u)(f=u[c])&&(l=f._S,s&&r===o&&l&&(l=l.some(function(t){return t.contains(e,n,i,a)&&!t.equals(new _.Range(e,n,i,a))}),f.Epe=l),l=f.condition())&&l.initExpression();this.Ope(h=function(t,e,n){var i=t.getDataValidator(e,n,3);return i&&(s&&t.setDataValidator(e,n,z),v(r,o))&&(i.ZB=!0),i},d=function(t,e,n,i){t.setDataValidator(e,n,i),v(r,o)&&i&&delete i.ZB},{copyPasteHeaders:0})},i.prototype.copyMoveComment=function(){var t,r,o,e,n,r=this.isMove,o=null==(t=this.options.pasteSpecialOptions)?void 0:t.skipBlanks,e,n;this.Ope(function(t,e,n){var t,i,t=t.Ut.pI,i=t&&t.get(e,n);return i&&r&&t.remove(e,n),i},function(t,e,n,i){var t;o&&!i||(t=t.Ut.pI)&&t.WB(e,n,i)},{copyPasteHeaders:0})},i.prototype.copyMoveMultiColumnPrecedents=function(){var h,t,e,h=this.isMove,t,e;this.Ope(function(t,e,n){var i,r,o,a,s,u,c,f,l,l,i=t.Rpe&&t.Rpe(),r=[],o=t.name();if(i)for(a=0,s=i.length;a<s;a++)if(u=i[a])for(c=0,f=u.length;c<f;c++)(l=u[c])&&(h&&(u[c]=l.filter(function(t){return t.row!==e||t.col!==n||t.targetSheetName!==o})),l=l.filter(function(t){return t.row===e&&t.col===n&&t.targetSheetName===o})[0])&&r.push({row:a,col:c,dataSource:l.dataSource,dependSheetName:l.dependSheetName});return r},function(i,r,o,t){var a;t&&t.length&&(a=i.Rpe&&i.Rpe(),t.forEach(function(e){var t=e.row,n=e.col;void 0===a[t]&&(a[t]=[]),void 0===a[t][n]&&(a[t][n]=[]),a[t][n].some(function(t){return t.row===r&&t.col===o&&t.dataSource===e.dataSource&&t.targetSheetName===e.targetSheetName})||a[t][n].push({row:r,col:o,dataSource:e.dataSource,dependSheetName:e.dependSheetName,targetSheetName:i.name()})}))},{copyPasteHeaders:0})},i.prototype.copyMoveTag=function(){var r,t,e,r=this.isMove,t,e;this.Ope(function(t,e,n,i){var i=t.getTag(e,n,i);return!A(i)&&r&&t.setTag(e,n,B),i},function(t,e,n,i,r){t.setTag(e,n,i,r)})},i.prototype.copyMoveBindingPath=function(){var t,a,s,u,e,n,i,r,o,c,t,f,l,h,d,v,g,m,p,S,w,b,C,y,M,k,t=this,a=t.src,s=t.srcRow,u=t.srcColumn,e=t.dest,n=t.destRow,i=t.destColumn,r=t.copyRowCount,o=t.copyColumnCount,c=t.isMove,t=this.options.ignorePasteSkipInvisibleRange,f=[],l=[],h={},d={},v=!t&&e.o5();if(v){for(g=r,m=o,g+=e.lT(n,g,!0),m+=e.lT(i,m),p=e.getRowCount(),S=e.getColumnCount(),b=w=0;w<g&&w+n<p;w++)0!==e.getRowHeight(n+w)&&(h[b]=w,b++);for(y=C=0;C<m&&C+i<S;C++)0!==e.getColumnWidth(i+C)&&(d[y]=C,y++)}return this.Ope(M=function(t,e,n){var i,r,o,i=t.getBindingPath&&t.getBindingPath(e,n);return i&&(r=e-J(0,s),o=n-J(0,u),v&&(r=h[r],o=d[o]),f.push({row:r,col:o,value:t.getValue(e,n)}),c)&&(a.setTemplateCell?a.setTemplateCell(e,n,z):a.setBindingPath&&a.setBindingPath(e,n,z)),i},k=function(t,e,n,i){A(i)&&(!t.getBindingPath||A(t.getBindingPath(e,n)))||(t.setTemplateCell?t.setTemplateCell(e,n,B):t.setBindingPath&&t.setBindingPath(e,n,B),l.push({sheet:t,r:e,c:n,value:i}))},{copyPasteHeaders:0}),{savedValues:f,bindingPathInfos:l}},i.prototype.copyMoveDefaultValue=function(){var t,u,c,f,l,h,d,v,g,m,e,n,t=this,u=t.src,c=t.srcRow,f=t.srcColumn,l=t.dest,h=t.destRow,d=t.destColumn,v=t.isMove,g={},m={},e,n;return this.Ope(function(t,e,n,i){var r,o,a,o,s,u,r,r=t.Ut,o=r.yle(i),a=o.getValue(e,n),o=o.getExpression(e,n),s=e-c,u=n-f;return g[s]||(g[s]={}),v&&!m[s]&&(m[s]={}),v&&(A(a)||r.setDefaultValue(e,n,z,i,V.DefaultChangeValueType.Value,!0),A(o)||r.setDefaultValue(e,n,z,i,V.DefaultChangeValueType.Expression,z,!0)),o?(r=t.getValueIgnoreDefault(e,n,i),A(r)?z:(g[s][u]=1,v&&(m[s][u]={expr:o}),o)):(g[s][u]=0,a)},function(t,e,n,i,r){var t,o,a,s,o,o,t=t.Ut,o=t.yle(r),a=e-h,s=n-d;A(i)&&A(o.getValue(e,n))||(o=g[a][s],K&&1===o?v?(o=m[a][s])&&(o.destRow=e,o.destCol=n):(0,S.copyDefaultFormula)(u,l,e,n,i):t.setDefaultValue(e,n,i,r,V.DefaultChangeValueType.Value))}),m},i.prototype.copyMoveHyperlink=function(){var r,t,e,r=this.isMove,t,e;this.Ope(function(t,e,n,i){var i=t.getHyperlink&&t.getHyperlink(e,n,i);return!A(i)&&r&&t.setHyperlink&&t.setHyperlink(e,n,B),i},function(t,e,n,i,r){t.setHyperlink&&t.setHyperlink(e,n,i,r)})},i.prototype.copyMoveAltText=function(){var r,t,e,r=this.isMove,t,e;this.Ope(function(t,e,n,i){var i=t.getAltText(e,n,i);return!A(i)&&r&&t.setAltText(e,n,B),i},function(t,e,n,i,r){t.setAltText(e,n,i,r)})},i.prototype.copyCellLink=function(){var t,e,i,r,o,a,s,n,u,e,i=!(this.src===this.dest&&this.src.name()===this.dest.name())?(0,_.i2e)(this.src.name())+"!":"",r=1===(null==(t=this.src.parent)?void 0:t.options.referenceStyle),o=(0,_.rangeToFormula)(new _.Range(this.srcRow,this.srcColumn,1,1),this.destRow,this.destColumn,15,!0),a=1===this.copyRowCount&&1===this.copyColumnCount,s=(0,_.rangeToFormula)(new _.Range(this.srcRow,this.srcColumn,1,1),0,0,0,r),n,u;this.Ope(function(t,e,n){return a?i+s:r?i+o:i+(0,_.rangeToFormula)(new _.Range(e,n,1,1),0,0,15)},function(t,e,n,i){t.setFormula(e,n,i)})},i.prototype.copyColumnWidth=function(){var t,e,t,e;this.Ope(function(t,e,n){return t.getColumnWidth(n)},function(t,e,n,i){t.setColumnWidth(n,i)})},tt=i,t.staticMembers={copyTo:function(t,e,n,i,r,o,a,s,u,c,f,l,h,d,v){var g;m(t,e,n,i,r,o,a,s,!1,{copyPasteHeaders:f,ignorePasteSkipInvisibleRange:l,treatRichTextAsNormal:h,ignoreFilteredOutRow:c,copyToOption:u,pasteSpecialOptions:d},v)},moveTo:function(t,e,n,i,r,o,a,s,u,c,f,l){var h,d,h=3;m(t,e,n,i,r,o,a,s,!0,d={copyToOption:u,ignorePasteSkipInvisibleRange:f,treatRichTextAsNormal:l,ignoreSheet:c,copyPasteHeaders:h=t===i&&t.NMi?0:h})}}},"./dist/core/worksheet/worksheet-ui.js":function(t,e,c){"use strict";var n,u,i,m,r,o,a,s,f,l,h,d,g,v,a,p;function S(t){return"number"==typeof t}function w(t){return"string"==typeof t}function b(t){return parseInt(t,10)}function C(t){return Math.abs(t)}function y(t,e){var u=t,c=e;return function(t){var e,n,i,r,o,a,s,e=this,n=e.sheet,i=e.row,r=e.col,o=e.sheetArea;if(0===arguments.length)return u.call(n,i,r,o);if(0<=i&&0<=r)for(a=i;a<i+e.rowCount;a++)for(s=r;s<r+e.colCount;s++)M(n,a,s,o)&&c.call(n,a,s,t,o);return e}}function M(t,e,n,i){var r,t,r=t.getRowCount(i),t=t.getColumnCount(i);return n<0&&0<=e&&e<r||e<0&&0<=n&&n<t||0<=e&&e<r&&0<=n&&n<t||-1===e&&-1===n}function k(t,e,n,i,r,o){var a,s;M(t,e,n,o)&&("string"==typeof(a=(a=t.vI(e,n,o))||new u.Style)&&(s=a,(a=new u.Style).parentName=s),"font"!==i&&"fontFamily"!==i||T(t,a,i,r),a[i]=r,t.setStyle(e,n,a,o))}function T(t,e,n,i){var r,o;v(e.themeFont)||(r=null==e?void 0:e.fontFamily,o=i,(o="font"===n?f.W.vpe(i).fontFamily:o)!==r&&(e.themeFont=d))}function x(t,e,n,i,r,o){var a=this;e<0&&(e=i=-1),n<0&&(n=r=-1),a.sheet=t,a.row=e,a.rowCount=v(i)?1:i,a.col=n,a.colCount=v(r)?1:r,a.sheetArea=v(o)?3:o}function G(t){return t=(t=t.replace(/[^\:]+\!/g,"")).replace(/\$/g,"")}function B(t){var t,e,t,n,i,r,r,o,a,s,e,u,n,c,f,l,h,d,v,t=t.split(":"),e=t[0],t=t[1],n=/([A-Z]+)(\d+)?(\D+)?/;if(isNaN(Number(e))){if(o=(r=e.match(n))[3])return g;i=r[1],r=r[2]}else r=e;if(e&&!t){if(i&&r)return[a=I(r),s=P(i),1,1]}else if(e&&t){if(u=e=void 0,isNaN(Number(t))){if(o=(n=t.match(n))[3])return g;e=n[1],u=n[2]}else u=t;if(!i&&r&&!e&&u)return c=I(r),f=I(u),[a=Math.min(c,f),-1,l=C(c-f)+1,-1];if(i&&!r&&e&&!u)return h=P(i),d=P(e),[-1,s=Math.min(h,d),-1,v=C(h-d)+1];if(i&&r&&e&&u)return c=I(r),f=I(u),h=P(i),d=P(e),a=Math.min(c,f),l=C(c-f)+1,[a,s=Math.min(h,d),l,v=C(h-d)+1]}return g}function I(t){return b(t)-1}function P(t){for(var e,n,i,r,o,a,e=64,n=26,i=0,r=t.length,o=0;o<r;o++)a=t[o].charCodeAt(0)-64,i+=Math.pow(26,r-o-1)*a;return i-1}Object.defineProperty(e,"__esModule",{value:!0}),e.$B=e.tL=e.CellRange=void 0,n=c("./dist/core/worksheet/worksheet.js"),u=c("./dist/core/worksheet/style.js"),i=c("./dist/core/util/domUtil.js"),m=c("./dist/core/util/common.js"),r=c("Common"),o=c("./dist/core/core.enum.js"),a=c("CalcEngine"),s=c("./dist/core/worksheet/clipboardhelper.js"),f=c("./dist/core/worksheet/stylehelper.js"),l=!!a,h=m.util.N0,d=void 0,g=null,v=r.Common.lt.ht,a=n.Worksheet.prototype,x.prototype.tag=function(t){var e=this,n=e.sheet,i=e.row,r=e.col,o=e.rowCount,a=e.colCount,s=e.sheetArea,u,c;if(0===arguments.length)return n.getTag(i,r,s);if(0<=i&&0<=r)for(u=i;u<i+o;u++)for(c=r;c<r+a;c++)n.setTag(u,c,t,s);else if(0<=i)for(u=i;u<i+o;u++)n.setTag(u,-1,t,s);else if(0<=r)for(c=r;c<r+a;c++)n.setTag(-1,c,t,s);return e},x.prototype.altText=function(t){var e=this,n=e.sheet,i=e.row,r=e.col,o=e.rowCount,a=e.colCount,s=e.sheetArea,u,c;if(0===arguments.length)return n.getAltText(i,r,s);if(0<=i&&0<=r)for(u=i;u<i+o;u++)for(c=r;c<r+a;c++)n.setAltText(u,c,t,s);return e},x.prototype.width=function(t){var e,n,i,r,o,a,e=this,n=e.sheet,i=e.row,r=e.col,o=e.sheetArea;if(0!==arguments.length){if(i<0)for(a=0;a<e.colCount;a++)n.setColumnWidth(a+r,t,o);return e}if(i<0)return n.getColumnWidth(r,o)},x.prototype.height=function(t){var e,n,i,r,o,a,e=this,n=e.sheet,i=e.row,r=e.col,o=e.sheetArea;if(0!==arguments.length){if(r<0)for(a=0;a<e.rowCount;a++)n.setRowHeight(a+i,t,o);return e}if(r<0)return n.getRowHeight(i,o)},x.prototype.visible=function(t){var e,n,i,r,o,a,s,e=this,n=e.sheet,i=e.row,r=e.col,o=e.sheetArea;if(0===arguments.length)return r<0&&0<=i?n.getRowVisible(i,o):0<=r&&i<0?n.getColumnVisible(r,o):void 0;if(r<0&&0<=i)for(a=0;a<e.rowCount;a++)n.setRowVisible(a+i,t,o);else if(0<=r&&i<0)for(s=0;s<e.colCount;s++)n.setColumnVisible(s+r,t,o);return e},x.prototype.resizable=function(t){var e,n,i,r,o,a,s,e=this,n=e.sheet,i=e.row,r=e.col,o=e.sheetArea;if(0===arguments.length)return r<0&&0<=i?n.getRowResizable(i,o):0<=r&&i<0?n.getColumnResizable(r,o):void 0;if(r<0&&0<=i)for(a=0;a<e.rowCount;a++)n.setRowResizable(a+i,t,o);else if(0<=r&&i<0)for(s=0;s<e.colCount;s++)n.setColumnResizable(s+r,t,o);return e},x.prototype.l0=function(t){var e=this;return e.sheet.l0(e.row,e.col,t,e.sheetArea)},x.prototype.R5=function(n,i){var t=this,r=t.sheet,o=t.sheetArea;return t.nL(function(t,e){k(r,t,e,n,i,o)}),t},x.prototype.nL=function(t){var e,n,i,r,o,a,e=this,n=e.sheet,i=e.row+e.rowCount,r=e.col+e.colCount;if(n.suspendPaint(),0<=e.row&&0<=e.col)for(o=e.row;o<i;o++)for(a=e.col;a<r;a++)t.call(e,o,a);else if(0<=e.row)for(o=e.row;o<i;o++)t.call(e,o,-1);else if(0<=e.col)for(a=e.col;a<r;a++)t.call(e,-1,a);else-1===e.row&&-1===e.col&&-1===e.rowCount&&-1===e.colCount&&t.call(e,-1,-1);n.resumePaint()},x.prototype.setStyleName=function(n){var i=this;i.nL(function(t,e){i.sheet.setStyleName(t,e,n,i.sheetArea)})},x.prototype.setStyle=function(n){var i=this;i.nL(function(t,e){i.sheet.setStyle(t,e,n.clone(),i.sheetArea)})},x.prototype.clear=function(t){var e=this;e.sheet.clear(e.row,e.col,e.rowCount,e.colCount,e.sheetArea,t)},x.prototype.setBorder=function(t,e){var n,i,r,o,a,s,u,c,f,l,h,d,v,g,n=this,i=n.sheet,r=n.sheetArea;i.suspendPaint();try{if(o=new m.Range(n.row,n.col,n.rowCount,n.colCount),s=(a=i.JS(o,r)).row,u=a.col,c=a.rowCount,f=a.colCount,h=l=void 0,d=e.all,v=e.outline,g=e.inside,e.left||d||v)for(l=0;l<c;l++)i.getCell(s+l,u,r).borderLeft(t);if(e.top||d||v)for(h=0;h<f;h++)i.getCell(s,u+h,r).borderTop(t);if(e.right||d||v)for(l=0;l<c;l++)i.getCell(s+l,u+f-1,r).borderRight(t);if(e.bottom||d||v)for(h=0;h<f;h++)i.getCell(s+c-1,u+h,r).borderBottom(t);if(e.diagonalUp)for(l=0;l<c;l++)for(h=0;h<f;h++)i.getCell(s+l,u+h,r).diagonalUp(t);if(e.diagonalDown)for(l=0;l<c;l++)for(h=0;h<f;h++)i.getCell(s+l,u+h,r).diagonalDown(t);if(e.innerHorizontal||d||g)for(l=0;l<c-1;l++)for(h=0;h<f;h++)i.getCell(s+l,u+h,r).borderBottom(t),i.getCell(s+l+1,u+h,r).borderTop(t);if(e.innerVertical||d||g)for(h=0;h<f-1;h++)for(l=0;l<c;l++)i.getCell(s+l,u+h,r).borderRight(t),i.getCell(s+l,u+h+1,r).borderLeft(t)}finally{i.resumePaint()}},x.prototype.toHtml=function(t,e){void 0===t&&(t=o.HeaderOptions.noHeaders),void 0===e&&(e=!0);var n=this;return n.sheetArea===o.SheetArea.corner?"":s.yM.KS(n.sheet,t,n.row,n.rowCount,n.col,n.colCount,n.sheetArea,e,[],[],!0,!0,e,!0)},x.p0=y,p=x,(e.CellRange=p).prototype.value=y(a.getValue,a.setValue),p.prototype.text=y(a.getText,a.setText),p.prototype.D5=y(function(t,e){return l&&this.getFormula(t,e)},function(t,e,n,i){l&&this.setFormula(t,e,n,i)}),p.prototype.formula=function(t,e){if(!e)return 0===arguments.length?this.D5():this.D5(t);l&&this.sheet.eL(this.row,this.col,this.rowCount,this.colCount,t)},p.prototype.defaultValue=y(a.getDefaultValue,a.setDefaultValue),p.prototype.styleName=y(a.getStyleName,a.setStyleName),i.GC$.each(["backColor","foreColor","hAlign","vAlign","themeFont","font","formatter","borderLeft","borderTop","borderRight","borderBottom","diagonalDown","diagonalUp","locked","textIndent","wordWrap","showEllipsis","shrinkToFit","backgroundImage","backgroundImageLayout","cellType","tabStop","textDecoration","imeMode","watermark","cellPadding","labelOptions","quotePrefix","isVerticalText","cellButtons","dropDowns","textOrientation","mask","fontStyle","fontWeight","fontSize","fontFamily"],function(t,e){p.prototype[e]=function(t){return 0===arguments.length?this.l0(e):this.R5(e,t)}}),e.tL=B,e.$B=P,i.GC$.extend(a,{getRange:function(){var t,e,n,i,r,o,a,s,u,r,a,t=arguments[0];if(w(t)){if(a=t.toUpperCase(),s=this.parent&&1===this.parent.options.referenceStyle)return g;if(o=arguments[1],1<(a=G(a)).split(",").length)return g;if(l){if(!(r=(u=c("SheetsCalc")).formulaToRange(this,a,d,d,o)))return g;e=r.row,n=r.col,i=r.rowCount,r=r.colCount}else{if(!(a=B(a)))return g;e=a[0],n=a[1],i=a[2],r=a[3]}}else S(t)&&(e=t,n=arguments[1],i=arguments[2],r=arguments[3],o=arguments[4]);return new p(this,e,n,i,r,o)},getCell:function(t,e,n){return v(e)&&(e=-1),new p(this,t,e,1,1,n)}})},"./dist/core/worksheet/worksheet.js":function(n,t,o){"use strict";var e,T,i,r,x,R,l,a,s,P,S,f,G,m,p,C,K,z,N,W,f,J,Z,h,Q,X,q,u,$,tt,d,et,y,nt,v,B,E,H,I,b,it,M,k,rt,w,ot,at,st,c,ut,U,ct,ft,lt,ht,dt,vt,gt,mt,pt,St,e,g,wt,bt,Ct,yt,Mt,kt,e,e;function Tt(t,e){var n,i,r,o,a,s,u,n=[],i=t.Ut.Fj();if(i)for(r in i)if(X(i,r)&&(o=i[r])&&(e||"n"!==o.rs||(a={row:+r,item:t.getDataItem&&t.getDataItem(+r)},n.push(a)),e)&&"e"===o.rs)for(s in o)if(!v(s)&&(u=o[s])){(a={row:+r,item:t.getDataItem&&t.getDataItem(+r)}).originalItem=o.originalItem,n.push(a);break}return n}function F(t,e,n,i){for(var r,o,r=0,o=e;o<=n;o++)r+=t.Kt(o,i);return r}function _(t,e,n,i){for(var r,o,r=0,o=e;o<=n;o++)r+=t.Gt(o,i);return r}function A(t,e){return t.getColumnCount(e)}function L(t,e){return t.getRowCount(e)}function D(t){return t.frozenTrailingColumnCount()}function j(t){return t.frozenTrailingRowCount()}function xt(t){return t.Ny}function Gt(t){return t.Vy}function O(t){return t.frozenColumnCount()}function V(t){return t.frozenRowCount()}function Bt(t){return t.yve}function It(t){return t.bve}function Pt(t){return N(t)||t===P.SheetArea.viewport||t===P.SheetArea.rowHeader?P.SheetArea.viewport:t===P.SheetArea.colHeader?t:P.SheetArea.corner}function Nt(t){return N(t)||t===P.SheetArea.viewport||t===P.SheetArea.colHeader?P.SheetArea.viewport:t===P.SheetArea.rowHeader?t:P.SheetArea.corner}function Rt(t,e){var t,e,t=T.util._0(t.font),e=T.util._0(e.font);return t.fontStyle+" "+t.fontWeight+" "+e.fontSize+" "+e.fontFamily}function Et(t,n,i){Object.defineProperty(t,n,{get:function(){return this["_"+n]},set:function(t){var e=this["_"+n];e!==t&&(this["_"+n]=t,i)&&i(n,t,e)}})}function Ht(t,e,n,i){return{row:e,col:n,newValue:t.getValue(e,n),oldValue:i}}function Ut(t){var e,n,i,r;if(t)for(n=(e=t.sheets).length,r=0;r<n;r++)!0===(i=e[r]).iL&&delete i.iL}function Ft(t){if(!Q(t))for(var e in t)if(!N(t[e])&&!Q(t[e]))return;return 1}function Y(t){this.canClone=!0;var i=this;i._id=Y.rL,Y.rL++,i.options=J(yt,function(t,e,n){i.Ob(t,e,n)}),i.Hc(t),i.Vp=new r.Tasks(function(){return this.tasks.pop()},function(){var t=i.parent;return t&&t.ib.eb||i.rt.rb||i.rt.ob||i.rt.ab})}function _t(t,e,n,i,r){var r;-1===e&&-1===n||3===(r=N(r)?3:r)&&(r=t.tables&&t.tables.find(e,n))&&r.oL&&e===r.footerIndex()&&Mt.et(t,"composeTableFooterList",{table:r,row:e,col:n,style:i})}function At(t,e){var n,t;try{(n=S.Formatter&&S.Formatter.GeneralFormatter)&&typeof t==w&&(t=T.Be.Ue(t))}catch(t){}if((null!=t&&t.hasFormattedColor&&t.hasFormattedColor()||S.Formatter&&t instanceof S.Formatter.FormatterBase)&&(t.format(e,t={conditionalForeColor:B}),t.conditionalForeColor))return t.conditionalForeColor}Object.defineProperty(t,"__esModule",{value:!0}),t.Worksheet=t.InvalidType=t.ClearPendingChangeType=t.MAX_COLUMN_COUNT=t.MAX_ROW_COUNT=void 0,e=o("./dist/core/core.ns.js"),T=o("./dist/core/util/common.js"),i=o("./dist/core/util/imageLoader.js"),r=o("./dist/core/util/tasks.js"),x=o("./dist/core/worksheet/style.js"),R=o("./dist/core/worksheet/worksheet-model.js"),l=o("./dist/core/util/domUtil.js"),a=o("./dist/core/celltype/textcelltype.js"),s=o("./dist/core/celltype/headercelltype.js"),P=o("./dist/core/core.enum.js"),S=o("Common"),f=o("CalcEngine"),G=!!f,p=o("./dist/core/util/theme.js"),C=o("./dist/core/worksheet/stylehelper.js"),K=T.util.g0,z=T.util.St,N=S.Common.lt.ht,W=T.util.En,f=T.util.p0,J=T.util.b0,Z=T.util.x0,h=l.GC$.each,Q=l.GC$.isEmptyObject,X=S.Common.kh,q=T.util.Z0,u=T.util.V0,$=new RegExp("^\\d*(\\.\\d+)?\\*$"),tt=new Date(1899,11,30).getTime(),d=S.Common.zf,et=document,y=parseInt,nt=parseFloat,v=isNaN,B=null,E=void 0,H=Math.min,I=Math.max,b=Math.floor,it=Math.ceil,M=Math.abs,k=Math.round,rt="undefined",w="string",ot="width",at="height",st="black",c="tag",ut="altText",U="onLayoutChanged",ct="beforeLayoutChanged",ft="onPaintSuspend",lt="isVisible",ht="starSize",dt="resizable",vt="canAddingSpan",gt=".gcSheet",mt=".gcSheetInternal",pt="columnHeaderFitMode",t.MAX_ROW_COUNT=1048576,t.MAX_COLUMN_COUNT=16384,St={backColor:!0,foreColor:!0,font:!0,borderLeft:!0,borderTop:!0,borderRight:!0,borderBottom:!0,textDecoration:!0,cellType:!0,formatter:!0},e=new S.Common.ResourceManager(e.SR,"Sheets"),g=e.getResource.bind(e),wt=T.UsedRangeUtil.vh,(e=bt=t.ClearPendingChangeType||(t.ClearPendingChangeType={}))[e.dirty=1]="dirty",e[e.insert=2]="insert",e[e.delete=4]="delete",(e=Ct=t.InvalidType||(t.InvalidType={}))[e.setFormula=0]="setFormula",e[e.copyPaste=1]="copyPaste",e[e.dragFill=2]="dragFill",e[e.dragDrop=3]="dragDrop",e[e.changePartOfArrayFormula=4]="changePartOfArrayFormula",e[e.changeSheetName=5]="changeSheetName",e[e.table=6]="table",e[e.hideSheet=7]="hideSheet",e[e.pivotTable=8]="pivotTable",e[e.PTOverlapPT=9]="PTOverlapPT",yt={rowHeaderVisible:!0,colHeaderVisible:!0,clipBoardOptions:0,frozenlineColor:st,rowHeaderAutoText:1,colHeaderAutoText:2,rowHeaderAutoTextIndex:-1,colHeaderAutoTextIndex:-1,sheetTabColor:B,selectionBackColor:B,selectionBorderColor:B,allowCellOverflow:!0,showFormulas:!1,showZeros:!0,isProtected:!1,protectionOptions:{},gridline:{},reversalTrailingResizeOrder:!1,keepUnknownFormulas:!1,sheetAreaOffset:{left:0,top:0}},Y.prototype.sortRange=function(t,e,n,i,r,o,a,s,u){return!1},Y.prototype.Ob=function(t,n,e){var i,r,o,a,s,u,i=this,r=i.parent;switch(t){case"allowCellOverflow":case"showFormulas":case"showZeros":case"colHeaderAutoText":case"colHeaderAutoTextIndex":case"colHeaderVisible":case"frozenlineColor":case"rowHeaderAutoText":case"rowHeaderAutoTextIndex":case"rowHeaderVisible":case"selectionBackColor":case"selectionBorderColor":case"reversalTrailingResizeOrder":i.zw();break;case"sheetAreaOffset":o=function(t,e){e<0&&(i.options.sheetAreaOffset[t]=0),i.zw()},a=i.options.sheetAreaOffset,["left","top"].forEach(function(t){var e=n[t];Et(a,t,o),a[t]=e});break;case"gridline":s=function(){i.zw()},u=i.options.gridline,["color","showHorizontalGridline","showVerticalGridline"].forEach(function(t){var e=n[t];Et(u,t,s),u[t]=e});break;case"isProtected":n&&r&&r.undoManager().aL(function(t){return t.sheetId!==i._id}),i.uL(),Y.et(i,"onProtectChanged"),i.zw();break;case"protectionOptions":i.uL(),Y.et(i,"onProtectChanged");break;case"sheetTabColor":r&&r.Xg();break;case"keepUnknownFormulas":i.options.keepUnknownFormulas=n}i.ki(T.Events.SheetOptionsChangedInternal,{propertyName:t,value:n})},Y.prototype.getUsedRange=function(t){var e,e,n,i,r,o,a,s,e,e,e,n;return!N(t)&&(r=(i=(n=this).Ut).getUsedRange(t)||{},o=n.getRowCount(),a=n.getColumnCount(),t&P.UsedRangeType.formula&&G&&(e=(s=n.b3()).usedRange,N(e)||wt(r,e.getUsedRange()),e=n.Uw&&n.Uw(3))&&e.t8&&wt(r,e.t8.Fme()),wt(r,null==(e=n.rowOutlines)?void 0:e.getUsedRange(t)),wt(r,null==(e=n.columnOutlines)?void 0:e.getUsedRange(t)),Y.et(n,"getUsedRange",{type:t,range:r}),r)&&0<Object.keys(r).length?(r.minRow<0&&(r.minRow=0,r.maxRow=o-1),r.minCol<0&&(r.minCol=0,r.maxCol=a-1),r.maxRow>=o&&r.maxRow!==1/0&&(r.maxRow=o-1),r.maxCol>=a&&r.maxCol!==1/0&&(r.maxCol=a-1),e=r.maxRow===1/0?-1:r.maxRow-r.minRow+1,n=r.maxCol===1/0?-1:r.maxCol-r.minCol+1,new T.Range(r.minRow,r.minCol,e,n)):B},Y.prototype.name=function(t){var e=this,n=e.parent;if(0===arguments.length)return e.Ut?e.Ut.getName():"";if(Z(t,n?n.sheets:null,e))return e.ub(t),n&&n.Xg(),e;throw g().Exp_NotSupported},Y.prototype.isSelected=function(t){return this.b2(t)},Y.prototype.b2=function(t,e){var n,i,r,o,a,s,n=this,i=n.parent,r=!!n.Ut&&n.Ut.Xj();return N(t)?r:(t!==r&&(o=n.name(),a=i&&i.Ese(o),s=void 0,e&&(s={oldValue:r,newValue:t,sheetName:o,propertyName:"isSelected",cancel:!1,sheetIndex:a,sheetPosition:i&&i.getSheetPosition(o)},i)&&i.ki(T.Events.SheetChanging,s),!e||s&&!1===s.cancel)&&(n.Ut.qj(t),i&&i.w2&&i.w2.repaint(),e)&&i&&i.ki(T.Events.SheetChanged,{oldValue:r,newValue:t,sheetName:o,propertyName:"isSelected",sheetIndex:a,sheetPosition:i&&i.getSheetPosition(o)}),n)},Y.prototype.ub=function(t,e){var n,i,r,o,n=this,i=n.name(),r=n.parent;e||Y.et(n,"beforeSetName",{oldName:i,newName:t}),n.Ut.do("setName",t),r&&(o=r.sheetTabStyles.O2e[i],i!==t)&&o&&(r.sheetTabStyles.O2e[t]=o,r.sheetTabStyles.clear([i])),e||Y.et(n,"setName",{oldName:i,newName:t})},Y.prototype.addRows=function(t,e,n){this.ffe(t,e,n)},Y.prototype.ffe=function(t,e,n,i){var r,o,a,s,u;if((n=Pt(r=n=void 0===n?P.SheetArea.viewport:n))!==P.SheetArea.corner&&!(e<=0)){a=L(o=this,n),(t<0||a<t)&&(t=a),o.suspendPaint();try{s="addRows",o.kj(t,r,s,e,a)&&(0===o.Ut.P8&&o.parent&&o.parent.Wp.clear(),o.sL(!1,n),u={changeType:"addingRows",row:t,rowCount:e,canAdd:!0,sheetArea:n},Y.et(o,U,u),u.canAdd)&&(N(u.newRow)||(t=u.newRow),this.Ut.do("addRows",t,e,E,E,n),o.Ww=!0,Y.et(o,U,{changeType:s,row:t,oldValue:a,rowCount:e,rowExpand:i,sheetArea:n}),Y.et(o,U,{changeType:"addRows2",row:t,oldValue:a,rowCount:e,sheetArea:n}),n===P.SheetArea.viewport&&o.tables&&o.tables.cL(!0,t),o.dj(t,r,s,e,a))}finally{o.sL(!0,n),o.resumePaint()}}},Y.prototype.sL=function(t,e){var n,i,r;(e=void 0===e?P.SheetArea.viewport:e)===P.SheetArea.viewport&&(i=(n=this).ui,r=n.ci,n.Ut.setCellState(i,r,P.CellStatesType.active,t,e))},Y.prototype.deleteRows=function(t,e,n){var i,r,o,a,s,u,c,f,l,h,d,v,g;if((n=Pt(i=n=void 0===n?P.SheetArea.viewport:n))!==P.SheetArea.corner&&(o=L(r=this,n),!(t<0||o<=t||e<=0))){r.suspendPaint();try{if(a="deleteRows",r.kj(t,i,a,e,o)&&(0===r.Ut.P8&&r.parent&&r.parent.Wp.clear(),r.sL(!1,n),s={changeType:"deletingRows",row:t,rowCount:e,canDelete:!0,sheetArea:n},Y.et(r,U,s),s.canDelete)){if(n===P.SheetArea.viewport&&r._j(t,e,0,this.getColumnCount()),r.Ut.do("deleteRows",t,e,E,n),0<=(u=r.Tb)){for(c=-1,f=V(r),l=u;f<=l;l--)if(r.getRowVisible(l)&&0<r.Gt(l)){c=l;break}u!==(c=-1===c?0:c)&&r.$A(c)}h=L(r),r.getActiveRowIndex()>=h&&(d=h-1,v=r.getActiveColumnIndex(),(g=r.getSpan(d,v))&&(d=g.row,v=g.col),r.setActiveCell(d,v)),r.Ww=!0,Y.et(r,U,{changeType:a,row:t,oldValue:o,rowCount:e,sheetArea:n}),n===P.SheetArea.viewport&&r.tables&&r.tables.cL(!0,t),r.dj(t,i,a,e,o)}}finally{r.sL(!0,n),r.resumePaint()}}},Y.prototype.addColumns=function(t,e,n){var i,r,o,a,s;(n=Nt(i=n=void 0===n?P.SheetArea.viewport:n))===P.SheetArea.corner||e<=0||(o=A(r=this,n),r.Dj(t=t<0||o<t?o:t,i,a="addColumns",e,o)&&(0===r.Ut.P8&&r.parent&&r.parent.Wp.clear(),Y.et(r,U,s={changeType:"addingColumns",col:t,colCount:e,canAdd:!0,sheetArea:n}),s.canAdd)&&(r.sL(!1,n),r.Ut.do("addColumns",t,e,E,n),r.Zw=!0,Y.et(r,U,{changeType:a,col:t,oldValue:o,colCount:e,sheetArea:n}),Y.et(r,U,{changeType:"addColumns2",col:t,oldValue:o,colCount:e,sheetArea:n}),n===P.SheetArea.viewport&&r.tables&&r.tables.cL(!1,t),r.vj(t,i,a,e,o),r.sL(!0,n),r.zw()))},Y.prototype.deleteColumns=function(t,e,n){var i,r,o,a,s,s,u,c,f,s,l,s,h;if((n=Nt(i=n=void 0===n?P.SheetArea.viewport:n))!==P.SheetArea.corner&&(o=A(r=this,n),!(t<0||o<=t||e<=0))&&r.Dj(t,i,a="deleteColumns",e,o)&&(0===r.Ut.P8&&r.parent&&r.parent.Wp.clear(),Y.et(r,U,s={changeType:"deletingColumns",col:t,colCount:e,canDelete:!0,sheetArea:n}),s.canDelete)){if(r.sL(!1,n),n===P.SheetArea.viewport&&r._j(0,this.getRowCount(),t,e),r.Ut.do("deleteColumns",t,e,E,n),0<=(s=r.Ab)){for(u=-1,c=O(r),f=s;c<=f;f--)if(r.getColumnVisible(f)&&0<r.nn(f)){u=f;break}s!==(u=-1===u?0:u)&&r.o9(u)}s=A(r),r.getActiveColumnIndex()>=s&&(l=r.getActiveRowIndex(),(h=r.getSpan(l,s=s-1))&&(l=h.row,s=h.col),r.setActiveCell(l,s)),r.Zw=!0,Y.et(r,U,{changeType:a,col:t,oldValue:o,colCount:e,sheetArea:n}),Y.et(r,U,{changeType:"deleteColumns2",col:t,oldValue:o,colCount:e,sheetArea:n}),n===P.SheetArea.viewport&&r.tables&&r.tables.cL(!1,t),r.vj(t,i,a,e,o),r.sL(!0,n),r.zw()}},Y.prototype.frozenColumnCount=function(t,e){var n=this;if(0===arguments.length)return n.fp;n.ame(t,e)},Y.prototype.ame=function(t,e,n){var i,r,o,i=this;0<=t&&(!N(e)&&"number"==typeof e||(e=0),r=i.yve,i.fp=t,0<e?(o=i.getColumnCount(),n||H(e,t)<o?i.yve=e<t-1?e:t-1:i.yve=o-1):i.yve=0,i.Ab<t?i.Ab=t:""!==t&&0!==t&&null!==t||(i.Ab=r||0),i.Zw=!0,i.zw())},Y.prototype.frozenRowCount=function(t,e){var n=this;if(0===arguments.length)return n.ap;n.ome(t,e)},Y.prototype.ome=function(t,e,n){var i,r,o,i=this;0<=t&&(!N(e)&&"number"==typeof e||(e=0),r=i.bve,i.ap=t,0<e?(o=i.getRowCount(),n||H(e,t)<o?i.bve=e<t-1?e:t-1:i.bve=o-1):i.bve=0,i.Tb<t?i.Tb=t:""!==t&&0!==t&&null!==t||(i.Tb=r||0),i.Ww=!0,i.zw())},Y.prototype.wve=function(t){void 0===t&&(t=0);var e,n=Bt(this),i;return 0<n?n:t},Y.prototype.Mve=function(t){void 0===t&&(t=0);var e,n=It(this),i;return 0<n?n:t},Y.prototype.frozenTrailingRowCount=function(t,e){var n=this;return 0===arguments.length?n.fL:(0<=t&&(N(e)&&(e=!0),n.fL=t,n.Ny=e,n.Ww=!0,n.zw()),n)},Y.prototype.frozenTrailingColumnCount=function(t,e){var n=this;return 0===arguments.length?n.lL:(0<=t&&(N(e)&&(e=!0),n.lL=t,n.Vy=e,n.Zw=!0,n.zw()),n)},Y.prototype.getFrozenTrailingState=function(t){var e=this;return t?e.Ny:e.Vy},Y.prototype.getFrozenTopLeftIndex=function(t){var e=this;return t?e.bve:e.yve},Y.prototype.Gy=function(t){var e,n,e=Gt(this),n=t.hL;return e?n+t.Uy:n},Y.prototype.Sy=function(t){var e,n,e=xt(this),n=t.A6;return e?n+t.Ty:n},Y.prototype.getRowCount=function(t){return 0===t?0:this.Ut.getRowCount(t)},Y.prototype.getColumnCount=function(t){return 0===t?0:this.Ut.getColumnCount(t)},Y.prototype.setRowCount=function(t,e,n){var i,n,n;N(e)&&(e=3),i=this,N(n)||(n=i.getUsedRange(n),N(n))||(-1===n.rowCount&&(n.rowCount=i.getRowCount(e)),t=Math.max(t,n.row+n.rowCount)),Y.et(i,U,n={changeType:"settingRowCount",rowCount:t,sheetArea:e,canSet:!0}),n.canSet&&i.setRowCountCore(t,e)},Y.prototype.setRowCountCore=function(t,e){var n,i;t=y(t,10),v(t)||(N(e)&&(e=3),i=(n=this).getRowCount(e),t<0)||t===i||(3===e||2===e?(n.Ut.do("setRowCount",t,e),V(n)>t&&n.frozenRowCount(t)):1===e&&n.Ut.do("setRowCount",t,e),Y.et(n,U,{changeType:"setRowCount",row:i,rowCount:t,sheetArea:e}),n.Ww=!0,n.ui>=t&&(3===e||2===e)&&n.setActiveCell(t-1,n.getActiveColumnIndex()),n.zw(),n.clearPendingChanges())},Y.prototype.setColumnCount=function(t,e,n){var i,r,n;t=y(t,10),v(t)||(r=(i=this).getColumnCount(e),t<0)||t===r||(N(e)&&(e=3),N(n)||(n=i.getUsedRange(n),N(n))||(-1===n.colCount&&(n.colCount=i.getColumnCount(e)),t=Math.max(t,n.col+n.colCount)),3===e||1===e?(i.Ut.do("setColumnCount",t,e),O(i)>t&&i.frozenColumnCount(t)):2===e&&i.Ut.do("setColumnCount",t,e),Y.et(i,U,{changeType:"setColumnCount",col:r,colCount:t,sheetArea:e}),i.Zw=!0,i.ci>=t&&(3===e||1===e)&&i.setActiveCell(i.getActiveRowIndex(),t-1),i.zw(),i.clearPendingChanges())},Y.prototype.getFreeAreaRowCount=function(t){var e;return this.Ut.getFreeAreaRowCount(t)},Y.prototype.getFreeAreaColumnCount=function(t){var e;return this.Ut.getFreeAreaColumnCount(t)},Y.prototype.setFreeAreaRowCount=function(t,e){var n;this.Ut.setFreeAreaRowCount(t,e)},Y.prototype.setFreeAreaColumnCount=function(t,e){var n;this.Ut.setFreeAreaColumnCount(t,e)},Y.prototype.w8=function(t){var e,n,i,r,o;if(!N(t)&&(e=t.rows,i=!1,this.filterRowsVisibleInfo)){if(r=this.filterRowsVisibleInfo.rowsVisibleInfo||{},e&&0<e.length)for(o=0;o<e.length;o++)(n=e[o])&&n.isFilter&&(n.visible=!0,delete n.isFilter,i=!(r[o]=!1));i&&(this.filterRowsVisibleInfo.rowsVisibleInfo=r,this.filterRowsVisibleInfo.empty=!1)}},Y.prototype.Oe=function(t,e,n,i){var r=this;return(m=m||o("SheetsCalc"))?r.dL(t,e,n,i):E},Y.prototype.t0=function(t,e,n){var i,r,r,o,n,r,n,i=this;if(3===n)return i.options.showFormulas?(r=i.getFormula(t,e,3,!0))?"="!==r[0]?"="+r:r:(r=i.Uw&&i.Uw(n))&&r.t8.getAnchorInfo(t,e)?"":void 0:i.options.showZeros||!(0===(n=i.getValue(t,e,3))||n instanceof Date&&n.getTime()===tt)||(r=(r=i.getFormatter(t,e))||(n=i.getStyle(t,e))&&n._autoFormatter&&n._autoFormatter.formatCached)&&("="===r[0]||3<=r.split(";").length)?void 0:""},Y.prototype.getText=function(t,e,n){var i,r,o;return N(n)&&(n=3),r=(i=this).t0(t,e,n),N(r)?(o=i.getValue(t,e,n),i.vL(t,e,o,n,!0)):r},Y.prototype.setText=function(t,e,n,i){var r,o,a,a,s,u,c,r=this;N(i)&&(i=3),o=n,Y.et(r,"settingText",a={value:n}),a=n=a.value,s=r.getCellType(t,e,i),u=r.getFormatter&&r.getFormatter(t,e,i),s&&u&&!z(u)&&(a=s.parse(o,u,c={sheet:r,row:t,col:e,sheetArea:i}),a=N(a)?n:a),r.YI(t,e,a,i),r.zw()},Y.prototype.getValue=function(t,e,n,i){var r,o,a,s,u,a,c,i,i,r,r,i;return 0===n?B:(N(n)&&(n=3),o=(r=this).options,s=(a=r.Ut).getRowCount(n),u=a.getColumnCount(n),a=r.mL(a,t,e,n,i),1===n?N(a)&&((i=r.H3)&&i._dataSource&&(i=r.Ut.q_(!1,3,e),r=o.colHeaderAutoTextIndex,i)&&(0<=r&&t===r||-1===r&&t===s-1)&&(a=i.displayName||i.name),N(a))&&t===(c=(c=o.colHeaderAutoTextIndex)<0||s<=c?s-1:c)&&(2===(r=o.colHeaderAutoText)?a=T.util.Vf(e+1):1===r&&(a=e+1)):2===n&&N(a)&&e===(c=(c=o.rowHeaderAutoTextIndex)<0||u<=c?u-1:c)&&(2===(i=o.rowHeaderAutoText)?a=T.util.Vf(t+1):1===i&&(a=t+1)),a)},Y.prototype.setValue=function(t,e,n,i,r){this.YI(t,e,n,i,r),this.Cle()},Y.prototype.Ij=function(t,e,n,i){var r=this;!i&&G&&r.gL(t,e,n),r.Q1i&&r.Q1i(t,e,1,1,n),r.Lpe&&r.Lpe(t,e,n)},Y.prototype.Tj=function(){var t=this.conditionalFormats;t&&t.dl()},Y.prototype.Lj=function(t,a,s){var e,u;t&&t.parent&&t.parent.sheets&&(e=t.parent.sheets,u=t._id,e.forEach(function(o){var t=o.cameraShapes;t&&0<t.length&&t.forEach(function(t){var e,n,i,r;if(t.cameraImageCache&&(n=(e=t.JVV).ytV.AnV)&&(o._id===u||n.sheet&&n.sheet._id===u))for(i=0;i<a.length;i++){if(r=n.cellRange,void 0!==a[i].row&&void 0===a[i].col&&2===s&&a[i].row>=r.row&&a[i].row<r.row+r.rowCount){t.cameraImageCache=null,e.ytV.rtV&&e.mtV();break}if(void 0===a[i].row&&void 0!==a[i].col&&1===s&&a[i].col>=r.col&&a[i].col<r.col+r.colCount){t.cameraImageCache=null,e.ytV.rtV&&e.mtV();break}if(0===s){if(void 0===a[i].rowCount&&void 0===a[i].colCount&&r.contains(a[i].row,a[i].col)){t.cameraImageCache=null;break}if(void 0!==a[i].rowCount&&void 0!==a[i].colCount&&r.intersect(a[i].row,a[i].col,a[i].rowCount,a[i].colCount)){t.cameraImageCache=null;break}}}})}))},Y.prototype.Sle=function(t,e,n,i){var r=this;r.Ij(t,e,n,i),r.Tj()},Y.prototype.YI=function(t,e,n,i,r,o){var a,s,u,c,u;0===i||(N(i)&&(i=3),u=(s=(a=this).Ut).getRowCount(i),c=s.getColumnCount(i),t<0)||u<=t||e<0||c<=e||(n=q(n),n=K(n),u=a.Uw&&a.Uw(i),!o&&u&&u.t8.Fgt(t,e),s.do("setValue",t,e,n,i),a.Sle(t,e,i,r))},Y.prototype.Cle=function(){var t=this.parent,e=t&&t.getActiveSheet();(e&&!0===e.iL?e:this).zw(),Ut(t)},Y.prototype.getValueIgnoreDefault=function(t,e,n,i){var r,t,r=this.Ut;return r.wle=!0,t=this.getValue(t,e,n,i),delete r.wle,t},Y.prototype.getDefaultValue=function(t,e){return u(this.Ut.getDefaultValue(t,e))},Y.prototype.getDefaultValueByType=function(t,e,n,i){return u(this.Ut.getDefaultValue(t,e,n,i))},Y.prototype.setDefaultValue=function(t,e,n){var i=this;i.Ut.setDefaultValue(t,e,n),i.Sle(t,e,3,!0),i.Cle()},Y.prototype.Il=function(t,e,n,i,r,o){var a=this,i,i=a.getActualStyle(t,e,n,i,r,o);return _t(a,t,e,i,n),i},Y.prototype.getActualStyle=function(t,e,n,i,r,o,a){var s,u,c,f,l,h,d,d,v,g,m,p,v,S,w,p,w,h,b,C,y,M,M,p,k,T,d,S;if(0===(n=N(n)?3:n))return new x.Style;if(-1===t&&-1===e)return this.getDefaultStyle(n);if(d=(s=this).pL,p="__spreadJSDefault",w="__undefined",h=this.Ut,3===n&&s.pivotTables&&(C=(b=s.pivotTables.findPivotTable(t,e)||B)&&b.hqt(t,e)),f=h.getStyle(t,e,n),l=h.getStyle(t,-1,n),h=h.getStyle(-1,e,n),l=l||B,h=h||B,a&&(-1===t&&(l=B),-1===e)&&(h=B),v=w,y=s.parent&&s.parent.Gie,(f=f||B)&&(v=f.charAt?f:p+f._id),S=w,l&&(S=l.charAt?l:p+l._id),w=w,h&&(w=h.charAt?h:p+h._id),d=(p=d[n])[v],M=s.tables,(M=3===n&&M&&!o?M.find(t,e):B)||b||s.NMi||((g=(d=d||(p[v]={}))[S])?m=g[w]:g=d[S]={}),m||(c=s.getCompositeStyle(t,e,n,f,l,h,M,E,o,C,a,b)),(3===n||t<s.getFreeAreaRowCount(n)||1===n&&s.NMi)&&!i&&(p=s.conditionalFormats)&&(u=p.bL(u,t,e,n)),!(3===n||t<s.getFreeAreaRowCount(n))||i||!N(u)&&!N(u.foreColor)||!(k=u&&u.formatter||m&&m.formatter||c&&c.formatter||f&&f._autoFormatter)||o||z(k)||(T=At(k,s.getValue(t,e,n)))&&((u=N(u)?new x.Style:u).foreColor=T),u)u.h5(v=m||c),u.font&&v&&v.font&&u.font!==v.font&&(u.font=Rt(u,v)),c=u;else if(m)return!s.cellStates||i||y||(d=s.cellStates.getStyle(t,e,n,B,m.locked))&&(d.h5(m),(m=d).v5(s.hl)),r?m:m.clone(!0);return a||(N(c.locked)&&(c.locked=!0),c=c.v5(s.hl)),u||M||b||s.NMi||(g[w]=c.clone(!0)),!s.cellStates||i||y||(S=s.cellStates.getStyle(t,e,n,B,c.locked))&&(!(k=S.formatter)||o||z(k)||(T=At(k,s.getValue(t,e,n)))&&(S.foreColor=T),S.h5(c),c=(c=S).v5(s.hl)),c},Y.prototype.l0=function(t,e,n,i){var r,o,a,s,u,c,f,l,h,d,v,h,v,g,m,m,p;if(0===i)return E;if(N(i)&&(i=3),u=(r=this).Ut,f=!1,3===i){if("foreColor"===n){h=r.l0(t,e,"formatter",i);try{(d=S.Formatter&&S.Formatter.GeneralFormatter)&&typeof h==w&&(h=T.Be.Ue(h))}catch(t){}h&&(h.hasFormattedColor&&h.hasFormattedColor()||S.Formatter&&h instanceof S.Formatter.FormatterBase)&&(v={conditionalForeColor:B},h.format(r.getValue(t,e),v),v.conditionalForeColor)&&(c=v.conditionalForeColor,f=!0)}(h=r.conditionalFormats)&&0<h.count(i)&&(f=(v=h.wL(t,e,n,i)).yL,c=v.Y6)}for(g=0;!f&&g<=4;)if(0===g?o=u.getStyle(t,e,i):1===g?(m=r.tables,(m=3===i&&m?m.find(t,e):B)&&St[n]&&(o=m.ML(t,e,n))):o=2===g?u.getStyle(t,-1,i):3===g?u.getStyle(-1,e,i):r.getDefaultStyle(i),g++,o=o&&o.charAt&&typeof o==w?r.u8(o):o){if("font"!==n&&"fontStyle"!==n&&"fontWeight"!==n&&"fontSize"!==n&&"fontFamily"!==n||!o.themeFont||(l=l||o.themeFont),o[n]!==E){c=o[n],f=!0;break}for(a=o.parentName,p=void 0;a&&p!==a&&(s=r.u8(a));){if(s[n]!==E){c=s[n],f=!0;break}a=s.parentName,p=s.name}}return"locked"===n?!!N(c)||c:f||l?("foreColor"!==n&&"backColor"!==n&&"font"!==n&&"fontStyle"!==n&&"fontWeight"!==n&&"fontSize"!==n&&"fontFamily"!==n&&"borderLeft"!==n&&"borderTop"!==n&&"borderRight"!==n&&"borderBottom"!==n||((o=new x.Style)[n]=c,"font"===n&&l&&(o.themeFont=l),o.v5(r.hl),c=o[n]),c):E},Y.prototype.getStyle=function(t,e,n){return this.Z_(t,e,n,!0)},Y.prototype.Z_=function(t,e,n,i){var r,t,e,n;if(0!==(n=N(n)?3:n)){if((t=(r=this.Ut).getStyle(t,e,n))instanceof x.Style)return i&&this.r3(),t;if(typeof t==w&&(e=this.u8(t))!==B&&e!==E)return(n=new x.Style).h5(e,!1),i&&this.r3(),n}return B},Y.prototype.addNamedStyle=function(t){this.$p(t),this.zw()},Y.prototype.$p=function(t){if(t){if(!t.name)throw new Error(g().Exp_EmptyNamedStyle);var e=t.name.toUpperCase();this.Hp[e]=t}},Y.prototype.getNamedStyle=function(t){return this.i3(t,!0)},Y.prototype.i3=function(t,e){var n,n,n=this.Hp;return n&&t?((n=n[t=t.toUpperCase()])&&e&&this.r3(),n):B},Y.prototype.r3=function(){this.pL=[{},{},{},{}]},Y.prototype.removeNamedStyle=function(t){var e,n,e=this.Hp;e&&t&&(t=t.toUpperCase(),X(e,t))&&((n=e[t].formatter)&&"string"==typeof n&&this.parent.bp[n]&&this.parent.o3(n),delete e[t],this.r3(),this.zw())},Y.prototype.getNamedStyles=function(){var n=[],t=this.Hp;return t&&h(t,function(t,e){n.push(e)}),this.r3(),n},Y.prototype.setStyle=function(t,e,n,i){var r,i;N(i)&&(i=3),n&&n.backColor&&"object"==typeof n.backColor&&C.W.processStops(n.backColor),(r=this).CL(t,e,n,i),-1===t&&-1===e&&(r.Sj[i]=B),-1!==t&&-1!==e||(i=n&&n.validator)&&i.condition()&&4===i.condition().conType()&&i.condition().getExpected(this,t<0?0:t,e<0?0:e),r.r3(),r.zw()},Y.prototype.u5=function(t,e,n,i){var r,o,a,r=this;r.isActualProtected()?(o=r.Z_(t,e,i),a=void 0,n?(a=o?o.locked:E,n.locked!==a&&(n.locked=a),r.setStyle(t,e,n,i)):o&&((a=o.locked)!==E&&((n=new x.Style).locked=a),r.setStyle(t,e,n,i))):r.setStyle(t,e,n,i)},Y.prototype.getStyleName=function(t,e,n){var t=this.vI(t,e,n);return t instanceof x.Style?t.name:t},Y.prototype.setStyleName=function(t,e,n,i){var r;typeof n==w&&(N(i)&&(i=3),(r=this).CL(t,e,n,i),-1===t&&-1===e&&(r.Sj[i]=B),r.r3(),r.zw())},Y.prototype.vI=function(t,e,n){var i;return(i=0!==(n=N(n)?3:n)?this.Ut.getStyle(t,e,n):i)||B},Y.prototype.getNamedStyleName=function(t,e,n){var t=this.vI(t,e,n);return"string"==typeof t?t:E},Y.prototype.CL=function(t,e,n,i){var r,o,a,s,u,s,u,a,u,o;0!==(i=N(i)?3:i)&&(o=(r=this).vI(t,e,i),s=(a=r.Ut).getRowCount(i),u=a.getColumnCount(i),t<-1||s<=t||e<-1||u<=e||(s=a.getStyle(t,e,i),a.do("setStyle",t,e,n,i),(u=r.l0(t,e,"formatter",i))&&z(u)&&r.SL(t,e,u),a=o&&o.cellType&&o.cellType.typeName||B,u=n&&n.cellType&&n.cellType.typeName||B,t===r.ui&&e===r.ci&&a!==u&&T.hi.A1(r)&&r.rt.aA(),o="[styleinfo]",-1!==t&&-1!==e?r.Rj(o,t,e,i,s,n):-1!==t&&-1===e?r.dj(t,i,o,n,s):-1===t&&-1!==e&&r.vj(e,i,o,n,s)))},Y.prototype.SL=function(t,e,n){var i=this;(m=m||o("SheetsCalc"))&&i.TL(t,e,n)},Y.prototype.getDefaultStyle=function(t){var e,n,i,i,r,e,i;return N(t)&&(t=3),(i=(n=(e=this).Sj)[t])||(0!==t?((r=typeof(r=(i=e.Ut).getStyle(-1,-1,t))==w?e.u8(r):r)||(r=new x.Style,i.do("setStyle",-1,-1,r,t)),e=1===t||2===t,typeof r.hAlign==rt&&(r.hAlign=e?1:3),typeof r.vAlign==rt&&(r.vAlign=e?1:0),typeof r.imeMode==rt&&(r.imeMode=1),r.font||typeof r.themeFont!=rt||(r.themeFont="Body"),n[t]=r):((i=new x.Style).locked=!0,n[t]=i))},Y.prototype.setDefaultStyle=function(t,e){var n=this;0!==(e=N(e)?3:e)&&n.Ut.do("setStyle",-1,-1,t,e),n.Sj[e]=B,n.r3(),n.zw()},Y.prototype.u8=function(t){var e,n,n,e=this.i3(t,!1);return e=e||(n=this.parent)&&n.i3(t,!1),n=B,e&&(n=e.clone(!0),(0,T.AL)(n)),n},Y.prototype.getCompositeStyle=function(t,e,n,i,r,o,a,s,u,c,f,l){var s,h,d,v;if(N(n)&&(n=3),h=this,d=new x.Style,v=!1,0!==n){if(v=h.IL(t,e,n,d,v,i),s)return v?d:i;v=h.xL(t,e,n,d,v,a,u),v=(s=h.NL(t,e,n,d,v,l,u,c)).changed,d=s.destInfo,v=h.kL(t,n,d,v,r),v=h.DL(e,n,d,v,o)}return h._L(n,d,v,f),d},Y.prototype.IL=function(t,e,n,i,r,o){var a,s,u,c,f,f,l,a=this,s=a.Ut,f=s.getRowCount(n),l=s.getColumnCount(n);return 0<=t&&t<f&&0<=e&&e<l&&(f=(f=o!==E?o:s.getStyle(t,e,n))&&f.charAt?a.u8(f):f)&&(i.h5(f,!0,10),(0,x.composeParentStyle)(f,i,a,!(r=!0),10,!0)),r},Y.prototype.xL=function(t,e,n,i,r,o,a){var s,u=this.tables;return(o=o!==E||a?o:3===n&&u?u.find(t,e):B)&&!a&&(o.h5(t,e,i),r=!0),r},Y.prototype.NL=function(t,e,n,i,r,o,a,s){var u,c,a,u=this,c=u.pivotTables;return(s=o!==E||a?s:(o=3===n&&c?c.findPivotTable(t,e):B)&&o.hqt(t,e))&&(s.parentName&&(a=u.u8(s.parentName))&&s.h5(a),s.h5(i),i=s,r=!0),o&&(o.wqt(t,e,i),r=!0),{changed:r,destInfo:i}},Y.prototype.kL=function(t,e,n,i,r){var o=this,a=o.Ut,s=a.getRowCount(e),s,u,c;return 0<=t&&t<s&&(s=(s=r!==E?r:a.getStyle(t,-1,e))&&s.charAt?o.u8(s):s)&&(n.h5(s,!i,30),(0,x.composeParentStyle)(s,n,o,!(i=!0),30,!0)),i},Y.prototype.DL=function(t,e,n,i,r){var o=this,a=o.Ut,s=a.getColumnCount(e),s,u,c;return 0<=t&&t<s&&(s=(s=r!==E?r:a.getStyle(-1,t,e))&&s.charAt?o.u8(s):s)&&(n.h5(s,!i,40),(0,x.composeParentStyle)(s,n,o,!(i=!0),40,!0)),i},Y.prototype._L=function(t,e,n,i){var r,o,a,t,r=this,t=r.getDefaultStyle(t);return t&&t.charAt?t=r.u8(t):t&&t.clone&&(t=t.clone(!0),(0,T.AL)(t)),t&&!i&&(e.h5(t,!n,50),(0,x.composeParentStyle)(t,e,r,!1,50,!0)),n},Y.prototype.getCellType=function(t,e,n){return this.l0(t,e,"cellType",n)||this.$f(n)},Y.prototype.$f=function(t){N(t)&&(t=3);var e,e=(e=this.f7)||(this.f7=new a.Text);return 3===t?e:1===t?new s.ColumnHeader:2===t?new s.RowHeader:0===t?new s.Corner:e},Y.prototype.setCellType=function(t,e,n,i){var r=this.Z_(t,e,i),r;(r=r||new x.Style).cellType=n,this.setStyle(t,e,r,i)},Y.prototype.EL=function(t,e,n,i,r){var o,a,s,u,u,c,f,o=this;if(N(r)&&(r=3),(a=o.Ut).do("clearSpan",t,e,n,i,r),s=(0,T.Ec)(t,e,n,i),u=o.JS(s,r),u=o.jL(u,r),a.do("addSpan",u,r),3===r){for(c=o.getSelections(),f=0;f<c.length;f++)c[f].intersect(t,e,n,i)&&(c[f]=c[f].union(s));a.do("setSelections",c)}o.zw()},Y.prototype.jL=function(t,e){var n,e,i,r,o,t,n=this.getRowCount(e),e=this.getColumnCount(e),i=t.row,r=t.col,o=t.rowCount,t=t.colCount;return(0,T.Ec)(i,r,o=n<i+o?n-i:o,t=e<r+t?e-r:t)},Y.prototype.addSpan=function(t,e,n,i,r){var o,a,s,a,u,s,o=this;if((1!==n||1!==i)&&0!==r&&(a=o.getRowCount(r),s=o.getColumnCount(r),!(a<=t||s<=e||t<-1||e<-1))&&(a={row:t,col:e,rowCount:n,colCount:i,sheetName:o.name(),sheetArea:r,isAllow:!0},Y.et(o,vt,a),a.isAllow)){if((u=o.Ut).GT(t,e,n,i,r))throw new Error(g().Exp_InvalidRange);o.OL&&o.OL(t,e,n,i),o.EL(t,e,n,i,r),Y.et(o,U,s={sheet:o,row:t,col:e,rowCount:n,colCount:i,sheetArea:r,changeType:"addSpan"}),o.ki("spanChanged",s)}},Y.prototype.removeSpan=function(t,e,n){var i,r,o,r,i=this;N(n)&&(n=3),(o=(r=i.Ut).findSpan(t,e,n))&&o.row===t&&o.col===e&&r.do("removeSpan",o,n),Y.et(i,U,r={sheet:i,row:t,col:e,sheetArea:n,changeType:"removeSpan"}),i.ki("spanChanged",r),i.zw()},Y.prototype.getSpans=function(t,e){return 0===e?[]:this.Ut.getSpans(t,e,!0)},Y.prototype.getSpan=function(t,e,n){return 0===n?B:this.Ut.findSpan(t,e,n)},Y.prototype.repaint=function(t){this.My<=0&&this.Dn&&this.Dn.repaint(t)},Y.prototype.x_=function(t,e,n,i){var r,o,t,e,r=t,o=1,t=this.RL(t,e,n,i);t&&(r=t.row,o=t.rowCount),(e=this.j1(new T.Range(r,-1,o,-1))).y-=2,e.height+=4,this.repaint(e)},Y.prototype.N_=function(t,e,n,i){var r,o,t,e,r=t,o=1,t=this.BL(t,e,n,i);t&&(r=t.col,o=t.colCount),(e=this.j1(new T.Range(-1,r,-1,o))).x-=2,e.width+=4,this.repaint(e)},Y.prototype.LL=function(t,e){var n,i,t,n=this,i=n.Fi(),t=n.j1(new T.Range(-1,t,-1,1));t.y=i.y,t.height=i.height,e&&(t.x-=2,t.width+=4),n.repaint(t)},Y.prototype.RL=function(t,e,n,i){var r,o,a,s,u,c,f,r=this,o=r.yw(n),a=o.length;if(0!==a&&(s=r.s7(e,n,P.SheetArea.viewport,i))){if(s.length>a)for(s=new R.h9,c=u=o[0].col;c<a;c++)(f=r.O_(e,n,P.SheetArea.viewport,t,o[c].col))&&s.push(f);return s.findLargestRow(t)}return B},Y.prototype.BL=function(t,e,n,i){var r,o,a,s,u,c,f,r=this,o=r.dw(e),a=o.length;if(0!==a&&(s=r.s7(e,n,P.SheetArea.viewport,i))){if(s.length>a)for(s=new R.h9,c=u=o[0].row;c<a;c++)(f=r.O_(e,n,P.SheetArea.viewport,o[c].row,t))&&s.push(f);return s.findLargestCol(t)}return B},Y.prototype.OA=function(t,e){var n,i,r,o,a,s,u,c,c,u,f,l,c,h,c,c,d,v,g,m,c,d,p,u,t,S,c,d,u,t,n=this,i=n.parent,r=i&&i.options.scrollbarAppearance===P.ScrollbarAppearance.mobile,o=!1,a=!1,s=i&&i.options.scrollByPixel,u=V(n),c=O(n),c=c?n.O5(c-1):n.k9(),u=u?n.j5(u-1):n.N9();if(e<n.Ab&&c<=e?(o=!0,n.o9(n.r6(e+1),0)):s&&e===n.Ab&&0!==n.my&&(o=!0,n.o9(e,0)),e>n.getLastFullyVisibleColumn()&&e<=n.G6()){for(f=0,l=e,c=n.Fi(),h=n.Gy(c),(c=n.Ut.findSpan(t,l))&&(l=c.col+c.colCount-1);l>n.Ab&&!(h<(f+=n.nn(l)));)l--;d=c=void 0,d=s?(l===n.Ab&&f<h&&(f+=n.nn(l)),c=l,h-f):(c=(v=n.bge())===l?l:n.O5(l),0),o=!0,n.o9(c,d)}if(t<n.Tb&&u<=t?(a=!0,n.$A(n.nI(t+1),0)):s&&t===n.Tb&&0!==n.ly&&(a=!0,n.$A(t,0)),t>n.getLastFullyVisibleRow()&&t<=n.P6()){for(g=0,(c=n.Ut.findSpan(m=t,e))&&(m=c.row+c.rowCount-1),d=n.Fi(),p=n.Sy(d);m>n.Tb&&!(p<(g+=n.Gt(m)));)m--;t=u=void 0,t=s?(m===n.Tb&&g<p&&(g+=n.Gt(m)),u=m,p-g):(u=(S=n.pge())===m?m:n.j5(m),0),a=!0,n.$A(u,t)}c=n.aB(),!s&&e===n.G6()&&c&&n.o9(c,0),r&&(d=i.Xb,u=i.zb,t=i.ib,a&&(d.qy(P.ScrollbarState.show),t.$y(!0)),o)&&(u.qy(P.ScrollbarState.show),t.$y(!1))},Y.prototype.hitTest=function(t,e,n,i){var r,o,a,s,u,a,s,u,n,u,u,c,f,a,a,c,a,c,a,s,a,c,s,a,c,s,i,r=this;if(r.Fi(),o={x:t,y:e},a=r.rowOutlines,s=r.columnOutlines,u=!(u=a?a.hitTest(r,t,e):u)&&s?s.hitTest(r,t,e):u)o.outlineHitInfo=u;else{if(a=r.FL(e),s=r.PL(t),o.rowViewportIndex=a,o.colViewportIndex=s,o.row=r.GL(e,a),o.col=r.UL(t,s,e,a,o.row),o.hitTestType=r.C6(a,s),0<=a&&a<=2&&0<=s&&!0!==n&&(u=r.O_(a,s,o.hitTestType,o.row,o.col))&&(o.row=u.row,o.col=u.col),n=r.rt,u=(u=r.IB)&&u.hitTest(o,t,e),f=void 0,!(c=r.tables)||-1===a&&-1===s||(f=-1===a?c.find(r.getActiveRowIndex(),r.getActiveColumnIndex()):c.find(o.row,o.col)),u=u||(a=f&&f.IB)&&a.hitTest(o,t,e),a=c&&!u&&c.HL(t,e,o))return(o.tableSelectInfo=a).table&&a.table.IB&&(o.filterButtonHitInfo=u),o;(c=n.zL&&n.zL(o,t,e))?o.dragMergeInfo=c:(a=n.VL&&n.VL(o,t,e))?o.dragInfo=a:(c=o.col,o.col=r.UL(t,s),o.YL=c,(a=n.bD(o,t,e,5))?o.resizeInfo=a:(o.col=c,delete o.YL,(s=n.ZL?n.ZL(o,t,e):B)?o.formulaRangeHitInfo=s:(c=(a=r.Ut.pI)&&a.hitTest(t,e))?o.commentHitInfo=c:(a=(s=r.WL)&&s.hitTest(t,e,i),c=void 0,(c=r.shapes?r.shapes.hitTest(t,e):c)?o.shapeHitInfo=c:a?o.floatingObjectHitInfo=a:u?o.filterButtonHitInfo=u:(s=f&&!f.QL()&&n.KL&&n.KL(o,f))?o.resizeTableHitInfo=s:o.cellTypeHitInfo=r.JL(o,t,e))))}return i=r.pivotTables&&r.pivotTables.findPivotTable(o.row,o.col),N(i)||(o.pivotTableInfo=i),o},Y.prototype.getCellRect=function(t,e,n,i,r){var o,a,s,s,u,c,a,n,i,o,r,o=3;return-1===n?o=1:-1===i&&(o=2),s=(a=this).Fi(),-1===n&&-1===i?new T.Rect(s.BA,s.LA,s.XC,s.qC):(s=a.ot(),N(n)&&(n=a.C0(t)),N(i)&&(i=a.S0(e)),u=a._y(n,o).findRow(t),c=a.Yy(i,o).findCol(e),(a=a.s7(n,i,o,r).findCell(t,e))?new T.Rect(a.x-s.x,a.y-s.y,a.width,a.height):u&&c?(n=c.x-s.x,i=u.y-s.y,o=c.width,r=u.height,-1!==c.height&&-1!==c.y&&(r=u.height*c.height,i=u.height*c.y),new T.Rect(n,i,o,r)):new T.Rect)},Y.prototype.XA=function(t,e,n){var i,r,o,a,s,u,c,f,l,h,l,c,f,h,l,n,i=this,r=i.rt,o=!1,a=!1,c=i.ui,f=i.ci;N(t)||(i.ui!==t&&(a=!0),s=i.ui,i.ui=t,o=!0),N(e)||(i.ci!==e&&(a=!0),u=i.ci,i.ci=e,o=!0),h=(l=i._1)&&l.isEnable(P.RowColumnStates.active,!0),l=l&&l.isEnable(P.RowColumnStates.active,!1),h&&(i.x_(c,i.R9,i.B9),i.x_(t,i.R9,i.B9)),l&&(i.N_(f,i.R9,i.B9),i.N_(e,i.R9,i.B9)),i.Ut.setCellState(c,f,P.CellStatesType.active,!1,P.SheetArea.viewport),h||l||i.k_&&i.k_(P.CellStatesType.active,c,f,P.SheetArea.viewport),i.Ut.setCellState(t,e,P.CellStatesType.active,!0,P.SheetArea.viewport),h||l||i.k_&&i.k_(P.CellStatesType.active,t,e,P.SheetArea.viewport),!n&&r&&o&&(a&&i.ki(T.Events.ActiveCellChanged,{oldRow:s,oldCol:u,row:i.ui,col:i.ci}),r.aA(),c=i.Ut,(h=(f=i.Uw&&i.Uw(P.SheetArea.viewport))&&f.t8.getAnchorInfo(t,e))!==(l=c.cO))&&(c.cO=h,i.My<=0)&&(n=void 0,n=h&&l?(0,T.getUnionRange)(h,l):(0,T.Ec)((h=h||l).row,h.col,h.rowCount,h.colCount),i.Dn.E1(n))},Y.prototype.XL=function(t,e,n,i,r){var t,e,n,i,r,t=t.getCellRect(e,n,i,r),e=t.x,n=t.y,i=t.width,r=t.height;return t.x=e-2,t.y=n-2,t.width=i+4,t.height=r+4,t},Y.prototype.O6=function(t,e,n,i,r){var o,a,s,u,c,c,o=this,a=o.ui,s=o.ci,u=o.Ut,c=u.getSpan(t,e);o.H5=c.rowCount,o.z5=c.colCount,o.My<=0&&(c=u.getSpan(a,s),o.Dn.E1((0,T.Ec)(a,s,c.rowCount,c.colCount))),o.R9=n,o.B9=i,o.XA(t,e,r),o.qA=t,o.hR=e},Y.prototype.setActiveCell=function(t,e,n,i){this.t4(t,e,n,i,2)},Y.prototype.t4=function(t,e,n,i,r){var o,a,s,a,s,r,o=this,a=L(o),s=A(o);t<0?t=0:a<=t&&(t=I(0,a-1)),e<0?e=0:s<=e&&(e=I(0,s-1)),o.IA(),a=2===r?T.hi.A1(o):1===r,o.O6(t,e,n,i,!a),s={sheet:o,sheetName:o.name(),row:t,col:e},r=o.Ut.getSpan(t,e),o.D9(r.row,r.col,r.rowCount,r.colCount),o.zw(),o.ki(T.Events.EnterCellInternal,s)},Y.prototype.getActiveRowIndex=function(){return this.ui},Y.prototype.getActiveColumnIndex=function(){return this.ci},Y.prototype.getRowResizable=function(t,e){return this.Ut.getResizable(!0,e,t)},Y.prototype.setRowResizable=function(t,e,n){this.qL(t,e,dt,!0,n)},Y.prototype.qL=function(t,e,n,i,r){var o,a,s,u;switch(N(r)&&(r=3),n!==at&&n!==ot||!$.test(e)||(n=ht),a=(o=this).Ut,n){case dt:s=a.getResizable(i,r,t);break;case"pageBreak":s=a.getPageBreak(i,r,t);break;case lt:s=a.getVisible(i,r,t);break;case at:case ot:s=a.getSize(i,r,t);break;case pt:s=a.getColumnHeaderFitMode(i,r,t)}if(u=!0,!(u=i?o.kj(t,r,n,e,s):o.Dj(t,r,n,e,s)))return u;switch(n){case dt:a.do("setResizable",i,r,t,e);break;case"pageBreak":a.do("setPageBreak",i,r,t,e);break;case lt:a.do("setVisible",i,r,t,e),i&&G&&3===r&&s!==e&&(o.Lp.Vct=4,o.recalcRows([t]),delete o.Lp.Vct);break;case at:a.do("setSize",i,r,t,e),!G||3!==r||s===e||0!==s&&0!==e||(o.Lp.Vct=4,o.recalcRows([t]),delete o.Lp.Vct);break;case ot:a.do("setSize",i,r,t,e);break;case ht:a.do("setStarSize",i,r,t,e);break;case pt:a.do("setColumnHeaderFitMode",i,r,t,e)}return i?o.dj(t,r,n,e,s):o.vj(t,r,n,e,s),!0},Y.prototype.getColumnResizable=function(t,e){return this.Ut.getResizable(!1,e,t)},Y.prototype.setColumnResizable=function(t,e,n){this.qL(t,e,dt,!1,n)},Y.prototype.getRowHeight=function(t,e,n){var i,n,r,o,a,n,s,n,i=this;if(N(e)&&(e=3),n)return i.Ut.getStarSize(!0,e,t);if(3===e||2===e){if(n=i.getRowCount(e),t<0||n<=t)return 0;for(r=i.$L,o=0;o<r.length;o++)if(!(a=r[o]).tF(t))return 0}return s=(n=i.defaults).rowHeight,1===e&&(s=n.colHeaderRowHeight),(n=i.Ut.getSize(!0,e,t))||0===n?n:b(s)},Y.prototype._o=function(t,e){var n,i,r,i;return N(e)&&(e=3),r=(i=(n=this).defaults).rowHeight,1===e&&(r=i.colHeaderRowHeight),(i=n.Ut.getActualSize(!0,e,t))||0===i?i:b(r)},Y.prototype.setRowHeight=function(t,e,n){this.qL(t,e,at,!0,n)&&(this.Ww=!0,this.zw())},Y.prototype.getRowVisible=function(t,e,n){var i,r,o,a,i=this;if(N(e)&&(e=3),!n&&(3===e||2===e))for(r=i.$L,o=0;o<r.length;o++)if(!(a=r[o]).tF(t))return!1;return this.Ut.getVisible(!0,e,t)},Y.prototype.setRowVisible=function(t,e,n){var i=this;i.qL(t,e,lt,!0,n)&&(i.Ww=!0,i.zw())},Y.prototype.getColumnWidth=function(t,e,n){var i,n,r,n,o,a,s,n,i=this;if(N(e)&&(e=3),n)return i.Ut.getStarSize(!1,e,t);if(r=(n=i.defaults).colWidth,2===e&&(r=n.rowHeaderColWidth),3===e||1===e){if(n=i.getColumnCount(e),t<0||n<=t)return 0;for(o=i.nF,a=0;a<o.length;a++)if(!(s=o[a]).tF(t))return 0}return(n=this.Ut.getSize(!1,e,t))||0===n?n:b(r)},Y.prototype.Do=function(t,e){var n,i,r,i;return N(e)&&(e=3),r=(i=(n=this).defaults).colWidth,2===e&&(r=i.rowHeaderColWidth),(i=n.Ut.getActualSize(!1,e,t))||0===i?i:b(r)},Y.prototype.setColumnWidth=function(t,e,n){this.qL(t,e,ot,!1,n)&&(this.Zw=!0,this.zw())},Y.prototype.getColumnVisible=function(t,e){var n,i,r,o,n=this;if(3===(e=N(e)?3:e)||1===e)for(i=n.nF,r=0;r<i.length;r++)if(!(o=i[r]).tF(t))return!1;return n.Ut.getVisible(!1,e,t)},Y.prototype.setColumnVisible=function(t,e,n){var i=this;i.qL(t,e,lt,!1,n)&&(i.Zw=!0,i.zw())},Y.prototype.zoom=function(t){var e,n,e=this;return 0===arguments.length?e.Ut.getZoomFactor():(t=nt(t),!v(t)&&isFinite(t)&&(t=T.util.ige(t),n=e.Ut.getZoomFactor(),e.g8(t),e.my=e.my/n*t,e.ly=e.ly/n*t,e.Zw=!0,e.Ww=!0,e.zw()),e)},Y.prototype.g8=function(t){this.Ut.do("setZoomFactor",t),Y.et(this,U,{changeType:"zoomSheet"})},Y.prototype.n3=function(){var t=this;t.eF=B,t.N8={colHeader:B,viewport:B},t.iF={rowHeader:B,viewport:B,colHeader:B}},Y.prototype.invalidateLayout=function(){var t,e,e,t,t=this,e=t.rt;t.Ut.hj(),t.n3(),Y.et(t,ct,{changeType:"invalidateLayout"}),t.Zw&&(t.aw(),t.Zw=!1),t.Ww&&(t.ew(),t.Ww=!1),t.n3(),Y.et(t,U,{changeType:"invalidateLayout"}),e&&e.PA&&T.hi.A1(t)&&!e.M_(t)&&e.PA(t.ui,t.ci),t.k1=!0,(e=t.parent)&&e.options.enableAccessibility&&(t=t.t2(),e.n2(t))},Y.prototype.zw=function(){var t=this;t.My<=0&&(t.invalidateLayout(),t.repaint())},Y.prototype.getViewportHeight=function(t){var e=this,n=e.Fi();return 0===t?n.L6:1===t?e.Sy(n):2===t?n.Iy:0},Y.prototype.getViewportWidth=function(t){var e=this.Fi();return 0===t?e.F6:1===t?this.Gy(e):2===t?e.zy:0},Y.prototype.getViewportTopRow=function(t){var e,n,e=this,n=V(e);return 0===t?e.bve||0:1===t?I(n,e.Tb):2===t?I(n,L(e)-j(e)):-1},Y.prototype.getViewportTopRowOffset=function(){return this.ly},Y.prototype.getViewportBottomRow=function(t){var e,n,i,r,o,a,s,e=this;if(2===t)return L(e)-1;for(n=e.getViewportTopRow(t),i=e.getViewportHeight(t),r=1===t?e.ly:0,o=0,a=L(e)-j(e),0===t&&(a=H(V(e),a)),s=n;s<a&&r<i;s++,o++)r+=e.Gt(s);return n+o-1},Y.prototype.H7=function(t){for(var e,n,i,r,e,n=this.dw(t),i=0;i<n.length;i++)if(0<(r=n[i]).height)return r.row;return-1},Y.prototype.getViewportLeftColumn=function(t){var e,n,e=this,n=O(e);return 0===t?e.yve||0:1===t?I(n,e.Ab):2===t?I(n,A(e)-D(e)):-1},Y.prototype.getViewportLeftColumnOffset=function(){return this.my},Y.prototype.getViewportRightColumn=function(t){var e,n,i,r,o,a,s,e=this;if(2===t)return A(e)-1;for(n=e.getViewportLeftColumn(t),i=e.getViewportWidth(t),r=0,o=1===t?e.my:0,a=A(e)-D(e),0===t&&(a=H(O(e),a)),s=n;s<a&&o<i;s++,r++)o+=e.nn(s);return n+r-1},Y.prototype.z7=function(t){for(var e,n,i,r,e=this,n=e.getViewportLeftColumn(t),i=e.getViewportRightColumn(t),r=n;r<i+1;r++)if(-1<r&&e.getColumnVisible(r,3)&&0<e.nn(r,3))return r;return-1},Y.prototype.showCell=function(t,e,n,i){this.rF(t,e,n,i)},Y.prototype.rF=function(t,e,n,i,r,o){var i,i,a,s,u,c,f,l,h,d,v,n,s,u,i,a=this;t<0||t>=L(a)||e<0||e>=A(a)||(s=a.parent&&a.parent.options.scrollByPixel,u=a.parent&&a.parent.options.scrollbarMaxAlign,c=a.S0(e),f=a.C0(t),l=a.getViewportTopRow(f),h=a.ly,d=a.getViewportLeftColumn(c),v=a.my,1===c&&N(o)&&(e=(i=a.rB(e,i,s,u)).col,o=i.offset),1===f&&N(r)&&(t=(i=a.oF(t,n,s,u)).row,r=i.offset),s=n=!1,1!==f||t===l&&r===h||(t=H(t,a.mw().Ky),a.Tb=t,a.ly=r,a.tw(),n=!0),1!==c||e===d&&o===v||(e=H(e,a.Mw().iw),a.Ab=e,a.my=o,a.ow(),s=!0),(n||s)&&((u=a.parent)&&!u.options.scrollbarShowMax&&(a.Zw=!0,a.Ww=!0),a.zw(),i=a.zoom(),n&&a.ki(T.Events.TopRowChanged,{sheet:a,sheetName:a.name(),oldTopRow:l,newTopRow:t,oldOffset:M(h/i),newOffset:M(r/i)}),s)&&a.ki(T.Events.LeftColumnChanged,{sheet:a,sheetName:a.name(),oldLeftCol:d,newLeftCol:e,oldOffset:M(v/i),newOffset:M(o/i)}))},Y.prototype.C0=function(t){var e=this;return t<V(e)?0:t>=L(e)-j(e)?2:1},Y.prototype.S0=function(t){var e=this;return t<O(e)?0:t>=A(e)-D(e)?2:1},Y.prototype.oF=function(t,e,n,i){var r,o,a,s,u,c,f,l,h,d,v,g,i,e,m,p,i,r=this,o=r.Jt,a=r.C0(t),s=r.getViewportTopRow(a),u=r.ly,c=V(r),l=r.P6();if(0===e)if(i){for(h=l,f=r.getViewportHeight(a);c<=h;h--)if((f-=o.Gt(h))<0){u=t<=h?0:(t=h,f);break}}else u=0;else if(1===e){if(v=d=!1,i){for(h=l,f=g=b(r.getViewportHeight(a)/2);c<=h;h--)if((f-=o.Gt(h))<0){h<=t&&(h--,f+=g,v=!0);break}if(v)for(;c<=h;h--)if((f-=o.Gt(h))<0){t=h,u=f,d=!0;break}}if(!d){for(f=b((r.getViewportHeight(a)-o.Gt(t))/2);c<t;t--)if((f-=o.Gt(t-1))<0){t-=1,u=f;break}0<f&&t===c&&(u=0)}}else if(2===e){for(f=r.getViewportHeight(a)-o.Gt(t);c<t;t--)if((f-=o.Gt(t-1))<0){t-=1,u=f;break}0<f&&t===c&&(u=0)}else if(3===e)if(s<t){if(i=r.Fi(),e=r.getCellRect(t,r.ci),m=i.c9(1,1),p=i.c9(1,0),i=i.c9(1,2),m.containsRect(e,!0)||p.containsRect(e,!0)||i.containsRect(e,!0))t=s;else for(f=r.getViewportHeight(a)-o.Gt(t);s<t;t--)if((f-=o.Gt(t-1))<0){t-=1,u=f;break}}else u=0;return!n&&u<0&&(u=0,t<l)&&(t+=1),{row:t,offset:u}},Y.prototype.rB=function(t,e,n,i){var r,o,a,s,u,c,f,l,h,d,v,g,i,e,m,p,i,S,w,r=this,o=r.Jt,a=r.S0(t),s=r.getViewportLeftColumn(a),u=r.my,c=O(r),l=r.G6();if(0===e)if(i){for(f=r.getViewportWidth(a),h=l;c<=h;h--)if((f-=o.Kt(h))<0){u=t<=h?0:(t=h,f);break}}else u=0;else if(1===e){if(v=d=!1,i){for(f=g=b(r.getViewportWidth(a)/2),h=l;c<=h;h--)if((f-=o.Kt(h))<0){h<=t&&(h--,f+=g,v=!0);break}if(v)for(;c<=h;h--)if((f-=o.Kt(h))<0){t=h,u=f,d=!0;break}}if(!d){for(f=b((r.getViewportWidth(a)-o.Kt(t))/2);c<t;t--)if((f-=o.Kt(t-1))<0){t-=1,u=f;break}0<f&&t===c&&(u=0)}}else if(2===e){for(f=r.getViewportWidth(a)-o.Kt(t);c<t;t--)if((f-=o.Kt(t-1))<0){t-=1,u=f;break}0<f&&t===c&&(u=0)}else if(3===e)if(s<t){if(e=(i=r.Fi()).Py,m=i.Cy,p=i.hL,i=i.A6,S=r.getCellRect(r.ui,t),(w=new T.Rect(e,m,p,i)).containsRect(S,!0))t=s;else for(f=r.getViewportWidth(a)-o.Kt(t);s<t;t--)if((f-=o.Kt(t-1))<0){t-=1,u=f;break}}else u=0;return!n&&u<0&&(u=0,t<l)&&(t+=1),{col:t,offset:u}},Y.prototype.Jy=function(t,e){var n=this,i=n.Jt,r=n.C0(t),o=n.getViewportTopRow(r),a;if(0!==e)if(1===e)for(a=b((n.getViewportHeight(r)-i.Gt(t))/2);0<t&&!((a-=i.Gt(t-1))<0);t--);else if(2===e)for(a=n.getViewportHeight(r)-i.Gt(t);0<t&&!((a-=i.Gt(t-1))<0);t--);else if(3===e&&!(t<o||-1===o))for(a=n.getViewportHeight(r)-i.Gt(t);o<t&&!((a-=i.Gt(t-1))<0);t--);return t},Y.prototype.showColumn=function(t,e){this.showCell(this.Tb,t,0,e)},Y.prototype.showRow=function(t,e){this.showCell(t,this.Ab,e,0)},Y.prototype.suspendEvent=function(){this.vf++},Y.prototype.resumeEvent=function(){this.vf--,this.vf<0&&(this.vf=0)},Y.prototype.isEventSuspended=function(){return 0<this.vf},Y.prototype.currentTheme=function(t){var e=this;return 0===arguments.length?(e.hl||e.aF(),e.hl):(typeof t==w&&(t=p.Themes[t]||new p.Theme(t)),e.hl=t,e.Dn.O7(),e.r3(),Y.et(e,"onThemeChanged",{value:t}),e.zw(),e)},Y.prototype.uF=function(){var t=T.I.fl(""),t=y(t.zIndex),e=p.Themes.Office2007;return e=2007<t?p.Themes.Office:e},Y.prototype.aF=function(){this.hl=this.uF(),this.r3()},Y.prototype.reset=function(){var t=this;t.sF(),t.zw()},Y.prototype.sF=function(){var t,e,n,i,r,t=this,e=t.b2();t.cF(),t.R9=0,t.B9=0,t.Zp(),t.eF=B,t.N8={colHeader:B,viewport:B},t.iF={rowHeader:B,viewport:B,colHeader:B},t.Tb=0,t.ly=0,t.Ab=0,t.my=0,t.frozenRowCount(0),t.frozenColumnCount(0),t.frozenTrailingRowCount(0),t.frozenTrailingColumnCount(0),Y.et(t,"beforeSetHost"),(n=t.parent)&&(i=n.getActiveSheet(),r=n.getActiveSheetTab(),i&&t.name()===i.name()||r&&t.name()===r.name())&&t.hg(n.Kg),t.r3(),t.Jt=new T.Ff(t),t.Sj={},G&&t.resetCalc(),t.Ut=new R.Y8(t,Y.n8,Y.e8,Y.o8,Y.r8,t.name()),t.defaults=t.Ut.defaults,t.b2(e),t.aF(),t.Hp={},t.Zw=!0,t.Ww=!0,t.parent&&t.parent.sg?t.My=t.parent.sg:t.My=0,t.parent&&t.parent.vf?t.vf=t.parent.vf:t.vf=0,t.lE=0,t.xT=!1,t.fF=B,t.$L=[],t.nF=[],t.Nj=!1,t.hA=P.ClipboardPasteOptions.all,t.lF=P.CopyToOptions.all,t.JT=!0,t.UB=!0,Y.et(t,"init")},Y.prototype.Zp=function(){var i=this;h(yt,function(t,e){var n;N(e)||(n=e,"gridline"===t?n={color:T.I.fl("gc-gridlineColor").borderTopColor,showVerticalGridline:!0,showHorizontalGridline:!0}:"object"==typeof n&&(n=l.GC$.extend({},e)),i.options[t]=n)})},Y.prototype.pM=function(t){var e,n,e=this;for(e.parent=t,n=e.My;n<t.sg;n++)e.suspendPaint();e.vf=t.vf,Y.et(e,"attach",t)},Y.prototype.hF=function(t,e){return t.row===e.row&&t.col===e.col&&t.rowCount===e.rowCount&&t.colCount===e.colCount},Y.prototype.dF=function(t,e,n,i,r){for(var o,a,s,o=this.iT(e,n,i,r).ranges,a=0;a<o.length;a++)for(s=0;s<t.length;s++)if(this.hF(t[a],o[s]))return!0;return!1},Y.prototype.vF=function(t,e,n,i,r){var o,a,o=!1;return void 0!==r?0===r?0<(a=this.iT(t,e,n,this.getColumnCount()-e).ranges).length&&(o=(o=(o=0<t-1?this.dF(a,t-1,e,1,this.getColumnCount()-e):o)||this.dF(a,t+n,e,1,this.getColumnCount()-e))||this.dF(a,t,e,n,1)):0<(a=this.iT(t,e,this.getRowCount()-t,i).ranges).length&&(o=(o=(o=0<t-1?this.dF(a,t-1,e,this.getRowCount()-t,1):o)||this.dF(a,t+n,e,this.getRowCount()-t,1))||this.dF(a,t,e,1,i)):o=!0,o},Y.prototype.PT=function(t,e,n,i,r){var o,a,s,u,c,f,r,l,u,o=r.invalidType,a=r.lockErrorMsg,s=r.arrayFormulaErrorMsg,u=r.isAllowDragInsert,c=r.shiftCells,f=r.isIgnoreFilterOutRow,r=r.sheetArea,l=this;return N(o)&&(o=1),!u&&l.isActualProtected()&&l.dA((0,T.Ec)(t,e,n,i),f,r)?(a&&l.jT(o,a),!1):(u=this.vF(t,e,n,i,c),!(G&&u&&!l.mT(t,e,n,i)&&(s&&l.jT(o,s),1)))},Y.prototype.clear=function(t,e,n,i,r,o,a,s,u){0!==r&&this.KI(t,e,n,i,r,o,a,s,u)},Y.prototype.KI=function(t,e,n,i,r,o,a,s,u,c){var f,l,h,d,v,g,m,p,S,w,b,C,y,M,k,T,x,f=this,l=G;try{if(l&&f.suspendCalcService(),f.suspendPaint(),h=f.defaults,p=3,S={changeType:"clear",row:t,col:e,rowCount:n,colCount:i,sheetArea:r,type:o,ignoreTable:s,ignorePivotTable:u,canClear:!(m=g=v=d=void 0)},Y.et(f,U,S),S.canClear){if(N(r)||3===r){if(l&&!f.mT(t,e,n,i))return!1;if(1&o&&f.getDataSource&&f.getDataSource()){for(f.suspendEvent(),d=t;d<t+n;d++)if(!(a&&f.XT&&f.XT(d)))for(v=e;v<e+i;v++)f.setValue(d,v,B,r);f.resumeEvent()}}if(w=f.Ut,b=l&&f.b3(),d=-1===t?0:t,C=-1===t?w.getRowCount(r):n,v=-1===e?0:e,y=-1===e?w.getColumnCount(r):i,M=[],a&&f.XT)for(k=d;k<C+d;k++)f.XT(k)&&M.push(k);if(w.do("clear",d,v,C,y,o,M,r),b&&1&o&&!c&&(b.mF(d,v,C,y,!0),b.clear(d,v,C,y,w.pj(),!0)),8&o&&!(0<=t&&0<=e))if(0<=e)for(m=0;m<y;m++)f.setTag(-1,v+m,B,r);else if(0<=t)for(g=0;g<C;g++)a&&f.XT&&f.XT(d+g)||f.setTag(d+g,-1,B,r);else f.setTag(-1,-1,B,r);if(256&o&&!(0<=t&&0<=e))if(0<=e)for(m=0;m<y;m++)f.setHyperlink(-1,v+m,B,r);else if(0<=t)for(g=0;g<C;g++)a&&f.XT&&f.XT(d+g)||f.setHyperlink(-1,-1,B);if(2&o&&!(0<=t&&0<=e))if(0<=e)for(m=0;m<y;m++)f.setStyle(-1,v+m,B,r);else if(0<=t)for(g=0;g<C;g++)a&&f.XT&&f.XT(d+g)||f.setStyle(d+g,-1,B,r);else f.setStyle(-1,-1,B,r);if(32&o){if(t<0)for(m=0;m<y;m++)f.setColumnVisible(v+m,!0,r),f.setColumnResizable(v+m,!0,r),f.setColumnWidth(v+m,2===r?h.rowHeaderColWidth:h.colWidth,r);if(e<0)for(g=0;g<C;g++)a&&f.XT&&f.XT(d+g)||(f.setRowVisible(d+g,!0,r),f.setRowResizable(d+g,!0,r),f.setRowHeight(d+g,1===r?h.colHeaderRowHeight:h.rowHeight,r))}for((N(r)||3===r)&&l&&1==(1&o)&&(T=f.b3())&&T.gF(t,e,n,i),x=[],g=0;g<C;g++)for(m=0;m<y;m++)x.push({row:d+g,col:v+m});f.SI(t,e,C,y,x,2,r)}}finally{f.resumePaint(),l&&f.resumeCalcService(!1)}},Y.prototype.uL=function(){var t,e,n,i,n,i,n,t=this,e,n=t.options.protectionOptions;t.isActualProtected()&&n&&(i=n.allowSelectLockedCells,n=n.allowSelectUnlockedCells,!1===i&&!1!==n||!1!==i&&!1===n)&&(i=t.ui,n=t.ci,t.JA(i,n)||(t.IA(),t.gA(i,n,!0),t.MA(4,i,n)))},Y.prototype.setArray=function(i,r,t,o){var a,e,s,u,c,f,a=this,e=G;if(o=e&&o,s=L(a),u=A(a),t&&0<=i&&i<s&&0<=r&&r<u){e&&a.suspendCalcService(),a.suspendPaint();try{h(t,function(n,t){l.GC$.isArray(t)?h(t,function(t,e){f=r+t,(c=i+n)<s&&f<u&&(o?a.setFormula(c,f,e):a.setValue(c,f,e,3))}):(f=r,(c=i+n)<s&&f<u&&(o?a.setFormula(c,f,t):a.setValue(c,f,t,3)))})}finally{e&&a.resumeCalcService(!1),a.resumePaint()}}},Y.prototype.getArray=function(t,e,n,i,r){var o,a,s,u,c,f,o=this,a=[],s=L(o),u=A(o);if(r=r&&G,0<=t&&t<s&&0<=e&&e<u)for(s<t+n&&(n=s-t),u<e+i&&(i=u-e),c=0;c<n;c++)for(a[c]=[],f=0;f<i;f++)a[c][f]=r?o.getFormula(t+c,e+f):o.getValue(t+c,e+f);return a},Y.prototype.setTag=function(t,e,n,i){var r,o,a,s,a,s,r=this;0!==(i=N(i)?3:i)&&(a=(o=r.Ut).getRowCount(i),s=o.getColumnCount(i),t<-1||a<=t||e<-1||s<=e||(n=q(n),a=void 0,(s=0<r.vf)||(a=r.getTag(t,e,i)),o.do("setValueForKey",t,e,c,n,i),a!==n&&(-1!==t&&-1!==e?s?r.Lj(r,[{row:t,col:e}],0):r.Rj(c,t,e,i,a,n):-1!==t&&-1===e?r.dj(t,i,c,n,a):-1===t&&-1!==e&&r.vj(e,i,c,n,a))))},Y.prototype.getTag=function(t,e,n){var i,i,i=this;return 0!==(n=N(n)?3:n)?(i=i.Ut.getValueForKey(t,e,c,n),u(i)):B},Y.prototype.tag=function(t){var e,n,e=this;return 0===arguments.length?(n=e.Ut.getValueForKey(-1,-1,c,3),u(n)):(e.Ut.do("setValueForKey",-1,-1,c,q(t),3),e)},Y.prototype.setAltText=function(t,e,n,i){var r,o,a,s,a,s,r=this;0!==(i=N(i)?3:i)&&(a=(o=r.Ut).getRowCount(i),s=o.getColumnCount(i),t<-1||a<=t||e<-1||s<=e||(a=void 0,(s=0<r.vf)||(a=r.getAltText(t,e,i)),o.do("setValueForKey",t,e,ut,n,i),a!==n&&-1!==t&&-1!==e&&(s?r.Lj(r,[{row:t,col:e}],0):r.Rj(ut,t,e,i,a,n))))},Y.prototype.getAltText=function(t,e,n){var i=this;return 0!==(n=N(n)?3:n)?i.Ut.getValueForKey(t,e,ut,n):B},Y.prototype.getParent=function(){return this.parent},Y.prototype.getDirtyRows=function(){return Tt(this,!0)},Y.prototype.getInsertRows=function(){return Tt(this,!1)},Y.prototype.getDeletedRows=function(){var n=[],t=this.aj;return t&&h(t,function(t,e){e&&!l.GC$.isFunction(e)&&n.push({row:e.row,originalItem:e.data})}),n},Y.prototype.hasPendingChanges=function(){var t,e,n,t=this,e=t.aj;return!!(e&&0<e.length)||!Ft(n=t.Ut.Fj())},Y.prototype.clearPendingChanges=function(t){var e,n,i,r,o,t,e=this;N(t)||Q(t)?(e.Ut.Hj(),e.aj=[],Y.et(e,"clearPendingChanges")):(n=t.row,i=t.col,r=t.rowCount,o=t.colCount,(1&(t=(t=t.clearType)||bt.dirty))===bt.dirty&&e.pF(n,i,r,o),(2&t)===bt.insert&&e.bF(n,i,r,o),(4&t)===bt.delete&&e.yF(n,i,r,o))},Y.prototype.pF=function(t,e,n,i){var r=this,o=r.Ut,a=r.wF(t,e,n,i),s=r.MF(e,i);a?(o.Qj(),Y.et(r,"clearPendingChanges")):o.Vj(s,t,e,n,i)},Y.prototype.bF=function(t,e,n,i){var r=this,o=r.Ut,a=r.wF(t,e,n,i),r=r.MF(e,i);o.zj(a,r,t,n)},Y.prototype.yF=function(n,t,i,e){var r,t,o,a,s,r=this;if(r.wF(n,t,i,e))r.aj=[];else if(r.MF(t,e)&&(t=r.aj))for(o=[],h(t,function(t,e){var e;e&&(e=e.row,n<=e)&&e<n+i&&o.push(t)}),s=(a=o.length)-1;0<=s;s--)r.aj.splice(o[s],1)},Y.prototype.MF=function(t,e){return N(t)||-1===t||0===t&&this.getColumnCount()===e},Y.prototype.SF=function(t,e){return N(t)||-1===t||0===t&&e===this.getRowCount()},Y.prototype.wF=function(t,e,n,i){return this.MF(t,n)&&this.MF(e,i)},Y.prototype.getDirtyCells=function(t,r,e,o){var a,s,u,n,i,c,f,l,a=this;if(N(t)&&(t=-1),N(r)&&(r=-1),(N(e)||e<=0)&&(e=1),(N(o)||o<=0)&&(o=1),s=[],u=a.Ut.Fj(),!Q(u)){if(n=[],0<=t)for(i=t;i<t+e;i++)n.push(i);else for(c in u)X(u,c)&&n.push(y(c));h(n,function(t,e){var n,i;if((f=u[e])&&"e"===f.rs)if(0<=r)for(n=r;n<r+o;n++)(l=f[n])&&s.push(Ht(a,e,n,l.oldValue));else for(i in f)v(i)||(l=f[i])&&s.push(Ht(a,e,y(i),l.oldValue))})}return s},Y.prototype.suspendDirty=function(){this.lE++,this.Ut.Kj()},Y.prototype.resumeDirty=function(){var t=this;t.lE--,t.lE<0&&(t.lE=0),t.Ut.Jj()},Y.prototype.isDirtySuspended=function(){return 0<this.lE},Y.prototype.Hc=function(t){this.cg(new T.Rect(0,0,0,0)),this.sF(),this.ub(t)},Y.prototype.TF=function(){return this},Y.prototype.uw=function(){var t,e,n,e,t,e=this.Dg(),n={top:0,left:0};return e&&e.parentElement&&(n=(0,l.GC$)(e).offset())&&(n.top+=et.body.clientTop||0,n.left+=et.body.clientLeft||0),n=(e=e&&e.canvasOffset)?e:n},Y.prototype.hg=function(t){var e,n,i,r,o;t&&((e=this).xT=!1,(n=e.fg)&&e.L0(!1),i=W("canvas"),o=(r=e.parent&&e.parent.options.enableAccessibility)?"":g().NeedCanvasSupport,(0,l.GC$)(i).attr("id",t.getAttribute("id")+"_vp").attr("gcUIElement","gcWorksheetCanvas").html(o).appendTo(t),T.Bf.Wl(i,B,e),e.fg=i,e.Cg(),e.repaint(),e.parent&&e.parent.nb(),Y.et(e,"setHost",(0,l.GC$)(i)))},Y.prototype.AF=function(t,n,e,i,r,o,a,s,u){for(var c,f,l,h,d,v,c=this,f=c.getActiveRowIndex(),l=c.getActiveColumnIndex(),h=function(t,e){return f===n&&e===l?c._ue(t):t},d=e;d<i;d++)v=h(c.getText(n,d,u),d),t.push('"'+v+'"');for(d=r;d<o;d++)v=h(c.getText(n,d,u),d),t.push('"'+v+'"');for(d=a;d<s;d++)v=h(c.getText(n,d,u),d),t.push('"'+v+'"')},Y.prototype.t2=function(t){var e,n,i,r,t,o,a,s,u,e=this,n=e.ui,i=e.ci,r=P.SheetArea.viewport;return!t||N(t.row)||N(t.col)||(n=t.row,i=t.col,r=t.hitTestType),t=g(),o="",a=e.getText(n,i,r),r===P.SheetArea.rowHeader?o=t.ARIA_RowHeader+" ":r===P.SheetArea.colHeader?o=t.ARIA_ColumnHeader+" ":!N(r)&&r!==P.SheetArea.viewport||(s=e.getFormula(n,i),u=e.comments&&e.comments.get(n,i)),o+e.N6(n,i,r,a,s,u&&u.text())},Y.prototype.N6=function(t,e,n,i,r,o){var a,s,u,c,f,l,f,i,u,a=g(),s=a.ARIA_Cell+" "+T.util.Vf(e+1)+(t+1)+" ",u=this.getAltText(t,e,n);return u?(0<=u.indexOf(c="{value}")&&((f=this.getValue(t,e,n))instanceof Date&&(f=f.toLocaleString()),u=u.replace(/\{value\}/g,f)),s+=u=0<=u.indexOf(l="{formatted}")?u.replace(/\{formatted\}/g,i):u):(f="",N(i)||""===i||(f=d.I5(a.ARIA_HasValue,[i])+", "),u=void 0,(i=this.l0(t,e,"cellType",n))&&("5"===i.typeName?(u=i.SG(this.getValue(t,e,n)),f=d.I5(a.ARIA_HasCheckbox,[u])+", "):"6"===i.typeName?(u=i.text(),f=d.I5(a.ARIA_HasButton,[u])+", "):"8"===i.typeName&&(u=i.text(),f=d.I5(a.ARIA_HasHyperlink,[u])+", ")),s+=f,N(r)||(s+=d.I5(a.ARIA_HasFormula,[r])+", "),N(o)||(s+=d.I5(a.ARIA_HasComment,[o]))),this._ue(s)},Y.prototype._ue=function(t){return this.Eue&&(t=this.Eue+" "+t),t=this.jue?t+" "+this.jue:t},Y.prototype.setAccessibilityPrefixSuffixContent=function(t,e){this.Eue=t,this.jue=e},Y.prototype.Cg=function(){var t,e,n,i,n,r,r,i,n,r,t=this,e=t.Dg();e&&e.parentNode&&(i=(n=getComputedStyle(e.parentNode)).width,n=n.height,0<(r=i.indexOf("px"))&&(i=i.substring(0,r)),0<(r=n.indexOf("px"))&&(n=n.substring(0,r)),r=y(i),i=y(n),v(r)&&(r=(0,l.GC$)(e.parentNode).width()),v(i)&&(i=(0,l.GC$)(e.parentNode).height()),0!==r)&&0!==i&&(n=I(r,0),r=I(i,0),e.style.display="none",e.style.display="",e.width=n,e.height=r,e.style.width=n+"px",e.style.height=r+"px",n=e.clientWidth||e.width,r=e.clientHeight||e.height,t.kg.width=n,t.kg.height=r,T.Bf.$l(e,n,r),t.invalidateLayout())},Y.prototype.destroy=function(){this.L0(!0)},Y.prototype.L0=function(t,e){var n,e,i,i,n=this;!0!==n.xT&&(T.Bf.eh(n),n.isEditing&&n.isEditing()&&n.l6(n.ui,n.ci,P.SheetArea.viewport),Y.et(n,"dispose",{clearCache:t,isSheetDestroy:!0,hasActiveSheet:e}),(e=n.fg)&&((i=e.parentNode)&&i.removeChild(e),T.Lf.d5(e),n.fg=B),n.NF(),n.Ut&&n.Ut.L0(t),!1!==t)&&(n.xT=!0,(i=n.lA)&&i.L0(),n.parent=B,n.Ut=B,n.Jt&&(n.Jt.L0(),n.Jt=B),n.MC&&(n.MC.L0(),n.MC=B),T.hi.A1(n)&&T.hi.F1(B,!0),n.bM&&(n.bM.c5(),n.bM=B),n.$L=B,n.nF=B)},Y.prototype.NF=function(){var t=this.kF;t&&((0,l.GC$)(t).remove(),this.kF=E)},Y.prototype.mL=function(t,e,n,i,r){var o,o,o,a,s,a;return 3===(i=N(i)?3:i)&&this.S6&&(o=(o=this.Uw&&this.Uw(i))&&o.t8.getAnchorInfo(e,n))&&o.isValid&&(e!==o.row||n!==o.col)?B:(this.loading||0===i||(o=G&&this.b3(i))&&(a=o.getCalcService()).calcOnDemand&&!a.IsSuspended()&&0===a.calculationMode&&(s=o.oT(e,n))&&!0===s.k1&&(a.b_t(s,0),o.recalculateCell(s),this.Uw()._F()),a=t.getValue(e,n,i,this.loading,r),u(a))},Y.prototype.JS=function(t,e){var n,i,r,o,a,t,s,i;return N(e)&&(e=3),n=(0,T.Ec)(-1,-1,-1,-1),t&&(r=t.row,o=t.col,a=t.rowCount,t=t.colCount,s=(i=this).getRowCount(e),i=i.getColumnCount(e),-1===o&&(o=0,t=i),-1===r&&(r=0,a=s),n.col=o,n.row=r,n.colCount=Math.min(i-o,t),n.rowCount=Math.min(s-r,a)),n},Y.prototype.getRangeRect=function(t,e,n){var i,r,o,a,s,u,n,c,f,l,h,n,d,v,g,m,p,S,w,b,i=new T.Rect(-1,-1,-1,-1),r=this,o=r.Fi(),a=r.C6(t,e);return 0!==o.width&&0!==o.height&&(s=r._y(t,a),(u=r.Yy(e,a))&&0!==u.length&&s&&0!==s.length)&&(n=r.JS(n),c=r.Jt,f=n.row,l=n.row+n.rowCount-1,h=n.col,n=n.col+n.colCount-1,d=V(r),v=L(r)-j(r)-1,g=O(r),m=A(r)-D(r)-1,p=u[0].col,S=u[u.length-1].col,w=s[0].row,b=s[s.length-1].row,h<p&&(h=C(p,h)),S<n&&(n=y(S,n)),f<w&&(f=M(w,f)),b<l&&(l=k(b,l)),n<h||l<f||(0===e?h<g&&(i.x=o.b6+F(c,r.wve(),h-1),i.width=F(c,h,n)):1===e||-1===e?h<=m&&g<=n&&(i.x=h<p?u[0].x-F(c,h,p-1,a):u[0].x+F(c,p,h-1,a),i.width=F(c,h,n,a)):2===e&&m<n&&(i.x=h<p?o.Hy-F(c,h,p-1):o.Hy+F(c,p,h-1),i.width=F(c,h,n)),0===t?f<d&&(i.y=o.T6+_(c,r.Mve(),f-1),i.height=_(c,f,l)):1===t||-1===t?f<=v&&d<=l&&(i.y=f<w?s[0].y-_(c,f,w-1,a):s[0].y+_(c,w,f-1,a),i.height=_(c,f,l,a)):2===t&&v<l&&(i.y=f<w?o.Ay-_(c,f,w-1):o.Ay+_(c,w,f-1),i.height=_(c,f,l)))),i;function C(t,e){for(;e<t;)if(r.getColumnVisible(--t))return t;return t}function y(t,e){for(;t<e;)if(r.getColumnVisible(++t))return t;return t}function M(t,e){for(;e<t;)if(r.getRowVisible(--t))return t;return t}function k(t,e){for(;t<e;)if(r.getRowVisible(++t))return t;return t}},Y.prototype.isIntersectWithArrayFormula=function(t){var e,n,i,e=G&&this.b3();if(e)for(n=t.row;n<t.row+t.rowCount;n++)for(i=t.col;i<t.col+t.colCount;i++)if(e.EF(n,i,1,1))return!0;return!1},Y.prototype.setRangeActiveCells=function(t,e){this.XA(t,e),this.repaint()},Y.prototype.j1=function(t,e){var n,i,r,t,o,a,s,u,c,f,l,h,t,d,v,g,m,n=this,i=new T.Rect(-1,-1,-1,-1),r=n.Fi();if(0!==r.width&&0!==r.height){if(t=n.JS(t,e),o=O(n),a=V(n),s=D(n),u=j(n),c=n.Jt,f=t.row,l=t.row+t.rowCount-1,h=t.col,t=t.col+t.colCount-1,d=L(n,e),v=A(n,e),h<o)i.x=r.b6+F(c,n.wve(),h-1,e),i.width=F(c,h,H(t,o-1),e),o<=t&&t<v-s?(g=n.yw(1))&&0<g.length&&(i.width+=F(c,g[0].col,H(t,g[g.length-1].col),e)+n.my):v-s<=t&&(g=n.yw(2))&&0<g.length&&(i.width=g[0].x-i.x,i.width+=F(c,v-s,H(t,v-1),e));else if(h<v-s){if(!(g=n.yw(1))||0===g.length||h>g[g.length-1].col||t<g[0].col)return i;i.x=r.Py+F(c,g[0].col,h-1,e)+n.my,o<=t&&t<v-s?i.width=F(c,I(h,g[0].col),H(t,g[g.length-1].col),e):v-s<=t&&(g=n.yw(2))&&0<g.length&&(i.width=g[0].x-i.x,i.width+=F(c,v-s,H(t,v-1),e))}else h<v&&(g=n.yw(2))&&0<g.length&&(i.x=r.Hy+F(c,g[0].col,h-1,e),i.width=F(c,h,H(t,v-1),e));if(f<a)i.y=r.T6+_(c,n.Mve(),f-1,e),i.height=_(c,f,H(l,a-1),e),a<=l&&l<d-u?(m=n.dw(1))&&0<m.length&&(i.height+=_(c,m[0].row,H(l,m[m.length-1].row),e)+n.ly):d-u<=l&&(m=n.dw(2))&&0<m.length&&(i.height=m[0].y-i.y,i.height+=_(c,d-u,H(l,d-1),e));else if(f<d-u){if(!(m=n.dw(1))||0===m.length||f>m[m.length-1].row||l<m[0].row)return i;i.y=r.Cy+_(c,m[0].row,f-1,e)+n.ly,a<=l&&l<d-u?i.height=_(c,I(f,m[0].row),H(l,m[m.length-1].row),e):d-u<=l&&(m=n.dw(2))&&0<m.length&&(i.height=m[0].y-i.y,i.height+=_(c,d-u,H(l,d-1),e))}else f<d&&(m=n.dw(2))&&0<m.length&&(i.y=r.Ay+_(c,m[0].row,f-1,e),i.height+=_(c,f,H(l,d-1),e))}return i},Y.prototype.Dg=function(){return this.fg},Y.prototype.Gi=function(t,e){return this.Qt(t,e)+1},Y.prototype.Qt=function(t,e){var n="",i=this.Dn,n=e||i._n(i.Nn());return T.q.Wt(t,n)},Y.prototype.PL=function(t){var e,n,i,r,e,o,a,e=this,n=e.Fi(),i=B,r=n.Py,e=e.Gy(n),o=n.Hy,a=n.zy;return n.BA<t&&t<n.BA+n.XC?i=-1:n.b6<t&&t<n.b6+n.F6?i=0:r<t&&t<r+e?i=1:o<t&&t<o+a&&(i=2),i},Y.prototype.FL=function(t){var e,n,i,r,e,o,a,e=this,n=e.Fi(),i=B,r=n.Cy,e=e.Sy(n),o=n.Ay,a=n.Iy;return n.LA<t&&t<n.LA+n.qC?i=-1:n.T6<t&&t<n.T6+n.L6?i=0:r<t&&t<r+e?i=1:o<t&&t<o+a&&(i=2),i},Y.prototype.GL=function(t,e){var e,e,e=-1===e?this.jF():this.dw(e);if(e&&(e=e.findY(t)))return e.row},Y.prototype.UL=function(t,e,n,i,r){var e,o,a,e=-1===e?this.OF():-1===i?this.BF(e):this.yw(e);if(e)return a=void 0,(a=-1!==i||N(r)?e.findX(t):(o=this.jF().findRow(r),e.findXByExactY(t,n,o)))||e[0]&&(a=(e=this.Dn.VO(e[0].col,e[0].x))?-1!==i||N(r)?e.findX(t):e.findXByExactY(t,n,o):a)?a.col:void 0},Y.prototype.pD=function(t,e){var n,i,t,r,r,o,t,e,n=t.YL;return n!==t.col||(r=t.colViewportIndex,o=t.y,t=t.row,r=(i=this).BF(r),t=this.jF().findRow(t),e===n&&(n=i.O5(n,1)),(e=r.findCol(n))&&o<e.y*t.height+t.y)},Y.prototype.HO=function(t,e){var n=this;return n.ui<=t&&t<n.ui+n.H5&&n.ci<=e&&e<n.ci+n.z5},Y.prototype.T9=function(t){return this.Ut.T9(t)},Y.prototype.S9=function(t){return this.Ut.S9(t)},Y.prototype.ni=function(t,e,n,i){var r,o,r,r=this,o=L(r),r=A(r);return this.Ut.ni(t,e,n,o,r,i)},Y.prototype.ei=function(t,e,n){var i,r,i,i=this,r=L(i),i=A(i);return this.Ut.ei(t,e,n,r,i)},Y.prototype.zO=function(t,e,n){var i,r,o,a,s,u,c,s,i=this,s=i.sw;if(s&&!s.resizeInfo&&!N(n)){if(u=s.hitTestType,c=s.row,s=s.col,1===n)return r=!1,(o=!(o=i.Ut.findSpan(c,s,1))&&i.Cb?i.Cb.D7(c,s,1):o)&&(r=o.contains(t,e,1,1)),a=t===c&&e===s||r,u===n&&a;if(2===n)return r=!1,(o=!(o=i.Ut.findSpan(c,s,2))&&i.Cb?i.Cb.D7(c,s,2):o)&&(r=o.contains(t,e,1,1)),a=t===c&&e===s||r,u===n&&a;if(3===n)return u===n&&t===c&&e===s;if(0===n)return u===n}return!1},Y.prototype.C6=function(t,e){return 0<=t&&t<=2&&0<=e?3:0<=t&&t<=2&&e<0?2:t<0&&0<=e?1:t<0&&e<0?0:B},Y.prototype.Zg=function(t){var e=this.rt;e&&e.Zg(t)},Y.prototype.qc=function(){var t,e,e,t,t=this,e=t.parent,e=e&&e.Ti;return e=e||(t=t.fg)&&t.parentElement},Y.prototype.cF=function(){var t,e,n,i,r,t=this,e=0,n=0,i=1,r=1;t.ui=0,t.ci=0,t.H5=1,t.z5=1,t.qA=0,t.hR=0},Y.prototype.Gt=function(t,e,n){!N(e)&&isNaN(e)&&(e=E);var i=this,t=i.getRowHeight(t,e),e=i.zoom();return 1!==e&&(t*=e),n?t:it(t)},Y.prototype.nn=function(t,e,n){!N(e)&&isNaN(e)&&(e=E);var i=this,t=i.getColumnWidth(t,e),e=i.zoom();return 1!==e&&(t*=e),n?t:it(t)},Y.prototype.LF=function(){var i,t,e,n,r,n,o,a,t,r,s,n,u,c,f,l,h,d,v,n,e,g,m,n,p,S,e,i=this,t=i.ot(),e=i.options,n=e.sheetAreaOffset.left,r=e.sheetAreaOffset.top,n=new T.Rect(t.x+n,t.y+r,I(0,t.width-n),I(0,t.height-r)),o=n.width,a=n.height,t=xt(i),r=Gt(i),s={x:n.x,y:n.y,width:n.width,height:n.height,XC:0,qC:0,F6:0,L6:0,zy:0,Iy:0,D6:0,FF:0,PF:0,GF:0,b6:0,T6:0,Hy:0,Ay:0,Py:0,Cy:0,A6:0,hL:0,J7:0,X7:0,Ty:0,Uy:0,BA:0,LA:0,R1:function(){var t=this;return new T.Rect(t.x,t.y,t.XC,t.qC)},L1:function(t){var e=this;return 0===t?new T.Rect(e.b6,e.y,e.F6,e.qC):1===t?new T.Rect(e.Py,e.y,i.Gy(e),e.qC):2===t?new T.Rect(e.Hy,e.y,e.zy,e.qC):B},B1:function(t){var e=this;return 0===t?new T.Rect(e.x,e.T6,e.XC,e.L6):1===t?new T.Rect(e.x,e.Cy,e.XC,i.Sy(e)):2===t?new T.Rect(e.x,e.Ay,e.XC,e.Iy):B},c9:function(t,e){var n=this;if(0===t){if(0===e)return new T.Rect(n.b6,n.T6,n.F6,n.L6);if(1===e)return new T.Rect(n.Py,n.T6,i.Gy(n),n.L6);if(2===e)return new T.Rect(n.Hy,n.T6,n.zy,n.L6)}else if(1===t){if(0===e)return new T.Rect(n.b6,n.Cy,n.F6,i.Sy(n));if(1===e)return new T.Rect(n.Py,n.Cy,i.Gy(n),i.Sy(n));if(2===e)return new T.Rect(n.Hy,n.Cy,n.zy,i.Sy(n))}else if(2===t){if(0===e)return new T.Rect(n.b6,n.Ay,n.F6,n.Iy);if(1===e)return new T.Rect(n.Py,n.Ay,i.Gy(n),n.Iy);if(2===e)return new T.Rect(n.Hy,n.Ay,n.zy,n.Iy)}return B}};if(i.gj&&((u=0)<(n=i.gj()).width&&(s.x+=n.width+0,o-=n.width+0),0<n.height)&&(s.y+=n.height+0,a-=n.height+0),e.rowHeaderVisible)for(h=i.getColumnCount(2),l=0;l<h;l++)s.XC+=i.nn(l,2);if(e.colHeaderVisible)for(f=i.getRowCount(1),c=0;c<f;c++)s.qC+=i.Gt(c,1);if(0<(d=O(i)))for(h=A(i),l=i.wve();l<d&&l<h;l++)i.getColumnVisible(l)&&(s.F6+=i.nn(l));if(0<(v=V(i)))for(f=L(i),c=i.Mve();c<v&&c<f;c++)i.getRowVisible(c)&&(s.L6+=i.Gt(c));if(0<(n=D(i)))for(h=A(i),l=I(d,h-n);l<h;l++)s.zy+=i.nn(l);if(0<(e=j(i)))for(f=L(i),c=I(v,f-e);c<f;c++)s.Iy+=i.Gt(c);if(s.BA=s.x,s.LA=s.y,s.b6=s.BA+s.XC,s.T6=s.LA+s.qC,s.Py=s.b6+s.F6,s.Cy=s.T6+s.L6,o=(o=o-s.XC-s.F6)-s.zy-s.Uy,a=(a=(a-=s.qC)-s.L6-s.Iy)-s.Ty-s.D6,f=L(i),(g=0)<(m=(h=A(i))-n))for(g+=i.my,l=I(d,i.Ab);l<m&&g<o;l++)g+=i.nn(l);if(g<(n=I(0,o))?(s.Uy=n-g,n=s.hL=g):s.hL=n,(p=0)<(S=f-e))for(p+=i.ly,c=I(v,i.Tb);c<S&&p<a;c++)p+=i.Gt(c);return p<(e=I(0,a))?(s.Ty=e-p,e=s.A6=p):s.A6=e,s.Hy=s.Py+n,s.Ay=s.Cy+e,r?(s.J7=s.Py+s.hL,s.Hy+=s.Uy):s.J7=s.Hy+s.zy,t?(s.X7=s.Cy+s.A6,s.Ay+=s.Ty):s.X7=s.Ay+s.Iy,s.PF=s.BA,s.GF=s.y+s.height-s.D6,s},Y.prototype.Fi=function(){var t=this;return t.eF||(t.eF=t.LF()),t.eF},Y.prototype.Yy=function(t,e){return N(e)||3===e?this.yw(t):2===e?this.OF():1===e?1!==this.getRowCount(P.SheetArea.colHeader)?this.yw(t):this.BF(t):B},Y.prototype.yfe=function(t,e){return N(e)||3===e?this.yw(t):2===e?this.OF():1===e?1!==this.getRowCount(P.SheetArea.colHeader)?this.yw(t):this.wfe(t):B},Y.prototype.OF=function(){var t=this;return t.iF.rowHeader||(t.iF.rowHeader=t.UF()),t.iF.rowHeader},Y.prototype.yw=function(t){var e=this;return e.iF.viewport||(e.iF.viewport={}),e.iF.viewport[t]||(e.iF.viewport[t]=e.HF(t)),e.iF.viewport[t]},Y.prototype.BF=function(t){var e=this;return e.iF.colHeader||(e.iF.colHeader={}),e.iF.colHeader[t]||(e.iF.colHeader[t]=e.zF(t)),e.iF.colHeader[t]},Y.prototype.wfe=function(t){var e=this;return e.iF.colHeaderWithStack||(e.iF.colHeaderWithStack={}),e.iF.colHeaderWithStack[t]||(e.iF.colHeaderWithStack[t]=e.Mfe(t)),e.iF.colHeaderWithStack[t]},Y.prototype.UF=function(){for(var t,e,n,i,r,o,t=new R.h9,e,n=this.Fi().BA,r=this.getColumnCount(2),o=0;o<r;o++)i=this.nn(o,2),t.push(new R.W8(-1,o,n,-1,i,-1)),n+=i;return t},Y.prototype.HF=function(t){var e,n,i,r,o,a,s,u,c,f,l,h,d,v,g,e=this,n=new R.h9,i=e.Fi(),r=A(e),u=e.Jt,c=O(e),f=D(e);if(0===t)for(a=i.b6,r=H(c,r),o=e.wve();o<r;o++)s=u.Kt(o),(l=new R.W8(-1,o,a,-1,s,-1)).offsetX=e.getColumnScrollOffsetX(o),n.push(l),a+=s;else if(1===t)for(h=Gt(e),d=e.my,a=i.Py+d,r=h?r-f:r+f,v=e.Gy(i)-d,o=g=I(c,e.Ab);0<v&&o<r;o++)s=u.Kt(o),(l=new R.W8(-1,o,a,-1,s,-1)).offsetX=e.getColumnScrollOffsetX(o),n.push(l),a+=s,v-=s;else if(2===t)for(a=i.Hy,o=I(c,r-f);o<r;o++)s=u.Kt(o),(l=new R.W8(-1,o,a,-1,s,-1)).offsetX=e.getColumnScrollOffsetX(o),n.push(l),a+=s;return n},Y.prototype.zF=function(t){var e,n,i,r,o,a,s,u,c,f,l,h,d,v,g,m,p,S,w,b,C,y,M,p,e=this,n=new R.h9,i=e.Fi(),r=A(e),u=e.Jt,c=O(e),f=D(e),l=e.Ut,h=[],d=[],v=[],g=[];if(0===t)for(a=i.b6,r=H(c,r),o=e.wve();o<r;o++)h[o]=s=u.Kt(o),d[o]=l.getColumnHeaderFitMode(!1,P.SheetArea.colHeader,o),v[o]=l.eE(-1,o,-1,1,P.SheetArea.colHeader),m=e.ZO(o,a,r,0,h,d,v,g),g[o]=m,n.push(m),a+=s;else if(1===t){for(p=Gt(e),S=e.my,a=i.Py+S,r=p?r-f:r+f,w=e.Gy(i)-S,y=void 0,M=(C=b=I(c,e.Ab))-1;0<=M;M--)if(h[M]=y=u.Kt(M),y){if(d[M]=l.getColumnHeaderFitMode(!1,P.SheetArea.colHeader,M),d[M]===P.ColumnHeaderFitMode.normal)break;C=M}for(o=C;0<w&&o<r;o++)h[o]||(h[o]=u.Kt(o)),N(d[o])&&(d[o]=l.getColumnHeaderFitMode(!1,P.SheetArea.colHeader,o)),s=h[o],v[o]=l.eE(-1,o,-1,1,P.SheetArea.colHeader),m=e.ZO(o,a,r,b,h,d,v,g),g[o]=m,b<=o&&(n.push(m),a+=s,w-=s);w<=0&&o<r&&2===l.getColumnHeaderFitMode(!1,P.SheetArea.colHeader,o-1)&&(p=e.ZO(o,a,r,b,h,d,v,g),g[o]=p,n.push(p))}else if(2===t)for(a=i.Hy,o=b=I(c,r-f);o<r;o++)h[o]=s=u.Kt(o),d[o]=l.getColumnHeaderFitMode(!1,P.SheetArea.colHeader,o),v[o]=l.eE(-1,o,-1,1,P.SheetArea.colHeader),m=e.ZO(o,a,r,b,h,d,v,g),g[o]=m,n.push(m),a+=s;return n},Y.prototype.Mfe=function(t){var o,e,n,i,r,a,s,u,c,f,l,h,d,v,g,m,p,S,w,b,C,y,M,k,C,T,x,G,y,C,B,o=this,e=new R.h9,n=o.Fi(),i=A(o),s=o.Jt,u=O(o),c=D(o),f=o.Ut,l=[],h=[],d=[],v=[],g=function(t){for(var e,n,i,r,i,o,e=0,n=t,r=t-1;0<=r;r--)if(l[r]=i=s.Kt(r),i){if(h[r]=f.getColumnHeaderFitMode(!1,P.SheetArea.colHeader,r),(i=h[r]!==P.ColumnHeaderFitMode.normal)||(h[o=r-1]=f.getColumnHeaderFitMode(!1,P.SheetArea.colHeader,o),i=h[o]!==P.ColumnHeaderFitMode.normal),!i)break;e+=l[n=r]}return{leftOutsideWidth:e,Cfe:n}},m=function(t,e,n,i){var r,n;return l[e]||(l[e]=s.Kt(e)),r=l[e],d[e]=f.eE(-1,e,-1,1,P.SheetArea.colHeader),n=o.ZO(e,n,i,t,l,h,d,v),{colLayout:v[e]=n,colWidth:r}};if(0===t)for(a=n.b6,p=H(u,i),r=o.wve();r<i&&(h[r]=f.getColumnHeaderFitMode(!1,P.SheetArea.colHeader,r),!(p<=r&&2!==h[r]&&2!==h[r-1]));r++)w=(S=m(0,r,a,i)).colLayout,b=S.colWidth,r<p||(w.isOutside=!0),e.push(w),a+=b;else if(1===t){for(C=Gt(o),y=o.my,a=n.Py+y,p=C?i-c:i,M=o.Gy(n)-y,a-=T=(C=g(k=I(u,o.Ab))).leftOutsideWidth,r=x=C.Cfe;r<i&&(N(h[r])&&(h[r]=f.getColumnHeaderFitMode(!1,P.SheetArea.colHeader,r)),!(M<=0||p<=r)||2===h[r]||2===h[r-1]);r++)w=(G=m(k,r,a,i)).colLayout,b=G.colWidth,k<=r&&0<M?(e.push(w),a+=b,M-=b):(w.isOutside=!0,e.push(w),a+=b);M<=0&&r<i&&2===f.getColumnHeaderFitMode(!1,P.SheetArea.colHeader,r-1)&&(y=o.ZO(r,a,i,k,l,h,d,v),v[r]=y,e.push(y))}else if(2===t)for(a=n.Hy,a-=T=(C=g(k=I(u,i-c))).leftOutsideWidth,r=x=C.Cfe;r<i;r++)h[r]=f.getColumnHeaderFitMode(!1,P.SheetArea.colHeader,r),w=(B=m(k,r,a,i)).colLayout,b=B.colWidth,k<=r||(w.isOutside=!0),e.push(w),a+=b;return e},Y.prototype.ZO=function(t,e,n,i,r,o,a,s){var u,c,f,l,h,d,v,g,m,p,p,S,w,b,b,C,y,m,M,k,T,k,x,G,B,I,o,u=this,c=u.Ut,f=u.Jt,l=t,h=-1,d=-1,v=o[t],g=r[t],m=a[t],p=u.NMi,p=p&&p.options&&p.options.defaultStackRowHeight;if(v!==P.ColumnHeaderFitMode.normal&&!c.e7(t)&&!m&&!c.eE(-1,t+1,-1,1,P.SheetArea.colHeader))for(v===P.ColumnHeaderFitMode.stack&&(g+=f.Kt(l=t+1));(c.getColumnHeaderFitMode(!1,P.SheetArea.colHeader,l)!==P.ColumnHeaderFitMode.normal||!f.Kt(l))&&l<n-1&&!c.eE(-1,l+1,-1,1,P.SheetArea.colHeader);){if((S=c.getColumnHeaderFitMode(!1,P.SheetArea.colHeader,l))===P.ColumnHeaderFitMode.vertical&&f.Kt(l)){if(v===P.ColumnHeaderFitMode.vertical)break;if(w=u.O5(l,P.SheetArea.viewport),b=u.r6(l,P.SheetArea.viewport,!0),b=c.getColumnHeaderFitMode(!1,P.SheetArea.colHeader,b),C=c.getColumnHeaderFitMode(!1,P.SheetArea.colHeader,w),!(b!==P.ColumnHeaderFitMode.normal&&C!==P.ColumnHeaderFitMode.normal&&w<n)||c.eE(-1,w+1,-1,1,P.SheetArea.colHeader))break}l++,g+=f.Kt(l)}for(l=t-1;i<=l&&!r[l]&&!a[l];)l--;return y=u.Ut.o7(t),(m=o[l])!==P.ColumnHeaderFitMode.normal&&r[l]&&!a[l]&&!a[t]&&y<=l?((M=s[l])===E&&(k=e-u.nn(l),M=s[l]=u.ZO(l,k,n,i,r,o,a,s)),m===P.ColumnHeaderFitMode.stack?(k=(T=function(t){for(var e=u.r6(t,P.SheetArea.viewport,!0);y<=e&&u.Lt(e)===P.ColumnHeaderFitMode.stack;)e=u.r6(e,P.SheetArea.viewport,!0);return!!(y<=e&&u.Lt(e)!==P.ColumnHeaderFitMode.normal&&s[e||0]&&-1!==s[e||0].y)&&s[e||0]})(t),h=N(p)?(G=c.r7(t))/(B=c.n7(t)):(h=p*(x=c.r7(t,E,!0))/u.defaults.colHeaderRowHeight,H(h,1)),k&&N(p)?h=1-(d=(1-h)*(I=0<k.height?k.height:1)):d=1-h):m===P.ColumnHeaderFitMode.vertical&&(v!==P.ColumnHeaderFitMode.normal?(h=M.y,d=M.height):h=d=-1)):h=d=-1,(o=new R.W8(-1,t,e,h,g,d)).offsetX=u.getColumnScrollOffsetX(t),o},Y.prototype._y=function(t,e){return N(e)||3===e||2===e?this.dw(t):1===e?this.jF():B},Y.prototype.d9=function(t){for(var e,n,i,e=new R.h9,n=0;n<3;n++)(i=this._y(n,t))&&0<i.length&&(e=l.GC$.merge(e,i));return e},Y.prototype.m9=function(t){for(var e,n,i,e=new R.h9,n=0;n<3;n++)(i=this.Yy(n,t))&&0<i.length&&(e=l.GC$.merge(e,i));return e},Y.prototype.jF=function(){var t=this;return t.N8.colHeader||(t.N8.colHeader=t.VF()),t.N8.colHeader},Y.prototype.dw=function(t){var e=this;return e.N8.viewport||(e.N8.viewport={}),e.N8.viewport[t]||(e.N8.viewport[t]=e.YF(t)),e.N8.viewport[t]},Y.prototype.VF=function(){for(var t,e,n,i,r,o,t=new R.h9,e,n=this.Fi().LA,r=this.getRowCount(1),o=0;o<r;o++)i=this.Gt(o,1),t.push(new R.W8(o,-1,-1,n,-1,i)),n+=i;return t},Y.prototype.YF=function(t){var e,n,i,r,o,a,s,u,c,f,l,h,d,v,g,e=this,n=new R.h9;if(n.sE(),i=V(e),r=j(e),o=e.Fi(),a=L(e),f=e.Jt,0===t)for(u=o.T6,a=H(i,a),s=e.Mve();s<a;s++)c=f.Gt(s),l=new R.W8(s,-1,-1,u,-1,c),n.push(l),n.fE(s,l),u+=c;else if(1===t)for(h=xt(e),d=e.ly,u=o.Cy+d,a=h?a-r:a+r,v=e.Sy(o)-d,s=g=I(i,e.Tb);0<v&&s<a;s++)c=f.Gt(s),l=new R.W8(s,-1,-1,u,-1,c),n.push(l),n.fE(s,l),u+=c,v-=c;else if(2===t)for(u=o.Ay,s=I(i,a-r);s<a;s++)c=f.Gt(s),l=new R.W8(s,-1,-1,u,-1,c),n.push(l),n.fE(s,l),u+=c;return n},Y.prototype.s7=function(t,e,n,i){var r,o,a,t,e,s,u,c,f,l,h,i,r=this,o=r.getRowCount(n),a=r.getColumnCount(n),t=r._y(t,n),e=r.Yy(e,n),s=new R.h9;return t&&0<t.length&&e&&0<e.length&&(u=t[0].row,c=e[0].col,f=t[t.length-1].row,l=e[e.length-1].col,h=r.Ut.getSpans((0,T.Ec)(u,c,f-u+1,l-c+1),n),i&&r.Cb&&(i=r.Cb.ZF(n),h=h.concat(i)),0<h.length)&&r.WF(h,u,c,f,l,s,o,a,n,t,e),s},Y.prototype.O_=function(t,e,n,i,r){var o,a,s,t,e,u,c,f,i,r,o=this,a=o.getRowCount(n),s=o.getColumnCount(n),t=o._y(t,n),e=o.Yy(e,n),u=new R.h9;return t&&0<t.length&&e&&0<e.length&&(c=t[0].row,f=e[0].col,(i=o.getSpan(i,r,n))&&((r=[]).push(i),o.WF(r,c,f,i.row+i.rowCount,i.col+i.colCount,u,a,s,n,t,e)),0<u.length)?u[0]:B},Y.prototype.WF=function(t,e,n,i,r,o,a,s,u,c,f){var l,h,d,v,g,m,p,S,w,b,C,y,M,k,T,x,G,B,I,P,N,l=t.length;if(!(l<=0)){for(h=this,v=i+1,g=r+1,m=[],p=[],S=[],w=[],C=b=0,d=e-1;0<=d;d--)m[d]=h.Gt(d,u),w[d]=C-=m[d];for(C=0,d=e;d<v;d++)w[d]=C,m[d]=h.Gt(d,u),C+=m[d];for(d=n-1;0<=d;d--)p[d]=h.nn(d,u),S[d]=b-=p[d];for(b=0,d=n;d<g;d++)S[d]=b,p[d]=h.nn(d,u),b+=p[d];for(y=0;y<l;y++)if((M=t[y]).intersect(e,n,i-e+1,r-n+1)){if(v<(k=M.row+M.rowCount)){for(d=v;d<k;d++)m.push(h.Gt(d,u)),w.push(w[d-1]+m[d]);v=k}if(g<(T=M.col+M.colCount)){for(d=g;d<T;d++)p.push(h.nn(d,u)),S.push(S[d-1]+p[d]);g=T}for(x=S[M.col],G=w[M.row],N=P=void(I=B=0),N=M.col;N<M.col+M.colCount&&N<s;N++)B+=p[N];for(P=M.row;P<M.row+M.rowCount&&P<a;P++)I+=m[P];o.push(new R.W8(M.row,M.col,f[0].x+x,c[0].y+G,B,I,M.rowCount,M.colCount,M.isAutoMerge))}}},Y.prototype.ow=function(){var t,e,n,i,e,r,i,t=this,e=t.parent,n=t.ww(t.Ab),i=t.my;-1!==n&&n!==t.Ab&&(t.Ab=n),(e=e&&e.zb)&&(i=(r=e.g4===P.ScrollType.pixels)?t.QF(n)-i:t.KF(n),e.value(i))},Y.prototype.JF=function(){var t,e,e,n,n,t,e=this.parent,e=e&&e.Xw;e&&(n=this.getDockScrollbarAttachedIndex(),N(n)||(n=-this.getColumnScrollOffsetX(n),e.value(n)))},Y.prototype.tw=function(){var t,e,n,i,e,r,i,t=this,e=t.parent,n=t.vw(t.Tb),i=t.ly;-1!==n&&n!==t.Tb&&(t.Tb=n),(e=e&&e.Xb)&&(i=(r=e.g4===P.ScrollType.pixels)?t.XF(n)-i:t.qF(n),e.value(i))},Y.prototype.aw=function(){var t,e,n,t=this,e=t.parent;e&&e.zb&&(n=e.options.scrollByPixel,e.zb.g4=n?P.ScrollType.pixels:P.ScrollType.continuous),e&&e.Xg&&(e.options.scrollbarAppearance===P.ScrollbarAppearance.mobile&&e.kC(),e.options.scrollIgnoreHidden&&(t.$F=t.tP(!0)),e.Xg())},Y.prototype.ew=function(){var t,e,n,t=this,e=t.parent;e&&e.Xb&&(n=e.options.scrollByPixel,e.Xb.g4=n?P.ScrollType.pixels:P.ScrollType.continuous),e&&e.QC&&(e.options.scrollbarAppearance===P.ScrollbarAppearance.mobile&&e.kC(),e.options.scrollIgnoreHidden&&(t.nP=t.eP(!0)),e.QC())},Y.prototype.Sw=function(){var t,e,n,t=this,e=0,n=O(t);return e=0<n?t.O5(n-1):t.k9()},Y.prototype.pw=function(){var t,e,n,t=this,e=0,n=V(t);return e=0<n?t.j5(n-1):t.N9()},Y.prototype.k9=function(t){return this.O5(-1,t)},Y.prototype.bge=function(t,e){var n,t,n=this,t=n.getColumnCount(t);return e?t-1:t-1-D(n)},Y.prototype.O5=function(t,e,n){for(var i,r,i=this,r=i.bge(e,n);t<r;)if(i.getColumnVisible(++t,e)&&0<i.nn(t,e))return t;return B},Y.prototype.r6=function(t,e,n){for(var i=this,r=n?0:O(i);r<t;)if(i.getColumnVisible(--t,e)&&0<i.nn(t,e))return t;return B},Y.prototype.N9=function(t){return this.j5(-1,t)},Y.prototype.pge=function(t,e){var n,t,n=this,t=n.getRowCount(t);return e?t-1:t-1-j(n)},Y.prototype.j5=function(t,e,n){for(var i,r,i=this,r=i.pge(e,n);t<r;)if(i.getRowVisible(++t,e)&&0<i.Gt(t,e))return t;return B},Y.prototype.nI=function(t,e,n){for(var i=this,r=n?0:V(i);r<t;)if(i.getRowVisible(--t,e)&&0<i.Gt(t,e))return t;return B},Y.prototype.iP=function(){this.Ww=!0,this.tw()},Y.prototype.rP=function(){this.Zw=!0,this.ow()},Y.prototype.XF=function(t){var e,n,i,r,n,o,a,s,e=this,n=V(e),i,r=n,n=r+(L(e)-j(e)-n)-1,o=0;if(!(t<=r))for(n<t&&(t=n),a=r;a<t;a++)o+=s=e.Gt(a);return o},Y.prototype.QF=function(t){var e,n,i,r,n,o,a,s,e=this,n=O(e),i,r=n,n=r+(A(e)-D(e)-n)-1,o=0;if(!(t<=r))for(n<t&&(t=n),a=r;a<t;a++)o+=s=e.nn(a);return o},Y.prototype.qF=function(t){var e,n,e=this.parent;return e&&e.options.scrollIgnoreHidden?(n=this.eP().visibleIndex)[t]:t},Y.prototype.oP=function(t){var e,n,e=this.parent;return e&&e.options.scrollIgnoreHidden?(n=this.eP().originalIndex)[t]:t},Y.prototype.KF=function(t){var e,n,e=this.parent;return e&&e.options.scrollIgnoreHidden?(n=this.tP().visibleIndex)[t]:t},Y.prototype.aP=function(t){var e,n,e=this.parent;return e&&e.options.scrollIgnoreHidden?(n=this.tP().originalIndex)[t]:t},Y.prototype.tP=function(t){var e,t,n,i,r,o,a,s,u,e=this;if(e.$F&&!t)return e.$F;if(t=O(e),n=A(e)-D(e)-t,o=e.Jt,a={visibleIndex:{},originalIndex:{}},!((r=(i=t)+n-1)-i+1<=0)){for(s=0,u=i;u<=r;u++)a.originalIndex[s]=u,a.visibleIndex[u]=s,0<o.Kt(u)&&s++;for(u--,s--;o.Kt(u)<=0&&i<=u;)a.originalIndex[s]=u,a.visibleIndex[u]=s,u--}return a},Y.prototype.eP=function(t){var e,t,n,i,r,o,a,s,u,e=this;if(e.nP&&!t)return e.nP;if(t=V(e),n=L(e)-j(e)-t,o=e.Jt,a={visibleIndex:{},originalIndex:{}},!((r=(i=t)+n-1)-i+1<=0)){for(s=0,u=i;u<=r;u++)a.originalIndex[s]=u,a.visibleIndex[u]=s,0<o.Gt(u)&&s++;for(u--,s--;o.Gt(u)<=0&&i<=u;)a.originalIndex[s]=u,a.visibleIndex[u]=s,u--}return a},Y.prototype.vw=function(t,e){var n,i,r,o,n=this,r=V(n),o=L(n)-j(n)-1;if(e){if((i=n.nI((t=o<t?o:t)+1))!==B&&r<=i)return i}else if((i=n.j5((t=t<r?r:t)-1))!==B&&i<=o)return i;return-1},Y.prototype.ww=function(t,e){var n,i,r,o,n=this,r=O(n),o=A(n)-D(n)-1;if(e){if((i=n.r6((t=o<t?o:t)+1))!==B&&r<=i)return i}else if((i=n.O5((t=t<r?r:t)-1))!==B&&i<=o)return i;return-1},Y.prototype.uP=function(t,e,n){var i,r,o,a,s;if(n<e)return n;for(i=0,r=this.Jt,a=o=n;e<=a;a--)if(!((s=r.Gt(a))<=0)){if(t<(i+=s))break;o=a}return o},Y.prototype.gw=function(t,e,n){for(var i,r,o,a,s,i=0,r=n,o=0,a=n;e<=a;a--)if(!((s=this.Gt(a))<=0)&&(r=a,t<=(i+=s))){o=t-i;break}return{Ky:r,Xy:o}},Y.prototype.sP=function(t,e,n){var i,r,o,a,s;if(n<e)return n;for(i=0,r=this.Jt,a=o=n;e<=a;a--)if(!((s=r.Kt(a))<=0)){if(t<(i+=s))break;o=a}return o},Y.prototype.Cw=function(t,e,n){for(var i,r,o,a,s,i=0,r=n,o=0,a=n;e<=a;a--)if(!((s=this.nn(a))<=0)&&(r=a,t<=(i+=s))){o=t-i;break}return{iw:r,Xy:o}},Y.prototype.cP=function(){var t,e,n,i,r,o,a,s,t=this,e=t.Fi(),n=t.Yy(1,3),i=0,r=0;if(n)for(o=0;o<n.length;o++)i+=a=n[o].width,0<a&&r++;return 0==(s=i/(r=0===r?1:r))?1:b(t.Gy(e)/s)},Y.prototype.fP=function(){var t,e,n,i,r,o,a,s,t=this,e=t.Fi(),n=t._y(1,3),i=0,r=0;if(n)for(o=0;o<n.length;o++)i+=a=n[o].height,0<a&&r++;return 0==(s=i/(r=0===r?1:r))?1:b(t.Sy(e)/s)},Y.prototype.mw=function(t){var e,n,i,r,o,a,n,o;return N(t)&&(t=3),n=(e=this).parent,i=V(e),r=j(e),n&&n.options.scrollbarMaxAlign?(o=e.Fi(),n.options.scrollByPixel?e.gw(e.Sy(o),i,L(e)-r-1):{Ky:a=e.uP(e.Sy(o),i,L(e)-r-1),Xy:0}):(n=e.getRowCount(t),3!==t&&2!==t||(n-=r),{Ky:o=(o=e.nI(n,t))===B?i:o,Xy:0})},Y.prototype.Mw=function(t){var e,n,i,r,o,n,r;return N(t)&&(t=3),n=(e=this).parent,i=O(e),n&&n.options.scrollbarMaxAlign?(r=e.Fi(),n.options.scrollByPixel?e.Cw(e.Gy(r),i,A(e)-D(e)-1):{iw:o=e.sP(e.Gy(r),i,A(e)-D(e)-1),Xy:0}):(n=e.getColumnCount(t),3!==t&&1!==t||(n-=D(e)),{iw:r=(r=e.r6(n,t))===B?i:r,Xy:0})},Y.prototype.lP=function(){var n,i,r,t,e,o,a,a,a,a,o,n=this,i=V(n),r=O(n),t=L(n)-j(n)-1,e=A(n)-D(n)-1,o=n.Ut,a=o.getLastNonNullRow(3);return i<a&&(i=a),a=o.getLastNonNullCol(3),r<a&&(r=a),a=o.getLastNonNullRow(2),i<a&&(i=a),a=o.getLastNonNullCol(1),r<a&&(r=a),(o=Y.fh)&&h(o,function(t,e){var e,e,e=e.lastNonNullRowAndCol;e&&(e=e.call(n),i=I(i,e.lastNonNullRow),r=I(r,e.lastNonNullCol))}),{lastNonNullRow:i=t<i?t:i,lastNonNullCol:r=e<r?e:r}},Y.prototype.getLastNonNullRow=function(){return this.lP().lastNonNullRow},Y.prototype.getLastNonNullColumn=function(){return this.lP().lastNonNullCol},Y.prototype.$A=function(t,e,n){var i,r,o,a,s,a,u,u,i=this,r=i.Tb,o=i.ly,a=i.mw(),s=a.Ky,a=a.Xy,u=!N(n);(t=r>=i.getRowCount()&&s<t?s:t)>=i.pw()&&t<=s&&(u||t!==r||e!==o)&&((u=i.parent)&&(e||t!==s||(e=a),u.ib&&u.ib.yy(i,t,e||0,n),i.tw()),u&&!u.options.scrollbarShowMax&&i.ew(),i.invalidateLayout())},Y.prototype.o9=function(t,e,n){var i,r,o,a,s,a,u,u,i=this,r=i.Ab,o=i.my,a=i.Mw(),s=a.iw,a=a.Xy,u=!N(n);(t=r>=i.getColumnCount()&&s<t?s:t)>=i.Sw()&&t<=s&&(u||t!==r||e!==o)&&((u=i.parent)&&(e||t!==s||(e=a),u.ib&&u.ib.wy(i,t,e||0,n),i.ow()),u&&!u.options.scrollbarShowMax&&i.aw(),i.invalidateLayout())},Y.prototype.JL=function(t,e,n){var i,r,o,t,a,a,a,s,u,c,r,f,i=this,r=t.row,o=t.col,t=t.hitTestType;return N(r)||N(o)?B:((a=i.getSpan(r,o,t))&&(r=a.row,o=a.col),i.Cb&&(a=i.Cb.D7(r,o,t))&&(r=a.row,o=a.col),a=i.Il(r,o,t),c=i.getCellRect(r,o,s=1===t?-1:E,u=2===t?-1:E,!0),r={sheet:i,row:r,col:o,sheetArea:t},(f=a.cellType||i.$f(t)).Bn(e,n,a,c,r))},Y.prototype.bC=function(){this.unbindAll(),this.E3()},Y.prototype.dA=function(t,e,n){for(var t,i,r,o,a,s,u,c,f,s,f,f,t=this.JS(t),i=t.row,r=t.col,o=i+t.rowCount,a=r+t.colCount,u=i;u<o;u++)for(c=r;c<a;c++)if(s=(f=this.getSpan(u,c,n))?f.row:u,f=f?f.col:c,s=this.getActualStyle(s,f,n),f=e&&this.XT(u,n),!0===s.locked&&!f)return!0;return!1},Y.prototype.zT=function(t,e,n,i,r,o){if(-1<=t&&t<r&&-1<=e&&e<o){if(-1===t&&-1===e)return!0;if(-1===t){if(0!==i&&e+i<=o)return!0}else if(-1===e){if(0!==n&&t+n<=r)return!0}else if(0!==i&&e+i<=o&&0!==n&&t+n<=r)return!0}return!1},Y.prototype.GT=function(t,e,n,i){var r,o,o,o,r=this;return!(t<0&&e<0)&&(t<0&&(o=r.Ut.K_(1))&&o.spans&&0<o.spans.length?r.Ut.GT(-1,e,-1,i,1):e<0&&(o=r.Ut.K_(2))&&o.spans&&0<o.spans.length?r.Ut.GT(t,-1,n,-1,2):!!((o=r.Ut.K_(3))&&o.spans&&0<o.spans.length)&&r.Ut.GT(t,e,n,i,3))},Y.prototype.suspendPaint=function(){var t,e,t=this,e=t.My;t.My++,0===e&&Y.et(t,ft,{suspend:!0})},Y.prototype.resumePaint=function(){var t=this;t.My--,t.My<=0&&(t.My=0,Y.et(t,ft,{suspend:!1}),t.hP())&&t.zw()},Y.prototype.hP=function(){var t=this.parent;return!t||t.getActiveSheet()===this},Y.prototype.isPaintSuspended=function(){return 0<this.My},Y.prototype.nR=function(t,e){for(var n,i,r,o,n=this,i=t&&t.length,r=0;r<i;r++)if(o=t[r],e.intersect(o.row,o.col,o.rowCount,o.colCount))return t.splice(r,1),n.nR(t,e.union(o));return e},Y.prototype.getClipboardHelperObj=function(){var t=this.ST();return{isCutting:t.ES,ranges:t._S,showInsertCopyPasteCells:t.TT,fromSheet:t.DS}},Y.prototype.resetFloatingObjectHelperData=function(t){this.dP&&this.dP.remove(t)},Y.prototype.ST=function(){var t=this,e=t.parent;return t.bM||(t.bM=e&&e.bM),t.bM},Y.prototype.BO=function(){var t;return this.MC||((t=this).MC=new i.Wh(function(){!t.MC||t.parent&&t.parent.Vp&&t.parent.Vp.endingCallback||(Y.et(t,"onImageLoaded"),t.repaint())})),this.MC},Y.prototype.Qy=function(){var t,e=this.parent;if(e)return e.commandManager()},Y.prototype.jT=function(t,e){this.ki(T.Events.InvalidOperation,{sheet:this,sheetName:this.name(),invalidType:t,message:e})},Y.prototype.Rj=function(t,e,n,i,r,o){var a,s;0===this.vf&&(a={sheet:this,sheetName:this.name(),row:e,col:n,sheetArea:i,propertyName:t,oldValue:r,newValue:o,isUndo:this.Nj},this.ki(T.Events.CellChanged,a),(s=this.Ut).ZI(["cellChanged",t,e,n,i,o,r]))},Y.prototype.eT=function(t,e,n,i){this.ki(T.Events.ValueChanged,{sheet:this,sheetName:this.name(),row:t,col:e,oldValue:n,newValue:i})},Y.prototype.Dj=function(t,e,n,i,r){var o,a,o;if(0===this.vf){if(o={sheet:this,sheetName:this.name(),col:t,sheetArea:e,propertyName:n,newValue:i,oldValue:r,cancel:!1},"addColumns"!==n&&"deleteColumns"!==n||(o.count=i),this.ki(T.Events.ColumnChanging,o),!0===o.cancel)return!1;(a=this.Ut).ZI(["columnChanging",t,e,n,r,i])}return o=this.getDockScrollbarAttachedIndex(),N(o)||this.vP(),!0},Y.prototype.vj=function(t,e,n,i,r){var o,a,o;0===this.vf?(o={sheet:this,sheetName:this.name(),col:t,sheetArea:e,propertyName:n,newValue:i,oldValue:r,isUndo:this.Nj},"addColumns"!==n&&"deleteColumns"!==n||(o.count=i),this.ki(T.Events.ColumnChanged,o),(a=this.Ut).ZI(["columnChanged",t,e,n,r,i])):this.Lj(this,[{col:t}],1),o=this.mP,N(o)||this.gP()},Y.prototype._j=function(t,e,n,i){var r,o,a,s,u,o=[];if(this.tables){for(r=this.tables.pP(t,e,n,i),a=0;a<r.length;a++)o.push(r[a].name());0<o.length&&(s={isUndo:this.Nj,sheet:this,sheetName:this.name(),row:t,col:n,rowCount:e,colCount:i,tableNames:o,action:2},this.ki(T.Events.RangeChanged,s),(u=this.Ut).ZI(["rangeChanged",t,e,n,i]))}},Y.prototype.kj=function(t,e,n,i,r){var o,a;if(0===this.vf){if(o={sheet:this,sheetName:this.name(),row:t,sheetArea:e,propertyName:n,newValue:i,oldValue:r,cancel:!1},"addRows"!==n&&"deleteRows"!==n||(o.count=i),this.ki(T.Events.RowChanging,o),!0===o.cancel)return!1;(a=this.Ut).ZI(["rowChanging",t,e,n,r,i])}return!0},Y.prototype.dj=function(t,e,n,i,r){var o,a;0===this.vf?(o={sheet:this,sheetName:this.name(),row:t,sheetArea:e,propertyName:n,newValue:i,oldValue:r,isUndo:this.Nj},"addRows"!==n&&"deleteRows"!==n||(o.count=i),this.ki(T.Events.RowChanged,o),(a=this.Ut).ZI(["rowChanged",t,e,n,r,i])):this.Lj(this,[{row:t}],2)},Y.prototype.Oj=function(t,e){e!==t&&(this.ki(T.Events.ViewZoomed,{sheet:this,sheetName:this.name(),oldZoomFactor:e,newZoomFactor:t}),this.ki(T.Events.UserZooming,{sheet:this,sheetName:this.name(),oldZoomFactor:e,newZoomFactor:t}))},Y.prototype.EA=function(t,e){return!(this.O9||!this.rt._A(t,e)||(this.ki(T.Events.SelectionChanging,{sheet:this,sheetName:this.name(),oldSelections:t,newSelections:e}),0))},Y.prototype.jA=function(t,e){this.ki(T.Events.SelectionChanged,{sheet:this,sheetName:this.name(),oldSelections:t,newSelections:this.getSelections(),shiftKey:e})},Y.prototype.SI=function(t,e,n,i,r,o,a,s,u,c,f){var l,t,l={sheet:this,sheetName:this.name(),row:t,col:e,rowCount:n,colCount:i,changedCells:r,action:o},t={sheet:this,sheetName:this.name(),row:t,col:e,rowCount:n,colCount:i,changedCells:r,isUndo:!!c,action:o};a&&(t.sheetArea=l.sheetArea=a),s&&(l.value=s),(r&&0<r.length||f!==E)&&(u&&0<u.length&&(t.tableNames=u),this.ki(T.Events.RangeChanged,t),this.ki(T.Events.RangeChangedInternal,l))},Y.prototype._i=function(t,e){var t={sheet:this,sheetName:this.name(),oldStatus:t,newStatus:e};this.ki(T.Events.EditorStatusChanged,t)},Y.prototype.bP=function(){return this.yP||(this.yP=(0,l.GC$)(W("input"))),this.yP},Y.prototype.o5=function(){var t=this;return t.parent&&t.parent.options.pasteSkipInvisibleRange},Y.prototype.lT=function(t,e,n){var i,r,o,a,s,i=this,r=0,o=i.getColumnWidth,a=i.getColumnCount();for(n&&(o=i.getRowHeight,a=i.getRowCount()),s=t=t<0?0:t;s<t+e;s++)s<a&&0===o.call(i,s)&&(r++,e++);return r},Y.prototype.ox=function(t,e,n){var i,r,o,a,i=this,r=0,o=i.getColumnWidth;for(n&&(o=i.getRowHeight),a=t=t<0?0:t;t-e<a&&0<a;a--)0===o.call(i,a)&&(r++,e++);return r},Y.prototype.ix=function(t,e,n){var i,r,o,a,i=this,r=0,o=i.getColumnWidth;for(n&&(o=i.getRowHeight),a=t=t<0?0:t;a<t+e;a++)0===o.call(i,a)&&r++;return r},Y.prototype.bind=function(t,e,n){this.bP().bind(t+gt,e,n)},Y.prototype.unbind=function(t,e){this.bP().unbind(t+gt,e)},Y.prototype.ki=function(t,e,n){this.updateEventsData&&this.updateEventsData(t,e),0!==this.vf&&!n||this.bP().trigger(t,e)},Y.prototype.unbindAll=function(){this.unbind("")},Y.prototype.D3=function(t,e,n){0<=t.indexOf(".")?this.bind(t,e,n):this.bind(t+mt,e,n)},Y.prototype._3=function(t,e){0<=t.indexOf(".")?this.unbind(t,e):this.unbind(t+mt,e)},Y.prototype.E3=function(){this.unbind(mt)},Y.prototype.ot=function(){var t=this.kg;return new T.Rect(t.x,t.y,t.width,t.height)},Y.prototype.cg=function(t){this.kg=new T.Rect(t.x,t.y,t.width,t.height)},Y.prototype.scroll=function(t,e){var n,i,r,o,a,i,s,u,r,e,c,f,e,n=this,i=n.parent;i&&(o=(r=i.options).scrollByPixel,a=r.scrollPixel,i=i.ib,s=r.scrollbarShowMax,u=r.showHorizontalScrollbar,r=r.showVerticalScrollbar,0!==e&&(c=(e=i.bw(n,Math.round(e)/a)).iw,f=o?e.Xy:0,c===n.Ab&&f===n.my||(i.wy(n,c,f),u&&(n.ow(),s||(n.Zw=!0)))),0!==t)&&(c=(e=i.hw(n,Math.round(t)/a)).Ky,f=o?e.Xy:0,c===n.Tb&&f===n.ly||(i.yy(n,c,f),r&&(n.tw(),s||(n.Ww=!0))))},Y.prototype.isCtrlPressed=function(t){return this.rt&&this.rt.ctrl},Y.prototype.deselectIgnoreSpan=function(){return!1},Y.prototype.Wb=function(t,e){var n,i,r,o,a,s,u,c,f,l,h,d,v,g,g,g,m,p,S,w,b,C,u,i,g,n=this,i=n.zoom(),r=e.newValue,o=e.oldValue,a=e.scrollEventType,s=t.options.scrollByPixel,u=t.options.scrollPixel;if(o=e.oldValue=N(o)?0:s?k(o):y(o+"",10),n.Ww=!1,l=n.pw(),h=n.mw().Ky,d=t.options.scrollbarShowMax,v=0,s){for(g=(r=k(r))-o,a!==P.Zi.thumbTrack&&(r=o+(g*=u*i),g=t.Xb.v4(),r<0?r=0:g<r&&(r=g)),d||(n.Ww=!0,a===P.Zi.smallIncrement&&r===o?r+=u*i:e.ignoreUpdatePosition=!0),S=(g=n.frozenRowCount())+(m=n.getRowCount()-n.frozenTrailingRowCount()-g)-1,b=w=0,C=g;C<=S;C++)if(r<=(w+=b=n.Gt(C))){v=w-r-b,c=C;break}N(c)&&(v=-n.Gt(c=S),r=w)}else c=y(r+"",10),c=n.oP(c),a===P.Zi.largeDecrement||a===P.Zi.smallDecrement?(a===P.Zi.largeDecrement&&(c=n.QA()),-1!==(f=n.vw(c,!0))&&f!==c&&(c=f),d||(n.Ww=!0,e.ignoreUpdatePosition=!0)):a!==P.Zi.largeIncrement&&a!==P.Zi.smallIncrement||(a===P.Zi.largeIncrement&&(c=n.sB())===n.Tb&&c++,d||(n.Ww=!0,a===P.Zi.smallIncrement&&r===o&&c++),-1!==(f=n.vw(c))&&f!==c&&(c=f)),h<(c=c<l?l:c)&&(c=h);u=s?k(r):n.qF(c),e.newValue!==u&&(e.newValue=u),i=u,0!==(g=n.Gt(c))&&(i+=M(v)/g),e.newValueWithOffset=s?u:i,o===u&&!s||t.ib.ay(n,c,v)},Y.prototype.Kb=function(t){var e,n,i,r,o,a,e=this,n=t.Xb,i;n.g4!==P.ScrollType.pixels&&(r=e.oP(n.value()),o=e.pw(),a=e.mw().Ky,r<o?n.value(e.qF(o)):a<r&&n.value(e.qF(a))),t.iy(),t.options.scrollbarShowMax||(t.ib.scrolling?e.Ww=!0:t.QC())},Y.prototype.Fb=function(t,e){var n,i,r,o,a,s,u,c,f,l,h,d,v,g,g,g,m,p,S,w,b,C,u,i,g,n=this,i=n.zoom(),r=e.newValue,o=e.oldValue,a=e.scrollEventType,s=t.options.scrollByPixel,u=t.options.scrollPixel;if(o=e.oldValue=N(o)?0:s?k(o):y(o+"",10),n.Zw=!1,l=n.Sw(),h=n.Mw().iw,d=t.options.scrollbarShowMax,v=0,s){for(g=(r=k(r))-o,a!==P.Zi.thumbTrack&&(r=o+(g*=u*i),g=t.zb.v4(),r<0?r=0:g<r&&(r=g)),d||(n.Zw=!0,a===P.Zi.smallIncrement&&r===o?r+=u*i:e.ignoreUpdatePosition=!0),S=(g=n.frozenColumnCount())+(m=n.getColumnCount()-n.frozenTrailingColumnCount()-g)-1,b=w=0,C=g;C<=S;C++)if(r<=(w+=b=n.nn(C))){v=w-r-b,c=C;break}N(c)&&(v=-n.nn(c=S),r=w)}else c=y(r+"",10),c=n.aP(c),a===P.Zi.largeDecrement||a===P.Zi.smallDecrement?(a===P.Zi.largeDecrement&&(c=n.fB()),-1!==(f=n.ww(c,!0))&&f!==c&&(c=f),d||(n.Zw=!0,e.ignoreUpdatePosition=!0)):a!==P.Zi.largeIncrement&&a!==P.Zi.smallIncrement||(a===P.Zi.largeIncrement&&(c=n.oB())===n.Ab&&c++,d||(n.Zw=!0,a===P.Zi.smallIncrement&&r===o&&c++),-1!==(f=n.ww(c))&&f!==c&&(c=f)),h<(c=c<l?l:c)&&(c=h);u=s?k(r):n.KF(c),e.newValue!==u&&(e.newValue=u),i=u,0!==(g=n.nn(c))&&(i+=M(v)/g),e.newValueWithOffset=s?u:i,o===u&&!s||t.ib.ay(n,c,v,!0)},Y.prototype.Gb=function(t){var e,n,i,r,o,a,e=this,n=t.zb;e&&n&&((i=n.g4===P.ScrollType.pixels)||(r=e.aP(n.value()),o=e.Sw(),a=e.Mw().iw,r<o?n.value(e.KF(o)):a<r&&n.value(e.KF(a))),t.iy(),t.options.scrollbarShowMax||(t.ib.scrolling?e.Zw=!0:t.WC()))},Y.prototype.onHorizontalDockScroll=function(t,e){var n,i,e,r,n=this.wP;N(n)||(i=e.oldValue,e=e.newValue,this.scrollColumnView(n,-(r=e-i)))},Y.prototype.WC=function(t,e,n){var i,r,o,a,o,s,s,a,u,c,f,l,h,d,v,g,h,f,e,t,h,f,u,i=this,r=n&&n.g4===P.ScrollType.pixels,o=i.frozenColumnCount(),a=i.getColumnCount()-i.frozenTrailingColumnCount()-o,o=o,s=i.Fi(),s=i.Gy(s),a=0==a?o:o+a-1,u=i.Ab,c=i.my,l=0;t?(r?(f=d=(h=i.Cw(s,o,a)).iw,l=v=h.Xy):f=i.sP(s,o,a),a=f):r&&(l=-i.nn(a)),e?r&&!t&&(l=-i.nn(a)):(h=(g=i.lP()).lastNonNullCol,a=(f=(f=i.sP(s,o,h))===o&&a<++f?a:f)<u?u<a?u:a:f,l=c),a<u?(i.Ab=a,i.my=r?l:0):u===a&&c<l&&(i.my=r?l:0),-1!==(e=i.ww(i.Ab))&&e!==i.Ab&&(i.Ab=e),n&&(u=f=h=t=0,r?(t=i.QF(o),h=i.QF(a)-l,f=s,u=i.QF(i.Ab)-i.my):(t=i.KF(o),h=i.KF(a),f=i.cP(),u=i.KF(i.Ab),f<1&&(f=1)),n.m4(t),n.v4(h),n.d4(f),n.w4(),n.value(u))},Y.prototype.$C=function(t){var e,n,i,r,o,n,e;t&&(e=this.getDockScrollbarAttachedIndex(),N(e)||(n=this.getColumnWidth(e),r=0,o=(i=this.getColumnScrollWidth(e))-n,n=n,e=-this.getColumnScrollOffsetX(e),t.m4(0),t.v4(o),t.d4(n),t.w4(),t.value(e)))},Y.prototype.QC=function(t,e,n){var i,r,o,a,o,s,a,u,c,f,l,s,h,d,v,g,h,f,e,t,h,f,u,i=this,r=n&&n.g4===P.ScrollType.pixels,o=i.frozenRowCount(),a=i.getRowCount()-i.frozenTrailingRowCount()-o,o=o,s=i.Fi(),a=0==a?o:o+a-1,u=i.Tb,c=i.ly,l=0,s=i.Sy(s);t?(r?(f=d=(h=i.gw(s,o,a)).Ky,l=v=h.Xy):f=i.uP(s,o,a),a=f):r&&(l=-i.Gt(a)),e?r&&!t&&(l=-i.Gt(a)):(h=(g=i.lP()).lastNonNullRow,a=(f=(f=i.uP(s,o,h))===o&&a<++f?a:f)<u?u<a?u:a:f,l=c),a<u?(i.Tb=a,i.ly=r?l:0):u===a&&c<l&&(i.ly=r?l:0),-1!==(e=i.vw(i.Tb))&&e!==i.Tb&&(i.Tb=e),n&&(u=f=h=t=0,r?(t=i.XF(o),h=i.XF(a)-l,f=s,u=i.XF(i.Tb)-i.ly):(t=i.qF(o),h=i.qF(a),f=i.fP(),u=i.qF(i.Tb),f<1&&(f=1)),n.m4(t),n.v4(h),n.d4(f),n.w4(),n.value(u))},Y.prototype.FM=function(){for(var t,e,n,i,r,o,a,t=this,e=t.getRowCount(),n=t.getColumnCount(),i=0;i<e;i++)for(r=0;r<n;r++)(o=t.getValue(i,r))instanceof Date&&((a=t.Z_(i,r))&&a.g5(o),t.CL(i,r,a))},Y.prototype.GB=function(t,e){var n=this;1===n.getRowCount(P.SheetArea.colHeader)&&(n.qL(t,e,pt,!1,P.SheetArea.colHeader),n.Zw=!0,n.zw())},Y.prototype.Lt=function(t){var e;return this.Ut.getColumnHeaderFitMode(!1,1,t)},Y.prototype.vL=function(t,e,n,i,r){var o,a,r,n,s,u,u,u,u,c;return N(i)&&(i=3),o=this,r||(a=o.t0(t,e,i),N(a))?(r=o.getCellType(t,e,i),n=n,"General"===(s=!(s=(s=o.l0(t,e,"formatter",i))&&"General"!==s?s:o.l0(t,e,"_autoFormatter",i))&&(u=o.pivotTables,u=3===i&&u?u.findPivotTable(t,e):B)?(u=u.hqt(t,e))&&u.formatter:s)&&(s=E),u={},c=o.l0(t,e,"quotePrefix",i),(n=r.format(n,s,u,{sheet:o,row:t,col:e,sheetArea:i,quotePrefix:c}))&&"string"==typeof n?n.replace(/\r\n?/g,"\n"):n):a},Y.prototype.isRowFilterOut=function(t){return this.XT(t)},Y.prototype.getHDockScrollbarWidth=function(){var t,e,n,i,r,o,a,s,t=this.getDockScrollbarAttachedIndex(),e,n=0;return n=this.Vy&&!N(t)&&(i=this.frozenTrailingColumnCount(),(o=(r=this.getColumnCount())-i)<=t||t<=(a=r-1))?(s=this.Fi()).zy:n},Y.prototype.getDockScrollbarAttachedIndex=function(){return this.wP},Y.prototype.setDockScrollbarAttachedIndex=function(t){this.wP=t,this.Zw=!0,this.zw()},Y.prototype.vP=function(){var t,e,n,t,t=this.getDockScrollbarAttachedIndex(),e,n,t=this.Ut.Q_(!1,P.SheetArea.viewport).NE(t);this.mP=t},Y.prototype.gP=function(){var t,e,n,i,n,t,e,n=this.Ut.Q_(!1,P.SheetArea.viewport).EE(),i=this.mP,n=n.indexOf(i);this.setDockScrollbarAttachedIndex(n=-1===n?B:n)},Y.prototype.setScrollableColumnIndexInFrozenTrailingColumnArea=function(t){var e,n,i,r;0<=t&&(t+=i=(e=this.getColumnCount())-(n=this.frozenTrailingColumnCount()))<=(r=e-1)&&this.setDockScrollbarAttachedIndex(t)},Y.prototype.getColumnScrollWidth=function(t){var e,n,e,n;return this.Ut.Q_(!1,P.SheetArea.viewport).getScrollContentWidth(t)},Y.prototype.setColumnScrollWidth=function(t,e){var n,i,n,i;this.Ut.Q_(!1,P.SheetArea.viewport).setScrollContentWidth(t,e),this.Zw=!0,this.zw()},Y.prototype.getColumnScrollOffsetX=function(t){var e,n,e,n;return this.Ut.Q_(!1,P.SheetArea.viewport).getScrollOffsetX(t)},Y.prototype.setColumnScrollOffsetX=function(t,e){var n,i,n,i;this.Ut.Q_(!1,P.SheetArea.viewport).setScrollOffsetX(t,e),this.JF(),this.n3(),this.LL(t)},Y.prototype.scrollColumnView=function(t,e){var n,i,r,o,a,s,n,i=this.Ut.Q_(!1,P.SheetArea.viewport),r=this.getColumnWidth(t),o=this.getColumnScrollWidth(t),a=this.getColumnScrollOffsetX(t),s=a+e;0<s?e=-a:s<r-o&&(e=r-o-a),i.setScrollOffsetX(t,e,!0),this.JF(),this.n3(),this.LL(t)},Y.prototype.getScrollTooltipContent=function(t,e){var n,i,t,i,n="",i=this.Ab+1;return t?n=g().Tip_Row+(this.Tb+1):(t=this.getDockScrollbarAttachedIndex(),e&&!N(t)&&(i=this.getDockScrollbarAttachedIndex()+1),1!==this.options.colHeaderAutoText&&(i=T.util.Vf(i)),n=g().Tip_Column+i,e&&!N(t)&&(i=k(this.getColumnScrollOffsetX(t)),n+=" ".concat(g().Tip_Column_Offset,": ").concat(i))),n},Y.prototype.expandSelection=function(t,e){for(var n,i,r,o,a,s,n=new T.Range(e.row,e.col,e.rowCount,e.colCount),i=new T.Range(e.row,e.col,e.rowCount,e.colCount),r=!0,o=!0,a=!0,s=!0;r||o||a||s;)r&&T.util.X0(t,n.row-1,n.col-1,n.colCount+2)&&(n.row=n.row-1,n.rowCount=n.rowCount+1),o&&T.util.X0(t,n.row+n.rowCount,n.col-1,n.colCount+2)&&(n.rowCount=n.rowCount+1),a&&T.util.q0(t,n.row-1,n.col-1,n.rowCount+2)&&(n.col=n.col-1,n.colCount=n.colCount+1),s&&T.util.q0(t,n.row-1,n.col+n.colCount,n.rowCount+2)&&(n.colCount=n.colCount+1),s=a=o=r=!1,i.row===n.row?i.rowCount===n.rowCount-1&&(o=!0):(r=!0,i.rowCount===n.rowCount-2&&(o=!0)),i.col===n.col?i.colCount===n.colCount-1&&(s=!0):(a=!0,i.colCount===n.colCount-2&&(s=!0)),i.row=n.row,i.col=n.col,i.rowCount=n.rowCount,i.colCount=n.colCount;return n},Y.prototype.deleteBlankContent=function(t,e){1===e.rowCount&&1===e.colCount||(T.util.X0(t,e.row,e.col,e.colCount)||(e.row=e.row+1,e.rowCount=e.rowCount-1),T.util.X0(t,e.row+e.rowCount-1,e.col,e.colCount)||(e.rowCount=e.rowCount-1),T.util.q0(t,e.row,e.col,e.rowCount)||(e.col=e.col+1,e.colCount=e.colCount-1),T.util.q0(t,e.row,e.col+e.colCount-1,e.rowCount))||(e.colCount=e.colCount-1)},Y.prototype.MP=function(){return!1},Y.prototype.FT=function(){return g().Exp_InvalidOperationInProtect},Y.prototype.Ci=function(t,e,n){return this.CP(t,e,n)},Y.prototype.CP=function(t,e,n){return this.Ut.Ci(t,e,n)},Y.prototype.R2e=function(){return this.options.sheetTabColor},Y.prototype.parameter=function(t){var e,n,i,r;if(0===arguments.length){for(i in n={},e=this.ghe)e.hasOwnProperty(i)&&(n[i]=u(e[i]));return n}if(t){for(i in r={},t)t.hasOwnProperty(i)&&(r[i]=q(t[i]));this.ghe=r}},Y.prototype.continuousPaginateLargeColumn=function(){return!1},Y.prototype.$t=function(t,e,n,i){return this.getValue(t,e,n,i)},Y.prototype.o2e=function(t,e,n,i,r){return this.getActualStyle(t,e,n,i,r)},Y.prototype.isActualProtected=function(){return this.options.isProtected},Y.prototype.getAutoFormatter=function(t,e){var t;return null==(t=this.getStyle(t,e))?void 0:t._autoFormatter},Y.rL=1,Y.Pp=yt,Y.n8=200,Y.e8=20,Y.r8=1,Y.o8=1,Mt=Y,t.Worksheet=Mt,(0,T.$e)(Mt),(kt=Mt.prototype).visible=f("visible",P.SheetTabVisible.visible,function(t){var e,n,i,r,o,a,s,u,e=this,n=e.parent,i=n.sheets,r=i.length,o=l.GC$.inArray(e,i),a=n.getActiveSheetIndex(),s="visible";if(!0!==t&&!1!==t&&t!==P.SheetTabVisible.visible&&t!==P.SheetTabVisible.hidden&&t!==P.SheetTabVisible.veryHidden&&(e._ps[s]=P.SheetTabVisible.visible),!0===t?e._ps[s]=P.SheetTabVisible.visible:!1===t&&(e._ps[s]=P.SheetTabVisible.hidden),t===P.SheetTabVisible.visible||!0===t)a<0?(n.tb(o,1),n.w2&&n.w2.om<0&&(n.w2.om=o)):n.Xg();else if(o===a){for(u=o+1;u<r&&i[u].visible()!==P.SheetTabVisible.visible;)u++;if(r<=u)for(u=o-1;0<=u&&i[u].visible()!==P.SheetTabVisible.visible;)u--;n.w2&&u<n.w2.om&&(n.w2.om=u),u<0?(e.L0(!1),n._2=u,n.Cg()):(n.tb(u,1),t===P.SheetTabVisible.veryHidden&&i[a]&&n.a3(i[a]))}else n.Xg()})},DataManager:function(t){"use strict";t.exports=e.Data},Common:function(t){"use strict";t.exports=e.Spread},CalcEngine:function(t){"use strict";t.exports=e.Spread.CalcEngine},SheetsCalc:function(t){"use strict";t.exports=e.Spread.Sheets.CalcEngine},canvas:function(t){"use strict";t.exports=canvas}},r={},t=n("./dist/core/core.entry.js"),((e=void 0===e?{}:e).Spread=e.Spread||{}).Sheets=t});