3 lines
351 KiB
JavaScript
3 lines
351 KiB
JavaScript
|
|
import{m as e,aZ as t,a$ as r,b4 as n,n as i,b5 as a,a_ as s,bF as o,q as l,a5 as u}from"./index-BDq3hoFe.js";import{o as c,_ as d,Z as h,k as f,J as p,p as m,R as g,D as y,q as T,f as v,A as R,Q as A,X as k,r as E,u as $,z as x,s as C,N as I,U as S,v as N,e as w,y as L,w as b,x as O,V as P,M as _,B as D,C as M,E as F,K as U,F as G,G as B,H as K}from"./chunk-OMTJKCYW-D0VGaEv2.js";var V=u(t=>{var r;function n(){if(void 0===r)throw new Error("No runtime abstraction layer installed");return r}Object.defineProperty(t,"__esModule",{value:!0}),e(n,"RAL"),function(t){function n(e){if(void 0===e)throw new Error("No runtime abstraction layer provided");r=e}e(n,"install"),t.install=n}(n||(n={})),t.default=n}),j=u(t=>{function r(e){return!0===e||!1===e}function n(e){return"string"==typeof e||e instanceof String}function i(e){return"number"==typeof e||e instanceof Number}function a(e){return e instanceof Error}function s(e){return"function"==typeof e}function o(e){return Array.isArray(e)}function l(e){return o(e)&&e.every(e=>n(e))}Object.defineProperty(t,"__esModule",{value:!0}),t.stringArray=t.array=t.func=t.error=t.number=t.string=t.boolean=void 0,e(r,"boolean"),t.boolean=r,e(n,"string"),t.string=n,e(i,"number"),t.number=i,e(a,"error"),t.error=a,e(s,"func"),t.func=s,e(o,"array"),t.array=o,e(l,"stringArray"),t.stringArray=l}),W=u(t=>{Object.defineProperty(t,"__esModule",{value:!0}),t.Emitter=t.Event=void 0;var r,n=V();!function(e){let t={dispose(){}};e.None=function(){return t}}(r||(t.Event=r={}));var i=class{static{e(this,"CallbackList")}add(t,r=null,n){this._callbacks||(this._callbacks=[],this._contexts=[]),this._callbacks.push(t),this._contexts.push(r),Array.isArray(n)&&n.push({dispose:e(()=>this.remove(t,r),"dispose")})}remove(e,t=null){if(!this._callbacks)return;let r=!1;for(let n=0,i=this._callbacks.length;n<i;n++)if(this._callbacks[n]===e){if(this._contexts[n]===t)return this._callbacks.splice(n,1),void this._contexts.splice(n,1);r=!0}if(r)throw new Error("When adding a listener with a context, you should remove it with the same context")}invoke(...e){if(!this._callbacks)return[];let t=[],r=this._callbacks.slice(0),i=this._contexts.slice(0);for(let a=0,s=r.length;a<s;a++)try{t.push(r[a].apply(i[a],e))}catch(e){(0,n.default)().console.error(e)}return t}isEmpty(){return!this._callbacks||0===this._callbacks.length}dispose(){this._callbacks=void 0,this._contexts=void 0}},a=class t{static{e(this,"Emitter")}constructor(e){this._options=e}get event(){return this._event||(this._event=(r,n,a)=>{this._callbacks||(this._callbacks=new i),this._options&&this._options.onFirstListenerAdd&&this._callbacks.isEmpty()&&this._options.onFirstListenerAdd(this),this._callbacks.add(r,n);let s={dispose:e(()=>{this._callbacks&&(this._callbacks.remove(r,n),s.dispose=t._noop,this._options&&this._options.onLastListenerRemove&&this._callbacks.isEmpty()&&this._options.onLastListenerRemove(this))},"dispose")};return Array.isArray(a)&&a.push(s),s}),this._event}fire(e){this._callbacks&&this._callbacks.invoke.call(this._callbacks,e)}dispose(){this._callbacks&&(this._callbacks.dispose(),this._callbacks=void 0)}};t.Emitter=a,a._noop=function(){}}),H=u(t=>{Object.defineProperty(t,"__esModule",{value:!0}),t.CancellationTokenSource=t.CancellationToken=void 0;var r,n=V(),i=j(),a=W();!function(t){function r(e){let r=e;return r&&(r===t.None||r===t.Cancelled||i.boolean(r.isCancellationRequested)&&!!r.onCancellationRequested)}t.None=Object.freeze({isCancellationRequested:!1,onCancellationRequested:a.Event.None}),t.Cancelled=Object.freeze({isCancellationRequested:!0,onCancellationRequested:a.Event.None}),e(r,"is"),t.is=r}(r||(t.CancellationToken=r={}));var s=Object.freeze(function(e,t){let r=(0,n.default)().timer.setTimeout(e.bind(t),0);return{dispose(){r.dispose()}}}),o=class{static{e(this,"MutableToken")}constructor(){this._isCancelled=!1}cancel(){this._isCancelled||(this._isCancelled=!0,this._emitter&&(this._emitter.fire(void 0),this.dispose()))}get isCancellationRequested(){return this._isCancelled}get onCancellationRequested(){return this._isCancelled?s:(this._emi
|
||
|
|
//# sourceMappingURL=treemap-KMMF4GRG-7ORZ52ND-DFBaIa1s.js.map
|