w-trade-solve 2.0.15 → 2.0.17

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.
@@ -1,11 +1,11 @@
1
1
  /*!
2
- * w-trade-solve v2.0.15
2
+ * w-trade-solve v2.0.17
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 _,S=s["__core-js_shared__"],O=(_=/[^.]+$/.exec(S&&S.keys&&S.keys.IE_PROTO||""))?"Symbol(src)_1."+_:"";var E=Function.prototype.toString;function j(t){if(null!=t){try{return E.call(t)}catch(t){}try{return t+""}catch(t){}}return""}var N=/^\[object .+?Constructor\]$/,$=Function.prototype,A=Object.prototype,C=$.toString,L=A.hasOwnProperty,x=RegExp("^"+C.call(L).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function R(t){return!(!b(t)||(e=t,O&&O in e))&&(M(t)?x:N).test(j(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 G(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])}}G.prototype.clear=function(){this.__data__=[],this.size=0},G.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)},G.prototype.get=function(t){var e=this.__data__,r=I(e,t);return r<0?void 0:e[r][1]},G.prototype.has=function(t){return I(this.__data__,t)>-1},G.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 U=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(U||G),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 W,Z,V,J=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,X=/\\(\\)?/g,K=(W=function(t){var e=[];return 46===t.charCodeAt(0)&&e.push(""),t.replace(J,function(t,r,n,i){e.push(n?i.replace(X,"$1"):r||t)}),e},Z=z(W,function(t){return 500===V.size&&V.clear(),t}),V=Z.cache,Z),Q=K;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},St=/^(?:0|[1-9]\d*)$/;function Ot(t,e){var r=typeof t;return!!(e=null==e?9007199254740991:e)&&("number"==r||"symbol"!=r&&St.test(t))&&t>-1&&t%1==0&&t<e}function Et(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=9007199254740991}var jt={};function Nt(t){return function(e){return t(e)}}jt["[object Float32Array]"]=jt["[object Float64Array]"]=jt["[object Int8Array]"]=jt["[object Int16Array]"]=jt["[object Int32Array]"]=jt["[object Uint8Array]"]=jt["[object Uint8ClampedArray]"]=jt["[object Uint16Array]"]=jt["[object Uint32Array]"]=!0,jt["[object Arguments]"]=jt["[object Array]"]=jt["[object ArrayBuffer]"]=jt["[object Boolean]"]=jt["[object DataView]"]=jt["[object Date]"]=jt["[object Error]"]=jt["[object Function]"]=jt["[object Map]"]=jt["[object Number]"]=jt["[object Object]"]=jt["[object RegExp]"]=jt["[object Set]"]=jt["[object String]"]=jt["[object WeakMap]"]=!1;var $t="object"==typeof exports&&exports&&!exports.nodeType&&exports,At=$t&&"object"==typeof module&&module&&!module.nodeType&&module,Ct=At&&At.exports===$t&&i.process,Lt=function(){try{var t=At&&At.require&&At.require("util").types;return t||Ct&&Ct.binding&&Ct.binding("util")}catch(t){}}(),xt=Lt&&Lt.isTypedArray,Rt=xt?Nt(xt):function(t){return v(t)&&Et(t.length)&&!!jt[p(t)]},Pt=Object.prototype.hasOwnProperty;function Tt(t,e){var r=n(t),i=!r&&gt(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)||Ot(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 Gt(t){return null!=t&&Et(t.length)&&!M(t)}function Ut(t){return Gt(t)?Tt(t):qt(t)}function Ht(t){return null==t?[]:function(t,e){return tt(e,function(e){return t[e]})}(t,Ut(t))}function Yt(t){return dt(Ht(t))}function zt(t){return"[object String]"===Object.prototype.toString.call(t)}function Wt(t){return!(!zt(t)||""===t)}function Zt(t){var e=this.__data__=new G(t);this.size=e.size}Zt.prototype.clear=function(){this.__data__=new G,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 G){var n=r.__data__;if(!U||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 Vt(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 Xt(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(!Jt(e,function(t,e){if(!Xt(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,Ut,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=j(he),Se=j(U),Oe=j(pe),Ee=j(ve),je=j(me),Ne=p;(he&&Ne(new he(new ArrayBuffer(1)))!=Me||U&&Ne(new U)!=ye||pe&&Ne(pe.resolve())!=ge||ve&&Ne(new ve)!=we||me&&Ne(new me)!=be)&&(Ne=function(t){var e=p(t),r="[object Object]"==e?t.constructor:void 0,n=r?j(r):"";if(n)switch(n){case _e:return Me;case Se:return ye;case Oe:return ge;case Ee:return we;case je:return be}return e});var $e=Ne,Ae="[object Arguments]",Ce="[object Array]",Le="[object Object]",xe=Object.prototype.hasOwnProperty;function Re(t,e,r,i,o,s){var u=n(t),a=n(e),l=u?Ce:$e(t),f=a?Ce:$e(e),c=(l=l==Ae?Le:l)==Le,d=(f=f==Ae?Le:f)==Le,h=l==f;if(h&&_t(t)){if(!_t(e))return!1;u=!0,c=!1}if(h&&!c)return s||(s=new Zt),u||Rt(t)?Kt(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=Kt(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&&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,r,i,s)}}return!!h&&(s||(s=new Zt),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=Ut(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 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 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)&&Et(o)&&Ot(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 Ge(t){return w(t)?qe(st(t)):function(t){return function(e){return ut(e,t)}}(t)}function Ue(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):Ge(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(!Gt(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,Ut)}),We=ze;function Ze(t,e){var r=-1,n=Gt(t)?Array(t.length):[];return We(t,function(t,i,o){n[++r]=e(t,i,o)}),n}function Ve(t,e){return(n(t)?tt:Ze)(t,Ue(e))}var Je=qe("length"),Xe=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]");function Ke(t){return Xe.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 Ke(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(Gt(t))return"string"==typeof(e=t)||!n(e)&&v(e)&&"[object String]"==p(e)?cr(t):t.length;var e,r=$e(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 Sr(t){var e=_r(t),r=e%1;return e==e?r?e-r:e:0}var Or=s.isFinite,Er=Math.min;var jr=function(t){var e=Math[t];return function(t,r){if(t=br(t),(r=null==r?0:Er(Sr(r),292))&&Or(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"),Nr=jr;function $r(t){return!0===(e=t)||!1===e||v(e)&&"[object Boolean]"==p(e);var e}function Ar(t){return t!=t}function Cr(t){let e=!1;if(Wt(t)){if(""===t.trim())return!1;e=!isNaN(Number(t))}else if(function(t){return"[object Number]"===Object.prototype.toString.call(t)}(t)){if(Ar(t))return!1;e=!0}return e}function Lr(t){if(!Cr(t))return 0;return _r(t)}function xr(t,e={}){let r=at(e,"useClampSafe",null);$r(r)||(r=!1);let n=at(e,"useLimitSafe",null);$r(n)||(n=!1);let i=at(e,"returnWithStateAndMsg",null);$r(i)||(i=!1);let o=t=>i?{state:"success",msg:t}:t,s=t=>{if(i)return{state:"error",msg:t};throw new Error(t)};if(!Cr(t))return o(0);let u=null;try{t=Lr(t),u=Nr(t),r&&(u>Number.MAX_SAFE_INTEGER?u=Number.MAX_SAFE_INTEGER:u<Number.MIN_SAFE_INTEGER&&(u=Number.MIN_SAFE_INTEGER))}catch(t){return s(t.toString())}return n&&!Number.isSafeInteger(Number(u))?s(`v[${t}] is not a safe integer`):("0"===String(u)&&(u=0),o(u))}var Rr=Math.ceil,Pr=Math.max;function Tr(t,e,r){if(!b(r))return!1;var n=typeof e;return!!("number"==n?Gt(r)&&Ot(e,r.length):"string"==n&&e in r)&&B(r[e],t)}var kr=function(t){return function(e,r,n){return n&&"number"!=typeof n&&Tr(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=Pr(Rr((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)}}(),Fr=kr;function Dr(t,e,r){return t==t&&(void 0!==r&&(t=t<=r?t:r),void 0!==e&&(t=t>=e?t:e)),t}function Br(t,e){var r=-1,n=t.length;for(e||(e=Array(n));++r<n;)e[r]=t[r];return e}function Ir(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 qr(t,e){return Ir(Br(t),Dr(e,0,t.length))}function Gr(t,e){var r=Ht(t);return Ir(r,Dr(e,0,r.length))}function Ur(t,e={}){let r=at(e,"useLimitSafe",null);return $r(r)||(r=!1),!!Cr(t)&&(t=Lr(t),r?Number.isSafeInteger(t):"number"==typeof(n=t)&&n==Sr(n));var n}function Hr(t,e={}){if(!Ur(t,e))return!1;return xr(t)>0}function Yr(t=0,e=100,r){if(Ur(t)||(t=0),t=xr(t),Ur(e)||(e=100),e=xr(e),Hr(r)||(r=1),r=xr(r),t>e)throw new Error(`vstart[${t}] > vend[${e}]`);let i=function(t,e,r){return e=(r?Tr(t,e,r):void 0===e)?1:Sr(e),(n(t)?qr:Gr)(t,e)}(Fr(t,e+1),r);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 Wr(t,e){var r;return(n(t)?zr:We)(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 Jr(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 Xr="\\ud800-\\udfff",Kr="["+Xr+"]",Qr="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",tn="\\ud83c[\\udffb-\\udfff]",en="[^"+Xr+"]",rn="(?:\\ud83c[\\udde6-\\uddff]){2}",nn="[\\ud800-\\udbff][\\udc00-\\udfff]",on="(?:"+Qr+"|"+tn+")"+"?",sn="[\\ufe0e\\ufe0f]?",un=sn+on+("(?:\\u200d(?:"+[en,rn,nn].join("|")+")"+sn+on+")*"),an="(?:"+[en+Qr+"?",Qr,rn,nn,Kr].join("|")+")",ln=RegExp(tn+"(?="+tn+")|"+an+un,"g");function fn(t){return Ke(t)?function(t){return t.match(ln)||[]}(t):function(t){return t.split("")}(t)}function cn(t,e,r){if((t=it(t))&&(r||void 0===e))return vr(t);if(!t||!(e=nt(e)))return t;var n=fn(t),i=fn(e),o=function(t,e){for(var r=-1,n=t.length;++r<n&&Jr(e,t[r],0)>-1;);return r}(n,i),s=function(t,e){for(var r=t.length;r--&&Jr(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 dn(t,e){if(!Wt(t))return[];if(!Wt(e))return[];let r=function(t,e){return Wt(t)&&Wt(e)?t.split(e):[]}(t,e);r=Ve(r,cn);let n=[];return Wr(r,function(t){Wt(t)&&n.push(t)}),n}function hn(t){return M(t)}var pn="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function vn(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var mn={exports:{}};
7
7
  /*!
8
- * w-data-tdprovide v1.0.21
8
+ * w-data-tdprovide v1.0.23
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 pn&&pn&&pn.Object===Object&&pn,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")},S=_,O=Array.isArray,E=n&&!n.nodeType&&n,j=E&&r&&!r.nodeType&&r,N=j&&j.exports===E?a.Buffer:void 0,$=(N?N.isBuffer:void 0)||function(){return!1},A=/^(?:0|[1-9]\d*)$/;function C(t,e){var r=typeof t;return!!(e=null==e?9007199254740991:e)&&("number"==r||"symbol"!=r&&A.test(t))&&t>-1&&t%1==0&&t<e}function L(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=9007199254740991}var x={};function R(t){return function(e){return t(e)}}x["[object Float32Array]"]=x["[object Float64Array]"]=x["[object Int8Array]"]=x["[object Int16Array]"]=x["[object Int32Array]"]=x["[object Uint8Array]"]=x["[object Uint8ClampedArray]"]=x["[object Uint16Array]"]=x["[object Uint32Array]"]=!0,x["[object Arguments]"]=x["[object Array]"]=x["[object ArrayBuffer]"]=x["[object Boolean]"]=x["[object DataView]"]=x["[object Date]"]=x["[object Error]"]=x["[object Function]"]=x["[object Map]"]=x["[object Number]"]=x["[object Object]"]=x["[object RegExp]"]=x["[object Set]"]=x["[object String]"]=x["[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)&&L(t.length)&&!!x[m(t)]},I=Object.prototype.hasOwnProperty;function q(t,e){var r=O(t),n=!r&&S(t),i=!r&&!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)||C(l,a))||u.push(l);return u}var G,U,H=Object.prototype,Y=(G=Object.keys,U=Object,function(t){return G(U(t))}),z=Object.prototype.hasOwnProperty;function W(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 Z(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}function V(t){if(!Z(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&&L(t.length)&&!V(t)}function X(t){return J(t)?q(t):W(t)}var K=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,X)}),Q=K;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&&lt.keys&&lt.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!(!Z(t)||function(t){return!!ft&&ft in t}(t))&&(V(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"),St=Object.prototype.hasOwnProperty,Ot=Object.prototype.hasOwnProperty;function Et(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 jt(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 Nt(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 $t(t){var e=this.__data__=new ut(t);this.size=e.size}function At(t){var e=-1,r=null==t?0:t.length;for(this.__data__=new Nt;++e<r;)this.add(t[e])}function Ct(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 Lt(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 At: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(!Ct(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}Et.prototype.clear=function(){this.__data__=_t?_t(null):{},this.size=0},Et.prototype.delete=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e},Et.prototype.get=function(t){var e=this.__data__;if(_t){var r=e[t];return"__lodash_hash_undefined__"===r?void 0:r}return St.call(e,t)?e[t]:void 0},Et.prototype.has=function(t){var e=this.__data__;return _t?void 0!==e[t]:Ot.call(e,t)},Et.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},Nt.prototype.clear=function(){this.size=0,this.__data__={hash:new Et,map:new(Mt||ut),string:new Et}},Nt.prototype.delete=function(t){var e=jt(this,t).delete(t);return this.size-=e?1:0,e},Nt.prototype.get=function(t){return jt(this,t).get(t)},Nt.prototype.has=function(t){return jt(this,t).has(t)},Nt.prototype.set=function(t,e){var r=jt(this,t),n=r.size;return r.set(t,e),this.size+=r.size==n?0:1,this},$t.prototype.clear=function(){this.__data__=new ut,this.size=0},$t.prototype.delete=function(t){var e=this.__data__,r=e.delete(t);return this.size=e.size,r},$t.prototype.get=function(t){return this.__data__.get(t)},$t.prototype.has=function(t){return this.__data__.has(t)},$t.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 Nt(n)}return r.set(t,e),this.size=r.size,this},At.prototype.add=At.prototype.push=function(t){return this.__data__.set(t,"__lodash_hash_undefined__"),this},At.prototype.has=function(t){return this.__data__.has(t)};var xt=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 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,X,Bt)}var qt=Object.prototype.hasOwnProperty,Gt=bt(a,"DataView"),Ut=bt(a,"Promise"),Ht=bt(a,"Set"),Yt=bt(a,"WeakMap"),zt="[object Map]",Wt="[object Promise]",Zt="[object Set]",Vt="[object WeakMap]",Jt="[object DataView]",Xt=dt(Gt),Kt=dt(Mt),Qt=dt(Ut),te=dt(Ht),ee=dt(Yt),re=m;(Gt&&re(new Gt(new ArrayBuffer(1)))!=Jt||Mt&&re(new Mt)!=zt||Ut&&re(Ut.resolve())!=Wt||Ht&&re(new Ht)!=Zt||Yt&&re(new Yt)!=Vt)&&(re=function(t){var e=m(t),r="[object Object]"==e?t.constructor:void 0,n=r?dt(r):"";if(n)switch(n){case Xt:return Jt;case Kt:return zt;case Qt:return Wt;case te:return Zt;case ee:return Vt}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&&$(t)){if(!$(e))return!1;s=!0,f=!1}if(d&&!f)return o||(o=new $t),s||B(t)?Lt(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 xt(t),new xt(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=Lt(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 $t),i(v,m,r,n,o)}}return!!d&&(o||(o=new $t),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&&!Z(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=X(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 $t;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||Nt),r}ye.Cache=Nt;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 Se=l?l.prototype:void 0,Oe=Se?Se.toString:void 0;function Ee(t){if("string"==typeof t)return t;if(O(t))return _e(t,Ee)+"";if(he(t))return Oe?Oe.call(t):"";var e=t+"";return"0"==e&&1/t==-1/0?"-0":e}function je(t){return null==t?"":Ee(t)}function Ne(t,e){return O(t)?t:me(t,e)?[t]:Me(je(t))}function $e(t){if("string"==typeof t||he(t))return t;var e=t+"";return"0"==e&&1/t==-1/0?"-0":e}function Ae(t,e){for(var r=0,n=(e=Ne(e,t)).length;null!=t&&r<n;)t=t[$e(e[r++])];return r&&r==n?t:void 0}function Ce(t,e,r){var n=null==t?void 0:Ae(t,e);return void 0===n?r:n}function Le(t,e){return null!=t&&e in Object(t)}function xe(t,e){return null!=t&&function(t,e,r){for(var n=-1,i=(e=Ne(e,t)).length,o=!1;++n<i;){var s=$e(e[n]);if(!(o=null!=t&&r(t,s)))break;t=t[s]}return o||++n!=i?o:!!(i=null==t?0:t.length)&&L(i)&&C(s,i)&&(O(t)||S(t))}(t,e,Le)}function Re(t){return function(e){return null==e?void 0:e[t]}}function Pe(t){return me(t)?Re($e(t)):function(t){return function(e){return Ae(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($e(t),e):function(r){var n=Ce(r,t);return void 0===n&&n===e?xe(r,t):le(e,n,3)}}(t[0],t[1]):de(t):Pe(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=Re("length"),Ie=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]");function qe(t){return Ie.test(t)}var Ge="\\ud800-\\udfff",Ue="["+Ge+"]",He="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",Ye="\\ud83c[\\udffb-\\udfff]",ze="[^"+Ge+"]",We="(?:\\ud83c[\\udde6-\\uddff]){2}",Ze="[\\ud800-\\udbff][\\udc00-\\udfff]",Ve="(?:"+He+"|"+Ye+")?",Je="[\\ufe0e\\ufe0f]?",Xe=Je+Ve+"(?:\\u200d(?:"+[ze,We,Ze].join("|")+")"+Je+Ve+")*",Ke="(?:"+[ze+He+"?",He,We,Ze,Ue].join("|")+")",Qe=RegExp(Ye+"(?="+Ye+")|"+Ke+Xe,"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:W(t).length}function rr(t,e={}){let r=Ce(e,"fs"),n=!1;try{r.statSync(t),n=!0}catch{n=!1}return n}function nr(t){return function(t,e={}){let r=Ce(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=Ce(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(Z(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=Z(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!0===(e=t)||!1===e||y(e)&&"[object Boolean]"==m(e);var e}function yr(t){return"[object String]"===Object.prototype.toString.call(t)}function gr(t){return!(!yr(t)||""===t)}function wr(t){return t!=t}function br(t){let e=!1;if(gr(t)){if(""===t.trim())return!1;e=!isNaN(Number(t))}else if(function(t){return"[object Number]"===Object.prototype.toString.call(t)}(t)){if(wr(t))return!1;e=!0}return e}function Mr(t){return br(t)?pr(t):0}function _r(t,e={}){let r=Ce(e,"useLimitSafe",null);return mr(r)||(r=!1),!!br(t)&&(t=Mr(t),r?Number.isSafeInteger(t):"number"==typeof(n=t)&&n==vr(n));var n}var Sr=a.isFinite,Or=Math.min,Er=function(){var t=Math.round;return function(e,r){if(e=dr(e),(r=null==r?0:Or(vr(r),292))&&Sr(e)){var n=(je(e)+"e").split("e");return+((n=(je(t(n[0]+"e"+(+n[1]+r)))+"e").split("e"))[0]+"e"+(+n[1]-r))}return t(e)}}(),jr=Er;function Nr(t,e={}){let r=Ce(e,"useClampSafe",null);mr(r)||(r=!1);let n=Ce(e,"useLimitSafe",null);mr(n)||(n=!1);let i=Ce(e,"returnWithStateAndMsg",null);mr(i)||(i=!1);let o=t=>i?{state:"success",msg:t}:t,s=t=>{if(i)return{state:"error",msg:t};throw new Error(t)};if(!br(t))return o(0);let u=null;try{t=Mr(t),u=jr(t),r&&(u>Number.MAX_SAFE_INTEGER?u=Number.MAX_SAFE_INTEGER:u<Number.MIN_SAFE_INTEGER&&(u=Number.MIN_SAFE_INTEGER))}catch(t){return s(t.toString())}return n&&!Number.isSafeInteger(Number(u))?s(`v[${t}] is not a safe integer`):("0"===String(u)&&(u=0),o(u))}function $r(t,e={}){let r=Ce(e,"fs");if(!rr(t,{fs:r}))return!1;let n=r.lstatSync(t);return!n.isFile()&&!n.isSymbolicLink()}function Ar(t,e=1,r={}){let n=1,i=Ce(r,"path"),o=Ce(r,"fs");if(!$r(t,{fs:o}))throw new Error(`fd[${t}] is not a folder`);return null!==e&&function(t,e={}){return!!_r(t,e)&&Nr(t)>0}(e)&&(e=Nr(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 Ar(r,n,{path:t,fs:e})}function Lr(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,Rr=xr?R(xr):function(t){return y(t)&&"[object RegExp]"==m(t)},Pr="\\ud800-\\udfff",Tr="["+Pr+"]",kr="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",Fr="\\ud83c[\\udffb-\\udfff]",Dr="[^"+Pr+"]",Br="(?:\\ud83c[\\udde6-\\uddff]){2}",Ir="[\\ud800-\\udbff][\\udc00-\\udfff]",qr="(?:"+kr+"|"+Fr+")?",Gr="[\\ufe0e\\ufe0f]?",Ur=Gr+qr+"(?:\\u200d(?:"+[Dr,Br,Ir].join("|")+")"+Gr+qr+")*",Hr="(?:"+[Dr+kr+"?",kr,Br,Ir,Tr].join("|")+")",Yr=RegExp(Fr+"(?="+Fr+")|"+Hr+Ur,"g");function zr(t){return qe(t)?function(t){return t.match(Yr)||[]}(t):function(t){return t.split("")}(t)}function Wr(t,e,r){return r&&"number"!=typeof r&&function(t,e,r){if(!Z(r))return!1;var n=typeof e;return!!("number"==n?J(r)&&C(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=je(t))&&("string"==typeof e||null!=e&&!Rr(e))&&!(e=Ee(e))&&qe(t)?(i=0,o=r,s=(n=zr(t)).length,o=void 0===o?s:o,!i&&o>=s?n:Lr(n,i,o)):t.split(e,r):[];var n,i,o,s}function Zr(t,e={}){return!!_r(t,e)&&Nr(t)>=0}function Vr(t,e){if(!gr(t))return"";if(!Zr(e))return"";if(0===(e=Nr(e)))return"";let r=t.length-e;return r<0&&(r=0),t.substring(r,r+e)}function Jr(t,e){return gr(t)&&Zr(e)?0===(e=Nr(e))?t:function(t,e){return gr(t)&&Zr(e)?0===(e=Nr(e))?"":t.substring(0,e):""}(t,t.length-e):""}function Xr(t){if(!gr(t))return"";let e=function(t){if(!gr(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=Jr(t,1);return":"===Vr(e,1)?{path:t,isRoot:!0}:{path:e,isRoot:!1}}if("/"===Vr(t,1)){let e=Jr(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 Qr(t){if(!gr(t))return"";let e=Xr(t),r=Wr(e,".");if(er(r)<=1)return e;let n="";try{r=(u=null==(i=r)?0:i.length)?Lr(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 tn(t){return"[object Object]"===Object.prototype.toString.call(t)}function en(t,e){return!!tn(t)&&!(!gr(e)&&!br(e))&&e in t}function rn(t){return"[object Array]"===Object.prototype.toString.call(t)}function nn(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(tn(t)){for(let e in t)return!1;return!0}return!1}(t)||function(t){return!(!yr(t)||""!==t)}(t)||function(t){return!!rn(t)&&0===t.length}(t)||wr(t))}function on(t){return!(!rn(t)||0===t.length||1===t.length&&nn(t[0]))}function sn(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var un={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 j||!(!t||!t[M])},S=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 j(r)},E=g;E.l=S,E.i=_,E.w=function(t,e){return O(t,{locale:e.$L,utc:e.$u,x:e.$x,$offset:e.$offset})};var j=function(){function m(t){this.$L=S(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(E.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 E},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 E.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=!!E.u(e)||e,f=E.p(t),h=function(t,e){var i=E.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 E.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=E.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[E.p(t)]()},y.add=function(n,f){var d,h=this;n=Number(n);var p=E.p(f),v=function(t){var e=O(h);return E.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 E.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=E.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 E.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 E.s(e.$y,4,"0");case"M":return u+1;case"MM":return E.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 E.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 E.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 E.s(s,2,"0");case"s":return String(e.$s);case"ss":return E.s(e.$s,2,"0");case"SSS":return E.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=E.p(d),y=O(n),g=(y.utcOffset()-this.utcOffset())*e,w=this-y,b=function(){return E.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:E.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=S(t,e,!0);return n&&(r.$L=n),r},y.clone=function(){return E.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}(),N=j.prototype;return O.prototype=N,[["$ms",n],["$s",i],["$m",o],["$H",s],["$W",u],["$M",l],["$y",c],["$D",d]].forEach(function(t){N[t[1]]=function(e){return this.$g(e,t[0],t[1])}}),O.extend=function(t,e){return t.$i||(t(e,j,O),t.$i=!0),O},O.locale=S,O.isDayjs=_,O.unix=function(t){return O(1e3*t)},O.en=b[w],O.Ls=b,O.p={},O}()}(un);var an=sn(un.exports);function ln(t){if(!gr(t))return!1;let e="YYYY-MM-DDTHH:mm:ss";return t===an(t,e).format(e)}function fn(t){return V(t)}function cn(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(!rn(t)&&!tn(t))return r.reject("rs is not an array or object"),r;let n=!1;if(tn(t)){n=!0;let e=[];et(t,(t,r)=>{e.push({k:r,v:t})}),t=e}fn(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),fn(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?Lr(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(en(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=Ce(ir(s),"success",null);if(!on(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(!gr(t))return"";let e=Wr(Xr(t),".");if(er(e)<=1)return"";let r="";try{r=Fe(e)}catch(t){}return r}(t.name)),e},n=[],s=t(e);await cn(s,async t=>{let e=Qr(t.name),r=await i(e);n.push({type:"ohlc",key:e,arr:r})});let u=t(r);return await cn(u,async t=>{let e=Qr(t.name),r=await i(e);n.push({type:"param",key:e,arr:r})}),o=n,n},u={},a=async(t,e)=>{if(!ln(t))throw new Error("invalid timeStart");if(!ln(e))throw new Error("invalid timeEnd");let r=`${t}:${e}`;if(en(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=Ce(e,"time",""),u=Ce(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=>Qr(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=Ce(n,r,[]);if(!on(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=Ce(n,`${r}_${i}`,{});if(!function(t){if(tn(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)}(mn,mn.exports);var yn=vn(mn.exports);function gn(t,e={}){if(!Ur(t,e))return!1;return xr(t)>=0}function wn(t,e=0){if(!Cr(t))return"";if(!gn(e))return"";return t=Lr(t),Nr(t,e).toFixed(e)}function bn(t,e={}){let r=at(e,"fs"),n=!1;try{r.statSync(t),n=!0}catch{n=!1}return n}function Mn(t,e={}){let r=at(e,"fs");if(!bn(t,{fs:r}))return!1;let n=r.lstatSync(t);return!n.isFile()&&!n.isSymbolicLink()}function _n(t,e={}){let r=at(e,"fs");if(Mn(t,{fs:r}))return{success:"input folder is already exists: "+t};if(bn(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 Sn(t){return function(t,e={}){let r=at(e,"fs");return!!bn(t,{fs:r})&&!r.lstatSync(t).isDirectory()&&!r.lstatSync(t).isSymbolicLink()}(t,{fs:e})}function On(t){return Mn(t,{fs:e})}function En(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 jn(t){return"[object Object]"===Object.prototype.toString.call(t)}function Nn(t){return"[object Array]"===Object.prototype.toString.call(t)}function $n(t,e){if(!Wt(t))return"";if(!gn(e))return"";if(0===(e=xr(e)))return"";let r=t.length-e;return r<0&&(r=0),t.substring(r,r+e)}function An(t,e){return Wt(t)&&gn(e)?0===(e=xr(e))?t:function(t,e){return Wt(t)&&gn(e)?0===(e=xr(e))?"":t.substring(0,e):""}(t,t.length-e):""}function Cn(t){if(!Wt(t))return{path:"",isRoot:!1};for(;t.indexOf("\\\\")>=0;)t=t.replace("\\\\","\\");for(;t.indexOf("//")>=0;)t=t.replace("//","/");if(":"===$n(t,1))return{path:`${t}\\`,isRoot:!0};if("\\"===$n(t,1)){let e=An(t,1);return":"===$n(e,1)?{path:t,isRoot:!0}:{path:e,isRoot:!1}}if("/"===$n(t,1)){let e=An(t,1);return 0===e.length?{path:t,isRoot:!0}:{path:e,isRoot:!1}}return{path:t,isRoot:!1}}function Ln(t){if(!Wt(t))return"";let e=Cn(t);if(e.isRoot)return e.path;let r=function(t){if(!Wt(t))return"";let e=Cn(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(!Wt(r))return t;let n=Cn(t=An(t,r.length));return n.isRoot,n.path}function xn(t,r,n={}){let i=null;if(!jn(r)&&!Nn(r))return{error:"inp is not an object or array"};let o=at(n,"useFormat",null);$r(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=Ln(t);Mn(o,{fs:i})||_n(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(jn(t)){for(let e in t)return!1;return!0}return!1}(t)||(!!function(t){return!(!zt(t)||""!==t)}(t)||(!!function(t){return!!Nn(t)&&0===t.length}(t)||!!Ar(t)))))}function Pn(t){return!!Nn(t)&&(0!==t.length&&(1!==t.length||!Rn(t[0])))}function Tn(t,e,r=2){if(!Cr(t))return[];if(t=Lr(t),!Cr(e))return[];if(e=Lr(e),Hr(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 Fri Oct 02 2026 19:45:25 GMT+0800 (台北標準時間) using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
195
+ Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 4.0.5</a> on Sun Oct 11 2026 15:45:09 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 Fri Oct 02 2026 19:45:25 GMT+0800 (台北標準時間) using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
154
+ Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 4.0.5</a> on Sun Oct 11 2026 15:45:09 GMT+0800 (台北標準時間) using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
155
155
  </footer>
156
156
 
157
157
  <script>prettyPrint();</script>
@@ -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 Fri Oct 02 2026 19:45:25 GMT+0800 (台北標準時間) using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
84
+ Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 4.0.5</a> on Sun Oct 11 2026 15:45:09 GMT+0800 (台北標準時間) using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
85
85
  </footer>
86
86
 
87
87
  <script>prettyPrint();</script>
@@ -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 Fri Oct 02 2026 19:45:25 GMT+0800 (台北標準時間) using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
185
+ Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 4.0.5</a> on Sun Oct 11 2026 15:45:09 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 Fri Oct 02 2026 19:45:25 GMT+0800 (台北標準時間) using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
192
+ Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 4.0.5</a> on Sun Oct 11 2026 15:45:09 GMT+0800 (台北標準時間) using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
193
193
  </footer>
194
194
 
195
195
  <script>prettyPrint();</script>
@@ -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 Fri Oct 02 2026 19:45:25 GMT+0800 (台北標準時間) using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
664
+ Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 4.0.5</a> on Sun Oct 11 2026 15:45:09 GMT+0800 (台北標準時間) using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
665
665
  </footer>
666
666
 
667
667
  <script>prettyPrint();</script>
@@ -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 Fri Oct 02 2026 19:45:25 GMT+0800 (台北標準時間) using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
195
+ Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 4.0.5</a> on Sun Oct 11 2026 15:45:09 GMT+0800 (台北標準時間) using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
196
196
  </footer>
197
197
 
198
198
  <script>prettyPrint();</script>
@@ -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 Fri Oct 02 2026 19:45:25 GMT+0800 (台北標準時間) using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
115
+ Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 4.0.5</a> on Sun Oct 11 2026 15:45:09 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 Fri Oct 02 2026 19:45:25 GMT+0800 (台北標準時間) using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
125
+ Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 4.0.5</a> on Sun Oct 11 2026 15:45:09 GMT+0800 (台北標準時間) using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
126
126
  </footer>
127
127
 
128
128
  <script>prettyPrint();</script>
@@ -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 Fri Oct 02 2026 19:45:25 GMT+0800 (台北標準時間) using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
103
+ Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 4.0.5</a> on Sun Oct 11 2026 15:45:09 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 Fri Oct 02 2026 19:45:25 GMT+0800 (台北標準時間) using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
5372
+ Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 4.0.5</a> on Sun Oct 11 2026 15:45:09 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 Fri Oct 02 2026 19:45:25 GMT+0800 (台北標準時間) using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
74
+ Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 4.0.5</a> on Sun Oct 11 2026 15:45:09 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 Fri Oct 02 2026 19:45:25 GMT+0800 (台北標準時間) using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
127
+ Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 4.0.5</a> on Sun Oct 11 2026 15:45:09 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 Fri Oct 02 2026 19:45:25 GMT+0800 (台北標準時間) using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
101
+ Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 4.0.5</a> on Sun Oct 11 2026 15:45:09 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 Fri Oct 02 2026 19:45:25 GMT+0800 (台北標準時間) using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
277
+ Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 4.0.5</a> on Sun Oct 11 2026 15:45:09 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.15",
3
+ "version": "2.0.17",
4
4
  "main": "dist/w-trade-solve.umd.js",
5
5
  "dependencies": {
6
- "w-data-tdprovide": "^1.0.21",
7
- "w-optimization": "^1.0.39",
8
- "w-trade-backtest": "^1.1.16",
9
- "wsemi": "^1.9.9"
6
+ "w-data-tdprovide": "^1.0.23",
7
+ "w-optimization": "^1.0.41",
8
+ "w-trade-backtest": "^1.1.18",
9
+ "wsemi": "^1.9.12"
10
10
  },
11
11
  "devDependencies": {
12
12
  "w-package-tools": "^1.1.16"