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