ow-eengine-power 2.0.4 → 2.0.5

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.
@@ -44074,31 +44074,6 @@ Object.defineProperties(tr.prototype, {
44074
44074
  tr.prototype.update = function(e) {
44075
44075
  return !0;
44076
44076
  };
44077
- function Kr(e, t) {
44078
- return {
44079
- name: t,
44080
- position: e,
44081
- label: {
44082
- text: t,
44083
- font: "18px sans-serif",
44084
- fillColor: I.GOLD,
44085
- pixelOffset: new q(0, -20),
44086
- style: Jn.FILL_AND_OUTLINE,
44087
- outlineWidth: 2,
44088
- outlineColor: I.BLACK,
44089
- heightReference: zn.NONE,
44090
- distanceDisplayCondition: new it(0, 1e4)
44091
- // 显示距离范围
44092
- },
44093
- point: {
44094
- color: I.RED,
44095
- pixelSize: 12,
44096
- heightReference: zn.NONE,
44097
- distanceDisplayCondition: new it(0, 1e4)
44098
- // 显示距离范围
44099
- }
44100
- };
44101
- }
44102
44077
  function v(e, t, n = 10, i = "#ba1919") {
44103
44078
  return {
44104
44079
  name: t,
@@ -44155,6 +44130,31 @@ function vs(e, t, n, i, s = new He(
44155
44130
  }
44156
44131
  };
44157
44132
  }
44133
+ function Kr(e, t) {
44134
+ return {
44135
+ name: t,
44136
+ position: e,
44137
+ label: {
44138
+ text: t,
44139
+ font: "18px sans-serif",
44140
+ fillColor: I.GOLD,
44141
+ pixelOffset: new q(0, -20),
44142
+ style: Jn.FILL_AND_OUTLINE,
44143
+ outlineWidth: 2,
44144
+ outlineColor: I.BLACK,
44145
+ heightReference: zn.NONE,
44146
+ distanceDisplayCondition: new it(0, 1e4)
44147
+ // 显示距离范围
44148
+ },
44149
+ point: {
44150
+ color: I.RED,
44151
+ pixelSize: 12,
44152
+ heightReference: zn.NONE,
44153
+ distanceDisplayCondition: new it(0, 1e4)
44154
+ // 显示距离范围
44155
+ }
44156
+ };
44157
+ }
44158
44158
  function Q(e, t, n, i, s) {
44159
44159
  n || (n = new He());
44160
44160
  const a = we.headingPitchRollQuaternion(
@@ -6581,7 +6581,7 @@ void main()
6581
6581
  v_pickColor = pickColor;
6582
6582
  v_splitDirection = distanceDisplayConditionAndDisableDepthAndSplitDirection.w;
6583
6583
  }
6584
- `,px=Re.SHOW_INDEX,sf=Re.POSITION_INDEX,m0=Re.COLOR_INDEX,mx=Re.OUTLINE_COLOR_INDEX,_x=Re.OUTLINE_WIDTH_INDEX,gx=Re.PIXEL_SIZE_INDEX,_0=Re.SCALE_BY_DISTANCE_INDEX,g0=Re.TRANSLUCENCY_BY_DISTANCE_INDEX,T0=Re.DISTANCE_DISPLAY_CONDITION_INDEX,Tx=Re.DISABLE_DEPTH_DISTANCE_INDEX,yx=Re.SPLIT_DIRECTION_INDEX,rf=Re.NUMBER_OF_PROPERTIES,tn={positionHighAndSize:0,positionLowAndOutline:1,compressedAttribute0:2,compressedAttribute1:3,scaleByDistance:4,distanceDisplayConditionAndDisableDepthAndSplitDirection:5};function An(e){e=g(e,g.EMPTY_OBJECT),this._sp=void 0,this._spTranslucent=void 0,this._rsOpaque=void 0,this._rsTranslucent=void 0,this._vaf=void 0,this._pointPrimitives=[],this._pointPrimitivesToUpdate=[],this._pointPrimitivesToUpdateIndex=0,this._pointPrimitivesRemoved=!1,this._createVertexArray=!1,this._shaderScaleByDistance=!1,this._compiledShaderScaleByDistance=!1,this._shaderTranslucencyByDistance=!1,this._compiledShaderTranslucencyByDistance=!1,this._shaderDistanceDisplayCondition=!1,this._compiledShaderDistanceDisplayCondition=!1,this._shaderDisableDepthDistance=!1,this._compiledShaderDisableDepthDistance=!1,this._propertiesChanged=new Uint32Array(rf),this._maxPixelSize=1,this._baseVolume=new te,this._baseVolumeWC=new te,this._baseVolume2D=new te,this._boundingVolume=new te,this._boundingVolumeDirty=!1,this._colorCommands=[],this.show=g(e.show,!0),this.modelMatrix=k.clone(g(e.modelMatrix,k.IDENTITY)),this._modelMatrix=k.clone(k.IDENTITY),this.debugShowBoundingVolume=g(e.debugShowBoundingVolume,!1),this.blendOption=g(e.blendOption,_t.OPAQUE_AND_TRANSLUCENT),this._blendOption=void 0,this._mode=ye.SCENE3D,this._maxTotalPointSize=1,this._buffersUsage=[We.STATIC_DRAW,We.STATIC_DRAW,We.STATIC_DRAW,We.STATIC_DRAW,We.STATIC_DRAW,We.STATIC_DRAW,We.STATIC_DRAW,We.STATIC_DRAW,We.STATIC_DRAW];const t=this;this._uniforms={u_maxTotalPointSize:function(){return t._maxTotalPointSize}}}Object.defineProperties(An.prototype,{length:{get:function(){return af(this),this._pointPrimitives.length}}});function y0(e){const t=e.length;for(let n=0;n<t;++n)e[n]&&e[n]._destroy()}An.prototype.add=function(e){const t=new Re(e,this);return t._index=this._pointPrimitives.length,this._pointPrimitives.push(t),this._createVertexArray=!0,t},An.prototype.remove=function(e){return this.contains(e)?(this._pointPrimitives[e._index]=null,this._pointPrimitivesRemoved=!0,this._createVertexArray=!0,e._destroy(),!0):!1},An.prototype.removeAll=function(){y0(this._pointPrimitives),this._pointPrimitives=[],this._pointPrimitivesToUpdate=[],this._pointPrimitivesToUpdateIndex=0,this._pointPrimitivesRemoved=!1,this._createVertexArray=!0};function af(e){if(e._pointPrimitivesRemoved){e._pointPrimitivesRemoved=!1;const t=[],n=e._pointPrimitives,i=n.length;for(let o=0,a=0;o<i;++o){const r=n[o];r&&(r._index=a++,t.push(r))}e._pointPrimitives=t}}An.prototype._updatePointPrimitive=function(e,t){e._dirty||(this._pointPrimitivesToUpdate[this._pointPrimitivesToUpdateIndex++]=e),++this._propertiesChanged[t]},An.prototype.contains=function(e){return l(e)&&e._pointPrimitiveCollection===this},An.prototype.get=function(e){if(!l(e))throw new C("index is required.");return af(this),this._pointPrimitives[e]},An.prototype.computeNewBuffersUsage=function(){const e=this._buffersUsage;let t=!1;const n=this._propertiesChanged;for(let i=0;i<rf;++i){const o=n[i]===0?We.STATIC_DRAW:We.STREAM_DRAW;t=t||e[i]!==o,e[i]=o}return t};function Cx(e,t,n){return new Dt(e,[{index:tn.positionHighAndSize,componentsPerAttribute:4,componentDatatype:he.FLOAT,usage:n[sf]},{index:tn.positionLowAndShow,componentsPerAttribute:4,componentDatatype:he.FLOAT,usage:n[sf]},{index:tn.compressedAttribute0,componentsPerAttribute:4,componentDatatype:he.FLOAT,usage:n[m0]},{index:tn.compressedAttribute1,componentsPerAttribute:4,componentDatatype:he.FLOAT,usage:n[g0]},{index:tn.scaleByDistance,componentsPerAttribute:4,componentDatatype:he.FLOAT,usage:n[_0]},{index:tn.distanceDisplayConditionAndDisableDepthAndSplitDirection,componentsPerAttribute:4,componentDatatype:he.FLOAT,usage:n[T0]}],t)}const cf=new Qe;function C0(e,t,n,i){const o=i._index,a=i._getActualPosition();e._mode===ye.SCENE3D&&(te.expand(e._baseVolume,a,e._baseVolume),e._boundingVolumeDirty=!0),Qe.fromCartesian(a,cf);const r=i.pixelSize,f=i.outlineWidth;e._maxPixelSize=Math.max(e._maxPixelSize,r+f);const c=n[tn.positionHighAndSize],h=cf.high;c(o,h.x,h.y,h.z,r);const d=n[tn.positionLowAndOutline],p=cf.low;d(o,p.x,p.y,p.z,f)}const Wa=65536,ir=256;function w0(e,t,n,i){const o=i._index,a=i.color,r=i.getPickId(t).color,f=i.outlineColor;let c=I.floatToByte(a.red),h=I.floatToByte(a.green),d=I.floatToByte(a.blue);const p=c*Wa+h*ir+d;c=I.floatToByte(f.red),h=I.floatToByte(f.green),d=I.floatToByte(f.blue);const m=c*Wa+h*ir+d;c=I.floatToByte(r.red),h=I.floatToByte(r.green),d=I.floatToByte(r.blue);const T=c*Wa+h*ir+d,y=I.floatToByte(a.alpha)*Wa+I.floatToByte(f.alpha)*ir+I.floatToByte(r.alpha),w=n[tn.compressedAttribute0];w(o,p,m,T,y)}function A0(e,t,n,i){const o=i._index;let a=0,r=1,f=1,c=1;const h=i.translucencyByDistance;l(h)&&(a=h.near,r=h.nearValue,f=h.far,c=h.farValue,(r!==1||c!==1)&&(e._shaderTranslucencyByDistance=!0));let d=i.show&&i.clusterShow;i.color.alpha===0&&i.outlineColor.alpha===0&&(d=!1),r=S.clamp(r,0,1),r=r===1?255:r*255|0;const p=(d?1:0)*ir+r;c=S.clamp(c,0,1),c=c===1?255:c*255|0;const m=c,T=n[tn.compressedAttribute1];T(o,p,m,a,f)}function E0(e,t,n,i){const o=i._index,a=n[tn.scaleByDistance];let r=0,f=1,c=1,h=1;const d=i.scaleByDistance;l(d)&&(r=d.near,f=d.nearValue,c=d.far,h=d.farValue,(f!==1||h!==1)&&(e._shaderScaleByDistance=!0)),a(o,r,f,c,h)}function b0(e,t,n,i){const o=i._index,a=n[tn.distanceDisplayConditionAndDisableDepthAndSplitDirection];let r=0,f=Number.MAX_VALUE;const c=i.distanceDisplayCondition;l(c)&&(r=c.near,f=c.far,r*=r,f*=f,e._shaderDistanceDisplayCondition=!0);let h=i.disableDepthTestDistance;h*=h,h>0&&(e._shaderDisableDepthDistance=!0,h===Number.POSITIVE_INFINITY&&(h=-1));let d=0;const p=i.splitDirection;l(p)&&(d=p),a(o,r,f,h,d)}function wx(e,t,n,i){C0(e,t,n,i),w0(e,t,n,i),A0(e,t,n,i),E0(e,t,n,i),b0(e,t,n,i)}function hf(e,t,n,i,o,a){let r;i.mode===ye.SCENE3D?(r=e._baseVolume,e._boundingVolumeDirty=!0):r=e._baseVolume2D;const f=[];for(let c=0;c<n;++c){const h=t[c],d=h.position,p=Re._computeActualPosition(d,i,o);l(p)&&(h._setActualPosition(p),a?f.push(p):te.expand(r,p,r))}a&&te.fromPoints(f,r)}function Ax(e,t){const n=t.mode,i=e._pointPrimitives,o=e._pointPrimitivesToUpdate,a=e._modelMatrix;e._createVertexArray||e._mode!==n||n!==ye.SCENE3D&&!k.equals(a,e.modelMatrix)?(e._mode=n,k.clone(e.modelMatrix,a),e._createVertexArray=!0,(n===ye.SCENE3D||n===ye.SCENE2D||n===ye.COLUMBUS_VIEW)&&hf(e,i,i.length,t,a,!0)):n===ye.MORPHING?hf(e,i,i.length,t,a,!0):(n===ye.SCENE2D||n===ye.COLUMBUS_VIEW)&&hf(e,o,e._pointPrimitivesToUpdateIndex,t,a,!1)}function Ex(e,t,n){const o=t.camera.getPixelSize(n,t.context.drawingBufferWidth,t.context.drawingBufferHeight)*e._maxPixelSize;n.radius+=o}const bx=[];An.prototype.update=function(e){if(af(this),!this.show)return;this._maxTotalPointSize=xe.maximumAliasedPointSize,Ax(this,e);const n=this._pointPrimitives.length,i=this._pointPrimitivesToUpdate,o=this._pointPrimitivesToUpdateIndex,a=this._propertiesChanged,r=this._createVertexArray;let f;const c=e.context,h=e.passes,d=h.pick;if(r||!d&&this.computeNewBuffersUsage()){this._createVertexArray=!1;for(let B=0;B<rf;++B)a[B]=0;if(this._vaf=this._vaf&&this._vaf.destroy(),n>0){this._vaf=Cx(c,n,this._buffersUsage),f=this._vaf.writers;for(let B=0;B<n;++B){const L=this._pointPrimitives[B];L._dirty=!1,wx(this,c,f,L)}this._vaf.commit()}this._pointPrimitivesToUpdateIndex=0}else if(o>0){const B=bx;B.length=0,(a[sf]||a[_x]||a[gx])&&B.push(C0),(a[m0]||a[mx])&&B.push(w0),(a[px]||a[g0])&&B.push(A0),a[_0]&&B.push(E0),(a[T0]||a[Tx]||a[yx])&&B.push(b0);const L=B.length;if(f=this._vaf.writers,o/n>.1){for(let F=0;F<o;++F){const N=i[F];N._dirty=!1;for(let U=0;U<L;++U)B[U](this,c,f,N)}this._vaf.commit()}else{for(let F=0;F<o;++F){const N=i[F];N._dirty=!1;for(let U=0;U<L;++U)B[U](this,c,f,N);this._vaf.subCommit(N._index,1)}this._vaf.endSubCommits()}this._pointPrimitivesToUpdateIndex=0}if(o>n*1.5&&(i.length=n),!l(this._vaf)||!l(this._vaf.va))return;this._boundingVolumeDirty&&(this._boundingVolumeDirty=!1,te.transform(this._baseVolume,this.modelMatrix,this._baseVolumeWC));let p,m=k.IDENTITY;e.mode===ye.SCENE3D?(m=this.modelMatrix,p=te.clone(this._baseVolumeWC,this._boundingVolume)):p=te.clone(this._baseVolume2D,this._boundingVolume),Ex(this,e,p);const T=this._blendOption!==this.blendOption;this._blendOption=this.blendOption,T&&(this._blendOption===_t.OPAQUE||this._blendOption===_t.OPAQUE_AND_TRANSLUCENT?this._rsOpaque=je.fromCache({depthTest:{enabled:!0,func:R.LEQUAL},depthMask:!0}):this._rsOpaque=void 0,this._blendOption===_t.TRANSLUCENT||this._blendOption===_t.OPAQUE_AND_TRANSLUCENT?this._rsTranslucent=je.fromCache({depthTest:{enabled:!0,func:R.LEQUAL},depthMask:!1,blending:ro.ALPHA_BLEND}):this._rsTranslucent=void 0),this._shaderDisableDepthDistance=this._shaderDisableDepthDistance||e.minimumDisableDepthTestDistance!==0;let y,w;(T||this._shaderScaleByDistance&&!this._compiledShaderScaleByDistance||this._shaderTranslucencyByDistance&&!this._compiledShaderTranslucencyByDistance||this._shaderDistanceDisplayCondition&&!this._compiledShaderDistanceDisplayCondition||this._shaderDisableDepthDistance!==this._compiledShaderDisableDepthDistance)&&(y=new Ae({sources:[dx]}),this._shaderScaleByDistance&&y.defines.push("EYE_DISTANCE_SCALING"),this._shaderTranslucencyByDistance&&y.defines.push("EYE_DISTANCE_TRANSLUCENCY"),this._shaderDistanceDisplayCondition&&y.defines.push("DISTANCE_DISPLAY_CONDITION"),this._shaderDisableDepthDistance&&y.defines.push("DISABLE_DEPTH_DISTANCE"),this._blendOption===_t.OPAQUE_AND_TRANSLUCENT&&(w=new Ae({defines:["OPAQUE"],sources:[va]}),this._sp=lt.replaceCache({context:c,shaderProgram:this._sp,vertexShaderSource:y,fragmentShaderSource:w,attributeLocations:tn}),w=new Ae({defines:["TRANSLUCENT"],sources:[va]}),this._spTranslucent=lt.replaceCache({context:c,shaderProgram:this._spTranslucent,vertexShaderSource:y,fragmentShaderSource:w,attributeLocations:tn})),this._blendOption===_t.OPAQUE&&(w=new Ae({sources:[va]}),this._sp=lt.replaceCache({context:c,shaderProgram:this._sp,vertexShaderSource:y,fragmentShaderSource:w,attributeLocations:tn})),this._blendOption===_t.TRANSLUCENT&&(w=new Ae({sources:[va]}),this._spTranslucent=lt.replaceCache({context:c,shaderProgram:this._spTranslucent,vertexShaderSource:y,fragmentShaderSource:w,attributeLocations:tn})),this._compiledShaderScaleByDistance=this._shaderScaleByDistance,this._compiledShaderTranslucencyByDistance=this._shaderTranslucencyByDistance,this._compiledShaderDistanceDisplayCondition=this._shaderDistanceDisplayCondition,this._compiledShaderDisableDepthDistance=this._shaderDisableDepthDistance);let A,E,b,D;const O=e.commandList;if(h.render||d){const B=this._colorCommands,L=this._blendOption===_t.OPAQUE,F=this._blendOption===_t.OPAQUE_AND_TRANSLUCENT;A=this._vaf.va,E=A.length,B.length=E;const N=F?E*2:E;for(D=0;D<N;++D){const U=L||F&&D%2===0;b=B[D],l(b)||(b=B[D]=new et),b.primitiveType=Xe.POINTS,b.pass=U||!F?Nt.OPAQUE:Nt.TRANSLUCENT,b.owner=this;const M=F?Math.floor(D/2):D;b.boundingVolume=p,b.modelMatrix=m,b.shaderProgram=U?this._sp:this._spTranslucent,b.uniformMap=this._uniforms,b.vertexArray=A[M].va,b.renderState=U?this._rsOpaque:this._rsTranslucent,b.debugShowBoundingVolume=this.debugShowBoundingVolume,b.pickId="v_pickColor",O.push(b)}}},An.prototype.isDestroyed=function(){return!1},An.prototype.destroy=function(){return this._sp=this._sp&&this._sp.destroy(),this._spTranslucent=this._spTranslucent&&this._spTranslucent.destroy(),this._spPick=this._spPick&&this._spPick.destroy(),this._vaf=this._vaf&&this._vaf.destroy(),y0(this._pointPrimitives),st(this)};const x0=[Int8Array,Uint8Array,Uint8ClampedArray,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array],ff=1,or=8;class lf{static from(t){if(!(t instanceof ArrayBuffer))throw new Error("Data must be an instance of ArrayBuffer.");const[n,i]=new Uint8Array(t,0,2);if(n!==219)throw new Error("Data does not appear to be in a KDBush format.");const o=i>>4;if(o!==ff)throw new Error(`Got v${o} data when expected v${ff}.`);const a=x0[i&15];if(!a)throw new Error("Unrecognized array type.");const[r]=new Uint16Array(t,2,1),[f]=new Uint32Array(t,4,1);return new lf(f,r,a,t)}constructor(t,n=64,i=Float64Array,o){if(isNaN(t)||t<0)throw new Error(`Unpexpected numItems value: ${t}.`);this.numItems=+t,this.nodeSize=Math.min(Math.max(+n,2),65535),this.ArrayType=i,this.IndexArrayType=t<65536?Uint16Array:Uint32Array;const a=x0.indexOf(this.ArrayType),r=t*2*this.ArrayType.BYTES_PER_ELEMENT,f=t*this.IndexArrayType.BYTES_PER_ELEMENT,c=(8-f%8)%8;if(a<0)throw new Error(`Unexpected typed array class: ${i}.`);o&&o instanceof ArrayBuffer?(this.data=o,this.ids=new this.IndexArrayType(this.data,or,t),this.coords=new this.ArrayType(this.data,or+f+c,t*2),this._pos=t*2,this._finished=!0):(this.data=new ArrayBuffer(or+r+f+c),this.ids=new this.IndexArrayType(this.data,or,t),this.coords=new this.ArrayType(this.data,or+f+c,t*2),this._pos=0,this._finished=!1,new Uint8Array(this.data,0,2).set([219,(ff<<4)+a]),new Uint16Array(this.data,2,1)[0]=n,new Uint32Array(this.data,4,1)[0]=t)}add(t,n){const i=this._pos>>1;return this.ids[i]=i,this.coords[this._pos++]=t,this.coords[this._pos++]=n,i}finish(){const t=this._pos>>1;if(t!==this.numItems)throw new Error(`Added ${t} items when expected ${this.numItems}.`);return uf(this.ids,this.coords,this.nodeSize,0,this.numItems-1,0),this._finished=!0,this}range(t,n,i,o){if(!this._finished)throw new Error("Data not yet indexed - call index.finish().");const{ids:a,coords:r,nodeSize:f}=this,c=[0,a.length-1,0],h=[];for(;c.length;){const d=c.pop()||0,p=c.pop()||0,m=c.pop()||0;if(p-m<=f){for(let A=m;A<=p;A++){const E=r[2*A],b=r[2*A+1];E>=t&&E<=i&&b>=n&&b<=o&&h.push(a[A])}continue}const T=m+p>>1,y=r[2*T],w=r[2*T+1];y>=t&&y<=i&&w>=n&&w<=o&&h.push(a[T]),(d===0?t<=y:n<=w)&&(c.push(m),c.push(T-1),c.push(1-d)),(d===0?i>=y:o>=w)&&(c.push(T+1),c.push(p),c.push(1-d))}return h}within(t,n,i){if(!this._finished)throw new Error("Data not yet indexed - call index.finish().");const{ids:o,coords:a,nodeSize:r}=this,f=[0,o.length-1,0],c=[],h=i*i;for(;f.length;){const d=f.pop()||0,p=f.pop()||0,m=f.pop()||0;if(p-m<=r){for(let A=m;A<=p;A++)I0(a[2*A],a[2*A+1],t,n)<=h&&c.push(o[A]);continue}const T=m+p>>1,y=a[2*T],w=a[2*T+1];I0(y,w,t,n)<=h&&c.push(o[T]),(d===0?t-i<=y:n-i<=w)&&(f.push(m),f.push(T-1),f.push(1-d)),(d===0?t+i>=y:n+i>=w)&&(f.push(T+1),f.push(p),f.push(1-d))}return c}}function uf(e,t,n,i,o,a){if(o-i<=n)return;const r=i+o>>1;S0(e,t,r,i,o,a),uf(e,t,n,i,r-1,1-a),uf(e,t,n,r+1,o,1-a)}function S0(e,t,n,i,o,a){for(;o>i;){if(o-i>600){const h=o-i+1,d=n-i+1,p=Math.log(h),m=.5*Math.exp(2*p/3),T=.5*Math.sqrt(p*m*(h-m)/h)*(d-h/2<0?-1:1),y=Math.max(i,Math.floor(n-d*m/h+T)),w=Math.min(o,Math.floor(n+(h-d)*m/h+T));S0(e,t,n,y,w,a)}const r=t[2*n+a];let f=i,c=o;for(sr(e,t,i,n),t[2*o+a]>r&&sr(e,t,i,o);f<c;){for(sr(e,t,f,c),f++,c--;t[2*f+a]<r;)f++;for(;t[2*c+a]>r;)c--}t[2*i+a]===r?sr(e,t,i,c):(c++,sr(e,t,c,o)),c<=n&&(i=c+1),n<=c&&(o=c-1)}}function sr(e,t,n,i){df(e,n,i),df(t,2*n,2*i),df(t,2*n+1,2*i+1)}function df(e,t,n){const i=e[t];e[t]=e[n],e[n]=i}function I0(e,t,n,i){const o=e-n,a=t-i;return o*o+a*a}function jn(e){e=g(e,g.EMPTY_OBJECT),this._enabled=g(e.enabled,!1),this._pixelRange=g(e.pixelRange,80),this._minimumClusterSize=g(e.minimumClusterSize,2),this._clusterBillboards=g(e.clusterBillboards,!0),this._clusterLabels=g(e.clusterLabels,!0),this._clusterPoints=g(e.clusterPoints,!0),this._labelCollection=void 0,this._billboardCollection=void 0,this._pointCollection=void 0,this._clusterBillboardCollection=void 0,this._clusterLabelCollection=void 0,this._clusterPointCollection=void 0,this._collectionIndicesByEntity={},this._unusedLabelIndices=[],this._unusedBillboardIndices=[],this._unusedPointIndices=[],this._previousClusters=[],this._previousHeight=void 0,this._enabledDirty=!1,this._clusterDirty=!1,this._cluster=void 0,this._removeEventListener=void 0,this._clusterEvent=new Ne,this.show=g(e.show,!0)}function D0(e,t){e.x-=t,e.y-=t,e.width+=t*2,e.height+=t*2}const xx=new be;function O0(e,t,n,i,o){if(l(e._labelCollection)&&i._clusterLabels?o=qn.getScreenSpaceBoundingBox(e,t,o):l(e._billboardCollection)&&i._clusterBillboards?o=me.getScreenSpaceBoundingBox(e,t,o):l(e._pointPrimitiveCollection)&&i._clusterPoints&&(o=Re.getScreenSpaceBoundingBox(e,t,o)),D0(o,n),i._clusterLabels&&!l(e._labelCollection)&&l(e.id)&&W0(i,e.id.id)&&l(e.id._label)){const a=i._collectionIndicesByEntity[e.id.id].labelIndex,r=i._labelCollection.get(a),f=qn.getScreenSpaceBoundingBox(r,t,xx);D0(f,n),o=be.union(o,f,o)}return o}function Sx(e,t){if(e.clusterShow=!0,!l(e._labelCollection)&&l(e.id)&&W0(t,e.id.id)&&l(e.id._label)){const n=t._collectionIndicesByEntity[e.id.id].labelIndex,i=t._labelCollection.get(n);i.clusterShow=!0}}function v0(e,t,n,i){const o={billboard:i._clusterBillboardCollection.add(),label:i._clusterLabelCollection.add(),point:i._clusterPointCollection.add()};o.billboard.show=!1,o.point.show=!1,o.label.show=!0,o.label.text=t.toLocaleString(),o.label.id=n,o.billboard.position=o.label.position=o.point.position=e,i._clusterEvent.raiseEvent(n,o)}function W0(e,t){return l(e)&&l(e._collectionIndicesByEntity[t])&&l(e._collectionIndicesByEntity[t].labelIndex)}function pf(e,t,n,i,o){if(!l(e))return;const a=e.length;for(let r=0;r<a;++r){const f=e.get(r);if(f.clusterShow=!1,!f.show||o._scene.mode===ye.SCENE3D&&!i.isPointVisible(f.position))continue;const c=o._clusterLabels&&l(f._labelCollection),h=o._clusterBillboards&&l(f.id._billboard),d=o._clusterPoints&&l(f.id._point);if(c&&(d||h))continue;const p=f.computeScreenSpacePosition(n);l(p)&&t.push({index:r,collection:e,clustered:!1,coord:p})}}const Ix=new be,Dx=new be,Ox=new be;function vx(e){return function(t){if(l(t)&&t<.05||!e.enabled)return;const n=e._scene,i=e._labelCollection,o=e._billboardCollection,a=e._pointCollection;if(!l(i)&&!l(o)&&!l(a)||!e._clusterBillboards&&!e._clusterLabels&&!e._clusterPoints)return;let r=e._clusterLabelCollection,f=e._clusterBillboardCollection,c=e._clusterPointCollection;l(r)?r.removeAll():r=e._clusterLabelCollection=new Hn({scene:n}),l(f)?f.removeAll():f=e._clusterBillboardCollection=new rn({scene:n}),l(c)?c.removeAll():c=e._clusterPointCollection=new An;const h=e._pixelRange,d=e._minimumClusterSize,p=e._previousClusters,m=[],T=e._previousHeight,y=n.camera.positionCartographic.height,w=n.ellipsoid,A=n.camera.positionWC,E=new ui(w,A),b=[];e._clusterLabels&&pf(i,b,n,E,e),e._clusterBillboards&&pf(o,b,n,E,e),e._clusterPoints&&pf(a,b,n,E,e);let D,O,B,L,F,N,U,M,j,Y,s,x;if(b.length>0){const P=new lf(b.length,64,Uint32Array);for(let z=0;z<b.length;++z)P.add(b[z].coord.x,b[z].coord.y);if(P.finish(),y<T)for(B=p.length,D=0;D<B;++D){const z=p[D];if(!E.isPointVisible(z.position))continue;const H=me._computeScreenSpacePosition(k.IDENTITY,z.position,u.ZERO,q.ZERO,n);if(!l(H))continue;const X=1-y/T;let ee=z.width=z.width*X,K=z.height=z.height*X;ee=Math.max(ee,z.minimumWidth),K=Math.max(K,z.minimumHeight);const ce=H.x-ee*.5,le=H.y-K*.5,we=H.x+ee,Se=H.y+K;for(F=P.range(ce,le,we,Se),N=F.length,Y=0,j=[],O=0;O<N;++O)U=F[O],M=b[U],M.clustered||(++Y,s=M.collection,x=M.index,j.push(s.get(x).id));if(Y>=d)for(v0(z.position,Y,j,e),m.push(z),O=0;O<N;++O)b[F[O]].clustered=!0}for(B=b.length,D=0;D<B;++D){const z=b[D];if(z.clustered)continue;z.clustered=!0,s=z.collection,x=z.index;const H=s.get(x);L=O0(H,z.coord,h,e,Ix);const X=be.clone(L,Dx);F=P.range(L.x,L.y,L.x+L.width,L.y+L.height),N=F.length;const ee=u.clone(H.position);for(Y=1,j=[H.id],O=0;O<N;++O)if(U=F[O],M=b[U],!M.clustered){const K=M.collection.get(M.index),ce=O0(K,M.coord,h,e,Ox);u.add(K.position,ee,ee),be.union(X,ce,X),++Y,j.push(K.id)}if(Y>=d){const K=u.multiplyByScalar(ee,1/Y,ee);for(v0(K,Y,j,e),m.push({position:K,width:X.width,height:X.height,minimumWidth:L.width,minimumHeight:L.height}),O=0;O<N;++O)b[F[O]].clustered=!0}else Sx(H,e)}}r.length===0&&(r.destroy(),e._clusterLabelCollection=void 0),f.length===0&&(f.destroy(),e._clusterBillboardCollection=void 0),c.length===0&&(c.destroy(),e._clusterPointCollection=void 0),e._previousClusters=m,e._previousHeight=y}}jn.prototype._initialize=function(e){this._scene=e;const t=vx(this);this._cluster=t,this._removeEventListener=e.camera.changed.addEventListener(t)},Object.defineProperties(jn.prototype,{enabled:{get:function(){return this._enabled},set:function(e){this._enabledDirty=e!==this._enabled,this._enabled=e}},pixelRange:{get:function(){return this._pixelRange},set:function(e){this._clusterDirty=this._clusterDirty||e!==this._pixelRange,this._pixelRange=e}},minimumClusterSize:{get:function(){return this._minimumClusterSize},set:function(e){this._clusterDirty=this._clusterDirty||e!==this._minimumClusterSize,this._minimumClusterSize=e}},clusterEvent:{get:function(){return this._clusterEvent}},clusterBillboards:{get:function(){return this._clusterBillboards},set:function(e){this._clusterDirty=this._clusterDirty||e!==this._clusterBillboards,this._clusterBillboards=e}},clusterLabels:{get:function(){return this._clusterLabels},set:function(e){this._clusterDirty=this._clusterDirty||e!==this._clusterLabels,this._clusterLabels=e}},clusterPoints:{get:function(){return this._clusterPoints},set:function(e){this._clusterDirty=this._clusterDirty||e!==this._clusterPoints,this._clusterPoints=e}}});function mf(e,t,n,i){return function(o){let a=this[e];l(this._collectionIndicesByEntity)||(this._collectionIndicesByEntity={});let r=this._collectionIndicesByEntity[o.id];if(l(r)||(r=this._collectionIndicesByEntity[o.id]={billboardIndex:void 0,labelIndex:void 0,pointIndex:void 0}),l(a)&&l(r[i]))return a.get(r[i]);l(a)||(a=this[e]=new t({scene:this._scene}));let f,c;const h=this[n];h.length>0?(f=h.shift(),c=a.get(f)):(c=a.add(),f=a.length-1),r[i]=f;const d=this;return Promise.resolve().then(function(){d._clusterDirty=!0}),c}}function _f(e,t){const n=e._collectionIndicesByEntity[t];!l(n.billboardIndex)&&!l(n.labelIndex)&&!l(n.pointIndex)&&delete e._collectionIndicesByEntity[t]}jn.prototype.getLabel=mf("_labelCollection",Hn,"_unusedLabelIndices","labelIndex"),jn.prototype.removeLabel=function(e){const t=this._collectionIndicesByEntity&&this._collectionIndicesByEntity[e.id];if(!l(this._labelCollection)||!l(t)||!l(t.labelIndex))return;const n=t.labelIndex;t.labelIndex=void 0,_f(this,e.id);const i=this._labelCollection.get(n);i.show=!1,i.text="",i.id=void 0,this._unusedLabelIndices.push(n),this._clusterDirty=!0},jn.prototype.getBillboard=mf("_billboardCollection",rn,"_unusedBillboardIndices","billboardIndex"),jn.prototype.removeBillboard=function(e){const t=this._collectionIndicesByEntity&&this._collectionIndicesByEntity[e.id];if(!l(this._billboardCollection)||!l(t)||!l(t.billboardIndex))return;const n=t.billboardIndex;t.billboardIndex=void 0,_f(this,e.id);const i=this._billboardCollection.get(n);i.id=void 0,i.show=!1,i.image=void 0,this._unusedBillboardIndices.push(n),this._clusterDirty=!0},jn.prototype.getPoint=mf("_pointCollection",An,"_unusedPointIndices","pointIndex"),jn.prototype.removePoint=function(e){const t=this._collectionIndicesByEntity&&this._collectionIndicesByEntity[e.id];if(!l(this._pointCollection)||!l(t)||!l(t.pointIndex))return;const n=t.pointIndex;t.pointIndex=void 0,_f(this,e.id);const i=this._pointCollection.get(n);i.show=!1,i.id=void 0,this._unusedPointIndices.push(n),this._clusterDirty=!0};function gf(e){if(!l(e))return;const t=e.length;for(let n=0;n<t;++n)e.get(n).clusterShow=!0}function Wx(e){e.enabled||(l(e._clusterLabelCollection)&&e._clusterLabelCollection.destroy(),l(e._clusterBillboardCollection)&&e._clusterBillboardCollection.destroy(),l(e._clusterPointCollection)&&e._clusterPointCollection.destroy(),e._clusterLabelCollection=void 0,e._clusterBillboardCollection=void 0,e._clusterPointCollection=void 0,gf(e._labelCollection),gf(e._billboardCollection),gf(e._pointCollection))}jn.prototype.update=function(e){if(!this.show)return;let t;l(this._labelCollection)&&this._labelCollection.length>0&&this._labelCollection.get(0)._glyphs.length===0&&(t=e.commandList,e.commandList=[],this._labelCollection.update(e),e.commandList=t),l(this._billboardCollection)&&this._billboardCollection.length>0&&!l(this._billboardCollection.get(0).width)&&(t=e.commandList,e.commandList=[],this._billboardCollection.update(e),e.commandList=t),this._enabledDirty&&(this._enabledDirty=!1,Wx(this),this._clusterDirty=!0),this._clusterDirty&&(this._clusterDirty=!1,this._cluster()),l(this._clusterLabelCollection)&&this._clusterLabelCollection.update(e),l(this._clusterBillboardCollection)&&this._clusterBillboardCollection.update(e),l(this._clusterPointCollection)&&this._clusterPointCollection.update(e),l(this._labelCollection)&&this._labelCollection.update(e),l(this._billboardCollection)&&this._billboardCollection.update(e),l(this._pointCollection)&&this._pointCollection.update(e)},jn.prototype.destroy=function(){this._labelCollection=this._labelCollection&&this._labelCollection.destroy(),this._billboardCollection=this._billboardCollection&&this._billboardCollection.destroy(),this._pointCollection=this._pointCollection&&this._pointCollection.destroy(),this._clusterLabelCollection=this._clusterLabelCollection&&this._clusterLabelCollection.destroy(),this._clusterBillboardCollection=this._clusterBillboardCollection&&this._clusterBillboardCollection.destroy(),this._clusterPointCollection=this._clusterPointCollection&&this._clusterPointCollection.destroy(),l(this._removeEventListener)&&(this._removeEventListener(),this._removeEventListener=void 0),this._labelCollection=void 0,this._billboardCollection=void 0,this._pointCollection=void 0,this._clusterBillboardCollection=void 0,this._clusterLabelCollection=void 0,this._clusterPointCollection=void 0,this._collectionIndicesByEntity=void 0,this._unusedLabelIndices=[],this._unusedBillboardIndices=[],this._unusedPointIndices=[],this._previousClusters=[],this._previousHeight=void 0,this._enabledDirty=!1,this._pixelRangeDirty=!1,this._minimumClusterSizeDirty=!1};function rr(e){this._name=e,this._clock=void 0,this._changed=new Ne,this._error=new Ne,this._isLoading=!1,this._loading=new Ne,this._entityCollection=new en(this),this._entityCluster=new jn}Object.defineProperties(rr.prototype,{name:{get:function(){return this._name},set:function(e){this._name!==e&&(this._name=e,this._changed.raiseEvent(this))}},clock:{get:function(){return this._clock},set:function(e){this._clock!==e&&(this._clock=e,this._changed.raiseEvent(this))}},entities:{get:function(){return this._entityCollection}},isLoading:{get:function(){return this._isLoading},set:function(e){Da.setLoading(this,e)}},changedEvent:{get:function(){return this._changed}},errorEvent:{get:function(){return this._error}},loadingEvent:{get:function(){return this._loading}},show:{get:function(){return this._entityCollection.show},set:function(e){this._entityCollection.show=e}},clustering:{get:function(){return this._entityCluster},set:function(e){if(!l(e))throw new C("value must be defined.");this._entityCluster=e}}}),rr.prototype.update=function(e){return!0};function Pa(e,t){return{name:t,position:e,label:{text:t,font:"18px sans-serif",fillColor:I.GOLD,pixelOffset:new q(0,-20),style:li.FILL_AND_OUTLINE,outlineWidth:2,outlineColor:I.BLACK,heightReference:Ln.NONE,distanceDisplayCondition:new it(0,1e4)},point:{color:I.RED,pixelSize:12,heightReference:Ln.NONE,distanceDisplayCondition:new it(0,1e4)}}}function v(e,t,n=10,i="#ba1919"){return{name:t,label:{text:t,font:"18px sans-serif"},polyline:{show:!0,positions:e,clampToGround:!1,width:n,material:I.fromCssColorString(i),arcType:ai.NONE,shadows:pa.DISABLED}}}function go(e,t,n,i,o=new He(0,0,0),a=1){return{id:e,name:n,position:t,orientation:Ce.headingPitchRollQuaternion(t,o),model:{show:!0,uri:i,scale:a,heightReference:Ln.NONE}}}function Q(e,t,n,i,o){n||(n=new He);const a=Ce.headingPitchRollQuaternion(e,n,i,o),r=k.fromRotationTranslation(G.fromQuaternion(a,new G),e,new k);return k.multiplyByPoint(r,t,new u)}function W(e,t=4){const n=[];for(var i=0;i<e.length-1;i++)n.push(...Px(e[i],e[i+1],t*-1e3,100));return n}function Px(e,t,n,i){var o=[],a=oe.fromCartesian(e),r=oe.fromCartesian(t),f=a.longitude*180/Math.PI,c=a.latitude*180/Math.PI,h=r.longitude*180/Math.PI,d=r.latitude*180/Math.PI,p=Math.sqrt((f-h)*(f-h)+(c-d)*(c-d)),m=p*n,T=u.clone(e),y=u.clone(t),w=u.distance(T,u.ZERO),A=u.distance(y,u.ZERO);if(u.normalize(T,T),u.normalize(y,y),u.distance(T,y)==0)return o;var E=u.angleBetween(T,y);o.push(e);for(var b=1;b<i-1;b++){var D=b*1/(i-1),O=1-D,B=Math.sin(O*E)/Math.sin(E),L=Math.sin(D*E)/Math.sin(E),F=u.multiplyByScalar(T,B,new u),N=u.multiplyByScalar(y,L,new u),U=u.add(F,N,new u),M=D*Math.PI,j=w*O+A*D+Math.sin(M)*m;U=u.multiplyByScalar(U,j,U),o.push(U)}return o.push(t),o}class Bx{constructor(){se(this,"LineID","myEntity1");se(this,"Tag","");se(this,"towers",[]);se(this,"ISPhaseSequence",!1);se(this,"Wairnum",0);se(this,"Type",0);se(this,"wireAColor","#FFFFFF");se(this,"wireBColor","#FFFFFF");se(this,"wireCColor","#FFFFFF");se(this,"wireTColor","#FFFFFF");se(this,"wireD1Color","#FFFFFF");se(this,"wireD2Color","#FFFFFF");se(this,"wireWidth",1)}}class Rx{constructor(){se(this,"id","");se(this,"name","");se(this,"type",0);se(this,"Longitude",0);se(this,"Latitude",0);se(this,"Altitude",0);se(this,"RollX",0);se(this,"RollY",90);se(this,"RollZ",0);se(this,"towerScale",1);se(this,"towerHeight",42);se(this,"towerModelUri","");se(this,"towerPoint",[]);se(this,"Insulators",[])}}class zx{constructor(){se(this,"id","");se(this,"name","");se(this,"type",0);se(this,"WairFX","进");se(this,"linenum",1);se(this,"Wairnum",0);se(this,"PhaseSequence",0);se(this,"RollX",90);se(this,"RollY",0);se(this,"RollZ",0);se(this,"InsulatorScale",1);se(this,"InsulatorLength",0);se(this,"InsulatorModelUri","");se(this,"InsulatorPoint",[])}}class Lx{constructor(){se(this,"name","");se(this,"X",-45);se(this,"Y",90);se(this,"Z",0)}}var nn=(e=>(e[e.A相=0]="A相",e[e.B相=1]="B相",e[e.C相=2]="C相",e[e.地线1=3]="地线1",e[e.地线2=4]="地线2",e))(nn||{}),$i=(e=>(e[e.直线塔=0]="直线塔",e[e.耐张塔=1]="耐张塔",e[e.门架塔=2]="门架塔",e[e.换位塔=3]="换位塔",e))($i||{}),P0=(e=>(e[e.交流单回路=0]="交流单回路",e[e.交流双回路=1]="交流双回路",e[e.直流单回路=2]="直流单回路",e[e.直流双回路=3]="直流双回路",e[e.交流四回路=4]="交流四回路",e))(P0||{}),ar=(e=>(e[e.地线=0]="地线",e[e.回路一=1]="回路一",e[e.回路二=2]="回路二",e[e.回路三=3]="回路三",e[e.回路四=4]="回路四",e))(ar||{}),Ht=(e=>(e[e.悬垂串=0]="悬垂串",e[e.耐张串=1]="耐张串",e[e.跳线串=2]="跳线串",e[e.硬跳串=3]="硬跳串",e[e.V串=4]="V串",e[e.地线串=5]="地线串",e[e.绕跳临时=6]="绕跳临时",e))(Ht||{}),$=(e=>(e[e.单分裂=0]="单分裂",e[e.双分裂=1]="双分裂",e[e.四分裂=2]="四分裂",e[e.六分裂=3]="六分裂",e[e.八分裂=4]="八分裂",e))($||{});class Nx{constructor(t,n,i){se(this,"viewer");se(this,"LineInfo");se(this,"Keym","");se(this,"dataSource2");se(this,"entityCollection2");se(this,"offsetTowers",[]);se(this,"offsetWires11",[]);se(this,"offsetWires12",[]);se(this,"offsetWires13",[]);se(this,"offsetWires21",[]);se(this,"offsetWires22",[]);se(this,"offsetWires23",[]);se(this,"ToffsetArcWires1A",[]);se(this,"ToffsetArcWires2A",[]);se(this,"ToffsetWires1A1",[]);se(this,"ToffsetWires1A2",[]);se(this,"ToffsetArcWires1B",[]);se(this,"ToffsetArcWires2B",[]);se(this,"ToffsetWires1B1",[]);se(this,"ToffsetWires1B2",[]);se(this,"ToffsetArcWires1C",[]);se(this,"ToffsetArcWires2C",[]);se(this,"ToffsetWires1C1",[]);se(this,"ToffsetWires1C2",[]);se(this,"ToffsetArcWires1A2",[]);se(this,"ToffsetArcWires2A2",[]);se(this,"ToffsetWires2A1",[]);se(this,"ToffsetWires2A2",[]);se(this,"ToffsetArcWires1B2",[]);se(this,"ToffsetArcWires2B2",[]);se(this,"ToffsetWires2B1",[]);se(this,"ToffsetWires2B2",[]);se(this,"ToffsetArcWires1C2",[]);se(this,"ToffsetArcWires2C2",[]);se(this,"ToffsetWires2C1",[]);se(this,"ToffsetWires2C2",[]);se(this,"offsetArcWires1A",[]);se(this,"offsetArcWires1B",[]);se(this,"offsetArcWires1C",[]);se(this,"offsetArcWires2A",[]);se(this,"offsetArcWires2B",[]);se(this,"offsetArcWires2C",[]);se(this,"offsetGrouundWires1",[]);se(this,"offsetGrouundWires2",[]);se(this,"offsetGrouundWires11",[]);se(this,"offsetGrouundWires12",[]);this.Keym=i,this.viewer=t,this.LineInfo=n,this.dataSource2=new rr(this.LineInfo.LineID),this.entityCollection2=this.dataSource2.entities}loadLineTower(){if(this.Keym!="OW_JPS_EEngin_001")return;debugger;this.LineInfo.towers.forEach(i=>{this.offsetTowers.push(u.fromDegrees(i.Longitude,i.Latitude,i.Altitude))});let t=0,n=0;this.offsetTowers.forEach((i,o)=>{const a=new He(S.toRadians(this.LineInfo.towers[o].RollX),S.toRadians(this.LineInfo.towers[o].RollY),S.toRadians(this.LineInfo.towers[o].RollZ));this.entityCollection2.add(go(this.LineInfo.towers[o].id,i,this.LineInfo.towers[o].name,this.LineInfo.towers[o].towerModelUri,a,this.LineInfo.towers[o].towerScale));let r=new He(S.toRadians(this.LineInfo.towers[o].RollX),0,0),f=0;this.LineInfo.towers[o].Insulators.forEach(c=>{if(this.LineInfo.towers[o].type==$i.耐张塔)switch(c.type){case Ht.耐张串:let d=new He(S.toRadians(this.LineInfo.towers[o].RollX),0,0);if(c.WairFX=="进"){const w=new He(S.toRadians(c.RollX),S.toRadians(-90),S.toRadians(180)),A=Q(i,new u(this.LineInfo.towers[o].towerPoint[f].X,this.LineInfo.towers[o].towerPoint[f].Y,this.LineInfo.towers[o].towerPoint[f].Z),d);this.entityCollection2.add(go(c.id,A,c.name,c.InsulatorModelUri,w,c.InsulatorScale))}else{const w=new He(S.toRadians(c.RollX),S.toRadians(-90),S.toRadians(0)),A=Q(i,new u(this.LineInfo.towers[o].towerPoint[f].X,this.LineInfo.towers[o].towerPoint[f].Y,this.LineInfo.towers[o].towerPoint[f].Z),d);this.entityCollection2.add(go(c.id,A,c.name,c.InsulatorModelUri,w,c.InsulatorScale))}break;case Ht.跳线串:const p=new He(S.toRadians(c.RollX),S.toRadians(c.RollY),S.toRadians(c.RollZ)),m=Q(i,new u(this.LineInfo.towers[o].towerPoint[f].X,this.LineInfo.towers[o].towerPoint[f].Y,this.LineInfo.towers[o].towerPoint[f].Z),r);this.entityCollection2.add(go(c.id,m,c.name,c.InsulatorModelUri,p,c.InsulatorScale));break;case Ht.地线串:const T=new He(S.toRadians(c.RollX),S.toRadians(c.RollY),S.toRadians(c.RollZ)),y=Q(i,new u(this.LineInfo.towers[o].towerPoint[f].X,this.LineInfo.towers[o].towerPoint[f].Y,this.LineInfo.towers[o].towerPoint[f].Z),r);this.entityCollection2.add(go(c.id,y,c.name,c.InsulatorModelUri,T,c.InsulatorScale));break}else{const d=new He(S.toRadians(c.RollX),S.toRadians(c.RollY),S.toRadians(c.RollZ)),p=Q(i,new u(this.LineInfo.towers[o].towerPoint[f].X,this.LineInfo.towers[o].towerPoint[f].Y,this.LineInfo.towers[o].towerPoint[f].Z),r);this.entityCollection2.add(go(c.id,p,c.name,c.InsulatorModelUri,d,c.InsulatorScale))}const h=[];switch(c.InsulatorPoint.forEach(d=>{h.push(Q(i,new u(d.X,d.Y,d.Z),r))}),c.linenum){case ar.回路一:if(this.LineInfo.ISPhaseSequence)if(this.LineInfo.towers[o].type==$i.耐张塔)switch(c.PhaseSequence){case nn.A相:if(c.type==Ht.耐张串)if(c.WairFX=="进")switch(this.LineInfo.Wairnum){case $.单分裂:this.offsetWires11.push(h[0]),this.ToffsetWires1A1.push(h[0]);break;case $.双分裂:this.offsetWires11.push(h[0]),this.offsetWires11.push(h[1]),this.ToffsetWires1A1.push(h[2]),this.ToffsetWires1A1.push(h[3]);break;case $.四分裂:this.offsetWires11.push(h[0]),this.offsetWires11.push(h[1]),this.offsetWires11.push(h[2]),this.offsetWires11.push(h[3]),this.ToffsetWires1A1.push(h[4]),this.ToffsetWires1A1.push(h[5]),this.ToffsetWires1A1.push(h[6]),this.ToffsetWires1A1.push(h[7]);break;case $.六分裂:this.offsetWires11.push(h[0]),this.offsetWires11.push(h[1]),this.offsetWires11.push(h[2]),this.offsetWires11.push(h[3]),this.offsetWires11.push(h[4]),this.offsetWires11.push(h[5]),this.ToffsetWires1A1.push(h[6]),this.ToffsetWires1A1.push(h[7]),this.ToffsetWires1A1.push(h[8]),this.ToffsetWires1A1.push(h[9]),this.ToffsetWires1A1.push(h[10]),this.ToffsetWires1A1.push(h[11]);break;case $.八分裂:this.offsetWires11.push(h[0]),this.offsetWires11.push(h[1]),this.offsetWires11.push(h[2]),this.offsetWires11.push(h[3]),this.offsetWires11.push(h[4]),this.offsetWires11.push(h[5]),this.offsetWires11.push(h[6]),this.offsetWires11.push(h[7]),this.ToffsetWires1A1.push(h[8]),this.ToffsetWires1A1.push(h[9]),this.ToffsetWires1A1.push(h[10]),this.ToffsetWires1A1.push(h[11]),this.ToffsetWires1A1.push(h[12]),this.ToffsetWires1A1.push(h[13]),this.ToffsetWires1A1.push(h[14]),this.ToffsetWires1A1.push(h[15]);break}else switch(this.LineInfo.Wairnum){case $.单分裂:const d=Q(i,new u(c.InsulatorPoint[0].X*-1,c.InsulatorPoint[0].Y,c.InsulatorPoint[0].Z),r);this.offsetWires11.push(d),this.ToffsetWires1A2.push(d);break;case $.双分裂:const p=Q(i,new u(c.InsulatorPoint[0].X*-1,c.InsulatorPoint[0].Y,c.InsulatorPoint[0].Z),r),m=Q(i,new u(c.InsulatorPoint[1].X*-1,c.InsulatorPoint[1].Y,c.InsulatorPoint[1].Z),r);this.offsetWires11.push(p),this.offsetWires11.push(m),this.ToffsetWires1A2.push(p),this.ToffsetWires1A2.push(m);break;case $.四分裂:const T=Q(i,new u(c.InsulatorPoint[0].X*-1,c.InsulatorPoint[0].Y,c.InsulatorPoint[0].Z),r),y=Q(i,new u(c.InsulatorPoint[1].X*-1,c.InsulatorPoint[1].Y,c.InsulatorPoint[1].Z),r),w=Q(i,new u(c.InsulatorPoint[2].X*-1,c.InsulatorPoint[2].Y,c.InsulatorPoint[2].Z),r),A=Q(i,new u(c.InsulatorPoint[3].X*-1,c.InsulatorPoint[3].Y,c.InsulatorPoint[3].Z),r);this.offsetWires11.push(T),this.offsetWires11.push(y),this.offsetWires11.push(w),this.offsetWires11.push(A),this.ToffsetWires1A2.push(T),this.ToffsetWires1A2.push(y),this.ToffsetWires1A2.push(w),this.ToffsetWires1A2.push(A);break;case $.六分裂:const E=Q(i,new u(c.InsulatorPoint[0].X*-1,c.InsulatorPoint[0].Y,c.InsulatorPoint[0].Z),r),b=Q(i,new u(c.InsulatorPoint[1].X*-1,c.InsulatorPoint[1].Y,c.InsulatorPoint[1].Z),r),D=Q(i,new u(c.InsulatorPoint[2].X*-1,c.InsulatorPoint[2].Y,c.InsulatorPoint[2].Z),r),O=Q(i,new u(c.InsulatorPoint[3].X*-1,c.InsulatorPoint[3].Y,c.InsulatorPoint[3].Z),r),B=Q(i,new u(c.InsulatorPoint[4].X*-1,c.InsulatorPoint[4].Y,c.InsulatorPoint[4].Z),r),L=Q(i,new u(c.InsulatorPoint[5].X*-1,c.InsulatorPoint[5].Y,c.InsulatorPoint[5].Z),r);this.offsetWires11.push(E),this.offsetWires11.push(b),this.offsetWires11.push(D),this.offsetWires11.push(O),this.offsetWires11.push(B),this.offsetWires11.push(L),this.ToffsetWires1A2.push(E),this.ToffsetWires1A2.push(b),this.ToffsetWires1A2.push(D),this.ToffsetWires1A2.push(O),this.ToffsetWires1A2.push(B),this.ToffsetWires1A2.push(L);break;case $.八分裂:const F=Q(i,new u(c.InsulatorPoint[0].X*-1,c.InsulatorPoint[0].Y,c.InsulatorPoint[0].Z),r),N=Q(i,new u(c.InsulatorPoint[1].X*-1,c.InsulatorPoint[1].Y,c.InsulatorPoint[1].Z),r),U=Q(i,new u(c.InsulatorPoint[2].X*-1,c.InsulatorPoint[2].Y,c.InsulatorPoint[2].Z),r),M=Q(i,new u(c.InsulatorPoint[3].X*-1,c.InsulatorPoint[3].Y,c.InsulatorPoint[3].Z),r),j=Q(i,new u(c.InsulatorPoint[4].X*-1,c.InsulatorPoint[4].Y,c.InsulatorPoint[4].Z),r),Y=Q(i,new u(c.InsulatorPoint[5].X*-1,c.InsulatorPoint[5].Y,c.InsulatorPoint[5].Z),r),s=Q(i,new u(c.InsulatorPoint[6].X*-1,c.InsulatorPoint[6].Y,c.InsulatorPoint[6].Z),r),x=Q(i,new u(c.InsulatorPoint[7].X*-1,c.InsulatorPoint[7].Y,c.InsulatorPoint[7].Z),r);this.offsetWires11.push(F),this.offsetWires11.push(N),this.offsetWires11.push(U),this.offsetWires11.push(M),this.offsetWires11.push(j),this.offsetWires11.push(Y),this.offsetWires11.push(s),this.offsetWires11.push(x),this.ToffsetWires1A2.push(F),this.ToffsetWires1A2.push(N),this.ToffsetWires1A2.push(U),this.ToffsetWires1A2.push(M),this.ToffsetWires1A2.push(j),this.ToffsetWires1A2.push(Y),this.ToffsetWires1A2.push(s),this.ToffsetWires1A2.push(x);break}else if(c.type==Ht.跳线串)switch(this.LineInfo.Wairnum){case $.单分裂:this.ToffsetWires1A1.push(h[0]),this.ToffsetWires1A2.push(h[0]);break;case $.双分裂:this.ToffsetWires1A1.push(h[0]),this.ToffsetWires1A1.push(h[1]),this.ToffsetWires1A2.push(h[2]),this.ToffsetWires1A2.push(h[3]);break;case $.四分裂:this.ToffsetWires1A1.push(h[0]),this.ToffsetWires1A1.push(h[1]),this.ToffsetWires1A1.push(h[2]),this.ToffsetWires1A1.push(h[3]),this.ToffsetWires1A2.push(h[4]),this.ToffsetWires1A2.push(h[5]),this.ToffsetWires1A2.push(h[6]),this.ToffsetWires1A2.push(h[7]);break;case $.六分裂:this.ToffsetWires1A1.push(h[0]),this.ToffsetWires1A1.push(h[1]),this.ToffsetWires1A1.push(h[2]),this.ToffsetWires1A1.push(h[3]),this.ToffsetWires1A1.push(h[4]),this.ToffsetWires1A1.push(h[5]),this.ToffsetWires1A2.push(h[6]),this.ToffsetWires1A2.push(h[7]),this.ToffsetWires1A2.push(h[8]),this.ToffsetWires1A2.push(h[9]),this.ToffsetWires1A2.push(h[10]),this.ToffsetWires1A2.push(h[11]);break;case $.八分裂:this.ToffsetWires1A1.push(h[0]),this.ToffsetWires1A1.push(h[1]),this.ToffsetWires1A1.push(h[2]),this.ToffsetWires1A1.push(h[3]),this.ToffsetWires1A1.push(h[4]),this.ToffsetWires1A1.push(h[5]),this.ToffsetWires1A1.push(h[6]),this.ToffsetWires1A1.push(h[7]),this.ToffsetWires1A2.push(h[8]),this.ToffsetWires1A2.push(h[9]),this.ToffsetWires1A2.push(h[10]),this.ToffsetWires1A2.push(h[11]),this.ToffsetWires1A2.push(h[12]),this.ToffsetWires1A2.push(h[13]),this.ToffsetWires1A2.push(h[14]),this.ToffsetWires1A2.push(h[15]);break}break;case nn.B相:if(c.type==Ht.耐张串)if(c.WairFX=="进")switch(this.LineInfo.Wairnum){case $.单分裂:this.offsetWires12.push(h[0]),this.ToffsetWires1B1.push(h[0]);break;case $.双分裂:this.offsetWires12.push(h[0]),this.offsetWires12.push(h[1]),this.ToffsetWires1B1.push(h[2]),this.ToffsetWires1B1.push(h[3]);break;case $.四分裂:this.offsetWires12.push(h[0]),this.offsetWires12.push(h[1]),this.offsetWires12.push(h[2]),this.offsetWires12.push(h[3]),this.ToffsetWires1B1.push(h[4]),this.ToffsetWires1B1.push(h[5]),this.ToffsetWires1B1.push(h[6]),this.ToffsetWires1B1.push(h[7]);break;case $.六分裂:this.offsetWires12.push(h[0]),this.offsetWires12.push(h[1]),this.offsetWires12.push(h[2]),this.offsetWires12.push(h[3]),this.offsetWires12.push(h[4]),this.offsetWires12.push(h[5]),this.ToffsetWires1B1.push(h[6]),this.ToffsetWires1B1.push(h[7]),this.ToffsetWires1B1.push(h[8]),this.ToffsetWires1B1.push(h[9]),this.ToffsetWires1B1.push(h[10]),this.ToffsetWires1B1.push(h[11]);break;case $.八分裂:this.offsetWires12.push(h[0]),this.offsetWires12.push(h[1]),this.offsetWires12.push(h[2]),this.offsetWires12.push(h[3]),this.offsetWires12.push(h[4]),this.offsetWires12.push(h[5]),this.offsetWires12.push(h[6]),this.offsetWires12.push(h[7]),this.ToffsetWires1B1.push(h[8]),this.ToffsetWires1B1.push(h[9]),this.ToffsetWires1B1.push(h[10]),this.ToffsetWires1B1.push(h[11]),this.ToffsetWires1B1.push(h[12]),this.ToffsetWires1B1.push(h[13]),this.ToffsetWires1B1.push(h[14]),this.ToffsetWires1B1.push(h[15]);break}else switch(this.LineInfo.Wairnum){case $.单分裂:const d=Q(i,new u(c.InsulatorPoint[0].X*-1,c.InsulatorPoint[0].Y,c.InsulatorPoint[0].Z),r);this.offsetWires12.push(d),this.ToffsetWires1B2.push(d);break;case $.双分裂:const p=Q(i,new u(c.InsulatorPoint[0].X*-1,c.InsulatorPoint[0].Y,c.InsulatorPoint[0].Z),r),m=Q(i,new u(c.InsulatorPoint[1].X*-1,c.InsulatorPoint[1].Y,c.InsulatorPoint[1].Z),r);this.offsetWires12.push(p),this.offsetWires12.push(m),this.ToffsetWires1B2.push(p),this.ToffsetWires1B2.push(m);break;case $.四分裂:const T=Q(i,new u(c.InsulatorPoint[0].X*-1,c.InsulatorPoint[0].Y,c.InsulatorPoint[0].Z),r),y=Q(i,new u(c.InsulatorPoint[1].X*-1,c.InsulatorPoint[1].Y,c.InsulatorPoint[1].Z),r),w=Q(i,new u(c.InsulatorPoint[2].X*-1,c.InsulatorPoint[2].Y,c.InsulatorPoint[2].Z),r),A=Q(i,new u(c.InsulatorPoint[3].X*-1,c.InsulatorPoint[3].Y,c.InsulatorPoint[3].Z),r);this.offsetWires12.push(T),this.offsetWires12.push(y),this.offsetWires12.push(w),this.offsetWires12.push(A),this.ToffsetWires1B2.push(T),this.ToffsetWires1B2.push(y),this.ToffsetWires1B2.push(w),this.ToffsetWires1B2.push(A);break;case $.六分裂:const E=Q(i,new u(c.InsulatorPoint[0].X*-1,c.InsulatorPoint[0].Y,c.InsulatorPoint[0].Z),r),b=Q(i,new u(c.InsulatorPoint[1].X*-1,c.InsulatorPoint[1].Y,c.InsulatorPoint[1].Z),r),D=Q(i,new u(c.InsulatorPoint[2].X*-1,c.InsulatorPoint[2].Y,c.InsulatorPoint[2].Z),r),O=Q(i,new u(c.InsulatorPoint[3].X*-1,c.InsulatorPoint[3].Y,c.InsulatorPoint[3].Z),r),B=Q(i,new u(c.InsulatorPoint[4].X*-1,c.InsulatorPoint[4].Y,c.InsulatorPoint[4].Z),r),L=Q(i,new u(c.InsulatorPoint[5].X*-1,c.InsulatorPoint[5].Y,c.InsulatorPoint[5].Z),r);this.offsetWires12.push(E),this.offsetWires12.push(b),this.offsetWires12.push(D),this.offsetWires12.push(O),this.offsetWires12.push(B),this.offsetWires12.push(L),this.ToffsetWires1B2.push(E),this.ToffsetWires1B2.push(b),this.ToffsetWires1B2.push(D),this.ToffsetWires1B2.push(O),this.ToffsetWires1B2.push(B),this.ToffsetWires1B2.push(L);break;case $.八分裂:const F=Q(i,new u(c.InsulatorPoint[0].X*-1,c.InsulatorPoint[0].Y,c.InsulatorPoint[0].Z),r),N=Q(i,new u(c.InsulatorPoint[1].X*-1,c.InsulatorPoint[1].Y,c.InsulatorPoint[1].Z),r),U=Q(i,new u(c.InsulatorPoint[2].X*-1,c.InsulatorPoint[2].Y,c.InsulatorPoint[2].Z),r),M=Q(i,new u(c.InsulatorPoint[3].X*-1,c.InsulatorPoint[3].Y,c.InsulatorPoint[3].Z),r),j=Q(i,new u(c.InsulatorPoint[4].X*-1,c.InsulatorPoint[4].Y,c.InsulatorPoint[4].Z),r),Y=Q(i,new u(c.InsulatorPoint[5].X*-1,c.InsulatorPoint[5].Y,c.InsulatorPoint[5].Z),r),s=Q(i,new u(c.InsulatorPoint[6].X*-1,c.InsulatorPoint[6].Y,c.InsulatorPoint[6].Z),r),x=Q(i,new u(c.InsulatorPoint[7].X*-1,c.InsulatorPoint[7].Y,c.InsulatorPoint[7].Z),r);this.offsetWires12.push(F),this.offsetWires12.push(N),this.offsetWires12.push(U),this.offsetWires12.push(M),this.offsetWires12.push(j),this.offsetWires12.push(Y),this.offsetWires12.push(s),this.offsetWires12.push(x),this.ToffsetWires1B2.push(F),this.ToffsetWires1B2.push(N),this.ToffsetWires1B2.push(U),this.ToffsetWires1B2.push(M),this.ToffsetWires1B2.push(j),this.ToffsetWires1B2.push(Y),this.ToffsetWires1B2.push(s),this.ToffsetWires1B2.push(x);break}else if(c.type==Ht.跳线串)switch(this.LineInfo.Wairnum){case $.单分裂:this.ToffsetWires1B1.push(h[0]),this.ToffsetWires1B2.push(h[0]);break;case $.双分裂:this.ToffsetWires1B1.push(h[0]),this.ToffsetWires1B1.push(h[1]),this.ToffsetWires1B2.push(h[2]),this.ToffsetWires1B2.push(h[3]);break;case $.四分裂:this.ToffsetWires1B1.push(h[0]),this.ToffsetWires1B1.push(h[1]),this.ToffsetWires1B1.push(h[2]),this.ToffsetWires1B1.push(h[3]),this.ToffsetWires1B2.push(h[4]),this.ToffsetWires1B2.push(h[5]),this.ToffsetWires1B2.push(h[6]),this.ToffsetWires1B2.push(h[7]);break;case $.六分裂:this.ToffsetWires1B1.push(h[0]),this.ToffsetWires1B1.push(h[1]),this.ToffsetWires1B1.push(h[2]),this.ToffsetWires1B1.push(h[3]),this.ToffsetWires1B1.push(h[4]),this.ToffsetWires1B1.push(h[5]),this.ToffsetWires1B2.push(h[6]),this.ToffsetWires1B2.push(h[7]),this.ToffsetWires1B2.push(h[8]),this.ToffsetWires1B2.push(h[9]),this.ToffsetWires1B2.push(h[10]),this.ToffsetWires1B2.push(h[11]);break;case $.八分裂:this.ToffsetWires1B1.push(h[0]),this.ToffsetWires1B1.push(h[1]),this.ToffsetWires1B1.push(h[2]),this.ToffsetWires1B1.push(h[3]),this.ToffsetWires1B1.push(h[4]),this.ToffsetWires1B1.push(h[5]),this.ToffsetWires1B1.push(h[6]),this.ToffsetWires1B1.push(h[7]),this.ToffsetWires1B2.push(h[8]),this.ToffsetWires1B2.push(h[9]),this.ToffsetWires1B2.push(h[10]),this.ToffsetWires1B2.push(h[11]),this.ToffsetWires1B2.push(h[12]),this.ToffsetWires1B2.push(h[13]),this.ToffsetWires1B2.push(h[14]),this.ToffsetWires1B2.push(h[15]);break}break;case nn.C相:if(c.type==Ht.耐张串)if(c.WairFX=="进")switch(this.LineInfo.Wairnum){case $.单分裂:this.offsetWires13.push(h[0]),this.ToffsetWires1C1.push(h[0]);break;case $.双分裂:this.offsetWires13.push(h[0]),this.offsetWires13.push(h[1]),this.ToffsetWires1C1.push(h[2]),this.ToffsetWires1C1.push(h[3]);break;case $.四分裂:this.offsetWires13.push(h[0]),this.offsetWires13.push(h[1]),this.offsetWires13.push(h[2]),this.offsetWires13.push(h[3]),this.ToffsetWires1C1.push(h[4]),this.ToffsetWires1C1.push(h[5]),this.ToffsetWires1C1.push(h[6]),this.ToffsetWires1C1.push(h[7]);break;case $.六分裂:this.offsetWires13.push(h[0]),this.offsetWires13.push(h[1]),this.offsetWires13.push(h[2]),this.offsetWires13.push(h[3]),this.offsetWires13.push(h[4]),this.offsetWires13.push(h[5]),this.ToffsetWires1C1.push(h[6]),this.ToffsetWires1C1.push(h[7]),this.ToffsetWires1C1.push(h[8]),this.ToffsetWires1C1.push(h[9]),this.ToffsetWires1C1.push(h[10]),this.ToffsetWires1C1.push(h[11]);break;case $.八分裂:this.offsetWires13.push(h[0]),this.offsetWires13.push(h[1]),this.offsetWires13.push(h[2]),this.offsetWires13.push(h[3]),this.offsetWires13.push(h[4]),this.offsetWires13.push(h[5]),this.offsetWires13.push(h[6]),this.offsetWires13.push(h[7]),this.ToffsetWires1C1.push(h[8]),this.ToffsetWires1C1.push(h[9]),this.ToffsetWires1C1.push(h[10]),this.ToffsetWires1C1.push(h[11]),this.ToffsetWires1C1.push(h[12]),this.ToffsetWires1C1.push(h[13]),this.ToffsetWires1C1.push(h[14]),this.ToffsetWires1C1.push(h[15]);break}else switch(this.LineInfo.Wairnum){case $.单分裂:const d=Q(i,new u(c.InsulatorPoint[0].X*-1,c.InsulatorPoint[0].Y,c.InsulatorPoint[0].Z),r);this.offsetWires13.push(d),this.ToffsetWires1C2.push(d);break;case $.双分裂:const p=Q(i,new u(c.InsulatorPoint[0].X*-1,c.InsulatorPoint[0].Y,c.InsulatorPoint[0].Z),r),m=Q(i,new u(c.InsulatorPoint[1].X*-1,c.InsulatorPoint[1].Y,c.InsulatorPoint[1].Z),r);this.offsetWires13.push(p),this.offsetWires13.push(m),this.ToffsetWires1C2.push(p),this.ToffsetWires1C2.push(m);break;case $.四分裂:const T=Q(i,new u(c.InsulatorPoint[0].X*-1,c.InsulatorPoint[0].Y,c.InsulatorPoint[0].Z),r),y=Q(i,new u(c.InsulatorPoint[1].X*-1,c.InsulatorPoint[1].Y,c.InsulatorPoint[1].Z),r),w=Q(i,new u(c.InsulatorPoint[2].X*-1,c.InsulatorPoint[2].Y,c.InsulatorPoint[2].Z),r),A=Q(i,new u(c.InsulatorPoint[3].X*-1,c.InsulatorPoint[3].Y,c.InsulatorPoint[3].Z),r);this.offsetWires13.push(T),this.offsetWires13.push(y),this.offsetWires13.push(w),this.offsetWires13.push(A),this.ToffsetWires1C2.push(T),this.ToffsetWires1C2.push(y),this.ToffsetWires1C2.push(w),this.ToffsetWires1C2.push(A);break;case $.六分裂:const E=Q(i,new u(c.InsulatorPoint[0].X*-1,c.InsulatorPoint[0].Y,c.InsulatorPoint[0].Z),r),b=Q(i,new u(c.InsulatorPoint[1].X*-1,c.InsulatorPoint[1].Y,c.InsulatorPoint[1].Z),r),D=Q(i,new u(c.InsulatorPoint[2].X*-1,c.InsulatorPoint[2].Y,c.InsulatorPoint[2].Z),r),O=Q(i,new u(c.InsulatorPoint[3].X*-1,c.InsulatorPoint[3].Y,c.InsulatorPoint[3].Z),r),B=Q(i,new u(c.InsulatorPoint[4].X*-1,c.InsulatorPoint[4].Y,c.InsulatorPoint[4].Z),r),L=Q(i,new u(c.InsulatorPoint[5].X*-1,c.InsulatorPoint[5].Y,c.InsulatorPoint[5].Z),r);this.offsetWires13.push(E),this.offsetWires13.push(b),this.offsetWires13.push(D),this.offsetWires13.push(O),this.offsetWires13.push(B),this.offsetWires13.push(L),this.ToffsetWires1C2.push(E),this.ToffsetWires1C2.push(b),this.ToffsetWires1C2.push(D),this.ToffsetWires1C2.push(O),this.ToffsetWires1C2.push(B),this.ToffsetWires1C2.push(L);break;case $.八分裂:const F=Q(i,new u(c.InsulatorPoint[0].X*-1,c.InsulatorPoint[0].Y,c.InsulatorPoint[0].Z),r),N=Q(i,new u(c.InsulatorPoint[1].X*-1,c.InsulatorPoint[1].Y,c.InsulatorPoint[1].Z),r),U=Q(i,new u(c.InsulatorPoint[2].X*-1,c.InsulatorPoint[2].Y,c.InsulatorPoint[2].Z),r),M=Q(i,new u(c.InsulatorPoint[3].X*-1,c.InsulatorPoint[3].Y,c.InsulatorPoint[3].Z),r),j=Q(i,new u(c.InsulatorPoint[4].X*-1,c.InsulatorPoint[4].Y,c.InsulatorPoint[4].Z),r),Y=Q(i,new u(c.InsulatorPoint[5].X*-1,c.InsulatorPoint[5].Y,c.InsulatorPoint[5].Z),r),s=Q(i,new u(c.InsulatorPoint[6].X*-1,c.InsulatorPoint[6].Y,c.InsulatorPoint[6].Z),r),x=Q(i,new u(c.InsulatorPoint[7].X*-1,c.InsulatorPoint[7].Y,c.InsulatorPoint[7].Z),r);this.offsetWires13.push(F),this.offsetWires13.push(N),this.offsetWires13.push(U),this.offsetWires13.push(M),this.offsetWires13.push(j),this.offsetWires13.push(Y),this.offsetWires13.push(s),this.offsetWires13.push(x),this.ToffsetWires1C2.push(F),this.ToffsetWires1C2.push(N),this.ToffsetWires1C2.push(U),this.ToffsetWires1C2.push(M),this.ToffsetWires1C2.push(j),this.ToffsetWires1C2.push(Y),this.ToffsetWires1C2.push(s),this.ToffsetWires1C2.push(x);break}else if(c.type==Ht.跳线串)switch(this.LineInfo.Wairnum){case $.单分裂:this.ToffsetWires1C1.push(h[0]),this.ToffsetWires1C2.push(h[0]);break;case $.双分裂:this.ToffsetWires1C1.push(h[0]),this.ToffsetWires1C1.push(h[1]),this.ToffsetWires1C2.push(h[2]),this.ToffsetWires1C2.push(h[3]);break;case $.四分裂:this.ToffsetWires1C1.push(h[0]),this.ToffsetWires1C1.push(h[1]),this.ToffsetWires1C1.push(h[2]),this.ToffsetWires1C1.push(h[3]),this.ToffsetWires1C2.push(h[4]),this.ToffsetWires1C2.push(h[5]),this.ToffsetWires1C2.push(h[6]),this.ToffsetWires1C2.push(h[7]);break;case $.六分裂:this.ToffsetWires1C1.push(h[0]),this.ToffsetWires1C1.push(h[1]),this.ToffsetWires1C1.push(h[2]),this.ToffsetWires1C1.push(h[3]),this.ToffsetWires1C1.push(h[4]),this.ToffsetWires1C1.push(h[5]),this.ToffsetWires1C2.push(h[6]),this.ToffsetWires1C2.push(h[7]),this.ToffsetWires1C2.push(h[8]),this.ToffsetWires1C2.push(h[9]),this.ToffsetWires1C2.push(h[10]),this.ToffsetWires1C2.push(h[11]);break;case $.八分裂:this.ToffsetWires1C1.push(h[0]),this.ToffsetWires1C1.push(h[1]),this.ToffsetWires1C1.push(h[2]),this.ToffsetWires1C1.push(h[3]),this.ToffsetWires1C1.push(h[4]),this.ToffsetWires1C1.push(h[5]),this.ToffsetWires1C1.push(h[6]),this.ToffsetWires1C1.push(h[7]),this.ToffsetWires1C2.push(h[8]),this.ToffsetWires1C2.push(h[9]),this.ToffsetWires1C2.push(h[10]),this.ToffsetWires1C2.push(h[11]),this.ToffsetWires1C2.push(h[12]),this.ToffsetWires1C2.push(h[13]),this.ToffsetWires1C2.push(h[14]),this.ToffsetWires1C2.push(h[15]);break}break}else switch(c.PhaseSequence){case nn.A相:h.forEach(d=>{this.offsetWires11.push(d)});break;case nn.B相:h.forEach(d=>{this.offsetWires12.push(d)});break;case nn.C相:h.forEach(d=>{this.offsetWires13.push(d)});break}else if(this.LineInfo.towers[o].type==$i.耐张塔){debugger;switch(f){case 2:switch(this.LineInfo.Wairnum){case $.单分裂:this.offsetWires11.push(h[0]),this.ToffsetWires1A1.push(h[0]);break;case $.双分裂:this.offsetWires11.push(h[0]),this.offsetWires11.push(h[1]),this.ToffsetWires1A1.push(h[2]),this.ToffsetWires1A1.push(h[3]);break}break;case 3:switch(this.LineInfo.Wairnum){case $.单分裂:this.ToffsetWires1A1.push(h[0]),this.ToffsetWires1A2.push(h[0]);break;case $.双分裂:this.ToffsetWires1A1.push(h[0]),this.ToffsetWires1A1.push(h[1]),this.ToffsetWires1A2.push(h[2]),this.ToffsetWires1A2.push(h[3]);break}break;case 4:switch(this.LineInfo.Wairnum){case $.单分裂:const d=Q(i,new u(c.InsulatorPoint[0].X*-1,c.InsulatorPoint[0].Y,c.InsulatorPoint[0].Z),r);this.offsetWires11.push(d),this.ToffsetWires1A2.push(d);break;case $.双分裂:const p=Q(i,new u(c.InsulatorPoint[0].X*-1,c.InsulatorPoint[0].Y,c.InsulatorPoint[0].Z),r),m=Q(i,new u(c.InsulatorPoint[1].X*-1,c.InsulatorPoint[1].Y,c.InsulatorPoint[1].Z),r);this.offsetWires11.push(p),this.offsetWires11.push(m),this.ToffsetWires1A2.push(p),this.ToffsetWires1A2.push(m);break}break;case 5:h.forEach(d=>{this.offsetWires12.push(d),this.ToffsetWires1B1.push(d)});break;case 6:h.forEach(d=>{this.ToffsetWires1B1.push(d),this.ToffsetWires1B2.push(d)});break;case 7:c.InsulatorPoint.forEach(d=>{const p=Q(i,new u(d.X*-1,d.Y,d.Z),r);this.offsetWires12.push(p),this.ToffsetWires1B2.push(p)});break;case 8:h.forEach(d=>{this.offsetWires13.push(d),this.ToffsetWires1C1.push(d)});break;case 9:h.forEach(d=>{this.ToffsetWires1C1.push(d),this.ToffsetWires1C2.push(d)});break;case 10:c.InsulatorPoint.forEach(d=>{const p=Q(i,new u(d.X*-1,d.Y,d.Z),r);this.offsetWires13.push(p),this.ToffsetWires1C2.push(p)});break}}else switch(f){case 2:h.forEach(d=>{this.offsetWires11.push(d)});break;case 3:h.forEach(d=>{this.offsetWires12.push(d)});break;case 4:h.forEach(d=>{this.offsetWires13.push(d)});break}break;case ar.回路二:if(this.LineInfo.ISPhaseSequence)if(this.LineInfo.towers[o].type==$i.耐张塔)switch(c.PhaseSequence){case nn.A相:if(c.type==Ht.耐张串)if(c.WairFX=="进")switch(this.LineInfo.Wairnum){case $.单分裂:this.offsetWires21.push(h[0]),this.ToffsetWires2A1.push(h[0]);break;case $.双分裂:this.offsetWires21.push(h[0]),this.offsetWires21.push(h[1]),this.ToffsetWires2A1.push(h[2]),this.ToffsetWires2A1.push(h[3]);break;case $.四分裂:this.offsetWires21.push(h[0]),this.offsetWires21.push(h[1]),this.offsetWires21.push(h[2]),this.offsetWires21.push(h[3]),this.ToffsetWires2A1.push(h[4]),this.ToffsetWires2A1.push(h[5]),this.ToffsetWires2A1.push(h[6]),this.ToffsetWires2A1.push(h[7]);break;case $.六分裂:this.offsetWires21.push(h[0]),this.offsetWires21.push(h[1]),this.offsetWires21.push(h[2]),this.offsetWires21.push(h[3]),this.offsetWires21.push(h[4]),this.offsetWires21.push(h[5]),this.ToffsetWires2A1.push(h[6]),this.ToffsetWires2A1.push(h[7]),this.ToffsetWires2A1.push(h[8]),this.ToffsetWires2A1.push(h[9]),this.ToffsetWires2A1.push(h[10]),this.ToffsetWires2A1.push(h[11]);break;case $.八分裂:this.offsetWires21.push(h[0]),this.offsetWires21.push(h[1]),this.offsetWires21.push(h[2]),this.offsetWires21.push(h[3]),this.offsetWires21.push(h[4]),this.offsetWires21.push(h[5]),this.offsetWires21.push(h[6]),this.offsetWires21.push(h[7]),this.ToffsetWires2A1.push(h[8]),this.ToffsetWires2A1.push(h[9]),this.ToffsetWires2A1.push(h[10]),this.ToffsetWires2A1.push(h[11]),this.ToffsetWires2A1.push(h[12]),this.ToffsetWires2A1.push(h[13]),this.ToffsetWires2A1.push(h[14]),this.ToffsetWires2A1.push(h[15]);break}else switch(this.LineInfo.Wairnum){case $.单分裂:const d=Q(i,new u(c.InsulatorPoint[0].X*-1,c.InsulatorPoint[0].Y,c.InsulatorPoint[0].Z),r);this.offsetWires21.push(d),this.ToffsetWires2A2.push(d);break;case $.双分裂:const p=Q(i,new u(c.InsulatorPoint[0].X*-1,c.InsulatorPoint[0].Y,c.InsulatorPoint[0].Z),r),m=Q(i,new u(c.InsulatorPoint[1].X*-1,c.InsulatorPoint[1].Y,c.InsulatorPoint[1].Z),r);this.offsetWires21.push(p),this.offsetWires21.push(m),this.ToffsetWires2A2.push(p),this.ToffsetWires2A2.push(m);break;case $.四分裂:const T=Q(i,new u(c.InsulatorPoint[0].X*-1,c.InsulatorPoint[0].Y,c.InsulatorPoint[0].Z),r),y=Q(i,new u(c.InsulatorPoint[1].X*-1,c.InsulatorPoint[1].Y,c.InsulatorPoint[1].Z),r),w=Q(i,new u(c.InsulatorPoint[2].X*-1,c.InsulatorPoint[2].Y,c.InsulatorPoint[2].Z),r),A=Q(i,new u(c.InsulatorPoint[3].X*-1,c.InsulatorPoint[3].Y,c.InsulatorPoint[3].Z),r);this.offsetWires21.push(T),this.offsetWires21.push(y),this.offsetWires21.push(w),this.offsetWires21.push(A),this.ToffsetWires2A2.push(T),this.ToffsetWires2A2.push(y),this.ToffsetWires2A2.push(w),this.ToffsetWires2A2.push(A);break;case $.六分裂:const E=Q(i,new u(c.InsulatorPoint[0].X*-1,c.InsulatorPoint[0].Y,c.InsulatorPoint[0].Z),r),b=Q(i,new u(c.InsulatorPoint[1].X*-1,c.InsulatorPoint[1].Y,c.InsulatorPoint[1].Z),r),D=Q(i,new u(c.InsulatorPoint[2].X*-1,c.InsulatorPoint[2].Y,c.InsulatorPoint[2].Z),r),O=Q(i,new u(c.InsulatorPoint[3].X*-1,c.InsulatorPoint[3].Y,c.InsulatorPoint[3].Z),r),B=Q(i,new u(c.InsulatorPoint[4].X*-1,c.InsulatorPoint[4].Y,c.InsulatorPoint[4].Z),r),L=Q(i,new u(c.InsulatorPoint[5].X*-1,c.InsulatorPoint[5].Y,c.InsulatorPoint[5].Z),r);this.offsetWires21.push(E),this.offsetWires21.push(b),this.offsetWires21.push(D),this.offsetWires21.push(O),this.offsetWires21.push(B),this.offsetWires21.push(L),this.ToffsetWires2A2.push(E),this.ToffsetWires2A2.push(b),this.ToffsetWires2A2.push(D),this.ToffsetWires2A2.push(O),this.ToffsetWires2A2.push(B),this.ToffsetWires2A2.push(L);break;case $.八分裂:const F=Q(i,new u(c.InsulatorPoint[0].X*-1,c.InsulatorPoint[0].Y,c.InsulatorPoint[0].Z),r),N=Q(i,new u(c.InsulatorPoint[1].X*-1,c.InsulatorPoint[1].Y,c.InsulatorPoint[1].Z),r),U=Q(i,new u(c.InsulatorPoint[2].X*-1,c.InsulatorPoint[2].Y,c.InsulatorPoint[2].Z),r),M=Q(i,new u(c.InsulatorPoint[3].X*-1,c.InsulatorPoint[3].Y,c.InsulatorPoint[3].Z),r),j=Q(i,new u(c.InsulatorPoint[4].X*-1,c.InsulatorPoint[4].Y,c.InsulatorPoint[4].Z),r),Y=Q(i,new u(c.InsulatorPoint[5].X*-1,c.InsulatorPoint[5].Y,c.InsulatorPoint[5].Z),r),s=Q(i,new u(c.InsulatorPoint[6].X*-1,c.InsulatorPoint[6].Y,c.InsulatorPoint[6].Z),r),x=Q(i,new u(c.InsulatorPoint[7].X*-1,c.InsulatorPoint[7].Y,c.InsulatorPoint[7].Z),r);this.offsetWires21.push(F),this.offsetWires21.push(N),this.offsetWires21.push(U),this.offsetWires21.push(M),this.offsetWires21.push(j),this.offsetWires21.push(Y),this.offsetWires21.push(s),this.offsetWires21.push(x),this.ToffsetWires2A2.push(F),this.ToffsetWires2A2.push(N),this.ToffsetWires2A2.push(U),this.ToffsetWires2A2.push(M),this.ToffsetWires2A2.push(j),this.ToffsetWires2A2.push(Y),this.ToffsetWires2A2.push(s),this.ToffsetWires2A2.push(x);break}else if(c.type==Ht.跳线串)switch(this.LineInfo.Wairnum){case $.单分裂:this.ToffsetWires2A1.push(h[0]),this.ToffsetWires2A2.push(h[0]);break;case $.双分裂:this.ToffsetWires2A1.push(h[0]),this.ToffsetWires2A1.push(h[1]),this.ToffsetWires2A2.push(h[2]),this.ToffsetWires2A2.push(h[3]);break;case $.四分裂:this.ToffsetWires2A1.push(h[0]),this.ToffsetWires2A1.push(h[1]),this.ToffsetWires2A1.push(h[2]),this.ToffsetWires2A1.push(h[3]),this.ToffsetWires2A2.push(h[4]),this.ToffsetWires2A2.push(h[5]),this.ToffsetWires2A2.push(h[6]),this.ToffsetWires2A2.push(h[7]);break;case $.六分裂:this.ToffsetWires2A1.push(h[0]),this.ToffsetWires2A1.push(h[1]),this.ToffsetWires2A1.push(h[2]),this.ToffsetWires2A1.push(h[3]),this.ToffsetWires2A1.push(h[4]),this.ToffsetWires2A1.push(h[5]),this.ToffsetWires2A2.push(h[6]),this.ToffsetWires2A2.push(h[7]),this.ToffsetWires2A2.push(h[8]),this.ToffsetWires2A2.push(h[9]),this.ToffsetWires2A2.push(h[10]),this.ToffsetWires2A2.push(h[11]);break;case $.八分裂:this.ToffsetWires2A1.push(h[0]),this.ToffsetWires2A1.push(h[1]),this.ToffsetWires2A1.push(h[2]),this.ToffsetWires2A1.push(h[3]),this.ToffsetWires2A1.push(h[4]),this.ToffsetWires2A1.push(h[5]),this.ToffsetWires2A1.push(h[6]),this.ToffsetWires2A1.push(h[7]),this.ToffsetWires2A2.push(h[8]),this.ToffsetWires2A2.push(h[9]),this.ToffsetWires2A2.push(h[10]),this.ToffsetWires2A2.push(h[11]),this.ToffsetWires2A2.push(h[12]),this.ToffsetWires2A2.push(h[13]),this.ToffsetWires2A2.push(h[14]),this.ToffsetWires2A2.push(h[15]);break}break;case nn.B相:if(c.type==Ht.耐张串)if(c.WairFX=="进")switch(this.LineInfo.Wairnum){case $.单分裂:this.offsetWires22.push(h[0]),this.ToffsetWires2B1.push(h[0]);break;case $.双分裂:this.offsetWires22.push(h[0]),this.offsetWires22.push(h[1]),this.ToffsetWires2B1.push(h[2]),this.ToffsetWires2B1.push(h[3]);break;case $.四分裂:this.offsetWires22.push(h[0]),this.offsetWires22.push(h[1]),this.offsetWires22.push(h[2]),this.offsetWires22.push(h[3]),this.ToffsetWires2B1.push(h[4]),this.ToffsetWires2B1.push(h[5]),this.ToffsetWires2B1.push(h[6]),this.ToffsetWires2B1.push(h[7]);break;case $.六分裂:this.offsetWires22.push(h[0]),this.offsetWires22.push(h[1]),this.offsetWires22.push(h[2]),this.offsetWires22.push(h[3]),this.offsetWires22.push(h[4]),this.offsetWires22.push(h[5]),this.ToffsetWires2B1.push(h[6]),this.ToffsetWires2B1.push(h[7]),this.ToffsetWires2B1.push(h[8]),this.ToffsetWires2B1.push(h[9]),this.ToffsetWires2B1.push(h[10]),this.ToffsetWires2B1.push(h[11]);break;case $.八分裂:this.offsetWires22.push(h[0]),this.offsetWires22.push(h[1]),this.offsetWires22.push(h[2]),this.offsetWires22.push(h[3]),this.offsetWires22.push(h[4]),this.offsetWires22.push(h[5]),this.offsetWires22.push(h[6]),this.offsetWires22.push(h[7]),this.ToffsetWires2B1.push(h[8]),this.ToffsetWires2B1.push(h[9]),this.ToffsetWires2B1.push(h[10]),this.ToffsetWires2B1.push(h[11]),this.ToffsetWires2B1.push(h[12]),this.ToffsetWires2B1.push(h[13]),this.ToffsetWires2B1.push(h[14]),this.ToffsetWires2B1.push(h[15]);break}else switch(this.LineInfo.Wairnum){case $.单分裂:const d=Q(i,new u(c.InsulatorPoint[0].X*-1,c.InsulatorPoint[0].Y,c.InsulatorPoint[0].Z),r);this.offsetWires22.push(d),this.ToffsetWires2B2.push(d);break;case $.双分裂:const p=Q(i,new u(c.InsulatorPoint[0].X*-1,c.InsulatorPoint[0].Y,c.InsulatorPoint[0].Z),r),m=Q(i,new u(c.InsulatorPoint[1].X*-1,c.InsulatorPoint[1].Y,c.InsulatorPoint[1].Z),r);this.offsetWires22.push(p),this.offsetWires22.push(m),this.ToffsetWires2B2.push(p),this.ToffsetWires2B2.push(m);break;case $.四分裂:const T=Q(i,new u(c.InsulatorPoint[0].X*-1,c.InsulatorPoint[0].Y,c.InsulatorPoint[0].Z),r),y=Q(i,new u(c.InsulatorPoint[1].X*-1,c.InsulatorPoint[1].Y,c.InsulatorPoint[1].Z),r),w=Q(i,new u(c.InsulatorPoint[2].X*-1,c.InsulatorPoint[2].Y,c.InsulatorPoint[2].Z),r),A=Q(i,new u(c.InsulatorPoint[3].X*-1,c.InsulatorPoint[3].Y,c.InsulatorPoint[3].Z),r);this.offsetWires22.push(T),this.offsetWires22.push(y),this.offsetWires22.push(w),this.offsetWires22.push(A),this.ToffsetWires2B2.push(T),this.ToffsetWires2B2.push(y),this.ToffsetWires2B2.push(w),this.ToffsetWires2B2.push(A);break;case $.六分裂:const E=Q(i,new u(c.InsulatorPoint[0].X*-1,c.InsulatorPoint[0].Y,c.InsulatorPoint[0].Z),r),b=Q(i,new u(c.InsulatorPoint[1].X*-1,c.InsulatorPoint[1].Y,c.InsulatorPoint[1].Z),r),D=Q(i,new u(c.InsulatorPoint[2].X*-1,c.InsulatorPoint[2].Y,c.InsulatorPoint[2].Z),r),O=Q(i,new u(c.InsulatorPoint[3].X*-1,c.InsulatorPoint[3].Y,c.InsulatorPoint[3].Z),r),B=Q(i,new u(c.InsulatorPoint[4].X*-1,c.InsulatorPoint[4].Y,c.InsulatorPoint[4].Z),r),L=Q(i,new u(c.InsulatorPoint[5].X*-1,c.InsulatorPoint[5].Y,c.InsulatorPoint[5].Z),r);this.offsetWires22.push(E),this.offsetWires22.push(b),this.offsetWires22.push(D),this.offsetWires22.push(O),this.offsetWires22.push(B),this.offsetWires22.push(L),this.ToffsetWires2B2.push(E),this.ToffsetWires2B2.push(b),this.ToffsetWires2B2.push(D),this.ToffsetWires2B2.push(O),this.ToffsetWires2B2.push(B),this.ToffsetWires2B2.push(L);break;case $.八分裂:const F=Q(i,new u(c.InsulatorPoint[0].X*-1,c.InsulatorPoint[0].Y,c.InsulatorPoint[0].Z),r),N=Q(i,new u(c.InsulatorPoint[1].X*-1,c.InsulatorPoint[1].Y,c.InsulatorPoint[1].Z),r),U=Q(i,new u(c.InsulatorPoint[2].X*-1,c.InsulatorPoint[2].Y,c.InsulatorPoint[2].Z),r),M=Q(i,new u(c.InsulatorPoint[3].X*-1,c.InsulatorPoint[3].Y,c.InsulatorPoint[3].Z),r),j=Q(i,new u(c.InsulatorPoint[4].X*-1,c.InsulatorPoint[4].Y,c.InsulatorPoint[4].Z),r),Y=Q(i,new u(c.InsulatorPoint[5].X*-1,c.InsulatorPoint[5].Y,c.InsulatorPoint[5].Z),r),s=Q(i,new u(c.InsulatorPoint[6].X*-1,c.InsulatorPoint[6].Y,c.InsulatorPoint[6].Z),r),x=Q(i,new u(c.InsulatorPoint[7].X*-1,c.InsulatorPoint[7].Y,c.InsulatorPoint[7].Z),r);this.offsetWires22.push(F),this.offsetWires22.push(N),this.offsetWires22.push(U),this.offsetWires22.push(M),this.offsetWires22.push(j),this.offsetWires22.push(Y),this.offsetWires22.push(s),this.offsetWires22.push(x),this.ToffsetWires2B2.push(F),this.ToffsetWires2B2.push(N),this.ToffsetWires2B2.push(U),this.ToffsetWires2B2.push(M),this.ToffsetWires2B2.push(j),this.ToffsetWires2B2.push(Y),this.ToffsetWires2B2.push(s),this.ToffsetWires2B2.push(x);break}else if(c.type==Ht.跳线串)switch(this.LineInfo.Wairnum){case $.单分裂:this.ToffsetWires2B1.push(h[0]),this.ToffsetWires2B2.push(h[0]);break;case $.双分裂:this.ToffsetWires2B1.push(h[0]),this.ToffsetWires2B1.push(h[1]),this.ToffsetWires2B2.push(h[2]),this.ToffsetWires2B2.push(h[3]);break;case $.四分裂:this.ToffsetWires2B1.push(h[0]),this.ToffsetWires2B1.push(h[1]),this.ToffsetWires2B1.push(h[2]),this.ToffsetWires2B1.push(h[3]),this.ToffsetWires2B2.push(h[4]),this.ToffsetWires2B2.push(h[5]),this.ToffsetWires2B2.push(h[6]),this.ToffsetWires2B2.push(h[7]);break;case $.六分裂:this.ToffsetWires2B1.push(h[0]),this.ToffsetWires2B1.push(h[1]),this.ToffsetWires2B1.push(h[2]),this.ToffsetWires2B1.push(h[3]),this.ToffsetWires2B1.push(h[4]),this.ToffsetWires2B1.push(h[5]),this.ToffsetWires2B2.push(h[6]),this.ToffsetWires2B2.push(h[7]),this.ToffsetWires2B2.push(h[8]),this.ToffsetWires2B2.push(h[9]),this.ToffsetWires2B2.push(h[10]),this.ToffsetWires2B2.push(h[11]);break;case $.八分裂:this.ToffsetWires2B1.push(h[0]),this.ToffsetWires2B1.push(h[1]),this.ToffsetWires2B1.push(h[2]),this.ToffsetWires2B1.push(h[3]),this.ToffsetWires2B1.push(h[4]),this.ToffsetWires2B1.push(h[5]),this.ToffsetWires2B1.push(h[6]),this.ToffsetWires2B1.push(h[7]),this.ToffsetWires2B2.push(h[8]),this.ToffsetWires2B2.push(h[9]),this.ToffsetWires2B2.push(h[10]),this.ToffsetWires2B2.push(h[11]),this.ToffsetWires2B2.push(h[12]),this.ToffsetWires2B2.push(h[13]),this.ToffsetWires2B2.push(h[14]),this.ToffsetWires2B2.push(h[15]);break}break;case nn.C相:if(c.type==Ht.耐张串)if(c.WairFX=="进")switch(this.LineInfo.Wairnum){case $.单分裂:this.offsetWires23.push(h[0]),this.ToffsetWires2C1.push(h[0]);break;case $.双分裂:this.offsetWires23.push(h[0]),this.offsetWires23.push(h[1]),this.ToffsetWires2C1.push(h[2]),this.ToffsetWires2C1.push(h[3]);break;case $.四分裂:this.offsetWires23.push(h[0]),this.offsetWires23.push(h[1]),this.offsetWires23.push(h[2]),this.offsetWires23.push(h[3]),this.ToffsetWires2C1.push(h[4]),this.ToffsetWires2C1.push(h[5]),this.ToffsetWires2C1.push(h[6]),this.ToffsetWires2C1.push(h[7]);break;case $.六分裂:this.offsetWires23.push(h[0]),this.offsetWires23.push(h[1]),this.offsetWires23.push(h[2]),this.offsetWires23.push(h[3]),this.offsetWires23.push(h[4]),this.offsetWires23.push(h[5]),this.ToffsetWires2C1.push(h[6]),this.ToffsetWires2C1.push(h[7]),this.ToffsetWires2C1.push(h[8]),this.ToffsetWires2C1.push(h[9]),this.ToffsetWires2C1.push(h[10]),this.ToffsetWires2C1.push(h[11]);break;case $.八分裂:this.offsetWires23.push(h[0]),this.offsetWires23.push(h[1]),this.offsetWires23.push(h[2]),this.offsetWires23.push(h[3]),this.offsetWires23.push(h[4]),this.offsetWires23.push(h[5]),this.offsetWires23.push(h[6]),this.offsetWires23.push(h[7]),this.ToffsetWires2C1.push(h[8]),this.ToffsetWires2C1.push(h[9]),this.ToffsetWires2C1.push(h[10]),this.ToffsetWires2C1.push(h[11]),this.ToffsetWires2C1.push(h[12]),this.ToffsetWires2C1.push(h[13]),this.ToffsetWires2C1.push(h[14]),this.ToffsetWires2C1.push(h[15]);break}else switch(this.LineInfo.Wairnum){case $.单分裂:const d=Q(i,new u(c.InsulatorPoint[0].X*-1,c.InsulatorPoint[0].Y,c.InsulatorPoint[0].Z),r);this.offsetWires23.push(d),this.ToffsetWires2C2.push(d);break;case $.双分裂:const p=Q(i,new u(c.InsulatorPoint[0].X*-1,c.InsulatorPoint[0].Y,c.InsulatorPoint[0].Z),r),m=Q(i,new u(c.InsulatorPoint[1].X*-1,c.InsulatorPoint[1].Y,c.InsulatorPoint[1].Z),r);this.offsetWires23.push(p),this.offsetWires23.push(m),this.ToffsetWires2C2.push(p),this.ToffsetWires2C2.push(m);break;case $.四分裂:const T=Q(i,new u(c.InsulatorPoint[0].X*-1,c.InsulatorPoint[0].Y,c.InsulatorPoint[0].Z),r),y=Q(i,new u(c.InsulatorPoint[1].X*-1,c.InsulatorPoint[1].Y,c.InsulatorPoint[1].Z),r),w=Q(i,new u(c.InsulatorPoint[2].X*-1,c.InsulatorPoint[2].Y,c.InsulatorPoint[2].Z),r),A=Q(i,new u(c.InsulatorPoint[3].X*-1,c.InsulatorPoint[3].Y,c.InsulatorPoint[3].Z),r);this.offsetWires23.push(T),this.offsetWires23.push(y),this.offsetWires23.push(w),this.offsetWires23.push(A),this.ToffsetWires2C2.push(T),this.ToffsetWires2C2.push(y),this.ToffsetWires2C2.push(w),this.ToffsetWires2C2.push(A);break;case $.六分裂:const E=Q(i,new u(c.InsulatorPoint[0].X*-1,c.InsulatorPoint[0].Y,c.InsulatorPoint[0].Z),r),b=Q(i,new u(c.InsulatorPoint[1].X*-1,c.InsulatorPoint[1].Y,c.InsulatorPoint[1].Z),r),D=Q(i,new u(c.InsulatorPoint[2].X*-1,c.InsulatorPoint[2].Y,c.InsulatorPoint[2].Z),r),O=Q(i,new u(c.InsulatorPoint[3].X*-1,c.InsulatorPoint[3].Y,c.InsulatorPoint[3].Z),r),B=Q(i,new u(c.InsulatorPoint[4].X*-1,c.InsulatorPoint[4].Y,c.InsulatorPoint[4].Z),r),L=Q(i,new u(c.InsulatorPoint[5].X*-1,c.InsulatorPoint[5].Y,c.InsulatorPoint[5].Z),r);this.offsetWires23.push(E),this.offsetWires23.push(b),this.offsetWires23.push(D),this.offsetWires23.push(O),this.offsetWires23.push(B),this.offsetWires23.push(L),this.ToffsetWires2C2.push(E),this.ToffsetWires2C2.push(b),this.ToffsetWires2C2.push(D),this.ToffsetWires2C2.push(O),this.ToffsetWires2C2.push(B),this.ToffsetWires2C2.push(L);break;case $.八分裂:const F=Q(i,new u(c.InsulatorPoint[0].X*-1,c.InsulatorPoint[0].Y,c.InsulatorPoint[0].Z),r),N=Q(i,new u(c.InsulatorPoint[1].X*-1,c.InsulatorPoint[1].Y,c.InsulatorPoint[1].Z),r),U=Q(i,new u(c.InsulatorPoint[2].X*-1,c.InsulatorPoint[2].Y,c.InsulatorPoint[2].Z),r),M=Q(i,new u(c.InsulatorPoint[3].X*-1,c.InsulatorPoint[3].Y,c.InsulatorPoint[3].Z),r),j=Q(i,new u(c.InsulatorPoint[4].X*-1,c.InsulatorPoint[4].Y,c.InsulatorPoint[4].Z),r),Y=Q(i,new u(c.InsulatorPoint[5].X*-1,c.InsulatorPoint[5].Y,c.InsulatorPoint[5].Z),r),s=Q(i,new u(c.InsulatorPoint[6].X*-1,c.InsulatorPoint[6].Y,c.InsulatorPoint[6].Z),r),x=Q(i,new u(c.InsulatorPoint[7].X*-1,c.InsulatorPoint[7].Y,c.InsulatorPoint[7].Z),r);this.offsetWires23.push(F),this.offsetWires23.push(N),this.offsetWires23.push(U),this.offsetWires23.push(M),this.offsetWires23.push(j),this.offsetWires23.push(Y),this.offsetWires23.push(s),this.offsetWires23.push(x),this.ToffsetWires2C2.push(F),this.ToffsetWires2C2.push(N),this.ToffsetWires2C2.push(U),this.ToffsetWires2C2.push(M),this.ToffsetWires2C2.push(j),this.ToffsetWires2C2.push(Y),this.ToffsetWires2C2.push(s),this.ToffsetWires2C2.push(x);break}else if(c.type==Ht.跳线串)switch(this.LineInfo.Wairnum){case $.单分裂:this.ToffsetWires2C1.push(h[0]),this.ToffsetWires2C2.push(h[0]);break;case $.双分裂:this.ToffsetWires2C1.push(h[0]),this.ToffsetWires2C1.push(h[1]),this.ToffsetWires2C2.push(h[2]),this.ToffsetWires2C2.push(h[3]);break;case $.四分裂:this.ToffsetWires2C1.push(h[0]),this.ToffsetWires2C1.push(h[1]),this.ToffsetWires2C1.push(h[2]),this.ToffsetWires2C1.push(h[3]),this.ToffsetWires2C2.push(h[4]),this.ToffsetWires2C2.push(h[5]),this.ToffsetWires2C2.push(h[6]),this.ToffsetWires2C2.push(h[7]);break;case $.六分裂:this.ToffsetWires2C1.push(h[0]),this.ToffsetWires2C1.push(h[1]),this.ToffsetWires2C1.push(h[2]),this.ToffsetWires2C1.push(h[3]),this.ToffsetWires2C1.push(h[4]),this.ToffsetWires2C1.push(h[5]),this.ToffsetWires2C2.push(h[6]),this.ToffsetWires2C2.push(h[7]),this.ToffsetWires2C2.push(h[8]),this.ToffsetWires2C2.push(h[9]),this.ToffsetWires2C2.push(h[10]),this.ToffsetWires2C2.push(h[11]);break;case $.八分裂:this.ToffsetWires2C1.push(h[0]),this.ToffsetWires2C1.push(h[1]),this.ToffsetWires2C1.push(h[2]),this.ToffsetWires2C1.push(h[3]),this.ToffsetWires2C1.push(h[4]),this.ToffsetWires2C1.push(h[5]),this.ToffsetWires2C1.push(h[6]),this.ToffsetWires2C1.push(h[7]),this.ToffsetWires2C2.push(h[8]),this.ToffsetWires2C2.push(h[9]),this.ToffsetWires2C2.push(h[10]),this.ToffsetWires2C2.push(h[11]),this.ToffsetWires2C2.push(h[12]),this.ToffsetWires2C2.push(h[13]),this.ToffsetWires2C2.push(h[14]),this.ToffsetWires2C2.push(h[15]);break}break}else switch(c.PhaseSequence){case nn.A相:h.forEach(d=>{this.offsetWires21.push(d)});break;case nn.B相:h.forEach(d=>{this.offsetWires22.push(d)});break;case nn.C相:h.forEach(d=>{this.offsetWires23.push(d)});break}else if(this.LineInfo.towers[o].type==$i.耐张塔)switch(f){case 11:this.offsetWires21.push(h[0]),this.ToffsetWires2A1.push(h[0]);break;case 12:this.ToffsetWires2A1.push(h[0]),this.ToffsetWires2A2.push(h[0]);break;case 13:const d=Q(i,new u(c.InsulatorPoint[0].X*-1,c.InsulatorPoint[0].Y,c.InsulatorPoint[0].Z),r);this.offsetWires21.push(d),this.ToffsetWires2A2.push(d);break;case 14:this.offsetWires22.push(h[0]),this.ToffsetWires2B1.push(h[0]);break;case 15:this.ToffsetWires2B1.push(h[0]),this.ToffsetWires2B2.push(h[0]);break;case 16:const p=Q(i,new u(c.InsulatorPoint[0].X*-1,c.InsulatorPoint[0].Y,c.InsulatorPoint[0].Z),r);this.offsetWires22.push(p),this.ToffsetWires2B2.push(p);break;case 17:this.offsetWires23.push(h[0]),this.ToffsetWires2C1.push(h[0]);break;case 18:this.ToffsetWires2C1.push(h[0]),this.ToffsetWires2C2.push(h[0]);break;case 19:const m=Q(i,new u(c.InsulatorPoint[0].X*-1,c.InsulatorPoint[0].Y,c.InsulatorPoint[0].Z),r);this.offsetWires23.push(m),this.ToffsetWires2C2.push(m);break}else switch(f){case 5:h.forEach(d=>{this.offsetWires21.push(d)});break;case 6:h.forEach(d=>{this.offsetWires22.push(d)});break;case 7:h.forEach(d=>{this.offsetWires23.push(d)});break}break;case ar.地线:if(this.LineInfo.ISPhaseSequence)switch(c.PhaseSequence){case nn.地线1:this.offsetGrouundWires11.push(h[0]);break;case nn.地线2:this.offsetGrouundWires12.push(h[0]);break}else switch(f){case 0:this.offsetGrouundWires11.push(h[0]);break;case 1:this.offsetGrouundWires12.push(h[0]);break}break}f=f+1});debugger;if(this.offsetWires11.length>0&&o>0){const c=[],h=[],d=[],p=[],m=[],T=[],y=[],w=[];switch(this.LineInfo.Wairnum){case $.单分裂:this.offsetWires11.length>=2&&(c.push(this.offsetWires11[t]),c.push(this.offsetWires11[t-1]),this.offsetArcWires1A=W(c),this.entityCollection2.add(v(this.offsetArcWires1A,"导线1_A1"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireAColor)));break;case $.双分裂:this.offsetWires11.length>=4&&(c.push(this.offsetWires11[t]),c.push(this.offsetWires11[t-2]),this.offsetArcWires1A=W(c),this.entityCollection2.add(v(this.offsetArcWires1A,"导线1_A1"+(o-2)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),h.push(this.offsetWires11[t+1]),h.push(this.offsetWires11[t-1]),this.offsetArcWires1A=W(h),this.entityCollection2.add(v(this.offsetArcWires1A,"导线1_A2"+(o-2)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireAColor)));break;case $.四分裂:this.offsetWires11.length>=8&&(c.push(this.offsetWires11[t]),c.push(this.offsetWires11[t-4]),this.offsetArcWires1A=W(c),this.entityCollection2.add(v(this.offsetArcWires1A,"导线1_A1"+(o-2)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),h.push(this.offsetWires11[t+1]),h.push(this.offsetWires11[t-3]),this.offsetArcWires1A=W(h),this.entityCollection2.add(v(this.offsetArcWires1A,"导线1_A2"+(o-2)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),d.push(this.offsetWires11[t+2]),d.push(this.offsetWires11[t-2]),this.offsetArcWires1A=W(d),this.entityCollection2.add(v(this.offsetArcWires1A,"导线1_A3"+(o-2)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),p.push(this.offsetWires11[t+3]),p.push(this.offsetWires11[t-1]),this.offsetArcWires1A=W(p),this.entityCollection2.add(v(this.offsetArcWires1A,"导线1_A4"+(o-2)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireAColor)));break;case $.六分裂:this.offsetWires11.length>=12&&(c.push(this.offsetWires11[t]),c.push(this.offsetWires11[t-6]),this.offsetArcWires1A=W(c),this.entityCollection2.add(v(this.offsetArcWires1A,"导线1_A1"+(o-2)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),h.push(this.offsetWires11[t+1]),h.push(this.offsetWires11[t-5]),this.offsetArcWires1A=W(h),this.entityCollection2.add(v(this.offsetArcWires1A,"导线1_A2"+(o-2)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),d.push(this.offsetWires11[t+2]),d.push(this.offsetWires11[t-4]),this.offsetArcWires1A=W(d),this.entityCollection2.add(v(this.offsetArcWires1A,"导线1_A3"+(o-2)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),p.push(this.offsetWires11[t+3]),p.push(this.offsetWires11[t-3]),this.offsetArcWires1A=W(p),this.entityCollection2.add(v(this.offsetArcWires1A,"导线1_A4"+(o-2)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),m.push(this.offsetWires11[t+4]),m.push(this.offsetWires11[t-2]),this.offsetArcWires1A=W(m),this.entityCollection2.add(v(this.offsetArcWires1A,"导线1_A5"+(o-2)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),T.push(this.offsetWires11[t+5]),T.push(this.offsetWires11[t-1]),this.offsetArcWires1A=W(T),this.entityCollection2.add(v(this.offsetArcWires1A,"导线1_A6"+(o-2)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireAColor)));break;case $.八分裂:this.offsetWires11.length>=16&&(c.push(this.offsetWires11[t]),c.push(this.offsetWires11[t-8]),this.offsetArcWires1A=W(c),this.entityCollection2.add(v(this.offsetArcWires1A,"导线1_A1"+(o-2)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),h.push(this.offsetWires11[t+1]),h.push(this.offsetWires11[t-7]),this.offsetArcWires1A=W(h),this.entityCollection2.add(v(this.offsetArcWires1A,"导线1_A2"+(o-2)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),d.push(this.offsetWires11[t+2]),d.push(this.offsetWires11[t-6]),this.offsetArcWires1A=W(d),this.entityCollection2.add(v(this.offsetArcWires1A,"导线1_A3"+(o-2)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),p.push(this.offsetWires11[t+3]),p.push(this.offsetWires11[t-5]),this.offsetArcWires1A=W(p),this.entityCollection2.add(v(this.offsetArcWires1A,"导线1_A4"+(o-2)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),m.push(this.offsetWires11[t+4]),m.push(this.offsetWires11[t-4]),this.offsetArcWires1A=W(m),this.entityCollection2.add(v(this.offsetArcWires1A,"导线1_A5"+(o-2)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),T.push(this.offsetWires11[t+5]),T.push(this.offsetWires11[t-3]),this.offsetArcWires1A=W(T),this.entityCollection2.add(v(this.offsetArcWires1A,"导线1_A6"+(o-2)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),y.push(this.offsetWires11[t+6]),y.push(this.offsetWires11[t-2]),this.offsetArcWires1A=W(y),this.entityCollection2.add(v(this.offsetArcWires1A,"导线1_A7"+(o-2)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),w.push(this.offsetWires11[t+7]),w.push(this.offsetWires11[t-1]),this.offsetArcWires1A=W(w),this.entityCollection2.add(v(this.offsetArcWires1A,"导线1_A8"+(o-2)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireAColor)));break}}if(this.offsetWires12.length>0&&o>0){const c=[],h=[],d=[],p=[],m=[],T=[],y=[],w=[];switch(this.LineInfo.Wairnum){case $.单分裂:c.push(this.offsetWires12[t]),c.push(this.offsetWires12[t-1]),this.offsetArcWires1B=W(c),this.entityCollection2.add(v(this.offsetArcWires1B,"导线1_B1"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireAColor));break;case $.双分裂:c.push(this.offsetWires12[t]),c.push(this.offsetWires12[t-2]),this.offsetArcWires1B=W(c),this.entityCollection2.add(v(this.offsetArcWires1B,"导线1_B1"+(o-2)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),h.push(this.offsetWires12[t+1]),h.push(this.offsetWires12[t-1]),this.offsetArcWires1B=W(h),this.entityCollection2.add(v(this.offsetArcWires1B,"导线1_B2"+(o-2)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireAColor));break;case $.四分裂:c.push(this.offsetWires12[t]),c.push(this.offsetWires12[t-4]),this.offsetArcWires1B=W(c),this.entityCollection2.add(v(this.offsetArcWires1B,"导线1_B1"+(o-2)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),h.push(this.offsetWires12[t+1]),h.push(this.offsetWires12[t-3]),this.offsetArcWires1B=W(h),this.entityCollection2.add(v(this.offsetArcWires1B,"导线1_B2"+(o-2)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),d.push(this.offsetWires12[t+2]),d.push(this.offsetWires12[t-2]),this.offsetArcWires1B=W(d),this.entityCollection2.add(v(this.offsetArcWires1B,"导线1_B3"+(o-2)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),p.push(this.offsetWires12[t+3]),p.push(this.offsetWires12[t-1]),this.offsetArcWires1B=W(p),this.entityCollection2.add(v(this.offsetArcWires1B,"导线1_B4"+(o-2)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireAColor));break;case $.六分裂:c.push(this.offsetWires12[t]),c.push(this.offsetWires12[t-6]),this.offsetArcWires1B=W(c),this.entityCollection2.add(v(this.offsetArcWires1B,"导线1_B1"+(o-2)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),h.push(this.offsetWires12[t+1]),h.push(this.offsetWires12[t-5]),this.offsetArcWires1B=W(h),this.entityCollection2.add(v(this.offsetArcWires1B,"导线1_B2"+(o-2)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),d.push(this.offsetWires12[t+2]),d.push(this.offsetWires12[t-4]),this.offsetArcWires1B=W(d),this.entityCollection2.add(v(this.offsetArcWires1B,"导线1_B3"+(o-2)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),p.push(this.offsetWires12[t+3]),p.push(this.offsetWires12[t-3]),this.offsetArcWires1B=W(p),this.entityCollection2.add(v(this.offsetArcWires1B,"导线1_B4"+(o-2)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),m.push(this.offsetWires12[t+4]),m.push(this.offsetWires12[t-2]),this.offsetArcWires1B=W(m),this.entityCollection2.add(v(this.offsetArcWires1B,"导线1_B5"+(o-2)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),T.push(this.offsetWires12[t+5]),T.push(this.offsetWires12[t-1]),this.offsetArcWires1B=W(T),this.entityCollection2.add(v(this.offsetArcWires1B,"导线1_B6"+(o-2)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireAColor));break;case $.八分裂:c.push(this.offsetWires12[t]),c.push(this.offsetWires12[t-8]),this.offsetArcWires1B=W(c),this.entityCollection2.add(v(this.offsetArcWires1B,"导线1_B1"+(o-2)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),h.push(this.offsetWires12[t+1]),h.push(this.offsetWires12[t-7]),this.offsetArcWires1B=W(h),this.entityCollection2.add(v(this.offsetArcWires1B,"导线1_B2"+(o-2)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),d.push(this.offsetWires12[t+2]),d.push(this.offsetWires12[t-6]),this.offsetArcWires1B=W(d),this.entityCollection2.add(v(this.offsetArcWires1B,"导线1_B3"+(o-2)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),p.push(this.offsetWires12[t+3]),p.push(this.offsetWires12[t-5]),this.offsetArcWires1B=W(p),this.entityCollection2.add(v(this.offsetArcWires1B,"导线1_B4"+(o-2)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),m.push(this.offsetWires12[t+4]),m.push(this.offsetWires12[t-4]),this.offsetArcWires1B=W(m),this.entityCollection2.add(v(this.offsetArcWires1B,"导线1_B5"+(o-2)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),T.push(this.offsetWires12[t+5]),T.push(this.offsetWires12[t-3]),this.offsetArcWires1B=W(T),this.entityCollection2.add(v(this.offsetArcWires1B,"导线1_B6"+(o-2)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),y.push(this.offsetWires12[t+6]),y.push(this.offsetWires12[t-2]),this.offsetArcWires1B=W(y),this.entityCollection2.add(v(this.offsetArcWires1B,"导线1_B7"+(o-2)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),w.push(this.offsetWires12[t+7]),w.push(this.offsetWires12[t-1]),this.offsetArcWires1B=W(w),this.entityCollection2.add(v(this.offsetArcWires1B,"导线1_B8"+(o-2)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireAColor));break}}if(this.offsetWires13.length>0&&o>0){const c=[],h=[],d=[],p=[],m=[],T=[],y=[],w=[];switch(this.LineInfo.Wairnum){case $.单分裂:c.push(this.offsetWires13[t]),c.push(this.offsetWires13[t-1]),this.offsetArcWires1C=W(c),this.entityCollection2.add(v(this.offsetArcWires1C,"导线1_C1"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireAColor));break;case $.双分裂:c.push(this.offsetWires13[t]),c.push(this.offsetWires13[t-2]),this.offsetArcWires1C=W(c),this.entityCollection2.add(v(this.offsetArcWires1C,"导线1_C1"+(o-2)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),h.push(this.offsetWires13[t+1]),h.push(this.offsetWires13[t-1]),this.offsetArcWires1C=W(h),this.entityCollection2.add(v(this.offsetArcWires1C,"导线1_C2"+(o-2)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireAColor));break;case $.四分裂:c.push(this.offsetWires13[t]),c.push(this.offsetWires13[t-4]),this.offsetArcWires1C=W(c),this.entityCollection2.add(v(this.offsetArcWires1C,"导线1_C1"+(o-2)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),h.push(this.offsetWires13[t+1]),h.push(this.offsetWires13[t-3]),this.offsetArcWires1C=W(h),this.entityCollection2.add(v(this.offsetArcWires1C,"导线1_C2"+(o-2)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),d.push(this.offsetWires13[t+2]),d.push(this.offsetWires13[t-2]),this.offsetArcWires1C=W(d),this.entityCollection2.add(v(this.offsetArcWires1C,"导线1_C3"+(o-2)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),p.push(this.offsetWires13[t+3]),p.push(this.offsetWires13[t-1]),this.offsetArcWires1C=W(p),this.entityCollection2.add(v(this.offsetArcWires1C,"导线1_C4"+(o-2)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireAColor));break;case $.六分裂:c.push(this.offsetWires13[t]),c.push(this.offsetWires13[t-6]),this.offsetArcWires1C=W(c),this.entityCollection2.add(v(this.offsetArcWires1C,"导线1_C1"+(o-2)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),h.push(this.offsetWires13[t+1]),h.push(this.offsetWires13[t-5]),this.offsetArcWires1C=W(h),this.entityCollection2.add(v(this.offsetArcWires1C,"导线1_C2"+(o-2)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),d.push(this.offsetWires13[t+2]),d.push(this.offsetWires13[t-4]),this.offsetArcWires1C=W(d),this.entityCollection2.add(v(this.offsetArcWires1C,"导线1_C3"+(o-2)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),p.push(this.offsetWires13[t+3]),p.push(this.offsetWires13[t-3]),this.offsetArcWires1C=W(p),this.entityCollection2.add(v(this.offsetArcWires1C,"导线1_C4"+(o-2)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),m.push(this.offsetWires13[t+4]),m.push(this.offsetWires13[t-2]),this.offsetArcWires1C=W(m),this.entityCollection2.add(v(this.offsetArcWires1C,"导线1_C5"+(o-2)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),T.push(this.offsetWires13[t+5]),T.push(this.offsetWires13[t-1]),this.offsetArcWires1C=W(T),this.entityCollection2.add(v(this.offsetArcWires1C,"导线1_C6"+(o-2)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireAColor));break;case $.八分裂:c.push(this.offsetWires13[t]),c.push(this.offsetWires13[t-8]),this.offsetArcWires1C=W(c),this.entityCollection2.add(v(this.offsetArcWires1C,"导线1_C1"+(o-2)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),h.push(this.offsetWires13[t+1]),h.push(this.offsetWires13[t-7]),this.offsetArcWires1C=W(h),this.entityCollection2.add(v(this.offsetArcWires1C,"导线1_C2"+(o-2)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),d.push(this.offsetWires13[t+2]),d.push(this.offsetWires13[t-6]),this.offsetArcWires1C=W(d),this.entityCollection2.add(v(this.offsetArcWires1C,"导线1_C3"+(o-2)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),p.push(this.offsetWires13[t+3]),p.push(this.offsetWires13[t-5]),this.offsetArcWires1C=W(p),this.entityCollection2.add(v(this.offsetArcWires1C,"导线1_C4"+(o-2)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),m.push(this.offsetWires13[t+4]),m.push(this.offsetWires13[t-4]),this.offsetArcWires1C=W(m),this.entityCollection2.add(v(this.offsetArcWires1C,"导线1_C5"+(o-2)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),T.push(this.offsetWires13[t+5]),T.push(this.offsetWires13[t-3]),this.offsetArcWires1C=W(T),this.entityCollection2.add(v(this.offsetArcWires1C,"导线1_C6"+(o-2)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),y.push(this.offsetWires13[t+6]),y.push(this.offsetWires13[t-2]),this.offsetArcWires1C=W(y),this.entityCollection2.add(v(this.offsetArcWires1C,"导线1_C7"+(o-2)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),w.push(this.offsetWires13[t+7]),w.push(this.offsetWires13[t-1]),this.offsetArcWires1C=W(w),this.entityCollection2.add(v(this.offsetArcWires1C,"导线1_C8"+(o-2)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireAColor));break}}if(this.offsetWires21.length>0&&o>0){const c=[],h=[],d=[],p=[],m=[],T=[],y=[],w=[];switch(this.LineInfo.Wairnum){case $.单分裂:c.push(this.offsetWires21[t]),c.push(this.offsetWires21[t-1]),this.offsetArcWires2A=W(c),this.entityCollection2.add(v(this.offsetArcWires2A,"导线2_A1"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireAColor));break;case $.双分裂:c.push(this.offsetWires21[t]),c.push(this.offsetWires21[t-2]),this.offsetArcWires2A=W(c),this.entityCollection2.add(v(this.offsetArcWires2A,"导线2_A1"+(o-2)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),h.push(this.offsetWires21[t+1]),h.push(this.offsetWires21[t-1]),this.offsetArcWires2A=W(h),this.entityCollection2.add(v(this.offsetArcWires2A,"导线2_A2"+(o-2)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireAColor));break;case $.四分裂:c.push(this.offsetWires21[t]),c.push(this.offsetWires21[t-4]),this.offsetArcWires2A=W(c),this.entityCollection2.add(v(this.offsetArcWires2A,"导线2_A1"+(o-2)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),h.push(this.offsetWires21[t+1]),h.push(this.offsetWires21[t-3]),this.offsetArcWires2A=W(h),this.entityCollection2.add(v(this.offsetArcWires2A,"导线2_A2"+(o-2)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),d.push(this.offsetWires21[t+2]),d.push(this.offsetWires21[t-2]),this.offsetArcWires2A=W(d),this.entityCollection2.add(v(this.offsetArcWires2A,"导线2_A3"+(o-2)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),p.push(this.offsetWires21[t+3]),p.push(this.offsetWires21[t-1]),this.offsetArcWires2A=W(p),this.entityCollection2.add(v(this.offsetArcWires2A,"导线2_A4"+(o-2)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireAColor));break;case $.六分裂:c.push(this.offsetWires21[t]),c.push(this.offsetWires21[t-6]),this.offsetArcWires2A=W(c),this.entityCollection2.add(v(this.offsetArcWires2A,"导线2_A1"+(o-2)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),h.push(this.offsetWires21[t+1]),h.push(this.offsetWires21[t-5]),this.offsetArcWires2A=W(h),this.entityCollection2.add(v(this.offsetArcWires2A,"导线2_A2"+(o-2)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),d.push(this.offsetWires21[t+2]),d.push(this.offsetWires21[t-4]),this.offsetArcWires2A=W(d),this.entityCollection2.add(v(this.offsetArcWires2A,"导线2_A3"+(o-2)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),p.push(this.offsetWires21[t+3]),p.push(this.offsetWires21[t-3]),this.offsetArcWires2A=W(p),this.entityCollection2.add(v(this.offsetArcWires2A,"导线2_A4"+(o-2)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),m.push(this.offsetWires21[t+4]),m.push(this.offsetWires21[t-2]),this.offsetArcWires2A=W(m),this.entityCollection2.add(v(this.offsetArcWires2A,"导线2_A5"+(o-2)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),T.push(this.offsetWires21[t+5]),T.push(this.offsetWires21[t-1]),this.offsetArcWires2A=W(T),this.entityCollection2.add(v(this.offsetArcWires2A,"导线2_A6"+(o-2)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireAColor));break;case $.八分裂:c.push(this.offsetWires21[t]),c.push(this.offsetWires21[t-8]),this.offsetArcWires2A=W(c),this.entityCollection2.add(v(this.offsetArcWires2A,"导线2_A1"+(o-2)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),h.push(this.offsetWires21[t+1]),h.push(this.offsetWires21[t-7]),this.offsetArcWires2A=W(h),this.entityCollection2.add(v(this.offsetArcWires2A,"导线2_A2"+(o-2)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),d.push(this.offsetWires21[t+2]),d.push(this.offsetWires21[t-6]),this.offsetArcWires2A=W(d),this.entityCollection2.add(v(this.offsetArcWires2A,"导线2_A3"+(o-2)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),p.push(this.offsetWires21[t+3]),p.push(this.offsetWires21[t-5]),this.offsetArcWires2A=W(p),this.entityCollection2.add(v(this.offsetArcWires2A,"导线2_A4"+(o-2)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),m.push(this.offsetWires21[t+4]),m.push(this.offsetWires21[t-4]),this.offsetArcWires2A=W(m),this.entityCollection2.add(v(this.offsetArcWires2A,"导线2_A5"+(o-2)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),T.push(this.offsetWires21[t+5]),T.push(this.offsetWires21[t-3]),this.offsetArcWires2A=W(T),this.entityCollection2.add(v(this.offsetArcWires2A,"导线2_A6"+(o-2)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),y.push(this.offsetWires21[t+6]),y.push(this.offsetWires21[t-2]),this.offsetArcWires2A=W(y),this.entityCollection2.add(v(this.offsetArcWires2A,"导线2_A7"+(o-2)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),w.push(this.offsetWires21[t+7]),w.push(this.offsetWires21[t-1]),this.offsetArcWires2A=W(w),this.entityCollection2.add(v(this.offsetArcWires2A,"导线2_A8"+(o-2)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireAColor));break}}if(this.offsetWires22.length>0&&o>0){const c=[],h=[],d=[],p=[],m=[],T=[],y=[],w=[];switch(this.LineInfo.Wairnum){case $.单分裂:c.push(this.offsetWires22[t]),c.push(this.offsetWires22[t-1]),this.offsetArcWires2B=W(c),this.entityCollection2.add(v(this.offsetArcWires2B,"导线2_B1"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireAColor));break;case $.双分裂:c.push(this.offsetWires22[t]),c.push(this.offsetWires22[t-2]),this.offsetArcWires2B=W(c),this.entityCollection2.add(v(this.offsetArcWires2B,"导线2_B1"+(o-2)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),h.push(this.offsetWires22[t+1]),h.push(this.offsetWires22[t-1]),this.offsetArcWires2B=W(h),this.entityCollection2.add(v(this.offsetArcWires2B,"导线2_B2"+(o-2)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireAColor));break;case $.四分裂:c.push(this.offsetWires22[t]),c.push(this.offsetWires22[t-4]),this.offsetArcWires2B=W(c),this.entityCollection2.add(v(this.offsetArcWires2B,"导线2_B1"+(o-2)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),h.push(this.offsetWires22[t+1]),h.push(this.offsetWires22[t-3]),this.offsetArcWires2B=W(h),this.entityCollection2.add(v(this.offsetArcWires2B,"导线2_B2"+(o-2)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),d.push(this.offsetWires22[t+2]),d.push(this.offsetWires22[t-2]),this.offsetArcWires2B=W(d),this.entityCollection2.add(v(this.offsetArcWires2B,"导线2_B3"+(o-2)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),p.push(this.offsetWires22[t+3]),p.push(this.offsetWires22[t-1]),this.offsetArcWires2B=W(p),this.entityCollection2.add(v(this.offsetArcWires2B,"导线2_B4"+(o-2)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireAColor));break;case $.六分裂:c.push(this.offsetWires22[t]),c.push(this.offsetWires22[t-6]),this.offsetArcWires2B=W(c),this.entityCollection2.add(v(this.offsetArcWires2B,"导线2_B1"+(o-2)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),h.push(this.offsetWires22[t+1]),h.push(this.offsetWires22[t-5]),this.offsetArcWires2B=W(h),this.entityCollection2.add(v(this.offsetArcWires2B,"导线2_B2"+(o-2)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),d.push(this.offsetWires22[t+2]),d.push(this.offsetWires22[t-4]),this.offsetArcWires2B=W(d),this.entityCollection2.add(v(this.offsetArcWires2B,"导线2_B3"+(o-2)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),p.push(this.offsetWires22[t+3]),p.push(this.offsetWires22[t-3]),this.offsetArcWires2B=W(p),this.entityCollection2.add(v(this.offsetArcWires2B,"导线2_B4"+(o-2)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),m.push(this.offsetWires22[t+4]),m.push(this.offsetWires22[t-2]),this.offsetArcWires2B=W(m),this.entityCollection2.add(v(this.offsetArcWires2B,"导线2_B5"+(o-2)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),T.push(this.offsetWires22[t+5]),T.push(this.offsetWires22[t-1]),this.offsetArcWires2B=W(T),this.entityCollection2.add(v(this.offsetArcWires2B,"导线2_B6"+(o-2)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireAColor));break;case $.八分裂:c.push(this.offsetWires22[t]),c.push(this.offsetWires22[t-8]),this.offsetArcWires2B=W(c),this.entityCollection2.add(v(this.offsetArcWires2B,"导线2_B1"+(o-2)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),h.push(this.offsetWires22[t+1]),h.push(this.offsetWires22[t-7]),this.offsetArcWires2B=W(h),this.entityCollection2.add(v(this.offsetArcWires2B,"导线2_B2"+(o-2)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),d.push(this.offsetWires22[t+2]),d.push(this.offsetWires22[t-6]),this.offsetArcWires2B=W(d),this.entityCollection2.add(v(this.offsetArcWires2B,"导线2_B3"+(o-2)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),p.push(this.offsetWires22[t+3]),p.push(this.offsetWires22[t-5]),this.offsetArcWires2B=W(p),this.entityCollection2.add(v(this.offsetArcWires2B,"导线2_B4"+(o-2)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),m.push(this.offsetWires22[t+4]),m.push(this.offsetWires22[t-4]),this.offsetArcWires2B=W(m),this.entityCollection2.add(v(this.offsetArcWires2B,"导线2_B5"+(o-2)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),T.push(this.offsetWires22[t+5]),T.push(this.offsetWires22[t-3]),this.offsetArcWires2B=W(T),this.entityCollection2.add(v(this.offsetArcWires2B,"导线2_B6"+(o-2)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),y.push(this.offsetWires22[t+6]),y.push(this.offsetWires22[t-2]),this.offsetArcWires2B=W(y),this.entityCollection2.add(v(this.offsetArcWires2B,"导线2_B7"+(o-2)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),w.push(this.offsetWires22[t+7]),w.push(this.offsetWires22[t-1]),this.offsetArcWires2B=W(w),this.entityCollection2.add(v(this.offsetArcWires2B,"导线2_B8"+(o-2)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireAColor));break}}if(this.offsetWires23.length>0&&o>0){const c=[],h=[],d=[],p=[],m=[],T=[],y=[],w=[];switch(this.LineInfo.Wairnum){case $.单分裂:c.push(this.offsetWires23[t]),c.push(this.offsetWires23[t-1]),this.offsetArcWires2C=W(c),this.entityCollection2.add(v(this.offsetArcWires2C,"导线2_C1"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireAColor));break;case $.双分裂:c.push(this.offsetWires23[t]),c.push(this.offsetWires23[t-2]),this.offsetArcWires2C=W(c),this.entityCollection2.add(v(this.offsetArcWires2C,"导线2_C1"+(o-2)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),h.push(this.offsetWires23[t+1]),h.push(this.offsetWires23[t-1]),this.offsetArcWires2C=W(h),this.entityCollection2.add(v(this.offsetArcWires2C,"导线2_C2"+(o-2)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireAColor));break;case $.四分裂:c.push(this.offsetWires23[t]),c.push(this.offsetWires23[t-4]),this.offsetArcWires2C=W(c),this.entityCollection2.add(v(this.offsetArcWires2C,"导线2_C1"+(o-2)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),h.push(this.offsetWires23[t+1]),h.push(this.offsetWires23[t-3]),this.offsetArcWires2C=W(h),this.entityCollection2.add(v(this.offsetArcWires2C,"导线2_C2"+(o-2)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),d.push(this.offsetWires23[t+2]),d.push(this.offsetWires23[t-2]),this.offsetArcWires2C=W(d),this.entityCollection2.add(v(this.offsetArcWires2C,"导线2_C3"+(o-2)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),p.push(this.offsetWires23[t+3]),p.push(this.offsetWires23[t-1]),this.offsetArcWires2C=W(p),this.entityCollection2.add(v(this.offsetArcWires2C,"导线2_C4"+(o-2)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireAColor));break;case $.六分裂:c.push(this.offsetWires23[t]),c.push(this.offsetWires23[t-6]),this.offsetArcWires2C=W(c),this.entityCollection2.add(v(this.offsetArcWires2C,"导线2_C1"+(o-2)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),h.push(this.offsetWires23[t+1]),h.push(this.offsetWires23[t-5]),this.offsetArcWires2C=W(h),this.entityCollection2.add(v(this.offsetArcWires2C,"导线2_C2"+(o-2)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),d.push(this.offsetWires23[t+2]),d.push(this.offsetWires23[t-4]),this.offsetArcWires2C=W(d),this.entityCollection2.add(v(this.offsetArcWires2C,"导线2_C3"+(o-2)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),p.push(this.offsetWires23[t+3]),p.push(this.offsetWires23[t-3]),this.offsetArcWires2C=W(p),this.entityCollection2.add(v(this.offsetArcWires2C,"导线2_C4"+(o-2)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),m.push(this.offsetWires23[t+4]),m.push(this.offsetWires23[t-2]),this.offsetArcWires2C=W(m),this.entityCollection2.add(v(this.offsetArcWires2C,"导线2_C5"+(o-2)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),T.push(this.offsetWires23[t+5]),T.push(this.offsetWires23[t-1]),this.offsetArcWires2C=W(T),this.entityCollection2.add(v(this.offsetArcWires2C,"导线2_C6"+(o-2)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireAColor));break;case $.八分裂:c.push(this.offsetWires23[t]),c.push(this.offsetWires23[t-8]),this.offsetArcWires2C=W(c),this.entityCollection2.add(v(this.offsetArcWires2C,"导线2_C1"+(o-2)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),h.push(this.offsetWires23[t+1]),h.push(this.offsetWires23[t-7]),this.offsetArcWires2C=W(h),this.entityCollection2.add(v(this.offsetArcWires2C,"导线2_C2"+(o-2)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),d.push(this.offsetWires23[t+2]),d.push(this.offsetWires23[t-6]),this.offsetArcWires2C=W(d),this.entityCollection2.add(v(this.offsetArcWires2C,"导线2_C3"+(o-2)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),p.push(this.offsetWires23[t+3]),p.push(this.offsetWires23[t-5]),this.offsetArcWires2C=W(p),this.entityCollection2.add(v(this.offsetArcWires2C,"导线2_C4"+(o-2)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),m.push(this.offsetWires23[t+4]),m.push(this.offsetWires23[t-4]),this.offsetArcWires2C=W(m),this.entityCollection2.add(v(this.offsetArcWires2C,"导线2_C5"+(o-2)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),T.push(this.offsetWires23[t+5]),T.push(this.offsetWires23[t-3]),this.offsetArcWires2C=W(T),this.entityCollection2.add(v(this.offsetArcWires2C,"导线2_C6"+(o-2)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),y.push(this.offsetWires23[t+6]),y.push(this.offsetWires23[t-2]),this.offsetArcWires2C=W(y),this.entityCollection2.add(v(this.offsetArcWires2C,"导线2_C7"+(o-2)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),w.push(this.offsetWires23[t+7]),w.push(this.offsetWires23[t-1]),this.offsetArcWires2C=W(w),this.entityCollection2.add(v(this.offsetArcWires2C,"导线2_C8"+(o-2)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireAColor));break}}if(this.offsetGrouundWires11.length>1){const c=[];c.push(this.offsetGrouundWires11[o]),c.push(this.offsetGrouundWires11[o-1]);const h=[];h.push(this.offsetGrouundWires12[o]),h.push(this.offsetGrouundWires12[o-1]),this.offsetGrouundWires1=W(c,2),this.offsetGrouundWires2=W(h,2),this.entityCollection2.add(v(this.offsetGrouundWires1,"地线1"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireD1Color)),this.entityCollection2.add(v(this.offsetGrouundWires2,"地线2"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireD2Color))}if(this.LineInfo.towers[o].type==$i.耐张塔){switch(this.LineInfo.Wairnum){case $.单分裂:t=t+2,n=n+2;break;case $.双分裂:t=t+4,n=n+4;break;case $.四分裂:t=t+8,n=n+8;break;case $.六分裂:t=t+12,n=n+12;break;case $.八分裂:t=t+16,n=n+16;break}if(this.ToffsetWires1A1.length>1&&this.ToffsetWires1A2.length>1){const c=[],h=[],d=[],p=[],m=[],T=[],y=[],w=[],A=[],E=[],b=[],D=[],O=[],B=[],L=[],F=[];switch(this.LineInfo.Wairnum){case $.单分裂:this.ToffsetWires1A1.length>=2&&(c.push(this.ToffsetWires1A1[n-2]),c.push(this.ToffsetWires1A1[n-1]),this.ToffsetArcWires1A=W(c,15),this.entityCollection2.add(v(this.ToffsetArcWires1A,"1A1跳线1"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor))),this.ToffsetWires1A2.length>=2&&(A.push(this.ToffsetWires1A2[n-2]),A.push(this.ToffsetWires1A2[n-1]),this.ToffsetArcWires2A=W(A,15),this.entityCollection2.add(v(this.ToffsetArcWires2A,"1A2跳线1"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)));break;case $.双分裂:this.ToffsetWires1A1.length>=4&&(c.push(this.ToffsetWires1A1[n-4]),c.push(this.ToffsetWires1A1[n-2]),this.ToffsetArcWires1A=W(c,15),this.entityCollection2.add(v(this.ToffsetArcWires1A,"1A1跳线1"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),h.push(this.ToffsetWires1A1[n-3]),h.push(this.ToffsetWires1A1[n-1]),this.ToffsetArcWires1A=W(h,15),this.entityCollection2.add(v(this.ToffsetArcWires1A,"1A1跳线2"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor))),this.ToffsetWires1A2.length>=4&&(A.push(this.ToffsetWires1A2[n-4]),A.push(this.ToffsetWires1A2[n-2]),this.ToffsetArcWires2A=W(A,15),this.entityCollection2.add(v(this.ToffsetArcWires2A,"1A2跳线1"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),E.push(this.ToffsetWires1A2[n-3]),E.push(this.ToffsetWires1A2[n-1]),this.ToffsetArcWires2A=W(E,15),this.entityCollection2.add(v(this.ToffsetArcWires2A,"1A2跳线2"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)));break;case $.四分裂:this.ToffsetWires1A1.length>=8&&(c.push(this.ToffsetWires1A1[n-8]),c.push(this.ToffsetWires1A1[n-4]),this.ToffsetArcWires1A=W(c,15),this.entityCollection2.add(v(this.ToffsetArcWires1A,"1A1跳线1"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),h.push(this.ToffsetWires1A1[n-7]),h.push(this.ToffsetWires1A1[n-3]),this.ToffsetArcWires1A=W(h,15),this.entityCollection2.add(v(this.ToffsetArcWires1A,"1A1跳线2"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),d.push(this.ToffsetWires1A1[n-6]),d.push(this.ToffsetWires1A1[n-2]),this.ToffsetArcWires1A=W(d,15),this.entityCollection2.add(v(this.ToffsetArcWires1A,"1A1跳线3"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),p.push(this.ToffsetWires1A1[n-5]),p.push(this.ToffsetWires1A1[n-1]),this.ToffsetArcWires1A=W(p,15),this.entityCollection2.add(v(this.ToffsetArcWires1A,"1A1跳线4"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor))),this.ToffsetWires1A2.length>=8&&(A.push(this.ToffsetWires1A2[n-8]),A.push(this.ToffsetWires1A2[n-4]),this.ToffsetArcWires2A=W(A,15),this.entityCollection2.add(v(this.ToffsetArcWires2A,"1A2跳线1"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),E.push(this.ToffsetWires1A2[n-7]),E.push(this.ToffsetWires1A2[n-3]),this.ToffsetArcWires2A=W(E,15),this.entityCollection2.add(v(this.ToffsetArcWires2A,"1A2跳线2"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),b.push(this.ToffsetWires1A2[n-6]),b.push(this.ToffsetWires1A2[n-2]),this.ToffsetArcWires2A=W(b,15),this.entityCollection2.add(v(this.ToffsetArcWires2A,"1A2跳线3"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),D.push(this.ToffsetWires1A2[n-5]),D.push(this.ToffsetWires1A2[n-1]),this.ToffsetArcWires2A=W(D,15),this.entityCollection2.add(v(this.ToffsetArcWires2A,"1A2跳线4"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)));break;case $.六分裂:this.ToffsetWires1A1.length>=12&&(c.push(this.ToffsetWires1A1[n-12]),c.push(this.ToffsetWires1A1[n-6]),this.ToffsetArcWires1A=W(c,15),this.entityCollection2.add(v(this.ToffsetArcWires1A,"1A1跳线1"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),h.push(this.ToffsetWires1A1[n-11]),h.push(this.ToffsetWires1A1[n-5]),this.ToffsetArcWires1A=W(h,15),this.entityCollection2.add(v(this.ToffsetArcWires1A,"1A1跳线2"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),d.push(this.ToffsetWires1A1[n-10]),d.push(this.ToffsetWires1A1[n-4]),this.ToffsetArcWires1A=W(d,15),this.entityCollection2.add(v(this.ToffsetArcWires1A,"1A1跳线3"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),p.push(this.ToffsetWires1A1[n-9]),p.push(this.ToffsetWires1A1[n-3]),this.ToffsetArcWires1A=W(p,15),this.entityCollection2.add(v(this.ToffsetArcWires1A,"1A1跳线4"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),m.push(this.ToffsetWires1A1[n-8]),m.push(this.ToffsetWires1A1[n-2]),this.ToffsetArcWires1A=W(m,15),this.entityCollection2.add(v(this.ToffsetArcWires1A,"1A1跳线5"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),T.push(this.ToffsetWires1A1[n-7]),T.push(this.ToffsetWires1A1[n-1]),this.ToffsetArcWires1A=W(T,15),this.entityCollection2.add(v(this.ToffsetArcWires1A,"1A1跳线6"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor))),this.ToffsetWires1A2.length>=12&&(A.push(this.ToffsetWires1A2[n-12]),A.push(this.ToffsetWires1A2[n-6]),this.ToffsetArcWires2A=W(A,15),this.entityCollection2.add(v(this.ToffsetArcWires2A,"1A2跳线1"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),E.push(this.ToffsetWires1A2[n-11]),E.push(this.ToffsetWires1A2[n-5]),this.ToffsetArcWires2A=W(E,15),this.entityCollection2.add(v(this.ToffsetArcWires2A,"1A2跳线2"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),b.push(this.ToffsetWires1A2[n-10]),b.push(this.ToffsetWires1A2[n-4]),this.ToffsetArcWires2A=W(b,15),this.entityCollection2.add(v(this.ToffsetArcWires2A,"1A2跳线3"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),D.push(this.ToffsetWires1A2[n-9]),D.push(this.ToffsetWires1A2[n-3]),this.ToffsetArcWires2A=W(D,15),this.entityCollection2.add(v(this.ToffsetArcWires2A,"1A2跳线4"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),O.push(this.ToffsetWires1A2[n-8]),O.push(this.ToffsetWires1A2[n-2]),this.ToffsetArcWires2A=W(O,15),this.entityCollection2.add(v(this.ToffsetArcWires2A,"1A2跳线5"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),B.push(this.ToffsetWires1A2[n-7]),B.push(this.ToffsetWires1A2[n-1]),this.ToffsetArcWires2A=W(B,15),this.entityCollection2.add(v(this.ToffsetArcWires2A,"1A2跳线6"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)));break;case $.八分裂:this.ToffsetWires1A1.length>=16&&(c.push(this.ToffsetWires1A1[n-16]),c.push(this.ToffsetWires1A1[n-8]),this.ToffsetArcWires1A=W(c,15),this.entityCollection2.add(v(this.ToffsetArcWires1A,"1A1跳线1"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),h.push(this.ToffsetWires1A1[n-15]),h.push(this.ToffsetWires1A1[n-7]),this.ToffsetArcWires1A=W(h,15),this.entityCollection2.add(v(this.ToffsetArcWires1A,"1A1跳线2"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),d.push(this.ToffsetWires1A1[n-14]),d.push(this.ToffsetWires1A1[n-6]),this.ToffsetArcWires1A=W(d,15),this.entityCollection2.add(v(this.ToffsetArcWires1A,"1A1跳线3"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),p.push(this.ToffsetWires1A1[n-13]),p.push(this.ToffsetWires1A1[n-5]),this.ToffsetArcWires1A=W(p,15),this.entityCollection2.add(v(this.ToffsetArcWires1A,"1A1跳线4"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),m.push(this.ToffsetWires1A1[n-12]),m.push(this.ToffsetWires1A1[n-4]),this.ToffsetArcWires1A=W(m,15),this.entityCollection2.add(v(this.ToffsetArcWires1A,"1A1跳线5"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),T.push(this.ToffsetWires1A1[n-11]),T.push(this.ToffsetWires1A1[n-3]),this.ToffsetArcWires1A=W(T,15),this.entityCollection2.add(v(this.ToffsetArcWires1A,"1A1跳线6"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),y.push(this.ToffsetWires1A1[n-10]),y.push(this.ToffsetWires1A1[n-2]),this.ToffsetArcWires1A=W(y,15),this.entityCollection2.add(v(this.ToffsetArcWires1A,"1A1跳线7"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),w.push(this.ToffsetWires1A1[n-9]),w.push(this.ToffsetWires1A1[n-1]),this.ToffsetArcWires1A=W(w,15),this.entityCollection2.add(v(this.ToffsetArcWires1A,"1A1跳线8"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor))),this.ToffsetWires1A2.length>=16&&(A.push(this.ToffsetWires1A2[n-16]),A.push(this.ToffsetWires1A2[n-8]),this.ToffsetArcWires2A=W(A,15),this.entityCollection2.add(v(this.ToffsetArcWires2A,"1A2跳线1"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),E.push(this.ToffsetWires1A2[n-15]),E.push(this.ToffsetWires1A2[n-7]),this.ToffsetArcWires2A=W(E,15),this.entityCollection2.add(v(this.ToffsetArcWires2A,"1A2跳线2"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),b.push(this.ToffsetWires1A2[n-14]),b.push(this.ToffsetWires1A2[n-6]),this.ToffsetArcWires2A=W(b,15),this.entityCollection2.add(v(this.ToffsetArcWires2A,"1A2跳线3"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),D.push(this.ToffsetWires1A2[n-13]),D.push(this.ToffsetWires1A2[n-5]),this.ToffsetArcWires2A=W(D,15),this.entityCollection2.add(v(this.ToffsetArcWires2A,"1A2跳线4"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),O.push(this.ToffsetWires1A2[n-12]),O.push(this.ToffsetWires1A2[n-4]),this.ToffsetArcWires2A=W(O,15),this.entityCollection2.add(v(this.ToffsetArcWires2A,"1A2跳线5"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),B.push(this.ToffsetWires1A2[n-11]),B.push(this.ToffsetWires1A2[n-3]),this.ToffsetArcWires2A=W(B,15),this.entityCollection2.add(v(this.ToffsetArcWires2A,"1A2跳线6"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),L.push(this.ToffsetWires1A2[n-10]),L.push(this.ToffsetWires1A2[n-2]),this.ToffsetArcWires2A=W(L,15),this.entityCollection2.add(v(this.ToffsetArcWires2A,"1A2跳线7"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),F.push(this.ToffsetWires1A2[n-9]),F.push(this.ToffsetWires1A2[n-1]),this.ToffsetArcWires2A=W(F,15),this.entityCollection2.add(v(this.ToffsetArcWires2A,"1A2跳线8"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)));break}}if(this.ToffsetWires1B1.length>1&&this.ToffsetWires1B2.length>1){const c=[],h=[],d=[],p=[],m=[],T=[],y=[],w=[],A=[],E=[],b=[],D=[],O=[],B=[],L=[],F=[];switch(this.LineInfo.Wairnum){case $.单分裂:this.ToffsetWires1B1.length>=2&&(c.push(this.ToffsetWires1B1[n-2]),c.push(this.ToffsetWires1B1[n-1]),this.ToffsetArcWires1B=W(c,15),this.entityCollection2.add(v(this.ToffsetArcWires1B,"1B1跳线1"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor))),this.ToffsetWires1B2.length>=2&&(A.push(this.ToffsetWires1B2[n-2]),A.push(this.ToffsetWires1B2[n-1]),this.ToffsetArcWires2B=W(A,15),this.entityCollection2.add(v(this.ToffsetArcWires2B,"1B2跳线1"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)));break;case $.双分裂:this.ToffsetWires1B1.length>=4&&(c.push(this.ToffsetWires1B1[n-4]),c.push(this.ToffsetWires1B1[n-2]),this.ToffsetArcWires1B=W(c,15),this.entityCollection2.add(v(this.ToffsetArcWires1B,"1B1跳线1"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),h.push(this.ToffsetWires1B1[n-3]),h.push(this.ToffsetWires1B1[n-1]),this.ToffsetArcWires1B=W(h,15),this.entityCollection2.add(v(this.ToffsetArcWires1B,"1B1跳线2"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor))),this.ToffsetWires1B2.length>=4&&(A.push(this.ToffsetWires1B2[n-4]),A.push(this.ToffsetWires1B2[n-2]),this.ToffsetArcWires2B=W(A,15),this.entityCollection2.add(v(this.ToffsetArcWires2B,"1B2跳线1"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),E.push(this.ToffsetWires1B2[n-3]),E.push(this.ToffsetWires1B2[n-1]),this.ToffsetArcWires2B=W(E,15),this.entityCollection2.add(v(this.ToffsetArcWires2B,"1B2跳线2"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)));break;case $.四分裂:this.ToffsetWires1B1.length>=8&&(c.push(this.ToffsetWires1B1[n-8]),c.push(this.ToffsetWires1B1[n-4]),this.ToffsetArcWires1B=W(c,15),this.entityCollection2.add(v(this.ToffsetArcWires1B,"1B1跳线1"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),h.push(this.ToffsetWires1B1[n-7]),h.push(this.ToffsetWires1B1[n-3]),this.ToffsetArcWires1B=W(h,15),this.entityCollection2.add(v(this.ToffsetArcWires1B,"1B1跳线2"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),d.push(this.ToffsetWires1B1[n-6]),d.push(this.ToffsetWires1B1[n-2]),this.ToffsetArcWires1B=W(d,15),this.entityCollection2.add(v(this.ToffsetArcWires1B,"1B1跳线3"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),p.push(this.ToffsetWires1B1[n-5]),p.push(this.ToffsetWires1B1[n-1]),this.ToffsetArcWires1B=W(p,15),this.entityCollection2.add(v(this.ToffsetArcWires1B,"1B1跳线4"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor))),this.ToffsetWires1B2.length>=8&&(A.push(this.ToffsetWires1B2[n-8]),A.push(this.ToffsetWires1B2[n-4]),this.ToffsetArcWires2B=W(A,15),this.entityCollection2.add(v(this.ToffsetArcWires2B,"1B2跳线1"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),E.push(this.ToffsetWires1B2[n-7]),E.push(this.ToffsetWires1B2[n-3]),this.ToffsetArcWires2B=W(E,15),this.entityCollection2.add(v(this.ToffsetArcWires2B,"1B2跳线2"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),b.push(this.ToffsetWires1B2[n-6]),b.push(this.ToffsetWires1B2[n-2]),this.ToffsetArcWires2B=W(b,15),this.entityCollection2.add(v(this.ToffsetArcWires2B,"1B2跳线3"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),D.push(this.ToffsetWires1B2[n-5]),D.push(this.ToffsetWires1B2[n-1]),this.ToffsetArcWires2B=W(D,15),this.entityCollection2.add(v(this.ToffsetArcWires2B,"1B2跳线4"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)));break;case $.六分裂:this.ToffsetWires1B1.length>=12&&(c.push(this.ToffsetWires1B1[n-12]),c.push(this.ToffsetWires1B1[n-6]),this.ToffsetArcWires1B=W(c,15),this.entityCollection2.add(v(this.ToffsetArcWires1B,"1B1跳线1"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),h.push(this.ToffsetWires1B1[n-11]),h.push(this.ToffsetWires1B1[n-5]),this.ToffsetArcWires1B=W(h,15),this.entityCollection2.add(v(this.ToffsetArcWires1B,"1B1跳线2"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),d.push(this.ToffsetWires1B1[n-10]),d.push(this.ToffsetWires1B1[n-4]),this.ToffsetArcWires1B=W(d,15),this.entityCollection2.add(v(this.ToffsetArcWires1B,"1B1跳线3"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),p.push(this.ToffsetWires1B1[n-9]),p.push(this.ToffsetWires1B1[n-3]),this.ToffsetArcWires1B=W(p,15),this.entityCollection2.add(v(this.ToffsetArcWires1B,"1B1跳线4"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),m.push(this.ToffsetWires1B1[n-8]),m.push(this.ToffsetWires1B1[n-2]),this.ToffsetArcWires1B=W(m,15),this.entityCollection2.add(v(this.ToffsetArcWires1B,"1B1跳线5"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),T.push(this.ToffsetWires1B1[n-7]),T.push(this.ToffsetWires1B1[n-1]),this.ToffsetArcWires1B=W(T,15),this.entityCollection2.add(v(this.ToffsetArcWires1B,"1B1跳线6"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor))),this.ToffsetWires1B2.length>=12&&(A.push(this.ToffsetWires1B2[n-12]),A.push(this.ToffsetWires1B2[n-6]),this.ToffsetArcWires2B=W(A,15),this.entityCollection2.add(v(this.ToffsetArcWires2B,"1B2跳线1"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),E.push(this.ToffsetWires1B2[n-11]),E.push(this.ToffsetWires1B2[n-5]),this.ToffsetArcWires2B=W(E,15),this.entityCollection2.add(v(this.ToffsetArcWires2B,"1B2跳线2"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),b.push(this.ToffsetWires1B2[n-10]),b.push(this.ToffsetWires1B2[n-4]),this.ToffsetArcWires2B=W(b,15),this.entityCollection2.add(v(this.ToffsetArcWires2B,"1B2跳线3"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),D.push(this.ToffsetWires1B2[n-9]),D.push(this.ToffsetWires1B2[n-3]),this.ToffsetArcWires2B=W(D,15),this.entityCollection2.add(v(this.ToffsetArcWires2B,"1B2跳线4"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),O.push(this.ToffsetWires1B2[n-8]),O.push(this.ToffsetWires1B2[n-2]),this.ToffsetArcWires2B=W(O,15),this.entityCollection2.add(v(this.ToffsetArcWires2B,"1B2跳线5"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),B.push(this.ToffsetWires1B2[n-7]),B.push(this.ToffsetWires1B2[n-1]),this.ToffsetArcWires2B=W(B,15),this.entityCollection2.add(v(this.ToffsetArcWires2B,"1B2跳线6"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)));break;case $.八分裂:this.ToffsetWires1B1.length>=16&&(c.push(this.ToffsetWires1B1[n-16]),c.push(this.ToffsetWires1B1[n-8]),this.ToffsetArcWires1B=W(c,15),this.entityCollection2.add(v(this.ToffsetArcWires1B,"1B1跳线1"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),h.push(this.ToffsetWires1B1[n-15]),h.push(this.ToffsetWires1B1[n-7]),this.ToffsetArcWires1B=W(h,15),this.entityCollection2.add(v(this.ToffsetArcWires1B,"1B1跳线2"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),d.push(this.ToffsetWires1B1[n-14]),d.push(this.ToffsetWires1B1[n-6]),this.ToffsetArcWires1B=W(d,15),this.entityCollection2.add(v(this.ToffsetArcWires1B,"1B1跳线3"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),p.push(this.ToffsetWires1B1[n-13]),p.push(this.ToffsetWires1B1[n-5]),this.ToffsetArcWires1B=W(p,15),this.entityCollection2.add(v(this.ToffsetArcWires1B,"1B1跳线4"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),m.push(this.ToffsetWires1B1[n-12]),m.push(this.ToffsetWires1B1[n-4]),this.ToffsetArcWires1B=W(m,15),this.entityCollection2.add(v(this.ToffsetArcWires1B,"1B1跳线5"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),T.push(this.ToffsetWires1B1[n-11]),T.push(this.ToffsetWires1B1[n-3]),this.ToffsetArcWires1B=W(T,15),this.entityCollection2.add(v(this.ToffsetArcWires1B,"1B1跳线6"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),y.push(this.ToffsetWires1B1[n-10]),y.push(this.ToffsetWires1B1[n-2]),this.ToffsetArcWires1B=W(y,15),this.entityCollection2.add(v(this.ToffsetArcWires1B,"1B1跳线7"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),w.push(this.ToffsetWires1B1[n-9]),w.push(this.ToffsetWires1B1[n-1]),this.ToffsetArcWires1B=W(w,15),this.entityCollection2.add(v(this.ToffsetArcWires1B,"1B1跳线8"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor))),this.ToffsetWires1B2.length>=16&&(A.push(this.ToffsetWires1B2[n-16]),A.push(this.ToffsetWires1B2[n-8]),this.ToffsetArcWires2B=W(A,15),this.entityCollection2.add(v(this.ToffsetArcWires2B,"1B2跳线1"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),E.push(this.ToffsetWires1B2[n-15]),E.push(this.ToffsetWires1B2[n-7]),this.ToffsetArcWires2B=W(E,15),this.entityCollection2.add(v(this.ToffsetArcWires2B,"1B2跳线2"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),b.push(this.ToffsetWires1B2[n-14]),b.push(this.ToffsetWires1B2[n-6]),this.ToffsetArcWires2B=W(b,15),this.entityCollection2.add(v(this.ToffsetArcWires2B,"1B2跳线3"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),D.push(this.ToffsetWires1B2[n-13]),D.push(this.ToffsetWires1B2[n-5]),this.ToffsetArcWires2B=W(D,15),this.entityCollection2.add(v(this.ToffsetArcWires2B,"1B2跳线4"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),O.push(this.ToffsetWires1B2[n-12]),O.push(this.ToffsetWires1B2[n-4]),this.ToffsetArcWires2B=W(O,15),this.entityCollection2.add(v(this.ToffsetArcWires2B,"1B2跳线5"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),B.push(this.ToffsetWires1B2[n-11]),B.push(this.ToffsetWires1B2[n-3]),this.ToffsetArcWires2B=W(B,15),this.entityCollection2.add(v(this.ToffsetArcWires2B,"1B2跳线6"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),L.push(this.ToffsetWires1B2[n-10]),L.push(this.ToffsetWires1B2[n-2]),this.ToffsetArcWires2B=W(L,15),this.entityCollection2.add(v(this.ToffsetArcWires2B,"1B2跳线7"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),F.push(this.ToffsetWires1B2[n-9]),F.push(this.ToffsetWires1B2[n-1]),this.ToffsetArcWires2B=W(F,15),this.entityCollection2.add(v(this.ToffsetArcWires2B,"1B2跳线8"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)));break}}debugger;if(this.ToffsetWires1C1.length>1&&this.ToffsetWires1C2.length>1){const c=[],h=[],d=[],p=[],m=[],T=[],y=[],w=[],A=[],E=[],b=[],D=[],O=[],B=[],L=[],F=[];switch(this.LineInfo.Wairnum){case $.单分裂:this.ToffsetWires1C1.length>=2&&(c.push(this.ToffsetWires1C1[n-2]),c.push(this.ToffsetWires1C1[n-1]),this.ToffsetArcWires1C=W(c,15),this.entityCollection2.add(v(this.ToffsetArcWires1C,"1C1跳线1"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor))),this.ToffsetWires1C2.length>=2&&(A.push(this.ToffsetWires1C2[n-2]),A.push(this.ToffsetWires1C2[n-1]),this.ToffsetArcWires2C=W(A,15),this.entityCollection2.add(v(this.ToffsetArcWires2C,"1C2跳线1"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)));break;case $.双分裂:this.ToffsetWires1C1.length>=4&&(c.push(this.ToffsetWires1C1[n-4]),c.push(this.ToffsetWires1C1[n-2]),this.ToffsetArcWires1C=W(c,15),this.entityCollection2.add(v(this.ToffsetArcWires1C,"1C1跳线1"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),h.push(this.ToffsetWires1C1[n-3]),h.push(this.ToffsetWires1C1[n-1]),this.ToffsetArcWires1C=W(h,15),this.entityCollection2.add(v(this.ToffsetArcWires1C,"1C1跳线2"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor))),this.ToffsetWires1C2.length>=4&&(A.push(this.ToffsetWires1C2[n-4]),A.push(this.ToffsetWires1C2[n-2]),this.ToffsetArcWires2C=W(A,15),this.entityCollection2.add(v(this.ToffsetArcWires2C,"1C2跳线1"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),E.push(this.ToffsetWires1C2[n-3]),E.push(this.ToffsetWires1C2[n-1]),this.ToffsetArcWires2C=W(E,15),this.entityCollection2.add(v(this.ToffsetArcWires2C,"1C2跳线2"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)));break;case $.四分裂:this.ToffsetWires1C1.length>=8&&(c.push(this.ToffsetWires1C1[n-8]),c.push(this.ToffsetWires1C1[n-4]),this.ToffsetArcWires1C=W(c,15),this.entityCollection2.add(v(this.ToffsetArcWires1C,"1C1跳线1"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),h.push(this.ToffsetWires1C1[n-7]),h.push(this.ToffsetWires1C1[n-3]),this.ToffsetArcWires1C=W(h,15),this.entityCollection2.add(v(this.ToffsetArcWires1C,"1C1跳线2"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),d.push(this.ToffsetWires1C1[n-6]),d.push(this.ToffsetWires1C1[n-2]),this.ToffsetArcWires1C=W(d,15),this.entityCollection2.add(v(this.ToffsetArcWires1C,"1C1跳线3"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),p.push(this.ToffsetWires1C1[n-5]),p.push(this.ToffsetWires1C1[n-1]),this.ToffsetArcWires1C=W(p,15),this.entityCollection2.add(v(this.ToffsetArcWires1C,"1C1跳线4"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor))),this.ToffsetWires1C2.length>=8&&(A.push(this.ToffsetWires1C2[n-8]),A.push(this.ToffsetWires1C2[n-4]),this.ToffsetArcWires2C=W(A,15),this.entityCollection2.add(v(this.ToffsetArcWires2C,"1C2跳线1"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),E.push(this.ToffsetWires1C2[n-7]),E.push(this.ToffsetWires1C2[n-3]),this.ToffsetArcWires2C=W(E,15),this.entityCollection2.add(v(this.ToffsetArcWires2C,"1C2跳线2"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),b.push(this.ToffsetWires1C2[n-6]),b.push(this.ToffsetWires1C2[n-2]),this.ToffsetArcWires2C=W(b,15),this.entityCollection2.add(v(this.ToffsetArcWires2C,"1C2跳线3"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),D.push(this.ToffsetWires1C2[n-5]),D.push(this.ToffsetWires1C2[n-1]),this.ToffsetArcWires2C=W(D,15),this.entityCollection2.add(v(this.ToffsetArcWires2C,"1C2跳线4"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)));break;case $.六分裂:this.ToffsetWires1C1.length>=12&&(c.push(this.ToffsetWires1C1[n-12]),c.push(this.ToffsetWires1C1[n-6]),this.ToffsetArcWires1C=W(c,15),this.entityCollection2.add(v(this.ToffsetArcWires1C,"1C1跳线1"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),h.push(this.ToffsetWires1C1[n-11]),h.push(this.ToffsetWires1C1[n-5]),this.ToffsetArcWires1C=W(h,15),this.entityCollection2.add(v(this.ToffsetArcWires1C,"1C1跳线2"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),d.push(this.ToffsetWires1C1[n-10]),d.push(this.ToffsetWires1C1[n-4]),this.ToffsetArcWires1C=W(d,15),this.entityCollection2.add(v(this.ToffsetArcWires1C,"1C1跳线3"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),p.push(this.ToffsetWires1C1[n-9]),p.push(this.ToffsetWires1C1[n-3]),this.ToffsetArcWires1C=W(p,15),this.entityCollection2.add(v(this.ToffsetArcWires1C,"1C1跳线4"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),m.push(this.ToffsetWires1C1[n-8]),m.push(this.ToffsetWires1C1[n-2]),this.ToffsetArcWires1C=W(m,15),this.entityCollection2.add(v(this.ToffsetArcWires1C,"1C1跳线5"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),T.push(this.ToffsetWires1C1[n-7]),T.push(this.ToffsetWires1C1[n-1]),this.ToffsetArcWires1C=W(T,15),this.entityCollection2.add(v(this.ToffsetArcWires1C,"1C1跳线6"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor))),this.ToffsetWires1C2.length>=12&&(A.push(this.ToffsetWires1C2[n-12]),A.push(this.ToffsetWires1C2[n-6]),this.ToffsetArcWires2C=W(A,15),this.entityCollection2.add(v(this.ToffsetArcWires2C,"1C2跳线1"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),E.push(this.ToffsetWires1C2[n-11]),E.push(this.ToffsetWires1C2[n-5]),this.ToffsetArcWires2C=W(E,15),this.entityCollection2.add(v(this.ToffsetArcWires2C,"1C2跳线2"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),b.push(this.ToffsetWires1C2[n-10]),b.push(this.ToffsetWires1C2[n-4]),this.ToffsetArcWires2C=W(b,15),this.entityCollection2.add(v(this.ToffsetArcWires2C,"1C2跳线3"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),D.push(this.ToffsetWires1C2[n-9]),D.push(this.ToffsetWires1C2[n-3]),this.ToffsetArcWires2C=W(D,15),this.entityCollection2.add(v(this.ToffsetArcWires2C,"1C2跳线4"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),O.push(this.ToffsetWires1C2[n-8]),O.push(this.ToffsetWires1C2[n-2]),this.ToffsetArcWires2C=W(O,15),this.entityCollection2.add(v(this.ToffsetArcWires2C,"1C2跳线5"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),B.push(this.ToffsetWires1C2[n-7]),B.push(this.ToffsetWires1C2[n-1]),this.ToffsetArcWires2C=W(B,15),this.entityCollection2.add(v(this.ToffsetArcWires2C,"1C2跳线6"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)));break;case $.八分裂:this.ToffsetWires1C1.length>=16&&(c.push(this.ToffsetWires1C1[n-16]),c.push(this.ToffsetWires1C1[n-8]),this.ToffsetArcWires1C=W(c,15),this.entityCollection2.add(v(this.ToffsetArcWires1C,"1C1跳线1"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),h.push(this.ToffsetWires1C1[n-15]),h.push(this.ToffsetWires1C1[n-7]),this.ToffsetArcWires1C=W(h,15),this.entityCollection2.add(v(this.ToffsetArcWires1C,"1C1跳线2"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),d.push(this.ToffsetWires1C1[n-14]),d.push(this.ToffsetWires1C1[n-6]),this.ToffsetArcWires1C=W(d,15),this.entityCollection2.add(v(this.ToffsetArcWires1C,"1C1跳线3"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),p.push(this.ToffsetWires1C1[n-13]),p.push(this.ToffsetWires1C1[n-5]),this.ToffsetArcWires1C=W(p,15),this.entityCollection2.add(v(this.ToffsetArcWires1C,"1C1跳线4"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),m.push(this.ToffsetWires1C1[n-12]),m.push(this.ToffsetWires1C1[n-4]),this.ToffsetArcWires1C=W(m,15),this.entityCollection2.add(v(this.ToffsetArcWires1C,"1C1跳线5"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),T.push(this.ToffsetWires1C1[n-11]),T.push(this.ToffsetWires1C1[n-3]),this.ToffsetArcWires1C=W(T,15),this.entityCollection2.add(v(this.ToffsetArcWires1C,"1C1跳线6"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),y.push(this.ToffsetWires1C1[n-10]),y.push(this.ToffsetWires1C1[n-2]),this.ToffsetArcWires1C=W(y,15),this.entityCollection2.add(v(this.ToffsetArcWires1C,"1C1跳线7"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),w.push(this.ToffsetWires1C1[n-9]),w.push(this.ToffsetWires1C1[n-1]),this.ToffsetArcWires1C=W(w,15),this.entityCollection2.add(v(this.ToffsetArcWires1C,"1C1跳线8"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor))),this.ToffsetWires1C2.length>=16&&(A.push(this.ToffsetWires1C2[n-16]),A.push(this.ToffsetWires1C2[n-8]),this.ToffsetArcWires2C=W(A,15),this.entityCollection2.add(v(this.ToffsetArcWires2C,"1C2跳线1"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),E.push(this.ToffsetWires1C2[n-15]),E.push(this.ToffsetWires1C2[n-7]),this.ToffsetArcWires2C=W(E,15),this.entityCollection2.add(v(this.ToffsetArcWires2C,"1C2跳线2"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),b.push(this.ToffsetWires1C2[n-14]),b.push(this.ToffsetWires1C2[n-6]),this.ToffsetArcWires2C=W(b,15),this.entityCollection2.add(v(this.ToffsetArcWires2C,"1C2跳线3"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),D.push(this.ToffsetWires1C2[n-13]),D.push(this.ToffsetWires1C2[n-5]),this.ToffsetArcWires2C=W(D,15),this.entityCollection2.add(v(this.ToffsetArcWires2C,"1C2跳线4"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),O.push(this.ToffsetWires1C2[n-12]),O.push(this.ToffsetWires1C2[n-4]),this.ToffsetArcWires2C=W(O,15),this.entityCollection2.add(v(this.ToffsetArcWires2C,"1C2跳线5"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),B.push(this.ToffsetWires1C2[n-11]),B.push(this.ToffsetWires1C2[n-3]),this.ToffsetArcWires2C=W(B,15),this.entityCollection2.add(v(this.ToffsetArcWires2C,"1C2跳线6"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),L.push(this.ToffsetWires1C2[n-10]),L.push(this.ToffsetWires1C2[n-2]),this.ToffsetArcWires2C=W(L,15),this.entityCollection2.add(v(this.ToffsetArcWires2C,"1C2跳线7"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),F.push(this.ToffsetWires1C2[n-9]),F.push(this.ToffsetWires1C2[n-1]),this.ToffsetArcWires2C=W(F,15),this.entityCollection2.add(v(this.ToffsetArcWires2C,"1C2跳线8"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)));break}}if(this.ToffsetWires2A1.length>1&&this.ToffsetWires2A2.length>1){const c=[],h=[],d=[],p=[],m=[],T=[],y=[],w=[],A=[],E=[],b=[],D=[],O=[],B=[],L=[],F=[];switch(this.LineInfo.Wairnum){case $.单分裂:this.ToffsetWires2A1.length>=2&&(c.push(this.ToffsetWires2A1[n-2]),c.push(this.ToffsetWires2A1[n-1]),this.ToffsetArcWires1A2=W(c,15),this.entityCollection2.add(v(this.ToffsetArcWires1A2,"2A1跳线1"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor))),this.ToffsetWires2A2.length>=2&&(A.push(this.ToffsetWires2A2[n-2]),A.push(this.ToffsetWires2A2[n-1]),this.ToffsetArcWires2A2=W(A,15),this.entityCollection2.add(v(this.ToffsetArcWires2A2,"2A2跳线1"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)));break;case $.双分裂:this.ToffsetWires2A1.length>=4&&(c.push(this.ToffsetWires2A1[n-4]),c.push(this.ToffsetWires2A1[n-2]),this.ToffsetArcWires1A2=W(c,15),this.entityCollection2.add(v(this.ToffsetArcWires1A2,"2A1跳线1"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),h.push(this.ToffsetWires2A1[n-3]),h.push(this.ToffsetWires2A1[n-1]),this.ToffsetArcWires1A2=W(h,15),this.entityCollection2.add(v(this.ToffsetArcWires1A2,"2A1跳线2"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor))),this.ToffsetWires2A2.length>=4&&(A.push(this.ToffsetWires2A2[n-4]),A.push(this.ToffsetWires2A2[n-2]),this.ToffsetArcWires2A2=W(A,15),this.entityCollection2.add(v(this.ToffsetArcWires2A2,"2A2跳线1"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),E.push(this.ToffsetWires2A2[n-3]),E.push(this.ToffsetWires2A2[n-1]),this.ToffsetArcWires2A2=W(E,15),this.entityCollection2.add(v(this.ToffsetArcWires2A2,"2A2跳线2"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)));break;case $.四分裂:this.ToffsetWires2A1.length>=8&&(c.push(this.ToffsetWires2A1[n-8]),c.push(this.ToffsetWires2A1[n-4]),this.ToffsetArcWires1A2=W(c,15),this.entityCollection2.add(v(this.ToffsetArcWires1A2,"2A1跳线1"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),h.push(this.ToffsetWires2A1[n-7]),h.push(this.ToffsetWires2A1[n-3]),this.ToffsetArcWires1A2=W(h,15),this.entityCollection2.add(v(this.ToffsetArcWires1A2,"2A1跳线2"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),d.push(this.ToffsetWires2A1[n-6]),d.push(this.ToffsetWires2A1[n-2]),this.ToffsetArcWires1A2=W(d,15),this.entityCollection2.add(v(this.ToffsetArcWires1A2,"2A1跳线3"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),p.push(this.ToffsetWires2A1[n-5]),p.push(this.ToffsetWires2A1[n-1]),this.ToffsetArcWires1A2=W(p,15),this.entityCollection2.add(v(this.ToffsetArcWires1A2,"2A1跳线4"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor))),this.ToffsetWires2A2.length>=8&&(A.push(this.ToffsetWires2A2[n-8]),A.push(this.ToffsetWires2A2[n-4]),this.ToffsetArcWires2A2=W(A,15),this.entityCollection2.add(v(this.ToffsetArcWires2A2,"2A2跳线1"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),E.push(this.ToffsetWires2A2[n-7]),E.push(this.ToffsetWires2A2[n-3]),this.ToffsetArcWires2A2=W(E,15),this.entityCollection2.add(v(this.ToffsetArcWires2A2,"2A2跳线2"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),b.push(this.ToffsetWires2A2[n-6]),b.push(this.ToffsetWires2A2[n-2]),this.ToffsetArcWires2A2=W(b,15),this.entityCollection2.add(v(this.ToffsetArcWires2A2,"2A2跳线3"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),D.push(this.ToffsetWires2A2[n-5]),D.push(this.ToffsetWires2A2[n-1]),this.ToffsetArcWires2A2=W(D,15),this.entityCollection2.add(v(this.ToffsetArcWires2A2,"2A2跳线4"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)));break;case $.六分裂:this.ToffsetWires2A1.length>=12&&(c.push(this.ToffsetWires2A1[n-12]),c.push(this.ToffsetWires2A1[n-6]),this.ToffsetArcWires1A2=W(c,15),this.entityCollection2.add(v(this.ToffsetArcWires1A2,"2A1跳线1"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),h.push(this.ToffsetWires2A1[n-11]),h.push(this.ToffsetWires2A1[n-5]),this.ToffsetArcWires1A2=W(h,15),this.entityCollection2.add(v(this.ToffsetArcWires1A2,"2A1跳线2"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),d.push(this.ToffsetWires2A1[n-10]),d.push(this.ToffsetWires2A1[n-4]),this.ToffsetArcWires1A2=W(d,15),this.entityCollection2.add(v(this.ToffsetArcWires1A2,"2A1跳线3"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),p.push(this.ToffsetWires2A1[n-9]),p.push(this.ToffsetWires2A1[n-3]),this.ToffsetArcWires1A2=W(p,15),this.entityCollection2.add(v(this.ToffsetArcWires1A2,"2A1跳线4"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),m.push(this.ToffsetWires2A1[n-8]),m.push(this.ToffsetWires2A1[n-2]),this.ToffsetArcWires1A2=W(m,15),this.entityCollection2.add(v(this.ToffsetArcWires1A2,"2A1跳线5"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),T.push(this.ToffsetWires2A1[n-7]),T.push(this.ToffsetWires2A1[n-1]),this.ToffsetArcWires1A2=W(T,15),this.entityCollection2.add(v(this.ToffsetArcWires1A2,"2A1跳线6"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor))),this.ToffsetWires2A2.length>=12&&(A.push(this.ToffsetWires2A2[n-12]),A.push(this.ToffsetWires2A2[n-6]),this.ToffsetArcWires2A2=W(A,15),this.entityCollection2.add(v(this.ToffsetArcWires2A2,"2A2跳线1"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),E.push(this.ToffsetWires2A2[n-11]),E.push(this.ToffsetWires2A2[n-5]),this.ToffsetArcWires2A2=W(E,15),this.entityCollection2.add(v(this.ToffsetArcWires2A2,"2A2跳线2"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),b.push(this.ToffsetWires2A2[n-10]),b.push(this.ToffsetWires2A2[n-4]),this.ToffsetArcWires2A2=W(b,15),this.entityCollection2.add(v(this.ToffsetArcWires2A2,"2A2跳线3"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),D.push(this.ToffsetWires2A2[n-9]),D.push(this.ToffsetWires2A2[n-3]),this.ToffsetArcWires2A2=W(D,15),this.entityCollection2.add(v(this.ToffsetArcWires2A2,"2A2跳线4"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),O.push(this.ToffsetWires2A2[n-8]),O.push(this.ToffsetWires2A2[n-2]),this.ToffsetArcWires2A2=W(O,15),this.entityCollection2.add(v(this.ToffsetArcWires2A2,"2A2跳线5"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),B.push(this.ToffsetWires2A2[n-7]),B.push(this.ToffsetWires2A2[n-1]),this.ToffsetArcWires2A2=W(B,15),this.entityCollection2.add(v(this.ToffsetArcWires2A2,"2A2跳线6"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)));break;case $.八分裂:this.ToffsetWires2A1.length>=16&&(c.push(this.ToffsetWires2A1[n-16]),c.push(this.ToffsetWires2A1[n-8]),this.ToffsetArcWires1A2=W(c,15),this.entityCollection2.add(v(this.ToffsetArcWires1A2,"2A1跳线1"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),h.push(this.ToffsetWires2A1[n-15]),h.push(this.ToffsetWires2A1[n-7]),this.ToffsetArcWires1A2=W(h,15),this.entityCollection2.add(v(this.ToffsetArcWires1A2,"2A1跳线2"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),d.push(this.ToffsetWires2A1[n-14]),d.push(this.ToffsetWires2A1[n-6]),this.ToffsetArcWires1A2=W(d,15),this.entityCollection2.add(v(this.ToffsetArcWires1A2,"2A1跳线3"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),p.push(this.ToffsetWires2A1[n-13]),p.push(this.ToffsetWires2A1[n-5]),this.ToffsetArcWires1A2=W(p,15),this.entityCollection2.add(v(this.ToffsetArcWires1A2,"2A1跳线4"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),m.push(this.ToffsetWires2A1[n-12]),m.push(this.ToffsetWires2A1[n-4]),this.ToffsetArcWires1A2=W(m,15),this.entityCollection2.add(v(this.ToffsetArcWires1A2,"2A1跳线5"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),T.push(this.ToffsetWires2A1[n-11]),T.push(this.ToffsetWires2A1[n-3]),this.ToffsetArcWires1A2=W(T,15),this.entityCollection2.add(v(this.ToffsetArcWires1A2,"2A1跳线6"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),y.push(this.ToffsetWires2A1[n-10]),y.push(this.ToffsetWires2A1[n-2]),this.ToffsetArcWires1A2=W(y,15),this.entityCollection2.add(v(this.ToffsetArcWires1A2,"2A1跳线7"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),w.push(this.ToffsetWires2A1[n-9]),w.push(this.ToffsetWires2A1[n-1]),this.ToffsetArcWires1A2=W(w,15),this.entityCollection2.add(v(this.ToffsetArcWires1A2,"2A1跳线8"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor))),this.ToffsetWires2A2.length>=16&&(A.push(this.ToffsetWires2A2[n-16]),A.push(this.ToffsetWires2A2[n-8]),this.ToffsetArcWires2A2=W(A,15),this.entityCollection2.add(v(this.ToffsetArcWires2A2,"2A2跳线1"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),E.push(this.ToffsetWires2A2[n-15]),E.push(this.ToffsetWires2A2[n-7]),this.ToffsetArcWires2A2=W(E,15),this.entityCollection2.add(v(this.ToffsetArcWires2A2,"2A2跳线2"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),b.push(this.ToffsetWires2A2[n-14]),b.push(this.ToffsetWires2A2[n-6]),this.ToffsetArcWires2A2=W(b,15),this.entityCollection2.add(v(this.ToffsetArcWires2A2,"2A2跳线3"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),D.push(this.ToffsetWires2A2[n-13]),D.push(this.ToffsetWires2A2[n-5]),this.ToffsetArcWires2A2=W(D,15),this.entityCollection2.add(v(this.ToffsetArcWires2A2,"2A2跳线4"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),O.push(this.ToffsetWires2A2[n-12]),O.push(this.ToffsetWires2A2[n-4]),this.ToffsetArcWires2A2=W(O,15),this.entityCollection2.add(v(this.ToffsetArcWires2A2,"2A2跳线5"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),B.push(this.ToffsetWires2A2[n-11]),B.push(this.ToffsetWires2A2[n-3]),this.ToffsetArcWires2A2=W(B,15),this.entityCollection2.add(v(this.ToffsetArcWires2A2,"2A2跳线6"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),L.push(this.ToffsetWires2A2[n-10]),L.push(this.ToffsetWires2A2[n-2]),this.ToffsetArcWires2A2=W(L,15),this.entityCollection2.add(v(this.ToffsetArcWires2A2,"2A2跳线7"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),F.push(this.ToffsetWires2A2[n-9]),F.push(this.ToffsetWires2A2[n-1]),this.ToffsetArcWires2A2=W(F,15),this.entityCollection2.add(v(this.ToffsetArcWires2A2,"2A2跳线8"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)));break}}if(this.ToffsetWires2B1.length>1&&this.ToffsetWires2B2.length>1){const c=[],h=[],d=[],p=[],m=[],T=[],y=[],w=[],A=[],E=[],b=[],D=[],O=[],B=[],L=[],F=[];switch(this.LineInfo.Wairnum){case $.单分裂:this.ToffsetWires2B1.length>=2&&(c.push(this.ToffsetWires2B1[n-2]),c.push(this.ToffsetWires2B1[n-1]),this.ToffsetArcWires1B2=W(c,15),this.entityCollection2.add(v(this.ToffsetArcWires1B2,"2B1跳线1"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor))),this.ToffsetWires2B2.length>=2&&(A.push(this.ToffsetWires2B2[n-2]),A.push(this.ToffsetWires2B2[n-1]),this.ToffsetArcWires2B2=W(A,15),this.entityCollection2.add(v(this.ToffsetArcWires2B2,"2B2跳线1"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)));break;case $.双分裂:this.ToffsetWires2B1.length>=4&&(c.push(this.ToffsetWires2B1[n-4]),c.push(this.ToffsetWires2B1[n-2]),this.ToffsetArcWires1B2=W(c,15),this.entityCollection2.add(v(this.ToffsetArcWires1B2,"2B1跳线1"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),h.push(this.ToffsetWires2B1[n-3]),h.push(this.ToffsetWires2B1[n-1]),this.ToffsetArcWires1B2=W(h,15),this.entityCollection2.add(v(this.ToffsetArcWires1B2,"2B1跳线2"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor))),this.ToffsetWires2B2.length>=4&&(A.push(this.ToffsetWires2B2[n-4]),A.push(this.ToffsetWires2B2[n-2]),this.ToffsetArcWires2B2=W(A,15),this.entityCollection2.add(v(this.ToffsetArcWires2B2,"2B2跳线1"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),E.push(this.ToffsetWires2B2[n-3]),E.push(this.ToffsetWires2B2[n-1]),this.ToffsetArcWires2B2=W(E,15),this.entityCollection2.add(v(this.ToffsetArcWires2B2,"2B2跳线2"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)));break;case $.四分裂:this.ToffsetWires2B1.length>=8&&(c.push(this.ToffsetWires2B1[n-8]),c.push(this.ToffsetWires2B1[n-4]),this.ToffsetArcWires1B2=W(c,15),this.entityCollection2.add(v(this.ToffsetArcWires1B2,"2B1跳线1"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),h.push(this.ToffsetWires2B1[n-7]),h.push(this.ToffsetWires2B1[n-3]),this.ToffsetArcWires1B2=W(h,15),this.entityCollection2.add(v(this.ToffsetArcWires1B2,"2B1跳线2"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),d.push(this.ToffsetWires2B1[n-6]),d.push(this.ToffsetWires2B1[n-2]),this.ToffsetArcWires1B2=W(d,15),this.entityCollection2.add(v(this.ToffsetArcWires1B2,"2B1跳线3"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),p.push(this.ToffsetWires2B1[n-5]),p.push(this.ToffsetWires2B1[n-1]),this.ToffsetArcWires1B2=W(p,15),this.entityCollection2.add(v(this.ToffsetArcWires1B2,"2B1跳线4"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor))),this.ToffsetWires2B2.length>=8&&(A.push(this.ToffsetWires2B2[n-8]),A.push(this.ToffsetWires2B2[n-4]),this.ToffsetArcWires2B2=W(A,15),this.entityCollection2.add(v(this.ToffsetArcWires2B2,"2B2跳线1"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),E.push(this.ToffsetWires2B2[n-7]),E.push(this.ToffsetWires2B2[n-3]),this.ToffsetArcWires2B2=W(E,15),this.entityCollection2.add(v(this.ToffsetArcWires2B2,"2B2跳线2"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),b.push(this.ToffsetWires2B2[n-6]),b.push(this.ToffsetWires2B2[n-2]),this.ToffsetArcWires2B2=W(b,15),this.entityCollection2.add(v(this.ToffsetArcWires2B2,"2B2跳线3"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),D.push(this.ToffsetWires2B2[n-5]),D.push(this.ToffsetWires2B2[n-1]),this.ToffsetArcWires2B2=W(D,15),this.entityCollection2.add(v(this.ToffsetArcWires2B2,"2B2跳线4"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)));break;case $.六分裂:this.ToffsetWires2B1.length>=12&&(c.push(this.ToffsetWires2B1[n-12]),c.push(this.ToffsetWires2B1[n-6]),this.ToffsetArcWires1B2=W(c,15),this.entityCollection2.add(v(this.ToffsetArcWires1B2,"2B1跳线1"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),h.push(this.ToffsetWires2B1[n-11]),h.push(this.ToffsetWires2B1[n-5]),this.ToffsetArcWires1B2=W(h,15),this.entityCollection2.add(v(this.ToffsetArcWires1B2,"2B1跳线2"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),d.push(this.ToffsetWires2B1[n-10]),d.push(this.ToffsetWires2B1[n-4]),this.ToffsetArcWires1B2=W(d,15),this.entityCollection2.add(v(this.ToffsetArcWires1B2,"2B1跳线3"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),p.push(this.ToffsetWires2B1[n-9]),p.push(this.ToffsetWires2B1[n-3]),this.ToffsetArcWires1B2=W(p,15),this.entityCollection2.add(v(this.ToffsetArcWires1B2,"2B1跳线4"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),m.push(this.ToffsetWires2B1[n-8]),m.push(this.ToffsetWires2B1[n-2]),this.ToffsetArcWires1B2=W(m,15),this.entityCollection2.add(v(this.ToffsetArcWires1B2,"2B1跳线5"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),T.push(this.ToffsetWires2B1[n-7]),T.push(this.ToffsetWires2B1[n-1]),this.ToffsetArcWires1B2=W(T,15),this.entityCollection2.add(v(this.ToffsetArcWires1B2,"2B1跳线6"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor))),this.ToffsetWires2B2.length>=12&&(A.push(this.ToffsetWires2B2[n-12]),A.push(this.ToffsetWires2B2[n-6]),this.ToffsetArcWires2B2=W(A,15),this.entityCollection2.add(v(this.ToffsetArcWires2B2,"2B2跳线1"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),E.push(this.ToffsetWires2B2[n-11]),E.push(this.ToffsetWires2B2[n-5]),this.ToffsetArcWires2B2=W(E,15),this.entityCollection2.add(v(this.ToffsetArcWires2B2,"2B2跳线2"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),b.push(this.ToffsetWires2B2[n-10]),b.push(this.ToffsetWires2B2[n-4]),this.ToffsetArcWires2B2=W(b,15),this.entityCollection2.add(v(this.ToffsetArcWires2B2,"2B2跳线3"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),D.push(this.ToffsetWires2B2[n-9]),D.push(this.ToffsetWires2B2[n-3]),this.ToffsetArcWires2B2=W(D,15),this.entityCollection2.add(v(this.ToffsetArcWires2B2,"2B2跳线4"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),O.push(this.ToffsetWires2B2[n-8]),O.push(this.ToffsetWires2B2[n-2]),this.ToffsetArcWires2B2=W(O,15),this.entityCollection2.add(v(this.ToffsetArcWires2B2,"2B2跳线5"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),B.push(this.ToffsetWires2B2[n-7]),B.push(this.ToffsetWires2B2[n-1]),this.ToffsetArcWires2B2=W(B,15),this.entityCollection2.add(v(this.ToffsetArcWires2B2,"2B2跳线6"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)));break;case $.八分裂:this.ToffsetWires2B1.length>=16&&(c.push(this.ToffsetWires2B1[n-16]),c.push(this.ToffsetWires2B1[n-8]),this.ToffsetArcWires1B2=W(c,15),this.entityCollection2.add(v(this.ToffsetArcWires1B2,"2B1跳线1"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),h.push(this.ToffsetWires2B1[n-15]),h.push(this.ToffsetWires2B1[n-7]),this.ToffsetArcWires1B2=W(h,15),this.entityCollection2.add(v(this.ToffsetArcWires1B2,"2B1跳线2"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),d.push(this.ToffsetWires2B1[n-14]),d.push(this.ToffsetWires2B1[n-6]),this.ToffsetArcWires1B2=W(d,15),this.entityCollection2.add(v(this.ToffsetArcWires1B2,"2B1跳线3"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),p.push(this.ToffsetWires2B1[n-13]),p.push(this.ToffsetWires2B1[n-5]),this.ToffsetArcWires1B2=W(p,15),this.entityCollection2.add(v(this.ToffsetArcWires1B2,"2B1跳线4"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),m.push(this.ToffsetWires2B1[n-12]),m.push(this.ToffsetWires2B1[n-4]),this.ToffsetArcWires1B2=W(m,15),this.entityCollection2.add(v(this.ToffsetArcWires1B2,"2B1跳线5"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),T.push(this.ToffsetWires2B1[n-11]),T.push(this.ToffsetWires2B1[n-3]),this.ToffsetArcWires1B2=W(T,15),this.entityCollection2.add(v(this.ToffsetArcWires1B2,"2B1跳线6"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),y.push(this.ToffsetWires2B1[n-10]),y.push(this.ToffsetWires2B1[n-2]),this.ToffsetArcWires1B2=W(y,15),this.entityCollection2.add(v(this.ToffsetArcWires1B2,"2B1跳线7"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),w.push(this.ToffsetWires2B1[n-9]),w.push(this.ToffsetWires2B1[n-1]),this.ToffsetArcWires1B2=W(w,15),this.entityCollection2.add(v(this.ToffsetArcWires1B2,"2B1跳线8"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor))),this.ToffsetWires2B2.length>=16&&(A.push(this.ToffsetWires2B2[n-16]),A.push(this.ToffsetWires2B2[n-8]),this.ToffsetArcWires2B2=W(A,15),this.entityCollection2.add(v(this.ToffsetArcWires2B2,"2B2跳线1"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),E.push(this.ToffsetWires2B2[n-15]),E.push(this.ToffsetWires2B2[n-7]),this.ToffsetArcWires2B2=W(E,15),this.entityCollection2.add(v(this.ToffsetArcWires2B2,"2B2跳线2"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),b.push(this.ToffsetWires2B2[n-14]),b.push(this.ToffsetWires2B2[n-6]),this.ToffsetArcWires2B2=W(b,15),this.entityCollection2.add(v(this.ToffsetArcWires2B2,"2B2跳线3"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),D.push(this.ToffsetWires2B2[n-13]),D.push(this.ToffsetWires2B2[n-5]),this.ToffsetArcWires2B2=W(D,15),this.entityCollection2.add(v(this.ToffsetArcWires2B2,"2B2跳线4"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),O.push(this.ToffsetWires2B2[n-12]),O.push(this.ToffsetWires2B2[n-4]),this.ToffsetArcWires2B2=W(O,15),this.entityCollection2.add(v(this.ToffsetArcWires2B2,"2B2跳线5"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),B.push(this.ToffsetWires2B2[n-11]),B.push(this.ToffsetWires2B2[n-3]),this.ToffsetArcWires2B2=W(B,15),this.entityCollection2.add(v(this.ToffsetArcWires2B2,"2B2跳线6"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),L.push(this.ToffsetWires2B2[n-10]),L.push(this.ToffsetWires2B2[n-2]),this.ToffsetArcWires2B2=W(L,15),this.entityCollection2.add(v(this.ToffsetArcWires2B2,"2B2跳线7"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),F.push(this.ToffsetWires2B2[n-9]),F.push(this.ToffsetWires2B2[n-1]),this.ToffsetArcWires2B2=W(F,15),this.entityCollection2.add(v(this.ToffsetArcWires2B2,"2B2跳线8"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)));break}}if(this.ToffsetWires2C1.length>1&&this.ToffsetWires2C2.length>1){const c=[],h=[],d=[],p=[],m=[],T=[],y=[],w=[],A=[],E=[],b=[],D=[],O=[],B=[],L=[],F=[];switch(this.LineInfo.Wairnum){case $.单分裂:this.ToffsetWires2C1.length>=2&&(c.push(this.ToffsetWires2C1[n-2]),c.push(this.ToffsetWires2C1[n-1]),this.ToffsetArcWires1C2=W(c,15),this.entityCollection2.add(v(this.ToffsetArcWires1C2,"2C1跳线1"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor))),this.ToffsetWires2C2.length>=2&&(A.push(this.ToffsetWires2C2[n-2]),A.push(this.ToffsetWires2C2[n-1]),this.ToffsetArcWires2C2=W(A,15),this.entityCollection2.add(v(this.ToffsetArcWires2C2,"2C2跳线1"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)));break;case $.双分裂:this.ToffsetWires2C1.length>=4&&(c.push(this.ToffsetWires2C1[n-4]),c.push(this.ToffsetWires2C1[n-2]),this.ToffsetArcWires1C2=W(c,15),this.entityCollection2.add(v(this.ToffsetArcWires1C2,"2C1跳线1"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),h.push(this.ToffsetWires2C1[n-3]),h.push(this.ToffsetWires2C1[n-1]),this.ToffsetArcWires1C2=W(h,15),this.entityCollection2.add(v(this.ToffsetArcWires1C2,"2C1跳线2"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor))),this.ToffsetWires2C2.length>=4&&(A.push(this.ToffsetWires2C2[n-4]),A.push(this.ToffsetWires2C2[n-2]),this.ToffsetArcWires2C2=W(A,15),this.entityCollection2.add(v(this.ToffsetArcWires2C2,"2C2跳线1"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),E.push(this.ToffsetWires2C2[n-3]),E.push(this.ToffsetWires2C2[n-1]),this.ToffsetArcWires2C2=W(E,15),this.entityCollection2.add(v(this.ToffsetArcWires2C2,"2C2跳线2"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)));break;case $.四分裂:this.ToffsetWires2C1.length>=8&&(c.push(this.ToffsetWires2C1[n-8]),c.push(this.ToffsetWires2C1[n-4]),this.ToffsetArcWires1C2=W(c,15),this.entityCollection2.add(v(this.ToffsetArcWires1C2,"2C1跳线1"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),h.push(this.ToffsetWires2C1[n-7]),h.push(this.ToffsetWires2C1[n-3]),this.ToffsetArcWires1C2=W(h,15),this.entityCollection2.add(v(this.ToffsetArcWires1C2,"2C1跳线2"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),d.push(this.ToffsetWires2C1[n-6]),d.push(this.ToffsetWires2C1[n-2]),this.ToffsetArcWires1C2=W(d,15),this.entityCollection2.add(v(this.ToffsetArcWires1C2,"2C1跳线3"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),p.push(this.ToffsetWires2C1[n-5]),p.push(this.ToffsetWires2C1[n-1]),this.ToffsetArcWires1C2=W(p,15),this.entityCollection2.add(v(this.ToffsetArcWires1C2,"2C1跳线4"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor))),this.ToffsetWires2C2.length>=8&&(A.push(this.ToffsetWires2C2[n-8]),A.push(this.ToffsetWires2C2[n-4]),this.ToffsetArcWires2C2=W(A,15),this.entityCollection2.add(v(this.ToffsetArcWires2C2,"2C2跳线1"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),E.push(this.ToffsetWires2C2[n-7]),E.push(this.ToffsetWires2C2[n-3]),this.ToffsetArcWires2C2=W(E,15),this.entityCollection2.add(v(this.ToffsetArcWires2C2,"2C2跳线2"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),b.push(this.ToffsetWires2C2[n-6]),b.push(this.ToffsetWires2C2[n-2]),this.ToffsetArcWires2C2=W(b,15),this.entityCollection2.add(v(this.ToffsetArcWires2C2,"2C2跳线3"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),D.push(this.ToffsetWires2C2[n-5]),D.push(this.ToffsetWires2C2[n-1]),this.ToffsetArcWires2C2=W(D,15),this.entityCollection2.add(v(this.ToffsetArcWires2C2,"2C2跳线4"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)));break;case $.六分裂:this.ToffsetWires2C1.length>=12&&(c.push(this.ToffsetWires2C1[n-12]),c.push(this.ToffsetWires2C1[n-6]),this.ToffsetArcWires1C2=W(c,15),this.entityCollection2.add(v(this.ToffsetArcWires1C2,"2C1跳线1"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),h.push(this.ToffsetWires2C1[n-11]),h.push(this.ToffsetWires2C1[n-5]),this.ToffsetArcWires1C2=W(h,15),this.entityCollection2.add(v(this.ToffsetArcWires1C2,"2C1跳线2"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),d.push(this.ToffsetWires2C1[n-10]),d.push(this.ToffsetWires2C1[n-4]),this.ToffsetArcWires1C2=W(d,15),this.entityCollection2.add(v(this.ToffsetArcWires1C2,"2C1跳线3"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),p.push(this.ToffsetWires2C1[n-9]),p.push(this.ToffsetWires2C1[n-3]),this.ToffsetArcWires1C2=W(p,15),this.entityCollection2.add(v(this.ToffsetArcWires1C2,"2C1跳线4"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),m.push(this.ToffsetWires2C1[n-8]),m.push(this.ToffsetWires2C1[n-2]),this.ToffsetArcWires1C2=W(m,15),this.entityCollection2.add(v(this.ToffsetArcWires1C2,"2C1跳线5"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),T.push(this.ToffsetWires2C1[n-7]),T.push(this.ToffsetWires2C1[n-1]),this.ToffsetArcWires1C2=W(T,15),this.entityCollection2.add(v(this.ToffsetArcWires1C2,"2C1跳线6"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor))),this.ToffsetWires2C2.length>=12&&(A.push(this.ToffsetWires2C2[n-12]),A.push(this.ToffsetWires2C2[n-6]),this.ToffsetArcWires2C2=W(A,15),this.entityCollection2.add(v(this.ToffsetArcWires2C2,"2C2跳线1"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),E.push(this.ToffsetWires2C2[n-11]),E.push(this.ToffsetWires2C2[n-5]),this.ToffsetArcWires2C2=W(E,15),this.entityCollection2.add(v(this.ToffsetArcWires2C2,"2C2跳线2"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),b.push(this.ToffsetWires2C2[n-10]),b.push(this.ToffsetWires2C2[n-4]),this.ToffsetArcWires2C2=W(b,15),this.entityCollection2.add(v(this.ToffsetArcWires2C2,"2C2跳线3"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),D.push(this.ToffsetWires2C2[n-9]),D.push(this.ToffsetWires2C2[n-3]),this.ToffsetArcWires2C2=W(D,15),this.entityCollection2.add(v(this.ToffsetArcWires2C2,"2C2跳线4"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),O.push(this.ToffsetWires2C2[n-8]),O.push(this.ToffsetWires2C2[n-2]),this.ToffsetArcWires2C2=W(O,15),this.entityCollection2.add(v(this.ToffsetArcWires2C2,"2C2跳线5"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),B.push(this.ToffsetWires2C2[n-7]),B.push(this.ToffsetWires2C2[n-1]),this.ToffsetArcWires2C2=W(B,15),this.entityCollection2.add(v(this.ToffsetArcWires2C2,"2C2跳线6"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)));break;case $.八分裂:this.ToffsetWires2C1.length>=16&&(c.push(this.ToffsetWires2C1[n-16]),c.push(this.ToffsetWires2C1[n-8]),this.ToffsetArcWires1C2=W(c,15),this.entityCollection2.add(v(this.ToffsetArcWires1C2,"2C1跳线1"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),h.push(this.ToffsetWires2C1[n-15]),h.push(this.ToffsetWires2C1[n-7]),this.ToffsetArcWires1C2=W(h,15),this.entityCollection2.add(v(this.ToffsetArcWires1C2,"2C1跳线2"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),d.push(this.ToffsetWires2C1[n-14]),d.push(this.ToffsetWires2C1[n-6]),this.ToffsetArcWires1C2=W(d,15),this.entityCollection2.add(v(this.ToffsetArcWires1C2,"2C1跳线3"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),p.push(this.ToffsetWires2C1[n-13]),p.push(this.ToffsetWires2C1[n-5]),this.ToffsetArcWires1C2=W(p,15),this.entityCollection2.add(v(this.ToffsetArcWires1C2,"2C1跳线4"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),m.push(this.ToffsetWires2C1[n-12]),m.push(this.ToffsetWires2C1[n-4]),this.ToffsetArcWires1C2=W(m,15),this.entityCollection2.add(v(this.ToffsetArcWires1C2,"2C1跳线5"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),T.push(this.ToffsetWires2C1[n-11]),T.push(this.ToffsetWires2C1[n-3]),this.ToffsetArcWires1C2=W(T,15),this.entityCollection2.add(v(this.ToffsetArcWires1C2,"2C1跳线6"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),y.push(this.ToffsetWires2C1[n-10]),y.push(this.ToffsetWires2C1[n-2]),this.ToffsetArcWires1C2=W(y,15),this.entityCollection2.add(v(this.ToffsetArcWires1C2,"2C1跳线7"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),w.push(this.ToffsetWires2C1[n-9]),w.push(this.ToffsetWires2C1[n-1]),this.ToffsetArcWires1C2=W(w,15),this.entityCollection2.add(v(this.ToffsetArcWires1C2,"2C1跳线8"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor))),this.ToffsetWires2C2.length>=16&&(A.push(this.ToffsetWires2C2[n-16]),A.push(this.ToffsetWires2C2[n-8]),this.ToffsetArcWires2C2=W(A,15),this.entityCollection2.add(v(this.ToffsetArcWires2C2,"2C2跳线1"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),E.push(this.ToffsetWires2C2[n-15]),E.push(this.ToffsetWires2C2[n-7]),this.ToffsetArcWires2C2=W(E,15),this.entityCollection2.add(v(this.ToffsetArcWires2C2,"2C2跳线2"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),b.push(this.ToffsetWires2C2[n-14]),b.push(this.ToffsetWires2C2[n-6]),this.ToffsetArcWires2C2=W(b,15),this.entityCollection2.add(v(this.ToffsetArcWires2C2,"2C2跳线3"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),D.push(this.ToffsetWires2C2[n-13]),D.push(this.ToffsetWires2C2[n-5]),this.ToffsetArcWires2C2=W(D,15),this.entityCollection2.add(v(this.ToffsetArcWires2C2,"2C2跳线4"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),O.push(this.ToffsetWires2C2[n-12]),O.push(this.ToffsetWires2C2[n-4]),this.ToffsetArcWires2C2=W(O,15),this.entityCollection2.add(v(this.ToffsetArcWires2C2,"2C2跳线5"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),B.push(this.ToffsetWires2C2[n-11]),B.push(this.ToffsetWires2C2[n-3]),this.ToffsetArcWires2C2=W(B,15),this.entityCollection2.add(v(this.ToffsetArcWires2C2,"2C2跳线6"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),L.push(this.ToffsetWires2C2[n-10]),L.push(this.ToffsetWires2C2[n-2]),this.ToffsetArcWires2C2=W(L,15),this.entityCollection2.add(v(this.ToffsetArcWires2C2,"2C2跳线7"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),F.push(this.ToffsetWires2C2[n-9]),F.push(this.ToffsetWires2C2[n-1]),this.ToffsetArcWires2C2=W(F,15),this.entityCollection2.add(v(this.ToffsetArcWires2C2,"2C2跳线8"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)));break}}}else switch(this.LineInfo.Wairnum){case $.单分裂:t=t+1;break;case $.双分裂:t=t+2;break;case $.四分裂:t=t+4;break;case $.六分裂:t=t+6;break;case $.八分裂:t=t+8;break}})}loadLineModel(){this.Keym=="OW_JPS_EEngin_001"&&(this.viewer.dataSources.add(this.dataSource2),this.viewer.entities.show)}LineSpriteLineinit(){ne._materialCache.addMaterial("SpriteLineMaterialType",{fabric:{type:"SpriteLineMaterialType",uniforms:{color:new I(1,1,0,1),speed:2},source:`
6584
+ `,px=Re.SHOW_INDEX,sf=Re.POSITION_INDEX,m0=Re.COLOR_INDEX,mx=Re.OUTLINE_COLOR_INDEX,_x=Re.OUTLINE_WIDTH_INDEX,gx=Re.PIXEL_SIZE_INDEX,_0=Re.SCALE_BY_DISTANCE_INDEX,g0=Re.TRANSLUCENCY_BY_DISTANCE_INDEX,T0=Re.DISTANCE_DISPLAY_CONDITION_INDEX,Tx=Re.DISABLE_DEPTH_DISTANCE_INDEX,yx=Re.SPLIT_DIRECTION_INDEX,rf=Re.NUMBER_OF_PROPERTIES,tn={positionHighAndSize:0,positionLowAndOutline:1,compressedAttribute0:2,compressedAttribute1:3,scaleByDistance:4,distanceDisplayConditionAndDisableDepthAndSplitDirection:5};function An(e){e=g(e,g.EMPTY_OBJECT),this._sp=void 0,this._spTranslucent=void 0,this._rsOpaque=void 0,this._rsTranslucent=void 0,this._vaf=void 0,this._pointPrimitives=[],this._pointPrimitivesToUpdate=[],this._pointPrimitivesToUpdateIndex=0,this._pointPrimitivesRemoved=!1,this._createVertexArray=!1,this._shaderScaleByDistance=!1,this._compiledShaderScaleByDistance=!1,this._shaderTranslucencyByDistance=!1,this._compiledShaderTranslucencyByDistance=!1,this._shaderDistanceDisplayCondition=!1,this._compiledShaderDistanceDisplayCondition=!1,this._shaderDisableDepthDistance=!1,this._compiledShaderDisableDepthDistance=!1,this._propertiesChanged=new Uint32Array(rf),this._maxPixelSize=1,this._baseVolume=new te,this._baseVolumeWC=new te,this._baseVolume2D=new te,this._boundingVolume=new te,this._boundingVolumeDirty=!1,this._colorCommands=[],this.show=g(e.show,!0),this.modelMatrix=k.clone(g(e.modelMatrix,k.IDENTITY)),this._modelMatrix=k.clone(k.IDENTITY),this.debugShowBoundingVolume=g(e.debugShowBoundingVolume,!1),this.blendOption=g(e.blendOption,_t.OPAQUE_AND_TRANSLUCENT),this._blendOption=void 0,this._mode=ye.SCENE3D,this._maxTotalPointSize=1,this._buffersUsage=[We.STATIC_DRAW,We.STATIC_DRAW,We.STATIC_DRAW,We.STATIC_DRAW,We.STATIC_DRAW,We.STATIC_DRAW,We.STATIC_DRAW,We.STATIC_DRAW,We.STATIC_DRAW];const t=this;this._uniforms={u_maxTotalPointSize:function(){return t._maxTotalPointSize}}}Object.defineProperties(An.prototype,{length:{get:function(){return af(this),this._pointPrimitives.length}}});function y0(e){const t=e.length;for(let n=0;n<t;++n)e[n]&&e[n]._destroy()}An.prototype.add=function(e){const t=new Re(e,this);return t._index=this._pointPrimitives.length,this._pointPrimitives.push(t),this._createVertexArray=!0,t},An.prototype.remove=function(e){return this.contains(e)?(this._pointPrimitives[e._index]=null,this._pointPrimitivesRemoved=!0,this._createVertexArray=!0,e._destroy(),!0):!1},An.prototype.removeAll=function(){y0(this._pointPrimitives),this._pointPrimitives=[],this._pointPrimitivesToUpdate=[],this._pointPrimitivesToUpdateIndex=0,this._pointPrimitivesRemoved=!1,this._createVertexArray=!0};function af(e){if(e._pointPrimitivesRemoved){e._pointPrimitivesRemoved=!1;const t=[],n=e._pointPrimitives,i=n.length;for(let o=0,a=0;o<i;++o){const r=n[o];r&&(r._index=a++,t.push(r))}e._pointPrimitives=t}}An.prototype._updatePointPrimitive=function(e,t){e._dirty||(this._pointPrimitivesToUpdate[this._pointPrimitivesToUpdateIndex++]=e),++this._propertiesChanged[t]},An.prototype.contains=function(e){return l(e)&&e._pointPrimitiveCollection===this},An.prototype.get=function(e){if(!l(e))throw new C("index is required.");return af(this),this._pointPrimitives[e]},An.prototype.computeNewBuffersUsage=function(){const e=this._buffersUsage;let t=!1;const n=this._propertiesChanged;for(let i=0;i<rf;++i){const o=n[i]===0?We.STATIC_DRAW:We.STREAM_DRAW;t=t||e[i]!==o,e[i]=o}return t};function Cx(e,t,n){return new Dt(e,[{index:tn.positionHighAndSize,componentsPerAttribute:4,componentDatatype:he.FLOAT,usage:n[sf]},{index:tn.positionLowAndShow,componentsPerAttribute:4,componentDatatype:he.FLOAT,usage:n[sf]},{index:tn.compressedAttribute0,componentsPerAttribute:4,componentDatatype:he.FLOAT,usage:n[m0]},{index:tn.compressedAttribute1,componentsPerAttribute:4,componentDatatype:he.FLOAT,usage:n[g0]},{index:tn.scaleByDistance,componentsPerAttribute:4,componentDatatype:he.FLOAT,usage:n[_0]},{index:tn.distanceDisplayConditionAndDisableDepthAndSplitDirection,componentsPerAttribute:4,componentDatatype:he.FLOAT,usage:n[T0]}],t)}const cf=new Qe;function C0(e,t,n,i){const o=i._index,a=i._getActualPosition();e._mode===ye.SCENE3D&&(te.expand(e._baseVolume,a,e._baseVolume),e._boundingVolumeDirty=!0),Qe.fromCartesian(a,cf);const r=i.pixelSize,f=i.outlineWidth;e._maxPixelSize=Math.max(e._maxPixelSize,r+f);const c=n[tn.positionHighAndSize],h=cf.high;c(o,h.x,h.y,h.z,r);const d=n[tn.positionLowAndOutline],p=cf.low;d(o,p.x,p.y,p.z,f)}const Wa=65536,ir=256;function w0(e,t,n,i){const o=i._index,a=i.color,r=i.getPickId(t).color,f=i.outlineColor;let c=I.floatToByte(a.red),h=I.floatToByte(a.green),d=I.floatToByte(a.blue);const p=c*Wa+h*ir+d;c=I.floatToByte(f.red),h=I.floatToByte(f.green),d=I.floatToByte(f.blue);const m=c*Wa+h*ir+d;c=I.floatToByte(r.red),h=I.floatToByte(r.green),d=I.floatToByte(r.blue);const T=c*Wa+h*ir+d,y=I.floatToByte(a.alpha)*Wa+I.floatToByte(f.alpha)*ir+I.floatToByte(r.alpha),w=n[tn.compressedAttribute0];w(o,p,m,T,y)}function A0(e,t,n,i){const o=i._index;let a=0,r=1,f=1,c=1;const h=i.translucencyByDistance;l(h)&&(a=h.near,r=h.nearValue,f=h.far,c=h.farValue,(r!==1||c!==1)&&(e._shaderTranslucencyByDistance=!0));let d=i.show&&i.clusterShow;i.color.alpha===0&&i.outlineColor.alpha===0&&(d=!1),r=S.clamp(r,0,1),r=r===1?255:r*255|0;const p=(d?1:0)*ir+r;c=S.clamp(c,0,1),c=c===1?255:c*255|0;const m=c,T=n[tn.compressedAttribute1];T(o,p,m,a,f)}function E0(e,t,n,i){const o=i._index,a=n[tn.scaleByDistance];let r=0,f=1,c=1,h=1;const d=i.scaleByDistance;l(d)&&(r=d.near,f=d.nearValue,c=d.far,h=d.farValue,(f!==1||h!==1)&&(e._shaderScaleByDistance=!0)),a(o,r,f,c,h)}function b0(e,t,n,i){const o=i._index,a=n[tn.distanceDisplayConditionAndDisableDepthAndSplitDirection];let r=0,f=Number.MAX_VALUE;const c=i.distanceDisplayCondition;l(c)&&(r=c.near,f=c.far,r*=r,f*=f,e._shaderDistanceDisplayCondition=!0);let h=i.disableDepthTestDistance;h*=h,h>0&&(e._shaderDisableDepthDistance=!0,h===Number.POSITIVE_INFINITY&&(h=-1));let d=0;const p=i.splitDirection;l(p)&&(d=p),a(o,r,f,h,d)}function wx(e,t,n,i){C0(e,t,n,i),w0(e,t,n,i),A0(e,t,n,i),E0(e,t,n,i),b0(e,t,n,i)}function hf(e,t,n,i,o,a){let r;i.mode===ye.SCENE3D?(r=e._baseVolume,e._boundingVolumeDirty=!0):r=e._baseVolume2D;const f=[];for(let c=0;c<n;++c){const h=t[c],d=h.position,p=Re._computeActualPosition(d,i,o);l(p)&&(h._setActualPosition(p),a?f.push(p):te.expand(r,p,r))}a&&te.fromPoints(f,r)}function Ax(e,t){const n=t.mode,i=e._pointPrimitives,o=e._pointPrimitivesToUpdate,a=e._modelMatrix;e._createVertexArray||e._mode!==n||n!==ye.SCENE3D&&!k.equals(a,e.modelMatrix)?(e._mode=n,k.clone(e.modelMatrix,a),e._createVertexArray=!0,(n===ye.SCENE3D||n===ye.SCENE2D||n===ye.COLUMBUS_VIEW)&&hf(e,i,i.length,t,a,!0)):n===ye.MORPHING?hf(e,i,i.length,t,a,!0):(n===ye.SCENE2D||n===ye.COLUMBUS_VIEW)&&hf(e,o,e._pointPrimitivesToUpdateIndex,t,a,!1)}function Ex(e,t,n){const o=t.camera.getPixelSize(n,t.context.drawingBufferWidth,t.context.drawingBufferHeight)*e._maxPixelSize;n.radius+=o}const bx=[];An.prototype.update=function(e){if(af(this),!this.show)return;this._maxTotalPointSize=xe.maximumAliasedPointSize,Ax(this,e);const n=this._pointPrimitives.length,i=this._pointPrimitivesToUpdate,o=this._pointPrimitivesToUpdateIndex,a=this._propertiesChanged,r=this._createVertexArray;let f;const c=e.context,h=e.passes,d=h.pick;if(r||!d&&this.computeNewBuffersUsage()){this._createVertexArray=!1;for(let B=0;B<rf;++B)a[B]=0;if(this._vaf=this._vaf&&this._vaf.destroy(),n>0){this._vaf=Cx(c,n,this._buffersUsage),f=this._vaf.writers;for(let B=0;B<n;++B){const L=this._pointPrimitives[B];L._dirty=!1,wx(this,c,f,L)}this._vaf.commit()}this._pointPrimitivesToUpdateIndex=0}else if(o>0){const B=bx;B.length=0,(a[sf]||a[_x]||a[gx])&&B.push(C0),(a[m0]||a[mx])&&B.push(w0),(a[px]||a[g0])&&B.push(A0),a[_0]&&B.push(E0),(a[T0]||a[Tx]||a[yx])&&B.push(b0);const L=B.length;if(f=this._vaf.writers,o/n>.1){for(let F=0;F<o;++F){const N=i[F];N._dirty=!1;for(let U=0;U<L;++U)B[U](this,c,f,N)}this._vaf.commit()}else{for(let F=0;F<o;++F){const N=i[F];N._dirty=!1;for(let U=0;U<L;++U)B[U](this,c,f,N);this._vaf.subCommit(N._index,1)}this._vaf.endSubCommits()}this._pointPrimitivesToUpdateIndex=0}if(o>n*1.5&&(i.length=n),!l(this._vaf)||!l(this._vaf.va))return;this._boundingVolumeDirty&&(this._boundingVolumeDirty=!1,te.transform(this._baseVolume,this.modelMatrix,this._baseVolumeWC));let p,m=k.IDENTITY;e.mode===ye.SCENE3D?(m=this.modelMatrix,p=te.clone(this._baseVolumeWC,this._boundingVolume)):p=te.clone(this._baseVolume2D,this._boundingVolume),Ex(this,e,p);const T=this._blendOption!==this.blendOption;this._blendOption=this.blendOption,T&&(this._blendOption===_t.OPAQUE||this._blendOption===_t.OPAQUE_AND_TRANSLUCENT?this._rsOpaque=je.fromCache({depthTest:{enabled:!0,func:R.LEQUAL},depthMask:!0}):this._rsOpaque=void 0,this._blendOption===_t.TRANSLUCENT||this._blendOption===_t.OPAQUE_AND_TRANSLUCENT?this._rsTranslucent=je.fromCache({depthTest:{enabled:!0,func:R.LEQUAL},depthMask:!1,blending:ro.ALPHA_BLEND}):this._rsTranslucent=void 0),this._shaderDisableDepthDistance=this._shaderDisableDepthDistance||e.minimumDisableDepthTestDistance!==0;let y,w;(T||this._shaderScaleByDistance&&!this._compiledShaderScaleByDistance||this._shaderTranslucencyByDistance&&!this._compiledShaderTranslucencyByDistance||this._shaderDistanceDisplayCondition&&!this._compiledShaderDistanceDisplayCondition||this._shaderDisableDepthDistance!==this._compiledShaderDisableDepthDistance)&&(y=new Ae({sources:[dx]}),this._shaderScaleByDistance&&y.defines.push("EYE_DISTANCE_SCALING"),this._shaderTranslucencyByDistance&&y.defines.push("EYE_DISTANCE_TRANSLUCENCY"),this._shaderDistanceDisplayCondition&&y.defines.push("DISTANCE_DISPLAY_CONDITION"),this._shaderDisableDepthDistance&&y.defines.push("DISABLE_DEPTH_DISTANCE"),this._blendOption===_t.OPAQUE_AND_TRANSLUCENT&&(w=new Ae({defines:["OPAQUE"],sources:[va]}),this._sp=lt.replaceCache({context:c,shaderProgram:this._sp,vertexShaderSource:y,fragmentShaderSource:w,attributeLocations:tn}),w=new Ae({defines:["TRANSLUCENT"],sources:[va]}),this._spTranslucent=lt.replaceCache({context:c,shaderProgram:this._spTranslucent,vertexShaderSource:y,fragmentShaderSource:w,attributeLocations:tn})),this._blendOption===_t.OPAQUE&&(w=new Ae({sources:[va]}),this._sp=lt.replaceCache({context:c,shaderProgram:this._sp,vertexShaderSource:y,fragmentShaderSource:w,attributeLocations:tn})),this._blendOption===_t.TRANSLUCENT&&(w=new Ae({sources:[va]}),this._spTranslucent=lt.replaceCache({context:c,shaderProgram:this._spTranslucent,vertexShaderSource:y,fragmentShaderSource:w,attributeLocations:tn})),this._compiledShaderScaleByDistance=this._shaderScaleByDistance,this._compiledShaderTranslucencyByDistance=this._shaderTranslucencyByDistance,this._compiledShaderDistanceDisplayCondition=this._shaderDistanceDisplayCondition,this._compiledShaderDisableDepthDistance=this._shaderDisableDepthDistance);let A,E,b,D;const O=e.commandList;if(h.render||d){const B=this._colorCommands,L=this._blendOption===_t.OPAQUE,F=this._blendOption===_t.OPAQUE_AND_TRANSLUCENT;A=this._vaf.va,E=A.length,B.length=E;const N=F?E*2:E;for(D=0;D<N;++D){const U=L||F&&D%2===0;b=B[D],l(b)||(b=B[D]=new et),b.primitiveType=Xe.POINTS,b.pass=U||!F?Nt.OPAQUE:Nt.TRANSLUCENT,b.owner=this;const M=F?Math.floor(D/2):D;b.boundingVolume=p,b.modelMatrix=m,b.shaderProgram=U?this._sp:this._spTranslucent,b.uniformMap=this._uniforms,b.vertexArray=A[M].va,b.renderState=U?this._rsOpaque:this._rsTranslucent,b.debugShowBoundingVolume=this.debugShowBoundingVolume,b.pickId="v_pickColor",O.push(b)}}},An.prototype.isDestroyed=function(){return!1},An.prototype.destroy=function(){return this._sp=this._sp&&this._sp.destroy(),this._spTranslucent=this._spTranslucent&&this._spTranslucent.destroy(),this._spPick=this._spPick&&this._spPick.destroy(),this._vaf=this._vaf&&this._vaf.destroy(),y0(this._pointPrimitives),st(this)};const x0=[Int8Array,Uint8Array,Uint8ClampedArray,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array],ff=1,or=8;class lf{static from(t){if(!(t instanceof ArrayBuffer))throw new Error("Data must be an instance of ArrayBuffer.");const[n,i]=new Uint8Array(t,0,2);if(n!==219)throw new Error("Data does not appear to be in a KDBush format.");const o=i>>4;if(o!==ff)throw new Error(`Got v${o} data when expected v${ff}.`);const a=x0[i&15];if(!a)throw new Error("Unrecognized array type.");const[r]=new Uint16Array(t,2,1),[f]=new Uint32Array(t,4,1);return new lf(f,r,a,t)}constructor(t,n=64,i=Float64Array,o){if(isNaN(t)||t<0)throw new Error(`Unpexpected numItems value: ${t}.`);this.numItems=+t,this.nodeSize=Math.min(Math.max(+n,2),65535),this.ArrayType=i,this.IndexArrayType=t<65536?Uint16Array:Uint32Array;const a=x0.indexOf(this.ArrayType),r=t*2*this.ArrayType.BYTES_PER_ELEMENT,f=t*this.IndexArrayType.BYTES_PER_ELEMENT,c=(8-f%8)%8;if(a<0)throw new Error(`Unexpected typed array class: ${i}.`);o&&o instanceof ArrayBuffer?(this.data=o,this.ids=new this.IndexArrayType(this.data,or,t),this.coords=new this.ArrayType(this.data,or+f+c,t*2),this._pos=t*2,this._finished=!0):(this.data=new ArrayBuffer(or+r+f+c),this.ids=new this.IndexArrayType(this.data,or,t),this.coords=new this.ArrayType(this.data,or+f+c,t*2),this._pos=0,this._finished=!1,new Uint8Array(this.data,0,2).set([219,(ff<<4)+a]),new Uint16Array(this.data,2,1)[0]=n,new Uint32Array(this.data,4,1)[0]=t)}add(t,n){const i=this._pos>>1;return this.ids[i]=i,this.coords[this._pos++]=t,this.coords[this._pos++]=n,i}finish(){const t=this._pos>>1;if(t!==this.numItems)throw new Error(`Added ${t} items when expected ${this.numItems}.`);return uf(this.ids,this.coords,this.nodeSize,0,this.numItems-1,0),this._finished=!0,this}range(t,n,i,o){if(!this._finished)throw new Error("Data not yet indexed - call index.finish().");const{ids:a,coords:r,nodeSize:f}=this,c=[0,a.length-1,0],h=[];for(;c.length;){const d=c.pop()||0,p=c.pop()||0,m=c.pop()||0;if(p-m<=f){for(let A=m;A<=p;A++){const E=r[2*A],b=r[2*A+1];E>=t&&E<=i&&b>=n&&b<=o&&h.push(a[A])}continue}const T=m+p>>1,y=r[2*T],w=r[2*T+1];y>=t&&y<=i&&w>=n&&w<=o&&h.push(a[T]),(d===0?t<=y:n<=w)&&(c.push(m),c.push(T-1),c.push(1-d)),(d===0?i>=y:o>=w)&&(c.push(T+1),c.push(p),c.push(1-d))}return h}within(t,n,i){if(!this._finished)throw new Error("Data not yet indexed - call index.finish().");const{ids:o,coords:a,nodeSize:r}=this,f=[0,o.length-1,0],c=[],h=i*i;for(;f.length;){const d=f.pop()||0,p=f.pop()||0,m=f.pop()||0;if(p-m<=r){for(let A=m;A<=p;A++)I0(a[2*A],a[2*A+1],t,n)<=h&&c.push(o[A]);continue}const T=m+p>>1,y=a[2*T],w=a[2*T+1];I0(y,w,t,n)<=h&&c.push(o[T]),(d===0?t-i<=y:n-i<=w)&&(f.push(m),f.push(T-1),f.push(1-d)),(d===0?t+i>=y:n+i>=w)&&(f.push(T+1),f.push(p),f.push(1-d))}return c}}function uf(e,t,n,i,o,a){if(o-i<=n)return;const r=i+o>>1;S0(e,t,r,i,o,a),uf(e,t,n,i,r-1,1-a),uf(e,t,n,r+1,o,1-a)}function S0(e,t,n,i,o,a){for(;o>i;){if(o-i>600){const h=o-i+1,d=n-i+1,p=Math.log(h),m=.5*Math.exp(2*p/3),T=.5*Math.sqrt(p*m*(h-m)/h)*(d-h/2<0?-1:1),y=Math.max(i,Math.floor(n-d*m/h+T)),w=Math.min(o,Math.floor(n+(h-d)*m/h+T));S0(e,t,n,y,w,a)}const r=t[2*n+a];let f=i,c=o;for(sr(e,t,i,n),t[2*o+a]>r&&sr(e,t,i,o);f<c;){for(sr(e,t,f,c),f++,c--;t[2*f+a]<r;)f++;for(;t[2*c+a]>r;)c--}t[2*i+a]===r?sr(e,t,i,c):(c++,sr(e,t,c,o)),c<=n&&(i=c+1),n<=c&&(o=c-1)}}function sr(e,t,n,i){df(e,n,i),df(t,2*n,2*i),df(t,2*n+1,2*i+1)}function df(e,t,n){const i=e[t];e[t]=e[n],e[n]=i}function I0(e,t,n,i){const o=e-n,a=t-i;return o*o+a*a}function jn(e){e=g(e,g.EMPTY_OBJECT),this._enabled=g(e.enabled,!1),this._pixelRange=g(e.pixelRange,80),this._minimumClusterSize=g(e.minimumClusterSize,2),this._clusterBillboards=g(e.clusterBillboards,!0),this._clusterLabels=g(e.clusterLabels,!0),this._clusterPoints=g(e.clusterPoints,!0),this._labelCollection=void 0,this._billboardCollection=void 0,this._pointCollection=void 0,this._clusterBillboardCollection=void 0,this._clusterLabelCollection=void 0,this._clusterPointCollection=void 0,this._collectionIndicesByEntity={},this._unusedLabelIndices=[],this._unusedBillboardIndices=[],this._unusedPointIndices=[],this._previousClusters=[],this._previousHeight=void 0,this._enabledDirty=!1,this._clusterDirty=!1,this._cluster=void 0,this._removeEventListener=void 0,this._clusterEvent=new Ne,this.show=g(e.show,!0)}function D0(e,t){e.x-=t,e.y-=t,e.width+=t*2,e.height+=t*2}const xx=new be;function O0(e,t,n,i,o){if(l(e._labelCollection)&&i._clusterLabels?o=qn.getScreenSpaceBoundingBox(e,t,o):l(e._billboardCollection)&&i._clusterBillboards?o=me.getScreenSpaceBoundingBox(e,t,o):l(e._pointPrimitiveCollection)&&i._clusterPoints&&(o=Re.getScreenSpaceBoundingBox(e,t,o)),D0(o,n),i._clusterLabels&&!l(e._labelCollection)&&l(e.id)&&W0(i,e.id.id)&&l(e.id._label)){const a=i._collectionIndicesByEntity[e.id.id].labelIndex,r=i._labelCollection.get(a),f=qn.getScreenSpaceBoundingBox(r,t,xx);D0(f,n),o=be.union(o,f,o)}return o}function Sx(e,t){if(e.clusterShow=!0,!l(e._labelCollection)&&l(e.id)&&W0(t,e.id.id)&&l(e.id._label)){const n=t._collectionIndicesByEntity[e.id.id].labelIndex,i=t._labelCollection.get(n);i.clusterShow=!0}}function v0(e,t,n,i){const o={billboard:i._clusterBillboardCollection.add(),label:i._clusterLabelCollection.add(),point:i._clusterPointCollection.add()};o.billboard.show=!1,o.point.show=!1,o.label.show=!0,o.label.text=t.toLocaleString(),o.label.id=n,o.billboard.position=o.label.position=o.point.position=e,i._clusterEvent.raiseEvent(n,o)}function W0(e,t){return l(e)&&l(e._collectionIndicesByEntity[t])&&l(e._collectionIndicesByEntity[t].labelIndex)}function pf(e,t,n,i,o){if(!l(e))return;const a=e.length;for(let r=0;r<a;++r){const f=e.get(r);if(f.clusterShow=!1,!f.show||o._scene.mode===ye.SCENE3D&&!i.isPointVisible(f.position))continue;const c=o._clusterLabels&&l(f._labelCollection),h=o._clusterBillboards&&l(f.id._billboard),d=o._clusterPoints&&l(f.id._point);if(c&&(d||h))continue;const p=f.computeScreenSpacePosition(n);l(p)&&t.push({index:r,collection:e,clustered:!1,coord:p})}}const Ix=new be,Dx=new be,Ox=new be;function vx(e){return function(t){if(l(t)&&t<.05||!e.enabled)return;const n=e._scene,i=e._labelCollection,o=e._billboardCollection,a=e._pointCollection;if(!l(i)&&!l(o)&&!l(a)||!e._clusterBillboards&&!e._clusterLabels&&!e._clusterPoints)return;let r=e._clusterLabelCollection,f=e._clusterBillboardCollection,c=e._clusterPointCollection;l(r)?r.removeAll():r=e._clusterLabelCollection=new Hn({scene:n}),l(f)?f.removeAll():f=e._clusterBillboardCollection=new rn({scene:n}),l(c)?c.removeAll():c=e._clusterPointCollection=new An;const h=e._pixelRange,d=e._minimumClusterSize,p=e._previousClusters,m=[],T=e._previousHeight,y=n.camera.positionCartographic.height,w=n.ellipsoid,A=n.camera.positionWC,E=new ui(w,A),b=[];e._clusterLabels&&pf(i,b,n,E,e),e._clusterBillboards&&pf(o,b,n,E,e),e._clusterPoints&&pf(a,b,n,E,e);let D,O,B,L,F,N,U,M,j,Y,s,x;if(b.length>0){const P=new lf(b.length,64,Uint32Array);for(let z=0;z<b.length;++z)P.add(b[z].coord.x,b[z].coord.y);if(P.finish(),y<T)for(B=p.length,D=0;D<B;++D){const z=p[D];if(!E.isPointVisible(z.position))continue;const H=me._computeScreenSpacePosition(k.IDENTITY,z.position,u.ZERO,q.ZERO,n);if(!l(H))continue;const X=1-y/T;let ee=z.width=z.width*X,K=z.height=z.height*X;ee=Math.max(ee,z.minimumWidth),K=Math.max(K,z.minimumHeight);const ce=H.x-ee*.5,le=H.y-K*.5,we=H.x+ee,Se=H.y+K;for(F=P.range(ce,le,we,Se),N=F.length,Y=0,j=[],O=0;O<N;++O)U=F[O],M=b[U],M.clustered||(++Y,s=M.collection,x=M.index,j.push(s.get(x).id));if(Y>=d)for(v0(z.position,Y,j,e),m.push(z),O=0;O<N;++O)b[F[O]].clustered=!0}for(B=b.length,D=0;D<B;++D){const z=b[D];if(z.clustered)continue;z.clustered=!0,s=z.collection,x=z.index;const H=s.get(x);L=O0(H,z.coord,h,e,Ix);const X=be.clone(L,Dx);F=P.range(L.x,L.y,L.x+L.width,L.y+L.height),N=F.length;const ee=u.clone(H.position);for(Y=1,j=[H.id],O=0;O<N;++O)if(U=F[O],M=b[U],!M.clustered){const K=M.collection.get(M.index),ce=O0(K,M.coord,h,e,Ox);u.add(K.position,ee,ee),be.union(X,ce,X),++Y,j.push(K.id)}if(Y>=d){const K=u.multiplyByScalar(ee,1/Y,ee);for(v0(K,Y,j,e),m.push({position:K,width:X.width,height:X.height,minimumWidth:L.width,minimumHeight:L.height}),O=0;O<N;++O)b[F[O]].clustered=!0}else Sx(H,e)}}r.length===0&&(r.destroy(),e._clusterLabelCollection=void 0),f.length===0&&(f.destroy(),e._clusterBillboardCollection=void 0),c.length===0&&(c.destroy(),e._clusterPointCollection=void 0),e._previousClusters=m,e._previousHeight=y}}jn.prototype._initialize=function(e){this._scene=e;const t=vx(this);this._cluster=t,this._removeEventListener=e.camera.changed.addEventListener(t)},Object.defineProperties(jn.prototype,{enabled:{get:function(){return this._enabled},set:function(e){this._enabledDirty=e!==this._enabled,this._enabled=e}},pixelRange:{get:function(){return this._pixelRange},set:function(e){this._clusterDirty=this._clusterDirty||e!==this._pixelRange,this._pixelRange=e}},minimumClusterSize:{get:function(){return this._minimumClusterSize},set:function(e){this._clusterDirty=this._clusterDirty||e!==this._minimumClusterSize,this._minimumClusterSize=e}},clusterEvent:{get:function(){return this._clusterEvent}},clusterBillboards:{get:function(){return this._clusterBillboards},set:function(e){this._clusterDirty=this._clusterDirty||e!==this._clusterBillboards,this._clusterBillboards=e}},clusterLabels:{get:function(){return this._clusterLabels},set:function(e){this._clusterDirty=this._clusterDirty||e!==this._clusterLabels,this._clusterLabels=e}},clusterPoints:{get:function(){return this._clusterPoints},set:function(e){this._clusterDirty=this._clusterDirty||e!==this._clusterPoints,this._clusterPoints=e}}});function mf(e,t,n,i){return function(o){let a=this[e];l(this._collectionIndicesByEntity)||(this._collectionIndicesByEntity={});let r=this._collectionIndicesByEntity[o.id];if(l(r)||(r=this._collectionIndicesByEntity[o.id]={billboardIndex:void 0,labelIndex:void 0,pointIndex:void 0}),l(a)&&l(r[i]))return a.get(r[i]);l(a)||(a=this[e]=new t({scene:this._scene}));let f,c;const h=this[n];h.length>0?(f=h.shift(),c=a.get(f)):(c=a.add(),f=a.length-1),r[i]=f;const d=this;return Promise.resolve().then(function(){d._clusterDirty=!0}),c}}function _f(e,t){const n=e._collectionIndicesByEntity[t];!l(n.billboardIndex)&&!l(n.labelIndex)&&!l(n.pointIndex)&&delete e._collectionIndicesByEntity[t]}jn.prototype.getLabel=mf("_labelCollection",Hn,"_unusedLabelIndices","labelIndex"),jn.prototype.removeLabel=function(e){const t=this._collectionIndicesByEntity&&this._collectionIndicesByEntity[e.id];if(!l(this._labelCollection)||!l(t)||!l(t.labelIndex))return;const n=t.labelIndex;t.labelIndex=void 0,_f(this,e.id);const i=this._labelCollection.get(n);i.show=!1,i.text="",i.id=void 0,this._unusedLabelIndices.push(n),this._clusterDirty=!0},jn.prototype.getBillboard=mf("_billboardCollection",rn,"_unusedBillboardIndices","billboardIndex"),jn.prototype.removeBillboard=function(e){const t=this._collectionIndicesByEntity&&this._collectionIndicesByEntity[e.id];if(!l(this._billboardCollection)||!l(t)||!l(t.billboardIndex))return;const n=t.billboardIndex;t.billboardIndex=void 0,_f(this,e.id);const i=this._billboardCollection.get(n);i.id=void 0,i.show=!1,i.image=void 0,this._unusedBillboardIndices.push(n),this._clusterDirty=!0},jn.prototype.getPoint=mf("_pointCollection",An,"_unusedPointIndices","pointIndex"),jn.prototype.removePoint=function(e){const t=this._collectionIndicesByEntity&&this._collectionIndicesByEntity[e.id];if(!l(this._pointCollection)||!l(t)||!l(t.pointIndex))return;const n=t.pointIndex;t.pointIndex=void 0,_f(this,e.id);const i=this._pointCollection.get(n);i.show=!1,i.id=void 0,this._unusedPointIndices.push(n),this._clusterDirty=!0};function gf(e){if(!l(e))return;const t=e.length;for(let n=0;n<t;++n)e.get(n).clusterShow=!0}function Wx(e){e.enabled||(l(e._clusterLabelCollection)&&e._clusterLabelCollection.destroy(),l(e._clusterBillboardCollection)&&e._clusterBillboardCollection.destroy(),l(e._clusterPointCollection)&&e._clusterPointCollection.destroy(),e._clusterLabelCollection=void 0,e._clusterBillboardCollection=void 0,e._clusterPointCollection=void 0,gf(e._labelCollection),gf(e._billboardCollection),gf(e._pointCollection))}jn.prototype.update=function(e){if(!this.show)return;let t;l(this._labelCollection)&&this._labelCollection.length>0&&this._labelCollection.get(0)._glyphs.length===0&&(t=e.commandList,e.commandList=[],this._labelCollection.update(e),e.commandList=t),l(this._billboardCollection)&&this._billboardCollection.length>0&&!l(this._billboardCollection.get(0).width)&&(t=e.commandList,e.commandList=[],this._billboardCollection.update(e),e.commandList=t),this._enabledDirty&&(this._enabledDirty=!1,Wx(this),this._clusterDirty=!0),this._clusterDirty&&(this._clusterDirty=!1,this._cluster()),l(this._clusterLabelCollection)&&this._clusterLabelCollection.update(e),l(this._clusterBillboardCollection)&&this._clusterBillboardCollection.update(e),l(this._clusterPointCollection)&&this._clusterPointCollection.update(e),l(this._labelCollection)&&this._labelCollection.update(e),l(this._billboardCollection)&&this._billboardCollection.update(e),l(this._pointCollection)&&this._pointCollection.update(e)},jn.prototype.destroy=function(){this._labelCollection=this._labelCollection&&this._labelCollection.destroy(),this._billboardCollection=this._billboardCollection&&this._billboardCollection.destroy(),this._pointCollection=this._pointCollection&&this._pointCollection.destroy(),this._clusterLabelCollection=this._clusterLabelCollection&&this._clusterLabelCollection.destroy(),this._clusterBillboardCollection=this._clusterBillboardCollection&&this._clusterBillboardCollection.destroy(),this._clusterPointCollection=this._clusterPointCollection&&this._clusterPointCollection.destroy(),l(this._removeEventListener)&&(this._removeEventListener(),this._removeEventListener=void 0),this._labelCollection=void 0,this._billboardCollection=void 0,this._pointCollection=void 0,this._clusterBillboardCollection=void 0,this._clusterLabelCollection=void 0,this._clusterPointCollection=void 0,this._collectionIndicesByEntity=void 0,this._unusedLabelIndices=[],this._unusedBillboardIndices=[],this._unusedPointIndices=[],this._previousClusters=[],this._previousHeight=void 0,this._enabledDirty=!1,this._pixelRangeDirty=!1,this._minimumClusterSizeDirty=!1};function rr(e){this._name=e,this._clock=void 0,this._changed=new Ne,this._error=new Ne,this._isLoading=!1,this._loading=new Ne,this._entityCollection=new en(this),this._entityCluster=new jn}Object.defineProperties(rr.prototype,{name:{get:function(){return this._name},set:function(e){this._name!==e&&(this._name=e,this._changed.raiseEvent(this))}},clock:{get:function(){return this._clock},set:function(e){this._clock!==e&&(this._clock=e,this._changed.raiseEvent(this))}},entities:{get:function(){return this._entityCollection}},isLoading:{get:function(){return this._isLoading},set:function(e){Da.setLoading(this,e)}},changedEvent:{get:function(){return this._changed}},errorEvent:{get:function(){return this._error}},loadingEvent:{get:function(){return this._loading}},show:{get:function(){return this._entityCollection.show},set:function(e){this._entityCollection.show=e}},clustering:{get:function(){return this._entityCluster},set:function(e){if(!l(e))throw new C("value must be defined.");this._entityCluster=e}}}),rr.prototype.update=function(e){return!0};function v(e,t,n=10,i="#ba1919"){return{name:t,label:{text:t,font:"18px sans-serif"},polyline:{show:!0,positions:e,clampToGround:!1,width:n,material:I.fromCssColorString(i),arcType:ai.NONE,shadows:pa.DISABLED}}}function go(e,t,n,i,o=new He(0,0,0),a=1){return{id:e,name:n,position:t,orientation:Ce.headingPitchRollQuaternion(t,o),model:{show:!0,uri:i,scale:a,heightReference:Ln.NONE}}}function Pa(e,t){return{name:t,position:e,label:{text:t,font:"18px sans-serif",fillColor:I.GOLD,pixelOffset:new q(0,-20),style:li.FILL_AND_OUTLINE,outlineWidth:2,outlineColor:I.BLACK,heightReference:Ln.NONE,distanceDisplayCondition:new it(0,1e4)},point:{color:I.RED,pixelSize:12,heightReference:Ln.NONE,distanceDisplayCondition:new it(0,1e4)}}}function Q(e,t,n,i,o){n||(n=new He);const a=Ce.headingPitchRollQuaternion(e,n,i,o),r=k.fromRotationTranslation(G.fromQuaternion(a,new G),e,new k);return k.multiplyByPoint(r,t,new u)}function W(e,t=4){const n=[];for(var i=0;i<e.length-1;i++)n.push(...Px(e[i],e[i+1],t*-1e3,100));return n}function Px(e,t,n,i){var o=[],a=oe.fromCartesian(e),r=oe.fromCartesian(t),f=a.longitude*180/Math.PI,c=a.latitude*180/Math.PI,h=r.longitude*180/Math.PI,d=r.latitude*180/Math.PI,p=Math.sqrt((f-h)*(f-h)+(c-d)*(c-d)),m=p*n,T=u.clone(e),y=u.clone(t),w=u.distance(T,u.ZERO),A=u.distance(y,u.ZERO);if(u.normalize(T,T),u.normalize(y,y),u.distance(T,y)==0)return o;var E=u.angleBetween(T,y);o.push(e);for(var b=1;b<i-1;b++){var D=b*1/(i-1),O=1-D,B=Math.sin(O*E)/Math.sin(E),L=Math.sin(D*E)/Math.sin(E),F=u.multiplyByScalar(T,B,new u),N=u.multiplyByScalar(y,L,new u),U=u.add(F,N,new u),M=D*Math.PI,j=w*O+A*D+Math.sin(M)*m;U=u.multiplyByScalar(U,j,U),o.push(U)}return o.push(t),o}class Bx{constructor(){se(this,"LineID","myEntity1");se(this,"Tag","");se(this,"towers",[]);se(this,"ISPhaseSequence",!1);se(this,"Wairnum",0);se(this,"Type",0);se(this,"wireAColor","#FFFFFF");se(this,"wireBColor","#FFFFFF");se(this,"wireCColor","#FFFFFF");se(this,"wireTColor","#FFFFFF");se(this,"wireD1Color","#FFFFFF");se(this,"wireD2Color","#FFFFFF");se(this,"wireWidth",1)}}class Rx{constructor(){se(this,"id","");se(this,"name","");se(this,"type",0);se(this,"Longitude",0);se(this,"Latitude",0);se(this,"Altitude",0);se(this,"RollX",0);se(this,"RollY",90);se(this,"RollZ",0);se(this,"towerScale",1);se(this,"towerHeight",42);se(this,"towerModelUri","");se(this,"towerPoint",[]);se(this,"Insulators",[])}}class zx{constructor(){se(this,"id","");se(this,"name","");se(this,"type",0);se(this,"WairFX","进");se(this,"linenum",1);se(this,"Wairnum",0);se(this,"PhaseSequence",0);se(this,"RollX",90);se(this,"RollY",0);se(this,"RollZ",0);se(this,"InsulatorScale",1);se(this,"InsulatorLength",0);se(this,"InsulatorModelUri","");se(this,"InsulatorPoint",[])}}class Lx{constructor(){se(this,"name","");se(this,"X",-45);se(this,"Y",90);se(this,"Z",0)}}var nn=(e=>(e[e.A相=0]="A相",e[e.B相=1]="B相",e[e.C相=2]="C相",e[e.地线1=3]="地线1",e[e.地线2=4]="地线2",e))(nn||{}),$i=(e=>(e[e.直线塔=0]="直线塔",e[e.耐张塔=1]="耐张塔",e[e.门架塔=2]="门架塔",e[e.换位塔=3]="换位塔",e))($i||{}),P0=(e=>(e[e.交流单回路=0]="交流单回路",e[e.交流双回路=1]="交流双回路",e[e.直流单回路=2]="直流单回路",e[e.直流双回路=3]="直流双回路",e[e.交流四回路=4]="交流四回路",e))(P0||{}),ar=(e=>(e[e.地线=0]="地线",e[e.回路一=1]="回路一",e[e.回路二=2]="回路二",e[e.回路三=3]="回路三",e[e.回路四=4]="回路四",e))(ar||{}),Ht=(e=>(e[e.悬垂串=0]="悬垂串",e[e.耐张串=1]="耐张串",e[e.跳线串=2]="跳线串",e[e.硬跳串=3]="硬跳串",e[e.V串=4]="V串",e[e.地线串=5]="地线串",e[e.绕跳临时=6]="绕跳临时",e))(Ht||{}),$=(e=>(e[e.单分裂=0]="单分裂",e[e.双分裂=1]="双分裂",e[e.四分裂=2]="四分裂",e[e.六分裂=3]="六分裂",e[e.八分裂=4]="八分裂",e))($||{});class Nx{constructor(t,n,i){se(this,"viewer");se(this,"LineInfo");se(this,"Keym","");se(this,"dataSource2");se(this,"entityCollection2");se(this,"offsetTowers",[]);se(this,"offsetWires11",[]);se(this,"offsetWires12",[]);se(this,"offsetWires13",[]);se(this,"offsetWires21",[]);se(this,"offsetWires22",[]);se(this,"offsetWires23",[]);se(this,"ToffsetArcWires1A",[]);se(this,"ToffsetArcWires2A",[]);se(this,"ToffsetWires1A1",[]);se(this,"ToffsetWires1A2",[]);se(this,"ToffsetArcWires1B",[]);se(this,"ToffsetArcWires2B",[]);se(this,"ToffsetWires1B1",[]);se(this,"ToffsetWires1B2",[]);se(this,"ToffsetArcWires1C",[]);se(this,"ToffsetArcWires2C",[]);se(this,"ToffsetWires1C1",[]);se(this,"ToffsetWires1C2",[]);se(this,"ToffsetArcWires1A2",[]);se(this,"ToffsetArcWires2A2",[]);se(this,"ToffsetWires2A1",[]);se(this,"ToffsetWires2A2",[]);se(this,"ToffsetArcWires1B2",[]);se(this,"ToffsetArcWires2B2",[]);se(this,"ToffsetWires2B1",[]);se(this,"ToffsetWires2B2",[]);se(this,"ToffsetArcWires1C2",[]);se(this,"ToffsetArcWires2C2",[]);se(this,"ToffsetWires2C1",[]);se(this,"ToffsetWires2C2",[]);se(this,"offsetArcWires1A",[]);se(this,"offsetArcWires1B",[]);se(this,"offsetArcWires1C",[]);se(this,"offsetArcWires2A",[]);se(this,"offsetArcWires2B",[]);se(this,"offsetArcWires2C",[]);se(this,"offsetGrouundWires1",[]);se(this,"offsetGrouundWires2",[]);se(this,"offsetGrouundWires11",[]);se(this,"offsetGrouundWires12",[]);this.Keym=i,this.viewer=t,this.LineInfo=n,this.dataSource2=new rr(this.LineInfo.LineID),this.entityCollection2=this.dataSource2.entities}loadLineTower(){if(this.Keym!="OW_JPS_EEngin_001")return;debugger;this.LineInfo.towers.forEach(i=>{this.offsetTowers.push(u.fromDegrees(i.Longitude,i.Latitude,i.Altitude))});let t=0,n=0;this.offsetTowers.forEach((i,o)=>{const a=new He(S.toRadians(this.LineInfo.towers[o].RollX),S.toRadians(this.LineInfo.towers[o].RollY),S.toRadians(this.LineInfo.towers[o].RollZ));this.entityCollection2.add(go(this.LineInfo.towers[o].id,i,this.LineInfo.towers[o].name,this.LineInfo.towers[o].towerModelUri,a,this.LineInfo.towers[o].towerScale));let r=new He(S.toRadians(this.LineInfo.towers[o].RollX),0,0),f=0;this.LineInfo.towers[o].Insulators.forEach(c=>{if(this.LineInfo.towers[o].type==$i.耐张塔)switch(c.type){case Ht.耐张串:let d=new He(S.toRadians(this.LineInfo.towers[o].RollX),0,0);if(c.WairFX=="进"){const w=new He(S.toRadians(c.RollX),S.toRadians(-90),S.toRadians(180)),A=Q(i,new u(this.LineInfo.towers[o].towerPoint[f].X,this.LineInfo.towers[o].towerPoint[f].Y,this.LineInfo.towers[o].towerPoint[f].Z),d);this.entityCollection2.add(go(c.id,A,c.name,c.InsulatorModelUri,w,c.InsulatorScale))}else{const w=new He(S.toRadians(c.RollX),S.toRadians(-90),S.toRadians(0)),A=Q(i,new u(this.LineInfo.towers[o].towerPoint[f].X,this.LineInfo.towers[o].towerPoint[f].Y,this.LineInfo.towers[o].towerPoint[f].Z),d);this.entityCollection2.add(go(c.id,A,c.name,c.InsulatorModelUri,w,c.InsulatorScale))}break;case Ht.跳线串:const p=new He(S.toRadians(c.RollX),S.toRadians(c.RollY),S.toRadians(c.RollZ)),m=Q(i,new u(this.LineInfo.towers[o].towerPoint[f].X,this.LineInfo.towers[o].towerPoint[f].Y,this.LineInfo.towers[o].towerPoint[f].Z),r);this.entityCollection2.add(go(c.id,m,c.name,c.InsulatorModelUri,p,c.InsulatorScale));break;case Ht.地线串:const T=new He(S.toRadians(c.RollX),S.toRadians(c.RollY),S.toRadians(c.RollZ)),y=Q(i,new u(this.LineInfo.towers[o].towerPoint[f].X,this.LineInfo.towers[o].towerPoint[f].Y,this.LineInfo.towers[o].towerPoint[f].Z),r);this.entityCollection2.add(go(c.id,y,c.name,c.InsulatorModelUri,T,c.InsulatorScale));break}else{const d=new He(S.toRadians(c.RollX),S.toRadians(c.RollY),S.toRadians(c.RollZ)),p=Q(i,new u(this.LineInfo.towers[o].towerPoint[f].X,this.LineInfo.towers[o].towerPoint[f].Y,this.LineInfo.towers[o].towerPoint[f].Z),r);this.entityCollection2.add(go(c.id,p,c.name,c.InsulatorModelUri,d,c.InsulatorScale))}const h=[];switch(c.InsulatorPoint.forEach(d=>{h.push(Q(i,new u(d.X,d.Y,d.Z),r))}),c.linenum){case ar.回路一:if(this.LineInfo.ISPhaseSequence)if(this.LineInfo.towers[o].type==$i.耐张塔)switch(c.PhaseSequence){case nn.A相:if(c.type==Ht.耐张串)if(c.WairFX=="进")switch(this.LineInfo.Wairnum){case $.单分裂:this.offsetWires11.push(h[0]),this.ToffsetWires1A1.push(h[0]);break;case $.双分裂:this.offsetWires11.push(h[0]),this.offsetWires11.push(h[1]),this.ToffsetWires1A1.push(h[2]),this.ToffsetWires1A1.push(h[3]);break;case $.四分裂:this.offsetWires11.push(h[0]),this.offsetWires11.push(h[1]),this.offsetWires11.push(h[2]),this.offsetWires11.push(h[3]),this.ToffsetWires1A1.push(h[4]),this.ToffsetWires1A1.push(h[5]),this.ToffsetWires1A1.push(h[6]),this.ToffsetWires1A1.push(h[7]);break;case $.六分裂:this.offsetWires11.push(h[0]),this.offsetWires11.push(h[1]),this.offsetWires11.push(h[2]),this.offsetWires11.push(h[3]),this.offsetWires11.push(h[4]),this.offsetWires11.push(h[5]),this.ToffsetWires1A1.push(h[6]),this.ToffsetWires1A1.push(h[7]),this.ToffsetWires1A1.push(h[8]),this.ToffsetWires1A1.push(h[9]),this.ToffsetWires1A1.push(h[10]),this.ToffsetWires1A1.push(h[11]);break;case $.八分裂:this.offsetWires11.push(h[0]),this.offsetWires11.push(h[1]),this.offsetWires11.push(h[2]),this.offsetWires11.push(h[3]),this.offsetWires11.push(h[4]),this.offsetWires11.push(h[5]),this.offsetWires11.push(h[6]),this.offsetWires11.push(h[7]),this.ToffsetWires1A1.push(h[8]),this.ToffsetWires1A1.push(h[9]),this.ToffsetWires1A1.push(h[10]),this.ToffsetWires1A1.push(h[11]),this.ToffsetWires1A1.push(h[12]),this.ToffsetWires1A1.push(h[13]),this.ToffsetWires1A1.push(h[14]),this.ToffsetWires1A1.push(h[15]);break}else switch(this.LineInfo.Wairnum){case $.单分裂:const d=Q(i,new u(c.InsulatorPoint[0].X*-1,c.InsulatorPoint[0].Y,c.InsulatorPoint[0].Z),r);this.offsetWires11.push(d),this.ToffsetWires1A2.push(d);break;case $.双分裂:const p=Q(i,new u(c.InsulatorPoint[0].X*-1,c.InsulatorPoint[0].Y,c.InsulatorPoint[0].Z),r),m=Q(i,new u(c.InsulatorPoint[1].X*-1,c.InsulatorPoint[1].Y,c.InsulatorPoint[1].Z),r);this.offsetWires11.push(p),this.offsetWires11.push(m),this.ToffsetWires1A2.push(p),this.ToffsetWires1A2.push(m);break;case $.四分裂:const T=Q(i,new u(c.InsulatorPoint[0].X*-1,c.InsulatorPoint[0].Y,c.InsulatorPoint[0].Z),r),y=Q(i,new u(c.InsulatorPoint[1].X*-1,c.InsulatorPoint[1].Y,c.InsulatorPoint[1].Z),r),w=Q(i,new u(c.InsulatorPoint[2].X*-1,c.InsulatorPoint[2].Y,c.InsulatorPoint[2].Z),r),A=Q(i,new u(c.InsulatorPoint[3].X*-1,c.InsulatorPoint[3].Y,c.InsulatorPoint[3].Z),r);this.offsetWires11.push(T),this.offsetWires11.push(y),this.offsetWires11.push(w),this.offsetWires11.push(A),this.ToffsetWires1A2.push(T),this.ToffsetWires1A2.push(y),this.ToffsetWires1A2.push(w),this.ToffsetWires1A2.push(A);break;case $.六分裂:const E=Q(i,new u(c.InsulatorPoint[0].X*-1,c.InsulatorPoint[0].Y,c.InsulatorPoint[0].Z),r),b=Q(i,new u(c.InsulatorPoint[1].X*-1,c.InsulatorPoint[1].Y,c.InsulatorPoint[1].Z),r),D=Q(i,new u(c.InsulatorPoint[2].X*-1,c.InsulatorPoint[2].Y,c.InsulatorPoint[2].Z),r),O=Q(i,new u(c.InsulatorPoint[3].X*-1,c.InsulatorPoint[3].Y,c.InsulatorPoint[3].Z),r),B=Q(i,new u(c.InsulatorPoint[4].X*-1,c.InsulatorPoint[4].Y,c.InsulatorPoint[4].Z),r),L=Q(i,new u(c.InsulatorPoint[5].X*-1,c.InsulatorPoint[5].Y,c.InsulatorPoint[5].Z),r);this.offsetWires11.push(E),this.offsetWires11.push(b),this.offsetWires11.push(D),this.offsetWires11.push(O),this.offsetWires11.push(B),this.offsetWires11.push(L),this.ToffsetWires1A2.push(E),this.ToffsetWires1A2.push(b),this.ToffsetWires1A2.push(D),this.ToffsetWires1A2.push(O),this.ToffsetWires1A2.push(B),this.ToffsetWires1A2.push(L);break;case $.八分裂:const F=Q(i,new u(c.InsulatorPoint[0].X*-1,c.InsulatorPoint[0].Y,c.InsulatorPoint[0].Z),r),N=Q(i,new u(c.InsulatorPoint[1].X*-1,c.InsulatorPoint[1].Y,c.InsulatorPoint[1].Z),r),U=Q(i,new u(c.InsulatorPoint[2].X*-1,c.InsulatorPoint[2].Y,c.InsulatorPoint[2].Z),r),M=Q(i,new u(c.InsulatorPoint[3].X*-1,c.InsulatorPoint[3].Y,c.InsulatorPoint[3].Z),r),j=Q(i,new u(c.InsulatorPoint[4].X*-1,c.InsulatorPoint[4].Y,c.InsulatorPoint[4].Z),r),Y=Q(i,new u(c.InsulatorPoint[5].X*-1,c.InsulatorPoint[5].Y,c.InsulatorPoint[5].Z),r),s=Q(i,new u(c.InsulatorPoint[6].X*-1,c.InsulatorPoint[6].Y,c.InsulatorPoint[6].Z),r),x=Q(i,new u(c.InsulatorPoint[7].X*-1,c.InsulatorPoint[7].Y,c.InsulatorPoint[7].Z),r);this.offsetWires11.push(F),this.offsetWires11.push(N),this.offsetWires11.push(U),this.offsetWires11.push(M),this.offsetWires11.push(j),this.offsetWires11.push(Y),this.offsetWires11.push(s),this.offsetWires11.push(x),this.ToffsetWires1A2.push(F),this.ToffsetWires1A2.push(N),this.ToffsetWires1A2.push(U),this.ToffsetWires1A2.push(M),this.ToffsetWires1A2.push(j),this.ToffsetWires1A2.push(Y),this.ToffsetWires1A2.push(s),this.ToffsetWires1A2.push(x);break}else if(c.type==Ht.跳线串)switch(this.LineInfo.Wairnum){case $.单分裂:this.ToffsetWires1A1.push(h[0]),this.ToffsetWires1A2.push(h[0]);break;case $.双分裂:this.ToffsetWires1A1.push(h[0]),this.ToffsetWires1A1.push(h[1]),this.ToffsetWires1A2.push(h[2]),this.ToffsetWires1A2.push(h[3]);break;case $.四分裂:this.ToffsetWires1A1.push(h[0]),this.ToffsetWires1A1.push(h[1]),this.ToffsetWires1A1.push(h[2]),this.ToffsetWires1A1.push(h[3]),this.ToffsetWires1A2.push(h[4]),this.ToffsetWires1A2.push(h[5]),this.ToffsetWires1A2.push(h[6]),this.ToffsetWires1A2.push(h[7]);break;case $.六分裂:this.ToffsetWires1A1.push(h[0]),this.ToffsetWires1A1.push(h[1]),this.ToffsetWires1A1.push(h[2]),this.ToffsetWires1A1.push(h[3]),this.ToffsetWires1A1.push(h[4]),this.ToffsetWires1A1.push(h[5]),this.ToffsetWires1A2.push(h[6]),this.ToffsetWires1A2.push(h[7]),this.ToffsetWires1A2.push(h[8]),this.ToffsetWires1A2.push(h[9]),this.ToffsetWires1A2.push(h[10]),this.ToffsetWires1A2.push(h[11]);break;case $.八分裂:this.ToffsetWires1A1.push(h[0]),this.ToffsetWires1A1.push(h[1]),this.ToffsetWires1A1.push(h[2]),this.ToffsetWires1A1.push(h[3]),this.ToffsetWires1A1.push(h[4]),this.ToffsetWires1A1.push(h[5]),this.ToffsetWires1A1.push(h[6]),this.ToffsetWires1A1.push(h[7]),this.ToffsetWires1A2.push(h[8]),this.ToffsetWires1A2.push(h[9]),this.ToffsetWires1A2.push(h[10]),this.ToffsetWires1A2.push(h[11]),this.ToffsetWires1A2.push(h[12]),this.ToffsetWires1A2.push(h[13]),this.ToffsetWires1A2.push(h[14]),this.ToffsetWires1A2.push(h[15]);break}break;case nn.B相:if(c.type==Ht.耐张串)if(c.WairFX=="进")switch(this.LineInfo.Wairnum){case $.单分裂:this.offsetWires12.push(h[0]),this.ToffsetWires1B1.push(h[0]);break;case $.双分裂:this.offsetWires12.push(h[0]),this.offsetWires12.push(h[1]),this.ToffsetWires1B1.push(h[2]),this.ToffsetWires1B1.push(h[3]);break;case $.四分裂:this.offsetWires12.push(h[0]),this.offsetWires12.push(h[1]),this.offsetWires12.push(h[2]),this.offsetWires12.push(h[3]),this.ToffsetWires1B1.push(h[4]),this.ToffsetWires1B1.push(h[5]),this.ToffsetWires1B1.push(h[6]),this.ToffsetWires1B1.push(h[7]);break;case $.六分裂:this.offsetWires12.push(h[0]),this.offsetWires12.push(h[1]),this.offsetWires12.push(h[2]),this.offsetWires12.push(h[3]),this.offsetWires12.push(h[4]),this.offsetWires12.push(h[5]),this.ToffsetWires1B1.push(h[6]),this.ToffsetWires1B1.push(h[7]),this.ToffsetWires1B1.push(h[8]),this.ToffsetWires1B1.push(h[9]),this.ToffsetWires1B1.push(h[10]),this.ToffsetWires1B1.push(h[11]);break;case $.八分裂:this.offsetWires12.push(h[0]),this.offsetWires12.push(h[1]),this.offsetWires12.push(h[2]),this.offsetWires12.push(h[3]),this.offsetWires12.push(h[4]),this.offsetWires12.push(h[5]),this.offsetWires12.push(h[6]),this.offsetWires12.push(h[7]),this.ToffsetWires1B1.push(h[8]),this.ToffsetWires1B1.push(h[9]),this.ToffsetWires1B1.push(h[10]),this.ToffsetWires1B1.push(h[11]),this.ToffsetWires1B1.push(h[12]),this.ToffsetWires1B1.push(h[13]),this.ToffsetWires1B1.push(h[14]),this.ToffsetWires1B1.push(h[15]);break}else switch(this.LineInfo.Wairnum){case $.单分裂:const d=Q(i,new u(c.InsulatorPoint[0].X*-1,c.InsulatorPoint[0].Y,c.InsulatorPoint[0].Z),r);this.offsetWires12.push(d),this.ToffsetWires1B2.push(d);break;case $.双分裂:const p=Q(i,new u(c.InsulatorPoint[0].X*-1,c.InsulatorPoint[0].Y,c.InsulatorPoint[0].Z),r),m=Q(i,new u(c.InsulatorPoint[1].X*-1,c.InsulatorPoint[1].Y,c.InsulatorPoint[1].Z),r);this.offsetWires12.push(p),this.offsetWires12.push(m),this.ToffsetWires1B2.push(p),this.ToffsetWires1B2.push(m);break;case $.四分裂:const T=Q(i,new u(c.InsulatorPoint[0].X*-1,c.InsulatorPoint[0].Y,c.InsulatorPoint[0].Z),r),y=Q(i,new u(c.InsulatorPoint[1].X*-1,c.InsulatorPoint[1].Y,c.InsulatorPoint[1].Z),r),w=Q(i,new u(c.InsulatorPoint[2].X*-1,c.InsulatorPoint[2].Y,c.InsulatorPoint[2].Z),r),A=Q(i,new u(c.InsulatorPoint[3].X*-1,c.InsulatorPoint[3].Y,c.InsulatorPoint[3].Z),r);this.offsetWires12.push(T),this.offsetWires12.push(y),this.offsetWires12.push(w),this.offsetWires12.push(A),this.ToffsetWires1B2.push(T),this.ToffsetWires1B2.push(y),this.ToffsetWires1B2.push(w),this.ToffsetWires1B2.push(A);break;case $.六分裂:const E=Q(i,new u(c.InsulatorPoint[0].X*-1,c.InsulatorPoint[0].Y,c.InsulatorPoint[0].Z),r),b=Q(i,new u(c.InsulatorPoint[1].X*-1,c.InsulatorPoint[1].Y,c.InsulatorPoint[1].Z),r),D=Q(i,new u(c.InsulatorPoint[2].X*-1,c.InsulatorPoint[2].Y,c.InsulatorPoint[2].Z),r),O=Q(i,new u(c.InsulatorPoint[3].X*-1,c.InsulatorPoint[3].Y,c.InsulatorPoint[3].Z),r),B=Q(i,new u(c.InsulatorPoint[4].X*-1,c.InsulatorPoint[4].Y,c.InsulatorPoint[4].Z),r),L=Q(i,new u(c.InsulatorPoint[5].X*-1,c.InsulatorPoint[5].Y,c.InsulatorPoint[5].Z),r);this.offsetWires12.push(E),this.offsetWires12.push(b),this.offsetWires12.push(D),this.offsetWires12.push(O),this.offsetWires12.push(B),this.offsetWires12.push(L),this.ToffsetWires1B2.push(E),this.ToffsetWires1B2.push(b),this.ToffsetWires1B2.push(D),this.ToffsetWires1B2.push(O),this.ToffsetWires1B2.push(B),this.ToffsetWires1B2.push(L);break;case $.八分裂:const F=Q(i,new u(c.InsulatorPoint[0].X*-1,c.InsulatorPoint[0].Y,c.InsulatorPoint[0].Z),r),N=Q(i,new u(c.InsulatorPoint[1].X*-1,c.InsulatorPoint[1].Y,c.InsulatorPoint[1].Z),r),U=Q(i,new u(c.InsulatorPoint[2].X*-1,c.InsulatorPoint[2].Y,c.InsulatorPoint[2].Z),r),M=Q(i,new u(c.InsulatorPoint[3].X*-1,c.InsulatorPoint[3].Y,c.InsulatorPoint[3].Z),r),j=Q(i,new u(c.InsulatorPoint[4].X*-1,c.InsulatorPoint[4].Y,c.InsulatorPoint[4].Z),r),Y=Q(i,new u(c.InsulatorPoint[5].X*-1,c.InsulatorPoint[5].Y,c.InsulatorPoint[5].Z),r),s=Q(i,new u(c.InsulatorPoint[6].X*-1,c.InsulatorPoint[6].Y,c.InsulatorPoint[6].Z),r),x=Q(i,new u(c.InsulatorPoint[7].X*-1,c.InsulatorPoint[7].Y,c.InsulatorPoint[7].Z),r);this.offsetWires12.push(F),this.offsetWires12.push(N),this.offsetWires12.push(U),this.offsetWires12.push(M),this.offsetWires12.push(j),this.offsetWires12.push(Y),this.offsetWires12.push(s),this.offsetWires12.push(x),this.ToffsetWires1B2.push(F),this.ToffsetWires1B2.push(N),this.ToffsetWires1B2.push(U),this.ToffsetWires1B2.push(M),this.ToffsetWires1B2.push(j),this.ToffsetWires1B2.push(Y),this.ToffsetWires1B2.push(s),this.ToffsetWires1B2.push(x);break}else if(c.type==Ht.跳线串)switch(this.LineInfo.Wairnum){case $.单分裂:this.ToffsetWires1B1.push(h[0]),this.ToffsetWires1B2.push(h[0]);break;case $.双分裂:this.ToffsetWires1B1.push(h[0]),this.ToffsetWires1B1.push(h[1]),this.ToffsetWires1B2.push(h[2]),this.ToffsetWires1B2.push(h[3]);break;case $.四分裂:this.ToffsetWires1B1.push(h[0]),this.ToffsetWires1B1.push(h[1]),this.ToffsetWires1B1.push(h[2]),this.ToffsetWires1B1.push(h[3]),this.ToffsetWires1B2.push(h[4]),this.ToffsetWires1B2.push(h[5]),this.ToffsetWires1B2.push(h[6]),this.ToffsetWires1B2.push(h[7]);break;case $.六分裂:this.ToffsetWires1B1.push(h[0]),this.ToffsetWires1B1.push(h[1]),this.ToffsetWires1B1.push(h[2]),this.ToffsetWires1B1.push(h[3]),this.ToffsetWires1B1.push(h[4]),this.ToffsetWires1B1.push(h[5]),this.ToffsetWires1B2.push(h[6]),this.ToffsetWires1B2.push(h[7]),this.ToffsetWires1B2.push(h[8]),this.ToffsetWires1B2.push(h[9]),this.ToffsetWires1B2.push(h[10]),this.ToffsetWires1B2.push(h[11]);break;case $.八分裂:this.ToffsetWires1B1.push(h[0]),this.ToffsetWires1B1.push(h[1]),this.ToffsetWires1B1.push(h[2]),this.ToffsetWires1B1.push(h[3]),this.ToffsetWires1B1.push(h[4]),this.ToffsetWires1B1.push(h[5]),this.ToffsetWires1B1.push(h[6]),this.ToffsetWires1B1.push(h[7]),this.ToffsetWires1B2.push(h[8]),this.ToffsetWires1B2.push(h[9]),this.ToffsetWires1B2.push(h[10]),this.ToffsetWires1B2.push(h[11]),this.ToffsetWires1B2.push(h[12]),this.ToffsetWires1B2.push(h[13]),this.ToffsetWires1B2.push(h[14]),this.ToffsetWires1B2.push(h[15]);break}break;case nn.C相:if(c.type==Ht.耐张串)if(c.WairFX=="进")switch(this.LineInfo.Wairnum){case $.单分裂:this.offsetWires13.push(h[0]),this.ToffsetWires1C1.push(h[0]);break;case $.双分裂:this.offsetWires13.push(h[0]),this.offsetWires13.push(h[1]),this.ToffsetWires1C1.push(h[2]),this.ToffsetWires1C1.push(h[3]);break;case $.四分裂:this.offsetWires13.push(h[0]),this.offsetWires13.push(h[1]),this.offsetWires13.push(h[2]),this.offsetWires13.push(h[3]),this.ToffsetWires1C1.push(h[4]),this.ToffsetWires1C1.push(h[5]),this.ToffsetWires1C1.push(h[6]),this.ToffsetWires1C1.push(h[7]);break;case $.六分裂:this.offsetWires13.push(h[0]),this.offsetWires13.push(h[1]),this.offsetWires13.push(h[2]),this.offsetWires13.push(h[3]),this.offsetWires13.push(h[4]),this.offsetWires13.push(h[5]),this.ToffsetWires1C1.push(h[6]),this.ToffsetWires1C1.push(h[7]),this.ToffsetWires1C1.push(h[8]),this.ToffsetWires1C1.push(h[9]),this.ToffsetWires1C1.push(h[10]),this.ToffsetWires1C1.push(h[11]);break;case $.八分裂:this.offsetWires13.push(h[0]),this.offsetWires13.push(h[1]),this.offsetWires13.push(h[2]),this.offsetWires13.push(h[3]),this.offsetWires13.push(h[4]),this.offsetWires13.push(h[5]),this.offsetWires13.push(h[6]),this.offsetWires13.push(h[7]),this.ToffsetWires1C1.push(h[8]),this.ToffsetWires1C1.push(h[9]),this.ToffsetWires1C1.push(h[10]),this.ToffsetWires1C1.push(h[11]),this.ToffsetWires1C1.push(h[12]),this.ToffsetWires1C1.push(h[13]),this.ToffsetWires1C1.push(h[14]),this.ToffsetWires1C1.push(h[15]);break}else switch(this.LineInfo.Wairnum){case $.单分裂:const d=Q(i,new u(c.InsulatorPoint[0].X*-1,c.InsulatorPoint[0].Y,c.InsulatorPoint[0].Z),r);this.offsetWires13.push(d),this.ToffsetWires1C2.push(d);break;case $.双分裂:const p=Q(i,new u(c.InsulatorPoint[0].X*-1,c.InsulatorPoint[0].Y,c.InsulatorPoint[0].Z),r),m=Q(i,new u(c.InsulatorPoint[1].X*-1,c.InsulatorPoint[1].Y,c.InsulatorPoint[1].Z),r);this.offsetWires13.push(p),this.offsetWires13.push(m),this.ToffsetWires1C2.push(p),this.ToffsetWires1C2.push(m);break;case $.四分裂:const T=Q(i,new u(c.InsulatorPoint[0].X*-1,c.InsulatorPoint[0].Y,c.InsulatorPoint[0].Z),r),y=Q(i,new u(c.InsulatorPoint[1].X*-1,c.InsulatorPoint[1].Y,c.InsulatorPoint[1].Z),r),w=Q(i,new u(c.InsulatorPoint[2].X*-1,c.InsulatorPoint[2].Y,c.InsulatorPoint[2].Z),r),A=Q(i,new u(c.InsulatorPoint[3].X*-1,c.InsulatorPoint[3].Y,c.InsulatorPoint[3].Z),r);this.offsetWires13.push(T),this.offsetWires13.push(y),this.offsetWires13.push(w),this.offsetWires13.push(A),this.ToffsetWires1C2.push(T),this.ToffsetWires1C2.push(y),this.ToffsetWires1C2.push(w),this.ToffsetWires1C2.push(A);break;case $.六分裂:const E=Q(i,new u(c.InsulatorPoint[0].X*-1,c.InsulatorPoint[0].Y,c.InsulatorPoint[0].Z),r),b=Q(i,new u(c.InsulatorPoint[1].X*-1,c.InsulatorPoint[1].Y,c.InsulatorPoint[1].Z),r),D=Q(i,new u(c.InsulatorPoint[2].X*-1,c.InsulatorPoint[2].Y,c.InsulatorPoint[2].Z),r),O=Q(i,new u(c.InsulatorPoint[3].X*-1,c.InsulatorPoint[3].Y,c.InsulatorPoint[3].Z),r),B=Q(i,new u(c.InsulatorPoint[4].X*-1,c.InsulatorPoint[4].Y,c.InsulatorPoint[4].Z),r),L=Q(i,new u(c.InsulatorPoint[5].X*-1,c.InsulatorPoint[5].Y,c.InsulatorPoint[5].Z),r);this.offsetWires13.push(E),this.offsetWires13.push(b),this.offsetWires13.push(D),this.offsetWires13.push(O),this.offsetWires13.push(B),this.offsetWires13.push(L),this.ToffsetWires1C2.push(E),this.ToffsetWires1C2.push(b),this.ToffsetWires1C2.push(D),this.ToffsetWires1C2.push(O),this.ToffsetWires1C2.push(B),this.ToffsetWires1C2.push(L);break;case $.八分裂:const F=Q(i,new u(c.InsulatorPoint[0].X*-1,c.InsulatorPoint[0].Y,c.InsulatorPoint[0].Z),r),N=Q(i,new u(c.InsulatorPoint[1].X*-1,c.InsulatorPoint[1].Y,c.InsulatorPoint[1].Z),r),U=Q(i,new u(c.InsulatorPoint[2].X*-1,c.InsulatorPoint[2].Y,c.InsulatorPoint[2].Z),r),M=Q(i,new u(c.InsulatorPoint[3].X*-1,c.InsulatorPoint[3].Y,c.InsulatorPoint[3].Z),r),j=Q(i,new u(c.InsulatorPoint[4].X*-1,c.InsulatorPoint[4].Y,c.InsulatorPoint[4].Z),r),Y=Q(i,new u(c.InsulatorPoint[5].X*-1,c.InsulatorPoint[5].Y,c.InsulatorPoint[5].Z),r),s=Q(i,new u(c.InsulatorPoint[6].X*-1,c.InsulatorPoint[6].Y,c.InsulatorPoint[6].Z),r),x=Q(i,new u(c.InsulatorPoint[7].X*-1,c.InsulatorPoint[7].Y,c.InsulatorPoint[7].Z),r);this.offsetWires13.push(F),this.offsetWires13.push(N),this.offsetWires13.push(U),this.offsetWires13.push(M),this.offsetWires13.push(j),this.offsetWires13.push(Y),this.offsetWires13.push(s),this.offsetWires13.push(x),this.ToffsetWires1C2.push(F),this.ToffsetWires1C2.push(N),this.ToffsetWires1C2.push(U),this.ToffsetWires1C2.push(M),this.ToffsetWires1C2.push(j),this.ToffsetWires1C2.push(Y),this.ToffsetWires1C2.push(s),this.ToffsetWires1C2.push(x);break}else if(c.type==Ht.跳线串)switch(this.LineInfo.Wairnum){case $.单分裂:this.ToffsetWires1C1.push(h[0]),this.ToffsetWires1C2.push(h[0]);break;case $.双分裂:this.ToffsetWires1C1.push(h[0]),this.ToffsetWires1C1.push(h[1]),this.ToffsetWires1C2.push(h[2]),this.ToffsetWires1C2.push(h[3]);break;case $.四分裂:this.ToffsetWires1C1.push(h[0]),this.ToffsetWires1C1.push(h[1]),this.ToffsetWires1C1.push(h[2]),this.ToffsetWires1C1.push(h[3]),this.ToffsetWires1C2.push(h[4]),this.ToffsetWires1C2.push(h[5]),this.ToffsetWires1C2.push(h[6]),this.ToffsetWires1C2.push(h[7]);break;case $.六分裂:this.ToffsetWires1C1.push(h[0]),this.ToffsetWires1C1.push(h[1]),this.ToffsetWires1C1.push(h[2]),this.ToffsetWires1C1.push(h[3]),this.ToffsetWires1C1.push(h[4]),this.ToffsetWires1C1.push(h[5]),this.ToffsetWires1C2.push(h[6]),this.ToffsetWires1C2.push(h[7]),this.ToffsetWires1C2.push(h[8]),this.ToffsetWires1C2.push(h[9]),this.ToffsetWires1C2.push(h[10]),this.ToffsetWires1C2.push(h[11]);break;case $.八分裂:this.ToffsetWires1C1.push(h[0]),this.ToffsetWires1C1.push(h[1]),this.ToffsetWires1C1.push(h[2]),this.ToffsetWires1C1.push(h[3]),this.ToffsetWires1C1.push(h[4]),this.ToffsetWires1C1.push(h[5]),this.ToffsetWires1C1.push(h[6]),this.ToffsetWires1C1.push(h[7]),this.ToffsetWires1C2.push(h[8]),this.ToffsetWires1C2.push(h[9]),this.ToffsetWires1C2.push(h[10]),this.ToffsetWires1C2.push(h[11]),this.ToffsetWires1C2.push(h[12]),this.ToffsetWires1C2.push(h[13]),this.ToffsetWires1C2.push(h[14]),this.ToffsetWires1C2.push(h[15]);break}break}else switch(c.PhaseSequence){case nn.A相:h.forEach(d=>{this.offsetWires11.push(d)});break;case nn.B相:h.forEach(d=>{this.offsetWires12.push(d)});break;case nn.C相:h.forEach(d=>{this.offsetWires13.push(d)});break}else if(this.LineInfo.towers[o].type==$i.耐张塔){debugger;switch(f){case 2:switch(this.LineInfo.Wairnum){case $.单分裂:this.offsetWires11.push(h[0]),this.ToffsetWires1A1.push(h[0]);break;case $.双分裂:this.offsetWires11.push(h[0]),this.offsetWires11.push(h[1]),this.ToffsetWires1A1.push(h[2]),this.ToffsetWires1A1.push(h[3]);break}break;case 3:switch(this.LineInfo.Wairnum){case $.单分裂:this.ToffsetWires1A1.push(h[0]),this.ToffsetWires1A2.push(h[0]);break;case $.双分裂:this.ToffsetWires1A1.push(h[0]),this.ToffsetWires1A1.push(h[1]),this.ToffsetWires1A2.push(h[2]),this.ToffsetWires1A2.push(h[3]);break}break;case 4:switch(this.LineInfo.Wairnum){case $.单分裂:const d=Q(i,new u(c.InsulatorPoint[0].X*-1,c.InsulatorPoint[0].Y,c.InsulatorPoint[0].Z),r);this.offsetWires11.push(d),this.ToffsetWires1A2.push(d);break;case $.双分裂:const p=Q(i,new u(c.InsulatorPoint[0].X*-1,c.InsulatorPoint[0].Y,c.InsulatorPoint[0].Z),r),m=Q(i,new u(c.InsulatorPoint[1].X*-1,c.InsulatorPoint[1].Y,c.InsulatorPoint[1].Z),r);this.offsetWires11.push(p),this.offsetWires11.push(m),this.ToffsetWires1A2.push(p),this.ToffsetWires1A2.push(m);break}break;case 5:h.forEach(d=>{this.offsetWires12.push(d),this.ToffsetWires1B1.push(d)});break;case 6:h.forEach(d=>{this.ToffsetWires1B1.push(d),this.ToffsetWires1B2.push(d)});break;case 7:c.InsulatorPoint.forEach(d=>{const p=Q(i,new u(d.X*-1,d.Y,d.Z),r);this.offsetWires12.push(p),this.ToffsetWires1B2.push(p)});break;case 8:h.forEach(d=>{this.offsetWires13.push(d),this.ToffsetWires1C1.push(d)});break;case 9:h.forEach(d=>{this.ToffsetWires1C1.push(d),this.ToffsetWires1C2.push(d)});break;case 10:c.InsulatorPoint.forEach(d=>{const p=Q(i,new u(d.X*-1,d.Y,d.Z),r);this.offsetWires13.push(p),this.ToffsetWires1C2.push(p)});break}}else switch(f){case 2:h.forEach(d=>{this.offsetWires11.push(d)});break;case 3:h.forEach(d=>{this.offsetWires12.push(d)});break;case 4:h.forEach(d=>{this.offsetWires13.push(d)});break}break;case ar.回路二:if(this.LineInfo.ISPhaseSequence)if(this.LineInfo.towers[o].type==$i.耐张塔)switch(c.PhaseSequence){case nn.A相:if(c.type==Ht.耐张串)if(c.WairFX=="进")switch(this.LineInfo.Wairnum){case $.单分裂:this.offsetWires21.push(h[0]),this.ToffsetWires2A1.push(h[0]);break;case $.双分裂:this.offsetWires21.push(h[0]),this.offsetWires21.push(h[1]),this.ToffsetWires2A1.push(h[2]),this.ToffsetWires2A1.push(h[3]);break;case $.四分裂:this.offsetWires21.push(h[0]),this.offsetWires21.push(h[1]),this.offsetWires21.push(h[2]),this.offsetWires21.push(h[3]),this.ToffsetWires2A1.push(h[4]),this.ToffsetWires2A1.push(h[5]),this.ToffsetWires2A1.push(h[6]),this.ToffsetWires2A1.push(h[7]);break;case $.六分裂:this.offsetWires21.push(h[0]),this.offsetWires21.push(h[1]),this.offsetWires21.push(h[2]),this.offsetWires21.push(h[3]),this.offsetWires21.push(h[4]),this.offsetWires21.push(h[5]),this.ToffsetWires2A1.push(h[6]),this.ToffsetWires2A1.push(h[7]),this.ToffsetWires2A1.push(h[8]),this.ToffsetWires2A1.push(h[9]),this.ToffsetWires2A1.push(h[10]),this.ToffsetWires2A1.push(h[11]);break;case $.八分裂:this.offsetWires21.push(h[0]),this.offsetWires21.push(h[1]),this.offsetWires21.push(h[2]),this.offsetWires21.push(h[3]),this.offsetWires21.push(h[4]),this.offsetWires21.push(h[5]),this.offsetWires21.push(h[6]),this.offsetWires21.push(h[7]),this.ToffsetWires2A1.push(h[8]),this.ToffsetWires2A1.push(h[9]),this.ToffsetWires2A1.push(h[10]),this.ToffsetWires2A1.push(h[11]),this.ToffsetWires2A1.push(h[12]),this.ToffsetWires2A1.push(h[13]),this.ToffsetWires2A1.push(h[14]),this.ToffsetWires2A1.push(h[15]);break}else switch(this.LineInfo.Wairnum){case $.单分裂:const d=Q(i,new u(c.InsulatorPoint[0].X*-1,c.InsulatorPoint[0].Y,c.InsulatorPoint[0].Z),r);this.offsetWires21.push(d),this.ToffsetWires2A2.push(d);break;case $.双分裂:const p=Q(i,new u(c.InsulatorPoint[0].X*-1,c.InsulatorPoint[0].Y,c.InsulatorPoint[0].Z),r),m=Q(i,new u(c.InsulatorPoint[1].X*-1,c.InsulatorPoint[1].Y,c.InsulatorPoint[1].Z),r);this.offsetWires21.push(p),this.offsetWires21.push(m),this.ToffsetWires2A2.push(p),this.ToffsetWires2A2.push(m);break;case $.四分裂:const T=Q(i,new u(c.InsulatorPoint[0].X*-1,c.InsulatorPoint[0].Y,c.InsulatorPoint[0].Z),r),y=Q(i,new u(c.InsulatorPoint[1].X*-1,c.InsulatorPoint[1].Y,c.InsulatorPoint[1].Z),r),w=Q(i,new u(c.InsulatorPoint[2].X*-1,c.InsulatorPoint[2].Y,c.InsulatorPoint[2].Z),r),A=Q(i,new u(c.InsulatorPoint[3].X*-1,c.InsulatorPoint[3].Y,c.InsulatorPoint[3].Z),r);this.offsetWires21.push(T),this.offsetWires21.push(y),this.offsetWires21.push(w),this.offsetWires21.push(A),this.ToffsetWires2A2.push(T),this.ToffsetWires2A2.push(y),this.ToffsetWires2A2.push(w),this.ToffsetWires2A2.push(A);break;case $.六分裂:const E=Q(i,new u(c.InsulatorPoint[0].X*-1,c.InsulatorPoint[0].Y,c.InsulatorPoint[0].Z),r),b=Q(i,new u(c.InsulatorPoint[1].X*-1,c.InsulatorPoint[1].Y,c.InsulatorPoint[1].Z),r),D=Q(i,new u(c.InsulatorPoint[2].X*-1,c.InsulatorPoint[2].Y,c.InsulatorPoint[2].Z),r),O=Q(i,new u(c.InsulatorPoint[3].X*-1,c.InsulatorPoint[3].Y,c.InsulatorPoint[3].Z),r),B=Q(i,new u(c.InsulatorPoint[4].X*-1,c.InsulatorPoint[4].Y,c.InsulatorPoint[4].Z),r),L=Q(i,new u(c.InsulatorPoint[5].X*-1,c.InsulatorPoint[5].Y,c.InsulatorPoint[5].Z),r);this.offsetWires21.push(E),this.offsetWires21.push(b),this.offsetWires21.push(D),this.offsetWires21.push(O),this.offsetWires21.push(B),this.offsetWires21.push(L),this.ToffsetWires2A2.push(E),this.ToffsetWires2A2.push(b),this.ToffsetWires2A2.push(D),this.ToffsetWires2A2.push(O),this.ToffsetWires2A2.push(B),this.ToffsetWires2A2.push(L);break;case $.八分裂:const F=Q(i,new u(c.InsulatorPoint[0].X*-1,c.InsulatorPoint[0].Y,c.InsulatorPoint[0].Z),r),N=Q(i,new u(c.InsulatorPoint[1].X*-1,c.InsulatorPoint[1].Y,c.InsulatorPoint[1].Z),r),U=Q(i,new u(c.InsulatorPoint[2].X*-1,c.InsulatorPoint[2].Y,c.InsulatorPoint[2].Z),r),M=Q(i,new u(c.InsulatorPoint[3].X*-1,c.InsulatorPoint[3].Y,c.InsulatorPoint[3].Z),r),j=Q(i,new u(c.InsulatorPoint[4].X*-1,c.InsulatorPoint[4].Y,c.InsulatorPoint[4].Z),r),Y=Q(i,new u(c.InsulatorPoint[5].X*-1,c.InsulatorPoint[5].Y,c.InsulatorPoint[5].Z),r),s=Q(i,new u(c.InsulatorPoint[6].X*-1,c.InsulatorPoint[6].Y,c.InsulatorPoint[6].Z),r),x=Q(i,new u(c.InsulatorPoint[7].X*-1,c.InsulatorPoint[7].Y,c.InsulatorPoint[7].Z),r);this.offsetWires21.push(F),this.offsetWires21.push(N),this.offsetWires21.push(U),this.offsetWires21.push(M),this.offsetWires21.push(j),this.offsetWires21.push(Y),this.offsetWires21.push(s),this.offsetWires21.push(x),this.ToffsetWires2A2.push(F),this.ToffsetWires2A2.push(N),this.ToffsetWires2A2.push(U),this.ToffsetWires2A2.push(M),this.ToffsetWires2A2.push(j),this.ToffsetWires2A2.push(Y),this.ToffsetWires2A2.push(s),this.ToffsetWires2A2.push(x);break}else if(c.type==Ht.跳线串)switch(this.LineInfo.Wairnum){case $.单分裂:this.ToffsetWires2A1.push(h[0]),this.ToffsetWires2A2.push(h[0]);break;case $.双分裂:this.ToffsetWires2A1.push(h[0]),this.ToffsetWires2A1.push(h[1]),this.ToffsetWires2A2.push(h[2]),this.ToffsetWires2A2.push(h[3]);break;case $.四分裂:this.ToffsetWires2A1.push(h[0]),this.ToffsetWires2A1.push(h[1]),this.ToffsetWires2A1.push(h[2]),this.ToffsetWires2A1.push(h[3]),this.ToffsetWires2A2.push(h[4]),this.ToffsetWires2A2.push(h[5]),this.ToffsetWires2A2.push(h[6]),this.ToffsetWires2A2.push(h[7]);break;case $.六分裂:this.ToffsetWires2A1.push(h[0]),this.ToffsetWires2A1.push(h[1]),this.ToffsetWires2A1.push(h[2]),this.ToffsetWires2A1.push(h[3]),this.ToffsetWires2A1.push(h[4]),this.ToffsetWires2A1.push(h[5]),this.ToffsetWires2A2.push(h[6]),this.ToffsetWires2A2.push(h[7]),this.ToffsetWires2A2.push(h[8]),this.ToffsetWires2A2.push(h[9]),this.ToffsetWires2A2.push(h[10]),this.ToffsetWires2A2.push(h[11]);break;case $.八分裂:this.ToffsetWires2A1.push(h[0]),this.ToffsetWires2A1.push(h[1]),this.ToffsetWires2A1.push(h[2]),this.ToffsetWires2A1.push(h[3]),this.ToffsetWires2A1.push(h[4]),this.ToffsetWires2A1.push(h[5]),this.ToffsetWires2A1.push(h[6]),this.ToffsetWires2A1.push(h[7]),this.ToffsetWires2A2.push(h[8]),this.ToffsetWires2A2.push(h[9]),this.ToffsetWires2A2.push(h[10]),this.ToffsetWires2A2.push(h[11]),this.ToffsetWires2A2.push(h[12]),this.ToffsetWires2A2.push(h[13]),this.ToffsetWires2A2.push(h[14]),this.ToffsetWires2A2.push(h[15]);break}break;case nn.B相:if(c.type==Ht.耐张串)if(c.WairFX=="进")switch(this.LineInfo.Wairnum){case $.单分裂:this.offsetWires22.push(h[0]),this.ToffsetWires2B1.push(h[0]);break;case $.双分裂:this.offsetWires22.push(h[0]),this.offsetWires22.push(h[1]),this.ToffsetWires2B1.push(h[2]),this.ToffsetWires2B1.push(h[3]);break;case $.四分裂:this.offsetWires22.push(h[0]),this.offsetWires22.push(h[1]),this.offsetWires22.push(h[2]),this.offsetWires22.push(h[3]),this.ToffsetWires2B1.push(h[4]),this.ToffsetWires2B1.push(h[5]),this.ToffsetWires2B1.push(h[6]),this.ToffsetWires2B1.push(h[7]);break;case $.六分裂:this.offsetWires22.push(h[0]),this.offsetWires22.push(h[1]),this.offsetWires22.push(h[2]),this.offsetWires22.push(h[3]),this.offsetWires22.push(h[4]),this.offsetWires22.push(h[5]),this.ToffsetWires2B1.push(h[6]),this.ToffsetWires2B1.push(h[7]),this.ToffsetWires2B1.push(h[8]),this.ToffsetWires2B1.push(h[9]),this.ToffsetWires2B1.push(h[10]),this.ToffsetWires2B1.push(h[11]);break;case $.八分裂:this.offsetWires22.push(h[0]),this.offsetWires22.push(h[1]),this.offsetWires22.push(h[2]),this.offsetWires22.push(h[3]),this.offsetWires22.push(h[4]),this.offsetWires22.push(h[5]),this.offsetWires22.push(h[6]),this.offsetWires22.push(h[7]),this.ToffsetWires2B1.push(h[8]),this.ToffsetWires2B1.push(h[9]),this.ToffsetWires2B1.push(h[10]),this.ToffsetWires2B1.push(h[11]),this.ToffsetWires2B1.push(h[12]),this.ToffsetWires2B1.push(h[13]),this.ToffsetWires2B1.push(h[14]),this.ToffsetWires2B1.push(h[15]);break}else switch(this.LineInfo.Wairnum){case $.单分裂:const d=Q(i,new u(c.InsulatorPoint[0].X*-1,c.InsulatorPoint[0].Y,c.InsulatorPoint[0].Z),r);this.offsetWires22.push(d),this.ToffsetWires2B2.push(d);break;case $.双分裂:const p=Q(i,new u(c.InsulatorPoint[0].X*-1,c.InsulatorPoint[0].Y,c.InsulatorPoint[0].Z),r),m=Q(i,new u(c.InsulatorPoint[1].X*-1,c.InsulatorPoint[1].Y,c.InsulatorPoint[1].Z),r);this.offsetWires22.push(p),this.offsetWires22.push(m),this.ToffsetWires2B2.push(p),this.ToffsetWires2B2.push(m);break;case $.四分裂:const T=Q(i,new u(c.InsulatorPoint[0].X*-1,c.InsulatorPoint[0].Y,c.InsulatorPoint[0].Z),r),y=Q(i,new u(c.InsulatorPoint[1].X*-1,c.InsulatorPoint[1].Y,c.InsulatorPoint[1].Z),r),w=Q(i,new u(c.InsulatorPoint[2].X*-1,c.InsulatorPoint[2].Y,c.InsulatorPoint[2].Z),r),A=Q(i,new u(c.InsulatorPoint[3].X*-1,c.InsulatorPoint[3].Y,c.InsulatorPoint[3].Z),r);this.offsetWires22.push(T),this.offsetWires22.push(y),this.offsetWires22.push(w),this.offsetWires22.push(A),this.ToffsetWires2B2.push(T),this.ToffsetWires2B2.push(y),this.ToffsetWires2B2.push(w),this.ToffsetWires2B2.push(A);break;case $.六分裂:const E=Q(i,new u(c.InsulatorPoint[0].X*-1,c.InsulatorPoint[0].Y,c.InsulatorPoint[0].Z),r),b=Q(i,new u(c.InsulatorPoint[1].X*-1,c.InsulatorPoint[1].Y,c.InsulatorPoint[1].Z),r),D=Q(i,new u(c.InsulatorPoint[2].X*-1,c.InsulatorPoint[2].Y,c.InsulatorPoint[2].Z),r),O=Q(i,new u(c.InsulatorPoint[3].X*-1,c.InsulatorPoint[3].Y,c.InsulatorPoint[3].Z),r),B=Q(i,new u(c.InsulatorPoint[4].X*-1,c.InsulatorPoint[4].Y,c.InsulatorPoint[4].Z),r),L=Q(i,new u(c.InsulatorPoint[5].X*-1,c.InsulatorPoint[5].Y,c.InsulatorPoint[5].Z),r);this.offsetWires22.push(E),this.offsetWires22.push(b),this.offsetWires22.push(D),this.offsetWires22.push(O),this.offsetWires22.push(B),this.offsetWires22.push(L),this.ToffsetWires2B2.push(E),this.ToffsetWires2B2.push(b),this.ToffsetWires2B2.push(D),this.ToffsetWires2B2.push(O),this.ToffsetWires2B2.push(B),this.ToffsetWires2B2.push(L);break;case $.八分裂:const F=Q(i,new u(c.InsulatorPoint[0].X*-1,c.InsulatorPoint[0].Y,c.InsulatorPoint[0].Z),r),N=Q(i,new u(c.InsulatorPoint[1].X*-1,c.InsulatorPoint[1].Y,c.InsulatorPoint[1].Z),r),U=Q(i,new u(c.InsulatorPoint[2].X*-1,c.InsulatorPoint[2].Y,c.InsulatorPoint[2].Z),r),M=Q(i,new u(c.InsulatorPoint[3].X*-1,c.InsulatorPoint[3].Y,c.InsulatorPoint[3].Z),r),j=Q(i,new u(c.InsulatorPoint[4].X*-1,c.InsulatorPoint[4].Y,c.InsulatorPoint[4].Z),r),Y=Q(i,new u(c.InsulatorPoint[5].X*-1,c.InsulatorPoint[5].Y,c.InsulatorPoint[5].Z),r),s=Q(i,new u(c.InsulatorPoint[6].X*-1,c.InsulatorPoint[6].Y,c.InsulatorPoint[6].Z),r),x=Q(i,new u(c.InsulatorPoint[7].X*-1,c.InsulatorPoint[7].Y,c.InsulatorPoint[7].Z),r);this.offsetWires22.push(F),this.offsetWires22.push(N),this.offsetWires22.push(U),this.offsetWires22.push(M),this.offsetWires22.push(j),this.offsetWires22.push(Y),this.offsetWires22.push(s),this.offsetWires22.push(x),this.ToffsetWires2B2.push(F),this.ToffsetWires2B2.push(N),this.ToffsetWires2B2.push(U),this.ToffsetWires2B2.push(M),this.ToffsetWires2B2.push(j),this.ToffsetWires2B2.push(Y),this.ToffsetWires2B2.push(s),this.ToffsetWires2B2.push(x);break}else if(c.type==Ht.跳线串)switch(this.LineInfo.Wairnum){case $.单分裂:this.ToffsetWires2B1.push(h[0]),this.ToffsetWires2B2.push(h[0]);break;case $.双分裂:this.ToffsetWires2B1.push(h[0]),this.ToffsetWires2B1.push(h[1]),this.ToffsetWires2B2.push(h[2]),this.ToffsetWires2B2.push(h[3]);break;case $.四分裂:this.ToffsetWires2B1.push(h[0]),this.ToffsetWires2B1.push(h[1]),this.ToffsetWires2B1.push(h[2]),this.ToffsetWires2B1.push(h[3]),this.ToffsetWires2B2.push(h[4]),this.ToffsetWires2B2.push(h[5]),this.ToffsetWires2B2.push(h[6]),this.ToffsetWires2B2.push(h[7]);break;case $.六分裂:this.ToffsetWires2B1.push(h[0]),this.ToffsetWires2B1.push(h[1]),this.ToffsetWires2B1.push(h[2]),this.ToffsetWires2B1.push(h[3]),this.ToffsetWires2B1.push(h[4]),this.ToffsetWires2B1.push(h[5]),this.ToffsetWires2B2.push(h[6]),this.ToffsetWires2B2.push(h[7]),this.ToffsetWires2B2.push(h[8]),this.ToffsetWires2B2.push(h[9]),this.ToffsetWires2B2.push(h[10]),this.ToffsetWires2B2.push(h[11]);break;case $.八分裂:this.ToffsetWires2B1.push(h[0]),this.ToffsetWires2B1.push(h[1]),this.ToffsetWires2B1.push(h[2]),this.ToffsetWires2B1.push(h[3]),this.ToffsetWires2B1.push(h[4]),this.ToffsetWires2B1.push(h[5]),this.ToffsetWires2B1.push(h[6]),this.ToffsetWires2B1.push(h[7]),this.ToffsetWires2B2.push(h[8]),this.ToffsetWires2B2.push(h[9]),this.ToffsetWires2B2.push(h[10]),this.ToffsetWires2B2.push(h[11]),this.ToffsetWires2B2.push(h[12]),this.ToffsetWires2B2.push(h[13]),this.ToffsetWires2B2.push(h[14]),this.ToffsetWires2B2.push(h[15]);break}break;case nn.C相:if(c.type==Ht.耐张串)if(c.WairFX=="进")switch(this.LineInfo.Wairnum){case $.单分裂:this.offsetWires23.push(h[0]),this.ToffsetWires2C1.push(h[0]);break;case $.双分裂:this.offsetWires23.push(h[0]),this.offsetWires23.push(h[1]),this.ToffsetWires2C1.push(h[2]),this.ToffsetWires2C1.push(h[3]);break;case $.四分裂:this.offsetWires23.push(h[0]),this.offsetWires23.push(h[1]),this.offsetWires23.push(h[2]),this.offsetWires23.push(h[3]),this.ToffsetWires2C1.push(h[4]),this.ToffsetWires2C1.push(h[5]),this.ToffsetWires2C1.push(h[6]),this.ToffsetWires2C1.push(h[7]);break;case $.六分裂:this.offsetWires23.push(h[0]),this.offsetWires23.push(h[1]),this.offsetWires23.push(h[2]),this.offsetWires23.push(h[3]),this.offsetWires23.push(h[4]),this.offsetWires23.push(h[5]),this.ToffsetWires2C1.push(h[6]),this.ToffsetWires2C1.push(h[7]),this.ToffsetWires2C1.push(h[8]),this.ToffsetWires2C1.push(h[9]),this.ToffsetWires2C1.push(h[10]),this.ToffsetWires2C1.push(h[11]);break;case $.八分裂:this.offsetWires23.push(h[0]),this.offsetWires23.push(h[1]),this.offsetWires23.push(h[2]),this.offsetWires23.push(h[3]),this.offsetWires23.push(h[4]),this.offsetWires23.push(h[5]),this.offsetWires23.push(h[6]),this.offsetWires23.push(h[7]),this.ToffsetWires2C1.push(h[8]),this.ToffsetWires2C1.push(h[9]),this.ToffsetWires2C1.push(h[10]),this.ToffsetWires2C1.push(h[11]),this.ToffsetWires2C1.push(h[12]),this.ToffsetWires2C1.push(h[13]),this.ToffsetWires2C1.push(h[14]),this.ToffsetWires2C1.push(h[15]);break}else switch(this.LineInfo.Wairnum){case $.单分裂:const d=Q(i,new u(c.InsulatorPoint[0].X*-1,c.InsulatorPoint[0].Y,c.InsulatorPoint[0].Z),r);this.offsetWires23.push(d),this.ToffsetWires2C2.push(d);break;case $.双分裂:const p=Q(i,new u(c.InsulatorPoint[0].X*-1,c.InsulatorPoint[0].Y,c.InsulatorPoint[0].Z),r),m=Q(i,new u(c.InsulatorPoint[1].X*-1,c.InsulatorPoint[1].Y,c.InsulatorPoint[1].Z),r);this.offsetWires23.push(p),this.offsetWires23.push(m),this.ToffsetWires2C2.push(p),this.ToffsetWires2C2.push(m);break;case $.四分裂:const T=Q(i,new u(c.InsulatorPoint[0].X*-1,c.InsulatorPoint[0].Y,c.InsulatorPoint[0].Z),r),y=Q(i,new u(c.InsulatorPoint[1].X*-1,c.InsulatorPoint[1].Y,c.InsulatorPoint[1].Z),r),w=Q(i,new u(c.InsulatorPoint[2].X*-1,c.InsulatorPoint[2].Y,c.InsulatorPoint[2].Z),r),A=Q(i,new u(c.InsulatorPoint[3].X*-1,c.InsulatorPoint[3].Y,c.InsulatorPoint[3].Z),r);this.offsetWires23.push(T),this.offsetWires23.push(y),this.offsetWires23.push(w),this.offsetWires23.push(A),this.ToffsetWires2C2.push(T),this.ToffsetWires2C2.push(y),this.ToffsetWires2C2.push(w),this.ToffsetWires2C2.push(A);break;case $.六分裂:const E=Q(i,new u(c.InsulatorPoint[0].X*-1,c.InsulatorPoint[0].Y,c.InsulatorPoint[0].Z),r),b=Q(i,new u(c.InsulatorPoint[1].X*-1,c.InsulatorPoint[1].Y,c.InsulatorPoint[1].Z),r),D=Q(i,new u(c.InsulatorPoint[2].X*-1,c.InsulatorPoint[2].Y,c.InsulatorPoint[2].Z),r),O=Q(i,new u(c.InsulatorPoint[3].X*-1,c.InsulatorPoint[3].Y,c.InsulatorPoint[3].Z),r),B=Q(i,new u(c.InsulatorPoint[4].X*-1,c.InsulatorPoint[4].Y,c.InsulatorPoint[4].Z),r),L=Q(i,new u(c.InsulatorPoint[5].X*-1,c.InsulatorPoint[5].Y,c.InsulatorPoint[5].Z),r);this.offsetWires23.push(E),this.offsetWires23.push(b),this.offsetWires23.push(D),this.offsetWires23.push(O),this.offsetWires23.push(B),this.offsetWires23.push(L),this.ToffsetWires2C2.push(E),this.ToffsetWires2C2.push(b),this.ToffsetWires2C2.push(D),this.ToffsetWires2C2.push(O),this.ToffsetWires2C2.push(B),this.ToffsetWires2C2.push(L);break;case $.八分裂:const F=Q(i,new u(c.InsulatorPoint[0].X*-1,c.InsulatorPoint[0].Y,c.InsulatorPoint[0].Z),r),N=Q(i,new u(c.InsulatorPoint[1].X*-1,c.InsulatorPoint[1].Y,c.InsulatorPoint[1].Z),r),U=Q(i,new u(c.InsulatorPoint[2].X*-1,c.InsulatorPoint[2].Y,c.InsulatorPoint[2].Z),r),M=Q(i,new u(c.InsulatorPoint[3].X*-1,c.InsulatorPoint[3].Y,c.InsulatorPoint[3].Z),r),j=Q(i,new u(c.InsulatorPoint[4].X*-1,c.InsulatorPoint[4].Y,c.InsulatorPoint[4].Z),r),Y=Q(i,new u(c.InsulatorPoint[5].X*-1,c.InsulatorPoint[5].Y,c.InsulatorPoint[5].Z),r),s=Q(i,new u(c.InsulatorPoint[6].X*-1,c.InsulatorPoint[6].Y,c.InsulatorPoint[6].Z),r),x=Q(i,new u(c.InsulatorPoint[7].X*-1,c.InsulatorPoint[7].Y,c.InsulatorPoint[7].Z),r);this.offsetWires23.push(F),this.offsetWires23.push(N),this.offsetWires23.push(U),this.offsetWires23.push(M),this.offsetWires23.push(j),this.offsetWires23.push(Y),this.offsetWires23.push(s),this.offsetWires23.push(x),this.ToffsetWires2C2.push(F),this.ToffsetWires2C2.push(N),this.ToffsetWires2C2.push(U),this.ToffsetWires2C2.push(M),this.ToffsetWires2C2.push(j),this.ToffsetWires2C2.push(Y),this.ToffsetWires2C2.push(s),this.ToffsetWires2C2.push(x);break}else if(c.type==Ht.跳线串)switch(this.LineInfo.Wairnum){case $.单分裂:this.ToffsetWires2C1.push(h[0]),this.ToffsetWires2C2.push(h[0]);break;case $.双分裂:this.ToffsetWires2C1.push(h[0]),this.ToffsetWires2C1.push(h[1]),this.ToffsetWires2C2.push(h[2]),this.ToffsetWires2C2.push(h[3]);break;case $.四分裂:this.ToffsetWires2C1.push(h[0]),this.ToffsetWires2C1.push(h[1]),this.ToffsetWires2C1.push(h[2]),this.ToffsetWires2C1.push(h[3]),this.ToffsetWires2C2.push(h[4]),this.ToffsetWires2C2.push(h[5]),this.ToffsetWires2C2.push(h[6]),this.ToffsetWires2C2.push(h[7]);break;case $.六分裂:this.ToffsetWires2C1.push(h[0]),this.ToffsetWires2C1.push(h[1]),this.ToffsetWires2C1.push(h[2]),this.ToffsetWires2C1.push(h[3]),this.ToffsetWires2C1.push(h[4]),this.ToffsetWires2C1.push(h[5]),this.ToffsetWires2C2.push(h[6]),this.ToffsetWires2C2.push(h[7]),this.ToffsetWires2C2.push(h[8]),this.ToffsetWires2C2.push(h[9]),this.ToffsetWires2C2.push(h[10]),this.ToffsetWires2C2.push(h[11]);break;case $.八分裂:this.ToffsetWires2C1.push(h[0]),this.ToffsetWires2C1.push(h[1]),this.ToffsetWires2C1.push(h[2]),this.ToffsetWires2C1.push(h[3]),this.ToffsetWires2C1.push(h[4]),this.ToffsetWires2C1.push(h[5]),this.ToffsetWires2C1.push(h[6]),this.ToffsetWires2C1.push(h[7]),this.ToffsetWires2C2.push(h[8]),this.ToffsetWires2C2.push(h[9]),this.ToffsetWires2C2.push(h[10]),this.ToffsetWires2C2.push(h[11]),this.ToffsetWires2C2.push(h[12]),this.ToffsetWires2C2.push(h[13]),this.ToffsetWires2C2.push(h[14]),this.ToffsetWires2C2.push(h[15]);break}break}else switch(c.PhaseSequence){case nn.A相:h.forEach(d=>{this.offsetWires21.push(d)});break;case nn.B相:h.forEach(d=>{this.offsetWires22.push(d)});break;case nn.C相:h.forEach(d=>{this.offsetWires23.push(d)});break}else if(this.LineInfo.towers[o].type==$i.耐张塔)switch(f){case 11:this.offsetWires21.push(h[0]),this.ToffsetWires2A1.push(h[0]);break;case 12:this.ToffsetWires2A1.push(h[0]),this.ToffsetWires2A2.push(h[0]);break;case 13:const d=Q(i,new u(c.InsulatorPoint[0].X*-1,c.InsulatorPoint[0].Y,c.InsulatorPoint[0].Z),r);this.offsetWires21.push(d),this.ToffsetWires2A2.push(d);break;case 14:this.offsetWires22.push(h[0]),this.ToffsetWires2B1.push(h[0]);break;case 15:this.ToffsetWires2B1.push(h[0]),this.ToffsetWires2B2.push(h[0]);break;case 16:const p=Q(i,new u(c.InsulatorPoint[0].X*-1,c.InsulatorPoint[0].Y,c.InsulatorPoint[0].Z),r);this.offsetWires22.push(p),this.ToffsetWires2B2.push(p);break;case 17:this.offsetWires23.push(h[0]),this.ToffsetWires2C1.push(h[0]);break;case 18:this.ToffsetWires2C1.push(h[0]),this.ToffsetWires2C2.push(h[0]);break;case 19:const m=Q(i,new u(c.InsulatorPoint[0].X*-1,c.InsulatorPoint[0].Y,c.InsulatorPoint[0].Z),r);this.offsetWires23.push(m),this.ToffsetWires2C2.push(m);break}else switch(f){case 5:h.forEach(d=>{this.offsetWires21.push(d)});break;case 6:h.forEach(d=>{this.offsetWires22.push(d)});break;case 7:h.forEach(d=>{this.offsetWires23.push(d)});break}break;case ar.地线:if(this.LineInfo.ISPhaseSequence)switch(c.PhaseSequence){case nn.地线1:this.offsetGrouundWires11.push(h[0]);break;case nn.地线2:this.offsetGrouundWires12.push(h[0]);break}else switch(f){case 0:this.offsetGrouundWires11.push(h[0]);break;case 1:this.offsetGrouundWires12.push(h[0]);break}break}f=f+1});debugger;if(this.offsetWires11.length>0&&o>0){const c=[],h=[],d=[],p=[],m=[],T=[],y=[],w=[];switch(this.LineInfo.Wairnum){case $.单分裂:this.offsetWires11.length>=2&&(c.push(this.offsetWires11[t]),c.push(this.offsetWires11[t-1]),this.offsetArcWires1A=W(c),this.entityCollection2.add(v(this.offsetArcWires1A,"导线1_A1"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireAColor)));break;case $.双分裂:this.offsetWires11.length>=4&&(c.push(this.offsetWires11[t]),c.push(this.offsetWires11[t-2]),this.offsetArcWires1A=W(c),this.entityCollection2.add(v(this.offsetArcWires1A,"导线1_A1"+(o-2)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),h.push(this.offsetWires11[t+1]),h.push(this.offsetWires11[t-1]),this.offsetArcWires1A=W(h),this.entityCollection2.add(v(this.offsetArcWires1A,"导线1_A2"+(o-2)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireAColor)));break;case $.四分裂:this.offsetWires11.length>=8&&(c.push(this.offsetWires11[t]),c.push(this.offsetWires11[t-4]),this.offsetArcWires1A=W(c),this.entityCollection2.add(v(this.offsetArcWires1A,"导线1_A1"+(o-2)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),h.push(this.offsetWires11[t+1]),h.push(this.offsetWires11[t-3]),this.offsetArcWires1A=W(h),this.entityCollection2.add(v(this.offsetArcWires1A,"导线1_A2"+(o-2)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),d.push(this.offsetWires11[t+2]),d.push(this.offsetWires11[t-2]),this.offsetArcWires1A=W(d),this.entityCollection2.add(v(this.offsetArcWires1A,"导线1_A3"+(o-2)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),p.push(this.offsetWires11[t+3]),p.push(this.offsetWires11[t-1]),this.offsetArcWires1A=W(p),this.entityCollection2.add(v(this.offsetArcWires1A,"导线1_A4"+(o-2)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireAColor)));break;case $.六分裂:this.offsetWires11.length>=12&&(c.push(this.offsetWires11[t]),c.push(this.offsetWires11[t-6]),this.offsetArcWires1A=W(c),this.entityCollection2.add(v(this.offsetArcWires1A,"导线1_A1"+(o-2)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),h.push(this.offsetWires11[t+1]),h.push(this.offsetWires11[t-5]),this.offsetArcWires1A=W(h),this.entityCollection2.add(v(this.offsetArcWires1A,"导线1_A2"+(o-2)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),d.push(this.offsetWires11[t+2]),d.push(this.offsetWires11[t-4]),this.offsetArcWires1A=W(d),this.entityCollection2.add(v(this.offsetArcWires1A,"导线1_A3"+(o-2)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),p.push(this.offsetWires11[t+3]),p.push(this.offsetWires11[t-3]),this.offsetArcWires1A=W(p),this.entityCollection2.add(v(this.offsetArcWires1A,"导线1_A4"+(o-2)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),m.push(this.offsetWires11[t+4]),m.push(this.offsetWires11[t-2]),this.offsetArcWires1A=W(m),this.entityCollection2.add(v(this.offsetArcWires1A,"导线1_A5"+(o-2)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),T.push(this.offsetWires11[t+5]),T.push(this.offsetWires11[t-1]),this.offsetArcWires1A=W(T),this.entityCollection2.add(v(this.offsetArcWires1A,"导线1_A6"+(o-2)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireAColor)));break;case $.八分裂:this.offsetWires11.length>=16&&(c.push(this.offsetWires11[t]),c.push(this.offsetWires11[t-8]),this.offsetArcWires1A=W(c),this.entityCollection2.add(v(this.offsetArcWires1A,"导线1_A1"+(o-2)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),h.push(this.offsetWires11[t+1]),h.push(this.offsetWires11[t-7]),this.offsetArcWires1A=W(h),this.entityCollection2.add(v(this.offsetArcWires1A,"导线1_A2"+(o-2)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),d.push(this.offsetWires11[t+2]),d.push(this.offsetWires11[t-6]),this.offsetArcWires1A=W(d),this.entityCollection2.add(v(this.offsetArcWires1A,"导线1_A3"+(o-2)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),p.push(this.offsetWires11[t+3]),p.push(this.offsetWires11[t-5]),this.offsetArcWires1A=W(p),this.entityCollection2.add(v(this.offsetArcWires1A,"导线1_A4"+(o-2)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),m.push(this.offsetWires11[t+4]),m.push(this.offsetWires11[t-4]),this.offsetArcWires1A=W(m),this.entityCollection2.add(v(this.offsetArcWires1A,"导线1_A5"+(o-2)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),T.push(this.offsetWires11[t+5]),T.push(this.offsetWires11[t-3]),this.offsetArcWires1A=W(T),this.entityCollection2.add(v(this.offsetArcWires1A,"导线1_A6"+(o-2)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),y.push(this.offsetWires11[t+6]),y.push(this.offsetWires11[t-2]),this.offsetArcWires1A=W(y),this.entityCollection2.add(v(this.offsetArcWires1A,"导线1_A7"+(o-2)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),w.push(this.offsetWires11[t+7]),w.push(this.offsetWires11[t-1]),this.offsetArcWires1A=W(w),this.entityCollection2.add(v(this.offsetArcWires1A,"导线1_A8"+(o-2)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireAColor)));break}}if(this.offsetWires12.length>0&&o>0){const c=[],h=[],d=[],p=[],m=[],T=[],y=[],w=[];switch(this.LineInfo.Wairnum){case $.单分裂:c.push(this.offsetWires12[t]),c.push(this.offsetWires12[t-1]),this.offsetArcWires1B=W(c),this.entityCollection2.add(v(this.offsetArcWires1B,"导线1_B1"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireAColor));break;case $.双分裂:c.push(this.offsetWires12[t]),c.push(this.offsetWires12[t-2]),this.offsetArcWires1B=W(c),this.entityCollection2.add(v(this.offsetArcWires1B,"导线1_B1"+(o-2)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),h.push(this.offsetWires12[t+1]),h.push(this.offsetWires12[t-1]),this.offsetArcWires1B=W(h),this.entityCollection2.add(v(this.offsetArcWires1B,"导线1_B2"+(o-2)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireAColor));break;case $.四分裂:c.push(this.offsetWires12[t]),c.push(this.offsetWires12[t-4]),this.offsetArcWires1B=W(c),this.entityCollection2.add(v(this.offsetArcWires1B,"导线1_B1"+(o-2)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),h.push(this.offsetWires12[t+1]),h.push(this.offsetWires12[t-3]),this.offsetArcWires1B=W(h),this.entityCollection2.add(v(this.offsetArcWires1B,"导线1_B2"+(o-2)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),d.push(this.offsetWires12[t+2]),d.push(this.offsetWires12[t-2]),this.offsetArcWires1B=W(d),this.entityCollection2.add(v(this.offsetArcWires1B,"导线1_B3"+(o-2)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),p.push(this.offsetWires12[t+3]),p.push(this.offsetWires12[t-1]),this.offsetArcWires1B=W(p),this.entityCollection2.add(v(this.offsetArcWires1B,"导线1_B4"+(o-2)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireAColor));break;case $.六分裂:c.push(this.offsetWires12[t]),c.push(this.offsetWires12[t-6]),this.offsetArcWires1B=W(c),this.entityCollection2.add(v(this.offsetArcWires1B,"导线1_B1"+(o-2)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),h.push(this.offsetWires12[t+1]),h.push(this.offsetWires12[t-5]),this.offsetArcWires1B=W(h),this.entityCollection2.add(v(this.offsetArcWires1B,"导线1_B2"+(o-2)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),d.push(this.offsetWires12[t+2]),d.push(this.offsetWires12[t-4]),this.offsetArcWires1B=W(d),this.entityCollection2.add(v(this.offsetArcWires1B,"导线1_B3"+(o-2)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),p.push(this.offsetWires12[t+3]),p.push(this.offsetWires12[t-3]),this.offsetArcWires1B=W(p),this.entityCollection2.add(v(this.offsetArcWires1B,"导线1_B4"+(o-2)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),m.push(this.offsetWires12[t+4]),m.push(this.offsetWires12[t-2]),this.offsetArcWires1B=W(m),this.entityCollection2.add(v(this.offsetArcWires1B,"导线1_B5"+(o-2)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),T.push(this.offsetWires12[t+5]),T.push(this.offsetWires12[t-1]),this.offsetArcWires1B=W(T),this.entityCollection2.add(v(this.offsetArcWires1B,"导线1_B6"+(o-2)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireAColor));break;case $.八分裂:c.push(this.offsetWires12[t]),c.push(this.offsetWires12[t-8]),this.offsetArcWires1B=W(c),this.entityCollection2.add(v(this.offsetArcWires1B,"导线1_B1"+(o-2)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),h.push(this.offsetWires12[t+1]),h.push(this.offsetWires12[t-7]),this.offsetArcWires1B=W(h),this.entityCollection2.add(v(this.offsetArcWires1B,"导线1_B2"+(o-2)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),d.push(this.offsetWires12[t+2]),d.push(this.offsetWires12[t-6]),this.offsetArcWires1B=W(d),this.entityCollection2.add(v(this.offsetArcWires1B,"导线1_B3"+(o-2)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),p.push(this.offsetWires12[t+3]),p.push(this.offsetWires12[t-5]),this.offsetArcWires1B=W(p),this.entityCollection2.add(v(this.offsetArcWires1B,"导线1_B4"+(o-2)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),m.push(this.offsetWires12[t+4]),m.push(this.offsetWires12[t-4]),this.offsetArcWires1B=W(m),this.entityCollection2.add(v(this.offsetArcWires1B,"导线1_B5"+(o-2)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),T.push(this.offsetWires12[t+5]),T.push(this.offsetWires12[t-3]),this.offsetArcWires1B=W(T),this.entityCollection2.add(v(this.offsetArcWires1B,"导线1_B6"+(o-2)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),y.push(this.offsetWires12[t+6]),y.push(this.offsetWires12[t-2]),this.offsetArcWires1B=W(y),this.entityCollection2.add(v(this.offsetArcWires1B,"导线1_B7"+(o-2)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),w.push(this.offsetWires12[t+7]),w.push(this.offsetWires12[t-1]),this.offsetArcWires1B=W(w),this.entityCollection2.add(v(this.offsetArcWires1B,"导线1_B8"+(o-2)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireAColor));break}}if(this.offsetWires13.length>0&&o>0){const c=[],h=[],d=[],p=[],m=[],T=[],y=[],w=[];switch(this.LineInfo.Wairnum){case $.单分裂:c.push(this.offsetWires13[t]),c.push(this.offsetWires13[t-1]),this.offsetArcWires1C=W(c),this.entityCollection2.add(v(this.offsetArcWires1C,"导线1_C1"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireAColor));break;case $.双分裂:c.push(this.offsetWires13[t]),c.push(this.offsetWires13[t-2]),this.offsetArcWires1C=W(c),this.entityCollection2.add(v(this.offsetArcWires1C,"导线1_C1"+(o-2)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),h.push(this.offsetWires13[t+1]),h.push(this.offsetWires13[t-1]),this.offsetArcWires1C=W(h),this.entityCollection2.add(v(this.offsetArcWires1C,"导线1_C2"+(o-2)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireAColor));break;case $.四分裂:c.push(this.offsetWires13[t]),c.push(this.offsetWires13[t-4]),this.offsetArcWires1C=W(c),this.entityCollection2.add(v(this.offsetArcWires1C,"导线1_C1"+(o-2)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),h.push(this.offsetWires13[t+1]),h.push(this.offsetWires13[t-3]),this.offsetArcWires1C=W(h),this.entityCollection2.add(v(this.offsetArcWires1C,"导线1_C2"+(o-2)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),d.push(this.offsetWires13[t+2]),d.push(this.offsetWires13[t-2]),this.offsetArcWires1C=W(d),this.entityCollection2.add(v(this.offsetArcWires1C,"导线1_C3"+(o-2)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),p.push(this.offsetWires13[t+3]),p.push(this.offsetWires13[t-1]),this.offsetArcWires1C=W(p),this.entityCollection2.add(v(this.offsetArcWires1C,"导线1_C4"+(o-2)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireAColor));break;case $.六分裂:c.push(this.offsetWires13[t]),c.push(this.offsetWires13[t-6]),this.offsetArcWires1C=W(c),this.entityCollection2.add(v(this.offsetArcWires1C,"导线1_C1"+(o-2)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),h.push(this.offsetWires13[t+1]),h.push(this.offsetWires13[t-5]),this.offsetArcWires1C=W(h),this.entityCollection2.add(v(this.offsetArcWires1C,"导线1_C2"+(o-2)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),d.push(this.offsetWires13[t+2]),d.push(this.offsetWires13[t-4]),this.offsetArcWires1C=W(d),this.entityCollection2.add(v(this.offsetArcWires1C,"导线1_C3"+(o-2)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),p.push(this.offsetWires13[t+3]),p.push(this.offsetWires13[t-3]),this.offsetArcWires1C=W(p),this.entityCollection2.add(v(this.offsetArcWires1C,"导线1_C4"+(o-2)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),m.push(this.offsetWires13[t+4]),m.push(this.offsetWires13[t-2]),this.offsetArcWires1C=W(m),this.entityCollection2.add(v(this.offsetArcWires1C,"导线1_C5"+(o-2)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),T.push(this.offsetWires13[t+5]),T.push(this.offsetWires13[t-1]),this.offsetArcWires1C=W(T),this.entityCollection2.add(v(this.offsetArcWires1C,"导线1_C6"+(o-2)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireAColor));break;case $.八分裂:c.push(this.offsetWires13[t]),c.push(this.offsetWires13[t-8]),this.offsetArcWires1C=W(c),this.entityCollection2.add(v(this.offsetArcWires1C,"导线1_C1"+(o-2)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),h.push(this.offsetWires13[t+1]),h.push(this.offsetWires13[t-7]),this.offsetArcWires1C=W(h),this.entityCollection2.add(v(this.offsetArcWires1C,"导线1_C2"+(o-2)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),d.push(this.offsetWires13[t+2]),d.push(this.offsetWires13[t-6]),this.offsetArcWires1C=W(d),this.entityCollection2.add(v(this.offsetArcWires1C,"导线1_C3"+(o-2)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),p.push(this.offsetWires13[t+3]),p.push(this.offsetWires13[t-5]),this.offsetArcWires1C=W(p),this.entityCollection2.add(v(this.offsetArcWires1C,"导线1_C4"+(o-2)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),m.push(this.offsetWires13[t+4]),m.push(this.offsetWires13[t-4]),this.offsetArcWires1C=W(m),this.entityCollection2.add(v(this.offsetArcWires1C,"导线1_C5"+(o-2)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),T.push(this.offsetWires13[t+5]),T.push(this.offsetWires13[t-3]),this.offsetArcWires1C=W(T),this.entityCollection2.add(v(this.offsetArcWires1C,"导线1_C6"+(o-2)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),y.push(this.offsetWires13[t+6]),y.push(this.offsetWires13[t-2]),this.offsetArcWires1C=W(y),this.entityCollection2.add(v(this.offsetArcWires1C,"导线1_C7"+(o-2)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),w.push(this.offsetWires13[t+7]),w.push(this.offsetWires13[t-1]),this.offsetArcWires1C=W(w),this.entityCollection2.add(v(this.offsetArcWires1C,"导线1_C8"+(o-2)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireAColor));break}}if(this.offsetWires21.length>0&&o>0){const c=[],h=[],d=[],p=[],m=[],T=[],y=[],w=[];switch(this.LineInfo.Wairnum){case $.单分裂:c.push(this.offsetWires21[t]),c.push(this.offsetWires21[t-1]),this.offsetArcWires2A=W(c),this.entityCollection2.add(v(this.offsetArcWires2A,"导线2_A1"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireAColor));break;case $.双分裂:c.push(this.offsetWires21[t]),c.push(this.offsetWires21[t-2]),this.offsetArcWires2A=W(c),this.entityCollection2.add(v(this.offsetArcWires2A,"导线2_A1"+(o-2)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),h.push(this.offsetWires21[t+1]),h.push(this.offsetWires21[t-1]),this.offsetArcWires2A=W(h),this.entityCollection2.add(v(this.offsetArcWires2A,"导线2_A2"+(o-2)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireAColor));break;case $.四分裂:c.push(this.offsetWires21[t]),c.push(this.offsetWires21[t-4]),this.offsetArcWires2A=W(c),this.entityCollection2.add(v(this.offsetArcWires2A,"导线2_A1"+(o-2)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),h.push(this.offsetWires21[t+1]),h.push(this.offsetWires21[t-3]),this.offsetArcWires2A=W(h),this.entityCollection2.add(v(this.offsetArcWires2A,"导线2_A2"+(o-2)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),d.push(this.offsetWires21[t+2]),d.push(this.offsetWires21[t-2]),this.offsetArcWires2A=W(d),this.entityCollection2.add(v(this.offsetArcWires2A,"导线2_A3"+(o-2)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),p.push(this.offsetWires21[t+3]),p.push(this.offsetWires21[t-1]),this.offsetArcWires2A=W(p),this.entityCollection2.add(v(this.offsetArcWires2A,"导线2_A4"+(o-2)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireAColor));break;case $.六分裂:c.push(this.offsetWires21[t]),c.push(this.offsetWires21[t-6]),this.offsetArcWires2A=W(c),this.entityCollection2.add(v(this.offsetArcWires2A,"导线2_A1"+(o-2)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),h.push(this.offsetWires21[t+1]),h.push(this.offsetWires21[t-5]),this.offsetArcWires2A=W(h),this.entityCollection2.add(v(this.offsetArcWires2A,"导线2_A2"+(o-2)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),d.push(this.offsetWires21[t+2]),d.push(this.offsetWires21[t-4]),this.offsetArcWires2A=W(d),this.entityCollection2.add(v(this.offsetArcWires2A,"导线2_A3"+(o-2)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),p.push(this.offsetWires21[t+3]),p.push(this.offsetWires21[t-3]),this.offsetArcWires2A=W(p),this.entityCollection2.add(v(this.offsetArcWires2A,"导线2_A4"+(o-2)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),m.push(this.offsetWires21[t+4]),m.push(this.offsetWires21[t-2]),this.offsetArcWires2A=W(m),this.entityCollection2.add(v(this.offsetArcWires2A,"导线2_A5"+(o-2)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),T.push(this.offsetWires21[t+5]),T.push(this.offsetWires21[t-1]),this.offsetArcWires2A=W(T),this.entityCollection2.add(v(this.offsetArcWires2A,"导线2_A6"+(o-2)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireAColor));break;case $.八分裂:c.push(this.offsetWires21[t]),c.push(this.offsetWires21[t-8]),this.offsetArcWires2A=W(c),this.entityCollection2.add(v(this.offsetArcWires2A,"导线2_A1"+(o-2)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),h.push(this.offsetWires21[t+1]),h.push(this.offsetWires21[t-7]),this.offsetArcWires2A=W(h),this.entityCollection2.add(v(this.offsetArcWires2A,"导线2_A2"+(o-2)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),d.push(this.offsetWires21[t+2]),d.push(this.offsetWires21[t-6]),this.offsetArcWires2A=W(d),this.entityCollection2.add(v(this.offsetArcWires2A,"导线2_A3"+(o-2)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),p.push(this.offsetWires21[t+3]),p.push(this.offsetWires21[t-5]),this.offsetArcWires2A=W(p),this.entityCollection2.add(v(this.offsetArcWires2A,"导线2_A4"+(o-2)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),m.push(this.offsetWires21[t+4]),m.push(this.offsetWires21[t-4]),this.offsetArcWires2A=W(m),this.entityCollection2.add(v(this.offsetArcWires2A,"导线2_A5"+(o-2)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),T.push(this.offsetWires21[t+5]),T.push(this.offsetWires21[t-3]),this.offsetArcWires2A=W(T),this.entityCollection2.add(v(this.offsetArcWires2A,"导线2_A6"+(o-2)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),y.push(this.offsetWires21[t+6]),y.push(this.offsetWires21[t-2]),this.offsetArcWires2A=W(y),this.entityCollection2.add(v(this.offsetArcWires2A,"导线2_A7"+(o-2)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),w.push(this.offsetWires21[t+7]),w.push(this.offsetWires21[t-1]),this.offsetArcWires2A=W(w),this.entityCollection2.add(v(this.offsetArcWires2A,"导线2_A8"+(o-2)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireAColor));break}}if(this.offsetWires22.length>0&&o>0){const c=[],h=[],d=[],p=[],m=[],T=[],y=[],w=[];switch(this.LineInfo.Wairnum){case $.单分裂:c.push(this.offsetWires22[t]),c.push(this.offsetWires22[t-1]),this.offsetArcWires2B=W(c),this.entityCollection2.add(v(this.offsetArcWires2B,"导线2_B1"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireAColor));break;case $.双分裂:c.push(this.offsetWires22[t]),c.push(this.offsetWires22[t-2]),this.offsetArcWires2B=W(c),this.entityCollection2.add(v(this.offsetArcWires2B,"导线2_B1"+(o-2)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),h.push(this.offsetWires22[t+1]),h.push(this.offsetWires22[t-1]),this.offsetArcWires2B=W(h),this.entityCollection2.add(v(this.offsetArcWires2B,"导线2_B2"+(o-2)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireAColor));break;case $.四分裂:c.push(this.offsetWires22[t]),c.push(this.offsetWires22[t-4]),this.offsetArcWires2B=W(c),this.entityCollection2.add(v(this.offsetArcWires2B,"导线2_B1"+(o-2)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),h.push(this.offsetWires22[t+1]),h.push(this.offsetWires22[t-3]),this.offsetArcWires2B=W(h),this.entityCollection2.add(v(this.offsetArcWires2B,"导线2_B2"+(o-2)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),d.push(this.offsetWires22[t+2]),d.push(this.offsetWires22[t-2]),this.offsetArcWires2B=W(d),this.entityCollection2.add(v(this.offsetArcWires2B,"导线2_B3"+(o-2)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),p.push(this.offsetWires22[t+3]),p.push(this.offsetWires22[t-1]),this.offsetArcWires2B=W(p),this.entityCollection2.add(v(this.offsetArcWires2B,"导线2_B4"+(o-2)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireAColor));break;case $.六分裂:c.push(this.offsetWires22[t]),c.push(this.offsetWires22[t-6]),this.offsetArcWires2B=W(c),this.entityCollection2.add(v(this.offsetArcWires2B,"导线2_B1"+(o-2)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),h.push(this.offsetWires22[t+1]),h.push(this.offsetWires22[t-5]),this.offsetArcWires2B=W(h),this.entityCollection2.add(v(this.offsetArcWires2B,"导线2_B2"+(o-2)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),d.push(this.offsetWires22[t+2]),d.push(this.offsetWires22[t-4]),this.offsetArcWires2B=W(d),this.entityCollection2.add(v(this.offsetArcWires2B,"导线2_B3"+(o-2)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),p.push(this.offsetWires22[t+3]),p.push(this.offsetWires22[t-3]),this.offsetArcWires2B=W(p),this.entityCollection2.add(v(this.offsetArcWires2B,"导线2_B4"+(o-2)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),m.push(this.offsetWires22[t+4]),m.push(this.offsetWires22[t-2]),this.offsetArcWires2B=W(m),this.entityCollection2.add(v(this.offsetArcWires2B,"导线2_B5"+(o-2)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),T.push(this.offsetWires22[t+5]),T.push(this.offsetWires22[t-1]),this.offsetArcWires2B=W(T),this.entityCollection2.add(v(this.offsetArcWires2B,"导线2_B6"+(o-2)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireAColor));break;case $.八分裂:c.push(this.offsetWires22[t]),c.push(this.offsetWires22[t-8]),this.offsetArcWires2B=W(c),this.entityCollection2.add(v(this.offsetArcWires2B,"导线2_B1"+(o-2)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),h.push(this.offsetWires22[t+1]),h.push(this.offsetWires22[t-7]),this.offsetArcWires2B=W(h),this.entityCollection2.add(v(this.offsetArcWires2B,"导线2_B2"+(o-2)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),d.push(this.offsetWires22[t+2]),d.push(this.offsetWires22[t-6]),this.offsetArcWires2B=W(d),this.entityCollection2.add(v(this.offsetArcWires2B,"导线2_B3"+(o-2)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),p.push(this.offsetWires22[t+3]),p.push(this.offsetWires22[t-5]),this.offsetArcWires2B=W(p),this.entityCollection2.add(v(this.offsetArcWires2B,"导线2_B4"+(o-2)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),m.push(this.offsetWires22[t+4]),m.push(this.offsetWires22[t-4]),this.offsetArcWires2B=W(m),this.entityCollection2.add(v(this.offsetArcWires2B,"导线2_B5"+(o-2)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),T.push(this.offsetWires22[t+5]),T.push(this.offsetWires22[t-3]),this.offsetArcWires2B=W(T),this.entityCollection2.add(v(this.offsetArcWires2B,"导线2_B6"+(o-2)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),y.push(this.offsetWires22[t+6]),y.push(this.offsetWires22[t-2]),this.offsetArcWires2B=W(y),this.entityCollection2.add(v(this.offsetArcWires2B,"导线2_B7"+(o-2)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),w.push(this.offsetWires22[t+7]),w.push(this.offsetWires22[t-1]),this.offsetArcWires2B=W(w),this.entityCollection2.add(v(this.offsetArcWires2B,"导线2_B8"+(o-2)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireAColor));break}}if(this.offsetWires23.length>0&&o>0){const c=[],h=[],d=[],p=[],m=[],T=[],y=[],w=[];switch(this.LineInfo.Wairnum){case $.单分裂:c.push(this.offsetWires23[t]),c.push(this.offsetWires23[t-1]),this.offsetArcWires2C=W(c),this.entityCollection2.add(v(this.offsetArcWires2C,"导线2_C1"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireAColor));break;case $.双分裂:c.push(this.offsetWires23[t]),c.push(this.offsetWires23[t-2]),this.offsetArcWires2C=W(c),this.entityCollection2.add(v(this.offsetArcWires2C,"导线2_C1"+(o-2)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),h.push(this.offsetWires23[t+1]),h.push(this.offsetWires23[t-1]),this.offsetArcWires2C=W(h),this.entityCollection2.add(v(this.offsetArcWires2C,"导线2_C2"+(o-2)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireAColor));break;case $.四分裂:c.push(this.offsetWires23[t]),c.push(this.offsetWires23[t-4]),this.offsetArcWires2C=W(c),this.entityCollection2.add(v(this.offsetArcWires2C,"导线2_C1"+(o-2)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),h.push(this.offsetWires23[t+1]),h.push(this.offsetWires23[t-3]),this.offsetArcWires2C=W(h),this.entityCollection2.add(v(this.offsetArcWires2C,"导线2_C2"+(o-2)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),d.push(this.offsetWires23[t+2]),d.push(this.offsetWires23[t-2]),this.offsetArcWires2C=W(d),this.entityCollection2.add(v(this.offsetArcWires2C,"导线2_C3"+(o-2)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),p.push(this.offsetWires23[t+3]),p.push(this.offsetWires23[t-1]),this.offsetArcWires2C=W(p),this.entityCollection2.add(v(this.offsetArcWires2C,"导线2_C4"+(o-2)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireAColor));break;case $.六分裂:c.push(this.offsetWires23[t]),c.push(this.offsetWires23[t-6]),this.offsetArcWires2C=W(c),this.entityCollection2.add(v(this.offsetArcWires2C,"导线2_C1"+(o-2)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),h.push(this.offsetWires23[t+1]),h.push(this.offsetWires23[t-5]),this.offsetArcWires2C=W(h),this.entityCollection2.add(v(this.offsetArcWires2C,"导线2_C2"+(o-2)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),d.push(this.offsetWires23[t+2]),d.push(this.offsetWires23[t-4]),this.offsetArcWires2C=W(d),this.entityCollection2.add(v(this.offsetArcWires2C,"导线2_C3"+(o-2)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),p.push(this.offsetWires23[t+3]),p.push(this.offsetWires23[t-3]),this.offsetArcWires2C=W(p),this.entityCollection2.add(v(this.offsetArcWires2C,"导线2_C4"+(o-2)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),m.push(this.offsetWires23[t+4]),m.push(this.offsetWires23[t-2]),this.offsetArcWires2C=W(m),this.entityCollection2.add(v(this.offsetArcWires2C,"导线2_C5"+(o-2)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),T.push(this.offsetWires23[t+5]),T.push(this.offsetWires23[t-1]),this.offsetArcWires2C=W(T),this.entityCollection2.add(v(this.offsetArcWires2C,"导线2_C6"+(o-2)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireAColor));break;case $.八分裂:c.push(this.offsetWires23[t]),c.push(this.offsetWires23[t-8]),this.offsetArcWires2C=W(c),this.entityCollection2.add(v(this.offsetArcWires2C,"导线2_C1"+(o-2)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),h.push(this.offsetWires23[t+1]),h.push(this.offsetWires23[t-7]),this.offsetArcWires2C=W(h),this.entityCollection2.add(v(this.offsetArcWires2C,"导线2_C2"+(o-2)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),d.push(this.offsetWires23[t+2]),d.push(this.offsetWires23[t-6]),this.offsetArcWires2C=W(d),this.entityCollection2.add(v(this.offsetArcWires2C,"导线2_C3"+(o-2)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),p.push(this.offsetWires23[t+3]),p.push(this.offsetWires23[t-5]),this.offsetArcWires2C=W(p),this.entityCollection2.add(v(this.offsetArcWires2C,"导线2_C4"+(o-2)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),m.push(this.offsetWires23[t+4]),m.push(this.offsetWires23[t-4]),this.offsetArcWires2C=W(m),this.entityCollection2.add(v(this.offsetArcWires2C,"导线2_C5"+(o-2)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),T.push(this.offsetWires23[t+5]),T.push(this.offsetWires23[t-3]),this.offsetArcWires2C=W(T),this.entityCollection2.add(v(this.offsetArcWires2C,"导线2_C6"+(o-2)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),y.push(this.offsetWires23[t+6]),y.push(this.offsetWires23[t-2]),this.offsetArcWires2C=W(y),this.entityCollection2.add(v(this.offsetArcWires2C,"导线2_C7"+(o-2)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireAColor)),w.push(this.offsetWires23[t+7]),w.push(this.offsetWires23[t-1]),this.offsetArcWires2C=W(w),this.entityCollection2.add(v(this.offsetArcWires2C,"导线2_C8"+(o-2)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireAColor));break}}if(this.offsetGrouundWires11.length>1){const c=[];c.push(this.offsetGrouundWires11[o]),c.push(this.offsetGrouundWires11[o-1]);const h=[];h.push(this.offsetGrouundWires12[o]),h.push(this.offsetGrouundWires12[o-1]),this.offsetGrouundWires1=W(c,2),this.offsetGrouundWires2=W(h,2),this.entityCollection2.add(v(this.offsetGrouundWires1,"地线1"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireD1Color)),this.entityCollection2.add(v(this.offsetGrouundWires2,"地线2"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireD2Color))}if(this.LineInfo.towers[o].type==$i.耐张塔){switch(this.LineInfo.Wairnum){case $.单分裂:t=t+2,n=n+2;break;case $.双分裂:t=t+4,n=n+4;break;case $.四分裂:t=t+8,n=n+8;break;case $.六分裂:t=t+12,n=n+12;break;case $.八分裂:t=t+16,n=n+16;break}if(this.ToffsetWires1A1.length>1&&this.ToffsetWires1A2.length>1){const c=[],h=[],d=[],p=[],m=[],T=[],y=[],w=[],A=[],E=[],b=[],D=[],O=[],B=[],L=[],F=[];switch(this.LineInfo.Wairnum){case $.单分裂:this.ToffsetWires1A1.length>=2&&(c.push(this.ToffsetWires1A1[n-2]),c.push(this.ToffsetWires1A1[n-1]),this.ToffsetArcWires1A=W(c,15),this.entityCollection2.add(v(this.ToffsetArcWires1A,"1A1跳线1"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor))),this.ToffsetWires1A2.length>=2&&(A.push(this.ToffsetWires1A2[n-2]),A.push(this.ToffsetWires1A2[n-1]),this.ToffsetArcWires2A=W(A,15),this.entityCollection2.add(v(this.ToffsetArcWires2A,"1A2跳线1"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)));break;case $.双分裂:this.ToffsetWires1A1.length>=4&&(c.push(this.ToffsetWires1A1[n-4]),c.push(this.ToffsetWires1A1[n-2]),this.ToffsetArcWires1A=W(c,15),this.entityCollection2.add(v(this.ToffsetArcWires1A,"1A1跳线1"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),h.push(this.ToffsetWires1A1[n-3]),h.push(this.ToffsetWires1A1[n-1]),this.ToffsetArcWires1A=W(h,15),this.entityCollection2.add(v(this.ToffsetArcWires1A,"1A1跳线2"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor))),this.ToffsetWires1A2.length>=4&&(A.push(this.ToffsetWires1A2[n-4]),A.push(this.ToffsetWires1A2[n-2]),this.ToffsetArcWires2A=W(A,15),this.entityCollection2.add(v(this.ToffsetArcWires2A,"1A2跳线1"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),E.push(this.ToffsetWires1A2[n-3]),E.push(this.ToffsetWires1A2[n-1]),this.ToffsetArcWires2A=W(E,15),this.entityCollection2.add(v(this.ToffsetArcWires2A,"1A2跳线2"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)));break;case $.四分裂:this.ToffsetWires1A1.length>=8&&(c.push(this.ToffsetWires1A1[n-8]),c.push(this.ToffsetWires1A1[n-4]),this.ToffsetArcWires1A=W(c,15),this.entityCollection2.add(v(this.ToffsetArcWires1A,"1A1跳线1"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),h.push(this.ToffsetWires1A1[n-7]),h.push(this.ToffsetWires1A1[n-3]),this.ToffsetArcWires1A=W(h,15),this.entityCollection2.add(v(this.ToffsetArcWires1A,"1A1跳线2"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),d.push(this.ToffsetWires1A1[n-6]),d.push(this.ToffsetWires1A1[n-2]),this.ToffsetArcWires1A=W(d,15),this.entityCollection2.add(v(this.ToffsetArcWires1A,"1A1跳线3"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),p.push(this.ToffsetWires1A1[n-5]),p.push(this.ToffsetWires1A1[n-1]),this.ToffsetArcWires1A=W(p,15),this.entityCollection2.add(v(this.ToffsetArcWires1A,"1A1跳线4"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor))),this.ToffsetWires1A2.length>=8&&(A.push(this.ToffsetWires1A2[n-8]),A.push(this.ToffsetWires1A2[n-4]),this.ToffsetArcWires2A=W(A,15),this.entityCollection2.add(v(this.ToffsetArcWires2A,"1A2跳线1"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),E.push(this.ToffsetWires1A2[n-7]),E.push(this.ToffsetWires1A2[n-3]),this.ToffsetArcWires2A=W(E,15),this.entityCollection2.add(v(this.ToffsetArcWires2A,"1A2跳线2"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),b.push(this.ToffsetWires1A2[n-6]),b.push(this.ToffsetWires1A2[n-2]),this.ToffsetArcWires2A=W(b,15),this.entityCollection2.add(v(this.ToffsetArcWires2A,"1A2跳线3"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),D.push(this.ToffsetWires1A2[n-5]),D.push(this.ToffsetWires1A2[n-1]),this.ToffsetArcWires2A=W(D,15),this.entityCollection2.add(v(this.ToffsetArcWires2A,"1A2跳线4"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)));break;case $.六分裂:this.ToffsetWires1A1.length>=12&&(c.push(this.ToffsetWires1A1[n-12]),c.push(this.ToffsetWires1A1[n-6]),this.ToffsetArcWires1A=W(c,15),this.entityCollection2.add(v(this.ToffsetArcWires1A,"1A1跳线1"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),h.push(this.ToffsetWires1A1[n-11]),h.push(this.ToffsetWires1A1[n-5]),this.ToffsetArcWires1A=W(h,15),this.entityCollection2.add(v(this.ToffsetArcWires1A,"1A1跳线2"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),d.push(this.ToffsetWires1A1[n-10]),d.push(this.ToffsetWires1A1[n-4]),this.ToffsetArcWires1A=W(d,15),this.entityCollection2.add(v(this.ToffsetArcWires1A,"1A1跳线3"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),p.push(this.ToffsetWires1A1[n-9]),p.push(this.ToffsetWires1A1[n-3]),this.ToffsetArcWires1A=W(p,15),this.entityCollection2.add(v(this.ToffsetArcWires1A,"1A1跳线4"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),m.push(this.ToffsetWires1A1[n-8]),m.push(this.ToffsetWires1A1[n-2]),this.ToffsetArcWires1A=W(m,15),this.entityCollection2.add(v(this.ToffsetArcWires1A,"1A1跳线5"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),T.push(this.ToffsetWires1A1[n-7]),T.push(this.ToffsetWires1A1[n-1]),this.ToffsetArcWires1A=W(T,15),this.entityCollection2.add(v(this.ToffsetArcWires1A,"1A1跳线6"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor))),this.ToffsetWires1A2.length>=12&&(A.push(this.ToffsetWires1A2[n-12]),A.push(this.ToffsetWires1A2[n-6]),this.ToffsetArcWires2A=W(A,15),this.entityCollection2.add(v(this.ToffsetArcWires2A,"1A2跳线1"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),E.push(this.ToffsetWires1A2[n-11]),E.push(this.ToffsetWires1A2[n-5]),this.ToffsetArcWires2A=W(E,15),this.entityCollection2.add(v(this.ToffsetArcWires2A,"1A2跳线2"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),b.push(this.ToffsetWires1A2[n-10]),b.push(this.ToffsetWires1A2[n-4]),this.ToffsetArcWires2A=W(b,15),this.entityCollection2.add(v(this.ToffsetArcWires2A,"1A2跳线3"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),D.push(this.ToffsetWires1A2[n-9]),D.push(this.ToffsetWires1A2[n-3]),this.ToffsetArcWires2A=W(D,15),this.entityCollection2.add(v(this.ToffsetArcWires2A,"1A2跳线4"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),O.push(this.ToffsetWires1A2[n-8]),O.push(this.ToffsetWires1A2[n-2]),this.ToffsetArcWires2A=W(O,15),this.entityCollection2.add(v(this.ToffsetArcWires2A,"1A2跳线5"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),B.push(this.ToffsetWires1A2[n-7]),B.push(this.ToffsetWires1A2[n-1]),this.ToffsetArcWires2A=W(B,15),this.entityCollection2.add(v(this.ToffsetArcWires2A,"1A2跳线6"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)));break;case $.八分裂:this.ToffsetWires1A1.length>=16&&(c.push(this.ToffsetWires1A1[n-16]),c.push(this.ToffsetWires1A1[n-8]),this.ToffsetArcWires1A=W(c,15),this.entityCollection2.add(v(this.ToffsetArcWires1A,"1A1跳线1"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),h.push(this.ToffsetWires1A1[n-15]),h.push(this.ToffsetWires1A1[n-7]),this.ToffsetArcWires1A=W(h,15),this.entityCollection2.add(v(this.ToffsetArcWires1A,"1A1跳线2"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),d.push(this.ToffsetWires1A1[n-14]),d.push(this.ToffsetWires1A1[n-6]),this.ToffsetArcWires1A=W(d,15),this.entityCollection2.add(v(this.ToffsetArcWires1A,"1A1跳线3"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),p.push(this.ToffsetWires1A1[n-13]),p.push(this.ToffsetWires1A1[n-5]),this.ToffsetArcWires1A=W(p,15),this.entityCollection2.add(v(this.ToffsetArcWires1A,"1A1跳线4"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),m.push(this.ToffsetWires1A1[n-12]),m.push(this.ToffsetWires1A1[n-4]),this.ToffsetArcWires1A=W(m,15),this.entityCollection2.add(v(this.ToffsetArcWires1A,"1A1跳线5"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),T.push(this.ToffsetWires1A1[n-11]),T.push(this.ToffsetWires1A1[n-3]),this.ToffsetArcWires1A=W(T,15),this.entityCollection2.add(v(this.ToffsetArcWires1A,"1A1跳线6"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),y.push(this.ToffsetWires1A1[n-10]),y.push(this.ToffsetWires1A1[n-2]),this.ToffsetArcWires1A=W(y,15),this.entityCollection2.add(v(this.ToffsetArcWires1A,"1A1跳线7"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),w.push(this.ToffsetWires1A1[n-9]),w.push(this.ToffsetWires1A1[n-1]),this.ToffsetArcWires1A=W(w,15),this.entityCollection2.add(v(this.ToffsetArcWires1A,"1A1跳线8"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor))),this.ToffsetWires1A2.length>=16&&(A.push(this.ToffsetWires1A2[n-16]),A.push(this.ToffsetWires1A2[n-8]),this.ToffsetArcWires2A=W(A,15),this.entityCollection2.add(v(this.ToffsetArcWires2A,"1A2跳线1"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),E.push(this.ToffsetWires1A2[n-15]),E.push(this.ToffsetWires1A2[n-7]),this.ToffsetArcWires2A=W(E,15),this.entityCollection2.add(v(this.ToffsetArcWires2A,"1A2跳线2"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),b.push(this.ToffsetWires1A2[n-14]),b.push(this.ToffsetWires1A2[n-6]),this.ToffsetArcWires2A=W(b,15),this.entityCollection2.add(v(this.ToffsetArcWires2A,"1A2跳线3"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),D.push(this.ToffsetWires1A2[n-13]),D.push(this.ToffsetWires1A2[n-5]),this.ToffsetArcWires2A=W(D,15),this.entityCollection2.add(v(this.ToffsetArcWires2A,"1A2跳线4"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),O.push(this.ToffsetWires1A2[n-12]),O.push(this.ToffsetWires1A2[n-4]),this.ToffsetArcWires2A=W(O,15),this.entityCollection2.add(v(this.ToffsetArcWires2A,"1A2跳线5"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),B.push(this.ToffsetWires1A2[n-11]),B.push(this.ToffsetWires1A2[n-3]),this.ToffsetArcWires2A=W(B,15),this.entityCollection2.add(v(this.ToffsetArcWires2A,"1A2跳线6"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),L.push(this.ToffsetWires1A2[n-10]),L.push(this.ToffsetWires1A2[n-2]),this.ToffsetArcWires2A=W(L,15),this.entityCollection2.add(v(this.ToffsetArcWires2A,"1A2跳线7"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),F.push(this.ToffsetWires1A2[n-9]),F.push(this.ToffsetWires1A2[n-1]),this.ToffsetArcWires2A=W(F,15),this.entityCollection2.add(v(this.ToffsetArcWires2A,"1A2跳线8"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)));break}}if(this.ToffsetWires1B1.length>1&&this.ToffsetWires1B2.length>1){const c=[],h=[],d=[],p=[],m=[],T=[],y=[],w=[],A=[],E=[],b=[],D=[],O=[],B=[],L=[],F=[];switch(this.LineInfo.Wairnum){case $.单分裂:this.ToffsetWires1B1.length>=2&&(c.push(this.ToffsetWires1B1[n-2]),c.push(this.ToffsetWires1B1[n-1]),this.ToffsetArcWires1B=W(c,15),this.entityCollection2.add(v(this.ToffsetArcWires1B,"1B1跳线1"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor))),this.ToffsetWires1B2.length>=2&&(A.push(this.ToffsetWires1B2[n-2]),A.push(this.ToffsetWires1B2[n-1]),this.ToffsetArcWires2B=W(A,15),this.entityCollection2.add(v(this.ToffsetArcWires2B,"1B2跳线1"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)));break;case $.双分裂:this.ToffsetWires1B1.length>=4&&(c.push(this.ToffsetWires1B1[n-4]),c.push(this.ToffsetWires1B1[n-2]),this.ToffsetArcWires1B=W(c,15),this.entityCollection2.add(v(this.ToffsetArcWires1B,"1B1跳线1"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),h.push(this.ToffsetWires1B1[n-3]),h.push(this.ToffsetWires1B1[n-1]),this.ToffsetArcWires1B=W(h,15),this.entityCollection2.add(v(this.ToffsetArcWires1B,"1B1跳线2"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor))),this.ToffsetWires1B2.length>=4&&(A.push(this.ToffsetWires1B2[n-4]),A.push(this.ToffsetWires1B2[n-2]),this.ToffsetArcWires2B=W(A,15),this.entityCollection2.add(v(this.ToffsetArcWires2B,"1B2跳线1"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),E.push(this.ToffsetWires1B2[n-3]),E.push(this.ToffsetWires1B2[n-1]),this.ToffsetArcWires2B=W(E,15),this.entityCollection2.add(v(this.ToffsetArcWires2B,"1B2跳线2"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)));break;case $.四分裂:this.ToffsetWires1B1.length>=8&&(c.push(this.ToffsetWires1B1[n-8]),c.push(this.ToffsetWires1B1[n-4]),this.ToffsetArcWires1B=W(c,15),this.entityCollection2.add(v(this.ToffsetArcWires1B,"1B1跳线1"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),h.push(this.ToffsetWires1B1[n-7]),h.push(this.ToffsetWires1B1[n-3]),this.ToffsetArcWires1B=W(h,15),this.entityCollection2.add(v(this.ToffsetArcWires1B,"1B1跳线2"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),d.push(this.ToffsetWires1B1[n-6]),d.push(this.ToffsetWires1B1[n-2]),this.ToffsetArcWires1B=W(d,15),this.entityCollection2.add(v(this.ToffsetArcWires1B,"1B1跳线3"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),p.push(this.ToffsetWires1B1[n-5]),p.push(this.ToffsetWires1B1[n-1]),this.ToffsetArcWires1B=W(p,15),this.entityCollection2.add(v(this.ToffsetArcWires1B,"1B1跳线4"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor))),this.ToffsetWires1B2.length>=8&&(A.push(this.ToffsetWires1B2[n-8]),A.push(this.ToffsetWires1B2[n-4]),this.ToffsetArcWires2B=W(A,15),this.entityCollection2.add(v(this.ToffsetArcWires2B,"1B2跳线1"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),E.push(this.ToffsetWires1B2[n-7]),E.push(this.ToffsetWires1B2[n-3]),this.ToffsetArcWires2B=W(E,15),this.entityCollection2.add(v(this.ToffsetArcWires2B,"1B2跳线2"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),b.push(this.ToffsetWires1B2[n-6]),b.push(this.ToffsetWires1B2[n-2]),this.ToffsetArcWires2B=W(b,15),this.entityCollection2.add(v(this.ToffsetArcWires2B,"1B2跳线3"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),D.push(this.ToffsetWires1B2[n-5]),D.push(this.ToffsetWires1B2[n-1]),this.ToffsetArcWires2B=W(D,15),this.entityCollection2.add(v(this.ToffsetArcWires2B,"1B2跳线4"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)));break;case $.六分裂:this.ToffsetWires1B1.length>=12&&(c.push(this.ToffsetWires1B1[n-12]),c.push(this.ToffsetWires1B1[n-6]),this.ToffsetArcWires1B=W(c,15),this.entityCollection2.add(v(this.ToffsetArcWires1B,"1B1跳线1"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),h.push(this.ToffsetWires1B1[n-11]),h.push(this.ToffsetWires1B1[n-5]),this.ToffsetArcWires1B=W(h,15),this.entityCollection2.add(v(this.ToffsetArcWires1B,"1B1跳线2"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),d.push(this.ToffsetWires1B1[n-10]),d.push(this.ToffsetWires1B1[n-4]),this.ToffsetArcWires1B=W(d,15),this.entityCollection2.add(v(this.ToffsetArcWires1B,"1B1跳线3"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),p.push(this.ToffsetWires1B1[n-9]),p.push(this.ToffsetWires1B1[n-3]),this.ToffsetArcWires1B=W(p,15),this.entityCollection2.add(v(this.ToffsetArcWires1B,"1B1跳线4"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),m.push(this.ToffsetWires1B1[n-8]),m.push(this.ToffsetWires1B1[n-2]),this.ToffsetArcWires1B=W(m,15),this.entityCollection2.add(v(this.ToffsetArcWires1B,"1B1跳线5"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),T.push(this.ToffsetWires1B1[n-7]),T.push(this.ToffsetWires1B1[n-1]),this.ToffsetArcWires1B=W(T,15),this.entityCollection2.add(v(this.ToffsetArcWires1B,"1B1跳线6"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor))),this.ToffsetWires1B2.length>=12&&(A.push(this.ToffsetWires1B2[n-12]),A.push(this.ToffsetWires1B2[n-6]),this.ToffsetArcWires2B=W(A,15),this.entityCollection2.add(v(this.ToffsetArcWires2B,"1B2跳线1"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),E.push(this.ToffsetWires1B2[n-11]),E.push(this.ToffsetWires1B2[n-5]),this.ToffsetArcWires2B=W(E,15),this.entityCollection2.add(v(this.ToffsetArcWires2B,"1B2跳线2"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),b.push(this.ToffsetWires1B2[n-10]),b.push(this.ToffsetWires1B2[n-4]),this.ToffsetArcWires2B=W(b,15),this.entityCollection2.add(v(this.ToffsetArcWires2B,"1B2跳线3"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),D.push(this.ToffsetWires1B2[n-9]),D.push(this.ToffsetWires1B2[n-3]),this.ToffsetArcWires2B=W(D,15),this.entityCollection2.add(v(this.ToffsetArcWires2B,"1B2跳线4"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),O.push(this.ToffsetWires1B2[n-8]),O.push(this.ToffsetWires1B2[n-2]),this.ToffsetArcWires2B=W(O,15),this.entityCollection2.add(v(this.ToffsetArcWires2B,"1B2跳线5"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),B.push(this.ToffsetWires1B2[n-7]),B.push(this.ToffsetWires1B2[n-1]),this.ToffsetArcWires2B=W(B,15),this.entityCollection2.add(v(this.ToffsetArcWires2B,"1B2跳线6"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)));break;case $.八分裂:this.ToffsetWires1B1.length>=16&&(c.push(this.ToffsetWires1B1[n-16]),c.push(this.ToffsetWires1B1[n-8]),this.ToffsetArcWires1B=W(c,15),this.entityCollection2.add(v(this.ToffsetArcWires1B,"1B1跳线1"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),h.push(this.ToffsetWires1B1[n-15]),h.push(this.ToffsetWires1B1[n-7]),this.ToffsetArcWires1B=W(h,15),this.entityCollection2.add(v(this.ToffsetArcWires1B,"1B1跳线2"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),d.push(this.ToffsetWires1B1[n-14]),d.push(this.ToffsetWires1B1[n-6]),this.ToffsetArcWires1B=W(d,15),this.entityCollection2.add(v(this.ToffsetArcWires1B,"1B1跳线3"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),p.push(this.ToffsetWires1B1[n-13]),p.push(this.ToffsetWires1B1[n-5]),this.ToffsetArcWires1B=W(p,15),this.entityCollection2.add(v(this.ToffsetArcWires1B,"1B1跳线4"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),m.push(this.ToffsetWires1B1[n-12]),m.push(this.ToffsetWires1B1[n-4]),this.ToffsetArcWires1B=W(m,15),this.entityCollection2.add(v(this.ToffsetArcWires1B,"1B1跳线5"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),T.push(this.ToffsetWires1B1[n-11]),T.push(this.ToffsetWires1B1[n-3]),this.ToffsetArcWires1B=W(T,15),this.entityCollection2.add(v(this.ToffsetArcWires1B,"1B1跳线6"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),y.push(this.ToffsetWires1B1[n-10]),y.push(this.ToffsetWires1B1[n-2]),this.ToffsetArcWires1B=W(y,15),this.entityCollection2.add(v(this.ToffsetArcWires1B,"1B1跳线7"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),w.push(this.ToffsetWires1B1[n-9]),w.push(this.ToffsetWires1B1[n-1]),this.ToffsetArcWires1B=W(w,15),this.entityCollection2.add(v(this.ToffsetArcWires1B,"1B1跳线8"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor))),this.ToffsetWires1B2.length>=16&&(A.push(this.ToffsetWires1B2[n-16]),A.push(this.ToffsetWires1B2[n-8]),this.ToffsetArcWires2B=W(A,15),this.entityCollection2.add(v(this.ToffsetArcWires2B,"1B2跳线1"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),E.push(this.ToffsetWires1B2[n-15]),E.push(this.ToffsetWires1B2[n-7]),this.ToffsetArcWires2B=W(E,15),this.entityCollection2.add(v(this.ToffsetArcWires2B,"1B2跳线2"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),b.push(this.ToffsetWires1B2[n-14]),b.push(this.ToffsetWires1B2[n-6]),this.ToffsetArcWires2B=W(b,15),this.entityCollection2.add(v(this.ToffsetArcWires2B,"1B2跳线3"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),D.push(this.ToffsetWires1B2[n-13]),D.push(this.ToffsetWires1B2[n-5]),this.ToffsetArcWires2B=W(D,15),this.entityCollection2.add(v(this.ToffsetArcWires2B,"1B2跳线4"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),O.push(this.ToffsetWires1B2[n-12]),O.push(this.ToffsetWires1B2[n-4]),this.ToffsetArcWires2B=W(O,15),this.entityCollection2.add(v(this.ToffsetArcWires2B,"1B2跳线5"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),B.push(this.ToffsetWires1B2[n-11]),B.push(this.ToffsetWires1B2[n-3]),this.ToffsetArcWires2B=W(B,15),this.entityCollection2.add(v(this.ToffsetArcWires2B,"1B2跳线6"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),L.push(this.ToffsetWires1B2[n-10]),L.push(this.ToffsetWires1B2[n-2]),this.ToffsetArcWires2B=W(L,15),this.entityCollection2.add(v(this.ToffsetArcWires2B,"1B2跳线7"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),F.push(this.ToffsetWires1B2[n-9]),F.push(this.ToffsetWires1B2[n-1]),this.ToffsetArcWires2B=W(F,15),this.entityCollection2.add(v(this.ToffsetArcWires2B,"1B2跳线8"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)));break}}debugger;if(this.ToffsetWires1C1.length>1&&this.ToffsetWires1C2.length>1){const c=[],h=[],d=[],p=[],m=[],T=[],y=[],w=[],A=[],E=[],b=[],D=[],O=[],B=[],L=[],F=[];switch(this.LineInfo.Wairnum){case $.单分裂:this.ToffsetWires1C1.length>=2&&(c.push(this.ToffsetWires1C1[n-2]),c.push(this.ToffsetWires1C1[n-1]),this.ToffsetArcWires1C=W(c,15),this.entityCollection2.add(v(this.ToffsetArcWires1C,"1C1跳线1"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor))),this.ToffsetWires1C2.length>=2&&(A.push(this.ToffsetWires1C2[n-2]),A.push(this.ToffsetWires1C2[n-1]),this.ToffsetArcWires2C=W(A,15),this.entityCollection2.add(v(this.ToffsetArcWires2C,"1C2跳线1"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)));break;case $.双分裂:this.ToffsetWires1C1.length>=4&&(c.push(this.ToffsetWires1C1[n-4]),c.push(this.ToffsetWires1C1[n-2]),this.ToffsetArcWires1C=W(c,15),this.entityCollection2.add(v(this.ToffsetArcWires1C,"1C1跳线1"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),h.push(this.ToffsetWires1C1[n-3]),h.push(this.ToffsetWires1C1[n-1]),this.ToffsetArcWires1C=W(h,15),this.entityCollection2.add(v(this.ToffsetArcWires1C,"1C1跳线2"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor))),this.ToffsetWires1C2.length>=4&&(A.push(this.ToffsetWires1C2[n-4]),A.push(this.ToffsetWires1C2[n-2]),this.ToffsetArcWires2C=W(A,15),this.entityCollection2.add(v(this.ToffsetArcWires2C,"1C2跳线1"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),E.push(this.ToffsetWires1C2[n-3]),E.push(this.ToffsetWires1C2[n-1]),this.ToffsetArcWires2C=W(E,15),this.entityCollection2.add(v(this.ToffsetArcWires2C,"1C2跳线2"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)));break;case $.四分裂:this.ToffsetWires1C1.length>=8&&(c.push(this.ToffsetWires1C1[n-8]),c.push(this.ToffsetWires1C1[n-4]),this.ToffsetArcWires1C=W(c,15),this.entityCollection2.add(v(this.ToffsetArcWires1C,"1C1跳线1"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),h.push(this.ToffsetWires1C1[n-7]),h.push(this.ToffsetWires1C1[n-3]),this.ToffsetArcWires1C=W(h,15),this.entityCollection2.add(v(this.ToffsetArcWires1C,"1C1跳线2"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),d.push(this.ToffsetWires1C1[n-6]),d.push(this.ToffsetWires1C1[n-2]),this.ToffsetArcWires1C=W(d,15),this.entityCollection2.add(v(this.ToffsetArcWires1C,"1C1跳线3"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),p.push(this.ToffsetWires1C1[n-5]),p.push(this.ToffsetWires1C1[n-1]),this.ToffsetArcWires1C=W(p,15),this.entityCollection2.add(v(this.ToffsetArcWires1C,"1C1跳线4"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor))),this.ToffsetWires1C2.length>=8&&(A.push(this.ToffsetWires1C2[n-8]),A.push(this.ToffsetWires1C2[n-4]),this.ToffsetArcWires2C=W(A,15),this.entityCollection2.add(v(this.ToffsetArcWires2C,"1C2跳线1"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),E.push(this.ToffsetWires1C2[n-7]),E.push(this.ToffsetWires1C2[n-3]),this.ToffsetArcWires2C=W(E,15),this.entityCollection2.add(v(this.ToffsetArcWires2C,"1C2跳线2"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),b.push(this.ToffsetWires1C2[n-6]),b.push(this.ToffsetWires1C2[n-2]),this.ToffsetArcWires2C=W(b,15),this.entityCollection2.add(v(this.ToffsetArcWires2C,"1C2跳线3"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),D.push(this.ToffsetWires1C2[n-5]),D.push(this.ToffsetWires1C2[n-1]),this.ToffsetArcWires2C=W(D,15),this.entityCollection2.add(v(this.ToffsetArcWires2C,"1C2跳线4"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)));break;case $.六分裂:this.ToffsetWires1C1.length>=12&&(c.push(this.ToffsetWires1C1[n-12]),c.push(this.ToffsetWires1C1[n-6]),this.ToffsetArcWires1C=W(c,15),this.entityCollection2.add(v(this.ToffsetArcWires1C,"1C1跳线1"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),h.push(this.ToffsetWires1C1[n-11]),h.push(this.ToffsetWires1C1[n-5]),this.ToffsetArcWires1C=W(h,15),this.entityCollection2.add(v(this.ToffsetArcWires1C,"1C1跳线2"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),d.push(this.ToffsetWires1C1[n-10]),d.push(this.ToffsetWires1C1[n-4]),this.ToffsetArcWires1C=W(d,15),this.entityCollection2.add(v(this.ToffsetArcWires1C,"1C1跳线3"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),p.push(this.ToffsetWires1C1[n-9]),p.push(this.ToffsetWires1C1[n-3]),this.ToffsetArcWires1C=W(p,15),this.entityCollection2.add(v(this.ToffsetArcWires1C,"1C1跳线4"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),m.push(this.ToffsetWires1C1[n-8]),m.push(this.ToffsetWires1C1[n-2]),this.ToffsetArcWires1C=W(m,15),this.entityCollection2.add(v(this.ToffsetArcWires1C,"1C1跳线5"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),T.push(this.ToffsetWires1C1[n-7]),T.push(this.ToffsetWires1C1[n-1]),this.ToffsetArcWires1C=W(T,15),this.entityCollection2.add(v(this.ToffsetArcWires1C,"1C1跳线6"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor))),this.ToffsetWires1C2.length>=12&&(A.push(this.ToffsetWires1C2[n-12]),A.push(this.ToffsetWires1C2[n-6]),this.ToffsetArcWires2C=W(A,15),this.entityCollection2.add(v(this.ToffsetArcWires2C,"1C2跳线1"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),E.push(this.ToffsetWires1C2[n-11]),E.push(this.ToffsetWires1C2[n-5]),this.ToffsetArcWires2C=W(E,15),this.entityCollection2.add(v(this.ToffsetArcWires2C,"1C2跳线2"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),b.push(this.ToffsetWires1C2[n-10]),b.push(this.ToffsetWires1C2[n-4]),this.ToffsetArcWires2C=W(b,15),this.entityCollection2.add(v(this.ToffsetArcWires2C,"1C2跳线3"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),D.push(this.ToffsetWires1C2[n-9]),D.push(this.ToffsetWires1C2[n-3]),this.ToffsetArcWires2C=W(D,15),this.entityCollection2.add(v(this.ToffsetArcWires2C,"1C2跳线4"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),O.push(this.ToffsetWires1C2[n-8]),O.push(this.ToffsetWires1C2[n-2]),this.ToffsetArcWires2C=W(O,15),this.entityCollection2.add(v(this.ToffsetArcWires2C,"1C2跳线5"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),B.push(this.ToffsetWires1C2[n-7]),B.push(this.ToffsetWires1C2[n-1]),this.ToffsetArcWires2C=W(B,15),this.entityCollection2.add(v(this.ToffsetArcWires2C,"1C2跳线6"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)));break;case $.八分裂:this.ToffsetWires1C1.length>=16&&(c.push(this.ToffsetWires1C1[n-16]),c.push(this.ToffsetWires1C1[n-8]),this.ToffsetArcWires1C=W(c,15),this.entityCollection2.add(v(this.ToffsetArcWires1C,"1C1跳线1"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),h.push(this.ToffsetWires1C1[n-15]),h.push(this.ToffsetWires1C1[n-7]),this.ToffsetArcWires1C=W(h,15),this.entityCollection2.add(v(this.ToffsetArcWires1C,"1C1跳线2"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),d.push(this.ToffsetWires1C1[n-14]),d.push(this.ToffsetWires1C1[n-6]),this.ToffsetArcWires1C=W(d,15),this.entityCollection2.add(v(this.ToffsetArcWires1C,"1C1跳线3"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),p.push(this.ToffsetWires1C1[n-13]),p.push(this.ToffsetWires1C1[n-5]),this.ToffsetArcWires1C=W(p,15),this.entityCollection2.add(v(this.ToffsetArcWires1C,"1C1跳线4"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),m.push(this.ToffsetWires1C1[n-12]),m.push(this.ToffsetWires1C1[n-4]),this.ToffsetArcWires1C=W(m,15),this.entityCollection2.add(v(this.ToffsetArcWires1C,"1C1跳线5"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),T.push(this.ToffsetWires1C1[n-11]),T.push(this.ToffsetWires1C1[n-3]),this.ToffsetArcWires1C=W(T,15),this.entityCollection2.add(v(this.ToffsetArcWires1C,"1C1跳线6"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),y.push(this.ToffsetWires1C1[n-10]),y.push(this.ToffsetWires1C1[n-2]),this.ToffsetArcWires1C=W(y,15),this.entityCollection2.add(v(this.ToffsetArcWires1C,"1C1跳线7"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),w.push(this.ToffsetWires1C1[n-9]),w.push(this.ToffsetWires1C1[n-1]),this.ToffsetArcWires1C=W(w,15),this.entityCollection2.add(v(this.ToffsetArcWires1C,"1C1跳线8"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor))),this.ToffsetWires1C2.length>=16&&(A.push(this.ToffsetWires1C2[n-16]),A.push(this.ToffsetWires1C2[n-8]),this.ToffsetArcWires2C=W(A,15),this.entityCollection2.add(v(this.ToffsetArcWires2C,"1C2跳线1"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),E.push(this.ToffsetWires1C2[n-15]),E.push(this.ToffsetWires1C2[n-7]),this.ToffsetArcWires2C=W(E,15),this.entityCollection2.add(v(this.ToffsetArcWires2C,"1C2跳线2"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),b.push(this.ToffsetWires1C2[n-14]),b.push(this.ToffsetWires1C2[n-6]),this.ToffsetArcWires2C=W(b,15),this.entityCollection2.add(v(this.ToffsetArcWires2C,"1C2跳线3"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),D.push(this.ToffsetWires1C2[n-13]),D.push(this.ToffsetWires1C2[n-5]),this.ToffsetArcWires2C=W(D,15),this.entityCollection2.add(v(this.ToffsetArcWires2C,"1C2跳线4"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),O.push(this.ToffsetWires1C2[n-12]),O.push(this.ToffsetWires1C2[n-4]),this.ToffsetArcWires2C=W(O,15),this.entityCollection2.add(v(this.ToffsetArcWires2C,"1C2跳线5"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),B.push(this.ToffsetWires1C2[n-11]),B.push(this.ToffsetWires1C2[n-3]),this.ToffsetArcWires2C=W(B,15),this.entityCollection2.add(v(this.ToffsetArcWires2C,"1C2跳线6"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),L.push(this.ToffsetWires1C2[n-10]),L.push(this.ToffsetWires1C2[n-2]),this.ToffsetArcWires2C=W(L,15),this.entityCollection2.add(v(this.ToffsetArcWires2C,"1C2跳线7"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),F.push(this.ToffsetWires1C2[n-9]),F.push(this.ToffsetWires1C2[n-1]),this.ToffsetArcWires2C=W(F,15),this.entityCollection2.add(v(this.ToffsetArcWires2C,"1C2跳线8"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)));break}}if(this.ToffsetWires2A1.length>1&&this.ToffsetWires2A2.length>1){const c=[],h=[],d=[],p=[],m=[],T=[],y=[],w=[],A=[],E=[],b=[],D=[],O=[],B=[],L=[],F=[];switch(this.LineInfo.Wairnum){case $.单分裂:this.ToffsetWires2A1.length>=2&&(c.push(this.ToffsetWires2A1[n-2]),c.push(this.ToffsetWires2A1[n-1]),this.ToffsetArcWires1A2=W(c,15),this.entityCollection2.add(v(this.ToffsetArcWires1A2,"2A1跳线1"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor))),this.ToffsetWires2A2.length>=2&&(A.push(this.ToffsetWires2A2[n-2]),A.push(this.ToffsetWires2A2[n-1]),this.ToffsetArcWires2A2=W(A,15),this.entityCollection2.add(v(this.ToffsetArcWires2A2,"2A2跳线1"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)));break;case $.双分裂:this.ToffsetWires2A1.length>=4&&(c.push(this.ToffsetWires2A1[n-4]),c.push(this.ToffsetWires2A1[n-2]),this.ToffsetArcWires1A2=W(c,15),this.entityCollection2.add(v(this.ToffsetArcWires1A2,"2A1跳线1"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),h.push(this.ToffsetWires2A1[n-3]),h.push(this.ToffsetWires2A1[n-1]),this.ToffsetArcWires1A2=W(h,15),this.entityCollection2.add(v(this.ToffsetArcWires1A2,"2A1跳线2"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor))),this.ToffsetWires2A2.length>=4&&(A.push(this.ToffsetWires2A2[n-4]),A.push(this.ToffsetWires2A2[n-2]),this.ToffsetArcWires2A2=W(A,15),this.entityCollection2.add(v(this.ToffsetArcWires2A2,"2A2跳线1"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),E.push(this.ToffsetWires2A2[n-3]),E.push(this.ToffsetWires2A2[n-1]),this.ToffsetArcWires2A2=W(E,15),this.entityCollection2.add(v(this.ToffsetArcWires2A2,"2A2跳线2"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)));break;case $.四分裂:this.ToffsetWires2A1.length>=8&&(c.push(this.ToffsetWires2A1[n-8]),c.push(this.ToffsetWires2A1[n-4]),this.ToffsetArcWires1A2=W(c,15),this.entityCollection2.add(v(this.ToffsetArcWires1A2,"2A1跳线1"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),h.push(this.ToffsetWires2A1[n-7]),h.push(this.ToffsetWires2A1[n-3]),this.ToffsetArcWires1A2=W(h,15),this.entityCollection2.add(v(this.ToffsetArcWires1A2,"2A1跳线2"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),d.push(this.ToffsetWires2A1[n-6]),d.push(this.ToffsetWires2A1[n-2]),this.ToffsetArcWires1A2=W(d,15),this.entityCollection2.add(v(this.ToffsetArcWires1A2,"2A1跳线3"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),p.push(this.ToffsetWires2A1[n-5]),p.push(this.ToffsetWires2A1[n-1]),this.ToffsetArcWires1A2=W(p,15),this.entityCollection2.add(v(this.ToffsetArcWires1A2,"2A1跳线4"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor))),this.ToffsetWires2A2.length>=8&&(A.push(this.ToffsetWires2A2[n-8]),A.push(this.ToffsetWires2A2[n-4]),this.ToffsetArcWires2A2=W(A,15),this.entityCollection2.add(v(this.ToffsetArcWires2A2,"2A2跳线1"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),E.push(this.ToffsetWires2A2[n-7]),E.push(this.ToffsetWires2A2[n-3]),this.ToffsetArcWires2A2=W(E,15),this.entityCollection2.add(v(this.ToffsetArcWires2A2,"2A2跳线2"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),b.push(this.ToffsetWires2A2[n-6]),b.push(this.ToffsetWires2A2[n-2]),this.ToffsetArcWires2A2=W(b,15),this.entityCollection2.add(v(this.ToffsetArcWires2A2,"2A2跳线3"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),D.push(this.ToffsetWires2A2[n-5]),D.push(this.ToffsetWires2A2[n-1]),this.ToffsetArcWires2A2=W(D,15),this.entityCollection2.add(v(this.ToffsetArcWires2A2,"2A2跳线4"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)));break;case $.六分裂:this.ToffsetWires2A1.length>=12&&(c.push(this.ToffsetWires2A1[n-12]),c.push(this.ToffsetWires2A1[n-6]),this.ToffsetArcWires1A2=W(c,15),this.entityCollection2.add(v(this.ToffsetArcWires1A2,"2A1跳线1"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),h.push(this.ToffsetWires2A1[n-11]),h.push(this.ToffsetWires2A1[n-5]),this.ToffsetArcWires1A2=W(h,15),this.entityCollection2.add(v(this.ToffsetArcWires1A2,"2A1跳线2"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),d.push(this.ToffsetWires2A1[n-10]),d.push(this.ToffsetWires2A1[n-4]),this.ToffsetArcWires1A2=W(d,15),this.entityCollection2.add(v(this.ToffsetArcWires1A2,"2A1跳线3"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),p.push(this.ToffsetWires2A1[n-9]),p.push(this.ToffsetWires2A1[n-3]),this.ToffsetArcWires1A2=W(p,15),this.entityCollection2.add(v(this.ToffsetArcWires1A2,"2A1跳线4"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),m.push(this.ToffsetWires2A1[n-8]),m.push(this.ToffsetWires2A1[n-2]),this.ToffsetArcWires1A2=W(m,15),this.entityCollection2.add(v(this.ToffsetArcWires1A2,"2A1跳线5"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),T.push(this.ToffsetWires2A1[n-7]),T.push(this.ToffsetWires2A1[n-1]),this.ToffsetArcWires1A2=W(T,15),this.entityCollection2.add(v(this.ToffsetArcWires1A2,"2A1跳线6"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor))),this.ToffsetWires2A2.length>=12&&(A.push(this.ToffsetWires2A2[n-12]),A.push(this.ToffsetWires2A2[n-6]),this.ToffsetArcWires2A2=W(A,15),this.entityCollection2.add(v(this.ToffsetArcWires2A2,"2A2跳线1"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),E.push(this.ToffsetWires2A2[n-11]),E.push(this.ToffsetWires2A2[n-5]),this.ToffsetArcWires2A2=W(E,15),this.entityCollection2.add(v(this.ToffsetArcWires2A2,"2A2跳线2"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),b.push(this.ToffsetWires2A2[n-10]),b.push(this.ToffsetWires2A2[n-4]),this.ToffsetArcWires2A2=W(b,15),this.entityCollection2.add(v(this.ToffsetArcWires2A2,"2A2跳线3"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),D.push(this.ToffsetWires2A2[n-9]),D.push(this.ToffsetWires2A2[n-3]),this.ToffsetArcWires2A2=W(D,15),this.entityCollection2.add(v(this.ToffsetArcWires2A2,"2A2跳线4"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),O.push(this.ToffsetWires2A2[n-8]),O.push(this.ToffsetWires2A2[n-2]),this.ToffsetArcWires2A2=W(O,15),this.entityCollection2.add(v(this.ToffsetArcWires2A2,"2A2跳线5"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),B.push(this.ToffsetWires2A2[n-7]),B.push(this.ToffsetWires2A2[n-1]),this.ToffsetArcWires2A2=W(B,15),this.entityCollection2.add(v(this.ToffsetArcWires2A2,"2A2跳线6"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)));break;case $.八分裂:this.ToffsetWires2A1.length>=16&&(c.push(this.ToffsetWires2A1[n-16]),c.push(this.ToffsetWires2A1[n-8]),this.ToffsetArcWires1A2=W(c,15),this.entityCollection2.add(v(this.ToffsetArcWires1A2,"2A1跳线1"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),h.push(this.ToffsetWires2A1[n-15]),h.push(this.ToffsetWires2A1[n-7]),this.ToffsetArcWires1A2=W(h,15),this.entityCollection2.add(v(this.ToffsetArcWires1A2,"2A1跳线2"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),d.push(this.ToffsetWires2A1[n-14]),d.push(this.ToffsetWires2A1[n-6]),this.ToffsetArcWires1A2=W(d,15),this.entityCollection2.add(v(this.ToffsetArcWires1A2,"2A1跳线3"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),p.push(this.ToffsetWires2A1[n-13]),p.push(this.ToffsetWires2A1[n-5]),this.ToffsetArcWires1A2=W(p,15),this.entityCollection2.add(v(this.ToffsetArcWires1A2,"2A1跳线4"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),m.push(this.ToffsetWires2A1[n-12]),m.push(this.ToffsetWires2A1[n-4]),this.ToffsetArcWires1A2=W(m,15),this.entityCollection2.add(v(this.ToffsetArcWires1A2,"2A1跳线5"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),T.push(this.ToffsetWires2A1[n-11]),T.push(this.ToffsetWires2A1[n-3]),this.ToffsetArcWires1A2=W(T,15),this.entityCollection2.add(v(this.ToffsetArcWires1A2,"2A1跳线6"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),y.push(this.ToffsetWires2A1[n-10]),y.push(this.ToffsetWires2A1[n-2]),this.ToffsetArcWires1A2=W(y,15),this.entityCollection2.add(v(this.ToffsetArcWires1A2,"2A1跳线7"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),w.push(this.ToffsetWires2A1[n-9]),w.push(this.ToffsetWires2A1[n-1]),this.ToffsetArcWires1A2=W(w,15),this.entityCollection2.add(v(this.ToffsetArcWires1A2,"2A1跳线8"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor))),this.ToffsetWires2A2.length>=16&&(A.push(this.ToffsetWires2A2[n-16]),A.push(this.ToffsetWires2A2[n-8]),this.ToffsetArcWires2A2=W(A,15),this.entityCollection2.add(v(this.ToffsetArcWires2A2,"2A2跳线1"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),E.push(this.ToffsetWires2A2[n-15]),E.push(this.ToffsetWires2A2[n-7]),this.ToffsetArcWires2A2=W(E,15),this.entityCollection2.add(v(this.ToffsetArcWires2A2,"2A2跳线2"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),b.push(this.ToffsetWires2A2[n-14]),b.push(this.ToffsetWires2A2[n-6]),this.ToffsetArcWires2A2=W(b,15),this.entityCollection2.add(v(this.ToffsetArcWires2A2,"2A2跳线3"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),D.push(this.ToffsetWires2A2[n-13]),D.push(this.ToffsetWires2A2[n-5]),this.ToffsetArcWires2A2=W(D,15),this.entityCollection2.add(v(this.ToffsetArcWires2A2,"2A2跳线4"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),O.push(this.ToffsetWires2A2[n-12]),O.push(this.ToffsetWires2A2[n-4]),this.ToffsetArcWires2A2=W(O,15),this.entityCollection2.add(v(this.ToffsetArcWires2A2,"2A2跳线5"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),B.push(this.ToffsetWires2A2[n-11]),B.push(this.ToffsetWires2A2[n-3]),this.ToffsetArcWires2A2=W(B,15),this.entityCollection2.add(v(this.ToffsetArcWires2A2,"2A2跳线6"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),L.push(this.ToffsetWires2A2[n-10]),L.push(this.ToffsetWires2A2[n-2]),this.ToffsetArcWires2A2=W(L,15),this.entityCollection2.add(v(this.ToffsetArcWires2A2,"2A2跳线7"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),F.push(this.ToffsetWires2A2[n-9]),F.push(this.ToffsetWires2A2[n-1]),this.ToffsetArcWires2A2=W(F,15),this.entityCollection2.add(v(this.ToffsetArcWires2A2,"2A2跳线8"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)));break}}if(this.ToffsetWires2B1.length>1&&this.ToffsetWires2B2.length>1){const c=[],h=[],d=[],p=[],m=[],T=[],y=[],w=[],A=[],E=[],b=[],D=[],O=[],B=[],L=[],F=[];switch(this.LineInfo.Wairnum){case $.单分裂:this.ToffsetWires2B1.length>=2&&(c.push(this.ToffsetWires2B1[n-2]),c.push(this.ToffsetWires2B1[n-1]),this.ToffsetArcWires1B2=W(c,15),this.entityCollection2.add(v(this.ToffsetArcWires1B2,"2B1跳线1"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor))),this.ToffsetWires2B2.length>=2&&(A.push(this.ToffsetWires2B2[n-2]),A.push(this.ToffsetWires2B2[n-1]),this.ToffsetArcWires2B2=W(A,15),this.entityCollection2.add(v(this.ToffsetArcWires2B2,"2B2跳线1"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)));break;case $.双分裂:this.ToffsetWires2B1.length>=4&&(c.push(this.ToffsetWires2B1[n-4]),c.push(this.ToffsetWires2B1[n-2]),this.ToffsetArcWires1B2=W(c,15),this.entityCollection2.add(v(this.ToffsetArcWires1B2,"2B1跳线1"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),h.push(this.ToffsetWires2B1[n-3]),h.push(this.ToffsetWires2B1[n-1]),this.ToffsetArcWires1B2=W(h,15),this.entityCollection2.add(v(this.ToffsetArcWires1B2,"2B1跳线2"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor))),this.ToffsetWires2B2.length>=4&&(A.push(this.ToffsetWires2B2[n-4]),A.push(this.ToffsetWires2B2[n-2]),this.ToffsetArcWires2B2=W(A,15),this.entityCollection2.add(v(this.ToffsetArcWires2B2,"2B2跳线1"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),E.push(this.ToffsetWires2B2[n-3]),E.push(this.ToffsetWires2B2[n-1]),this.ToffsetArcWires2B2=W(E,15),this.entityCollection2.add(v(this.ToffsetArcWires2B2,"2B2跳线2"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)));break;case $.四分裂:this.ToffsetWires2B1.length>=8&&(c.push(this.ToffsetWires2B1[n-8]),c.push(this.ToffsetWires2B1[n-4]),this.ToffsetArcWires1B2=W(c,15),this.entityCollection2.add(v(this.ToffsetArcWires1B2,"2B1跳线1"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),h.push(this.ToffsetWires2B1[n-7]),h.push(this.ToffsetWires2B1[n-3]),this.ToffsetArcWires1B2=W(h,15),this.entityCollection2.add(v(this.ToffsetArcWires1B2,"2B1跳线2"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),d.push(this.ToffsetWires2B1[n-6]),d.push(this.ToffsetWires2B1[n-2]),this.ToffsetArcWires1B2=W(d,15),this.entityCollection2.add(v(this.ToffsetArcWires1B2,"2B1跳线3"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),p.push(this.ToffsetWires2B1[n-5]),p.push(this.ToffsetWires2B1[n-1]),this.ToffsetArcWires1B2=W(p,15),this.entityCollection2.add(v(this.ToffsetArcWires1B2,"2B1跳线4"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor))),this.ToffsetWires2B2.length>=8&&(A.push(this.ToffsetWires2B2[n-8]),A.push(this.ToffsetWires2B2[n-4]),this.ToffsetArcWires2B2=W(A,15),this.entityCollection2.add(v(this.ToffsetArcWires2B2,"2B2跳线1"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),E.push(this.ToffsetWires2B2[n-7]),E.push(this.ToffsetWires2B2[n-3]),this.ToffsetArcWires2B2=W(E,15),this.entityCollection2.add(v(this.ToffsetArcWires2B2,"2B2跳线2"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),b.push(this.ToffsetWires2B2[n-6]),b.push(this.ToffsetWires2B2[n-2]),this.ToffsetArcWires2B2=W(b,15),this.entityCollection2.add(v(this.ToffsetArcWires2B2,"2B2跳线3"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),D.push(this.ToffsetWires2B2[n-5]),D.push(this.ToffsetWires2B2[n-1]),this.ToffsetArcWires2B2=W(D,15),this.entityCollection2.add(v(this.ToffsetArcWires2B2,"2B2跳线4"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)));break;case $.六分裂:this.ToffsetWires2B1.length>=12&&(c.push(this.ToffsetWires2B1[n-12]),c.push(this.ToffsetWires2B1[n-6]),this.ToffsetArcWires1B2=W(c,15),this.entityCollection2.add(v(this.ToffsetArcWires1B2,"2B1跳线1"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),h.push(this.ToffsetWires2B1[n-11]),h.push(this.ToffsetWires2B1[n-5]),this.ToffsetArcWires1B2=W(h,15),this.entityCollection2.add(v(this.ToffsetArcWires1B2,"2B1跳线2"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),d.push(this.ToffsetWires2B1[n-10]),d.push(this.ToffsetWires2B1[n-4]),this.ToffsetArcWires1B2=W(d,15),this.entityCollection2.add(v(this.ToffsetArcWires1B2,"2B1跳线3"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),p.push(this.ToffsetWires2B1[n-9]),p.push(this.ToffsetWires2B1[n-3]),this.ToffsetArcWires1B2=W(p,15),this.entityCollection2.add(v(this.ToffsetArcWires1B2,"2B1跳线4"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),m.push(this.ToffsetWires2B1[n-8]),m.push(this.ToffsetWires2B1[n-2]),this.ToffsetArcWires1B2=W(m,15),this.entityCollection2.add(v(this.ToffsetArcWires1B2,"2B1跳线5"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),T.push(this.ToffsetWires2B1[n-7]),T.push(this.ToffsetWires2B1[n-1]),this.ToffsetArcWires1B2=W(T,15),this.entityCollection2.add(v(this.ToffsetArcWires1B2,"2B1跳线6"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor))),this.ToffsetWires2B2.length>=12&&(A.push(this.ToffsetWires2B2[n-12]),A.push(this.ToffsetWires2B2[n-6]),this.ToffsetArcWires2B2=W(A,15),this.entityCollection2.add(v(this.ToffsetArcWires2B2,"2B2跳线1"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),E.push(this.ToffsetWires2B2[n-11]),E.push(this.ToffsetWires2B2[n-5]),this.ToffsetArcWires2B2=W(E,15),this.entityCollection2.add(v(this.ToffsetArcWires2B2,"2B2跳线2"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),b.push(this.ToffsetWires2B2[n-10]),b.push(this.ToffsetWires2B2[n-4]),this.ToffsetArcWires2B2=W(b,15),this.entityCollection2.add(v(this.ToffsetArcWires2B2,"2B2跳线3"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),D.push(this.ToffsetWires2B2[n-9]),D.push(this.ToffsetWires2B2[n-3]),this.ToffsetArcWires2B2=W(D,15),this.entityCollection2.add(v(this.ToffsetArcWires2B2,"2B2跳线4"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),O.push(this.ToffsetWires2B2[n-8]),O.push(this.ToffsetWires2B2[n-2]),this.ToffsetArcWires2B2=W(O,15),this.entityCollection2.add(v(this.ToffsetArcWires2B2,"2B2跳线5"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),B.push(this.ToffsetWires2B2[n-7]),B.push(this.ToffsetWires2B2[n-1]),this.ToffsetArcWires2B2=W(B,15),this.entityCollection2.add(v(this.ToffsetArcWires2B2,"2B2跳线6"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)));break;case $.八分裂:this.ToffsetWires2B1.length>=16&&(c.push(this.ToffsetWires2B1[n-16]),c.push(this.ToffsetWires2B1[n-8]),this.ToffsetArcWires1B2=W(c,15),this.entityCollection2.add(v(this.ToffsetArcWires1B2,"2B1跳线1"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),h.push(this.ToffsetWires2B1[n-15]),h.push(this.ToffsetWires2B1[n-7]),this.ToffsetArcWires1B2=W(h,15),this.entityCollection2.add(v(this.ToffsetArcWires1B2,"2B1跳线2"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),d.push(this.ToffsetWires2B1[n-14]),d.push(this.ToffsetWires2B1[n-6]),this.ToffsetArcWires1B2=W(d,15),this.entityCollection2.add(v(this.ToffsetArcWires1B2,"2B1跳线3"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),p.push(this.ToffsetWires2B1[n-13]),p.push(this.ToffsetWires2B1[n-5]),this.ToffsetArcWires1B2=W(p,15),this.entityCollection2.add(v(this.ToffsetArcWires1B2,"2B1跳线4"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),m.push(this.ToffsetWires2B1[n-12]),m.push(this.ToffsetWires2B1[n-4]),this.ToffsetArcWires1B2=W(m,15),this.entityCollection2.add(v(this.ToffsetArcWires1B2,"2B1跳线5"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),T.push(this.ToffsetWires2B1[n-11]),T.push(this.ToffsetWires2B1[n-3]),this.ToffsetArcWires1B2=W(T,15),this.entityCollection2.add(v(this.ToffsetArcWires1B2,"2B1跳线6"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),y.push(this.ToffsetWires2B1[n-10]),y.push(this.ToffsetWires2B1[n-2]),this.ToffsetArcWires1B2=W(y,15),this.entityCollection2.add(v(this.ToffsetArcWires1B2,"2B1跳线7"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),w.push(this.ToffsetWires2B1[n-9]),w.push(this.ToffsetWires2B1[n-1]),this.ToffsetArcWires1B2=W(w,15),this.entityCollection2.add(v(this.ToffsetArcWires1B2,"2B1跳线8"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor))),this.ToffsetWires2B2.length>=16&&(A.push(this.ToffsetWires2B2[n-16]),A.push(this.ToffsetWires2B2[n-8]),this.ToffsetArcWires2B2=W(A,15),this.entityCollection2.add(v(this.ToffsetArcWires2B2,"2B2跳线1"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),E.push(this.ToffsetWires2B2[n-15]),E.push(this.ToffsetWires2B2[n-7]),this.ToffsetArcWires2B2=W(E,15),this.entityCollection2.add(v(this.ToffsetArcWires2B2,"2B2跳线2"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),b.push(this.ToffsetWires2B2[n-14]),b.push(this.ToffsetWires2B2[n-6]),this.ToffsetArcWires2B2=W(b,15),this.entityCollection2.add(v(this.ToffsetArcWires2B2,"2B2跳线3"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),D.push(this.ToffsetWires2B2[n-13]),D.push(this.ToffsetWires2B2[n-5]),this.ToffsetArcWires2B2=W(D,15),this.entityCollection2.add(v(this.ToffsetArcWires2B2,"2B2跳线4"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),O.push(this.ToffsetWires2B2[n-12]),O.push(this.ToffsetWires2B2[n-4]),this.ToffsetArcWires2B2=W(O,15),this.entityCollection2.add(v(this.ToffsetArcWires2B2,"2B2跳线5"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),B.push(this.ToffsetWires2B2[n-11]),B.push(this.ToffsetWires2B2[n-3]),this.ToffsetArcWires2B2=W(B,15),this.entityCollection2.add(v(this.ToffsetArcWires2B2,"2B2跳线6"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),L.push(this.ToffsetWires2B2[n-10]),L.push(this.ToffsetWires2B2[n-2]),this.ToffsetArcWires2B2=W(L,15),this.entityCollection2.add(v(this.ToffsetArcWires2B2,"2B2跳线7"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),F.push(this.ToffsetWires2B2[n-9]),F.push(this.ToffsetWires2B2[n-1]),this.ToffsetArcWires2B2=W(F,15),this.entityCollection2.add(v(this.ToffsetArcWires2B2,"2B2跳线8"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)));break}}if(this.ToffsetWires2C1.length>1&&this.ToffsetWires2C2.length>1){const c=[],h=[],d=[],p=[],m=[],T=[],y=[],w=[],A=[],E=[],b=[],D=[],O=[],B=[],L=[],F=[];switch(this.LineInfo.Wairnum){case $.单分裂:this.ToffsetWires2C1.length>=2&&(c.push(this.ToffsetWires2C1[n-2]),c.push(this.ToffsetWires2C1[n-1]),this.ToffsetArcWires1C2=W(c,15),this.entityCollection2.add(v(this.ToffsetArcWires1C2,"2C1跳线1"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor))),this.ToffsetWires2C2.length>=2&&(A.push(this.ToffsetWires2C2[n-2]),A.push(this.ToffsetWires2C2[n-1]),this.ToffsetArcWires2C2=W(A,15),this.entityCollection2.add(v(this.ToffsetArcWires2C2,"2C2跳线1"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)));break;case $.双分裂:this.ToffsetWires2C1.length>=4&&(c.push(this.ToffsetWires2C1[n-4]),c.push(this.ToffsetWires2C1[n-2]),this.ToffsetArcWires1C2=W(c,15),this.entityCollection2.add(v(this.ToffsetArcWires1C2,"2C1跳线1"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),h.push(this.ToffsetWires2C1[n-3]),h.push(this.ToffsetWires2C1[n-1]),this.ToffsetArcWires1C2=W(h,15),this.entityCollection2.add(v(this.ToffsetArcWires1C2,"2C1跳线2"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor))),this.ToffsetWires2C2.length>=4&&(A.push(this.ToffsetWires2C2[n-4]),A.push(this.ToffsetWires2C2[n-2]),this.ToffsetArcWires2C2=W(A,15),this.entityCollection2.add(v(this.ToffsetArcWires2C2,"2C2跳线1"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),E.push(this.ToffsetWires2C2[n-3]),E.push(this.ToffsetWires2C2[n-1]),this.ToffsetArcWires2C2=W(E,15),this.entityCollection2.add(v(this.ToffsetArcWires2C2,"2C2跳线2"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)));break;case $.四分裂:this.ToffsetWires2C1.length>=8&&(c.push(this.ToffsetWires2C1[n-8]),c.push(this.ToffsetWires2C1[n-4]),this.ToffsetArcWires1C2=W(c,15),this.entityCollection2.add(v(this.ToffsetArcWires1C2,"2C1跳线1"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),h.push(this.ToffsetWires2C1[n-7]),h.push(this.ToffsetWires2C1[n-3]),this.ToffsetArcWires1C2=W(h,15),this.entityCollection2.add(v(this.ToffsetArcWires1C2,"2C1跳线2"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),d.push(this.ToffsetWires2C1[n-6]),d.push(this.ToffsetWires2C1[n-2]),this.ToffsetArcWires1C2=W(d,15),this.entityCollection2.add(v(this.ToffsetArcWires1C2,"2C1跳线3"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),p.push(this.ToffsetWires2C1[n-5]),p.push(this.ToffsetWires2C1[n-1]),this.ToffsetArcWires1C2=W(p,15),this.entityCollection2.add(v(this.ToffsetArcWires1C2,"2C1跳线4"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor))),this.ToffsetWires2C2.length>=8&&(A.push(this.ToffsetWires2C2[n-8]),A.push(this.ToffsetWires2C2[n-4]),this.ToffsetArcWires2C2=W(A,15),this.entityCollection2.add(v(this.ToffsetArcWires2C2,"2C2跳线1"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),E.push(this.ToffsetWires2C2[n-7]),E.push(this.ToffsetWires2C2[n-3]),this.ToffsetArcWires2C2=W(E,15),this.entityCollection2.add(v(this.ToffsetArcWires2C2,"2C2跳线2"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),b.push(this.ToffsetWires2C2[n-6]),b.push(this.ToffsetWires2C2[n-2]),this.ToffsetArcWires2C2=W(b,15),this.entityCollection2.add(v(this.ToffsetArcWires2C2,"2C2跳线3"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),D.push(this.ToffsetWires2C2[n-5]),D.push(this.ToffsetWires2C2[n-1]),this.ToffsetArcWires2C2=W(D,15),this.entityCollection2.add(v(this.ToffsetArcWires2C2,"2C2跳线4"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)));break;case $.六分裂:this.ToffsetWires2C1.length>=12&&(c.push(this.ToffsetWires2C1[n-12]),c.push(this.ToffsetWires2C1[n-6]),this.ToffsetArcWires1C2=W(c,15),this.entityCollection2.add(v(this.ToffsetArcWires1C2,"2C1跳线1"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),h.push(this.ToffsetWires2C1[n-11]),h.push(this.ToffsetWires2C1[n-5]),this.ToffsetArcWires1C2=W(h,15),this.entityCollection2.add(v(this.ToffsetArcWires1C2,"2C1跳线2"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),d.push(this.ToffsetWires2C1[n-10]),d.push(this.ToffsetWires2C1[n-4]),this.ToffsetArcWires1C2=W(d,15),this.entityCollection2.add(v(this.ToffsetArcWires1C2,"2C1跳线3"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),p.push(this.ToffsetWires2C1[n-9]),p.push(this.ToffsetWires2C1[n-3]),this.ToffsetArcWires1C2=W(p,15),this.entityCollection2.add(v(this.ToffsetArcWires1C2,"2C1跳线4"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),m.push(this.ToffsetWires2C1[n-8]),m.push(this.ToffsetWires2C1[n-2]),this.ToffsetArcWires1C2=W(m,15),this.entityCollection2.add(v(this.ToffsetArcWires1C2,"2C1跳线5"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),T.push(this.ToffsetWires2C1[n-7]),T.push(this.ToffsetWires2C1[n-1]),this.ToffsetArcWires1C2=W(T,15),this.entityCollection2.add(v(this.ToffsetArcWires1C2,"2C1跳线6"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor))),this.ToffsetWires2C2.length>=12&&(A.push(this.ToffsetWires2C2[n-12]),A.push(this.ToffsetWires2C2[n-6]),this.ToffsetArcWires2C2=W(A,15),this.entityCollection2.add(v(this.ToffsetArcWires2C2,"2C2跳线1"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),E.push(this.ToffsetWires2C2[n-11]),E.push(this.ToffsetWires2C2[n-5]),this.ToffsetArcWires2C2=W(E,15),this.entityCollection2.add(v(this.ToffsetArcWires2C2,"2C2跳线2"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),b.push(this.ToffsetWires2C2[n-10]),b.push(this.ToffsetWires2C2[n-4]),this.ToffsetArcWires2C2=W(b,15),this.entityCollection2.add(v(this.ToffsetArcWires2C2,"2C2跳线3"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),D.push(this.ToffsetWires2C2[n-9]),D.push(this.ToffsetWires2C2[n-3]),this.ToffsetArcWires2C2=W(D,15),this.entityCollection2.add(v(this.ToffsetArcWires2C2,"2C2跳线4"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),O.push(this.ToffsetWires2C2[n-8]),O.push(this.ToffsetWires2C2[n-2]),this.ToffsetArcWires2C2=W(O,15),this.entityCollection2.add(v(this.ToffsetArcWires2C2,"2C2跳线5"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),B.push(this.ToffsetWires2C2[n-7]),B.push(this.ToffsetWires2C2[n-1]),this.ToffsetArcWires2C2=W(B,15),this.entityCollection2.add(v(this.ToffsetArcWires2C2,"2C2跳线6"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)));break;case $.八分裂:this.ToffsetWires2C1.length>=16&&(c.push(this.ToffsetWires2C1[n-16]),c.push(this.ToffsetWires2C1[n-8]),this.ToffsetArcWires1C2=W(c,15),this.entityCollection2.add(v(this.ToffsetArcWires1C2,"2C1跳线1"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),h.push(this.ToffsetWires2C1[n-15]),h.push(this.ToffsetWires2C1[n-7]),this.ToffsetArcWires1C2=W(h,15),this.entityCollection2.add(v(this.ToffsetArcWires1C2,"2C1跳线2"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),d.push(this.ToffsetWires2C1[n-14]),d.push(this.ToffsetWires2C1[n-6]),this.ToffsetArcWires1C2=W(d,15),this.entityCollection2.add(v(this.ToffsetArcWires1C2,"2C1跳线3"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),p.push(this.ToffsetWires2C1[n-13]),p.push(this.ToffsetWires2C1[n-5]),this.ToffsetArcWires1C2=W(p,15),this.entityCollection2.add(v(this.ToffsetArcWires1C2,"2C1跳线4"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),m.push(this.ToffsetWires2C1[n-12]),m.push(this.ToffsetWires2C1[n-4]),this.ToffsetArcWires1C2=W(m,15),this.entityCollection2.add(v(this.ToffsetArcWires1C2,"2C1跳线5"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),T.push(this.ToffsetWires2C1[n-11]),T.push(this.ToffsetWires2C1[n-3]),this.ToffsetArcWires1C2=W(T,15),this.entityCollection2.add(v(this.ToffsetArcWires1C2,"2C1跳线6"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),y.push(this.ToffsetWires2C1[n-10]),y.push(this.ToffsetWires2C1[n-2]),this.ToffsetArcWires1C2=W(y,15),this.entityCollection2.add(v(this.ToffsetArcWires1C2,"2C1跳线7"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),w.push(this.ToffsetWires2C1[n-9]),w.push(this.ToffsetWires2C1[n-1]),this.ToffsetArcWires1C2=W(w,15),this.entityCollection2.add(v(this.ToffsetArcWires1C2,"2C1跳线8"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor))),this.ToffsetWires2C2.length>=16&&(A.push(this.ToffsetWires2C2[n-16]),A.push(this.ToffsetWires2C2[n-8]),this.ToffsetArcWires2C2=W(A,15),this.entityCollection2.add(v(this.ToffsetArcWires2C2,"2C2跳线1"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),E.push(this.ToffsetWires2C2[n-15]),E.push(this.ToffsetWires2C2[n-7]),this.ToffsetArcWires2C2=W(E,15),this.entityCollection2.add(v(this.ToffsetArcWires2C2,"2C2跳线2"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),b.push(this.ToffsetWires2C2[n-14]),b.push(this.ToffsetWires2C2[n-6]),this.ToffsetArcWires2C2=W(b,15),this.entityCollection2.add(v(this.ToffsetArcWires2C2,"2C2跳线3"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),D.push(this.ToffsetWires2C2[n-13]),D.push(this.ToffsetWires2C2[n-5]),this.ToffsetArcWires2C2=W(D,15),this.entityCollection2.add(v(this.ToffsetArcWires2C2,"2C2跳线4"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),O.push(this.ToffsetWires2C2[n-12]),O.push(this.ToffsetWires2C2[n-4]),this.ToffsetArcWires2C2=W(O,15),this.entityCollection2.add(v(this.ToffsetArcWires2C2,"2C2跳线5"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),B.push(this.ToffsetWires2C2[n-11]),B.push(this.ToffsetWires2C2[n-3]),this.ToffsetArcWires2C2=W(B,15),this.entityCollection2.add(v(this.ToffsetArcWires2C2,"2C2跳线6"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),L.push(this.ToffsetWires2C2[n-10]),L.push(this.ToffsetWires2C2[n-2]),this.ToffsetArcWires2C2=W(L,15),this.entityCollection2.add(v(this.ToffsetArcWires2C2,"2C2跳线7"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)),F.push(this.ToffsetWires2C2[n-9]),F.push(this.ToffsetWires2C2[n-1]),this.ToffsetArcWires2C2=W(F,15),this.entityCollection2.add(v(this.ToffsetArcWires2C2,"2C2跳线8"+(o-1)+"-"+o,this.LineInfo.wireWidth,this.LineInfo.wireTColor)));break}}}else switch(this.LineInfo.Wairnum){case $.单分裂:t=t+1;break;case $.双分裂:t=t+2;break;case $.四分裂:t=t+4;break;case $.六分裂:t=t+6;break;case $.八分裂:t=t+8;break}})}loadLineModel(){this.Keym=="OW_JPS_EEngin_001"&&(this.viewer.dataSources.add(this.dataSource2),this.viewer.entities.show)}LineSpriteLineinit(){ne._materialCache.addMaterial("SpriteLineMaterialType",{fabric:{type:"SpriteLineMaterialType",uniforms:{color:new I(1,1,0,1),speed:2},source:`
6585
6585
  uniform vec4 color;
6586
6586
  const float pi = 3.1415926;
6587
6587
  czm_material czm_getMaterial(czm_materialInput materialInput)
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "ow-eengine-power",
3
3
  "private": false,
4
- "version": "2.0.4",
4
+ "version": "2.0.5",
5
5
  "type": "module",
6
6
  "files": [
7
7
  "dist",