@uniformdev/canvas 16.0.1-nuxt.181 → 16.0.1-nuxt.187
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.
- package/dist/chunk-X5OP6N6C.mjs +2 -0
- package/dist/cli/cli.d.ts +1 -1
- package/dist/cli/cli.js +17 -17
- package/dist/cli/cli.mjs +1 -1
- package/dist/createEventBus-3af5b249.d.ts +957 -0
- package/dist/index.d.ts +178 -10
- package/dist/index.esm.js +1 -1
- package/dist/index.js +3 -3
- package/dist/index.mjs +1 -1
- package/package.json +10 -7
package/dist/cli/cli.mjs
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
import{a as be,b as oa,c as sa,d as ci,e as At,f as xn,g as Ve,h as fi,l as ne,u as aa,v as dr}from"../chunk-
|
1
|
+
import{a as be,b as oa,c as sa,d as ci,e as At,f as xn,g as Ve,h as fi,l as ne,u as aa,v as dr}from"../chunk-X5OP6N6C.mjs";var Us=oa((bn,tn)=>{var qf=200,lr="__lodash_hash_undefined__",Cs=1,Zn=2,As=9007199254740991,Gn="[object Arguments]",er="[object Array]",xs="[object Boolean]",vs="[object Date]",Os="[object Error]",_s="[object Function]",Gf="[object GeneratorFunction]",Kn="[object Map]",Es="[object Number]",en="[object Object]",fs="[object Promise]",Ss="[object RegExp]",Vn="[object Set]",Is="[object String]",Kf="[object Symbol]",tr="[object WeakMap]",js="[object ArrayBuffer]",Jn="[object DataView]",Vf="[object Float32Array]",Jf="[object Float64Array]",Qf="[object Int8Array]",Zf="[object Int16Array]",Xf="[object Int32Array]",eu="[object Uint8Array]",tu="[object Uint8ClampedArray]",nu="[object Uint16Array]",iu="[object Uint32Array]",ru=/[\\^$.*+?()[\]{}|]/g,ou=/^\[object .+?Constructor\]$/,su=/^(?:0|[1-9]\d*)$/,te={};te[Vf]=te[Jf]=te[Qf]=te[Zf]=te[Xf]=te[eu]=te[tu]=te[nu]=te[iu]=!0;te[Gn]=te[er]=te[js]=te[xs]=te[Jn]=te[vs]=te[Os]=te[_s]=te[Kn]=te[Es]=te[en]=te[Ss]=te[Vn]=te[Is]=te[tr]=!1;var Ps=typeof global=="object"&&global&&global.Object===Object&&global,au=typeof self=="object"&&self&&self.Object===Object&&self,st=Ps||au||Function("return this")(),Ms=typeof bn=="object"&&bn&&!bn.nodeType&&bn,us=Ms&&typeof tn=="object"&&tn&&!tn.nodeType&&tn,lu=us&&us.exports===Ms,ps=lu&&Ps.process,hs=function(){try{return ps&&ps.binding("util")}catch(e){}}(),ds=hs&&hs.isTypedArray;function cu(e,t){for(var n=-1,i=e?e.length:0;++n<i;)if(t(e[n],n,e))return!0;return!1}function fu(e,t){for(var n=-1,i=Array(e);++n<e;)i[n]=t(n);return i}function uu(e){return function(t){return e(t)}}function pu(e,t){return e==null?void 0:e[t]}function nr(e){var t=!1;if(e!=null&&typeof e.toString!="function")try{t=!!(e+"")}catch(n){}return t}function hu(e){var t=-1,n=Array(e.size);return e.forEach(function(i,r){n[++t]=[r,i]}),n}function du(e,t){return function(n){return e(t(n))}}function mu(e){var t=-1,n=Array(e.size);return e.forEach(function(i){n[++t]=i}),n}var gu=Array.prototype,bu=Function.prototype,Xn=Object.prototype,Zi=st["__core-js_shared__"],ms=function(){var e=/[^.]+$/.exec(Zi&&Zi.keys&&Zi.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),Fs=bu.toString,qe=Xn.hasOwnProperty,Cn=Xn.toString,yu=RegExp("^"+Fs.call(qe).replace(ru,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),gs=st.Symbol,bs=st.Uint8Array,wu=Xn.propertyIsEnumerable,Cu=gu.splice,Au=du(Object.keys,Object),ir=nn(st,"DataView"),yn=nn(st,"Map"),rr=nn(st,"Promise"),or=nn(st,"Set"),sr=nn(st,"WeakMap"),wn=nn(Object,"create"),xu=Ut(ir),vu=Ut(yn),Ou=Ut(rr),_u=Ut(or),Eu=Ut(sr),ys=gs?gs.prototype:void 0,Xi=ys?ys.valueOf:void 0;function Rt(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var i=e[t];this.set(i[0],i[1])}}function Su(){this.__data__=wn?wn(null):{}}function Iu(e){return this.has(e)&&delete this.__data__[e]}function ju(e){var t=this.__data__;if(wn){var n=t[e];return n===lr?void 0:n}return qe.call(t,e)?t[e]:void 0}function Pu(e){var t=this.__data__;return wn?t[e]!==void 0:qe.call(t,e)}function Mu(e,t){var n=this.__data__;return n[e]=wn&&t===void 0?lr:t,this}Rt.prototype.clear=Su;Rt.prototype.delete=Iu;Rt.prototype.get=ju;Rt.prototype.has=Pu;Rt.prototype.set=Mu;function Ge(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var i=e[t];this.set(i[0],i[1])}}function Fu(){this.__data__=[]}function Lu(e){var t=this.__data__,n=ei(t,e);if(n<0)return!1;var i=t.length-1;return n==i?t.pop():Cu.call(t,n,1),!0}function Du(e){var t=this.__data__,n=ei(t,e);return n<0?void 0:t[n][1]}function Nu(e){return ei(this.__data__,e)>-1}function Tu(e,t){var n=this.__data__,i=ei(n,e);return i<0?n.push([e,t]):n[i][1]=t,this}Ge.prototype.clear=Fu;Ge.prototype.delete=Lu;Ge.prototype.get=Du;Ge.prototype.has=Nu;Ge.prototype.set=Tu;function $t(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var i=e[t];this.set(i[0],i[1])}}function Ru(){this.__data__={hash:new Rt,map:new(yn||Ge),string:new Rt}}function $u(e){return ti(this,e).delete(e)}function Uu(e){return ti(this,e).get(e)}function Hu(e){return ti(this,e).has(e)}function Bu(e,t){return ti(this,e).set(e,t),this}$t.prototype.clear=Ru;$t.prototype.delete=$u;$t.prototype.get=Uu;$t.prototype.has=Hu;$t.prototype.set=Bu;function Qn(e){var t=-1,n=e?e.length:0;for(this.__data__=new $t;++t<n;)this.add(e[t])}function Wu(e){return this.__data__.set(e,lr),this}function Yu(e){return this.__data__.has(e)}Qn.prototype.add=Qn.prototype.push=Wu;Qn.prototype.has=Yu;function ot(e){this.__data__=new Ge(e)}function ku(){this.__data__=new Ge}function zu(e){return this.__data__.delete(e)}function qu(e){return this.__data__.get(e)}function Gu(e){return this.__data__.has(e)}function Ku(e,t){var n=this.__data__;if(n instanceof Ge){var i=n.__data__;if(!yn||i.length<qf-1)return i.push([e,t]),this;n=this.__data__=new $t(i)}return n.set(e,t),this}ot.prototype.clear=ku;ot.prototype.delete=zu;ot.prototype.get=qu;ot.prototype.has=Gu;ot.prototype.set=Ku;function Vu(e,t){var n=ar(e)||ap(e)?fu(e.length,String):[],i=n.length,r=!!i;for(var s in e)(t||qe.call(e,s))&&!(r&&(s=="length"||ip(s,i)))&&n.push(s);return n}function ei(e,t){for(var n=e.length;n--;)if(Ns(e[n][0],t))return n;return-1}function Ju(e){return Cn.call(e)}function Ls(e,t,n,i,r){return e===t?!0:e==null||t==null||!cr(e)&&!fr(t)?e!==e&&t!==t:Qu(e,t,Ls,n,i,r)}function Qu(e,t,n,i,r,s){var o=ar(e),a=ar(t),l=er,c=er;o||(l=rt(e),l=l==Gn?en:l),a||(c=rt(t),c=c==Gn?en:c);var f=l==en&&!nr(e),u=c==en&&!nr(t),p=l==c;if(p&&!f)return s||(s=new ot),o||fp(e)?Ds(e,t,n,i,r,s):tp(e,t,l,n,i,r,s);if(!(r&Zn)){var d=f&&qe.call(e,"__wrapped__"),g=u&&qe.call(t,"__wrapped__");if(d||g){var b=d?e.value():e,m=g?t.value():t;return s||(s=new ot),n(b,m,i,r,s)}}return p?(s||(s=new ot),np(e,t,n,i,r,s)):!1}function Zu(e){if(!cr(e)||op(e))return!1;var t=Rs(e)||nr(e)?yu:ou;return t.test(Ut(e))}function Xu(e){return fr(e)&&$s(e.length)&&!!te[Cn.call(e)]}function ep(e){if(!sp(e))return Au(e);var t=[];for(var n in Object(e))qe.call(e,n)&&n!="constructor"&&t.push(n);return t}function Ds(e,t,n,i,r,s){var o=r&Zn,a=e.length,l=t.length;if(a!=l&&!(o&&l>a))return!1;var c=s.get(e);if(c&&s.get(t))return c==t;var f=-1,u=!0,p=r&Cs?new Qn:void 0;for(s.set(e,t),s.set(t,e);++f<a;){var d=e[f],g=t[f];if(i)var b=o?i(g,d,f,t,e,s):i(d,g,f,e,t,s);if(b!==void 0){if(b)continue;u=!1;break}if(p){if(!cu(t,function(m,x){if(!p.has(x)&&(d===m||n(d,m,i,r,s)))return p.add(x)})){u=!1;break}}else if(!(d===g||n(d,g,i,r,s))){u=!1;break}}return s.delete(e),s.delete(t),u}function tp(e,t,n,i,r,s,o){switch(n){case Jn:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case js:return!(e.byteLength!=t.byteLength||!i(new bs(e),new bs(t)));case xs:case vs:case Es:return Ns(+e,+t);case Os:return e.name==t.name&&e.message==t.message;case Ss:case Is:return e==t+"";case Kn:var a=hu;case Vn:var l=s&Zn;if(a||(a=mu),e.size!=t.size&&!l)return!1;var c=o.get(e);if(c)return c==t;s|=Cs,o.set(e,t);var f=Ds(a(e),a(t),i,r,s,o);return o.delete(e),f;case Kf:if(Xi)return Xi.call(e)==Xi.call(t)}return!1}function np(e,t,n,i,r,s){var o=r&Zn,a=ws(e),l=a.length,c=ws(t),f=c.length;if(l!=f&&!o)return!1;for(var u=l;u--;){var p=a[u];if(!(o?p in t:qe.call(t,p)))return!1}var d=s.get(e);if(d&&s.get(t))return d==t;var g=!0;s.set(e,t),s.set(t,e);for(var b=o;++u<l;){p=a[u];var m=e[p],x=t[p];if(i)var v=o?i(x,m,p,t,e,s):i(m,x,p,e,t,s);if(!(v===void 0?m===x||n(m,x,i,r,s):v)){g=!1;break}b||(b=p=="constructor")}if(g&&!b){var L=e.constructor,Y=t.constructor;L!=Y&&"constructor"in e&&"constructor"in t&&!(typeof L=="function"&&L instanceof L&&typeof Y=="function"&&Y instanceof Y)&&(g=!1)}return s.delete(e),s.delete(t),g}function ti(e,t){var n=e.__data__;return rp(t)?n[typeof t=="string"?"string":"hash"]:n.map}function nn(e,t){var n=pu(e,t);return Zu(n)?n:void 0}var rt=Ju;(ir&&rt(new ir(new ArrayBuffer(1)))!=Jn||yn&&rt(new yn)!=Kn||rr&&rt(rr.resolve())!=fs||or&&rt(new or)!=Vn||sr&&rt(new sr)!=tr)&&(rt=function(e){var t=Cn.call(e),n=t==en?e.constructor:void 0,i=n?Ut(n):void 0;if(i)switch(i){case xu:return Jn;case vu:return Kn;case Ou:return fs;case _u:return Vn;case Eu:return tr}return t});function ip(e,t){return t=t==null?As:t,!!t&&(typeof e=="number"||su.test(e))&&e>-1&&e%1==0&&e<t}function rp(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function op(e){return!!ms&&ms in e}function sp(e){var t=e&&e.constructor,n=typeof t=="function"&&t.prototype||Xn;return e===n}function Ut(e){if(e!=null){try{return Fs.call(e)}catch(t){}try{return e+""}catch(t){}}return""}function Ns(e,t){return e===t||e!==e&&t!==t}function ap(e){return lp(e)&&qe.call(e,"callee")&&(!wu.call(e,"callee")||Cn.call(e)==Gn)}var ar=Array.isArray;function Ts(e){return e!=null&&$s(e.length)&&!Rs(e)}function lp(e){return fr(e)&&Ts(e)}function cp(e,t,n){n=typeof n=="function"?n:void 0;var i=n?n(e,t):void 0;return i===void 0?Ls(e,t,n):!!i}function Rs(e){var t=cr(e)?Cn.call(e):"";return t==_s||t==Gf}function $s(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=As}function cr(e){var t=typeof e;return!!e&&(t=="object"||t=="function")}function fr(e){return!!e&&typeof e=="object"}var fp=ds?uu(ds):Xu;function ws(e){return Ts(e)?Vu(e):ep(e)}tn.exports=cp});import{notStrictEqual as La,strictEqual as Da}from"assert";var la={right:ha,center:da},ca=0,vn=1,fa=2,On=3,ui=class{constructor(t){var n;this.width=t.width,this.wrap=(n=t.wrap)!==null&&n!==void 0?n:!0,this.rows=[]}span(...t){let n=this.div(...t);n.span=!0}resetOutput(){this.rows=[]}div(...t){if(t.length===0&&this.div(""),this.wrap&&this.shouldApplyLayoutDSL(...t)&&typeof t[0]=="string")return this.applyLayoutDSL(t[0]);let n=t.map(i=>typeof i=="string"?this.colFromString(i):i);return this.rows.push(n),n}shouldApplyLayoutDSL(...t){return t.length===1&&typeof t[0]=="string"&&/[\t\n]/.test(t[0])}applyLayoutDSL(t){let n=t.split(`
|
2
2
|
`).map(r=>r.split(" ")),i=0;return n.forEach(r=>{r.length>1&&_e.stringWidth(r[0])>i&&(i=Math.min(Math.floor(this.width*.5),_e.stringWidth(r[0])))}),n.forEach(r=>{this.div(...r.map((s,o)=>({text:s.trim(),padding:this.measurePadding(s),width:o===0&&r.length>1?i:void 0})))}),this.rows[this.rows.length-1]}colFromString(t){return{text:t,padding:this.measurePadding(t)}}measurePadding(t){let n=_e.stripAnsi(t);return[0,n.match(/\s*$/)[0].length,0,n.match(/^\s*/)[0].length]}toString(){let t=[];return this.rows.forEach(n=>{this.rowToString(n,t)}),t.filter(n=>!n.hidden).map(n=>n.text).join(`
|
3
3
|
`)}rowToString(t,n){return this.rasterize(t).forEach((i,r)=>{let s="";i.forEach((o,a)=>{let{width:l}=t[a],c=this.negatePadding(t[a]),f=o;if(c>_e.stringWidth(o)&&(f+=" ".repeat(c-_e.stringWidth(o))),t[a].align&&t[a].align!=="left"&&this.wrap){let p=la[t[a].align];f=p(f,c),_e.stringWidth(f)<c&&(f+=" ".repeat((l||0)-_e.stringWidth(f)-1))}let u=t[a].padding||[0,0,0,0];u[On]&&(s+=" ".repeat(u[On])),s+=mr(t[a],f,"| "),s+=f,s+=mr(t[a],f," |"),u[vn]&&(s+=" ".repeat(u[vn])),r===0&&n.length>0&&(s=this.renderInline(s,n[n.length-1]))}),n.push({text:s.replace(/ +$/,""),span:t.span})}),n}renderInline(t,n){let i=t.match(/^ */),r=i?i[0].length:0,s=n.text,o=_e.stringWidth(s.trimRight());return n.span?this.wrap?r<o?t:(n.hidden=!0,s.trimRight()+" ".repeat(r-o)+t.trimLeft()):(n.hidden=!0,s+t):t}rasterize(t){let n=[],i=this.columnWidths(t),r;return t.forEach((s,o)=>{s.width=i[o],this.wrap?r=_e.wrap(s.text,this.negatePadding(s),{hard:!0}).split(`
|
4
4
|
`):r=s.text.split(`
|