modified-dicom-pacs
Version:
A modified version of DICOM PACS implementation
1 lines • 65.3 kB
JavaScript
(globalThis.webpackChunk=globalThis.webpackChunk||[]).push([[702],{52662:(t,e,r)=>{"use strict";r.d(e,{Ay:()=>$});var n=r(68680),o=r(44753),a=r(84441);const i=[Number.MAX_VALUE,-Number.MAX_VALUE,Number.MAX_VALUE,-Number.MAX_VALUE,Number.MAX_VALUE,-Number.MAX_VALUE];function s(t,e){return t[0]===e[0]&&t[1]===e[1]&&t[2]===e[2]&&t[3]===e[3]&&t[4]===e[4]&&t[5]===e[5]}function u(t){return t?.length>=6&&t[0]<=t[1]&&t[2]<=t[3]&&t[4]<=t[5]}function c(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4],t[5]=e[5],t}function l(t){return c(t,i)}function f(t,e,r,n){const[o,a,i,s,u,c]=t;return t[0]=o<e?o:e,t[1]=a>e?a:e,t[2]=i<r?i:r,t[3]=s>r?s:r,t[4]=u<n?u:n,t[5]=c>n?c:n,t}function y(t,e){if(0===e.length)return t;if(Array.isArray(e[0]))for(let r=0;r<e.length;++r)f(t,...e[r]);else for(let r=0;r<e.length;r+=3)f(t,...e.slice(r,r+3));return t}function p(t,e,r,n,o,a,i){const[s,u,c,l,f,y]=t;return void 0===i?(t[0]=Math.min(e[0],s),t[1]=Math.max(e[1],u),t[2]=Math.min(e[2],c),t[3]=Math.max(e[3],l),t[4]=Math.min(e[4],f),t[5]=Math.max(e[5],y)):(t[0]=Math.min(e,s),t[1]=Math.max(r,u),t[2]=Math.min(n,c),t[3]=Math.max(o,l),t[4]=Math.min(a,f),t[5]=Math.max(i,y)),t}function h(t,e,r,n){const[o,a,i,s,u,c]=t;return t[0]=e,t[1]=e>a?e:a,t[2]=r,t[3]=r>s?r:s,t[4]=n,t[5]=n>c?n:c,o!==e||i!==r||u!==n}function d(t,e,r,n){const[o,a,i,s,u,c]=t;return t[0]=e<o?e:o,t[1]=e,t[2]=r<i?r:i,t[3]=r,t[4]=n<u?n:u,t[5]=n,a!==e||s!==r||c!==n}function g(t,e){return t[0]-=e,t[1]+=e,t[2]-=e,t[3]+=e,t[4]-=e,t[5]+=e,t}function b(t,e,r,n){return!!u(t)&&(e>=0?(t[0]*=e,t[1]*=e):(t[0]=e*t[1],t[1]=e*t[0]),r>=0?(t[2]*=r,t[3]*=r):(t[2]=r*t[3],t[3]=r*t[2]),n>=0?(t[4]*=n,t[5]*=n):(t[4]=n*t[5],t[5]=n*t[4]),!0)}function m(t){return[.5*(t[0]+t[1]),.5*(t[2]+t[3]),.5*(t[4]+t[5])]}function A(t,e){return t[2*e+1]-t[2*e]}function v(t){return[A(t,0),A(t,1),A(t,2)]}function M(t){return t.slice(0,2)}function x(t){return t.slice(2,4)}function O(t){return t.slice(4,6)}function P(t){const e=v(t);return e[0]>e[1]?e[0]>e[2]?e[0]:e[2]:e[1]>e[2]?e[1]:e[2]}function I(t){if(u(t)){const e=v(t);return Math.sqrt(e[0]*e[0]+e[1]*e[1]+e[2]*e[2])}return null}function E(t){return[t[0],t[2],t[4]]}function w(t){return[t[1],t[3],t[5]]}function S(t,e){return t<=0&&e>=0||t>=0&&e<=0}function N(t,e){let r=0;for(let n=0;n<2;n++)for(let o=2;o<4;o++)for(let a=4;a<6;a++)e[r++]=[t[n],t[o],t[a]];return e}function F(t,e,r){return e[0]=t[0],e[1]=t[2],e[2]=t[4],r[0]=t[1],r[1]=t[3],r[2]=t[5],e}function T(t,e){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];const n=N(t,[]);for(let t=0;t<n.length;++t)o.eR.transformMat4(n[t],n[t],e);return l(r),y(r,n)}function D(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return e[0]=.5*(t[1]-t[0]),e[1]=.5*(t[3]-t[2]),e[2]=.5*(t[5]-t[4]),e}function C(t,e,r,o){const a=[].concat(i),s=t.getData();for(let t=0;t<s.length;t+=3){const i=[s[t],s[t+1],s[t+2]],u=(0,n.d)(i,e);a[0]=Math.min(u,a[0]),a[1]=Math.max(u,a[1]);const c=(0,n.d)(i,r);a[2]=Math.min(c,a[2]),a[3]=Math.max(c,a[3]);const l=(0,n.d)(i,o);a[4]=Math.min(l,a[4]),a[5]=Math.max(l,a[5])}return a}function j(t,e,r,n,o){let a=!0;const i=[];let s=0;const u=[],c=[0,0,0];for(let r=0;r<3;r++)e[r]<t[2*r]?(i[r]=1,c[r]=t[2*r],a=!1):e[r]>t[2*r+1]?(i[r]=0,c[r]=t[2*r+1],a=!1):i[r]=2;if(a)return n[0]=e[0],n[1]=e[1],n[2]=e[2],o[0]=0,1;for(let t=0;t<3;t++)2!==i[t]&&0!==r[t]?u[t]=(c[t]-e[t])/r[t]:u[t]=-1;for(let t=0;t<3;t++)u[s]<u[t]&&(s=t);if(u[s]>1||u[s]<0)return 0;o[0]=u[s];for(let o=0;o<3;o++)if(s!==o){if(n[o]=e[o]+u[s]*r[o],n[o]<t[2*o]||n[o]>t[2*o+1])return 0}else n[o]=c[o];return 1}function _(t,e,r){const n=[];let o=0,i=1,s=1;for(let u=4;u<=5;++u){n[2]=t[u];for(let u=2;u<=3;++u){n[1]=t[u];for(let u=0;u<=1;++u)if(n[0]=t[u],o=a.Ay.evaluate(r,e,n),s&&(i=o>=0?1:-1,s=0),0===o||i>0&&o<0||i<0&&o>0)return 1}}return 0}function L(t,e){if(!u(t)||!u(e))return!1;const r=[0,0,0,0,0,0];let n;for(let o=0;o<3;o++)if(n=!1,e[2*o]>=t[2*o]&&e[2*o]<=t[2*o+1]?(n=!0,r[2*o]=e[2*o]):t[2*o]>=e[2*o]&&t[2*o]<=e[2*o+1]&&(n=!0,r[2*o]=t[2*o]),e[2*o+1]>=t[2*o]&&e[2*o+1]<=t[2*o+1]?(n=!0,r[2*o+1]=e[2*o+1]):t[2*o+1]>=e[2*o]&&t[2*o+1]<=e[2*o+1]&&(n=!0,r[2*o+1]=t[2*o+1]),!n)return!1;return t[0]=r[0],t[1]=r[1],t[2]=r[2],t[3]=r[3],t[4]=r[4],t[5]=r[5],!0}function R(t,e){if(!u(t)||!u(e))return!1;for(let r=0;r<3;r++)if(!(e[2*r]>=t[2*r]&&e[2*r]<=t[2*r+1]||t[2*r]>=e[2*r]&&t[2*r]<=e[2*r+1]||e[2*r+1]>=t[2*r]&&e[2*r+1]<=t[2*r+1]||t[2*r+1]>=e[2*r]&&t[2*r+1]<=e[2*r+1]))return!1;return!0}function k(t,e,r,n){return!(e<t[0]||e>t[1])&&(!(r<t[2]||r>t[3])&&!(n<t[4]||n>t[5]))}function B(t,e,r){const n=[[0,1,2,3,4,5,6,7],[0,1,4,5,2,3,6,7],[0,2,4,6,1,3,5,7]],o=[0,0,0,0,0,0,0,0];let i=0;for(let n=0;n<2;n++)for(let s=2;s<4;s++)for(let u=4;u<6;u++){const c=[t[n],t[s],t[u]];o[i++]=a.Ay.evaluate(r,e,c)}let s=2;for(;s--&&!(S(o[n[s][0]],o[n[s][4]])&&S(o[n[s][1]],o[n[s][5]])&&S(o[n[s][2]],o[n[s][6]])&&S(o[n[s][3]],o[n[s][7]])););if(s<0)return!1;const u=Math.sign(r[s]),c=Math.abs((t[2*s+1]-t[2*s])*r[s]);let l=u>0?1:0;for(let t=0;t<4;t++){if(0===c)continue;const e=Math.abs(o[n[s][t]])/c;u>0&&e<l&&(l=e),u<0&&e>l&&(l=e)}const f=(1-l)*t[2*s]+l*t[2*s+1];return u>0?t[2*s]=f:t[2*s+1]=f,!0}class U{constructor(t){this.bounds=t,this.bounds||(this.bounds=new Float64Array(i))}getBounds(){return this.bounds}equals(t){return s(this.bounds,t)}isValid(){return u(this.bounds)}setBounds(t){return c(this.bounds,t)}reset(){return l(this.bounds)}addPoint(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];return f(this.bounds,...e)}addPoints(t){return y(this.bounds,t)}addBounds(t,e,r,n,o,a){return p(this.bounds,t,e,r,n,o,a)}setMinPoint(t,e,r){return h(this.bounds,t,e,r)}setMaxPoint(t,e,r){return d(this.bounds,t,e,r)}inflate(t){return g(this.bounds,t)}scale(t,e,r){return b(this.bounds,t,e,r)}getCenter(){return m(this.bounds)}getLength(t){return A(this.bounds,t)}getLengths(){return v(this.bounds)}getMaxLength(){return P(this.bounds)}getDiagonalLength(){return I(this.bounds)}getMinPoint(){return E(this.bounds)}getMaxPoint(){return w(this.bounds)}getXRange(){return M(this.bounds)}getYRange(){return x(this.bounds)}getZRange(){return O(this.bounds)}getCorners(t){return N(this.bounds,t)}computeCornerPoints(t,e){return F(this.bounds,t,e)}computeLocalBounds(t,e,r){return C(this.bounds,t,e,r)}transformBounds(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return T(this.bounds,t,e)}computeScale3(t){return D(this.bounds,t)}cutWithPlane(t,e){return B(this.bounds,t,e)}intersectBox(t,e,r,n){return j(this.bounds,t,e,r,n)}intersectPlane(t,e){return _(this.bounds,t,e)}intersect(t){return L(this.bounds,t)}intersects(t){return R(this.bounds,t)}containsPoint(t,e,r){return k(this.bounds,t,e,r)}contains(t){return R(this.bounds,t)}}var $={newInstance:function(t){const e=t&&t.bounds;return new U(e)},...{equals:s,isValid:u,setBounds:c,reset:l,addPoint:f,addPoints:y,addBounds:p,setMinPoint:h,setMaxPoint:d,inflate:g,scale:b,scaleAboutCenter:function(t,e,r,n){if(!u(t))return!1;const o=m(t);return t[0]-=o[0],t[1]-=o[0],t[2]-=o[1],t[3]-=o[1],t[4]-=o[2],t[5]-=o[2],b(t,e,r,n),t[0]+=o[0],t[1]+=o[0],t[2]+=o[1],t[3]+=o[1],t[4]+=o[2],t[5]+=o[2],!0},getCenter:m,getLength:A,getLengths:v,getMaxLength:P,getDiagonalLength:I,getMinPoint:E,getMaxPoint:w,getXRange:M,getYRange:x,getZRange:O,getCorners:N,computeCornerPoints:F,computeLocalBounds:C,transformBounds:T,computeScale3:D,cutWithPlane:B,intersectBox:j,intersectPlane:_,intersect:L,intersects:R,containsPoint:k,contains:function(t,e){return!!R(t,e)&&(!!k(t,...E(e))&&!!k(t,...w(e)))},INIT_BOUNDS:i}}},32090:(t,e,r)=>{"use strict";r.d(e,{Ay:()=>x});var n=r(50906),o=r(66388),a=r(45128);const{vtkErrorMacro:i,vtkWarningMacro:s}=n.m;const u={arrays:[],copyFieldFlags:[],doCopyAllOn:!0,doCopyAllOff:!1};function c(t,e){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};Object.assign(e,u,r),n.m.obj(t,e),function(t,e){e.classHierarchy.push("vtkFieldData");const r=t.getState;e.arrays&&(e.arrays=e.arrays.map((t=>({data:(0,o.A)(t.data)})))),t.initialize=()=>{t.initializeFields(),t.copyAllOn(),t.clearFieldFlags()},t.initializeFields=()=>{e.arrays=[],e.copyFieldFlags={},t.modified()},t.copyStructure=r=>{t.initializeFields(),e.copyFieldFlags=r.getCopyFieldFlags().map((t=>t)),e.arrays=r.arrays().map((t=>({array:t})))},t.getNumberOfArrays=()=>e.arrays.length,t.getNumberOfActiveArrays=()=>e.arrays.length,t.addArray=r=>{const n=r.getName(),{array:o,index:a}=t.getArrayWithIndex(n);return null!=o?(e.arrays[a]={data:r},a):(e.arrays=[].concat(e.arrays,{data:r}),e.arrays.length-1)},t.removeAllArrays=()=>{e.arrays=[]},t.removeArray=r=>{const n=e.arrays.findIndex((t=>t.data.getName()===r));return t.removeArrayByIndex(n)},t.removeArrayByIndex=t=>-1!==t&&t<e.arrays.length&&(e.arrays.splice(t,1),!0),t.getArrays=()=>e.arrays.map((t=>t.data)),t.getArray=e=>"number"==typeof e?t.getArrayByIndex(e):t.getArrayByName(e),t.getArrayByName=t=>e.arrays.reduce(((e,r,n)=>r.data.getName()===t?r.data:e),null),t.getArrayWithIndex=t=>{const r=e.arrays.findIndex((e=>e.data.getName()===t));return{array:-1!==r?e.arrays[r].data:null,index:r}},t.getArrayByIndex=t=>t>=0&&t<e.arrays.length?e.arrays[t].data:null,t.hasArray=e=>t.getArrayWithIndex(e).index>=0,t.getArrayName=t=>{const r=e.arrays[t];return r?r.data.getName():""},t.getCopyFieldFlags=()=>e.copyFieldFlags,t.getFlag=t=>e.copyFieldFlags[t],t.passData=function(r){let o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:-1,s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:-1;r.getArrays().forEach((u=>{const c=t.getFlag(u.getName());if(!1!==c&&(!e.doCopyAllOff||!0===c)&&u){let e=t.getArrayByName(u.getName());if(e)if(u.getNumberOfComponents()===e.getNumberOfComponents())if(o>-1&&o<u.getNumberOfTuples()){const t=s>-1?s:o;e.insertTuple(t,u.getTuple(o))}else e.insertTuples(0,u.getTuples());else i("Unhandled case in passData");else if(o<0||o>u.getNumberOfTuples())t.addArray(u),r.getAttributes(u).forEach((e=>{t.setAttribute(u,e)}));else{const i=u.getNumberOfComponents();let c=u.getNumberOfValues();const l=s>-1?s:o;c<=l*i&&(c=(l+1)*i),e=a.Ay.newInstance({name:u.getName(),dataType:u.getDataType(),numberOfComponents:i,values:n.m.newTypedArray(u.getDataType(),c),size:0}),e.insertTuple(l,u.getTuple(o)),t.addArray(e),r.getAttributes(u).forEach((r=>{t.setAttribute(e,r)}))}}}))},t.interpolateData=function(r){let o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:-1,u=arguments.length>2&&void 0!==arguments[2]?arguments[2]:-1,c=arguments.length>3&&void 0!==arguments[3]?arguments[3]:-1,l=arguments.length>4&&void 0!==arguments[4]?arguments[4]:.5;r.getArrays().forEach((f=>{const y=t.getFlag(f.getName());if(!1!==y&&(!e.doCopyAllOff||!0===y)&&f){let e=t.getArrayByName(f.getName());if(e)if(f.getNumberOfComponents()===e.getNumberOfComponents())if(o>-1&&o<f.getNumberOfTuples()){const t=c>-1?c:o;e.interpolateTuple(t,f,o,f,u,l),s("Unexpected case in interpolateData")}else e.insertTuples(f.getTuples());else i("Unhandled case in interpolateData");else if(o<0||u<0||o>f.getNumberOfTuples())t.addArray(f),r.getAttributes(f).forEach((e=>{t.setAttribute(f,e)}));else{const i=f.getNumberOfComponents();let s=f.getNumberOfValues();const y=c>-1?c:o;s<=y*i&&(s=(y+1)*i),e=a.Ay.newInstance({name:f.getName(),dataType:f.getDataType(),numberOfComponents:i,values:n.m.newTypedArray(f.getDataType(),s),size:0}),e.interpolateTuple(y,f,o,f,u,l),t.addArray(e),r.getAttributes(f).forEach((r=>{t.setAttribute(e,r)}))}}}))},t.copyFieldOn=t=>{e.copyFieldFlags[t]=!0},t.copyFieldOff=t=>{e.copyFieldFlags[t]=!1},t.copyAllOn=()=>{e.doCopyAllOn&&!e.doCopyAllOff||(e.doCopyAllOn=!0,e.doCopyAllOff=!1,t.modified())},t.copyAllOff=()=>{!e.doCopyAllOn&&e.doCopyAllOff||(e.doCopyAllOn=!1,e.doCopyAllOff=!0,t.modified())},t.clearFieldFlags=()=>{e.copyFieldFlags={}},t.deepCopy=t=>{e.arrays=t.getArrays().map((t=>{const e=t.newClone();return e.deepCopy(t),{data:e}}))},t.copyFlags=t=>t.getCopyFieldFlags().map((t=>t)),t.reset=()=>e.arrays.forEach((t=>t.data.reset())),t.getMTime=()=>e.arrays.reduce(((t,e)=>e.data.getMTime()>t?e.data.getMTime():t),e.mtime),t.getNumberOfComponents=()=>e.arrays.reduce(((t,e)=>t+e.data.getNumberOfComponents()),0),t.getNumberOfTuples=()=>e.arrays.length>0?e.arrays[0].getNumberOfTuples():0,t.getState=()=>{const t=r();return t&&(t.arrays=e.arrays.map((t=>({data:t.data.getState()})))),t}}(t,e)}var l={newInstance:n.m.newInstance(c,"vtkFieldData"),extend:c},f=r(94884);const{AttributeTypes:y,AttributeCopyOperations:p}=f.Ay,{vtkWarningMacro:h}=n.m;const d={activeScalars:-1,activeVectors:-1,activeTensors:-1,activeNormals:-1,activeTCoords:-1,activeGlobalIds:-1,activePedigreeIds:-1};function g(t,e){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};Object.assign(e,d,r),l.extend(t,e,r),n.m.setGet(t,e,["activeScalars","activeNormals","activeTCoords","activeVectors","activeTensors","activeGlobalIds","activePedigreeIds"]),e.arrays||(e.arrays={}),function(t,e){const r=["Scalars","Vectors","Normals","TCoords","Tensors","GlobalIds","PedigreeIds"];function o(t){let e=r.find((e=>y[e.toUpperCase()]===t||"number"!=typeof t&&e.toLowerCase()===t.toLowerCase()));return void 0===e&&(e=null),e}e.classHierarchy.push("vtkDataSetAttributes");const i={...t};t.checkNumberOfComponents=t=>!0,t.setAttribute=(r,n)=>{const a=o(n);if(r&&"PEDIGREEIDS"===a.toUpperCase()&&!r.isA("vtkDataArray"))return h(`Cannot set attribute ${a}. The attribute must be a vtkDataArray.`),-1;if(r&&!t.checkNumberOfComponents(r,a))return h(`Cannot set attribute ${a}. Incorrect number of components.`),-1;let i=e[`active${a}`];if(i>=0&&i<e.arrays.length){if(e.arrays[i]===r)return i;t.removeArrayByIndex(i)}return r?(i=t.addArray(r),e[`active${a}`]=i):e[`active${a}`]=-1,t.modified(),e[`active${a}`]},t.getAttributes=e=>r.filter((r=>t[`get${r}`]()===e)),t.setActiveAttributeByName=(e,r)=>t.setActiveAttributeByIndex(t.getArrayWithIndex(e).index,r),t.setActiveAttributeByIndex=(r,n)=>{const a=o(n);if(r>=0&&r<e.arrays.length){if("PEDIGREEIDS"!==a.toUpperCase()){const e=t.getArrayByIndex(r);if(!e.isA("vtkDataArray"))return h(`Cannot set attribute ${a}. Only vtkDataArray subclasses can be set as active attributes.`),-1;if(!t.checkNumberOfComponents(e,a))return h(`Cannot set attribute ${a}. Incorrect number of components.`),-1}return e[`active${a}`]=r,t.modified(),r}return-1===r&&(e[`active${a}`]=r,t.modified()),-1},t.getActiveAttribute=e=>{const r=o(e);return t[`get${r}`]()},t.removeAllArrays=()=>{r.forEach((t=>{e[`active${t}`]=-1})),i.removeAllArrays()},t.removeArrayByIndex=t=>(-1!==t&&r.forEach((r=>{t===e[`active${r}`]?e[`active${r}`]=-1:t<e[`active${r}`]&&(e[`active${r}`]-=1)})),i.removeArrayByIndex(t)),r.forEach((r=>{const n=`active${r}`;t[`get${r}`]=()=>t.getArrayByIndex(e[n]),t[`set${r}`]=e=>t.setAttribute(e,r),t[`setActive${r}`]=e=>t.setActiveAttributeByIndex(t.getArrayWithIndex(e).index,r),t[`copy${r}Off`]=()=>{const t=r.toUpperCase();e.copyAttributeFlags[p.PASSDATA][y[t]]=!1},t[`copy${r}On`]=()=>{const t=r.toUpperCase();e.copyAttributeFlags[p.PASSDATA][y[t]]=!0}})),t.initializeAttributeCopyFlags=()=>{e.copyAttributeFlags=[],Object.keys(p).filter((t=>"ALLCOPY"!==t)).forEach((t=>{e.copyAttributeFlags[p[t]]=Object.keys(y).filter((t=>"NUM_ATTRIBUTES"!==t)).reduce(((t,e)=>(t[y[e]]=!0,t)),[])})),e.copyAttributeFlags[p.COPYTUPLE][y.GLOBALIDS]=!1,e.copyAttributeFlags[p.INTERPOLATE][y.GLOBALIDS]=!1,e.copyAttributeFlags[p.COPYTUPLE][y.PEDIGREEIDS]=!1},t.initialize=n.m.chain(t.initialize,t.initializeAttributeCopyFlags),e.dataArrays&&Object.keys(e.dataArrays).length&&Object.keys(e.dataArrays).forEach((r=>{e.dataArrays[r].ref||"vtkDataArray"!==e.dataArrays[r].type||t.addArray(a.Ay.newInstance(e.dataArrays[r]))}));const s=t.shallowCopy;t.shallowCopy=(t,r)=>{s(t,r),e.arrays=t.getArrays().map((t=>{const e=t.newClone();return e.shallowCopy(t,r),{data:e}}))},t.initializeAttributeCopyFlags()}(t,e)}var b={newInstance:n.m.newInstance(g,"vtkDataSetAttributes"),extend:g,...f.Ay};var m={FieldDataTypes:{UNIFORM:0,DATA_OBJECT_FIELD:0,COORDINATE:1,POINT_DATA:1,POINT:2,POINT_FIELD_DATA:2,CELL:3,CELL_FIELD_DATA:3,VERTEX:4,VERTEX_FIELD_DATA:4,EDGE:5,EDGE_FIELD_DATA:5,ROW:6,ROW_DATA:6},FieldAssociations:{FIELD_ASSOCIATION_POINTS:0,FIELD_ASSOCIATION_CELLS:1,FIELD_ASSOCIATION_NONE:2,FIELD_ASSOCIATION_POINTS_THEN_CELLS:3,FIELD_ASSOCIATION_VERTICES:4,FIELD_ASSOCIATION_EDGES:5,FIELD_ASSOCIATION_ROWS:6,NUMBER_OF_ASSOCIATIONS:7}};const A=["pointData","cellData","fieldData"];const v={};function M(t,e){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};Object.assign(e,v,r),n.m.obj(t,e),n.m.setGet(t,e,A),function(t,e){e.classHierarchy.push("vtkDataSet"),A.forEach((t=>{e[t]?e[t]=(0,o.A)(e[t]):e[t]=b.newInstance()}));const r=t.shallowCopy;t.shallowCopy=function(t){r(t,arguments.length>1&&void 0!==arguments[1]&&arguments[1]),A.forEach((r=>{e[r]=b.newInstance(),e[r].shallowCopy(t.getReferenceByName(r))}))}}(t,e)}var x={newInstance:n.m.newInstance(M,"vtkDataSet"),extend:M,...m}},84441:(t,e,r)=>{"use strict";r.d(e,{Ay:()=>b});var n=r(68680),o=r(50906);const a=1e-6,i="coincide",s="disjoint";function u(t,e,r){const n=r[0]*(t[0]-e[0])+r[1]*(t[1]-e[1])+r[2]*(t[2]-e[2]);return Math.abs(n)}function c(t,e,r,o){const a=[];(0,n.s)(t,e,a);const i=(0,n.d)(r,a);o[0]=t[0]-i*r[0],o[1]=t[1]-i*r[1],o[2]=t[2]-i*r[2]}function l(t,e,r){const o=(0,n.d)(t,e);let a=(0,n.d)(e,e);return 0===a&&(a=1),r[0]=t[0]-o*e[0]/a,r[1]=t[1]-o*e[1]/a,r[2]=t[2]-o*e[2]/a,r}function f(t,e,r,o){const a=[];(0,n.s)(t,e,a);const i=(0,n.d)(r,a),s=(0,n.d)(r,r);0!==s?(o[0]=t[0]-i*r[0]/s,o[1]=t[1]-i*r[1]/s,o[2]=t[2]-i*r[2]/s):(o[0]=t[0],o[1]=t[1],o[2]=t[2])}function y(t,e,r,o){const i={intersection:!1,betweenPoints:!1,t:Number.MAX_VALUE,x:[]},s=[],u=[];(0,n.s)(e,t,s),(0,n.s)(r,t,u);const c=(0,n.d)(o,u),l=(0,n.d)(o,s);let f,y;return f=l<0?-l:l,y=c<0?-c*a:c*a,f<=y||(i.t=c/l,i.x[0]=t[0]+i.t*s[0],i.x[1]=t[1]+i.t*s[1],i.x[2]=t[2]+i.t*s[2],i.intersection=!0,i.betweenPoints=i.t>=0&&i.t<=1),i}function p(t,e,r,o){const u={intersection:!1,l0:[],l1:[],error:null},c=[];(0,n.j)(e,o,c);const l=c.map((t=>Math.abs(t)));if(l[0]+l[1]+l[2]<a){const o=[];return(0,n.s)(t,r,o),0===(0,n.d)(e,o)?u.error=i:u.error=s,u}let f;f=l[0]>l[1]&&l[0]>l[2]?"x":l[1]>l[2]?"y":"z";const y=[],p=-(0,n.d)(e,t),h=-(0,n.d)(o,r);switch(f){case"x":y[0]=0,y[1]=(h*e[2]-p*o[2])/c[0],y[2]=(p*o[1]-h*e[1])/c[0];break;case"y":y[0]=(p*o[2]-h*e[2])/c[1],y[1]=0,y[2]=(h*e[0]-p*o[0])/c[1];break;case"z":y[0]=(h*e[1]-p*o[1])/c[2],y[1]=(p*o[0]-h*e[0])/c[2],y[2]=0}return u.l0=y,(0,n.k)(y,c,u.l1),u.intersection=!0,u}const h={evaluate:function(t,e,r){return t[0]*(r[0]-e[0])+t[1]*(r[1]-e[1])+t[2]*(r[2]-e[2])},distanceToPlane:u,projectPoint:c,projectVector:l,generalizedProjectPoint:f,intersectWithLine:y,intersectWithPlane:p,DISJOINT:s,COINCIDE:i};const d={normal:[0,0,1],origin:[0,0,0]};function g(t,e){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};Object.assign(e,d,r),o.m.obj(t,e),o.m.setGetArray(t,e,["normal","origin"],3),function(t,e){e.classHierarchy.push("vtkPlane"),t.distanceToPlane=t=>u(t,e.origin,e.normal),t.projectPoint=(t,r)=>{c(t,e.origin,e.normal,r)},t.projectVector=(t,r)=>l(t,e.normal,r),t.push=t=>{if(0!==t)for(let r=0;r<3;r++)e.origin[r]+=t*e.normal[r]},t.generalizedProjectPoint=(t,r)=>{f(t,e.origin,e.normal,r)},t.evaluateFunction=(t,r,n)=>Array.isArray(t)?e.normal[0]*(t[0]-e.origin[0])+e.normal[1]*(t[1]-e.origin[1])+e.normal[2]*(t[2]-e.origin[2]):e.normal[0]*(t-e.origin[0])+e.normal[1]*(r-e.origin[1])+e.normal[2]*(n-e.origin[2]),t.evaluateGradient=t=>[e.normal[0],e.normal[1],e.normal[2]],t.intersectWithLine=(t,r)=>y(t,r,e.origin,e.normal),t.intersectWithPlane=(t,r)=>p(t,r,e.origin,e.normal)}(t,e)}var b={newInstance:o.m.newInstance(g,"vtkPlane"),extend:g,...h}},89780:(t,e,r)=>{"use strict";r.d(e,{A:()=>a});var n=r(13422);const{StructuredType:o}=n.A;var a={getDataDescriptionFromExtent:function(t){let e=0;for(let r=0;r<3;++r)t[2*r]<t[2*r+1]&&e++;return t[0]>t[1]||t[2]>t[3]||t[4]>t[5]?o.EMPTY:3===e?o.XYZ_GRID:2===e?t[0]===t[1]?o.YZ_PLANE:t[2]===t[3]?o.XZ_PLANE:o.XY_PLANE:1===e?t[0]<t[1]?o.X_LINE:t[2]<t[3]?o.Y_LINE:o.Z_LINE:o.SINGLE_POINT},...n.A}},13422:(t,e,r)=>{"use strict";r.d(e,{A:()=>o,e:()=>n});const n={UNCHANGED:0,SINGLE_POINT:1,X_LINE:2,Y_LINE:3,Z_LINE:4,XY_PLANE:5,YZ_PLANE:6,XZ_PLANE:7,XYZ_GRID:8,EMPTY:9};var o={StructuredType:n}},3483:(t,e,r)=>{"use strict";var n=r(25405),o=r(52814),a=r(18709),i=r(95121);t.exports=function(t,e,r){if(!t||"object"!=typeof t&&"function"!=typeof t)throw new a("`obj` must be an object or a function`");if("string"!=typeof e&&"symbol"!=typeof e)throw new a("`property` must be a string or a symbol`");if(arguments.length>3&&"boolean"!=typeof arguments[3]&&null!==arguments[3])throw new a("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&"boolean"!=typeof arguments[4]&&null!==arguments[4])throw new a("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&"boolean"!=typeof arguments[5]&&null!==arguments[5])throw new a("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&"boolean"!=typeof arguments[6])throw new a("`loose`, if provided, must be a boolean");var s=arguments.length>3?arguments[3]:null,u=arguments.length>4?arguments[4]:null,c=arguments.length>5?arguments[5]:null,l=arguments.length>6&&arguments[6],f=!!i&&i(t,e);if(n)n(t,e,{configurable:null===c&&f?f.configurable:!c,enumerable:null===s&&f?f.enumerable:!s,value:r,writable:null===u&&f?f.writable:!u});else{if(!l&&(s||u||c))throw new o("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.");t[e]=r}}},27086:(t,e,r)=>{"use strict";var n=r(15319),o="function"==typeof Symbol&&"symbol"==typeof Symbol("foo"),a=Object.prototype.toString,i=Array.prototype.concat,s=r(3483),u=r(10654)(),c=function(t,e,r,n){if(e in t)if(!0===n){if(t[e]===r)return}else if("function"!=typeof(o=n)||"[object Function]"!==a.call(o)||!n())return;var o;u?s(t,e,r,!0):s(t,e,r)},l=function(t,e){var r=arguments.length>2?arguments[2]:{},a=n(e);o&&(a=i.call(a,Object.getOwnPropertySymbols(e)));for(var s=0;s<a.length;s+=1)c(t,a[s],e[a[s]],r[a[s]])};l.supportsDescriptors=!!u,t.exports=l},25405:(t,e,r)=>{"use strict";var n=r(45159)("%Object.defineProperty%",!0)||!1;if(n)try{n({},"a",{value:1})}catch(t){n=!1}t.exports=n},32363:t=>{"use strict";t.exports=EvalError},9873:t=>{"use strict";t.exports=Error},79212:t=>{"use strict";t.exports=RangeError},78008:t=>{"use strict";t.exports=ReferenceError},52814:t=>{"use strict";t.exports=SyntaxError},18709:t=>{"use strict";t.exports=TypeError},29067:t=>{"use strict";t.exports=URIError},72859:t=>{"use strict";var e=Object.prototype.toString,r=Math.max,n=function(t,e){for(var r=[],n=0;n<t.length;n+=1)r[n]=t[n];for(var o=0;o<e.length;o+=1)r[o+t.length]=e[o];return r};t.exports=function(t){var o=this;if("function"!=typeof o||"[object Function]"!==e.apply(o))throw new TypeError("Function.prototype.bind called on incompatible "+o);for(var a,i=function(t,e){for(var r=[],n=e||0,o=0;n<t.length;n+=1,o+=1)r[o]=t[n];return r}(arguments,1),s=r(0,o.length-i.length),u=[],c=0;c<s;c++)u[c]="$"+c;if(a=Function("binder","return function ("+function(t,e){for(var r="",n=0;n<t.length;n+=1)r+=t[n],n+1<t.length&&(r+=e);return r}(u,",")+"){ return binder.apply(this,arguments); }")((function(){if(this instanceof a){var e=o.apply(this,n(i,arguments));return Object(e)===e?e:this}return o.apply(t,n(i,arguments))})),o.prototype){var l=function(){};l.prototype=o.prototype,a.prototype=new l,l.prototype=null}return a}},11893:(t,e,r)=>{"use strict";var n=r(72859);t.exports=Function.prototype.bind||n},45159:(t,e,r)=>{"use strict";var n,o=r(9873),a=r(32363),i=r(79212),s=r(78008),u=r(52814),c=r(18709),l=r(29067),f=Function,y=function(t){try{return f('"use strict"; return ('+t+").constructor;")()}catch(t){}},p=Object.getOwnPropertyDescriptor;if(p)try{p({},"")}catch(t){p=null}var h=function(){throw new c},d=p?function(){try{return h}catch(t){try{return p(arguments,"callee").get}catch(t){return h}}}():h,g=r(77165)(),b=r(40402)(),m=Object.getPrototypeOf||(b?function(t){return t.__proto__}:null),A={},v="undefined"!=typeof Uint8Array&&m?m(Uint8Array):n,M={__proto__:null,"%AggregateError%":"undefined"==typeof AggregateError?n:AggregateError,"%Array%":Array,"%ArrayBuffer%":"undefined"==typeof ArrayBuffer?n:ArrayBuffer,"%ArrayIteratorPrototype%":g&&m?m([][Symbol.iterator]()):n,"%AsyncFromSyncIteratorPrototype%":n,"%AsyncFunction%":A,"%AsyncGenerator%":A,"%AsyncGeneratorFunction%":A,"%AsyncIteratorPrototype%":A,"%Atomics%":"undefined"==typeof Atomics?n:Atomics,"%BigInt%":"undefined"==typeof BigInt?n:BigInt,"%BigInt64Array%":"undefined"==typeof BigInt64Array?n:BigInt64Array,"%BigUint64Array%":"undefined"==typeof BigUint64Array?n:BigUint64Array,"%Boolean%":Boolean,"%DataView%":"undefined"==typeof DataView?n:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":o,"%eval%":eval,"%EvalError%":a,"%Float32Array%":"undefined"==typeof Float32Array?n:Float32Array,"%Float64Array%":"undefined"==typeof Float64Array?n:Float64Array,"%FinalizationRegistry%":"undefined"==typeof FinalizationRegistry?n:FinalizationRegistry,"%Function%":f,"%GeneratorFunction%":A,"%Int8Array%":"undefined"==typeof Int8Array?n:Int8Array,"%Int16Array%":"undefined"==typeof Int16Array?n:Int16Array,"%Int32Array%":"undefined"==typeof Int32Array?n:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":g&&m?m(m([][Symbol.iterator]())):n,"%JSON%":"object"==typeof JSON?JSON:n,"%Map%":"undefined"==typeof Map?n:Map,"%MapIteratorPrototype%":"undefined"!=typeof Map&&g&&m?m((new Map)[Symbol.iterator]()):n,"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"==typeof Promise?n:Promise,"%Proxy%":"undefined"==typeof Proxy?n:Proxy,"%RangeError%":i,"%ReferenceError%":s,"%Reflect%":"undefined"==typeof Reflect?n:Reflect,"%RegExp%":RegExp,"%Set%":"undefined"==typeof Set?n:Set,"%SetIteratorPrototype%":"undefined"!=typeof Set&&g&&m?m((new Set)[Symbol.iterator]()):n,"%SharedArrayBuffer%":"undefined"==typeof SharedArrayBuffer?n:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":g&&m?m(""[Symbol.iterator]()):n,"%Symbol%":g?Symbol:n,"%SyntaxError%":u,"%ThrowTypeError%":d,"%TypedArray%":v,"%TypeError%":c,"%Uint8Array%":"undefined"==typeof Uint8Array?n:Uint8Array,"%Uint8ClampedArray%":"undefined"==typeof Uint8ClampedArray?n:Uint8ClampedArray,"%Uint16Array%":"undefined"==typeof Uint16Array?n:Uint16Array,"%Uint32Array%":"undefined"==typeof Uint32Array?n:Uint32Array,"%URIError%":l,"%WeakMap%":"undefined"==typeof WeakMap?n:WeakMap,"%WeakRef%":"undefined"==typeof WeakRef?n:WeakRef,"%WeakSet%":"undefined"==typeof WeakSet?n:WeakSet};if(m)try{null.error}catch(t){var x=m(m(t));M["%Error.prototype%"]=x}var O=function t(e){var r;if("%AsyncFunction%"===e)r=y("async function () {}");else if("%GeneratorFunction%"===e)r=y("function* () {}");else if("%AsyncGeneratorFunction%"===e)r=y("async function* () {}");else if("%AsyncGenerator%"===e){var n=t("%AsyncGeneratorFunction%");n&&(r=n.prototype)}else if("%AsyncIteratorPrototype%"===e){var o=t("%AsyncGenerator%");o&&m&&(r=m(o.prototype))}return M[e]=r,r},P={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},I=r(11893),E=r(2227),w=I.call(Function.call,Array.prototype.concat),S=I.call(Function.apply,Array.prototype.splice),N=I.call(Function.call,String.prototype.replace),F=I.call(Function.call,String.prototype.slice),T=I.call(Function.call,RegExp.prototype.exec),D=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,C=/\\(\\)?/g,j=function(t,e){var r,n=t;if(E(P,n)&&(n="%"+(r=P[n])[0]+"%"),E(M,n)){var o=M[n];if(o===A&&(o=O(n)),void 0===o&&!e)throw new c("intrinsic "+t+" exists, but is not available. Please file an issue!");return{alias:r,name:n,value:o}}throw new u("intrinsic "+t+" does not exist!")};t.exports=function(t,e){if("string"!=typeof t||0===t.length)throw new c("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!=typeof e)throw new c('"allowMissing" argument must be a boolean');if(null===T(/^%?[^%]*%?$/,t))throw new u("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var r=function(t){var e=F(t,0,1),r=F(t,-1);if("%"===e&&"%"!==r)throw new u("invalid intrinsic syntax, expected closing `%`");if("%"===r&&"%"!==e)throw new u("invalid intrinsic syntax, expected opening `%`");var n=[];return N(t,D,(function(t,e,r,o){n[n.length]=r?N(o,C,"$1"):e||t})),n}(t),n=r.length>0?r[0]:"",o=j("%"+n+"%",e),a=o.name,i=o.value,s=!1,l=o.alias;l&&(n=l[0],S(r,w([0,1],l)));for(var f=1,y=!0;f<r.length;f+=1){var h=r[f],d=F(h,0,1),g=F(h,-1);if(('"'===d||"'"===d||"`"===d||'"'===g||"'"===g||"`"===g)&&d!==g)throw new u("property names with quotes must have matching quotes");if("constructor"!==h&&y||(s=!0),E(M,a="%"+(n+="."+h)+"%"))i=M[a];else if(null!=i){if(!(h in i)){if(!e)throw new c("base intrinsic for "+t+" exists, but the property is not available.");return}if(p&&f+1>=r.length){var b=p(i,h);i=(y=!!b)&&"get"in b&&!("originalValue"in b.get)?b.get:i[h]}else y=E(i,h),i=i[h];y&&!s&&(M[a]=i)}}return i}},99304:(t,e,r)=>{"use strict";r(47705)},28806:(t,e,r)=>{"use strict";r(47705)},20126:(t,e,r)=>{"use strict";r.r(e),r.d(e,{add:()=>V,adjoint:()=>y,clone:()=>a,copy:()=>i,create:()=>o,determinant:()=>p,equals:()=>Q,exactEquals:()=>H,frob:()=>q,fromQuat:()=>j,fromQuat2:()=>S,fromRotation:()=>O,fromRotationTranslation:()=>w,fromRotationTranslationScale:()=>D,fromRotationTranslationScaleOrigin:()=>C,fromScaling:()=>x,fromTranslation:()=>M,fromValues:()=>s,fromXRotation:()=>P,fromYRotation:()=>I,fromZRotation:()=>E,frustum:()=>_,getRotation:()=>T,getScaling:()=>F,getTranslation:()=>N,identity:()=>c,invert:()=>f,lookAt:()=>G,mul:()=>K,multiply:()=>h,multiplyScalar:()=>Z,multiplyScalarAndAdd:()=>J,ortho:()=>$,orthoNO:()=>U,orthoZO:()=>Y,perspective:()=>R,perspectiveFromFieldOfView:()=>B,perspectiveNO:()=>L,perspectiveZO:()=>k,rotate:()=>b,rotateX:()=>m,rotateY:()=>A,rotateZ:()=>v,scale:()=>g,set:()=>u,str:()=>W,sub:()=>tt,subtract:()=>X,targetTo:()=>z,translate:()=>d,transpose:()=>l});var n=r(47705);function o(){var t=new n.ARRAY_TYPE(16);return n.ARRAY_TYPE!=Float32Array&&(t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[11]=0,t[12]=0,t[13]=0,t[14]=0),t[0]=1,t[5]=1,t[10]=1,t[15]=1,t}function a(t){var e=new n.ARRAY_TYPE(16);return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4],e[5]=t[5],e[6]=t[6],e[7]=t[7],e[8]=t[8],e[9]=t[9],e[10]=t[10],e[11]=t[11],e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15],e}function i(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4],t[5]=e[5],t[6]=e[6],t[7]=e[7],t[8]=e[8],t[9]=e[9],t[10]=e[10],t[11]=e[11],t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15],t}function s(t,e,r,o,a,i,s,u,c,l,f,y,p,h,d,g){var b=new n.ARRAY_TYPE(16);return b[0]=t,b[1]=e,b[2]=r,b[3]=o,b[4]=a,b[5]=i,b[6]=s,b[7]=u,b[8]=c,b[9]=l,b[10]=f,b[11]=y,b[12]=p,b[13]=h,b[14]=d,b[15]=g,b}function u(t,e,r,n,o,a,i,s,u,c,l,f,y,p,h,d,g){return t[0]=e,t[1]=r,t[2]=n,t[3]=o,t[4]=a,t[5]=i,t[6]=s,t[7]=u,t[8]=c,t[9]=l,t[10]=f,t[11]=y,t[12]=p,t[13]=h,t[14]=d,t[15]=g,t}function c(t){return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=1,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=1,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t}function l(t,e){if(t===e){var r=e[1],n=e[2],o=e[3],a=e[6],i=e[7],s=e[11];t[1]=e[4],t[2]=e[8],t[3]=e[12],t[4]=r,t[6]=e[9],t[7]=e[13],t[8]=n,t[9]=a,t[11]=e[14],t[12]=o,t[13]=i,t[14]=s}else t[0]=e[0],t[1]=e[4],t[2]=e[8],t[3]=e[12],t[4]=e[1],t[5]=e[5],t[6]=e[9],t[7]=e[13],t[8]=e[2],t[9]=e[6],t[10]=e[10],t[11]=e[14],t[12]=e[3],t[13]=e[7],t[14]=e[11],t[15]=e[15];return t}function f(t,e){var r=e[0],n=e[1],o=e[2],a=e[3],i=e[4],s=e[5],u=e[6],c=e[7],l=e[8],f=e[9],y=e[10],p=e[11],h=e[12],d=e[13],g=e[14],b=e[15],m=r*s-n*i,A=r*u-o*i,v=r*c-a*i,M=n*u-o*s,x=n*c-a*s,O=o*c-a*u,P=l*d-f*h,I=l*g-y*h,E=l*b-p*h,w=f*g-y*d,S=f*b-p*d,N=y*b-p*g,F=m*N-A*S+v*w+M*E-x*I+O*P;return F?(F=1/F,t[0]=(s*N-u*S+c*w)*F,t[1]=(o*S-n*N-a*w)*F,t[2]=(d*O-g*x+b*M)*F,t[3]=(y*x-f*O-p*M)*F,t[4]=(u*E-i*N-c*I)*F,t[5]=(r*N-o*E+a*I)*F,t[6]=(g*v-h*O-b*A)*F,t[7]=(l*O-y*v+p*A)*F,t[8]=(i*S-s*E+c*P)*F,t[9]=(n*E-r*S-a*P)*F,t[10]=(h*x-d*v+b*m)*F,t[11]=(f*v-l*x-p*m)*F,t[12]=(s*I-i*w-u*P)*F,t[13]=(r*w-n*I+o*P)*F,t[14]=(d*A-h*M-g*m)*F,t[15]=(l*M-f*A+y*m)*F,t):null}function y(t,e){var r=e[0],n=e[1],o=e[2],a=e[3],i=e[4],s=e[5],u=e[6],c=e[7],l=e[8],f=e[9],y=e[10],p=e[11],h=e[12],d=e[13],g=e[14],b=e[15];return t[0]=s*(y*b-p*g)-f*(u*b-c*g)+d*(u*p-c*y),t[1]=-(n*(y*b-p*g)-f*(o*b-a*g)+d*(o*p-a*y)),t[2]=n*(u*b-c*g)-s*(o*b-a*g)+d*(o*c-a*u),t[3]=-(n*(u*p-c*y)-s*(o*p-a*y)+f*(o*c-a*u)),t[4]=-(i*(y*b-p*g)-l*(u*b-c*g)+h*(u*p-c*y)),t[5]=r*(y*b-p*g)-l*(o*b-a*g)+h*(o*p-a*y),t[6]=-(r*(u*b-c*g)-i*(o*b-a*g)+h*(o*c-a*u)),t[7]=r*(u*p-c*y)-i*(o*p-a*y)+l*(o*c-a*u),t[8]=i*(f*b-p*d)-l*(s*b-c*d)+h*(s*p-c*f),t[9]=-(r*(f*b-p*d)-l*(n*b-a*d)+h*(n*p-a*f)),t[10]=r*(s*b-c*d)-i*(n*b-a*d)+h*(n*c-a*s),t[11]=-(r*(s*p-c*f)-i*(n*p-a*f)+l*(n*c-a*s)),t[12]=-(i*(f*g-y*d)-l*(s*g-u*d)+h*(s*y-u*f)),t[13]=r*(f*g-y*d)-l*(n*g-o*d)+h*(n*y-o*f),t[14]=-(r*(s*g-u*d)-i*(n*g-o*d)+h*(n*u-o*s)),t[15]=r*(s*y-u*f)-i*(n*y-o*f)+l*(n*u-o*s),t}function p(t){var e=t[0],r=t[1],n=t[2],o=t[3],a=t[4],i=t[5],s=t[6],u=t[7],c=t[8],l=t[9],f=t[10],y=t[11],p=t[12],h=t[13],d=t[14],g=t[15];return(e*i-r*a)*(f*g-y*d)-(e*s-n*a)*(l*g-y*h)+(e*u-o*a)*(l*d-f*h)+(r*s-n*i)*(c*g-y*p)-(r*u-o*i)*(c*d-f*p)+(n*u-o*s)*(c*h-l*p)}function h(t,e,r){var n=e[0],o=e[1],a=e[2],i=e[3],s=e[4],u=e[5],c=e[6],l=e[7],f=e[8],y=e[9],p=e[10],h=e[11],d=e[12],g=e[13],b=e[14],m=e[15],A=r[0],v=r[1],M=r[2],x=r[3];return t[0]=A*n+v*s+M*f+x*d,t[1]=A*o+v*u+M*y+x*g,t[2]=A*a+v*c+M*p+x*b,t[3]=A*i+v*l+M*h+x*m,A=r[4],v=r[5],M=r[6],x=r[7],t[4]=A*n+v*s+M*f+x*d,t[5]=A*o+v*u+M*y+x*g,t[6]=A*a+v*c+M*p+x*b,t[7]=A*i+v*l+M*h+x*m,A=r[8],v=r[9],M=r[10],x=r[11],t[8]=A*n+v*s+M*f+x*d,t[9]=A*o+v*u+M*y+x*g,t[10]=A*a+v*c+M*p+x*b,t[11]=A*i+v*l+M*h+x*m,A=r[12],v=r[13],M=r[14],x=r[15],t[12]=A*n+v*s+M*f+x*d,t[13]=A*o+v*u+M*y+x*g,t[14]=A*a+v*c+M*p+x*b,t[15]=A*i+v*l+M*h+x*m,t}function d(t,e,r){var n,o,a,i,s,u,c,l,f,y,p,h,d=r[0],g=r[1],b=r[2];return e===t?(t[12]=e[0]*d+e[4]*g+e[8]*b+e[12],t[13]=e[1]*d+e[5]*g+e[9]*b+e[13],t[14]=e[2]*d+e[6]*g+e[10]*b+e[14],t[15]=e[3]*d+e[7]*g+e[11]*b+e[15]):(n=e[0],o=e[1],a=e[2],i=e[3],s=e[4],u=e[5],c=e[6],l=e[7],f=e[8],y=e[9],p=e[10],h=e[11],t[0]=n,t[1]=o,t[2]=a,t[3]=i,t[4]=s,t[5]=u,t[6]=c,t[7]=l,t[8]=f,t[9]=y,t[10]=p,t[11]=h,t[12]=n*d+s*g+f*b+e[12],t[13]=o*d+u*g+y*b+e[13],t[14]=a*d+c*g+p*b+e[14],t[15]=i*d+l*g+h*b+e[15]),t}function g(t,e,r){var n=r[0],o=r[1],a=r[2];return t[0]=e[0]*n,t[1]=e[1]*n,t[2]=e[2]*n,t[3]=e[3]*n,t[4]=e[4]*o,t[5]=e[5]*o,t[6]=e[6]*o,t[7]=e[7]*o,t[8]=e[8]*a,t[9]=e[9]*a,t[10]=e[10]*a,t[11]=e[11]*a,t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15],t}function b(t,e,r,o){var a,i,s,u,c,l,f,y,p,h,d,g,b,m,A,v,M,x,O,P,I,E,w,S,N=o[0],F=o[1],T=o[2],D=Math.hypot(N,F,T);return D<n.EPSILON?null:(N*=D=1/D,F*=D,T*=D,a=Math.sin(r),s=1-(i=Math.cos(r)),u=e[0],c=e[1],l=e[2],f=e[3],y=e[4],p=e[5],h=e[6],d=e[7],g=e[8],b=e[9],m=e[10],A=e[11],v=N*N*s+i,M=F*N*s+T*a,x=T*N*s-F*a,O=N*F*s-T*a,P=F*F*s+i,I=T*F*s+N*a,E=N*T*s+F*a,w=F*T*s-N*a,S=T*T*s+i,t[0]=u*v+y*M+g*x,t[1]=c*v+p*M+b*x,t[2]=l*v+h*M+m*x,t[3]=f*v+d*M+A*x,t[4]=u*O+y*P+g*I,t[5]=c*O+p*P+b*I,t[6]=l*O+h*P+m*I,t[7]=f*O+d*P+A*I,t[8]=u*E+y*w+g*S,t[9]=c*E+p*w+b*S,t[10]=l*E+h*w+m*S,t[11]=f*E+d*w+A*S,e!==t&&(t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15]),t)}function m(t,e,r){var n=Math.sin(r),o=Math.cos(r),a=e[4],i=e[5],s=e[6],u=e[7],c=e[8],l=e[9],f=e[10],y=e[11];return e!==t&&(t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15]),t[4]=a*o+c*n,t[5]=i*o+l*n,t[6]=s*o+f*n,t[7]=u*o+y*n,t[8]=c*o-a*n,t[9]=l*o-i*n,t[10]=f*o-s*n,t[11]=y*o-u*n,t}function A(t,e,r){var n=Math.sin(r),o=Math.cos(r),a=e[0],i=e[1],s=e[2],u=e[3],c=e[8],l=e[9],f=e[10],y=e[11];return e!==t&&(t[4]=e[4],t[5]=e[5],t[6]=e[6],t[7]=e[7],t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15]),t[0]=a*o-c*n,t[1]=i*o-l*n,t[2]=s*o-f*n,t[3]=u*o-y*n,t[8]=a*n+c*o,t[9]=i*n+l*o,t[10]=s*n+f*o,t[11]=u*n+y*o,t}function v(t,e,r){var n=Math.sin(r),o=Math.cos(r),a=e[0],i=e[1],s=e[2],u=e[3],c=e[4],l=e[5],f=e[6],y=e[7];return e!==t&&(t[8]=e[8],t[9]=e[9],t[10]=e[10],t[11]=e[11],t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15]),t[0]=a*o+c*n,t[1]=i*o+l*n,t[2]=s*o+f*n,t[3]=u*o+y*n,t[4]=c*o-a*n,t[5]=l*o-i*n,t[6]=f*o-s*n,t[7]=y*o-u*n,t}function M(t,e){return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=1,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=1,t[11]=0,t[12]=e[0],t[13]=e[1],t[14]=e[2],t[15]=1,t}function x(t,e){return t[0]=e[0],t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=e[1],t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=e[2],t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t}function O(t,e,r){var o,a,i,s=r[0],u=r[1],c=r[2],l=Math.hypot(s,u,c);return l<n.EPSILON?null:(s*=l=1/l,u*=l,c*=l,o=Math.sin(e),i=1-(a=Math.cos(e)),t[0]=s*s*i+a,t[1]=u*s*i+c*o,t[2]=c*s*i-u*o,t[3]=0,t[4]=s*u*i-c*o,t[5]=u*u*i+a,t[6]=c*u*i+s*o,t[7]=0,t[8]=s*c*i+u*o,t[9]=u*c*i-s*o,t[10]=c*c*i+a,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t)}function P(t,e){var r=Math.sin(e),n=Math.cos(e);return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=n,t[6]=r,t[7]=0,t[8]=0,t[9]=-r,t[10]=n,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t}function I(t,e){var r=Math.sin(e),n=Math.cos(e);return t[0]=n,t[1]=0,t[2]=-r,t[3]=0,t[4]=0,t[5]=1,t[6]=0,t[7]=0,t[8]=r,t[9]=0,t[10]=n,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t}function E(t,e){var r=Math.sin(e),n=Math.cos(e);return t[0]=n,t[1]=r,t[2]=0,t[3]=0,t[4]=-r,t[5]=n,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=1,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t}function w(t,e,r){var n=e[0],o=e[1],a=e[2],i=e[3],s=n+n,u=o+o,c=a+a,l=n*s,f=n*u,y=n*c,p=o*u,h=o*c,d=a*c,g=i*s,b=i*u,m=i*c;return t[0]=1-(p+d),t[1]=f+m,t[2]=y-b,t[3]=0,t[4]=f-m,t[5]=1-(l+d),t[6]=h+g,t[7]=0,t[8]=y+b,t[9]=h-g,t[10]=1-(l+p),t[11]=0,t[12]=r[0],t[13]=r[1],t[14]=r[2],t[15]=1,t}function S(t,e){var r=new n.ARRAY_TYPE(3),o=-e[0],a=-e[1],i=-e[2],s=e[3],u=e[4],c=e[5],l=e[6],f=e[7],y=o*o+a*a+i*i+s*s;return y>0?(r[0]=2*(u*s+f*o+c*i-l*a)/y,r[1]=2*(c*s+f*a+l*o-u*i)/y,r[2]=2*(l*s+f*i+u*a-c*o)/y):(r[0]=2*(u*s+f*o+c*i-l*a),r[1]=2*(c*s+f*a+l*o-u*i),r[2]=2*(l*s+f*i+u*a-c*o)),w(t,e,r),t}function N(t,e){return t[0]=e[12],t[1]=e[13],t[2]=e[14],t}function F(t,e){var r=e[0],n=e[1],o=e[2],a=e[4],i=e[5],s=e[6],u=e[8],c=e[9],l=e[10];return t[0]=Math.hypot(r,n,o),t[1]=Math.hypot(a,i,s),t[2]=Math.hypot(u,c,l),t}function T(t,e){var r=new n.ARRAY_TYPE(3);F(r,e);var o=1/r[0],a=1/r[1],i=1/r[2],s=e[0]*o,u=e[1]*a,c=e[2]*i,l=e[4]*o,f=e[5]*a,y=e[6]*i,p=e[8]*o,h=e[9]*a,d=e[10]*i,g=s+f+d,b=0;return g>0?(b=2*Math.sqrt(g+1),t[3]=.25*b,t[0]=(y-h)/b,t[1]=(p-c)/b,t[2]=(u-l)/b):s>f&&s>d?(b=2*Math.sqrt(1+s-f-d),t[3]=(y-h)/b,t[0]=.25*b,t[1]=(u+l)/b,t[2]=(p+c)/b):f>d?(b=2*Math.sqrt(1+f-s-d),t[3]=(p-c)/b,t[0]=(u+l)/b,t[1]=.25*b,t[2]=(y+h)/b):(b=2*Math.sqrt(1+d-s-f),t[3]=(u-l)/b,t[0]=(p+c)/b,t[1]=(y+h)/b,t[2]=.25*b),t}function D(t,e,r,n){var o=e[0],a=e[1],i=e[2],s=e[3],u=o+o,c=a+a,l=i+i,f=o*u,y=o*c,p=o*l,h=a*c,d=a*l,g=i*l,b=s*u,m=s*c,A=s*l,v=n[0],M=n[1],x=n[2];return t[0]=(1-(h+g))*v,t[1]=(y+A)*v,t[2]=(p-m)*v,t[3]=0,t[4]=(y-A)*M,t[5]=(1-(f+g))*M,t[6]=(d+b)*M,t[7]=0,t[8]=(p+m)*x,t[9]=(d-b)*x,t[10]=(1-(f+h))*x,t[11]=0,t[12]=r[0],t[13]=r[1],t[14]=r[2],t[15]=1,t}function C(t,e,r,n,o){var a=e[0],i=e[1],s=e[2],u=e[3],c=a+a,l=i+i,f=s+s,y=a*c,p=a*l,h=a*f,d=i*l,g=i*f,b=s*f,m=u*c,A=u*l,v=u*f,M=n[0],x=n[1],O=n[2],P=o[0],I=o[1],E=o[2],w=(1-(d+b))*M,S=(p+v)*M,N=(h-A)*M,F=(p-v)*x,T=(1-(y+b))*x,D=(g+m)*x,C=(h+A)*O,j=(g-m)*O,_=(1-(y+d))*O;return t[0]=w,t[1]=S,t[2]=N,t[3]=0,t[4]=F,t[5]=T,t[6]=D,t[7]=0,t[8]=C,t[9]=j,t[10]=_,t[11]=0,t[12]=r[0]+P-(w*P+F*I+C*E),t[13]=r[1]+I-(S*P+T*I+j*E),t[14]=r[2]+E-(N*P+D*I+_*E),t[15]=1,t}function j(t,e){var r=e[0],n=e[1],o=e[2],a=e[3],i=r+r,s=n+n,u=o+o,c=r*i,l=n*i,f=n*s,y=o*i,p=o*s,h=o*u,d=a*i,g=a*s,b=a*u;return t[0]=1-f-h,t[1]=l+b,t[2]=y-g,t[3]=0,t[4]=l-b,t[5]=1-c-h,t[6]=p+d,t[7]=0,t[8]=y+g,t[9]=p-d,t[10]=1-c-f,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t}function _(t,e,r,n,o,a,i){var s=1/(r-e),u=1/(o-n),c=1/(a-i);return t[0]=2*a*s,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=2*a*u,t[6]=0,t[7]=0,t[8]=(r+e)*s,t[9]=(o+n)*u,t[10]=(i+a)*c,t[11]=-1,t[12]=0,t[13]=0,t[14]=i*a*2*c,t[15]=0,t}function L(t,e,r,n,o){var a,i=1/Math.tan(e/2);return t[0]=i/r,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=i,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[11]=-1,t[12]=0,t[13]=0,t[15]=0,null!=o&&o!==1/0?(a=1/(n-o),t[10]=(o+n)*a,t[14]=2*o*n*a):(t[10]=-1,t[14]=-2*n),t}var R=L;function k(t,e,r,n,o){var a,i=1/Math.tan(e/2);return t[0]=i/r,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=i,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[11]=-1,t[12]=0,t[13]=0,t[15]=0,null!=o&&o!==1/0?(a=1/(n-o),t[10]=o*a,t[14]=o*n*a):(t[10]=-1,t[14]=-n),t}function B(t,e,r,n){var o=Math.tan(e.upDegrees*Math.PI/180),a=Math.tan(e.downDegrees*Math.PI/180),i=Math.tan(e.leftDegrees*Math.PI/180),s=Math.tan(e.rightDegrees*Math.PI/180),u=2/(i+s),c=2/(o+a);return t[0]=u,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=c,t[6]=0,t[7]=0,t[8]=-(i-s)*u*.5,t[9]=(o-a)*c*.5,t[10]=n/(r-n),t[11]=-1,t[12]=0,t[13]=0,t[14]=n*r/(r-n),t[15]=0,t}function U(t,e,r,n,o,a,i){var s=1/(e-r),u=1/(n-o),c=1/(a-i);return t[0]=-2*s,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=-2*u,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=2*c,t[11]=0,t[12]=(e+r)*s,t[13]=(o+n)*u,t[14]=(i+a)*c,t[15]=1,t}var $=U;function Y(t,e,r,n,o,a,i){var s=1/(e-r),u=1/(n-o),c=1/(a-i);return t[0]=-2*s,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=-2*u,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=c,t[11]=0,t[12]=(e+r)*s,t[13]=(o+n)*u,t[14]=a*c,t[15]=1,t}function G(t,e,r,o){var a,i,s,u,l,f,y,p,h,d,g=e[0],b=e[1],m=e[2],A=o[0],v=o[1],M=o[2],x=r[0],O=r[1],P=r[2];return Math.abs(g-x)<n.EPSILON&&Math.abs(b-O)<n.EPSILON&&Math.abs(m-P)<n.EPSILON?c(t):(y=g-x,p=b-O,h=m-P,a=v*(h*=d=1/Math.hypot(y,p,h))-M*(p*=d),i=M*(y*=d)-A*h,s=A*p-v*y,(d=Math.hypot(a,i,s))?(a*=d=1/d,i*=d,s*=d):(a=0,i=0,s=0),u=p*s-h*i,l=h*a-y*s,f=y*i-p*a,(d=Math.hypot(u,l,f))?(u*=d=1/d,l*=d,f*=d):(u=0,l=0,f=0),t[0]=a,t[1]=u,t[2]=y,t[3]=0,t[4]=i,t[5]=l,t[6]=p,t[7]=0,t[8]=s,t[9]=f,t[10]=h,t[11]=0,t[12]=-(a*g+i*b+s*m),t[13]=-(u*g+l*b+f*m),t[14]=-(y*g+p*b+h*m),t[15]=1,t)}function z(t,e,r,n){var o=e[0],a=e[1],i=e[2],s=n[0],u=n[1],c=n[2],l=o-r[0],f=a-r[1],y=i-r[2],p=l*l+f*f+y*y;p>0&&(l*=p=1/Math.sqrt(p),f*=p,y*=p);var h=u*y-c*f,d=c*l-s*y,g=s*f-u*l;return(p=h*h+d*d+g*g)>0&&(h*=p=1/Math.sqrt(p),d*=p,g*=p),t[0]=h,t[1]=d,t[2]=g,t[3]=0,t[4]=f*g-y*d,t[5]=y*h-l*g,t[6]=l*d-f*h,t[7]=0,t[8]=l,t[9]=f,t[10]=y,t[11]=0,t[12]=o,t[13]=a,t[14]=i,t[15]=1,t}function W(t){return"mat4("+t[0]+", "+t[1]+", "+t[2]+", "+t[3]+", "+t[4]+", "+t[5]+", "+t[6]+", "+t[7]+", "+t[8]+", "+t[9]+", "+t[10]+", "+t[11]+", "+t[12]+", "+t[13]+", "+t[14]+", "+t[15]+")"}function q(t){return Math.hypot(t[0],t[1],t[2],t[3],t[4],t[5],t[6],t[7],t[8],t[9],t[10],t[11],t[12],t[13],t[14],t[15])}function V(t,e,r){return t[0]=e[0]+r[0],t[1]=e[1]+r[1],t[2]=e[2]+r[2],t[3]=e[3]+r[3],t[4]=e[4]+r[4],t[5]=e[5]+r[5],t[6]=e[6]+r[6],t[7]=e[7]+r[7],t[8]=e[8]+r[8],t[9]=e[9]+r[9],t[10]=e[10]+r[10],t[11]=e[11]+r[11],t[12]=e[12]+r[12],t[13]=e[13]+r[13],t[14]=e[14]+r[14],t[15]=e[15]+r[15],t}function X(t,e,r){return t[0]=e[0]-r[0],t[1]=e[1]-r[1],t[2]=e[2]-r[2],t[3]=e[3]-r[3],t[4]=e[4]-r[4],t[5]=e[5]-r[5],t[6]=e[6]-r[6],t[7]=e[7]-r[7],t[8]=e[8]-r[8],t[9]=e[9]-r[9],t[10]=e[10]-r[10],t[11]=e[11]-r[11],t[12]=e[12]-r[12],t[13]=e[13]-r[13],t[14]=e[14]-r[14],t[15]=e[15]-r[15],t}function Z(t,e,r){return t[0]=e[0]*r,t[1]=e[1]*r,t[2]=e[2]*r,t[3]=e[3]*r,t[4]=e[4]*r,t[5]=e[5]*r,t[6]=e[6]*r,t[7]=e[7]*r,t[8]=e[8]*r,t[9]=e[9]*r,t[10]=e[10]*r,t[11]=e[11]*r,t[12]=e[12]*r,t[13]=e[13]*r,t[14]=e[14]*r,t[15]=e[15]*r,t}function J(t,e,r,n){return t[0]=e[0]+r[0]*n,t[1]=e[1]+r[1]*n,t[2]=e[2]+r[2]*n,t[3]=e[3]+r[3]*n,t[4]=e[4]+r[4]*n,t[5]=e[5]+r[5]*n,t[6]=e[6]+r[6]*n,t[7]=e[7]+r[7]*n,t[8]=e[8]+r[8]*n,t[9]=e[9]+r[9]*n,t[10]=e[10]+r[10]*n,t[11]=e[11]+r[11]*n,t[12]=e[12]+r[12]*n,t[13]=e[13]+r[13]*n,t[14]=e[14]+r[14]*n,t[15]=e[15]+r[15]*n,t}function H(t,e){return t[0]===e[0]&&t[1]===e[1]&&t[2]===e[2]&&t[3]===e[3]&&t[4]===e[4]&&t[5]===e[5]&&t[6]===e[6]&&t[7]===e[7]&&t[8]===e[8]&&t[9]===e[9]&&t[10]===e[10]&&t[11]===e[11]&&t[12]===e[12]&&t[13]===e[13]&&t[14]===e[14]&&t[15]===e[15]}function Q(t,e){var r=t[0],o=t[1],a=t[2],i=t[3],s=t[4],u=t[5],c=t[6],l=t[7],f=t[8],y=t[9],p=t[10],h=t[11],d=t[12],g=t[13],b=t[14],m=t[15],A=e[0],v=e[1],M=e[2],x=e[3],O=e[4],P=e[5],I=e[6],E=e[7],w=e[8],S=e[9],N=e[10],F=e[11],T=e[12],D=e[13],C=e[14],j=e[15];return Math.abs(r-A)<=n.EPSILON*Math.max(1,Math.abs(r),Math.abs(A))&&Math.abs(o-v)<=n.EPSILON*Math.max(1,Math.abs(o),Math.abs(v))&&Math.abs(a-M)<=n.EPSILON*Math.max(1,Math.abs(a),Math.abs(M))&&Math.abs(i-x)<=n.EPSILON*Math.max(1,Math.abs(i),Math.abs(x))&&Math.abs(s-O)<=n.EPSILON*Math.max(1,Math.abs(s),Math.abs(O))&&Math.abs(u-P)<=n.EPSILON*Math.max(1,Math.abs(u),Math.abs(P))&&Math.abs(c-I)<=n.EPSILON*Math.max(1,Math.abs(c),Math.abs(I))&&Math.abs(l-E)<=n.EPSILON*Math.max(1,Math.abs(l),Math.abs(E))&&Math.abs(f-w)<=n.EPSILON*Math.max(1,Math.abs(f),Math.abs(w))&&Math.abs(y-S)<=n.EPSILON*Math.max(1,Math.abs(y),Math.abs(S))&&Math.abs(p-N)<=n.EPSILON*Math.max(1,Math.abs(p),Math.abs(N))&&Math.abs(h-F)<=n.EPSILON*Math.max(1,Math.abs(h),Math.abs(F))&&Math.abs(d-T)<=n.EPSILON*Math.max(1,Math.abs(d),Math.abs(T))&&Math.abs(g-D)<=n.EPSILON*Math.max(1,Math.abs(g),Math.abs(D))&&Math.abs(b-C)<=n.EPSILON*Math.max(1,Math.abs(b),Math.abs(C))&&Math.abs(m-j)<=n.EPSILON*Math.max(1,Math.abs(m),Math.abs(j))}var K=h,tt=X},63945:(t,e,r)=>{"use strict";r(47705);var n=r(57535);r(20126);n.copy;n.copy;n.dot;n.length,n.squaredLength},52519:(t,e,r)=>{"use strict";r.r(e),r.d(e,{add:()=>l,angle:()=>B,bezier:()=>T,ceil:()=>h,clone:()=>a,copy:()=>u,create:()=>o,cross:()=>S,dist:()=>X,distance:()=>M,div:()=>V,divide:()=>p,dot:()=>w,equals:()=>G,exactEquals:()=>Y,floor:()=>d,forEach:()=>Q,fromValues:()=>s,hermite:()=>F,inverse:()=>I,len:()=>J,length:()=>i,lerp:()=>N,max:()=>b,min:()=>g,mul:()=>q,multiply:()=>y,negate:()=>P,normalize:()=>E,random:()=>D,rotateX:()=>L,rotateY:()=>R,rotateZ:()=>k,round:()=>m,scale:()=>A,scaleAndAdd:()=>v,set:()=>c,sqrDist:()=>Z,sqrLen:()=>H,squaredDistance:()=>x,squaredLength:()=>O,str:()=>$,sub:()=>W,subtract:()=>f,transformMat3:()=>j,transformMat4:()=>C,transformQuat:()=>_,zero:()=>U});var n=r(47705);function o(){var t=new n.ARRAY_TYPE(3);return n.ARRAY_TYPE!=Float32Array&&(t[0]=0,t[1]=0,t[2]=0),t}function a(t){var e=new n.ARRAY_TYPE(3);return e[0]=t[0],e[1]=t[1],e[2]=t[2],e}function i(t){var e=t[0],r=t[1],n=t[2];return Math.hypot(e,r,n)}function s(t,e,r){var o=new n.ARRAY_TYPE(3);return o[0]=t,o[1]=e,o[2]=r,o}function u(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t}function c(t,e,r,n){return t[0]=e,t[1]=r,t[2]=n,t}function l(t,e,r){return t[0]=e[0]+r[0],t[1]=e[1]+r[1],t[2]=e[2]+r[2],t}function f(t,e,r){return t[0]=e[0]-r[0],t[1]=e[1]-r[1],t[2]=e[2]-r[2],t}function y(t,e,r){return t[0]=e[0]*r[0],t[1]=e[1]*r[1],t[2]=e[2]*r[2],t}function p(t,e,r){return t[0]=e[0]/r[0],t[1]=e[1]/r[1],t[2]=e[2]/r[2],t}function h(t,e){return t[0]=Math.ceil(e[0]),t[1]=Math.ceil(e[1]),t[2]=Math.ceil(e[2]),t}function d(t,e){return t[0]=Math.floor(e[0]),t[1]=Math.floor(e[1]),t[2]=Math.floor(e[2]),t}function g(t,e,r){return t[0]=Math.min(e[0],r[0]),t[1]=Math.min(e[1],r[1]),t[2]=Math.min(e[2],r[2]),t}function b(t,e,r){return t[0]=Math.max(e[0],r[0]),t[1]=Math.max(e[1],r[1]),t[2]=Math.max(e[2],r[2]),t}function m(t,e){return t[0]=Math.round(e[0]),t[1]=Math.round(e[1]),t[2]=Math.round(e[2]),t}function A(t,e,r){return t[0]=e[0]*r,t[1]=e[1]*r,t[2]=e[2]*r,t}function v(t,e,r,n){return t[0]=e[0]+r[0]*n,t[1]=e[1]+r[1]*n,t[2]=e[2]+r[2]*n,t}function M(t,e){var r=e[0]-t[0],n=e[1]-t[1],o=e[2]-t[2];return Math.hypot(r,n,o)}function x(t,e