@guihz/trading-vue-editor-tes 0.0.36 → 0.0.37
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.
@@ -103,6 +103,6 @@ Input files:
|
|
103
103
|
`+m(t)+`
|
104
104
|
`)}function*i0(t,e,n){n&&typeof process=="object"&&process.env&&typeof process.env.TERSER_DEBUG_DIR=="string"&&r0(t,e,n,process.env.TERSER_DEBUG_DIR),e=pi(e,{compress:{},ecma:void 0,enclose:!1,ie8:!1,keep_classnames:void 0,keep_fnames:!1,mangle:{},module:!1,nameCache:null,output:null,format:null,parse:{},rename:void 0,safari10:!1,sourceMap:!1,spidermonkey:!1,timings:!1,toplevel:!1,warnings:!1,wrap:!1},!0);var o=e.timings&&{start:Date.now()};if(e.keep_classnames===void 0&&(e.keep_classnames=e.keep_fnames),e.rename===void 0&&(e.rename=e.compress&&e.mangle),e.output&&e.format)throw new Error("Please only specify either output or format option, preferrably format.");e.format=e.format||e.output||{},ao("ecma",e,["parse","compress","format"]),ao("ie8",e,["compress","mangle","format"]),ao("keep_classnames",e,["compress","mangle"]),ao("keep_fnames",e,["compress","mangle"]),ao("module",e,["parse","compress","mangle"]),ao("safari10",e,["mangle","format"]),ao("toplevel",e,["compress","mangle"]),ao("warnings",e,["compress"]);var u;e.mangle&&(e.mangle=pi(e.mangle,{cache:e.nameCache&&(e.nameCache.vars||{}),eval:!1,ie8:!1,keep_classnames:!1,keep_fnames:!1,module:!1,nth_identifier:ys,properties:!1,reserved:[],safari10:!1,toplevel:!1},!0),e.mangle.properties&&(typeof e.mangle.properties!="object"&&(e.mangle.properties={}),e.mangle.properties.keep_quoted&&(u=e.mangle.properties.reserved,Array.isArray(u)||(u=[]),e.mangle.properties.reserved=u),e.nameCache&&!("cache"in e.mangle.properties)&&(e.mangle.properties.cache=e.nameCache.props||{})),Ed(e.mangle.cache),Ed(e.mangle.properties.cache)),e.sourceMap&&(e.sourceMap=pi(e.sourceMap,{asObject:!1,content:null,filename:null,includeSources:!1,root:null,url:null},!0)),o&&(o.parse=Date.now());var h;if(t instanceof zt)h=t;else{if((typeof t=="string"||e.parse.spidermonkey&&!Array.isArray(t))&&(t=[t]),e.parse=e.parse||{},e.parse.toplevel=null,e.parse.spidermonkey)e.parse.toplevel=Te.from_mozilla_ast(Object.keys(t).reduce(function(F,$){return F?(F.body=F.body.concat(t[$].body),F):t[$]},null));else{delete e.parse.spidermonkey;for(var m in t)if(Zn(t,m)&&(e.parse.filename=m,e.parse.toplevel=ss(t[m],e.parse),e.sourceMap&&e.sourceMap.content=="inline")){if(Object.keys(t).length>1)throw new Error("inline source map only works with singular input");e.sourceMap.content=n0(t[m])}}if(e.parse.toplevel===null)throw new Error("no source file given");h=e.parse.toplevel}u&&e.mangle.properties.keep_quoted!=="strict"&&J_(h,u);var _;e.mangle&&e.mangle.properties&&(_=vd(h)),e.wrap&&(h=h.wrap_commonjs(e.wrap)),e.enclose&&(h=h.wrap_enclose(e.enclose)),o&&(o.rename=Date.now()),o&&(o.compress=Date.now()),e.compress&&(h=new yd(e.compress,{mangle_options:e.mangle}).compress(h)),o&&(o.scope=Date.now()),e.mangle&&h.figure_out_scope(e.mangle),o&&(o.mangle=Date.now()),e.mangle&&(h.compute_char_frequency(e.mangle),h.mangle_names(e.mangle),h=Z_(h,e.mangle)),o&&(o.properties=Date.now()),e.mangle&&e.mangle.properties&&(h=Q_(h,e.mangle.properties,_)),o&&(o.format=Date.now());var T={};e.format.ast&&(T.ast=h),e.format.spidermonkey&&(T.ast=h.to_mozilla_ast());let x;if(!Zn(e.format,"code")||e.format.code){if(x={...e.format},x.ast||(x._destroy_ast=!0,Nn(h,F=>{F instanceof qe&&(F.variables=void 0,F.enclosed=void 0,F.parent_scope=void 0),F.block_scope&&(F.block_scope.variables=void 0,F.block_scope.enclosed=void 0,F.parent_scope=void 0)})),e.sourceMap){if(e.sourceMap.includeSources&&t instanceof zt)throw new Error("original source content unavailable");x.source_map=yield*X_({file:e.sourceMap.filename,orig:e.sourceMap.content,root:e.sourceMap.root,files:e.sourceMap.includeSources?t:null})}delete x.ast,delete x.code,delete x.spidermonkey;var P=Pl(x);if(h.print(P),T.code=P.get(),e.sourceMap)if(Object.defineProperty(T,"map",{configurable:!0,enumerable:!0,get(){const F=x.source_map.getEncoded();return T.map=e.sourceMap.asObject?F:JSON.stringify(F)},set(F){Object.defineProperty(T,"map",{value:F,writable:!0})}}),T.decoded_map=x.source_map.getDecoded(),e.sourceMap.url=="inline"){var A=typeof T.map=="object"?JSON.stringify(T.map):T.map;T.code+=`
|
105
105
|
//# sourceMappingURL=data:application/json;charset=utf-8;base64,`+t0(A)}else e.sourceMap.url&&(T.code+=`
|
106
|
-
//# sourceMappingURL=`+e.sourceMap.url)}return e.nameCache&&e.mangle&&(e.mangle.cache&&(e.nameCache.vars=Sd(e.mangle.cache)),e.mangle.properties&&e.mangle.properties.cache&&(e.nameCache.props=Sd(e.mangle.properties.cache))),x&&x.source_map&&x.source_map.destroy(),o&&(o.end=Date.now(),T.timings={parse:.001*(o.rename-o.parse),rename:.001*(o.compress-o.rename),compress:.001*(o.scope-o.compress),scope:.001*(o.mangle-o.scope),mangle:.001*(o.properties-o.mangle),properties:.001*(o.format-o.properties),format:.001*(o.end-o.format),total:.001*(o.end-o.start)}),T}async function o0(t,e,n){const o=i0(t,e,n);let u,h;do h=o.next(await u),u=h.value;while(!h.done);return h.value}function a0(t){const e=new Wy(t),n=new ml(e);n.removeErrorListeners();const o=new Ky(n),u=new I(o);u._interp.predictionMode=Qy.SLL,u.removeErrorListeners();const h=new u0;n.addErrorListener(h),u.addErrorListener(h),u.buildParseTrees=!0;const m=u.program();return{errors:h.errors,ast:m}}async function s0(t,e,n){const{errors:o,ast:u}=a0(t
|
106
|
+
//# sourceMappingURL=`+e.sourceMap.url)}return e.nameCache&&e.mangle&&(e.mangle.cache&&(e.nameCache.vars=Sd(e.mangle.cache)),e.mangle.properties&&e.mangle.properties.cache&&(e.nameCache.props=Sd(e.mangle.properties.cache))),x&&x.source_map&&x.source_map.destroy(),o&&(o.end=Date.now(),T.timings={parse:.001*(o.rename-o.parse),rename:.001*(o.compress-o.rename),compress:.001*(o.scope-o.compress),scope:.001*(o.mangle-o.scope),mangle:.001*(o.properties-o.mangle),properties:.001*(o.format-o.properties),format:.001*(o.end-o.format),total:.001*(o.end-o.start)}),T}async function o0(t,e,n){const o=i0(t,e,n);let u,h;do h=o.next(await u),u=h.value;while(!h.done);return h.value}function a0(t){const e=new Wy(t),n=new ml(e);n.removeErrorListeners();const o=new Ky(n),u=new I(o);u._interp.predictionMode=Qy.SLL,u.removeErrorListeners();const h=new u0;n.addErrorListener(h),u.addErrorListener(h),u.buildParseTrees=!0;const m=u.program();return{errors:h.errors,ast:m}}async function s0(t,e,n){const{errors:o,ast:u}=a0(t+`
|
107
107
|
|
108
108
|
`),h=new Cm(n),m=h.visit(u);let _=o.splice(0,1);_.length||(_=h.errors);let T="";const x=new km("$"),P=x.preParser(m)||"";if(e&&!_.some(A=>A.type===8)){const A=x.parser(m)||"";console.log(A),T=(await o0(A,{compress:!0,mangle:!0})).code||""}return{errors:_,functions:Object.fromEntries(h.userFunctions),variables:Object.fromEntries(h.userVariables),types:Object.fromEntries(h.userTypes),methods:Object.fromEntries(h.userMethods),overloadsFuncs:h.overloadsFuncs,codeStr:T,preParserCode:P}}class u0 extends zy{constructor(){super(...arguments);w(this,"errors",[])}syntaxError(n,o,u,h,m){this.errors.push({message:`syntax error: ${m.replace(/expecting.+/,"")}`,type:Lr.Error,startColumn:h,startLineNumber:u,endColumn:h,endLineNumber:u})}}vl(s0)})();
|