dwv 0.28.1 → 0.30.0
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.
- package/changelog.md +67 -0
- package/decoders/dwv/decode-rle.js +11 -11
- package/decoders/dwv/rle.js +93 -93
- package/decoders/pdfjs/decode-jpeg2000.js +10 -10
- package/decoders/pdfjs/decode-jpegbaseline.js +10 -10
- package/decoders/rii-mango/decode-jpegloss.js +22 -22
- package/dist/dwv.js +19121 -12265
- package/dist/dwv.min.js +2 -2
- package/locales/de/overlays.json +12 -15
- package/locales/de/translation.json +10 -2
- package/locales/en/overlays.json +11 -14
- package/locales/en/translation.json +10 -2
- package/locales/es/overlays.json +12 -15
- package/locales/es/translation.json +10 -2
- package/locales/fr/overlays.json +12 -15
- package/locales/fr/translation.json +10 -2
- package/locales/it/overlays.json +12 -15
- package/locales/it/translation.json +10 -2
- package/locales/jp/overlays.json +12 -15
- package/locales/jp/translation.json +10 -2
- package/locales/ro/overlays.json +12 -15
- package/locales/ro/translation.json +10 -2
- package/locales/ru/overlays.json +12 -15
- package/locales/ru/translation.json +10 -2
- package/locales/zh/overlays.json +13 -16
- package/locales/zh/translation.json +10 -2
- package/package.json +22 -24
- package/readme.md +4 -3
- package/dist/dwv-0.28.1.min.js +0 -3
package/dist/dwv-0.28.1.min.js
DELETED
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
/*! dwv 0.28.1 2021-02-02 23:57:15 */
|
|
2
|
-
|
|
3
|
-
!function(e,t){"function"==typeof define&&define.amd?define(["i18next","i18next-xhr-backend","i18next-browser-languagedetector","jszip","konva","magic-wand-tool"],t):"object"==typeof module&&module.exports?module.exports=t(require("i18next"),require("i18next-xhr-backend"),require("i18next-browser-languagedetector"),require("jszip"),require("konva"),require("magic-wand-tool")):e.dwv=t(e.i18next,e.i18nextXHRBackend,e.i18nextBrowserLanguageDetector,e.JSZip,e.Konva,e.MagicWand)}(this,function(a,s,l,t,T,h){var N=void 0!==N?N:"undefined"!=typeof self?self:"undefined"!=typeof global?global:{};void 0===a.t&&(a=a.default);var ae=ae||{};ae.App=function(){void 0===ae.logger&&(ae.logger=ae.utils.logger.console);var a=this,o=null,s=null,n=null,r=0,l=0,g=null,u=1,c=1,i={x:0,y:0},S={x:0,y:0},x=null,d=null,m=!0,p=null,h=null,f=null,D=new ae.html.Style,y=null,C=null,v=null,T={};function L(e){void 0!==e.skipGenerate&&!1!==e.skipGenerate||t()}function I(e){t()}function P(e){void 0!==e.skipGenerate&&!1!==e.skipGenerate||(t(),f&&f.activateDrawLayer(d))}function F(e){t(),f&&f.activateDrawLayer(d)}function A(e){if(void 0!==T[e.type])for(var t=0;t<T[e.type].length;++t)T[e.type][t](e)}function t(){var e={type:"renderstart"};A(e),x||function(){if(!o)throw new Error("No image to create the view for.");var e=new ae.image.ViewFactory;x=e.create(new ae.dicom.DicomElementsWrapper(p),o),d=new ae.ViewController(x);var t=o.getGeometry().getSize();r=t.getNumberOfColumns(),l=t.getNumberOfRows(),function(e,t){var n=a.getElement("imageLayer");(h=new ae.html.Layer(n)).initialise(e,t),h.fillContext(),h.setStyleDisplay(!0);var i=a.getElement("drawDiv");i&&(f=new ae.DrawController(i)).create(e,t);a.fitToSize(a.getLayerContainerSize()),a.resetLayout()}(r,l),n=h.getContext().createImageData(r,l),x.addEventListener("wlwidthchange",L),x.addEventListener("wlcenterchange",L),x.addEventListener("colourchange",I),x.addEventListener("slicechange",F),x.addEventListener("framechange",P),x.addEventListener("wlwidthchange",A),x.addEventListener("wlcenterchange",A),x.addEventListener("wlpresetadd",A),x.addEventListener("colourchange",A),x.addEventListener("positionchange",A),x.addEventListener("slicechange",A),x.addEventListener("framechange",A),y&&y.init(h)}(),x.generateImageData(n),h.setImageData(n),h.draw(),A({type:"renderend"})}function O(){h&&(h.zoom(c,c,i.x,i.y),h.draw()),f&&f.zoomStage(c,i),A({type:"zoomchange",value:[c],scale:c,cx:i.x,cy:i.y}),A({type:"offsetchange",value:[i.x,i.y]})}function w(){var e,t;h&&(h.translate(S.x,S.y),h.draw(),f&&(e=-h.getOrigin().x/c-S.x,t=-h.getOrigin().y/c-S.y,f.translateStage(e,t)),A({type:"translatechange",value:[h.getTrans().x,h.getTrans().y],scale:c,cx:h.getTrans().x,cy:h.getTrans().y}))}function R(e){"image"===e.loadtype&&a.reset(),e.type="loadstart",A(e)}function b(e){e.type="loadprogress",A(e)}function E(e){void 0===e.data&&ae.logger.error("Missing loaditem event data "+e),void 0===e.loadtype&&ae.logger.error("Missing loaditem event load type "+e);var t,n=null===o,i=null,r=null;"image"===e.loadtype?(n?(s=e.data.image,o=s):i=o.appendSlice(e.data.image),function(e){{var t;p=ae.utils.isArray(e)?e:(t=new ae.dicom.DicomElementsWrapper(e).dumpToObject(),p?ae.utils.mergeObjects(p,t,"InstanceNumber","value"):t)}}(e.data.info),r=e.data.info):"state"===e.loadtype&&((t=new ae.State).apply(a,t.fromJSON(e.data)),r="state"),A({type:"loaditem",data:r,source:e.source,loadtype:e.loadtype}),"image"===e.loadtype&&m&&(n?a.render():i<=x.getCurrentPosition().k&&x.setCurrentPosition({i:x.getCurrentPosition().i,j:x.getCurrentPosition().j,k:x.getCurrentPosition().k+1},!0))}function q(e){f&&f.activateDrawLayer(d),e.type="load",A(e)}function U(e){e.type="loadend",A(e)}function M(e){e.type="error",A(e)}function Q(e){e.type="abort",A(e)}this.getImage=function(){return o},this.setImage=function(e){o=e,x.setImage(e)},this.restoreOriginalImage=function(){o=s,x.setImage(s)},this.getImageData=function(){return n},this.isMonoSliceData=function(){return C.isMonoSliceData()},this.isMonoFrameData=function(){return this.getImage()&&void 0!==this.getImage()&&1===this.getImage().getNumberOfFrames()},this.canScroll=function(){return!this.isMonoSliceData()||!this.isMonoFrameData()},this.canWindowLevel=function(){return null!==this.getImage().getPhotometricInterpretation().match(/MONOCHROME/)},this.getScale=function(){return c/u},this.getWindowScale=function(){return u},this.getScaleCenter=function(){return i},this.getTranslation=function(){return S},this.getViewController=function(){return d},this.getToolboxController=function(){return y},this.getDrawController=function(){return f},this.getImageLayer=function(){return h},this.getDrawStage=function(){return f.getDrawStage()},this.getStyle=function(){return D},this.addToUndoStack=function(e){null!==v&&v.add(e)},this.init=function(e){if(g=e.containerDivId,(v=new ae.tool.UndoStack).addEventListener("undoadd",A),v.addEventListener("undo",A),v.addEventListener("redo",A),e.tools&&0!==e.tools.length){for(var t={},n=Object.keys(e.tools),i=0;i<n.length;++i){var r=n[i],o=e.tools[r];if(void 0!==ae.tool[r]){if(t[r]=new ae.tool[r](this),void 0!==t[r].addEventListener&&void 0!==o.events)for(var a=0;a<o.events.length;++a){var s=o.events[a];t[r].addEventListener(s,A)}if(void 0!==o.options){var l="raw";void 0!==o.type&&(l=o.type);var u=o.options;if("instance"===l||"factory"===l){u={};for(var c=0;c<o.options.length;++c){var S=o.options[c],x=S;"factory"===l&&(x+="Factory");var d=r.charAt(0).toLowerCase()+r.slice(1);void 0!==ae.tool[d][x]?u[S]=ae.tool[d][x]:ae.logger.warn("Could not find option class for: "+S)}}t[r].setOptions(u)}}else ae.logger.warn("Could not initialise unknown tool: "+r)}y=new ae.ToolboxController(t)}(C=new ae.LoadController(e.defaultCharacterSet)).onloadstart=R,C.onprogress=b,C.onloaditem=E,C.onload=q,C.onloadend=U,C.onerror=M,C.onabort=Q,void 0!==e.viewOnFirstLoadItem&&(m=e.viewOnFirstLoadItem)},this.getLayerContainerSize=function(){for(var e,t,n=a.getElement("layerContainer").parentNode,i=n.offsetHeight,r=n.children,o=0;o<r.length;++o){r[o].classList.contains("layerContainer")||(e=N.getComputedStyle(r[o]),t=parseFloat(e.getPropertyValue("margin-top"),10)+parseFloat(e.getPropertyValue("margin-bottom"),10),i-=r[o].offsetHeight+t)}return{width:n.offsetWidth,height:i}},this.getElement=function(e){return ae.gui.getElement(g,e)},this.reset=function(){f&&f.reset(),p=x=o=null,v&&((v=new ae.tool.UndoStack).addEventListener("undoadd",A),v.addEventListener("undo",A),v.addEventListener("redo",A))},this.resetLayout=function(){var e=c,t=i,n=S;c=u,i={x:0,y:0},S={x:0,y:0},h&&(h.resetLayout(u),h.draw()),f&&f.resetStage(u),e!==c&&A({type:"zoomchange",value:[c],scale:c,cx:i.x,cy:i.y}),t.x===i.x&&t.y===i.y&&n.x===S.x&&n.y===S.y||A({type:"offsetchange",value:[i.x,i.y],scale:c,cx:i.x,cy:i.y})},this.addEventListener=function(e,t){void 0===T[e]&&(T[e]=[]),T[e].push(t)},this.removeEventListener=function(e,t){if(void 0!==T[e])for(var n=0;n<T[e].length;++n)T[e][n]===t&&T[e].splice(n,1)},this.loadFiles=function(e){C.loadFiles(e)},this.loadURLs=function(e,t){C.loadURLs(e,t)},this.loadImageObject=function(e){C.loadImageObject(e)},this.abortLoad=function(){C.abort()},this.fitToSize=function(e){var t=parseInt(u*r,10);u=Math.min(e.width/r,e.height/l);var n=parseInt(u*r,10),i=parseInt(u*l,10);c*=n/t,D.setScale(u),this.getElement("layerContainer").setAttribute("style","width:"+n+"px;height:"+i+"px"),h&&(h.setWidth(n),h.setHeight(i),h.zoom(c,c,0,0),h.draw()),f&&f.resizeStage(n,i,c)},this.initWLDisplay=function(){d.setWindowLevelPresetById(0),d.setCurrentPosition2D(0,0),d.setCurrentFrame(0)},this.addToolCanvasListeners=function(e){y.addCanvasListeners(e)},this.removeToolCanvasListeners=function(e){y.removeCanvasListeners(e)},this.render=function(){t()},this.zoom=function(e,t,n){(c=e*u)<=.1&&(c=.1),i={x:t,y:n},O()},this.stepZoom=function(e,t,n){(c+=e)<=.1&&(c=.1),i={x:t,y:n},O()},this.translate=function(e,t){S={x:e,y:t},w()},this.stepTranslate=function(e,t){var n=S.x+e/c,i=S.y+t/c;S={x:n,y:i},w()},this.getDrawDisplayDetails=function(){return f.getDrawDisplayDetails()},this.getMetaData=function(){return p},this.getDrawStoreDetails=function(){return f.getDrawStoreDetails()},this.setDrawings=function(e,t){f.setDrawings(e,t,A,this.addToUndoStack),f.activateDrawLayer(d)},this.updateDraw=function(e){f.updateDraw(e)},this.deleteDraws=function(){f.deleteDraws(A,this.addToUndoStack)},this.isGroupVisible=function(e){return f.isGroupVisible(e)},this.toogleGroupVisibility=function(e){f.toogleGroupVisibility(e)},this.getState=function(){return(new ae.State).toJSON(a)},this.onResize=function(e){a.fitToSize(a.getLayerContainerSize())},this.onKeydown=function(e){A(e)},this.defaultOnKeydown=function(e){e.ctrlKey&&(37===e.keyCode?(e.preventDefault(),a.getViewController().decrementFrameNb()):38===e.keyCode?(e.preventDefault(),a.getViewController().incrementSliceNb()):39===e.keyCode?(e.preventDefault(),a.getViewController().incrementFrameNb()):40===e.keyCode?(e.preventDefault(),a.getViewController().decrementSliceNb()):89===e.keyCode?v.redo():90===e.keyCode&&v.undo())},this.resetDisplay=function(){a.resetLayout(),a.initWLDisplay()},this.resetZoom=function(){a.resetLayout()},this.setColourMap=function(e){d.setColourMapFromName(e)},this.setWindowLevelPreset=function(e){d.setWindowLevelPreset(e)},this.setTool=function(e){y.setSelectedTool(e)},this.setDrawShape=function(e){y.setSelectedShape(e)},this.setImageFilter=function(e){y.setSelectedFilter(e)},this.runImageFilter=function(){y.runSelectedFilter()},this.setDrawLineColour=function(e){y.setLineColour(e)},this.setFilterMinMax=function(e){y.setRange(e)},this.undo=function(){v.undo()},this.redo=function(){v.redo()}},(ae=ae||{}).draw=ae.draw||{};T=T||{};ae.draw.getDrawPositionGroupId=function(e,t){return"slice-"+e+"_frame-"+t},ae.draw.getPositionFromGroupId=function(e){var t=e.indexOf("_");return-1===t&&ae.logger.warn("Badly formed PositionGroupId: "+e),{sliceNumber:e.substring(6,t),frameNumber:e.substring(t+7)}},ae.draw.isNodeNameShape=function(e){return"shape"===e.name()},ae.draw.isNodeNameShapeExtra=function(e){return e.name().startsWith("shape-")},ae.draw.isNodeNameLabel=function(e){return"label"===e.name()},ae.draw.isPositionNode=function(e){return"position-group"===e.name()},ae.draw.isNodeWithId=function(t){return function(e){return e.id()===t}},ae.draw.canNodeChangeColour=function(e){return"anchor"!==e.name()&&"label"!==e.name()},ae.draw.getHierarchyLog=function(e,t){void 0===t&&(t="");for(var n=e.getChildren(),i=t+"|__ "+e.name()+": "+e.id()+"\n",r=0;r<n.length;++r)i+=ae.draw.getHierarchyLog(n[r],t+" ");return i},ae.DrawController=function(i){var h,a=null,s=null;this.getCurrentPosGroup=function(){var e=h.getChildren(function(e){return e.id()===s}),t=null;return 1===e.length?t=e[0]:0===e.length?((t=new T.Group).name("position-group"),t.id(s),t.visible(!0),h.add(t)):ae.logger.warn("Unexpected number of draw position groups."),t},this.create=function(e,t){(a=new T.Stage({container:i,width:e,height:t,listening:!1})).getContent().setAttribute("style",""),h=new T.Layer({listening:!1,visible:!0}),a.add(h)},this.getDrawLayer=function(){return h},this.reset=function(){h=null},this.getDrawStage=function(){return a},this.activateDrawLayer=function(e){var t=e.getCurrentPosition().k,n=e.getCurrentFrame();s=ae.draw.getDrawPositionGroupId(t,n);for(var i,r=h.getChildren(ae.draw.isPositionNode),o=0,a=r.length;o<a;++o)i=!1,r[o].id()===s&&(i=!0),r[o].visible(i);h.draw()},this.resetStage=function(e){a.offset({x:0,y:0}),a.scale({x:e,y:e}),a.draw()},this.resizeStage=function(e,t,n){i.setAttribute("style","width:"+e+"px;height:"+t+"px"),a.setWidth(e),a.setHeight(t),a.scale({x:n,y:n}),a.draw()},this.zoomStage=function(e,t){var n={x:e,y:e},i=a.scale(),r=a.offset(),o={x:t.x/i.x+r.x-t.x/n.x,y:t.y/i.y+r.y-t.y/n.y};a.offset(o),a.scale(n),a.draw()},this.translateStage=function(e,t){a.offset({x:e,y:t}),a.draw()},this.getDrawDisplayDetails=function(){for(var e=[],t=h.getChildren(),n=0,i=t.length;n<i;++n)for(var r=ae.draw.getPositionFromGroupId(t[n].id()),o=t[n].getChildren(),a=0,s=o.length;a<s;++a){var l,u=o[a].getChildren(ae.draw.isNodeNameShape)[0],c=o[a].getChildren(ae.draw.isNodeNameLabel)[0].getChildren()[0],S=u.className;"Line"===S&&(l=o[a].getChildren(ae.draw.isNodeNameShapeExtra),u.closed()?S="Roi":0!==l.length&&(S=-1!==l[0].name().indexOf("triangle")?"Arrow":"Ruler")),"Rect"===S&&(S="Rectangle"),e.push({id:o[a].id(),slice:r.sliceNumber,frame:r.frameNumber,type:S,color:u.stroke(),label:c.textExpr,description:c.longText})}return e},this.getDrawStoreDetails=function(){for(var e,t,n={},i=h.getChildren(ae.draw.isPositionNode),r=0,o=i.length;r<o;++r)for(var a=0,s=(e=i[r].getChildren()).length;a<s;++a){for(var l=(t=e[a]).find(".anchor"),u=0;u<l.length;++u)l[u].remove();var c=t.find(".text");1!==c.length&&ae.logger.warn("There should not be more than one text per shape."),n[t.id()]={textExpr:c[0].textExpr,longText:c[0].longText,quant:c[0].quant}}return n},this.setDrawings=function(e,t,n,i){for(var r=T.Node.create(e).getChildren(ae.draw.isPositionNode),o=0,a=r.length;o<a;++o){var s=r[o],l=h.getChildren(ae.draw.isNodeWithId(s.id()))[0];void 0===l&&(l=new T.Group({id:s.id(),name:"position-group",visible:!1}),h.add(l));for(var u=s.getChildren(),c=0,S=u.length;c<S;++c){var x=u[0];l.add(x);var d,g,m=x.getChildren(ae.draw.isNodeNameShape)[0],p=new ae.tool.DrawGroupCommand(x,m.className,h,!0);p.onExecute=n,p.onUndo=n,t&&(d=t[x.id()],(g=x.getChildren(ae.draw.isNodeNameLabel)[0].getText()).textExpr=d.textExpr,g.longText=d.longText,g.quant=d.quant,g.setText(ae.utils.replaceFlags(g.textExpr,g.quant))),p.execute(),i(p)}}},this.updateDraw=function(e){var t=h.findOne("#"+e.id);if(void 0!==t){for(var n=t.getChildren(ae.draw.isNodeNameShape),i=0;i<n.length;++i)n[i].stroke(e.color);for(var r=t.getChildren(ae.draw.isNodeNameShapeExtra),o=0;o<r.length;++o)void 0!==r[o].stroke()?r[o].stroke(e.color):void 0!==r[o].fill()&&r[o].fill(e.color);var a=t.getChildren(ae.draw.isNodeNameLabel)[0].getChildren()[0];a.fill(e.color),a.textExpr=e.label,a.longText=e.description,a.setText(ae.utils.replaceFlags(a.textExpr,a.quant)),h.draw()}else ae.logger.warn("[updateDraw] Cannot find group with id: "+e.id)},this.isGroupVisible=function(e){var t=h.findOne("#"+e.id);return void 0===t?(ae.logger.warn("[isGroupVisible] Cannot find node with id: "+e.id),!1):t.isVisible()},this.toogleGroupVisibility=function(e){var t=h.findOne("#"+e.id);if(void 0===t)return ae.logger.warn("[toogleGroupVisibility] Cannot find node with id: "+e.id),!1;t.visible(!t.isVisible()),h.draw()},this.deleteDrawGroupId=function(t,e,n){var i=h.getChildren().getChildren(function(e){return e.id()===t});1===i.length?this.deleteDrawGroup(i[0],e,n):0===i.length?ae.logger.warn("Can't delete group with id:'"+t+"', cannot find it."):ae.logger.warn("Can't delete group with id:'"+t+"', too many with the same id.")},this.deleteDrawGroup=function(e,t,n){var i=e.getChildren(ae.draw.isNodeNameShape)[0],r=ae.tool.GetShapeDisplayName(i),o=new ae.tool.DeleteGroupCommand(e,r,h);o.onExecute=t,o.onUndo=t,o.execute(),n(o)},this.deleteDraws=function(e,t){for(var n=h.getChildren();n.length;)this.deleteDrawGroup(n[0],e,t)}},(ae=ae||{}).LoadController=function(o){var a=this,s=null,l=null;function u(e,t,n){var i="",i=void 0!==e[0].name?e[0].name:e[0];l=1===e.length&&"zip"!==i.split(".").pop().toLowerCase()&&!ae.utils.endsWith(i,"DICOMDIR")&&!ae.utils.endsWith(i,".dcmdir");var r="image";t.setDefaultCharacterSet(o),t.onloadstart=function(e){s=t,S(a.onloadstart,r)(e)},t.onprogress=S(a.onprogress,r),t.onloaditem=S(a.onloaditem,r),t.onload=S(a.onload,r),t.onloadend=function(e){s=null,S(a.onloadend,r)(e)},t.onerror=S(a.onerror,r),t.onabort=S(a.onabort,r),t.load(e,n)}function c(e,t,n){var i="state";t.onloadstart=S(a.onloadstart,i),t.onprogress=S(a.onprogress,i),t.onloaditem=S(a.onloaditem,i),t.onload=S(a.onload,i),t.onloadend=S(a.onloadend,i),t.onerror=S(a.onerror,i),t.onabort=S(a.onabort,i),t.load(e,n)}function S(t,n){return function(e){e.loadtype=n,t(e)}}this.loadFiles=function(e){var t,n,i,r;"json"===e[0].name.split(".").pop().toLowerCase()?(i=e[0],r=new ae.io.FilesLoader,c([i],r)):(t=e,n=new ae.io.FilesLoader,u(t,n))},this.loadURLs=function(e,t){var n,i,r,o,a,s;"json"===e[0].split(".").pop().toLowerCase()?(o=e[0],a=t,s=new ae.io.UrlsLoader,c([o],s,a)):(n=e,i=t,r=new ae.io.UrlsLoader,u(n,r,i))},this.loadImageObject=function(e){u(e,new ae.io.MemoryLoader,{})},this.abort=function(){s&&(s.abort(),s=null)},this.isMonoSliceData=function(){return l}},ae.LoadController.prototype.onloadstart=function(e){},ae.LoadController.prototype.onprogress=function(e){},ae.LoadController.prototype.onload=function(e){},ae.LoadController.prototype.onloadend=function(e){},ae.LoadController.prototype.onerror=function(e){},ae.LoadController.prototype.onabort=function(e){};T=T||{};(ae=ae||{}).State=function(){this.toJSON=function(e){return JSON.stringify({version:"0.3","window-center":e.getViewController().getWindowLevel().center,"window-width":e.getViewController().getWindowLevel().width,position:e.getViewController().getCurrentPosition(),scale:e.getScale(),scaleCenter:e.getScaleCenter(),translation:e.getTranslation(),drawings:e.getDrawController().getDrawLayer().toObject(),drawingsDetails:e.getDrawStoreDetails()})},this.fromJSON=function(e){var t,n,i,r=JSON.parse(e),o=null;if("0.1"===r.version)n=r,i=ae.v01Tov02DrawingsAndDetails(n.drawings),n.drawings=ae.v02Tov03Drawings(i.drawings).toObject(),n.drawingsDetails=i.drawingsDetails,o=n;else if("0.2"===r.version)(t=r).drawings=ae.v02Tov03Drawings(t.drawings).toObject(),t.drawingsDetails=ae.v02Tov03DrawingsDetails(t.drawingsDetails),o=t;else{if("0.3"!==r.version)throw new Error("Unknown state file format version: '"+r.version+"'.");o=r}return o},this.apply=function(e,t){e.getViewController().setWindowLevel(t["window-center"],t["window-width"]),e.getViewController().setCurrentPosition(t.position),e.zoom(t.scale,t.scaleCenter.x,t.scaleCenter.y),e.translate(t.translation.x,t.translation.y),e.setDrawings(t.drawings,t.drawingsDetails)}},ae.v02Tov03Drawings=function(e){for(var t,n,i,r=new T.Layer({listening:!1,visible:!0}),o="string"==typeof e?JSON.parse(e):e,a=0,s=o.length;a<s;++a)for(var l=0,u=o[a].length;l<u;++l)if(0!==(n=o[a][l]).length){i=new T.Group({id:ae.draw.getDrawPositionGroupId(a,l),name:"position-group",visible:!1});for(var c=0,S=n.length;c<S;++c)(t=T.Node.create(n[c])).draggable(!0),t.getChildren().forEach(function(e){e.draggable(!1)}),i.add(t);r.add(i)}return r},ae.v01Tov02DrawingsAndDetails=function(e){for(var t,n,i=[],r={},o=0,a=e.length;o<a;++o){i[o]=[];for(var s=0,l=e[o].length;s<l;++s){for(var u=[],c=0,S=(t=e[o][s]).length;c<S;++c){(n=T.Node.create(t[c])).visible(!0);var x,d,g={x:0,y:0},m=n.getChildren(function(e){return"shape"===e.name()})[0];m.stroke(ae.getColourHex(m.stroke())),"line-group"===n.name()&&(n.name("ruler-group"),x=new T.Line({points:[m.points()[0],m.points()[1],m.points()[0],m.points()[1]],name:"shape-tick0"}),n.add(x),d=new T.Line({points:[m.points()[2],m.points()[3],m.points()[2],m.points()[3]],name:"shape-tick1"}),n.add(d));var p=n.getChildren(function(e){return"arc"===e.name()});1===p.length&&p[0].name("shape-arc");var h=n.getChildren(function(e){return"text"===e.name()}),f=new T.Text({name:"text",text:""});1===h.length?(g.x=h[0].x(),g.y=h[0].y(),h[0].remove(),f=h[0]):0!==m.points().length&&(g={x:m.points()[0],y:m.points()[1]});var D=new T.Label({x:g.x,y:g.y,name:"label"});D.add(f),D.add(new T.Tag),n.add(D),u.push(JSON.stringify(n.toObject()));var y=f.text(),C=y.length,v=null;"ruler-group"===n.name()?(v={length:{value:parseFloat(y.substr(0,C-2)),unit:y.substr(-2,2)}},y="{length}"):"ellipse-group"===n.name()||"rectangle-group"===n.name()?(v={surface:{value:parseFloat(y.substr(0,C-3)),unit:y.substr(-3,3)}},y="{surface}"):"protractor-group"!==n.name()&&"rectangle-group"!==n.name()||(v={angle:{value:parseFloat(y.substr(0,C-1)),unit:y.substr(-1,1)}},y="{angle}"),r[n.id()]={textExpr:y,longText:"",quant:v}}i[o].push(u)}}return{drawings:i,drawingsDetails:r}},ae.v02Tov03DrawingsDetails=function(e){for(var t={},n="string"==typeof e?JSON.parse(e):e,i=0,r=n.length;i<r;++i)for(var o=0,a=n[i].length;o<a;++o)for(var s=0,l=n[i][o].length;s<l;++s){var u=n[i][o][s];t[u.id]={textExpr:u.textExpr,longText:u.longText,quant:u.quant}}return t},ae.getColourHex=function(e){var t={Yellow:"#ffff00",Red:"#ff0000",White:"#ffffff",Green:"#008000",Blue:"#0000ff",Lime:"#00ff00",Fuchsia:"#ff00ff",Black:"#000000"};return void 0!==t[e]?t[e]:"#ffff00"},(ae=ae||{}).ToolboxController=function(n){var o=null,a=null;function i(e){var t,n,i,r;a&&(t=!1,i=n=null,"touchstart"===e.type||"touchmove"===e.type?(n=ae.html.getEventOffset(e),e._xs=n[0].x,e._ys=n[0].y,i=o(n[0]),e._x=parseInt(i.x,10),e._y=parseInt(i.y,10),2===n.length&&(e._x1s=n[1].x,e._y1s=n[1].y,i=o(n[1]),e._x1=parseInt(i.x,10),e._y1=parseInt(i.y,10)),t=!0):"mousemove"===e.type||"mousedown"===e.type||"mouseup"===e.type||"mouseout"===e.type||"mousewheel"===e.type||"dblclick"===e.type||"DOMMouseScroll"===e.type?(n=ae.html.getEventOffset(e),e._xs=n[0].x,e._ys=n[0].y,i=o(n[0]),e._x=parseInt(i.x,10),e._y=parseInt(i.y,10),t=!0):"keydown"!==e.type&&"touchend"!==e.type||(t=!0),t&&("keydown"!==e.type&&e.preventDefault(),(r=a[e.type])&&r(e)))}this.init=function(e){for(var t in n)n[t].init();o=e.displayToIndex,this.addCanvasListeners(e.getCanvas()),N.addEventListener("keydown",i,!0)},this.getToolList=function(){return n},this.hasTool=function(e){return this.getToolList()[e]},this.getSelectedTool=function(){return a},this.getSelectedToolEventHandler=function(e){return this.getSelectedTool()[e]},this.setSelectedTool=function(e){if(!this.hasTool(e))throw new Error("Unknown tool: '"+e+"'");a&&a.activate(!1),(a=n[e]).activate(!0)},this.setSelectedShape=function(e){this.getSelectedTool().setShapeName(e)},this.setSelectedFilter=function(e){this.getSelectedTool().setSelectedFilter(e)},this.runSelectedFilter=function(){this.getSelectedTool().getSelectedFilter().run()},this.setLineColour=function(e){this.getSelectedTool().setLineColour(e)},this.setRange=function(e){this.getSelectedTool()&&this.getSelectedTool().getSelectedFilter()&&this.getSelectedTool().getSelectedFilter().run(e)},this.addCanvasListeners=function(e){e.setAttribute("style","pointer-events: auto;"),e.addEventListener("mousedown",i),e.addEventListener("mousemove",i),e.addEventListener("mouseup",i),e.addEventListener("mouseout",i),e.addEventListener("mousewheel",i),e.addEventListener("DOMMouseScroll",i),e.addEventListener("dblclick",i),e.addEventListener("touchstart",i),e.addEventListener("touchmove",i),e.addEventListener("touchend",i)},this.removeCanvasListeners=function(e){e.setAttribute("style","pointer-events: none;"),e.removeEventListener("mousedown",i),e.removeEventListener("mousemove",i),e.removeEventListener("mouseup",i),e.removeEventListener("mouseout",i),e.removeEventListener("mousewheel",i),e.removeEventListener("DOMMouseScroll",i),e.removeEventListener("dblclick",i),e.removeEventListener("touchstart",i),e.removeEventListener("touchmove",i),e.removeEventListener("touchend",i)}},(ae=ae||{}).ViewController=function(r){var o=this,a=null;this.getWindowLevelPresetsNames=function(){return r.getWindowPresetsNames()},this.addWindowLevelPresets=function(e){return r.addWindowPresets(e)},this.setWindowLevelPreset=function(e){r.setWindowLevelPreset(e)},this.setWindowLevelPresetById=function(e){r.setWindowLevelPresetById(e)},this.isPlaying=function(){return null!==a},this.getCurrentPosition=function(){return r.getCurrentPosition()},this.setCurrentPosition=function(e){return r.setCurrentPosition(e)},this.setCurrentPosition2D=function(e,t){return r.setCurrentPosition({i:e,j:t,k:r.getCurrentPosition().k})},this.setCurrentSlice=function(e){return r.setCurrentPosition({i:r.getCurrentPosition().i,j:r.getCurrentPosition().j,k:e})},this.incrementSliceNb=function(){return o.setCurrentSlice(r.getCurrentPosition().k+1)},this.decrementSliceNb=function(){return o.setCurrentSlice(r.getCurrentPosition().k-1)},this.getCurrentFrame=function(){return r.getCurrentFrame()},this.setCurrentFrame=function(e){return r.setCurrentFrame(e)},this.incrementFrameNb=function(){return r.setCurrentFrame(r.getCurrentFrame()+1)},this.decrementFrameNb=function(){return r.setCurrentFrame(r.getCurrentFrame()-1)},this.goFirstSlice=function(){return r.setCurrentPosition({i:r.getCurrentPosition().i,j:r.getCurrentPosition().j,k:0})},this.play=function(){var e,t,n,i;null===a?(e=r.getImage().getGeometry().getSize().getNumberOfSlices(),t=r.getImage().getNumberOfFrames(),n=r.getImage().getMeta().RecommendedDisplayFrameRate,i=r.getPlaybackMilliseconds(n),a=setInterval(function(){1!==e?o.incrementSliceNb()||o.setCurrentSlice(0):1!==t&&(o.incrementFrameNb()||o.setCurrentFrame(0))},i)):this.stop()},this.stop=function(){null!==a&&(clearInterval(a),a=null)},this.getWindowLevel=function(){return{width:r.getCurrentWindowLut().getWindowLevel().getWidth(),center:r.getCurrentWindowLut().getWindowLevel().getCenter()}},this.setWindowLevel=function(e,t){r.setWindowLevel(e,t)},this.getColourMap=function(){return r.getColourMap()},this.setColourMap=function(e){r.setColourMap(e)},this.setColourMapFromName=function(e){if(!ae.tool.colourMaps[e])throw new Error("Unknown colour map: '"+e+"'");this.setColourMap(ae.tool.colourMaps[e])}},(ae=ae||{}).dicom=ae.dicom||{},ae.dicom.DicomElementsWrapper=function(u){this.getDEFromKey=function(e){return u[e]},this.getFromKey=function(e,t){void 0===t&&(t=!1);var n=null,i=u[e];return void 0!==i&&(n=1===i.value.length&&!1===t?i.value[0]:i.value),n},this.dumpToObject=function(){for(var e,t=Object.keys(u),n=ae.dicom.dictionary,i={},r=null,o=null,a=0,s=t.length;a<s;++a){o={},r=null,void 0!==n[(e=u[t[a]]).tag.group]&&void 0!==n[e.tag.group][e.tag.element]&&(r=n[e.tag.group][e.tag.element]);var l="Unknown Tag & Data";null!==r&&(l=r[2]),o.value=this.getElementValueAsString(e),o.group=e.tag.group,o.element=e.tag.element,o.vr=e.vr,o.vl=e.vl,i[l]=o}return i},this.dump=function(){var e=Object.keys(u),t="\n";t+="# Dicom-File-Format\n",t+="\n",t+="# Dicom-Meta-Information-Header\n",t+="# Used TransferSyntax: ",ae.dicom.isNativeLittleEndian()?t+="Little Endian Explicit\n":t+="NOT Little Endian Explicit\n";for(var n=!0,i=0,r=e.length;i<r;++i){var o,a=u[e[i]];n&&"0x0002"!==a.tag.group&&(t+="\n",t+="# Dicom-Data-Set\n",t+="# Used TransferSyntax: ",o=ae.dicom.cleanString(u.x00020010.value[0]),t+=ae.dicom.getTransferSyntaxName(o),t+="\n",n=!1),t+=this.getElementAsString(a)+"\n"}return t}},ae.dicom.DicomElementsWrapper.prototype.getElementValueAsString=function(e,t){var n="";if(void 0===t&&(t=!0),null==e)return n;var i=Number.isInteger||function(e){return"number"==typeof e&&isFinite(e)&&Math.floor(e)===e};if("SQ"!==e.vr&&1===e.value.length&&""===e.value[0])n+="(no value available)";else if("0x7FE0"===e.tag.group&&"0x0010"===e.tag.element&&"u/l"===e.vl)n="(PixelSequence)";else if("DA"===e.vr&&t){var r=e.value[0],o=4,a=6;8!==r.length&&(o=5,a=8);n=new Date(parseInt(r.substr(0,4),10),parseInt(r.substr(o,2),10)-1,parseInt(r.substr(a,2),10)).toLocaleDateString()}else if("TM"===e.vr&&t){var s=e.value[0];n=s.substr(0,2)+":"+(4<=s.length?s.substr(2,2):"00")+":"+(6<=s.length?s.substr(4,2):"00")}else for(var l="O"===e.vr[0].toUpperCase(),u="FL"===e.vr||"FD"===e.vr||"DS"===e.vr,c="",S=0,x=e.value.length;S<x;++S){var d,g,m,c="";if(0!==S&&(c+="\\"),u?("string"==typeof(d=e.value[S])&&(d=ae.dicom.cleanString(d)),!i(g=Number(d))&&t?c+=g.toPrecision(4):c+=g.toString()):l?(m=e.value[S].toString(16),c+=m="OB"===e.vr?"00".substr(0,2-m.length)+m:"0000".substr(0,4-m.length)+m):"string"==typeof e.value[S]?c+=ae.dicom.cleanString(e.value[S]):c+=e.value[S],!(n.length+c.length<=65)){n+="...";break}n+=c}return n},ae.dicom.DicomElementsWrapper.prototype.getElementValueAsStringFromKey=function(e){return this.getElementValueAsString(this.getDEFromKey(e))},ae.dicom.DicomElementsWrapper.prototype.getElementAsString=function(e,t){t=t||"";var n=ae.dicom.dictionary,i=null;void 0!==n[e.tag.group]&&void 0!==n[e.tag.group][e.tag.element]&&(i=n[e.tag.group][e.tag.element]);var r=e.value.length,o="O"===e.vr[0].toUpperCase();"0xFFFE"!==e.tag.group||"0xE00D"!==e.tag.element&&"0xE0DD"!==e.tag.element?o&&(r=1):r=0;var a="0x7FE0"===e.tag.group&&"0x0010"===e.tag.element&&"u/l"===e.vl,s=null,s="(";s+=e.tag.group.substr(2,5).toLowerCase(),s+=",",s+=e.tag.element.substr(2,5).toLowerCase(),s+=") ",s+=e.vr,"SQ"!==e.vr&&1===e.value.length&&""===e.value[0]?(s+=" (no value available)",r=0):"na"===e.vr?(s+=" ",s+=e.value[0]):a?s+=" (PixelSequence #="+r+")":"SQ"===e.vr?(s+=" (Sequence with","u/l"===e.vl?s+=" undefined":s+=" explicit",s+=" length #=",s+=e.value.length,s+=")"):o||"pi"===e.vr||"UL"===e.vr||"US"===e.vr||"SL"===e.vr||"SS"===e.vr||"FL"===e.vr||"FD"===e.vr||"AT"===e.vr?(s+=" ",s+=this.getElementValueAsString(e,!1)):(s+=" [",s+=this.getElementValueAsString(e,!1),s+="]");var l=55-s.length;if(0<l)for(var u=0;u<l;++u)s+=" ";s+=" # ",e.vl<100&&(s+=" "),e.vl<10&&(s+=" "),s+=e.vl,s+=", ",s+=r,s+=" ",s+=null!==i?i[2]:"Unknown Tag & Data";var c=null;if("SQ"===e.vr){for(var S,x=0,d=e.value.length;x<d;++x){S=e.value[x];var g=Object.keys(S);if(0!==g.length){var m=S.xFFFEE000,c="(Item with";"u/l"===m.vl?c+=" undefined":c+=" explicit",c+=" length #="+(g.length-1)+")",m.value=[c],m.vr="na",s+="\n",s+=this.getElementAsString(m,t+" ");for(var p=0,h=g.length;p<h;++p)"xFFFEE000"!==g[p]&&(s+="\n",s+=this.getElementAsString(S[g[p]],t+" "));c="(ItemDelimitationItem","u/l"!==m.vl&&(c+=" for re-encoding");var f={tag:{group:"0xFFFE",element:"0xE00D"},vr:"na",vl:"0",value:[c+=")"]};s+="\n",s+=this.getElementAsString(f,t+" ")}}c="(SequenceDelimitationItem","u/l"!==e.vl&&(c+=" for re-encod.");var D={tag:{group:"0xFFFE",element:"0xE0DD"},vr:"na",vl:"0",value:[c+=")"]};s+="\n",s+=this.getElementAsString(D,t)}else if(a){for(var y=null,C=0,v=e.value.length;C<v;++C)s+="\n",(y=e.value[C]).vr="pi",s+=this.getElementAsString(y,t+" ");s+="\n",s+=this.getElementAsString({tag:{group:"0xFFFE",element:"0xE0DD"},vr:"na",vl:"0",value:["(SequenceDelimitationItem)"]},t)}return t+s},ae.dicom.DicomElementsWrapper.prototype.getFromGroupElement=function(e,t){return this.getFromKey(ae.dicom.getGroupElementKey(e,t))},ae.dicom.DicomElementsWrapper.prototype.getFromName=function(e){var t=null,n=ae.dicom.getGroupElementFromName(e);return null!==n.group&&null!==n.element&&(t=this.getFromKey(ae.dicom.getGroupElementKey(n.group,n.element))),t},ae.dicom.getFileListFromDicomDir=function(e){var t=new ae.dicom.DicomParser;t.parse(e);var n=t.getRawDicomElements();if(void 0!==n.x00041220&&void 0!==n.x00041220.value){var i=n.x00041220.value;if(0!==i.length){for(var r=[],o=null,a=null,s=0;s<i.length;++s)if(void 0!==i[s].x00041430&&void 0!==i[s].x00041430.value){var l=ae.dicom.cleanString(i[s].x00041430.value[0]);if("STUDY"===l)a=[],r.push(a);else if("SERIES"===l)o=[],a.push(o);else if("IMAGE"===l){if(void 0===i[s].x00041500||void 0===i[s].x00041500.value)continue;for(var u=i[s].x00041500.value,c="",S=0;S<u.length;++S)0!==S&&(c+="/"),c+=ae.dicom.cleanString(u[S]);o.push(c)}}return r}ae.logger.warn("The Directory Record Sequence of the DICOMDIR is empty.")}else ae.logger.warn("No Directory Record Sequence found in DICOMDIR.")},(ae=ae||{}).dicom=ae.dicom||{},ae.getVersion=function(){return"0.28.1"},ae.dicom.cleanString=function(e){var t=e;return e&&(t=e.trim())[t.length-1]===String.fromCharCode("u200B")&&(t=t.substring(0,t.length-1)),t},ae.dicom.isPrivateGroup=function(e){return parseInt(e.substr(2,6),10)%2==1},ae.dicom.isNativeLittleEndian=function(){return 0<new Int8Array(new Int16Array([1]).buffer)[0]},ae.dicom.getUtfLabel=function(e){var t="utf-8";return"ISO_IR 100"===e?t="iso-8859-1":"ISO_IR 101"===e?t="iso-8859-2":"ISO_IR 109"===e?t="iso-8859-3":"ISO_IR 110"===e?t="iso-8859-4":"ISO_IR 144"===e?t="iso-8859-5":"ISO_IR 127"===e?t="iso-8859-6":"ISO_IR 126"===e?t="iso-8859-7":"ISO_IR 138"===e?t="iso-8859-8":"ISO_IR 148"===e?t="iso-8859-9":"ISO_IR 13"===e?t="shift-jis":"ISO_IR 166"===e?t="iso-8859-11":"ISO 2022 IR 87"===e?t="iso-2022-jp":"ISO 2022 IR 149"===e||"ISO 2022 IR 58"===e||("ISO_IR 192"===e?t="utf-8":"GB18030"===e?t="gb18030":"GB2312"===e?t="gb2312":"GBK"===e&&(t="chinese")),t},ae.dicom.DataReader=function(o,a){void 0===a&&(a=!0);var i={decode:function(e){for(var t="",n=0,i=e.length;n<i;++n)t+=String.fromCharCode(e[n]);return t}},r=i;void 0!==N.TextDecoder&&(r=new TextDecoder("iso-8859-1")),this.setUtfLabel=function(e){void 0!==N.TextDecoder&&(r=new TextDecoder(e))};var e=ae.dicom.isNativeLittleEndian(),s=a!==e,l=new DataView(o);this.flipArrayEndianness=function(e){for(var t,n=e.byteLength,i=new Uint8Array(e.buffer,e.byteOffset,n),r=e.BYTES_PER_ELEMENT,o=0;o<n;o+=r)for(var a=o+r-1,s=o;s<a;a--,s++)t=i[s],i[s]=i[a],i[a]=t},this.readUint16=function(e){return l.getUint16(e,a)},this.readUint32=function(e){return l.getUint32(e,a)},this.readInt32=function(e){return l.getInt32(e,a)},this.readUint8Array=function(e,t){return new Uint8Array(o,e,t)},this.readInt8Array=function(e,t){return new Int8Array(o,e,t)},this.readUint16Array=function(e,t){var n=t/Uint16Array.BYTES_PER_ELEMENT,i=null;if(e%Uint16Array.BYTES_PER_ELEMENT==0)i=new Uint16Array(o,e,n),s&&this.flipArrayEndianness(i);else{i=new Uint16Array(n);for(var r=0;r<n;++r)i[r]=l.getUint16(e+Uint16Array.BYTES_PER_ELEMENT*r,a)}return i},this.readInt16Array=function(e,t){var n=t/Int16Array.BYTES_PER_ELEMENT,i=null;if(e%Int16Array.BYTES_PER_ELEMENT==0)i=new Int16Array(o,e,n),s&&this.flipArrayEndianness(i);else{i=new Int16Array(n);for(var r=0;r<n;++r)i[r]=l.getInt16(e+Int16Array.BYTES_PER_ELEMENT*r,a)}return i},this.readUint32Array=function(e,t){var n=t/Uint32Array.BYTES_PER_ELEMENT,i=null;if(e%Uint32Array.BYTES_PER_ELEMENT==0)i=new Uint32Array(o,e,n),s&&this.flipArrayEndianness(i);else{i=new Uint32Array(n);for(var r=0;r<n;++r)i[r]=l.getUint32(e+Uint32Array.BYTES_PER_ELEMENT*r,a)}return i},this.readInt32Array=function(e,t){var n=t/Int32Array.BYTES_PER_ELEMENT,i=null;if(e%Int32Array.BYTES_PER_ELEMENT==0)i=new Int32Array(o,e,n),s&&this.flipArrayEndianness(i);else{i=new Int32Array(n);for(var r=0;r<n;++r)i[r]=l.getInt32(e+Int32Array.BYTES_PER_ELEMENT*r,a)}return i},this.readFloat32Array=function(e,t){var n=t/Float32Array.BYTES_PER_ELEMENT,i=null;if(e%Float32Array.BYTES_PER_ELEMENT==0)i=new Float32Array(o,e,n),s&&this.flipArrayEndianness(i);else{i=new Float32Array(n);for(var r=0;r<n;++r)i[r]=l.getFloat32(e+Float32Array.BYTES_PER_ELEMENT*r,a)}return i},this.readFloat64Array=function(e,t){var n=t/Float64Array.BYTES_PER_ELEMENT,i=null;if(e%Float64Array.BYTES_PER_ELEMENT==0)i=new Float64Array(o,e,n),s&&this.flipArrayEndianness(i);else{i=new Float64Array(n);for(var r=0;r<n;++r)i[r]=l.getFloat64(e+Float64Array.BYTES_PER_ELEMENT*r,a)}return i},this.readHex=function(e){var t=this.readUint16(e).toString(16);return"0x0000".substr(0,6-t.length)+t.toUpperCase()},this.readString=function(e,t){var n=this.readUint8Array(e,t);return i.decode(n)},this.readSpecialString=function(e,t){var n=this.readUint8Array(e,t);return r.decode(n)}},ae.dicom.getGroupElementFromName=function(e){var t,n=null,i=null,r=ae.dicom.dictionary,o=Object.keys(r);e:for(var a=0,s=o.length;a<s;++a){n=o[a];for(var l=0,u=(t=Object.keys(r[n])).length;l<u;++l)if(i=t[l],r[n][i][2]===e)break e}return{group:n,element:i}},ae.dicom.Tag=function(e,t){this.getGroup=function(){return e},this.getElement=function(){return t}},ae.dicom.Tag.prototype.equals=function(e){return null!==e&&this.getGroup()===e.getGroup()&&this.getElement()===e.getElement()},ae.dicom.Tag.prototype.equals2=function(e){return null!==e&&void 0!==e.group&&void 0!==e.element&&this.equals(new ae.dicom.Tag(e.group,e.element))},ae.dicom.getFileMetaInformationGroupLengthTag=function(){return new ae.dicom.Tag("0x0002","0x0000")},ae.dicom.getItemTag=function(){return new ae.dicom.Tag("0xFFFE","0xE000")},ae.dicom.getItemDelimitationItemTag=function(){return new ae.dicom.Tag("0xFFFE","0xE00D")},ae.dicom.getSequenceDelimitationItemTag=function(){return new ae.dicom.Tag("0xFFFE","0xE0DD")},ae.dicom.getPixelDataTag=function(){return new ae.dicom.Tag("0x7FE0","0x0010")},ae.dicom.getGroupElementKey=function(e,t){return"x"+e.substr(2,6)+t.substr(2,6)},ae.dicom.splitGroupElementKey=function(e){return{group:e.substr(1,4),element:e.substr(5,8)}},ae.dicom.getReverseOrientation=function(e){if(!e)return null;for(var t={L:"R",R:"L",A:"P",P:"A",H:"F",F:"H"},n="",i=0;i<e.length;i++){var r=t[e.substr(i,1)];r&&(n+=r)}return n},ae.dicom.isImplicitTransferSyntax=function(e){return"1.2.840.10008.1.2"===e},ae.dicom.isBigEndianTransferSyntax=function(e){return"1.2.840.10008.1.2.2"===e},ae.dicom.isJpegBaselineTransferSyntax=function(e){return"1.2.840.10008.1.2.4.50"===e||"1.2.840.10008.1.2.4.51"===e},ae.dicom.isJpegRetiredTransferSyntax=function(e){return null!==e.match(/1.2.840.10008.1.2.4.5/)&&!ae.dicom.isJpegBaselineTransferSyntax()&&!ae.dicom.isJpegLosslessTransferSyntax()||null!==e.match(/1.2.840.10008.1.2.4.6/)},ae.dicom.isJpegLosslessTransferSyntax=function(e){return"1.2.840.10008.1.2.4.57"===e||"1.2.840.10008.1.2.4.70"===e},ae.dicom.isJpeglsTransferSyntax=function(e){return null!==e.match(/1.2.840.10008.1.2.4.8/)},ae.dicom.isJpeg2000TransferSyntax=function(e){return null!==e.match(/1.2.840.10008.1.2.4.9/)},ae.dicom.isRleTransferSyntax=function(e){return null!==e.match(/1.2.840.10008.1.2.5/)},ae.dicom.getSyntaxDecompressionName=function(e){var t=null;return ae.dicom.isJpeg2000TransferSyntax(e)?t="jpeg2000":ae.dicom.isJpegBaselineTransferSyntax(e)?t="jpeg-baseline":ae.dicom.isJpegLosslessTransferSyntax(e)?t="jpeg-lossless":ae.dicom.isRleTransferSyntax(e)&&(t="rle"),t},ae.dicom.isReadSupportedTransferSyntax=function(e){return"1.2.840.10008.1.2"===e||"1.2.840.10008.1.2.1"===e||"1.2.840.10008.1.2.2"===e||ae.dicom.isJpegBaselineTransferSyntax(e)||ae.dicom.isJpegLosslessTransferSyntax(e)||ae.dicom.isJpeg2000TransferSyntax(e)||ae.dicom.isRleTransferSyntax(e)},ae.dicom.getTransferSyntaxName=function(e){var t="Unknown";return"1.2.840.10008.1.2"===e?t="Little Endian Implicit":"1.2.840.10008.1.2.1"===e?t="Little Endian Explicit":"1.2.840.10008.1.2.1.99"===e?t="Little Endian Deflated Explicit":"1.2.840.10008.1.2.2"===e?t="Big Endian Explicit":ae.dicom.isJpegBaselineTransferSyntax(e)?t="1.2.840.10008.1.2.4.50"===e?"JPEG Baseline":"JPEG Extended, Process 2+4":ae.dicom.isJpegLosslessTransferSyntax(e)?t="1.2.840.10008.1.2.4.57"===e?"JPEG Lossless, Nonhierarchical (Processes 14)":"JPEG Lossless, Non-hierarchical, 1st Order Prediction":ae.dicom.isJpegRetiredTransferSyntax(e)?t="Retired JPEG":ae.dicom.isJpeglsTransferSyntax(e)?t="JPEG-LS":ae.dicom.isJpeg2000TransferSyntax(e)?t="1.2.840.10008.1.2.4.91"===e?"JPEG 2000 (Lossless or Lossy)":"JPEG 2000 (Lossless only)":"1.2.840.10008.1.2.4.100"===e?t="MPEG2":ae.dicom.isRleTransferSyntax(e)&&(t="RLE"),t},ae.dicom.getTypedArray=function(e,t,n){var i=null;return 8===e?i=new(0===t?Uint8Array:Int8Array)(n):16===e?i=new(0===t?Uint16Array:Int16Array)(n):32===e&&(i=new(0===t?Uint32Array:Int32Array)(n)),i},ae.dicom.is32bitVLVR=function(e){return"OB"===e||"OW"===e||"OF"===e||"ox"===e||"UT"===e||"SQ"===e||"UN"===e},ae.dicom.isTagWithVR=function(e,t){return!("0xFFFE"===e&&("0xE000"===t||"0xE00D"===t||"0xE0DD"===t))},ae.dicom.getDataElementPrefixByteSize=function(e,t){return!t&&ae.dicom.is32bitVLVR(e)?12:8},ae.dicom.DicomParser=function(){var t;void 0===ae.logger&&(ae.logger=ae.utils.logger.console),this.dicomElements={},this.getDefaultCharacterSet=function(){return t},this.setDefaultCharacterSet=function(e){t=e}},ae.dicom.DicomParser.prototype.getRawDicomElements=function(){return this.dicomElements},ae.dicom.DicomParser.prototype.getDicomElements=function(){return new ae.dicom.DicomElementsWrapper(this.dicomElements)},ae.dicom.DicomParser.prototype.readTag=function(e,t){var n=e.readHex(t);t+=Uint16Array.BYTES_PER_ELEMENT;var i=e.readHex(t);return t+=Uint16Array.BYTES_PER_ELEMENT,{group:n,element:i,name:ae.dicom.getGroupElementKey(n,i),endOffset:t}},ae.dicom.DicomParser.prototype.readItemDataElement=function(e,t,n){var i={},r=this.readDataElement(e,t,n);t=r.endOffset;var o="xFFFEE0DD"===r.tag.name;if(o)return{data:i,endOffset:r.endOffset,isSeqDelim:o};if("u/l"!==(i[r.tag.name]=r).vl){if(0!==r.vl){var a=t;for(t-=r.vl;t<a;)t=(r=this.readDataElement(e,t,n)).endOffset,i[r.tag.name]=r}}else for(var s=!1;!s;)t=(r=this.readDataElement(e,t,n)).endOffset,(s="xFFFEE00D"===r.tag.name)||(i[r.tag.name]=r);return{data:i,endOffset:t,isSeqDelim:!1}},ae.dicom.DicomParser.prototype.readPixelItemDataElement=function(e,t,n){var i=[],r=this.readDataElement(e,t,n),o=r.vl;t=r.endOffset;for(var a=!1;!a;)t=(r=this.readDataElement(e,t,n)).endOffset,(a="xFFFEE0DD"===r.tag.name)||i.push(r.value);return{data:i,endOffset:t,offsetTableVl:o}},ae.dicom.DicomParser.prototype.readDataElement=function(e,t,n){var i=this.readTag(e,t);t=i.endOffset;var r,o=null,a=!1;ae.dicom.isTagWithVR(i.group,i.element)?n?(o="UN",void 0!==(r=ae.dicom.dictionary)[i.group]&&void 0!==r[i.group][i.element]&&(o=ae.dicom.dictionary[i.group][i.element][0]),a=!0):(o=e.readString(t,2),t+=2*Uint8Array.BYTES_PER_ELEMENT,(a=ae.dicom.is32bitVLVR(o))&&(t+=2*Uint8Array.BYTES_PER_ELEMENT)):(o="UN",a=!0);var s=0;a?(s=e.readUint32(t),t+=Uint32Array.BYTES_PER_ELEMENT):(s=e.readUint16(t),t+=Uint16Array.BYTES_PER_ELEMENT);var l=s;4294967295===s&&(l="u/l",s=0),ae.dicom.isPrivateGroup(i.group)&&"UN"===o&&0===s&&(o="SQ");var u=t,c=null,S="x7FE00010"===i.name;if(S&&"u/l"===l){var x=this.readPixelItemDataElement(e,t,n);t=x.endOffset,u+=x.offsetTableVl,c=x.data}else if(!S||"OB"!==o&&"OW"!==o&&"OF"!==o&&"ox"!==o)if("OB"===o)c=e.readUint8Array(t,s),t+=s;else if("OW"===o)c=e.readUint16Array(t,s),t+=s;else if("OF"===o)c=e.readUint32Array(t,s),t+=s;else if("OD"===o)c=e.readUint64Array(t,s),t+=s;else if("US"===o)c=e.readUint16Array(t,s),t+=s;else if("UL"===o)c=e.readUint32Array(t,s),t+=s;else if("SS"===o)c=e.readInt16Array(t,s),t+=s;else if("SL"===o)c=e.readInt32Array(t,s),t+=s;else if("FL"===o)c=e.readFloat32Array(t,s),t+=s;else if("FD"===o)c=e.readFloat64Array(t,s),t+=s;else if("xs"===o){var d=0;void 0!==this.dicomElements.x00280103?d=this.dicomElements.x00280103.value[0]:ae.logger.warn("Reading DICOM pixel data with default pixelRepresentation."),c=0===d?e.readUint16Array(t,s):e.readInt16Array(t,s),t+=s}else if("AT"===o){var g=e.readUint16Array(t,s);t+=s,c=[];for(var m=0,p=g.length;m<p;m+=2){var h=g[m].toString(16),f=g[m+1].toString(16),D="(";D+="0000".substr(0,4-h.length)+h.toUpperCase(),D+=",",D+="0000".substr(0,4-f.length)+f.toUpperCase(),D+=")",c.push(D)}}else if("UN"===o)c=e.readUint8Array(t,s),t+=s;else if("SQ"===o){var y,c=[];if("u/l"!==l){if(0!==s)for(var C=t+s;t<C;)y=this.readItemDataElement(e,t,n),c.push(y.data),t=y.endOffset}else for(var v=!1;!v;)v=(y=this.readItemDataElement(e,t,n)).isSeqDelim,t=y.endOffset,v||c.push(y.data)}else c="SH"===o||"LO"===o||"ST"===o||"PN"===o||"LT"===o||"UT"===o?e.readSpecialString(t,s):e.readString(t,s),t+=s,c=c.split("\\");else{var T=16;void 0!==this.dicomElements.x00280100?T=this.dicomElements.x00280100.value[0]:ae.logger.warn("Reading DICOM pixel data with default bitsAllocated."),8===T&&"OW"===o&&ae.logger.warn("Reading DICOM pixel data with vr=OW and bitsAllocated=8 (should be 16)."),16===T&&"OB"===o&&ae.logger.warn("Reading DICOM pixel data with vr=OB and bitsAllocated=16 (should be 8).");var L=0;void 0!==this.dicomElements.x00280103?L=this.dicomElements.x00280103.value[0]:ae.logger.warn("Reading DICOM pixel data with default pixelRepresentation."),8===T?c=0===L?e.readUint8Array(t,s):e.readInt8Array(t,s):16===T?c=0===L?e.readUint16Array(t,s):e.readInt16Array(t,s):32===T?c=0===L?e.readUint32Array(t,s):e.readInt32Array(t,s):64===T&&(c=0===L?e.readUint64Array(t,s):e.readInt64Array(t,s)),t+=s}return{tag:i,vr:o,vl:l,value:c,startOffset:u,endOffset:t}},ae.dicom.DicomParser.prototype.parse=function(e){var t,n=0,i=!1,r="",o=null,a=new ae.dicom.DataReader(e),s=new ae.dicom.DataReader(e),n=128,l=a.readString(n,4);if(n+=4*Uint8Array.BYTES_PER_ELEMENT,"DICM"===l){n=(o=this.readDataElement(a,n,!1)).endOffset,this.dicomElements[o.tag.name]=o;for(var u=n+parseInt(o.value[0],10);n<u;)n=(o=this.readDataElement(a,n,!1)).endOffset,this.dicomElements[o.tag.name]=o}else{if("0x0800"!==(o=this.readDataElement(s,0,i)).tag.group&&"0x0008"!==o.tag.group)throw new Error("Not a valid DICOM file (no magic DICM word foundand first element not in 0x0008 group)");var c=o.vr.charCodeAt(0),S=o.vr.charCodeAt(1),i=!(65<=c&&c<=90&&65<=S&&S<=90);if("0x0008"===o.tag.group)r=i?"1.2.840.10008.1.2":"1.2.840.10008.1.2.1";else{if(i)throw new Error("Not a valid DICOM file (no magic DICM word foundand implicit VR big endian detected)");r="1.2.840.10008.1.2.2"}o.tag.group="0x0002",o.tag.element="0x0010",o.tag.name="x00020010",o.tag.endOffset=4,o.vr="UI",o.value=[r+" "],o.vl=o.value[0].length,o.endOffset=o.startOffset+o.vl,this.dicomElements[o.tag.name]=o,n=0}if(void 0===this.dicomElements.x00020010)throw new Error("Not a valid DICOM file (no TransferSyntaxUID found)");if(r=ae.dicom.cleanString(this.dicomElements.x00020010.value[0]),!ae.dicom.isReadSupportedTransferSyntax(r))throw new Error("Unsupported DICOM transfer syntax: '"+r+"' ("+ae.dicom.getTransferSyntaxName(r)+")");for(ae.dicom.isImplicitTransferSyntax(r)&&(i=!0),ae.dicom.isBigEndianTransferSyntax(r)&&(s=new ae.dicom.DataReader(e,!1)),void 0!==this.getDefaultCharacterSet()&&s.setUtfLabel(this.getDefaultCharacterSet());n<e.byteLength;){"x00080005"===(o=this.readDataElement(s,n,i)).tag.name&&(1===o.value.length?t=ae.dicom.cleanString(o.value[0]):(t=ae.dicom.cleanString(o.value[1]),ae.logger.warn("Unsupported character set with code extensions: '"+t+"'.")),s.setUtfLabel(ae.dicom.getUtfLabel(t))),n=o.endOffset,void 0===this.dicomElements[o.tag.name]?this.dicomElements[o.tag.name]=o:ae.logger.warn("Not saving duplicate tag: "+o.tag.name)}if(e.byteLength!==n&&ae.logger.warn("Did not reach the end of the buffer: "+n+" != "+e.byteLength),void 0!==this.dicomElements.x7FE00010){var x=1;if(void 0!==this.dicomElements.x00280008&&(x=ae.dicom.cleanString(this.dicomElements.x00280008.value[0])),"u/l"!==this.dicomElements.x7FE00010.vl){(ae.dicom.isJpeg2000TransferSyntax(r)||ae.dicom.isJpegBaselineTransferSyntax(r)||ae.dicom.isJpegLosslessTransferSyntax(r))&&ae.logger.warn("Compressed but no items...");var d=this.dicomElements.x7FE00010.value;if(d&&void 0!==d&&0!==d.length){if(void 0===this.dicomElements.x00280010)throw new Error("Missing image number of rows.");if(void 0===this.dicomElements.x00280011)throw new Error("Missing image number of columns.");if(void 0===this.dicomElements.x00280002)throw new Error("Missing image samples per pixel.");for(var g=this.dicomElements.x00280011.value[0]*this.dicomElements.x00280010.value[0]*this.dicomElements.x00280002.value[0],m=[],p=0,h=0;h<x;++h)m[h]=d.slice(p,p+g),p+=g;this.dicomElements.x7FE00010.value=m}else ae.logger.info("Empty pixel data.")}else{var f=this.dicomElements.x7FE00010.value;if(1<f.length&&f.length>x){for(var D,y=f.length/x,C=[],v=0;v<x;++v){D=v*y;for(var T=0,L=0;L<y;++L)T+=f[D+L].length;for(var I=new f[0].constructor(T),P=0,F=0;F<y;++F)I.set(f[D+F],P),P+=f[D+F].length;C[v]=I}this.dicomElements.x7FE00010.value=C}}}},(ae=ae||{}).dicom=ae.dicom||{},ae.dicom.getDwvUIDPrefix=function(){return"1.2.826.0.1.3680043.9.7278.1."},ae.dicom.getUID=function(e){var t=ae.dicom.getDwvUIDPrefix();if("ImplementationClassUID"===e)t+=ae.getVersion();else{if("SOPInstanceUID"!==e)throw new Error("Don't know how to generate a UID for the tag "+e);for(var n=0;n<e.length;++n)t+=e.charCodeAt(n);t+="."+(new Date).toISOString().replace(/\D/g,"")}return t},ae.dicom.isEven=function(e){return e%2==0},ae.dicom.isNonStringVr=function(e){return"UN"===e||"OB"===e||"OW"===e||"OF"===e||"OD"===e||"US"===e||"SS"===e||"UL"===e||"SL"===e||"FL"===e||"FD"===e||"SQ"===e||"AT"===e},ae.dicom.isStringVr=function(e){return!ae.dicom.isNonStringVr(e)},ae.dicom.isVrToPad=function(e){return ae.dicom.isStringVr(e)||"OB"===e},ae.dicom.getVrPad=function(e){var t=0;return ae.dicom.isStringVr(e)&&(t="UI"===e?"\0":" "),t},ae.dicom.padElementValue=function(e,t){return void 0!==t&&void 0!==t.length&&ae.dicom.isVrToPad(e.vr)&&!ae.dicom.isEven(t.length)&&(t instanceof Array?t[t.length-1]+=ae.dicom.getVrPad(e.vr):t+=ae.dicom.getVrPad(e.vr)),t},ae.dicom.DataWriter=function(e,i){void 0===i&&(i=!0);var r=new DataView(e);this.useUnVrForPrivateSq=!1,this.writeUint8=function(e,t){return r.setUint8(e,t),e+Uint8Array.BYTES_PER_ELEMENT},this.writeInt8=function(e,t){return r.setInt8(e,t),e+Int8Array.BYTES_PER_ELEMENT},this.writeUint16=function(e,t){return r.setUint16(e,t,i),e+Uint16Array.BYTES_PER_ELEMENT},this.writeInt16=function(e,t){return r.setInt16(e,t,i),e+Int16Array.BYTES_PER_ELEMENT},this.writeUint32=function(e,t){return r.setUint32(e,t,i),e+Uint32Array.BYTES_PER_ELEMENT},this.writeInt32=function(e,t){return r.setInt32(e,t,i),e+Int32Array.BYTES_PER_ELEMENT},this.writeFloat32=function(e,t){return r.setFloat32(e,t,i),e+Float32Array.BYTES_PER_ELEMENT},this.writeFloat64=function(e,t){return r.setFloat64(e,t,i),e+Float64Array.BYTES_PER_ELEMENT},this.writeHex=function(e,t){var n=parseInt(t.substr(2),16);return r.setUint16(e,n,i),e+Uint16Array.BYTES_PER_ELEMENT},this.writeString=function(e,t){for(var n=0,i=t.length;n<i;++n)r.setUint8(e,t.charCodeAt(n)),e+=Uint8Array.BYTES_PER_ELEMENT;return e}},ae.dicom.DataWriter.prototype.writeUint8Array=function(e,t){for(var n=0,i=t.length;n<i;++n)e=this.writeUint8(e,t[n]);return e},ae.dicom.DataWriter.prototype.writeInt8Array=function(e,t){for(var n=0,i=t.length;n<i;++n)e=this.writeInt8(e,t[n]);return e},ae.dicom.DataWriter.prototype.writeUint16Array=function(e,t){for(var n=0,i=t.length;n<i;++n)e=this.writeUint16(e,t[n]);return e},ae.dicom.DataWriter.prototype.writeInt16Array=function(e,t){for(var n=0,i=t.length;n<i;++n)e=this.writeInt16(e,t[n]);return e},ae.dicom.DataWriter.prototype.writeUint32Array=function(e,t){for(var n=0,i=t.length;n<i;++n)e=this.writeUint32(e,t[n]);return e},ae.dicom.DataWriter.prototype.writeInt32Array=function(e,t){for(var n=0,i=t.length;n<i;++n)e=this.writeInt32(e,t[n]);return e},ae.dicom.DataWriter.prototype.writeFloat32Array=function(e,t){for(var n=0,i=t.length;n<i;++n)e=this.writeFloat32(e,t[n]);return e},ae.dicom.DataWriter.prototype.writeFloat64Array=function(e,t){for(var n=0,i=t.length;n<i;++n)e=this.writeFloat64(e,t[n]);return e},ae.dicom.DataWriter.prototype.writeStringArray=function(e,t){for(var n=0,i=t.length;n<i;++n)0!==n&&(e=this.writeString(e,"\\")),e=this.writeString(e,t[n].toString());return e},ae.dicom.DataWriter.prototype.writeDataElementItems=function(e,t,n){for(var i,r=0;r<t.length;++r){i=t[r];var o=Object.keys(i);if(0!==o.length){var a="u/l"===i.xFFFEE000.vl,s={tag:i.xFFFEE000.tag,vr:i.xFFFEE000.vr,vl:a?4294967295:i.xFFFEE000.vl,value:[]};e=this.writeDataElement(s,e,n);for(var l=0;l<o.length;++l)"xFFFEE000"!==o[l]&&"xFFFEE00D"!==o[l]&&(e=this.writeDataElement(i[o[l]],e,n));a&&(e=this.writeDataElement({tag:{group:"0xFFFE",element:"0xE00D",name:"ItemDelimitationItem"},vr:"NONE",vl:0,value:[]},e,n))}}return e},ae.dicom.DataWriter.prototype.writeDataElementValue=function(e,t,n,i){if(n instanceof Uint8Array)t=this.writeUint8Array(t,n);else if(n instanceof Int8Array)t=this.writeInt8Array(t,n);else if(n instanceof Uint16Array)t=this.writeUint16Array(t,n);else if(n instanceof Int16Array)t=this.writeInt16Array(t,n);else if(n instanceof Uint32Array)t=this.writeUint32Array(t,n);else if(n instanceof Int32Array)t=this.writeInt32Array(t,n);else if("UN"===e)t=this.writeUint8Array(t,n);else if("OB"===e)t=this.writeInt8Array(t,n);else if("OW"===e)t=this.writeInt16Array(t,n);else if("OF"===e)t=this.writeInt32Array(t,n);else if("OD"===e)t=this.writeInt64Array(t,n);else if("US"===e)t=this.writeUint16Array(t,n);else if("SS"===e)t=this.writeInt16Array(t,n);else if("UL"===e)t=this.writeUint32Array(t,n);else if("SL"===e)t=this.writeInt32Array(t,n);else if("FL"===e)t=this.writeFloat32Array(t,n);else if("FD"===e)t=this.writeFloat64Array(t,n);else if("SQ"===e)t=this.writeDataElementItems(t,n,i);else if("AT"===e)for(var r=0;r<n.length;++r){var o=n[r]+"",a=o.substring(1,5),s=o.substring(6,10),l=parseInt(a,16),u=parseInt(s,16),c=new Uint16Array([l,u]);t=this.writeUint16Array(t,c)}else t=this.writeStringArray(t,n);return t},ae.dicom.DataWriter.prototype.writePixelDataElementValue=function(e,t,n,i,r){if("u/l"!==t){var o=i[0];1<i.length&&(o=ae.dicom.flattenArrayOfTypedArrays(i)),n=this.writeDataElementValue(e,n,o,r)}else{for(var a={xFFFEE000:{tag:{group:"0xFFFE",element:"0xE000",name:"xFFFEE000"},vr:"UN",vl:0,value:[]}},s=0;s<i.length;++s)a[s]={tag:{group:"0xFFFE",element:"0xE000",name:"xFFFEE000"},vr:e,vl:i[s].length,value:i[s]};n=this.writeDataElementItems(n,[a],r)}return n},ae.dicom.DataWriter.prototype.writeDataElement=function(e,t,n){var i=ae.dicom.isTagWithVR(e.tag.group,e.tag.element),r=!(!n&&i)||ae.dicom.is32bitVLVR(e.vr);t=this.writeHex(t,e.tag.group),t=this.writeHex(t,e.tag.element);var o=e.vr;this.useUnVrForPrivateSq&&ae.dicom.isPrivateGroup(e.tag.group)&&"SQ"===o&&(ae.logger.warn("Write element using VR=UN for private sequence."),o="UN"),i&&!n&&(t=this.writeString(t,o),r&&(t+=2));var a=e.vl;(ae.dicom.isImplicitLengthSequence(e)||ae.dicom.isImplicitLengthItem(e)||ae.dicom.isImplicitLengthPixels(e))&&(a=4294967295),t=r?this.writeUint32(t,a):this.writeUint16(t,a);var s=e.value;return void 0===s&&(s=[]),t="x7FE00010"===e.tag.name?this.writePixelDataElementValue(e.vr,e.vl,t,s,n):this.writeDataElementValue(e.vr,t,s,n),(ae.dicom.isImplicitLengthSequence(e)||ae.dicom.isImplicitLengthPixels(e))&&(t=this.writeDataElement({tag:{group:"0xFFFE",element:"0xE0DD",name:"SequenceDelimitationItem"},vr:"NONE",vl:0,value:[]},t,n)),t},ae.dicom.isImplicitLengthSequence=function(e){return"SQ"===e.vr&&"u/l"===e.vl},ae.dicom.isImplicitLengthItem=function(e){return"xFFFEE000"===e.tag.name&&"u/l"===e.vl},ae.dicom.isImplicitLengthPixels=function(e){return"x7FE00010"===e.tag.name&&"u/l"===e.vl},ae.dicom.flattenArrayOfTypedArrays=function(e){var t=e.length,n=e[0].length;if(void 0===n)return e;for(var i=t*n,r=new e[0].constructor(i),o=0;o<t;o++){var a=o*n;r.set(e[o],a)}return r},ae.dicom.DicomWriter=function(){this.useUnVrForPrivateSq=!1;var a={copy:function(e){return e},remove:function(){return null},clear:function(e){return e.value[0]="",e.vl=0,e.endOffset=e.startOffset,e},replace:function(e,t){var n=ae.dicom.padElementValue(e,t);return e.value[0]=n,e.vl=n.length,e.endOffset=e.startOffset+n.length,e}};this.rules={default:{action:"copy",value:null}},this.anonymisationRules={default:{action:"remove",value:null},PatientName:{action:"replace",value:"Anonymized"},"Meta Element":{action:"copy",value:null},Acquisition:{action:"copy",value:null},"Image Presentation":{action:"copy",value:null},Procedure:{action:"copy",value:null},"Pixel Data":{action:"copy",value:null}},this.getElementToWrite=function(e){var t,n=null,i=ae.dicom.dictionary,r=e.tag.group,o=ae.dicom.TagGroups[r.substr(1)];return void 0!==i[r]&&void 0!==i[r][e.tag.element]&&(n=i[r][e.tag.element][2]),t=void 0!==this.rules[e.tag.name]?this.rules[e.tag.name]:null!==n&&void 0!==this.rules[n]?this.rules[n]:void 0!==this.rules[o]?this.rules[o]:this.rules.default,a[t.action](e,t.value)}},ae.dicom.DicomWriter.prototype.getBuffer=function(e){for(var t,n,i,r=Object.keys(e),o=ae.dicom.cleanString(e.x00020010.value[0]),a=ae.dicom.isImplicitTransferSyntax(o),s=ae.dicom.isBigEndianTransferSyntax(o),l=132,u=0,c=[],S=[],x=0,d=ae.dicom.getFileMetaInformationGroupLengthTag(),g=new ae.dicom.Tag("0x0002","0x0012"),m=new ae.dicom.Tag("0x0002","0x0013"),p=0,h=r.length;p<h;++p){null===(i=this.getElementToWrite(e[r[p]]))||d.equals2(i.tag)||g.equals2(i.tag)||m.equals2(i.tag)||(u=0,ae.dicom.checkUnknownVR(i),u+="Meta Element"===(t=ae.dicom.TagGroups[i.tag.group.substr(1)])?ae.dicom.getDataElementPrefixByteSize(i.vr,!1):ae.dicom.getDataElementPrefixByteSize(i.vr,a),n=i.endOffset-i.startOffset,u+=parseInt(n,10),ae.dicom.isImplicitLengthPixels(i)&&(u+=ae.dicom.getDataElementPrefixByteSize("NONE",a)),"Meta Element"===t?(c.push(i),x+=u):S.push(i),l+=u)}var f=ae.dicom.getDicomElement("ImplementationClassUID"),D=ae.dicom.getDataElementPrefixByteSize(f.vr,a);D+=ae.dicom.setElementValue(f,ae.dicom.getUID("ImplementationClassUID"),!1),c.push(f),x+=D,l+=D;var y=ae.dicom.getDicomElement("ImplementationVersionName"),C=ae.dicom.getDataElementPrefixByteSize(y.vr,a),v="DWV_"+ae.getVersion();C+=ae.dicom.setElementValue(y,v,!1),c.push(y),x+=C,l+=C;var T=ae.dicom.getDicomElement("FileMetaInformationGroupLength"),L=ae.dicom.getDataElementPrefixByteSize(T.vr,a);l+=L+=ae.dicom.setElementValue(T,x,!1);var I=new ArrayBuffer(l),P=new ae.dicom.DataWriter(I),F=new ae.dicom.DataWriter(I,!s),A=128,A=P.writeString(A,"DICM");A=P.writeDataElement(T,A,!1);for(var O=0,w=c.length;O<w;++O)A=P.writeDataElement(c[O],A,!1);var R=132+L+x;A!==R&&ae.logger.warn("Bad size calculation... meta offset: "+A+", calculated size:"+R+"(diff:",A-R,")"),F.useUnVrForPrivateSq=this.useUnVrForPrivateSq;for(var b=0,E=S.length;b<E;++b)A=F.writeDataElement(S[b],A,a);return A!==l&&ae.logger.warn("Bad size calculation... final offset: "+A+", calculated size:"+l+"(diff:",A-l,")"),I},ae.dicom.checkUnknownVR=function(e){var t=ae.dicom.dictionary;"UN"===e.vr&&void 0!==t[e.tag.group]&&void 0!==t[e.tag.group][e.tag.element]&&e.vr!==t[e.tag.group][e.tag.element][0]&&(e.vr=t[e.tag.group][e.tag.element][0],ae.logger.info("Element "+e.tag.group+" "+e.tag.element+" VR changed from UN to "+e.vr))},ae.dicom.getDicomElement=function(e){var t=ae.dicom.getGroupElementFromName(e),n=ae.dicom.dictionary;return{tag:{group:t.group,element:t.element},vr:n[t.group][t.element][0]}},ae.dicom.setElementValue=function(e,t,n){var i=0;if("SQ"===e.vr){if(e.value=t,e.vl=0,null!==t&&0!==t){var r=[],o=!0;void 0!==t.explicitLength&&(o=t.explicitLength,delete t.explicitLength);for(var a=Object.keys(t),s=0,l=a.length;s<l;++s){var u,c={},S=0;if(null!==(u=t[a[s]])&&0!==u){for(var x,d=Object.keys(u),g=0,m=d.length;g<m;++g)x=ae.dicom.getDicomElement(d[g]),S+=ae.dicom.setElementValue(x,u[d[g]]),c[ae.dicom.getGroupElementKey(x.tag.group,x.tag.element)]=x,S+=ae.dicom.getDataElementPrefixByteSize(x.vr,n);var p,h={tag:{group:"0xFFFE",element:"0xE000"},vr:"NONE",vl:o?S:"u/l",value:[]};c[ae.dicom.getGroupElementKey(h.tag.group,h.tag.element)]=h,S+=ae.dicom.getDataElementPrefixByteSize("NONE",n),o||(p={tag:{group:"0xFFFE",element:"0xE00D"},vr:"NONE",vl:0,value:[]},c[ae.dicom.getGroupElementKey(p.tag.group,p.tag.element)]=p,S+=ae.dicom.getDataElementPrefixByteSize("NONE",n)),i+=S,r.push(c)}}o||(i+=ae.dicom.getDataElementPrefixByteSize("NONE",n)),e.value=r,e.vl=o?i:"u/l"}}else{i=0;var f=ae.dicom.padElementValue(e,t);if(t instanceof Array){e.value=f;for(var D=0;D<f.length;++D)0!==D&&(i+=1),i+=f[D].toString().length}else e.value=[f],i=void 0!==f&&void 0!==f.length?f.length:1;"US"===e.vr||"OW"===e.vr?i*=Uint16Array.BYTES_PER_ELEMENT:"SS"===e.vr?i*=Int16Array.BYTES_PER_ELEMENT:"UL"===e.vr?i*=Uint32Array.BYTES_PER_ELEMENT:"SL"===e.vr?i*=Int32Array.BYTES_PER_ELEMENT:"FL"===e.vr?i*=Float32Array.BYTES_PER_ELEMENT:"FD"===e.vr?i*=Float64Array.BYTES_PER_ELEMENT:i*=Uint8Array.BYTES_PER_ELEMENT,e.vl=i}return i},(ae=ae||{}).dicom=ae.dicom||{},ae.dicom.dictionary={"0x0000":{"0x0000":["UL","1","GroupLength"],"0x0001":["UL","1","CommandLengthToEnd"],"0x0002":["UI","1","AffectedSOPClassUID"],"0x0003":["UI","1","RequestedSOPClassUID"],"0x0010":["CS","1","CommandRecognitionCode"],"0x0100":["US","1","CommandField"],"0x0110":["US","1","MessageID"],"0x0120":["US","1","MessageIDBeingRespondedTo"],"0x0200":["AE","1","Initiator"],"0x0300":["AE","1","Receiver"],"0x0400":["AE","1","FindLocation"],"0x0600":["AE","1","MoveDestination"],"0x0700":["US","1","Priority"],"0x0800":["US","1","DataSetType"],"0x0850":["US","1","NumberOfMatches"],"0x0860":["US","1","ResponseSequenceNumber"],"0x0900":["US","1","Status"],"0x0901":["AT","1-n","OffendingElement"],"0x0902":["LO","1","ErrorComment"],"0x0903":["US","1","ErrorID"],"0x0904":["OT","1-n","ErrorInformation"],"0x1000":["UI","1","AffectedSOPInstanceUID"],"0x1001":["UI","1","RequestedSOPInstanceUID"],"0x1002":["US","1","EventTypeID"],"0x1003":["OT","1-n","EventInformation"],"0x1005":["AT","1-n","AttributeIdentifierList"],"0x1007":["AT","1-n","ModificationList"],"0x1008":["US","1","ActionTypeID"],"0x1009":["OT","1-n","ActionInformation"],"0x1013":["UI","1-n","SuccessfulSOPInstanceUIDList"],"0x1014":["UI","1-n","FailedSOPInstanceUIDList"],"0x1015":["UI","1-n","WarningSOPInstanceUIDList"],"0x1020":["US","1","NumberOfRemainingSuboperations"],"0x1021":["US","1","NumberOfCompletedSuboperations"],"0x1022":["US","1","NumberOfFailedSuboperations"],"0x1023":["US","1","NumberOfWarningSuboperations"],"0x1030":["AE","1","MoveOriginatorApplicationEntityTitle"],"0x1031":["US","1","MoveOriginatorMessageID"],"0x4000":["AT","1","DialogReceiver"],"0x4010":["AT","1","TerminalType"],"0x5010":["SH","1","MessageSetID"],"0x5020":["SH","1","EndMessageSet"],"0x5110":["AT","1","DisplayFormat"],"0x5120":["AT","1","PagePositionID"],"0x5130":["CS","1","TextFormatID"],"0x5140":["CS","1","NormalReverse"],"0x5150":["CS","1","AddGrayScale"],"0x5160":["CS","1","Borders"],"0x5170":["IS","1","Copies"],"0x5180":["CS","1","OldMagnificationType"],"0x5190":["CS","1","Erase"],"0x51A0":["CS","1","Print"],"0x51B0":["US","1-n","Overlays"]},"0x0002":{"0x0000":["UL","1","FileMetaInformationGroupLength"],"0x0001":["OB","1","FileMetaInformationVersion"],"0x0002":["UI","1","MediaStorageSOPClassUID"],"0x0003":["UI","1","MediaStorageSOPInstanceUID"],"0x0010":["UI","1","TransferSyntaxUID"],"0x0012":["UI","1","ImplementationClassUID"],"0x0013":["SH","1","ImplementationVersionName"],"0x0016":["AE","1","SourceApplicationEntityTitle"],"0x0017":["AE","1","SendingApplicationEntityTitle"],"0x0018":["AE","1","ReceivingApplicationEntityTitle"],"0x0100":["UI","1","PrivateInformationCreatorUID"],"0x0102":["OB","1","PrivateInformation"]},"0x0004":{"0x0000":["UL","1","GenericGroupLength"],"0x1130":["CS","1","FileSetID"],"0x1141":["CS","1-8","FileSetDescriptorFileID"],"0x1142":["CS","1","SpecificCharacterSetOfFileSetDescriptorFile"],"0x1200":["UL","1","OffsetOfTheFirstDirectoryRecordOfTheRootDirectoryEntity"],"0x1202":["UL","1","OffsetOfTheLastDirectoryRecordOfTheRootDirectoryEntity"],"0x1212":["US","1","FileSetConsistencyFlag"],"0x1220":["SQ","1","DirectoryRecordSequence"],"0x1400":["UL","1","OffsetOfTheNextDirectoryRecord"],"0x1410":["US","1","RecordInUseFlag"],"0x1420":["UL","1","OffsetOfReferencedLowerLevelDirectoryEntity"],"0x1430":["CS","1","DirectoryRecordType"],"0x1432":["UI","1","PrivateRecordUID"],"0x1500":["CS","1-8","ReferencedFileID"],"0x1504":["UL","1","MRDRDirectoryRecordOffset"],"0x1510":["UI","1","ReferencedSOPClassUIDInFile"],"0x1511":["UI","1","ReferencedSOPInstanceUIDInFile"],"0x1512":["UI","1","ReferencedTransferSyntaxUIDInFile"],"0x151A":["UI","1-n","ReferencedRelatedGeneralSOPClassUIDInFile"],"0x1600":["UL","1","NumberOfReferences"]},"0x0008":{"0x0000":["UL","1","GenericGroupLength"],"0x0001":["UL","1","LengthToEnd"],"0x0005":["CS","1-n","SpecificCharacterSet"],"0x0006":["SQ","1","LanguageCodeSequence"],"0x0008":["CS","2-n","ImageType"],"0x0010":["SH","1","RecognitionCode"],"0x0012":["DA","1","InstanceCreationDate"],"0x0013":["TM","1","InstanceCreationTime"],"0x0014":["UI","1","InstanceCreatorUID"],"0x0015":["DT","1","InstanceCoercionDateTime"],"0x0016":["UI","1","SOPClassUID"],"0x0018":["UI","1","SOPInstanceUID"],"0x001A":["UI","1-n","RelatedGeneralSOPClassUID"],"0x001B":["UI","1","OriginalSpecializedSOPClassUID"],"0x0020":["DA","1","StudyDate"],"0x0021":["DA","1","SeriesDate"],"0x0022":["DA","1","AcquisitionDate"],"0x0023":["DA","1","ContentDate"],"0x0024":["DA","1","OverlayDate"],"0x0025":["DA","1","CurveDate"],"0x002A":["DT","1","AcquisitionDateTime"],"0x0030":["TM","1","StudyTime"],"0x0031":["TM","1","SeriesTime"],"0x0032":["TM","1","AcquisitionTime"],"0x0033":["TM","1","ContentTime"],"0x0034":["TM","1","OverlayTime"],"0x0035":["TM","1","CurveTime"],"0x0040":["US","1","DataSetType"],"0x0041":["LO","1","DataSetSubtype"],"0x0042":["CS","1","NuclearMedicineSeriesType"],"0x0050":["SH","1","AccessionNumber"],"0x0051":["SQ","1","IssuerOfAccessionNumberSequence"],"0x0052":["CS","1","QueryRetrieveLevel"],"0x0053":["CS","1","QueryRetrieveView"],"0x0054":["AE","1-n","RetrieveAETitle"],"0x0056":["CS","1","InstanceAvailability"],"0x0058":["UI","1-n","FailedSOPInstanceUIDList"],"0x0060":["CS","1","Modality"],"0x0061":["CS","1-n","ModalitiesInStudy"],"0x0062":["UI","1-n","SOPClassesInStudy"],"0x0064":["CS","1","ConversionType"],"0x0068":["CS","1","PresentationIntentType"],"0x0070":["LO","1","Manufacturer"],"0x0080":["LO","1","InstitutionName"],"0x0081":["ST","1","InstitutionAddress"],"0x0082":["SQ","1","InstitutionCodeSequence"],"0x0090":["PN","1","ReferringPhysicianName"],"0x0092":["ST","1","ReferringPhysicianAddress"],"0x0094":["SH","1-n","ReferringPhysicianTelephoneNumbers"],"0x0096":["SQ","1","ReferringPhysicianIdentificationSequence"],"0x009C":["PN","1-n","ConsultingPhysicianName"],"0x009D":["SQ","1","ConsultingPhysicianIdentificationSequence"],"0x0100":["SH","1","CodeValue"],"0x0101":["LO","1","ExtendedCodeValue"],"0x0102":["SH","1","CodingSchemeDesignator"],"0x0103":["SH","1","CodingSchemeVersion"],"0x0104":["LO","1","CodeMeaning"],"0x0105":["CS","1","MappingResource"],"0x0106":["DT","1","ContextGroupVersion"],"0x0107":["DT","1","ContextGroupLocalVersion"],"0x0108":["LT","1","ExtendedCodeMeaning"],"0x010B":["CS","1","ContextGroupExtensionFlag"],"0x010C":["UI","1","CodingSchemeUID"],"0x010D":["UI","1","ContextGroupExtensionCreatorUID"],"0x010F":["CS","1","ContextIdentifier"],"0x0110":["SQ","1","CodingSchemeIdentificationSequence"],"0x0112":["LO","1","CodingSchemeRegistry"],"0x0114":["ST","1","CodingSchemeExternalID"],"0x0115":["ST","1","CodingSchemeName"],"0x0116":["ST","1","CodingSchemeResponsibleOrganization"],"0x0117":["UI","1","ContextUID"],"0x0118":["UI","1","MappingResourceUID"],"0x0119":["UC","1","LongCodeValue"],"0x0120":["UR","1","URNCodeValue"],"0x0121":["SQ","1","EquivalentCodeSequence"],"0x0201":["SH","1","TimezoneOffsetFromUTC"],"0x0300":["SQ","1","PrivateDataElementCharacteristicsSequence"],"0x0301":["US","1","PrivateGroupReference"],"0x0302":["LO","1","PrivateCreatorReference"],"0x0303":["CS","1","BlockIdentifyingInformationStatus"],"0x0304":["US","1-n","NonidentifyingPrivateElements"],"0x0306":["US","1-n","IdentifyingPrivateElements"],"0x0305":["SQ","1","DeidentificationActionSequence"],"0x0307":["CS","1","DeidentificationAction"],"0x1000":["AE","1","NetworkID"],"0x1010":["SH","1","StationName"],"0x1030":["LO","1","StudyDescription"],"0x1032":["SQ","1","ProcedureCodeSequence"],"0x103E":["LO","1","SeriesDescription"],"0x103F":["SQ","1","SeriesDescriptionCodeSequence"],"0x1040":["LO","1","InstitutionalDepartmentName"],"0x1048":["PN","1-n","PhysiciansOfRecord"],"0x1049":["SQ","1","PhysiciansOfRecordIdentificationSequence"],"0x1050":["PN","1-n","PerformingPhysicianName"],"0x1052":["SQ","1","PerformingPhysicianIdentificationSequence"],"0x1060":["PN","1-n","NameOfPhysiciansReadingStudy"],"0x1062":["SQ","1","PhysiciansReadingStudyIdentificationSequence"],"0x1070":["PN","1-n","OperatorsName"],"0x1072":["SQ","1","OperatorIdentificationSequence"],"0x1080":["LO","1-n","AdmittingDiagnosesDescription"],"0x1084":["SQ","1","AdmittingDiagnosesCodeSequence"],"0x1090":["LO","1","ManufacturerModelName"],"0x1100":["SQ","1","ReferencedResultsSequence"],"0x1110":["SQ","1","ReferencedStudySequence"],"0x1111":["SQ","1","ReferencedPerformedProcedureStepSequence"],"0x1115":["SQ","1","ReferencedSeriesSequence"],"0x1120":["SQ","1","ReferencedPatientSequence"],"0x1125":["SQ","1","ReferencedVisitSequence"],"0x1130":["SQ","1","ReferencedOverlaySequence"],"0x1134":["SQ","1","ReferencedStereometricInstanceSequence"],"0x113A":["SQ","1","ReferencedWaveformSequence"],"0x1140":["SQ","1","ReferencedImageSequence"],"0x1145":["SQ","1","ReferencedCurveSequence"],"0x114A":["SQ","1","ReferencedInstanceSequence"],"0x114B":["SQ","1","ReferencedRealWorldValueMappingInstanceSequence"],"0x1150":["UI","1","ReferencedSOPClassUID"],"0x1155":["UI","1","ReferencedSOPInstanceUID"],"0x115A":["UI","1-n","SOPClassesSupported"],"0x1160":["IS","1-n","ReferencedFrameNumber"],"0x1161":["UL","1-n","SimpleFrameList"],"0x1162":["UL","3-3n","CalculatedFrameList"],"0x1163":["FD","2","TimeRange"],"0x1164":["SQ","1","FrameExtractionSequence"],"0x1167":["UI","1","MultiFrameSourceSOPInstanceUID"],"0x1190":["UR","1","RetrieveURL"],"0x1195":["UI","1","TransactionUID"],"0x1196":["US","1","WarningReason"],"0x1197":["US","1","FailureReason"],"0x1198":["SQ","1","FailedSOPSequence"],"0x1199":["SQ","1","ReferencedSOPSequence"],"0x1200":["SQ","1","StudiesContainingOtherReferencedInstancesSequence"],"0x1250":["SQ","1","RelatedSeriesSequence"],"0x2110":["CS","1","LossyImageCompressionRetired"],"0x2111":["ST","1","DerivationDescription"],"0x2112":["SQ","1","SourceImageSequence"],"0x2120":["SH","1","StageName"],"0x2122":["IS","1","StageNumber"],"0x2124":["IS","1","NumberOfStages"],"0x2127":["SH","1","ViewName"],"0x2128":["IS","1","ViewNumber"],"0x2129":["IS","1","NumberOfEventTimers"],"0x212A":["IS","1","NumberOfViewsInStage"],"0x2130":["DS","1-n","EventElapsedTimes"],"0x2132":["LO","1-n","EventTimerNames"],"0x2133":["SQ","1","EventTimerSequence"],"0x2134":["FD","1","EventTimeOffset"],"0x2135":["SQ","1","EventCodeSequence"],"0x2142":["IS","1","StartTrim"],"0x2143":["IS","1","StopTrim"],"0x2144":["IS","1","RecommendedDisplayFrameRate"],"0x2200":["CS","1","TransducerPosition"],"0x2204":["CS","1","TransducerOrientation"],"0x2208":["CS","1","AnatomicStructure"],"0x2218":["SQ","1","AnatomicRegionSequence"],"0x2220":["SQ","1","AnatomicRegionModifierSequence"],"0x2228":["SQ","1","PrimaryAnatomicStructureSequence"],"0x2229":["SQ","1","AnatomicStructureSpaceOrRegionSequence"],"0x2230":["SQ","1","PrimaryAnatomicStructureModifierSequence"],"0x2240":["SQ","1","TransducerPositionSequence"],"0x2242":["SQ","1","TransducerPositionModifierSequence"],"0x2244":["SQ","1","TransducerOrientationSequence"],"0x2246":["SQ","1","TransducerOrientationModifierSequence"],"0x2251":["SQ","1","AnatomicStructureSpaceOrRegionCodeSequenceTrial"],"0x2253":["SQ","1","AnatomicPortalOfEntranceCodeSequenceTrial"],"0x2255":["SQ","1","AnatomicApproachDirectionCodeSequenceTrial"],"0x2256":["ST","1","AnatomicPerspectiveDescriptionTrial"],"0x2257":["SQ","1","AnatomicPerspectiveCodeSequenceTrial"],"0x2258":["ST","1","AnatomicLocationOfExaminingInstrumentDescriptionTrial"],"0x2259":["SQ","1","AnatomicLocationOfExaminingInstrumentCodeSequenceTrial"],"0x225A":["SQ","1","AnatomicStructureSpaceOrRegionModifierCodeSequenceTrial"],"0x225C":["SQ","1","OnAxisBackgroundAnatomicStructureCodeSequenceTrial"],"0x3001":["SQ","1","AlternateRepresentationSequence"],"0x3010":["UI","1-n","IrradiationEventUID"],"0x3011":["SQ","1","SourceIrradiationEventSequence"],"0x3012":["UI","1","RadiopharmaceuticalAdministrationEventUID"],"0x4000":["LT","1","IdentifyingComments"],"0x9007":["CS","4","FrameType"],"0x9092":["SQ","1","ReferencedImageEvidenceSequence"],"0x9121":["SQ","1","ReferencedRawDataSequence"],"0x9123":["UI","1","CreatorVersionUID"],"0x9124":["SQ","1","DerivationImageSequence"],"0x9154":["SQ","1","SourceImageEvidenceSequence"],"0x9205":["CS","1","PixelPresentation"],"0x9206":["CS","1","VolumetricProperties"],"0x9207":["CS","1","VolumeBasedCalculationTechnique"],"0x9208":["CS","1","ComplexImageComponent"],"0x9209":["CS","1","AcquisitionContrast"],"0x9215":["SQ","1","DerivationCodeSequence"],"0x9237":["SQ","1","ReferencedPresentationStateSequence"],"0x9410":["SQ","1","ReferencedOtherPlaneSequence"],"0x9458":["SQ","1","FrameDisplaySequence"],"0x9459":["FL","1","RecommendedDisplayFrameRateInFloat"],"0x9460":["CS","1","SkipFrameRangeFlag"]},"0x0010":{"0x0000":["UL","1","GenericGroupLength"],"0x0010":["PN","1","PatientName"],"0x0020":["LO","1","PatientID"],"0x0021":["LO","1","IssuerOfPatientID"],"0x0022":["CS","1","TypeOfPatientID"],"0x0024":["SQ","1","IssuerOfPatientIDQualifiersSequence"],"0x0030":["DA","1","PatientBirthDate"],"0x0032":["TM","1","PatientBirthTime"],"0x0040":["CS","1","PatientSex"],"0x0050":["SQ","1","PatientInsurancePlanCodeSequence"],"0x0101":["SQ","1","PatientPrimaryLanguageCodeSequence"],"0x0102":["SQ","1","PatientPrimaryLanguageModifierCodeSequence"],"0x0200":["CS","1","QualityControlSubject"],"0x0201":["SQ","1","QualityControlSubjectTypeCodeSequence"],"0x1000":["LO","1-n","OtherPatientIDs"],"0x1001":["PN","1-n","OtherPatientNames"],"0x1002":["SQ","1","OtherPatientIDsSequence"],"0x1005":["PN","1","PatientBirthName"],"0x1010":["AS","1","PatientAge"],"0x1020":["DS","1","PatientSize"],"0x1021":["SQ","1","PatientSizeCodeSequence"],"0x1030":["DS","1","PatientWeight"],"0x1040":["LO","1","PatientAddress"],"0x1050":["LO","1-n","InsurancePlanIdentification"],"0x1060":["PN","1","PatientMotherBirthName"],"0x1080":["LO","1","MilitaryRank"],"0x1081":["LO","1","BranchOfService"],"0x1090":["LO","1","MedicalRecordLocator"],"0x1100":["SQ","1","ReferencedPatientPhotoSequence"],"0x2000":["LO","1-n","MedicalAlerts"],"0x2110":["LO","1-n","Allergies"],"0x2150":["LO","1","CountryOfResidence"],"0x2152":["LO","1","RegionOfResidence"],"0x2154":["SH","1-n","PatientTelephoneNumbers"],"0x2155":["LT","1","PatientTelecomInformation"],"0x2160":["SH","1","EthnicGroup"],"0x2180":["SH","1","Occupation"],"0x21A0":["CS","1","SmokingStatus"],"0x21B0":["LT","1","AdditionalPatientHistory"],"0x21C0":["US","1","PregnancyStatus"],"0x21D0":["DA","1","LastMenstrualDate"],"0x21F0":["LO","1","PatientReligiousPreference"],"0x2201":["LO","1","PatientSpeciesDescription"],"0x2202":["SQ","1","PatientSpeciesCodeSequence"],"0x2203":["CS","1","PatientSexNeutered"],"0x2210":["CS","1","AnatomicalOrientationType"],"0x2292":["LO","1","PatientBreedDescription"],"0x2293":["SQ","1","PatientBreedCodeSequence"],"0x2294":["SQ","1","BreedRegistrationSequence"],"0x2295":["LO","1","BreedRegistrationNumber"],"0x2296":["SQ","1","BreedRegistryCodeSequence"],"0x2297":["PN","1","ResponsiblePerson"],"0x2298":["CS","1","ResponsiblePersonRole"],"0x2299":["LO","1","ResponsibleOrganization"],"0x4000":["LT","1","PatientComments"],"0x9431":["FL","1","ExaminedBodyThickness"]},"0x0012":{"0x0000":["UL","1","GenericGroupLength"],"0x0010":["LO","1","ClinicalTrialSponsorName"],"0x0020":["LO","1","ClinicalTrialProtocolID"],"0x0021":["LO","1","ClinicalTrialProtocolName"],"0x0030":["LO","1","ClinicalTrialSiteID"],"0x0031":["LO","1","ClinicalTrialSiteName"],"0x0040":["LO","1","ClinicalTrialSubjectID"],"0x0042":["LO","1","ClinicalTrialSubjectReadingID"],"0x0050":["LO","1","ClinicalTrialTimePointID"],"0x0051":["ST","1","ClinicalTrialTimePointDescription"],"0x0060":["LO","1","ClinicalTrialCoordinatingCenterName"],"0x0062":["CS","1","PatientIdentityRemoved"],"0x0063":["LO","1-n","DeidentificationMethod"],"0x0064":["SQ","1","DeidentificationMethodCodeSequence"],"0x0071":["LO","1","ClinicalTrialSeriesID"],"0x0072":["LO","1","ClinicalTrialSeriesDescription"],"0x0081":["LO","1","ClinicalTrialProtocolEthicsCommitteeName"],"0x0082":["LO","1","ClinicalTrialProtocolEthicsCommitteeApprovalNumber"],"0x0083":["SQ","1","ConsentForClinicalTrialUseSequence"],"0x0084":["CS","1","DistributionType"],"0x0085":["CS","1","ConsentForDistributionFlag"]},"0x0014":{"0x0000":["UL","1","GenericGroupLength"],"0x0023":["ST","1-n","CADFileFormat"],"0x0024":["ST","1-n","ComponentReferenceSystem"],"0x0025":["ST","1-n","ComponentManufacturingProcedure"],"0x0028":["ST","1-n","ComponentManufacturer"],"0x0030":["DS","1-n","MaterialThickness"],"0x0032":["DS","1-n","MaterialPipeDiameter"],"0x0034":["DS","1-n","MaterialIsolationDiameter"],"0x0042":["ST","1-n","MaterialGrade"],"0x0044":["ST","1-n","MaterialPropertiesDescription"],"0x0045":["ST","1-n","MaterialPropertiesFileFormatRetired"],"0x0046":["LT","1","MaterialNotes"],"0x0050":["CS","1","ComponentShape"],"0x0052":["CS","1","CurvatureType"],"0x0054":["DS","1","OuterDiameter"],"0x0056":["DS","1","InnerDiameter"],"0x1010":["ST","1","ActualEnvironmentalConditions"],"0x1020":["DA","1","ExpiryDate"],"0x1040":["ST","1","EnvironmentalConditions"],"0x2002":["SQ","1","EvaluatorSequence"],"0x2004":["IS","1","EvaluatorNumber"],"0x2006":["PN","1","EvaluatorName"],"0x2008":["IS","1","EvaluationAttempt"],"0x2012":["SQ","1","IndicationSequence"],"0x2014":["IS","1","IndicationNumber"],"0x2016":["SH","1","IndicationLabel"],"0x2018":["ST","1","IndicationDescription"],"0x201A":["CS","1-n","IndicationType"],"0x201C":["CS","1","IndicationDisposition"],"0x201E":["SQ","1","IndicationROISequence"],"0x2030":["SQ","1","IndicationPhysicalPropertySequence"],"0x2032":["SH","1","PropertyLabel"],"0x2202":["IS","1","CoordinateSystemNumberOfAxes"],"0x2204":["SQ","1","CoordinateSystemAxesSequence"],"0x2206":["ST","1","CoordinateSystemAxisDescription"],"0x2208":["CS","1","CoordinateSystemDataSetMapping"],"0x220A":["IS","1","CoordinateSystemAxisNumber"],"0x220C":["CS","1","CoordinateSystemAxisType"],"0x220E":["CS","1","CoordinateSystemAxisUnits"],"0x2210":["OB","1","CoordinateSystemAxisValues"],"0x2220":["SQ","1","CoordinateSystemTransformSequence"],"0x2222":["ST","1","TransformDescription"],"0x2224":["IS","1","TransformNumberOfAxes"],"0x2226":["IS","1-n","TransformOrderOfAxes"],"0x2228":["CS","1","TransformedAxisUnits"],"0x222A":["DS","1-n","CoordinateSystemTransformRotationAndScaleMatrix"],"0x222C":["DS","1-n","CoordinateSystemTransformTranslationMatrix"],"0x3011":["DS","1","InternalDetectorFrameTime"],"0x3012":["DS","1","NumberOfFramesIntegrated"],"0x3020":["SQ","1","DetectorTemperatureSequence"],"0x3022":["ST","1","SensorName"],"0x3024":["DS","1","HorizontalOffsetOfSensor"],"0x3026":["DS","1","VerticalOffsetOfSensor"],"0x3028":["DS","1","SensorTemperature"],"0x3040":["SQ","1","DarkCurrentSequence"],"0x3050":["ox","1","DarkCurrentCounts"],"0x3060":["SQ","1","GainCorrectionReferenceSequence"],"0x3070":["ox","1","AirCounts"],"0x3071":["DS","1","KVUsedInGainCalibration"],"0x3072":["DS","1","MAUsedInGainCalibration"],"0x3073":["DS","1","NumberOfFramesUsedForIntegration"],"0x3074":["LO","1","FilterMaterialUsedInGainCalibration"],"0x3075":["DS","1","FilterThicknessUsedInGainCalibration"],"0x3076":["DA","1","DateOfGainCalibration"],"0x3077":["TM","1","TimeOfGainCalibration"],"0x3080":["OB","1","BadPixelImage"],"0x3099":["LT","1","CalibrationNotes"],"0x4002":["SQ","1","PulserEquipmentSequence"],"0x4004":["CS","1","PulserType"],"0x4006":["LT","1","PulserNotes"],"0x4008":["SQ","1","ReceiverEquipmentSequence"],"0x400A":["CS","1","AmplifierType"],"0x400C":["LT","1","ReceiverNotes"],"0x400E":["SQ","1","PreAmplifierEquipmentSequence"],"0x400F":["LT","1","PreAmplifierNotes"],"0x4010":["SQ","1","TransmitTransducerSequence"],"0x4011":["SQ","1","ReceiveTransducerSequence"],"0x4012":["US","1","NumberOfElements"],"0x4013":["CS","1","ElementShape"],"0x4014":["DS","1","ElementDimensionA"],"0x4015":["DS","1","ElementDimensionB"],"0x4016":["DS","1","ElementPitchA"],"0x4017":["DS","1","MeasuredBeamDimensionA"],"0x4018":["DS","1","MeasuredBeamDimensionB"],"0x4019":["DS","1","LocationOfMeasuredBeamDiameter"],"0x401A":["DS","1","NominalFrequency"],"0x401B":["DS","1","MeasuredCenterFrequency"],"0x401C":["DS","1","MeasuredBandwidth"],"0x401D":["DS","1","ElementPitchB"],"0x4020":["SQ","1","PulserSettingsSequence"],"0x4022":["DS","1","PulseWidth"],"0x4024":["DS","1","ExcitationFrequency"],"0x4026":["CS","1","ModulationType"],"0x4028":["DS","1","Damping"],"0x4030":["SQ","1","ReceiverSettingsSequence"],"0x4031":["DS","1","AcquiredSoundpathLength"],"0x4032":["CS","1","AcquisitionCompressionType"],"0x4033":["IS","1","AcquisitionSampleSize"],"0x4034":["DS","1","RectifierSmoothing"],"0x4035":["SQ","1","DACSequence"],"0x4036":["CS","1","DACType"],"0x4038":["DS","1-n","DACGainPoints"],"0x403A":["DS","1-n","DACTimePoints"],"0x403C":["DS","1-n","DACAmplitude"],"0x4040":["SQ","1","PreAmplifierSettingsSequence"],"0x4050":["SQ","1","TransmitTransducerSettingsSequence"],"0x4051":["SQ","1","ReceiveTransducerSettingsSequence"],"0x4052":["DS","1","IncidentAngle"],"0x4054":["ST","1","CouplingTechnique"],"0x4056":["ST","1","CouplingMedium"],"0x4057":["DS","1","CouplingVelocity"],"0x4058":["DS","1","ProbeCenterLocationX"],"0x4059":["DS","1","ProbeCenterLocationZ"],"0x405A":["DS","1","SoundPathLength"],"0x405C":["ST","1","DelayLawIdentifier"],"0x4060":["SQ","1","GateSettingsSequence"],"0x4062":["DS","1","GateThreshold"],"0x4064":["DS","1","VelocityOfSound"],"0x4070":["SQ","1","CalibrationSettingsSequence"],"0x4072":["ST","1","CalibrationProcedure"],"0x4074":["SH","1","ProcedureVersion"],"0x4076":["DA","1","ProcedureCreationDate"],"0x4078":["DA","1","ProcedureExpirationDate"],"0x407A":["DA","1","ProcedureLastModifiedDate"],"0x407C":["TM","1-n","CalibrationTime"],"0x407E":["DA","1-n","CalibrationDate"],"0x4080":["SQ","1","ProbeDriveEquipmentSequence"],"0x4081":["CS","1","DriveType"],"0x4082":["LT","1","ProbeDriveNotes"],"0x4083":["SQ","1","DriveProbeSequence"],"0x4084":["DS","1","ProbeInductance"],"0x4085":["DS","1","ProbeResistance"],"0x4086":["SQ","1","ReceiveProbeSequence"],"0x4087":["SQ","1","ProbeDriveSettingsSequence"],"0x4088":["DS","1","BridgeResistors"],"0x4089":["DS","1","ProbeOrientationAngle"],"0x408B":["DS","1","UserSelectedGainY"],"0x408C":["DS","1","UserSelectedPhase"],"0x408D":["DS","1","UserSelectedOffsetX"],"0x408E":["DS","1","UserSelectedOffsetY"],"0x4091":["SQ","1","ChannelSettingsSequence"],"0x4092":["DS","1","ChannelThreshold"],"0x409A":["SQ","1","ScannerSettingsSequence"],"0x409B":["ST","1","ScanProcedure"],"0x409C":["DS","1","TranslationRateX"],"0x409D":["DS","1","TranslationRateY"],"0x409F":["DS","1","ChannelOverlap"],"0x40A0":["LO","1","ImageQualityIndicatorType"],"0x40A1":["LO","1","ImageQualityIndicatorMaterial"],"0x40A2":["LO","1","ImageQualityIndicatorSize"],"0x5002":["IS","1","LINACEnergy"],"0x5004":["IS","1","LINACOutput"],"0x5100":["US","1","ActiveAperture"],"0x5101":["DS","1","TotalAperture"],"0x5102":["DS","1","ApertureElevation"],"0x5103":["DS","1","MainLobeAngle"],"0x5104":["DS","1","MainRoofAngle"],"0x5105":["CS","1","ConnectorType"],"0x5106":["SH","1","WedgeModelNumber"],"0x5107":["DS","1","WedgeAngleFloat"],"0x5108":["DS","1","WedgeRoofAngle"],"0x5109":["CS","1","WedgeElement1Position"],"0x510A":["DS","1","WedgeMaterialVelocity"],"0x510B":["SH","1","WedgeMaterial"],"0x510C":["DS","1","WedgeOffsetZ"],"0x510D":["DS","1","WedgeOriginOffsetX"],"0x510E":["DS","1","WedgeTimeDelay"],"0x510F":["SH","1","WedgeName"],"0x5110":["SH","1","WedgeManufacturerName"],"0x5111":["LO","1","WedgeDescription"],"0x5112":["DS","1","NominalBeamAngle"],"0x5113":["DS","1","WedgeOffsetX"],"0x5114":["DS","1","WedgeOffsetY"],"0x5115":["DS","1","WedgeTotalLength"],"0x5116":["DS","1","WedgeInContactLength"],"0x5117":["DS","1","WedgeFrontGap"],"0x5118":["DS","1","WedgeTotalHeight"],"0x5119":["DS","1","WedgeFrontHeight"],"0x511A":["DS","1","WedgeRearHeight"],"0x511B":["DS","1","WedgeTotalWidth"],"0x511C":["DS","1","WedgeInContactWidth"],"0x511D":["DS","1","WedgeChamferHeight"],"0x511E":["CS","1","WedgeCurve"],"0x511F":["DS","1","RadiusAlongWedge"]},"0x0018":{"0x0000":["UL","1","GenericGroupLength"],"0x0010":["LO","1","ContrastBolusAgent"],"0x0012":["SQ","1","ContrastBolusAgentSequence"],"0x0013":["FL","1","ContrastBolusT1Relaxivity"],"0x0014":["SQ","1","ContrastBolusAdministrationRouteSequence"],"0x0015":["CS","1","BodyPartExamined"],"0x0020":["CS","1-n","ScanningSequence"],"0x0021":["CS","1-n","SequenceVariant"],"0x0022":["CS","1-n","ScanOptions"],"0x0023":["CS","1","MRAcquisitionType"],"0x0024":["SH","1","SequenceName"],"0x0025":["CS","1","AngioFlag"],"0x0026":["SQ","1","InterventionDrugInformationSequence"],"0x0027":["TM","1","InterventionDrugStopTime"],"0x0028":["DS","1","InterventionDrugDose"],"0x0029":["SQ","1","InterventionDrugCodeSequence"],"0x002A":["SQ","1","AdditionalDrugSequence"],"0x0030":["LO","1-n","Radionuclide"],"0x0031":["LO","1","Radiopharmaceutical"],"0x0032":["DS","1","EnergyWindowCenterline"],"0x0033":["DS","1-n","EnergyWindowTotalWidth"],"0x0034":["LO","1","InterventionDrugName"],"0x0035":["TM","1","InterventionDrugStartTime"],"0x0036":["SQ","1","InterventionSequence"],"0x0037":["CS","1","TherapyType"],"0x0038":["CS","1","InterventionStatus"],"0x0039":["CS","1","TherapyDescription"],"0x003A":["ST","1","InterventionDescription"],"0x0040":["IS","1","CineRate"],"0x0042":["CS","1","InitialCineRunState"],"0x0050":["DS","1","SliceThickness"],"0x0060":["DS","1","KVP"],"0x0070":["IS","1","CountsAccumulated"],"0x0071":["CS","1","AcquisitionTerminationCondition"],"0x0072":["DS","1","EffectiveDuration"],"0x0073":["CS","1","AcquisitionStartCondition"],"0x0074":["IS","1","AcquisitionStartConditionData"],"0x0075":["IS","1","AcquisitionTerminationConditionData"],"0x0080":["DS","1","RepetitionTime"],"0x0081":["DS","1","EchoTime"],"0x0082":["DS","1","InversionTime"],"0x0083":["DS","1","NumberOfAverages"],"0x0084":["DS","1","ImagingFrequency"],"0x0085":["SH","1","ImagedNucleus"],"0x0086":["IS","1-n","EchoNumbers"],"0x0087":["DS","1","MagneticFieldStrength"],"0x0088":["DS","1","SpacingBetweenSlices"],"0x0089":["IS","1","NumberOfPhaseEncodingSteps"],"0x0090":["DS","1","DataCollectionDiameter"],"0x0091":["IS","1","EchoTrainLength"],"0x0093":["DS","1","PercentSampling"],"0x0094":["DS","1","PercentPhaseFieldOfView"],"0x0095":["DS","1","PixelBandwidth"],"0x1000":["LO","1","DeviceSerialNumber"],"0x1002":["UI","1","DeviceUID"],"0x1003":["LO","1","DeviceID"],"0x1004":["LO","1","PlateID"],"0x1005":["LO","1","GeneratorID"],"0x1006":["LO","1","GridID"],"0x1007":["LO","1","CassetteID"],"0x1008":["LO","1","GantryID"],"0x1010":["LO","1","SecondaryCaptureDeviceID"],"0x1011":["LO","1","HardcopyCreationDeviceID"],"0x1012":["DA","1","DateOfSecondaryCapture"],"0x1014":["TM","1","TimeOfSecondaryCapture"],"0x1016":["LO","1","SecondaryCaptureDeviceManufacturer"],"0x1017":["LO","1","HardcopyDeviceManufacturer"],"0x1018":["LO","1","SecondaryCaptureDeviceManufacturerModelName"],"0x1019":["LO","1-n","SecondaryCaptureDeviceSoftwareVersions"],"0x101A":["LO","1-n","HardcopyDeviceSoftwareVersion"],"0x101B":["LO","1","HardcopyDeviceManufacturerModelName"],"0x1020":["LO","1-n","SoftwareVersions"],"0x1022":["SH","1","VideoImageFormatAcquired"],"0x1023":["LO","1","DigitalImageFormatAcquired"],"0x1030":["LO","1","ProtocolName"],"0x1040":["LO","1","ContrastBolusRoute"],"0x1041":["DS","1","ContrastBolusVolume"],"0x1042":["TM","1","ContrastBolusStartTime"],"0x1043":["TM","1","ContrastBolusStopTime"],"0x1044":["DS","1","ContrastBolusTotalDose"],"0x1045":["IS","1","SyringeCounts"],"0x1046":["DS","1-n","ContrastFlowRate"],"0x1047":["DS","1-n","ContrastFlowDuration"],"0x1048":["CS","1","ContrastBolusIngredient"],"0x1049":["DS","1","ContrastBolusIngredientConcentration"],"0x1050":["DS","1","SpatialResolution"],"0x1060":["DS","1","TriggerTime"],"0x1061":["LO","1","TriggerSourceOrType"],"0x1062":["IS","1","NominalInterval"],"0x1063":["DS","1","FrameTime"],"0x1064":["LO","1","CardiacFramingType"],"0x1065":["DS","1-n","FrameTimeVector"],"0x1066":["DS","1","FrameDelay"],"0x1067":["DS","1","ImageTriggerDelay"],"0x1068":["DS","1","MultiplexGroupTimeOffset"],"0x1069":["DS","1","TriggerTimeOffset"],"0x106A":["CS","1","SynchronizationTrigger"],"0x106C":["US","2","SynchronizationChannel"],"0x106E":["UL","1","TriggerSamplePosition"],"0x1070":["LO","1","RadiopharmaceuticalRoute"],"0x1071":["DS","1","RadiopharmaceuticalVolume"],"0x1072":["TM","1","RadiopharmaceuticalStartTime"],"0x1073":["TM","1","RadiopharmaceuticalStopTime"],"0x1074":["DS","1","RadionuclideTotalDose"],"0x1075":["DS","1","RadionuclideHalfLife"],"0x1076":["DS","1","RadionuclidePositronFraction"],"0x1077":["DS","1","RadiopharmaceuticalSpecificActivity"],"0x1078":["DT","1","RadiopharmaceuticalStartDateTime"],"0x1079":["DT","1","RadiopharmaceuticalStopDateTime"],"0x1080":["CS","1","BeatRejectionFlag"],"0x1081":["IS","1","LowRRValue"],"0x1082":["IS","1","HighRRValue"],"0x1083":["IS","1","IntervalsAcquired"],"0x1084":["IS","1","IntervalsRejected"],"0x1085":["LO","1","PVCRejection"],"0x1086":["IS","1","SkipBeats"],"0x1088":["IS","1","HeartRate"],"0x1090":["IS","1","CardiacNumberOfImages"],"0x1094":["IS","1","TriggerWindow"],"0x1100":["DS","1","ReconstructionDiameter"],"0x1110":["DS","1","DistanceSourceToDetector"],"0x1111":["DS","1","DistanceSourceToPatient"],"0x1114":["DS","1","EstimatedRadiographicMagnificationFactor"],"0x1120":["DS","1","GantryDetectorTilt"],"0x1121":["DS","1","GantryDetectorSlew"],"0x1130":["DS","1","TableHeight"],"0x1131":["DS","1","TableTraverse"],"0x1134":["CS","1","TableMotion"],"0x1135":["DS","1-n","TableVerticalIncrement"],"0x1136":["DS","1-n","TableLateralIncrement"],"0x1137":["DS","1-n","TableLongitudinalIncrement"],"0x1138":["DS","1","TableAngle"],"0x113A":["CS","1","TableType"],"0x1140":["CS","1","RotationDirection"],"0x1141":["DS","1","AngularPosition"],"0x1142":["DS","1-n","RadialPosition"],"0x1143":["DS","1","ScanArc"],"0x1144":["DS","1","AngularStep"],"0x1145":["DS","1","CenterOfRotationOffset"],"0x1146":["DS","1-n","RotationOffset"],"0x1147":["CS","1","FieldOfViewShape"],"0x1149":["IS","1-2","FieldOfViewDimensions"],"0x1150":["IS","1","ExposureTime"],"0x1151":["IS","1","XRayTubeCurrent"],"0x1152":["IS","1","Exposure"],"0x1153":["IS","1","ExposureInuAs"],"0x1154":["DS","1","AveragePulseWidth"],"0x1155":["CS","1","RadiationSetting"],"0x1156":["CS","1","RectificationType"],"0x115A":["CS","1","RadiationMode"],"0x115E":["DS","1","ImageAndFluoroscopyAreaDoseProduct"],"0x1160":["SH","1","FilterType"],"0x1161":["LO","1-n","TypeOfFilters"],"0x1162":["DS","1","IntensifierSize"],"0x1164":["DS","2","ImagerPixelSpacing"],"0x1166":["CS","1-n","Grid"],"0x1170":["IS","1","GeneratorPower"],"0x1180":["SH","1","CollimatorGridName"],"0x1181":["CS","1","CollimatorType"],"0x1182":["IS","1-2","FocalDistance"],"0x1183":["DS","1-2","XFocusCenter"],"0x1184":["DS","1-2","YFocusCenter"],"0x1190":["DS","1-n","FocalSpots"],"0x1191":["CS","1","AnodeTargetMaterial"],"0x11A0":["DS","1","BodyPartThickness"],"0x11A2":["DS","1","CompressionForce"],"0x11A4":["LO","1","PaddleDescription"],"0x1200":["DA","1-n","DateOfLastCalibration"],"0x1201":["TM","1-n","TimeOfLastCalibration"],"0x1202":["DT","1","DateTimeOfLastCalibration"],"0x1210":["SH","1-n","ConvolutionKernel"],"0x1240":["IS","1-n","UpperLowerPixelValues"],"0x1242":["IS","1","ActualFrameDuration"],"0x1243":["IS","1","CountRate"],"0x1244":["US","1","PreferredPlaybackSequencing"],"0x1250":["SH","1","ReceiveCoilName"],"0x1251":["SH","1","TransmitCoilName"],"0x1260":["SH","1","PlateType"],"0x1261":["LO","1","PhosphorType"],"0x1300":["DS","1","ScanVelocity"],"0x1301":["CS","1-n","WholeBodyTechnique"],"0x1302":["IS","1","ScanLength"],"0x1310":["US","4","AcquisitionMatrix"],"0x1312":["CS","1","InPlanePhaseEncodingDirection"],"0x1314":["DS","1","FlipAngle"],"0x1315":["CS","1","VariableFlipAngleFlag"],"0x1316":["DS","1","SAR"],"0x1318":["DS","1","dBdt"],"0x1400":["LO","1","AcquisitionDeviceProcessingDescription"],"0x1401":["LO","1","AcquisitionDeviceProcessingCode"],"0x1402":["CS","1","CassetteOrientation"],"0x1403":["CS","1","CassetteSize"],"0x1404":["US","1","ExposuresOnPlate"],"0x1405":["IS","1","RelativeXRayExposure"],"0x1411":["DS","1","ExposureIndex"],"0x1412":["DS","1","TargetExposureIndex"],"0x1413":["DS","1","DeviationIndex"],"0x1450":["DS","1","ColumnAngulation"],"0x1460":["DS","1","TomoLayerHeight"],"0x1470":["DS","1","TomoAngle"],"0x1480":["DS","1","TomoTime"],"0x1490":["CS","1","TomoType"],"0x1491":["CS","1","TomoClass"],"0x1495":["IS","1","NumberOfTomosynthesisSourceImages"],"0x1500":["CS","1","PositionerMotion"],"0x1508":["CS","1","PositionerType"],"0x1510":["DS","1","PositionerPrimaryAngle"],"0x1511":["DS","1","PositionerSecondaryAngle"],"0x1520":["DS","1-n","PositionerPrimaryAngleIncrement"],"0x1521":["DS","1-n","PositionerSecondaryAngleIncrement"],"0x1530":["DS","1","DetectorPrimaryAngle"],"0x1531":["DS","1","DetectorSecondaryAngle"],"0x1600":["CS","1-3","ShutterShape"],"0x1602":["IS","1","ShutterLeftVerticalEdge"],"0x1604":["IS","1","ShutterRightVerticalEdge"],"0x1606":["IS","1","ShutterUpperHorizontalEdge"],"0x1608":["IS","1","ShutterLowerHorizontalEdge"],"0x1610":["IS","2","CenterOfCircularShutter"],"0x1612":["IS","1","RadiusOfCircularShutter"],"0x1620":["IS","2-2n","VerticesOfThePolygonalShutter"],"0x1622":["US","1","ShutterPresentationValue"],"0x1623":["US","1","ShutterOverlayGroup"],"0x1624":["US","3","ShutterPresentationColorCIELabValue"],"0x1700":["CS","1-3","CollimatorShape"],"0x1702":["IS","1","CollimatorLeftVerticalEdge"],"0x1704":["IS","1","CollimatorRightVerticalEdge"],"0x1706":["IS","1","CollimatorUpperHorizontalEdge"],"0x1708":["IS","1","CollimatorLowerHorizontalEdge"],"0x1710":["IS","2","CenterOfCircularCollimator"],"0x1712":["IS","1","RadiusOfCircularCollimator"],"0x1720":["IS","2-2n","VerticesOfThePolygonalCollimator"],"0x1800":["CS","1","AcquisitionTimeSynchronized"],"0x1801":["SH","1","TimeSource"],"0x1802":["CS","1","TimeDistributionProtocol"],"0x1803":["LO","1","NTPSourceAddress"],"0x2001":["IS","1-n","PageNumberVector"],"0x2002":["SH","1-n","FrameLabelVector"],"0x2003":["DS","1-n","FramePrimaryAngleVector"],"0x2004":["DS","1-n","FrameSecondaryAngleVector"],"0x2005":["DS","1-n","SliceLocationVector"],"0x2006":["SH","1-n","DisplayWindowLabelVector"],"0x2010":["DS","2","NominalScannedPixelSpacing"],"0x2020":["CS","1","DigitizingDeviceTransportDirection"],"0x2030":["DS","1","RotationOfScannedFilm"],"0x2041":["SQ","1","BiopsyTargetSequence"],"0x2042":["UI","1","TargetUID"],"0x2043":["FL","2","LocalizingCursorPosition"],"0x2044":["FL","3","CalculatedTargetPosition"],"0x2045":["SH","1","TargetLabel"],"0x2046":["FL","1","DisplayedZValue"],"0x3100":["CS","1","IVUSAcquisition"],"0x3101":["DS","1","IVUSPullbackRate"],"0x3102":["DS","1","IVUSGatedRate"],"0x3103":["IS","1","IVUSPullbackStartFrameNumber"],"0x3104":["IS","1","IVUSPullbackStopFrameNumber"],"0x3105":["IS","1-n","LesionNumber"],"0x4000":["LT","1","AcquisitionComments"],"0x5000":["SH","1-n","OutputPower"],"0x5010":["LO","1-n","TransducerData"],"0x5012":["DS","1","FocusDepth"],"0x5020":["LO","1","ProcessingFunction"],"0x5021":["LO","1","PostprocessingFunction"],"0x5022":["DS","1","MechanicalIndex"],"0x5024":["DS","1","BoneThermalIndex"],"0x5026":["DS","1","CranialThermalIndex"],"0x5027":["DS","1","SoftTissueThermalIndex"],"0x5028":["DS","1","SoftTissueFocusThermalIndex"],"0x5029":["DS","1","SoftTissueSurfaceThermalIndex"],"0x5030":["DS","1","DynamicRange"],"0x5040":["DS","1","TotalGain"],"0x5050":["IS","1","DepthOfScanField"],"0x5100":["CS","1","PatientPosition"],"0x5101":["CS","1","ViewPosition"],"0x5104":["SQ","1","ProjectionEponymousNameCodeSequence"],"0x5210":["DS","6","ImageTransformationMatrix"],"0x5212":["DS","3","ImageTranslationVector"],"0x6000":["DS","1","Sensitivity"],"0x6011":["SQ","1","SequenceOfUltrasoundRegions"],"0x6012":["US","1","RegionSpatialFormat"],"0x6014":["US","1","RegionDataType"],"0x6016":["UL","1","RegionFlags"],"0x6018":["UL","1","RegionLocationMinX0"],"0x601A":["UL","1","RegionLocationMinY0"],"0x601C":["UL","1","RegionLocationMaxX1"],"0x601E":["UL","1","RegionLocationMaxY1"],"0x6020":["SL","1","ReferencePixelX0"],"0x6022":["SL","1","ReferencePixelY0"],"0x6024":["US","1","PhysicalUnitsXDirection"],"0x6026":["US","1","PhysicalUnitsYDirection"],"0x6028":["FD","1","ReferencePixelPhysicalValueX"],"0x602A":["FD","1","ReferencePixelPhysicalValueY"],"0x602C":["FD","1","PhysicalDeltaX"],"0x602E":["FD","1","PhysicalDeltaY"],"0x6030":["UL","1","TransducerFrequency"],"0x6031":["CS","1","TransducerType"],"0x6032":["UL","1","PulseRepetitionFrequency"],"0x6034":["FD","1","DopplerCorrectionAngle"],"0x6036":["FD","1","SteeringAngle"],"0x6038":["UL","1","DopplerSampleVolumeXPositionRetired"],"0x6039":["SL","1","DopplerSampleVolumeXPosition"],"0x603A":["UL","1","DopplerSampleVolumeYPositionRetired"],"0x603B":["SL","1","DopplerSampleVolumeYPosition"],"0x603C":["UL","1","TMLinePositionX0Retired"],"0x603D":["SL","1","TMLinePositionX0"],"0x603E":["UL","1","TMLinePositionY0Retired"],"0x603F":["SL","1","TMLinePositionY0"],"0x6040":["UL","1","TMLinePositionX1Retired"],"0x6041":["SL","1","TMLinePositionX1"],"0x6042":["UL","1","TMLinePositionY1Retired"],"0x6043":["SL","1","TMLinePositionY1"],"0x6044":["US","1","PixelComponentOrganization"],"0x6046":["UL","1","PixelComponentMask"],"0x6048":["UL","1","PixelComponentRangeStart"],"0x604A":["UL","1","PixelComponentRangeStop"],"0x604C":["US","1","PixelComponentPhysicalUnits"],"0x604E":["US","1","PixelComponentDataType"],"0x6050":["UL","1","NumberOfTableBreakPoints"],"0x6052":["UL","1-n","TableOfXBreakPoints"],"0x6054":["FD","1-n","TableOfYBreakPoints"],"0x6056":["UL","1","NumberOfTableEntries"],"0x6058":["UL","1-n","TableOfPixelValues"],"0x605A":["FL","1-n","TableOfParameterValues"],"0x6060":["FL","1-n","RWaveTimeVector"],"0x7000":["CS","1","DetectorConditionsNominalFlag"],"0x7001":["DS","1","DetectorTemperature"],"0x7004":["CS","1","DetectorType"],"0x7005":["CS","1","DetectorConfiguration"],"0x7006":["LT","1","DetectorDescription"],"0x7008":["LT","1","DetectorMode"],"0x700A":["SH","1","DetectorID"],"0x700C":["DA","1","DateOfLastDetectorCalibration"],"0x700E":["TM","1","TimeOfLastDetectorCalibration"],"0x7010":["IS","1","ExposuresOnDetectorSinceLastCalibration"],"0x7011":["IS","1","ExposuresOnDetectorSinceManufactured"],"0x7012":["DS","1","DetectorTimeSinceLastExposure"],"0x7014":["DS","1","DetectorActiveTime"],"0x7016":["DS","1","DetectorActivationOffsetFromExposure"],"0x701A":["DS","2","DetectorBinning"],"0x7020":["DS","2","DetectorElementPhysicalSize"],"0x7022":["DS","2","DetectorElementSpacing"],"0x7024":["CS","1","DetectorActiveShape"],"0x7026":["DS","1-2","DetectorActiveDimensions"],"0x7028":["DS","2","DetectorActiveOrigin"],"0x702A":["LO","1","DetectorManufacturerName"],"0x702B":["LO","1","DetectorManufacturerModelName"],"0x7030":["DS","2","FieldOfViewOrigin"],"0x7032":["DS","1","FieldOfViewRotation"],"0x7034":["CS","1","FieldOfViewHorizontalFlip"],"0x7036":["FL","2","PixelDataAreaOriginRelativeToFOV"],"0x7038":["FL","1","PixelDataAreaRotationAngleRelativeToFOV"],"0x7040":["LT","1","GridAbsorbingMaterial"],"0x7041":["LT","1","GridSpacingMaterial"],"0x7042":["DS","1","GridThickness"],"0x7044":["DS","1","GridPitch"],"0x7046":["IS","2","GridAspectRatio"],"0x7048":["DS","1","GridPeriod"],"0x704C":["DS","1","GridFocalDistance"],"0x7050":["CS","1-n","FilterMaterial"],"0x7052":["DS","1-n","FilterThicknessMinimum"],"0x7054":["DS","1-n","FilterThicknessMaximum"],"0x7056":["FL","1-n","FilterBeamPathLengthMinimum"],"0x7058":["FL","1-n","FilterBeamPathLengthMaximum"],"0x7060":["CS","1","ExposureControlMode"],"0x7062":["LT","1","ExposureControlModeDescription"],"0x7064":["CS","1","ExposureStatus"],"0x7065":["DS","1","PhototimerSetting"],"0x8150":["DS","1","ExposureTimeInuS"],"0x8151":["DS","1","XRayTubeCurrentInuA"],"0x9004":["CS","1","ContentQualification"],"0x9005":["SH","1","PulseSequenceName"],"0x9006":["SQ","1","MRImagingModifierSequence"],"0x9008":["CS","1","EchoPulseSequence"],"0x9009":["CS","1","InversionRecovery"],"0x9010":["CS","1","FlowCompensation"],"0x9011":["CS","1","MultipleSpinEcho"],"0x9012":["CS","1","MultiPlanarExcitation"],"0x9014":["CS","1","PhaseContrast"],"0x9015":["CS","1","TimeOfFlightContrast"],"0x9016":["CS","1","Spoiling"],"0x9017":["CS","1","SteadyStatePulseSequence"],"0x9018":["CS","1","EchoPlanarPulseSequence"],"0x9019":["FD","1","TagAngleFirstAxis"],"0x9020":["CS","1","MagnetizationTransfer"],"0x9021":["CS","1","T2Preparation"],"0x9022":["CS","1","BloodSignalNulling"],"0x9024":["CS","1","SaturationRecovery"],"0x9025":["CS","1","SpectrallySelectedSuppression"],"0x9026":["CS","1","SpectrallySelectedExcitation"],"0x9027":["CS","1","SpatialPresaturation"],"0x9028":["CS","1","Tagging"],"0x9029":["CS","1","OversamplingPhase"],"0x9030":["FD","1","TagSpacingFirstDimension"],"0x9032":["CS","1","GeometryOfKSpaceTraversal"],"0x9033":["CS","1","SegmentedKSpaceTraversal"],"0x9034":["CS","1","RectilinearPhaseEncodeReordering"],"0x9035":["FD","1","TagThickness"],"0x9036":["CS","1","PartialFourierDirection"],"0x9037":["CS","1","CardiacSynchronizationTechnique"],"0x9041":["LO","1","ReceiveCoilManufacturerName"],"0x9042":["SQ","1","MRReceiveCoilSequence"],"0x9043":["CS","1","ReceiveCoilType"],"0x9044":["CS","1","QuadratureReceiveCoil"],"0x9045":["SQ","1","MultiCoilDefinitionSequence"],"0x9046":["LO","1","MultiCoilConfiguration"],"0x9047":["SH","1","MultiCoilElementName"],"0x9048":["CS","1","MultiCoilElementUsed"],"0x9049":["SQ","1","MRTransmitCoilSequence"],"0x9050":["LO","1","TransmitCoilManufacturerName"],"0x9051":["CS","1","TransmitCoilType"],"0x9052":["FD","1-2","SpectralWidth"],"0x9053":["FD","1-2","ChemicalShiftReference"],"0x9054":["CS","1","VolumeLocalizationTechnique"],"0x9058":["US","1","MRAcquisitionFrequencyEncodingSteps"],"0x9059":["CS","1","Decoupling"],"0x9060":["CS","1-2","DecoupledNucleus"],"0x9061":["FD","1-2","DecouplingFrequency"],"0x9062":["CS","1","DecouplingMethod"],"0x9063":["FD","1-2","DecouplingChemicalShiftReference"],"0x9064":["CS","1","KSpaceFiltering"],"0x9065":["CS","1-2","TimeDomainFiltering"],"0x9066":["US","1-2","NumberOfZeroFills"],"0x9067":["CS","1","BaselineCorrection"],"0x9069":["FD","1","ParallelReductionFactorInPlane"],"0x9070":["FD","1","CardiacRRIntervalSpecified"],"0x9073":["FD","1","AcquisitionDuration"],"0x9074":["DT","1","FrameAcquisitionDateTime"],"0x9075":["CS","1","DiffusionDirectionality"],"0x9076":["SQ","1","DiffusionGradientDirectionSequence"],"0x9077":["CS","1","ParallelAcquisition"],"0x9078":["CS","1","ParallelAcquisitionTechnique"],"0x9079":["FD","1-n","InversionTimes"],"0x9080":["ST","1","MetaboliteMapDescription"],"0x9081":["CS","1","PartialFourier"],"0x9082":["FD","1","EffectiveEchoTime"],"0x9083":["SQ","1","MetaboliteMapCodeSequence"],"0x9084":["SQ","1","ChemicalShiftSequence"],"0x9085":["CS","1","CardiacSignalSource"],"0x9087":["FD","1","DiffusionBValue"],"0x9089":["FD","3","DiffusionGradientOrientation"],"0x9090":["FD","3","VelocityEncodingDirection"],"0x9091":["FD","1","VelocityEncodingMinimumValue"],"0x9092":["SQ","1","VelocityEncodingAcquisitionSequence"],"0x9093":["US","1","NumberOfKSpaceTrajectories"],"0x9094":["CS","1","CoverageOfKSpace"],"0x9095":["UL","1","SpectroscopyAcquisitionPhaseRows"],"0x9096":["FD","1","ParallelReductionFactorInPlaneRetired"],"0x9098":["FD","1-2","TransmitterFrequency"],"0x9100":["CS","1-2","ResonantNucleus"],"0x9101":["CS","1","FrequencyCorrection"],"0x9103":["SQ","1","MRSpectroscopyFOVGeometrySequence"],"0x9104":["FD","1","SlabThickness"],"0x9105":["FD","3","SlabOrientation"],"0x9106":["FD","3","MidSlabPosition"],"0x9107":["SQ","1","MRSpatialSaturationSequence"],"0x9112":["SQ","1","MRTimingAndRelatedParametersSequence"],"0x9114":["SQ","1","MREchoSequence"],"0x9115":["SQ","1","MRModifierSequence"],"0x9117":["SQ","1","MRDiffusionSequence"],"0x9118":["SQ","1","CardiacSynchronizationSequence"],"0x9119":["SQ","1","MRAveragesSequence"],"0x9125":["SQ","1","MRFOVGeometrySequence"],"0x9126":["SQ","1","VolumeLocalizationSequence"],"0x9127":["UL","1","SpectroscopyAcquisitionDataColumns"],"0x9147":["CS","1","DiffusionAnisotropyType"],"0x9151":["DT","1","FrameReferenceDateTime"],"0x9152":["SQ","1","MRMetaboliteMapSequence"],"0x9155":["FD","1","ParallelReductionFactorOutOfPlane"],"0x9159":["UL","1","SpectroscopyAcquisitionOutOfPlanePhaseSteps"],"0x9166":["CS","1","BulkMotionStatus"],"0x9168":["FD","1","ParallelReductionFactorSecondInPlane"],"0x9169":["CS","1","CardiacBeatRejectionTechnique"],"0x9170":["CS","1","RespiratoryMotionCompensationTechnique"],"0x9171":["CS","1","RespiratorySignalSource"],"0x9172":["CS","1","BulkMotionCompensationTechnique"],"0x9173":["CS","1","BulkMotionSignalSource"],"0x9174":["CS","1","ApplicableSafetyStandardAgency"],"0x9175":["LO","1","ApplicableSafetyStandardDescription"],"0x9176":["SQ","1","OperatingModeSequence"],"0x9177":["CS","1","OperatingModeType"],"0x9178":["CS","1","OperatingMode"],"0x9179":["CS","1","SpecificAbsorptionRateDefinition"],"0x9180":["CS","1","GradientOutputType"],"0x9181":["FD","1","SpecificAbsorptionRateValue"],"0x9182":["FD","1","GradientOutput"],"0x9183":["CS","1","FlowCompensationDirection"],"0x9184":["FD","1","TaggingDelay"],"0x9185":["ST","1","RespiratoryMotionCompensationTechniqueDescription"],"0x9186":["SH","1","RespiratorySignalSourceID"],"0x9195":["FD","1","ChemicalShiftMinimumIntegrationLimitInHz"],"0x9196":["FD","1","ChemicalShiftMaximumIntegrationLimitInHz"],"0x9197":["SQ","1","MRVelocityEncodingSequence"],"0x9198":["CS","1","FirstOrderPhaseCorrection"],"0x9199":["CS","1","WaterReferencedPhaseCorrection"],"0x9200":["CS","1","MRSpectroscopyAcquisitionType"],"0x9214":["CS","1","RespiratoryCyclePosition"],"0x9217":["FD","1","VelocityEncodingMaximumValue"],"0x9218":["FD","1","TagSpacingSecondDimension"],"0x9219":["SS","1","TagAngleSecondAxis"],"0x9220":["FD","1","FrameAcquisitionDuration"],"0x9226":["SQ","1","MRImageFrameTypeSequence"],"0x9227":["SQ","1","MRSpectroscopyFrameTypeSequence"],"0x9231":["US","1","MRAcquisitionPhaseEncodingStepsInPlane"],"0x9232":["US","1","MRAcquisitionPhaseEncodingStepsOutOfPlane"],"0x9234":["UL","1","SpectroscopyAcquisitionPhaseColumns"],"0x9236":["CS","1","CardiacCyclePosition"],"0x9239":["SQ","1","SpecificAbsorptionRateSequence"],"0x9240":["US","1","RFEchoTrainLength"],"0x9241":["US","1","GradientEchoTrainLength"],"0x9250":["CS","1","ArterialSpinLabelingContrast"],"0x9251":["SQ","1","MRArterialSpinLabelingSequence"],"0x9252":["LO","1","ASLTechniqueDescription"],"0x9253":["US","1","ASLSlabNumber"],"0x9254":["FD","1","ASLSlabThickness"],"0x9255":["FD","3","ASLSlabOrientation"],"0x9256":["FD","3","ASLMidSlabPosition"],"0x9257":["CS","1","ASLContext"],"0x9258":["UL","1","ASLPulseTrainDuration"],"0x9259":["CS","1","ASLCrusherFlag"],"0x925A":["FD","1","ASLCrusherFlowLimit"],"0x925B":["LO","1","ASLCrusherDescription"],"0x925C":["CS","1","ASLBolusCutoffFlag"],"0x925D":["SQ","1","ASLBolusCutoffTimingSequence"],"0x925E":["LO","1","ASLBolusCutoffTechnique"],"0x925F":["UL","1","ASLBolusCutoffDelayTime"],"0x9260":["SQ","1","ASLSlabSequence"],"0x9295":["FD","1","ChemicalShiftMinimumIntegrationLimitInppm"],"0x9296":["FD","1","ChemicalShiftMaximumIntegrationLimitInppm"],"0x9297":["CS","1","WaterReferenceAcquisition"],"0x9298":["IS","1","EchoPeakPosition"],"0x9301":["SQ","1","CTAcquisitionTypeSequence"],"0x9302":["CS","1","AcquisitionType"],"0x9303":["FD","1","TubeAngle"],"0x9304":["SQ","1","CTAcquisitionDetailsSequence"],"0x9305":["FD","1","RevolutionTime"],"0x9306":["FD","1","SingleCollimationWidth"],"0x9307":["FD","1","TotalCollimationWidth"],"0x9308":["SQ","1","CTTableDynamicsSequence"],"0x9309":["FD","1","TableSpeed"],"0x9310":["FD","1","TableFeedPerRotation"],"0x9311":["FD","1","SpiralPitchFactor"],"0x9312":["SQ","1","CTGeometrySequence"],"0x9313":["FD","3","DataCollectionCenterPatient"],"0x9314":["SQ","1","CTReconstructionSequence"],"0x9315":["CS","1","ReconstructionAlgorithm"],"0x9316":["CS","1","ConvolutionKernelGroup"],"0x9317":["FD","2","ReconstructionFieldOfView"],"0x9318":["FD","3","ReconstructionTargetCenterPatient"],"0x9319":["FD","1","ReconstructionAngle"],"0x9320":["SH","1","ImageFilter"],"0x9321":["SQ","1","CTExposureSequence"],"0x9322":["FD","2","ReconstructionPixelSpacing"],"0x9323":["CS","1","ExposureModulationType"],"0x9324":["FD","1","EstimatedDoseSaving"],"0x9325":["SQ","1","CTXRayDetailsSequence"],"0x9326":["SQ","1","CTPositionSequence"],"0x9327":["FD","1","TablePosition"],"0x9328":["FD","1","ExposureTimeInms"],"0x9329":["SQ","1","CTImageFrameTypeSequence"],"0x9330":["FD","1","XRayTubeCurrentInmA"],"0x9332":["FD","1","ExposureInmAs"],"0x9333":["CS","1","ConstantVolumeFlag"],"0x9334":["CS","1","FluoroscopyFlag"],"0x9335":["FD","1","DistanceSourceToDataCollectionCenter"],"0x9337":["US","1","ContrastBolusAgentNumber"],"0x9338":["SQ","1","ContrastBolusIngredientCodeSequence"],"0x9340":["SQ","1","ContrastAdministrationProfileSequence"],"0x9341":["SQ","1","ContrastBolusUsageSequence"],"0x9342":["CS","1","ContrastBolusAgentAdministered"],"0x9343":["CS","1","ContrastBolusAgentDetected"],"0x9344":["CS","1","ContrastBolusAgentPhase"],"0x9345":["FD","1","CTDIvol"],"0x9346":["SQ","1","CTDIPhantomTypeCodeSequence"],"0x9351":["FL","1","CalciumScoringMassFactorPatient"],"0x9352":["FL","3","CalciumScoringMassFactorDevice"],"0x9353":["FL","1","EnergyWeightingFactor"],"0x9360":["SQ","1","CTAdditionalXRaySourceSequence"],"0x9401":["SQ","1","ProjectionPixelCalibrationSequence"],"0x9402":["FL","1","DistanceSourceToIsocenter"],"0x9403":["FL","1","DistanceObjectToTableTop"],"0x9404":["FL","2","ObjectPixelSpacingInCenterOfBeam"],"0x9405":["SQ","1","PositionerPositionSequence"],"0x9406":["SQ","1","TablePositionSequence"],"0x9407":["SQ","1","CollimatorShapeSequence"],"0x9410":["CS","1","PlanesInAcquisition"],"0x9412":["SQ","1","XAXRFFrameCharacteristicsSequence"],"0x9417":["SQ","1","FrameAcquisitionSequence"],"0x9420":["CS","1","XRayReceptorType"],"0x9423":["LO","1","AcquisitionProtocolName"],"0x9424":["LT","1","AcquisitionProtocolDescription"],"0x9425":["CS","1","ContrastBolusIngredientOpaque"],"0x9426":["FL","1","DistanceReceptorPlaneToDetectorHousing"],"0x9427":["CS","1","IntensifierActiveShape"],"0x9428":["FL","1-2","IntensifierActiveDimensions"],"0x9429":["FL","2","PhysicalDetectorSize"],"0x9430":["FL","2","PositionOfIsocenterProjection"],"0x9432":["SQ","1","FieldOfViewSequence"],"0x9433":["LO","1","FieldOfViewDescription"],"0x9434":["SQ","1","ExposureControlSensingRegionsSequence"],"0x9435":["CS","1","ExposureControlSensingRegionShape"],"0x9436":["SS","1","ExposureControlSensingRegionLeftVerticalEdge"],"0x9437":["SS","1","ExposureControlSensingRegionRightVerticalEdge"],"0x9438":["SS","1","ExposureControlSensingRegionUpperHorizontalEdge"],"0x9439":["SS","1","ExposureControlSensingRegionLowerHorizontalEdge"],"0x9440":["SS","2","CenterOfCircularExposureControlSensingRegion"],"0x9441":["US","1","RadiusOfCircularExposureControlSensingRegion"],"0x9442":["SS","2-n","VerticesOfThePolygonalExposureControlSensingRegion"],"0x9445":["","",""],"0x9447":["FL","1","ColumnAngulationPatient"],"0x9449":["FL","1","BeamAngle"],"0x9451":["SQ","1","FrameDetectorParametersSequence"],"0x9452":["FL","1","CalculatedAnatomyThickness"],"0x9455":["SQ","1","CalibrationSequence"],"0x9456":["SQ","1","ObjectThicknessSequence"],"0x9457":["CS","1","PlaneIdentification"],"0x9461":["FL","1-2","FieldOfViewDimensionsInFloat"],"0x9462":["SQ","1","IsocenterReferenceSystemSequence"],"0x9463":["FL","1","PositionerIsocenterPrimaryAngle"],"0x9464":["FL","1","PositionerIsocenterSecondaryAngle"],"0x9465":["FL","1","PositionerIsocenterDetectorRotationAngle"],"0x9466":["FL","1","TableXPositionToIsocenter"],"0x9467":["FL","1","TableYPositionToIsocenter"],"0x9468":["FL","1","TableZPositionToIsocenter"],"0x9469":["FL","1","TableHorizontalRotationAngle"],"0x9470":["FL","1","TableHeadTiltAngle"],"0x9471":["FL","1","TableCradleTiltAngle"],"0x9472":["SQ","1","FrameDisplayShutterSequence"],"0x9473":["FL","1","AcquiredImageAreaDoseProduct"],"0x9474":["CS","1","CArmPositionerTabletopRelationship"],"0x9476":["SQ","1","XRayGeometrySequence"],"0x9477":["SQ","1","IrradiationEventIdentificationSequence"],"0x9504":["SQ","1","XRay3DFrameTypeSequence"],"0x9506":["SQ","1","ContributingSourcesSequence"],"0x9507":["SQ","1","XRay3DAcquisitionSequence"],"0x9508":["FL","1","PrimaryPositionerScanArc"],"0x9509":["FL","1","SecondaryPositionerScanArc"],"0x9510":["FL","1","PrimaryPositionerScanStartAngle"],"0x9511":["FL","1","SecondaryPositionerScanStartAngle"],"0x9514":["FL","1","PrimaryPositionerIncrement"],"0x9515":["FL","1","SecondaryPositionerIncrement"],"0x9516":["DT","1","StartAcquisitionDateTime"],"0x9517":["DT","1","EndAcquisitionDateTime"],"0x9518":["SS","1","PrimaryPositionerIncrementSign"],"0x9519":["SS","1","SecondaryPositionerIncrementSign"],"0x9524":["LO","1","ApplicationName"],"0x9525":["LO","1","ApplicationVersion"],"0x9526":["LO","1","ApplicationManufacturer"],"0x9527":["CS","1","AlgorithmType"],"0x9528":["LO","1","AlgorithmDescription"],"0x9530":["SQ","1","XRay3DReconstructionSequence"],"0x9531":["LO","1","ReconstructionDescription"],"0x9538":["SQ","1","PerProjectionAcquisitionSequence"],"0x9541":["SQ","1","DetectorPositionSequence"],"0x9542":["SQ","1","XRayAcquisitionDoseSequence"],"0x9543":["FD","1","XRaySourceIsocenterPrimaryAngle"],"0x9544":["FD","1","XRaySourceIsocenterSecondaryAngle"],"0x9545":["FD","1","BreastSupportIsocenterPrimaryAngle"],"0x9546":["FD","1","BreastSupportIsocenterSecondaryAngle"],"0x9547":["FD","1","BreastSupportXPositionToIsocenter"],"0x9548":["FD","1","BreastSupportYPositionToIsocenter"],"0x9549":["FD","1","BreastSupportZPositionToIsocenter"],"0x9550":["FD","1","DetectorIsocenterPrimaryAngle"],"0x9551":["FD","1","DetectorIsocenterSecondaryAngle"],"0x9552":["FD","1","DetectorXPositionToIsocenter"],"0x9553":["FD","1","DetectorYPositionToIsocenter"],"0x9554":["FD","1","DetectorZPositionToIsocenter"],"0x9555":["SQ","1","XRayGridSequence"],"0x9556":["SQ","1","XRayFilterSequence"],"0x9557":["FD","3","DetectorActiveAreaTLHCPosition"],"0x9558":["FD","6","DetectorActiveAreaOrientation"],"0x9559":["CS","1","PositionerPrimaryAngleDirection"],"0x9601":["SQ","1","DiffusionBMatrixSequence"],"0x9602":["FD","1","DiffusionBValueXX"],"0x9603":["FD","1","DiffusionBValueXY"],"0x9604":["FD","1","DiffusionBValueXZ"],"0x9605":["FD","1","DiffusionBValueYY"],"0x9606":["FD","1","DiffusionBValueYZ"],"0x9607":["FD","1","DiffusionBValueZZ"],"0x9701":["DT","1","DecayCorrectionDateTime"],"0x9715":["FD","1","StartDensityThreshold"],"0x9716":["FD","1","StartRelativeDensityDifferenceThreshold"],"0x9717":["FD","1","StartCardiacTriggerCountThreshold"],"0x9718":["FD","1","StartRespiratoryTriggerCountThreshold"],"0x9719":["FD","1","TerminationCountsThreshold"],"0x9720":["FD","1","TerminationDensityThreshold"],"0x9721":["FD","1","TerminationRelativeDensityThreshold"],"0x9722":["FD","1","TerminationTimeThreshold"],"0x9723":["FD","1","TerminationCardiacTriggerCountThreshold"],"0x9724":["FD","1","TerminationRespiratoryTriggerCountThreshold"],"0x9725":["CS","1","DetectorGeometry"],"0x9726":["FD","1","TransverseDetectorSeparation"],"0x9727":["FD","1","AxialDetectorDimension"],"0x9729":["US","1","RadiopharmaceuticalAgentNumber"],"0x9732":["SQ","1","PETFrameAcquisitionSequence"],"0x9733":["SQ","1","PETDetectorMotionDetailsSequence"],"0x9734":["SQ","1","PETTableDynamicsSequence"],"0x9735":["SQ","1","PETPositionSequence"],"0x9736":["SQ","1","PETFrameCorrectionFactorsSequence"],"0x9737":["SQ","1","RadiopharmaceuticalUsageSequence"],"0x9738":["CS","1","AttenuationCorrectionSource"],"0x9739":["US","1","NumberOfIterations"],"0x9740":["US","1","NumberOfSubsets"],"0x9749":["SQ","1","PETReconstructionSequence"],"0x9751":["SQ","1","PETFrameTypeSequence"],"0x9755":["CS","1","TimeOfFlightInformationUsed"],"0x9756":["CS","1","ReconstructionType"],"0x9758":["CS","1","DecayCorrected"],"0x9759":["CS","1","AttenuationCorrected"],"0x9760":["CS","1","ScatterCorrected"],"0x9761":["CS","1","DeadTimeCorrected"],"0x9762":["CS","1","GantryMotionCorrected"],"0x9763":["CS","1","PatientMotionCorrected"],"0x9764":["CS","1","CountLossNormalizationCorrected"],"0x9765":["CS","1","RandomsCorrected"],"0x9766":["CS","1","NonUniformRadialSamplingCorrected"],"0x9767":["CS","1","SensitivityCalibrated"],"0x9768":["CS","1","DetectorNormalizationCorrection"],"0x9769":["CS","1","IterativeReconstructionMethod"],"0x9770":["CS","1","AttenuationCorrectionTemporalRelationship"],"0x9771":["SQ","1","PatientPhysiologicalStateSequence"],"0x9772":["SQ","1","PatientPhysiologicalStateCodeSequence"],"0x9801":["FD","1-n","DepthsOfFocus"],"0x9803":["SQ","1","ExcludedIntervalsSequence"],"0x9804":["DT","1","ExclusionStartDateTime"],"0x9805":["FD","1","ExclusionDuration"],"0x9806":["SQ","1","USImageDescriptionSequence"],"0x9807":["SQ","1","ImageDataTypeSequence"],"0x9808":["CS","1","DataType"],"0x9809":["SQ","1","TransducerScanPatternCodeSequence"],"0x980B":["CS","1","AliasedDataType"],"0x980C":["CS","1","PositionMeasuringDeviceUsed"],"0x980D":["SQ","1","TransducerGeometryCodeSequence"],"0x980E":["SQ","1","TransducerBeamSteeringCodeSequence"],"0x980F":["SQ","1","TransducerApplicationCodeSequence"],"0x9810":["xs","1","ZeroVelocityPixelValue"],"0xA001":["SQ","1","ContributingEquipmentSequence"],"0xA002":["DT","1","ContributionDateTime"],"0xA003":["ST","1","ContributionDescription"]},"0x0020":{"0x0000":["UL","1","GenericGroupLength"],"0x000D":["UI","1","StudyInstanceUID"],"0x000E":["UI","1","SeriesInstanceUID"],"0x0010":["SH","1","StudyID"],"0x0011":["IS","1","SeriesNumber"],"0x0012":["IS","1","AcquisitionNumber"],"0x0013":["IS","1","InstanceNumber"],"0x0014":["IS","1","IsotopeNumber"],"0x0015":["IS","1","PhaseNumber"],"0x0016":["IS","1","IntervalNumber"],"0x0017":["IS","1","TimeSlotNumber"],"0x0018":["IS","1","AngleNumber"],"0x0019":["IS","1","ItemNumber"],"0x0020":["CS","2","PatientOrientation"],"0x0022":["IS","1","OverlayNumber"],"0x0024":["IS","1","CurveNumber"],"0x0026":["IS","1","LUTNumber"],"0x0030":["DS","3","ImagePosition"],"0x0032":["DS","3","ImagePositionPatient"],"0x0035":["DS","6","ImageOrientation"],"0x0037":["DS","6","ImageOrientationPatient"],"0x0050":["DS","1","Location"],"0x0052":["UI","1","FrameOfReferenceUID"],"0x0060":["CS","1","Laterality"],"0x0062":["CS","1","ImageLaterality"],"0x0070":["LO","1","ImageGeometryType"],"0x0080":["CS","1-n","MaskingImage"],"0x00AA":["IS","1","ReportNumber"],"0x0100":["IS","1","TemporalPositionIdentifier"],"0x0105":["IS","1","NumberOfTemporalPositions"],"0x0110":["DS","1","TemporalResolution"],"0x0200":["UI","1","SynchronizationFrameOfReferenceUID"],"0x0242":["UI","1","SOPInstanceUIDOfConcatenationSource"],"0x1000":["IS","1","SeriesInStudy"],"0x1001":["IS","1","AcquisitionsInSeries"],"0x1002":["IS","1","ImagesInAcquisition"],"0x1003":["IS","1","ImagesInSeries"],"0x1004":["IS","1","AcquisitionsInStudy"],"0x1005":["IS","1","ImagesInStudy"],"0x1020":["LO","1-n","Reference"],"0x1040":["LO","1","PositionReferenceIndicator"],"0x1041":["DS","1","SliceLocation"],"0x1070":["IS","1-n","OtherStudyNumbers"],"0x1200":["IS","1","NumberOfPatientRelatedStudies"],"0x1202":["IS","1","NumberOfPatientRelatedSeries"],"0x1204":["IS","1","NumberOfPatientRelatedInstances"],"0x1206":["IS","1","NumberOfStudyRelatedSeries"],"0x1208":["IS","1","NumberOfStudyRelatedInstances"],"0x1209":["IS","1","NumberOfSeriesRelatedInstances"],"0x3100":["CS","1-n","SourceImageIDs"],"0x3401":["CS","1","ModifyingDeviceID"],"0x3402":["CS","1","ModifiedImageID"],"0x3403":["DA","1","ModifiedImageDate"],"0x3404":["LO","1","ModifyingDeviceManufacturer"],"0x3405":["TM","1","ModifiedImageTime"],"0x3406":["LO","1","ModifiedImageDescription"],"0x4000":["LT","1","ImageComments"],"0x5000":["AT","1-n","OriginalImageIdentification"],"0x5002":["LO","1-n","OriginalImageIdentificationNomenclature"],"0x9056":["SH","1","StackID"],"0x9057":["UL","1","InStackPositionNumber"],"0x9071":["SQ","1","FrameAnatomySequence"],"0x9072":["CS","1","FrameLaterality"],"0x9111":["SQ","1","FrameContentSequence"],"0x9113":["SQ","1","PlanePositionSequence"],"0x9116":["SQ","1","PlaneOrientationSequence"],"0x9128":["UL","1","TemporalPositionIndex"],"0x9153":["FD","1","NominalCardiacTriggerDelayTime"],"0x9154":["FL","1","NominalCardiacTriggerTimePriorToRPeak"],"0x9155":["FL","1","ActualCardiacTriggerTimePriorToRPeak"],"0x9156":["US","1","FrameAcquisitionNumber"],"0x9157":["UL","1-n","DimensionIndexValues"],"0x9158":["LT","1","FrameComments"],"0x9161":["UI","1","ConcatenationUID"],"0x9162":["US","1","InConcatenationNumber"],"0x9163":["US","1","InConcatenationTotalNumber"],"0x9164":["UI","1","DimensionOrganizationUID"],"0x9165":["AT","1","DimensionIndexPointer"],"0x9167":["AT","1","FunctionalGroupPointer"],"0x9170":["SQ","1","UnassignedSharedConvertedAttributesSequence"],"0x9171":["SQ","1","UnassignedPerFrameConvertedAttributesSequence"],"0x9172":["SQ","1","ConversionSourceAttributesSequence"],"0x9213":["LO","1","DimensionIndexPrivateCreator"],"0x9221":["SQ","1","DimensionOrganizationSequence"],"0x9222":["SQ","1","DimensionIndexSequence"],"0x9228":["UL","1","ConcatenationFrameOffsetNumber"],"0x9238":["LO","1","FunctionalGroupPrivateCreator"],"0x9241":["FL","1","NominalPercentageOfCardiacPhase"],"0x9245":["FL","1","NominalPercentageOfRespiratoryPhase"],"0x9246":["FL","1","StartingRespiratoryAmplitude"],"0x9247":["CS","1","StartingRespiratoryPhase"],"0x9248":["FL","1","EndingRespiratoryAmplitude"],"0x9249":["CS","1","EndingRespiratoryPhase"],"0x9250":["CS","1","RespiratoryTriggerType"],"0x9251":["FD","1","RRIntervalTimeNominal"],"0x9252":["FD","1","ActualCardiacTriggerDelayTime"],"0x9253":["SQ","1","RespiratorySynchronizationSequence"],"0x9254":["FD","1","RespiratoryIntervalTime"],"0x9255":["FD","1","NominalRespiratoryTriggerDelayTime"],"0x9256":["FD","1","RespiratoryTriggerDelayThreshold"],"0x9257":["FD","1","ActualRespiratoryTriggerDelayTime"],"0x9301":["FD","3","ImagePositionVolume"],"0x9302":["FD","6","ImageOrientationVolume"],"0x9307":["CS","1","UltrasoundAcquisitionGeometry"],"0x9308":["FD","3","ApexPosition"],"0x9309":["FD","16","VolumeToTransducerMappingMatrix"],"0x930A":["FD","16","VolumeToTableMappingMatrix"],"0x930B":["CS","1","VolumeToTransducerRelationship"],"0x930C":["CS","1","PatientFrameOfReferenceSource"],"0x930D":["FD","1","TemporalPositionTimeOffset"],"0x930E":["SQ","1","PlanePositionVolumeSequence"],"0x930F":["SQ","1","PlaneOrientationVolumeSequence"],"0x9310":["SQ","1","TemporalPositionSequence"],"0x9311":["CS","1","DimensionOrganizationType"],"0x9312":["UI","1","VolumeFrameOfReferenceUID"],"0x9313":["UI","1","TableFrameOfReferenceUID"],"0x9421":["LO","1","DimensionDescriptionLabel"],"0x9450":["SQ","1","PatientOrientationInFrameSequence"],"0x9453":["LO","1","FrameLabel"],"0x9518":["US","1-n","AcquisitionIndex"],"0x9529":["SQ","1","ContributingSOPInstancesReferenceSequence"],"0x9536":["US","1","ReconstructionIndex"]},"0x0022":{"0x0000":["UL","1","GenericGroupLength"],"0x0001":["US","1","LightPathFilterPassThroughWavelength"],"0x0002":["US","2","LightPathFilterPassBand"],"0x0003":["US","1","ImagePathFilterPassThroughWavelength"],"0x0004":["US","2","ImagePathFilterPassBand"],"0x0005":["CS","1","PatientEyeMovementCommanded"],"0x0006":["SQ","1","PatientEyeMovementCommandCodeSequence"],"0x0007":["FL","1","SphericalLensPower"],"0x0008":["FL","1","CylinderLensPower"],"0x0009":["FL","1","CylinderAxis"],"0x000A":["FL","1","EmmetropicMagnification"],"0x000B":["FL","1","IntraOcularPressure"],"0x000C":["FL","1","HorizontalFieldOfView"],"0x000D":["CS","1","PupilDilated"],"0x000E":["FL","1","DegreeOfDilation"],"0x0010":["FL","1","StereoBaselineAngle"],"0x0011":["FL","1","StereoBaselineDisplacement"],"0x0012":["FL","1","StereoHorizontalPixelOffset"],"0x0013":["FL","1","StereoVerticalPixelOffset"],"0x0014":["FL","1","StereoRotation"],"0x0015":["SQ","1","AcquisitionDeviceTypeCodeSequence"],"0x0016":["SQ","1","IlluminationTypeCodeSequence"],"0x0017":["SQ","1","LightPathFilterTypeStackCodeSequence"],"0x0018":["SQ","1","ImagePathFilterTypeStackCodeSequence"],"0x0019":["SQ","1","LensesCodeSequence"],"0x001A":["SQ","1","ChannelDescriptionCodeSequence"],"0x001B":["SQ","1","RefractiveStateSequence"],"0x001C":["SQ","1","MydriaticAgentCodeSequence"],"0x001D":["SQ","1","RelativeImagePositionCodeSequence"],"0x001E":["FL","1","CameraAngleOfView"],"0x0020":["SQ","1","StereoPairsSequence"],"0x0021":["SQ","1","LeftImageSequence"],"0x0022":["SQ","1","RightImageSequence"],"0x0028":["CS","1","StereoPairsPresent"],"0x0030":["FL","1","AxialLengthOfTheEye"],"0x0031":["SQ","1","OphthalmicFrameLocationSequence"],"0x0032":["FL","2-2n","ReferenceCoordinates"],"0x0035":["FL","1","DepthSpatialResolution"],"0x0036":["FL","1","MaximumDepthDistortion"],"0x0037":["FL","1","AlongScanSpatialResolution"],"0x0038":["FL","1","MaximumAlongScanDistortion"],"0x0039":["CS","1","OphthalmicImageOrientation"],"0x0041":["FL","1","DepthOfTransverseImage"],"0x0042":["SQ","1","MydriaticAgentConcentrationUnitsSequence"],"0x0048":["FL","1","AcrossScanSpatialResolution"],"0x0049":["FL","1","MaximumAcrossScanDistortion"],"0x004E":["DS","1","MydriaticAgentConcentration"],"0x0055":["FL","1","IlluminationWaveLength"],"0x0056":["FL","1","IlluminationPower"],"0x0057":["FL","1","IlluminationBandwidth"],"0x0058":["SQ","1","MydriaticAgentSequence"],"0x1007":["SQ","1","OphthalmicAxialMeasurementsRightEyeSequence"],"0x1008":["SQ","1","OphthalmicAxialMeasurementsLeftEyeSequence"],"0x1009":["CS","1","OphthalmicAxialMeasurementsDeviceType"],"0x1010":["CS","1","OphthalmicAxialLengthMeasurementsType"],"0x1012":["SQ","1","OphthalmicAxialLengthSequence"],"0x1019":["FL","1","OphthalmicAxialLength"],"0x1024":["SQ","1","LensStatusCodeSequence"],"0x1025":["SQ","1","VitreousStatusCodeSequence"],"0x1028":["SQ","1","IOLFormulaCodeSequence"],"0x1029":["LO","1","IOLFormulaDetail"],"0x1033":["FL","1","KeratometerIndex"],"0x1035":["SQ","1","SourceOfOphthalmicAxialLengthCodeSequence"],"0x1037":["FL","1","TargetRefraction"],"0x1039":["CS","1","RefractiveProcedureOccurred"],"0x1040":["SQ","1","RefractiveSurgeryTypeCodeSequence"],"0x1044":["SQ","1","OphthalmicUltrasoundMethodCodeSequence"],"0x1050":["SQ","1","OphthalmicAxialLengthMeasurementsSequence"],"0x1053":["FL","1","IOLPower"],"0x1054":["FL","1","PredictedRefractiveError"],"0x1059":["FL","1","OphthalmicAxialLengthVelocity"],"0x1065":["LO","1","LensStatusDescription"],"0x1066":["LO","1","VitreousStatusDescription"],"0x1090":["SQ","1","IOLPowerSequence"],"0x1092":["SQ","1","LensConstantSequence"],"0x1093":["LO","1","IOLManufacturer"],"0x1094":["LO","1","LensConstantDescription"],"0x1095":["LO","1","ImplantName"],"0x1096":["SQ","1","KeratometryMeasurementTypeCodeSequence"],"0x1097":["LO","1","ImplantPartNumber"],"0x1100":["SQ","1","ReferencedOphthalmicAxialMeasurementsSequence"],"0x1101":["SQ","1","OphthalmicAxialLengthMeasurementsSegmentNameCodeSequence"],"0x1103":["SQ","1","RefractiveErrorBeforeRefractiveSurgeryCodeSequence"],"0x1121":["FL","1","IOLPowerForExactEmmetropia"],"0x1122":["FL","1","IOLPowerForExactTargetRefraction"],"0x1125":["SQ","1","AnteriorChamberDepthDefinitionCodeSequence"],"0x1127":["SQ","1","LensThicknessSequence"],"0x1128":["SQ","1","AnteriorChamberDepthSequence"],"0x1130":["FL","1","LensThickness"],"0x1131":["FL","1","AnteriorChamberDepth"],"0x1132":["SQ","1","SourceOfLensThicknessDataCodeSequence"],"0x1133":["SQ","1","SourceOfAnteriorChamberDepthDataCodeSequence"],"0x1134":["SQ","1","SourceOfRefractiveMeasurementsSequence"],"0x1135":["SQ","1","SourceOfRefractiveMeasurementsCodeSequence"],"0x1140":["CS","1","OphthalmicAxialLengthMeasurementModified"],"0x1150":["SQ","1","OphthalmicAxialLengthDataSourceCodeSequence"],"0x1153":["SQ","1","OphthalmicAxialLengthAcquisitionMethodCodeSequence"],"0x1155":["FL","1","SignalToNoiseRatio"],"0x1159":["LO","1","OphthalmicAxialLengthDataSourceDescription"],"0x1210":["SQ","1","OphthalmicAxialLengthMeasurementsTotalLengthSequence"],"0x1211":["SQ","1","OphthalmicAxialLengthMeasurementsSegmentalLengthSequence"],"0x1212":["SQ","1","OphthalmicAxialLengthMeasurementsLengthSummationSequence"],"0x1220":["SQ","1","UltrasoundOphthalmicAxialLengthMeasurementsSequence"],"0x1225":["SQ","1","OpticalOphthalmicAxialLengthMeasurementsSequence"],"0x1230":["SQ","1","UltrasoundSelectedOphthalmicAxialLengthSequence"],"0x1250":["SQ","1","OphthalmicAxialLengthSelectionMethodCodeSequence"],"0x1255":["SQ","1","OpticalSelectedOphthalmicAxialLengthSequence"],"0x1257":["SQ","1","SelectedSegmentalOphthalmicAxialLengthSequence"],"0x1260":["SQ","1","SelectedTotalOphthalmicAxialLengthSequence"],"0x1262":["SQ","1","OphthalmicAxialLengthQualityMetricSequence"],"0x1265":["SQ","1","OphthalmicAxialLengthQualityMetricTypeCodeSequence"],"0x1273":["LO","1","OphthalmicAxialLengthQualityMetricTypeDescription"],"0x1300":["SQ","1","IntraocularLensCalculationsRightEyeSequence"],"0x1310":["SQ","1","IntraocularLensCalculationsLeftEyeSequence"],"0x1330":["SQ","1","ReferencedOphthalmicAxialLengthMeasurementQCImageSequence"],"0x1415":["CS","1","OphthalmicMappingDeviceType"],"0x1420":["SQ","1","AcquisitionMethodCodeSequence"],"0x1423":["SQ","1","AcquisitionMethodAlgorithmSequence"],"0x1436":["SQ","1","OphthalmicThicknessMapTypeCodeSequence"],"0x1443":["SQ","1","OphthalmicThicknessMappingNormalsSequence"],"0x1445":["SQ","1","RetinalThicknessDefinitionCodeSequence"],"0x1450":["SQ","1","PixelValueMappingToCodedConceptSequence"],"0x1452":["xs","1","MappedPixelValue"],"0x1454":["LO","1","PixelValueMappingExplanation"],"0x1458":["SQ","1","OphthalmicThicknessMapQualityThresholdSequence"],"0x1460":["FL","1","OphthalmicThicknessMapThresholdQualityRating"],"0x1463":["FL","2","AnatomicStructureReferencePoint"],"0x1465":["SQ","1","RegistrationToLocalizerSequence"],"0x1466":["CS","1","RegisteredLocalizerUnits"],"0x1467":["FL","2","RegisteredLocalizerTopLeftHandCorner"],"0x1468":["FL","2","RegisteredLocalizerBottomRightHandCorner"],"0x1470":["SQ","1","OphthalmicThicknessMapQualityRatingSequence"],"0x1472":["SQ","1","RelevantOPTAttributesSequence"],"0x1512":["SQ","1","TransformationMethodCodeSequence"],"0x1513":["SQ","1","TransformationAlgorithmSequence"],"0x1515":["CS","1","OphthalmicAxialLengthMethod"],"0x1517":["FL","1","OphthalmicFOV"],"0x1518":["SQ","1","TwoDimensionalToThreeDimensionalMapSequence"],"0x1525":["SQ","1","WideFieldOphthalmicPhotographyQualityRatingSequence"],"0x1526":["SQ","1","WideFieldOphthalmicPhotographyQualityThresholdSequence"],"0x1527":["FL","1","WideFieldOphthalmicPhotographyThresholdQualityRating"],"0x1528":["FL","1","XCoordinatesCenterPixelViewAngle"],"0x1529":["FL","1","YCoordinatesCenterPixelViewAngle"],"0x1530":["UL","1","NumberOfMapPoints"],"0x1531":["OF","1","TwoDimensionalToThreeDimensionalMapData"]},"0x0024":{"0x0000":["UL","1","GenericGroupLength"],"0x0010":["FL","1","VisualFieldHorizontalExtent"],"0x0011":["FL","1","VisualFieldVerticalExtent"],"0x0012":["CS","1","VisualFieldShape"],"0x0016":["SQ","1","ScreeningTestModeCodeSequence"],"0x0018":["FL","1","MaximumStimulusLuminance"],"0x0020":["FL","1","BackgroundLuminance"],"0x0021":["SQ","1","StimulusColorCodeSequence"],"0x0024":["SQ","1","BackgroundIlluminationColorCodeSequence"],"0x0025":["FL","1","StimulusArea"],"0x0028":["FL","1","StimulusPresentationTime"],"0x0032":["SQ","1","FixationSequence"],"0x0033":["SQ","1","FixationMonitoringCodeSequence"],"0x0034":["SQ","1","VisualFieldCatchTrialSequence"],"0x0035":["US","1","FixationCheckedQuantity"],"0x0036":["US","1","PatientNotProperlyFixatedQuantity"],"0x0037":["CS","1","PresentedVisualStimuliDataFlag"],"0x0038":["US","1","NumberOfVisualStimuli"],"0x0039":["CS","1","ExcessiveFixationLossesDataFlag"],"0x0040":["CS","1","ExcessiveFixationLosses"],"0x0042":["US","1","StimuliRetestingQuantity"],"0x0044":["LT","1","CommentsOnPatientPerformanceOfVisualField"],"0x0045":["CS","1","FalseNegativesEstimateFlag"],"0x0046":["FL","1","FalseNegativesEstimate"],"0x0048":["US","1","NegativeCatchTrialsQuantity"],"0x0050":["US","1","FalseNegativesQuantity"],"0x0051":["CS","1","ExcessiveFalseNegativesDataFlag"],"0x0052":["CS","1","ExcessiveFalseNegatives"],"0x0053":["CS","1","FalsePositivesEstimateFlag"],"0x0054":["FL","1","FalsePositivesEstimate"],"0x0055":["CS","1","CatchTrialsDataFlag"],"0x0056":["US","1","PositiveCatchTrialsQuantity"],"0x0057":["CS","1","TestPointNormalsDataFlag"],"0x0058":["SQ","1","TestPointNormalsSequence"],"0x0059":["CS","1","GlobalDeviationProbabilityNormalsFlag"],"0x0060":["US","1","FalsePositivesQuantity"],"0x0061":["CS","1","ExcessiveFalsePositivesDataFlag"],"0x0062":["CS","1","ExcessiveFalsePositives"],"0x0063":["CS","1","VisualFieldTestNormalsFlag"],"0x0064":["SQ","1","ResultsNormalsSequence"],"0x0065":["SQ","1","AgeCorrectedSensitivityDeviationAlgorithmSequence"],"0x0066":["FL","1","GlobalDeviationFromNormal"],"0x0067":["SQ","1","GeneralizedDefectSensitivityDeviationAlgorithmSequence"],"0x0068":["FL","1","LocalizedDeviationFromNormal"],"0x0069":["LO","1","PatientReliabilityIndicator"],"0x0070":["FL","1","VisualFieldMeanSensitivity"],"0x0071":["FL","1","GlobalDeviationProbability"],"0x0072":["CS","1","LocalDeviationProbabilityNormalsFlag"],"0x0073":["FL","1","LocalizedDeviationProbability"],"0x0074":["CS","1","ShortTermFluctuationCalculated"],"0x0075":["FL","1","ShortTermFluctuation"],"0x0076":["CS","1","ShortTermFluctuationProbabilityCalculated"],"0x0077":["FL","1","ShortTermFluctuationProbability"],"0x0078":["CS","1","CorrectedLocalizedDeviationFromNormalCalculated"],"0x0079":["FL","1","CorrectedLocalizedDeviationFromNormal"],"0x0080":["CS","1","CorrectedLocalizedDeviationFromNormalProbabilityCalculated"],"0x0081":["FL","1","CorrectedLocalizedDeviationFromNormalProbability"],"0x0083":["SQ","1","GlobalDeviationProbabilitySequence"],"0x0085":["SQ","1","LocalizedDeviationProbabilitySequence"],"0x0086":["CS","1","FovealSensitivityMeasured"],"0x0087":["FL","1","FovealSensitivity"],"0x0088":["FL","1","VisualFieldTestDuration"],"0x0089":["SQ","1","VisualFieldTestPointSequence"],"0x0090":["FL","1","VisualFieldTestPointXCoordinate"],"0x0091":["FL","1","VisualFieldTestPointYCoordinate"],"0x0092":["FL","1","AgeCorrectedSensitivityDeviationValue"],"0x0093":["CS","1","StimulusResults"],"0x0094":["FL","1","SensitivityValue"],"0x0095":["CS","1","RetestStimulusSeen"],"0x0096":["FL","1","RetestSensitivityValue"],"0x0097":["SQ","1","VisualFieldTestPointNormalsSequence"],"0x0098":["FL","1","QuantifiedDefect"],"0x0100":["FL","1","AgeCorrectedSensitivityDeviationProbabilityValue"],"0x0102":["CS","1","GeneralizedDefectCorrectedSensitivityDeviationFlag"],"0x0103":["FL","1","GeneralizedDefectCorrectedSensitivityDeviationValue"],"0x0104":["FL","1","GeneralizedDefectCorrectedSensitivityDeviationProbabilityValue"],"0x0105":["FL","1","MinimumSensitivityValue"],"0x0106":["CS","1","BlindSpotLocalized"],"0x0107":["FL","1","BlindSpotXCoordinate"],"0x0108":["FL","1","BlindSpotYCoordinate"],"0x0110":["SQ","1","VisualAcuityMeasurementSequence"],"0x0112":["SQ","1","RefractiveParametersUsedOnPatientSequence"],"0x0113":["CS","1","MeasurementLaterality"],"0x0114":["SQ","1","OphthalmicPatientClinicalInformationLeftEyeSequence"],"0x0115":["SQ","1","OphthalmicPatientClinicalInformationRightEyeSequence"],"0x0117":["CS","1","FovealPointNormativeDataFlag"],"0x0118":["FL","1","FovealPointProbabilityValue"],"0x0120":["CS","1","ScreeningBaselineMeasured"],"0x0122":["SQ","1","ScreeningBaselineMeasuredSequence"],"0x0124":["CS","1","ScreeningBaselineType"],"0x0126":["FL","1","ScreeningBaselineValue"],"0x0202":["LO","1","AlgorithmSource"],"0x0306":["LO","1","DataSetName"],"0x0307":["LO","1","DataSetVersion"],"0x0308":["LO","1","DataSetSource"],"0x0309":["LO","1","DataSetDescription"],"0x0317":["SQ","1","VisualFieldTestReliabilityGlobalIndexSequence"],"0x0320":["SQ","1","VisualFieldGlobalResultsIndexSequence"],"0x0325":["SQ","1","DataObservationSequence"],"0x0338":["CS","1","IndexNormalsFlag"],"0x0341":["FL","1","IndexProbability"],"0x0344":["SQ","1","IndexProbabilitySequence"]},"0x0028":{"0x0000":["UL","1","GenericGroupLength"],"0x0002":["US","1","SamplesPerPixel"],"0x0003":["US","1","SamplesPerPixelUsed"],"0x0004":["CS","1","PhotometricInterpretation"],"0x0005":["US","1","ImageDimensions"],"0x0006":["US","1","PlanarConfiguration"],"0x0008":["IS","1","NumberOfFrames"],"0x0009":["AT","1-n","FrameIncrementPointer"],"0x000A":["AT","1-n","FrameDimensionPointer"],"0x0010":["US","1","Rows"],"0x0011":["US","1","Columns"],"0x0012":["US","1","Planes"],"0x0014":["US","1","UltrasoundColorDataPresent"],"0x0020":["","",""],"0x0030":["DS","2","PixelSpacing"],"0x0031":["DS","2","ZoomFactor"],"0x0032":["DS","2","ZoomCenter"],"0x0034":["IS","2","PixelAspectRatio"],"0x0040":["CS","1","ImageFormat"],"0x0050":["LO","1-n","ManipulatedImage"],"0x0051":["CS","1-n","CorrectedImage"],"0x005F":["LO","1","CompressionRecognitionCode"],"0x0060":["CS","1","CompressionCode"],"0x0061":["SH","1","CompressionOriginator"],"0x0062":["LO","1","CompressionLabel"],"0x0063":["SH","1","CompressionDescription"],"0x0065":["CS","1-n","CompressionSequence"],"0x0066":["AT","1-n","CompressionStepPointers"],"0x0068":["US","1","RepeatInterval"],"0x0069":["US","1","BitsGrouped"],"0x0070":["US","1-n","PerimeterTable"],"0x0071":["xs","1","PerimeterValue"],"0x0080":["US","1","PredictorRows"],"0x0081":["US","1","PredictorColumns"],"0x0082":["US","1-n","PredictorConstants"],"0x0090":["CS","1","BlockedPixels"],"0x0091":["US","1","BlockRows"],"0x0092":["US","1","BlockColumns"],"0x0093":["US","1","RowOverlap"],"0x0094":["US","1","ColumnOverlap"],"0x0100":["US","1","BitsAllocated"],"0x0101":["US","1","BitsStored"],"0x0102":["US","1","HighBit"],"0x0103":["US","1","PixelRepresentation"],"0x0104":["xs","1","SmallestValidPixelValue"],"0x0105":["xs","1","LargestValidPixelValue"],"0x0106":["xs","1","SmallestImagePixelValue"],"0x0107":["xs","1","LargestImagePixelValue"],"0x0108":["xs","1","SmallestPixelValueInSeries"],"0x0109":["xs","1","LargestPixelValueInSeries"],"0x0110":["xs","1","SmallestImagePixelValueInPlane"],"0x0111":["xs","1","LargestImagePixelValueInPlane"],"0x0120":["xs","1","PixelPaddingValue"],"0x0121":["xs","1","PixelPaddingRangeLimit"],"0x0122":["FL","1","FloatPixelPaddingValue"],"0x0123":["FD","1","DoubleFloatPixelPaddingValue"],"0x0124":["FL","1","FloatPixelPaddingRangeLimit"],"0x0125":["FD","1","DoubleFloatPixelPaddingRangeLimit"],"0x0200":["US","1","ImageLocation"],"0x0300":["CS","1","QualityControlImage"],"0x0301":["CS","1","BurnedInAnnotation"],"0x0302":["CS","1","RecognizableVisualFeatures"],"0x0303":["CS","1","LongitudinalTemporalInformationModified"],"0x0304":["UI","1","ReferencedColorPaletteInstanceUID"],"0x0400":["LO","1","TransformLabel"],"0x0401":["LO","1","TransformVersionNumber"],"0x0402":["US","1","NumberOfTransformSteps"],"0x0403":["LO","1-n","SequenceOfCompressedData"],"0x0404":["AT","1-n","DetailsOfCoefficients"],"0x04x0":["US","1","RowsForNthOrderCoefficients"],"0x04x1":["US","1","ColumnsForNthOrderCoefficients"],"0x04x2":["LO","1-n","CoefficientCoding"],"0x04x3":["AT","1-n","CoefficientCodingPointers"],"0x0700":["LO","1","DCTLabel"],"0x0701":["CS","1-n","DataBlockDescription"],"0x0702":["AT","1-n","DataBlock"],"0x0710":["US","1","NormalizationFactorFormat"],"0x0720":["US","1","ZonalMapNumberFormat"],"0x0721":["AT","1-n","ZonalMapLocation"],"0x0722":["US","1","ZonalMapFormat"],"0x0730":["US","1","AdaptiveMapFormat"],"0x0740":["US","1","CodeNumberFormat"],"0x08x0":["CS","1-n","CodeLabel"],"0x08x2":["US","1","NumberOfTables"],"0x08x3":["AT","1-n","CodeTableLocation"],"0x08x4":["US","1","BitsForCodeWord"],"0x08x8":["AT","1-n","ImageDataLocation"],"0x0A02":["CS","1","PixelSpacingCalibrationType"],"0x0A04":["LO","1","PixelSpacingCalibrationDescription"],"0x1040":["CS","1","PixelIntensityRelationship"],"0x1041":["SS","1","PixelIntensityRelationshipSign"],"0x1050":["DS","1-n","WindowCenter"],"0x1051":["DS","1-n","WindowWidth"],"0x1052":["DS","1","RescaleIntercept"],"0x1053":["DS","1","RescaleSlope"],"0x1054":["LO","1","RescaleType"],"0x1055":["LO","1-n","WindowCenterWidthExplanation"],"0x1056":["CS","1","VOILUTFunction"],"0x1080":["CS","1","GrayScale"],"0x1090":["CS","1","RecommendedViewingMode"],"0x1100":["xs","3","GrayLookupTableDescriptor"],"0x1101":["xs","3","RedPaletteColorLookupTableDescriptor"],"0x1102":["xs","3","GreenPaletteColorLookupTableDescriptor"],"0x1103":["xs","3","BluePaletteColorLookupTableDescriptor"],"0x1104":["US","3","AlphaPaletteColorLookupTableDescriptor"],"0x1111":["xs","4","LargeRedPaletteColorLookupTableDescriptor"],"0x1112":["xs","4","LargeGreenPaletteColorLookupTableDescriptor"],"0x1113":["xs","4","LargeBluePaletteColorLookupTableDescriptor"],"0x1199":["UI","1","PaletteColorLookupTableUID"],"0x1200":["US or SS or OW","1-n or 1","GrayLookupTableData"],"0x1201":["OW","1","RedPaletteColorLookupTableData"],"0x1202":["OW","1","GreenPaletteColorLookupTableData"],"0x1203":["OW","1","BluePaletteColorLookupTableData"],"0x1204":["OW","1","AlphaPaletteColorLookupTableData"],"0x1211":["OW","1","LargeRedPaletteColorLookupTableData"],"0x1212":["OW","1","LargeGreenPaletteColorLookupTableData"],"0x1213":["OW","1","LargeBluePaletteColorLookupTableData"],"0x1214":["UI","1","LargePaletteColorLookupTableUID"],"0x1221":["OW","1","SegmentedRedPaletteColorLookupTableData"],"0x1222":["OW","1","SegmentedGreenPaletteColorLookupTableData"],"0x1223":["OW","1","SegmentedBluePaletteColorLookupTableData"],"0x1300":["CS","1","BreastImplantPresent"],"0x1350":["CS","1","PartialView"],"0x1351":["ST","1","PartialViewDescription"],"0x1352":["SQ","1","PartialViewCodeSequence"],"0x135A":["CS","1","SpatialLocationsPreserved"],"0x1401":["SQ","1","DataFrameAssignmentSequence"],"0x1402":["CS","1","DataPathAssignment"],"0x1403":["US","1","BitsMappedToColorLookupTable"],"0x1404":["SQ","1","BlendingLUT1Sequence"],"0x1405":["CS","1","BlendingLUT1TransferFunction"],"0x1406":["FD","1","BlendingWeightConstant"],"0x1407":["US","3","BlendingLookupTableDescriptor"],"0x1408":["OW","1","BlendingLookupTableData"],"0x140B":["SQ","1","EnhancedPaletteColorLookupTableSequence"],"0x140C":["SQ","1","BlendingLUT2Sequence"],"0x140D":["CS","1","BlendingLUT2TransferFunction"],"0x140E":["CS","1","DataPathID"],"0x140F":["CS","1","RGBLUTTransferFunction"],"0x1410":["CS","1","AlphaLUTTransferFunction"],"0x2000":["OB","1","ICCProfile"],"0x2110":["CS","1","LossyImageCompression"],"0x2112":["DS","1-n","LossyImageCompressionRatio"],"0x2114":["CS","1-n","LossyImageCompressionMethod"],"0x3000":["SQ","1","ModalityLUTSequence"],"0x3002":["xs","3","LUTDescriptor"],"0x3003":["LO","1","LUTExplanation"],"0x3004":["LO","1","ModalityLUTType"],"0x3006":["US or OW","1-n or 1","LUTData"],"0x3010":["SQ","1","VOILUTSequence"],"0x3110":["SQ","1","SoftcopyVOILUTSequence"],"0x4000":["LT","1","ImagePresentationComments"],"0x5000":["SQ","1","BiPlaneAcquisitionSequence"],"0x6010":["US","1","RepresentativeFrameNumber"],"0x6020":["US","1-n","FrameNumbersOfInterest"],"0x6022":["LO","1-n","FrameOfInterestDescription"],"0x6023":["CS","1-n","FrameOfInterestType"],"0x6030":["US","1-n","MaskPointers"],"0x6040":["US","1-n","RWavePointer"],"0x6100":["SQ","1","MaskSubtractionSequence"],"0x6101":["CS","1","MaskOperation"],"0x6102":["US","2-2n","ApplicableFrameRange"],"0x6110":["US","1-n","MaskFrameNumbers"],"0x6112":["US","1","ContrastFrameAveraging"],"0x6114":["FL","2","MaskSubPixelShift"],"0x6120":["SS","1","TIDOffset"],"0x6190":["ST","1","MaskOperationExplanation"],"0x7000":["SQ","1","EquipmentAdministratorSequence"],"0x7001":["US","1","NumberOfDisplaySubsystems"],"0x7002":["US","1","CurrentConfigurationID"],"0x7003":["US","1","DisplaySubsystemID"],"0x7004":["SH","1","DisplaySubsystemName"],"0x7005":["LO","1","DisplaySubsystemDescription"],"0x7006":["CS","1","SystemStatus"],"0x7007":["LO","1","SystemStatusComment"],"0x7008":["SQ","1","TargetLuminanceCharacteristicsSequence"],"0x7009":["US","1","LuminanceCharacteristicsID"],"0x700A":["SQ","1","DisplaySubsystemConfigurationSequence"],"0x700B":["US","1","ConfigurationID"],"0x700C":["SH","1","ConfigurationName"],"0x700D":["LO","1","ConfigurationDescription"],"0x700E":["US","1","ReferencedTargetLuminanceCharacteristicsID"],"0x700F":["SQ","1","QAResultsSequence"],"0x7010":["SQ","1","DisplaySubsystemQAResultsSequence"],"0x7011":["SQ","1","ConfigurationQAResultsSequence"],"0x7012":["SQ","1","MeasurementEquipmentSequence"],"0x7013":["CS","1-n","MeasurementFunctions"],"0x7014":["CS","1","MeasurementEquipmentType"],"0x7015":["SQ","1","VisualEvaluationResultSequence"],"0x7016":["SQ","1","DisplayCalibrationResultSequence"],"0x7017":["US","1","DDLValue"],"0x7018":["FL","2","CIExyWhitePoint"],"0x7019":["CS","1","DisplayFunctionType"],"0x701A":["FL","1","GammaValue"],"0x701B":["US","1","NumberOfLuminancePoints"],"0x701C":["SQ","1","LuminanceResponseSequence"],"0x701D":["FL","1","TargetMinimumLuminance"],"0x701E":["FL","1","TargetMaximumLuminance"],"0x701F":["FL","1","LuminanceValue"],"0x7020":["LO","1","LuminanceResponseDescription"],"0x7021":["CS","1","WhitePointFlag"],"0x7022":["SQ","1","DisplayDeviceTypeCodeSequence"],"0x7023":["SQ","1","DisplaySubsystemSequence"],"0x7024":["SQ","1","LuminanceResultSequence"],"0x7025":["CS","1","AmbientLightValueSource"],"0x7026":["CS","1-n","MeasuredCharacteristics"],"0x7027":["SQ","1","LuminanceUniformityResultSequence"],"0x7028":["SQ","1","VisualEvaluationTestSequence"],"0x7029":["CS","1","TestResult"],"0x702A":["LO","1","TestResultComment"],"0x702B":["CS","1","TestImageValidation"],"0x702C":["SQ","1","TestPatternCodeSequence"],"0x702D":["SQ","1","MeasurementPatternCodeSequence"],"0x702E":["SQ","1","VisualEvaluationMethodCodeSequence"],"0x7FE0":["UR","1","PixelDataProviderURL"],"0x9001":["UL","1","DataPointRows"],"0x9002":["UL","1","DataPointColumns"],"0x9003":["CS","1","SignalDomainColumns"],"0x9099":["US","1","LargestMonochromePixelValue"],"0x9108":["CS","1","DataRepresentation"],"0x9110":["SQ","1","PixelMeasuresSequence"],"0x9132":["SQ","1","FrameVOILUTSequence"],"0x9145":["SQ","1","PixelValueTransformationSequence"],"0x9235":["CS","1","SignalDomainRows"],"0x9411":["FL","1","DisplayFilterPercentage"],"0x9415":["SQ","1","FramePixelShiftSequence"],"0x9416":["US","1","SubtractionItemID"],"0x9422":["SQ","1","PixelIntensityRelationshipLUTSequence"],"0x9443":["SQ","1","FramePixelDataPropertiesSequence"],"0x9444":["CS","1","GeometricalProperties"],"0x9445":["FL","1","GeometricMaximumDistortion"],"0x9446":["CS","1-n","ImageProcessingApplied"],"0x9454":["CS","1","MaskSelectionMode"],"0x9474":["CS","1","LUTFunction"],"0x9478":["FL","1","MaskVisibilityPercentage"],"0x9501":["SQ","1","PixelShiftSequence"],"0x9502":["SQ","1","RegionPixelShiftSequence"],"0x9503":["SS","2-2n","VerticesOfTheRegion"],"0x9505":["SQ","1","MultiFramePresentationSequence"],"0x9506":["US","2-2n","PixelShiftFrameRange"],"0x9507":["US","2-2n","LUTFrameRange"],"0x9520":["DS","16","ImageToEquipmentMappingMatrix"],"0x9537":["CS","1","EquipmentCoordinateSystemIdentification"]},"0x0032":{"0x0000":["UL","1","GenericGroupLength"],"0x000A":["CS","1","StudyStatusID"],"0x000C":["CS","1","StudyPriorityID"],"0x0012":["LO","1","StudyIDIssuer"],"0x0032":["DA","1","StudyVerifiedDate"],"0x0033":["TM","1","StudyVerifiedTime"],"0x0034":["DA","1","StudyReadDate"],"0x0035":["TM","1","StudyReadTime"],"0x1000":["DA","1","ScheduledStudyStartDate"],"0x1001":["TM","1","ScheduledStudyStartTime"],"0x1010":["DA","1","ScheduledStudyStopDate"],"0x1011":["TM","1","ScheduledStudyStopTime"],"0x1020":["LO","1","ScheduledStudyLocation"],"0x1021":["AE","1-n","ScheduledStudyLocationAETitle"],"0x1030":["LO","1","ReasonForStudy"],"0x1031":["SQ","1","RequestingPhysicianIdentificationSequence"],"0x1032":["PN","1","RequestingPhysician"],"0x1033":["LO","1","RequestingService"],"0x1034":["SQ","1","RequestingServiceCodeSequence"],"0x1040":["DA","1","StudyArrivalDate"],"0x1041":["TM","1","StudyArrivalTime"],"0x1050":["DA","1","StudyCompletionDate"],"0x1051":["TM","1","StudyCompletionTime"],"0x1055":["CS","1","StudyComponentStatusID"],"0x1060":["LO","1","RequestedProcedureDescription"],"0x1064":["SQ","1","RequestedProcedureCodeSequence"],"0x1070":["LO","1","RequestedContrastAgent"],"0x4000":["LT","1","StudyComments"]},"0x0038":{"0x0000":["UL","1","GenericGroupLength"],"0x0004":["SQ","1","ReferencedPatientAliasSequence"],"0x0008":["CS","1","VisitStatusID"],"0x0010":["LO","1","AdmissionID"],"0x0011":["LO","1","IssuerOfAdmissionID"],"0x0014":["SQ","1","IssuerOfAdmissionIDSequence"],"0x0016":["LO","1","RouteOfAdmissions"],"0x001A":["DA","1","ScheduledAdmissionDate"],"0x001B":["TM","1","ScheduledAdmissionTime"],"0x001C":["DA","1","ScheduledDischargeDate"],"0x001D":["TM","1","ScheduledDischargeTime"],"0x001E":["LO","1","ScheduledPatientInstitutionResidence"],"0x0020":["DA","1","AdmittingDate"],"0x0021":["TM","1","AdmittingTime"],"0x0030":["DA","1","DischargeDate"],"0x0032":["TM","1","DischargeTime"],"0x0040":["LO","1","DischargeDiagnosisDescription"],"0x0044":["SQ","1","DischargeDiagnosisCodeSequence"],"0x0050":["LO","1","SpecialNeeds"],"0x0060":["LO","1","ServiceEpisodeID"],"0x0061":["LO","1","IssuerOfServiceEpisodeID"],"0x0062":["LO","1","ServiceEpisodeDescription"],"0x0064":["SQ","1","IssuerOfServiceEpisodeIDSequence"],"0x0100":["SQ","1","PertinentDocumentsSequence"],"0x0101":["SQ","1","PertinentResourcesSequence"],"0x0102":["LO","1","ResourceDescription"],"0x0300":["LO","1","CurrentPatientLocation"],"0x0400":["LO","1","PatientInstitutionResidence"],"0x0500":["LO","1","PatientState"],"0x0502":["SQ","1","PatientClinicalTrialParticipationSequence"],"0x4000":["LT","1","VisitComments"]},"0x003A":{"0x0000":["UL","1","GenericGroupLength"],"0x0004":["CS","1","WaveformOriginality"],"0x0005":["US","1","NumberOfWaveformChannels"],"0x0010":["UL","1","NumberOfWaveformSamples"],"0x001A":["DS","1","SamplingFrequency"],"0x0020":["SH","1","MultiplexGroupLabel"],"0x0200":["SQ","1","ChannelDefinitionSequence"],"0x0202":["IS","1","WaveformChannelNumber"],"0x0203":["SH","1","ChannelLabel"],"0x0205":["CS","1-n","ChannelStatus"],"0x0208":["SQ","1","ChannelSourceSequence"],"0x0209":["SQ","1","ChannelSourceModifiersSequence"],"0x020A":["SQ","1","SourceWaveformSequence"],"0x020C":["LO","1","ChannelDerivationDescription"],"0x0210":["DS","1","ChannelSensitivity"],"0x0211":["SQ","1","ChannelSensitivityUnitsSequence"],"0x0212":["DS","1","ChannelSensitivityCorrectionFactor"],"0x0213":["DS","1","ChannelBaseline"],"0x0214":["DS","1","ChannelTimeSkew"],"0x0215":["DS","1","ChannelSampleSkew"],"0x0218":["DS","1","ChannelOffset"],"0x021A":["US","1","WaveformBitsStored"],"0x0220":["DS","1","FilterLowFrequency"],"0x0221":["DS","1","FilterHighFrequency"],"0x0222":["DS","1","NotchFilterFrequency"],"0x0223":["DS","1","NotchFilterBandwidth"],"0x0230":["FL","1","WaveformDataDisplayScale"],"0x0231":["US","3","WaveformDisplayBackgroundCIELabValue"],"0x0240":["SQ","1","WaveformPresentationGroupSequence"],"0x0241":["US","1","PresentationGroupNumber"],"0x0242":["SQ","1","ChannelDisplaySequence"],"0x0244":["US","3","ChannelRecommendedDisplayCIELabValue"],"0x0245":["FL","1","ChannelPosition"],"0x0246":["CS","1","DisplayShadingFlag"],"0x0247":["FL","1","FractionalChannelDisplayScale"],"0x0248":["FL","1","AbsoluteChannelDisplayScale"],"0x0300":["SQ","1","MultiplexedAudioChannelsDescriptionCodeSequence"],"0x0301":["IS","1","ChannelIdentificationCode"],"0x0302":["CS","1","ChannelMode"]},"0x0040":{"0x0000":["UL","1","GenericGroupLength"],"0x0001":["AE","1-n","ScheduledStationAETitle"],"0x0002":["DA","1","ScheduledProcedureStepStartDate"],"0x0003":["TM","1","ScheduledProcedureStepStartTime"],"0x0004":["DA","1","ScheduledProcedureStepEndDate"],"0x0005":["TM","1","ScheduledProcedureStepEndTime"],"0x0006":["PN","1","ScheduledPerformingPhysicianName"],"0x0007":["LO","1","ScheduledProcedureStepDescription"],"0x0008":["SQ","1","ScheduledProtocolCodeSequence"],"0x0009":["SH","1","ScheduledProcedureStepID"],"0x000A":["SQ","1","StageCodeSequence"],"0x000B":["SQ","1","ScheduledPerformingPhysicianIdentificationSequence"],"0x0010":["SH","1-n","ScheduledStationName"],"0x0011":["SH","1","ScheduledProcedureStepLocation"],"0x0012":["LO","1","PreMedication"],"0x0020":["CS","1","ScheduledProcedureStepStatus"],"0x0026":["SQ","1","OrderPlacerIdentifierSequence"],"0x0027":["SQ","1","OrderFillerIdentifierSequence"],"0x0031":["UT","1","LocalNamespaceEntityID"],"0x0032":["UT","1","UniversalEntityID"],"0x0033":["CS","1","UniversalEntityIDType"],"0x0035":["CS","1","IdentifierTypeCode"],"0x0036":["SQ","1","AssigningFacilitySequence"],"0x0039":["SQ","1","AssigningJurisdictionCodeSequence"],"0x003A":["SQ","1","AssigningAgencyOrDepartmentCodeSequence"],"0x0100":["SQ","1","ScheduledProcedureStepSequence"],"0x0220":["SQ","1","ReferencedNonImageCompositeSOPInstanceSequence"],"0x0241":["AE","1","PerformedStationAETitle"],"0x0242":["SH","1","PerformedStationName"],"0x0243":["SH","1","PerformedLocation"],"0x0244":["DA","1","PerformedProcedureStepStartDate"],"0x0245":["TM","1","PerformedProcedureStepStartTime"],"0x0250":["DA","1","PerformedProcedureStepEndDate"],"0x0251":["TM","1","PerformedProcedureStepEndTime"],"0x0252":["CS","1","PerformedProcedureStepStatus"],"0x0253":["SH","1","PerformedProcedureStepID"],"0x0254":["LO","1","PerformedProcedureStepDescription"],"0x0255":["LO","1","PerformedProcedureTypeDescription"],"0x0260":["SQ","1","PerformedProtocolCodeSequence"],"0x0261":["CS","1","PerformedProtocolType"],"0x0270":["SQ","1","ScheduledStepAttributesSequence"],"0x0275":["SQ","1","RequestAttributesSequence"],"0x0280":["ST","1","CommentsOnThePerformedProcedureStep"],"0x0281":["SQ","1","PerformedProcedureStepDiscontinuationReasonCodeSequence"],"0x0293":["SQ","1","QuantitySequence"],"0x0294":["DS","1","Quantity"],"0x0295":["SQ","1","MeasuringUnitsSequence"],"0x0296":["SQ","1","BillingItemSequence"],"0x0300":["US","1","TotalTimeOfFluoroscopy"],"0x0301":["US","1","TotalNumberOfExposures"],"0x0302":["US","1","EntranceDose"],"0x0303":["US","1-2","ExposedArea"],"0x0306":["DS","1","DistanceSourceToEntrance"],"0x0307":["DS","1","DistanceSourceToSupport"],"0x030E":["SQ","1","ExposureDoseSequence"],"0x0310":["ST","1","CommentsOnRadiationDose"],"0x0312":["DS","1","XRayOutput"],"0x0314":["DS","1","HalfValueLayer"],"0x0316":["DS","1","OrganDose"],"0x0318":["CS","1","OrganExposed"],"0x0320":["SQ","1","BillingProcedureStepSequence"],"0x0321":["SQ","1","FilmConsumptionSequence"],"0x0324":["SQ","1","BillingSuppliesAndDevicesSequence"],"0x0330":["SQ","1","ReferencedProcedureStepSequence"],"0x0340":["SQ","1","PerformedSeriesSequence"],"0x0400":["LT","1","CommentsOnTheScheduledProcedureStep"],"0x0440":["SQ","1","ProtocolContextSequence"],"0x0441":["SQ","1","ContentItemModifierSequence"],"0x0500":["SQ","1","ScheduledSpecimenSequence"],"0x050A":["LO","1","SpecimenAccessionNumber"],"0x0512":["LO","1","ContainerIdentifier"],"0x0513":["SQ","1","IssuerOfTheContainerIdentifierSequence"],"0x0515":["SQ","1","AlternateContainerIdentifierSequence"],"0x0518":["SQ","1","ContainerTypeCodeSequence"],"0x051A":["LO","1","ContainerDescription"],"0x0520":["SQ","1","ContainerComponentSequence"],"0x0550":["SQ","1","SpecimenSequence"],"0x0551":["LO","1","SpecimenIdentifier"],"0x0552":["SQ","1","SpecimenDescriptionSequenceTrial"],"0x0553":["ST","1","SpecimenDescriptionTrial"],"0x0554":["UI","1","SpecimenUID"],"0x0555":["SQ","1","AcquisitionContextSequence"],"0x0556":["ST","1","AcquisitionContextDescription"],"0x059A":["SQ","1","SpecimenTypeCodeSequence"],"0x0560":["SQ","1","SpecimenDescriptionSequence"],"0x0562":["SQ","1","IssuerOfTheSpecimenIdentifierSequence"],"0x0600":["LO","1","SpecimenShortDescription"],"0x0602":["UT","1","SpecimenDetailedDescription"],"0x0610":["SQ","1","SpecimenPreparationSequence"],"0x0612":["SQ","1","SpecimenPreparationStepContentItemSequence"],"0x0620":["SQ","1","SpecimenLocalizationContentItemSequence"],"0x06FA":["LO","1","SlideIdentifier"],"0x071A":["SQ","1","ImageCenterPointCoordinatesSequence"],"0x072A":["DS","1","XOffsetInSlideCoordinateSystem"],"0x073A":["DS","1","YOffsetInSlideCoordinateSystem"],"0x074A":["DS","1","ZOffsetInSlideCoordinateSystem"],"0x08D8":["SQ","1","PixelSpacingSequence"],"0x08DA":["SQ","1","CoordinateSystemAxisCodeSequence"],"0x08EA":["SQ","1","MeasurementUnitsCodeSequence"],"0x09F8":["SQ","1","VitalStainCodeSequenceTrial"],"0x1001":["SH","1","RequestedProcedureID"],"0x1002":["LO","1","ReasonForTheRequestedProcedure"],"0x1003":["SH","1","RequestedProcedurePriority"],"0x1004":["LO","1","PatientTransportArrangements"],"0x1005":["LO","1","RequestedProcedureLocation"],"0x1006":["SH","1","PlacerOrderNumberProcedure"],"0x1007":["SH","1","FillerOrderNumberProcedure"],"0x1008":["LO","1","ConfidentialityCode"],"0x1009":["SH","1","ReportingPriority"],"0x100A":["SQ","1","ReasonForRequestedProcedureCodeSequence"],"0x1010":["PN","1-n","NamesOfIntendedRecipientsOfResults"],"0x1011":["SQ","1","IntendedRecipientsOfResultsIdentificationSequence"],"0x1012":["SQ","1","ReasonForPerformedProcedureCodeSequence"],"0x1060":["LO","1","RequestedProcedureDescriptionTrial"],"0x1101":["SQ","1","PersonIdentificationCodeSequence"],"0x1102":["ST","1","PersonAddress"],"0x1103":["LO","1-n","PersonTelephoneNumbers"],"0x1104":["LT","1","PersonTelecomInformation"],"0x1400":["LT","1","RequestedProcedureComments"],"0x2001":["LO","1","ReasonForTheImagingServiceRequest"],"0x2004":["DA","1","IssueDateOfImagingServiceRequest"],"0x2005":["TM","1","IssueTimeOfImagingServiceRequest"],"0x2006":["SH","1","PlacerOrderNumberImagingServiceRequestRetired"],"0x2007":["SH","1","FillerOrderNumberImagingServiceRequestRetired"],"0x2008":["PN","1","OrderEnteredBy"],"0x2009":["SH","1","OrderEntererLocation"],"0x2010":["SH","1","OrderCallbackPhoneNumber"],"0x2011":["LT","1","OrderCallbackTelecomInformation"],"0x2016":["LO","1","PlacerOrderNumberImagingServiceRequest"],"0x2017":["LO","1","FillerOrderNumberImagingServiceRequest"],"0x2400":["LT","1","ImagingServiceRequestComments"],"0x3001":["LO","1","ConfidentialityConstraintOnPatientDataDescription"],"0x4001":["CS","1","GeneralPurposeScheduledProcedureStepStatus"],"0x4002":["CS","1","GeneralPurposePerformedProcedureStepStatus"],"0x4003":["CS","1","GeneralPurposeScheduledProcedureStepPriority"],"0x4004":["SQ","1","ScheduledProcessingApplicationsCodeSequence"],"0x4005":["DT","1","ScheduledProcedureStepStartDateTime"],"0x4006":["CS","1","MultipleCopiesFlag"],"0x4007":["SQ","1","PerformedProcessingApplicationsCodeSequence"],"0x4009":["SQ","1","HumanPerformerCodeSequence"],"0x4010":["DT","1","ScheduledProcedureStepModificationDateTime"],"0x4011":["DT","1","ExpectedCompletionDateTime"],"0x4015":["SQ","1","ResultingGeneralPurposePerformedProcedureStepsSequence"],"0x4016":["SQ","1","ReferencedGeneralPurposeScheduledProcedureStepSequence"],"0x4018":["SQ","1","ScheduledWorkitemCodeSequence"],"0x4019":["SQ","1","PerformedWorkitemCodeSequence"],"0x4020":["CS","1","InputAvailabilityFlag"],"0x4021":["SQ","1","InputInformationSequence"],"0x4022":["SQ","1","RelevantInformationSequence"],"0x4023":["UI","1","ReferencedGeneralPurposeScheduledProcedureStepTransactionUID"],"0x4025":["SQ","1","ScheduledStationNameCodeSequence"],"0x4026":["SQ","1","ScheduledStationClassCodeSequence"],"0x4027":["SQ","1","ScheduledStationGeographicLocationCodeSequence"],"0x4028":["SQ","1","PerformedStationNameCodeSequence"],"0x4029":["SQ","1","PerformedStationClassCodeSequence"],"0x4030":["SQ","1","PerformedStationGeographicLocationCodeSequence"],"0x4031":["SQ","1","RequestedSubsequentWorkitemCodeSequence"],"0x4032":["SQ","1","NonDICOMOutputCodeSequence"],"0x4033":["SQ","1","OutputInformationSequence"],"0x4034":["SQ","1","ScheduledHumanPerformersSequence"],"0x4035":["SQ","1","ActualHumanPerformersSequence"],"0x4036":["LO","1","HumanPerformerOrganization"],"0x4037":["PN","1","HumanPerformerName"],"0x4040":["CS","1","RawDataHandling"],"0x4041":["CS","1","InputReadinessState"],"0x4050":["DT","1","PerformedProcedureStepStartDateTime"],"0x4051":["DT","1","PerformedProcedureStepEndDateTime"],"0x4052":["DT","1","ProcedureStepCancellationDateTime"],"0x8302":["DS","1","EntranceDoseInmGy"],"0x9092":["SQ","1","ParametricMapFrameTypeSequence"],"0x9094":["SQ","1","ReferencedImageRealWorldValueMappingSequence"],"0x9096":["SQ","1","RealWorldValueMappingSequence"],"0x9098":["SQ","1","PixelValueMappingCodeSequence"],"0x9210":["SH","1","LUTLabel"],"0x9211":["xs","1","RealWorldValueLastValueMapped"],"0x9212":["FD","1-n","RealWorldValueLUTData"],"0x9216":["xs","1","RealWorldValueFirstValueMapped"],"0x9220":["SQ","1","QuantityDefinitionSequence"],"0x9224":["FD","1","RealWorldValueIntercept"],"0x9225":["FD","1","RealWorldValueSlope"],"0xA007":["CS","1","FindingsFlagTrial"],"0xA010":["CS","1","RelationshipType"],"0xA020":["SQ","1","FindingsSequenceTrial"],"0xA021":["UI","1","FindingsGroupUIDTrial"],"0xA022":["UI","1","ReferencedFindingsGroupUIDTrial"],"0xA023":["DA","1","FindingsGroupRecordingDateTrial"],"0xA024":["TM","1","FindingsGroupRecordingTimeTrial"],"0xA026":["SQ","1","FindingsSourceCategoryCodeSequenceTrial"],"0xA027":["LO","1","VerifyingOrganization"],"0xA028":["SQ","1","DocumentingOrganizationIdentifierCodeSequenceTrial"],"0xA030":["DT","1","VerificationDateTime"],"0xA032":["DT","1","ObservationDateTime"],"0xA040":["CS","1","ValueType"],"0xA043":["SQ","1","ConceptNameCodeSequence"],"0xA047":["LO","1","MeasurementPrecisionDescriptionTrial"],"0xA050":["CS","1","ContinuityOfContent"],"0xA057":["CS","1-n","UrgencyOrPriorityAlertsTrial"],"0xA060":["LO","1","SequencingIndicatorTrial"],"0xA066":["SQ","1","DocumentIdentifierCodeSequenceTrial"],"0xA067":["PN","1","DocumentAuthorTrial"],"0xA068":["SQ","1","DocumentAuthorIdentifierCodeSequenceTrial"],"0xA070":["SQ","1","IdentifierCodeSequenceTrial"],"0xA073":["SQ","1","VerifyingObserverSequence"],"0xA074":["OB","1","ObjectBinaryIdentifierTrial"],"0xA075":["PN","1","VerifyingObserverName"],"0xA076":["SQ","1","DocumentingObserverIdentifierCodeSequenceTrial"],"0xA078":["SQ","1","AuthorObserverSequence"],"0xA07A":["SQ","1","ParticipantSequence"],"0xA07C":["SQ","1","CustodialOrganizationSequence"],"0xA080":["CS","1","ParticipationType"],"0xA082":["DT","1","ParticipationDateTime"],"0xA084":["CS","1","ObserverType"],"0xA085":["SQ","1","ProcedureIdentifierCodeSequenceTrial"],"0xA088":["SQ","1","VerifyingObserverIdentificationCodeSequence"],"0xA089":["OB","1","ObjectDirectoryBinaryIdentifierTrial"],"0xA090":["SQ","1","EquivalentCDADocumentSequence"],"0xA0B0":["US","2-2n","ReferencedWaveformChannels"],"0xA110":["DA","1","DateOfDocumentOrVerbalTransactionTrial"],"0xA112":["TM","1","TimeOfDocumentCreationOrVerbalTransactionTrial"],"0xA120":["DT","1","DateTime"],"0xA121":["DA","1","Date"],"0xA122":["TM","1","Time"],"0xA123":["PN","1","PersonName"],"0xA124":["UI","1","UID"],"0xA125":["CS","2","ReportStatusIDTrial"],"0xA130":["CS","1","TemporalRangeType"],"0xA132":["UL","1-n","ReferencedSamplePositions"],"0xA136":["US","1-n","ReferencedFrameNumbers"],"0xA138":["DS","1-n","ReferencedTimeOffsets"],"0xA13A":["DT","1-n","ReferencedDateTime"],"0xA160":["UT","1","TextValue"],"0xA161":["FD","1-n","FloatingPointValue"],"0xA162":["SL","1-n","RationalNumeratorValue"],"0xA163":["UL","1-n","RationalDenominatorValue"],"0xA167":["SQ","1","ObservationCategoryCodeSequenceTrial"],"0xA168":["SQ","1","ConceptCodeSequence"],"0xA16A":["ST","1","BibliographicCitationTrial"],"0xA170":["SQ","1","PurposeOfReferenceCodeSequence"],"0xA171":["UI","1","ObservationUID"],"0xA172":["UI","1","ReferencedObservationUIDTrial"],"0xA173":["CS","1","ReferencedObservationClassTrial"],"0xA174":["CS","1","ReferencedObjectObservationClassTrial"],"0xA180":["US","1","AnnotationGroupNumber"],"0xA192":["DA","1","ObservationDateTrial"],"0xA193":["TM","1","ObservationTimeTrial"],"0xA194":["CS","1","MeasurementAutomationTrial"],"0xA195":["SQ","1","ModifierCodeSequence"],"0xA224":["ST","1","IdentificationDescriptionTrial"],"0xA290":["CS","1","CoordinatesSetGeometricTypeTrial"],"0xA296":["SQ","1","AlgorithmCodeSequenceTrial"],"0xA297":["ST","1","AlgorithmDescriptionTrial"],"0xA29A":["SL","2-2n","PixelCoordinatesSetTrial"],"0xA300":["SQ","1","MeasuredValueSequence"],"0xA301":["SQ","1","NumericValueQualifierCodeSequence"],"0xA307":["PN","1","CurrentObserverTrial"],"0xA30A":["DS","1-n","NumericValue"],"0xA313":["SQ","1","ReferencedAccessionSequenceTrial"],"0xA33A":["ST","1","ReportStatusCommentTrial"],"0xA340":["SQ","1","ProcedureContextSequenceTrial"],"0xA352":["PN","1","VerbalSourceTrial"],"0xA353":["ST","1","AddressTrial"],"0xA354":["LO","1","TelephoneNumberTrial"],"0xA358":["SQ","1","VerbalSourceIdentifierCodeSequenceTrial"],"0xA360":["SQ","1","PredecessorDocumentsSequence"],"0xA370":["SQ","1","ReferencedRequestSequence"],"0xA372":["SQ","1","PerformedProcedureCodeSequence"],"0xA375":["SQ","1","CurrentRequestedProcedureEvidenceSequence"],"0xA380":["SQ","1","ReportDetailSequenceTrial"],"0xA385":["SQ","1","PertinentOtherEvidenceSequence"],"0xA390":["SQ","1","HL7StructuredDocumentReferenceSequence"],"0xA402":["UI","1","ObservationSubjectUIDTrial"],"0xA403":["CS","1","ObservationSubjectClassTrial"],"0xA404":["SQ","1","ObservationSubjectTypeCodeSequenceTrial"],"0xA491":["CS","1","CompletionFlag"],"0xA492":["LO","1","CompletionFlagDescription"],"0xA493":["CS","1","VerificationFlag"],"0xA494":["CS","1","ArchiveRequested"],"0xA496":["CS","1","PreliminaryFlag"],"0xA504":["SQ","1","ContentTemplateSequence"],"0xA525":["SQ","1","IdenticalDocumentsSequence"],"0xA600":["CS","1","ObservationSubjectContextFlagTrial"],"0xA601":["CS","1","ObserverContextFlagTrial"],"0xA603":["CS","1","ProcedureContextFlagTrial"],"0xA730":["SQ","1","ContentSequence"],"0xA731":["SQ","1","RelationshipSequenceTrial"],"0xA732":["SQ","1","RelationshipTypeCodeSequenceTrial"],"0xA744":["SQ","1","LanguageCodeSequenceTrial"],"0xA992":["ST","1","UniformResourceLocatorTrial"],"0xB020":["SQ","1","WaveformAnnotationSequence"],"0xDB00":["CS","1","TemplateIdentifier"],"0xDB06":["DT","1","TemplateVersion"],"0xDB07":["DT","1","TemplateLocalVersion"],"0xDB0B":["CS","1","TemplateExtensionFlag"],"0xDB0C":["UI","1","TemplateExtensionOrganizationUID"],"0xDB0D":["UI","1","TemplateExtensionCreatorUID"],"0xDB73":["UL","1-n","ReferencedContentItemIdentifier"],"0xE001":["ST","1","HL7InstanceIdentifier"],"0xE004":["DT","1","HL7DocumentEffectiveTime"],"0xE006":["SQ","1","HL7DocumentTypeCodeSequence"],"0xE008":["SQ","1","DocumentClassCodeSequence"],"0xE010":["UR","1","RetrieveURI"],"0xE011":["UI","1","RetrieveLocationUID"],"0xE020":["CS","1","TypeOfInstances"],"0xE021":["SQ","1","DICOMRetrievalSequence"],"0xE022":["SQ","1","DICOMMediaRetrievalSequence"],"0xE023":["SQ","1","WADORetrievalSequence"],"0xE024":["SQ","1","XDSRetrievalSequence"],"0xE025":["SQ","1","WADORSRetrievalSequence"],"0xE030":["UI","1","RepositoryUniqueID"],"0xE031":["UI","1","HomeCommunityID"]},"0x0042":{"0x0000":["UL","1","GenericGroupLength"],"0x0010":["ST","1","DocumentTitle"],"0x0011":["OB","1","EncapsulatedDocument"],"0x0012":["LO","1","MIMETypeOfEncapsulatedDocument"],"0x0013":["SQ","1","SourceInstanceSequence"],"0x0014":["LO","1-n","ListOfMIMETypes"]},"0x0044":{"0x0000":["UL","1","GenericGroupLength"],"0x0001":["ST","1","ProductPackageIdentifier"],"0x0002":["CS","1","SubstanceAdministrationApproval"],"0x0003":["LT","1","ApprovalStatusFurtherDescription"],"0x0004":["DT","1","ApprovalStatusDateTime"],"0x0007":["SQ","1","ProductTypeCodeSequence"],"0x0008":["LO","1-n","ProductName"],"0x0009":["LT","1","ProductDescription"],"0x000A":["LO","1","ProductLotIdentifier"],"0x000B":["DT","1","ProductExpirationDateTime"],"0x0010":["DT","1","SubstanceAdministrationDateTime"],"0x0011":["LO","1","SubstanceAdministrationNotes"],"0x0012":["LO","1","SubstanceAdministrationDeviceID"],"0x0013":["SQ","1","ProductParameterSequence"],"0x0019":["SQ","1","SubstanceAdministrationParameterSequence"]},"0x0046":{"0x0000":["UL","1","GenericGroupLength"],"0x0012":["LO","1","LensDescription"],"0x0014":["SQ","1","RightLensSequence"],"0x0015":["SQ","1","LeftLensSequence"],"0x0016":["SQ","1","UnspecifiedLateralityLensSequence"],"0x0018":["SQ","1","CylinderSequence"],"0x0028":["SQ","1","PrismSequence"],"0x0030":["FD","1","HorizontalPrismPower"],"0x0032":["CS","1","HorizontalPrismBase"],"0x0034":["FD","1","VerticalPrismPower"],"0x0036":["CS","1","VerticalPrismBase"],"0x0038":["CS","1","LensSegmentType"],"0x0040":["FD","1","OpticalTransmittance"],"0x0042":["FD","1","ChannelWidth"],"0x0044":["FD","1","PupilSize"],"0x0046":["FD","1","CornealSize"],"0x0050":["SQ","1","AutorefractionRightEyeSequence"],"0x0052":["SQ","1","AutorefractionLeftEyeSequence"],"0x0060":["FD","1","DistancePupillaryDistance"],"0x0062":["FD","1","NearPupillaryDistance"],"0x0063":["FD","1","IntermediatePupillaryDistance"],"0x0064":["FD","1","OtherPupillaryDistance"],"0x0070":["SQ","1","KeratometryRightEyeSequence"],"0x0071":["SQ","1","KeratometryLeftEyeSequence"],"0x0074":["SQ","1","SteepKeratometricAxisSequence"],"0x0075":["FD","1","RadiusOfCurvature"],"0x0076":["FD","1","KeratometricPower"],"0x0077":["FD","1","KeratometricAxis"],"0x0080":["SQ","1","FlatKeratometricAxisSequence"],"0x0092":["CS","1","BackgroundColor"],"0x0094":["CS","1","Optotype"],"0x0095":["CS","1","OptotypePresentation"],"0x0097":["SQ","1","SubjectiveRefractionRightEyeSequence"],"0x0098":["SQ","1","SubjectiveRefractionLeftEyeSequence"],"0x0100":["SQ","1","AddNearSequence"],"0x0101":["SQ","1","AddIntermediateSequence"],"0x0102":["SQ","1","AddOtherSequence"],"0x0104":["FD","1","AddPower"],"0x0106":["FD","1","ViewingDistance"],"0x0121":["SQ","1","VisualAcuityTypeCodeSequence"],"0x0122":["SQ","1","VisualAcuityRightEyeSequence"],"0x0123":["SQ","1","VisualAcuityLeftEyeSequence"],"0x0124":["SQ","1","VisualAcuityBothEyesOpenSequence"],"0x0125":["CS","1","ViewingDistanceType"],"0x0135":["SS","2","VisualAcuityModifiers"],"0x0137":["FD","1","DecimalVisualAcuity"],"0x0139":["LO","1","OptotypeDetailedDefinition"],"0x0145":["SQ","1","ReferencedRefractiveMeasurementsSequence"],"0x0146":["FD","1","SpherePower"],"0x0147":["FD","1","CylinderPower"],"0x0201":["CS","1","CornealTopographySurface"],"0x0202":["FL","2","CornealVertexLocation"],"0x0203":["FL","1","PupilCentroidXCoordinate"],"0x0204":["FL","1","PupilCentroidYCoordinate"],"0x0205":["FL","1","EquivalentPupilRadius"],"0x0207":["SQ","1","CornealTopographyMapTypeCodeSequence"],"0x0208":["IS","2-2n","VerticesOfTheOutlineOfPupil"],"0x0210":["SQ","1","CornealTopographyMappingNormalsSequence"],"0x0211":["SQ","1","MaximumCornealCurvatureSequence"],"0x0212":["FL","1","MaximumCornealCurvature"],"0x0213":["FL","2","MaximumCornealCurvatureLocation"],"0x0215":["SQ","1","MinimumKeratometricSequence"],"0x0218":["SQ","1","SimulatedKeratometricCylinderSequence"],"0x0220":["FL","1","AverageCornealPower"],"0x0224":["FL","1","CornealISValue"],"0x0227":["FL","1","AnalyzedArea"],"0x0230":["FL","1","SurfaceRegularityIndex"],"0x0232":["FL","1","SurfaceAsymmetryIndex"],"0x0234":["FL","1","CornealEccentricityIndex"],"0x0236":["FL","1","KeratoconusPredictionIndex"],"0x0238":["FL","1","DecimalPotentialVisualAcuity"],"0x0242":["CS","1","CornealTopographyMapQualityEvaluation"],"0x0244":["SQ","1","SourceImageCornealProcessedDataSequence"],"0x0247":["FL","3","CornealPointLocation"],"0x0248":["CS","1","CornealPointEstimated"],"0x0249":["FL","1","AxialPower"],"0x0250":["FL","1","TangentialPower"],"0x0251":["FL","1","RefractivePower"],"0x0252":["FL","1","RelativeElevation"],"0x0253":["FL","1","CornealWavefront"]},"0x0048":{"0x0000":["UL","1","GenericGroupLength"],"0x0001":["FL","1","ImagedVolumeWidth"],"0x0002":["FL","1","ImagedVolumeHeight"],"0x0003":["FL","1","ImagedVolumeDepth"],"0x0006":["UL","1","TotalPixelMatrixColumns"],"0x0007":["UL","1","TotalPixelMatrixRows"],"0x0008":["SQ","1","TotalPixelMatrixOriginSequence"],"0x0010":["CS","1","SpecimenLabelInImage"],"0x0011":["CS","1","FocusMethod"],"0x0012":["CS","1","ExtendedDepthOfField"],"0x0013":["US","1","NumberOfFocalPlanes"],"0x0014":["FL","1","DistanceBetweenFocalPlanes"],"0x0015":["US","3","RecommendedAbsentPixelCIELabValue"],"0x0100":["SQ","1","IlluminatorTypeCodeSequence"],"0x0102":["DS","6","ImageOrientationSlide"],"0x0105":["SQ","1","OpticalPathSequence"],"0x0106":["SH","1","OpticalPathIdentifier"],"0x0107":["ST","1","OpticalPathDescription"],"0x0108":["SQ","1","IlluminationColorCodeSequence"],"0x0110":["SQ","1","SpecimenReferenceSequence"],"0x0111":["DS","1","CondenserLensPower"],"0x0112":["DS","1","ObjectiveLensPower"],"0x0113":["DS","1","ObjectiveLensNumericalAperture"],"0x0120":["SQ","1","PaletteColorLookupTableSequence"],"0x0200":["SQ","1","ReferencedImageNavigationSequence"],"0x0201":["US","2","TopLeftHandCornerOfLocalizerArea"],"0x0202":["US","2","BottomRightHandCornerOfLocalizerArea"],"0x0207":["SQ","1","OpticalPathIdentificationSequence"],"0x021A":["SQ","1","PlanePositionSlideSequence"],"0x021E":["SL","1","ColumnPositionInTotalImagePixelMatrix"],"0x021F":["SL","1","RowPositionInTotalImagePixelMatrix"],"0x0301":["CS","1","PixelOriginInterpretation"]},"0x0050":{"0x0000":["UL","1","GenericGroupLength"],"0x0004":["CS","1","CalibrationImage"],"0x0010":["SQ","1","DeviceSequence"],"0x0012":["SQ","1","ContainerComponentTypeCodeSequence"],"0x0013":["FD","1","ContainerComponentThickness"],"0x0014":["DS","1","DeviceLength"],"0x0015":["FD","1","ContainerComponentWidth"],"0x0016":["DS","1","DeviceDiameter"],"0x0017":["CS","1","DeviceDiameterUnits"],"0x0018":["DS","1","DeviceVolume"],"0x0019":["DS","1","InterMarkerDistance"],"0x001A":["CS","1","ContainerComponentMaterial"],"0x001B":["LO","1","ContainerComponentID"],"0x001C":["FD","1","ContainerComponentLength"],"0x001D":["FD","1","ContainerComponentDiameter"],"0x001E":["LO","1","ContainerComponentDescription"],"0x0020":["LO","1","DeviceDescription"]},"0x0052":{"0x0000":["UL","1","GenericGroupLength"],"0x0001":["FL","1","ContrastBolusIngredientPercentByVolume"],"0x0002":["FD","1","OCTFocalDistance"],"0x0003":["FD","1","BeamSpotSize"],"0x0004":["FD","1","EffectiveRefractiveIndex"],"0x0006":["CS","1","OCTAcquisitionDomain"],"0x0007":["FD","1","OCTOpticalCenterWavelength"],"0x0008":["FD","1","AxialResolution"],"0x0009":["FD","1","RangingDepth"],"0x0011":["FD","1","ALineRate"],"0x0012":["US","1","ALinesPerFrame"],"0x0013":["FD","1","CatheterRotationalRate"],"0x0014":["FD","1","ALinePixelSpacing"],"0x0016":["SQ","1","ModeOfPercutaneousAccessSequence"],"0x0025":["SQ","1","IntravascularOCTFrameTypeSequence"],"0x0026":["CS","1","OCTZOffsetApplied"],"0x0027":["SQ","1","IntravascularFrameContentSequence"],"0x0028":["FD","1","IntravascularLongitudinalDistance"],"0x0029":["SQ","1","IntravascularOCTFrameContentSequence"],"0x0030":["SS","1","OCTZOffsetCorrection"],"0x0031":["CS","1","CatheterDirectionOfRotation"],"0x0033":["FD","1","SeamLineLocation"],"0x0034":["FD","1","FirstALineLocation"],"0x0036":["US","1","SeamLineIndex"],"0x0038":["US","1","NumberOfPaddedALines"],"0x0039":["CS","1","InterpolationType"],"0x003A":["CS","1","RefractiveIndexApplied"]},"0x0054":{"0x0000":["UL","1","GenericGroupLength"],"0x0010":["US","1-n","EnergyWindowVector"],"0x0011":["US","1","NumberOfEnergyWindows"],"0x0012":["SQ","1","EnergyWindowInformationSequence"],"0x0013":["SQ","1","EnergyWindowRangeSequence"],"0x0014":["DS","1","EnergyWindowLowerLimit"],"0x0015":["DS","1","EnergyWindowUpperLimit"],"0x0016":["SQ","1","RadiopharmaceuticalInformationSequence"],"0x0017":["IS","1","ResidualSyringeCounts"],"0x0018":["SH","1","EnergyWindowName"],"0x0020":["US","1-n","DetectorVector"],"0x0021":["US","1","NumberOfDetectors"],"0x0022":["SQ","1","DetectorInformationSequence"],"0x0030":["US","1-n","PhaseVector"],"0x0031":["US","1","NumberOfPhases"],"0x0032":["SQ","1","PhaseInformationSequence"],"0x0033":["US","1","NumberOfFramesInPhase"],"0x0036":["IS","1","PhaseDelay"],"0x0038":["IS","1","PauseBetweenFrames"],"0x0039":["CS","1","PhaseDescription"],"0x0050":["US","1-n","RotationVector"],"0x0051":["US","1","NumberOfRotations"],"0x0052":["SQ","1","RotationInformationSequence"],"0x0053":["US","1","NumberOfFramesInRotation"],"0x0060":["US","1-n","RRIntervalVector"],"0x0061":["US","1","NumberOfRRIntervals"],"0x0062":["SQ","1","GatedInformationSequence"],"0x0063":["SQ","1","DataInformationSequence"],"0x0070":["US","1-n","TimeSlotVector"],"0x0071":["US","1","NumberOfTimeSlots"],"0x0072":["SQ","1","TimeSlotInformationSequence"],"0x0073":["DS","1","TimeSlotTime"],"0x0080":["US","1-n","SliceVector"],"0x0081":["US","1","NumberOfSlices"],"0x0090":["US","1-n","AngularViewVector"],"0x0100":["US","1-n","TimeSliceVector"],"0x0101":["US","1","NumberOfTimeSlices"],"0x0200":["DS","1","StartAngle"],"0x0202":["CS","1","TypeOfDetectorMotion"],"0x0210":["IS","1-n","TriggerVector"],"0x0211":["US","1","NumberOfTriggersInPhase"],"0x0220":["SQ","1","ViewCodeSequence"],"0x0222":["SQ","1","ViewModifierCodeSequence"],"0x0300":["SQ","1","RadionuclideCodeSequence"],"0x0302":["SQ","1","AdministrationRouteCodeSequence"],"0x0304":["SQ","1","RadiopharmaceuticalCodeSequence"],"0x0306":["SQ","1","CalibrationDataSequence"],"0x0308":["US","1","EnergyWindowNumber"],"0x0400":["SH","1","ImageID"],"0x0410":["SQ","1","PatientOrientationCodeSequence"],"0x0412":["SQ","1","PatientOrientationModifierCodeSequence"],"0x0414":["SQ","1","PatientGantryRelationshipCodeSequence"],"0x0500":["CS","1","SliceProgressionDirection"],"0x0501":["CS","1","ScanProgressionDirection"],"0x1000":["CS","2","SeriesType"],"0x1001":["CS","1","Units"],"0x1002":["CS","1","CountsSource"],"0x1004":["CS","1","ReprojectionMethod"],"0x1006":["CS","1","SUVType"],"0x1100":["CS","1","RandomsCorrectionMethod"],"0x1101":["LO","1","AttenuationCorrectionMethod"],"0x1102":["CS","1","DecayCorrection"],"0x1103":["LO","1","ReconstructionMethod"],"0x1104":["LO","1","DetectorLinesOfResponseUsed"],"0x1105":["LO","1","ScatterCorrectionMethod"],"0x1200":["DS","1","AxialAcceptance"],"0x1201":["IS","2","AxialMash"],"0x1202":["IS","1","TransverseMash"],"0x1203":["DS","2","DetectorElementSize"],"0x1210":["DS","1","CoincidenceWindowWidth"],"0x1220":["CS","1-n","SecondaryCountsType"],"0x1300":["DS","1","FrameReferenceTime"],"0x1310":["IS","1","PrimaryPromptsCountsAccumulated"],"0x1311":["IS","1-n","SecondaryCountsAccumulated"],"0x1320":["DS","1","SliceSensitivityFactor"],"0x1321":["DS","1","DecayFactor"],"0x1322":["DS","1","DoseCalibrationFactor"],"0x1323":["DS","1","ScatterFractionFactor"],"0x1324":["DS","1","DeadTimeFactor"],"0x1330":["US","1","ImageIndex"],"0x1400":["CS","1-n","CountsIncluded"],"0x1401":["CS","1","DeadTimeCorrectionFlag"]},"0x0060":{"0x0000":["UL","1","GenericGroupLength"],"0x3000":["SQ","1","HistogramSequence"],"0x3002":["US","1","HistogramNumberOfBins"],"0x3004":["xs","1","HistogramFirstBinValue"],"0x3006":["xs","1","HistogramLastBinValue"],"0x3008":["US","1","HistogramBinWidth"],"0x3010":["LO","1","HistogramExplanation"],"0x3020":["UL","1-n","HistogramData"]},"0x0062":{"0x0000":["UL","1","GenericGroupLength"],"0x0001":["CS","1","SegmentationType"],"0x0002":["SQ","1","SegmentSequence"],"0x0003":["SQ","1","SegmentedPropertyCategoryCodeSequence"],"0x0004":["US","1","SegmentNumber"],"0x0005":["LO","1","SegmentLabel"],"0x0006":["ST","1","SegmentDescription"],"0x0008":["CS","1","SegmentAlgorithmType"],"0x0009":["LO","1","SegmentAlgorithmName"],"0x000A":["SQ","1","SegmentIdentificationSequence"],"0x000B":["US","1-n","ReferencedSegmentNumber"],"0x000C":["US","1","RecommendedDisplayGrayscaleValue"],"0x000D":["US","3","RecommendedDisplayCIELabValue"],"0x000E":["US","1","MaximumFractionalValue"],"0x000F":["SQ","1","SegmentedPropertyTypeCodeSequence"],"0x0010":["CS","1","SegmentationFractionalType"],"0x0011":["SQ","1","SegmentedPropertyTypeModifierCodeSequence"],"0x0012":["SQ","1","UsedSegmentsSequence"]},"0x0064":{"0x0000":["UL","1","GenericGroupLength"],"0x0002":["SQ","1","DeformableRegistrationSequence"],"0x0003":["UI","1","SourceFrameOfReferenceUID"],"0x0005":["SQ","1","DeformableRegistrationGridSequence"],"0x0007":["UL","3","GridDimensions"],"0x0008":["FD","3","GridResolution"],"0x0009":["OF","1","VectorGridData"],"0x000F":["SQ","1","PreDeformationMatrixRegistrationSequence"],"0x0010":["SQ","1","PostDeformationMatrixRegistrationSequence"]},"0x0066":{"0x0000":["UL","1","GenericGroupLength"],"0x0001":["UL","1","NumberOfSurfaces"],"0x0002":["SQ","1","SurfaceSequence"],"0x0003":["UL","1","SurfaceNumber"],"0x0004":["LT","1","SurfaceComments"],"0x0009":["CS","1","SurfaceProcessing"],"0x000A":["FL","1","SurfaceProcessingRatio"],"0x000B":["LO","1","SurfaceProcessingDescription"],"0x000C":["FL","1","RecommendedPresentationOpacity"],"0x000D":["CS","1","RecommendedPresentationType"],"0x000E":["CS","1","FiniteVolume"],"0x0010":["CS","1","Manifold"],"0x0011":["SQ","1","SurfacePointsSequence"],"0x0012":["SQ","1","SurfacePointsNormalsSequence"],"0x0013":["SQ","1","SurfaceMeshPrimitivesSequence"],"0x0015":["UL","1","NumberOfSurfacePoints"],"0x0016":["OF","1","PointCoordinatesData"],"0x0017":["FL","3","PointPositionAccuracy"],"0x0018":["FL","1","MeanPointDistance"],"0x0019":["FL","1","MaximumPointDistance"],"0x001A":["FL","6","PointsBoundingBoxCoordinates"],"0x001B":["FL","3","AxisOfRotation"],"0x001C":["FL","3","CenterOfRotation"],"0x001E":["UL","1","NumberOfVectors"],"0x001F":["US","1","VectorDimensionality"],"0x0020":["FL","1-n","VectorAccuracy"],"0x0021":["OF","1","VectorCoordinateData"],"0x0023":["OW","1","TrianglePointIndexList"],"0x0024":["OW","1","EdgePointIndexList"],"0x0025":["OW","1","VertexPointIndexList"],"0x0026":["SQ","1","TriangleStripSequence"],"0x0027":["SQ","1","TriangleFanSequence"],"0x0028":["SQ","1","LineSequence"],"0x0029":["OW","1","PrimitivePointIndexList"],"0x002A":["UL","1","SurfaceCount"],"0x002B":["SQ","1","ReferencedSurfaceSequence"],"0x002C":["UL","1","ReferencedSurfaceNumber"],"0x002D":["SQ","1","SegmentSurfaceGenerationAlgorithmIdentificationSequence"],"0x002E":["SQ","1","SegmentSurfaceSourceInstanceSequence"],"0x002F":["SQ","1","AlgorithmFamilyCodeSequence"],"0x0030":["SQ","1","AlgorithmNameCodeSequence"],"0x0031":["LO","1","AlgorithmVersion"],"0x0032":["LT","1","AlgorithmParameters"],"0x0034":["SQ","1","FacetSequence"],"0x0035":["SQ","1","SurfaceProcessingAlgorithmIdentificationSequence"],"0x0036":["LO","1","AlgorithmName"],"0x0037":["FL","1","RecommendedPointRadius"],"0x0038":["FL","1","RecommendedLineThickness"],"0x0040":["UL","1-n","LongPrimitivePointIndexList"],"0x0041":["UL","3-3n","LongTrianglePointIndexList"],"0x0042":["UL","2-2n","LongEdgePointIndexList"],"0x0043":["UL","1-n","LongVertexPointIndexList"]},"0x0068":{"0x0000":["UL","1","GenericGroupLength"],"0x6210":["LO","1","ImplantSize"],"0x6221":["LO","1","ImplantTemplateVersion"],"0x6222":["SQ","1","ReplacedImplantTemplateSequence"],"0x6223":["CS","1","ImplantType"],"0x6224":["SQ","1","DerivationImplantTemplateSequence"],"0x6225":["SQ","1","OriginalImplantTemplateSequence"],"0x6226":["DT","1","EffectiveDateTime"],"0x6230":["SQ","1","ImplantTargetAnatomySequence"],"0x6260":["SQ","1","InformationFromManufacturerSequence"],"0x6265":["SQ","1","NotificationFromManufacturerSequence"],"0x6270":["DT","1","InformationIssueDateTime"],"0x6280":["ST","1","InformationSummary"],"0x62A0":["SQ","1","ImplantRegulatoryDisapprovalCodeSequence"],"0x62A5":["FD","1","OverallTemplateSpatialTolerance"],"0x62C0":["SQ","1","HPGLDocumentSequence"],"0x62D0":["US","1","HPGLDocumentID"],"0x62D5":["LO","1","HPGLDocumentLabel"],"0x62E0":["SQ","1","ViewOrientationCodeSequence"],"0x62F0":["FD","9","ViewOrientationModifier"],"0x62F2":["FD","1","HPGLDocumentScaling"],"0x6300":["OB","1","HPGLDocument"],"0x6310":["US","1","HPGLContourPenNumber"],"0x6320":["SQ","1","HPGLPenSequence"],"0x6330":["US","1","HPGLPenNumber"],"0x6340":["LO","1","HPGLPenLabel"],"0x6345":["ST","1","HPGLPenDescription"],"0x6346":["FD","2","RecommendedRotationPoint"],"0x6347":["FD","4","BoundingRectangle"],"0x6350":["US","1-n","ImplantTemplate3DModelSurfaceNumber"],"0x6360":["SQ","1","SurfaceModelDescriptionSequence"],"0x6380":["LO","1","SurfaceModelLabel"],"0x6390":["FD","1","SurfaceModelScalingFactor"],"0x63A0":["SQ","1","MaterialsCodeSequence"],"0x63A4":["SQ","1","CoatingMaterialsCodeSequence"],"0x63A8":["SQ","1","ImplantTypeCodeSequence"],"0x63AC":["SQ","1","FixationMethodCodeSequence"],"0x63B0":["SQ","1","MatingFeatureSetsSequence"],"0x63C0":["US","1","MatingFeatureSetID"],"0x63D0":["LO","1","MatingFeatureSetLabel"],"0x63E0":["SQ","1","MatingFeatureSequence"],"0x63F0":["US","1","MatingFeatureID"],"0x6400":["SQ","1","MatingFeatureDegreeOfFreedomSequence"],"0x6410":["US","1","DegreeOfFreedomID"],"0x6420":["CS","1","DegreeOfFreedomType"],"0x6430":["SQ","1","TwoDMatingFeatureCoordinatesSequence"],"0x6440":["US","1","ReferencedHPGLDocumentID"],"0x6450":["FD","2","TwoDMatingPoint"],"0x6460":["FD","4","TwoDMatingAxes"],"0x6470":["SQ","1","TwoDDegreeOfFreedomSequence"],"0x6490":["FD","3","ThreeDDegreeOfFreedomAxis"],"0x64A0":["FD","2","RangeOfFreedom"],"0x64C0":["FD","3","ThreeDMatingPoint"],"0x64D0":["FD","9","ThreeDMatingAxes"],"0x64F0":["FD","3","TwoDDegreeOfFreedomAxis"],"0x6500":["SQ","1","PlanningLandmarkPointSequence"],"0x6510":["SQ","1","PlanningLandmarkLineSequence"],"0x6520":["SQ","1","PlanningLandmarkPlaneSequence"],"0x6530":["US","1","PlanningLandmarkID"],"0x6540":["LO","1","PlanningLandmarkDescription"],"0x6545":["SQ","1","PlanningLandmarkIdentificationCodeSequence"],"0x6550":["SQ","1","TwoDPointCoordinatesSequence"],"0x6560":["FD","2","TwoDPointCoordinates"],"0x6590":["FD","3","ThreeDPointCoordinates"],"0x65A0":["SQ","1","TwoDLineCoordinatesSequence"],"0x65B0":["FD","4","TwoDLineCoordinates"],"0x65D0":["FD","6","ThreeDLineCoordinates"],"0x65E0":["SQ","1","TwoDPlaneCoordinatesSequence"],"0x65F0":["FD","4","TwoDPlaneIntersection"],"0x6610":["FD","3","ThreeDPlaneOrigin"],"0x6620":["FD","3","ThreeDPlaneNormal"]},"0x0070":{"0x0000":["UL","1","GenericGroupLength"],"0x0001":["SQ","1","GraphicAnnotationSequence"],"0x0002":["CS","1","GraphicLayer"],"0x0003":["CS","1","BoundingBoxAnnotationUnits"],"0x0004":["CS","1","AnchorPointAnnotationUnits"],"0x0005":["CS","1","GraphicAnnotationUnits"],"0x0006":["ST","1","UnformattedTextValue"],"0x0008":["SQ","1","TextObjectSequence"],"0x0009":["SQ","1","GraphicObjectSequence"],"0x0010":["FL","2","BoundingBoxTopLeftHandCorner"],"0x0011":["FL","2","BoundingBoxBottomRightHandCorner"],"0x0012":["CS","1","BoundingBoxTextHorizontalJustification"],"0x0014":["FL","2","AnchorPoint"],"0x0015":["CS","1","AnchorPointVisibility"],"0x0020":["US","1","GraphicDimensions"],"0x0021":["US","1","NumberOfGraphicPoints"],"0x0022":["FL","2-n","GraphicData"],"0x0023":["CS","1","GraphicType"],"0x0024":["CS","1","GraphicFilled"],"0x0040":["IS","1","ImageRotationRetired"],"0x0041":["CS","1","ImageHorizontalFlip"],"0x0042":["US","1","ImageRotation"],"0x0050":["US","2","DisplayedAreaTopLeftHandCornerTrial"],"0x0051":["US","2","DisplayedAreaBottomRightHandCornerTrial"],"0x0052":["SL","2","DisplayedAreaTopLeftHandCorner"],"0x0053":["SL","2","DisplayedAreaBottomRightHandCorner"],"0x005A":["SQ","1","DisplayedAreaSelectionSequence"],"0x0060":["SQ","1","GraphicLayerSequence"],"0x0062":["IS","1","GraphicLayerOrder"],"0x0066":["US","1","GraphicLayerRecommendedDisplayGrayscaleValue"],"0x0067":["US","3","GraphicLayerRecommendedDisplayRGBValue"],"0x0068":["LO","1","GraphicLayerDescription"],"0x0080":["CS","1","ContentLabel"],"0x0081":["LO","1","ContentDescription"],"0x0082":["DA","1","PresentationCreationDate"],"0x0083":["TM","1","PresentationCreationTime"],"0x0084":["PN","1","ContentCreatorName"],"0x0086":["SQ","1","ContentCreatorIdentificationCodeSequence"],"0x0087":["SQ","1","AlternateContentDescriptionSequence"],"0x0100":["CS","1","PresentationSizeMode"],"0x0101":["DS","2","PresentationPixelSpacing"],"0x0102":["IS","2","PresentationPixelAspectRatio"],"0x0103":["FL","1","PresentationPixelMagnificationRatio"],"0x0207":["LO","1","GraphicGroupLabel"],"0x0208":["ST","1","GraphicGroupDescription"],"0x0209":["SQ","1","CompoundGraphicSequence"],"0x0226":["UL","1","CompoundGraphicInstanceID"],"0x0227":["LO","1","FontName"],"0x0228":["CS","1","FontNameType"],"0x0229":["LO","1","CSSFontName"],"0x0230":["FD","1","RotationAngle"],"0x0231":["SQ","1","TextStyleSequence"],"0x0232":["SQ","1","LineStyleSequence"],"0x0233":["SQ","1","FillStyleSequence"],"0x0234":["SQ","1","GraphicGroupSequence"],"0x0241":["US","3","TextColorCIELabValue"],"0x0242":["CS","1","HorizontalAlignment"],"0x0243":["CS","1","VerticalAlignment"],"0x0244":["CS","1","ShadowStyle"],"0x0245":["FL","1","ShadowOffsetX"],"0x0246":["FL","1","ShadowOffsetY"],"0x0247":["US","3","ShadowColorCIELabValue"],"0x0248":["CS","1","Underlined"],"0x0249":["CS","1","Bold"],"0x0250":["CS","1","Italic"],"0x0251":["US","3","PatternOnColorCIELabValue"],"0x0252":["US","3","PatternOffColorCIELabValue"],"0x0253":["FL","1","LineThickness"],"0x0254":["CS","1","LineDashingStyle"],"0x0255":["UL","1","LinePattern"],"0x0256":["OB","1","FillPattern"],"0x0257":["CS","1","FillMode"],"0x0258":["FL","1","ShadowOpacity"],"0x0261":["FL","1","GapLength"],"0x0262":["FL","1","DiameterOfVisibility"],"0x0273":["FL","2","RotationPoint"],"0x0274":["CS","1","TickAlignment"],"0x0278":["CS","1","ShowTickLabel"],"0x0279":["CS","1","TickLabelAlignment"],"0x0282":["CS","1","CompoundGraphicUnits"],"0x0284":["FL","1","PatternOnOpacity"],"0x0285":["FL","1","PatternOffOpacity"],"0x0287":["SQ","1","MajorTicksSequence"],"0x0288":["FL","1","TickPosition"],"0x0289":["SH","1","TickLabel"],"0x0294":["CS","1","CompoundGraphicType"],"0x0295":["UL","1","GraphicGroupID"],"0x0306":["CS","1","ShapeType"],"0x0308":["SQ","1","RegistrationSequence"],"0x0309":["SQ","1","MatrixRegistrationSequence"],"0x030A":["SQ","1","MatrixSequence"],"0x030C":["CS","1","FrameOfReferenceTransformationMatrixType"],"0x030D":["SQ","1","RegistrationTypeCodeSequence"],"0x030F":["ST","1","FiducialDescription"],"0x0310":["SH","1","FiducialIdentifier"],"0x0311":["SQ","1","FiducialIdentifierCodeSequence"],"0x0312":["FD","1","ContourUncertaintyRadius"],"0x0314":["SQ","1","UsedFiducialsSequence"],"0x0318":["SQ","1","GraphicCoordinatesDataSequence"],"0x031A":["UI","1","FiducialUID"],"0x031C":["SQ","1","FiducialSetSequence"],"0x031E":["SQ","1","FiducialSequence"],"0x0401":["US","3","GraphicLayerRecommendedDisplayCIELabValue"],"0x0402":["SQ","1","BlendingSequence"],"0x0403":["FL","1","RelativeOpacity"],"0x0404":["SQ","1","ReferencedSpatialRegistrationSequence"],"0x0405":["CS","1","BlendingPosition"]},"0x0072":{"0x0000":["UL","1","GenericGroupLength"],"0x0002":["SH","1","HangingProtocolName"],"0x0004":["LO","1","HangingProtocolDescription"],"0x0006":["CS","1","HangingProtocolLevel"],"0x0008":["LO","1","HangingProtocolCreator"],"0x000A":["DT","1","HangingProtocolCreationDateTime"],"0x000C":["SQ","1","HangingProtocolDefinitionSequence"],"0x000E":["SQ","1","HangingProtocolUserIdentificationCodeSequence"],"0x0010":["LO","1","HangingProtocolUserGroupName"],"0x0012":["SQ","1","SourceHangingProtocolSequence"],"0x0014":["US","1","NumberOfPriorsReferenced"],"0x0020":["SQ","1","ImageSetsSequence"],"0x0022":["SQ","1","ImageSetSelectorSequence"],"0x0024":["CS","1","ImageSetSelectorUsageFlag"],"0x0026":["AT","1","SelectorAttribute"],"0x0028":["US","1","SelectorValueNumber"],"0x0030":["SQ","1","TimeBasedImageSetsSequence"],"0x0032":["US","1","ImageSetNumber"],"0x0034":["CS","1","ImageSetSelectorCategory"],"0x0038":["US","2","RelativeTime"],"0x003A":["CS","1","RelativeTimeUnits"],"0x003C":["SS","2","AbstractPriorValue"],"0x003E":["SQ","1","AbstractPriorCodeSequence"],"0x0040":["LO","1","ImageSetLabel"],"0x0050":["CS","1","SelectorAttributeVR"],"0x0052":["AT","1-n","SelectorSequencePointer"],"0x0054":["LO","1-n","SelectorSequencePointerPrivateCreator"],"0x0056":["LO","1","SelectorAttributePrivateCreator"],"0x0060":["AT","1-n","SelectorATValue"],"0x0062":["CS","1-n","SelectorCSValue"],"0x0064":["IS","1-n","SelectorISValue"],"0x0066":["LO","1-n","SelectorLOValue"],"0x0068":["LT","1","SelectorLTValue"],"0x006A":["PN","1-n","SelectorPNValue"],"0x006C":["SH","1-n","SelectorSHValue"],"0x006E":["ST","1","SelectorSTValue"],"0x0070":["UT","1","SelectorUTValue"],"0x0072":["DS","1-n","SelectorDSValue"],"0x0074":["FD","1-n","SelectorFDValue"],"0x0076":["FL","1-n","SelectorFLValue"],"0x0078":["UL","1-n","SelectorULValue"],"0x007A":["US","1-n","SelectorUSValue"],"0x007C":["SL","1-n","SelectorSLValue"],"0x007E":["SS","1-n","SelectorSSValue"],"0x007F":["UI","1-n","SelectorUIValue"],"0x0080":["SQ","1","SelectorCodeSequenceValue"],"0x0100":["US","1","NumberOfScreens"],"0x0102":["SQ","1","NominalScreenDefinitionSequence"],"0x0104":["US","1","NumberOfVerticalPixels"],"0x0106":["US","1","NumberOfHorizontalPixels"],"0x0108":["FD","4","DisplayEnvironmentSpatialPosition"],"0x010A":["US","1","ScreenMinimumGrayscaleBitDepth"],"0x010C":["US","1","ScreenMinimumColorBitDepth"],"0x010E":["US","1","ApplicationMaximumRepaintTime"],"0x0200":["SQ","1","DisplaySetsSequence"],"0x0202":["US","1","DisplaySetNumber"],"0x0203":["LO","1","DisplaySetLabel"],"0x0204":["US","1","DisplaySetPresentationGroup"],"0x0206":["LO","1","DisplaySetPresentationGroupDescription"],"0x0208":["CS","1","PartialDataDisplayHandling"],"0x0210":["SQ","1","SynchronizedScrollingSequence"],"0x0212":["US","2-n","DisplaySetScrollingGroup"],"0x0214":["SQ","1","NavigationIndicatorSequence"],"0x0216":["US","1","NavigationDisplaySet"],"0x0218":["US","1-n","ReferenceDisplaySets"],"0x0300":["SQ","1","ImageBoxesSequence"],"0x0302":["US","1","ImageBoxNumber"],"0x0304":["CS","1","ImageBoxLayoutType"],"0x0306":["US","1","ImageBoxTileHorizontalDimension"],"0x0308":["US","1","ImageBoxTileVerticalDimension"],"0x0310":["CS","1","ImageBoxScrollDirection"],"0x0312":["CS","1","ImageBoxSmallScrollType"],"0x0314":["US","1","ImageBoxSmallScrollAmount"],"0x0316":["CS","1","ImageBoxLargeScrollType"],"0x0318":["US","1","ImageBoxLargeScrollAmount"],"0x0320":["US","1","ImageBoxOverlapPriority"],"0x0330":["FD","1","CineRelativeToRealTime"],"0x0400":["SQ","1","FilterOperationsSequence"],"0x0402":["CS","1","FilterByCategory"],"0x0404":["CS","1","FilterByAttributePresence"],"0x0406":["CS","1","FilterByOperator"],"0x0420":["US","3","StructuredDisplayBackgroundCIELabValue"],"0x0421":["US","3","EmptyImageBoxCIELabValue"],"0x0422":["SQ","1","StructuredDisplayImageBoxSequence"],"0x0424":["SQ","1","StructuredDisplayTextBoxSequence"],"0x0427":["SQ","1","ReferencedFirstFrameSequence"],"0x0430":["SQ","1","ImageBoxSynchronizationSequence"],"0x0432":["US","2-n","SynchronizedImageBoxList"],"0x0434":["CS","1","TypeOfSynchronization"],"0x0500":["CS","1","BlendingOperationType"],"0x0510":["CS","1","ReformattingOperationType"],"0x0512":["FD","1","ReformattingThickness"],"0x0514":["FD","1","ReformattingInterval"],"0x0516":["CS","1","ReformattingOperationInitialViewDirection"],"0x0520":["CS","1-n","ThreeDRenderingType"],"0x0600":["SQ","1","SortingOperationsSequence"],"0x0602":["CS","1","SortByCategory"],"0x0604":["CS","1","SortingDirection"],"0x0700":["CS","2","DisplaySetPatientOrientation"],"0x0702":["CS","1","VOIType"],"0x0704":["CS","1","PseudoColorType"],"0x0705":["SQ","1","PseudoColorPaletteInstanceReferenceSequence"],"0x0706":["CS","1","ShowGrayscaleInverted"],"0x0710":["CS","1","ShowImageTrueSizeFlag"],"0x0712":["CS","1","ShowGraphicAnnotationFlag"],"0x0714":["CS","1","ShowPatientDemographicsFlag"],"0x0716":["CS","1","ShowAcquisitionTechniquesFlag"],"0x0717":["CS","1","DisplaySetHorizontalJustification"],"0x0718":["CS","1","DisplaySetVerticalJustification"]},"0x0074":{"0x0000":["UL","1","GenericGroupLength"],"0x0120":["FD","1","ContinuationStartMeterset"],"0x0121":["FD","1","ContinuationEndMeterset"],"0x1000":["CS","1","ProcedureStepState"],"0x1002":["SQ","1","ProcedureStepProgressInformationSequence"],"0x1004":["DS","1","ProcedureStepProgress"],"0x1006":["ST","1","ProcedureStepProgressDescription"],"0x1008":["SQ","1","ProcedureStepCommunicationsURISequence"],"0x100A":["UR","1","ContactURI"],"0x100C":["LO","1","ContactDisplayName"],"0x100E":["SQ","1","ProcedureStepDiscontinuationReasonCodeSequence"],"0x1020":["SQ","1","BeamTaskSequence"],"0x1022":["CS","1","BeamTaskType"],"0x1024":["IS","1","BeamOrderIndexTrial"],"0x1025":["CS","1","AutosequenceFlag"],"0x1026":["FD","1","TableTopVerticalAdjustedPosition"],"0x1027":["FD","1","TableTopLongitudinalAdjustedPosition"],"0x1028":["FD","1","TableTopLateralAdjustedPosition"],"0x102A":["FD","1","PatientSupportAdjustedAngle"],"0x102B":["FD","1","TableTopEccentricAdjustedAngle"],"0x102C":["FD","1","TableTopPitchAdjustedAngle"],"0x102D":["FD","1","TableTopRollAdjustedAngle"],"0x1030":["SQ","1","DeliveryVerificationImageSequence"],"0x1032":["CS","1","VerificationImageTiming"],"0x1034":["CS","1","DoubleExposureFlag"],"0x1036":["CS","1","DoubleExposureOrdering"],"0x1038":["DS","1","DoubleExposureMetersetTrial"],"0x103A":["DS","4","DoubleExposureFieldDeltaTrial"],"0x1040":["SQ","1","RelatedReferenceRTImageSequence"],"0x1042":["SQ","1","GeneralMachineVerificationSequence"],"0x1044":["SQ","1","ConventionalMachineVerificationSequence"],"0x1046":["SQ","1","IonMachineVerificationSequence"],"0x1048":["SQ","1","FailedAttributesSequence"],"0x104A":["SQ","1","OverriddenAttributesSequence"],"0x104C":["SQ","1","ConventionalControlPointVerificationSequence"],"0x104E":["SQ","1","IonControlPointVerificationSequence"],"0x1050":["SQ","1","AttributeOccurrenceSequence"],"0x1052":["AT","1","AttributeOccurrencePointer"],"0x1054":["UL","1","AttributeItemSelector"],"0x1056":["LO","1","AttributeOccurrencePrivateCreator"],"0x1057":["IS","1-n","SelectorSequencePointerItems"],"0x1200":["CS","1","ScheduledProcedureStepPriority"],"0x1202":["LO","1","WorklistLabel"],"0x1204":["LO","1","ProcedureStepLabel"],"0x1210":["SQ","1","ScheduledProcessingParametersSequence"],"0x1212":["SQ","1","PerformedProcessingParametersSequence"],"0x1216":["SQ","1","UnifiedProcedureStepPerformedProcedureSequence"],"0x1220":["SQ","1","RelatedProcedureStepSequence"],"0x1222":["LO","1","ProcedureStepRelationshipType"],"0x1224":["SQ","1","ReplacedProcedureStepSequence"],"0x1230":["LO","1","DeletionLock"],"0x1234":["AE","1","ReceivingAE"],"0x1236":["AE","1","RequestingAE"],"0x1238":["LT","1","ReasonForCancellation"],"0x1242":["CS","1","SCPStatus"],"0x1244":["CS","1","SubscriptionListStatus"],"0x1246":["CS","1","UnifiedProcedureStepListStatus"],"0x1324":["UL","1","BeamOrderIndex"],"0x1338":["FD","1","DoubleExposureMeterset"],"0x133A":["FD","4","DoubleExposureFieldDelta"]},"0x0076":{"0x0000":["UL","1","GenericGroupLength"],"0x0001":["LO","1","ImplantAssemblyTemplateName"],"0x0003":["LO","1","ImplantAssemblyTemplateIssuer"],"0x0006":["LO","1","ImplantAssemblyTemplateVersion"],"0x0008":["SQ","1","ReplacedImplantAssemblyTemplateSequence"],"0x000A":["CS","1","ImplantAssemblyTemplateType"],"0x000C":["SQ","1","OriginalImplantAssemblyTemplateSequence"],"0x000E":["SQ","1","DerivationImplantAssemblyTemplateSequence"],"0x0010":["SQ","1","ImplantAssemblyTemplateTargetAnatomySequence"],"0x0020":["SQ","1","ProcedureTypeCodeSequence"],"0x0030":["LO","1","SurgicalTechnique"],"0x0032":["SQ","1","ComponentTypesSequence"],"0x0034":["CS","1","ComponentTypeCodeSequence"],"0x0036":["CS","1","ExclusiveComponentType"],"0x0038":["CS","1","MandatoryComponentType"],"0x0040":["SQ","1","ComponentSequence"],"0x0055":["US","1","ComponentID"],"0x0060":["SQ","1","ComponentAssemblySequence"],"0x0070":["US","1","Component1ReferencedID"],"0x0080":["US","1","Component1ReferencedMatingFeatureSetID"],"0x0090":["US","1","Component1ReferencedMatingFeatureID"],"0x00A0":["US","1","Component2ReferencedID"],"0x00B0":["US","1","Component2ReferencedMatingFeatureSetID"],"0x00C0":["US","1","Component2ReferencedMatingFeatureID"]},"0x0078":{"0x0000":["UL","1","GenericGroupLength"],"0x0001":["LO","1","ImplantTemplateGroupName"],"0x0010":["ST","1","ImplantTemplateGroupDescription"],"0x0020":["LO","1","ImplantTemplateGroupIssuer"],"0x0024":["LO","1","ImplantTemplateGroupVersion"],"0x0026":["SQ","1","ReplacedImplantTemplateGroupSequence"],"0x0028":["SQ","1","ImplantTemplateGroupTargetAnatomySequence"],"0x002A":["SQ","1","ImplantTemplateGroupMembersSequence"],"0x002E":["US","1","ImplantTemplateGroupMemberID"],"0x0050":["FD","3","ThreeDImplantTemplateGroupMemberMatchingPoint"],"0x0060":["FD","9","ThreeDImplantTemplateGroupMemberMatchingAxes"],"0x0070":["SQ","1","ImplantTemplateGroupMemberMatching2DCoordinatesSequence"],"0x0090":["FD","2","TwoDImplantTemplateGroupMemberMatchingPoint"],"0x00A0":["FD","4","TwoDImplantTemplateGroupMemberMatchingAxes"],"0x00B0":["SQ","1","ImplantTemplateGroupVariationDimensionSequence"],"0x00B2":["LO","1","ImplantTemplateGroupVariationDimensionName"],"0x00B4":["SQ","1","ImplantTemplateGroupVariationDimensionRankSequence"],"0x00B6":["US","1","ReferencedImplantTemplateGroupMemberID"],"0x00B8":["US","1","ImplantTemplateGroupVariationDimensionRank"]},"0x0080":{"0x0000":["UL","1","GenericGroupLength"],"0x0001":["SQ","1","SurfaceScanAcquisitionTypeCodeSequence"],"0x0002":["SQ","1","SurfaceScanModeCodeSequence"],"0x0003":["SQ","1","RegistrationMethodCodeSequence"],"0x0004":["FD","1","ShotDurationTime"],"0x0005":["FD","1","ShotOffsetTime"],"0x0006":["US","1-n","SurfacePointPresentationValueData"],"0x0007":["US","3-3n","SurfacePointColorCIELabValueData"],"0x0008":["SQ","1","UVMappingSequence"],"0x0009":["SH","1","TextureLabel"],"0x0010":["OF","1-n","UValueData"],"0x0011":["OF","1-n","VValueData"],"0x0012":["SQ","1","ReferencedTextureSequence"],"0x0013":["SQ","1","ReferencedSurfaceDataSequence"]},"0x0088":{"0x0000":["UL","1","GenericGroupLength"],"0x0130":["SH","1","StorageMediaFileSetID"],"0x0140":["UI","1","StorageMediaFileSetUID"],"0x0200":["SQ","1","IconImageSequence"],"0x0904":["LO","1","TopicTitle"],"0x0906":["ST","1","TopicSubject"],"0x0910":["LO","1","TopicAuthor"],"0x0912":["LO","1-32","TopicKeywords"]},"0x0100":{"0x0000":["UL","1","GenericGroupLength"],"0x0410":["CS","1","SOPInstanceStatus"],"0x0420":["DT","1","SOPAuthorizationDateTime"],"0x0424":["LT","1","SOPAuthorizationComment"],"0x0426":["LO","1","AuthorizationEquipmentCertificationNumber"]},"0x0400":{"0x0000":["UL","1","GenericGroupLength"],"0x0005":["US","1","MACIDNumber"],"0x0010":["UI","1","MACCalculationTransferSyntaxUID"],"0x0015":["CS","1","MACAlgorithm"],"0x0020":["AT","1-n","DataElementsSigned"],"0x0100":["UI","1","DigitalSignatureUID"],"0x0105":["DT","1","DigitalSignatureDateTime"],"0x0110":["CS","1","CertificateType"],"0x0115":["OB","1","CertificateOfSigner"],"0x0120":["OB","1","Signature"],"0x0305":["CS","1","CertifiedTimestampType"],"0x0310":["OB","1","CertifiedTimestamp"],"0x0401":["SQ","1","DigitalSignaturePurposeCodeSequence"],"0x0402":["SQ","1","ReferencedDigitalSignatureSequence"],"0x0403":["SQ","1","ReferencedSOPInstanceMACSequence"],"0x0404":["OB","1","MAC"],"0x0500":["SQ","1","EncryptedAttributesSequence"],"0x0510":["UI","1","EncryptedContentTransferSyntaxUID"],"0x0520":["OB","1","EncryptedContent"],"0x0550":["SQ","1","ModifiedAttributesSequence"],"0x0561":["SQ","1","OriginalAttributesSequence"],"0x0562":["DT","1","AttributeModificationDateTime"],"0x0563":["LO","1","ModifyingSystem"],"0x0564":["LO","1","SourceOfPreviousValues"],"0x0565":["CS","1","ReasonForTheAttributeModification"]},"0x1000":{"0x0000":["UL","1","GenericGroupLength"],"0x0010":["US","3","EscapeTriplet"],"0x0011":["US","3","RunLengthTriplet"],"0x0012":["US","1","HuffmanTableSize"],"0x0013":["US","3","HuffmanTableTriplet"],"0x0014":["US","1","ShiftTableSize"],"0x0015":["US","3","ShiftTableTriplet"]},"0x1010":{"0x0000":["UL","1","GenericGroupLength"],"0x0004":["US","1-n","ZonalMap"]},"0x2000":{"0x0000":["UL","1","GenericGroupLength"],"0x0010":["IS","1","NumberOfCopies"],"0x001E":["SQ","1","PrinterConfigurationSequence"],"0x0020":["CS","1","PrintPriority"],"0x0030":["CS","1","MediumType"],"0x0040":["CS","1","FilmDestination"],"0x0050":["LO","1","FilmSessionLabel"],"0x0060":["IS","1","MemoryAllocation"],"0x0061":["IS","1","MaximumMemoryAllocation"],"0x0062":["CS","1","ColorImagePrintingFlag"],"0x0063":["CS","1","CollationFlag"],"0x0065":["CS","1","AnnotationFlag"],"0x0067":["CS","1","ImageOverlayFlag"],"0x0069":["CS","1","PresentationLUTFlag"],"0x006A":["CS","1","ImageBoxPresentationLUTFlag"],"0x00A0":["US","1","MemoryBitDepth"],"0x00A1":["US","1","PrintingBitDepth"],"0x00A2":["SQ","1","MediaInstalledSequence"],"0x00A4":["SQ","1","OtherMediaAvailableSequence"],"0x00A8":["SQ","1","SupportedImageDisplayFormatsSequence"],"0x0500":["SQ","1","ReferencedFilmBoxSequence"],"0x0510":["SQ","1","ReferencedStoredPrintSequence"]},"0x2010":{"0x0000":["UL","1","GenericGroupLength"],"0x0010":["ST","1","ImageDisplayFormat"],"0x0030":["CS","1","AnnotationDisplayFormatID"],"0x0040":["CS","1","FilmOrientation"],"0x0050":["CS","1","FilmSizeID"],"0x0052":["CS","1","PrinterResolutionID"],"0x0054":["CS","1","DefaultPrinterResolutionID"],"0x0060":["CS","1","MagnificationType"],"0x0080":["CS","1","SmoothingType"],"0x00A6":["CS","1","DefaultMagnificationType"],"0x00A7":["CS","1-n","OtherMagnificationTypesAvailable"],"0x00A8":["CS","1","DefaultSmoothingType"],"0x00A9":["CS","1-n","OtherSmoothingTypesAvailable"],"0x0100":["CS","1","BorderDensity"],"0x0110":["CS","1","EmptyImageDensity"],"0x0120":["US","1","MinDensity"],"0x0130":["US","1","MaxDensity"],"0x0140":["CS","1","Trim"],"0x0150":["ST","1","ConfigurationInformation"],"0x0152":["LT","1","ConfigurationInformationDescription"],"0x0154":["IS","1","MaximumCollatedFilms"],"0x015E":["US","1","Illumination"],"0x0160":["US","1","ReflectedAmbientLight"],"0x0376":["DS","2","PrinterPixelSpacing"],"0x0500":["SQ","1","ReferencedFilmSessionSequence"],"0x0510":["SQ","1","ReferencedImageBoxSequence"],"0x0520":["SQ","1","ReferencedBasicAnnotationBoxSequence"]},"0x2020":{"0x0000":["UL","1","GenericGroupLength"],"0x0010":["US","1","ImageBoxPosition"],"0x0020":["CS","1","Polarity"],"0x0030":["DS","1","RequestedImageSize"],"0x0040":["CS","1","RequestedDecimateCropBehavior"],"0x0050":["CS","1","RequestedResolutionID"],"0x00A0":["CS","1","RequestedImageSizeFlag"],"0x00A2":["CS","1","DecimateCropResult"],"0x0110":["SQ","1","BasicGrayscaleImageSequence"],"0x0111":["SQ","1","BasicColorImageSequence"],"0x0130":["SQ","1","ReferencedImageOverlayBoxSequence"],"0x0140":["SQ","1","ReferencedVOILUTBoxSequence"]},"0x2030":{"0x0000":["UL","1","GenericGroupLength"],"0x0010":["US","1","AnnotationPosition"],"0x0020":["LO","1","TextString"]},"0x2040":{"0x0000":["UL","1","GenericGroupLength"],"0x0010":["SQ","1","ReferencedOverlayPlaneSequence"],"0x0011":["US","1-99","ReferencedOverlayPlaneGroups"],"0x0020":["SQ","1","OverlayPixelDataSequence"],"0x0060":["CS","1","OverlayMagnificationType"],"0x0070":["CS","1","OverlaySmoothingType"],"0x0072":["CS","1","OverlayOrImageMagnification"],"0x0074":["US","1","MagnifyToNumberOfColumns"],"0x0080":["CS","1","OverlayForegroundDensity"],"0x0082":["CS","1","OverlayBackgroundDensity"],"0x0090":["CS","1","OverlayMode"],"0x0100":["CS","1","ThresholdDensity"],"0x0500":["SQ","1","ReferencedImageBoxSequenceRetired"]},"0x2050":{"0x0000":["UL","1","GenericGroupLength"],"0x0010":["SQ","1","PresentationLUTSequence"],"0x0020":["CS","1","PresentationLUTShape"],"0x0500":["SQ","1","ReferencedPresentationLUTSequence"]},"0x2100":{"0x0000":["UL","1","GenericGroupLength"],"0x0010":["SH","1","PrintJobID"],"0x0020":["CS","1","ExecutionStatus"],"0x0030":["CS","1","ExecutionStatusInfo"],"0x0040":["DA","1","CreationDate"],"0x0050":["TM","1","CreationTime"],"0x0070":["AE","1","Originator"],"0x0140":["AE","1","DestinationAE"],"0x0160":["SH","1","OwnerID"],"0x0170":["IS","1","NumberOfFilms"],"0x0500":["SQ","1","ReferencedPrintJobSequencePullStoredPrint"]},"0x2110":{"0x0000":["UL","1","GenericGroupLength"],"0x0010":["CS","1","PrinterStatus"],"0x0020":["CS","1","PrinterStatusInfo"],"0x0030":["LO","1","PrinterName"],"0x0099":["SH","1","PrintQueueID"]},"0x2120":{"0x0000":["UL","1","GenericGroupLength"],"0x0010":["CS","1","QueueStatus"],"0x0050":["SQ","1","PrintJobDescriptionSequence"],"0x0070":["SQ","1","ReferencedPrintJobSequence"]},"0x2130":{"0x0000":["UL","1","GenericGroupLength"],"0x0010":["SQ","1","PrintManagementCapabilitiesSequence"],"0x0015":["SQ","1","PrinterCharacteristicsSequence"],"0x0030":["SQ","1","FilmBoxContentSequence"],"0x0040":["SQ","1","ImageBoxContentSequence"],"0x0050":["SQ","1","AnnotationContentSequence"],"0x0060":["SQ","1","ImageOverlayBoxContentSequence"],"0x0080":["SQ","1","PresentationLUTContentSequence"],"0x00A0":["SQ","1","ProposedStudySequence"],"0x00C0":["SQ","1","OriginalImageSequence"]},"0x2200":{"0x0000":["UL","1","GenericGroupLength"],"0x0001":["CS","1","LabelUsingInformationExtractedFromInstances"],"0x0002":["UT","1","LabelText"],"0x0003":["CS","1","LabelStyleSelection"],"0x0004":["LT","1","MediaDisposition"],"0x0005":["LT","1","BarcodeValue"],"0x0006":["CS","1","BarcodeSymbology"],"0x0007":["CS","1","AllowMediaSplitting"],"0x0008":["CS","1","IncludeNonDICOMObjects"],"0x0009":["CS","1","IncludeDisplayApplication"],"0x000A":["CS","1","PreserveCompositeInstancesAfterMediaCreation"],"0x000B":["US","1","TotalNumberOfPiecesOfMediaCreated"],"0x000C":["LO","1","RequestedMediaApplicationProfile"],"0x000D":["SQ","1","ReferencedStorageMediaSequence"],"0x000E":["AT","1-n","FailureAttributes"],"0x000F":["CS","1","AllowLossyCompression"],"0x0020":["CS","1","RequestPriority"]},"0x3002":{"0x0000":["UL","1","GenericGroupLength"],"0x0002":["SH","1","RTImageLabel"],"0x0003":["LO","1","RTImageName"],"0x0004":["ST","1","RTImageDescription"],"0x000A":["CS","1","ReportedValuesOrigin"],"0x000C":["CS","1","RTImagePlane"],"0x000D":["DS","3","XRayImageReceptorTranslation"],"0x000E":["DS","1","XRayImageReceptorAngle"],"0x0010":["DS","6","RTImageOrientation"],"0x0011":["DS","2","ImagePlanePixelSpacing"],"0x0012":["DS","2","RTImagePosition"],"0x0020":["SH","1","RadiationMachineName"],"0x0022":["DS","1","RadiationMachineSAD"],"0x0024":["DS","1","RadiationMachineSSD"],"0x0026":["DS","1","RTImageSID"],"0x0028":["DS","1","SourceToReferenceObjectDistance"],"0x0029":["IS","1","FractionNumber"],"0x0030":["SQ","1","ExposureSequence"],"0x0032":["DS","1","MetersetExposure"],"0x0034":["DS","4","DiaphragmPosition"],"0x0040":["SQ","1","FluenceMapSequence"],"0x0041":["CS","1","FluenceDataSource"],"0x0042":["DS","1","FluenceDataScale"],"0x0050":["SQ","1","PrimaryFluenceModeSequence"],"0x0051":["CS","1","FluenceMode"],"0x0052":["SH","1","FluenceModeID"]},"0x3004":{"0x0000":["UL","1","GenericGroupLength"],"0x0001":["CS","1","DVHType"],"0x0002":["CS","1","DoseUnits"],"0x0004":["CS","1","DoseType"],"0x0005":["CS","1","SpatialTransformOfDose"],"0x0006":["LO","1","DoseComment"],"0x0008":["DS","3","NormalizationPoint"],"0x000A":["CS","1","DoseSummationType"],"0x000C":["DS","2-n","GridFrameOffsetVector"],"0x000E":["DS","1","DoseGridScaling"],"0x0010":["SQ","1","RTDoseROISequence"],"0x0012":["DS","1","DoseValue"],"0x0014":["CS","1-3","TissueHeterogeneityCorrection"],"0x0040":["DS","3","DVHNormalizationPoint"],"0x0042":["DS","1","DVHNormalizationDoseValue"],"0x0050":["SQ","1","DVHSequence"],"0x0052":["DS","1","DVHDoseScaling"],"0x0054":["CS","1","DVHVolumeUnits"],"0x0056":["IS","1","DVHNumberOfBins"],"0x0058":["DS","2-2n","DVHData"],"0x0060":["SQ","1","DVHReferencedROISequence"],"0x0062":["CS","1","DVHROIContributionType"],"0x0070":["DS","1","DVHMinimumDose"],"0x0072":["DS","1","DVHMaximumDose"],"0x0074":["DS","1","DVHMeanDose"]},"0x3006":{"0x0000":["UL","1","GenericGroupLength"],"0x0002":["SH","1","StructureSetLabel"],"0x0004":["LO","1","StructureSetName"],"0x0006":["ST","1","StructureSetDescription"],"0x0008":["DA","1","StructureSetDate"],"0x0009":["TM","1","StructureSetTime"],"0x0010":["SQ","1","ReferencedFrameOfReferenceSequence"],"0x0012":["SQ","1","RTReferencedStudySequence"],"0x0014":["SQ","1","RTReferencedSeriesSequence"],"0x0016":["SQ","1","ContourImageSequence"],"0x0018":["SQ","1","PredecessorStructureSetSequence"],"0x0020":["SQ","1","StructureSetROISequence"],"0x0022":["IS","1","ROINumber"],"0x0024":["UI","1","ReferencedFrameOfReferenceUID"],"0x0026":["LO","1","ROIName"],"0x0028":["ST","1","ROIDescription"],"0x002A":["IS","3","ROIDisplayColor"],"0x002C":["DS","1","ROIVolume"],"0x0030":["SQ","1","RTRelatedROISequence"],"0x0033":["CS","1","RTROIRelationship"],"0x0036":["CS","1","ROIGenerationAlgorithm"],"0x0038":["LO","1","ROIGenerationDescription"],"0x0039":["SQ","1","ROIContourSequence"],"0x0040":["SQ","1","ContourSequence"],"0x0042":["CS","1","ContourGeometricType"],"0x0044":["DS","1","ContourSlabThickness"],"0x0045":["DS","3","ContourOffsetVector"],"0x0046":["IS","1","NumberOfContourPoints"],"0x0048":["IS","1","ContourNumber"],"0x0049":["IS","1-n","AttachedContours"],"0x0050":["DS","3-3n","ContourData"],"0x0080":["SQ","1","RTROIObservationsSequence"],"0x0082":["IS","1","ObservationNumber"],"0x0084":["IS","1","ReferencedROINumber"],"0x0085":["SH","1","ROIObservationLabel"],"0x0086":["SQ","1","RTROIIdentificationCodeSequence"],"0x0088":["ST","1","ROIObservationDescription"],"0x00A0":["SQ","1","RelatedRTROIObservationsSequence"],"0x00A4":["CS","1","RTROIInterpretedType"],"0x00A6":["PN","1","ROIInterpreter"],"0x00B0":["SQ","1","ROIPhysicalPropertiesSequence"],"0x00B2":["CS","1","ROIPhysicalProperty"],"0x00B4":["DS","1","ROIPhysicalPropertyValue"],"0x00B6":["SQ","1","ROIElementalCompositionSequence"],"0x00B7":["US","1","ROIElementalCompositionAtomicNumber"],"0x00B8":["FL","1","ROIElementalCompositionAtomicMassFraction"],"0x00B9":["SQ","1","AdditionalRTROIIdentificationCodeSequence"],"0x00C0":["SQ","1","FrameOfReferenceRelationshipSequence"],"0x00C2":["UI","1","RelatedFrameOfReferenceUID"],"0x00C4":["CS","1","FrameOfReferenceTransformationType"],"0x00C6":["DS","16","FrameOfReferenceTransformationMatrix"],"0x00C8":["LO","1","FrameOfReferenceTransformationComment"]},"0x3008":{"0x0000":["UL","1","GenericGroupLength"],"0x0010":["SQ","1","MeasuredDoseReferenceSequence"],"0x0012":["ST","1","MeasuredDoseDescription"],"0x0014":["CS","1","MeasuredDoseType"],"0x0016":["DS","1","MeasuredDoseValue"],"0x0020":["SQ","1","TreatmentSessionBeamSequence"],"0x0021":["SQ","1","TreatmentSessionIonBeamSequence"],"0x0022":["IS","1","CurrentFractionNumber"],"0x0024":["DA","1","TreatmentControlPointDate"],"0x0025":["TM","1","TreatmentControlPointTime"],"0x002A":["CS","1","TreatmentTerminationStatus"],"0x002B":["SH","1","TreatmentTerminationCode"],"0x002C":["CS","1","TreatmentVerificationStatus"],"0x0030":["SQ","1","ReferencedTreatmentRecordSequence"],"0x0032":["DS","1","SpecifiedPrimaryMeterset"],"0x0033":["DS","1","SpecifiedSecondaryMeterset"],"0x0036":["DS","1","DeliveredPrimaryMeterset"],"0x0037":["DS","1","DeliveredSecondaryMeterset"],"0x003A":["DS","1","SpecifiedTreatmentTime"],"0x003B":["DS","1","DeliveredTreatmentTime"],"0x0040":["SQ","1","ControlPointDeliverySequence"],"0x0041":["SQ","1","IonControlPointDeliverySequence"],"0x0042":["DS","1","SpecifiedMeterset"],"0x0044":["DS","1","DeliveredMeterset"],"0x0045":["FL","1","MetersetRateSet"],"0x0046":["FL","1","MetersetRateDelivered"],"0x0047":["FL","1-n","ScanSpotMetersetsDelivered"],"0x0048":["DS","1","DoseRateDelivered"],"0x0050":["SQ","1","TreatmentSummaryCalculatedDoseReferenceSequence"],"0x0052":["DS","1","CumulativeDoseToDoseReference"],"0x0054":["DA","1","FirstTreatmentDate"],"0x0056":["DA","1","MostRecentTreatmentDate"],"0x005A":["IS","1","NumberOfFractionsDelivered"],"0x0060":["SQ","1","OverrideSequence"],"0x0061":["AT","1","ParameterSequencePointer"],"0x0062":["AT","1","OverrideParameterPointer"],"0x0063":["IS","1","ParameterItemIndex"],"0x0064":["IS","1","MeasuredDoseReferenceNumber"],"0x0065":["AT","1","ParameterPointer"],"0x0066":["ST","1","OverrideReason"],"0x0068":["SQ","1","CorrectedParameterSequence"],"0x006A":["FL","1","CorrectionValue"],"0x0070":["SQ","1","CalculatedDoseReferenceSequence"],"0x0072":["IS","1","CalculatedDoseReferenceNumber"],"0x0074":["ST","1","CalculatedDoseReferenceDescription"],"0x0076":["DS","1","CalculatedDoseReferenceDoseValue"],"0x0078":["DS","1","StartMeterset"],"0x007A":["DS","1","EndMeterset"],"0x0080":["SQ","1","ReferencedMeasuredDoseReferenceSequence"],"0x0082":["IS","1","ReferencedMeasuredDoseReferenceNumber"],"0x0090":["SQ","1","ReferencedCalculatedDoseReferenceSequence"],"0x0092":["IS","1","ReferencedCalculatedDoseReferenceNumber"],"0x00A0":["SQ","1","BeamLimitingDeviceLeafPairsSequence"],"0x00B0":["SQ","1","RecordedWedgeSequence"],"0x00C0":["SQ","1","RecordedCompensatorSequence"],"0x00D0":["SQ","1","RecordedBlockSequence"],"0x00E0":["SQ","1","TreatmentSummaryMeasuredDoseReferenceSequence"],"0x00F0":["SQ","1","RecordedSnoutSequence"],"0x00F2":["SQ","1","RecordedRangeShifterSequence"],"0x00F4":["SQ","1","RecordedLateralSpreadingDeviceSequence"],"0x00F6":["SQ","1","RecordedRangeModulatorSequence"],"0x0100":["SQ","1","RecordedSourceSequence"],"0x0105":["LO","1","SourceSerialNumber"],"0x0110":["SQ","1","TreatmentSessionApplicationSetupSequence"],"0x0116":["CS","1","ApplicationSetupCheck"],"0x0120":["SQ","1","RecordedBrachyAccessoryDeviceSequence"],"0x0122":["IS","1","ReferencedBrachyAccessoryDeviceNumber"],"0x0130":["SQ","1","RecordedChannelSequence"],"0x0132":["DS","1","SpecifiedChannelTotalTime"],"0x0134":["DS","1","DeliveredChannelTotalTime"],"0x0136":["IS","1","SpecifiedNumberOfPulses"],"0x0138":["IS","1","DeliveredNumberOfPulses"],"0x013A":["DS","1","SpecifiedPulseRepetitionInterval"],"0x013C":["DS","1","DeliveredPulseRepetitionInterval"],"0x0140":["SQ","1","RecordedSourceApplicatorSequence"],"0x0142":["IS","1","ReferencedSourceApplicatorNumber"],"0x0150":["SQ","1","RecordedChannelShieldSequence"],"0x0152":["IS","1","ReferencedChannelShieldNumber"],"0x0160":["SQ","1","BrachyControlPointDeliveredSequence"],"0x0162":["DA","1","SafePositionExitDate"],"0x0164":["TM","1","SafePositionExitTime"],"0x0166":["DA","1","SafePositionReturnDate"],"0x0168":["TM","1","SafePositionReturnTime"],"0x0171":["SQ","1","PulseSpecificBrachyControlPointDeliveredSequence"],"0x0172":["US","1","PulseNumber"],"0x0173":["SQ","1","BrachyPulseControlPointDeliveredSequence"],"0x0200":["CS","1","CurrentTreatmentStatus"],"0x0202":["ST","1","TreatmentStatusComment"],"0x0220":["SQ","1","FractionGroupSummarySequence"],"0x0223":["IS","1","ReferencedFractionNumber"],"0x0224":["CS","1","FractionGroupType"],"0x0230":["CS","1","BeamStopperPosition"],"0x0240":["SQ","1","FractionStatusSummarySequence"],"0x0250":["DA","1","TreatmentDate"],"0x0251":["TM","1","TreatmentTime"]},"0x300A":{"0x0000":["UL","1","GenericGroupLength"],"0x0002":["SH","1","RTPlanLabel"],"0x0003":["LO","1","RTPlanName"],"0x0004":["ST","1","RTPlanDescription"],"0x0006":["DA","1","RTPlanDate"],"0x0007":["TM","1","RTPlanTime"],"0x0009":["LO","1-n","TreatmentProtocols"],"0x000A":["CS","1","PlanIntent"],"0x000B":["LO","1-n","TreatmentSites"],"0x000C":["CS","1","RTPlanGeometry"],"0x000E":["ST","1","PrescriptionDescription"],"0x0010":["SQ","1","DoseReferenceSequence"],"0x0012":["IS","1","DoseReferenceNumber"],"0x0013":["UI","1","DoseReferenceUID"],"0x0014":["CS","1","DoseReferenceStructureType"],"0x0015":["CS","1","NominalBeamEnergyUnit"],"0x0016":["LO","1","DoseReferenceDescription"],"0x0018":["DS","3","DoseReferencePointCoordinates"],"0x001A":["DS","1","NominalPriorDose"],"0x0020":["CS","1","DoseReferenceType"],"0x0021":["DS","1","ConstraintWeight"],"0x0022":["DS","1","DeliveryWarningDose"],"0x0023":["DS","1","DeliveryMaximumDose"],"0x0025":["DS","1","TargetMinimumDose"],"0x0026":["DS","1","TargetPrescriptionDose"],"0x0027":["DS","1","TargetMaximumDose"],"0x0028":["DS","1","TargetUnderdoseVolumeFraction"],"0x002A":["DS","1","OrganAtRiskFullVolumeDose"],"0x002B":["DS","1","OrganAtRiskLimitDose"],"0x002C":["DS","1","OrganAtRiskMaximumDose"],"0x002D":["DS","1","OrganAtRiskOverdoseVolumeFraction"],"0x0040":["SQ","1","ToleranceTableSequence"],"0x0042":["IS","1","ToleranceTableNumber"],"0x0043":["SH","1","ToleranceTableLabel"],"0x0044":["DS","1","GantryAngleTolerance"],"0x0046":["DS","1","BeamLimitingDeviceAngleTolerance"],"0x0048":["SQ","1","BeamLimitingDeviceToleranceSequence"],"0x004A":["DS","1","BeamLimitingDevicePositionTolerance"],"0x004B":["FL","1","SnoutPositionTolerance"],"0x004C":["DS","1","PatientSupportAngleTolerance"],"0x004E":["DS","1","TableTopEccentricAngleTolerance"],"0x004F":["FL","1","TableTopPitchAngleTolerance"],"0x0050":["FL","1","TableTopRollAngleTolerance"],"0x0051":["DS","1","TableTopVerticalPositionTolerance"],"0x0052":["DS","1","TableTopLongitudinalPositionTolerance"],"0x0053":["DS","1","TableTopLateralPositionTolerance"],"0x0055":["CS","1","RTPlanRelationship"],"0x0070":["SQ","1","FractionGroupSequence"],"0x0071":["IS","1","FractionGroupNumber"],"0x0072":["LO","1","FractionGroupDescription"],"0x0078":["IS","1","NumberOfFractionsPlanned"],"0x0079":["IS","1","NumberOfFractionPatternDigitsPerDay"],"0x007A":["IS","1","RepeatFractionCycleLength"],"0x007B":["LT","1","FractionPattern"],"0x0080":["IS","1","NumberOfBeams"],"0x0082":["DS","3","BeamDoseSpecificationPoint"],"0x0084":["DS","1","BeamDose"],"0x0086":["DS","1","BeamMeterset"],"0x0088":["FL","1","BeamDosePointDepth"],"0x0089":["FL","1","BeamDosePointEquivalentDepth"],"0x008A":["FL","1","BeamDosePointSSD"],"0x008B":["CS","1","BeamDoseMeaning"],"0x008C":["SQ","1","BeamDoseVerificationControlPointSequence"],"0x008D":["FL","1","AverageBeamDosePointDepth"],"0x008E":["FL","1","AverageBeamDosePointEquivalentDepth"],"0x008F":["FL","1","AverageBeamDosePointSSD"],"0x00A0":["IS","1","NumberOfBrachyApplicationSetups"],"0x00A2":["DS","3","BrachyApplicationSetupDoseSpecificationPoint"],"0x00A4":["DS","1","BrachyApplicationSetupDose"],"0x00B0":["SQ","1","BeamSequence"],"0x00B2":["SH","1","TreatmentMachineName"],"0x00B3":["CS","1","PrimaryDosimeterUnit"],"0x00B4":["DS","1","SourceAxisDistance"],"0x00B6":["SQ","1","BeamLimitingDeviceSequence"],"0x00B8":["CS","1","RTBeamLimitingDeviceType"],"0x00BA":["DS","1","SourceToBeamLimitingDeviceDistance"],"0x00BB":["FL","1","IsocenterToBeamLimitingDeviceDistance"],"0x00BC":["IS","1","NumberOfLeafJawPairs"],"0x00BE":["DS","3-n","LeafPositionBoundaries"],"0x00C0":["IS","1","BeamNumber"],"0x00C2":["LO","1","BeamName"],"0x00C3":["ST","1","BeamDescription"],"0x00C4":["CS","1","BeamType"],"0x00C5":["FD","1","BeamDeliveryDurationLimit"],"0x00C6":["CS","1","RadiationType"],"0x00C7":["CS","1","HighDoseTechniqueType"],"0x00C8":["IS","1","ReferenceImageNumber"],"0x00CA":["SQ","1","PlannedVerificationImageSequence"],"0x00CC":["LO","1-n","ImagingDeviceSpecificAcquisitionParameters"],"0x00CE":["CS","1","TreatmentDeliveryType"],"0x00D0":["IS","1","NumberOfWedges"],"0x00D1":["SQ","1","WedgeSequence"],"0x00D2":["IS","1","WedgeNumber"],"0x00D3":["CS","1","WedgeType"],"0x00D4":["SH","1","WedgeID"],"0x00D5":["IS","1","WedgeAngle"],"0x00D6":["DS","1","WedgeFactor"],"0x00D7":["FL","1","TotalWedgeTrayWaterEquivalentThickness"],"0x00D8":["DS","1","WedgeOrientation"],"0x00D9":["FL","1","IsocenterToWedgeTrayDistance"],"0x00DA":["DS","1","SourceToWedgeTrayDistance"],"0x00DB":["FL","1","WedgeThinEdgePosition"],"0x00DC":["SH","1","BolusID"],"0x00DD":["ST","1","BolusDescription"],"0x00DE":["DS","1","EffectiveWedgeAngle"],"0x00E0":["IS","1","NumberOfCompensators"],"0x00E1":["SH","1","MaterialID"],"0x00E2":["DS","1","TotalCompensatorTrayFactor"],"0x00E3":["SQ","1","CompensatorSequence"],"0x00E4":["IS","1","CompensatorNumber"],"0x00E5":["SH","1","CompensatorID"],"0x00E6":["DS","1","SourceToCompensatorTrayDistance"],"0x00E7":["IS","1","CompensatorRows"],"0x00E8":["IS","1","CompensatorColumns"],"0x00E9":["DS","2","CompensatorPixelSpacing"],"0x00EA":["DS","2","CompensatorPosition"],"0x00EB":["DS","1-n","CompensatorTransmissionData"],"0x00EC":["DS","1-n","CompensatorThicknessData"],"0x00ED":["IS","1","NumberOfBoli"],"0x00EE":["CS","1","CompensatorType"],"0x00EF":["SH","1","CompensatorTrayID"],"0x00F0":["IS","1","NumberOfBlocks"],"0x00F2":["DS","1","TotalBlockTrayFactor"],"0x00F3":["FL","1","TotalBlockTrayWaterEquivalentThickness"],"0x00F4":["SQ","1","BlockSequence"],"0x00F5":["SH","1","BlockTrayID"],"0x00F6":["DS","1","SourceToBlockTrayDistance"],"0x00F7":["FL","1","IsocenterToBlockTrayDistance"],"0x00F8":["CS","1","BlockType"],"0x00F9":["LO","1","AccessoryCode"],"0x00FA":["CS","1","BlockDivergence"],"0x00FB":["CS","1","BlockMountingPosition"],"0x00FC":["IS","1","BlockNumber"],"0x00FE":["LO","1","BlockName"],"0x0100":["DS","1","BlockThickness"],"0x0102":["DS","1","BlockTransmission"],"0x0104":["IS","1","BlockNumberOfPoints"],"0x0106":["DS","2-2n","BlockData"],"0x0107":["SQ","1","ApplicatorSequence"],"0x0108":["SH","1","ApplicatorID"],"0x0109":["CS","1","ApplicatorType"],"0x010A":["LO","1","ApplicatorDescription"],"0x010C":["DS","1","CumulativeDoseReferenceCoefficient"],"0x010E":["DS","1","FinalCumulativeMetersetWeight"],"0x0110":["IS","1","NumberOfControlPoints"],"0x0111":["SQ","1","ControlPointSequence"],"0x0112":["IS","1","ControlPointIndex"],"0x0114":["DS","1","NominalBeamEnergy"],"0x0115":["DS","1","DoseRateSet"],"0x0116":["SQ","1","WedgePositionSequence"],"0x0118":["CS","1","WedgePosition"],"0x011A":["SQ","1","BeamLimitingDevicePositionSequence"],"0x011C":["DS","2-2n","LeafJawPositions"],"0x011E":["DS","1","GantryAngle"],"0x011F":["CS","1","GantryRotationDirection"],"0x0120":["DS","1","BeamLimitingDeviceAngle"],"0x0121":["CS","1","BeamLimitingDeviceRotationDirection"],"0x0122":["DS","1","PatientSupportAngle"],"0x0123":["CS","1","PatientSupportRotationDirection"],"0x0124":["DS","1","TableTopEccentricAxisDistance"],"0x0125":["DS","1","TableTopEccentricAngle"],"0x0126":["CS","1","TableTopEccentricRotationDirection"],"0x0128":["DS","1","TableTopVerticalPosition"],"0x0129":["DS","1","TableTopLongitudinalPosition"],"0x012A":["DS","1","TableTopLateralPosition"],"0x012C":["DS","3","IsocenterPosition"],"0x012E":["DS","3","SurfaceEntryPoint"],"0x0130":["DS","1","SourceToSurfaceDistance"],"0x0131":["FL","1","AverageBeamDosePointSourceToExternalContourSurfaceDistance"],"0x0132":["FL","1","SourceToExternalContourDistance"],"0x0133":["FL","3","ExternalContourEntryPoint"],"0x0134":["DS","1","CumulativeMetersetWeight"],"0x0140":["FL","1","TableTopPitchAngle"],"0x0142":["CS","1","TableTopPitchRotationDirection"],"0x0144":["FL","1","TableTopRollAngle"],"0x0146":["CS","1","TableTopRollRotationDirection"],"0x0148":["FL","1","HeadFixationAngle"],"0x014A":["FL","1","GantryPitchAngle"],"0x014C":["CS","1","GantryPitchRotationDirection"],"0x014E":["FL","1","GantryPitchAngleTolerance"],"0x0180":["SQ","1","PatientSetupSequence"],"0x0182":["IS","1","PatientSetupNumber"],"0x0183":["LO","1","PatientSetupLabel"],"0x0184":["LO","1","PatientAdditionalPosition"],"0x0190":["SQ","1","FixationDeviceSequence"],"0x0192":["CS","1","FixationDeviceType"],"0x0194":["SH","1","FixationDeviceLabel"],"0x0196":["ST","1","FixationDeviceDescription"],"0x0198":["SH","1","FixationDevicePosition"],"0x0199":["FL","1","FixationDevicePitchAngle"],"0x019A":["FL","1","FixationDeviceRollAngle"],"0x01A0":["SQ","1","ShieldingDeviceSequence"],"0x01A2":["CS","1","ShieldingDeviceType"],"0x01A4":["SH","1","ShieldingDeviceLabel"],"0x01A6":["ST","1","ShieldingDeviceDescription"],"0x01A8":["SH","1","ShieldingDevicePosition"],"0x01B0":["CS","1","SetupTechnique"],"0x01B2":["ST","1","SetupTechniqueDescription"],"0x01B4":["SQ","1","SetupDeviceSequence"],"0x01B6":["CS","1","SetupDeviceType"],"0x01B8":["SH","1","SetupDeviceLabel"],"0x01BA":["ST","1","SetupDeviceDescription"],"0x01BC":["DS","1","SetupDeviceParameter"],"0x01D0":["ST","1","SetupReferenceDescription"],"0x01D2":["DS","1","TableTopVerticalSetupDisplacement"],"0x01D4":["DS","1","TableTopLongitudinalSetupDisplacement"],"0x01D6":["DS","1","TableTopLateralSetupDisplacement"],"0x0200":["CS","1","BrachyTreatmentTechnique"],"0x0202":["CS","1","BrachyTreatmentType"],"0x0206":["SQ","1","TreatmentMachineSequence"],"0x0210":["SQ","1","SourceSequence"],"0x0212":["IS","1","SourceNumber"],"0x0214":["CS","1","SourceType"],"0x0216":["LO","1","SourceManufacturer"],"0x0218":["DS","1","ActiveSourceDiameter"],"0x021A":["DS","1","ActiveSourceLength"],"0x021B":["SH","1","SourceModelID"],"0x021C":["LO","1","SourceDescription"],"0x0222":["DS","1","SourceEncapsulationNominalThickness"],"0x0224":["DS","1","SourceEncapsulationNominalTransmission"],"0x0226":["LO","1","SourceIsotopeName"],"0x0228":["DS","1","SourceIsotopeHalfLife"],"0x0229":["CS","1","SourceStrengthUnits"],"0x022A":["DS","1","ReferenceAirKermaRate"],"0x022B":["DS","1","SourceStrength"],"0x022C":["DA","1","SourceStrengthReferenceDate"],"0x022E":["TM","1","SourceStrengthReferenceTime"],"0x0230":["SQ","1","ApplicationSetupSequence"],"0x0232":["CS","1","ApplicationSetupType"],"0x0234":["IS","1","ApplicationSetupNumber"],"0x0236":["LO","1","ApplicationSetupName"],"0x0238":["LO","1","ApplicationSetupManufacturer"],"0x0240":["IS","1","TemplateNumber"],"0x0242":["SH","1","TemplateType"],"0x0244":["LO","1","TemplateName"],"0x0250":["DS","1","TotalReferenceAirKerma"],"0x0260":["SQ","1","BrachyAccessoryDeviceSequence"],"0x0262":["IS","1","BrachyAccessoryDeviceNumber"],"0x0263":["SH","1","BrachyAccessoryDeviceID"],"0x0264":["CS","1","BrachyAccessoryDeviceType"],"0x0266":["LO","1","BrachyAccessoryDeviceName"],"0x026A":["DS","1","BrachyAccessoryDeviceNominalThickness"],"0x026C":["DS","1","BrachyAccessoryDeviceNominalTransmission"],"0x0280":["SQ","1","ChannelSequence"],"0x0282":["IS","1","ChannelNumber"],"0x0284":["DS","1","ChannelLength"],"0x0286":["DS","1","ChannelTotalTime"],"0x0288":["CS","1","SourceMovementType"],"0x028A":["IS","1","NumberOfPulses"],"0x028C":["DS","1","PulseRepetitionInterval"],"0x0290":["IS","1","SourceApplicatorNumber"],"0x0291":["SH","1","SourceApplicatorID"],"0x0292":["CS","1","SourceApplicatorType"],"0x0294":["LO","1","SourceApplicatorName"],"0x0296":["DS","1","SourceApplicatorLength"],"0x0298":["LO","1","SourceApplicatorManufacturer"],"0x029C":["DS","1","SourceApplicatorWallNominalThickness"],"0x029E":["DS","1","SourceApplicatorWallNominalTransmission"],"0x02A0":["DS","1","SourceApplicatorStepSize"],"0x02A2":["IS","1","TransferTubeNumber"],"0x02A4":["DS","1","TransferTubeLength"],"0x02B0":["SQ","1","ChannelShieldSequence"],"0x02B2":["IS","1","ChannelShieldNumber"],"0x02B3":["SH","1","ChannelShieldID"],"0x02B4":["LO","1","ChannelShieldName"],"0x02B8":["DS","1","ChannelShieldNominalThickness"],"0x02BA":["DS","1","ChannelShieldNominalTransmission"],"0x02C8":["DS","1","FinalCumulativeTimeWeight"],"0x02D0":["SQ","1","BrachyControlPointSequence"],"0x02D2":["DS","1","ControlPointRelativePosition"],"0x02D4":["DS","3","ControlPoint3DPosition"],"0x02D6":["DS","1","CumulativeTimeWeight"],"0x02E0":["CS","1","CompensatorDivergence"],"0x02E1":["CS","1","CompensatorMountingPosition"],"0x02E2":["DS","1-n","SourceToCompensatorDistance"],"0x02E3":["FL","1","TotalCompensatorTrayWaterEquivalentThickness"],"0x02E4":["FL","1","IsocenterToCompensatorTrayDistance"],"0x02E5":["FL","1","CompensatorColumnOffset"],"0x02E6":["FL","1-n","IsocenterToCompensatorDistances"],"0x02E7":["FL","1","CompensatorRelativeStoppingPowerRatio"],"0x02E8":["FL","1","CompensatorMillingToolDiameter"],"0x02EA":["SQ","1","IonRangeCompensatorSequence"],"0x02EB":["LT","1","CompensatorDescription"],"0x0302":["IS","1","RadiationMassNumber"],"0x0304":["IS","1","RadiationAtomicNumber"],"0x0306":["SS","1","RadiationChargeState"],"0x0308":["CS","1","ScanMode"],"0x030A":["FL","2","VirtualSourceAxisDistances"],"0x030C":["SQ","1","SnoutSequence"],"0x030D":["FL","1","SnoutPosition"],"0x030F":["SH","1","SnoutID"],"0x0312":["IS","1","NumberOfRangeShifters"],"0x0314":["SQ","1","RangeShifterSequence"],"0x0316":["IS","1","RangeShifterNumber"],"0x0318":["SH","1","RangeShifterID"],"0x0320":["CS","1","RangeShifterType"],"0x0322":["LO","1","RangeShifterDescription"],"0x0330":["IS","1","NumberOfLateralSpreadingDevices"],"0x0332":["SQ","1","LateralSpreadingDeviceSequence"],"0x0334":["IS","1","LateralSpreadingDeviceNumber"],"0x0336":["SH","1","LateralSpreadingDeviceID"],"0x0338":["CS","1","LateralSpreadingDeviceType"],"0x033A":["LO","1","LateralSpreadingDeviceDescription"],"0x033C":["FL","1","LateralSpreadingDeviceWaterEquivalentThickness"],"0x0340":["IS","1","NumberOfRangeModulators"],"0x0342":["SQ","1","RangeModulatorSequence"],"0x0344":["IS","1","RangeModulatorNumber"],"0x0346":["SH","1","RangeModulatorID"],"0x0348":["CS","1","RangeModulatorType"],"0x034A":["LO","1","RangeModulatorDescription"],"0x034C":["SH","1","BeamCurrentModulationID"],"0x0350":["CS","1","PatientSupportType"],"0x0352":["SH","1","PatientSupportID"],"0x0354":["LO","1","PatientSupportAccessoryCode"],"0x0356":["FL","1","FixationLightAzimuthalAngle"],"0x0358":["FL","1","FixationLightPolarAngle"],"0x035A":["FL","1","MetersetRate"],"0x0360":["SQ","1","RangeShifterSettingsSequence"],"0x0362":["LO","1","RangeShifterSetting"],"0x0364":["FL","1","IsocenterToRangeShifterDistance"],"0x0366":["FL","1","RangeShifterWaterEquivalentThickness"],"0x0370":["SQ","1","LateralSpreadingDeviceSettingsSequence"],"0x0372":["LO","1","LateralSpreadingDeviceSetting"],"0x0374":["FL","1","IsocenterToLateralSpreadingDeviceDistance"],"0x0380":["SQ","1","RangeModulatorSettingsSequence"],"0x0382":["FL","1","RangeModulatorGatingStartValue"],"0x0384":["FL","1","RangeModulatorGatingStopValue"],"0x0386":["FL","1","RangeModulatorGatingStartWaterEquivalentThickness"],"0x0388":["FL","1","RangeModulatorGatingStopWaterEquivalentThickness"],"0x038A":["FL","1","IsocenterToRangeModulatorDistance"],"0x0390":["SH","1","ScanSpotTuneID"],"0x0392":["IS","1","NumberOfScanSpotPositions"],"0x0394":["FL","1-n","ScanSpotPositionMap"],"0x0396":["FL","1-n","ScanSpotMetersetWeights"],"0x0398":["FL","2","ScanningSpotSize"],"0x039A":["IS","1","NumberOfPaintings"],"0x03A0":["SQ","1","IonToleranceTableSequence"],"0x03A2":["SQ","1","IonBeamSequence"],"0x03A4":["SQ","1","IonBeamLimitingDeviceSequence"],"0x03A6":["SQ","1","IonBlockSequence"],"0x03A8":["SQ","1","IonControlPointSequence"],"0x03AA":["SQ","1","IonWedgeSequence"],"0x03AC":["SQ","1","IonWedgePositionSequence"],"0x0401":["SQ","1","ReferencedSetupImageSequence"],"0x0402":["ST","1","SetupImageComment"],"0x0410":["SQ","1","MotionSynchronizationSequence"],"0x0412":["FL","3","ControlPointOrientation"],"0x0420":["SQ","1","GeneralAccessorySequence"],"0x0421":["SH","1","GeneralAccessoryID"],"0x0422":["ST","1","GeneralAccessoryDescription"],"0x0423":["CS","1","GeneralAccessoryType"],"0x0424":["IS","1","GeneralAccessoryNumber"],"0x0425":["FL","1","SourceToGeneralAccessoryDistance"],"0x0431":["SQ","1","ApplicatorGeometrySequence"],"0x0432":["CS","1","ApplicatorApertureShape"],"0x0433":["FL","1","ApplicatorOpening"],"0x0434":["FL","1","ApplicatorOpeningX"],"0x0435":["FL","1","ApplicatorOpeningY"],"0x0436":["FL","1","SourceToApplicatorMountingPositionDistance"],"0x0440":["IS","1","NumberOfBlockSlabItems"],"0x0441":["SQ","1","BlockSlabSequence"],"0x0442":["DS","1","BlockSlabThickness"],"0x0443":["US","1","BlockSlabNumber"],"0x0450":["SQ","1","DeviceMotionControlSequence"],"0x0451":["CS","1","DeviceMotionExecutionMode"],"0x0452":["CS","1","DeviceMotionObservationMode"],"0x0453":["SQ","1","DeviceMotionParameterCodeSequence"]},"0x300C":{"0x0000":["UL","1","GenericGroupLength"],"0x0002":["SQ","1","ReferencedRTPlanSequence"],"0x0004":["SQ","1","ReferencedBeamSequence"],"0x0006":["IS","1","ReferencedBeamNumber"],"0x0007":["IS","1","ReferencedReferenceImageNumber"],"0x0008":["DS","1","StartCumulativeMetersetWeight"],"0x0009":["DS","1","EndCumulativeMetersetWeight"],"0x000A":["SQ","1","ReferencedBrachyApplicationSetupSequence"],"0x000C":["IS","1","ReferencedBrachyApplicationSetupNumber"],"0x000E":["IS","1","ReferencedSourceNumber"],"0x0020":["SQ","1","ReferencedFractionGroupSequence"],"0x0022":["IS","1","ReferencedFractionGroupNumber"],"0x0040":["SQ","1","ReferencedVerificationImageSequence"],"0x0042":["SQ","1","ReferencedReferenceImageSequence"],"0x0050":["SQ","1","ReferencedDoseReferenceSequence"],"0x0051":["IS","1","ReferencedDoseReferenceNumber"],"0x0055":["SQ","1","BrachyReferencedDoseReferenceSequence"],"0x0060":["SQ","1","ReferencedStructureSetSequence"],"0x006A":["IS","1","ReferencedPatientSetupNumber"],"0x0080":["SQ","1","ReferencedDoseSequence"],"0x00A0":["IS","1","ReferencedToleranceTableNumber"],"0x00B0":["SQ","1","ReferencedBolusSequence"],"0x00C0":["IS","1","ReferencedWedgeNumber"],"0x00D0":["IS","1","ReferencedCompensatorNumber"],"0x00E0":["IS","1","ReferencedBlockNumber"],"0x00F0":["IS","1","ReferencedControlPointIndex"],"0x00F2":["SQ","1","ReferencedControlPointSequence"],"0x00F4":["IS","1","ReferencedStartControlPointIndex"],"0x00F6":["IS","1","ReferencedStopControlPointIndex"],"0x0100":["IS","1","ReferencedRangeShifterNumber"],"0x0102":["IS","1","ReferencedLateralSpreadingDeviceNumber"],"0x0104":["IS","1","ReferencedRangeModulatorNumber"],"0x0111":["SQ","1","OmittedBeamTaskSequence"],"0x0112":["CS","1","ReasonForOmission"],"0x0113":["LO","1","ReasonForOmissionDescription"]},"0x300E":{"0x0000":["UL","1","GenericGroupLength"],"0x0002":["CS","1","ApprovalStatus"],"0x0004":["DA","1","ReviewDate"],"0x0005":["TM","1","ReviewTime"],"0x0008":["PN","1","ReviewerName"]},"0x4000":{"0x0000":["UL","1","GenericGroupLength"],"0x0010":["LT","1","Arbitrary"],"0x4000":["LT","1","TextComments"]},"0x4008":{"0x0000":["UL","1","GenericGroupLength"],"0x0040":["SH","1","ResultsID"],"0x0042":["LO","1","ResultsIDIssuer"],"0x0050":["SQ","1","ReferencedInterpretationSequence"],"0x00FF":["CS","1","ReportProductionStatusTrial"],"0x0100":["DA","1","InterpretationRecordedDate"],"0x0101":["TM","1","InterpretationRecordedTime"],"0x0102":["PN","1","InterpretationRecorder"],"0x0103":["LO","1","ReferenceToRecordedSound"],"0x0108":["DA","1","InterpretationTranscriptionDate"],"0x0109":["TM","1","InterpretationTranscriptionTime"],"0x010A":["PN","1","InterpretationTranscriber"],"0x010B":["ST","1","InterpretationText"],"0x010C":["PN","1","InterpretationAuthor"],"0x0111":["SQ","1","InterpretationApproverSequence"],"0x0112":["DA","1","InterpretationApprovalDate"],"0x0113":["TM","1","InterpretationApprovalTime"],"0x0114":["PN","1","PhysicianApprovingInterpretation"],"0x0115":["LT","1","InterpretationDiagnosisDescription"],"0x0117":["SQ","1","InterpretationDiagnosisCodeSequence"],"0x0118":["SQ","1","ResultsDistributionListSequence"],"0x0119":["PN","1","DistributionName"],"0x011A":["LO","1","DistributionAddress"],"0x0200":["SH","1","InterpretationID"],"0x0202":["LO","1","InterpretationIDIssuer"],"0x0210":["CS","1","InterpretationTypeID"],"0x0212":["CS","1","InterpretationStatusID"],"0x0300":["ST","1","Impressions"],"0x4000":["ST","1","ResultsComments"]},"0x4010":{"0x0000":["UL","1","GenericGroupLength"],"0x0001":["CS","1","LowEnergyDetectors"],"0x0002":["CS","1","HighEnergyDetectors"],"0x0004":["SQ","1","DetectorGeometrySequence"],"0x1001":["SQ","1","ThreatROIVoxelSequence"],"0x1004":["FL","3","ThreatROIBase"],"0x1005":["FL","3","ThreatROIExtents"],"0x1006":["OB","1","ThreatROIBitmap"],"0x1007":["SH","1","RouteSegmentID"],"0x1008":["CS","1","GantryType"],"0x1009":["CS","1","OOIOwnerType"],"0x100A":["SQ","1","RouteSegmentSequence"],"0x1010":["US","1","PotentialThreatObjectID"],"0x1011":["SQ","1","ThreatSequence"],"0x1012":["CS","1","ThreatCategory"],"0x1013":["LT","1","ThreatCategoryDescription"],"0x1014":["CS","1","ATDAbilityAssessment"],"0x1015":["CS","1","ATDAssessmentFlag"],"0x1016":["FL","1","ATDAssessmentProbability"],"0x1017":["FL","1","Mass"],"0x1018":["FL","1","Density"],"0x1019":["FL","1","ZEffective"],"0x101A":["SH","1","BoardingPassID"],"0x101B":["FL","3","CenterOfMass"],"0x101C":["FL","3","CenterOfPTO"],"0x101D":["FL","6-n","BoundingPolygon"],"0x101E":["SH","1","RouteSegmentStartLocationID"],"0x101F":["SH","1","RouteSegmentEndLocationID"],"0x1020":["CS","1","RouteSegmentLocationIDType"],"0x1021":["CS","1-n","AbortReason"],"0x1023":["FL","1","VolumeOfPTO"],"0x1024":["CS","1","AbortFlag"],"0x1025":["DT","1","RouteSegmentStartTime"],"0x1026":["DT","1","RouteSegmentEndTime"],"0x1027":["CS","1","TDRType"],"0x1028":["CS","1","InternationalRouteSegment"],"0x1029":["LO","1-n","ThreatDetectionAlgorithmandVersion"],"0x102A":["SH","1","AssignedLocation"],"0x102B":["DT","1","AlarmDecisionTime"],"0x1031":["CS","1","AlarmDecision"],"0x1033":["US","1","NumberOfTotalObjects"],"0x1034":["US","1","NumberOfAlarmObjects"],"0x1037":["SQ","1","PTORepresentationSequence"],"0x1038":["SQ","1","ATDAssessmentSequence"],"0x1039":["CS","1","TIPType"],"0x103A":["CS","1","DICOSVersion"],"0x1041":["DT","1","OOIOwnerCreationTime"],"0x1042":["CS","1","OOIType"],"0x1043":["FL","3","OOISize"],"0x1044":["CS","1","AcquisitionStatus"],"0x1045":["SQ","1","BasisMaterialsCodeSequence"],"0x1046":["CS","1","PhantomType"],"0x1047":["SQ","1","OOIOwnerSequence"],"0x1048":["CS","1","ScanType"],"0x1051":["LO","1","ItineraryID"],"0x1052":["SH","1","ItineraryIDType"],"0x1053":["LO","1","ItineraryIDAssigningAuthority"],"0x1054":["SH","1","RouteID"],"0x1055":["SH","1","RouteIDAssigningAuthority"],"0x1056":["CS","1","InboundArrivalType"],"0x1058":["SH","1","CarrierID"],"0x1059":["CS","1","CarrierIDAssigningAuthority"],"0x1060":["FL","3","SourceOrientation"],"0x1061":["FL","3","SourcePosition"],"0x1062":["FL","1","BeltHeight"],"0x1064":["SQ","1","AlgorithmRoutingCodeSequence"],"0x1067":["CS","1","TransportClassification"],"0x1068":["LT","1","OOITypeDescriptor"],"0x1069":["FL","1","TotalProcessingTime"],"0x106C":["OB","1","DetectorCalibrationData"],"0x106D":["CS","1","AdditionalScreeningPerformed"],"0x106E":["CS","1","AdditionalInspectionSelectionCriteria"],"0x106F":["SQ","1","AdditionalInspectionMethodSequence"],"0x1070":["CS","1","AITDeviceType"],"0x1071":["SQ","1","QRMeasurementsSequence"],"0x1072":["SQ","1","TargetMaterialSequence"],"0x1073":["FD","1","SNRThreshold"],"0x1075":["DS","1","ImageScaleRepresentation"],"0x1076":["SQ","1","ReferencedPTOSequence"],"0x1077":["SQ","1","ReferencedTDRInstanceSequence"],"0x1078":["ST","1","PTOLocationDescription"],"0x1079":["SQ","1","AnomalyLocatorIndicatorSequence"],"0x107A":["FL","3","AnomalyLocatorIndicator"],"0x107B":["SQ","1","PTORegionSequence"],"0x107C":["CS","1","InspectionSelectionCriteria"],"0x107D":["SQ","1","SecondaryInspectionMethodSequence"],"0x107E":["DS","6","PRCSToRCSOrientation"]},"0x4FFE":{"0x0000":["UL","1","GenericGroupLength"],"0x0001":["SQ","1","MACParametersSequence"]},"0x5000":{"0x0000":["UL","1","GenericGroupLength"],"0x0005":["US","1","CurveDimensions"],"0x0010":["US","1","NumberOfPoints"],"0x0020":["CS","1","TypeOfData"],"0x0022":["LO","1","CurveDescription"],"0x0030":["SH","1-n","AxisUnits"],"0x0040":["SH","1-n","AxisLabels"],"0x0103":["US","1","DataValueRepresentation"],"0x0104":["US","1-n","MinimumCoordinateValue"],"0x0105":["US","1-n","MaximumCoordinateValue"],"0x0106":["SH","1-n","CurveRange"],"0x0110":["US","1-n","CurveDataDescriptor"],"0x0112":["US","1-n","CoordinateStartValue"],"0x0114":["US","1-n","CoordinateStepValue"],"0x1001":["CS","1","CurveActivationLayer"],"0x2000":["US","1","AudioType"],"0x2002":["US","1","AudioSampleFormat"],"0x2004":["US","1","NumberOfChannels"],"0x2006":["UL","1","NumberOfSamples"],"0x2008":["UL","1","SampleRate"],"0x200A":["UL","1","TotalTime"],"0x200C":["ox","1","AudioSampleData"],"0x200E":["LT","1","AudioComments"],"0x2500":["LO","1","CurveLabel"],"0x2600":["SQ","1","CurveReferencedOverlaySequence"],"0x2610":["US","1","CurveReferencedOverlayGroup"],"0x3000":["ox","1","CurveData"]},"0x5200":{"0x0000":["UL","1","GenericGroupLength"],"0x9229":["SQ","1","SharedFunctionalGroupsSequence"],"0x9230":["SQ","1","PerFrameFunctionalGroupsSequence"]},"0x5400":{"0x0000":["UL","1","GenericGroupLength"],"0x0100":["SQ","1","WaveformSequence"],"0x0110":["ox","1","ChannelMinimumValue"],"0x0112":["ox","1","ChannelMaximumValue"],"0x1004":["US","1","WaveformBitsAllocated"],"0x1006":["CS","1","WaveformSampleInterpretation"],"0x100A":["ox","1","WaveformPaddingValue"],"0x1010":["ox","1","WaveformData"]},"0x5600":{"0x0000":["UL","1","GenericGroupLength"],"0x0010":["OF","1","FirstOrderPhaseCorrectionAngle"],"0x0020":["OF","1","SpectroscopyData"]},"0x6000":{"0x0000":["UL","1","GenericGroupLength"],"0x0010":["US","1","OverlayRows"],"0x0011":["US","1","OverlayColumns"],"0x0012":["US","1","OverlayPlanes"],"0x0015":["IS","1","NumberOfFramesInOverlay"],"0x0022":["LO","1","OverlayDescription"],"0x0040":["CS","1","OverlayType"],"0x0045":["LO","1","OverlaySubtype"],"0x0050":["SS","2","OverlayOrigin"],"0x0051":["US","1","ImageFrameOrigin"],"0x0052":["US","1","OverlayPlaneOrigin"],"0x0060":["CS","1","OverlayCompressionCode"],"0x0061":["SH","1","OverlayCompressionOriginator"],"0x0062":["SH","1","OverlayCompressionLabel"],"0x0063":["CS","1","OverlayCompressionDescription"],"0x0066":["AT","1-n","OverlayCompressionStepPointers"],"0x0068":["US","1","OverlayRepeatInterval"],"0x0069":["US","1","OverlayBitsGrouped"],"0x0100":["US","1","OverlayBitsAllocated"],"0x0102":["US","1","OverlayBitPosition"],"0x0110":["CS","1","OverlayFormat"],"0x0200":["US","1","OverlayLocation"],"0x0800":["CS","1-n","OverlayCodeLabel"],"0x0802":["US","1","OverlayNumberOfTables"],"0x0803":["AT","1-n","OverlayCodeTableLocation"],"0x0804":["US","1","OverlayBitsForCodeWord"],"0x1001":["CS","1","OverlayActivationLayer"],"0x1100":["US","1","OverlayDescriptorGray"],"0x1101":["US","1","OverlayDescriptorRed"],"0x1102":["US","1","OverlayDescriptorGreen"],"0x1103":["US","1","OverlayDescriptorBlue"],"0x1200":["US","1-n","OverlaysGray"],"0x1201":["US","1-n","OverlaysRed"],"0x1202":["US","1-n","OverlaysGreen"],"0x1203":["US","1-n","OverlaysBlue"],"0x1301":["IS","1","ROIArea"],"0x1302":["DS","1","ROIMean"],"0x1303":["DS","1","ROIStandardDeviation"],"0x1500":["LO","1","OverlayLabel"],"0x3000":["ox","1","OverlayData"],"0x4000":["LT","1","OverlayComments"]},"0x7FE0":{"0x0000":["UL","1","GenericGroupLength"],"0x0008":["OF","1","FloatPixelData"],"0x0009":["OD","1","DoubleFloatPixelData"],"0x0010":["ox","1","PixelData"],"0x0020":["OW","1","CoefficientsSDVN"],"0x0030":["OW","1","CoefficientsSDHN"],"0x0040":["OW","1","CoefficientsSDDN"]},"0x7F00":{"0x0000":["UL","1","GenericGroupLength"],"0x0010":["ox","1","VariablePixelData"],"0x0011":["US","1","VariableNextDataGroup"],"0x0020":["OW","1","VariableCoefficientsSDVN"],"0x0030":["OW","1","VariableCoefficientsSDHN"],"0x0040":["OW","1","VariableCoefficientsSDDN"]},"0xFFFA":{"0x0000":["UL","1","GenericGroupLength"],"0xFFFA":["SQ","1","DigitalSignaturesSequence"]},"0xFFFC":{"0x0000":["UL","1","GenericGroupLength"],"0xFFFC":["OB","1","DataSetTrailingPadding"]},"0xFFFE":{"0x0000":["UL","1","GenericGroupLength"],"0xE000":["NONE","1","Item"],"0xE00D":["NONE","1","ItemDelimitationItem"],"0xE0DD":["NONE","1","SequenceDelimitationItem"]}},ae.dicom.TagGroups={x0000:"Command",x0002:"Meta Element",x0004:"File Set",x0008:"Identifying",x0009:"SPI Identifying",x0010:"Patient",x0012:"Clinical Trial",x0018:"Acquisition",x0019:"SPI Acquisition",x0020:"Image",x0021:"SPI Image",x0022:"Ophtalmology",x0028:"Image Presentation",x0032:"Study",x0038:"Visit",x003A:"Waveform",x0040:"Procedure",x0042:"Encapsulated Document",x0050:"Device Informations",x0054:"Nuclear Medicine",x0060:"Histogram",x0070:"Presentation State",x0072:"Hanging Protocol",x0088:"Storage",x0100:"Authorization",x0400:"Digital Signature",x1000:"Code Table",x1010:"Zonal Map",x2000:"Film Session",x2010:"Film Box",x2020:"Image Box",x2030:"Annotation",x2040:"Overlay Box",x2050:"Presentation LUT",x2100:"Print Job",x2110:"Printer",x2120:"Queue",x2130:"Print Content",x2200:"Media Creation",x3002:"RT Image",x3004:"RT Dose",x3006:"RT StructureSet",x3008:"RT Treatment",x300A:"RT Plan",x300C:"RT Relationship",x300E:"RT Approval",x4000:"Text",x4008:"Results",x4FFE:"MAC Parameters",x5000:"Curve",x5002:"Curve",x5004:"Curve",x5006:"Curve",x5008:"Curve",x500A:"Curve",x500C:"Curve",x500E:"Curve",x5400:"Waveform Data",x6000:"Overlays",x6002:"Overlays",x6004:"Overlays",x6008:"Overlays",x600A:"Overlays",x600C:"Overlays",x600E:"Overlays",xFFFC:"Generic",x7FE0:"Pixel Data",xFFFF:"Unknown"},(ae=ae||{}).gui=ae.gui||{},ae.gui.base=ae.gui.base||{},ae.gui.base.prompt=function(e,t){return prompt(e,t)},ae.gui.base.getElement=function(e,t){var n=document.getElementById(e);if(!n)return null;var i=n.getElementsByClassName(t),r=i[i.length-1];return void 0===r&&(r=document.getElementById(e+"-"+t)),r},(ae=ae||{}).html=ae.html||{},ae.html.Layer=function(u){var n=null,i=null;this.getCanvas=function(){return u},this.getContext=function(){return i},this.getOffset=function(){return u.offset()};var c=null,S={x:0,y:0};this.getOrigin=function(){return S};var x={x:1,y:1};this.getZoom=function(){return x};var r={x:0,y:0};this.getTrans=function(){return r},this.setWidth=function(e){u.width=e},this.setHeight=function(e){u.height=e},this.zoom=function(e,t,n,i){S.x=n-(n-S.x)*(e/x.x),S.y=i-(i-S.y)*(t/x.y),x.x=e,x.y=t},this.translate=function(e,t){r.x=e,r.y=t},this.setImageData=function(e){c=e,n.getContext("2d").putImageData(c,0,0)},this.resetLayout=function(e){S.x=0,S.y=0,x.x=e,x.y=e,r.x=0,r.y=0},this.displayToIndex=function(e){return{x:(e.x-S.x)/x.x-r.x,y:(e.y-S.y)/x.y-r.y}},this.draw=function(){i.save(),i.setTransform(1,0,0,1,0,0),i.clearRect(0,0,u.width,u.height),i.restore(),i.setTransform(x.x,0,0,x.y,S.x+r.x*x.x,S.y+r.y*x.y),i.imageSmoothingEnabled=!1,i.drawImage(n,0,0)},this.initialise=function(e,t){u.getContext?(i=u.getContext("2d"))?(u.width=e,u.height=t,i.clearRect(0,0,u.width,u.height),c=i.getImageData(0,0,u.width,u.height),(n=document.createElement("canvas")).width=e,n.height=t):alert("Error: failed to get the 2D context."):alert("Error: no canvas.getContext method.")},this.fillContext=function(){i.fillRect(0,0,u.width,u.height)},this.clear=function(){i.clearRect(0,0,u.width,u.height),c=i.getImageData(0,0,u.width,u.height),this.resetLayout()},this.merge=function(e){for(var t,n,i,r,o,a=e.getContext().getImageData(0,0,u.width,u.height),s=0;s<u.height;++s){n=parseInt(S.y+s*x.y,10)*u.width,r=s*u.width;for(var l=0;l<u.width;++l)t=4*(parseInt(S.x+l*x.x,10)+n),i=4*(l+r),0!==(o=a.data[3+t])&&(c.data[i]=a.data[t],c.data[1+i]=a.data[1+t],c.data[2+i]=a.data[2+t],c.data[3+i]=o)}e.clear(),this.draw()},this.setLineColour=function(e){i.fillStyle=e,i.strokeStyle=e},this.setStyleDisplay=function(e){u.style.display=!0===e?"":"none"},this.isVisible=function(){return"none"!==u.style.display},this.align=function(e){u.style.top=e.getCanvas().offsetTop,u.style.left=e.getCanvas().offsetLeft}},ae.html.getTouchesPositions=function(e){var t=0,n=0;if(0!==e.length&&void 0!==e[0].target)for(var i=e[0].target.offsetParent;i;)isNaN(i.offsetLeft)||(t+=i.offsetLeft),isNaN(i.offsetTop)||(n+=i.offsetTop),i=i.offsetParent;else ae.logger.debug("No touch target offset parent.");for(var r=[],o=0;o<e.length;++o)r.push({x:e[o].pageX-t,y:e[o].pageY-n});return r},ae.html.getEventOffset=function(e){var t,n,i=[];return void 0!==e.targetTouches&&0!==e.targetTouches.length?i=ae.html.getTouchesPositions(e.targetTouches):void 0!==e.changedTouches&&0!==e.changedTouches.length?i=ae.html.getTouchesPositions(e.changedTouches):(t=void 0===e.offsetX?e.layerX:e.offsetX,n=void 0===e.offsetY?e.layerY:e.offsetY,i.push({x:t,y:n})),i},(ae=ae||{}).html=ae.html||{},ae.html.Style=function(){var t="#ffff80",n=1;this.getFontFamily=function(){return"Verdana"},this.getFontSize=function(){return 12},this.getStrokeWidth=function(){return 2},this.getTextColour=function(){return"#fff"},this.getLineColour=function(){return t},this.setLineColour=function(e){t=e},this.setScale=function(e){n=e},this.scale=function(e){return e/n}},ae.html.Style.prototype.getFontStr=function(){return"normal "+this.getFontSize()+"px sans-serif"},ae.html.Style.prototype.getLineHeight=function(){return this.getFontSize()+this.getFontSize()/5},ae.html.Style.prototype.getScaledFontSize=function(){return this.scale(this.getFontSize())},ae.html.Style.prototype.getScaledStrokeWidth=function(){return this.scale(this.getStrokeWidth())},(ae=ae||{}).image=ae.image||{};var S="undefined"!=typeof JpegImage,x="undefined"!=typeof jpeg&&void 0!==jpeg.lossless,d="undefined"!=typeof JpxImage;ae.image.AsynchPixelBufferDecoder=function(r,e){var o=new ae.utils.ThreadPool(15),a=!1;this.decode=function(e,t,n){a||(a=!0,o.onworkstart=this.ondecodestart,o.onworkitem=this.ondecodeditem,o.onwork=this.ondecoded,o.onworkend=this.ondecodeend,o.onerror=this.onerror,o.onabort=this.onabort);var i=new ae.utils.WorkerTask(r,{buffer:e,meta:t},n);o.addWorkerTask(i)},this.abort=function(){o.abort()}},ae.image.AsynchPixelBufferDecoder.prototype.ondecodestart=function(e){},ae.image.AsynchPixelBufferDecoder.prototype.ondecodeditem=function(e){},ae.image.AsynchPixelBufferDecoder.prototype.ondecoded=function(e){},ae.image.AsynchPixelBufferDecoder.prototype.ondecodeend=function(e){},ae.image.AsynchPixelBufferDecoder.prototype.onerror=function(e){},ae.image.AsynchPixelBufferDecoder.prototype.onabort=function(e){},ae.image.SynchPixelBufferDecoder=function(l,u){var c=0;this.decode=function(e,t,n){++c;var i=null,r=null;if("jpeg-lossless"===l){if(!x)throw new Error("No JPEG Lossless decoder provided");var o=t.bitsAllocated/8,a=new Uint8Array(e),s=(i=new jpeg.lossless.Decoder).decode(a.buffer,0,a.buffer.byteLength,o);8===t.bitsAllocated?r=new(t.isSigned?Int8Array:Uint8Array)(s.buffer):16===t.bitsAllocated&&(r=new(t.isSigned?Int16Array:Uint16Array)(s.buffer))}else if("jpeg-baseline"===l){if(!S)throw new Error("No JPEG Baseline decoder provided");(i=new JpegImage).parse(e),r=i.getData(i.width,i.height)}else if("jpeg2000"===l){if(!d)throw new Error("No JPEG 2000 decoder provided");(i=new JpxImage).parse(e),r=i.tiles[0].items}else"rle"===l&&(r=(i=new ae.decoder.RleDecoder).decode(e,t.bitsAllocated,t.isSigned,t.sliceSize,t.samplesPerPixel,t.planarConfiguration));this.ondecodeditem({data:[r],index:n}),c===u&&(this.ondecoded({}),this.ondecodeend({}))},this.abort=function(){this.onabort({}),this.ondecodeend({})}},ae.image.SynchPixelBufferDecoder.prototype.ondecodestart=function(e){},ae.image.SynchPixelBufferDecoder.prototype.ondecodeditem=function(e){},ae.image.SynchPixelBufferDecoder.prototype.ondecoded=function(e){},ae.image.SynchPixelBufferDecoder.prototype.ondecodeend=function(e){},ae.image.SynchPixelBufferDecoder.prototype.onerror=function(e){},ae.image.SynchPixelBufferDecoder.prototype.onabort=function(e){},ae.image.PixelBufferDecoder=function(e,t){var i=null,i=void 0!==ae.image.decoderScripts&&void 0!==ae.image.decoderScripts[e]?new ae.image.AsynchPixelBufferDecoder(ae.image.decoderScripts[e],t):new ae.image.SynchPixelBufferDecoder(e,t),r=!1;this.decode=function(e,t,n){r||(r=!0,i.ondecodestart=this.ondecodestart,i.ondecodeditem=this.ondecodeditem,i.ondecoded=this.ondecoded,i.ondecodeend=this.ondecodeend,i.onerror=this.onerror,i.onabort=this.onabort),i.decode(e,t,n)},this.abort=function(){i.abort()}},ae.image.PixelBufferDecoder.prototype.ondecodestart=function(e){},ae.image.PixelBufferDecoder.prototype.ondecodeditem=function(e){},ae.image.PixelBufferDecoder.prototype.ondecoded=function(e){},ae.image.PixelBufferDecoder.prototype.ondecodeend=function(e){},ae.image.PixelBufferDecoder.prototype.onerror=function(e){},ae.image.PixelBufferDecoder.prototype.onabort=function(e){},(ae=ae||{}).image=ae.image||{},ae.image.DicomBufferToView=function(){var p,h=this;this.setDefaultCharacterSet=function(e){p=e};var f=null;this.convert=function(e,n,i){h.onloadstart({source:n});var r=new ae.dicom.DicomParser;r.setDefaultCharacterSet(p);try{r.parse(e)}catch(e){return h.onerror({error:e,source:n}),void h.onloadend({source:n})}function o(){var e=new ae.image.ImageFactory;try{var t=e.create(r.getDicomElements(),a);h.onloaditem({data:{image:t,info:r.getRawDicomElements()},source:n})}catch(e){h.onerror({error:e,source:n}),h.onloadend({source:n})}}var a=r.getRawDicomElements().x7FE00010.value,t=ae.dicom.cleanString(r.getRawDicomElements().x00020010.value[0]),s=ae.dicom.getSyntaxDecompressionName(t);if(null!==s){var l={bitsAllocated:r.getRawDicomElements().x00280100.value[0],isSigned:1===r.getRawDicomElements().x00280103.value[0]},u=r.getRawDicomElements().x00280011,c=r.getRawDicomElements().x00280010;void 0!==u&&void 0!==c&&(l.sliceSize=u.value[0]*c.value[0]);var S=r.getRawDicomElements().x00280002;void 0!==S&&(l.samplesPerPixel=S.value[0]);var x=r.getRawDicomElements().x00280006;void 0!==x&&(l.planarConfiguration=x.value[0]);var d=a.length,g=0;(f=new ae.image.PixelBufferDecoder(s,d)).ondecodeditem=function(e){++g,h.onprogress({lengthComputable:!0,loaded:100*g/d,total:100,index:i,source:n});var t=e.index;a[t]=e.data[0],0===t&&o()},f.ondecoded=h.onload,f.ondecodeend=h.onloadend,f.onerror=h.onerror,f.onabort=h.onabort;for(var m=0;m<d;++m)f.decode(a[m],l,m)}else h.onprogress({lengthComputable:!0,loaded:100,total:100,index:i,source:n}),o(),h.onload({source:n}),h.onloadend({source:n})},this.abort=function(){f&&f.abort()}},ae.image.DicomBufferToView.prototype.onloadstart=function(e){},ae.image.DicomBufferToView.prototype.onprogress=function(e){},ae.image.DicomBufferToView.prototype.onload=function(e){},ae.image.DicomBufferToView.prototype.onloadend=function(e){},ae.image.DicomBufferToView.prototype.onerror=function(e){},ae.image.DicomBufferToView.prototype.onabort=function(e){},(ae=ae||{}).image=ae.image||{},ae.image.imageDataToBuffer=function(e){for(var t=e.data.length,n=new Uint8Array(t/4*3),i=0,r=0;r<t;r+=4)n[i]=e.data[r],n[i+1]=e.data[r+1],n[i+2]=e.data[r+2],i+=3;return n},ae.image.getDefaultImage=function(e,t,n,i,r,o){var a=new ae.image.Size(e,t),s=new ae.image.Spacing(1,1),l=new ae.math.Point3D(0,0,n),u=new ae.image.Geometry(l,a,s),c=new ae.image.Image(u,i,r,[o]);c.setPhotometricInterpretation("RGB");var S={BitsStored:8};return c.setMeta(S),c},ae.image.getViewFromDOMImage=function(e,t){var n=e.width,i=e.height,r=document.createElement("canvas");r.width=n,r.height=i;var o=r.getContext("2d");o.drawImage(e,0,0);var a=o.getImageData(0,0,n,i),s=[];"string"==typeof e.origin?s.push({name:"origin",value:e.origin}):(s.push({name:"fileName",value:e.origin.name}),s.push({name:"fileType",value:e.origin.type}),s.push({name:"fileLastModifiedDate",value:e.origin.lastModifiedDate})),s.push({name:"imageWidth",value:n}),s.push({name:"imageHeight",value:i});var l=e.index?e.index:0;s.push({name:"imageUid",value:l});var u=ae.image.imageDataToBuffer(a);return{data:{image:ae.image.getDefaultImage(n,i,l,[u],1,l),info:s},source:t}},ae.image.getViewFromDOMVideo=function(n,t,i,r,o,a,s){var l=n.videoWidth,u=n.videoHeight,c=30,S=Math.floor(n.duration*c),x=[];n.file&&(x.push({name:"fileName",value:n.file.name}),x.push({name:"fileType",value:n.file.type}),x.push({name:"fileLastModifiedDate",value:n.file.lastModifiedDate})),x.push({name:"imageWidth",value:l}),x.push({name:"imageHeight",value:u}),x.push({name:"numberOfFrames",value:S});var e=document.createElement("canvas");e.width=l,e.height=u;var d=e.getContext("2d");n.addEventListener("seeked",function e(){p();++g;var t=g/c;t<=this.duration?this.currentTime=t:(i({source:s}),o({source:s}),n.removeEventListener("seeked",e))},!1);var g=0,m=null;function p(){r({lengthComputable:!0,loaded:g,total:S,index:a,source:s}),d.drawImage(n,0,0);var e=ae.image.imageDataToBuffer(d.getImageData(0,0,l,u));0===g?(m=ae.image.getDefaultImage(l,u,1,[e],S,a),t({data:{image:m,info:x},source:s})):m.appendFrameBuffer(e)}n.currentTime=0},(ae=ae||{}).image=ae.image||{},ae.image.filter=ae.image.filter||{},ae.image.filter.Threshold=function(){var t=0,n=0;this.getMin=function(){return t},this.setMin=function(e){t=e},this.getMax=function(){return n},this.setMax=function(e){n=e},this.getName=function(){return"Threshold"};var i=null;this.setOriginalImage=function(e){i=e},this.getOriginalImage=function(){return i}},ae.image.filter.Threshold.prototype.update=function(){var e=this.getOriginalImage(),t=e.getDataRange().min,n=this;return e.transform(function(e){return e<n.getMin()||e>n.getMax()?t:e})},ae.image.filter.Sharpen=function(){this.getName=function(){return"Sharpen"};var t=null;this.setOriginalImage=function(e){t=e},this.getOriginalImage=function(){return t}},ae.image.filter.Sharpen.prototype.update=function(){return this.getOriginalImage().convolute2D([0,-1,0,-1,5,-1,0,-1,0])},ae.image.filter.Sobel=function(){this.getName=function(){return"Sobel"};var t=null;this.setOriginalImage=function(e){t=e},this.getOriginalImage=function(){return t}},ae.image.filter.Sobel.prototype.update=function(){var e=this.getOriginalImage(),t=e.convolute2D([1,0,-1,2,0,-2,1,0,-1]),n=e.convolute2D([1,2,1,0,0,0,-1,-2,-1]);return t.compose(n,function(e,t){return Math.sqrt(e*e+t*t)})},(ae=ae||{}).image=ae.image||{},ae.image.Size=function(e,t,n){this.getNumberOfColumns=function(){return e},this.getNumberOfRows=function(){return t},this.getNumberOfSlices=function(){return n||1}},ae.image.Size.prototype.getSliceSize=function(){return this.getNumberOfColumns()*this.getNumberOfRows()},ae.image.Size.prototype.getTotalSize=function(){return this.getSliceSize()*this.getNumberOfSlices()},ae.image.Size.prototype.equals=function(e){return null!==e&&this.getNumberOfColumns()===e.getNumberOfColumns()&&this.getNumberOfRows()===e.getNumberOfRows()&&this.getNumberOfSlices()===e.getNumberOfSlices()},ae.image.Size.prototype.isInBounds=function(e,t,n){return!(e<0||e>this.getNumberOfColumns()-1||t<0||t>this.getNumberOfRows()-1||n<0||n>this.getNumberOfSlices()-1)},ae.image.Size.prototype.toString=function(){return"("+this.getNumberOfColumns()+", "+this.getNumberOfRows()+", "+this.getNumberOfSlices()+")"},ae.image.Spacing=function(e,t,n){this.getColumnSpacing=function(){return e},this.getRowSpacing=function(){return t},this.getSliceSpacing=function(){return n||1}},ae.image.Spacing.prototype.equals=function(e){return null!==e&&this.getColumnSpacing()===e.getColumnSpacing()&&this.getRowSpacing()===e.getRowSpacing()&&this.getSliceSpacing()===e.getSliceSpacing()},ae.image.Spacing.prototype.toString=function(){return"("+this.getColumnSpacing()+", "+this.getRowSpacing()+", "+this.getSliceSpacing()+")"},ae.image.Geometry=function(e,n,t,o){void 0===e&&(e=new ae.math.Point3D(0,0,0));var a=[e];void 0===o&&(o=new ae.math.getIdentityMat33),this.getOrigin=function(){return e},this.getOrigins=function(){return a},this.getSize=function(){return n},this.getSpacing=function(){return t},this.getOrientation=function(){return o},this.getSliceIndex=function(e){for(var t,n=0,i=e.getDistance(a[0]),r=0;r<a.length;++r)(t=e.getDistance(a[r]))<i&&(i=t,n=r);return 0<new ae.math.Vector3D(o.get(2,0),o.get(2,1),o.get(2,2)).dotProduct(e.minus(a[n]))?n+1:n},this.appendOrigin=function(e,t){a.splice(t,0,e),n=new ae.image.Size(n.getNumberOfColumns(),n.getNumberOfRows(),n.getNumberOfSlices()+1)}},ae.image.Geometry.prototype.toString=function(){return"Origin: "+this.getOrigin()+", Size: "+this.getSize()+", Spacing: "+this.getSpacing()},ae.image.Geometry.prototype.equals=function(e){return null!==e&&this.getOrigin().equals(e.getOrigin())&&this.getSize().equals(e.getSize())&&this.getSpacing().equals(e.getSpacing())},ae.image.Geometry.prototype.indexToOffset=function(e){var t=this.getSize();return e.getI()+e.getJ()*t.getNumberOfColumns()+e.getK()*t.getSliceSize()},ae.image.Geometry.prototype.indexToWorld=function(e){var t=this.getOrigin(),n=this.getSpacing();return new ae.math.Point3D(t.getX()+e.getI()*n.getColumnSpacing(),t.getY()+e.getJ()*n.getRowSpacing(),t.getZ()+e.getK()*n.getSliceSpacing())},ae.image.Geometry.prototype.worldToIndex=function(e){var t=this.getOrigin(),n=this.getSpacing();return new ae.math.Point3D(e.getX()/n.getColumnSpacing()-t.getX(),e.getY()/n.getRowSpacing()-t.getY(),e.getZ()/n.getSliceSpacing()-t.getZ())},(ae=ae||{}).image=ae.image||{},ae.image.Image=function(p,h,e,f){void 0===e&&(e=h.length),this.getNumberOfFrames=function(){return e};for(var D=[],t=0,n=p.getSize().getNumberOfSlices();t<n;++t)D.push(new ae.image.RescaleSlopeAndIntercept(1,0));var r=!0,o=!0,y="MONOCHROME2",i=0,a=h.find(function(e){return null!==e}).length/p.getSize().getTotalSize(),C={},s=null,l=null,u=null;this.getImageUids=function(){return f},this.getGeometry=function(){return p},this.getBuffer=function(){return h},this.getFrame=function(e){return h[e]},this.getRescaleSlopeAndIntercept=function(e){return D[e]},this.setRescaleSlopeAndIntercept=function(e,t){void 0===t&&(t=0),D[t]=e,o=r=!0;for(var n=0,i=D.length;n<i;++n)D[n].isID()||(r=!1),0<n&&!D[n].equals(D[n-1])&&(o=!1)},this.isIdentityRSI=function(){return r},this.isConstantRSI=function(){return o},this.getPhotometricInterpretation=function(){return y},this.setPhotometricInterpretation=function(e){y=e},this.getPlanarConfiguration=function(){return i},this.setPlanarConfiguration=function(e){i=e},this.getNumberOfComponents=function(){return a},this.getMeta=function(){return C},this.setMeta=function(e){C=e},this.getValueAtOffset=function(e,t){return h[t][e]},this.clone=function(){for(var e=[],t=0,n=this.getNumberOfFrames();t<n;++t)e[t]=h[t].slice(0);for(var i=new ae.image.Image(this.getGeometry(),e),r=this.getGeometry().getSize().getNumberOfSlices(),o=0;o<r;++o)i.setRescaleSlopeAndIntercept(this.getRescaleSlopeAndIntercept(o),o);return i.setPhotometricInterpretation(this.getPhotometricInterpretation()),i.setPlanarConfiguration(this.getPlanarConfiguration()),i.setMeta(this.getMeta()),i},this.appendSlice=function(e,t){if(null===e)throw new Error("Cannot append null slice");var n,i=e.getGeometry().getSize(),r=p.getSize();if(1!==i.getNumberOfSlices())throw new Error("Cannot append more than one slice");if(r.getNumberOfColumns()!==i.getNumberOfColumns())throw new Error("Cannot append a slice with different number of columns");if(r.getNumberOfRows()!==i.getNumberOfRows())throw new Error("Cannot append a slice with different number of rows");if(!p.getOrientation().equals(e.getGeometry().getOrientation(),1e-4))throw new Error("Cannot append a slice with different orientation");if(y!==e.getPhotometricInterpretation())throw new Error("Cannot append a slice with different photometric interpretation");for(n in C)if("windowPresets"!==n&&C[n]!==e.getMeta()[n])throw new Error("Cannot append a slice with different "+n);var o=void 0===t?0:t,a=1;"RGB"!==y&&"YBR_FULL"!==y||(a=3);var s,l=a*r.getSliceSize(),u=ae.dicom.getTypedArray(8*h[o].BYTES_PER_ELEMENT,C.IsSigned?1:0,l*(r.getNumberOfSlices()+1)),c=p.getSliceIndex(e.getGeometry().getOrigin());if(0===c?(u.set(e.getFrame(o)),u.set(h[o],l)):c===r.getNumberOfSlices()?(u.set(h[o]),u.set(e.getFrame(o),r.getNumberOfSlices()*l)):(s=c*l,u.set(h[o].subarray(0,s-1)),u.set(e.getFrame(o),s),u.set(h[o].subarray(s),s+l)),p.appendOrigin(e.getGeometry().getOrigin(),c),D.splice(c,0,e.getRescaleSlopeAndIntercept(0)),h[o]=u,f.splice(c,0,e.getImageUids()[0]),void 0!==C.windowPresets)for(var S,x=C.windowPresets,d=e.getMeta().windowPresets,g=Object.keys(d),m=0;m<g.length;++m)void 0!==x[S=g[m]]&&void 0!==x[S].perslice&&!0===x[S].perslice?x[S].wl.splice(c,0,d[S].wl[0]):x[S]=d[S];return c},this.appendFrameBuffer=function(e){h.push(e)},this.getDataRange=function(){return s=s||this.calculateDataRange()},this.getRescaledDataRange=function(){return l=l||this.calculateRescaledDataRange()},this.getHistogram=function(){var e;return u||(e=this.calculateHistogram(),s=e.dataRange,l=e.rescaledDataRange,u=e.histogram),u}},ae.image.Image.prototype.getValue=function(e,t,n,i){var r=i||0,o=new ae.math.Index3D(e,t,n);return this.getValueAtOffset(this.getGeometry().indexToOffset(o),r)},ae.image.Image.prototype.getRescaledValue=function(e,t,n,i){var r=i||0,o=this.getValue(e,t,n,r);return this.isIdentityRSI()||(o=this.getRescaleSlopeAndIntercept(n).apply(o)),o},ae.image.Image.prototype.getSliceIterator=function(e,t){function n(e){return o.getValueAtOffset(e,t)}var i=this.getGeometry().getSize().getSliceSize(),r=e*i,o=this,a=null;if(1===this.getNumberOfComponents())a=ae.image.range(n,r,r+i);else{if(3!==this.getNumberOfComponents())throw new Error("Unsupported number of components: "+this.getNumberOfComponents());r*=3,i*=3;var s=1===this.getPlanarConfiguration(),a=ae.image.range3d(n,r,r+i,1,s)}return a},ae.image.Image.prototype.calculateDataRange=function(){for(var e,t=this.getGeometry().getSize().getTotalSize(),n=this.getValueAtOffset(0,0),i=n,r=0;r<1;++r)for(var o=0;o<t;++o)i<(e=this.getValueAtOffset(o,r))&&(i=e),e<n&&(n=e);return{min:n,max:i}},ae.image.Image.prototype.calculateRescaledDataRange=function(){if(this.isIdentityRSI())return this.getDataRange();if(this.isConstantRSI()){var e=this.getDataRange(),t=this.getRescaleSlopeAndIntercept(0).apply(e.min),n=this.getRescaleSlopeAndIntercept(0).apply(e.max);return{min:t<n?t:n,max:n<t?t:n}}for(var i,r=this.getGeometry().getSize(),o=this.getRescaledValue(0,0,0),a=o,s=0;s<1;++s)for(var l=0,u=r.getNumberOfSlices();l<u;++l)for(var c=0,S=r.getNumberOfRows();c<S;++c)for(var x=0,d=r.getNumberOfColumns();x<d;++x)a<(i=this.getRescaledValue(x,c,l,s))&&(a=i),i<o&&(o=i);return{min:o,max:a}},ae.image.Image.prototype.calculateHistogram=function(){for(var e,t,n=this.getGeometry().getSize(),i=[],r=this.getValue(0,0,0),o=r,a=this.getRescaledValue(0,0,0),s=a,l=0,u=this.getNumberOfFrames();l<u;++l)for(var c=0,S=n.getNumberOfSlices();c<S;++c)for(var x=0,d=n.getNumberOfRows();x<d;++x)for(var g=0,m=n.getNumberOfColumns();g<m;++g)o<(e=this.getValue(g,x,c,l))&&(o=e),e<r&&(r=e),s<(t=this.getRescaleSlopeAndIntercept(c).apply(e))&&(s=t),t<a&&(a=t),i[t]=(i[t]||0)+1;for(var p={min:r,max:o},h={min:a,max:s},f=[],D=a;D<=s;++D)f.push([D,i[D]||0]);return{dataRange:p,rescaledDataRange:h,histogram:f}},ae.image.Image.prototype.convolute2D=function(e){if(9!==e.length)throw new Error("The convolution matrix does not have a length of 9; it has "+e.length);var t=this.clone(),n=t.getBuffer(),i=this.getGeometry().getSize(),r=i.getNumberOfColumns(),o=i.getNumberOfRows(),a=i.getNumberOfSlices(),s=this.getNumberOfFrames(),l=this.getNumberOfComponents(),u=1,c=1,S=i.getTotalSize();3===l&&(S*=3,0===this.getPlanarConfiguration()?u=3:c=i.getTotalSize());var x=[];x[0]=(-r-1)*u,x[1]=-r*u,x[2]=(1-r)*u,x[3]=-u,x[4]=0,x[5]=+u,x[6]=(r-1)*u,x[7]=r*u,x[8]=(r+1)*u;var d=[];d[0]=x[4],d[1]=x[4],d[2]=x[5],d[3]=x[4],d[4]=x[4],d[5]=x[5],d[6]=x[7],d[7]=x[7],d[8]=x[8];var g=[];g[0]=x[1],g[1]=x[1],g[2]=x[2],g[3]=x[4],g[4]=x[4],g[5]=x[5],g[6]=x[7],g[7]=x[7],g[8]=x[8];var m=[];m[0]=x[1],m[1]=x[1],m[2]=x[2],m[3]=x[4],m[4]=x[4],m[5]=x[5],m[6]=x[4],m[7]=x[4],m[8]=x[5];var p=[];p[0]=x[3],p[1]=x[4],p[2]=x[5],p[3]=x[3],p[4]=x[4],p[5]=x[5],p[6]=x[6],p[7]=x[7],p[8]=x[8];var h=[];h[0]=x[0],h[1]=x[1],h[2]=x[2],h[3]=x[3],h[4]=x[4],h[5]=x[5],h[6]=x[3],h[7]=x[4],h[8]=x[5];var f=[];f[0]=x[3],f[1]=x[4],f[2]=x[4],f[3]=x[3],f[4]=x[4],f[5]=x[4],f[6]=x[6],f[7]=x[7],f[8]=x[7];var D=[];D[0]=x[0],D[1]=x[1],D[2]=x[1],D[3]=x[3],D[4]=x[4],D[5]=x[4],D[6]=x[6],D[7]=x[7],D[8]=x[7];var y=[];y[0]=x[0],y[1]=x[1],y[2]=x[1],y[3]=x[3],y[4]=x[4],y[5]=x[4],y[6]=x[3],y[7]=x[4],y[8]=x[4];for(var C=0,v=0,T=[],L=0;L<s;L++){C=L*S;for(var I=0;I<l;I++){C+=I*c;for(var P=0;P<a;P++)for(var F=0;F<o;F++)for(var A=0;A<r;A++){T=x,0===A&&0===F?T=d:0===A&&F===o-1?T=m:A===r-1&&0===F?T=f:A===r-1&&F===o-1?T=y:0===A&&F!==o-1&&0!==F?T=g:A===r-1&&F!==o-1&&0!==F?T=D:0!==A&&A!==r-1&&0===F?T=p:0!==A&&A!==r-1&&F===o-1&&(T=h);for(var O=v=0;O<9;++O)v+=this.getValueAtOffset(C+T[O],L)*e[O];n[L][C]=v,C+=u}}}return t},ae.image.Image.prototype.transform=function(e){for(var t=this.clone(),n=t.getBuffer(),i=0,r=this.getNumberOfFrames();i<r;++i)for(var o=0,a=n[i].length;o<a;++o)n[i][o]=e(t.getValueAtOffset(o,i));return t},ae.image.Image.prototype.compose=function(e,t){for(var n=this.clone(),i=n.getBuffer(),r=0,o=this.getNumberOfFrames();r<o;++r)for(var a=0,s=i[r].length;a<s;++a)i[r][a]=Math.floor(t(this.getValueAtOffset(a,r),e.getValueAtOffset(a,r)));return n},ae.image.Image.prototype.quantifyLine=function(e){var t={},n=this.getGeometry().getSpacing(),i=e.getWorldLength(n.getColumnSpacing(),n.getRowSpacing());return null!==i&&(t.length={value:i,unit:ae.i18n("unit.mm")}),t},ae.image.Image.prototype.quantifyRect=function(e){var t={},n=this.getGeometry().getSpacing(),i=e.getWorldSurface(n.getColumnSpacing(),n.getRowSpacing());null!==i&&(t.surface={value:i/100,unit:ae.i18n("unit.cm2")});for(var r=[],o=parseInt(e.getBegin().getY(),10),a=parseInt(e.getEnd().getY(),10),s=parseInt(e.getBegin().getX(),10),l=parseInt(e.getEnd().getX(),10),u=o;u<a;++u)for(var c=s;c<l;++c)r.push(this.getValue(c,u,0));var S=ae.math.getStats(r);return t.min={value:S.getMin(),unit:""},t.max={value:S.getMax(),unit:""},t.mean={value:S.getMean(),unit:""},t.stdDev={value:S.getStdDev(),unit:""},t},ae.image.Image.prototype.quantifyEllipse=function(e){var t={},n=this.getGeometry().getSpacing(),i=e.getWorldSurface(n.getColumnSpacing(),n.getRowSpacing());return null!==i&&(t.surface={value:i/100,unit:ae.i18n("unit.cm2")}),t},(ae=ae||{}).image=ae.image||{},ae.image.ImageFactory=function(){},ae.image.ImageFactory.prototype.create=function(e,t){var n=e.getFromKey("x00280011");if(!n)throw new Error("Missing or empty DICOM image number of columns");var i=e.getFromKey("x00280010");if(!i)throw new Error("Missing or empty DICOM image number of rows");var r=new ae.image.Size(n,i),o=null,a=null,s=e.getFromKey("x00280030"),l=e.getFromKey("x00181164");s&&s[0]&&s[1]?(o=parseFloat(s[0]),a=parseFloat(s[1])):l&&l[0]&&l[1]&&(o=parseFloat(l[0]),a=parseFloat(l[1]));var u=new ae.image.Spacing(a,o),c=e.getFromKey("x00020010"),S=ae.dicom.cleanString(c),x=ae.dicom.isJpeg2000TransferSyntax(S),d=ae.dicom.isJpegBaselineTransferSyntax(S),g=ae.dicom.isJpegLosslessTransferSyntax(S),m=e.getFromKey("x00200032"),p=e.getFromKey("x00200013"),h=new Array(0,0,0);m?h=[parseFloat(m[0]),parseFloat(m[1]),parseFloat(m[2])]:p&&(ae.logger.warn("Using instanceNumber as imagePositionPatient."),h[2]=parseInt(p,10));var f,D,y,C,v=e.getFromKey("x00200037");v&&(f=new ae.math.Vector3D(parseFloat(v[0]),parseFloat(v[1]),parseFloat(v[2])),D=new ae.math.Vector3D(parseFloat(v[3]),parseFloat(v[4]),parseFloat(v[5])),y=f.crossProduct(D),C=new ae.math.Matrix33(f.getX(),f.getY(),f.getZ(),D.getX(),D.getY(),D.getZ(),y.getX(),y.getY(),y.getZ()));var T,L,I=new ae.math.Point3D(h[0],h[1],h[2]),P=new ae.image.Geometry(I,r,u,C),F=ae.dicom.cleanString(e.getFromKey("x00080018")),A=new ae.image.Image(P,t,t.length,[F]),O=e.getFromKey("x00280004");O&&(T=ae.dicom.cleanString(O).toUpperCase(),(x||d||g)&&"MONOCHROME1"!==T&&"MONOCHROME2"!==T&&(T="RGB"),L=parseInt(e.getFromKey("x00280002"),10),"RGB"===T&&1===L&&(T="PALETTE COLOR"),A.setPhotometricInterpretation(T));var w=e.getFromKey("x00280006");w&&A.setPlanarConfiguration(w);var R=1,b=e.getFromKey("x00281053");b&&(R=parseFloat(b));var E=0,q=e.getFromKey("x00281052");q&&(E=parseFloat(q));var U=new ae.image.RescaleSlopeAndIntercept(R,E);A.setRescaleSlopeAndIntercept(U);var M={},Q=e.getFromKey("x00080060");Q&&(M.Modality=Q);var N=e.getFromKey("x0020000D");N&&(M.StudyInstanceUID=N);var B=e.getFromKey("x0020000E");B&&(M.SeriesInstanceUID=B);var V=e.getFromKey("x00280101");V&&(M.BitsStored=parseInt(V,10));var G=e.getFromKey("x00280103");M.IsSigned=!1,G&&(M.IsSigned=1===G);var k,W,H,_,z,Y,X,j,K,Z={},J=e.getFromKey("x00281050",!0),$=e.getFromKey("x00281051",!0),ee=e.getFromKey("x00281055",!0);if(J&&$)for(var te,ne=0;ne<J.length;++ne){var ie=parseFloat(J[ne],10),re=parseFloat($[ne],10);ie&&re&&0!==re&&(te="",ee&&(te=ae.dicom.cleanString(ee[ne])),""===te&&(te="Default"+ne),Z[te]={wl:[new ae.image.WindowLevel(ie,re)],name:te,perslice:!0}),0===re&&ae.logger.warn("Zero window width found in DICOM.")}M.windowPresets=Z,"PALETTE COLOR"===A.getPhotometricInterpretation()&&(Y=e.getFromKey("x00281201"),X=e.getFromKey("x00281202"),j=e.getFromKey("x00281203"),void 0!==(k=e.getFromKey("x00281101"))&&3===k.length&&(16===k[2]?(W=!1,0===(H=k[0])&&(H=65536),(_=e.getDEFromKey("x00281201").vl)!==2*H&&(W=!0,ae.logger.info("16bits lut but size is not double. desc: "+H+" vl: "+_)),8===parseInt(e.getFromKey("x00280100"),10)&&(W=!0,ae.logger.info("Scaling 16bits color lut since bits allocated is 8.")),W&&(z=function(e){return e>>8},Y=Y.map(z),X=X.map(z),j=j.map(z))):8===k[2]&&(ae.logger.info("Scaling 16bits color lut since the lut descriptor is 8."),K=Y.slice(0),Y=new Uint8Array(K.buffer),K=X.slice(0),X=new Uint8Array(K.buffer),K=j.slice(0),j=new Uint8Array(K.buffer))),M.paletteLut={red:Y,green:X,blue:j});var oe=e.getFromKey("x00082144");return oe&&(M.RecommendedDisplayFrameRate=parseInt(oe,10)),A.setMeta(M),A},(ae=ae||{}).image=ae.image||{},ae.image.range=function(t,e,n,i){void 0===i&&(i=1);var r=e;return{next:function(){if(r<n){var e={value:t(r),done:!1};return r+=i,e}return{done:!0,index:n}}}},ae.image.range3d=function(t,e,n,i,r){void 0===i&&(i=1),void 0===r&&(r=!1);var o=e,a=1;r?a=(n-e)/3:i*=3;var s=o+a,l=o+2*a;return{next:function(){if(o<n){var e={value:[t(o),t(s),t(l)],done:!1};return o+=i,s+=i,l+=i,e}return{done:!0,index:[n]}}}},(ae=ae||{}).image=ae.image||{},ae.image.lut=ae.image.lut||{},ae.image.lut.range_max=256,ae.image.lut.buildLut=function(e){for(var t=[],n=0;n<ae.image.lut.range_max;++n)t.push(e(n));return t},ae.image.lut.max=function(e){return ae.image.lut.range_max-1},ae.image.lut.maxFirstThird=function(e){return e<ae.image.lut.range_max/3?ae.image.lut.range_max-1:0},ae.image.lut.maxSecondThird=function(e){var t=ae.image.lut.range_max/3;return t<=e&&e<2*t?ae.image.lut.range_max-1:0},ae.image.lut.maxThirdThird=function(e){return e>=2*ae.image.lut.range_max/3?ae.image.lut.range_max-1:0},ae.image.lut.toMaxFirstThird=function(e){var t=3*e;return t>ae.image.lut.range_max-1?ae.image.lut.range_max-1:t},ae.image.lut.toMaxSecondThird=function(e){var t=ae.image.lut.range_max/3,n=0;return t<=e&&(n=3*(e-t))>ae.image.lut.range_max-1?ae.image.lut.range_max-1:n},ae.image.lut.toMaxThirdThird=function(e){var t=ae.image.lut.range_max/3,n=0;return 2*t<=e&&(n=3*(e-2*t))>ae.image.lut.range_max-1?ae.image.lut.range_max-1:n},ae.image.lut.zero=function(e){return 0},ae.image.lut.id=function(e){return e},ae.image.lut.invId=function(e){return ae.image.lut.range_max-1-e},ae.image.lut.plain={red:ae.image.lut.buildLut(ae.image.lut.id),green:ae.image.lut.buildLut(ae.image.lut.id),blue:ae.image.lut.buildLut(ae.image.lut.id)},ae.image.lut.invPlain={red:ae.image.lut.buildLut(ae.image.lut.invId),green:ae.image.lut.buildLut(ae.image.lut.invId),blue:ae.image.lut.buildLut(ae.image.lut.invId)},ae.image.lut.rainbow={blue:[0,4,8,12,16,20,24,28,32,36,40,44,48,52,56,60,64,68,72,76,80,84,88,92,96,100,104,108,112,116,120,124,128,132,136,140,144,148,152,156,160,164,168,172,176,180,184,188,192,196,200,204,208,212,216,220,224,228,232,236,240,244,248,252,255,247,239,231,223,215,207,199,191,183,175,167,159,151,143,135,127,119,111,103,95,87,79,71,63,55,47,39,31,23,15,7,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],green:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,8,16,24,32,40,48,56,64,72,80,88,96,104,112,120,128,136,144,152,160,168,176,184,192,200,208,216,224,232,240,248,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,253,251,249,247,245,243,241,239,237,235,233,231,229,227,225,223,221,219,217,215,213,211,209,207,205,203,201,199,197,195,193,192,189,186,183,180,177,174,171,168,165,162,159,156,153,150,147,144,141,138,135,132,129,126,123,120,117,114,111,108,105,102,99,96,93,90,87,84,81,78,75,72,69,66,63,60,57,54,51,48,45,42,39,36,33,30,27,24,21,18,15,12,9,6,3],red:[0,2,4,6,8,10,12,14,16,18,20,22,24,26,28,30,32,34,36,38,40,42,44,46,48,50,52,54,56,58,60,62,64,62,60,58,56,54,52,50,48,46,44,42,40,38,36,34,32,30,28,26,24,22,20,18,16,14,12,10,8,6,4,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,4,8,12,16,20,24,28,32,36,40,44,48,52,56,60,64,68,72,76,80,84,88,92,96,100,104,108,112,116,120,124,128,132,136,140,144,148,152,156,160,164,168,172,176,180,184,188,192,196,200,204,208,212,216,220,224,228,232,236,240,244,248,252,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255]},ae.image.lut.hot={red:ae.image.lut.buildLut(ae.image.lut.toMaxFirstThird),green:ae.image.lut.buildLut(ae.image.lut.toMaxSecondThird),blue:ae.image.lut.buildLut(ae.image.lut.toMaxThirdThird)},ae.image.lut.hot_iron={red:[0,2,4,6,8,10,12,14,16,18,20,22,24,26,28,30,32,34,36,38,40,42,44,46,48,50,52,54,56,58,60,62,64,66,68,70,72,74,76,78,80,82,84,86,88,90,92,94,96,98,100,102,104,106,108,110,112,114,116,118,120,122,124,126,128,130,132,134,136,138,140,142,144,146,148,150,152,154,156,158,160,162,164,166,168,170,172,174,176,178,180,182,184,186,188,190,192,194,196,198,200,202,204,206,208,210,212,214,216,218,220,222,224,226,228,230,232,234,236,238,240,242,244,246,248,250,252,254,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255],green:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,4,6,8,10,12,14,16,18,20,22,24,26,28,30,32,34,36,38,40,42,44,46,48,50,52,54,56,58,60,62,64,66,68,70,72,74,76,78,80,82,84,86,88,90,92,94,96,98,100,102,104,106,108,110,112,114,116,118,120,122,124,126,128,130,132,134,136,138,140,142,144,146,148,150,152,154,156,158,160,162,164,166,168,170,172,174,176,178,180,182,184,186,188,190,192,194,196,198,200,202,204,206,208,210,212,214,216,218,220,222,224,226,228,230,232,234,236,238,240,242,244,246,248,250,252,255],blue:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,4,8,12,16,20,24,28,32,36,40,44,48,52,56,60,64,68,72,76,80,84,88,92,96,100,104,108,112,116,120,124,128,132,136,140,144,148,152,156,160,164,168,172,176,180,184,188,192,196,200,204,208,212,216,220,224,228,232,236,240,244,248,252,255]},ae.image.lut.pet={red:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,3,5,7,9,11,13,15,17,19,21,23,25,27,29,31,33,35,37,39,41,43,45,47,49,51,53,55,57,59,61,63,65,67,69,71,73,75,77,79,81,83,85,86,88,90,92,94,96,98,100,102,104,106,108,110,112,114,116,118,120,122,124,126,128,130,132,134,136,138,140,142,144,146,148,150,152,154,156,158,160,162,164,166,168,170,171,173,175,177,179,181,183,185,187,189,191,193,195,197,199,201,203,205,207,209,211,213,215,217,219,221,223,225,227,229,231,233,235,237,239,241,243,245,247,249,251,253,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255],green:[0,2,4,6,8,10,12,14,16,18,20,22,24,26,28,30,32,34,36,38,40,42,44,46,48,50,52,54,56,58,60,62,65,67,69,71,73,75,77,79,81,83,85,87,89,91,93,95,97,99,101,103,105,107,109,111,113,115,117,119,121,123,125,128,126,124,122,120,118,116,114,112,110,108,106,104,102,100,98,96,94,92,90,88,86,84,82,80,78,76,74,72,70,68,66,64,63,61,59,57,55,53,51,49,47,45,43,41,39,37,35,33,31,29,27,25,23,21,19,17,15,13,11,9,7,5,3,1,0,2,4,6,8,10,12,14,16,18,20,22,24,26,28,30,32,34,36,38,40,42,44,46,48,50,52,54,56,58,60,62,64,66,68,70,72,74,76,78,80,82,84,86,88,90,92,94,96,98,100,102,104,106,108,110,112,114,116,118,120,122,124,126,128,130,132,134,136,138,140,142,144,146,148,150,152,154,156,158,160,162,164,166,168,170,172,174,176,178,180,182,184,186,188,190,192,194,196,198,200,202,204,206,208,210,212,214,216,218,220,222,224,226,228,230,232,234,236,238,240,242,244,246,248,250,252,255],blue:[0,1,3,5,7,9,11,13,15,17,19,21,23,25,27,29,31,33,35,37,39,41,43,45,47,49,51,53,55,57,59,61,63,65,67,69,71,73,75,77,79,81,83,85,87,89,91,93,95,97,99,101,103,105,107,109,111,113,115,117,119,121,123,125,127,129,131,133,135,137,139,141,143,145,147,149,151,153,155,157,159,161,163,165,167,169,171,173,175,177,179,181,183,185,187,189,191,193,195,197,199,201,203,205,207,209,211,213,215,217,219,221,223,225,227,229,231,233,235,237,239,241,243,245,247,249,251,253,255,252,248,244,240,236,232,228,224,220,216,212,208,204,200,196,192,188,184,180,176,172,168,164,160,156,152,148,144,140,136,132,128,124,120,116,112,108,104,100,96,92,88,84,80,76,72,68,64,60,56,52,48,44,40,36,32,28,24,20,16,12,8,4,0,4,8,12,16,20,24,28,32,36,40,44,48,52,56,60,64,68,72,76,80,85,89,93,97,101,105,109,113,117,121,125,129,133,137,141,145,149,153,157,161,165,170,174,178,182,186,190,194,198,202,206,210,214,218,222,226,230,234,238,242,246,250,255]},ae.image.lut.hot_metal_blue={red:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,3,6,9,12,15,18,21,24,26,29,32,35,38,41,44,47,50,52,55,57,59,62,64,66,69,71,74,76,78,81,83,85,88,90,93,96,99,102,105,108,111,114,116,119,122,125,128,131,134,137,140,143,146,149,152,155,158,161,164,166,169,172,175,178,181,184,187,190,194,198,201,205,209,213,217,221,224,228,232,236,240,244,247,251,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255],green:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,4,6,8,9,11,13,15,17,19,21,23,24,26,28,30,32,34,36,38,40,41,43,45,47,49,51,53,55,56,58,60,62,64,66,68,70,72,73,75,77,79,81,83,85,87,88,90,92,94,96,98,100,102,104,105,107,109,111,113,115,117,119,120,122,124,126,128,130,132,134,136,137,139,141,143,145,147,149,151,152,154,156,158,160,162,164,166,168,169,171,173,175,177,179,181,183,184,186,188,190,192,194,196,198,200,201,203,205,207,209,211,213,215,216,218,220,222,224,226,228,229,231,233,235,237,239,240,242,244,246,248,250,251,253,255],blue:[0,2,4,6,8,10,12,14,16,17,19,21,23,25,27,29,31,33,35,37,39,41,43,45,47,49,51,53,55,57,59,61,63,65,67,69,71,73,75,77,79,81,83,84,86,88,90,92,94,96,98,100,102,104,106,108,110,112,114,116,117,119,121,123,125,127,129,131,133,135,137,139,141,143,145,147,149,151,153,155,157,159,161,163,165,167,169,171,173,175,177,179,181,183,184,186,188,190,192,194,196,198,200,197,194,191,188,185,182,179,176,174,171,168,165,162,159,156,153,150,144,138,132,126,121,115,109,103,97,91,85,79,74,68,62,56,50,47,44,41,38,35,32,29,26,24,21,18,15,12,9,6,3,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,3,6,9,12,15,18,21,24,26,29,32,35,38,41,44,47,50,53,56,59,62,65,68,71,74,76,79,82,85,88,91,94,97,100,103,106,109,112,115,118,121,124,126,129,132,135,138,141,144,147,150,153,156,159,162,165,168,171,174,176,179,182,185,188,191,194,197,200,203,206,210,213,216,219,223,226,229,232,236,239,242,245,249,252,255]},ae.image.lut.pet_20step={red:[0,0,0,0,0,0,0,0,0,0,0,0,0,96,96,96,96,96,96,96,96,96,96,96,96,96,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,80,80,80,80,80,80,80,80,80,80,80,80,80,96,96,96,96,96,96,96,96,96,96,96,96,96,112,112,112,112,112,112,112,112,112,112,112,112,112,128,128,128,128,128,128,128,128,128,128,128,128,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,80,80,80,80,80,80,80,80,80,80,80,80,80,64,64,64,64,64,64,64,64,64,64,64,64,224,224,224,224,224,224,224,224,224,224,224,224,224,208,208,208,208,208,208,208,208,208,208,208,208,208,208,208,208,208,208,208,208,208,208,208,208,208,208,208,208,208,208,208,208,208,208,208,208,208,208,192,192,192,192,192,192,192,192,192,192,192,192,192,176,176,176,176,176,176,176,176,176,176,176,176,176,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255],green:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,80,80,80,80,80,80,80,80,80,80,80,80,80,96,96,96,96,96,96,96,96,96,96,96,96,96,112,112,112,112,112,112,112,112,112,112,112,112,112,128,128,128,128,128,128,128,128,128,128,128,128,96,96,96,96,96,96,96,96,96,96,96,96,96,144,144,144,144,144,144,144,144,144,144,144,144,144,192,192,192,192,192,192,192,192,192,192,192,192,192,224,224,224,224,224,224,224,224,224,224,224,224,224,224,224,224,224,224,224,224,224,224,224,224,224,208,208,208,208,208,208,208,208,208,208,208,208,208,176,176,176,176,176,176,176,176,176,176,176,176,176,144,144,144,144,144,144,144,144,144,144,144,144,96,96,96,96,96,96,96,96,96,96,96,96,96,48,48,48,48,48,48,48,48,48,48,48,48,48,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255,255,255,255,255,255,255,255,255,255],blue:[0,0,0,0,0,0,0,0,0,0,0,0,0,80,80,80,80,80,80,80,80,80,80,80,80,80,80,80,80,80,80,80,80,80,80,80,80,80,80,112,112,112,112,112,112,112,112,112,112,112,112,128,128,128,128,128,128,128,128,128,128,128,128,128,176,176,176,176,176,176,176,176,176,176,176,176,176,192,192,192,192,192,192,192,192,192,192,192,192,192,224,224,224,224,224,224,224,224,224,224,224,224,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,80,80,80,80,80,80,80,80,80,80,80,80,80,64,64,64,64,64,64,64,64,64,64,64,64,80,80,80,80,80,80,80,80,80,80,80,80,80,96,96,96,96,96,96,96,96,96,96,96,96,96,64,64,64,64,64,64,64,64,64,64,64,64,64,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255,255,255,255,255,255,255,255,255,255]},ae.image.lut.test={red:ae.image.lut.buildLut(ae.image.lut.id),green:ae.image.lut.buildLut(ae.image.lut.zero),blue:ae.image.lut.buildLut(ae.image.lut.zero)},(ae=ae||{}).image=ae.image||{},ae.image.RescaleLut=function(t,e){var n=null,i=!1,r=Math.pow(2,e);this.getRSI=function(){return t},this.isReady=function(){return i},this.initialise=function(){if(!i){n=new Float32Array(r);for(var e=0;e<r;++e)n[e]=t.apply(e);i=!0}},this.getLength=function(){return r},this.getValue=function(e){return n[e]}},(ae=ae||{}).image=ae.image||{},ae.image.RescaleSlopeAndIntercept=function(t,n){this.getSlope=function(){return t},this.getIntercept=function(){return n},this.apply=function(e){return e*t+n}},ae.image.RescaleSlopeAndIntercept.prototype.equals=function(e){return null!==e&&this.getSlope()===e.getSlope()&&this.getIntercept()===e.getIntercept()},ae.image.RescaleSlopeAndIntercept.prototype.toString=function(){return this.getSlope()+", "+this.getIntercept()},ae.image.RescaleSlopeAndIntercept.prototype.isID=function(){return 1===this.getSlope()&&0===this.getIntercept()},(ae=ae||{}).image=ae.image||{},ae.image.View=function(s){var l={},u={minmax:{name:"minmax"}},c=null,S=null,t=ae.image.lut.plain,a=null,n=null;this.getImage=function(){return s},this.setImage=function(e){s=e},this.setInitialPosition=function(){this.setCurrentPosition({i:0,j:0,k:0},!0),this.setCurrentFrame(0,!0)},this.getPlaybackMilliseconds=function(e){return e=e||10,Math.round(1e3/e)},this.getCurrentWindowLut=function(e){this.getCurrentPosition()||this.setInitialPosition();var t=this.getCurrentPosition().k;void 0===e&&(e=s.getRescaleSlopeAndIntercept(t));var n=null;c&&void 0!==u[c]&&void 0!==u[c].perslice&&!0===u[c].perslice&&(n=u[c].wl[t]),n||(S||this.setWindowLevelPresetById(0,!0),n=S);var i,r,o=l[e.toString()];void 0===o&&(i=new ae.image.RescaleLut(s.getRescaleSlopeAndIntercept(0),s.getMeta().BitsStored),r=new ae.image.WindowLut(i,s.getMeta().IsSigned),this.addWindowLut(r),o=r);var a=o.getWindowLevel();return n.equals(a)||(o.setWindowLevel(n),o.update(),a&&a.getWidth()===n.getWidth()||this.fireEvent({type:"wlwidthchange",value:[n.getWidth()],wc:n.getCenter(),ww:n.getWidth(),skipGenerate:!0}),a&&a.getCenter()===n.getCenter()||this.fireEvent({type:"wlcenterchange",value:[n.getCenter()],wc:n.getCenter(),ww:n.getWidth(),skipGenerate:!0})),o},this.addWindowLut=function(e){var t=e.getRescaleLut().getRSI();l[t.toString()]=e},this.getWindowPresets=function(){return u},this.getWindowPresetsNames=function(){return Object.keys(u)},this.setWindowPresets=function(e){u=e},this.setDefaultColourMap=function(e){t=e},this.addWindowPresets=function(e,t){for(var n,i=Object.keys(e),r=0;r<i.length;++r)n=i[r],void 0!==u[n]?void 0!==u[n].perslice&&!0===u[n].perslice?u[n].wl.splice(t,0,e[n].wl[0]):u[n]=e[n]:(u[n]=e[n],this.fireEvent({type:"wlpresetadd",name:n}))},this.getColourMap=function(){return t},this.setColourMap=function(e){t=e,this.fireEvent({type:"colourchange",wc:this.getCurrentWindowLut().getWindowLevel().getCenter(),ww:this.getCurrentWindowLut().getWindowLevel().getWidth()})},this.getCurrentPosition=function(){return a?{i:a.i,j:a.j,k:a.k}:null},this.setCurrentPosition=function(e,t){if(void 0===t&&(t=!1),!s.getGeometry().getSize().isInBounds(e.i,e.j,e.k))return!1;var n,i,r,o;return(n=e,!(null!==(i=a)&&n.i===i.i&&n.j===i.j&&n.k===i.k))&&(r=!a||e.k!==a.k,a=e,null!==s.getPhotometricInterpretation().match(/MONOCHROME/)?(o=s.getRescaledValue(e.i,e.j,e.k,this.getCurrentFrame()),this.fireEvent({type:"positionchange",value:[e.i,e.j,e.k,o],i:e.i,j:e.j,k:e.k,pixelValue:o})):this.fireEvent({type:"positionchange",value:[e.i,e.j,e.k],i:e.i,j:e.j,k:e.k}),!t&&r&&this.fireEvent({type:"slicechange",value:[a.k],data:{imageUid:s.getImageUids()[a.k]}})),!0},this.getCurrentFrame=function(){return n},this.setCurrentFrame=function(e,t){return void 0===t&&(t=!1),!(e<0||e>=s.getNumberOfFrames())&&(n!==e&&(n=e,1!==s.getNumberOfFrames()&&this.fireEvent({type:"framechange",value:[n],frame:n,skipGenerate:t})),!0)},this.setWindowLevel=function(e,t,n,i){var r,o,a;t<1||(void 0===n&&(n="manual"),void 0===i&&(i=!1),(r=new ae.image.WindowLevel(e,t)).equals(S)||(o=!S||S.getWidth()!==t,a=!S||S.getCenter()!==e,S=r,c=n,o&&this.fireEvent({type:"wlwidthchange",value:[t],wc:e,ww:t,skipGenerate:i}),a&&this.fireEvent({type:"wlcenterchange",value:[e],wc:e,ww:t,skipGenerate:i})))},this.setWindowLevelPreset=function(e,t){var n=this.getWindowPresets()[e];if(void 0===n)throw new Error("Unknown window level preset: '"+e+"'");"minmax"===e&&void 0===n.wl&&(n.wl=this.getWindowLevelMinMax()),void 0!==n.perslice&&!0===n.perslice&&(n={wl:n.wl[this.getCurrentPosition().k]}),this.setWindowLevel(n.wl.getCenter(),n.wl.getWidth(),e,t)},this.setWindowLevelPresetById=function(e,t){var n=Object.keys(this.getWindowPresets());this.setWindowLevelPreset(n[e],t)},this.clone=function(){var e,t=new ae.image.View(this.getImage());for(e in l)t.addWindowLut(l[e]);return t.setListeners(this.getListeners()),t};var i={};this.getListeners=function(){return i},this.setListeners=function(e){i=e}},ae.image.View.prototype.getWindowLevelMinMax=function(){var e=this.getImage().getRescaledDataRange(),t=e.min,n=e.max-t;n<1&&(ae.logger.warn("Zero or negative width, defaulting to one."),n=1);var i=t+n/2;return new ae.image.WindowLevel(i,n)},ae.image.View.prototype.setWindowLevelMinMax=function(){var e=this.getWindowLevelMinMax();this.setWindowLevel(e.getCenter(),e.getWidth(),"minmax")},ae.image.View.prototype.generateImageData=function(e){this.getCurrentPosition()||this.setInitialPosition();var t=this.getCurrentPosition(),n=this.getCurrentFrame(),i=this.getImage(),r=i.getSliceIterator(t.k,n),o=i.getPhotometricInterpretation();switch(o){case"MONOCHROME1":case"MONOCHROME2":ae.image.generateImageDataMonochrome(e,r,this.getCurrentWindowLut(),this.getColourMap());break;case"PALETTE COLOR":ae.image.generateImageDataPaletteColor(e,r,this.getColourMap(),16===i.getMeta().BitsStored);break;case"RGB":ae.image.generateImageDataRgb(e,r,this.getCurrentWindowLut());break;case"YBR_FULL":ae.image.generateImageDataYbrFull(e,r);break;default:throw new Error("Unsupported photometric interpretation: "+o)}},ae.image.View.prototype.addEventListener=function(e,t){var n=this.getListeners();n[e]||(n[e]=[]),n[e].push(t)},ae.image.View.prototype.removeEventListener=function(e,t){var n=this.getListeners();if(n[e])for(var i=0;i<n[e].length;++i)n[e][i]===t&&n[e].splice(i,1)},ae.image.View.prototype.fireEvent=function(e){var t=this.getListeners();if(t[e.type])for(var n=0;n<t[e.type].length;++n)t[e.type][n](e)},(ae=ae||{}).image=ae.image||{},ae.image.ViewFactory=function(){},ae.image.ViewFactory.prototype.create=function(e,t){var n,i=new ae.image.View(t);"MONOCHROME1"===t.getPhotometricInterpretation()?i.setDefaultColourMap(ae.image.lut.invPlain):"PALETTE COLOR"!==t.getPhotometricInterpretation()||void 0!==(n=t.getMeta().paletteLut)&&i.setDefaultColourMap(n);var r={};if(void 0!==t.getMeta().windowPresets&&(r=t.getMeta().windowPresets),r.minmax={name:"minmax"},void 0!==ae.tool&&void 0!==ae.tool.defaultpresets){var o,a=t.getMeta().Modality;for(o in ae.tool.defaultpresets[a]){var s=ae.tool.defaultpresets[a][o];r[o]={wl:new ae.image.WindowLevel(s.center,s.width),name:o}}}return i.setWindowPresets(r),i},(ae=ae||{}).image=ae.image||{},ae.image.generateImageDataMonochrome=function(e,t,n,i){for(var r,o=0,a=t.next();!a.done;)r=n.getValue(a.value),e.data[o]=i.red[r],e.data[o+1]=i.green[r],e.data[o+2]=i.blue[r],e.data[o+3]=255,o+=4,a=t.next()},(ae=ae||{}).image=ae.image||{},ae.image.generateImageDataPaletteColor=function(e,t,n,i){i&&ae.logger.info("Scaling 16bits data to 8bits.");for(var r,o=0,a=t.next();!a.done;)r=a.value,i?(e.data[o]=n.red[r]>>8,e.data[o+1]=n.green[r]>>8,e.data[o+2]=n.blue[r]>>8):(e.data[o]=n.red[r],e.data[o+1]=n.green[r],e.data[o+2]=n.blue[r]),e.data[o+3]=255,o+=4,a=t.next()},(ae=ae||{}).image=ae.image||{},ae.image.generateImageDataRgb=function(e,t){for(var n=0,i=t.next();!i.done;)e.data[n]=i.value[0],e.data[n+1]=i.value[1],e.data[n+2]=i.value[2],e.data[n+3]=255,n+=4,i=t.next()},(ae=ae||{}).image=ae.image||{},ae.image.generateImageDataYbrFull=function(e,t){for(var n,i,r,o,a,s,l=0,u=t.next();!u.done;)n=u.value[0],i=u.value[1],o=n+1.402*((r=u.value[2])-128),a=n-.34414*(i-128)-.71414*(r-128),s=n+1.772*(i-128),e.data[l]=o,e.data[l+1]=a,e.data[l+2]=s,e.data[l+3]=255,l+=4,u=t.next()},(ae=ae||{}).image=ae.image||{},ae.image.WindowLevel=function(t,n){if(0===n)throw new Error("A window level with a width of zero is not possible.");var i=0,r=0,o=255,a=null,s=null,l=null,u=null;function c(){var e=t+i;a=e-.5-(n-1)/2,s=e-.5+(n-1)/2,l=(o-r)/(n-1),u=(-(e-.5)/(n-1)+.5)*(o-r)+r}c(),this.getCenter=function(){return t},this.getWidth=function(){return n},this.setRange=function(e,t){r=parseInt(e,10),o=parseInt(t,10),c()},this.setSignedOffset=function(e){i=e,c()},this.apply=function(e){return e<=a?r:s<e?o:parseInt(e*l+u,10)}},ae.image.WindowLevel.prototype.equals=function(e){return null!==e&&this.getCenter()===e.getCenter()&&this.getWidth()===e.getWidth()},ae.image.WindowLevel.prototype.toString=function(){return this.getCenter()+", "+this.getWidth()},(ae=ae||{}).image=ae.image||{},ae.image.WindowLut=function(n,i){var r=null,o=null,a=!1,s=0;this.getWindowLevel=function(){return o},this.isSigned=function(){return i},this.getRescaleLut=function(){return n},this.isReady=function(){return a},this.setWindowLevel=function(e){var t;s=0,(o=e).setSignedOffset(0),i&&(t=n.getLength(),s=t/2,o.setSignedOffset(n.getRSI().getSlope()*s)),a=!1},this.update=function(){if(!a){n.isReady()||n.initialise();var e=n.getLength();r=r||new Uint8ClampedArray(e);for(var t=0;t<e;++t)r[t]=o.apply(n.getValue(t));a=!0}},this.getLength=function(){return r.length},this.getValue=function(e){return r[e+s]}},(ae=ae||{}).io=ae.io||{},ae.io.DicomDataLoader=function(){var i=this,r={},o=!1;this.setOptions=function(e){r=e},this.isLoading=function(){return o};var a=new ae.image.DicomBufferToView;this.load=function(e,t,n){o||(void 0!==r.defaultCharacterSet&&a.setDefaultCharacterSet(r.defaultCharacterSet),a.onloadstart=i.onloadstart,a.onprogress=i.onprogress,a.onloaditem=i.onloaditem,a.onload=i.onload,a.onloadend=function(e){o=!1,i.onloadend(e)},a.onerror=i.onerror,a.onabort=i.onabort),o=!0,a.convert(e,t,n)},this.abort=function(){o=!1,a.abort()}},ae.io.DicomDataLoader.prototype.canLoadFile=function(e){var t=ae.utils.getFileExtension(e.name);return null===t||"dcm"===t},ae.io.DicomDataLoader.prototype.canLoadUrl=function(e){var t=ae.utils.getUrlFromUri(e),n=ae.utils.getFileExtension(t.pathname),i=null===n,r="dcm"===n,o=t.searchParams.get("contentType");return null!=o?"application/dicom"===o:i||r},ae.io.DicomDataLoader.prototype.loadFileAs=function(){return ae.io.fileContentTypes.ArrayBuffer},ae.io.DicomDataLoader.prototype.loadUrlAs=function(){return ae.io.urlContentTypes.ArrayBuffer},ae.io.DicomDataLoader.prototype.onloadstart=function(e){},ae.io.DicomDataLoader.prototype.onprogress=function(e){},ae.io.DicomDataLoader.prototype.onloaditem=function(e){},ae.io.DicomDataLoader.prototype.onload=function(e){},ae.io.DicomDataLoader.prototype.onloadend=function(e){},ae.io.DicomDataLoader.prototype.onerror=function(e){},ae.io.DicomDataLoader.prototype.onabort=function(e){},ae.io.loaderList=ae.io.loaderList||[],ae.io.loaderList.push("DicomDataLoader"),(ae=ae||{}).io=ae.io||{},ae.io.fileContentTypes={Text:0,ArrayBuffer:1,DataURL:2},ae.io.FilesLoader=function(){var t,S=this,n=null,x=[],d=null,i=0,r=0;function g(e){n=e,r=i=0,x=[],d=null}function m(e){S.onloaditem(e),p()}function p(e){++i===n.length&&S.onload({source:n})}function h(e){++r===2*n.length&&S.onloadend({source:n})}function f(t,n){return function(e){e.source=n,t(e)}}this.getDefaultCharacterSet=function(){return t},this.setDefaultCharacterSet=function(e){t=e},this.load=function(e){if(void 0!==e&&0!==e.length){g(e),this.onloadstart({source:e});var t=new ae.utils.MultiProgressHandler(S.onprogress);t.setNToLoad(e.length);for(var n=[],i=0;i<ae.io.loaderList.length;++i)n.push(new ae.io[ae.io.loaderList[i]]);for(var r=e[0],o=null,a=!1,s=0;s<n.length;++s)if((o=n[s]).canLoadFile(r)){a=!0,o.setOptions({defaultCharacterSet:this.getDefaultCharacterSet()}),o.onprogress=t.getUndefinedMonoProgressHandler(1),void 0===o.onloaditem?o.onload=m:(o.onloaditem=S.onloaditem,o.onload=p),o.onloadend=h,o.onerror=S.onerror,o.onabort=S.onabort,d=o;break}if(!a)throw new Error("No loader found for file: "+r);for(var l,u=0;u<e.length;++u){if(r=e[u],!o.canLoadFile(r))throw new Error("Input file of different type: "+r);var c=new FileReader;l=c,x.push(l),c.onprogress=f(t.getMonoProgressHandler(u,0),r),c.onload=function(t,n,i){return function(e){t.load(e.target.result,n,i)}}(o,r,u),c.onloadend=h,c.onerror=f(S.onerror,r),c.onabort=f(S.onabort,r),o.loadFileAs()===ae.io.fileContentTypes.Text?c.readAsText(r):o.loadFileAs()===ae.io.fileContentTypes.DataURL?c.readAsDataURL(r):o.loadFileAs()===ae.io.fileContentTypes.ArrayBuffer&&c.readAsArrayBuffer(r)}}},this.abort=function(){for(var e=0;e<x.length;++e)1===x[e].readyState&&x[e].abort();d&&d.isLoading()&&d.abort()}},ae.io.FilesLoader.prototype.onloadstart=function(e){},ae.io.FilesLoader.prototype.onprogress=function(e){},ae.io.FilesLoader.prototype.onloaditem=function(e){},ae.io.FilesLoader.prototype.onload=function(e){},ae.io.FilesLoader.prototype.onloadend=function(e){},ae.io.FilesLoader.prototype.onerror=function(e){},ae.io.FilesLoader.prototype.onabort=function(e){},(ae=ae||{}).io=ae.io||{},ae.io.JSONTextLoader=function(){var i=this,r=!1;this.setOptions=function(e){},this.isLoading=function(){return r},this.load=function(e,t,n){r=!0,i.onloadstart({source:t});try{i.onprogress({lengthComputable:!0,loaded:100,total:100,index:n,source:t}),i.onload({data:e,source:t})}catch(e){i.onerror({error:e,source:t})}finally{r=!1,i.onloadend({source:t})}},this.abort=function(){r=!1,i.onabort({}),i.onloadend({})}},ae.io.JSONTextLoader.prototype.canLoadFile=function(e){return"json"===ae.utils.getFileExtension(e.name)},ae.io.JSONTextLoader.prototype.canLoadUrl=function(e){var t=ae.utils.getUrlFromUri(e);return"json"===ae.utils.getFileExtension(t.pathname)},ae.io.JSONTextLoader.prototype.loadFileAs=function(){return ae.io.fileContentTypes.Text},ae.io.JSONTextLoader.prototype.loadUrlAs=function(){return ae.io.urlContentTypes.Text},ae.io.JSONTextLoader.prototype.onloadstart=function(e){},ae.io.JSONTextLoader.prototype.onprogress=function(e){},ae.io.JSONTextLoader.prototype.onload=function(e){},ae.io.JSONTextLoader.prototype.onloadend=function(e){},ae.io.JSONTextLoader.prototype.onerror=function(e){},ae.io.JSONTextLoader.prototype.onabort=function(e){},ae.io.loaderList=ae.io.loaderList||[],ae.io.loaderList.push("JSONTextLoader"),(ae=ae||{}).io=ae.io||{},ae.io.MemoryLoader=function(){var t,u=this,n=null,c=null,i=0,r=0;function S(e){n=e,r=i=0,c=null}function x(e){u.onloaditem(e),d()}function d(e){++i===n.length&&u.onload({source:n})}function g(e){++r===n.length&&u.onloadend({source:n})}this.getDefaultCharacterSet=function(){return t},this.setDefaultCharacterSet=function(e){t=e},this.load=function(e){if(void 0!==e&&0!==e.length){S(e),this.onloadstart({source:e});var t=new ae.utils.MultiProgressHandler(u.onprogress);t.setNToLoad(e.length),t.setNumberOfDimensions(1);for(var n=[],i=0;i<ae.io.loaderList.length;++i)n.push(new ae.io[ae.io.loaderList[i]]);for(var r=e[0],o=null,a=!1,s=0;s<n.length;++s)if((o=n[s]).canLoadUrl(r.filename)){a=!0,o.setOptions({defaultCharacterSet:this.getDefaultCharacterSet()}),o.onprogress=t.getUndefinedMonoProgressHandler(0),void 0===o.onloaditem?o.onload=x:(o.onloaditem=u.onloaditem,o.onload=d),o.onloadend=g,o.onerror=u.onerror,o.onabort=u.onabort,c=o;break}if(!a)throw new Error("No loader found for data: "+r.filename);for(var l=0;l<e.length;++l){if(r=e[l],!o.canLoadFile({name:r.filename}))throw new Error("Input data of different type: "+r.filename);o.load(r.data,r.filename,l)}}},this.abort=function(){c&&c.isLoading()&&c.abort()}},ae.io.MemoryLoader.prototype.onloadstart=function(e){},ae.io.MemoryLoader.prototype.onprogress=function(e){},ae.io.MemoryLoader.prototype.onloaditem=function(e){},ae.io.MemoryLoader.prototype.onload=function(e){},ae.io.MemoryLoader.prototype.onloadend=function(e){},ae.io.MemoryLoader.prototype.onerror=function(e){},ae.io.MemoryLoader.prototype.onabort=function(e){},(ae=ae||{}).io=ae.io||{},ae.io.RawImageLoader=function(){var o=this,a=!1;this.setOptions=function(e){},this.isLoading=function(){return!0},this.load=function(e,t,n){a=!1;var i,r=new Image;r.onload=function(){try{a||(o.onprogress({lengthComputable:!0,loaded:100,total:100,index:n,source:t}),o.onload(ae.image.getViewFromDOMImage(this,t)))}catch(e){o.onerror({error:e,source:t})}finally{o.onloadend({source:t})}},r.origin=t,r.index=n,"string"==typeof t?(i=t.split(".").pop().toLowerCase(),r.src=function(e,t){var n=t;n&&"jpg"!==n||(n="jpeg");var i=new Blob([e],{type:"image/"+n});return N.URL.createObjectURL(i)}(e,i)):r.src=e},this.abort=function(){a=!0,o.onabort({}),o.onloadend({})}},ae.io.RawImageLoader.prototype.canLoadFile=function(e){return e.type.match("image.*")},ae.io.RawImageLoader.prototype.canLoadUrl=function(e){var t=ae.utils.getUrlFromUri(e),n=ae.utils.getFileExtension(t.pathname),i="jpeg"===n||"jpg"===n||"png"===n||"gif"===n,r=t.searchParams.get("contentType");return null!=r?"image/jpeg"===r||"image/png"===r||"image/gif"===r:i},ae.io.RawImageLoader.prototype.loadFileAs=function(){return ae.io.fileContentTypes.DataURL},ae.io.RawImageLoader.prototype.loadUrlAs=function(){return ae.io.urlContentTypes.ArrayBuffer},ae.io.RawImageLoader.prototype.onloadstart=function(e){},ae.io.RawImageLoader.prototype.onprogress=function(e){},ae.io.RawImageLoader.prototype.onload=function(e){},ae.io.RawImageLoader.prototype.onloadend=function(e){},ae.io.RawImageLoader.prototype.onerror=function(e){},ae.io.RawImageLoader.prototype.onabort=function(e){},ae.io.loaderList=ae.io.loaderList||[],ae.io.loaderList.push("RawImageLoader"),(ae=ae||{}).io=ae.io||{},ae.io.RawVideoLoader=function(){var o=this;this.setOptions=function(e){},this.isLoading=function(){return!0},this.load=function(e,t,n){var i,r=document.createElement("video");"string"==typeof t?(i=t.split(".").pop().toLowerCase(),r.src=function(e,t){for(var n=new Uint8Array(e),i="",r=0;r<n.byteLength;++r)i+=String.fromCharCode(n[r]);return"data:video/"+t+";base64,"+N.btoa(i)}(e,i)):r.src=e,r.file=t,r.index=n,r.onloadedmetadata=function(){try{ae.image.getViewFromDOMVideo(this,o.onloaditem,o.onload,o.onprogress,o.onloadend,n,t)}catch(e){o.onerror({error:e,source:t}),o.onloadend({source:t})}}},this.abort=function(){o.onabort({}),o.onloadend({})}},ae.io.RawVideoLoader.prototype.canLoadFile=function(e){return e.type.match("video.*")},ae.io.RawVideoLoader.prototype.canLoadUrl=function(e){var t=ae.utils.getUrlFromUri(e),n=ae.utils.getFileExtension(t.pathname);return"mp4"===n||"ogg"===n||"webm"===n},ae.io.RawVideoLoader.prototype.loadFileAs=function(){return ae.io.fileContentTypes.DataURL},ae.io.RawVideoLoader.prototype.loadUrlAs=function(){return ae.io.urlContentTypes.ArrayBuffer},ae.io.RawVideoLoader.prototype.onloadstart=function(e){},ae.io.RawVideoLoader.prototype.onprogress=function(e){},ae.io.RawVideoLoader.prototype.onloaditem=function(e){},ae.io.RawVideoLoader.prototype.onload=function(e){},ae.io.RawVideoLoader.prototype.onloadend=function(e){},ae.io.RawVideoLoader.prototype.onerror=function(e){},ae.io.RawVideoLoader.prototype.onabort=function(e){},ae.io.loaderList=ae.io.loaderList||[],ae.io.loaderList.push("RawVideoLoader"),(ae=ae||{}).io=ae.io||{},ae.io.urlContentTypes={Text:0,ArrayBuffer:1},ae.io.UrlsLoader=function(){var f,t,D=this,n=null,y=[],C=null,i=0,r=0;function v(e){n=e,r=i=0,f=!1,y=[],C=null}function T(e){D.onloaditem(e),L()}function L(e){++i===n.length&&D.onload({source:n})}function I(e){++r===2*n.length&&D.onloadend({source:n})}function P(t,n){return function(e){e.source=n,t(e)}}function l(e,t){if(void 0!==e&&0!==e.length){v(e);var n=new ae.utils.MultiProgressHandler(D.onprogress);n.setNToLoad(e.length);for(var i=[],r=0;r<ae.io.loaderList.length;++r)i.push(new ae.io[ae.io.loaderList[r]]);for(var o=e[0],a=null,s=!1,l=0;l<i.length;++l)if((a=i[l]).canLoadUrl(o)){s=!0,a.setOptions({defaultCharacterSet:D.getDefaultCharacterSet()}),a.onprogress=n.getUndefinedMonoProgressHandler(1),void 0===a.onloaditem?a.onload=T:(a.onloaditem=D.onloaditem,a.onload=L),a.onloadend=I,a.onerror=D.onerror,a.onabort=D.onabort,C=a;break}if(!s)throw new Error("No loader found for url: "+o);function u(){I(),S<y.length-1&&!f&&y[++S].send(null)}for(var c,S=0,x=0;x<e.length;++x){if(o=e[x],!a.canLoadUrl(o))throw new Error("Input url of different type: "+o);var d=new XMLHttpRequest;if(d.open("GET",o,!0),void 0!==t){if(void 0!==t.requestHeaders)for(var g=t.requestHeaders,m=0;m<g.length;++m)void 0!==g[m].name&&void 0!==g[m].value&&d.setRequestHeader(g[m].name,g[m].value);void 0!==t.withCredentials&&(d.withCredentials=t.withCredentials)}d.onprogress=P(n.getMonoProgressHandler(x,0),o),d.onload=function(n,i,r){return function(e){var t=e.target.status;200!==t&&0!==t?(D.onerror({source:i,error:"GET "+e.target.responseURL+" "+e.target.status+" ("+e.target.statusText+")",target:e.target}),I()):n.load(e.target.response,i,r)}}(a,o,x),d.onloadend=u,d.onerror=P(D.onerror,o),d.onabort=P(D.onabort,o),a.loadUrlAs()===ae.io.urlContentTypes.ArrayBuffer&&(d.responseType="arraybuffer"),c=d,y.push(c)}var p=y.length;void 0!==t&&void 0!==t.batchSize&&0!==p&&(p=Math.min(t.batchSize,y.length));for(var h=0;h<p;++h)f||y[S=h].send(null)}}this.getDefaultCharacterSet=function(){return t},this.setDefaultCharacterSet=function(e){t=e},this.load=function(e,t){var a,s,n;D.onloadstart({source:e}),1===e.length&&(ae.utils.endsWith(e[0],"DICOMDIR")||ae.utils.endsWith(e[0],".dcmdir"))?(a=e[0],s=t,(n=new XMLHttpRequest).open("GET",a,!0),n.responseType="arraybuffer",n.onload=function(e){var t=e.target.status;if(200!==t&&0!==t)return D.onerror({source:a,error:"GET "+e.target.responseURL+" "+e.target.status+" ("+e.target.statusText+")",target:e.target}),void D.onloadend({});for(var n=ae.dicom.getFileListFromDicomDir(e.target.response)[0][0],i=ae.utils.getRootPath(a),r=[],o=0;o<n.length;++o)r.push(i+"/"+n[o]);l(r,s)},n.onerror=function(e){P(D.onerror,a)(e),D.onloadend({})},n.onabort=function(e){P(D.onabort,a)(e),D.onloadend({})},n.send(null)):l(e,t)},this.abort=function(){f=!0;for(var e=0;e<y.length;++e)4!==y[e].readyState&&y[e].abort();C&&C.isLoading()&&C.abort()}},ae.io.UrlsLoader.prototype.onloadstart=function(e){},ae.io.UrlsLoader.prototype.onprogress=function(e){},ae.io.UrlsLoader.prototype.onloaditem=function(e){},ae.io.UrlsLoader.prototype.onload=function(e){},ae.io.UrlsLoader.prototype.onloadend=function(e){},ae.io.UrlsLoader.prototype.onerror=function(e){},ae.io.UrlsLoader.prototype.onabort=function(e){},(ae=ae||{}).io=ae.io||{};t=t||{};ae.io.ZipLoader=function(){var s=this,l=!1;this.setOptions=function(e){},this.isLoading=function(){return l};var u="",c=[],S=null;this.load=function(e,n,i){this.onloadstart({source:n}),l=!0,t.loadAsync(e).then(function(e){c=[],S=e.file(/.*\.dcm/);var t=c.length;u=S[t].name,S[t].async("arrayBuffer").then(function(e){!function t(e,n,i){c.push({filename:u,data:e});var r,o,a=100*c.length/S.length;s.onprogress({lengthComputable:!0,loaded:a/2,total:100,index:i,item:{loaded:a,total:100,source:n}}),c.length<S.length?(r=c.length,u=S[r].name,S[r].async("arrayBuffer").then(function(e){t(e,n,i)})):((o=new ae.io.MemoryLoader).onprogress=function(e){e.loaded=50+e.loaded/2,e.index=i,s.onprogress(e)},o.onloaditem=s.onloaditem,o.onload=s.onload,o.onloadend=function(e){l=!1,s.onloadend(e)},o.onerror=s.onerror,o.onabort=s.onabort,o.load(c))}(e,n,i)})})},this.abort=function(){l=!1,s.onabort({}),s.onloadend({})}},ae.io.ZipLoader.prototype.canLoadFile=function(e){return"zip"===ae.utils.getFileExtension(e.name)},ae.io.ZipLoader.prototype.canLoadUrl=function(e){var t=ae.utils.getUrlFromUri(e);return"zip"===ae.utils.getFileExtension(t.pathname)},ae.io.ZipLoader.prototype.loadFileAs=function(){return ae.io.fileContentTypes.ArrayBuffer},ae.io.ZipLoader.prototype.loadUrlAs=function(){return ae.io.urlContentTypes.ArrayBuffer},ae.io.ZipLoader.prototype.onloadstart=function(e){},ae.io.ZipLoader.prototype.onprogress=function(e){},ae.io.ZipLoader.prototype.onloaditem=function(e){},ae.io.ZipLoader.prototype.onload=function(e){},ae.io.ZipLoader.prototype.onloadend=function(e){},ae.io.ZipLoader.prototype.onerror=function(e){},ae.io.ZipLoader.prototype.onabort=function(e){},ae.io.loaderList=ae.io.loaderList||[],ae.io.loaderList.push("ZipLoader"),(ae=ae||{}).math=ae.math||{},ae.math.BucketQueue=function(e,t){this.bucketCount=1<<e,this.mask=this.bucketCount-1,this.size=0,this.loc=0,this.cost=void 0!==t?t:function(e){return e},this.buckets=this.buildArray(this.bucketCount)},ae.math.BucketQueue.prototype.push=function(e){var t=this.getBucket(e);e.next=this.buckets[t],this.buckets[t]=e,this.size++},ae.math.BucketQueue.prototype.pop=function(){if(0===this.size)throw new Error("Cannot pop, bucketQueue is empty.");for(;null===this.buckets[this.loc];)this.loc=(this.loc+1)%this.bucketCount;var e=this.buckets[this.loc];return this.buckets[this.loc]=e.next,e.next=null,this.size--,e},ae.math.BucketQueue.prototype.remove=function(e){if(!e)return!1;for(var t=this.getBucket(e),n=this.buckets[t];null!==n&&!e.equals(n.next);)n=n.next;return null!==n&&(n.next=n.next.next,this.size--,!0)},ae.math.BucketQueue.prototype.isEmpty=function(){return 0===this.size},ae.math.BucketQueue.prototype.getBucket=function(e){return this.cost(e)&this.mask},ae.math.BucketQueue.prototype.buildArray=function(e){for(var t=new Array(e),n=0;n<t.length;n++)t[n]=null;return t},(ae=ae||{}).math=ae.math||{},void 0===Number.EPSILON&&(Number.EPSILON=Math.pow(2,-52)),ae.math.Matrix33=function(e,t,n,i,r,o,a,s,l){var u=new Float32Array(9);u[0]=e,u[1]=t,u[2]=n,u[3]=i,u[4]=r,u[5]=o,u[6]=a,u[7]=s,u[8]=l,this.get=function(e,t){return u[3*e+t]}},ae.math.Matrix33.prototype.equals=function(e,t){return void 0===t&&(t=Number.EPSILON),Math.abs(this.get(0,0)-e.get(0,0))<t&&Math.abs(this.get(0,1)-e.get(0,1))<t&&Math.abs(this.get(0,2)-e.get(0,2))<t&&Math.abs(this.get(1,0)-e.get(1,0))<t&&Math.abs(this.get(1,1)-e.get(1,1))<t&&Math.abs(this.get(1,2)-e.get(1,2))<t&&Math.abs(this.get(2,0)-e.get(2,0))<t&&Math.abs(this.get(2,1)-e.get(2,1))<t&&Math.abs(this.get(2,2)-e.get(2,2))<t},ae.math.Matrix33.prototype.toString=function(){return"["+this.get(0,0)+", "+this.get(0,1)+", "+this.get(0,2)+"\n "+this.get(1,0)+", "+this.get(1,1)+", "+this.get(1,2)+"\n "+this.get(2,0)+", "+this.get(2,1)+", "+this.get(2,2)+"]"},ae.math.Matrix33.multiplyVector3D=function(e){var t=this.get(0,0),n=this.get(0,1),i=this.get(0,2),r=this.get(1,0),o=this.get(1,1),a=this.get(1,2),s=this.get(2,0),l=this.get(2,1),u=this.get(2,2),c=e.getX(),S=e.getY(),x=e.getZ();return new ae.math.Vector3D(t*c+n*S+i*x,r*c+o*S+a*x,s*c+l*S+u*x)},ae.math.getIdentityMat33=function(){return new ae.math.Matrix33(1,0,0,0,1,0,0,0,1)},(ae=ae||{}).math=ae.math||{},ae.math.Point2D=function(e,t){this.getX=function(){return e},this.getY=function(){return t}},ae.math.Point2D.prototype.equals=function(e){return null!==e&&this.getX()===e.getX()&&this.getY()===e.getY()},ae.math.Point2D.prototype.toString=function(){return"("+this.getX()+", "+this.getY()+")"},ae.math.Point2D.prototype.getDistance=function(e){return Math.sqrt((this.getX()-e.getX())*(this.getX()-e.getX())+(this.getY()-e.getY())*(this.getY()-e.getY()))},ae.math.FastPoint2D=function(e,t){this.x=e,this.y=t},ae.math.FastPoint2D.prototype.equals=function(e){return null!==e&&this.x===e.x&&this.y===e.y},ae.math.FastPoint2D.prototype.toString=function(){return"("+this.x+", "+this.y+")"},ae.math.Point3D=function(e,t,n){this.getX=function(){return e},this.getY=function(){return t},this.getZ=function(){return n}},ae.math.Point3D.prototype.equals=function(e){return null!==e&&this.getX()===e.getX()&&this.getY()===e.getY()&&this.getZ()===e.getZ()},ae.math.Point3D.prototype.toString=function(){return"("+this.getX()+", "+this.getY()+", "+this.getZ()+")"},ae.math.Point3D.prototype.getDistance=function(e){return Math.sqrt((this.getX()-e.getX())*(this.getX()-e.getX())+(this.getY()-e.getY())*(this.getY()-e.getY())+(this.getZ()-e.getZ())*(this.getZ()-e.getZ()))},ae.math.Point3D.prototype.minus=function(e){return new ae.math.Vector3D(this.getX()-e.getX(),this.getY()-e.getY(),this.getZ()-e.getZ())},ae.math.Index3D=function(e,t,n){this.getI=function(){return e},this.getJ=function(){return t},this.getK=function(){return n}},ae.math.Index3D.prototype.equals=function(e){return null!==e&&this.getI()===e.getI()&&this.getJ()===e.getJ()&&this.getK()===e.getK()},ae.math.Index3D.prototype.toString=function(){return"("+this.getI()+", "+this.getJ()+", "+this.getK()+")"},(ae=ae||{}).math=ae.math||{};var c=2/(3*Math.PI);ae.math.computeGreyscale=function(e,t,n){for(var i=[],r=0;r<n;r++){i[r]=[];for(var o=0;o<t;o++){var a=4*(r*t+o);i[r][o]=(e[a]+e[1+a]+e[2+a])/765}}return i.dx=function(e,t){return e+1===this[t].length&&e--,this[t][e+1]-this[t][e]},i.dy=function(e,t){return t+1===this.length&&t--,this[t][e]-this[t+1][e]},i.gradMagnitude=function(e,t){var n=this.dx(e,t),i=this.dy(e,t);return Math.sqrt(n*n+i*i)},i.laplace=function(e,t){var n=-16*this[t][e];return n+=this[t-2][e],n+=this[t-1][e-1]+2*this[t-1][e]+this[t-1][e+1],n+=this[t][e-2]+2*this[t][e-1]+2*this[t][e+1]+this[t][e+2],n+=this[t+1][e-1]+2*this[t+1][e]+this[t+1][e+1],n+=this[t+2][e]},i},ae.math.computeGradient=function(e){for(var t=[],n=0,i=0,r=0,r=0;r<e.length-1;r++){for(t[r]=[],i=0;i<e[r].length-1;i++)t[r][i]=e.gradMagnitude(i,r),n=Math.max(t[r][i],n);t[r][e[r].length-1]=t[r][e.length-2]}t[e.length-1]=[];for(var o=0;o<t[0].length;o++)t[e.length-1][o]=t[e.length-2][o];for(r=0;r<t.length;r++)for(i=0;i<t[r].length;i++)t[r][i]=1-t[r][i]/n;return t},ae.math.computeLaplace=function(e){var t=[];t[0]=[],t[1]=[];for(var n=1;n<e.length;n++)t[0][n]=1,t[1][n]=1;for(var i=2;i<e.length-2;i++){t[i]=[],t[i][0]=1,t[i][1]=1;for(var r=2;r<e[i].length-2;r++)t[i][r]=.33<e.laplace(r,i)?0:1;t[i][e[i].length-2]=1,t[i][e[i].length-1]=1}t[e.length-2]=[],t[e.length-1]=[];for(var o=1;o<e.length;o++)t[e.length-2][o]=1,t[e.length-1][o]=1;return t},ae.math.computeGradX=function(e){for(var t=[],n=0;n<e.length;n++){t[n]=[];for(var i=0;i<e[n].length-1;i++)t[n][i]=e.dx(i,n);t[n][e[n].length-1]=t[n][e[n].length-2]}return t},ae.math.computeGradY=function(e){for(var t=[],n=0;n<e.length-1;n++){t[n]=[];for(var i=0;i<e[n].length;i++)t[n][i]=e.dy(i,n)}t[e.length-1]=[];for(var r=0;r<e[0].length;r++)t[e.length-1][r]=t[e.length-2][r];return t},ae.math.gradUnitVector=function(e,t,n,i,r){var o=e[i][n],a=t[i][n],s=Math.sqrt(o*o+a*a),s=Math.max(s,1e-100);r.x=o/s,r.y=a/s},ae.math.gradDirection=function(e,t,n,i,r,o){var a=new ae.math.FastPoint2D(-1,-1),s=new ae.math.FastPoint2D(-1,-1);ae.math.gradUnitVector(e,t,n,i,a),ae.math.gradUnitVector(e,t,r,o,s);var l=a.y*(r-n)-a.x*(o-i),u=s.y*(r-n)-s.x*(o-i);return l<0&&(l=-l,u=-u),n!==r&&i!==o&&(l*=Math.SQRT1_2,u*=Math.SQRT1_2),c*(Math.acos(l)+Math.acos(u))},ae.math.computeSides=function(e,t,n,i){for(var r={inside:[],outside:[]},o=new ae.math.FastPoint2D(-1,-1),a=0;a<t.length;a++){r.inside[a]=[],r.outside[a]=[];for(var s=0;s<t[a].length;s++){ae.math.gradUnitVector(t,n,s,a,o);var l=Math.round(s+e*o.y),u=Math.round(a-e*o.x),c=Math.round(s-e*o.y),S=Math.round(a+e*o.x),l=Math.max(Math.min(l,t[a].length-1),0),c=Math.max(Math.min(c,t[a].length-1),0),u=Math.max(Math.min(u,t.length-1),0),S=Math.max(Math.min(S,t.length-1),0);r.inside[a][s]=i[u][l],r.outside[a][s]=i[S][c]}}return r},ae.math.gaussianBlur=function(e,t){t[0]=.4*e[0]+.5*e[1]+.1*e[1],t[1]=.25*e[0]+.4*e[1]+.25*e[2]+.1*e[3];for(var n=2;n<e.length-2;n++)t[n]=.05*e[n-2]+.25*e[n-1]+.4*e[n]+.25*e[n+1]+.05*e[n+2];var i=e.length;t[i-2]=.25*e[i-1]+.4*e[i-2]+.25*e[i-3]+.1*e[i-4],t[i-1]=.4*e[i-1]+.5*e[i-2]+.1*e[i-3]},ae.math.Scissors=function(){this.width=-1,this.height=-1,this.curPoint=null,this.searchGranBits=8,this.searchGran=1<<this.earchGranBits,this.pointsPerPost=500,this.greyscale=null,this.laplace=null,this.gradient=null,this.gradX=null,this.gradY=null,this.parents=null,this.working=!1,this.trained=!1,this.trainingPoints=null,this.edgeWidth=2,this.trainingLength=32,this.edgeGran=256,this.edgeTraining=null,this.gradPointsNeeded=32,this.gradGran=1024,this.gradTraining=null,this.insideGran=256,this.insideTraining=null,this.outsideGran=256,this.outsideTraining=null},ae.math.Scissors.prototype.getTrainingIdx=function(e,t){return Math.round((e-1)*t)},ae.math.Scissors.prototype.getTrainedEdge=function(e){return this.edgeTraining[this.getTrainingIdx(this.edgeGran,e)]},ae.math.Scissors.prototype.getTrainedGrad=function(e){return this.gradTraining[this.getTrainingIdx(this.gradGran,e)]},ae.math.Scissors.prototype.getTrainedInside=function(e){return this.insideTraining[this.getTrainingIdx(this.insideGran,e)]},ae.math.Scissors.prototype.getTrainedOutside=function(e){return this.outsideTraining[this.getTrainingIdx(this.outsideGran,e)]},ae.math.Scissors.prototype.setWorking=function(e){this.working=e},ae.math.Scissors.prototype.setDimensions=function(e,t){this.width=e,this.height=t},ae.math.Scissors.prototype.setData=function(e){if(-1===this.width||-1===this.height)throw new Error("Dimensions have not been set.");this.greyscale=ae.math.computeGreyscale(e,this.width,this.height),this.laplace=ae.math.computeLaplace(this.greyscale),this.gradient=ae.math.computeGradient(this.greyscale),this.gradX=ae.math.computeGradX(this.greyscale),this.gradY=ae.math.computeGradY(this.greyscale);var t=ae.math.computeSides(this.edgeWidth,this.gradX,this.gradY,this.greyscale);this.inside=t.inside,this.outside=t.outside,this.edgeTraining=[],this.gradTraining=[],this.insideTraining=[],this.outsideTraining=[]},ae.math.Scissors.prototype.findTrainingPoints=function(e){var t=[];if(null!==this.parents)for(var n=0;n<this.trainingLength&&e;n++)t.push(e),e=this.parents[e.y][e.x];return t},ae.math.Scissors.prototype.resetTraining=function(){this.trained=!1},ae.math.Scissors.prototype.doTraining=function(e){var t;this.trainingPoints=this.findTrainingPoints(e),this.trainingPoints.length<8||(t=[],this.calculateTraining(t,this.edgeGran,this.greyscale,this.edgeTraining),this.calculateTraining(t,this.gradGran,this.gradient,this.gradTraining),this.calculateTraining(t,this.insideGran,this.inside,this.insideTraining),this.calculateTraining(t,this.outsideGran,this.outside,this.outsideTraining),this.trainingPoints.length<this.gradPointsNeeded&&this.addInStaticGrad(this.trainingPoints.length,this.gradPointsNeeded),this.trained=!0)},ae.math.Scissors.prototype.calculateTraining=function(e,t,n,i){var r=0;for(e.length=t,r=0;r<t;r++)e[r]=0;for(var o=1,r=0;r<this.trainingPoints.length;r++){var a=this.trainingPoints[r],s=this.getTrainingIdx(t,n[a.y][a.x]);e[s]+=1,o=Math.max(o,e[s])}for(r=0;r<t;r++)e[r]=1-e[r]/o;ae.math.gaussianBlur(e,i)},ae.math.Scissors.prototype.addInStaticGrad=function(e,t){for(var n=0;n<this.gradGran;n++)this.gradTraining[n]=Math.min(this.gradTraining[n],1-n*(t-e)/(t*this.gradGran))},ae.math.Scissors.prototype.gradDirection=function(e,t,n,i){return ae.math.gradDirection(this.gradX,this.gradY,e,t,n,i)},ae.math.Scissors.prototype.dist=function(e,t,n,i){var r=this.gradient[i][n];e!==n&&t!==i||(r*=Math.SQRT1_2);var o=this.laplace[i][n],a=this.gradDirection(e,t,n,i);return this.trained?.3*this.getTrainedGrad(r)+.3*o+.1*(a+this.getTrainedEdge(this.greyscale[t][e])+this.getTrainedInside(this.inside[t][e])+this.getTrainedOutside(this.outside[t][e])):.43*r+.43*o+.11*a},ae.math.Scissors.prototype.adj=function(e){for(var t=[],n=Math.max(e.x-1,0),i=Math.max(e.y-1,0),r=Math.min(e.x+1,this.greyscale[0].length-1),o=Math.min(e.y+1,this.greyscale.length-1),a=0,s=i;s<=o;s++)for(var l=n;l<=r;l++)l===e.x&&s===e.y||(t[a++]=new ae.math.FastPoint2D(l,s));return t},ae.math.Scissors.prototype.setPoint=function(e){this.setWorking(!0),this.curPoint=e;var t=0,n=0;for(this.visited=[],n=0;n<this.height;n++)for(this.visited[n]=[],t=0;t<this.width;t++)this.visited[n][t]=!1;for(this.parents=[],n=0;n<this.height;n++)this.parents[n]=[];for(this.cost=[],n=0;n<this.height;n++)for(this.cost[n]=[],t=0;t<this.width;t++)this.cost[n][t]=Number.MAX_VALUE;this.pq=new ae.math.BucketQueue(this.searchGranBits,function(e){return Math.round(this.searchGran*this.costArr[e.y][e.x])}),this.pq.searchGran=this.searchGran,this.pq.costArr=this.cost,this.pq.push(e),this.cost[e.y][e.x]=0},ae.math.Scissors.prototype.doWork=function(){if(this.working){this.timeout=null;for(var e=0,t=[];!this.pq.isEmpty()&&e<this.pointsPerPost;){var n=this.pq.pop();t.push(n),t.push(this.parents[n.y][n.x]),this.visited[n.y][n.x]=!0;for(var i=this.adj(n),r=0;r<i.length;r++){var o=i[r],a=this.cost[n.y][n.x]+this.dist(n.x,n.y,o.x,o.y);a<this.cost[o.y][o.x]&&(this.cost[o.y][o.x]!==Number.MAX_VALUE&&this.pq.remove(o),this.cost[o.y][o.x]=a,this.parents[o.y][o.x]=n,this.pq.push(o))}e++}return t}},(ae=ae||{}).math=ae.math||{},ae.math.mulABC=function(e,t,n){return null!==t&&null!==n?e*t*n:null},ae.math.Circle=function(e,t){var n=Math.PI*t*t;this.getCenter=function(){return e},this.getRadius=function(){return t},this.getSurface=function(){return n},this.getWorldSurface=function(e,t){return ae.math.mulABC(n,e,t)}},ae.math.Ellipse=function(e,t,n){var i=Math.PI*t*n;this.getCenter=function(){return e},this.getA=function(){return t},this.getB=function(){return n},this.getSurface=function(){return i},this.getWorldSurface=function(e,t){return ae.math.mulABC(i,e,t)}},ae.math.Line=function(e,t){var o=t.getX()-e.getX(),a=t.getY()-e.getY(),n=Math.sqrt(o*o+a*a);this.getBegin=function(){return e},this.getEnd=function(){return t},this.getDeltaX=function(){return o},this.getDeltaY=function(){return a},this.getLength=function(){return n},this.getWorldLength=function(e,t){var n,i,r=null;return null!==e&&null!==t&&(n=o*e,i=a*t,r=Math.sqrt(n*n+i*i)),r},this.getMidpoint=function(){return new ae.math.Point2D(parseInt((e.getX()+t.getX())/2,10),parseInt((e.getY()+t.getY())/2,10))},this.getSlope=function(){return a/o},this.getIntercept=function(){return(t.getX()*e.getY()-e.getX()*t.getY())/o},this.getInclination=function(){return 180-180*Math.atan2(a,o)/Math.PI}},ae.math.getAngle=function(e,t){var n=e.getDeltaX(),i=e.getDeltaY(),r=t.getDeltaX(),o=t.getDeltaY(),a=n*r+i*o,s=n*o-i*r;return 360-(180-180*Math.atan2(s,a)/Math.PI)},ae.math.getPerpendicularLine=function(e,t,n){var i,r,o,a=0,s=0,l=0,u=0;return u=0!==e.getSlope()?(i=-1/e.getSlope(),r=t.getY()-i*t.getX(),o=n/(2*Math.sqrt(1+i*i)),s=i*(a=t.getX()-o)+r,i*(l=t.getX()+o)+r):(a=t.getX(),s=t.getY()-n/2,l=t.getX(),t.getY()+n/2),new ae.math.Line(new ae.math.Point2D(a,s),new ae.math.Point2D(l,u))},ae.math.Rectangle=function(e,t){var n,i;t.getX()<e.getX()&&(n=e.getX(),e=new ae.math.Point2D(t.getX(),e.getY()),t=new ae.math.Point2D(n,t.getY())),t.getY()<e.getY()&&(i=e.getY(),e=new ae.math.Point2D(e.getX(),t.getY()),t=new ae.math.Point2D(t.getX(),i));var r=Math.abs(t.getX()-e.getX())*Math.abs(t.getY()-e.getY());this.getBegin=function(){return e},this.getEnd=function(){return t},this.getRealWidth=function(){return t.getX()-e.getX()},this.getRealHeight=function(){return t.getY()-e.getY()},this.getWidth=function(){return Math.abs(this.getRealWidth())},this.getHeight=function(){return Math.abs(this.getRealHeight())},this.getSurface=function(){return r},this.getWorldSurface=function(e,t){return ae.math.mulABC(r,e,t)}},ae.math.ROI=function(){var t=[];this.getPoint=function(e){return t[e]},this.getLength=function(){return t.length},this.addPoint=function(e){t.push(e)},this.addPoints=function(e){t=t.concat(e)}},ae.math.Path=function(e,t){this.pointArray=e?e.slice():[],this.controlPointIndexArray=t?t.slice():[]},ae.math.Path.prototype.getPoint=function(e){return this.pointArray[e]},ae.math.Path.prototype.isControlPoint=function(e){var t=this.pointArray.indexOf(e);if(-1!==t)return-1!==this.controlPointIndexArray.indexOf(t);throw new Error("Error: isControlPoint called with not in list point.")},ae.math.Path.prototype.getLength=function(){return this.pointArray.length},ae.math.Path.prototype.addPoint=function(e){this.pointArray.push(e)},ae.math.Path.prototype.addControlPoint=function(e){var t=this.pointArray.indexOf(e);if(-1===t)throw new Error("Error: addControlPoint called with no point in list point.");this.controlPointIndexArray.push(t)},ae.math.Path.prototype.addPoints=function(e){this.pointArray=this.pointArray.concat(e)},ae.math.Path.prototype.appenPath=function(e){var t=this.pointArray.length;this.pointArray=this.pointArray.concat(e.pointArray);for(var n=[],i=0;i<e.controlPointIndexArray.length;++i)n[i]=e.controlPointIndexArray[i]+t;this.controlPointIndexArray=this.controlPointIndexArray.concat(n)},(ae=ae||{}).math=ae.math||{},ae.math.Stats=function(e,t,n,i){this.getMin=function(){return e},this.getMax=function(){return t},this.getMean=function(){return n},this.getStdDev=function(){return i}},ae.math.Stats.prototype.equals=function(e){return null!==e&&this.getMin()===e.getMin()&&this.getMax()===e.getMax()&&this.getMean()===e.getMean()&&this.getStdDev()===e.getStdDev()},ae.math.Stats.prototype.asObject=function(){return{min:this.getMin(),max:this.getMax(),mean:this.getMean(),stdDev:this.getStdDev()}},ae.math.getStats=function(e){for(var t,n,i,r,o=e[0],a=o,s=0,l=0,u=0;u<e.length;++u)(r=e[u])<o?o=r:a<r&&(a=r),s+=r,l+=r*r;return t=s/e.length,i=l/e.length-t*t,n=Math.sqrt(i),new ae.math.Stats(o,a,t,n)},ae.math.guid=function(){return Math.random().toString(36).substring(2,15)},(ae=ae||{}).math=ae.math||{},ae.math.Vector3D=function(e,t,n){this.getX=function(){return e},this.getY=function(){return t},this.getZ=function(){return n}},ae.math.Vector3D.prototype.equals=function(e){return null!==e&&this.getX()===e.getX()&&this.getY()===e.getY()&&this.getZ()===e.getZ()},ae.math.Vector3D.prototype.toString=function(){return"("+this.getX()+", "+this.getY()+", "+this.getZ()+")"},ae.math.Vector3D.prototype.norm=function(){return Math.sqrt(this.getX()*this.getX()+this.getY()*this.getY()+this.getZ()*this.getZ())},ae.math.Vector3D.prototype.crossProduct=function(e){return new ae.math.Vector3D(this.getY()*e.getZ()-e.getY()*this.getZ(),this.getZ()*e.getX()-e.getZ()*this.getX(),this.getX()*e.getY()-e.getX()*this.getY())},ae.math.Vector3D.prototype.dotProduct=function(e){return this.getX()*e.getX()+this.getY()*e.getY()+this.getZ()*e.getZ()},(ae=ae||{}).tool=ae.tool||{},ae.tool.draw=ae.tool.draw||{};T=T||{};ae.tool.draw.ArrowFactory=function(){this.getNPoints=function(){return 2},this.getTimeout=function(){return 0}},ae.tool.draw.ArrowFactory.prototype.create=function(e,t,n){var i=new ae.math.Line(e[0],e[1]),r=new T.Line({points:[i.getBegin().getX(),i.getBegin().getY(),i.getEnd().getX(),i.getEnd().getY()],stroke:t.getLineColour(),strokeWidth:t.getStrokeWidth(),strokeScaleEnabled:!1,name:"shape"}),o=ae.math.getPerpendicularLine(i,e[0],10),a=ae.math.getPerpendicularLine(i,e[1],10);r.hitFunc(function(e){e.beginPath(),e.moveTo(o.getBegin().getX(),o.getBegin().getY()),e.lineTo(o.getEnd().getX(),o.getEnd().getY()),e.lineTo(a.getEnd().getX(),a.getEnd().getY()),e.lineTo(a.getBegin().getX(),a.getBegin().getY()),e.closePath(),e.fillStrokeShape(this)});var s=new ae.math.Point2D(i.getBegin().getX(),i.getBegin().getY()-10),l=new ae.math.Line(i.getBegin(),s),u=ae.math.getAngle(i,l),c=u*Math.PI/180,S=5*t.getScaledStrokeWidth(),x=new T.RegularPolygon({x:i.getBegin().getX()+S*Math.sin(c),y:i.getBegin().getY()+S*Math.cos(c),sides:3,radius:S,rotation:-u,fill:t.getLineColour(),strokeWidth:t.getStrokeWidth(),strokeScaleEnabled:!1,name:"shape-triangle"}),d=new T.Text({fontSize:t.getScaledFontSize(),fontFamily:t.getFontFamily(),fill:t.getLineColour(),name:"text"});d.textExpr="",d.longText="",d.quant=null,d.setText(d.textExpr);var g=i.getBegin().getX()>i.getEnd().getX()?0:-1,m=i.getBegin().getY()>i.getEnd().getY()?-1:.5,p=new T.Label({x:i.getEnd().getX()+25*g,y:i.getEnd().getY()+15*m,name:"label"});p.add(d),p.add(new T.Tag);var h=new T.Group;return h.name("line-group"),h.add(r),h.add(x),h.add(p),h.visible(!0),h},ae.tool.draw.UpdateArrow=function(e,t){var n=e.getParent(),i=n.getChildren(function(e){return"shape"===e.name()})[0],r=n.getChildren(function(e){return"shape-triangle"===e.name()})[0],o=n.getChildren(function(e){return"label"===e.name()})[0],a=n.getChildren(function(e){return"begin"===e.id()})[0],s=n.getChildren(function(e){return"end"===e.id()})[0];switch(e.id()){case"begin":a.x(e.x()),a.y(e.y());break;case"end":s.x(e.x()),s.y(e.y())}var l=a.x()-i.x(),u=a.y()-i.y(),c=s.x()-i.x(),S=s.y()-i.y();i.points([l,u,c,S]);var x=new ae.math.Point2D(a.x(),a.y()),d=new ae.math.Point2D(s.x(),s.y()),g=new ae.math.Line(x,d),m=new ae.math.Point2D(l,u),p=new ae.math.Point2D(c,S),h=ae.math.getPerpendicularLine(g,m,10),f=ae.math.getPerpendicularLine(g,p,10);i.hitFunc(function(e){e.beginPath(),e.moveTo(h.getBegin().getX(),h.getBegin().getY()),e.lineTo(h.getEnd().getX(),h.getEnd().getY()),e.lineTo(f.getEnd().getX(),f.getEnd().getY()),e.lineTo(f.getBegin().getX(),f.getBegin().getY()),e.closePath(),e.fillStrokeShape(this)});var D=new ae.math.Point2D(g.getBegin().getX(),g.getBegin().getY()-10),y=new ae.math.Line(g.getBegin(),D),C=ae.math.getAngle(g,y),v=C*Math.PI/180;r.x(g.getBegin().getX()+r.radius()*Math.sin(v)),r.y(g.getBegin().getY()+r.radius()*Math.cos(v)),r.rotation(-C);var T=o.getText();T.quant=null,T.setText(T.textExpr);var L=g.getBegin().getX()>g.getEnd().getX()?0:-1,I=g.getBegin().getY()>g.getEnd().getY()?-1:.5,P={x:g.getEnd().getX()+25*L,y:g.getEnd().getY()+15*I};o.position(P)},(ae=ae||{}).tool=ae.tool||{};T=T||{};ae.tool.Draw=function(d){var i=this,r=!1,o=this.shapeFactoryList=null,n=null,a=null;this.shapeName=0;var s=[],l=null,g=new ae.tool.ShapeEditor(d);g.setDrawEventCallback(D);var m=new T.Group,e=new T.Line({points:[-10,-10,10,10],stroke:"red"}),t=new T.Line({points:[10,-10,-10,10],stroke:"red"});m.width(20),m.height(20),m.add(e),m.add(t),this.style=new ae.html.Style;var u={},p=null;function c(e){a&&a.destroy(),(a=o.create(e,i.style,d.getImage())).getChildren(ae.draw.isNodeNameShape)[0].listening(!1),p.listening(!1),p.add(a),p.draw()}function S(e){a&&a.destroy();var t=o.create(e,i.style,d.getImage());t.id(ae.math.guid()),d.getDrawController().getCurrentPosGroup().add(t),p.listening(!0),(n=new ae.tool.DrawGroupCommand(t,i.shapeName,p)).onExecute=D,n.onUndo=D,n.execute(),d.addToUndoStack(n),i.setShapeOn(t)}function x(){h(!0)}function h(e){p.listening(e);var t=d.getDrawController().getCurrentPosGroup().getChildren();e?(d.addToolCanvasListeners(d.getDrawStage().getContent()),t.forEach(function(e){i.setShapeOn(e)})):(d.removeToolCanvasListeners(d.getDrawStage().getContent()),t.forEach(function(e){var t;(t=e).off("mouseover"),t.off("mouseout"),t.draggable(!1),t.off("dragstart.draw"),t.off("dragmove.draw"),t.off("dragend.draw"),t.off("dblclick")})),p.draw()}function f(e){var t=d.getDrawStage();return{x:t.offset().x+e.x/t.scale().x,y:t.offset().y+e.y/t.scale().y}}function D(e){if(void 0!==u[e.type])for(var t=0;t<u[e.type].length;++t)u[e.type][t](e)}this.mousedown=function(e){var t,n;r||(i.style.setScale(d.getWindowScale()),(t=d.getDrawStage().getIntersection({x:e._xs,y:e._ys}))?(n=t.getParent().find(".shape")[0])&&n!==g.getShape()&&(g.disable(),g.setShape(n),g.setImage(d.getImage()),g.enable()):(g.disable(),g.setShape(null),g.setImage(null),r=!0,o=new i.shapeFactoryList[i.shapeName],s=[],l=new ae.math.Point2D(e._x,e._y),s.push(l)))},this.mousemove=function(e){r&&(0<Math.abs(e._x-l.getX())||0<Math.abs(e._y-l.getY()))&&(1!==s.length&&void 0!==s[s.length-1].tmp&&s.pop(),(l=new ae.math.Point2D(e._x,e._y)).tmp=!0,s.push(l),c(s))},this.mouseup=function(e){r&&(0!==s.length?s.length===o.getNPoints()?(S(s),r=!1):void 0!==s[s.length-1].tmp&&delete s[s.length-1].tmp:ae.logger.warn("Draw mouseup but no points..."))},this.dblclick=function(e){r&&(0!==s.length?(S(s),r=!1):ae.logger.warn("Draw dblclick but no points..."))},this.mouseout=function(e){i.mouseup(e)},this.touchstart=function(e){i.mousedown(e)},this.touchmove=function(e){r&&(0<Math.abs(e._x-l.getX())||0<Math.abs(e._y-l.getY()))&&(1!==s.length&&s.pop(),l=new ae.math.Point2D(e._x,e._y),s.push(l),s.length<o.getNPoints()&&(clearTimeout(this.timer),this.timer=setTimeout(function(){s.push(l)},o.getTimeout())),c(s))},this.touchend=function(e){i.dblclick(e)},this.keydown=function(e){var t,n,i;r||(e.context="dwv.tool.Draw",d.onKeydown(e)),46===e.keyCode&&g.isActive()&&(t=g.getShape().getParent(),n=ae.tool.GetShapeDisplayName(t.getChildren(ae.draw.isNodeNameShape)[0]),(i=new ae.tool.DeleteGroupCommand(t,n,p)).onExecute=D,i.onUndo=D,i.execute(),d.addToUndoStack(i)),27===e.keyCode&&(a&&a.destroy(),r=!1,s=[],p.draw())},this.activate=function(e){g.disable(),g.setShape(null),g.setImage(null),document.body.style.cursor="default",d.getDrawStage().listening(e),p=d.getDrawController().getDrawLayer(),h(e),e?(d.addEventListener("slicechange",x),d.addEventListener("framechange",x),this.style.setScale(d.getWindowScale()),this.setLineColour(this.style.getLineColour())):(d.removeEventListener("slicechange",x),d.removeEventListener("framechange",x))},this.setShapeOn=function(u){u.on("mouseover",function(){document.body.style.cursor="pointer"}),u.on("mouseout",function(){document.body.style.cursor="default"}),u.draggable(!0);var c={x:u.x(),y:u.y()},S=ae.tool.GetShapeDisplayName(u.getChildren(ae.draw.isNodeNameShape)[0]),x=null;u.on("dragstart.draw",function(){x=u.getChildren(ae.draw.isNodeNameShape)[0].stroke();var e=d.getDrawStage(),t=e.scale(),n={x:1/t.x,y:1/t.y};m.x(e.offset().x+e.width()/(2*t.x)),m.y(e.offset().y+e.height()/(15*t.y)),m.scale(n),p.add(m),g.setAnchorsActive(!1),p.draw()}),u.on("dragmove.draw",function(e){var t=f(ae.html.getEventOffset(e.evt)[0]),n=m.width()*m.scaleX()/2,i=m.height()*m.scaleY()/2;Math.abs(t.x-m.x())<n&&Math.abs(t.y-m.y())<i?(m.getChildren().each(function(e){e.stroke("orange")}),u.getChildren(ae.draw.canNodeChangeColour).forEach(function(e){e.stroke("red")})):(m.getChildren().each(function(e){e.stroke("red")}),u.getChildren(ae.draw.canNodeChangeColour).forEach(function(e){e.stroke(x)})),p.draw()}),u.on("dragend.draw",function(e){var t=this.x(),n=this.y();m.remove();var i,r,o,a=f(ae.html.getEventOffset(e.evt)[0]),s=m.width()*m.scaleX()/2,l=m.height()*m.scaleY()/2;Math.abs(a.x-m.x())<s&&Math.abs(a.y-m.y())<l?(this.x(c.x),this.y(c.y),g.disable(),g.setShape(null),g.setImage(null),u.getChildren(ae.draw.canNodeChangeColour).forEach(function(e){e.stroke(x)}),document.body.style.cursor="default",(i=new ae.tool.DeleteGroupCommand(this,S,p)).onExecute=D,i.onUndo=D,i.execute(),d.addToUndoStack(i)):(0===(r={x:t-c.x,y:n-c.y}).x&&0===r.y||((o=new ae.tool.MoveGroupCommand(this,S,r,p)).onExecute=D,o.onUndo=D,d.addToUndoStack(o),D({type:"drawmove",id:this.id()})),g.setAnchorsActive(!0),g.resetAnchors()),p.draw(),c={x:this.x(),y:this.y()}}),u.on("dblclick",function(){var e=this.findOne("Label");if(void 0===e)throw new Error("Could not find the shape label.");var t=e.getText(),n=ae.gui.prompt("Shape label",t.textExpr);null!==n&&n!==t.textExpr&&(t.textExpr=n,t.setText(ae.utils.replaceFlags(t.textExpr,t.quant)),D({type:"drawchange"}),p.draw())})},this.setOptions=function(e){this.shapeFactoryList=e},this.init=function(){},this.addEventListener=function(e,t){void 0===u[e]&&(u[e]=[]),u[e].push(t)},this.removeEventListener=function(e,t){if(void 0!==u[e])for(var n=0;n<u[e].length;++n)u[e][n]===t&&u[e].splice(n,1)},this.setLineColour=function(e){this.style.setLineColour(e)}},ae.tool.Draw.prototype.getHelpKeys=function(){return{title:"tool.Draw.name",brief:"tool.Draw.brief",mouse:{mouse_drag:"tool.Draw.mouse_drag"},touch:{touch_drag:"tool.Draw.touch_drag"}}},ae.tool.Draw.prototype.setShapeName=function(e){if(!this.hasShape(e))throw new Error("Unknown shape: '"+e+"'");this.shapeName=e},ae.tool.Draw.prototype.hasShape=function(e){return this.shapeFactoryList[e]},(ae=ae||{}).tool=ae.tool||{};T=T||{};ae.tool.GetShapeDisplayName=function(e){var t="shape";return e instanceof T.Line?t=4===e.points().length?"line":6===e.points().length?"protractor":"roi":e instanceof T.Rect?t="rectangle":e instanceof T.Ellipse&&(t="ellipse"),t},ae.tool.DrawGroupCommand=function(e,t,n,i){var r=void 0!==i,o=e.getParent();this.getName=function(){return"Draw-"+t},this.execute=function(){o.add(e),n.draw(),r||this.onExecute({type:"drawcreate",id:e.id()})},this.undo=function(){e.remove(),n.draw(),this.onUndo({type:"drawdelete",id:e.id()})}},ae.tool.DrawGroupCommand.prototype.onExecute=function(e){},ae.tool.DrawGroupCommand.prototype.onUndo=function(e){},ae.tool.MoveGroupCommand=function(t,e,n,i){this.getName=function(){return"Move-"+e},this.execute=function(){t.move(n),i.draw(),this.onExecute({type:"drawmove",id:t.id()})},this.undo=function(){var e={x:-n.x,y:-n.y};t.move(e),i.draw(),this.onUndo({type:"drawmove",id:t.id()})}},ae.tool.MoveGroupCommand.prototype.onExecute=function(e){},ae.tool.MoveGroupCommand.prototype.onUndo=function(e){},ae.tool.ChangeGroupCommand=function(e,t,n,i,r,o){this.getName=function(){return"Change-"+e},this.execute=function(){t(i,o),r.draw(),this.onExecute({type:"drawchange"})},this.undo=function(){t(n,o),r.draw(),this.onUndo({type:"drawchange"})}},ae.tool.ChangeGroupCommand.prototype.onExecute=function(e){},ae.tool.ChangeGroupCommand.prototype.onUndo=function(e){},ae.tool.DeleteGroupCommand=function(e,t,n){var i=e.getParent();this.getName=function(){return"Delete-"+t},this.execute=function(){e.remove(),n.draw(),this.onExecute({type:"drawdelete",id:e.id()})},this.undo=function(){i.add(e),n.draw(),this.onUndo({type:"drawcreate",id:e.id()})}},ae.tool.DeleteGroupCommand.prototype.onExecute=function(e){},ae.tool.DeleteGroupCommand.prototype.onUndo=function(e){},(ae=ae||{}).tool=ae.tool||{};T=T||{};ae.tool.ShapeEditor=function(o){var m=null,a=null,e=!1,p=null,s=null;function n(e){m&&m.getParent()&&m.getParent().find(".anchor").each(e)}function t(t){n(function(e){e.visible(t)})}function i(){n(function(e){e.remove()})}function r(){if(m&&m.getLayer()){var e,t,n,i,r,o,a,s=m.getParent();if(m instanceof T.Line){for(var l,u,c=m.points(),S="line-group"===s.name()||"ruler-group"===s.name()||"protractor-group"===s.name(),x="protractor-group"===s.name(),d="",g=0;g<c.length;g+=2)l=c[g]+m.x(),u=c[g+1]+m.y(),d=g,S&&(0===g?d="begin":g===c.length-2&&(d="end")),x&&2===g&&(d="mid"),h(s,l,u,d);"line-group"===s.name()?p=ae.tool.draw.UpdateArrow:"ruler-group"===s.name()?p=ae.tool.draw.UpdateRuler:"protractor-group"===s.name()?p=ae.tool.draw.UpdateProtractor:"roi-group"===s.name()?p=ae.tool.draw.UpdateRoi:"freeHand-group"===s.name()?p=ae.tool.draw.UpdateFreeHand:ae.logger.warn("Cannot update unknown line shape.")}else{m instanceof T.Rect?(p=ae.tool.draw.UpdateRect,e=m.x(),t=m.y(),n=m.width(),i=m.height(),h(s,e,t,"topLeft"),h(s,e+n,t,"topRight"),h(s,e+n,t+i,"bottomRight"),h(s,e,t+i,"bottomLeft")):m instanceof T.Ellipse&&(p=ae.tool.draw.UpdateEllipse,r=m.x(),o=m.y(),h(s,r-(a=m.radius()).x,o-a.y,"topLeft"),h(s,r+a.x,o-a.y,"topRight"),h(s,r+a.x,o+a.y,"bottomRight"),h(s,r-a.x,o+a.y,"bottomLeft"))}}}function h(e,t,n,i){var r=new T.Circle({x:t,y:n,stroke:"#999",fill:"rgba(100,100,100,0.7",strokeWidth:o.getStyle().getScaledStrokeWidth()/o.getScale(),radius:o.getStyle().scale(6)/o.getScale(),name:"anchor",id:i,dragOnTop:!1,draggable:!0,visible:!1});u(r),e.add(r)}function l(e){var t=e.getParent(),n=e.id(),i=e.x(),r=e.y(),o={getParent:function(){return t},id:function(){return n},x:function(){return i},y:function(){return r}};return o}function u(e){var i=null,r=ae.tool.GetShapeDisplayName(m);e.on("dragstart.edit",function(e){i=l(this),e.cancelBubble=!0}),e.on("dragmove.edit",function(e){p?p(this,a):ae.logger.warn("No update function!"),this.getLayer()?this.getLayer().draw():ae.logger.warn("No layer to draw the anchor!"),e.cancelBubble=!0}),e.on("dragend.edit",function(e){var t=l(this),n=new ae.tool.ChangeGroupCommand(r,p,i,t,this.getLayer(),a);n.onExecute=s,n.onUndo=s,n.execute(),o.addToUndoStack(n),i=t,e.cancelBubble=!0}),e.on("mousedown touchstart",function(){this.moveToTop()}),e.on("mouseover.edit",function(){this.stroke("#ddd"),this.getLayer()?this.getLayer().draw():ae.logger.warn("No layer to draw the anchor!")}),e.on("mouseout.edit",function(){this.stroke("#999"),this.getLayer()?this.getLayer().draw():ae.logger.warn("No layer to draw the anchor!")})}this.setShape=function(e){(m=e)&&(i(),r())},this.setImage=function(e){a=e},this.getShape=function(){return m},this.isActive=function(){return e},this.setDrawEventCallback=function(e){s=e},this.enable=function(){e=!0,m&&(t(!0),m.getLayer()&&m.getLayer().draw())},this.disable=function(){e=!1,m&&(t(!1),m.getLayer()&&m.getLayer().draw())},this.resetAnchors=function(){i(),r(),t(!0)},this.setAnchorsActive=function(e){n(e?function(e){u(e)}:function(e){var t;(t=e).off("dragstart.edit"),t.off("dragmove.edit"),t.off("dragend.edit"),t.off("mousedown touchstart"),t.off("mouseover.edit"),t.off("mouseout.edit")})}},(ae=ae||{}).tool=ae.tool||{},ae.tool.draw=ae.tool.draw||{};T=T||{};ae.tool.draw.EllipseFactory=function(){this.getNPoints=function(){return 2},this.getTimeout=function(){return 0}},ae.tool.draw.EllipseFactory.prototype.create=function(e,t,n){var i=Math.abs(e[0].getX()-e[1].getX()),r=Math.abs(e[0].getY()-e[1].getY()),o=new ae.math.Ellipse(e[0],i,r),a=new T.Ellipse({x:o.getCenter().getX(),y:o.getCenter().getY(),radius:{x:o.getA(),y:o.getB()},stroke:t.getLineColour(),strokeWidth:t.getStrokeWidth(),strokeScaleEnabled:!1,name:"shape"}),s=n.quantifyEllipse(o),l=new T.Text({fontSize:t.getScaledFontSize(),fontFamily:t.getFontFamily(),fill:t.getLineColour(),name:"text"});l.textExpr="{surface}",l.longText="",l.quant=s,l.setText(ae.utils.replaceFlags(l.textExpr,l.quant));var u=new T.Label({x:o.getCenter().getX(),y:o.getCenter().getY(),name:"label"});u.add(l),u.add(new T.Tag);var c=new T.Group;return c.name("ellipse-group"),c.add(a),c.add(u),c.visible(!0),c},ae.tool.draw.UpdateEllipse=function(e,t){var n=e.getParent(),i=n.getChildren(function(e){return"shape"===e.name()})[0],r=n.getChildren(function(e){return"label"===e.name()})[0],o=n.getChildren(function(e){return"topLeft"===e.id()})[0],a=n.getChildren(function(e){return"topRight"===e.id()})[0],s=n.getChildren(function(e){return"bottomRight"===e.id()})[0],l=n.getChildren(function(e){return"bottomLeft"===e.id()})[0];switch(e.id()){case"topLeft":o.x(e.x()),o.y(e.y()),a.y(e.y()),l.x(e.x());break;case"topRight":a.x(e.x()),a.y(e.y()),o.y(e.y()),s.x(e.x());break;case"bottomRight":s.x(e.x()),s.y(e.y()),l.y(e.y()),a.x(e.x());break;case"bottomLeft":l.x(e.x()),l.y(e.y()),s.y(e.y()),o.x(e.x());break;default:ae.logger.error("Unhandled anchor id: "+e.id())}var u=(a.x()-o.x())/2,c=(s.y()-a.y())/2,S={x:o.x()+u,y:a.y()+c};i.position(S);var x={x:Math.abs(u),y:Math.abs(c)};i.radius(x);var d=new ae.math.Ellipse(S,x.x,x.y),g=t.quantifyEllipse(d),m=r.getText();m.quant=g,m.setText(ae.utils.replaceFlags(m.textExpr,m.quant));var p={x:S.x,y:S.y};r.position(p)},(ae=ae||{}).tool=ae.tool||{},ae.tool.filter=ae.tool.filter||{},ae.tool.Filter=function(n){this.filterList=null,this.selectedFilter=0;var i=new ae.utils.ListenerHandler;function r(e){i.fireEvent(e)}this.activate=function(e){for(var t in this.filterList)e?(this.filterList[t].addEventListener("filterrun",r),this.filterList[t].addEventListener("filter-undo",r)):(this.filterList[t].removeEventListener("filterrun",r),this.filterList[t].removeEventListener("filter-undo",r))},this.setOptions=function(e){for(var t in this.filterList={},e)this.filterList[t]=new e[t](n)},this.init=function(){for(var e in this.filterList)this.filterList[e].init()},this.keydown=function(e){e.context="dwv.tool.Filter",n.onKeydown(e)},this.addEventListener=function(e,t){i.add(e,t)},this.removeEventListener=function(e,t){i.remove(e,t)}},ae.tool.Filter.prototype.getHelpKeys=function(){return{title:"tool.Filter.name",brief:"tool.Filter.brief"}},ae.tool.Filter.prototype.getSelectedFilter=function(){return this.selectedFilter},ae.tool.Filter.prototype.setSelectedFilter=function(e){if(!this.hasFilter(e))throw new Error("Unknown filter: '"+e+"'");this.selectedFilter&&this.selectedFilter.activate(!1),this.selectedFilter=this.filterList[e],this.selectedFilter.activate(!0)},ae.tool.Filter.prototype.getFilterList=function(){return this.filterList},ae.tool.Filter.prototype.hasFilter=function(e){return this.filterList[e]},ae.tool.filter.Threshold=function(n){var i=new ae.image.filter.Threshold,r=!0,o=new ae.utils.ListenerHandler;function a(e){o.fireEvent(e)}this.activate=function(e){e&&(r=!0)},this.init=function(){},this.run=function(e){i.setMin(e.min),i.setMax(e.max),r&&(i.setOriginalImage(n.getImage()),r=!1);var t=new ae.tool.RunFilterCommand(i,n);t.onExecute=a,t.onUndo=a,t.execute(),n.addToUndoStack(t)},this.addEventListener=function(e,t){o.add(e,t)},this.removeEventListener=function(e,t){o.remove(e,t)}},ae.tool.filter.Sharpen=function(i){var n=new ae.utils.ListenerHandler;function r(e){n.fireEvent(e)}this.activate=function(e){},this.init=function(){},this.run=function(e){var t=new ae.image.filter.Sharpen;t.setOriginalImage(i.getImage());var n=new ae.tool.RunFilterCommand(t,i);n.onExecute=r,n.onUndo=r,n.execute(),i.addToUndoStack(n)},this.addEventListener=function(e,t){n.add(e,t)},this.removeEventListener=function(e,t){n.remove(e,t)}},ae.tool.filter.Sobel=function(i){var n=new ae.utils.ListenerHandler;function r(e){n.fireEvent(e)}this.activate=function(e){},this.init=function(){},ae.tool.filter.Sobel.prototype.run=function(e){var t=new ae.image.filter.Sobel;t.setOriginalImage(i.getImage());var n=new ae.tool.RunFilterCommand(t,i);n.onExecute=r,n.onUndo=r,n.execute(),i.addToUndoStack(n)},this.addEventListener=function(e,t){n.add(e,t)},this.removeEventListener=function(e,t){n.remove(e,t)}},ae.tool.RunFilterCommand=function(t,n){this.getName=function(){return"Filter-"+t.getName()},this.execute=function(){n.setImage(t.update()),n.render();var e={type:"filterrun",id:this.getName()};this.onExecute(e)},this.undo=function(){n.setImage(t.getOriginalImage()),n.render();var e={type:"filterundo",id:this.getName()};this.onUndo(e)}},ae.tool.RunFilterCommand.prototype.onExecute=function(e){},ae.tool.RunFilterCommand.prototype.onUndo=function(e){},(ae=ae||{}).tool=ae.tool||{};h=h||{};ae.tool.Floodfill=function(l){var s,u=null,c=null,o=this;this.started=!1;var S,e,i=null,x=null,a=null,d=[],t=!1;this.style=new ae.html.Style;var n=new ae.utils.ListenerHandler;this.setExtend=function(e){t=e},this.getExtend=function(){return t};function r(e){return{x:e._x,y:e._y}}function g(e,t,n){d=[];var i={data:u.data,width:u.width,height:u.height,bytes:4};s=h.floodFill(i,e.x,e.y,t),s=h.gaussBlurOnlyBorder(s,5);var r=h.traceContours(s);if(0<(r=h.simplifyContours(r,0,2e3)).length&&r[0].points[0].x){if(n)return r[0].points;for(var o=0,a=r[0].points.length;o<a;o++)d.push(new ae.math.Point2D(r[0].points[o].x,r[0].points[o].y));return d}return!1}function m(e,t){if(a=g(e,t)){var n=new ae.tool.draw.RoiFactory;return(x=n.create(a,o.style)).id(ae.math.guid()),l.getDrawController().getCurrentPosGroup().add(x),(i=new ae.tool.DrawGroupCommand(x,"floodfill",l.getDrawController().getDrawLayer())).onExecute=p,i.onUndo=p,i.execute(),l.addToUndoStack(i),1}}function p(e){n.fireEvent(e)}this.extend=function(e,t){if(!S)throw"'initialpoint' not found. User must click before use extend!";x&&x.destroy();for(var n=l.getViewController().getCurrentPosition(),i=c||10,r=n.k,o=t||l.getImage().getGeometry().getSize().getNumberOfSlices();r<o&&m(S,i);r++)l.getViewController().incrementSliceNb();l.getViewController().setCurrentPosition(n);for(var a=n.k,s=e||0;s<a&&m(S,i);a--)l.getViewController().decrementSliceNb();l.getViewController().setCurrentPosition(n)},this.modifyThreshold=function(i,r){if(r||!x)throw"No shape found";r=x.getChildren(function(e){return"shape"===e.name()})[0],clearTimeout(e),e=setTimeout(function(){if(!(a=g(S,i,!0)))return!1;for(var e=[],t=0,n=a.length;t<n;++t)e.push(a[t].x),e.push(a[t].y);r.setPoints(e),r.getLayer().draw(),o.onThresholdChange(i)},100)},this.onThresholdChange=function(e){},this.mousedown=function(e){(u=l.getImageData())?(o.started=!0,S=r(e),m(S,10),o.onThresholdChange(10)):ae.logger.error("No image found")},this.mousemove=function(e){var t;o.started&&(t=r(e),c=(c=Math.round(Math.sqrt(Math.pow(S.x-t.x,2)+Math.pow(S.y-t.y,2))/2))<10?10:c-10,o.modifyThreshold(c))},this.mouseup=function(e){o.started=!1,t&&o.extend()},this.mouseout=function(e){o.mouseup(e)},this.touchstart=function(e){o.mousedown(e)},this.touchmove=function(e){o.mousemove(e)},this.touchend=function(e){o.mouseup(e)},this.keydown=function(e){e.context="dwv.tool.Floodfill",l.onKeydown(e)},this.activate=function(e){e&&(this.style.setScale(l.getWindowScale()),this.setLineColour(this.style.getLineColour()))},this.init=function(){},this.addEventListener=function(e,t){n.add(e,t)},this.removeEventListener=function(e,t){n.remove(e,t)}},ae.tool.Floodfill.prototype.getHelpKeys=function(){return{title:"tool.Floodfill.name",brief:"tool.Floodfill.brief",mouse:{click:"tool.Floodfill.click"},touch:{tap:"tool.Floodfill.tap"}}},ae.tool.Floodfill.prototype.setLineColour=function(e){this.style.setLineColour(e)},(ae=ae||{}).tool=ae.tool||{},ae.tool.draw=ae.tool.draw||{};T=T||{};ae.tool.draw.FreeHandFactory=function(){this.getNPoints=function(){return 1e3},this.getTimeout=function(){return 25}},ae.tool.draw.FreeHandFactory.prototype.create=function(e,t,n){for(var i=[],r=0;r<e.length;++r)i.push(e[r].getX()),i.push(e[r].getY());var o=new T.Line({points:i,stroke:t.getLineColour(),strokeWidth:t.getStrokeWidth(),strokeScaleEnabled:!1,name:"shape",tension:.5}),a=new T.Text({fontSize:t.getScaledFontSize(),fontFamily:t.getFontFamily(),fill:t.getLineColour(),name:"text"});a.textExpr="",a.longText="",a.quant=null,a.setText(a.textExpr);var s=new T.Label({x:e[0].getX(),y:e[0].getY()+10,name:"label"});s.add(a),s.add(new T.Tag);var l=new T.Group;return l.name("freeHand-group"),l.add(o),l.add(s),l.visible(!0),l},ae.tool.draw.UpdateFreeHand=function(t,e){var n=t.getParent(),i=n.getChildren(function(e){return"shape"===e.name()})[0],r=n.getChildren(function(e){return"label"===e.name()})[0],o=n.getChildren(function(e){return e.id()===t.id()})[0];o.x(t.x()),o.y(t.y());var a=i.points();a[t.id()]=t.x()-i.x(),a[t.id()+1]=t.y()-i.y(),i.points(a.concat());var s=r.getText();s.quant=null,s.setText(ae.utils.replaceFlags(s.textExpr,s.quant));var l={x:a[0]+i.x(),y:a[1]+i.y()+10};r.position(l)},(ae=ae||{}).tool=ae.tool||{},ae.tool.Livewire=function(l){var u=this;this.started=!1;var c=null,S=null;this.style=new ae.html.Style,this.style.setScale(l.getWindowScale());var x=new ae.math.Path,d=new ae.math.Path,g=[],n=new ae.utils.ListenerHandler;function r(){for(var e=l.getImage().getGeometry().getSize().getNumberOfRows(),t=0;t<e;++t)g[t]=[]}var m=new ae.math.Scissors;function o(e){n.fireEvent(e)}this.mousedown=function(e){var t,n,i;u.started?Math.abs(e._x-u.x0)<5&&Math.abs(e._y-u.y0)<5?(u.mousemove(e),c.onExecute=o,c.onUndo=o,ae.logger.debug("Done."),l.addToUndoStack(c),u.started=!1):(x=d,r(),t=new ae.math.FastPoint2D(e._x,e._y),m.doTraining(t),x.addControlPoint(d.getPoint(0))):(u.started=!0,u.x0=e._x,u.y0=e._y,x=new ae.math.Path,d=new ae.math.Path,r(),n=new ae.math.FastPoint2D(e._x,e._y),m.doTraining(n),i=new ae.math.Point2D(e._x,e._y),x.addPoint(i),x.addControlPoint(i))},this.mousemove=function(e){if(u.started){var t=new ae.math.FastPoint2D(e._x,e._y);m.setPoint(t);for(var n,i=!1;!g[t.y][t.x]&&!i;)if(ae.logger.debug("Getting ready..."),0===(n=m.doWork()).length)i=!0;else for(var r=0;r<n.length-1;r+=2){var o=n[r],a=n[r+1];g[o.y][o.x]=a}for(ae.logger.debug("Ready!"),d=new ae.math.Path,i=!1;t&&!i;)d.addPoint(new ae.math.Point2D(t.x,t.y)),g[t.y]&&g[t.y][t.x]?t=g[t.y][t.x]:i=!0;d.appenPath(x),S&&S.destroy();var s=new ae.tool.draw.RoiFactory;(S=s.create(d.pointArray,u.style)).id(ae.math.guid()),l.getDrawController().getCurrentPosGroup().add(S),(c=new ae.tool.DrawGroupCommand(S,"livewire",l.getDrawController().getDrawLayer())).execute()}},this.mouseup=function(e){},this.mouseout=function(e){u.mouseup(e)},this.dblclick=function(e){ae.logger.debug("dblclick"),l.addToUndoStack(c),u.started=!1},this.touchstart=function(e){u.mousedown(e)},this.touchmove=function(e){u.mousemove(e)},this.touchend=function(e){u.mouseup(e)},this.keydown=function(e){e.context="dwv.tool.Livewire",l.onKeydown(e)},this.activate=function(e){var t;e&&(t=l.getImage().getGeometry().getSize(),m.setDimensions(t.getNumberOfColumns(),t.getNumberOfRows()),m.setData(l.getImageData().data),this.style.setScale(l.getWindowScale()),this.setLineColour(this.style.getLineColour()))},this.init=function(){},this.addEventListener=function(e,t){n.add(e,t)},this.removeEventListener=function(e,t){n.remove(e,t)}},ae.tool.Livewire.prototype.getHelpKeys=function(){return{title:"tool.Livewire.name",brief:"tool.Livewire.brief"}},ae.tool.Livewire.prototype.setLineColour=function(e){this.style.setLineColour(e)},(ae=ae||{}).tool=ae.tool||{},ae.tool.draw=ae.tool.draw||{};T=T||{};ae.tool.draw.ProtractorFactory=function(){this.getNPoints=function(){return 3},this.getTimeout=function(){return 500}},ae.tool.draw.ProtractorFactory.prototype.create=function(t,e,n){for(var i=new ae.math.Line(t[0],t[1]),r=[],o=0;o<t.length;++o)r.push(t[o].getX()),r.push(t[o].getY());var a,s,l,u,c,S,x,d,g,m,p=new T.Line({points:r,stroke:e.getLineColour(),strokeWidth:e.getStrokeWidth(),strokeScaleEnabled:!1,name:"shape"}),h=new T.Group;return h.name("protractor-group"),h.add(p),h.visible(!0),3===t.length&&(a=new ae.math.Line(t[1],t[2]),p.hitFunc(function(e){e.beginPath(),e.moveTo(t[0].getX(),t[0].getY()),e.lineTo(t[1].getX(),t[1].getY()),e.lineTo(t[2].getX(),t[2].getY()),e.closePath(),e.fillStrokeShape(this)}),s=ae.math.getAngle(i,a),l=i.getInclination(),180<s&&(l+=s=360-s),u={angle:{value:s,unit:ae.i18n("unit.degree")}},(c=new T.Text({fontSize:e.getScaledFontSize(),fontFamily:e.getFontFamily(),fill:e.getLineColour(),name:"text"})).textExpr="{angle}",c.longText="",c.quant=u,c.setText(ae.utils.replaceFlags(c.textExpr,c.quant)),S=(i.getMidpoint().getX()+a.getMidpoint().getX())/2,x=(i.getMidpoint().getY()+a.getMidpoint().getY())/2,(d=new T.Label({x:S,y:x-15,name:"label"})).add(c),d.add(new T.Tag),g=33*Math.min(i.getLength(),a.getLength())/100,m=new T.Arc({innerRadius:g,outerRadius:g,stroke:e.getLineColour(),strokeWidth:e.getStrokeWidth(),strokeScaleEnabled:!1,angle:s,rotation:-l,x:t[1].getX(),y:t[1].getY(),name:"shape-arc"}),h.add(d),h.add(m)),h},ae.tool.draw.UpdateProtractor=function(e,t){var n=e.getParent(),i=n.getChildren(function(e){return"shape"===e.name()})[0],r=n.getChildren(function(e){return"label"===e.name()})[0],o=n.getChildren(function(e){return"shape-arc"===e.name()})[0],a=n.getChildren(function(e){return"begin"===e.id()})[0],s=n.getChildren(function(e){return"mid"===e.id()})[0],l=n.getChildren(function(e){return"end"===e.id()})[0];switch(e.id()){case"begin":a.x(e.x()),a.y(e.y());break;case"mid":s.x(e.x()),s.y(e.y());break;case"end":l.x(e.x()),l.y(e.y())}var u=a.x()-i.x(),c=a.y()-i.y(),S=s.x()-i.x(),x=s.y()-i.y(),d=l.x()-i.x(),g=l.y()-i.y();i.points([u,c,S,x,d,g]),i.hitFunc(function(e){e.beginPath(),e.moveTo(u,c),e.lineTo(S,x),e.lineTo(d,g),e.closePath(),e.fillStrokeShape(this)});var m=new ae.math.Point2D(a.x(),a.y()),p=new ae.math.Point2D(s.x(),s.y()),h=new ae.math.Point2D(l.x(),l.y()),f=new ae.math.Line(m,p),D=new ae.math.Line(p,h),y=ae.math.getAngle(f,D),C=f.getInclination();180<y&&(C+=y=360-y);var v={angle:{value:y,unit:ae.i18n("unit.degree")}},T=r.getText();T.quant=v,T.setText(ae.utils.replaceFlags(T.textExpr,T.quant));var L={x:(f.getMidpoint().getX()+D.getMidpoint().getX())/2,y:(f.getMidpoint().getY()+D.getMidpoint().getY())/2-15};r.position(L);var I=33*Math.min(f.getLength(),D.getLength())/100;o.innerRadius(I),o.outerRadius(I),o.angle(y),o.rotation(-C);var P={x:s.x(),y:s.y()};o.position(P)},(ae=ae||{}).tool=ae.tool||{},ae.tool.draw=ae.tool.draw||{};T=T||{};ae.tool.draw.RectangleFactory=function(){this.getNPoints=function(){return 2},this.getTimeout=function(){return 0}},ae.tool.draw.RectangleFactory.prototype.create=function(e,t,n){var i=new ae.math.Rectangle(e[0],e[1]),r=new T.Rect({x:i.getBegin().getX(),y:i.getBegin().getY(),width:i.getWidth(),height:i.getHeight(),stroke:t.getLineColour(),strokeWidth:t.getStrokeWidth(),strokeScaleEnabled:!1,name:"shape"}),o=n.quantifyRect(i),a=new T.Text({fontSize:t.getScaledFontSize(),fontFamily:t.getFontFamily(),fill:t.getLineColour(),name:"text"});a.textExpr="{surface}",a.longText="",a.quant=o,a.setText(ae.utils.replaceFlags(a.textExpr,a.quant));var s=new T.Label({x:i.getBegin().getX(),y:i.getEnd().getY()+10,name:"label"});s.add(a),s.add(new T.Tag);var l=new T.Group;return l.name("rectangle-group"),l.add(r),l.add(s),l.visible(!0),l},ae.tool.draw.UpdateRect=function(e,t){var n=e.getParent(),i=n.getChildren(function(e){return"shape"===e.name()})[0],r=n.getChildren(function(e){return"label"===e.name()})[0],o=n.getChildren(function(e){return"topLeft"===e.id()})[0],a=n.getChildren(function(e){return"topRight"===e.id()})[0],s=n.getChildren(function(e){return"bottomRight"===e.id()})[0],l=n.getChildren(function(e){return"bottomLeft"===e.id()})[0];switch(e.id()){case"topLeft":o.x(e.x()),o.y(e.y()),a.y(e.y()),l.x(e.x());break;case"topRight":a.x(e.x()),a.y(e.y()),o.y(e.y()),s.x(e.x());break;case"bottomRight":s.x(e.x()),s.y(e.y()),l.y(e.y()),a.x(e.x());break;case"bottomLeft":l.x(e.x()),l.y(e.y()),s.y(e.y()),o.x(e.x());break;default:ae.logger.error("Unhandled anchor id: "+e.id())}i.position(o.position());var u=a.x()-o.x(),c=l.y()-o.y();u&&c&&i.size({width:u,height:c});var S=new ae.math.Point2D(o.x(),o.y()),x=new ae.math.Point2D(s.x(),s.y()),d=new ae.math.Rectangle(S,x),g=t.quantifyRect(d),m=r.getText();m.quant=g,m.setText(ae.utils.replaceFlags(m.textExpr,m.quant));var p={x:d.getBegin().getX(),y:d.getEnd().getY()+10};r.position(p)},(ae=ae||{}).tool=ae.tool||{},ae.tool.draw=ae.tool.draw||{};T=T||{};ae.tool.draw.RoiFactory=function(){this.getNPoints=function(){return 50},this.getTimeout=function(){return 100}},ae.tool.draw.RoiFactory.prototype.create=function(e,t,n){var i=new ae.math.ROI;i.addPoints(e);for(var r=[],o=0;o<i.getLength();++o)r.push(i.getPoint(o).getX()),r.push(i.getPoint(o).getY());var a=new T.Line({points:r,stroke:t.getLineColour(),strokeWidth:t.getStrokeWidth(),strokeScaleEnabled:!1,name:"shape",closed:!0}),s=new T.Text({fontSize:t.getScaledFontSize(),fontFamily:t.getFontFamily(),fill:t.getLineColour(),name:"text"});s.textExpr="",s.longText="",s.quant=null,s.setText(ae.utils.replaceFlags(s.textExpr,s.quant));var l=new T.Label({x:i.getPoint(0).getX(),y:i.getPoint(0).getY()+10,name:"label"});l.add(s),l.add(new T.Tag);var u=new T.Group;return u.name("roi-group"),u.add(a),u.add(l),u.visible(!0),u},ae.tool.draw.UpdateRoi=function(t,e){var n=t.getParent(),i=n.getChildren(function(e){return"shape"===e.name()})[0],r=n.getChildren(function(e){return"label"===e.name()})[0],o=n.getChildren(function(e){return e.id()===t.id()})[0];o.x(t.x()),o.y(t.y());var a=i.points();a[t.id()]=t.x()-i.x(),a[t.id()+1]=t.y()-i.y(),i.points(a);var s=r.getText();s.quant=null,s.setText(ae.utils.replaceFlags(s.textExpr,s.quant));var l={x:a[0]+i.x(),y:a[1]+i.y()+10};r.position(l)},(ae=ae||{}).tool=ae.tool||{},ae.tool.draw=ae.tool.draw||{};T=T||{};ae.tool.draw.RulerFactory=function(){this.getNPoints=function(){return 2},this.getTimeout=function(){return 0}},ae.tool.draw.RulerFactory.prototype.create=function(e,t,n){var i=new ae.math.Line(e[0],e[1]),r=new T.Line({points:[i.getBegin().getX(),i.getBegin().getY(),i.getEnd().getX(),i.getEnd().getY()],stroke:t.getLineColour(),strokeWidth:t.getStrokeWidth(),strokeScaleEnabled:!1,name:"shape"}),o=10*t.getScaledStrokeWidth(),a=ae.math.getPerpendicularLine(i,e[0],o),s=new T.Line({points:[a.getBegin().getX(),a.getBegin().getY(),a.getEnd().getX(),a.getEnd().getY()],stroke:t.getLineColour(),strokeWidth:t.getStrokeWidth(),strokeScaleEnabled:!1,name:"shape-tick0"}),l=ae.math.getPerpendicularLine(i,e[1],o),u=new T.Line({points:[l.getBegin().getX(),l.getBegin().getY(),l.getEnd().getX(),l.getEnd().getY()],stroke:t.getLineColour(),strokeWidth:t.getStrokeWidth(),strokeScaleEnabled:!1,name:"shape-tick1"});r.hitFunc(function(e){e.beginPath(),e.moveTo(a.getBegin().getX(),a.getBegin().getY()),e.lineTo(a.getEnd().getX(),a.getEnd().getY()),e.lineTo(l.getEnd().getX(),l.getEnd().getY()),e.lineTo(l.getBegin().getX(),l.getBegin().getY()),e.closePath(),e.fillStrokeShape(this)});var c=n.quantifyLine(i),S=new T.Text({fontSize:t.getScaledFontSize(),fontFamily:t.getFontFamily(),fill:t.getLineColour(),name:"text"});S.textExpr="{length}",S.longText="",S.quant=c,S.setText(ae.utils.replaceFlags(S.textExpr,S.quant));var x=i.getBegin().getX()>i.getEnd().getX()?0:-1,d=i.getBegin().getY()>i.getEnd().getY()?-1:.5,g=new T.Label({x:i.getEnd().getX()+25*x,y:i.getEnd().getY()+15*d,name:"label"});g.add(S),g.add(new T.Tag);var m=new T.Group;return m.name("ruler-group"),m.add(r),m.add(s),m.add(u),m.add(g),m.visible(!0),m},ae.tool.draw.UpdateRuler=function(e,t){var n=e.getParent(),i=n.getChildren(function(e){return"shape"===e.name()})[0],r=n.getChildren(function(e){return"shape-tick0"===e.name()})[0],o=n.getChildren(function(e){return"shape-tick1"===e.name()})[0],a=n.getChildren(function(e){return"label"===e.name()})[0],s=n.getChildren(function(e){return"begin"===e.id()})[0],l=n.getChildren(function(e){return"end"===e.id()})[0];switch(e.id()){case"begin":s.x(e.x()),s.y(e.y());break;case"end":l.x(e.x()),l.y(e.y())}var u=s.x()-i.x(),c=s.y()-i.y(),S=l.x()-i.x(),x=l.y()-i.y();i.points([u,c,S,x]);var d=new ae.math.Point2D(s.x(),s.y()),g=new ae.math.Point2D(l.x(),l.y()),m=new ae.math.Line(d,g),p=new ae.math.Point2D(u,c),h=new ae.math.Point2D(S,x),f=ae.math.getPerpendicularLine(m,p,10);r.points([f.getBegin().getX(),f.getBegin().getY(),f.getEnd().getX(),f.getEnd().getY()]);var D=ae.math.getPerpendicularLine(m,h,10);o.points([D.getBegin().getX(),D.getBegin().getY(),D.getEnd().getX(),D.getEnd().getY()]),i.hitFunc(function(e){e.beginPath(),e.moveTo(f.getBegin().getX(),f.getBegin().getY()),e.lineTo(f.getEnd().getX(),f.getEnd().getY()),e.lineTo(D.getEnd().getX(),D.getEnd().getY()),e.lineTo(D.getBegin().getX(),D.getBegin().getY()),e.closePath(),e.fillStrokeShape(this)});var y=t.quantifyLine(m),C=a.getText();C.quant=y,C.setText(ae.utils.replaceFlags(C.textExpr,C.quant));var v=m.getBegin().getX()>m.getEnd().getX()?0:-1,T=m.getBegin().getY()>m.getEnd().getY()?-1:.5,L={x:m.getEnd().getX()+25*v,y:m.getEnd().getY()+15*T};a.position(L)},(ae=ae||{}).tool=ae.tool||{},ae.tool.Scroll=function(o){var a=this;this.started=!1;var t=null;function n(e){var t=1!==o.getImage().getGeometry().getSize().getNumberOfSlices(),n=1!==o.getImage().getNumberOfFrames();e?t?o.getViewController().incrementSliceNb():n&&o.getViewController().incrementFrameNb():t?o.getViewController().decrementSliceNb():n&&o.getViewController().decrementFrameNb()}this.mousedown=function(e){o.getViewController().isPlaying()&&o.getViewController().stop(),a.started=!0,a.x0=e._x,a.y0=e._y},this.mousemove=function(e){var t,n,i,r;a.started&&(t=e._y-a.y0,(n=15<Math.abs(t))&&(0<t?o.getViewController().decrementSliceNb():o.getViewController().incrementSliceNb()),i=e._x-a.x0,(r=15<Math.abs(i))&&(0<i?o.getViewController().incrementFrameNb():o.getViewController().decrementFrameNb()),r&&(a.x0=e._x),n&&(a.y0=e._y))},this.mouseup=function(e){a.started&&(a.started=!1)},this.mouseout=function(e){a.mouseup(e)},this.touchstart=function(e){t=setTimeout(a.dblclick,500),a.mousedown(e)},this.touchmove=function(e){null!==t&&(clearTimeout(t),t=null),a.mousemove(e)},this.touchend=function(e){null!==t&&(clearTimeout(t),t=null),a.mouseup(e)},this.DOMMouseScroll=function(e){e.detail<0?n(!0):n(!1)},this.mousewheel=function(e){0<e.wheelDelta?n(!0):n(!1)},this.keydown=function(e){e.context="dwv.tool.Scroll",o.onKeydown(e)},this.dblclick=function(e){o.getViewController().play()},this.activate=function(e){},this.init=function(){}},ae.tool.Scroll.prototype.getHelpKeys=function(){return{title:"tool.Scroll.name",brief:"tool.Scroll.brief",mouse:{mouse_drag:"tool.Scroll.mouse_drag",double_click:"tool.Scroll.double_click"},touch:{touch_drag:"tool.Scroll.touch_drag",tap_and_hold:"tool.Scroll.tap_and_hold"}}},(ae=ae||{}).tool=ae.tool||{},ae.tool.UndoStack=function(){var t=[];this.getStack=function(){return t};var n=0,i=new ae.utils.ListenerHandler;function r(e){i.fireEvent(e)}this.add=function(e){(t=t.slice(0,n)).push(e),++n,r({type:"undoadd",command:e.getName()})},this.undo=function(){0<n&&(t[--n].undo(),r({type:"undo",command:t[n].getName()}))},this.redo=function(){n<t.length&&(t[n].execute(),r({type:"redo",command:t[n].getName()}),++n)},this.addEventListener=function(e,t){i.add(e,t)},this.removeEventListener=function(e,t){i.remove(e,t)}},(ae=ae||{}).tool=ae.tool||{},ae.tool.WindowLevel=function(o){var a=this;this.started=!1,this.mousedown=function(e){a.started=!0,a.x0=e._x,a.y0=e._y,o.getViewController().setCurrentPosition2D(e._x,e._y)},this.mousemove=function(e){var t,n,i,r;a.started&&(t=e._x-a.x0,n=a.y0-e._y,i=parseInt(o.getViewController().getWindowLevel().center,10)+n,r=parseInt(o.getViewController().getWindowLevel().width,10)+t,o.getViewController().addWindowLevelPresets({manual:{wl:new ae.image.WindowLevel(i,r),name:"manual"}}),o.getViewController().setWindowLevelPreset("manual"),a.x0=e._x,a.y0=e._y)},this.mouseup=function(e){a.started&&(a.started=!1)},this.mouseout=function(e){a.mouseup(e)},this.touchstart=function(e){a.mousedown(e)},this.touchmove=function(e){a.mousemove(e)},this.touchend=function(e){a.mouseup(e)},this.dblclick=function(e){o.getViewController().setWindowLevel(parseInt(o.getImage().getRescaledValue(e._x,e._y,o.getViewController().getCurrentPosition().k),10),parseInt(o.getViewController().getWindowLevel().width,10))},this.keydown=function(e){e.context="dwv.tool.WindowLevel",o.onKeydown(e)},this.activate=function(e){},this.init=function(){}},ae.tool.WindowLevel.prototype.getHelpKeys=function(){return{title:"tool.WindowLevel.name",brief:"tool.WindowLevel.brief",mouse:{mouse_drag:"tool.WindowLevel.mouse_drag",double_click:"tool.WindowLevel.double_click"},touch:{touch_drag:"tool.WindowLevel.touch_drag"}}},(ae=ae||{}).tool=ae.tool||{},ae.tool.ZoomAndPan=function(a){var s=this;this.started=!1,this.mousedown=function(e){s.started=!0,s.x0=e._xs,s.y0=e._ys},this.twotouchdown=function(e){s.started=!0,s.x0=e._x,s.y0=e._y;var t=new ae.math.Point2D(e._x,e._y),n=new ae.math.Point2D(e._x1,e._y1);s.line0=new ae.math.Line(t,n),s.midPoint=s.line0.getMidpoint()},this.mousemove=function(e){var t,n;s.started&&(t=e._xs-s.x0,n=e._ys-s.y0,a.stepTranslate(t,n),s.x0=e._xs,s.y0=e._ys)},this.twotouchmove=function(e){if(s.started){var t=new ae.math.Point2D(e._x,e._y),n=new ae.math.Point2D(e._x1,e._y1),i=new ae.math.Line(t,n).getLength()/s.line0.getLength();if(1==i){var r=e._y-s.y0;if(Math.abs(r)<15)return;0<r?a.getViewController().incrementSliceNb():a.getViewController().decrementSliceNb()}else{var o=(i-1)/2;Math.abs(o)%.1<=.05&&a.stepZoom(o,e._xs,e._ys)}}},this.mouseup=function(e){s.started&&(s.started=!1)},this.mouseout=function(e){s.mouseup(e)},this.touchstart=function(e){var t=e.targetTouches;1===t.length?s.mousedown(e):2===t.length&&s.twotouchdown(e)},this.touchmove=function(e){var t=e.targetTouches;1===t.length?s.mousemove(e):2===t.length&&s.twotouchmove(e)},this.touchend=function(e){s.mouseup(e)},this.DOMMouseScroll=function(e){var t=-e.detail/30;a.stepZoom(t,e._xs,e._ys)},this.mousewheel=function(e){var t=e.wheelDelta/1200;a.stepZoom(t,e._xs,e._ys)},this.keydown=function(e){e.context="dwv.tool.ZoomAndPan",a.onKeydown(e)},this.activate=function(e){}},ae.tool.ZoomAndPan.prototype.getHelpKeys=function(){return{title:"tool.ZoomAndPan.name",brief:"tool.ZoomAndPan.brief",mouse:{mouse_wheel:"tool.ZoomAndPan.mouse_wheel",mouse_drag:"tool.ZoomAndPan.mouse_drag"},touch:{twotouch_pinch:"tool.ZoomAndPan.twotouch_pinch",touch_drag:"tool.ZoomAndPan.touch_drag"}}},ae.tool.ZoomAndPan.prototype.init=function(){},(ae=ae||{}).env=ae.env||{},ae.env.askModernizr=function(e){void 0===ae.Modernizr&&ae.ModernizrInit(N,document);for(var t=e.split("."),n=ae.Modernizr,i=0;i<t.length;++i)n=n[t[i]];return n},ae.env.hasFileApi=function(){return-1===navigator.appVersion.indexOf("Safari")||-1!==navigator.appVersion.indexOf("Chrome")||-1===navigator.appVersion.indexOf("5.0.")&&-1===navigator.appVersion.indexOf("5.1.")?ae.env.askModernizr("filereader"):(ae.logger.warn("Assuming FileAPI support for Safari5..."),!0)},ae.env.hasXmlHttpRequest=function(){return ae.env.askModernizr("xhrresponsetype")&&ae.env.askModernizr("xhrresponsetypearraybuffer")&&ae.env.askModernizr("xhrresponsetypetext")&&"XMLHttpRequest"in N&&"withCredentials"in new XMLHttpRequest},ae.env.hasTypedArray=function(){return ae.env.askModernizr("dataview")&&ae.env.askModernizr("typedarrays")},ae.env.hasInputColor=function(){return ae.env.askModernizr("inputtypes.color")},ae.env.hasInputDirectory=function(){return ae.env.askModernizr("fileinputdirectory")},ae.env._hasTypedArraySlice=void 0!==Uint8Array.prototype.slice,ae.env.hasTypedArraySlice=function(){return ae.env._hasTypedArraySlice},ae.env._hasFloat64Array="Float64Array"in N,ae.env.hasFloat64Array=function(){return ae.env._hasFloat64Array},ae.env._hasClampedArray="Uint8ClampedArray"in N,ae.env.hasClampedArray=function(){return ae.env._hasClampedArray},ae.env.check=function(){var e="";if(!ae.env.hasFileApi())throw e="The File APIs are not supported in this browser. ",new Error(e);if(!ae.env.hasXmlHttpRequest())throw e="The XMLHttpRequest is not supported in this browser. ",new Error(e);if(!ae.env.hasTypedArray())throw e="The Typed arrays are not supported in this browser. ",new Error(e);ae.env.hasTypedArraySlice()||(ae.logger.warn("The TypedArray.slice method is not supported in this browser. This may impair performance. "),Uint16Array.prototype.slice=function(e,t){for(var n=t-e,i=new Uint16Array(n),r=0;r<n;r++)i[r]=this[e+r];return i},Int16Array.prototype.slice=function(e,t){for(var n=t-e,i=new Int16Array(n),r=0;r<n;r++)i[r]=this[e+r];return i},Uint8Array.prototype.slice=function(e,t){for(var n=t-e,i=new Uint8Array(n),r=0;r<n;r++)i[r]=this[e+r];return i},Int8Array.prototype.slice=function(e,t){for(var n=t-e,i=new Int8Array(n),r=0;r<n;r++)i[r]=this[e+r];return i}),ae.env.hasClampedArray()||(ae.logger.warn("The Uint8ClampedArray is not supported in this browser. This may impair performance. "),N.Uint8ClampedArray=N.Uint8Array),ae.env.hasFloat64Array()||(ae.logger.warn("The Float64Array is not supported in this browser. This may impair performance. "),N.Float64Array=N.Float32Array),Array.prototype.find||Object.defineProperty(Array.prototype,"find",{value:function(e){if(null===this)throw new TypeError('"this" is null or not defined');var t=Object(this),n=t.length>>>0;if("function"!=typeof e)throw new TypeError("predicate must be a function");for(var i=arguments[1],r=0;r<n;){var o=t[r];if(e.call(i,o,r,t))return o;r++}},configurable:!0,writable:!0}),String.prototype.startsWith||(String.prototype.startsWith=function(e,t){return this.substr(!t||t<0?0:+t,e.length)===e})};a=a||{},s=s||{},l=l||{};return(ae=ae||{}).i18nLocalesPath=null,ae.i18nInitialise=function(e,t){var n=void 0===e?"auto":e,i=void 0===t?"../..":t,r={fallbackLng:"en",load:"languageOnly",backend:{loadPath:(ae.i18nLocalesPath=i)+"/locales/{{lng}}/{{ns}}.json"}},o=a.use(s);"auto"===n?o.use(l):r.lng=n,o.init(r)},ae.i18nInitialiseWithResources=function(e,t){var n=void 0===e?"auto":e,i={fallbackLng:"en",load:"languageOnly",resources:t};"auto"===n?a.use(l).init(i):(i.lng=n,a.init(i))},ae.i18nOnInitialised=function(e){a.on("initialized",e)},ae.i18nOffInitialised=function(){a.off("initialized")},ae.i18nOnFailedLoad=function(e){a.on("failedLoading",e)},ae.i18nOffFailedLoad=function(){a.off("failedLoading")},ae.i18n=function(e,t){return a.t(e,t)},ae.i18nExists=function(e,t){return a.exists(e,t)},ae.i18nPage=function(){for(var e=document.getElementsByTagName("*"),t=0;t<e.length;++t)void 0!==e[t].dataset.i18n&&(e[t].innerHTML=ae.i18n(e[t].dataset.i18n))},ae.i18nGetLocalePath=function(e){var t=a.language.substr(0,2);return ae.i18nLocalesPath+"/locales/"+t+"/"+e},ae.i18nGetFallbackLocalePath=function(e){var t=a.languages[a.languages.length-1].substr(0,2);return ae.i18nLocalesPath+"/locales/"+t+"/"+e},(ae=ae||{}).utils=ae.utils||{},ae.utils.ListenerHandler=function(){var i={};this.add=function(e,t){void 0===i[e]&&(i[e]=[]),i[e].push(t)},this.remove=function(e,t){if(void 0!==i[e])for(var n=0;n<i[e].length;++n)i[e][n]===t&&i[e].splice(n,1)},this.fireEvent=function(e){if(void 0!==i[e.type])for(var t=0;t<i[e.type].length;++t)i[e.type][t](e)}},(ae=ae||{}).utils=ae.utils||{},ae.utils.logger=ae.utils.logger||{},ae.utils.logger.console=ae.utils.logger.console||{},ae.utils.logger.levels={TRACE:0,DEBUG:1,INFO:2,WARN:3,ERROR:4},ae.utils.logger.console.level=ae.utils.logger.levels.WARN,ae.utils.logger.console.trace=function(e){ae.logger.level<=ae.utils.logger.levels.TRACE&&console.trace(e)},ae.utils.logger.console.debug=function(e){ae.logger.level<=ae.utils.logger.levels.DEBUG&&console.debug(e)},ae.utils.logger.console.info=function(e){ae.logger.level<=ae.utils.logger.levels.INFO&&console.info(e)},ae.utils.logger.console.warn=function(e){ae.logger.level<=ae.utils.logger.levels.WARN&&console.warn(e)},ae.utils.logger.console.error=function(e){ae.logger.level<=ae.utils.logger.levels.ERROR&&console.error(e)},(ae=ae||{}).ModernizrInit=function(e,a,s){var l=[],t={_version:"3.6.0",_config:{classPrefix:"",enableClasses:!0,enableJSClass:!0,usePrefixes:!0},_q:[],on:function(e,t){var n=this;setTimeout(function(){t(n[e])},0)},addTest:function(e,t,n){l.push({name:e,fn:t,options:n})},addAsyncTest:function(e){l.push({name:null,fn:e})}},u=function(){};u.prototype=t,(u=new u).addTest("dataview","undefined"!=typeof DataView&&"getFloat64"in DataView.prototype),u.addTest("typedarrays","ArrayBuffer"in e),u.addTest("filereader",!!(e.File&&e.FileList&&e.FileReader)),u.addTest("xhrresponsetype",function(){if("undefined"==typeof XMLHttpRequest)return!1;var e=new XMLHttpRequest;return e.open("get","/",!0),"response"in e}()),u.addTest("urlparser",function(){try{return"http://modernizr.com/"===new URL("http://modernizr.com/").href}catch(e){return!1}}),u.addTest("urlsearchparams","URLSearchParams"in e);var c=[];function n(e){if("undefined"==typeof XMLHttpRequest)return!1;var t=new XMLHttpRequest;t.open("get","/",!0);try{t.responseType=e}catch(e){return!1}return"response"in t&&t.responseType==e}var S=a.documentElement;u.addTest("xhrresponsetypearraybuffer",n("arraybuffer")),u.addTest("xhrresponsetypejson",n("json")),u.addTest("xhrresponsetypetext",n("text"));var i="svg"===S.nodeName.toLowerCase();function r(e){return"function"!=typeof a.createElement?a.createElement(e):i?a.createElementNS.call(a,"http://www.w3.org/2000/svg",e):a.createElement.apply(a,arguments)}var x=r("input"),o="search tel url email datetime date month week time datetime-local number range color".split(" "),d={};u.inputtypes=function(e){for(var t,n,i,r=e.length,o=0;o<r;o++)x.setAttribute("type",t=e[o]),(i="text"!==x.type&&"style"in x)&&(x.value="1)",x.style.cssText="position:absolute;visibility:hidden;",/^range$/.test(t)&&x.style.WebkitAppearance!==s?(S.appendChild(x),i=(n=a.defaultView).getComputedStyle&&"textfield"!==n.getComputedStyle(x,null).WebkitAppearance&&0!==x.offsetHeight,S.removeChild(x)):/^(search|tel)$/.test(t)||(i=/^(url|email)$/.test(t)?x.checkValidity&&!1===x.checkValidity():"1)"!=x.value)),d[e[o]]=!!i;return d}(o);var g=t._config.usePrefixes?"Moz O ms Webkit".toLowerCase().split(" "):[];t._domPrefixes=g,u.addTest("fileinputdirectory",function(){var e=r("input"),t="directory";if(e.type="file",t in e)return!0;for(var n=0,i=g.length;n<i;n++)if(g[n]+t in e)return!0;return!1}),function(){var e,t,n,i,r,o,a;for(a in l)if(l.hasOwnProperty(a)){if(e=[],(t=l[a]).name&&(e.push(t.name.toLowerCase()),t.options&&t.options.aliases&&t.options.aliases.length))for(n=0;n<t.options.aliases.length;n++)e.push(t.options.aliases[n].toLowerCase());for(i="function"==typeof t.fn?t.fn():t.fn,r=0;r<e.length;r++)1===(o=e[r].split(".")).length?u[o[0]]=i:(!u[o[0]]||u[o[0]]instanceof Boolean||(u[o[0]]=new Boolean(u[o[0]])),u[o[0]][o[1]]=i),c.push((i?"":"no-")+o.join("-"))}}(),delete t.addTest,delete t.addAsyncTest;for(var m=0;m<u._q.length;m++)u._q[m]();ae.Modernizr=u},(ae=ae||{}).utils=ae.utils||{},ae.utils.isObject=function(e){var t=typeof e;return"function"==t||"object"==t&&!!e},ae.utils.isArray=function(e){return Array.isArray(e)},ae.utils.objectToArray=function(e){for(var t=[],n=Object.keys(e),i=0;i<n.length;++i){for(var r=n[i],o={name:r},a=Object.keys(e[r]),s=0;s<a.length;++s){var l=a[s];o[l]=e[r][l]}t.push(o)}return t},ae.utils.mergeObjects=function(e,t,n,i){var r={};if(!n)throw new Error("Cannot merge object with an undefined id key: "+n);if(!Object.prototype.hasOwnProperty.call(e,n))throw new Error("Id key not found in first object while merging: "+n+", obj: "+e);if(!Object.prototype.hasOwnProperty.call(t,n))throw new Error("Id key not found in second object while merging: "+n+", obj: "+t);if(!i)throw new Error("Cannot merge object with an undefined value key: "+i);var o=!1;if(Object.prototype.hasOwnProperty.call(e[n],"merged")&&e[n].merged&&(o=!0),!Object.prototype.hasOwnProperty.call(e[n],i))throw new Error("Id value not found in first object while merging: "+n+", valueKey: "+i+", ojb: "+e);if(!Object.prototype.hasOwnProperty.call(t[n],i))throw new Error("Id value not found in second object while merging: "+n+", valueKey: "+i+", ojb: "+t);var a=e[n][i],s=t[n][i];if(o){for(var l=0;l<a.length;++l)if(a[l]===s)throw new Error("The first object already contains id2: "+s+", id1: "+a);r[n]=e[n],r[n][i].push(s)}else{if(a===s)throw new Error("Cannot merge object with same ids: "+a+", id2: "+s);r[n]={value:[a,s],merged:!0}}for(var u=Object.keys(e),c=Object.keys(t).filter(function(e){return u.indexOf(e)<0}),S=u.concat(c),x=0,d=S.length;x<d;++x){var g=S[x];if(g!==n){var m,p=null;Object.prototype.hasOwnProperty.call(e,g)&&(m=e[g],Object.prototype.hasOwnProperty.call(m,i)&&(p=m[i]));var h,f,D=null;if(Object.prototype.hasOwnProperty.call(t,g)&&(h=t[g],Object.prototype.hasOwnProperty.call(h,i)&&(D=h[i])),D!==p)if(f={},o){if(ae.utils.isObject(p))f[i]=p;else{f[i]={};for(var y=0;y<a.length;y++)f[i][a[y]]=p}f[i][s]=D}else{var C={};C[a]=p,C[s]=D,f[i]=C}else f=m;r[g]=f}}return r},(ae=ae||{}).utils=ae.utils||{},ae.utils.MultiProgressHandler=function(i){var r=this,o=[],a=2;function s(e){for(var t=0,n=0;n<a;++n)t+=o[e][n];return t/a}this.setNumberOfDimensions=function(e){a=e},this.setNToLoad=function(e){for(var t=0;t<e;++t){o[t]=[];for(var n=0;n<a;++n)o[t][n]=0}},this.onprogress=function(e){var t,n;e.lengthComputable&&void 0!==e.subindex&&void 0!==e.index&&(t=100*e.loaded/e.total,o[e.index][e.subindex]=t,n=null,n=void 0!==e.item?e.item:{loaded:s(e.index),total:100,source:e.source},i({lengthComputable:!0,loaded:function(){for(var e=0,t=o.length,n=0;n<t;++n)e+=s(n);return Math.round(e/t)}(),total:100,item:n}))},this.getMonoProgressHandler=function(t,n){return function(e){e.index=t,e.subindex=n,r.onprogress(e)}},this.getUndefinedMonoProgressHandler=function(t){return function(e){e.subindex=t,r.onprogress(e)}}},(ae=ae||{}).utils=ae.utils||{},ae.utils.capitaliseFirstLetter=function(e){var t=e;return e&&(t=e.charAt(0).toUpperCase()+e.slice(1)),t},ae.utils.endsWith=function(e,t){return null!=e&&null!=t&&e.substr(e.length-t.length)===t},ae.utils.splitKeyValueString=function(e){var t={};if(e)for(var n=e.split("&"),i=0;i<n.length;++i){var r=n[i].split("=");t[r[0]]?(t[r[0]]instanceof Array||(t[r[0]]=[t[r[0]]]),t[r[0]].push(r[1])):t[r[0]]=r[1]}return t},ae.utils.replaceFlags=function(e,t){var n="";if(null==e)return n;if(n=e,null==t)return n;for(var i=Object.keys(t),r=0;r<i.length;++r){var o,a,s=t[i[r]];null!=s&&null!==s.value&&void 0!==s.value&&(o=s.value.toPrecision(4),null!==s.unit&&void 0!==s.unit&&0!==s.unit.length&&("degree"!==s.unit&&(o+=" "),o+=s.unit),a="{"+i[r]+"}",n=n.replace(a,o))}return n},ae.utils.replaceFlags2=function(e,t){for(var n=e,i=0;i<t.length;++i)n=n.replace("{v"+i+"}",t[i]);return n},ae.utils.createDefaultReplaceFormat=function(e){for(var t="",n=0;n<e.length;++n)0!==n&&(t+=", "),t+="{v"+n+"}";return t},ae.utils.getRootPath=function(e){return e.split("/").slice(0,-1).join("/")},ae.utils.getFileExtension=function(e){var t,n=null;return void 0===e||!e||1!==(t=e.split(".")).length&&(n=t.pop().toLowerCase()),n},(ae=ae||{}).utils=ae.utils||{},ae.utils.ThreadPool=function(i){for(var r=[],o=[],e=0;e<i;++e)o.push(new ae.utils.WorkerThread(this));var a=[];function t(){r=[];for(var e=0;e<a.length;++e)a[e].stop();a=[]}this.addWorkerTask=function(e){var t;o.length===i&&this.onworkstart({type:"work-start"}),0<o.length?((t=o.shift()).run(e),a.push(t)):r.push(e)},this.abort=function(){t(),this.onabort({type:"work-abort"}),this.onworkend({type:"work-end"})},this.onTaskEnd=function(e){if(0<r.length){var t=r.shift();e.run(t)}else{o.push(e);for(var n=0;n<a.length;++n)a[n].getId()===e.getId()&&a.splice(n,1);o.length===i&&(this.onwork({type:"work"}),this.onworkend({type:"work-end"}))}},this.handleWorkerError=function(e){t(),this.onerror({error:e}),this.onworkend({type:"work-end"})}},ae.utils.ThreadPool.prototype.onworkstart=function(e){},ae.utils.ThreadPool.prototype.onworkitem=function(e){},ae.utils.ThreadPool.prototype.onwork=function(e){},ae.utils.ThreadPool.prototype.onworkend=function(e){},ae.utils.ThreadPool.prototype.onerror=function(e){},ae.utils.ThreadPool.prototype.onabort=function(e){},ae.utils.WorkerThread=function(t){var n,i=this,e=Math.random().toString(36).substring(2,15),r=null;function o(e){e.index=r.id,t.onworkitem(e),i.stop()}function a(e){t.handleWorkerError(e),i.stop()}this.getId=function(){return e},this.run=function(e){null!==(r=e).script&&((n=new Worker(r.script)).onmessage=o,n.onerror=a,n.postMessage(r.startMessage))},this.stop=function(){n.terminate(),t.onTaskEnd(this)}},ae.utils.WorkerTask=function(e,t,n){this.script=e,this.startMessage=t,this.id=n},(ae=ae||{}).utils=ae.utils||{},ae.utils.getUrlFromUriFull=function(e){return new URL(e,N.location.origin)},ae.utils.getUrlFromUriSimple=function(e){var t={},n=e.split("?"),i=n[0].split("//").pop().split("/");i.splice(0,1),t.pathname="/"+i.join("/");var r=[];2===n.length&&(r=n[1].split("&"));for(var o={},a=0;a<r.length;++a){var s=r[a].split("=");o[s[0]]=s[1]}return t.searchParams={get:function(e){return o[e]}},t},ae.utils.getUrlFromUri=function(e){return ae.env.askModernizr("urlparser")&&ae.env.askModernizr("urlsearchparams")?ae.utils.getUrlFromUriFull(e):ae.utils.getUrlFromUriSimple(e)},ae.utils.splitUri=function(e){var t,n,i={},r=null;return e&&-1!==(r=e.indexOf("?"))&&(i.base=e.substr(0,r),-1===(t=e.indexOf("#"))&&(t=e.length),n=e.substr(r+1,t-1-r),i.query=ae.utils.splitKeyValueString(n)),i},ae.utils.getUriQuery=function(e){var t=ae.utils.splitUri(e);return 0===Object.keys(t).length?null:t.query},ae.utils.decodeQuery=function(e,t){e.type&&"manifest"===e.type?ae.utils.decodeManifestQuery(e,t):t(ae.utils.decodeKeyValueUri(e.input,e.dwvReplaceMode))},ae.utils.decodeKeyValueUri=function(e,t){var n=[],i="key";t&&(i=t);var r=decodeURIComponent(e),o=ae.utils.splitUri(r);if(0===Object.keys(o).length)n.push(r);else{for(var a=Object.keys(o.query),s=null,l=0;l<a.length;++l)if(o.query[a[l]]instanceof Array){s=a[l];break}if(s){var u=o.query[s],c=o.base;""!==c&&"file"!==s&&(c+="?");for(var S,x=!1,d=0;d<a.length;++d)a[d]!==s&&(x&&(c+="&"),c+=a[d]+"="+o.query[a[d]],x=!0);for(var g=0;g<u.length;++g)S=c,x&&(S+="&"),"key"===i&&(S+=s+"="),S+=u[g],n.push(S)}else n.push(r)}return n},ae.utils.decodeManifestQuery=function(e,t){var n="";"/"===e.input[0]&&(n=N.location.protocol+"//"+N.location.host),n+=e.input;var i=new XMLHttpRequest;i.open("GET",decodeURIComponent(n),!0),i.responseType="document",i.onload=function(){t(ae.utils.decodeManifest(this.responseXML,e.nslices))},i.onerror=function(){ae.logger.warn("RequestError while receiving manifest: "+this.status)},i.send(null)},ae.utils.decodeManifest=function(e,t){var n=[],i=e.getElementsByTagName("wado_query")[0].getAttribute("wadoURL")+"?requestType=WADO&contentType=application/dicom&",r=e.getElementsByTagName("Patient");1<r.length&&ae.logger.warn("More than one patient, loading first one.");var o=r[0].getElementsByTagName("Study");1<o.length&&ae.logger.warn("More than one study, loading first one.");var a=o[0].getAttribute("StudyInstanceUID"),s=o[0].getElementsByTagName("Series");1<s.length&&ae.logger.warn("More than one series, loading first one.");var l=s[0].getAttribute("SeriesInstanceUID"),u=s[0].getElementsByTagName("Instance"),c=u.length;t<c&&(c=t);for(var S=0;S<c;++S){var x=i+"&studyUID="+a+"&seriesUID="+l+"&objectUID="+u[S].getAttribute("SOPInstanceUID");n.push(x)}return n},ae.utils.loadFromUri=function(e,t){var n=ae.utils.getUriQuery(e);n&&void 0!==n.input&&ae.utils.loadFromQuery(n,t)},ae.utils.loadFromQuery=function(e,t){ae.utils.decodeQuery(e,t.loadURLs),void 0!==e.state&&t.addEventListener("loadend",function(){t.loadURLs(e.state)})},ae});
|