"use strict";(self.webpackChunk_JUPYTERLAB_CORE_OUTPUT=self.webpackChunk_JUPYTERLAB_CORE_OUTPUT||[]).push([[1650,8875],{71650:(e,t,o)=>{o.r(t),o.d(t,{default:()=>l});var n=o(57174),i=o(29202),d=o(52551),a=o(47479);const l=[{id:"@jupyter-notebook/docmanager-extension:opener",autoStart:!0,optional:[d.INotebookShell],provides:i.IDocumentWidgetOpener,activate:(e,t)=>{const o=n.PageConfig.getBaseUrl(),i=e.docRegistry;let d=0;return new class{constructor(){this._opened=new a.Signal(this)}open(a,l){var s,r,u;const c=null!==(s=null==l?void 0:l.type)&&void 0!==s?s:"",p=null==l?void 0:l.ref,v=null===(u=null===(r=null==t?void 0:t.userLayout)||void 0===r?void 0:r[c])||void 0===u?void 0:u.area;if("_noref"!==p&&void 0===v){const e=a.context.path,t=n.PathExt.extname(e);let d="edit";("default"===c&&".ipynb"===t||c.includes("Notebook"))&&(d="notebooks");let l=`${o}${d}/${e}`;return c!==i.defaultWidgetFactory(e).name&&(l=`${l}?factory=${c}`),window.open(l),void a.dispose()}a.id||(a.id="document-manager-"+ ++d),a.title.dataset={type:"document-title",...a.title.dataset},a.isAttached||e.shell.add(a,"main",l||{}),e.shell.activateById(a.id),this._opened.emit(a)}get opened(){return this._opened}}}}]}}]);