w-trade-solve 2.0.8 → 2.0.9
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/w-trade-solve.umd.js +2 -2
- package/docs/calcFitness.mjs.html +1 -1
- package/docs/calcLevelNumTrade.mjs.html +1 -1
- package/docs/cont.mjs.html +1 -1
- package/docs/estimComps.mjs.html +1 -1
- package/docs/estimFinder.mjs.html +1 -1
- package/docs/estimKeys.mjs.html +1 -1
- package/docs/estimPicks.mjs.html +1 -1
- package/docs/genSid.mjs.html +1 -1
- package/docs/genStrategyFileName.mjs.html +1 -1
- package/docs/genTid.mjs.html +1 -1
- package/docs/global.html +1 -1
- package/docs/index.html +1 -1
- package/docs/ott.mjs.html +1 -1
- package/docs/p2r.mjs.html +1 -1
- package/docs/readStrategies.mjs.html +1 -1
- package/package.json +5 -5
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* w-trade-solve v2.0.
|
|
2
|
+
* w-trade-solve v2.0.9
|
|
3
3
|
* (c) 2018-2021 yuda-lyu(semisphere)
|
|
4
4
|
* Released under the MIT License.
|
|
5
5
|
*/
|
|
6
6
|
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e(require("path"),require("fs"),require("crypto")):"function"==typeof define&&define.amd?define(["path","fs","crypto"],e):(t="undefined"!=typeof globalThis?globalThis:t||self)["w-trade-solve"]=e(t.path,t.fs,t.crypto)}(this,function(t,e,r){"use strict";var n=Array.isArray,i="object"==typeof global&&global&&global.Object===Object&&global,o="object"==typeof self&&self&&self.Object===Object&&self,s=i||o||Function("return this")(),u=s.Symbol,a=Object.prototype,l=a.hasOwnProperty,f=a.toString,c=u?u.toStringTag:void 0;var d=Object.prototype.toString;var h=u?u.toStringTag:void 0;function p(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":h&&h in Object(t)?function(t){var e=l.call(t,c),r=t[c];try{t[c]=void 0;var n=!0}catch(t){}var i=f.call(t);return n&&(e?t[c]=r:delete t[c]),i}(t):function(t){return d.call(t)}(t)}function v(t){return null!=t&&"object"==typeof t}function m(t){return"symbol"==typeof t||v(t)&&"[object Symbol]"==p(t)}var y=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,g=/^\w*$/;function w(t,e){if(n(t))return!1;var r=typeof t;return!("number"!=r&&"symbol"!=r&&"boolean"!=r&&null!=t&&!m(t))||(g.test(t)||!y.test(t)||null!=e&&t in Object(e))}function b(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}function M(t){if(!b(t))return!1;var e=p(t);return"[object Function]"==e||"[object GeneratorFunction]"==e||"[object AsyncFunction]"==e||"[object Proxy]"==e}var _,O=s["__core-js_shared__"],j=(_=/[^.]+$/.exec(O&&O.keys&&O.keys.IE_PROTO||""))?"Symbol(src)_1."+_:"";var S=Function.prototype.toString;function E(t){if(null!=t){try{return S.call(t)}catch(t){}try{return t+""}catch(t){}}return""}var $=/^\[object .+?Constructor\]$/,N=Function.prototype,C=Object.prototype,A=N.toString,x=C.hasOwnProperty,L=RegExp("^"+A.call(x).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function R(t){return!(!b(t)||(e=t,j&&j in e))&&(M(t)?L:$).test(E(t));var e}function P(t,e){var r=function(t,e){return null==t?void 0:t[e]}(t,e);return R(r)?r:void 0}var T=P(Object,"create");var k=Object.prototype.hasOwnProperty;var F=Object.prototype.hasOwnProperty;function D(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}function B(t,e){return t===e||t!=t&&e!=e}function I(t,e){for(var r=t.length;r--;)if(B(t[r][0],e))return r;return-1}D.prototype.clear=function(){this.__data__=T?T(null):{},this.size=0},D.prototype.delete=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e},D.prototype.get=function(t){var e=this.__data__;if(T){var r=e[t];return"__lodash_hash_undefined__"===r?void 0:r}return k.call(e,t)?e[t]:void 0},D.prototype.has=function(t){var e=this.__data__;return T?void 0!==e[t]:F.call(e,t)},D.prototype.set=function(t,e){var r=this.__data__;return this.size+=this.has(t)?0:1,r[t]=T&&void 0===e?"__lodash_hash_undefined__":e,this};var q=Array.prototype.splice;function U(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}U.prototype.clear=function(){this.__data__=[],this.size=0},U.prototype.delete=function(t){var e=this.__data__,r=I(e,t);return!(r<0)&&(r==e.length-1?e.pop():q.call(e,r,1),--this.size,!0)},U.prototype.get=function(t){var e=this.__data__,r=I(e,t);return r<0?void 0:e[r][1]},U.prototype.has=function(t){return I(this.__data__,t)>-1},U.prototype.set=function(t,e){var r=this.__data__,n=I(r,t);return n<0?(++this.size,r.push([t,e])):r[n][1]=e,this};var G=P(s,"Map");function H(t,e){var r,n,i=t.__data__;return("string"==(n=typeof(r=e))||"number"==n||"symbol"==n||"boolean"==n?"__proto__"!==r:null===r)?i["string"==typeof e?"string":"hash"]:i.map}function Y(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}Y.prototype.clear=function(){this.size=0,this.__data__={hash:new D,map:new(G||U),string:new D}},Y.prototype.delete=function(t){var e=H(this,t).delete(t);return this.size-=e?1:0,e},Y.prototype.get=function(t){return H(this,t).get(t)},Y.prototype.has=function(t){return H(this,t).has(t)},Y.prototype.set=function(t,e){var r=H(this,t),n=r.size;return r.set(t,e),this.size+=r.size==n?0:1,this};function z(t,e){if("function"!=typeof t||null!=e&&"function"!=typeof e)throw new TypeError("Expected a function");var r=function(){var n=arguments,i=e?e.apply(this,n):n[0],o=r.cache;if(o.has(i))return o.get(i);var s=t.apply(this,n);return r.cache=o.set(i,s)||o,s};return r.cache=new(z.Cache||Y),r}z.Cache=Y;var Z,V,W,J=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,K=/\\(\\)?/g,X=(Z=function(t){var e=[];return 46===t.charCodeAt(0)&&e.push(""),t.replace(J,function(t,r,n,i){e.push(n?i.replace(K,"$1"):r||t)}),e},V=z(Z,function(t){return 500===W.size&&W.clear(),t}),W=V.cache,V),Q=X;function tt(t,e){for(var r=-1,n=null==t?0:t.length,i=Array(n);++r<n;)i[r]=e(t[r],r,t);return i}var et=u?u.prototype:void 0,rt=et?et.toString:void 0;function nt(t){if("string"==typeof t)return t;if(n(t))return tt(t,nt)+"";if(m(t))return rt?rt.call(t):"";var e=t+"";return"0"==e&&1/t==-1/0?"-0":e}function it(t){return null==t?"":nt(t)}function ot(t,e){return n(t)?t:w(t,e)?[t]:Q(it(t))}function st(t){if("string"==typeof t||m(t))return t;var e=t+"";return"0"==e&&1/t==-1/0?"-0":e}function ut(t,e){for(var r=0,n=(e=ot(e,t)).length;null!=t&&r<n;)t=t[st(e[r++])];return r&&r==n?t:void 0}function at(t,e,r){var n=null==t?void 0:ut(t,e);return void 0===n?r:n}var lt=Math.floor,ft=Math.random;function ct(t,e){return t+lt(ft()*(e-t+1))}function dt(t){var e=t.length;return e?t[ct(0,e-1)]:void 0}function ht(t){return v(t)&&"[object Arguments]"==p(t)}var pt=Object.prototype,vt=pt.hasOwnProperty,mt=pt.propertyIsEnumerable,yt=ht(function(){return arguments}())?ht:function(t){return v(t)&&vt.call(t,"callee")&&!mt.call(t,"callee")},gt=yt;var wt="object"==typeof exports&&exports&&!exports.nodeType&&exports,bt=wt&&"object"==typeof module&&module&&!module.nodeType&&module,Mt=bt&&bt.exports===wt?s.Buffer:void 0,_t=(Mt?Mt.isBuffer:void 0)||function(){return!1},Ot=/^(?:0|[1-9]\d*)$/;function jt(t,e){var r=typeof t;return!!(e=null==e?9007199254740991:e)&&("number"==r||"symbol"!=r&&Ot.test(t))&&t>-1&&t%1==0&&t<e}function St(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=9007199254740991}var Et={};function $t(t){return function(e){return t(e)}}Et["[object Float32Array]"]=Et["[object Float64Array]"]=Et["[object Int8Array]"]=Et["[object Int16Array]"]=Et["[object Int32Array]"]=Et["[object Uint8Array]"]=Et["[object Uint8ClampedArray]"]=Et["[object Uint16Array]"]=Et["[object Uint32Array]"]=!0,Et["[object Arguments]"]=Et["[object Array]"]=Et["[object ArrayBuffer]"]=Et["[object Boolean]"]=Et["[object DataView]"]=Et["[object Date]"]=Et["[object Error]"]=Et["[object Function]"]=Et["[object Map]"]=Et["[object Number]"]=Et["[object Object]"]=Et["[object RegExp]"]=Et["[object Set]"]=Et["[object String]"]=Et["[object WeakMap]"]=!1;var Nt="object"==typeof exports&&exports&&!exports.nodeType&&exports,Ct=Nt&&"object"==typeof module&&module&&!module.nodeType&&module,At=Ct&&Ct.exports===Nt&&i.process,xt=function(){try{var t=Ct&&Ct.require&&Ct.require("util").types;return t||At&&At.binding&&At.binding("util")}catch(t){}}(),Lt=xt&&xt.isTypedArray,Rt=Lt?$t(Lt):function(t){return v(t)&&St(t.length)&&!!Et[p(t)]},Pt=Object.prototype.hasOwnProperty;function Tt(t,e){var r=n(t),i=!r&>(t),o=!r&&!i&&_t(t),s=!r&&!i&&!o&&Rt(t),u=r||i||o||s,a=u?function(t,e){for(var r=-1,n=Array(t);++r<t;)n[r]=e(r);return n}(t.length,String):[],l=a.length;for(var f in t)!e&&!Pt.call(t,f)||u&&("length"==f||o&&("offset"==f||"parent"==f)||s&&("buffer"==f||"byteLength"==f||"byteOffset"==f)||jt(f,l))||a.push(f);return a}var kt=Object.prototype;function Ft(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||kt)}function Dt(t,e){return function(r){return t(e(r))}}var Bt=Dt(Object.keys,Object),It=Object.prototype.hasOwnProperty;function qt(t){if(!Ft(t))return Bt(t);var e=[];for(var r in Object(t))It.call(t,r)&&"constructor"!=r&&e.push(r);return e}function Ut(t){return null!=t&&St(t.length)&&!M(t)}function Gt(t){return Ut(t)?Tt(t):qt(t)}function Ht(t){return null==t?[]:function(t,e){return tt(e,function(e){return t[e]})}(t,Gt(t))}function Yt(t){return dt(Ht(t))}function zt(t){return"[object String]"===Object.prototype.toString.call(t)}function Zt(t){return!(!zt(t)||""===t)}function Vt(t){var e=this.__data__=new U(t);this.size=e.size}Vt.prototype.clear=function(){this.__data__=new U,this.size=0},Vt.prototype.delete=function(t){var e=this.__data__,r=e.delete(t);return this.size=e.size,r},Vt.prototype.get=function(t){return this.__data__.get(t)},Vt.prototype.has=function(t){return this.__data__.has(t)},Vt.prototype.set=function(t,e){var r=this.__data__;if(r instanceof U){var n=r.__data__;if(!G||n.length<199)return n.push([t,e]),this.size=++r.size,this;r=this.__data__=new Y(n)}return r.set(t,e),this.size=r.size,this};function Wt(t){var e=-1,r=null==t?0:t.length;for(this.__data__=new Y;++e<r;)this.add(t[e])}function Jt(t,e){for(var r=-1,n=null==t?0:t.length;++r<n;)if(e(t[r],r,t))return!0;return!1}function Kt(t,e){return t.has(e)}Wt.prototype.add=Wt.prototype.push=function(t){return this.__data__.set(t,"__lodash_hash_undefined__"),this},Wt.prototype.has=function(t){return this.__data__.has(t)};function Xt(t,e,r,n,i,o){var s=1&r,u=t.length,a=e.length;if(u!=a&&!(s&&a>u))return!1;var l=o.get(t),f=o.get(e);if(l&&f)return l==e&&f==t;var c=-1,d=!0,h=2&r?new Wt:void 0;for(o.set(t,e),o.set(e,t);++c<u;){var p=t[c],v=e[c];if(n)var m=s?n(v,p,c,e,t,o):n(p,v,c,t,e,o);if(void 0!==m){if(m)continue;d=!1;break}if(h){if(!Jt(e,function(t,e){if(!Kt(h,e)&&(p===t||i(p,t,r,n,o)))return h.push(e)})){d=!1;break}}else if(p!==v&&!i(p,v,r,n,o)){d=!1;break}}return o.delete(t),o.delete(e),d}var Qt=s.Uint8Array;function te(t){var e=-1,r=Array(t.size);return t.forEach(function(t,n){r[++e]=[n,t]}),r}function ee(t){var e=-1,r=Array(t.size);return t.forEach(function(t){r[++e]=t}),r}var re=u?u.prototype:void 0,ne=re?re.valueOf:void 0;function ie(t,e){for(var r=-1,n=e.length,i=t.length;++r<n;)t[i+r]=e[r];return t}function oe(t,e,r){var i=e(t);return n(t)?i:ie(i,r(t))}function se(t,e){for(var r=-1,n=null==t?0:t.length,i=0,o=[];++r<n;){var s=t[r];e(s,r,t)&&(o[i++]=s)}return o}function ue(){return[]}var ae=Object.prototype.propertyIsEnumerable,le=Object.getOwnPropertySymbols,fe=le?function(t){return null==t?[]:(t=Object(t),se(le(t),function(e){return ae.call(t,e)}))}:ue;function ce(t){return oe(t,Gt,fe)}var de=Object.prototype.hasOwnProperty;var he=P(s,"DataView"),pe=P(s,"Promise"),ve=P(s,"Set"),me=P(s,"WeakMap"),ye="[object Map]",ge="[object Promise]",we="[object Set]",be="[object WeakMap]",Me="[object DataView]",_e=E(he),Oe=E(G),je=E(pe),Se=E(ve),Ee=E(me),$e=p;(he&&$e(new he(new ArrayBuffer(1)))!=Me||G&&$e(new G)!=ye||pe&&$e(pe.resolve())!=ge||ve&&$e(new ve)!=we||me&&$e(new me)!=be)&&($e=function(t){var e=p(t),r="[object Object]"==e?t.constructor:void 0,n=r?E(r):"";if(n)switch(n){case _e:return Me;case Oe:return ye;case je:return ge;case Se:return we;case Ee:return be}return e});var Ne=$e,Ce="[object Arguments]",Ae="[object Array]",xe="[object Object]",Le=Object.prototype.hasOwnProperty;function Re(t,e,r,i,o,s){var u=n(t),a=n(e),l=u?Ae:Ne(t),f=a?Ae:Ne(e),c=(l=l==Ce?xe:l)==xe,d=(f=f==Ce?xe:f)==xe,h=l==f;if(h&&_t(t)){if(!_t(e))return!1;u=!0,c=!1}if(h&&!c)return s||(s=new Vt),u||Rt(t)?Xt(t,e,r,i,o,s):function(t,e,r,n,i,o,s){switch(r){case"[object DataView]":if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)return!1;t=t.buffer,e=e.buffer;case"[object ArrayBuffer]":return!(t.byteLength!=e.byteLength||!o(new Qt(t),new Qt(e)));case"[object Boolean]":case"[object Date]":case"[object Number]":return B(+t,+e);case"[object Error]":return t.name==e.name&&t.message==e.message;case"[object RegExp]":case"[object String]":return t==e+"";case"[object Map]":var u=te;case"[object Set]":var a=1&n;if(u||(u=ee),t.size!=e.size&&!a)return!1;var l=s.get(t);if(l)return l==e;n|=2,s.set(t,e);var f=Xt(u(t),u(e),n,i,o,s);return s.delete(t),f;case"[object Symbol]":if(ne)return ne.call(t)==ne.call(e)}return!1}(t,e,l,r,i,o,s);if(!(1&r)){var p=c&&Le.call(t,"__wrapped__"),v=d&&Le.call(e,"__wrapped__");if(p||v){var m=p?t.value():t,y=v?e.value():e;return s||(s=new Vt),o(m,y,r,i,s)}}return!!h&&(s||(s=new Vt),function(t,e,r,n,i,o){var s=1&r,u=ce(t),a=u.length;if(a!=ce(e).length&&!s)return!1;for(var l=a;l--;){var f=u[l];if(!(s?f in e:de.call(e,f)))return!1}var c=o.get(t),d=o.get(e);if(c&&d)return c==e&&d==t;var h=!0;o.set(t,e),o.set(e,t);for(var p=s;++l<a;){var v=t[f=u[l]],m=e[f];if(n)var y=s?n(m,v,f,e,t,o):n(v,m,f,t,e,o);if(!(void 0===y?v===m||i(v,m,r,n,o):y)){h=!1;break}p||(p="constructor"==f)}if(h&&!p){var g=t.constructor,w=e.constructor;g==w||!("constructor"in t)||!("constructor"in e)||"function"==typeof g&&g instanceof g&&"function"==typeof w&&w instanceof w||(h=!1)}return o.delete(t),o.delete(e),h}(t,e,r,i,o,s))}function Pe(t,e,r,n,i){return t===e||(null==t||null==e||!v(t)&&!v(e)?t!=t&&e!=e:Re(t,e,r,n,Pe,i))}function Te(t){return t==t&&!b(t)}function ke(t,e){return function(r){return null!=r&&(r[t]===e&&(void 0!==e||t in Object(r)))}}function Fe(t){var e=function(t){for(var e=Gt(t),r=e.length;r--;){var n=e[r],i=t[n];e[r]=[n,i,Te(i)]}return e}(t);return 1==e.length&&e[0][2]?ke(e[0][0],e[0][1]):function(r){return r===t||function(t,e,r,n){var i=r.length,o=i,s=!n;if(null==t)return!o;for(t=Object(t);i--;){var u=r[i];if(s&&u[2]?u[1]!==t[u[0]]:!(u[0]in t))return!1}for(;++i<o;){var a=(u=r[i])[0],l=t[a],f=u[1];if(s&&u[2]){if(void 0===l&&!(a in t))return!1}else{var c=new Vt;if(n)var d=n(l,f,a,t,e,c);if(!(void 0===d?Pe(f,l,3,n,c):d))return!1}}return!0}(r,t,e)}}function De(t,e){return null!=t&&e in Object(t)}function Be(t,e){return null!=t&&function(t,e,r){for(var i=-1,o=(e=ot(e,t)).length,s=!1;++i<o;){var u=st(e[i]);if(!(s=null!=t&&r(t,u)))break;t=t[u]}return s||++i!=o?s:!!(o=null==t?0:t.length)&&St(o)&&jt(u,o)&&(n(t)||gt(t))}(t,e,De)}function Ie(t){return t}function qe(t){return function(e){return null==e?void 0:e[t]}}function Ue(t){return w(t)?qe(st(t)):function(t){return function(e){return ut(e,t)}}(t)}function Ge(t){return"function"==typeof t?t:null==t?Ie:"object"==typeof t?n(t)?function(t,e){return w(t)&&Te(e)?ke(st(t),e):function(r){var n=at(r,t);return void 0===n&&n===e?Be(r,t):Pe(e,n,3)}}(t[0],t[1]):Fe(t):Ue(t)}var He,Ye=function(t,e,r){for(var n=-1,i=Object(t),o=r(t),s=o.length;s--;){var u=o[He?s:++n];if(!1===e(i[u],u,i))break}return t};var ze=function(t,e){return function(r,n){if(null==r)return r;if(!Ut(r))return t(r,n);for(var i=r.length,o=e?i:-1,s=Object(r);(e?o--:++o<i)&&!1!==n(s[o],o,s););return r}}(function(t,e){return t&&Ye(t,e,Gt)}),Ze=ze;function Ve(t,e){var r=-1,n=Ut(t)?Array(t.length):[];return Ze(t,function(t,i,o){n[++r]=e(t,i,o)}),n}function We(t,e){return(n(t)?tt:Ve)(t,Ge(e))}var Je=qe("length"),Ke=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]");function Xe(t){return Ke.test(t)}var Qe="\\ud800-\\udfff",tr="["+Qe+"]",er="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",rr="\\ud83c[\\udffb-\\udfff]",nr="[^"+Qe+"]",ir="(?:\\ud83c[\\udde6-\\uddff]){2}",or="[\\ud800-\\udbff][\\udc00-\\udfff]",sr="(?:"+er+"|"+rr+")"+"?",ur="[\\ufe0e\\ufe0f]?",ar=ur+sr+("(?:\\u200d(?:"+[nr,ir,or].join("|")+")"+ur+sr+")*"),lr="(?:"+[nr+er+"?",er,ir,or,tr].join("|")+")",fr=RegExp(rr+"(?="+rr+")|"+lr+ar,"g");function cr(t){return Xe(t)?function(t){for(var e=fr.lastIndex=0;fr.test(t);)++e;return e}(t):Je(t)}function dr(t){if(null==t)return 0;if(Ut(t))return"string"==typeof(e=t)||!n(e)&&v(e)&&"[object String]"==p(e)?cr(t):t.length;var e,r=Ne(t);return"[object Map]"==r||"[object Set]"==r?t.size:qt(t).length}var hr=/\s/;var pr=/^\s+/;function vr(t){return t?t.slice(0,function(t){for(var e=t.length;e--&&hr.test(t.charAt(e)););return e}(t)+1).replace(pr,""):t}var mr=/^[-+]0x[0-9a-f]+$/i,yr=/^0b[01]+$/i,gr=/^0o[0-7]+$/i,wr=parseInt;function br(t){if("number"==typeof t)return t;if(m(t))return NaN;if(b(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=b(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=vr(t);var r=yr.test(t);return r||gr.test(t)?wr(t.slice(2),r?2:8):mr.test(t)?NaN:+t}var Mr=1/0;function _r(t){return t?(t=br(t))===Mr||t===-1/0?17976931348623157e292*(t<0?-1:1):t==t?t:0:0===t?t:0}function Or(t){var e=_r(t),r=e%1;return e==e?r?e-r:e:0}var jr=s.isFinite,Sr=Math.min;var Er=function(t){var e=Math[t];return function(t,r){if(t=br(t),(r=null==r?0:Sr(Or(r),292))&&jr(t)){var n=(it(t)+"e").split("e");return+((n=(it(e(n[0]+"e"+(+n[1]+r)))+"e").split("e"))[0]+"e"+(+n[1]-r))}return e(t)}}("round"),$r=Er;function Nr(t){return t!=t}function Cr(t){let e=!1;if(Zt(t))e=!isNaN(Number(t));else if(function(t){return"[object Number]"===Object.prototype.toString.call(t)}(t)){if(Nr(t))return!1;e=!0}return e}function Ar(t){if(!Cr(t))return 0;return _r(t)}function xr(t){if(!Cr(t))return 0;t=Ar(t);let e=$r(t);return"0"===String(e)?0:e}var Lr=Math.ceil,Rr=Math.max;function Pr(t,e,r){if(!b(r))return!1;var n=typeof e;return!!("number"==n?Ut(r)&&jt(e,r.length):"string"==n&&e in r)&&B(r[e],t)}var Tr=function(t){return function(e,r,n){return n&&"number"!=typeof n&&Pr(e,r,n)&&(r=n=void 0),e=_r(e),void 0===r?(r=e,e=0):r=_r(r),function(t,e,r,n){for(var i=-1,o=Rr(Lr((e-t)/(r||1)),0),s=Array(o);o--;)s[n?o:++i]=t,t+=r;return s}(e,r,n=void 0===n?e<r?1:-1:_r(n),t)}}(),kr=Tr;function Fr(t,e,r){return t==t&&(void 0!==r&&(t=t<=r?t:r),void 0!==e&&(t=t>=e?t:e)),t}function Dr(t,e){var r=-1,n=t.length;for(e||(e=Array(n));++r<n;)e[r]=t[r];return e}function Br(t,e){var r=-1,n=t.length,i=n-1;for(e=void 0===e?n:e;++r<e;){var o=ct(r,i),s=t[o];t[o]=t[r],t[r]=s}return t.length=e,t}function Ir(t,e){return Br(Dr(t),Fr(e,0,t.length))}function qr(t,e){var r=Ht(t);return Br(r,Fr(e,0,r.length))}function Ur(t){return!!Cr(t)&&(t=Ar(t),"number"==typeof(e=t)&&e==Or(e));var e}function Gr(t){if(!Ur(t))return!1;return xr(t)>0}function Hr(t=0,e=100,r){if(Ur(t)||(t=0),t=xr(t),Ur(e)||(e=100),e=xr(e),Gr(r)||(r=1),r=xr(r),t>e)throw new Error(`vstart[${t}] > vend[${e}]`);let i=function(t,e,r){return e=(r?Pr(t,e,r):void 0===e)?1:Or(e),(n(t)?Ir:qr)(t,e)}(kr(t,e+1),r);return i}function Yr(t,e){for(var r=-1,n=null==t?0:t.length;++r<n&&!1!==e(t[r],r,t););return t}function zr(t,e){var r;return(n(t)?Yr:Ze)(t,"function"==typeof(r=e)?r:Ie)}function Zr(t,e,r){var n=-1,i=t.length;e<0&&(e=-e>i?0:i+e),(r=r>i?i:r)<0&&(r+=i),i=e>r?0:r-e>>>0,e>>>=0;for(var o=Array(i);++n<i;)o[n]=t[n+e];return o}function Vr(t){return t!=t}function Wr(t,e,r){return e==e?function(t,e,r){for(var n=r-1,i=t.length;++n<i;)if(t[n]===e)return n;return-1}(t,e,r):function(t,e,r,n){for(var i=t.length,o=r+(n?1:-1);n?o--:++o<i;)if(e(t[o],o,t))return o;return-1}(t,Vr,r)}var Jr="\\ud800-\\udfff",Kr="["+Jr+"]",Xr="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",Qr="\\ud83c[\\udffb-\\udfff]",tn="[^"+Jr+"]",en="(?:\\ud83c[\\udde6-\\uddff]){2}",rn="[\\ud800-\\udbff][\\udc00-\\udfff]",nn="(?:"+Xr+"|"+Qr+")"+"?",on="[\\ufe0e\\ufe0f]?",sn=on+nn+("(?:\\u200d(?:"+[tn,en,rn].join("|")+")"+on+nn+")*"),un="(?:"+[tn+Xr+"?",Xr,en,rn,Kr].join("|")+")",an=RegExp(Qr+"(?="+Qr+")|"+un+sn,"g");function ln(t){return Xe(t)?function(t){return t.match(an)||[]}(t):function(t){return t.split("")}(t)}function fn(t,e,r){if((t=it(t))&&(r||void 0===e))return vr(t);if(!t||!(e=nt(e)))return t;var n=ln(t),i=ln(e),o=function(t,e){for(var r=-1,n=t.length;++r<n&&Wr(e,t[r],0)>-1;);return r}(n,i),s=function(t,e){for(var r=t.length;r--&&Wr(e,t[r],0)>-1;);return r}(n,i)+1;return function(t,e,r){var n=t.length;return r=void 0===r?n:r,!e&&r>=n?t:Zr(t,e,r)}(n,o,s).join("")}function cn(t,e){if(!Zt(t))return[];if(!Zt(e))return[];let r=function(t,e){return Zt(t)&&Zt(e)?t.split(e):[]}(t,e);r=We(r,fn);let n=[];return zr(r,function(t){Zt(t)&&n.push(t)}),n}function dn(t){let e=Object.prototype.toString.call(t);return"[object Function]"===e||"[object AsyncFunction]"===e}var hn="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function pn(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var vn={exports:{}};
|
|
7
7
|
/*!
|
|
8
|
-
* w-data-tdprovide v1.0.
|
|
8
|
+
* w-data-tdprovide v1.0.14
|
|
9
9
|
* (c) 2018-2021 yuda-lyu(semisphere)
|
|
10
10
|
* Released under the MIT License.
|
|
11
11
|
*/!function(r,n){r.exports=function(t,e){function i(t,e){for(var r=-1,n=null==t?0:t.length;++r<n&&!1!==e(t[r],r,t););return t}var o=function(t,e,r){for(var n=-1,i=Object(t),o=r(t),s=o.length;s--;){var u=o[++n];if(!1===e(i[u],u,i))break}return t},s="object"==typeof hn&&hn&&hn.Object===Object&&hn,u="object"==typeof self&&self&&self.Object===Object&&self,a=s||u||Function("return this")(),l=a.Symbol,f=Object.prototype,c=f.hasOwnProperty,d=f.toString,h=l?l.toStringTag:void 0,p=Object.prototype.toString,v=l?l.toStringTag:void 0;function m(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":v&&v in Object(t)?function(t){var e=c.call(t,h),r=t[h];try{t[h]=void 0;var n=!0}catch(t){}var i=d.call(t);return n&&(e?t[h]=r:delete t[h]),i}(t):function(t){return p.call(t)}(t)}function y(t){return null!=t&&"object"==typeof t}function g(t){return y(t)&&"[object Arguments]"==m(t)}var w=Object.prototype,b=w.hasOwnProperty,M=w.propertyIsEnumerable,_=g(function(){return arguments}())?g:function(t){return y(t)&&b.call(t,"callee")&&!M.call(t,"callee")},O=_,j=Array.isArray,S=n&&!n.nodeType&&n,E=S&&r&&!r.nodeType&&r,$=E&&E.exports===S?a.Buffer:void 0,N=($?$.isBuffer:void 0)||function(){return!1},C=/^(?:0|[1-9]\d*)$/;function A(t,e){var r=typeof t;return!!(e=null==e?9007199254740991:e)&&("number"==r||"symbol"!=r&&C.test(t))&&t>-1&&t%1==0&&t<e}function x(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=9007199254740991}var L={};function R(t){return function(e){return t(e)}}L["[object Float32Array]"]=L["[object Float64Array]"]=L["[object Int8Array]"]=L["[object Int16Array]"]=L["[object Int32Array]"]=L["[object Uint8Array]"]=L["[object Uint8ClampedArray]"]=L["[object Uint16Array]"]=L["[object Uint32Array]"]=!0,L["[object Arguments]"]=L["[object Array]"]=L["[object ArrayBuffer]"]=L["[object Boolean]"]=L["[object DataView]"]=L["[object Date]"]=L["[object Error]"]=L["[object Function]"]=L["[object Map]"]=L["[object Number]"]=L["[object Object]"]=L["[object RegExp]"]=L["[object Set]"]=L["[object String]"]=L["[object WeakMap]"]=!1;var P=n&&!n.nodeType&&n,T=P&&r&&!r.nodeType&&r,k=T&&T.exports===P&&s.process,F=function(){try{return T&&T.require&&T.require("util").types||k&&k.binding&&k.binding("util")}catch(t){}}(),D=F&&F.isTypedArray,B=D?R(D):function(t){return y(t)&&x(t.length)&&!!L[m(t)]},I=Object.prototype.hasOwnProperty;function q(t,e){var r=j(t),n=!r&&O(t),i=!r&&!n&&N(t),o=!r&&!n&&!i&&B(t),s=r||n||i||o,u=s?function(t,e){for(var r=-1,n=Array(t);++r<t;)n[r]=e(r);return n}(t.length,String):[],a=u.length;for(var l in t)!e&&!I.call(t,l)||s&&("length"==l||i&&("offset"==l||"parent"==l)||o&&("buffer"==l||"byteLength"==l||"byteOffset"==l)||A(l,a))||u.push(l);return u}var U,G,H=Object.prototype,Y=(U=Object.keys,G=Object,function(t){return U(G(t))}),z=Object.prototype.hasOwnProperty;function Z(t){if(r=(e=t)&&e.constructor,e!==("function"==typeof r&&r.prototype||H))return Y(t);var e,r,n=[];for(var i in Object(t))z.call(t,i)&&"constructor"!=i&&n.push(i);return n}function V(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}function W(t){if(!V(t))return!1;var e=m(t);return"[object Function]"==e||"[object GeneratorFunction]"==e||"[object AsyncFunction]"==e||"[object Proxy]"==e}function J(t){return null!=t&&x(t.length)&&!W(t)}function K(t){return J(t)?q(t):Z(t)}var X=function(t,e){return function(r,n){if(null==r)return r;if(!J(r))return t(r,n);for(var i=r.length,o=e?i:-1,s=Object(r);(e?o--:++o<i)&&!1!==n(s[o],o,s););return r}}(function(t,e){return t&&o(t,e,K)}),Q=X;function tt(t){return t}function et(t,e){var r;return(j(t)?i:Q)(t,"function"==typeof(r=e)?r:tt)}function rt(t,e){for(var r=-1,n=null==t?0:t.length,i=0,o=[];++r<n;){var s=t[r];e(s,r,t)&&(o[i++]=s)}return o}function nt(t,e){var r=[];return Q(t,function(t,n,i){e(t,n,i)&&r.push(t)}),r}function it(t,e){return t===e||t!=t&&e!=e}function ot(t,e){for(var r=t.length;r--;)if(it(t[r][0],e))return r;return-1}var st=Array.prototype.splice;function ut(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}ut.prototype.clear=function(){this.__data__=[],this.size=0},ut.prototype.delete=function(t){var e=this.__data__,r=ot(e,t);return!(r<0||(r==e.length-1?e.pop():st.call(e,r,1),--this.size,0))},ut.prototype.get=function(t){var e=this.__data__,r=ot(e,t);return r<0?void 0:e[r][1]},ut.prototype.has=function(t){return ot(this.__data__,t)>-1},ut.prototype.set=function(t,e){var r=this.__data__,n=ot(r,t);return n<0?(++this.size,r.push([t,e])):r[n][1]=e,this};var at,lt=a["__core-js_shared__"],ft=(at=/[^.]+$/.exec(lt&<.keys&<.keys.IE_PROTO||""))?"Symbol(src)_1."+at:"",ct=Function.prototype.toString;function dt(t){if(null!=t){try{return ct.call(t)}catch(t){}try{return t+""}catch(t){}}return""}var ht=/^\[object .+?Constructor\]$/,pt=Function.prototype,vt=Object.prototype,mt=pt.toString,yt=vt.hasOwnProperty,gt=RegExp("^"+mt.call(yt).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function wt(t){return!(!V(t)||function(t){return!!ft&&ft in t}(t))&&(W(t)?gt:ht).test(dt(t))}function bt(t,e){var r=function(t,e){return null==t?void 0:t[e]}(t,e);return wt(r)?r:void 0}var Mt=bt(a,"Map"),_t=bt(Object,"create"),Ot=Object.prototype.hasOwnProperty,jt=Object.prototype.hasOwnProperty;function St(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}function Et(t,e){var r,n,i=t.__data__;return("string"==(n=typeof(r=e))||"number"==n||"symbol"==n||"boolean"==n?"__proto__"!==r:null===r)?i["string"==typeof e?"string":"hash"]:i.map}function $t(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}function Nt(t){var e=this.__data__=new ut(t);this.size=e.size}function Ct(t){var e=-1,r=null==t?0:t.length;for(this.__data__=new $t;++e<r;)this.add(t[e])}function At(t,e){for(var r=-1,n=null==t?0:t.length;++r<n;)if(e(t[r],r,t))return!0;return!1}function xt(t,e,r,n,i,o){var s=1&r,u=t.length,a=e.length;if(u!=a&&!(s&&a>u))return!1;var l=o.get(t),f=o.get(e);if(l&&f)return l==e&&f==t;var c=-1,d=!0,h=2&r?new Ct:void 0;for(o.set(t,e),o.set(e,t);++c<u;){var p=t[c],v=e[c];if(n)var m=s?n(v,p,c,e,t,o):n(p,v,c,t,e,o);if(void 0!==m){if(m)continue;d=!1;break}if(h){if(!At(e,function(t,e){if(s=e,!h.has(s)&&(p===t||i(p,t,r,n,o)))return h.push(e);var s})){d=!1;break}}else if(p!==v&&!i(p,v,r,n,o)){d=!1;break}}return o.delete(t),o.delete(e),d}St.prototype.clear=function(){this.__data__=_t?_t(null):{},this.size=0},St.prototype.delete=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e},St.prototype.get=function(t){var e=this.__data__;if(_t){var r=e[t];return"__lodash_hash_undefined__"===r?void 0:r}return Ot.call(e,t)?e[t]:void 0},St.prototype.has=function(t){var e=this.__data__;return _t?void 0!==e[t]:jt.call(e,t)},St.prototype.set=function(t,e){var r=this.__data__;return this.size+=this.has(t)?0:1,r[t]=_t&&void 0===e?"__lodash_hash_undefined__":e,this},$t.prototype.clear=function(){this.size=0,this.__data__={hash:new St,map:new(Mt||ut),string:new St}},$t.prototype.delete=function(t){var e=Et(this,t).delete(t);return this.size-=e?1:0,e},$t.prototype.get=function(t){return Et(this,t).get(t)},$t.prototype.has=function(t){return Et(this,t).has(t)},$t.prototype.set=function(t,e){var r=Et(this,t),n=r.size;return r.set(t,e),this.size+=r.size==n?0:1,this},Nt.prototype.clear=function(){this.__data__=new ut,this.size=0},Nt.prototype.delete=function(t){var e=this.__data__,r=e.delete(t);return this.size=e.size,r},Nt.prototype.get=function(t){return this.__data__.get(t)},Nt.prototype.has=function(t){return this.__data__.has(t)},Nt.prototype.set=function(t,e){var r=this.__data__;if(r instanceof ut){var n=r.__data__;if(!Mt||n.length<199)return n.push([t,e]),this.size=++r.size,this;r=this.__data__=new $t(n)}return r.set(t,e),this.size=r.size,this},Ct.prototype.add=Ct.prototype.push=function(t){return this.__data__.set(t,"__lodash_hash_undefined__"),this},Ct.prototype.has=function(t){return this.__data__.has(t)};var Lt=a.Uint8Array;function Rt(t){var e=-1,r=Array(t.size);return t.forEach(function(t,n){r[++e]=[n,t]}),r}function Pt(t){var e=-1,r=Array(t.size);return t.forEach(function(t){r[++e]=t}),r}var Tt=l?l.prototype:void 0,kt=Tt?Tt.valueOf:void 0,Ft=Object.prototype.propertyIsEnumerable,Dt=Object.getOwnPropertySymbols,Bt=Dt?function(t){return null==t?[]:(t=Object(t),rt(Dt(t),function(e){return Ft.call(t,e)}))}:function(){return[]};function It(t){return function(t,e,r){var n=e(t);return j(t)?n:function(t,e){for(var r=-1,n=e.length,i=t.length;++r<n;)t[i+r]=e[r];return t}(n,r(t))}(t,K,Bt)}var qt=Object.prototype.hasOwnProperty,Ut=bt(a,"DataView"),Gt=bt(a,"Promise"),Ht=bt(a,"Set"),Yt=bt(a,"WeakMap"),zt="[object Map]",Zt="[object Promise]",Vt="[object Set]",Wt="[object WeakMap]",Jt="[object DataView]",Kt=dt(Ut),Xt=dt(Mt),Qt=dt(Gt),te=dt(Ht),ee=dt(Yt),re=m;(Ut&&re(new Ut(new ArrayBuffer(1)))!=Jt||Mt&&re(new Mt)!=zt||Gt&&re(Gt.resolve())!=Zt||Ht&&re(new Ht)!=Vt||Yt&&re(new Yt)!=Wt)&&(re=function(t){var e=m(t),r="[object Object]"==e?t.constructor:void 0,n=r?dt(r):"";if(n)switch(n){case Kt:return Jt;case Xt:return zt;case Qt:return Zt;case te:return Vt;case ee:return Wt}return e});var ne=re,ie="[object Arguments]",oe="[object Array]",se="[object Object]",ue=Object.prototype.hasOwnProperty;function ae(t,e,r,n,i,o){var s=j(t),u=j(e),a=s?oe:ne(t),l=u?oe:ne(e),f=(a=a==ie?se:a)==se,c=(l=l==ie?se:l)==se,d=a==l;if(d&&N(t)){if(!N(e))return!1;s=!0,f=!1}if(d&&!f)return o||(o=new Nt),s||B(t)?xt(t,e,r,n,i,o):function(t,e,r,n,i,o,s){switch(r){case"[object DataView]":if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)return!1;t=t.buffer,e=e.buffer;case"[object ArrayBuffer]":return!(t.byteLength!=e.byteLength||!o(new Lt(t),new Lt(e)));case"[object Boolean]":case"[object Date]":case"[object Number]":return it(+t,+e);case"[object Error]":return t.name==e.name&&t.message==e.message;case"[object RegExp]":case"[object String]":return t==e+"";case"[object Map]":var u=Rt;case"[object Set]":var a=1&n;if(u||(u=Pt),t.size!=e.size&&!a)return!1;var l=s.get(t);if(l)return l==e;n|=2,s.set(t,e);var f=xt(u(t),u(e),n,i,o,s);return s.delete(t),f;case"[object Symbol]":if(kt)return kt.call(t)==kt.call(e)}return!1}(t,e,a,r,n,i,o);if(!(1&r)){var h=f&&ue.call(t,"__wrapped__"),p=c&&ue.call(e,"__wrapped__");if(h||p){var v=h?t.value():t,m=p?e.value():e;return o||(o=new Nt),i(v,m,r,n,o)}}return!!d&&(o||(o=new Nt),function(t,e,r,n,i,o){var s=1&r,u=It(t),a=u.length;if(a!=It(e).length&&!s)return!1;for(var l=a;l--;){var f=u[l];if(!(s?f in e:qt.call(e,f)))return!1}var c=o.get(t),d=o.get(e);if(c&&d)return c==e&&d==t;var h=!0;o.set(t,e),o.set(e,t);for(var p=s;++l<a;){var v=t[f=u[l]],m=e[f];if(n)var y=s?n(m,v,f,e,t,o):n(v,m,f,t,e,o);if(!(void 0===y?v===m||i(v,m,r,n,o):y)){h=!1;break}p||(p="constructor"==f)}if(h&&!p){var g=t.constructor,w=e.constructor;g==w||!("constructor"in t)||!("constructor"in e)||"function"==typeof g&&g instanceof g&&"function"==typeof w&&w instanceof w||(h=!1)}return o.delete(t),o.delete(e),h}(t,e,r,n,i,o))}function le(t,e,r,n,i){return t===e||(null==t||null==e||!y(t)&&!y(e)?t!=t&&e!=e:ae(t,e,r,n,le,i))}function fe(t){return t==t&&!V(t)}function ce(t,e){return function(r){return null!=r&&r[t]===e&&(void 0!==e||t in Object(r))}}function de(t){var e=function(t){for(var e=K(t),r=e.length;r--;){var n=e[r],i=t[n];e[r]=[n,i,fe(i)]}return e}(t);return 1==e.length&&e[0][2]?ce(e[0][0],e[0][1]):function(r){return r===t||function(t,e,r,n){var i=r.length,o=i,s=!n;if(null==t)return!o;for(t=Object(t);i--;){var u=r[i];if(s&&u[2]?u[1]!==t[u[0]]:!(u[0]in t))return!1}for(;++i<o;){var a=(u=r[i])[0],l=t[a],f=u[1];if(s&&u[2]){if(void 0===l&&!(a in t))return!1}else{var c=new Nt;if(n)var d=n(l,f,a,t,e,c);if(!(void 0===d?le(f,l,3,n,c):d))return!1}}return!0}(r,t,e)}}function he(t){return"symbol"==typeof t||y(t)&&"[object Symbol]"==m(t)}var pe=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,ve=/^\w*$/;function me(t,e){if(j(t))return!1;var r=typeof t;return!("number"!=r&&"symbol"!=r&&"boolean"!=r&&null!=t&&!he(t))||ve.test(t)||!pe.test(t)||null!=e&&t in Object(e)}function ye(t,e){if("function"!=typeof t||null!=e&&"function"!=typeof e)throw new TypeError("Expected a function");var r=function(){var n=arguments,i=e?e.apply(this,n):n[0],o=r.cache;if(o.has(i))return o.get(i);var s=t.apply(this,n);return r.cache=o.set(i,s)||o,s};return r.cache=new(ye.Cache||$t),r}ye.Cache=$t;var ge=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,we=/\\(\\)?/g,be=function(t){var e=ye(t,function(t){return 500===r.size&&r.clear(),t}),r=e.cache;return e}(function(t){var e=[];return 46===t.charCodeAt(0)&&e.push(""),t.replace(ge,function(t,r,n,i){e.push(n?i.replace(we,"$1"):r||t)}),e}),Me=be;function _e(t,e){for(var r=-1,n=null==t?0:t.length,i=Array(n);++r<n;)i[r]=e(t[r],r,t);return i}var Oe=l?l.prototype:void 0,je=Oe?Oe.toString:void 0;function Se(t){if("string"==typeof t)return t;if(j(t))return _e(t,Se)+"";if(he(t))return je?je.call(t):"";var e=t+"";return"0"==e&&1/t==-1/0?"-0":e}function Ee(t){return null==t?"":Se(t)}function $e(t,e){return j(t)?t:me(t,e)?[t]:Me(Ee(t))}function Ne(t){if("string"==typeof t||he(t))return t;var e=t+"";return"0"==e&&1/t==-1/0?"-0":e}function Ce(t,e){for(var r=0,n=(e=$e(e,t)).length;null!=t&&r<n;)t=t[Ne(e[r++])];return r&&r==n?t:void 0}function Ae(t,e,r){var n=null==t?void 0:Ce(t,e);return void 0===n?r:n}function xe(t,e){return null!=t&&e in Object(t)}function Le(t,e){return null!=t&&function(t,e,r){for(var n=-1,i=(e=$e(e,t)).length,o=!1;++n<i;){var s=Ne(e[n]);if(!(o=null!=t&&r(t,s)))break;t=t[s]}return o||++n!=i?o:!!(i=null==t?0:t.length)&&x(i)&&A(s,i)&&(j(t)||O(t))}(t,e,xe)}function Re(t){return function(e){return null==e?void 0:e[t]}}function Pe(t){return me(t)?Re(Ne(t)):function(t){return function(e){return Ce(e,t)}}(t)}function Te(t){return"function"==typeof t?t:null==t?tt:"object"==typeof t?j(t)?function(t,e){return me(t)&&fe(e)?ce(Ne(t),e):function(r){var n=Ae(r,t);return void 0===n&&n===e?Le(r,t):le(e,n,3)}}(t[0],t[1]):de(t):Pe(t)}function ke(t,e){return(j(t)?rt:nt)(t,Te(e))}function Fe(t){var e=null==t?0:t.length;return e?t[e-1]:void 0}function De(t,e){var r=-1,n=J(t)?Array(t.length):[];return Q(t,function(t,i,o){n[++r]=e(t,i,o)}),n}var Be=Re("length"),Ie=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]");function qe(t){return Ie.test(t)}var Ue="\\ud800-\\udfff",Ge="["+Ue+"]",He="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",Ye="\\ud83c[\\udffb-\\udfff]",ze="[^"+Ue+"]",Ze="(?:\\ud83c[\\udde6-\\uddff]){2}",Ve="[\\ud800-\\udbff][\\udc00-\\udfff]",We="(?:"+He+"|"+Ye+")?",Je="[\\ufe0e\\ufe0f]?",Ke=Je+We+"(?:\\u200d(?:"+[ze,Ze,Ve].join("|")+")"+Je+We+")*",Xe="(?:"+[ze+He+"?",He,Ze,Ve,Ge].join("|")+")",Qe=RegExp(Ye+"(?="+Ye+")|"+Xe+Ke,"g");function tr(t){return qe(t)?function(t){for(var e=Qe.lastIndex=0;Qe.test(t);)++e;return e}(t):Be(t)}function er(t){if(null==t)return 0;if(J(t))return"string"==typeof(e=t)||!j(e)&&y(e)&&"[object String]"==m(e)?tr(t):t.length;var e,r=ne(t);return"[object Map]"==r||"[object Set]"==r?t.size:Z(t).length}function rr(t,e={}){let r=Ae(e,"fs"),n=!1;try{r.statSync(t),n=!0}catch{n=!1}return n}function nr(t){return function(t,e={}){let r=Ae(e,"fs");return!!rr(t,{fs:r})&&!r.lstatSync(t).isDirectory()&&!r.lstatSync(t).isSymbolicLink()}(t,{fs:e})}function ir(t){let r=null,n=function(t,e={}){let r=null,n=Ae(e,"fs"),i="";try{i=n.readFileSync(t,"utf8")}catch(t){r=t}return null!==r?{error:r}:{success:i}}(t,{fs:e});if(n.error)return n;let i=n.success,o=null;try{o=JSON.parse(i)}catch(t){r=t}return null!==r?{error:r}:{success:o}}var or=/\s/,sr=/^\s+/;function ur(t){return t?t.slice(0,function(t){for(var e=t.length;e--&&or.test(t.charAt(e)););return e}(t)+1).replace(sr,""):t}var ar=/^[-+]0x[0-9a-f]+$/i,lr=/^0b[01]+$/i,fr=/^0o[0-7]+$/i,cr=parseInt;function dr(t){if("number"==typeof t)return t;if(he(t))return NaN;if(V(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=V(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=ur(t);var r=lr.test(t);return r||fr.test(t)?cr(t.slice(2),r?2:8):ar.test(t)?NaN:+t}var hr=1/0;function pr(t){return t?(t=dr(t))===hr||t===-1/0?17976931348623157e292*(t<0?-1:1):t==t?t:0:0===t?t:0}function vr(t){var e=pr(t),r=e%1;return e==e?r?e-r:e:0}function mr(t){return"[object String]"===Object.prototype.toString.call(t)}function yr(t){return!(!mr(t)||""===t)}function gr(t){return t!=t}function wr(t){let e=!1;if(yr(t))e=!isNaN(Number(t));else if(function(t){return"[object Number]"===Object.prototype.toString.call(t)}(t)){if(gr(t))return!1;e=!0}return e}function br(t){return wr(t)?pr(t):0}function Mr(t){return!!wr(t)&&"number"==typeof(e=t=br(t))&&e==vr(e);var e}var _r=a.isFinite,Or=Math.min,jr=function(){var t=Math.round;return function(e,r){if(e=dr(e),(r=null==r?0:Or(vr(r),292))&&_r(e)){var n=(Ee(e)+"e").split("e");return+((n=(Ee(t(n[0]+"e"+(+n[1]+r)))+"e").split("e"))[0]+"e"+(+n[1]-r))}return t(e)}}(),Sr=jr;function Er(t){if(!wr(t))return 0;t=br(t);let e=Sr(t);return"0"===String(e)?0:e}function $r(t,e={}){let r=Ae(e,"fs");if(!rr(t,{fs:r}))return!1;let n=r.lstatSync(t);return!n.isFile()&&!n.isSymbolicLink()}function Nr(t,e=1,r={}){let n=1,i=Ae(r,"path"),o=Ae(r,"fs");if(!$r(t,{fs:o}))throw new Error(`fd[${t}] is not a folder`);var s;return null!==e&&Mr(s=e)&&Er(s)>0&&(e=Er(e))<1&&(e=1),function t(r){let s=[];return $r(r,{fs:o})?(et(o.readdirSync(r),function(u){let a=i.resolve(r,u),l=null;try{l=o.statSync(a)}catch(t){}l&&l.isDirectory()?(s.push({isFolder:!0,level:n,path:a,name:i.basename(a)}),n+=1,(n<=e||null===e)&&(s=s.concat(t(a))),n-=1):s.push({isFolder:!1,level:n,path:a,name:i.basename(a)})}),s):s}(t)}function Cr(r,n=1){return Nr(r,n,{path:t,fs:e})}function Ar(t,e,r){var n=-1,i=t.length;e<0&&(e=-e>i?0:i+e),(r=r>i?i:r)<0&&(r+=i),i=e>r?0:r-e>>>0,e>>>=0;for(var o=Array(i);++n<i;)o[n]=t[n+e];return o}var xr=F&&F.isRegExp,Lr=xr?R(xr):function(t){return y(t)&&"[object RegExp]"==m(t)},Rr="\\ud800-\\udfff",Pr="["+Rr+"]",Tr="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",kr="\\ud83c[\\udffb-\\udfff]",Fr="[^"+Rr+"]",Dr="(?:\\ud83c[\\udde6-\\uddff]){2}",Br="[\\ud800-\\udbff][\\udc00-\\udfff]",Ir="(?:"+Tr+"|"+kr+")?",qr="[\\ufe0e\\ufe0f]?",Ur=qr+Ir+"(?:\\u200d(?:"+[Fr,Dr,Br].join("|")+")"+qr+Ir+")*",Gr="(?:"+[Fr+Tr+"?",Tr,Dr,Br,Pr].join("|")+")",Hr=RegExp(kr+"(?="+kr+")|"+Gr+Ur,"g");function Yr(t){return qe(t)?function(t){return t.match(Hr)||[]}(t):function(t){return t.split("")}(t)}function zr(t,e,r){return r&&"number"!=typeof r&&function(t,e,r){if(!V(r))return!1;var n=typeof e;return!!("number"==n?J(r)&&A(e,r.length):"string"==n&&e in r)&&it(r[e],t)}(t,e,r)&&(e=r=void 0),(r=void 0===r?4294967295:r>>>0)?(t=Ee(t))&&("string"==typeof e||null!=e&&!Lr(e))&&!(e=Se(e))&&qe(t)?(i=0,o=r,s=(n=Yr(t)).length,o=void 0===o?s:o,!i&&o>=s?n:Ar(n,i,o)):t.split(e,r):[];var n,i,o,s}function Zr(t){return!!Mr(t)&&Er(t)>=0}function Vr(t,e){if(!yr(t))return"";if(!Zr(e))return"";if(0===(e=Er(e)))return"";let r=t.length-e;return r<0&&(r=0),t.substring(r,r+e)}function Wr(t,e){return yr(t)&&Zr(e)?0===(e=Er(e))?t:function(t,e){return yr(t)&&Zr(e)?0===(e=Er(e))?"":t.substring(0,e):""}(t,t.length-e):""}function Jr(t){if(!yr(t))return"";let e=function(t){if(!yr(t))return{path:"",isRoot:!1};for(;t.indexOf("\\\\")>=0;)t=t.replace("\\\\","\\");for(;t.indexOf("//")>=0;)t=t.replace("//","/");if(":"===Vr(t,1))return{path:`${t}\\`,isRoot:!0};if("\\"===Vr(t,1)){let e=Wr(t,1);return":"===Vr(e,1)?{path:t,isRoot:!0}:{path:e,isRoot:!1}}if("/"===Vr(t,1)){let e=Wr(t,1);return 0===e.length?{path:t,isRoot:!0}:{path:e,isRoot:!1}}return{path:t,isRoot:!1}}(t);if(e.isRoot)return e.path;let r=e.path;try{r=r.split("\\").pop().split("/").pop()}catch(t){}return r}var Kr=Array.prototype.join;function Xr(t){if(!yr(t))return"";let e=Jr(t),r=zr(e,".");if(er(r)<=1)return e;let n="";try{r=(u=null==(i=r)?0:i.length)?Ar(i,0,(o=u-(o=s||void 0===o?1:vr(o)))<0?0:o):[],n=function(t,e){return null==t?"":Kr.call(t,e)}(r,".")}catch(t){}var i,o,s,u;return n}function Qr(t){return"[object Object]"===Object.prototype.toString.call(t)}function tn(t,e){return!!Qr(t)&&!(!yr(e)&&!wr(e))&&e in t}function en(t){return"[object Array]"===Object.prototype.toString.call(t)}function rn(t){return!!(function(t){return"[object Undefined]"===Object.prototype.toString.call(t)}(t)||function(t){return"[object Null]"===Object.prototype.toString.call(t)}(t)||function(t){if(Qr(t)){for(let e in t)return!1;return!0}return!1}(t)||function(t){return!(!mr(t)||""!==t)}(t)||function(t){return!!en(t)&&0===t.length}(t)||gr(t))}function nn(t){return!(!en(t)||0===t.length||1===t.length&&rn(t[0]))}function on(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var sn={exports:{}};!function(t){t.exports=function(){var t=1e3,e=6e4,r=36e5,n="millisecond",i="second",o="minute",s="hour",u="day",a="week",l="month",f="quarter",c="year",d="date",h="Invalid Date",p=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,v=/\[([^\]]+)]|YYYY|YY|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,m={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(t){var e=["th","st","nd","rd"],r=t%100;return"["+t+(e[(r-20)%10]||e[r]||e[0])+"]"}},y=function(t,e,r){var n=String(t);return!n||n.length>=e?t:""+Array(e+1-n.length).join(r)+t},g={s:y,z:function(t){var e=-t.utcOffset(),r=Math.abs(e),n=Math.floor(r/60),i=r%60;return(e<=0?"+":"-")+y(n,2,"0")+":"+y(i,2,"0")},m:function t(e,r){if(e.date()<r.date())return-t(r,e);var n=12*(r.year()-e.year())+(r.month()-e.month()),i=e.clone().add(n,l),o=r-i<0,s=e.clone().add(n+(o?-1:1),l);return+(-(n+(r-i)/(o?i-s:s-i))||0)},a:function(t){return t<0?Math.ceil(t)||0:Math.floor(t)},p:function(t){return{M:l,y:c,w:a,d:u,D:d,h:s,m:o,s:i,ms:n,Q:f}[t]||String(t||"").toLowerCase().replace(/s$/,"")},u:function(t){return void 0===t}},w="en",b={};b[w]=m;var M="$isDayjsObject",_=function(t){return t instanceof E||!(!t||!t[M])},O=function t(e,r,n){var i;if(!e)return w;if("string"==typeof e){var o=e.toLowerCase();b[o]&&(i=o),r&&(b[o]=r,i=o);var s=e.split("-");if(!i&&s.length>1)return t(s[0])}else{var u=e.name;b[u]=e,i=u}return!n&&i&&(w=i),i||!n&&w},j=function(t,e){if(_(t))return t.clone();var r="object"==typeof e?e:{};return r.date=t,r.args=arguments,new E(r)},S=g;S.l=O,S.i=_,S.w=function(t,e){return j(t,{locale:e.$L,utc:e.$u,x:e.$x,$offset:e.$offset})};var E=function(){function m(t){this.$L=O(t.locale,null,!0),this.parse(t),this.$x=this.$x||t.x||{},this[M]=!0}var y=m.prototype;return y.parse=function(t){this.$d=function(t){var e=t.date,r=t.utc;if(null===e)return new Date(NaN);if(S.u(e))return new Date;if(e instanceof Date)return new Date(e);if("string"==typeof e&&!/Z$/i.test(e)){var n=e.match(p);if(n){var i=n[2]-1||0,o=(n[7]||"0").substring(0,3);return r?new Date(Date.UTC(n[1],i,n[3]||1,n[4]||0,n[5]||0,n[6]||0,o)):new Date(n[1],i,n[3]||1,n[4]||0,n[5]||0,n[6]||0,o)}}return new Date(e)}(t),this.init()},y.init=function(){var t=this.$d;this.$y=t.getFullYear(),this.$M=t.getMonth(),this.$D=t.getDate(),this.$W=t.getDay(),this.$H=t.getHours(),this.$m=t.getMinutes(),this.$s=t.getSeconds(),this.$ms=t.getMilliseconds()},y.$utils=function(){return S},y.isValid=function(){return!(this.$d.toString()===h)},y.isSame=function(t,e){var r=j(t);return this.startOf(e)<=r&&r<=this.endOf(e)},y.isAfter=function(t,e){return j(t)<this.startOf(e)},y.isBefore=function(t,e){return this.endOf(e)<j(t)},y.$g=function(t,e,r){return S.u(t)?this[e]:this.set(r,t)},y.unix=function(){return Math.floor(this.valueOf()/1e3)},y.valueOf=function(){return this.$d.getTime()},y.startOf=function(t,e){var r=this,n=!!S.u(e)||e,f=S.p(t),h=function(t,e){var i=S.w(r.$u?Date.UTC(r.$y,e,t):new Date(r.$y,e,t),r);return n?i:i.endOf(u)},p=function(t,e){return S.w(r.toDate()[t].apply(r.toDate("s"),(n?[0,0,0,0]:[23,59,59,999]).slice(e)),r)},v=this.$W,m=this.$M,y=this.$D,g="set"+(this.$u?"UTC":"");switch(f){case c:return n?h(1,0):h(31,11);case l:return n?h(1,m):h(0,m+1);case a:var w=this.$locale().weekStart||0,b=(v<w?v+7:v)-w;return h(n?y-b:y+(6-b),m);case u:case d:return p(g+"Hours",0);case s:return p(g+"Minutes",1);case o:return p(g+"Seconds",2);case i:return p(g+"Milliseconds",3);default:return this.clone()}},y.endOf=function(t){return this.startOf(t,!1)},y.$set=function(t,e){var r,a=S.p(t),f="set"+(this.$u?"UTC":""),h=(r={},r[u]=f+"Date",r[d]=f+"Date",r[l]=f+"Month",r[c]=f+"FullYear",r[s]=f+"Hours",r[o]=f+"Minutes",r[i]=f+"Seconds",r[n]=f+"Milliseconds",r)[a],p=a===u?this.$D+(e-this.$W):e;if(a===l||a===c){var v=this.clone().set(d,1);v.$d[h](p),v.init(),this.$d=v.set(d,Math.min(this.$D,v.daysInMonth())).$d}else h&&this.$d[h](p);return this.init(),this},y.set=function(t,e){return this.clone().$set(t,e)},y.get=function(t){return this[S.p(t)]()},y.add=function(n,f){var d,h=this;n=Number(n);var p=S.p(f),v=function(t){var e=j(h);return S.w(e.date(e.date()+Math.round(t*n)),h)};if(p===l)return this.set(l,this.$M+n);if(p===c)return this.set(c,this.$y+n);if(p===u)return v(1);if(p===a)return v(7);var m=(d={},d[o]=e,d[s]=r,d[i]=t,d)[p]||1,y=this.$d.getTime()+n*m;return S.w(y,this)},y.subtract=function(t,e){return this.add(-1*t,e)},y.format=function(t){var e=this,r=this.$locale();if(!this.isValid())return r.invalidDate||h;var n=t||"YYYY-MM-DDTHH:mm:ssZ",i=S.z(this),o=this.$H,s=this.$m,u=this.$M,a=r.weekdays,l=r.months,f=r.meridiem,c=function(t,r,i,o){return t&&(t[r]||t(e,n))||i[r].slice(0,o)},d=function(t){return S.s(o%12||12,t,"0")},p=f||function(t,e,r){var n=t<12?"AM":"PM";return r?n.toLowerCase():n};return n.replace(v,function(t,n){return n||function(t){switch(t){case"YY":return String(e.$y).slice(-2);case"YYYY":return S.s(e.$y,4,"0");case"M":return u+1;case"MM":return S.s(u+1,2,"0");case"MMM":return c(r.monthsShort,u,l,3);case"MMMM":return c(l,u);case"D":return e.$D;case"DD":return S.s(e.$D,2,"0");case"d":return String(e.$W);case"dd":return c(r.weekdaysMin,e.$W,a,2);case"ddd":return c(r.weekdaysShort,e.$W,a,3);case"dddd":return a[e.$W];case"H":return String(o);case"HH":return S.s(o,2,"0");case"h":return d(1);case"hh":return d(2);case"a":return p(o,s,!0);case"A":return p(o,s,!1);case"m":return String(s);case"mm":return S.s(s,2,"0");case"s":return String(e.$s);case"ss":return S.s(e.$s,2,"0");case"SSS":return S.s(e.$ms,3,"0");case"Z":return i}return null}(t)||i.replace(":","")})},y.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},y.diff=function(n,d,h){var p,v=this,m=S.p(d),y=j(n),g=(y.utcOffset()-this.utcOffset())*e,w=this-y,b=function(){return S.m(v,y)};switch(m){case c:p=b()/12;break;case l:p=b();break;case f:p=b()/3;break;case a:p=(w-g)/6048e5;break;case u:p=(w-g)/864e5;break;case s:p=w/r;break;case o:p=w/e;break;case i:p=w/t;break;default:p=w}return h?p:S.a(p)},y.daysInMonth=function(){return this.endOf(l).$D},y.$locale=function(){return b[this.$L]},y.locale=function(t,e){if(!t)return this.$L;var r=this.clone(),n=O(t,e,!0);return n&&(r.$L=n),r},y.clone=function(){return S.w(this.$d,this)},y.toDate=function(){return new Date(this.valueOf())},y.toJSON=function(){return this.isValid()?this.toISOString():null},y.toISOString=function(){return this.$d.toISOString()},y.toString=function(){return this.$d.toUTCString()},m}(),$=E.prototype;return j.prototype=$,[["$ms",n],["$s",i],["$m",o],["$H",s],["$W",u],["$M",l],["$y",c],["$D",d]].forEach(function(t){$[t[1]]=function(e){return this.$g(e,t[0],t[1])}}),j.extend=function(t,e){return t.$i||(t(e,E,j),t.$i=!0),j},j.locale=O,j.isDayjs=_,j.unix=function(t){return j(1e3*t)},j.en=b[w],j.Ls=b,j.p={},j}()}(sn);var un=on(sn.exports);function an(t){if(!yr(t))return!1;let e="YYYY-MM-DDTHH:mm:ss";return t===un(t,e).format(e)}function ln(t){let e=Object.prototype.toString.call(t);return"[object Function]"===e||"[object AsyncFunction]"===e}function fn(t,e){let r=function(){let t,e,r=new Promise(function(){t=arguments[0],e=arguments[1]});return r.resolve=t,r.reject=e,r}();if(!en(t)&&!Qr(t))return r.reject("rs is not an array or object"),r;let n=!1;if(Qr(t)){n=!0;let e=[];et(t,(t,r)=>{e.push({k:r,v:t})}),t=e}ln(e)||(e=function(t){return t});let i=-1,o=[];return t.reduce(function(t,r){return t.then(function(t){o.push(t),i+=1;let s=i,u=r;return n&&(s=r.k,u=r.v),ln(e)?e(u,s):u})},Promise.resolve()).then(function(t){var e,n,i;o.push(t),i=null==(e=o)?0:e.length,o=i?Ar(e,(n=void 0===n?1:vr(n))<0?0:n,i):[],r.resolve(o)}).catch(function(t){r.reject(t)}),r}return(e,r)=>{let n={},i=async i=>{if(tn(n,i))return n[i];let o=await(async n=>{let i=t.resolve(r,`${n}.json`),o=t.resolve(e,`${n}.json`),s="";if(nr(i))s=i;else{if(!nr(o))throw console.log(`fpParam[${i}] or fpOhlc[${o}] do not exist`),new Error(`invalid key[${n}]`);s=o}let u=Ae(ir(s),"success",null);if(!nn(u))throw new Error(`fp[${s}] no data`);return u})(i);return n[i]=o,o},o=[],s=async()=>{if(er(o)>0)return o;let t=t=>{let e=Cr(t);return e=ke(e,t=>"json"===function(t){if(!yr(t))return"";let e=zr(Jr(t),".");if(er(e)<=1)return"";let r="";try{r=Fe(e)}catch(t){}return r}(t.name)),e},n=[],s=t(e);await fn(s,async t=>{let e=Xr(t.name),r=await i(e);n.push({type:"ohlc",key:e,arr:r})});let u=t(r);return await fn(u,async t=>{let e=Xr(t.name),r=await i(e);n.push({type:"param",key:e,arr:r})}),o=n,n},u={},a=async(t,e)=>{if(!an(t))throw new Error("invalid timeStart");if(!an(e))throw new Error("invalid timeEnd");let r=`${t}:${e}`;if(tn(u,r))return u[r];let n=await s(),i="1000-01-01T00:00:00",o="9999-01-01T00:00:00";if(et(n,t=>{let e=(r=t.arr)&&r.length?r[0]:void 0;var r;let n=Fe(t.arr),s=Ae(e,"time",""),u=Ae(n,"time","");"ohlc"===t.type&&i<s&&(i=s),o>u&&(o=u)}),t<i)throw new Error(`timeStart[${t}] < timeStartData[${i}]`);if(e>o)throw new Error(`timeEnd[${e}] > timeEndData[${o}]`);let a=[];return et(n,r=>{let n=ke(r.arr,r=>r.time>=t&&r.time<=e);a.push({key:r.key,arr:n})}),u[r]=a,a},l={getKeysParam:()=>{let t=Cr(r);var e,n;return n=t=>Xr(t.name),(j(e=t)?_e:De)(e,Te(n))},getTimeSeries:i,getTimeSeriesByTimeRange:async(t,e,r)=>{let n=await i(t);return n=ke(n,t=>t.time>=e&&t.time<=r),n},getTimeSeriesFull:s,getTimeSeriesFullByTimeRange:a,buildGetTimeSeriesByTimeRange:async(t,e)=>{let r=await a(t,e),n={};return et(r,t=>{n[t.key]=t.arr}),async r=>{let i=Ae(n,r,[]);if(!nn(i))throw new Error(`can not get series by key[${r}] bewteen timeStart[${t}] and timeEnd[${e}]`);return i}},buildGetTimeValueByTimeRange:async(t,e)=>{let r=await a(t,e),n={};return et(r,t=>{et(t.arr,e=>{let r=`${t.key}_${e.time}`;n[r]=e})}),async(r,i)=>{let o=Ae(n,`${r}_${i}`,{});if(!function(t){if(Qr(t)){for(let e in t)return!0;return!1}return!1}(o))throw new Error(`can not get value by key[${r}] and time[${i}] bewteen timeStart[${t}] and timeEnd[${e}]`);return o}}};return l}}(t,e)}(vn,vn.exports);var mn=pn(vn.exports);function yn(t){if(!Ur(t))return!1;return xr(t)>=0}function gn(t,e=0){if(!Cr(t))return"";if(!yn(e))return"";return t=Ar(t),$r(t,e).toFixed(e)}function wn(t,e={}){let r=at(e,"fs"),n=!1;try{r.statSync(t),n=!0}catch{n=!1}return n}function bn(t,e={}){let r=at(e,"fs");if(!wn(t,{fs:r}))return!1;let n=r.lstatSync(t);return!n.isFile()&&!n.isSymbolicLink()}function Mn(t,e={}){let r=at(e,"fs");if(bn(t,{fs:r}))return{success:"input folder is already exists: "+t};if(wn(t,{fs:r}))return{error:"input path already exists: "+t};try{r.mkdirSync(t,{recursive:!0})}catch(t){return{error:t}}return{success:"done: "+t}}function _n(t){return function(t,e={}){let r=at(e,"fs");return!!wn(t,{fs:r})&&!r.lstatSync(t).isDirectory()&&!r.lstatSync(t).isSymbolicLink()}(t,{fs:e})}function On(t){return bn(t,{fs:e})}function jn(t){let r=null,n=function(t,e={}){let r=null,n=at(e,"fs"),i="";try{i=n.readFileSync(t,"utf8")}catch(t){r=t}return null!==r?{error:r}:{success:i}}(t,{fs:e});if(n.error)return n;let i=n.success,o=null;try{o=JSON.parse(i)}catch(t){r=t}return null!==r?{error:r}:{success:o}}function Sn(t){return"[object Object]"===Object.prototype.toString.call(t)}function En(t){return"[object Array]"===Object.prototype.toString.call(t)}function $n(t){return!0===(e=t)||!1===e||v(e)&&"[object Boolean]"==p(e);var e}function Nn(t,e){if(!Zt(t))return"";if(!yn(e))return"";if(0===(e=xr(e)))return"";let r=t.length-e;return r<0&&(r=0),t.substring(r,r+e)}function Cn(t,e){return Zt(t)&&yn(e)?0===(e=xr(e))?t:function(t,e){return Zt(t)&&yn(e)?0===(e=xr(e))?"":t.substring(0,e):""}(t,t.length-e):""}function An(t){if(!Zt(t))return{path:"",isRoot:!1};for(;t.indexOf("\\\\")>=0;)t=t.replace("\\\\","\\");for(;t.indexOf("//")>=0;)t=t.replace("//","/");if(":"===Nn(t,1))return{path:`${t}\\`,isRoot:!0};if("\\"===Nn(t,1)){let e=Cn(t,1);return":"===Nn(e,1)?{path:t,isRoot:!0}:{path:e,isRoot:!1}}if("/"===Nn(t,1)){let e=Cn(t,1);return 0===e.length?{path:t,isRoot:!0}:{path:e,isRoot:!1}}return{path:t,isRoot:!1}}function xn(t){if(!Zt(t))return"";let e=An(t);if(e.isRoot)return e.path;let r=function(t){if(!Zt(t))return"";let e=An(t);if(e.isRoot)return e.path;let r=e.path;try{r=r.split("\\").pop().split("/").pop()}catch(t){}return r}(t=e.path);if(!Zt(r))return t;let n=An(t=Cn(t,r.length));return n.isRoot,n.path}function Ln(t,r,n={}){let i=null;if(!Sn(r)&&!En(r))return{error:"inp is not an object or array"};let o=at(n,"useFormat",null);$n(o)||(o=!1);let s="";try{s=o?JSON.stringify(r,null,2):JSON.stringify(r)}catch(t){i=t}if(null!==i)return{error:i};let u=function(t,e,r={}){let n=null,i=at(r,"fs"),o=xn(t);bn(o,{fs:i})||Mn(o,{fs:i});try{i.writeFileSync(t,e,"utf8")}catch(t){n=t}return null!==n?{error:n}:{success:t}}(t,s,{fs:e});return u}function Rn(t){return!!function(t){return"[object Undefined]"===Object.prototype.toString.call(t)}(t)||(!!function(t){return"[object Null]"===Object.prototype.toString.call(t)}(t)||(!!function(t){if(Sn(t)){for(let e in t)return!1;return!0}return!1}(t)||(!!function(t){return!(!zt(t)||""!==t)}(t)||(!!function(t){return!!En(t)&&0===t.length}(t)||!!Nr(t)))))}function Pn(t){return!!En(t)&&(0!==t.length&&(1!==t.length||!Rn(t[0])))}function Tn(t,e,r=2){if(!Cr(t))return[];if(t=Ar(t),!Cr(e))return[];if(e=Ar(e),Gr(r)||(r=2),(r=xr(r))<=0)throw new Error(`num[${r}] <= 0`);let n=(e-t)/r,i=t,o=[];for(let t=0;t<=r;t++)o.push(i),i+=n;return o}
|
|
@@ -192,7 +192,7 @@ export default calcFitness
|
|
|
192
192
|
<br class="clear">
|
|
193
193
|
|
|
194
194
|
<footer>
|
|
195
|
-
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 4.0.5</a> on Wed
|
|
195
|
+
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 4.0.5</a> on Wed Sep 02 2026 00:07:13 GMT+0800 (台北標準時間) using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
|
|
196
196
|
</footer>
|
|
197
197
|
|
|
198
198
|
<script>prettyPrint();</script>
|
|
@@ -151,7 +151,7 @@ export default calcLevelNumTrade
|
|
|
151
151
|
<br class="clear">
|
|
152
152
|
|
|
153
153
|
<footer>
|
|
154
|
-
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 4.0.5</a> on Wed
|
|
154
|
+
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 4.0.5</a> on Wed Sep 02 2026 00:07:13 GMT+0800 (台北標準時間) using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
|
|
155
155
|
</footer>
|
|
156
156
|
|
|
157
157
|
<script>prettyPrint();</script>
|
package/docs/cont.mjs.html
CHANGED
|
@@ -81,7 +81,7 @@ export default r
|
|
|
81
81
|
<br class="clear">
|
|
82
82
|
|
|
83
83
|
<footer>
|
|
84
|
-
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 4.0.5</a> on Wed
|
|
84
|
+
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 4.0.5</a> on Wed Sep 02 2026 00:07:13 GMT+0800 (台北標準時間) using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
|
|
85
85
|
</footer>
|
|
86
86
|
|
|
87
87
|
<script>prettyPrint();</script>
|
package/docs/estimComps.mjs.html
CHANGED
|
@@ -182,7 +182,7 @@ export default estimComps
|
|
|
182
182
|
<br class="clear">
|
|
183
183
|
|
|
184
184
|
<footer>
|
|
185
|
-
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 4.0.5</a> on Wed
|
|
185
|
+
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 4.0.5</a> on Wed Sep 02 2026 00:07:13 GMT+0800 (台北標準時間) using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
|
|
186
186
|
</footer>
|
|
187
187
|
|
|
188
188
|
<script>prettyPrint();</script>
|
|
@@ -189,7 +189,7 @@ export default estimFinder
|
|
|
189
189
|
<br class="clear">
|
|
190
190
|
|
|
191
191
|
<footer>
|
|
192
|
-
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 4.0.5</a> on Wed
|
|
192
|
+
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 4.0.5</a> on Wed Sep 02 2026 00:07:13 GMT+0800 (台北標準時間) using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
|
|
193
193
|
</footer>
|
|
194
194
|
|
|
195
195
|
<script>prettyPrint();</script>
|
package/docs/estimKeys.mjs.html
CHANGED
|
@@ -661,7 +661,7 @@ export default estimKeys
|
|
|
661
661
|
<br class="clear">
|
|
662
662
|
|
|
663
663
|
<footer>
|
|
664
|
-
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 4.0.5</a> on Wed
|
|
664
|
+
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 4.0.5</a> on Wed Sep 02 2026 00:07:13 GMT+0800 (台北標準時間) using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
|
|
665
665
|
</footer>
|
|
666
666
|
|
|
667
667
|
<script>prettyPrint();</script>
|
package/docs/estimPicks.mjs.html
CHANGED
|
@@ -192,7 +192,7 @@ export default estimPicks
|
|
|
192
192
|
<br class="clear">
|
|
193
193
|
|
|
194
194
|
<footer>
|
|
195
|
-
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 4.0.5</a> on Wed
|
|
195
|
+
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 4.0.5</a> on Wed Sep 02 2026 00:07:13 GMT+0800 (台北標準時間) using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
|
|
196
196
|
</footer>
|
|
197
197
|
|
|
198
198
|
<script>prettyPrint();</script>
|
package/docs/genSid.mjs.html
CHANGED
|
@@ -112,7 +112,7 @@ export default genSid
|
|
|
112
112
|
<br class="clear">
|
|
113
113
|
|
|
114
114
|
<footer>
|
|
115
|
-
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 4.0.5</a> on Wed
|
|
115
|
+
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 4.0.5</a> on Wed Sep 02 2026 00:07:13 GMT+0800 (台北標準時間) using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
|
|
116
116
|
</footer>
|
|
117
117
|
|
|
118
118
|
<script>prettyPrint();</script>
|
|
@@ -122,7 +122,7 @@ export default genStrategyFileName
|
|
|
122
122
|
<br class="clear">
|
|
123
123
|
|
|
124
124
|
<footer>
|
|
125
|
-
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 4.0.5</a> on Wed
|
|
125
|
+
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 4.0.5</a> on Wed Sep 02 2026 00:07:13 GMT+0800 (台北標準時間) using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
|
|
126
126
|
</footer>
|
|
127
127
|
|
|
128
128
|
<script>prettyPrint();</script>
|
package/docs/genTid.mjs.html
CHANGED
|
@@ -100,7 +100,7 @@ export default genTid
|
|
|
100
100
|
<br class="clear">
|
|
101
101
|
|
|
102
102
|
<footer>
|
|
103
|
-
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 4.0.5</a> on Wed
|
|
103
|
+
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 4.0.5</a> on Wed Sep 02 2026 00:07:13 GMT+0800 (台北標準時間) using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
|
|
104
104
|
</footer>
|
|
105
105
|
|
|
106
106
|
<script>prettyPrint();</script>
|
package/docs/global.html
CHANGED
|
@@ -5369,7 +5369,7 @@ console.log(readStrategies(fd))
|
|
|
5369
5369
|
<br class="clear">
|
|
5370
5370
|
|
|
5371
5371
|
<footer>
|
|
5372
|
-
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 4.0.5</a> on Wed
|
|
5372
|
+
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 4.0.5</a> on Wed Sep 02 2026 00:07:13 GMT+0800 (台北標準時間) using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
|
|
5373
5373
|
</footer>
|
|
5374
5374
|
|
|
5375
5375
|
<script>prettyPrint();</script>
|
package/docs/index.html
CHANGED
|
@@ -71,7 +71,7 @@
|
|
|
71
71
|
<br class="clear">
|
|
72
72
|
|
|
73
73
|
<footer>
|
|
74
|
-
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 4.0.5</a> on Wed
|
|
74
|
+
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 4.0.5</a> on Wed Sep 02 2026 00:07:13 GMT+0800 (台北標準時間) using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
|
|
75
75
|
</footer>
|
|
76
76
|
|
|
77
77
|
<script>prettyPrint();</script>
|
package/docs/ott.mjs.html
CHANGED
|
@@ -124,7 +124,7 @@ export { ott, nowTpeStr, nowTpeStrp }
|
|
|
124
124
|
<br class="clear">
|
|
125
125
|
|
|
126
126
|
<footer>
|
|
127
|
-
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 4.0.5</a> on Wed
|
|
127
|
+
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 4.0.5</a> on Wed Sep 02 2026 00:07:13 GMT+0800 (台北標準時間) using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
|
|
128
128
|
</footer>
|
|
129
129
|
|
|
130
130
|
<script>prettyPrint();</script>
|
package/docs/p2r.mjs.html
CHANGED
|
@@ -98,7 +98,7 @@ export default p2r
|
|
|
98
98
|
<br class="clear">
|
|
99
99
|
|
|
100
100
|
<footer>
|
|
101
|
-
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 4.0.5</a> on Wed
|
|
101
|
+
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 4.0.5</a> on Wed Sep 02 2026 00:07:13 GMT+0800 (台北標準時間) using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
|
|
102
102
|
</footer>
|
|
103
103
|
|
|
104
104
|
<script>prettyPrint();</script>
|
|
@@ -274,7 +274,7 @@ export default readStrategies
|
|
|
274
274
|
<br class="clear">
|
|
275
275
|
|
|
276
276
|
<footer>
|
|
277
|
-
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 4.0.5</a> on Wed
|
|
277
|
+
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 4.0.5</a> on Wed Sep 02 2026 00:07:13 GMT+0800 (台北標準時間) using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
|
|
278
278
|
</footer>
|
|
279
279
|
|
|
280
280
|
<script>prettyPrint();</script>
|
package/package.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "w-trade-solve",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.9",
|
|
4
4
|
"main": "dist/w-trade-solve.umd.js",
|
|
5
5
|
"dependencies": {
|
|
6
|
-
"w-data-tdprovide": "^1.0.
|
|
7
|
-
"w-optimization": "^1.0.
|
|
8
|
-
"w-trade-backtest": "^1.1.
|
|
9
|
-
"wsemi": "^1.8.
|
|
6
|
+
"w-data-tdprovide": "^1.0.14",
|
|
7
|
+
"w-optimization": "^1.0.32",
|
|
8
|
+
"w-trade-backtest": "^1.1.9",
|
|
9
|
+
"wsemi": "^1.8.81"
|
|
10
10
|
},
|
|
11
11
|
"devDependencies": {
|
|
12
12
|
"w-package-tools": "^1.1.15"
|