w-trade-solve 1.0.4 → 1.0.5
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 v1.0.
|
|
2
|
+
* w-trade-solve v1.0.5
|
|
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")):"function"==typeof define&&define.amd?define(["path","fs"],e):(t="undefined"!=typeof globalThis?globalThis:t||self)["w-trade-solve"]=e(t.path,t.fs)}(this,function(t,e){"use strict";var r=Array.isArray,n="object"==typeof global&&global&&global.Object===Object&&global,i="object"==typeof self&&self&&self.Object===Object&&self,o=n||i||Function("return this")(),s=o.Symbol,u=Object.prototype,a=u.hasOwnProperty,l=u.toString,f=s?s.toStringTag:void 0;var c=Object.prototype.toString;var d=s?s.toStringTag:void 0;function h(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":d&&d in Object(t)?function(t){var e=a.call(t,f),r=t[f];try{t[f]=void 0;var n=!0}catch(t){}var i=l.call(t);return n&&(e?t[f]=r:delete t[f]),i}(t):function(t){return c.call(t)}(t)}function p(t){return null!=t&&"object"==typeof t}function v(t){return"symbol"==typeof t||p(t)&&"[object Symbol]"==h(t)}var m=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,y=/^\w*$/;function g(t,e){if(r(t))return!1;var n=typeof t;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=t&&!v(t))||(y.test(t)||!m.test(t)||null!=e&&t in Object(e))}function w(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}function b(t){if(!w(t))return!1;var e=h(t);return"[object Function]"==e||"[object GeneratorFunction]"==e||"[object AsyncFunction]"==e||"[object Proxy]"==e}var M,_=o["__core-js_shared__"],j=(M=/[^.]+$/.exec(_&&_.keys&&_.keys.IE_PROTO||""))?"Symbol(src)_1."+M:"";var O=Function.prototype.toString;function S(t){if(null!=t){try{return O.call(t)}catch(t){}try{return t+""}catch(t){}}return""}var E=/^\[object .+?Constructor\]$/,$=Function.prototype,N=Object.prototype,C=$.toString,A=N.hasOwnProperty,x=RegExp("^"+C.call(A).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function L(t){return!(!w(t)||(e=t,j&&j in e))&&(b(t)?x:E).test(S(t));var e}function P(t,e){var r=function(t,e){return null==t?void 0:t[e]}(t,e);return L(r)?r:void 0}var R=P(Object,"create");var T=Object.prototype.hasOwnProperty;var k=Object.prototype.hasOwnProperty;function F(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 D(t,e){return t===e||t!=t&&e!=e}function B(t,e){for(var r=t.length;r--;)if(D(t[r][0],e))return r;return-1}F.prototype.clear=function(){this.__data__=R?R(null):{},this.size=0},F.prototype.delete=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e},F.prototype.get=function(t){var e=this.__data__;if(R){var r=e[t];return"__lodash_hash_undefined__"===r?void 0:r}return T.call(e,t)?e[t]:void 0},F.prototype.has=function(t){var e=this.__data__;return R?void 0!==e[t]:k.call(e,t)},F.prototype.set=function(t,e){var r=this.__data__;return this.size+=this.has(t)?0:1,r[t]=R&&void 0===e?"__lodash_hash_undefined__":e,this};var I=Array.prototype.splice;function q(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])}}q.prototype.clear=function(){this.__data__=[],this.size=0},q.prototype.delete=function(t){var e=this.__data__,r=B(e,t);return!(r<0)&&(r==e.length-1?e.pop():I.call(e,r,1),--this.size,!0)},q.prototype.get=function(t){var e=this.__data__,r=B(e,t);return r<0?void 0:e[r][1]},q.prototype.has=function(t){return B(this.__data__,t)>-1},q.prototype.set=function(t,e){var r=this.__data__,n=B(r,t);return n<0?(++this.size,r.push([t,e])):r[n][1]=e,this};var U=P(o,"Map");function G(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 z(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])}}z.prototype.clear=function(){this.size=0,this.__data__={hash:new F,map:new(U||q),string:new F}},z.prototype.delete=function(t){var e=G(this,t).delete(t);return this.size-=e?1:0,e},z.prototype.get=function(t){return G(this,t).get(t)},z.prototype.has=function(t){return G(this,t).has(t)},z.prototype.set=function(t,e){var r=G(this,t),n=r.size;return r.set(t,e),this.size+=r.size==n?0:1,this};function H(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(H.Cache||z),r}H.Cache=z;var Y,Z,V,W=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,J=/\\(\\)?/g,K=(Y=function(t){var e=[];return 46===t.charCodeAt(0)&&e.push(""),t.replace(W,function(t,r,n,i){e.push(n?i.replace(J,"$1"):r||t)}),e},Z=H(Y,function(t){return 500===V.size&&V.clear(),t}),V=Z.cache,Z),X=K;function Q(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 tt=s?s.prototype:void 0,et=tt?tt.toString:void 0;function rt(t){if("string"==typeof t)return t;if(r(t))return Q(t,rt)+"";if(v(t))return et?et.call(t):"";var e=t+"";return"0"==e&&1/t==-1/0?"-0":e}function nt(t){return null==t?"":rt(t)}function it(t,e){return r(t)?t:g(t,e)?[t]:X(nt(t))}function ot(t){if("string"==typeof t||v(t))return t;var e=t+"";return"0"==e&&1/t==-1/0?"-0":e}function st(t,e){for(var r=0,n=(e=it(e,t)).length;null!=t&&r<n;)t=t[ot(e[r++])];return r&&r==n?t:void 0}function ut(t,e,r){var n=null==t?void 0:st(t,e);return void 0===n?r:n}var at=Math.floor,lt=Math.random;function ft(t,e){return t+at(lt()*(e-t+1))}function ct(t){var e=t.length;return e?t[ft(0,e-1)]:void 0}function dt(t){return p(t)&&"[object Arguments]"==h(t)}var ht=Object.prototype,pt=ht.hasOwnProperty,vt=ht.propertyIsEnumerable,mt=dt(function(){return arguments}())?dt:function(t){return p(t)&&pt.call(t,"callee")&&!vt.call(t,"callee")},yt=mt;var gt="object"==typeof exports&&exports&&!exports.nodeType&&exports,wt=gt&&"object"==typeof module&&module&&!module.nodeType&&module,bt=wt&&wt.exports===gt?o.Buffer:void 0,Mt=(bt?bt.isBuffer:void 0)||function(){return!1},_t=/^(?:0|[1-9]\d*)$/;function jt(t,e){var r=typeof t;return!!(e=null==e?9007199254740991:e)&&("number"==r||"symbol"!=r&&_t.test(t))&&t>-1&&t%1==0&&t<e}function Ot(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=9007199254740991}var St={};function Et(t){return function(e){return t(e)}}St["[object Float32Array]"]=St["[object Float64Array]"]=St["[object Int8Array]"]=St["[object Int16Array]"]=St["[object Int32Array]"]=St["[object Uint8Array]"]=St["[object Uint8ClampedArray]"]=St["[object Uint16Array]"]=St["[object Uint32Array]"]=!0,St["[object Arguments]"]=St["[object Array]"]=St["[object ArrayBuffer]"]=St["[object Boolean]"]=St["[object DataView]"]=St["[object Date]"]=St["[object Error]"]=St["[object Function]"]=St["[object Map]"]=St["[object Number]"]=St["[object Object]"]=St["[object RegExp]"]=St["[object Set]"]=St["[object String]"]=St["[object WeakMap]"]=!1;var $t="object"==typeof exports&&exports&&!exports.nodeType&&exports,Nt=$t&&"object"==typeof module&&module&&!module.nodeType&&module,Ct=Nt&&Nt.exports===$t&&n.process,At=function(){try{var t=Nt&&Nt.require&&Nt.require("util").types;return t||Ct&&Ct.binding&&Ct.binding("util")}catch(t){}}(),xt=At&&At.isTypedArray,Lt=xt?Et(xt):function(t){return p(t)&&Ot(t.length)&&!!St[h(t)]},Pt=Object.prototype.hasOwnProperty;function Rt(t,e){var n=r(t),i=!n&&yt(t),o=!n&&!i&&Mt(t),s=!n&&!i&&!o&&Lt(t),u=n||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 Tt=Object.prototype;function kt(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||Tt)}function Ft(t,e){return function(r){return t(e(r))}}var Dt=Ft(Object.keys,Object),Bt=Object.prototype.hasOwnProperty;function It(t){if(!kt(t))return Dt(t);var e=[];for(var r in Object(t))Bt.call(t,r)&&"constructor"!=r&&e.push(r);return e}function qt(t){return null!=t&&Ot(t.length)&&!b(t)}function Ut(t){return qt(t)?Rt(t):It(t)}function Gt(t){return null==t?[]:function(t,e){return Q(e,function(e){return t[e]})}(t,Ut(t))}function zt(t){return ct(Gt(t))}function Ht(t){return"[object String]"===Object.prototype.toString.call(t)}function Yt(t){return!(!Ht(t)||""===t)}function Zt(t){var e=this.__data__=new q(t);this.size=e.size}Zt.prototype.clear=function(){this.__data__=new q,this.size=0},Zt.prototype.delete=function(t){var e=this.__data__,r=e.delete(t);return this.size=e.size,r},Zt.prototype.get=function(t){return this.__data__.get(t)},Zt.prototype.has=function(t){return this.__data__.has(t)},Zt.prototype.set=function(t,e){var r=this.__data__;if(r instanceof q){var n=r.__data__;if(!U||n.length<199)return n.push([t,e]),this.size=++r.size,this;r=this.__data__=new z(n)}return r.set(t,e),this.size=r.size,this};function Vt(t){var e=-1,r=null==t?0:t.length;for(this.__data__=new z;++e<r;)this.add(t[e])}function Wt(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 Jt(t,e){return t.has(e)}Vt.prototype.add=Vt.prototype.push=function(t){return this.__data__.set(t,"__lodash_hash_undefined__"),this},Vt.prototype.has=function(t){return this.__data__.has(t)};function Kt(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 Vt: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(!Wt(e,function(t,e){if(!Jt(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 Xt=o.Uint8Array;function Qt(t){var e=-1,r=Array(t.size);return t.forEach(function(t,n){r[++e]=[n,t]}),r}function te(t){var e=-1,r=Array(t.size);return t.forEach(function(t){r[++e]=t}),r}var ee=s?s.prototype:void 0,re=ee?ee.valueOf:void 0;function ne(t,e){for(var r=-1,n=e.length,i=t.length;++r<n;)t[i+r]=e[r];return t}function ie(t,e,n){var i=e(t);return r(t)?i:ne(i,n(t))}function oe(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 se(){return[]}var ue=Object.prototype.propertyIsEnumerable,ae=Object.getOwnPropertySymbols,le=ae?function(t){return null==t?[]:(t=Object(t),oe(ae(t),function(e){return ue.call(t,e)}))}:se;function fe(t){return ie(t,Ut,le)}var ce=Object.prototype.hasOwnProperty;var de=P(o,"DataView"),he=P(o,"Promise"),pe=P(o,"Set"),ve=P(o,"WeakMap"),me="[object Map]",ye="[object Promise]",ge="[object Set]",we="[object WeakMap]",be="[object DataView]",Me=S(de),_e=S(U),je=S(he),Oe=S(pe),Se=S(ve),Ee=h;(de&&Ee(new de(new ArrayBuffer(1)))!=be||U&&Ee(new U)!=me||he&&Ee(he.resolve())!=ye||pe&&Ee(new pe)!=ge||ve&&Ee(new ve)!=we)&&(Ee=function(t){var e=h(t),r="[object Object]"==e?t.constructor:void 0,n=r?S(r):"";if(n)switch(n){case Me:return be;case _e:return me;case je:return ye;case Oe:return ge;case Se:return we}return e});var $e=Ee,Ne="[object Arguments]",Ce="[object Array]",Ae="[object Object]",xe=Object.prototype.hasOwnProperty;function Le(t,e,n,i,o,s){var u=r(t),a=r(e),l=u?Ce:$e(t),f=a?Ce:$e(e),c=(l=l==Ne?Ae:l)==Ae,d=(f=f==Ne?Ae:f)==Ae,h=l==f;if(h&&Mt(t)){if(!Mt(e))return!1;u=!0,c=!1}if(h&&!c)return s||(s=new Zt),u||Lt(t)?Kt(t,e,n,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 Xt(t),new Xt(e)));case"[object Boolean]":case"[object Date]":case"[object Number]":return D(+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=Qt;case"[object Set]":var a=1&n;if(u||(u=te),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=Kt(u(t),u(e),n,i,o,s);return s.delete(t),f;case"[object Symbol]":if(re)return re.call(t)==re.call(e)}return!1}(t,e,l,n,i,o,s);if(!(1&n)){var p=c&&xe.call(t,"__wrapped__"),v=d&&xe.call(e,"__wrapped__");if(p||v){var m=p?t.value():t,y=v?e.value():e;return s||(s=new Zt),o(m,y,n,i,s)}}return!!h&&(s||(s=new Zt),function(t,e,r,n,i,o){var s=1&r,u=fe(t),a=u.length;if(a!=fe(e).length&&!s)return!1;for(var l=a;l--;){var f=u[l];if(!(s?f in e:ce.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,n,i,o,s))}function Pe(t,e,r,n,i){return t===e||(null==t||null==e||!p(t)&&!p(e)?t!=t&&e!=e:Le(t,e,r,n,Pe,i))}function Re(t){return t==t&&!w(t)}function Te(t,e){return function(r){return null!=r&&(r[t]===e&&(void 0!==e||t in Object(r)))}}function ke(t){var e=function(t){for(var e=Ut(t),r=e.length;r--;){var n=e[r],i=t[n];e[r]=[n,i,Re(i)]}return e}(t);return 1==e.length&&e[0][2]?Te(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 Zt;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 Fe(t,e){return null!=t&&e in Object(t)}function De(t,e){return null!=t&&function(t,e,n){for(var i=-1,o=(e=it(e,t)).length,s=!1;++i<o;){var u=ot(e[i]);if(!(s=null!=t&&n(t,u)))break;t=t[u]}return s||++i!=o?s:!!(o=null==t?0:t.length)&&Ot(o)&&jt(u,o)&&(r(t)||yt(t))}(t,e,Fe)}function Be(t){return t}function Ie(t){return function(e){return null==e?void 0:e[t]}}function qe(t){return g(t)?Ie(ot(t)):function(t){return function(e){return st(e,t)}}(t)}function Ue(t){return"function"==typeof t?t:null==t?Be:"object"==typeof t?r(t)?function(t,e){return g(t)&&Re(e)?Te(ot(t),e):function(r){var n=ut(r,t);return void 0===n&&n===e?De(r,t):Pe(e,n,3)}}(t[0],t[1]):ke(t):qe(t)}var Ge,ze=function(t,e,r){for(var n=-1,i=Object(t),o=r(t),s=o.length;s--;){var u=o[Ge?s:++n];if(!1===e(i[u],u,i))break}return t};var He=function(t,e){return function(r,n){if(null==r)return r;if(!qt(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&&ze(t,e,Ut)}),Ye=He;function Ze(t,e){var r=-1,n=qt(t)?Array(t.length):[];return Ye(t,function(t,i,o){n[++r]=e(t,i,o)}),n}function Ve(t,e){return(r(t)?Q:Ze)(t,Ue(e))}var We=Ie("length"),Je=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]");function Ke(t){return Je.test(t)}var Xe="\\ud800-\\udfff",Qe="["+Xe+"]",tr="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",er="\\ud83c[\\udffb-\\udfff]",rr="[^"+Xe+"]",nr="(?:\\ud83c[\\udde6-\\uddff]){2}",ir="[\\ud800-\\udbff][\\udc00-\\udfff]",or="(?:"+tr+"|"+er+")"+"?",sr="[\\ufe0e\\ufe0f]?",ur=sr+or+("(?:\\u200d(?:"+[rr,nr,ir].join("|")+")"+sr+or+")*"),ar="(?:"+[rr+tr+"?",tr,nr,ir,Qe].join("|")+")",lr=RegExp(er+"(?="+er+")|"+ar+ur,"g");function fr(t){return Ke(t)?function(t){for(var e=lr.lastIndex=0;lr.test(t);)++e;return e}(t):We(t)}function cr(t){if(null==t)return 0;if(qt(t))return"string"==typeof(e=t)||!r(e)&&p(e)&&"[object String]"==h(e)?fr(t):t.length;var e,n=$e(t);return"[object Map]"==n||"[object Set]"==n?t.size:It(t).length}var dr=/\s/;var hr=/^\s+/;function pr(t){return t?t.slice(0,function(t){for(var e=t.length;e--&&dr.test(t.charAt(e)););return e}(t)+1).replace(hr,""):t}var vr=/^[-+]0x[0-9a-f]+$/i,mr=/^0b[01]+$/i,yr=/^0o[0-7]+$/i,gr=parseInt;function wr(t){if("number"==typeof t)return t;if(v(t))return NaN;if(w(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=w(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=pr(t);var r=mr.test(t);return r||yr.test(t)?gr(t.slice(2),r?2:8):vr.test(t)?NaN:+t}var br=1/0;function Mr(t){return t?(t=wr(t))===br||t===-1/0?17976931348623157e292*(t<0?-1:1):t==t?t:0:0===t?t:0}function _r(t){var e=Mr(t),r=e%1;return e==e?r?e-r:e:0}var jr=o.isFinite,Or=Math.min;var Sr=function(t){var e=Math[t];return function(t,r){if(t=wr(t),(r=null==r?0:Or(_r(r),292))&&jr(t)){var n=(nt(t)+"e").split("e");return+((n=(nt(e(n[0]+"e"+(+n[1]+r)))+"e").split("e"))[0]+"e"+(+n[1]-r))}return e(t)}}("round"),Er=Sr;function $r(t){return t!=t}function Nr(t){let e=!1;if(Yt(t))e=!isNaN(Number(t));else if(function(t){return"[object Number]"===Object.prototype.toString.call(t)}(t)){if($r(t))return!1;e=!0}return e}function Cr(t){if(!Nr(t))return 0;return Mr(t)}function Ar(t){if(!Nr(t))return 0;t=Cr(t);let e=Er(t);return"0"===String(e)?0:e}var xr=Math.ceil,Lr=Math.max;function Pr(t,e,r){if(!w(r))return!1;var n=typeof e;return!!("number"==n?qt(r)&&jt(e,r.length):"string"==n&&e in r)&&D(r[e],t)}var Rr=function(t){return function(e,r,n){return n&&"number"!=typeof n&&Pr(e,r,n)&&(r=n=void 0),e=Mr(e),void 0===r?(r=e,e=0):r=Mr(r),function(t,e,r,n){for(var i=-1,o=Lr(xr((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:Mr(n),t)}}(),Tr=Rr;function kr(t,e,r){return t==t&&(void 0!==r&&(t=t<=r?t:r),void 0!==e&&(t=t>=e?t:e)),t}function Fr(t,e){var r=-1,n=t.length;for(e||(e=Array(n));++r<n;)e[r]=t[r];return e}function Dr(t,e){var r=-1,n=t.length,i=n-1;for(e=void 0===e?n:e;++r<e;){var o=ft(r,i),s=t[o];t[o]=t[r],t[r]=s}return t.length=e,t}function Br(t,e){return Dr(Fr(t),kr(e,0,t.length))}function Ir(t,e){var r=Gt(t);return Dr(r,kr(e,0,r.length))}function qr(t){return!!Nr(t)&&(t=Cr(t),"number"==typeof(e=t)&&e==_r(e));var e}function Ur(t){if(!qr(t))return!1;return Ar(t)>0}function Gr(t=0,e=100,n){if(qr(t)||(t=0),t=Ar(t),qr(e)||(e=100),e=Ar(e),Ur(n)||(n=1),n=Ar(n),t>e)throw new Error(`vstart[${t}] > vend[${e}]`);let i=function(t,e,n){return e=(n?Pr(t,e,n):void 0===e)?1:_r(e),(r(t)?Br:Ir)(t,e)}(Tr(t,e+1),n);return i}function zr(t,e){for(var r=-1,n=null==t?0:t.length;++r<n&&!1!==e(t[r],r,t););return t}function Hr(t,e){var n;return(r(t)?zr:Ye)(t,"function"==typeof(n=e)?n:Be)}function Yr(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 Zr(t){return t!=t}function Vr(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,Zr,r)}var Wr="\\ud800-\\udfff",Jr="["+Wr+"]",Kr="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",Xr="\\ud83c[\\udffb-\\udfff]",Qr="[^"+Wr+"]",tn="(?:\\ud83c[\\udde6-\\uddff]){2}",en="[\\ud800-\\udbff][\\udc00-\\udfff]",rn="(?:"+Kr+"|"+Xr+")"+"?",nn="[\\ufe0e\\ufe0f]?",on=nn+rn+("(?:\\u200d(?:"+[Qr,tn,en].join("|")+")"+nn+rn+")*"),sn="(?:"+[Qr+Kr+"?",Kr,tn,en,Jr].join("|")+")",un=RegExp(Xr+"(?="+Xr+")|"+sn+on,"g");function an(t){return Ke(t)?function(t){return t.match(un)||[]}(t):function(t){return t.split("")}(t)}function ln(t,e,r){if((t=nt(t))&&(r||void 0===e))return pr(t);if(!t||!(e=rt(e)))return t;var n=an(t),i=an(e),o=function(t,e){for(var r=-1,n=t.length;++r<n&&Vr(e,t[r],0)>-1;);return r}(n,i),s=function(t,e){for(var r=t.length;r--&&Vr(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:Yr(t,e,r)}(n,o,s).join("")}function fn(t,e){if(!Yt(t))return[];if(!Yt(e))return[];let r=function(t,e){return Yt(t)&&Yt(e)?t.split(e):[]}(t,e);r=Ve(r,ln);let n=[];return Hr(r,function(t){Yt(t)&&n.push(t)}),n}function cn(t){let e=Object.prototype.toString.call(t);return"[object Function]"===e||"[object AsyncFunction]"===e}var dn="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function hn(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var pn={exports:{}};
|
|
7
7
|
/*!
|
|
8
|
-
* w-data-tdprovide v1.0.
|
|
8
|
+
* w-data-tdprovide v1.0.6
|
|
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 dn&&dn&&dn.Object===Object&&dn,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")},j=_,O=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 P(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 R=n&&!n.nodeType&&n,T=R&&r&&!r.nodeType&&r,k=T&&T.exports===R&&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?P(D):function(t){return y(t)&&x(t.length)&&!!L[m(t)]},I=Object.prototype.hasOwnProperty;function q(t,e){var r=O(t),n=!r&&j(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,z=Object.prototype,H=(U=Object.keys,G=Object,function(t){return U(G(t))}),Y=Object.prototype.hasOwnProperty;function Z(t){if(r=(e=t)&&e.constructor,e!==("function"==typeof r&&r.prototype||z))return H(t);var e,r,n=[];for(var i in Object(t))Y.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(O(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"),jt=Object.prototype.hasOwnProperty,Ot=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 jt.call(e,t)?e[t]:void 0},St.prototype.has=function(t){var e=this.__data__;return _t?void 0!==e[t]:Ot.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 Pt(t){var e=-1,r=Array(t.size);return t.forEach(function(t,n){r[++e]=[n,t]}),r}function Rt(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 O(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"),zt=bt(a,"Set"),Ht=bt(a,"WeakMap"),Yt="[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(zt),ee=dt(Ht),re=m;(Ut&&re(new Ut(new ArrayBuffer(1)))!=Jt||Mt&&re(new Mt)!=Yt||Gt&&re(Gt.resolve())!=Zt||zt&&re(new zt)!=Vt||Ht&&re(new Ht)!=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 Yt;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=O(t),u=O(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=Pt;case"[object Set]":var a=1&n;if(u||(u=Rt),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(O(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 je=l?l.prototype:void 0,Oe=je?je.toString:void 0;function Se(t){if("string"==typeof t)return t;if(O(t))return _e(t,Se)+"";if(he(t))return Oe?Oe.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 O(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)&&(O(t)||j(t))}(t,e,xe)}function Pe(t){return function(e){return null==e?void 0:e[t]}}function Re(t){return me(t)?Pe(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?O(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):Re(t)}function ke(t,e){return(O(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=Pe("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+"]",ze="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",He="\\ud83c[\\udffb-\\udfff]",Ye="[^"+Ue+"]",Ze="(?:\\ud83c[\\udde6-\\uddff]){2}",Ve="[\\ud800-\\udbff][\\udc00-\\udfff]",We="(?:"+ze+"|"+He+")?",Je="[\\ufe0e\\ufe0f]?",Ke=Je+We+"(?:\\u200d(?:"+[Ye,Ze,Ve].join("|")+")"+Je+We+")*",Xe="(?:"+[Ye+ze+"?",ze,Ze,Ve,Ge].join("|")+")",Qe=RegExp(He+"(?="+He+")|"+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)||!O(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,jr=Math.min,Or=function(){var t=Math.round;return function(e,r){if(e=dr(e),(r=null==r?0:jr(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=Or;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?P(xr):function(t){return y(t)&&"[object RegExp]"==m(t)},Pr="\\ud800-\\udfff",Rr="["+Pr+"]",Tr="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",kr="\\ud83c[\\udffb-\\udfff]",Fr="[^"+Pr+"]",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,Rr].join("|")+")",zr=RegExp(kr+"(?="+kr+")|"+Gr+Ur,"g");function Hr(t){return qe(t)?function(t){return t.match(zr)||[]}(t):function(t){return t.split("")}(t)}function Yr(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=Hr(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=Yr(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])},j=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},O=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=j,S.i=_,S.w=function(t,e){return O(t,{locale:e.$L,utc:e.$u,x:e.$x,$offset:e.$offset})};var E=function(){function m(t){this.$L=j(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=O(t);return this.startOf(e)<=r&&r<=this.endOf(e)},y.isAfter=function(t,e){return O(t)<this.startOf(e)},y.isBefore=function(t,e){return this.endOf(e)<O(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=O(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=O(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=j(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 O.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])}}),O.extend=function(t,e){return t.$i||(t(e,E,O),t.$i=!0),O},O.locale=j,O.isDayjs=_,O.unix=function(t){return O(1e3*t)},O.en=b[w],O.Ls=b,O.p={},O}()}(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=Yr(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),(O(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)}(pn,pn.exports);var vn=hn(pn.exports);function mn(t){if(!qr(t))return!1;return Ar(t)>=0}function yn(t,e=0){if(!Nr(t))return"";if(!mn(e))return"";return t=Cr(t),Er(t,e).toFixed(e)}function gn(t,e={}){let r=ut(e,"fs"),n=!1;try{r.statSync(t),n=!0}catch{n=!1}return n}function wn(t,e={}){let r=ut(e,"fs");if(!gn(t,{fs:r}))return!1;let n=r.lstatSync(t);return!n.isFile()&&!n.isSymbolicLink()}function bn(t,e={}){let r=ut(e,"fs");if(wn(t,{fs:r}))return{success:"input folder is already exists: "+t};if(gn(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 Mn(t,e={}){let r=ut(e,"fs");if(!gn(t,{fs:r}))return{success:"file does not exist: "+t};if(!function(t,e={}){let r=ut(e,"fs");return!!gn(t,{fs:r})&&!r.lstatSync(t).isDirectory()&&!r.lstatSync(t).isSymbolicLink()}(t,{fs:r}))return{error:"input path is not a file: "+t};try{r.unlinkSync(t)}catch(t){return{error:t}}return{success:"done: "+t}}function _n(t){return wn(t,{fs:e})}function jn(t){return"[object Object]"===Object.prototype.toString.call(t)}function On(t){return"[object Array]"===Object.prototype.toString.call(t)}function Sn(t){return!0===(e=t)||!1===e||p(e)&&"[object Boolean]"==h(e);var e}function En(t,e){if(!Yt(t))return"";if(!mn(e))return"";if(0===(e=Ar(e)))return"";let r=t.length-e;return r<0&&(r=0),t.substring(r,r+e)}function $n(t,e){return Yt(t)&&mn(e)?0===(e=Ar(e))?t:function(t,e){return Yt(t)&&mn(e)?0===(e=Ar(e))?"":t.substring(0,e):""}(t,t.length-e):""}function Nn(t){if(!Yt(t))return{path:"",isRoot:!1};for(;t.indexOf("\\\\")>=0;)t=t.replace("\\\\","\\");for(;t.indexOf("//")>=0;)t=t.replace("//","/");if(":"===En(t,1))return{path:`${t}\\`,isRoot:!0};if("\\"===En(t,1)){let e=$n(t,1);return":"===En(e,1)?{path:t,isRoot:!0}:{path:e,isRoot:!1}}if("/"===En(t,1)){let e=$n(t,1);return 0===e.length?{path:t,isRoot:!0}:{path:e,isRoot:!1}}return{path:t,isRoot:!1}}function Cn(t){if(!Yt(t))return"";let e=Nn(t);if(e.isRoot)return e.path;let r=function(t){if(!Yt(t))return"";let e=Nn(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(!Yt(r))return t;let n=Nn(t=$n(t,r.length));return n.isRoot,n.path}function An(t,r,n={}){let i=null;if(!jn(r)&&!On(r))return{error:"inp is not an object or array"};let o=ut(n,"useFormat",null);Sn(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=ut(r,"fs"),o=Cn(t);wn(o,{fs:i})||bn(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 xn(t,e){return!!jn(t)&&(!(!Yt(e)&&!Nr(e))&&e in t)}function Ln(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(jn(t)){for(let e in t)return!1;return!0}return!1}(t)||(!!function(t){return!(!Ht(t)||""!==t)}(t)||(!!function(t){return!!On(t)&&0===t.length}(t)||!!$r(t)))))}function Pn(t){return!!On(t)&&(0!==t.length&&(1!==t.length||!Ln(t[0])))}function Rn(t,e,r=2){if(!Nr(t))return[];if(t=Cr(t),!Nr(e))return[];if(e=Cr(e),Ur(r)||(r=2),(r=Ar(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 Sat Aug 08 2026
|
|
195
|
+
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 4.0.5</a> on Sat Aug 08 2026 15:29:16 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 Sat Aug 08 2026
|
|
154
|
+
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 4.0.5</a> on Sat Aug 08 2026 15:29:16 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 Sat Aug 08 2026
|
|
84
|
+
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 4.0.5</a> on Sat Aug 08 2026 15:29:16 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 Sat Aug 08 2026
|
|
185
|
+
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 4.0.5</a> on Sat Aug 08 2026 15:29:17 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 Sat Aug 08 2026
|
|
192
|
+
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 4.0.5</a> on Sat Aug 08 2026 15:29:17 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
|
@@ -593,7 +593,7 @@ export default estimKeys
|
|
|
593
593
|
<br class="clear">
|
|
594
594
|
|
|
595
595
|
<footer>
|
|
596
|
-
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 4.0.5</a> on Sat Aug 08 2026
|
|
596
|
+
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 4.0.5</a> on Sat Aug 08 2026 15:29:17 GMT+0800 (台北標準時間) using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
|
|
597
597
|
</footer>
|
|
598
598
|
|
|
599
599
|
<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 Sat Aug 08 2026
|
|
195
|
+
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 4.0.5</a> on Sat Aug 08 2026 15:29:17 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 Sat Aug 08 2026
|
|
115
|
+
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 4.0.5</a> on Sat Aug 08 2026 15:29:17 GMT+0800 (台北標準時間) using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
|
|
116
116
|
</footer>
|
|
117
117
|
|
|
118
118
|
<script>prettyPrint();</script>
|
|
@@ -118,7 +118,7 @@ export default genStrategyFileName
|
|
|
118
118
|
<br class="clear">
|
|
119
119
|
|
|
120
120
|
<footer>
|
|
121
|
-
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 4.0.5</a> on Sat Aug 08 2026
|
|
121
|
+
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 4.0.5</a> on Sat Aug 08 2026 15:29:17 GMT+0800 (台北標準時間) using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
|
|
122
122
|
</footer>
|
|
123
123
|
|
|
124
124
|
<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 Sat Aug 08 2026
|
|
103
|
+
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 4.0.5</a> on Sat Aug 08 2026 15:29:17 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
|
@@ -5199,7 +5199,7 @@ console.log(readStrategies(fd))
|
|
|
5199
5199
|
<br class="clear">
|
|
5200
5200
|
|
|
5201
5201
|
<footer>
|
|
5202
|
-
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 4.0.5</a> on Sat Aug 08 2026
|
|
5202
|
+
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 4.0.5</a> on Sat Aug 08 2026 15:29:17 GMT+0800 (台北標準時間) using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
|
|
5203
5203
|
</footer>
|
|
5204
5204
|
|
|
5205
5205
|
<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 Sat Aug 08 2026
|
|
74
|
+
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 4.0.5</a> on Sat Aug 08 2026 15:29:17 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 Sat Aug 08 2026
|
|
127
|
+
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 4.0.5</a> on Sat Aug 08 2026 15:29:17 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 Sat Aug 08 2026
|
|
101
|
+
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 4.0.5</a> on Sat Aug 08 2026 15:29:17 GMT+0800 (台北標準時間) using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
|
|
102
102
|
</footer>
|
|
103
103
|
|
|
104
104
|
<script>prettyPrint();</script>
|
|
@@ -190,7 +190,7 @@ export default readStrategies
|
|
|
190
190
|
<br class="clear">
|
|
191
191
|
|
|
192
192
|
<footer>
|
|
193
|
-
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 4.0.5</a> on Sat Aug 08 2026
|
|
193
|
+
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 4.0.5</a> on Sat Aug 08 2026 15:29:17 GMT+0800 (台北標準時間) using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
|
|
194
194
|
</footer>
|
|
195
195
|
|
|
196
196
|
<script>prettyPrint();</script>
|
package/package.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "w-trade-solve",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.5",
|
|
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.0.
|
|
9
|
-
"wsemi": "^1.8.
|
|
6
|
+
"w-data-tdprovide": "^1.0.6",
|
|
7
|
+
"w-optimization": "^1.0.24",
|
|
8
|
+
"w-trade-backtest": "^1.0.8",
|
|
9
|
+
"wsemi": "^1.8.70"
|
|
10
10
|
},
|
|
11
11
|
"devDependencies": {
|
|
12
12
|
"w-package-tools": "^1.1.12"
|