dwv 0.31.0-beta.20 → 0.31.0-beta.21

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/dist/dwv.min.js CHANGED
@@ -1,2 +1,2 @@
1
- /*! dwv 0.31.0-beta.20 2022-12-19 10:41:20 */
2
- !function(e,t){"function"==typeof define&&define.amd?define(["i18next","i18next-http-backend","i18next-browser-languagedetector","jszip","konva","magic-wand-tool"],t):"object"==typeof module&&module.exports?module.exports=t(require("i18next"),require("i18next-http-backend"),require("i18next-browser-languagedetector"),require("jszip"),require("konva/cmj"),require("magic-wand-tool")):e.dwv=t(e.i18next,e.i18nextHttpBackend,e.i18nextBrowserLanguageDetector,e.JSZip,e.Konva,e.MagicWand)}(this,function(i,r,o,u,y,v){{function e(e){return void 0!==e&&void 0!==e.default}{var c=void 0!==c?c:"undefined"!=typeof self?self:"undefined"!=typeof global?global:{},z=(e(i)&&(i=i.default),e(r)&&(r=r.default),e(o)&&(o=o.default),e(y)&&(y=y.default),z||{}),z=(z.App=function(){var r=this,S=null,m=null,h=null,p=null,f=null,y=null,e=new z.gui.Style,n=new z.utils.ListenerHandler;function o(e){if(null===S.dataViewConfigs||void 0===S.dataViewConfigs)throw new Error("No available data view configuration");var t=[];return void 0!==S.dataViewConfigs["*"]?t=S.dataViewConfigs["*"]:void 0!==S.dataViewConfigs[e]&&(t=S.dataViewConfigs[e]),t}function a(e){for(var t=Object.keys(e),n=[],i=0;i<t.length;++i)for(var r=e[t[i]],o=0;o<r.length;++o){var a=r[o];if(!n.includes(a.divId)){var s=document.getElementById(a.divId),s=f.addLayerGroup(s),l=(u=l=void 0,s);l.addEventListener("zoomchange",D),l.addEventListener("offsetchange",D),l.addEventListener("renderstart",D),l.addEventListener("renderend",D);for(var u=0;u<z.image.viewEventNames.length;++u)l.addEventListener(z.image.viewEventNames[u],D);void 0!==a.orientation&&s.setTargetOrientation(z.math.getMatrixFromName(a.orientation)),n.push(a.divId)}}}function D(e){n.fireEvent(e)}function v(e){e.type="loadstart",D(e)}function C(e){e.type="loadprogress",D(e)}function T(e){void 0===e.data&&z.logger.error("Missing loaditem event data."),void 0===e.loadtype&&z.logger.error("Missing loaditem event load type.");var t,n=e.isfirstitem,i=null;"image"===e.loadtype?(n?m.addNew(e.loadid,e.data.image,e.data.info):m.update(e.loadid,e.data.image,e.data.info),i=e.data.info):"state"===e.loadtype&&((t=new z.io.State).apply(r,t.fromJSON(e.data)),i="state"),D({type:"loaditem",data:i,source:e.source,loadtype:e.loadtype,loadid:e.loadid,isfirstitem:e.isfirstitem}),"image"===e.loadtype&&0!==o(e.loadid).length&&n&&S.viewOnFirstLoadItem&&r.render(e.loadid)}function L(e){e.type="load",D(e)}function I(e){e.type="loadend",D(e)}function P(e){e.type="error",D(e)}function w(e){e.type="abort",D(e)}function s(e,t){var n=m.get(e);if(!n)throw new Error("Cannot initialise layer with data id: "+e);var i=f.getLayerGroupByDivId(t.divId);if(!i)throw new Error("Cannot initialise layer with group id: "+t.divId);var r=n.image.getGeometry();f.unbindLayerGroups();var o=(new z.ViewFactory).create(new z.dicom.DicomElementsWrapper(n.meta),n.image),a=z.gui.getViewOrientation(r.getOrientation(),i.getTargetOrientation()),n=(o.setOrientation(a),"SEG"===n.image.getMeta().Modality&&o.setAlphaFunction(function(e){return 0===e[0]&&0===e[1]&&0===e[2]?0:255}),void 0!==t.colourMap&&o.setColourMap(t.colourMap),0===i.getNumberOfLayers()),s=1,l=(n||(s=.5,void 0===t.colourMap&&o.setColourMap(z.image.lut.rainbow)),i.addViewLayer()),o=(l.setView(o),r.getSize(a).get2D()),a=r.getSpacing(a).get2D(),e=(l.initialise(o,a,e,s),m.addEventListener("imagechange",l.onimagechange),f.bindLayerGroups(),h&&h.bindLayer(l,i.getDivId()),h&&h.hasTool("Draw")&&((s=i.addDrawLayer()).initialise(o,a,e),s.setPlaneHelper(l.getViewController().getPlaneHelper()),a=[(o=l.getViewController()).getCurrentIndex().getValues(),o.getCurrentPosition().getValues()],i.updateLayersToPositionChange({value:a,srclayerid:l.getId()})),f.syncLayerGroupScale(),r.getOrientation().getThirdColMajorDirection());l.setOffset(i.getOffset()),void 0!==t.orientation&&(2===e?"axial"!==t.orientation&&l.addFlipOffsetY():0===e&&"sagittal"!==t.orientation&&l.addFlipOffsetX()),n?void 0!==t.orientation?0===e||2===e?i.flipScaleZ():l.setScale(i.getScale()):0===e?i.flipScaleZ():l.setScale(i.getScale()):l.setScale(i.getScale())}this.getImage=function(e){return m.get(e).image},this.getLastImage=function(){return m.get(m.length()-1).image},this.setImage=function(e,t){m.setImage(e,t)},this.setLastImage=function(e){m.setImage(m.length()-1,e)},this.addNewImage=function(e,t){var n=m.length();return D({type:"loadstart",loadtype:"image",source:"internal",loadid:n}),m.addNew(n,e,t),D({type:"loaditem",loadtype:"image",data:t,source:"internal",loadid:n,isfirstitem:!0}),S.viewOnFirstLoadItem&&this.render(n),D({type:"load",loadtype:"image",source:"internal",loadid:n}),D({type:"loadend",loadtype:"image",source:"internal",loadid:n}),n},this.getMetaData=function(e){return m.get(e).meta},this.getNumberOfLoadedData=function(){return m.length()},this.canScroll=function(){return f.getActiveLayerGroup().getActiveViewLayer().getViewController().canScroll()},this.canWindowLevel=function(){return f.getActiveLayerGroup().getActiveViewLayer().getViewController().canWindowLevel()},this.getAddedScale=function(){return f.getActiveLayerGroup().getAddedScale()},this.getBaseScale=function(){return f.getActiveLayerGroup().getBaseScale()},this.getOffset=function(){return f.getActiveLayerGroup().getOffset()},this.getToolboxController=function(){return h},this.getActiveLayerGroup=function(){return f.getActiveLayerGroup()},this.getViewLayersByDataIndex=function(e){return f.getViewLayersByDataIndex(e)},this.getLayerGroupByDivId=function(e){return f.getLayerGroupByDivId(e)},this.getNumberOfLayerGroups=function(){return f.getNumberOfLayerGroups()},this.getStyle=function(){return e},this.addToUndoStack=function(e){null!==y&&y.add(e)},this.init=function(e){if(void 0===(S=e).viewOnFirstLoadItem&&(S.viewOnFirstLoadItem=!0),(y=new z.tool.UndoStack).addEventListener("undoadd",D),y.addEventListener("undo",D),y.addEventListener("redo",D),S.tools&&0!==S.tools.length){for(var t={},n=Object.keys(S.tools),i=0;i<n.length;++i){var r=n[i],o=S.tools[r];if(void 0!==z.tool[r]){if(t[r]=new z.tool[r](this),void 0!==t[r].addEventListener)for(var a=t[r].getEventNames(),s=0;s<a.length;++s)t[r].addEventListener(a[s],D);if(void 0!==o.options){var l="raw",u=(void 0!==t[r].getOptionsType&&(l=t[r].getOptionsType()),o.options);if("instance"===l||"factory"===l)for(var u={},c=0;c<o.options.length;++c){var d=o.options[c],g=d,x=("factory"===l&&(g+="Factory"),r.charAt(0).toLowerCase()+r.slice(1));void 0!==z.tool[x][g]?u[d]=z.tool[x][g]:z.logger.warn("Could not find option class for: "+d)}t[r].setOptions(u)}}else z.logger.warn("Could not initialise unknown tool: "+r)}h=new z.ctrl.ToolboxController(t)}(p=new z.ctrl.LoadController(S.defaultCharacterSet)).onloadstart=v,p.onprogress=C,p.onloaditem=T,p.onload=L,p.onloadend=I,p.onerror=P,p.onabort=w,m=new z.ctrl.DataController,f=new z.gui.Stage,void 0!==S.binders&&f.setBinders(S.binders)},this.getElement=function(e){return null},this.reset=function(){m.reset(),f.empty(),y&&((y=new z.tool.UndoStack).addEventListener("undoadd",D),y.addEventListener("undo",D),y.addEventListener("redo",D))},this.resetLayout=function(){f.reset(),f.draw()},this.addEventListener=function(e,t){n.add(e,t)},this.removeEventListener=function(e,t){n.remove(e,t)},this.loadFiles=function(e){0===e.length?z.logger.warn("Ignoring empty input file list."):p.loadFiles(e)},this.loadURLs=function(e,t){0===e.length?z.logger.warn("Ignoring empty input url list."):p.loadURLs(e,t)},this.loadImageObject=function(e){p.loadImageObject(e)},this.abortLoad=function(){p.abort()},this.fitToContainer=function(){f.syncLayerGroupScale()},this.initWLDisplay=function(){f.getActiveLayerGroup().getActiveViewLayer().getViewController().initialise()},this.getDataViewConfig=function(){return S.dataViewConfigs},this.setDataViewConfig=function(e){f.empty(),a(S.dataViewConfigs=e)},this.setLayerGroupsBinders=function(e){f.setBinders(e)},this.render=function(e){if(null==e)throw new Error("Cannot render without data index");0===f.getNumberOfLayerGroups()&&a(S.dataViewConfigs);var t=o(e);if(0===t.length)z.logger.info("Not rendering data: "+e+" (no data view config)");else for(var n=0;n<t.length;++n){var i=t[n],r=f.getLayerGroupByDivId(i.divId);if(!r)throw new Error("No layer group for "+i.divId);0===r.getViewLayersByDataIndex(e).length&&(0===r.getNumberOfLayers()?(s(e,i),h&&h.init()):s(e,i)),r.draw()}},this.zoom=function(e,t,n){var i=f.getActiveLayerGroup(),r=i.getActiveViewLayer().getViewController().getCurrentScrollPosition(),t=new z.math.Point3D(t,n,r);i.addScale(e,t),i.draw()},this.translate=function(e,t){var n=f.getActiveLayerGroup();n.addTranslation({x:e,y:t}),n.draw()},this.setOpacity=function(e){var t=f.getActiveLayerGroup().getActiveViewLayer();t.setOpacity(e),t.draw()},this.getDrawDisplayDetails=function(){return f.getActiveLayerGroup().getActiveDrawLayer().getDrawController().getDrawDisplayDetails()},this.getDrawStoreDetails=function(){return f.getActiveLayerGroup().getActiveDrawLayer().getDrawController().getDrawStoreDetails()},this.setDrawings=function(e,t){var n=f.getActiveLayerGroup(),i=n.getActiveViewLayer().getViewController(),n=n.getActiveDrawLayer().getDrawController();n.setDrawings(e,t,D,this.addToUndoStack),n.activateDrawLayer(i.getCurrentOrientedIndex(),i.getScrollIndex())},this.updateDraw=function(e){f.getActiveLayerGroup().getActiveDrawLayer().getDrawController().updateDraw(e)},this.deleteDraws=function(){f.getActiveLayerGroup().getActiveDrawLayer().getDrawController().deleteDraws(D,this.addToUndoStack)},this.isGroupVisible=function(e){return f.getActiveLayerGroup().getActiveDrawLayer().getDrawController().isGroupVisible(e)},this.toogleGroupVisibility=function(e){f.getActiveLayerGroup().getActiveDrawLayer().getDrawController().toogleGroupVisibility(e)},this.getState=function(){return(new z.io.State).toJSON(r)},this.onResize=function(e){r.fitToContainer()},this.onKeydown=function(e){D(e)},this.defaultOnKeydown=function(e){var t=f.getActiveLayerGroup().getActiveViewLayer().getViewController(),n=t.getImageSize();if(e.ctrlKey)if(37===e.keyCode)e.preventDefault(),n.moreThanOne(3)&&t.decrementIndex(3);else if(38===e.keyCode)e.preventDefault(),t.canScroll()&&t.incrementScrollIndex();else if(39===e.keyCode)e.preventDefault(),n.moreThanOne(3)&&t.incrementIndex(3);else if(40===e.keyCode)e.preventDefault(),t.canScroll()&&t.decrementScrollIndex();else if(89===e.keyCode)y.redo();else if(90===e.keyCode)y.undo();else if("Space"===e.code){e.preventDefault();for(var i=0;i<f.getNumberOfLayerGroups();++i)f.getLayerGroup(i).setShowCrosshair(!f.getLayerGroup(i).getShowCrosshair())}},this.resetDisplay=function(){r.resetLayout(),r.initWLDisplay()},this.resetZoom=function(){r.resetLayout()},this.setColourMap=function(e){f.getActiveLayerGroup().getActiveViewLayer().getViewController().setColourMapFromName(e)},this.setWindowLevelPreset=function(e){f.getActiveLayerGroup().getActiveViewLayer().getViewController().setWindowLevelPreset(e)},this.setTool=function(e){for(var t=0;t<f.getNumberOfLayerGroups();++t){var n=f.getLayerGroup(t),i=null;(i="Draw"===e||"Livewire"===e||"Floodfill"===e?n.getActiveDrawLayer():n.getActiveViewLayer())&&h.bindLayer(i,n.getDivId())}h.setSelectedTool(e)},this.setToolFeatures=function(e){h.setToolFeatures(e)},this.undo=function(){y.undo()},this.redo=function(){y.redo()}},z||{}),z=(z.ctrl=z.ctrl||{},z.ctrl.DataController=function(){var i={},n=new z.utils.ListenerHandler;function r(e){return void 0!==e.x00020010?new z.dicom.DicomElementsWrapper(e).dumpToObject():e}this.length=function(){return Object.keys(i).length},this.reset=function(){i=[]},this.get=function(e){return i[e]},this.setImage=function(e,t){i[e].image=t,e={type:"imagechange",value:[e,t]},n.fireEvent(e)},this.addNew=function(e,t,n){if(void 0!==i[e])throw new Error("Index already used in storage: "+e);i[e]={image:t,meta:r(n)}},this.update=function(e,t,n){e=i[e],e.image.appendSlice(t),t="",t=void 0!==n.x00020010?"InstanceNumber":"imageUid";e.meta=z.utils.mergeObjects(e.meta,r(n),t,"value")},this.addEventListener=function(e,t){n.add(e,t)},this.removeEventListener=function(e,t){n.remove(e,t)}},z||{}),y=(z.draw=z.draw||{},z.ctrl=z.ctrl||{},y||{}),z=(z.draw.getDrawPositionGroupId=function(e){return"slice-"+e.get(2)+"_frame-"+(4===e.length()?e.get(3):0)},z.draw.getPositionFromGroupId=function(e){var t=e.indexOf("_");return-1===t&&z.logger.warn("Badly formed PositionGroupId: "+e),{sliceNumber:e.substring(6,t),frameNumber:e.substring(t+7)}},z.draw.isNodeNameShape=function(e){return"shape"===e.name()},z.draw.isNodeNameShapeExtra=function(e){return e.name().startsWith("shape-")},z.draw.isNodeNameLabel=function(e){return"label"===e.name()},z.draw.isPositionNode=function(e){return"position-group"===e.name()},z.draw.isNodeWithId=function(t){return function(e){return e.id()===t}},z.draw.canNodeChangeColour=function(e){return"anchor"!==e.name()&&"label"!==e.name()},z.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+=z.draw.getHierarchyLog(n[r],t+" ");return i},z.ctrl.DrawController=function(m){var l=null;this.getCurrentPosGroup=function(){var e=m.getChildren(function(e){return e.id()===l}),t=null;return 1===e.length?t=e[0]:0===e.length?((t=new y.Group).name("position-group"),t.id(l),t.visible(!0),m.add(t)):z.logger.warn("Unexpected number of draw position groups."),t},this.reset=function(){m=null},this.activateDrawLayer=function(e,t){for(var n=[t],i=3;i<e.length();++i)n.push(i);l=e.toStringId(n);for(var r,o=m.getChildren(z.draw.isPositionNode),a=0,s=o.length;a<s;++a)r=!1,o[a].id()===l&&(r=!0),o[a].visible(r);m.draw()},this.getDrawDisplayDetails=function(){for(var e=[],t=m.getChildren(),n=0,i=t.length;n<i;++n)for(var r=z.math.getIndexFromStringId(t[n].id()),o=t[n].getChildren(),a=0,s=o.length;a<s;++a){var l,u=o[a].getChildren(z.draw.isNodeNameShape)[0],c=o[a].getChildren(z.draw.isNodeNameLabel)[0].getChildren()[0],d=u.className;"Line"===d&&(l=o[a].getChildren(z.draw.isNodeNameShapeExtra),u.closed()?d="Roi":0!==l.length&&(d=-1!==l[0].name().indexOf("triangle")?"Arrow":"Ruler")),"Rect"===d&&(d="Rectangle"),e.push({id:o[a].id(),position:r.toString(),type:d,color:u.stroke(),meta:c.meta})}return e},this.getDrawStoreDetails=function(){for(var e={},t=m.getChildren(z.draw.isPositionNode),n=0,i=t.length;n<i;++n)for(var r,o=0,a=(r=t[n].getChildren()).length;o<a;++o){for(var s,l=(s=r[o]).find(".anchor"),u=0;u<l.length;++u)l[u].remove();var c=s.find(".text");1!==c.length&&z.logger.warn("There should not be more than one text per shape."),e[s.id()]={meta:c[0].meta}}return e},this.setDrawings=function(e,t,n,i){for(var r=y.Node.create(e).getChildren(z.draw.isPositionNode),o=0,a=r.length;o<a;++o)for(var s=r[o],l=m.getChildren(z.draw.isNodeWithId(s.id()))[0],u=(void 0===l&&(l=new y.Group({id:s.id(),name:"position-group",visible:!1}),m.add(l)),s.getChildren()),c=0,d=u.length;c<d;++c){var g,x=u[0],S=(l.add(x),x.getChildren(z.draw.isNodeNameShape)[0]),S=new z.tool.DrawGroupCommand(x,S.className,m);S.onExecute=n,S.onUndo=n,t&&(g=t[x.id()],(x=x.getChildren(z.draw.isNodeNameLabel)[0].getText()).meta=g.meta,x.setText(z.utils.replaceFlags(x.meta.textExpr,x.meta.quantification))),S.execute(),i(S)}},this.updateDraw=function(e){var t=m.findOne("#"+e.id);if(void 0===t)z.logger.warn("[updateDraw] Cannot find group with id: "+e.id);else{for(var n=t.getChildren(z.draw.isNodeNameShape),i=0;i<n.length;++i)n[i].stroke(e.color);for(var r=t.getChildren(z.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);for(var a,s=t.getChildren(z.draw.isNodeNameLabel)[0],l=z.utils.getShadowColour(e.color),u=s.getChildren(),c=0;c<u.length;++c)u[c].fill(e.color),"Text"===u[c].className&&((a=u[c]).shadowColor(l),void 0!==e.meta&&(a.meta=e.meta,a.setText(z.utils.replaceFlags(a.meta.textExpr,a.meta.quantification)),s.setVisible(0!==a.meta.textExpr.length)));m.draw()}},this.isGroupVisible=function(e){var t=m.findOne("#"+e.id);return void 0===t?(z.logger.warn("[isGroupVisible] Cannot find node with id: "+e.id),!1):t.isVisible()},this.toogleGroupVisibility=function(e){var t=m.findOne("#"+e.id);return void 0===t?(z.logger.warn("[toogleGroupVisibility] Cannot find node with id: "+e.id),!1):(t.visible(!t.isVisible()),m.draw(),!0)},this.deleteDrawGroupId=function(t,e,n){var i=m.getChildren().getChildren(function(e){return e.id()===t});1===i.length?this.deleteDrawGroup(i[0],e,n):0===i.length?z.logger.warn("Can't delete group with id:'"+t+"', cannot find it."):z.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(z.draw.isNodeNameShape)[0],i=z.tool.GetShapeDisplayName(i),e=new z.tool.DeleteGroupCommand(e,i,m);e.onExecute=t,e.onUndo=t,e.execute(),n(e)},this.deleteDraws=function(e,t){for(var n=m.getChildren();n.length;)this.deleteDrawGroup(n[0],e,t)}},z||{}),z=(z.ctrl=z.ctrl||{},z.ctrl.LoadController=function(o){var a=this,s={},l=-1;function u(e,t,n,i){var r={loadtype:n},o=++l;r.loadid=o,t.onloadstart=function(e){s[o]={loader:t,isFirstItem:!0},c(a.onloadstart,r)(e)},t.onprogress=c(a.onprogress,r),t.onloaditem=function(e){var t={loadtype:n,loadid:o};void 0!==s[o]&&(t.isfirstitem=s[o].isFirstItem),c(a.onloaditem,t)(e),void 0!==s[o]&&s[o].isFirstItem&&(s[o].isFirstItem=!1)},t.onload=c(a.onload,r),t.onloadend=function(e){delete s[o],c(a.onloadend,r)(e)},t.onerror=c(a.onerror,r),t.onabort=c(a.onabort,r);try{t.load(e,i)}catch(e){return a.onerror({error:e,loadid:o}),void a.onloadend({loadid:o})}}function c(r,o){return function(e){for(var t=Object.keys(o),n=0;n<t.length;++n){var i=t[n];e[i]=o[i]}r(e)}}this.loadFiles=function(e){var t,n;"json"===e[0].name.split(".").pop().toLowerCase()?(t=e[0],n=new z.io.FilesLoader,u([t],n,"state")):(t=e,(n=new z.io.FilesLoader).setDefaultCharacterSet(o),u(t,n,"image"))},this.loadURLs=function(e,t){var n,i,r;"json"===e[0].split(".").pop().toLowerCase()?(n=e[0],i=t,r=new z.io.UrlsLoader,u([n],r,"state",i)):(n=e,r=t,(i=new z.io.UrlsLoader).setDefaultCharacterSet(o),u(n,i,"image",r))},this.loadImageObject=function(e){u(e,new z.io.MemoryLoader,"image")},this.abort=function(){for(var e=Object.keys(s),t=0;t<e.length;++t)s[t].loader.abort(),delete s[t]}},z.ctrl.LoadController.prototype.onloadstart=function(e){},z.ctrl.LoadController.prototype.onprogress=function(e){},z.ctrl.LoadController.prototype.onload=function(e){},z.ctrl.LoadController.prototype.onloadend=function(e){},z.ctrl.LoadController.prototype.onerror=function(e){},z.ctrl.LoadController.prototype.onabort=function(e){},z||{}),z=(z.ctrl=z.ctrl||{},z.ctrl.ToolboxController=function(t){var n=null,r=[],s={};function l(e,t){function i(e){var t;n&&(t=n[e.type])&&t(e)}return void 0===r[e]&&(r[e]=[]),void 0===r[e][t]&&(r[e][t]="keydown"===t?function(e){i(e)}:"touchend"===t?function(e){e.preventDefault(),i(e)}:function(e){var t,n;e.preventDefault(),t=e,n=z.gui.getEventOffset(t),t._x=n[0].x,t._y=n[0].y,2===n.length&&(t._x1=n[1].x,t._y1=n[1].y),i(e)}),r[e][t]}this.init=function(){for(var e in t)t[e].init();c.addEventListener("keydown",l("window","keydown"),!0)},this.getToolList=function(){return t},this.hasTool=function(e){return void 0!==this.getToolList()[e]},this.getSelectedTool=function(){return n},this.getSelectedToolEventHandler=function(e){return this.getSelectedTool()[e]},this.setSelectedTool=function(e){if(!this.hasTool(e))throw new Error("Unknown tool: '"+e+"'");n&&n.activate(!1),(n=t[e]).activate(!0)},this.setToolFeatures=function(e){this.getSelectedTool()&&this.getSelectedTool().setFeatures(e)},this.bindLayer=function(e,t){if(void 0!==s[t]){var n=s[t];n.unbindInteraction();for(var i=z.gui.interactionEventNames,r=0;r<i.length;++r)n.removeEventListener(i[r],l(n.getId(),i[r]))}e.bindInteraction();for(var o=z.gui.interactionEventNames,a=0;a<o.length;++a)e.addEventListener(o[a],l(e.getId(),o[a]));s[t]=e}},z||{}),z=(z.ctrl=z.ctrl||{},z.ctrl.ViewController=function(u){var i=this,r=null;if(void 0===u.getImage())throw new Error("View does not have an image, cannot setup controller");var o=new z.image.PlaneHelper(u.getImage().getGeometry().getRealSpacing(),u.getImage().getGeometry().getOrientation(),u.getOrientation());this.getPlaneHelper=function(){return o},this.initialise=function(){this.setWindowLevelPresetById(0),this.setCurrentPosition(this.getPositionFromPlanePoint(0,0))},this.getWindowLevelPresetsNames=function(){return u.getWindowPresetsNames()},this.addWindowLevelPresets=function(e){return u.addWindowPresets(e)},this.setWindowLevelPreset=function(e){u.setWindowLevelPreset(e)},this.setWindowLevelPresetById=function(e){u.setWindowLevelPresetById(e)},this.isPlaying=function(){return null!==r},this.getCurrentPosition=function(){return u.getCurrentPosition()},this.getCurrentIndex=function(){return u.getCurrentIndex()},this.getCurrentOrientedIndex=function(){var e,t=u.getCurrentIndex();return void 0!==u.getOrientation()&&(e=o.getImageDeOrientedVector3D(new z.math.Vector3D(t.get(0),t.get(1),t.get(2))),t=new z.math.Index([e.getX(),e.getY(),e.getZ()])),t},this.getScrollIndex=function(){return u.getScrollIndex()},this.getCurrentScrollIndexValue=function(){return u.getCurrentIndex().get(u.getScrollIndex())},this.getOrigin=function(e){return u.getOrigin(e)},this.getCurrentScrollPosition=function(){var e=u.getScrollIndex();return u.getCurrentPosition().get(e)},this.generateImageData=function(e,t){u.generateImageData(e,t)},this.setImage=function(e){u.setImage(e)},this.get2DSpacing=function(){var e=u.getImage().getGeometry().getSpacing();return[e.get(0),e.get(1)]},this.getRescaledImageValue=function(e){var t,n,i=u.getImage();if(i.canQuantify())return t=i.getGeometry(),e=t.worldToIndex(e),t.isIndexInBounds(e)?i.getRescaledValueAtIndex(e):n},this.getPixelUnit=function(){return u.getImage().getMeta().pixelUnit},this.getImageRegionValues=function(e,t){var n,i,r=u.getImage(),o=u.getOrientation(),a=this.getCurrentIndex(),s=!0,l=(z.math.isIdentityMat33(o)||(n=z.image.getSliceIterator(r,a,s,o),n=z.image.getIteratorValues(n),(l=r.getGeometry().getSize(o).getValues())[2]=1,l=new z.image.Size(l),(o=r.getGeometry().getSpacing(o).getValues())[2]=1,o=new z.image.Spacing(o),i=new z.math.Point3D(0,0,0),i=new z.image.Geometry(i,l,o),r=new z.image.Image(i,n),a=new z.math.Index([0,0,0]),s=!1),z.image.getRegionSliceIterator(r,a,s,e,t)),o=[];return o=l?z.image.getIteratorValues(l):o},this.getImageVariableRegionValues=function(e){var e=z.image.getVariableRegionSliceIterator(u.getImage(),this.getCurrentIndex(),!0,e),t=[];return t=e?z.image.getIteratorValues(e):t},this.canQuantifyImage=function(){return u.getImage().canQuantify()},this.canWindowLevel=function(){return u.getImage().canWindowLevel()},this.canScroll=function(){return u.getImage().canScroll(u.getOrientation())},this.getImageSize=function(){return u.getImage().getGeometry().getSize(u.getOrientation())},this.getImageWorldSize=function(){var e=u.getImage().getGeometry(),t=e.getSize(u.getOrientation()).get2D(),e=e.getSpacing(u.getOrientation()).get2D();return{x:t.x*e.x,y:t.y*e.y}},this.getImageRescaledDataRange=function(){return u.getImage().getRescaledDataRange()},this.equalImageMeta=function(e){for(var t=u.getImage().getMeta(),n=Object.keys(e),i=0;i<n.length;++i){var r=n[i];if(void 0===t[r])return!1;if(t[r]!==e[r])return!1}return!0},this.canSetPosition=function(e){return u.canSetPosition(e)},this.setCurrentPosition=function(e,t){return u.setCurrentPosition(e,t)},this.getPositionFromPlanePoint=function(e,t){var n=this.getCurrentScrollIndexValue(),e=new z.math.Point3D(e,t,n),t=o.getImageOrientedVector3D(e),n=u.getImage().getGeometry().pointToWorld(t);return this.getCurrentPosition().mergeWith3D(n)},this.getPlanePositionFromPosition=function(e){e=u.getImage().getGeometry().worldToPoint(e),e=o.getImageDeOrientedVector3D(e);return{x:e.getX(),y:e.getY()}},this.setCurrentIndex=function(e,t){return u.setCurrentIndex(e,t)},this.getPlanePositionFromPlanePoint=function(e){var t=this.getCurrentScrollIndexValue(),e=new z.math.Point3D(e.x,e.y,t),t=o.getTargetDeOrientedVector3D(e),e=u.getImage().getGeometry().getRealSpacing();return new z.math.Point3D(t.getX()*e.get(0),t.getY()*e.get(1),t.getZ()*e.get(2))},this.getOffset3DFromPlaneOffset=function(e){return o.getOffset3DFromPlaneOffset(e)},this.incrementIndex=function(e,t){return u.incrementIndex(e,t)},this.decrementIndex=function(e,t){return u.decrementIndex(e,t)},this.decrementScrollIndex=function(e){return u.decrementScrollIndex(e)},this.incrementScrollIndex=function(e){return u.incrementScrollIndex(e)},this.play=function(){var e,t,n;this.canScroll()&&(null===r?(t=(e=u.getImage()).getMeta().RecommendedDisplayFrameRate,t=u.getPlaybackMilliseconds(t),n=e.getGeometry().getSize().canScroll3D(),r=setInterval(function(){var e,t;(n?i.incrementScrollIndex():i.incrementIndex(3))||(t=i.getCurrentIndex().getValues(),e=u.getOrientation(),n?t[e.getThirdColMajorDirection()]=0:t[3]=0,e=new z.math.Index(t),t=u.getImage().getGeometry(),i.setCurrentPosition(t.indexToWorld(e)))},t)):this.stop())},this.stop=function(){null!==r&&(clearInterval(r),r=null)},this.getWindowLevel=function(){return{width:u.getCurrentWindowLut().getWindowLevel().getWidth(),center:u.getCurrentWindowLut().getWindowLevel().getCenter()}},this.setWindowLevel=function(e,t){u.setWindowLevel(e,t)},this.getColourMap=function(){return u.getColourMap()},this.setColourMap=function(e){u.setColourMap(e)},this.setViewAlphaFunction=function(e){u.setAlphaFunction(e)},this.setColourMapFromName=function(e){if(!z.tool.colourMaps[e])throw new Error("Unknown colour map: '"+e+"'");this.setColourMap(z.tool.colourMaps[e])}},z||{}),z=(z.dicom=z.dicom||{},z.dicom.isNativeLittleEndian=function(){return 0<new Int8Array(new Int16Array([1]).buffer)[0]},z.dicom.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},z.dicom.DataReader=function(l,t){void 0===t&&(t=!0);var e=z.dicom.isNativeLittleEndian(),a=t!==e,n=new DataView(l);this.readUint16=function(e){return n.getUint16(e,t)},this.readInt16=function(e){return n.getInt16(e,t)},this.readUint32=function(e){return n.getUint32(e,t)},this.readBigUint64=function(e){return n.getBigUint64(e,t)},this.readInt32=function(e){return n.getInt32(e,t)},this.readBigInt64=function(e){return n.getBigInt64(e,t)},this.readFloat32=function(e){return n.getFloat32(e,t)},this.readFloat64=function(e){return n.getFloat64(e,t)},this.readBinaryArray=function(e,t){for(var n,i,r=new Uint8Array(l,e,t),o=8*r.length,a=new Uint8Array(o),s=0;s<o;++s)n=s%8,i=Math.floor(s/8),a[s]=255*(0!=(r[i]&1<<n));return a},this.readUint8Array=function(e,t){return new Uint8Array(l,e,t)},this.readInt8Array=function(e,t){return new Int8Array(l,e,t)},this.readUint16Array=function(e,t){var n=Uint16Array.BYTES_PER_ELEMENT,i=t/n,r=null;if(e%n==0)r=new Uint16Array(l,e,i),a&&z.dicom.flipArrayEndianness(r);else for(var r=new Uint16Array(i),o=0;o<i;++o)r[o]=this.readUint16(e+n*o);return r},this.readInt16Array=function(e,t){var n=Int16Array.BYTES_PER_ELEMENT,i=t/n,r=null;if(e%n==0)r=new Int16Array(l,e,i),a&&z.dicom.flipArrayEndianness(r);else for(var r=new Int16Array(i),o=0;o<i;++o)r[o]=this.readInt16(e+n*o);return r},this.readUint32Array=function(e,t){var n=Uint32Array.BYTES_PER_ELEMENT,i=t/n,r=null;if(e%n==0)r=new Uint32Array(l,e,i),a&&z.dicom.flipArrayEndianness(r);else for(var r=new Uint32Array(i),o=0;o<i;++o)r[o]=this.readUint32(e+n*o);return r},this.readUint64Array=function(e,t){var n=BigUint64Array.BYTES_PER_ELEMENT,i=t/n,r=null;if(e%n==0)r=new BigUint64Array(l,e,i),a&&z.dicom.flipArrayEndianness(r);else for(var r=new BigUint64Array(i),o=0;o<i;++o)r[o]=this.readBigUint64(e+n*o);return r},this.readInt32Array=function(e,t){var n=Int32Array.BYTES_PER_ELEMENT,i=t/n,r=null;if(e%n==0)r=new Int32Array(l,e,i),a&&z.dicom.flipArrayEndianness(r);else for(var r=new Int32Array(i),o=0;o<i;++o)r[o]=this.readInt32(e+n*o);return r},this.readInt64Array=function(e,t){var n=BigInt64Array.BYTES_PER_ELEMENT,i=t/n,r=null;if(e%n==0)r=new BigInt64Array(l,e,i),a&&z.dicom.flipArrayEndianness(r);else for(var r=new BigInt64Array(i),o=0;o<i;++o)r[o]=this.readBigInt64(e+n*o);return r},this.readFloat32Array=function(e,t){var n=Float32Array.BYTES_PER_ELEMENT,i=t/n,r=null;if(e%n==0)r=new Float32Array(l,e,i),a&&z.dicom.flipArrayEndianness(r);else for(var r=new Float32Array(i),o=0;o<i;++o)r[o]=this.readFloat32(e+n*o);return r},this.readFloat64Array=function(e,t){var n=Float64Array.BYTES_PER_ELEMENT,i=t/n,r=null;if(e%n==0)r=new Float64Array(l,e,i),a&&z.dicom.flipArrayEndianness(r);else for(var r=new Float64Array(i),o=0;o<i;++o)r[o]=this.readFloat64(e+n*o);return r}},z.dicom.DataReader.prototype.readHex=function(e){e=this.readUint16(e).toString(16);return"0x0000".substring(0,6-e.length)+e.toUpperCase()},z||{}),z=(z.dicom=z.dicom||{},z.dicom.DataWriter=function(e,n){void 0===n&&(n=!0);var i=new DataView(e);this.useUnVrForPrivateSq=!1,this.writeUint8=function(e,t){return i.setUint8(e,t),e+Uint8Array.BYTES_PER_ELEMENT},this.writeInt8=function(e,t){return i.setInt8(e,t),e+Int8Array.BYTES_PER_ELEMENT},this.writeUint16=function(e,t){return i.setUint16(e,t,n),e+Uint16Array.BYTES_PER_ELEMENT},this.writeInt16=function(e,t){return i.setInt16(e,t,n),e+Int16Array.BYTES_PER_ELEMENT},this.writeUint32=function(e,t){return i.setUint32(e,t,n),e+Uint32Array.BYTES_PER_ELEMENT},this.writeUint64=function(e,t){return i.setBigUint64(e,t,n),e+BigUint64Array.BYTES_PER_ELEMENT},this.writeInt32=function(e,t){return i.setInt32(e,t,n),e+Int32Array.BYTES_PER_ELEMENT},this.writeInt64=function(e,t){return i.setBigInt64(e,t,n),e+BigInt64Array.BYTES_PER_ELEMENT},this.writeFloat32=function(e,t){return i.setFloat32(e,t,n),e+Float32Array.BYTES_PER_ELEMENT},this.writeFloat64=function(e,t){return i.setFloat64(e,t,n),e+Float64Array.BYTES_PER_ELEMENT},this.writeHex=function(e,t){t=parseInt(t.substring(2),16);return i.setUint16(e,t,n),e+Uint16Array.BYTES_PER_ELEMENT}},z.dicom.DataWriter.prototype.writeBinaryArray=function(e,t){if(t.length%8!=0)throw new Error("Cannot write boolean array as binary.");for(var n=null,i=0,r=t.length;i<r;i+=8){for(var n=0,o=0;o<8;++o)n+=(0===t[i+o]?0:1)<<o;e=this.writeUint8(e,n)}return e},z.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},z.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},z.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},z.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},z.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},z.dicom.DataWriter.prototype.writeUint64Array=function(e,t){for(var n=0,i=t.length;n<i;++n)e=this.writeUint64(e,t[n]);return e},z.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},z.dicom.DataWriter.prototype.writeInt64Array=function(e,t){for(var n=0,i=t.length;n<i;++n)e=this.writeInt64(e,t[n]);return e},z.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},z.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},z||{}),z=(z.dicom=z.dicom||{},z.dicom.DicomElementsWrapper=function(s){this.getDEFromKey=function(e){return s[e]},this.getFromKey=function(e,t){void 0===t&&(t=!1);var n=null,e=s[e];return n=void 0!==e?1===e.value.length&&!1===t?e.value[0]:e.value:n},this.dumpToObject=function(){for(var e,t=Object.keys(s),n={},i=0,r=t.length;i<r;++i)e=s[t[i]],n[this.getTagName(e.tag)]=this.getElementAsObject(e);return n},this.getTagName=function(e){var t=e.getNameFromDictionary();return t=null===t?e.getKey2():t},this.getElementAsObject=function(e){var t=null,n=z.dicom.isPixelDataTag(e.tag),i=e.vr;if("SQ"!==i||void 0===e.value||n)t=this.getElementValueAsString(e);else for(var t=[],r=e.value,o=null,a=0;a<r.length;++a){for(var o={},s=Object.keys(r[a]),l=0;l<s.length;++l){var u=r[a][s[l]],c=this.getTagName(u.tag);"Item"!==c&&(o[c]=this.getElementAsObject(u))}t.push(o)}return{value:t,group:e.tag.getGroup(),element:e.tag.getElement(),vr:i,vl:e.vl}},this.dump=function(){for(var e=Object.keys(s),t=(o=(o=(o="\n")+"# Dicom-File-Format\n"+"\n")+"# Dicom-Meta-Information-Header\n"+"# Used TransferSyntax: ",z.dicom.isNativeLittleEndian()?o+="Little Endian Explicit\n":o+="NOT Little Endian Explicit\n",null),n=!0,i=0,r=e.length;i<r;++i){var o,a,t=s[e[i]];n&&"0x0002"!==t.tag.getGroup()&&(o+="\n# Dicom-Data-Set\n# Used TransferSyntax: ",a=z.dicom.cleanString(s.x00020010.value[0]),o=o+z.dicom.getTransferSyntaxName(a)+"\n",n=!1),o+=this.getElementAsString(t)+"\n"}return o}},z.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(z.dicom.isPixelDataTag(e.tag)&&e.undefinedLength)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.substring(0,4),10),parseInt(r.substring(o,o+2),10)-1,parseInt(r.substring(a,a+2),10)).toLocaleDateString()}else if("TM"===e.vr&&t){o=e.value[0];n=o.substring(0,2)+":"+(4<=o.length?o.substring(2,4):"00")+":"+(6<=o.length?o.substring(4,6):"00")}else for(var s=!1,l=(0!==e.vr.length&&(s="O"===e.vr[0].toUpperCase()),"FL"===e.vr||"FD"===e.vr||"DS"===e.vr),u="",c=0,d=e.value.length;c<d;++c){var g,u="";if(0!==c&&(u+="\\"),l?("string"==typeof(g=e.value[c])&&(g=z.dicom.cleanString(g)),!i(g=Number(g))&&t?u+=g.toPrecision(4):u+=g.toString()):s?(g=e.value[c].toString(16),u+=g="OB"===e.vr?"00".substring(0,2-g.length)+g:"0000".substring(0,4-g.length)+g):"string"==typeof e.value[c]?u+=z.dicom.cleanString(e.value[c]):u+=e.value[c],!(n.length+u.length<=65)){n+="...";break}n+=u}return n},z.dicom.DicomElementsWrapper.prototype.getElementValueAsStringFromKey=function(e){return this.getElementValueAsString(this.getDEFromKey(e))},z.dicom.DicomElementsWrapper.prototype.getElementAsString=function(e,t){t=t||"";var n=e.tag.getNameFromDictionary(),i=e.value.length,r=!1,o=(0!==e.vr.length&&(r="O"===e.vr[0].toUpperCase()),z.dicom.isItemDelimitationItemTag(e.tag)||z.dicom.isSequenceDelimitationItemTag(e.tag)?i=0:r&&(i=1),z.dicom.isPixelDataTag(e.tag)&&e.undefinedLength),a=null,s=(a=(a=(a=(a="(")+e.tag.getGroup().substring(2).toLowerCase()+",")+e.tag.getElement().substring(2).toLowerCase())+") "+e.vr,"SQ"!==e.vr&&1===e.value.length&&""===e.value[0]?(a+=" (no value available)",i=0):"na"===e.vr?a=a+" "+e.value[0]:o?a+=" (PixelSequence #="+i+")":a="SQ"===e.vr?(a+=" (Sequence with",e.undefinedLength?a+=" undefined":a+=" explicit",(a+=" length #=")+e.value.length+")"):r||"pi"===e.vr||"UL"===e.vr||"US"===e.vr||"SL"===e.vr||"SS"===e.vr||"FL"===e.vr||"FD"===e.vr||"AT"===e.vr?(a+=" ")+this.getElementValueAsString(e,!1):(a+=" [")+this.getElementValueAsString(e,!1)+"]",55-a.length);if(0<s)for(var l=0;l<s;++l)a+=" ";a+=" # ",e.vl<100&&(a+=" "),e.vl<10&&(a+=" "),a=(a=(a+=e.vl)+", "+i)+" "+(null!==n?n:"Unknown Tag & Data");var u=null;if("SQ"===e.vr){for(var c=0,d=e.value.length;c<d;++c){var g=e.value[c],x=Object.keys(g);if(0!==x.length){var S=g.xFFFEE000,u="(Item with";S.undefinedLength?u+=" undefined":u+=" explicit",u+=" length #="+(x.length-1)+")",S.value=[u],S.vr="na";for(var a=(a+="\n")+this.getElementAsString(S,t+" "),m=0,h=x.length;m<h;++m)"xFFFEE000"!==x[m]&&(a=(a+="\n")+this.getElementAsString(g[x[m]],t+" "));u="(ItemDelimitationItem",S.undefinedLength||(u+=" for re-encoding"),u+=")";S={tag:z.dicom.getItemDelimitationItemTag(),vr:"na",vl:"0",value:[u]};a=(a+="\n")+this.getElementAsString(S,t+" ")}}u="(SequenceDelimitationItem",e.undefinedLength||(u+=" for re-encod."),u+=")";r={tag:z.dicom.getSequenceDelimitationItemTag(),vr:"na",vl:"0",value:[u]};a=(a+="\n")+this.getElementAsString(r,t)}else if(o){for(var p=null,f=0,y=e.value.length;f<y;++f)a+="\n",(p=e.value[f]).vr="pi",a+=this.getElementAsString(p,t+" ");i={tag:z.dicom.getSequenceDelimitationItemTag(),vr:"na",vl:"0",value:["(SequenceDelimitationItem)"]};a=(a+="\n")+this.getElementAsString(i,t)}return t+a},z.dicom.DicomElementsWrapper.prototype.getFromGroupElement=function(e,t){return this.getFromKey(new z.dicom.Tag(e,t).getKey())},z.dicom.DicomElementsWrapper.prototype.getFromName=function(e){var t=null,e=z.dicom.getTagFromDictionary(e);return t=null!==e?this.getFromKey(e.getKey()):t},z.dicom.DicomElementsWrapper.prototype.getImageSize=function(){var e=this.getFromKey("x00280010");if(!e)throw new Error("Missing or empty DICOM image number of rows");var t=this.getFromKey("x00280011");if(t)return new z.image.Size([t,e,1]);throw new Error("Missing or empty DICOM image number of columns")},z.dicom.DicomElementsWrapper.prototype.getPixelSpacing=function(){for(var e=1,t=1,n=["x00280030","x00181164","x00182010","x00280034"],i=0;i<n.length;++i){var r=this.getFromKey(n[i],!0);if(r&&2===r.length){e=parseFloat(r[0]),t=parseFloat(r[1]);break}}return 0===t&&(z.logger.warn("Zero column spacing."),t=1),0===e&&(z.logger.warn("Zero row spacing."),e=1),new z.image.Spacing([t,e,1])},z.dicom.DicomElementsWrapper.prototype.getTime=function(){},z.dicom.DicomElementsWrapper.prototype.getPixelUnit=function(){var e=this.getFromKey("x00281054");return(e=e||this.getFromKey("x00541001"))||"CT"===this.getFromKey("x00080060")&&(e="HU"),e},z.dicom.getFileListFromDicomDir=function(e){var t=new z.dicom.DicomParser,e=(t.parse(e),t.getRawDicomElements());if(void 0===e.x00041220||void 0===e.x00041220.value)z.logger.warn("No Directory Record Sequence found in DICOMDIR.");else{var n=e.x00041220.value;if(0!==n.length){for(var i=[],r=null,o=null,a=0;a<n.length;++a)if(void 0!==n[a].x00041430&&void 0!==n[a].x00041430.value){var s=z.dicom.cleanString(n[a].x00041430.value[0]);if("STUDY"===s)i.push(o=[]);else if("SERIES"===s)o.push(r=[]);else if("IMAGE"===s&&void 0!==n[a].x00041500&&void 0!==n[a].x00041500.value){for(var l=n[a].x00041500.value,u="",c=0;c<l.length;++c)0!==c&&(u+="/"),u+=z.dicom.cleanString(l[c]);r.push(u)}}return i}z.logger.warn("The Directory Record Sequence of the DICOMDIR is empty.")}},z||{}),z=(z.dicom=z.dicom||{},z.getVersion=function(){return"0.31.0-beta.20"},z.dicom.hasDicomPrefix=function(e){return"DICM"===new Uint8Array(e,128,4).reduce(function(e,t){return e+String.fromCharCode(t)},"")},z.dicom.cleanString=function(e){var t=e;return t=e&&(t=e.trim())[t.length-1]===String.fromCharCode("u200B")?t.substring(0,t.length-1):t},z.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},z.dicom.DefaultTextDecoder=function(){this.decode=function(e){for(var t="",n=0,i=e.length;n<i;++n)t+=String.fromCharCode(e[n]);return t}},z.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.substring(i,i+1)];r&&(n+=r)}return n},z.dicom.getOrientationName=function(e){var t;return z.utils.arrayEquals(e,[1,0,0,0,1,0])?t="axial":z.utils.arrayEquals(e,[1,0,0,0,0,-1])?t="coronal":z.utils.arrayEquals(e,[0,1,0,0,0,-1])&&(t="sagittal"),t},z.dicom.isImplicitTransferSyntax=function(e){return"1.2.840.10008.1.2"===e},z.dicom.isBigEndianTransferSyntax=function(e){return"1.2.840.10008.1.2.2"===e},z.dicom.isJpegBaselineTransferSyntax=function(e){return"1.2.840.10008.1.2.4.50"===e||"1.2.840.10008.1.2.4.51"===e},z.dicom.isJpegRetiredTransferSyntax=function(e){return null!==e.match(/1.2.840.10008.1.2.4.5/)&&!z.dicom.isJpegBaselineTransferSyntax()&&!z.dicom.isJpegLosslessTransferSyntax()||null!==e.match(/1.2.840.10008.1.2.4.6/)},z.dicom.isJpegLosslessTransferSyntax=function(e){return"1.2.840.10008.1.2.4.57"===e||"1.2.840.10008.1.2.4.70"===e},z.dicom.isJpeglsTransferSyntax=function(e){return null!==e.match(/1.2.840.10008.1.2.4.8/)},z.dicom.isJpeg2000TransferSyntax=function(e){return null!==e.match(/1.2.840.10008.1.2.4.9/)},z.dicom.isRleTransferSyntax=function(e){return null!==e.match(/1.2.840.10008.1.2.5/)},z.dicom.getSyntaxDecompressionName=function(e){var t=null;return z.dicom.isJpeg2000TransferSyntax(e)?t="jpeg2000":z.dicom.isJpegBaselineTransferSyntax(e)?t="jpeg-baseline":z.dicom.isJpegLosslessTransferSyntax(e)?t="jpeg-lossless":z.dicom.isRleTransferSyntax(e)&&(t="rle"),t},z.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||z.dicom.isJpegBaselineTransferSyntax(e)||z.dicom.isJpegLosslessTransferSyntax(e)||z.dicom.isJpeg2000TransferSyntax(e)||z.dicom.isRleTransferSyntax(e)},z.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":z.dicom.isJpegBaselineTransferSyntax(e)?t="1.2.840.10008.1.2.4.50"===e?"JPEG Baseline":"JPEG Extended, Process 2+4":z.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":z.dicom.isJpegRetiredTransferSyntax(e)?t="Retired JPEG":z.dicom.isJpeglsTransferSyntax(e)?t="JPEG-LS":z.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":z.dicom.isRleTransferSyntax(e)&&(t="RLE"),t},z.dicom.guessTransferSyntax=function(e){var t=e.tag.getGroup();if("0x0800"!==t&&"0x0008"!==t)throw new Error("Not a valid DICOM file (no magic DICM word found and first element not in 0x0008 group)");var n=e.vr,i=n.charCodeAt(0),n=n.charCodeAt(1),i=!(65<=i&&i<=90&&65<=n&&n<=90),n=null;if("0x0008"===t)n=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)");n="1.2.840.10008.1.2.2"}t={tag:new z.dicom.Tag("0x0002","0x0010"),vr:"UI"};return t.value=[n+" "],t.vl=t.value[0].length,t.startOffset=e.startOffset,t.endOffset=t.startOffset+t.vl,t},z.dicom.getTypedArray=function(t,e,n){var i=null;try{8===t?i=new(0===e?Uint8Array:Int8Array)(n):16===t?i=new(0===e?Uint16Array:Int16Array)(n):32===t&&(i=new(0===e?Uint32Array:Int32Array)(n))}catch(e){e instanceof RangeError&&(t=Math.floor(Math.log(n)/Math.log(2)),z.logger.error("Cannot allocate array of size: "+n+" (>2^"+t+")."))}return i},z.dicom.is32bitVLVR=function(e){return z.dicom.vr32bitVL.includes(e)},z.dicom.getDataElementPrefixByteSize=function(e,t){return!t&&z.dicom.is32bitVLVR(e)?12:8},z.dicom.DicomParser=function(){this.dicomElements={};var t,n=new z.dicom.DefaultTextDecoder,i=n;this.decodeString=function(e){return n.decode(e)},this.decodeSpecialString=function(e){return i.decode(e)},this.getDefaultCharacterSet=function(){return t},this.setDefaultCharacterSet=function(e){t=e,this.setCharacterSet(e)},this.setDecoderCharacterSet=function(e){i=new TextDecoder(e)}},z.dicom.DicomParser.prototype.getRawDicomElements=function(){return this.dicomElements},z.dicom.DicomParser.prototype.getDicomElements=function(){return new z.dicom.DicomElementsWrapper(this.dicomElements)},z.dicom.DicomParser.prototype.readTag=function(e,t){var n=e.readHex(t),e=(t+=Uint16Array.BYTES_PER_ELEMENT,e.readHex(t));return t+=Uint16Array.BYTES_PER_ELEMENT,{tag:new z.dicom.Tag(n,e),endOffset:t}},z.dicom.DicomParser.prototype.readItemDataElement=function(e,t,n){var i={},r=this.readDataElement(e,t,n);if(t=r.endOffset,z.dicom.isSequenceDelimitationItemTag(r.tag))return{data:i,endOffset:r.endOffset,isSeqDelim:!0};if(i[r.tag.getKey()]={tag:r.tag,vr:"NONE",vl:r.vl,undefinedLength:r.undefinedLength},r.undefinedLength)for(var o=!1;!o;)t=(r=this.readDataElement(e,t,n)).endOffset,(o=z.dicom.isItemDelimitationItemTag(r.tag))||(i[r.tag.getKey()]=r);else{var a=t;for(t-=r.vl;t<a;)t=(r=this.readDataElement(e,t,n)).endOffset,i[r.tag.getKey()]=r}return{data:i,endOffset:t,isSeqDelim:!1}},z.dicom.DicomParser.prototype.readPixelItemDataElement=function(e,t,n){for(var i=[],r=this.readDataElement(e,t,n),o=r.vl,a=(t=r.endOffset,!1);!a;)t=(r=this.readDataElement(e,t,n)).endOffset,(a=z.dicom.isSequenceDelimitationItemTag(r.tag))||(r.vr="OB",i.push(r));return{data:i,endOffset:t,offsetTableVl:o}},z.dicom.DicomParser.prototype.readDataElement=function(e,t,n){var i=this.readTag(e,t),r=i.tag,i=(t=i.endOffset,null),o=!1,a=(r.isWithVR()?n?(null===(i=r.getVrFromDictionary())&&(i="UN"),o=!0):(i=this.decodeString(e.readUint8Array(t,2)),t+=2*Uint8Array.BYTES_PER_ELEMENT,(o=z.dicom.is32bitVLVR(i))&&(t+=2*Uint8Array.BYTES_PER_ELEMENT)):(i="NONE",o=!0),0),o=(o?(a=e.readUint32(t),t+=Uint32Array.BYTES_PER_ELEMENT):(a=e.readUint16(t),t+=Uint16Array.BYTES_PER_ELEMENT),!1),s=(4294967295===a&&(o=!0,a=0),r.isPrivate()&&"UN"===i&&0===a&&(i="SQ"),t),l=s+a,u=null;if(z.dicom.isPixelDataTag(r)&&o){var c=this.readPixelItemDataElement(e,t,n);t=c.endOffset,s+=c.offsetTableVl,u=c.data,a=(l=t)-s}else if("SQ"===i){var d,u=[];if(o){for(var g=!1;!g;)g=(d=this.readItemDataElement(e,t,n)).isSeqDelim,t=d.endOffset,g||u.push(d.data);a=(l=t)-s}else if(0!==a){for(var x=t+a;t<x;)d=this.readItemDataElement(e,t,n),u.push(d.data),t=d.endOffset;a=(l=t)-s}}c={tag:r,vr:i,vl:a,startOffset:s,endOffset:l};return o&&(c.undefinedLength=o),u&&(c.items=u),c},z.dicom.DicomParser.prototype.interpretElement=function(e,t,n,i){var r=e.tag,o=e.vl,a=e.vr,s=e.startOffset,l=null,r=z.dicom.isPixelDataTag(r),u=z.dicom.vrTypes[a];if(r)if(e.undefinedLength){for(var l=[],c=0;c<e.items.length;++c)l.push(this.interpretElement(e.items[c],t,n,i));delete e.items}else if(8<i&&"OB"===a&&z.logger.warn("Reading DICOM pixel data with bitsAllocated>8 and OB VR."),l=[],1===i)l.push(t.readBinaryArray(s,o));else if(8===i)0===n?l.push(t.readUint8Array(s,o)):l.push(t.readInt8Array(s,o));else{if(16!==i)throw new Error("Unsupported bits allocated: "+i);0===n?l.push(t.readUint16Array(s,o)):l.push(t.readInt16Array(s,o))}else if(void 0!==u)if("Uint8"===u)l=t.readUint8Array(s,o);else if("Uint16"===u)l=t.readUint16Array(s,o);else if("Uint32"===u)l=t.readUint32Array(s,o);else if("Uint64"===u)l=t.readUint64Array(s,o);else if("Int16"===u)l=t.readInt16Array(s,o);else if("Int32"===u)l=t.readInt32Array(s,o);else if("Int64"===u)l=t.readInt64Array(s,o);else if("Float32"===u)l=t.readFloat32Array(s,o);else if("Float64"===u)l=t.readFloat64Array(s,o);else{if("string"!==u)throw Error("Unknown VR type: "+u);r=t.readUint8Array(s,o);l=(l=z.dicom.charSetString.includes(a)?this.decodeSpecialString(r):this.decodeString(r)).split("\\")}else if("ox"===a)l=8===i?t.readUint8Array(s,o):t.readUint16Array(s,o);else if("xs"===a)l=0===n?t.readUint16Array(s,o):t.readInt16Array(s,o);else if("AT"===a){var d=t.readUint16Array(s,o);l=[];for(var g=0,x=d.length;g<x;g+=2){var S=d[g].toString(16),m=d[g+1].toString(16),h=(h=(h="(")+("0000".substring(0,4-S.length)+S.toUpperCase())+",")+("0000".substring(0,4-m.length)+m.toUpperCase())+")";l.push(h)}}else if("SQ"===a){l=[];for(var p=0;p<e.items.length;++p){for(var f=e.items[p],y={},D=Object.keys(f),v=0;v<D.length;++v){var C=f[D[v]];C.value=this.interpretElement(C,t,n,i),y[D[v]]=C}l.push(y)}delete e.items}else"NONE"===a?l=[]:z.logger.warn("Unknown VR: "+a);return l},z.dicom.DicomParser.prototype.interpret=function(e,t,n,i){for(var r=Object.keys(e),o=0;o<r.length;++o){var a=e[r[o]];void 0===a.value&&(a.value=this.interpretElement(a,t,n,i)),delete a.startOffset,delete a.endOffset}},z.dicom.DicomParser.prototype.parse=function(e){var t=0,n="",i=null,r=new z.dicom.DataReader(e),o=new z.dicom.DataReader(e),t=128,a=this.decodeString(r.readUint8Array(t,4));if(t+=4*Uint8Array.BYTES_PER_ELEMENT,"DICM"===a){(i=this.readDataElement(r,t,!1)).value=this.interpretElement(i,r),t=i.endOffset,this.dicomElements[i.tag.getKey()]=i;for(var s=t+parseInt(i.value[0],10);t<s;)t=(i=this.readDataElement(r,t,!1)).endOffset,this.dicomElements[i.tag.getKey()]=i;if(void 0===(i=this.dicomElements.x00020010))throw new Error("Not a valid DICOM file (no TransferSyntaxUID found)");i.value=this.interpretElement(i,r),n=z.dicom.cleanString(i.value[0])}else{z.logger.warn("No DICM prefix, trying to guess tansfer syntax.");i=this.readDataElement(o,0,!1),a=z.dicom.guessTransferSyntax(i);this.dicomElements[a.tag.getKey()]=a,n=z.dicom.cleanString(a.value[0]),t=0}if(!z.dicom.isReadSupportedTransferSyntax(n))throw new Error("Unsupported DICOM transfer syntax: '"+n+"' ("+z.dicom.getTransferSyntaxName(n)+")");var l,u,c,d=!1;for(z.dicom.isImplicitTransferSyntax(n)&&(d=!0),z.dicom.isBigEndianTransferSyntax(n)&&(o=new z.dicom.DataReader(e,!1));t<e.byteLength;)t=(i=this.readDataElement(o,t,d)).endOffset,void 0===this.dicomElements[i.tag.getKey()]?this.dicomElements[i.tag.getKey()]=i:z.logger.warn("Not saving duplicate tag: "+i.tag.getKey());if(isNaN(t))throw new Error("Problem while parsing, bad offset");if(e.byteLength!==t&&z.logger.warn("Did not reach the end of the buffer: "+t+" != "+e.byteLength),void 0!==this.dicomElements.x7FE00010&&(void(l=0)!==(i=this.dicomElements.x00280103)?(i.value=this.interpretElement(i,o),l=i.value[0]):z.logger.warn("Reading DICOM pixel data with default pixelRepresentation."),u=16,void 0!==(i=this.dicomElements.x00280100)?(i.value=this.interpretElement(i,o),u=i.value[0]):z.logger.warn("Reading DICOM pixel data with default bitsAllocated.")),void 0!==this.getDefaultCharacterSet()&&this.setDecoderCharacterSet(this.getDefaultCharacterSet()),void 0!==(i=this.dicomElements.x00080005)&&(i.value=this.interpretElement(i,o),1===i.value.length?c=z.dicom.cleanString(i.value[0]):(c=z.dicom.cleanString(i.value[1]),z.logger.warn("Unsupported character set with code extensions: '"+c+"'.")),this.setDecoderCharacterSet(z.dicom.getUtfLabel(c))),this.interpret(this.dicomElements,o,l,u),void 0!==(i=this.dicomElements.x7FE00010)&&i.undefinedLength){var g=1,x=(void 0!==this.dicomElements.x00280008&&(g=z.dicom.cleanString(this.dicomElements.x00280008.value[0])),i.value);if(1<x.length&&x.length>g){for(var S=x.length/g,m=[],h=0;h<g;++h){for(var p=h*S,f=0,y=0;y<S;++y)f+=x[p+y].length;for(var D=new x[0].constructor(f),v=0,C=0;C<S;++C)D.set(x[p+C],v),v+=x[p+C].length;m[h]=D}i.value=m}}},z||{}),z=(z.dicom=z.dicom||{},z.dicom.Tag=function(e,t){if(!e||void 0===e)throw new Error("Cannot create tag with no group.");if(6!==e.length||!e.startsWith("0x"))throw new Error("Cannot create tag with badly formed group.");if(!t||void 0===t)throw new Error("Cannot create tag with no element.");if(6!==t.length||!t.startsWith("0x"))throw new Error("Cannot create tag with badly formed element.");this.getGroup=function(){return e},this.getElement=function(){return t}},z.dicom.Tag.prototype.equals=function(e){return null!=e&&this.getGroup()===e.getGroup()&&this.getElement()===e.getElement()},z.dicom.tagCompareFunction=function(e,t){var n=parseInt(e.getGroup())-parseInt(t.getGroup());return n=0===n?parseInt(e.getElement())-parseInt(t.getElement()):n},z.dicom.Tag.prototype.getKey=function(){return"x"+this.getGroup().substring(2)+this.getElement().substring(2)},z.dicom.Tag.prototype.getKey2=function(){return this.getGroup().substring(2)+this.getElement().substring(2)},z.dicom.Tag.prototype.getGroupName=function(){return z.dicom.TagGroups[this.getGroup().substring(1)]},z.dicom.getTagFromKey=function(e){return new z.dicom.Tag("0x"+e.substring(1,5),"0x"+e.substring(5,9))},z.dicom.Tag.prototype.isWithVR=function(){var e=this.getElement();return!("0xFFFE"===this.getGroup()&&("0xE000"===e||"0xE00D"===e||"0xE0DD"===e))},z.dicom.Tag.prototype.isPrivate=function(){return parseInt(this.getGroup().substring(2),16)%2==1},z.dicom.Tag.prototype.getInfoFromDictionary=function(){var e=null;return e=void 0!==z.dicom.dictionary[this.getGroup()]&&void 0!==z.dicom.dictionary[this.getGroup()][this.getElement()]?z.dicom.dictionary[this.getGroup()][this.getElement()]:e},z.dicom.Tag.prototype.getVrFromDictionary=function(){var e=null,t=this.getInfoFromDictionary();return e=null!==t?t[0]:e},z.dicom.Tag.prototype.getNameFromDictionary=function(){var e=null,t=this.getInfoFromDictionary();return e=null!==t?t[2]:e},z.dicom.getTransferSyntaxUIDTag=function(){return new z.dicom.Tag("0x0002","0x0010")},z.dicom.getFileMetaInformationGroupLengthTag=function(){return new z.dicom.Tag("0x0002","0x0000")},z.dicom.isFileMetaInformationGroupLengthTag=function(e){return e.equals(z.dicom.getFileMetaInformationGroupLengthTag())},z.dicom.getItemTag=function(){return new z.dicom.Tag("0xFFFE","0xE000")},z.dicom.isItemTag=function(e){return e.equals(z.dicom.getItemTag())},z.dicom.getItemDelimitationItemTag=function(){return new z.dicom.Tag("0xFFFE","0xE00D")},z.dicom.isItemDelimitationItemTag=function(e){return e.equals(z.dicom.getItemDelimitationItemTag())},z.dicom.getSequenceDelimitationItemTag=function(){return new z.dicom.Tag("0xFFFE","0xE0DD")},z.dicom.isSequenceDelimitationItemTag=function(e){return e.equals(z.dicom.getSequenceDelimitationItemTag())},z.dicom.getPixelDataTag=function(){return new z.dicom.Tag("0x7FE0","0x0010")},z.dicom.isPixelDataTag=function(e){return e.equals(z.dicom.getPixelDataTag())},z.dicom.getTagFromDictionary=function(e){if(null==e)return null;for(var t=null,n=null,i=z.dicom.dictionary,r=Object.keys(i),o=!1,a=0,s=r.length;a<s;++a){for(var l,t=r[a],u=0,c=(l=Object.keys(i[t])).length;u<c;++u)if(n=l[u],i[t][n][2]===e){o=!0;break}if(o)break}var d=null;return d=o?new z.dicom.Tag(t,n):d},z||{}),l=(z.dicom=z.dicom||{},z.dicom.getDwvUIDPrefix=function(){return"1.2.826.0.1.3680043.9.7278.1"},0),z=(z.dicom.getUID=function(e){var t=z.dicom.getDwvUIDPrefix()+".",n="";if("ImplementationClassUID"===e)n=t+z.getVersion();else{var i="."+(new Date).toISOString().replace(/\D/g,"").substring(0,14),r="."+(l+=1),n=t,o=Math.min(e.length,64-(t.length+r.length+i.length));if(1<o){for(var a="",s=0;s<o;++s)a+=e.charCodeAt(s);n+=a.substring(0,o)}n+=i+r}return n},z.dicom.isEven=function(e){return e%2==0},z.dicom.isTypedArrayVr=function(e){e=z.dicom.vrTypes[e];return void 0!==e&&"string"!==e},z.dicom.isStringVr=function(e){e=z.dicom.vrTypes[e];return void 0!==e&&"string"===e},z.dicom.isVrToPad=function(e){return z.dicom.isStringVr(e)||"OB"===e},z.dicom.getVrPad=function(e){var t=0;return t=z.dicom.isStringVr(e)?"UI"===e?"\0":" ":t},z.dicom.uint8ArrayPush=function(e,t){var n=new Uint8Array(e.length+1);return n.set(e),n.set(t,e.length),n},z.dicom.padOBValue=function(e){if(null==e||void 0===e.length)throw new Error("Cannot pad undefined or null OB value.");if(0!==e.length&&void 0!==e[0].length){for(var t=0,n=0;n<e.length;++n)t+=e[n].length;z.dicom.isEven(t)||(e[e.length-1]=z.dicom.uint8ArrayPush(e[e.length-1],0))}else z.dicom.isEven(e.length)||(e=z.dicom.uint8ArrayPush(e,0));return e},z.dicom.flattenArrayOfTypedArrays=function(e){var t=e.length,n=e[0].length;if(void 0===n)return e;for(var i=new e[0].constructor(t*n),r=0;r<t;r++)i.set(e[r],r*n);return i},z.dicom.DefaultTextEncoder=function(){this.encode=function(e){for(var t=new Uint8Array(e.length),n=0,i=e.length;n<i;++n)t[n]=e.charCodeAt(n);return t}},z.dicom.DicomWriter=function(){this.useUnVrForPrivateSq=!1;var i={copy:function(e){return e},remove:function(){return null},clear:function(e){return e.value=[],e},replace:function(e,t){return e.value=[t],e}},t=(this.rules={default:{action:"copy",value:null}},new z.dicom.DefaultTextEncoder),n=t;this.encodeString=function(e){return t.encode(e)},this.encodeSpecialString=function(e){return n.encode(e)},this.useSpecialTextEncoder=function(){n=new TextEncoder},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=e.tag.getGroupName(),n=e.tag.getNameFromDictionary(),n=void 0!==this.rules[e.tag.getKey()]?this.rules[e.tag.getKey()]:null!==n&&void 0!==this.rules[n]?this.rules[n]:void 0!==this.rules[t]?this.rules[t]:this.rules.default;return i[n.action](e,n.value)}},z.dicom.DicomWriter.prototype.writeDataElementItems=function(e,t,n,i){for(var r=0;r<n.length;++r){var o=n[r],a=Object.keys(o);if(0!==a.length){var s=!1,l=(void 0!==o.xFFFEE000.undefinedLength&&(s=o.xFFFEE000.undefinedLength),{tag:z.dicom.getItemTag(),vr:"NONE",vl:s?4294967295:o.xFFFEE000.vl,value:[]});t=this.writeDataElement(e,l,t,i);for(var u=0;u<a.length;++u)"xFFFEE000"!==a[u]&&"xFFFEE00D"!==a[u]&&(t=this.writeDataElement(e,o[a[u]],t,i));s&&(l={tag:z.dicom.getItemDelimitationItemTag(),vr:"NONE",vl:0,value:[]},t=this.writeDataElement(e,l,t,i))}}return t},z.dicom.DicomWriter.prototype.writeDataElementValue=function(e,t,n,i,r){var o=n;if("NONE"!==t.vr)if(i instanceof Uint8Array)n=i.length===8*t.vl?e.writeBinaryArray(n,i):e.writeUint8Array(n,i);else if(i instanceof Int8Array)n=e.writeInt8Array(n,i);else if(i instanceof Uint16Array)n=e.writeUint16Array(n,i);else if(i instanceof Int16Array)n=e.writeInt16Array(n,i);else if(i instanceof Uint32Array)n=e.writeUint32Array(n,i);else if(i instanceof Int32Array)n=e.writeInt32Array(n,i);else if(i instanceof BigUint64Array)n=e.writeUint64Array(n,i);else if(i instanceof BigInt64Array)n=e.writeInt64Array(n,i);else{var a=z.dicom.vrTypes[t.vr];if(void 0!==a)if("Uint8"===a)n=e.writeUint8Array(n,i);else if("Uint16"===a)n=e.writeUint16Array(n,i);else if("Int16"===a)n=e.writeInt16Array(n,i);else if("Uint32"===a)n=e.writeUint32Array(n,i);else if("Int32"===a)n=e.writeInt32Array(n,i);else if("Uint64"===a)n=e.writeUint64Array(n,i);else if("Int64"===a)n=e.writeInt64Array(n,i);else if("Float32"===a)n=e.writeFloat32Array(n,i);else if("Float64"===a)n=e.writeFloat64Array(n,i);else{if("string"!==a)throw Error("Unknown VR type: "+a);n=e.writeUint8Array(n,i)}else if("SQ"===t.vr)n=this.writeDataElementItems(e,n,i,r);else if("AT"===t.vr)for(var s=0;s<i.length;++s){var l=i[s]+"",u=l.substring(1,5),l=l.substring(6,10),u=parseInt(u,16),l=parseInt(l,16),u=new Uint16Array([u,l]);n=e.writeUint16Array(n,u)}else z.logger.warn("Unknown VR: "+t.vr)}return"SQ"!==t.vr&&"NONE"!==t.vr&&(a=n-o)!==t.vl&&z.logger.warn("Offset difference and VL are not equal: "+a+" != "+t.vl+", vr:"+t.vr),n},z.dicom.DicomWriter.prototype.writePixelDataElementValue=function(e,t,n,i,r){var o=!1;if(o=void 0!==t.undefinedLength?t.undefinedLength:o){var a={};a.xFFFEE000={tag:z.dicom.getItemTag(),vr:"NONE",vl:0,value:[]};for(var s=0;s<i.length;++s)a[s]={tag:z.dicom.getItemTag(),vr:t.vr,vl:i[s].length,value:i[s]};n=this.writeDataElementItems(e,n,[a],r)}else{o=i[0];1<i.length&&(o=z.dicom.flattenArrayOfTypedArrays(i)),n=this.writeDataElementValue(e,t,n,o,r)}return n},z.dicom.DicomWriter.prototype.writeDataElement=function(e,t,n,i){var r=t.tag.isWithVR(),o=!(!i&&r)||z.dicom.is32bitVLVR(t.vr),a=(n=e.writeHex(n,t.tag.getGroup()),n=e.writeHex(n,t.tag.getElement()),t.vr),r=(this.useUnVrForPrivateSq&&t.tag.isPrivate()&&"SQ"===a&&(z.logger.warn("Write element using VR=UN for private sequence."),a="UN"),r&&!i&&(n=e.writeUint8Array(n,this.encodeString(a)),o&&(n+=2)),!1),a=("SQ"!==t.vr&&!z.dicom.isPixelDataTag(t.tag)||void 0===t.undefinedLength||(r=t.undefinedLength),!1),s=(z.dicom.isItemTag(t.tag)&&void 0!==t.undefinedLength&&(a=t.undefinedLength),t.vl),a=((r||a)&&(s=4294967295),n=o?e.writeUint32(n,s):e.writeUint16(n,s),t.value);return void 0===a&&(a=[]),n=z.dicom.isPixelDataTag(t.tag)?this.writePixelDataElementValue(e,t,n,a,i):this.writeDataElementValue(e,t,n,a,i),r&&(o={tag:z.dicom.getSequenceDelimitationItemTag(),vr:"NONE",vl:0,value:[]},n=this.writeDataElement(e,o,n,i)),n},z.dicom.DicomWriter.prototype.getBuffer=function(e){for(var t,n,i,r=z.dicom.cleanString(e.x00020010.value[0]),o=z.dicom.isImplicitTransferSyntax(r),r=z.dicom.isBigEndianTransferSyntax(r),a=(void 0===e.x00080005||void 0!==(y=z.dicom.cleanString(e.x00080005.value[0]))&&"ISO-IR 6"!==y&&(z.logger.debug("Change charset to UTF, was: "+y),this.useSpecialTextEncoder(),e.x00080005.value=["ISO_IR 192"]),void 0!==e.x00280100&&(t=e.x00280100.value[0]),132),s=0,l=[],u=[],c=0,d=z.dicom.getFileMetaInformationGroupLengthTag(),g=new z.dicom.Tag("0x0002","0x0001"),x=new z.dicom.Tag("0x0002","0x0012"),S=new z.dicom.Tag("0x0002","0x0013"),m=Object.keys(e),h=0,p=m.length;h<p;++h)null===(n=this.getElementToWrite(e[m[h]]))||d.equals(n.tag)||g.equals(n.tag)||x.equals(n.tag)||S.equals(n.tag)||(s=0,z.dicom.checkUnknownVR(n),this.setElementValue(n,n.value,o,t),s=(s+="Meta Element"===(i=n.tag.getGroupName())?z.dicom.getDataElementPrefixByteSize(n.vr,!1):z.dicom.getDataElementPrefixByteSize(n.vr,o))+n.vl,"Meta Element"===i?(l.push(n),c+=s):u.push(n),a+=s);function f(e,t){return z.dicom.tagCompareFunction(e.tag,t.tag)}var y=z.dicom.getDicomElement("FileMetaInformationVersion"),D=z.dicom.getDataElementPrefixByteSize(y.vr,!1),y=(D+=this.setElementValue(y,[0,1],!1),l.push(y),c+=D,a+=D,z.dicom.getDicomElement("ImplementationClassUID")),D=z.dicom.getDataElementPrefixByteSize(y.vr,!1),y=(D+=this.setElementValue(y,[z.dicom.getUID("ImplementationClassUID")],!1),l.push(y),c+=D,a+=D,z.dicom.getDicomElement("ImplementationVersionName")),D=z.dicom.getDataElementPrefixByteSize(y.vr,!1),v="DWV_"+z.getVersion(),v=(D+=this.setElementValue(y,[v],!1),l.push(y),c+=D,a+=D,l.sort(f),u.sort(f),z.dicom.getDicomElement("FileMetaInformationGroupLength")),y=z.dicom.getDataElementPrefixByteSize(v.vr,!1),D=(a+=y+=this.setElementValue(v,new Uint32Array([c]),!1),new ArrayBuffer(a)),C=new z.dicom.DataWriter(D),T=new z.dicom.DataWriter(D,!r),L=128,L=C.writeUint8Array(L,this.encodeString("DICM"));L=this.writeDataElement(C,v,L,!1);for(var I=0,P=l.length;I<P;++I)L=this.writeDataElement(C,l[I],L,!1);r=132+y+c;L!==r&&z.logger.warn("Bad size calculation... meta offset: "+L+", calculated size:"+r+" (diff:"+(L-r)+")"),T.useUnVrForPrivateSq=this.useUnVrForPrivateSq;for(var w=0,A=u.length;w<A;++w)L=this.writeDataElement(T,u[w],L,o);return L!==a&&z.logger.warn("Bad size calculation... final offset: "+L+", calculated size:"+a+" (diff:"+(L-a)+")"),D},z.dicom.checkUnknownVR=function(e){var t;"UN"===e.vr&&null!==(t=e.tag.getVrFromDictionary())&&e.vr!==t&&(e.vr=t,z.logger.info("Element "+e.tag.getGroup()+" "+e.tag.getElement()+" VR changed from UN to "+e.vr))},z.dicom.getDicomElement=function(e){e=z.dicom.getTagFromDictionary(e);return{tag:e,vr:e.getVrFromDictionary()}},z.dicom.getBpeForVrType=function(e){var t;return"Uint8"===e?t=Uint8Array.BYTES_PER_ELEMENT:"Uint16"===e?t=Uint16Array.BYTES_PER_ELEMENT:"Int16"===e?t=Int16Array.BYTES_PER_ELEMENT:"Uint32"===e?t=Uint32Array.BYTES_PER_ELEMENT:"Int32"===e?t=Int32Array.BYTES_PER_ELEMENT:"Float32"===e?t=Float32Array.BYTES_PER_ELEMENT:"Float64"===e?t=Float64Array.BYTES_PER_ELEMENT:"Uint64"===e?t=BigUint64Array.BYTES_PER_ELEMENT:"Int64"===e&&(t=BigInt64Array.BYTES_PER_ELEMENT),t},z.dicom.DicomWriter.prototype.setElementValue=function(e,t,n,i){var r=0;if("SQ"===e.vr){if(null!==t&&0!==t){var o=[],a=!1;void 0!==e.undefinedLength&&(a=e.undefinedLength,delete e.undefinedLength);for(var s=0;s<t.length;++s){var l=t[s],u={},c=0;if(null!==l&&0!==l){for(var d=Object.keys(l),g=0,x=d.length;g<x;++g){var S=d[g],m=l[S];z.dicom.isItemTag(m.tag)||(c+=this.setElementValue(m,m.value,n,i),u[S]=m,c+=z.dicom.getDataElementPrefixByteSize(m.vr,n))}var h={tag:z.dicom.getItemTag(),vr:"NONE",vl:c,value:[]};a&&(h.undefinedLength=a),u[h.tag.getKey()]=h,c+=z.dicom.getDataElementPrefixByteSize(h.vr,n),a&&(c+=z.dicom.getDataElementPrefixByteSize("NONE",n)),r+=c,o.push(u)}}a&&(r+=z.dicom.getDataElementPrefixByteSize("NONE",n)),e.value=o,e.vl=r,a&&(e.undefinedLength=a)}}else{if(z.dicom.isVrToPad(e.vr)&&(f=z.dicom.getVrPad(e.vr),z.dicom.isStringVr(e.vr)?(f=z.dicom.charSetString.includes(e.vr)?(t=this.encodeSpecialString(t.join("\\")),this.encodeSpecialString(f)):(t=this.encodeString(t.join("\\")),this.encodeString(f)),z.dicom.isEven(t.length)||(t=z.dicom.uint8ArrayPush(t,f))):"OB"===e.vr&&(t=z.dicom.padOBValue(t))),r=0,"AT"===e.vr)r=4*t.length;else if("xs"===e.vr)r=t.length*Uint16Array.BYTES_PER_ELEMENT;else if(z.dicom.isTypedArrayVr(e.vr)||"ox"===e.vr){if(z.dicom.isPixelDataTag(e.tag)&&Array.isArray(t))for(var r=0,p=0;p<t.length;++p)r+=t[p].length;else r=t.length;var f=z.dicom.vrTypes[e.vr];if(z.dicom.isPixelDataTag(e.tag)||"ox"===e.vr)e.undefinedLength?r=(r+=y=z.dicom.getDataElementPrefixByteSize("NONE",n))+y*t.length+y:void 0!==i&&(1===i?r/=8:16===i&&(r*=Uint16Array.BYTES_PER_ELEMENT));else{if(void 0===f)throw Error("Unsupported element: "+e.vr);var y=z.dicom.getBpeForVrType(f);if(void 0===y)throw Error("Unknown bytes per element for VR type: "+f);r*=y}}else r=t.length;e.value=t,e.vl=r}return r},z.dicom.getElementsFromJSONTags=function(e){for(var t=Object.keys(e),n={},i=0,r=t.length;i<r;++i){var o=z.dicom.getTagFromDictionary(t[i]);if(o){var a,s=o.getVrFromDictionary(),l=!1,u=e[t[i]];if("SQ"===s){var c=[];if(void 0!==u.undefinedLength&&(l=u.undefinedLength),void 0!==u.value&&null!==u.value)for(var d=0;d<u.value.length;++d)c.push(z.dicom.getElementsFromJSONTags(u.value[d]));else z.logger.trace("Undefined or null jsonTag SQ value.");a=c}else a=Array.isArray(u)?u:[u];s={tag:o,vr:s,value:a};l&&(s.undefinedLength=l),n[o.getKey()]=s}}return n},z||{}),z=(z.dicom=z.dicom||{},z.dicom.dictionary={"0x0000":{"0x0000":["UL","1","CommandGroupLength"],"0x0001":["UL","1","CommandLengthToEnd"],"0x0002":["UI","1","AffectedSOPClassUID"],"0x0003":["UI","1","RequestedSOPClassUID"],"0x0010":["SH","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","CommandDataSetType"],"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"],"0x1000":["UI","1","AffectedSOPInstanceUID"],"0x1001":["UI","1","RequestedSOPInstanceUID"],"0x1002":["US","1","EventTypeID"],"0x1005":["AT","1-n","AttributeIdentifierList"],"0x1008":["US","1","ActionTypeID"],"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":["LT","1","DialogReceiver"],"0x4010":["LT","1","TerminalType"],"0x5010":["SH","1","MessageSetID"],"0x5020":["SH","1","EndMessageID"],"0x5110":["LT","1","DisplayFormat"],"0x5120":["LT","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","CommandMagnificationType"],"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"],"0x0026":["UR","1","SourcePresentationAddress"],"0x0027":["UR","1","SendingPresentationAddress"],"0x0028":["UR","1","ReceivingPresentationAddress"],"0x0031":["OB","1","RTVMetaInformationVersion"],"0x0032":["UI","1","RTVCommunicationSOPClassUID"],"0x0033":["UI","1","RTVCommunicationSOPInstanceUID"],"0x0035":["OB","1","RTVSourceIdentifier"],"0x0036":["OB","1","RTVFlowIdentifier"],"0x0037":["UL","1","RTVFlowRTPSamplingRate"],"0x0038":["FD","1","RTVFlowActualFrameDuration"],"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"],"0x0055":["AE","1","StationAETitle"],"0x0056":["CS","1","InstanceAvailability"],"0x0058":["UI","1-n","FailedSOPInstanceUIDList"],"0x0060":["CS","1","Modality"],"0x0061":["CS","1-n","ModalitiesInStudy"],"0x0062":["UI","1-n","SOPClassesInStudy"],"0x0063":["SQ","1","AnatomicRegionsInStudyCodeSequence"],"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"],"0x0109":["SQ","1","CodingSchemeResourcesSequence"],"0x010A":["CS","1","CodingSchemeURLType"],"0x010B":["CS","1","ContextGroupExtensionFlag"],"0x010C":["UI","1","CodingSchemeUID"],"0x010D":["UI","1","ContextGroupExtensionCreatorUID"],"0x010E":["UR","1","CodingSchemeURL"],"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"],"0x0122":["LO","1","MappingResourceName"],"0x0123":["SQ","1","ContextGroupIdentificationSequence"],"0x0124":["SQ","1","MappingResourceIdentificationSequence"],"0x0201":["SH","1","TimezoneOffsetFromUTC"],"0x0202":["","",""],"0x0220":["SQ","1","ResponsibleGroupCodeSequence"],"0x0221":["CS","1","EquipmentModality"],"0x0222":["LO","1","ManufacturerRelatedModelGroup"],"0x0300":["SQ","1","PrivateDataElementCharacteristicsSequence"],"0x0301":["US","1","PrivateGroupReference"],"0x0302":["LO","1","PrivateCreatorReference"],"0x0303":["CS","1","BlockIdentifyingInformationStatus"],"0x0304":["US","1-n","NonidentifyingPrivateElements"],"0x0305":["SQ","1","DeidentificationActionSequence"],"0x0306":["US","1-n","IdentifyingPrivateElements"],"0x0307":["CS","1","DeidentificationAction"],"0x0308":["US","1","PrivateDataElement"],"0x0309":["UL","1-3","PrivateDataElementValueMultiplicity"],"0x030A":["CS","1","PrivateDataElementValueRepresentation"],"0x030B":["UL","1-2","PrivateDataElementNumberOfItems"],"0x030C":["UC","1","PrivateDataElementName"],"0x030D":["UC","1","PrivateDataElementKeyword"],"0x030E":["UT","1","PrivateDataElementDescription"],"0x030F":["UT","1","PrivateDataElementEncoding"],"0x0310":["SQ","1","PrivateDataElementDefinitionSequence"],"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"],"0x1041":["SQ","1","InstitutionalDepartmentTypeCodeSequence"],"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"],"0x1156":["SQ","1","DefinitionSourceSequence"],"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"],"0x119A":["SQ","1","OtherFailuresSequence"],"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"],"0x3002":["UI","1-n","AvailableTransferSyntaxUID"],"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"],"0x0026":["SQ","1","SourcePatientGroupIdentificationSequence"],"0x0027":["SQ","1","GroupOfPatientsIdentificationSequence"],"0x0028":["US","3","SubjectRelativePositionInImage"],"0x0030":["DA","1","PatientBirthDate"],"0x0032":["TM","1","PatientBirthTime"],"0x0033":["LO","1","PatientBirthDateInAlternativeCalendar"],"0x0034":["LO","1","PatientDeathDateInAlternativeCalendar"],"0x0035":["CS","1","PatientAlternativeCalendar"],"0x0040":["CS","1","PatientSex"],"0x0050":["SQ","1","PatientInsurancePlanCodeSequence"],"0x0101":["SQ","1","PatientPrimaryLanguageCodeSequence"],"0x0102":["SQ","1","PatientPrimaryLanguageModifierCodeSequence"],"0x0200":["CS","1","QualityControlSubject"],"0x0201":["SQ","1","QualityControlSubjectTypeCodeSequence"],"0x0212":["UC","1","StrainDescription"],"0x0213":["LO","1","StrainNomenclature"],"0x0214":["LO","1","StrainStockNumber"],"0x0215":["SQ","1","StrainSourceRegistryCodeSequence"],"0x0216":["SQ","1","StrainStockSequence"],"0x0217":["LO","1","StrainSource"],"0x0218":["UT","1","StrainAdditionalInformation"],"0x0219":["SQ","1","StrainCodeSequence"],"0x0221":["SQ","1","GeneticModificationsSequence"],"0x0222":["UC","1","GeneticModificationsDescription"],"0x0223":["LO","1","GeneticModificationsNomenclature"],"0x0229":["SQ","1","GeneticModificationsCodeSequence"],"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"],"0x1022":["DS","1","PatientBodyMassIndex"],"0x1023":["DS","1","MeasuredAPDimension"],"0x1024":["DS","1","MeasuredLateralDimension"],"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"],"0x0052":["FD","1","LongitudinalTemporalOffsetFromEvent"],"0x0053":["CS","1","LongitudinalTemporalEventType"],"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"],"0x0086":["DA","1","EthicsCommitteeApprovalEffectivenessStartDate"],"0x0087":["DA","1","EthicsCommitteeApprovalEffectivenessEndDate"]},"0x0014":{"0x0000":["UL","1","GenericGroupLength"],"0x0023":["ST","1","CADFileFormat"],"0x0024":["ST","1","ComponentReferenceSystem"],"0x0025":["ST","1","ComponentManufacturingProcedure"],"0x0028":["ST","1","ComponentManufacturer"],"0x0030":["DS","1-n","MaterialThickness"],"0x0032":["DS","1-n","MaterialPipeDiameter"],"0x0034":["DS","1-n","MaterialIsolationDiameter"],"0x0042":["ST","1","MaterialGrade"],"0x0044":["ST","1","MaterialPropertiesDescription"],"0x0045":["ST","1","MaterialPropertiesFileFormatRetired"],"0x0046":["LT","1","MaterialNotes"],"0x0050":["CS","1","ComponentShape"],"0x0052":["CS","1","CurvatureType"],"0x0054":["DS","1","OuterDiameter"],"0x0056":["DS","1","InnerDiameter"],"0x0100":["LO","1-n","ComponentWelderIDs"],"0x0101":["CS","1","SecondaryApprovalStatus"],"0x0102":["DA","1","SecondaryReviewDate"],"0x0103":["TM","1","SecondaryReviewTime"],"0x0104":["PN","1","SecondaryReviewerName"],"0x0105":["ST","1","RepairID"],"0x0106":["SQ","1","MultipleComponentApprovalSequence"],"0x0107":["CS","1-n","OtherApprovalStatus"],"0x0108":["CS","1-n","OtherSecondaryApprovalStatus"],"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"],"0x3100":["LT","1","LinearityCorrectionTechnique"],"0x3101":["LT","1","BeamHardeningCorrectionTechnique"],"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-n","ImageQualityIndicatorType"],"0x40A1":["LO","1-n","ImageQualityIndicatorMaterial"],"0x40A2":["LO","1-n","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"]},"0x0016":{"0x0000":["UL","1","GenericGroupLength"],"0x0001":["DS","1","WhitePoint"],"0x0002":["DS","3","PrimaryChromaticities"],"0x0003":["UT","1","BatteryLevel"],"0x0004":["DS","1","ExposureTimeInSeconds"],"0x0005":["DS","1","FNumber"],"0x0006":["IS","1","OECFRows"],"0x0007":["IS","1","OECFColumns"],"0x0008":["UC","1-n","OECFColumnNames"],"0x0009":["DS","1-n","OECFValues"],"0x000A":["IS","1","SpatialFrequencyResponseRows"],"0x000B":["IS","1","SpatialFrequencyResponseColumns"],"0x000C":["UC","1-n","SpatialFrequencyResponseColumnNames"],"0x000D":["DS","1-n","SpatialFrequencyResponseValues"],"0x000E":["IS","1","ColorFilterArrayPatternRows"],"0x000F":["IS","1","ColorFilterArrayPatternColumns"],"0x0010":["DS","1-n","ColorFilterArrayPatternValues"],"0x0011":["US","1","FlashFiringStatus"],"0x0012":["US","1","FlashReturnStatus"],"0x0013":["US","1","FlashMode"],"0x0014":["US","1","FlashFunctionPresent"],"0x0015":["US","1","FlashRedEyeMode"],"0x0016":["US","1","ExposureProgram"],"0x0017":["UT","1","SpectralSensitivity"],"0x0018":["IS","1","PhotographicSensitivity"],"0x0019":["IS","1","SelfTimerMode"],"0x001A":["US","1","SensitivityType"],"0x001B":["IS","1","StandardOutputSensitivity"],"0x001C":["IS","1","RecommendedExposureIndex"],"0x001D":["IS","1","ISOSpeed"],"0x001E":["IS","1","ISOSpeedLatitudeyyy"],"0x001F":["IS","1","ISOSpeedLatitudezzz"],"0x0020":["UT","1","EXIFVersion"],"0x0021":["DS","1","ShutterSpeedValue"],"0x0022":["DS","1","ApertureValue"],"0x0023":["DS","1","BrightnessValue"],"0x0024":["DS","1","ExposureBiasValue"],"0x0025":["DS","1","MaxApertureValue"],"0x0026":["DS","1","SubjectDistance"],"0x0027":["US","1","MeteringMode"],"0x0028":["US","1","LightSource"],"0x0029":["DS","1","FocalLength"],"0x002A":["IS","2-4","SubjectArea"],"0x002B":["OB","1","MakerNote"],"0x0030":["DS","1","Temperature"],"0x0031":["DS","1","Humidity"],"0x0032":["DS","1","Pressure"],"0x0033":["DS","1","WaterDepth"],"0x0034":["DS","1","Acceleration"],"0x0035":["DS","1","CameraElevationAngle"],"0x0036":["DS","1-2","FlashEnergy"],"0x0037":["IS","2","SubjectLocation"],"0x0038":["DS","1","PhotographicExposureIndex"],"0x0039":["US","1","SensingMethod"],"0x003A":["US","1","FileSource"],"0x003B":["US","1","SceneType"],"0x0041":["US","1","CustomRendered"],"0x0042":["US","1","ExposureMode"],"0x0043":["US","1","WhiteBalance"],"0x0044":["DS","1","DigitalZoomRatio"],"0x0045":["IS","1","FocalLengthIn35mmFilm"],"0x0046":["US","1","SceneCaptureType"],"0x0047":["US","1","GainControl"],"0x0048":["US","1","Contrast"],"0x0049":["US","1","Saturation"],"0x004A":["US","1","Sharpness"],"0x004B":["OB","1","DeviceSettingDescription"],"0x004C":["US","1","SubjectDistanceRange"],"0x004D":["UT","1","CameraOwnerName"],"0x004E":["DS","4","LensSpecification"],"0x004F":["UT","1","LensMake"],"0x0050":["UT","1","LensModel"],"0x0051":["UT","1","LensSerialNumber"],"0x0061":["CS","1","InteroperabilityIndex"],"0x0062":["OB","1","InteroperabilityVersion"],"0x0070":["OB","1","GPSVersionID"],"0x0071":["CS","1","GPSLatitudeRef"],"0x0072":["DS","3","GPSLatitude"],"0x0073":["CS","1","GPSLongitudeRef"],"0x0074":["DS","3","GPSLongitude"],"0x0075":["US","1","GPSAltitudeRef"],"0x0076":["DS","1","GPSAltitude"],"0x0077":["DT","1","GPSTimeStamp"],"0x0078":["UT","1","GPSSatellites"],"0x0079":["CS","1","GPSStatus"],"0x007A":["CS","1","GPSMeasureMode"],"0x007B":["DS","1","GPSDOP"],"0x007C":["CS","1","GPSSpeedRef"],"0x007D":["DS","1","GPSSpeed"],"0x007E":["CS","1","GPSTrackRef"],"0x007F":["DS","1","GPSTrack"],"0x0080":["CS","1","GPSImgDirectionRef"],"0x0081":["DS","1","GPSImgDirection"],"0x0082":["UT","1","GPSMapDatum"],"0x0083":["CS","1","GPSDestLatitudeRef"],"0x0084":["DS","3","GPSDestLatitude"],"0x0085":["CS","1","GPSDestLongitudeRef"],"0x0086":["DS","3","GPSDestLongitude"],"0x0087":["CS","1","GPSDestBearingRef"],"0x0088":["DS","1","GPSDestBearing"],"0x0089":["CS","1","GPSDestDistanceRef"],"0x008A":["DS","1","GPSDestDistance"],"0x008B":["OB","1","GPSProcessingMethod"],"0x008C":["OB","1","GPSAreaInformation"],"0x008D":["DT","1","GPSDateStamp"],"0x008E":["IS","1","GPSDifferential"],"0x1001":["CS","1","LightSourcePolarization"],"0x1002":["DS","1","EmitterColorTemperature"],"0x1003":["CS","1","ContactMethod"],"0x1004":["CS","1-n","ImmersionMedia"],"0x1005":["DS","1","OpticalMagnificationFactor"]},"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"],"0x0061":["DS","1",""],"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"],"0x1009":["UT","1","UniqueDeviceIdentifier"],"0x100A":["SQ","1","UDISequence"],"0x100B":["UI","1-n","ManufacturerDeviceClassUID"],"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"],"0x11A3":["DS","1","CompressionPressure"],"0x11A4":["LO","1","PaddleDescription"],"0x11A5":["DS","1","CompressionContactArea"],"0x11B0":["LO","1","AcquisitionMode"],"0x11B1":["LO","1","DoseModeName"],"0x11B2":["CS","1","AcquiredSubtractionMaskFlag"],"0x11B3":["CS","1","FluoroscopyPersistenceFlag"],"0x11B4":["CS","1","FluoroscopyLastImageHoldPersistenceFlag"],"0x11B5":["IS","1","UpperLimitNumberOfPersistentFluoroscopyFrames"],"0x11B6":["CS","1","ContrastBolusAutoInjectionTriggerFlag"],"0x11B7":["FD","1","ContrastBolusInjectionDelay"],"0x11B8":["SQ","1","XAAcquisitionPhaseDetailsSequence"],"0x11B9":["FD","1","XAAcquisitionFrameRate"],"0x11BA":["SQ","1","XAPlaneDetailsSequence"],"0x11BB":["LO","1","AcquisitionFieldOfViewLabel"],"0x11BC":["SQ","1","XRayFilterDetailsSequence"],"0x11BD":["FD","1","XAAcquisitionDuration"],"0x11BE":["CS","1","ReconstructionPipelineType"],"0x11BF":["SQ","1","ImageFilterDetailsSequence"],"0x11C0":["CS","1","AppliedMaskSubtractionFlag"],"0x11C1":["SQ","1","RequestedSeriesDescriptionCodeSequence"],"0x1200":["DA","1-n","DateOfLastCalibration"],"0x1201":["TM","1-n","TimeOfLastCalibration"],"0x1202":["DT","1","DateTimeOfLastCalibration"],"0x1203":["DT","1","CalibrationDateTime"],"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"],"0x1271":["FD","1","WaterEquivalentDiameter"],"0x1272":["SQ","1","WaterEquivalentDiameterCalculationMethodCodeSequence"],"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"],"0x1320":["FL","1","B1rms"],"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"],"0x1630":["CS","1","OutlineShapeType"],"0x1631":["FD","1","OutlineLeftVerticalEdge"],"0x1632":["FD","1","OutlineRightVerticalEdge"],"0x1633":["FD","1","OutlineUpperHorizontalEdge"],"0x1634":["FD","1","OutlineLowerHorizontalEdge"],"0x1635":["FD","2","CenterOfCircularOutline"],"0x1636":["FD","1","DiameterOfCircularOutline"],"0x1637":["UL","1","NumberOfPolygonalVertices"],"0x1638":["OF","1","VerticesOfThePolygonalOutline"],"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"],"0x5011":["SQ","1","TransducerIdentificationSequence"],"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"],"0x6070":["US","1","ActiveImageAreaOverlayGroup"],"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-n","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"],"0x9361":["CS","1","MultienergyCTAcquisition"],"0x9362":["SQ","1","MultienergyCTAcquisitionSequence"],"0x9363":["SQ","1","MultienergyCTProcessingSequence"],"0x9364":["SQ","1","MultienergyCTCharacteristicsSequence"],"0x9365":["SQ","1","MultienergyCTXRaySourceSequence"],"0x9366":["US","1","XRaySourceIndex"],"0x9367":["UC","1","XRaySourceID"],"0x9368":["CS","1","MultienergySourceTechnique"],"0x9369":["DT","1","SourceStartDateTime"],"0x936A":["DT","1","SourceEndDateTime"],"0x936B":["US","1","SwitchingPhaseNumber"],"0x936C":["DS","1","SwitchingPhaseNominalDuration"],"0x936D":["DS","1","SwitchingPhaseTransitionDuration"],"0x936E":["DS","1","EffectiveBinEnergy"],"0x936F":["SQ","1","MultienergyCTXRayDetectorSequence"],"0x9370":["US","1","XRayDetectorIndex"],"0x9371":["UC","1","XRayDetectorID"],"0x9372":["CS","1","MultienergyDetectorType"],"0x9373":["ST","1","XRayDetectorLabel"],"0x9374":["DS","1","NominalMaxEnergy"],"0x9375":["DS","1","NominalMinEnergy"],"0x9376":["US","1-n","ReferencedXRayDetectorIndex"],"0x9377":["US","1-n","ReferencedXRaySourceIndex"],"0x9378":["US","1-n","ReferencedPathIndex"],"0x9379":["SQ","1","MultienergyCTPathSequence"],"0x937A":["US","1","MultienergyCTPathIndex"],"0x937B":["UT","1","MultienergyAcquisitionDescription"],"0x937C":["FD","1","MonoenergeticEnergyEquivalent"],"0x937D":["SQ","1","MaterialCodeSequence"],"0x937E":["CS","1","DecompositionMethod"],"0x937F":["UT","1","DecompositionDescription"],"0x9380":["SQ","1","DecompositionAlgorithmIdentificationSequence"],"0x9381":["SQ","1","DecompositionMaterialSequence"],"0x9382":["SQ","1","MaterialAttenuationSequence"],"0x9383":["DS","1","PhotonEnergy"],"0x9384":["DS","1","XRayMassAttenuationCoefficient"],"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"],"0x9621":["SQ","1","FunctionalMRSequence"],"0x9622":["CS","1","FunctionalSettlingPhaseFramesPresent"],"0x9623":["DT","1","FunctionalSyncPulse"],"0x9624":["CS","1","SettlingPhaseFrame"],"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"],"0x9900":["LO","1","ReferenceLocationLabel"],"0x9901":["UT","1","ReferenceLocationDescription"],"0x9902":["SQ","1","ReferenceBasisCodeSequence"],"0x9903":["SQ","1","ReferenceGeometryCodeSequence"],"0x9904":["DS","1","OffsetDistance"],"0x9905":["CS","1","OffsetDirection"],"0x9906":["SQ","1","PotentialScheduledProtocolCodeSequence"],"0x9907":["SQ","1","PotentialRequestedProcedureCodeSequence"],"0x9908":["UC","1-n","PotentialReasonsForProcedure"],"0x9909":["SQ","1","PotentialReasonsForProcedureCodeSequence"],"0x990A":["UC","1-n","PotentialDiagnosticTasks"],"0x990B":["SQ","1","ContraindicationsCodeSequence"],"0x990C":["SQ","1","ReferencedDefinedProtocolSequence"],"0x990D":["SQ","1","ReferencedPerformedProtocolSequence"],"0x990E":["SQ","1","PredecessorProtocolSequence"],"0x990F":["UT","1","ProtocolPlanningInformation"],"0x9910":["UT","1","ProtocolDesignRationale"],"0x9911":["SQ","1","PatientSpecificationSequence"],"0x9912":["SQ","1","ModelSpecificationSequence"],"0x9913":["SQ","1","ParametersSpecificationSequence"],"0x9914":["SQ","1","InstructionSequence"],"0x9915":["US","1","InstructionIndex"],"0x9916":["LO","1","InstructionText"],"0x9917":["UT","1","InstructionDescription"],"0x9918":["CS","1","InstructionPerformedFlag"],"0x9919":["DT","1","InstructionPerformedDateTime"],"0x991A":["UT","1","InstructionPerformanceComment"],"0x991B":["SQ","1","PatientPositioningInstructionSequence"],"0x991C":["SQ","1","PositioningMethodCodeSequence"],"0x991D":["SQ","1","PositioningLandmarkSequence"],"0x991E":["UI","1","TargetFrameOfReferenceUID"],"0x991F":["SQ","1","AcquisitionProtocolElementSpecificationSequence"],"0x9920":["SQ","1","AcquisitionProtocolElementSequence"],"0x9921":["US","1","ProtocolElementNumber"],"0x9922":["LO","1","ProtocolElementName"],"0x9923":["UT","1","ProtocolElementCharacteristicsSummary"],"0x9924":["UT","1","ProtocolElementPurpose"],"0x9930":["CS","1","AcquisitionMotion"],"0x9931":["SQ","1","AcquisitionStartLocationSequence"],"0x9932":["SQ","1","AcquisitionEndLocationSequence"],"0x9933":["SQ","1","ReconstructionProtocolElementSpecificationSequence"],"0x9934":["SQ","1","ReconstructionProtocolElementSequence"],"0x9935":["SQ","1","StorageProtocolElementSpecificationSequence"],"0x9936":["SQ","1","StorageProtocolElementSequence"],"0x9937":["LO","1","RequestedSeriesDescription"],"0x9938":["US","1-n","SourceAcquisitionProtocolElementNumber"],"0x9939":["US","1-n","SourceAcquisitionBeamNumber"],"0x993A":["US","1-n","SourceReconstructionProtocolElementNumber"],"0x993B":["SQ","1","ReconstructionStartLocationSequence"],"0x993C":["SQ","1","ReconstructionEndLocationSequence"],"0x993D":["SQ","1","ReconstructionAlgorithmSequence"],"0x993E":["SQ","1","ReconstructionTargetCenterLocationSequence"],"0x9941":["UT","1","ImageFilterDescription"],"0x9942":["FD","1","CTDIvolNotificationTrigger"],"0x9943":["FD","1","DLPNotificationTrigger"],"0x9944":["CS","1","AutoKVPSelectionType"],"0x9945":["FD","1","AutoKVPUpperBound"],"0x9946":["FD","1","AutoKVPLowerBound"],"0x9947":["CS","1","ProtocolDefinedPatientPosition"],"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"],"0x103F":["LO","1","TargetPositionReferenceIndicator"],"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"],"0x1036":["SQ","1","SourceOfCornealSizeDataCodeSequence"],"0x1037":["FL","1","TargetRefraction"],"0x1039":["CS","1","RefractiveProcedureOccurred"],"0x1040":["SQ","1","RefractiveSurgeryTypeCodeSequence"],"0x1044":["SQ","1","OphthalmicUltrasoundMethodCodeSequence"],"0x1045":["SQ","1","SurgicallyInducedAstigmatismSequence"],"0x1046":["CS","1","TypeOfOpticalCorrection"],"0x1047":["SQ","1","ToricIOLPowerSequence"],"0x1048":["SQ","1","PredictedToricErrorSequence"],"0x1049":["CS","1","PreSelectedForImplantation"],"0x104A":["SQ","1","ToricIOLPowerForExactEmmetropiaSequence"],"0x104B":["SQ","1","ToricIOLPowerForExactTargetRefractionSequence"],"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"],"0x112A":["SQ","1","CalculationCommentSequence"],"0x112B":["CS","1","CalculationCommentType"],"0x112C":["LT","1","CalculationComment"],"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"],"0x1612":["SQ","1","DerivationAlgorithmSequence"],"0x1615":["SQ","1","OphthalmicImageTypeCodeSequence"],"0x1616":["LO","1","OphthalmicImageTypeDescription"],"0x1618":["SQ","1","ScanPatternTypeCodeSequence"],"0x1620":["SQ","1","ReferencedSurfaceMeshIdentificationSequence"],"0x1622":["CS","1","OphthalmicVolumetricPropertiesFlag"],"0x1624":["FL","1","OphthalmicAnatomicReferencePointXCoordinate"],"0x1626":["FL","1","OphthalmicAnatomicReferencePointYCoordinate"],"0x1628":["SQ","1","OphthalmicEnFaceImageQualityRatingSequence"],"0x1630":["DS","1","QualityThreshold"],"0x1640":["SQ","1","OCTBscanAnalysisAcquisitionParametersSequence"],"0x1642":["UL","1","NumberOfBscansPerFrame"],"0x1643":["FL","1","BscanSlabThickness"],"0x1644":["FL","1","DistanceBetweenBscanSlabs"],"0x1645":["FL","1","BscanCycleTime"],"0x1646":["FL","1-n","BscanCycleTimeVector"],"0x1649":["FL","1","AscanRate"],"0x1650":["FL","1","BscanRate"],"0x1658":["UL","1","SurfaceMeshZPixelOffset"]},"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"],"0x1224":["OW","1","SegmentedAlphaPaletteColorLookupTableData"],"0x1230":["SQ","1","StoredValueColorRangeSequence"],"0x1231":["FD","1","MinimumStoredValueMapped"],"0x1232":["FD","1","MaximumStoredValueMapped"],"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"],"0x2002":["CS","1","ColorSpace"],"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"],"0x1065":["SQ","1","RequestedLateralityCodeSequence"],"0x1066":["UT","1","ReasonForVisit"],"0x1067":["SQ","1","ReasonForVisitCodeSequence"],"0x1070":["LO","1","RequestedContrastAgent"],"0x4000":["LT","1","StudyComments"]},"0x0034":{"0x0000":["UL","1","GenericGroupLength"],"0x0001":["SQ","1","FlowIdentifierSequence"],"0x0002":["OB","1","FlowIdentifier"],"0x0003":["UI","1","FlowTransferSyntaxUID"],"0x0004":["UL","1","FlowRTPSamplingRate"],"0x0005":["OB","1","SourceIdentifier"],"0x0007":["OB","1","FrameOriginTimestamp"],"0x0008":["CS","1","IncludesImagingSubject"],"0x0009":["SQ","1","FrameUsefulnessGroupSequence"],"0x000A":["SQ","1","RealTimeBulkDataFlowSequence"],"0x000B":["SQ","1","CameraPositionGroupSequence"],"0x000C":["CS","1","IncludesInformation"],"0x000D":["SQ","1","TimeOfFrameGroupSequence"]},"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"],"0x0310":["UI","1","MultiplexGroupUID"],"0x0311":["DS","1","PowerlineFrequency"],"0x0312":["SQ","1","ChannelImpedanceSequence"],"0x0313":["DS","1","ImpedanceValue"],"0x0314":["DT","1","ImpedanceMeasurementDateTime"],"0x0315":["DS","1","ImpedanceMeasurementFrequency"],"0x0316":["CS","1","ImpedanceMeasurementCurrentType"]},"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"],"0x0560":["SQ","1","SpecimenDescriptionSequence"],"0x0562":["SQ","1","IssuerOfTheSpecimenIdentifierSequence"],"0x059A":["SQ","1","SpecimenTypeCodeSequence"],"0x0600":["LO","1","SpecimenShortDescription"],"0x0602":["UT","1","SpecimenDetailedDescription"],"0x0610":["SQ","1","SpecimenPreparationSequence"],"0x0612":["SQ","1","SpecimenPreparationStepContentItemSequence"],"0x0620":["SQ","1","SpecimenLocalizationContentItemSequence"],"0x06FA":["LO","1","SlideIdentifier"],"0x0710":["SQ","1","WholeSlideMicroscopyImageFrameTypeSequence"],"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"],"0x4008":["DT","1","ScheduledProcedureStepExpirationDateTime"],"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"],"0x4070":["SQ","1","OutputDestinationSequence"],"0x4071":["SQ","1","DICOMStorageSequence"],"0x4072":["SQ","1","STOWRSStorageSequence"],"0x4073":["UR","1","StorageURL"],"0x4074":["SQ","1","XDSStorageSequence"],"0x8302":["DS","1","EntranceDoseInmGy"],"0x8303":["CS","1","EntranceDoseDerivation"],"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"],"0x9213":["FD","1","DoubleFloatRealWorldValueLastValueMapped"],"0x9214":["FD","1","DoubleFloatRealWorldValueFirstValueMapped"],"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"],"0xA033":["DT","1","ObservationStartDateTime"],"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"],"0xA801":["SQ","1","TabulatedValuesSequence"],"0xA802":["UL","1","NumberOfTableRows"],"0xA803":["UL","1","NumberOfTableColumns"],"0xA804":["UL","1","TableRowNumber"],"0xA805":["UL","1","TableColumnNumber"],"0xA806":["SQ","1","TableRowDefinitionSequence"],"0xA807":["SQ","1","TableColumnDefinitionSequence"],"0xA808":["SQ","1","CellValuesSequence"],"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"],"0x0015":["UL","1","EncapsulatedDocumentLength"]},"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"],"0x0100":["SQ","1","ApprovalSequence"],"0x0101":["SQ","1","AssertionCodeSequence"],"0x0102":["UI","1","AssertionUID"],"0x0103":["SQ","1","AsserterIdentificationSequence"],"0x0104":["DT","1","AssertionDateTime"],"0x0105":["DT","1","AssertionExpirationDateTime"],"0x0106":["UT","1","AssertionComments"],"0x0107":["SQ","1","RelatedAssertionSequence"],"0x0108":["UI","1","ReferencedAssertionUID"],"0x0109":["SQ","1","ApprovalSubjectSequence"],"0x010A":["SQ","1","OrganizationalRoleCodeSequence"]},"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"],"0x0047":["SQ","1","CornealSizeSequence"],"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"],"0x0110":["SQ","1","CorneaMeasurementsSequence"],"0x0111":["SQ","1","SourceOfCorneaMeasurementDataCodeSequence"],"0x0112":["SQ","1","SteepCornealAxisSequence"],"0x0113":["SQ","1","FlatCornealAxisSequence"],"0x0114":["FD","1","CornealPower"],"0x0115":["FD","1","CornealAxis"],"0x0116":["SQ","1","CorneaMeasurementMethodCodeSequence"],"0x0117":["FL","1","RefractiveIndexOfCornea"],"0x0118":["FL","1","RefractiveIndexOfAqueousHumor"],"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"],"0x0302":["UL","1","NumberOfOpticalPaths"],"0x0303":["UL","1","TotalPixelMatrixFocalPlanes"]},"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"],"0x0021":["ST","1","LongDeviceDescription"]},"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"],"0x0007":["SQ","1","SegmentationAlgorithmIdentificationSequence"],"0x0008":["CS","1","SegmentAlgorithmType"],"0x0009":["LO","1-n","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"],"0x0013":["CS","1","SegmentsOverlap"],"0x0020":["UT","1","TrackingID"],"0x0021":["UI","1","TrackingUID"]},"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"],"0x0022":["OD","1","DoublePointCoordinatesData"],"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":["OL","1","LongPrimitivePointIndexList"],"0x0041":["OL","1","LongTrianglePointIndexList"],"0x0042":["OL","1","LongEdgePointIndexList"],"0x0043":["OL","1","LongVertexPointIndexList"],"0x0101":["SQ","1","TrackSetSequence"],"0x0102":["SQ","1","TrackSequence"],"0x0103":["OW","1","RecommendedDisplayCIELabValueList"],"0x0104":["SQ","1","TrackingAlgorithmIdentificationSequence"],"0x0105":["UL","1","TrackSetNumber"],"0x0106":["LO","1","TrackSetLabel"],"0x0107":["UT","1","TrackSetDescription"],"0x0108":["SQ","1","TrackSetAnatomicalTypeCodeSequence"],"0x0121":["SQ","1","MeasurementsSequence"],"0x0124":["SQ","1","TrackSetStatisticsSequence"],"0x0125":["OF","1","FloatingPointValues"],"0x0129":["OL","1","TrackPointIndexList"],"0x0130":["SQ","1","TrackStatisticsSequence"],"0x0132":["SQ","1","MeasurementValuesSequence"],"0x0133":["SQ","1","DiffusionAcquisitionCodeSequence"],"0x0134":["SQ","1","DiffusionModelCodeSequence"]},"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":["SQ","1","ViewOrientationModifierCodeSequence"],"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"],"0x7001":["CS","1","ModelModification"],"0x7002":["CS","1","ModelMirroring"],"0x7003":["SQ","1","ModelUsageCodeSequence"],"0x7004":["UI","1","ModelGroupUID"],"0x7005":["UR","1","RelativeURIReferenceWithinEncapsulatedDocument"]},"0x006A":{"0x0000":["UL","1","GenericGroupLength"],"0x0001":["CS","1","AnnotationCoordinateType"],"0x0002":["SQ","1","AnnotationGroupSequence"],"0x0003":["UI","1","AnnotationGroupUID"],"0x0005":["LO","1","AnnotationGroupLabel"],"0x0006":["UT","1","AnnotationGroupDescription"],"0x0007":["CS","1","AnnotationGroupGenerationType"],"0x0008":["SQ","1","AnnotationGroupAlgorithmIdentificationSequence"],"0x0009":["SQ","1","AnnotationPropertyCategoryCodeSequence"],"0x000A":["SQ","1","AnnotationPropertyTypeCodeSequence"],"0x000B":["SQ","1","AnnotationPropertyTypeModifierCodeSequence"],"0x000C":["UL","1","NumberOfAnnotations"],"0x000D":["CS","1","AnnotationAppliesToAllOpticalPaths"],"0x000E":["SH","1-n","ReferencedOpticalPathIdentifier"],"0x000F":["CS","1","AnnotationAppliesToAllZPlanes"],"0x0010":["FD","1-n","CommonZCoordinateValue"],"0x0011":["OL","1","AnnotationIndexList"]},"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"],"0x030B":["FD","16","FrameOfReferenceToDisplayedCoordinateSystemTransformationMatrix"],"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"],"0x031B":["UI","1","ReferencedFiducialUID"],"0x031C":["SQ","1","FiducialSetSequence"],"0x031E":["SQ","1","FiducialSequence"],"0x031F":["SQ","1","FiducialsPropertyCategoryCodeSequence"],"0x0401":["US","3","GraphicLayerRecommendedDisplayCIELabValue"],"0x0402":["SQ","1","BlendingSequence"],"0x0403":["FL","1","RelativeOpacity"],"0x0404":["SQ","1","ReferencedSpatialRegistrationSequence"],"0x0405":["CS","1","BlendingPosition"],"0x1101":["UI","1","PresentationDisplayCollectionUID"],"0x1102":["UI","1","PresentationSequenceCollectionUID"],"0x1103":["US","1","PresentationSequencePositionIndex"],"0x1104":["SQ","1","RenderedImageReferenceSequence"],"0x1201":["SQ","1","VolumetricPresentationStateInputSequence"],"0x1202":["CS","1","PresentationInputType"],"0x1203":["US","1","InputSequencePositionIndex"],"0x1204":["CS","1","Crop"],"0x1205":["US","1-n","CroppingSpecificationIndex"],"0x1206":["CS","1","CompositingMethod"],"0x1207":["US","1","VolumetricPresentationInputNumber"],"0x1208":["CS","1","ImageVolumeGeometry"],"0x1209":["UI","1","VolumetricPresentationInputSetUID"],"0x120A":["SQ","1","VolumetricPresentationInputSetSequence"],"0x120B":["CS","1","GlobalCrop"],"0x120C":["US","1-n","GlobalCroppingSpecificationIndex"],"0x120D":["CS","1","RenderingMethod"],"0x1301":["SQ","1","VolumeCroppingSequence"],"0x1302":["CS","1","VolumeCroppingMethod"],"0x1303":["FD","6","BoundingBoxCrop"],"0x1304":["SQ","1","ObliqueCroppingPlaneSequence"],"0x1305":["FD","4","Plane"],"0x1306":["FD","3","PlaneNormal"],"0x1309":["US","1","CroppingSpecificationNumber"],"0x1501":["CS","1","MultiPlanarReconstructionStyle"],"0x1502":["CS","1","MPRThicknessType"],"0x1503":["FD","1","MPRSlabThickness"],"0x1505":["FD","3","MPRTopLeftHandCorner"],"0x1507":["FD","3","MPRViewWidthDirection"],"0x1508":["FD","1","MPRViewWidth"],"0x150C":["UL","1","NumberOfVolumetricCurvePoints"],"0x150D":["OD","1","VolumetricCurvePoints"],"0x1511":["FD","3","MPRViewHeightDirection"],"0x1512":["FD","1","MPRViewHeight"],"0x1602":["CS","1","RenderProjection"],"0x1603":["FD","3","ViewpointPosition"],"0x1604":["FD","3","ViewpointLookAtPoint"],"0x1605":["FD","3","ViewpointUpDirection"],"0x1606":["FD","6","RenderFieldOfView"],"0x1607":["FD","1","SamplingStepSize"],"0x1701":["CS","1","ShadingStyle"],"0x1702":["FD","1","AmbientReflectionIntensity"],"0x1703":["FD","3","LightDirection"],"0x1704":["FD","1","DiffuseReflectionIntensity"],"0x1705":["FD","1","SpecularReflectionIntensity"],"0x1706":["FD","1","Shininess"],"0x1801":["SQ","1","PresentationStateClassificationComponentSequence"],"0x1802":["CS","1","ComponentType"],"0x1803":["SQ","1","ComponentInputSequence"],"0x1804":["US","1","VolumetricPresentationInputIndex"],"0x1805":["SQ","1","PresentationStateCompositorComponentSequence"],"0x1806":["SQ","1","WeightingTransferFunctionSequence"],"0x1807":["US","3","WeightingLookupTableDescriptor"],"0x1808":["OB","1","WeightingLookupTableData"],"0x1901":["SQ","1","VolumetricAnnotationSequence"],"0x1903":["SQ","1","ReferencedStructuredContextSequence"],"0x1904":["UI","1","ReferencedContentItem"],"0x1905":["SQ","1","VolumetricPresentationInputAnnotationSequence"],"0x1907":["CS","1","AnnotationClipping"],"0x1A01":["CS","1","PresentationAnimationStyle"],"0x1A03":["FD","1","RecommendedAnimationRate"],"0x1A04":["SQ","1","AnimationCurveSequence"],"0x1A05":["FD","1","AnimationStepSize"],"0x1A06":["FD","1","SwivelRange"],"0x1A07":["OD","1","VolumetricCurveUpDirections"],"0x1A08":["SQ","1","VolumeStreamSequence"],"0x1A09":["LO","1","RGBATransferFunctionDescription"],"0x1B01":["SQ","1","AdvancedBlendingSequence"],"0x1B02":["US","1","BlendingInputNumber"],"0x1B03":["SQ","1","BlendingDisplayInputSequence"],"0x1B04":["SQ","1","BlendingDisplaySequence"],"0x1B06":["CS","1","BlendingMode"],"0x1B07":["CS","1","TimeSeriesBlending"],"0x1B08":["CS","1","GeometryForDisplay"],"0x1B11":["SQ","1","ThresholdSequence"],"0x1B12":["SQ","1","ThresholdValueSequence"],"0x1B13":["CS","1","ThresholdType"],"0x1B14":["FD","1","ThresholdValue"]},"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"],"0x005E":["AE","1-n","SelectorAEValue"],"0x005F":["AS","1-n","SelectorASValue"],"0x0060":["AT","1-n","SelectorATValue"],"0x0061":["DA","1-n","SelectorDAValue"],"0x0062":["CS","1-n","SelectorCSValue"],"0x0063":["DT","1-n","SelectorDTValue"],"0x0064":["IS","1-n","SelectorISValue"],"0x0065":["OB","1","SelectorOBValue"],"0x0066":["LO","1-n","SelectorLOValue"],"0x0067":["OF","1","SelectorOFValue"],"0x0068":["LT","1","SelectorLTValue"],"0x0069":["OW","1","SelectorOWValue"],"0x006A":["PN","1-n","SelectorPNValue"],"0x006B":["TM","1-n","SelectorTMValue"],"0x006C":["SH","1-n","SelectorSHValue"],"0x006D":["UN","1","SelectorUNValue"],"0x006E":["ST","1","SelectorSTValue"],"0x006F":["UC","1-n","SelectorUCValue"],"0x0070":["UT","1","SelectorUTValue"],"0x0071":["UR","1","SelectorURValue"],"0x0072":["DS","1-n","SelectorDSValue"],"0x0073":["OD","1","SelectorODValue"],"0x0074":["FD","1-n","SelectorFDValue"],"0x0075":["OL","1","SelectorOLValue"],"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"],"0x0081":["OV","1","SelectorOVValue"],"0x0082":["SV","1-n","SelectorSVValue"],"0x0083":["UV","1-n","SelectorUVValue"],"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"],"0x1007":["SQ","1","ProcedureStepProgressParametersSequence"],"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"],"0x1401":["SQ","1","BrachyTaskSequence"],"0x1402":["DS","1","ContinuationStartTotalReferenceAirKerma"],"0x1403":["DS","1","ContinuationEndTotalReferenceAirKerma"],"0x1404":["IS","1","ContinuationPulseNumber"],"0x1405":["SQ","1","ChannelDeliveryOrderSequence"],"0x1406":["IS","1","ReferencedChannelNumber"],"0x1407":["DS","1","StartCumulativeTimeWeight"],"0x1408":["DS","1","EndCumulativeTimeWeight"],"0x1409":["SQ","1","OmittedChannelSequence"],"0x140A":["CS","1","ReasonForChannelOmission"],"0x140B":["LO","1","ReasonForChannelOmissionDescription"],"0x140C":["IS","1","ChannelDeliveryOrderIndex"],"0x140D":["SQ","1","ChannelDeliveryContinuationSequence"],"0x140E":["SQ","1","OmittedApplicationSetupSequence"]},"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":["SQ","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","UValueData"],"0x0011":["OF","1","VValueData"],"0x0012":["SQ","1","ReferencedTextureSequence"],"0x0013":["SQ","1","ReferencedSurfaceDataSequence"]},"0x0082":{"0x0000":["UL","1","GenericGroupLength"],"0x0001":["CS","1","AssessmentSummary"],"0x0003":["UT","1","AssessmentSummaryDescription"],"0x0004":["SQ","1","AssessedSOPInstanceSequence"],"0x0005":["SQ","1","ReferencedComparisonSOPInstanceSequence"],"0x0006":["UL","1","NumberOfAssessmentObservations"],"0x0007":["SQ","1","AssessmentObservationsSequence"],"0x0008":["CS","1","ObservationSignificance"],"0x000A":["UT","1","ObservationDescription"],"0x000C":["SQ","1","StructuredConstraintObservationSequence"],"0x0010":["SQ","1","AssessedAttributeValueSequence"],"0x0016":["LO","1","AssessmentSetID"],"0x0017":["SQ","1","AssessmentRequesterSequence"],"0x0018":["LO","1","SelectorAttributeName"],"0x0019":["LO","1","SelectorAttributeKeyword"],"0x0021":["SQ","1","AssessmentTypeCodeSequence"],"0x0022":["SQ","1","ObservationBasisCodeSequence"],"0x0023":["LO","1","AssessmentLabel"],"0x0032":["CS","1","ConstraintType"],"0x0033":["UT","1","SpecificationSelectionGuidance"],"0x0034":["SQ","1","ConstraintValueSequence"],"0x0035":["SQ","1","RecommendedDefaultValueSequence"],"0x0036":["CS","1","ConstraintViolationSignificance"],"0x0037":["UT","1","ConstraintViolationCondition"],"0x0038":["CS","1","ModifiableConstraintFlag"]},"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"],"0x0315":["FL","1",""],"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"],"0x0551":["SQ","1","NonconformingModifiedAttributesSequence"],"0x0552":["OB","1","NonconformingDataElementValue"],"0x0561":["SQ","1","OriginalAttributesSequence"],"0x0562":["DT","1","AttributeModificationDateTime"],"0x0563":["LO","1","ModifyingSystem"],"0x0564":["LO","1","SourceOfPreviousValues"],"0x0565":["CS","1","ReasonForTheAttributeModification"],"0x0600":["CS","1","InstanceOriginStatus"]},"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"],"0x0037":["SQ","1","ROIDerivationAlgorithmIdentificationSequence"],"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"],"0x004A":["SQ","1","SourcePixelPlanesCharacteristicsSequence"],"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"],"0x00C9":["SQ","1","PatientLocationCoordinatesSequence"],"0x00CA":["SQ","1","PatientLocationCoordinatesCodeSequence"],"0x00CB":["SQ","1","PatientSupportPositionSequence"]},"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"],"0x0067":["US","1","ParameterValueNumber"],"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"],"0x00D1":["SQ","1","RecordedBlockSlabSequence"],"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"],"0x0083":["UI","1","ReferencedDoseReferenceUID"],"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"],"0x0090":["CS","1","BeamDoseType"],"0x0091":["DS","1","AlternateBeamDose"],"0x0092":["CS","1","AlternateBeamDoseType"],"0x0093":["CS","1","DepthValueAveragingFlag"],"0x0094":["DS","1","BeamDosePointSourceToExternalContourDistance"],"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","AverageBeamDosePointSourceToExternalContourDistance"],"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"],"0x0150":["CS","1","FixationEye"],"0x0151":["DS","1","ChairHeadFramePosition"],"0x0152":["DS","1","HeadFixationAngleTolerance"],"0x0153":["DS","1","ChairHeadFramePositionTolerance"],"0x0154":["DS","1","FixationLightAzimuthalAngleTolerance"],"0x0155":["DS","1","FixationLightPolarAngleTolerance"],"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"],"0x0271":["DS","1","ChannelEffectiveLength"],"0x0272":["DS","1","ChannelInnerLength"],"0x0273":["SH","1","AfterloaderChannelID"],"0x0274":["DS","1","SourceApplicatorTipLength"],"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"],"0x02A1":["IS","1","ApplicatorShapeReferencedROINumber"],"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"],"0x0309":["CS","1","ModulatedScanModeType"],"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"],"0x0355":["LO","1","TrayAccessoryCode"],"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"],"0x038F":["FL","1-n","ScanSpotTimeOffset"],"0x0390":["SH","1","ScanSpotTuneID"],"0x0391":["IS","1-n","ScanSpotPrescribedIndices"],"0x0392":["IS","1","NumberOfScanSpotPositions"],"0x0393":["CS","1","ScanSpotReordered"],"0x0394":["FL","1-n","ScanSpotPositionMap"],"0x0395":["CS","1","ScanSpotReorderingAllowed"],"0x0396":["FL","1-n","ScanSpotMetersetWeights"],"0x0398":["FL","2","ScanningSpotSize"],"0x0399":["FL","2-2n","ScanSpotSizesDelivered"],"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"],"0x0426":["DS","1","IsocenterToGeneralAccessoryDistance"],"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"],"0x0501":["FL","1","DistalDepthFraction"],"0x0502":["FL","1","DistalDepth"],"0x0503":["FL","2","NominalRangeModulationFractions"],"0x0504":["FL","2","NominalRangeModulatedRegionDepths"],"0x0505":["SQ","1","DepthDoseParametersSequence"],"0x0506":["SQ","1","DeliveredDepthDoseParametersSequence"],"0x0507":["FL","1","DeliveredDistalDepthFraction"],"0x0508":["FL","1","DeliveredDistalDepth"],"0x0509":["FL","2","DeliveredNominalRangeModulationFractions"],"0x0510":["FL","2","DeliveredNominalRangeModulatedRegionDepths"],"0x0511":["CS","1","DeliveredReferenceDoseDefinition"],"0x0512":["CS","1","ReferenceDoseDefinition"],"0x0600":["US","1","RTControlPointIndex"],"0x0601":["US","1","RadiationGenerationModeIndex"],"0x0602":["US","1","ReferencedDefinedDeviceIndex"],"0x0603":["US","1","RadiationDoseIdentificationIndex"],"0x0604":["US","1","NumberOfRTControlPoints"],"0x0605":["US","1","ReferencedRadiationGenerationModeIndex"],"0x0606":["US","1","TreatmentPositionIndex"],"0x0607":["US","1","ReferencedDeviceIndex"],"0x0608":["LO","1","TreatmentPositionGroupLabel"],"0x0609":["UI","1","TreatmentPositionGroupUID"],"0x060A":["SQ","1","TreatmentPositionGroupSequence"],"0x060B":["US","1","ReferencedTreatmentPositionIndex"],"0x060C":["US","1","ReferencedRadiationDoseIdentificationIndex"],"0x060D":["FD","1","RTAccessoryHolderWaterEquivalentThickness"],"0x060E":["US","1","ReferencedRTAccessoryHolderDeviceIndex"],"0x060F":["CS","1","RTAccessoryHolderSlotExistenceFlag"],"0x0610":["SQ","1","RTAccessoryHolderSlotSequence"],"0x0611":["LO","1","RTAccessoryHolderSlotID"],"0x0612":["FD","1","RTAccessoryHolderSlotDistance"],"0x0613":["FD","1","RTAccessorySlotDistance"],"0x0614":["SQ","1","RTAccessoryHolderDefinitionSequence"],"0x0615":["LO","1","RTAccessoryDeviceSlotID"],"0x0616":["SQ","1","RTRadiationSequence"],"0x0617":["SQ","1","RadiationDoseSequence"],"0x0618":["SQ","1","RadiationDoseIdentificationSequence"],"0x0619":["LO","1","RadiationDoseIdentificationLabel"],"0x061A":["CS","1","ReferenceDoseType"],"0x061B":["CS","1","PrimaryDoseValueIndicator"],"0x061C":["SQ","1","DoseValuesSequence"],"0x061D":["CS","1-n","DoseValuePurpose"],"0x061E":["FD","3","ReferenceDosePointCoordinates"],"0x061F":["SQ","1","RadiationDoseValuesParametersSequence"],"0x0620":["SQ","1","MetersetToDoseMappingSequence"],"0x0621":["SQ","1","ExpectedInVivoMeasurementValuesSequence"],"0x0622":["US","1","ExpectedInVivoMeasurementValueIndex"],"0x0623":["LO","1","RadiationDoseInVivoMeasurementLabel"],"0x0624":["FD","2","RadiationDoseCentralAxisDisplacement"],"0x0625":["FD","1","RadiationDoseValue"],"0x0626":["FD","1","RadiationDoseSourceToSkinDistance"],"0x0627":["FD","3","RadiationDoseMeasurementPointCoordinates"],"0x0628":["FD","1","RadiationDoseSourceToExternalContourDistance"],"0x0629":["SQ","1","RTToleranceSetSequence"],"0x062A":["LO","1","RTToleranceSetLabel"],"0x062B":["SQ","1","AttributeToleranceValuesSequence"],"0x062C":["FD","1","ToleranceValue"],"0x062D":["SQ","1","PatientSupportPositionToleranceSequence"],"0x062E":["FD","1","TreatmentTimeLimit"],"0x062F":["SQ","1","CArmPhotonElectronControlPointSequence"],"0x0630":["SQ","1","ReferencedRTRadiationSequence"],"0x0631":["SQ","1","ReferencedRTInstanceSequence"],"0x0632":["SQ","1","ReferencedRTPatientSetupSequence"],"0x0634":["FD","1","SourceToPatientSurfaceDistance"],"0x0635":["SQ","1","TreatmentMachineSpecialModeCodeSequence"],"0x0636":["US","1","IntendedNumberOfFractions"],"0x0637":["CS","1","RTRadiationSetIntent"],"0x0638":["CS","1","RTRadiationPhysicalAndGeometricContentDetailFlag"],"0x0639":["CS","1","RTRecordFlag"],"0x063A":["SQ","1","TreatmentDeviceIdentificationSequence"],"0x063B":["SQ","1","ReferencedRTPhysicianIntentSequence"],"0x063C":["FD","1","CumulativeMeterset"],"0x063D":["FD","1","DeliveryRate"],"0x063E":["SQ","1","DeliveryRateUnitSequence"],"0x063F":["SQ","1","TreatmentPositionSequence"],"0x0640":["FD","1","RadiationSourceAxisDistance"],"0x0641":["US","1","NumberOfRTBeamLimitingDevices"],"0x0642":["FD","1","RTBeamLimitingDeviceProximalDistance"],"0x0643":["FD","1","RTBeamLimitingDeviceDistalDistance"],"0x0644":["SQ","1","ParallelRTBeamDelimiterDeviceOrientationLabelCodeSequence"],"0x0645":["FD","1","BeamModifierOrientationAngle"],"0x0646":["SQ","1","FixedRTBeamDelimiterDeviceSequence"],"0x0647":["SQ","1","ParallelRTBeamDelimiterDeviceSequence"],"0x0648":["US","1","NumberOfParallelRTBeamDelimiters"],"0x0649":["FD","2-n","ParallelRTBeamDelimiterBoundaries"],"0x064A":["FD","2-n","ParallelRTBeamDelimiterPositions"],"0x064B":["FD","2","RTBeamLimitingDeviceOffset"],"0x064C":["SQ","1","RTBeamDelimiterGeometrySequence"],"0x064D":["SQ","1","RTBeamLimitingDeviceDefinitionSequence"],"0x064E":["CS","1","ParallelRTBeamDelimiterOpeningMode"],"0x064F":["CS","1-n","ParallelRTBeamDelimiterLeafMountingSide"],"0x0650":["UI","1","PatientSetupUID"],"0x0651":["SQ","1","WedgeDefinitionSequence"],"0x0652":["FD","1","RadiationBeamWedgeAngle"],"0x0653":["FD","1","RadiationBeamWedgeThinEdgeDistance"],"0x0654":["FD","1","RadiationBeamEffectiveWedgeAngle"],"0x0655":["US","1","NumberOfWedgePositions"],"0x0656":["SQ","1","RTBeamLimitingDeviceOpeningSequence"],"0x0657":["US","1","NumberOfRTBeamLimitingDeviceOpenings"],"0x0658":["SQ","1","RadiationDosimeterUnitSequence"],"0x0659":["SQ","1","RTDeviceDistanceReferenceLocationCodeSequence"],"0x065A":["SQ","1","RadiationDeviceConfigurationAndCommissioningKeySequence"],"0x065B":["SQ","1","PatientSupportPositionParameterSequence"],"0x065C":["CS","1","PatientSupportPositionSpecificationMethod"],"0x065D":["SQ","1","PatientSupportPositionDeviceParameterSequence"],"0x065E":["US","1","DeviceOrderIndex"],"0x065F":["US","1","PatientSupportPositionParameterOrderIndex"],"0x0660":["SQ","1","PatientSupportPositionDeviceToleranceSequence"],"0x0661":["US","1","PatientSupportPositionToleranceOrderIndex"],"0x0662":["SQ","1","CompensatorDefinitionSequence"],"0x0663":["CS","1","CompensatorMapOrientation"],"0x0664":["OF","1","CompensatorProximalThicknessMap"],"0x0665":["OF","1","CompensatorDistalThicknessMap"],"0x0666":["FD","1","CompensatorBasePlaneOffset"],"0x0667":["SQ","1","CompensatorShapeFabricationCodeSequence"],"0x0668":["SQ","1","CompensatorShapeSequence"],"0x0669":["FD","1","RadiationBeamCompensatorMillingToolDiameter"],"0x066A":["SQ","1","BlockDefinitionSequence"],"0x066B":["OF","1","BlockEdgeData"],"0x066C":["CS","1","BlockOrientation"],"0x066D":["FD","1","RadiationBeamBlockThickness"],"0x066E":["FD","1","RadiationBeamBlockSlabThickness"],"0x066F":["SQ","1","BlockEdgeDataSequence"],"0x0670":["US","1","NumberOfRTAccessoryHolders"],"0x0671":["SQ","1","GeneralAccessoryDefinitionSequence"],"0x0672":["US","1","NumberOfGeneralAccessories"],"0x0673":["SQ","1","BolusDefinitionSequence"],"0x0674":["US","1","NumberOfBoluses"],"0x0675":["UI","1","EquipmentFrameOfReferenceUID"],"0x0676":["ST","1","EquipmentFrameOfReferenceDescription"],"0x0677":["SQ","1","EquipmentReferencePointCoordinatesSequence"],"0x0678":["SQ","1","EquipmentReferencePointCodeSequence"],"0x0679":["FD","1","RTBeamLimitingDeviceAngle"],"0x067A":["FD","1","SourceRollAngle"],"0x067B":["SQ","1","RadiationGenerationModeSequence"],"0x067C":["SH","1","RadiationGenerationModeLabel"],"0x067D":["ST","1","RadiationGenerationModeDescription"],"0x067E":["SQ","1","RadiationGenerationModeMachineCodeSequence"],"0x067F":["SQ","1","RadiationTypeCodeSequence"],"0x0680":["DS","1","NominalEnergy"],"0x0681":["DS","1","MinimumNominalEnergy"],"0x0682":["DS","1","MaximumNominalEnergy"],"0x0683":["SQ","1","RadiationFluenceModifierCodeSequence"],"0x0684":["SQ","1","EnergyUnitCodeSequence"],"0x0685":["US","1","NumberOfRadiationGenerationModes"],"0x0686":["SQ","1","PatientSupportDevicesSequence"],"0x0687":["US","1","NumberOfPatientSupportDevices"],"0x0688":["FD","1","RTBeamModifierDefinitionDistance"],"0x0689":["SQ","1","BeamAreaLimitSequence"],"0x068A":["SQ","1","ReferencedRTPrescriptionSequence"],"0x0700":["UI","1","TreatmentSessionUID"],"0x0701":["CS","1","RTRadiationUsage"],"0x0702":["SQ","1","ReferencedRTRadiationSetSequence"],"0x0703":["SQ","1","ReferencedRTRadiationRecordSequence"],"0x0704":["US","1","RTRadiationSetDeliveryNumber"],"0x0705":["US","1","ClinicalFractionNumber"],"0x0706":["CS","1","RTTreatmentFractionCompletionStatus"],"0x0707":["CS","1","RTRadiationSetUsage"],"0x0708":["CS","1","TreatmentDeliveryContinuationFlag"],"0x0709":["CS","1","TreatmentRecordContentOrigin"],"0x0714":["CS","1","RTTreatmentTerminationStatus"],"0x0715":["SQ","1","RTTreatmentTerminationReasonCodeSequence"],"0x0716":["SQ","1","MachineSpecificTreatmentTerminationCodeSequence"],"0x0722":["SQ","1","RTRadiationSalvageRecordControlPointSequence"],"0x0723":["CS","1","StartingMetersetValueKnownFlag"],"0x0730":["ST","1","TreatmentTerminationDescription"],"0x0731":["SQ","1","TreatmentToleranceViolationSequence"],"0x0732":["CS","1","TreatmentToleranceViolationCategory"],"0x0733":["SQ","1","TreatmentToleranceViolationAttributeSequence"],"0x0734":["ST","1","TreatmentToleranceViolationDescription"],"0x0735":["ST","1","TreatmentToleranceViolationIdentification"],"0x0736":["DT","1","TreatmentToleranceViolationDateTime"],"0x073A":["DT","1","RecordedRTControlPointDateTime"],"0x073B":["US","1","ReferencedRadiationRTControlPointIndex"],"0x073E":["SQ","1","AlternateValueSequence"],"0x073F":["SQ","1","ConfirmationSequence"],"0x0740":["SQ","1","InterlockSequence"],"0x0741":["DT","1","InterlockDateTime"],"0x0742":["ST","1","InterlockDescription"],"0x0743":["SQ","1","InterlockOriginatingDeviceSequence"],"0x0744":["SQ","1","InterlockCodeSequence"],"0x0745":["SQ","1","InterlockResolutionCodeSequence"],"0x0746":["SQ","1","InterlockResolutionUserSequence"],"0x0760":["DT","1","OverrideDateTime"],"0x0761":["SQ","1","TreatmentToleranceViolationTypeCodeSequence"],"0x0762":["SQ","1","TreatmentToleranceViolationCauseCodeSequence"],"0x0772":["SQ","1","MeasuredMetersetToDoseMappingSequence"],"0x0773":["US","1","ReferencedExpectedInVivoMeasurementValueIndex"],"0x0774":["SQ","1","DoseMeasurementDeviceCodeSequence"],"0x0780":["SQ","1","AdditionalParameterRecordingInstanceSequence"],"0x0782":["US","1",""],"0x0783":["ST","1","InterlockOriginDescription"],"0x0784":["SQ","1","RTPatientPositionScopeSequence"],"0x0785":["UI","1","ReferencedTreatmentPositionGroupUID"],"0x0786":["US","1","RadiationOrderIndex"],"0x0787":["SQ","1","OmittedRadiationSequence"],"0x0788":["SQ","1","ReasonForOmissionCodeSequence"],"0x0789":["SQ","1","RTDeliveryStartPatientPositionSequence"],"0x078A":["SQ","1","RTTreatmentPreparationPatientPositionSequence"],"0x078B":["SQ","1","ReferencedRTTreatmentPreparationSequence"],"0x078C":["SQ","1","ReferencedPatientSetupPhotoSequence"],"0x078D":["SQ","1","PatientTreatmentPreparationMethodCodeSequence"],"0x078E":["LT","1","PatientTreatmentPreparationProcedureParameterDescription"],"0x078F":["SQ","1","PatientTreatmentPreparationDeviceSequence"],"0x0790":["SQ","1","PatientTreatmentPreparationProcedureSequence"],"0x0791":["SQ","1","PatientTreatmentPreparationProcedureCodeSequence"],"0x0792":["LT","1","PatientTreatmentPreparationMethodDescription"],"0x0793":["SQ","1","PatientTreatmentPreparationProcedureParameterSequence"],"0x0794":["LT","1","PatientSetupPhotoDescription"],"0x0795":["US","1","PatientTreatmentPreparationProcedureIndex"],"0x0796":["US","1","ReferencedPatientSetupProcedureIndex"],"0x0797":["SQ","1","RTRadiationTaskSequence"],"0x0798":["SQ","1","RTPatientPositionDisplacementSequence"],"0x0799":["SQ","1","RTPatientPositionSequence"],"0x079A":["LO","1","DisplacementReferenceLabel"],"0x079B":["FD","16","DisplacementMatrix"],"0x079C":["SQ","1","PatientSupportDisplacementSequence"],"0x079D":["SQ","1","DisplacementReferenceLocationCodeSequence"],"0x079E":["CS","1","RTRadiationSetDeliveryUsage"]},"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"],"0x0114":["SQ","1","PrescriptionOverviewSequence"],"0x0115":["FL","1","TotalPrescriptionDose"],"0x0116":["SQ","1","PlanOverviewSequence"],"0x0117":["US","1","PlanOverviewIndex"],"0x0118":["US","1","ReferencedPlanOverviewIndex"],"0x0119":["US","1","NumberOfFractionsIncluded"],"0x0120":["SQ","1","DoseCalibrationConditionsSequence"],"0x0121":["FD","1","AbsorbedDoseToMetersetRatio"],"0x0122":["FD","2","DelineatedRadiationFieldSize"],"0x0123":["CS","1","DoseCalibrationConditionsVerifiedFlag"],"0x0124":["FD","1","CalibrationReferencePointDepth"],"0x0125":["SQ","1","GatingBeamHoldTransitionSequence"],"0x0126":["CS","1","BeamHoldTransition"],"0x0127":["DT","1","BeamHoldTransitionDateTime"],"0x0128":["SQ","1","BeamHoldOriginatingDeviceSequence"]},"0x300E":{"0x0000":["UL","1","GenericGroupLength"],"0x0002":["CS","1","ApprovalStatus"],"0x0004":["DA","1","ReviewDate"],"0x0005":["TM","1","ReviewTime"],"0x0008":["PN","1","ReviewerName"]},"0x3010":{"0x0000":["UL","1","GenericGroupLength"],"0x0001":["SQ","1","RadiobiologicalDoseEffectSequence"],"0x0002":["CS","1","RadiobiologicalDoseEffectFlag"],"0x0003":["SQ","1","EffectiveDoseCalculationMethodCategoryCodeSequence"],"0x0004":["SQ","1","EffectiveDoseCalculationMethodCodeSequence"],"0x0005":["LO","1","EffectiveDoseCalculationMethodDescription"],"0x0006":["UI","1","ConceptualVolumeUID"],"0x0007":["SQ","1","OriginatingSOPInstanceReferenceSequence"],"0x0008":["SQ","1","ConceptualVolumeConstituentSequence"],"0x0009":["SQ","1","EquivalentConceptualVolumeInstanceReferenceSequence"],"0x000A":["SQ","1","EquivalentConceptualVolumesSequence"],"0x000B":["UI","1","ReferencedConceptualVolumeUID"],"0x000C":["UT","1","ConceptualVolumeCombinationExpression"],"0x000D":["US","1","ConceptualVolumeConstituentIndex"],"0x000E":["CS","1","ConceptualVolumeCombinationFlag"],"0x000F":["ST","1","ConceptualVolumeCombinationDescription"],"0x0010":["CS","1","ConceptualVolumeSegmentationDefinedFlag"],"0x0011":["SQ","1","ConceptualVolumeSegmentationReferenceSequence"],"0x0012":["SQ","1","ConceptualVolumeConstituentSegmentationReferenceSequence"],"0x0013":["UI","1","ConstituentConceptualVolumeUID"],"0x0014":["SQ","1","DerivationConceptualVolumeSequence"],"0x0015":["UI","1","SourceConceptualVolumeUID"],"0x0016":["SQ","1","ConceptualVolumeDerivationAlgorithmSequence"],"0x0017":["ST","1","ConceptualVolumeDescription"],"0x0018":["SQ","1","SourceConceptualVolumeSequence"],"0x0019":["SQ","1","AuthorIdentificationSequence"],"0x001A":["LO","1","ManufacturerModelVersion"],"0x001B":["UC","1","DeviceAlternateIdentifier"],"0x001C":["CS","1","DeviceAlternateIdentifierType"],"0x001D":["LT","1","DeviceAlternateIdentifierFormat"],"0x001E":["LO","1","SegmentationCreationTemplateLabel"],"0x001F":["UI","1","SegmentationTemplateUID"],"0x0020":["US","1","ReferencedSegmentReferenceIndex"],"0x0021":["SQ","1","SegmentReferenceSequence"],"0x0022":["US","1","SegmentReferenceIndex"],"0x0023":["SQ","1","DirectSegmentReferenceSequence"],"0x0024":["SQ","1","CombinationSegmentReferenceSequence"],"0x0025":["SQ","1","ConceptualVolumeSequence"],"0x0026":["SQ","1","SegmentedRTAccessoryDeviceSequence"],"0x0027":["SQ","1","SegmentCharacteristicsSequence"],"0x0028":["SQ","1","RelatedSegmentCharacteristicsSequence"],"0x0029":["US","1","SegmentCharacteristicsPrecedence"],"0x002A":["SQ","1","RTSegmentAnnotationSequence"],"0x002B":["SQ","1","SegmentAnnotationCategoryCodeSequence"],"0x002C":["SQ","1","SegmentAnnotationTypeCodeSequence"],"0x002D":["LO","1","DeviceLabel"],"0x002E":["SQ","1","DeviceTypeCodeSequence"],"0x002F":["SQ","1","SegmentAnnotationTypeModifierCodeSequence"],"0x0030":["SQ","1","PatientEquipmentRelationshipCodeSequence"],"0x0031":["UI","1","ReferencedFiducialsUID"],"0x0032":["SQ","1","PatientTreatmentOrientationSequence"],"0x0033":["SH","1","UserContentLabel"],"0x0034":["LO","1","UserContentLongLabel"],"0x0035":["SH","1","EntityLabel"],"0x0036":["LO","1","EntityName"],"0x0037":["ST","1","EntityDescription"],"0x0038":["LO","1","EntityLongLabel"],"0x0039":["US","1","DeviceIndex"],"0x003A":["US","1","RTTreatmentPhaseIndex"],"0x003B":["UI","1","RTTreatmentPhaseUID"],"0x003C":["US","1","RTPrescriptionIndex"],"0x003D":["US","1","RTSegmentAnnotationIndex"],"0x003E":["US","1","BasisRTTreatmentPhaseIndex"],"0x003F":["US","1","RelatedRTTreatmentPhaseIndex"],"0x0040":["US","1","ReferencedRTTreatmentPhaseIndex"],"0x0041":["US","1","ReferencedRTPrescriptionIndex"],"0x0042":["US","1","ReferencedParentRTPrescriptionIndex"],"0x0043":["ST","1","ManufacturerDeviceIdentifier"],"0x0044":["SQ","1","InstanceLevelReferencedPerformedProcedureStepSequence"],"0x0045":["CS","1","RTTreatmentPhaseIntentPresenceFlag"],"0x0046":["CS","1","RadiotherapyTreatmentType"],"0x0047":["CS","1-n","TeletherapyRadiationType"],"0x0048":["CS","1-n","BrachytherapySourceType"],"0x0049":["SQ","1","ReferencedRTTreatmentPhaseSequence"],"0x004A":["SQ","1","ReferencedDirectSegmentInstanceSequence"],"0x004B":["SQ","1","IntendedRTTreatmentPhaseSequence"],"0x004C":["DA","1","IntendedPhaseStartDate"],"0x004D":["DA","1","IntendedPhaseEndDate"],"0x004E":["SQ","1","RTTreatmentPhaseIntervalSequence"],"0x004F":["CS","1","TemporalRelationshipIntervalAnchor"],"0x0050":["FD","1","MinimumNumberOfIntervalDays"],"0x0051":["FD","1","MaximumNumberOfIntervalDays"],"0x0052":["UI","1-n","PertinentSOPClassesInStudy"],"0x0053":["UI","1-n","PertinentSOPClassesInSeries"],"0x0054":["LO","1","RTPrescriptionLabel"],"0x0055":["SQ","1","RTPhysicianIntentPredecessorSequence"],"0x0056":["LO","1","RTTreatmentApproachLabel"],"0x0057":["SQ","1","RTPhysicianIntentSequence"],"0x0058":["US","1","RTPhysicianIntentIndex"],"0x0059":["CS","1","RTTreatmentIntentType"],"0x005A":["UT","1","RTPhysicianIntentNarrative"],"0x005B":["SQ","1","RTProtocolCodeSequence"],"0x005C":["ST","1","ReasonForSuperseding"],"0x005D":["SQ","1","RTDiagnosisCodeSequence"],"0x005E":["US","1","ReferencedRTPhysicianIntentIndex"],"0x005F":["SQ","1","RTPhysicianIntentInputInstanceSequence"],"0x0060":["SQ","1","RTAnatomicPrescriptionSequence"],"0x0061":["UT","1","PriorTreatmentDoseDescription"],"0x0062":["SQ","1","PriorTreatmentReferenceSequence"],"0x0063":["CS","1","DosimetricObjectiveEvaluationScope"],"0x0064":["SQ","1","TherapeuticRoleCategoryCodeSequence"],"0x0065":["SQ","1","TherapeuticRoleTypeCodeSequence"],"0x0066":["US","1","ConceptualVolumeOptimizationPrecedence"],"0x0067":["SQ","1","ConceptualVolumeCategoryCodeSequence"],"0x0068":["CS","1","ConceptualVolumeBlockingConstraint"],"0x0069":["SQ","1","ConceptualVolumeTypeCodeSequence"],"0x006A":["SQ","1","ConceptualVolumeTypeModifierCodeSequence"],"0x006B":["SQ","1","RTPrescriptionSequence"],"0x006C":["SQ","1","DosimetricObjectiveSequence"],"0x006D":["SQ","1","DosimetricObjectiveTypeCodeSequence"],"0x006E":["UI","1","DosimetricObjectiveUID"],"0x006F":["UI","1","ReferencedDosimetricObjectiveUID"],"0x0070":["SQ","1","DosimetricObjectiveParameterSequence"],"0x0071":["SQ","1","ReferencedDosimetricObjectivesSequence"],"0x0073":["CS","1","AbsoluteDosimetricObjectiveFlag"],"0x0074":["FD","1","DosimetricObjectiveWeight"],"0x0075":["CS","1","DosimetricObjectivePurpose"],"0x0076":["SQ","1","PlanningInputInformationSequence"],"0x0077":["LO","1","TreatmentSite"],"0x0078":["SQ","1","TreatmentSiteCodeSequence"],"0x0079":["SQ","1","FractionPatternSequence"],"0x007A":["UT","1","TreatmentTechniqueNotes"],"0x007B":["UT","1","PrescriptionNotes"],"0x007C":["IS","1","NumberOfIntervalFractions"],"0x007D":["US","1","NumberOfFractions"],"0x007E":["US","1","IntendedDeliveryDuration"],"0x007F":["UT","1","FractionationNotes"],"0x0080":["SQ","1","RTTreatmentTechniqueCodeSequence"],"0x0081":["SQ","1","PrescriptionNotesSequence"],"0x0082":["SQ","1","FractionBasedRelationshipSequence"],"0x0083":["CS","1","FractionBasedRelationshipIntervalAnchor"],"0x0084":["FD","1","MinimumHoursBetweenFractions"],"0x0085":["TM","1-n","IntendedFractionStartTime"],"0x0086":["LT","1","IntendedStartDayOfWeek"],"0x0087":["SQ","1","WeekdayFractionPatternSequence"],"0x0088":["SQ","1","DeliveryTimeStructureCodeSequence"],"0x0089":["SQ","1","TreatmentSiteModifierCodeSequence"],"0x0090":["CS","1","RoboticBaseLocationIndicator"],"0x0091":["SQ","1","RoboticPathNodeSetCodeSequence"],"0x0092":["UL","1","RoboticNodeIdentifier"],"0x0093":["FD","3","RTTreatmentSourceCoordinates"],"0x0094":["FD","1","RadiationSourceCoordinateSystemYawAngle"],"0x0095":["FD","1","RadiationSourceCoordinateSystemRollAngle"],"0x0096":["FD","1","RadiationSourceCoordinateSystemPitchAngle"],"0x0097":["SQ","1","RoboticPathControlPointSequence"],"0x0098":["SQ","1","TomotherapeuticControlPointSequence"],"0x0099":["FD","1-n","TomotherapeuticLeafOpenDurations"],"0x009A":["FD","1-n","TomotherapeuticLeafInitialClosedDurations"]},"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"]},"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"]},"0x7FE0":{"0x0000":["UL","1","GenericGroupLength"],"0x0001":["OV","1","ExtendedOffsetTable"],"0x0002":["OV","1","ExtendedOffsetTableLengths"],"0x0008":["OF","1","FloatPixelData"],"0x0009":["OD","1","DoubleFloatPixelData"],"0x0010":["ox","1","PixelData"],"0x0020":["OW","1","CoefficientsSDVN"],"0x0030":["OW","1","CoefficientsSDHN"],"0x0040":["OW","1","CoefficientsSDDN"]},"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"]}},z.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"},z.dicom.vr32bitVL=["OB","OD","OF","OL","OV","OW","SQ","SV","UC","UN","UR","UT","UV","ox"],z.dicom.charSetString=["SH","LO","UC","ST","LT","UT","PN"],z.dicom.vrTypes={AE:"string",AS:"string",AT:void 0,CS:"string",DA:"string",DS:"string",DT:"string",FL:"Float32",FD:"Float64",IS:"string",LO:"string",LT:"string",OB:"Uint8",OD:"Uint64",OF:"Uint32",OL:"Uint32",OV:"Uint64",OW:"Uint16",PN:"string",SH:"string",SL:"Int32",SQ:void 0,SS:"Int16",ST:"string",SV:"Int64",TM:"string",UC:"string",UI:"string",UL:"Uint32",UN:"Uint8",UR:"string",US:"Uint16",UT:"string",UV:"Uint64"},z||{}),y=(z.gui=z.gui||{},y||{}),z=(z.gui.DrawLayer=function(i){i.className+=" drawLayer";var r,o,a,l,t=this,u=null,c={x:1,y:1},d={x:0,y:0},s={x:0,y:0},g={x:0,y:0},x=null,S=null,n=(this.getDataIndex=function(){return S},new z.utils.ListenerHandler);function m(e){e.srclayerid=t.getId(),e.dataindex=S,n.fireEvent(e)}this.getKonvaStage=function(){return u},this.getKonvaLayer=function(){return r},this.getDrawController=function(){return x},this.setPlaneHelper=function(e){l=e},this.getId=function(){return i.id},this.getBaseSize=function(){return o},this.getOpacity=function(){return u.opacity()},this.setOpacity=function(e){u.opacity(Math.min(Math.max(e,0),1))},this.setScale=function(e,t){for(var n=l.getTargetOrientedPositiveXYZ(e),n={x:c.x*n.x,y:c.y*n.y},i=u.offset(),i=(1===e.x&&1===e.y&&1===e.z?(e={x:i.x-g.x,y:i.y-g.y},g={x:0,y:0},u.offset(e)):void 0!==t&&(e={x:(e=l.getPlaneOffsetFromOffset3D({x:t.getX(),y:t.getY(),z:t.getZ()})).x+d.x,y:e.y+d.y},t=z.gui.getScaledOffset(i,u.scale(),n,e),e={x:g.x+t.x-i.x,y:g.y+t.y-i.y},g=e,u.offset(t)),u.scale(n),n),r=2/i.x,o=2/i.y,a=u.find("Label"),s=0;s<a.length;++s)a[s].scale({x:r,y:o})},this.setOffset=function(e){e=l.getPlaneOffsetFromOffset3D(e);u.offset({x:s.x+d.x+g.x+e.x,y:s.y+d.y+g.y+e.y})},this.setBaseOffset=function(e,t){var n=l.getNativeScrollIndex(),n=l.getPlaneOffsetFromOffset3D({x:(0===n?e:t).getX(),y:(1===n?e:t).getY(),z:(2===n?e:t).getZ()}),e=d.x!==n.x||d.y!==n.y;return e&&(t=u.offset(),u.offset({x:t.x-d.x+n.x,y:t.y-d.y+n.y}),d=n),e},this.display=function(e){i.style.display=e?"":"none"},this.isVisible=function(){return""===i.style.display},this.draw=function(){u.draw()},this.initialise=function(e,t,n){o=e,a=t,S=n,(u=new y.Stage({container:i,width:o.x,height:o.y,listening:!1})).getContent().setAttribute("style",""),r=new y.Layer({listening:!1,visible:!0}),u.add(r),x=new z.ctrl.DrawController(r)},this.fitToContainer=function(e,t,n){u.setWidth(t.x),u.setHeight(t.y);var t=u.scale().x/c.x,i=u.scale().y/c.y;c={x:e*a.x,y:e*a.y},u.scale({x:t*c.x,y:i*c.y}),s={x:n.x/c.x,y:n.y/c.y},u.offset({x:s.x+d.x+g.x,y:s.y+d.y+g.y})},this.bindInteraction=function(){u.listening(!0),i.style.pointerEvents="auto";for(var e=z.gui.interactionEventNames,t=0;t<e.length;++t)i.addEventListener(e[t],m)},this.unbindInteraction=function(){u.listening(!1),i.style.pointerEvents="none";for(var e=z.gui.interactionEventNames,t=0;t<e.length;++t)i.removeEventListener(e[t],m)},this.setCurrentPosition=function(e,t){return this.getDrawController().activateDrawLayer(t,l.getScrollIndex()),!0},this.addEventListener=function(e,t){n.add(e,t)},this.removeEventListener=function(e,t){n.remove(e,t)}},z||{}),z=(z.gui=z.gui||{},z.gui.interactionEventNames=["mousedown","mousemove","mouseup","mouseout","wheel","dblclick","touchstart","touchmove","touchend"],z.gui.getElement=function(e,t){var n=document.getElementById(e);if(!n)return null;n=n.getElementsByClassName(t),n=n[n.length-1];return n=void 0===n?document.getElementById(e+"-"+t):n},z.getElement=z.gui.getElement,z.gui.prompt=function(e,t){return prompt(e,t)},z.prompt=z.gui.prompt,z.openRoiDialog,z.gui.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 z.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},z.gui.getEventOffset=function(e){var t=[];return void 0!==e.targetTouches&&0!==e.targetTouches.length?t=z.gui.getTouchesPositions(e.targetTouches):void 0!==e.changedTouches&&0!==e.changedTouches.length?t=z.gui.getTouchesPositions(e.changedTouches):t.push({x:e.offsetX,y:e.offsetY}),t},z.gui.canCreateCanvas=function(e,t){var n=document.createElement("canvas"),i=(n.width=e,n.height=t,document.createElement("canvas")),r=(i.width=1,i.height=1,n.getContext("2d")),i=i.getContext("2d");return r&&(r.fillRect(e-1,t-1,1,1),i.drawImage(n,e-1,t-1,1,1,0,0,1,1)),i&&0!==i.getImageData(0,0,1,1).data[3]},z||{}),z=(z.gui=z.gui||{},z.gui.getLayerDivId=function(e,t){return e+"-layer-"+t},z.gui.getLayerDetailsFromLayerDivId=function(e){e=e.split("-layer-");return 2!==e.length&&z.logger.warn("Not the expected layer div id format..."),{groupDivId:e[0],layerId:e[1]}},z.gui.getLayerDetailsFromEvent=function(e){var t=null,e=e.target.closest(".layer");return t=e&&void 0!==e.id?z.gui.getLayerDetailsFromLayerDivId(e.id):t},z.gui.getViewOrientation=function(e,t){var n=z.math.getIdentityMat33();return(n=void 0!==t?e.asOneAndZeros().getInverse().multiply(t):n).getAbs()},z.gui.getTargetOrientation=function(e,t){t=e.asOneAndZeros().multiply(t);return t=e.asOneAndZeros().getAbs().equals(z.math.getCoronalMat33().getAbs())?t.getAbs():t},z.gui.getScaledOffset=function(e,t,n,i){var r=(i.x-e.x)*t.x,e=(i.y-e.y)*t.y;return{x:i.x-r/n.x,y:i.y-e/n.y}},z.gui.LayerGroup=function(o){var t,x,S=this,m=[],i={x:1,y:1,z:1},e={x:1,y:1,z:1},n={x:0,y:0,z:0},r=null,a=null,s=new z.utils.ListenerHandler,h=!1;function l(){p()}function u(){var e=document.createElement("div");return e.id=z.gui.getLayerDivId(S.getDivId(),m.length),e.className="layer",e.style.pointerEvents="none",e}function p(e){void 0===e&&(e=x),c();var t=m[0],e=t.getViewController().getPlanePositionFromPosition(e),t=t.planePosToDisplay(e.x,e.y),e=document.createElement("hr"),n=(e.id=S.getDivId()+"-scroll-crosshair-horizontal",e.className="horizontal",e.style.width=o.offsetWidth+"px",e.style.left="0px",e.style.top=t.y-10+"px",document.createElement("hr"));n.id=S.getDivId()+"-scroll-crosshair-vertical",n.className="vertical",n.style.width=o.offsetHeight+"px",n.style.left=t.x+"px",n.style.top="-10px",o.appendChild(e),o.appendChild(n)}function c(){var e=document.getElementById(S.getDivId()+"-scroll-crosshair-horizontal");e&&e.remove(),(e=document.getElementById(S.getDivId()+"-scroll-crosshair-vertical"))&&e.remove()}function f(e){s.fireEvent(e)}this.getTargetOrientation=function(){return t},this.setTargetOrientation=function(e){t=e},this.getShowCrosshair=function(){return h},this.setShowCrosshair=function(e){(h=e)?(S.addEventListener("offsetchange",l),S.addEventListener("zoomchange",l),p()):(S.removeEventListener("offsetchange",l),S.removeEventListener("zoomchange",l),c())},this.getDivId=function(){return o.id},this.getScale=function(){return i},this.getBaseScale=function(){return e},this.getAddedScale=function(){return{x:i.x/e.x,y:i.y/e.y,z:i.z/e.z}},this.getOffset=function(){return n},this.getNumberOfLayers=function(){return m.length},this.getActiveViewLayer=function(){return m[r]},this.getViewLayersByDataIndex=function(e){for(var t=[],n=0;n<m.length;++n)m[n]instanceof z.gui.ViewLayer&&m[n].getDataIndex()===e&&t.push(m[n]);return t},this.searchViewLayers=function(e){for(var t=[],n=0;n<m.length;++n)m[n]instanceof z.gui.ViewLayer&&m[n].getViewController().equalImageMeta(e)&&t.push(m[n]);return t},this.getViewDataIndices=function(){for(var e=[],t=0;t<m.length;++t)m[t]instanceof z.gui.ViewLayer&&e.push(m[t].getDataIndex());return e},this.getActiveDrawLayer=function(){return m[a]},this.getDrawLayersByDataIndex=function(e){for(var t=[],n=0;n<m.length;++n)m[n]instanceof z.gui.DrawLayer&&m[n].getDataIndex()===e&&t.push(m[n]);return t},this.setActiveViewLayer=function(e){r=e},this.setActiveViewLayerByDataIndex=function(e){for(var t=0;t<m.length;++t)if(m[t]instanceof z.gui.ViewLayer&&m[t].getDataIndex()===e){this.setActiveViewLayer(t);break}},this.setActiveDrawLayer=function(e){a=e},this.setActiveDrawLayerByDataIndex=function(e){for(var t=0;t<m.length;++t)if(m[t]instanceof z.gui.DrawLayer&&m[t].getDataIndex()===e){this.setActiveDrawLayer(t);break}},this.addViewLayer=function(){var e=m.length,t=u(),t=(o.append(t),new z.gui.ViewLayer(t)),n=(m.push(t),this.setActiveViewLayer(e),t);n.addEventListener("positionchange",S.updateLayersToPositionChange);for(var i=0;i<z.image.viewEventNames.length;++i)n.addEventListener(z.image.viewEventNames[i],f);return n.addEventListener("renderstart",f),n.addEventListener("renderend",f),t},this.addDrawLayer=function(){a=m.length;var e=u(),e=(o.append(e),new z.gui.DrawLayer(e));return m.push(e),e},this.empty=function(){m=[],a=r=null;var e=o.getElementsByClassName("layer");if(e)for(;0<e.length;)e[0].remove()},this.updateLayersToPositionChange=function(e){for(var t=0;t<m.length;++t)m[t]instanceof z.gui.ViewLayer&&(m[t].removeEventListener("positionchange",S.updateLayersToPositionChange),m[t].removeEventListener("positionchange",f));for(var n=new z.math.Index(e.value[0]),i=new z.math.Point(e.value[1]),r=(x=i,h&&p(i),null),o=null,a=0;a<m.length;++a){var s,l,u,c=!1,d=(m[a]instanceof z.gui.ViewLayer&&(s=(d=m[a].getViewController()).getOrigin(),l=d.getOrigin(i),o?d.canSetPosition(i)&&void 0!==l&&(d=r.minus(s),d=new z.math.Vector3D(d.getX(),d.getY(),d.getZ()),u=o.minus(l),u=new z.math.Vector3D(u.getX(),u.getY(),u.getZ()),c=m[a].setBaseOffset(d,u)):(r=s,o=l)),!1);!(d=m[a].getId()!==e.srclayerid?m[a].setCurrentPosition(i,n):d)&&c&&m[a].draw()}for(var g=0;g<m.length;++g)m[g]instanceof z.gui.ViewLayer&&(m[g].addEventListener("positionchange",S.updateLayersToPositionChange),m[g].addEventListener("positionchange",f))},this.calculateFitScale=function(){if(0===o.offsetWidth&&0===o.offsetHeight)throw new Error("Cannot fit to zero sized container.");var e=this.getMaxSize();if(void 0!==e)return Math.min(o.offsetWidth/e.x,o.offsetHeight/e.y)},this.setFitScale=function(e){var t=this.getMaxSize();if(void 0!==t)for(var n={x:o.offsetWidth,y:o.offsetHeight},i={x:-.5*(n.x-Math.floor(t.x*e)),y:-.5*(n.y-Math.floor(t.y*e))},r=0;r<m.length;++r)m[r].fitToContainer(e,n,i)},this.getMaxSize=function(){for(var e,t={x:0,y:0},n=0;n<m.length;++n)m[n]instanceof z.gui.ViewLayer&&((e=m[n].getImageWorldSize()).x>t.x&&(t.x=e.x),e.y>t.y&&(t.y=e.y));return t=0===t.x&&0===t.y?void 0:t},this.flipScaleZ=function(){e.z*=-1,this.setScale(e)},this.addScale=function(e,t){e={x:i.x*(1+e),y:i.y*(1+e),z:i.z*(1+e)};this.setScale(e,t)},this.setScale=function(e,t){i=e;for(var n=0;n<m.length;++n)m[n].setScale(i,t);e=[e.x,e.y,e.z];void 0!==t&&(e.push(t.getX()),e.push(t.getY()),e.push(t.getZ())),f({type:"zoomchange",value:e})},this.addTranslation=function(e){this.setOffset({x:n.x-e.x,y:n.y-e.y,z:n.z-e.z})},this.setOffset=function(e){n=e;for(var t=0;t<m.length;++t)m[t].setOffset(n);f({type:"offsetchange",value:[n.x,n.y,n.z]})},this.reset=function(){this.setScale(e),this.setOffset({x:0,y:0,z:0})},this.draw=function(){for(var e=0;e<m.length;++e)m[e].draw()},this.display=function(e){for(var t=0;t<m.length;++t)m[t].display(e)},this.addEventListener=function(e,t){s.add(e,t)},this.removeEventListener=function(e,t){s.remove(e,t)}},z||{}),z=(z.gui=z.gui||{},z.gui.WindowLevelBinder=function(){this.getEventType=function(){return"wlchange"},this.getCallback=function(n){return function(e){var t=n.getViewLayersByDataIndex(e.dataindex);0!==t.length&&t[0].getViewController().setWindowLevel(e.value[0],e.value[1])}}},z.gui.PositionBinder=function(){this.getEventType=function(){return"positionchange"},this.getCallback=function(o){return function(e){var e=e.value[1],t=o.getActiveViewLayer().getViewController(),n=t.getCurrentPosition(),i=n.length(),r=e.length;r!==i&&(r===i-1?e.push(n.get(i-1)):r===i+1&&e.pop()),t.setCurrentPosition(new z.math.Point(e))}}},z.gui.ZoomBinder=function(){this.getEventType=function(){return"zoomchange"},this.getCallback=function(i){return function(e){var t,n={x:e.value[0],y:e.value[1],z:e.value[2]};6===e.value.length&&(t=new z.math.Point3D(e.value[3],e.value[4],e.value[5])),i.setScale(n,t),i.draw()}}},z.gui.OffsetBinder=function(){this.getEventType=function(){return"offsetchange"},this.getCallback=function(t){return function(e){t.setOffset({x:e.value[0],y:e.value[1],z:e.value[2]}),t.draw()}}},z.gui.OpacityBinder=function(){this.getEventType=function(){return"opacitychange"},this.getCallback=function(n){return function(e){var t;void 0!==e.dataindex&&0!==(t=n.getViewLayersByDataIndex(e.dataindex)).length&&(t[0].setOpacity(e.value),t[0].draw())}}},z.gui.Stage=function(){var o=[],n=null,i=[],r=null;function a(t,n){void 0===r[n]&&(r[n]=[]);var e=r[n].find(function(e){return e.binder===t});return void 0===e&&r[n].push(e={binder:t,callback:function(e){l(n,t),t.getCallback(o[n])(e),s(n,t)}}),e.callback}function s(e,t){for(var n=0;n<o.length;++n)n!==e&&o[e].addEventListener(t.getEventType(),a(t,n))}function l(e,t){for(var n=0;n<o.length;++n)n!==e&&o[e].removeEventListener(t.getEventType(),a(t,n))}this.getLayerGroup=function(e){return o[e]},this.getNumberOfLayerGroups=function(){return o.length},this.getActiveLayerGroup=function(){return this.getLayerGroup(n)},this.getViewLayersByDataIndex=function(e){for(var t=[],n=0;n<o.length;++n)t=t.concat(o[n].getViewLayersByDataIndex(e));return t},this.addLayerGroup=function(e){n=o.length;var e=new z.gui.LayerGroup(e),t=r&&0!==r.length;return t&&this.unbindLayerGroups(),o.push(e),t&&this.bindLayerGroups(),e},this.getLayerGroupByDivId=function(t){return o.find(function(e){return e.getDivId()===t})},this.setBinders=function(e){if(null==e)throw new Error("Cannot set null or undefined binders");0!==i.length&&this.unbindLayerGroups(),i=e.slice(),this.bindLayerGroups()},this.empty=function(){this.unbindLayerGroups();for(var e=0;e<o.length;++e)o[e].empty();o=[],n=null},this.reset=function(){for(var e=0;e<o.length;++e)o[e].reset()},this.draw=function(){for(var e=0;e<o.length;++e)o[e].draw()},this.syncLayerGroupScale=function(){for(var e,t=[],n=0;n<o.length;++n){var i=o[n].calculateFitScale();void 0!==i&&(t.push(n),(void 0===e||i<e)&&(e=i))}if(void 0!==e)for(var r=0;r<o.length;++r)t.includes(r)&&o[r].setFitScale(e)},this.bindLayerGroups=function(){if(0!==o.length&&1!==o.length&&0!==i.length){r=new Array(o.length);for(var e=0;e<o.length;++e)for(var t=0;t<i.length;++t)s(e,i[t])}},this.unbindLayerGroups=function(){if(0!==o.length&&1!==o.length&&0!==i.length&&r){for(var e=0;e<o.length;++e)for(var t=0;t<i.length;++t)l(e,i[t]);r=null}}},z||{}),z=(z.gui=z.gui||{},z.gui.Style=function(){var t="#ffff80",n={x:1,y:1},i={x:1,y:1},e={x:.25,y:.25};this.getFontFamily=function(){return"Verdana"},this.getFontSize=function(){return 10},this.getStrokeWidth=function(){return 2},this.getTextColour=function(){return"#fff"},this.getLineColour=function(){return t},this.setLineColour=function(e){t=e},this.setBaseScale=function(e){n=e},this.setZoomScale=function(e){i=e},this.getBaseScale=function(){return n},this.getZoomScale=function(){return i},this.scale=function(e){return e/n.x},this.applyZoomScale=function(e){return{x:2*e/i.x,y:2*e/i.y}},this.getShadowOffset=function(){return e},this.getTagOpacity=function(){return.2},this.getTextPadding=function(){return 3}},z.gui.Style.prototype.getFontStr=function(){return"normal "+this.getFontSize()+"px sans-serif"},z.gui.Style.prototype.getLineHeight=function(){return this.getFontSize()+this.getFontSize()/5},z.gui.Style.prototype.getScaledFontSize=function(){return this.scale(this.getFontSize())},z.gui.Style.prototype.getScaledStrokeWidth=function(){return this.scale(this.getStrokeWidth())},z.gui.Style.prototype.getShadowLineColour=function(){return z.utils.getShadowColour(this.getLineColour())},z||{}),z=(z.gui=z.gui||{},z.gui.ViewLayer=function(r){r.className+=" viewLayer";var t,a,i=this,o=null,s=null,l=null,u=null,c=!0,n=null,d=1,g={x:1,y:1},x={x:1,y:1},S={x:0,y:0},m={x:0,y:0},h={x:0,y:0},p={x:0,y:0},f={x:0,y:0},y=null,D=null,v=(this.getDataIndex=function(){return D},new z.utils.ListenerHandler),C=!1;function T(e){if(!z.gui.canCreateCanvas(e.x,e.y))throw new Error("Cannot create canvas with size "+e.x+", "+e.y);t=e,l.width=t.x,l.height=t.y,u.clearRect(0,0,t.x,t.y),n=u.createImageData(t.x,t.y)}function L(e){e.srclayerid=i.getId(),e.dataindex=D,v.fireEvent(e)}function I(e){void 0!==e.skipGenerate&&!0===e.skipGenerate||(y=!0,i.draw())}function P(e){void 0!==event.skipGenerate&&!0===event.skipGenerate||(y=!0,i.draw())}function w(e){var t,n;void 0!==e.skipGenerate&&!0===e.skipGenerate||(n=!0,(n=void 0!==e.valid?e.valid:n)?(n=(t=[0,1,2]).indexOf(o.getScrollIndex()),t.splice(n,1),0===e.diffDims.filter(function(e){return-1===t.indexOf(e)}).length&&c||(y=c=!0,i.draw())):c&&(c=!1,i.clear()))}function A(e){void 0!==e.skipGenerate&&!0===e.skipGenerate||(y=!0,i.draw())}this.enableImageSmoothing=function(e){C=e},this.setView=function(e){e.addEventListener("wlchange",I),e.addEventListener("colourchange",P),e.addEventListener("positionchange",w),e.addEventListener("alphafuncchange",A);for(var t=0;t<z.image.viewEventNames.length;++t)e.addEventListener(z.image.viewEventNames[t],L);o=new z.ctrl.ViewController(e)},this.getViewController=function(){return o},this.getImageData=function(){return n},this.onimagechange=function(e){D===e.value[0]&&(o.setImage(e.value[1]),T(o.getImageSize().get2D()),y=!0)},this.getId=function(){return r.id},this.getBaseSize=function(){return t},this.getImageWorldSize=function(){return o.getImageWorldSize()},this.getOpacity=function(){return d},this.setOpacity=function(e){e!==d&&L({type:"opacitychange",value:[d=Math.min(Math.max(e,0),1)]})},this.addFlipOffsetX=function(){f.x+=s.width/g.x,S.x+=f.x},this.addFlipOffsetY=function(){f.y+=s.height/g.y,S.y+=f.y},this.setScale=function(e,t){var n=o.getPlaneHelper(),i=n.getTargetOrientedPositiveXYZ(e),i={x:x.x*i.x,y:x.y*i.y};1===Math.abs(e.x)&&1===Math.abs(e.y)&&1===Math.abs(e.z)?(e={x:S.x-p.x,y:S.y-p.y},p={x:0,y:0},S=e):void 0!==t&&(e={x:(e=n.getPlaneOffsetFromOffset3D({x:t.getX(),y:t.getY(),z:t.getZ()})).x+m.x,y:e.y+m.y},n=z.gui.getScaledOffset(S,g,i,e),t={x:p.x+n.x-S.x,y:p.y+n.y-S.y},p=t,S=n),g=i},this.setBaseOffset=function(e,t){var n=o.getPlaneHelper(),i=n.getNativeScrollIndex(),n=n.getPlaneOffsetFromOffset3D({x:(0===i?e:t).getX(),y:(1===i?e:t).getY(),z:(2===i?e:t).getZ()}),i=m.x!==n.x||m.y!==n.y;return i&&(S={x:S.x-m.x+n.x,y:S.y-m.y+n.y},m=n),i},this.setOffset=function(e){e=o.getPlaneHelper().getPlaneOffsetFromOffset3D(e);S={x:e.x+h.x+m.x+p.x+f.x,y:e.y+h.y+m.y+p.y+f.y}},this.displayToPlaneIndex=function(e,t){e=this.displayToPlanePos(e,t);return new z.math.Index([Math.floor(e.x),Math.floor(e.y)])},this.displayToPlaneScale=function(e,t){return{x:e/g.x,y:t/g.y}},this.displayToPlanePos=function(e,t){e=this.displayToPlaneScale(e,t);return{x:e.x+S.x,y:e.y+S.y}},this.planePosToDisplay=function(e,t){return{x:(e-S.x+m.x)*g.x,y:(t-S.y+m.y)*g.y}},this.displayToMainPlanePos=function(e,t){e=this.displayToPlanePos(e,t);return{x:e.x-m.x,y:e.y-m.y}},this.display=function(e){r.style.display=e?"":"none"},this.isVisible=function(){return""===r.style.display},this.draw=function(){c&&(L({type:"renderstart",layerid:this.getId(),dataid:this.getDataIndex()}),y&&(o.generateImageData(n),l.getContext("2d").putImageData(n,0,0),y=!1),u.globalAlpha=d,this.clear(),u.setTransform(g.x,0,0,g.y,-1*S.x*g.x,-1*S.y*g.y),u.imageSmoothingEnabled=C,u.drawImage(l,0,0),L({type:"renderend",layerid:this.getId(),dataid:this.getDataIndex()}))},this.initialise=function(e,t,n,i){a=t,D=n,d=Math.min(Math.max(i,0),1),s=document.createElement("canvas"),r.appendChild(s),s.getContext?(u=s.getContext("2d"))?(l=document.createElement("canvas"),T(e),y=!0):alert("Error: failed to get the 2D context."):alert("Error: no canvas.getContext method.")},this.fitToContainer=function(e,t,n){var i=!1;if(s.width!==t.x||s.height!==t.y){if(!z.gui.canCreateCanvas(t.x,t.y))throw new Error("Cannot resize canvas "+t.x+", "+t.y);s.width=t.x,s.height=t.y,i=!0}var t=g.x/x.x,r=g.y/x.y,e={x:e*a.x,y:e*a.y},o={x:t*e.x,y:r*e.y},t=(t===o.x&&r===o.y||(x=e,g=o,i=!0),{x:n.x/e.x,y:n.y/e.y});h.x===t.x&&h.y===t.y||(S={x:(h=t).x+m.x+p.x,y:h.y+m.y+p.y},i=!0),i&&this.draw()},this.bindInteraction=function(){r.style.pointerEvents="auto";for(var e=z.gui.interactionEventNames,t=0;t<e.length;++t)r.addEventListener(e[t],L)},this.unbindInteraction=function(){r.style.pointerEvents="none";for(var e=z.gui.interactionEventNames,t=0;t<e.length;++t)r.removeEventListener(e[t],L)},this.addEventListener=function(e,t){v.add(e,t)},this.removeEventListener=function(e,t){v.remove(e,t)},this.setCurrentPosition=function(e,t){return o.setCurrentPosition(e)},this.clear=function(){u.save(),u.setTransform(1,0,0,1,0,0),u.clearRect(0,0,s.width,s.height),u.restore()},this.align=function(e){s.style.top=e.getCanvas().offsetTop,s.style.left=e.getCanvas().offsetLeft}},z||{}),d=(z.image=z.image||{},"undefined"!=typeof JpegImage),g="undefined"!=typeof jpeg&&void 0!==jpeg.lossless,x="undefined"!=typeof JpxImage,z=(z.image.AsynchPixelBufferDecoder=function(i,e){var r=new z.utils.ThreadPool(10),o=!1,a=this;this.decode=function(e,t,n){o||(o=!0,r.onworkstart=a.ondecodestart,r.onworkitem=a.ondecodeditem,r.onwork=a.ondecoded,r.onworkend=a.ondecodeend,r.onerror=a.onerror,r.onabort=a.onabort);e=new z.utils.WorkerTask(i,{buffer:e,meta:t},n);r.addWorkerTask(e)},this.abort=function(){r.abort()}},z.image.AsynchPixelBufferDecoder.prototype.ondecodestart=function(e){},z.image.AsynchPixelBufferDecoder.prototype.ondecodeditem=function(e){},z.image.AsynchPixelBufferDecoder.prototype.ondecoded=function(e){},z.image.AsynchPixelBufferDecoder.prototype.ondecodeend=function(e){},z.image.AsynchPixelBufferDecoder.prototype.onerror=function(e){},z.image.AsynchPixelBufferDecoder.prototype.onabort=function(e){},z.image.SynchPixelBufferDecoder=function(s,l){var u=0;this.decode=function(e,t,n){++u;var i=null,r=null;if("jpeg-lossless"===s){if(!g)throw new Error("No JPEG Lossless decoder provided");var o=t.bitsAllocated/8,a=new Uint8Array(e),a=(i=new jpeg.lossless.Decoder).decode(a.buffer,0,a.buffer.byteLength,o);8===t.bitsAllocated?r=new(t.isSigned?Int8Array:Uint8Array)(a.buffer):16===t.bitsAllocated&&(r=new(t.isSigned?Int16Array:Uint16Array)(a.buffer))}else if("jpeg-baseline"===s){if(!d)throw new Error("No JPEG Baseline decoder provided");(i=new JpegImage).parse(e),r=i.getData(i.width,i.height)}else if("jpeg2000"===s){if(!x)throw new Error("No JPEG 2000 decoder provided");(i=new JpxImage).parse(e),r=i.tiles[0].items}else"rle"===s&&(r=(i=new z.decoder.RleDecoder).decode(e,t.bitsAllocated,t.isSigned,t.sliceSize,t.samplesPerPixel,t.planarConfiguration));this.ondecodeditem({data:[r],index:n.itemNumber}),u===l&&(this.ondecoded({}),this.ondecodeend({}))},this.abort=function(){this.onabort({}),this.ondecodeend({})}},z.image.SynchPixelBufferDecoder.prototype.ondecodestart=function(e){},z.image.SynchPixelBufferDecoder.prototype.ondecodeditem=function(e){},z.image.SynchPixelBufferDecoder.prototype.ondecoded=function(e){},z.image.SynchPixelBufferDecoder.prototype.ondecodeend=function(e){},z.image.SynchPixelBufferDecoder.prototype.onerror=function(e){},z.image.SynchPixelBufferDecoder.prototype.onabort=function(e){},z.image.PixelBufferDecoder=function(e,t){var i=null,i=void 0!==z.image.decoderScripts&&void 0!==z.image.decoderScripts[e]?new z.image.AsynchPixelBufferDecoder(z.image.decoderScripts[e],t):new z.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()}},z.image.PixelBufferDecoder.prototype.ondecodestart=function(e){},z.image.PixelBufferDecoder.prototype.ondecodeditem=function(e){},z.image.PixelBufferDecoder.prototype.ondecoded=function(e){},z.image.PixelBufferDecoder.prototype.ondecodeend=function(e){},z.image.PixelBufferDecoder.prototype.onerror=function(e){},z.image.PixelBufferDecoder.prototype.onabort=function(e){},z||{}),z=(z.image=z.image||{},z.image.DicomBufferToView=function(){var c,d=this,g=(this.setOptions=function(e){c=e},null),x=[],S=[],m=[];function h(e,t){var n=x[e].getDicomElements(),i=z.dicom.cleanString(n.getFromKey("x00080060")),i=new(i&&"SEG"===i?z.image.MaskFactory:z.image.ImageFactory);try{var r=i.create(n,S[e],c.numberOfFiles);d.onloaditem({data:{image:r,info:x[e].getRawDicomElements()},source:t})}catch(e){d.onerror({error:e,source:t}),d.onloadend({source:t})}}this.convert=function(e,t,n){d.onloadstart({source:t,dataIndex:n});var i=new z.dicom.DicomParser,r=new z.ImageFactory;void 0!==c.defaultCharacterSet&&i.setDefaultCharacterSet(c.defaultCharacterSet);try{i.parse(e),r.checkElements(i.getDicomElements())}catch(e){return d.onerror({error:e,source:t}),void d.onloadend({source:t})}var o=i.getRawDicomElements().x7FE00010.value,e=(i.getRawDicomElements().x7FE00010.value=[],z.dicom.cleanString(i.getRawDicomElements().x00020010.value[0])),r=z.dicom.getSyntaxDecompressionName(e),e=null!==r;if(x[n]=i,S[n]=o[0],e){var a={bitsAllocated:i.getRawDicomElements().x00280100.value[0],isSigned:1===i.getRawDicomElements().x00280103.value[0]},e=i.getRawDicomElements().x00280011,s=i.getRawDicomElements().x00280010,e=(void 0!==e&&void 0!==s&&(a.sliceSize=e.value[0]*s.value[0]),i.getRawDicomElements().x00280002),s=(void 0!==e&&(a.samplesPerPixel=e.value[0]),i.getRawDicomElements().x00280006),l=(void 0!==s&&(a.planarConfiguration=s.value[0]),o.length);null===g&&((g=new z.image.PixelBufferDecoder(r,l)).ondecodeditem=function(e){!function(e){d.onprogress({lengthComputable:!0,loaded:e.itemNumber+1,total:e.numberOfItems,index:e.dataIndex,source:origin});var t=e.dataIndex,n=e.data[0];if(1!==e.numberOfItems){if(void 0===m[t]){m[t]=n.length;var i,r=e.numberOfItems*m[t];try{S[t]=new n.constructor(r)}catch(e){return e instanceof RangeError&&(i=Math.floor(Math.log(r)/Math.log(2)),z.logger.error("Cannot allocate "+n.constructor.name+" of size: "+r+" (>2^"+i+") for decompressed data.")),g.abort(),d.onerror({error:e,source:origin}),d.onloadend({source:origin})}}n.length!==m[t]&&z.logger.warn("Unsupported varying decompressed data size: "+n.length+" != "+m[t]),S[t].set(n,m[t]*e.itemNumber)}else S[t]=n;0===e.itemNumber&&h(t,origin)}(e),e.itemNumber+1===e.numberOfItems&&(d.onload(e),d.onloadend(e))},g.onerror=d.onerror,g.onabort=d.onabort);for(var u=0;u<l;++u)g.decode(o[u],a,{itemNumber:u,numberOfItems:l,dataIndex:n})}else d.onprogress({lengthComputable:!0,loaded:100,total:100,index:n,source:t}),h(n,t),d.onload({source:t}),d.onloadend({source:t})},this.abort=function(){g&&g.abort()}},z.image.DicomBufferToView.prototype.onloadstart=function(e){},z.image.DicomBufferToView.prototype.onloaditem=function(e){},z.image.DicomBufferToView.prototype.onprogress=function(e){},z.image.DicomBufferToView.prototype.onload=function(e){},z.image.DicomBufferToView.prototype.onloadend=function(e){},z.image.DicomBufferToView.prototype.onerror=function(e){},z.image.DicomBufferToView.prototype.onabort=function(e){},z||{}),z=(z.image=z.image||{},z.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},z.image.getDefaultImage=function(e,t,n,i,r,o){e=new z.image.Size([e,t,1]),t=new z.image.Spacing([1,1,1]),n=new z.math.Point3D(0,0,n),n=new z.image.Geometry(n,e,t),e=new z.image.Image(n,i,[o]),e.setPhotometricInterpretation("RGB"),t={};return t.BitsStored=8,void 0!==r&&(t.numberOfFiles=r),e.setMeta(t),e},z.image.getViewFromDOMImage=function(e,t){var n=e.width,i=e.height,r=document.createElement("canvas"),r=(r.width=n,r.height=i,r.getContext("2d")),r=(r.drawImage(e,0,0),r.getImageData(0,0,n,i)),o={},e=("string"==typeof e.origin?o.origin={value:e.origin}:(o.fileName={value:e.origin.name},o.fileType={value:e.origin.type},o.fileLastModifiedDate={value:e.origin.lastModifiedDate}),o.imageWidth={value:n},o.imageHeight={value:i},e.index||0),r=(o.imageUid={value:e},z.image.imageDataToBuffer(r));return{data:{image:z.image.getDefaultImage(n,i,e,r,1,e),info:o},source:t}},z.image.getViewFromDOMVideo=function(t,n,i,r,o,a,s){var l=t.videoWidth,u=t.videoHeight,c=Math.ceil(30*t.duration),d={},e=(t.file&&(d.fileName={value:t.file.name},d.fileType={value:t.file.type},d.fileLastModifiedDate={value:t.file.lastModifiedDate}),d.imageWidth={value:l},d.imageHeight={value:u},d.numberOfFrames={value:c},d.imageUid={value:0},document.createElement("canvas")),g=(e.width=l,e.height=u,e.getContext("2d")),x=(t.addEventListener("seeked",function e(){m();h+=1/30;h<=this.duration?this.currentTime=h:(i({source:s}),o({source:s}),t.removeEventListener("seeked",e))},!1),0),S=null;function m(){r({lengthComputable:!0,loaded:x,total:c,index:a,source:s}),g.drawImage(t,0,0);var e=z.image.imageDataToBuffer(g.getImageData(0,0,l,u));0===x?(S=z.image.getDefaultImage(l,u,1,e,c,a),n({data:{image:S,info:d},source:s})):S.appendFrameBuffer(e,x),++x}var h=0;t.currentTime=h},z||{}),z=(z.image=z.image||{},z.image.filter=z.image.filter||{},z.image.filter.Threshold=function(){var t=0,n=0,i=(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"},null);this.setOriginalImage=function(e){i=e},this.getOriginalImage=function(){return i}},z.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})},z.image.filter.Sharpen=function(){this.getName=function(){return"Sharpen"};var t=null;this.setOriginalImage=function(e){t=e},this.getOriginalImage=function(){return t}},z.image.filter.Sharpen.prototype.update=function(){return this.getOriginalImage().convolute2D([0,-1,0,-1,5,-1,0,-1,0])},z.image.filter.Sobel=function(){this.getName=function(){return"Sobel"};var t=null;this.setOriginalImage=function(e){t=e},this.getOriginalImage=function(){return t}},z.image.filter.Sobel.prototype.update=function(){var e=this.getOriginalImage(),t=e.convolute2D([1,0,-1,2,0,-2,1,0,-1]),e=e.convolute2D([1,2,1,0,0,0,-1,-2,-1]);return t.compose(e,function(e,t){return Math.sqrt(e*e+t*t)})},z||{}),z=(z.image=z.image||{},z.image.Geometry=function(e,i,r,s,t){var o,l=[e],u={},a=(void 0!==t&&(u[o=t]=[e]),void 0===s&&(s=new z.math.getIdentityMat33),!1);this.getInitialTime=function(){return o},this.getCurrentTotalNumberOfSlices=function(){var e=Object.keys(u);if(0===e.length)return l.length;for(var t=0,n=0;n<e.length;++n)t+=u[e[n]].length;return t},this.hasSlicesAtTime=function(e){return void 0!==u[e]},this.getCurrentNumberOfSlicesBeforeTime=function(e){var t=Object.keys(u);if(0!==t.length){for(var n=0,i=0;i<t.length;++i){var r=t[i];if(parseInt(r,10)===e)break;n+=u[r].length}return n}},this.getOrigin=function(){return l[0]},this.getOrigins=function(){return l},this.includesOrigin=function(e,t){for(var n=0;n<l.length;++n)if(l[n].isSimilar(e,t))return!0;return!1},this.getSize=function(e){var t=i;return e&&void 0!==e&&(e=(e=z.image.getOrientedArray3D([i.get(0),i.get(1),i.get(2)],e)).map(Math.abs),t=new z.image.Size(e.concat(i.getValues().slice(3)))),t},this.getSpacing=function(e){a&&(void 0!==(n=z.image.getSliceGeometrySpacing(l,s))&&r.get(2)!==n&&(z.logger.trace("Updating slice spacing."),(t=r.getValues())[2]=n,r=new z.image.Spacing(t)),a=!1);var t,n=r;return e&&void 0!==e&&(t=(t=z.image.getOrientedArray3D([r.get(0),r.get(1),r.get(2)],e)).map(Math.abs),n=new z.image.Spacing(t)),n},this.getRealSpacing=function(){return this.getSpacing(s.getInverse().asOneAndZeros())},this.getOrientation=function(){return s},this.getSliceIndex=function(e,t){for(var n,i=l,r=(void 0!==t&&(i=u[t]),0),o=e.getDistance(i[0]),a=0;a<i.length;++a)(n=e.getDistance(i[a]))<o&&(o=n,r=a);t=i[r],t=e.minus(t);return 0<new z.math.Vector3D(s.get(0,2),s.get(1,2),s.get(2,2)).dotProduct(t)?r+1:r},this.appendOrigin=function(e,t,n){void 0!==n&&u[n].splice(t,0,e),void 0!==n&&n!==o||(a=!0,l.splice(t,0,e),(n=i.getValues())[2]+=1,i=new z.image.Size(n))},this.appendFrame=function(e,t){u[t]=[e];t=i.getValues(),e=r.getValues();4===t.length?t[3]+=1:(t.push(2),e.push(1)),i=new z.image.Size(t),r=new z.image.Spacing(e)}},z.image.Geometry.prototype.toString=function(){return"Origin: "+this.getOrigin()+", Size: "+this.getSize()+", Spacing: "+this.getSpacing()+", Orientation: "+this.getOrientation()},z.image.Geometry.prototype.equals=function(e){return null!==e&&this.getOrigin().equals(e.getOrigin())&&this.getSize().equals(e.getSize())&&this.getSpacing().equals(e.getSpacing())},z.image.Geometry.prototype.isInBounds=function(e){return this.isIndexInBounds(this.worldToIndex(e))},z.image.Geometry.prototype.isIndexInBounds=function(e,t){return this.getSize().isInBounds(e,t)},z.image.Geometry.prototype.indexToWorld=function(e){var t=this.getSpacing(),t=new z.math.Point3D(e.get(0)*t.get(0),e.get(1)*t.get(1),e.get(2)*t.get(2)),t=this.getOrientation().multiplyPoint3D(t),e=e.getValues(),n=this.getOrigin();return e[0]=n.getX()+t.getX(),e[1]=n.getY()+t.getY(),e[2]=n.getZ()+t.getZ(),new z.math.Point(e)},z.image.Geometry.prototype.pointToWorld=function(e){var t=this.getSpacing(),e=new z.math.Point3D(e.getX()*t.get(0),e.getY()*t.get(1),e.getZ()*t.get(2)),t=this.getOrientation().multiplyPoint3D(e),e=this.getOrigin();return new z.math.Point3D(e.getX()+t.getX(),e.getY()+t.getY(),e.getZ()+t.getZ())},z.image.Geometry.prototype.worldToIndex=function(e){var t=this.getOrigin(),t=new z.math.Point3D(e.get(0)-t.getX(),e.get(1)-t.getY(),e.get(2)-t.getZ()),t=this.getOrientation().getInverse().multiplyPoint3D(t),e=e.getValues(),n=this.getSpacing();return e[0]=Math.round(t.getX()/n.get(0)),e[1]=Math.round(t.getY()/n.get(1)),e[2]=Math.round(t.getZ()/n.get(2)),new z.math.Index(e)},z.image.Geometry.prototype.worldToPoint=function(e){var t=this.getOrigin(),t=new z.math.Point3D(e.get(0)-t.getX(),e.get(1)-t.getY(),e.get(2)-t.getZ()),t=this.getOrientation().getInverse().multiplyPoint3D(t),e=e.getValues(),n=this.getSpacing();return e[0]=t.getX()/n.get(0),e[1]=t.getY()/n.get(1),e[2]=t.getZ()/n.get(2),new z.math.Point3D(e[0],e[1],e[2])},z.image.getOrientedArray3D=function(e,t){return t.getInverse().multiplyArray3D(e)},z.image.getDeOrientedArray3D=function(e,t){return t.multiplyArray3D(e)},z.image.getSliceGeometrySpacing=function(e,t,n){if(void 0===n&&(n=!0),!(e.length<=1)){for(var i=t.getInverse(),r=i.multiplyVector3D(e[0]),o=i.multiplyVector3D(e[1]),a=Math.abs(r.getZ()-o.getZ()),s=[],l=0;l<e.length-1;++l){var r=i.multiplyVector3D(e[l]),o=i.multiplyVector3D(e[l+1]),u=Math.abs(r.getZ()-o.getZ());if(0===u)throw new Error("Zero slice spacing."+r.toString()+" "+o.toString());u<a&&(a=u),!n||z.math.isSimilar(a,u,z.math.BIG_EPSILON)||s.push(Math.abs(a-u))}return n&&0!==s.length&&(1e-4<(t=s.reduce(function(e,t){return e+t})/s.length)&&z.logger.warn("Varying slice spacing, mean delta: "+t.toFixed(3)+" ("+s.length+" case(s))")),a}},z||{}),z=(z.image=z.image||{},z.image.getSliceIndex=function(e,t){var n=t.getInitialTime(),i=[];return i.push(0),i.push(0),i.push(e.getSliceIndex(t.getOrigin(),n)),void 0!==n&&i.push(n),new z.math.Index(i)},z.image.Image=function(f,y,D){var r=new z.image.RescaleSlopeAndIntercept(1,0),o=null,a=!0,s=!0,v="MONOCHROME2",t=0,C=y.length/f.getSize().getTotalSize(),T={},n=null,i=null,l=null,u=new z.utils.ListenerHandler;function c(){return f.getSize().getTotalSize(2)}function L(e){var t=y;if(null===(y=z.dicom.getTypedArray(8*y.BYTES_PER_ELEMENT,T.IsSigned?1:0,e)))throw new Error("Cannot reallocate data for image.");y.set(t)}this.getImageUid=function(e){var t=D[0];return t=1!==D.length&&void 0!==e?D[this.getSecondaryOffset(e)]:t},this.getGeometry=function(){return f},this.getBuffer=function(){return y},this.canQuantify=function(){return 1===this.getNumberOfComponents()},this.canWindowLevel=function(){return null!==this.getPhotometricInterpretation().match(/MONOCHROME/)},this.canScroll=function(e){var t=this.getGeometry().getSize(),n=1;return void 0!==T.numberOfFiles&&(n=T.numberOfFiles),t.canScroll(e)||1!==n},this.getSecondaryOffset=function(e){return f.getSize().indexToOffset(e,2)},this.getRescaleSlopeAndIntercept=function(e){var t=r;if(!this.isConstantRSI()){if(void 0===e)throw new Error("Cannot get non constant RSI with empty slice index.");e=this.getSecondaryOffset(e);void 0!==o[e]?t=o[e]:z.logger.warn("undefined non constant rsi at "+e)}return t},this.setRescaleSlopeAndIntercept=function(e,t){if(a=a&&e.isID(),s){if(!r.equals(e))if("undefined"==typeof index)r=e;else{s=!1,o=[];for(var n=0,i=c();n<i;++n)o.push(n);r=null,o.splice(t,0,e)}}else{if("undefined"==typeof index)throw new Error("Cannot store non constant RSI with empty slice index.");o.splice(t,0,e)}},this.isIdentityRSI=function(){return a},this.isConstantRSI=function(){return s},this.getPhotometricInterpretation=function(){return v},this.setPhotometricInterpretation=function(e){v=e},this.getPlanarConfiguration=function(){return t},this.setPlanarConfiguration=function(e){t=e},this.getNumberOfComponents=function(){return C},this.getMeta=function(){return T},this.setMeta=function(e){T=e},this.getValueAtOffset=function(e){return y[e]},this.clone=function(){var e=y.slice(0),t=new z.image.Image(this.getGeometry(),e,D);if(this.isConstantRSI())t.setRescaleSlopeAndIntercept(this.getRescaleSlopeAndIntercept());else for(var n=0;n<c();++n)t.setRescaleSlopeAndIntercept(o[n],n);return t.setPhotometricInterpretation(this.getPhotometricInterpretation()),t.setPlanarConfiguration(this.getPlanarConfiguration()),t.setMeta(this.getMeta()),t},this.appendSlice=function(e){if(null===e)throw new Error("Cannot append null slice");var t,n=e.getGeometry().getSize(),i=f.getSize();if(1!==n.get(2))throw new Error("Cannot append more than one slice");if(i.get(0)!==n.get(0))throw new Error("Cannot append a slice with different number of columns");if(i.get(1)!==n.get(1))throw new Error("Cannot append a slice with different number of rows");if(!f.getOrientation().equals(e.getGeometry().getOrientation(),1e-4))throw new Error("Cannot append a slice with different orientation");if(v!==e.getPhotometricInterpretation())throw new Error("Cannot append a slice with different photometric interpretation");for(t in T)if("windowPresets"!==t&&"numberOfFiles"!==t&&"custom"!==t&&T[t]!==e.getMeta()[t])throw new Error("Cannot append a slice with different "+t);var n=e.getGeometry().getInitialTime(),r=!1,o=(void 0===n||f.hasSlicesAtTime(n)||(this.appendFrame(e.getGeometry().getOrigin(),n),i=f.getSize(),r=!0),z.image.getSliceIndex(f,e.getGeometry())),i=C*i.getDimSize(2);if(void 0===T.numberOfFiles)throw new Error("Missing number of files for buffer manipulation.");var a=i*T.numberOfFiles,a=(y.length!==a&&L(a),o.get(2)),s=a,o=(void 0!==n&&(s+=f.getCurrentNumberOfSlicesBeforeTime(n)),s*i),l=f.getCurrentTotalNumberOfSlices()*i,u=(o<l&&y.set(y.subarray(o,l),o+i),y.set(e.getBuffer(),o),r||f.appendOrigin(e.getGeometry().getOrigin(),a,n),this.setRescaleSlopeAndIntercept(e.getRescaleSlopeAndIntercept(),s),D.length);if(D.splice(s,0,e.getImageUid()),void 0!==T.windowPresets)for(var c=T.windowPresets,d=e.getMeta().windowPresets,g=Object.keys(d),x=0;x<g.length;++x){var S,m=d[S=g[x]],h=c[S];if(void 0!==h){if((void 0===h.perslice||!1===h.perslice)&&!h.wl[0].equals(m.wl[0])){h.perslice=!0;for(var p=0;p<u-1;++p)h.wl.push(h.wl[0])}void 0!==h.perslice&&!0===h.perslice&&c[S].wl.splice(s,0,m.wl[0])}else c[S]=d[S]}},this.appendFrameBuffer=function(e,t){var n=f.getSize(),n=C*n.getDimSize(2);if(void 0===T.numberOfFiles)throw new Error("Missing number of files for frame buffer manipulation.");var i=n*T.numberOfFiles;if(y.length!==i&&L(i),t>=T.numberOfFiles)throw new Error("Cannot append a frame at an index above the number of frames");y.set(e,n*t),this.appendFrame()},this.appendFrame=function(e,t){f.appendFrame(e,t),u.fireEvent({type:"appendframe"})},this.getDataRange=function(){return n=n||this.calculateDataRange()},this.getRescaledDataRange=function(){return i=i||this.calculateRescaledDataRange()},this.getHistogram=function(){var e;return l||(e=this.calculateHistogram(),n=e.dataRange,i=e.rescaledDataRange,l=e.histogram),l},this.addEventListener=function(e,t){u.add(e,t)},this.removeEventListener=function(e,t){u.remove(e,t)}},z.image.Image.prototype.getValue=function(e,t,n,i){e=new z.math.Index([e,t,n,i||0]);return this.getValueAtOffset(this.getGeometry().getSize().indexToOffset(e))},z.image.Image.prototype.getValueAtIndex=function(e){return this.getValueAtOffset(this.getGeometry().getSize().indexToOffset(e))},z.image.Image.prototype.getRescaledValue=function(e,t,n,i){var r=this.getValue(e,t,n,i=void 0===i?0:i);return r=this.isIdentityRSI()?r:this.isConstantRSI()?this.getRescaleSlopeAndIntercept().apply(r):(e=new z.math.Index([e,t,n,i]),this.getRescaleSlopeAndIntercept(e).apply(r))},z.image.Image.prototype.getRescaledValueAtIndex=function(e){return this.getRescaledValueAtOffset(this.getGeometry().getSize().indexToOffset(e))},z.image.Image.prototype.getRescaledValueAtOffset=function(e){var t=this.getValueAtOffset(e);return t=this.isIdentityRSI()?t:this.isConstantRSI()?this.getRescaleSlopeAndIntercept().apply(t):(e=this.getGeometry().getSize().offsetToIndex(e),this.getRescaleSlopeAndIntercept(e).apply(t))},z.image.Image.prototype.calculateDataRange=function(){var e,t=this.getValueAtOffset(0),n=t,i=this.getGeometry().getSize(),r=i.getTotalSize();3<=i.length()&&(r=i.getDimSize(3));for(var o=0;o<r;++o)n<(e=this.getValueAtOffset(o))&&(n=e),e<t&&(t=e);return{min:t,max:n}},z.image.Image.prototype.calculateRescaledDataRange=function(){if(this.isIdentityRSI())return this.getDataRange();var e;if(this.isConstantRSI())return e=this.getDataRange(),{min:(r=this.getRescaleSlopeAndIntercept().apply(e.min))<(e=this.getRescaleSlopeAndIntercept().apply(e.max))?r:e,max:e<r?r:e};var t,n=this.getRescaledValueAtOffset(0),i=n,r=this.getGeometry().getSize(),o=r.getTotalSize();3===r.length()&&(o=r.getDimSize(3));for(var a=0;a<o;++a)i<(t=this.getRescaledValueAtOffset(a))&&(i=t),t<n&&(n=t);return{min:n,max:i}},z.image.Image.prototype.calculateHistogram=function(){for(var e,t=this.getGeometry().getSize(),n=[],i=this.getValueAtOffset(0),r=i,o=this.getRescaledValueAtOffset(0),a=o,s=0,l=t.getTotalSize();s<l;++s)r<(e=this.getValueAtOffset(s))&&(r=e),e<i&&(i=e),a<(e=this.getRescaledValueAtOffset(s))&&(a=e),e<o&&(o=e),n[e]=(n[e]||0)+1;for(var t={min:i,max:r},u={min:o,max:a},c=[],d=o;d<=a;++d)c.push([d,n[d]||0]);return{dataRange:t,rescaledDataRange:u,histogram:c}},z.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);for(var t=this.clone(),n=t.getBuffer(),i=this.getGeometry().getSize(),r=i.getDimSize(2)*this.getNumberOfComponents(),o=0;o<i.get(2);++o)this.convoluteBuffer(e,n,o*r);return t},z.image.Image.prototype.convoluteBuffer=function(e,t,n){for(var i=this.getGeometry().getSize(),r=i.get(0),o=i.get(1),a=this.getNumberOfComponents(),s=1,l=1,u=(3===a&&(0===this.getPlanarConfiguration()?s=3:l=i.getDimSize(2)),[]),c=(u[0]=(-r-1)*s,u[1]=-r*s,u[2]=(1-r)*s,u[3]=-s,u[4]=0,u[5]=+s,u[6]=(r-1)*s,u[7]=r*s,u[8]=(r+1)*s,[]),d=(c[0]=u[4],c[1]=u[4],c[2]=u[5],c[3]=u[4],c[4]=u[4],c[5]=u[5],c[6]=u[7],c[7]=u[7],c[8]=u[8],[]),g=(d[0]=u[1],d[1]=u[1],d[2]=u[2],d[3]=u[4],d[4]=u[4],d[5]=u[5],d[6]=u[7],d[7]=u[7],d[8]=u[8],[]),x=(g[0]=u[1],g[1]=u[1],g[2]=u[2],g[3]=u[4],g[4]=u[4],g[5]=u[5],g[6]=u[4],g[7]=u[4],g[8]=u[5],[]),S=(x[0]=u[3],x[1]=u[4],x[2]=u[5],x[3]=u[3],x[4]=u[4],x[5]=u[5],x[6]=u[6],x[7]=u[7],x[8]=u[8],[]),m=(S[0]=u[0],S[1]=u[1],S[2]=u[2],S[3]=u[3],S[4]=u[4],S[5]=u[5],S[6]=u[3],S[7]=u[4],S[8]=u[5],[]),h=(m[0]=u[3],m[1]=u[4],m[2]=u[4],m[3]=u[3],m[4]=u[4],m[5]=u[4],m[6]=u[6],m[7]=u[7],m[8]=u[7],[]),p=(h[0]=u[0],h[1]=u[1],h[2]=u[1],h[3]=u[3],h[4]=u[4],h[5]=u[4],h[6]=u[6],h[7]=u[7],h[8]=u[7],[]),f=(p[0]=u[0],p[1]=u[1],p[2]=u[1],p[3]=u[3],p[4]=u[4],p[5]=u[4],p[6]=u[3],p[7]=u[4],p[8]=u[4],n),y=0,D=[],v=0;v<a;++v){f+=v*l;for(var C=0;C<o;++C)for(var T=0;T<r;++T){D=u,0===T&&0===C?D=c:0===T&&C===o-1?D=g:T===r-1&&0===C?D=m:T===r-1&&C===o-1?D=p:0===T&&C!==o-1&&0!==C?D=d:T===r-1&&C!==o-1&&0!==C?D=h:0!==T&&T!==r-1&&0===C?D=x:0!==T&&T!==r-1&&C===o-1&&(D=S);for(var y=0,L=0;L<9;++L)y+=this.getValueAtOffset(f+D[L])*e[L];t[f]=y,f+=s}}},z.image.Image.prototype.transform=function(e){for(var t=this.clone(),n=t.getBuffer(),i=0,r=n.length;i<r;++i)n[i]=e(t.getValueAtOffset(i));return t},z.image.Image.prototype.compose=function(e,t){for(var n=this.clone(),i=n.getBuffer(),r=0,o=i.length;r<o;++r)i[r]=Math.floor(t(this.getValueAtOffset(r),e.getValueAtOffset(r)));return n},z||{}),z=(z.image=z.image||{},z.image.ImageFactory=function(){},z.ImageFactory=z.image.ImageFactory,z.image.ImageFactory.prototype.checkElements=function(e){if(!e.getFromKey("x00280011"))throw new Error("Missing or empty DICOM image number of columns");if(!e.getFromKey("x00280010"))throw new Error("Missing or empty DICOM image number of rows")},z.image.ImageFactory.prototype.create=function(e,t,n){var i=e.getFromKey("x00280011");if(!i)throw new Error("Missing or empty DICOM image number of columns");var r=e.getFromKey("x00280010");if(!r)throw new Error("Missing or empty DICOM image number of rows");var i=[i,r,1],r=e.getFromKey("x00280008"),r=(r&&i.push(r),new z.image.Size(i)),i=e.getPixelSpacing(),o=e.getFromKey("x00020010"),o=z.dicom.cleanString(o),a=z.dicom.isJpeg2000TransferSyntax(o),s=z.dicom.isJpegBaselineTransferSyntax(o),o=z.dicom.isJpegLosslessTransferSyntax(o),l=e.getFromKey("x00200032"),u=new Array(0,0,0),l=(l&&(u=[parseFloat(l[0]),parseFloat(l[1]),parseFloat(l[2])]),e.getFromKey("x00200037")),l=(l&&(d=new z.math.Vector3D(parseFloat(l[0]),parseFloat(l[1]),parseFloat(l[2])),l=new z.math.Vector3D(parseFloat(l[3]),parseFloat(l[4]),parseFloat(l[5])),c=d.crossProduct(l),d=new z.math.Matrix33([d.getX(),l.getX(),c.getX(),d.getY(),l.getY(),c.getY(),d.getZ(),l.getZ(),c.getZ()])),new z.math.Point3D(u[0],u[1],u[2])),c=e.getTime(),u=new z.image.Geometry(l,r,i,d,c),l=z.dicom.cleanString(e.getFromKey("x00080018")),i=(i=e.getFromKey("x00280002"))||1,d=r.getTotalSize()*i;if(d!==t.length){if(z.logger.warn("Badly sized pixel buffer: "+t.length+" != "+d),!(d<t.length))throw new Error("Underestimated buffer size, can't fix it...");t=t.slice(0,r.getTotalSize())}var c=new z.image.Image(u,t,[l]),d=e.getFromKey("x00280004"),u=(d&&(r=z.dicom.cleanString(d).toUpperCase(),c.setPhotometricInterpretation(r="RGB"===(r=(a||s||o)&&"MONOCHROME1"!==r&&"MONOCHROME2"!==r?"RGB":r)&&1===i?"PALETTE COLOR":r)),e.getFromKey("x00280006")),t=(u&&c.setPlanarConfiguration(u),1),l=e.getFromKey("x00281053"),d=(l&&(t=parseFloat(l)),0),a=e.getFromKey("x00281052"),s=(a&&(d=parseFloat(a)),new z.image.RescaleSlopeAndIntercept(t,d)),o=(c.setRescaleSlopeAndIntercept(s),{numberOfFiles:n,Modality:e.getFromKey("x00080060"),SOPClassUID:e.getFromKey("x00080016"),StudyInstanceUID:e.getFromKey("x0020000D"),SeriesInstanceUID:e.getFromKey("x0020000E"),BitsStored:e.getFromKey("x00280101"),PixelRepresentation:e.getFromKey("x00280103")}),i=(o.IsSigned=1===o.PixelRepresentation,e.getPixelUnit()),r=(i&&(o.pixelUnit=i),e.getFromKey("x00200052")),g=(r&&(o.FrameOfReferenceUID=r),{}),x=e.getFromKey("x00281050",!0),S=e.getFromKey("x00281051",!0),m=e.getFromKey("x00281055",!0);if(x&&S)for(var h,p=0;p<x.length;++p){var f=parseFloat(x[p],10),y=parseFloat(S[p],10);f&&y&&0!==y&&(g[h=(h="")===(h=m?z.dicom.cleanString(m[p]):h)?"Default"+p:h]={wl:[new z.image.WindowLevel(f,y)],name:h}),0===y&&z.logger.warn("Zero window width found in DICOM.")}o.windowPresets=g,"PALETTE COLOR"===c.getPhotometricInterpretation()&&(u=e.getFromKey("x00281201"),l=e.getFromKey("x00281202"),a=e.getFromKey("x00281203"),void 0!==(t=e.getFromKey("x00281101"))&&3===t.length&&(16===t[2]?(d=!1,0===(s=t[0])&&(s=65536),(n=e.getDEFromKey("x00281201").vl)!==2*s&&(d=!0,z.logger.info("16bits lut but size is not double. desc: "+s+" vl: "+n)),8===parseInt(e.getFromKey("x00280100"),10)&&(d=!0,z.logger.info("Scaling 16bits color lut since bits allocated is 8.")),d&&(u=u.map(i=function(e){return e>>8}),l=l.map(i),a=a.map(i))):8===t[2]&&(z.logger.info("Scaling 16bits color lut since the lut descriptor is 8."),r=u.slice(0),u=new Uint8Array(r.buffer),r=l.slice(0),l=new Uint8Array(r.buffer),r=a.slice(0),a=new Uint8Array(r.buffer))),o.paletteLut={red:u,green:l,blue:a});s=e.getFromKey("x00082144");return s&&(o.RecommendedDisplayFrameRate=parseInt(s,10)),c.setMeta(o),c},z||{}),z=(z.image=z.image||{},z.image.simpleRange=function(t,e,n,i){void 0===i&&(i=1);var r=e;return{next:function(){var e;return r<n?(e={value:t(r),done:!1,index:r},r+=i,e):{done:!0,index:n}}}},z.image.range=function(t,e,n,i,r,o,a,s){void 0===s&&(s=!1);var l=e,u=((a=void 0===a?!1:a)?(o*=-1,s?l-=(r-1)*i:i*=-1):s&&(l+=(r-1)*i,i*=-1),o-r*i),c=0,d=0;return{next:function(){var e;return c<n?(e={value:t(l),done:!1,index:l},l+=i,++c,++d===r&&(d=0,l+=u),e):{done:!0,index:l}}}},z.image.rangeRegion=function(t,e,n,i,r,o){var a=e,s=0;return{next:function(){var e;return a<n?(e={value:t(a),done:!1,index:a},a+=i,(s+=1)===r&&(s=0,a+=o),e):{done:!0,index:n}}}},z.image.rangeRegions=function(t,e,n,i,r){var o=e,a=0,s=0;return{next:function(){var e;return o<n?(e={value:t(o),done:!1,index:o},o+=i,(s+=1)===r[a][1]&&(s=0,o+=r[a][2],(a+=1)<r.length&&(o+=r[a][0])),e):{done:!0,index:n}}}},z.image.simpleRange3d=function(t,e,n,i,r){void 0===i&&(i=1);var o=e,a=1,s=((r=void 0===r?!1:r)?a=(n-e)/3:i*=3,o+a),l=o+2*a;return{next:function(){var e;return o<n?(e={value:[t(o),t(s),t(l)],done:!1,index:[o,s,l]},o+=i,s+=i,l+=i,e):{done:!0,index:[n]}}}},z.image.range3d=function(e,t,n,i,r,o,a,s,l){var u=[];return l?(u.push(z.image.range(e,t,n,i,r,o,a,s)),u.push(z.image.range(e,t+n*i,n,i,r,o,a,s)),u.push(z.image.range(e,t+2*n*i,n,i,r,o,a,s))):(u.push(z.image.range(e,t,n,i*=3,r,o*=3,a,s)),u.push(z.image.range(e,t+1,n,i,r,o,a,s)),u.push(z.image.range(e,t+2,n,i,r,o,a,s))),{next:function(){var e=u[0].next(),t=u[1].next(),n=u[2].next();return e.done?{done:!0,index:n.index}:{value:[e.value,t.value,n.value],done:!1,index:[e.index,t.index,n.index]}}}},z.image.getIteratorValues=function(e){for(var t=[],n=e.next();!n.done;)t.push(n.value),n=e.next();return t},z.image.getSliceIterator=function(t,e,n,i){function r(e,t,n,i,r,o,a,s){return 1===c?z.image.range(e,t,n,i,r,o,a,s):3===c?z.image.range3d(e,3*t,n,i,r,o,a,s,d):void 0}var o=t.getGeometry().getSize(),a=2,e=(i&&void 0!==i&&(a=i.getColAbsMax(2).index),e.getValues()),e=new z.math.Index(e.map(function(e,t){return t===a||2<t?e:0})),e=o.indexToOffset(e),s=null,s=(n=void 0===n?!1:n)?function(e){return t.getRescaledValueAtOffset(e)}:function(e){return t.getValueAtOffset(e)},n=o.get(0),l=o.get(1),u=o.get(2),o=o.getDimSize(2),c=t.getNumberOfComponents(),d=1===t.getPlanarConfiguration(),g=null;if(i&&void 0!==i){var x=i.getColAbsMax(0),i=i.getColAbsMax(2),S=null;if(2===i.index)S=n*l,g=0===x.index?r(s,e,S,1,n,n,!1,!1):r(s,e,S,n,l,1,!1,!1);else if(0===i.index)S=u*l,g=1===x.index?r(s,e,S,n,l,o,!1,!1):r(s,e,S,o,u,n,!1,!1);else{if(1!==i.index)throw new Error("Unknown direction: "+i.index);S=u*n,g=0===x.index?r(s,e,S,1,n,o,!1,!1):r(s,e,S,o,u,1,!1,!1)}}else if(1===t.getNumberOfComponents())g=z.image.simpleRange(s,e,e+o);else{if(3!==t.getNumberOfComponents())throw new Error("Unsupported number of components: "+t.getNumberOfComponents());g=z.image.simpleRange3d(s,e*=3,e+(o*=3),1,d)}return g},z.image.getRegionSliceIterator=function(t,e,n,i,r){if(1!==t.getNumberOfComponents())throw new Error("Unsupported number of components for region iterator: "+t.getNumberOfComponents());var o=null,o=(n=void 0===n?!1:n)?function(e){return t.getRescaledValueAtOffset(e)}:function(e){return t.getValueAtOffset(e)},n=t.getGeometry().getSize(),a=(void 0===i&&(i=new z.math.Point2D(0,0)),void 0===r&&(r=new z.math.Point2D(n.get(0)-1,n.get(1))),n.indexToOffset(e.getWithNew2D(i.getX(),i.getY()))),e=n.indexToOffset(e.getWithNew2D(r.getX(),r.getY()-1)),r=Math.max(1,r.getX()-i.getX()),i=n.get(0)-r;return z.image.rangeRegion(o,a,e+1,1,r,i)},z.image.getVariableRegionSliceIterator=function(t,e,n,i){if(1!==t.getNumberOfComponents())throw new Error("Unsupported number of components for region iterator: "+t.getNumberOfComponents());for(var r,o=null,o=(n=void 0===n?!1:n)?function(e){return t.getRescaledValueAtOffset(e)}:function(e){return t.getValueAtOffset(e)},a=t.getGeometry().getSize(),s=[],l=null,n=null,u=null,c=0;c<i.length;++c){var d,g=(d=i[c])[1][0]-d[0][0];0!=g&&(u=c,l=l||d[0],s.push([d[0][0],g,a.get(0)-d[1][0]]))}if(null!==u&&(n=i[u][1]),0!==s.length)return r=a.indexToOffset(e.getWithNew2D(l[0],l[1])),e=a.indexToOffset(e.getWithNew2D(n[0],n[1])),z.image.rangeRegions(o,r,e+1,1,s)},z||{}),z=(z.image=z.image||{},z.image.lut=z.image.lut||{},z.image.lut.range_max=256,z.image.lut.buildLut=function(e){for(var t=[],n=0;n<z.image.lut.range_max;++n)t.push(e(n));return t},z.image.lut.max=function(e){return z.image.lut.range_max-1},z.image.lut.maxFirstThird=function(e){return e<z.image.lut.range_max/3?z.image.lut.range_max-1:0},z.image.lut.maxSecondThird=function(e){var t=z.image.lut.range_max/3;return t<=e&&e<2*t?z.image.lut.range_max-1:0},z.image.lut.maxThirdThird=function(e){return e>=2*z.image.lut.range_max/3?z.image.lut.range_max-1:0},z.image.lut.toMaxFirstThird=function(e){e*=3;return e>z.image.lut.range_max-1?z.image.lut.range_max-1:e},z.image.lut.toMaxSecondThird=function(e){var t=z.image.lut.range_max/3,n=0;return t<=e&&(n=3*(e-t))>z.image.lut.range_max-1?z.image.lut.range_max-1:n},z.image.lut.toMaxThirdThird=function(e){var t=z.image.lut.range_max/3,n=0;return 2*t<=e&&(n=3*(e-2*t))>z.image.lut.range_max-1?z.image.lut.range_max-1:n},z.image.lut.zero=function(e){return 0},z.image.lut.id=function(e){return e},z.image.lut.invId=function(e){return z.image.lut.range_max-1-e},z.image.lut.plain={red:z.image.lut.buildLut(z.image.lut.id),green:z.image.lut.buildLut(z.image.lut.id),blue:z.image.lut.buildLut(z.image.lut.id)},z.image.lut.invPlain={red:z.image.lut.buildLut(z.image.lut.invId),green:z.image.lut.buildLut(z.image.lut.invId),blue:z.image.lut.buildLut(z.image.lut.invId)},z.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]},z.image.lut.hot={red:z.image.lut.buildLut(z.image.lut.toMaxFirstThird),green:z.image.lut.buildLut(z.image.lut.toMaxSecondThird),blue:z.image.lut.buildLut(z.image.lut.toMaxThirdThird)},z.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]},z.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]},z.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]},z.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]},z.image.lut.test={red:z.image.lut.buildLut(z.image.lut.id),green:z.image.lut.buildLut(z.image.lut.zero),blue:z.image.lut.buildLut(z.image.lut.zero)},z||{}),z=(z.image=z.image||{},z.dicom.equalPosPat=function(e,t){return JSON.stringify(e)===JSON.stringify(t)},z.dicom.getComparePosPat=function(e){var n=e.getInverse();return function(e,t){e=n.multiplyArray3D(e),t=n.multiplyArray3D(t);return e[2]-t[2]}},z.dicom.checkTag=function(e,t){var n=e.getFromKey(t.tag);if(1===t.type||2===t.type){if(null==n)throw new Error("Missing or empty "+t.name)}else if(null==n)return;var i=!1;if(Array.isArray(n))for(var n=n.map(function(e){return z.dicom.cleanString(e)}),r=0;r<t.enum.length;++r){if(!Array.isArray(t.enum[r]))throw new Error("Cannot compare array and non array tag value.");if(z.utils.arraySortEquals(t.enum[r],n)){i=!0;break}}else"string"==typeof n&&(n=z.dicom.cleanString(n)),i=t.enum.includes(n);if(!i)throw new Error("Unsupported "+t.name+" value: "+n)},z.dicom.requiredDicomSegTags=[{name:"TransferSyntaxUID",tag:"x00020010",type:"1",enum:["1.2.840.10008.1.2.1"]},{name:"MediaStorageSOPClassUID",tag:"x00020002",type:"1",enum:["1.2.840.10008.5.1.4.1.1.66.4"]},{name:"SOPClassUID",tag:"x00020002",type:"1",enum:["1.2.840.10008.5.1.4.1.1.66.4"]},{name:"Modality",tag:"x00080060",type:"1",enum:["SEG"]},{name:"SegmentationType",tag:"x00620001",type:"1",enum:["BINARY"]},{name:"DimensionOrganizationType",tag:"x00209311",type:"3",enum:["3D"]},{name:"ImageType",tag:"x00080008",type:"1",enum:[["DERIVED","PRIMARY"]]},{name:"SamplesPerPixel",tag:"x00280002",type:"1",enum:[1]},{name:"PhotometricInterpretation",tag:"x00280004",type:"1",enum:["MONOCHROME2"]},{name:"PixelRepresentation",tag:"x00280103",type:"1",enum:[0]},{name:"BitsAllocated",tag:"x00280100",type:"1",enum:[1]},{name:"BitsStored",tag:"x00280101",type:"1",enum:[1]},{name:"HighBit",tag:"x00280102",type:"1",enum:[0]}],z.dicom.getDefaultDicomSegJson=function(){for(var e={},t=0;t<z.dicom.requiredDicomSegTags.length;++t){var n=z.dicom.requiredDicomSegTags[t];e[n.name]=n.enum[0]}return e},z.dicom.getDimensionOrganization=function(e){var t=e.getFromKey("x00209221",!0);if(!t||1!==t.length)throw new Error("Unsupported dimension organization sequence length");var n=z.dicom.cleanString(t[0].x00209164.value[0]),i=[],r=e.getFromKey("x00209222",!0);if(r){if(2!==r.length)throw new Error("Unsupported dimension index sequence length");for(var o=0;o<r.length;++o){var a=z.dicom.cleanString(r[o].x00209164.value[0]);if(a!==n)throw new Error("Dimension Index Sequence contains a unknown Dimension Organization");var s,a={DimensionOrganizationUID:a,DimensionIndexPointer:s=z.dicom.cleanString(r[o].x00209165.value[0])};void 0!==r[o].x00209421&&(a.DimensionDescriptionLabel=z.dicom.cleanString(r[o].x00209421.value[0])),i.push(a)}if("(0020,0032)"!==s)throw new Error("Unsupported non image position as last index")}return{organizations:{value:[{DimensionOrganizationUID:n}]},indices:{value:i}}},z.dicom.getCode=function(e){var t={meaning:z.dicom.cleanString(e.x00080104.value[0])};if(e.x00080100)t.value=e.x00080100.value[0];else if(e.x00080119)t.longValue=e.x00080119.value[0];else{if(!e.x00080120)throw Error("Invalid code with no value, no long value and no urn value.");t.urnValue=e.x00080120.value[0]}if(void 0!==t.value||void 0!==t.longValue){if(!e.x00080102)throw Error("No coding sheme designator when code value or long value is present");t.schemeDesignator=e.x00080102.value[0]}return t},z.dicom.getSegment=function(e){var t,n={number:e.x00620004.value[0],label:z.dicom.cleanString(e.x00620005.value[0]),algorithmType:z.dicom.cleanString(e.x00620008.value[0])};if(e.x00620009&&(n.algorithmName=z.dicom.cleanString(e.x00620009.value[0])),void 0!==e.x0062000C?n.displayValue=e.x006200C.value:void 0!==e.x0062000D&&(t=e.x0062000D.value,t=z.utils.cielabToSrgb(z.utils.uintLabToLab({l:t[0],a:t[1],b:t[2]})),n.displayValue=t),void 0===e.x00620003)throw Error("Missing Segmented Property Category Code Sequence.");if(n.propertyCategoryCode=z.dicom.getCode(e.x00620003.value[0]),void 0===e.x0062000F)throw Error("Missing Segmented Property Type Code Sequence.");return n.propertyTypeCode=z.dicom.getCode(e.x0062000F.value[0]),void 0!==e.x00620020&&(n.trackingId=e.x00620020.value[0],n.trackingUid=e.x00620021.value[0]),n},z.dicom.isEqualSegment=function(e,t){if(void 0===e||void 0===t||null===e||null===t)return!1;var n=e.number===t.number&&e.label===t.label&&e.algorithmType===t.algorithmType,n=void 0!==e.displayValue.r?void 0!==t.displayValue.r&&(n&&z.utils.isEqualRgb(e.displayValue,t.displayValue)):n&&e.displayValue===t.displayValue;return n=void 0!==e.algorithmName?void 0!==t.algorithmName&&(n&&e.algorithmName===t.algorithmName):n},z.dicom.isSimilarSegment=function(e,t){if(void 0===e||void 0===t||null===e||null===t)return!1;var n=e.number===t.number;return n=void 0!==e.displayValue.r?void 0!==t.displayValue.r&&(n||z.utils.isEqualRgb(e.displayValue,t.displayValue)):n||e.displayValue===t.displayValue},z.dicom.getSpacingFromMeasure=function(e){if(void 0===e.x00280030)return null;var t=e.x00280030,t=[parseFloat(t.value[0]),parseFloat(t.value[1])];return void 0!==e.x00180050?t.push(parseFloat(e.x00180050.value[0])):void 0!==e.x00180088&&t.push(parseFloat(e.x00180088.value[0])),new z.image.Spacing(t)},z.dicom.getSegmentFrameInfo=function(e){var t=[];if(void 0!==e.x00089124)for(var n=e.x00089124.value,i=0;i<n.length;++i){var r=[];if(void 0!==n[i].x00082112)for(var o=n[i].x00082112.value,a=0;a<o.length;++a){var s={};void 0!==o[a].x00081150&&(s.referencedSOPClassUID=o[a].x00081150.value[0]),void 0!==o[a].x00081155&&(s.referencedSOPInstanceUID=o[a].x00081155.value[0]),r.push(s)}t.push(r)}for(var l=e.x00209111.value[0].x00209157.value,u=e.x0062000A.value[0].x0062000B.value[0],c=e.x00209113.value[0].x00200032.value,d=0;d<c.length;++d)c[d]=parseFloat(c[d],10);l={dimIndex:l,imagePosPat:c,derivationImages:t,refSegmentNumber:u};return void 0!==e.x00209116&&0!==(u=e.x00209116).value.length&&void 0!==(u=u.value[0].x00200037.value)&&(l.imageOrientationPatient=u),void 0!==e.x00289110&&(0!==(u=e.x00289110).value.length?void 0!==(e=z.dicom.getSpacingFromMeasure(u.value[0]))&&(l.spacing=e):z.logger.warn("No shared functional group pixel measure sequence items.")),l},z.image.MaskFactory=function(){},z.image.MaskFactory.prototype.create=function(e,t){for(var n=0;n<z.dicom.requiredDicomSegTags.length;++n)z.dicom.checkTag(e,z.dicom.requiredDicomSegTags[n]);var i=e.getFromKey("x00280011");if(!i)throw new Error("Missing or empty DICOM image number of columns");var r=e.getFromKey("x00280010");if(!r)throw new Error("Missing or empty DICOM image number of rows");var o=i*r,i=e.getFromKey("x00280008");if((i=i?parseInt(i,10):1)!==t.length/o)throw new Error("Buffer and numberOfFrames meta are not equal."+i+" "+t.length/o);var r=z.dicom.getDimensionOrganization(e),a=e.getFromKey("x00620002",!0);if(!a||void 0===a)throw new Error("Missing or empty segmentation sequence");for(var s=[],l=!1,u=0;u<a.length;++u){var c=z.dicom.getSegment(a[u]);void 0!==c.displayValue.r&&void 0!==c.displayValue.g&&void 0!==c.displayValue.b&&(l=!0),s.push(c)}var d,g,x=e.getImageSize(),S=e.getFromKey("x52009229",!0),m=(S&&0!==S.length&&(void 0!==(S=S[0]).x00209116&&(0!==(D=S.x00209116).value.length?g=D.value[0].x00200037.value:z.logger.warn("No shared functional group plane orientation sequence items.")),void 0!==S.x00289110&&(0!==(D=S.x00289110).value.length?d=z.dicom.getSpacingFromMeasure(D.value[0]):z.logger.warn("No shared functional group pixel measure sequence items."))),e.getFromKey("x52009230",!0));if(!m||void 0===m)throw new Error("Missing or empty per frame functional sequence");if(i!==m.length)throw new Error("perFrameFuncGroupSequence meta and numberOfFrames are not equal.");for(var h=[],p=0;p<m.length;++p)h.push(z.dicom.getSegmentFrameInfo(m[p]));for(var f=[],y=0;y<h.length;++y){if(!function(e,t){return e.some(function(e){return z.dicom.equalPosPat(t,e)})}(f,h[y].imagePosPat)&&f.push(h[y].imagePosPat),void 0!==h[y].imageOrientationPatient)if(void 0===g)g=h[y].imageOrientationPatient;else if(!z.utils.arraySortEquals(g,h[y].imageOrientationPatient))throw new Error("Unsupported multi orientation dicom seg.");if(void 0!==h[y].spacing)if(void 0===d)d=h[y].spacing;else if(!d.equals(h[y].spacing))throw new Error("Unsupported multi resolution dicom seg.")}if(void 0===d)throw new Error("No spacing found for DICOM SEG");if(void 0===g)throw new Error("No imageOrientationPatient found for DICOM SEG");function M(e){return new z.math.Point3D(e[0],e[1],e[2])}for(var S=new z.math.Vector3D(parseFloat(g[0]),parseFloat(g[1]),parseFloat(g[2])),D=new z.math.Vector3D(parseFloat(g[3]),parseFloat(g[4]),parseFloat(g[5])),i=S.crossProduct(D),S=new z.math.Matrix33([S.getX(),D.getX(),i.getX(),S.getY(),D.getY(),i.getY(),S.getZ(),D.getZ(),i.getZ()]),v=(f.sort(z.dicom.getComparePosPat(S)),[]),C=0;C<f.length;++C)v.push(M(f[C]));for(var D=d,i=z.image.getSliceGeometrySpacing(v,S,!1),T=d.getValues(),Q=(void 0!==i&&i!==T[2]&&(T[2]=i,D=new z.image.Spacing(T)),new z.image.Geometry(v[0],x,D,S)),L=[],I=(L.push(f[0]),0),P=1;P<f.length;++P){++I;for(var w=new z.math.Index([0,0,I]),A=Q.indexToWorld(w).get3D(),B=v[P],V=B.getDistance(A);V>z.math.REAL_WORLD_EPSILON;)z.logger.debug("Adding intermediate pos pats for DICOM seg at "+A.toString()),L.push([A.getX(),A.getY(),A.getZ()]),++I,w=new z.math.Index([0,0,I]),A=Q.indexToWorld(w).get3D(),V=B.getDistance(A);L.push(f[P])}for(var F=L.length,N=new z.image.Geometry(v[0],x,D,S),G=[0],O=1;O<F;++O)N.appendOrigin(M(L[O]),O),G.push(O);for(var k=l?3:1,R=new t.constructor(k*o*F),b=(R.fill(0),0);b<h.length;++b)for(var E,W=o*b,H=o*(I=function(e,t){return e.findIndex(function(e){return z.dicom.equalPosPat(t,e)})}(L,h[b].imagePosPat)),q=s.find(function(t){return function(e){return e.number===t}}(h[b].refSegmentNumber)).displayValue,U=0;U<o;++U)0!==t[W+U]&&(E=k*(H+U),l?(R[E]=q.r,R[1+E]=q.g,R[2+E]=q.b):R[E]=q);i=new z.image.Image(N,R,G),l&&i.setPhotometricInterpretation("RGB"),T=z.dicom.getDefaultDicomSegJson(),T.StudyDate=e.getFromKey("x00080020"),T.StudyTime=e.getFromKey("x00080030"),T.StudyInstanceUID=e.getFromKey("x0020000D"),T.StudyID=e.getFromKey("x00200010"),T.SeriesInstanceUID=e.getFromKey("x0020000E"),T.SeriesNumber=e.getFromKey("x00200011"),T.ReferringPhysicianName=e.getFromKey("x00080090"),T.PatientName=z.dicom.cleanString(e.getFromKey("x00100010")),T.PatientID=z.dicom.cleanString(e.getFromKey("x00100020")),T.PatientBirthDate=e.getFromKey("x00100030"),T.PatientSex=z.dicom.cleanString(e.getFromKey("x00100040")),T.Manufacturer=e.getFromKey("x00080070"),T.ManufacturerModelName=e.getFromKey("x00081090"),T.DeviceSerialNumber=e.getFromKey("x00181000"),T.SoftwareVersions=e.getFromKey("x00181020"),T.DimensionOrganizationSequence=r.organizations,T.DimensionIndexSequence=r.indices,T.custom={segments:s,frameInfos:h,SOPInstanceUID:e.getFromKey("x00080018")},T.numberOfFiles=F,x=e.getFromKey("x00200052"),x&&(T.FrameOfReferenceUID=x),D=e.getFromKey("x00282110");return D&&(T.LossyImageCompression=D),i.setMeta(T),i},z||{}),z=(z.image=z.image||{},z.image.PlaneHelper=function(t,e,n){var i=z.gui.getTargetOrientation(e,n);this.getOffset3DFromPlaneOffset=function(e){e=new z.math.Vector3D(e.x,e.y,0),e=this.getTargetDeOrientedVector3D(e);return new z.math.Vector3D(e.getX()*t.get(0),e.getY()*t.get(1),e.getZ()*t.get(2))},this.getPlaneOffsetFromOffset3D=function(e){e=new z.math.Vector3D(e.x/t.get(0),e.y/t.get(1),e.z/t.get(2)),e=this.getTargetOrientedVector3D(e);return{x:e.getX(),y:e.getY()}},this.getTargetOrientedVector3D=function(e){var t=e;return t=void 0!==i?i.getInverse().multiplyVector3D(e):t},this.getTargetDeOrientedVector3D=function(e){var t=e;return t=void 0!==i?i.multiplyVector3D(e):t},this.getImageOrientedVector3D=function(e){var t=e;return void 0!==n&&(e=z.image.getDeOrientedArray3D([e.getX(),e.getY(),e.getZ()],n),t=new z.math.Vector3D(e[0],e[1],e[2])),t},this.getImageDeOrientedVector3D=function(e){var t=e;return void 0!==n&&(e=z.image.getOrientedArray3D([e.getX(),e.getY(),e.getZ()],n),t=new z.math.Vector3D(e[0],e[1],e[2])),t},this.getTargetOrientedPositiveXYZ=function(e){e=z.image.getOrientedArray3D([e.x,e.y,e.z],i);return{x:e[0],y:e[1],z:e[2]}},this.getScrollIndex=function(){return void 0!==n?n.getThirdColMajorDirection():2},this.getNativeScrollIndex=function(){return void 0!==e?e.getThirdColMajorDirection():2}},z||{}),z=(z.image=z.image||{},z.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]}},z||{}),z=(z.image=z.image||{},z.image.RescaleSlopeAndIntercept=function(t,n){this.getSlope=function(){return t},this.getIntercept=function(){return n},this.apply=function(e){return e*t+n}},z.image.RescaleSlopeAndIntercept.prototype.equals=function(e){return null!==e&&this.getSlope()===e.getSlope()&&this.getIntercept()===e.getIntercept()},z.image.RescaleSlopeAndIntercept.prototype.toString=function(){return this.getSlope()+", "+this.getIntercept()},z.image.RescaleSlopeAndIntercept.prototype.isID=function(){return 1===this.getSlope()&&0===this.getIntercept()},z||{}),z=(z.image=z.image||{},z.image.Size=function(t){if(!t||void 0===t)throw new Error("Cannot create size with no values.");if(0===t.length)throw new Error("Cannot create size with empty values.");if(!t.every(function(e){return!isNaN(e)&&0!==e}))throw new Error("Cannot create size with non number or zero values.");this.get=function(e){return t[e]},this.length=function(){return t.length},this.toString=function(){return"("+t.toString()+")"},this.getValues=function(){return t.slice()}},z.image.Size.prototype.moreThanOne=function(e){return this.length()>=e+1&&1!==this.get(e)},z.image.Size.prototype.canScroll3D=function(e){var t=2;return void 0!==e&&(t=e.getThirdColMajorDirection()),this.moreThanOne(t)},z.image.Size.prototype.canScroll=function(e){for(var t=this.canScroll3D(e),n=3;n<this.length();++n)t=t||this.moreThanOne(n);return t},z.image.Size.prototype.getDimSize=function(e,t){if(e>this.length())return null;if(void 0===t)t=0;else if(t<0||e<t)throw new Error("Invalid start value for getDimSize");for(var n=1,i=t;i<e;++i)n*=this.get(i);return n},z.image.Size.prototype.getTotalSize=function(e){return this.getDimSize(this.length(),e)},z.image.Size.prototype.equals=function(e){if(!e)return!1;var t=this.length();if(t!==e.length())return!1;for(var n=0;n<t;++n)if(this.get(n)!==e.get(n))return!1;return!0},z.image.Size.prototype.isInBounds=function(e,t){if(!e)return!1;var n=this.length();if(n!==e.length())return!1;if(void 0===t){t=[];for(var i=0;i<n;++i)t.push(i)}else for(var r=0;r<n;++r)if(t[r]>n-1)throw new Error("Wrong input dir value: "+t[r]);for(var o,a,s=0;s<t.length;++s)if(o=e.get(t[s]),a=this.get(t[s]),!(0<=o&&o<a))return!1;return!0},z.image.Size.prototype.indexToOffset=function(e,t){if(e.length()<this.length())throw new Error("Incompatible index and size length");if(void 0===t)t=0;else if(t<0||t>this.length()-1)throw new Error("Invalid start value for indexToOffset");for(var n=0,i=t;i<this.length();++i)n+=e.get(i)*this.getDimSize(i,t);return n},z.image.Size.prototype.offsetToIndex=function(e){for(var t,n=new Array(this.length()),i=e,r=this.length()-1;0<r;--r)t=this.getDimSize(r),n[r]=Math.floor(i/t),i-=n[r]*t;return n[0]=i,new z.math.Index(n)},z.image.Size.prototype.get2D=function(){return{x:this.get(0),y:this.get(1)}},z||{}),z=(z.image=z.image||{},z.image.Spacing=function(t){if(!t||void 0===t)throw new Error("Cannot create spacing with no values.");if(0===t.length)throw new Error("Cannot create spacing with empty values.");if(!t.every(function(e){return!isNaN(e)&&0!==e}))throw new Error("Cannot create spacing with non number or zero values.");this.get=function(e){return t[e]},this.length=function(){return t.length},this.toString=function(){return"("+t.toString()+")"},this.getValues=function(){return t.slice()}},z.image.Spacing.prototype.equals=function(e){if(!e)return!1;var t=this.length();if(t!==e.length())return!1;for(var n=0;n<t;++n)if(this.get(n)!==e.get(n))return!1;return!0},z.image.Spacing.prototype.get2D=function(){return{x:this.get(0),y:this.get(1)}},z||{}),z=(z.image=z.image||{},z.image.viewEventNames=["wlchange","wlpresetadd","colourchange","positionchange","opacitychange","alphafuncchange"],z.image.View=function(g){var t,n=this,i=(g.addEventListener("appendframe",function(){var e=n.getCurrentIndex();3===e.length()&&((e=e.getValues()).push(0),n.setCurrentIndex(new z.math.Index(e)))}),{}),r={minmax:{name:"minmax"}},s=null,l=null,o=z.image.lut.plain,x=null,a=new z.utils.ListenerHandler,u=(this.getImage=function(){return g},this.setImage=function(e){g=e},this.getOrientation=function(){return t},this.setOrientation=function(e){t=e},this.init=function(){this.setInitialIndex()},this.setInitialIndex=function(){var e=g.getGeometry(),e=new Array(e.getSize().length());e.fill(0),this.setCurrentIndex(new z.math.Index(e),!0)},this.getPlaybackMilliseconds=function(e){return e=e||10,Math.round(1e3/e)},function(e,t){return 255});function S(e){a.fireEvent(e)}this.getAlphaFunction=function(){return u},this.setAlphaFunction=function(e){u=e,S({type:"alphafuncchange"})},this.getCurrentWindowLut=function(e){this.getCurrentIndex()||this.setInitialIndex();var t=this.getCurrentIndex(),n=(void 0===e&&(e=g.getRescaleSlopeAndIntercept(t)),null),t=(s&&void 0!==r[s]&&void 0!==r[s].perslice&&!0===r[s].perslice&&(t=g.getSecondaryOffset(t),n=r[s].wl[t]),n||(l||this.setWindowLevelPresetById(0,!0),n=l),i[e.toString()]),e=(void 0===t&&(e=new z.image.RescaleLut(g.getRescaleSlopeAndIntercept(0),g.getMeta().BitsStored),e=new z.image.WindowLut(e,g.getMeta().IsSigned),this.addWindowLut(e),t=e),t.getWindowLevel());return n.equals(e)||(t.setWindowLevel(n),t.update(),e&&e.getWidth()===n.getWidth()&&e.getCenter()===n.getCenter()||S({type:"wlchange",value:[n.getCenter(),n.getWidth()],wc:n.getCenter(),ww:n.getWidth(),skipGenerate:!0})),t},this.addWindowLut=function(e){var t=e.getRescaleLut().getRSI();i[t.toString()]=e},this.getWindowPresets=function(){return r},this.getWindowPresetsNames=function(){return Object.keys(r)},this.setWindowPresets=function(e){r=e},this.setDefaultColourMap=function(e){o=e},this.addWindowPresets=function(e){for(var t,n=Object.keys(e),i=0;i<n.length;++i)if(t=n[i],void 0!==r[t]){if(void 0!==r[t].perslice&&!0===r[t].perslice)throw new Error("Cannot add perslice preset");r[t]=e[t]}else r[t]=e[t],S({type:"wlpresetadd",name:t})},this.getColourMap=function(){return o},this.setColourMap=function(e){o=e,S({type:"colourchange",wc:this.getCurrentWindowLut().getWindowLevel().getCenter(),ww:this.getCurrentWindowLut().getWindowLevel().getWidth()})},this.getCurrentPosition=function(){return x},this.getCurrentIndex=function(){var e=this.getCurrentPosition();return e?this.getImage().getGeometry().worldToIndex(e):null},this.canSetPosition=function(e){var t=g.getGeometry(),e=t.worldToIndex(e),n=[this.getScrollIndex()];return 4===e.length()&&n.push(3),t.isIndexInBounds(e,n)},this.getOrigin=function(e){var t=g.getGeometry(),n=0;return void 0!==e&&(n=t.worldToIndex(e).get(2)),t.getOrigins()[n]},this.setCurrentPosition=function(e,t){var n=g.getGeometry(),i=n.worldToIndex(e),r=[this.getScrollIndex()];return 4===i.length()&&r.push(3),n.isIndexInBounds(i,r)?this.setCurrentIndex(i,t):(t||S({type:"positionchange",value:[i.getValues(),e.getValues()],valid:!1}),!1)},this.setCurrentIndex=function(e,t){void 0===t&&(t=!1);var n=g.getGeometry(),i=n.indexToWorld(e),r=[this.getScrollIndex()];if(4===e.length()&&r.push(3),!n.isIndexInBounds(e,r))return!1;var o=null,a=null;if(a=this.getCurrentPosition()?this.getCurrentIndex():a)if(a.canCompare(e))o=a.compare(e);else{for(var o=[],s=Math.min(a.length(),e.length()),l=0;l<s;++l)a.get(l)!==e.get(l)&&o.push(l);for(var u=Math.max(a.length(),e.length()),c=s;c<u;++c)o.push(c)}else{o=[];for(var d=0;d<e.length();++d)o.push(d)}return x=i,t||(n={type:"positionchange",value:[e.getValues(),i.getValues()],diffDims:o,data:{imageUid:g.getImageUid(e)}},g.canQuantify()&&(r=g.getRescaledValueAtIndex(e),n.value.push(r)),S(n)),!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 z.image.WindowLevel(e,t)).equals(l)||(o=!l||l.getWidth()!==t,a=!l||l.getCenter()!==e,l=r,s=n,(o||a)&&S({type:"wlchange",value:[e,t],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()]);var i,r=n.wl[0];void 0!==n.perslice&&!0===n.perslice&&(i=g.getSecondaryOffset(this.getCurrentIndex()),r=n.wl[i]),this.setWindowLevel(r.getCenter(),r.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 z.image.View(this.getImage());for(e in i)t.addWindowLut(i[e]);return t.setListeners(this.getListeners()),t},this.addEventListener=function(e,t){a.add(e,t)},this.removeEventListener=function(e,t){a.remove(e,t)}},z.image.View.prototype.getWindowLevelMinMax=function(){var e=this.getImage().getRescaledDataRange(),t=e.min,e=e.max-t,t=(e<1&&(z.logger.warn("Zero or negative window width, defaulting to one."),e=1),t+e/2);return new z.image.WindowLevel(t,e)},z.image.View.prototype.setWindowLevelMinMax=function(){var e=this.getWindowLevelMinMax();this.setWindowLevel(e.getCenter(),e.getWidth(),"minmax")},z.image.View.prototype.generateImageData=function(e,t){void 0===t&&(this.getCurrentIndex()||this.setInitialIndex(),t=this.getCurrentIndex());var n=this.getImage(),i=z.image.getSliceIterator(n,t,!1,this.getOrientation()),r=n.getPhotometricInterpretation();switch(r){case"MONOCHROME1":case"MONOCHROME2":z.image.generateImageDataMonochrome(e,i,this.getAlphaFunction(),this.getCurrentWindowLut(),this.getColourMap());break;case"PALETTE COLOR":z.image.generateImageDataPaletteColor(e,i,this.getAlphaFunction(),this.getColourMap(),16===n.getMeta().BitsStored);break;case"RGB":z.image.generateImageDataRgb(e,i,this.getAlphaFunction(),this.getCurrentWindowLut());break;case"YBR_FULL":z.image.generateImageDataYbrFull(e,i,this.getAlphaFunction());break;default:throw new Error("Unsupported photometric interpretation: "+r)}},z.image.View.prototype.incrementIndex=function(e,t){var n=this.getCurrentIndex(),i=new Array(n.length()),e=(i.fill(0),e<i.length?i[e]=1:console.warn("Cannot increment given index: ",e,i.length),new z.math.Index(i)),i=n.add(e);return this.setCurrentIndex(i,t)},z.image.View.prototype.decrementIndex=function(e,t){var n=this.getCurrentIndex(),i=new Array(n.length()),e=(i.fill(0),e<i.length?i[e]=-1:console.warn("Cannot decrement given index: ",e,i.length),new z.math.Index(i)),i=n.add(e);return this.setCurrentIndex(i,t)},z.image.View.prototype.getScrollIndex=function(){var e=this.getOrientation();return void 0!==e?e.getThirdColMajorDirection():2},z.image.View.prototype.decrementScrollIndex=function(e){return this.decrementIndex(this.getScrollIndex(),e)},z.image.View.prototype.incrementScrollIndex=function(e){return this.incrementIndex(this.getScrollIndex(),e)},z||{}),z=(z.image=z.image||{},z.image.ViewFactory=function(){},z.ViewFactory=z.image.ViewFactory,z.image.ViewFactory.prototype.create=function(e,t){var n,i=new z.image.View(t),r=("MONOCHROME1"===t.getPhotometricInterpretation()?i.setDefaultColourMap(z.image.lut.invPlain):"PALETTE COLOR"===t.getPhotometricInterpretation()&&void 0!==(n=t.getMeta().paletteLut)&&i.setDefaultColourMap(n),{});if((r=void 0!==t.getMeta().windowPresets?t.getMeta().windowPresets:r).minmax={name:"minmax"},void 0!==z.tool&&void 0!==z.tool.defaultpresets){var o,a=t.getMeta().Modality;for(o in z.tool.defaultpresets[a]){var s=z.tool.defaultpresets[a][o];r[o]={wl:new z.image.WindowLevel(s.center,s.width),name:o}}}return i.setWindowPresets(r),i.init(),i},z||{}),z=(z.image=z.image||{},z.image.generateImageDataMonochrome=function(e,t,n,i,r){for(var o,a=0,s=t.next();!s.done;)o=i.getValue(s.value),e.data[a]=r.red[o],e.data[a+1]=r.green[o],e.data[a+2]=r.blue[o],e.data[a+3]=n(s.value,s.index),a+=4,s=t.next()},z||{}),z=(z.image=z.image||{},z.image.generateImageDataPaletteColor=function(e,t,n,i,r){r&&z.logger.info("Scaling 16bits data to 8bits.");for(var o,a=0,s=t.next();!s.done;)o=s.value,r?(e.data[a]=i.red[o]>>8,e.data[a+1]=i.green[o]>>8,e.data[a+2]=i.blue[o]>>8):(e.data[a]=i.red[o],e.data[a+1]=i.green[o],e.data[a+2]=i.blue[o]),e.data[a+3]=n(o,s.index),a+=4,s=t.next()},z||{}),z=(z.image=z.image||{},z.image.generateImageDataRgb=function(e,t,n){for(var i=0,r=t.next();!r.done;)e.data[i]=r.value[0],e.data[i+1]=r.value[1],e.data[i+2]=r.value[2],e.data[i+3]=n(r.value,r.index),i+=4,r=t.next()},z||{}),z=(z.image=z.image||{},z.image.generateImageDataYbrFull=function(e,t,n){for(var i,r=0,o=t.next();!o.done;)i=z.utils.ybrToRgb(o.value[0],o.value[1],o.value[2]),e.data[r]=i.r,e.data[r+1]=i.g,e.data[r+2]=i.b,e.data[r+3]=n(o.value,o.index),r+=4,o=t.next()},z||{}),z=(z.image=z.image||{},z.image.MinWindowWidth=1,z.image.validateWindowWidth=function(e){return e<z.image.MinWindowWidth?z.image.MinWindowWidth:e},z.image.WindowLevel=function(t,n){if(n<z.image.MinWindowWidth)throw new Error("Window width shall always be greater than or equal to "+z.image.MinWindowWidth);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)}},z.image.WindowLevel.prototype.equals=function(e){return null!==e&&this.getCenter()===e.getCenter()&&this.getWidth()===e.getWidth()},z.image.WindowLevel.prototype.toString=function(){return this.getCenter()+", "+this.getWidth()},z||{}),z=(z.image=z.image||{},z.image.WindowLut=function(n,t){var i=null,r=null,o=!1,a=0;this.getWindowLevel=function(){return r},this.isSigned=function(){return t},this.getRescaleLut=function(){return n},this.isReady=function(){return o},this.setWindowLevel=function(e){a=0,(r=e).setSignedOffset(0),t&&(e=n.getLength(),a=e/2,r.setSignedOffset(n.getRSI().getSlope()*a)),o=!1},this.update=function(){if(!o){n.isReady()||n.initialise();var e=n.getLength();i=i||new Uint8ClampedArray(e);for(var t=0;t<e;++t)i[t]=r.apply(n.getValue(t));o=!0}},this.getLength=function(){return i.length},this.getValue=function(e){return i[e+a]}},z||{}),z=(z.io=z.io||{},z.io.DicomDataLoader=function(){var i=this,r={},o=!1,a=(this.setOptions=function(e){r=e},this.isLoading=function(){return o},new z.image.DicomBufferToView);this.load=function(e,t,n){o||(a.setOptions(r),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()}},z.io.DicomDataLoader.prototype.canLoadFile=function(e){e=z.utils.getFileExtension(e.name);return null===e||"dcm"===e},z.io.DicomDataLoader.prototype.canLoadUrl=function(e,t){if(void 0!==t&&void 0!==t.requestHeaders)return void 0!==t.requestHeaders.find(function(e){return"Accept"===e.name&&z.utils.startsWith(e.value,"application/dicom")&&"+"!==e.value[18]});var t=z.utils.getUrlFromUri(e),e=z.utils.getFileExtension(t.pathname),n=null===e,e="dcm"===e,t=t.searchParams.get("contentType");return null!=t?"application/dicom"===t:n||e},z.io.DicomDataLoader.prototype.canLoadMemory=function(e){return void 0!==e["Content-Type"]&&"application/dicom"===e["Content-Type"]||void 0!==e.filename&&this.canLoadFile(e.filename)},z.io.DicomDataLoader.prototype.loadFileAs=function(){return z.io.fileContentTypes.ArrayBuffer},z.io.DicomDataLoader.prototype.loadUrlAs=function(){return z.io.urlContentTypes.ArrayBuffer},z.io.DicomDataLoader.prototype.onloadstart=function(e){},z.io.DicomDataLoader.prototype.onprogress=function(e){},z.io.DicomDataLoader.prototype.onloaditem=function(e){},z.io.DicomDataLoader.prototype.onload=function(e){},z.io.DicomDataLoader.prototype.onloadend=function(e){},z.io.DicomDataLoader.prototype.onerror=function(e){},z.io.DicomDataLoader.prototype.onabort=function(e){},z.io.loaderList=z.io.loaderList||[],z.io.loaderList.push("DicomDataLoader"),z||{}),z=(z.io=z.io||{},z.io.fileContentTypes={Text:0,ArrayBuffer:1,DataURL:2},z.io.FilesLoader=function(){var t,c=this,n=null,d=[],g=null,i=0,r=0;function x(e){n=e,r=i=0,d=[],g=null}function S(e){c.onloaditem(e),m()}function m(e){++i===n.length&&c.onload({source:n})}function h(e){++r===2*n.length&&c.onloadend({source:n})}function p(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){x(e),this.onloadstart({source:e});for(var t=new z.utils.MultiProgressHandler(c.onprogress),n=(t.setNToLoad(e.length),[]),i=0;i<z.io.loaderList.length;++i)n.push(new z.io[z.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({numberOfFiles:e.length,defaultCharacterSet:this.getDefaultCharacterSet()}),o.onprogress=t.getUndefinedMonoProgressHandler(1),void 0===o.onloaditem?o.onload=S:(o.onloaditem=c.onloaditem,o.onload=m),o.onloadend=h,o.onerror=c.onerror,o.onabort=c.onabort,g=o;break}if(!a)throw new Error("No loader found for file: "+r.name);for(var l=0;l<e.length;++l){if(r=e[l],!o.canLoadFile(r))throw new Error("Input file of different type: "+r);var u=new FileReader;d.push(u),u.onprogress=p(t.getMonoProgressHandler(l,0),r),u.onload=function(t,n,i){return function(e){t.load(e.target.result,n,i)}}(o,r,l),u.onloadend=h,u.onerror=p(c.onerror,r),u.onabort=p(c.onabort,r),o.loadFileAs()===z.io.fileContentTypes.Text?u.readAsText(r):o.loadFileAs()===z.io.fileContentTypes.DataURL?u.readAsDataURL(r):o.loadFileAs()===z.io.fileContentTypes.ArrayBuffer&&u.readAsArrayBuffer(r)}}},this.abort=function(){for(var e=0;e<d.length;++e)1===d[e].readyState&&d[e].abort();g&&g.isLoading()&&g.abort()}},z.io.FilesLoader.prototype.onloadstart=function(e){},z.io.FilesLoader.prototype.onprogress=function(e){},z.io.FilesLoader.prototype.onloaditem=function(e){},z.io.FilesLoader.prototype.onload=function(e){},z.io.FilesLoader.prototype.onloadend=function(e){},z.io.FilesLoader.prototype.onerror=function(e){},z.io.FilesLoader.prototype.onabort=function(e){},z||{}),z=(z.io=z.io||{},z.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({})}},z.io.JSONTextLoader.prototype.canLoadFile=function(e){return"json"===z.utils.getFileExtension(e.name)},z.io.JSONTextLoader.prototype.canLoadUrl=function(e,t){if(void 0!==t&&void 0!==t.requestHeaders)return void 0!==t.requestHeaders.find(function(e){return"Accept"===e.name&&z.utils.startsWith(e.value,"application/json")&&z.utils.startsWith(e.value,"application/dicom+json")});t=z.utils.getUrlFromUri(e);return"json"===z.utils.getFileExtension(t.pathname)},z.io.JSONTextLoader.prototype.canLoadMemory=function(e){return!(void 0===e["Content-Type"]||!e["Content-Type"].includes("json"))||void 0!==e.filename&&this.canLoadFile(e.filename)},z.io.JSONTextLoader.prototype.loadFileAs=function(){return z.io.fileContentTypes.Text},z.io.JSONTextLoader.prototype.loadUrlAs=function(){return z.io.urlContentTypes.Text},z.io.JSONTextLoader.prototype.onloadstart=function(e){},z.io.JSONTextLoader.prototype.onprogress=function(e){},z.io.JSONTextLoader.prototype.onload=function(e){},z.io.JSONTextLoader.prototype.onloadend=function(e){},z.io.JSONTextLoader.prototype.onerror=function(e){},z.io.JSONTextLoader.prototype.onabort=function(e){},z.io.loaderList=z.io.loaderList||[],z.io.loaderList.push("JSONTextLoader"),z||{}),z=(z.io=z.io||{},z.io.MemoryLoader=function(){var t,u=this,n=null,c=null,i=0,r=0;function d(e){n=e,r=i=0,c=null}function g(e){u.onloaditem(e),x()}function x(e){++i===n.length&&u.onload({source:n})}function S(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){d(e),this.onloadstart({source:e});for(var t=new z.utils.MultiProgressHandler(u.onprogress),n=(t.setNToLoad(e.length),t.setNumberOfDimensions(1),[]),i=0;i<z.io.loaderList.length;++i)n.push(new z.io[z.io.loaderList[i]]);for(var r=e[0],o=null,a=!1,s=0;s<n.length;++s)if((o=n[s]).canLoadMemory(r)){a=!0,o.setOptions({numberOfFiles:e.length,defaultCharacterSet:this.getDefaultCharacterSet()}),o.onprogress=t.getUndefinedMonoProgressHandler(0),void 0===o.onloaditem?o.onload=g:(o.onloaditem=u.onloaditem,o.onload=x),o.onloadend=S,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.canLoadMemory(r))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()}},z.io.MemoryLoader.prototype.onloadstart=function(e){},z.io.MemoryLoader.prototype.onprogress=function(e){},z.io.MemoryLoader.prototype.onloaditem=function(e){},z.io.MemoryLoader.prototype.onload=function(e){},z.io.MemoryLoader.prototype.onloadend=function(e){},z.io.MemoryLoader.prototype.onerror=function(e){},z.io.MemoryLoader.prototype.onabort=function(e){},z||{}),z=(z.io=z.io||{},z.io.MultipartLoader=function(){var i=this,r=!1;this.setOptions=function(e){},this.isLoading=function(){return r},this.load=function(e,t,n){this.onloadstart({source:t}),r=!0;t=new z.io.MemoryLoader;t.onprogress=function(e){e.loaded=50+e.loaded/2,e.index=n,i.onprogress(e)},t.onloaditem=i.onloaditem,t.onload=i.onload,t.onloadend=function(e){r=!1,i.onloadend(e)},t.onerror=i.onerror,t.onabort=i.onabort,t.load(z.utils.parseMultipart(e))},this.abort=function(){r=!1,i.onabort({}),i.onloadend({})}},z.io.MultipartLoader.prototype.canLoadFile=function(e){return!1},z.io.MultipartLoader.prototype.canLoadUrl=function(e,t){return void 0!==t&&void 0!==t.requestHeaders&&void 0!==t.requestHeaders.find(function(e){return"Accept"===e.name&&z.utils.startsWith(e.value,"multipart/related")})},z.io.MultipartLoader.prototype.canLoadMemory=function(e){return!1},z.io.MultipartLoader.prototype.loadFileAs=function(){return z.io.fileContentTypes.ArrayBuffer},z.io.MultipartLoader.prototype.loadUrlAs=function(){return z.io.urlContentTypes.ArrayBuffer},z.io.MultipartLoader.prototype.onloadstart=function(e){},z.io.MultipartLoader.prototype.onprogress=function(e){},z.io.MultipartLoader.prototype.onloaditem=function(e){},z.io.MultipartLoader.prototype.onload=function(e){},z.io.MultipartLoader.prototype.onloadend=function(e){},z.io.MultipartLoader.prototype.onerror=function(e){},z.io.MultipartLoader.prototype.onabort=function(e){},z.io.loaderList=z.io.loaderList||[],z.io.loaderList.push("MultipartLoader"),z||{}),z=(z.io=z.io||{},z.io.RawImageLoader=function(){var a=this,s=!1;this.setOptions=function(e){},this.isLoading=function(){return!0},this.load=function(e,t,n){s=!1;var i,r,o=new Image;o.onload=function(){try{s||(a.onprogress({lengthComputable:!0,loaded:100,total:100,index:n,source:t}),a.onload(z.image.getViewFromDOMImage(this,t)))}catch(e){a.onerror({error:e,source:t})}finally{a.onloadend({source:t})}},o.origin=t,o.index=n,"string"==typeof t?(i=t.split(".").pop().toLowerCase(),o.src=((r=i=i)&&"jpg"!==i||(r="jpeg"),i=new Blob([e],{type:"image/"+r}),c.URL.createObjectURL(i))):o.src=e},this.abort=function(){s=!0,a.onabort({}),a.onloadend({})}},z.io.RawImageLoader.prototype.canLoadFile=function(e){return e.type.match("image.*")},z.io.RawImageLoader.prototype.canLoadUrl=function(e,t){if(void 0!==t&&void 0!==t.requestHeaders)return void 0!==t.requestHeaders.find(function(e){return"Accept"===e.name&&z.utils.startsWith(e.value,"image/")});t=z.utils.getUrlFromUri(e),e=z.utils.getFileExtension(t.pathname),e="jpeg"===e||"jpg"===e||"png"===e||"gif"===e,t=t.searchParams.get("contentType");return null!=t?"image/jpeg"===t||"image/png"===t||"image/gif"===t:e},z.io.RawImageLoader.prototype.canLoadMemory=function(e){return void 0!==e.filename&&this.canLoadFile(e.filename)},z.io.RawImageLoader.prototype.loadFileAs=function(){return z.io.fileContentTypes.DataURL},z.io.RawImageLoader.prototype.loadUrlAs=function(){return z.io.urlContentTypes.ArrayBuffer},z.io.RawImageLoader.prototype.onloadstart=function(e){},z.io.RawImageLoader.prototype.onprogress=function(e){},z.io.RawImageLoader.prototype.onload=function(e){},z.io.RawImageLoader.prototype.onloadend=function(e){},z.io.RawImageLoader.prototype.onerror=function(e){},z.io.RawImageLoader.prototype.onabort=function(e){},z.io.loaderList=z.io.loaderList||[],z.io.loaderList.push("RawImageLoader"),z||{}),z=(z.io=z.io||{},z.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,"+c.btoa(i)}(e,i)):r.src=e,r.file=t,r.index=n,r.onloadedmetadata=function(){try{z.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({})}},z.io.RawVideoLoader.prototype.canLoadFile=function(e){return e.type.match("video.*")},z.io.RawVideoLoader.prototype.canLoadUrl=function(e,t){if(void 0!==t&&void 0!==t.requestHeaders)return void 0!==t.requestHeaders.find(function(e){return"Accept"===e.name&&z.utils.startsWith(e.value,"video/")});t=z.utils.getUrlFromUri(e),e=z.utils.getFileExtension(t.pathname);return"mp4"===e||"ogg"===e||"webm"===e},z.io.RawVideoLoader.prototype.canLoadMemory=function(e){return void 0!==e.filename&&this.canLoadFile(e.filename)},z.io.RawVideoLoader.prototype.loadFileAs=function(){return z.io.fileContentTypes.DataURL},z.io.RawVideoLoader.prototype.loadUrlAs=function(){return z.io.urlContentTypes.ArrayBuffer},z.io.RawVideoLoader.prototype.onloadstart=function(e){},z.io.RawVideoLoader.prototype.onprogress=function(e){},z.io.RawVideoLoader.prototype.onloaditem=function(e){},z.io.RawVideoLoader.prototype.onload=function(e){},z.io.RawVideoLoader.prototype.onloadend=function(e){},z.io.RawVideoLoader.prototype.onerror=function(e){},z.io.RawVideoLoader.prototype.onabort=function(e){},z.io.loaderList=z.io.loaderList||[],z.io.loaderList.push("RawVideoLoader"),z||{}),y=(z.io=z.io||{},y||{}),z=(z.io.State=function(){this.toJSON=function(e){var t=e.getActiveLayerGroup(),n=t.getActiveViewLayer().getViewController(),t=t.getActiveDrawLayer(),i=n.getCurrentIndex();return JSON.stringify({version:"0.5","window-center":n.getWindowLevel().center,"window-width":n.getWindowLevel().width,position:i.getValues(),scale:e.getAddedScale(),offset:e.getOffset(),drawings:t.getKonvaLayer().toObject(),drawingsDetails:e.getDrawStoreDetails()})},this.fromJSON=function(e){var t,n,i,e=JSON.parse(e),r=null;if("0.1"===e.version)n=e,i=z.io.v01Tov02DrawingsAndDetails(n.drawings),n.drawings=z.io.v02Tov03Drawings(i.drawings).toObject(),n.drawingsDetails=z.io.v03Tov04DrawingsDetails(i.drawingsDetails),(n=z.io.v04Tov05Data(n)).drawings=z.io.v04Tov05Drawings(n.drawings),r=n;else if("0.2"===e.version)(i=e).drawings=z.io.v02Tov03Drawings(i.drawings).toObject(),i.drawingsDetails=z.io.v03Tov04DrawingsDetails(z.io.v02Tov03DrawingsDetails(i.drawingsDetails)),(i=z.io.v04Tov05Data(i)).drawings=z.io.v04Tov05Drawings(i.drawings),r=i;else if("0.3"===e.version)(n=e).drawingsDetails=z.io.v03Tov04DrawingsDetails(n.drawingsDetails),(n=z.io.v04Tov05Data(n)).drawings=z.io.v04Tov05Drawings(n.drawings),r=n;else if("0.4"===e.version)t=e,(t=z.io.v04Tov05Data(t)).drawings=z.io.v04Tov05Drawings(t.drawings),r=t;else{if("0.5"!==e.version)throw new Error("Unknown state file format version: '"+e.version+"'.");r=e}return r},this.apply=function(e,t){var n,i,r=e.getActiveLayerGroup().getActiveViewLayer().getViewController(),r=(r.setWindowLevel(t["window-center"],t["window-width"]),r.setCurrentIndex(new z.math.Index(t.position)),e.getActiveLayerGroup().getBaseScale()),o=null,a=null;a=void 0!==t.scaleCenter?(o={x:t.scale*r.x,y:t.scale*r.y,z:1},n=t.scaleCenter.x-t.scaleCenter.x*t.scale,i=t.scaleCenter.y-t.scaleCenter.y*t.scale,n=n+t.translation.x*o.x,i=i+t.translation.y*o.y,{x:-n/o.x,y:-i/o.y,z:0}):(o={x:t.scale.x*r.x,y:t.scale.y*r.y,z:1},{x:t.offset.x,y:t.offset.y,z:0}),e.getActiveLayerGroup().setScale(o),e.getActiveLayerGroup().setOffset(a),e.render(0),e.setDrawings(t.drawings,t.drawingsDetails)}},z.io.v02Tov03Drawings=function(e){for(var t,n,i=new y.Layer({listening:!1,visible:!0}),r="string"==typeof e?JSON.parse(e):e,o=0,a=r.length;o<a;++o)for(var s=0,l=r[o].length;s<l;++s)if(0!==(n=r[o][s]).length){for(var u=new y.Group({id:z.draw.getDrawPositionGroupId(new z.math.Index([1,1,o,s])),name:"position-group",visible:!1}),c=0,d=n.length;c<d;++c)(t=y.Node.create(n[c])).draggable(!0),t.getChildren().forEach(function(e){e.draggable(!1)}),u.add(t);i.add(u)}return i},z.io.v01Tov02DrawingsAndDetails=function(e){for(var t,n=[],i={},r=0,o=e.length;r<o;++r){n[r]=[];for(var a=0,s=e[r].length;a<s;++a){for(var l,u=[],c=0,d=(l=e[r][a]).length;c<d;++c){(t=y.Node.create(l[c])).visible(!0);var g={x:0,y:0},x=t.getChildren(function(e){return"shape"===e.name()})[0],S=(x.stroke(z.utils.colourNameToHex(x.stroke())),"line-group"===t.name()&&(t.name("ruler-group"),S=new y.Line({points:[x.points()[0],x.points()[1],x.points()[0],x.points()[1]],name:"shape-tick0"}),t.add(S),S=new y.Line({points:[x.points()[2],x.points()[3],x.points()[2],x.points()[3]],name:"shape-tick1"}),t.add(S)),t.getChildren(function(e){return"arc"===e.name()})),m=(1===S.length&&S[0].name("shape-arc"),t.getChildren(function(e){return"text"===e.name()})),h=new y.Text({name:"text",text:""}),m=(1===m.length?(g.x=m[0].x(),g.y=m[0].y(),m[0].remove(),h=m[0]):0!==x.points().length&&(g={x:x.points()[0],y:x.points()[1]}),new y.Label({x:g.x,y:g.y,name:"label"})),x=(m.add(h),m.add(new y.Tag),t.add(m),u.push(JSON.stringify(t.toObject())),h.text()),g=x.length,m=null;"ruler-group"===t.name()?(m={length:{value:parseFloat(x.substring(0,g-2)),unit:x.substring(-2)}},x="{length}"):"ellipse-group"===t.name()||"rectangle-group"===t.name()?(m={surface:{value:parseFloat(x.substring(0,g-3)),unit:x.substring(-3)}},x="{surface}"):"protractor-group"!==t.name()&&"rectangle-group"!==t.name()||(m={angle:{value:parseFloat(x.substring(0,g-1)),unit:x.substring(-1)}},x="{angle}"),i[t.id()]={textExpr:x,longText:"",quant:m}}n[r].push(u)}}return{drawings:n,drawingsDetails:i}},z.io.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},z.io.v03Tov04DrawingsDetails=function(e){for(var t={},n=Object.keys(e),i=0,r=n.length;i<r;++i){var o=e[n[i]];t[n[i]]={meta:{textExpr:o.textExpr,longText:o.longText,quantification:o.quant}}}return t},z.io.v04Tov05Data=function(e){var t=e.position;return e.position=[t.i,t.j,t.k],e},z.io.v04Tov05Drawings=function(e){for(var t=e.children,n=0,i=t.length;n<i;++n){var r=t[n],o=r.attrs.id.split("_"),a=parseInt(o[0].substring(6),10),o=parseInt(o[1].substring(6),10),s="#2-";s+=0===a&&0!==o?o:a,r.attrs.id=s}return e},z||{}),z=(z.io=z.io||{},z.io.urlContentTypes={Text:0,ArrayBuffer:1},z.io.UrlsLoader=function(){var p,t,f=this,n=null,y=[],D=null,i=0,r=0;function v(e){n=e,r=i=0,p=!1,y=[],D=null}function C(e){f.onloaditem(e),T()}function T(e){++i===n.length&&f.onload({source:n})}function L(e){++r===2*n.length&&f.onloadend({source:n})}function I(t,n){return function(e){e.source=n,t(e)}}function l(e,t){if(void 0!==e&&0!==e.length){v(e);for(var n=new z.utils.MultiProgressHandler(f.onprogress),i=(n.setNToLoad(e.length),[]),r=0;r<z.io.loaderList.length;++r)i.push(new z.io[z.io.loaderList[r]]);for(var o=e[0],a=null,s=!1,l=0;l<i.length;++l)if((a=i[l]).canLoadUrl(o,t)){s=!0,a.setOptions({numberOfFiles:e.length,defaultCharacterSet:f.getDefaultCharacterSet()}),a.onprogress=n.getUndefinedMonoProgressHandler(1),void 0===a.onloaditem?a.onload=C:(a.onloaditem=f.onloaditem,a.onload=T),a.onloadend=L,a.onerror=f.onerror,a.onabort=f.onabort,D=a;break}if(!s)throw new Error("No loader found for url: "+o);function u(){L(),c<y.length-1&&!p&&y[++c].send(null)}for(var c=0,d=0;d<e.length;++d){if(o=e[d],!a.canLoadUrl(o,t))throw new Error("Input url of different type: "+o);var g=new XMLHttpRequest;if(g.open("GET",o,!0),void 0!==t){if(void 0!==t.requestHeaders)for(var x=t.requestHeaders,S=0;S<x.length;++S)void 0!==x[S].name&&void 0!==x[S].value&&g.setRequestHeader(x[S].name,x[S].value);void 0!==t.withCredentials&&(g.withCredentials=t.withCredentials)}g.onprogress=I(n.getMonoProgressHandler(d,0),o),g.onload=function(n,i,r){return function(e){var t=e.target.status;200!==t&&0!==t?(f.onerror({source:i,error:"GET "+e.target.responseURL+" "+e.target.status+" ("+e.target.statusText+")",target:e.target}),L()):n.load(e.target.response,i,r)}}(a,o,d),g.onloadend=u,g.onerror=I(f.onerror,o),g.onabort=I(f.onabort,o),a.loadUrlAs()===z.io.urlContentTypes.ArrayBuffer&&(g.responseType="arraybuffer"),y.push(g)}var m=y.length;void 0!==t&&void 0!==t.batchSize&&0!==m&&(m=Math.min(t.batchSize,y.length));for(var h=0;h<m;++h)p||y[c=h].send(null)}}this.getDefaultCharacterSet=function(){return t},this.setDefaultCharacterSet=function(e){t=e},this.load=function(e,t){var a,s,n;f.onloadstart({source:e}),1===e.length&&(z.utils.endsWith(e[0],"DICOMDIR")||z.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 f.onerror({source:a,error:"GET "+e.target.responseURL+" "+e.target.status+" ("+e.target.statusText+")",target:e.target}),void f.onloadend({});for(var n=z.dicom.getFileListFromDicomDir(e.target.response)[0][0],i=z.utils.getRootPath(a),r=[],o=0;o<n.length;++o)r.push(i+"/"+n[o]);l(r,s)},n.onerror=function(e){I(f.onerror,a)(e),f.onloadend({})},n.onabort=function(e){I(f.onabort,a)(e),f.onloadend({})},n.send(null)):l(e,t)},this.abort=function(){p=!0;for(var e=0;e<y.length;++e)4!==y[e].readyState&&y[e].abort();D&&D.isLoading()&&D.abort()}},z.io.UrlsLoader.prototype.onloadstart=function(e){},z.io.UrlsLoader.prototype.onprogress=function(e){},z.io.UrlsLoader.prototype.onloaditem=function(e){},z.io.UrlsLoader.prototype.onload=function(e){},z.io.UrlsLoader.prototype.onloadend=function(e){},z.io.UrlsLoader.prototype.onerror=function(e){},z.io.UrlsLoader.prototype.onabort=function(e){},z||{}),u=(z.io=z.io||{},u||{}),z=(z.io.ZipLoader=function(){var r=this,o=!1,a=(this.setOptions=function(e){},this.isLoading=function(){return o},""),s=[],l=null;this.load=function(e,t,n){this.onloadstart({source:t}),o=!0,u.loadAsync(e).then(function(e){s=[],l=e.file(/.*\.dcm/);e=s.length;a=l[e].name,l[e].async("arrayBuffer").then(function(e){!function t(e,n,i){s.push({filename:a,data:e});e=100*s.length/l.length;r.onprogress({lengthComputable:!0,loaded:e/2,total:100,index:i,item:{loaded:e,total:100,source:n}}),s.length<l.length?(e=s.length,a=l[e].name,l[e].async("arrayBuffer").then(function(e){t(e,n,i)})):((e=new z.io.MemoryLoader).onprogress=function(e){e.loaded=50+e.loaded/2,e.index=i,r.onprogress(e)},e.onloaditem=r.onloaditem,e.onload=r.onload,e.onloadend=function(e){o=!1,r.onloadend(e)},e.onerror=r.onerror,e.onabort=r.onabort,e.load(s))}(e,t,n)})})},this.abort=function(){o=!1,r.onabort({}),r.onloadend({})}},z.io.ZipLoader.prototype.canLoadFile=function(e){return"zip"===z.utils.getFileExtension(e.name)},z.io.ZipLoader.prototype.canLoadUrl=function(e,t){if(void 0!==t&&void 0!==t.requestHeaders)return void 0!==t.requestHeaders.find(function(e){return"Accept"===e.name&&z.utils.startsWith(e.value,"application/zip")});t=z.utils.getUrlFromUri(e);return"zip"===z.utils.getFileExtension(t.pathname)},z.io.ZipLoader.prototype.canLoadMemory=function(e){return!1},z.io.ZipLoader.prototype.loadFileAs=function(){return z.io.fileContentTypes.ArrayBuffer},z.io.ZipLoader.prototype.loadUrlAs=function(){return z.io.urlContentTypes.ArrayBuffer},z.io.ZipLoader.prototype.onloadstart=function(e){},z.io.ZipLoader.prototype.onprogress=function(e){},z.io.ZipLoader.prototype.onloaditem=function(e){},z.io.ZipLoader.prototype.onload=function(e){},z.io.ZipLoader.prototype.onloadend=function(e){},z.io.ZipLoader.prototype.onerror=function(e){},z.io.ZipLoader.prototype.onabort=function(e){},z.io.loaderList=z.io.loaderList||[],z.io.loaderList.push("ZipLoader"),z||{}),z=(z.math=z.math||{},z.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)},z.math.BucketQueue.prototype.push=function(e){var t=this.getBucket(e);e.next=this.buckets[t],this.buckets[t]=e,this.size++},z.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},z.math.BucketQueue.prototype.remove=function(e){if(!e)return!1;for(var t=this.getBucket(e),n=this.buckets[t];null!==n&&(null===n.next||e.x!==n.next.x||e.y!==n.next.y);)n=n.next;return null!==n&&(n.next=n.next.next,this.size--,!0)},z.math.BucketQueue.prototype.isEmpty=function(){return 0===this.size},z.math.BucketQueue.prototype.getBucket=function(e){return this.cost(e)&this.mask},z.math.BucketQueue.prototype.buildArray=function(e){for(var t=new Array(e),n=0;n<t.length;n++)t[n]=null;return t},z||{}),z=(z.math=z.math||{},z.math.mulABC=function(e,t,n){return null!==t&&null!==n?e*t*n:null},z.math.Circle=function(e,t){this.getCenter=function(){return e},this.getRadius=function(){return t}},z.math.Circle.prototype.equals=function(e){return null!==e&&this.getCenter().equals(e.getCenter())&&this.getRadius()===e.getRadius()},z.math.Circle.prototype.getSurface=function(){return Math.PI*this.getRadius()*this.getRadius()},z.math.Circle.prototype.getWorldSurface=function(e,t){return z.math.mulABC(this.getSurface(),e,t)},z.math.Circle.prototype.getRound=function(){for(var e=this.getCenter().getX(),t=this.getCenter().getY(),n=this.getRadius(),i=Math.pow(n,2),r=t+n,o=[],a=t-n;a<r;++a){var s=i-Math.pow(a-t,2);Math.abs(s)<1e-7||((s=Math.sqrt(s))<.5||o.push([[Math.round(e-s),Math.round(a)],[Math.round(e+s),Math.round(a)]]))}return o},z.math.Circle.prototype.quantify=function(e,t){var n={},i=e.get2DSpacing(),i=this.getWorldSurface(i[0],i[1]);return null!==i&&(n.surface={value:i/100,unit:z.i18n("unit.cm2")}),e.canQuantifyImage()&&0!==(i=this.getRound()).length&&(e=e.getImageVariableRegionValues(i),i=z.math.getStats(e,t),n.min={value:i.getMin(),unit:""},n.max={value:i.getMax(),unit:""},n.mean={value:i.getMean(),unit:""},n.stdDev={value:i.getStdDev(),unit:""},void 0!==i.getMedian&&(n.median={value:i.getMedian(),unit:""}),void 0!==i.getP25&&(n.p25={value:i.getP25(),unit:""}),void 0!==i.getP75&&(n.p75={value:i.getP75(),unit:""})),n},z||{}),z=(z.math=z.math||{},z.math.mulABC=function(e,t,n){return null!==t&&null!==n?e*t*n:null},z.math.Ellipse=function(e,t,n){this.getCenter=function(){return e},this.getA=function(){return t},this.getB=function(){return n}},z.math.Ellipse.prototype.equals=function(e){return null!==e&&this.getCenter().equals(e.getCenter())&&this.getA()===e.getA()&&this.getB()===e.getB()},z.math.Ellipse.prototype.getSurface=function(){return Math.PI*this.getA()*this.getB()},z.math.Ellipse.prototype.getWorldSurface=function(e,t){return z.math.mulABC(this.getSurface(),e,t)},z.math.Ellipse.prototype.getRound=function(){for(var e=this.getCenter().getX(),t=this.getCenter().getY(),n=this.getA(),i=this.getB(),r=n/i,o=Math.pow(i,2),a=t+i,s=[],l=t-i;l<a;++l){var u=o-Math.pow(l-t,2);Math.abs(u)<1e-7||((u=r*Math.sqrt(u))<.5||s.push([[Math.round(e-u),Math.round(l)],[Math.round(e+u),Math.round(l)]]))}return s},z.math.Ellipse.prototype.quantify=function(e,t){var n={},i=e.get2DSpacing(),i=this.getWorldSurface(i[0],i[1]);return null!==i&&(n.surface={value:i/100,unit:z.i18n("unit.cm2")}),e.canQuantifyImage()&&0!==(i=this.getRound()).length&&(e=e.getImageVariableRegionValues(i),i=z.math.getStats(e,t),n.min={value:i.getMin(),unit:""},n.max={value:i.getMax(),unit:""},n.mean={value:i.getMean(),unit:""},n.stdDev={value:i.getStdDev(),unit:""},void 0!==i.getMedian&&(n.median={value:i.getMedian(),unit:""}),void 0!==i.getP25&&(n.p25={value:i.getP25(),unit:""}),void 0!==i.getP75&&(n.p75={value:i.getP75(),unit:""})),n},z.math.getEllipseIndices=function(e,t,n){for(var i=e.getValues(),r=i.slice(),o=[],e=t[0],a=t[1],s=e/a,l=Math.pow(a,2),u=n[0],c=n[1],d=0;d<a;++d)for(var g=Math.round(s*Math.sqrt(l-Math.pow(d,2))),x=i[c]+d,S=i[c]-d,m=0;m<g;++m){var h=i[u]+m,p=i[u]-m;r[u]=h,r[c]=x,o.push(new z.math.Index(r.slice())),r[c]=S,o.push(new z.math.Index(r.slice())),r[u]=p,r[c]=x,o.push(new z.math.Index(r.slice())),r[c]=S,o.push(new z.math.Index(r.slice()))}return o},z||{}),z=(z.math=z.math||{},z.math.Index=function(t){if(!t||void 0===t)throw new Error("Cannot create index with no values.");if(0===t.length)throw new Error("Cannot create index with empty values.");if(!t.every(function(e){return!isNaN(e)}))throw new Error("Cannot create index with non number values.");this.get=function(e){return t[e]},this.length=function(){return t.length},this.toString=function(){return"("+t.toString()+")"},this.getValues=function(){return t.slice()}},z.math.Index.prototype.canCompare=function(e){return!!e&&this.length()===e.length()},z.math.Index.prototype.equals=function(e){if(!this.canCompare(e))return!1;for(var t=0,n=this.length();t<n;++t)if(this.get(t)!==e.get(t))return!1;return!0},z.math.Index.prototype.compare=function(e){if(!this.canCompare(e))return null;for(var t=[],n=0,i=this.length();n<i;++n)this.get(n)!==e.get(n)&&t.push(n);return t},z.math.Index.prototype.add=function(e){if(!this.canCompare(e))return null;for(var t=[],n=0,i=this.length();n<i;++n)t.push(this.get(n)+e.get(n));return new z.math.Index(t)},z.math.Index.prototype.getWithNew2D=function(e,t){for(var n=[e,t],i=2,r=this.length();i<r;++i)n.push(this.get(i));return new z.math.Index(n)},z.math.getZeroIndex=function(e){e=new Array(e);return e.fill(0),new z.math.Index(e)},z.math.getIndexCompareFunction=function(n){return function(e,t){return e.get(n)-t.get(n)}},z.math.Index.prototype.toStringId=function(e){if(void 0===e){e=[];for(var t=0;t<this.length();++t)e.push(t)}for(var n=0;n<e.length;++n)if(e[n]>=this.length())throw new Error("Non valid dimension for toStringId.");for(var i="",r=0;r<e.length;++r)0!==r&&(i+="_"),i+="#"+e[r]+"-"+this.get(e[r]);return i},z.math.getIndexFromStringId=function(e){for(var t=e.split("_"),n=0,i=0;i<t.length;++i)n<(a=parseInt(t[i].substring(1,2),10))&&(n=a);if(0===n)throw new Error("No dimension found in point stringId");var r=new Array(n);r.fill(0);for(var o=0;o<t.length;++o){var a=parseInt(t[o].substring(1,3),10),s=parseInt(t[o].substring(3),10);r[a]=s}return new z.math.Point(r)},z||{}),z=(z.math=z.math||{},z.math.Line=function(e,t){this.getBegin=function(){return e},this.getEnd=function(){return t}},z.math.Line.prototype.equals=function(e){return null!==e&&this.getBegin().equals(e.getBegin())&&this.getEnd().equals(e.getEnd())},z.math.Line.prototype.getDeltaX=function(){return this.getEnd().getX()-this.getBegin().getX()},z.math.Line.prototype.getDeltaY=function(){return this.getEnd().getY()-this.getBegin().getY()},z.math.Line.prototype.getLength=function(){return Math.sqrt(this.getDeltaX()*this.getDeltaX()+this.getDeltaY()*this.getDeltaY())},z.math.Line.prototype.getWorldLength=function(e,t){var n=null;return null!==e&&null!==t&&(e=this.getDeltaX()*e,t=this.getDeltaY()*t,n=Math.sqrt(e*e+t*t)),n},z.math.Line.prototype.getMidpoint=function(){return new z.math.Point2D(parseInt((this.getBegin().getX()+this.getEnd().getX())/2,10),parseInt((this.getBegin().getY()+this.getEnd().getY())/2,10))},z.math.Line.prototype.getSlope=function(){return this.getDeltaY()/this.getDeltaX()},z.math.Line.prototype.getIntercept=function(){return(this.getEnd().getX()*this.getBegin().getY()-this.getBegin().getX()*this.getEnd().getY())/this.getDeltaX()},z.math.Line.prototype.getInclination=function(){return 180-180*Math.atan2(this.getDeltaY(),this.getDeltaX())/Math.PI},z.math.getAngle=function(e,t){var n=e.getDeltaX(),e=e.getDeltaY(),i=t.getDeltaX(),t=t.getDeltaY();return 360-(180-180*Math.atan2(n*t-e*i,n*i+e*t)/Math.PI)},z.math.getPerpendicularLine=function(e,t,n){var i,r,o=0,a=0,s=0,l=0;return l=0!==e.getSlope()?(e=-1/e.getSlope(),i=t.getY()-e*t.getX(),r=n/(2*Math.sqrt(1+e*e)),a=e*(o=t.getX()-r)+i,e*(s=t.getX()+r)+i):(o=t.getX(),a=t.getY()-n/2,s=t.getX(),t.getY()+n/2),new z.math.Line(new z.math.Point2D(o,a),new z.math.Point2D(s,l))},z.math.Line.prototype.quantify=function(e){var t={},e=e.get2DSpacing(),e=this.getWorldLength(e[0],e[1]);return null!==e&&(t.length={value:e,unit:z.i18n("unit.mm")}),t},z||{}),z=(z.math=z.math||{},void 0===Number.EPSILON&&(Number.EPSILON=Math.pow(2,-52)),z.math.BIG_EPSILON=1e4*Number.EPSILON,z.math.REAL_WORLD_EPSILON=1e-4,z.math.isSimilar=function(e,t,n){return void 0===n&&(n=Number.EPSILON),Math.abs(e-t)<n},z.math.Matrix33=function(n){var e=null;this.get=function(e,t){return n[3*e+t]},this.getInverse=function(){return e=null===e?z.math.getMatrixInverse(this):e}},z.math.Matrix33.prototype.equals=function(e,t){for(var n=0;n<3;++n)for(var i=0;i<3;++i)if(!z.math.isSimilar(this.get(n,i),e.get(n,i),t))return!1;return!0},z.math.Matrix33.prototype.toString=function(){for(var e="[",t=0;t<3;++t){0!==t&&(e+=", \n ");for(var n=0;n<3;++n)0!==n&&(e+=", "),e+=this.get(t,n)}return e+="]"},z.math.Matrix33.prototype.multiply=function(e){for(var t=[],n=0;n<3;++n)for(var i=0;i<3;++i){for(var r=0,o=0;o<3;++o)r+=this.get(n,o)*e.get(o,i);t.push(r)}return new z.math.Matrix33(t)},z.math.Matrix33.prototype.getAbs=function(){for(var e=[],t=0;t<3;++t)for(var n=0;n<3;++n)e.push(Math.abs(this.get(t,n)));return new z.math.Matrix33(e)},z.math.Matrix33.prototype.multiplyArray3D=function(e){if(3!==e.length)throw new Error("Cannot multiply 3x3 matrix with non 3D array: ",e.length);for(var t=[],n=0;n<3;++n){for(var i=0,r=0;r<3;++r)i+=this.get(n,r)*e[r];t.push(i)}return t},z.math.Matrix33.prototype.multiplyVector3D=function(e){e=this.multiplyArray3D([e.getX(),e.getY(),e.getZ()]);return new z.math.Vector3D(e[0],e[1],e[2])},z.math.Matrix33.prototype.multiplyPoint3D=function(e){e=this.multiplyArray3D([e.getX(),e.getY(),e.getZ()]);return new z.math.Point3D(e[0],e[1],e[2])},z.math.Matrix33.prototype.multiplyIndex3D=function(e){e=this.multiplyArray3D(e.getValues());return new z.math.Index(e)},z.math.getMatrixInverse=function(e){var t=e.get(0,0),n=e.get(0,1),i=e.get(0,2),r=e.get(1,0),o=e.get(1,1),a=e.get(1,2),s=e.get(2,0),l=e.get(2,1),e=e.get(2,2),u=o*e-a*l,c=a*s-r*e,d=r*l-o*s,g=t*u+n*c+i*d;{if(0!=g)return new z.math.Matrix33([(g=1/g)*u,g*(i*l-n*e),g*(n*a-i*o),g*c,g*(t*e-i*s),g*(i*r-t*a),g*d,g*(n*s-t*l),g*(t*o-n*r)]);z.logger.warn("Cannot invert 3*3 matrix with zero determinant.")}},z.math.Matrix33.prototype.getRowAbsMax=function(e){var t=[Math.abs(this.get(e,0)),Math.abs(this.get(e,1)),Math.abs(this.get(e,2))],n=Math.max.apply(null,t),t=t.indexOf(n);return{value:this.get(e,t),index:t}},z.math.Matrix33.prototype.getColAbsMax=function(e){var t=[Math.abs(this.get(0,e)),Math.abs(this.get(1,e)),Math.abs(this.get(2,e))],n=Math.max.apply(null,t),t=t.indexOf(n);return{value:this.get(t,e),index:t}},z.math.Matrix33.prototype.asOneAndZeros=function(){for(var e=[],t=0;t<3;++t)for(var n=this.getRowAbsMax(t),i=0<n.value?1:-1,r=0;r<3;++r)r===n.index?e.push(i):e.push(0);return new z.math.Matrix33(e)},z.math.Matrix33.prototype.getThirdColMajorDirection=function(){return this.getColAbsMax(2).index},z.math.getIdentityMat33=function(){return new z.math.Matrix33([1,0,0,0,1,0,0,0,1])},z.math.isIdentityMat33=function(e){return e.equals(z.math.getIdentityMat33())},z.math.getCoronalMat33=function(){return new z.math.Matrix33([1,0,0,0,0,1,0,-1,0])},z.math.getSagittalMat33=function(){return new z.math.Matrix33([0,0,-1,1,0,0,0,-1,0])},z.math.getMatrixFromName=function(e){var t=null;return"axial"===e?t=z.math.getIdentityMat33():"coronal"===e?t=z.math.getCoronalMat33():"sagittal"===e&&(t=z.math.getSagittalMat33()),t},z||{}),z=(z.math=z.math||{},z.math.Path=function(e,t){this.pointArray=e?e.slice():[],this.controlPointIndexArray=t?t.slice():[]},z.math.Path.prototype.getPoint=function(e){return this.pointArray[e]},z.math.Path.prototype.isControlPoint=function(e){e=this.pointArray.indexOf(e);if(-1!==e)return-1!==this.controlPointIndexArray.indexOf(e);throw new Error("Error: isControlPoint called with not in list point.")},z.math.Path.prototype.getLength=function(){return this.pointArray.length},z.math.Path.prototype.addPoint=function(e){this.pointArray.push(e)},z.math.Path.prototype.addControlPoint=function(e){e=this.pointArray.indexOf(e);if(-1===e)throw new Error("Cannot mark a non registered point as control point.");this.controlPointIndexArray.push(e)},z.math.Path.prototype.addPoints=function(e){this.pointArray=this.pointArray.concat(e)},z.math.Path.prototype.appenPath=function(e){for(var t=this.pointArray.length,n=(this.pointArray=this.pointArray.concat(e.pointArray),[]),i=0;i<e.controlPointIndexArray.length;++i)n[i]=e.controlPointIndexArray[i]+t;this.controlPointIndexArray=this.controlPointIndexArray.concat(n)},z||{}),z=(z.math=z.math||{},z.math.Point2D=function(e,t){this.getX=function(){return e},this.getY=function(){return t}},z.math.Point2D.prototype.equals=function(e){return null!==e&&this.getX()===e.getX()&&this.getY()===e.getY()},z.math.Point2D.prototype.toString=function(){return"("+this.getX()+", "+this.getY()+")"},z.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()))},z.math.Point2D.prototype.getRound=function(){return new z.math.Point2D(Math.round(this.getX()),Math.round(this.getY()))},z.math.Point3D=function(e,t,n){this.getX=function(){return e},this.getY=function(){return t},this.getZ=function(){return n}},z.math.Point3D.prototype.equals=function(e){return null!==e&&this.getX()===e.getX()&&this.getY()===e.getY()&&this.getZ()===e.getZ()},z.math.Point3D.prototype.isSimilar=function(e,t){return null!==e&&z.math.isSimilar(this.getX(),e.getX(),t)&&z.math.isSimilar(this.getY(),e.getY(),t)&&z.math.isSimilar(this.getZ(),e.getZ(),t)},z.math.Point3D.prototype.toString=function(){return"("+this.getX()+", "+this.getY()+", "+this.getZ()+")"},z.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()))},z.math.Point3D.prototype.minus=function(e){return new z.math.Vector3D(this.getX()-e.getX(),this.getY()-e.getY(),this.getZ()-e.getZ())},z.math.getEqualPoint3DFunction=function(t){return function(e){return e.equals(t)}},z.math.getSimilarPoint3DFunction=function(t,n){return function(e){return e.isSimilar(t,n)}},z.math.Point=function(t){if(!t||void 0===t)throw new Error("Cannot create point with no values.");if(0===t.length)throw new Error("Cannot create point with empty values.");if(!t.every(function(e){return!isNaN(e)}))throw new Error("Cannot create point with non number values.");this.get=function(e){return t[e]},this.length=function(){return t.length},this.toString=function(){return"("+t.toString()+")"},this.getValues=function(){return t.slice()}},z.math.Point.prototype.canCompare=function(e){return!!e&&this.length()===e.length()},z.math.Point.prototype.equals=function(e){if(!this.canCompare(e))return!1;for(var t=0,n=this.length();t<n;++t)if(this.get(t)!==e.get(t))return!1;return!0},z.math.Point.prototype.compare=function(e){if(!this.canCompare(e))return null;for(var t=[],n=0,i=this.length();n<i;++n)this.get(n)!==e.get(n)&&t.push(n);return t},z.math.Point.prototype.get3D=function(){return new z.math.Point3D(this.get(0),this.get(1),this.get(2))},z.math.Point.prototype.add=function(e){if(!this.canCompare(e))return null;for(var t=[],n=this.getValues(),i=e.getValues(),r=0;r<n.length;++r)t.push(n[r]+i[r]);return new z.math.Point(t)},z.math.Point.prototype.mergeWith3D=function(e){var t=this.getValues();return t[0]=e.getX(),t[1]=e.getY(),t[2]=e.getZ(),new z.math.Point(t)},z||{}),z=(z.math=z.math||{},z.math.mulABC=function(e,t,n){return null!==t&&null!==n?e*t*n:null},z.math.Rectangle=function(e,t){var n;t.getX()<e.getX()&&(n=e.getX(),e=new z.math.Point2D(t.getX(),e.getY()),t=new z.math.Point2D(n,t.getY())),t.getY()<e.getY()&&(n=e.getY(),e=new z.math.Point2D(e.getX(),t.getY()),t=new z.math.Point2D(t.getX(),n)),this.getBegin=function(){return e},this.getEnd=function(){return t}},z.math.Rectangle.prototype.equals=function(e){return null!==e&&this.getBegin().equals(e.getBegin())&&this.getEnd().equals(e.getEnd())},z.math.Rectangle.prototype.getSurface=function(){var e=this.getBegin(),t=this.getEnd();return Math.abs(t.getX()-e.getX())*Math.abs(t.getY()-e.getY())},z.math.Rectangle.prototype.getWorldSurface=function(e,t){return z.math.mulABC(this.getSurface(),e,t)},z.math.Rectangle.prototype.getRealWidth=function(){return this.getEnd().getX()-this.getBegin().getX()},z.math.Rectangle.prototype.getRealHeight=function(){return this.getEnd().getY()-this.getBegin().getY()},z.math.Rectangle.prototype.getWidth=function(){return Math.abs(this.getRealWidth())},z.math.Rectangle.prototype.getHeight=function(){return Math.abs(this.getRealHeight())},z.math.Rectangle.prototype.getRound=function(){return{min:this.getBegin().getRound(),max:this.getEnd().getRound()}},z.math.Rectangle.prototype.quantify=function(e,t){var n={},i=e.get2DSpacing(),i=this.getWorldSurface(i[0],i[1]);return null!==i&&(n.surface={value:i/100,unit:z.i18n("unit.cm2")}),e.canQuantifyImage()&&(i=this.getRound(),e=e.getImageRegionValues(i.min,i.max),i=z.math.getStats(e,t),n.min={value:i.getMin(),unit:""},n.max={value:i.getMax(),unit:""},n.mean={value:i.getMean(),unit:""},n.stdDev={value:i.getStdDev(),unit:""},void 0!==i.getMedian&&(n.median={value:i.getMedian(),unit:""}),void 0!==i.getP25&&(n.p25={value:i.getP25(),unit:""}),void 0!==i.getP75&&(n.p75={value:i.getP75(),unit:""})),n},z||{}),z=(z.math=z.math||{},z.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)}},z||{}),S=(z.math=z.math||{},2/(3*Math.PI)),z=(z.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),e=this.dy(e,t);return Math.sqrt(n*n+e*e)},i.laplace=function(e,t){var n=-16*this[t][e];return(n+=this[t-2][e])+(this[t-1][e-1]+2*this[t-1][e]+this[t-1][e+1])+(this[t][e-2]+2*this[t][e-1]+2*this[t][e+1]+this[t][e+2])+(this[t+1][e-1]+2*this[t+1][e]+this[t+1][e+1])+this[t+2][e]},i},z.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},z.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},z.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},z.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},z.math.gradUnitVector=function(e,t,n,i,r){e=e[i][n],t=t[i][n],i=Math.sqrt(e*e+t*t),i=Math.max(i,1e-100);r.x=e/i,r.y=t/i},z.math.gradDirection=function(e,t,n,i,r,o){var a={x:-1,y:-1},s={x:-1,y:-1},e=(z.math.gradUnitVector(e,t,n,i,a),z.math.gradUnitVector(e,t,r,o,s),a.y*(r-n)-a.x*(o-i)),t=s.y*(r-n)-s.x*(o-i);return e<0&&(e=-e,t=-t),n!==r&&i!==o&&(e*=Math.SQRT1_2,t*=Math.SQRT1_2),S*(Math.acos(e)+Math.acos(t))},z.math.computeSides=function(e,t,n,i){for(var r={inside:[],outside:[]},o={x:-1,y:-1},a=0;a<t.length;a++){r.inside[a]=[],r.outside[a]=[];for(var s=0;s<t[a].length;s++){z.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),d=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),d=Math.max(Math.min(d,t.length-1),0);r.inside[a][s]=i[u][l],r.outside[a][s]=i[d][c]}}return r},z.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]},z.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},z.math.Scissors.prototype.getTrainingIdx=function(e,t){return Math.round((e-1)*t)},z.math.Scissors.prototype.getTrainedEdge=function(e){return this.edgeTraining[this.getTrainingIdx(this.edgeGran,e)]},z.math.Scissors.prototype.getTrainedGrad=function(e){return this.gradTraining[this.getTrainingIdx(this.gradGran,e)]},z.math.Scissors.prototype.getTrainedInside=function(e){return this.insideTraining[this.getTrainingIdx(this.insideGran,e)]},z.math.Scissors.prototype.getTrainedOutside=function(e){return this.outsideTraining[this.getTrainingIdx(this.outsideGran,e)]},z.math.Scissors.prototype.setWorking=function(e){this.working=e},z.math.Scissors.prototype.setDimensions=function(e,t){this.width=e,this.height=t},z.math.Scissors.prototype.setData=function(e){if(-1===this.width||-1===this.height)throw new Error("Dimensions have not been set.");this.greyscale=z.math.computeGreyscale(e,this.width,this.height),this.laplace=z.math.computeLaplace(this.greyscale),this.gradient=z.math.computeGradient(this.greyscale),this.gradX=z.math.computeGradX(this.greyscale),this.gradY=z.math.computeGradY(this.greyscale);e=z.math.computeSides(this.edgeWidth,this.gradX,this.gradY,this.greyscale);this.inside=e.inside,this.outside=e.outside,this.edgeTraining=[],this.gradTraining=[],this.insideTraining=[],this.outsideTraining=[]},z.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},z.math.Scissors.prototype.resetTraining=function(){this.trained=!1},z.math.Scissors.prototype.doTraining=function(e){this.trainingPoints=this.findTrainingPoints(e),this.trainingPoints.length<8||(this.calculateTraining(e=[],this.edgeGran,this.greyscale,this.edgeTraining),this.calculateTraining(e,this.gradGran,this.gradient,this.gradTraining),this.calculateTraining(e,this.insideGran,this.inside,this.insideTraining),this.calculateTraining(e,this.outsideGran,this.outside,this.outsideTraining),this.trainingPoints.length<this.gradPointsNeeded&&this.addInStaticGrad(this.trainingPoints.length,this.gradPointsNeeded),this.trained=!0)},z.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],a=this.getTrainingIdx(t,n[a.y][a.x]);e[a]+=1,o=Math.max(o,e[a])}for(r=0;r<t;r++)e[r]=1-e[r]/o;z.math.gaussianBlur(e,i)},z.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))},z.math.Scissors.prototype.gradDirection=function(e,t,n,i){return z.math.gradDirection(this.gradX,this.gradY,e,t,n,i)},z.math.Scissors.prototype.dist=function(e,t,n,i){var r=this.gradient[i][n],o=(e!==n&&t!==i||(r*=Math.SQRT1_2),this.laplace[i][n]),n=this.gradDirection(e,t,n,i);return this.trained?.3*this.getTrainedGrad(r)+.3*o+.1*(n+this.getTrainedEdge(this.greyscale[t][e])+this.getTrainedInside(this.inside[t][e])+this.getTrainedOutside(this.outside[t][e])):.43*r+.43*o+.11*n},z.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++]={x:l,y:s});return t},z.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 z.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},z.math.Scissors.prototype.doWork=function(){if(this.working){this.timeout=null;for(var e=0,t=[];!this.pq.isEmpty()&&e<this.pointsPerPost;){for(var n=this.pq.pop(),i=(t.push(n),t.push(this.parents[n.y][n.x]),this.visited[n.y][n.x]=!0,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}},z||{}),z=(z.math=z.math||{},z.math.SimpleStats=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}},z.math.SimpleStats.prototype.equals=function(e){return null!==e&&this.getMin()===e.getMin()&&this.getMax()===e.getMax()&&this.getMean()===e.getMean()&&this.getStdDev()===e.getStdDev()},z.math.SimpleStats.prototype.asObject=function(){return{min:this.getMin(),max:this.getMax(),mean:this.getMean(),stdDev:this.getStdDev()}},z.math.FullStats=function(e,t,n,i,r,o,a){z.math.SimpleStats.call(this,e,t,n,i),this.getMedian=function(){return r},this.getP25=function(){return o},this.getP75=function(){return a}},z.math.FullStats.prototype=Object.create(z.math.SimpleStats.prototype),Object.defineProperty(z.math.FullStats.prototype,"constructor",{value:z.math.FullStats,enumerable:!1,writable:!0}),z.math.getStats=function(e,t){return z.math.includesFullStatsFlags(t)?z.math.getFullStats(e):z.math.getSimpleStats(e)},z.math.includesFullStatsFlags=function(e){return null!=e&&e.includes("median","p25","p75")},z.math.getSimpleStats=function(e){for(var t,n=e[0],i=n,r=0,o=0,a=e.length,s=0;s<a;++s)(t=e[s])<n?n=t:i<t&&(i=t),r+=t,o+=t*t;var l=r/a,u=Math.sqrt(o/a-l*l);return new z.math.SimpleStats(n,i,l,u)},z.math.getFullStats=function(e){var t=z.math.getSimpleStats(e),n=(e.sort(function(e,t){return e-t}),z.math.getPercentile(e,.5)),i=z.math.getPercentile(e,.25),e=z.math.getPercentile(e,.75);return new z.math.FullStats(t.getMin(),t.getMax(),t.getMean(),t.getStdDev(),n,i,e)},z.math.getPercentile=function(e,t){if(0===e.length)throw new Error("Empty array provided for percentile calculation.");if(t<0||1<t)throw new Error("Invalid ratio provided for percentile calculation: "+t);if(0===t)return e[0];if(1===t)return e[e.length-1];var t=(e.length-1)*t,n=Math.floor(t),i=e[n];return i+(e[n+1]-i)*(t-n)},z.math.guid=function(){return Math.random().toString(36).substring(2,15)},z||{}),z=(z.math=z.math||{},z.math.Vector3D=function(e,t,n){this.getX=function(){return e},this.getY=function(){return t},this.getZ=function(){return n}},z.math.Vector3D.prototype.equals=function(e){return null!==e&&this.getX()===e.getX()&&this.getY()===e.getY()&&this.getZ()===e.getZ()},z.math.Vector3D.prototype.toString=function(){return"("+this.getX()+", "+this.getY()+", "+this.getZ()+")"},z.math.Vector3D.prototype.norm=function(){return Math.sqrt(this.getX()*this.getX()+this.getY()*this.getY()+this.getZ()*this.getZ())},z.math.Vector3D.prototype.crossProduct=function(e){return new z.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())},z.math.Vector3D.prototype.dotProduct=function(e){return this.getX()*e.getX()+this.getY()*e.getY()+this.getZ()*e.getZ()},z||{}),y=(z.tool=z.tool||{},z.tool.draw=z.tool.draw||{},y||{}),z=(z.tool.draw.defaultArrowLabelText="",z.tool.draw.ArrowFactory=function(){this.getGroupName=function(){return"line-group"},this.getNPoints=function(){return 2},this.getTimeout=function(){return 0}},z.tool.draw.ArrowFactory.prototype.isFactoryGroup=function(e){return this.getGroupName()===e.name()},z.tool.draw.ArrowFactory.prototype.create=function(e,t,n){var i=new z.math.Line(e[0],e[1]),r=new y.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=z.math.getPerpendicularLine(i,e[0],t.scale(10)),a=z.math.getPerpendicularLine(i,e[1],t.scale(10)),e=(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)}),new z.math.Point2D(i.getBegin().getX(),i.getBegin().getY()-10)),e=new z.math.Line(i.getBegin(),e),e=z.math.getAngle(i,e),s=e*Math.PI/180,l=5*t.getScaledStrokeWidth(),s=new y.RegularPolygon({x:i.getBegin().getX()+l*Math.sin(s),y:i.getBegin().getY()+l*Math.cos(s),sides:3,radius:l,rotation:-e,fill:t.getLineColour(),strokeWidth:t.getStrokeWidth(),strokeScaleEnabled:!1,name:"shape-triangle"}),l=new y.Text({fontSize:t.getFontSize(),fontFamily:t.getFontFamily(),fill:t.getLineColour(),padding:t.getTextPadding(),shadowColor:t.getShadowLineColour(),shadowOffset:t.getShadowOffset(),name:"text"}),e="",e=void 0!==z.tool.draw.arrowLabelText?z.tool.draw.arrowLabelText:z.tool.draw.defaultArrowLabelText,u=(l.setText(e),l.meta={textExpr:e,quantification:{}},i.getBegin().getX()>i.getEnd().getX()?0:-1),c=i.getBegin().getY()>i.getEnd().getY()?-1:0,u=new y.Label({x:i.getEnd().getX()+u*l.width(),y:i.getEnd().getY()+c*t.applyZoomScale(15).y,scale:t.applyZoomScale(1),visible:0!==e.length,name:"label"}),i=(u.add(l),u.add(new y.Tag({fill:t.getLineColour(),opacity:t.getTagOpacity()})),new y.Group);return i.name(this.getGroupName()),i.add(u),i.add(s),i.add(r),i.visible(!0),i},z.tool.draw.ArrowFactory.prototype.getAnchors=function(e,t){var n=e.points(),i=[];return i.push(z.tool.draw.getDefaultAnchor(n[0]+e.x(),n[1]+e.y(),"begin",t)),i.push(z.tool.draw.getDefaultAnchor(n[2]+e.x(),n[3]+e.y(),"end",t)),i},z.tool.draw.ArrowFactory.prototype.update=function(e,t,n){var i=e.getParent(),r=i.getChildren(function(e){return"shape"===e.name()})[0],o=i.getChildren(function(e){return"shape-triangle"===e.name()})[0],a=i.getChildren(function(e){return"label"===e.name()})[0],s=i.getChildren(function(e){return"begin"===e.id()})[0],l=i.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 i=s.x()-r.x(),u=s.y()-r.y(),c=l.x()-r.x(),d=l.y()-r.y(),g=(r.points([i,u,c,d]),new z.math.Point2D(s.x(),s.y())),x=new z.math.Point2D(l.x(),l.y()),g=new z.math.Line(g,x),x=new z.math.Point2D(i,u),i=new z.math.Point2D(c,d),S=z.math.getPerpendicularLine(g,x,10),m=z.math.getPerpendicularLine(g,i,10),u=(r.hitFunc(function(e){e.beginPath(),e.moveTo(S.getBegin().getX(),S.getBegin().getY()),e.lineTo(S.getEnd().getX(),S.getEnd().getY()),e.lineTo(m.getEnd().getX(),m.getEnd().getY()),e.lineTo(m.getBegin().getX(),m.getBegin().getY()),e.closePath(),e.fillStrokeShape(this)}),new z.math.Point2D(g.getBegin().getX(),g.getBegin().getY()-10)),c=new z.math.Line(g.getBegin(),u),d=z.math.getAngle(g,c),x=d*Math.PI/180,i=(o.x(g.getBegin().getX()+o.radius()*Math.sin(x)),o.y(g.getBegin().getY()+o.radius()*Math.cos(x)),o.rotation(-d),a.getText()),r=(i.setText(i.meta.textExpr),g.getBegin().getX()>g.getEnd().getX()?0:-1),u=g.getBegin().getY()>g.getEnd().getY()?-1:0,c={x:g.getEnd().getX()+r*i.width(),y:g.getEnd().getY()+u*t.applyZoomScale(15).y};a.position(c)},z||{}),y=(z.tool=z.tool||{},z.tool.draw=z.tool.draw||{},y||{}),z=(z.tool.draw.defaultCircleLabelText="{surface}",z.tool.draw.CircleFactory=function(){this.getGroupName=function(){return"circle-group"},this.getNPoints=function(){return 2},this.getTimeout=function(){return 0}},z.tool.draw.CircleFactory.prototype.isFactoryGroup=function(e){return this.getGroupName()===e.name()},z.tool.draw.CircleFactory.prototype.create=function(e,t,n){var i,r=Math.abs(e[0].getX()-e[1].getX()),o=Math.abs(e[0].getY()-e[1].getY()),r=Math.round(Math.sqrt(r*r+o*o)),o=new z.math.Circle(e[0],r),e=new y.Circle({x:o.getCenter().getX(),y:o.getCenter().getY(),radius:o.getRadius(),stroke:t.getLineColour(),strokeWidth:t.getStrokeWidth(),strokeScaleEnabled:!1,name:"shape"}),r=new y.Text({fontSize:t.getFontSize(),fontFamily:t.getFontFamily(),fill:t.getLineColour(),padding:t.getTextPadding(),shadowColor:t.getShadowLineColour(),shadowOffset:t.getShadowOffset(),name:"text"}),a="",a=void 0!==z.tool.draw.circleLabelText?z.tool.draw.circleLabelText:z.tool.draw.defaultCircleLabelText,n=o.quantify(n,z.utils.getFlags(a)),n=(r.setText(z.utils.replaceFlags(a,n)),r.meta={textExpr:a,quantification:n},new y.Label({x:o.getCenter().getX(),y:o.getCenter().getY(),scale:t.applyZoomScale(1),visible:0!==a.length,name:"label"})),a=(n.add(r),n.add(new y.Tag({fill:t.getLineColour(),opacity:t.getTagOpacity()})),z.tool.draw.debug&&(i=z.tool.draw.getShadowCircle(o)),new y.Group);return a.name(this.getGroupName()),i&&a.add(i),a.add(n),a.add(e),a.visible(!0),a},z.tool.draw.CircleFactory.prototype.getAnchors=function(e,t){var n=e.x(),i=e.y(),e=e.radius(),r=[];return r.push(z.tool.draw.getDefaultAnchor(n-e,i,"left",t)),r.push(z.tool.draw.getDefaultAnchor(n+e,i,"right",t)),r.push(z.tool.draw.getDefaultAnchor(n,i-e,"bottom",t)),r.push(z.tool.draw.getDefaultAnchor(n,i+e,"top",t)),r},z.tool.draw.CircleFactory.prototype.update=function(e,t,n){var i,r,o=e.getParent(),a=o.getChildren(function(e){return"shape"===e.name()})[0],s=o.getChildren(function(e){return"label"===e.name()})[0],l=o.getChildren(function(e){return"left"===e.id()})[0],u=o.getChildren(function(e){return"right"===e.id()})[0],c=o.getChildren(function(e){return"bottom"===e.id()})[0],d=o.getChildren(function(e){return"top"===e.id()})[0],g=(z.tool.draw.debug&&(i=o.getChildren(function(e){return"shadow"===e.name()})[0]),{x:a.x(),y:a.y()});switch(e.id()){case"left":r=g.x-e.x(),l.y(u.y()),u.x(g.x+r),c.y(g.y-r),d.y(g.y+r);break;case"right":r=e.x()-g.x,u.y(l.y()),l.x(g.x-r),c.y(g.y-r),d.y(g.y+r);break;case"bottom":r=g.y-e.y(),c.x(d.x()),l.x(g.x-r),u.x(g.x+r),d.y(g.y+r);break;case"top":r=e.y()-g.y,d.x(c.x()),l.x(g.x-r),u.x(g.x+r),c.y(g.y-r);break;default:z.logger.error("Unhandled anchor id: "+e.id())}a.radius(Math.abs(r));a=new z.math.Point2D(o.x()+g.x,o.y()+g.y),a=new z.math.Circle(a,r);i&&(i.destroy(),o.add(z.tool.draw.getShadowCircle(a,o))),s.position({x:g.x,y:g.y}),z.tool.draw.updateCircleQuantification(o,n)},z.tool.draw.CircleFactory.prototype.updateQuantification=function(e,t){z.tool.draw.updateCircleQuantification(e,t)},z.tool.draw.updateCircleQuantification=function(e,t){var n=e.getChildren(function(e){return"shape"===e.name()})[0],i=e.getChildren(function(e){return"label"===e.name()})[0],e=new z.math.Point2D(e.x()+n.x(),e.y()+n.y()),e=new z.math.Circle(e,n.radius()),n=i.getText(),i=e.quantify(t,z.utils.getFlags(n.meta.textExpr));n.setText(z.utils.replaceFlags(n.meta.textExpr,i)),n.meta.quantification=i},z.tool.draw.getShadowCircle=function(e,t){for(var n=0,i=0,r=(void 0!==t&&(n=t.x(),i=t.y()),new y.Group),o=(r.name("shadow"),e.getRound()),a=0;a<o.length;++a){var s=o[a],l=s[0][0],u=s[0][1],s=s[1][0],u=new y.Rect({x:l-n,y:u-i,width:s-l,height:1,fill:"grey",strokeWidth:0,strokeScaleEnabled:!1,opacity:.3,name:"shadow-element"});r.add(u)}return r},z||{}),y=(z.tool=z.tool||{},z.tool.draw=z.tool.draw||{},y||{}),z=(z.tool.draw.debug=!1,z.tool.Draw=function(d){var g=this,r=!1,o=this.shapeFactoryList=null,a=null,s=null,l=(this.shapeName=0,[]),u=null,x=new z.tool.ShapeEditor(d),S=(x.setDrawEventCallback(f),new y.Group),e=new y.Line({points:[-10,-10,10,10],stroke:"red"}),t=new y.Line({points:[10,-10,-10,10],stroke:"red"}),i=(S.width(20),S.height(20),S.add(e),S.add(t),this.style=d.getStyle(),{});function n(e,t){var n=t.getActiveDrawLayer().getKonvaLayer(),t=(s&&(s.destroy(),s=null),t.getActiveViewLayer().getViewController());(s=o.create(e,g.style,t)).getChildren(z.draw.isNodeNameShape)[0].listening(!1),n.listening(!1),n.add(s),n.draw()}function c(e,t){var n=t.getActiveDrawLayer().getKonvaLayer(),i=(s&&(s.destroy(),s=null),t.getActiveViewLayer().getViewController()),r=t.getActiveDrawLayer().getDrawController(),e=o.create(e,g.style,i);e.id(z.math.guid()),r.getCurrentPosGroup().add(e),n.listening(!0),(a=new z.tool.DrawGroupCommand(e,g.shapeName,n)).onExecute=f,a.onUndo=f,a.execute(),d.addToUndoStack(a),g.setShapeOn(e,t)}function m(e){h(!0,e)}function h(e,t){var n=t.getActiveDrawLayer().getDrawController().getCurrentPosGroup().getChildren();e?n.forEach(function(e){g.setShapeOn(e,t)}):n.forEach(function(e){(e=e).off("mouseover"),e.off("mouseout"),e.draggable(!1),e.off("dragstart.draw"),e.off("dragmove.draw"),e.off("dragend.draw"),e.off("dblclick")}),t.getActiveDrawLayer().getKonvaLayer().draw()}function p(e,t){t=t.getActiveDrawLayer().getKonvaStage();return{x:t.offset().x+e.x/t.scale().x,y:t.offset().y+e.y/t.scale().y}}function f(e){if(void 0!==i[e.type])for(var t=0;t<i[e.type].length;++t)i[e.type][t](e)}this.mousedown=function(e){var t,n,i;r||(t=z.gui.getLayerDetailsFromEvent(e),n=(i=(t=d.getLayerGroupByDivId(t.groupDivId)).getActiveDrawLayer().getKonvaStage()).getIntersection({x:e._x,y:e._y}),g.style.setZoomScale(i.scale()),n?(i=n.getParent().find(".shape")[0])&&i!==x.getShape()&&(x.disable(),x.setShape(i),n=t.getActiveViewLayer().getViewController(),x.setViewController(n),x.enable()):(x.disable(),x.setShape(null),x.setViewController(null),r=!0,o=new g.shapeFactoryList[g.shapeName],l=[],i=t.getActiveViewLayer().displayToPlanePos(e._x,e._y),u=new z.math.Point2D(i.x,i.y),l.push(u)))},this.mousemove=function(e){var t;r&&(t=z.gui.getLayerDetailsFromEvent(e),e=(t=d.getLayerGroupByDivId(t.groupDivId)).getActiveViewLayer().displayToPlanePos(e._x,e._y),(0<Math.abs(e.x-u.getX())||0<Math.abs(e.y-u.getY()))&&(1!==l.length&&void 0!==l[l.length-1].tmp&&l.pop(),(u=new z.math.Point2D(e.x,e.y)).tmp=!0,l.push(u),n(l,t)))},this.mouseup=function(e){r&&(0===l.length?z.logger.warn("Draw mouseup but no points..."):l.length===o.getNPoints()?(e=z.gui.getLayerDetailsFromEvent(e),e=d.getLayerGroupByDivId(e.groupDivId),c(l,e),r=!1):void 0!==l[l.length-1].tmp&&delete l[l.length-1].tmp)},this.dblclick=function(e){void 0===o.getNPoints()&&r&&(0===l.length?z.logger.warn("Draw dblclick but no points..."):(e=z.gui.getLayerDetailsFromEvent(e),e=d.getLayerGroupByDivId(e.groupDivId),c(l,e),r=!1))},this.mouseout=function(e){g.mouseup(e)},this.touchstart=function(e){g.mousedown(e)},this.touchmove=function(e){var t;r&&(t=z.gui.getLayerDetailsFromEvent(e),e=(t=d.getLayerGroupByDivId(t.groupDivId)).getActiveViewLayer().displayToPlanePos(e._x,e._y),(0<Math.abs(e.x-u.getX())||0<Math.abs(e.y-u.getY()))&&(1!==l.length&&l.pop(),u=new z.math.Point2D(e.x,e.y),l.push(u),l.length<o.getNPoints()&&(clearTimeout(this.timer),this.timer=setTimeout(function(){l.push(u)},o.getTimeout())),n(l,t)))},this.touchend=function(e){g.dblclick(e)},this.keydown=function(e){var t,n,i;r||(e.context="dwv.tool.Draw",d.onKeydown(e)),46===e.keyCode&&x.isActive()&&(t=(i=x.getShape().getParent()).getLayer(),n=z.tool.GetShapeDisplayName(i.getChildren(z.draw.isNodeNameShape)[0]),(i=new z.tool.DeleteGroupCommand(i,n,t)).onExecute=f,i.onUndo=f,i.execute(),d.addToUndoStack(i)),27===e.keyCode&&null!==s&&(t=s.getLayer(),s.destroy(),s=null,r=!1,l=[],t.draw())},this.activate=function(e){x.disable(),x.setShape(null),x.setViewController(null),document.body.style.cursor="default";var t=d.getActiveLayerGroup();h(e,t),e?(d.addEventListener("positionchange",function(){m(t)}),this.setFeatures({lineColour:this.style.getLineColour()})):d.removeEventListener("positionchange",function(){m(t)})},this.setShapeOn=function(a,s){a.on("mouseover",function(){document.body.style.cursor="pointer"}),a.on("mouseout",function(){document.body.style.cursor="default"});var l=s.getActiveDrawLayer().getKonvaLayer(),o=(a.draggable(!0),{x:a.x(),y:a.y()}),u=z.tool.GetShapeDisplayName(a.getChildren(z.draw.isNodeNameShape)[0]),c=null;a.on("dragstart.draw",function(){c=a.getChildren(z.draw.isNodeNameShape)[0].stroke();var e=s.getActiveDrawLayer().getKonvaStage(),t=e.scale(),n={x:1/t.x,y:1/t.y};S.x(e.offset().x+e.width()/(2*t.x)),S.y(e.offset().y+e.height()/(15*t.y)),S.scale(n),l.add(S),x.setAnchorsActive(!1),l.draw()}),a.on("dragmove.draw",function(e){for(var t,n=s.getActiveDrawLayer(),i=(z.tool.validateGroupPosition(n.getBaseSize(),this),Object.keys(g.shapeFactoryList)),r=0;r<i.length&&!(t=new g.shapeFactoryList[i[r]]).isFactoryGroup(a);++r);if(void 0===t)throw new Error("Cannot find factory to update quantification.");void 0!==t.updateQuantification&&(n=s.getActiveViewLayer().getViewController(),t.updateQuantification(this,n));var n=p(z.gui.getEventOffset(e.evt)[0],s),e=S.width()*S.scaleX()/2,o=S.height()*S.scaleY()/2;Math.abs(n.x-S.x())<e&&Math.abs(n.y-S.y())<o?(S.getChildren().forEach(function(e){e.stroke("orange")}),a.getChildren(z.draw.canNodeChangeColour).forEach(function(e){e.stroke("red")})):(S.getChildren().forEach(function(e){e.stroke("red")}),a.getChildren(z.draw.canNodeChangeColour).forEach(function(e){void 0!==e.stroke&&e.stroke(c)})),l.draw()}),a.on("dragend.draw",function(e){var t=this.x(),n=this.y();S.remove();var e=p(z.gui.getEventOffset(e.evt)[0],s),i=S.width()*S.scaleX()/2,r=S.height()*S.scaleY()/2;Math.abs(e.x-S.x())<i&&Math.abs(e.y-S.y())<r?(this.x(o.x),this.y(o.y),x.disable(),x.setShape(null),x.setViewController(null),a.getChildren(z.draw.canNodeChangeColour).forEach(function(e){e.stroke(c)}),document.body.style.cursor="default",(i=new z.tool.DeleteGroupCommand(this,u,l)).onExecute=f,i.onUndo=f,i.execute(),d.addToUndoStack(i)):(0===(e={x:t-o.x,y:n-o.y}).x&&0===e.y||((r=new z.tool.MoveGroupCommand(this,u,e,l)).onExecute=f,r.onUndo=f,d.addToUndoStack(r),f({type:"drawmove",id:this.id()})),x.setAnchorsActive(!0),x.resetAnchors()),l.draw(),o={x:this.x(),y:this.y()}}),a.on("dblclick",function(){var t=this.findOne("Label");if(void 0===t)throw new Error("Could not find the shape label.");function e(e){i.meta=e,i.setText(z.utils.replaceFlags(i.meta.textExpr,i.meta.quantification)),t.setVisible(0!==i.meta.textExpr.length),f({type:"drawchange"}),l.draw()}var n,i=t.getText();void 0!==z.openRoiDialog?z.openRoiDialog(i.meta,e):null!==(n=z.prompt("Label",i.meta.textExpr))&&(i.meta.textExpr=n,e(i.meta))})},this.setOptions=function(e){this.shapeFactoryList=e,x.setFactoryList(e)},this.getOptionsType=function(){return"factory"},this.setFeatures=function(e){if(void 0!==e.shapeColour&&this.style.setLineColour(e.shapeColour),void 0!==e.shapeName){if(!this.hasShape(e.shapeName))throw new Error("Unknown shape: '"+e.shapeName+"'");this.shapeName=e.shapeName}},this.init=function(){},this.getEventNames=function(){return["drawcreate","drawchange","drawmove","drawdelete"]},this.addEventListener=function(e,t){void 0===i[e]&&(i[e]=[]),i[e].push(t)},this.removeEventListener=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)}},z.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"}}},z.tool.Draw.prototype.hasShape=function(e){return this.shapeFactoryList[e]},z.tool.getAnchorMin=function(e){var t=e.find(".anchor");if(0!==t.length){for(var n=t[0].x(),i=t[0].y(),r=0;r<t.length;++r)n=Math.min(n,t[r].x()),i=Math.min(i,t[r].y());return{x:n,y:i}}},z.tool.boundNodePosition=function(e,t,n){var i=!1;return e.x()<t.x?(e.x(t.x),i=!0):e.x()>n.x&&(e.x(n.x),i=!0),e.y()<t.y?(e.y(t.y),i=!0):e.y()>n.y&&(e.y(n.y),i=!0),i},z.tool.validateGroupPosition=function(e,t){var n=t.getChildren(z.draw.isNodeNameShape)[0],i=z.tool.getAnchorMin(t);if(void 0===i)return null;var r={x:-i.x,y:-i.y},e={x:e.x-(i.x+Math.abs(n.width())),y:e.y-(i.y+Math.abs(n.height()))};return z.tool.boundNodePosition(t,r,e)},z.tool.validateAnchorPosition=function(e,t){var n=t.getParent(),i={x:-n.x(),y:-n.y()},e={x:e.x-n.x(),y:e.y-n.y()};return z.tool.boundNodePosition(t,i,e)},z||{}),y=(z.tool=z.tool||{},y||{}),z=(z.tool.GetShapeDisplayName=function(e){var t="shape";return e instanceof y.Line?t=4===e.points().length?"line":6===e.points().length?"protractor":"roi":e instanceof y.Rect?t="rectangle":e instanceof y.Ellipse&&(t="ellipse"),t},z.tool.DrawGroupCommand=function(e,t,n,i){var r=void 0!==i&&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()})}},z.tool.DrawGroupCommand.prototype.onExecute=function(e){},z.tool.DrawGroupCommand.prototype.onUndo=function(e){},z.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()})}},z.tool.MoveGroupCommand.prototype.onExecute=function(e){},z.tool.MoveGroupCommand.prototype.onUndo=function(e){},z.tool.ChangeGroupCommand=function(e,t,n,i,r,o,a){this.getName=function(){return"Change-"+e},this.execute=function(){t(i,a,o),r.draw(),this.onExecute({type:"drawchange"})},this.undo=function(){t(n,a,o),r.draw(),this.onUndo({type:"drawchange"})}},z.tool.ChangeGroupCommand.prototype.onExecute=function(e){},z.tool.ChangeGroupCommand.prototype.onUndo=function(e){},z.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()})}},z.tool.DeleteGroupCommand.prototype.onExecute=function(e){},z.tool.DeleteGroupCommand.prototype.onUndo=function(e){},z||{}),y=(z.tool=z.tool||{},z.tool.draw=z.tool.draw||{},y||{}),z=(z.tool.draw.getDefaultAnchor=function(e,t,n,i){return new y.Ellipse({x:e,y:t,stroke:"#999",fill:"rgba(100,100,100,0.7",strokeWidth:i.getStrokeWidth(),strokeScaleEnabled:!1,radius:i.applyZoomScale(3),name:"anchor",id:n,dragOnTop:!1,draggable:!0,visible:!1})},z.tool.ShapeEditor=function(o){var a=null,s=null,l=null,u=null,e=!1,c=null;function n(e){l&&l.getParent()&&l.getParent().find(".anchor").forEach(e)}function t(t){n(function(e){e.visible(t)})}function d(){n(function(e){e.remove()})}function g(){if(l&&l.getLayer())for(var e=l.getParent(),t=s.getAnchors(l,o.getStyle()),n=0;n<t.length;++n)i(t[n]),e.add(t[n])}function x(e){var t=e.getParent(),n=e.id(),i=e.x(),r=e.y(),e={getParent:function(){return t},id:function(){return n},x:function(){return i},y:function(){return r}};return e}function i(e){var i=null,r=z.tool.GetShapeDisplayName(l);e.on("dragstart.edit",function(e){i=x(this),e.cancelBubble=!0}),e.on("dragmove.edit",function(e){var t=z.gui.getLayerDetailsFromEvent(e.evt),t=o.getLayerGroupByDivId(t.groupDivId).getActiveDrawLayer();z.tool.validateAnchorPosition(t.getBaseSize(),this),s.update(this,o.getStyle(),u),this.getLayer()?this.getLayer().draw():z.logger.warn("No layer to draw the anchor!"),e.cancelBubble=!0}),e.on("dragend.edit",function(e){var t=x(this),n=new z.tool.ChangeGroupCommand(r,s.update,i,t,this.getLayer(),u,o.getStyle());n.onExecute=c,n.onUndo=c,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():z.logger.warn("No layer to draw the anchor!")}),e.on("mouseout.edit",function(){this.stroke("#999"),this.getLayer()?this.getLayer().draw():z.logger.warn("No layer to draw the anchor!")})}this.setFactoryList=function(e){a=e},this.setShape=function(e){if(l=e){d();var t=l.getParent(),n=Object.keys(a);s=null;for(var i=0;i<n.length;++i){var r=new a[n[i]];if(r.isFactoryGroup(t)){s=r;break}}if(null===s)throw new Error("Could not find a factory to update shape.");g()}},this.setViewController=function(e){u=e},this.getShape=function(){return l},this.isActive=function(){return e},this.setDrawEventCallback=function(e){c=e},this.enable=function(){e=!0,l&&(t(!0),l.getLayer()&&l.getLayer().draw())},this.disable=function(){e=!1,l&&(t(!1),l.getLayer()&&l.getLayer().draw())},this.resetAnchors=function(){d(),g(),t(!0)},this.setAnchorsActive=function(e){n(e?function(e){i(e)}:function(e){(e=e).off("dragstart.edit"),e.off("dragmove.edit"),e.off("dragend.edit"),e.off("mousedown touchstart"),e.off("mouseover.edit"),e.off("mouseout.edit")})}},z||{}),y=(z.tool=z.tool||{},z.tool.draw=z.tool.draw||{},y||{}),z=(z.tool.draw.defaultEllipseLabelText="{surface}",z.tool.draw.EllipseFactory=function(){this.getGroupName=function(){return"ellipse-group"},this.getNPoints=function(){return 2},this.getTimeout=function(){return 0}},z.tool.draw.EllipseFactory.prototype.isFactoryGroup=function(e){return this.getGroupName()===e.name()},z.tool.draw.EllipseFactory.prototype.create=function(e,t,n){var i,r=Math.abs(e[0].getX()-e[1].getX()),o=Math.abs(e[0].getY()-e[1].getY()),e=new z.math.Ellipse(e[0],r,o),r=new y.Ellipse({x:e.getCenter().getX(),y:e.getCenter().getY(),radius:{x:e.getA(),y:e.getB()},stroke:t.getLineColour(),strokeWidth:t.getStrokeWidth(),strokeScaleEnabled:!1,name:"shape"}),o=new y.Text({fontSize:t.getFontSize(),fontFamily:t.getFontFamily(),fill:t.getLineColour(),padding:t.getTextPadding(),shadowColor:t.getShadowLineColour(),shadowOffset:t.getShadowOffset(),name:"text"}),a="",a=void 0!==z.tool.draw.ellipseLabelText?z.tool.draw.ellipseLabelText:z.tool.draw.defaultEllipseLabelText,n=e.quantify(n,z.utils.getFlags(a)),n=(o.setText(z.utils.replaceFlags(a,n)),o.meta={textExpr:a,quantification:n},new y.Label({x:e.getCenter().getX(),y:e.getCenter().getY(),scale:t.applyZoomScale(1),visible:0!==a.length,name:"label"})),a=(n.add(o),n.add(new y.Tag({fill:t.getLineColour(),opacity:t.getTagOpacity()})),z.tool.draw.debug&&(i=z.tool.draw.getShadowEllipse(e)),new y.Group);return a.name(this.getGroupName()),i&&a.add(i),a.add(n),a.add(r),a.visible(!0),a},z.tool.draw.EllipseFactory.prototype.getAnchors=function(e,t){var n=e.x(),i=e.y(),e=e.radius(),r=[];return r.push(z.tool.draw.getDefaultAnchor(n-e.x,i-e.y,"topLeft",t)),r.push(z.tool.draw.getDefaultAnchor(n+e.x,i-e.y,"topRight",t)),r.push(z.tool.draw.getDefaultAnchor(n+e.x,i+e.y,"bottomRight",t)),r.push(z.tool.draw.getDefaultAnchor(n-e.x,i+e.y,"bottomLeft",t)),r},z.tool.draw.EllipseFactory.prototype.update=function(e,t,n){var i,r=e.getParent(),o=r.getChildren(function(e){return"shape"===e.name()})[0],a=r.getChildren(function(e){return"label"===e.name()})[0],s=r.getChildren(function(e){return"topLeft"===e.id()})[0],l=r.getChildren(function(e){return"topRight"===e.id()})[0],u=r.getChildren(function(e){return"bottomRight"===e.id()})[0],c=r.getChildren(function(e){return"bottomLeft"===e.id()})[0];switch(z.tool.draw.debug&&(i=r.getChildren(function(e){return"shadow"===e.name()})[0]),e.id()){case"topLeft":s.x(e.x()),s.y(e.y()),l.y(e.y()),c.x(e.x());break;case"topRight":l.x(e.x()),l.y(e.y()),s.y(e.y()),u.x(e.x());break;case"bottomRight":u.x(e.x()),u.y(e.y()),c.y(e.y()),l.x(e.x());break;case"bottomLeft":c.x(e.x()),c.y(e.y()),u.y(e.y()),s.x(e.x());break;default:z.logger.error("Unhandled anchor id: "+e.id())}var d=(l.x()-s.x())/2,g=(u.y()-l.y())/2,x={x:s.x()+d,y:l.y()+g},d=(o.position(x),{x:Math.abs(d),y:Math.abs(g)}),g=(o.radius(d),new z.math.Point2D(r.x()+x.x,r.y()+x.y)),o=new z.math.Ellipse(g,d.x,d.y);i&&(i.destroy(),r.add(z.tool.draw.getShadowEllipse(o,r))),a.position({x:x.x,y:x.y}),z.tool.draw.updateEllipseQuantification(r,n)},z.tool.draw.EllipseFactory.prototype.updateQuantification=function(e,t){z.tool.draw.updateEllipseQuantification(e,t)},z.tool.draw.updateEllipseQuantification=function(e,t){var n=e.getChildren(function(e){return"shape"===e.name()})[0],i=e.getChildren(function(e){return"label"===e.name()})[0],e=new z.math.Point2D(e.x()+n.x(),e.y()+n.y()),e=new z.math.Ellipse(e,n.radius().x,n.radius().y),n=i.getText(),i=e.quantify(t,z.utils.getFlags(n.meta.textExpr));n.setText(z.utils.replaceFlags(n.meta.textExpr,i)),n.meta.quantification=i},z.tool.draw.getShadowEllipse=function(e,t){for(var n=0,i=0,r=(void 0!==t&&(n=t.x(),i=t.y()),new y.Group),o=(r.name("shadow"),e.getRound()),a=0;a<o.length;++a){var s=o[a],l=s[0][0],u=s[0][1],s=s[1][0],u=new y.Rect({x:l-n,y:u-i,width:s-l,height:1,fill:"grey",strokeWidth:0,strokeScaleEnabled:!1,opacity:.3,name:"shadow-element"});r.add(u)}return r},z||{}),z=(z.tool=z.tool||{},z.tool.filter=z.tool.filter||{},z.tool.Filter=function(n){this.filterList=null,this.selectedFilter=0;var i=new z.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.getOptionsType=function(){return"instance"},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.getEventNames=function(){return["filterrun","filterundo"]},this.addEventListener=function(e,t){i.add(e,t)},this.removeEventListener=function(e,t){i.remove(e,t)}},z.tool.Filter.prototype.getHelpKeys=function(){return{title:"tool.Filter.name",brief:"tool.Filter.brief"}},z.tool.Filter.prototype.getSelectedFilter=function(){return this.selectedFilter},z.tool.Filter.prototype.setFeatures=function(e){if(void 0!==e.filterName){if(!this.hasFilter(e.filterName))throw new Error("Unknown filter: '"+e.filterName+"'");this.selectedFilter&&this.selectedFilter.activate(!1),this.selectedFilter=this.filterList[e.filterName],this.selectedFilter.activate(!0)}var t;void 0!==e.run&&e.run&&(t={},void 0!==e.runArgs&&(t=e.runArgs),this.getSelectedFilter().run(t))},z.tool.Filter.prototype.getFilterList=function(){return this.filterList},z.tool.Filter.prototype.hasFilter=function(e){return this.filterList[e]},z.tool.filter.Threshold=function(t){var n=new z.image.filter.Threshold,i=!0,r=new z.utils.ListenerHandler;function o(e){r.fireEvent(e)}this.activate=function(e){e&&(i=!0)},this.init=function(){},this.run=function(e){n.setMin(e.min),n.setMax(e.max),i&&(n.setOriginalImage(t.getLastImage()),i=!1);e=new z.tool.RunFilterCommand(n,t);e.onExecute=o,e.onUndo=o,e.execute(),t.addToUndoStack(e)},this.addEventListener=function(e,t){r.add(e,t)},this.removeEventListener=function(e,t){r.remove(e,t)}},z.tool.filter.Sharpen=function(n){var i=new z.utils.ListenerHandler;function r(e){i.fireEvent(e)}this.activate=function(e){},this.init=function(){},this.run=function(e){var t=new z.image.filter.Sharpen,t=(t.setOriginalImage(n.getLastImage()),new z.tool.RunFilterCommand(t,n));t.onExecute=r,t.onUndo=r,t.execute(),n.addToUndoStack(t)},this.addEventListener=function(e,t){i.add(e,t)},this.removeEventListener=function(e,t){i.remove(e,t)}},z.tool.filter.Sobel=function(n){var i=new z.utils.ListenerHandler;function r(e){i.fireEvent(e)}this.activate=function(e){},this.init=function(){},z.tool.filter.Sobel.prototype.run=function(e){var t=new z.image.filter.Sobel,t=(t.setOriginalImage(n.getLastImage()),new z.tool.RunFilterCommand(t,n));t.onExecute=r,t.onUndo=r,t.execute(),n.addToUndoStack(t)},this.addEventListener=function(e,t){i.add(e,t)},this.removeEventListener=function(e,t){i.remove(e,t)}},z.tool.RunFilterCommand=function(t,n){this.getName=function(){return"Filter-"+t.getName()},this.execute=function(){n.setLastImage(t.update()),n.render(0);var e={type:"filterrun",id:this.getName()};this.onExecute(e)},this.undo=function(){n.setLastImage(t.getOriginalImage()),n.render(0);var e={type:"filterundo",id:this.getName()};this.onUndo(e)}},z.tool.RunFilterCommand.prototype.onExecute=function(e){},z.tool.RunFilterCommand.prototype.onUndo=function(e){},z||{}),v=(z.tool=z.tool||{},v||{}),z=(z.tool.Floodfill=function(r){function o(e){var t=z.gui.getLayerDetailsFromEvent(e);return{x:(t=r.getLayerGroupByDivId(t.groupDivId).getActiveViewLayer().displayToPlaneIndex(e._x,e._y)).get(0),y:t.get(1)}}function d(e,t,n){return!!(h=y(e,t))&&(e=new z.tool.draw.RoiFactory,(m=e.create(h,a.style)).id(z.math.guid()),(t=n.getActiveDrawLayer()).getDrawController().getCurrentPosGroup().add(m),(i=new z.tool.DrawGroupCommand(m,"floodfill",t.getKonvaLayer())).onExecute=D,i.onUndo=D,i.execute(),r.addToUndoStack(i),!0)}var g,e,s=5,l=0,u=2e3,c=null,x=null,S=null,a=this,i=(this.started=!1,null),m=null,h=null,p=[],n=!1,f=(this.style=new z.gui.Style,new z.utils.ListenerHandler),y=(this.setExtend=function(e){n=e},this.getExtend=function(){return n},function(e,t,n){p=[];var i={data:c.data,width:c.width,height:c.height,bytes:4},r=(x=v.floodFill(i,e.x,e.y,t),x=v.gaussBlurOnlyBorder(x,s),v.traceContours(x));if(0<(r=v.simplifyContours(r,l,u)).length&&r[0].points[0].x){if(n)return r[0].points;for(var o=0,a=r[0].points.length;o<a;o++)p.push(new z.math.Point2D(r[0].points[o].x,r[0].points[o].y));return p}return!1});function D(e){f.fireEvent(e)}this.extend=function(e,t,n){if(!g)throw"'initialpoint' not found. User must click before use extend!";m&&m.destroy();for(var i=n.getActiveViewLayer().getViewController(),r=i.getCurrentIndex(),o=i.getImageSize(),a=S||10,s=r.get(2),l=t||o.get(2);s<l&&d(g,a,n);s++)i.incrementIndex(2);i.setCurrentPosition(r);for(var u=r.get(2),c=e||0;c<u&&d(g,a,n);u--)i.decrementIndex(2);i.setCurrentPosition(r)},this.modifyThreshold=function(i,r){if(r||!m)throw"No shape found";r=m.getChildren(function(e){return"shape"===e.name()})[0],clearTimeout(e),e=setTimeout(function(){if(!(h=y(g,i,!0)))return!1;for(var e=[],t=0,n=h.length;t<n;++t)e.push(h[t].x),e.push(h[t].y);r.setPoints(e),r.getLayer().draw(),a.onThresholdChange(i)},100)},this.onThresholdChange=function(e){},this.mousedown=function(e){var t=z.gui.getLayerDetailsFromEvent(e),t=r.getLayerGroupByDivId(t.groupDivId),n=t.getActiveViewLayer(),i=t.getActiveDrawLayer();(c=n.getImageData())?(a.style.setZoomScale(i.getKonvaLayer().getAbsoluteScale()),a.started=!0,g=o(e),d(g,10,t),a.onThresholdChange(10)):z.logger.error("No image found")},this.mousemove=function(e){a.started&&(e=o(e),S=(S=Math.round(Math.sqrt(Math.pow(g.x-e.x,2)+Math.pow(g.y-e.y,2))/2))<10?10:S-10,a.modifyThreshold(S))},this.mouseup=function(e){var t;a.started=!1,n&&(t=z.gui.getLayerDetailsFromEvent(event),t=r.getLayerGroupByDivId(t.groupDivId),a.extend(t))},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.keydown=function(e){e.context="dwv.tool.Floodfill",r.onKeydown(e)},this.activate=function(e){e&&(this.style.setBaseScale(r.getBaseScale()),this.setFeatures({shapeColour:this.style.getLineColour()}))},this.init=function(){},this.getEventNames=function(){return["drawcreate","drawchange","drawmove","drawdelete"]},this.addEventListener=function(e,t){f.add(e,t)},this.removeEventListener=function(e,t){f.remove(e,t)}},z.tool.Floodfill.prototype.getHelpKeys=function(){return{title:"tool.Floodfill.name",brief:"tool.Floodfill.brief",mouse:{click:"tool.Floodfill.click"},touch:{tap:"tool.Floodfill.tap"}}},z.tool.Floodfill.prototype.setFeatures=function(e){void 0!==e.shapeColour&&this.style.setLineColour(e.shapeColour)},z||{}),y=(z.tool=z.tool||{},z.tool.draw=z.tool.draw||{},y||{});z.tool.draw.defaultFreeHandLabelText="",z.tool.draw.FreeHandFactory=function(){this.getGroupName=function(){return"freeHand-group"},this.getNPoints=function(){},this.getTimeout=function(){return 25}},z.tool.draw.FreeHandFactory.prototype.isFactoryGroup=function(e){return this.getGroupName()===e.name()},z.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 y.Line({points:i,stroke:t.getLineColour(),strokeWidth:t.getStrokeWidth(),strokeScaleEnabled:!1,name:"shape",tension:.5}),a=new y.Text({fontSize:t.getFontSize(),fontFamily:t.getFontFamily(),fill:t.getLineColour(),name:"text"}),s="",s=void 0!==z.tool.draw.freeHandLabelText?z.tool.draw.freeHandLabelText:z.tool.draw.defaultFreeHandLabelText,s=(a.setText(s),a.meta={textExpr:s,quantification:{}},new y.Label({x:e[0].getX(),y:e[0].getY()+t.scale(10),scale:t.applyZoomScale(1),visible:0!==s.length,name:"label"})),a=(s.add(a),s.add(new y.Tag({fill:t.getLineColour(),opacity:t.getTagOpacity()})),new y.Group);return a.name(this.getGroupName()),a.add(s),a.add(o),a.visible(!0),a},z.tool.draw.FreeHandFactory.prototype.getAnchors=function(e,t){for(var n=e.points(),i=[],r=0;r<n.length;r+=2){var o=n[r]+e.x(),a=n[r+1]+e.y(),s=r;i.push(z.tool.draw.getDefaultAnchor(o,a,s,t))}return i},z.tool.draw.FreeHandFactory.prototype.update=function(t,e,n){var i=t.getParent(),r=i.getChildren(function(e){return"shape"===e.name()})[0],o=i.getChildren(function(e){return"label"===e.name()})[0],i=i.getChildren(function(e){return e.id()===t.id()})[0],i=(i.x(t.x()),i.y(t.y()),r.points()),a=(i[t.id()]=t.x()-r.x(),i[t.id()+1]=t.y()-r.y(),r.points(i.concat()),o.getText()),a=(a.setText(a.meta.textExpr),{x:i[0]+r.x(),y:i[1]+r.y()+e.scale(10)});o.position(a)};var z,z}(z=z||{}).tool=z.tool||{},z.tool.Livewire=function(l){var u=this,c=(this.started=!1,null),d=null,g=(this.style=new z.gui.Style,new z.math.Path),x=new z.math.Path,S=[],n=new z.utils.ListenerHandler;function r(e){for(var t=e.get(1),n=0;n<t;++n)S[n]=[]}var m=new z.math.Scissors;function o(e){n.fireEvent(e)}this.mousedown=function(e){var t=z.gui.getLayerDetailsFromEvent(e),t=l.getLayerGroupByDivId(t.groupDivId),n=t.getActiveViewLayer(),i=n.getViewController().getImageSize(),n=n.displayToPlaneIndex(e._x,e._y);u.started?Math.abs(n.get(0)-u.x0)<5&&Math.abs(n.get(1)-u.y0)<5?(u.mousemove(e),c.onExecute=o,c.onUndo=o,z.logger.debug("[livewire] finialise path."),l.addToUndoStack(c),u.started=!1):(g=x,r(i),e={x:n.get(0),y:n.get(1)},m.doTraining(e),g.addControlPoint(x.getPoint(0))):(u.started=!0,u.x0=n.get(0),u.y0=n.get(1),g=new z.math.Path,x=new z.math.Path,r(i),d=null,e=t.getActiveDrawLayer(),u.style.setZoomScale(e.getKonvaLayer().getAbsoluteScale()),i={x:n.get(0),y:n.get(1)},m.doTraining(i),t=new z.math.Point2D(n.get(0),n.get(1)),g.addPoint(t),g.addControlPoint(t))},this.mousemove=function(e){if(u.started){var t,n=z.gui.getLayerDetailsFromEvent(e),n=l.getLayerGroupByDivId(n.groupDivId),e=n.getActiveViewLayer().displayToPlaneIndex(e._x,e._y),i={x:e.get(0),y:e.get(1)},r=(m.setPoint(i),!1);for(z.logger.debug("[livewire] getting ready...");!S[i.y][i.x]&&!r;)if(0===(t=m.doWork()).length)r=!0;else for(var o=0;o<t.length-1;o+=2){var a=t[o],s=t[o+1];S[a.y][a.x]=s}for(z.logger.debug("[livewire] ready!"),x=new z.math.Path,r=!1;i&&!r;)x.addPoint(new z.math.Point2D(i.x,i.y)),S[i.y]&&S[i.y][i.x]?i=S[i.y][i.x]:r=!0;x.appenPath(g),d&&d.destroy();e=new z.tool.draw.RoiFactory,e=((d=e.create(x.pointArray,u.style)).id(z.math.guid()),n.getActiveDrawLayer());e.getDrawController().getCurrentPosGroup().add(d),(c=new z.tool.DrawGroupCommand(d,"livewire",e.getKonvaLayer())).execute()}},this.mouseup=function(e){},this.mouseout=function(e){u.mouseup(e)},this.dblclick=function(e){z.logger.debug("[livewire] 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=(e=l.getActiveLayerGroup().getActiveViewLayer()).getViewController().getImageSize(),m.setDimensions(t.get(0),t.get(1)),m.setData(e.getImageData().data),this.style.setBaseScale(l.getBaseScale()),this.setFeatures({shapeColour:this.style.getLineColour()}))},this.init=function(){},this.getEventNames=function(){return["drawcreate","drawchange","drawmove","drawdelete"]},this.addEventListener=function(e,t){n.add(e,t)},this.removeEventListener=function(e,t){n.remove(e,t)}},z.tool.Livewire.prototype.getHelpKeys=function(){return{title:"tool.Livewire.name",brief:"tool.Livewire.brief"}},z.tool.Livewire.prototype.setFeatures=function(e){void 0!==e.shapeColour&&this.style.setLineColour(e.shapeColour)},(z=z||{}).tool=z.tool||{},z.tool.Opacity=function(r){var o=this;this.started=!1,this.mousedown=function(e){o.started=!0,o.x0=e._x,o.y0=e._y},this.mousemove=function(e){var t,n,i;o.started&&(t=e._x-o.x0,15<Math.abs(t)&&(n=z.gui.getLayerDetailsFromEvent(e),i=(n=r.getLayerGroupByDivId(n.groupDivId).getActiveViewLayer()).getOpacity(),n.setOpacity(i+t/200),n.draw(),o.x0=e._x))},this.mouseup=function(e){o.started&&(o.started=!1)},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.Opacity",r.onKeydown(e)},this.activate=function(e){},this.init=function(){}},z.tool.Opacity.prototype.getHelpKeys=function(){return{title:"tool.Opacity.name",brief:"tool.Opacity.brief",mouse:{mouse_drag:"tool.Opacity.mouse_drag"},touch:{touch_drag:"tool.Opacity.touch_drag"}}};var z,y=((z=z||{}).tool=z.tool||{},z.tool.draw=z.tool.draw||{},y||{});z.tool.draw.defaultProtractorLabelText="{angle}",z.tool.draw.ProtractorFactory=function(){this.getGroupName=function(){return"protractor-group"},this.getNPoints=function(){return 3},this.getTimeout=function(){return 500}},z.tool.draw.ProtractorFactory.prototype.isFactoryGroup=function(e){return this.getGroupName()===e.name()},z.tool.draw.ProtractorFactory.prototype.create=function(t,e,n){for(var i=new z.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,d,g,x=new y.Line({points:r,stroke:e.getLineColour(),strokeWidth:e.getStrokeWidth(),strokeScaleEnabled:!1,name:"shape"}),S=new y.Group;return S.name(this.getGroupName()),3===t.length&&(a=new z.math.Line(t[1],t[2]),x.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=z.math.getAngle(i,a),l=i.getInclination(),180<s&&(l+=s=360-s),u=new y.Text({fontSize:e.getFontSize(),fontFamily:e.getFontFamily(),fill:e.getLineColour(),padding:e.getTextPadding(),shadowColor:e.getShadowLineColour(),shadowOffset:e.getShadowOffset(),name:"text"}),g="",g=void 0!==z.tool.draw.protractorLabelText?z.tool.draw.protractorLabelText:z.tool.draw.defaultProtractorLabelText,c={angle:{value:s,unit:z.i18n("unit.degree")}},u.setText(z.utils.replaceFlags(g,c)),u.meta={textExpr:g,quantification:c},c=(i.getMidpoint().getX()+a.getMidpoint().getX())/2,d=(i.getMidpoint().getY()+a.getMidpoint().getY())/2,(c=new y.Label({x:c,y:d-e.applyZoomScale(15).y,scale:e.applyZoomScale(1),visible:0!==g.length,name:"label"})).add(u),c.add(new y.Tag({fill:e.getLineColour(),opacity:e.getTagOpacity()})),d=33*Math.min(i.getLength(),a.getLength())/100,g=new y.Arc({innerRadius:d,outerRadius:d,stroke:e.getLineColour(),strokeWidth:e.getStrokeWidth(),strokeScaleEnabled:!1,angle:s,rotation:-l,x:t[1].getX(),y:t[1].getY(),name:"shape-arc"}),S.add(c),S.add(g)),S.add(x),S.visible(!0),S},z.tool.draw.ProtractorFactory.prototype.getAnchors=function(e,t){var n=e.points(),i=[];return i.push(z.tool.draw.getDefaultAnchor(n[0]+e.x(),n[1]+e.y(),"begin",t)),i.push(z.tool.draw.getDefaultAnchor(n[2]+e.x(),n[3]+e.y(),"mid",t)),i.push(z.tool.draw.getDefaultAnchor(n[4]+e.x(),n[5]+e.y(),"end",t)),i},z.tool.draw.ProtractorFactory.prototype.update=function(e,t,n){var i=e.getParent(),r=i.getChildren(function(e){return"shape"===e.name()})[0],o=i.getChildren(function(e){return"label"===e.name()})[0],a=i.getChildren(function(e){return"shape-arc"===e.name()})[0],s=i.getChildren(function(e){return"begin"===e.id()})[0],l=i.getChildren(function(e){return"mid"===e.id()})[0],u=i.getChildren(function(e){return"end"===e.id()})[0];switch(e.id()){case"begin":s.x(e.x()),s.y(e.y());break;case"mid":l.x(e.x()),l.y(e.y());break;case"end":u.x(e.x()),u.y(e.y())}var c=s.x()-r.x(),d=s.y()-r.y(),g=l.x()-r.x(),x=l.y()-r.y(),S=u.x()-r.x(),m=u.y()-r.y(),i=(r.points([c,d,g,x,S,m]),r.hitFunc(function(e){e.beginPath(),e.moveTo(c,d),e.lineTo(g,x),e.lineTo(S,m),e.closePath(),e.fillStrokeShape(this)}),new z.math.Point2D(s.x(),s.y())),r=new z.math.Point2D(l.x(),l.y()),h=new z.math.Point2D(u.x(),u.y()),i=new z.math.Line(i,r),r=new z.math.Line(r,h),h=z.math.getAngle(i,r),p=i.getInclination(),f=(180<h&&(p+=h=360-h),o.getText()),y={angle:{value:h,unit:z.i18n("unit.degree")}};f.setText(z.utils.replaceFlags(f.meta.textExpr,y)),f.meta.quantification=y;f={x:(i.getMidpoint().getX()+r.getMidpoint().getX())/2,y:(i.getMidpoint().getY()+r.getMidpoint().getY())/2-t.applyZoomScale(15).y},o.position(f),y=33*Math.min(i.getLength(),r.getLength())/100,a.innerRadius(y),a.outerRadius(y),a.angle(h),a.rotation(-p),t={x:l.x(),y:l.y()};a.position(t)};var z,y=((z=z||{}).tool=z.tool||{},z.tool.draw=z.tool.draw||{},y||{});z.tool.draw.defaultRectangleLabelText="{surface}",z.tool.draw.RectangleFactory=function(){this.getGroupName=function(){return"rectangle-group"},this.getNPoints=function(){return 2},this.getTimeout=function(){return 0}},z.tool.draw.RectangleFactory.prototype.isFactoryGroup=function(e){return this.getGroupName()===e.name()},z.tool.draw.RectangleFactory.prototype.create=function(e,t,n){var i,e=new z.math.Rectangle(e[0],e[1]),r=new y.Rect({x:e.getBegin().getX(),y:e.getBegin().getY(),width:e.getWidth(),height:e.getHeight(),stroke:t.getLineColour(),strokeWidth:t.getStrokeWidth(),strokeScaleEnabled:!1,name:"shape"}),o=new y.Text({fontSize:t.getFontSize(),fontFamily:t.getFontFamily(),fill:t.getLineColour(),padding:t.getTextPadding(),shadowColor:t.getShadowLineColour(),shadowOffset:t.getShadowOffset(),name:"text"}),a="",a=void 0!==z.tool.draw.rectangleLabelText?z.tool.draw.rectangleLabelText:z.tool.draw.defaultRectangleLabelText,n=e.quantify(n,z.utils.getFlags(a)),n=(o.setText(z.utils.replaceFlags(a,n)),o.meta={textExpr:a,quantification:n},new y.Label({x:e.getBegin().getX(),y:e.getEnd().getY(),scale:t.applyZoomScale(1),visible:0!==a.length,name:"label"})),a=(n.add(o),n.add(new y.Tag({fill:t.getLineColour(),opacity:t.getTagOpacity()})),z.tool.draw.debug&&(i=z.tool.draw.getShadowRectangle(e)),new y.Group);return a.name(this.getGroupName()),i&&a.add(i),a.add(n),a.add(r),a.visible(!0),a},z.tool.draw.RectangleFactory.prototype.getAnchors=function(e,t){var n=e.x(),i=e.y(),r=e.width(),e=e.height(),o=[];return o.push(z.tool.draw.getDefaultAnchor(n,i,"topLeft",t)),o.push(z.tool.draw.getDefaultAnchor(n+r,i,"topRight",t)),o.push(z.tool.draw.getDefaultAnchor(n+r,i+e,"bottomRight",t)),o.push(z.tool.draw.getDefaultAnchor(n,i+e,"bottomLeft",t)),o},z.tool.draw.RectangleFactory.prototype.update=function(e,t,n){var i,r=e.getParent(),o=r.getChildren(function(e){return"shape"===e.name()})[0],a=r.getChildren(function(e){return"label"===e.name()})[0],s=r.getChildren(function(e){return"topLeft"===e.id()})[0],l=r.getChildren(function(e){return"topRight"===e.id()})[0],u=r.getChildren(function(e){return"bottomRight"===e.id()})[0],c=r.getChildren(function(e){return"bottomLeft"===e.id()})[0];switch(z.tool.draw.debug&&(i=r.getChildren(function(e){return"shadow"===e.name()})[0]),e.id()){case"topLeft":s.x(e.x()),s.y(e.y()),l.y(e.y()),c.x(e.x());break;case"topRight":l.x(e.x()),l.y(e.y()),s.y(e.y()),u.x(e.x());break;case"bottomRight":u.x(e.x()),u.y(e.y()),c.y(e.y()),l.x(e.x());break;case"bottomLeft":c.x(e.x()),c.y(e.y()),u.y(e.y()),s.x(e.x());break;default:z.logger.error("Unhandled anchor id: "+e.id())}o.position(s.position());var d,g=l.x()-s.x(),x=c.y()-s.y(),o=(g&&x&&o.size({width:g,height:x}),new z.math.Point2D(r.x()+s.x(),r.y()+s.y())),g=new z.math.Point2D(r.x()+u.x(),r.y()+u.y()),x=new z.math.Rectangle(o,g),o=(i&&(g=(o=x.getRound()).max.getX()-o.min.getX(),d=o.max.getY()-o.min.getY(),i.position({x:o.min.getX()-r.x(),y:o.min.getY()-r.y()}),i.size({width:g,height:d})),{x:x.getBegin().getX()-r.x(),y:x.getEnd().getY()-r.y()});a.position(o),z.tool.draw.updateRectangleQuantification(r,n)},z.tool.draw.RectangleFactory.prototype.updateQuantification=function(e,t){z.tool.draw.updateRectangleQuantification(e,t)},z.tool.draw.updateRectangleQuantification=function(e,t){var n=e.getChildren(function(e){return"shape"===e.name()})[0],i=e.getChildren(function(e){return"label"===e.name()})[0],e=new z.math.Point2D(e.x()+n.x(),e.y()+n.y()),n=new z.math.Point2D(e.getX()+n.width(),e.getY()+n.height()),e=new z.math.Rectangle(e,n),n=i.getText(),i=e.quantify(t,z.utils.getFlags(n.meta.textExpr));n.setText(z.utils.replaceFlags(n.meta.textExpr,i)),n.meta.quantification=i},z.tool.draw.getShadowRectangle=function(e){var e=e.getRound(),t=e.max.getX()-e.min.getX(),n=e.max.getY()-e.min.getY();return new y.Rect({x:e.min.getX(),y:e.min.getY(),width:t,height:n,fill:"grey",strokeWidth:0,strokeScaleEnabled:!1,opacity:.3,name:"shadow"})};var z,y=((z=z||{}).tool=z.tool||{},z.tool.draw=z.tool.draw||{},y||{});z.tool.draw.defaultRoiLabelText="",z.tool.draw.RoiFactory=function(){this.getGroupName=function(){return"roi-group"},this.getNPoints=function(){},this.getTimeout=function(){return 100}},z.tool.draw.RoiFactory.prototype.isFactoryGroup=function(e){return this.getGroupName()===e.name()},z.tool.draw.RoiFactory.prototype.create=function(e,t,n){for(var i=new z.math.ROI,r=(i.addPoints(e),[]),o=0;o<i.getLength();++o)r.push(i.getPoint(o).getX()),r.push(i.getPoint(o).getY());var e=new y.Line({points:r,stroke:t.getLineColour(),strokeWidth:t.getStrokeWidth(),strokeScaleEnabled:!1,name:"shape",closed:!0}),a=new y.Text({fontSize:t.getFontSize(),fontFamily:t.getFontFamily(),fill:t.getLineColour(),name:"text"}),s="",s=void 0!==z.tool.draw.roiLabelText?z.tool.draw.roiLabelText:z.tool.draw.defaultRoiLabelText,s=(a.setText(s),a.meta={textExpr:s,quantification:{}},new y.Label({x:i.getPoint(0).getX(),y:i.getPoint(0).getY()+t.scale(10),scale:t.applyZoomScale(1),visible:0!==s.length,name:"label"})),a=(s.add(a),s.add(new y.Tag({fill:t.getLineColour(),opacity:t.getTagOpacity()})),new y.Group);return a.name(this.getGroupName()),a.add(s),a.add(e),a.visible(!0),a},z.tool.draw.RoiFactory.prototype.getAnchors=function(e,t){for(var n=e.points(),i=[],r=0;r<n.length;r+=2){var o=n[r]+e.x(),a=n[r+1]+e.y(),s=r;i.push(z.tool.draw.getDefaultAnchor(o,a,s,t))}return i},z.tool.draw.RoiFactory.prototype.update=function(t,e,n){var i=t.getParent(),r=i.getChildren(function(e){return"shape"===e.name()})[0],o=i.getChildren(function(e){return"label"===e.name()})[0],i=i.getChildren(function(e){return e.id()===t.id()})[0],i=(i.x(t.x()),i.y(t.y()),r.points()),a=(i[t.id()]=t.x()-r.x(),i[t.id()+1]=t.y()-r.y(),r.points(i),o.getText()),a=(a.setText(a.meta.textExpr),{x:i[0]+r.x(),y:i[1]+r.y()+e.scale(10)});o.position(a)};var z,y=((z=z||{}).tool=z.tool||{},z.tool.draw=z.tool.draw||{},y||{}),z,z,z,z,z;z.tool.draw.defaultRulerLabelText="{length}",z.tool.draw.RulerFactory=function(){this.getGroupName=function(){return"ruler-group"},this.getNPoints=function(){return 2},this.getTimeout=function(){return 0}},z.tool.draw.RulerFactory.prototype.isFactoryGroup=function(e){return this.getGroupName()===e.name()},z.tool.draw.RulerFactory.prototype.create=function(e,t,n){var i=new z.math.Line(e[0],e[1]),r=new y.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=t.scale(10),a=z.math.getPerpendicularLine(i,e[0],o),s=new y.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=z.math.getPerpendicularLine(i,e[1],o),e=new y.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"}),o=(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)}),new y.Text({fontSize:t.getFontSize(),fontFamily:t.getFontFamily(),fill:t.getLineColour(),padding:t.getTextPadding(),shadowColor:t.getShadowLineColour(),shadowOffset:t.getShadowOffset(),name:"text"})),u="",u=void 0!==z.tool.draw.rulerLabelText?z.tool.draw.rulerLabelText:z.tool.draw.defaultRulerLabelText,n=i.quantify(n,z.utils.getFlags(u)),n=(o.setText(z.utils.replaceFlags(u,n)),o.meta={textExpr:u,quantification:n},i.getBegin().getX()>i.getEnd().getX()?0:-1),c=i.getBegin().getY()>i.getEnd().getY()?-1:0,n=new y.Label({x:i.getEnd().getX()+n*o.width(),y:i.getEnd().getY()+c*t.applyZoomScale(15).y,scale:t.applyZoomScale(1),visible:0!==u.length,name:"label"}),i=(n.add(o),n.add(new y.Tag({fill:t.getLineColour(),opacity:t.getTagOpacity()})),new y.Group);return i.name(this.getGroupName()),i.add(n),i.add(s),i.add(e),i.add(r),i.visible(!0),i},z.tool.draw.RulerFactory.prototype.getAnchors=function(e,t){var n=e.points(),i=[];return i.push(z.tool.draw.getDefaultAnchor(n[0]+e.x(),n[1]+e.y(),"begin",t)),i.push(z.tool.draw.getDefaultAnchor(n[2]+e.x(),n[3]+e.y(),"end",t)),i},z.tool.draw.RulerFactory.prototype.update=function(e,t,n){var i=e.getParent(),r=i.getChildren(function(e){return"shape"===e.name()})[0],o=i.getChildren(function(e){return"shape-tick0"===e.name()})[0],a=i.getChildren(function(e){return"shape-tick1"===e.name()})[0],s=i.getChildren(function(e){return"label"===e.name()})[0],l=i.getChildren(function(e){return"begin"===e.id()})[0],u=i.getChildren(function(e){return"end"===e.id()})[0];switch(e.id()){case"begin":l.x(e.x()),l.y(e.y());break;case"end":u.x(e.x()),u.y(e.y())}var i=l.x()-r.x(),c=l.y()-r.y(),d=u.x()-r.x(),g=u.y()-r.y(),x=(r.points([i,c,d,g]),new z.math.Point2D(l.x(),l.y())),S=new z.math.Point2D(u.x(),u.y()),x=new z.math.Line(x,S),S=new z.math.Point2D(i,c),i=new z.math.Point2D(d,g),m=z.math.getPerpendicularLine(x,S,t.scale(10)),h=(o.points([m.getBegin().getX(),m.getBegin().getY(),m.getEnd().getX(),m.getEnd().getY()]),z.math.getPerpendicularLine(x,i,t.scale(10))),c=(a.points([h.getBegin().getX(),h.getBegin().getY(),h.getEnd().getX(),h.getEnd().getY()]),r.hitFunc(function(e){e.beginPath(),e.moveTo(m.getBegin().getX(),m.getBegin().getY()),e.lineTo(m.getEnd().getX(),m.getEnd().getY()),e.lineTo(h.getEnd().getX(),h.getEnd().getY()),e.lineTo(h.getBegin().getX(),h.getBegin().getY()),e.closePath(),e.fillStrokeShape(this)}),s.getText()),d=x.quantify(n,z.utils.getFlags(c.meta.textExpr)),g=(c.setText(z.utils.replaceFlags(c.meta.textExpr,d)),c.meta.quantification=d,x.getBegin().getX()>x.getEnd().getX()?0:-1),S=x.getBegin().getY()>x.getEnd().getY()?-1:0,o={x:x.getEnd().getX()+g*c.width(),y:x.getEnd().getY()+S*t.applyZoomScale(15).y};s.position(o)},(z=z||{}).tool=z.tool||{},z.tool.Scroll=function(a){var s=this,t=(this.started=!1,null),n=0,l=!1;function u(){var e=document.getElementById("scroll-tooltip");e&&e.remove()}this.mousedown=function(e){u();var t=z.gui.getLayerDetailsFromEvent(e),t=a.getLayerGroupByDivId(t.groupDivId).getActiveViewLayer(),n=t.getViewController(),t=(n.isPlaying()&&n.stop(),s.started=!0,s.x0=e._x,s.y0=e._y,t.displayToPlanePos(e._x,e._y)),e=n.getPositionFromPlanePoint(t.x,t.y);n.setCurrentPosition(e)},this.mousemove=function(e){var t,n,i,r,o;s.started?(t=z.gui.getLayerDetailsFromEvent(e),t=a.getLayerGroupByDivId(t.groupDivId).getActiveViewLayer().getViewController(),i=e._y-s.y0,(n=15<Math.abs(i))&&t.canScroll()&&(0<i?t.decrementScrollIndex():t.incrementScrollIndex()),i=e._x-s.x0,r=15<Math.abs(i),o=t.getImageSize(),r&&o.moreThanOne(3)&&(0<i?t.incrementIndex(3):t.decrementIndex(3)),r&&(s.x0=e._x),n&&(s.y0=e._y)):l&&(o=e,u(),i=z.gui.getLayerDetailsFromEvent(o),t=(i=a.getLayerGroupByDivId(i.groupDivId).getActiveViewLayer()).getViewController(),r=i.displayToPlanePos(o._x,o._y),r=t.getPositionFromPlanePoint(r.x,r.y),void 0!==(r=t.getRescaledImageValue(r))&&((n=document.createElement("span")).id="scroll-tooltip",document.getElementById(i.getId()).parentElement.appendChild(n),n.style.left=o._x+10+"px",n.style.top=o._y+10+"px",i=z.utils.precisionRound(r,3),void 0!==t.getPixelUnit()&&(i+=" "+t.getPixelUnit()),n.appendChild(document.createTextNode(i))))},this.mouseup=function(e){s.started&&(s.started=!1)},this.mouseout=function(e){s.mouseup(e),u()},this.touchstart=function(e){t=setTimeout(s.dblclick,500),s.mousedown(e)},this.touchmove=function(e){null!==t&&(clearTimeout(t),t=null),s.mousemove(e)},this.touchend=function(e){null!==t&&(clearTimeout(t),t=null),s.mouseup(e)},this.wheel=function(e){var t=52;1===e.deltaMode&&(t=5.99),n+=e.deltaY,Math.abs(n)<t||(n=0,t=!1,e.deltaY<0&&(t=!0),e=z.gui.getLayerDetailsFromEvent(e),e=a.getLayerGroupByDivId(e.groupDivId).getActiveViewLayer().getViewController(),t?e.incrementScrollIndex():e.decrementScrollIndex())},this.keydown=function(e){e.context="dwv.tool.Scroll",a.onKeydown(e)},this.dblclick=function(e){e=z.gui.getLayerDetailsFromEvent(e);a.getLayerGroupByDivId(e.groupDivId).getActiveViewLayer().getViewController().play()},this.activate=function(e){e||u()},this.setFeatures=function(e){void 0!==e.displayTooltip&&(l=e.displayTooltip)},this.init=function(){}},z.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"}}},(z=z||{}).tool=z.tool||{},z.tool.UndoStack=function(){var t=[],n=(this.getStack=function(){return t},0),i=new z.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)}},(z=z||{}).tool=z.tool||{},z.tool.WindowLevel=function(s){var l=this;this.started=!1,this.mousedown=function(e){l.started=!0,l.x0=e._x,l.y0=e._y},this.mousemove=function(e){var t,n,i,r,o,a;l.started&&(t=z.gui.getLayerDetailsFromEvent(e),t=s.getLayerGroupByDivId(t.groupDivId).getActiveViewLayer().getViewController(),n=e._x-l.x0,a=l.y0-e._y,i=.01*((i=t.getImageRescaledDataRange()).max-i.min),o=parseInt(t.getWindowLevel().center,10),r=parseInt(t.getWindowLevel().width,10),o=o+Math.round(a*i),a=r+Math.round(n*i),a=z.image.validateWindowWidth(a),t.addWindowLevelPresets({manual:{wl:[new z.image.WindowLevel(o,a)],name:"manual"}}),t.setWindowLevelPreset("manual"),l.x0=e._x,l.y0=e._y)},this.mouseup=function(e){l.started&&(l.started=!1)},this.mouseout=function(e){l.mouseup(e)},this.touchstart=function(e){l.mousedown(e)},this.touchmove=function(e){l.mousemove(e)},this.touchend=function(e){l.mouseup(e)},this.dblclick=function(e){var t=z.gui.getLayerDetailsFromEvent(e),t=s.getLayerGroupByDivId(t.groupDivId).getActiveViewLayer(),e=t.displayToPlaneIndex(e._x,e._y),n=t.getViewController(),t=s.getImage(t.getDataIndex());n.setWindowLevel(parseInt(t.getRescaledValueAtIndex(n.getCurrentIndex().getWithNew2D(e.get(0),e.get(1))),10),parseInt(n.getWindowLevel().width,10))},this.keydown=function(e){e.context="dwv.tool.WindowLevel",s.onKeydown(e)},this.activate=function(e){},this.init=function(){}},z.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"}}},(z=z||{}).tool=z.tool||{},z.tool.ZoomAndPan=function(a){var s=this;this.started=!1,this.mousedown=function(e){s.started=!0,s.x0=e._x,s.y0=e._y},this.twotouchdown=function(e){s.started=!0,s.x0=e._x,s.y0=e._y;var t=new z.math.Point2D(e._x,e._y),e=new z.math.Point2D(e._x1,e._y1);s.line0=new z.math.Line(t,e),s.midPoint=s.line0.getMidpoint()},this.mousemove=function(e){var t,n,i,r,o;s.started&&(o=e._x-s.x0,t=e._y-s.y0,n=z.gui.getLayerDetailsFromEvent(e),i=(r=(n=a.getLayerGroupByDivId(n.groupDivId)).getActiveViewLayer()).getViewController(),r=r.displayToPlaneScale(o,t),o=i.getOffset3DFromPlaneOffset(r),n.addTranslation({x:o.getX(),y:o.getY(),z:o.getZ()}),n.draw(),s.x0=e._x,s.y0=e._y)},this.twotouchmove=function(e){var t,n,i,r;s.started&&(i=new z.math.Point2D(e._x,e._y),t=new z.math.Point2D(e._x1,e._y1),i=new z.math.Line(i,t).getLength()/s.line0.getLength(),t=z.gui.getLayerDetailsFromEvent(e),n=(r=(t=a.getLayerGroupByDivId(t.groupDivId)).getActiveViewLayer()).getViewController(),1==i?(e=e._y-s.y0,Math.abs(e)<15||n.getImageSize().canScroll(2)&&(0<e?n.incrementIndex(2):n.decrementIndex(2))):(e=(i-1)/10,Math.abs(e)%.1<=.05&&(i=r.displayToMainPlanePos(s.midPoint.getX(),s.midPoint.getY()),r=n.getPlanePositionFromPlanePoint(i),t.addScale(e,r),t.draw())))},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.wheel=function(e){var t=-e.deltaY/500,n=z.gui.getLayerDetailsFromEvent(e),n=a.getLayerGroupByDivId(n.groupDivId),i=n.getActiveViewLayer(),r=i.getViewController(),i=i.displayToMainPlanePos(e._x,e._y),e=r.getPlanePositionFromPlanePoint(i);n.addScale(t,e),n.draw()},this.keydown=function(e){e.context="dwv.tool.ZoomAndPan",a.onKeydown(e)},this.activate=function(e){}},z.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"}}},z.tool.ZoomAndPan.prototype.init=function(){},(z=z||{}).utils=z.utils||{},z.utils.arraySortEquals=function(e,t){if(null===e||null===t||void 0===e||void 0===t)return!1;e=e.slice().sort(),t=t.slice().sort();return z.utils.arrayEquals(e,t)},z.utils.arrayEquals=function(e,n){return null!==e&&null!==n&&void 0!==e&&void 0!==n&&(e.length===n.length&&e.every(function(e,t){return e===n[t]}))},z.utils.uint8ArrayToString=function(e){return String.fromCharCode.apply(String,e)},z.utils.findInArraySubset=function(e,t,n,i){(void 0===n||n<0||n>=e.length)&&(n=0),(void 0===i||i<=n||i>e.length)&&(i=e.length);for(var r=n;r<i;++r)if(t(e[r],r,e))return r},z.utils.getFindArrayInArrayCallback=function(r){return function(e,t,n){for(var i=0;i<r.length;++i)if(n[t+i]!==r[i])return!1;return!0}},z.utils.parseMultipart=function(e){var t=new Uint8Array(e),n=[];if(0===t.length)return n;var e=new Uint8Array([13,10,13,10]),i=z.utils.getFindArrayInArrayCallback(e),r=z.utils.findInArraySubset(t,i,0);if(void 0===r)throw new Error("Can't find the end of the first multipart header");for(var o,e=t.slice(0,r),a=z.utils.uint8ArrayToString(e).split("\r\n"),s=0;s<a.length;++s)if("-"===a[s][0]&&"-"===a[s][1]){o=a[s];break}if(void 0===o)throw new Error("Can't find the boundary between multi-parts");for(var e=z.utils.stringToUint8Array(o),l=z.utils.getFindArrayInArrayCallback(e),u=o.length,c=z.utils.findInArraySubset(t,l,0);void 0!==r;){for(var d={},g=t.slice(c+u,r),x=z.utils.uint8ArrayToString(g).split("\r\n"),S=0;S<x.length;++S){var m,h=x[S],p=h.indexOf(":");-1!==p&&(m=h.substring(0,p).trim(),h=h.substring(p+1).trim(),d[m]=h)}if(void 0===(c=z.utils.findInArraySubset(t,l,r)))break;var g=r+4,f=c-2;d.data=g<f?t.slice(g,f).buffer:new Uint8Array,n.push(d),r=z.utils.findInArraySubset(t,i,c+u)}return n},z.utils.buildMultipart=function(e,t){for(var n="\r\n",i=0,r=[],o=0;o<e.length;++o){for(var a="",s=(0!==o&&(a+=n),a+="--"+t+n,Object.keys(e[o])),l=0;l<s.length;++l){var u=s[l];"data"!==u&&(a+=u+": "+e[o][u]+n)}a+=n;var c=z.utils.stringToUint8Array(a);r.push(c),i+=c.byteLength+e[o].data.byteLength}for(var d=z.utils.stringToUint8Array("\r\n--"+t+"--"+n),g=new Uint8Array(i+d.byteLength),x=0,S=0;S<e.length;++S)g.set(r[S],x),x+=r[S].byteLength,g.set(new Uint8Array(e[S].data),x),x+=e[S].data.byteLength;return g.set(d,x),g}}(z=z||{}).utils=z.utils||{},z.utils.isEqualRgb=function(e,t){return null!==e&&null!==t&&void 0!==e&&void 0!==t&&e.r===t.r&&e.g===t.g&&e.b===t.b},z.utils.ybrToRgb=function(e,t,n){return{r:e+1.402*(n-128),g:e-.34414*(t-128)-.71414*(n-128),b:e+1.772*(t-128)}},z.utils.hexToRgb=function(e){return{r:parseInt(e.substring(1,3),16),g:parseInt(e.substring(3,5),16),b:parseInt(e.substring(5,7),16)}},z.utils.rgbToHex=function(e){return"#"+((1<<24)+(e.r<<16)+(e.g<<8)+e.b).toString(16).slice(1)},z.utils.getBrightness=function(e){return.001172549*e.r+.002301961*e.g+447059e-9*e.b},z.utils.isDarkColour=function(e){return z.utils.getBrightness(z.utils.hexToRgb(e))<.5},z.utils.getShadowColour=function(e){return z.utils.isDarkColour(e)?"#fff":"#000"},z.utils.uintLabToLab=function(e){return{l:.001525902*e.l,a:.003891051*e.a-128,b:.003891051*e.b-128}},z.utils.labToUintLab=function(e){return{l:655.35*e.l,a:257*e.a+32896,b:257*e.b+32896}},z.utils.d65={x:95.0489,y:100,z:108.884},z.utils.cielabToCiexyz=function(e){function t(e){return.206896552<e?Math.pow(e,3):.128418549*e-.017712903}var n=z.utils.d65,i=(e.l+16)/116;return{x:n.x*t(i+e.a/500),y:n.y*t(i),z:n.z*t(i-e.b/200)}},z.utils.ciexyzToCielab=function(e){function t(e){return.008856452<e?Math.pow(e,.333333333):7.787037037*e+.137931034}var n=z.utils.d65,i=t(e.y/n.y);return{l:116*i-16,a:500*(t(e.x/n.x)-i),b:200*(i-t(e.z/n.z))}},z.utils.ciexyzToSrgb=function(e){function t(e){var t=null,t=e<=.0031308?12.92*e:1.055*Math.pow(e,.416666667)-.055;return Math.min(1,Math.max(0,t))}var n=e.x/100,i=e.y/100,e=e.z/100;return{r:Math.round(255*t(3.2406*n-1.5372*i-.4986*e)),g:Math.round(255*t(-.9689*n+1.8758*i+.0415*e)),b:Math.round(255*t(.0557*n-.204*i+1.057*e))}},z.utils.srgbToCiexyz=function(e){function t(e){return e<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}var n=t(e.r/255),i=t(e.g/255),e=t(e.b/255);return{x:100*(.4124*n+.3576*i+.1805*e),y:100*(.2126*n+.7152*i+.0722*e),z:100*(.0193*n+.1192*i+.9505*e)}},z.utils.cielabToSrgb=function(e){return z.utils.ciexyzToSrgb(z.utils.cielabToCiexyz(e))},z.utils.srgbToCielab=function(e){return z.utils.ciexyzToCielab(z.utils.srgbToCiexyz(e))},z.utils.colourNameToHex=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"},(z=z||{}).env=z.env||{},z.env.askModernizr=function(e){void 0===z.Modernizr&&z.ModernizrInit(c,document);for(var t=e.split("."),n=z.Modernizr,i=0;i<t.length;++i)n=n[t[i]];return n},z.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.")?z.env.askModernizr("filereader"):(z.logger.warn("Assuming FileAPI support for Safari5..."),!0)},z.env.hasXmlHttpRequest=function(){return z.env.askModernizr("xhrresponsetype")&&z.env.askModernizr("xhrresponsetypearraybuffer")&&z.env.askModernizr("xhrresponsetypetext")&&"XMLHttpRequest"in c&&"withCredentials"in new XMLHttpRequest},z.env.hasTypedArray=function(){return z.env.askModernizr("dataview")&&z.env.askModernizr("typedarrays")},z.env.hasInputColor=function(){return z.env.askModernizr("inputtypes.color")},z.env.hasInputDirectory=function(){return z.env.askModernizr("fileinputdirectory")},z.env._hasTypedArraySlice=void 0!==Uint8Array.prototype.slice,z.env.hasTypedArraySlice=function(){return z.env._hasTypedArraySlice},z.env._hasFloat64Array="Float64Array"in c,z.env.hasFloat64Array=function(){return z.env._hasFloat64Array},z.env._hasClampedArray="Uint8ClampedArray"in c,z.env.hasClampedArray=function(){return z.env._hasClampedArray},z.env._hasBigint="undefined"!=typeof BigInt,z.env.hasBigInt=function(){return z.env._hasBigint},z.env._hasTextDecoder="undefined"!=typeof TextDecoder,z.env.hasTextDecoder=function(){return z.env._hasTextDecoder},z.env._hasTextEncoder="undefined"!=typeof TextEncoder,z.env.hasTextEncoder=function(){return z.env._hasTextEncoder},z.env.check=function(){var e="";if(!z.env.hasFileApi())throw e="The File APIs are not supported in this browser. ",new Error(e);if(!z.env.hasXmlHttpRequest())throw e="The XMLHttpRequest is not supported in this browser. ",new Error(e);if(!z.env.hasTypedArray())throw e="The Typed arrays are not supported in this browser. ",new Error(e);if(!z.env.hasTextDecoder()||!z.env.hasTextEncoder())throw e="Text decoding/encoding is not supported in this browser.",new Error(e);z.env.hasFloat64Array()||z.logger.warn("Float64Array is not supported in this browser. Data including tags with Float64 VR is not supported. "),z.env.hasBigInt()||z.logger.warn("BigInt is not supported in this browser. Data including tags with Int64 and Uint64 VRs is not supported. "),z.env.hasTypedArraySlice()||(z.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}),z.env.hasClampedArray()||(z.logger.warn("The Uint8ClampedArray is not supported in this browser. This may impair performance. "),c.Uint8ClampedArray=c.Uint8Array),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||Object.defineProperty(String.prototype,"startsWith",{value:function(e,t){return z.utils.startsWith(this,e,t)}})};i=i||{},r=r||{},o=o||{};return(z=z||{}).i18nLocalesPath=null,z.i18nInitialise=function(e,t){var e=void 0===e?"auto":e,t=void 0===t?"../..":t,t={fallbackLng:"en",load:"languageOnly",backend:{loadPath:(z.i18nLocalesPath=t)+"/locales/{{lng}}/{{ns}}.json"}},n=i.use(r);"auto"===e?n.use(o):t.lng=e,n.init(t)},z.i18nInitialiseWithResources=function(e,t){e=void 0===e?"auto":e,t={fallbackLng:"en",load:"languageOnly",resources:t};"auto"===e?i.use(o).init(t):(t.lng=e,i.init(t))},z.i18nOnInitialised=function(e){i.on("initialized",e)},z.i18nOffInitialised=function(){i.off("initialized")},z.i18nOnFailedLoad=function(e){i.on("failedLoading",e)},z.i18nOffFailedLoad=function(){i.off("failedLoading")},z.i18n=function(e,t){return i.t(e,t)},z.i18nExists=function(e,t){return i.exists(e,t)},z.i18nPage=function(){for(var e=document.getElementsByTagName("*"),t=0;t<e.length;++t)void 0!==e[t].dataset.i18n&&(e[t].innerHTML=z.i18n(e[t].dataset.i18n))},z.i18nGetLocalePath=function(e){var t=i.language.substring(0,2);return z.i18nLocalesPath+"/locales/"+t+"/"+e},z.i18nGetFallbackLocalePath=function(e){var t=i.languages[i.languages.length-1].substring(0,2);return z.i18nLocalesPath+"/locales/"+t+"/"+e},(z=z||{}).utils=z.utils||{},z.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=i[e.type].slice(),n=0;n<t.length;++n)t[n](e)}},(z=z||{}).utils=z.utils||{},z.utils.logger=z.utils.logger||{},z.utils.logger.console=z.utils.logger.console||{},z.logger=z.utils.logger.console,z.utils.logger.levels={TRACE:0,DEBUG:1,INFO:2,WARN:3,ERROR:4},z.utils.logger.console.level=z.utils.logger.levels.WARN,z.utils.logger.console.trace=function(e){z.logger.level<=z.utils.logger.levels.TRACE&&console.trace(e)},z.utils.logger.console.debug=function(e){z.logger.level<=z.utils.logger.levels.DEBUG&&console.debug(e)},z.utils.logger.console.info=function(e){z.logger.level<=z.utils.logger.levels.INFO&&console.info(e)},z.utils.logger.console.warn=function(e){z.logger.level<=z.utils.logger.levels.WARN&&console.warn(e)},z.utils.logger.console.error=function(e){z.logger.level<=z.utils.logger.levels.ERROR&&console.error(e)},(z=z||{}).ModernizrInit=function(e,a,s){var i=[],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){i.push({name:e,fn:t,options:n})},addAsyncTest:function(e){i.push({name:null,fn:e})}},n=function(){},r=(n.prototype=t,(n=new n).addTest("dataview","undefined"!=typeof DataView&&"getFloat64"in DataView.prototype),n.addTest("typedarrays","ArrayBuffer"in e),n.addTest("filereader",!!(e.File&&e.FileList&&e.FileReader)),n.addTest("xhrresponsetype",function(){if("undefined"==typeof XMLHttpRequest)return!1;var e=new XMLHttpRequest;return e.open("get","/",!0),"response"in e}()),n.addTest("urlparser",function(){try{return"http://modernizr.com/"===new URL("http://modernizr.com/").href}catch(e){return!1}}),n.addTest("urlsearchparams","URLSearchParams"in e),[]);function o(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 l=a.documentElement,u=(n.addTest("xhrresponsetypearraybuffer",o("arraybuffer")),n.addTest("xhrresponsetypejson",o("json")),n.addTest("xhrresponsetypetext",o("text")),"svg"===l.nodeName.toLowerCase());function c(e){return"function"!=typeof a.createElement?a.createElement(e):u?a.createElementNS.call(a,"http://www.w3.org/2000/svg",e):a.createElement.apply(a,arguments)}var d,g,x,S,m,h,p,f=c("input"),e="search tel url email datetime date month week time datetime-local number range color".split(" "),y={},D=(n.inputtypes=function(e){for(var t,n,i,r=e.length,o=0;o<r;o++)f.setAttribute("type",t=e[o]),(i="text"!==f.type&&"style"in f)&&(f.value="1)",f.style.cssText="position:absolute;visibility:hidden;",/^range$/.test(t)&&f.style.WebkitAppearance!==s?(l.appendChild(f),i=(n=a.defaultView).getComputedStyle&&"textfield"!==n.getComputedStyle(f,null).WebkitAppearance&&0!==f.offsetHeight,l.removeChild(f)):/^(search|tel)$/.test(t)||(i=/^(url|email)$/.test(t)?f.checkValidity&&!1===f.checkValidity():"1)"!=f.value)),y[e[o]]=!!i;return y}(e),t._config.usePrefixes?"Moz O ms Webkit".toLowerCase().split(" "):[]);for(p in t._domPrefixes=D,n.addTest("fileinputdirectory",function(){var e=c("input");if(e.type="file","directory"in e)return!0;for(var t=0,n=D.length;t<n;t++)if(D[t]+"directory"in e)return!0;return!1}),i)if(i.hasOwnProperty(p)){if(d=[],(g=i[p]).name&&(d.push(g.name.toLowerCase()),g.options&&g.options.aliases&&g.options.aliases.length))for(x=0;x<g.options.aliases.length;x++)d.push(g.options.aliases[x].toLowerCase());for(S="function"==typeof g.fn?g.fn():g.fn,m=0;m<d.length;m++)1===(h=d[m].split(".")).length?n[h[0]]=S:(!n[h[0]]||n[h[0]]instanceof Boolean||(n[h[0]]=new Boolean(n[h[0]])),n[h[0]][h[1]]=S),r.push((S?"":"no-")+h.join("-"))}delete t.addTest,delete t.addAsyncTest;for(var v=0;v<n._q.length;v++)n._q[v]();z.Modernizr=n},(z=z||{}).utils=z.utils||{},z.utils.isObject=function(e){var t=typeof e;return"function"==t||"object"==t&&!!e},z.utils.isArray=function(e){return Array.isArray(e)},z.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],u=e[r][l];if(z.utils.isArray(u)){for(var c=[],d=0;d<u.length;++d)z.utils.isObject(u[d])?c.push(z.utils.objectToArray(u[d])):c.push(u[d]);u=c}else z.utils.isObject(u)&&(u=z.utils.objectToArray(u));o[l]=u}t.push(o)}return t},z.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}),d=u.concat(c),g=0,x=d.length;g<x;++g){var S=d[g];if(S!==n){var m,h=null,p=null,f=(Object.prototype.hasOwnProperty.call(e,S)&&(h=e[S],Object.prototype.hasOwnProperty.call(h,i)&&(p=h[i])),null),y=null;if(Object.prototype.hasOwnProperty.call(t,S)&&(f=t[S],Object.prototype.hasOwnProperty.call(f,i)&&(y=f[i])),y!==p)if(m={},o){if(z.utils.isObject(p))m[i]=p;else{m[i]={};for(var D=0;D<a.length;D++)m[i][a[D]]=h}m[i][s]=f}else{y={};y[a]=h,y[s]=f,m[i]=y}else m=h;r[S]=m}}return r},(z=z||{}).utils=z.utils||{},z.utils.MultiProgressHandler=function(n){var i=this,r=[],o=2;function a(e){for(var t=0,n=0;n<o;++n)t+=r[e][n];return t/o}this.setNumberOfDimensions=function(e){o=e},this.setNToLoad=function(e){for(var t=0;t<e;++t){r[t]=[];for(var n=0;n<o;++n)r[t][n]=0}},this.onprogress=function(e){var t;e.lengthComputable&&void 0!==e.subindex&&void 0!==e.index&&(t=100*e.loaded/e.total,r[e.index][e.subindex]=t,t=null,t=void 0!==e.item?e.item:{loaded:a(e.index),total:100,source:e.source},n({lengthComputable:!0,loaded:function(){for(var e=0,t=r.length,n=0;n<t;++n)e+=a(n);return Math.round(e/t)}(),total:100,item:t}))},this.getMonoProgressHandler=function(t,n){return function(e){e.index=t,e.subindex=n,i.onprogress(e)}},this.getUndefinedMonoProgressHandler=function(t){return function(e){e.subindex=t,i.onprogress(e)}}},(z=z||{}).utils=z.utils||{},z.utils.capitaliseFirstLetter=function(e){var t=e;return t=e?e.charAt(0).toUpperCase()+e.slice(1):t},z.utils.startsWith=function(e,t,n){if(null==e||null==t)return!1;n=0<n?0|n:0;return e.substring(n,n+t.length)===t},z.utils.endsWith=function(e,t){return null!=e&&null!=t&&e.substring(e.length-t.length)===t},z.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},z.utils.getFlags=function(e){var t=[];if(null==e)return t;for(var n=/{(\w+)}/g,i=n.exec(e);i;)t.push(i[1]),i=n.exec(e);return t},z.utils.replaceFlags=function(e,t){var n="";if(null==e)return n;if(n=e,null==t)return n;for(var i=z.utils.getFlags(e),r=0;r<i.length;++r){var o,a=t[i[r]];null!=a&&null!==a.value&&void 0!==a.value&&(o=a.value.toPrecision(4),null!==a.unit&&void 0!==a.unit&&0!==a.unit.length&&("degree"!==a.unit&&(o+=" "),o+=a.unit),a="{"+i[r]+"}",n=n.replace(a,o))}return n},z.utils.replaceFlags2=function(e,t){for(var n=e,i=0;i<t.length;++i)n=n.replace("{v"+i+"}",t[i]);return n},z.utils.createDefaultReplaceFormat=function(e){for(var t="",n=0;n<e.length;++n)0!==n&&(t+=", "),t+="{v"+n+"}";return t},z.utils.getRootPath=function(e){return e.split("/").slice(0,-1).join("/")},z.utils.getFileExtension=function(e){var t=null;return null!=e&&"."!==e[0]&&1!==(e=e.toLowerCase().split(".")).length&&(t=e.pop(),/[a-z]/.test(t)&&!t.includes("/")||(t=null)),t},z.utils.stringToUint8Array=function(e){for(var t=new Uint8Array(e.length),n=0,i=e.length;n<i;n++)t[n]=e.charCodeAt(n);return t},z.utils.precisionRound=function(e,t){t=Math.pow(10,t);return Math.round(e*t+.01/t)/t},(z=z||{}).utils=z.utils||{},z.utils.ThreadPool=function(i){for(var r=[],o=[],e=0;e<i;++e)o.push(new z.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(),a.push(t),t.run(e)):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{e.stop(),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"})}},z.utils.ThreadPool.prototype.onworkstart=function(e){},z.utils.ThreadPool.prototype.onworkitem=function(e){},z.utils.ThreadPool.prototype.onwork=function(e){},z.utils.ThreadPool.prototype.onworkend=function(e){},z.utils.ThreadPool.prototype.onerror=function(e){},z.utils.ThreadPool.prototype.onabort=function(e){},z.utils.WorkerThread=function(t){var n,i=this,e=Math.random().toString(36).substring(2,15),r=null;function o(e){e.itemNumber=r.info.itemNumber,e.numberOfItems=r.info.numberOfItems,e.dataIndex=r.info.dataIndex,t.onworkitem(e),t.onTaskEnd(i)}function a(e){e.itemNumber=r.info.itemNumber,e.numberOfItems=r.info.numberOfItems,e.dataIndex=r.info.dataIndex,t.handleWorkerError(e),i.stop()}this.getId=function(){return e},this.run=function(e){r=e,void 0===n&&((n=new Worker(r.script)).onmessage=o,n.onerror=a),n.postMessage(r.startMessage)},this.stop=function(){n.terminate()}},z.utils.WorkerTask=function(e,t,n){this.script=e,this.startMessage=t,this.info=n},(z=z||{}).utils=z.utils||{},z.utils.getUrlFromUriFull=function(e){return new URL(e,c.location.origin)},z.utils.getUrlFromUriSimple=function(e){for(var t={},e=e.split("?"),n=e[0].split("//").pop().split("/"),i=(n.splice(0,1),t.pathname="/"+n.join("/"),[]),r=(2===e.length&&(i=e[1].split("&")),{}),o=0;o<i.length;++o){var a=i[o].split("=");r[a[0]]=a[1]}return t.searchParams={get:function(e){return r[e]}},t},z.utils.getUrlFromUri=function(e){return z.env.askModernizr("urlparser")&&z.env.askModernizr("urlsearchparams")?z.utils.getUrlFromUriFull(e):z.utils.getUrlFromUriSimple(e)},z.utils.splitUri=function(e){var t,n={},i=null;return e&&-1!==(i=e.indexOf("?"))&&(n.base=e.substring(0,i),-1===(t=e.indexOf("#"))&&(t=e.length),e=e.substring(i+1,t),n.query=z.utils.splitKeyValueString(e)),n},z.utils.getUriQuery=function(e){e=z.utils.splitUri(e);return 0===Object.keys(e).length?null:e.query},z.utils.decodeQuery=function(e,t,n){e.type&&"manifest"===e.type?z.utils.decodeManifestQuery(e,t):t(z.utils.decodeKeyValueUri(e.input,e.dwvReplaceMode),n)},z.utils.decodeKeyValueUri=function(e,t){var n=[],i="key",t=(t&&(i=t),decodeURIComponent(e)),r=z.utils.splitUri(t);if(0===Object.keys(r).length)n.push(t);else{for(var o=Object.keys(r.query),a=null,s=0;s<o.length;++s)if(r.query[o[s]]instanceof Array){a=o[s];break}if(a){for(var l,u=r.query[a],c=r.base,d=(""!==c&&"file"!==a&&(c+="?"),!1),g=0;g<o.length;++g)o[g]!==a&&(d&&(c+="&"),c+=o[g]+"="+r.query[o[g]],d=!0);for(var x=0;x<u.length;++x)l=c,d&&(l+="&"),"key"===i&&(l+=a+"="),l+=u[x],n.push(l)}else n.push(t)}return n},z.utils.decodeManifestQuery=function(e,t){var n="",i=("/"===e.input[0]&&(n=c.location.protocol+"//"+c.location.host),n+=e.input,new XMLHttpRequest);i.open("GET",decodeURIComponent(n),!0),i.responseType="document",i.onload=function(){t(z.utils.decodeManifest(this.responseXML,e.nslices))},i.onerror=function(){z.logger.warn("RequestError while receiving manifest: "+this.status)},i.send(null)},z.utils.decodeManifest=function(e,t){var n=[],i=e.getElementsByTagName("wado_query")[0].getAttribute("wadoURL")+"?requestType=WADO&contentType=application/dicom&",e=e.getElementsByTagName("Patient"),e=(1<e.length&&z.logger.warn("More than one patient, loading first one."),e[0].getElementsByTagName("Study")),r=(1<e.length&&z.logger.warn("More than one study, loading first one."),e[0].getAttribute("StudyInstanceUID")),e=e[0].getElementsByTagName("Series"),o=(1<e.length&&z.logger.warn("More than one series, loading first one."),e[0].getAttribute("SeriesInstanceUID")),a=e[0].getElementsByTagName("Instance"),s=a.length;t<s&&(s=t);for(var l=0;l<s;++l){var u=a[l].getAttribute("SOPInstanceUID");n.push(i+"&studyUID="+r+"&seriesUID="+o+"&objectUID="+u)}return n},z.utils.loadFromUri=function(e,t,n){e=z.utils.getUriQuery(e);e&&void 0!==e.input&&z.utils.loadFromQuery(e,t,n)},z.utils.loadFromQuery=function(e,t,n){var i;z.utils.decodeQuery(e,t.loadURLs,n),void 0!==e.state&&t.addEventListener("loadend",i=function(){t.removeEventListener("loadend",i),t.loadURLs([e.state])})},z});
1
+ /*! dwv 0.31.0-beta.21 2023-01-09 17:12:44 */
2
+ !function(e,t){"function"==typeof define&&define.amd?define(["i18next","i18next-http-backend","i18next-browser-languagedetector","jszip","konva","magic-wand-tool"],t):"object"==typeof module&&module.exports?module.exports=t(require("i18next"),require("i18next-http-backend"),require("i18next-browser-languagedetector"),require("jszip"),require("konva/cmj"),require("magic-wand-tool")):e.dwv=t(e.i18next,e.i18nextHttpBackend,e.i18nextBrowserLanguageDetector,e.JSZip,e.Konva,e.MagicWand)}(this,function(i,r,o,u,y,v){{function e(e){return void 0!==e&&void 0!==e.default}{var c=void 0!==c?c:"undefined"!=typeof self?self:"undefined"!=typeof global?global:{},_=(e(i)&&(i=i.default),e(r)&&(r=r.default),e(o)&&(o=o.default),e(y)&&(y=y.default),_||{}),_=(_.App=function(){var r=this,S=null,m=null,h=null,p=null,f=null,y=null,e=new _.gui.Style,n=new _.utils.ListenerHandler;function o(e){if(null===S.dataViewConfigs||void 0===S.dataViewConfigs)throw new Error("No available data view configuration");var t=[];return void 0!==S.dataViewConfigs["*"]?t=S.dataViewConfigs["*"]:void 0!==S.dataViewConfigs[e]&&(t=S.dataViewConfigs[e]),t}function a(e){for(var t=Object.keys(e),n=[],i=0;i<t.length;++i)for(var r=e[t[i]],o=0;o<r.length;++o){var a=r[o];if(!n.includes(a.divId)){var s=document.getElementById(a.divId),s=f.addLayerGroup(s),l=(u=l=void 0,s);l.addEventListener("zoomchange",D),l.addEventListener("offsetchange",D),l.addEventListener("renderstart",D),l.addEventListener("renderend",D);for(var u=0;u<_.image.viewEventNames.length;++u)l.addEventListener(_.image.viewEventNames[u],D);void 0!==a.orientation&&s.setTargetOrientation(_.math.getMatrixFromName(a.orientation)),n.push(a.divId)}}}function D(e){n.fireEvent(e)}function v(e){e.type="loadstart",D(e)}function C(e){e.type="loadprogress",D(e)}function T(e){void 0===e.data&&_.logger.error("Missing loaditem event data."),void 0===e.loadtype&&_.logger.error("Missing loaditem event load type.");var t,n=e.isfirstitem,i=null;"image"===e.loadtype?(n?m.addNew(e.loadid,e.data.image,e.data.info):m.update(e.loadid,e.data.image,e.data.info),i=e.data.info):"state"===e.loadtype&&((t=new _.io.State).apply(r,t.fromJSON(e.data)),i="state"),D({type:"loaditem",data:i,source:e.source,loadtype:e.loadtype,loadid:e.loadid,isfirstitem:e.isfirstitem}),"image"===e.loadtype&&0!==o(e.loadid).length&&n&&S.viewOnFirstLoadItem&&r.render(e.loadid)}function L(e){e.type="load",D(e)}function I(e){e.type="loadend",D(e)}function P(e){e.type="error",D(e)}function w(e){e.type="abort",D(e)}function s(e,t){var n=m.get(e);if(!n)throw new Error("Cannot initialise layer with data id: "+e);var i=f.getLayerGroupByDivId(t.divId);if(!i)throw new Error("Cannot initialise layer with group id: "+t.divId);var r=n.image.getGeometry();f.unbindLayerGroups();var o=(new _.ViewFactory).create(new _.dicom.DicomElementsWrapper(n.meta),n.image),a=_.gui.getViewOrientation(r.getOrientation(),i.getTargetOrientation()),n=(o.setOrientation(a),"SEG"===n.image.getMeta().Modality&&o.setAlphaFunction(function(e){return 0===e[0]&&0===e[1]&&0===e[2]?0:255}),void 0!==t.colourMap&&o.setColourMap(t.colourMap),0===i.getNumberOfLayers()),s=1,l=(n||(s=.5,void 0===t.colourMap&&o.setColourMap(_.image.lut.rainbow)),i.addViewLayer()),o=(l.setView(o),r.getSize(a).get2D()),a=r.getSpacing(a).get2D(),e=(l.initialise(o,a,e,s),m.addEventListener("imagechange",l.onimagechange),f.bindLayerGroups(),h&&h.bindLayer(l,i.getDivId()),h&&h.hasTool("Draw")&&((s=i.addDrawLayer()).initialise(o,a,e),s.setPlaneHelper(l.getViewController().getPlaneHelper()),a=[(o=l.getViewController()).getCurrentIndex().getValues(),o.getCurrentPosition().getValues()],i.updateLayersToPositionChange({value:a,srclayerid:l.getId()})),f.syncLayerGroupScale(),r.getOrientation().getThirdColMajorDirection());l.setOffset(i.getOffset()),void 0!==t.orientation&&(2===e?"axial"!==t.orientation&&l.addFlipOffsetY():0===e&&"sagittal"!==t.orientation&&l.addFlipOffsetX()),n?void 0!==t.orientation?0===e||2===e?i.flipScaleZ():l.setScale(i.getScale()):0===e?i.flipScaleZ():l.setScale(i.getScale()):l.setScale(i.getScale())}this.getImage=function(e){return m.get(e).image},this.getLastImage=function(){return m.get(m.length()-1).image},this.setImage=function(e,t){m.setImage(e,t)},this.setLastImage=function(e){m.setImage(m.length()-1,e)},this.addNewImage=function(e,t){var n=m.length();return D({type:"loadstart",loadtype:"image",source:"internal",loadid:n}),m.addNew(n,e,t),D({type:"loaditem",loadtype:"image",data:t,source:"internal",loadid:n,isfirstitem:!0}),S.viewOnFirstLoadItem&&this.render(n),D({type:"load",loadtype:"image",source:"internal",loadid:n}),D({type:"loadend",loadtype:"image",source:"internal",loadid:n}),n},this.getMetaData=function(e){return m.get(e).meta},this.getNumberOfLoadedData=function(){return m.length()},this.canScroll=function(){return f.getActiveLayerGroup().getActiveViewLayer().getViewController().canScroll()},this.canWindowLevel=function(){return f.getActiveLayerGroup().getActiveViewLayer().getViewController().canWindowLevel()},this.getAddedScale=function(){return f.getActiveLayerGroup().getAddedScale()},this.getBaseScale=function(){return f.getActiveLayerGroup().getBaseScale()},this.getOffset=function(){return f.getActiveLayerGroup().getOffset()},this.getToolboxController=function(){return h},this.getActiveLayerGroup=function(){return f.getActiveLayerGroup()},this.getViewLayersByDataIndex=function(e){return f.getViewLayersByDataIndex(e)},this.getLayerGroupByDivId=function(e){return f.getLayerGroupByDivId(e)},this.getNumberOfLayerGroups=function(){return f.getNumberOfLayerGroups()},this.getStyle=function(){return e},this.addToUndoStack=function(e){null!==y&&y.add(e)},this.init=function(e){if(void 0===(S=e).viewOnFirstLoadItem&&(S.viewOnFirstLoadItem=!0),(y=new _.tool.UndoStack).addEventListener("undoadd",D),y.addEventListener("undo",D),y.addEventListener("redo",D),S.tools&&0!==S.tools.length){for(var t={},n=Object.keys(S.tools),i=0;i<n.length;++i){var r=n[i],o=S.tools[r];if(void 0!==_.tool[r]){if(t[r]=new _.tool[r](this),void 0!==t[r].addEventListener)for(var a=t[r].getEventNames(),s=0;s<a.length;++s)t[r].addEventListener(a[s],D);if(void 0!==o.options){var l="raw",u=(void 0!==t[r].getOptionsType&&(l=t[r].getOptionsType()),o.options);if("instance"===l||"factory"===l)for(var u={},c=0;c<o.options.length;++c){var d=o.options[c],g=d,x=("factory"===l&&(g+="Factory"),r.charAt(0).toLowerCase()+r.slice(1));void 0!==_.tool[x][g]?u[d]=_.tool[x][g]:_.logger.warn("Could not find option class for: "+d)}t[r].setOptions(u)}}else _.logger.warn("Could not initialise unknown tool: "+r)}h=new _.ctrl.ToolboxController(t)}(p=new _.ctrl.LoadController(S.defaultCharacterSet)).onloadstart=v,p.onprogress=C,p.onloaditem=T,p.onload=L,p.onloadend=I,p.onerror=P,p.onabort=w,m=new _.ctrl.DataController,f=new _.gui.Stage,void 0!==S.binders&&f.setBinders(S.binders)},this.getElement=function(e){return null},this.reset=function(){m.reset(),f.empty(),y&&((y=new _.tool.UndoStack).addEventListener("undoadd",D),y.addEventListener("undo",D),y.addEventListener("redo",D))},this.resetLayout=function(){f.reset(),f.draw()},this.addEventListener=function(e,t){n.add(e,t)},this.removeEventListener=function(e,t){n.remove(e,t)},this.loadFiles=function(e){0===e.length?_.logger.warn("Ignoring empty input file list."):p.loadFiles(e)},this.loadURLs=function(e,t){0===e.length?_.logger.warn("Ignoring empty input url list."):p.loadURLs(e,t)},this.loadImageObject=function(e){p.loadImageObject(e)},this.abortLoad=function(){p.abort()},this.fitToContainer=function(){f.syncLayerGroupScale()},this.initWLDisplay=function(){f.getActiveLayerGroup().getActiveViewLayer().getViewController().initialise()},this.getDataViewConfig=function(){return S.dataViewConfigs},this.setDataViewConfig=function(e){f.empty(),a(S.dataViewConfigs=e)},this.setLayerGroupsBinders=function(e){f.setBinders(e)},this.render=function(e){if(null==e)throw new Error("Cannot render without data index");0===f.getNumberOfLayerGroups()&&a(S.dataViewConfigs);var t=o(e);if(0===t.length)_.logger.info("Not rendering data: "+e+" (no data view config)");else for(var n=0;n<t.length;++n){var i=t[n],r=f.getLayerGroupByDivId(i.divId);if(!r)throw new Error("No layer group for "+i.divId);0===r.getViewLayersByDataIndex(e).length&&(0===r.getNumberOfLayers()?(s(e,i),h&&h.init()):s(e,i)),r.draw()}},this.zoom=function(e,t,n){var i=f.getActiveLayerGroup(),r=i.getActiveViewLayer().getViewController().getCurrentScrollPosition(),t=new _.math.Point3D(t,n,r);i.addScale(e,t),i.draw()},this.translate=function(e,t){var n=f.getActiveLayerGroup();n.addTranslation({x:e,y:t}),n.draw()},this.setOpacity=function(e){var t=f.getActiveLayerGroup().getActiveViewLayer();t.setOpacity(e),t.draw()},this.getDrawDisplayDetails=function(){return f.getActiveLayerGroup().getActiveDrawLayer().getDrawController().getDrawDisplayDetails()},this.getDrawStoreDetails=function(){return f.getActiveLayerGroup().getActiveDrawLayer().getDrawController().getDrawStoreDetails()},this.setDrawings=function(e,t){var n=f.getActiveLayerGroup(),i=n.getActiveViewLayer().getViewController(),n=n.getActiveDrawLayer().getDrawController();n.setDrawings(e,t,D,this.addToUndoStack),n.activateDrawLayer(i.getCurrentOrientedIndex(),i.getScrollIndex())},this.updateDraw=function(e){f.getActiveLayerGroup().getActiveDrawLayer().getDrawController().updateDraw(e)},this.deleteDraws=function(){f.getActiveLayerGroup().getActiveDrawLayer().getDrawController().deleteDraws(D,this.addToUndoStack)},this.isGroupVisible=function(e){return f.getActiveLayerGroup().getActiveDrawLayer().getDrawController().isGroupVisible(e)},this.toogleGroupVisibility=function(e){f.getActiveLayerGroup().getActiveDrawLayer().getDrawController().toogleGroupVisibility(e)},this.getState=function(){return(new _.io.State).toJSON(r)},this.onResize=function(e){r.fitToContainer()},this.onKeydown=function(e){D(e)},this.defaultOnKeydown=function(e){var t=f.getActiveLayerGroup().getActiveViewLayer().getViewController(),n=t.getImageSize();if(e.ctrlKey)if(37===e.keyCode)e.preventDefault(),n.moreThanOne(3)&&t.decrementIndex(3);else if(38===e.keyCode)e.preventDefault(),t.canScroll()&&t.incrementScrollIndex();else if(39===e.keyCode)e.preventDefault(),n.moreThanOne(3)&&t.incrementIndex(3);else if(40===e.keyCode)e.preventDefault(),t.canScroll()&&t.decrementScrollIndex();else if(89===e.keyCode)y.redo();else if(90===e.keyCode)y.undo();else if("Space"===e.code){e.preventDefault();for(var i=0;i<f.getNumberOfLayerGroups();++i)f.getLayerGroup(i).setShowCrosshair(!f.getLayerGroup(i).getShowCrosshair())}},this.resetDisplay=function(){r.resetLayout(),r.initWLDisplay()},this.resetZoom=function(){r.resetLayout()},this.setColourMap=function(e){f.getActiveLayerGroup().getActiveViewLayer().getViewController().setColourMapFromName(e)},this.setWindowLevelPreset=function(e){f.getActiveLayerGroup().getActiveViewLayer().getViewController().setWindowLevelPreset(e)},this.setTool=function(e){for(var t=0;t<f.getNumberOfLayerGroups();++t){var n=f.getLayerGroup(t),i=null;(i="Draw"===e||"Livewire"===e||"Floodfill"===e?n.getActiveDrawLayer():n.getActiveViewLayer())&&h.bindLayer(i,n.getDivId())}h.setSelectedTool(e)},this.setToolFeatures=function(e){h.setToolFeatures(e)},this.undo=function(){y.undo()},this.redo=function(){y.redo()}},_||{}),_=(_.ctrl=_.ctrl||{},_.ctrl.DataController=function(){var i={},n=new _.utils.ListenerHandler;function r(e){return void 0!==e.x00020010?new _.dicom.DicomElementsWrapper(e).dumpToObject():e}this.length=function(){return Object.keys(i).length},this.reset=function(){i=[]},this.get=function(e){return i[e]},this.setImage=function(e,t){i[e].image=t,e={type:"imagechange",value:[e,t]},n.fireEvent(e)},this.addNew=function(e,t,n){if(void 0!==i[e])throw new Error("Index already used in storage: "+e);i[e]={image:t,meta:r(n)}},this.update=function(e,t,n){e=i[e],e.image.appendSlice(t),t="",t=void 0!==n.x00020010?"InstanceNumber":"imageUid";e.meta=_.utils.mergeObjects(e.meta,r(n),t,"value")},this.addEventListener=function(e,t){n.add(e,t)},this.removeEventListener=function(e,t){n.remove(e,t)}},_||{}),y=(_.draw=_.draw||{},_.ctrl=_.ctrl||{},y||{}),_=(_.draw.getDrawPositionGroupId=function(e){return"slice-"+e.get(2)+"_frame-"+(4===e.length()?e.get(3):0)},_.draw.getPositionFromGroupId=function(e){var t=e.indexOf("_");return-1===t&&_.logger.warn("Badly formed PositionGroupId: "+e),{sliceNumber:e.substring(6,t),frameNumber:e.substring(t+7)}},_.draw.isNodeNameShape=function(e){return"shape"===e.name()},_.draw.isNodeNameShapeExtra=function(e){return e.name().startsWith("shape-")},_.draw.isNodeNameLabel=function(e){return"label"===e.name()},_.draw.isPositionNode=function(e){return"position-group"===e.name()},_.draw.isNodeWithId=function(t){return function(e){return e.id()===t}},_.draw.canNodeChangeColour=function(e){return"anchor"!==e.name()&&"label"!==e.name()},_.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+=_.draw.getHierarchyLog(n[r],t+" ");return i},_.ctrl.DrawController=function(m){var l=null;this.getCurrentPosGroup=function(){var e=m.getChildren(function(e){return e.id()===l}),t=null;return 1===e.length?t=e[0]:0===e.length?((t=new y.Group).name("position-group"),t.id(l),t.visible(!0),m.add(t)):_.logger.warn("Unexpected number of draw position groups."),t},this.reset=function(){m=null},this.activateDrawLayer=function(e,t){for(var n=[t],i=3;i<e.length();++i)n.push(i);l=e.toStringId(n);for(var r,o=m.getChildren(_.draw.isPositionNode),a=0,s=o.length;a<s;++a)r=!1,o[a].id()===l&&(r=!0),o[a].visible(r);m.draw()},this.getDrawDisplayDetails=function(){for(var e=[],t=m.getChildren(),n=0,i=t.length;n<i;++n)for(var r=_.math.getIndexFromStringId(t[n].id()),o=t[n].getChildren(),a=0,s=o.length;a<s;++a){var l,u=o[a].getChildren(_.draw.isNodeNameShape)[0],c=o[a].getChildren(_.draw.isNodeNameLabel)[0].getChildren()[0],d=u.className;"Line"===d&&(l=o[a].getChildren(_.draw.isNodeNameShapeExtra),u.closed()?d="Roi":0!==l.length&&(d=-1!==l[0].name().indexOf("triangle")?"Arrow":"Ruler")),"Rect"===d&&(d="Rectangle"),e.push({id:o[a].id(),position:r.toString(),type:d,color:u.stroke(),meta:c.meta})}return e},this.getDrawStoreDetails=function(){for(var e={},t=m.getChildren(_.draw.isPositionNode),n=0,i=t.length;n<i;++n)for(var r,o=0,a=(r=t[n].getChildren()).length;o<a;++o){for(var s,l=(s=r[o]).find(".anchor"),u=0;u<l.length;++u)l[u].remove();var c=s.find(".text");1!==c.length&&_.logger.warn("There should not be more than one text per shape."),e[s.id()]={meta:c[0].meta}}return e},this.setDrawings=function(e,t,n,i){for(var r=y.Node.create(e).getChildren(_.draw.isPositionNode),o=0,a=r.length;o<a;++o)for(var s=r[o],l=m.getChildren(_.draw.isNodeWithId(s.id()))[0],u=(void 0===l&&(l=new y.Group({id:s.id(),name:"position-group",visible:!1}),m.add(l)),s.getChildren()),c=0,d=u.length;c<d;++c){var g,x=u[0],S=(l.add(x),x.getChildren(_.draw.isNodeNameShape)[0]),S=new _.tool.DrawGroupCommand(x,S.className,m);S.onExecute=n,S.onUndo=n,t&&(g=t[x.id()],(x=x.getChildren(_.draw.isNodeNameLabel)[0].getText()).meta=g.meta,x.setText(_.utils.replaceFlags(x.meta.textExpr,x.meta.quantification))),S.execute(),i(S)}},this.updateDraw=function(e){var t=m.findOne("#"+e.id);if(void 0===t)_.logger.warn("[updateDraw] Cannot find group with id: "+e.id);else{for(var n=t.getChildren(_.draw.isNodeNameShape),i=0;i<n.length;++i)n[i].stroke(e.color);for(var r=t.getChildren(_.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);for(var a,s=t.getChildren(_.draw.isNodeNameLabel)[0],l=_.utils.getShadowColour(e.color),u=s.getChildren(),c=0;c<u.length;++c)u[c].fill(e.color),"Text"===u[c].className&&((a=u[c]).shadowColor(l),void 0!==e.meta&&(a.meta=e.meta,a.setText(_.utils.replaceFlags(a.meta.textExpr,a.meta.quantification)),s.setVisible(0!==a.meta.textExpr.length)));m.draw()}},this.isGroupVisible=function(e){var t=m.findOne("#"+e.id);return void 0===t?(_.logger.warn("[isGroupVisible] Cannot find node with id: "+e.id),!1):t.isVisible()},this.toogleGroupVisibility=function(e){var t=m.findOne("#"+e.id);return void 0===t?(_.logger.warn("[toogleGroupVisibility] Cannot find node with id: "+e.id),!1):(t.visible(!t.isVisible()),m.draw(),!0)},this.deleteDrawGroupId=function(t,e,n){var i=m.getChildren().getChildren(function(e){return e.id()===t});1===i.length?this.deleteDrawGroup(i[0],e,n):0===i.length?_.logger.warn("Can't delete group with id:'"+t+"', cannot find it."):_.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(_.draw.isNodeNameShape)[0],i=_.tool.GetShapeDisplayName(i),e=new _.tool.DeleteGroupCommand(e,i,m);e.onExecute=t,e.onUndo=t,e.execute(),n(e)},this.deleteDraws=function(e,t){for(var n=m.getChildren();n.length;)this.deleteDrawGroup(n[0],e,t)}},_||{}),_=(_.ctrl=_.ctrl||{},_.ctrl.LoadController=function(o){var a=this,s={},l=-1;function u(e,t,n,i){var r={loadtype:n},o=++l;r.loadid=o,t.onloadstart=function(e){s[o]={loader:t,isFirstItem:!0},c(a.onloadstart,r)(e)},t.onprogress=c(a.onprogress,r),t.onloaditem=function(e){var t={loadtype:n,loadid:o};void 0!==s[o]&&(t.isfirstitem=s[o].isFirstItem),c(a.onloaditem,t)(e),void 0!==s[o]&&s[o].isFirstItem&&(s[o].isFirstItem=!1)},t.onload=c(a.onload,r),t.onloadend=function(e){delete s[o],c(a.onloadend,r)(e)},t.onerror=c(a.onerror,r),t.onabort=c(a.onabort,r);try{t.load(e,i)}catch(e){return a.onerror({error:e,loadid:o}),void a.onloadend({loadid:o})}}function c(r,o){return function(e){for(var t=Object.keys(o),n=0;n<t.length;++n){var i=t[n];e[i]=o[i]}r(e)}}this.loadFiles=function(e){var t,n;"json"===e[0].name.split(".").pop().toLowerCase()?(t=e[0],n=new _.io.FilesLoader,u([t],n,"state")):(t=e,(n=new _.io.FilesLoader).setDefaultCharacterSet(o),u(t,n,"image"))},this.loadURLs=function(e,t){var n,i,r;"json"===e[0].split(".").pop().toLowerCase()?(n=e[0],i=t,r=new _.io.UrlsLoader,u([n],r,"state",i)):(n=e,r=t,(i=new _.io.UrlsLoader).setDefaultCharacterSet(o),u(n,i,"image",r))},this.loadImageObject=function(e){u(e,new _.io.MemoryLoader,"image")},this.abort=function(){for(var e=Object.keys(s),t=0;t<e.length;++t)s[t].loader.abort(),delete s[t]}},_.ctrl.LoadController.prototype.onloadstart=function(e){},_.ctrl.LoadController.prototype.onprogress=function(e){},_.ctrl.LoadController.prototype.onload=function(e){},_.ctrl.LoadController.prototype.onloadend=function(e){},_.ctrl.LoadController.prototype.onerror=function(e){},_.ctrl.LoadController.prototype.onabort=function(e){},_||{}),_=(_.ctrl=_.ctrl||{},_.ctrl.ToolboxController=function(t){var n=null,r=[],s={};function l(e,t){function i(e){var t;n&&(t=n[e.type])&&t(e)}return void 0===r[e]&&(r[e]=[]),void 0===r[e][t]&&(r[e][t]="keydown"===t?function(e){i(e)}:"touchend"===t?function(e){e.preventDefault(),i(e)}:function(e){var t,n;e.preventDefault(),t=e,n=_.gui.getEventOffset(t),t._x=n[0].x,t._y=n[0].y,2===n.length&&(t._x1=n[1].x,t._y1=n[1].y),i(e)}),r[e][t]}this.init=function(){for(var e in t)t[e].init();c.addEventListener("keydown",l("window","keydown"),!0)},this.getToolList=function(){return t},this.hasTool=function(e){return void 0!==this.getToolList()[e]},this.getSelectedTool=function(){return n},this.getSelectedToolEventHandler=function(e){return this.getSelectedTool()[e]},this.setSelectedTool=function(e){if(!this.hasTool(e))throw new Error("Unknown tool: '"+e+"'");n&&n.activate(!1),(n=t[e]).activate(!0)},this.setToolFeatures=function(e){this.getSelectedTool()&&this.getSelectedTool().setFeatures(e)},this.bindLayer=function(e,t){if(void 0!==s[t]){var n=s[t];n.unbindInteraction();for(var i=_.gui.interactionEventNames,r=0;r<i.length;++r)n.removeEventListener(i[r],l(n.getId(),i[r]))}e.bindInteraction();for(var o=_.gui.interactionEventNames,a=0;a<o.length;++a)e.addEventListener(o[a],l(e.getId(),o[a]));s[t]=e}},_||{}),_=(_.ctrl=_.ctrl||{},_.ctrl.ViewController=function(u){var i=this,r=null;if(void 0===u.getImage())throw new Error("View does not have an image, cannot setup controller");var o=new _.image.PlaneHelper(u.getImage().getGeometry().getRealSpacing(),u.getImage().getGeometry().getOrientation(),u.getOrientation());this.getPlaneHelper=function(){return o},this.initialise=function(){this.setWindowLevelPresetById(0),this.setCurrentPosition(this.getPositionFromPlanePoint(0,0))},this.getWindowLevelPresetsNames=function(){return u.getWindowPresetsNames()},this.addWindowLevelPresets=function(e){return u.addWindowPresets(e)},this.setWindowLevelPreset=function(e){u.setWindowLevelPreset(e)},this.setWindowLevelPresetById=function(e){u.setWindowLevelPresetById(e)},this.isPlaying=function(){return null!==r},this.getCurrentPosition=function(){return u.getCurrentPosition()},this.getCurrentIndex=function(){return u.getCurrentIndex()},this.getCurrentOrientedIndex=function(){var e,t=u.getCurrentIndex();return void 0!==u.getOrientation()&&(e=o.getImageDeOrientedVector3D(new _.math.Vector3D(t.get(0),t.get(1),t.get(2))),t=new _.math.Index([e.getX(),e.getY(),e.getZ()])),t},this.getScrollIndex=function(){return u.getScrollIndex()},this.getCurrentScrollIndexValue=function(){return u.getCurrentIndex().get(u.getScrollIndex())},this.getOrigin=function(e){return u.getOrigin(e)},this.getCurrentScrollPosition=function(){var e=u.getScrollIndex();return u.getCurrentPosition().get(e)},this.generateImageData=function(e,t){u.generateImageData(e,t)},this.setImage=function(e){u.setImage(e)},this.get2DSpacing=function(){var e=u.getImage().getGeometry().getSpacing();return[e.get(0),e.get(1)]},this.getRescaledImageValue=function(e){var t,n,i=u.getImage();if(i.canQuantify())return t=i.getGeometry(),e=t.worldToIndex(e),t.isIndexInBounds(e)?i.getRescaledValueAtIndex(e):n},this.getPixelUnit=function(){return u.getImage().getMeta().pixelUnit},this.getImageRegionValues=function(e,t){var n,i,r=u.getImage(),o=u.getOrientation(),a=this.getCurrentIndex(),s=!0,l=(_.math.isIdentityMat33(o)||(n=_.image.getSliceIterator(r,a,s,o),n=_.image.getIteratorValues(n),(l=r.getGeometry().getSize(o).getValues())[2]=1,l=new _.image.Size(l),(o=r.getGeometry().getSpacing(o).getValues())[2]=1,o=new _.image.Spacing(o),i=new _.math.Point3D(0,0,0),i=new _.image.Geometry(i,l,o),r=new _.image.Image(i,n),a=new _.math.Index([0,0,0]),s=!1),_.image.getRegionSliceIterator(r,a,s,e,t)),o=[];return o=l?_.image.getIteratorValues(l):o},this.getImageVariableRegionValues=function(e){var e=_.image.getVariableRegionSliceIterator(u.getImage(),this.getCurrentIndex(),!0,e),t=[];return t=e?_.image.getIteratorValues(e):t},this.canQuantifyImage=function(){return u.getImage().canQuantify()},this.canWindowLevel=function(){return u.getImage().canWindowLevel()},this.canScroll=function(){return u.getImage().canScroll(u.getOrientation())},this.getImageSize=function(){return u.getImage().getGeometry().getSize(u.getOrientation())},this.getImageWorldSize=function(){var e=u.getImage().getGeometry(),t=e.getSize(u.getOrientation()).get2D(),e=e.getSpacing(u.getOrientation()).get2D();return{x:t.x*e.x,y:t.y*e.y}},this.getImageRescaledDataRange=function(){return u.getImage().getRescaledDataRange()},this.equalImageMeta=function(e){for(var t=u.getImage().getMeta(),n=Object.keys(e),i=0;i<n.length;++i){var r=n[i];if(void 0===t[r])return!1;if(t[r]!==e[r])return!1}return!0},this.canSetPosition=function(e){return u.canSetPosition(e)},this.setCurrentPosition=function(e,t){return u.setCurrentPosition(e,t)},this.getPositionFromPlanePoint=function(e,t){var n=this.getCurrentScrollIndexValue(),e=new _.math.Point3D(e,t,n),t=o.getImageOrientedVector3D(e),n=u.getImage().getGeometry().pointToWorld(t);return this.getCurrentPosition().mergeWith3D(n)},this.getPlanePositionFromPosition=function(e){e=u.getImage().getGeometry().worldToPoint(e),e=o.getImageDeOrientedVector3D(e);return{x:e.getX(),y:e.getY()}},this.setCurrentIndex=function(e,t){return u.setCurrentIndex(e,t)},this.getPlanePositionFromPlanePoint=function(e){var t=this.getCurrentScrollIndexValue(),e=new _.math.Point3D(e.x,e.y,t),t=o.getTargetDeOrientedVector3D(e),e=u.getImage().getGeometry().getRealSpacing();return new _.math.Point3D(t.getX()*e.get(0),t.getY()*e.get(1),t.getZ()*e.get(2))},this.getOffset3DFromPlaneOffset=function(e){return o.getOffset3DFromPlaneOffset(e)},this.incrementIndex=function(e,t){return u.incrementIndex(e,t)},this.decrementIndex=function(e,t){return u.decrementIndex(e,t)},this.decrementScrollIndex=function(e){return u.decrementScrollIndex(e)},this.incrementScrollIndex=function(e){return u.incrementScrollIndex(e)},this.play=function(){var e,t,n;this.canScroll()&&(null===r?(t=(e=u.getImage()).getMeta().RecommendedDisplayFrameRate,t=u.getPlaybackMilliseconds(t),n=e.getGeometry().getSize().canScroll3D(),r=setInterval(function(){var e,t;(n?i.incrementScrollIndex():i.incrementIndex(3))||(t=i.getCurrentIndex().getValues(),e=u.getOrientation(),n?t[e.getThirdColMajorDirection()]=0:t[3]=0,e=new _.math.Index(t),t=u.getImage().getGeometry(),i.setCurrentPosition(t.indexToWorld(e)))},t)):this.stop())},this.stop=function(){null!==r&&(clearInterval(r),r=null)},this.getWindowLevel=function(){return{width:u.getCurrentWindowLut().getWindowLevel().getWidth(),center:u.getCurrentWindowLut().getWindowLevel().getCenter()}},this.setWindowLevel=function(e,t){u.setWindowLevel(e,t)},this.getColourMap=function(){return u.getColourMap()},this.setColourMap=function(e){u.setColourMap(e)},this.setViewAlphaFunction=function(e){u.setAlphaFunction(e)},this.setColourMapFromName=function(e){if(!_.tool.colourMaps[e])throw new Error("Unknown colour map: '"+e+"'");this.setColourMap(_.tool.colourMaps[e])}},_||{}),_=(_.dicom=_.dicom||{},_.dicom.isNativeLittleEndian=function(){return 0<new Int8Array(new Int16Array([1]).buffer)[0]},_.dicom.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},_.dicom.DataReader=function(l,t){void 0===t&&(t=!0);var e=_.dicom.isNativeLittleEndian(),a=t!==e,n=new DataView(l);this.readUint16=function(e){return n.getUint16(e,t)},this.readInt16=function(e){return n.getInt16(e,t)},this.readUint32=function(e){return n.getUint32(e,t)},this.readBigUint64=function(e){return n.getBigUint64(e,t)},this.readInt32=function(e){return n.getInt32(e,t)},this.readBigInt64=function(e){return n.getBigInt64(e,t)},this.readFloat32=function(e){return n.getFloat32(e,t)},this.readFloat64=function(e){return n.getFloat64(e,t)},this.readBinaryArray=function(e,t){for(var n,i,r=new Uint8Array(l,e,t),o=8*r.length,a=new Uint8Array(o),s=0;s<o;++s)n=s%8,i=Math.floor(s/8),a[s]=255*(0!=(r[i]&1<<n));return a},this.readUint8Array=function(e,t){return new Uint8Array(l,e,t)},this.readInt8Array=function(e,t){return new Int8Array(l,e,t)},this.readUint16Array=function(e,t){var n=Uint16Array.BYTES_PER_ELEMENT,i=t/n,r=null;if(e%n==0)r=new Uint16Array(l,e,i),a&&_.dicom.flipArrayEndianness(r);else for(var r=new Uint16Array(i),o=0;o<i;++o)r[o]=this.readUint16(e+n*o);return r},this.readInt16Array=function(e,t){var n=Int16Array.BYTES_PER_ELEMENT,i=t/n,r=null;if(e%n==0)r=new Int16Array(l,e,i),a&&_.dicom.flipArrayEndianness(r);else for(var r=new Int16Array(i),o=0;o<i;++o)r[o]=this.readInt16(e+n*o);return r},this.readUint32Array=function(e,t){var n=Uint32Array.BYTES_PER_ELEMENT,i=t/n,r=null;if(e%n==0)r=new Uint32Array(l,e,i),a&&_.dicom.flipArrayEndianness(r);else for(var r=new Uint32Array(i),o=0;o<i;++o)r[o]=this.readUint32(e+n*o);return r},this.readUint64Array=function(e,t){var n=BigUint64Array.BYTES_PER_ELEMENT,i=t/n,r=null;if(e%n==0)r=new BigUint64Array(l,e,i),a&&_.dicom.flipArrayEndianness(r);else for(var r=new BigUint64Array(i),o=0;o<i;++o)r[o]=this.readBigUint64(e+n*o);return r},this.readInt32Array=function(e,t){var n=Int32Array.BYTES_PER_ELEMENT,i=t/n,r=null;if(e%n==0)r=new Int32Array(l,e,i),a&&_.dicom.flipArrayEndianness(r);else for(var r=new Int32Array(i),o=0;o<i;++o)r[o]=this.readInt32(e+n*o);return r},this.readInt64Array=function(e,t){var n=BigInt64Array.BYTES_PER_ELEMENT,i=t/n,r=null;if(e%n==0)r=new BigInt64Array(l,e,i),a&&_.dicom.flipArrayEndianness(r);else for(var r=new BigInt64Array(i),o=0;o<i;++o)r[o]=this.readBigInt64(e+n*o);return r},this.readFloat32Array=function(e,t){var n=Float32Array.BYTES_PER_ELEMENT,i=t/n,r=null;if(e%n==0)r=new Float32Array(l,e,i),a&&_.dicom.flipArrayEndianness(r);else for(var r=new Float32Array(i),o=0;o<i;++o)r[o]=this.readFloat32(e+n*o);return r},this.readFloat64Array=function(e,t){var n=Float64Array.BYTES_PER_ELEMENT,i=t/n,r=null;if(e%n==0)r=new Float64Array(l,e,i),a&&_.dicom.flipArrayEndianness(r);else for(var r=new Float64Array(i),o=0;o<i;++o)r[o]=this.readFloat64(e+n*o);return r}},_.dicom.DataReader.prototype.readHex=function(e){e=this.readUint16(e).toString(16);return"0x0000".substring(0,6-e.length)+e.toUpperCase()},_||{}),_=(_.dicom=_.dicom||{},_.dicom.DataWriter=function(e,n){void 0===n&&(n=!0);var i=new DataView(e);this.useUnVrForPrivateSq=!1,this.writeUint8=function(e,t){return i.setUint8(e,t),e+Uint8Array.BYTES_PER_ELEMENT},this.writeInt8=function(e,t){return i.setInt8(e,t),e+Int8Array.BYTES_PER_ELEMENT},this.writeUint16=function(e,t){return i.setUint16(e,t,n),e+Uint16Array.BYTES_PER_ELEMENT},this.writeInt16=function(e,t){return i.setInt16(e,t,n),e+Int16Array.BYTES_PER_ELEMENT},this.writeUint32=function(e,t){return i.setUint32(e,t,n),e+Uint32Array.BYTES_PER_ELEMENT},this.writeUint64=function(e,t){return i.setBigUint64(e,t,n),e+BigUint64Array.BYTES_PER_ELEMENT},this.writeInt32=function(e,t){return i.setInt32(e,t,n),e+Int32Array.BYTES_PER_ELEMENT},this.writeInt64=function(e,t){return i.setBigInt64(e,t,n),e+BigInt64Array.BYTES_PER_ELEMENT},this.writeFloat32=function(e,t){return i.setFloat32(e,t,n),e+Float32Array.BYTES_PER_ELEMENT},this.writeFloat64=function(e,t){return i.setFloat64(e,t,n),e+Float64Array.BYTES_PER_ELEMENT},this.writeHex=function(e,t){t=parseInt(t.substring(2),16);return i.setUint16(e,t,n),e+Uint16Array.BYTES_PER_ELEMENT}},_.dicom.DataWriter.prototype.writeBinaryArray=function(e,t){if(t.length%8!=0)throw new Error("Cannot write boolean array as binary.");for(var n=null,i=0,r=t.length;i<r;i+=8){for(var n=0,o=0;o<8;++o)n+=(0===t[i+o]?0:1)<<o;e=this.writeUint8(e,n)}return e},_.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},_.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},_.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},_.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},_.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},_.dicom.DataWriter.prototype.writeUint64Array=function(e,t){for(var n=0,i=t.length;n<i;++n)e=this.writeUint64(e,t[n]);return e},_.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},_.dicom.DataWriter.prototype.writeInt64Array=function(e,t){for(var n=0,i=t.length;n<i;++n)e=this.writeInt64(e,t[n]);return e},_.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},_.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},_||{}),_=(_.dicom=_.dicom||{},_.dicom.DicomElementsWrapper=function(s){this.getDEFromKey=function(e){return s[e]},this.getFromKey=function(e,t){void 0===t&&(t=!1);var n=null,e=s[e];return n=void 0!==e?1===e.value.length&&!1===t?e.value[0]:e.value:n},this.dumpToObject=function(){for(var e,t=Object.keys(s),n={},i=0,r=t.length;i<r;++i)e=s[t[i]],n[this.getTagName(e.tag)]=this.getElementAsObject(e);return n},this.getTagName=function(e){var t=e.getNameFromDictionary();return t=null===t?e.getKey2():t},this.getElementAsObject=function(e){var t=null,n=_.dicom.isPixelDataTag(e.tag),i=e.vr;if("SQ"!==i||void 0===e.value||n)t=this.getElementValueAsString(e);else for(var t=[],r=e.value,o=null,a=0;a<r.length;++a){for(var o={},s=Object.keys(r[a]),l=0;l<s.length;++l){var u=r[a][s[l]],c=this.getTagName(u.tag);"Item"!==c&&(o[c]=this.getElementAsObject(u))}t.push(o)}return{value:t,group:e.tag.getGroup(),element:e.tag.getElement(),vr:i,vl:e.vl}},this.dump=function(){for(var e=Object.keys(s),t=(o=(o=(o="\n")+"# Dicom-File-Format\n"+"\n")+"# Dicom-Meta-Information-Header\n"+"# Used TransferSyntax: ",_.dicom.isNativeLittleEndian()?o+="Little Endian Explicit\n":o+="NOT Little Endian Explicit\n",null),n=!0,i=0,r=e.length;i<r;++i){var o,a,t=s[e[i]];n&&"0x0002"!==t.tag.getGroup()&&(o+="\n# Dicom-Data-Set\n# Used TransferSyntax: ",a=_.dicom.cleanString(s.x00020010.value[0]),o=o+_.dicom.getTransferSyntaxName(a)+"\n",n=!1),o+=this.getElementAsString(t)+"\n"}return o}},_.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(_.dicom.isPixelDataTag(e.tag)&&e.undefinedLength)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.substring(0,4),10),parseInt(r.substring(o,o+2),10)-1,parseInt(r.substring(a,a+2),10)).toLocaleDateString()}else if("TM"===e.vr&&t){o=e.value[0];n=o.substring(0,2)+":"+(4<=o.length?o.substring(2,4):"00")+":"+(6<=o.length?o.substring(4,6):"00")}else for(var s=!1,l=(0!==e.vr.length&&(s="O"===e.vr[0].toUpperCase()),"FL"===e.vr||"FD"===e.vr||"DS"===e.vr),u="",c=0,d=e.value.length;c<d;++c){var g,u="";if(0!==c&&(u+="\\"),l?("string"==typeof(g=e.value[c])&&(g=_.dicom.cleanString(g)),!i(g=Number(g))&&t?u+=g.toPrecision(4):u+=g.toString()):s?(g=e.value[c].toString(16),u+=g="OB"===e.vr?"00".substring(0,2-g.length)+g:"0000".substring(0,4-g.length)+g):"string"==typeof e.value[c]?u+=_.dicom.cleanString(e.value[c]):u+=e.value[c],!(n.length+u.length<=65)){n+="...";break}n+=u}return n},_.dicom.DicomElementsWrapper.prototype.getElementValueAsStringFromKey=function(e){return this.getElementValueAsString(this.getDEFromKey(e))},_.dicom.DicomElementsWrapper.prototype.getElementAsString=function(e,t){t=t||"";var n=e.tag.getNameFromDictionary(),i=e.value.length,r=!1,o=(0!==e.vr.length&&(r="O"===e.vr[0].toUpperCase()),_.dicom.isItemDelimitationItemTag(e.tag)||_.dicom.isSequenceDelimitationItemTag(e.tag)?i=0:r&&(i=1),_.dicom.isPixelDataTag(e.tag)&&e.undefinedLength),a=null,s=(a=(a=(a=(a="(")+e.tag.getGroup().substring(2).toLowerCase()+",")+e.tag.getElement().substring(2).toLowerCase())+") "+e.vr,"SQ"!==e.vr&&1===e.value.length&&""===e.value[0]?(a+=" (no value available)",i=0):"na"===e.vr?a=a+" "+e.value[0]:o?a+=" (PixelSequence #="+i+")":a="SQ"===e.vr?(a+=" (Sequence with",e.undefinedLength?a+=" undefined":a+=" explicit",(a+=" length #=")+e.value.length+")"):r||"pi"===e.vr||"UL"===e.vr||"US"===e.vr||"SL"===e.vr||"SS"===e.vr||"FL"===e.vr||"FD"===e.vr||"AT"===e.vr?(a+=" ")+this.getElementValueAsString(e,!1):(a+=" [")+this.getElementValueAsString(e,!1)+"]",55-a.length);if(0<s)for(var l=0;l<s;++l)a+=" ";a+=" # ",e.vl<100&&(a+=" "),e.vl<10&&(a+=" "),a=(a=(a+=e.vl)+", "+i)+" "+(null!==n?n:"Unknown Tag & Data");var u=null;if("SQ"===e.vr){for(var c=0,d=e.value.length;c<d;++c){var g=e.value[c],x=Object.keys(g);if(0!==x.length){var S=g.xFFFEE000,u="(Item with";S.undefinedLength?u+=" undefined":u+=" explicit",u+=" length #="+(x.length-1)+")",S.value=[u],S.vr="na";for(var a=(a+="\n")+this.getElementAsString(S,t+" "),m=0,h=x.length;m<h;++m)"xFFFEE000"!==x[m]&&(a=(a+="\n")+this.getElementAsString(g[x[m]],t+" "));u="(ItemDelimitationItem",S.undefinedLength||(u+=" for re-encoding"),u+=")";S={tag:_.dicom.getItemDelimitationItemTag(),vr:"na",vl:"0",value:[u]};a=(a+="\n")+this.getElementAsString(S,t+" ")}}u="(SequenceDelimitationItem",e.undefinedLength||(u+=" for re-encod."),u+=")";r={tag:_.dicom.getSequenceDelimitationItemTag(),vr:"na",vl:"0",value:[u]};a=(a+="\n")+this.getElementAsString(r,t)}else if(o){for(var p=null,f=0,y=e.value.length;f<y;++f)a+="\n",(p=e.value[f]).vr="pi",a+=this.getElementAsString(p,t+" ");i={tag:_.dicom.getSequenceDelimitationItemTag(),vr:"na",vl:"0",value:["(SequenceDelimitationItem)"]};a=(a+="\n")+this.getElementAsString(i,t)}return t+a},_.dicom.DicomElementsWrapper.prototype.getFromGroupElement=function(e,t){return this.getFromKey(new _.dicom.Tag(e,t).getKey())},_.dicom.DicomElementsWrapper.prototype.getFromName=function(e){var t=null,e=_.dicom.getTagFromDictionary(e);return t=null!==e?this.getFromKey(e.getKey()):t},_.dicom.DicomElementsWrapper.prototype.getImageSize=function(){var e=this.getFromKey("x00280010");if(!e)throw new Error("Missing or empty DICOM image number of rows");var t=this.getFromKey("x00280011");if(t)return new _.image.Size([t,e,1]);throw new Error("Missing or empty DICOM image number of columns")},_.dicom.DicomElementsWrapper.prototype.getPixelSpacing=function(){for(var e=1,t=1,n=["x00280030","x00181164","x00182010","x00280034"],i=0;i<n.length;++i){var r=this.getFromKey(n[i],!0);if(r&&2===r.length){e=parseFloat(r[0]),t=parseFloat(r[1]);break}}return 0===t&&(_.logger.warn("Zero column spacing."),t=1),0===e&&(_.logger.warn("Zero row spacing."),e=1),new _.image.Spacing([t,e,1])},_.dicom.DicomElementsWrapper.prototype.getTime=function(){},_.dicom.DicomElementsWrapper.prototype.getPixelUnit=function(){var e=this.getFromKey("x00281054");return(e=e||this.getFromKey("x00541001"))||"CT"===this.getFromKey("x00080060")&&(e="HU"),e},_.dicom.getFileListFromDicomDir=function(e){var t=new _.dicom.DicomParser,e=(t.parse(e),t.getRawDicomElements());if(void 0===e.x00041220||void 0===e.x00041220.value)_.logger.warn("No Directory Record Sequence found in DICOMDIR.");else{var n=e.x00041220.value;if(0!==n.length){for(var i=[],r=null,o=null,a=0;a<n.length;++a)if(void 0!==n[a].x00041430&&void 0!==n[a].x00041430.value){var s=_.dicom.cleanString(n[a].x00041430.value[0]);if("STUDY"===s)i.push(o=[]);else if("SERIES"===s)o.push(r=[]);else if("IMAGE"===s&&void 0!==n[a].x00041500&&void 0!==n[a].x00041500.value){for(var l=n[a].x00041500.value,u="",c=0;c<l.length;++c)0!==c&&(u+="/"),u+=_.dicom.cleanString(l[c]);r.push(u)}}return i}_.logger.warn("The Directory Record Sequence of the DICOMDIR is empty.")}},_||{}),_=(_.dicom=_.dicom||{},_.getVersion=function(){return"0.31.0-beta.21"},_.dicom.hasDicomPrefix=function(e){return"DICM"===new Uint8Array(e,128,4).reduce(function(e,t){return e+String.fromCharCode(t)},"")},_.dicom.cleanString=function(e){var t=e;return t=e&&(t=e.trim())[t.length-1]===String.fromCharCode("u200B")?t.substring(0,t.length-1):t},_.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},_.dicom.DefaultTextDecoder=function(){this.decode=function(e){for(var t="",n=0,i=e.length;n<i;++n)t+=String.fromCharCode(e[n]);return t}},_.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.substring(i,i+1)];r&&(n+=r)}return n},_.dicom.getOrientationName=function(e){var t;return _.utils.arrayEquals(e,[1,0,0,0,1,0])?t="axial":_.utils.arrayEquals(e,[1,0,0,0,0,-1])?t="coronal":_.utils.arrayEquals(e,[0,1,0,0,0,-1])&&(t="sagittal"),t},_.dicom.isImplicitTransferSyntax=function(e){return"1.2.840.10008.1.2"===e},_.dicom.isBigEndianTransferSyntax=function(e){return"1.2.840.10008.1.2.2"===e},_.dicom.isJpegBaselineTransferSyntax=function(e){return"1.2.840.10008.1.2.4.50"===e||"1.2.840.10008.1.2.4.51"===e},_.dicom.isJpegRetiredTransferSyntax=function(e){return null!==e.match(/1.2.840.10008.1.2.4.5/)&&!_.dicom.isJpegBaselineTransferSyntax()&&!_.dicom.isJpegLosslessTransferSyntax()||null!==e.match(/1.2.840.10008.1.2.4.6/)},_.dicom.isJpegLosslessTransferSyntax=function(e){return"1.2.840.10008.1.2.4.57"===e||"1.2.840.10008.1.2.4.70"===e},_.dicom.isJpeglsTransferSyntax=function(e){return null!==e.match(/1.2.840.10008.1.2.4.8/)},_.dicom.isJpeg2000TransferSyntax=function(e){return null!==e.match(/1.2.840.10008.1.2.4.9/)},_.dicom.isRleTransferSyntax=function(e){return null!==e.match(/1.2.840.10008.1.2.5/)},_.dicom.getSyntaxDecompressionName=function(e){var t=null;return _.dicom.isJpeg2000TransferSyntax(e)?t="jpeg2000":_.dicom.isJpegBaselineTransferSyntax(e)?t="jpeg-baseline":_.dicom.isJpegLosslessTransferSyntax(e)?t="jpeg-lossless":_.dicom.isRleTransferSyntax(e)&&(t="rle"),t},_.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||_.dicom.isJpegBaselineTransferSyntax(e)||_.dicom.isJpegLosslessTransferSyntax(e)||_.dicom.isJpeg2000TransferSyntax(e)||_.dicom.isRleTransferSyntax(e)},_.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":_.dicom.isJpegBaselineTransferSyntax(e)?t="1.2.840.10008.1.2.4.50"===e?"JPEG Baseline":"JPEG Extended, Process 2+4":_.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":_.dicom.isJpegRetiredTransferSyntax(e)?t="Retired JPEG":_.dicom.isJpeglsTransferSyntax(e)?t="JPEG-LS":_.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":_.dicom.isRleTransferSyntax(e)&&(t="RLE"),t},_.dicom.guessTransferSyntax=function(e){var t=e.tag.getGroup();if("0x0800"!==t&&"0x0008"!==t)throw new Error("Not a valid DICOM file (no magic DICM word found and first element not in 0x0008 group)");var n=e.vr,i=n.charCodeAt(0),n=n.charCodeAt(1),i=!(65<=i&&i<=90&&65<=n&&n<=90),n=null;if("0x0008"===t)n=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)");n="1.2.840.10008.1.2.2"}t={tag:new _.dicom.Tag("0x0002","0x0010"),vr:"UI"};return t.value=[n+" "],t.vl=t.value[0].length,t.startOffset=e.startOffset,t.endOffset=t.startOffset+t.vl,t},_.dicom.getTypedArray=function(t,e,n){var i=null;try{8===t?i=new(0===e?Uint8Array:Int8Array)(n):16===t?i=new(0===e?Uint16Array:Int16Array)(n):32===t&&(i=new(0===e?Uint32Array:Int32Array)(n))}catch(e){e instanceof RangeError&&(t=Math.floor(Math.log(n)/Math.log(2)),_.logger.error("Cannot allocate array of size: "+n+" (>2^"+t+")."))}return i},_.dicom.is32bitVLVR=function(e){return _.dicom.vr32bitVL.includes(e)},_.dicom.getDataElementPrefixByteSize=function(e,t){return!t&&_.dicom.is32bitVLVR(e)?12:8},_.dicom.DicomParser=function(){this.dicomElements={};var t,n=new _.dicom.DefaultTextDecoder,i=n;this.decodeString=function(e){return n.decode(e)},this.decodeSpecialString=function(e){return i.decode(e)},this.getDefaultCharacterSet=function(){return t},this.setDefaultCharacterSet=function(e){t=e,this.setCharacterSet(e)},this.setDecoderCharacterSet=function(e){i=new TextDecoder(e)}},_.dicom.DicomParser.prototype.getRawDicomElements=function(){return this.dicomElements},_.dicom.DicomParser.prototype.getDicomElements=function(){return new _.dicom.DicomElementsWrapper(this.dicomElements)},_.dicom.DicomParser.prototype.readTag=function(e,t){var n=e.readHex(t),e=(t+=Uint16Array.BYTES_PER_ELEMENT,e.readHex(t));return t+=Uint16Array.BYTES_PER_ELEMENT,{tag:new _.dicom.Tag(n,e),endOffset:t}},_.dicom.DicomParser.prototype.readItemDataElement=function(e,t,n){var i={},r=this.readDataElement(e,t,n);if(t=r.endOffset,_.dicom.isSequenceDelimitationItemTag(r.tag))return{data:i,endOffset:r.endOffset,isSeqDelim:!0};if(i[r.tag.getKey()]={tag:r.tag,vr:"NONE",vl:r.vl,undefinedLength:r.undefinedLength},r.undefinedLength)for(var o=!1;!o;)t=(r=this.readDataElement(e,t,n)).endOffset,(o=_.dicom.isItemDelimitationItemTag(r.tag))||(i[r.tag.getKey()]=r);else{var a=t;for(t-=r.vl;t<a;)t=(r=this.readDataElement(e,t,n)).endOffset,i[r.tag.getKey()]=r}return{data:i,endOffset:t,isSeqDelim:!1}},_.dicom.DicomParser.prototype.readPixelItemDataElement=function(e,t,n){for(var i=[],r=this.readDataElement(e,t,n),o=r.vl,a=(t=r.endOffset,!1);!a;)t=(r=this.readDataElement(e,t,n)).endOffset,(a=_.dicom.isSequenceDelimitationItemTag(r.tag))||(r.vr="OB",i.push(r));return{data:i,endOffset:t,offsetTableVl:o}},_.dicom.DicomParser.prototype.readDataElement=function(e,t,n){var i=this.readTag(e,t),r=i.tag,i=(t=i.endOffset,null),o=!1,a=(r.isWithVR()?n?(null===(i=r.getVrFromDictionary())&&(i="UN"),o=!0):(i=this.decodeString(e.readUint8Array(t,2)),t+=2*Uint8Array.BYTES_PER_ELEMENT,(o=_.dicom.is32bitVLVR(i))&&(t+=2*Uint8Array.BYTES_PER_ELEMENT)):(i="NONE",o=!0),0),o=(o?(a=e.readUint32(t),t+=Uint32Array.BYTES_PER_ELEMENT):(a=e.readUint16(t),t+=Uint16Array.BYTES_PER_ELEMENT),!1),s=(4294967295===a&&(o=!0,a=0),r.isPrivate()&&"UN"===i&&0===a&&(i="SQ"),t),l=s+a,u=null;if(_.dicom.isPixelDataTag(r)&&o){var c=this.readPixelItemDataElement(e,t,n);t=c.endOffset,s+=c.offsetTableVl,u=c.data,a=(l=t)-s}else if("SQ"===i){var d,u=[];if(o){for(var g=!1;!g;)g=(d=this.readItemDataElement(e,t,n)).isSeqDelim,t=d.endOffset,g||u.push(d.data);a=(l=t)-s}else if(0!==a){for(var x=t+a;t<x;)d=this.readItemDataElement(e,t,n),u.push(d.data),t=d.endOffset;a=(l=t)-s}}c={tag:r,vr:i,vl:a,startOffset:s,endOffset:l};return o&&(c.undefinedLength=o),u&&(c.items=u),c},_.dicom.DicomParser.prototype.interpretElement=function(e,t,n,i){var r=e.tag,o=e.vl,a=e.vr,s=e.startOffset,l=null,r=_.dicom.isPixelDataTag(r),u=_.dicom.vrTypes[a];if(r)if(e.undefinedLength){for(var l=[],c=0;c<e.items.length;++c)l.push(this.interpretElement(e.items[c],t,n,i));delete e.items}else if(8<i&&"OB"===a&&_.logger.warn("Reading DICOM pixel data with bitsAllocated>8 and OB VR."),l=[],1===i)l.push(t.readBinaryArray(s,o));else if(8===i)0===n?l.push(t.readUint8Array(s,o)):l.push(t.readInt8Array(s,o));else{if(16!==i)throw new Error("Unsupported bits allocated: "+i);0===n?l.push(t.readUint16Array(s,o)):l.push(t.readInt16Array(s,o))}else if(void 0!==u)if("Uint8"===u)l=t.readUint8Array(s,o);else if("Uint16"===u)l=t.readUint16Array(s,o);else if("Uint32"===u)l=t.readUint32Array(s,o);else if("Uint64"===u)l=t.readUint64Array(s,o);else if("Int16"===u)l=t.readInt16Array(s,o);else if("Int32"===u)l=t.readInt32Array(s,o);else if("Int64"===u)l=t.readInt64Array(s,o);else if("Float32"===u)l=t.readFloat32Array(s,o);else if("Float64"===u)l=t.readFloat64Array(s,o);else{if("string"!==u)throw Error("Unknown VR type: "+u);r=t.readUint8Array(s,o);l=(l=_.dicom.charSetString.includes(a)?this.decodeSpecialString(r):this.decodeString(r)).split("\\")}else if("ox"===a)l=8===i?t.readUint8Array(s,o):t.readUint16Array(s,o);else if("xs"===a)l=0===n?t.readUint16Array(s,o):t.readInt16Array(s,o);else if("AT"===a){var d=t.readUint16Array(s,o);l=[];for(var g=0,x=d.length;g<x;g+=2){var S=d[g].toString(16),m=d[g+1].toString(16),h=(h=(h="(")+("0000".substring(0,4-S.length)+S.toUpperCase())+",")+("0000".substring(0,4-m.length)+m.toUpperCase())+")";l.push(h)}}else if("SQ"===a){l=[];for(var p=0;p<e.items.length;++p){for(var f=e.items[p],y={},D=Object.keys(f),v=0;v<D.length;++v){var C=f[D[v]];C.value=this.interpretElement(C,t,n,i),y[D[v]]=C}l.push(y)}delete e.items}else"NONE"===a?l=[]:_.logger.warn("Unknown VR: "+a);return l},_.dicom.DicomParser.prototype.interpret=function(e,t,n,i){for(var r=Object.keys(e),o=0;o<r.length;++o){var a=e[r[o]];void 0===a.value&&(a.value=this.interpretElement(a,t,n,i)),delete a.startOffset,delete a.endOffset}},_.dicom.DicomParser.prototype.parse=function(e){var t=0,n="",i=null,r=new _.dicom.DataReader(e),o=new _.dicom.DataReader(e),t=128,a=this.decodeString(r.readUint8Array(t,4));if(t+=4*Uint8Array.BYTES_PER_ELEMENT,"DICM"===a){(i=this.readDataElement(r,t,!1)).value=this.interpretElement(i,r),t=i.endOffset,this.dicomElements[i.tag.getKey()]=i;for(var s=t+parseInt(i.value[0],10);t<s;)t=(i=this.readDataElement(r,t,!1)).endOffset,this.dicomElements[i.tag.getKey()]=i;if(void 0===(i=this.dicomElements.x00020010))throw new Error("Not a valid DICOM file (no TransferSyntaxUID found)");i.value=this.interpretElement(i,r),n=_.dicom.cleanString(i.value[0])}else{_.logger.warn("No DICM prefix, trying to guess tansfer syntax.");i=this.readDataElement(o,0,!1),a=_.dicom.guessTransferSyntax(i);this.dicomElements[a.tag.getKey()]=a,n=_.dicom.cleanString(a.value[0]),t=0}if(!_.dicom.isReadSupportedTransferSyntax(n))throw new Error("Unsupported DICOM transfer syntax: '"+n+"' ("+_.dicom.getTransferSyntaxName(n)+")");var l,u,c,d=!1;for(_.dicom.isImplicitTransferSyntax(n)&&(d=!0),_.dicom.isBigEndianTransferSyntax(n)&&(o=new _.dicom.DataReader(e,!1));t<e.byteLength;)t=(i=this.readDataElement(o,t,d)).endOffset,void 0===this.dicomElements[i.tag.getKey()]?this.dicomElements[i.tag.getKey()]=i:_.logger.warn("Not saving duplicate tag: "+i.tag.getKey());if(isNaN(t))throw new Error("Problem while parsing, bad offset");if(e.byteLength!==t&&_.logger.warn("Did not reach the end of the buffer: "+t+" != "+e.byteLength),void 0!==this.dicomElements.x7FE00010&&(void(l=0)!==(i=this.dicomElements.x00280103)?(i.value=this.interpretElement(i,o),l=i.value[0]):_.logger.warn("Reading DICOM pixel data with default pixelRepresentation."),u=16,void 0!==(i=this.dicomElements.x00280100)?(i.value=this.interpretElement(i,o),u=i.value[0]):_.logger.warn("Reading DICOM pixel data with default bitsAllocated.")),void 0!==this.getDefaultCharacterSet()&&this.setDecoderCharacterSet(this.getDefaultCharacterSet()),void 0!==(i=this.dicomElements.x00080005)&&(i.value=this.interpretElement(i,o),1===i.value.length?c=_.dicom.cleanString(i.value[0]):(c=_.dicom.cleanString(i.value[1]),_.logger.warn("Unsupported character set with code extensions: '"+c+"'.")),this.setDecoderCharacterSet(_.dicom.getUtfLabel(c))),this.interpret(this.dicomElements,o,l,u),void 0!==(i=this.dicomElements.x7FE00010)&&i.undefinedLength){var g=1,x=(void 0!==this.dicomElements.x00280008&&(g=_.dicom.cleanString(this.dicomElements.x00280008.value[0])),i.value);if(1<x.length&&x.length>g){for(var S=x.length/g,m=[],h=0;h<g;++h){for(var p=h*S,f=0,y=0;y<S;++y)f+=x[p+y].length;for(var D=new x[0].constructor(f),v=0,C=0;C<S;++C)D.set(x[p+C],v),v+=x[p+C].length;m[h]=D}i.value=m}}},_||{}),_=(_.dicom=_.dicom||{},_.dicom.Tag=function(e,t){if(!e||void 0===e)throw new Error("Cannot create tag with no group.");if(6!==e.length||!e.startsWith("0x"))throw new Error("Cannot create tag with badly formed group.");if(!t||void 0===t)throw new Error("Cannot create tag with no element.");if(6!==t.length||!t.startsWith("0x"))throw new Error("Cannot create tag with badly formed element.");this.getGroup=function(){return e},this.getElement=function(){return t}},_.dicom.Tag.prototype.equals=function(e){return null!=e&&this.getGroup()===e.getGroup()&&this.getElement()===e.getElement()},_.dicom.tagCompareFunction=function(e,t){var n=parseInt(e.getGroup())-parseInt(t.getGroup());return n=0===n?parseInt(e.getElement())-parseInt(t.getElement()):n},_.dicom.Tag.prototype.getKey=function(){return"x"+this.getGroup().substring(2)+this.getElement().substring(2)},_.dicom.Tag.prototype.getKey2=function(){return this.getGroup().substring(2)+this.getElement().substring(2)},_.dicom.Tag.prototype.getGroupName=function(){return _.dicom.TagGroups[this.getGroup().substring(1)]},_.dicom.getTagFromKey=function(e){return new _.dicom.Tag("0x"+e.substring(1,5),"0x"+e.substring(5,9))},_.dicom.Tag.prototype.isWithVR=function(){var e=this.getElement();return!("0xFFFE"===this.getGroup()&&("0xE000"===e||"0xE00D"===e||"0xE0DD"===e))},_.dicom.Tag.prototype.isPrivate=function(){return parseInt(this.getGroup().substring(2),16)%2==1},_.dicom.Tag.prototype.getInfoFromDictionary=function(){var e=null;return e=void 0!==_.dicom.dictionary[this.getGroup()]&&void 0!==_.dicom.dictionary[this.getGroup()][this.getElement()]?_.dicom.dictionary[this.getGroup()][this.getElement()]:e},_.dicom.Tag.prototype.getVrFromDictionary=function(){var e=null,t=this.getInfoFromDictionary();return e=null!==t?t[0]:e},_.dicom.Tag.prototype.getNameFromDictionary=function(){var e=null,t=this.getInfoFromDictionary();return e=null!==t?t[2]:e},_.dicom.getTransferSyntaxUIDTag=function(){return new _.dicom.Tag("0x0002","0x0010")},_.dicom.getFileMetaInformationGroupLengthTag=function(){return new _.dicom.Tag("0x0002","0x0000")},_.dicom.isFileMetaInformationGroupLengthTag=function(e){return e.equals(_.dicom.getFileMetaInformationGroupLengthTag())},_.dicom.getItemTag=function(){return new _.dicom.Tag("0xFFFE","0xE000")},_.dicom.isItemTag=function(e){return e.equals(_.dicom.getItemTag())},_.dicom.getItemDelimitationItemTag=function(){return new _.dicom.Tag("0xFFFE","0xE00D")},_.dicom.isItemDelimitationItemTag=function(e){return e.equals(_.dicom.getItemDelimitationItemTag())},_.dicom.getSequenceDelimitationItemTag=function(){return new _.dicom.Tag("0xFFFE","0xE0DD")},_.dicom.isSequenceDelimitationItemTag=function(e){return e.equals(_.dicom.getSequenceDelimitationItemTag())},_.dicom.getPixelDataTag=function(){return new _.dicom.Tag("0x7FE0","0x0010")},_.dicom.isPixelDataTag=function(e){return e.equals(_.dicom.getPixelDataTag())},_.dicom.getTagFromDictionary=function(e){if(null==e)return null;for(var t=null,n=null,i=_.dicom.dictionary,r=Object.keys(i),o=!1,a=0,s=r.length;a<s;++a){for(var l,t=r[a],u=0,c=(l=Object.keys(i[t])).length;u<c;++u)if(n=l[u],i[t][n][2]===e){o=!0;break}if(o)break}var d=null;return d=o?new _.dicom.Tag(t,n):d},_||{}),l=(_.dicom=_.dicom||{},_.dicom.getDwvUIDPrefix=function(){return"1.2.826.0.1.3680043.9.7278.1"},0),_=(_.dicom.getUID=function(e){var t=_.dicom.getDwvUIDPrefix()+".",n="";if("ImplementationClassUID"===e)n=t+_.getVersion();else{var i="."+(new Date).toISOString().replace(/\D/g,"").substring(0,14),r="."+(l+=1),n=t,o=Math.min(e.length,64-(t.length+r.length+i.length));if(1<o){for(var a="",s=0;s<o;++s)a+=e.charCodeAt(s);n+=a.substring(0,o)}n+=i+r}return n},_.dicom.isEven=function(e){return e%2==0},_.dicom.isTypedArrayVr=function(e){e=_.dicom.vrTypes[e];return void 0!==e&&"string"!==e},_.dicom.isStringVr=function(e){e=_.dicom.vrTypes[e];return void 0!==e&&"string"===e},_.dicom.isVrToPad=function(e){return _.dicom.isStringVr(e)||"OB"===e},_.dicom.getVrPad=function(e){var t=0;return t=_.dicom.isStringVr(e)?"UI"===e?"\0":" ":t},_.dicom.uint8ArrayPush=function(e,t){var n=new Uint8Array(e.length+1);return n.set(e),n.set(t,e.length),n},_.dicom.padOBValue=function(e){if(null==e||void 0===e.length)throw new Error("Cannot pad undefined or null OB value.");if(0!==e.length&&void 0!==e[0].length){for(var t=0,n=0;n<e.length;++n)t+=e[n].length;_.dicom.isEven(t)||(e[e.length-1]=_.dicom.uint8ArrayPush(e[e.length-1],0))}else _.dicom.isEven(e.length)||(e=_.dicom.uint8ArrayPush(e,0));return e},_.dicom.flattenArrayOfTypedArrays=function(e){var t=e.length,n=e[0].length;if(void 0===n)return e;for(var i=new e[0].constructor(t*n),r=0;r<t;r++)i.set(e[r],r*n);return i},_.dicom.DefaultTextEncoder=function(){this.encode=function(e){for(var t=new Uint8Array(e.length),n=0,i=e.length;n<i;++n)t[n]=e.charCodeAt(n);return t}},_.dicom.DicomWriter=function(){this.useUnVrForPrivateSq=!1;var i={copy:function(e){return e},remove:function(){return null},clear:function(e){return e.value=[],e},replace:function(e,t){return e.value=[t],e}},t=(this.rules={default:{action:"copy",value:null}},new _.dicom.DefaultTextEncoder),n=t;this.encodeString=function(e){return t.encode(e)},this.encodeSpecialString=function(e){return n.encode(e)},this.useSpecialTextEncoder=function(){n=new TextEncoder},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=e.tag.getGroupName(),n=e.tag.getNameFromDictionary(),n=void 0!==this.rules[e.tag.getKey()]?this.rules[e.tag.getKey()]:null!==n&&void 0!==this.rules[n]?this.rules[n]:void 0!==this.rules[t]?this.rules[t]:this.rules.default;return i[n.action](e,n.value)}},_.dicom.DicomWriter.prototype.writeDataElementItems=function(e,t,n,i){for(var r=0;r<n.length;++r){var o=n[r],a=Object.keys(o);if(0!==a.length){var s=!1,l=(void 0!==o.xFFFEE000.undefinedLength&&(s=o.xFFFEE000.undefinedLength),{tag:_.dicom.getItemTag(),vr:"NONE",vl:s?4294967295:o.xFFFEE000.vl,value:[]});t=this.writeDataElement(e,l,t,i);for(var u=0;u<a.length;++u)"xFFFEE000"!==a[u]&&"xFFFEE00D"!==a[u]&&(t=this.writeDataElement(e,o[a[u]],t,i));s&&(l={tag:_.dicom.getItemDelimitationItemTag(),vr:"NONE",vl:0,value:[]},t=this.writeDataElement(e,l,t,i))}}return t},_.dicom.DicomWriter.prototype.writeDataElementValue=function(e,t,n,i,r){var o=n;if("NONE"!==t.vr)if(i instanceof Uint8Array)n=i.length===8*t.vl?e.writeBinaryArray(n,i):e.writeUint8Array(n,i);else if(i instanceof Int8Array)n=e.writeInt8Array(n,i);else if(i instanceof Uint16Array)n=e.writeUint16Array(n,i);else if(i instanceof Int16Array)n=e.writeInt16Array(n,i);else if(i instanceof Uint32Array)n=e.writeUint32Array(n,i);else if(i instanceof Int32Array)n=e.writeInt32Array(n,i);else if(i instanceof BigUint64Array)n=e.writeUint64Array(n,i);else if(i instanceof BigInt64Array)n=e.writeInt64Array(n,i);else{var a=_.dicom.vrTypes[t.vr];if(void 0!==a)if("Uint8"===a)n=e.writeUint8Array(n,i);else if("Uint16"===a)n=e.writeUint16Array(n,i);else if("Int16"===a)n=e.writeInt16Array(n,i);else if("Uint32"===a)n=e.writeUint32Array(n,i);else if("Int32"===a)n=e.writeInt32Array(n,i);else if("Uint64"===a)n=e.writeUint64Array(n,i);else if("Int64"===a)n=e.writeInt64Array(n,i);else if("Float32"===a)n=e.writeFloat32Array(n,i);else if("Float64"===a)n=e.writeFloat64Array(n,i);else{if("string"!==a)throw Error("Unknown VR type: "+a);n=e.writeUint8Array(n,i)}else if("SQ"===t.vr)n=this.writeDataElementItems(e,n,i,r);else if("AT"===t.vr)for(var s=0;s<i.length;++s){var l=i[s]+"",u=l.substring(1,5),l=l.substring(6,10),u=parseInt(u,16),l=parseInt(l,16),u=new Uint16Array([u,l]);n=e.writeUint16Array(n,u)}else _.logger.warn("Unknown VR: "+t.vr)}return"SQ"!==t.vr&&"NONE"!==t.vr&&(a=n-o)!==t.vl&&_.logger.warn("Offset difference and VL are not equal: "+a+" != "+t.vl+", vr:"+t.vr),n},_.dicom.DicomWriter.prototype.writePixelDataElementValue=function(e,t,n,i,r){var o=!1;if(o=void 0!==t.undefinedLength?t.undefinedLength:o){var a={};a.xFFFEE000={tag:_.dicom.getItemTag(),vr:"NONE",vl:0,value:[]};for(var s=0;s<i.length;++s)a[s]={tag:_.dicom.getItemTag(),vr:t.vr,vl:i[s].length,value:i[s]};n=this.writeDataElementItems(e,n,[a],r)}else{o=i[0];1<i.length&&(o=_.dicom.flattenArrayOfTypedArrays(i)),n=this.writeDataElementValue(e,t,n,o,r)}return n},_.dicom.DicomWriter.prototype.writeDataElement=function(e,t,n,i){var r=t.tag.isWithVR(),o=!(!i&&r)||_.dicom.is32bitVLVR(t.vr),a=(n=e.writeHex(n,t.tag.getGroup()),n=e.writeHex(n,t.tag.getElement()),t.vr),r=(this.useUnVrForPrivateSq&&t.tag.isPrivate()&&"SQ"===a&&(_.logger.warn("Write element using VR=UN for private sequence."),a="UN"),r&&!i&&(n=e.writeUint8Array(n,this.encodeString(a)),o&&(n+=2)),!1),a=("SQ"!==t.vr&&!_.dicom.isPixelDataTag(t.tag)||void 0===t.undefinedLength||(r=t.undefinedLength),!1),s=(_.dicom.isItemTag(t.tag)&&void 0!==t.undefinedLength&&(a=t.undefinedLength),t.vl),a=((r||a)&&(s=4294967295),n=o?e.writeUint32(n,s):e.writeUint16(n,s),t.value);return void 0===a&&(a=[]),n=_.dicom.isPixelDataTag(t.tag)?this.writePixelDataElementValue(e,t,n,a,i):this.writeDataElementValue(e,t,n,a,i),r&&(o={tag:_.dicom.getSequenceDelimitationItemTag(),vr:"NONE",vl:0,value:[]},n=this.writeDataElement(e,o,n,i)),n},_.dicom.DicomWriter.prototype.getBuffer=function(e){for(var t,n,i,r=_.dicom.cleanString(e.x00020010.value[0]),o=_.dicom.isImplicitTransferSyntax(r),r=_.dicom.isBigEndianTransferSyntax(r),a=(void 0===e.x00080005||void 0!==(y=_.dicom.cleanString(e.x00080005.value[0]))&&"ISO-IR 6"!==y&&(_.logger.debug("Change charset to UTF, was: "+y),this.useSpecialTextEncoder(),e.x00080005.value=["ISO_IR 192"]),void 0!==e.x00280100&&(t=e.x00280100.value[0]),132),s=0,l=[],u=[],c=0,d=_.dicom.getFileMetaInformationGroupLengthTag(),g=new _.dicom.Tag("0x0002","0x0001"),x=new _.dicom.Tag("0x0002","0x0012"),S=new _.dicom.Tag("0x0002","0x0013"),m=Object.keys(e),h=0,p=m.length;h<p;++h)null===(n=this.getElementToWrite(e[m[h]]))||d.equals(n.tag)||g.equals(n.tag)||x.equals(n.tag)||S.equals(n.tag)||(s=0,_.dicom.checkUnknownVR(n),this.setElementValue(n,n.value,o,t),s=(s+="Meta Element"===(i=n.tag.getGroupName())?_.dicom.getDataElementPrefixByteSize(n.vr,!1):_.dicom.getDataElementPrefixByteSize(n.vr,o))+n.vl,"Meta Element"===i?(l.push(n),c+=s):u.push(n),a+=s);function f(e,t){return _.dicom.tagCompareFunction(e.tag,t.tag)}var y=_.dicom.getDicomElement("FileMetaInformationVersion"),D=_.dicom.getDataElementPrefixByteSize(y.vr,!1),y=(D+=this.setElementValue(y,[0,1],!1),l.push(y),c+=D,a+=D,_.dicom.getDicomElement("ImplementationClassUID")),D=_.dicom.getDataElementPrefixByteSize(y.vr,!1),y=(D+=this.setElementValue(y,[_.dicom.getUID("ImplementationClassUID")],!1),l.push(y),c+=D,a+=D,_.dicom.getDicomElement("ImplementationVersionName")),D=_.dicom.getDataElementPrefixByteSize(y.vr,!1),v="DWV_"+_.getVersion(),v=(D+=this.setElementValue(y,[v],!1),l.push(y),c+=D,a+=D,l.sort(f),u.sort(f),_.dicom.getDicomElement("FileMetaInformationGroupLength")),y=_.dicom.getDataElementPrefixByteSize(v.vr,!1),D=(a+=y+=this.setElementValue(v,new Uint32Array([c]),!1),new ArrayBuffer(a)),C=new _.dicom.DataWriter(D),T=new _.dicom.DataWriter(D,!r),L=128,L=C.writeUint8Array(L,this.encodeString("DICM"));L=this.writeDataElement(C,v,L,!1);for(var I=0,P=l.length;I<P;++I)L=this.writeDataElement(C,l[I],L,!1);r=132+y+c;L!==r&&_.logger.warn("Bad size calculation... meta offset: "+L+", calculated size:"+r+" (diff:"+(L-r)+")"),T.useUnVrForPrivateSq=this.useUnVrForPrivateSq;for(var w=0,A=u.length;w<A;++w)L=this.writeDataElement(T,u[w],L,o);return L!==a&&_.logger.warn("Bad size calculation... final offset: "+L+", calculated size:"+a+" (diff:"+(L-a)+")"),D},_.dicom.checkUnknownVR=function(e){var t;"UN"===e.vr&&null!==(t=e.tag.getVrFromDictionary())&&e.vr!==t&&(e.vr=t,_.logger.info("Element "+e.tag.getGroup()+" "+e.tag.getElement()+" VR changed from UN to "+e.vr))},_.dicom.getDicomElement=function(e){e=_.dicom.getTagFromDictionary(e);return{tag:e,vr:e.getVrFromDictionary()}},_.dicom.getBpeForVrType=function(e){var t;return"Uint8"===e?t=Uint8Array.BYTES_PER_ELEMENT:"Uint16"===e?t=Uint16Array.BYTES_PER_ELEMENT:"Int16"===e?t=Int16Array.BYTES_PER_ELEMENT:"Uint32"===e?t=Uint32Array.BYTES_PER_ELEMENT:"Int32"===e?t=Int32Array.BYTES_PER_ELEMENT:"Float32"===e?t=Float32Array.BYTES_PER_ELEMENT:"Float64"===e?t=Float64Array.BYTES_PER_ELEMENT:"Uint64"===e?t=BigUint64Array.BYTES_PER_ELEMENT:"Int64"===e&&(t=BigInt64Array.BYTES_PER_ELEMENT),t},_.dicom.DicomWriter.prototype.setElementValue=function(e,t,n,i){var r=0;if("SQ"===e.vr){if(null!==t&&0!==t){var o=[],a=!1;void 0!==e.undefinedLength&&(a=e.undefinedLength,delete e.undefinedLength);for(var s=0;s<t.length;++s){var l=t[s],u={},c=0;if(null!==l&&0!==l){for(var d=Object.keys(l),g=0,x=d.length;g<x;++g){var S=d[g],m=l[S];_.dicom.isItemTag(m.tag)||(c+=this.setElementValue(m,m.value,n,i),u[S]=m,c+=_.dicom.getDataElementPrefixByteSize(m.vr,n))}var h={tag:_.dicom.getItemTag(),vr:"NONE",vl:c,value:[]};a&&(h.undefinedLength=a),u[h.tag.getKey()]=h,c+=_.dicom.getDataElementPrefixByteSize(h.vr,n),a&&(c+=_.dicom.getDataElementPrefixByteSize("NONE",n)),r+=c,o.push(u)}}a&&(r+=_.dicom.getDataElementPrefixByteSize("NONE",n)),e.value=o,e.vl=r,a&&(e.undefinedLength=a)}}else{if(_.dicom.isVrToPad(e.vr)&&(f=_.dicom.getVrPad(e.vr),_.dicom.isStringVr(e.vr)?(f=_.dicom.charSetString.includes(e.vr)?(t=this.encodeSpecialString(t.join("\\")),this.encodeSpecialString(f)):(t=this.encodeString(t.join("\\")),this.encodeString(f)),_.dicom.isEven(t.length)||(t=_.dicom.uint8ArrayPush(t,f))):"OB"===e.vr&&(t=_.dicom.padOBValue(t))),r=0,"AT"===e.vr)r=4*t.length;else if("xs"===e.vr)r=t.length*Uint16Array.BYTES_PER_ELEMENT;else if(_.dicom.isTypedArrayVr(e.vr)||"ox"===e.vr){if(_.dicom.isPixelDataTag(e.tag)&&Array.isArray(t))for(var r=0,p=0;p<t.length;++p)r+=t[p].length;else r=t.length;var f=_.dicom.vrTypes[e.vr];if(_.dicom.isPixelDataTag(e.tag)||"ox"===e.vr)e.undefinedLength?r=(r+=y=_.dicom.getDataElementPrefixByteSize("NONE",n))+y*t.length+y:void 0!==i&&(1===i?r/=8:16===i&&(r*=Uint16Array.BYTES_PER_ELEMENT));else{if(void 0===f)throw Error("Unsupported element: "+e.vr);var y=_.dicom.getBpeForVrType(f);if(void 0===y)throw Error("Unknown bytes per element for VR type: "+f);r*=y}}else r=t.length;e.value=t,e.vl=r}return r},_.dicom.getElementsFromJSONTags=function(e){for(var t=Object.keys(e),n={},i=0,r=t.length;i<r;++i){var o=_.dicom.getTagFromDictionary(t[i]);if(o){var a,s=o.getVrFromDictionary(),l=!1,u=e[t[i]];if("SQ"===s){var c=[];if(void 0!==u.undefinedLength&&(l=u.undefinedLength),void 0!==u.value&&null!==u.value)for(var d=0;d<u.value.length;++d)c.push(_.dicom.getElementsFromJSONTags(u.value[d]));else _.logger.trace("Undefined or null jsonTag SQ value.");a=c}else a=Array.isArray(u)?u:[u];s={tag:o,vr:s,value:a};l&&(s.undefinedLength=l),n[o.getKey()]=s}}return n},_||{}),_=(_.dicom=_.dicom||{},_.dicom.dictionary={"0x0000":{"0x0000":["UL","1","CommandGroupLength"],"0x0001":["UL","1","CommandLengthToEnd"],"0x0002":["UI","1","AffectedSOPClassUID"],"0x0003":["UI","1","RequestedSOPClassUID"],"0x0010":["SH","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","CommandDataSetType"],"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"],"0x1000":["UI","1","AffectedSOPInstanceUID"],"0x1001":["UI","1","RequestedSOPInstanceUID"],"0x1002":["US","1","EventTypeID"],"0x1005":["AT","1-n","AttributeIdentifierList"],"0x1008":["US","1","ActionTypeID"],"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":["LT","1","DialogReceiver"],"0x4010":["LT","1","TerminalType"],"0x5010":["SH","1","MessageSetID"],"0x5020":["SH","1","EndMessageID"],"0x5110":["LT","1","DisplayFormat"],"0x5120":["LT","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","CommandMagnificationType"],"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"],"0x0026":["UR","1","SourcePresentationAddress"],"0x0027":["UR","1","SendingPresentationAddress"],"0x0028":["UR","1","ReceivingPresentationAddress"],"0x0031":["OB","1","RTVMetaInformationVersion"],"0x0032":["UI","1","RTVCommunicationSOPClassUID"],"0x0033":["UI","1","RTVCommunicationSOPInstanceUID"],"0x0035":["OB","1","RTVSourceIdentifier"],"0x0036":["OB","1","RTVFlowIdentifier"],"0x0037":["UL","1","RTVFlowRTPSamplingRate"],"0x0038":["FD","1","RTVFlowActualFrameDuration"],"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"],"0x0055":["AE","1","StationAETitle"],"0x0056":["CS","1","InstanceAvailability"],"0x0058":["UI","1-n","FailedSOPInstanceUIDList"],"0x0060":["CS","1","Modality"],"0x0061":["CS","1-n","ModalitiesInStudy"],"0x0062":["UI","1-n","SOPClassesInStudy"],"0x0063":["SQ","1","AnatomicRegionsInStudyCodeSequence"],"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"],"0x0109":["SQ","1","CodingSchemeResourcesSequence"],"0x010A":["CS","1","CodingSchemeURLType"],"0x010B":["CS","1","ContextGroupExtensionFlag"],"0x010C":["UI","1","CodingSchemeUID"],"0x010D":["UI","1","ContextGroupExtensionCreatorUID"],"0x010E":["UR","1","CodingSchemeURL"],"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"],"0x0122":["LO","1","MappingResourceName"],"0x0123":["SQ","1","ContextGroupIdentificationSequence"],"0x0124":["SQ","1","MappingResourceIdentificationSequence"],"0x0201":["SH","1","TimezoneOffsetFromUTC"],"0x0202":["","",""],"0x0220":["SQ","1","ResponsibleGroupCodeSequence"],"0x0221":["CS","1","EquipmentModality"],"0x0222":["LO","1","ManufacturerRelatedModelGroup"],"0x0300":["SQ","1","PrivateDataElementCharacteristicsSequence"],"0x0301":["US","1","PrivateGroupReference"],"0x0302":["LO","1","PrivateCreatorReference"],"0x0303":["CS","1","BlockIdentifyingInformationStatus"],"0x0304":["US","1-n","NonidentifyingPrivateElements"],"0x0305":["SQ","1","DeidentificationActionSequence"],"0x0306":["US","1-n","IdentifyingPrivateElements"],"0x0307":["CS","1","DeidentificationAction"],"0x0308":["US","1","PrivateDataElement"],"0x0309":["UL","1-3","PrivateDataElementValueMultiplicity"],"0x030A":["CS","1","PrivateDataElementValueRepresentation"],"0x030B":["UL","1-2","PrivateDataElementNumberOfItems"],"0x030C":["UC","1","PrivateDataElementName"],"0x030D":["UC","1","PrivateDataElementKeyword"],"0x030E":["UT","1","PrivateDataElementDescription"],"0x030F":["UT","1","PrivateDataElementEncoding"],"0x0310":["SQ","1","PrivateDataElementDefinitionSequence"],"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"],"0x1041":["SQ","1","InstitutionalDepartmentTypeCodeSequence"],"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"],"0x1156":["SQ","1","DefinitionSourceSequence"],"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"],"0x119A":["SQ","1","OtherFailuresSequence"],"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"],"0x3002":["UI","1-n","AvailableTransferSyntaxUID"],"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"],"0x0026":["SQ","1","SourcePatientGroupIdentificationSequence"],"0x0027":["SQ","1","GroupOfPatientsIdentificationSequence"],"0x0028":["US","3","SubjectRelativePositionInImage"],"0x0030":["DA","1","PatientBirthDate"],"0x0032":["TM","1","PatientBirthTime"],"0x0033":["LO","1","PatientBirthDateInAlternativeCalendar"],"0x0034":["LO","1","PatientDeathDateInAlternativeCalendar"],"0x0035":["CS","1","PatientAlternativeCalendar"],"0x0040":["CS","1","PatientSex"],"0x0050":["SQ","1","PatientInsurancePlanCodeSequence"],"0x0101":["SQ","1","PatientPrimaryLanguageCodeSequence"],"0x0102":["SQ","1","PatientPrimaryLanguageModifierCodeSequence"],"0x0200":["CS","1","QualityControlSubject"],"0x0201":["SQ","1","QualityControlSubjectTypeCodeSequence"],"0x0212":["UC","1","StrainDescription"],"0x0213":["LO","1","StrainNomenclature"],"0x0214":["LO","1","StrainStockNumber"],"0x0215":["SQ","1","StrainSourceRegistryCodeSequence"],"0x0216":["SQ","1","StrainStockSequence"],"0x0217":["LO","1","StrainSource"],"0x0218":["UT","1","StrainAdditionalInformation"],"0x0219":["SQ","1","StrainCodeSequence"],"0x0221":["SQ","1","GeneticModificationsSequence"],"0x0222":["UC","1","GeneticModificationsDescription"],"0x0223":["LO","1","GeneticModificationsNomenclature"],"0x0229":["SQ","1","GeneticModificationsCodeSequence"],"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"],"0x1022":["DS","1","PatientBodyMassIndex"],"0x1023":["DS","1","MeasuredAPDimension"],"0x1024":["DS","1","MeasuredLateralDimension"],"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"],"0x0052":["FD","1","LongitudinalTemporalOffsetFromEvent"],"0x0053":["CS","1","LongitudinalTemporalEventType"],"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"],"0x0086":["DA","1","EthicsCommitteeApprovalEffectivenessStartDate"],"0x0087":["DA","1","EthicsCommitteeApprovalEffectivenessEndDate"]},"0x0014":{"0x0000":["UL","1","GenericGroupLength"],"0x0023":["ST","1","CADFileFormat"],"0x0024":["ST","1","ComponentReferenceSystem"],"0x0025":["ST","1","ComponentManufacturingProcedure"],"0x0028":["ST","1","ComponentManufacturer"],"0x0030":["DS","1-n","MaterialThickness"],"0x0032":["DS","1-n","MaterialPipeDiameter"],"0x0034":["DS","1-n","MaterialIsolationDiameter"],"0x0042":["ST","1","MaterialGrade"],"0x0044":["ST","1","MaterialPropertiesDescription"],"0x0045":["ST","1","MaterialPropertiesFileFormatRetired"],"0x0046":["LT","1","MaterialNotes"],"0x0050":["CS","1","ComponentShape"],"0x0052":["CS","1","CurvatureType"],"0x0054":["DS","1","OuterDiameter"],"0x0056":["DS","1","InnerDiameter"],"0x0100":["LO","1-n","ComponentWelderIDs"],"0x0101":["CS","1","SecondaryApprovalStatus"],"0x0102":["DA","1","SecondaryReviewDate"],"0x0103":["TM","1","SecondaryReviewTime"],"0x0104":["PN","1","SecondaryReviewerName"],"0x0105":["ST","1","RepairID"],"0x0106":["SQ","1","MultipleComponentApprovalSequence"],"0x0107":["CS","1-n","OtherApprovalStatus"],"0x0108":["CS","1-n","OtherSecondaryApprovalStatus"],"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"],"0x3100":["LT","1","LinearityCorrectionTechnique"],"0x3101":["LT","1","BeamHardeningCorrectionTechnique"],"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-n","ImageQualityIndicatorType"],"0x40A1":["LO","1-n","ImageQualityIndicatorMaterial"],"0x40A2":["LO","1-n","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"]},"0x0016":{"0x0000":["UL","1","GenericGroupLength"],"0x0001":["DS","1","WhitePoint"],"0x0002":["DS","3","PrimaryChromaticities"],"0x0003":["UT","1","BatteryLevel"],"0x0004":["DS","1","ExposureTimeInSeconds"],"0x0005":["DS","1","FNumber"],"0x0006":["IS","1","OECFRows"],"0x0007":["IS","1","OECFColumns"],"0x0008":["UC","1-n","OECFColumnNames"],"0x0009":["DS","1-n","OECFValues"],"0x000A":["IS","1","SpatialFrequencyResponseRows"],"0x000B":["IS","1","SpatialFrequencyResponseColumns"],"0x000C":["UC","1-n","SpatialFrequencyResponseColumnNames"],"0x000D":["DS","1-n","SpatialFrequencyResponseValues"],"0x000E":["IS","1","ColorFilterArrayPatternRows"],"0x000F":["IS","1","ColorFilterArrayPatternColumns"],"0x0010":["DS","1-n","ColorFilterArrayPatternValues"],"0x0011":["US","1","FlashFiringStatus"],"0x0012":["US","1","FlashReturnStatus"],"0x0013":["US","1","FlashMode"],"0x0014":["US","1","FlashFunctionPresent"],"0x0015":["US","1","FlashRedEyeMode"],"0x0016":["US","1","ExposureProgram"],"0x0017":["UT","1","SpectralSensitivity"],"0x0018":["IS","1","PhotographicSensitivity"],"0x0019":["IS","1","SelfTimerMode"],"0x001A":["US","1","SensitivityType"],"0x001B":["IS","1","StandardOutputSensitivity"],"0x001C":["IS","1","RecommendedExposureIndex"],"0x001D":["IS","1","ISOSpeed"],"0x001E":["IS","1","ISOSpeedLatitudeyyy"],"0x001F":["IS","1","ISOSpeedLatitudezzz"],"0x0020":["UT","1","EXIFVersion"],"0x0021":["DS","1","ShutterSpeedValue"],"0x0022":["DS","1","ApertureValue"],"0x0023":["DS","1","BrightnessValue"],"0x0024":["DS","1","ExposureBiasValue"],"0x0025":["DS","1","MaxApertureValue"],"0x0026":["DS","1","SubjectDistance"],"0x0027":["US","1","MeteringMode"],"0x0028":["US","1","LightSource"],"0x0029":["DS","1","FocalLength"],"0x002A":["IS","2-4","SubjectArea"],"0x002B":["OB","1","MakerNote"],"0x0030":["DS","1","Temperature"],"0x0031":["DS","1","Humidity"],"0x0032":["DS","1","Pressure"],"0x0033":["DS","1","WaterDepth"],"0x0034":["DS","1","Acceleration"],"0x0035":["DS","1","CameraElevationAngle"],"0x0036":["DS","1-2","FlashEnergy"],"0x0037":["IS","2","SubjectLocation"],"0x0038":["DS","1","PhotographicExposureIndex"],"0x0039":["US","1","SensingMethod"],"0x003A":["US","1","FileSource"],"0x003B":["US","1","SceneType"],"0x0041":["US","1","CustomRendered"],"0x0042":["US","1","ExposureMode"],"0x0043":["US","1","WhiteBalance"],"0x0044":["DS","1","DigitalZoomRatio"],"0x0045":["IS","1","FocalLengthIn35mmFilm"],"0x0046":["US","1","SceneCaptureType"],"0x0047":["US","1","GainControl"],"0x0048":["US","1","Contrast"],"0x0049":["US","1","Saturation"],"0x004A":["US","1","Sharpness"],"0x004B":["OB","1","DeviceSettingDescription"],"0x004C":["US","1","SubjectDistanceRange"],"0x004D":["UT","1","CameraOwnerName"],"0x004E":["DS","4","LensSpecification"],"0x004F":["UT","1","LensMake"],"0x0050":["UT","1","LensModel"],"0x0051":["UT","1","LensSerialNumber"],"0x0061":["CS","1","InteroperabilityIndex"],"0x0062":["OB","1","InteroperabilityVersion"],"0x0070":["OB","1","GPSVersionID"],"0x0071":["CS","1","GPSLatitudeRef"],"0x0072":["DS","3","GPSLatitude"],"0x0073":["CS","1","GPSLongitudeRef"],"0x0074":["DS","3","GPSLongitude"],"0x0075":["US","1","GPSAltitudeRef"],"0x0076":["DS","1","GPSAltitude"],"0x0077":["DT","1","GPSTimeStamp"],"0x0078":["UT","1","GPSSatellites"],"0x0079":["CS","1","GPSStatus"],"0x007A":["CS","1","GPSMeasureMode"],"0x007B":["DS","1","GPSDOP"],"0x007C":["CS","1","GPSSpeedRef"],"0x007D":["DS","1","GPSSpeed"],"0x007E":["CS","1","GPSTrackRef"],"0x007F":["DS","1","GPSTrack"],"0x0080":["CS","1","GPSImgDirectionRef"],"0x0081":["DS","1","GPSImgDirection"],"0x0082":["UT","1","GPSMapDatum"],"0x0083":["CS","1","GPSDestLatitudeRef"],"0x0084":["DS","3","GPSDestLatitude"],"0x0085":["CS","1","GPSDestLongitudeRef"],"0x0086":["DS","3","GPSDestLongitude"],"0x0087":["CS","1","GPSDestBearingRef"],"0x0088":["DS","1","GPSDestBearing"],"0x0089":["CS","1","GPSDestDistanceRef"],"0x008A":["DS","1","GPSDestDistance"],"0x008B":["OB","1","GPSProcessingMethod"],"0x008C":["OB","1","GPSAreaInformation"],"0x008D":["DT","1","GPSDateStamp"],"0x008E":["IS","1","GPSDifferential"],"0x1001":["CS","1","LightSourcePolarization"],"0x1002":["DS","1","EmitterColorTemperature"],"0x1003":["CS","1","ContactMethod"],"0x1004":["CS","1-n","ImmersionMedia"],"0x1005":["DS","1","OpticalMagnificationFactor"]},"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"],"0x0061":["DS","1",""],"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"],"0x1009":["UT","1","UniqueDeviceIdentifier"],"0x100A":["SQ","1","UDISequence"],"0x100B":["UI","1-n","ManufacturerDeviceClassUID"],"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"],"0x11A3":["DS","1","CompressionPressure"],"0x11A4":["LO","1","PaddleDescription"],"0x11A5":["DS","1","CompressionContactArea"],"0x11B0":["LO","1","AcquisitionMode"],"0x11B1":["LO","1","DoseModeName"],"0x11B2":["CS","1","AcquiredSubtractionMaskFlag"],"0x11B3":["CS","1","FluoroscopyPersistenceFlag"],"0x11B4":["CS","1","FluoroscopyLastImageHoldPersistenceFlag"],"0x11B5":["IS","1","UpperLimitNumberOfPersistentFluoroscopyFrames"],"0x11B6":["CS","1","ContrastBolusAutoInjectionTriggerFlag"],"0x11B7":["FD","1","ContrastBolusInjectionDelay"],"0x11B8":["SQ","1","XAAcquisitionPhaseDetailsSequence"],"0x11B9":["FD","1","XAAcquisitionFrameRate"],"0x11BA":["SQ","1","XAPlaneDetailsSequence"],"0x11BB":["LO","1","AcquisitionFieldOfViewLabel"],"0x11BC":["SQ","1","XRayFilterDetailsSequence"],"0x11BD":["FD","1","XAAcquisitionDuration"],"0x11BE":["CS","1","ReconstructionPipelineType"],"0x11BF":["SQ","1","ImageFilterDetailsSequence"],"0x11C0":["CS","1","AppliedMaskSubtractionFlag"],"0x11C1":["SQ","1","RequestedSeriesDescriptionCodeSequence"],"0x1200":["DA","1-n","DateOfLastCalibration"],"0x1201":["TM","1-n","TimeOfLastCalibration"],"0x1202":["DT","1","DateTimeOfLastCalibration"],"0x1203":["DT","1","CalibrationDateTime"],"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"],"0x1271":["FD","1","WaterEquivalentDiameter"],"0x1272":["SQ","1","WaterEquivalentDiameterCalculationMethodCodeSequence"],"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"],"0x1320":["FL","1","B1rms"],"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"],"0x1630":["CS","1","OutlineShapeType"],"0x1631":["FD","1","OutlineLeftVerticalEdge"],"0x1632":["FD","1","OutlineRightVerticalEdge"],"0x1633":["FD","1","OutlineUpperHorizontalEdge"],"0x1634":["FD","1","OutlineLowerHorizontalEdge"],"0x1635":["FD","2","CenterOfCircularOutline"],"0x1636":["FD","1","DiameterOfCircularOutline"],"0x1637":["UL","1","NumberOfPolygonalVertices"],"0x1638":["OF","1","VerticesOfThePolygonalOutline"],"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"],"0x5011":["SQ","1","TransducerIdentificationSequence"],"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"],"0x6070":["US","1","ActiveImageAreaOverlayGroup"],"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-n","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"],"0x9361":["CS","1","MultienergyCTAcquisition"],"0x9362":["SQ","1","MultienergyCTAcquisitionSequence"],"0x9363":["SQ","1","MultienergyCTProcessingSequence"],"0x9364":["SQ","1","MultienergyCTCharacteristicsSequence"],"0x9365":["SQ","1","MultienergyCTXRaySourceSequence"],"0x9366":["US","1","XRaySourceIndex"],"0x9367":["UC","1","XRaySourceID"],"0x9368":["CS","1","MultienergySourceTechnique"],"0x9369":["DT","1","SourceStartDateTime"],"0x936A":["DT","1","SourceEndDateTime"],"0x936B":["US","1","SwitchingPhaseNumber"],"0x936C":["DS","1","SwitchingPhaseNominalDuration"],"0x936D":["DS","1","SwitchingPhaseTransitionDuration"],"0x936E":["DS","1","EffectiveBinEnergy"],"0x936F":["SQ","1","MultienergyCTXRayDetectorSequence"],"0x9370":["US","1","XRayDetectorIndex"],"0x9371":["UC","1","XRayDetectorID"],"0x9372":["CS","1","MultienergyDetectorType"],"0x9373":["ST","1","XRayDetectorLabel"],"0x9374":["DS","1","NominalMaxEnergy"],"0x9375":["DS","1","NominalMinEnergy"],"0x9376":["US","1-n","ReferencedXRayDetectorIndex"],"0x9377":["US","1-n","ReferencedXRaySourceIndex"],"0x9378":["US","1-n","ReferencedPathIndex"],"0x9379":["SQ","1","MultienergyCTPathSequence"],"0x937A":["US","1","MultienergyCTPathIndex"],"0x937B":["UT","1","MultienergyAcquisitionDescription"],"0x937C":["FD","1","MonoenergeticEnergyEquivalent"],"0x937D":["SQ","1","MaterialCodeSequence"],"0x937E":["CS","1","DecompositionMethod"],"0x937F":["UT","1","DecompositionDescription"],"0x9380":["SQ","1","DecompositionAlgorithmIdentificationSequence"],"0x9381":["SQ","1","DecompositionMaterialSequence"],"0x9382":["SQ","1","MaterialAttenuationSequence"],"0x9383":["DS","1","PhotonEnergy"],"0x9384":["DS","1","XRayMassAttenuationCoefficient"],"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"],"0x9621":["SQ","1","FunctionalMRSequence"],"0x9622":["CS","1","FunctionalSettlingPhaseFramesPresent"],"0x9623":["DT","1","FunctionalSyncPulse"],"0x9624":["CS","1","SettlingPhaseFrame"],"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"],"0x9900":["LO","1","ReferenceLocationLabel"],"0x9901":["UT","1","ReferenceLocationDescription"],"0x9902":["SQ","1","ReferenceBasisCodeSequence"],"0x9903":["SQ","1","ReferenceGeometryCodeSequence"],"0x9904":["DS","1","OffsetDistance"],"0x9905":["CS","1","OffsetDirection"],"0x9906":["SQ","1","PotentialScheduledProtocolCodeSequence"],"0x9907":["SQ","1","PotentialRequestedProcedureCodeSequence"],"0x9908":["UC","1-n","PotentialReasonsForProcedure"],"0x9909":["SQ","1","PotentialReasonsForProcedureCodeSequence"],"0x990A":["UC","1-n","PotentialDiagnosticTasks"],"0x990B":["SQ","1","ContraindicationsCodeSequence"],"0x990C":["SQ","1","ReferencedDefinedProtocolSequence"],"0x990D":["SQ","1","ReferencedPerformedProtocolSequence"],"0x990E":["SQ","1","PredecessorProtocolSequence"],"0x990F":["UT","1","ProtocolPlanningInformation"],"0x9910":["UT","1","ProtocolDesignRationale"],"0x9911":["SQ","1","PatientSpecificationSequence"],"0x9912":["SQ","1","ModelSpecificationSequence"],"0x9913":["SQ","1","ParametersSpecificationSequence"],"0x9914":["SQ","1","InstructionSequence"],"0x9915":["US","1","InstructionIndex"],"0x9916":["LO","1","InstructionText"],"0x9917":["UT","1","InstructionDescription"],"0x9918":["CS","1","InstructionPerformedFlag"],"0x9919":["DT","1","InstructionPerformedDateTime"],"0x991A":["UT","1","InstructionPerformanceComment"],"0x991B":["SQ","1","PatientPositioningInstructionSequence"],"0x991C":["SQ","1","PositioningMethodCodeSequence"],"0x991D":["SQ","1","PositioningLandmarkSequence"],"0x991E":["UI","1","TargetFrameOfReferenceUID"],"0x991F":["SQ","1","AcquisitionProtocolElementSpecificationSequence"],"0x9920":["SQ","1","AcquisitionProtocolElementSequence"],"0x9921":["US","1","ProtocolElementNumber"],"0x9922":["LO","1","ProtocolElementName"],"0x9923":["UT","1","ProtocolElementCharacteristicsSummary"],"0x9924":["UT","1","ProtocolElementPurpose"],"0x9930":["CS","1","AcquisitionMotion"],"0x9931":["SQ","1","AcquisitionStartLocationSequence"],"0x9932":["SQ","1","AcquisitionEndLocationSequence"],"0x9933":["SQ","1","ReconstructionProtocolElementSpecificationSequence"],"0x9934":["SQ","1","ReconstructionProtocolElementSequence"],"0x9935":["SQ","1","StorageProtocolElementSpecificationSequence"],"0x9936":["SQ","1","StorageProtocolElementSequence"],"0x9937":["LO","1","RequestedSeriesDescription"],"0x9938":["US","1-n","SourceAcquisitionProtocolElementNumber"],"0x9939":["US","1-n","SourceAcquisitionBeamNumber"],"0x993A":["US","1-n","SourceReconstructionProtocolElementNumber"],"0x993B":["SQ","1","ReconstructionStartLocationSequence"],"0x993C":["SQ","1","ReconstructionEndLocationSequence"],"0x993D":["SQ","1","ReconstructionAlgorithmSequence"],"0x993E":["SQ","1","ReconstructionTargetCenterLocationSequence"],"0x9941":["UT","1","ImageFilterDescription"],"0x9942":["FD","1","CTDIvolNotificationTrigger"],"0x9943":["FD","1","DLPNotificationTrigger"],"0x9944":["CS","1","AutoKVPSelectionType"],"0x9945":["FD","1","AutoKVPUpperBound"],"0x9946":["FD","1","AutoKVPLowerBound"],"0x9947":["CS","1","ProtocolDefinedPatientPosition"],"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"],"0x103F":["LO","1","TargetPositionReferenceIndicator"],"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"],"0x1036":["SQ","1","SourceOfCornealSizeDataCodeSequence"],"0x1037":["FL","1","TargetRefraction"],"0x1039":["CS","1","RefractiveProcedureOccurred"],"0x1040":["SQ","1","RefractiveSurgeryTypeCodeSequence"],"0x1044":["SQ","1","OphthalmicUltrasoundMethodCodeSequence"],"0x1045":["SQ","1","SurgicallyInducedAstigmatismSequence"],"0x1046":["CS","1","TypeOfOpticalCorrection"],"0x1047":["SQ","1","ToricIOLPowerSequence"],"0x1048":["SQ","1","PredictedToricErrorSequence"],"0x1049":["CS","1","PreSelectedForImplantation"],"0x104A":["SQ","1","ToricIOLPowerForExactEmmetropiaSequence"],"0x104B":["SQ","1","ToricIOLPowerForExactTargetRefractionSequence"],"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"],"0x112A":["SQ","1","CalculationCommentSequence"],"0x112B":["CS","1","CalculationCommentType"],"0x112C":["LT","1","CalculationComment"],"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"],"0x1612":["SQ","1","DerivationAlgorithmSequence"],"0x1615":["SQ","1","OphthalmicImageTypeCodeSequence"],"0x1616":["LO","1","OphthalmicImageTypeDescription"],"0x1618":["SQ","1","ScanPatternTypeCodeSequence"],"0x1620":["SQ","1","ReferencedSurfaceMeshIdentificationSequence"],"0x1622":["CS","1","OphthalmicVolumetricPropertiesFlag"],"0x1624":["FL","1","OphthalmicAnatomicReferencePointXCoordinate"],"0x1626":["FL","1","OphthalmicAnatomicReferencePointYCoordinate"],"0x1628":["SQ","1","OphthalmicEnFaceImageQualityRatingSequence"],"0x1630":["DS","1","QualityThreshold"],"0x1640":["SQ","1","OCTBscanAnalysisAcquisitionParametersSequence"],"0x1642":["UL","1","NumberOfBscansPerFrame"],"0x1643":["FL","1","BscanSlabThickness"],"0x1644":["FL","1","DistanceBetweenBscanSlabs"],"0x1645":["FL","1","BscanCycleTime"],"0x1646":["FL","1-n","BscanCycleTimeVector"],"0x1649":["FL","1","AscanRate"],"0x1650":["FL","1","BscanRate"],"0x1658":["UL","1","SurfaceMeshZPixelOffset"]},"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"],"0x1224":["OW","1","SegmentedAlphaPaletteColorLookupTableData"],"0x1230":["SQ","1","StoredValueColorRangeSequence"],"0x1231":["FD","1","MinimumStoredValueMapped"],"0x1232":["FD","1","MaximumStoredValueMapped"],"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"],"0x2002":["CS","1","ColorSpace"],"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"],"0x1065":["SQ","1","RequestedLateralityCodeSequence"],"0x1066":["UT","1","ReasonForVisit"],"0x1067":["SQ","1","ReasonForVisitCodeSequence"],"0x1070":["LO","1","RequestedContrastAgent"],"0x4000":["LT","1","StudyComments"]},"0x0034":{"0x0000":["UL","1","GenericGroupLength"],"0x0001":["SQ","1","FlowIdentifierSequence"],"0x0002":["OB","1","FlowIdentifier"],"0x0003":["UI","1","FlowTransferSyntaxUID"],"0x0004":["UL","1","FlowRTPSamplingRate"],"0x0005":["OB","1","SourceIdentifier"],"0x0007":["OB","1","FrameOriginTimestamp"],"0x0008":["CS","1","IncludesImagingSubject"],"0x0009":["SQ","1","FrameUsefulnessGroupSequence"],"0x000A":["SQ","1","RealTimeBulkDataFlowSequence"],"0x000B":["SQ","1","CameraPositionGroupSequence"],"0x000C":["CS","1","IncludesInformation"],"0x000D":["SQ","1","TimeOfFrameGroupSequence"]},"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"],"0x0310":["UI","1","MultiplexGroupUID"],"0x0311":["DS","1","PowerlineFrequency"],"0x0312":["SQ","1","ChannelImpedanceSequence"],"0x0313":["DS","1","ImpedanceValue"],"0x0314":["DT","1","ImpedanceMeasurementDateTime"],"0x0315":["DS","1","ImpedanceMeasurementFrequency"],"0x0316":["CS","1","ImpedanceMeasurementCurrentType"]},"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"],"0x0560":["SQ","1","SpecimenDescriptionSequence"],"0x0562":["SQ","1","IssuerOfTheSpecimenIdentifierSequence"],"0x059A":["SQ","1","SpecimenTypeCodeSequence"],"0x0600":["LO","1","SpecimenShortDescription"],"0x0602":["UT","1","SpecimenDetailedDescription"],"0x0610":["SQ","1","SpecimenPreparationSequence"],"0x0612":["SQ","1","SpecimenPreparationStepContentItemSequence"],"0x0620":["SQ","1","SpecimenLocalizationContentItemSequence"],"0x06FA":["LO","1","SlideIdentifier"],"0x0710":["SQ","1","WholeSlideMicroscopyImageFrameTypeSequence"],"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"],"0x4008":["DT","1","ScheduledProcedureStepExpirationDateTime"],"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"],"0x4070":["SQ","1","OutputDestinationSequence"],"0x4071":["SQ","1","DICOMStorageSequence"],"0x4072":["SQ","1","STOWRSStorageSequence"],"0x4073":["UR","1","StorageURL"],"0x4074":["SQ","1","XDSStorageSequence"],"0x8302":["DS","1","EntranceDoseInmGy"],"0x8303":["CS","1","EntranceDoseDerivation"],"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"],"0x9213":["FD","1","DoubleFloatRealWorldValueLastValueMapped"],"0x9214":["FD","1","DoubleFloatRealWorldValueFirstValueMapped"],"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"],"0xA033":["DT","1","ObservationStartDateTime"],"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"],"0xA801":["SQ","1","TabulatedValuesSequence"],"0xA802":["UL","1","NumberOfTableRows"],"0xA803":["UL","1","NumberOfTableColumns"],"0xA804":["UL","1","TableRowNumber"],"0xA805":["UL","1","TableColumnNumber"],"0xA806":["SQ","1","TableRowDefinitionSequence"],"0xA807":["SQ","1","TableColumnDefinitionSequence"],"0xA808":["SQ","1","CellValuesSequence"],"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"],"0x0015":["UL","1","EncapsulatedDocumentLength"]},"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"],"0x0100":["SQ","1","ApprovalSequence"],"0x0101":["SQ","1","AssertionCodeSequence"],"0x0102":["UI","1","AssertionUID"],"0x0103":["SQ","1","AsserterIdentificationSequence"],"0x0104":["DT","1","AssertionDateTime"],"0x0105":["DT","1","AssertionExpirationDateTime"],"0x0106":["UT","1","AssertionComments"],"0x0107":["SQ","1","RelatedAssertionSequence"],"0x0108":["UI","1","ReferencedAssertionUID"],"0x0109":["SQ","1","ApprovalSubjectSequence"],"0x010A":["SQ","1","OrganizationalRoleCodeSequence"]},"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"],"0x0047":["SQ","1","CornealSizeSequence"],"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"],"0x0110":["SQ","1","CorneaMeasurementsSequence"],"0x0111":["SQ","1","SourceOfCorneaMeasurementDataCodeSequence"],"0x0112":["SQ","1","SteepCornealAxisSequence"],"0x0113":["SQ","1","FlatCornealAxisSequence"],"0x0114":["FD","1","CornealPower"],"0x0115":["FD","1","CornealAxis"],"0x0116":["SQ","1","CorneaMeasurementMethodCodeSequence"],"0x0117":["FL","1","RefractiveIndexOfCornea"],"0x0118":["FL","1","RefractiveIndexOfAqueousHumor"],"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"],"0x0302":["UL","1","NumberOfOpticalPaths"],"0x0303":["UL","1","TotalPixelMatrixFocalPlanes"]},"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"],"0x0021":["ST","1","LongDeviceDescription"]},"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"],"0x0007":["SQ","1","SegmentationAlgorithmIdentificationSequence"],"0x0008":["CS","1","SegmentAlgorithmType"],"0x0009":["LO","1-n","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"],"0x0013":["CS","1","SegmentsOverlap"],"0x0020":["UT","1","TrackingID"],"0x0021":["UI","1","TrackingUID"]},"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"],"0x0022":["OD","1","DoublePointCoordinatesData"],"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":["OL","1","LongPrimitivePointIndexList"],"0x0041":["OL","1","LongTrianglePointIndexList"],"0x0042":["OL","1","LongEdgePointIndexList"],"0x0043":["OL","1","LongVertexPointIndexList"],"0x0101":["SQ","1","TrackSetSequence"],"0x0102":["SQ","1","TrackSequence"],"0x0103":["OW","1","RecommendedDisplayCIELabValueList"],"0x0104":["SQ","1","TrackingAlgorithmIdentificationSequence"],"0x0105":["UL","1","TrackSetNumber"],"0x0106":["LO","1","TrackSetLabel"],"0x0107":["UT","1","TrackSetDescription"],"0x0108":["SQ","1","TrackSetAnatomicalTypeCodeSequence"],"0x0121":["SQ","1","MeasurementsSequence"],"0x0124":["SQ","1","TrackSetStatisticsSequence"],"0x0125":["OF","1","FloatingPointValues"],"0x0129":["OL","1","TrackPointIndexList"],"0x0130":["SQ","1","TrackStatisticsSequence"],"0x0132":["SQ","1","MeasurementValuesSequence"],"0x0133":["SQ","1","DiffusionAcquisitionCodeSequence"],"0x0134":["SQ","1","DiffusionModelCodeSequence"]},"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":["SQ","1","ViewOrientationModifierCodeSequence"],"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"],"0x7001":["CS","1","ModelModification"],"0x7002":["CS","1","ModelMirroring"],"0x7003":["SQ","1","ModelUsageCodeSequence"],"0x7004":["UI","1","ModelGroupUID"],"0x7005":["UR","1","RelativeURIReferenceWithinEncapsulatedDocument"]},"0x006A":{"0x0000":["UL","1","GenericGroupLength"],"0x0001":["CS","1","AnnotationCoordinateType"],"0x0002":["SQ","1","AnnotationGroupSequence"],"0x0003":["UI","1","AnnotationGroupUID"],"0x0005":["LO","1","AnnotationGroupLabel"],"0x0006":["UT","1","AnnotationGroupDescription"],"0x0007":["CS","1","AnnotationGroupGenerationType"],"0x0008":["SQ","1","AnnotationGroupAlgorithmIdentificationSequence"],"0x0009":["SQ","1","AnnotationPropertyCategoryCodeSequence"],"0x000A":["SQ","1","AnnotationPropertyTypeCodeSequence"],"0x000B":["SQ","1","AnnotationPropertyTypeModifierCodeSequence"],"0x000C":["UL","1","NumberOfAnnotations"],"0x000D":["CS","1","AnnotationAppliesToAllOpticalPaths"],"0x000E":["SH","1-n","ReferencedOpticalPathIdentifier"],"0x000F":["CS","1","AnnotationAppliesToAllZPlanes"],"0x0010":["FD","1-n","CommonZCoordinateValue"],"0x0011":["OL","1","AnnotationIndexList"]},"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"],"0x030B":["FD","16","FrameOfReferenceToDisplayedCoordinateSystemTransformationMatrix"],"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"],"0x031B":["UI","1","ReferencedFiducialUID"],"0x031C":["SQ","1","FiducialSetSequence"],"0x031E":["SQ","1","FiducialSequence"],"0x031F":["SQ","1","FiducialsPropertyCategoryCodeSequence"],"0x0401":["US","3","GraphicLayerRecommendedDisplayCIELabValue"],"0x0402":["SQ","1","BlendingSequence"],"0x0403":["FL","1","RelativeOpacity"],"0x0404":["SQ","1","ReferencedSpatialRegistrationSequence"],"0x0405":["CS","1","BlendingPosition"],"0x1101":["UI","1","PresentationDisplayCollectionUID"],"0x1102":["UI","1","PresentationSequenceCollectionUID"],"0x1103":["US","1","PresentationSequencePositionIndex"],"0x1104":["SQ","1","RenderedImageReferenceSequence"],"0x1201":["SQ","1","VolumetricPresentationStateInputSequence"],"0x1202":["CS","1","PresentationInputType"],"0x1203":["US","1","InputSequencePositionIndex"],"0x1204":["CS","1","Crop"],"0x1205":["US","1-n","CroppingSpecificationIndex"],"0x1206":["CS","1","CompositingMethod"],"0x1207":["US","1","VolumetricPresentationInputNumber"],"0x1208":["CS","1","ImageVolumeGeometry"],"0x1209":["UI","1","VolumetricPresentationInputSetUID"],"0x120A":["SQ","1","VolumetricPresentationInputSetSequence"],"0x120B":["CS","1","GlobalCrop"],"0x120C":["US","1-n","GlobalCroppingSpecificationIndex"],"0x120D":["CS","1","RenderingMethod"],"0x1301":["SQ","1","VolumeCroppingSequence"],"0x1302":["CS","1","VolumeCroppingMethod"],"0x1303":["FD","6","BoundingBoxCrop"],"0x1304":["SQ","1","ObliqueCroppingPlaneSequence"],"0x1305":["FD","4","Plane"],"0x1306":["FD","3","PlaneNormal"],"0x1309":["US","1","CroppingSpecificationNumber"],"0x1501":["CS","1","MultiPlanarReconstructionStyle"],"0x1502":["CS","1","MPRThicknessType"],"0x1503":["FD","1","MPRSlabThickness"],"0x1505":["FD","3","MPRTopLeftHandCorner"],"0x1507":["FD","3","MPRViewWidthDirection"],"0x1508":["FD","1","MPRViewWidth"],"0x150C":["UL","1","NumberOfVolumetricCurvePoints"],"0x150D":["OD","1","VolumetricCurvePoints"],"0x1511":["FD","3","MPRViewHeightDirection"],"0x1512":["FD","1","MPRViewHeight"],"0x1602":["CS","1","RenderProjection"],"0x1603":["FD","3","ViewpointPosition"],"0x1604":["FD","3","ViewpointLookAtPoint"],"0x1605":["FD","3","ViewpointUpDirection"],"0x1606":["FD","6","RenderFieldOfView"],"0x1607":["FD","1","SamplingStepSize"],"0x1701":["CS","1","ShadingStyle"],"0x1702":["FD","1","AmbientReflectionIntensity"],"0x1703":["FD","3","LightDirection"],"0x1704":["FD","1","DiffuseReflectionIntensity"],"0x1705":["FD","1","SpecularReflectionIntensity"],"0x1706":["FD","1","Shininess"],"0x1801":["SQ","1","PresentationStateClassificationComponentSequence"],"0x1802":["CS","1","ComponentType"],"0x1803":["SQ","1","ComponentInputSequence"],"0x1804":["US","1","VolumetricPresentationInputIndex"],"0x1805":["SQ","1","PresentationStateCompositorComponentSequence"],"0x1806":["SQ","1","WeightingTransferFunctionSequence"],"0x1807":["US","3","WeightingLookupTableDescriptor"],"0x1808":["OB","1","WeightingLookupTableData"],"0x1901":["SQ","1","VolumetricAnnotationSequence"],"0x1903":["SQ","1","ReferencedStructuredContextSequence"],"0x1904":["UI","1","ReferencedContentItem"],"0x1905":["SQ","1","VolumetricPresentationInputAnnotationSequence"],"0x1907":["CS","1","AnnotationClipping"],"0x1A01":["CS","1","PresentationAnimationStyle"],"0x1A03":["FD","1","RecommendedAnimationRate"],"0x1A04":["SQ","1","AnimationCurveSequence"],"0x1A05":["FD","1","AnimationStepSize"],"0x1A06":["FD","1","SwivelRange"],"0x1A07":["OD","1","VolumetricCurveUpDirections"],"0x1A08":["SQ","1","VolumeStreamSequence"],"0x1A09":["LO","1","RGBATransferFunctionDescription"],"0x1B01":["SQ","1","AdvancedBlendingSequence"],"0x1B02":["US","1","BlendingInputNumber"],"0x1B03":["SQ","1","BlendingDisplayInputSequence"],"0x1B04":["SQ","1","BlendingDisplaySequence"],"0x1B06":["CS","1","BlendingMode"],"0x1B07":["CS","1","TimeSeriesBlending"],"0x1B08":["CS","1","GeometryForDisplay"],"0x1B11":["SQ","1","ThresholdSequence"],"0x1B12":["SQ","1","ThresholdValueSequence"],"0x1B13":["CS","1","ThresholdType"],"0x1B14":["FD","1","ThresholdValue"]},"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"],"0x005E":["AE","1-n","SelectorAEValue"],"0x005F":["AS","1-n","SelectorASValue"],"0x0060":["AT","1-n","SelectorATValue"],"0x0061":["DA","1-n","SelectorDAValue"],"0x0062":["CS","1-n","SelectorCSValue"],"0x0063":["DT","1-n","SelectorDTValue"],"0x0064":["IS","1-n","SelectorISValue"],"0x0065":["OB","1","SelectorOBValue"],"0x0066":["LO","1-n","SelectorLOValue"],"0x0067":["OF","1","SelectorOFValue"],"0x0068":["LT","1","SelectorLTValue"],"0x0069":["OW","1","SelectorOWValue"],"0x006A":["PN","1-n","SelectorPNValue"],"0x006B":["TM","1-n","SelectorTMValue"],"0x006C":["SH","1-n","SelectorSHValue"],"0x006D":["UN","1","SelectorUNValue"],"0x006E":["ST","1","SelectorSTValue"],"0x006F":["UC","1-n","SelectorUCValue"],"0x0070":["UT","1","SelectorUTValue"],"0x0071":["UR","1","SelectorURValue"],"0x0072":["DS","1-n","SelectorDSValue"],"0x0073":["OD","1","SelectorODValue"],"0x0074":["FD","1-n","SelectorFDValue"],"0x0075":["OL","1","SelectorOLValue"],"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"],"0x0081":["OV","1","SelectorOVValue"],"0x0082":["SV","1-n","SelectorSVValue"],"0x0083":["UV","1-n","SelectorUVValue"],"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"],"0x1007":["SQ","1","ProcedureStepProgressParametersSequence"],"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"],"0x1401":["SQ","1","BrachyTaskSequence"],"0x1402":["DS","1","ContinuationStartTotalReferenceAirKerma"],"0x1403":["DS","1","ContinuationEndTotalReferenceAirKerma"],"0x1404":["IS","1","ContinuationPulseNumber"],"0x1405":["SQ","1","ChannelDeliveryOrderSequence"],"0x1406":["IS","1","ReferencedChannelNumber"],"0x1407":["DS","1","StartCumulativeTimeWeight"],"0x1408":["DS","1","EndCumulativeTimeWeight"],"0x1409":["SQ","1","OmittedChannelSequence"],"0x140A":["CS","1","ReasonForChannelOmission"],"0x140B":["LO","1","ReasonForChannelOmissionDescription"],"0x140C":["IS","1","ChannelDeliveryOrderIndex"],"0x140D":["SQ","1","ChannelDeliveryContinuationSequence"],"0x140E":["SQ","1","OmittedApplicationSetupSequence"]},"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":["SQ","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","UValueData"],"0x0011":["OF","1","VValueData"],"0x0012":["SQ","1","ReferencedTextureSequence"],"0x0013":["SQ","1","ReferencedSurfaceDataSequence"]},"0x0082":{"0x0000":["UL","1","GenericGroupLength"],"0x0001":["CS","1","AssessmentSummary"],"0x0003":["UT","1","AssessmentSummaryDescription"],"0x0004":["SQ","1","AssessedSOPInstanceSequence"],"0x0005":["SQ","1","ReferencedComparisonSOPInstanceSequence"],"0x0006":["UL","1","NumberOfAssessmentObservations"],"0x0007":["SQ","1","AssessmentObservationsSequence"],"0x0008":["CS","1","ObservationSignificance"],"0x000A":["UT","1","ObservationDescription"],"0x000C":["SQ","1","StructuredConstraintObservationSequence"],"0x0010":["SQ","1","AssessedAttributeValueSequence"],"0x0016":["LO","1","AssessmentSetID"],"0x0017":["SQ","1","AssessmentRequesterSequence"],"0x0018":["LO","1","SelectorAttributeName"],"0x0019":["LO","1","SelectorAttributeKeyword"],"0x0021":["SQ","1","AssessmentTypeCodeSequence"],"0x0022":["SQ","1","ObservationBasisCodeSequence"],"0x0023":["LO","1","AssessmentLabel"],"0x0032":["CS","1","ConstraintType"],"0x0033":["UT","1","SpecificationSelectionGuidance"],"0x0034":["SQ","1","ConstraintValueSequence"],"0x0035":["SQ","1","RecommendedDefaultValueSequence"],"0x0036":["CS","1","ConstraintViolationSignificance"],"0x0037":["UT","1","ConstraintViolationCondition"],"0x0038":["CS","1","ModifiableConstraintFlag"]},"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"],"0x0315":["FL","1",""],"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"],"0x0551":["SQ","1","NonconformingModifiedAttributesSequence"],"0x0552":["OB","1","NonconformingDataElementValue"],"0x0561":["SQ","1","OriginalAttributesSequence"],"0x0562":["DT","1","AttributeModificationDateTime"],"0x0563":["LO","1","ModifyingSystem"],"0x0564":["LO","1","SourceOfPreviousValues"],"0x0565":["CS","1","ReasonForTheAttributeModification"],"0x0600":["CS","1","InstanceOriginStatus"]},"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"],"0x0037":["SQ","1","ROIDerivationAlgorithmIdentificationSequence"],"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"],"0x004A":["SQ","1","SourcePixelPlanesCharacteristicsSequence"],"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"],"0x00C9":["SQ","1","PatientLocationCoordinatesSequence"],"0x00CA":["SQ","1","PatientLocationCoordinatesCodeSequence"],"0x00CB":["SQ","1","PatientSupportPositionSequence"]},"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"],"0x0067":["US","1","ParameterValueNumber"],"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"],"0x00D1":["SQ","1","RecordedBlockSlabSequence"],"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"],"0x0083":["UI","1","ReferencedDoseReferenceUID"],"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"],"0x0090":["CS","1","BeamDoseType"],"0x0091":["DS","1","AlternateBeamDose"],"0x0092":["CS","1","AlternateBeamDoseType"],"0x0093":["CS","1","DepthValueAveragingFlag"],"0x0094":["DS","1","BeamDosePointSourceToExternalContourDistance"],"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","AverageBeamDosePointSourceToExternalContourDistance"],"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"],"0x0150":["CS","1","FixationEye"],"0x0151":["DS","1","ChairHeadFramePosition"],"0x0152":["DS","1","HeadFixationAngleTolerance"],"0x0153":["DS","1","ChairHeadFramePositionTolerance"],"0x0154":["DS","1","FixationLightAzimuthalAngleTolerance"],"0x0155":["DS","1","FixationLightPolarAngleTolerance"],"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"],"0x0271":["DS","1","ChannelEffectiveLength"],"0x0272":["DS","1","ChannelInnerLength"],"0x0273":["SH","1","AfterloaderChannelID"],"0x0274":["DS","1","SourceApplicatorTipLength"],"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"],"0x02A1":["IS","1","ApplicatorShapeReferencedROINumber"],"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"],"0x0309":["CS","1","ModulatedScanModeType"],"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"],"0x0355":["LO","1","TrayAccessoryCode"],"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"],"0x038F":["FL","1-n","ScanSpotTimeOffset"],"0x0390":["SH","1","ScanSpotTuneID"],"0x0391":["IS","1-n","ScanSpotPrescribedIndices"],"0x0392":["IS","1","NumberOfScanSpotPositions"],"0x0393":["CS","1","ScanSpotReordered"],"0x0394":["FL","1-n","ScanSpotPositionMap"],"0x0395":["CS","1","ScanSpotReorderingAllowed"],"0x0396":["FL","1-n","ScanSpotMetersetWeights"],"0x0398":["FL","2","ScanningSpotSize"],"0x0399":["FL","2-2n","ScanSpotSizesDelivered"],"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"],"0x0426":["DS","1","IsocenterToGeneralAccessoryDistance"],"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"],"0x0501":["FL","1","DistalDepthFraction"],"0x0502":["FL","1","DistalDepth"],"0x0503":["FL","2","NominalRangeModulationFractions"],"0x0504":["FL","2","NominalRangeModulatedRegionDepths"],"0x0505":["SQ","1","DepthDoseParametersSequence"],"0x0506":["SQ","1","DeliveredDepthDoseParametersSequence"],"0x0507":["FL","1","DeliveredDistalDepthFraction"],"0x0508":["FL","1","DeliveredDistalDepth"],"0x0509":["FL","2","DeliveredNominalRangeModulationFractions"],"0x0510":["FL","2","DeliveredNominalRangeModulatedRegionDepths"],"0x0511":["CS","1","DeliveredReferenceDoseDefinition"],"0x0512":["CS","1","ReferenceDoseDefinition"],"0x0600":["US","1","RTControlPointIndex"],"0x0601":["US","1","RadiationGenerationModeIndex"],"0x0602":["US","1","ReferencedDefinedDeviceIndex"],"0x0603":["US","1","RadiationDoseIdentificationIndex"],"0x0604":["US","1","NumberOfRTControlPoints"],"0x0605":["US","1","ReferencedRadiationGenerationModeIndex"],"0x0606":["US","1","TreatmentPositionIndex"],"0x0607":["US","1","ReferencedDeviceIndex"],"0x0608":["LO","1","TreatmentPositionGroupLabel"],"0x0609":["UI","1","TreatmentPositionGroupUID"],"0x060A":["SQ","1","TreatmentPositionGroupSequence"],"0x060B":["US","1","ReferencedTreatmentPositionIndex"],"0x060C":["US","1","ReferencedRadiationDoseIdentificationIndex"],"0x060D":["FD","1","RTAccessoryHolderWaterEquivalentThickness"],"0x060E":["US","1","ReferencedRTAccessoryHolderDeviceIndex"],"0x060F":["CS","1","RTAccessoryHolderSlotExistenceFlag"],"0x0610":["SQ","1","RTAccessoryHolderSlotSequence"],"0x0611":["LO","1","RTAccessoryHolderSlotID"],"0x0612":["FD","1","RTAccessoryHolderSlotDistance"],"0x0613":["FD","1","RTAccessorySlotDistance"],"0x0614":["SQ","1","RTAccessoryHolderDefinitionSequence"],"0x0615":["LO","1","RTAccessoryDeviceSlotID"],"0x0616":["SQ","1","RTRadiationSequence"],"0x0617":["SQ","1","RadiationDoseSequence"],"0x0618":["SQ","1","RadiationDoseIdentificationSequence"],"0x0619":["LO","1","RadiationDoseIdentificationLabel"],"0x061A":["CS","1","ReferenceDoseType"],"0x061B":["CS","1","PrimaryDoseValueIndicator"],"0x061C":["SQ","1","DoseValuesSequence"],"0x061D":["CS","1-n","DoseValuePurpose"],"0x061E":["FD","3","ReferenceDosePointCoordinates"],"0x061F":["SQ","1","RadiationDoseValuesParametersSequence"],"0x0620":["SQ","1","MetersetToDoseMappingSequence"],"0x0621":["SQ","1","ExpectedInVivoMeasurementValuesSequence"],"0x0622":["US","1","ExpectedInVivoMeasurementValueIndex"],"0x0623":["LO","1","RadiationDoseInVivoMeasurementLabel"],"0x0624":["FD","2","RadiationDoseCentralAxisDisplacement"],"0x0625":["FD","1","RadiationDoseValue"],"0x0626":["FD","1","RadiationDoseSourceToSkinDistance"],"0x0627":["FD","3","RadiationDoseMeasurementPointCoordinates"],"0x0628":["FD","1","RadiationDoseSourceToExternalContourDistance"],"0x0629":["SQ","1","RTToleranceSetSequence"],"0x062A":["LO","1","RTToleranceSetLabel"],"0x062B":["SQ","1","AttributeToleranceValuesSequence"],"0x062C":["FD","1","ToleranceValue"],"0x062D":["SQ","1","PatientSupportPositionToleranceSequence"],"0x062E":["FD","1","TreatmentTimeLimit"],"0x062F":["SQ","1","CArmPhotonElectronControlPointSequence"],"0x0630":["SQ","1","ReferencedRTRadiationSequence"],"0x0631":["SQ","1","ReferencedRTInstanceSequence"],"0x0632":["SQ","1","ReferencedRTPatientSetupSequence"],"0x0634":["FD","1","SourceToPatientSurfaceDistance"],"0x0635":["SQ","1","TreatmentMachineSpecialModeCodeSequence"],"0x0636":["US","1","IntendedNumberOfFractions"],"0x0637":["CS","1","RTRadiationSetIntent"],"0x0638":["CS","1","RTRadiationPhysicalAndGeometricContentDetailFlag"],"0x0639":["CS","1","RTRecordFlag"],"0x063A":["SQ","1","TreatmentDeviceIdentificationSequence"],"0x063B":["SQ","1","ReferencedRTPhysicianIntentSequence"],"0x063C":["FD","1","CumulativeMeterset"],"0x063D":["FD","1","DeliveryRate"],"0x063E":["SQ","1","DeliveryRateUnitSequence"],"0x063F":["SQ","1","TreatmentPositionSequence"],"0x0640":["FD","1","RadiationSourceAxisDistance"],"0x0641":["US","1","NumberOfRTBeamLimitingDevices"],"0x0642":["FD","1","RTBeamLimitingDeviceProximalDistance"],"0x0643":["FD","1","RTBeamLimitingDeviceDistalDistance"],"0x0644":["SQ","1","ParallelRTBeamDelimiterDeviceOrientationLabelCodeSequence"],"0x0645":["FD","1","BeamModifierOrientationAngle"],"0x0646":["SQ","1","FixedRTBeamDelimiterDeviceSequence"],"0x0647":["SQ","1","ParallelRTBeamDelimiterDeviceSequence"],"0x0648":["US","1","NumberOfParallelRTBeamDelimiters"],"0x0649":["FD","2-n","ParallelRTBeamDelimiterBoundaries"],"0x064A":["FD","2-n","ParallelRTBeamDelimiterPositions"],"0x064B":["FD","2","RTBeamLimitingDeviceOffset"],"0x064C":["SQ","1","RTBeamDelimiterGeometrySequence"],"0x064D":["SQ","1","RTBeamLimitingDeviceDefinitionSequence"],"0x064E":["CS","1","ParallelRTBeamDelimiterOpeningMode"],"0x064F":["CS","1-n","ParallelRTBeamDelimiterLeafMountingSide"],"0x0650":["UI","1","PatientSetupUID"],"0x0651":["SQ","1","WedgeDefinitionSequence"],"0x0652":["FD","1","RadiationBeamWedgeAngle"],"0x0653":["FD","1","RadiationBeamWedgeThinEdgeDistance"],"0x0654":["FD","1","RadiationBeamEffectiveWedgeAngle"],"0x0655":["US","1","NumberOfWedgePositions"],"0x0656":["SQ","1","RTBeamLimitingDeviceOpeningSequence"],"0x0657":["US","1","NumberOfRTBeamLimitingDeviceOpenings"],"0x0658":["SQ","1","RadiationDosimeterUnitSequence"],"0x0659":["SQ","1","RTDeviceDistanceReferenceLocationCodeSequence"],"0x065A":["SQ","1","RadiationDeviceConfigurationAndCommissioningKeySequence"],"0x065B":["SQ","1","PatientSupportPositionParameterSequence"],"0x065C":["CS","1","PatientSupportPositionSpecificationMethod"],"0x065D":["SQ","1","PatientSupportPositionDeviceParameterSequence"],"0x065E":["US","1","DeviceOrderIndex"],"0x065F":["US","1","PatientSupportPositionParameterOrderIndex"],"0x0660":["SQ","1","PatientSupportPositionDeviceToleranceSequence"],"0x0661":["US","1","PatientSupportPositionToleranceOrderIndex"],"0x0662":["SQ","1","CompensatorDefinitionSequence"],"0x0663":["CS","1","CompensatorMapOrientation"],"0x0664":["OF","1","CompensatorProximalThicknessMap"],"0x0665":["OF","1","CompensatorDistalThicknessMap"],"0x0666":["FD","1","CompensatorBasePlaneOffset"],"0x0667":["SQ","1","CompensatorShapeFabricationCodeSequence"],"0x0668":["SQ","1","CompensatorShapeSequence"],"0x0669":["FD","1","RadiationBeamCompensatorMillingToolDiameter"],"0x066A":["SQ","1","BlockDefinitionSequence"],"0x066B":["OF","1","BlockEdgeData"],"0x066C":["CS","1","BlockOrientation"],"0x066D":["FD","1","RadiationBeamBlockThickness"],"0x066E":["FD","1","RadiationBeamBlockSlabThickness"],"0x066F":["SQ","1","BlockEdgeDataSequence"],"0x0670":["US","1","NumberOfRTAccessoryHolders"],"0x0671":["SQ","1","GeneralAccessoryDefinitionSequence"],"0x0672":["US","1","NumberOfGeneralAccessories"],"0x0673":["SQ","1","BolusDefinitionSequence"],"0x0674":["US","1","NumberOfBoluses"],"0x0675":["UI","1","EquipmentFrameOfReferenceUID"],"0x0676":["ST","1","EquipmentFrameOfReferenceDescription"],"0x0677":["SQ","1","EquipmentReferencePointCoordinatesSequence"],"0x0678":["SQ","1","EquipmentReferencePointCodeSequence"],"0x0679":["FD","1","RTBeamLimitingDeviceAngle"],"0x067A":["FD","1","SourceRollAngle"],"0x067B":["SQ","1","RadiationGenerationModeSequence"],"0x067C":["SH","1","RadiationGenerationModeLabel"],"0x067D":["ST","1","RadiationGenerationModeDescription"],"0x067E":["SQ","1","RadiationGenerationModeMachineCodeSequence"],"0x067F":["SQ","1","RadiationTypeCodeSequence"],"0x0680":["DS","1","NominalEnergy"],"0x0681":["DS","1","MinimumNominalEnergy"],"0x0682":["DS","1","MaximumNominalEnergy"],"0x0683":["SQ","1","RadiationFluenceModifierCodeSequence"],"0x0684":["SQ","1","EnergyUnitCodeSequence"],"0x0685":["US","1","NumberOfRadiationGenerationModes"],"0x0686":["SQ","1","PatientSupportDevicesSequence"],"0x0687":["US","1","NumberOfPatientSupportDevices"],"0x0688":["FD","1","RTBeamModifierDefinitionDistance"],"0x0689":["SQ","1","BeamAreaLimitSequence"],"0x068A":["SQ","1","ReferencedRTPrescriptionSequence"],"0x0700":["UI","1","TreatmentSessionUID"],"0x0701":["CS","1","RTRadiationUsage"],"0x0702":["SQ","1","ReferencedRTRadiationSetSequence"],"0x0703":["SQ","1","ReferencedRTRadiationRecordSequence"],"0x0704":["US","1","RTRadiationSetDeliveryNumber"],"0x0705":["US","1","ClinicalFractionNumber"],"0x0706":["CS","1","RTTreatmentFractionCompletionStatus"],"0x0707":["CS","1","RTRadiationSetUsage"],"0x0708":["CS","1","TreatmentDeliveryContinuationFlag"],"0x0709":["CS","1","TreatmentRecordContentOrigin"],"0x0714":["CS","1","RTTreatmentTerminationStatus"],"0x0715":["SQ","1","RTTreatmentTerminationReasonCodeSequence"],"0x0716":["SQ","1","MachineSpecificTreatmentTerminationCodeSequence"],"0x0722":["SQ","1","RTRadiationSalvageRecordControlPointSequence"],"0x0723":["CS","1","StartingMetersetValueKnownFlag"],"0x0730":["ST","1","TreatmentTerminationDescription"],"0x0731":["SQ","1","TreatmentToleranceViolationSequence"],"0x0732":["CS","1","TreatmentToleranceViolationCategory"],"0x0733":["SQ","1","TreatmentToleranceViolationAttributeSequence"],"0x0734":["ST","1","TreatmentToleranceViolationDescription"],"0x0735":["ST","1","TreatmentToleranceViolationIdentification"],"0x0736":["DT","1","TreatmentToleranceViolationDateTime"],"0x073A":["DT","1","RecordedRTControlPointDateTime"],"0x073B":["US","1","ReferencedRadiationRTControlPointIndex"],"0x073E":["SQ","1","AlternateValueSequence"],"0x073F":["SQ","1","ConfirmationSequence"],"0x0740":["SQ","1","InterlockSequence"],"0x0741":["DT","1","InterlockDateTime"],"0x0742":["ST","1","InterlockDescription"],"0x0743":["SQ","1","InterlockOriginatingDeviceSequence"],"0x0744":["SQ","1","InterlockCodeSequence"],"0x0745":["SQ","1","InterlockResolutionCodeSequence"],"0x0746":["SQ","1","InterlockResolutionUserSequence"],"0x0760":["DT","1","OverrideDateTime"],"0x0761":["SQ","1","TreatmentToleranceViolationTypeCodeSequence"],"0x0762":["SQ","1","TreatmentToleranceViolationCauseCodeSequence"],"0x0772":["SQ","1","MeasuredMetersetToDoseMappingSequence"],"0x0773":["US","1","ReferencedExpectedInVivoMeasurementValueIndex"],"0x0774":["SQ","1","DoseMeasurementDeviceCodeSequence"],"0x0780":["SQ","1","AdditionalParameterRecordingInstanceSequence"],"0x0782":["US","1",""],"0x0783":["ST","1","InterlockOriginDescription"],"0x0784":["SQ","1","RTPatientPositionScopeSequence"],"0x0785":["UI","1","ReferencedTreatmentPositionGroupUID"],"0x0786":["US","1","RadiationOrderIndex"],"0x0787":["SQ","1","OmittedRadiationSequence"],"0x0788":["SQ","1","ReasonForOmissionCodeSequence"],"0x0789":["SQ","1","RTDeliveryStartPatientPositionSequence"],"0x078A":["SQ","1","RTTreatmentPreparationPatientPositionSequence"],"0x078B":["SQ","1","ReferencedRTTreatmentPreparationSequence"],"0x078C":["SQ","1","ReferencedPatientSetupPhotoSequence"],"0x078D":["SQ","1","PatientTreatmentPreparationMethodCodeSequence"],"0x078E":["LT","1","PatientTreatmentPreparationProcedureParameterDescription"],"0x078F":["SQ","1","PatientTreatmentPreparationDeviceSequence"],"0x0790":["SQ","1","PatientTreatmentPreparationProcedureSequence"],"0x0791":["SQ","1","PatientTreatmentPreparationProcedureCodeSequence"],"0x0792":["LT","1","PatientTreatmentPreparationMethodDescription"],"0x0793":["SQ","1","PatientTreatmentPreparationProcedureParameterSequence"],"0x0794":["LT","1","PatientSetupPhotoDescription"],"0x0795":["US","1","PatientTreatmentPreparationProcedureIndex"],"0x0796":["US","1","ReferencedPatientSetupProcedureIndex"],"0x0797":["SQ","1","RTRadiationTaskSequence"],"0x0798":["SQ","1","RTPatientPositionDisplacementSequence"],"0x0799":["SQ","1","RTPatientPositionSequence"],"0x079A":["LO","1","DisplacementReferenceLabel"],"0x079B":["FD","16","DisplacementMatrix"],"0x079C":["SQ","1","PatientSupportDisplacementSequence"],"0x079D":["SQ","1","DisplacementReferenceLocationCodeSequence"],"0x079E":["CS","1","RTRadiationSetDeliveryUsage"]},"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"],"0x0114":["SQ","1","PrescriptionOverviewSequence"],"0x0115":["FL","1","TotalPrescriptionDose"],"0x0116":["SQ","1","PlanOverviewSequence"],"0x0117":["US","1","PlanOverviewIndex"],"0x0118":["US","1","ReferencedPlanOverviewIndex"],"0x0119":["US","1","NumberOfFractionsIncluded"],"0x0120":["SQ","1","DoseCalibrationConditionsSequence"],"0x0121":["FD","1","AbsorbedDoseToMetersetRatio"],"0x0122":["FD","2","DelineatedRadiationFieldSize"],"0x0123":["CS","1","DoseCalibrationConditionsVerifiedFlag"],"0x0124":["FD","1","CalibrationReferencePointDepth"],"0x0125":["SQ","1","GatingBeamHoldTransitionSequence"],"0x0126":["CS","1","BeamHoldTransition"],"0x0127":["DT","1","BeamHoldTransitionDateTime"],"0x0128":["SQ","1","BeamHoldOriginatingDeviceSequence"]},"0x300E":{"0x0000":["UL","1","GenericGroupLength"],"0x0002":["CS","1","ApprovalStatus"],"0x0004":["DA","1","ReviewDate"],"0x0005":["TM","1","ReviewTime"],"0x0008":["PN","1","ReviewerName"]},"0x3010":{"0x0000":["UL","1","GenericGroupLength"],"0x0001":["SQ","1","RadiobiologicalDoseEffectSequence"],"0x0002":["CS","1","RadiobiologicalDoseEffectFlag"],"0x0003":["SQ","1","EffectiveDoseCalculationMethodCategoryCodeSequence"],"0x0004":["SQ","1","EffectiveDoseCalculationMethodCodeSequence"],"0x0005":["LO","1","EffectiveDoseCalculationMethodDescription"],"0x0006":["UI","1","ConceptualVolumeUID"],"0x0007":["SQ","1","OriginatingSOPInstanceReferenceSequence"],"0x0008":["SQ","1","ConceptualVolumeConstituentSequence"],"0x0009":["SQ","1","EquivalentConceptualVolumeInstanceReferenceSequence"],"0x000A":["SQ","1","EquivalentConceptualVolumesSequence"],"0x000B":["UI","1","ReferencedConceptualVolumeUID"],"0x000C":["UT","1","ConceptualVolumeCombinationExpression"],"0x000D":["US","1","ConceptualVolumeConstituentIndex"],"0x000E":["CS","1","ConceptualVolumeCombinationFlag"],"0x000F":["ST","1","ConceptualVolumeCombinationDescription"],"0x0010":["CS","1","ConceptualVolumeSegmentationDefinedFlag"],"0x0011":["SQ","1","ConceptualVolumeSegmentationReferenceSequence"],"0x0012":["SQ","1","ConceptualVolumeConstituentSegmentationReferenceSequence"],"0x0013":["UI","1","ConstituentConceptualVolumeUID"],"0x0014":["SQ","1","DerivationConceptualVolumeSequence"],"0x0015":["UI","1","SourceConceptualVolumeUID"],"0x0016":["SQ","1","ConceptualVolumeDerivationAlgorithmSequence"],"0x0017":["ST","1","ConceptualVolumeDescription"],"0x0018":["SQ","1","SourceConceptualVolumeSequence"],"0x0019":["SQ","1","AuthorIdentificationSequence"],"0x001A":["LO","1","ManufacturerModelVersion"],"0x001B":["UC","1","DeviceAlternateIdentifier"],"0x001C":["CS","1","DeviceAlternateIdentifierType"],"0x001D":["LT","1","DeviceAlternateIdentifierFormat"],"0x001E":["LO","1","SegmentationCreationTemplateLabel"],"0x001F":["UI","1","SegmentationTemplateUID"],"0x0020":["US","1","ReferencedSegmentReferenceIndex"],"0x0021":["SQ","1","SegmentReferenceSequence"],"0x0022":["US","1","SegmentReferenceIndex"],"0x0023":["SQ","1","DirectSegmentReferenceSequence"],"0x0024":["SQ","1","CombinationSegmentReferenceSequence"],"0x0025":["SQ","1","ConceptualVolumeSequence"],"0x0026":["SQ","1","SegmentedRTAccessoryDeviceSequence"],"0x0027":["SQ","1","SegmentCharacteristicsSequence"],"0x0028":["SQ","1","RelatedSegmentCharacteristicsSequence"],"0x0029":["US","1","SegmentCharacteristicsPrecedence"],"0x002A":["SQ","1","RTSegmentAnnotationSequence"],"0x002B":["SQ","1","SegmentAnnotationCategoryCodeSequence"],"0x002C":["SQ","1","SegmentAnnotationTypeCodeSequence"],"0x002D":["LO","1","DeviceLabel"],"0x002E":["SQ","1","DeviceTypeCodeSequence"],"0x002F":["SQ","1","SegmentAnnotationTypeModifierCodeSequence"],"0x0030":["SQ","1","PatientEquipmentRelationshipCodeSequence"],"0x0031":["UI","1","ReferencedFiducialsUID"],"0x0032":["SQ","1","PatientTreatmentOrientationSequence"],"0x0033":["SH","1","UserContentLabel"],"0x0034":["LO","1","UserContentLongLabel"],"0x0035":["SH","1","EntityLabel"],"0x0036":["LO","1","EntityName"],"0x0037":["ST","1","EntityDescription"],"0x0038":["LO","1","EntityLongLabel"],"0x0039":["US","1","DeviceIndex"],"0x003A":["US","1","RTTreatmentPhaseIndex"],"0x003B":["UI","1","RTTreatmentPhaseUID"],"0x003C":["US","1","RTPrescriptionIndex"],"0x003D":["US","1","RTSegmentAnnotationIndex"],"0x003E":["US","1","BasisRTTreatmentPhaseIndex"],"0x003F":["US","1","RelatedRTTreatmentPhaseIndex"],"0x0040":["US","1","ReferencedRTTreatmentPhaseIndex"],"0x0041":["US","1","ReferencedRTPrescriptionIndex"],"0x0042":["US","1","ReferencedParentRTPrescriptionIndex"],"0x0043":["ST","1","ManufacturerDeviceIdentifier"],"0x0044":["SQ","1","InstanceLevelReferencedPerformedProcedureStepSequence"],"0x0045":["CS","1","RTTreatmentPhaseIntentPresenceFlag"],"0x0046":["CS","1","RadiotherapyTreatmentType"],"0x0047":["CS","1-n","TeletherapyRadiationType"],"0x0048":["CS","1-n","BrachytherapySourceType"],"0x0049":["SQ","1","ReferencedRTTreatmentPhaseSequence"],"0x004A":["SQ","1","ReferencedDirectSegmentInstanceSequence"],"0x004B":["SQ","1","IntendedRTTreatmentPhaseSequence"],"0x004C":["DA","1","IntendedPhaseStartDate"],"0x004D":["DA","1","IntendedPhaseEndDate"],"0x004E":["SQ","1","RTTreatmentPhaseIntervalSequence"],"0x004F":["CS","1","TemporalRelationshipIntervalAnchor"],"0x0050":["FD","1","MinimumNumberOfIntervalDays"],"0x0051":["FD","1","MaximumNumberOfIntervalDays"],"0x0052":["UI","1-n","PertinentSOPClassesInStudy"],"0x0053":["UI","1-n","PertinentSOPClassesInSeries"],"0x0054":["LO","1","RTPrescriptionLabel"],"0x0055":["SQ","1","RTPhysicianIntentPredecessorSequence"],"0x0056":["LO","1","RTTreatmentApproachLabel"],"0x0057":["SQ","1","RTPhysicianIntentSequence"],"0x0058":["US","1","RTPhysicianIntentIndex"],"0x0059":["CS","1","RTTreatmentIntentType"],"0x005A":["UT","1","RTPhysicianIntentNarrative"],"0x005B":["SQ","1","RTProtocolCodeSequence"],"0x005C":["ST","1","ReasonForSuperseding"],"0x005D":["SQ","1","RTDiagnosisCodeSequence"],"0x005E":["US","1","ReferencedRTPhysicianIntentIndex"],"0x005F":["SQ","1","RTPhysicianIntentInputInstanceSequence"],"0x0060":["SQ","1","RTAnatomicPrescriptionSequence"],"0x0061":["UT","1","PriorTreatmentDoseDescription"],"0x0062":["SQ","1","PriorTreatmentReferenceSequence"],"0x0063":["CS","1","DosimetricObjectiveEvaluationScope"],"0x0064":["SQ","1","TherapeuticRoleCategoryCodeSequence"],"0x0065":["SQ","1","TherapeuticRoleTypeCodeSequence"],"0x0066":["US","1","ConceptualVolumeOptimizationPrecedence"],"0x0067":["SQ","1","ConceptualVolumeCategoryCodeSequence"],"0x0068":["CS","1","ConceptualVolumeBlockingConstraint"],"0x0069":["SQ","1","ConceptualVolumeTypeCodeSequence"],"0x006A":["SQ","1","ConceptualVolumeTypeModifierCodeSequence"],"0x006B":["SQ","1","RTPrescriptionSequence"],"0x006C":["SQ","1","DosimetricObjectiveSequence"],"0x006D":["SQ","1","DosimetricObjectiveTypeCodeSequence"],"0x006E":["UI","1","DosimetricObjectiveUID"],"0x006F":["UI","1","ReferencedDosimetricObjectiveUID"],"0x0070":["SQ","1","DosimetricObjectiveParameterSequence"],"0x0071":["SQ","1","ReferencedDosimetricObjectivesSequence"],"0x0073":["CS","1","AbsoluteDosimetricObjectiveFlag"],"0x0074":["FD","1","DosimetricObjectiveWeight"],"0x0075":["CS","1","DosimetricObjectivePurpose"],"0x0076":["SQ","1","PlanningInputInformationSequence"],"0x0077":["LO","1","TreatmentSite"],"0x0078":["SQ","1","TreatmentSiteCodeSequence"],"0x0079":["SQ","1","FractionPatternSequence"],"0x007A":["UT","1","TreatmentTechniqueNotes"],"0x007B":["UT","1","PrescriptionNotes"],"0x007C":["IS","1","NumberOfIntervalFractions"],"0x007D":["US","1","NumberOfFractions"],"0x007E":["US","1","IntendedDeliveryDuration"],"0x007F":["UT","1","FractionationNotes"],"0x0080":["SQ","1","RTTreatmentTechniqueCodeSequence"],"0x0081":["SQ","1","PrescriptionNotesSequence"],"0x0082":["SQ","1","FractionBasedRelationshipSequence"],"0x0083":["CS","1","FractionBasedRelationshipIntervalAnchor"],"0x0084":["FD","1","MinimumHoursBetweenFractions"],"0x0085":["TM","1-n","IntendedFractionStartTime"],"0x0086":["LT","1","IntendedStartDayOfWeek"],"0x0087":["SQ","1","WeekdayFractionPatternSequence"],"0x0088":["SQ","1","DeliveryTimeStructureCodeSequence"],"0x0089":["SQ","1","TreatmentSiteModifierCodeSequence"],"0x0090":["CS","1","RoboticBaseLocationIndicator"],"0x0091":["SQ","1","RoboticPathNodeSetCodeSequence"],"0x0092":["UL","1","RoboticNodeIdentifier"],"0x0093":["FD","3","RTTreatmentSourceCoordinates"],"0x0094":["FD","1","RadiationSourceCoordinateSystemYawAngle"],"0x0095":["FD","1","RadiationSourceCoordinateSystemRollAngle"],"0x0096":["FD","1","RadiationSourceCoordinateSystemPitchAngle"],"0x0097":["SQ","1","RoboticPathControlPointSequence"],"0x0098":["SQ","1","TomotherapeuticControlPointSequence"],"0x0099":["FD","1-n","TomotherapeuticLeafOpenDurations"],"0x009A":["FD","1-n","TomotherapeuticLeafInitialClosedDurations"]},"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"]},"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"]},"0x7FE0":{"0x0000":["UL","1","GenericGroupLength"],"0x0001":["OV","1","ExtendedOffsetTable"],"0x0002":["OV","1","ExtendedOffsetTableLengths"],"0x0008":["OF","1","FloatPixelData"],"0x0009":["OD","1","DoubleFloatPixelData"],"0x0010":["ox","1","PixelData"],"0x0020":["OW","1","CoefficientsSDVN"],"0x0030":["OW","1","CoefficientsSDHN"],"0x0040":["OW","1","CoefficientsSDDN"]},"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"]}},_.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"},_.dicom.vr32bitVL=["OB","OD","OF","OL","OV","OW","SQ","SV","UC","UN","UR","UT","UV","ox"],_.dicom.charSetString=["SH","LO","UC","ST","LT","UT","PN"],_.dicom.vrTypes={AE:"string",AS:"string",AT:void 0,CS:"string",DA:"string",DS:"string",DT:"string",FL:"Float32",FD:"Float64",IS:"string",LO:"string",LT:"string",OB:"Uint8",OD:"Uint64",OF:"Uint32",OL:"Uint32",OV:"Uint64",OW:"Uint16",PN:"string",SH:"string",SL:"Int32",SQ:void 0,SS:"Int16",ST:"string",SV:"Int64",TM:"string",UC:"string",UI:"string",UL:"Uint32",UN:"Uint8",UR:"string",US:"Uint16",UT:"string",UV:"Uint64"},_||{}),y=(_.gui=_.gui||{},y||{}),_=(_.gui.DrawLayer=function(i){i.className+=" drawLayer";var r,o,a,l,t=this,u=null,c={x:1,y:1},d={x:0,y:0},s={x:0,y:0},g={x:0,y:0},x=null,S=null,n=(this.getDataIndex=function(){return S},new _.utils.ListenerHandler);function m(e){e.srclayerid=t.getId(),e.dataindex=S,n.fireEvent(e)}this.getKonvaStage=function(){return u},this.getKonvaLayer=function(){return r},this.getDrawController=function(){return x},this.setPlaneHelper=function(e){l=e},this.getId=function(){return i.id},this.getBaseSize=function(){return o},this.getOpacity=function(){return u.opacity()},this.setOpacity=function(e){u.opacity(Math.min(Math.max(e,0),1))},this.setScale=function(e,t){for(var n=l.getTargetOrientedPositiveXYZ(e),n={x:c.x*n.x,y:c.y*n.y},i=u.offset(),i=(1===e.x&&1===e.y&&1===e.z?(e={x:i.x-g.x,y:i.y-g.y},g={x:0,y:0},u.offset(e)):void 0!==t&&(e={x:(e=l.getPlaneOffsetFromOffset3D({x:t.getX(),y:t.getY(),z:t.getZ()})).x+d.x,y:e.y+d.y},t=_.gui.getScaledOffset(i,u.scale(),n,e),e={x:g.x+t.x-i.x,y:g.y+t.y-i.y},g=e,u.offset(t)),u.scale(n),n),r=2/i.x,o=2/i.y,a=u.find("Label"),s=0;s<a.length;++s)a[s].scale({x:r,y:o})},this.setOffset=function(e){e=l.getPlaneOffsetFromOffset3D(e);u.offset({x:s.x+d.x+g.x+e.x,y:s.y+d.y+g.y+e.y})},this.setBaseOffset=function(e,t){var n=l.getNativeScrollIndex(),n=l.getPlaneOffsetFromOffset3D({x:(0===n?e:t).getX(),y:(1===n?e:t).getY(),z:(2===n?e:t).getZ()}),e=d.x!==n.x||d.y!==n.y;return e&&(t=u.offset(),u.offset({x:t.x-d.x+n.x,y:t.y-d.y+n.y}),d=n),e},this.display=function(e){i.style.display=e?"":"none"},this.isVisible=function(){return""===i.style.display},this.draw=function(){u.draw()},this.initialise=function(e,t,n){o=e,a=t,S=n,(u=new y.Stage({container:i,width:o.x,height:o.y,listening:!1})).getContent().setAttribute("style",""),r=new y.Layer({listening:!1,visible:!0}),u.add(r),x=new _.ctrl.DrawController(r)},this.fitToContainer=function(e,t,n){u.setWidth(t.x),u.setHeight(t.y);var t=u.scale().x/c.x,i=u.scale().y/c.y;c={x:e*a.x,y:e*a.y},u.scale({x:t*c.x,y:i*c.y}),s={x:n.x/c.x,y:n.y/c.y},u.offset({x:s.x+d.x+g.x,y:s.y+d.y+g.y})},this.bindInteraction=function(){u.listening(!0),i.style.pointerEvents="auto";for(var e=_.gui.interactionEventNames,t=0;t<e.length;++t)i.addEventListener(e[t],m)},this.unbindInteraction=function(){u.listening(!1),i.style.pointerEvents="none";for(var e=_.gui.interactionEventNames,t=0;t<e.length;++t)i.removeEventListener(e[t],m)},this.setCurrentPosition=function(e,t){return this.getDrawController().activateDrawLayer(t,l.getScrollIndex()),!0},this.addEventListener=function(e,t){n.add(e,t)},this.removeEventListener=function(e,t){n.remove(e,t)}},_||{}),_=(_.gui=_.gui||{},_.gui.interactionEventNames=["mousedown","mousemove","mouseup","mouseout","wheel","dblclick","touchstart","touchmove","touchend"],_.gui.getElement=function(e,t){var n=document.getElementById(e);if(!n)return null;n=n.getElementsByClassName(t),n=n[n.length-1];return n=void 0===n?document.getElementById(e+"-"+t):n},_.getElement=_.gui.getElement,_.gui.prompt=function(e,t){return prompt(e,t)},_.prompt=_.gui.prompt,_.openRoiDialog,_.gui.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 _.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},_.gui.getEventOffset=function(e){var t=[];return void 0!==e.targetTouches&&0!==e.targetTouches.length?t=_.gui.getTouchesPositions(e.targetTouches):void 0!==e.changedTouches&&0!==e.changedTouches.length?t=_.gui.getTouchesPositions(e.changedTouches):t.push({x:e.offsetX,y:e.offsetY}),t},_.gui.canCreateCanvas=function(e,t){var n=document.createElement("canvas"),i=(n.width=e,n.height=t,document.createElement("canvas")),r=(i.width=1,i.height=1,n.getContext("2d")),i=i.getContext("2d");return r&&(r.fillRect(e-1,t-1,1,1),i.drawImage(n,e-1,t-1,1,1,0,0,1,1)),i&&0!==i.getImageData(0,0,1,1).data[3]},_||{}),_=(_.gui=_.gui||{},_.gui.getLayerDivId=function(e,t){return e+"-layer-"+t},_.gui.getLayerDetailsFromLayerDivId=function(e){e=e.split("-layer-");return 2!==e.length&&_.logger.warn("Not the expected layer div id format..."),{groupDivId:e[0],layerId:e[1]}},_.gui.getLayerDetailsFromEvent=function(e){var t=null,e=e.target.closest(".layer");return t=e&&void 0!==e.id?_.gui.getLayerDetailsFromLayerDivId(e.id):t},_.gui.getViewOrientation=function(e,t){var n=_.math.getIdentityMat33();return(n=void 0!==t?e.asOneAndZeros().getInverse().multiply(t):n).getAbs()},_.gui.getTargetOrientation=function(e,t){t=e.asOneAndZeros().multiply(t);return t=e.asOneAndZeros().getAbs().equals(_.math.getCoronalMat33().getAbs())?t.getAbs():t},_.gui.getScaledOffset=function(e,t,n,i){var r=(i.x-e.x)*t.x,e=(i.y-e.y)*t.y;return{x:i.x-r/n.x,y:i.y-e/n.y}},_.gui.LayerGroup=function(o){var t,x,S=this,m=[],i={x:1,y:1,z:1},e={x:1,y:1,z:1},n={x:0,y:0,z:0},r=null,a=null,s=new _.utils.ListenerHandler,h=!1;function l(){p()}function u(){var e=document.createElement("div");return e.id=_.gui.getLayerDivId(S.getDivId(),m.length),e.className="layer",e.style.pointerEvents="none",e}function p(e){void 0===e&&(e=x),c();var t=m[0],e=t.getViewController().getPlanePositionFromPosition(e),t=t.planePosToDisplay(e.x,e.y),e=document.createElement("hr"),n=(e.id=S.getDivId()+"-scroll-crosshair-horizontal",e.className="horizontal",e.style.width=o.offsetWidth+"px",e.style.left="0px",e.style.top=t.y+"px",document.createElement("hr"));n.id=S.getDivId()+"-scroll-crosshair-vertical",n.className="vertical",n.style.width=o.offsetHeight+"px",n.style.left=t.x+"px",n.style.top="0px",o.appendChild(e),o.appendChild(n)}function c(){var e=document.getElementById(S.getDivId()+"-scroll-crosshair-horizontal");e&&e.remove(),(e=document.getElementById(S.getDivId()+"-scroll-crosshair-vertical"))&&e.remove()}function f(e){s.fireEvent(e)}this.getTargetOrientation=function(){return t},this.setTargetOrientation=function(e){t=e},this.getShowCrosshair=function(){return h},this.setShowCrosshair=function(e){(h=e)?(S.addEventListener("offsetchange",l),S.addEventListener("zoomchange",l),p()):(S.removeEventListener("offsetchange",l),S.removeEventListener("zoomchange",l),c())},this.getDivId=function(){return o.id},this.getScale=function(){return i},this.getBaseScale=function(){return e},this.getAddedScale=function(){return{x:i.x/e.x,y:i.y/e.y,z:i.z/e.z}},this.getOffset=function(){return n},this.getNumberOfLayers=function(){return m.length},this.getActiveViewLayer=function(){return m[r]},this.getViewLayersByDataIndex=function(e){for(var t=[],n=0;n<m.length;++n)m[n]instanceof _.gui.ViewLayer&&m[n].getDataIndex()===e&&t.push(m[n]);return t},this.searchViewLayers=function(e){for(var t=[],n=0;n<m.length;++n)m[n]instanceof _.gui.ViewLayer&&m[n].getViewController().equalImageMeta(e)&&t.push(m[n]);return t},this.getViewDataIndices=function(){for(var e=[],t=0;t<m.length;++t)m[t]instanceof _.gui.ViewLayer&&e.push(m[t].getDataIndex());return e},this.getActiveDrawLayer=function(){return m[a]},this.getDrawLayersByDataIndex=function(e){for(var t=[],n=0;n<m.length;++n)m[n]instanceof _.gui.DrawLayer&&m[n].getDataIndex()===e&&t.push(m[n]);return t},this.setActiveViewLayer=function(e){r=e},this.setActiveViewLayerByDataIndex=function(e){for(var t=0;t<m.length;++t)if(m[t]instanceof _.gui.ViewLayer&&m[t].getDataIndex()===e){this.setActiveViewLayer(t);break}},this.setActiveDrawLayer=function(e){a=e},this.setActiveDrawLayerByDataIndex=function(e){for(var t=0;t<m.length;++t)if(m[t]instanceof _.gui.DrawLayer&&m[t].getDataIndex()===e){this.setActiveDrawLayer(t);break}},this.addViewLayer=function(){var e=m.length,t=u(),t=(o.append(t),new _.gui.ViewLayer(t)),n=(m.push(t),this.setActiveViewLayer(e),t);n.addEventListener("positionchange",S.updateLayersToPositionChange);for(var i=0;i<_.image.viewEventNames.length;++i)n.addEventListener(_.image.viewEventNames[i],f);return n.addEventListener("renderstart",f),n.addEventListener("renderend",f),t},this.addDrawLayer=function(){a=m.length;var e=u(),e=(o.append(e),new _.gui.DrawLayer(e));return m.push(e),e},this.empty=function(){m=[],a=r=null;var e=o.getElementsByClassName("layer");if(e)for(;0<e.length;)e[0].remove()},this.updateLayersToPositionChange=function(e){for(var t=0;t<m.length;++t)m[t]instanceof _.gui.ViewLayer&&(m[t].removeEventListener("positionchange",S.updateLayersToPositionChange),m[t].removeEventListener("positionchange",f));for(var n=new _.math.Index(e.value[0]),i=new _.math.Point(e.value[1]),r=(x=i,h&&p(i),null),o=null,a=0;a<m.length;++a){var s,l,u,c=!1,d=(m[a]instanceof _.gui.ViewLayer&&(s=(d=m[a].getViewController()).getOrigin(),l=d.getOrigin(i),o?d.canSetPosition(i)&&void 0!==l&&(d=r.minus(s),d=new _.math.Vector3D(d.getX(),d.getY(),d.getZ()),u=o.minus(l),u=new _.math.Vector3D(u.getX(),u.getY(),u.getZ()),c=m[a].setBaseOffset(d,u)):(r=s,o=l)),!1);!(d=m[a].getId()!==e.srclayerid?m[a].setCurrentPosition(i,n):d)&&c&&m[a].draw()}for(var g=0;g<m.length;++g)m[g]instanceof _.gui.ViewLayer&&(m[g].addEventListener("positionchange",S.updateLayersToPositionChange),m[g].addEventListener("positionchange",f))},this.calculateFitScale=function(){if(0===o.offsetWidth&&0===o.offsetHeight)throw new Error("Cannot fit to zero sized container.");var e=this.getMaxSize();if(void 0!==e)return Math.min(o.offsetWidth/e.x,o.offsetHeight/e.y)},this.setFitScale=function(e){var t=this.getMaxSize();if(void 0!==t){for(var n={x:o.offsetWidth,y:o.offsetHeight},i={x:-.5*(n.x-Math.floor(t.x*e)),y:-.5*(n.y-Math.floor(t.y*e))},r=0;r<m.length;++r)m[r].fitToContainer(e,n,i);h&&p()}},this.getMaxSize=function(){for(var e,t={x:0,y:0},n=0;n<m.length;++n)m[n]instanceof _.gui.ViewLayer&&((e=m[n].getImageWorldSize()).x>t.x&&(t.x=e.x),e.y>t.y&&(t.y=e.y));return t=0===t.x&&0===t.y?void 0:t},this.flipScaleZ=function(){e.z*=-1,this.setScale(e)},this.addScale=function(e,t){e={x:i.x*(1+e),y:i.y*(1+e),z:i.z*(1+e)};this.setScale(e,t)},this.setScale=function(e,t){i=e;for(var n=0;n<m.length;++n)m[n].setScale(i,t);e=[e.x,e.y,e.z];void 0!==t&&(e.push(t.getX()),e.push(t.getY()),e.push(t.getZ())),f({type:"zoomchange",value:e})},this.addTranslation=function(e){this.setOffset({x:n.x-e.x,y:n.y-e.y,z:n.z-e.z})},this.setOffset=function(e){n=e;for(var t=0;t<m.length;++t)m[t].setOffset(n);f({type:"offsetchange",value:[n.x,n.y,n.z]})},this.reset=function(){this.setScale(e),this.setOffset({x:0,y:0,z:0})},this.draw=function(){for(var e=0;e<m.length;++e)m[e].draw()},this.display=function(e){for(var t=0;t<m.length;++t)m[t].display(e)},this.addEventListener=function(e,t){s.add(e,t)},this.removeEventListener=function(e,t){s.remove(e,t)}},_||{}),_=(_.gui=_.gui||{},_.gui.WindowLevelBinder=function(){this.getEventType=function(){return"wlchange"},this.getCallback=function(n){return function(e){var t=n.getViewLayersByDataIndex(e.dataindex);0!==t.length&&t[0].getViewController().setWindowLevel(e.value[0],e.value[1])}}},_.gui.PositionBinder=function(){this.getEventType=function(){return"positionchange"},this.getCallback=function(o){return function(e){var e=e.value[1],t=o.getActiveViewLayer().getViewController(),n=t.getCurrentPosition(),i=n.length(),r=e.length;r!==i&&(r===i-1?e.push(n.get(i-1)):r===i+1&&e.pop()),t.setCurrentPosition(new _.math.Point(e))}}},_.gui.ZoomBinder=function(){this.getEventType=function(){return"zoomchange"},this.getCallback=function(i){return function(e){var t,n={x:e.value[0],y:e.value[1],z:e.value[2]};6===e.value.length&&(t=new _.math.Point3D(e.value[3],e.value[4],e.value[5])),i.setScale(n,t),i.draw()}}},_.gui.OffsetBinder=function(){this.getEventType=function(){return"offsetchange"},this.getCallback=function(t){return function(e){t.setOffset({x:e.value[0],y:e.value[1],z:e.value[2]}),t.draw()}}},_.gui.OpacityBinder=function(){this.getEventType=function(){return"opacitychange"},this.getCallback=function(n){return function(e){var t;void 0!==e.dataindex&&0!==(t=n.getViewLayersByDataIndex(e.dataindex)).length&&(t[0].setOpacity(e.value),t[0].draw())}}},_.gui.Stage=function(){var o=[],n=null,i=[],r=null;function a(t,n){void 0===r[n]&&(r[n]=[]);var e=r[n].find(function(e){return e.binder===t});return void 0===e&&r[n].push(e={binder:t,callback:function(e){l(n,t),t.getCallback(o[n])(e),s(n,t)}}),e.callback}function s(e,t){for(var n=0;n<o.length;++n)n!==e&&o[e].addEventListener(t.getEventType(),a(t,n))}function l(e,t){for(var n=0;n<o.length;++n)n!==e&&o[e].removeEventListener(t.getEventType(),a(t,n))}this.getLayerGroup=function(e){return o[e]},this.getNumberOfLayerGroups=function(){return o.length},this.getActiveLayerGroup=function(){return this.getLayerGroup(n)},this.getViewLayersByDataIndex=function(e){for(var t=[],n=0;n<o.length;++n)t=t.concat(o[n].getViewLayersByDataIndex(e));return t},this.addLayerGroup=function(e){n=o.length;var e=new _.gui.LayerGroup(e),t=r&&0!==r.length;return t&&this.unbindLayerGroups(),o.push(e),t&&this.bindLayerGroups(),e},this.getLayerGroupByDivId=function(t){return o.find(function(e){return e.getDivId()===t})},this.setBinders=function(e){if(null==e)throw new Error("Cannot set null or undefined binders");0!==i.length&&this.unbindLayerGroups(),i=e.slice(),this.bindLayerGroups()},this.empty=function(){this.unbindLayerGroups();for(var e=0;e<o.length;++e)o[e].empty();o=[],n=null},this.reset=function(){for(var e=0;e<o.length;++e)o[e].reset()},this.draw=function(){for(var e=0;e<o.length;++e)o[e].draw()},this.syncLayerGroupScale=function(){for(var e,t=[],n=0;n<o.length;++n){var i=o[n].calculateFitScale();void 0!==i&&(t.push(n),(void 0===e||i<e)&&(e=i))}if(void 0!==e)for(var r=0;r<o.length;++r)t.includes(r)&&o[r].setFitScale(e)},this.bindLayerGroups=function(){if(0!==o.length&&1!==o.length&&0!==i.length){r=new Array(o.length);for(var e=0;e<o.length;++e)for(var t=0;t<i.length;++t)s(e,i[t])}},this.unbindLayerGroups=function(){if(0!==o.length&&1!==o.length&&0!==i.length&&r){for(var e=0;e<o.length;++e)for(var t=0;t<i.length;++t)l(e,i[t]);r=null}}},_||{}),_=(_.gui=_.gui||{},_.gui.Style=function(){var t="#ffff80",n={x:1,y:1},i={x:1,y:1},e={x:.25,y:.25};this.getFontFamily=function(){return"Verdana"},this.getFontSize=function(){return 10},this.getStrokeWidth=function(){return 2},this.getTextColour=function(){return"#fff"},this.getLineColour=function(){return t},this.setLineColour=function(e){t=e},this.setBaseScale=function(e){n=e},this.setZoomScale=function(e){i=e},this.getBaseScale=function(){return n},this.getZoomScale=function(){return i},this.scale=function(e){return e/n.x},this.applyZoomScale=function(e){return{x:2*e/i.x,y:2*e/i.y}},this.getShadowOffset=function(){return e},this.getTagOpacity=function(){return.2},this.getTextPadding=function(){return 3}},_.gui.Style.prototype.getFontStr=function(){return"normal "+this.getFontSize()+"px sans-serif"},_.gui.Style.prototype.getLineHeight=function(){return this.getFontSize()+this.getFontSize()/5},_.gui.Style.prototype.getScaledFontSize=function(){return this.scale(this.getFontSize())},_.gui.Style.prototype.getScaledStrokeWidth=function(){return this.scale(this.getStrokeWidth())},_.gui.Style.prototype.getShadowLineColour=function(){return _.utils.getShadowColour(this.getLineColour())},_||{}),_=(_.gui=_.gui||{},_.gui.ViewLayer=function(r){r.className+=" viewLayer";var t,a,i=this,o=null,s=null,l=null,u=null,c=!0,n=null,d=1,g={x:1,y:1},x={x:1,y:1},S={x:0,y:0},m={x:0,y:0},h={x:0,y:0},p={x:0,y:0},f={x:0,y:0},y=null,D=null,v=(this.getDataIndex=function(){return D},new _.utils.ListenerHandler),C=!1;function T(e){if(!_.gui.canCreateCanvas(e.x,e.y))throw new Error("Cannot create canvas with size "+e.x+", "+e.y);t=e,l.width=t.x,l.height=t.y,u.clearRect(0,0,t.x,t.y),n=u.createImageData(t.x,t.y)}function L(e){e.srclayerid=i.getId(),e.dataindex=D,v.fireEvent(e)}function I(e){void 0!==e.skipGenerate&&!0===e.skipGenerate||(y=!0,i.draw())}function P(e){void 0!==event.skipGenerate&&!0===event.skipGenerate||(y=!0,i.draw())}function w(e){var t,n;void 0!==e.skipGenerate&&!0===e.skipGenerate||(n=!0,(n=void 0!==e.valid?e.valid:n)?(n=(t=[0,1,2]).indexOf(o.getScrollIndex()),t.splice(n,1),0===e.diffDims.filter(function(e){return-1===t.indexOf(e)}).length&&c||(y=c=!0,i.draw())):c&&(c=!1,i.clear()))}function A(e){void 0!==e.skipGenerate&&!0===e.skipGenerate||(y=!0,i.draw())}this.enableImageSmoothing=function(e){C=e},this.setView=function(e){e.addEventListener("wlchange",I),e.addEventListener("colourchange",P),e.addEventListener("positionchange",w),e.addEventListener("alphafuncchange",A);for(var t=0;t<_.image.viewEventNames.length;++t)e.addEventListener(_.image.viewEventNames[t],L);o=new _.ctrl.ViewController(e)},this.getViewController=function(){return o},this.getImageData=function(){return n},this.onimagechange=function(e){D===e.value[0]&&(o.setImage(e.value[1]),T(o.getImageSize().get2D()),y=!0)},this.getId=function(){return r.id},this.getBaseSize=function(){return t},this.getImageWorldSize=function(){return o.getImageWorldSize()},this.getOpacity=function(){return d},this.setOpacity=function(e){e!==d&&L({type:"opacitychange",value:[d=Math.min(Math.max(e,0),1)]})},this.addFlipOffsetX=function(){f.x+=s.width/g.x,S.x+=f.x},this.addFlipOffsetY=function(){f.y+=s.height/g.y,S.y+=f.y},this.setScale=function(e,t){var n=o.getPlaneHelper(),i=n.getTargetOrientedPositiveXYZ(e),i={x:x.x*i.x,y:x.y*i.y};1===Math.abs(e.x)&&1===Math.abs(e.y)&&1===Math.abs(e.z)?(e={x:S.x-p.x,y:S.y-p.y},p={x:0,y:0},S=e):void 0!==t&&(e={x:(e=n.getPlaneOffsetFromOffset3D({x:t.getX(),y:t.getY(),z:t.getZ()})).x+m.x,y:e.y+m.y},n=_.gui.getScaledOffset(S,g,i,e),t={x:p.x+n.x-S.x,y:p.y+n.y-S.y},p=t,S=n),g=i},this.setBaseOffset=function(e,t){var n=o.getPlaneHelper(),i=n.getNativeScrollIndex(),n=n.getPlaneOffsetFromOffset3D({x:(0===i?e:t).getX(),y:(1===i?e:t).getY(),z:(2===i?e:t).getZ()}),i=m.x!==n.x||m.y!==n.y;return i&&(S={x:S.x-m.x+n.x,y:S.y-m.y+n.y},m=n),i},this.setOffset=function(e){e=o.getPlaneHelper().getPlaneOffsetFromOffset3D(e);S={x:e.x+h.x+m.x+p.x+f.x,y:e.y+h.y+m.y+p.y+f.y}},this.displayToPlaneIndex=function(e,t){e=this.displayToPlanePos(e,t);return new _.math.Index([Math.floor(e.x),Math.floor(e.y)])},this.displayToPlaneScale=function(e,t){return{x:e/g.x,y:t/g.y}},this.displayToPlanePos=function(e,t){e=this.displayToPlaneScale(e,t);return{x:e.x+S.x,y:e.y+S.y}},this.planePosToDisplay=function(e,t){return{x:(e-S.x+m.x)*g.x,y:(t-S.y+m.y)*g.y}},this.displayToMainPlanePos=function(e,t){e=this.displayToPlanePos(e,t);return{x:e.x-m.x,y:e.y-m.y}},this.display=function(e){r.style.display=e?"":"none"},this.isVisible=function(){return""===r.style.display},this.draw=function(){c&&(L({type:"renderstart",layerid:this.getId(),dataid:this.getDataIndex()}),y&&(o.generateImageData(n),l.getContext("2d").putImageData(n,0,0),y=!1),u.globalAlpha=d,this.clear(),u.setTransform(g.x,0,0,g.y,-1*S.x*g.x,-1*S.y*g.y),u.imageSmoothingEnabled=C,u.drawImage(l,0,0),L({type:"renderend",layerid:this.getId(),dataid:this.getDataIndex()}))},this.initialise=function(e,t,n,i){a=t,D=n,d=Math.min(Math.max(i,0),1),s=document.createElement("canvas"),r.appendChild(s),s.getContext?(u=s.getContext("2d"))?(l=document.createElement("canvas"),T(e),y=!0):alert("Error: failed to get the 2D context."):alert("Error: no canvas.getContext method.")},this.fitToContainer=function(e,t,n){var i=!1;if(s.width!==t.x||s.height!==t.y){if(!_.gui.canCreateCanvas(t.x,t.y))throw new Error("Cannot resize canvas "+t.x+", "+t.y);s.width=t.x,s.height=t.y,i=!0}var t=g.x/x.x,r=g.y/x.y,e={x:e*a.x,y:e*a.y},o={x:t*e.x,y:r*e.y},t=(t===o.x&&r===o.y||(x=e,g=o,i=!0),{x:n.x/e.x,y:n.y/e.y});h.x===t.x&&h.y===t.y||(S={x:(h=t).x+m.x+p.x+f.x,y:h.y+m.y+p.y+f.y},i=!0),i&&this.draw()},this.bindInteraction=function(){r.style.pointerEvents="auto";for(var e=_.gui.interactionEventNames,t=0;t<e.length;++t)r.addEventListener(e[t],L)},this.unbindInteraction=function(){r.style.pointerEvents="none";for(var e=_.gui.interactionEventNames,t=0;t<e.length;++t)r.removeEventListener(e[t],L)},this.addEventListener=function(e,t){v.add(e,t)},this.removeEventListener=function(e,t){v.remove(e,t)},this.setCurrentPosition=function(e,t){return o.setCurrentPosition(e)},this.clear=function(){u.save(),u.setTransform(1,0,0,1,0,0),u.clearRect(0,0,s.width,s.height),u.restore()},this.align=function(e){s.style.top=e.getCanvas().offsetTop,s.style.left=e.getCanvas().offsetLeft}},_||{}),d=(_.image=_.image||{},"undefined"!=typeof JpegImage),g="undefined"!=typeof jpeg&&void 0!==jpeg.lossless,x="undefined"!=typeof JpxImage,_=(_.image.AsynchPixelBufferDecoder=function(i,e){var r=new _.utils.ThreadPool(10),o=!1,a=this;this.decode=function(e,t,n){o||(o=!0,r.onworkstart=a.ondecodestart,r.onworkitem=a.ondecodeditem,r.onwork=a.ondecoded,r.onworkend=a.ondecodeend,r.onerror=a.onerror,r.onabort=a.onabort);e=new _.utils.WorkerTask(i,{buffer:e,meta:t},n);r.addWorkerTask(e)},this.abort=function(){r.abort()}},_.image.AsynchPixelBufferDecoder.prototype.ondecodestart=function(e){},_.image.AsynchPixelBufferDecoder.prototype.ondecodeditem=function(e){},_.image.AsynchPixelBufferDecoder.prototype.ondecoded=function(e){},_.image.AsynchPixelBufferDecoder.prototype.ondecodeend=function(e){},_.image.AsynchPixelBufferDecoder.prototype.onerror=function(e){},_.image.AsynchPixelBufferDecoder.prototype.onabort=function(e){},_.image.SynchPixelBufferDecoder=function(s,l){var u=0;this.decode=function(e,t,n){++u;var i=null,r=null;if("jpeg-lossless"===s){if(!g)throw new Error("No JPEG Lossless decoder provided");var o=t.bitsAllocated/8,a=new Uint8Array(e),a=(i=new jpeg.lossless.Decoder).decode(a.buffer,0,a.buffer.byteLength,o);8===t.bitsAllocated?r=new(t.isSigned?Int8Array:Uint8Array)(a.buffer):16===t.bitsAllocated&&(r=new(t.isSigned?Int16Array:Uint16Array)(a.buffer))}else if("jpeg-baseline"===s){if(!d)throw new Error("No JPEG Baseline decoder provided");(i=new JpegImage).parse(e),r=i.getData(i.width,i.height)}else if("jpeg2000"===s){if(!x)throw new Error("No JPEG 2000 decoder provided");(i=new JpxImage).parse(e),r=i.tiles[0].items}else"rle"===s&&(r=(i=new _.decoder.RleDecoder).decode(e,t.bitsAllocated,t.isSigned,t.sliceSize,t.samplesPerPixel,t.planarConfiguration));this.ondecodeditem({data:[r],index:n.itemNumber}),u===l&&(this.ondecoded({}),this.ondecodeend({}))},this.abort=function(){this.onabort({}),this.ondecodeend({})}},_.image.SynchPixelBufferDecoder.prototype.ondecodestart=function(e){},_.image.SynchPixelBufferDecoder.prototype.ondecodeditem=function(e){},_.image.SynchPixelBufferDecoder.prototype.ondecoded=function(e){},_.image.SynchPixelBufferDecoder.prototype.ondecodeend=function(e){},_.image.SynchPixelBufferDecoder.prototype.onerror=function(e){},_.image.SynchPixelBufferDecoder.prototype.onabort=function(e){},_.image.PixelBufferDecoder=function(e,t){var i=null,i=void 0!==_.image.decoderScripts&&void 0!==_.image.decoderScripts[e]?new _.image.AsynchPixelBufferDecoder(_.image.decoderScripts[e],t):new _.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()}},_.image.PixelBufferDecoder.prototype.ondecodestart=function(e){},_.image.PixelBufferDecoder.prototype.ondecodeditem=function(e){},_.image.PixelBufferDecoder.prototype.ondecoded=function(e){},_.image.PixelBufferDecoder.prototype.ondecodeend=function(e){},_.image.PixelBufferDecoder.prototype.onerror=function(e){},_.image.PixelBufferDecoder.prototype.onabort=function(e){},_||{}),_=(_.image=_.image||{},_.image.DicomBufferToView=function(){var c,d=this,g=(this.setOptions=function(e){c=e},null),x=[],S=[],m=[];function h(e,t){var n=x[e].getDicomElements(),i=_.dicom.cleanString(n.getFromKey("x00080060")),i=new(i&&"SEG"===i?_.image.MaskFactory:_.image.ImageFactory);try{var r=i.create(n,S[e],c.numberOfFiles);d.onloaditem({data:{image:r,info:x[e].getRawDicomElements()},source:t})}catch(e){d.onerror({error:e,source:t}),d.onloadend({source:t})}}this.convert=function(e,t,n){d.onloadstart({source:t,dataIndex:n});var i=new _.dicom.DicomParser,r=new _.ImageFactory;void 0!==c.defaultCharacterSet&&i.setDefaultCharacterSet(c.defaultCharacterSet);try{i.parse(e),r.checkElements(i.getDicomElements())}catch(e){return d.onerror({error:e,source:t}),void d.onloadend({source:t})}var o=i.getRawDicomElements().x7FE00010.value,e=(i.getRawDicomElements().x7FE00010.value=[],_.dicom.cleanString(i.getRawDicomElements().x00020010.value[0])),r=_.dicom.getSyntaxDecompressionName(e),e=null!==r;if(x[n]=i,S[n]=o[0],e){var a={bitsAllocated:i.getRawDicomElements().x00280100.value[0],isSigned:1===i.getRawDicomElements().x00280103.value[0]},e=i.getRawDicomElements().x00280011,s=i.getRawDicomElements().x00280010,e=(void 0!==e&&void 0!==s&&(a.sliceSize=e.value[0]*s.value[0]),i.getRawDicomElements().x00280002),s=(void 0!==e&&(a.samplesPerPixel=e.value[0]),i.getRawDicomElements().x00280006),l=(void 0!==s&&(a.planarConfiguration=s.value[0]),o.length);null===g&&((g=new _.image.PixelBufferDecoder(r,l)).ondecodeditem=function(e){!function(e){d.onprogress({lengthComputable:!0,loaded:e.itemNumber+1,total:e.numberOfItems,index:e.dataIndex,source:origin});var t=e.dataIndex,n=e.data[0];if(1!==e.numberOfItems){if(void 0===m[t]){m[t]=n.length;var i,r=e.numberOfItems*m[t];try{S[t]=new n.constructor(r)}catch(e){return e instanceof RangeError&&(i=Math.floor(Math.log(r)/Math.log(2)),_.logger.error("Cannot allocate "+n.constructor.name+" of size: "+r+" (>2^"+i+") for decompressed data.")),g.abort(),d.onerror({error:e,source:origin}),d.onloadend({source:origin})}}n.length!==m[t]&&_.logger.warn("Unsupported varying decompressed data size: "+n.length+" != "+m[t]),S[t].set(n,m[t]*e.itemNumber)}else S[t]=n;0===e.itemNumber&&h(t,origin)}(e),e.itemNumber+1===e.numberOfItems&&(d.onload(e),d.onloadend(e))},g.onerror=d.onerror,g.onabort=d.onabort);for(var u=0;u<l;++u)g.decode(o[u],a,{itemNumber:u,numberOfItems:l,dataIndex:n})}else d.onprogress({lengthComputable:!0,loaded:100,total:100,index:n,source:t}),h(n,t),d.onload({source:t}),d.onloadend({source:t})},this.abort=function(){g&&g.abort()}},_.image.DicomBufferToView.prototype.onloadstart=function(e){},_.image.DicomBufferToView.prototype.onloaditem=function(e){},_.image.DicomBufferToView.prototype.onprogress=function(e){},_.image.DicomBufferToView.prototype.onload=function(e){},_.image.DicomBufferToView.prototype.onloadend=function(e){},_.image.DicomBufferToView.prototype.onerror=function(e){},_.image.DicomBufferToView.prototype.onabort=function(e){},_||{}),_=(_.image=_.image||{},_.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},_.image.getDefaultImage=function(e,t,n,i,r,o){e=new _.image.Size([e,t,1]),t=new _.image.Spacing([1,1,1]),n=new _.math.Point3D(0,0,n),n=new _.image.Geometry(n,e,t),e=new _.image.Image(n,i,[o]),e.setPhotometricInterpretation("RGB"),t={};return t.BitsStored=8,void 0!==r&&(t.numberOfFiles=r),e.setMeta(t),e},_.image.getViewFromDOMImage=function(e,t){var n=e.width,i=e.height,r=document.createElement("canvas"),r=(r.width=n,r.height=i,r.getContext("2d")),r=(r.drawImage(e,0,0),r.getImageData(0,0,n,i)),o={},e=("string"==typeof e.origin?o.origin={value:e.origin}:(o.fileName={value:e.origin.name},o.fileType={value:e.origin.type},o.fileLastModifiedDate={value:e.origin.lastModifiedDate}),o.imageWidth={value:n},o.imageHeight={value:i},e.index||0),r=(o.imageUid={value:e},_.image.imageDataToBuffer(r));return{data:{image:_.image.getDefaultImage(n,i,e,r,1,e),info:o},source:t}},_.image.getViewFromDOMVideo=function(t,n,i,r,o,a,s){var l=t.videoWidth,u=t.videoHeight,c=Math.ceil(30*t.duration),d={},e=(t.file&&(d.fileName={value:t.file.name},d.fileType={value:t.file.type},d.fileLastModifiedDate={value:t.file.lastModifiedDate}),d.imageWidth={value:l},d.imageHeight={value:u},d.numberOfFrames={value:c},d.imageUid={value:0},document.createElement("canvas")),g=(e.width=l,e.height=u,e.getContext("2d")),x=(t.addEventListener("seeked",function e(){m();h+=1/30;h<=this.duration?this.currentTime=h:(i({source:s}),o({source:s}),t.removeEventListener("seeked",e))},!1),0),S=null;function m(){r({lengthComputable:!0,loaded:x,total:c,index:a,source:s}),g.drawImage(t,0,0);var e=_.image.imageDataToBuffer(g.getImageData(0,0,l,u));0===x?(S=_.image.getDefaultImage(l,u,1,e,c,a),n({data:{image:S,info:d},source:s})):S.appendFrameBuffer(e,x),++x}var h=0;t.currentTime=h},_||{}),_=(_.image=_.image||{},_.image.filter=_.image.filter||{},_.image.filter.Threshold=function(){var t=0,n=0,i=(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"},null);this.setOriginalImage=function(e){i=e},this.getOriginalImage=function(){return i}},_.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})},_.image.filter.Sharpen=function(){this.getName=function(){return"Sharpen"};var t=null;this.setOriginalImage=function(e){t=e},this.getOriginalImage=function(){return t}},_.image.filter.Sharpen.prototype.update=function(){return this.getOriginalImage().convolute2D([0,-1,0,-1,5,-1,0,-1,0])},_.image.filter.Sobel=function(){this.getName=function(){return"Sobel"};var t=null;this.setOriginalImage=function(e){t=e},this.getOriginalImage=function(){return t}},_.image.filter.Sobel.prototype.update=function(){var e=this.getOriginalImage(),t=e.convolute2D([1,0,-1,2,0,-2,1,0,-1]),e=e.convolute2D([1,2,1,0,0,0,-1,-2,-1]);return t.compose(e,function(e,t){return Math.sqrt(e*e+t*t)})},_||{}),_=(_.image=_.image||{},_.image.Geometry=function(e,i,r,s,t){var o,l=[e],u={},a=(void 0!==t&&(u[o=t]=[e]),void 0===s&&(s=new _.math.getIdentityMat33),!1);this.getInitialTime=function(){return o},this.getCurrentTotalNumberOfSlices=function(){var e=Object.keys(u);if(0===e.length)return l.length;for(var t=0,n=0;n<e.length;++n)t+=u[e[n]].length;return t},this.hasSlicesAtTime=function(e){return void 0!==u[e]},this.getCurrentNumberOfSlicesBeforeTime=function(e){var t=Object.keys(u);if(0!==t.length){for(var n=0,i=0;i<t.length;++i){var r=t[i];if(parseInt(r,10)===e)break;n+=u[r].length}return n}},this.getOrigin=function(){return l[0]},this.getOrigins=function(){return l},this.includesOrigin=function(e,t){for(var n=0;n<l.length;++n)if(l[n].isSimilar(e,t))return!0;return!1},this.getSize=function(e){var t=i;return e&&void 0!==e&&(e=(e=_.image.getOrientedArray3D([i.get(0),i.get(1),i.get(2)],e)).map(Math.abs),t=new _.image.Size(e.concat(i.getValues().slice(3)))),t},this.getSpacing=function(e){a&&(void 0!==(n=_.image.getSliceGeometrySpacing(l,s))&&r.get(2)!==n&&(_.logger.trace("Updating slice spacing."),(t=r.getValues())[2]=n,r=new _.image.Spacing(t)),a=!1);var t,n=r;return e&&void 0!==e&&(t=(t=_.image.getOrientedArray3D([r.get(0),r.get(1),r.get(2)],e)).map(Math.abs),n=new _.image.Spacing(t)),n},this.getRealSpacing=function(){return this.getSpacing(s.getInverse().asOneAndZeros())},this.getOrientation=function(){return s},this.getSliceIndex=function(e,t){for(var n,i=l,r=(void 0!==t&&(i=u[t]),0),o=e.getDistance(i[0]),a=0;a<i.length;++a)(n=e.getDistance(i[a]))<o&&(o=n,r=a);t=i[r],t=e.minus(t);return 0<new _.math.Vector3D(s.get(0,2),s.get(1,2),s.get(2,2)).dotProduct(t)?r+1:r},this.appendOrigin=function(e,t,n){void 0!==n&&u[n].splice(t,0,e),void 0!==n&&n!==o||(a=!0,l.splice(t,0,e),(n=i.getValues())[2]+=1,i=new _.image.Size(n))},this.appendFrame=function(e,t){u[t]=[e];t=i.getValues(),e=r.getValues();4===t.length?t[3]+=1:(t.push(2),e.push(1)),i=new _.image.Size(t),r=new _.image.Spacing(e)}},_.image.Geometry.prototype.toString=function(){return"Origin: "+this.getOrigin()+", Size: "+this.getSize()+", Spacing: "+this.getSpacing()+", Orientation: "+this.getOrientation()},_.image.Geometry.prototype.equals=function(e){return null!==e&&this.getOrigin().equals(e.getOrigin())&&this.getSize().equals(e.getSize())&&this.getSpacing().equals(e.getSpacing())},_.image.Geometry.prototype.isInBounds=function(e){return this.isIndexInBounds(this.worldToIndex(e))},_.image.Geometry.prototype.isIndexInBounds=function(e,t){return this.getSize().isInBounds(e,t)},_.image.Geometry.prototype.indexToWorld=function(e){var t=this.getSpacing(),t=new _.math.Point3D(e.get(0)*t.get(0),e.get(1)*t.get(1),e.get(2)*t.get(2)),t=this.getOrientation().multiplyPoint3D(t),e=e.getValues(),n=this.getOrigin();return e[0]=n.getX()+t.getX(),e[1]=n.getY()+t.getY(),e[2]=n.getZ()+t.getZ(),new _.math.Point(e)},_.image.Geometry.prototype.pointToWorld=function(e){var t=this.getSpacing(),e=new _.math.Point3D(e.getX()*t.get(0),e.getY()*t.get(1),e.getZ()*t.get(2)),t=this.getOrientation().multiplyPoint3D(e),e=this.getOrigin();return new _.math.Point3D(e.getX()+t.getX(),e.getY()+t.getY(),e.getZ()+t.getZ())},_.image.Geometry.prototype.worldToIndex=function(e){var t=this.getOrigin(),t=new _.math.Point3D(e.get(0)-t.getX(),e.get(1)-t.getY(),e.get(2)-t.getZ()),t=this.getOrientation().getInverse().multiplyPoint3D(t),e=e.getValues(),n=this.getSpacing();return e[0]=Math.round(t.getX()/n.get(0)),e[1]=Math.round(t.getY()/n.get(1)),e[2]=Math.round(t.getZ()/n.get(2)),new _.math.Index(e)},_.image.Geometry.prototype.worldToPoint=function(e){var t=this.getOrigin(),t=new _.math.Point3D(e.get(0)-t.getX(),e.get(1)-t.getY(),e.get(2)-t.getZ()),t=this.getOrientation().getInverse().multiplyPoint3D(t),e=e.getValues(),n=this.getSpacing();return e[0]=t.getX()/n.get(0),e[1]=t.getY()/n.get(1),e[2]=t.getZ()/n.get(2),new _.math.Point3D(e[0],e[1],e[2])},_.image.getOrientedArray3D=function(e,t){return t.getInverse().multiplyArray3D(e)},_.image.getDeOrientedArray3D=function(e,t){return t.multiplyArray3D(e)},_.image.getSliceGeometrySpacing=function(e,t,n){if(void 0===n&&(n=!0),!(e.length<=1)){for(var i=t.getInverse(),r=i.multiplyVector3D(e[0]),o=i.multiplyVector3D(e[1]),a=Math.abs(r.getZ()-o.getZ()),s=[],l=0;l<e.length-1;++l){var r=i.multiplyVector3D(e[l]),o=i.multiplyVector3D(e[l+1]),u=Math.abs(r.getZ()-o.getZ());if(0===u)throw new Error("Zero slice spacing."+r.toString()+" "+o.toString());u<a&&(a=u),!n||_.math.isSimilar(a,u,_.math.BIG_EPSILON)||s.push(Math.abs(a-u))}return n&&0!==s.length&&(1e-4<(t=s.reduce(function(e,t){return e+t})/s.length)&&_.logger.warn("Varying slice spacing, mean delta: "+t.toFixed(3)+" ("+s.length+" case(s))")),a}},_||{}),_=(_.image=_.image||{},_.image.getSliceIndex=function(e,t){var n=t.getInitialTime(),i=[];return i.push(0),i.push(0),i.push(e.getSliceIndex(t.getOrigin(),n)),void 0!==n&&i.push(n),new _.math.Index(i)},_.image.Image=function(f,y,D){var r=new _.image.RescaleSlopeAndIntercept(1,0),o=null,a=!0,s=!0,v="MONOCHROME2",t=0,C=y.length/f.getSize().getTotalSize(),T={},n=null,i=null,l=null,u=new _.utils.ListenerHandler;function c(){return f.getSize().getTotalSize(2)}function L(e){var t=y;if(null===(y=_.dicom.getTypedArray(8*y.BYTES_PER_ELEMENT,T.IsSigned?1:0,e)))throw new Error("Cannot reallocate data for image.");y.set(t)}this.getImageUid=function(e){var t=D[0];return t=1!==D.length&&void 0!==e?D[this.getSecondaryOffset(e)]:t},this.getGeometry=function(){return f},this.getBuffer=function(){return y},this.canQuantify=function(){return 1===this.getNumberOfComponents()},this.canWindowLevel=function(){return null!==this.getPhotometricInterpretation().match(/MONOCHROME/)},this.canScroll=function(e){var t=this.getGeometry().getSize(),n=1;return void 0!==T.numberOfFiles&&(n=T.numberOfFiles),t.canScroll(e)||1!==n},this.getSecondaryOffset=function(e){return f.getSize().indexToOffset(e,2)},this.getRescaleSlopeAndIntercept=function(e){var t=r;if(!this.isConstantRSI()){if(void 0===e)throw new Error("Cannot get non constant RSI with empty slice index.");e=this.getSecondaryOffset(e);void 0!==o[e]?t=o[e]:_.logger.warn("undefined non constant rsi at "+e)}return t},this.setRescaleSlopeAndIntercept=function(e,t){if(a=a&&e.isID(),s){if(!r.equals(e))if("undefined"==typeof index)r=e;else{s=!1,o=[];for(var n=0,i=c();n<i;++n)o.push(n);r=null,o.splice(t,0,e)}}else{if("undefined"==typeof index)throw new Error("Cannot store non constant RSI with empty slice index.");o.splice(t,0,e)}},this.isIdentityRSI=function(){return a},this.isConstantRSI=function(){return s},this.getPhotometricInterpretation=function(){return v},this.setPhotometricInterpretation=function(e){v=e},this.getPlanarConfiguration=function(){return t},this.setPlanarConfiguration=function(e){t=e},this.getNumberOfComponents=function(){return C},this.getMeta=function(){return T},this.setMeta=function(e){T=e},this.getValueAtOffset=function(e){return y[e]},this.clone=function(){var e=y.slice(0),t=new _.image.Image(this.getGeometry(),e,D);if(this.isConstantRSI())t.setRescaleSlopeAndIntercept(this.getRescaleSlopeAndIntercept());else for(var n=0;n<c();++n)t.setRescaleSlopeAndIntercept(o[n],n);return t.setPhotometricInterpretation(this.getPhotometricInterpretation()),t.setPlanarConfiguration(this.getPlanarConfiguration()),t.setMeta(this.getMeta()),t},this.appendSlice=function(e){if(null===e)throw new Error("Cannot append null slice");var t,n=e.getGeometry().getSize(),i=f.getSize();if(1!==n.get(2))throw new Error("Cannot append more than one slice");if(i.get(0)!==n.get(0))throw new Error("Cannot append a slice with different number of columns");if(i.get(1)!==n.get(1))throw new Error("Cannot append a slice with different number of rows");if(!f.getOrientation().equals(e.getGeometry().getOrientation(),1e-4))throw new Error("Cannot append a slice with different orientation");if(v!==e.getPhotometricInterpretation())throw new Error("Cannot append a slice with different photometric interpretation");for(t in T)if("windowPresets"!==t&&"numberOfFiles"!==t&&"custom"!==t&&T[t]!==e.getMeta()[t])throw new Error("Cannot append a slice with different "+t);var n=e.getGeometry().getInitialTime(),r=!1,o=(void 0===n||f.hasSlicesAtTime(n)||(this.appendFrame(e.getGeometry().getOrigin(),n),i=f.getSize(),r=!0),_.image.getSliceIndex(f,e.getGeometry())),i=C*i.getDimSize(2);if(void 0===T.numberOfFiles)throw new Error("Missing number of files for buffer manipulation.");var a=i*T.numberOfFiles,a=(y.length!==a&&L(a),o.get(2)),s=a,o=(void 0!==n&&(s+=f.getCurrentNumberOfSlicesBeforeTime(n)),s*i),l=f.getCurrentTotalNumberOfSlices()*i,u=(o<l&&y.set(y.subarray(o,l),o+i),y.set(e.getBuffer(),o),r||f.appendOrigin(e.getGeometry().getOrigin(),a,n),this.setRescaleSlopeAndIntercept(e.getRescaleSlopeAndIntercept(),s),D.length);if(D.splice(s,0,e.getImageUid()),void 0!==T.windowPresets)for(var c=T.windowPresets,d=e.getMeta().windowPresets,g=Object.keys(d),x=0;x<g.length;++x){var S,m=d[S=g[x]],h=c[S];if(void 0!==h){if((void 0===h.perslice||!1===h.perslice)&&!h.wl[0].equals(m.wl[0])){h.perslice=!0;for(var p=0;p<u-1;++p)h.wl.push(h.wl[0])}void 0!==h.perslice&&!0===h.perslice&&c[S].wl.splice(s,0,m.wl[0])}else c[S]=d[S]}},this.appendFrameBuffer=function(e,t){var n=f.getSize(),n=C*n.getDimSize(2);if(void 0===T.numberOfFiles)throw new Error("Missing number of files for frame buffer manipulation.");var i=n*T.numberOfFiles;if(y.length!==i&&L(i),t>=T.numberOfFiles)throw new Error("Cannot append a frame at an index above the number of frames");y.set(e,n*t),this.appendFrame()},this.appendFrame=function(e,t){f.appendFrame(e,t),u.fireEvent({type:"appendframe"})},this.getDataRange=function(){return n=n||this.calculateDataRange()},this.getRescaledDataRange=function(){return i=i||this.calculateRescaledDataRange()},this.getHistogram=function(){var e;return l||(e=this.calculateHistogram(),n=e.dataRange,i=e.rescaledDataRange,l=e.histogram),l},this.addEventListener=function(e,t){u.add(e,t)},this.removeEventListener=function(e,t){u.remove(e,t)}},_.image.Image.prototype.getValue=function(e,t,n,i){e=new _.math.Index([e,t,n,i||0]);return this.getValueAtOffset(this.getGeometry().getSize().indexToOffset(e))},_.image.Image.prototype.getValueAtIndex=function(e){return this.getValueAtOffset(this.getGeometry().getSize().indexToOffset(e))},_.image.Image.prototype.getRescaledValue=function(e,t,n,i){var r=this.getValue(e,t,n,i=void 0===i?0:i);return r=this.isIdentityRSI()?r:this.isConstantRSI()?this.getRescaleSlopeAndIntercept().apply(r):(e=new _.math.Index([e,t,n,i]),this.getRescaleSlopeAndIntercept(e).apply(r))},_.image.Image.prototype.getRescaledValueAtIndex=function(e){return this.getRescaledValueAtOffset(this.getGeometry().getSize().indexToOffset(e))},_.image.Image.prototype.getRescaledValueAtOffset=function(e){var t=this.getValueAtOffset(e);return t=this.isIdentityRSI()?t:this.isConstantRSI()?this.getRescaleSlopeAndIntercept().apply(t):(e=this.getGeometry().getSize().offsetToIndex(e),this.getRescaleSlopeAndIntercept(e).apply(t))},_.image.Image.prototype.calculateDataRange=function(){var e,t=this.getValueAtOffset(0),n=t,i=this.getGeometry().getSize(),r=i.getTotalSize();3<=i.length()&&(r=i.getDimSize(3));for(var o=0;o<r;++o)n<(e=this.getValueAtOffset(o))&&(n=e),e<t&&(t=e);return{min:t,max:n}},_.image.Image.prototype.calculateRescaledDataRange=function(){if(this.isIdentityRSI())return this.getDataRange();var e;if(this.isConstantRSI())return e=this.getDataRange(),{min:(r=this.getRescaleSlopeAndIntercept().apply(e.min))<(e=this.getRescaleSlopeAndIntercept().apply(e.max))?r:e,max:e<r?r:e};var t,n=this.getRescaledValueAtOffset(0),i=n,r=this.getGeometry().getSize(),o=r.getTotalSize();3===r.length()&&(o=r.getDimSize(3));for(var a=0;a<o;++a)i<(t=this.getRescaledValueAtOffset(a))&&(i=t),t<n&&(n=t);return{min:n,max:i}},_.image.Image.prototype.calculateHistogram=function(){for(var e,t=this.getGeometry().getSize(),n=[],i=this.getValueAtOffset(0),r=i,o=this.getRescaledValueAtOffset(0),a=o,s=0,l=t.getTotalSize();s<l;++s)r<(e=this.getValueAtOffset(s))&&(r=e),e<i&&(i=e),a<(e=this.getRescaledValueAtOffset(s))&&(a=e),e<o&&(o=e),n[e]=(n[e]||0)+1;for(var t={min:i,max:r},u={min:o,max:a},c=[],d=o;d<=a;++d)c.push([d,n[d]||0]);return{dataRange:t,rescaledDataRange:u,histogram:c}},_.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);for(var t=this.clone(),n=t.getBuffer(),i=this.getGeometry().getSize(),r=i.getDimSize(2)*this.getNumberOfComponents(),o=0;o<i.get(2);++o)this.convoluteBuffer(e,n,o*r);return t},_.image.Image.prototype.convoluteBuffer=function(e,t,n){for(var i=this.getGeometry().getSize(),r=i.get(0),o=i.get(1),a=this.getNumberOfComponents(),s=1,l=1,u=(3===a&&(0===this.getPlanarConfiguration()?s=3:l=i.getDimSize(2)),[]),c=(u[0]=(-r-1)*s,u[1]=-r*s,u[2]=(1-r)*s,u[3]=-s,u[4]=0,u[5]=+s,u[6]=(r-1)*s,u[7]=r*s,u[8]=(r+1)*s,[]),d=(c[0]=u[4],c[1]=u[4],c[2]=u[5],c[3]=u[4],c[4]=u[4],c[5]=u[5],c[6]=u[7],c[7]=u[7],c[8]=u[8],[]),g=(d[0]=u[1],d[1]=u[1],d[2]=u[2],d[3]=u[4],d[4]=u[4],d[5]=u[5],d[6]=u[7],d[7]=u[7],d[8]=u[8],[]),x=(g[0]=u[1],g[1]=u[1],g[2]=u[2],g[3]=u[4],g[4]=u[4],g[5]=u[5],g[6]=u[4],g[7]=u[4],g[8]=u[5],[]),S=(x[0]=u[3],x[1]=u[4],x[2]=u[5],x[3]=u[3],x[4]=u[4],x[5]=u[5],x[6]=u[6],x[7]=u[7],x[8]=u[8],[]),m=(S[0]=u[0],S[1]=u[1],S[2]=u[2],S[3]=u[3],S[4]=u[4],S[5]=u[5],S[6]=u[3],S[7]=u[4],S[8]=u[5],[]),h=(m[0]=u[3],m[1]=u[4],m[2]=u[4],m[3]=u[3],m[4]=u[4],m[5]=u[4],m[6]=u[6],m[7]=u[7],m[8]=u[7],[]),p=(h[0]=u[0],h[1]=u[1],h[2]=u[1],h[3]=u[3],h[4]=u[4],h[5]=u[4],h[6]=u[6],h[7]=u[7],h[8]=u[7],[]),f=(p[0]=u[0],p[1]=u[1],p[2]=u[1],p[3]=u[3],p[4]=u[4],p[5]=u[4],p[6]=u[3],p[7]=u[4],p[8]=u[4],n),y=0,D=[],v=0;v<a;++v){f+=v*l;for(var C=0;C<o;++C)for(var T=0;T<r;++T){D=u,0===T&&0===C?D=c:0===T&&C===o-1?D=g:T===r-1&&0===C?D=m:T===r-1&&C===o-1?D=p:0===T&&C!==o-1&&0!==C?D=d:T===r-1&&C!==o-1&&0!==C?D=h:0!==T&&T!==r-1&&0===C?D=x:0!==T&&T!==r-1&&C===o-1&&(D=S);for(var y=0,L=0;L<9;++L)y+=this.getValueAtOffset(f+D[L])*e[L];t[f]=y,f+=s}}},_.image.Image.prototype.transform=function(e){for(var t=this.clone(),n=t.getBuffer(),i=0,r=n.length;i<r;++i)n[i]=e(t.getValueAtOffset(i));return t},_.image.Image.prototype.compose=function(e,t){for(var n=this.clone(),i=n.getBuffer(),r=0,o=i.length;r<o;++r)i[r]=Math.floor(t(this.getValueAtOffset(r),e.getValueAtOffset(r)));return n},_||{}),_=(_.image=_.image||{},_.image.ImageFactory=function(){},_.ImageFactory=_.image.ImageFactory,_.image.ImageFactory.prototype.checkElements=function(e){if(!e.getFromKey("x00280011"))throw new Error("Missing or empty DICOM image number of columns");if(!e.getFromKey("x00280010"))throw new Error("Missing or empty DICOM image number of rows")},_.image.ImageFactory.prototype.create=function(e,t,n){var i=e.getFromKey("x00280011");if(!i)throw new Error("Missing or empty DICOM image number of columns");var r=e.getFromKey("x00280010");if(!r)throw new Error("Missing or empty DICOM image number of rows");var i=[i,r,1],r=e.getFromKey("x00280008"),r=(r&&i.push(r),new _.image.Size(i)),i=e.getPixelSpacing(),o=e.getFromKey("x00020010"),o=_.dicom.cleanString(o),a=_.dicom.isJpeg2000TransferSyntax(o),s=_.dicom.isJpegBaselineTransferSyntax(o),o=_.dicom.isJpegLosslessTransferSyntax(o),l=e.getFromKey("x00200032"),u=new Array(0,0,0),l=(l&&(u=[parseFloat(l[0]),parseFloat(l[1]),parseFloat(l[2])]),e.getFromKey("x00200037")),l=(l&&(d=new _.math.Vector3D(parseFloat(l[0]),parseFloat(l[1]),parseFloat(l[2])),l=new _.math.Vector3D(parseFloat(l[3]),parseFloat(l[4]),parseFloat(l[5])),c=d.crossProduct(l),d=new _.math.Matrix33([d.getX(),l.getX(),c.getX(),d.getY(),l.getY(),c.getY(),d.getZ(),l.getZ(),c.getZ()])),new _.math.Point3D(u[0],u[1],u[2])),c=e.getTime(),u=new _.image.Geometry(l,r,i,d,c),l=_.dicom.cleanString(e.getFromKey("x00080018")),i=(i=e.getFromKey("x00280002"))||1,d=r.getTotalSize()*i;if(d!==t.length){if(_.logger.warn("Badly sized pixel buffer: "+t.length+" != "+d),!(d<t.length))throw new Error("Underestimated buffer size, can't fix it...");t=t.slice(0,r.getTotalSize())}var c=new _.image.Image(u,t,[l]),d=e.getFromKey("x00280004"),u=(d&&(r=_.dicom.cleanString(d).toUpperCase(),c.setPhotometricInterpretation(r="RGB"===(r=(a||s||o)&&"MONOCHROME1"!==r&&"MONOCHROME2"!==r?"RGB":r)&&1===i?"PALETTE COLOR":r)),e.getFromKey("x00280006")),t=(u&&c.setPlanarConfiguration(u),1),l=e.getFromKey("x00281053"),d=(l&&(t=parseFloat(l)),0),a=e.getFromKey("x00281052"),s=(a&&(d=parseFloat(a)),new _.image.RescaleSlopeAndIntercept(t,d)),o=(c.setRescaleSlopeAndIntercept(s),{numberOfFiles:n,Modality:e.getFromKey("x00080060"),SOPClassUID:e.getFromKey("x00080016"),StudyInstanceUID:e.getFromKey("x0020000D"),SeriesInstanceUID:e.getFromKey("x0020000E"),BitsStored:e.getFromKey("x00280101"),PixelRepresentation:e.getFromKey("x00280103")}),i=(o.IsSigned=1===o.PixelRepresentation,e.getPixelUnit()),r=(i&&(o.pixelUnit=i),e.getFromKey("x00200052")),g=(r&&(o.FrameOfReferenceUID=r),{}),x=e.getFromKey("x00281050",!0),S=e.getFromKey("x00281051",!0),m=e.getFromKey("x00281055",!0);if(x&&S)for(var h,p=0;p<x.length;++p){var f=parseFloat(x[p],10),y=parseFloat(S[p],10);f&&y&&0!==y&&(g[h=(h="")===(h=m?_.dicom.cleanString(m[p]):h)?"Default"+p:h]={wl:[new _.image.WindowLevel(f,y)],name:h}),0===y&&_.logger.warn("Zero window width found in DICOM.")}o.windowPresets=g,"PALETTE COLOR"===c.getPhotometricInterpretation()&&(u=e.getFromKey("x00281201"),l=e.getFromKey("x00281202"),a=e.getFromKey("x00281203"),void 0!==(t=e.getFromKey("x00281101"))&&3===t.length&&(16===t[2]?(d=!1,0===(s=t[0])&&(s=65536),(n=e.getDEFromKey("x00281201").vl)!==2*s&&(d=!0,_.logger.info("16bits lut but size is not double. desc: "+s+" vl: "+n)),8===parseInt(e.getFromKey("x00280100"),10)&&(d=!0,_.logger.info("Scaling 16bits color lut since bits allocated is 8.")),d&&(u=u.map(i=function(e){return e>>8}),l=l.map(i),a=a.map(i))):8===t[2]&&(_.logger.info("Scaling 16bits color lut since the lut descriptor is 8."),r=u.slice(0),u=new Uint8Array(r.buffer),r=l.slice(0),l=new Uint8Array(r.buffer),r=a.slice(0),a=new Uint8Array(r.buffer))),o.paletteLut={red:u,green:l,blue:a});s=e.getFromKey("x00082144");return s&&(o.RecommendedDisplayFrameRate=parseInt(s,10)),c.setMeta(o),c},_||{}),_=(_.image=_.image||{},_.image.simpleRange=function(t,e,n,i){void 0===i&&(i=1);var r=e;return{next:function(){var e;return r<n?(e={value:t(r),done:!1,index:r},r+=i,e):{done:!0,index:n}}}},_.image.range=function(t,e,n,i,r,o,a,s){void 0===s&&(s=!1);var l=e,u=((a=void 0===a?!1:a)?(o*=-1,s?l-=(r-1)*i:i*=-1):s&&(l+=(r-1)*i,i*=-1),o-r*i),c=0,d=0;return{next:function(){var e;return c<n?(e={value:t(l),done:!1,index:l},l+=i,++c,++d===r&&(d=0,l+=u),e):{done:!0,index:l}}}},_.image.rangeRegion=function(t,e,n,i,r,o){var a=e,s=0;return{next:function(){var e;return a<n?(e={value:t(a),done:!1,index:a},a+=i,(s+=1)===r&&(s=0,a+=o),e):{done:!0,index:n}}}},_.image.rangeRegions=function(t,e,n,i,r){var o=e,a=0,s=0;return{next:function(){var e;return o<n?(e={value:t(o),done:!1,index:o},o+=i,(s+=1)===r[a][1]&&(s=0,o+=r[a][2],(a+=1)<r.length&&(o+=r[a][0])),e):{done:!0,index:n}}}},_.image.simpleRange3d=function(t,e,n,i,r){void 0===i&&(i=1);var o=e,a=1,s=((r=void 0===r?!1:r)?a=(n-e)/3:i*=3,o+a),l=o+2*a;return{next:function(){var e;return o<n?(e={value:[t(o),t(s),t(l)],done:!1,index:[o,s,l]},o+=i,s+=i,l+=i,e):{done:!0,index:[n]}}}},_.image.range3d=function(e,t,n,i,r,o,a,s,l){var u=[];return l?(u.push(_.image.range(e,t,n,i,r,o,a,s)),u.push(_.image.range(e,t+n*i,n,i,r,o,a,s)),u.push(_.image.range(e,t+2*n*i,n,i,r,o,a,s))):(u.push(_.image.range(e,t,n,i*=3,r,o*=3,a,s)),u.push(_.image.range(e,t+1,n,i,r,o,a,s)),u.push(_.image.range(e,t+2,n,i,r,o,a,s))),{next:function(){var e=u[0].next(),t=u[1].next(),n=u[2].next();return e.done?{done:!0,index:n.index}:{value:[e.value,t.value,n.value],done:!1,index:[e.index,t.index,n.index]}}}},_.image.getIteratorValues=function(e){for(var t=[],n=e.next();!n.done;)t.push(n.value),n=e.next();return t},_.image.getSliceIterator=function(t,e,n,i){function r(e,t,n,i,r,o,a,s){return 1===c?_.image.range(e,t,n,i,r,o,a,s):3===c?_.image.range3d(e,3*t,n,i,r,o,a,s,d):void 0}var o=t.getGeometry().getSize(),a=2,e=(i&&void 0!==i&&(a=i.getColAbsMax(2).index),e.getValues()),e=new _.math.Index(e.map(function(e,t){return t===a||2<t?e:0})),e=o.indexToOffset(e),s=null,s=(n=void 0===n?!1:n)?function(e){return t.getRescaledValueAtOffset(e)}:function(e){return t.getValueAtOffset(e)},n=o.get(0),l=o.get(1),u=o.get(2),o=o.getDimSize(2),c=t.getNumberOfComponents(),d=1===t.getPlanarConfiguration(),g=null;if(i&&void 0!==i){var x=i.getColAbsMax(0),i=i.getColAbsMax(2),S=null;if(2===i.index)S=n*l,g=0===x.index?r(s,e,S,1,n,n,!1,!1):r(s,e,S,n,l,1,!1,!1);else if(0===i.index)S=u*l,g=1===x.index?r(s,e,S,n,l,o,!1,!1):r(s,e,S,o,u,n,!1,!1);else{if(1!==i.index)throw new Error("Unknown direction: "+i.index);S=u*n,g=0===x.index?r(s,e,S,1,n,o,!1,!1):r(s,e,S,o,u,1,!1,!1)}}else if(1===t.getNumberOfComponents())g=_.image.simpleRange(s,e,e+o);else{if(3!==t.getNumberOfComponents())throw new Error("Unsupported number of components: "+t.getNumberOfComponents());g=_.image.simpleRange3d(s,e*=3,e+(o*=3),1,d)}return g},_.image.getRegionSliceIterator=function(t,e,n,i,r){if(1!==t.getNumberOfComponents())throw new Error("Unsupported number of components for region iterator: "+t.getNumberOfComponents());var o=null,o=(n=void 0===n?!1:n)?function(e){return t.getRescaledValueAtOffset(e)}:function(e){return t.getValueAtOffset(e)},n=t.getGeometry().getSize(),a=(void 0===i&&(i=new _.math.Point2D(0,0)),void 0===r&&(r=new _.math.Point2D(n.get(0)-1,n.get(1))),n.indexToOffset(e.getWithNew2D(i.getX(),i.getY()))),e=n.indexToOffset(e.getWithNew2D(r.getX(),r.getY()-1)),r=Math.max(1,r.getX()-i.getX()),i=n.get(0)-r;return _.image.rangeRegion(o,a,e+1,1,r,i)},_.image.getVariableRegionSliceIterator=function(t,e,n,i){if(1!==t.getNumberOfComponents())throw new Error("Unsupported number of components for region iterator: "+t.getNumberOfComponents());for(var r,o=null,o=(n=void 0===n?!1:n)?function(e){return t.getRescaledValueAtOffset(e)}:function(e){return t.getValueAtOffset(e)},a=t.getGeometry().getSize(),s=[],l=null,n=null,u=null,c=0;c<i.length;++c){var d,g=(d=i[c])[1][0]-d[0][0];0!=g&&(u=c,l=l||d[0],s.push([d[0][0],g,a.get(0)-d[1][0]]))}if(null!==u&&(n=i[u][1]),0!==s.length)return r=a.indexToOffset(e.getWithNew2D(l[0],l[1])),e=a.indexToOffset(e.getWithNew2D(n[0],n[1])),_.image.rangeRegions(o,r,e+1,1,s)},_.image.colourRange=function(t,n){var i=0,r=0;return{next:function(){var e;return i<n?(r+1<t.length&&i>=t[r+1].index&&++r,e={value:t[r].colour,done:!1,index:i},++i,e):{done:!0,index:n}}}},_||{}),_=(_.image=_.image||{},_.image.lut=_.image.lut||{},_.image.lut.range_max=256,_.image.lut.buildLut=function(e){for(var t=[],n=0;n<_.image.lut.range_max;++n)t.push(e(n));return t},_.image.lut.max=function(e){return _.image.lut.range_max-1},_.image.lut.maxFirstThird=function(e){return e<_.image.lut.range_max/3?_.image.lut.range_max-1:0},_.image.lut.maxSecondThird=function(e){var t=_.image.lut.range_max/3;return t<=e&&e<2*t?_.image.lut.range_max-1:0},_.image.lut.maxThirdThird=function(e){return e>=2*_.image.lut.range_max/3?_.image.lut.range_max-1:0},_.image.lut.toMaxFirstThird=function(e){e*=3;return e>_.image.lut.range_max-1?_.image.lut.range_max-1:e},_.image.lut.toMaxSecondThird=function(e){var t=_.image.lut.range_max/3,n=0;return t<=e&&(n=3*(e-t))>_.image.lut.range_max-1?_.image.lut.range_max-1:n},_.image.lut.toMaxThirdThird=function(e){var t=_.image.lut.range_max/3,n=0;return 2*t<=e&&(n=3*(e-2*t))>_.image.lut.range_max-1?_.image.lut.range_max-1:n},_.image.lut.zero=function(e){return 0},_.image.lut.id=function(e){return e},_.image.lut.invId=function(e){return _.image.lut.range_max-1-e},_.image.lut.plain={red:_.image.lut.buildLut(_.image.lut.id),green:_.image.lut.buildLut(_.image.lut.id),blue:_.image.lut.buildLut(_.image.lut.id)},_.image.lut.invPlain={red:_.image.lut.buildLut(_.image.lut.invId),green:_.image.lut.buildLut(_.image.lut.invId),blue:_.image.lut.buildLut(_.image.lut.invId)},_.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]},_.image.lut.hot={red:_.image.lut.buildLut(_.image.lut.toMaxFirstThird),green:_.image.lut.buildLut(_.image.lut.toMaxSecondThird),blue:_.image.lut.buildLut(_.image.lut.toMaxThirdThird)},_.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]},_.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]},_.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]},_.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]},_.image.lut.test={red:_.image.lut.buildLut(_.image.lut.id),green:_.image.lut.buildLut(_.image.lut.zero),blue:_.image.lut.buildLut(_.image.lut.zero)},_||{}),_=(_.image=_.image||{},_.dicom.equalPosPat=function(e,t){return JSON.stringify(e)===JSON.stringify(t)},_.dicom.getComparePosPat=function(e){var n=e.getInverse();return function(e,t){e=n.multiplyArray3D(e),t=n.multiplyArray3D(t);return e[2]-t[2]}},_.dicom.checkTag=function(e,t){var n=e.getFromKey(t.tag);if(1===t.type||2===t.type){if(null==n)throw new Error("Missing or empty "+t.name)}else if(null==n)return;var i=!1;if(Array.isArray(n))for(var n=n.map(function(e){return _.dicom.cleanString(e)}),r=0;r<t.enum.length;++r){if(!Array.isArray(t.enum[r]))throw new Error("Cannot compare array and non array tag value.");if(_.utils.arraySortEquals(t.enum[r],n)){i=!0;break}}else"string"==typeof n&&(n=_.dicom.cleanString(n)),i=t.enum.includes(n);if(!i)throw new Error("Unsupported "+t.name+" value: "+n)},_.dicom.requiredDicomSegTags=[{name:"TransferSyntaxUID",tag:"x00020010",type:"1",enum:["1.2.840.10008.1.2.1"]},{name:"MediaStorageSOPClassUID",tag:"x00020002",type:"1",enum:["1.2.840.10008.5.1.4.1.1.66.4"]},{name:"SOPClassUID",tag:"x00020002",type:"1",enum:["1.2.840.10008.5.1.4.1.1.66.4"]},{name:"Modality",tag:"x00080060",type:"1",enum:["SEG"]},{name:"SegmentationType",tag:"x00620001",type:"1",enum:["BINARY"]},{name:"DimensionOrganizationType",tag:"x00209311",type:"3",enum:["3D"]},{name:"ImageType",tag:"x00080008",type:"1",enum:[["DERIVED","PRIMARY"]]},{name:"SamplesPerPixel",tag:"x00280002",type:"1",enum:[1]},{name:"PhotometricInterpretation",tag:"x00280004",type:"1",enum:["MONOCHROME2"]},{name:"PixelRepresentation",tag:"x00280103",type:"1",enum:[0]},{name:"BitsAllocated",tag:"x00280100",type:"1",enum:[1]},{name:"BitsStored",tag:"x00280101",type:"1",enum:[1]},{name:"HighBit",tag:"x00280102",type:"1",enum:[0]}],_.dicom.getDefaultDicomSegJson=function(){for(var e={},t=0;t<_.dicom.requiredDicomSegTags.length;++t){var n=_.dicom.requiredDicomSegTags[t];e[n.name]=n.enum[0]}return e},_.dicom.getDimensionOrganization=function(e){var t=e.getFromKey("x00209221",!0);if(!t||1!==t.length)throw new Error("Unsupported dimension organization sequence length");var n=_.dicom.cleanString(t[0].x00209164.value[0]),i=[],r=e.getFromKey("x00209222",!0);if(r){if(2!==r.length)throw new Error("Unsupported dimension index sequence length");for(var o=0;o<r.length;++o){var a=_.dicom.cleanString(r[o].x00209164.value[0]);if(a!==n)throw new Error("Dimension Index Sequence contains a unknown Dimension Organization");var s,a={DimensionOrganizationUID:a,DimensionIndexPointer:s=_.dicom.cleanString(r[o].x00209165.value[0])};void 0!==r[o].x00209421&&(a.DimensionDescriptionLabel=_.dicom.cleanString(r[o].x00209421.value[0])),i.push(a)}if("(0020,0032)"!==s)throw new Error("Unsupported non image position as last index")}return{organizations:{value:[{DimensionOrganizationUID:n}]},indices:{value:i}}},_.dicom.getCode=function(e){var t={meaning:_.dicom.cleanString(e.x00080104.value[0])};if(e.x00080100)t.value=e.x00080100.value[0];else if(e.x00080119)t.longValue=e.x00080119.value[0];else{if(!e.x00080120)throw Error("Invalid code with no value, no long value and no urn value.");t.urnValue=e.x00080120.value[0]}if(void 0!==t.value||void 0!==t.longValue){if(!e.x00080102)throw Error("No coding sheme designator when code value or long value is present");t.schemeDesignator=e.x00080102.value[0]}return t},_.dicom.getSegment=function(e){var t,n={number:e.x00620004.value[0],label:_.dicom.cleanString(e.x00620005.value[0]),algorithmType:_.dicom.cleanString(e.x00620008.value[0])};if(e.x00620009&&(n.algorithmName=_.dicom.cleanString(e.x00620009.value[0])),void 0!==e.x0062000C?n.displayValue=e.x006200C.value:void 0!==e.x0062000D&&(t=e.x0062000D.value,t=_.utils.cielabToSrgb(_.utils.uintLabToLab({l:t[0],a:t[1],b:t[2]})),n.displayValue=t),void 0===e.x00620003)throw Error("Missing Segmented Property Category Code Sequence.");if(n.propertyCategoryCode=_.dicom.getCode(e.x00620003.value[0]),void 0===e.x0062000F)throw Error("Missing Segmented Property Type Code Sequence.");return n.propertyTypeCode=_.dicom.getCode(e.x0062000F.value[0]),void 0!==e.x00620020&&(n.trackingId=e.x00620020.value[0],n.trackingUid=e.x00620021.value[0]),n},_.dicom.isEqualSegment=function(e,t){if(void 0===e||void 0===t||null===e||null===t)return!1;var n=e.number===t.number&&e.label===t.label&&e.algorithmType===t.algorithmType,n=void 0!==e.displayValue.r?void 0!==t.displayValue.r&&(n&&_.utils.isEqualRgb(e.displayValue,t.displayValue)):n&&e.displayValue===t.displayValue;return n=void 0!==e.algorithmName?void 0!==t.algorithmName&&(n&&e.algorithmName===t.algorithmName):n},_.dicom.isSimilarSegment=function(e,t){if(void 0===e||void 0===t||null===e||null===t)return!1;var n=e.number===t.number;return n=void 0!==e.displayValue.r?void 0!==t.displayValue.r&&(n||_.utils.isEqualRgb(e.displayValue,t.displayValue)):n||e.displayValue===t.displayValue},_.dicom.getSpacingFromMeasure=function(e){if(void 0===e.x00280030)return null;var t=e.x00280030,t=[parseFloat(t.value[0]),parseFloat(t.value[1])];return void 0!==e.x00180050?t.push(parseFloat(e.x00180050.value[0])):void 0!==e.x00180088&&t.push(parseFloat(e.x00180088.value[0])),new _.image.Spacing(t)},_.dicom.getSegmentFrameInfo=function(e){var t=[];if(void 0!==e.x00089124)for(var n=e.x00089124.value,i=0;i<n.length;++i){var r=[];if(void 0!==n[i].x00082112)for(var o=n[i].x00082112.value,a=0;a<o.length;++a){var s={};void 0!==o[a].x00081150&&(s.referencedSOPClassUID=o[a].x00081150.value[0]),void 0!==o[a].x00081155&&(s.referencedSOPInstanceUID=o[a].x00081155.value[0]),r.push(s)}t.push(r)}for(var l=e.x00209111.value[0].x00209157.value,u=e.x0062000A.value[0].x0062000B.value[0],c=e.x00209113.value[0].x00200032.value,d=0;d<c.length;++d)c[d]=parseFloat(c[d],10);l={dimIndex:l,imagePosPat:c,derivationImages:t,refSegmentNumber:u};return void 0!==e.x00209116&&0!==(u=e.x00209116).value.length&&void 0!==(u=u.value[0].x00200037.value)&&(l.imageOrientationPatient=u),void 0!==e.x00289110&&(0!==(u=e.x00289110).value.length?void 0!==(e=_.dicom.getSpacingFromMeasure(u.value[0]))&&(l.spacing=e):_.logger.warn("No shared functional group pixel measure sequence items.")),l},_.image.MaskFactory=function(){},_.image.MaskFactory.prototype.create=function(e,t){for(var n=0;n<_.dicom.requiredDicomSegTags.length;++n)_.dicom.checkTag(e,_.dicom.requiredDicomSegTags[n]);var i=e.getFromKey("x00280011");if(!i)throw new Error("Missing or empty DICOM image number of columns");var r=e.getFromKey("x00280010");if(!r)throw new Error("Missing or empty DICOM image number of rows");var o=i*r,i=e.getFromKey("x00280008");if((i=i?parseInt(i,10):1)!==t.length/o)throw new Error("Buffer and numberOfFrames meta are not equal."+i+" "+t.length/o);var r=_.dicom.getDimensionOrganization(e),a=e.getFromKey("x00620002",!0);if(!a||void 0===a)throw new Error("Missing or empty segmentation sequence");for(var s=[],l=!1,u=0;u<a.length;++u){var c=_.dicom.getSegment(a[u]);void 0!==c.displayValue.r&&void 0!==c.displayValue.g&&void 0!==c.displayValue.b&&(l=!0),s.push(c)}var d,g,x=e.getImageSize(),S=e.getFromKey("x52009229",!0),m=(S&&0!==S.length&&(void 0!==(S=S[0]).x00209116&&(0!==(D=S.x00209116).value.length?g=D.value[0].x00200037.value:_.logger.warn("No shared functional group plane orientation sequence items.")),void 0!==S.x00289110&&(0!==(D=S.x00289110).value.length?d=_.dicom.getSpacingFromMeasure(D.value[0]):_.logger.warn("No shared functional group pixel measure sequence items."))),e.getFromKey("x52009230",!0));if(!m||void 0===m)throw new Error("Missing or empty per frame functional sequence");if(i!==m.length)throw new Error("perFrameFuncGroupSequence meta and numberOfFrames are not equal.");for(var h=[],p=0;p<m.length;++p)h.push(_.dicom.getSegmentFrameInfo(m[p]));for(var f=[],y=0;y<h.length;++y){if(!function(e,t){return e.some(function(e){return _.dicom.equalPosPat(t,e)})}(f,h[y].imagePosPat)&&f.push(h[y].imagePosPat),void 0!==h[y].imageOrientationPatient)if(void 0===g)g=h[y].imageOrientationPatient;else if(!_.utils.arraySortEquals(g,h[y].imageOrientationPatient))throw new Error("Unsupported multi orientation dicom seg.");if(void 0!==h[y].spacing)if(void 0===d)d=h[y].spacing;else if(!d.equals(h[y].spacing))throw new Error("Unsupported multi resolution dicom seg.")}if(void 0===d)throw new Error("No spacing found for DICOM SEG");if(void 0===g)throw new Error("No imageOrientationPatient found for DICOM SEG");function M(e){return new _.math.Point3D(e[0],e[1],e[2])}for(var S=new _.math.Vector3D(parseFloat(g[0]),parseFloat(g[1]),parseFloat(g[2])),D=new _.math.Vector3D(parseFloat(g[3]),parseFloat(g[4]),parseFloat(g[5])),i=S.crossProduct(D),S=new _.math.Matrix33([S.getX(),D.getX(),i.getX(),S.getY(),D.getY(),i.getY(),S.getZ(),D.getZ(),i.getZ()]),v=(f.sort(_.dicom.getComparePosPat(S)),[]),C=0;C<f.length;++C)v.push(M(f[C]));for(var Q,T,D=d,i=_.image.getSliceGeometrySpacing(v,S,!1),L=d.getValues(),B=(void 0!==i&&i!==L[2]&&(L[2]=i,D=new _.image.Spacing(L)),new _.image.Geometry(v[0],x,D,S)),I=[],P=(I.push(f[0]),0),w=1;w<f.length;++w){++P;for(var A=new _.math.Index([0,0,P]),F=B.indexToWorld(A).get3D(),V=v[w],N=V.getDistance(F),G=N;T=void 0,(T=(Q=N)>_.math.REAL_WORLD_EPSILON)&&!(T=Q>10*_.math.REAL_WORLD_EPSILON)&&_.logger.warn("Using larger real world epsilon in SEG pos pat adding"),T;)if(_.logger.debug("Adding intermediate pos pats for DICOM seg at "+F.toString()),I.push([F.getX(),F.getY(),F.getZ()]),++P,A=new _.math.Index([0,0,P]),F=B.indexToWorld(A).get3D(),G<(N=V.getDistance(F)))throw new Error("Test distance is increasing when adding intermediate pos pats");I.push(f[w])}for(var k=I.length,W=new _.image.Geometry(v[0],x,D,S),H=[0],O=1;O<k;++O)W.appendOrigin(M(I[O]),O),H.push(O);for(var z=l?3:1,R=new t.constructor(z*o*k),b=(R.fill(0),0);b<h.length;++b)for(var E,X=o*b,Y=o*(P=function(e,t){return e.findIndex(function(e){return _.dicom.equalPosPat(t,e)})}(I,h[b].imagePosPat)),q=s.find(function(t){return function(e){return e.number===t}}(h[b].refSegmentNumber)).displayValue,U=0;U<o;++U)0!==t[X+U]&&(E=z*(Y+U),l?(R[E]=q.r,R[1+E]=q.g,R[2+E]=q.b):R[E]=q);i=new _.image.Image(W,R,H),l&&i.setPhotometricInterpretation("RGB"),L=_.dicom.getDefaultDicomSegJson(),L.StudyDate=e.getFromKey("x00080020"),L.StudyTime=e.getFromKey("x00080030"),L.StudyInstanceUID=e.getFromKey("x0020000D"),L.StudyID=e.getFromKey("x00200010"),L.SeriesInstanceUID=e.getFromKey("x0020000E"),L.SeriesNumber=e.getFromKey("x00200011"),L.ReferringPhysicianName=e.getFromKey("x00080090"),L.PatientName=_.dicom.cleanString(e.getFromKey("x00100010")),L.PatientID=_.dicom.cleanString(e.getFromKey("x00100020")),L.PatientBirthDate=e.getFromKey("x00100030"),L.PatientSex=_.dicom.cleanString(e.getFromKey("x00100040")),L.Manufacturer=e.getFromKey("x00080070"),L.ManufacturerModelName=e.getFromKey("x00081090"),L.DeviceSerialNumber=e.getFromKey("x00181000"),L.SoftwareVersions=e.getFromKey("x00181020"),L.DimensionOrganizationSequence=r.organizations,L.DimensionIndexSequence=r.indices,L.custom={segments:s,frameInfos:h,SOPInstanceUID:e.getFromKey("x00080018")},L.numberOfFiles=k,x=e.getFromKey("x00200052"),x&&(L.FrameOfReferenceUID=x),D=e.getFromKey("x00282110");return D&&(L.LossyImageCompression=D),i.setMeta(L),i},_||{}),_=(_.image=_.image||{},_.image.PlaneHelper=function(t,e,n){var i=_.gui.getTargetOrientation(e,n);this.getOffset3DFromPlaneOffset=function(e){e=new _.math.Vector3D(e.x,e.y,0),e=this.getTargetDeOrientedVector3D(e);return new _.math.Vector3D(e.getX()*t.get(0),e.getY()*t.get(1),e.getZ()*t.get(2))},this.getPlaneOffsetFromOffset3D=function(e){e=new _.math.Vector3D(e.x/t.get(0),e.y/t.get(1),e.z/t.get(2)),e=this.getTargetOrientedVector3D(e);return{x:e.getX(),y:e.getY()}},this.getTargetOrientedVector3D=function(e){var t=e;return t=void 0!==i?i.getInverse().multiplyVector3D(e):t},this.getTargetDeOrientedVector3D=function(e){var t=e;return t=void 0!==i?i.multiplyVector3D(e):t},this.getImageOrientedVector3D=function(e){var t=e;return void 0!==n&&(e=_.image.getDeOrientedArray3D([e.getX(),e.getY(),e.getZ()],n),t=new _.math.Vector3D(e[0],e[1],e[2])),t},this.getImageDeOrientedVector3D=function(e){var t=e;return void 0!==n&&(e=_.image.getOrientedArray3D([e.getX(),e.getY(),e.getZ()],n),t=new _.math.Vector3D(e[0],e[1],e[2])),t},this.getTargetOrientedPositiveXYZ=function(e){e=_.image.getOrientedArray3D([e.x,e.y,e.z],i);return{x:e[0],y:e[1],z:e[2]}},this.getScrollIndex=function(){return void 0!==n?n.getThirdColMajorDirection():2},this.getNativeScrollIndex=function(){return void 0!==e?e.getThirdColMajorDirection():2}},_||{}),_=(_.image=_.image||{},_.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]}},_||{}),_=(_.image=_.image||{},_.image.RescaleSlopeAndIntercept=function(t,n){this.getSlope=function(){return t},this.getIntercept=function(){return n},this.apply=function(e){return e*t+n}},_.image.RescaleSlopeAndIntercept.prototype.equals=function(e){return null!==e&&this.getSlope()===e.getSlope()&&this.getIntercept()===e.getIntercept()},_.image.RescaleSlopeAndIntercept.prototype.toString=function(){return this.getSlope()+", "+this.getIntercept()},_.image.RescaleSlopeAndIntercept.prototype.isID=function(){return 1===this.getSlope()&&0===this.getIntercept()},_||{}),_=(_.image=_.image||{},_.image.Size=function(t){if(!t||void 0===t)throw new Error("Cannot create size with no values.");if(0===t.length)throw new Error("Cannot create size with empty values.");if(!t.every(function(e){return!isNaN(e)&&0!==e}))throw new Error("Cannot create size with non number or zero values.");this.get=function(e){return t[e]},this.length=function(){return t.length},this.toString=function(){return"("+t.toString()+")"},this.getValues=function(){return t.slice()}},_.image.Size.prototype.moreThanOne=function(e){return this.length()>=e+1&&1!==this.get(e)},_.image.Size.prototype.canScroll3D=function(e){var t=2;return void 0!==e&&(t=e.getThirdColMajorDirection()),this.moreThanOne(t)},_.image.Size.prototype.canScroll=function(e){for(var t=this.canScroll3D(e),n=3;n<this.length();++n)t=t||this.moreThanOne(n);return t},_.image.Size.prototype.getDimSize=function(e,t){if(e>this.length())return null;if(void 0===t)t=0;else if(t<0||e<t)throw new Error("Invalid start value for getDimSize");for(var n=1,i=t;i<e;++i)n*=this.get(i);return n},_.image.Size.prototype.getTotalSize=function(e){return this.getDimSize(this.length(),e)},_.image.Size.prototype.equals=function(e){if(!e)return!1;var t=this.length();if(t!==e.length())return!1;for(var n=0;n<t;++n)if(this.get(n)!==e.get(n))return!1;return!0},_.image.Size.prototype.isInBounds=function(e,t){if(!e)return!1;var n=this.length();if(n!==e.length())return!1;if(void 0===t){t=[];for(var i=0;i<n;++i)t.push(i)}else for(var r=0;r<n;++r)if(t[r]>n-1)throw new Error("Wrong input dir value: "+t[r]);for(var o,a,s=0;s<t.length;++s)if(o=e.get(t[s]),a=this.get(t[s]),!(0<=o&&o<a))return!1;return!0},_.image.Size.prototype.indexToOffset=function(e,t){if(e.length()<this.length())throw new Error("Incompatible index and size length");if(void 0===t)t=0;else if(t<0||t>this.length()-1)throw new Error("Invalid start value for indexToOffset");for(var n=0,i=t;i<this.length();++i)n+=e.get(i)*this.getDimSize(i,t);return n},_.image.Size.prototype.offsetToIndex=function(e){for(var t,n=new Array(this.length()),i=e,r=this.length()-1;0<r;--r)t=this.getDimSize(r),n[r]=Math.floor(i/t),i-=n[r]*t;return n[0]=i,new _.math.Index(n)},_.image.Size.prototype.get2D=function(){return{x:this.get(0),y:this.get(1)}},_||{}),_=(_.image=_.image||{},_.image.Spacing=function(t){if(!t||void 0===t)throw new Error("Cannot create spacing with no values.");if(0===t.length)throw new Error("Cannot create spacing with empty values.");if(!t.every(function(e){return!isNaN(e)&&0!==e}))throw new Error("Cannot create spacing with non number or zero values.");this.get=function(e){return t[e]},this.length=function(){return t.length},this.toString=function(){return"("+t.toString()+")"},this.getValues=function(){return t.slice()}},_.image.Spacing.prototype.equals=function(e){if(!e)return!1;var t=this.length();if(t!==e.length())return!1;for(var n=0;n<t;++n)if(this.get(n)!==e.get(n))return!1;return!0},_.image.Spacing.prototype.get2D=function(){return{x:this.get(0),y:this.get(1)}},_||{}),_=(_.image=_.image||{},_.image.viewEventNames=["wlchange","wlpresetadd","colourchange","positionchange","opacitychange","alphafuncchange"],_.image.View=function(g){var t,n=this,i=(g.addEventListener("appendframe",function(){var e=n.getCurrentIndex();3===e.length()&&((e=e.getValues()).push(0),n.setCurrentIndex(new _.math.Index(e)))}),{}),r={minmax:{name:"minmax"}},s=null,l=null,o=_.image.lut.plain,x=null,a=new _.utils.ListenerHandler,u=(this.getImage=function(){return g},this.setImage=function(e){g=e},this.getOrientation=function(){return t},this.setOrientation=function(e){t=e},this.init=function(){this.setInitialIndex()},this.setInitialIndex=function(){var e=g.getGeometry(),e=new Array(e.getSize().length());e.fill(0),this.setCurrentIndex(new _.math.Index(e),!0)},this.getPlaybackMilliseconds=function(e){return e=e||10,Math.round(1e3/e)},function(e,t){return 255});function S(e){a.fireEvent(e)}this.getAlphaFunction=function(){return u},this.setAlphaFunction=function(e){u=e,S({type:"alphafuncchange"})},this.getCurrentWindowLut=function(e){this.getCurrentIndex()||this.setInitialIndex();var t=this.getCurrentIndex(),n=(void 0===e&&(e=g.getRescaleSlopeAndIntercept(t)),null),t=(s&&void 0!==r[s]&&void 0!==r[s].perslice&&!0===r[s].perslice&&(t=g.getSecondaryOffset(t),n=r[s].wl[t]),n||(l||this.setWindowLevelPresetById(0,!0),n=l),i[e.toString()]),e=(void 0===t&&(e=new _.image.RescaleLut(g.getRescaleSlopeAndIntercept(0),g.getMeta().BitsStored),e=new _.image.WindowLut(e,g.getMeta().IsSigned),this.addWindowLut(e),t=e),t.getWindowLevel());return n.equals(e)||(t.setWindowLevel(n),t.update(),e&&e.getWidth()===n.getWidth()&&e.getCenter()===n.getCenter()||S({type:"wlchange",value:[n.getCenter(),n.getWidth()],wc:n.getCenter(),ww:n.getWidth(),skipGenerate:!0})),t},this.addWindowLut=function(e){var t=e.getRescaleLut().getRSI();i[t.toString()]=e},this.getWindowPresets=function(){return r},this.getWindowPresetsNames=function(){return Object.keys(r)},this.setWindowPresets=function(e){r=e},this.setDefaultColourMap=function(e){o=e},this.addWindowPresets=function(e){for(var t,n=Object.keys(e),i=0;i<n.length;++i)if(t=n[i],void 0!==r[t]){if(void 0!==r[t].perslice&&!0===r[t].perslice)throw new Error("Cannot add perslice preset");r[t]=e[t]}else r[t]=e[t],S({type:"wlpresetadd",name:t})},this.getColourMap=function(){return o},this.setColourMap=function(e){o=e,S({type:"colourchange",wc:this.getCurrentWindowLut().getWindowLevel().getCenter(),ww:this.getCurrentWindowLut().getWindowLevel().getWidth()})},this.getCurrentPosition=function(){return x},this.getCurrentIndex=function(){var e=this.getCurrentPosition();return e?this.getImage().getGeometry().worldToIndex(e):null},this.canSetPosition=function(e){var t=g.getGeometry(),e=t.worldToIndex(e),n=[this.getScrollIndex()];return 4===e.length()&&n.push(3),t.isIndexInBounds(e,n)},this.getOrigin=function(e){var t=g.getGeometry(),n=0;return void 0!==e&&(n=t.worldToIndex(e).get(2)),t.getOrigins()[n]},this.setCurrentPosition=function(e,t){var n=g.getGeometry(),i=n.worldToIndex(e),r=[this.getScrollIndex()];return 4===i.length()&&r.push(3),n.isIndexInBounds(i,r)?this.setCurrentIndex(i,t):(t||S({type:"positionchange",value:[i.getValues(),e.getValues()],valid:!1}),!1)},this.setCurrentIndex=function(e,t){void 0===t&&(t=!1);var n=g.getGeometry(),i=n.indexToWorld(e),r=[this.getScrollIndex()];if(4===e.length()&&r.push(3),!n.isIndexInBounds(e,r))return!1;var o=null,a=null;if(a=this.getCurrentPosition()?this.getCurrentIndex():a)if(a.canCompare(e))o=a.compare(e);else{for(var o=[],s=Math.min(a.length(),e.length()),l=0;l<s;++l)a.get(l)!==e.get(l)&&o.push(l);for(var u=Math.max(a.length(),e.length()),c=s;c<u;++c)o.push(c)}else{o=[];for(var d=0;d<e.length();++d)o.push(d)}return x=i,t||(n={type:"positionchange",value:[e.getValues(),i.getValues()],diffDims:o,data:{imageUid:g.getImageUid(e)}},g.canQuantify()&&(r=g.getRescaledValueAtIndex(e),n.value.push(r)),S(n)),!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 _.image.WindowLevel(e,t)).equals(l)||(o=!l||l.getWidth()!==t,a=!l||l.getCenter()!==e,l=r,s=n,(o||a)&&S({type:"wlchange",value:[e,t],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()]);var i,r=n.wl[0];void 0!==n.perslice&&!0===n.perslice&&(i=g.getSecondaryOffset(this.getCurrentIndex()),r=n.wl[i]),this.setWindowLevel(r.getCenter(),r.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 _.image.View(this.getImage());for(e in i)t.addWindowLut(i[e]);return t.setListeners(this.getListeners()),t},this.addEventListener=function(e,t){a.add(e,t)},this.removeEventListener=function(e,t){a.remove(e,t)}},_.image.View.prototype.getWindowLevelMinMax=function(){var e=this.getImage().getRescaledDataRange(),t=e.min,e=e.max-t,t=(e<1&&(_.logger.warn("Zero or negative window width, defaulting to one."),e=1),t+e/2);return new _.image.WindowLevel(t,e)},_.image.View.prototype.setWindowLevelMinMax=function(){var e=this.getWindowLevelMinMax();this.setWindowLevel(e.getCenter(),e.getWidth(),"minmax")},_.image.View.prototype.generateImageData=function(e,t){void 0===t&&(this.getCurrentIndex()||this.setInitialIndex(),t=this.getCurrentIndex());var n=this.getImage(),i=_.image.getSliceIterator(n,t,!1,this.getOrientation()),r=n.getPhotometricInterpretation();switch(r){case"MONOCHROME1":case"MONOCHROME2":_.image.generateImageDataMonochrome(e,i,this.getAlphaFunction(),this.getCurrentWindowLut(),this.getColourMap());break;case"PALETTE COLOR":_.image.generateImageDataPaletteColor(e,i,this.getAlphaFunction(),this.getColourMap(),16===n.getMeta().BitsStored);break;case"RGB":_.image.generateImageDataRgb(e,i,this.getAlphaFunction(),this.getCurrentWindowLut());break;case"YBR_FULL":_.image.generateImageDataYbrFull(e,i,this.getAlphaFunction());break;default:throw new Error("Unsupported photometric interpretation: "+r)}},_.image.View.prototype.incrementIndex=function(e,t){var n=this.getCurrentIndex(),i=new Array(n.length()),e=(i.fill(0),e<i.length?i[e]=1:console.warn("Cannot increment given index: ",e,i.length),new _.math.Index(i)),i=n.add(e);return this.setCurrentIndex(i,t)},_.image.View.prototype.decrementIndex=function(e,t){var n=this.getCurrentIndex(),i=new Array(n.length()),e=(i.fill(0),e<i.length?i[e]=-1:console.warn("Cannot decrement given index: ",e,i.length),new _.math.Index(i)),i=n.add(e);return this.setCurrentIndex(i,t)},_.image.View.prototype.getScrollIndex=function(){var e=this.getOrientation();return void 0!==e?e.getThirdColMajorDirection():2},_.image.View.prototype.decrementScrollIndex=function(e){return this.decrementIndex(this.getScrollIndex(),e)},_.image.View.prototype.incrementScrollIndex=function(e){return this.incrementIndex(this.getScrollIndex(),e)},_||{}),_=(_.image=_.image||{},_.image.ViewFactory=function(){},_.ViewFactory=_.image.ViewFactory,_.image.ViewFactory.prototype.create=function(e,t){var n,i=new _.image.View(t),r=("MONOCHROME1"===t.getPhotometricInterpretation()?i.setDefaultColourMap(_.image.lut.invPlain):"PALETTE COLOR"===t.getPhotometricInterpretation()&&void 0!==(n=t.getMeta().paletteLut)&&i.setDefaultColourMap(n),{});if((r=void 0!==t.getMeta().windowPresets?t.getMeta().windowPresets:r).minmax={name:"minmax"},void 0!==_.tool&&void 0!==_.tool.defaultpresets){var o,a=t.getMeta().Modality;for(o in _.tool.defaultpresets[a]){var s=_.tool.defaultpresets[a][o];r[o]={wl:new _.image.WindowLevel(s.center,s.width),name:o}}}return i.setWindowPresets(r),i.init(),i},_||{}),_=(_.image=_.image||{},_.image.generateImageDataMonochrome=function(e,t,n,i,r){for(var o,a=0,s=t.next();!s.done;)o=i.getValue(s.value),e.data[a]=r.red[o],e.data[a+1]=r.green[o],e.data[a+2]=r.blue[o],e.data[a+3]=n(s.value,s.index),a+=4,s=t.next()},_||{}),_=(_.image=_.image||{},_.image.generateImageDataPaletteColor=function(e,t,n,i,r){r&&_.logger.info("Scaling 16bits data to 8bits.");for(var o,a=0,s=t.next();!s.done;)o=s.value,r?(e.data[a]=i.red[o]>>8,e.data[a+1]=i.green[o]>>8,e.data[a+2]=i.blue[o]>>8):(e.data[a]=i.red[o],e.data[a+1]=i.green[o],e.data[a+2]=i.blue[o]),e.data[a+3]=n(o,s.index),a+=4,s=t.next()},_||{}),_=(_.image=_.image||{},_.image.generateImageDataRgb=function(e,t,n){for(var i=0,r=t.next();!r.done;)e.data[i]=r.value[0],e.data[i+1]=r.value[1],e.data[i+2]=r.value[2],e.data[i+3]=n(r.value,r.index),i+=4,r=t.next()},_||{}),_=(_.image=_.image||{},_.image.generateImageDataYbrFull=function(e,t,n){for(var i,r=0,o=t.next();!o.done;)i=_.utils.ybrToRgb(o.value[0],o.value[1],o.value[2]),e.data[r]=i.r,e.data[r+1]=i.g,e.data[r+2]=i.b,e.data[r+3]=n(o.value,o.index),r+=4,o=t.next()},_||{}),_=(_.image=_.image||{},_.image.MinWindowWidth=1,_.image.validateWindowWidth=function(e){return e<_.image.MinWindowWidth?_.image.MinWindowWidth:e},_.image.WindowLevel=function(t,n){if(n<_.image.MinWindowWidth)throw new Error("Window width shall always be greater than or equal to "+_.image.MinWindowWidth);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)}},_.image.WindowLevel.prototype.equals=function(e){return null!==e&&this.getCenter()===e.getCenter()&&this.getWidth()===e.getWidth()},_.image.WindowLevel.prototype.toString=function(){return this.getCenter()+", "+this.getWidth()},_||{}),_=(_.image=_.image||{},_.image.WindowLut=function(n,t){var i=null,r=null,o=!1,a=0;this.getWindowLevel=function(){return r},this.isSigned=function(){return t},this.getRescaleLut=function(){return n},this.isReady=function(){return o},this.setWindowLevel=function(e){a=0,(r=e).setSignedOffset(0),t&&(e=n.getLength(),a=e/2,r.setSignedOffset(n.getRSI().getSlope()*a)),o=!1},this.update=function(){if(!o){n.isReady()||n.initialise();var e=n.getLength();i=i||new Uint8ClampedArray(e);for(var t=0;t<e;++t)i[t]=r.apply(n.getValue(t));o=!0}},this.getLength=function(){return i.length},this.getValue=function(e){return i[e+a]}},_||{}),_=(_.io=_.io||{},_.io.DicomDataLoader=function(){var i=this,r={},o=!1,a=(this.setOptions=function(e){r=e},this.isLoading=function(){return o},new _.image.DicomBufferToView);this.load=function(e,t,n){o||(a.setOptions(r),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()}},_.io.DicomDataLoader.prototype.canLoadFile=function(e){e=_.utils.getFileExtension(e.name);return null===e||"dcm"===e},_.io.DicomDataLoader.prototype.canLoadUrl=function(e,t){if(void 0!==t&&void 0!==t.requestHeaders)return void 0!==t.requestHeaders.find(function(e){return"Accept"===e.name&&_.utils.startsWith(e.value,"application/dicom")&&"+"!==e.value[18]});var t=_.utils.getUrlFromUri(e),e=_.utils.getFileExtension(t.pathname),n=null===e,e="dcm"===e,t=t.searchParams.get("contentType");return null!=t?"application/dicom"===t:n||e},_.io.DicomDataLoader.prototype.canLoadMemory=function(e){return void 0!==e["Content-Type"]&&"application/dicom"===e["Content-Type"]||void 0!==e.filename&&this.canLoadFile(e.filename)},_.io.DicomDataLoader.prototype.loadFileAs=function(){return _.io.fileContentTypes.ArrayBuffer},_.io.DicomDataLoader.prototype.loadUrlAs=function(){return _.io.urlContentTypes.ArrayBuffer},_.io.DicomDataLoader.prototype.onloadstart=function(e){},_.io.DicomDataLoader.prototype.onprogress=function(e){},_.io.DicomDataLoader.prototype.onloaditem=function(e){},_.io.DicomDataLoader.prototype.onload=function(e){},_.io.DicomDataLoader.prototype.onloadend=function(e){},_.io.DicomDataLoader.prototype.onerror=function(e){},_.io.DicomDataLoader.prototype.onabort=function(e){},_.io.loaderList=_.io.loaderList||[],_.io.loaderList.push("DicomDataLoader"),_||{}),_=(_.io=_.io||{},_.io.fileContentTypes={Text:0,ArrayBuffer:1,DataURL:2},_.io.FilesLoader=function(){var t,c=this,n=null,d=[],g=null,i=0,r=0;function x(e){n=e,r=i=0,d=[],g=null}function S(e){c.onloaditem(e),m()}function m(e){++i===n.length&&c.onload({source:n})}function h(e){++r===2*n.length&&c.onloadend({source:n})}function p(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){x(e),this.onloadstart({source:e});for(var t=new _.utils.MultiProgressHandler(c.onprogress),n=(t.setNToLoad(e.length),[]),i=0;i<_.io.loaderList.length;++i)n.push(new _.io[_.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({numberOfFiles:e.length,defaultCharacterSet:this.getDefaultCharacterSet()}),o.onprogress=t.getUndefinedMonoProgressHandler(1),void 0===o.onloaditem?o.onload=S:(o.onloaditem=c.onloaditem,o.onload=m),o.onloadend=h,o.onerror=c.onerror,o.onabort=c.onabort,g=o;break}if(!a)throw new Error("No loader found for file: "+r.name);for(var l=0;l<e.length;++l){if(r=e[l],!o.canLoadFile(r))throw new Error("Input file of different type: "+r);var u=new FileReader;d.push(u),u.onprogress=p(t.getMonoProgressHandler(l,0),r),u.onload=function(t,n,i){return function(e){t.load(e.target.result,n,i)}}(o,r,l),u.onloadend=h,u.onerror=p(c.onerror,r),u.onabort=p(c.onabort,r),o.loadFileAs()===_.io.fileContentTypes.Text?u.readAsText(r):o.loadFileAs()===_.io.fileContentTypes.DataURL?u.readAsDataURL(r):o.loadFileAs()===_.io.fileContentTypes.ArrayBuffer&&u.readAsArrayBuffer(r)}}},this.abort=function(){for(var e=0;e<d.length;++e)1===d[e].readyState&&d[e].abort();g&&g.isLoading()&&g.abort()}},_.io.FilesLoader.prototype.onloadstart=function(e){},_.io.FilesLoader.prototype.onprogress=function(e){},_.io.FilesLoader.prototype.onloaditem=function(e){},_.io.FilesLoader.prototype.onload=function(e){},_.io.FilesLoader.prototype.onloadend=function(e){},_.io.FilesLoader.prototype.onerror=function(e){},_.io.FilesLoader.prototype.onabort=function(e){},_||{}),_=(_.io=_.io||{},_.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({})}},_.io.JSONTextLoader.prototype.canLoadFile=function(e){return"json"===_.utils.getFileExtension(e.name)},_.io.JSONTextLoader.prototype.canLoadUrl=function(e,t){if(void 0!==t&&void 0!==t.requestHeaders)return void 0!==t.requestHeaders.find(function(e){return"Accept"===e.name&&_.utils.startsWith(e.value,"application/json")&&_.utils.startsWith(e.value,"application/dicom+json")});t=_.utils.getUrlFromUri(e);return"json"===_.utils.getFileExtension(t.pathname)},_.io.JSONTextLoader.prototype.canLoadMemory=function(e){return!(void 0===e["Content-Type"]||!e["Content-Type"].includes("json"))||void 0!==e.filename&&this.canLoadFile(e.filename)},_.io.JSONTextLoader.prototype.loadFileAs=function(){return _.io.fileContentTypes.Text},_.io.JSONTextLoader.prototype.loadUrlAs=function(){return _.io.urlContentTypes.Text},_.io.JSONTextLoader.prototype.onloadstart=function(e){},_.io.JSONTextLoader.prototype.onprogress=function(e){},_.io.JSONTextLoader.prototype.onload=function(e){},_.io.JSONTextLoader.prototype.onloadend=function(e){},_.io.JSONTextLoader.prototype.onerror=function(e){},_.io.JSONTextLoader.prototype.onabort=function(e){},_.io.loaderList=_.io.loaderList||[],_.io.loaderList.push("JSONTextLoader"),_||{}),_=(_.io=_.io||{},_.io.MemoryLoader=function(){var t,u=this,n=null,c=null,i=0,r=0;function d(e){n=e,r=i=0,c=null}function g(e){u.onloaditem(e),x()}function x(e){++i===n.length&&u.onload({source:n})}function S(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){d(e),this.onloadstart({source:e});for(var t=new _.utils.MultiProgressHandler(u.onprogress),n=(t.setNToLoad(e.length),t.setNumberOfDimensions(1),[]),i=0;i<_.io.loaderList.length;++i)n.push(new _.io[_.io.loaderList[i]]);for(var r=e[0],o=null,a=!1,s=0;s<n.length;++s)if((o=n[s]).canLoadMemory(r)){a=!0,o.setOptions({numberOfFiles:e.length,defaultCharacterSet:this.getDefaultCharacterSet()}),o.onprogress=t.getUndefinedMonoProgressHandler(0),void 0===o.onloaditem?o.onload=g:(o.onloaditem=u.onloaditem,o.onload=x),o.onloadend=S,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.canLoadMemory(r))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()}},_.io.MemoryLoader.prototype.onloadstart=function(e){},_.io.MemoryLoader.prototype.onprogress=function(e){},_.io.MemoryLoader.prototype.onloaditem=function(e){},_.io.MemoryLoader.prototype.onload=function(e){},_.io.MemoryLoader.prototype.onloadend=function(e){},_.io.MemoryLoader.prototype.onerror=function(e){},_.io.MemoryLoader.prototype.onabort=function(e){},_||{}),_=(_.io=_.io||{},_.io.MultipartLoader=function(){var i=this,r=!1;this.setOptions=function(e){},this.isLoading=function(){return r},this.load=function(e,t,n){this.onloadstart({source:t}),r=!0;t=new _.io.MemoryLoader;t.onprogress=function(e){e.loaded=50+e.loaded/2,e.index=n,i.onprogress(e)},t.onloaditem=i.onloaditem,t.onload=i.onload,t.onloadend=function(e){r=!1,i.onloadend(e)},t.onerror=i.onerror,t.onabort=i.onabort,t.load(_.utils.parseMultipart(e))},this.abort=function(){r=!1,i.onabort({}),i.onloadend({})}},_.io.MultipartLoader.prototype.canLoadFile=function(e){return!1},_.io.MultipartLoader.prototype.canLoadUrl=function(e,t){return void 0!==t&&void 0!==t.requestHeaders&&void 0!==t.requestHeaders.find(function(e){return"Accept"===e.name&&_.utils.startsWith(e.value,"multipart/related")})},_.io.MultipartLoader.prototype.canLoadMemory=function(e){return!1},_.io.MultipartLoader.prototype.loadFileAs=function(){return _.io.fileContentTypes.ArrayBuffer},_.io.MultipartLoader.prototype.loadUrlAs=function(){return _.io.urlContentTypes.ArrayBuffer},_.io.MultipartLoader.prototype.onloadstart=function(e){},_.io.MultipartLoader.prototype.onprogress=function(e){},_.io.MultipartLoader.prototype.onloaditem=function(e){},_.io.MultipartLoader.prototype.onload=function(e){},_.io.MultipartLoader.prototype.onloadend=function(e){},_.io.MultipartLoader.prototype.onerror=function(e){},_.io.MultipartLoader.prototype.onabort=function(e){},_.io.loaderList=_.io.loaderList||[],_.io.loaderList.push("MultipartLoader"),_||{}),_=(_.io=_.io||{},_.io.RawImageLoader=function(){var a=this,s=!1;this.setOptions=function(e){},this.isLoading=function(){return!0},this.load=function(e,t,n){s=!1;var i,r,o=new Image;o.onload=function(){try{s||(a.onprogress({lengthComputable:!0,loaded:100,total:100,index:n,source:t}),a.onload(_.image.getViewFromDOMImage(this,t)))}catch(e){a.onerror({error:e,source:t})}finally{a.onloadend({source:t})}},o.origin=t,o.index=n,"string"==typeof t?(i=t.split(".").pop().toLowerCase(),o.src=((r=i=i)&&"jpg"!==i||(r="jpeg"),i=new Blob([e],{type:"image/"+r}),c.URL.createObjectURL(i))):o.src=e},this.abort=function(){s=!0,a.onabort({}),a.onloadend({})}},_.io.RawImageLoader.prototype.canLoadFile=function(e){return e.type.match("image.*")},_.io.RawImageLoader.prototype.canLoadUrl=function(e,t){if(void 0!==t&&void 0!==t.requestHeaders)return void 0!==t.requestHeaders.find(function(e){return"Accept"===e.name&&_.utils.startsWith(e.value,"image/")});t=_.utils.getUrlFromUri(e),e=_.utils.getFileExtension(t.pathname),e="jpeg"===e||"jpg"===e||"png"===e||"gif"===e,t=t.searchParams.get("contentType");return null!=t?"image/jpeg"===t||"image/png"===t||"image/gif"===t:e},_.io.RawImageLoader.prototype.canLoadMemory=function(e){return void 0!==e.filename&&this.canLoadFile(e.filename)},_.io.RawImageLoader.prototype.loadFileAs=function(){return _.io.fileContentTypes.DataURL},_.io.RawImageLoader.prototype.loadUrlAs=function(){return _.io.urlContentTypes.ArrayBuffer},_.io.RawImageLoader.prototype.onloadstart=function(e){},_.io.RawImageLoader.prototype.onprogress=function(e){},_.io.RawImageLoader.prototype.onload=function(e){},_.io.RawImageLoader.prototype.onloadend=function(e){},_.io.RawImageLoader.prototype.onerror=function(e){},_.io.RawImageLoader.prototype.onabort=function(e){},_.io.loaderList=_.io.loaderList||[],_.io.loaderList.push("RawImageLoader"),_||{}),_=(_.io=_.io||{},_.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,"+c.btoa(i)}(e,i)):r.src=e,r.file=t,r.index=n,r.onloadedmetadata=function(){try{_.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({})}},_.io.RawVideoLoader.prototype.canLoadFile=function(e){return e.type.match("video.*")},_.io.RawVideoLoader.prototype.canLoadUrl=function(e,t){if(void 0!==t&&void 0!==t.requestHeaders)return void 0!==t.requestHeaders.find(function(e){return"Accept"===e.name&&_.utils.startsWith(e.value,"video/")});t=_.utils.getUrlFromUri(e),e=_.utils.getFileExtension(t.pathname);return"mp4"===e||"ogg"===e||"webm"===e},_.io.RawVideoLoader.prototype.canLoadMemory=function(e){return void 0!==e.filename&&this.canLoadFile(e.filename)},_.io.RawVideoLoader.prototype.loadFileAs=function(){return _.io.fileContentTypes.DataURL},_.io.RawVideoLoader.prototype.loadUrlAs=function(){return _.io.urlContentTypes.ArrayBuffer},_.io.RawVideoLoader.prototype.onloadstart=function(e){},_.io.RawVideoLoader.prototype.onprogress=function(e){},_.io.RawVideoLoader.prototype.onloaditem=function(e){},_.io.RawVideoLoader.prototype.onload=function(e){},_.io.RawVideoLoader.prototype.onloadend=function(e){},_.io.RawVideoLoader.prototype.onerror=function(e){},_.io.RawVideoLoader.prototype.onabort=function(e){},_.io.loaderList=_.io.loaderList||[],_.io.loaderList.push("RawVideoLoader"),_||{}),y=(_.io=_.io||{},y||{}),_=(_.io.State=function(){this.toJSON=function(e){var t=e.getActiveLayerGroup(),n=t.getActiveViewLayer().getViewController(),t=t.getActiveDrawLayer(),i=n.getCurrentIndex();return JSON.stringify({version:"0.5","window-center":n.getWindowLevel().center,"window-width":n.getWindowLevel().width,position:i.getValues(),scale:e.getAddedScale(),offset:e.getOffset(),drawings:t.getKonvaLayer().toObject(),drawingsDetails:e.getDrawStoreDetails()})},this.fromJSON=function(e){var t,n,i,e=JSON.parse(e),r=null;if("0.1"===e.version)n=e,i=_.io.v01Tov02DrawingsAndDetails(n.drawings),n.drawings=_.io.v02Tov03Drawings(i.drawings).toObject(),n.drawingsDetails=_.io.v03Tov04DrawingsDetails(i.drawingsDetails),(n=_.io.v04Tov05Data(n)).drawings=_.io.v04Tov05Drawings(n.drawings),r=n;else if("0.2"===e.version)(i=e).drawings=_.io.v02Tov03Drawings(i.drawings).toObject(),i.drawingsDetails=_.io.v03Tov04DrawingsDetails(_.io.v02Tov03DrawingsDetails(i.drawingsDetails)),(i=_.io.v04Tov05Data(i)).drawings=_.io.v04Tov05Drawings(i.drawings),r=i;else if("0.3"===e.version)(n=e).drawingsDetails=_.io.v03Tov04DrawingsDetails(n.drawingsDetails),(n=_.io.v04Tov05Data(n)).drawings=_.io.v04Tov05Drawings(n.drawings),r=n;else if("0.4"===e.version)t=e,(t=_.io.v04Tov05Data(t)).drawings=_.io.v04Tov05Drawings(t.drawings),r=t;else{if("0.5"!==e.version)throw new Error("Unknown state file format version: '"+e.version+"'.");r=e}return r},this.apply=function(e,t){var n,i,r=e.getActiveLayerGroup().getActiveViewLayer().getViewController(),r=(r.setWindowLevel(t["window-center"],t["window-width"]),r.setCurrentIndex(new _.math.Index(t.position)),e.getActiveLayerGroup().getBaseScale()),o=null,a=null;a=void 0!==t.scaleCenter?(o={x:t.scale*r.x,y:t.scale*r.y,z:1},n=t.scaleCenter.x-t.scaleCenter.x*t.scale,i=t.scaleCenter.y-t.scaleCenter.y*t.scale,n=n+t.translation.x*o.x,i=i+t.translation.y*o.y,{x:-n/o.x,y:-i/o.y,z:0}):(o={x:t.scale.x*r.x,y:t.scale.y*r.y,z:1},{x:t.offset.x,y:t.offset.y,z:0}),e.getActiveLayerGroup().setScale(o),e.getActiveLayerGroup().setOffset(a),e.render(0),e.setDrawings(t.drawings,t.drawingsDetails)}},_.io.v02Tov03Drawings=function(e){for(var t,n,i=new y.Layer({listening:!1,visible:!0}),r="string"==typeof e?JSON.parse(e):e,o=0,a=r.length;o<a;++o)for(var s=0,l=r[o].length;s<l;++s)if(0!==(n=r[o][s]).length){for(var u=new y.Group({id:_.draw.getDrawPositionGroupId(new _.math.Index([1,1,o,s])),name:"position-group",visible:!1}),c=0,d=n.length;c<d;++c)(t=y.Node.create(n[c])).draggable(!0),t.getChildren().forEach(function(e){e.draggable(!1)}),u.add(t);i.add(u)}return i},_.io.v01Tov02DrawingsAndDetails=function(e){for(var t,n=[],i={},r=0,o=e.length;r<o;++r){n[r]=[];for(var a=0,s=e[r].length;a<s;++a){for(var l,u=[],c=0,d=(l=e[r][a]).length;c<d;++c){(t=y.Node.create(l[c])).visible(!0);var g={x:0,y:0},x=t.getChildren(function(e){return"shape"===e.name()})[0],S=(x.stroke(_.utils.colourNameToHex(x.stroke())),"line-group"===t.name()&&(t.name("ruler-group"),S=new y.Line({points:[x.points()[0],x.points()[1],x.points()[0],x.points()[1]],name:"shape-tick0"}),t.add(S),S=new y.Line({points:[x.points()[2],x.points()[3],x.points()[2],x.points()[3]],name:"shape-tick1"}),t.add(S)),t.getChildren(function(e){return"arc"===e.name()})),m=(1===S.length&&S[0].name("shape-arc"),t.getChildren(function(e){return"text"===e.name()})),h=new y.Text({name:"text",text:""}),m=(1===m.length?(g.x=m[0].x(),g.y=m[0].y(),m[0].remove(),h=m[0]):0!==x.points().length&&(g={x:x.points()[0],y:x.points()[1]}),new y.Label({x:g.x,y:g.y,name:"label"})),x=(m.add(h),m.add(new y.Tag),t.add(m),u.push(JSON.stringify(t.toObject())),h.text()),g=x.length,m=null;"ruler-group"===t.name()?(m={length:{value:parseFloat(x.substring(0,g-2)),unit:x.substring(-2)}},x="{length}"):"ellipse-group"===t.name()||"rectangle-group"===t.name()?(m={surface:{value:parseFloat(x.substring(0,g-3)),unit:x.substring(-3)}},x="{surface}"):"protractor-group"!==t.name()&&"rectangle-group"!==t.name()||(m={angle:{value:parseFloat(x.substring(0,g-1)),unit:x.substring(-1)}},x="{angle}"),i[t.id()]={textExpr:x,longText:"",quant:m}}n[r].push(u)}}return{drawings:n,drawingsDetails:i}},_.io.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},_.io.v03Tov04DrawingsDetails=function(e){for(var t={},n=Object.keys(e),i=0,r=n.length;i<r;++i){var o=e[n[i]];t[n[i]]={meta:{textExpr:o.textExpr,longText:o.longText,quantification:o.quant}}}return t},_.io.v04Tov05Data=function(e){var t=e.position;return e.position=[t.i,t.j,t.k],e},_.io.v04Tov05Drawings=function(e){for(var t=e.children,n=0,i=t.length;n<i;++n){var r=t[n],o=r.attrs.id.split("_"),a=parseInt(o[0].substring(6),10),o=parseInt(o[1].substring(6),10),s="#2-";s+=0===a&&0!==o?o:a,r.attrs.id=s}return e},_||{}),_=(_.io=_.io||{},_.io.urlContentTypes={Text:0,ArrayBuffer:1},_.io.UrlsLoader=function(){var p,t,f=this,n=null,y=[],D=null,i=0,r=0;function v(e){n=e,r=i=0,p=!1,y=[],D=null}function C(e){f.onloaditem(e),T()}function T(e){++i===n.length&&f.onload({source:n})}function L(e){++r===2*n.length&&f.onloadend({source:n})}function I(t,n){return function(e){e.source=n,t(e)}}function l(e,t){if(void 0!==e&&0!==e.length){v(e);for(var n=new _.utils.MultiProgressHandler(f.onprogress),i=(n.setNToLoad(e.length),[]),r=0;r<_.io.loaderList.length;++r)i.push(new _.io[_.io.loaderList[r]]);for(var o=e[0],a=null,s=!1,l=0;l<i.length;++l)if((a=i[l]).canLoadUrl(o,t)){s=!0,a.setOptions({numberOfFiles:e.length,defaultCharacterSet:f.getDefaultCharacterSet()}),a.onprogress=n.getUndefinedMonoProgressHandler(1),void 0===a.onloaditem?a.onload=C:(a.onloaditem=f.onloaditem,a.onload=T),a.onloadend=L,a.onerror=f.onerror,a.onabort=f.onabort,D=a;break}if(!s)throw new Error("No loader found for url: "+o);function u(){L(),c<y.length-1&&!p&&y[++c].send(null)}for(var c=0,d=0;d<e.length;++d){if(o=e[d],!a.canLoadUrl(o,t))throw new Error("Input url of different type: "+o);var g=new XMLHttpRequest;if(g.open("GET",o,!0),void 0!==t){if(void 0!==t.requestHeaders)for(var x=t.requestHeaders,S=0;S<x.length;++S)void 0!==x[S].name&&void 0!==x[S].value&&g.setRequestHeader(x[S].name,x[S].value);void 0!==t.withCredentials&&(g.withCredentials=t.withCredentials)}g.onprogress=I(n.getMonoProgressHandler(d,0),o),g.onload=function(n,i,r){return function(e){var t=e.target.status;200!==t&&0!==t?(f.onerror({source:i,error:"GET "+e.target.responseURL+" "+e.target.status+" ("+e.target.statusText+")",target:e.target}),L()):n.load(e.target.response,i,r)}}(a,o,d),g.onloadend=u,g.onerror=I(f.onerror,o),g.onabort=I(f.onabort,o),a.loadUrlAs()===_.io.urlContentTypes.ArrayBuffer&&(g.responseType="arraybuffer"),y.push(g)}var m=y.length;void 0!==t&&void 0!==t.batchSize&&0!==m&&(m=Math.min(t.batchSize,y.length));for(var h=0;h<m;++h)p||y[c=h].send(null)}}this.getDefaultCharacterSet=function(){return t},this.setDefaultCharacterSet=function(e){t=e},this.load=function(e,t){var a,s,n;f.onloadstart({source:e}),1===e.length&&(_.utils.endsWith(e[0],"DICOMDIR")||_.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 f.onerror({source:a,error:"GET "+e.target.responseURL+" "+e.target.status+" ("+e.target.statusText+")",target:e.target}),void f.onloadend({});for(var n=_.dicom.getFileListFromDicomDir(e.target.response)[0][0],i=_.utils.getRootPath(a),r=[],o=0;o<n.length;++o)r.push(i+"/"+n[o]);l(r,s)},n.onerror=function(e){I(f.onerror,a)(e),f.onloadend({})},n.onabort=function(e){I(f.onabort,a)(e),f.onloadend({})},n.send(null)):l(e,t)},this.abort=function(){p=!0;for(var e=0;e<y.length;++e)4!==y[e].readyState&&y[e].abort();D&&D.isLoading()&&D.abort()}},_.io.UrlsLoader.prototype.onloadstart=function(e){},_.io.UrlsLoader.prototype.onprogress=function(e){},_.io.UrlsLoader.prototype.onloaditem=function(e){},_.io.UrlsLoader.prototype.onload=function(e){},_.io.UrlsLoader.prototype.onloadend=function(e){},_.io.UrlsLoader.prototype.onerror=function(e){},_.io.UrlsLoader.prototype.onabort=function(e){},_||{}),u=(_.io=_.io||{},u||{}),_=(_.io.ZipLoader=function(){var r=this,o=!1,a=(this.setOptions=function(e){},this.isLoading=function(){return o},""),s=[],l=null;this.load=function(e,t,n){this.onloadstart({source:t}),o=!0,u.loadAsync(e).then(function(e){s=[],l=e.file(/.*\.dcm/);e=s.length;a=l[e].name,l[e].async("arrayBuffer").then(function(e){!function t(e,n,i){s.push({filename:a,data:e});e=100*s.length/l.length;r.onprogress({lengthComputable:!0,loaded:e/2,total:100,index:i,item:{loaded:e,total:100,source:n}}),s.length<l.length?(e=s.length,a=l[e].name,l[e].async("arrayBuffer").then(function(e){t(e,n,i)})):((e=new _.io.MemoryLoader).onprogress=function(e){e.loaded=50+e.loaded/2,e.index=i,r.onprogress(e)},e.onloaditem=r.onloaditem,e.onload=r.onload,e.onloadend=function(e){o=!1,r.onloadend(e)},e.onerror=r.onerror,e.onabort=r.onabort,e.load(s))}(e,t,n)})})},this.abort=function(){o=!1,r.onabort({}),r.onloadend({})}},_.io.ZipLoader.prototype.canLoadFile=function(e){return"zip"===_.utils.getFileExtension(e.name)},_.io.ZipLoader.prototype.canLoadUrl=function(e,t){if(void 0!==t&&void 0!==t.requestHeaders)return void 0!==t.requestHeaders.find(function(e){return"Accept"===e.name&&_.utils.startsWith(e.value,"application/zip")});t=_.utils.getUrlFromUri(e);return"zip"===_.utils.getFileExtension(t.pathname)},_.io.ZipLoader.prototype.canLoadMemory=function(e){return!1},_.io.ZipLoader.prototype.loadFileAs=function(){return _.io.fileContentTypes.ArrayBuffer},_.io.ZipLoader.prototype.loadUrlAs=function(){return _.io.urlContentTypes.ArrayBuffer},_.io.ZipLoader.prototype.onloadstart=function(e){},_.io.ZipLoader.prototype.onprogress=function(e){},_.io.ZipLoader.prototype.onloaditem=function(e){},_.io.ZipLoader.prototype.onload=function(e){},_.io.ZipLoader.prototype.onloadend=function(e){},_.io.ZipLoader.prototype.onerror=function(e){},_.io.ZipLoader.prototype.onabort=function(e){},_.io.loaderList=_.io.loaderList||[],_.io.loaderList.push("ZipLoader"),_||{}),_=(_.math=_.math||{},_.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)},_.math.BucketQueue.prototype.push=function(e){var t=this.getBucket(e);e.next=this.buckets[t],this.buckets[t]=e,this.size++},_.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},_.math.BucketQueue.prototype.remove=function(e){if(!e)return!1;for(var t=this.getBucket(e),n=this.buckets[t];null!==n&&(null===n.next||e.x!==n.next.x||e.y!==n.next.y);)n=n.next;return null!==n&&(n.next=n.next.next,this.size--,!0)},_.math.BucketQueue.prototype.isEmpty=function(){return 0===this.size},_.math.BucketQueue.prototype.getBucket=function(e){return this.cost(e)&this.mask},_.math.BucketQueue.prototype.buildArray=function(e){for(var t=new Array(e),n=0;n<t.length;n++)t[n]=null;return t},_||{}),_=(_.math=_.math||{},_.math.mulABC=function(e,t,n){return null!==t&&null!==n?e*t*n:null},_.math.Circle=function(e,t){this.getCenter=function(){return e},this.getRadius=function(){return t}},_.math.Circle.prototype.equals=function(e){return null!==e&&this.getCenter().equals(e.getCenter())&&this.getRadius()===e.getRadius()},_.math.Circle.prototype.getSurface=function(){return Math.PI*this.getRadius()*this.getRadius()},_.math.Circle.prototype.getWorldSurface=function(e,t){return _.math.mulABC(this.getSurface(),e,t)},_.math.Circle.prototype.getRound=function(){for(var e=this.getCenter().getX(),t=this.getCenter().getY(),n=this.getRadius(),i=Math.pow(n,2),r=t+n,o=[],a=t-n;a<r;++a){var s=i-Math.pow(a-t,2);Math.abs(s)<1e-7||((s=Math.sqrt(s))<.5||o.push([[Math.round(e-s),Math.round(a)],[Math.round(e+s),Math.round(a)]]))}return o},_.math.Circle.prototype.quantify=function(e,t){var n={},i=e.get2DSpacing(),i=this.getWorldSurface(i[0],i[1]);return null!==i&&(n.surface={value:i/100,unit:_.i18n("unit.cm2")}),e.canQuantifyImage()&&0!==(i=this.getRound()).length&&(e=e.getImageVariableRegionValues(i),i=_.math.getStats(e,t),n.min={value:i.getMin(),unit:""},n.max={value:i.getMax(),unit:""},n.mean={value:i.getMean(),unit:""},n.stdDev={value:i.getStdDev(),unit:""},void 0!==i.getMedian&&(n.median={value:i.getMedian(),unit:""}),void 0!==i.getP25&&(n.p25={value:i.getP25(),unit:""}),void 0!==i.getP75&&(n.p75={value:i.getP75(),unit:""})),n},_||{}),_=(_.math=_.math||{},_.math.mulABC=function(e,t,n){return null!==t&&null!==n?e*t*n:null},_.math.Ellipse=function(e,t,n){this.getCenter=function(){return e},this.getA=function(){return t},this.getB=function(){return n}},_.math.Ellipse.prototype.equals=function(e){return null!==e&&this.getCenter().equals(e.getCenter())&&this.getA()===e.getA()&&this.getB()===e.getB()},_.math.Ellipse.prototype.getSurface=function(){return Math.PI*this.getA()*this.getB()},_.math.Ellipse.prototype.getWorldSurface=function(e,t){return _.math.mulABC(this.getSurface(),e,t)},_.math.Ellipse.prototype.getRound=function(){for(var e=this.getCenter().getX(),t=this.getCenter().getY(),n=this.getA(),i=this.getB(),r=n/i,o=Math.pow(i,2),a=t+i,s=[],l=t-i;l<a;++l){var u=o-Math.pow(l-t,2);Math.abs(u)<1e-7||((u=r*Math.sqrt(u))<.5||s.push([[Math.round(e-u),Math.round(l)],[Math.round(e+u),Math.round(l)]]))}return s},_.math.Ellipse.prototype.quantify=function(e,t){var n={},i=e.get2DSpacing(),i=this.getWorldSurface(i[0],i[1]);return null!==i&&(n.surface={value:i/100,unit:_.i18n("unit.cm2")}),e.canQuantifyImage()&&0!==(i=this.getRound()).length&&(e=e.getImageVariableRegionValues(i),i=_.math.getStats(e,t),n.min={value:i.getMin(),unit:""},n.max={value:i.getMax(),unit:""},n.mean={value:i.getMean(),unit:""},n.stdDev={value:i.getStdDev(),unit:""},void 0!==i.getMedian&&(n.median={value:i.getMedian(),unit:""}),void 0!==i.getP25&&(n.p25={value:i.getP25(),unit:""}),void 0!==i.getP75&&(n.p75={value:i.getP75(),unit:""})),n},_.math.getEllipseIndices=function(e,t,n){for(var i=e.getValues(),r=i.slice(),o=[],e=t[0],a=t[1],s=e/a,l=Math.pow(a,2),u=n[0],c=n[1],d=0;d<a;++d)for(var g=Math.round(s*Math.sqrt(l-Math.pow(d,2))),x=i[c]+d,S=i[c]-d,m=0;m<g;++m){var h=i[u]+m,p=i[u]-m;r[u]=h,r[c]=x,o.push(new _.math.Index(r.slice())),S!==x&&(r[c]=S,o.push(new _.math.Index(r.slice()))),p!==h&&(r[u]=p,r[c]=x,o.push(new _.math.Index(r.slice())),S!==x&&(r[c]=S,o.push(new _.math.Index(r.slice()))))}return o},_||{}),_=(_.math=_.math||{},_.math.Index=function(t){if(!t||void 0===t)throw new Error("Cannot create index with no values.");if(0===t.length)throw new Error("Cannot create index with empty values.");if(!t.every(function(e){return!isNaN(e)}))throw new Error("Cannot create index with non number values.");this.get=function(e){return t[e]},this.length=function(){return t.length},this.toString=function(){return"("+t.toString()+")"},this.getValues=function(){return t.slice()}},_.math.Index.prototype.canCompare=function(e){return!!e&&this.length()===e.length()},_.math.Index.prototype.equals=function(e){if(!this.canCompare(e))return!1;for(var t=0,n=this.length();t<n;++t)if(this.get(t)!==e.get(t))return!1;return!0},_.math.Index.prototype.compare=function(e){if(!this.canCompare(e))return null;for(var t=[],n=0,i=this.length();n<i;++n)this.get(n)!==e.get(n)&&t.push(n);return t},_.math.Index.prototype.add=function(e){if(!this.canCompare(e))return null;for(var t=[],n=0,i=this.length();n<i;++n)t.push(this.get(n)+e.get(n));return new _.math.Index(t)},_.math.Index.prototype.getWithNew2D=function(e,t){for(var n=[e,t],i=2,r=this.length();i<r;++i)n.push(this.get(i));return new _.math.Index(n)},_.math.getZeroIndex=function(e){e=new Array(e);return e.fill(0),new _.math.Index(e)},_.math.getIndexCompareFunction=function(n){return function(e,t){return e.get(n)-t.get(n)}},_.math.Index.prototype.toStringId=function(e){if(void 0===e){e=[];for(var t=0;t<this.length();++t)e.push(t)}for(var n=0;n<e.length;++n)if(e[n]>=this.length())throw new Error("Non valid dimension for toStringId.");for(var i="",r=0;r<e.length;++r)0!==r&&(i+="_"),i+="#"+e[r]+"-"+this.get(e[r]);return i},_.math.getIndexFromStringId=function(e){for(var t=e.split("_"),n=0,i=0;i<t.length;++i)n<(a=parseInt(t[i].substring(1,2),10))&&(n=a);if(0===n)throw new Error("No dimension found in point stringId");var r=new Array(n);r.fill(0);for(var o=0;o<t.length;++o){var a=parseInt(t[o].substring(1,3),10),s=parseInt(t[o].substring(3),10);r[a]=s}return new _.math.Point(r)},_||{}),_=(_.math=_.math||{},_.math.Line=function(e,t){this.getBegin=function(){return e},this.getEnd=function(){return t}},_.math.Line.prototype.equals=function(e){return null!==e&&this.getBegin().equals(e.getBegin())&&this.getEnd().equals(e.getEnd())},_.math.Line.prototype.getDeltaX=function(){return this.getEnd().getX()-this.getBegin().getX()},_.math.Line.prototype.getDeltaY=function(){return this.getEnd().getY()-this.getBegin().getY()},_.math.Line.prototype.getLength=function(){return Math.sqrt(this.getDeltaX()*this.getDeltaX()+this.getDeltaY()*this.getDeltaY())},_.math.Line.prototype.getWorldLength=function(e,t){var n=null;return null!==e&&null!==t&&(e=this.getDeltaX()*e,t=this.getDeltaY()*t,n=Math.sqrt(e*e+t*t)),n},_.math.Line.prototype.getMidpoint=function(){return new _.math.Point2D(parseInt((this.getBegin().getX()+this.getEnd().getX())/2,10),parseInt((this.getBegin().getY()+this.getEnd().getY())/2,10))},_.math.Line.prototype.getSlope=function(){return this.getDeltaY()/this.getDeltaX()},_.math.Line.prototype.getIntercept=function(){return(this.getEnd().getX()*this.getBegin().getY()-this.getBegin().getX()*this.getEnd().getY())/this.getDeltaX()},_.math.Line.prototype.getInclination=function(){return 180-180*Math.atan2(this.getDeltaY(),this.getDeltaX())/Math.PI},_.math.getAngle=function(e,t){var n=e.getDeltaX(),e=e.getDeltaY(),i=t.getDeltaX(),t=t.getDeltaY();return 360-(180-180*Math.atan2(n*t-e*i,n*i+e*t)/Math.PI)},_.math.getPerpendicularLine=function(e,t,n){var i,r,o=0,a=0,s=0,l=0;return l=0!==e.getSlope()?(e=-1/e.getSlope(),i=t.getY()-e*t.getX(),r=n/(2*Math.sqrt(1+e*e)),a=e*(o=t.getX()-r)+i,e*(s=t.getX()+r)+i):(o=t.getX(),a=t.getY()-n/2,s=t.getX(),t.getY()+n/2),new _.math.Line(new _.math.Point2D(o,a),new _.math.Point2D(s,l))},_.math.Line.prototype.quantify=function(e){var t={},e=e.get2DSpacing(),e=this.getWorldLength(e[0],e[1]);return null!==e&&(t.length={value:e,unit:_.i18n("unit.mm")}),t},_||{}),_=(_.math=_.math||{},void 0===Number.EPSILON&&(Number.EPSILON=Math.pow(2,-52)),_.math.BIG_EPSILON=1e4*Number.EPSILON,_.math.REAL_WORLD_EPSILON=1e-4,_.math.isSimilar=function(e,t,n){return void 0===n&&(n=Number.EPSILON),Math.abs(e-t)<n},_.math.Matrix33=function(n){var e=null;this.get=function(e,t){return n[3*e+t]},this.getInverse=function(){return e=null===e?_.math.getMatrixInverse(this):e}},_.math.Matrix33.prototype.equals=function(e,t){for(var n=0;n<3;++n)for(var i=0;i<3;++i)if(!_.math.isSimilar(this.get(n,i),e.get(n,i),t))return!1;return!0},_.math.Matrix33.prototype.toString=function(){for(var e="[",t=0;t<3;++t){0!==t&&(e+=", \n ");for(var n=0;n<3;++n)0!==n&&(e+=", "),e+=this.get(t,n)}return e+="]"},_.math.Matrix33.prototype.multiply=function(e){for(var t=[],n=0;n<3;++n)for(var i=0;i<3;++i){for(var r=0,o=0;o<3;++o)r+=this.get(n,o)*e.get(o,i);t.push(r)}return new _.math.Matrix33(t)},_.math.Matrix33.prototype.getAbs=function(){for(var e=[],t=0;t<3;++t)for(var n=0;n<3;++n)e.push(Math.abs(this.get(t,n)));return new _.math.Matrix33(e)},_.math.Matrix33.prototype.multiplyArray3D=function(e){if(3!==e.length)throw new Error("Cannot multiply 3x3 matrix with non 3D array: ",e.length);for(var t=[],n=0;n<3;++n){for(var i=0,r=0;r<3;++r)i+=this.get(n,r)*e[r];t.push(i)}return t},_.math.Matrix33.prototype.multiplyVector3D=function(e){e=this.multiplyArray3D([e.getX(),e.getY(),e.getZ()]);return new _.math.Vector3D(e[0],e[1],e[2])},_.math.Matrix33.prototype.multiplyPoint3D=function(e){e=this.multiplyArray3D([e.getX(),e.getY(),e.getZ()]);return new _.math.Point3D(e[0],e[1],e[2])},_.math.Matrix33.prototype.multiplyIndex3D=function(e){e=this.multiplyArray3D(e.getValues());return new _.math.Index(e)},_.math.getMatrixInverse=function(e){var t=e.get(0,0),n=e.get(0,1),i=e.get(0,2),r=e.get(1,0),o=e.get(1,1),a=e.get(1,2),s=e.get(2,0),l=e.get(2,1),e=e.get(2,2),u=o*e-a*l,c=a*s-r*e,d=r*l-o*s,g=t*u+n*c+i*d;{if(0!=g)return new _.math.Matrix33([(g=1/g)*u,g*(i*l-n*e),g*(n*a-i*o),g*c,g*(t*e-i*s),g*(i*r-t*a),g*d,g*(n*s-t*l),g*(t*o-n*r)]);_.logger.warn("Cannot invert 3*3 matrix with zero determinant.")}},_.math.Matrix33.prototype.getRowAbsMax=function(e){var t=[Math.abs(this.get(e,0)),Math.abs(this.get(e,1)),Math.abs(this.get(e,2))],n=Math.max.apply(null,t),t=t.indexOf(n);return{value:this.get(e,t),index:t}},_.math.Matrix33.prototype.getColAbsMax=function(e){var t=[Math.abs(this.get(0,e)),Math.abs(this.get(1,e)),Math.abs(this.get(2,e))],n=Math.max.apply(null,t),t=t.indexOf(n);return{value:this.get(t,e),index:t}},_.math.Matrix33.prototype.asOneAndZeros=function(){for(var e=[],t=0;t<3;++t)for(var n=this.getRowAbsMax(t),i=0<n.value?1:-1,r=0;r<3;++r)r===n.index?e.push(i):e.push(0);return new _.math.Matrix33(e)},_.math.Matrix33.prototype.getThirdColMajorDirection=function(){return this.getColAbsMax(2).index},_.math.getIdentityMat33=function(){return new _.math.Matrix33([1,0,0,0,1,0,0,0,1])},_.math.isIdentityMat33=function(e){return e.equals(_.math.getIdentityMat33())},_.math.getCoronalMat33=function(){return new _.math.Matrix33([1,0,0,0,0,1,0,-1,0])},_.math.getSagittalMat33=function(){return new _.math.Matrix33([0,0,-1,1,0,0,0,-1,0])},_.math.getMatrixFromName=function(e){var t=null;return"axial"===e?t=_.math.getIdentityMat33():"coronal"===e?t=_.math.getCoronalMat33():"sagittal"===e&&(t=_.math.getSagittalMat33()),t},_||{}),_=(_.math=_.math||{},_.math.Path=function(e,t){this.pointArray=e?e.slice():[],this.controlPointIndexArray=t?t.slice():[]},_.math.Path.prototype.getPoint=function(e){return this.pointArray[e]},_.math.Path.prototype.isControlPoint=function(e){e=this.pointArray.indexOf(e);if(-1!==e)return-1!==this.controlPointIndexArray.indexOf(e);throw new Error("Error: isControlPoint called with not in list point.")},_.math.Path.prototype.getLength=function(){return this.pointArray.length},_.math.Path.prototype.addPoint=function(e){this.pointArray.push(e)},_.math.Path.prototype.addControlPoint=function(e){e=this.pointArray.indexOf(e);if(-1===e)throw new Error("Cannot mark a non registered point as control point.");this.controlPointIndexArray.push(e)},_.math.Path.prototype.addPoints=function(e){this.pointArray=this.pointArray.concat(e)},_.math.Path.prototype.appenPath=function(e){for(var t=this.pointArray.length,n=(this.pointArray=this.pointArray.concat(e.pointArray),[]),i=0;i<e.controlPointIndexArray.length;++i)n[i]=e.controlPointIndexArray[i]+t;this.controlPointIndexArray=this.controlPointIndexArray.concat(n)},_||{}),_=(_.math=_.math||{},_.math.Point2D=function(e,t){this.getX=function(){return e},this.getY=function(){return t}},_.math.Point2D.prototype.equals=function(e){return null!==e&&this.getX()===e.getX()&&this.getY()===e.getY()},_.math.Point2D.prototype.toString=function(){return"("+this.getX()+", "+this.getY()+")"},_.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()))},_.math.Point2D.prototype.getRound=function(){return new _.math.Point2D(Math.round(this.getX()),Math.round(this.getY()))},_.math.Point3D=function(e,t,n){this.getX=function(){return e},this.getY=function(){return t},this.getZ=function(){return n}},_.math.Point3D.prototype.equals=function(e){return null!==e&&this.getX()===e.getX()&&this.getY()===e.getY()&&this.getZ()===e.getZ()},_.math.Point3D.prototype.isSimilar=function(e,t){return null!==e&&_.math.isSimilar(this.getX(),e.getX(),t)&&_.math.isSimilar(this.getY(),e.getY(),t)&&_.math.isSimilar(this.getZ(),e.getZ(),t)},_.math.Point3D.prototype.toString=function(){return"("+this.getX()+", "+this.getY()+", "+this.getZ()+")"},_.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()))},_.math.Point3D.prototype.minus=function(e){return new _.math.Vector3D(this.getX()-e.getX(),this.getY()-e.getY(),this.getZ()-e.getZ())},_.math.getEqualPoint3DFunction=function(t){return function(e){return e.equals(t)}},_.math.getSimilarPoint3DFunction=function(t,n){return function(e){return e.isSimilar(t,n)}},_.math.Point=function(t){if(!t||void 0===t)throw new Error("Cannot create point with no values.");if(0===t.length)throw new Error("Cannot create point with empty values.");if(!t.every(function(e){return!isNaN(e)}))throw new Error("Cannot create point with non number values.");this.get=function(e){return t[e]},this.length=function(){return t.length},this.toString=function(){return"("+t.toString()+")"},this.getValues=function(){return t.slice()}},_.math.Point.prototype.canCompare=function(e){return!!e&&this.length()===e.length()},_.math.Point.prototype.equals=function(e){if(!this.canCompare(e))return!1;for(var t=0,n=this.length();t<n;++t)if(this.get(t)!==e.get(t))return!1;return!0},_.math.Point.prototype.compare=function(e){if(!this.canCompare(e))return null;for(var t=[],n=0,i=this.length();n<i;++n)this.get(n)!==e.get(n)&&t.push(n);return t},_.math.Point.prototype.get3D=function(){return new _.math.Point3D(this.get(0),this.get(1),this.get(2))},_.math.Point.prototype.add=function(e){if(!this.canCompare(e))return null;for(var t=[],n=this.getValues(),i=e.getValues(),r=0;r<n.length;++r)t.push(n[r]+i[r]);return new _.math.Point(t)},_.math.Point.prototype.mergeWith3D=function(e){var t=this.getValues();return t[0]=e.getX(),t[1]=e.getY(),t[2]=e.getZ(),new _.math.Point(t)},_||{}),_=(_.math=_.math||{},_.math.mulABC=function(e,t,n){return null!==t&&null!==n?e*t*n:null},_.math.Rectangle=function(e,t){var n;t.getX()<e.getX()&&(n=e.getX(),e=new _.math.Point2D(t.getX(),e.getY()),t=new _.math.Point2D(n,t.getY())),t.getY()<e.getY()&&(n=e.getY(),e=new _.math.Point2D(e.getX(),t.getY()),t=new _.math.Point2D(t.getX(),n)),this.getBegin=function(){return e},this.getEnd=function(){return t}},_.math.Rectangle.prototype.equals=function(e){return null!==e&&this.getBegin().equals(e.getBegin())&&this.getEnd().equals(e.getEnd())},_.math.Rectangle.prototype.getSurface=function(){var e=this.getBegin(),t=this.getEnd();return Math.abs(t.getX()-e.getX())*Math.abs(t.getY()-e.getY())},_.math.Rectangle.prototype.getWorldSurface=function(e,t){return _.math.mulABC(this.getSurface(),e,t)},_.math.Rectangle.prototype.getRealWidth=function(){return this.getEnd().getX()-this.getBegin().getX()},_.math.Rectangle.prototype.getRealHeight=function(){return this.getEnd().getY()-this.getBegin().getY()},_.math.Rectangle.prototype.getWidth=function(){return Math.abs(this.getRealWidth())},_.math.Rectangle.prototype.getHeight=function(){return Math.abs(this.getRealHeight())},_.math.Rectangle.prototype.getRound=function(){return{min:this.getBegin().getRound(),max:this.getEnd().getRound()}},_.math.Rectangle.prototype.quantify=function(e,t){var n={},i=e.get2DSpacing(),i=this.getWorldSurface(i[0],i[1]);return null!==i&&(n.surface={value:i/100,unit:_.i18n("unit.cm2")}),e.canQuantifyImage()&&(i=this.getRound(),e=e.getImageRegionValues(i.min,i.max),i=_.math.getStats(e,t),n.min={value:i.getMin(),unit:""},n.max={value:i.getMax(),unit:""},n.mean={value:i.getMean(),unit:""},n.stdDev={value:i.getStdDev(),unit:""},void 0!==i.getMedian&&(n.median={value:i.getMedian(),unit:""}),void 0!==i.getP25&&(n.p25={value:i.getP25(),unit:""}),void 0!==i.getP75&&(n.p75={value:i.getP75(),unit:""})),n},_||{}),_=(_.math=_.math||{},_.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)}},_||{}),S=(_.math=_.math||{},2/(3*Math.PI)),_=(_.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),e=this.dy(e,t);return Math.sqrt(n*n+e*e)},i.laplace=function(e,t){var n=-16*this[t][e];return(n+=this[t-2][e])+(this[t-1][e-1]+2*this[t-1][e]+this[t-1][e+1])+(this[t][e-2]+2*this[t][e-1]+2*this[t][e+1]+this[t][e+2])+(this[t+1][e-1]+2*this[t+1][e]+this[t+1][e+1])+this[t+2][e]},i},_.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},_.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},_.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},_.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},_.math.gradUnitVector=function(e,t,n,i,r){e=e[i][n],t=t[i][n],i=Math.sqrt(e*e+t*t),i=Math.max(i,1e-100);r.x=e/i,r.y=t/i},_.math.gradDirection=function(e,t,n,i,r,o){var a={x:-1,y:-1},s={x:-1,y:-1},e=(_.math.gradUnitVector(e,t,n,i,a),_.math.gradUnitVector(e,t,r,o,s),a.y*(r-n)-a.x*(o-i)),t=s.y*(r-n)-s.x*(o-i);return e<0&&(e=-e,t=-t),n!==r&&i!==o&&(e*=Math.SQRT1_2,t*=Math.SQRT1_2),S*(Math.acos(e)+Math.acos(t))},_.math.computeSides=function(e,t,n,i){for(var r={inside:[],outside:[]},o={x:-1,y:-1},a=0;a<t.length;a++){r.inside[a]=[],r.outside[a]=[];for(var s=0;s<t[a].length;s++){_.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),d=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),d=Math.max(Math.min(d,t.length-1),0);r.inside[a][s]=i[u][l],r.outside[a][s]=i[d][c]}}return r},_.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]},_.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},_.math.Scissors.prototype.getTrainingIdx=function(e,t){return Math.round((e-1)*t)},_.math.Scissors.prototype.getTrainedEdge=function(e){return this.edgeTraining[this.getTrainingIdx(this.edgeGran,e)]},_.math.Scissors.prototype.getTrainedGrad=function(e){return this.gradTraining[this.getTrainingIdx(this.gradGran,e)]},_.math.Scissors.prototype.getTrainedInside=function(e){return this.insideTraining[this.getTrainingIdx(this.insideGran,e)]},_.math.Scissors.prototype.getTrainedOutside=function(e){return this.outsideTraining[this.getTrainingIdx(this.outsideGran,e)]},_.math.Scissors.prototype.setWorking=function(e){this.working=e},_.math.Scissors.prototype.setDimensions=function(e,t){this.width=e,this.height=t},_.math.Scissors.prototype.setData=function(e){if(-1===this.width||-1===this.height)throw new Error("Dimensions have not been set.");this.greyscale=_.math.computeGreyscale(e,this.width,this.height),this.laplace=_.math.computeLaplace(this.greyscale),this.gradient=_.math.computeGradient(this.greyscale),this.gradX=_.math.computeGradX(this.greyscale),this.gradY=_.math.computeGradY(this.greyscale);e=_.math.computeSides(this.edgeWidth,this.gradX,this.gradY,this.greyscale);this.inside=e.inside,this.outside=e.outside,this.edgeTraining=[],this.gradTraining=[],this.insideTraining=[],this.outsideTraining=[]},_.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},_.math.Scissors.prototype.resetTraining=function(){this.trained=!1},_.math.Scissors.prototype.doTraining=function(e){this.trainingPoints=this.findTrainingPoints(e),this.trainingPoints.length<8||(this.calculateTraining(e=[],this.edgeGran,this.greyscale,this.edgeTraining),this.calculateTraining(e,this.gradGran,this.gradient,this.gradTraining),this.calculateTraining(e,this.insideGran,this.inside,this.insideTraining),this.calculateTraining(e,this.outsideGran,this.outside,this.outsideTraining),this.trainingPoints.length<this.gradPointsNeeded&&this.addInStaticGrad(this.trainingPoints.length,this.gradPointsNeeded),this.trained=!0)},_.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],a=this.getTrainingIdx(t,n[a.y][a.x]);e[a]+=1,o=Math.max(o,e[a])}for(r=0;r<t;r++)e[r]=1-e[r]/o;_.math.gaussianBlur(e,i)},_.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))},_.math.Scissors.prototype.gradDirection=function(e,t,n,i){return _.math.gradDirection(this.gradX,this.gradY,e,t,n,i)},_.math.Scissors.prototype.dist=function(e,t,n,i){var r=this.gradient[i][n],o=(e!==n&&t!==i||(r*=Math.SQRT1_2),this.laplace[i][n]),n=this.gradDirection(e,t,n,i);return this.trained?.3*this.getTrainedGrad(r)+.3*o+.1*(n+this.getTrainedEdge(this.greyscale[t][e])+this.getTrainedInside(this.inside[t][e])+this.getTrainedOutside(this.outside[t][e])):.43*r+.43*o+.11*n},_.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++]={x:l,y:s});return t},_.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 _.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},_.math.Scissors.prototype.doWork=function(){if(this.working){this.timeout=null;for(var e=0,t=[];!this.pq.isEmpty()&&e<this.pointsPerPost;){for(var n=this.pq.pop(),i=(t.push(n),t.push(this.parents[n.y][n.x]),this.visited[n.y][n.x]=!0,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}},_||{}),_=(_.math=_.math||{},_.math.SimpleStats=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}},_.math.SimpleStats.prototype.equals=function(e){return null!==e&&this.getMin()===e.getMin()&&this.getMax()===e.getMax()&&this.getMean()===e.getMean()&&this.getStdDev()===e.getStdDev()},_.math.SimpleStats.prototype.asObject=function(){return{min:this.getMin(),max:this.getMax(),mean:this.getMean(),stdDev:this.getStdDev()}},_.math.FullStats=function(e,t,n,i,r,o,a){_.math.SimpleStats.call(this,e,t,n,i),this.getMedian=function(){return r},this.getP25=function(){return o},this.getP75=function(){return a}},_.math.FullStats.prototype=Object.create(_.math.SimpleStats.prototype),Object.defineProperty(_.math.FullStats.prototype,"constructor",{value:_.math.FullStats,enumerable:!1,writable:!0}),_.math.getStats=function(e,t){return _.math.includesFullStatsFlags(t)?_.math.getFullStats(e):_.math.getSimpleStats(e)},_.math.includesFullStatsFlags=function(e){return null!=e&&e.includes("median","p25","p75")},_.math.getSimpleStats=function(e){for(var t,n=e[0],i=n,r=0,o=0,a=e.length,s=0;s<a;++s)(t=e[s])<n?n=t:i<t&&(i=t),r+=t,o+=t*t;var l=r/a,u=Math.sqrt(o/a-l*l);return new _.math.SimpleStats(n,i,l,u)},_.math.getFullStats=function(e){var t=_.math.getSimpleStats(e),n=(e.sort(function(e,t){return e-t}),_.math.getPercentile(e,.5)),i=_.math.getPercentile(e,.25),e=_.math.getPercentile(e,.75);return new _.math.FullStats(t.getMin(),t.getMax(),t.getMean(),t.getStdDev(),n,i,e)},_.math.getPercentile=function(e,t){if(0===e.length)throw new Error("Empty array provided for percentile calculation.");if(t<0||1<t)throw new Error("Invalid ratio provided for percentile calculation: "+t);if(0===t)return e[0];if(1===t)return e[e.length-1];var t=(e.length-1)*t,n=Math.floor(t),i=e[n];return i+(e[n+1]-i)*(t-n)},_.math.guid=function(){return Math.random().toString(36).substring(2,15)},_||{}),_=(_.math=_.math||{},_.math.Vector3D=function(e,t,n){this.getX=function(){return e},this.getY=function(){return t},this.getZ=function(){return n}},_.math.Vector3D.prototype.equals=function(e){return null!==e&&this.getX()===e.getX()&&this.getY()===e.getY()&&this.getZ()===e.getZ()},_.math.Vector3D.prototype.toString=function(){return"("+this.getX()+", "+this.getY()+", "+this.getZ()+")"},_.math.Vector3D.prototype.norm=function(){return Math.sqrt(this.getX()*this.getX()+this.getY()*this.getY()+this.getZ()*this.getZ())},_.math.Vector3D.prototype.crossProduct=function(e){return new _.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())},_.math.Vector3D.prototype.dotProduct=function(e){return this.getX()*e.getX()+this.getY()*e.getY()+this.getZ()*e.getZ()},_||{}),y=(_.tool=_.tool||{},_.tool.draw=_.tool.draw||{},y||{}),_=(_.tool.draw.defaultArrowLabelText="",_.tool.draw.ArrowFactory=function(){this.getGroupName=function(){return"line-group"},this.getNPoints=function(){return 2},this.getTimeout=function(){return 0}},_.tool.draw.ArrowFactory.prototype.isFactoryGroup=function(e){return this.getGroupName()===e.name()},_.tool.draw.ArrowFactory.prototype.create=function(e,t,n){var i=new _.math.Line(e[0],e[1]),r=new y.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=_.math.getPerpendicularLine(i,e[0],t.scale(10)),a=_.math.getPerpendicularLine(i,e[1],t.scale(10)),e=(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)}),new _.math.Point2D(i.getBegin().getX(),i.getBegin().getY()-10)),e=new _.math.Line(i.getBegin(),e),e=_.math.getAngle(i,e),s=e*Math.PI/180,l=5*t.getScaledStrokeWidth(),s=new y.RegularPolygon({x:i.getBegin().getX()+l*Math.sin(s),y:i.getBegin().getY()+l*Math.cos(s),sides:3,radius:l,rotation:-e,fill:t.getLineColour(),strokeWidth:t.getStrokeWidth(),strokeScaleEnabled:!1,name:"shape-triangle"}),l=new y.Text({fontSize:t.getFontSize(),fontFamily:t.getFontFamily(),fill:t.getLineColour(),padding:t.getTextPadding(),shadowColor:t.getShadowLineColour(),shadowOffset:t.getShadowOffset(),name:"text"}),e="",e=void 0!==_.tool.draw.arrowLabelText?_.tool.draw.arrowLabelText:_.tool.draw.defaultArrowLabelText,u=(l.setText(e),l.meta={textExpr:e,quantification:{}},i.getBegin().getX()>i.getEnd().getX()?0:-1),c=i.getBegin().getY()>i.getEnd().getY()?-1:0,u=new y.Label({x:i.getEnd().getX()+u*l.width(),y:i.getEnd().getY()+c*t.applyZoomScale(15).y,scale:t.applyZoomScale(1),visible:0!==e.length,name:"label"}),i=(u.add(l),u.add(new y.Tag({fill:t.getLineColour(),opacity:t.getTagOpacity()})),new y.Group);return i.name(this.getGroupName()),i.add(u),i.add(s),i.add(r),i.visible(!0),i},_.tool.draw.ArrowFactory.prototype.getAnchors=function(e,t){var n=e.points(),i=[];return i.push(_.tool.draw.getDefaultAnchor(n[0]+e.x(),n[1]+e.y(),"begin",t)),i.push(_.tool.draw.getDefaultAnchor(n[2]+e.x(),n[3]+e.y(),"end",t)),i},_.tool.draw.ArrowFactory.prototype.update=function(e,t,n){var i=e.getParent(),r=i.getChildren(function(e){return"shape"===e.name()})[0],o=i.getChildren(function(e){return"shape-triangle"===e.name()})[0],a=i.getChildren(function(e){return"label"===e.name()})[0],s=i.getChildren(function(e){return"begin"===e.id()})[0],l=i.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 i=s.x()-r.x(),u=s.y()-r.y(),c=l.x()-r.x(),d=l.y()-r.y(),g=(r.points([i,u,c,d]),new _.math.Point2D(s.x(),s.y())),x=new _.math.Point2D(l.x(),l.y()),g=new _.math.Line(g,x),x=new _.math.Point2D(i,u),i=new _.math.Point2D(c,d),S=_.math.getPerpendicularLine(g,x,10),m=_.math.getPerpendicularLine(g,i,10),u=(r.hitFunc(function(e){e.beginPath(),e.moveTo(S.getBegin().getX(),S.getBegin().getY()),e.lineTo(S.getEnd().getX(),S.getEnd().getY()),e.lineTo(m.getEnd().getX(),m.getEnd().getY()),e.lineTo(m.getBegin().getX(),m.getBegin().getY()),e.closePath(),e.fillStrokeShape(this)}),new _.math.Point2D(g.getBegin().getX(),g.getBegin().getY()-10)),c=new _.math.Line(g.getBegin(),u),d=_.math.getAngle(g,c),x=d*Math.PI/180,i=(o.x(g.getBegin().getX()+o.radius()*Math.sin(x)),o.y(g.getBegin().getY()+o.radius()*Math.cos(x)),o.rotation(-d),a.getText()),r=(i.setText(i.meta.textExpr),g.getBegin().getX()>g.getEnd().getX()?0:-1),u=g.getBegin().getY()>g.getEnd().getY()?-1:0,c={x:g.getEnd().getX()+r*i.width(),y:g.getEnd().getY()+u*t.applyZoomScale(15).y};a.position(c)},_||{}),y=(_.tool=_.tool||{},_.tool.draw=_.tool.draw||{},y||{}),_=(_.tool.draw.defaultCircleLabelText="{surface}",_.tool.draw.CircleFactory=function(){this.getGroupName=function(){return"circle-group"},this.getNPoints=function(){return 2},this.getTimeout=function(){return 0}},_.tool.draw.CircleFactory.prototype.isFactoryGroup=function(e){return this.getGroupName()===e.name()},_.tool.draw.CircleFactory.prototype.create=function(e,t,n){var i,r=Math.abs(e[0].getX()-e[1].getX()),o=Math.abs(e[0].getY()-e[1].getY()),r=Math.round(Math.sqrt(r*r+o*o)),o=new _.math.Circle(e[0],r),e=new y.Circle({x:o.getCenter().getX(),y:o.getCenter().getY(),radius:o.getRadius(),stroke:t.getLineColour(),strokeWidth:t.getStrokeWidth(),strokeScaleEnabled:!1,name:"shape"}),r=new y.Text({fontSize:t.getFontSize(),fontFamily:t.getFontFamily(),fill:t.getLineColour(),padding:t.getTextPadding(),shadowColor:t.getShadowLineColour(),shadowOffset:t.getShadowOffset(),name:"text"}),a="",a=void 0!==_.tool.draw.circleLabelText?_.tool.draw.circleLabelText:_.tool.draw.defaultCircleLabelText,n=o.quantify(n,_.utils.getFlags(a)),n=(r.setText(_.utils.replaceFlags(a,n)),r.meta={textExpr:a,quantification:n},new y.Label({x:o.getCenter().getX(),y:o.getCenter().getY(),scale:t.applyZoomScale(1),visible:0!==a.length,name:"label"})),a=(n.add(r),n.add(new y.Tag({fill:t.getLineColour(),opacity:t.getTagOpacity()})),_.tool.draw.debug&&(i=_.tool.draw.getShadowCircle(o)),new y.Group);return a.name(this.getGroupName()),i&&a.add(i),a.add(n),a.add(e),a.visible(!0),a},_.tool.draw.CircleFactory.prototype.getAnchors=function(e,t){var n=e.x(),i=e.y(),e=e.radius(),r=[];return r.push(_.tool.draw.getDefaultAnchor(n-e,i,"left",t)),r.push(_.tool.draw.getDefaultAnchor(n+e,i,"right",t)),r.push(_.tool.draw.getDefaultAnchor(n,i-e,"bottom",t)),r.push(_.tool.draw.getDefaultAnchor(n,i+e,"top",t)),r},_.tool.draw.CircleFactory.prototype.update=function(e,t,n){var i,r,o=e.getParent(),a=o.getChildren(function(e){return"shape"===e.name()})[0],s=o.getChildren(function(e){return"label"===e.name()})[0],l=o.getChildren(function(e){return"left"===e.id()})[0],u=o.getChildren(function(e){return"right"===e.id()})[0],c=o.getChildren(function(e){return"bottom"===e.id()})[0],d=o.getChildren(function(e){return"top"===e.id()})[0],g=(_.tool.draw.debug&&(i=o.getChildren(function(e){return"shadow"===e.name()})[0]),{x:a.x(),y:a.y()});switch(e.id()){case"left":r=g.x-e.x(),l.y(u.y()),u.x(g.x+r),c.y(g.y-r),d.y(g.y+r);break;case"right":r=e.x()-g.x,u.y(l.y()),l.x(g.x-r),c.y(g.y-r),d.y(g.y+r);break;case"bottom":r=g.y-e.y(),c.x(d.x()),l.x(g.x-r),u.x(g.x+r),d.y(g.y+r);break;case"top":r=e.y()-g.y,d.x(c.x()),l.x(g.x-r),u.x(g.x+r),c.y(g.y-r);break;default:_.logger.error("Unhandled anchor id: "+e.id())}a.radius(Math.abs(r));a=new _.math.Point2D(o.x()+g.x,o.y()+g.y),a=new _.math.Circle(a,r);i&&(i.destroy(),o.add(_.tool.draw.getShadowCircle(a,o))),s.position({x:g.x,y:g.y}),_.tool.draw.updateCircleQuantification(o,n)},_.tool.draw.CircleFactory.prototype.updateQuantification=function(e,t){_.tool.draw.updateCircleQuantification(e,t)},_.tool.draw.updateCircleQuantification=function(e,t){var n=e.getChildren(function(e){return"shape"===e.name()})[0],i=e.getChildren(function(e){return"label"===e.name()})[0],e=new _.math.Point2D(e.x()+n.x(),e.y()+n.y()),e=new _.math.Circle(e,n.radius()),n=i.getText(),i=e.quantify(t,_.utils.getFlags(n.meta.textExpr));n.setText(_.utils.replaceFlags(n.meta.textExpr,i)),n.meta.quantification=i},_.tool.draw.getShadowCircle=function(e,t){for(var n=0,i=0,r=(void 0!==t&&(n=t.x(),i=t.y()),new y.Group),o=(r.name("shadow"),e.getRound()),a=0;a<o.length;++a){var s=o[a],l=s[0][0],u=s[0][1],s=s[1][0],u=new y.Rect({x:l-n,y:u-i,width:s-l,height:1,fill:"grey",strokeWidth:0,strokeScaleEnabled:!1,opacity:.3,name:"shadow-element"});r.add(u)}return r},_||{}),y=(_.tool=_.tool||{},_.tool.draw=_.tool.draw||{},y||{}),_=(_.tool.draw.debug=!1,_.tool.Draw=function(d){var g=this,r=!1,o=this.shapeFactoryList=null,a=null,s=null,l=(this.shapeName=0,[]),u=null,x=new _.tool.ShapeEditor(d),S=(x.setDrawEventCallback(f),new y.Group),e=new y.Line({points:[-10,-10,10,10],stroke:"red"}),t=new y.Line({points:[10,-10,-10,10],stroke:"red"}),i=(S.width(20),S.height(20),S.add(e),S.add(t),this.style=d.getStyle(),{});function n(e,t){var n=t.getActiveDrawLayer().getKonvaLayer(),t=(s&&(s.destroy(),s=null),t.getActiveViewLayer().getViewController());(s=o.create(e,g.style,t)).getChildren(_.draw.isNodeNameShape)[0].listening(!1),n.listening(!1),n.add(s),n.draw()}function c(e,t){var n=t.getActiveDrawLayer().getKonvaLayer(),i=(s&&(s.destroy(),s=null),t.getActiveViewLayer().getViewController()),r=t.getActiveDrawLayer().getDrawController(),e=o.create(e,g.style,i);e.id(_.math.guid()),r.getCurrentPosGroup().add(e),n.listening(!0),(a=new _.tool.DrawGroupCommand(e,g.shapeName,n)).onExecute=f,a.onUndo=f,a.execute(),d.addToUndoStack(a),g.setShapeOn(e,t)}function m(e){h(!0,e)}function h(e,t){var n=t.getActiveDrawLayer().getDrawController().getCurrentPosGroup().getChildren();e?n.forEach(function(e){g.setShapeOn(e,t)}):n.forEach(function(e){(e=e).off("mouseover"),e.off("mouseout"),e.draggable(!1),e.off("dragstart.draw"),e.off("dragmove.draw"),e.off("dragend.draw"),e.off("dblclick")}),t.getActiveDrawLayer().getKonvaLayer().draw()}function p(e,t){t=t.getActiveDrawLayer().getKonvaStage();return{x:t.offset().x+e.x/t.scale().x,y:t.offset().y+e.y/t.scale().y}}function f(e){if(void 0!==i[e.type])for(var t=0;t<i[e.type].length;++t)i[e.type][t](e)}this.mousedown=function(e){var t,n,i;r||(t=_.gui.getLayerDetailsFromEvent(e),n=(i=(t=d.getLayerGroupByDivId(t.groupDivId)).getActiveDrawLayer().getKonvaStage()).getIntersection({x:e._x,y:e._y}),g.style.setZoomScale(i.scale()),n?(i=n.getParent().find(".shape")[0])&&i!==x.getShape()&&(x.disable(),x.setShape(i),n=t.getActiveViewLayer().getViewController(),x.setViewController(n),x.enable()):(x.disable(),x.setShape(null),x.setViewController(null),r=!0,o=new g.shapeFactoryList[g.shapeName],l=[],i=t.getActiveViewLayer().displayToPlanePos(e._x,e._y),u=new _.math.Point2D(i.x,i.y),l.push(u)))},this.mousemove=function(e){var t;r&&(t=_.gui.getLayerDetailsFromEvent(e),e=(t=d.getLayerGroupByDivId(t.groupDivId)).getActiveViewLayer().displayToPlanePos(e._x,e._y),(0<Math.abs(e.x-u.getX())||0<Math.abs(e.y-u.getY()))&&(1!==l.length&&void 0!==l[l.length-1].tmp&&l.pop(),(u=new _.math.Point2D(e.x,e.y)).tmp=!0,l.push(u),n(l,t)))},this.mouseup=function(e){r&&(0===l.length?_.logger.warn("Draw mouseup but no points..."):l.length===o.getNPoints()?(e=_.gui.getLayerDetailsFromEvent(e),e=d.getLayerGroupByDivId(e.groupDivId),c(l,e),r=!1):void 0!==l[l.length-1].tmp&&delete l[l.length-1].tmp)},this.dblclick=function(e){void 0===o.getNPoints()&&r&&(0===l.length?_.logger.warn("Draw dblclick but no points..."):(e=_.gui.getLayerDetailsFromEvent(e),e=d.getLayerGroupByDivId(e.groupDivId),c(l,e),r=!1))},this.mouseout=function(e){g.mouseup(e)},this.touchstart=function(e){g.mousedown(e)},this.touchmove=function(e){var t;r&&(t=_.gui.getLayerDetailsFromEvent(e),e=(t=d.getLayerGroupByDivId(t.groupDivId)).getActiveViewLayer().displayToPlanePos(e._x,e._y),(0<Math.abs(e.x-u.getX())||0<Math.abs(e.y-u.getY()))&&(1!==l.length&&l.pop(),u=new _.math.Point2D(e.x,e.y),l.push(u),l.length<o.getNPoints()&&(clearTimeout(this.timer),this.timer=setTimeout(function(){l.push(u)},o.getTimeout())),n(l,t)))},this.touchend=function(e){g.dblclick(e)},this.keydown=function(e){var t,n,i;r||(e.context="dwv.tool.Draw",d.onKeydown(e)),46===e.keyCode&&x.isActive()&&(t=(i=x.getShape().getParent()).getLayer(),n=_.tool.GetShapeDisplayName(i.getChildren(_.draw.isNodeNameShape)[0]),(i=new _.tool.DeleteGroupCommand(i,n,t)).onExecute=f,i.onUndo=f,i.execute(),d.addToUndoStack(i)),27===e.keyCode&&null!==s&&(t=s.getLayer(),s.destroy(),s=null,r=!1,l=[],t.draw())},this.activate=function(e){x.disable(),x.setShape(null),x.setViewController(null),document.body.style.cursor="default";var t=d.getActiveLayerGroup();h(e,t),e?(d.addEventListener("positionchange",function(){m(t)}),this.setFeatures({lineColour:this.style.getLineColour()})):d.removeEventListener("positionchange",function(){m(t)})},this.setShapeOn=function(a,s){a.on("mouseover",function(){document.body.style.cursor="pointer"}),a.on("mouseout",function(){document.body.style.cursor="default"});var l=s.getActiveDrawLayer().getKonvaLayer(),o=(a.draggable(!0),{x:a.x(),y:a.y()}),u=_.tool.GetShapeDisplayName(a.getChildren(_.draw.isNodeNameShape)[0]),c=null;a.on("dragstart.draw",function(){c=a.getChildren(_.draw.isNodeNameShape)[0].stroke();var e=s.getActiveDrawLayer().getKonvaStage(),t=e.scale(),n={x:1/t.x,y:1/t.y};S.x(e.offset().x+e.width()/(2*t.x)),S.y(e.offset().y+e.height()/(15*t.y)),S.scale(n),l.add(S),x.setAnchorsActive(!1),l.draw()}),a.on("dragmove.draw",function(e){for(var t,n=s.getActiveDrawLayer(),i=(_.tool.validateGroupPosition(n.getBaseSize(),this),Object.keys(g.shapeFactoryList)),r=0;r<i.length&&!(t=new g.shapeFactoryList[i[r]]).isFactoryGroup(a);++r);if(void 0===t)throw new Error("Cannot find factory to update quantification.");void 0!==t.updateQuantification&&(n=s.getActiveViewLayer().getViewController(),t.updateQuantification(this,n));var n=p(_.gui.getEventOffset(e.evt)[0],s),e=S.width()*S.scaleX()/2,o=S.height()*S.scaleY()/2;Math.abs(n.x-S.x())<e&&Math.abs(n.y-S.y())<o?(S.getChildren().forEach(function(e){e.stroke("orange")}),a.getChildren(_.draw.canNodeChangeColour).forEach(function(e){e.stroke("red")})):(S.getChildren().forEach(function(e){e.stroke("red")}),a.getChildren(_.draw.canNodeChangeColour).forEach(function(e){void 0!==e.stroke&&e.stroke(c)})),l.draw()}),a.on("dragend.draw",function(e){var t=this.x(),n=this.y();S.remove();var e=p(_.gui.getEventOffset(e.evt)[0],s),i=S.width()*S.scaleX()/2,r=S.height()*S.scaleY()/2;Math.abs(e.x-S.x())<i&&Math.abs(e.y-S.y())<r?(this.x(o.x),this.y(o.y),x.disable(),x.setShape(null),x.setViewController(null),a.getChildren(_.draw.canNodeChangeColour).forEach(function(e){e.stroke(c)}),document.body.style.cursor="default",(i=new _.tool.DeleteGroupCommand(this,u,l)).onExecute=f,i.onUndo=f,i.execute(),d.addToUndoStack(i)):(0===(e={x:t-o.x,y:n-o.y}).x&&0===e.y||((r=new _.tool.MoveGroupCommand(this,u,e,l)).onExecute=f,r.onUndo=f,d.addToUndoStack(r),f({type:"drawmove",id:this.id()})),x.setAnchorsActive(!0),x.resetAnchors()),l.draw(),o={x:this.x(),y:this.y()}}),a.on("dblclick",function(){var t=this.findOne("Label");if(void 0===t)throw new Error("Could not find the shape label.");function e(e){i.meta=e,i.setText(_.utils.replaceFlags(i.meta.textExpr,i.meta.quantification)),t.setVisible(0!==i.meta.textExpr.length),f({type:"drawchange"}),l.draw()}var n,i=t.getText();void 0!==_.openRoiDialog?_.openRoiDialog(i.meta,e):null!==(n=_.prompt("Label",i.meta.textExpr))&&(i.meta.textExpr=n,e(i.meta))})},this.setOptions=function(e){this.shapeFactoryList=e,x.setFactoryList(e)},this.getOptionsType=function(){return"factory"},this.setFeatures=function(e){if(void 0!==e.shapeColour&&this.style.setLineColour(e.shapeColour),void 0!==e.shapeName){if(!this.hasShape(e.shapeName))throw new Error("Unknown shape: '"+e.shapeName+"'");this.shapeName=e.shapeName}},this.init=function(){},this.getEventNames=function(){return["drawcreate","drawchange","drawmove","drawdelete"]},this.addEventListener=function(e,t){void 0===i[e]&&(i[e]=[]),i[e].push(t)},this.removeEventListener=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)}},_.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"}}},_.tool.Draw.prototype.hasShape=function(e){return this.shapeFactoryList[e]},_.tool.getAnchorMin=function(e){var t=e.find(".anchor");if(0!==t.length){for(var n=t[0].x(),i=t[0].y(),r=0;r<t.length;++r)n=Math.min(n,t[r].x()),i=Math.min(i,t[r].y());return{x:n,y:i}}},_.tool.boundNodePosition=function(e,t,n){var i=!1;return e.x()<t.x?(e.x(t.x),i=!0):e.x()>n.x&&(e.x(n.x),i=!0),e.y()<t.y?(e.y(t.y),i=!0):e.y()>n.y&&(e.y(n.y),i=!0),i},_.tool.validateGroupPosition=function(e,t){var n=t.getChildren(_.draw.isNodeNameShape)[0],i=_.tool.getAnchorMin(t);if(void 0===i)return null;var r={x:-i.x,y:-i.y},e={x:e.x-(i.x+Math.abs(n.width())),y:e.y-(i.y+Math.abs(n.height()))};return _.tool.boundNodePosition(t,r,e)},_.tool.validateAnchorPosition=function(e,t){var n=t.getParent(),i={x:-n.x(),y:-n.y()},e={x:e.x-n.x(),y:e.y-n.y()};return _.tool.boundNodePosition(t,i,e)},_||{}),y=(_.tool=_.tool||{},y||{}),_=(_.tool.GetShapeDisplayName=function(e){var t="shape";return e instanceof y.Line?t=4===e.points().length?"line":6===e.points().length?"protractor":"roi":e instanceof y.Rect?t="rectangle":e instanceof y.Ellipse&&(t="ellipse"),t},_.tool.DrawGroupCommand=function(e,t,n,i){var r=void 0!==i&&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()})}},_.tool.DrawGroupCommand.prototype.onExecute=function(e){},_.tool.DrawGroupCommand.prototype.onUndo=function(e){},_.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()})}},_.tool.MoveGroupCommand.prototype.onExecute=function(e){},_.tool.MoveGroupCommand.prototype.onUndo=function(e){},_.tool.ChangeGroupCommand=function(e,t,n,i,r,o,a){this.getName=function(){return"Change-"+e},this.execute=function(){t(i,a,o),r.draw(),this.onExecute({type:"drawchange"})},this.undo=function(){t(n,a,o),r.draw(),this.onUndo({type:"drawchange"})}},_.tool.ChangeGroupCommand.prototype.onExecute=function(e){},_.tool.ChangeGroupCommand.prototype.onUndo=function(e){},_.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()})}},_.tool.DeleteGroupCommand.prototype.onExecute=function(e){},_.tool.DeleteGroupCommand.prototype.onUndo=function(e){},_||{}),y=(_.tool=_.tool||{},_.tool.draw=_.tool.draw||{},y||{}),_=(_.tool.draw.getDefaultAnchor=function(e,t,n,i){return new y.Ellipse({x:e,y:t,stroke:"#999",fill:"rgba(100,100,100,0.7",strokeWidth:i.getStrokeWidth(),strokeScaleEnabled:!1,radius:i.applyZoomScale(3),name:"anchor",id:n,dragOnTop:!1,draggable:!0,visible:!1})},_.tool.ShapeEditor=function(o){var a=null,s=null,l=null,u=null,e=!1,c=null;function n(e){l&&l.getParent()&&l.getParent().find(".anchor").forEach(e)}function t(t){n(function(e){e.visible(t)})}function d(){n(function(e){e.remove()})}function g(){if(l&&l.getLayer())for(var e=l.getParent(),t=s.getAnchors(l,o.getStyle()),n=0;n<t.length;++n)i(t[n]),e.add(t[n])}function x(e){var t=e.getParent(),n=e.id(),i=e.x(),r=e.y(),e={getParent:function(){return t},id:function(){return n},x:function(){return i},y:function(){return r}};return e}function i(e){var i=null,r=_.tool.GetShapeDisplayName(l);e.on("dragstart.edit",function(e){i=x(this),e.cancelBubble=!0}),e.on("dragmove.edit",function(e){var t=_.gui.getLayerDetailsFromEvent(e.evt),t=o.getLayerGroupByDivId(t.groupDivId).getActiveDrawLayer();_.tool.validateAnchorPosition(t.getBaseSize(),this),s.update(this,o.getStyle(),u),this.getLayer()?this.getLayer().draw():_.logger.warn("No layer to draw the anchor!"),e.cancelBubble=!0}),e.on("dragend.edit",function(e){var t=x(this),n=new _.tool.ChangeGroupCommand(r,s.update,i,t,this.getLayer(),u,o.getStyle());n.onExecute=c,n.onUndo=c,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():_.logger.warn("No layer to draw the anchor!")}),e.on("mouseout.edit",function(){this.stroke("#999"),this.getLayer()?this.getLayer().draw():_.logger.warn("No layer to draw the anchor!")})}this.setFactoryList=function(e){a=e},this.setShape=function(e){if(l=e){d();var t=l.getParent(),n=Object.keys(a);s=null;for(var i=0;i<n.length;++i){var r=new a[n[i]];if(r.isFactoryGroup(t)){s=r;break}}if(null===s)throw new Error("Could not find a factory to update shape.");g()}},this.setViewController=function(e){u=e},this.getShape=function(){return l},this.isActive=function(){return e},this.setDrawEventCallback=function(e){c=e},this.enable=function(){e=!0,l&&(t(!0),l.getLayer()&&l.getLayer().draw())},this.disable=function(){e=!1,l&&(t(!1),l.getLayer()&&l.getLayer().draw())},this.resetAnchors=function(){d(),g(),t(!0)},this.setAnchorsActive=function(e){n(e?function(e){i(e)}:function(e){(e=e).off("dragstart.edit"),e.off("dragmove.edit"),e.off("dragend.edit"),e.off("mousedown touchstart"),e.off("mouseover.edit"),e.off("mouseout.edit")})}},_||{}),y=(_.tool=_.tool||{},_.tool.draw=_.tool.draw||{},y||{}),_=(_.tool.draw.defaultEllipseLabelText="{surface}",_.tool.draw.EllipseFactory=function(){this.getGroupName=function(){return"ellipse-group"},this.getNPoints=function(){return 2},this.getTimeout=function(){return 0}},_.tool.draw.EllipseFactory.prototype.isFactoryGroup=function(e){return this.getGroupName()===e.name()},_.tool.draw.EllipseFactory.prototype.create=function(e,t,n){var i,r=Math.abs(e[0].getX()-e[1].getX()),o=Math.abs(e[0].getY()-e[1].getY()),e=new _.math.Ellipse(e[0],r,o),r=new y.Ellipse({x:e.getCenter().getX(),y:e.getCenter().getY(),radius:{x:e.getA(),y:e.getB()},stroke:t.getLineColour(),strokeWidth:t.getStrokeWidth(),strokeScaleEnabled:!1,name:"shape"}),o=new y.Text({fontSize:t.getFontSize(),fontFamily:t.getFontFamily(),fill:t.getLineColour(),padding:t.getTextPadding(),shadowColor:t.getShadowLineColour(),shadowOffset:t.getShadowOffset(),name:"text"}),a="",a=void 0!==_.tool.draw.ellipseLabelText?_.tool.draw.ellipseLabelText:_.tool.draw.defaultEllipseLabelText,n=e.quantify(n,_.utils.getFlags(a)),n=(o.setText(_.utils.replaceFlags(a,n)),o.meta={textExpr:a,quantification:n},new y.Label({x:e.getCenter().getX(),y:e.getCenter().getY(),scale:t.applyZoomScale(1),visible:0!==a.length,name:"label"})),a=(n.add(o),n.add(new y.Tag({fill:t.getLineColour(),opacity:t.getTagOpacity()})),_.tool.draw.debug&&(i=_.tool.draw.getShadowEllipse(e)),new y.Group);return a.name(this.getGroupName()),i&&a.add(i),a.add(n),a.add(r),a.visible(!0),a},_.tool.draw.EllipseFactory.prototype.getAnchors=function(e,t){var n=e.x(),i=e.y(),e=e.radius(),r=[];return r.push(_.tool.draw.getDefaultAnchor(n-e.x,i-e.y,"topLeft",t)),r.push(_.tool.draw.getDefaultAnchor(n+e.x,i-e.y,"topRight",t)),r.push(_.tool.draw.getDefaultAnchor(n+e.x,i+e.y,"bottomRight",t)),r.push(_.tool.draw.getDefaultAnchor(n-e.x,i+e.y,"bottomLeft",t)),r},_.tool.draw.EllipseFactory.prototype.update=function(e,t,n){var i,r=e.getParent(),o=r.getChildren(function(e){return"shape"===e.name()})[0],a=r.getChildren(function(e){return"label"===e.name()})[0],s=r.getChildren(function(e){return"topLeft"===e.id()})[0],l=r.getChildren(function(e){return"topRight"===e.id()})[0],u=r.getChildren(function(e){return"bottomRight"===e.id()})[0],c=r.getChildren(function(e){return"bottomLeft"===e.id()})[0];switch(_.tool.draw.debug&&(i=r.getChildren(function(e){return"shadow"===e.name()})[0]),e.id()){case"topLeft":s.x(e.x()),s.y(e.y()),l.y(e.y()),c.x(e.x());break;case"topRight":l.x(e.x()),l.y(e.y()),s.y(e.y()),u.x(e.x());break;case"bottomRight":u.x(e.x()),u.y(e.y()),c.y(e.y()),l.x(e.x());break;case"bottomLeft":c.x(e.x()),c.y(e.y()),u.y(e.y()),s.x(e.x());break;default:_.logger.error("Unhandled anchor id: "+e.id())}var d=(l.x()-s.x())/2,g=(u.y()-l.y())/2,x={x:s.x()+d,y:l.y()+g},d=(o.position(x),{x:Math.abs(d),y:Math.abs(g)}),g=(o.radius(d),new _.math.Point2D(r.x()+x.x,r.y()+x.y)),o=new _.math.Ellipse(g,d.x,d.y);i&&(i.destroy(),r.add(_.tool.draw.getShadowEllipse(o,r))),a.position({x:x.x,y:x.y}),_.tool.draw.updateEllipseQuantification(r,n)},_.tool.draw.EllipseFactory.prototype.updateQuantification=function(e,t){_.tool.draw.updateEllipseQuantification(e,t)},_.tool.draw.updateEllipseQuantification=function(e,t){var n=e.getChildren(function(e){return"shape"===e.name()})[0],i=e.getChildren(function(e){return"label"===e.name()})[0],e=new _.math.Point2D(e.x()+n.x(),e.y()+n.y()),e=new _.math.Ellipse(e,n.radius().x,n.radius().y),n=i.getText(),i=e.quantify(t,_.utils.getFlags(n.meta.textExpr));n.setText(_.utils.replaceFlags(n.meta.textExpr,i)),n.meta.quantification=i},_.tool.draw.getShadowEllipse=function(e,t){for(var n=0,i=0,r=(void 0!==t&&(n=t.x(),i=t.y()),new y.Group),o=(r.name("shadow"),e.getRound()),a=0;a<o.length;++a){var s=o[a],l=s[0][0],u=s[0][1],s=s[1][0],u=new y.Rect({x:l-n,y:u-i,width:s-l,height:1,fill:"grey",strokeWidth:0,strokeScaleEnabled:!1,opacity:.3,name:"shadow-element"});r.add(u)}return r},_||{}),_=(_.tool=_.tool||{},_.tool.filter=_.tool.filter||{},_.tool.Filter=function(n){this.filterList=null,this.selectedFilter=0;var i=new _.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.getOptionsType=function(){return"instance"},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.getEventNames=function(){return["filterrun","filterundo"]},this.addEventListener=function(e,t){i.add(e,t)},this.removeEventListener=function(e,t){i.remove(e,t)}},_.tool.Filter.prototype.getHelpKeys=function(){return{title:"tool.Filter.name",brief:"tool.Filter.brief"}},_.tool.Filter.prototype.getSelectedFilter=function(){return this.selectedFilter},_.tool.Filter.prototype.setFeatures=function(e){if(void 0!==e.filterName){if(!this.hasFilter(e.filterName))throw new Error("Unknown filter: '"+e.filterName+"'");this.selectedFilter&&this.selectedFilter.activate(!1),this.selectedFilter=this.filterList[e.filterName],this.selectedFilter.activate(!0)}var t;void 0!==e.run&&e.run&&(t={},void 0!==e.runArgs&&(t=e.runArgs),this.getSelectedFilter().run(t))},_.tool.Filter.prototype.getFilterList=function(){return this.filterList},_.tool.Filter.prototype.hasFilter=function(e){return this.filterList[e]},_.tool.filter.Threshold=function(t){var n=new _.image.filter.Threshold,i=!0,r=new _.utils.ListenerHandler;function o(e){r.fireEvent(e)}this.activate=function(e){e&&(i=!0)},this.init=function(){},this.run=function(e){n.setMin(e.min),n.setMax(e.max),i&&(n.setOriginalImage(t.getLastImage()),i=!1);e=new _.tool.RunFilterCommand(n,t);e.onExecute=o,e.onUndo=o,e.execute(),t.addToUndoStack(e)},this.addEventListener=function(e,t){r.add(e,t)},this.removeEventListener=function(e,t){r.remove(e,t)}},_.tool.filter.Sharpen=function(n){var i=new _.utils.ListenerHandler;function r(e){i.fireEvent(e)}this.activate=function(e){},this.init=function(){},this.run=function(e){var t=new _.image.filter.Sharpen,t=(t.setOriginalImage(n.getLastImage()),new _.tool.RunFilterCommand(t,n));t.onExecute=r,t.onUndo=r,t.execute(),n.addToUndoStack(t)},this.addEventListener=function(e,t){i.add(e,t)},this.removeEventListener=function(e,t){i.remove(e,t)}},_.tool.filter.Sobel=function(n){var i=new _.utils.ListenerHandler;function r(e){i.fireEvent(e)}this.activate=function(e){},this.init=function(){},_.tool.filter.Sobel.prototype.run=function(e){var t=new _.image.filter.Sobel,t=(t.setOriginalImage(n.getLastImage()),new _.tool.RunFilterCommand(t,n));t.onExecute=r,t.onUndo=r,t.execute(),n.addToUndoStack(t)},this.addEventListener=function(e,t){i.add(e,t)},this.removeEventListener=function(e,t){i.remove(e,t)}},_.tool.RunFilterCommand=function(t,n){this.getName=function(){return"Filter-"+t.getName()},this.execute=function(){n.setLastImage(t.update()),n.render(0);var e={type:"filterrun",id:this.getName()};this.onExecute(e)},this.undo=function(){n.setLastImage(t.getOriginalImage()),n.render(0);var e={type:"filterundo",id:this.getName()};this.onUndo(e)}},_.tool.RunFilterCommand.prototype.onExecute=function(e){},_.tool.RunFilterCommand.prototype.onUndo=function(e){},_||{}),v=(_.tool=_.tool||{},v||{}),_=(_.tool.Floodfill=function(r){function o(e){var t=_.gui.getLayerDetailsFromEvent(e);return{x:(t=r.getLayerGroupByDivId(t.groupDivId).getActiveViewLayer().displayToPlaneIndex(e._x,e._y)).get(0),y:t.get(1)}}function d(e,t,n){return!!(h=y(e,t))&&(e=new _.tool.draw.RoiFactory,(m=e.create(h,a.style)).id(_.math.guid()),(t=n.getActiveDrawLayer()).getDrawController().getCurrentPosGroup().add(m),(i=new _.tool.DrawGroupCommand(m,"floodfill",t.getKonvaLayer())).onExecute=D,i.onUndo=D,i.execute(),r.addToUndoStack(i),!0)}var g,e,s=5,l=0,u=2e3,c=null,x=null,S=null,a=this,i=(this.started=!1,null),m=null,h=null,p=[],n=!1,f=(this.style=new _.gui.Style,new _.utils.ListenerHandler),y=(this.setExtend=function(e){n=e},this.getExtend=function(){return n},function(e,t,n){p=[];var i={data:c.data,width:c.width,height:c.height,bytes:4},r=(x=v.floodFill(i,e.x,e.y,t),x=v.gaussBlurOnlyBorder(x,s),v.traceContours(x));if(0<(r=v.simplifyContours(r,l,u)).length&&r[0].points[0].x){if(n)return r[0].points;for(var o=0,a=r[0].points.length;o<a;o++)p.push(new _.math.Point2D(r[0].points[o].x,r[0].points[o].y));return p}return!1});function D(e){f.fireEvent(e)}this.extend=function(e,t,n){if(!g)throw"'initialpoint' not found. User must click before use extend!";m&&m.destroy();for(var i=n.getActiveViewLayer().getViewController(),r=i.getCurrentIndex(),o=i.getImageSize(),a=S||10,s=r.get(2),l=t||o.get(2);s<l&&d(g,a,n);s++)i.incrementIndex(2);i.setCurrentPosition(r);for(var u=r.get(2),c=e||0;c<u&&d(g,a,n);u--)i.decrementIndex(2);i.setCurrentPosition(r)},this.modifyThreshold=function(i,r){if(r||!m)throw"No shape found";r=m.getChildren(function(e){return"shape"===e.name()})[0],clearTimeout(e),e=setTimeout(function(){if(!(h=y(g,i,!0)))return!1;for(var e=[],t=0,n=h.length;t<n;++t)e.push(h[t].x),e.push(h[t].y);r.setPoints(e),r.getLayer().draw(),a.onThresholdChange(i)},100)},this.onThresholdChange=function(e){},this.mousedown=function(e){var t=_.gui.getLayerDetailsFromEvent(e),t=r.getLayerGroupByDivId(t.groupDivId),n=t.getActiveViewLayer(),i=t.getActiveDrawLayer();(c=n.getImageData())?(a.style.setZoomScale(i.getKonvaLayer().getAbsoluteScale()),a.started=!0,g=o(e),d(g,10,t),a.onThresholdChange(10)):_.logger.error("No image found")},this.mousemove=function(e){a.started&&(e=o(e),S=(S=Math.round(Math.sqrt(Math.pow(g.x-e.x,2)+Math.pow(g.y-e.y,2))/2))<10?10:S-10,a.modifyThreshold(S))},this.mouseup=function(e){var t;a.started=!1,n&&(t=_.gui.getLayerDetailsFromEvent(event),t=r.getLayerGroupByDivId(t.groupDivId),a.extend(t))},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.keydown=function(e){e.context="dwv.tool.Floodfill",r.onKeydown(e)},this.activate=function(e){e&&(this.style.setBaseScale(r.getBaseScale()),this.setFeatures({shapeColour:this.style.getLineColour()}))},this.init=function(){},this.getEventNames=function(){return["drawcreate","drawchange","drawmove","drawdelete"]},this.addEventListener=function(e,t){f.add(e,t)},this.removeEventListener=function(e,t){f.remove(e,t)}},_.tool.Floodfill.prototype.getHelpKeys=function(){return{title:"tool.Floodfill.name",brief:"tool.Floodfill.brief",mouse:{click:"tool.Floodfill.click"},touch:{tap:"tool.Floodfill.tap"}}},_.tool.Floodfill.prototype.setFeatures=function(e){void 0!==e.shapeColour&&this.style.setLineColour(e.shapeColour)},_||{}),y=(_.tool=_.tool||{},_.tool.draw=_.tool.draw||{},y||{});_.tool.draw.defaultFreeHandLabelText="",_.tool.draw.FreeHandFactory=function(){this.getGroupName=function(){return"freeHand-group"},this.getNPoints=function(){},this.getTimeout=function(){return 25}},_.tool.draw.FreeHandFactory.prototype.isFactoryGroup=function(e){return this.getGroupName()===e.name()},_.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 y.Line({points:i,stroke:t.getLineColour(),strokeWidth:t.getStrokeWidth(),strokeScaleEnabled:!1,name:"shape",tension:.5}),a=new y.Text({fontSize:t.getFontSize(),fontFamily:t.getFontFamily(),fill:t.getLineColour(),name:"text"}),s="",s=void 0!==_.tool.draw.freeHandLabelText?_.tool.draw.freeHandLabelText:_.tool.draw.defaultFreeHandLabelText,s=(a.setText(s),a.meta={textExpr:s,quantification:{}},new y.Label({x:e[0].getX(),y:e[0].getY()+t.scale(10),scale:t.applyZoomScale(1),visible:0!==s.length,name:"label"})),a=(s.add(a),s.add(new y.Tag({fill:t.getLineColour(),opacity:t.getTagOpacity()})),new y.Group);return a.name(this.getGroupName()),a.add(s),a.add(o),a.visible(!0),a},_.tool.draw.FreeHandFactory.prototype.getAnchors=function(e,t){for(var n=e.points(),i=[],r=0;r<n.length;r+=2){var o=n[r]+e.x(),a=n[r+1]+e.y(),s=r;i.push(_.tool.draw.getDefaultAnchor(o,a,s,t))}return i},_.tool.draw.FreeHandFactory.prototype.update=function(t,e,n){var i=t.getParent(),r=i.getChildren(function(e){return"shape"===e.name()})[0],o=i.getChildren(function(e){return"label"===e.name()})[0],i=i.getChildren(function(e){return e.id()===t.id()})[0],i=(i.x(t.x()),i.y(t.y()),r.points()),a=(i[t.id()]=t.x()-r.x(),i[t.id()+1]=t.y()-r.y(),r.points(i.concat()),o.getText()),a=(a.setText(a.meta.textExpr),{x:i[0]+r.x(),y:i[1]+r.y()+e.scale(10)});o.position(a)};var _,_}(_=_||{}).tool=_.tool||{},_.tool.Livewire=function(l){var u=this,c=(this.started=!1,null),d=null,g=(this.style=new _.gui.Style,new _.math.Path),x=new _.math.Path,S=[],n=new _.utils.ListenerHandler;function r(e){for(var t=e.get(1),n=0;n<t;++n)S[n]=[]}var m=new _.math.Scissors;function o(e){n.fireEvent(e)}this.mousedown=function(e){var t=_.gui.getLayerDetailsFromEvent(e),t=l.getLayerGroupByDivId(t.groupDivId),n=t.getActiveViewLayer(),i=n.getViewController().getImageSize(),n=n.displayToPlaneIndex(e._x,e._y);u.started?Math.abs(n.get(0)-u.x0)<5&&Math.abs(n.get(1)-u.y0)<5?(u.mousemove(e),c.onExecute=o,c.onUndo=o,_.logger.debug("[livewire] finialise path."),l.addToUndoStack(c),u.started=!1):(g=x,r(i),e={x:n.get(0),y:n.get(1)},m.doTraining(e),g.addControlPoint(x.getPoint(0))):(u.started=!0,u.x0=n.get(0),u.y0=n.get(1),g=new _.math.Path,x=new _.math.Path,r(i),d=null,e=t.getActiveDrawLayer(),u.style.setZoomScale(e.getKonvaLayer().getAbsoluteScale()),i={x:n.get(0),y:n.get(1)},m.doTraining(i),t=new _.math.Point2D(n.get(0),n.get(1)),g.addPoint(t),g.addControlPoint(t))},this.mousemove=function(e){if(u.started){var t,n=_.gui.getLayerDetailsFromEvent(e),n=l.getLayerGroupByDivId(n.groupDivId),e=n.getActiveViewLayer().displayToPlaneIndex(e._x,e._y),i={x:e.get(0),y:e.get(1)},r=(m.setPoint(i),!1);for(_.logger.debug("[livewire] getting ready...");!S[i.y][i.x]&&!r;)if(0===(t=m.doWork()).length)r=!0;else for(var o=0;o<t.length-1;o+=2){var a=t[o],s=t[o+1];S[a.y][a.x]=s}for(_.logger.debug("[livewire] ready!"),x=new _.math.Path,r=!1;i&&!r;)x.addPoint(new _.math.Point2D(i.x,i.y)),S[i.y]&&S[i.y][i.x]?i=S[i.y][i.x]:r=!0;x.appenPath(g),d&&d.destroy();e=new _.tool.draw.RoiFactory,e=((d=e.create(x.pointArray,u.style)).id(_.math.guid()),n.getActiveDrawLayer());e.getDrawController().getCurrentPosGroup().add(d),(c=new _.tool.DrawGroupCommand(d,"livewire",e.getKonvaLayer())).execute()}},this.mouseup=function(e){},this.mouseout=function(e){u.mouseup(e)},this.dblclick=function(e){_.logger.debug("[livewire] 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=(e=l.getActiveLayerGroup().getActiveViewLayer()).getViewController().getImageSize(),m.setDimensions(t.get(0),t.get(1)),m.setData(e.getImageData().data),this.style.setBaseScale(l.getBaseScale()),this.setFeatures({shapeColour:this.style.getLineColour()}))},this.init=function(){},this.getEventNames=function(){return["drawcreate","drawchange","drawmove","drawdelete"]},this.addEventListener=function(e,t){n.add(e,t)},this.removeEventListener=function(e,t){n.remove(e,t)}},_.tool.Livewire.prototype.getHelpKeys=function(){return{title:"tool.Livewire.name",brief:"tool.Livewire.brief"}},_.tool.Livewire.prototype.setFeatures=function(e){void 0!==e.shapeColour&&this.style.setLineColour(e.shapeColour)},(_=_||{}).tool=_.tool||{},_.tool.Opacity=function(r){var o=this;this.started=!1,this.mousedown=function(e){o.started=!0,o.x0=e._x,o.y0=e._y},this.mousemove=function(e){var t,n,i;o.started&&(t=e._x-o.x0,15<Math.abs(t)&&(n=_.gui.getLayerDetailsFromEvent(e),i=(n=r.getLayerGroupByDivId(n.groupDivId).getActiveViewLayer()).getOpacity(),n.setOpacity(i+t/200),n.draw(),o.x0=e._x))},this.mouseup=function(e){o.started&&(o.started=!1)},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.Opacity",r.onKeydown(e)},this.activate=function(e){},this.init=function(){}},_.tool.Opacity.prototype.getHelpKeys=function(){return{title:"tool.Opacity.name",brief:"tool.Opacity.brief",mouse:{mouse_drag:"tool.Opacity.mouse_drag"},touch:{touch_drag:"tool.Opacity.touch_drag"}}};var _,y=((_=_||{}).tool=_.tool||{},_.tool.draw=_.tool.draw||{},y||{});_.tool.draw.defaultProtractorLabelText="{angle}",_.tool.draw.ProtractorFactory=function(){this.getGroupName=function(){return"protractor-group"},this.getNPoints=function(){return 3},this.getTimeout=function(){return 500}},_.tool.draw.ProtractorFactory.prototype.isFactoryGroup=function(e){return this.getGroupName()===e.name()},_.tool.draw.ProtractorFactory.prototype.create=function(t,e,n){for(var i=new _.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,d,g,x=new y.Line({points:r,stroke:e.getLineColour(),strokeWidth:e.getStrokeWidth(),strokeScaleEnabled:!1,name:"shape"}),S=new y.Group;return S.name(this.getGroupName()),3===t.length&&(a=new _.math.Line(t[1],t[2]),x.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=_.math.getAngle(i,a),l=i.getInclination(),180<s&&(l+=s=360-s),u=new y.Text({fontSize:e.getFontSize(),fontFamily:e.getFontFamily(),fill:e.getLineColour(),padding:e.getTextPadding(),shadowColor:e.getShadowLineColour(),shadowOffset:e.getShadowOffset(),name:"text"}),g="",g=void 0!==_.tool.draw.protractorLabelText?_.tool.draw.protractorLabelText:_.tool.draw.defaultProtractorLabelText,c={angle:{value:s,unit:_.i18n("unit.degree")}},u.setText(_.utils.replaceFlags(g,c)),u.meta={textExpr:g,quantification:c},c=(i.getMidpoint().getX()+a.getMidpoint().getX())/2,d=(i.getMidpoint().getY()+a.getMidpoint().getY())/2,(c=new y.Label({x:c,y:d-e.applyZoomScale(15).y,scale:e.applyZoomScale(1),visible:0!==g.length,name:"label"})).add(u),c.add(new y.Tag({fill:e.getLineColour(),opacity:e.getTagOpacity()})),d=33*Math.min(i.getLength(),a.getLength())/100,g=new y.Arc({innerRadius:d,outerRadius:d,stroke:e.getLineColour(),strokeWidth:e.getStrokeWidth(),strokeScaleEnabled:!1,angle:s,rotation:-l,x:t[1].getX(),y:t[1].getY(),name:"shape-arc"}),S.add(c),S.add(g)),S.add(x),S.visible(!0),S},_.tool.draw.ProtractorFactory.prototype.getAnchors=function(e,t){var n=e.points(),i=[];return i.push(_.tool.draw.getDefaultAnchor(n[0]+e.x(),n[1]+e.y(),"begin",t)),i.push(_.tool.draw.getDefaultAnchor(n[2]+e.x(),n[3]+e.y(),"mid",t)),i.push(_.tool.draw.getDefaultAnchor(n[4]+e.x(),n[5]+e.y(),"end",t)),i},_.tool.draw.ProtractorFactory.prototype.update=function(e,t,n){var i=e.getParent(),r=i.getChildren(function(e){return"shape"===e.name()})[0],o=i.getChildren(function(e){return"label"===e.name()})[0],a=i.getChildren(function(e){return"shape-arc"===e.name()})[0],s=i.getChildren(function(e){return"begin"===e.id()})[0],l=i.getChildren(function(e){return"mid"===e.id()})[0],u=i.getChildren(function(e){return"end"===e.id()})[0];switch(e.id()){case"begin":s.x(e.x()),s.y(e.y());break;case"mid":l.x(e.x()),l.y(e.y());break;case"end":u.x(e.x()),u.y(e.y())}var c=s.x()-r.x(),d=s.y()-r.y(),g=l.x()-r.x(),x=l.y()-r.y(),S=u.x()-r.x(),m=u.y()-r.y(),i=(r.points([c,d,g,x,S,m]),r.hitFunc(function(e){e.beginPath(),e.moveTo(c,d),e.lineTo(g,x),e.lineTo(S,m),e.closePath(),e.fillStrokeShape(this)}),new _.math.Point2D(s.x(),s.y())),r=new _.math.Point2D(l.x(),l.y()),h=new _.math.Point2D(u.x(),u.y()),i=new _.math.Line(i,r),r=new _.math.Line(r,h),h=_.math.getAngle(i,r),p=i.getInclination(),f=(180<h&&(p+=h=360-h),o.getText()),y={angle:{value:h,unit:_.i18n("unit.degree")}};f.setText(_.utils.replaceFlags(f.meta.textExpr,y)),f.meta.quantification=y;f={x:(i.getMidpoint().getX()+r.getMidpoint().getX())/2,y:(i.getMidpoint().getY()+r.getMidpoint().getY())/2-t.applyZoomScale(15).y},o.position(f),y=33*Math.min(i.getLength(),r.getLength())/100,a.innerRadius(y),a.outerRadius(y),a.angle(h),a.rotation(-p),t={x:l.x(),y:l.y()};a.position(t)};var _,y=((_=_||{}).tool=_.tool||{},_.tool.draw=_.tool.draw||{},y||{});_.tool.draw.defaultRectangleLabelText="{surface}",_.tool.draw.RectangleFactory=function(){this.getGroupName=function(){return"rectangle-group"},this.getNPoints=function(){return 2},this.getTimeout=function(){return 0}},_.tool.draw.RectangleFactory.prototype.isFactoryGroup=function(e){return this.getGroupName()===e.name()},_.tool.draw.RectangleFactory.prototype.create=function(e,t,n){var i,e=new _.math.Rectangle(e[0],e[1]),r=new y.Rect({x:e.getBegin().getX(),y:e.getBegin().getY(),width:e.getWidth(),height:e.getHeight(),stroke:t.getLineColour(),strokeWidth:t.getStrokeWidth(),strokeScaleEnabled:!1,name:"shape"}),o=new y.Text({fontSize:t.getFontSize(),fontFamily:t.getFontFamily(),fill:t.getLineColour(),padding:t.getTextPadding(),shadowColor:t.getShadowLineColour(),shadowOffset:t.getShadowOffset(),name:"text"}),a="",a=void 0!==_.tool.draw.rectangleLabelText?_.tool.draw.rectangleLabelText:_.tool.draw.defaultRectangleLabelText,n=e.quantify(n,_.utils.getFlags(a)),n=(o.setText(_.utils.replaceFlags(a,n)),o.meta={textExpr:a,quantification:n},new y.Label({x:e.getBegin().getX(),y:e.getEnd().getY(),scale:t.applyZoomScale(1),visible:0!==a.length,name:"label"})),a=(n.add(o),n.add(new y.Tag({fill:t.getLineColour(),opacity:t.getTagOpacity()})),_.tool.draw.debug&&(i=_.tool.draw.getShadowRectangle(e)),new y.Group);return a.name(this.getGroupName()),i&&a.add(i),a.add(n),a.add(r),a.visible(!0),a},_.tool.draw.RectangleFactory.prototype.getAnchors=function(e,t){var n=e.x(),i=e.y(),r=e.width(),e=e.height(),o=[];return o.push(_.tool.draw.getDefaultAnchor(n,i,"topLeft",t)),o.push(_.tool.draw.getDefaultAnchor(n+r,i,"topRight",t)),o.push(_.tool.draw.getDefaultAnchor(n+r,i+e,"bottomRight",t)),o.push(_.tool.draw.getDefaultAnchor(n,i+e,"bottomLeft",t)),o},_.tool.draw.RectangleFactory.prototype.update=function(e,t,n){var i,r=e.getParent(),o=r.getChildren(function(e){return"shape"===e.name()})[0],a=r.getChildren(function(e){return"label"===e.name()})[0],s=r.getChildren(function(e){return"topLeft"===e.id()})[0],l=r.getChildren(function(e){return"topRight"===e.id()})[0],u=r.getChildren(function(e){return"bottomRight"===e.id()})[0],c=r.getChildren(function(e){return"bottomLeft"===e.id()})[0];switch(_.tool.draw.debug&&(i=r.getChildren(function(e){return"shadow"===e.name()})[0]),e.id()){case"topLeft":s.x(e.x()),s.y(e.y()),l.y(e.y()),c.x(e.x());break;case"topRight":l.x(e.x()),l.y(e.y()),s.y(e.y()),u.x(e.x());break;case"bottomRight":u.x(e.x()),u.y(e.y()),c.y(e.y()),l.x(e.x());break;case"bottomLeft":c.x(e.x()),c.y(e.y()),u.y(e.y()),s.x(e.x());break;default:_.logger.error("Unhandled anchor id: "+e.id())}o.position(s.position());var d,g=l.x()-s.x(),x=c.y()-s.y(),o=(g&&x&&o.size({width:g,height:x}),new _.math.Point2D(r.x()+s.x(),r.y()+s.y())),g=new _.math.Point2D(r.x()+u.x(),r.y()+u.y()),x=new _.math.Rectangle(o,g),o=(i&&(g=(o=x.getRound()).max.getX()-o.min.getX(),d=o.max.getY()-o.min.getY(),i.position({x:o.min.getX()-r.x(),y:o.min.getY()-r.y()}),i.size({width:g,height:d})),{x:x.getBegin().getX()-r.x(),y:x.getEnd().getY()-r.y()});a.position(o),_.tool.draw.updateRectangleQuantification(r,n)},_.tool.draw.RectangleFactory.prototype.updateQuantification=function(e,t){_.tool.draw.updateRectangleQuantification(e,t)},_.tool.draw.updateRectangleQuantification=function(e,t){var n=e.getChildren(function(e){return"shape"===e.name()})[0],i=e.getChildren(function(e){return"label"===e.name()})[0],e=new _.math.Point2D(e.x()+n.x(),e.y()+n.y()),n=new _.math.Point2D(e.getX()+n.width(),e.getY()+n.height()),e=new _.math.Rectangle(e,n),n=i.getText(),i=e.quantify(t,_.utils.getFlags(n.meta.textExpr));n.setText(_.utils.replaceFlags(n.meta.textExpr,i)),n.meta.quantification=i},_.tool.draw.getShadowRectangle=function(e){var e=e.getRound(),t=e.max.getX()-e.min.getX(),n=e.max.getY()-e.min.getY();return new y.Rect({x:e.min.getX(),y:e.min.getY(),width:t,height:n,fill:"grey",strokeWidth:0,strokeScaleEnabled:!1,opacity:.3,name:"shadow"})};var _,y=((_=_||{}).tool=_.tool||{},_.tool.draw=_.tool.draw||{},y||{});_.tool.draw.defaultRoiLabelText="",_.tool.draw.RoiFactory=function(){this.getGroupName=function(){return"roi-group"},this.getNPoints=function(){},this.getTimeout=function(){return 100}},_.tool.draw.RoiFactory.prototype.isFactoryGroup=function(e){return this.getGroupName()===e.name()},_.tool.draw.RoiFactory.prototype.create=function(e,t,n){for(var i=new _.math.ROI,r=(i.addPoints(e),[]),o=0;o<i.getLength();++o)r.push(i.getPoint(o).getX()),r.push(i.getPoint(o).getY());var e=new y.Line({points:r,stroke:t.getLineColour(),strokeWidth:t.getStrokeWidth(),strokeScaleEnabled:!1,name:"shape",closed:!0}),a=new y.Text({fontSize:t.getFontSize(),fontFamily:t.getFontFamily(),fill:t.getLineColour(),name:"text"}),s="",s=void 0!==_.tool.draw.roiLabelText?_.tool.draw.roiLabelText:_.tool.draw.defaultRoiLabelText,s=(a.setText(s),a.meta={textExpr:s,quantification:{}},new y.Label({x:i.getPoint(0).getX(),y:i.getPoint(0).getY()+t.scale(10),scale:t.applyZoomScale(1),visible:0!==s.length,name:"label"})),a=(s.add(a),s.add(new y.Tag({fill:t.getLineColour(),opacity:t.getTagOpacity()})),new y.Group);return a.name(this.getGroupName()),a.add(s),a.add(e),a.visible(!0),a},_.tool.draw.RoiFactory.prototype.getAnchors=function(e,t){for(var n=e.points(),i=[],r=0;r<n.length;r+=2){var o=n[r]+e.x(),a=n[r+1]+e.y(),s=r;i.push(_.tool.draw.getDefaultAnchor(o,a,s,t))}return i},_.tool.draw.RoiFactory.prototype.update=function(t,e,n){var i=t.getParent(),r=i.getChildren(function(e){return"shape"===e.name()})[0],o=i.getChildren(function(e){return"label"===e.name()})[0],i=i.getChildren(function(e){return e.id()===t.id()})[0],i=(i.x(t.x()),i.y(t.y()),r.points()),a=(i[t.id()]=t.x()-r.x(),i[t.id()+1]=t.y()-r.y(),r.points(i),o.getText()),a=(a.setText(a.meta.textExpr),{x:i[0]+r.x(),y:i[1]+r.y()+e.scale(10)});o.position(a)};var _,y=((_=_||{}).tool=_.tool||{},_.tool.draw=_.tool.draw||{},y||{}),_,_,_,_,_;_.tool.draw.defaultRulerLabelText="{length}",_.tool.draw.RulerFactory=function(){this.getGroupName=function(){return"ruler-group"},this.getNPoints=function(){return 2},this.getTimeout=function(){return 0}},_.tool.draw.RulerFactory.prototype.isFactoryGroup=function(e){return this.getGroupName()===e.name()},_.tool.draw.RulerFactory.prototype.create=function(e,t,n){var i=new _.math.Line(e[0],e[1]),r=new y.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=t.scale(10),a=_.math.getPerpendicularLine(i,e[0],o),s=new y.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=_.math.getPerpendicularLine(i,e[1],o),e=new y.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"}),o=(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)}),new y.Text({fontSize:t.getFontSize(),fontFamily:t.getFontFamily(),fill:t.getLineColour(),padding:t.getTextPadding(),shadowColor:t.getShadowLineColour(),shadowOffset:t.getShadowOffset(),name:"text"})),u="",u=void 0!==_.tool.draw.rulerLabelText?_.tool.draw.rulerLabelText:_.tool.draw.defaultRulerLabelText,n=i.quantify(n,_.utils.getFlags(u)),n=(o.setText(_.utils.replaceFlags(u,n)),o.meta={textExpr:u,quantification:n},i.getBegin().getX()>i.getEnd().getX()?0:-1),c=i.getBegin().getY()>i.getEnd().getY()?-1:0,n=new y.Label({x:i.getEnd().getX()+n*o.width(),y:i.getEnd().getY()+c*t.applyZoomScale(15).y,scale:t.applyZoomScale(1),visible:0!==u.length,name:"label"}),i=(n.add(o),n.add(new y.Tag({fill:t.getLineColour(),opacity:t.getTagOpacity()})),new y.Group);return i.name(this.getGroupName()),i.add(n),i.add(s),i.add(e),i.add(r),i.visible(!0),i},_.tool.draw.RulerFactory.prototype.getAnchors=function(e,t){var n=e.points(),i=[];return i.push(_.tool.draw.getDefaultAnchor(n[0]+e.x(),n[1]+e.y(),"begin",t)),i.push(_.tool.draw.getDefaultAnchor(n[2]+e.x(),n[3]+e.y(),"end",t)),i},_.tool.draw.RulerFactory.prototype.update=function(e,t,n){var i=e.getParent(),r=i.getChildren(function(e){return"shape"===e.name()})[0],o=i.getChildren(function(e){return"shape-tick0"===e.name()})[0],a=i.getChildren(function(e){return"shape-tick1"===e.name()})[0],s=i.getChildren(function(e){return"label"===e.name()})[0],l=i.getChildren(function(e){return"begin"===e.id()})[0],u=i.getChildren(function(e){return"end"===e.id()})[0];switch(e.id()){case"begin":l.x(e.x()),l.y(e.y());break;case"end":u.x(e.x()),u.y(e.y())}var i=l.x()-r.x(),c=l.y()-r.y(),d=u.x()-r.x(),g=u.y()-r.y(),x=(r.points([i,c,d,g]),new _.math.Point2D(l.x(),l.y())),S=new _.math.Point2D(u.x(),u.y()),x=new _.math.Line(x,S),S=new _.math.Point2D(i,c),i=new _.math.Point2D(d,g),m=_.math.getPerpendicularLine(x,S,t.scale(10)),h=(o.points([m.getBegin().getX(),m.getBegin().getY(),m.getEnd().getX(),m.getEnd().getY()]),_.math.getPerpendicularLine(x,i,t.scale(10))),c=(a.points([h.getBegin().getX(),h.getBegin().getY(),h.getEnd().getX(),h.getEnd().getY()]),r.hitFunc(function(e){e.beginPath(),e.moveTo(m.getBegin().getX(),m.getBegin().getY()),e.lineTo(m.getEnd().getX(),m.getEnd().getY()),e.lineTo(h.getEnd().getX(),h.getEnd().getY()),e.lineTo(h.getBegin().getX(),h.getBegin().getY()),e.closePath(),e.fillStrokeShape(this)}),s.getText()),d=x.quantify(n,_.utils.getFlags(c.meta.textExpr)),g=(c.setText(_.utils.replaceFlags(c.meta.textExpr,d)),c.meta.quantification=d,x.getBegin().getX()>x.getEnd().getX()?0:-1),S=x.getBegin().getY()>x.getEnd().getY()?-1:0,o={x:x.getEnd().getX()+g*c.width(),y:x.getEnd().getY()+S*t.applyZoomScale(15).y};s.position(o)},(_=_||{}).tool=_.tool||{},_.tool.Scroll=function(a){var s=this,t=(this.started=!1,null),n=0,l=!1;function u(){var e=document.getElementById("scroll-tooltip");e&&e.remove()}this.mousedown=function(e){u();var t=_.gui.getLayerDetailsFromEvent(e),t=a.getLayerGroupByDivId(t.groupDivId).getActiveViewLayer(),n=t.getViewController(),t=(n.isPlaying()&&n.stop(),s.started=!0,s.x0=e._x,s.y0=e._y,t.displayToPlanePos(e._x,e._y)),e=n.getPositionFromPlanePoint(t.x,t.y);n.setCurrentPosition(e)},this.mousemove=function(e){var t,n,i,r,o;s.started?(t=_.gui.getLayerDetailsFromEvent(e),t=a.getLayerGroupByDivId(t.groupDivId).getActiveViewLayer().getViewController(),i=e._y-s.y0,(n=15<Math.abs(i))&&t.canScroll()&&(0<i?t.decrementScrollIndex():t.incrementScrollIndex()),i=e._x-s.x0,r=15<Math.abs(i),o=t.getImageSize(),r&&o.moreThanOne(3)&&(0<i?t.incrementIndex(3):t.decrementIndex(3)),r&&(s.x0=e._x),n&&(s.y0=e._y)):l&&(o=e,u(),i=_.gui.getLayerDetailsFromEvent(o),t=(i=a.getLayerGroupByDivId(i.groupDivId).getActiveViewLayer()).getViewController(),r=i.displayToPlanePos(o._x,o._y),r=t.getPositionFromPlanePoint(r.x,r.y),void 0!==(r=t.getRescaledImageValue(r))&&((n=document.createElement("span")).id="scroll-tooltip",document.getElementById(i.getId()).parentElement.appendChild(n),n.style.left=o._x+10+"px",n.style.top=o._y+10+"px",i=_.utils.precisionRound(r,3),void 0!==t.getPixelUnit()&&(i+=" "+t.getPixelUnit()),n.appendChild(document.createTextNode(i))))},this.mouseup=function(e){s.started&&(s.started=!1)},this.mouseout=function(e){s.mouseup(e),u()},this.touchstart=function(e){t=setTimeout(s.dblclick,500),s.mousedown(e)},this.touchmove=function(e){null!==t&&(clearTimeout(t),t=null),s.mousemove(e)},this.touchend=function(e){null!==t&&(clearTimeout(t),t=null),s.mouseup(e)},this.wheel=function(e){var t=52;1===e.deltaMode&&(t=5.99),n+=e.deltaY,Math.abs(n)<t||(n=0,t=!1,e.deltaY<0&&(t=!0),e=_.gui.getLayerDetailsFromEvent(e),e=a.getLayerGroupByDivId(e.groupDivId).getActiveViewLayer().getViewController(),t?e.incrementScrollIndex():e.decrementScrollIndex())},this.keydown=function(e){e.context="dwv.tool.Scroll",a.onKeydown(e)},this.dblclick=function(e){e=_.gui.getLayerDetailsFromEvent(e);a.getLayerGroupByDivId(e.groupDivId).getActiveViewLayer().getViewController().play()},this.activate=function(e){e||u()},this.setFeatures=function(e){void 0!==e.displayTooltip&&(l=e.displayTooltip)},this.init=function(){}},_.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"}}},(_=_||{}).tool=_.tool||{},_.tool.UndoStack=function(){var t=[],n=(this.getStack=function(){return t},0),i=new _.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)}},(_=_||{}).tool=_.tool||{},_.tool.WindowLevel=function(s){var l=this;this.started=!1,this.mousedown=function(e){l.started=!0,l.x0=e._x,l.y0=e._y},this.mousemove=function(e){var t,n,i,r,o,a;l.started&&(t=_.gui.getLayerDetailsFromEvent(e),t=s.getLayerGroupByDivId(t.groupDivId).getActiveViewLayer().getViewController(),n=e._x-l.x0,a=l.y0-e._y,i=.01*((i=t.getImageRescaledDataRange()).max-i.min),o=parseInt(t.getWindowLevel().center,10),r=parseInt(t.getWindowLevel().width,10),o=o+Math.round(a*i),a=r+Math.round(n*i),a=_.image.validateWindowWidth(a),t.addWindowLevelPresets({manual:{wl:[new _.image.WindowLevel(o,a)],name:"manual"}}),t.setWindowLevelPreset("manual"),l.x0=e._x,l.y0=e._y)},this.mouseup=function(e){l.started&&(l.started=!1)},this.mouseout=function(e){l.mouseup(e)},this.touchstart=function(e){l.mousedown(e)},this.touchmove=function(e){l.mousemove(e)},this.touchend=function(e){l.mouseup(e)},this.dblclick=function(e){var t=_.gui.getLayerDetailsFromEvent(e),t=s.getLayerGroupByDivId(t.groupDivId).getActiveViewLayer(),e=t.displayToPlaneIndex(e._x,e._y),n=t.getViewController(),t=s.getImage(t.getDataIndex());n.setWindowLevel(parseInt(t.getRescaledValueAtIndex(n.getCurrentIndex().getWithNew2D(e.get(0),e.get(1))),10),parseInt(n.getWindowLevel().width,10))},this.keydown=function(e){e.context="dwv.tool.WindowLevel",s.onKeydown(e)},this.activate=function(e){},this.init=function(){}},_.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"}}},(_=_||{}).tool=_.tool||{},_.tool.ZoomAndPan=function(a){var s=this;this.started=!1,this.mousedown=function(e){s.started=!0,s.x0=e._x,s.y0=e._y},this.twotouchdown=function(e){s.started=!0,s.x0=e._x,s.y0=e._y;var t=new _.math.Point2D(e._x,e._y),e=new _.math.Point2D(e._x1,e._y1);s.line0=new _.math.Line(t,e),s.midPoint=s.line0.getMidpoint()},this.mousemove=function(e){var t,n,i,r,o;s.started&&(o=e._x-s.x0,t=e._y-s.y0,n=_.gui.getLayerDetailsFromEvent(e),i=(r=(n=a.getLayerGroupByDivId(n.groupDivId)).getActiveViewLayer()).getViewController(),r=r.displayToPlaneScale(o,t),o=i.getOffset3DFromPlaneOffset(r),n.addTranslation({x:o.getX(),y:o.getY(),z:o.getZ()}),n.draw(),s.x0=e._x,s.y0=e._y)},this.twotouchmove=function(e){var t,n,i,r;s.started&&(i=new _.math.Point2D(e._x,e._y),t=new _.math.Point2D(e._x1,e._y1),i=new _.math.Line(i,t).getLength()/s.line0.getLength(),t=_.gui.getLayerDetailsFromEvent(e),n=(r=(t=a.getLayerGroupByDivId(t.groupDivId)).getActiveViewLayer()).getViewController(),1==i?(e=e._y-s.y0,Math.abs(e)<15||n.getImageSize().canScroll(2)&&(0<e?n.incrementIndex(2):n.decrementIndex(2))):(e=(i-1)/10,Math.abs(e)%.1<=.05&&(i=r.displayToMainPlanePos(s.midPoint.getX(),s.midPoint.getY()),r=n.getPlanePositionFromPlanePoint(i),t.addScale(e,r),t.draw())))},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.wheel=function(e){var t=-e.deltaY/500,n=_.gui.getLayerDetailsFromEvent(e),n=a.getLayerGroupByDivId(n.groupDivId),i=n.getActiveViewLayer(),r=i.getViewController(),i=i.displayToMainPlanePos(e._x,e._y),e=r.getPlanePositionFromPlanePoint(i);n.addScale(t,e),n.draw()},this.keydown=function(e){e.context="dwv.tool.ZoomAndPan",a.onKeydown(e)},this.activate=function(e){}},_.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"}}},_.tool.ZoomAndPan.prototype.init=function(){},(_=_||{}).utils=_.utils||{},_.utils.arraySortEquals=function(e,t){if(null===e||null===t||void 0===e||void 0===t)return!1;e=e.slice().sort(),t=t.slice().sort();return _.utils.arrayEquals(e,t)},_.utils.arrayEquals=function(e,n){return null!==e&&null!==n&&void 0!==e&&void 0!==n&&(e.length===n.length&&e.every(function(e,t){return e===n[t]}))},_.utils.uint8ArrayToString=function(e){return String.fromCharCode.apply(String,e)},_.utils.findInArraySubset=function(e,t,n,i){(void 0===n||n<0||n>=e.length)&&(n=0),(void 0===i||i<=n||i>e.length)&&(i=e.length);for(var r=n;r<i;++r)if(t(e[r],r,e))return r},_.utils.getFindArrayInArrayCallback=function(r){return function(e,t,n){for(var i=0;i<r.length;++i)if(n[t+i]!==r[i])return!1;return!0}},_.utils.parseMultipart=function(e){var t=new Uint8Array(e),n=[];if(0===t.length)return n;var e=new Uint8Array([13,10,13,10]),i=_.utils.getFindArrayInArrayCallback(e),r=_.utils.findInArraySubset(t,i,0);if(void 0===r)throw new Error("Can't find the end of the first multipart header");for(var o,e=t.slice(0,r),a=_.utils.uint8ArrayToString(e).split("\r\n"),s=0;s<a.length;++s)if("-"===a[s][0]&&"-"===a[s][1]){o=a[s];break}if(void 0===o)throw new Error("Can't find the boundary between multi-parts");for(var e=_.utils.stringToUint8Array(o),l=_.utils.getFindArrayInArrayCallback(e),u=o.length,c=_.utils.findInArraySubset(t,l,0);void 0!==r;){for(var d={},g=t.slice(c+u,r),x=_.utils.uint8ArrayToString(g).split("\r\n"),S=0;S<x.length;++S){var m,h=x[S],p=h.indexOf(":");-1!==p&&(m=h.substring(0,p).trim(),h=h.substring(p+1).trim(),d[m]=h)}if(void 0===(c=_.utils.findInArraySubset(t,l,r)))break;var g=r+4,f=c-2;d.data=g<f?t.slice(g,f).buffer:new Uint8Array,n.push(d),r=_.utils.findInArraySubset(t,i,c+u)}return n},_.utils.buildMultipart=function(e,t){for(var n="\r\n",i=0,r=[],o=0;o<e.length;++o){for(var a="",s=(0!==o&&(a+=n),a+="--"+t+n,Object.keys(e[o])),l=0;l<s.length;++l){var u=s[l];"data"!==u&&(a+=u+": "+e[o][u]+n)}a+=n;var c=_.utils.stringToUint8Array(a);r.push(c),i+=c.byteLength+e[o].data.byteLength}for(var d=_.utils.stringToUint8Array("\r\n--"+t+"--"+n),g=new Uint8Array(i+d.byteLength),x=0,S=0;S<e.length;++S)g.set(r[S],x),x+=r[S].byteLength,g.set(new Uint8Array(e[S].data),x),x+=e[S].data.byteLength;return g.set(d,x),g}}(_=_||{}).utils=_.utils||{},_.utils.isEqualRgb=function(e,t){return null!==e&&null!==t&&void 0!==e&&void 0!==t&&e.r===t.r&&e.g===t.g&&e.b===t.b},_.utils.ybrToRgb=function(e,t,n){return{r:e+1.402*(n-128),g:e-.34414*(t-128)-.71414*(n-128),b:e+1.772*(t-128)}},_.utils.hexToRgb=function(e){return{r:parseInt(e.substring(1,3),16),g:parseInt(e.substring(3,5),16),b:parseInt(e.substring(5,7),16)}},_.utils.rgbToHex=function(e){return"#"+((1<<24)+(e.r<<16)+(e.g<<8)+e.b).toString(16).slice(1)},_.utils.getBrightness=function(e){return.001172549*e.r+.002301961*e.g+447059e-9*e.b},_.utils.isDarkColour=function(e){return _.utils.getBrightness(_.utils.hexToRgb(e))<.5},_.utils.getShadowColour=function(e){return _.utils.isDarkColour(e)?"#fff":"#000"},_.utils.uintLabToLab=function(e){return{l:.001525902*e.l,a:.003891051*e.a-128,b:.003891051*e.b-128}},_.utils.labToUintLab=function(e){return{l:655.35*e.l,a:257*e.a+32896,b:257*e.b+32896}},_.utils.d65={x:95.0489,y:100,z:108.884},_.utils.cielabToCiexyz=function(e){function t(e){return.206896552<e?Math.pow(e,3):.128418549*e-.017712903}var n=_.utils.d65,i=(e.l+16)/116;return{x:n.x*t(i+e.a/500),y:n.y*t(i),z:n.z*t(i-e.b/200)}},_.utils.ciexyzToCielab=function(e){function t(e){return.008856452<e?Math.pow(e,.333333333):7.787037037*e+.137931034}var n=_.utils.d65,i=t(e.y/n.y);return{l:116*i-16,a:500*(t(e.x/n.x)-i),b:200*(i-t(e.z/n.z))}},_.utils.ciexyzToSrgb=function(e){function t(e){var t=null,t=e<=.0031308?12.92*e:1.055*Math.pow(e,.416666667)-.055;return Math.min(1,Math.max(0,t))}var n=e.x/100,i=e.y/100,e=e.z/100;return{r:Math.round(255*t(3.2406*n-1.5372*i-.4986*e)),g:Math.round(255*t(-.9689*n+1.8758*i+.0415*e)),b:Math.round(255*t(.0557*n-.204*i+1.057*e))}},_.utils.srgbToCiexyz=function(e){function t(e){return e<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}var n=t(e.r/255),i=t(e.g/255),e=t(e.b/255);return{x:100*(.4124*n+.3576*i+.1805*e),y:100*(.2126*n+.7152*i+.0722*e),z:100*(.0193*n+.1192*i+.9505*e)}},_.utils.cielabToSrgb=function(e){return _.utils.ciexyzToSrgb(_.utils.cielabToCiexyz(e))},_.utils.srgbToCielab=function(e){return _.utils.ciexyzToCielab(_.utils.srgbToCiexyz(e))},_.utils.colourNameToHex=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"},(_=_||{}).env=_.env||{},_.env.askModernizr=function(e){void 0===_.Modernizr&&_.ModernizrInit(c,document);for(var t=e.split("."),n=_.Modernizr,i=0;i<t.length;++i)n=n[t[i]];return n},_.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.")?_.env.askModernizr("filereader"):(_.logger.warn("Assuming FileAPI support for Safari5..."),!0)},_.env.hasXmlHttpRequest=function(){return _.env.askModernizr("xhrresponsetype")&&_.env.askModernizr("xhrresponsetypearraybuffer")&&_.env.askModernizr("xhrresponsetypetext")&&"XMLHttpRequest"in c&&"withCredentials"in new XMLHttpRequest},_.env.hasTypedArray=function(){return _.env.askModernizr("dataview")&&_.env.askModernizr("typedarrays")},_.env.hasInputColor=function(){return _.env.askModernizr("inputtypes.color")},_.env.hasInputDirectory=function(){return _.env.askModernizr("fileinputdirectory")},_.env._hasTypedArraySlice=void 0!==Uint8Array.prototype.slice,_.env.hasTypedArraySlice=function(){return _.env._hasTypedArraySlice},_.env._hasFloat64Array="Float64Array"in c,_.env.hasFloat64Array=function(){return _.env._hasFloat64Array},_.env._hasClampedArray="Uint8ClampedArray"in c,_.env.hasClampedArray=function(){return _.env._hasClampedArray},_.env._hasBigint="undefined"!=typeof BigInt,_.env.hasBigInt=function(){return _.env._hasBigint},_.env._hasTextDecoder="undefined"!=typeof TextDecoder,_.env.hasTextDecoder=function(){return _.env._hasTextDecoder},_.env._hasTextEncoder="undefined"!=typeof TextEncoder,_.env.hasTextEncoder=function(){return _.env._hasTextEncoder},_.env.check=function(){var e="";if(!_.env.hasFileApi())throw e="The File APIs are not supported in this browser. ",new Error(e);if(!_.env.hasXmlHttpRequest())throw e="The XMLHttpRequest is not supported in this browser. ",new Error(e);if(!_.env.hasTypedArray())throw e="The Typed arrays are not supported in this browser. ",new Error(e);if(!_.env.hasTextDecoder()||!_.env.hasTextEncoder())throw e="Text decoding/encoding is not supported in this browser.",new Error(e);_.env.hasFloat64Array()||_.logger.warn("Float64Array is not supported in this browser. Data including tags with Float64 VR is not supported. "),_.env.hasBigInt()||_.logger.warn("BigInt is not supported in this browser. Data including tags with Int64 and Uint64 VRs is not supported. "),_.env.hasTypedArraySlice()||(_.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}),_.env.hasClampedArray()||(_.logger.warn("The Uint8ClampedArray is not supported in this browser. This may impair performance. "),c.Uint8ClampedArray=c.Uint8Array),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||Object.defineProperty(String.prototype,"startsWith",{value:function(e,t){return _.utils.startsWith(this,e,t)}})};i=i||{},r=r||{},o=o||{};return(_=_||{}).i18nLocalesPath=null,_.i18nInitialise=function(e,t){var e=void 0===e?"auto":e,t=void 0===t?"../..":t,t={fallbackLng:"en",load:"languageOnly",backend:{loadPath:(_.i18nLocalesPath=t)+"/locales/{{lng}}/{{ns}}.json"}},n=i.use(r);"auto"===e?n.use(o):t.lng=e,n.init(t)},_.i18nInitialiseWithResources=function(e,t){e=void 0===e?"auto":e,t={fallbackLng:"en",load:"languageOnly",resources:t};"auto"===e?i.use(o).init(t):(t.lng=e,i.init(t))},_.i18nOnInitialised=function(e){i.on("initialized",e)},_.i18nOffInitialised=function(){i.off("initialized")},_.i18nOnFailedLoad=function(e){i.on("failedLoading",e)},_.i18nOffFailedLoad=function(){i.off("failedLoading")},_.i18n=function(e,t){return i.t(e,t)},_.i18nExists=function(e,t){return i.exists(e,t)},_.i18nPage=function(){for(var e=document.getElementsByTagName("*"),t=0;t<e.length;++t)void 0!==e[t].dataset.i18n&&(e[t].innerHTML=_.i18n(e[t].dataset.i18n))},_.i18nGetLocalePath=function(e){var t=i.language.substring(0,2);return _.i18nLocalesPath+"/locales/"+t+"/"+e},_.i18nGetFallbackLocalePath=function(e){var t=i.languages[i.languages.length-1].substring(0,2);return _.i18nLocalesPath+"/locales/"+t+"/"+e},(_=_||{}).utils=_.utils||{},_.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=i[e.type].slice(),n=0;n<t.length;++n)t[n](e)}},(_=_||{}).utils=_.utils||{},_.utils.logger=_.utils.logger||{},_.utils.logger.console=_.utils.logger.console||{},_.logger=_.utils.logger.console,_.utils.logger.levels={TRACE:0,DEBUG:1,INFO:2,WARN:3,ERROR:4},_.utils.logger.console.level=_.utils.logger.levels.WARN,_.utils.logger.console.trace=function(e){_.logger.level<=_.utils.logger.levels.TRACE&&console.trace(e)},_.utils.logger.console.debug=function(e){_.logger.level<=_.utils.logger.levels.DEBUG&&console.debug(e)},_.utils.logger.console.info=function(e){_.logger.level<=_.utils.logger.levels.INFO&&console.info(e)},_.utils.logger.console.warn=function(e){_.logger.level<=_.utils.logger.levels.WARN&&console.warn(e)},_.utils.logger.console.error=function(e){_.logger.level<=_.utils.logger.levels.ERROR&&console.error(e)},(_=_||{}).ModernizrInit=function(e,a,s){var i=[],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){i.push({name:e,fn:t,options:n})},addAsyncTest:function(e){i.push({name:null,fn:e})}},n=function(){},r=(n.prototype=t,(n=new n).addTest("dataview","undefined"!=typeof DataView&&"getFloat64"in DataView.prototype),n.addTest("typedarrays","ArrayBuffer"in e),n.addTest("filereader",!!(e.File&&e.FileList&&e.FileReader)),n.addTest("xhrresponsetype",function(){if("undefined"==typeof XMLHttpRequest)return!1;var e=new XMLHttpRequest;return e.open("get","/",!0),"response"in e}()),n.addTest("urlparser",function(){try{return"http://modernizr.com/"===new URL("http://modernizr.com/").href}catch(e){return!1}}),n.addTest("urlsearchparams","URLSearchParams"in e),[]);function o(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 l=a.documentElement,u=(n.addTest("xhrresponsetypearraybuffer",o("arraybuffer")),n.addTest("xhrresponsetypejson",o("json")),n.addTest("xhrresponsetypetext",o("text")),"svg"===l.nodeName.toLowerCase());function c(e){return"function"!=typeof a.createElement?a.createElement(e):u?a.createElementNS.call(a,"http://www.w3.org/2000/svg",e):a.createElement.apply(a,arguments)}var d,g,x,S,m,h,p,f=c("input"),e="search tel url email datetime date month week time datetime-local number range color".split(" "),y={},D=(n.inputtypes=function(e){for(var t,n,i,r=e.length,o=0;o<r;o++)f.setAttribute("type",t=e[o]),(i="text"!==f.type&&"style"in f)&&(f.value="1)",f.style.cssText="position:absolute;visibility:hidden;",/^range$/.test(t)&&f.style.WebkitAppearance!==s?(l.appendChild(f),i=(n=a.defaultView).getComputedStyle&&"textfield"!==n.getComputedStyle(f,null).WebkitAppearance&&0!==f.offsetHeight,l.removeChild(f)):/^(search|tel)$/.test(t)||(i=/^(url|email)$/.test(t)?f.checkValidity&&!1===f.checkValidity():"1)"!=f.value)),y[e[o]]=!!i;return y}(e),t._config.usePrefixes?"Moz O ms Webkit".toLowerCase().split(" "):[]);for(p in t._domPrefixes=D,n.addTest("fileinputdirectory",function(){var e=c("input");if(e.type="file","directory"in e)return!0;for(var t=0,n=D.length;t<n;t++)if(D[t]+"directory"in e)return!0;return!1}),i)if(i.hasOwnProperty(p)){if(d=[],(g=i[p]).name&&(d.push(g.name.toLowerCase()),g.options&&g.options.aliases&&g.options.aliases.length))for(x=0;x<g.options.aliases.length;x++)d.push(g.options.aliases[x].toLowerCase());for(S="function"==typeof g.fn?g.fn():g.fn,m=0;m<d.length;m++)1===(h=d[m].split(".")).length?n[h[0]]=S:(!n[h[0]]||n[h[0]]instanceof Boolean||(n[h[0]]=new Boolean(n[h[0]])),n[h[0]][h[1]]=S),r.push((S?"":"no-")+h.join("-"))}delete t.addTest,delete t.addAsyncTest;for(var v=0;v<n._q.length;v++)n._q[v]();_.Modernizr=n},(_=_||{}).utils=_.utils||{},_.utils.isObject=function(e){var t=typeof e;return"function"==t||"object"==t&&!!e},_.utils.isArray=function(e){return Array.isArray(e)},_.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],u=e[r][l];if(_.utils.isArray(u)){for(var c=[],d=0;d<u.length;++d)_.utils.isObject(u[d])?c.push(_.utils.objectToArray(u[d])):c.push(u[d]);u=c}else _.utils.isObject(u)&&(u=_.utils.objectToArray(u));o[l]=u}t.push(o)}return t},_.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}),d=u.concat(c),g=0,x=d.length;g<x;++g){var S=d[g];if(S!==n){var m,h=null,p=null,f=(Object.prototype.hasOwnProperty.call(e,S)&&(h=e[S],Object.prototype.hasOwnProperty.call(h,i)&&(p=h[i])),null),y=null;if(Object.prototype.hasOwnProperty.call(t,S)&&(f=t[S],Object.prototype.hasOwnProperty.call(f,i)&&(y=f[i])),y!==p)if(m={},o){if(_.utils.isObject(p))m[i]=p;else{m[i]={};for(var D=0;D<a.length;D++)m[i][a[D]]=h}m[i][s]=f}else{y={};y[a]=h,y[s]=f,m[i]=y}else m=h;r[S]=m}}return r},(_=_||{}).utils=_.utils||{},_.utils.MultiProgressHandler=function(n){var i=this,r=[],o=2;function a(e){for(var t=0,n=0;n<o;++n)t+=r[e][n];return t/o}this.setNumberOfDimensions=function(e){o=e},this.setNToLoad=function(e){for(var t=0;t<e;++t){r[t]=[];for(var n=0;n<o;++n)r[t][n]=0}},this.onprogress=function(e){var t;e.lengthComputable&&void 0!==e.subindex&&void 0!==e.index&&(t=100*e.loaded/e.total,r[e.index][e.subindex]=t,t=null,t=void 0!==e.item?e.item:{loaded:a(e.index),total:100,source:e.source},n({lengthComputable:!0,loaded:function(){for(var e=0,t=r.length,n=0;n<t;++n)e+=a(n);return Math.round(e/t)}(),total:100,item:t}))},this.getMonoProgressHandler=function(t,n){return function(e){e.index=t,e.subindex=n,i.onprogress(e)}},this.getUndefinedMonoProgressHandler=function(t){return function(e){e.subindex=t,i.onprogress(e)}}},(_=_||{}).utils=_.utils||{},_.utils.capitaliseFirstLetter=function(e){var t=e;return t=e?e.charAt(0).toUpperCase()+e.slice(1):t},_.utils.startsWith=function(e,t,n){if(null==e||null==t)return!1;n=0<n?0|n:0;return e.substring(n,n+t.length)===t},_.utils.endsWith=function(e,t){return null!=e&&null!=t&&e.substring(e.length-t.length)===t},_.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},_.utils.getFlags=function(e){var t=[];if(null==e)return t;for(var n=/{(\w+)}/g,i=n.exec(e);i;)t.push(i[1]),i=n.exec(e);return t},_.utils.replaceFlags=function(e,t){var n="";if(null==e)return n;if(n=e,null==t)return n;for(var i=_.utils.getFlags(e),r=0;r<i.length;++r){var o,a=t[i[r]];null!=a&&null!==a.value&&void 0!==a.value&&(o=a.value.toPrecision(4),null!==a.unit&&void 0!==a.unit&&0!==a.unit.length&&("degree"!==a.unit&&(o+=" "),o+=a.unit),a="{"+i[r]+"}",n=n.replace(a,o))}return n},_.utils.replaceFlags2=function(e,t){for(var n=e,i=0;i<t.length;++i)n=n.replace("{v"+i+"}",t[i]);return n},_.utils.createDefaultReplaceFormat=function(e){for(var t="",n=0;n<e.length;++n)0!==n&&(t+=", "),t+="{v"+n+"}";return t},_.utils.getRootPath=function(e){return e.split("/").slice(0,-1).join("/")},_.utils.getFileExtension=function(e){var t=null;return null!=e&&"."!==e[0]&&1!==(e=e.toLowerCase().split(".")).length&&(t=e.pop(),/[a-z]/.test(t)&&!t.includes("/")||(t=null)),t},_.utils.stringToUint8Array=function(e){for(var t=new Uint8Array(e.length),n=0,i=e.length;n<i;n++)t[n]=e.charCodeAt(n);return t},_.utils.precisionRound=function(e,t){t=Math.pow(10,t);return Math.round(e*t+.01/t)/t},(_=_||{}).utils=_.utils||{},_.utils.ThreadPool=function(i){for(var r=[],o=[],e=0;e<i;++e)o.push(new _.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(),a.push(t),t.run(e)):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{e.stop(),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"})}},_.utils.ThreadPool.prototype.onworkstart=function(e){},_.utils.ThreadPool.prototype.onworkitem=function(e){},_.utils.ThreadPool.prototype.onwork=function(e){},_.utils.ThreadPool.prototype.onworkend=function(e){},_.utils.ThreadPool.prototype.onerror=function(e){},_.utils.ThreadPool.prototype.onabort=function(e){},_.utils.WorkerThread=function(t){var n,i=this,e=Math.random().toString(36).substring(2,15),r=null;function o(e){e.itemNumber=r.info.itemNumber,e.numberOfItems=r.info.numberOfItems,e.dataIndex=r.info.dataIndex,t.onworkitem(e),t.onTaskEnd(i)}function a(e){e.itemNumber=r.info.itemNumber,e.numberOfItems=r.info.numberOfItems,e.dataIndex=r.info.dataIndex,t.handleWorkerError(e),i.stop()}this.getId=function(){return e},this.run=function(e){r=e,void 0===n&&((n=new Worker(r.script)).onmessage=o,n.onerror=a),n.postMessage(r.startMessage)},this.stop=function(){n.terminate()}},_.utils.WorkerTask=function(e,t,n){this.script=e,this.startMessage=t,this.info=n},(_=_||{}).utils=_.utils||{},_.utils.getUrlFromUriFull=function(e){return new URL(e,c.location.origin)},_.utils.getUrlFromUriSimple=function(e){for(var t={},e=e.split("?"),n=e[0].split("//").pop().split("/"),i=(n.splice(0,1),t.pathname="/"+n.join("/"),[]),r=(2===e.length&&(i=e[1].split("&")),{}),o=0;o<i.length;++o){var a=i[o].split("=");r[a[0]]=a[1]}return t.searchParams={get:function(e){return r[e]}},t},_.utils.getUrlFromUri=function(e){return _.env.askModernizr("urlparser")&&_.env.askModernizr("urlsearchparams")?_.utils.getUrlFromUriFull(e):_.utils.getUrlFromUriSimple(e)},_.utils.splitUri=function(e){var t,n={},i=null;return e&&-1!==(i=e.indexOf("?"))&&(n.base=e.substring(0,i),-1===(t=e.indexOf("#"))&&(t=e.length),e=e.substring(i+1,t),n.query=_.utils.splitKeyValueString(e)),n},_.utils.getUriQuery=function(e){e=_.utils.splitUri(e);return 0===Object.keys(e).length?null:e.query},_.utils.decodeQuery=function(e,t,n){e.type&&"manifest"===e.type?_.utils.decodeManifestQuery(e,t):t(_.utils.decodeKeyValueUri(e.input,e.dwvReplaceMode),n)},_.utils.decodeKeyValueUri=function(e,t){var n=[],i="key",t=(t&&(i=t),decodeURIComponent(e)),r=_.utils.splitUri(t);if(0===Object.keys(r).length)n.push(t);else{for(var o=Object.keys(r.query),a=null,s=0;s<o.length;++s)if(r.query[o[s]]instanceof Array){a=o[s];break}if(a){for(var l,u=r.query[a],c=r.base,d=(""!==c&&"file"!==a&&(c+="?"),!1),g=0;g<o.length;++g)o[g]!==a&&(d&&(c+="&"),c+=o[g]+"="+r.query[o[g]],d=!0);for(var x=0;x<u.length;++x)l=c,d&&(l+="&"),"key"===i&&(l+=a+"="),l+=u[x],n.push(l)}else n.push(t)}return n},_.utils.decodeManifestQuery=function(e,t){var n="",i=("/"===e.input[0]&&(n=c.location.protocol+"//"+c.location.host),n+=e.input,new XMLHttpRequest);i.open("GET",decodeURIComponent(n),!0),i.responseType="document",i.onload=function(){t(_.utils.decodeManifest(this.responseXML,e.nslices))},i.onerror=function(){_.logger.warn("RequestError while receiving manifest: "+this.status)},i.send(null)},_.utils.decodeManifest=function(e,t){var n=[],i=e.getElementsByTagName("wado_query")[0].getAttribute("wadoURL")+"?requestType=WADO&contentType=application/dicom&",e=e.getElementsByTagName("Patient"),e=(1<e.length&&_.logger.warn("More than one patient, loading first one."),e[0].getElementsByTagName("Study")),r=(1<e.length&&_.logger.warn("More than one study, loading first one."),e[0].getAttribute("StudyInstanceUID")),e=e[0].getElementsByTagName("Series"),o=(1<e.length&&_.logger.warn("More than one series, loading first one."),e[0].getAttribute("SeriesInstanceUID")),a=e[0].getElementsByTagName("Instance"),s=a.length;t<s&&(s=t);for(var l=0;l<s;++l){var u=a[l].getAttribute("SOPInstanceUID");n.push(i+"&studyUID="+r+"&seriesUID="+o+"&objectUID="+u)}return n},_.utils.loadFromUri=function(e,t,n){e=_.utils.getUriQuery(e);e&&void 0!==e.input&&_.utils.loadFromQuery(e,t,n)},_.utils.loadFromQuery=function(e,t,n){var i;_.utils.decodeQuery(e,t.loadURLs,n),void 0!==e.state&&t.addEventListener("loadend",i=function(){t.removeEventListener("loadend",i),t.loadURLs([e.state])})},_});