19 lines
1.7 MiB
JavaScript
19 lines
1.7 MiB
JavaScript
|
(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[78778],{86618:function(NI){/*! cornerstone-core - 2.1.0 - 2018-03-02 | (c) 2016 Chris Hafey | https://github.com/cornerstonejs/cornerstone */(function(BA,i){NI.exports=i()})(typeof self!="undefined"?self:this,function(){return function(BA){function i(o){if(t[o])return t[o].exports;var E=t[o]={i:o,l:!1,exports:{}};return BA[o].call(E.exports,E,E.exports,i),E.l=!0,E.exports}var t={};return i.m=BA,i.c=t,i.d=function(o,E,C){i.o(o,E)||Object.defineProperty(o,E,{configurable:!1,enumerable:!0,get:C})},i.n=function(o){var E=o&&o.__esModule?function(){return o.default}:function(){return o};return i.d(E,"a",E),E},i.o=function(o,E){return Object.prototype.hasOwnProperty.call(o,E)},i.p="",i(i.s=42)}([function(BA,i,t){"use strict";function o(g){if(g===void 0)throw new Error("getEnabledElement: parameter element must not be undefined");for(var B=0;B<I.length;B++)if(I[B].element===g)return I[B];throw new Error("element not enabled")}function E(g){if(g===void 0)throw new Error("getEnabledElement: enabledElement element must not be undefined");I.push(g)}function C(g){var B=[];return I.forEach(function(Q){Q.image&&Q.image.imageId===g&&B.push(Q)}),B}function A(){return I}Object.defineProperty(i,"__esModule",{value:!0}),i.getEnabledElement=o,i.addEnabledElement=E,i.getEnabledElementsByImageId=C,i.getEnabledElements=A;var I=[]},function(BA,i,t){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.default=function(){return window.performance?performance.now():Date.now()}},function(BA,i,t){"use strict";function o(E,C){var A=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,I=void 0;return typeof window.CustomEvent=="function"?I=new CustomEvent(C,{detail:A,cancelable:!0}):(I=document.createEvent("CustomEvent"),I.initCustomEvent(C,!0,!0,A)),E.dispatchEvent(I)}Object.defineProperty(i,"__esModule",{value:!0}),i.default=o},function(BA,i,t){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.default=function(o,E){if(o===void 0)throw new Error("getDefaultViewport: parameter canvas must not be undefined");if(E===void 0)return{scale:1,translation:{x:0,y:0},voi:{windowWidth:void 0,windowCenter:void 0},invert:!1,pixelReplication:!1,rotation:0,hflip:!1,vflip:!1,modalityLUT:void 0,voiLUT:void 0,colormap:void 0,labelmap:!1};var C=o.height/E.rows,A=o.width/E.columns;return{scale:Math.min(A,C),translation:{x:0,y:0},voi:{windowWidth:E.windowWidth,windowCenter:E.windowCenter},invert:E.invert,pixelReplication:!1,rotation:0,hflip:!1,vflip:!1,modalityLUT:E.modalityLUT,voiLUT:E.voiLUT,colormap:E.colormap,labelmap:Boolean(E.labelmap)}}},function(BA,i,t){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.default=function(C,A,I){if(C===void 0)throw new Error("setToPixelCoordinateSystem: parameter enabledElement must not be undefined");if(A===void 0)throw new Error("setToPixelCoordinateSystem: parameter context must not be undefined");var g=(0,E.default)(C,I);A.setTransform(g.m[0],g.m[1],g.m[2],g.m[3],g.m[4],g.m[5])};var o=t(24),E=function(C){return C&&C.__esModule?C:{default:C}}(o)},function(BA,i,t){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.default=function(A){var I=arguments.length>1&&arguments[1]!==void 0&&arguments[1],g=(0,o.getEnabledElement)(A);if(g.image===void 0&&!g.layers.length)throw new Error("updateImage: image has not been loaded yet");(0,C.default)(g,I)};var o=t(0),E=t(6),C=function(A){return A&&A.__esModule?A:{default:A}}(E)},function(BA,i,t){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.default=function(o){var E=arguments.length>1&&arguments[1]!==void 0&&arguments[1];o.needsRedraw=!0,E&&(o.invalid=!0)}},function(BA,i,t){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var o=t(28),E=t(29),C=function(A){return A&&A.__esModule?A:{default:A}}(E);i.default={getColormap:o.getColormap,getColormapsList:o.getColormapsList,LookupTable:C.default}},function(BA,i,t){"use strict";function o(y){return y&&y.__esModule?y:{default:y}}function E(y,M){return y.cachedLut!==void 0&&y.cachedLut.windowC
|
||
|
`+B)}return g}function E(C,A,I){var g=C.createProgram();if(C.attachShader(g,A),C.attachShader(g,I),C.linkProgram(g),!C.getProgramParameter(g,C.LINK_STATUS)&&!C.isContextLost()){var B=C.getProgramInfoLog(g);console.error(`WebGL program filed to link:
|
||
|
`+B)}return g}Object.defineProperty(i,"__esModule",{value:!0}),i.default=function(C,A,I){return E(C,o(C,A,C.VERTEX_SHADER),o(C,I,C.FRAGMENT_SHADER))}},function(BA,i,t){"use strict";function o(I,g){if(I===void 0)throw new Error("renderWebImage: enabledElement parameter must not be undefined");var B=I.image;if(B===void 0)throw new Error("renderWebImage: image must be loaded before it can be drawn");if(I.viewport.voi.windowWidth===I.image.windowWidth&&I.viewport.voi.windowCenter===I.image.windowCenter&&I.viewport.invert===!1){var Q=I.canvas.getContext("2d");Q.setTransform(1,0,0,1,0,0),Q.fillStyle="black",Q.fillRect(0,0,I.canvas.width,I.canvas.height),Q.imageSmoothingEnabled=!I.viewport.pixelReplication,Q.mozImageSmoothingEnabled=Q.imageSmoothingEnabled,(0,C.default)(I,Q),Q.drawImage(B.getImage(),0,0,B.width,B.height,0,0,B.width,B.height)}else(0,A.renderColorImage)(I,g)}Object.defineProperty(i,"__esModule",{value:!0}),i.renderWebImage=o;var E=t(4),C=function(I){return I&&I.__esModule?I:{default:I}}(E),A=t(8)},function(BA,i,t){"use strict";function o(c){return c&&c.__esModule?c:{default:c}}function E(c,w){w.width!==c.clientWidth&&(w.width=c.clientWidth,w.style.width=c.clientWidth+"px"),w.height!==c.clientHeight&&(w.height=c.clientHeight,w.style.height=c.clientHeight+"px")}function C(c,w,u){var N=c.viewport.scale,G=(0,h.default)(c),l=Math.round(G.width*N),R=Math.round(G.height*N),F=c.viewport.translation.x,D=c.viewport.translation.y;return l===w&&R<=u||l<=w&&R===u&&F===0&&D===0}function A(c,w,u){var N=c.viewport.scale,G=c.canvas.width,l=c.canvas.height,R=G/w,F=l/u,D=Math.sqrt(R*F);c.viewport.scale=D*N}Object.defineProperty(i,"__esModule",{value:!0}),i.default=function(c,w){var u=(0,I.getEnabledElement)(c),N=u.canvas.width,G=u.canvas.height;E(c,u.canvas);var l={element:c};if((0,a.default)(c,"cornerstoneelementresized",l),u.image!==void 0)return w===!0?void(0,B.default)(c):void(C(u,N,G)?(0,B.default)(c):(A(u,N,G),(0,e.default)(c)))};var I=t(0),g=t(37),B=o(g),Q=t(5),e=o(Q),s=t(2),a=o(s),r=t(38),h=o(r)},function(BA,i,t){"use strict";function o(B){return B&&B.__esModule?B:{default:B}}Object.defineProperty(i,"__esModule",{value:!0}),i.default=function(B){var Q=(0,E.getEnabledElement)(B),e=(0,g.default)(Q),s=Q.canvas.height/e.height,a=Q.canvas.width/e.width;Q.viewport.scale=Math.min(a,s),Q.viewport.translation.x=0,Q.viewport.translation.y=0,(0,A.default)(B)};var E=t(0),C=t(5),A=o(C),I=t(38),g=o(I)},function(BA,i,t){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.default=function(o){return o.viewport.rotation===0||o.viewport.rotation===180?{width:o.image.width,height:o.image.height}:{width:o.image.height,height:o.image.width}}},function(BA,i,t){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.default=function(E,C,A,I,g){if(E===void 0)throw new Error("getStoredPixels: parameter element must not be undefined");C=Math.round(C),A=Math.round(A);for(var B=(0,o.getEnabledElement)(E),Q=[],e=0,s=B.image.getPixelData(),a=0;a<g;a++)for(var r=0;r<I;r++){var h=(a+A)*B.image.columns+(r+C);Q[e++]=s[h]}return Q};var o=t(0)},function(BA,i,t){"use strict";function o(l){return l&&l.__esModule?l:{default:l}}function E(l){if(l===void 0)throw new Error("setMaximumSizeBytes: parameter numBytes must not be undefined");if(l.toFixed===void 0)throw new Error("setMaximumSizeBytes: parameter numBytes must be a number");w=l,(0,c.default)(r.default,"cornerstoneimagecachemaximumsizechanged"),C()}function C(){function l(d,y){return d.timeStamp>y.timeStamp?-1:d.timeStamp<y.timeStamp?1:0}if(!(u<=w)){for(G.sort(l);u>w;){var R=G[G.length-1],F=R.imageId;g(F),(0,c.default)(r.default,"cornerstoneimagecachepromiseremoved",{imageId:F})}var D=B();(0,c.default)(r.default,"cornerstoneimagecachefull",D)}}function A(l,R){if(l===void 0)throw new Error("putImageLoadObject: imageId must not be undefined");if(R.promise===void 0)throw new Error("putImageLoadObject: imageLoadObject.promise must not be undefined");if(N.hasOwnProperty(l)===!0)throw new Error("putImageLoadObject: imageId already in cache");if(R.cancelFn&&typeof R.cancelFn!="function")throw n
|
||
|
\v\f\r \xA0\u1680\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF`},6454:(E,C,A)=>{"use strict";var I=A(390),g=A(2629),B=A(5255),Q=A(2491),e=A(8518),s=A(5595),a=A(3906),r=A(5264),h=function(c,w){var u=this;if(!(u instanceof h))return new h(c,w);B&&(u=B(new Error(void 0),g(u))),w!==void 0&&e(u,"message",r(w));var N=[];return a(c,N.push,{that:N}),e(u,"errors",N),u};h.prototype=Q(Error.prototype,{constructor:s(5,h),message:s(5,""),name:s(5,"AggregateError")}),I({global:!0},{AggregateError:h})},3075:(E,C,A)=>{"use strict";var I=A(390),g=A(6530),B=A(1054),Q=A(3359),e=A(2058),s=A(3746),a=A(409),r=A(8136),h=A(2143),c=A(5712),w=A(8233),u=c("isConcatSpreadable"),N=9007199254740991,G="Maximum allowed index exceeded",l=w>=51||!g(function(){var D=[];return D[u]=!1,D.concat()[0]!==D}),R=h("concat"),F=function(D){if(!Q(D))return!1;var d=D[u];return d!==void 0?!!d:B(D)};I({target:"Array",proto:!0,forced:!l||!R},{concat:function(D){var d,y,M,L,k,H=e(this),m=r(H,0),x=0;for(d=-1,M=arguments.length;d<M;d++)if(F(k=d===-1?H:arguments[d])){if(x+(L=s(k.length))>N)throw TypeError(G);for(y=0;y<L;y++,x++)y in k&&a(m,x,k[y])}else{if(x>=N)throw TypeError(G);a(m,x++,k)}return m.length=x,m}})},8345:(E,C,A)=>{"use strict";var I=A(390),g=A(4206).filter;I({target:"Array",proto:!0,forced:!A(2143)("filter")},{filter:function(B){return g(this,B,arguments.length>1?arguments[1]:void 0)}})},2166:(E,C,A)=>{var I=A(390),g=A(4746);I({target:"Array",stat:!0,forced:!A(8908)(function(B){Array.from(B)})},{from:g})},7670:(E,C,A)=>{"use strict";var I=A(390),g=A(7075).includes,B=A(7710);I({target:"Array",proto:!0},{includes:function(Q){return g(this,Q,arguments.length>1?arguments[1]:void 0)}}),B("includes")},194:(E,C,A)=>{"use strict";var I=A(390),g=A(7075).indexOf,B=A(6628),Q=[].indexOf,e=!!Q&&1/[1].indexOf(1,-0)<0,s=B("indexOf");I({target:"Array",proto:!0,forced:e||!s},{indexOf:function(a){return e?Q.apply(this,arguments)||0:g(this,a,arguments.length>1?arguments[1]:void 0)}})},9506:(E,C,A)=>{A(390)({target:"Array",stat:!0},{isArray:A(1054)})},2228:(E,C,A)=>{"use strict";var I=A(3861),g=A(7710),B=A(9418),Q=A(5875),e=A(8277),s="Array Iterator",a=Q.set,r=Q.getterFor(s);E.exports=e(Array,"Array",function(h,c){a(this,{type:s,target:I(h),index:0,kind:c})},function(){var h=r(this),c=h.target,w=h.kind,u=h.index++;return!c||u>=c.length?(h.target=void 0,{value:void 0,done:!0}):w=="keys"?{value:u,done:!1}:w=="values"?{value:c[u],done:!1}:{value:[u,c[u]],done:!1}},"values"),B.Arguments=B.Array,g("keys"),g("values"),g("entries")},2478:(E,C,A)=>{"use strict";var I=A(390),g=A(4206).map;I({target:"Array",proto:!0,forced:!A(2143)("map")},{map:function(B){return g(this,B,arguments.length>1?arguments[1]:void 0)}})},5313:(E,C,A)=>{"use strict";var I=A(390),g=A(3359),B=A(1054),Q=A(3055),e=A(3746),s=A(3861),a=A(409),r=A(5712),h=A(2143)("slice"),c=r("species"),w=[].slice,u=Math.max;I({target:"Array",proto:!0,forced:!h},{slice:function(N,G){var l,R,F,D=s(this),d=e(D.length),y=Q(N,d),M=Q(G===void 0?d:G,d);if(B(D)&&(typeof(l=D.constructor)!="function"||l!==Array&&!B(l.prototype)?g(l)&&(l=l[c])===null&&(l=void 0):l=void 0,l===Array||l===void 0))return w.call(D,y,M);for(R=new(l===void 0?Array:l)(u(M-y,0)),F=0;y<M;y++,F++)y in D&&a(R,F,D[y]);return R.length=F,R}})},4596:(E,C,A)=>{"use strict";var I=A(390),g=A(3055),B=A(1470),Q=A(3746),e=A(2058),s=A(8136),a=A(409),r=A(2143)("splice"),h=Math.max,c=Math.min,w=9007199254740991,u="Maximum allowed length exceeded";I({target:"Array",proto:!0,forced:!r},{splice:function(N,G){var l,R,F,D,d,y,M=e(this),L=Q(M.length),k=g(N,L),H=arguments.length;if(H===0?l=R=0:H===1?(l=0,R=L-k):(l=H-2,R=c(h(B(G),0),L-k)),L+l-R>w)throw TypeError(u);for(F=s(M,R),D=0;D<R;D++)(d=k+D)in M&&a(F,D,M[d]);if(F.length=R,l<R){for(D=k;D<L-R;D++)y=D+l,(d=D+R)in M?M[y]=M[d]:delete M[y];for(D=L;D>L-R+l;D--)delete M[D-1]}else if(l>R)for(D=L-R;D>k;D--)y=D+l-1,(d=D+R-1)in M?M[y]=M[d]:delete M[y];for(D=0;D<l;D++)M[D+k]=arguments[D+2];return M.length=L-R+l,F}})},3596:(E,C,A)=>{var I=A(2868);A(6738)(I.JSON,"JSON",!0)},1227:()=>{},8524:(E,C,
|
||
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function K(f){return function(Y){if(y(Y))return x(Y)}(f)||function(Y){if(M!==void 0&&L(Y)!=null||Y["@@iterator"]!=null)return m(Y)}(f)||P(f)||function(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
||
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}var U=t(2475),n=t(3091),S=t(9719);function v(f,Y){if(f==null)return{};var Z,V,gA=function(dA,rA){if(dA==null)return{};var hA,SA,kA={},mA=S(dA);for(SA=0;SA<mA.length;SA++)hA=mA[SA],n(rA).call(rA,hA)>=0||(kA[hA]=dA[hA]);return kA}(f,Y);if(U){var nA=U(f);for(V=0;V<nA.length;V++)Z=nA[V],n(Y).call(Y,Z)>=0||Object.prototype.propertyIsEnumerable.call(f,Z)&&(gA[Z]=f[Z])}return gA}var p=t(6496);function J(f){return(J=typeof M=="function"&&typeof p=="symbol"?function(Y){return typeof Y}:function(Y){return Y&&typeof M=="function"&&Y.constructor===M&&Y!==M.prototype?"symbol":typeof Y})(f)}var z=t(6059),_=t.n(z),j=t(2633),O=t.n(j),eA=t(1929),iA=t.n(eA),$=t(1246),aA=t.n($),cA=t(2165),CA=t.n(cA);function tA(f){var Y=!(arguments.length>1&&arguments[1]!==void 0)||arguments[1];return f&&f.Value?f.Value[0]&&Y?f.Value[0]:f.Value:f}var lA=["52009230","52009229","00280008"];function yA(f,Y,Z){var V,gA,nA,dA;return{shared:_()(V=O()(gA=Y?iA()(Y[0]):[]).call(gA,function(rA){return rA[0]})).call(V,function(rA){return rA!==void 0&&J(rA)==="object"}),perFrame:_()(nA=O()(dA=f?iA()(f[Z-1]):[]).call(dA,function(rA){return rA.Value[0]})).call(nA,function(rA){return rA!==void 0&&J(rA)==="object"})}}function JA(f){var Y=f[52009230],Z=f[52009229],V=f["00280008"],gA=v(f,lA);return{PerFrameFunctionalGroupsSequence:Y=tA(Y,!1),SharedFunctionalGroupsSequence:Z=tA(Z,!1),NumberOfFrames:V=tA(V),rest:gA}}var bA=t(6028),NA=t.n(bA);function LA(f){var Y=f.indexOf("/frames/")+8,Z=NA()(f).call(f,0,Y),V=parseInt(NA()(f).call(f,Y),10);return{metadata:T["".concat(Z,"1")],frame:V}}const b={_retrieveMultiframeMetadata:LA,retrieveMultiframeMetadata:function(f){return LA(d(f))},isMultiframe:function(f){var Y=l(f["00280008"]);return Y&&Y>1}};var T=[],EA={};const AA={add:function(f,Y){var Z=d(f);Y.isMultiframe=b.isMultiframe(Y),T[Z]=Y},get:function(f){var Y=d(f),Z=T[Y];if(Z&&(Z==null||!Z.isMultiframe))return Z;var V=EA[Y];if(V)return V;var gA=b._retrieveMultiframeMetadata(Y);if(gA&&gA.metadata){var nA=gA.metadata,dA=gA.frame;if(nA){var rA=function(hA,SA){var kA=JA(SA),mA=kA.PerFrameFunctionalGroupsSequence,uA=kA.SharedFunctionalGroupsSequence,vA=kA.NumberOfFrames,WA=kA.rest;if(mA||vA>1){var xA,HA=yA(mA,uA,hA),OA=HA.shared,_A=HA.perFrame,XA=aA()(SA,{frameNumber:hA});return u()(xA=[]).call(xA,K(OA),K(_A)).forEach(function(rI){CA()(rI).forEach(function(fI){var DI=q(fI,2),VA=DI[0],MI=DI[1];XA[VA]=MI})}),aA()(WA,{"00280008":vA},XA)}return SA}(dA,nA);return EA[Y]=rA,rA}}},remove:function(f){var Y=d(f);T[Y]=void 0,EA[Y]=void 0},purge:function(){T=[],EA={}}};function IA(f){return f==="RECON TOMO"||f==="RECON GATED TOMO"}function oA(f){var Y=l(f["00080060"]);return G()(Y).call(Y,"NM")}function FA(f,Y){var Z=tA(f["00080008"],!1);if(Z)return Z[Y]}function KA(f){var Y=D(f["00200037"],6);return!Y&&oA(f)&&(Y=function(Z){var V,gA=FA(Z,2);if(gA&&IA(gA)){var nA=tA(Z["00540022"]);nA&&(V=D(nA["00200037"],6))}return V}(f)),Y}function qA(f){var Y=D(f["00200032"],3);return!Y&&oA(f)&&(Y=function(Z){var V,gA=FA(Z,2);if(gA&&IA(gA)){var nA=tA(Z["00540022"]);nA&&(V=D(nA["00200032"],3))}return V}(f)),Y}const DA=function(f,Y){if(f==="multiframeModule"){var Z=b.retrieveMultiframeMetadata(Y),V=Z.metadata,gA=Z.frame;if(!V)return;var nA=JA(V),dA=nA.PerFrameFunctionalGroupsSequence,rA=nA.SharedFunctionalGroupsSequence,hA=nA.NumberOfFrames;if(dA||hA>1){var SA=yA(dA,rA,gA),kA=SA.shared;return{NumberOfFrames:hA,PerFrameFunctionalInformation:SA.perFrame,SharedFunctionalInformation:kA}}return{NumberOfFrames:hA}}var mA=TA.dicomParser,uA=AA.get(Y);if(uA){if(f==="generalSeriesModule")return{modality:l(uA["00080060"]),seriesInstanceUID:l(uA["0020000E"]),seriesNumber:F(uA["00200011"]),studyInstanceUID:l(uA["0020000D"]),seriesDate:mA.parseDA(l(uA["00080021"])),seriesTime:mA.parseTM(l(uA["00080031"],0,"")),acquisitionDate:mA.parseDA(l(uA["00080022"]),""),acquisitionTime:mA.parseTM(l(uA["00080032"],0,""))};if(f==="patientStudyModule")return{patientAge:F(uA["00101010"]),patientSize:F(uA["00101020"]),patientSex:l(uA["00100040"]),patientWe
|
||
|
\r
|
||
|
`);mA===-1&&nA(new Error("invalid response - no multipart mime header"));var uA=Ig(SA,0,mA).split(`\r
|
||
|
`),vA=WI(uA);vA||nA(new Error("invalid response - no boundary marker"));var WA=mA+4,xA=RA(SA,vA,WA);xA===-1&&nA(new Error("invalid response - terminating boundary not found"));var HA=xA-WA-2;gA({contentType:Ag(uA),imageFrame:{pixelData:new Uint8Array(hA,WA,HA)}})}else gA({contentType:kA,imageFrame:{pixelData:SA}})},nA)})};var ng=t(1882),kI=t.n(ng),sg=t(337),GI=t.n(sg),gg=t(2770),LI=t.n(gg),PI=t(1082);function pI(f,Y,Z){return Y in f?PI(f,Y,{value:Z,enumerable:!0,configurable:!0,writable:!0}):f[Y]=Z,f}const xI=function(f){var Y=TA.cornerstone.metaData.get("imagePixelModule",f);return{samplesPerPixel:Y.samplesPerPixel,photometricInterpretation:Y.photometricInterpretation,planarConfiguration:Y.planarConfiguration,rows:Y.rows,columns:Y.columns,bitsAllocated:Y.bitsAllocated,bitsStored:Y.bitsStored,pixelRepresentation:Y.pixelRepresentation,smallestPixelValue:Y.smallestPixelValue,largestPixelValue:Y.largestPixelValue,redPaletteColorLookupTableDescriptor:Y.redPaletteColorLookupTableDescriptor,greenPaletteColorLookupTableDescriptor:Y.greenPaletteColorLookupTableDescriptor,bluePaletteColorLookupTableDescriptor:Y.bluePaletteColorLookupTableDescriptor,redPaletteColorLookupTableData:Y.redPaletteColorLookupTableData,greenPaletteColorLookupTableData:Y.greenPaletteColorLookupTableData,bluePaletteColorLookupTableData:Y.bluePaletteColorLookupTableData,pixelData:void 0}};var Bg=t(187),qI=t.n(Bg),ZI=t(6614),OI=t.n(ZI);function Cg(){return OI()(`(()=>{var A,I,g={8726:function(A,I){!function(g){if("object"==typeof I&&void 0!==A)A.exports=g();else if("function"==typeof define&&define.amd)define([],g);else{("undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this).jpeg=g()}}((function(){return function A(I,g,B){function Q(E,i){if(!g[E]){if(!I[E]){var o="function"==typeof require&&require;if(!i&&o)return o(E,!0);if(C)return C(E,!0);var D=new Error("Cannot find module '"+E+"'");throw D.code="MODULE_NOT_FOUND",D}var a=g[E]={exports:{}};I[E][0].call(a.exports,(function(A){var g=I[E][1][A];return Q(g||A)}),a,a.exports,A,I,g,B)}return g[E].exports}for(var C="function"==typeof require&&require,E=0;E<B.length;E++)Q(B[E]);return Q}({1:[function(A,I,g){"use strict";var B=B||{};B.lossless=B.lossless||{},B.lossless.ComponentSpec=B.lossless.ComponentSpec||function(){this.hSamp=0,this.quantTableSel=0,this.vSamp=0},"undefined"!==typeof I&&I.exports&&(I.exports=B.lossless.ComponentSpec)},{}],2:[function(A,I,g){"use strict";var B=B||{};B.lossless=B.lossless||{},B.lossless.DataStream=B.lossless.DataStream||function(A,I,g){this.buffer=new Uint8Array(A,I,g),this.index=0},B.lossless.DataStream.prototype.get16=function(){var A=(this.buffer[this.index]<<8)+this.buffer[this.index+1];return this.index+=2,A},B.lossless.DataStream.prototype.get8=function(){var A=this.buffer[this.index];return this.index+=1,A},"undefined"!==typeof I&&I.exports&&(I.exports=B.lossless.DataStream)},{}],3:[function(A,I,g){"use strict";var B,Q=Q||{};Q.lossless=Q.lossless||{},Q.lossless.DataStream=Q.lossless.DataStream||(void 0!==A?A("./data-stream.js"):null),Q.lossless.HuffmanTable=Q.lossless.HuffmanTable||(void 0!==A?A("./huffman-table.js"):null),Q.lossless.QuantizationTable=Q.lossless.QuantizationTable||(void 0!==A?A("./quantization-table.js"):null),Q.lossless.ScanHeader=Q.lossless.ScanHeader||(void 0!==A?A("./scan-header.js"):null),Q.lossless.FrameHeader=Q.lossless.FrameHeader||(void 0!==A?A("./frame-header.js"):null),Q.lossless.Utils=Q.lossless.Utils||(void 0!==A?A("./utils.js"):null),Q.lossless.Decoder=Q.lossless.Decoder||function(A,I){this.buffer=A,this.frame=new Q.lossless.FrameHeader,this.huffTable=new Q.lossless.HuffmanTable,this.quantTable=new Q.lossless.QuantizationTable,this.scan=new Q.lossless.ScanHeader,this.DU=Q.lossless.Utils.createArray(10,4,64),this.HuffTab=Q.lossless.Utils.createArray(4,2,12800),this.IDCT_Source=[],this.nBlock=[],this.acTab=Q.lossless.Utils.createArray(10,1),this.dcTab=Q.lossless.Utils.createArray(10,1),this.qTab=Q.lossless.Utils.createArray(10,1),this.marker=0,this.markerIndex=0,this.numComp=0,this.restartInter
|
||
|
//# sourceMappingURL=index.worker.bundle.min.worker.js.map`,"Worker",void 0,t.p+"index.worker.bundle.min.worker.js")}var BI,VI=0,zA=[],jA=[],mI=dI(),YI={maxWebWorkers:navigator.hardwareConcurrency||1,startWebWorkersOnDemand:!0,webWorkerTaskPaths:[],taskConfiguration:{decodeTask:{initializeCodecsOnStartup:!1,strict:mI.strict}}},tI={maxWebWorkers:0,numWebWorkers:0,numTasksQueued:0,numTasksExecuting:0,numTasksCompleted:0,totalTaskTimeInMS:0,totalTimeDelayedInMS:0};function jI(){if(zA.length){for(var f=0;f<jA.length;f++)if(jA[f].status==="ready"){jA[f].status="busy";var Y=zA.shift();Y.start=new Date().getTime();var Z=new Date().getTime();return tI.totalTimeDelayedInMS+=Z-Y.added,jA[f].task=Y,jA[f].worker.postMessage({taskType:Y.taskType,workerIndex:f,data:Y.data},Y.transferList),void tI.numTasksExecuting++}jA.length<BI.maxWebWorkers&&vI()}}function cg(f){if(f.data.taskType==="initialize")jA[f.data.workerIndex].status="ready",jI();else{var Y=jA[f.data.workerIndex].task.start,Z=f.data.status==="success"?"resolve":"reject";try{jA[f.data.workerIndex].task.deferred[Z](f.data.result)}catch(gA){console.warn("Caught error delivering response",gA)}jA[f.data.workerIndex].task=void 0,tI.numTasksExecuting--,jA[f.data.workerIndex].status="ready",tI.numTasksCompleted++;var V=new Date().getTime();tI.totalTaskTimeInMS+=V-Y,jI()}}function vI(){if(!(jA.length>=BI.maxWebWorkers)){var f=new Cg;jA.push({worker:f,status:"initializing"}),f.addEventListener("message",cg),f.postMessage({taskType:"initialize",workerIndex:jA.length-1,config:BI})}}function oI(f){if((BI=f=f||YI).maxWebWorkers=BI.maxWebWorkers||navigator.hardwareConcurrency||1,!BI.startWebWorkersOnDemand)for(var Y=0;Y<BI.maxWebWorkers;Y++)vI()}const cI={initialize:oI,loadWebWorkerTask:function(f,Y){BI.webWorkerTaskPaths.push(f),Y&&(BI.taskConfiguration=aA()(BI.taskConfiguration,Y));for(var Z=0;Z<jA.length;Z++)jA[Z].worker.postMessage({taskType:"loadWebWorkerTask",workerIndex:jA.length-1,sourcePath:f,config:BI})},addTask:function(f,Y){var Z=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,V=arguments.length>3?arguments[3]:void 0;BI||oI();var gA,nA={},dA=new(pA())(function(hA,SA){nA={resolve:hA,reject:SA}});for(gA=0;gA<zA.length&&!(zA[gA].priority<Z);gA++);var rA=VI++;return qI()(zA).call(zA,gA,0,{taskId:rA,taskType:f,status:"ready",added:new Date().getTime(),data:Y,deferred:nA,priority:Z,transferList:V}),jI(),{taskId:rA,promise:dA}},getStatistics:function(){return tI.maxWebWorkers=BI.maxWebWorkers,tI.numWebWorkers=jA.length,tI.numTasksQueued=zA.length,tI},setTaskPriority:function(f){for(var Y=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,Z=0;Z<zA.length;Z++)if(zA[Z].taskId===f){var V=qI()(zA).call(zA,Z,1)[0];for(V.priority=Y,Z=0;Z<zA.length&&!(zA[Z].priority<Y);Z++);return qI()(zA).call(zA,Z,0,V),!0}return!1},cancelTask:function(f,Y){for(var Z=0;Z<zA.length;Z++)if(zA[Z].taskId===f)return qI()(zA).call(zA,Z,1).deferred.reject(Y),!0;return!1},webWorkers:jA,terminate:function(){for(var f=0;f<jA.length;f++)jA[f].worker.terminate();jA.length=0,BI=void 0}},yI=function(f){for(var Y,Z=f[0],V=f[0],gA=f.length,nA=1;nA<gA;nA++)Y=f[nA],Z=Math.min(Z,Y),V=Math.max(V,Y);return{min:Z,max:V}};function UI(f){return function(Y){var Z;try{return decodeURIComponent(escape(Y))}catch(V){if((Z=V)instanceof URIError)return Y;throw Z}}(String.fromCharCode.apply(null,NA()(Array.prototype).apply(new Uint8Array(f))))}const KI=function(f,Y,Z){var V=new Date().getTime(),gA=new Blob([Y],{type:"image/jpeg"});return new(pA())(function(nA,dA){var rA=new FileReader;rA.readAsBinaryString===void 0?rA.readAsArrayBuffer(gA):rA.readAsBinaryString(gA),rA.onload=function(){var hA=new Image;hA.onload=function(){Z.height=hA.height,Z.width=hA.width,f.rows=hA.height,f.columns=hA.width;var SA=Z.getContext("2d");SA.drawImage(this,0,0);var kA=SA.getImageData(0,0,hA.width,hA.height),mA=new Date().getTime();f.pixelData=kA.data,f.imageData=kA,f.decodeTimeInMS=mA-V;var uA=yI(f.pixelData);f.smallestPixelValue=uA.min,f.largestPixelValue=uA.max,nA(f)},hA.onerror=function(SA){dA(SA)},rA.readAsBinaryString===void 0?hA.src="dat
|
||
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var nA,dA=!0,rA=!1;return{s:function(){Z=Z.call(f)},n:function(){var hA=Z.next();return dA=hA.done,hA},e:function(hA){rA=!0,nA=hA},f:function(){try{dA||Z.return==null||Z.return()}finally{if(rA)throw nA}}}}function Yg(f,Y){(Y==null||Y>f.length)&&(Y=f.length);for(var Z=0,V=new Array(Y);Z<Y;Z++)V[Z]=f[Z];return V}function sB(f){var Y,Z=TA.dicomParser,V=Z.parseDicom(f,{untilTag:"x7fe00010"});V.elements.x7fe00010||console.warn("Pixel data not found!");try{Y=Z.parseDicom(f)}catch(gA){console.error(gA),console.log("pixel data dataset:",gA.dataSet),Y=gA.dataSet}return V.elements.x7fe00010=Y.elements.x7fe00010,V=function(gA){var nA,dA=gA.elements.x7fe00010.fragments,rA=gA.byteArray.length,hA=nB(dA);try{for(hA.s();!(nA=hA.n()).done;){var SA,kA=nA.value,mA=kA.position;kA.length>rA-mA&&(console.log(u()(SA="Truncated fragment, changing fragment length from ".concat(kA.length," to ")).call(SA,rA-mA)),kA.length=rA-mA)}}catch(uA){hA.e(uA)}finally{hA.f()}return gA}(V)}function vg(f,Y,Z){return Kg.apply(this,arguments)}function Kg(){return(Kg=uI(og().mark(function f(Y,Z,V){var gA,nA,dA,rA;return og().wrap(function(hA){for(;;)switch(hA.prev=hA.next){case 0:return gA=sB(Y),nA=V.uri,dA=V.imageId,rA=V.fileTotalLength,gA.fetchMore=function(){var SA=uI(og().mark(function kA(mA){var uA,vA,WA,xA,HA,OA,_A,XA;return og().wrap(function(rI){for(;;)switch(rI.prev=rI.next){case 0:return vA=aA()({uri:nA,imageId:dA,fetchedLength:Y.length,lengthToFetch:rA-Y.length},mA),WA=vA.fetchedLength,xA=vA.lengthToFetch,rI.next=4,Z(nA,dA,{byteRange:u()(uA="".concat(WA,"-")).call(uA,WA+xA)});case 4:return HA=rI.sent,OA=HA.arrayBuffer,_A=new Uint8Array(OA),(XA=new Uint8Array(gA.byteArray.length+_A.length)).set(gA.byteArray),XA.set(_A,gA.byteArray.length),rI.abrupt("return",vg(XA,Z,V));case 11:case"end":return rI.stop()}},kA)}));return function(kA){return SA.apply(this,arguments)}}(),hA.abrupt("return",gA);case 4:case"end":return hA.stop()}},f)}))).apply(this,arguments)}var ag=0,EI={},_I={};function yg(){return{cacheSizeInBytes:ag,numberOfDataSetsCached:II()(EI).length}}const rg={isLoaded:function(f){return EI[f]!==void 0},load:function(f){var Y=arguments.length>1&&arguments[1]!==void 0?arguments[1]:iI,Z=arguments.length>2?arguments[2]:void 0,V=TA.cornerstone,gA=TA.dicomParser;if(EI[f])return new(pA())(function(rA){EI[f].cacheCount++,rA(EI[f].dataSet)});if(_I[f])return _I[f].cacheCount++,_I[f];var nA=Y(f,Z),dA=new(pA())(function(rA,hA){nA.then(function(){var SA=uI(og().mark(function kA(mA){var uA,vA,WA;return og().wrap(function(xA){for(;;)switch(xA.prev=xA.next){case 0:if(uA={isPartialContent:!1,fileTotalLength:null},mA instanceof ArrayBuffer){xA.next=7;break}if(mA.arrayBuffer){xA.next=4;break}return xA.abrupt("return",hA(new Error("If not returning ArrayBuffer, must return object with `arrayBuffer` parameter")));case 4:uA.isPartialContent=kg()(mA).isPartialContent,uA.fileTotalLength=kg()(mA).fileTotalLength,mA=mA.arrayBuffer;case 7:if(vA=new Uint8Array(mA),xA.prev=8,!uA.isPartialContent){xA.next=15;break}return xA.next=12,vg(vA,Y,{uri:f,imageId:Z,fileTotalLength:uA.fileTotalLength});case 12:WA=xA.sent,xA.next=16;break;case 15:WA=gA.parseDicom(vA);case 16:xA.next=21;break;case 18:return xA.prev=18,xA.t0=xA.catch(8),xA.abrupt("return",hA(xA.t0));case 21:EI[f]={dataSet:WA,cacheCount:dA.cacheCount},ag+=WA.byteArray.length,rA(WA),V.triggerEvent(V.events,"datasetscachechanged",{uri:f,action:"loaded",cacheInfo:yg()});case 25:case"end":return xA.stop()}},kA,null,[[8,18]])}));return function(kA){return SA.apply(this,arguments)}}(),hA).then(function(){delete _I[f]},function(){delete _I[f]})});return dA.cacheCount=1,_I[f]=dA,dA},unload:function(f){var Y=TA.cornerstone;EI[f]&&(EI[f].cacheCount--,EI[f].cacheCount===0&&(ag-=EI[f].dataSet.byteArray.length,delete EI[f],Y.triggerEvent(Y.events,"datasetscachechanged",{uri:f,action:"unloaded",cacheInfo:yg()})))},getInfo:yg,purge:function(){EI={},_I={},ag=0},get:function(f){var Y;if(G()(f).call(f,"&frame=")){var Z=Jg.retrieveMultiframeDataset(f);Y=functi
|
||
|
See http://dicom.nema.org/medical/dicom/current/output/chtml/part03/sect_C.7.6.3.html for more information.`));var rA,hA=Z.dataOffset,SA=gA*nA*dA;if(V===8){var kA;if((rA=hA+Y*SA)>=f.byteArray.length)throw new Error("frame exceeds size of pixelData");return new Uint8Array(NA()(kA=f.byteArray.buffer).call(kA,rA,rA+SA))}if(V===16){var mA;if((rA=hA+Y*SA*2)>=f.byteArray.length)throw new Error("frame exceeds size of pixelData");return new Uint8Array(NA()(mA=f.byteArray.buffer).call(mA,rA,rA+2*SA))}if(V===1){if((rA=hA+Y*SA*.125)>=f.byteArray.length)throw new Error("frame exceeds size of pixelData");return Og(f.byteArray,rA,SA)}if(V===32){var uA;if((rA=hA+Y*SA*4)>=f.byteArray.length)throw new Error("frame exceeds size of pixelData");return new Uint8Array(NA()(uA=f.byteArray.buffer).call(uA,rA,rA+4*SA))}throw new Error("unsupported pixel format")},jg=function(f){var Y=AI(f),Z=parseInt(Y.url,10),V=Pg.get(Z);return new(pA())(function(gA,nA){var dA=new FileReader;dA.onload=function(rA){var hA=rA.target.result;gA(hA)},dA.onerror=nA,dA.readAsArrayBuffer(V)})},Xg=function(f){var Y=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,Z=f.elements.x7fe00010||f.elements.x7fe00008;return Z?Z.encapsulatedPixelData?Zg(f,Y):Vg(f,Y):null};function DB(f,Y){f.decache=function(){var Z=AI(Y);rg.unload(Z.url)}}function zg(f,Y){var Z=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,V=arguments.length>3?arguments[3]:void 0,gA=arguments.length>4?arguments[4]:void 0,nA=arguments.length>5?arguments[5]:void 0,dA=new Date().getTime(),rA={cancelFn:void 0};return rA.promise=new(pA())(function(hA,SA){f.then(function(kA){var mA=Xg(kA,Z),uA=kA.string("x00020010"),vA=new Date().getTime(),WA=zI(Y,mA,uA,gA);DB(rA,Y),WA.then(function(xA){xA.data=kA,xA.sharedCacheKey=V;var HA=new Date().getTime();xA.loadTimeInMS=vA-dA,xA.totalTimeInMS=HA-dA,nA!==void 0&&nA.imageDoneCallback!==void 0&&nA.imageDoneCallback(xA),hA(xA)},function(xA){SA({error:xA,dataSet:kA})})},function(kA){SA({error:kA})})}),rA}function hB(f,Y){var Z=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,V=arguments.length>3?arguments[3]:void 0,gA=arguments.length>4?arguments[4]:void 0,nA=new Date().getTime(),dA=new(pA())(function(rA,hA){var SA,kA=new Date().getTime();try{var mA=Xg(f,Z),uA=f.string("x00020010");SA=zI(Y,mA,uA,gA)}catch(vA){return void hA({error:vA,dataSet:f})}SA.then(function(vA){vA.data=f,vA.sharedCacheKey=V;var WA=new Date().getTime();vA.loadTimeInMS=kA-nA,vA.totalTimeInMS=WA-nA,rA(vA)},hA)});return{promise:dA,cancelFn:void 0}}function _g(f){return f==="dicomweb"||f==="wadouri"?iI:f==="dicomfile"?jg:void 0}function fg(f){var Y=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Z=AI(f),V=(Y=aA()({},Y)).loader;if(V===void 0?V=_g(Z.scheme):delete Y.loader,rg.isLoaded(Z.url)){var gA=rg.get(Z.url,V,f);return hB(gA,f,Z.frame,Z.url,Y)}var nA=rg.load(Z.url,V,f);return zg(nA,f,Z.frame,Z.url,Y)}const Ug={metaData:{getImagePixelModule:s,getLUTs:r,getModalityLUTOutputPixelRepresentation:h,getNumberValues:c,metaDataProvider:Wg},dataSetCacheManager:rg,fileManager:Pg,getEncapsulatedImageFrame:Zg,getUncompressedImageFrame:Vg,loadFileRequest:jg,loadImageFromPromise:zg,getLoaderForScheme:_g,loadImage:fg,parseImageId:AI,unpackBinaryFrame:Og,register:function(f){f.registerImageLoader("dicomweb",fg),f.registerImageLoader("wadouri",fg),f.registerImageLoader("dicomfile",fg),f.metaData.addProvider(Wg)}},$g=function(f){eI(f)},AB="4.13.2",wB={convertRGBColorByPixel:E,convertRGBColorByPlane:C,convertYBRFullByPixel:A,convertYBRFullByPlane:I,convertPALETTECOLOR:B,wadouri:Ug,wadors:QA,configure:$g,convertColorSpace:sI,createImage:zI,decodeImageFrame:Qg,decodeJPEGBaseline8BitColor:KI,getImageFrame:xI,getPixelData:JI,getMinMax:yI,isColorImage:Eg,isJPEGBaseline8BitColor:bI,webWorkerManager:cI,version:AB,internal:nI,external:TA}})(),o})()})},34705:function(NI,BA,i){var t=i(48764).Buffer,o=i(34155);/*! dicom-parser - 1.8.12 - 2023-02-20 | (c) 2017 Chris Hafey | https://github.com/cornerstonejs/dicomParser */(function(E,C){NI.exports=C(i(23848))})(this,function(E){return A=[function(g,B){g.e
|
||
|
* http://hammerjs.github.io/
|
||
|
*
|
||
|
* Copyright (c) 2016 Jorik Tangelder;
|
||
|
* Licensed under the MIT license */(function(o,E,C,A){"use strict";var I=["","webkit","Moz","MS","ms","o"],g=E.createElement("div"),B="function",Q=Math.round,e=Math.abs,s=Date.now;function a(W,X,QA){return setTimeout(l(W,QA),X)}function r(W,X,QA){return Array.isArray(W)?(h(W,QA[X],QA),!0):!1}function h(W,X,QA){var sA;if(!!W)if(W.forEach)W.forEach(X,QA);else if(W.length!==A)for(sA=0;sA<W.length;)X.call(QA,W[sA],sA,W),sA++;else for(sA in W)W.hasOwnProperty(sA)&&X.call(QA,W[sA],sA,W)}function c(W,X,QA){var sA="DEPRECATED METHOD: "+X+`
|
||
|
`+QA+` AT
|
||
|
`;return function(){var fA=new Error("get-stack-trace"),YA=fA&&fA.stack?fA.stack.replace(/^[^\(]+?[\n$]/gm,"").replace(/^\s+at\s+/gm,"").replace(/^Object.<anonymous>\s*\(/gm,"{anonymous}()@"):"Unknown Stack Trace",TA=o.console&&(o.console.warn||o.console.log);return TA&&TA.call(o.console,sA,YA),W.apply(this,arguments)}}var w;typeof Object.assign!="function"?w=function(X){if(X===A||X===null)throw new TypeError("Cannot convert undefined or null to object");for(var QA=Object(X),sA=1;sA<arguments.length;sA++){var fA=arguments[sA];if(fA!==A&&fA!==null)for(var YA in fA)fA.hasOwnProperty(YA)&&(QA[YA]=fA[YA])}return QA}:w=Object.assign;var u=c(function(X,QA,sA){for(var fA=Object.keys(QA),YA=0;YA<fA.length;)(!sA||sA&&X[fA[YA]]===A)&&(X[fA[YA]]=QA[fA[YA]]),YA++;return X},"extend","Use `assign`."),N=c(function(X,QA){return u(X,QA,!0)},"merge","Use `assign`.");function G(W,X,QA){var sA=X.prototype,fA;fA=W.prototype=Object.create(sA),fA.constructor=W,fA._super=sA,QA&&w(fA,QA)}function l(W,X){return function(){return W.apply(X,arguments)}}function R(W,X){return typeof W==B?W.apply(X&&X[0]||A,X):W}function F(W,X){return W===A?X:W}function D(W,X,QA){h(L(X),function(sA){W.addEventListener(sA,QA,!1)})}function d(W,X,QA){h(L(X),function(sA){W.removeEventListener(sA,QA,!1)})}function y(W,X){for(;W;){if(W==X)return!0;W=W.parentNode}return!1}function M(W,X){return W.indexOf(X)>-1}function L(W){return W.trim().split(/\s+/g)}function k(W,X,QA){if(W.indexOf&&!QA)return W.indexOf(X);for(var sA=0;sA<W.length;){if(QA&&W[sA][QA]==X||!QA&&W[sA]===X)return sA;sA++}return-1}function H(W){return Array.prototype.slice.call(W,0)}function m(W,X,QA){for(var sA=[],fA=[],YA=0;YA<W.length;){var TA=X?W[YA][X]:W[YA];k(fA,TA)<0&&sA.push(W[YA]),fA[YA]=TA,YA++}return QA&&(X?sA=sA.sort(function(CI,aI){return CI[X]>aI[X]}):sA=sA.sort()),sA}function x(W,X){for(var QA,sA,fA=X[0].toUpperCase()+X.slice(1),YA=0;YA<I.length;){if(QA=I[YA],sA=QA?QA+fA:X,sA in W)return sA;YA++}return A}var P=1;function q(){return P++}function K(W){var X=W.ownerDocument||W;return X.defaultView||X.parentWindow||o}var U=/mobile|tablet|ip(ad|hone|od)|android/i,n="ontouchstart"in o,S=x(o,"PointerEvent")!==A,v=n&&U.test(navigator.userAgent),p="touch",J="pen",z="mouse",_="kinect",j=25,O=1,eA=2,iA=4,$=8,aA=1,cA=2,CA=4,tA=8,lA=16,yA=cA|CA,JA=tA|lA,bA=yA|JA,NA=["x","y"],LA=["clientX","clientY"];function b(W,X){var QA=this;this.manager=W,this.callback=X,this.element=W.element,this.target=W.options.inputTarget,this.domHandler=function(sA){R(W.options.enable,[W])&&QA.handler(sA)},this.init()}b.prototype={handler:function(){},init:function(){this.evEl&&D(this.element,this.evEl,this.domHandler),this.evTarget&&D(this.target,this.evTarget,this.domHandler),this.evWin&&D(K(this.element),this.evWin,this.domHandler)},destroy:function(){this.evEl&&d(this.element,this.evEl,this.domHandler),this.evTarget&&d(this.target,this.evTarget,this.domHandler),this.evWin&&d(K(this.element),this.evWin,this.domHandler)}};function T(W){var X,QA=W.options.inputClass;return QA?X=QA:S?X=nI:v?X=GI:n?X=pI:X=II,new X(W,EA)}function EA(W,X,QA){var sA=QA.pointers.length,fA=QA.changedPointers.length,YA=X&O&&sA-fA==0,TA=X&(iA|$)&&sA-fA==0;QA.isFirst=!!YA,QA.isFinal=!!TA,YA&&(W.session={}),QA.eventType=X,AA(W,QA),W.emit("hammer.input",QA),W.recognize(QA),W.session.prevInput=QA}function AA(W,X){var QA=W.session,sA=X.pointers,fA=sA.length;QA.firstInput||(QA.firstInput=FA(X)),fA>1&&!QA.firstMultiple?QA.firstMultiple=FA(X):fA===1&&(QA.firstMultiple=!1);var YA=QA.firstInput,TA=QA.firstMultiple,AI=TA?TA.center:YA.center,CI=X.center=KA(sA);X.timeStamp=s(),X.deltaTime=X.timeStamp-YA.timeStamp,X.angle=RA(AI,CI),X.distance=MA(AI,CI),IA(QA,X),X.offsetDirection=DA(X.deltaX,X.deltaY);var aI=qA(X.deltaTime,X.deltaX,X.deltaY);X.overallVelocityX=aI.x,X.overallVelocityY=aI.y,X.overallVelocity=e(aI.x)>e(aI.y)?aI.x:aI.y,X.scale=TA?GA(TA.pointers,sA):1,X.rotation=TA?wA(TA.pointers,sA):0,X.maxPointers=QA.prevInput?X.pointers.length>QA.prevInput.maxPointers?X.pointers.length:QA.prevInput.maxPointers:X.pointers.length,oA(QA,X);var uI=W.element;y(X.srcEvent.targe
|