@ohif/extension-dicom-pdf 3.14.0-beta.37 → 3.14.0-beta.39
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.
|
@@ -1 +1 @@
|
|
|
1
|
-
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("@ohif/core"),require("@ohif/i18n")):"function"==typeof define&&define.amd?define(["@ohif/core","@ohif/i18n"],t):"object"==typeof exports?exports["ohif-extension-dicom-pdf"]=t(require("@ohif/core"),require("@ohif/i18n")):e["ohif-extension-dicom-pdf"]=t(e["@ohif/core"],e["@ohif/i18n"])}(globalThis,(e,t)=>(()=>{var r,n,o={596(e,t,r){"use strict";r.r(t),r.d(t,{default:()=>E});var n,o=r(184),a=r(326);function i(e){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function u(e){var t=function(e,t){if("object"!=i(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=i(n))return n;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==i(t)?t:t+""}function s(){if(console&&console.warn){for(var e,t=arguments.length,r=Array(t),n=0;n<t;n++)r[n]=arguments[n];"string"==typeof r[0]&&(r[0]="react-i18next:: ".concat(r[0])),(e=console).warn.apply(e,r)}}r(741),Object.create(null);var c={};function l(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];"string"==typeof t[0]&&c[t[0]]||("string"==typeof t[0]&&(c[t[0]]=new Date),s.apply(void 0,t))}var f=function(e,t){return function(){e.isInitialized?t():e.on("initialized",function r(){setTimeout(function(){e.off("initialized",r)},0),t()})}};function p(e,t,r){e.loadNamespaces(t,f(e,r))}function d(e,t,r,n){"string"==typeof r&&(r=[r]),r.forEach(function(t){0>e.options.ns.indexOf(t)&&e.options.ns.push(t)}),e.loadLanguages(t,f(e,n))}var m=/&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g,y={"&":"&","&":"&","<":"<","<":"<",">":">",">":">","'":"'","'":"'",""":'"',""":'"'," ":" "," ":" ","©":"©","©":"©","®":"®","®":"®","…":"…","…":"…","/":"/","/":"/"},b=function(e){return y[e]},g={bindI18n:"languageChanged",bindI18nStore:"",transEmptyNodeValue:"",transSupportBasicHtmlNodes:!0,transWrapTextNodes:"",transKeepBasicHtmlNodesFor:["br","strong","i","p"],useSuspense:!0,unescape:function(e){return e.replace(m,b)}},h=(0,a.createContext)(),v=function(){var e;function t(){if(!(this instanceof t))throw TypeError("Cannot call a class as a function");this.usedNamespaces={}}return e=[{key:"addUsedNamespaces",value:function(e){var t=this;e.forEach(function(e){t.usedNamespaces[e]||(t.usedNamespaces[e]=!0)})}},{key:"getUsedNamespaces",value:function(){return Object.keys(this.usedNamespaces)}}],function(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,u(n.key),n)}}(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),t}();function S(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function x(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function O(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?x(Object(r),!0).forEach(function(t){var n,o;n=t,o=r[t],(n=u(n))in e?Object.defineProperty(e,n,{value:o,enumerable:!0,configurable:!0,writable:!0}):e[n]=o}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):x(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}var _=function(e,t){var r=(0,a.useRef)();return(0,a.useEffect)(function(){r.current=t?r.current:e},[e,t]),r.current},j=r(2),w=r(870);let k={"unsupported-type":"This document type cannot be displayed","signature-mismatch":"Document content does not match its declared type","retrieve-failed":"Unable to retrieve this document",aborted:"Loading document..."},E=function(e){let t,r,u,s,c,f,m,y,b,x=(0,o.c)(20),{displaySets:E,viewportId:T}=e,N=void 0===T?"pdf-viewport":T,[C,L]=(0,a.useState)(null),[A,P]=(0,a.useState)(null),I=(0,a.useRef)(null),{register:U,unregister:R}=(0,j.useViewportElementRegistration)(N),{t:D}=function(e){var t,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=r.i18n,u=(0,a.useContext)(h)||{},s=u.i18n,c=u.defaultNS,f=o||s||n;if(f&&!f.reportNamespaces&&(f.reportNamespaces=new v),!f){l("You will need to pass in an i18next instance by using initReactI18next");var m=function(e,t){return"string"==typeof t?t:t&&"object"===i(t)&&"string"==typeof t.defaultValue?t.defaultValue:Array.isArray(e)?e[e.length-1]:e},y=[m,{},!1];return y.t=m,y.i18n={},y.ready=!1,y}f.options.react&&void 0!==f.options.react.wait&&l("It seems you are still using the old wait option, you may migrate to the new useSuspense behaviour.");var b=O(O(O({},g),f.options.react),r),x=b.useSuspense,j=b.keyPrefix,w=e||c||f.options&&f.options.defaultNS;w="string"==typeof w?[w]:w||["translation"],f.reportNamespaces.addUsedNamespaces&&f.reportNamespaces.addUsedNamespaces(w);var k=(f.isInitialized||f.initializedStoreOnce)&&w.every(function(e){return function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return t.languages&&t.languages.length?void 0===t.options.ignoreJSONStructure?function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=t.languages[0],o=!!t.options&&t.options.fallbackLng,a=t.languages[t.languages.length-1];if("cimode"===n.toLowerCase())return!0;var i=function(e,r){var n=t.services.backendConnector.state["".concat(e,"|").concat(r)];return -1===n||2===n};return(!(r.bindI18n&&r.bindI18n.indexOf("languageChanging")>-1)||!t.services.backendConnector.backend||!t.isLanguageChangingTo||!!i(t.isLanguageChangingTo,e))&&!!(t.hasResourceBundle(n,e)||!t.services.backendConnector.backend||t.options.resources&&!t.options.partialBundledLanguages||i(n,e)&&(!o||i(a,e)))}(e,t,r):t.hasLoadedNamespace(e,{lng:r.lng,precheck:function(t,n){if(r.bindI18n&&r.bindI18n.indexOf("languageChanging")>-1&&t.services.backendConnector.backend&&t.isLanguageChangingTo&&!n(t.isLanguageChangingTo,e))return!1}}):(l("i18n.languages were undefined or empty",t.languages),!0)}(e,f,b)});function E(){return f.getFixedT(r.lng||null,"fallback"===b.nsMode?w:w[0],j)}var T=function(e){if(Array.isArray(e))return e}(t=(0,a.useState)(E))||function(e){var t=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=t){var r,n,o,a,i=[],u=!0,s=!1;try{o=(t=t.call(e)).next,!1;for(;!(u=(r=o.call(t)).done)&&(i.push(r.value),2!==i.length);u=!0);}catch(e){s=!0,n=e}finally{try{if(!u&&null!=t.return&&(a=t.return(),Object(a)!==a))return}finally{if(s)throw n}}return i}}(t)||function(e){if(e){if("string"==typeof e)return S(e,2);var t=({}).toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?S(e,2):void 0}}(t)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),N=T[0],C=T[1],L=w.join();r.lng&&(L="".concat(r.lng).concat(L));var A=_(L),P=(0,a.useRef)(!0);(0,a.useEffect)(function(){var e=b.bindI18n,t=b.bindI18nStore;function n(){P.current&&C(E)}return P.current=!0,k||x||(r.lng?d(f,r.lng,w,function(){P.current&&C(E)}):p(f,w,function(){P.current&&C(E)})),k&&A&&A!==L&&P.current&&C(E),e&&f&&f.on(e,n),t&&f&&f.store.on(t,n),function(){P.current=!1,e&&f&&e.split(" ").forEach(function(e){return f.off(e,n)}),t&&f&&t.split(" ").forEach(function(e){return f.store.off(e,n)})}},[f,L]);var I=(0,a.useRef)(!0);(0,a.useEffect)(function(){P.current&&!I.current&&C(E),I.current=!1},[f,j]);var U=[N,f,k];if(U.t=N,U.i18n=f,U.ready=k,k||!k&&!x)return U;throw new Promise(function(e){r.lng?d(f,r.lng,w,function(){return e()}):p(f,w,function(){return e()})})}("EncapsulatedDocument"),[F,H]=(0,a.useState)("pdf-yes-click");x[0]===Symbol.for("react.memo_cache_sentinel")?(t=()=>{H("pdf-yes-click")},x[0]=t):t=x[0];let $=t;x[1]===Symbol.for("react.memo_cache_sentinel")?(r=()=>{H("pdf-no-click")},x[1]=r):r=x[1];let V=r;if(x[2]!==R?(u=()=>(document.body.addEventListener("drag",V),function(){document.body.removeEventListener("drag",V),R()}),x[2]=R,x[3]=u):u=x[3],x[4]===Symbol.for("react.memo_cache_sentinel")?(s=[],x[4]=s):s=x[4],(0,a.useEffect)(u,s),E&&E.length>1)throw Error("OHIFCornerstonePdfViewport: only one display set is supported for dicom pdf right now");let{getDocument:B,label:q}=E[0];return x[5]!==B?(c=()=>{let e,t=!1,r=new AbortController,n=async()=>{let n=await B({signal:r.signal});if(t){n.ok&&n.revoke();return}if(!n.ok){L(null),P(n.reason);return}e=n.revoke,L({url:n.url,documentType:n.documentType}),P(null)};return L(null),P(null),n(),()=>{t=!0,r.abort(),e?.()}},f=[B],x[5]=B,x[6]=c,x[7]=f):(c=x[6],f=x[7]),(0,a.useEffect)(c,f),x[8]!==U?(m=e=>{I.current=e,e&&U(e)},x[8]=U,x[9]=m):m=x[9],x[10]!==C||x[11]!==A||x[12]!==q||x[13]!==F||x[14]!==D?(y=C?function({url:e,documentType:t},r,n,o){return"object"===t.strategy?(0,w.jsx)("object",{data:e,type:t.mimeType,className:r,children:(0,w.jsx)("div",{children:n("No viewer installed for {{mimeType}}",{mimeType:t.mimeType})})}):(0,w.jsx)("iframe",{src:e,title:o||n("Encapsulated document"),className:`${r} border-0`,sandbox:t.sandbox??"",referrerPolicy:"no-referrer",allow:""})}(C,F,D,q):(0,w.jsx)("div",{className:"flex h-full w-full items-center justify-center",children:D(A?k[A]:"Loading document...")}),x[10]=C,x[11]=A,x[12]=q,x[13]=F,x[14]=D,x[15]=y):y=x[15],x[16]!==m||x[17]!==y||x[18]!==N?(b=(0,w.jsx)("div",{className:"bg-primary-black text-foreground h-full w-full",onClick:$,ref:m,"data-viewport-id":N,children:y}),x[16]=m,x[17]=y,x[18]=N,x[19]=b):b=x[19],b}},76(e,t,r){"use strict";var n=r(326).__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;t.c=function(e){return n.H.useMemoCache(e)}},60(e,t){"use strict";var r=Symbol.for("react.transitional.element");Symbol.for("react.fragment");t.jsx=function(e,t,n){var o=null;if(void 0!==n&&(o=""+n),void 0!==t.key&&(o=""+t.key),"key"in t)for(var a in n={},t)"key"!==a&&(n[a]=t[a]);else n=t;return{$$typeof:r,type:e,key:o,ref:void 0!==(t=n.ref)?t:null,props:n}}},391(e,t){"use strict";var r=Symbol.for("react.transitional.element"),n=Symbol.for("react.portal"),o=(Symbol.for("react.fragment"),Symbol.for("react.strict_mode"),Symbol.for("react.profiler"),Symbol.for("react.consumer")),a=Symbol.for("react.context"),i=(Symbol.for("react.forward_ref"),Symbol.for("react.suspense")),u=(Symbol.for("react.memo"),Symbol.for("react.lazy")),s=(Symbol.for("react.activity"),Symbol.iterator),c={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},l=Object.assign,f={};function p(e,t,r){this.props=e,this.context=t,this.refs=f,this.updater=r||c}function d(){}function m(e,t,r){this.props=e,this.context=t,this.refs=f,this.updater=r||c}p.prototype.isReactComponent={},p.prototype.setState=function(e,t){if("object"!=typeof e&&"function"!=typeof e&&null!=e)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")},p.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},d.prototype=p.prototype;var y=m.prototype=new d;y.constructor=m,l(y,p.prototype),y.isPureReactComponent=!0;var b={H:null,A:null,T:null,S:null};Object.prototype.hasOwnProperty;function g(e){if(-1===e._status){var t=e._result;(t=t()).then(function(t){(0===e._status||-1===e._status)&&(e._status=1,e._result=t)},function(t){(0===e._status||-1===e._status)&&(e._status=2,e._result=t)}),-1===e._status&&(e._status=0,e._result=t)}if(1===e._status)return e._result.default;throw e._result}"function"==typeof reportError&&reportError,t.Suspense=i,t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=b,t.createContext=function(e){return(e={$$typeof:a,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null}).Provider=e,e.Consumer={$$typeof:o,_context:e},e},t.lazy=function(e){return{$$typeof:u,_payload:{_status:-1,_result:e},_init:g}},t.useContext=function(e){return b.H.useContext(e)},t.useEffect=function(e,t){return b.H.useEffect(e,t)},t.useRef=function(e){return b.H.useRef(e)},t.useState=function(e){return b.H.useState(e)}},184(e,t,r){"use strict";e.exports=r(76)},326(e,t,r){"use strict";e.exports=r(391)},870(e,t,r){"use strict";e.exports=r(60)},741(e){e.exports={area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0}},2(t){"use strict";t.exports=e},545(e){"use strict";e.exports=t}},a={};function i(e){var t=a[e];if(void 0!==t)return t.exports;var r=a[e]={exports:{}};return o[e](r,r.exports,i),r.exports}i.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return i.d(t,{a:t}),t},i.d=(e,t)=>{for(var r in t)i.o(t,r)&&!i.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},i.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),i.r=e=>{"u">typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r=[],i.O=(e,t,n,o)=>{if(t){o=o||0;for(var a=r.length;a>0&&r[a-1][2]>o;a--)r[a]=r[a-1];r[a]=[t,n,o];return}for(var u=1/0,a=0;a<r.length;a++){for(var[t,n,o]=r[a],s=!0,c=0;c<t.length;c++)(!1&o||u>=o)&&Object.keys(i.O).every(e=>i.O[e](t[c]))?t.splice(c--,1):(s=!1,o<u&&(u=o));if(s){r.splice(a--,1);var l=n();void 0!==l&&(e=l)}}return e},i.F={},i.E=e=>{Object.keys(i.F).map(t=>{i.F[t](e)})},n={509:0},i.F.j=e=>{if(!i.o(n,e)||void 0===n[e]){n[e]=null;var t=document.createElement("link");i.nc&&t.setAttribute("nonce",i.nc),t.rel="prefetch",t.as="script",t.href=i.p+i.u(e),document.head.appendChild(t)}},i.O.j=e=>0===n[e],i.O(0,[509],()=>{[509].map(i.E)},5);var u={};return(()=>{"use strict";i.r(u),i.d(u,{default:()=>v});var e=i(184),t=i(326);let r=JSON.parse('{"UU":"@ohif/extension-dicom-pdf"}').UU,n=`${r}.sopClassHandlerModule.dicom-pdf`;var o=i(2),a=i(545),s=i.n(a);let c={"application/pdf":{mimeType:"application/pdf",strategy:"object",signature:[37,80,68,70,45],signatureSearchLimit:1024},"text/html":{mimeType:"text/html",strategy:"iframe",sandbox:""},"application/xhtml+xml":{mimeType:"application/xhtml+xml",strategy:"iframe",sandbox:""},"text/xml":{mimeType:"text/xml",strategy:"iframe",sandbox:""},"application/xml":{mimeType:"application/xml",strategy:"iframe",sandbox:""},"text/plain":{mimeType:"text/plain",strategy:"iframe",sandbox:""}},l={"application/html":"text/html","application/x-pdf":"application/pdf","application/acrobat":"application/pdf","text/pdf":"application/pdf","application/xhtml":"application/xhtml+xml"};function f(e){if("string"==typeof e)return e.split(";")[0].trim().toLowerCase()||void 0}async function p({instance:e,mimeType:t,tag:r="EncapsulatedDocument"},{signal:n}={}){var o;let a,i,u=function(e){let t=f(e);if(t)return c[l[t]??t]}(t);if(!u)return{ok:!1,reason:"unsupported-type",mimeType:t};let s=e?.[r];if(!s)return{ok:!1,reason:"retrieve-failed"};if(n?.aborted)return{ok:!1,reason:"aborted"};try{i=await d(s,u.mimeType)}catch(e){return console.warn("Failed to retrieve encapsulated document",e),{ok:!1,reason:"retrieve-failed"}}if(!i?.byteLength)return{ok:!1,reason:"retrieve-failed"};if(n?.aborted)return{ok:!1,reason:"aborted"};if(!function(e,t){let{signature:r,signatureSearchLimit:n=0}=e;if(!r?.length)return!0;if(t.byteLength<r.length)return!1;let o=Math.min(n,t.byteLength-r.length),a=new Uint8Array(t,0,o+r.length);for(let e=0;e<=o;e++)if(r.every((t,r)=>a[e+r]===t))return!0;return!1}(u,i))return{ok:!1,reason:"signature-mismatch",mimeType:u.mimeType};let m=URL.createObjectURL(new Blob([i],{type:u.mimeType}));return n?.aborted?(URL.revokeObjectURL(m),{ok:!1,reason:"aborted"}):{ok:!0,url:m,documentType:u,revoke:(o=m,a=!1,()=>{a||(URL.revokeObjectURL(o),a=!0)})}}async function d(e,t){return e.InlineBinary?function(e){let t=atob(e),r=new Uint8Array(t.length);for(let e=0;e<t.length;e++)r[e]=t.charCodeAt(e);return r.buffer}(e.InlineBinary):Array.isArray(e)?m(e[0]):e.Value?m(Array.isArray(e.Value)?e.Value[0]:e.Value):"function"==typeof e.retrieveBulkData?m(await e.retrieveBulkData({mediaType:t})):void 0}function m(e){return ArrayBuffer.isView(e)?e.buffer.slice(e.byteOffset,e.byteOffset+e.byteLength):e instanceof ArrayBuffer||"[object ArrayBuffer]"===Object.prototype.toString.call(e)?e:void 0}let y=Object.values({ENCAPSULATED_PDF:"1.2.840.10008.5.1.4.1.1.104.1"});var b=i(870);let g=t.lazy(()=>Promise.resolve().then(i.bind(i,596))),h=r=>{let n,o,a=(0,e.c)(3);return a[0]===Symbol.for("react.memo_cache_sentinel")?(n=(0,b.jsx)("div",{children:"Loading..."}),a[0]=n):n=a[0],a[1]!==r?(o=(0,b.jsx)(t.Suspense,{fallback:n,children:(0,b.jsx)(g,{...r})}),a[1]=r,a[2]=o):o=a[2],o},v={id:r,getViewportModule:()=>[{name:"dicom-pdf",component:t=>{let r,n=(0,e.c)(2);return n[0]!==t?(r=(0,b.jsx)(h,{...t}),n[0]=t,n[1]=r):r=n[1],r}}],getSopClassHandlerModule:function(e){let{servicesManager:t,extensionManager:r}=e;return[{name:"dicom-pdf",sopClassUids:y,getDisplaySetsFromSeries:e=>e.map(e=>{let{Modality:t,SOPInstanceUID:r}=e,{SeriesDescription:a="PDF",MIMETypeOfEncapsulatedDocument:i}=e,{SeriesNumber:u,SeriesInstanceUID:c,StudyInstanceUID:l,SOPClassUID:d}=e,{SeriesDate:m,SeriesTime:b}=o.utils.getLatestInstanceDateTime(e),g=f(i)||"application/pdf",h={instance:e,tag:"EncapsulatedDocument",mimeType:g};return{Modality:t,displaySetInstanceUID:o.utils.guid(),SeriesDescription:a,SeriesNumber:u,SeriesDate:m,SeriesTime:b,SOPInstanceUID:r,SeriesInstanceUID:c,StudyInstanceUID:l,SOPClassHandlerId:n,SOPClassUID:d,referencedImages:null,measurements:null,getDocument:e=>p(h,e),mimeType:g,instances:[e],thumbnailSrc:null,isDerivedDisplaySet:!0,isLoaded:!1,sopClassUids:y,numImageFrames:0,numInstances:1,instance:e,supportsWindowLevel:!0,label:a||`${s().t("Series")} ${u} - ${s().t(t)}`}})}]}}})(),u=i.O(u)})());
|
|
1
|
+
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("@ohif/core"),require("@ohif/i18n")):"function"==typeof define&&define.amd?define(["@ohif/core","@ohif/i18n"],t):"object"==typeof exports?exports["ohif-extension-dicom-pdf"]=t(require("@ohif/core"),require("@ohif/i18n")):e["ohif-extension-dicom-pdf"]=t(e["@ohif/core"],e["@ohif/i18n"])}(globalThis,(e,t)=>(()=>{var r,n,o={822(e,t,r){"use strict";r.r(t),r.d(t,{default:()=>E});var n,o=r(184),a=r(326);function i(e){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function u(e){var t=function(e,t){if("object"!=i(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=i(n))return n;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==i(t)?t:t+""}function s(){if(console&&console.warn){for(var e,t=arguments.length,r=Array(t),n=0;n<t;n++)r[n]=arguments[n];"string"==typeof r[0]&&(r[0]="react-i18next:: ".concat(r[0])),(e=console).warn.apply(e,r)}}r(741),Object.create(null);var c={};function l(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];"string"==typeof t[0]&&c[t[0]]||("string"==typeof t[0]&&(c[t[0]]=new Date),s.apply(void 0,t))}var f=function(e,t){return function(){e.isInitialized?t():e.on("initialized",function r(){setTimeout(function(){e.off("initialized",r)},0),t()})}};function p(e,t,r){e.loadNamespaces(t,f(e,r))}function d(e,t,r,n){"string"==typeof r&&(r=[r]),r.forEach(function(t){0>e.options.ns.indexOf(t)&&e.options.ns.push(t)}),e.loadLanguages(t,f(e,n))}var m=/&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g,y={"&":"&","&":"&","<":"<","<":"<",">":">",">":">","'":"'","'":"'",""":'"',""":'"'," ":" "," ":" ","©":"©","©":"©","®":"®","®":"®","…":"…","…":"…","/":"/","/":"/"},b=function(e){return y[e]},g={bindI18n:"languageChanged",bindI18nStore:"",transEmptyNodeValue:"",transSupportBasicHtmlNodes:!0,transWrapTextNodes:"",transKeepBasicHtmlNodesFor:["br","strong","i","p"],useSuspense:!0,unescape:function(e){return e.replace(m,b)}},h=(0,a.createContext)(),v=function(){var e;function t(){if(!(this instanceof t))throw TypeError("Cannot call a class as a function");this.usedNamespaces={}}return e=[{key:"addUsedNamespaces",value:function(e){var t=this;e.forEach(function(e){t.usedNamespaces[e]||(t.usedNamespaces[e]=!0)})}},{key:"getUsedNamespaces",value:function(){return Object.keys(this.usedNamespaces)}}],function(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,u(n.key),n)}}(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),t}();function S(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function x(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function O(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?x(Object(r),!0).forEach(function(t){var n,o;n=t,o=r[t],(n=u(n))in e?Object.defineProperty(e,n,{value:o,enumerable:!0,configurable:!0,writable:!0}):e[n]=o}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):x(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}var _=function(e,t){var r=(0,a.useRef)();return(0,a.useEffect)(function(){r.current=t?r.current:e},[e,t]),r.current},j=r(2),w=r(870);let k={"unsupported-type":"This document type cannot be displayed","signature-mismatch":"Document content does not match its declared type","retrieve-failed":"Unable to retrieve this document",aborted:"Loading document..."},E=function(e){let t,r,u,s,c,f,m,y,b,x=(0,o.c)(20),{displaySets:E,viewportId:T}=e,N=void 0===T?"pdf-viewport":T,[C,L]=(0,a.useState)(null),[A,P]=(0,a.useState)(null),I=(0,a.useRef)(null),{register:U,unregister:R}=(0,j.useViewportElementRegistration)(N),{t:D}=function(e){var t,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=r.i18n,u=(0,a.useContext)(h)||{},s=u.i18n,c=u.defaultNS,f=o||s||n;if(f&&!f.reportNamespaces&&(f.reportNamespaces=new v),!f){l("You will need to pass in an i18next instance by using initReactI18next");var m=function(e,t){return"string"==typeof t?t:t&&"object"===i(t)&&"string"==typeof t.defaultValue?t.defaultValue:Array.isArray(e)?e[e.length-1]:e},y=[m,{},!1];return y.t=m,y.i18n={},y.ready=!1,y}f.options.react&&void 0!==f.options.react.wait&&l("It seems you are still using the old wait option, you may migrate to the new useSuspense behaviour.");var b=O(O(O({},g),f.options.react),r),x=b.useSuspense,j=b.keyPrefix,w=e||c||f.options&&f.options.defaultNS;w="string"==typeof w?[w]:w||["translation"],f.reportNamespaces.addUsedNamespaces&&f.reportNamespaces.addUsedNamespaces(w);var k=(f.isInitialized||f.initializedStoreOnce)&&w.every(function(e){return function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return t.languages&&t.languages.length?void 0===t.options.ignoreJSONStructure?function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=t.languages[0],o=!!t.options&&t.options.fallbackLng,a=t.languages[t.languages.length-1];if("cimode"===n.toLowerCase())return!0;var i=function(e,r){var n=t.services.backendConnector.state["".concat(e,"|").concat(r)];return -1===n||2===n};return(!(r.bindI18n&&r.bindI18n.indexOf("languageChanging")>-1)||!t.services.backendConnector.backend||!t.isLanguageChangingTo||!!i(t.isLanguageChangingTo,e))&&!!(t.hasResourceBundle(n,e)||!t.services.backendConnector.backend||t.options.resources&&!t.options.partialBundledLanguages||i(n,e)&&(!o||i(a,e)))}(e,t,r):t.hasLoadedNamespace(e,{lng:r.lng,precheck:function(t,n){if(r.bindI18n&&r.bindI18n.indexOf("languageChanging")>-1&&t.services.backendConnector.backend&&t.isLanguageChangingTo&&!n(t.isLanguageChangingTo,e))return!1}}):(l("i18n.languages were undefined or empty",t.languages),!0)}(e,f,b)});function E(){return f.getFixedT(r.lng||null,"fallback"===b.nsMode?w:w[0],j)}var T=function(e){if(Array.isArray(e))return e}(t=(0,a.useState)(E))||function(e){var t=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=t){var r,n,o,a,i=[],u=!0,s=!1;try{o=(t=t.call(e)).next,!1;for(;!(u=(r=o.call(t)).done)&&(i.push(r.value),2!==i.length);u=!0);}catch(e){s=!0,n=e}finally{try{if(!u&&null!=t.return&&(a=t.return(),Object(a)!==a))return}finally{if(s)throw n}}return i}}(t)||function(e){if(e){if("string"==typeof e)return S(e,2);var t=({}).toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?S(e,2):void 0}}(t)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),N=T[0],C=T[1],L=w.join();r.lng&&(L="".concat(r.lng).concat(L));var A=_(L),P=(0,a.useRef)(!0);(0,a.useEffect)(function(){var e=b.bindI18n,t=b.bindI18nStore;function n(){P.current&&C(E)}return P.current=!0,k||x||(r.lng?d(f,r.lng,w,function(){P.current&&C(E)}):p(f,w,function(){P.current&&C(E)})),k&&A&&A!==L&&P.current&&C(E),e&&f&&f.on(e,n),t&&f&&f.store.on(t,n),function(){P.current=!1,e&&f&&e.split(" ").forEach(function(e){return f.off(e,n)}),t&&f&&t.split(" ").forEach(function(e){return f.store.off(e,n)})}},[f,L]);var I=(0,a.useRef)(!0);(0,a.useEffect)(function(){P.current&&!I.current&&C(E),I.current=!1},[f,j]);var U=[N,f,k];if(U.t=N,U.i18n=f,U.ready=k,k||!k&&!x)return U;throw new Promise(function(e){r.lng?d(f,r.lng,w,function(){return e()}):p(f,w,function(){return e()})})}("EncapsulatedDocument"),[F,H]=(0,a.useState)("pdf-yes-click");x[0]===Symbol.for("react.memo_cache_sentinel")?(t=()=>{H("pdf-yes-click")},x[0]=t):t=x[0];let $=t;x[1]===Symbol.for("react.memo_cache_sentinel")?(r=()=>{H("pdf-no-click")},x[1]=r):r=x[1];let V=r;if(x[2]!==R?(u=()=>(document.body.addEventListener("drag",V),function(){document.body.removeEventListener("drag",V),R()}),x[2]=R,x[3]=u):u=x[3],x[4]===Symbol.for("react.memo_cache_sentinel")?(s=[],x[4]=s):s=x[4],(0,a.useEffect)(u,s),E&&E.length>1)throw Error("OHIFCornerstonePdfViewport: only one display set is supported for dicom pdf right now");let{getDocument:B,label:q}=E[0];return x[5]!==B?(c=()=>{let e,t=!1,r=new AbortController,n=async()=>{let n=await B({signal:r.signal});if(t){n.ok&&n.revoke();return}if(!n.ok){L(null),P(n.reason);return}e=n.revoke,L({url:n.url,documentType:n.documentType}),P(null)};return L(null),P(null),n(),()=>{t=!0,r.abort(),e?.()}},f=[B],x[5]=B,x[6]=c,x[7]=f):(c=x[6],f=x[7]),(0,a.useEffect)(c,f),x[8]!==U?(m=e=>{I.current=e,e&&U(e)},x[8]=U,x[9]=m):m=x[9],x[10]!==C||x[11]!==A||x[12]!==q||x[13]!==F||x[14]!==D?(y=C?function({url:e,documentType:t},r,n,o){return"object"===t.strategy?(0,w.jsx)("object",{data:e,type:t.mimeType,className:r,children:(0,w.jsx)("div",{children:n("No viewer installed for {{mimeType}}",{mimeType:t.mimeType})})}):(0,w.jsx)("iframe",{src:e,title:o||n("Encapsulated document"),className:`${r} border-0`,sandbox:t.sandbox??"",referrerPolicy:"no-referrer",allow:""})}(C,F,D,q):(0,w.jsx)("div",{className:"flex h-full w-full items-center justify-center",children:D(A?k[A]:"Loading document...")}),x[10]=C,x[11]=A,x[12]=q,x[13]=F,x[14]=D,x[15]=y):y=x[15],x[16]!==m||x[17]!==y||x[18]!==N?(b=(0,w.jsx)("div",{className:"bg-primary-black text-foreground h-full w-full",onClick:$,ref:m,"data-viewport-id":N,children:y}),x[16]=m,x[17]=y,x[18]=N,x[19]=b):b=x[19],b}},76(e,t,r){"use strict";var n=r(326).__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;t.c=function(e){return n.H.useMemoCache(e)}},60(e,t){"use strict";var r=Symbol.for("react.transitional.element");Symbol.for("react.fragment");t.jsx=function(e,t,n){var o=null;if(void 0!==n&&(o=""+n),void 0!==t.key&&(o=""+t.key),"key"in t)for(var a in n={},t)"key"!==a&&(n[a]=t[a]);else n=t;return{$$typeof:r,type:e,key:o,ref:void 0!==(t=n.ref)?t:null,props:n}}},391(e,t){"use strict";var r=Symbol.for("react.transitional.element"),n=Symbol.for("react.portal"),o=(Symbol.for("react.fragment"),Symbol.for("react.strict_mode"),Symbol.for("react.profiler"),Symbol.for("react.consumer")),a=Symbol.for("react.context"),i=(Symbol.for("react.forward_ref"),Symbol.for("react.suspense")),u=(Symbol.for("react.memo"),Symbol.for("react.lazy")),s=(Symbol.for("react.activity"),Symbol.iterator),c={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},l=Object.assign,f={};function p(e,t,r){this.props=e,this.context=t,this.refs=f,this.updater=r||c}function d(){}function m(e,t,r){this.props=e,this.context=t,this.refs=f,this.updater=r||c}p.prototype.isReactComponent={},p.prototype.setState=function(e,t){if("object"!=typeof e&&"function"!=typeof e&&null!=e)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")},p.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},d.prototype=p.prototype;var y=m.prototype=new d;y.constructor=m,l(y,p.prototype),y.isPureReactComponent=!0;var b={H:null,A:null,T:null,S:null};Object.prototype.hasOwnProperty;function g(e){if(-1===e._status){var t=e._result;(t=t()).then(function(t){(0===e._status||-1===e._status)&&(e._status=1,e._result=t)},function(t){(0===e._status||-1===e._status)&&(e._status=2,e._result=t)}),-1===e._status&&(e._status=0,e._result=t)}if(1===e._status)return e._result.default;throw e._result}"function"==typeof reportError&&reportError,t.Suspense=i,t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=b,t.createContext=function(e){return(e={$$typeof:a,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null}).Provider=e,e.Consumer={$$typeof:o,_context:e},e},t.lazy=function(e){return{$$typeof:u,_payload:{_status:-1,_result:e},_init:g}},t.useContext=function(e){return b.H.useContext(e)},t.useEffect=function(e,t){return b.H.useEffect(e,t)},t.useRef=function(e){return b.H.useRef(e)},t.useState=function(e){return b.H.useState(e)}},184(e,t,r){"use strict";e.exports=r(76)},326(e,t,r){"use strict";e.exports=r(391)},870(e,t,r){"use strict";e.exports=r(60)},741(e){e.exports={area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0}},2(t){"use strict";t.exports=e},545(e){"use strict";e.exports=t}},a={};function i(e){var t=a[e];if(void 0!==t)return t.exports;var r=a[e]={exports:{}};return o[e](r,r.exports,i),r.exports}i.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return i.d(t,{a:t}),t},i.d=(e,t)=>{for(var r in t)i.o(t,r)&&!i.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},i.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),i.r=e=>{"u">typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r=[],i.O=(e,t,n,o)=>{if(t){o=o||0;for(var a=r.length;a>0&&r[a-1][2]>o;a--)r[a]=r[a-1];r[a]=[t,n,o];return}for(var u=1/0,a=0;a<r.length;a++){for(var[t,n,o]=r[a],s=!0,c=0;c<t.length;c++)(!1&o||u>=o)&&Object.keys(i.O).every(e=>i.O[e](t[c]))?t.splice(c--,1):(s=!1,o<u&&(u=o));if(s){r.splice(a--,1);var l=n();void 0!==l&&(e=l)}}return e},i.F={},i.E=e=>{Object.keys(i.F).map(t=>{i.F[t](e)})},n={509:0},i.F.j=e=>{if(!i.o(n,e)||void 0===n[e]){n[e]=null;var t=document.createElement("link");i.nc&&t.setAttribute("nonce",i.nc),t.rel="prefetch",t.as="script",t.href=i.p+i.u(e),document.head.appendChild(t)}},i.O.j=e=>0===n[e],i.O(0,[509],()=>{[509].map(i.E)},5);var u={};return(()=>{"use strict";i.r(u),i.d(u,{default:()=>v});var e=i(184),t=i(326);let r=JSON.parse('{"UU":"@ohif/extension-dicom-pdf"}').UU,n=`${r}.sopClassHandlerModule.dicom-pdf`;var o=i(2),a=i(545),s=i.n(a);let c={"application/pdf":{mimeType:"application/pdf",strategy:"object",signature:[37,80,68,70,45],signatureSearchLimit:1024},"text/html":{mimeType:"text/html",strategy:"iframe",sandbox:""},"application/xhtml+xml":{mimeType:"application/xhtml+xml",strategy:"iframe",sandbox:""},"text/xml":{mimeType:"text/xml",strategy:"iframe",sandbox:""},"application/xml":{mimeType:"application/xml",strategy:"iframe",sandbox:""},"text/plain":{mimeType:"text/plain",strategy:"iframe",sandbox:""}},l={"application/html":"text/html","application/x-pdf":"application/pdf","application/acrobat":"application/pdf","text/pdf":"application/pdf","application/xhtml":"application/xhtml+xml"};function f(e){if("string"==typeof e)return e.split(";")[0].trim().toLowerCase()||void 0}async function p({instance:e,mimeType:t,tag:r="EncapsulatedDocument"},{signal:n}={}){var o;let a,i,u=function(e){let t=f(e);if(t)return c[l[t]??t]}(t);if(!u)return{ok:!1,reason:"unsupported-type",mimeType:t};let s=e?.[r];if(!s)return{ok:!1,reason:"retrieve-failed"};if(n?.aborted)return{ok:!1,reason:"aborted"};try{i=await d(s,u.mimeType)}catch(e){return console.warn("Failed to retrieve encapsulated document",e),{ok:!1,reason:"retrieve-failed"}}if(!i?.byteLength)return{ok:!1,reason:"retrieve-failed"};if(n?.aborted)return{ok:!1,reason:"aborted"};if(!function(e,t){let{signature:r,signatureSearchLimit:n=0}=e;if(!r?.length)return!0;if(t.byteLength<r.length)return!1;let o=Math.min(n,t.byteLength-r.length),a=new Uint8Array(t,0,o+r.length);for(let e=0;e<=o;e++)if(r.every((t,r)=>a[e+r]===t))return!0;return!1}(u,i))return{ok:!1,reason:"signature-mismatch",mimeType:u.mimeType};let m=URL.createObjectURL(new Blob([i],{type:u.mimeType}));return n?.aborted?(URL.revokeObjectURL(m),{ok:!1,reason:"aborted"}):{ok:!0,url:m,documentType:u,revoke:(o=m,a=!1,()=>{a||(URL.revokeObjectURL(o),a=!0)})}}async function d(e,t){return e.InlineBinary?function(e){let t=atob(e),r=new Uint8Array(t.length);for(let e=0;e<t.length;e++)r[e]=t.charCodeAt(e);return r.buffer}(e.InlineBinary):Array.isArray(e)?m(e[0]):e.Value?m(Array.isArray(e.Value)?e.Value[0]:e.Value):"function"==typeof e.retrieveBulkData?m(await e.retrieveBulkData({mediaType:t})):void 0}function m(e){return ArrayBuffer.isView(e)?e.buffer.slice(e.byteOffset,e.byteOffset+e.byteLength):e instanceof ArrayBuffer||"[object ArrayBuffer]"===Object.prototype.toString.call(e)?e:void 0}let y=Object.values({ENCAPSULATED_PDF:"1.2.840.10008.5.1.4.1.1.104.1"});var b=i(870);let g=t.lazy(()=>Promise.resolve().then(i.bind(i,822))),h=r=>{let n,o,a=(0,e.c)(3);return a[0]===Symbol.for("react.memo_cache_sentinel")?(n=(0,b.jsx)("div",{children:"Loading..."}),a[0]=n):n=a[0],a[1]!==r?(o=(0,b.jsx)(t.Suspense,{fallback:n,children:(0,b.jsx)(g,{...r})}),a[1]=r,a[2]=o):o=a[2],o},v={id:r,getViewportModule:()=>[{name:"dicom-pdf",component:t=>{let r,n=(0,e.c)(2);return n[0]!==t?(r=(0,b.jsx)(h,{...t}),n[0]=t,n[1]=r):r=n[1],r}}],getSopClassHandlerModule:function(e){let{servicesManager:t,extensionManager:r}=e;return[{name:"dicom-pdf",sopClassUids:y,getDisplaySetsFromSeries:e=>e.map(e=>{let{Modality:t,SOPInstanceUID:r}=e,{SeriesDescription:a="PDF",MIMETypeOfEncapsulatedDocument:i}=e,{SeriesNumber:u,SeriesInstanceUID:c,StudyInstanceUID:l,SOPClassUID:d}=e,{SeriesDate:m,SeriesTime:b}=o.utils.getLatestInstanceDateTime(e),g=f(i)||"application/pdf",h={instance:e,tag:"EncapsulatedDocument",mimeType:g};return{Modality:t,displaySetInstanceUID:o.utils.guid(),SeriesDescription:a,SeriesNumber:u,SeriesDate:m,SeriesTime:b,SOPInstanceUID:r,SeriesInstanceUID:c,StudyInstanceUID:l,SOPClassHandlerId:n,SOPClassUID:d,referencedImages:null,measurements:null,getDocument:e=>p(h,e),mimeType:g,instances:[e],thumbnailSrc:null,isDerivedDisplaySet:!0,isLoaded:!1,sopClassUids:y,numImageFrames:0,numInstances:1,instance:e,supportsWindowLevel:!0,label:a||`${s().t("Series")} ${u} - ${s().t(t)}`}})}]}}})(),u=i.O(u)})());
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ohif/extension-dicom-pdf",
|
|
3
|
-
"version": "3.14.0-beta.
|
|
3
|
+
"version": "3.14.0-beta.39",
|
|
4
4
|
"description": "OHIF extension for PDF display",
|
|
5
5
|
"author": "OHIF",
|
|
6
6
|
"license": "MIT",
|
|
@@ -21,12 +21,12 @@
|
|
|
21
21
|
"access": "public"
|
|
22
22
|
},
|
|
23
23
|
"peerDependencies": {
|
|
24
|
+
"@ohif/core": "3.14.0-beta.39",
|
|
24
25
|
"dcmjs": "0.52.0",
|
|
25
26
|
"dicom-parser": "1.8.21",
|
|
26
27
|
"hammerjs": "2.0.8",
|
|
27
28
|
"react": "19.2.7",
|
|
28
|
-
"react-i18next": "12.3.1"
|
|
29
|
-
"@ohif/core": "3.14.0-beta.37"
|
|
29
|
+
"react-i18next": "12.3.1"
|
|
30
30
|
},
|
|
31
31
|
"dependencies": {
|
|
32
32
|
"@babel/runtime": "7.29.7",
|