thebe-lite
Version:
Thebe extension library for WASM kernels via JupyterLite
2 lines • 109 kB
JavaScript
/*! For license information please see 746.thebe-lite.min.js.LICENSE.txt */
"use strict";(self.webpackChunkthebe_lite=self.webpackChunkthebe_lite||[]).push([[746],{2746:(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{var $i=Object.create,Je=Object.defineProperty,Wi=Object.getOwnPropertyDescriptor,Hi=Object.getOwnPropertyNames,Ki=Object.getPrototypeOf,Ji=Object.prototype.hasOwnProperty,pe=(e,t)=>()=>(e&&(t=e(e=0)),t),F=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),Vi=(e,t)=>{for(var i in t)Je(e,i,{get:t[i],enumerable:!0})},Yi=(e,t,i,a)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let n of Hi(t))!Ji.call(e,n)&&n!==i&&Je(e,n,{get:()=>t[n],enumerable:!(a=Wi(t,n))||a.enumerable});return e},de=(e,t,i)=>(i=null!=e?$i(Ki(e)):{},Yi(!t&&e&&e.__esModule?i:Je(i,"default",{value:e,enumerable:!0}),e)),it=F(((e,t)=>{var i,a;i=e,a=function(e){function t(e,t){let i=0;for(let a of e)if(!1===t(a,i++))return!1;return!0}var i;e.ArrayExt=void 0,function(e){function t(e,t,i=0,a=-1){let n,o=e.length;if(0===o)return-1;i=i<0?Math.max(0,i+o):Math.min(i,o-1),n=(a=a<0?Math.max(0,a+o):Math.min(a,o-1))<i?a+1+(o-i):a-i+1;for(let a=0;a<n;++a){let n=(i+a)%o;if(e[n]===t)return n}return-1}function i(e,t,i=-1,a=0){let n,o=e.length;if(0===o)return-1;n=(i=i<0?Math.max(0,i+o):Math.min(i,o-1))<(a=a<0?Math.max(0,a+o):Math.min(a,o-1))?i+1+(o-a):i-a+1;for(let a=0;a<n;++a){let n=(i-a+o)%o;if(e[n]===t)return n}return-1}function a(e,t,i=0,a=-1){let n,o=e.length;if(0===o)return-1;i=i<0?Math.max(0,i+o):Math.min(i,o-1),n=(a=a<0?Math.max(0,a+o):Math.min(a,o-1))<i?a+1+(o-i):a-i+1;for(let a=0;a<n;++a){let n=(i+a)%o;if(t(e[n],n))return n}return-1}function n(e,t,i=-1,a=0){let n,o=e.length;if(0===o)return-1;n=(i=i<0?Math.max(0,i+o):Math.min(i,o-1))<(a=a<0?Math.max(0,a+o):Math.min(a,o-1))?i+1+(o-a):i-a+1;for(let a=0;a<n;++a){let n=(i-a+o)%o;if(t(e[n],n))return n}return-1}function o(e,t=0,i=-1){let a=e.length;if(!(a<=1))for(t=t<0?Math.max(0,t+a):Math.min(t,a-1),i=i<0?Math.max(0,i+a):Math.min(i,a-1);t<i;){let a=e[t],n=e[i];e[t++]=n,e[i--]=a}}function r(e,t){let i=e.length;if(t<0&&(t+=i),t<0||t>=i)return;let a=e[t];for(let a=t+1;a<i;++a)e[a-1]=e[a];return e.length=i-1,a}e.firstIndexOf=t,e.lastIndexOf=i,e.findFirstIndex=a,e.findLastIndex=n,e.findFirstValue=function(e,t,i=0,n=-1){let o=a(e,t,i,n);return-1!==o?e[o]:void 0},e.findLastValue=function(e,t,i=-1,a=0){let o=n(e,t,i,a);return-1!==o?e[o]:void 0},e.lowerBound=function(e,t,i,a=0,n=-1){let o=e.length;if(0===o)return 0;let r=a=a<0?Math.max(0,a+o):Math.min(a,o-1),s=(n=n<0?Math.max(0,n+o):Math.min(n,o-1))-a+1;for(;s>0;){let a=s>>1,n=r+a;i(e[n],t)<0?(r=n+1,s-=a+1):s=a}return r},e.upperBound=function(e,t,i,a=0,n=-1){let o=e.length;if(0===o)return 0;let r=a=a<0?Math.max(0,a+o):Math.min(a,o-1),s=(n=n<0?Math.max(0,n+o):Math.min(n,o-1))-a+1;for(;s>0;){let a=s>>1,n=r+a;i(e[n],t)>0?s=a:(r=n+1,s-=a+1)}return r},e.shallowEqual=function(e,t,i){if(e===t)return!0;if(e.length!==t.length)return!1;for(let a=0,n=e.length;a<n;++a)if(i?!i(e[a],t[a]):e[a]!==t[a])return!1;return!0},e.slice=function(e,t={}){let{start:i,stop:a,step:n}=t;if(void 0===n&&(n=1),0===n)throw new Error("Slice `step` cannot be zero.");let o,r=e.length;void 0===i?i=n<0?r-1:0:i<0?i=Math.max(i+r,n<0?-1:0):i>=r&&(i=n<0?r-1:r),void 0===a?a=n<0?-1:r:a<0?a=Math.max(a+r,n<0?-1:0):a>=r&&(a=n<0?r-1:r),o=n<0&&a>=i||n>0&&i>=a?0:n<0?Math.floor((a-i+1)/n+1):Math.floor((a-i-1)/n+1);let s=[];for(let t=0;t<o;++t)s[t]=e[i+t*n];return s},e.move=function(e,t,i){let a=e.length;if(a<=1||(t=t<0?Math.max(0,t+a):Math.min(t,a-1))===(i=i<0?Math.max(0,i+a):Math.min(i,a-1)))return;let n=e[t],o=t<i?1:-1;for(let a=t;a!==i;a+=o)e[a]=e[a+o];e[i]=n},e.reverse=o,e.rotate=function(e,t,i=0,a=-1){let n=e.length;if(n<=1||(i=i<0?Math.max(0,i+n):Math.min(i,n-1))>=(a=a<0?Math.max(0,a+n):Math.min(a,n-1)))return;let r=a-i+1;if(t>0?t%=r:t<0&&(t=(t%r+r)%r),0===t)return;let s=i+t;o(e,i,s-1),o(e,s,a),o(e,i,a)},e.fill=function(e,t,i=0,a=-1){let n,o=e.length;if(0!==o){i=i<0?Math.max(0,i+o):Math.min(i,o-1),n=(a=a<0?Math.max(0,a+o):Math.min(a,o-1))<i?a+1+(o-i):a-i+1;for(let a=0;a<n;++a)e[(i+a)%o]=t}},e.insert=function(e,t,i){let a=e.length;t=t<0?Math.max(0,t+a):Math.min(t,a);for(let i=a;i>t;--i)e[i]=e[i-1];e[t]=i},e.removeAt=r,e.removeFirstOf=function(e,i,a=0,n=-1){let o=t(e,i,a,n);return-1!==o&&r(e,o),o},e.removeLastOf=function(e,t,a=-1,n=0){let o=i(e,t,a,n);return-1!==o&&r(e,o),o},e.removeAllOf=function(e,t,i=0,a=-1){let n=e.length;if(0===n)return 0;i=i<0?Math.max(0,i+n):Math.min(i,n-1),a=a<0?Math.max(0,a+n):Math.min(a,n-1);let o=0;for(let r=0;r<n;++r)i<=a&&r>=i&&r<=a&&e[r]===t||a<i&&(r<=a||r>=i)&&e[r]===t?o++:o>0&&(e[r-o]=e[r]);return o>0&&(e.length=n-o),o},e.removeFirstWhere=function(e,t,i=0,n=-1){let o,s=a(e,t,i,n);return-1!==s&&(o=r(e,s)),{index:s,value:o}},e.removeLastWhere=function(e,t,i=-1,a=0){let o,s=n(e,t,i,a);return-1!==s&&(o=r(e,s)),{index:s,value:o}},e.removeAllWhere=function(e,t,i=0,a=-1){let n=e.length;if(0===n)return 0;i=i<0?Math.max(0,i+n):Math.min(i,n-1),a=a<0?Math.max(0,a+n):Math.min(a,n-1);let o=0;for(let r=0;r<n;++r)i<=a&&r>=i&&r<=a&&t(e[r],r)||a<i&&(r<=a||r>=i)&&t(e[r],r)?o++:o>0&&(e[r-o]=e[r]);return o>0&&(e.length=n-o),o}}(e.ArrayExt||(e.ArrayExt={})),(i||(i={})).rangeLength=function(e,t,i){return 0===i?1/0:e>t&&i>0||e<t&&i<0?0:Math.ceil((t-e)/i)},e.StringExt=void 0,function(e){function t(e,t,i=0){let a=new Array(t.length);for(let n=0,o=i,r=t.length;n<r;++n,++o){if(o=e.indexOf(t[n],o),-1===o)return null;a[n]=o}return a}e.findIndices=t,e.matchSumOfSquares=function(e,i,a=0){let n=t(e,i,a);if(!n)return null;let o=0;for(let e=0,t=n.length;e<t;++e){let t=n[e]-a;o+=t*t}return{score:o,indices:n}},e.matchSumOfDeltas=function(e,i,a=0){let n=t(e,i,a);if(!n)return null;let o=0,r=a-1;for(let e=0,t=n.length;e<t;++e){let t=n[e];o+=t-r-1,r=t}return{score:o,indices:n}},e.highlight=function(e,t,i){let a=[],n=0,o=0,r=t.length;for(;n<r;){let s=t[n],l=t[n];for(;++n<r&&t[n]===l+1;)l++;o<s&&a.push(e.slice(o,s)),s<l+1&&a.push(i(e.slice(s,l+1))),o=l+1}return o<e.length&&a.push(e.slice(o)),a},e.cmp=function(e,t){return e<t?-1:e>t?1:0}}(e.StringExt||(e.StringExt={})),e.chain=function*(...e){for(let t of e)yield*t},e.each=function(e,t){let i=0;for(let a of e)if(!1===t(a,i++))return},e.empty=function*(){},e.enumerate=function*(e,t=0){for(let i of e)yield[t++,i]},e.every=t,e.filter=function*(e,t){let i=0;for(let a of e)t(a,i++)&&(yield a)},e.find=function(e,t){let i=0;for(let a of e)if(t(a,i++))return a},e.findIndex=function(e,t){let i=0;for(let a of e)if(t(a,i++))return i-1;return-1},e.map=function*(e,t){let i=0;for(let a of e)yield t(a,i++)},e.max=function(e,t){let i;for(let a of e)void 0!==i?t(a,i)>0&&(i=a):i=a;return i},e.min=function(e,t){let i;for(let a of e)void 0!==i?t(a,i)<0&&(i=a):i=a;return i},e.minmax=function(e,t){let i,a,n=!0;for(let o of e)n?(i=o,a=o,n=!1):t(o,i)<0?i=o:t(o,a)>0&&(a=o);return n?void 0:[i,a]},e.once=function*(e){yield e},e.range=function*(e,t,a){void 0===t?(t=e,e=0,a=1):void 0===a&&(a=1);let n=i.rangeLength(e,t,a);for(let t=0;t<n;t++)yield e+a*t},e.reduce=function(e,t,i){let a=e[Symbol.iterator](),n=0,o=a.next();if(o.done&&void 0===i)throw new TypeError("Reduce of empty iterable with no initial value.");if(o.done)return i;let r,s,l=a.next();if(l.done&&void 0===i)return o.value;if(l.done)return t(i,o.value,n++);for(r=t(void 0===i?o.value:t(i,o.value,n++),l.value,n++);!(s=a.next()).done;)r=t(r,s.value,n++);return r},e.repeat=function*(e,t){for(;0<t--;)yield e},e.retro=function*(e){if("function"==typeof e.retro)yield*e.retro();else for(let t=e.length-1;t>-1;t--)yield e[t]},e.some=function(e,t){let i=0;for(let a of e)if(t(a,i++))return!0;return!1},e.stride=function*(e,t){let i=0;for(let a of e)i++%t==0&&(yield a)},e.take=function*(e,t){if(t<1)return;let i,a=e[Symbol.iterator]();for(;0<t--&&!(i=a.next()).done;)yield i.value},e.toArray=function(e){return Array.from(e)},e.toObject=function(e){let t={};for(let[i,a]of e)t[i]=a;return t},e.topologicSort=function(e){let t=[],i=new Set,a=new Map;for(let t of e)n(t);for(let[e]of a)o(e);return t;function n(e){let[t,i]=e,n=a.get(i);n?n.push(t):a.set(i,[t])}function o(e){if(i.has(e))return;i.add(e);let n=a.get(e);if(n)for(let e of n)o(e);t.push(e)}},e.zip=function*(...e){let i=e.map((e=>e[Symbol.iterator]())),a=i.map((e=>e.next()));for(;t(a,(e=>!e.done));a=i.map((e=>e.next())))yield a.map((e=>e.value))}},"object"==typeof e&&void 0!==t?a(e):"function"==typeof define&&__webpack_require__.amdO?define(["exports"],a):a((i="undefined"!=typeof globalThis?globalThis:i||self).lumino_algorithm={})})),me=F(((e,t)=>{var i,a;i=e,a=function(e,t){var i;function a(e){let t=0;for(let i=0,a=e.length;i<a;++i)i%4==0&&(t=4294967295*Math.random()>>>0),e[i]=255&t,t>>>=8}e.JSONExt=void 0,function(e){function t(e){return null===e||"boolean"==typeof e||"number"==typeof e||"string"==typeof e}function i(e){return Array.isArray(e)}e.emptyObject=Object.freeze({}),e.emptyArray=Object.freeze([]),e.isPrimitive=t,e.isArray=i,e.isObject=function(e){return!t(e)&&!i(e)},e.deepEqual=function e(a,n){if(a===n)return!0;if(t(a)||t(n))return!1;let o=i(a),r=i(n);return o===r&&(o&&r?function(t,i){if(t===i)return!0;if(t.length!==i.length)return!1;for(let a=0,n=t.length;a<n;++a)if(!e(t[a],i[a]))return!1;return!0}(a,n):function(t,i){if(t===i)return!0;for(let e in t)if(void 0!==t[e]&&!(e in i))return!1;for(let e in i)if(void 0!==i[e]&&!(e in t))return!1;for(let a in t){let n=t[a],o=i[a];if(!(void 0===n&&void 0===o||void 0!==n&&void 0!==o&&e(n,o)))return!1}return!0}(a,n))},e.deepCopy=function e(a){return t(a)?a:i(a)?function(t){let i=new Array(t.length);for(let a=0,n=t.length;a<n;++a)i[a]=e(t[a]);return i}(a):function(t){let i={};for(let a in t){let n=t[a];void 0!==n&&(i[a]=e(n))}return i}(a)}}(e.JSONExt||(e.JSONExt={})),function(e){class i{constructor(e){var t,i,a,n;this._activated=!1,this._promise=null,this._service=null,this.id=e.id,this.description=null!==(t=e.description)&&void 0!==t?t:"",this.activate=e.activate,this.deactivate=null!==(i=e.deactivate)&&void 0!==i?i:null,this.provides=null!==(a=e.provides)&&void 0!==a?a:null,this.autoStart=null!==(n=e.autoStart)&&void 0!==n&&n,this.requires=e.requires?e.requires.slice():[],this.optional=e.optional?e.optional.slice():[]}get activated(){return this._activated}set activated(e){this._activated=e}get service(){return this._service}set service(e){this._service=e}get promise(){return this._promise}set promise(e){this._promise=e}}e.createPluginData=function(e){return new i(e)},e.ensureNoCycle=function(e,t,i){let a=[...e.requires,...e.optional],n=a=>{if(a===e.provides)return!0;let r=i.get(a);if(!r)return!1;let s=t.get(r),l=[...s.requires,...s.optional];return 0!==l.length&&(o.push(r),!!l.some(n)||(o.pop(),!1))};if(!e.provides||0===a.length)return;let o=[e.id];if(a.some(n))throw new ReferenceError(`Cycle detected: ${o.join(" -> ")}.`)},e.findDependents=function(e,i,a){let n=new Array,o=e=>{let t=i.get(e),o=[...t.requires,...t.optional];n.push(...o.reduce(((t,i)=>{let n=a.get(i);return n&&t.push([e,n]),t}),[]))};for(let e of i.keys())o(e);let r=n.filter((t=>t[1]===e)),s=0;for(;r.length>s;){let e=r.length,t=new Set(r.map((e=>e[0])));for(let e of t)n.filter((t=>t[1]===e)).forEach((e=>{r.includes(e)||r.push(e)}));s=e}let l=t.topologicSort(r),p=l.findIndex((t=>t===e));return-1===p?[e]:l.slice(0,p+1)},e.collectStartupPlugins=function(e,t){let i=new Set;for(let t of e.keys())!0===e.get(t).autoStart&&i.add(t);if(t.startPlugins)for(let e of t.startPlugins)i.add(e);if(t.ignorePlugins)for(let e of t.ignorePlugins)i.delete(e);return Array.from(i)}}(i||(i={})),e.Random=void 0,(e.Random||(e.Random={})).getRandomValues=(()=>{let e="undefined"!=typeof window&&(window.crypto||window.msCrypto)||null;return e&&"function"==typeof e.getRandomValues?function(t){return e.getRandomValues(t)}:a})(),e.UUID=void 0,(e.UUID||(e.UUID={})).uuid4=function(e){let t=new Uint8Array(16),i=new Array(256);for(let e=0;e<16;++e)i[e]="0"+e.toString(16);for(let e=16;e<256;++e)i[e]=e.toString(16);return function(){return e(t),t[6]=64|15&t[6],t[8]=128|63&t[8],i[t[0]]+i[t[1]]+i[t[2]]+i[t[3]]+"-"+i[t[4]]+i[t[5]]+"-"+i[t[6]]+i[t[7]]+"-"+i[t[8]]+i[t[9]]+"-"+i[t[10]]+i[t[11]]+i[t[12]]+i[t[13]]+i[t[14]]+i[t[15]]}}(e.Random.getRandomValues),e.MimeData=class{constructor(){this._types=[],this._values=[]}types(){return this._types.slice()}hasData(e){return-1!==this._types.indexOf(e)}getData(e){let t=this._types.indexOf(e);return-1!==t?this._values[t]:void 0}setData(e,t){this.clearData(e),this._types.push(e),this._values.push(t)}clearData(e){let t=this._types.indexOf(e);-1!==t&&(this._types.splice(t,1),this._values.splice(t,1))}clear(){this._types.length=0,this._values.length=0}},e.PluginRegistry=class{constructor(e={}){this._application=null,this._validatePlugin=()=>!0,this._plugins=new Map,this._services=new Map,e.validatePlugin&&(console.info("Plugins may be rejected by the custom validation plugin method."),this._validatePlugin=e.validatePlugin)}get application(){return this._application}set application(e){if(null!==this._application)throw Error("PluginRegistry.application is already set. It cannot be overridden.");this._application=e}get deferredPlugins(){return Array.from(this._plugins).filter((([e,t])=>"defer"===t.autoStart)).map((([e,t])=>e))}getPluginDescription(e){var t,i;return null!==(i=null===(t=this._plugins.get(e))||void 0===t?void 0:t.description)&&void 0!==i?i:""}hasPlugin(e){return this._plugins.has(e)}isPluginActivated(e){var t,i;return null!==(i=null===(t=this._plugins.get(e))||void 0===t?void 0:t.activated)&&void 0!==i&&i}listPlugins(){return Array.from(this._plugins.keys())}registerPlugin(e){if(this._plugins.has(e.id))throw new TypeError(`Plugin '${e.id}' is already registered.`);if(!this._validatePlugin(e))throw new Error(`Plugin '${e.id}' is not valid.`);let t=i.createPluginData(e);i.ensureNoCycle(t,this._plugins,this._services),t.provides&&this._services.set(t.provides,t.id),this._plugins.set(t.id,t)}registerPlugins(e){for(let t of e)this.registerPlugin(t)}deregisterPlugin(e,t){let i=this._plugins.get(e);if(i){if(i.activated&&!t)throw new Error(`Plugin '${e}' is still active.`);this._plugins.delete(e)}}async activatePlugin(e){let t=this._plugins.get(e);if(!t)throw new ReferenceError(`Plugin '${e}' is not registered.`);if(t.activated)return;if(t.promise)return t.promise;let i=t.requires.map((e=>this.resolveRequiredService(e))),a=t.optional.map((e=>this.resolveOptionalService(e)));return t.promise=Promise.all([...i,...a]).then((e=>t.activate.apply(void 0,[this.application,...e]))).then((e=>{t.service=e,t.activated=!0,t.promise=null})).catch((e=>{throw t.promise=null,e})),t.promise}async activatePlugins(e,t={}){switch(e){case"defer":{let e=this.deferredPlugins.filter((e=>this._plugins.get(e).autoStart)).map((e=>this.activatePlugin(e)));await Promise.all(e);break}case"startUp":{let e=i.collectStartupPlugins(this._plugins,t).map((async e=>{try{return await this.activatePlugin(e)}catch(t){console.error(`Plugin '${e}' failed to activate.`,t)}}));await Promise.all(e);break}}}async deactivatePlugin(e){let t=this._plugins.get(e);if(!t)throw new ReferenceError(`Plugin '${e}' is not registered.`);if(!t.activated)return[];if(!t.deactivate)throw new TypeError(`Plugin '${e}'#deactivate() method missing`);let a=i.findDependents(e,this._plugins,this._services),n=a.map((e=>this._plugins.get(e)));for(let t of n)if(!t.deactivate)throw new TypeError(`Plugin ${t.id}#deactivate() method missing (depends on ${e})`);for(let e of n){let t=[...e.requires,...e.optional].map((e=>{let t=this._services.get(e);return t?this._plugins.get(t).service:null}));await e.deactivate(this.application,...t),e.service=null,e.activated=!1}return a.pop(),a}async resolveRequiredService(e){let t=this._services.get(e);if(!t)throw new TypeError(`No provider for: ${e.name}.`);let i=this._plugins.get(t);return i.activated||await this.activatePlugin(t),i.service}async resolveOptionalService(e){let t=this._services.get(e);if(!t)return null;let i=this._plugins.get(t);if(!i.activated)try{await this.activatePlugin(t)}catch(e){return console.error(e),null}return i.service}},e.PromiseDelegate=class{constructor(){this.promise=new Promise(((e,t)=>{this._resolve=e,this._reject=t}))}resolve(e){(0,this._resolve)(e)}reject(e){(0,this._reject)(e)}},e.Token=class{constructor(e,t){this.name=e,this.description=null!=t?t:"",this._tokenStructuralPropertyT=null}}},"object"==typeof e&&void 0!==t?a(e,it()):"function"==typeof define&&__webpack_require__.amdO?define(["exports","@lumino/algorithm"],a):a((i="undefined"!=typeof globalThis?globalThis:i||self).lumino_coreutils={},i.lumino_algorithm)})),It=F(((e,t)=>{var i,a;i=e,a=function(e,t,i){class a{constructor(e){this.sender=e}connect(e,t){return o.connect(this,e,t)}disconnect(e,t){return o.disconnect(this,e,t)}emit(e){o.emit(this,e)}}var n,o;(n=a||(a={})).disconnectBetween=function(e,t){o.disconnectBetween(e,t)},n.disconnectSender=function(e){o.disconnectSender(e)},n.disconnectReceiver=function(e){o.disconnectReceiver(e)},n.disconnectAll=function(e){o.disconnectAll(e)},n.clearData=function(e){o.disconnectAll(e)},n.getExceptionHandler=function(){return o.exceptionHandler},n.setExceptionHandler=function(e){let t=o.exceptionHandler;return o.exceptionHandler=e,t};class r extends a{constructor(){super(...arguments),this._pending=new i.PromiseDelegate}async*[Symbol.asyncIterator](){let e=this._pending;for(;;)try{let{args:t,next:i}=await e.promise;e=i,yield t}catch{return}}emit(e){let t=this._pending,a=this._pending=new i.PromiseDelegate;t.resolve({args:e,next:a}),super.emit(e)}stop(){this._pending.promise.catch((()=>{})),this._pending.reject("stop"),this._pending=new i.PromiseDelegate}}(function(e){function i(e){let t=n.get(e);if(t&&0!==t.length){for(let e of t){if(!e.signal)continue;let t=e.thisArg||e.slot;e.signal=null,c(o.get(t))}c(t)}}function a(e){let t=o.get(e);if(t&&0!==t.length){for(let e of t){if(!e.signal)continue;let t=e.signal.sender;e.signal=null,c(n.get(t))}c(t)}}e.exceptionHandler=e=>{console.error(e)},e.connect=function(e,t,i){i=i||void 0;let a=n.get(e.sender);if(a||(a=[],n.set(e.sender,a)),l(a,e,t,i))return!1;let r=i||t,s=o.get(r);s||(s=[],o.set(r,s));let p={signal:e,slot:t,thisArg:i};return a.push(p),s.push(p),!0},e.disconnect=function(e,t,i){i=i||void 0;let a=n.get(e.sender);if(!a||0===a.length)return!1;let r=l(a,e,t,i);if(!r)return!1;let s=i||t,p=o.get(s);return r.signal=null,c(a),c(p),!0},e.disconnectBetween=function(e,t){let i=n.get(e);if(!i||0===i.length)return;let a=o.get(t);if(a&&0!==a.length){for(let t of a)t.signal&&t.signal.sender===e&&(t.signal=null);c(i),c(a)}},e.disconnectSender=i,e.disconnectReceiver=a,e.disconnectAll=function(e){i(e),a(e)},e.emit=function(e,t){let i=n.get(e.sender);if(i&&0!==i.length)for(let a=0,n=i.length;a<n;++a){let n=i[a];n.signal===e&&p(n,t)}};let n=new WeakMap,o=new WeakMap,r=new Set,s="function"==typeof requestAnimationFrame?requestAnimationFrame:setImmediate;function l(e,i,a,n){return t.find(e,(e=>e.signal===i&&e.slot===a&&e.thisArg===n))}function p(t,i){let{signal:a,slot:n,thisArg:o}=t;try{n.call(o,a.sender,i)}catch(t){e.exceptionHandler(t)}}function c(e){0===r.size&&s(d),r.add(e)}function d(){r.forEach(m),r.clear()}function m(e){t.ArrayExt.removeAllWhere(e,u)}function u(e){return null===e.signal}})(o||(o={})),e.Signal=a,e.Stream=r},"object"==typeof e&&void 0!==t?a(e,it(),me()):"function"==typeof define&&__webpack_require__.amdO?define(["exports","@lumino/algorithm","@lumino/coreutils"],a):a((i="undefined"!=typeof globalThis?globalThis:i||self).lumino_signaling={},i.lumino_algorithm,i.lumino_coreutils)})),Mt=F((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.ActivityMonitor=void 0;var t=It();e.ActivityMonitor=class{constructor(e){this._timer=-1,this._timeout=-1,this._isDisposed=!1,this._activityStopped=new t.Signal(this),e.signal.connect(this._onSignalFired,this),this._timeout=e.timeout||1e3}get activityStopped(){return this._activityStopped}get timeout(){return this._timeout}set timeout(e){this._timeout=e}get isDisposed(){return this._isDisposed}dispose(){this._isDisposed||(this._isDisposed=!0,t.Signal.clearData(this))}_onSignalFired(e,t){clearTimeout(this._timer),this._sender=e,this._args=t,this._timer=setTimeout((()=>{this._activityStopped.emit({sender:this._sender,args:this._args})}),this._timeout)}}})),Nt=F((e=>{Object.defineProperty(e,"__esModule",{value:!0})})),Ut=F((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.LruCache=void 0,e.LruCache=class{constructor(e={}){this._map=new Map,this._maxSize=(null==e?void 0:e.maxSize)||128}get size(){return this._map.size}clear(){this._map.clear()}get(e){let t=this._map.get(e)||null;return null!=t&&(this._map.delete(e),this._map.set(e,t)),t}set(e,t){this._map.size>=this._maxSize&&this._map.delete(this._map.keys().next().value),this._map.set(e,t)}}})),Lt=F((e=>{var t;Object.defineProperty(e,"__esModule",{value:!0}),e.MarkdownCodeBlocks=void 0,function(e){e.CODE_BLOCK_MARKER="```";let t=[".markdown",".mdown",".mkdn",".md",".mkd",".mdwn",".mdtxt",".mdtext",".text",".txt",".Rmd"];class i{constructor(e){this.startLine=e,this.code="",this.endLine=-1}}e.MarkdownCodeBlock=i,e.isMarkdown=function(e){return t.indexOf(e)>-1},e.findMarkdownCodeBlocks=function(t){if(!t||""===t)return[];let a=t.split("\n"),n=[],o=null;for(let t=0;t<a.length;t++){let r=a[t],s=0===r.indexOf(e.CODE_BLOCK_MARKER),l=null!=o;if(s||l)if(l)o&&(s?(o.endLine=t-1,n.push(o),o=null):o.code+=r+"\n");else{o=new i(t);let a=r.indexOf(e.CODE_BLOCK_MARKER),s=r.lastIndexOf(e.CODE_BLOCK_MARKER);a!==s&&(o.code=r.substring(a+e.CODE_BLOCK_MARKER.length,s),o.endLine=t,n.push(o),o=null)}}return n}}(t||(e.MarkdownCodeBlocks=t={}))})),Wt=F(((e,t)=>{function i(e){return!("number"!=typeof e&&!/^0x[0-9a-f]+$/i.test(e))||/^[-+]?(?:\d+(?:\.\d*)?|\.\d+)(e[-+]?\d+)?$/.test(e)}function a(e,t){return"constructor"===t&&"function"==typeof e[t]||"__proto__"===t}t.exports=function(e,t){t||(t={});var n={bools:{},strings:{},unknownFn:null};"function"==typeof t.unknown&&(n.unknownFn=t.unknown),"boolean"==typeof t.boolean&&t.boolean?n.allBools=!0:[].concat(t.boolean).filter(Boolean).forEach((function(e){n.bools[e]=!0}));var o={};function r(e){return o[e].some((function(e){return n.bools[e]}))}Object.keys(t.alias||{}).forEach((function(e){o[e]=[].concat(t.alias[e]),o[e].forEach((function(t){o[t]=[e].concat(o[e].filter((function(e){return t!==e})))}))})),[].concat(t.string).filter(Boolean).forEach((function(e){n.strings[e]=!0,o[e]&&[].concat(o[e]).forEach((function(e){n.strings[e]=!0}))}));var s=t.default||{},l={_:[]};function p(e,t,i){for(var o=e,r=0;r<t.length-1;r++){var s=t[r];if(a(o,s))return;void 0===o[s]&&(o[s]={}),(o[s]===Object.prototype||o[s]===Number.prototype||o[s]===String.prototype)&&(o[s]={}),o[s]===Array.prototype&&(o[s]=[]),o=o[s]}var l=t[t.length-1];a(o,l)||((o===Object.prototype||o===Number.prototype||o===String.prototype)&&(o={}),o===Array.prototype&&(o=[]),void 0===o[l]||n.bools[l]||"boolean"==typeof o[l]?o[l]=i:Array.isArray(o[l])?o[l].push(i):o[l]=[o[l],i])}function c(e,t,a){if(!a||!n.unknownFn||function(e,t){return n.allBools&&/^--[^=]+$/.test(t)||n.strings[e]||n.bools[e]||o[e]}(e,a)||!1!==n.unknownFn(a)){var r=!n.strings[e]&&i(t)?Number(t):t;p(l,e.split("."),r),(o[e]||[]).forEach((function(e){p(l,e.split("."),r)}))}}Object.keys(n.bools).forEach((function(e){c(e,void 0!==s[e]&&s[e])}));var d=[];-1!==e.indexOf("--")&&(d=e.slice(e.indexOf("--")+1),e=e.slice(0,e.indexOf("--")));for(var m=0;m<e.length;m++){var u,f,h=e[m];if(/^--.+=/.test(h)){var v=h.match(/^--([^=]+)=([\s\S]*)$/);u=v[1];var g=v[2];n.bools[u]&&(g="false"!==g),c(u,g,h)}else if(/^--no-.+/.test(h))c(u=h.match(/^--no-(.+)/)[1],!1,h);else if(/^--.+/.test(h))u=h.match(/^--(.+)/)[1],void 0===(f=e[m+1])||/^(-|--)[^-]/.test(f)||n.bools[u]||n.allBools||o[u]&&r(u)?/^(true|false)$/.test(f)?(c(u,"true"===f,h),m+=1):c(u,!n.strings[u]||"",h):(c(u,f,h),m+=1);else if(/^-[^-]+/.test(h)){for(var x=h.slice(1,-1).split(""),y=!1,w=0;w<x.length;w++)if("-"!==(f=h.slice(w+2))){if(/[A-Za-z]/.test(x[w])&&"="===f[0]){c(x[w],f.slice(1),h),y=!0;break}if(/[A-Za-z]/.test(x[w])&&/-?\d+(\.\d*)?(e-?\d+)?$/.test(f)){c(x[w],f,h),y=!0;break}if(x[w+1]&&x[w+1].match(/\W/)){c(x[w],h.slice(w+2),h),y=!0;break}c(x[w],!n.strings[x[w]]||"",h)}else c(x[w],f,h);u=h.slice(-1)[0],!y&&"-"!==u&&(!e[m+1]||/^(-|--)[^-]/.test(e[m+1])||n.bools[u]||o[u]&&r(u)?e[m+1]&&/^(true|false)$/.test(e[m+1])?(c(u,"true"===e[m+1],h),m+=1):c(u,!n.strings[u]||"",h):(c(u,e[m+1],h),m+=1))}else if((!n.unknownFn||!1!==n.unknownFn(h))&&l._.push(n.strings._||!i(h)?h:Number(h)),t.stopEarly){l._.push.apply(l._,e.slice(m+1));break}}return Object.keys(s).forEach((function(e){(function(e,t){var i=e;return t.slice(0,-1).forEach((function(e){i=i[e]||{}})),t[t.length-1]in i})(l,e.split("."))||(p(l,e.split("."),s[e]),(o[e]||[]).forEach((function(t){p(l,t.split("."),s[e])})))})),t["--"]?l["--"]=d.slice():d.forEach((function(e){l._.push(e)})),l}})),Te=F(((e,t)=>{function i(e){if("string"!=typeof e)throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}function a(e,t){for(var i,a="",n=0,o=-1,r=0,s=0;s<=e.length;++s){if(s<e.length)i=e.charCodeAt(s);else{if(47===i)break;i=47}if(47===i){if(o!==s-1&&1!==r)if(o!==s-1&&2===r){if(a.length<2||2!==n||46!==a.charCodeAt(a.length-1)||46!==a.charCodeAt(a.length-2))if(a.length>2){var l=a.lastIndexOf("/");if(l!==a.length-1){-1===l?(a="",n=0):n=(a=a.slice(0,l)).length-1-a.lastIndexOf("/"),o=s,r=0;continue}}else if(2===a.length||1===a.length){a="",n=0,o=s,r=0;continue}t&&(a.length>0?a+="/..":a="..",n=2)}else a.length>0?a+="/"+e.slice(o+1,s):a=e.slice(o+1,s),n=s-o-1;o=s,r=0}else 46===i&&-1!==r?++r:r=-1}return a}var n={resolve:function(){for(var e,t="",n=!1,o=arguments.length-1;o>=-1&&!n;o--){var r;o>=0?r=arguments[o]:(void 0===e&&(e=process.cwd()),r=e),i(r),0!==r.length&&(t=r+"/"+t,n=47===r.charCodeAt(0))}return t=a(t,!n),n?t.length>0?"/"+t:"/":t.length>0?t:"."},normalize:function(e){if(i(e),0===e.length)return".";var t=47===e.charCodeAt(0),n=47===e.charCodeAt(e.length-1);return 0===(e=a(e,!t)).length&&!t&&(e="."),e.length>0&&n&&(e+="/"),t?"/"+e:e},isAbsolute:function(e){return i(e),e.length>0&&47===e.charCodeAt(0)},join:function(){if(0===arguments.length)return".";for(var e,t=0;t<arguments.length;++t){var a=arguments[t];i(a),a.length>0&&(void 0===e?e=a:e+="/"+a)}return void 0===e?".":n.normalize(e)},relative:function(e,t){if(i(e),i(t),e===t||(e=n.resolve(e))===(t=n.resolve(t)))return"";for(var a=1;a<e.length&&47===e.charCodeAt(a);++a);for(var o=e.length,r=o-a,s=1;s<t.length&&47===t.charCodeAt(s);++s);for(var l=t.length-s,p=r<l?r:l,c=-1,d=0;d<=p;++d){if(d===p){if(l>p){if(47===t.charCodeAt(s+d))return t.slice(s+d+1);if(0===d)return t.slice(s+d)}else r>p&&(47===e.charCodeAt(a+d)?c=d:0===d&&(c=0));break}var m=e.charCodeAt(a+d);if(m!==t.charCodeAt(s+d))break;47===m&&(c=d)}var u="";for(d=a+c+1;d<=o;++d)(d===o||47===e.charCodeAt(d))&&(0===u.length?u+="..":u+="/..");return u.length>0?u+t.slice(s+c):(s+=c,47===t.charCodeAt(s)&&++s,t.slice(s))},_makeLong:function(e){return e},dirname:function(e){if(i(e),0===e.length)return".";for(var t=e.charCodeAt(0),a=47===t,n=-1,o=!0,r=e.length-1;r>=1;--r)if(47===(t=e.charCodeAt(r))){if(!o){n=r;break}}else o=!1;return-1===n?a?"/":".":a&&1===n?"//":e.slice(0,n)},basename:function(e,t){if(void 0!==t&&"string"!=typeof t)throw new TypeError('"ext" argument must be a string');i(e);var a,n=0,o=-1,r=!0;if(void 0!==t&&t.length>0&&t.length<=e.length){if(t.length===e.length&&t===e)return"";var s=t.length-1,l=-1;for(a=e.length-1;a>=0;--a){var p=e.charCodeAt(a);if(47===p){if(!r){n=a+1;break}}else-1===l&&(r=!1,l=a+1),s>=0&&(p===t.charCodeAt(s)?-1==--s&&(o=a):(s=-1,o=l))}return n===o?o=l:-1===o&&(o=e.length),e.slice(n,o)}for(a=e.length-1;a>=0;--a)if(47===e.charCodeAt(a)){if(!r){n=a+1;break}}else-1===o&&(r=!1,o=a+1);return-1===o?"":e.slice(n,o)},extname:function(e){i(e);for(var t=-1,a=0,n=-1,o=!0,r=0,s=e.length-1;s>=0;--s){var l=e.charCodeAt(s);if(47!==l)-1===n&&(o=!1,n=s+1),46===l?-1===t?t=s:1!==r&&(r=1):-1!==t&&(r=-1);else if(!o){a=s+1;break}}return-1===t||-1===n||0===r||1===r&&t===n-1&&t===a+1?"":e.slice(t,n)},format:function(e){if(null===e||"object"!=typeof e)throw new TypeError('The "pathObject" argument must be of type Object. Received type '+typeof e);return function(e,t){var i=t.dir||t.root,a=t.base||(t.name||"")+(t.ext||"");return i?i===t.root?i+a:i+"/"+a:a}(0,e)},parse:function(e){i(e);var t={root:"",dir:"",base:"",ext:"",name:""};if(0===e.length)return t;var a,n=e.charCodeAt(0),o=47===n;o?(t.root="/",a=1):a=0;for(var r=-1,s=0,l=-1,p=!0,c=e.length-1,d=0;c>=a;--c)if(47!==(n=e.charCodeAt(c)))-1===l&&(p=!1,l=c+1),46===n?-1===r?r=c:1!==d&&(d=1):-1!==r&&(d=-1);else if(!p){s=c+1;break}return-1===r||-1===l||0===d||1===d&&r===l-1&&r===s+1?-1!==l&&(t.base=t.name=0===s&&o?e.slice(1,l):e.slice(s,l)):(0===s&&o?(t.name=e.slice(1,r),t.base=e.slice(1,l)):(t.name=e.slice(s,r),t.base=e.slice(s,l)),t.ext=e.slice(r,l)),s>0?t.dir=e.slice(0,s-1):o&&(t.dir="/"),t},sep:"/",delimiter:":",win32:null,posix:null};n.posix=n,t.exports=n})),Vt=F(((e,t)=>{t.exports=function(e,t){if(t=t.split(":")[0],!(e=+e))return!1;switch(t){case"http":case"ws":return 80!==e;case"https":case"wss":return 443!==e;case"ftp":return 21!==e;case"gopher":return 70!==e;case"file":return!1}return 0!==e}})),Zt=F((e=>{var t=Object.prototype.hasOwnProperty;function i(e){try{return decodeURIComponent(e.replace(/\+/g," "))}catch{return null}}function a(e){try{return encodeURIComponent(e)}catch{return null}}e.stringify=function(e,i){i=i||"";var n,o,r=[];for(o in"string"!=typeof i&&(i="?"),e)if(t.call(e,o)){if(!(n=e[o])&&(null==n||isNaN(n))&&(n=""),o=a(o),n=a(n),null===o||null===n)continue;r.push(o+"="+n)}return r.length?i+r.join("&"):""},e.parse=function(e){for(var t,a=/([^=?#&]+)=?([^&]*)/g,n={};t=a.exec(e);){var o=i(t[1]),r=i(t[2]);null===o||null===r||o in n||(n[o]=r)}return n}})),oi=F(((e,t)=>{var i=Vt(),a=Zt(),n=/^[\x00-\x20\u00a0\u1680\u2000-\u200a\u2028\u2029\u202f\u205f\u3000\ufeff]+/,o=/[\n\r\t]/g,r=/^[A-Za-z][A-Za-z0-9+-.]*:\/\//,s=/:\d+$/,l=/^([a-z][a-z0-9.+-]*:)?(\/\/)?([\\/]+)?([\S\s]*)/i,p=/^[a-zA-Z]:/;function c(e){return(e||"").toString().replace(n,"")}var d=[["#","hash"],["?","query"],function(e,t){return f(t.protocol)?e.replace(/\\/g,"/"):e},["/","pathname"],["@","auth",1],[NaN,"host",void 0,1,1],[/:(\d*)$/,"port",void 0,1],[NaN,"hostname",void 0,1,1]],m={hash:1,query:1};function u(e){var t,i=("undefined"!=typeof window?window:void 0!==__webpack_require__.g?__webpack_require__.g:"undefined"!=typeof self?self:{}).location||{},a={},n=typeof(e=e||i);if("blob:"===e.protocol)a=new v(unescape(e.pathname),{});else if("string"===n)for(t in a=new v(e,{}),m)delete a[t];else if("object"===n){for(t in e)t in m||(a[t]=e[t]);void 0===a.slashes&&(a.slashes=r.test(e.href))}return a}function f(e){return"file:"===e||"ftp:"===e||"http:"===e||"https:"===e||"ws:"===e||"wss:"===e}function h(e,t){e=(e=c(e)).replace(o,""),t=t||{};var i,a=l.exec(e),n=a[1]?a[1].toLowerCase():"",r=!!a[2],s=!!a[3],p=0;return r?s?(i=a[2]+a[3]+a[4],p=a[2].length+a[3].length):(i=a[2]+a[4],p=a[2].length):s?(i=a[3]+a[4],p=a[3].length):i=a[4],"file:"===n?p>=2&&(i=i.slice(2)):f(n)?i=a[4]:n?r&&(i=i.slice(2)):p>=2&&f(t.protocol)&&(i=a[4]),{protocol:n,slashes:r||f(n),slashesCount:p,rest:i}}function v(e,t,n){if(e=(e=c(e)).replace(o,""),!(this instanceof v))return new v(e,t,n);var r,s,l,m,g,x,y=d.slice(),w=typeof t,b=this,_=0;for("object"!==w&&"string"!==w&&(n=t,t=null),n&&"function"!=typeof n&&(n=a.parse),r=!(s=h(e||"",t=u(t))).protocol&&!s.slashes,b.slashes=s.slashes||r&&t.slashes,b.protocol=s.protocol||t.protocol||"",e=s.rest,("file:"===s.protocol&&(2!==s.slashesCount||p.test(e))||!s.slashes&&(s.protocol||s.slashesCount<2||!f(b.protocol)))&&(y[3]=[/(.*)/,"pathname"]);_<y.length;_++)"function"!=typeof(m=y[_])?(l=m[0],x=m[1],l!=l?b[x]=e:"string"==typeof l?~(g="@"===l?e.lastIndexOf(l):e.indexOf(l))&&("number"==typeof m[2]?(b[x]=e.slice(0,g),e=e.slice(g+m[2])):(b[x]=e.slice(g),e=e.slice(0,g))):(g=l.exec(e))&&(b[x]=g[1],e=e.slice(0,g.index)),b[x]=b[x]||r&&m[3]&&t[x]||"",m[4]&&(b[x]=b[x].toLowerCase())):e=m(e,b);n&&(b.query=n(b.query)),r&&t.slashes&&"/"!==b.pathname.charAt(0)&&(""!==b.pathname||""!==t.pathname)&&(b.pathname=function(e,t){if(""===e)return t;for(var i=(t||"/").split("/").slice(0,-1).concat(e.split("/")),a=i.length,n=i[a-1],o=!1,r=0;a--;)"."===i[a]?i.splice(a,1):".."===i[a]?(i.splice(a,1),r++):r&&(0===a&&(o=!0),i.splice(a,1),r--);return o&&i.unshift(""),("."===n||".."===n)&&i.push(""),i.join("/")}(b.pathname,t.pathname)),"/"!==b.pathname.charAt(0)&&f(b.protocol)&&(b.pathname="/"+b.pathname),i(b.port,b.protocol)||(b.host=b.hostname,b.port=""),b.username=b.password="",b.auth&&(~(g=b.auth.indexOf(":"))?(b.username=b.auth.slice(0,g),b.username=encodeURIComponent(decodeURIComponent(b.username)),b.password=b.auth.slice(g+1),b.password=encodeURIComponent(decodeURIComponent(b.password))):b.username=encodeURIComponent(decodeURIComponent(b.auth)),b.auth=b.password?b.username+":"+b.password:b.username),b.origin="file:"!==b.protocol&&f(b.protocol)&&b.host?b.protocol+"//"+b.host:"null",b.href=b.toString()}v.prototype={set:function(e,t,n){var o=this;switch(e){case"query":"string"==typeof t&&t.length&&(t=(n||a.parse)(t)),o[e]=t;break;case"port":o[e]=t,i(t,o.protocol)?t&&(o.host=o.hostname+":"+t):(o.host=o.hostname,o[e]="");break;case"hostname":o[e]=t,o.port&&(t+=":"+o.port),o.host=t;break;case"host":o[e]=t,s.test(t)?(t=t.split(":"),o.port=t.pop(),o.hostname=t.join(":")):(o.hostname=t,o.port="");break;case"protocol":o.protocol=t.toLowerCase(),o.slashes=!n;break;case"pathname":case"hash":if(t){var r="pathname"===e?"/":"#";o[e]=t.charAt(0)!==r?r+t:t}else o[e]=t;break;case"username":case"password":o[e]=encodeURIComponent(t);break;case"auth":var l=t.indexOf(":");~l?(o.username=t.slice(0,l),o.username=encodeURIComponent(decodeURIComponent(o.username)),o.password=t.slice(l+1),o.password=encodeURIComponent(decodeURIComponent(o.password))):o.username=encodeURIComponent(decodeURIComponent(t))}for(var p=0;p<d.length;p++){var c=d[p];c[4]&&(o[c[1]]=o[c[1]].toLowerCase())}return o.auth=o.password?o.username+":"+o.password:o.username,o.origin="file:"!==o.protocol&&f(o.protocol)&&o.host?o.protocol+"//"+o.host:"null",o.href=o.toString(),o},toString:function(e){(!e||"function"!=typeof e)&&(e=a.stringify);var t,i=this,n=i.host,o=i.protocol;o&&":"!==o.charAt(o.length-1)&&(o+=":");var r=o+(i.protocol&&i.slashes||f(i.protocol)?"//":"");return i.username?(r+=i.username,i.password&&(r+=":"+i.password),r+="@"):i.password?(r+=":"+i.password,r+="@"):"file:"!==i.protocol&&f(i.protocol)&&!n&&"/"!==i.pathname&&(r+="@"),(":"===n[n.length-1]||s.test(i.hostname)&&!i.port)&&(n+=":"),r+=n+i.pathname,(t="object"==typeof i.query?e(i.query):i.query)&&(r+="?"!==t.charAt(0)?"?"+t:t),i.hash&&(r+=i.hash),r}},v.extractProtocol=h,v.location=u,v.trimLeft=c,v.qs=a,t.exports=v})),lt=F((e=>{var t=e&&e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(e,"__esModule",{value:!0}),e.URLExt=void 0;var i,a=Te(),n=t(oi());!function(e){function t(e){if("undefined"!=typeof document&&document){let t=document.createElement("a");return t.href=e,t}return(0,n.default)(e)}function i(...e){let t=(0,n.default)(e[0],{}),i=""===t.protocol&&t.slashes;i&&(t=(0,n.default)(e[0],"https:"+e[0]));let o=`${i?"":t.protocol}${t.slashes?"//":""}${t.auth}${t.auth?"@":""}${t.host}`,r=a.posix.join(`${o&&"/"!==t.pathname[0]?"/":""}${t.pathname}`,...e.slice(1));return`${o}${"."===r?"":r}`}e.parse=t,e.getHostName=function(e){return(0,n.default)(e).hostname},e.normalize=function(e){return e&&t(e).toString()},e.join=i,e.encodeParts=function(e){return i(...e.split("/").map(encodeURIComponent))},e.objectToQueryString=function(e){let t=Object.keys(e).filter((e=>e.length>0));return t.length?"?"+t.map((t=>{let i=encodeURIComponent(String(e[t]));return t+(i?"="+i:"")})).join("&"):""},e.queryStringToObject=function(e){return e.replace(/^\?/,"").split("&").reduce(((e,t)=>{let[i,a]=t.split("=");return i.length>0&&(e[i]=decodeURIComponent(a||"")),e}),{})},e.isLocal=function(e,i=!1){let{protocol:a}=t(e);return(!a||0!==e.toLowerCase().indexOf(a))&&(i?0!==e.indexOf("//"):0!==e.indexOf("/"))}}(i||(e.URLExt=i={}))})),ri=F(((exports,module)=>{var __importDefault=exports&&exports.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(exports,"__esModule",{value:!0}),exports.PageConfig=void 0;var coreutils_1=me(),minimist_1=__importDefault(Wt()),url_1=lt(),PageConfig;(function(PageConfig){function getOption(name){if(configData)return configData[name]||getBodyData(name);configData=Object.create(null);let found=!1;if("undefined"!=typeof document&&document){let e=document.getElementById("jupyter-config-data");e&&(configData=JSON.parse(e.textContent||""),found=!0)}if(!found&&"undefined"!=typeof process&&process.argv)try{let cli=(0,minimist_1.default)(process.argv.slice(2)),path=Te(),fullPath="";"jupyter-config-data"in cli?fullPath=path.resolve(cli["jupyter-config-data"]):"JUPYTER_CONFIG_DATA"in{}&&(fullPath=path.resolve({}.JUPYTER_CONFIG_DATA)),fullPath&&(configData=eval("require")(fullPath))}catch(e){console.error(e)}if(coreutils_1.JSONExt.isObject(configData))for(let e in configData)"string"!=typeof configData[e]&&(configData[e]=JSON.stringify(configData[e]));else configData=Object.create(null);return configData[name]||getBodyData(name)}function setOption(e,t){let i=getOption(e);return configData[e]=t,i}function getBaseUrl(){return url_1.URLExt.normalize(getOption("baseUrl")||"/")}function getTreeUrl(){return url_1.URLExt.join(getBaseUrl(),getOption("treeUrl"))}function getShareUrl(){return url_1.URLExt.normalize(getOption("shareUrl")||getBaseUrl())}function getTreeShareUrl(){return url_1.URLExt.normalize(url_1.URLExt.join(getShareUrl(),getOption("treeUrl")))}function getUrl(e){var t,i,a,n;let o=e.toShare?getShareUrl():getBaseUrl(),r=null!==(t=e.mode)&&void 0!==t?t:getOption("mode"),s=null!==(i=e.workspace)&&void 0!==i?i:getOption("workspace"),l="single-document"===r?"doc":"lab";o=url_1.URLExt.join(o,l),s!==PageConfig.defaultWorkspace&&(o=url_1.URLExt.join(o,"workspaces",encodeURIComponent(null!==(a=getOption("workspace"))&&void 0!==a?a:PageConfig.defaultWorkspace)));let p=null!==(n=e.treePath)&&void 0!==n?n:getOption("treePath");return p&&(o=url_1.URLExt.join(o,"tree",url_1.URLExt.encodeParts(p))),o}function getWsUrl(e){let t=getOption("wsUrl");if(!t){if(0!==(e=e?url_1.URLExt.normalize(e):getBaseUrl()).indexOf("http"))return"";t="ws"+e.slice(4)}return url_1.URLExt.normalize(t)}function getNBConvertURL({path:e,format:t,download:i}){let a=url_1.URLExt.encodeParts(e),n=url_1.URLExt.join(getBaseUrl(),"nbconvert",t,a);return i?n+"?download=true":n}function getToken(){return getOption("token")||getBodyData("jupyterApiToken")}function getNotebookVersion(){let e=getOption("notebookVersion");return""===e?[0,0,0]:JSON.parse(e)}PageConfig.getOption=getOption,PageConfig.setOption=setOption,PageConfig.getBaseUrl=getBaseUrl,PageConfig.getTreeUrl=getTreeUrl,PageConfig.getShareUrl=getShareUrl,PageConfig.getTreeShareUrl=getTreeShareUrl,PageConfig.getUrl=getUrl,PageConfig.defaultWorkspace="default",PageConfig.getWsUrl=getWsUrl,PageConfig.getNBConvertURL=getNBConvertURL,PageConfig.getToken=getToken,PageConfig.getNotebookVersion=getNotebookVersion;let configData=null,Extension;function getBodyData(e){if("undefined"==typeof document||!document.body)return"";let t=document.body.dataset[e];return void 0===t?"":decodeURIComponent(t)}!function(e){function t(e){try{let t=getOption(e);if(t)return JSON.parse(t)}catch(t){console.warn(`Unable to parse ${e}.`,t)}return[]}e.deferred=t("deferredExtensions"),e.disabled=t("disabledExtensions"),e.isDeferred=function(t){let i=t.indexOf(":"),a="";return-1!==i&&(a=t.slice(0,i)),e.deferred.some((e=>e===t||a&&e===a))},e.isDisabled=function(t){let i=t.indexOf(":"),a="";return-1!==i&&(a=t.slice(0,i)),e.disabled.some((e=>e===t||a&&e===a))}}(Extension=PageConfig.Extension||(PageConfig.Extension={}))})(PageConfig||(exports.PageConfig=PageConfig={}))})),ci=F((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.PathExt=void 0;var t,i=Te();!function(e){function t(e){return 0===e.indexOf("/")&&(e=e.slice(1)),e}e.join=function(...e){let a=i.posix.join(...e);return"."===a?"":t(a)},e.joinWithLeadingSlash=function(...e){let t=i.posix.join(...e);return"."===t?"":t},e.basename=function(e,t){return i.posix.basename(e,t)},e.dirname=function(e){let a=t(i.posix.dirname(e));return"."===a?"":a},e.extname=function(e){return i.posix.extname(e)},e.normalize=function(e){return""===e?"":t(i.posix.normalize(e))},e.resolve=function(...e){return t(i.posix.resolve(...e))},e.relative=function(e,a){return t(i.posix.relative(e,a))},e.normalizeExtension=function(e){return e.length>0&&0!==e.indexOf(".")&&(e=`.${e}`),e},e.removeSlash=t}(t||(e.PathExt=t={}))})),pi=F((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.signalToPromise=void 0;var t=me();e.signalToPromise=function(e,i){let a=new t.PromiseDelegate;function n(){e.disconnect(o)}function o(e,t){n(),a.resolve([e,t])}return e.connect(o),(null!=i?i:0)>0&&setTimeout((()=>{n(),a.reject(`Signal not emitted within ${i} ms.`)}),i),a.promise}})),mi=F((e=>{var t,i;Object.defineProperty(e,"__esModule",{value:!0}),e.Text=void 0,(i=t||(e.Text=t={})).jsIndexToCharIndex=function(e,t){return e},i.charIndexToJsIndex=function(e,t){return e},i.camelCase=function(e,t=!1){return e.replace(/^(\w)|[\s-_:]+(\w)/g,(function(e,i,a){return a?a.toUpperCase():t?i.toUpperCase():i.toLowerCase()}))},i.titleCase=function(e){return(e||"").toLowerCase().split(" ").map((e=>e.charAt(0).toUpperCase()+e.slice(1))).join(" ")}})),ui=F((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.Time=void 0;var t,i,a=[{name:"years",milliseconds:31536e6},{name:"months",milliseconds:2592e6},{name:"days",milliseconds:864e5},{name:"hours",milliseconds:36e5},{name:"minutes",milliseconds:6e4},{name:"seconds",milliseconds:1e3}];(i=t||(e.Time=t={})).formatHuman=function(e,t="long"){let i=document.documentElement.lang||"en",n=new Intl.RelativeTimeFormat(i,{numeric:"auto",style:t}),o=new Date(e).getTime()-Date.now();for(let e of a){let t=Math.ceil(o/e.milliseconds);if(0!==t)return n.format(t,e.name)}return n.format(0,"seconds")},i.format=function(e){let t=document.documentElement.lang||"en";return new Intl.DateTimeFormat(t,{dateStyle:"short",timeStyle:"short"}).format(new Date(e))}})),be=F((e=>{var t=e&&e.__createBinding||(Object.create?function(e,t,i,a){void 0===a&&(a=i);var n=Object.getOwnPropertyDescriptor(t,i);(!n||("get"in n?!t.__esModule:n.writable||n.configurable))&&(n={enumerable:!0,get:function(){return t[i]}}),Object.defineProperty(e,a,n)}:function(e,t,i,a){void 0===a&&(a=i),e[a]=t[i]}),i=e&&e.__exportStar||function(e,i){for(var a in e)"default"!==a&&!Object.prototype.hasOwnProperty.call(i,a)&&t(i,e,a)};Object.defineProperty(e,"__esModule",{value:!0}),i(Mt(),e),i(Nt(),e),i(Ut(),e),i(Lt(),e),i(ri(),e),i(ci(),e),i(pi(),e),i(mi(),e),i(ui(),e),i(lt(),e)})),vi=F(((e,t)=>{function i(){this._types=Object.create(null),this._extensions=Object.create(null);for(let e=0;e<arguments.length;e++)this.define(arguments[e]);this.define=this.define.bind(this),this.getType=this.getType.bind(this),this.getExtension=this.getExtension.bind(this)}i.prototype.define=function(e,t){for(let i in e){let a=e[i].map((function(e){return e.toLowerCase()}));i=i.toLowerCase();for(let e=0;e<a.length;e++){let n=a[e];if("*"!==n[0]){if(!t&&n in this._types)throw new Error('Attempt to change mapping for "'+n+'" extension from "'+this._types[n]+'" to "'+i+'". Pass `force=true` to allow this, otherwise remove "'+n+'" from the list of extensions for "'+i+'".');this._types[n]=i}}if(t||!this._extensions[i]){let e=a[0];this._extensions[i]="*"!==e[0]?e:e.substr(1)}}},i.prototype.getType=function(e){let t=(e=String(e)).replace(/^.*[/\\]/,"").toLowerCase(),i=t.replace(/^.*\./,"").toLowerCase(),a=t.length<e.length;return(i.length<t.length-1||!a)&&this._types[i]||null},i.prototype.getExtension=function(e){return(e=/^\s*([^;\s]*)/.test(e)&&RegExp.$1)&&this._extensions[e.toLowerCase()]||null},t.exports=i})),xi=F(((e,t)=>{t.exports={"application/andrew-inset":["ez"],"application/applixware":["aw"],"application/atom+xml":["atom"],"application/atomcat+xml":["atomcat"],"application/atomdeleted+xml":["atomdeleted"],"application/atomsvc+xml":["atomsvc"],"application/atsc-dwd+xml":["dwd"],"application/atsc-held+xml":["held"],"application/atsc-rsat+xml":["rsat"],"application/bdoc":["bdoc"],"application/calendar+xml":["xcs"],"application/ccxml+xml":["ccxml"],"application/cdfx+xml":["cdfx"],"application/cdmi-capability":["cdmia"],"application/cdmi-container":["cdmic"],"application/cdmi-domain":["cdmid"],"application/cdmi-object":["cdmio"],"application/cdmi-queue":["cdmiq"],"application/cu-seeme":["cu"],"application/dash+xml":["mpd"],"application/davmount+xml":["davmount"],"application/docbook+xml":["dbk"],"application/dssc+der":["dssc"],"application/dssc+xml":["xdssc"],"application/ecmascript":["es","ecma"],"application/emma+xml":["emma"],"application/emotionml+xml":["emotionml"],"application/epub+zip":["epub"],"application/exi":["exi"],"application/express":["exp"],"application/fdt+xml":["fdt"],"application/font-tdpfr":["pfr"],"application/geo+json":["geojson"],"application/gml+xml":["gml"],"application/gpx+xml":["gpx"],"application/gxf":["gxf"],"application/gzip":["gz"],"application/hjson":["hjson"],"application/hyperstudio":["stk"],"application/inkml+xml":["ink","inkml"],"application/ipfix":["ipfix"],"application/its+xml":["its"],"application/java-archive":["jar","war","ear"],"application/java-serialized-object":["ser"],"application/java-vm":["class"],"application/javascript":["js","mjs"],"application/json":["json","map"],"application/json5":["json5"],"application/jsonml+json":["jsonml"],"application/ld+json":["jsonld"],"application/lgr+xml":["lgr"],"application/lost+xml":["lostxml"],"application/mac-binhex40":["hqx"],"application/mac-compactpro":["cpt"],"application/mads+xml":["mads"],"application/manifest+json":["webmanifest"],"application/marc":["mrc"],"application/marcxml+xml":["mrcx"],"application/mathematica":["ma","nb","mb"],"application/mathml+xml":["mathml"],"application/mbox":["mbox"],"application/mediaservercontrol+xml":["mscml"],"application/metalink+xml":["metalink"],"application/metalink4+xml":["meta4"],"application/mets+xml":["mets"],"application/mmt-aei+xml":["maei"],"application/mmt-usd+xml":["musd"],"application/mods+xml":["mods"],"application/mp21":["m21","mp21"],"application/mp4":["mp4s","m4p"],"application/msword":["doc","dot"],"application/mxf":["mxf"],"application/n-quads":["nq"],"application/n-triples":["nt"],"application/node":["cjs"],"application/octet-stream":["bin","dms","lrf","mar","so","dist","distz","pkg","bpk","dump","elc","deploy","exe","dll","deb","dmg","iso","img","msi","msp","msm","buffer"],"application/oda":["oda"],"application/oebps-package+xml":["opf"],"application/ogg":["ogx"],"application/omdoc+xml":["omdoc"],"application/onenote":["onetoc","onetoc2","onetmp","onepkg"],"application/oxps":["oxps"],"application/p2p-overlay+xml":["relo"],"application/patch-ops-error+xml":["xer"],"application/pdf":["pdf"],"application/pgp-encrypted":["pgp"],"application/pgp-signature":["asc","sig"],"application/pics-rules":["prf"],"application/pkcs10":["p10"],"application/pkcs7-mime":["p7m","p7c"],"application/pkcs7-signature":["p7s"],"application/pkcs8":["p8"],"application/pkix-attr-cert":["ac"],"application/pkix-cert":["cer"],"application/pkix-crl":["crl"],"application/pkix-pkipath":["pkipath"],"application/pkixcmp":["pki"],"application/pls+xml":["pls"],"application/postscript":["ai","eps","ps"],"application/provenance+xml":["provx"],"application/pskc+xml":["pskcxml"],"application/raml+yaml":["raml"],"application/rdf+xml":["rdf","owl"],"application/reginfo+xml":["rif"],"application/relax-ng-compact-syntax":["rnc"],"application/resource-lists+xml":["rl"],"application/resource-lists-diff+xml":["rld"],"application/rls-services+xml":["rs"],"application/route-apd+xml":["rapd"],"application/route-s-tsid+xml":["sls"],"application/route-usd+xml":["rusd"],"application/rpki-ghostbusters":["gbr"],"application/rpki-manifest":["mft"],"application/rpki-roa":["roa"],"application/rsd+xml":["rsd"],"application/rss+xml":["rss"],"application/rtf":["rtf"],"application/sbml+xml":["sbml"],"application/scvp-cv-request":["scq"],"application/scvp-cv-response":["scs"],"application/scvp-vp-request":["spq"],"application/scvp-vp-response":["spp"],"application/sdp":["sdp"],"application/senml+xml":["senmlx"],"application/sensml+xml":["sensmlx"],"application/set-payment-initiation":["setpay"],"application/set-registration-initiation":["setreg"],"application/shf+xml":["shf"],"application/sieve":["siv","sieve"],"application/smil+xml":["smi","smil"],"application/sparql-query":["rq"],"application/sparql-results+xml":["srx"],"application/srgs":["gram"],"application/srgs+xml":["grxml"],"application/sru+xml":["sru"],"application/ssdl+xml":["ssdl"],"application/ssml+xml":["ssml"],"application/swid+xml":["swidtag"],"application/tei+xml":["tei","teicorpus"],"application/thraud+xml":["tfi"],"application/timestamped-data":["tsd"],"application/toml":["toml"],"application/trig":["trig"],"application/ttml+xml":["ttml"],"application/ubjson":["ubj"],"application/urc-ressheet+xml":["rsheet"],"application/urc-targetdesc+xml":["td"],"application/voicexml+xml":["vxml"],"application/wasm":["wasm"],"application/widget":["wgt"],"application/winhlp":["hlp"],"application/wsdl+xml":["wsdl"],"application/wspolicy+xml":["wspolicy"],"application/xaml+xml":["xaml"],"application/xcap-att+xml":["xav"],"application/xcap-caps+xml":["xca"],"application/xcap-diff+xml":["xdf"],"application/xcap-el+xml":["xel"],"application/xcap-ns+xml":["xns"],"application/xenc+xml":["xenc"],"application/xhtml+xml":["xhtml","xht"],"application/xliff+xml":["xlf"],"application/xml":["xml","xsl","xsd","rng"],"application/xml-dtd":["dtd"],"application/xop+x